define("graph_notebook_widgets",["@jupyter-widgets/base"],(function(t){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var g=e[n]={i:n,l:!1,exports:{}};return t[n].call(g.exports,g,g.exports,i),g.l=!0,g.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var g in t)i.d(n,g,function(e){return t[e]}.bind(null,g));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="https://unpkg.com/graph_notebook_widget@3.7.2/dist/",i(i.s=9)}([function(t,e,i){var n;
/*!
 * jQuery JavaScript Library v3.6.0
 * https://jquery.com/
 *
 * Includes Sizzle.js
 * https://sizzlejs.com/
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2021-03-02T17:08Z
 */!function(e,i){"use strict";"object"==typeof t.exports?t.exports=e.document?i(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return i(t)}:i(e)}("undefined"!=typeof window?window:this,(function(i,g){"use strict";var o=[],r=Object.getPrototypeOf,A=o.slice,s=o.flat?function(t){return o.flat.call(t)}:function(t){return o.concat.apply([],t)},C=o.push,I=o.indexOf,a={},l=a.toString,c=a.hasOwnProperty,u=c.toString,d=u.call(Object),h={},p=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},f=function(t){return null!=t&&t===t.window},v=i.document,y={type:!0,src:!0,nonce:!0,noModule:!0};function m(t,e,i){var n,g,o=(i=i||v).createElement("script");if(o.text=t,e)for(n in y)(g=e[n]||e.getAttribute&&e.getAttribute(n))&&o.setAttribute(n,g);i.head.appendChild(o).parentNode.removeChild(o)}function b(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?a[l.call(t)]||"object":typeof t}var x=function(t,e){return new x.fn.init(t,e)};function w(t){var e=!!t&&"length"in t&&t.length,i=b(t);return!p(t)&&!f(t)&&("array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t)}x.fn=x.prototype={jquery:"3.6.0",constructor:x,length:0,toArray:function(){return A.call(this)},get:function(t){return null==t?A.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=x.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return x.each(this,t)},map:function(t){return this.pushStack(x.map(this,(function(e,i){return t.call(e,i,e)})))},slice:function(){return this.pushStack(A.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(x.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(x.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,i=+t+(t<0?e:0);return this.pushStack(i>=0&&i<e?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:C,sort:o.sort,splice:o.splice},x.extend=x.fn.extend=function(){var t,e,i,n,g,o,r=arguments[0]||{},A=1,s=arguments.length,C=!1;for("boolean"==typeof r&&(C=r,r=arguments[A]||{},A++),"object"==typeof r||p(r)||(r={}),A===s&&(r=this,A--);A<s;A++)if(null!=(t=arguments[A]))for(e in t)n=t[e],"__proto__"!==e&&r!==n&&(C&&n&&(x.isPlainObject(n)||(g=Array.isArray(n)))?(i=r[e],o=g&&!Array.isArray(i)?[]:g||x.isPlainObject(i)?i:{},g=!1,r[e]=x.extend(C,o,n)):void 0!==n&&(r[e]=n));return r},x.extend({expando:"jQuery"+("3.6.0"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,i;return!(!t||"[object Object]"!==l.call(t))&&(!(e=r(t))||"function"==typeof(i=c.call(e,"constructor")&&e.constructor)&&u.call(i)===d)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,i){m(t,{nonce:e&&e.nonce},i)},each:function(t,e){var i,n=0;if(w(t))for(i=t.length;n<i&&!1!==e.call(t[n],n,t[n]);n++);else for(n in t)if(!1===e.call(t[n],n,t[n]))break;return t},makeArray:function(t,e){var i=e||[];return null!=t&&(w(Object(t))?x.merge(i,"string"==typeof t?[t]:t):C.call(i,t)),i},inArray:function(t,e,i){return null==e?-1:I.call(e,t,i)},merge:function(t,e){for(var i=+e.length,n=0,g=t.length;n<i;n++)t[g++]=e[n];return t.length=g,t},grep:function(t,e,i){for(var n=[],g=0,o=t.length,r=!i;g<o;g++)!e(t[g],g)!==r&&n.push(t[g]);return n},map:function(t,e,i){var n,g,o=0,r=[];if(w(t))for(n=t.length;o<n;o++)null!=(g=e(t[o],o,i))&&r.push(g);else for(o in t)null!=(g=e(t[o],o,i))&&r.push(g);return s(r)},guid:1,support:h}),"function"==typeof Symbol&&(x.fn[Symbol.iterator]=o[Symbol.iterator]),x.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){a["[object "+e+"]"]=e.toLowerCase()}));var k=
/*!
 * Sizzle CSS Selector Engine v2.3.6
 * https://sizzlejs.com/
 *
 * Copyright JS Foundation and other contributors
 * Released under the MIT license
 * https://js.foundation/
 *
 * Date: 2021-02-16
 */
function(t){var e,i,n,g,o,r,A,s,C,I,a,l,c,u,d,h,p,f,v,y="sizzle"+1*new Date,m=t.document,b=0,x=0,w=st(),k=st(),O=st(),D=st(),M=function(t,e){return t===e&&(a=!0),0},T={}.hasOwnProperty,_=[],N=_.pop,j=_.push,E=_.push,B=_.slice,F=function(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",S="[\\x20\\t\\r\\n\\f]",Z="(?:\\\\[\\da-fA-F]{1,6}"+S+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",z="\\["+S+"*("+Z+")(?:"+S+"*([*^$|!~]?=)"+S+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+Z+"))|)"+S+"*\\]",G=":("+Z+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+z+")*)|.*)\\)|)",L=new RegExp(S+"+","g"),Q=new RegExp("^"+S+"+|((?:^|[^\\\\])(?:\\\\.)*)"+S+"+$","g"),W=new RegExp("^"+S+"*,"+S+"*"),P=new RegExp("^"+S+"*([>+~]|"+S+")"+S+"*"),U=new RegExp(S+"|>"),Y=new RegExp(G),V=new RegExp("^"+Z+"$"),X={ID:new RegExp("^#("+Z+")"),CLASS:new RegExp("^\\.("+Z+")"),TAG:new RegExp("^("+Z+"|[*])"),ATTR:new RegExp("^"+z),PSEUDO:new RegExp("^"+G),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+S+"*(even|odd|(([+-]|)(\\d*)n|)"+S+"*(?:([+-]|)"+S+"*(\\d+)|))"+S+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+S+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+S+"*((?:-\\d)?\\d*)"+S+"*\\)|)(?=[^-]|$)","i")},H=/HTML$/i,J=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,q=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=new RegExp("\\\\[\\da-fA-F]{1,6}"+S+"?|\\\\([^\\r\\n\\f])","g"),it=function(t,e){var i="0x"+t.slice(1)-65536;return e||(i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320))},nt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,gt=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},ot=function(){l()},rt=yt((function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{E.apply(_=B.call(m.childNodes),m.childNodes),_[m.childNodes.length].nodeType}catch(t){E={apply:_.length?function(t,e){j.apply(t,B.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}function At(t,e,n,g){var o,A,C,I,a,u,p,f=e&&e.ownerDocument,m=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==m&&9!==m&&11!==m)return n;if(!g&&(l(e),e=e||c,d)){if(11!==m&&(a=$.exec(t)))if(o=a[1]){if(9===m){if(!(C=e.getElementById(o)))return n;if(C.id===o)return n.push(C),n}else if(f&&(C=f.getElementById(o))&&v(e,C)&&C.id===o)return n.push(C),n}else{if(a[2])return E.apply(n,e.getElementsByTagName(t)),n;if((o=a[3])&&i.getElementsByClassName&&e.getElementsByClassName)return E.apply(n,e.getElementsByClassName(o)),n}if(i.qsa&&!D[t+" "]&&(!h||!h.test(t))&&(1!==m||"object"!==e.nodeName.toLowerCase())){if(p=t,f=e,1===m&&(U.test(t)||P.test(t))){for((f=tt.test(t)&&pt(e.parentNode)||e)===e&&i.scope||((I=e.getAttribute("id"))?I=I.replace(nt,gt):e.setAttribute("id",I=y)),A=(u=r(t)).length;A--;)u[A]=(I?"#"+I:":scope")+" "+vt(u[A]);p=u.join(",")}try{return E.apply(n,f.querySelectorAll(p)),n}catch(e){D(t,!0)}finally{I===y&&e.removeAttribute("id")}}}return s(t.replace(Q,"$1"),e,n,g)}function st(){var t=[];return function e(i,g){return t.push(i+" ")>n.cacheLength&&delete e[t.shift()],e[i+" "]=g}}function Ct(t){return t[y]=!0,t}function It(t){var e=c.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function at(t,e){for(var i=t.split("|"),g=i.length;g--;)n.attrHandle[i[g]]=e}function lt(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function ct(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function ut(t){return function(e){var i=e.nodeName.toLowerCase();return("input"===i||"button"===i)&&e.type===t}}function dt(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&rt(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ht(t){return Ct((function(e){return e=+e,Ct((function(i,n){for(var g,o=t([],i.length,e),r=o.length;r--;)i[g=o[r]]&&(i[g]=!(n[g]=i[g]))}))}))}function pt(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in i=At.support={},o=At.isXML=function(t){var e=t&&t.namespaceURI,i=t&&(t.ownerDocument||t).documentElement;return!H.test(e||i&&i.nodeName||"HTML")},l=At.setDocument=function(t){var e,g,r=t?t.ownerDocument||t:m;return r!=c&&9===r.nodeType&&r.documentElement?(u=(c=r).documentElement,d=!o(c),m!=c&&(g=c.defaultView)&&g.top!==g&&(g.addEventListener?g.addEventListener("unload",ot,!1):g.attachEvent&&g.attachEvent("onunload",ot)),i.scope=It((function(t){return u.appendChild(t).appendChild(c.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length})),i.attributes=It((function(t){return t.className="i",!t.getAttribute("className")})),i.getElementsByTagName=It((function(t){return t.appendChild(c.createComment("")),!t.getElementsByTagName("*").length})),i.getElementsByClassName=q.test(c.getElementsByClassName),i.getById=It((function(t){return u.appendChild(t).id=y,!c.getElementsByName||!c.getElementsByName(y).length})),i.getById?(n.filter.ID=function(t){var e=t.replace(et,it);return function(t){return t.getAttribute("id")===e}},n.find.ID=function(t,e){if(void 0!==e.getElementById&&d){var i=e.getElementById(t);return i?[i]:[]}}):(n.filter.ID=function(t){var e=t.replace(et,it);return function(t){var i=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return i&&i.value===e}},n.find.ID=function(t,e){if(void 0!==e.getElementById&&d){var i,n,g,o=e.getElementById(t);if(o){if((i=o.getAttributeNode("id"))&&i.value===t)return[o];for(g=e.getElementsByName(t),n=0;o=g[n++];)if((i=o.getAttributeNode("id"))&&i.value===t)return[o]}return[]}}),n.find.TAG=i.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):i.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,n=[],g=0,o=e.getElementsByTagName(t);if("*"===t){for(;i=o[g++];)1===i.nodeType&&n.push(i);return n}return o},n.find.CLASS=i.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&d)return e.getElementsByClassName(t)},p=[],h=[],(i.qsa=q.test(c.querySelectorAll))&&(It((function(t){var e;u.appendChild(t).innerHTML="<a id='"+y+"'></a><select id='"+y+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&h.push("[*^$]="+S+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||h.push("\\["+S+"*(?:value|"+R+")"),t.querySelectorAll("[id~="+y+"-]").length||h.push("~="),(e=c.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||h.push("\\["+S+"*name"+S+"*="+S+"*(?:''|\"\")"),t.querySelectorAll(":checked").length||h.push(":checked"),t.querySelectorAll("a#"+y+"+*").length||h.push(".#.+[+~]"),t.querySelectorAll("\\\f"),h.push("[\\r\\n\\f]")})),It((function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=c.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&h.push("name"+S+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&h.push(":enabled",":disabled"),u.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),h.push(",.*:")}))),(i.matchesSelector=q.test(f=u.matches||u.webkitMatchesSelector||u.mozMatchesSelector||u.oMatchesSelector||u.msMatchesSelector))&&It((function(t){i.disconnectedMatch=f.call(t,"*"),f.call(t,"[s!='']:x"),p.push("!=",G)})),h=h.length&&new RegExp(h.join("|")),p=p.length&&new RegExp(p.join("|")),e=q.test(u.compareDocumentPosition),v=e||q.test(u.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},M=e?function(t,e){if(t===e)return a=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!i.sortDetached&&e.compareDocumentPosition(t)===n?t==c||t.ownerDocument==m&&v(m,t)?-1:e==c||e.ownerDocument==m&&v(m,e)?1:I?F(I,t)-F(I,e):0:4&n?-1:1)}:function(t,e){if(t===e)return a=!0,0;var i,n=0,g=t.parentNode,o=e.parentNode,r=[t],A=[e];if(!g||!o)return t==c?-1:e==c?1:g?-1:o?1:I?F(I,t)-F(I,e):0;if(g===o)return lt(t,e);for(i=t;i=i.parentNode;)r.unshift(i);for(i=e;i=i.parentNode;)A.unshift(i);for(;r[n]===A[n];)n++;return n?lt(r[n],A[n]):r[n]==m?-1:A[n]==m?1:0},c):c},At.matches=function(t,e){return At(t,null,null,e)},At.matchesSelector=function(t,e){if(l(t),i.matchesSelector&&d&&!D[e+" "]&&(!p||!p.test(e))&&(!h||!h.test(e)))try{var n=f.call(t,e);if(n||i.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){D(e,!0)}return At(e,c,null,[t]).length>0},At.contains=function(t,e){return(t.ownerDocument||t)!=c&&l(t),v(t,e)},At.attr=function(t,e){(t.ownerDocument||t)!=c&&l(t);var g=n.attrHandle[e.toLowerCase()],o=g&&T.call(n.attrHandle,e.toLowerCase())?g(t,e,!d):void 0;return void 0!==o?o:i.attributes||!d?t.getAttribute(e):(o=t.getAttributeNode(e))&&o.specified?o.value:null},At.escape=function(t){return(t+"").replace(nt,gt)},At.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},At.uniqueSort=function(t){var e,n=[],g=0,o=0;if(a=!i.detectDuplicates,I=!i.sortStable&&t.slice(0),t.sort(M),a){for(;e=t[o++];)e===t[o]&&(g=n.push(o));for(;g--;)t.splice(n[g],1)}return I=null,t},g=At.getText=function(t){var e,i="",n=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=g(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[n++];)i+=g(e);return i},(n=At.selectors={cacheLength:50,createPseudo:Ct,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(et,it),t[3]=(t[3]||t[4]||t[5]||"").replace(et,it),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||At.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&At.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return X.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&Y.test(i)&&(e=r(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(et,it).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=w[t+" "];return e||(e=new RegExp("(^|"+S+")"+t+"("+S+"|$)"))&&w(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,i){return function(n){var g=At.attr(n,t);return null==g?"!="===e:!e||(g+="","="===e?g===i:"!="===e?g!==i:"^="===e?i&&0===g.indexOf(i):"*="===e?i&&g.indexOf(i)>-1:"$="===e?i&&g.slice(-i.length)===i:"~="===e?(" "+g.replace(L," ")+" ").indexOf(i)>-1:"|="===e&&(g===i||g.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,i,n,g){var o="nth"!==t.slice(0,3),r="last"!==t.slice(-4),A="of-type"===e;return 1===n&&0===g?function(t){return!!t.parentNode}:function(e,i,s){var C,I,a,l,c,u,d=o!==r?"nextSibling":"previousSibling",h=e.parentNode,p=A&&e.nodeName.toLowerCase(),f=!s&&!A,v=!1;if(h){if(o){for(;d;){for(l=e;l=l[d];)if(A?l.nodeName.toLowerCase()===p:1===l.nodeType)return!1;u=d="only"===t&&!u&&"nextSibling"}return!0}if(u=[r?h.firstChild:h.lastChild],r&&f){for(v=(c=(C=(I=(a=(l=h)[y]||(l[y]={}))[l.uniqueID]||(a[l.uniqueID]={}))[t]||[])[0]===b&&C[1])&&C[2],l=c&&h.childNodes[c];l=++c&&l&&l[d]||(v=c=0)||u.pop();)if(1===l.nodeType&&++v&&l===e){I[t]=[b,c,v];break}}else if(f&&(v=c=(C=(I=(a=(l=e)[y]||(l[y]={}))[l.uniqueID]||(a[l.uniqueID]={}))[t]||[])[0]===b&&C[1]),!1===v)for(;(l=++c&&l&&l[d]||(v=c=0)||u.pop())&&((A?l.nodeName.toLowerCase()!==p:1!==l.nodeType)||!++v||(f&&((I=(a=l[y]||(l[y]={}))[l.uniqueID]||(a[l.uniqueID]={}))[t]=[b,v]),l!==e)););return(v-=g)===n||v%n==0&&v/n>=0}}},PSEUDO:function(t,e){var i,g=n.pseudos[t]||n.setFilters[t.toLowerCase()]||At.error("unsupported pseudo: "+t);return g[y]?g(e):g.length>1?(i=[t,t,"",e],n.setFilters.hasOwnProperty(t.toLowerCase())?Ct((function(t,i){for(var n,o=g(t,e),r=o.length;r--;)t[n=F(t,o[r])]=!(i[n]=o[r])})):function(t){return g(t,0,i)}):g}},pseudos:{not:Ct((function(t){var e=[],i=[],n=A(t.replace(Q,"$1"));return n[y]?Ct((function(t,e,i,g){for(var o,r=n(t,null,g,[]),A=t.length;A--;)(o=r[A])&&(t[A]=!(e[A]=o))})):function(t,g,o){return e[0]=t,n(e,null,o,i),e[0]=null,!i.pop()}})),has:Ct((function(t){return function(e){return At(t,e).length>0}})),contains:Ct((function(t){return t=t.replace(et,it),function(e){return(e.textContent||g(e)).indexOf(t)>-1}})),lang:Ct((function(t){return V.test(t||"")||At.error("unsupported lang: "+t),t=t.replace(et,it).toLowerCase(),function(e){var i;do{if(i=d?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(i=i.toLowerCase())===t||0===i.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(e){var i=t.location&&t.location.hash;return i&&i.slice(1)===e.id},root:function(t){return t===u},focus:function(t){return t===c.activeElement&&(!c.hasFocus||c.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:dt(!1),disabled:dt(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!n.pseudos.empty(t)},header:function(t){return K.test(t.nodeName)},input:function(t){return J.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:ht((function(){return[0]})),last:ht((function(t,e){return[e-1]})),eq:ht((function(t,e,i){return[i<0?i+e:i]})),even:ht((function(t,e){for(var i=0;i<e;i+=2)t.push(i);return t})),odd:ht((function(t,e){for(var i=1;i<e;i+=2)t.push(i);return t})),lt:ht((function(t,e,i){for(var n=i<0?i+e:i>e?e:i;--n>=0;)t.push(n);return t})),gt:ht((function(t,e,i){for(var n=i<0?i+e:i;++n<e;)t.push(n);return t}))}}).pseudos.nth=n.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})n.pseudos[e]=ct(e);for(e in{submit:!0,reset:!0})n.pseudos[e]=ut(e);function ft(){}function vt(t){for(var e=0,i=t.length,n="";e<i;e++)n+=t[e].value;return n}function yt(t,e,i){var n=e.dir,g=e.next,o=g||n,r=i&&"parentNode"===o,A=x++;return e.first?function(e,i,g){for(;e=e[n];)if(1===e.nodeType||r)return t(e,i,g);return!1}:function(e,i,s){var C,I,a,l=[b,A];if(s){for(;e=e[n];)if((1===e.nodeType||r)&&t(e,i,s))return!0}else for(;e=e[n];)if(1===e.nodeType||r)if(I=(a=e[y]||(e[y]={}))[e.uniqueID]||(a[e.uniqueID]={}),g&&g===e.nodeName.toLowerCase())e=e[n]||e;else{if((C=I[o])&&C[0]===b&&C[1]===A)return l[2]=C[2];if(I[o]=l,l[2]=t(e,i,s))return!0}return!1}}function mt(t){return t.length>1?function(e,i,n){for(var g=t.length;g--;)if(!t[g](e,i,n))return!1;return!0}:t[0]}function bt(t,e,i,n,g){for(var o,r=[],A=0,s=t.length,C=null!=e;A<s;A++)(o=t[A])&&(i&&!i(o,n,g)||(r.push(o),C&&e.push(A)));return r}function xt(t,e,i,n,g,o){return n&&!n[y]&&(n=xt(n)),g&&!g[y]&&(g=xt(g,o)),Ct((function(o,r,A,s){var C,I,a,l=[],c=[],u=r.length,d=o||function(t,e,i){for(var n=0,g=e.length;n<g;n++)At(t,e[n],i);return i}(e||"*",A.nodeType?[A]:A,[]),h=!t||!o&&e?d:bt(d,l,t,A,s),p=i?g||(o?t:u||n)?[]:r:h;if(i&&i(h,p,A,s),n)for(C=bt(p,c),n(C,[],A,s),I=C.length;I--;)(a=C[I])&&(p[c[I]]=!(h[c[I]]=a));if(o){if(g||t){if(g){for(C=[],I=p.length;I--;)(a=p[I])&&C.push(h[I]=a);g(null,p=[],C,s)}for(I=p.length;I--;)(a=p[I])&&(C=g?F(o,a):l[I])>-1&&(o[C]=!(r[C]=a))}}else p=bt(p===r?p.splice(u,p.length):p),g?g(null,r,p,s):E.apply(r,p)}))}function wt(t){for(var e,i,g,o=t.length,r=n.relative[t[0].type],A=r||n.relative[" "],s=r?1:0,I=yt((function(t){return t===e}),A,!0),a=yt((function(t){return F(e,t)>-1}),A,!0),l=[function(t,i,n){var g=!r&&(n||i!==C)||((e=i).nodeType?I(t,i,n):a(t,i,n));return e=null,g}];s<o;s++)if(i=n.relative[t[s].type])l=[yt(mt(l),i)];else{if((i=n.filter[t[s].type].apply(null,t[s].matches))[y]){for(g=++s;g<o&&!n.relative[t[g].type];g++);return xt(s>1&&mt(l),s>1&&vt(t.slice(0,s-1).concat({value:" "===t[s-2].type?"*":""})).replace(Q,"$1"),i,s<g&&wt(t.slice(s,g)),g<o&&wt(t=t.slice(g)),g<o&&vt(t))}l.push(i)}return mt(l)}return ft.prototype=n.filters=n.pseudos,n.setFilters=new ft,r=At.tokenize=function(t,e){var i,g,o,r,A,s,C,I=k[t+" "];if(I)return e?0:I.slice(0);for(A=t,s=[],C=n.preFilter;A;){for(r in i&&!(g=W.exec(A))||(g&&(A=A.slice(g[0].length)||A),s.push(o=[])),i=!1,(g=P.exec(A))&&(i=g.shift(),o.push({value:i,type:g[0].replace(Q," ")}),A=A.slice(i.length)),n.filter)!(g=X[r].exec(A))||C[r]&&!(g=C[r](g))||(i=g.shift(),o.push({value:i,type:r,matches:g}),A=A.slice(i.length));if(!i)break}return e?A.length:A?At.error(t):k(t,s).slice(0)},A=At.compile=function(t,e){var i,g=[],o=[],A=O[t+" "];if(!A){for(e||(e=r(t)),i=e.length;i--;)(A=wt(e[i]))[y]?g.push(A):o.push(A);(A=O(t,function(t,e){var i=e.length>0,g=t.length>0,o=function(o,r,A,s,I){var a,u,h,p=0,f="0",v=o&&[],y=[],m=C,x=o||g&&n.find.TAG("*",I),w=b+=null==m?1:Math.random()||.1,k=x.length;for(I&&(C=r==c||r||I);f!==k&&null!=(a=x[f]);f++){if(g&&a){for(u=0,r||a.ownerDocument==c||(l(a),A=!d);h=t[u++];)if(h(a,r||c,A)){s.push(a);break}I&&(b=w)}i&&((a=!h&&a)&&p--,o&&v.push(a))}if(p+=f,i&&f!==p){for(u=0;h=e[u++];)h(v,y,r,A);if(o){if(p>0)for(;f--;)v[f]||y[f]||(y[f]=N.call(s));y=bt(y)}E.apply(s,y),I&&!o&&y.length>0&&p+e.length>1&&At.uniqueSort(s)}return I&&(b=w,C=m),v};return i?Ct(o):o}(o,g))).selector=t}return A},s=At.select=function(t,e,i,g){var o,s,C,I,a,l="function"==typeof t&&t,c=!g&&r(t=l.selector||t);if(i=i||[],1===c.length){if((s=c[0]=c[0].slice(0)).length>2&&"ID"===(C=s[0]).type&&9===e.nodeType&&d&&n.relative[s[1].type]){if(!(e=(n.find.ID(C.matches[0].replace(et,it),e)||[])[0]))return i;l&&(e=e.parentNode),t=t.slice(s.shift().value.length)}for(o=X.needsContext.test(t)?0:s.length;o--&&(C=s[o],!n.relative[I=C.type]);)if((a=n.find[I])&&(g=a(C.matches[0].replace(et,it),tt.test(s[0].type)&&pt(e.parentNode)||e))){if(s.splice(o,1),!(t=g.length&&vt(s)))return E.apply(i,g),i;break}}return(l||A(t,c))(g,e,!d,i,!e||tt.test(t)&&pt(e.parentNode)||e),i},i.sortStable=y.split("").sort(M).join("")===y,i.detectDuplicates=!!a,l(),i.sortDetached=It((function(t){return 1&t.compareDocumentPosition(c.createElement("fieldset"))})),It((function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")}))||at("type|href|height|width",(function(t,e,i){if(!i)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)})),i.attributes&&It((function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||at("value",(function(t,e,i){if(!i&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),It((function(t){return null==t.getAttribute("disabled")}))||at(R,(function(t,e,i){var n;if(!i)return!0===t[e]?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null})),At}(i);x.find=k,x.expr=k.selectors,x.expr[":"]=x.expr.pseudos,x.uniqueSort=x.unique=k.uniqueSort,x.text=k.getText,x.isXMLDoc=k.isXML,x.contains=k.contains,x.escapeSelector=k.escape;var O=function(t,e,i){for(var n=[],g=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(g&&x(t).is(i))break;n.push(t)}return n},D=function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i},M=x.expr.match.needsContext;function T(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var _=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function N(t,e,i){return p(e)?x.grep(t,(function(t,n){return!!e.call(t,n,t)!==i})):e.nodeType?x.grep(t,(function(t){return t===e!==i})):"string"!=typeof e?x.grep(t,(function(t){return I.call(e,t)>-1!==i})):x.filter(e,t,i)}x.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?x.find.matchesSelector(n,t)?[n]:[]:x.find.matches(t,x.grep(e,(function(t){return 1===t.nodeType})))},x.fn.extend({find:function(t){var e,i,n=this.length,g=this;if("string"!=typeof t)return this.pushStack(x(t).filter((function(){for(e=0;e<n;e++)if(x.contains(g[e],this))return!0})));for(i=this.pushStack([]),e=0;e<n;e++)x.find(t,g[e],i);return n>1?x.uniqueSort(i):i},filter:function(t){return this.pushStack(N(this,t||[],!1))},not:function(t){return this.pushStack(N(this,t||[],!0))},is:function(t){return!!N(this,"string"==typeof t&&M.test(t)?x(t):t||[],!1).length}});var j,E=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(x.fn.init=function(t,e,i){var n,g;if(!t)return this;if(i=i||j,"string"==typeof t){if(!(n="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:E.exec(t))||!n[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof x?e[0]:e,x.merge(this,x.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:v,!0)),_.test(n[1])&&x.isPlainObject(e))for(n in e)p(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return(g=v.getElementById(n[2]))&&(this[0]=g,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):p(t)?void 0!==i.ready?i.ready(t):t(x):x.makeArray(t,this)}).prototype=x.fn,j=x(v);var B=/^(?:parents|prev(?:Until|All))/,F={children:!0,contents:!0,next:!0,prev:!0};function R(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}x.fn.extend({has:function(t){var e=x(t,this),i=e.length;return this.filter((function(){for(var t=0;t<i;t++)if(x.contains(this,e[t]))return!0}))},closest:function(t,e){var i,n=0,g=this.length,o=[],r="string"!=typeof t&&x(t);if(!M.test(t))for(;n<g;n++)for(i=this[n];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(r?r.index(i)>-1:1===i.nodeType&&x.find.matchesSelector(i,t))){o.push(i);break}return this.pushStack(o.length>1?x.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?I.call(x(t),this[0]):I.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(x.uniqueSort(x.merge(this.get(),x(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),x.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return O(t,"parentNode")},parentsUntil:function(t,e,i){return O(t,"parentNode",i)},next:function(t){return R(t,"nextSibling")},prev:function(t){return R(t,"previousSibling")},nextAll:function(t){return O(t,"nextSibling")},prevAll:function(t){return O(t,"previousSibling")},nextUntil:function(t,e,i){return O(t,"nextSibling",i)},prevUntil:function(t,e,i){return O(t,"previousSibling",i)},siblings:function(t){return D((t.parentNode||{}).firstChild,t)},children:function(t){return D(t.firstChild)},contents:function(t){return null!=t.contentDocument&&r(t.contentDocument)?t.contentDocument:(T(t,"template")&&(t=t.content||t),x.merge([],t.childNodes))}},(function(t,e){x.fn[t]=function(i,n){var g=x.map(this,e,i);return"Until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(g=x.filter(n,g)),this.length>1&&(F[t]||x.uniqueSort(g),B.test(t)&&g.reverse()),this.pushStack(g)}}));var S=/[^\x20\t\r\n\f]+/g;function Z(t){return t}function z(t){throw t}function G(t,e,i,n){var g;try{t&&p(g=t.promise)?g.call(t).done(e).fail(i):t&&p(g=t.then)?g.call(t,e,i):e.apply(void 0,[t].slice(n))}catch(t){i.apply(void 0,[t])}}x.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return x.each(t.match(S)||[],(function(t,i){e[i]=!0})),e}(t):x.extend({},t);var e,i,n,g,o=[],r=[],A=-1,s=function(){for(g=g||t.once,n=e=!0;r.length;A=-1)for(i=r.shift();++A<o.length;)!1===o[A].apply(i[0],i[1])&&t.stopOnFalse&&(A=o.length,i=!1);t.memory||(i=!1),e=!1,g&&(o=i?[]:"")},C={add:function(){return o&&(i&&!e&&(A=o.length-1,r.push(i)),function e(i){x.each(i,(function(i,n){p(n)?t.unique&&C.has(n)||o.push(n):n&&n.length&&"string"!==b(n)&&e(n)}))}(arguments),i&&!e&&s()),this},remove:function(){return x.each(arguments,(function(t,e){for(var i;(i=x.inArray(e,o,i))>-1;)o.splice(i,1),i<=A&&A--})),this},has:function(t){return t?x.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return g=r=[],o=i="",this},disabled:function(){return!o},lock:function(){return g=r=[],i||e||(o=i=""),this},locked:function(){return!!g},fireWith:function(t,i){return g||(i=[t,(i=i||[]).slice?i.slice():i],r.push(i),e||s()),this},fire:function(){return C.fireWith(this,arguments),this},fired:function(){return!!n}};return C},x.extend({Deferred:function(t){var e=[["notify","progress",x.Callbacks("memory"),x.Callbacks("memory"),2],["resolve","done",x.Callbacks("once memory"),x.Callbacks("once memory"),0,"resolved"],["reject","fail",x.Callbacks("once memory"),x.Callbacks("once memory"),1,"rejected"]],n="pending",g={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return g.then(null,t)},pipe:function(){var t=arguments;return x.Deferred((function(i){x.each(e,(function(e,n){var g=p(t[n[4]])&&t[n[4]];o[n[1]]((function(){var t=g&&g.apply(this,arguments);t&&p(t.promise)?t.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[n[0]+"With"](this,g?[t]:arguments)}))})),t=null})).promise()},then:function(t,n,g){var o=0;function r(t,e,n,g){return function(){var A=this,s=arguments,C=function(){var i,C;if(!(t<o)){if((i=n.apply(A,s))===e.promise())throw new TypeError("Thenable self-resolution");C=i&&("object"==typeof i||"function"==typeof i)&&i.then,p(C)?g?C.call(i,r(o,e,Z,g),r(o,e,z,g)):(o++,C.call(i,r(o,e,Z,g),r(o,e,z,g),r(o,e,Z,e.notifyWith))):(n!==Z&&(A=void 0,s=[i]),(g||e.resolveWith)(A,s))}},I=g?C:function(){try{C()}catch(i){x.Deferred.exceptionHook&&x.Deferred.exceptionHook(i,I.stackTrace),t+1>=o&&(n!==z&&(A=void 0,s=[i]),e.rejectWith(A,s))}};t?I():(x.Deferred.getStackHook&&(I.stackTrace=x.Deferred.getStackHook()),i.setTimeout(I))}}return x.Deferred((function(i){e[0][3].add(r(0,i,p(g)?g:Z,i.notifyWith)),e[1][3].add(r(0,i,p(t)?t:Z)),e[2][3].add(r(0,i,p(n)?n:z))})).promise()},promise:function(t){return null!=t?x.extend(t,g):g}},o={};return x.each(e,(function(t,i){var r=i[2],A=i[5];g[i[1]]=r.add,A&&r.add((function(){n=A}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),r.add(i[3].fire),o[i[0]]=function(){return o[i[0]+"With"](this===o?void 0:this,arguments),this},o[i[0]+"With"]=r.fireWith})),g.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,i=e,n=Array(i),g=A.call(arguments),o=x.Deferred(),r=function(t){return function(i){n[t]=this,g[t]=arguments.length>1?A.call(arguments):i,--e||o.resolveWith(n,g)}};if(e<=1&&(G(t,o.done(r(i)).resolve,o.reject,!e),"pending"===o.state()||p(g[i]&&g[i].then)))return o.then();for(;i--;)G(g[i],r(i),o.reject);return o.promise()}});var L=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.Deferred.exceptionHook=function(t,e){i.console&&i.console.warn&&t&&L.test(t.name)&&i.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},x.readyException=function(t){i.setTimeout((function(){throw t}))};var Q=x.Deferred();function W(){v.removeEventListener("DOMContentLoaded",W),i.removeEventListener("load",W),x.ready()}x.fn.ready=function(t){return Q.then(t).catch((function(t){x.readyException(t)})),this},x.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--x.readyWait:x.isReady)||(x.isReady=!0,!0!==t&&--x.readyWait>0||Q.resolveWith(v,[x]))}}),x.ready.then=Q.then,"complete"===v.readyState||"loading"!==v.readyState&&!v.documentElement.doScroll?i.setTimeout(x.ready):(v.addEventListener("DOMContentLoaded",W),i.addEventListener("load",W));var P=function(t,e,i,n,g,o,r){var A=0,s=t.length,C=null==i;if("object"===b(i))for(A in g=!0,i)P(t,e,A,i[A],!0,o,r);else if(void 0!==n&&(g=!0,p(n)||(r=!0),C&&(r?(e.call(t,n),e=null):(C=e,e=function(t,e,i){return C.call(x(t),i)})),e))for(;A<s;A++)e(t[A],i,r?n:n.call(t[A],A,e(t[A],i)));return g?t:C?e.call(t):s?e(t[0],i):o},U=/^-ms-/,Y=/-([a-z])/g;function V(t,e){return e.toUpperCase()}function X(t){return t.replace(U,"ms-").replace(Y,V)}var H=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function J(){this.expando=x.expando+J.uid++}J.uid=1,J.prototype={cache:function(t){var e=t[this.expando];return e||(e={},H(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,i){var n,g=this.cache(t);if("string"==typeof e)g[X(e)]=i;else for(n in e)g[X(n)]=e[n];return g},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][X(e)]},access:function(t,e,i){return void 0===e||e&&"string"==typeof e&&void 0===i?this.get(t,e):(this.set(t,e,i),void 0!==i?i:e)},remove:function(t,e){var i,n=t[this.expando];if(void 0!==n){if(void 0!==e){i=(e=Array.isArray(e)?e.map(X):(e=X(e))in n?[e]:e.match(S)||[]).length;for(;i--;)delete n[e[i]]}(void 0===e||x.isEmptyObject(n))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!x.isEmptyObject(e)}};var K=new J,q=new J,$=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,tt=/[A-Z]/g;function et(t,e,i){var n;if(void 0===i&&1===t.nodeType)if(n="data-"+e.replace(tt,"-$&").toLowerCase(),"string"==typeof(i=t.getAttribute(n))){try{i=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:$.test(t)?JSON.parse(t):t)}(i)}catch(t){}q.set(t,e,i)}else i=void 0;return i}x.extend({hasData:function(t){return q.hasData(t)||K.hasData(t)},data:function(t,e,i){return q.access(t,e,i)},removeData:function(t,e){q.remove(t,e)},_data:function(t,e,i){return K.access(t,e,i)},_removeData:function(t,e){K.remove(t,e)}}),x.fn.extend({data:function(t,e){var i,n,g,o=this[0],r=o&&o.attributes;if(void 0===t){if(this.length&&(g=q.get(o),1===o.nodeType&&!K.get(o,"hasDataAttrs"))){for(i=r.length;i--;)r[i]&&0===(n=r[i].name).indexOf("data-")&&(n=X(n.slice(5)),et(o,n,g[n]));K.set(o,"hasDataAttrs",!0)}return g}return"object"==typeof t?this.each((function(){q.set(this,t)})):P(this,(function(e){var i;if(o&&void 0===e)return void 0!==(i=q.get(o,t))||void 0!==(i=et(o,t))?i:void 0;this.each((function(){q.set(this,t,e)}))}),null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){q.remove(this,t)}))}}),x.extend({queue:function(t,e,i){var n;if(t)return e=(e||"fx")+"queue",n=K.get(t,e),i&&(!n||Array.isArray(i)?n=K.access(t,e,x.makeArray(i)):n.push(i)),n||[]},dequeue:function(t,e){e=e||"fx";var i=x.queue(t,e),n=i.length,g=i.shift(),o=x._queueHooks(t,e);"inprogress"===g&&(g=i.shift(),n--),g&&("fx"===e&&i.unshift("inprogress"),delete o.stop,g.call(t,(function(){x.dequeue(t,e)}),o)),!n&&o&&o.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return K.get(t,i)||K.access(t,i,{empty:x.Callbacks("once memory").add((function(){K.remove(t,[e+"queue",i])}))})}}),x.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length<i?x.queue(this[0],t):void 0===e?this:this.each((function(){var i=x.queue(this,t,e);x._queueHooks(this,t),"fx"===t&&"inprogress"!==i[0]&&x.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){x.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var i,n=1,g=x.Deferred(),o=this,r=this.length,A=function(){--n||g.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";r--;)(i=K.get(o[r],t+"queueHooks"))&&i.empty&&(n++,i.empty.add(A));return A(),g.promise(e)}});var it=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,nt=new RegExp("^(?:([+-])=|)("+it+")([a-z%]*)$","i"),gt=["Top","Right","Bottom","Left"],ot=v.documentElement,rt=function(t){return x.contains(t.ownerDocument,t)},At={composed:!0};ot.getRootNode&&(rt=function(t){return x.contains(t.ownerDocument,t)||t.getRootNode(At)===t.ownerDocument});var st=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&rt(t)&&"none"===x.css(t,"display")};function Ct(t,e,i,n){var g,o,r=20,A=n?function(){return n.cur()}:function(){return x.css(t,e,"")},s=A(),C=i&&i[3]||(x.cssNumber[e]?"":"px"),I=t.nodeType&&(x.cssNumber[e]||"px"!==C&&+s)&&nt.exec(x.css(t,e));if(I&&I[3]!==C){for(s/=2,C=C||I[3],I=+s||1;r--;)x.style(t,e,I+C),(1-o)*(1-(o=A()/s||.5))<=0&&(r=0),I/=o;I*=2,x.style(t,e,I+C),i=i||[]}return i&&(I=+I||+s||0,g=i[1]?I+(i[1]+1)*i[2]:+i[2],n&&(n.unit=C,n.start=I,n.end=g)),g}var It={};function at(t){var e,i=t.ownerDocument,n=t.nodeName,g=It[n];return g||(e=i.body.appendChild(i.createElement(n)),g=x.css(e,"display"),e.parentNode.removeChild(e),"none"===g&&(g="block"),It[n]=g,g)}function lt(t,e){for(var i,n,g=[],o=0,r=t.length;o<r;o++)(n=t[o]).style&&(i=n.style.display,e?("none"===i&&(g[o]=K.get(n,"display")||null,g[o]||(n.style.display="")),""===n.style.display&&st(n)&&(g[o]=at(n))):"none"!==i&&(g[o]="none",K.set(n,"display",i)));for(o=0;o<r;o++)null!=g[o]&&(t[o].style.display=g[o]);return t}x.fn.extend({show:function(){return lt(this,!0)},hide:function(){return lt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){st(this)?x(this).show():x(this).hide()}))}});var ct,ut,dt=/^(?:checkbox|radio)$/i,ht=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,pt=/^$|^module$|\/(?:java|ecma)script/i;ct=v.createDocumentFragment().appendChild(v.createElement("div")),(ut=v.createElement("input")).setAttribute("type","radio"),ut.setAttribute("checked","checked"),ut.setAttribute("name","t"),ct.appendChild(ut),h.checkClone=ct.cloneNode(!0).cloneNode(!0).lastChild.checked,ct.innerHTML="<textarea>x</textarea>",h.noCloneChecked=!!ct.cloneNode(!0).lastChild.defaultValue,ct.innerHTML="<option></option>",h.option=!!ct.lastChild;var ft={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function vt(t,e){var i;return i=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&T(t,e)?x.merge([t],i):i}function yt(t,e){for(var i=0,n=t.length;i<n;i++)K.set(t[i],"globalEval",!e||K.get(e[i],"globalEval"))}ft.tbody=ft.tfoot=ft.colgroup=ft.caption=ft.thead,ft.th=ft.td,h.option||(ft.optgroup=ft.option=[1,"<select multiple='multiple'>","</select>"]);var mt=/<|&#?\w+;/;function bt(t,e,i,n,g){for(var o,r,A,s,C,I,a=e.createDocumentFragment(),l=[],c=0,u=t.length;c<u;c++)if((o=t[c])||0===o)if("object"===b(o))x.merge(l,o.nodeType?[o]:o);else if(mt.test(o)){for(r=r||a.appendChild(e.createElement("div")),A=(ht.exec(o)||["",""])[1].toLowerCase(),s=ft[A]||ft._default,r.innerHTML=s[1]+x.htmlPrefilter(o)+s[2],I=s[0];I--;)r=r.lastChild;x.merge(l,r.childNodes),(r=a.firstChild).textContent=""}else l.push(e.createTextNode(o));for(a.textContent="",c=0;o=l[c++];)if(n&&x.inArray(o,n)>-1)g&&g.push(o);else if(C=rt(o),r=vt(a.appendChild(o),"script"),C&&yt(r),i)for(I=0;o=r[I++];)pt.test(o.type||"")&&i.push(o);return a}var xt=/^([^.]*)(?:\.(.+)|)/;function wt(){return!0}function kt(){return!1}function Ot(t,e){return t===function(){try{return v.activeElement}catch(t){}}()==("focus"===e)}function Dt(t,e,i,n,g,o){var r,A;if("object"==typeof e){for(A in"string"!=typeof i&&(n=n||i,i=void 0),e)Dt(t,A,i,n,e[A],o);return t}if(null==n&&null==g?(g=i,n=i=void 0):null==g&&("string"==typeof i?(g=n,n=void 0):(g=n,n=i,i=void 0)),!1===g)g=kt;else if(!g)return t;return 1===o&&(r=g,(g=function(t){return x().off(t),r.apply(this,arguments)}).guid=r.guid||(r.guid=x.guid++)),t.each((function(){x.event.add(this,e,g,n,i)}))}function Mt(t,e,i){i?(K.set(t,e,!1),x.event.add(t,e,{namespace:!1,handler:function(t){var n,g,o=K.get(this,e);if(1&t.isTrigger&&this[e]){if(o.length)(x.event.special[e]||{}).delegateType&&t.stopPropagation();else if(o=A.call(arguments),K.set(this,e,o),n=i(this,e),this[e](),o!==(g=K.get(this,e))||n?K.set(this,e,!1):g={},o!==g)return t.stopImmediatePropagation(),t.preventDefault(),g&&g.value}else o.length&&(K.set(this,e,{value:x.event.trigger(x.extend(o[0],x.Event.prototype),o.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===K.get(t,e)&&x.event.add(t,e,wt)}x.event={global:{},add:function(t,e,i,n,g){var o,r,A,s,C,I,a,l,c,u,d,h=K.get(t);if(H(t))for(i.handler&&(i=(o=i).handler,g=o.selector),g&&x.find.matchesSelector(ot,g),i.guid||(i.guid=x.guid++),(s=h.events)||(s=h.events=Object.create(null)),(r=h.handle)||(r=h.handle=function(e){return void 0!==x&&x.event.triggered!==e.type?x.event.dispatch.apply(t,arguments):void 0}),C=(e=(e||"").match(S)||[""]).length;C--;)c=d=(A=xt.exec(e[C])||[])[1],u=(A[2]||"").split(".").sort(),c&&(a=x.event.special[c]||{},c=(g?a.delegateType:a.bindType)||c,a=x.event.special[c]||{},I=x.extend({type:c,origType:d,data:n,handler:i,guid:i.guid,selector:g,needsContext:g&&x.expr.match.needsContext.test(g),namespace:u.join(".")},o),(l=s[c])||((l=s[c]=[]).delegateCount=0,a.setup&&!1!==a.setup.call(t,n,u,r)||t.addEventListener&&t.addEventListener(c,r)),a.add&&(a.add.call(t,I),I.handler.guid||(I.handler.guid=i.guid)),g?l.splice(l.delegateCount++,0,I):l.push(I),x.event.global[c]=!0)},remove:function(t,e,i,n,g){var o,r,A,s,C,I,a,l,c,u,d,h=K.hasData(t)&&K.get(t);if(h&&(s=h.events)){for(C=(e=(e||"").match(S)||[""]).length;C--;)if(c=d=(A=xt.exec(e[C])||[])[1],u=(A[2]||"").split(".").sort(),c){for(a=x.event.special[c]||{},l=s[c=(n?a.delegateType:a.bindType)||c]||[],A=A[2]&&new RegExp("(^|\\.)"+u.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=o=l.length;o--;)I=l[o],!g&&d!==I.origType||i&&i.guid!==I.guid||A&&!A.test(I.namespace)||n&&n!==I.selector&&("**"!==n||!I.selector)||(l.splice(o,1),I.selector&&l.delegateCount--,a.remove&&a.remove.call(t,I));r&&!l.length&&(a.teardown&&!1!==a.teardown.call(t,u,h.handle)||x.removeEvent(t,c,h.handle),delete s[c])}else for(c in s)x.event.remove(t,c+e[C],i,n,!0);x.isEmptyObject(s)&&K.remove(t,"handle events")}},dispatch:function(t){var e,i,n,g,o,r,A=new Array(arguments.length),s=x.event.fix(t),C=(K.get(this,"events")||Object.create(null))[s.type]||[],I=x.event.special[s.type]||{};for(A[0]=s,e=1;e<arguments.length;e++)A[e]=arguments[e];if(s.delegateTarget=this,!I.preDispatch||!1!==I.preDispatch.call(this,s)){for(r=x.event.handlers.call(this,s,C),e=0;(g=r[e++])&&!s.isPropagationStopped();)for(s.currentTarget=g.elem,i=0;(o=g.handlers[i++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!1!==o.namespace&&!s.rnamespace.test(o.namespace)||(s.handleObj=o,s.data=o.data,void 0!==(n=((x.event.special[o.origType]||{}).handle||o.handler).apply(g.elem,A))&&!1===(s.result=n)&&(s.preventDefault(),s.stopPropagation()));return I.postDispatch&&I.postDispatch.call(this,s),s.result}},handlers:function(t,e){var i,n,g,o,r,A=[],s=e.delegateCount,C=t.target;if(s&&C.nodeType&&!("click"===t.type&&t.button>=1))for(;C!==this;C=C.parentNode||this)if(1===C.nodeType&&("click"!==t.type||!0!==C.disabled)){for(o=[],r={},i=0;i<s;i++)void 0===r[g=(n=e[i]).selector+" "]&&(r[g]=n.needsContext?x(g,this).index(C)>-1:x.find(g,this,null,[C]).length),r[g]&&o.push(n);o.length&&A.push({elem:C,handlers:o})}return C=this,s<e.length&&A.push({elem:C,handlers:e.slice(s)}),A},addProp:function(t,e){Object.defineProperty(x.Event.prototype,t,{enumerable:!0,configurable:!0,get:p(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[x.expando]?t:new x.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return dt.test(e.type)&&e.click&&T(e,"input")&&Mt(e,"click",wt),!1},trigger:function(t){var e=this||t;return dt.test(e.type)&&e.click&&T(e,"input")&&Mt(e,"click"),!0},_default:function(t){var e=t.target;return dt.test(e.type)&&e.click&&T(e,"input")&&K.get(e,"click")||T(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},x.removeEvent=function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i)},x.Event=function(t,e){if(!(this instanceof x.Event))return new x.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?wt:kt,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&x.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[x.expando]=!0},x.Event.prototype={constructor:x.Event,isDefaultPrevented:kt,isPropagationStopped:kt,isImmediatePropagationStopped:kt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=wt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=wt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=wt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},x.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},x.event.addProp),x.each({focus:"focusin",blur:"focusout"},(function(t,e){x.event.special[t]={setup:function(){return Mt(this,t,Ot),!1},trigger:function(){return Mt(this,t),!0},_default:function(){return!0},delegateType:e}})),x.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){x.event.special[t]={delegateType:e,bindType:e,handle:function(t){var i,n=this,g=t.relatedTarget,o=t.handleObj;return g&&(g===n||x.contains(n,g))||(t.type=o.origType,i=o.handler.apply(this,arguments),t.type=e),i}}})),x.fn.extend({on:function(t,e,i,n){return Dt(this,t,e,i,n)},one:function(t,e,i,n){return Dt(this,t,e,i,n,1)},off:function(t,e,i){var n,g;if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,x(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof t){for(g in t)this.off(g,e,t[g]);return this}return!1!==e&&"function"!=typeof e||(i=e,e=void 0),!1===i&&(i=kt),this.each((function(){x.event.remove(this,t,i,e)}))}});var Tt=/<script|<style|<link/i,_t=/checked\s*(?:[^=]|=\s*.checked.)/i,Nt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function jt(t,e){return T(t,"table")&&T(11!==e.nodeType?e:e.firstChild,"tr")&&x(t).children("tbody")[0]||t}function Et(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Bt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Ft(t,e){var i,n,g,o,r,A;if(1===e.nodeType){if(K.hasData(t)&&(A=K.get(t).events))for(g in K.remove(e,"handle events"),A)for(i=0,n=A[g].length;i<n;i++)x.event.add(e,g,A[g][i]);q.hasData(t)&&(o=q.access(t),r=x.extend({},o),q.set(e,r))}}function Rt(t,e){var i=e.nodeName.toLowerCase();"input"===i&&dt.test(t.type)?e.checked=t.checked:"input"!==i&&"textarea"!==i||(e.defaultValue=t.defaultValue)}function St(t,e,i,n){e=s(e);var g,o,r,A,C,I,a=0,l=t.length,c=l-1,u=e[0],d=p(u);if(d||l>1&&"string"==typeof u&&!h.checkClone&&_t.test(u))return t.each((function(g){var o=t.eq(g);d&&(e[0]=u.call(this,g,o.html())),St(o,e,i,n)}));if(l&&(o=(g=bt(e,t[0].ownerDocument,!1,t,n)).firstChild,1===g.childNodes.length&&(g=o),o||n)){for(A=(r=x.map(vt(g,"script"),Et)).length;a<l;a++)C=g,a!==c&&(C=x.clone(C,!0,!0),A&&x.merge(r,vt(C,"script"))),i.call(t[a],C,a);if(A)for(I=r[r.length-1].ownerDocument,x.map(r,Bt),a=0;a<A;a++)C=r[a],pt.test(C.type||"")&&!K.access(C,"globalEval")&&x.contains(I,C)&&(C.src&&"module"!==(C.type||"").toLowerCase()?x._evalUrl&&!C.noModule&&x._evalUrl(C.src,{nonce:C.nonce||C.getAttribute("nonce")},I):m(C.textContent.replace(Nt,""),C,I))}return t}function Zt(t,e,i){for(var n,g=e?x.filter(e,t):t,o=0;null!=(n=g[o]);o++)i||1!==n.nodeType||x.cleanData(vt(n)),n.parentNode&&(i&&rt(n)&&yt(vt(n,"script")),n.parentNode.removeChild(n));return t}x.extend({htmlPrefilter:function(t){return t},clone:function(t,e,i){var n,g,o,r,A=t.cloneNode(!0),s=rt(t);if(!(h.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||x.isXMLDoc(t)))for(r=vt(A),n=0,g=(o=vt(t)).length;n<g;n++)Rt(o[n],r[n]);if(e)if(i)for(o=o||vt(t),r=r||vt(A),n=0,g=o.length;n<g;n++)Ft(o[n],r[n]);else Ft(t,A);return(r=vt(A,"script")).length>0&&yt(r,!s&&vt(t,"script")),A},cleanData:function(t){for(var e,i,n,g=x.event.special,o=0;void 0!==(i=t[o]);o++)if(H(i)){if(e=i[K.expando]){if(e.events)for(n in e.events)g[n]?x.event.remove(i,n):x.removeEvent(i,n,e.handle);i[K.expando]=void 0}i[q.expando]&&(i[q.expando]=void 0)}}}),x.fn.extend({detach:function(t){return Zt(this,t,!0)},remove:function(t){return Zt(this,t)},text:function(t){return P(this,(function(t){return void 0===t?x.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return St(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||jt(this,t).appendChild(t)}))},prepend:function(){return St(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=jt(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return St(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return St(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(x.cleanData(vt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return x.clone(this,t,e)}))},html:function(t){return P(this,(function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Tt.test(t)&&!ft[(ht.exec(t)||["",""])[1].toLowerCase()]){t=x.htmlPrefilter(t);try{for(;i<n;i++)1===(e=this[i]||{}).nodeType&&(x.cleanData(vt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return St(this,arguments,(function(e){var i=this.parentNode;x.inArray(this,t)<0&&(x.cleanData(vt(this)),i&&i.replaceChild(e,this))}),t)}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){x.fn[t]=function(t){for(var i,n=[],g=x(t),o=g.length-1,r=0;r<=o;r++)i=r===o?this:this.clone(!0),x(g[r])[e](i),C.apply(n,i.get());return this.pushStack(n)}}));var zt=new RegExp("^("+it+")(?!px)[a-z%]+$","i"),Gt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=i),e.getComputedStyle(t)},Lt=function(t,e,i){var n,g,o={};for(g in e)o[g]=t.style[g],t.style[g]=e[g];for(g in n=i.call(t),e)t.style[g]=o[g];return n},Qt=new RegExp(gt.join("|"),"i");function Wt(t,e,i){var n,g,o,r,A=t.style;return(i=i||Gt(t))&&(""!==(r=i.getPropertyValue(e)||i[e])||rt(t)||(r=x.style(t,e)),!h.pixelBoxStyles()&&zt.test(r)&&Qt.test(e)&&(n=A.width,g=A.minWidth,o=A.maxWidth,A.minWidth=A.maxWidth=A.width=r,r=i.width,A.width=n,A.minWidth=g,A.maxWidth=o)),void 0!==r?r+"":r}function Pt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(I){C.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",I.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ot.appendChild(C).appendChild(I);var t=i.getComputedStyle(I);n="1%"!==t.top,s=12===e(t.marginLeft),I.style.right="60%",r=36===e(t.right),g=36===e(t.width),I.style.position="absolute",o=12===e(I.offsetWidth/3),ot.removeChild(C),I=null}}function e(t){return Math.round(parseFloat(t))}var n,g,o,r,A,s,C=v.createElement("div"),I=v.createElement("div");I.style&&(I.style.backgroundClip="content-box",I.cloneNode(!0).style.backgroundClip="",h.clearCloneStyle="content-box"===I.style.backgroundClip,x.extend(h,{boxSizingReliable:function(){return t(),g},pixelBoxStyles:function(){return t(),r},pixelPosition:function(){return t(),n},reliableMarginLeft:function(){return t(),s},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,e,n,g;return null==A&&(t=v.createElement("table"),e=v.createElement("tr"),n=v.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",e.style.cssText="border:1px solid",e.style.height="1px",n.style.height="9px",n.style.display="block",ot.appendChild(t).appendChild(e).appendChild(n),g=i.getComputedStyle(e),A=parseInt(g.height,10)+parseInt(g.borderTopWidth,10)+parseInt(g.borderBottomWidth,10)===e.offsetHeight,ot.removeChild(t)),A}}))}();var Ut=["Webkit","Moz","ms"],Yt=v.createElement("div").style,Vt={};function Xt(t){var e=x.cssProps[t]||Vt[t];return e||(t in Yt?t:Vt[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),i=Ut.length;i--;)if((t=Ut[i]+e)in Yt)return t}(t)||t)}var Ht=/^(none|table(?!-c[ea]).+)/,Jt=/^--/,Kt={position:"absolute",visibility:"hidden",display:"block"},qt={letterSpacing:"0",fontWeight:"400"};function $t(t,e,i){var n=nt.exec(e);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):e}function te(t,e,i,n,g,o){var r="width"===e?1:0,A=0,s=0;if(i===(n?"border":"content"))return 0;for(;r<4;r+=2)"margin"===i&&(s+=x.css(t,i+gt[r],!0,g)),n?("content"===i&&(s-=x.css(t,"padding"+gt[r],!0,g)),"margin"!==i&&(s-=x.css(t,"border"+gt[r]+"Width",!0,g))):(s+=x.css(t,"padding"+gt[r],!0,g),"padding"!==i?s+=x.css(t,"border"+gt[r]+"Width",!0,g):A+=x.css(t,"border"+gt[r]+"Width",!0,g));return!n&&o>=0&&(s+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-s-A-.5))||0),s}function ee(t,e,i){var n=Gt(t),g=(!h.boxSizingReliable()||i)&&"border-box"===x.css(t,"boxSizing",!1,n),o=g,r=Wt(t,e,n),A="offset"+e[0].toUpperCase()+e.slice(1);if(zt.test(r)){if(!i)return r;r="auto"}return(!h.boxSizingReliable()&&g||!h.reliableTrDimensions()&&T(t,"tr")||"auto"===r||!parseFloat(r)&&"inline"===x.css(t,"display",!1,n))&&t.getClientRects().length&&(g="border-box"===x.css(t,"boxSizing",!1,n),(o=A in t)&&(r=t[A])),(r=parseFloat(r)||0)+te(t,e,i||(g?"border":"content"),o,n,r)+"px"}function ie(t,e,i,n,g){return new ie.prototype.init(t,e,i,n,g)}x.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=Wt(t,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var g,o,r,A=X(e),s=Jt.test(e),C=t.style;if(s||(e=Xt(A)),r=x.cssHooks[e]||x.cssHooks[A],void 0===i)return r&&"get"in r&&void 0!==(g=r.get(t,!1,n))?g:C[e];"string"===(o=typeof i)&&(g=nt.exec(i))&&g[1]&&(i=Ct(t,e,g),o="number"),null!=i&&i==i&&("number"!==o||s||(i+=g&&g[3]||(x.cssNumber[A]?"":"px")),h.clearCloneStyle||""!==i||0!==e.indexOf("background")||(C[e]="inherit"),r&&"set"in r&&void 0===(i=r.set(t,i,n))||(s?C.setProperty(e,i):C[e]=i))}},css:function(t,e,i,n){var g,o,r,A=X(e);return Jt.test(e)||(e=Xt(A)),(r=x.cssHooks[e]||x.cssHooks[A])&&"get"in r&&(g=r.get(t,!0,i)),void 0===g&&(g=Wt(t,e,n)),"normal"===g&&e in qt&&(g=qt[e]),""===i||i?(o=parseFloat(g),!0===i||isFinite(o)?o||0:g):g}}),x.each(["height","width"],(function(t,e){x.cssHooks[e]={get:function(t,i,n){if(i)return!Ht.test(x.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?ee(t,e,n):Lt(t,Kt,(function(){return ee(t,e,n)}))},set:function(t,i,n){var g,o=Gt(t),r=!h.scrollboxSize()&&"absolute"===o.position,A=(r||n)&&"border-box"===x.css(t,"boxSizing",!1,o),s=n?te(t,e,n,A,o):0;return A&&r&&(s-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-te(t,e,"border",!1,o)-.5)),s&&(g=nt.exec(i))&&"px"!==(g[3]||"px")&&(t.style[e]=i,i=x.css(t,e)),$t(0,i,s)}}})),x.cssHooks.marginLeft=Pt(h.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Wt(t,"marginLeft"))||t.getBoundingClientRect().left-Lt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),x.each({margin:"",padding:"",border:"Width"},(function(t,e){x.cssHooks[t+e]={expand:function(i){for(var n=0,g={},o="string"==typeof i?i.split(" "):[i];n<4;n++)g[t+gt[n]+e]=o[n]||o[n-2]||o[0];return g}},"margin"!==t&&(x.cssHooks[t+e].set=$t)})),x.fn.extend({css:function(t,e){return P(this,(function(t,e,i){var n,g,o={},r=0;if(Array.isArray(e)){for(n=Gt(t),g=e.length;r<g;r++)o[e[r]]=x.css(t,e[r],!1,n);return o}return void 0!==i?x.style(t,e,i):x.css(t,e)}),t,e,arguments.length>1)}}),x.Tween=ie,ie.prototype={constructor:ie,init:function(t,e,i,n,g,o){this.elem=t,this.prop=i,this.easing=g||x.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=o||(x.cssNumber[i]?"":"px")},cur:function(){var t=ie.propHooks[this.prop];return t&&t.get?t.get(this):ie.propHooks._default.get(this)},run:function(t){var e,i=ie.propHooks[this.prop];return this.options.duration?this.pos=e=x.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):ie.propHooks._default.set(this),this}},ie.prototype.init.prototype=ie.prototype,ie.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=x.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){x.fx.step[t.prop]?x.fx.step[t.prop](t):1!==t.elem.nodeType||!x.cssHooks[t.prop]&&null==t.elem.style[Xt(t.prop)]?t.elem[t.prop]=t.now:x.style(t.elem,t.prop,t.now+t.unit)}}},ie.propHooks.scrollTop=ie.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},x.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},x.fx=ie.prototype.init,x.fx.step={};var ne,ge,oe=/^(?:toggle|show|hide)$/,re=/queueHooks$/;function Ae(){ge&&(!1===v.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(Ae):i.setTimeout(Ae,x.fx.interval),x.fx.tick())}function se(){return i.setTimeout((function(){ne=void 0})),ne=Date.now()}function Ce(t,e){var i,n=0,g={height:t};for(e=e?1:0;n<4;n+=2-e)g["margin"+(i=gt[n])]=g["padding"+i]=t;return e&&(g.opacity=g.width=t),g}function Ie(t,e,i){for(var n,g=(ae.tweeners[e]||[]).concat(ae.tweeners["*"]),o=0,r=g.length;o<r;o++)if(n=g[o].call(i,e,t))return n}function ae(t,e,i){var n,g,o=0,r=ae.prefilters.length,A=x.Deferred().always((function(){delete s.elem})),s=function(){if(g)return!1;for(var e=ne||se(),i=Math.max(0,C.startTime+C.duration-e),n=1-(i/C.duration||0),o=0,r=C.tweens.length;o<r;o++)C.tweens[o].run(n);return A.notifyWith(t,[C,n,i]),n<1&&r?i:(r||A.notifyWith(t,[C,1,0]),A.resolveWith(t,[C]),!1)},C=A.promise({elem:t,props:x.extend({},e),opts:x.extend(!0,{specialEasing:{},easing:x.easing._default},i),originalProperties:e,originalOptions:i,startTime:ne||se(),duration:i.duration,tweens:[],createTween:function(e,i){var n=x.Tween(t,C.opts,e,i,C.opts.specialEasing[e]||C.opts.easing);return C.tweens.push(n),n},stop:function(e){var i=0,n=e?C.tweens.length:0;if(g)return this;for(g=!0;i<n;i++)C.tweens[i].run(1);return e?(A.notifyWith(t,[C,1,0]),A.resolveWith(t,[C,e])):A.rejectWith(t,[C,e]),this}}),I=C.props;for(!function(t,e){var i,n,g,o,r;for(i in t)if(g=e[n=X(i)],o=t[i],Array.isArray(o)&&(g=o[1],o=t[i]=o[0]),i!==n&&(t[n]=o,delete t[i]),(r=x.cssHooks[n])&&"expand"in r)for(i in o=r.expand(o),delete t[n],o)i in t||(t[i]=o[i],e[i]=g);else e[n]=g}(I,C.opts.specialEasing);o<r;o++)if(n=ae.prefilters[o].call(C,t,I,C.opts))return p(n.stop)&&(x._queueHooks(C.elem,C.opts.queue).stop=n.stop.bind(n)),n;return x.map(I,Ie,C),p(C.opts.start)&&C.opts.start.call(t,C),C.progress(C.opts.progress).done(C.opts.done,C.opts.complete).fail(C.opts.fail).always(C.opts.always),x.fx.timer(x.extend(s,{elem:t,anim:C,queue:C.opts.queue})),C}x.Animation=x.extend(ae,{tweeners:{"*":[function(t,e){var i=this.createTween(t,e);return Ct(i.elem,t,nt.exec(e),i),i}]},tweener:function(t,e){p(t)?(e=t,t=["*"]):t=t.match(S);for(var i,n=0,g=t.length;n<g;n++)i=t[n],ae.tweeners[i]=ae.tweeners[i]||[],ae.tweeners[i].unshift(e)},prefilters:[function(t,e,i){var n,g,o,r,A,s,C,I,a="width"in e||"height"in e,l=this,c={},u=t.style,d=t.nodeType&&st(t),h=K.get(t,"fxshow");for(n in i.queue||(null==(r=x._queueHooks(t,"fx")).unqueued&&(r.unqueued=0,A=r.empty.fire,r.empty.fire=function(){r.unqueued||A()}),r.unqueued++,l.always((function(){l.always((function(){r.unqueued--,x.queue(t,"fx").length||r.empty.fire()}))}))),e)if(g=e[n],oe.test(g)){if(delete e[n],o=o||"toggle"===g,g===(d?"hide":"show")){if("show"!==g||!h||void 0===h[n])continue;d=!0}c[n]=h&&h[n]||x.style(t,n)}if((s=!x.isEmptyObject(e))||!x.isEmptyObject(c))for(n in a&&1===t.nodeType&&(i.overflow=[u.overflow,u.overflowX,u.overflowY],null==(C=h&&h.display)&&(C=K.get(t,"display")),"none"===(I=x.css(t,"display"))&&(C?I=C:(lt([t],!0),C=t.style.display||C,I=x.css(t,"display"),lt([t]))),("inline"===I||"inline-block"===I&&null!=C)&&"none"===x.css(t,"float")&&(s||(l.done((function(){u.display=C})),null==C&&(I=u.display,C="none"===I?"":I)),u.display="inline-block")),i.overflow&&(u.overflow="hidden",l.always((function(){u.overflow=i.overflow[0],u.overflowX=i.overflow[1],u.overflowY=i.overflow[2]}))),s=!1,c)s||(h?"hidden"in h&&(d=h.hidden):h=K.access(t,"fxshow",{display:C}),o&&(h.hidden=!d),d&&lt([t],!0),l.done((function(){for(n in d||lt([t]),K.remove(t,"fxshow"),c)x.style(t,n,c[n])}))),s=Ie(d?h[n]:0,n,l),n in h||(h[n]=s.start,d&&(s.end=s.start,s.start=0))}],prefilter:function(t,e){e?ae.prefilters.unshift(t):ae.prefilters.push(t)}}),x.speed=function(t,e,i){var n=t&&"object"==typeof t?x.extend({},t):{complete:i||!i&&e||p(t)&&t,duration:t,easing:i&&e||e&&!p(e)&&e};return x.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in x.fx.speeds?n.duration=x.fx.speeds[n.duration]:n.duration=x.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){p(n.old)&&n.old.call(this),n.queue&&x.dequeue(this,n.queue)},n},x.fn.extend({fadeTo:function(t,e,i,n){return this.filter(st).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(t,e,i,n){var g=x.isEmptyObject(t),o=x.speed(e,i,n),r=function(){var e=ae(this,x.extend({},t),o);(g||K.get(this,"finish"))&&e.stop(!0)};return r.finish=r,g||!1===o.queue?this.each(r):this.queue(o.queue,r)},stop:function(t,e,i){var n=function(t){var e=t.stop;delete t.stop,e(i)};return"string"!=typeof t&&(i=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each((function(){var e=!0,g=null!=t&&t+"queueHooks",o=x.timers,r=K.get(this);if(g)r[g]&&r[g].stop&&n(r[g]);else for(g in r)r[g]&&r[g].stop&&re.test(g)&&n(r[g]);for(g=o.length;g--;)o[g].elem!==this||null!=t&&o[g].queue!==t||(o[g].anim.stop(i),e=!1,o.splice(g,1));!e&&i||x.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,i=K.get(this),n=i[t+"queue"],g=i[t+"queueHooks"],o=x.timers,r=n?n.length:0;for(i.finish=!0,x.queue(this,t,[]),g&&g.stop&&g.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<r;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete i.finish}))}}),x.each(["toggle","show","hide"],(function(t,e){var i=x.fn[e];x.fn[e]=function(t,n,g){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(Ce(e,!0),t,n,g)}})),x.each({slideDown:Ce("show"),slideUp:Ce("hide"),slideToggle:Ce("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){x.fn[t]=function(t,i,n){return this.animate(e,t,i,n)}})),x.timers=[],x.fx.tick=function(){var t,e=0,i=x.timers;for(ne=Date.now();e<i.length;e++)(t=i[e])()||i[e]!==t||i.splice(e--,1);i.length||x.fx.stop(),ne=void 0},x.fx.timer=function(t){x.timers.push(t),x.fx.start()},x.fx.interval=13,x.fx.start=function(){ge||(ge=!0,Ae())},x.fx.stop=function(){ge=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fn.delay=function(t,e){return t=x.fx&&x.fx.speeds[t]||t,e=e||"fx",this.queue(e,(function(e,n){var g=i.setTimeout(e,t);n.stop=function(){i.clearTimeout(g)}}))},function(){var t=v.createElement("input"),e=v.createElement("select").appendChild(v.createElement("option"));t.type="checkbox",h.checkOn=""!==t.value,h.optSelected=e.selected,(t=v.createElement("input")).value="t",t.type="radio",h.radioValue="t"===t.value}();var le,ce=x.expr.attrHandle;x.fn.extend({attr:function(t,e){return P(this,x.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){x.removeAttr(this,t)}))}}),x.extend({attr:function(t,e,i){var n,g,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?x.prop(t,e,i):(1===o&&x.isXMLDoc(t)||(g=x.attrHooks[e.toLowerCase()]||(x.expr.match.bool.test(e)?le:void 0)),void 0!==i?null===i?void x.removeAttr(t,e):g&&"set"in g&&void 0!==(n=g.set(t,i,e))?n:(t.setAttribute(e,i+""),i):g&&"get"in g&&null!==(n=g.get(t,e))?n:null==(n=x.find.attr(t,e))?void 0:n)},attrHooks:{type:{set:function(t,e){if(!h.radioValue&&"radio"===e&&T(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}},removeAttr:function(t,e){var i,n=0,g=e&&e.match(S);if(g&&1===t.nodeType)for(;i=g[n++];)t.removeAttribute(i)}}),le={set:function(t,e,i){return!1===e?x.removeAttr(t,i):t.setAttribute(i,i),i}},x.each(x.expr.match.bool.source.match(/\w+/g),(function(t,e){var i=ce[e]||x.find.attr;ce[e]=function(t,e,n){var g,o,r=e.toLowerCase();return n||(o=ce[r],ce[r]=g,g=null!=i(t,e,n)?r:null,ce[r]=o),g}}));var ue=/^(?:input|select|textarea|button)$/i,de=/^(?:a|area)$/i;function he(t){return(t.match(S)||[]).join(" ")}function pe(t){return t.getAttribute&&t.getAttribute("class")||""}function fe(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(S)||[]}x.fn.extend({prop:function(t,e){return P(this,x.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[x.propFix[t]||t]}))}}),x.extend({prop:function(t,e,i){var n,g,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&x.isXMLDoc(t)||(e=x.propFix[e]||e,g=x.propHooks[e]),void 0!==i?g&&"set"in g&&void 0!==(n=g.set(t,i,e))?n:t[e]=i:g&&"get"in g&&null!==(n=g.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=x.find.attr(t,"tabindex");return e?parseInt(e,10):ue.test(t.nodeName)||de.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),h.optSelected||(x.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){x.propFix[this.toLowerCase()]=this})),x.fn.extend({addClass:function(t){var e,i,n,g,o,r,A,s=0;if(p(t))return this.each((function(e){x(this).addClass(t.call(this,e,pe(this)))}));if((e=fe(t)).length)for(;i=this[s++];)if(g=pe(i),n=1===i.nodeType&&" "+he(g)+" "){for(r=0;o=e[r++];)n.indexOf(" "+o+" ")<0&&(n+=o+" ");g!==(A=he(n))&&i.setAttribute("class",A)}return this},removeClass:function(t){var e,i,n,g,o,r,A,s=0;if(p(t))return this.each((function(e){x(this).removeClass(t.call(this,e,pe(this)))}));if(!arguments.length)return this.attr("class","");if((e=fe(t)).length)for(;i=this[s++];)if(g=pe(i),n=1===i.nodeType&&" "+he(g)+" "){for(r=0;o=e[r++];)for(;n.indexOf(" "+o+" ")>-1;)n=n.replace(" "+o+" "," ");g!==(A=he(n))&&i.setAttribute("class",A)}return this},toggleClass:function(t,e){var i=typeof t,n="string"===i||Array.isArray(t);return"boolean"==typeof e&&n?e?this.addClass(t):this.removeClass(t):p(t)?this.each((function(i){x(this).toggleClass(t.call(this,i,pe(this),e),e)})):this.each((function(){var e,g,o,r;if(n)for(g=0,o=x(this),r=fe(t);e=r[g++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else void 0!==t&&"boolean"!==i||((e=pe(this))&&K.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":K.get(this,"__className__")||""))}))},hasClass:function(t){var e,i,n=0;for(e=" "+t+" ";i=this[n++];)if(1===i.nodeType&&(" "+he(pe(i))+" ").indexOf(e)>-1)return!0;return!1}});var ve=/\r/g;x.fn.extend({val:function(t){var e,i,n,g=this[0];return arguments.length?(n=p(t),this.each((function(i){var g;1===this.nodeType&&(null==(g=n?t.call(this,i,x(this).val()):t)?g="":"number"==typeof g?g+="":Array.isArray(g)&&(g=x.map(g,(function(t){return null==t?"":t+""}))),(e=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,g,"value")||(this.value=g))}))):g?(e=x.valHooks[g.type]||x.valHooks[g.nodeName.toLowerCase()])&&"get"in e&&void 0!==(i=e.get(g,"value"))?i:"string"==typeof(i=g.value)?i.replace(ve,""):null==i?"":i:void 0}}),x.extend({valHooks:{option:{get:function(t){var e=x.find.attr(t,"value");return null!=e?e:he(x.text(t))}},select:{get:function(t){var e,i,n,g=t.options,o=t.selectedIndex,r="select-one"===t.type,A=r?null:[],s=r?o+1:g.length;for(n=o<0?s:r?o:0;n<s;n++)if(((i=g[n]).selected||n===o)&&!i.disabled&&(!i.parentNode.disabled||!T(i.parentNode,"optgroup"))){if(e=x(i).val(),r)return e;A.push(e)}return A},set:function(t,e){for(var i,n,g=t.options,o=x.makeArray(e),r=g.length;r--;)((n=g[r]).selected=x.inArray(x.valHooks.option.get(n),o)>-1)&&(i=!0);return i||(t.selectedIndex=-1),o}}}}),x.each(["radio","checkbox"],(function(){x.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=x.inArray(x(t).val(),e)>-1}},h.checkOn||(x.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})),h.focusin="onfocusin"in i;var ye=/^(?:focusinfocus|focusoutblur)$/,me=function(t){t.stopPropagation()};x.extend(x.event,{trigger:function(t,e,n,g){var o,r,A,s,C,I,a,l,u=[n||v],d=c.call(t,"type")?t.type:t,h=c.call(t,"namespace")?t.namespace.split("."):[];if(r=l=A=n=n||v,3!==n.nodeType&&8!==n.nodeType&&!ye.test(d+x.event.triggered)&&(d.indexOf(".")>-1&&(h=d.split("."),d=h.shift(),h.sort()),C=d.indexOf(":")<0&&"on"+d,(t=t[x.expando]?t:new x.Event(d,"object"==typeof t&&t)).isTrigger=g?2:3,t.namespace=h.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:x.makeArray(e,[t]),a=x.event.special[d]||{},g||!a.trigger||!1!==a.trigger.apply(n,e))){if(!g&&!a.noBubble&&!f(n)){for(s=a.delegateType||d,ye.test(s+d)||(r=r.parentNode);r;r=r.parentNode)u.push(r),A=r;A===(n.ownerDocument||v)&&u.push(A.defaultView||A.parentWindow||i)}for(o=0;(r=u[o++])&&!t.isPropagationStopped();)l=r,t.type=o>1?s:a.bindType||d,(I=(K.get(r,"events")||Object.create(null))[t.type]&&K.get(r,"handle"))&&I.apply(r,e),(I=C&&r[C])&&I.apply&&H(r)&&(t.result=I.apply(r,e),!1===t.result&&t.preventDefault());return t.type=d,g||t.isDefaultPrevented()||a._default&&!1!==a._default.apply(u.pop(),e)||!H(n)||C&&p(n[d])&&!f(n)&&((A=n[C])&&(n[C]=null),x.event.triggered=d,t.isPropagationStopped()&&l.addEventListener(d,me),n[d](),t.isPropagationStopped()&&l.removeEventListener(d,me),x.event.triggered=void 0,A&&(n[C]=A)),t.result}},simulate:function(t,e,i){var n=x.extend(new x.Event,i,{type:t,isSimulated:!0});x.event.trigger(n,null,e)}}),x.fn.extend({trigger:function(t,e){return this.each((function(){x.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var i=this[0];if(i)return x.event.trigger(t,e,i,!0)}}),h.focusin||x.each({focus:"focusin",blur:"focusout"},(function(t,e){var i=function(t){x.event.simulate(e,t.target,x.event.fix(t))};x.event.special[e]={setup:function(){var n=this.ownerDocument||this.document||this,g=K.access(n,e);g||n.addEventListener(t,i,!0),K.access(n,e,(g||0)+1)},teardown:function(){var n=this.ownerDocument||this.document||this,g=K.access(n,e)-1;g?K.access(n,e,g):(n.removeEventListener(t,i,!0),K.remove(n,e))}}}));var be=i.location,xe={guid:Date.now()},we=/\?/;x.parseXML=function(t){var e,n;if(!t||"string"!=typeof t)return null;try{e=(new i.DOMParser).parseFromString(t,"text/xml")}catch(t){}return n=e&&e.getElementsByTagName("parsererror")[0],e&&!n||x.error("Invalid XML: "+(n?x.map(n.childNodes,(function(t){return t.textContent})).join("\n"):t)),e};var ke=/\[\]$/,Oe=/\r?\n/g,De=/^(?:submit|button|image|reset|file)$/i,Me=/^(?:input|select|textarea|keygen)/i;function Te(t,e,i,n){var g;if(Array.isArray(e))x.each(e,(function(e,g){i||ke.test(t)?n(t,g):Te(t+"["+("object"==typeof g&&null!=g?e:"")+"]",g,i,n)}));else if(i||"object"!==b(e))n(t,e);else for(g in e)Te(t+"["+g+"]",e[g],i,n)}x.param=function(t,e){var i,n=[],g=function(t,e){var i=p(e)?e():e;n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==i?"":i)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!x.isPlainObject(t))x.each(t,(function(){g(this.name,this.value)}));else for(i in t)Te(i,t[i],e,g);return n.join("&")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=x.prop(this,"elements");return t?x.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!x(this).is(":disabled")&&Me.test(this.nodeName)&&!De.test(t)&&(this.checked||!dt.test(t))})).map((function(t,e){var i=x(this).val();return null==i?null:Array.isArray(i)?x.map(i,(function(t){return{name:e.name,value:t.replace(Oe,"\r\n")}})):{name:e.name,value:i.replace(Oe,"\r\n")}})).get()}});var _e=/%20/g,Ne=/#.*$/,je=/([?&])_=[^&]*/,Ee=/^(.*?):[ \t]*([^\r\n]*)$/gm,Be=/^(?:GET|HEAD)$/,Fe=/^\/\//,Re={},Se={},Ze="*/".concat("*"),ze=v.createElement("a");function Ge(t){return function(e,i){"string"!=typeof e&&(i=e,e="*");var n,g=0,o=e.toLowerCase().match(S)||[];if(p(i))for(;n=o[g++];)"+"===n[0]?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(i)):(t[n]=t[n]||[]).push(i)}}function Le(t,e,i,n){var g={},o=t===Se;function r(A){var s;return g[A]=!0,x.each(t[A]||[],(function(t,A){var C=A(e,i,n);return"string"!=typeof C||o||g[C]?o?!(s=C):void 0:(e.dataTypes.unshift(C),r(C),!1)})),s}return r(e.dataTypes[0])||!g["*"]&&r("*")}function Qe(t,e){var i,n,g=x.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((g[i]?t:n||(n={}))[i]=e[i]);return n&&x.extend(!0,t,n),t}ze.href=be.href,x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:be.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(be.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ze,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Qe(Qe(t,x.ajaxSettings),e):Qe(x.ajaxSettings,t)},ajaxPrefilter:Ge(Re),ajaxTransport:Ge(Se),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,g,o,r,A,s,C,I,a,l,c=x.ajaxSetup({},e),u=c.context||c,d=c.context&&(u.nodeType||u.jquery)?x(u):x.event,h=x.Deferred(),p=x.Callbacks("once memory"),f=c.statusCode||{},y={},m={},b="canceled",w={readyState:0,getResponseHeader:function(t){var e;if(C){if(!r)for(r={};e=Ee.exec(o);)r[e[1].toLowerCase()+" "]=(r[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=r[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return C?o:null},setRequestHeader:function(t,e){return null==C&&(t=m[t.toLowerCase()]=m[t.toLowerCase()]||t,y[t]=e),this},overrideMimeType:function(t){return null==C&&(c.mimeType=t),this},statusCode:function(t){var e;if(t)if(C)w.always(t[w.status]);else for(e in t)f[e]=[f[e],t[e]];return this},abort:function(t){var e=t||b;return n&&n.abort(e),k(0,e),this}};if(h.promise(w),c.url=((t||c.url||be.href)+"").replace(Fe,be.protocol+"//"),c.type=e.method||e.type||c.method||c.type,c.dataTypes=(c.dataType||"*").toLowerCase().match(S)||[""],null==c.crossDomain){s=v.createElement("a");try{s.href=c.url,s.href=s.href,c.crossDomain=ze.protocol+"//"+ze.host!=s.protocol+"//"+s.host}catch(t){c.crossDomain=!0}}if(c.data&&c.processData&&"string"!=typeof c.data&&(c.data=x.param(c.data,c.traditional)),Le(Re,c,e,w),C)return w;for(a in(I=x.event&&c.global)&&0==x.active++&&x.event.trigger("ajaxStart"),c.type=c.type.toUpperCase(),c.hasContent=!Be.test(c.type),g=c.url.replace(Ne,""),c.hasContent?c.data&&c.processData&&0===(c.contentType||"").indexOf("application/x-www-form-urlencoded")&&(c.data=c.data.replace(_e,"+")):(l=c.url.slice(g.length),c.data&&(c.processData||"string"==typeof c.data)&&(g+=(we.test(g)?"&":"?")+c.data,delete c.data),!1===c.cache&&(g=g.replace(je,"$1"),l=(we.test(g)?"&":"?")+"_="+xe.guid+++l),c.url=g+l),c.ifModified&&(x.lastModified[g]&&w.setRequestHeader("If-Modified-Since",x.lastModified[g]),x.etag[g]&&w.setRequestHeader("If-None-Match",x.etag[g])),(c.data&&c.hasContent&&!1!==c.contentType||e.contentType)&&w.setRequestHeader("Content-Type",c.contentType),w.setRequestHeader("Accept",c.dataTypes[0]&&c.accepts[c.dataTypes[0]]?c.accepts[c.dataTypes[0]]+("*"!==c.dataTypes[0]?", "+Ze+"; q=0.01":""):c.accepts["*"]),c.headers)w.setRequestHeader(a,c.headers[a]);if(c.beforeSend&&(!1===c.beforeSend.call(u,w,c)||C))return w.abort();if(b="abort",p.add(c.complete),w.done(c.success),w.fail(c.error),n=Le(Se,c,e,w)){if(w.readyState=1,I&&d.trigger("ajaxSend",[w,c]),C)return w;c.async&&c.timeout>0&&(A=i.setTimeout((function(){w.abort("timeout")}),c.timeout));try{C=!1,n.send(y,k)}catch(t){if(C)throw t;k(-1,t)}}else k(-1,"No Transport");function k(t,e,r,s){var a,l,v,y,m,b=e;C||(C=!0,A&&i.clearTimeout(A),n=void 0,o=s||"",w.readyState=t>0?4:0,a=t>=200&&t<300||304===t,r&&(y=function(t,e,i){for(var n,g,o,r,A=t.contents,s=t.dataTypes;"*"===s[0];)s.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader("Content-Type"));if(n)for(g in A)if(A[g]&&A[g].test(n)){s.unshift(g);break}if(s[0]in i)o=s[0];else{for(g in i){if(!s[0]||t.converters[g+" "+s[0]]){o=g;break}r||(r=g)}o=o||r}if(o)return o!==s[0]&&s.unshift(o),i[o]}(c,w,r)),!a&&x.inArray("script",c.dataTypes)>-1&&x.inArray("json",c.dataTypes)<0&&(c.converters["text script"]=function(){}),y=function(t,e,i,n){var g,o,r,A,s,C={},I=t.dataTypes.slice();if(I[1])for(r in t.converters)C[r.toLowerCase()]=t.converters[r];for(o=I.shift();o;)if(t.responseFields[o]&&(i[t.responseFields[o]]=e),!s&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),s=o,o=I.shift())if("*"===o)o=s;else if("*"!==s&&s!==o){if(!(r=C[s+" "+o]||C["* "+o]))for(g in C)if((A=g.split(" "))[1]===o&&(r=C[s+" "+A[0]]||C["* "+A[0]])){!0===r?r=C[g]:!0!==C[g]&&(o=A[0],I.unshift(A[1]));break}if(!0!==r)if(r&&t.throws)e=r(e);else try{e=r(e)}catch(t){return{state:"parsererror",error:r?t:"No conversion from "+s+" to "+o}}}return{state:"success",data:e}}(c,y,w,a),a?(c.ifModified&&((m=w.getResponseHeader("Last-Modified"))&&(x.lastModified[g]=m),(m=w.getResponseHeader("etag"))&&(x.etag[g]=m)),204===t||"HEAD"===c.type?b="nocontent":304===t?b="notmodified":(b=y.state,l=y.data,a=!(v=y.error))):(v=b,!t&&b||(b="error",t<0&&(t=0))),w.status=t,w.statusText=(e||b)+"",a?h.resolveWith(u,[l,b,w]):h.rejectWith(u,[w,b,v]),w.statusCode(f),f=void 0,I&&d.trigger(a?"ajaxSuccess":"ajaxError",[w,c,a?l:v]),p.fireWith(u,[w,b]),I&&(d.trigger("ajaxComplete",[w,c]),--x.active||x.event.trigger("ajaxStop")))}return w},getJSON:function(t,e,i){return x.get(t,e,i,"json")},getScript:function(t,e){return x.get(t,void 0,e,"script")}}),x.each(["get","post"],(function(t,e){x[e]=function(t,i,n,g){return p(i)&&(g=g||n,n=i,i=void 0),x.ajax(x.extend({url:t,type:e,dataType:g,data:i,success:n},x.isPlainObject(t)&&t))}})),x.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),x._evalUrl=function(t,e,i){return x.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){x.globalEval(t,e,i)}})},x.fn.extend({wrapAll:function(t){var e;return this[0]&&(p(t)&&(t=t.call(this[0])),e=x(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return p(t)?this.each((function(e){x(this).wrapInner(t.call(this,e))})):this.each((function(){var e=x(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)}))},wrap:function(t){var e=p(t);return this.each((function(i){x(this).wrapAll(e?t.call(this,i):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){x(this).replaceWith(this.childNodes)})),this}}),x.expr.pseudos.hidden=function(t){return!x.expr.pseudos.visible(t)},x.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},x.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(t){}};var We={0:200,1223:204},Pe=x.ajaxSettings.xhr();h.cors=!!Pe&&"withCredentials"in Pe,h.ajax=Pe=!!Pe,x.ajaxTransport((function(t){var e,n;if(h.cors||Pe&&!t.crossDomain)return{send:function(g,o){var r,A=t.xhr();if(A.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(r in t.xhrFields)A[r]=t.xhrFields[r];for(r in t.mimeType&&A.overrideMimeType&&A.overrideMimeType(t.mimeType),t.crossDomain||g["X-Requested-With"]||(g["X-Requested-With"]="XMLHttpRequest"),g)A.setRequestHeader(r,g[r]);e=function(t){return function(){e&&(e=n=A.onload=A.onerror=A.onabort=A.ontimeout=A.onreadystatechange=null,"abort"===t?A.abort():"error"===t?"number"!=typeof A.status?o(0,"error"):o(A.status,A.statusText):o(We[A.status]||A.status,A.statusText,"text"!==(A.responseType||"text")||"string"!=typeof A.responseText?{binary:A.response}:{text:A.responseText},A.getAllResponseHeaders()))}},A.onload=e(),n=A.onerror=A.ontimeout=e("error"),void 0!==A.onabort?A.onabort=n:A.onreadystatechange=function(){4===A.readyState&&i.setTimeout((function(){e&&n()}))},e=e("abort");try{A.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}})),x.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return x.globalEval(t),t}}}),x.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),x.ajaxTransport("script",(function(t){var e,i;if(t.crossDomain||t.scriptAttrs)return{send:function(n,g){e=x("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",i=function(t){e.remove(),i=null,t&&g("error"===t.type?404:200,t.type)}),v.head.appendChild(e[0])},abort:function(){i&&i()}}}));var Ue,Ye=[],Ve=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Ye.pop()||x.expando+"_"+xe.guid++;return this[t]=!0,t}}),x.ajaxPrefilter("json jsonp",(function(t,e,n){var g,o,r,A=!1!==t.jsonp&&(Ve.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ve.test(t.data)&&"data");if(A||"jsonp"===t.dataTypes[0])return g=t.jsonpCallback=p(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,A?t[A]=t[A].replace(Ve,"$1"+g):!1!==t.jsonp&&(t.url+=(we.test(t.url)?"&":"?")+t.jsonp+"="+g),t.converters["script json"]=function(){return r||x.error(g+" was not called"),r[0]},t.dataTypes[0]="json",o=i[g],i[g]=function(){r=arguments},n.always((function(){void 0===o?x(i).removeProp(g):i[g]=o,t[g]&&(t.jsonpCallback=e.jsonpCallback,Ye.push(g)),r&&p(o)&&o(r[0]),r=o=void 0})),"script"})),h.createHTMLDocument=((Ue=v.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Ue.childNodes.length),x.parseHTML=function(t,e,i){return"string"!=typeof t?[]:("boolean"==typeof e&&(i=e,e=!1),e||(h.createHTMLDocument?((n=(e=v.implementation.createHTMLDocument("")).createElement("base")).href=v.location.href,e.head.appendChild(n)):e=v),o=!i&&[],(g=_.exec(t))?[e.createElement(g[1])]:(g=bt([t],e,o),o&&o.length&&x(o).remove(),x.merge([],g.childNodes)));var n,g,o},x.fn.load=function(t,e,i){var n,g,o,r=this,A=t.indexOf(" ");return A>-1&&(n=he(t.slice(A)),t=t.slice(0,A)),p(e)?(i=e,e=void 0):e&&"object"==typeof e&&(g="POST"),r.length>0&&x.ajax({url:t,type:g||"GET",dataType:"html",data:e}).done((function(t){o=arguments,r.html(n?x("<div>").append(x.parseHTML(t)).find(n):t)})).always(i&&function(t,e){r.each((function(){i.apply(this,o||[t.responseText,e,t])}))}),this},x.expr.pseudos.animated=function(t){return x.grep(x.timers,(function(e){return t===e.elem})).length},x.offset={setOffset:function(t,e,i){var n,g,o,r,A,s,C=x.css(t,"position"),I=x(t),a={};"static"===C&&(t.style.position="relative"),A=I.offset(),o=x.css(t,"top"),s=x.css(t,"left"),("absolute"===C||"fixed"===C)&&(o+s).indexOf("auto")>-1?(r=(n=I.position()).top,g=n.left):(r=parseFloat(o)||0,g=parseFloat(s)||0),p(e)&&(e=e.call(t,i,x.extend({},A))),null!=e.top&&(a.top=e.top-A.top+r),null!=e.left&&(a.left=e.left-A.left+g),"using"in e?e.using.call(t,a):I.css(a)}},x.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){x.offset.setOffset(this,t,e)}));var e,i,n=this[0];return n?n.getClientRects().length?(e=n.getBoundingClientRect(),i=n.ownerDocument.defaultView,{top:e.top+i.pageYOffset,left:e.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,i,n=this[0],g={top:0,left:0};if("fixed"===x.css(n,"position"))e=n.getBoundingClientRect();else{for(e=this.offset(),i=n.ownerDocument,t=n.offsetParent||i.documentElement;t&&(t===i.body||t===i.documentElement)&&"static"===x.css(t,"position");)t=t.parentNode;t&&t!==n&&1===t.nodeType&&((g=x(t).offset()).top+=x.css(t,"borderTopWidth",!0),g.left+=x.css(t,"borderLeftWidth",!0))}return{top:e.top-g.top-x.css(n,"marginTop",!0),left:e.left-g.left-x.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===x.css(t,"position");)t=t.offsetParent;return t||ot}))}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var i="pageYOffset"===e;x.fn[t]=function(n){return P(this,(function(t,n,g){var o;if(f(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===g)return o?o[e]:t[n];o?o.scrollTo(i?o.pageXOffset:g,i?g:o.pageYOffset):t[n]=g}),t,n,arguments.length)}})),x.each(["top","left"],(function(t,e){x.cssHooks[e]=Pt(h.pixelPosition,(function(t,i){if(i)return i=Wt(t,e),zt.test(i)?x(t).position()[e]+"px":i}))})),x.each({Height:"height",Width:"width"},(function(t,e){x.each({padding:"inner"+t,content:e,"":"outer"+t},(function(i,n){x.fn[n]=function(g,o){var r=arguments.length&&(i||"boolean"!=typeof g),A=i||(!0===g||!0===o?"margin":"border");return P(this,(function(e,i,g){var o;return f(e)?0===n.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===g?x.css(e,i,A):x.style(e,i,g,A)}),e,r?g:void 0,r)}}))})),x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){x.fn[e]=function(t){return this.on(e,t)}})),x.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),x.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(t,e){x.fn[e]=function(t,i){return arguments.length>0?this.on(e,null,t,i):this.trigger(e)}}));var Xe=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;x.proxy=function(t,e){var i,n,g;if("string"==typeof e&&(i=t[e],e=t,t=i),p(t))return n=A.call(arguments,2),(g=function(){return t.apply(e||this,n.concat(A.call(arguments)))}).guid=t.guid=t.guid||x.guid++,g},x.holdReady=function(t){t?x.readyWait++:x.ready(!0)},x.isArray=Array.isArray,x.parseJSON=JSON.parse,x.nodeName=T,x.isFunction=p,x.isWindow=f,x.camelCase=X,x.type=b,x.now=Date.now,x.isNumeric=function(t){var e=x.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},x.trim=function(t){return null==t?"":(t+"").replace(Xe,"")},void 0===(n=function(){return x}.apply(e,[]))||(t.exports=n);var He=i.jQuery,Je=i.$;return x.noConflict=function(t){return i.$===x&&(i.$=Je),t&&i.jQuery===x&&(i.jQuery=He),x},void 0===g&&(i.jQuery=i.$=x),x}))},function(t,e,i){var n,g,o;!function(r){"use strict";g=[i(0)],void 0===(o="function"==typeof(n=function(t){return t.ui=t.ui||{},t.ui.version="1.13.2"})?n.apply(e,g):n)||(t.exports=o)}()},function(t,e,i){var n,g,o;
/*!
 * jQuery UI Widget 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */!function(r){"use strict";g=[i(0),i(1)],void 0===(o="function"==typeof(n=function(t){var e=0,i=Array.prototype.hasOwnProperty,n=Array.prototype.slice;return t.cleanData=function(e){return function(i){var n,g,o;for(o=0;null!=(g=i[o]);o++)(n=t._data(g,"events"))&&n.remove&&t(g).triggerHandler("remove");e(i)}}(t.cleanData),t.widget=function(e,i,n){var g,o,r,A={},s=e.split(".")[0],C=s+"-"+(e=e.split(".")[1]);return n||(n=i,i=t.Widget),Array.isArray(n)&&(n=t.extend.apply(null,[{}].concat(n))),t.expr.pseudos[C.toLowerCase()]=function(e){return!!t.data(e,C)},t[s]=t[s]||{},g=t[s][e],o=t[s][e]=function(t,e){if(!this||!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},t.extend(o,g,{version:n.version,_proto:t.extend({},n),_childConstructors:[]}),(r=new i).options=t.widget.extend({},r.options),t.each(n,(function(t,e){A[t]="function"==typeof e?function(){function n(){return i.prototype[t].apply(this,arguments)}function g(e){return i.prototype[t].apply(this,e)}return function(){var t,i=this._super,o=this._superApply;return this._super=n,this._superApply=g,t=e.apply(this,arguments),this._super=i,this._superApply=o,t}}():e})),o.prototype=t.widget.extend(r,{widgetEventPrefix:g&&r.widgetEventPrefix||e},A,{constructor:o,namespace:s,widgetName:e,widgetFullName:C}),g?(t.each(g._childConstructors,(function(e,i){var n=i.prototype;t.widget(n.namespace+"."+n.widgetName,o,i._proto)})),delete g._childConstructors):i._childConstructors.push(o),t.widget.bridge(e,o),o},t.widget.extend=function(e){for(var g,o,r=n.call(arguments,1),A=0,s=r.length;A<s;A++)for(g in r[A])o=r[A][g],i.call(r[A],g)&&void 0!==o&&(t.isPlainObject(o)?e[g]=t.isPlainObject(e[g])?t.widget.extend({},e[g],o):t.widget.extend({},o):e[g]=o);return e},t.widget.bridge=function(e,i){var g=i.prototype.widgetFullName||e;t.fn[e]=function(o){var r="string"==typeof o,A=n.call(arguments,1),s=this;return r?this.length||"instance"!==o?this.each((function(){var i,n=t.data(this,g);return"instance"===o?(s=n,!1):n?"function"!=typeof n[o]||"_"===o.charAt(0)?t.error("no such method '"+o+"' for "+e+" widget instance"):(i=n[o].apply(n,A))!==n&&void 0!==i?(s=i&&i.jquery?s.pushStack(i.get()):i,!1):void 0:t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+o+"'")})):s=void 0:(A.length&&(o=t.widget.extend.apply(null,[o].concat(A))),this.each((function(){var e=t.data(this,g);e?(e.option(o||{}),e._init&&e._init()):t.data(this,g,new i(o,this))}))),s}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(i,n){n=t(n||this.defaultElement||this)[0],this.element=t(n),this.uuid=e++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},n!==this&&(t.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===n&&this.destroy()}}),this.document=t(n.style?n.ownerDocument:n.document||n),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),i),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,(function(t,i){e._removeClass(i,t)})),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var n,g,o,r=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(r={},n=e.split("."),e=n.shift(),n.length){for(g=r[e]=t.widget.extend({},this.options[e]),o=0;o<n.length-1;o++)g[n[o]]=g[n[o]]||{},g=g[n[o]];if(e=n.pop(),1===arguments.length)return void 0===g[e]?null:g[e];g[e]=i}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];r[e]=i}return this._setOptions(r),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var i,n,g;for(i in e)g=this.classesElementLookup[i],e[i]!==this.options.classes[i]&&g&&g.length&&(n=t(g.get()),this._removeClass(g,i),n.addClass(this._classes({element:n,keys:i,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){var i=[],n=this;function g(){var i=[];e.element.each((function(e,g){t.map(n.classesElementLookup,(function(t){return t})).some((function(t){return t.is(g)}))||i.push(g)})),n._on(t(i),{remove:"_untrackClassesElement"})}function o(o,r){var A,s;for(s=0;s<o.length;s++)A=n.classesElementLookup[o[s]]||t(),e.add?(g(),A=t(t.uniqueSort(A.get().concat(e.element.get())))):A=t(A.not(e.element).get()),n.classesElementLookup[o[s]]=A,i.push(o[s]),r&&e.classes[o[s]]&&i.push(e.classes[o[s]])}return(e=t.extend({element:this.element,classes:this.options.classes||{}},e)).keys&&o(e.keys.match(/\S+/g)||[],!0),e.extra&&o(e.extra.match(/\S+/g)||[]),i.join(" ")},_untrackClassesElement:function(e){var i=this;t.each(i.classesElementLookup,(function(n,g){-1!==t.inArray(e.target,g)&&(i.classesElementLookup[n]=t(g.not(e.target).get()))})),this._off(t(e.target))},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,n){n="boolean"==typeof n?n:i;var g="string"==typeof t||null===t,o={extra:g?e:i,keys:g?t:e,element:g?this.element:t,add:n};return o.element.toggleClass(this._classes(o),n),this},_on:function(e,i,n){var g,o=this;"boolean"!=typeof e&&(n=i,i=e,e=!1),n?(i=g=t(i),this.bindings=this.bindings.add(i)):(n=i,i=this.element,g=this.widget()),t.each(n,(function(n,r){function A(){if(e||!0!==o.options.disabled&&!t(this).hasClass("ui-state-disabled"))return("string"==typeof r?o[r]:r).apply(o,arguments)}"string"!=typeof r&&(A.guid=r.guid=r.guid||A.guid||t.guid++);var s=n.match(/^([\w:-]*)\s*(.*)$/),C=s[1]+o.eventNamespace,I=s[2];I?g.on(C,I,A):i.on(C,A)}))},_off:function(e,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(i),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){var i=this;return setTimeout((function(){return("string"==typeof t?i[t]:t).apply(i,arguments)}),e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,i,n){var g,o,r=this.options[e];if(n=n||{},(i=t.Event(i)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(g in o)g in i||(i[g]=o[g]);return this.element.trigger(i,n),!("function"==typeof r&&!1===r.apply(this.element[0],[i].concat(n))||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},(function(e,i){t.Widget.prototype["_"+e]=function(n,g,o){var r;"string"==typeof g&&(g={effect:g});var A=g?!0===g||"number"==typeof g?i:g.effect||i:e;"number"==typeof(g=g||{})?g={duration:g}:!0===g&&(g={}),r=!t.isEmptyObject(g),g.complete=o,g.delay&&n.delay(g.delay),r&&t.effects&&t.effects.effect[A]?n[e](g):A!==e&&n[A]?n[A](g.duration,g.easing,o):n.queue((function(i){t(this)[e](),o&&o.call(n[0]),i()}))}})),t.widget})?n.apply(e,g):n)||(t.exports=o)}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MODULE_NAME=e.MODULE_VERSION=void 0;const n=i(10);e.MODULE_VERSION=n.version,e.MODULE_NAME=n.name},function(t,e,i){"use strict";(function(t){i.d(e,"a",(function(){return na})),i.d(e,"b",(function(){return ga})),i.d(e,"c",(function(){return au})),i.d(e,"d",(function(){return iC})),i.d(e,"e",(function(){return $I})),i.d(e,"f",(function(){return oa})),i.d(e,"g",(function(){return cA})),i.d(e,"h",(function(){return dA})),i.d(e,"i",(function(){return su})),i.d(e,"j",(function(){return lu})),i.d(e,"k",(function(){return uA})),i.d(e,"l",(function(){return ur}));
/**
 * vis-network
 * https://visjs.github.io/vis-network/
 *
 * A dynamic, browser-based visualization library.
 *
 * @version 7.6.3
 * @date    2020-05-06T08:28:31.366Z
 *
 * @copyright (c) 2011-2017 Almende B.V, http://almende.com
 * @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
 *
 * @license
 * vis.js is dual licensed under both
 *
 *   1. The Apache 2.0 License
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *   and
 *
 *   2. The MIT License
 *      http://opensource.org/licenses/MIT
 *
 * vis.js may be distributed under either license.
 */
var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function g(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function o(t,e){return t(e={exports:{}},e.exports),e.exports}function r(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var A=function(t){return t&&t.Math==Math&&t},s=A("object"==typeof globalThis&&globalThis)||A("object"==typeof window&&window)||A("object"==typeof self&&self)||A("object"==typeof n&&n)||Function("return this")(),C=function(t){try{return!!t()}catch(t){return!0}},I=!C((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),a={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,c={f:l&&!a.call({1:2},1)?function(t){var e=l(this,t);return!!e&&e.enumerable}:a},u=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},d={}.toString,h=function(t){return d.call(t).slice(8,-1)},p="".split,f=C((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==h(t)?p.call(t,""):Object(t)}:Object,v=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},y=function(t){return f(v(t))},m=function(t){return"object"==typeof t?null!==t:"function"==typeof t},b=function(t,e){if(!m(t))return t;var i,n;if(e&&"function"==typeof(i=t.toString)&&!m(n=i.call(t)))return n;if("function"==typeof(i=t.valueOf)&&!m(n=i.call(t)))return n;if(!e&&"function"==typeof(i=t.toString)&&!m(n=i.call(t)))return n;throw TypeError("Can't convert object to primitive value")},x={}.hasOwnProperty,w=function(t,e){return x.call(t,e)},k=s.document,O=m(k)&&m(k.createElement),D=function(t){return O?k.createElement(t):{}},M=!I&&!C((function(){return 7!=Object.defineProperty(D("div"),"a",{get:function(){return 7}}).a})),T=Object.getOwnPropertyDescriptor,_={f:I?T:function(t,e){if(t=y(t),e=b(e,!0),M)try{return T(t,e)}catch(t){}if(w(t,e))return u(!c.f.call(t,e),t[e])}},N=/#|\.prototype\./,j=function(t,e){var i=B[E(t)];return i==R||i!=F&&("function"==typeof e?C(e):!!e)},E=j.normalize=function(t){return String(t).replace(N,".").toLowerCase()},B=j.data={},F=j.NATIVE="N",R=j.POLYFILL="P",S=j,Z={},z=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},G=function(t,e,i){if(z(t),void 0===e)return t;switch(i){case 0:return function(){return t.call(e)};case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,g){return t.call(e,i,n,g)}}return function(){return t.apply(e,arguments)}},L=function(t){if(!m(t))throw TypeError(String(t)+" is not an object");return t},Q=Object.defineProperty,W={f:I?Q:function(t,e,i){if(L(t),e=b(e,!0),L(i),M)try{return Q(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(t[e]=i.value),t}},P=I?function(t,e,i){return W.f(t,e,u(1,i))}:function(t,e,i){return t[e]=i,t},U=_.f,Y=function(t){var e=function(e,i,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,i)}return new t(e,i,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e},V=function(t,e){var i,n,g,o,r,A,C,I,a=t.target,l=t.global,c=t.stat,u=t.proto,d=l?s:c?s[a]:(s[a]||{}).prototype,h=l?Z:Z[a]||(Z[a]={}),p=h.prototype;for(g in e)i=!S(l?g:a+(c?".":"#")+g,t.forced)&&d&&w(d,g),r=h[g],i&&(A=t.noTargetGet?(I=U(d,g))&&I.value:d[g]),o=i&&A?A:e[g],i&&typeof r==typeof o||(C=t.bind&&i?G(o,s):t.wrap&&i?Y(o):u&&"function"==typeof o?G(Function.call,o):o,(t.sham||o&&o.sham||r&&r.sham)&&P(C,"sham",!0),h[g]=C,u&&(w(Z,n=a+"Prototype")||P(Z,n,{}),Z[n][g]=o,t.real&&p&&!p[g]&&P(p,g,o)))},X=[].slice,H={},J=function(t,e,i){if(!(e in H)){for(var n=[],g=0;g<e;g++)n[g]="a["+g+"]";H[e]=Function("C,a","return new C("+n.join(",")+")")}return H[e](t,i)},K=Function.bind||function(t){var e=z(this),i=X.call(arguments,1),n=function(){var g=i.concat(X.call(arguments));return this instanceof n?J(e,g.length,g):e.apply(t,g)};return m(e.prototype)&&(n.prototype=e.prototype),n};V({target:"Function",proto:!0},{bind:K});var q=function(t){return Z[t+"Prototype"]},$=q("Function").bind,tt=Function.prototype,et=function(t){var e=t.bind;return t===tt||t instanceof Function&&e===tt.bind?$:e};function it(t,e,i,n){t.beginPath(),t.arc(e,i,n,0,2*Math.PI,!1),t.closePath()}function nt(t,e,i,n,g,o){var r=Math.PI/180;n-2*o<0&&(o=n/2),g-2*o<0&&(o=g/2),t.beginPath(),t.moveTo(e+o,i),t.lineTo(e+n-o,i),t.arc(e+n-o,i+o,o,270*r,360*r,!1),t.lineTo(e+n,i+g-o),t.arc(e+n-o,i+g-o,o,0,90*r,!1),t.lineTo(e+o,i+g),t.arc(e+o,i+g-o,o,90*r,180*r,!1),t.lineTo(e,i+o),t.arc(e+o,i+o,o,180*r,270*r,!1),t.closePath()}function gt(t,e,i,n,g){var o=n/2*.5522848,r=g/2*.5522848,A=e+n,s=i+g,C=e+n/2,I=i+g/2;t.beginPath(),t.moveTo(e,I),t.bezierCurveTo(e,I-r,C-o,i,C,i),t.bezierCurveTo(C+o,i,A,I-r,A,I),t.bezierCurveTo(A,I+r,C+o,s,C,s),t.bezierCurveTo(C-o,s,e,I+r,e,I),t.closePath()}function ot(t,e,i,n,g){var o=g*(1/3),r=n/2*.5522848,A=o/2*.5522848,s=e+n,C=i+o,I=e+n/2,a=i+o/2,l=i+(g-o/2),c=i+g;t.beginPath(),t.moveTo(s,a),t.bezierCurveTo(s,a+A,I+r,C,I,C),t.bezierCurveTo(I-r,C,e,a+A,e,a),t.bezierCurveTo(e,a-A,I-r,i,I,i),t.bezierCurveTo(I+r,i,s,a-A,s,a),t.lineTo(s,l),t.bezierCurveTo(s,l+A,I+r,c,I,c),t.bezierCurveTo(I-r,c,e,l+A,e,l),t.lineTo(e,a)}function rt(t,e,i,n,g,o){t.beginPath(),t.moveTo(e,i);for(var r=o.length,A=n-e,s=g-i,C=s/A,I=Math.sqrt(A*A+s*s),a=0,l=!0,c=0,u=+o[0];I>=.1;)(u=+o[a++%r])>I&&(u=I),c=Math.sqrt(u*u/(1+C*C)),e+=c=A<0?-c:c,i+=C*c,!0===l?t.lineTo(e,i):t.moveTo(e,i),I-=u,l=!l}var At={circle:it,dashedLine:rt,database:ot,diamond:function(t,e,i,n){t.beginPath(),t.lineTo(e,i+n),t.lineTo(e+n,i),t.lineTo(e,i-n),t.lineTo(e-n,i),t.closePath()},ellipse:gt,ellipse_vis:gt,hexagon:function(t,e,i,n){t.beginPath();var g=2*Math.PI/6;t.moveTo(e+n,i);for(var o=1;o<6;o++)t.lineTo(e+n*Math.cos(g*o),i+n*Math.sin(g*o));t.closePath()},roundRect:nt,square:function(t,e,i,n){t.beginPath(),t.rect(e-n,i-n,2*n,2*n),t.closePath()},star:function(t,e,i,n){t.beginPath(),i+=.1*(n*=.82);for(var g=0;g<10;g++){var o=g%2==0?1.3*n:.5*n;t.lineTo(e+o*Math.sin(2*g*Math.PI/10),i-o*Math.cos(2*g*Math.PI/10))}t.closePath()},triangle:function(t,e,i,n){t.beginPath(),i+=.275*(n*=1.15);var g=2*n,o=g/2,r=Math.sqrt(3)/6*g,A=Math.sqrt(g*g-o*o);t.moveTo(e,i-(A-r)),t.lineTo(e+o,i+r),t.lineTo(e-o,i+r),t.lineTo(e,i-(A-r)),t.closePath()},triangleDown:function(t,e,i,n){t.beginPath(),i-=.275*(n*=1.15);var g=2*n,o=g/2,r=Math.sqrt(3)/6*g,A=Math.sqrt(g*g-o*o);t.moveTo(e,i+(A-r)),t.lineTo(e+o,i-r),t.lineTo(e-o,i-r),t.lineTo(e,i+(A-r)),t.closePath()}};var st=o((function(t){function e(t){if(t)return function(t){for(var i in e.prototype)t[i]=e.prototype[i];return t}(t)}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function i(){this.off(t,i),e.apply(this,arguments)}return i.fn=e,this.on(t,i),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var i,n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var g=0;g<n.length;g++)if((i=n[g])===e||i.fn===e){n.splice(g,1);break}return 0===n.length&&delete this._callbacks["$"+t],this},e.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),i=this._callbacks["$"+t],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(i){n=0;for(var g=(i=i.slice(0)).length;n<g;++n)i[n].apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},e.prototype.hasListeners=function(t){return!!this.listeners(t).length}})),Ct={},It=s["__core-js_shared__"]||function(t,e){try{P(s,t,e)}catch(i){s[t]=e}return e}("__core-js_shared__",{}),at=Function.toString;"function"!=typeof It.inspectSource&&(It.inspectSource=function(t){return at.call(t)});var lt,ct,ut,dt=It.inspectSource,ht=s.WeakMap,pt="function"==typeof ht&&/native code/.test(dt(ht)),ft=o((function(t){(t.exports=function(t,e){return It[t]||(It[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.4",mode:"pure",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),vt=0,yt=Math.random(),mt=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++vt+yt).toString(36)},bt=ft("keys"),xt=function(t){return bt[t]||(bt[t]=mt(t))},wt={},kt=s.WeakMap;if(pt){var Ot=new kt,Dt=Ot.get,Mt=Ot.has,Tt=Ot.set;lt=function(t,e){return Tt.call(Ot,t,e),e},ct=function(t){return Dt.call(Ot,t)||{}},ut=function(t){return Mt.call(Ot,t)}}else{var _t=xt("state");wt[_t]=!0,lt=function(t,e){return P(t,_t,e),e},ct=function(t){return w(t,_t)?t[_t]:{}},ut=function(t){return w(t,_t)}}var Nt,jt,Et,Bt={set:lt,get:ct,has:ut,enforce:function(t){return ut(t)?ct(t):lt(t,{})},getterFor:function(t){return function(e){var i;if(!m(e)||(i=ct(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return i}}},Ft=function(t){return Object(v(t))},Rt=!C((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),St=xt("IE_PROTO"),Zt=Object.prototype,zt=Rt?Object.getPrototypeOf:function(t){return t=Ft(t),w(t,St)?t[St]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Zt:null},Gt=!!Object.getOwnPropertySymbols&&!C((function(){return!String(Symbol())})),Lt=Gt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Qt=ft("wks"),Wt=s.Symbol,Pt=Lt?Wt:Wt&&Wt.withoutSetter||mt,Ut=function(t){return w(Qt,t)||(Gt&&w(Wt,t)?Qt[t]=Wt[t]:Qt[t]=Pt("Symbol."+t)),Qt[t]},Yt=(Ut("iterator"),!1);[].keys&&("next"in(Et=[].keys())?(jt=zt(zt(Et)))!==Object.prototype&&(Nt=jt):Yt=!0),null==Nt&&(Nt={});var Vt,Xt={IteratorPrototype:Nt,BUGGY_SAFARI_ITERATORS:Yt},Ht=Math.ceil,Jt=Math.floor,Kt=function(t){return isNaN(t=+t)?0:(t>0?Jt:Ht)(t)},qt=Math.min,$t=function(t){return t>0?qt(Kt(t),9007199254740991):0},te=Math.max,ee=Math.min,ie=function(t,e){var i=Kt(t);return i<0?te(i+e,0):ee(i,e)},ne=function(t){return function(e,i,n){var g,o=y(e),r=$t(o.length),A=ie(n,r);if(t&&i!=i){for(;r>A;)if((g=o[A++])!=g)return!0}else for(;r>A;A++)if((t||A in o)&&o[A]===i)return t||A||0;return!t&&-1}},ge={includes:ne(!0),indexOf:ne(!1)},oe=ge.indexOf,re=function(t,e){var i,n=y(t),g=0,o=[];for(i in n)!w(wt,i)&&w(n,i)&&o.push(i);for(;e.length>g;)w(n,i=e[g++])&&(~oe(o,i)||o.push(i));return o},Ae=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],se=Object.keys||function(t){return re(t,Ae)},Ce=I?Object.defineProperties:function(t,e){L(t);for(var i,n=se(e),g=n.length,o=0;g>o;)W.f(t,i=n[o++],e[i]);return t},Ie=function(t){return"function"==typeof t?t:void 0},ae=function(t,e){return arguments.length<2?Ie(Z[t])||Ie(s[t]):Z[t]&&Z[t][e]||s[t]&&s[t][e]},le=ae("document","documentElement"),ce=xt("IE_PROTO"),ue=function(){},de=function(t){return"<script>"+t+"<\/script>"},he=function(){try{Vt=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;he=Vt?function(t){t.write(de("")),t.close();var e=t.parentWindow.Object;return t=null,e}(Vt):((e=D("iframe")).style.display="none",le.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(de("document.F=Object")),t.close(),t.F);for(var i=Ae.length;i--;)delete he.prototype[Ae[i]];return he()};wt[ce]=!0;var pe=Object.create||function(t,e){var i;return null!==t?(ue.prototype=L(t),i=new ue,ue.prototype=null,i[ce]=t):i=he(),void 0===e?i:Ce(i,e)},fe={};fe[Ut("toStringTag")]="z";var ve="[object z]"===String(fe),ye=Ut("toStringTag"),me="Arguments"==h(function(){return arguments}()),be=ve?h:function(t){var e,i,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),ye))?i:me?h(e):"Object"==(n=h(e))&&"function"==typeof e.callee?"Arguments":n},xe=ve?{}.toString:function(){return"[object "+be(this)+"]"},we=W.f,ke=Ut("toStringTag"),Oe=function(t,e,i,n){if(t){var g=i?t:t.prototype;w(g,ke)||we(g,ke,{configurable:!0,value:e}),n&&!ve&&P(g,"toString",xe)}},De=Xt.IteratorPrototype,Me=function(){return this},Te=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,i={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(i,[]),e=i instanceof Array}catch(t){}return function(i,n){return L(i),function(t){if(!m(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(n),e?t.call(i,n):i.__proto__=n,i}}():void 0),_e=function(t,e,i,n){n&&n.enumerable?t[e]=i:P(t,e,i)},Ne=Xt.IteratorPrototype,je=Xt.BUGGY_SAFARI_ITERATORS,Ee=Ut("iterator"),Be=function(){return this},Fe=function(t,e,i,n,g,o,r){!function(t,e,i){var n=e+" Iterator";t.prototype=pe(De,{next:u(1,i)}),Oe(t,n,!1,!0),Ct[n]=Me}(i,e,n);var A,s,C,I=function(t){if(t===g&&h)return h;if(!je&&t in c)return c[t];switch(t){case"keys":case"values":case"entries":return function(){return new i(this,t)}}return function(){return new i(this)}},a=e+" Iterator",l=!1,c=t.prototype,d=c[Ee]||c["@@iterator"]||g&&c[g],h=!je&&d||I(g),p="Array"==e&&c.entries||d;if(p&&(A=zt(p.call(new t)),Ne!==Object.prototype&&A.next&&(Oe(A,a,!0,!0),Ct[a]=Be)),"values"==g&&d&&"values"!==d.name&&(l=!0,h=function(){return d.call(this)}),r&&c[Ee]!==h&&P(c,Ee,h),Ct[e]=h,g)if(s={values:I("values"),keys:o?h:I("keys"),entries:I("entries")},r)for(C in s)(je||l||!(C in c))&&_e(c,C,s[C]);else V({target:e,proto:!0,forced:je||l},s);return s},Re=Bt.set,Se=Bt.getterFor("Array Iterator");Fe(Array,"Array",(function(t,e){Re(this,{type:"Array Iterator",target:y(t),index:0,kind:e})}),(function(){var t=Se(this),e=t.target,i=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==i?{value:n,done:!1}:"values"==i?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values");Ct.Arguments=Ct.Array;var Ze=Ut("toStringTag");for(var ze in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var Ge=s[ze],Le=Ge&&Ge.prototype;Le&&be(Le)!==Ze&&P(Le,Ze,ze),Ct[ze]=Ct.Array}var Qe=function(t){return function(e,i){var n,g,o=String(v(e)),r=Kt(i),A=o.length;return r<0||r>=A?t?"":void 0:(n=o.charCodeAt(r))<55296||n>56319||r+1===A||(g=o.charCodeAt(r+1))<56320||g>57343?t?o.charAt(r):n:t?o.slice(r,r+2):g-56320+(n-55296<<10)+65536}},We={codeAt:Qe(!1),charAt:Qe(!0)}.charAt,Pe=Bt.set,Ue=Bt.getterFor("String Iterator");Fe(String,"String",(function(t){Pe(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=Ue(this),i=e.string,n=e.index;return n>=i.length?{value:void 0,done:!0}:(t=We(i,n),e.index+=t.length,{value:t,done:!1})}));var Ye,Ve,Xe=Ut("iterator"),He=function(t){if(null!=t)return t[Xe]||t["@@iterator"]||Ct[be(t)]},Je=function(t){var e=He(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return L(e.call(t))},Ke=He,qe=Array.isArray||function(t){return"Array"==h(t)},$e=function(t,e,i){var n=b(e);n in t?W.f(t,n,u(0,i)):t[n]=i},ti=Ut("species"),ei=function(t,e){var i;return qe(t)&&("function"!=typeof(i=t.constructor)||i!==Array&&!qe(i.prototype)?m(i)&&null===(i=i[ti])&&(i=void 0):i=void 0),new(void 0===i?Array:i)(0===e?0:e)},ii=ae("navigator","userAgent")||"",ni=s.process,gi=ni&&ni.versions,oi=gi&&gi.v8;oi?Ve=(Ye=oi.split("."))[0]+Ye[1]:ii&&(!(Ye=ii.match(/Edge\/(\d+)/))||Ye[1]>=74)&&(Ye=ii.match(/Chrome\/(\d+)/))&&(Ve=Ye[1]);var ri=Ve&&+Ve,Ai=Ut("species"),si=function(t){return ri>=51||!C((function(){var e=[];return(e.constructor={})[Ai]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Ci=Ut("isConcatSpreadable"),Ii=ri>=51||!C((function(){var t=[];return t[Ci]=!1,t.concat()[0]!==t})),ai=si("concat"),li=function(t){if(!m(t))return!1;var e=t[Ci];return void 0!==e?!!e:qe(t)};V({target:"Array",proto:!0,forced:!Ii||!ai},{concat:function(t){var e,i,n,g,o,r=Ft(this),A=ei(r,0),s=0;for(e=-1,n=arguments.length;e<n;e++)if(li(o=-1===e?r:arguments[e])){if(s+(g=$t(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(i=0;i<g;i++,s++)i in o&&$e(A,s,o[i])}else{if(s>=9007199254740991)throw TypeError("Maximum allowed index exceeded");$e(A,s++,o)}return A.length=s,A}});var ci=Ae.concat("length","prototype"),ui={f:Object.getOwnPropertyNames||function(t){return re(t,ci)}},di=ui.f,hi={}.toString,pi="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],fi={f:function(t){return pi&&"[object Window]"==hi.call(t)?function(t){try{return di(t)}catch(t){return pi.slice()}}(t):di(y(t))}},vi={f:Object.getOwnPropertySymbols},yi={f:Ut},mi=W.f,bi=function(t){var e=Z.Symbol||(Z.Symbol={});w(e,t)||mi(e,t,{value:yi.f(t)})},xi=[].push,wi=function(t){var e=1==t,i=2==t,n=3==t,g=4==t,o=6==t,r=5==t||o;return function(A,s,C,I){for(var a,l,c=Ft(A),u=f(c),d=G(s,C,3),h=$t(u.length),p=0,v=I||ei,y=e?v(A,h):i?v(A,0):void 0;h>p;p++)if((r||p in u)&&(l=d(a=u[p],p,c),t))if(e)y[p]=l;else if(l)switch(t){case 3:return!0;case 5:return a;case 6:return p;case 2:xi.call(y,a)}else if(g)return!1;return o?-1:n||g?g:y}},ki={forEach:wi(0),map:wi(1),filter:wi(2),some:wi(3),every:wi(4),find:wi(5),findIndex:wi(6)},Oi=ki.forEach,Di=xt("hidden"),Mi=Ut("toPrimitive"),Ti=Bt.set,_i=Bt.getterFor("Symbol"),Ni=Object.prototype,ji=s.Symbol,Ei=ae("JSON","stringify"),Bi=_.f,Fi=W.f,Ri=fi.f,Si=c.f,Zi=ft("symbols"),zi=ft("op-symbols"),Gi=ft("string-to-symbol-registry"),Li=ft("symbol-to-string-registry"),Qi=ft("wks"),Wi=s.QObject,Pi=!Wi||!Wi.prototype||!Wi.prototype.findChild,Ui=I&&C((function(){return 7!=pe(Fi({},"a",{get:function(){return Fi(this,"a",{value:7}).a}})).a}))?function(t,e,i){var n=Bi(Ni,e);n&&delete Ni[e],Fi(t,e,i),n&&t!==Ni&&Fi(Ni,e,n)}:Fi,Yi=function(t,e){var i=Zi[t]=pe(ji.prototype);return Ti(i,{type:"Symbol",tag:t,description:e}),I||(i.description=e),i},Vi=Lt?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof ji},Xi=function(t,e,i){t===Ni&&Xi(zi,e,i),L(t);var n=b(e,!0);return L(i),w(Zi,n)?(i.enumerable?(w(t,Di)&&t[Di][n]&&(t[Di][n]=!1),i=pe(i,{enumerable:u(0,!1)})):(w(t,Di)||Fi(t,Di,u(1,{})),t[Di][n]=!0),Ui(t,n,i)):Fi(t,n,i)},Hi=function(t,e){L(t);var i=y(e),n=se(i).concat($i(i));return Oi(n,(function(e){I&&!Ji.call(i,e)||Xi(t,e,i[e])})),t},Ji=function(t){var e=b(t,!0),i=Si.call(this,e);return!(this===Ni&&w(Zi,e)&&!w(zi,e))&&(!(i||!w(this,e)||!w(Zi,e)||w(this,Di)&&this[Di][e])||i)},Ki=function(t,e){var i=y(t),n=b(e,!0);if(i!==Ni||!w(Zi,n)||w(zi,n)){var g=Bi(i,n);return!g||!w(Zi,n)||w(i,Di)&&i[Di][n]||(g.enumerable=!0),g}},qi=function(t){var e=Ri(y(t)),i=[];return Oi(e,(function(t){w(Zi,t)||w(wt,t)||i.push(t)})),i},$i=function(t){var e=t===Ni,i=Ri(e?zi:y(t)),n=[];return Oi(i,(function(t){!w(Zi,t)||e&&!w(Ni,t)||n.push(Zi[t])})),n};if(Gt||(_e((ji=function(){if(this instanceof ji)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=mt(t),i=function(t){this===Ni&&i.call(zi,t),w(this,Di)&&w(this[Di],e)&&(this[Di][e]=!1),Ui(this,e,u(1,t))};return I&&Pi&&Ui(Ni,e,{configurable:!0,set:i}),Yi(e,t)}).prototype,"toString",(function(){return _i(this).tag})),_e(ji,"withoutSetter",(function(t){return Yi(mt(t),t)})),c.f=Ji,W.f=Xi,_.f=Ki,ui.f=fi.f=qi,vi.f=$i,yi.f=function(t){return Yi(Ut(t),t)},I&&Fi(ji.prototype,"description",{configurable:!0,get:function(){return _i(this).description}})),V({global:!0,wrap:!0,forced:!Gt,sham:!Gt},{Symbol:ji}),Oi(se(Qi),(function(t){bi(t)})),V({target:"Symbol",stat:!0,forced:!Gt},{for:function(t){var e=String(t);if(w(Gi,e))return Gi[e];var i=ji(e);return Gi[e]=i,Li[i]=e,i},keyFor:function(t){if(!Vi(t))throw TypeError(t+" is not a symbol");if(w(Li,t))return Li[t]},useSetter:function(){Pi=!0},useSimple:function(){Pi=!1}}),V({target:"Object",stat:!0,forced:!Gt,sham:!I},{create:function(t,e){return void 0===e?pe(t):Hi(pe(t),e)},defineProperty:Xi,defineProperties:Hi,getOwnPropertyDescriptor:Ki}),V({target:"Object",stat:!0,forced:!Gt},{getOwnPropertyNames:qi,getOwnPropertySymbols:$i}),V({target:"Object",stat:!0,forced:C((function(){vi.f(1)}))},{getOwnPropertySymbols:function(t){return vi.f(Ft(t))}}),Ei){var tn=!Gt||C((function(){var t=ji();return"[null]"!=Ei([t])||"{}"!=Ei({a:t})||"{}"!=Ei(Object(t))}));V({target:"JSON",stat:!0,forced:tn},{stringify:function(t,e,i){for(var n,g=[t],o=1;arguments.length>o;)g.push(arguments[o++]);if(n=e,(m(e)||void 0!==t)&&!Vi(t))return qe(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!Vi(e))return e}),g[1]=e,Ei.apply(null,g)}})}ji.prototype[Mi]||P(ji.prototype,Mi,ji.prototype.valueOf),Oe(ji,"Symbol"),wt[Di]=!0,bi("asyncIterator"),bi("hasInstance"),bi("isConcatSpreadable"),bi("iterator"),bi("match"),bi("matchAll"),bi("replace"),bi("search"),bi("species"),bi("split"),bi("toPrimitive"),bi("toStringTag"),bi("unscopables"),Oe(Math,"Math",!0),Oe(s.JSON,"JSON",!0);var en=Z.Symbol,nn=en,gn=function(t,e,i,n){try{return n?e(L(i)[0],i[1]):e(i)}catch(e){var g=t.return;throw void 0!==g&&L(g.call(t)),e}},on=Ut("iterator"),rn=Array.prototype,An=function(t){return void 0!==t&&(Ct.Array===t||rn[on]===t)},sn=Ut("iterator"),Cn=!1;try{var In=0,an={next:function(){return{done:!!In++}},return:function(){Cn=!0}};an[sn]=function(){return this},Array.from(an,(function(){throw 2}))}catch(t){}var ln=!function(t,e){if(!e&&!Cn)return!1;var i=!1;try{var n={};n[sn]=function(){return{next:function(){return{done:i=!0}}}},t(n)}catch(t){}return i}((function(t){Array.from(t)}));V({target:"Array",stat:!0,forced:ln},{from:function(t){var e,i,n,g,o,r,A=Ft(t),s="function"==typeof this?this:Array,C=arguments.length,I=C>1?arguments[1]:void 0,a=void 0!==I,l=He(A),c=0;if(a&&(I=G(I,C>2?arguments[2]:void 0,2)),null==l||s==Array&&An(l))for(i=new s(e=$t(A.length));e>c;c++)r=a?I(A[c],c):A[c],$e(i,c,r);else for(o=(g=l.call(A)).next,i=new s;!(n=o.call(g)).done;c++)r=a?gn(g,I,[n.value,c],!0):n.value,$e(i,c,r);return i.length=c,i}});var cn=Z.Array.from,un=cn;V({target:"Object",stat:!0,forced:!I,sham:!I},{defineProperty:W.f});var dn=o((function(t){var e=Z.Object,i=t.exports=function(t,i,n){return e.defineProperty(t,i,n)};e.defineProperty.sham&&(i.sham=!0)})),hn=dn;V({target:"Object",stat:!0,forced:!I,sham:!I},{defineProperties:Ce});var pn=o((function(t){var e=Z.Object,i=t.exports=function(t,i){return e.defineProperties(t,i)};e.defineProperties.sham&&(i.sham=!0)})),fn=ae("Reflect","ownKeys")||function(t){var e=ui.f(L(t)),i=vi.f;return i?e.concat(i(t)):e};V({target:"Object",stat:!0,sham:!I},{getOwnPropertyDescriptors:function(t){for(var e,i,n=y(t),g=_.f,o=fn(n),r={},A=0;o.length>A;)void 0!==(i=g(n,e=o[A++]))&&$e(r,e,i);return r}});var vn=Z.Object.getOwnPropertyDescriptors,yn=_.f,mn=C((function(){yn(1)}));V({target:"Object",stat:!0,forced:!I||mn,sham:!I},{getOwnPropertyDescriptor:function(t,e){return yn(y(t),e)}});var bn=o((function(t){var e=Z.Object,i=t.exports=function(t,i){return e.getOwnPropertyDescriptor(t,i)};e.getOwnPropertyDescriptor.sham&&(i.sham=!0)})),xn=bn,wn=Z.Object.getOwnPropertySymbols;V({target:"Object",stat:!0,sham:!I},{create:pe});var kn=Z.Object,On=function(t,e){return kn.create(t,e)},Dn=On,Mn=dn;var Tn=function(t,e,i){return e in t?Mn(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t},_n=C((function(){se(1)}));V({target:"Object",stat:!0,forced:_n},{keys:function(t){return se(Ft(t))}});var Nn,jn=Z.Object.keys,En="\t\n\v\f\r                　\u2028\u2029\ufeff",Bn="["+En+"]",Fn=RegExp("^"+Bn+Bn+"*"),Rn=RegExp(Bn+Bn+"*$"),Sn=function(t){return function(e){var i=String(v(e));return 1&t&&(i=i.replace(Fn,"")),2&t&&(i=i.replace(Rn,"")),i}},Zn={start:Sn(1),end:Sn(2),trim:Sn(3)},zn=Zn.trim;V({target:"String",proto:!0,forced:(Nn="trim",C((function(){return!!En[Nn]()||"​᠎"!="​᠎"[Nn]()||En[Nn].name!==Nn})))},{trim:function(){return zn(this)}});var Gn=q("String").trim,Ln=String.prototype,Qn=function(t){var e=t.trim;return"string"==typeof t||t===Ln||t instanceof String&&e===Ln.trim?Gn:e},Wn=function(t,e){var i=[][t];return!!i&&C((function(){i.call(null,e||function(){throw 1},1)}))},Pn=Object.defineProperty,Un={},Yn=function(t){throw t},Vn=function(t,e){if(w(Un,t))return Un[t];e||(e={});var i=[][t],n=!!w(e,"ACCESSORS")&&e.ACCESSORS,g=w(e,0)?e[0]:Yn,o=w(e,1)?e[1]:void 0;return Un[t]=!!i&&!C((function(){if(n&&!I)return!0;var t={length:-1};n?Pn(t,1,{enumerable:!0,get:Yn}):t[1]=1,i.call(t,g,o)}))},Xn=ki.forEach,Hn=Wn("forEach"),Jn=Vn("forEach"),Kn=Hn&&Jn?[].forEach:function(t){return Xn(this,t,arguments.length>1?arguments[1]:void 0)};V({target:"Array",proto:!0,forced:[].forEach!=Kn},{forEach:Kn});var qn=q("Array").forEach,$n=Array.prototype,tg={DOMTokenList:!0,NodeList:!0},eg=function(t){var e=t.forEach;return t===$n||t instanceof Array&&e===$n.forEach||tg.hasOwnProperty(be(t))?qn:e},ig=ki.map,ng=si("map"),gg=Vn("map");V({target:"Array",proto:!0,forced:!ng||!gg},{map:function(t){return ig(this,t,arguments.length>1?arguments[1]:void 0)}});var og=q("Array").map,rg=Array.prototype,Ag=function(t){var e=t.map;return t===rg||t instanceof Array&&e===rg.map?og:e},sg=Zn.trim,Cg=s.parseInt,Ig=/^[+-]?0[Xx]/,ag=8!==Cg(En+"08")||22!==Cg(En+"0x16")?function(t,e){var i=sg(String(t));return Cg(i,e>>>0||(Ig.test(i)?16:10))}:Cg;V({global:!0,forced:parseInt!=ag},{parseInt:ag});var lg=Z.parseInt,cg=c.f,ug=function(t){return function(e){for(var i,n=y(e),g=se(n),o=g.length,r=0,A=[];o>r;)i=g[r++],I&&!cg.call(n,i)||A.push(t?[i,n[i]]:n[i]);return A}},dg={entries:ug(!0),values:ug(!1)}.values;V({target:"Object",stat:!0},{values:function(t){return dg(t)}});var hg=Z.Object.values,pg=ki.filter,fg=si("filter"),vg=Vn("filter");V({target:"Array",proto:!0,forced:!fg||!vg},{filter:function(t){return pg(this,t,arguments.length>1?arguments[1]:void 0)}});var yg=q("Array").filter,mg=Array.prototype,bg=function(t){var e=t.filter;return t===mg||t instanceof Array&&e===mg.filter?yg:e},xg=q("Array").concat,wg=Array.prototype,kg=function(t){var e=t.concat;return t===wg||t instanceof Array&&e===wg.concat?xg:e};V({target:"Array",stat:!0},{isArray:qe});var Og=Z.Array.isArray,Dg=Og;var Mg=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n};var Tg=function(t){if(Dg(t))return Mg(t)},_g=cn,Ng=Ut("iterator"),jg=function(t){var e=Object(t);return void 0!==e[Ng]||"@@iterator"in e||Ct.hasOwnProperty(be(e))};bi("asyncDispose"),bi("dispose"),bi("observable"),bi("patternMatch"),bi("replaceAll");var Eg=en;var Bg=function(t){if(void 0!==Eg&&jg(Object(t)))return _g(t)},Fg=si("slice"),Rg=Vn("slice",{ACCESSORS:!0,0:0,1:2}),Sg=Ut("species"),Zg=[].slice,zg=Math.max;V({target:"Array",proto:!0,forced:!Fg||!Rg},{slice:function(t,e){var i,n,g,o=y(this),r=$t(o.length),A=ie(t,r),s=ie(void 0===e?r:e,r);if(qe(o)&&("function"!=typeof(i=o.constructor)||i!==Array&&!qe(i.prototype)?m(i)&&null===(i=i[Sg])&&(i=void 0):i=void 0,i===Array||void 0===i))return Zg.call(o,A,s);for(n=new(void 0===i?Array:i)(zg(s-A,0)),g=0;A<s;A++,g++)A in o&&$e(n,g,o[A]);return n.length=g,n}});var Gg=q("Array").slice,Lg=Array.prototype,Qg=function(t){var e=t.slice;return t===Lg||t instanceof Array&&e===Lg.slice?Gg:e},Wg=Qg;var Pg=function(t,e){var i;if(t){if("string"==typeof t)return Mg(t,e);var n=Wg(i=Object.prototype.toString.call(t)).call(i,8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?_g(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mg(t,e):void 0}};var Ug=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")};var Yg=function(t){return Tg(t)||Bg(t)||Pg(t)||Ug()},Vg=Qg,Xg=C((function(){zt(1)}));V({target:"Object",stat:!0,forced:Xg,sham:!Rt},{getPrototypeOf:function(t){return zt(Ft(t))}});var Hg=Z.Object.getPrototypeOf,Jg=Hg,Kg=ge.indexOf,qg=[].indexOf,$g=!!qg&&1/[1].indexOf(1,-0)<0,to=Wn("indexOf"),eo=Vn("indexOf",{ACCESSORS:!0,1:0});V({target:"Array",proto:!0,forced:$g||!to||!eo},{indexOf:function(t){return $g?qg.apply(this,arguments)||0:Kg(this,t,arguments.length>1?arguments[1]:void 0)}});var io=q("Array").indexOf,no=Array.prototype,go=function(t){var e=t.indexOf;return t===no||t instanceof Array&&e===no.indexOf?io:e},oo=Og,ro=Object.assign,Ao=Object.defineProperty,so=!ro||C((function(){if(I&&1!==ro({b:1},ro(Ao({},"a",{enumerable:!0,get:function(){Ao(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},i=Symbol();return t[i]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=ro({},t)[i]||"abcdefghijklmnopqrst"!=se(ro({},e)).join("")}))?function(t,e){for(var i=Ft(t),n=arguments.length,g=1,o=vi.f,r=c.f;n>g;)for(var A,s=f(arguments[g++]),C=o?se(s).concat(o(s)):se(s),a=C.length,l=0;a>l;)A=C[l++],I&&!r.call(s,A)||(i[A]=s[A]);return i}:ro;V({target:"Object",stat:!0,forced:Object.assign!==so},{assign:so});var Co=Z.Object.assign,Io=yi.f("iterator"),ao=Io,lo=o((function(t){function e(i){return t.exports=e="function"==typeof Eg&&"symbol"==typeof ao?function(t){return typeof t}:function(t){return t&&"function"==typeof Eg&&t.constructor===Eg&&t!==Eg.prototype?"symbol":typeof t},e(i)}t.exports=e}));var co=function(t){if(Dg(t))return t};var uo=function(t,e){if(void 0!==Eg&&jg(Object(t))){var i=[],n=!0,g=!1,o=void 0;try{for(var r,A=Je(t);!(n=(r=A.next()).done)&&(i.push(r.value),!e||i.length!==e);n=!0);}catch(t){g=!0,o=t}finally{try{n||null==A.return||A.return()}finally{if(g)throw o}}return i}};var ho=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")};var po=function(t,e){return co(t)||uo(t,e)||Pg(t,e)||ho()};V({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}});var fo=Z.Date.now;function vo(t){if(void 0===nn||null==Ke(t)){if(oo(t)||(t=function(t,e){var i;if(!t)return;if("string"==typeof t)return yo(t,e);var n=Vg(i=Object.prototype.toString.call(t)).call(i,8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return un(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yo(t,e)}(t))){var e=0,i=function(){};return{s:i,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,g,o=!0,r=!1;return{s:function(){n=Je(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){r=!0,g=t},f:function(){try{o||null==n.return||n.return()}finally{if(r)throw g}}}}function yo(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function mo(t,e){var i=jn(t);if(wn){var n=wn(t);e&&(n=bg(n).call(n,(function(e){return xn(t,e).enumerable}))),i.push.apply(i,n)}return i}function bo(t){for(var e=1;e<arguments.length;e++){var i,n=null!=arguments[e]?arguments[e]:{};if(e%2)eg(i=mo(Object(n),!0)).call(i,(function(e){Tn(t,e,n[e])}));else if(vn)pn(t,vn(n));else{var g;eg(g=mo(Object(n))).call(g,(function(e){hn(t,e,xn(n,e))}))}}return t}
/**
 * vis-util
 * https://github.com/visjs/vis-util
 *
 * utilitie collection for visjs
 *
 * @version 4.0.0
 * @date    2020-02-29T15:35:13.178Z
 *
 * @copyright (c) 2011-2017 Almende B.V, http://almende.com
 * @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
 *
 * @license
 * vis.js is dual licensed under both
 *
 *   1. The Apache 2.0 License
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *   and
 *
 *   2. The MIT License
 *      http://opensource.org/licenses/MIT
 *
 * vis.js may be distributed under either license.
 */function xo(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return wo(e.length?e:[fo()])}function wo(t){var e=function(){for(var t=ko(),e=t(" "),i=t(" "),n=t(" "),g=0;g<arguments.length;g++)(e-=t(g<0||arguments.length<=g?void 0:arguments[g]))<0&&(e+=1),(i-=t(g<0||arguments.length<=g?void 0:arguments[g]))<0&&(i+=1),(n-=t(g<0||arguments.length<=g?void 0:arguments[g]))<0&&(n+=1);return[e,i,n]}(t),i=po(e,3),n=i[0],g=i[1],o=i[2],r=1,A=function(){var t=2091639*n+2.3283064365386963e-10*r;return n=g,g=o,o=t-(r=0|t)};return A.uint32=function(){return 4294967296*A()},A.fract53=function(){return A()+11102230246251565e-32*(2097152*A()|0)},A.algorithm="Alea",A.seed=t,A.version="0.9",A}function ko(){var t=4022871197;return function(e){for(var i=e.toString(),n=0;n<i.length;n++){var g=.02519603282416938*(t+=i.charCodeAt(n));g-=t=g>>>0,t=(g*=t)>>>0,t+=4294967296*(g-=t)}return 2.3283064365386963e-10*(t>>>0)}}var Oo=/^\/?Date\((-?\d+)/i,Do=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,Mo=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,To=/^rgb\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *\)$/i,_o=/^rgba\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *([01]|0?\.\d+) *\)$/i;function No(t){return t instanceof Number||"number"==typeof t}function jo(t){if(t)for(;!0===t.hasChildNodes();){var e=t.firstChild;e&&(jo(e),t.removeChild(e))}}function Eo(t){return t instanceof String||"string"==typeof t}function Bo(t){return"object"===lo(t)&&null!==t}function Fo(t,e,i,n){var g=!1;!0===n&&(g=null===e[i]&&void 0!==t[i]),g?delete t[i]:t[i]=e[i]}function Ro(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var n in t)if(void 0!==e[n])if(null===e[n]||"object"!==lo(e[n]))Fo(t,e,n,i);else{var g=t[n],o=e[n];Bo(g)&&Bo(o)&&Ro(g,o,i)}}var So=Co;function Zo(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(oo(i))throw new TypeError("Arrays are not supported by deepExtend");for(var g=0;g<t.length;g++){var o=t[g];if(Object.prototype.hasOwnProperty.call(i,o))if(i[o]&&i[o].constructor===Object)void 0===e[o]&&(e[o]={}),e[o].constructor===Object?Go(e[o],i[o],!1,n):Fo(e,i,o,n);else{if(oo(i[o]))throw new TypeError("Arrays are not supported by deepExtend");Fo(e,i,o,n)}}return e}function zo(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(oo(i))throw new TypeError("Arrays are not supported by deepExtend");for(var g in i)if(Object.prototype.hasOwnProperty.call(i,g)&&-1===go(t).call(t,g))if(i[g]&&i[g].constructor===Object)void 0===e[g]&&(e[g]={}),e[g].constructor===Object?Go(e[g],i[g]):Fo(e,i,g,n);else if(oo(i[g])){e[g]=[];for(var o=0;o<i[g].length;o++)e[g].push(i[g][o])}else Fo(e,i,g,n);return e}function Go(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];for(var g in e)if(Object.prototype.hasOwnProperty.call(e,g)||!0===i)if("object"===lo(e[g])&&null!==e[g]&&Jg(e[g])===Object.prototype)void 0===t[g]?t[g]=Go({},e[g],i):"object"===lo(t[g])&&null!==t[g]&&Jg(t[g])===Object.prototype?Go(t[g],e[g],i):Fo(t,e,g,n);else if(oo(e[g])){var o;t[g]=Vg(o=e[g]).call(o)}else Fo(t,e,g,n);return t}function Lo(t){var e=lo(t);return"object"===e?null===t?"null":t instanceof Boolean?"Boolean":t instanceof Number?"Number":t instanceof String?"String":oo(t)?"Array":t instanceof Date?"Date":"Object":"number"===e?"Number":"boolean"===e?"Boolean":"string"===e?"String":void 0===e?"undefined":e}function Qo(t,e){var i;return kg(i=[]).call(i,Yg(t),[e])}function Wo(t){return Vg(t).call(t)}function Po(t){return t.getBoundingClientRect().left}function Uo(t){return t.getBoundingClientRect().top}function Yo(t,e){if(oo(t))for(var i=t.length,n=0;n<i;n++)e(t[n],n,t);else for(var g in t)Object.prototype.hasOwnProperty.call(t,g)&&e(t[g],g,t)}var Vo=hg;function Xo(t,e,i,n){var g;t.addEventListener?(void 0===n&&(n=!1),"mousewheel"===e&&go(g=navigator.userAgent).call(g,"Firefox")>=0&&(e="DOMMouseScroll"),t.addEventListener(e,i,n)):t.attachEvent("on"+e,i)}function Ho(t,e,i,n){var g;t.removeEventListener?(void 0===n&&(n=!1),"mousewheel"===e&&go(g=navigator.userAgent).call(g,"Firefox")>=0&&(e="DOMMouseScroll"),t.removeEventListener(e,i,n)):t.detachEvent("on"+e,i)}var Jo={asBoolean:function(t,e){return"function"==typeof t&&(t=t()),null!=t?0!=t:e||null},asNumber:function(t,e){return"function"==typeof t&&(t=t()),null!=t?Number(t)||e||null:e||null},asString:function(t,e){return"function"==typeof t&&(t=t()),null!=t?String(t):e||null},asSize:function(t,e){return"function"==typeof t&&(t=t()),Eo(t)?t:No(t)?t+"px":e||null},asElement:function(t,e){return"function"==typeof t&&(t=t()),t||e||null}};function Ko(t){var e;switch(t.length){case 3:case 4:return(e=Mo.exec(t))?{r:lg(e[1]+e[1],16),g:lg(e[2]+e[2],16),b:lg(e[3]+e[3],16)}:null;case 6:case 7:return(e=Do.exec(t))?{r:lg(e[1],16),g:lg(e[2],16),b:lg(e[3],16)}:null;default:return null}}function qo(t,e){if(-1!==go(t).call(t,"rgba"))return t;if(-1!==go(t).call(t,"rgb")){var i=t.substr(go(t).call(t,"(")+1).replace(")","").split(",");return"rgba("+i[0]+","+i[1]+","+i[2]+","+e+")"}var n=Ko(t);return null==n?t:"rgba("+n.r+","+n.g+","+n.b+","+e+")"}function $o(t,e,i){var n;return"#"+Vg(n=((1<<24)+(t<<16)+(e<<8)+i).toString(16)).call(n,1)}function tr(t,e){if(Eo(t)){var i=t;if(sr(i)){var n,g=Ag(n=i.substr(4).substr(0,i.length-5).split(",")).call(n,(function(t){return lg(t)}));i=$o(g[0],g[1],g[2])}if(!0===Ar(i)){var o=rr(i),r={h:o.h,s:.8*o.s,v:Math.min(1,1.02*o.v)},A={h:o.h,s:Math.min(1,1.25*o.s),v:.8*o.v},s=or(A.h,A.s,A.v),C=or(r.h,r.s,r.v);return{background:i,border:s,highlight:{background:C,border:s},hover:{background:C,border:s}}}return{background:i,border:i,highlight:{background:i,border:i},hover:{background:i,border:i}}}return e?{background:t.background||e.background,border:t.border||e.border,highlight:Eo(t.highlight)?{border:t.highlight,background:t.highlight}:{background:t.highlight&&t.highlight.background||e.highlight.background,border:t.highlight&&t.highlight.border||e.highlight.border},hover:Eo(t.hover)?{border:t.hover,background:t.hover}:{border:t.hover&&t.hover.border||e.hover.border,background:t.hover&&t.hover.background||e.hover.background}}:{background:t.background||void 0,border:t.border||void 0,highlight:Eo(t.highlight)?{border:t.highlight,background:t.highlight}:{background:t.highlight&&t.highlight.background||void 0,border:t.highlight&&t.highlight.border||void 0},hover:Eo(t.hover)?{border:t.hover,background:t.hover}:{border:t.hover&&t.hover.border||void 0,background:t.hover&&t.hover.background||void 0}}}function er(t,e,i){t/=255,e/=255,i/=255;var n=Math.min(t,Math.min(e,i)),g=Math.max(t,Math.max(e,i));return n===g?{h:0,s:0,v:n}:{h:60*((t===n?3:i===n?1:5)-(t===n?e-i:i===n?t-e:i-t)/(g-n))/360,s:(g-n)/g,v:g}}var ir=function(t){var e,i={};return eg(e=t.split(";")).call(e,(function(t){if(""!=Qn(t).call(t)){var e,n,g=t.split(":"),o=Qn(e=g[0]).call(e),r=Qn(n=g[1]).call(n);i[o]=r}})),i},nr=function(t){var e;return Ag(e=jn(t)).call(e,(function(e){return e+": "+t[e]})).join("; ")};function gr(t,e,i){var n,g,o,r=Math.floor(6*t),A=6*t-r,s=i*(1-e),C=i*(1-A*e),I=i*(1-(1-A)*e);switch(r%6){case 0:n=i,g=I,o=s;break;case 1:n=C,g=i,o=s;break;case 2:n=s,g=i,o=I;break;case 3:n=s,g=C,o=i;break;case 4:n=I,g=s,o=i;break;case 5:n=i,g=s,o=C}return{r:Math.floor(255*n),g:Math.floor(255*g),b:Math.floor(255*o)}}function or(t,e,i){var n=gr(t,e,i);return $o(n.r,n.g,n.b)}function rr(t){var e=Ko(t);if(!e)throw new TypeError("'".concat(t,"' is not a valid color."));return er(e.r,e.g,e.b)}function Ar(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)}function sr(t){return To.test(t)}function Cr(t){return _o.test(t)}function Ir(t){if(null===t||"object"!==lo(t))return null;if(t instanceof Element)return t;var e=Dn(t);for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&"object"==lo(t[i])&&(e[i]=Ir(t[i]));return e}function ar(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},g=function(t){return null!=t},o=function(t){return null!==t&&"object"===lo(t)},r=function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0};if(!o(t))throw new Error("Parameter mergeTarget must be an object");if(!o(e))throw new Error("Parameter options must be an object");if(!g(i))throw new Error("Parameter option must have a value");if(!o(n))throw new Error("Parameter globalOptions must be an object");var A=function(t,e,i){o(t[i])||(t[i]={});var n=e[i],g=t[i];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(g[r]=n[r])},s=e[i],C=o(n)&&!r(n),I=C?n[i]:void 0,a=I?I.enabled:void 0;if(void 0!==s){if("boolean"==typeof s)return o(t[i])||(t[i]={}),void(t[i].enabled=s);if(null===s&&!o(t[i])){if(!g(I))return;t[i]=Dn(I)}if(o(s)){var l=!0;void 0!==s.enabled?l=s.enabled:void 0!==a&&(l=I.enabled),A(t,e,i),t[i].enabled=l}}}var lr={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return t*(2-t)},easeInOutQuad:function(t){return t<.5?2*t*t:(4-2*t)*t-1},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return--t*t*t+1},easeInOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1- --t*t*t*t},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1+--t*t*t*t*t},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}};function cr(t,e){var i;oo(e)||(e=[e]);var n,g=vo(t);try{for(g.s();!(n=g.n()).done;){var o=n.value;if(o){i=o[e[0]];for(var r=1;r<e.length;r++)i&&(i=i[e[r]]);if(void 0!==i)break}}}catch(t){g.e(t)}finally{g.f()}return i}var ur=Object.freeze({__proto__:null,Alea:xo,HSVToHex:or,HSVToRGB:gr,RGBToHSV:er,RGBToHex:$o,addClassName:function(t,e){var i=t.className.split(" "),n=e.split(" ");i=kg(i).call(i,bg(n).call(n,(function(t){return go(i).call(i,t)<0}))),t.className=i.join(" ")},addCssText:function(t,e){var i=ir(t.style.cssText),n=ir(e),g=bo(bo({},i),n);t.style.cssText=nr(g)},addEventListener:Xo,binarySearchCustom:function(t,e,i,n){for(var g=0,o=0,r=t.length-1;o<=r&&g<1e4;){var A=Math.floor((o+r)/2),s=t[A],C=e(void 0===n?s[i]:s[i][n]);if(0==C)return A;-1==C?o=A+1:r=A-1,g++}return-1},binarySearchValue:function(t,e,i,n,g){var o,r,A,s,C=0,I=0,a=t.length-1;for(g=null!=g?g:function(t,e){return t==e?0:t<e?-1:1};I<=a&&C<1e4;){if(s=Math.floor(.5*(a+I)),o=t[Math.max(0,s-1)][i],r=t[s][i],A=t[Math.min(t.length-1,s+1)][i],0==g(r,e))return s;if(g(o,e)<0&&g(r,e)>0)return"before"==n?Math.max(0,s-1):s;if(g(r,e)<0&&g(A,e)>0)return"before"==n?s:Math.min(t.length-1,s+1);g(r,e)<0?I=s+1:a=s-1,C++}return-1},bridgeObject:Ir,copyAndExtendArray:Qo,copyArray:Wo,deepExtend:Go,easingFunctions:lr,equalArray:function(t,e){if(t.length!==e.length)return!1;for(var i=0,n=t.length;i<n;i++)if(t[i]!=e[i])return!1;return!0},extend:So,fillIfDefined:Ro,forEach:Yo,getAbsoluteLeft:Po,getAbsoluteRight:function(t){return t.getBoundingClientRect().right},getAbsoluteTop:Uo,getScrollBarWidth:function(){var t=document.createElement("p");t.style.width="100%",t.style.height="200px";var e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.style.visibility="hidden",e.style.width="200px",e.style.height="150px",e.style.overflow="hidden",e.appendChild(t),document.body.appendChild(e);var i=t.offsetWidth;e.style.overflow="scroll";var n=t.offsetWidth;return i==n&&(n=e.clientWidth),document.body.removeChild(e),i-n},getTarget:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.event,e=null;return t&&(t.target?e=t.target:t.srcElement&&(e=t.srcElement)),e instanceof Element&&(null==e.nodeType||3!=e.nodeType||(e=e.parentNode)instanceof Element)?e:null},getType:Lo,hasParent:function(t,e){for(var i=t;i;){if(i===e)return!0;if(!i.parentNode)return!1;i=i.parentNode}return!1},hexToHSV:rr,hexToRGB:Ko,insertSort:function(t,e){for(var i=0;i<t.length;i++){var n=t[i],g=void 0;for(g=i;g>0&&e(n,t[g-1])<0;g--)t[g]=t[g-1];t[g]=n}return t},isDate:function(t){if(t instanceof Date)return!0;if(Eo(t)){if(Oo.exec(t))return!0;if(!isNaN(Date.parse(t)))return!0}return!1},isNumber:No,isObject:Bo,isString:Eo,isValidHex:Ar,isValidRGB:sr,isValidRGBA:Cr,mergeOptions:ar,option:Jo,overrideOpacity:qo,parseColor:tr,preventDefault:function(t){t||(t=window.event),t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},recursiveDOMDelete:jo,removeClassName:function(t,e){var i=t.className.split(" "),n=e.split(" ");i=bg(i).call(i,(function(t){return go(n).call(n,t)<0})),t.className=i.join(" ")},removeCssText:function(t,e){var i=ir(t.style.cssText),n=ir(e);for(var g in n)Object.prototype.hasOwnProperty.call(n,g)&&delete i[g];t.style.cssText=nr(i)},removeEventListener:Ho,selectiveBridgeObject:function(t,e){if(null!==e&&"object"===lo(e)){for(var i=Dn(e),n=0;n<t.length;n++)Object.prototype.hasOwnProperty.call(e,t[n])&&"object"==lo(e[t[n]])&&(i[t[n]]=Ir(e[t[n]]));return i}return null},selectiveDeepExtend:Zo,selectiveExtend:function(t,e){if(!oo(t))throw new Error("Array with property names expected as first argument");for(var i=arguments.length,n=new Array(i>2?i-2:0),g=2;g<i;g++)n[g-2]=arguments[g];for(var o=0,r=n;o<r.length;o++)for(var A=r[o],s=0;s<t.length;s++){var C=t[s];A&&Object.prototype.hasOwnProperty.call(A,C)&&(e[C]=A[C])}return e},selectiveNotDeepExtend:zo,throttle:function(t){var e=!1;return function(){e||(e=!0,requestAnimationFrame((function(){e=!1,t()})))}},toArray:Vo,topMost:cr,updateProperty:function(t,e,i){return t[e]!==i&&(t[e]=i,!0)}}),dr=si("splice"),hr=Vn("splice",{ACCESSORS:!0,0:0,1:2}),pr=Math.max,fr=Math.min;V({target:"Array",proto:!0,forced:!dr||!hr},{splice:function(t,e){var i,n,g,o,r,A,s=Ft(this),C=$t(s.length),I=ie(t,C),a=arguments.length;if(0===a?i=n=0:1===a?(i=0,n=C-I):(i=a-2,n=fr(pr(Kt(e),0),C-I)),C+i-n>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(g=ei(s,n),o=0;o<n;o++)(r=I+o)in s&&$e(g,o,s[r]);if(g.length=n,i<n){for(o=I;o<C-n;o++)A=o+i,(r=o+n)in s?s[A]=s[r]:delete s[A];for(o=C;o>C-n+i;o--)delete s[o-1]}else if(i>n)for(o=C-n;o>I;o--)A=o+i-1,(r=o+n-1)in s?s[A]=s[r]:delete s[A];for(o=0;o<i;o++)s[o+I]=arguments[o+2];return s.length=C-n+i,g}});var vr=q("Array").splice,yr=Array.prototype,mr=function(t){var e=t.splice;return t===yr||t instanceof Array&&e===yr.splice?vr:e},br=ge.includes,xr=Vn("indexOf",{ACCESSORS:!0,1:0});V({target:"Array",proto:!0,forced:!xr},{includes:function(t){return br(this,t,arguments.length>1?arguments[1]:void 0)}});var wr=q("Array").includes,kr=Ut("match"),Or=function(t){if(function(t){var e;return m(t)&&(void 0!==(e=t[kr])?!!e:"RegExp"==h(t))}(t))throw TypeError("The method doesn't accept regular expressions");return t},Dr=Ut("match");V({target:"String",proto:!0,forced:!function(t){var e=/./;try{"/./"[t](e)}catch(i){try{return e[Dr]=!1,"/./"[t](e)}catch(t){}}return!1}("includes")},{includes:function(t){return!!~String(v(this)).indexOf(Or(t),arguments.length>1?arguments[1]:void 0)}});var Mr=q("String").includes,Tr=Array.prototype,_r=String.prototype,Nr=function(t){var e=t.includes;return t===Tr||t instanceof Array&&e===Tr.includes?wr:"string"==typeof t||t===_r||t instanceof String&&e===_r.includes?Mr:e};function jr(t){return Gr=t,function(){var t={};Lr=0,void(Qr=Gr.charAt(0)),tA(),"strict"===Wr&&(t.strict=!0,tA());"graph"!==Wr&&"digraph"!==Wr||(t.type=Wr,tA());Pr===Sr&&(t.id=Wr,tA());if("{"!=Wr)throw rA("Angle bracket { expected");if(tA(),eA(t),"}"!=Wr)throw rA("Angle bracket } expected");if(tA(),""!==Wr)throw rA("End of file expected");return tA(),delete t.node,delete t.edge,delete t.graph,t}()}var Er={fontsize:"font.size",fontcolor:"font.color",labelfontcolor:"font.color",fontname:"font.face",color:["color.border","color.background"],fillcolor:"color.background",tooltip:"title",labeltooltip:"title"},Br=Dn(Er);Br.color="color.color",Br.style="dashes";var Fr=0,Rr=1,Sr=2,Zr=3,zr={"{":!0,"}":!0,"[":!0,"]":!0,";":!0,"=":!0,",":!0,"->":!0,"--":!0},Gr="",Lr=0,Qr="",Wr="",Pr=Fr;function Ur(){Lr++,Qr=Gr.charAt(Lr)}function Yr(){return Gr.charAt(Lr+1)}var Vr=/[a-zA-Z_0-9.:#]/;function Xr(t){return Vr.test(t)}function Hr(t,e){if(t||(t={}),e)for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function Jr(t,e,i){for(var n=e.split("."),g=t;n.length;){var o=n.shift();n.length?(g[o]||(g[o]={}),g=g[o]):g[o]=i}}function Kr(t,e){for(var i,n,g=null,o=[t],r=t;r.parent;)o.push(r.parent),r=r.parent;if(r.nodes)for(i=0,n=r.nodes.length;i<n;i++)if(e.id===r.nodes[i].id){g=r.nodes[i];break}for(g||(g={id:e.id},t.node&&(g.attr=Hr(g.attr,t.node))),i=o.length-1;i>=0;i--){var A,s=o[i];s.nodes||(s.nodes=[]),-1===go(A=s.nodes).call(A,g)&&s.nodes.push(g)}e.attr&&(g.attr=Hr(g.attr,e.attr))}function qr(t,e){if(t.edges||(t.edges=[]),t.edges.push(e),t.edge){var i=Hr({},t.edge);e.attr=Hr(i,e.attr)}}function $r(t,e,i,n,g){var o={from:e,to:i,type:n};return t.edge&&(o.attr=Hr({},t.edge)),o.attr=Hr(o.attr||{},g),null!=g&&g.hasOwnProperty("arrows")&&null!=g.arrows&&(o.arrows={to:{enabled:!0,type:g.arrows.type}},g.arrows=null),o}function tA(){for(Pr=Fr,Wr="";" "===Qr||"\t"===Qr||"\n"===Qr||"\r"===Qr;)Ur();do{var t=!1;if("#"===Qr){for(var e=Lr-1;" "===Gr.charAt(e)||"\t"===Gr.charAt(e);)e--;if("\n"===Gr.charAt(e)||""===Gr.charAt(e)){for(;""!=Qr&&"\n"!=Qr;)Ur();t=!0}}if("/"===Qr&&"/"===Yr()){for(;""!=Qr&&"\n"!=Qr;)Ur();t=!0}if("/"===Qr&&"*"===Yr()){for(;""!=Qr;){if("*"===Qr&&"/"===Yr()){Ur(),Ur();break}Ur()}t=!0}for(;" "===Qr||"\t"===Qr||"\n"===Qr||"\r"===Qr;)Ur()}while(t);if(""!==Qr){var i=Qr+Yr();if(zr[i])return Pr=Rr,Wr=i,Ur(),void Ur();if(zr[Qr])return Pr=Rr,Wr=Qr,void Ur();if(Xr(Qr)||"-"===Qr){for(Wr+=Qr,Ur();Xr(Qr);)Wr+=Qr,Ur();return"false"===Wr?Wr=!1:"true"===Wr?Wr=!0:isNaN(Number(Wr))||(Wr=Number(Wr)),void(Pr=Sr)}if('"'===Qr){for(Ur();""!=Qr&&('"'!=Qr||'"'===Qr&&'"'===Yr());)'"'===Qr?(Wr+=Qr,Ur()):"\\"===Qr&&"n"===Yr()?(Wr+="\n",Ur()):Wr+=Qr,Ur();if('"'!=Qr)throw rA('End of string " expected');return Ur(),void(Pr=Sr)}for(Pr=Zr;""!=Qr;)Wr+=Qr,Ur();throw new SyntaxError('Syntax error in part "'+AA(Wr,30)+'"')}Pr=Rr}function eA(t){for(;""!==Wr&&"}"!=Wr;)iA(t),";"===Wr&&tA()}function iA(t){var e=nA(t);if(e)gA(t,e);else if(!function(t){if("node"===Wr)return tA(),t.node=oA(),"node";if("edge"===Wr)return tA(),t.edge=oA(),"edge";if("graph"===Wr)return tA(),t.graph=oA(),"graph";return null}(t)){if(Pr!=Sr)throw rA("Identifier expected");var i=Wr;if(tA(),"="===Wr){if(tA(),Pr!=Sr)throw rA("Identifier expected");t[i]=Wr,tA()}else!function(t,e){var i={id:e},n=oA();n&&(i.attr=n);Kr(t,i),gA(t,e)}(t,i)}}function nA(t){var e=null;if("subgraph"===Wr&&((e={}).type="subgraph",tA(),Pr===Sr&&(e.id=Wr,tA())),"{"===Wr){if(tA(),e||(e={}),e.parent=t,e.node=t.node,e.edge=t.edge,e.graph=t.graph,eA(e),"}"!=Wr)throw rA("Angle bracket } expected");tA(),delete e.node,delete e.edge,delete e.graph,delete e.parent,t.subgraphs||(t.subgraphs=[]),t.subgraphs.push(e)}return e}function gA(t,e){for(;"->"===Wr||"--"===Wr;){var i,n=Wr;tA();var g=nA(t);if(g)i=g;else{if(Pr!=Sr)throw rA("Identifier or subgraph expected");Kr(t,{id:i=Wr}),tA()}qr(t,$r(t,e,i,n,oA())),e=i}}function oA(){for(var t,e,i=null,n={dashed:!0,solid:!1,dotted:[1,5]},g={dot:"circle",box:"box",crow:"crow",curve:"curve",icurve:"inv_curve",normal:"triangle",inv:"inv_triangle",diamond:"diamond",tee:"bar",vee:"vee"},o=new Array,r=new Array;"["===Wr;){for(tA(),i={};""!==Wr&&"]"!=Wr;){if(Pr!=Sr)throw rA("Attribute name expected");var A=Wr;if(tA(),"="!=Wr)throw rA("Equal sign = expected");if(tA(),Pr!=Sr)throw rA("Attribute value expected");var s=Wr;"style"===A&&(s=n[s]),"arrowhead"===A&&(A="arrows",s={to:{enabled:!0,type:g[s]}}),"arrowtail"===A&&(A="arrows",s={from:{enabled:!0,type:g[s]}}),o.push({attr:i,name:A,value:s}),r.push(A),tA(),","==Wr&&tA()}if("]"!=Wr)throw rA("Bracket ] expected");tA()}if(Nr(r).call(r,"dir")){var C={arrows:{}};for(t=0;t<o.length;t++)if("arrows"===o[t].name)if(null!=o[t].value.to)C.arrows.to=t;else{if(null==o[t].value.from)throw rA("Invalid value of arrows");C.arrows.from=t}else"dir"===o[t].name&&(C.dir=t);var I,a,l=o[C.dir].value;if(!Nr(r).call(r,"arrows"))if("both"===l)o.push({attr:o[C.dir].attr,name:"arrows",value:{to:{enabled:!0}}}),C.arrows.to=o.length-1,o.push({attr:o[C.dir].attr,name:"arrows",value:{from:{enabled:!0}}}),C.arrows.from=o.length-1;else if("forward"===l)o.push({attr:o[C.dir].attr,name:"arrows",value:{to:{enabled:!0}}}),C.arrows.to=o.length-1;else if("back"===l)o.push({attr:o[C.dir].attr,name:"arrows",value:{from:{enabled:!0}}}),C.arrows.from=o.length-1;else{if("none"!==l)throw rA('Invalid dir type "'+l+'"');o.push({attr:o[C.dir].attr,name:"arrows",value:""}),C.arrows.to=o.length-1}if("both"===l)C.arrows.to&&C.arrows.from?(a=o[C.arrows.to].value.to.type,I=o[C.arrows.from].value.from.type,o[C.arrows.to]={attr:o[C.arrows.to].attr,name:o[C.arrows.to].name,value:{to:{enabled:!0,type:a},from:{enabled:!0,type:I}}},mr(o).call(o,C.arrows.from,1)):C.arrows.to?(a=o[C.arrows.to].value.to.type,I="arrow",o[C.arrows.to]={attr:o[C.arrows.to].attr,name:o[C.arrows.to].name,value:{to:{enabled:!0,type:a},from:{enabled:!0,type:I}}}):C.arrows.from&&(a="arrow",I=o[C.arrows.from].value.from.type,o[C.arrows.from]={attr:o[C.arrows.from].attr,name:o[C.arrows.from].name,value:{to:{enabled:!0,type:a},from:{enabled:!0,type:I}}});else if("back"===l)C.arrows.to&&C.arrows.from?(a="",I=o[C.arrows.from].value.from.type,o[C.arrows.from]={attr:o[C.arrows.from].attr,name:o[C.arrows.from].name,value:{to:{enabled:!0,type:a},from:{enabled:!0,type:I}}}):C.arrows.to?(a="",I="arrow",C.arrows.from=C.arrows.to,o[C.arrows.from]={attr:o[C.arrows.from].attr,name:o[C.arrows.from].name,value:{to:{enabled:!0,type:a},from:{enabled:!0,type:I}}}):C.arrows.from&&(a="",I=o[C.arrows.from].value.from.type,o[C.arrows.to]={attr:o[C.arrows.from].attr,name:o[C.arrows.from].name,value:{to:{enabled:!0,type:a},from:{enabled:!0,type:I}}}),o[C.arrows.from]={attr:o[C.arrows.from].attr,name:o[C.arrows.from].name,value:{from:{enabled:!0,type:o[C.arrows.from].value.from.type}}};else if("none"===l){var c;o[c=C.arrows.to?C.arrows.to:C.arrows.from]={attr:o[c].attr,name:o[c].name,value:""}}else{if("forward"!==l)throw rA('Invalid dir type "'+l+'"');C.arrows.to&&C.arrows.from||C.arrows.to?(a=o[C.arrows.to].value.to.type,I="",o[C.arrows.to]={attr:o[C.arrows.to].attr,name:o[C.arrows.to].name,value:{to:{enabled:!0,type:a},from:{enabled:!0,type:I}}}):C.arrows.from&&(a="arrow",I="",C.arrows.to=C.arrows.from,o[C.arrows.to]={attr:o[C.arrows.to].attr,name:o[C.arrows.to].name,value:{to:{enabled:!0,type:a},from:{enabled:!0,type:I}}}),o[C.arrows.to]={attr:o[C.arrows.to].attr,name:o[C.arrows.to].name,value:{to:{enabled:!0,type:o[C.arrows.to].value.to.type}}}}mr(o).call(o,C.dir,1)}if(Nr(r).call(r,"penwidth")){var u=[];for(e=o.length,t=0;t<e;t++)"width"!==o[t].name&&("penwidth"===o[t].name&&(o[t].name="width"),u.push(o[t]));o=u}for(e=o.length,t=0;t<e;t++)Jr(o[t].attr,o[t].name,o[t].value);return i}function rA(t){return new SyntaxError(t+', got "'+AA(Wr,30)+'" (char '+Lr+")")}function AA(t,e){return t.length<=e?t:t.substr(0,27)+"..."}function sA(t,e,i){for(var n=e.split("."),g=n.pop(),o=t,r=0;r<n.length;r++){var A=n[r];A in o||(o[A]={}),o=o[A]}return o[g]=i,t}function CA(t,e){var i={};for(var n in t)if(t.hasOwnProperty(n)){var g=e[n];oo(g)?eg(g).call(g,(function(e){sA(i,e,t[n])})):sA(i,"string"==typeof g?g:n,t[n])}return i}var IA=jr,aA=function(t){var e,i=jr(t),n={nodes:[],edges:[],options:{}};if(i.nodes&&eg(e=i.nodes).call(e,(function(t){var e={id:t.id,label:String(t.label||t.id)};Hr(e,CA(t.attr,Er)),e.image&&(e.shape="image"),n.nodes.push(e)})),i.edges){var g,o=function(t){var e={from:t.from,to:t.to};return Hr(e,CA(t.attr,Br)),null==e.arrows&&"->"===t.type&&(e.arrows="to"),e};eg(g=i.edges).call(g,(function(t){var e,i,g,r,A,s,C;(e=t.from instanceof Object?t.from.nodes:{id:t.from},i=t.to instanceof Object?t.to.nodes:{id:t.to},t.from instanceof Object&&t.from.edges)&&eg(g=t.from.edges).call(g,(function(t){var e=o(t);n.edges.push(e)}));(A=i,s=function(e,i){var g=$r(n,e.id,i.id,t.type,t.attr),r=o(g);n.edges.push(r)},oo(r=e)?eg(r).call(r,(function(t){oo(A)?eg(A).call(A,(function(e){s(t,e)})):s(t,A)})):oo(A)?eg(A).call(A,(function(t){s(r,t)})):s(r,A),t.to instanceof Object&&t.to.edges)&&eg(C=t.to.edges).call(C,(function(t){var e=o(t);n.edges.push(e)}))}))}return i.attr&&(n.options=i.attr),n},lA={parseDOT:IA,DOTToGraph:aA},cA=Object.freeze({__proto__:null,default:lA,__moduleExports:lA,parseDOT:IA,DOTToGraph:aA});function uA(t,e){var i,n={edges:{inheritColor:!1},nodes:{fixed:!1,parseColor:!1}};null!=e&&(null!=e.fixed&&(n.nodes.fixed=e.fixed),null!=e.parseColor&&(n.nodes.parseColor=e.parseColor),null!=e.inheritColor&&(n.edges.inheritColor=e.inheritColor));var g=t.edges,o=Ag(g).call(g,(function(t){var e={from:t.source,id:t.id,to:t.target};return null!=t.attributes&&(e.attributes=t.attributes),null!=t.label&&(e.label=t.label),null!=t.attributes&&null!=t.attributes.title&&(e.title=t.attributes.title),"Directed"===t.type&&(e.arrows="to"),t.color&&!1===n.edges.inheritColor&&(e.color=t.color),e}));return{nodes:Ag(i=t.nodes).call(i,(function(t){var e={id:t.id,fixed:n.nodes.fixed&&null!=t.x&&null!=t.y};return null!=t.attributes&&(e.attributes=t.attributes),null!=t.label&&(e.label=t.label),null!=t.size&&(e.size=t.size),null!=t.attributes&&null!=t.attributes.title&&(e.title=t.attributes.title),null!=t.title&&(e.title=t.title),null!=t.x&&(e.x=t.x),null!=t.y&&(e.y=t.y),null!=t.color&&(!0===n.nodes.parseColor?e.color=t.color:e.color={background:t.color,border:t.color,highlight:{background:t.color,border:t.color},hover:{background:t.color,border:t.color}}),e})),edges:o}}var dA=Object.freeze({__proto__:null,parseGephi:uA});function hA(t,e){void 0===e&&(e={});var i=e.insertAt;if(t&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],g=document.createElement("style");g.type="text/css","top"===i&&n.firstChild?n.insertBefore(g,n.firstChild):n.appendChild(g),g.styleSheet?g.styleSheet.cssText=t:g.appendChild(document.createTextNode(t))}}var pA=".vis-overlay {\n  position: absolute;\n  top: 0px;\n  right: 0px;\n  bottom: 0px;\n  left: 0px;\n\n  /* Must be displayed above for example selected Timeline items */\n  z-index: 10;\n}\n\n.vis-active {\n  box-shadow: 0 0 10px #86d5f8;\n}\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkFjdGl2YXRvci5jc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxrQkFBa0I7RUFDbEIsUUFBUTtFQUNSLFVBQVU7RUFDVixXQUFXO0VBQ1gsU0FBUzs7RUFFVCxnRUFBZ0U7RUFDaEUsV0FBVztBQUNiOztBQUVBO0VBQ0UsNEJBQTRCO0FBQzlCIiwiZmlsZSI6IkFjdGl2YXRvci5jc3MiLCJzb3VyY2VzQ29udGVudCI6WyIudmlzLW92ZXJsYXkge1xuICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gIHRvcDogMHB4O1xuICByaWdodDogMHB4O1xuICBib3R0b206IDBweDtcbiAgbGVmdDogMHB4O1xuXG4gIC8qIE11c3QgYmUgZGlzcGxheWVkIGFib3ZlIGZvciBleGFtcGxlIHNlbGVjdGVkIFRpbWVsaW5lIGl0ZW1zICovXG4gIHotaW5kZXg6IDEwO1xufVxuXG4udmlzLWFjdGl2ZSB7XG4gIGJveC1zaGFkb3c6IDAgMCAxMHB4ICM4NmQ1Zjg7XG59XG4iXX0= */";hA(pA);var fA=Object.freeze({__proto__:null,default:pA,stylesheet:".vis-overlay {\n  position: absolute;\n  top: 0px;\n  right: 0px;\n  bottom: 0px;\n  left: 0px;\n\n  /* Must be displayed above for example selected Timeline items */\n  z-index: 10;\n}\n\n.vis-active {\n  box-shadow: 0 0 10px #86d5f8;\n}\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkFjdGl2YXRvci5jc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxrQkFBa0I7RUFDbEIsUUFBUTtFQUNSLFVBQVU7RUFDVixXQUFXO0VBQ1gsU0FBUzs7RUFFVCxnRUFBZ0U7RUFDaEUsV0FBVztBQUNiOztBQUVBO0VBQ0UsNEJBQTRCO0FBQzlCIiwiZmlsZSI6IkFjdGl2YXRvci5jc3MiLCJzb3VyY2VzQ29udGVudCI6WyIudmlzLW92ZXJsYXkge1xuICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gIHRvcDogMHB4O1xuICByaWdodDogMHB4O1xuICBib3R0b206IDBweDtcbiAgbGVmdDogMHB4O1xuXG4gIC8qIE11c3QgYmUgZGlzcGxheWVkIGFib3ZlIGZvciBleGFtcGxlIHNlbGVjdGVkIFRpbWVsaW5lIGl0ZW1zICovXG4gIHotaW5kZXg6IDEwO1xufVxuXG4udmlzLWFjdGl2ZSB7XG4gIGJveC1zaGFkb3c6IDAgMCAxMHB4ICM4NmQ1Zjg7XG59XG4iXX0= */"}),vA=o((function(t,e){t.exports=function(t){var e,i=t&&t.preventDefault||!1,n=t&&t.container||window,g={},o={keydown:{},keyup:{}},r={};for(e=97;e<=122;e++)r[String.fromCharCode(e)]={code:e-97+65,shift:!1};for(e=65;e<=90;e++)r[String.fromCharCode(e)]={code:e,shift:!0};for(e=0;e<=9;e++)r[""+e]={code:48+e,shift:!1};for(e=1;e<=12;e++)r["F"+e]={code:111+e,shift:!1};for(e=0;e<=9;e++)r["num"+e]={code:96+e,shift:!1};r["num*"]={code:106,shift:!1},r["num+"]={code:107,shift:!1},r["num-"]={code:109,shift:!1},r["num/"]={code:111,shift:!1},r["num."]={code:110,shift:!1},r.left={code:37,shift:!1},r.up={code:38,shift:!1},r.right={code:39,shift:!1},r.down={code:40,shift:!1},r.space={code:32,shift:!1},r.enter={code:13,shift:!1},r.shift={code:16,shift:void 0},r.esc={code:27,shift:!1},r.backspace={code:8,shift:!1},r.tab={code:9,shift:!1},r.ctrl={code:17,shift:!1},r.alt={code:18,shift:!1},r.delete={code:46,shift:!1},r.pageup={code:33,shift:!1},r.pagedown={code:34,shift:!1},r["="]={code:187,shift:!1},r["-"]={code:189,shift:!1},r["]"]={code:221,shift:!1},r["["]={code:219,shift:!1};var A=function(t){C(t,"keydown")},s=function(t){C(t,"keyup")},C=function(t,e){if(void 0!==o[e][t.keyCode]){for(var n=o[e][t.keyCode],g=0;g<n.length;g++)(void 0===n[g].shift||1==n[g].shift&&1==t.shiftKey||0==n[g].shift&&0==t.shiftKey)&&n[g].fn(t);1==i&&t.preventDefault()}};return g.bind=function(t,e,i){if(void 0===i&&(i="keydown"),void 0===r[t])throw new Error("unsupported key: "+t);void 0===o[i][r[t].code]&&(o[i][r[t].code]=[]),o[i][r[t].code].push({fn:e,shift:r[t].shift})},g.bindAll=function(t,e){for(var i in void 0===e&&(e="keydown"),r)r.hasOwnProperty(i)&&g.bind(i,t,e)},g.getKey=function(t){for(var e in r)if(r.hasOwnProperty(e)){if(1==t.shiftKey&&1==r[e].shift&&t.keyCode==r[e].code)return e;if(0==t.shiftKey&&0==r[e].shift&&t.keyCode==r[e].code)return e;if(t.keyCode==r[e].code&&"shift"==e)return e}return"unknown key, currently not supported"},g.unbind=function(t,e,i){if(void 0===i&&(i="keydown"),void 0===r[t])throw new Error("unsupported key: "+t);if(void 0!==e){var n=[],g=o[i][r[t].code];if(void 0!==g)for(var A=0;A<g.length;A++)g[A].fn==e&&g[A].shift==r[t].shift||n.push(o[i][r[t].code][A]);o[i][r[t].code]=n}else o[i][r[t].code]=[]},g.reset=function(){o={keydown:{},keyup:{}}},g.destroy=function(){o={keydown:{},keyup:{}},n.removeEventListener("keydown",A,!0),n.removeEventListener("keyup",s,!0)},n.addEventListener("keydown",A,!0),n.addEventListener("keyup",s,!0),g}}));
/*! Hammer.JS - v2.0.17-rc - 2019-12-16
 * http://naver.github.io/egjs
 *
 * Forked By Naver egjs
 * Copyright (c) hammerjs
 * Licensed under the MIT license */
function yA(){return(yA=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(this,arguments)}function mA(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function bA(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var xA,wA="function"!=typeof Object.assign?function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i<arguments.length;i++){var n=arguments[i];if(null!=n)for(var g in n)n.hasOwnProperty(g)&&(e[g]=n[g])}return e}:Object.assign,kA=["","webkit","Moz","MS","ms","o"],OA="undefined"==typeof document?{style:{}}:document.createElement("div"),DA=Math.round,MA=Math.abs,TA=Date.now;function _A(t,e){for(var i,n,g=e[0].toUpperCase()+e.slice(1),o=0;o<kA.length;){if((n=(i=kA[o])?i+g:e)in t)return n;o++}}xA="undefined"==typeof window?{}:window;var NA=_A(OA.style,"touchAction"),jA=void 0!==NA;var EA=function(){if(!jA)return!1;var t={},e=xA.CSS&&xA.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(i){return t[i]=!e||xA.CSS.supports("touch-action",i)})),t}(),BA="ontouchstart"in xA,FA=void 0!==_A(xA,"PointerEvent"),RA=BA&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),SA=["x","y"],ZA=["clientX","clientY"];function zA(t,e,i){var n;if(t)if(t.forEach)t.forEach(e,i);else if(void 0!==t.length)for(n=0;n<t.length;)e.call(i,t[n],n,t),n++;else for(n in t)t.hasOwnProperty(n)&&e.call(i,t[n],n,t)}function GA(t,e){return"function"==typeof t?t.apply(e&&e[0]||void 0,e):t}function LA(t,e){return t.indexOf(e)>-1}var QA=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){"compute"===t&&(t=this.compute()),jA&&this.manager.element.style&&EA[t]&&(this.manager.element.style[NA]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return zA(this.manager.recognizers,(function(e){GA(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(LA(t,"none"))return"none";var e=LA(t,"pan-x"),i=LA(t,"pan-y");return e&&i?"none":e||i?e?"pan-x":"pan-y":LA(t,"manipulation")?"manipulation":"auto"}(t.join(" "))},e.preventDefaults=function(t){var e=t.srcEvent,i=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var n=this.actions,g=LA(n,"none")&&!EA.none,o=LA(n,"pan-y")&&!EA["pan-y"],r=LA(n,"pan-x")&&!EA["pan-x"];if(g){var A=1===t.pointers.length,s=t.distance<2,C=t.deltaTime<250;if(A&&s&&C)return}if(!r||!o)return g||o&&6&i||r&&24&i?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function WA(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function PA(t){var e=t.length;if(1===e)return{x:DA(t[0].clientX),y:DA(t[0].clientY)};for(var i=0,n=0,g=0;g<e;)i+=t[g].clientX,n+=t[g].clientY,g++;return{x:DA(i/e),y:DA(n/e)}}function UA(t){for(var e=[],i=0;i<t.pointers.length;)e[i]={clientX:DA(t.pointers[i].clientX),clientY:DA(t.pointers[i].clientY)},i++;return{timeStamp:TA(),pointers:e,center:PA(e),deltaX:t.deltaX,deltaY:t.deltaY}}function YA(t,e,i){i||(i=SA);var n=e[i[0]]-t[i[0]],g=e[i[1]]-t[i[1]];return Math.sqrt(n*n+g*g)}function VA(t,e,i){i||(i=SA);var n=e[i[0]]-t[i[0]],g=e[i[1]]-t[i[1]];return 180*Math.atan2(g,n)/Math.PI}function XA(t,e){return t===e?1:MA(t)>=MA(e)?t<0?2:4:e<0?8:16}function HA(t,e,i){return{x:e/t||0,y:i/t||0}}function JA(t,e){var i=t.session,n=e.pointers,g=n.length;i.firstInput||(i.firstInput=UA(e)),g>1&&!i.firstMultiple?i.firstMultiple=UA(e):1===g&&(i.firstMultiple=!1);var o=i.firstInput,r=i.firstMultiple,A=r?r.center:o.center,s=e.center=PA(n);e.timeStamp=TA(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=VA(A,s),e.distance=YA(A,s),function(t,e){var i=e.center,n=t.offsetDelta||{},g=t.prevDelta||{},o=t.prevInput||{};1!==e.eventType&&4!==o.eventType||(g=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},n=t.offsetDelta={x:i.x,y:i.y}),e.deltaX=g.x+(i.x-n.x),e.deltaY=g.y+(i.y-n.y)}(i,e),e.offsetDirection=XA(e.deltaX,e.deltaY);var C,I,a=HA(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=a.x,e.overallVelocityY=a.y,e.overallVelocity=MA(a.x)>MA(a.y)?a.x:a.y,e.scale=r?(C=r.pointers,YA((I=n)[0],I[1],ZA)/YA(C[0],C[1],ZA)):1,e.rotation=r?function(t,e){return VA(e[1],e[0],ZA)+VA(t[1],t[0],ZA)}(r.pointers,n):0,e.maxPointers=i.prevInput?e.pointers.length>i.prevInput.maxPointers?e.pointers.length:i.prevInput.maxPointers:e.pointers.length,function(t,e){var i,n,g,o,r=t.lastInterval||e,A=e.timeStamp-r.timeStamp;if(8!==e.eventType&&(A>25||void 0===r.velocity)){var s=e.deltaX-r.deltaX,C=e.deltaY-r.deltaY,I=HA(A,s,C);n=I.x,g=I.y,i=MA(I.x)>MA(I.y)?I.x:I.y,o=XA(s,C),t.lastInterval=e}else i=r.velocity,n=r.velocityX,g=r.velocityY,o=r.direction;e.velocity=i,e.velocityX=n,e.velocityY=g,e.direction=o}(i,e);var l,c=t.element,u=e.srcEvent;WA(l=u.composedPath?u.composedPath()[0]:u.path?u.path[0]:u.target,c)&&(c=l),e.target=c}function KA(t,e,i){var n=i.pointers.length,g=i.changedPointers.length,o=1&e&&n-g==0,r=12&e&&n-g==0;i.isFirst=!!o,i.isFinal=!!r,o&&(t.session={}),i.eventType=e,JA(t,i),t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function qA(t){return t.trim().split(/\s+/g)}function $A(t,e,i){zA(qA(e),(function(e){t.addEventListener(e,i,!1)}))}function ts(t,e,i){zA(qA(e),(function(e){t.removeEventListener(e,i,!1)}))}function es(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var is=function(){function t(t,e){var i=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){GA(t.options.enable,[t])&&i.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&$A(this.element,this.evEl,this.domHandler),this.evTarget&&$A(this.target,this.evTarget,this.domHandler),this.evWin&&$A(es(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&ts(this.element,this.evEl,this.domHandler),this.evTarget&&ts(this.target,this.evTarget,this.domHandler),this.evWin&&ts(es(this.element),this.evWin,this.domHandler)},t}();function ns(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);for(var n=0;n<t.length;){if(i&&t[n][i]==e||!i&&t[n]===e)return n;n++}return-1}var gs={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},os={2:"touch",3:"pen",4:"mouse",5:"kinect"},rs="pointerdown",As="pointermove pointerup pointercancel";xA.MSPointerEvent&&!xA.PointerEvent&&(rs="MSPointerDown",As="MSPointerMove MSPointerUp MSPointerCancel");var ss=function(t){function e(){var i,n=e.prototype;return n.evEl=rs,n.evWin=As,(i=t.apply(this,arguments)||this).store=i.manager.session.pointerEvents=[],i}return mA(e,t),e.prototype.handler=function(t){var e=this.store,i=!1,n=t.type.toLowerCase().replace("ms",""),g=gs[n],o=os[t.pointerType]||t.pointerType,r="touch"===o,A=ns(e,t.pointerId,"pointerId");1&g&&(0===t.button||r)?A<0&&(e.push(t),A=e.length-1):12&g&&(i=!0),A<0||(e[A]=t,this.callback(this.manager,g,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),i&&e.splice(A,1))},e}(is);function Cs(t){return Array.prototype.slice.call(t,0)}function Is(t,e,i){for(var n=[],g=[],o=0;o<t.length;){var r=e?t[o][e]:t[o];ns(g,r)<0&&n.push(t[o]),g[o]=r,o++}return i&&(n=e?n.sort((function(t,i){return t[e]>i[e]})):n.sort()),n}var as={touchstart:1,touchmove:2,touchend:4,touchcancel:8},ls=function(t){function e(){var i;return e.prototype.evTarget="touchstart touchmove touchend touchcancel",(i=t.apply(this,arguments)||this).targetIds={},i}return mA(e,t),e.prototype.handler=function(t){var e=as[t.type],i=cs.call(this,t,e);i&&this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:"touch",srcEvent:t})},e}(is);function cs(t,e){var i,n,g=Cs(t.touches),o=this.targetIds;if(3&e&&1===g.length)return o[g[0].identifier]=!0,[g,g];var r=Cs(t.changedTouches),A=[],s=this.target;if(n=g.filter((function(t){return WA(t.target,s)})),1===e)for(i=0;i<n.length;)o[n[i].identifier]=!0,i++;for(i=0;i<r.length;)o[r[i].identifier]&&A.push(r[i]),12&e&&delete o[r[i].identifier],i++;return A.length?[Is(n.concat(A),"identifier",!0),A]:void 0}var us={mousedown:1,mousemove:2,mouseup:4},ds=function(t){function e(){var i,n=e.prototype;return n.evEl="mousedown",n.evWin="mousemove mouseup",(i=t.apply(this,arguments)||this).pressed=!1,i}return mA(e,t),e.prototype.handler=function(t){var e=us[t.type];1&e&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=4),this.pressed&&(4&e&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))},e}(is);function hs(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var i={x:e.clientX,y:e.clientY},n=this.lastTouches;this.lastTouches.push(i);setTimeout((function(){var t=n.indexOf(i);t>-1&&n.splice(t,1)}),2500)}}function ps(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,hs.call(this,e)):12&t&&hs.call(this,e)}function fs(t){for(var e=t.srcEvent.clientX,i=t.srcEvent.clientY,n=0;n<this.lastTouches.length;n++){var g=this.lastTouches[n],o=Math.abs(e-g.x),r=Math.abs(i-g.y);if(o<=25&&r<=25)return!0}return!1}var vs=function(){return function(t){function e(e,i){var n;return(n=t.call(this,e,i)||this).handler=function(t,e,i){var g="touch"===i.pointerType,o="mouse"===i.pointerType;if(!(o&&i.sourceCapabilities&&i.sourceCapabilities.firesTouchEvents)){if(g)ps.call(bA(bA(n)),e,i);else if(o&&fs.call(bA(bA(n)),i))return;n.callback(t,e,i)}},n.touch=new ls(n.manager,n.handler),n.mouse=new ds(n.manager,n.handler),n.primaryTouch=null,n.lastTouches=[],n}return mA(e,t),e.prototype.destroy=function(){this.touch.destroy(),this.mouse.destroy()},e}(is)}();function ys(t,e,i){return!!Array.isArray(t)&&(zA(t,i[e],i),!0)}var ms=1;function bs(t,e){var i=e.manager;return i?i.get(t):t}function xs(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}var ws=function(){function t(t){void 0===t&&(t={}),this.options=yA({enable:!0},t),this.id=ms++,this.manager=null,this.state=1,this.simultaneous={},this.requireFail=[]}var e=t.prototype;return e.set=function(t){return wA(this.options,t),this.manager&&this.manager.touchAction.update(),this},e.recognizeWith=function(t){if(ys(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=bs(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},e.dropRecognizeWith=function(t){return ys(t,"dropRecognizeWith",this)||(t=bs(t,this),delete this.simultaneous[t.id]),this},e.requireFailure=function(t){if(ys(t,"requireFailure",this))return this;var e=this.requireFail;return-1===ns(e,t=bs(t,this))&&(e.push(t),t.requireFailure(this)),this},e.dropRequireFailure=function(t){if(ys(t,"dropRequireFailure",this))return this;t=bs(t,this);var e=ns(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},e.hasRequireFailures=function(){return this.requireFail.length>0},e.canRecognizeWith=function(t){return!!this.simultaneous[t.id]},e.emit=function(t){var e=this,i=this.state;function n(i){e.manager.emit(i,t)}i<8&&n(e.options.event+xs(i)),n(e.options.event),t.additionalEvent&&n(t.additionalEvent),i>=8&&n(e.options.event+xs(i))},e.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=32},e.canEmit=function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},e.recognize=function(t){var e=wA({},t);if(!GA(this.options.enable,[this,e]))return this.reset(),void(this.state=32);56&this.state&&(this.state=1),this.state=this.process(e),30&this.state&&this.tryEmit(e)},e.process=function(t){},e.getTouchAction=function(){},e.reset=function(){},t}(),ks=function(t){function e(e){var i;return void 0===e&&(e={}),(i=t.call(this,yA({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},e))||this).pTime=!1,i.pCenter=!1,i._timer=null,i._input=null,i.count=0,i}mA(e,t);var i=e.prototype;return i.getTouchAction=function(){return["manipulation"]},i.process=function(t){var e=this,i=this.options,n=t.pointers.length===i.pointers,g=t.distance<i.threshold,o=t.deltaTime<i.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(g&&o&&n){if(4!==t.eventType)return this.failTimeout();var r=!this.pTime||t.timeStamp-this.pTime<i.interval,A=!this.pCenter||YA(this.pCenter,t.center)<i.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,A&&r?this.count+=1:this.count=1,this._input=t,0===this.count%i.taps)return this.hasRequireFailures()?(this._timer=setTimeout((function(){e.state=8,e.tryEmit()}),i.interval),2):8}return 32},i.failTimeout=function(){var t=this;return this._timer=setTimeout((function(){t.state=32}),this.options.interval),32},i.reset=function(){clearTimeout(this._timer)},i.emit=function(){8===this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},e}(ws),Os=function(t){function e(e){return void 0===e&&(e={}),t.call(this,yA({pointers:1},e))||this}mA(e,t);var i=e.prototype;return i.attrTest=function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},i.process=function(t){var e=this.state,i=t.eventType,n=6&e,g=this.attrTest(t);return n&&(8&i||!g)?16|e:n||g?4&i?8|e:2&e?4|e:2:32},e}(ws);function Ds(t){return 16===t?"down":8===t?"up":2===t?"left":4===t?"right":""}var Ms=function(t){function e(e){var i;return void 0===e&&(e={}),(i=t.call(this,yA({event:"pan",threshold:10,pointers:1,direction:30},e))||this).pX=null,i.pY=null,i}mA(e,t);var i=e.prototype;return i.getTouchAction=function(){var t=this.options.direction,e=[];return 6&t&&e.push("pan-y"),24&t&&e.push("pan-x"),e},i.directionTest=function(t){var e=this.options,i=!0,n=t.distance,g=t.direction,o=t.deltaX,r=t.deltaY;return g&e.direction||(6&e.direction?(g=0===o?1:o<0?2:4,i=o!==this.pX,n=Math.abs(t.deltaX)):(g=0===r?1:r<0?8:16,i=r!==this.pY,n=Math.abs(t.deltaY))),t.direction=g,i&&n>e.threshold&&g&e.direction},i.attrTest=function(t){return Os.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},i.emit=function(e){this.pX=e.deltaX,this.pY=e.deltaY;var i=Ds(e.direction);i&&(e.additionalEvent=this.options.event+i),t.prototype.emit.call(this,e)},e}(Os),Ts=function(t){function e(e){return void 0===e&&(e={}),t.call(this,yA({event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},e))||this}mA(e,t);var i=e.prototype;return i.getTouchAction=function(){return Ms.prototype.getTouchAction.call(this)},i.attrTest=function(e){var i,n=this.options.direction;return 30&n?i=e.overallVelocity:6&n?i=e.overallVelocityX:24&n&&(i=e.overallVelocityY),t.prototype.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers===this.options.pointers&&MA(i)>this.options.velocity&&4&e.eventType},i.emit=function(t){var e=Ds(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},e}(Os),_s=function(t){function e(e){return void 0===e&&(e={}),t.call(this,yA({event:"pinch",threshold:0,pointers:2},e))||this}mA(e,t);var i=e.prototype;return i.getTouchAction=function(){return["none"]},i.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},i.emit=function(e){if(1!==e.scale){var i=e.scale<1?"in":"out";e.additionalEvent=this.options.event+i}t.prototype.emit.call(this,e)},e}(Os),Ns=function(t){function e(e){return void 0===e&&(e={}),t.call(this,yA({event:"rotate",threshold:0,pointers:2},e))||this}mA(e,t);var i=e.prototype;return i.getTouchAction=function(){return["none"]},i.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)},e}(Os),js=function(t){function e(e){var i;return void 0===e&&(e={}),(i=t.call(this,yA({event:"press",pointers:1,time:251,threshold:9},e))||this)._timer=null,i._input=null,i}mA(e,t);var i=e.prototype;return i.getTouchAction=function(){return["auto"]},i.process=function(t){var e=this,i=this.options,n=t.pointers.length===i.pointers,g=t.distance<i.threshold,o=t.deltaTime>i.time;if(this._input=t,!g||!n||12&t.eventType&&!o)this.reset();else if(1&t.eventType)this.reset(),this._timer=setTimeout((function(){e.state=8,e.tryEmit()}),i.time);else if(4&t.eventType)return 8;return 32},i.reset=function(){clearTimeout(this._timer)},i.emit=function(t){8===this.state&&(t&&4&t.eventType?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=TA(),this.manager.emit(this.options.event,this._input)))},e}(ws),Es={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Bs=[[Ns,{enable:!1}],[_s,{enable:!1},["rotate"]],[Ts,{direction:6}],[Ms,{direction:6},["swipe"]],[ks],[ks,{event:"doubletap",taps:2},["tap"]],[js]];function Fs(t,e){var i,n=t.element;n.style&&(zA(t.options.cssProps,(function(g,o){i=_A(n.style,o),e?(t.oldCssProps[i]=n.style[i],n.style[i]=g):n.style[i]=t.oldCssProps[i]||""})),e||(t.oldCssProps={}))}var Rs=function(){function t(t,e){var i,n=this;this.options=wA({},Es,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((i=this).options.inputClass||(FA?ss:RA?ls:BA?vs:ds))(i,KA),this.touchAction=new QA(this,this.options.touchAction),Fs(this,!0),zA(this.options.recognizers,(function(t){var e=n.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}var e=t.prototype;return e.set=function(t){return wA(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},e.stop=function(t){this.session.stopped=t?2:1},e.recognize=function(t){var e=this.session;if(!e.stopped){var i;this.touchAction.preventDefaults(t);var n=this.recognizers,g=e.curRecognizer;(!g||g&&8&g.state)&&(e.curRecognizer=null,g=null);for(var o=0;o<n.length;)i=n[o],2===e.stopped||g&&i!==g&&!i.canRecognizeWith(g)?i.reset():i.recognize(t),!g&&14&i.state&&(e.curRecognizer=i,g=i),o++}},e.get=function(t){if(t instanceof ws)return t;for(var e=this.recognizers,i=0;i<e.length;i++)if(e[i].options.event===t)return e[i];return null},e.add=function(t){if(ys(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},e.remove=function(t){if(ys(t,"remove",this))return this;var e=this.get(t);if(t){var i=this.recognizers,n=ns(i,e);-1!==n&&(i.splice(n,1),this.touchAction.update())}return this},e.on=function(t,e){if(void 0===t||void 0===e)return this;var i=this.handlers;return zA(qA(t),(function(t){i[t]=i[t]||[],i[t].push(e)})),this},e.off=function(t,e){if(void 0===t)return this;var i=this.handlers;return zA(qA(t),(function(t){e?i[t]&&i[t].splice(ns(i[t],e),1):delete i[t]})),this},e.emit=function(t,e){this.options.domEvents&&function(t,e){var i=document.createEvent("Event");i.initEvent(t,!0,!0),i.gesture=e,e.target.dispatchEvent(i)}(t,e);var i=this.handlers[t]&&this.handlers[t].slice();if(i&&i.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var n=0;n<i.length;)i[n](e),n++}},e.destroy=function(){this.element&&Fs(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},t}(),Ss={touchstart:1,touchmove:2,touchend:4,touchcancel:8},Zs=function(t){function e(){var i,n=e.prototype;return n.evTarget="touchstart",n.evWin="touchstart touchmove touchend touchcancel",(i=t.apply(this,arguments)||this).started=!1,i}return mA(e,t),e.prototype.handler=function(t){var e=Ss[t.type];if(1===e&&(this.started=!0),this.started){var i=zs.call(this,t,e);12&e&&i[0].length-i[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:"touch",srcEvent:t})}},e}(is);function zs(t,e){var i=Cs(t.touches),n=Cs(t.changedTouches);return 12&e&&(i=Is(i.concat(n),"identifier",!0)),[i,n]}function Gs(t,e,i){var n="DEPRECATED METHOD: "+e+"\n"+i+" AT \n";return function(){var e=new Error("get-stack-trace"),i=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",g=window.console&&(window.console.warn||window.console.log);return g&&g.call(window.console,n,i),t.apply(this,arguments)}}var Ls=Gs((function(t,e,i){for(var n=Object.keys(e),g=0;g<n.length;)(!i||i&&void 0===t[n[g]])&&(t[n[g]]=e[n[g]]),g++;return t}),"extend","Use `assign`."),Qs=Gs((function(t,e){return Ls(t,e,!0)}),"merge","Use `assign`.");function Ws(t,e,i){var n,g=e.prototype;(n=t.prototype=Object.create(g)).constructor=t,n._super=g,i&&wA(n,i)}function Ps(t,e){return function(){return t.apply(e,arguments)}}var Us,Ys=function(){var t=function(t,e){return void 0===e&&(e={}),new Rs(t,yA({recognizers:Bs.concat()},e))};return t.VERSION="2.0.17-rc",t.DIRECTION_ALL=30,t.DIRECTION_DOWN=16,t.DIRECTION_LEFT=2,t.DIRECTION_RIGHT=4,t.DIRECTION_UP=8,t.DIRECTION_HORIZONTAL=6,t.DIRECTION_VERTICAL=24,t.DIRECTION_NONE=1,t.DIRECTION_DOWN=16,t.INPUT_START=1,t.INPUT_MOVE=2,t.INPUT_END=4,t.INPUT_CANCEL=8,t.STATE_POSSIBLE=1,t.STATE_BEGAN=2,t.STATE_CHANGED=4,t.STATE_ENDED=8,t.STATE_RECOGNIZED=8,t.STATE_CANCELLED=16,t.STATE_FAILED=32,t.Manager=Rs,t.Input=is,t.TouchAction=QA,t.TouchInput=ls,t.MouseInput=ds,t.PointerEventInput=ss,t.TouchMouseInput=vs,t.SingleTouchInput=Zs,t.Recognizer=ws,t.AttrRecognizer=Os,t.Tap=ks,t.Pan=Ms,t.Swipe=Ts,t.Pinch=_s,t.Rotate=Ns,t.Press=js,t.on=$A,t.off=ts,t.each=zA,t.merge=Qs,t.extend=Ls,t.bindFn=Ps,t.assign=wA,t.inherit=Ws,t.bindFn=Ps,t.prefixed=_A,t.toArray=Cs,t.inArray=ns,t.uniqueArray=Is,t.splitStr=qA,t.boolOrFn=GA,t.hasParent=WA,t.addEventListeners=$A,t.removeEventListeners=ts,t.defaults=wA({},Es,{preset:Bs}),t}(),Vs=o((function(t){if("undefined"!=typeof window){var e=window.Hammer||Ys;t.exports=e}else t.exports=function(){return{on:t=function(){},off:t,destroy:t,emit:t,get:function(e){return{set:t}}};var t}})),Xs=o((function(t,e){
/**
   * vis-util
   * https://github.com/visjs/vis-util
   *
   * utilitie collection for visjs
   *
   * @version 4.0.0
   * @date    2020-02-29T15:35:13.178Z
   *
   * @copyright (c) 2011-2017 Almende B.V, http://almende.com
   * @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
   *
   * @license
   * vis.js is dual licensed under both
   *
   *   1. The Apache 2.0 License
   *      http://www.apache.org/licenses/LICENSE-2.0
   *
   *   and
   *
   *   2. The MIT License
   *      http://opensource.org/licenses/MIT
   *
   * vis.js may be distributed under either license.
   */
!function(t){var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n?n:"undefined"!=typeof self?self:{};function i(t,e){return t(e={exports:{}},e.exports),e.exports}function g(t){return t&&t.default||t}var o=function(t){return t&&t.Math==Math&&t},r=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof e&&e)||Function("return this")(),A=function(t){try{return!!t()}catch(t){return!0}},s=!A((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),C={}.propertyIsEnumerable,I=Object.getOwnPropertyDescriptor,a={f:I&&!C.call({1:2},1)?function(t){var e=I(this,t);return!!e&&e.enumerable}:C},l=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},c={}.toString,u=function(t){return c.call(t).slice(8,-1)},d="".split,h=A((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==u(t)?d.call(t,""):Object(t)}:Object,p=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},f=function(t){return h(p(t))},v=function(t){return"object"==typeof t?null!==t:"function"==typeof t},y=function(t,e){if(!v(t))return t;var i,n;if(e&&"function"==typeof(i=t.toString)&&!v(n=i.call(t)))return n;if("function"==typeof(i=t.valueOf)&&!v(n=i.call(t)))return n;if(!e&&"function"==typeof(i=t.toString)&&!v(n=i.call(t)))return n;throw TypeError("Can't convert object to primitive value")},m={}.hasOwnProperty,b=function(t,e){return m.call(t,e)},x=r.document,w=v(x)&&v(x.createElement),k=function(t){return w?x.createElement(t):{}},O=!s&&!A((function(){return 7!=Object.defineProperty(k("div"),"a",{get:function(){return 7}}).a})),D=Object.getOwnPropertyDescriptor,M={f:s?D:function(t,e){if(t=f(t),e=y(e,!0),O)try{return D(t,e)}catch(t){}if(b(t,e))return l(!a.f.call(t,e),t[e])}},T=/#|\.prototype\./,_=function(t,e){var i=j[N(t)];return i==B||i!=E&&("function"==typeof e?A(e):!!e)},N=_.normalize=function(t){return String(t).replace(T,".").toLowerCase()},j=_.data={},E=_.NATIVE="N",B=_.POLYFILL="P",F=_,R={},S=function(t,e,i){if(function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function")}(t),void 0===e)return t;switch(i){case 0:return function(){return t.call(e)};case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,g){return t.call(e,i,n,g)}}return function(){return t.apply(e,arguments)}},Z=function(t){if(!v(t))throw TypeError(String(t)+" is not an object");return t},z=Object.defineProperty,G={f:s?z:function(t,e,i){if(Z(t),e=y(e,!0),Z(i),O)try{return z(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(t[e]=i.value),t}},L=s?function(t,e,i){return G.f(t,e,l(1,i))}:function(t,e,i){return t[e]=i,t},Q=M.f,W=function(t){var e=function(e,i,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,i)}return new t(e,i,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e},P=function(t,e){var i,n,g,o,A,s,C,I,a=t.target,l=t.global,c=t.stat,u=t.proto,d=l?r:c?r[a]:(r[a]||{}).prototype,h=l?R:R[a]||(R[a]={}),p=h.prototype;for(g in e)i=!F(l?g:a+(c?".":"#")+g,t.forced)&&d&&b(d,g),A=h[g],i&&(s=t.noTargetGet?(I=Q(d,g))&&I.value:d[g]),o=i&&s?s:e[g],i&&typeof A==typeof o||(C=t.bind&&i?S(o,r):t.wrap&&i?W(o):u&&"function"==typeof o?S(Function.call,o):o,(t.sham||o&&o.sham||A&&A.sham)&&L(C,"sham",!0),h[g]=C,u&&(b(R,n=a+"Prototype")||L(R,n,{}),R[n][g]=o,t.real&&p&&!p[g]&&L(p,g,o)))},U=Array.isArray||function(t){return"Array"==u(t)};P({target:"Array",stat:!0},{isArray:U});var Y=R.Array.isArray,V=Y,X={},H=r["__core-js_shared__"]||function(t,e){try{L(r,t,e)}catch(i){r[t]=e}return e}("__core-js_shared__",{}),J=Function.toString;"function"!=typeof H.inspectSource&&(H.inspectSource=function(t){return J.call(t)});var K,q,$,tt=H.inspectSource,et=r.WeakMap,it="function"==typeof et&&/native code/.test(tt(et)),nt=i((function(t){(t.exports=function(t,e){return H[t]||(H[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.4",mode:"pure",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),gt=0,ot=Math.random(),rt=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++gt+ot).toString(36)},At=nt("keys"),st=function(t){return At[t]||(At[t]=rt(t))},Ct={},It=r.WeakMap;if(it){var at=new It,lt=at.get,ct=at.has,ut=at.set;K=function(t,e){return ut.call(at,t,e),e},q=function(t){return lt.call(at,t)||{}},$=function(t){return ct.call(at,t)}}else{var dt=st("state");Ct[dt]=!0,K=function(t,e){return L(t,dt,e),e},q=function(t){return b(t,dt)?t[dt]:{}},$=function(t){return b(t,dt)}}var ht,pt,ft,vt={set:K,get:q,has:$,enforce:function(t){return $(t)?q(t):K(t,{})},getterFor:function(t){return function(e){var i;if(!v(e)||(i=q(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return i}}},yt=function(t){return Object(p(t))},mt=!A((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),bt=st("IE_PROTO"),xt=Object.prototype,wt=mt?Object.getPrototypeOf:function(t){return t=yt(t),b(t,bt)?t[bt]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?xt:null},kt=!!Object.getOwnPropertySymbols&&!A((function(){return!String(Symbol())})),Ot=kt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Dt=nt("wks"),Mt=r.Symbol,Tt=Ot?Mt:Mt&&Mt.withoutSetter||rt,_t=function(t){return b(Dt,t)||(kt&&b(Mt,t)?Dt[t]=Mt[t]:Dt[t]=Tt("Symbol."+t)),Dt[t]},Nt=(_t("iterator"),!1);[].keys&&("next"in(ft=[].keys())?(pt=wt(wt(ft)))!==Object.prototype&&(ht=pt):Nt=!0),null==ht&&(ht={});var jt,Et={IteratorPrototype:ht,BUGGY_SAFARI_ITERATORS:Nt},Bt=Math.ceil,Ft=Math.floor,Rt=function(t){return isNaN(t=+t)?0:(t>0?Ft:Bt)(t)},St=Math.min,Zt=function(t){return t>0?St(Rt(t),9007199254740991):0},zt=Math.max,Gt=Math.min,Lt=function(t,e){var i=Rt(t);return i<0?zt(i+e,0):Gt(i,e)},Qt=function(t){return function(e,i,n){var g,o=f(e),r=Zt(o.length),A=Lt(n,r);if(t&&i!=i){for(;r>A;)if((g=o[A++])!=g)return!0}else for(;r>A;A++)if((t||A in o)&&o[A]===i)return t||A||0;return!t&&-1}},Wt={includes:Qt(!0),indexOf:Qt(!1)},Pt=Wt.indexOf,Ut=function(t,e){var i,n=f(t),g=0,o=[];for(i in n)!b(Ct,i)&&b(n,i)&&o.push(i);for(;e.length>g;)b(n,i=e[g++])&&(~Pt(o,i)||o.push(i));return o},Yt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Vt=Object.keys||function(t){return Ut(t,Yt)},Xt=s?Object.defineProperties:function(t,e){Z(t);for(var i,n=Vt(e),g=n.length,o=0;g>o;)G.f(t,i=n[o++],e[i]);return t},Ht=function(t){return"function"==typeof t?t:void 0},Jt=function(t,e){return arguments.length<2?Ht(R[t])||Ht(r[t]):R[t]&&R[t][e]||r[t]&&r[t][e]},Kt=Jt("document","documentElement"),qt=st("IE_PROTO"),$t=function(){},te=function(t){return"<script>"+t+"<\/script>"},ee=function(){try{jt=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;ee=jt?function(t){t.write(te("")),t.close();var e=t.parentWindow.Object;return t=null,e}(jt):((e=k("iframe")).style.display="none",Kt.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(te("document.F=Object")),t.close(),t.F);for(var i=Yt.length;i--;)delete ee.prototype[Yt[i]];return ee()};Ct[qt]=!0;var ie=Object.create||function(t,e){var i;return null!==t?($t.prototype=Z(t),i=new $t,$t.prototype=null,i[qt]=t):i=ee(),void 0===e?i:Xt(i,e)},ne={};ne[_t("toStringTag")]="z";var ge="[object z]"===String(ne),oe=_t("toStringTag"),re="Arguments"==u(function(){return arguments}()),Ae=ge?u:function(t){var e,i,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),oe))?i:re?u(e):"Object"==(n=u(e))&&"function"==typeof e.callee?"Arguments":n},se=ge?{}.toString:function(){return"[object "+Ae(this)+"]"},Ce=G.f,Ie=_t("toStringTag"),ae=function(t,e,i,n){if(t){var g=i?t:t.prototype;b(g,Ie)||Ce(g,Ie,{configurable:!0,value:e}),n&&!ge&&L(g,"toString",se)}},le=Et.IteratorPrototype,ce=function(){return this},ue=(Object.setPrototypeOf||"__proto__"in{}&&function(){var t={};try{Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set.call(t,[])}catch(t){}}(),function(t,e,i,n){n&&n.enumerable?t[e]=i:L(t,e,i)}),de=Et.IteratorPrototype,he=Et.BUGGY_SAFARI_ITERATORS,pe=_t("iterator"),fe=function(){return this},ve=function(t,e,i,n,g,o,r){!function(t,e,i){var n=e+" Iterator";t.prototype=ie(le,{next:l(1,i)}),ae(t,n,!1,!0),X[n]=ce}(i,e,n);var A,s,C,I=function(t){if(t===g&&h)return h;if(!he&&t in u)return u[t];switch(t){case"keys":case"values":case"entries":return function(){return new i(this,t)}}return function(){return new i(this)}},a=e+" Iterator",c=!1,u=t.prototype,d=u[pe]||u["@@iterator"]||g&&u[g],h=!he&&d||I(g),p="Array"==e&&u.entries||d;if(p&&(A=wt(p.call(new t)),de!==Object.prototype&&A.next&&(ae(A,a,!0,!0),X[a]=fe)),"values"==g&&d&&"values"!==d.name&&(c=!0,h=function(){return d.call(this)}),r&&u[pe]!==h&&L(u,pe,h),X[e]=h,g)if(s={values:I("values"),keys:o?h:I("keys"),entries:I("entries")},r)for(C in s)!he&&!c&&C in u||ue(u,C,s[C]);else P({target:e,proto:!0,forced:he||c},s);return s},ye=vt.set,me=vt.getterFor("Array Iterator");ve(Array,"Array",(function(t,e){ye(this,{type:"Array Iterator",target:f(t),index:0,kind:e})}),(function(){var t=me(this),e=t.target,i=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==i?{value:n,done:!1}:"values"==i?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values"),X.Arguments=X.Array;var be=_t("toStringTag");for(var xe in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var we=r[xe],ke=we&&we.prototype;ke&&Ae(ke)!==be&&L(ke,be,xe),X[xe]=X.Array}var Oe=function(t){return function(e,i){var n,g,o=String(p(e)),r=Rt(i),A=o.length;return r<0||r>=A?t?"":void 0:(n=o.charCodeAt(r))<55296||n>56319||r+1===A||(g=o.charCodeAt(r+1))<56320||g>57343?t?o.charAt(r):n:t?o.slice(r,r+2):g-56320+(n-55296<<10)+65536}},De=(Oe(!1),Oe(!0)),Me=vt.set,Te=vt.getterFor("String Iterator");ve(String,"String",(function(t){Me(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=Te(this),i=e.string,n=e.index;return n>=i.length?{value:void 0,done:!0}:(t=De(i,n),e.index+=t.length,{value:t,done:!1})}));var _e=_t("iterator"),Ne=function(t){if(null!=t)return t[_e]||t["@@iterator"]||X[Ae(t)]},je=function(t){var e=Ne(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return Z(e.call(t))},Ee=_t("iterator"),Be=function(t){var e=Object(t);return void 0!==e[Ee]||"@@iterator"in e||X.hasOwnProperty(Ae(e))},Fe=function(t,e){return function(t){if(V(t))return t}(t)||function(t,e){if(Be(Object(t))||"[object Arguments]"===Object.prototype.toString.call(t)){var i=[],n=!0,g=!1,o=void 0;try{for(var r,A=je(t);!(n=(r=A.next()).done)&&(i.push(r.value),!e||i.length!==e);n=!0);}catch(t){g=!0,o=t}finally{try{n||null==A.return||A.return()}finally{if(g)throw o}}return i}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()};P({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}});var Re=R.Date.now;function Se(t){var e=function(){for(var t=Ze(),e=t(" "),i=t(" "),n=t(" "),g=0;g<arguments.length;g++)(e-=t(g<0||arguments.length<=g?void 0:arguments[g]))<0&&(e+=1),(i-=t(g<0||arguments.length<=g?void 0:arguments[g]))<0&&(i+=1),(n-=t(g<0||arguments.length<=g?void 0:arguments[g]))<0&&(n+=1);return[e,i,n]}(t),i=Fe(e,3),n=i[0],g=i[1],o=i[2],r=1,A=function(){var t=2091639*n+2.3283064365386963e-10*r;return n=g,g=o,o=t-(r=0|t)};return A.uint32=function(){return 4294967296*A()},A.fract53=function(){return A()+11102230246251565e-32*(2097152*A()|0)},A.algorithm="Alea",A.seed=t,A.version="0.9",A}function Ze(){var t=4022871197;return function(e){for(var i=e.toString(),n=0;n<i.length;n++){var g=.02519603282416938*(t+=i.charCodeAt(n));g-=t=g>>>0,t=(g*=t)>>>0,t+=4294967296*(g-=t)}return 2.3283064365386963e-10*(t>>>0)}}P({target:"Object",stat:!0,forced:!s,sham:!s},{defineProperty:G.f});var ze=i((function(t){var e=R.Object,i=t.exports=function(t,i,n){return e.defineProperty(t,i,n)};e.defineProperty.sham&&(i.sham=!0)})),Ge=ze;P({target:"Object",stat:!0,forced:!s,sham:!s},{defineProperties:Xt});var Le=i((function(t){var e=R.Object,i=t.exports=function(t,i){return e.defineProperties(t,i)};e.defineProperties.sham&&(i.sham=!0)})),Qe=Yt.concat("length","prototype"),We={f:Object.getOwnPropertyNames||function(t){return Ut(t,Qe)}},Pe={f:Object.getOwnPropertySymbols},Ue=Jt("Reflect","ownKeys")||function(t){var e=We.f(Z(t)),i=Pe.f;return i?e.concat(i(t)):e},Ye=function(t,e,i){var n=y(e);n in t?G.f(t,n,l(0,i)):t[n]=i};P({target:"Object",stat:!0,sham:!s},{getOwnPropertyDescriptors:function(t){for(var e,i,n=f(t),g=M.f,o=Ue(n),r={},A=0;o.length>A;)void 0!==(i=g(n,e=o[A++]))&&Ye(r,e,i);return r}});var Ve=R.Object.getOwnPropertyDescriptors,Xe=M.f,He=A((function(){Xe(1)}));P({target:"Object",stat:!0,forced:!s||He,sham:!s},{getOwnPropertyDescriptor:function(t,e){return Xe(f(t),e)}});var Je=i((function(t){var e=R.Object,i=t.exports=function(t,i){return e.getOwnPropertyDescriptor(t,i)};e.getOwnPropertyDescriptor.sham&&(i.sham=!0)})),Ke=We.f,qe={}.toString,$e="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ti={f:function(t){return $e&&"[object Window]"==qe.call(t)?function(t){try{return Ke(t)}catch(t){return $e.slice()}}(t):Ke(f(t))}},ei={f:_t},ii=G.f,ni=function(t){var e=R.Symbol||(R.Symbol={});b(e,t)||ii(e,t,{value:ei.f(t)})},gi=_t("species"),oi=function(t,e){var i;return U(t)&&("function"!=typeof(i=t.constructor)||i!==Array&&!U(i.prototype)?v(i)&&null===(i=i[gi])&&(i=void 0):i=void 0),new(void 0===i?Array:i)(0===e?0:e)},ri=[].push,Ai=function(t){var e=1==t,i=2==t,n=3==t,g=4==t,o=6==t,r=5==t||o;return function(A,s,C,I){for(var a,l,c=yt(A),u=h(c),d=S(s,C,3),p=Zt(u.length),f=0,v=I||oi,y=e?v(A,p):i?v(A,0):void 0;p>f;f++)if((r||f in u)&&(l=d(a=u[f],f,c),t))if(e)y[f]=l;else if(l)switch(t){case 3:return!0;case 5:return a;case 6:return f;case 2:ri.call(y,a)}else if(g)return!1;return o?-1:n||g?g:y}},si={forEach:Ai(0),map:Ai(1),filter:Ai(2),some:Ai(3),every:Ai(4),find:Ai(5),findIndex:Ai(6)},Ci=si.forEach,Ii=st("hidden"),ai=_t("toPrimitive"),li=vt.set,ci=vt.getterFor("Symbol"),ui=Object.prototype,di=r.Symbol,hi=Jt("JSON","stringify"),pi=M.f,fi=G.f,vi=ti.f,yi=a.f,mi=nt("symbols"),bi=nt("op-symbols"),xi=nt("string-to-symbol-registry"),wi=nt("symbol-to-string-registry"),ki=nt("wks"),Oi=r.QObject,Di=!Oi||!Oi.prototype||!Oi.prototype.findChild,Mi=s&&A((function(){return 7!=ie(fi({},"a",{get:function(){return fi(this,"a",{value:7}).a}})).a}))?function(t,e,i){var n=pi(ui,e);n&&delete ui[e],fi(t,e,i),n&&t!==ui&&fi(ui,e,n)}:fi,Ti=function(t,e){var i=mi[t]=ie(di.prototype);return li(i,{type:"Symbol",tag:t,description:e}),s||(i.description=e),i},_i=Ot?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof di},Ni=function(t,e,i){t===ui&&Ni(bi,e,i),Z(t);var n=y(e,!0);return Z(i),b(mi,n)?(i.enumerable?(b(t,Ii)&&t[Ii][n]&&(t[Ii][n]=!1),i=ie(i,{enumerable:l(0,!1)})):(b(t,Ii)||fi(t,Ii,l(1,{})),t[Ii][n]=!0),Mi(t,n,i)):fi(t,n,i)},ji=function(t,e){Z(t);var i=f(e),n=Vt(i).concat(Ri(i));return Ci(n,(function(e){s&&!Ei.call(i,e)||Ni(t,e,i[e])})),t},Ei=function(t){var e=y(t,!0),i=yi.call(this,e);return!(this===ui&&b(mi,e)&&!b(bi,e))&&(!(i||!b(this,e)||!b(mi,e)||b(this,Ii)&&this[Ii][e])||i)},Bi=function(t,e){var i=f(t),n=y(e,!0);if(i!==ui||!b(mi,n)||b(bi,n)){var g=pi(i,n);return!g||!b(mi,n)||b(i,Ii)&&i[Ii][n]||(g.enumerable=!0),g}},Fi=function(t){var e=vi(f(t)),i=[];return Ci(e,(function(t){b(mi,t)||b(Ct,t)||i.push(t)})),i},Ri=function(t){var e=t===ui,i=vi(e?bi:f(t)),n=[];return Ci(i,(function(t){!b(mi,t)||e&&!b(ui,t)||n.push(mi[t])})),n};if(kt||(ue((di=function(){if(this instanceof di)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=rt(t),i=function(t){this===ui&&i.call(bi,t),b(this,Ii)&&b(this[Ii],e)&&(this[Ii][e]=!1),Mi(this,e,l(1,t))};return s&&Di&&Mi(ui,e,{configurable:!0,set:i}),Ti(e,t)}).prototype,"toString",(function(){return ci(this).tag})),ue(di,"withoutSetter",(function(t){return Ti(rt(t),t)})),a.f=Ei,G.f=Ni,M.f=Bi,We.f=ti.f=Fi,Pe.f=Ri,ei.f=function(t){return Ti(_t(t),t)},s&&fi(di.prototype,"description",{configurable:!0,get:function(){return ci(this).description}})),P({global:!0,wrap:!0,forced:!kt,sham:!kt},{Symbol:di}),Ci(Vt(ki),(function(t){ni(t)})),P({target:"Symbol",stat:!0,forced:!kt},{for:function(t){var e=String(t);if(b(xi,e))return xi[e];var i=di(e);return xi[e]=i,wi[i]=e,i},keyFor:function(t){if(!_i(t))throw TypeError(t+" is not a symbol");if(b(wi,t))return wi[t]},useSetter:function(){Di=!0},useSimple:function(){Di=!1}}),P({target:"Object",stat:!0,forced:!kt,sham:!s},{create:function(t,e){return void 0===e?ie(t):ji(ie(t),e)},defineProperty:Ni,defineProperties:ji,getOwnPropertyDescriptor:Bi}),P({target:"Object",stat:!0,forced:!kt},{getOwnPropertyNames:Fi,getOwnPropertySymbols:Ri}),P({target:"Object",stat:!0,forced:A((function(){Pe.f(1)}))},{getOwnPropertySymbols:function(t){return Pe.f(yt(t))}}),hi){var Si=!kt||A((function(){var t=di();return"[null]"!=hi([t])||"{}"!=hi({a:t})||"{}"!=hi(Object(t))}));P({target:"JSON",stat:!0,forced:Si},{stringify:function(t,e,i){for(var n,g=[t],o=1;arguments.length>o;)g.push(arguments[o++]);if(n=e,(v(e)||void 0!==t)&&!_i(t))return U(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!_i(e))return e}),g[1]=e,hi.apply(null,g)}})}di.prototype[ai]||L(di.prototype,ai,di.prototype.valueOf),ae(di,"Symbol"),Ct[Ii]=!0;var Zi=R.Object.getOwnPropertySymbols;P({target:"Object",stat:!0,sham:!s},{create:ie});var zi=R.Object,Gi=function(t,e){return zi.create(t,e)},Li=ze,Qi=function(t,e,i){return e in t?Li(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t},Wi=A((function(){Vt(1)}));P({target:"Object",stat:!0,forced:Wi},{keys:function(t){return Vt(yt(t))}});var Pi,Ui=R.Object.keys,Yi="\t\n\v\f\r                　\u2028\u2029\ufeff",Vi="["+Yi+"]",Xi=RegExp("^"+Vi+Vi+"*"),Hi=RegExp(Vi+Vi+"*$"),Ji=function(t){return function(e){var i=String(p(e));return 1&t&&(i=i.replace(Xi,"")),2&t&&(i=i.replace(Hi,"")),i}},Ki={start:Ji(1),end:Ji(2),trim:Ji(3)},qi=Ki.trim;P({target:"String",proto:!0,forced:(Pi="trim",A((function(){return!!Yi[Pi]()||"​᠎"!="​᠎"[Pi]()||Yi[Pi].name!==Pi})))},{trim:function(){return qi(this)}});var $i=function(t){return R[t+"Prototype"]},tn=$i("String").trim,en=String.prototype,nn=function(t){var e=t.trim;return"string"==typeof t||t===en||t instanceof String&&e===en.trim?tn:e},gn=function(t,e){var i=[][t];return!!i&&A((function(){i.call(null,e||function(){throw 1},1)}))},on=Object.defineProperty,rn={},An=function(t){throw t},sn=function(t,e){if(b(rn,t))return rn[t];e||(e={});var i=[][t],n=!!b(e,"ACCESSORS")&&e.ACCESSORS,g=b(e,0)?e[0]:An,o=b(e,1)?e[1]:void 0;return rn[t]=!!i&&!A((function(){if(n&&!s)return!0;var t={length:-1};n?on(t,1,{enumerable:!0,get:An}):t[1]=1,i.call(t,g,o)}))},Cn=si.forEach,In=gn("forEach"),an=sn("forEach"),ln=In&&an?[].forEach:function(t){return Cn(this,t,arguments.length>1?arguments[1]:void 0)};P({target:"Array",proto:!0,forced:[].forEach!=ln},{forEach:ln});var cn,un,dn=$i("Array").forEach,hn=Array.prototype,pn={DOMTokenList:!0,NodeList:!0},fn=function(t){var e=t.forEach;return t===hn||t instanceof Array&&e===hn.forEach||pn.hasOwnProperty(Ae(t))?dn:e},vn=Jt("navigator","userAgent")||"",yn=r.process,mn=yn&&yn.versions,bn=mn&&mn.v8;bn?un=(cn=bn.split("."))[0]+cn[1]:vn&&(!(cn=vn.match(/Edge\/(\d+)/))||cn[1]>=74)&&(cn=vn.match(/Chrome\/(\d+)/))&&(un=cn[1]);var xn=un&&+un,wn=_t("species"),kn=function(t){return xn>=51||!A((function(){var e=[];return(e.constructor={})[wn]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},On=si.map,Dn=kn("map"),Mn=sn("map");P({target:"Array",proto:!0,forced:!Dn||!Mn},{map:function(t){return On(this,t,arguments.length>1?arguments[1]:void 0)}});var Tn=$i("Array").map,_n=Array.prototype,Nn=function(t){var e=t.map;return t===_n||t instanceof Array&&e===_n.map?Tn:e},jn=Ki.trim,En=r.parseInt,Bn=/^[+-]?0[Xx]/,Fn=8!==En(Yi+"08")||22!==En(Yi+"0x16")?function(t,e){var i=jn(String(t));return En(i,e>>>0||(Bn.test(i)?16:10))}:En;P({global:!0,forced:parseInt!=Fn},{parseInt:Fn});var Rn=R.parseInt,Sn=a.f,Zn=function(t){return function(e){for(var i,n=f(e),g=Vt(n),o=g.length,r=0,A=[];o>r;)i=g[r++],s&&!Sn.call(n,i)||A.push(t?[i,n[i]]:n[i]);return A}},zn=(Zn(!0),Zn(!1));P({target:"Object",stat:!0},{values:function(t){return zn(t)}});var Gn=R.Object.values,Ln=si.filter,Qn=kn("filter"),Wn=sn("filter");P({target:"Array",proto:!0,forced:!Qn||!Wn},{filter:function(t){return Ln(this,t,arguments.length>1?arguments[1]:void 0)}});var Pn=$i("Array").filter,Un=Array.prototype,Yn=function(t){var e=t.filter;return t===Un||t instanceof Array&&e===Un.filter?Pn:e},Vn=_t("isConcatSpreadable"),Xn=xn>=51||!A((function(){var t=[];return t[Vn]=!1,t.concat()[0]!==t})),Hn=kn("concat"),Jn=function(t){if(!v(t))return!1;var e=t[Vn];return void 0!==e?!!e:U(t)};P({target:"Array",proto:!0,forced:!Xn||!Hn},{concat:function(t){var e,i,n,g,o,r=yt(this),A=oi(r,0),s=0;for(e=-1,n=arguments.length;e<n;e++)if(Jn(o=-1===e?r:arguments[e])){if(s+(g=Zt(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(i=0;i<g;i++,s++)i in o&&Ye(A,s,o[i])}else{if(s>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Ye(A,s++,o)}return A.length=s,A}});var Kn=$i("Array").concat,qn=Array.prototype,$n=function(t){var e=t.concat;return t===qn||t instanceof Array&&e===qn.concat?Kn:e},tg=function(t,e,i,n){try{return n?e(Z(i)[0],i[1]):e(i)}catch(e){var g=t.return;throw void 0!==g&&Z(g.call(t)),e}},eg=_t("iterator"),ig=Array.prototype,ng=function(t){return void 0!==t&&(X.Array===t||ig[eg]===t)},gg=_t("iterator"),og=!1;try{var rg=0,Ag={next:function(){return{done:!!rg++}},return:function(){og=!0}};Ag[gg]=function(){return this},Array.from(Ag,(function(){throw 2}))}catch(t){}var sg=!function(t,e){if(!og)return!1;var i=!1;try{var n={};n[gg]=function(){return{next:function(){return{done:i=!0}}}},function(t){Array.from(t)}(n)}catch(t){}return i}();P({target:"Array",stat:!0,forced:sg},{from:function(t){var e,i,n,g,o,r,A=yt(t),s="function"==typeof this?this:Array,C=arguments.length,I=C>1?arguments[1]:void 0,a=void 0!==I,l=Ne(A),c=0;if(a&&(I=S(I,C>2?arguments[2]:void 0,2)),null==l||s==Array&&ng(l))for(i=new s(e=Zt(A.length));e>c;c++)r=a?I(A[c],c):A[c],Ye(i,c,r);else for(o=(g=l.call(A)).next,i=new s;!(n=o.call(g)).done;c++)r=a?tg(g,I,[n.value,c],!0):n.value,Ye(i,c,r);return i.length=c,i}});var Cg=R.Array.from,Ig=function(t){return function(t){if(V(t)){for(var e=0,i=new Array(t.length);e<t.length;e++)i[e]=t[e];return i}}(t)||function(t){if(Be(Object(t))||"[object Arguments]"===Object.prototype.toString.call(t))return Cg(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()},ag=kn("slice"),lg=sn("slice",{ACCESSORS:!0,0:0,1:2}),cg=_t("species"),ug=[].slice,dg=Math.max;P({target:"Array",proto:!0,forced:!ag||!lg},{slice:function(t,e){var i,n,g,o=f(this),r=Zt(o.length),A=Lt(t,r),s=Lt(void 0===e?r:e,r);if(U(o)&&("function"!=typeof(i=o.constructor)||i!==Array&&!U(i.prototype)?v(i)&&null===(i=i[cg])&&(i=void 0):i=void 0,i===Array||void 0===i))return ug.call(o,A,s);for(n=new(void 0===i?Array:i)(dg(s-A,0)),g=0;A<s;A++,g++)A in o&&Ye(n,g,o[A]);return n.length=g,n}});var hg=$i("Array").slice,pg=Array.prototype,fg=function(t){var e=t.slice;return t===pg||t instanceof Array&&e===pg.slice?hg:e},vg=A((function(){wt(1)}));P({target:"Object",stat:!0,forced:vg,sham:!mt},{getPrototypeOf:function(t){return wt(yt(t))}});var yg=R.Object.getPrototypeOf,mg=Wt.indexOf,bg=[].indexOf,xg=!!bg&&1/[1].indexOf(1,-0)<0,wg=gn("indexOf"),kg=sn("indexOf",{ACCESSORS:!0,1:0});P({target:"Array",proto:!0,forced:xg||!wg||!kg},{indexOf:function(t){return xg?bg.apply(this,arguments)||0:mg(this,t,arguments.length>1?arguments[1]:void 0)}});var Og=$i("Array").indexOf,Dg=Array.prototype,Mg=function(t){var e=t.indexOf;return t===Dg||t instanceof Array&&e===Dg.indexOf?Og:e},Tg=Y,_g=Object.assign,Ng=Object.defineProperty,jg=!_g||A((function(){if(s&&1!==_g({b:1},_g(Ng({},"a",{enumerable:!0,get:function(){Ng(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},i=Symbol();return t[i]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=_g({},t)[i]||"abcdefghijklmnopqrst"!=Vt(_g({},e)).join("")}))?function(t,e){for(var i=yt(t),n=arguments.length,g=1,o=Pe.f,r=a.f;n>g;)for(var A,C=h(arguments[g++]),I=o?Vt(C).concat(o(C)):Vt(C),l=I.length,c=0;l>c;)A=I[c++],s&&!r.call(C,A)||(i[A]=C[A]);return i}:_g;P({target:"Object",stat:!0,forced:Object.assign!==jg},{assign:jg});var Eg=R.Object.assign;ni("iterator");var Bg=ei.f("iterator"),Fg=Object.freeze({__proto__:null});ni("asyncIterator");var Rg=Object.freeze({__proto__:null});ni("hasInstance"),ni("isConcatSpreadable"),ni("match"),ni("matchAll"),ni("replace"),ni("search"),ni("species"),ni("split"),ni("toPrimitive"),ni("toStringTag"),ni("unscopables"),ae(Math,"Math",!0),ae(r.JSON,"JSON",!0),g(Fg),g(Rg);var Sg=R.Symbol;ni("asyncDispose"),ni("dispose"),ni("observable"),ni("patternMatch"),ni("replaceAll");var Zg=Sg,zg=i((function(t){function e(i){return t.exports=e="function"==typeof Zg&&"symbol"==typeof Bg?function(t){return typeof t}:function(t){return t&&"function"==typeof Zg&&t.constructor===Zg&&t!==Zg.prototype?"symbol":typeof t},e(i)}t.exports=e}));function Gg(t,e){var i=Ui(t);if(Zi){var n=Zi(t);e&&(n=Yn(n).call(n,(function(e){return Je(t,e).enumerable}))),i.push.apply(i,n)}return i}var Lg=/^\/?Date\((-?\d+)/i,Qg=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,Wg=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,Pg=/^rgb\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *\)$/i,Ug=/^rgba\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *([01]|0?\.\d+) *\)$/i;function Yg(t){return t instanceof Number||"number"==typeof t}function Vg(t){return t instanceof String||"string"==typeof t}function Xg(t){return"object"===zg(t)&&null!==t}function Hg(t,e,i,n){var g=!1;!0===n&&(g=null===e[i]&&void 0!==t[i]),g?delete t[i]:t[i]=e[i]}var Jg=Eg;function Kg(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];for(var g in e)if(Object.prototype.hasOwnProperty.call(e,g)||!0===i)if("object"===zg(e[g])&&null!==e[g]&&yg(e[g])===Object.prototype)void 0===t[g]?t[g]=Kg({},e[g],i):"object"===zg(t[g])&&null!==t[g]&&yg(t[g])===Object.prototype?Kg(t[g],e[g],i):Hg(t,e,g,n);else if(Tg(e[g])){var o;t[g]=fg(o=e[g]).call(o)}else Hg(t,e,g,n);return t}var qg=Gn,$g={asBoolean:function(t,e){return"function"==typeof t&&(t=t()),null!=t?0!=t:e||null},asNumber:function(t,e){return"function"==typeof t&&(t=t()),null!=t?Number(t)||e||null:e||null},asString:function(t,e){return"function"==typeof t&&(t=t()),null!=t?String(t):e||null},asSize:function(t,e){return"function"==typeof t&&(t=t()),Vg(t)?t:Yg(t)?t+"px":e||null},asElement:function(t,e){return"function"==typeof t&&(t=t()),t||e||null}};function to(t){var e;switch(t.length){case 3:case 4:return(e=Wg.exec(t))?{r:Rn(e[1]+e[1],16),g:Rn(e[2]+e[2],16),b:Rn(e[3]+e[3],16)}:null;case 6:case 7:return(e=Qg.exec(t))?{r:Rn(e[1],16),g:Rn(e[2],16),b:Rn(e[3],16)}:null;default:return null}}function eo(t,e,i){var n;return"#"+fg(n=((1<<24)+(t<<16)+(e<<8)+i).toString(16)).call(n,1)}function io(t,e,i){t/=255,e/=255,i/=255;var n=Math.min(t,Math.min(e,i)),g=Math.max(t,Math.max(e,i));return n===g?{h:0,s:0,v:n}:{h:60*((t===n?3:i===n?1:5)-(t===n?e-i:i===n?t-e:i-t)/(g-n))/360,s:(g-n)/g,v:g}}var no=function(t){var e,i={};return fn(e=t.split(";")).call(e,(function(t){if(""!=nn(t).call(t)){var e,n,g=t.split(":"),o=nn(e=g[0]).call(e),r=nn(n=g[1]).call(n);i[o]=r}})),i},go=function(t){var e;return Nn(e=Ui(t)).call(e,(function(e){return e+": "+t[e]})).join("; ")};function oo(t,e,i){var n,g,o,r=Math.floor(6*t),A=6*t-r,s=i*(1-e),C=i*(1-A*e),I=i*(1-(1-A)*e);switch(r%6){case 0:n=i,g=I,o=s;break;case 1:n=C,g=i,o=s;break;case 2:n=s,g=i,o=I;break;case 3:n=s,g=C,o=i;break;case 4:n=I,g=s,o=i;break;case 5:n=i,g=s,o=C}return{r:Math.floor(255*n),g:Math.floor(255*g),b:Math.floor(255*o)}}function ro(t,e,i){var n=oo(t,e,i);return eo(n.r,n.g,n.b)}function Ao(t){var e=to(t);if(!e)throw new TypeError("'".concat(t,"' is not a valid color."));return io(e.r,e.g,e.b)}function so(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)}function Co(t){return Pg.test(t)}function Io(t){if(null===t||"object"!==zg(t))return null;if(t instanceof Element)return t;var e=Gi(t);for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&"object"==zg(t[i])&&(e[i]=Io(t[i]));return e}t.Alea=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return Se(e.length?e:[Re()])},t.HSVToHex=ro,t.HSVToRGB=oo,t.RGBToHSV=io,t.RGBToHex=eo,t.addClassName=function(t,e){var i=t.className.split(" "),n=e.split(" ");i=$n(i).call(i,Yn(n).call(n,(function(t){return Mg(i).call(i,t)<0}))),t.className=i.join(" ")},t.addCssText=function(t,e){var i=function(t){for(var e=1;e<arguments.length;e++){var i,n=null!=arguments[e]?arguments[e]:{};if(e%2)fn(i=Gg(Object(n),!0)).call(i,(function(e){Qi(t,e,n[e])}));else if(Ve)Le(t,Ve(n));else{var g;fn(g=Gg(Object(n))).call(g,(function(e){Ge(t,e,Je(n,e))}))}}return t}({},no(t.style.cssText),{},no(e));t.style.cssText=go(i)},t.addEventListener=function(t,e,i,n){var g;t.addEventListener?(void 0===n&&(n=!1),"mousewheel"===e&&Mg(g=navigator.userAgent).call(g,"Firefox")>=0&&(e="DOMMouseScroll"),t.addEventListener(e,i,n)):t.attachEvent("on"+e,i)},t.binarySearchCustom=function(t,e,i,n){for(var g=0,o=0,r=t.length-1;o<=r&&g<1e4;){var A=Math.floor((o+r)/2),s=t[A],C=e(void 0===n?s[i]:s[i][n]);if(0==C)return A;-1==C?o=A+1:r=A-1,g++}return-1},t.binarySearchValue=function(t,e,i,n,g){var o,r,A,s,C=0,I=0,a=t.length-1;for(g=null!=g?g:function(t,e){return t==e?0:t<e?-1:1};I<=a&&C<1e4;){if(s=Math.floor(.5*(a+I)),o=t[Math.max(0,s-1)][i],r=t[s][i],A=t[Math.min(t.length-1,s+1)][i],0==g(r,e))return s;if(g(o,e)<0&&g(r,e)>0)return"before"==n?Math.max(0,s-1):s;if(g(r,e)<0&&g(A,e)>0)return"before"==n?s:Math.min(t.length-1,s+1);g(r,e)<0?I=s+1:a=s-1,C++}return-1},t.bridgeObject=Io,t.copyAndExtendArray=function(t,e){var i;return $n(i=[]).call(i,Ig(t),[e])},t.copyArray=function(t){return fg(t).call(t)},t.deepExtend=Kg,t.easingFunctions={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return t*(2-t)},easeInOutQuad:function(t){return t<.5?2*t*t:(4-2*t)*t-1},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return--t*t*t+1},easeInOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1- --t*t*t*t},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1+--t*t*t*t*t},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}},t.equalArray=function(t,e){if(t.length!==e.length)return!1;for(var i=0,n=t.length;i<n;i++)if(t[i]!=e[i])return!1;return!0},t.extend=Jg,t.fillIfDefined=function t(e,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var g in e)if(void 0!==i[g])if(null===i[g]||"object"!==zg(i[g]))Hg(e,i,g,n);else{var o=e[g],r=i[g];Xg(o)&&Xg(r)&&t(o,r,n)}},t.forEach=function(t,e){if(Tg(t))for(var i=t.length,n=0;n<i;n++)e(t[n],n,t);else for(var g in t)Object.prototype.hasOwnProperty.call(t,g)&&e(t[g],g,t)},t.getAbsoluteLeft=function(t){return t.getBoundingClientRect().left},t.getAbsoluteRight=function(t){return t.getBoundingClientRect().right},t.getAbsoluteTop=function(t){return t.getBoundingClientRect().top},t.getScrollBarWidth=function(){var t=document.createElement("p");t.style.width="100%",t.style.height="200px";var e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.style.visibility="hidden",e.style.width="200px",e.style.height="150px",e.style.overflow="hidden",e.appendChild(t),document.body.appendChild(e);var i=t.offsetWidth;e.style.overflow="scroll";var n=t.offsetWidth;return i==n&&(n=e.clientWidth),document.body.removeChild(e),i-n},t.getTarget=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.event,e=null;return t&&(t.target?e=t.target:t.srcElement&&(e=t.srcElement)),e instanceof Element&&(null==e.nodeType||3!=e.nodeType||(e=e.parentNode)instanceof Element)?e:null},t.getType=function(t){var e=zg(t);return"object"===e?null===t?"null":t instanceof Boolean?"Boolean":t instanceof Number?"Number":t instanceof String?"String":Tg(t)?"Array":t instanceof Date?"Date":"Object":"number"===e?"Number":"boolean"===e?"Boolean":"string"===e?"String":void 0===e?"undefined":e},t.hasParent=function(t,e){for(var i=t;i;){if(i===e)return!0;if(!i.parentNode)return!1;i=i.parentNode}return!1},t.hexToHSV=Ao,t.hexToRGB=to,t.insertSort=function(t,e){for(var i=0;i<t.length;i++){var n=t[i],g=void 0;for(g=i;g>0&&e(n,t[g-1])<0;g--)t[g]=t[g-1];t[g]=n}return t},t.isDate=function(t){if(t instanceof Date)return!0;if(Vg(t)){if(Lg.exec(t))return!0;if(!isNaN(Date.parse(t)))return!0}return!1},t.isNumber=Yg,t.isObject=Xg,t.isString=Vg,t.isValidHex=so,t.isValidRGB=Co,t.isValidRGBA=function(t){return Ug.test(t)},t.mergeOptions=function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},g=function(t){return null!=t},o=function(t){return null!==t&&"object"===zg(t)},r=function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0};if(!o(t))throw new Error("Parameter mergeTarget must be an object");if(!o(e))throw new Error("Parameter options must be an object");if(!g(i))throw new Error("Parameter option must have a value");if(!o(n))throw new Error("Parameter globalOptions must be an object");var A=function(t,e,i){o(t[i])||(t[i]={});var n=e[i],g=t[i];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(g[r]=n[r])},s=e[i],C=o(n)&&!r(n),I=C?n[i]:void 0,a=I?I.enabled:void 0;if(void 0!==s){if("boolean"==typeof s)return o(t[i])||(t[i]={}),void(t[i].enabled=s);if(null===s&&!o(t[i])){if(!g(I))return;t[i]=Gi(I)}if(o(s)){var l=!0;void 0!==s.enabled?l=s.enabled:void 0!==a&&(l=I.enabled),A(t,e,i),t[i].enabled=l}}},t.option=$g,t.overrideOpacity=function(t,e){if(-1!==Mg(t).call(t,"rgba"))return t;if(-1!==Mg(t).call(t,"rgb")){var i=t.substr(Mg(t).call(t,"(")+1).replace(")","").split(",");return"rgba("+i[0]+","+i[1]+","+i[2]+","+e+")"}var n=to(t);return null==n?t:"rgba("+n.r+","+n.g+","+n.b+","+e+")"},t.parseColor=function(t,e){if(Vg(t)){var i=t;if(Co(i)){var n,g=Nn(n=i.substr(4).substr(0,i.length-5).split(",")).call(n,(function(t){return Rn(t)}));i=eo(g[0],g[1],g[2])}if(!0===so(i)){var o=Ao(i),r={h:o.h,s:.8*o.s,v:Math.min(1,1.02*o.v)},A={h:o.h,s:Math.min(1,1.25*o.s),v:.8*o.v},s=ro(A.h,A.s,A.v),C=ro(r.h,r.s,r.v);return{background:i,border:s,highlight:{background:C,border:s},hover:{background:C,border:s}}}return{background:i,border:i,highlight:{background:i,border:i},hover:{background:i,border:i}}}return e?{background:t.background||e.background,border:t.border||e.border,highlight:Vg(t.highlight)?{border:t.highlight,background:t.highlight}:{background:t.highlight&&t.highlight.background||e.highlight.background,border:t.highlight&&t.highlight.border||e.highlight.border},hover:Vg(t.hover)?{border:t.hover,background:t.hover}:{border:t.hover&&t.hover.border||e.hover.border,background:t.hover&&t.hover.background||e.hover.background}}:{background:t.background||void 0,border:t.border||void 0,highlight:Vg(t.highlight)?{border:t.highlight,background:t.highlight}:{background:t.highlight&&t.highlight.background||void 0,border:t.highlight&&t.highlight.border||void 0},hover:Vg(t.hover)?{border:t.hover,background:t.hover}:{border:t.hover&&t.hover.border||void 0,background:t.hover&&t.hover.background||void 0}}},t.preventDefault=function(t){t||(t=window.event),t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},t.recursiveDOMDelete=function t(e){if(e)for(;!0===e.hasChildNodes();){var i=e.firstChild;i&&(t(i),e.removeChild(i))}},t.removeClassName=function(t,e){var i=t.className.split(" "),n=e.split(" ");i=Yn(i).call(i,(function(t){return Mg(n).call(n,t)<0})),t.className=i.join(" ")},t.removeCssText=function(t,e){var i=no(t.style.cssText),n=no(e);for(var g in n)Object.prototype.hasOwnProperty.call(n,g)&&delete i[g];t.style.cssText=go(i)},t.removeEventListener=function(t,e,i,n){var g;t.removeEventListener?(void 0===n&&(n=!1),"mousewheel"===e&&Mg(g=navigator.userAgent).call(g,"Firefox")>=0&&(e="DOMMouseScroll"),t.removeEventListener(e,i,n)):t.detachEvent("on"+e,i)},t.selectiveBridgeObject=function(t,e){if(null!==e&&"object"===zg(e)){for(var i=Gi(e),n=0;n<t.length;n++)Object.prototype.hasOwnProperty.call(e,t[n])&&"object"==zg(e[t[n]])&&(i[t[n]]=Io(e[t[n]]));return i}return null},t.selectiveDeepExtend=function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(Tg(i))throw new TypeError("Arrays are not supported by deepExtend");for(var g=0;g<t.length;g++){var o=t[g];if(Object.prototype.hasOwnProperty.call(i,o))if(i[o]&&i[o].constructor===Object)void 0===e[o]&&(e[o]={}),e[o].constructor===Object?Kg(e[o],i[o],!1,n):Hg(e,i,o,n);else{if(Tg(i[o]))throw new TypeError("Arrays are not supported by deepExtend");Hg(e,i,o,n)}}return e},t.selectiveExtend=function(t,e){if(!Tg(t))throw new Error("Array with property names expected as first argument");for(var i=arguments.length,n=new Array(i>2?i-2:0),g=2;g<i;g++)n[g-2]=arguments[g];for(var o=0,r=n;o<r.length;o++)for(var A=r[o],s=0;s<t.length;s++){var C=t[s];A&&Object.prototype.hasOwnProperty.call(A,C)&&(e[C]=A[C])}return e},t.selectiveNotDeepExtend=function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(Tg(i))throw new TypeError("Arrays are not supported by deepExtend");for(var g in i)if(Object.prototype.hasOwnProperty.call(i,g)&&-1===Mg(t).call(t,g))if(i[g]&&i[g].constructor===Object)void 0===e[g]&&(e[g]={}),e[g].constructor===Object?Kg(e[g],i[g]):Hg(e,i,g,n);else if(Tg(i[g])){e[g]=[];for(var o=0;o<i[g].length;o++)e[g].push(i[g][o])}else Hg(e,i,g,n);return e},t.throttle=function(t){var e=!1;return function(){e||(e=!0,requestAnimationFrame((function(){e=!1,t()})))}},t.toArray=qg,t.topMost=function(t,e){var i;Tg(e)||(e=[e]);var n=!0,g=!1,o=void 0;try{for(var r,A=je(t);!(n=(r=A.next()).done);n=!0){var s=r.value;if(s){i=s[e[0]];for(var C=1;C<e.length;C++)i&&(i=i[e[C]]);if(void 0!==i)break}}}catch(t){g=!0,o=t}finally{try{n||null==A.return||A.return()}finally{if(g)throw o}}return i},t.updateProperty=function(t,e,i){return t[e]!==i&&(t[e]=i,!0)},Object.defineProperty(t,"__esModule",{value:!0})}(e)}));function Hs(t){var e,i,n=this;this.active=!1,this.dom={container:t},this.dom.overlay=document.createElement("div"),this.dom.overlay.className="vis-overlay",this.dom.container.appendChild(this.dom.overlay),this.hammer=Vs(this.dom.overlay),this.hammer.on("tap",et(e=this._onTapOverlay).call(e,this));var g=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];eg(g).call(g,(function(t){n.hammer.on(t,(function(t){t.srcEvent.stopPropagation()}))})),document&&document.body&&(this.onClick=function(e){(function(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1})(e.target,t)||n.deactivate()},document.body.addEventListener("click",this.onClick)),void 0!==this.keycharm&&this.keycharm.destroy(),this.keycharm=vA(),this.escListener=et(i=this.deactivate).call(i,this)}g(Xs),(Us=fA)&&Us.default,st(Hs.prototype),Hs.current=null,Hs.prototype.destroy=function(){this.deactivate(),this.dom.overlay.parentNode.removeChild(this.dom.overlay),this.onClick&&document.body.removeEventListener("click",this.onClick),void 0!==this.keycharm&&this.keycharm.destroy(),this.keycharm=null,this.hammer.destroy(),this.hammer=null},Hs.prototype.activate=function(){var t;Hs.current&&Hs.current.deactivate(),Hs.current=this,this.active=!0,this.dom.overlay.style.display="none",Xs.addClassName(this.dom.container,"vis-active"),this.emit("change"),this.emit("activate"),et(t=this.keycharm).call(t,"esc",this.escListener)},Hs.prototype.deactivate=function(){this.active=!1,this.dom.overlay.style.display="block",Xs.removeClassName(this.dom.container,"vis-active"),this.keycharm.unbind("esc",this.escListener),this.emit("change"),this.emit("deactivate")},Hs.prototype._onTapOverlay=function(t){this.activate(),t.srcEvent.stopPropagation()};var Js=Hs,Ks=o((function(t,e){e.en={edit:"Edit",del:"Delete selected",back:"Back",addNode:"Add Node",addEdge:"Add Edge",editNode:"Edit Node",editEdge:"Edit Edge",addDescription:"Click in an empty space to place a new node.",edgeDescription:"Click on a node and drag the edge to another node to connect them.",editEdgeDescription:"Click on the control points and drag them to a node to connect to it.",createEdgeError:"Cannot link edges to a cluster.",deleteClusterError:"Clusters cannot be deleted.",editClusterError:"Clusters cannot be edited."},e.en_EN=e.en,e.en_US=e.en,e.de={edit:"Editieren",del:"Lösche Auswahl",back:"Zurück",addNode:"Knoten hinzufügen",addEdge:"Kante hinzufügen",editNode:"Knoten editieren",editEdge:"Kante editieren",addDescription:"Klicke auf eine freie Stelle, um einen neuen Knoten zu plazieren.",edgeDescription:"Klicke auf einen Knoten und ziehe die Kante zu einem anderen Knoten, um diese zu verbinden.",editEdgeDescription:"Klicke auf die Verbindungspunkte und ziehe diese auf einen Knoten, um sie zu verbinden.",createEdgeError:"Es ist nicht möglich, Kanten mit Clustern zu verbinden.",deleteClusterError:"Cluster können nicht gelöscht werden.",editClusterError:"Cluster können nicht editiert werden."},e.de_DE=e.de,e.es={edit:"Editar",del:"Eliminar selección",back:"Atrás",addNode:"Añadir nodo",addEdge:"Añadir arista",editNode:"Editar nodo",editEdge:"Editar arista",addDescription:"Haga clic en un lugar vacío para colocar un nuevo nodo.",edgeDescription:"Haga clic en un nodo y arrastre la arista hacia otro nodo para conectarlos.",editEdgeDescription:"Haga clic en un punto de control y arrastrelo a un nodo para conectarlo.",createEdgeError:"No se puede conectar una arista a un grupo.",deleteClusterError:"No es posible eliminar grupos.",editClusterError:"No es posible editar grupos."},e.es_ES=e.es,e.it={edit:"Modifica",del:"Cancella la selezione",back:"Indietro",addNode:"Aggiungi un nodo",addEdge:"Aggiungi un vertice",editNode:"Modifica il nodo",editEdge:"Modifica il vertice",addDescription:"Clicca per aggiungere un nuovo nodo",edgeDescription:"Clicca su un nodo e trascinalo ad un altro nodo per connetterli.",editEdgeDescription:"Clicca sui Punti di controllo e trascinali ad un nodo per connetterli.",createEdgeError:"Non si possono collegare vertici ad un cluster",deleteClusterError:"I cluster non possono essere cancellati",editClusterError:"I clusters non possono essere modificati."},e.it_IT=e.it,e.nl={edit:"Wijzigen",del:"Selectie verwijderen",back:"Terug",addNode:"Node toevoegen",addEdge:"Link toevoegen",editNode:"Node wijzigen",editEdge:"Link wijzigen",addDescription:"Klik op een leeg gebied om een nieuwe node te maken.",edgeDescription:"Klik op een node en sleep de link naar een andere node om ze te verbinden.",editEdgeDescription:"Klik op de verbindingspunten en sleep ze naar een node om daarmee te verbinden.",createEdgeError:"Kan geen link maken naar een cluster.",deleteClusterError:"Clusters kunnen niet worden verwijderd.",editClusterError:"Clusters kunnen niet worden aangepast."},e.nl_NL=e.nl,e.nl_BE=e.nl,e["pt-br"]={edit:"Editar",del:"Remover selecionado",back:"Voltar",addNode:"Adicionar nó",addEdge:"Adicionar aresta",editNode:"Editar nó",editEdge:"Editar aresta",addDescription:"Clique em um espaço em branco para adicionar um novo nó",edgeDescription:"Clique em um nó e arraste a aresta até outro nó para conectá-los",editEdgeDescription:"Clique nos pontos de controle e os arraste para um nó para conectá-los",createEdgeError:"Não foi possível linkar arestas a um cluster.",deleteClusterError:"Clusters não puderam ser removidos.",editClusterError:"Clusters não puderam ser editados."},e["pt-BR"]=e["pt-br"],e.pt_BR=e["pt-br"],e.pt_br=e["pt-br"],e.ru={edit:"Редактировать",del:"Удалить выбранное",back:"Назад",addNode:"Добавить узел",addEdge:"Добавить ребро",editNode:"Редактировать узел",editEdge:"Редактировать ребро",addDescription:"Кликните в свободное место, чтобы добавить новый узел.",edgeDescription:"Кликните на узел и протяните ребро к другому узлу, чтобы соединить их.",editEdgeDescription:"Кликните на контрольные точки и перетащите их в узел, чтобы подключиться к нему.",createEdgeError:"Невозможно соединить ребра в кластер.",deleteClusterError:"Кластеры не могут быть удалены",editClusterError:"Кластеры недоступны для редактирования."},e.ru_RU=e.ru,e.cn={edit:"编辑",del:"删除选定",back:"返回",addNode:"添加节点",addEdge:"添加连接线",editNode:"编辑节点",editEdge:"编辑连接线",addDescription:"单击空白处放置新节点。",edgeDescription:"单击某个节点并将该连接线拖动到另一个节点以连接它们。",editEdgeDescription:"单击控制节点并将它们拖到节点上连接。",createEdgeError:"无法将连接线连接到群集。",deleteClusterError:"无法删除群集。",editClusterError:"无法编辑群集。"},e.zh_CN=e.cn,e.uk={edit:"Редагувати",del:"Видалити обране",back:"Назад",addNode:"Додати вузол",addEdge:"Додати край",editNode:"Редагувати вузол",editEdge:"Редагувати край",addDescription:"Kлікніть на вільне місце, щоб додати новий вузол.",edgeDescription:"Клікніть на вузол і перетягніть край до іншого вузла, щоб їх з'єднати.",editEdgeDescription:"Клікніть на контрольні точки і перетягніть їх у вузол, щоб підключитися до нього.",createEdgeError:"Не можливо об'єднати краї в групу.",deleteClusterError:"Групи не можуть бути видалені.",editClusterError:"Групи недоступні для редагування."},e.uk_UA=e.uk,e.fr={edit:"Éditer",del:"Effacer la sélection",back:"Retour",addNode:"Ajouter un nœud",addEdge:"Ajouter un lien",editNode:"Éditer le nœud",editEdge:"Éditer le lien",addDescription:"Cliquez dans un endroit vide pour placer un nœud.",edgeDescription:"Cliquez sur un nœud et glissez le lien vers un autre nœud pour les connecter.",editEdgeDescription:"Cliquez sur les points de contrôle et glissez-les pour connecter un nœud.",createEdgeError:"Impossible de créer un lien vers un cluster.",deleteClusterError:"Les clusters ne peuvent pas être effacés.",editClusterError:"Les clusters ne peuvent pas être édités."},e.fr_FR=e.fr,e.cs={edit:"Upravit",del:"Smazat výběr",back:"Zpět",addNode:"Přidat vrchol",addEdge:"Přidat hranu",editNode:"Upravit vrchol",editEdge:"Upravit hranu",addDescription:"Kluknutím do prázdného prostoru můžete přidat nový vrchol.",edgeDescription:"Přetažením z jednoho vrcholu do druhého můžete spojit tyto vrcholy novou hranou.",editEdgeDescription:"Přetažením kontrolního vrcholu hrany ji můžete připojit k jinému vrcholu.",createEdgeError:"Nelze připojit hranu ke shluku.",deleteClusterError:"Nelze mazat shluky.",editClusterError:"Nelze upravovat shluky."},e.cs_CZ=e.cs}));var qs=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};function $s(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Mn(t,n.key,n)}}var tC=function(t,e,i){return e&&$s(t.prototype,e),i&&$s(t,i),t},eC=function(){function t(){qs(this,t),this.NUM_ITERATIONS=4,this.image=new Image,this.canvas=document.createElement("canvas")}return tC(t,[{key:"init",value:function(){if(!this.initialized()){this.src=this.image.src;var t=this.image.width,e=this.image.height;this.width=t,this.height=e;var i=Math.floor(e/2),n=Math.floor(e/4),g=Math.floor(e/8),o=Math.floor(e/16),r=Math.floor(t/2),A=Math.floor(t/4),s=Math.floor(t/8),C=Math.floor(t/16);this.canvas.width=3*A,this.canvas.height=i,this.coordinates=[[0,0,r,i],[r,0,A,n],[r,n,s,g],[5*s,n,C,o]],this._fillMipMap()}}},{key:"initialized",value:function(){return void 0!==this.coordinates}},{key:"_fillMipMap",value:function(){var t=this.canvas.getContext("2d"),e=this.coordinates[0];t.drawImage(this.image,e[0],e[1],e[2],e[3]);for(var i=1;i<this.NUM_ITERATIONS;i++){var n=this.coordinates[i-1],g=this.coordinates[i];t.drawImage(this.canvas,n[0],n[1],n[2],n[3],g[0],g[1],g[2],g[3])}}},{key:"drawImageAtPosition",value:function(t,e,i,n,g,o){if(this.initialized())if(e>2){e*=.5;for(var r=0;e>2&&r<this.NUM_ITERATIONS;)e*=.5,r+=1;r>=this.NUM_ITERATIONS&&(r=this.NUM_ITERATIONS-1);var A=this.coordinates[r];t.drawImage(this.canvas,A[0],A[1],A[2],A[3],i,n,g,o)}else t.drawImage(this.image,i,n,g,o)}}]),t}(),iC=function(){function t(e){qs(this,t),this.images={},this.imageBroken={},this.callback=e}return tC(t,[{key:"_tryloadBrokenUrl",value:function(t,e,i){void 0!==t&&void 0!==i&&(void 0!==e?(i.image.onerror=function(){console.error("Could not load brokenImage:",e)},i.image.src=e):console.warn("No broken url image defined"))}},{key:"_redrawWithImage",value:function(t){this.callback&&this.callback(t)}},{key:"load",value:function(t,e){var i=this,n=this.images[t];if(n)return n;var g=new eC;return this.images[t]=g,g.image.onload=function(){i._fixImageCoordinates(g.image),g.init(),i._redrawWithImage(g)},g.image.onerror=function(){console.error("Could not load image:",t),i._tryloadBrokenUrl(t,e,g)},g.image.src=t,g}},{key:"_fixImageCoordinates",value:function(t){0===t.width&&(document.body.appendChild(t),t.width=t.offsetWidth,t.height=t.offsetHeight,document.body.removeChild(t))}}]),t}(),nC=function(){function t(){qs(this,t),this.clear(),this.defaultIndex=0,this.groupsArray=[],this.groupIndex=0,this.defaultGroups=[{border:"#2B7CE9",background:"#97C2FC",highlight:{border:"#2B7CE9",background:"#D2E5FF"},hover:{border:"#2B7CE9",background:"#D2E5FF"}},{border:"#FFA500",background:"#FFFF00",highlight:{border:"#FFA500",background:"#FFFFA3"},hover:{border:"#FFA500",background:"#FFFFA3"}},{border:"#FA0A10",background:"#FB7E81",highlight:{border:"#FA0A10",background:"#FFAFB1"},hover:{border:"#FA0A10",background:"#FFAFB1"}},{border:"#41A906",background:"#7BE141",highlight:{border:"#41A906",background:"#A1EC76"},hover:{border:"#41A906",background:"#A1EC76"}},{border:"#E129F0",background:"#EB7DF4",highlight:{border:"#E129F0",background:"#F0B3F5"},hover:{border:"#E129F0",background:"#F0B3F5"}},{border:"#7C29F0",background:"#AD85E4",highlight:{border:"#7C29F0",background:"#D3BDF0"},hover:{border:"#7C29F0",background:"#D3BDF0"}},{border:"#C37F00",background:"#FFA807",highlight:{border:"#C37F00",background:"#FFCA66"},hover:{border:"#C37F00",background:"#FFCA66"}},{border:"#4220FB",background:"#6E6EFD",highlight:{border:"#4220FB",background:"#9B9BFD"},hover:{border:"#4220FB",background:"#9B9BFD"}},{border:"#FD5A77",background:"#FFC0CB",highlight:{border:"#FD5A77",background:"#FFD1D9"},hover:{border:"#FD5A77",background:"#FFD1D9"}},{border:"#4AD63A",background:"#C2FABC",highlight:{border:"#4AD63A",background:"#E6FFE3"},hover:{border:"#4AD63A",background:"#E6FFE3"}},{border:"#990000",background:"#EE0000",highlight:{border:"#BB0000",background:"#FF3333"},hover:{border:"#BB0000",background:"#FF3333"}},{border:"#FF6000",background:"#FF6000",highlight:{border:"#FF6000",background:"#FF6000"},hover:{border:"#FF6000",background:"#FF6000"}},{border:"#97C2FC",background:"#2B7CE9",highlight:{border:"#D2E5FF",background:"#2B7CE9"},hover:{border:"#D2E5FF",background:"#2B7CE9"}},{border:"#399605",background:"#255C03",highlight:{border:"#399605",background:"#255C03"},hover:{border:"#399605",background:"#255C03"}},{border:"#B70054",background:"#FF007E",highlight:{border:"#B70054",background:"#FF007E"},hover:{border:"#B70054",background:"#FF007E"}},{border:"#AD85E4",background:"#7C29F0",highlight:{border:"#D3BDF0",background:"#7C29F0"},hover:{border:"#D3BDF0",background:"#7C29F0"}},{border:"#4557FA",background:"#000EA1",highlight:{border:"#6E6EFD",background:"#000EA1"},hover:{border:"#6E6EFD",background:"#000EA1"}},{border:"#FFC0CB",background:"#FD5A77",highlight:{border:"#FFD1D9",background:"#FD5A77"},hover:{border:"#FFD1D9",background:"#FD5A77"}},{border:"#C2FABC",background:"#74D66A",highlight:{border:"#E6FFE3",background:"#74D66A"},hover:{border:"#E6FFE3",background:"#74D66A"}},{border:"#EE0000",background:"#990000",highlight:{border:"#FF3333",background:"#BB0000"},hover:{border:"#FF3333",background:"#BB0000"}}],this.options={},this.defaultOptions={useDefaultGroups:!0},So(this.options,this.defaultOptions)}return tC(t,[{key:"setOptions",value:function(t){var e=["useDefaultGroups"];if(void 0!==t)for(var i in t)if(t.hasOwnProperty(i)&&-1===go(e).call(e,i)){var n=t[i];this.add(i,n)}}},{key:"clear",value:function(){this.groups={},this.groupsArray=[]}},{key:"get",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.groups[t];if(void 0===i&&e)if(!1===this.options.useDefaultGroups&&this.groupsArray.length>0){var n=this.groupIndex%this.groupsArray.length;this.groupIndex++,(i={}).color=this.groups[this.groupsArray[n]],this.groups[t]=i}else{var g=this.defaultIndex%this.defaultGroups.length;this.defaultIndex++,(i={}).color=this.defaultGroups[g],this.groups[t]=i}return i}},{key:"add",value:function(t,e){return this.groups[t]=e,this.groupsArray.push(t),e}}]),t}(),gC=[].slice,oC=/MSIE .\./.test(ii),rC=function(t){return function(e,i){var n=arguments.length>2,g=n?gC.call(arguments,2):void 0;return t(n?function(){("function"==typeof e?e:Function(e)).apply(this,g)}:e,i)}};V({global:!0,bind:!0,forced:oC},{setTimeout:rC(s.setTimeout),setInterval:rC(s.setInterval)});var AC=Z.setTimeout,sC=ki.some,CC=Wn("some"),IC=Vn("some");V({target:"Array",proto:!0,forced:!CC||!IC},{some:function(t){return sC(this,t,arguments.length>1?arguments[1]:void 0)}});var aC=q("Array").some,lC=Array.prototype,cC=function(t){var e=t.some;return t===lC||t instanceof Array&&e===lC.some?aC:e},uC=s.isFinite,dC=Number.isFinite||function(t){return"number"==typeof t&&uC(t)};V({target:"Number",stat:!0},{isFinite:dC});var hC=Z.Number.isFinite;V({target:"Number",stat:!0},{isNaN:function(t){return t!=t}});var pC=Z.Number.isNaN;var fC=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},vC=ae("Reflect","construct"),yC=C((function(){function t(){}return!(vC((function(){}),[],t)instanceof t)})),mC=!C((function(){vC((function(){}))})),bC=yC||mC;V({target:"Reflect",stat:!0,forced:bC,sham:bC},{construct:function(t,e){z(t),L(e);var i=arguments.length<3?t:z(arguments[2]);if(mC&&!yC)return vC(t,e,i);if(t==i){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(K.apply(t,n))}var g=i.prototype,o=pe(m(g)?g:Object.prototype),r=Function.apply.call(t,o,e);return m(r)?r:o}});var xC=Z.Reflect.construct,wC=q("Array").entries,kC=Array.prototype,OC={DOMTokenList:!0,NodeList:!0},DC=function(t){var e=t.entries;return t===kC||t instanceof Array&&e===kC.entries||OC.hasOwnProperty(be(t))?wC:e},MC=ae("JSON","stringify"),TC=/[\uD800-\uDFFF]/g,_C=/^[\uD800-\uDBFF]$/,NC=/^[\uDC00-\uDFFF]$/,jC=function(t,e,i){var n=i.charAt(e-1),g=i.charAt(e+1);return _C.test(t)&&!NC.test(g)||NC.test(t)&&!_C.test(n)?"\\u"+t.charCodeAt(0).toString(16):t},EC=C((function(){return'"\\udf06\\ud834"'!==MC("\udf06\ud834")||'"\\udead"'!==MC("\udead")}));MC&&V({target:"JSON",stat:!0,forced:EC},{stringify:function(t,e,i){var n=MC.apply(null,arguments);return"string"==typeof n?n.replace(TC,jC):n}}),Z.JSON||(Z.JSON={stringify:JSON.stringify});var BC=function(t,e,i){return Z.JSON.stringify.apply(null,arguments)},FC=q("Array").values,RC=Array.prototype,SC={DOMTokenList:!0,NodeList:!0},ZC=function(t){var e=t.values;return t===RC||t instanceof Array&&e===RC.values||SC.hasOwnProperty(be(t))?FC:e},zC=q("Array").keys,GC=Array.prototype,LC={DOMTokenList:!0,NodeList:!0},QC=function(t){var e=t.keys;return t===GC||t instanceof Array&&e===GC.keys||LC.hasOwnProperty(be(t))?zC:e},WC=On;V({target:"Object",stat:!0},{setPrototypeOf:Te});var PC=Z.Object.setPrototypeOf,UC=o((function(t){function e(i,n){return t.exports=e=PC||function(t,e){return t.__proto__=e,t},e(i,n)}t.exports=e}));var YC=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=WC(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&UC(t,e)};var VC=function(t,e){return!e||"object"!==lo(e)&&"function"!=typeof e?fC(t):e},XC=Hg,HC=o((function(t){function e(i){return t.exports=e=PC?XC:function(t){return t.__proto__||XC(t)},e(i)}t.exports=e})),JC=[],KC=JC.sort,qC=C((function(){JC.sort(void 0)})),$C=C((function(){JC.sort(null)})),tI=Wn("sort");V({target:"Array",proto:!0,forced:qC||!$C||!tI},{sort:function(t){return void 0===t?KC.call(Ft(this)):KC.call(Ft(this),z(t))}});var eI=q("Array").sort,iI=Array.prototype,nI=function(t){var e=t.sort;return t===iI||t instanceof Array&&e===iI.sort?eI:e},gI=!C((function(){return Object.isExtensible(Object.preventExtensions({}))})),oI=o((function(t){var e=W.f,i=mt("meta"),n=0,g=Object.isExtensible||function(){return!0},o=function(t){e(t,i,{value:{objectID:"O"+ ++n,weakData:{}}})},r=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!m(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!w(t,i)){if(!g(t))return"F";if(!e)return"E";o(t)}return t[i].objectID},getWeakData:function(t,e){if(!w(t,i)){if(!g(t))return!0;if(!e)return!1;o(t)}return t[i].weakData},onFreeze:function(t){return gI&&r.REQUIRED&&g(t)&&!w(t,i)&&o(t),t}};wt[i]=!0})),rI=(oI.REQUIRED,oI.fastKey,oI.getWeakData,oI.onFreeze,o((function(t){var e=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,i,n,g,o){var r,A,s,C,I,a,l,c=G(i,n,g?2:1);if(o)r=t;else{if("function"!=typeof(A=He(t)))throw TypeError("Target is not iterable");if(An(A)){for(s=0,C=$t(t.length);C>s;s++)if((I=g?c(L(l=t[s])[0],l[1]):c(t[s]))&&I instanceof e)return I;return new e(!1)}r=A.call(t)}for(a=r.next;!(l=a.call(r)).done;)if("object"==typeof(I=gn(r,c,l.value,g))&&I&&I instanceof e)return I;return new e(!1)}).stop=function(t){return new e(!0,t)}}))),AI=function(t,e,i){if(!(t instanceof e))throw TypeError("Incorrect "+(i?i+" ":"")+"invocation");return t},sI=W.f,CI=ki.forEach,II=Bt.set,aI=Bt.getterFor,lI=function(t,e,i){var n,g=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),r=g?"set":"add",A=s[t],a=A&&A.prototype,l={};if(I&&"function"==typeof A&&(o||a.forEach&&!C((function(){(new A).entries().next()})))){n=e((function(e,i){II(AI(e,n,t),{type:t,collection:new A}),null!=i&&rI(i,e[r],e,g)}));var c=aI(t);CI(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var e="add"==t||"set"==t;!(t in a)||o&&"clear"==t||P(n.prototype,t,(function(i,n){var g=c(this).collection;if(!e&&o&&!m(i))return"get"==t&&void 0;var r=g[t](0===i?0:i,n);return e?this:r}))})),o||sI(n.prototype,"size",{configurable:!0,get:function(){return c(this).collection.size}})}else n=i.getConstructor(e,t,g,r),oI.REQUIRED=!0;return Oe(n,t,!1,!0),l[t]=n,V({global:!0,forced:!0},l),o||i.setStrong(n,t,g),n},cI=function(t,e,i){for(var n in e)i&&i.unsafe&&t[n]?t[n]=e[n]:_e(t,n,e[n],i);return t},uI=Ut("species"),dI=W.f,hI=oI.fastKey,pI=Bt.set,fI=Bt.getterFor,vI={getConstructor:function(t,e,i,n){var g=t((function(t,o){AI(t,g,e),pI(t,{type:e,index:pe(null),first:void 0,last:void 0,size:0}),I||(t.size=0),null!=o&&rI(o,t[n],t,i)})),o=fI(e),r=function(t,e,i){var n,g,r=o(t),s=A(t,e);return s?s.value=i:(r.last=s={index:g=hI(e,!0),key:e,value:i,previous:n=r.last,next:void 0,removed:!1},r.first||(r.first=s),n&&(n.next=s),I?r.size++:t.size++,"F"!==g&&(r.index[g]=s)),t},A=function(t,e){var i,n=o(t),g=hI(e);if("F"!==g)return n.index[g];for(i=n.first;i;i=i.next)if(i.key==e)return i};return cI(g.prototype,{clear:function(){for(var t=o(this),e=t.index,i=t.first;i;)i.removed=!0,i.previous&&(i.previous=i.previous.next=void 0),delete e[i.index],i=i.next;t.first=t.last=void 0,I?t.size=0:this.size=0},delete:function(t){var e=o(this),i=A(this,t);if(i){var n=i.next,g=i.previous;delete e.index[i.index],i.removed=!0,g&&(g.next=n),n&&(n.previous=g),e.first==i&&(e.first=n),e.last==i&&(e.last=g),I?e.size--:this.size--}return!!i},forEach:function(t){for(var e,i=o(this),n=G(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:i.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!A(this,t)}}),cI(g.prototype,i?{get:function(t){var e=A(this,t);return e&&e.value},set:function(t,e){return r(this,0===t?0:t,e)}}:{add:function(t){return r(this,t=0===t?0:t,t)}}),I&&dI(g.prototype,"size",{get:function(){return o(this).size}}),g},setStrong:function(t,e,i){var n=e+" Iterator",g=fI(e),o=fI(n);Fe(t,e,(function(t,e){pI(this,{type:n,target:t,state:g(t),kind:e,last:void 0})}),(function(){for(var t=o(this),e=t.kind,i=t.last;i&&i.removed;)i=i.previous;return t.target&&(t.last=i=i?i.next:t.state.first)?"keys"==e?{value:i.key,done:!1}:"values"==e?{value:i.value,done:!1}:{value:[i.key,i.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),i?"entries":"values",!i,!0),function(t){var e=ae(t),i=W.f;I&&e&&!e[uI]&&i(e,uI,{configurable:!0,get:function(){return this}})}(e)}},yI=(lI("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),vI),Z.Set),mI=(lI("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),vI),Z.Map),bI=o((function(t){var e=function(t){var e=Object.prototype,i=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},g=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",r=n.toStringTag||"@@toStringTag";function A(t,e,i,n){var g=e&&e.prototype instanceof I?e:I,o=Object.create(g.prototype),r=new b(n||[]);return o._invoke=function(t,e,i){var n="suspendedStart";return function(g,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===g)throw o;return w()}for(i.method=g,i.arg=o;;){var r=i.delegate;if(r){var A=v(r,i);if(A){if(A===C)continue;return A}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===n)throw n="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);n="executing";var I=s(t,e,i);if("normal"===I.type){if(n=i.done?"completed":"suspendedYield",I.arg===C)continue;return{value:I.arg,done:i.done}}"throw"===I.type&&(n="completed",i.method="throw",i.arg=I.arg)}}}(t,i,r),o}function s(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}t.wrap=A;var C={};function I(){}function a(){}function l(){}var c={};c[g]=function(){return this};var u=Object.getPrototypeOf,d=u&&u(u(x([])));d&&d!==e&&i.call(d,g)&&(c=d);var h=l.prototype=I.prototype=Object.create(c);function p(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function f(t,e){var n;this._invoke=function(g,o){function r(){return new e((function(n,r){!function n(g,o,r,A){var C=s(t[g],t,o);if("throw"!==C.type){var I=C.arg,a=I.value;return a&&"object"==typeof a&&i.call(a,"__await")?e.resolve(a.__await).then((function(t){n("next",t,r,A)}),(function(t){n("throw",t,r,A)})):e.resolve(a).then((function(t){I.value=t,r(I)}),(function(t){return n("throw",t,r,A)}))}A(C.arg)}(g,o,n,r)}))}return n=n?n.then(r,r):r()}}function v(t,e){var i=t.iterator[e.method];if(void 0===i){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,v(t,e),"throw"===e.method))return C;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return C}var n=s(i,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,C;var g=n.arg;return g?g.done?(e[t.resultName]=g.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,C):g:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,C)}function y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function m(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function b(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(y,this),this.reset(!0)}function x(t){if(t){var e=t[g];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(i.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:w}}function w(){return{value:void 0,done:!0}}return a.prototype=h.constructor=l,l.constructor=a,l[r]=a.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===a||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,r in t||(t[r]="GeneratorFunction")),t.prototype=Object.create(h),t},t.awrap=function(t){return{__await:t}},p(f.prototype),f.prototype[o]=function(){return this},t.AsyncIterator=f,t.async=function(e,i,n,g,o){void 0===o&&(o=Promise);var r=new f(A(e,i,n,g),o);return t.isGeneratorFunction(i)?r:r.next().then((function(t){return t.done?t.value:r.next()}))},p(h),h[r]="Generator",h[g]=function(){return this},h.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var i in t)e.push(i);return e.reverse(),function i(){for(;e.length;){var n=e.pop();if(n in t)return i.value=n,i.done=!1,i}return i.done=!0,i}},t.values=x,b.prototype={constructor:b,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(m),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(i,n){return r.type="throw",r.arg=t,e.next=i,n&&(e.method="next",e.arg=void 0),!!n}for(var g=this.tryEntries.length-1;g>=0;--g){var o=this.tryEntries[g],r=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var A=i.call(o,"catchLoc"),s=i.call(o,"finallyLoc");if(A&&s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(A){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var g=this.tryEntries[n];if(g.tryLoc<=this.prev&&i.call(g,"finallyLoc")&&this.prev<g.finallyLoc){var o=g;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var r=o?o.completion:{};return r.type=t,r.arg=e,o?(this.method="next",this.next=o.finallyLoc,C):this.complete(r)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),C},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),m(i),C}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var n=i.completion;if("throw"===n.type){var g=n.arg;m(i)}return g}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,i){return this.delegate={iterator:x(t),resultName:e,nextLoc:i},"next"===this.method&&(this.arg=void 0),C}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}})),xI=Io,wI=function(t,e,i,n,g,o,r,A){for(var s,C=g,I=0,a=!!r&&G(r,A,3);I<n;){if(I in i){if(s=a?a(i[I],I,e):i[I],o>0&&qe(s))C=wI(t,e,s,$t(s.length),C,o-1)-1;else{if(C>=9007199254740991)throw TypeError("Exceed the acceptable array length");t[C]=s}C++}I++}return C},kI=wI;V({target:"Array",proto:!0},{flatMap:function(t){var e,i=Ft(this),n=$t(i.length);return z(t),(e=ei(i,0)).length=kI(e,i,i,n,0,1,t,arguments.length>1?arguments[1]:void 0),e}});var OI=q("Array").flatMap,DI=Array.prototype,MI=function(t){var e=t.flatMap;return t===DI||t instanceof Array&&e===DI.flatMap?OI:e},TI=function(t){return function(e,i,n,g){z(i);var o=Ft(e),r=f(o),A=$t(o.length),s=t?A-1:0,C=t?-1:1;if(n<2)for(;;){if(s in r){g=r[s],s+=C;break}if(s+=C,t?s<0:A<=s)throw TypeError("Reduce of empty array with no initial value")}for(;t?s>=0:A>s;s+=C)s in r&&(g=i(g,r[s],s,o));return g}},_I={left:TI(!1),right:TI(!0)}.left,NI=Wn("reduce"),jI=Vn("reduce",{1:0});V({target:"Array",proto:!0,forced:!NI||!jI},{reduce:function(t){return _I(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}});var EI=q("Array").reduce,BI=Array.prototype,FI=function(t){var e=t.reduce;return t===BI||t instanceof Array&&e===BI.reduce?EI:e},RI="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),SI=new Uint8Array(16);function ZI(){if(!RI)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return RI(SI)}for(var zI=[],GI=0;GI<256;++GI)zI[GI]=(GI+256).toString(16).substr(1);function LI(t,e,i){var n=e&&i||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var g=(t=t||{}).random||(t.rng||ZI)();if(g[6]=15&g[6]|64,g[8]=63&g[8]|128,e)for(var o=0;o<16;++o)e[n+o]=g[o];return e||function(t,e){var i=e||0,n=zI;return[n[t[i++]],n[t[i++]],n[t[i++]],n[t[i++]],"-",n[t[i++]],n[t[i++]],"-",n[t[i++]],n[t[i++]],"-",n[t[i++]],n[t[i++]],"-",n[t[i++]],n[t[i++]],n[t[i++]],n[t[i++]],n[t[i++]],n[t[i++]]].join("")}(g)}var QI=o((function(t,e){t.exports=function(){var e,i;function n(){return e.apply(null,arguments)}function g(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function o(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function A(t){return void 0===t}function s(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function C(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function I(t,e){var i,n=[];for(i=0;i<t.length;++i)n.push(e(t[i],i));return n}function a(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function l(t,e){for(var i in e)a(e,i)&&(t[i]=e[i]);return a(e,"toString")&&(t.toString=e.toString),a(e,"valueOf")&&(t.valueOf=e.valueOf),t}function c(t,e,i,n){return we(t,e,i,n,!0).utc()}function u(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function d(t){if(null==t._isValid){var e=u(t),n=i.call(e.parsedDateParts,(function(t){return null!=t})),g=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(g=g&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return g;t._isValid=g}return t._isValid}function h(t){var e=c(NaN);return null!=t?l(u(e),t):u(e).userInvalidated=!0,e}i=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),i=e.length>>>0,n=0;n<i;n++)if(n in e&&t.call(this,e[n],n,e))return!0;return!1};var p=n.momentProperties=[];function f(t,e){var i,n,g;if(A(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),A(e._i)||(t._i=e._i),A(e._f)||(t._f=e._f),A(e._l)||(t._l=e._l),A(e._strict)||(t._strict=e._strict),A(e._tzm)||(t._tzm=e._tzm),A(e._isUTC)||(t._isUTC=e._isUTC),A(e._offset)||(t._offset=e._offset),A(e._pf)||(t._pf=u(e)),A(e._locale)||(t._locale=e._locale),p.length>0)for(i=0;i<p.length;i++)A(g=e[n=p[i]])||(t[n]=g);return t}var v=!1;function y(t){f(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===v&&(v=!0,n.updateOffset(this),v=!1)}function m(t){return t instanceof y||null!=t&&null!=t._isAMomentObject}function b(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function x(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=b(e)),i}function w(t,e,i){var n,g=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),r=0;for(n=0;n<g;n++)(i&&t[n]!==e[n]||!i&&x(t[n])!==x(e[n]))&&r++;return r+o}function k(t){!1===n.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function O(t,e){var i=!0;return l((function(){if(null!=n.deprecationHandler&&n.deprecationHandler(null,t),i){for(var g,o=[],r=0;r<arguments.length;r++){if(g="","object"==typeof arguments[r]){for(var A in g+="\n["+r+"] ",arguments[0])g+=A+": "+arguments[0][A]+", ";g=g.slice(0,-2)}else g=arguments[r];o.push(g)}k(t+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),i=!1}return e.apply(this,arguments)}),e)}var D,M={};function T(t,e){null!=n.deprecationHandler&&n.deprecationHandler(t,e),M[t]||(k(e),M[t]=!0)}function _(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function N(t,e){var i,n=l({},t);for(i in e)a(e,i)&&(o(t[i])&&o(e[i])?(n[i]={},l(n[i],t[i]),l(n[i],e[i])):null!=e[i]?n[i]=e[i]:delete n[i]);for(i in t)a(t,i)&&!a(e,i)&&o(t[i])&&(n[i]=l({},n[i]));return n}function j(t){null!=t&&this.set(t)}n.suppressDeprecationWarnings=!1,n.deprecationHandler=null,D=Object.keys?Object.keys:function(t){var e,i=[];for(e in t)a(t,e)&&i.push(e);return i};var E={};function B(t,e){var i=t.toLowerCase();E[i]=E[i+"s"]=E[e]=t}function F(t){return"string"==typeof t?E[t]||E[t.toLowerCase()]:void 0}function R(t){var e,i,n={};for(i in t)a(t,i)&&(e=F(i))&&(n[e]=t[i]);return n}var S={};function Z(t,e){S[t]=e}function z(t,e,i){var n=""+Math.abs(t),g=e-n.length;return(t>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,g)).toString().substr(1)+n}var G=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,L=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Q={},W={};function P(t,e,i,n){var g=n;"string"==typeof n&&(g=function(){return this[n]()}),t&&(W[t]=g),e&&(W[e[0]]=function(){return z(g.apply(this,arguments),e[1],e[2])}),i&&(W[i]=function(){return this.localeData().ordinal(g.apply(this,arguments),t)})}function U(t,e){return t.isValid()?(e=Y(e,t.localeData()),Q[e]=Q[e]||function(t){var e,i,n,g=t.match(G);for(e=0,i=g.length;e<i;e++)W[g[e]]?g[e]=W[g[e]]:g[e]=(n=g[e]).match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"");return function(e){var n,o="";for(n=0;n<i;n++)o+=_(g[n])?g[n].call(e,t):g[n];return o}}(e),Q[e](t)):t.localeData().invalidDate()}function Y(t,e){var i=5;function n(t){return e.longDateFormat(t)||t}for(L.lastIndex=0;i>=0&&L.test(t);)t=t.replace(L,n),L.lastIndex=0,i-=1;return t}var V=/\d/,X=/\d\d/,H=/\d{3}/,J=/\d{4}/,K=/[+-]?\d{6}/,q=/\d\d?/,$=/\d\d\d\d?/,tt=/\d\d\d\d\d\d?/,et=/\d{1,3}/,it=/\d{1,4}/,nt=/[+-]?\d{1,6}/,gt=/\d+/,ot=/[+-]?\d+/,rt=/Z|[+-]\d\d:?\d\d/gi,At=/Z|[+-]\d\d(?::?\d\d)?/gi,st=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Ct={};function It(t,e,i){Ct[t]=_(e)?e:function(t,n){return t&&i?i:e}}function at(t,e){return a(Ct,t)?Ct[t](e._strict,e._locale):new RegExp(lt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,i,n,g){return e||i||n||g}))))}function lt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var ct={};function ut(t,e){var i,n=e;for("string"==typeof t&&(t=[t]),s(e)&&(n=function(t,i){i[e]=x(t)}),i=0;i<t.length;i++)ct[t[i]]=n}function dt(t,e){ut(t,(function(t,i,n,g){n._w=n._w||{},e(t,n._w,n,g)}))}function ht(t,e,i){null!=e&&a(ct,t)&&ct[t](e,i._a,i,t)}function pt(t){return ft(t)?366:365}function ft(t){return t%4==0&&t%100!=0||t%400==0}P("Y",0,0,(function(){var t=this.year();return t<=9999?""+t:"+"+t})),P(0,["YY",2],0,(function(){return this.year()%100})),P(0,["YYYY",4],0,"year"),P(0,["YYYYY",5],0,"year"),P(0,["YYYYYY",6,!0],0,"year"),B("year","y"),Z("year",1),It("Y",ot),It("YY",q,X),It("YYYY",it,J),It("YYYYY",nt,K),It("YYYYYY",nt,K),ut(["YYYYY","YYYYYY"],0),ut("YYYY",(function(t,e){e[0]=2===t.length?n.parseTwoDigitYear(t):x(t)})),ut("YY",(function(t,e){e[0]=n.parseTwoDigitYear(t)})),ut("Y",(function(t,e){e[0]=parseInt(t,10)})),n.parseTwoDigitYear=function(t){return x(t)+(x(t)>68?1900:2e3)};var vt,yt=mt("FullYear",!0);function mt(t,e){return function(i){return null!=i?(xt(this,t,i),n.updateOffset(this,e),this):bt(this,t)}}function bt(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function xt(t,e,i){t.isValid()&&!isNaN(i)&&("FullYear"===e&&ft(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](i,t.month(),wt(i,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](i))}function wt(t,e){if(isNaN(t)||isNaN(e))return NaN;var i=function(t,e){return(t%e+e)%e}(e,12);return t+=(e-i)/12,1===i?ft(t)?29:28:31-i%7%2}vt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},P("M",["MM",2],"Mo",(function(){return this.month()+1})),P("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),P("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),B("month","M"),Z("month",8),It("M",q),It("MM",q,X),It("MMM",(function(t,e){return e.monthsShortRegex(t)})),It("MMMM",(function(t,e){return e.monthsRegex(t)})),ut(["M","MM"],(function(t,e){e[1]=x(t)-1})),ut(["MMM","MMMM"],(function(t,e,i,n){var g=i._locale.monthsParse(t,n,i._strict);null!=g?e[1]=g:u(i).invalidMonth=t}));var kt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ot="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Dt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Mt(t,e,i){var n,g,o,r=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)o=c([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(o,"").toLocaleLowerCase();return i?"MMM"===e?-1!==(g=vt.call(this._shortMonthsParse,r))?g:null:-1!==(g=vt.call(this._longMonthsParse,r))?g:null:"MMM"===e?-1!==(g=vt.call(this._shortMonthsParse,r))||-1!==(g=vt.call(this._longMonthsParse,r))?g:null:-1!==(g=vt.call(this._longMonthsParse,r))||-1!==(g=vt.call(this._shortMonthsParse,r))?g:null}function Tt(t,e){var i;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=x(e);else if(!s(e=t.localeData().monthsParse(e)))return t;return i=Math.min(t.date(),wt(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,i),t}function _t(t){return null!=t?(Tt(this,t),n.updateOffset(this,!0),this):bt(this,"Month")}var Nt=st,jt=st;function Et(){function t(t,e){return e.length-t.length}var e,i,n=[],g=[],o=[];for(e=0;e<12;e++)i=c([2e3,e]),n.push(this.monthsShort(i,"")),g.push(this.months(i,"")),o.push(this.months(i,"")),o.push(this.monthsShort(i,""));for(n.sort(t),g.sort(t),o.sort(t),e=0;e<12;e++)n[e]=lt(n[e]),g[e]=lt(g[e]);for(e=0;e<24;e++)o[e]=lt(o[e]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+g.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function Bt(t,e,i,n,g,o,r){var A;return t<100&&t>=0?(A=new Date(t+400,e,i,n,g,o,r),isFinite(A.getFullYear())&&A.setFullYear(t)):A=new Date(t,e,i,n,g,o,r),A}function Ft(t){var e;if(t<100&&t>=0){var i=Array.prototype.slice.call(arguments);i[0]=t+400,e=new Date(Date.UTC.apply(null,i)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)}else e=new Date(Date.UTC.apply(null,arguments));return e}function Rt(t,e,i){var n=7+e-i;return-(7+Ft(t,0,n).getUTCDay()-e)%7+n-1}function St(t,e,i,n,g){var o,r,A=1+7*(e-1)+(7+i-n)%7+Rt(t,n,g);return A<=0?r=pt(o=t-1)+A:A>pt(t)?(o=t+1,r=A-pt(t)):(o=t,r=A),{year:o,dayOfYear:r}}function Zt(t,e,i){var n,g,o=Rt(t.year(),e,i),r=Math.floor((t.dayOfYear()-o-1)/7)+1;return r<1?n=r+zt(g=t.year()-1,e,i):r>zt(t.year(),e,i)?(n=r-zt(t.year(),e,i),g=t.year()+1):(g=t.year(),n=r),{week:n,year:g}}function zt(t,e,i){var n=Rt(t,e,i),g=Rt(t+1,e,i);return(pt(t)-n+g)/7}function Gt(t,e){return t.slice(e,7).concat(t.slice(0,e))}P("w",["ww",2],"wo","week"),P("W",["WW",2],"Wo","isoWeek"),B("week","w"),B("isoWeek","W"),Z("week",5),Z("isoWeek",5),It("w",q),It("ww",q,X),It("W",q),It("WW",q,X),dt(["w","ww","W","WW"],(function(t,e,i,n){e[n.substr(0,1)]=x(t)})),P("d",0,"do","day"),P("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),P("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),P("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),P("e",0,0,"weekday"),P("E",0,0,"isoWeekday"),B("day","d"),B("weekday","e"),B("isoWeekday","E"),Z("day",11),Z("weekday",11),Z("isoWeekday",11),It("d",q),It("e",q),It("E",q),It("dd",(function(t,e){return e.weekdaysMinRegex(t)})),It("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),It("dddd",(function(t,e){return e.weekdaysRegex(t)})),dt(["dd","ddd","dddd"],(function(t,e,i,n){var g=i._locale.weekdaysParse(t,n,i._strict);null!=g?e.d=g:u(i).invalidWeekday=t})),dt(["d","e","E"],(function(t,e,i,n){e[n]=x(t)}));var Lt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Qt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Wt="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Pt(t,e,i){var n,g,o,r=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)o=c([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(o,"").toLocaleLowerCase();return i?"dddd"===e?-1!==(g=vt.call(this._weekdaysParse,r))?g:null:"ddd"===e?-1!==(g=vt.call(this._shortWeekdaysParse,r))?g:null:-1!==(g=vt.call(this._minWeekdaysParse,r))?g:null:"dddd"===e?-1!==(g=vt.call(this._weekdaysParse,r))||-1!==(g=vt.call(this._shortWeekdaysParse,r))||-1!==(g=vt.call(this._minWeekdaysParse,r))?g:null:"ddd"===e?-1!==(g=vt.call(this._shortWeekdaysParse,r))||-1!==(g=vt.call(this._weekdaysParse,r))||-1!==(g=vt.call(this._minWeekdaysParse,r))?g:null:-1!==(g=vt.call(this._minWeekdaysParse,r))||-1!==(g=vt.call(this._weekdaysParse,r))||-1!==(g=vt.call(this._shortWeekdaysParse,r))?g:null}var Ut=st,Yt=st,Vt=st;function Xt(){function t(t,e){return e.length-t.length}var e,i,n,g,o,r=[],A=[],s=[],C=[];for(e=0;e<7;e++)i=c([2e3,1]).day(e),n=this.weekdaysMin(i,""),g=this.weekdaysShort(i,""),o=this.weekdays(i,""),r.push(n),A.push(g),s.push(o),C.push(n),C.push(g),C.push(o);for(r.sort(t),A.sort(t),s.sort(t),C.sort(t),e=0;e<7;e++)A[e]=lt(A[e]),s[e]=lt(s[e]),C[e]=lt(C[e]);this._weekdaysRegex=new RegExp("^("+C.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+A.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Ht(){return this.hours()%12||12}function Jt(t,e){P(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function Kt(t,e){return e._meridiemParse}P("H",["HH",2],0,"hour"),P("h",["hh",2],0,Ht),P("k",["kk",2],0,(function(){return this.hours()||24})),P("hmm",0,0,(function(){return""+Ht.apply(this)+z(this.minutes(),2)})),P("hmmss",0,0,(function(){return""+Ht.apply(this)+z(this.minutes(),2)+z(this.seconds(),2)})),P("Hmm",0,0,(function(){return""+this.hours()+z(this.minutes(),2)})),P("Hmmss",0,0,(function(){return""+this.hours()+z(this.minutes(),2)+z(this.seconds(),2)})),Jt("a",!0),Jt("A",!1),B("hour","h"),Z("hour",13),It("a",Kt),It("A",Kt),It("H",q),It("h",q),It("k",q),It("HH",q,X),It("hh",q,X),It("kk",q,X),It("hmm",$),It("hmmss",tt),It("Hmm",$),It("Hmmss",tt),ut(["H","HH"],3),ut(["k","kk"],(function(t,e,i){var n=x(t);e[3]=24===n?0:n})),ut(["a","A"],(function(t,e,i){i._isPm=i._locale.isPM(t),i._meridiem=t})),ut(["h","hh"],(function(t,e,i){e[3]=x(t),u(i).bigHour=!0})),ut("hmm",(function(t,e,i){var n=t.length-2;e[3]=x(t.substr(0,n)),e[4]=x(t.substr(n)),u(i).bigHour=!0})),ut("hmmss",(function(t,e,i){var n=t.length-4,g=t.length-2;e[3]=x(t.substr(0,n)),e[4]=x(t.substr(n,2)),e[5]=x(t.substr(g)),u(i).bigHour=!0})),ut("Hmm",(function(t,e,i){var n=t.length-2;e[3]=x(t.substr(0,n)),e[4]=x(t.substr(n))})),ut("Hmmss",(function(t,e,i){var n=t.length-4,g=t.length-2;e[3]=x(t.substr(0,n)),e[4]=x(t.substr(n,2)),e[5]=x(t.substr(g))}));var qt,$t=mt("Hours",!0),te={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ot,monthsShort:Dt,week:{dow:0,doy:6},weekdays:Lt,weekdaysMin:Wt,weekdaysShort:Qt,meridiemParse:/[ap]\.?m?\.?/i},ee={},ie={};function ne(t){return t?t.toLowerCase().replace("_","-"):t}function ge(e){var i=null;if(!ee[e]&&t&&t.exports)try{i=qt._abbr,r(),oe(i)}catch(t){}return ee[e]}function oe(t,e){var i;return t&&((i=A(e)?Ae(t):re(t,e))?qt=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),qt._abbr}function re(t,e){if(null!==e){var i,n=te;if(e.abbr=t,null!=ee[t])T("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=ee[t]._config;else if(null!=e.parentLocale)if(null!=ee[e.parentLocale])n=ee[e.parentLocale]._config;else{if(null==(i=ge(e.parentLocale)))return ie[e.parentLocale]||(ie[e.parentLocale]=[]),ie[e.parentLocale].push({name:t,config:e}),null;n=i._config}return ee[t]=new j(N(n,e)),ie[t]&&ie[t].forEach((function(t){re(t.name,t.config)})),oe(t),ee[t]}return delete ee[t],null}function Ae(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return qt;if(!g(t)){if(e=ge(t))return e;t=[t]}return function(t){for(var e,i,n,g,o=0;o<t.length;){for(e=(g=ne(t[o]).split("-")).length,i=(i=ne(t[o+1]))?i.split("-"):null;e>0;){if(n=ge(g.slice(0,e).join("-")))return n;if(i&&i.length>=e&&w(g,i,!0)>=e-1)break;e--}o++}return qt}(t)}function se(t){var e,i=t._a;return i&&-2===u(t).overflow&&(e=i[1]<0||i[1]>11?1:i[2]<1||i[2]>wt(i[0],i[1])?2:i[3]<0||i[3]>24||24===i[3]&&(0!==i[4]||0!==i[5]||0!==i[6])?3:i[4]<0||i[4]>59?4:i[5]<0||i[5]>59?5:i[6]<0||i[6]>999?6:-1,u(t)._overflowDayOfYear&&(e<0||e>2)&&(e=2),u(t)._overflowWeeks&&-1===e&&(e=7),u(t)._overflowWeekday&&-1===e&&(e=8),u(t).overflow=e),t}function Ce(t,e,i){return null!=t?t:null!=e?e:i}function Ie(t){var e,i,g,o,r,A=[];if(!t._d){for(g=function(t){var e=new Date(n.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[2]&&null==t._a[1]&&function(t){var e,i,n,g,o,r,A,s;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)o=1,r=4,i=Ce(e.GG,t._a[0],Zt(ke(),1,4).year),n=Ce(e.W,1),((g=Ce(e.E,1))<1||g>7)&&(s=!0);else{o=t._locale._week.dow,r=t._locale._week.doy;var C=Zt(ke(),o,r);i=Ce(e.gg,t._a[0],C.year),n=Ce(e.w,C.week),null!=e.d?((g=e.d)<0||g>6)&&(s=!0):null!=e.e?(g=e.e+o,(e.e<0||e.e>6)&&(s=!0)):g=o}n<1||n>zt(i,o,r)?u(t)._overflowWeeks=!0:null!=s?u(t)._overflowWeekday=!0:(A=St(i,n,g,o,r),t._a[0]=A.year,t._dayOfYear=A.dayOfYear)}(t),null!=t._dayOfYear&&(r=Ce(t._a[0],g[0]),(t._dayOfYear>pt(r)||0===t._dayOfYear)&&(u(t)._overflowDayOfYear=!0),i=Ft(r,0,t._dayOfYear),t._a[1]=i.getUTCMonth(),t._a[2]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=A[e]=g[e];for(;e<7;e++)t._a[e]=A[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[3]&&0===t._a[4]&&0===t._a[5]&&0===t._a[6]&&(t._nextDay=!0,t._a[3]=0),t._d=(t._useUTC?Ft:Bt).apply(null,A),o=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[3]=24),t._w&&void 0!==t._w.d&&t._w.d!==o&&(u(t).weekdayMismatch=!0)}}var ae=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,le=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ce=/Z|[+-]\d\d(?::?\d\d)?/,ue=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],de=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],he=/^\/?Date\((\-?\d+)/i;function pe(t){var e,i,n,g,o,r,A=t._i,s=ae.exec(A)||le.exec(A);if(s){for(u(t).iso=!0,e=0,i=ue.length;e<i;e++)if(ue[e][1].exec(s[1])){g=ue[e][0],n=!1!==ue[e][2];break}if(null==g)return void(t._isValid=!1);if(s[3]){for(e=0,i=de.length;e<i;e++)if(de[e][1].exec(s[3])){o=(s[2]||" ")+de[e][0];break}if(null==o)return void(t._isValid=!1)}if(!n&&null!=o)return void(t._isValid=!1);if(s[4]){if(!ce.exec(s[4]))return void(t._isValid=!1);r="Z"}t._f=g+(o||"")+(r||""),be(t)}else t._isValid=!1}var fe=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function ve(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}var ye={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function me(t){var e,i,n,g,o,r,A,s=fe.exec(t._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(s){var C=(e=s[4],i=s[3],n=s[2],g=s[5],o=s[6],r=s[7],A=[ve(e),Dt.indexOf(i),parseInt(n,10),parseInt(g,10),parseInt(o,10)],r&&A.push(parseInt(r,10)),A);if(!function(t,e,i){return!t||Qt.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(u(i).weekdayMismatch=!0,i._isValid=!1,!1)}(s[1],C,t))return;t._a=C,t._tzm=function(t,e,i){if(t)return ye[t];if(e)return 0;var n=parseInt(i,10),g=n%100;return(n-g)/100*60+g}(s[8],s[9],s[10]),t._d=Ft.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),u(t).rfc2822=!0}else t._isValid=!1}function be(t){if(t._f!==n.ISO_8601)if(t._f!==n.RFC_2822){t._a=[],u(t).empty=!0;var e,i,g,o,r,A=""+t._i,s=A.length,C=0;for(g=Y(t._f,t._locale).match(G)||[],e=0;e<g.length;e++)o=g[e],(i=(A.match(at(o,t))||[])[0])&&((r=A.substr(0,A.indexOf(i))).length>0&&u(t).unusedInput.push(r),A=A.slice(A.indexOf(i)+i.length),C+=i.length),W[o]?(i?u(t).empty=!1:u(t).unusedTokens.push(o),ht(o,i,t)):t._strict&&!i&&u(t).unusedTokens.push(o);u(t).charsLeftOver=s-C,A.length>0&&u(t).unusedInput.push(A),t._a[3]<=12&&!0===u(t).bigHour&&t._a[3]>0&&(u(t).bigHour=void 0),u(t).parsedDateParts=t._a.slice(0),u(t).meridiem=t._meridiem,t._a[3]=function(t,e,i){var n;return null==i?e:null!=t.meridiemHour?t.meridiemHour(e,i):null!=t.isPM?((n=t.isPM(i))&&e<12&&(e+=12),n||12!==e||(e=0),e):e}(t._locale,t._a[3],t._meridiem),Ie(t),se(t)}else me(t);else pe(t)}function xe(t){var e=t._i,i=t._f;return t._locale=t._locale||Ae(t._l),null===e||void 0===i&&""===e?h({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),m(e)?new y(se(e)):(C(e)?t._d=e:g(i)?function(t){var e,i,n,g,o;if(0===t._f.length)return u(t).invalidFormat=!0,void(t._d=new Date(NaN));for(g=0;g<t._f.length;g++)o=0,e=f({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[g],be(e),d(e)&&(o+=u(e).charsLeftOver,o+=10*u(e).unusedTokens.length,u(e).score=o,(null==n||o<n)&&(n=o,i=e));l(t,i||e)}(t):i?be(t):function(t){var e=t._i;A(e)?t._d=new Date(n.now()):C(e)?t._d=new Date(e.valueOf()):"string"==typeof e?function(t){var e=he.exec(t._i);null===e?(pe(t),!1===t._isValid&&(delete t._isValid,me(t),!1===t._isValid&&(delete t._isValid,n.createFromInputFallback(t)))):t._d=new Date(+e[1])}(t):g(e)?(t._a=I(e.slice(0),(function(t){return parseInt(t,10)})),Ie(t)):o(e)?function(t){if(!t._d){var e=R(t._i);t._a=I([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],(function(t){return t&&parseInt(t,10)})),Ie(t)}}(t):s(e)?t._d=new Date(e):n.createFromInputFallback(t)}(t),d(t)||(t._d=null),t))}function we(t,e,i,n,r){var A,s={};return!0!==i&&!1!==i||(n=i,i=void 0),(o(t)&&function(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}(t)||g(t)&&0===t.length)&&(t=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=r,s._l=i,s._i=t,s._f=e,s._strict=n,(A=new y(se(xe(s))))._nextDay&&(A.add(1,"d"),A._nextDay=void 0),A}function ke(t,e,i,n){return we(t,e,i,n,!1)}n.createFromInputFallback=O("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),n.ISO_8601=function(){},n.RFC_2822=function(){};var Oe=O("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=ke.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:h()})),De=O("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=ke.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:h()}));function Me(t,e){var i,n;if(1===e.length&&g(e[0])&&(e=e[0]),!e.length)return ke();for(i=e[0],n=1;n<e.length;++n)e[n].isValid()&&!e[n][t](i)||(i=e[n]);return i}var Te=["year","quarter","month","week","day","hour","minute","second","millisecond"];function _e(t){var e=R(t),i=e.year||0,n=e.quarter||0,g=e.month||0,o=e.week||e.isoWeek||0,r=e.day||0,A=e.hour||0,s=e.minute||0,C=e.second||0,I=e.millisecond||0;this._isValid=function(t){for(var e in t)if(-1===vt.call(Te,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var i=!1,n=0;n<Te.length;++n)if(t[Te[n]]){if(i)return!1;parseFloat(t[Te[n]])!==x(t[Te[n]])&&(i=!0)}return!0}(e),this._milliseconds=+I+1e3*C+6e4*s+1e3*A*60*60,this._days=+r+7*o,this._months=+g+3*n+12*i,this._data={},this._locale=Ae(),this._bubble()}function Ne(t){return t instanceof _e}function je(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Ee(t,e){P(t,0,0,(function(){var t=this.utcOffset(),i="+";return t<0&&(t=-t,i="-"),i+z(~~(t/60),2)+e+z(~~t%60,2)}))}Ee("Z",":"),Ee("ZZ",""),It("Z",At),It("ZZ",At),ut(["Z","ZZ"],(function(t,e,i){i._useUTC=!0,i._tzm=Fe(At,t)}));var Be=/([\+\-]|\d\d)/gi;function Fe(t,e){var i=(e||"").match(t);if(null===i)return null;var n=((i[i.length-1]||[])+"").match(Be)||["-",0,0],g=60*n[1]+x(n[2]);return 0===g?0:"+"===n[0]?g:-g}function Re(t,e){var i,g;return e._isUTC?(i=e.clone(),g=(m(t)||C(t)?t.valueOf():ke(t).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+g),n.updateOffset(i,!1),i):ke(t).local()}function Se(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Ze(){return!!this.isValid()&&this._isUTC&&0===this._offset}n.updateOffset=function(){};var ze=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Ge=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Le(t,e){var i,n,g,o,r,A,C=t,I=null;return Ne(t)?C={ms:t._milliseconds,d:t._days,M:t._months}:s(t)?(C={},e?C[e]=t:C.milliseconds=t):(I=ze.exec(t))?(i="-"===I[1]?-1:1,C={y:0,d:x(I[2])*i,h:x(I[3])*i,m:x(I[4])*i,s:x(I[5])*i,ms:x(je(1e3*I[6]))*i}):(I=Ge.exec(t))?(i="-"===I[1]?-1:1,C={y:Qe(I[2],i),M:Qe(I[3],i),w:Qe(I[4],i),d:Qe(I[5],i),h:Qe(I[6],i),m:Qe(I[7],i),s:Qe(I[8],i)}):null==C?C={}:"object"==typeof C&&("from"in C||"to"in C)&&(o=ke(C.from),r=ke(C.to),g=o.isValid()&&r.isValid()?(r=Re(r,o),o.isBefore(r)?A=We(o,r):((A=We(r,o)).milliseconds=-A.milliseconds,A.months=-A.months),A):{milliseconds:0,months:0},(C={}).ms=g.milliseconds,C.M=g.months),n=new _e(C),Ne(t)&&a(t,"_locale")&&(n._locale=t._locale),n}function Qe(t,e){var i=t&&parseFloat(t.replace(",","."));return(isNaN(i)?0:i)*e}function We(t,e){var i={};return i.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(i.months,"M").isAfter(e)&&--i.months,i.milliseconds=+e-+t.clone().add(i.months,"M"),i}function Pe(t,e){return function(i,n){var g;return null===n||isNaN(+n)||(T(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),g=i,i=n,n=g),Ue(this,Le(i="string"==typeof i?+i:i,n),t),this}}function Ue(t,e,i,g){var o=e._milliseconds,r=je(e._days),A=je(e._months);t.isValid()&&(g=null==g||g,A&&Tt(t,bt(t,"Month")+A*i),r&&xt(t,"Date",bt(t,"Date")+r*i),o&&t._d.setTime(t._d.valueOf()+o*i),g&&n.updateOffset(t,r||A))}Le.fn=_e.prototype,Le.invalid=function(){return Le(NaN)};var Ye=Pe(1,"add"),Ve=Pe(-1,"subtract");function Xe(t,e){var i=12*(e.year()-t.year())+(e.month()-t.month()),n=t.clone().add(i,"months");return-(i+(e-n<0?(e-n)/(n-t.clone().add(i-1,"months")):(e-n)/(t.clone().add(i+1,"months")-n)))||0}function He(t){var e;return void 0===t?this._locale._abbr:(null!=(e=Ae(t))&&(this._locale=e),this)}n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",n.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Je=O("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function Ke(){return this._locale}function qe(t,e){return(t%e+e)%e}function $e(t,e,i){return t<100&&t>=0?new Date(t+400,e,i)-126227808e5:new Date(t,e,i).valueOf()}function ti(t,e,i){return t<100&&t>=0?Date.UTC(t+400,e,i)-126227808e5:Date.UTC(t,e,i)}function ei(t,e){P(0,[t,t.length],0,e)}function ii(t,e,i,n,g){var o;return null==t?Zt(this,n,g).year:(e>(o=zt(t,n,g))&&(e=o),ni.call(this,t,e,i,n,g))}function ni(t,e,i,n,g){var o=St(t,e,i,n,g),r=Ft(o.year,0,o.dayOfYear);return this.year(r.getUTCFullYear()),this.month(r.getUTCMonth()),this.date(r.getUTCDate()),this}P(0,["gg",2],0,(function(){return this.weekYear()%100})),P(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),ei("gggg","weekYear"),ei("ggggg","weekYear"),ei("GGGG","isoWeekYear"),ei("GGGGG","isoWeekYear"),B("weekYear","gg"),B("isoWeekYear","GG"),Z("weekYear",1),Z("isoWeekYear",1),It("G",ot),It("g",ot),It("GG",q,X),It("gg",q,X),It("GGGG",it,J),It("gggg",it,J),It("GGGGG",nt,K),It("ggggg",nt,K),dt(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,i,n){e[n.substr(0,2)]=x(t)})),dt(["gg","GG"],(function(t,e,i,g){e[g]=n.parseTwoDigitYear(t)})),P("Q",0,"Qo","quarter"),B("quarter","Q"),Z("quarter",7),It("Q",V),ut("Q",(function(t,e){e[1]=3*(x(t)-1)})),P("D",["DD",2],"Do","date"),B("date","D"),Z("date",9),It("D",q),It("DD",q,X),It("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),ut(["D","DD"],2),ut("Do",(function(t,e){e[2]=x(t.match(q)[0])}));var gi=mt("Date",!0);P("DDD",["DDDD",3],"DDDo","dayOfYear"),B("dayOfYear","DDD"),Z("dayOfYear",4),It("DDD",et),It("DDDD",H),ut(["DDD","DDDD"],(function(t,e,i){i._dayOfYear=x(t)})),P("m",["mm",2],0,"minute"),B("minute","m"),Z("minute",14),It("m",q),It("mm",q,X),ut(["m","mm"],4);var oi=mt("Minutes",!1);P("s",["ss",2],0,"second"),B("second","s"),Z("second",15),It("s",q),It("ss",q,X),ut(["s","ss"],5);var ri,Ai=mt("Seconds",!1);for(P("S",0,0,(function(){return~~(this.millisecond()/100)})),P(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),P(0,["SSS",3],0,"millisecond"),P(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),P(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),P(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),P(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),P(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),P(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),B("millisecond","ms"),Z("millisecond",16),It("S",et,V),It("SS",et,X),It("SSS",et,H),ri="SSSS";ri.length<=9;ri+="S")It(ri,gt);function si(t,e){e[6]=x(1e3*("0."+t))}for(ri="S";ri.length<=9;ri+="S")ut(ri,si);var Ci=mt("Milliseconds",!1);P("z",0,0,"zoneAbbr"),P("zz",0,0,"zoneName");var Ii=y.prototype;function ai(t){return t}Ii.add=Ye,Ii.calendar=function(t,e){var i=t||ke(),g=Re(i,this).startOf("day"),o=n.calendarFormat(this,g)||"sameElse",r=e&&(_(e[o])?e[o].call(this,i):e[o]);return this.format(r||this.localeData().calendar(o,this,ke(i)))},Ii.clone=function(){return new y(this)},Ii.diff=function(t,e,i){var n,g,o;if(!this.isValid())return NaN;if(!(n=Re(t,this)).isValid())return NaN;switch(g=6e4*(n.utcOffset()-this.utcOffset()),e=F(e)){case"year":o=Xe(this,n)/12;break;case"month":o=Xe(this,n);break;case"quarter":o=Xe(this,n)/3;break;case"second":o=(this-n)/1e3;break;case"minute":o=(this-n)/6e4;break;case"hour":o=(this-n)/36e5;break;case"day":o=(this-n-g)/864e5;break;case"week":o=(this-n-g)/6048e5;break;default:o=this-n}return i?o:b(o)},Ii.endOf=function(t){var e;if(void 0===(t=F(t))||"millisecond"===t||!this.isValid())return this;var i=this._isUTC?ti:$e;switch(t){case"year":e=i(this.year()+1,0,1)-1;break;case"quarter":e=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=i(this.year(),this.month()+1,1)-1;break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=36e5-qe(e+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":e=this._d.valueOf(),e+=6e4-qe(e,6e4)-1;break;case"second":e=this._d.valueOf(),e+=1e3-qe(e,1e3)-1}return this._d.setTime(e),n.updateOffset(this,!0),this},Ii.format=function(t){t||(t=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var e=U(this,t);return this.localeData().postformat(e)},Ii.from=function(t,e){return this.isValid()&&(m(t)&&t.isValid()||ke(t).isValid())?Le({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Ii.fromNow=function(t){return this.from(ke(),t)},Ii.to=function(t,e){return this.isValid()&&(m(t)&&t.isValid()||ke(t).isValid())?Le({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Ii.toNow=function(t){return this.to(ke(),t)},Ii.get=function(t){return _(this[t=F(t)])?this[t]():this},Ii.invalidAt=function(){return u(this).overflow},Ii.isAfter=function(t,e){var i=m(t)?t:ke(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=F(e)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(e).valueOf())},Ii.isBefore=function(t,e){var i=m(t)?t:ke(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=F(e)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(e).valueOf()<i.valueOf())},Ii.isBetween=function(t,e,i,n){var g=m(t)?t:ke(t),o=m(e)?e:ke(e);return!!(this.isValid()&&g.isValid()&&o.isValid())&&("("===(n=n||"()")[0]?this.isAfter(g,i):!this.isBefore(g,i))&&(")"===n[1]?this.isBefore(o,i):!this.isAfter(o,i))},Ii.isSame=function(t,e){var i,n=m(t)?t:ke(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=F(e)||"millisecond")?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(e).valueOf()<=i&&i<=this.clone().endOf(e).valueOf()))},Ii.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},Ii.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},Ii.isValid=function(){return d(this)},Ii.lang=Je,Ii.locale=He,Ii.localeData=Ke,Ii.max=De,Ii.min=Oe,Ii.parsingFlags=function(){return l({},u(this))},Ii.set=function(t,e){if("object"==typeof t)for(var i=function(t){var e=[];for(var i in t)e.push({unit:i,priority:S[i]});return e.sort((function(t,e){return t.priority-e.priority})),e}(t=R(t)),n=0;n<i.length;n++)this[i[n].unit](t[i[n].unit]);else if(_(this[t=F(t)]))return this[t](e);return this},Ii.startOf=function(t){var e;if(void 0===(t=F(t))||"millisecond"===t||!this.isValid())return this;var i=this._isUTC?ti:$e;switch(t){case"year":e=i(this.year(),0,1);break;case"quarter":e=i(this.year(),this.month()-this.month()%3,1);break;case"month":e=i(this.year(),this.month(),1);break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=i(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=qe(e+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":e=this._d.valueOf(),e-=qe(e,6e4);break;case"second":e=this._d.valueOf(),e-=qe(e,1e3)}return this._d.setTime(e),n.updateOffset(this,!0),this},Ii.subtract=Ve,Ii.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},Ii.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},Ii.toDate=function(){return new Date(this.valueOf())},Ii.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,i=e?this.clone().utc():this;return i.year()<0||i.year()>9999?U(i,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):_(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(i,"Z")):U(i,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Ii.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var i="["+t+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",g=e+'[")]';return this.format(i+n+"-MM-DD[T]HH:mm:ss.SSS"+g)},Ii.toJSON=function(){return this.isValid()?this.toISOString():null},Ii.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Ii.unix=function(){return Math.floor(this.valueOf()/1e3)},Ii.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Ii.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Ii.year=yt,Ii.isLeapYear=function(){return ft(this.year())},Ii.weekYear=function(t){return ii.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Ii.isoWeekYear=function(t){return ii.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},Ii.quarter=Ii.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},Ii.month=_t,Ii.daysInMonth=function(){return wt(this.year(),this.month())},Ii.week=Ii.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},Ii.isoWeek=Ii.isoWeeks=function(t){var e=Zt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},Ii.weeksInYear=function(){var t=this.localeData()._week;return zt(this.year(),t.dow,t.doy)},Ii.isoWeeksInYear=function(){return zt(this.year(),1,4)},Ii.date=gi,Ii.day=Ii.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=function(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-e,"d")):e},Ii.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},Ii.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=function(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7},Ii.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},Ii.hour=Ii.hours=$t,Ii.minute=Ii.minutes=oi,Ii.second=Ii.seconds=Ai,Ii.millisecond=Ii.milliseconds=Ci,Ii.utcOffset=function(t,e,i){var g,o=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=Fe(At,t)))return this}else Math.abs(t)<16&&!i&&(t*=60);return!this._isUTC&&e&&(g=Se(this)),this._offset=t,this._isUTC=!0,null!=g&&this.add(g,"m"),o!==t&&(!e||this._changeInProgress?Ue(this,Le(t-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Se(this)},Ii.utc=function(t){return this.utcOffset(0,t)},Ii.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Se(this),"m")),this},Ii.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=Fe(rt,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},Ii.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?ke(t).utcOffset():0,(this.utcOffset()-t)%60==0)},Ii.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Ii.isLocal=function(){return!!this.isValid()&&!this._isUTC},Ii.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Ii.isUtc=Ze,Ii.isUTC=Ze,Ii.zoneAbbr=function(){return this._isUTC?"UTC":""},Ii.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Ii.dates=O("dates accessor is deprecated. Use date instead.",gi),Ii.months=O("months accessor is deprecated. Use month instead",_t),Ii.years=O("years accessor is deprecated. Use year instead",yt),Ii.zone=O("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()})),Ii.isDSTShifted=O("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!A(this._isDSTShifted))return this._isDSTShifted;var t={};if(f(t,this),(t=xe(t))._a){var e=t._isUTC?c(t._a):ke(t._a);this._isDSTShifted=this.isValid()&&w(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}));var li=j.prototype;function ci(t,e,i,n){var g=Ae(),o=c().set(n,e);return g[i](o,t)}function ui(t,e,i){if(s(t)&&(e=t,t=void 0),t=t||"",null!=e)return ci(t,e,i,"month");var n,g=[];for(n=0;n<12;n++)g[n]=ci(t,n,i,"month");return g}function di(t,e,i,n){"boolean"==typeof t?(s(e)&&(i=e,e=void 0),e=e||""):(i=e=t,t=!1,s(e)&&(i=e,e=void 0),e=e||"");var g,o=Ae(),r=t?o._week.dow:0;if(null!=i)return ci(e,(i+r)%7,n,"day");var A=[];for(g=0;g<7;g++)A[g]=ci(e,(g+r)%7,n,"day");return A}li.calendar=function(t,e,i){var n=this._calendar[t]||this._calendar.sameElse;return _(n)?n.call(e,i):n},li.longDateFormat=function(t){var e=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return e||!i?e:(this._longDateFormat[t]=i.replace(/MMMM|MM|DD|dddd/g,(function(t){return t.slice(1)})),this._longDateFormat[t])},li.invalidDate=function(){return this._invalidDate},li.ordinal=function(t){return this._ordinal.replace("%d",t)},li.preparse=ai,li.postformat=ai,li.relativeTime=function(t,e,i,n){var g=this._relativeTime[i];return _(g)?g(t,e,i,n):g.replace(/%d/i,t)},li.pastFuture=function(t,e){var i=this._relativeTime[t>0?"future":"past"];return _(i)?i(e):i.replace(/%s/i,e)},li.set=function(t){var e,i;for(i in t)_(e=t[i])?this[i]=e:this["_"+i]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},li.months=function(t,e){return t?g(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||kt).test(e)?"format":"standalone"][t.month()]:g(this._months)?this._months:this._months.standalone},li.monthsShort=function(t,e){return t?g(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[kt.test(e)?"format":"standalone"][t.month()]:g(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},li.monthsParse=function(t,e,i){var n,g,o;if(this._monthsParseExact)return Mt.call(this,t,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(g=c([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(g,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(g,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(o="^"+this.months(g,"")+"|^"+this.monthsShort(g,""),this._monthsParse[n]=new RegExp(o.replace(".",""),"i")),i&&"MMMM"===e&&this._longMonthsParse[n].test(t))return n;if(i&&"MMM"===e&&this._shortMonthsParse[n].test(t))return n;if(!i&&this._monthsParse[n].test(t))return n}},li.monthsRegex=function(t){return this._monthsParseExact?(a(this,"_monthsRegex")||Et.call(this),t?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=jt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},li.monthsShortRegex=function(t){return this._monthsParseExact?(a(this,"_monthsRegex")||Et.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=Nt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},li.week=function(t){return Zt(t,this._week.dow,this._week.doy).week},li.firstDayOfYear=function(){return this._week.doy},li.firstDayOfWeek=function(){return this._week.dow},li.weekdays=function(t,e){var i=g(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Gt(i,this._week.dow):t?i[t.day()]:i},li.weekdaysMin=function(t){return!0===t?Gt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},li.weekdaysShort=function(t){return!0===t?Gt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},li.weekdaysParse=function(t,e,i){var n,g,o;if(this._weekdaysParseExact)return Pt.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(g=c([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(g,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(g,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(g,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(o="^"+this.weekdays(g,"")+"|^"+this.weekdaysShort(g,"")+"|^"+this.weekdaysMin(g,""),this._weekdaysParse[n]=new RegExp(o.replace(".",""),"i")),i&&"dddd"===e&&this._fullWeekdaysParse[n].test(t))return n;if(i&&"ddd"===e&&this._shortWeekdaysParse[n].test(t))return n;if(i&&"dd"===e&&this._minWeekdaysParse[n].test(t))return n;if(!i&&this._weekdaysParse[n].test(t))return n}},li.weekdaysRegex=function(t){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Xt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=Ut),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},li.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Xt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Yt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},li.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Xt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Vt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},li.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},li.meridiem=function(t,e,i){return t>11?i?"pm":"PM":i?"am":"AM"},oe("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===x(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),n.lang=O("moment.lang is deprecated. Use moment.locale instead.",oe),n.langData=O("moment.langData is deprecated. Use moment.localeData instead.",Ae);var hi=Math.abs;function pi(t,e,i,n){var g=Le(e,i);return t._milliseconds+=n*g._milliseconds,t._days+=n*g._days,t._months+=n*g._months,t._bubble()}function fi(t){return t<0?Math.floor(t):Math.ceil(t)}function vi(t){return 4800*t/146097}function yi(t){return 146097*t/4800}function mi(t){return function(){return this.as(t)}}var bi=mi("ms"),xi=mi("s"),wi=mi("m"),ki=mi("h"),Oi=mi("d"),Di=mi("w"),Mi=mi("M"),Ti=mi("Q"),_i=mi("y");function Ni(t){return function(){return this.isValid()?this._data[t]:NaN}}var ji=Ni("milliseconds"),Ei=Ni("seconds"),Bi=Ni("minutes"),Fi=Ni("hours"),Ri=Ni("days"),Si=Ni("months"),Zi=Ni("years"),zi=Math.round,Gi={ss:44,s:45,m:45,h:22,d:26,M:11};function Li(t,e,i,n,g){return g.relativeTime(e||1,!!i,t,n)}function Qi(t,e,i){var n=Le(t).abs(),g=zi(n.as("s")),o=zi(n.as("m")),r=zi(n.as("h")),A=zi(n.as("d")),s=zi(n.as("M")),C=zi(n.as("y")),I=g<=Gi.ss&&["s",g]||g<Gi.s&&["ss",g]||o<=1&&["m"]||o<Gi.m&&["mm",o]||r<=1&&["h"]||r<Gi.h&&["hh",r]||A<=1&&["d"]||A<Gi.d&&["dd",A]||s<=1&&["M"]||s<Gi.M&&["MM",s]||C<=1&&["y"]||["yy",C];return I[2]=e,I[3]=+t>0,I[4]=i,Li.apply(null,I)}var Wi=Math.abs;function Pi(t){return(t>0)-(t<0)||+t}function Ui(){if(!this.isValid())return this.localeData().invalidDate();var t,e,i=Wi(this._milliseconds)/1e3,n=Wi(this._days),g=Wi(this._months);t=b(i/60),e=b(t/60),i%=60,t%=60;var o=b(g/12),r=g%=12,A=n,s=e,C=t,I=i?i.toFixed(3).replace(/\.?0+$/,""):"",a=this.asSeconds();if(!a)return"P0D";var l=a<0?"-":"",c=Pi(this._months)!==Pi(a)?"-":"",u=Pi(this._days)!==Pi(a)?"-":"",d=Pi(this._milliseconds)!==Pi(a)?"-":"";return l+"P"+(o?c+o+"Y":"")+(r?c+r+"M":"")+(A?u+A+"D":"")+(s||C||I?"T":"")+(s?d+s+"H":"")+(C?d+C+"M":"")+(I?d+I+"S":"")}var Yi=_e.prototype;return Yi.isValid=function(){return this._isValid},Yi.abs=function(){var t=this._data;return this._milliseconds=hi(this._milliseconds),this._days=hi(this._days),this._months=hi(this._months),t.milliseconds=hi(t.milliseconds),t.seconds=hi(t.seconds),t.minutes=hi(t.minutes),t.hours=hi(t.hours),t.months=hi(t.months),t.years=hi(t.years),this},Yi.add=function(t,e){return pi(this,t,e,1)},Yi.subtract=function(t,e){return pi(this,t,e,-1)},Yi.as=function(t){if(!this.isValid())return NaN;var e,i,n=this._milliseconds;if("month"===(t=F(t))||"quarter"===t||"year"===t)switch(e=this._days+n/864e5,i=this._months+vi(e),t){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(e=this._days+Math.round(yi(this._months)),t){case"week":return e/7+n/6048e5;case"day":return e+n/864e5;case"hour":return 24*e+n/36e5;case"minute":return 1440*e+n/6e4;case"second":return 86400*e+n/1e3;case"millisecond":return Math.floor(864e5*e)+n;default:throw new Error("Unknown unit "+t)}},Yi.asMilliseconds=bi,Yi.asSeconds=xi,Yi.asMinutes=wi,Yi.asHours=ki,Yi.asDays=Oi,Yi.asWeeks=Di,Yi.asMonths=Mi,Yi.asQuarters=Ti,Yi.asYears=_i,Yi.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*x(this._months/12):NaN},Yi._bubble=function(){var t,e,i,n,g,o=this._milliseconds,r=this._days,A=this._months,s=this._data;return o>=0&&r>=0&&A>=0||o<=0&&r<=0&&A<=0||(o+=864e5*fi(yi(A)+r),r=0,A=0),s.milliseconds=o%1e3,t=b(o/1e3),s.seconds=t%60,e=b(t/60),s.minutes=e%60,i=b(e/60),s.hours=i%24,r+=b(i/24),g=b(vi(r)),A+=g,r-=fi(yi(g)),n=b(A/12),A%=12,s.days=r,s.months=A,s.years=n,this},Yi.clone=function(){return Le(this)},Yi.get=function(t){return t=F(t),this.isValid()?this[t+"s"]():NaN},Yi.milliseconds=ji,Yi.seconds=Ei,Yi.minutes=Bi,Yi.hours=Fi,Yi.days=Ri,Yi.weeks=function(){return b(this.days()/7)},Yi.months=Si,Yi.years=Zi,Yi.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),i=Qi(this,!t,e);return t&&(i=e.pastFuture(+this,i)),e.postformat(i)},Yi.toISOString=Ui,Yi.toString=Ui,Yi.toJSON=Ui,Yi.locale=He,Yi.localeData=Ke,Yi.toIsoString=O("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ui),Yi.lang=Je,P("X",0,0,"unix"),P("x",0,0,"valueOf"),It("x",ot),It("X",/[+-]?\d+(\.\d{1,3})?/),ut("X",(function(t,e,i){i._d=new Date(1e3*parseFloat(t,10))})),ut("x",(function(t,e,i){i._d=new Date(x(t))})),n.version="2.24.0",e=ke,n.fn=Ii,n.min=function(){var t=[].slice.call(arguments,0);return Me("isBefore",t)},n.max=function(){var t=[].slice.call(arguments,0);return Me("isAfter",t)},n.now=function(){return Date.now?Date.now():+new Date},n.utc=c,n.unix=function(t){return ke(1e3*t)},n.months=function(t,e){return ui(t,e,"months")},n.isDate=C,n.locale=oe,n.invalid=h,n.duration=Le,n.isMoment=m,n.weekdays=function(t,e,i){return di(t,e,i,"weekdays")},n.parseZone=function(){return ke.apply(null,arguments).parseZone()},n.localeData=Ae,n.isDuration=Ne,n.monthsShort=function(t,e){return ui(t,e,"monthsShort")},n.weekdaysMin=function(t,e,i){return di(t,e,i,"weekdaysMin")},n.defineLocale=re,n.updateLocale=function(t,e){if(null!=e){var i,n,g=te;null!=(n=ge(t))&&(g=n._config),(i=new j(e=N(g,e))).parentLocale=ee[t],ee[t]=i,oe(t)}else null!=ee[t]&&(null!=ee[t].parentLocale?ee[t]=ee[t].parentLocale:null!=ee[t]&&delete ee[t]);return ee[t]},n.locales=function(){return D(ee)},n.weekdaysShort=function(t,e,i){return di(t,e,i,"weekdaysShort")},n.normalizeUnits=F,n.relativeTimeRounding=function(t){return void 0===t?zi:"function"==typeof t&&(zi=t,!0)},n.relativeTimeThreshold=function(t,e){return void 0!==Gi[t]&&(void 0===e?Gi[t]:(Gi[t]=e,"s"===t&&(Gi.ss=e-1),!0))},n.calendarFormat=function(t,e){var i=t.diff(e,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},n.prototype=Ii,n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},n}()}));function WI(t,e){var i=jn(t);if(wn){var n=wn(t);e&&(n=bg(n).call(n,(function(e){return xn(t,e).enumerable}))),i.push.apply(i,n)}return i}function PI(t){var e=function(){if("undefined"==typeof Reflect||!xC)return!1;if(xC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(xC(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=HC(t);if(e){var g=HC(this).constructor;i=xC(n,arguments,g)}else i=n.apply(this,arguments);return VC(this,i)}}function UI(t){if(void 0===nn||null==Ke(t)){if(oo(t)||(t=function(t,e){var i;if(!t)return;if("string"==typeof t)return YI(t,e);var n=Vg(i=Object.prototype.toString.call(t)).call(i,8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return un(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return YI(t,e)}(t))){var e=0,i=function(){};return{s:i,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,g,o=!0,r=!1;return{s:function(){n=Je(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){r=!0,g=t},f:function(){try{o||null==n.return||n.return()}finally{if(r)throw g}}}}function YI(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var VI=function(){function t(e,i,n){var g,o,r;qs(this,t),this._source=e,this._transformers=i,this._target=n,this._listeners={add:et(g=this._add).call(g,this),remove:et(o=this._remove).call(o,this),update:et(r=this._update).call(r,this)}}return tC(t,[{key:"all",value:function(){return this._target.update(this._transformItems(this._source.get())),this}},{key:"start",value:function(){return this._source.on("add",this._listeners.add),this._source.on("remove",this._listeners.remove),this._source.on("update",this._listeners.update),this}},{key:"stop",value:function(){return this._source.off("add",this._listeners.add),this._source.off("remove",this._listeners.remove),this._source.off("update",this._listeners.update),this}},{key:"_transformItems",value:function(t){var e;return FI(e=this._transformers).call(e,(function(t,e){return e(t)}),t)}},{key:"_add",value:function(t,e){null!=e&&this._target.add(this._transformItems(this._source.get(e.items)))}},{key:"_update",value:function(t,e){null!=e&&this._target.update(this._transformItems(this._source.get(e.items)))}},{key:"_remove",value:function(t,e){null!=e&&this._target.remove(this._transformItems(e.oldData))}}]),t}(),XI=function(){function t(e){qs(this,t),this._source=e,this._transformers=[]}return tC(t,[{key:"filter",value:function(t){return this._transformers.push((function(e){return bg(e).call(e,t)})),this}},{key:"map",value:function(t){return this._transformers.push((function(e){return Ag(e).call(e,t)})),this}},{key:"flatMap",value:function(t){return this._transformers.push((function(e){return MI(e).call(e,t)})),this}},{key:"to",value:function(t){return new VI(this._source,this._transformers,t)}}]),t}(),HI=/^\/?Date\((-?\d+)/i;function JI(t){return QI.isMoment(t)}function KI(t,e){var i;if(void 0!==t){if(null===t)return null;if(!e)return t;if("string"!=typeof e&&!(e instanceof String))throw new Error("Type must be a string");switch(e){case"boolean":case"Boolean":return Boolean(t);case"number":case"Number":return Eo(t)&&!isNaN(Date.parse(t))?QI(t).valueOf():Number(t.valueOf());case"string":case"String":return String(t);case"Date":if(No(t))return new Date(t);if(t instanceof Date)return new Date(t.valueOf());if(JI(t))return new Date(t.valueOf());if(Eo(t))return(i=HI.exec(t))?new Date(Number(i[1])):QI(new Date(t)).toDate();throw new Error("Cannot convert object of type "+Lo(t)+" to type Date");case"Moment":if(No(t))return QI(t);if(t instanceof Date)return QI(t.valueOf());if(JI(t))return QI(t);if(Eo(t))return i=HI.exec(t),QI(i?Number(i[1]):t);throw new Error("Cannot convert object of type "+Lo(t)+" to type Date");case"ISODate":if(No(t))return new Date(t);if(t instanceof Date)return t.toISOString();if(JI(t))return t.toDate().toISOString();if(Eo(t))return(i=HI.exec(t))?new Date(Number(i[1])).toISOString():QI(t).format();throw new Error("Cannot convert object of type "+Lo(t)+" to type ISODate");case"ASPDate":if(No(t))return"/Date("+t+")/";if(t instanceof Date||JI(t))return"/Date("+t.valueOf()+")/";if(Eo(t))return"/Date("+((i=HI.exec(t))?new Date(Number(i[1])).valueOf():new Date(t).valueOf())+")/";throw new Error("Cannot convert object of type "+Lo(t)+" to type ASPDate");default:throw new Error("Unknown type ".concat(e))}}}function qI(t){return"string"==typeof t||"number"==typeof t}var $I=function(){function t(e){qs(this,t),this._queue=[],this._timeout=null,this._extended=null,this.delay=null,this.max=1/0,this.setOptions(e)}return tC(t,[{key:"setOptions",value:function(t){t&&void 0!==t.delay&&(this.delay=t.delay),t&&void 0!==t.max&&(this.max=t.max),this._flushIfNeeded()}},{key:"destroy",value:function(){if(this.flush(),this._extended){for(var t=this._extended.object,e=this._extended.methods,i=0;i<e.length;i++){var n=e[i];n.original?t[n.name]=n.original:delete t[n.name]}this._extended=null}}},{key:"replace",value:function(t,e){var i=this,n=t[e];if(!n)throw new Error("Method "+e+" undefined");t[e]=function(){for(var t=arguments.length,e=new Array(t),g=0;g<t;g++)e[g]=arguments[g];i.queue({args:e,fn:n,context:this})}}},{key:"queue",value:function(t){"function"==typeof t?this._queue.push({fn:t}):this._queue.push(t),this._flushIfNeeded()}},{key:"_flushIfNeeded",value:function(){var t=this;this._queue.length>this.max&&this.flush(),null!=this._timeout&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&"number"==typeof this.delay&&(this._timeout=AC((function(){t.flush()}),this.delay))}},{key:"flush",value:function(){var t,e;eg(t=mr(e=this._queue).call(e,0)).call(t,(function(t){t.fn.apply(t.context||t.fn,t.args||[])}))}}],[{key:"extend",value:function(e,i){var n=new t(i);if(void 0!==e.flush)throw new Error("Target object already has a property flush");e.flush=function(){n.flush()};var g=[{name:"flush",original:void 0}];if(i&&i.replace)for(var o=0;o<i.replace.length;o++){var r=i.replace[o];g.push({name:r,original:e[r]}),n.replace(e,r)}return n._extended={object:e,methods:g},n}}]),t}(),ta=function(){function t(){qs(this,t),this._subscribers={"*":[],add:[],remove:[],update:[]},this.subscribe=t.prototype.on,this.unsubscribe=t.prototype.off}return tC(t,[{key:"_trigger",value:function(t,e,i){var n,g;if("*"===t)throw new Error("Cannot trigger event *");eg(n=kg(g=[]).call(g,Yg(this._subscribers[t]),Yg(this._subscribers["*"]))).call(n,(function(n){n(t,e,null!=i?i:null)}))}},{key:"on",value:function(t,e){"function"==typeof e&&this._subscribers[t].push(e)}},{key:"off",value:function(t,e){var i;this._subscribers[t]=bg(i=this._subscribers[t]).call(i,(function(t){return t!==e}))}}]),t}(),ea=function(){function t(e){qs(this,t),this._pairs=e}return tC(t,[{key:xI,value:bI.mark((function t(){var e,i,n,g,o;return bI.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=UI(this._pairs),t.prev=1,e.s();case 3:if((i=e.n()).done){t.next=9;break}return n=po(i.value,2),g=n[0],o=n[1],t.next=7,[g,o];case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"entries",value:bI.mark((function t(){var e,i,n,g,o;return bI.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=UI(this._pairs),t.prev=1,e.s();case 3:if((i=e.n()).done){t.next=9;break}return n=po(i.value,2),g=n[0],o=n[1],t.next=7,[g,o];case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"keys",value:bI.mark((function t(){var e,i,n,g;return bI.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=UI(this._pairs),t.prev=1,e.s();case 3:if((i=e.n()).done){t.next=9;break}return n=po(i.value,1),g=n[0],t.next=7,g;case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"values",value:bI.mark((function t(){var e,i,n,g;return bI.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=UI(this._pairs),t.prev=1,e.s();case 3:if((i=e.n()).done){t.next=9;break}return n=po(i.value,2),g=n[1],t.next=7,g;case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"toIdArray",value:function(){var t;return Ag(t=Yg(this._pairs)).call(t,(function(t){return t[0]}))}},{key:"toItemArray",value:function(){var t;return Ag(t=Yg(this._pairs)).call(t,(function(t){return t[1]}))}},{key:"toEntryArray",value:function(){return Yg(this._pairs)}},{key:"toObjectMap",value:function(){var t,e=Dn(null),i=UI(this._pairs);try{for(i.s();!(t=i.n()).done;){var n=po(t.value,2),g=n[0],o=n[1];e[g]=o}}catch(t){i.e(t)}finally{i.f()}return e}},{key:"toMap",value:function(){return new mI(this._pairs)}},{key:"toIdSet",value:function(){return new yI(this.toIdArray())}},{key:"toItemSet",value:function(){return new yI(this.toItemArray())}},{key:"cache",value:function(){return new t(Yg(this._pairs))}},{key:"distinct",value:function(t){var e,i=new yI,n=UI(this._pairs);try{for(n.s();!(e=n.n()).done;){var g=po(e.value,2),o=g[0],r=g[1];i.add(t(r,o))}}catch(t){n.e(t)}finally{n.f()}return i}},{key:"filter",value:function(e){var i=this._pairs;return new t(Tn({},xI,bI.mark((function t(){var n,g,o,r,A;return bI.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=UI(i),t.prev=1,n.s();case 3:if((g=n.n()).done){t.next=10;break}if(o=po(g.value,2),r=o[0],A=o[1],!e(A,r)){t.next=8;break}return t.next=8,[r,A];case 8:t.next=3;break;case 10:t.next=15;break;case 12:t.prev=12,t.t0=t.catch(1),n.e(t.t0);case 15:return t.prev=15,n.f(),t.finish(15);case 18:case"end":return t.stop()}}),t,null,[[1,12,15,18]])}))))}},{key:"forEach",value:function(t){var e,i=UI(this._pairs);try{for(i.s();!(e=i.n()).done;){var n=po(e.value,2),g=n[0];t(n[1],g)}}catch(t){i.e(t)}finally{i.f()}}},{key:"map",value:function(e){var i=this._pairs;return new t(Tn({},xI,bI.mark((function t(){var n,g,o,r,A;return bI.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=UI(i),t.prev=1,n.s();case 3:if((g=n.n()).done){t.next=9;break}return o=po(g.value,2),r=o[0],A=o[1],t.next=7,[r,e(A,r)];case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),n.e(t.t0);case 14:return t.prev=14,n.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,null,[[1,11,14,17]])}))))}},{key:"max",value:function(t){var e=Je(this._pairs),i=e.next();if(i.done)return null;for(var n=i.value[1],g=t(i.value[1],i.value[0]);!(i=e.next()).done;){var o=po(i.value,2),r=o[0],A=o[1],s=t(A,r);s>g&&(g=s,n=A)}return n}},{key:"min",value:function(t){var e=Je(this._pairs),i=e.next();if(i.done)return null;for(var n=i.value[1],g=t(i.value[1],i.value[0]);!(i=e.next()).done;){var o=po(i.value,2),r=o[0],A=o[1],s=t(A,r);s<g&&(g=s,n=A)}return n}},{key:"reduce",value:function(t,e){var i,n=UI(this._pairs);try{for(n.s();!(i=n.n()).done;){var g=po(i.value,2),o=g[0];e=t(e,g[1],o)}}catch(t){n.e(t)}finally{n.f()}return e}},{key:"sort",value:function(e){var i=this;return new t(Tn({},xI,(function(){var t;return Je(nI(t=Yg(i._pairs)).call(t,(function(t,i){var n=po(t,2),g=n[0],o=n[1],r=po(i,2),A=r[0],s=r[1];return e(o,s,g,A)})))})))}}]),t}(),ia=function(){console.warn("Type coercion has been deprecated. Please, use data pipes instead. See https://visjs.github.io/vis-data/data/datapipe.html#TypeCoercion for more details with working migration example.")},na=function(t){YC(i,t);var e=PI(i);function i(t,n){var g;if(qs(this,i),g=e.call(this),t&&!oo(t)&&(n=t,t=[]),g._options=n||{},g._data=new mI,g.length=0,g._idProp=g._options.fieldId||"id",g._type={},g._options.type){ia();for(var o=jn(g._options.type),r=0,A=o.length;r<A;r++){var s=o[r],C=g._options.type[s];g._type[s]="Date"==C||"ISODate"==C||"ASPDate"==C?"Date":C}}return t&&t.length&&g.add(t),g.setOptions(n),g}return tC(i,[{key:"setOptions",value:function(t){t&&void 0!==t.queue&&(!1===t.queue?this._queue&&(this._queue.destroy(),delete this._queue):(this._queue||(this._queue=$I.extend(this,{replace:["add","update","remove"]})),t.queue&&"object"===lo(t.queue)&&this._queue.setOptions(t.queue)))}},{key:"add",value:function(t,e){var i,n=this,g=[];if(oo(t)){var o=Ag(t).call(t,(function(t){return t[n._idProp]}));if(cC(o).call(o,(function(t){return n._data.has(t)})))throw new Error("A duplicate id was found in the parameter array.");for(var r=0,A=t.length;r<A;r++)i=this._addItem(t[r]),g.push(i)}else{if(!t||"object"!==lo(t))throw new Error("Unknown dataType");i=this._addItem(t),g.push(i)}return g.length&&this._trigger("add",{items:g},e),g}},{key:"update",value:function(t,e){var i=this,n=[],g=[],o=[],r=[],A=this._idProp,s=function(t){var e=t[A];if(null!=e&&i._data.has(e)){var s=t,C=Co({},i._data.get(e)),I=i._updateItem(s);g.push(I),r.push(s),o.push(C)}else{var a=i._addItem(t);n.push(a)}};if(oo(t))for(var C=0,I=t.length;C<I;C++)t[C]&&"object"===lo(t[C])?s(t[C]):console.warn("Ignoring input item, which is not an object at index "+C);else{if(!t||"object"!==lo(t))throw new Error("Unknown dataType");s(t)}if(n.length&&this._trigger("add",{items:n},e),g.length){var a={items:g,oldData:o,data:r};this._trigger("update",a,e)}return kg(n).call(n,g)}},{key:"updateOnly",value:function(t,e){var i,n=this;oo(t)||(t=[t]);var g=Ag(i=Ag(t).call(t,(function(t){var e=n._data.get(t[n._idProp]);if(null==e)throw new Error("Updating non-existent items is not allowed.");return{oldData:e,update:t}}))).call(i,(function(t){var e=t.oldData,i=t.update,g=e[n._idProp],o=Go(Go({},e),i);return n._data.set(g,o),{id:g,oldData:e,updatedData:o}}));if(g.length){var o={items:Ag(g).call(g,(function(t){return t.id})),oldData:Ag(g).call(g,(function(t){return t.oldData})),data:Ag(g).call(g,(function(t){return t.updatedData}))};return this._trigger("update",o,e),o.items}return[]}},{key:"get",value:function(t,e){var i=void 0,n=void 0,g=void 0;qI(t)?(i=t,g=e):oo(t)?(n=t,g=e):g=t;var o=g&&"Object"===g.returnType?"Object":"Array",r=g&&g.type||this._options.type,A=g&&bg(g),s=[],C=null,I=null,a=null;if(null!=i)(C=this._getItem(i,r))&&A&&!A(C)&&(C=null);else if(null!=n)for(var l=0,c=n.length;l<c;l++)null==(C=this._getItem(n[l],r))||A&&!A(C)||s.push(C);else for(var u,d=0,h=(I=Yg(QC(u=this._data).call(u))).length;d<h;d++)a=I[d],null==(C=this._getItem(a,r))||A&&!A(C)||s.push(C);if(g&&g.order&&null==i&&this._sort(s,g.order),g&&g.fields){var p=g.fields;if(null!=i&&null!=C)C=this._filterFields(C,p);else for(var f=0,v=s.length;f<v;f++)s[f]=this._filterFields(s[f],p)}if("Object"==o){for(var y={},m=0,b=s.length;m<b;m++){var x=s[m];y[x[this._idProp]]=x}return y}return null!=i?C:s}},{key:"getIds",value:function(t){var e,i,n=this._data,g=t&&bg(t),o=t&&t.order,r=t&&t.type||this._options.type,A=Yg(QC(n).call(n)),s=[];if(g)if(o){i=[];for(var C=0,I=A.length;C<I;C++){var a=A[C];g(e=this._getItem(a,r))&&i.push(e)}this._sort(i,o);for(var l=0,c=i.length;l<c;l++)s.push(i[l][this._idProp])}else for(var u=0,d=A.length;u<d;u++){var h=A[u];g(e=this._getItem(h,r))&&s.push(e[this._idProp])}else if(o){i=[];for(var p=0,f=A.length;p<f;p++){var v=A[p];i.push(n.get(v))}this._sort(i,o);for(var y=0,m=i.length;y<m;y++)s.push(i[y][this._idProp])}else for(var b=0,x=A.length;b<x;b++){var w=A[b];e=n.get(w),s.push(e[this._idProp])}return s}},{key:"getDataSet",value:function(){return this}},{key:"forEach",value:function(t,e){var i=e&&bg(e),n=e&&e.type||this._options.type,g=this._data,o=Yg(QC(g).call(g));if(e&&e.order)for(var r=this.get(e),A=0,s=r.length;A<s;A++){var C=r[A];t(C,C[this._idProp])}else for(var I=0,a=o.length;I<a;I++){var l=o[I],c=this._getItem(l,n);i&&!i(c)||t(c,l)}}},{key:"map",value:function(t,e){for(var i=e&&bg(e),n=e&&e.type||this._options.type,g=[],o=this._data,r=Yg(QC(o).call(o)),A=0,s=r.length;A<s;A++){var C=r[A],I=this._getItem(C,n);i&&!i(I)||g.push(t(I,C))}return e&&e.order&&this._sort(g,e.order),g}},{key:"_filterFields",value:function(t,e){var i;return t?FI(i=oo(e)?e:jn(e)).call(i,(function(e,i){return e[i]=t[i],e}),{}):t}},{key:"_sort",value:function(t,e){if("string"==typeof e){var i=e;nI(t).call(t,(function(t,e){var n=t[i],g=e[i];return n>g?1:n<g?-1:0}))}else{if("function"!=typeof e)throw new TypeError("Order must be a function or a string");nI(t).call(t,e)}}},{key:"remove",value:function(t,e){for(var i=[],n=[],g=oo(t)?t:[t],o=0,r=g.length;o<r;o++){var A=this._remove(g[o]);if(A){var s=A[this._idProp];null!=s&&(i.push(s),n.push(A))}}return i.length&&this._trigger("remove",{items:i,oldData:n},e),i}},{key:"_remove",value:function(t){var e;if(qI(t)?e=t:t&&"object"===lo(t)&&(e=t[this._idProp]),null!=e&&this._data.has(e)){var i=this._data.get(e)||null;return this._data.delete(e),--this.length,i}return null}},{key:"clear",value:function(t){for(var e,i=Yg(QC(e=this._data).call(e)),n=[],g=0,o=i.length;g<o;g++)n.push(this._data.get(i[g]));return this._data.clear(),this.length=0,this._trigger("remove",{items:i,oldData:n},t),i}},{key:"max",value:function(t){var e,i,n=null,g=null,o=UI(ZC(e=this._data).call(e));try{for(o.s();!(i=o.n()).done;){var r=i.value,A=r[t];"number"==typeof A&&(null==g||A>g)&&(n=r,g=A)}}catch(t){o.e(t)}finally{o.f()}return n||null}},{key:"min",value:function(t){var e,i,n=null,g=null,o=UI(ZC(e=this._data).call(e));try{for(o.s();!(i=o.n()).done;){var r=i.value,A=r[t];"number"==typeof A&&(null==g||A<g)&&(n=r,g=A)}}catch(t){o.e(t)}finally{o.f()}return n||null}},{key:"distinct",value:function(t){for(var e=this._data,i=Yg(QC(e).call(e)),n=[],g=this._options.type&&this._options.type[t]||null,o=0,r=0,A=i.length;r<A;r++){for(var s=i[r],C=e.get(s)[t],I=!1,a=0;a<o;a++)if(n[a]==C){I=!0;break}I||void 0===C||(n[o]=C,o++)}if(g)for(var l=0,c=n.length;l<c;l++)n[l]=KI(n[l],g);return n}},{key:"_addItem",value:function(t){var e=t[this._idProp];if(null!=e){if(this._data.has(e))throw new Error("Cannot add item: item with id "+e+" already exists")}else e=LI(),t[this._idProp]=e;for(var i={},n=jn(t),g=0,o=n.length;g<o;g++){var r=n[g],A=this._type[r];i[r]=KI(t[r],A)}return this._data.set(e,i),++this.length,e}},{key:"_getItem",value:function(t,e){var i,n=this._data.get(t);if(!n)return null;var g=jn(n);if(e){ia(),i={};for(var o=0,r=g.length;o<r;o++){var A=g[o],s=n[A];i[A]=KI(s,e[A])}}else i=function(t){for(var e=1;e<arguments.length;e++){var i,n=null!=arguments[e]?arguments[e]:{};if(e%2)eg(i=WI(Object(n),!0)).call(i,(function(e){Tn(t,e,n[e])}));else if(vn)pn(t,vn(n));else{var g;eg(g=WI(Object(n))).call(g,(function(e){hn(t,e,xn(n,e))}))}}return t}({},n);return null==i[this._idProp]&&(i[this._idProp]=n.id),i}},{key:"_updateItem",value:function(t){var e=t[this._idProp];if(null==e)throw new Error("Cannot update item: item has no id (item: "+BC(t)+")");var i=this._data.get(e);if(!i)throw new Error("Cannot update item: no item with id "+e+" found");for(var n=jn(t),g=0,o=n.length;g<o;g++){var r=n[g],A=this._type[r];i[r]=KI(t[r],A)}return e}},{key:"stream",value:function(t){if(t){var e=this._data;return new ea(Tn({},xI,bI.mark((function i(){var n,g,o,r;return bI.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:n=UI(t),i.prev=1,n.s();case 3:if((g=n.n()).done){i.next=11;break}if(o=g.value,null==(r=e.get(o))){i.next=9;break}return i.next=9,[o,r];case 9:i.next=3;break;case 11:i.next=16;break;case 13:i.prev=13,i.t0=i.catch(1),n.e(i.t0);case 16:return i.prev=16,n.f(),i.finish(16);case 19:case"end":return i.stop()}}),i,null,[[1,13,16,19]])}))))}var i;return new ea(Tn({},xI,et(i=DC(this._data)).call(i,this._data)))}}]),i}(ta),ga=function(t){YC(i,t);var e=PI(i);function i(t,n){var g,o;return qs(this,i),(o=e.call(this)).length=0,o._ids=new yI,o._options=n||{},o._listener=et(g=o._onEvent).call(g,fC(o)),o.setData(t),o}return tC(i,[{key:"setData",value:function(t){if(this._data){this._data.off&&this._data.off("*",this._listener);var e=this._data.getIds({filter:bg(this._options)}),i=this._data.get(e);this._ids.clear(),this.length=0,this._trigger("remove",{items:e,oldData:i})}if(null!=t){this._data=t;for(var n=this._data.getIds({filter:bg(this._options)}),g=0,o=n.length;g<o;g++){var r=n[g];this._ids.add(r)}this.length=n.length,this._trigger("add",{items:n})}else this._data=new na;this._data.on&&this._data.on("*",this._listener)}},{key:"refresh",value:function(){for(var t=this._data.getIds({filter:bg(this._options)}),e=Yg(this._ids),i={},n=[],g=[],o=[],r=0,A=t.length;r<A;r++){var s=t[r];i[s]=!0,this._ids.has(s)||(n.push(s),this._ids.add(s))}for(var C=0,I=e.length;C<I;C++){var a=e[C],l=this._data.get(a);null==l?console.error("If you see this, report it please."):i[a]||(g.push(a),o.push(l),this._ids.delete(a))}this.length+=n.length-g.length,n.length&&this._trigger("add",{items:n}),g.length&&this._trigger("remove",{items:g,oldData:o})}},{key:"get",value:function(t,e){if(null==this._data)return null;var i,n=null;qI(t)||oo(t)?(n=t,i=e):i=t;var g=Co({},this._options,i),o=bg(this._options),r=i&&bg(i);return o&&r&&(g.filter=function(t){return o(t)&&r(t)}),null==n?this._data.get(g):this._data.get(n,g)}},{key:"getIds",value:function(t){if(this._data.length){var e,i=bg(this._options),n=null!=t?bg(t):null;return e=n?i?function(t){return i(t)&&n(t)}:n:i,this._data.getIds({filter:e,order:t&&t.order})}return[]}},{key:"forEach",value:function(t,e){if(this._data){var i,n,g=bg(this._options),o=e&&bg(e);n=o?g?function(t){return g(t)&&o(t)}:o:g,eg(i=this._data).call(i,t,{filter:n,order:e&&e.order})}}},{key:"map",value:function(t,e){if(this._data){var i,n,g=bg(this._options),o=e&&bg(e);return n=o?g?function(t){return g(t)&&o(t)}:o:g,Ag(i=this._data).call(i,t,{filter:n,order:e&&e.order})}return[]}},{key:"getDataSet",value:function(){return this._data.getDataSet()}},{key:"stream",value:function(t){var e;return this._data.stream(t||Tn({},xI,et(e=QC(this._ids)).call(e,this._ids)))}},{key:"dispose",value:function(){var t;(null===(t=this._data)||void 0===t?void 0:t.off)&&this._data.off("*",this._listener);var e="This data view has already been disposed of.";hn(this,"_data",{get:function(){throw new Error(e)},set:function(){throw new Error(e)},configurable:!1})}},{key:"_onEvent",value:function(t,e,i){if(e&&e.items&&this._data){var n=e.items,g=[],o=[],r=[],A=[],s=[],C=[];switch(t){case"add":for(var I=0,a=n.length;I<a;I++){var l=n[I];this.get(l)&&(this._ids.add(l),g.push(l))}break;case"update":for(var c=0,u=n.length;c<u;c++){var d=n[c];this.get(d)?this._ids.has(d)?(o.push(d),s.push(e.data[c]),A.push(e.oldData[c])):(this._ids.add(d),g.push(d)):this._ids.has(d)&&(this._ids.delete(d),r.push(d),C.push(e.oldData[c]))}break;case"remove":for(var h=0,p=n.length;h<p;h++){var f=n[h];this._ids.has(f)&&(this._ids.delete(f),r.push(f),C.push(e.oldData[h]))}}this.length+=g.length-r.length,g.length&&this._trigger("add",{items:g},i),o.length&&this._trigger("update",{items:o,oldData:A,data:s},i),r.length&&this._trigger("remove",{items:r,oldData:C},i)}}}]),i}(ta),oa=Object.freeze({__proto__:null,DataSet:na,DataStream:ea,DataView:ga,Queue:$I,createNewDataPipeFrom:function(t){return new XI(t)}}),ra=fi.f,Aa=C((function(){return!Object.getOwnPropertyNames(1)}));V({target:"Object",stat:!0,forced:Aa},{getOwnPropertyNames:ra});var sa=Z.Object,Ca=function(t){return sa.getOwnPropertyNames(t)},Ia=Zn.trim,aa=s.parseFloat,la=1/aa(En+"-0")!=-1/0?function(t){var e=Ia(String(t)),i=aa(e);return 0===i&&"-"==e.charAt(0)?-0:i}:aa;V({global:!0,forced:parseFloat!=la},{parseFloat:la});var ca=Z.parseFloat,ua=function(){function t(){qs(this,t)}return tC(t,null,[{key:"choosify",value:function(t,e){var i=["node","edge","label"],n=!0,g=cr(e,"chosen");if("boolean"==typeof g)n=g;else if("object"===lo(g)){if(-1===go(i).call(i,t))throw new Error("choosify: subOption '"+t+"' should be one of '"+i.join("', '")+"'");var o=cr(e,["chosen",t]);"boolean"!=typeof o&&"function"!=typeof o||(n=o)}return n}},{key:"pointInRect",value:function(t,e,i){if(t.width<=0||t.height<=0)return!1;if(void 0!==i){var n={x:e.x-i.x,y:e.y-i.y};if(0!==i.angle){var g=-i.angle;e={x:Math.cos(g)*n.x-Math.sin(g)*n.y,y:Math.sin(g)*n.x+Math.cos(g)*n.y}}else e=n}var o=t.x+t.width,r=t.y+t.width;return t.left<e.x&&o>e.x&&t.top<e.y&&r>e.y}},{key:"isValidLabel",value:function(t){return"string"==typeof t&&""!==t}},{key:"getSelfRefCoordinates",value:function(t,e,i,n){var g=n.x,o=n.y;if("function"==typeof n.distanceToBorder){var r=n.distanceToBorder(t,e),A=Math.sin(e)*r,s=Math.cos(e)*r;s===r?(g+=r,o=n.y):A===r?(g=n.x,o-=r):(g+=s,o-=A)}else n.shape.width>n.shape.height?(g=n.x+.5*n.shape.width,o=n.y-i):(g=n.x+i,o=n.y-.5*n.shape.height);return{x:g,y:o}}}]),t}(),da=function(){function t(e){qs(this,t),this.measureText=e,this.current=0,this.width=0,this.height=0,this.lines=[]}return tC(t,[{key:"_add",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"normal";void 0===this.lines[t]&&(this.lines[t]={width:0,height:0,blocks:[]});var n=e;void 0!==e&&""!==e||(n=" ");var g=this.measureText(n,i),o=Co({},ZC(g));o.text=e,o.width=g.width,o.mod=i,void 0!==e&&""!==e||(o.width=0),this.lines[t].blocks.push(o),this.lines[t].width+=o.width}},{key:"curWidth",value:function(){var t=this.lines[this.current];return void 0===t?0:t.width}},{key:"append",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal";this._add(this.current,t,e)}},{key:"newLine",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal";this._add(this.current,t,e),this.current++}},{key:"determineLineHeights",value:function(){for(var t=0;t<this.lines.length;t++){var e=this.lines[t],i=0;if(void 0!==e.blocks)for(var n=0;n<e.blocks.length;n++){var g=e.blocks[n];i<g.height&&(i=g.height)}e.height=i}}},{key:"determineLabelSize",value:function(){for(var t=0,e=0,i=0;i<this.lines.length;i++){var n=this.lines[i];n.width>t&&(t=n.width),e+=n.height}this.width=t,this.height=e}},{key:"removeEmptyBlocks",value:function(){for(var t=[],e=0;e<this.lines.length;e++){var i=this.lines[e];if(0!==i.blocks.length&&(e!==this.lines.length-1||0!==i.width)){var n={};Co(n,i),n.blocks=[];for(var g=void 0,o=[],r=0;r<i.blocks.length;r++){var A=i.blocks[r];0!==A.width?o.push(A):void 0===g&&(g=A)}0===o.length&&void 0!==g&&o.push(g),n.blocks=o,t.push(n)}}return t}},{key:"finalize",value:function(){this.determineLineHeights(),this.determineLabelSize();var t=this.removeEmptyBlocks();return{width:this.width,height:this.height,lines:t}}}]),t}(),ha={"<b>":/<b>/,"<i>":/<i>/,"<code>":/<code>/,"</b>":/<\/b>/,"</i>":/<\/i>/,"</code>":/<\/code>/,"*":/\*/,_:/\_/,"`":/`/,afterBold:/[^\*]/,afterItal:/[^_]/,afterMono:/[^`]/},pa=function(){function t(e){qs(this,t),this.text=e,this.bold=!1,this.ital=!1,this.mono=!1,this.spacing=!1,this.position=0,this.buffer="",this.modStack=[],this.blocks=[]}return tC(t,[{key:"mod",value:function(){return 0===this.modStack.length?"normal":this.modStack[0]}},{key:"modName",value:function(){return 0===this.modStack.length?"normal":"mono"===this.modStack[0]?"mono":this.bold&&this.ital?"boldital":this.bold?"bold":this.ital?"ital":void 0}},{key:"emitBlock",value:function(){this.spacing&&(this.add(" "),this.spacing=!1),this.buffer.length>0&&(this.blocks.push({text:this.buffer,mod:this.modName()}),this.buffer="")}},{key:"add",value:function(t){" "===t&&(this.spacing=!0),this.spacing&&(this.buffer+=" ",this.spacing=!1)," "!=t&&(this.buffer+=t)}},{key:"parseWS",value:function(t){return!!/[ \t]/.test(t)&&(this.mono?this.add(t):this.spacing=!0,!0)}},{key:"setTag",value:function(t){this.emitBlock(),this[t]=!0,this.modStack.unshift(t)}},{key:"unsetTag",value:function(t){this.emitBlock(),this[t]=!1,this.modStack.shift()}},{key:"parseStartTag",value:function(t,e){return!(this.mono||this[t]||!this.match(e))&&(this.setTag(t),!0)}},{key:"match",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.prepareRegExp(t),n=po(i,2),g=n[0],o=n[1],r=g.test(this.text.substr(this.position,o));return r&&e&&(this.position+=o-1),r}},{key:"parseEndTag",value:function(t,e,i){var n=this.mod()===t;return!(!(n="mono"===t?n&&this.mono:n&&!this.mono)||!this.match(e))&&(void 0!==i?(this.position===this.text.length-1||this.match(i,!1))&&this.unsetTag(t):this.unsetTag(t),!0)}},{key:"replace",value:function(t,e){return!!this.match(t)&&(this.add(e),this.position+=length-1,!0)}},{key:"prepareRegExp",value:function(t){var e,i;if(t instanceof RegExp)i=t,e=1;else{var n=ha[t];i=void 0!==n?n:new RegExp(t),e=t.length}return[i,e]}}]),t}(),fa=function(){function t(e,i,n,g){var o=this;qs(this,t),this.ctx=e,this.parent=i,this.selected=n,this.hover=g;this.lines=new da((function(t,i){if(void 0===t)return 0;var r=o.parent.getFormattingValues(e,n,g,i),A=0;""!==t&&(A=o.ctx.measureText(t).width);return{width:A,values:r}}))}return tC(t,[{key:"process",value:function(t){if(!ua.isValidLabel(t))return this.lines.finalize();var e=this.parent.fontOptions;t=(t=t.replace(/\r\n/g,"\n")).replace(/\r/g,"\n");var i=String(t).split("\n"),n=i.length;if(e.multi)for(var g=0;g<n;g++){var o=this.splitBlocks(i[g],e.multi);if(void 0!==o)if(0!==o.length){if(e.maxWdt>0)for(var r=0;r<o.length;r++){var A=o[r].mod,s=o[r].text;this.splitStringIntoLines(s,A,!0)}else for(var C=0;C<o.length;C++){var I=o[C].mod,a=o[C].text;this.lines.append(a,I)}this.lines.newLine()}else this.lines.newLine("")}else if(e.maxWdt>0)for(var l=0;l<n;l++)this.splitStringIntoLines(i[l]);else for(var c=0;c<n;c++)this.lines.newLine(i[c]);return this.lines.finalize()}},{key:"decodeMarkupSystem",value:function(t){var e="none";return"markdown"===t||"md"===t?e="markdown":!0!==t&&"html"!==t||(e="html"),e}},{key:"splitHtmlBlocks",value:function(t){for(var e=new pa(t),i=function(t){return!!/&/.test(t)&&(e.replace(e.text,"&lt;","<")||e.replace(e.text,"&amp;","&")||e.add("&"),!0)};e.position<e.text.length;){var n=e.text.charAt(e.position);e.parseWS(n)||/</.test(n)&&(e.parseStartTag("bold","<b>")||e.parseStartTag("ital","<i>")||e.parseStartTag("mono","<code>")||e.parseEndTag("bold","</b>")||e.parseEndTag("ital","</i>")||e.parseEndTag("mono","</code>"))||i(n)||e.add(n),e.position++}return e.emitBlock(),e.blocks}},{key:"splitMarkdownBlocks",value:function(t){for(var e=this,i=new pa(t),n=!0,g=function(t){return!!/\\/.test(t)&&(i.position<e.text.length+1&&(i.position++,t=e.text.charAt(i.position),/ \t/.test(t)?i.spacing=!0:(i.add(t),n=!1)),!0)};i.position<i.text.length;){var o=i.text.charAt(i.position);i.parseWS(o)||g(o)||(n||i.spacing)&&(i.parseStartTag("bold","*")||i.parseStartTag("ital","_")||i.parseStartTag("mono","`"))||i.parseEndTag("bold","*","afterBold")||i.parseEndTag("ital","_","afterItal")||i.parseEndTag("mono","`","afterMono")||(i.add(o),n=!1),i.position++}return i.emitBlock(),i.blocks}},{key:"splitBlocks",value:function(t,e){var i=this.decodeMarkupSystem(e);return"none"===i?[{text:t,mod:"normal"}]:"markdown"===i?this.splitMarkdownBlocks(t):"html"===i?this.splitHtmlBlocks(t):void 0}},{key:"overMaxWidth",value:function(t){var e=this.ctx.measureText(t).width;return this.lines.curWidth()+e>this.parent.fontOptions.maxWdt}},{key:"getLongestFit",value:function(t){for(var e="",i=0;i<t.length;){var n=e+(""===e?"":" ")+t[i];if(this.overMaxWidth(n))break;e=n,i++}return i}},{key:"getLongestFitWord",value:function(t){for(var e=0;e<t.length&&!this.overMaxWidth(Vg(t).call(t,0,e));)e++;return e}},{key:"splitStringIntoLines",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.parent.getFormattingValues(this.ctx,this.selected,this.hover,e);for(var n=(t=(t=t.replace(/^( +)/g,"$1\r")).replace(/([^\r][^ ]*)( +)/g,"$1\r$2\r")).split("\r");n.length>0;){var g=this.getLongestFit(n);if(0===g){var o=n[0],r=this.getLongestFitWord(o);this.lines.newLine(Vg(o).call(o,0,r),e),n[0]=Vg(o).call(o,r)}else{var A=g;" "===n[g-1]?g--:" "===n[A]&&A++;var s=Vg(n).call(n,0,g).join("");g==n.length&&i?this.lines.append(s,e):this.lines.newLine(s,e),n=Vg(n).call(n,A)}}}}]),t}(),va=["bold","ital","boldital","mono"],ya=function(){function t(e,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];qs(this,t),this.body=e,this.pointToSelf=!1,this.baseSize=void 0,this.fontOptions={},this.setOptions(i),this.size={top:0,left:0,width:0,height:0,yLine:0},this.isEdgeLabel=n}return tC(t,[{key:"setOptions",value:function(t){if(this.elementOptions=t,this.initFontOptions(t.font),ua.isValidLabel(t.label)?this.labelDirty=!0:t.label=void 0,void 0!==t.font&&null!==t.font)if("string"==typeof t.font)this.baseSize=this.fontOptions.size;else if("object"===lo(t.font)){var e=t.font.size;void 0!==e&&(this.baseSize=e)}}},{key:"initFontOptions",value:function(e){var i=this;Yo(va,(function(t){i.fontOptions[t]={}})),t.parseFontString(this.fontOptions,e)?this.fontOptions.vadjust=0:Yo(e,(function(t,e){null!=t&&"object"!==lo(t)&&(i.fontOptions[e]=t)}))}},{key:"constrain",value:function(t){var e={constrainWidth:!1,maxWdt:-1,minWdt:-1,constrainHeight:!1,minHgt:-1,valign:"middle"},i=cr(t,"widthConstraint");if("number"==typeof i)e.maxWdt=Number(i),e.minWdt=Number(i);else if("object"===lo(i)){var n=cr(t,["widthConstraint","maximum"]);"number"==typeof n&&(e.maxWdt=Number(n));var g=cr(t,["widthConstraint","minimum"]);"number"==typeof g&&(e.minWdt=Number(g))}var o=cr(t,"heightConstraint");if("number"==typeof o)e.minHgt=Number(o);else if("object"===lo(o)){var r=cr(t,["heightConstraint","minimum"]);"number"==typeof r&&(e.minHgt=Number(r));var A=cr(t,["heightConstraint","valign"]);"string"==typeof A&&("top"!==A&&"bottom"!==A||(e.valign=A))}return e}},{key:"update",value:function(t,e){this.setOptions(t,!0),this.propagateFonts(e),Go(this.fontOptions,this.constrain(e)),this.fontOptions.chooser=ua.choosify("label",e)}},{key:"adjustSizes",value:function(t){var e=t?t.right+t.left:0;this.fontOptions.constrainWidth&&(this.fontOptions.maxWdt-=e,this.fontOptions.minWdt-=e);var i=t?t.top+t.bottom:0;this.fontOptions.constrainHeight&&(this.fontOptions.minHgt-=i)}},{key:"addFontOptionsToPile",value:function(t,e){for(var i=0;i<e.length;++i)this.addFontToPile(t,e[i])}},{key:"addFontToPile",value:function(t,e){if(void 0!==e&&void 0!==e.font&&null!==e.font){var i=e.font;t.push(i)}}},{key:"getBasicOptions",value:function(e){for(var i={},n=0;n<e.length;++n){var g=e[n],o={};t.parseFontString(o,g)&&(g=o),Yo(g,(function(t,e){void 0!==t&&(i.hasOwnProperty(e)||(-1!==go(va).call(va,e)?i[e]={}:i[e]=t))}))}return i}},{key:"getFontOption",value:function(e,i,n){for(var g,o=0;o<e.length;++o){var r=e[o];if(r.hasOwnProperty(i)){if(null==(g=r[i]))continue;var A={};if(t.parseFontString(A,g)&&(g=A),g.hasOwnProperty(n))return g[n]}}if(this.fontOptions.hasOwnProperty(n))return this.fontOptions[n];throw new Error("Did not find value for multi-font for property: '"+n+"'")}},{key:"getFontOptions",value:function(t,e){for(var i={},n=["color","size","face","mod","vadjust"],g=0;g<n.length;++g){var o=n[g];i[o]=this.getFontOption(t,e,o)}return i}},{key:"propagateFonts",value:function(t){var e=this,i=[];this.addFontOptionsToPile(i,t),this.fontOptions=this.getBasicOptions(i);for(var n=function(t){var n=va[t],g=e.fontOptions[n];Yo(e.getFontOptions(i,n),(function(t,e){g[e]=t})),g.size=Number(g.size),g.vadjust=Number(g.vadjust)},g=0;g<va.length;++g)n(g)}},{key:"draw",value:function(t,e,i,n,g){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"middle";if(void 0!==this.elementOptions.label){var r=this.fontOptions.size*this.body.view.scale;this.elementOptions.label&&r<this.elementOptions.scaling.label.drawThreshold-1||(r>=this.elementOptions.scaling.label.maxVisible&&(r=Number(this.elementOptions.scaling.label.maxVisible)/this.body.view.scale),this.calculateLabelSize(t,n,g,e,i,o),this._drawBackground(t),this._drawText(t,e,this.size.yLine,o,r))}}},{key:"_drawBackground",value:function(t){if(void 0!==this.fontOptions.background&&"none"!==this.fontOptions.background){t.fillStyle=this.fontOptions.background;var e=this.getSize();t.fillRect(e.left,e.top,e.width,e.height)}}},{key:"_drawText",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"middle",g=arguments.length>4?arguments[4]:void 0,o=this._setAlignment(t,e,i,n),r=po(o,2);e=r[0],i=r[1],t.textAlign="left",e-=this.size.width/2,this.fontOptions.valign&&this.size.height>this.size.labelHeight&&("top"===this.fontOptions.valign&&(i-=(this.size.height-this.size.labelHeight)/2),"bottom"===this.fontOptions.valign&&(i+=(this.size.height-this.size.labelHeight)/2));for(var A=0;A<this.lineCount;A++){var s=this.lines[A];if(s&&s.blocks){var C=0;this.isEdgeLabel||"center"===this.fontOptions.align?C+=(this.size.width-s.width)/2:"right"===this.fontOptions.align&&(C+=this.size.width-s.width);for(var I=0;I<s.blocks.length;I++){var a=s.blocks[I];t.font=a.font;var l=this._getColor(a.color,g,a.strokeColor),c=po(l,2),u=c[0],d=c[1];a.strokeWidth>0&&(t.lineWidth=a.strokeWidth,t.strokeStyle=d,t.lineJoin="round"),t.fillStyle=u,a.strokeWidth>0&&t.strokeText(a.text,e+C,i+a.vadjust),t.fillText(a.text,e+C,i+a.vadjust),C+=a.width}i+=s.height}}}},{key:"_setAlignment",value:function(t,e,i,n){if(this.isEdgeLabel&&"horizontal"!==this.fontOptions.align&&!1===this.pointToSelf){e=0,i=0;"top"===this.fontOptions.align?(t.textBaseline="alphabetic",i-=4):"bottom"===this.fontOptions.align?(t.textBaseline="hanging",i+=4):t.textBaseline="middle"}else t.textBaseline=n;return[e,i]}},{key:"_getColor",value:function(t,e,i){var n=t||"#000000",g=i||"#ffffff";if(e<=this.elementOptions.scaling.label.drawThreshold){var o=Math.max(0,Math.min(1,1-(this.elementOptions.scaling.label.drawThreshold-e)));n=qo(n,o),g=qo(g,o)}return[n,g]}},{key:"getTextSize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this._processLabel(t,e,i),{width:this.size.width,height:this.size.height,lineCount:this.lineCount}}},{key:"getSize",value:function(){var t=this.size.left,e=this.size.top-1;if(this.isEdgeLabel){var i=.5*-this.size.width;switch(this.fontOptions.align){case"middle":t=i,e=.5*-this.size.height;break;case"top":t=i,e=-(this.size.height+2);break;case"bottom":t=i,e=2}}return{left:t,top:e,width:this.size.width,height:this.size.height}}},{key:"calculateLabelSize",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,g=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"middle";this._processLabel(t,e,i),this.size.left=n-.5*this.size.width,this.size.top=g-.5*this.size.height,this.size.yLine=g+.5*(1-this.lineCount)*this.fontOptions.size,"hanging"===o&&(this.size.top+=.5*this.fontOptions.size,this.size.top+=4,this.size.yLine+=4)}},{key:"getFormattingValues",value:function(t,e,i,n){var g=function(t,e,i){return"normal"===e?"mod"===i?"":t[i]:void 0!==t[e][i]?t[e][i]:t[i]},o={color:g(this.fontOptions,n,"color"),size:g(this.fontOptions,n,"size"),face:g(this.fontOptions,n,"face"),mod:g(this.fontOptions,n,"mod"),vadjust:g(this.fontOptions,n,"vadjust"),strokeWidth:this.fontOptions.strokeWidth,strokeColor:this.fontOptions.strokeColor};(e||i)&&("normal"===n&&!0===this.fontOptions.chooser&&this.elementOptions.labelHighlightBold?o.mod="bold":"function"==typeof this.fontOptions.chooser&&this.fontOptions.chooser(o,this.elementOptions.id,e,i));var r="";return void 0!==o.mod&&""!==o.mod&&(r+=o.mod+" "),r+=o.size+"px "+o.face,t.font=r.replace(/"/g,""),o.font=t.font,o.height=o.size,o}},{key:"differentState",value:function(t,e){return t!==this.selectedState||e!==this.hoverState}},{key:"_processLabelText",value:function(t,e,i,n){return new fa(t,this,e,i).process(n)}},{key:"_processLabel",value:function(t,e,i){if(!1!==this.labelDirty||this.differentState(e,i)){var n=this._processLabelText(t,e,i,this.elementOptions.label);this.fontOptions.minWdt>0&&n.width<this.fontOptions.minWdt&&(n.width=this.fontOptions.minWdt),this.size.labelHeight=n.height,this.fontOptions.minHgt>0&&n.height<this.fontOptions.minHgt&&(n.height=this.fontOptions.minHgt),this.lines=n.lines,this.lineCount=n.lines.length,this.size.width=n.width,this.size.height=n.height,this.selectedState=e,this.hoverState=i,this.labelDirty=!1}}},{key:"visible",value:function(){return 0!==this.size.width&&0!==this.size.height&&void 0!==this.elementOptions.label&&!(this.fontOptions.size*this.body.view.scale<this.elementOptions.scaling.label.drawThreshold-1)}}],[{key:"parseFontString",value:function(t,e){if(!e||"string"!=typeof e)return!1;var i=e.split(" ");return t.size=+i[0].replace("px",""),t.face=i[1],t.color=i[2],!0}}]),t}();V({target:"Array",proto:!0},{fill:function(t){for(var e=Ft(this),i=$t(e.length),n=arguments.length,g=ie(n>1?arguments[1]:void 0,i),o=n>2?arguments[2]:void 0,r=void 0===o?i:ie(o,i);r>g;)e[g++]=t;return e}});var ma=q("Array").fill,ba=Array.prototype,xa=function(t){var e=t.fill;return t===ba||t instanceof Array&&e===ba.fill?ma:e},wa=function(){function t(e,i,n){qs(this,t),this.body=i,this.labelModule=n,this.setOptions(e),this.top=void 0,this.left=void 0,this.height=void 0,this.width=void 0,this.radius=void 0,this.margin=void 0,this.refreshNeeded=!0,this.boundingBox={top:0,left:0,right:0,bottom:0}}return tC(t,[{key:"setOptions",value:function(t){this.options=t}},{key:"_setMargins",value:function(t){this.margin={},this.options.margin&&("object"==lo(this.options.margin)?(this.margin.top=this.options.margin.top,this.margin.right=this.options.margin.right,this.margin.bottom=this.options.margin.bottom,this.margin.left=this.options.margin.left):(this.margin.top=this.options.margin,this.margin.right=this.options.margin,this.margin.bottom=this.options.margin,this.margin.left=this.options.margin)),t.adjustSizes(this.margin)}},{key:"_distanceToBorder",value:function(t,e){var i=this.options.borderWidth;return t&&this.resize(t),Math.min(Math.abs(this.width/2/Math.cos(e)),Math.abs(this.height/2/Math.sin(e)))+i}},{key:"enableShadow",value:function(t,e){e.shadow&&(t.shadowColor=e.shadowColor,t.shadowBlur=e.shadowSize,t.shadowOffsetX=e.shadowX,t.shadowOffsetY=e.shadowY)}},{key:"disableShadow",value:function(t,e){e.shadow&&(t.shadowColor="rgba(0,0,0,0)",t.shadowBlur=0,t.shadowOffsetX=0,t.shadowOffsetY=0)}},{key:"enableBorderDashes",value:function(t,e){if(!1!==e.borderDashes)if(void 0!==t.setLineDash){var i=e.borderDashes;!0===i&&(i=[5,15]),t.setLineDash(i)}else console.warn("setLineDash is not supported in this browser. The dashed borders cannot be used."),this.options.shapeProperties.borderDashes=!1,e.borderDashes=!1}},{key:"disableBorderDashes",value:function(t,e){!1!==e.borderDashes&&(void 0!==t.setLineDash?t.setLineDash([0]):(console.warn("setLineDash is not supported in this browser. The dashed borders cannot be used."),this.options.shapeProperties.borderDashes=!1,e.borderDashes=!1))}},{key:"needsRefresh",value:function(t,e){return!0===this.refreshNeeded?(this.refreshNeeded=!1,!0):void 0===this.width||this.labelModule.differentState(t,e)}},{key:"initContextForDraw",value:function(t,e){var i=e.borderWidth/this.body.view.scale;t.lineWidth=Math.min(this.width,i),t.strokeStyle=e.borderColor,t.fillStyle=e.color}},{key:"performStroke",value:function(t,e){var i=e.borderWidth/this.body.view.scale;t.save(),i>0&&(this.enableBorderDashes(t,e),t.stroke(),this.disableBorderDashes(t,e)),t.restore()}},{key:"performFill",value:function(t,e){t.save(),t.fillStyle=e.color,this.enableShadow(t,e),xa(t).call(t),this.disableShadow(t,e),t.restore(),this.performStroke(t,e)}},{key:"_addBoundingBoxMargin",value:function(t){this.boundingBox.left-=t,this.boundingBox.top-=t,this.boundingBox.bottom+=t,this.boundingBox.right+=t}},{key:"_updateBoundingBox",value:function(t,e,i,n,g){void 0!==i&&this.resize(i,n,g),this.left=t-this.width/2,this.top=e-this.height/2,this.boundingBox.left=this.left,this.boundingBox.top=this.top,this.boundingBox.bottom=this.top+this.height,this.boundingBox.right=this.left+this.width}},{key:"updateBoundingBox",value:function(t,e,i,n,g){this._updateBoundingBox(t,e,i,n,g)}},{key:"getDimensionsFromLabel",value:function(t,e,i){this.textSize=this.labelModule.getTextSize(t,e,i);var n=this.textSize.width,g=this.textSize.height;return 0===n&&(n=14,g=14),{width:n,height:g}}}]),t}();function ka(t){var e=function(){if("undefined"==typeof Reflect||!xC)return!1;if(xC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(xC(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=HC(t);if(e){var g=HC(this).constructor;i=xC(n,arguments,g)}else i=n.apply(this,arguments);return VC(this,i)}}var Oa=function(t){YC(i,t);var e=ka(i);function i(t,n,g){var o;return qs(this,i),(o=e.call(this,t,n,g))._setMargins(g),o}return tC(i,[{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(this.needsRefresh(e,i)){var n=this.getDimensionsFromLabel(t,e,i);this.width=n.width+this.margin.right+this.margin.left,this.height=n.height+this.margin.top+this.margin.bottom,this.radius=this.width/2}}},{key:"draw",value:function(t,e,i,n,g,o){this.resize(t,n,g),this.left=e-this.width/2,this.top=i-this.height/2,this.initContextForDraw(t,o),nt(t,this.left,this.top,this.width,this.height,o.borderRadius),this.performFill(t,o),this.updateBoundingBox(e,i,t,n,g),this.labelModule.draw(t,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,n,g)}},{key:"updateBoundingBox",value:function(t,e,i,n,g){this._updateBoundingBox(t,e,i,n,g);var o=this.options.shapeProperties.borderRadius;this._addBoundingBoxMargin(o)}},{key:"distanceToBorder",value:function(t,e){t&&this.resize(t);var i=this.options.borderWidth;return Math.min(Math.abs(this.width/2/Math.cos(e)),Math.abs(this.height/2/Math.sin(e)))+i}}]),i}(wa);function Da(t){var e=function(){if("undefined"==typeof Reflect||!xC)return!1;if(xC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(xC(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=HC(t);if(e){var g=HC(this).constructor;i=xC(n,arguments,g)}else i=n.apply(this,arguments);return VC(this,i)}}var Ma=function(t){YC(i,t);var e=Da(i);function i(t,n,g){var o;return qs(this,i),(o=e.call(this,t,n,g)).labelOffset=0,o.selected=!1,o}return tC(i,[{key:"setOptions",value:function(t,e,i){this.options=t,void 0===e&&void 0===i||this.setImages(e,i)}},{key:"setImages",value:function(t,e){e&&this.selected?(this.imageObj=e,this.imageObjAlt=t):(this.imageObj=t,this.imageObjAlt=e)}},{key:"switchImages",value:function(t){var e=t&&!this.selected||!t&&this.selected;if(this.selected=t,void 0!==this.imageObjAlt&&e){var i=this.imageObj;this.imageObj=this.imageObjAlt,this.imageObjAlt=i}}},{key:"_getImagePadding",value:function(){var t={top:0,right:0,bottom:0,left:0};if(this.options.imagePadding){var e=this.options.imagePadding;"object"==lo(e)?(t.top=e.top,t.right=e.right,t.bottom=e.bottom,t.left=e.left):(t.top=e,t.right=e,t.bottom=e,t.left=e)}return t}},{key:"_resizeImage",value:function(){var t,e;if(!1===this.options.shapeProperties.useImageSize){var i=1,n=1;this.imageObj.width&&this.imageObj.height&&(this.imageObj.width>this.imageObj.height?i=this.imageObj.width/this.imageObj.height:n=this.imageObj.height/this.imageObj.width),t=2*this.options.size*i,e=2*this.options.size*n}else{var g=this._getImagePadding();t=this.imageObj.width+g.left+g.right,e=this.imageObj.height+g.top+g.bottom}this.width=t,this.height=e,this.radius=.5*this.width}},{key:"_drawRawCircle",value:function(t,e,i,n){this.initContextForDraw(t,n),it(t,e,i,n.size),this.performFill(t,n)}},{key:"_drawImageAtPosition",value:function(t,e){if(0!=this.imageObj.width){t.globalAlpha=void 0!==e.opacity?e.opacity:1,this.enableShadow(t,e);var i=1;!0===this.options.shapeProperties.interpolation&&(i=this.imageObj.width/this.width/this.body.view.scale);var n=this._getImagePadding(),g=this.left+n.left,o=this.top+n.top,r=this.width-n.left-n.right,A=this.height-n.top-n.bottom;this.imageObj.drawImageAtPosition(t,i,g,o,r,A),this.disableShadow(t,e)}}},{key:"_drawImageLabel",value:function(t,e,i,n,g){var o,r=0;if(void 0!==this.height){r=.5*this.height;var A=this.labelModule.getTextSize(t,n,g);A.lineCount>=1&&(r+=A.height/2)}o=i+r,this.options.label&&(this.labelOffset=r),this.labelModule.draw(t,e,o,n,g,"hanging")}}]),i}(wa);function Ta(t){var e=function(){if("undefined"==typeof Reflect||!xC)return!1;if(xC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(xC(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=HC(t);if(e){var g=HC(this).constructor;i=xC(n,arguments,g)}else i=n.apply(this,arguments);return VC(this,i)}}var _a=function(t){YC(i,t);var e=Ta(i);function i(t,n,g){var o;return qs(this,i),(o=e.call(this,t,n,g))._setMargins(g),o}return tC(i,[{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(this.needsRefresh(e,i)){var n=this.getDimensionsFromLabel(t,e,i),g=Math.max(n.width+this.margin.right+this.margin.left,n.height+this.margin.top+this.margin.bottom);this.options.size=g/2,this.width=g,this.height=g,this.radius=this.width/2}}},{key:"draw",value:function(t,e,i,n,g,o){this.resize(t,n,g),this.left=e-this.width/2,this.top=i-this.height/2,this._drawRawCircle(t,e,i,o),this.updateBoundingBox(e,i),this.labelModule.draw(t,this.left+this.textSize.width/2+this.margin.left,i,n,g)}},{key:"updateBoundingBox",value:function(t,e){this.boundingBox.top=e-this.options.size,this.boundingBox.left=t-this.options.size,this.boundingBox.right=t+this.options.size,this.boundingBox.bottom=e+this.options.size}},{key:"distanceToBorder",value:function(t,e){return t&&this.resize(t),.5*this.width}}]),i}(Ma);function Na(t){var e=function(){if("undefined"==typeof Reflect||!xC)return!1;if(xC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(xC(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=HC(t);if(e){var g=HC(this).constructor;i=xC(n,arguments,g)}else i=n.apply(this,arguments);return VC(this,i)}}var ja=function(t){YC(i,t);var e=Na(i);function i(t,n,g,o,r){var A;return qs(this,i),(A=e.call(this,t,n,g)).setImages(o,r),A}return tC(i,[{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover,n=void 0===this.imageObj.src||void 0===this.imageObj.width||void 0===this.imageObj.height;if(n){var g=2*this.options.size;return this.width=g,this.height=g,void(this.radius=.5*this.width)}this.needsRefresh(e,i)&&this._resizeImage()}},{key:"draw",value:function(t,e,i,n,g,o){this.switchImages(n),this.resize(),this.left=e-this.width/2,this.top=i-this.height/2,this._drawRawCircle(t,e,i,o),t.save(),t.clip(),this._drawImageAtPosition(t,o),t.restore(),this._drawImageLabel(t,e,i,n,g),this.updateBoundingBox(e,i)}},{key:"updateBoundingBox",value:function(t,e){this.boundingBox.top=e-this.options.size,this.boundingBox.left=t-this.options.size,this.boundingBox.right=t+this.options.size,this.boundingBox.bottom=e+this.options.size,this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset)}},{key:"distanceToBorder",value:function(t,e){return t&&this.resize(t),.5*this.width}}]),i}(Ma);function Ea(t){var e=function(){if("undefined"==typeof Reflect||!xC)return!1;if(xC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(xC(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=HC(t);if(e){var g=HC(this).constructor;i=xC(n,arguments,g)}else i=n.apply(this,arguments);return VC(this,i)}}var Ba=function(t){YC(i,t);var e=Ea(i);function i(t,n,g){var o;return qs(this,i),(o=e.call(this,t,n,g))._setMargins(g),o}return tC(i,[{key:"resize",value:function(t,e,i){if(this.needsRefresh(e,i)){var n=this.getDimensionsFromLabel(t,e,i).width+this.margin.right+this.margin.left;this.width=n,this.height=n,this.radius=this.width/2}}},{key:"draw",value:function(t,e,i,n,g,o){this.resize(t,n,g),this.left=e-this.width/2,this.top=i-this.height/2,this.initContextForDraw(t,o),ot(t,e-this.width/2,i-this.height/2,this.width,this.height),this.performFill(t,o),this.updateBoundingBox(e,i,t,n,g),this.labelModule.draw(t,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,n,g)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(wa);function Fa(t){var e=function(){if("undefined"==typeof Reflect||!xC)return!1;if(xC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(xC(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=HC(t);if(e){var g=HC(this).constructor;i=xC(n,arguments,g)}else i=n.apply(this,arguments);return VC(this,i)}}var Ra=function(t){YC(i,t);var e=Fa(i);function i(t,n,g){return qs(this,i),e.call(this,t,n,g)}return tC(i,[{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{size:this.options.size};if(this.needsRefresh(e,i)){this.labelModule.getTextSize(t,e,i);var g=2*n.size;this.width=g,this.height=g,this.radius=.5*this.width}}},{key:"_drawShape",value:function(t,e,i,n,g,o,r,A){var s;if(this.resize(t,o,r,A),this.left=n-this.width/2,this.top=g-this.height/2,this.initContextForDraw(t,A),(s=e,Object.prototype.hasOwnProperty.call(At,s)?At[s]:function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];CanvasRenderingContext2D.prototype[s].call(t,i)})(t,n,g,A.size),this.performFill(t,A),void 0!==this.options.icon&&void 0!==this.options.icon.code&&(t.font=(o?"bold ":"")+this.height/2+"px "+(this.options.icon.face||"FontAwesome"),t.fillStyle=this.options.icon.color||"black",t.textAlign="center",t.textBaseline="middle",t.fillText(this.options.icon.code,n,g)),void 0!==this.options.label){this.labelModule.calculateLabelSize(t,o,r,n,g,"hanging");var C=g+.5*this.height+.5*this.labelModule.size.height;this.labelModule.draw(t,n,C,o,r,"hanging")}this.updateBoundingBox(n,g)}},{key:"updateBoundingBox",value:function(t,e){this.boundingBox.top=e-this.options.size,this.boundingBox.left=t-this.options.size,this.boundingBox.right=t+this.options.size,this.boundingBox.bottom=e+this.options.size,void 0!==this.options.label&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height))}}]),i}(wa);function Sa(t){var e=function(){if("undefined"==typeof Reflect||!xC)return!1;if(xC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(xC(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=HC(t);if(e){var g=HC(this).constructor;i=xC(n,arguments,g)}else i=n.apply(this,arguments);return VC(this,i)}}var Za=function(t){YC(i,t);var e=Sa(i);function i(t,n,g){return qs(this,i),e.call(this,t,n,g)}return tC(i,[{key:"draw",value:function(t,e,i,n,g,o){this._drawShape(t,"diamond",4,e,i,n,g,o)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(Ra);function za(t){var e=function(){if("undefined"==typeof Reflect||!xC)return!1;if(xC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(xC(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=HC(t);if(e){var g=HC(this).constructor;i=xC(n,arguments,g)}else i=n.apply(this,arguments);return VC(this,i)}}var Ga=function(t){YC(i,t);var e=za(i);function i(t,n,g){return qs(this,i),e.call(this,t,n,g)}return tC(i,[{key:"draw",value:function(t,e,i,n,g,o){this._drawShape(t,"circle",2,e,i,n,g,o)}},{key:"distanceToBorder",value:function(t,e){return t&&this.resize(t),this.options.size}}]),i}(Ra);function La(t){var e=function(){if("undefined"==typeof Reflect||!xC)return!1;if(xC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(xC(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=HC(t);if(e){var g=HC(this).constructor;i=xC(n,arguments,g)}else i=n.apply(this,arguments);return VC(this,i)}}var Qa=function(t){YC(i,t);var e=La(i);function i(t,n,g){return qs(this,i),e.call(this,t,n,g)}return tC(i,[{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(this.needsRefresh(e,i)){var n=this.getDimensionsFromLabel(t,e,i);this.height=2*n.height,this.width=n.width+n.height,this.radius=.5*this.width}}},{key:"draw",value:function(t,e,i,n,g,o){this.resize(t,n,g),this.left=e-.5*this.width,this.top=i-.5*this.height,this.initContextForDraw(t,o),gt(t,this.left,this.top,this.width,this.height),this.performFill(t,o),this.updateBoundingBox(e,i,t,n,g),this.labelModule.draw(t,e,i,n,g)}},{key:"distanceToBorder",value:function(t,e){t&&this.resize(t);var i=.5*this.width,n=.5*this.height,g=Math.sin(e)*i,o=Math.cos(e)*n;return i*n/Math.sqrt(g*g+o*o)}}]),i}(wa);function Wa(t){var e=function(){if("undefined"==typeof Reflect||!xC)return!1;if(xC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(xC(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=HC(t);if(e){var g=HC(this).constructor;i=xC(n,arguments,g)}else i=n.apply(this,arguments);return VC(this,i)}}var Pa=function(t){YC(i,t);var e=Wa(i);function i(t,n,g){var o;return qs(this,i),(o=e.call(this,t,n,g))._setMargins(g),o}return tC(i,[{key:"resize",value:function(t,e,i){this.needsRefresh(e,i)&&(this.iconSize={width:Number(this.options.icon.size),height:Number(this.options.icon.size)},this.width=this.iconSize.width+this.margin.right+this.margin.left,this.height=this.iconSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}},{key:"draw",value:function(t,e,i,n,g,o){if(this.resize(t,n,g),this.options.icon.size=this.options.icon.size||50,this.left=e-this.width/2,this.top=i-this.height/2,this._icon(t,e,i,n,g,o),void 0!==this.options.label){this.labelModule.draw(t,this.left+this.iconSize.width/2+this.margin.left,i+this.height/2+5,n)}this.updateBoundingBox(e,i)}},{key:"updateBoundingBox",value:function(t,e){if(this.boundingBox.top=e-.5*this.options.icon.size,this.boundingBox.left=t-.5*this.options.icon.size,this.boundingBox.right=t+.5*this.options.icon.size,this.boundingBox.bottom=e+.5*this.options.icon.size,void 0!==this.options.label&&this.labelModule.size.width>0){this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height+5)}}},{key:"_icon",value:function(t,e,i,n,g,o){var r=Number(this.options.icon.size);void 0!==this.options.icon.code?(t.font=[null!=this.options.icon.weight?this.options.icon.weight:n?"bold":"",(null!=this.options.icon.weight&&n?5:0)+r+"px",this.options.icon.face].join(" "),t.fillStyle=this.options.icon.color||"black",t.textAlign="center",t.textBaseline="middle",this.enableShadow(t,o),t.fillText(this.options.icon.code,e,i),this.disableShadow(t,o)):console.error("When using the icon shape, you need to define the code in the icon options object. This can be done per node or globally.")}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(wa);function Ua(t){var e=function(){if("undefined"==typeof Reflect||!xC)return!1;if(xC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(xC(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=HC(t);if(e){var g=HC(this).constructor;i=xC(n,arguments,g)}else i=n.apply(this,arguments);return VC(this,i)}}var Ya=function(t){YC(i,t);var e=Ua(i);function i(t,n,g,o,r){var A;return qs(this,i),(A=e.call(this,t,n,g)).setImages(o,r),A}return tC(i,[{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover,n=void 0===this.imageObj.src||void 0===this.imageObj.width||void 0===this.imageObj.height;if(n){var g=2*this.options.size;return this.width=g,void(this.height=g)}this.needsRefresh(e,i)&&this._resizeImage()}},{key:"draw",value:function(t,e,i,n,g,o){if(t.save(),this.switchImages(n),this.resize(),this.left=e-this.width/2,this.top=i-this.height/2,!0===this.options.shapeProperties.useBorderWithImage){var r=this.options.borderWidth,A=this.options.borderWidthSelected||2*this.options.borderWidth,s=(n?A:r)/this.body.view.scale;t.lineWidth=Math.min(this.width,s),t.beginPath();var C=n?this.options.color.highlight.border:g?this.options.color.hover.border:this.options.color.border,I=n?this.options.color.highlight.background:g?this.options.color.hover.background:this.options.color.background;void 0!==o.opacity&&(C=qo(C,o.opacity),I=qo(I,o.opacity)),t.strokeStyle=C,t.fillStyle=I,t.rect(this.left-.5*t.lineWidth,this.top-.5*t.lineWidth,this.width+t.lineWidth,this.height+t.lineWidth),xa(t).call(t),this.performStroke(t,o),t.closePath()}this._drawImageAtPosition(t,o),this._drawImageLabel(t,e,i,n,g),this.updateBoundingBox(e,i),t.restore()}},{key:"updateBoundingBox",value:function(t,e){this.resize(),this._updateBoundingBox(t,e),void 0!==this.options.label&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset))}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(Ma);function Va(t){var e=function(){if("undefined"==typeof Reflect||!xC)return!1;if(xC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(xC(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=HC(t);if(e){var g=HC(this).constructor;i=xC(n,arguments,g)}else i=n.apply(this,arguments);return VC(this,i)}}var Xa=function(t){YC(i,t);var e=Va(i);function i(t,n,g){return qs(this,i),e.call(this,t,n,g)}return tC(i,[{key:"draw",value:function(t,e,i,n,g,o){this._drawShape(t,"square",2,e,i,n,g,o)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(Ra);function Ha(t){var e=function(){if("undefined"==typeof Reflect||!xC)return!1;if(xC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(xC(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=HC(t);if(e){var g=HC(this).constructor;i=xC(n,arguments,g)}else i=n.apply(this,arguments);return VC(this,i)}}var Ja=function(t){YC(i,t);var e=Ha(i);function i(t,n,g){return qs(this,i),e.call(this,t,n,g)}return tC(i,[{key:"draw",value:function(t,e,i,n,g,o){this._drawShape(t,"hexagon",4,e,i,n,g,o)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(Ra);function Ka(t){var e=function(){if("undefined"==typeof Reflect||!xC)return!1;if(xC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(xC(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=HC(t);if(e){var g=HC(this).constructor;i=xC(n,arguments,g)}else i=n.apply(this,arguments);return VC(this,i)}}var qa=function(t){YC(i,t);var e=Ka(i);function i(t,n,g){return qs(this,i),e.call(this,t,n,g)}return tC(i,[{key:"draw",value:function(t,e,i,n,g,o){this._drawShape(t,"star",4,e,i,n,g,o)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(Ra);function $a(t){var e=function(){if("undefined"==typeof Reflect||!xC)return!1;if(xC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(xC(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=HC(t);if(e){var g=HC(this).constructor;i=xC(n,arguments,g)}else i=n.apply(this,arguments);return VC(this,i)}}var tl=function(t){YC(i,t);var e=$a(i);function i(t,n,g){var o;return qs(this,i),(o=e.call(this,t,n,g))._setMargins(g),o}return tC(i,[{key:"resize",value:function(t,e,i){this.needsRefresh(e,i)&&(this.textSize=this.labelModule.getTextSize(t,e,i),this.width=this.textSize.width+this.margin.right+this.margin.left,this.height=this.textSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}},{key:"draw",value:function(t,e,i,n,g,o){this.resize(t,n,g),this.left=e-this.width/2,this.top=i-this.height/2,this.enableShadow(t,o),this.labelModule.draw(t,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,n,g),this.disableShadow(t,o),this.updateBoundingBox(e,i,t,n,g)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(wa);function el(t){var e=function(){if("undefined"==typeof Reflect||!xC)return!1;if(xC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(xC(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=HC(t);if(e){var g=HC(this).constructor;i=xC(n,arguments,g)}else i=n.apply(this,arguments);return VC(this,i)}}var il=function(t){YC(i,t);var e=el(i);function i(t,n,g){return qs(this,i),e.call(this,t,n,g)}return tC(i,[{key:"draw",value:function(t,e,i,n,g,o){this._drawShape(t,"triangle",3,e,i,n,g,o)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(Ra);function nl(t){var e=function(){if("undefined"==typeof Reflect||!xC)return!1;if(xC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(xC(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=HC(t);if(e){var g=HC(this).constructor;i=xC(n,arguments,g)}else i=n.apply(this,arguments);return VC(this,i)}}var gl,ol=function(t){YC(i,t);var e=nl(i);function i(t,n,g){return qs(this,i),e.call(this,t,n,g)}return tC(i,[{key:"draw",value:function(t,e,i,n,g,o){this._drawShape(t,"triangleDown",3,e,i,n,g,o)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(Ra),rl=!1,Al="background: #FFeeee; color: #dd0000",sl=function(){function t(){qs(this,t)}return tC(t,null,[{key:"validate",value:function(e,i,n){rl=!1,gl=i;var g=i;return void 0!==n&&(g=i[n]),t.parse(e,g,[]),rl}},{key:"parse",value:function(e,i,n){for(var g in e)e.hasOwnProperty(g)&&t.check(g,e,i,n)}},{key:"check",value:function(e,i,n,g){if(void 0!==n[e]||void 0!==n.__any__){var o=e,r=!0;void 0===n[e]&&void 0!==n.__any__&&(o="__any__",r="object"===t.getType(i[e]));var A=n[o];r&&void 0!==A.__type__&&(A=A.__type__),t.checkFields(e,i,n,o,A,g)}else t.getSuggestion(e,n,g)}},{key:"checkFields",value:function(e,i,n,g,o,r){var A=function(i){console.log("%c"+i+t.printLocation(r,e),Al)},s=t.getType(i[e]),C=o[s];void 0!==C?"array"===t.getType(C)&&-1===go(C).call(C,i[e])?(A('Invalid option detected in "'+e+'". Allowed values are:'+t.print(C)+' not "'+i[e]+'". '),rl=!0):"object"===s&&"__any__"!==g&&(r=Qo(r,e),t.parse(i[e],n[g],r)):void 0===o.any&&(A('Invalid type received for "'+e+'". Expected: '+t.print(jn(o))+". Received ["+s+'] "'+i[e]+'"'),rl=!0)}},{key:"getType",value:function(t){var e=lo(t);return"object"===e?null===t?"null":t instanceof Boolean?"boolean":t instanceof Number?"number":t instanceof String?"string":oo(t)?"array":t instanceof Date?"date":void 0!==t.nodeType?"dom":!0===t._isAMomentObject?"moment":"object":"number"===e?"number":"boolean"===e?"boolean":"string"===e?"string":void 0===e?"undefined":e}},{key:"getSuggestion",value:function(e,i,n){var g,o=t.findInOptions(e,i,n,!1),r=t.findInOptions(e,gl,[],!0);g=void 0!==o.indexMatch?" in "+t.printLocation(o.path,e,"")+'Perhaps it was incomplete? Did you mean: "'+o.indexMatch+'"?\n\n':r.distance<=4&&o.distance>r.distance?" in "+t.printLocation(o.path,e,"")+"Perhaps it was misplaced? Matching option found at: "+t.printLocation(r.path,r.closestMatch,""):o.distance<=8?'. Did you mean "'+o.closestMatch+'"?'+t.printLocation(o.path,e):". Did you mean one of these: "+t.print(jn(i))+t.printLocation(n,e),console.log('%cUnknown option detected: "'+e+'"'+g,Al),rl=!0}},{key:"findInOptions",value:function(e,i,n){var g=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=1e9,r="",A=[],s=e.toLowerCase(),C=void 0;for(var I in i){var a=void 0;if(void 0!==i[I].__type__&&!0===g){var l=t.findInOptions(e,i[I],Qo(n,I));o>l.distance&&(r=l.closestMatch,A=l.path,o=l.distance,C=l.indexMatch)}else{var c;-1!==go(c=I.toLowerCase()).call(c,s)&&(C=I),o>(a=t.levenshteinDistance(e,I))&&(r=I,A=Wo(n),o=a)}}return{closestMatch:r,path:A,distance:o,indexMatch:C}}},{key:"printLocation",value:function(t,e){for(var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Problem value found at: \n",n="\n\n"+i+"options = {\n",g=0;g<t.length;g++){for(var o=0;o<g+1;o++)n+="  ";n+=t[g]+": {\n"}for(var r=0;r<t.length+1;r++)n+="  ";n+=e+"\n";for(var A=0;A<t.length+1;A++){for(var s=0;s<t.length-A;s++)n+="  ";n+="}\n"}return n+"\n\n"}},{key:"print",value:function(t){return BC(t).replace(/(\")|(\[)|(\])|(,"__type__")/g,"").replace(/(\,)/g,", ")}},{key:"levenshteinDistance",value:function(t,e){if(0===t.length)return e.length;if(0===e.length)return t.length;var i,n,g=[];for(i=0;i<=e.length;i++)g[i]=[i];for(n=0;n<=t.length;n++)g[0][n]=n;for(i=1;i<=e.length;i++)for(n=1;n<=t.length;n++)e.charAt(i-1)==t.charAt(n-1)?g[i][n]=g[i-1][n-1]:g[i][n]=Math.min(g[i-1][n-1]+1,Math.min(g[i][n-1]+1,g[i-1][n]+1));return g[e.length][t.length]}}]),t}();function Cl(t,e){var i=jn(t);if(wn){var n=wn(t);e&&(n=bg(n).call(n,(function(e){return xn(t,e).enumerable}))),i.push.apply(i,n)}return i}function Il(t){for(var e=1;e<arguments.length;e++){var i,n=null!=arguments[e]?arguments[e]:{};if(e%2)eg(i=Cl(Object(n),!0)).call(i,(function(e){Tn(t,e,n[e])}));else if(vn)pn(t,vn(n));else{var g;eg(g=Cl(Object(n))).call(g,(function(e){hn(t,e,xn(n,e))}))}}return t}var al=function(){function t(e,i,n,g,o,r){qs(this,t),this.options=Ir(o),this.globalOptions=o,this.defaultOptions=r,this.body=i,this.edges=[],this.id=void 0,this.imagelist=n,this.grouplist=g,this.x=void 0,this.y=void 0,this.baseSize=this.options.size,this.baseFontSize=this.options.font.size,this.predefinedPosition=!1,this.selected=!1,this.hover=!1,this.labelModule=new ya(this.body,this.options,!1),this.setOptions(e)}return tC(t,[{key:"attachEdge",value:function(t){var e;-1===go(e=this.edges).call(e,t)&&this.edges.push(t)}},{key:"detachEdge",value:function(t){var e,i,n=go(e=this.edges).call(e,t);-1!=n&&mr(i=this.edges).call(i,n,1)}},{key:"setOptions",value:function(e){var i=this.options.shape;if(e){if(void 0!==e.color&&(this._localColor=e.color),void 0!==e.id&&(this.id=e.id),void 0===this.id)throw new Error("Node must have an id");t.checkMass(e,this.id),void 0!==e.x&&(null===e.x?(this.x=void 0,this.predefinedPosition=!1):(this.x=lg(e.x),this.predefinedPosition=!0)),void 0!==e.y&&(null===e.y?(this.y=void 0,this.predefinedPosition=!1):(this.y=lg(e.y),this.predefinedPosition=!0)),void 0!==e.size&&(this.baseSize=e.size),void 0!==e.value&&(e.value=ca(e.value)),t.parseOptions(this.options,e,!0,this.globalOptions,this.grouplist);var n=[e,this.options,this.defaultOptions];return this.chooser=ua.choosify("node",n),this._load_images(),this.updateLabelModule(e),void 0!==e.opacity&&t.checkOpacity(e.opacity)&&(this.options.opacity=e.opacity),this.updateShape(i),void 0!==e.hidden||void 0!==e.physics}}},{key:"_load_images",value:function(){if(("circularImage"===this.options.shape||"image"===this.options.shape)&&void 0===this.options.image)throw new Error("Option image must be defined for node type '"+this.options.shape+"'");if(void 0!==this.options.image){if(void 0===this.imagelist)throw new Error("Internal Error: No images provided");if("string"==typeof this.options.image)this.imageObj=this.imagelist.load(this.options.image,this.options.brokenImage,this.id);else{if(void 0===this.options.image.unselected)throw new Error("No unselected image provided");this.imageObj=this.imagelist.load(this.options.image.unselected,this.options.brokenImage,this.id),void 0!==this.options.image.selected?this.imageObjAlt=this.imagelist.load(this.options.image.selected,this.options.brokenImage,this.id):this.imageObjAlt=void 0}}}},{key:"getFormattingValues",value:function(){var t={color:this.options.color.background,opacity:this.options.opacity,borderWidth:this.options.borderWidth,borderColor:this.options.color.border,size:this.options.size,borderDashes:this.options.shapeProperties.borderDashes,borderRadius:this.options.shapeProperties.borderRadius,shadow:this.options.shadow.enabled,shadowColor:this.options.shadow.color,shadowSize:this.options.shadow.size,shadowX:this.options.shadow.x,shadowY:this.options.shadow.y};if(this.selected||this.hover?!0===this.chooser?this.selected?(t.borderWidth*=2,t.color=this.options.color.highlight.background,t.borderColor=this.options.color.highlight.border,t.shadow=this.options.shadow.enabled):this.hover&&(t.color=this.options.color.hover.background,t.borderColor=this.options.color.hover.border,t.shadow=this.options.shadow.enabled):"function"==typeof this.chooser&&(this.chooser(t,this.options.id,this.selected,this.hover),!1===t.shadow&&(t.shadowColor===this.options.shadow.color&&t.shadowSize===this.options.shadow.size&&t.shadowX===this.options.shadow.x&&t.shadowY===this.options.shadow.y||(t.shadow=!0))):t.shadow=this.options.shadow.enabled,void 0!==this.options.opacity){var e=this.options.opacity;t.borderColor=qo(t.borderColor,e),t.color=qo(t.color,e),t.shadowColor=qo(t.shadowColor,e)}return t}},{key:"updateLabelModule",value:function(e){void 0!==this.options.label&&null!==this.options.label||(this.options.label=""),t.updateGroupOptions(this.options,Il(Il({},e),{},{color:e&&e.color||this._localColor||void 0}),this.grouplist);var i=this.grouplist.get(this.options.group,!1),n=[e,this.options,i,this.globalOptions,this.defaultOptions];this.labelModule.update(this.options,n),void 0!==this.labelModule.baseSize&&(this.baseFontSize=this.labelModule.baseSize)}},{key:"updateShape",value:function(t){if(t===this.options.shape&&this.shape)this.shape.setOptions(this.options,this.imageObj,this.imageObjAlt);else switch(this.options.shape){case"box":this.shape=new Oa(this.options,this.body,this.labelModule);break;case"circle":this.shape=new _a(this.options,this.body,this.labelModule);break;case"circularImage":this.shape=new ja(this.options,this.body,this.labelModule,this.imageObj,this.imageObjAlt);break;case"database":this.shape=new Ba(this.options,this.body,this.labelModule);break;case"diamond":this.shape=new Za(this.options,this.body,this.labelModule);break;case"dot":this.shape=new Ga(this.options,this.body,this.labelModule);break;case"ellipse":this.shape=new Qa(this.options,this.body,this.labelModule);break;case"icon":this.shape=new Pa(this.options,this.body,this.labelModule);break;case"image":this.shape=new Ya(this.options,this.body,this.labelModule,this.imageObj,this.imageObjAlt);break;case"square":this.shape=new Xa(this.options,this.body,this.labelModule);break;case"hexagon":this.shape=new Ja(this.options,this.body,this.labelModule);break;case"star":this.shape=new qa(this.options,this.body,this.labelModule);break;case"text":this.shape=new tl(this.options,this.body,this.labelModule);break;case"triangle":this.shape=new il(this.options,this.body,this.labelModule);break;case"triangleDown":this.shape=new ol(this.options,this.body,this.labelModule);break;default:this.shape=new Qa(this.options,this.body,this.labelModule)}this.needsRefresh()}},{key:"select",value:function(){this.selected=!0,this.needsRefresh()}},{key:"unselect",value:function(){this.selected=!1,this.needsRefresh()}},{key:"needsRefresh",value:function(){this.shape.refreshNeeded=!0}},{key:"getTitle",value:function(){return this.options.title}},{key:"distanceToBorder",value:function(t,e){return this.shape.distanceToBorder(t,e)}},{key:"isFixed",value:function(){return this.options.fixed.x&&this.options.fixed.y}},{key:"isSelected",value:function(){return this.selected}},{key:"getValue",value:function(){return this.options.value}},{key:"getLabelSize",value:function(){return this.labelModule.size()}},{key:"setValueRange",value:function(t,e,i){if(void 0!==this.options.value){var n=this.options.scaling.customScalingFunction(t,e,i,this.options.value),g=this.options.scaling.max-this.options.scaling.min;if(!0===this.options.scaling.label.enabled){var o=this.options.scaling.label.max-this.options.scaling.label.min;this.options.font.size=this.options.scaling.label.min+n*o}this.options.size=this.options.scaling.min+n*g}else this.options.size=this.baseSize,this.options.font.size=this.baseFontSize;this.updateLabelModule()}},{key:"draw",value:function(t){var e=this.getFormattingValues();this.shape.draw(t,this.x,this.y,this.selected,this.hover,e)}},{key:"updateBoundingBox",value:function(t){this.shape.updateBoundingBox(this.x,this.y,t)}},{key:"resize",value:function(t){var e=this.getFormattingValues();this.shape.resize(t,this.selected,this.hover,e)}},{key:"getItemsOnPoint",value:function(t){var e=[];return this.labelModule.visible()&&ua.pointInRect(this.labelModule.getSize(),t)&&e.push({nodeId:this.id,labelId:0}),ua.pointInRect(this.shape.boundingBox,t)&&e.push({nodeId:this.id}),e}},{key:"isOverlappingWith",value:function(t){return this.shape.left<t.right&&this.shape.left+this.shape.width>t.left&&this.shape.top<t.bottom&&this.shape.top+this.shape.height>t.top}},{key:"isBoundingBoxOverlappingWith",value:function(t){return this.shape.boundingBox.left<t.right&&this.shape.boundingBox.right>t.left&&this.shape.boundingBox.top<t.bottom&&this.shape.boundingBox.bottom>t.top}}],[{key:"checkOpacity",value:function(t){return 0<=t&&t<=1}},{key:"updateGroupOptions",value:function(e,i,n){var g;if(void 0!==n){var o=e.group;if(void 0!==i&&void 0!==i.group&&o!==i.group)throw new Error("updateGroupOptions: group values in options don't match.");if("number"==typeof o||"string"==typeof o&&""!=o){var r=n.get(o);void 0!==r.opacity&&void 0===i.opacity&&(t.checkOpacity(r.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+r.opacity),r.opacity=void 0));var A=bg(g=Ca(i)).call(g,(function(t){return null!=i[t]}));A.push("font"),zo(A,e,r),e.color=tr(e.color)}}}},{key:"parseOptions",value:function(e,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],g=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4?arguments[4]:void 0,r=["color","fixed","shadow"];if(zo(r,e,i,n),t.checkMass(i),void 0!==e.opacity&&(t.checkOpacity(e.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+e.opacity),e.opacity=void 0)),void 0!==i.opacity&&(t.checkOpacity(i.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+i.opacity),i.opacity=void 0)),ar(e,i,"shadow",g),void 0!==i.color&&null!==i.color){var A=tr(i.color);Ro(e.color,A)}else!0===n&&null===i.color&&(e.color=Ir(g.color));void 0!==i.fixed&&null!==i.fixed&&("boolean"==typeof i.fixed?(e.fixed.x=i.fixed,e.fixed.y=i.fixed):(void 0!==i.fixed.x&&"boolean"==typeof i.fixed.x&&(e.fixed.x=i.fixed.x),void 0!==i.fixed.y&&"boolean"==typeof i.fixed.y&&(e.fixed.y=i.fixed.y))),!0===n&&null===i.font&&(e.font=Ir(g.font)),t.updateGroupOptions(e,i,o),void 0!==i.scaling&&ar(e.scaling,i.scaling,"label",g.scaling)}},{key:"checkMass",value:function(t,e){if(void 0!==t.mass&&t.mass<=0){var i="";void 0!==e&&(i=" in node id: "+e),console.log("%cNegative or zero mass disallowed"+i+", setting mass to 1.",Al),t.mass=1}}}]),t}();function ll(t){if(void 0===nn||null==Ke(t)){if(oo(t)||(t=function(t,e){var i;if(!t)return;if("string"==typeof t)return cl(t,e);var n=Vg(i=Object.prototype.toString.call(t)).call(i,8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return un(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cl(t,e)}(t))){var e=0,i=function(){};return{s:i,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,g,o=!0,r=!1;return{s:function(){n=Je(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){r=!0,g=t},f:function(){try{o||null==n.return||n.return()}finally{if(r)throw g}}}}function cl(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var ul=function(){function t(e,i,n,g){var o,r=this;if(qs(this,t),this.body=e,this.images=i,this.groups=n,this.layoutEngine=g,this.body.functions.createNode=et(o=this.create).call(o,this),this.nodesListeners={add:function(t,e){r.add(e.items)},update:function(t,e){r.update(e.items,e.data,e.oldData)},remove:function(t,e){r.remove(e.items)}},this.defaultOptions={borderWidth:1,borderWidthSelected:2,brokenImage:void 0,color:{border:"#2B7CE9",background:"#97C2FC",highlight:{border:"#2B7CE9",background:"#D2E5FF"},hover:{border:"#2B7CE9",background:"#D2E5FF"}},opacity:void 0,fixed:{x:!1,y:!1},font:{color:"#343434",size:14,face:"arial",background:"none",strokeWidth:0,strokeColor:"#ffffff",align:"center",vadjust:0,multi:!1,bold:{mod:"bold"},boldital:{mod:"bold italic"},ital:{mod:"italic"},mono:{mod:"",size:15,face:"monospace",vadjust:2}},group:void 0,hidden:!1,icon:{face:"FontAwesome",code:void 0,size:50,color:"#2B7CE9"},image:void 0,imagePadding:{top:0,right:0,bottom:0,left:0},label:void 0,labelHighlightBold:!0,level:void 0,margin:{top:5,right:5,bottom:5,left:5},mass:1,physics:!0,scaling:{min:10,max:30,label:{enabled:!1,min:14,max:30,maxVisible:30,drawThreshold:5},customScalingFunction:function(t,e,i,n){if(e===t)return.5;var g=1/(e-t);return Math.max(0,(n-t)*g)}},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:10,x:5,y:5},shape:"ellipse",shapeProperties:{borderDashes:!1,borderRadius:6,interpolation:!0,useImageSize:!1,useBorderWithImage:!1},size:25,title:void 0,value:void 0,x:void 0,y:void 0},this.defaultOptions.mass<=0)throw"Internal error: mass in defaultOptions of NodesHandler may not be zero or negative";this.options=Ir(this.defaultOptions),this.bindEventListeners()}return tC(t,[{key:"bindEventListeners",value:function(){var t,e,i=this;this.body.emitter.on("refreshNodes",et(t=this.refresh).call(t,this)),this.body.emitter.on("refresh",et(e=this.refresh).call(e,this)),this.body.emitter.on("destroy",(function(){Yo(i.nodesListeners,(function(t,e){i.body.data.nodes&&i.body.data.nodes.off(e,t)})),delete i.body.functions.createNode,delete i.nodesListeners.add,delete i.nodesListeners.update,delete i.nodesListeners.remove,delete i.nodesListeners}))}},{key:"setOptions",value:function(t){if(void 0!==t){if(al.parseOptions(this.options,t),void 0!==t.opacity&&(pC(t.opacity)||!hC(t.opacity)||t.opacity<0||t.opacity>1?console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+t.opacity):this.options.opacity=t.opacity),void 0!==t.shape)for(var e in this.body.nodes)this.body.nodes.hasOwnProperty(e)&&this.body.nodes[e].updateShape();if(void 0!==t.font||void 0!==t.widthConstraint||void 0!==t.heightConstraint)for(var i=0,n=jn(this.body.nodes);i<n.length;i++){var g=n[i];this.body.nodes[g].updateLabelModule(),this.body.nodes[g].needsRefresh()}if(void 0!==t.size)for(var o in this.body.nodes)this.body.nodes.hasOwnProperty(o)&&this.body.nodes[o].needsRefresh();void 0===t.hidden&&void 0===t.physics||this.body.emitter.emit("_dataChanged")}}},{key:"setData",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.body.data.nodes;if(t instanceof na||t instanceof ga)this.body.data.nodes=t;else if(oo(t))this.body.data.nodes=new na,this.body.data.nodes.add(t);else{if(t)throw new TypeError("Array or DataSet expected");this.body.data.nodes=new na}if(i&&Yo(this.nodesListeners,(function(t,e){i.off(e,t)})),this.body.nodes={},this.body.data.nodes){var n=this;Yo(this.nodesListeners,(function(t,e){n.body.data.nodes.on(e,t)}));var g=this.body.data.nodes.getIds();this.add(g,!0)}!1===e&&this.body.emitter.emit("_dataChanged")}},{key:"add",value:function(t){for(var e,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[],g=0;g<t.length;g++){e=t[g];var o=this.body.data.nodes.get(e),r=this.create(o);n.push(r),this.body.nodes[e]=r}this.layoutEngine.positionInitially(n),!1===i&&this.body.emitter.emit("_dataChanged")}},{key:"update",value:function(t,e,i){for(var n=this.body.nodes,g=!1,o=0;o<t.length;o++){var r=t[o],A=n[r],s=e[o];void 0!==A?A.setOptions(s)&&(g=!0):(g=!0,A=this.create(s),n[r]=A)}g||void 0===i||(g=cC(e).call(e,(function(t,e){var n=i[e];return n&&n.level!==t.level}))),!0===g?this.body.emitter.emit("_dataChanged"):this.body.emitter.emit("_dataUpdated")}},{key:"remove",value:function(t){for(var e=this.body.nodes,i=0;i<t.length;i++){delete e[t[i]]}this.body.emitter.emit("_dataChanged")}},{key:"create",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:al;return new e(t,this.body,this.images,this.groups,this.options,this.defaultOptions)}},{key:"refresh",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Yo(this.body.nodes,(function(i,n){var g=t.body.data.nodes.get(n);void 0!==g&&(!0===e&&i.setOptions({x:null,y:null}),i.setOptions({fixed:!1}),i.setOptions(g))}))}},{key:"getPositions",value:function(t){var e={};if(void 0!==t){if(!0===oo(t)){for(var i=0;i<t.length;i++)if(void 0!==this.body.nodes[t[i]]){var n=this.body.nodes[t[i]];e[t[i]]={x:Math.round(n.x),y:Math.round(n.y)}}}else if(void 0!==this.body.nodes[t]){var g=this.body.nodes[t];e[t]={x:Math.round(g.x),y:Math.round(g.y)}}}else for(var o=0;o<this.body.nodeIndices.length;o++){var r=this.body.nodes[this.body.nodeIndices[o]];e[this.body.nodeIndices[o]]={x:Math.round(r.x),y:Math.round(r.y)}}return e}},{key:"getPosition",value:function(t){if(null==t)throw new TypeError("No id was specified for getPosition method.");if(null==this.body.nodes[t])throw new ReferenceError("NodeId provided for getPosition does not exist. Provided: ".concat(t));return{x:Math.round(this.body.nodes[t].x),y:Math.round(this.body.nodes[t].y)}}},{key:"storePositions",value:function(){var t,e=[],i=this.body.data.nodes.getDataSet(),n=ll(i.get());try{for(n.s();!(t=n.n()).done;){var g=t.value,o=g.id,r=this.body.nodes[o],A=Math.round(r.x),s=Math.round(r.y);g.x===A&&g.y===s||e.push({id:o,x:A,y:s})}}catch(t){n.e(t)}finally{n.f()}i.update(e)}},{key:"getBoundingBox",value:function(t){if(void 0!==this.body.nodes[t])return this.body.nodes[t].shape.boundingBox}},{key:"getConnectedNodes",value:function(t,e){var i=[];if(void 0!==this.body.nodes[t])for(var n=this.body.nodes[t],g={},o=0;o<n.edges.length;o++){var r=n.edges[o];"to"!==e&&r.toId==n.id?void 0===g[r.fromId]&&(i.push(r.fromId),g[r.fromId]=!0):"from"!==e&&r.fromId==n.id&&void 0===g[r.toId]&&(i.push(r.toId),g[r.toId]=!0)}return i}},{key:"getConnectedEdges",value:function(t){var e=[];if(void 0!==this.body.nodes[t])for(var i=this.body.nodes[t],n=0;n<i.edges.length;n++)e.push(i.edges[n].id);else console.log("NodeId provided for getConnectedEdges does not exist. Provided: ",t);return e}},{key:"moveNode",value:function(t,e,i){var n=this;void 0!==this.body.nodes[t]?(this.body.nodes[t].x=Number(e),this.body.nodes[t].y=Number(i),AC((function(){n.body.emitter.emit("startSimulation")}),0)):console.log("Node id supplied to moveNode does not exist. Provided: ",t)}}]),t}(),dl=bn;V({target:"Reflect",stat:!0},{get:function t(e,i){var n,g,o=arguments.length<3?e:arguments[2];return L(e)===o?e[i]:(n=_.f(e,i))?w(n,"value")?n.value:void 0===n.get?void 0:n.get.call(o):m(g=zt(e))?t(g,i,o):void 0}});var hl=Z.Reflect.get;var pl=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=HC(t)););return t},fl=o((function(t){function e(i,n,g){return"undefined"!=typeof Reflect&&hl?t.exports=e=hl:t.exports=e=function(t,e,i){var n=pl(t,e);if(n){var g=dl(n,e);return g.get?g.get.call(i):g.value}},e(i,n,g||i)}t.exports=e})),vl=Math.hypot,yl=Math.abs,ml=Math.sqrt,bl=!!vl&&vl(1/0,NaN)!==1/0;V({target:"Math",stat:!0,forced:bl},{hypot:function(t,e){for(var i,n,g=0,o=0,r=arguments.length,A=0;o<r;)A<(i=yl(arguments[o++]))?(g=g*(n=A/i)*n+1,A=i):g+=i>0?(n=i/A)*n:i;return A===1/0?1/0:A*ml(g)}});var xl=Z.Math.hypot;function wl(t){var e=function(){if("undefined"==typeof Reflect||!xC)return!1;if(xC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(xC(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=HC(t);if(e){var g=HC(this).constructor;i=xC(n,arguments,g)}else i=n.apply(this,arguments);return VC(this,i)}}var kl=function(){function t(){qs(this,t)}return tC(t,null,[{key:"transform",value:function(t,e){oo(t)||(t=[t]);for(var i=e.point.x,n=e.point.y,g=e.angle,o=e.length,r=0;r<t.length;++r){var A=t[r],s=A.x*Math.cos(g)-A.y*Math.sin(g),C=A.x*Math.sin(g)+A.y*Math.cos(g);A.x=i+o*s,A.y=n+o*C}}},{key:"drawPath",value:function(t,e){t.beginPath(),t.moveTo(e[0].x,e[0].y);for(var i=1;i<e.length;++i)t.lineTo(e[i].x,e[i].y);t.closePath()}}]),t}(),Ol=function(t){YC(i,t);var e=wl(i);function i(){return qs(this,i),e.apply(this,arguments)}return tC(i,null,[{key:"draw",value:function(t,e){if(e.image){t.save(),t.translate(e.point.x,e.point.y),t.rotate(Math.PI/2+e.angle);var i=null!=e.imageWidth?e.imageWidth:e.image.width,n=null!=e.imageHeight?e.imageHeight:e.image.height;e.image.drawImageAtPosition(t,1,-i/2,0,i,n),t.restore()}return!1}}]),i}(kl),Dl=function(t){YC(i,t);var e=wl(i);function i(){return qs(this,i),e.apply(this,arguments)}return tC(i,null,[{key:"draw",value:function(t,e){var i=[{x:0,y:0},{x:-1,y:.3},{x:-.9,y:0},{x:-1,y:-.3}];return kl.transform(i,e),kl.drawPath(t,i),!0}}]),i}(kl),Ml=function(){function t(){qs(this,t)}return tC(t,null,[{key:"draw",value:function(t,e){var i=[{x:-1,y:0},{x:0,y:.3},{x:-.4,y:0},{x:0,y:-.3}];return kl.transform(i,e),kl.drawPath(t,i),!0}}]),t}(),Tl=function(){function t(){qs(this,t)}return tC(t,null,[{key:"draw",value:function(t,e){var i={x:-.4,y:0};kl.transform(i,e),t.strokeStyle=t.fillStyle,t.fillStyle="rgba(0, 0, 0, 0)";var n=Math.PI,g=e.angle-n/2,o=e.angle+n/2;return t.beginPath(),t.arc(i.x,i.y,.4*e.length,g,o,!1),t.stroke(),!0}}]),t}(),_l=function(){function t(){qs(this,t)}return tC(t,null,[{key:"draw",value:function(t,e){var i={x:-.3,y:0};kl.transform(i,e),t.strokeStyle=t.fillStyle,t.fillStyle="rgba(0, 0, 0, 0)";var n=Math.PI,g=e.angle+n/2,o=e.angle+3*n/2;return t.beginPath(),t.arc(i.x,i.y,.4*e.length,g,o,!1),t.stroke(),!0}}]),t}(),Nl=function(){function t(){qs(this,t)}return tC(t,null,[{key:"draw",value:function(t,e){var i=[{x:.02,y:0},{x:-1,y:.3},{x:-1,y:-.3}];return kl.transform(i,e),kl.drawPath(t,i),!0}}]),t}(),jl=function(){function t(){qs(this,t)}return tC(t,null,[{key:"draw",value:function(t,e){var i=[{x:0,y:.3},{x:0,y:-.3},{x:-1,y:0}];return kl.transform(i,e),kl.drawPath(t,i),!0}}]),t}(),El=function(){function t(){qs(this,t)}return tC(t,null,[{key:"draw",value:function(t,e){var i={x:-.4,y:0};return kl.transform(i,e),it(t,i.x,i.y,.4*e.length),!0}}]),t}(),Bl=function(){function t(){qs(this,t)}return tC(t,null,[{key:"draw",value:function(t,e){var i=[{x:0,y:.5},{x:0,y:-.5},{x:-.15,y:-.5},{x:-.15,y:.5}];return kl.transform(i,e),kl.drawPath(t,i),!0}}]),t}(),Fl=function(){function t(){qs(this,t)}return tC(t,null,[{key:"draw",value:function(t,e){var i=[{x:0,y:.3},{x:0,y:-.3},{x:-.6,y:-.3},{x:-.6,y:.3}];return kl.transform(i,e),kl.drawPath(t,i),!0}}]),t}(),Rl=function(){function t(){qs(this,t)}return tC(t,null,[{key:"draw",value:function(t,e){var i=[{x:0,y:0},{x:-.5,y:-.3},{x:-1,y:0},{x:-.5,y:.3}];return kl.transform(i,e),kl.drawPath(t,i),!0}}]),t}(),Sl=function(){function t(){qs(this,t)}return tC(t,null,[{key:"draw",value:function(t,e){var i=[{x:-1,y:.3},{x:-.5,y:0},{x:-1,y:-.3},{x:0,y:0}];return kl.transform(i,e),kl.drawPath(t,i),!0}}]),t}(),Zl=function(){function t(){qs(this,t)}return tC(t,null,[{key:"draw",value:function(t,e){var i;switch(e.type&&(i=e.type.toLowerCase()),i){case"image":return Ol.draw(t,e);case"circle":return El.draw(t,e);case"box":return Fl.draw(t,e);case"crow":return Ml.draw(t,e);case"curve":return Tl.draw(t,e);case"diamond":return Rl.draw(t,e);case"inv_curve":return _l.draw(t,e);case"triangle":return Nl.draw(t,e);case"inv_triangle":return jl.draw(t,e);case"bar":return Bl.draw(t,e);case"vee":return Sl.draw(t,e);case"arrow":default:return Dl.draw(t,e)}}}]),t}();function zl(t,e){var i=jn(t);if(wn){var n=wn(t);e&&(n=bg(n).call(n,(function(e){return xn(t,e).enumerable}))),i.push.apply(i,n)}return i}function Gl(t){for(var e=1;e<arguments.length;e++){var i,n=null!=arguments[e]?arguments[e]:{};if(e%2)eg(i=zl(Object(n),!0)).call(i,(function(e){Tn(t,e,n[e])}));else if(vn)pn(t,vn(n));else{var g;eg(g=zl(Object(n))).call(g,(function(e){hn(t,e,xn(n,e))}))}}return t}var Ll=function(){function t(e,i,n){qs(this,t),this._body=i,this._labelModule=n,this.color={},this.colorDirty=!0,this.hoverWidth=1.5,this.selectionWidth=2,this.setOptions(e),this.fromPoint=this.from,this.toPoint=this.to}return tC(t,[{key:"connect",value:function(){this.from=this._body.nodes[this.options.from],this.to=this._body.nodes[this.options.to]}},{key:"cleanup",value:function(){return!1}},{key:"setOptions",value:function(t){this.options=t,this.from=this._body.nodes[this.options.from],this.to=this._body.nodes[this.options.to],this.id=this.options.id}},{key:"drawLine",value:function(t,e,i,n){var g=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.getViaNode();t.strokeStyle=this.getColor(t,e),t.lineWidth=e.width,!1!==e.dashes?this._drawDashedLine(t,e,g):this._drawLine(t,e,g)}},{key:"_drawLine",value:function(t,e,i,n,g){if(this.from!=this.to)this._line(t,e,i,n,g);else{var o=this._getCircleData(t),r=po(o,3),A=r[0],s=r[1],C=r[2];this._circle(t,e,A,s,C)}}},{key:"_drawDashedLine",value:function(t,e,i,n,g){t.lineCap="round";var o=oo(e.dashes)?e.dashes:[5,5];if(void 0!==t.setLineDash){if(t.save(),t.setLineDash(o),t.lineDashOffset=0,this.from!=this.to)this._line(t,e,i);else{var r=this._getCircleData(t),A=po(r,3),s=A[0],C=A[1],I=A[2];this._circle(t,e,s,C,I)}t.setLineDash([0]),t.lineDashOffset=0,t.restore()}else{if(this.from!=this.to)rt(t,this.from.x,this.from.y,this.to.x,this.to.y,o);else{var a=this._getCircleData(t),l=po(a,3),c=l[0],u=l[1],d=l[2];this._circle(t,e,c,u,d)}this.enableShadow(t,e),t.stroke(),this.disableShadow(t,e)}}},{key:"findBorderPosition",value:function(t,e,i){return this.from!=this.to?this._findBorderPosition(t,e,i):this._findBorderPositionCircle(t,e,i)}},{key:"findBorderPositions",value:function(t){if(this.from!=this.to)return{from:this._findBorderPosition(this.from,t),to:this._findBorderPosition(this.to,t)};var e,i=Vg(e=this._getCircleData(t)).call(e,0,2),n=po(i,2),g=n[0],o=n[1];return{from:this._findBorderPositionCircle(this.from,t,{x:g,y:o,low:.25,high:.6,direction:-1}),to:this._findBorderPositionCircle(this.from,t,{x:g,y:o,low:.6,high:.8,direction:1})}}},{key:"_getCircleData",value:function(t){var e=this.options.selfReference.size;void 0!==t&&void 0===this.from.shape.width&&this.from.shape.resize(t);var i=ua.getSelfRefCoordinates(t,this.options.selfReference.angle,e,this.from);return[i.x,i.y,e]}},{key:"_pointOnCircle",value:function(t,e,i,n){var g=2*n*Math.PI;return{x:t+i*Math.cos(g),y:e-i*Math.sin(g)}}},{key:"_findBorderPositionCircle",value:function(t,e,i){var n,g=i.x,o=i.y,r=i.low,A=i.high,s=i.direction,C=this.options.selfReference.size,I=.5*(r+A),a=0;do{I=.5*(r+A),n=this._pointOnCircle(g,o,C,I);var l=Math.atan2(t.y-n.y,t.x-n.x),c=t.distanceToBorder(e,l)-Math.sqrt(Math.pow(n.x-t.x,2)+Math.pow(n.y-t.y,2));if(Math.abs(c)<.05)break;c>0?s>0?r=I:A=I:s>0?A=I:r=I,++a}while(r<=A&&a<10);return Gl(Gl({},n),{},{t:I})}},{key:"getLineWidth",value:function(t,e){return!0===t?Math.max(this.selectionWidth,.3/this._body.view.scale):!0===e?Math.max(this.hoverWidth,.3/this._body.view.scale):Math.max(this.options.width,.3/this._body.view.scale)}},{key:"getColor",value:function(t,e){if(!1!==e.inheritsColor){if("both"===e.inheritsColor&&this.from.id!==this.to.id){var i=t.createLinearGradient(this.from.x,this.from.y,this.to.x,this.to.y),n=this.from.options.color.highlight.border,g=this.to.options.color.highlight.border;return!1===this.from.selected&&!1===this.to.selected?(n=qo(this.from.options.color.border,e.opacity),g=qo(this.to.options.color.border,e.opacity)):!0===this.from.selected&&!1===this.to.selected?g=this.to.options.color.border:!1===this.from.selected&&!0===this.to.selected&&(n=this.from.options.color.border),i.addColorStop(0,n),i.addColorStop(1,g),i}return"to"===e.inheritsColor?qo(this.to.options.color.border,e.opacity):qo(this.from.options.color.border,e.opacity)}return qo(e.color,e.opacity)}},{key:"_circle",value:function(t,e,i,n,g){this.enableShadow(t,e);var o=0,r=2*Math.PI;if(!this.options.selfReference.renderBehindTheNode){var A=this.options.selfReference.angle,s=this.options.selfReference.angle+Math.PI,C=this._findBorderPositionCircle(this.from,t,{x:i,y:n,low:A,high:s,direction:-1}),I=this._findBorderPositionCircle(this.from,t,{x:i,y:n,low:A,high:s,direction:1});o=Math.atan2(C.y-n,C.x-i),r=Math.atan2(I.y-n,I.x-i)}t.beginPath(),t.arc(i,n,g,o,r,!1),t.stroke(),this.disableShadow(t,e)}},{key:"getDistanceToEdge",value:function(t,e,i,n,g,o){if(this.from!=this.to)return this._getDistanceToEdge(t,e,i,n,g,o);var r=this._getCircleData(void 0),A=po(r,3),s=A[0],C=A[1],I=A[2],a=s-g,l=C-o;return Math.abs(Math.sqrt(a*a+l*l)-I)}},{key:"_getDistanceToLine",value:function(t,e,i,n,g,o){var r=i-t,A=n-e,s=((g-t)*r+(o-e)*A)/(r*r+A*A);s>1?s=1:s<0&&(s=0);var C=t+s*r-g,I=e+s*A-o;return Math.sqrt(C*C+I*I)}},{key:"getArrowData",value:function(t,e,i,n,g,o){var r,A,s,C,I,a,l,c=o.width;"from"===e?(s=this.from,C=this.to,I=o.fromArrowScale<0,a=Math.abs(o.fromArrowScale),l=o.fromArrowType):"to"===e?(s=this.to,C=this.from,I=o.toArrowScale<0,a=Math.abs(o.toArrowScale),l=o.toArrowType):(s=this.to,C=this.from,I=o.middleArrowScale<0,a=Math.abs(o.middleArrowScale),l=o.middleArrowType);var u=15*a+3*c;if(s!=C){var d=u/xl(s.x-C.x,s.y-C.y);if("middle"!==e)if(!0===this.options.smooth.enabled){var h=this._findBorderPosition(s,t,{via:i}),p=this.getPoint(h.t+d*("from"===e?1:-1),i);r=Math.atan2(h.y-p.y,h.x-p.x),A=h}else r=Math.atan2(s.y-C.y,s.x-C.x),A=this._findBorderPosition(s,t);else{var f=(I?-d:d)/2,v=this.getPoint(.5+f,i),y=this.getPoint(.5-f,i);r=Math.atan2(v.y-y.y,v.x-y.x),A=this.getPoint(.5,i)}}else{var m=this._getCircleData(t),b=po(m,3),x=b[0],w=b[1],k=b[2];if("from"===e){var O=this.options.selfReference.angle,D=this.options.selfReference.angle+Math.PI,M=this._findBorderPositionCircle(this.from,t,{x:x,y:w,low:O,high:D,direction:-1});r=-2*M.t*Math.PI+1.5*Math.PI+.1*Math.PI,A=M}else if("to"===e){var T=this.options.selfReference.angle,_=this.options.selfReference.angle+Math.PI,N=this._findBorderPositionCircle(this.from,t,{x:x,y:w,low:T,high:_,direction:1});r=-2*N.t*Math.PI+1.5*Math.PI-1.1*Math.PI,A=N}else{var j=this.options.selfReference.angle/(2*Math.PI);A=this._pointOnCircle(x,w,k,j),r=-2*j*Math.PI+1.5*Math.PI+.1*Math.PI}}return{point:A,core:{x:A.x-.9*u*Math.cos(r),y:A.y-.9*u*Math.sin(r)},angle:r,length:u,type:l}}},{key:"drawArrowHead",value:function(t,e,i,n,g){t.strokeStyle=this.getColor(t,e),t.fillStyle=t.strokeStyle,t.lineWidth=e.width,Zl.draw(t,g)&&(this.enableShadow(t,e),xa(t).call(t),this.disableShadow(t,e))}},{key:"enableShadow",value:function(t,e){!0===e.shadow&&(t.shadowColor=e.shadowColor,t.shadowBlur=e.shadowSize,t.shadowOffsetX=e.shadowX,t.shadowOffsetY=e.shadowY)}},{key:"disableShadow",value:function(t,e){!0===e.shadow&&(t.shadowColor="rgba(0,0,0,0)",t.shadowBlur=0,t.shadowOffsetX=0,t.shadowOffsetY=0)}},{key:"drawBackground",value:function(t,e){if(!1!==e.background){var i={strokeStyle:t.strokeStyle,lineWidth:t.lineWidth,dashes:t.dashes};t.strokeStyle=e.backgroundColor,t.lineWidth=e.backgroundSize,this.setStrokeDashed(t,e.backgroundDashes),t.stroke(),t.strokeStyle=i.strokeStyle,t.lineWidth=i.lineWidth,t.dashes=i.dashes,this.setStrokeDashed(t,e.dashes)}}},{key:"setStrokeDashed",value:function(t,e){if(!1!==e)if(void 0!==t.setLineDash){var i=oo(e)?e:[5,5];t.setLineDash(i)}else console.warn("setLineDash is not supported in this browser. The dashed stroke cannot be used.");else void 0!==t.setLineDash?t.setLineDash([]):console.warn("setLineDash is not supported in this browser. The dashed stroke cannot be used.")}}]),t}();function Ql(t,e){var i=jn(t);if(wn){var n=wn(t);e&&(n=bg(n).call(n,(function(e){return xn(t,e).enumerable}))),i.push.apply(i,n)}return i}function Wl(t){for(var e=1;e<arguments.length;e++){var i,n=null!=arguments[e]?arguments[e]:{};if(e%2)eg(i=Ql(Object(n),!0)).call(i,(function(e){Tn(t,e,n[e])}));else if(vn)pn(t,vn(n));else{var g;eg(g=Ql(Object(n))).call(g,(function(e){hn(t,e,xn(n,e))}))}}return t}function Pl(t){var e=function(){if("undefined"==typeof Reflect||!xC)return!1;if(xC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(xC(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=HC(t);if(e){var g=HC(this).constructor;i=xC(n,arguments,g)}else i=n.apply(this,arguments);return VC(this,i)}}var Ul=function(t){YC(i,t);var e=Pl(i);function i(t,n,g){return qs(this,i),e.call(this,t,n,g)}return tC(i,[{key:"_findBorderPositionBezier",value:function(t,e){var i,n,g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._getViaCoordinates(),o=10,r=.2,A=!1,s=1,C=0,I=this.to;t.id===this.from.id&&(I=this.from,A=!0);var a=0;do{n=.5*(C+s),i=this.getPoint(n,g);var l=Math.atan2(I.y-i.y,I.x-i.x),c=I.distanceToBorder(e,l),u=Math.sqrt(Math.pow(i.x-I.x,2)+Math.pow(i.y-I.y,2)),d=c-u;if(Math.abs(d)<r)break;d<0?!1===A?C=n:s=n:!1===A?s=n:C=n,++a}while(C<=s&&a<o);return Wl(Wl({},i),{},{t:n})}},{key:"_getDistanceToBezierEdge",value:function(t,e,i,n,g,o,r){var A,s,C,I,a,l=1e9,c=t,u=e;for(s=1;s<10;s++)C=.1*s,I=Math.pow(1-C,2)*t+2*C*(1-C)*r.x+Math.pow(C,2)*i,a=Math.pow(1-C,2)*e+2*C*(1-C)*r.y+Math.pow(C,2)*n,s>0&&(l=(A=this._getDistanceToLine(c,u,I,a,g,o))<l?A:l),c=I,u=a;return l}},{key:"_bezierCurve",value:function(t,e,i,n){t.beginPath(),t.moveTo(this.fromPoint.x,this.fromPoint.y),null!=i&&null!=i.x?null!=n&&null!=n.x?t.bezierCurveTo(i.x,i.y,n.x,n.y,this.toPoint.x,this.toPoint.y):t.quadraticCurveTo(i.x,i.y,this.toPoint.x,this.toPoint.y):t.lineTo(this.toPoint.x,this.toPoint.y),this.drawBackground(t,e),this.enableShadow(t,e),t.stroke(),this.disableShadow(t,e)}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}}]),i}(Ll);function Yl(t){var e=function(){if("undefined"==typeof Reflect||!xC)return!1;if(xC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(xC(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=HC(t);if(e){var g=HC(this).constructor;i=xC(n,arguments,g)}else i=n.apply(this,arguments);return VC(this,i)}}var Vl=function(t){YC(i,t);var e=Yl(i);function i(t,n,g){var o;return qs(this,i),(o=e.call(this,t,n,g)).via=o.via,o._boundFunction=function(){o.positionBezierNode()},o._body.emitter.on("_repositionBezierNodes",o._boundFunction),o}return tC(i,[{key:"setOptions",value:function(t){fl(HC(i.prototype),"setOptions",this).call(this,t);var e=!1;this.options.physics!==t.physics&&(e=!0),this.options=t,this.id=this.options.id,this.from=this._body.nodes[this.options.from],this.to=this._body.nodes[this.options.to],this.setupSupportNode(),this.connect(),!0===e&&(this.via.setOptions({physics:this.options.physics}),this.positionBezierNode())}},{key:"connect",value:function(){this.from=this._body.nodes[this.options.from],this.to=this._body.nodes[this.options.to],void 0===this.from||void 0===this.to||!1===this.options.physics||this.from.id===this.to.id?this.via.setOptions({physics:!1}):this.via.setOptions({physics:!0})}},{key:"cleanup",value:function(){return this._body.emitter.off("_repositionBezierNodes",this._boundFunction),void 0!==this.via&&(delete this._body.nodes[this.via.id],this.via=void 0,!0)}},{key:"setupSupportNode",value:function(){if(void 0===this.via){var t="edgeId:"+this.id,e=this._body.functions.createNode({id:t,shape:"circle",physics:!0,hidden:!0});this._body.nodes[t]=e,this.via=e,this.via.parentEdgeId=this.id,this.positionBezierNode()}}},{key:"positionBezierNode",value:function(){void 0!==this.via&&void 0!==this.from&&void 0!==this.to?(this.via.x=.5*(this.from.x+this.to.x),this.via.y=.5*(this.from.y+this.to.y)):void 0!==this.via&&(this.via.x=0,this.via.y=0)}},{key:"_line",value:function(t,e,i){this._bezierCurve(t,e,i)}},{key:"_getViaCoordinates",value:function(){return this.via}},{key:"getViaNode",value:function(){return this.via}},{key:"getPoint",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.via;if(this.from===this.to){var i=this._getCircleData(),n=po(i,3),g=n[0],o=n[1],r=n[2],A=2*Math.PI*(1-t);return{x:g+r*Math.sin(A),y:o+r-r*(1-Math.cos(A))}}return{x:Math.pow(1-t,2)*this.fromPoint.x+2*t*(1-t)*e.x+Math.pow(t,2)*this.toPoint.x,y:Math.pow(1-t,2)*this.fromPoint.y+2*t*(1-t)*e.y+Math.pow(t,2)*this.toPoint.y}}},{key:"_findBorderPosition",value:function(t,e){return this._findBorderPositionBezier(t,e,this.via)}},{key:"_getDistanceToEdge",value:function(t,e,i,n,g,o){return this._getDistanceToBezierEdge(t,e,i,n,g,o,this.via)}}]),i}(Ul);function Xl(t){var e=function(){if("undefined"==typeof Reflect||!xC)return!1;if(xC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(xC(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=HC(t);if(e){var g=HC(this).constructor;i=xC(n,arguments,g)}else i=n.apply(this,arguments);return VC(this,i)}}var Hl=function(t){YC(i,t);var e=Xl(i);function i(t,n,g){return qs(this,i),e.call(this,t,n,g)}return tC(i,[{key:"_line",value:function(t,e,i){this._bezierCurve(t,e,i)}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}},{key:"_getViaCoordinates",value:function(){var t,e,i=this.options.smooth.roundness,n=this.options.smooth.type,g=Math.abs(this.from.x-this.to.x),o=Math.abs(this.from.y-this.to.y);if("discrete"===n||"diagonalCross"===n){var r,A;r=A=g<=o?i*o:i*g,this.from.x>this.to.x&&(r=-r),this.from.y>=this.to.y&&(A=-A);var s=this.from.x+r,C=this.from.y+A;return"discrete"===n&&(g<=o?s=g<i*o?this.from.x:s:C=o<i*g?this.from.y:C),{x:s,y:C}}if("straightCross"===n){var I=(1-i)*g,a=(1-i)*o;return g<=o?(I=0,this.from.y<this.to.y&&(a=-a)):(this.from.x<this.to.x&&(I=-I),a=0),{x:this.to.x+I,y:this.to.y+a}}if("horizontal"===n){var l=(1-i)*g;return this.from.x<this.to.x&&(l=-l),{x:this.to.x+l,y:this.from.y}}if("vertical"===n){var c=(1-i)*o;return this.from.y<this.to.y&&(c=-c),{x:this.from.x,y:this.to.y+c}}if("curvedCW"===n){g=this.to.x-this.from.x,o=this.from.y-this.to.y;var u=Math.sqrt(g*g+o*o),d=Math.PI,h=(Math.atan2(o,g)+(.5*i+.5)*d)%(2*d);return{x:this.from.x+(.5*i+.5)*u*Math.sin(h),y:this.from.y+(.5*i+.5)*u*Math.cos(h)}}if("curvedCCW"===n){g=this.to.x-this.from.x,o=this.from.y-this.to.y;var p=Math.sqrt(g*g+o*o),f=Math.PI,v=(Math.atan2(o,g)+(.5*-i+.5)*f)%(2*f);return{x:this.from.x+(.5*i+.5)*p*Math.sin(v),y:this.from.y+(.5*i+.5)*p*Math.cos(v)}}t=e=g<=o?i*o:i*g,this.from.x>this.to.x&&(t=-t),this.from.y>=this.to.y&&(e=-e);var y=this.from.x+t,m=this.from.y+e;return g<=o?y=this.from.x<=this.to.x?this.to.x<y?this.to.x:y:this.to.x>y?this.to.x:y:m=this.from.y>=this.to.y?this.to.y>m?this.to.y:m:this.to.y<m?this.to.y:m,{x:y,y:m}}},{key:"_findBorderPosition",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._findBorderPositionBezier(t,e,i.via)}},{key:"_getDistanceToEdge",value:function(t,e,i,n,g,o){var r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:this._getViaCoordinates();return this._getDistanceToBezierEdge(t,e,i,n,g,o,r)}},{key:"getPoint",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._getViaCoordinates(),i=t,n=Math.pow(1-i,2)*this.fromPoint.x+2*i*(1-i)*e.x+Math.pow(i,2)*this.toPoint.x,g=Math.pow(1-i,2)*this.fromPoint.y+2*i*(1-i)*e.y+Math.pow(i,2)*this.toPoint.y;return{x:n,y:g}}}]),i}(Ul);function Jl(t){var e=function(){if("undefined"==typeof Reflect||!xC)return!1;if(xC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(xC(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=HC(t);if(e){var g=HC(this).constructor;i=xC(n,arguments,g)}else i=n.apply(this,arguments);return VC(this,i)}}function Kl(t){var e=function(){if("undefined"==typeof Reflect||!xC)return!1;if(xC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(xC(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=HC(t);if(e){var g=HC(this).constructor;i=xC(n,arguments,g)}else i=n.apply(this,arguments);return VC(this,i)}}var ql=function(t){YC(i,t);var e=Kl(i);function i(t,n,g){return qs(this,i),e.call(this,t,n,g)}return tC(i,[{key:"_line",value:function(t,e,i){var n=i[0],g=i[1];this._bezierCurve(t,e,n,g)}},{key:"_getViaCoordinates",value:function(){var t,e,i,n,g=this.from.x-this.to.x,o=this.from.y-this.to.y,r=this.options.smooth.roundness;return(Math.abs(g)>Math.abs(o)||!0===this.options.smooth.forceDirection||"horizontal"===this.options.smooth.forceDirection)&&"vertical"!==this.options.smooth.forceDirection?(e=this.from.y,n=this.to.y,t=this.from.x-r*g,i=this.to.x+r*g):(e=this.from.y-r*o,n=this.to.y+r*o,t=this.from.x,i=this.to.x),[{x:t,y:e},{x:i,y:n}]}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}},{key:"_findBorderPosition",value:function(t,e){return this._findBorderPositionBezier(t,e)}},{key:"_getDistanceToEdge",value:function(t,e,i,n,g,o){var r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:this._getViaCoordinates(),A=po(r,2),s=A[0],C=A[1];return this._getDistanceToBezierEdge2(t,e,i,n,g,o,s,C)}},{key:"getPoint",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._getViaCoordinates(),i=po(e,2),n=i[0],g=i[1],o=t,r=[Math.pow(1-o,3),3*o*Math.pow(1-o,2),3*Math.pow(o,2)*(1-o),Math.pow(o,3)],A=r[0]*this.fromPoint.x+r[1]*n.x+r[2]*g.x+r[3]*this.toPoint.x,s=r[0]*this.fromPoint.y+r[1]*n.y+r[2]*g.y+r[3]*this.toPoint.y;return{x:A,y:s}}}]),i}(function(t){YC(i,t);var e=Jl(i);function i(t,n,g){return qs(this,i),e.call(this,t,n,g)}return tC(i,[{key:"_getDistanceToBezierEdge2",value:function(t,e,i,n,g,o,r,A){for(var s=1e9,C=t,I=e,a=[0,0,0,0],l=1;l<10;l++){var c=.1*l;a[0]=Math.pow(1-c,3),a[1]=3*c*Math.pow(1-c,2),a[2]=3*Math.pow(c,2)*(1-c),a[3]=Math.pow(c,3);var u=a[0]*t+a[1]*r.x+a[2]*A.x+a[3]*i,d=a[0]*e+a[1]*r.y+a[2]*A.y+a[3]*n;if(l>0){var h=this._getDistanceToLine(C,I,u,d,g,o);s=h<s?h:s}C=u,I=d}return s}}]),i}(Ul));function $l(t){var e=function(){if("undefined"==typeof Reflect||!xC)return!1;if(xC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(xC(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=HC(t);if(e){var g=HC(this).constructor;i=xC(n,arguments,g)}else i=n.apply(this,arguments);return VC(this,i)}}var tc=function(t){YC(i,t);var e=$l(i);function i(t,n,g){return qs(this,i),e.call(this,t,n,g)}return tC(i,[{key:"_line",value:function(t,e){t.beginPath(),t.moveTo(this.fromPoint.x,this.fromPoint.y),t.lineTo(this.toPoint.x,this.toPoint.y),this.enableShadow(t,e),t.stroke(),this.disableShadow(t,e)}},{key:"getViaNode",value:function(){}},{key:"getPoint",value:function(t){return{x:(1-t)*this.fromPoint.x+t*this.toPoint.x,y:(1-t)*this.fromPoint.y+t*this.toPoint.y}}},{key:"_findBorderPosition",value:function(t,e){var i=this.to,n=this.from;t.id===this.from.id&&(i=this.from,n=this.to);var g=Math.atan2(i.y-n.y,i.x-n.x),o=i.x-n.x,r=i.y-n.y,A=Math.sqrt(o*o+r*r),s=(A-t.distanceToBorder(e,g))/A;return{x:(1-s)*n.x+s*i.x,y:(1-s)*n.y+s*i.y,t:0}}},{key:"_getDistanceToEdge",value:function(t,e,i,n,g,o){return this._getDistanceToLine(t,e,i,n,g,o)}}]),i}(Ll),ec=function(){function t(e,i,n,g,o){if(qs(this,t),void 0===i)throw new Error("No body provided");this.options=Ir(g),this.globalOptions=g,this.defaultOptions=o,this.body=i,this.imagelist=n,this.id=void 0,this.fromId=void 0,this.toId=void 0,this.selected=!1,this.hover=!1,this.labelDirty=!0,this.baseWidth=this.options.width,this.baseFontSize=this.options.font.size,this.from=void 0,this.to=void 0,this.edgeType=void 0,this.connected=!1,this.labelModule=new ya(this.body,this.options,!0),this.setOptions(e)}return tC(t,[{key:"setOptions",value:function(e){if(e){var i=void 0!==e.physics&&this.options.physics!==e.physics||void 0!==e.hidden&&(this.options.hidden||!1)!==(e.hidden||!1)||void 0!==e.from&&this.options.from!==e.from||void 0!==e.to&&this.options.to!==e.to;t.parseOptions(this.options,e,!0,this.globalOptions),void 0!==e.id&&(this.id=e.id),void 0!==e.from&&(this.fromId=e.from),void 0!==e.to&&(this.toId=e.to),void 0!==e.title&&(this.title=e.title),void 0!==e.value&&(e.value=ca(e.value));var n=[e,this.options,this.defaultOptions];return this.chooser=ua.choosify("edge",n),this.updateLabelModule(e),i=this.updateEdgeType()||i,this._setInteractionWidths(),this.connect(),i}}},{key:"getFormattingValues",value:function(){var t=!0===this.options.arrows.to||!0===this.options.arrows.to.enabled,e=!0===this.options.arrows.from||!0===this.options.arrows.from.enabled,i=!0===this.options.arrows.middle||!0===this.options.arrows.middle.enabled,n=this.options.color.inherit,g={toArrow:t,toArrowScale:this.options.arrows.to.scaleFactor,toArrowType:this.options.arrows.to.type,toArrowSrc:this.options.arrows.to.src,toArrowImageWidth:this.options.arrows.to.imageWidth,toArrowImageHeight:this.options.arrows.to.imageHeight,middleArrow:i,middleArrowScale:this.options.arrows.middle.scaleFactor,middleArrowType:this.options.arrows.middle.type,middleArrowSrc:this.options.arrows.middle.src,middleArrowImageWidth:this.options.arrows.middle.imageWidth,middleArrowImageHeight:this.options.arrows.middle.imageHeight,fromArrow:e,fromArrowScale:this.options.arrows.from.scaleFactor,fromArrowType:this.options.arrows.from.type,fromArrowSrc:this.options.arrows.from.src,fromArrowImageWidth:this.options.arrows.from.imageWidth,fromArrowImageHeight:this.options.arrows.from.imageHeight,arrowStrikethrough:this.options.arrowStrikethrough,color:n?void 0:this.options.color.color,inheritsColor:n,opacity:this.options.color.opacity,hidden:this.options.hidden,length:this.options.length,shadow:this.options.shadow.enabled,shadowColor:this.options.shadow.color,shadowSize:this.options.shadow.size,shadowX:this.options.shadow.x,shadowY:this.options.shadow.y,dashes:this.options.dashes,width:this.options.width,background:this.options.background.enabled,backgroundColor:this.options.background.color,backgroundSize:this.options.background.size,backgroundDashes:this.options.background.dashes};if(this.selected||this.hover)if(!0===this.chooser){if(this.selected){var o=this.options.selectionWidth;"function"==typeof o?g.width=o(g.width):"number"==typeof o&&(g.width+=o),g.width=Math.max(g.width,.3/this.body.view.scale),g.color=this.options.color.highlight,g.shadow=this.options.shadow.enabled}else if(this.hover){var r=this.options.hoverWidth;"function"==typeof r?g.width=r(g.width):"number"==typeof r&&(g.width+=r),g.width=Math.max(g.width,.3/this.body.view.scale),g.color=this.options.color.hover,g.shadow=this.options.shadow.enabled}}else"function"==typeof this.chooser&&(this.chooser(g,this.options.id,this.selected,this.hover),void 0!==g.color&&(g.inheritsColor=!1),!1===g.shadow&&(g.shadowColor===this.options.shadow.color&&g.shadowSize===this.options.shadow.size&&g.shadowX===this.options.shadow.x&&g.shadowY===this.options.shadow.y||(g.shadow=!0)));else g.shadow=this.options.shadow.enabled,g.width=Math.max(g.width,.3/this.body.view.scale);return g}},{key:"updateLabelModule",value:function(t){var e=[t,this.options,this.globalOptions,this.defaultOptions];this.labelModule.update(this.options,e),void 0!==this.labelModule.baseSize&&(this.baseFontSize=this.labelModule.baseSize)}},{key:"updateEdgeType",value:function(){var t=this.options.smooth,e=!1,i=!0;return void 0!==this.edgeType&&((this.edgeType instanceof Vl&&!0===t.enabled&&"dynamic"===t.type||this.edgeType instanceof ql&&!0===t.enabled&&"cubicBezier"===t.type||this.edgeType instanceof Hl&&!0===t.enabled&&"dynamic"!==t.type&&"cubicBezier"!==t.type||this.edgeType instanceof tc&&!1===t.type.enabled)&&(i=!1),!0===i&&(e=this.cleanup())),!0===i?!0===t.enabled?"dynamic"===t.type?(e=!0,this.edgeType=new Vl(this.options,this.body,this.labelModule)):"cubicBezier"===t.type?this.edgeType=new ql(this.options,this.body,this.labelModule):this.edgeType=new Hl(this.options,this.body,this.labelModule):this.edgeType=new tc(this.options,this.body,this.labelModule):this.edgeType.setOptions(this.options),e}},{key:"connect",value:function(){this.disconnect(),this.from=this.body.nodes[this.fromId]||void 0,this.to=this.body.nodes[this.toId]||void 0,this.connected=void 0!==this.from&&void 0!==this.to,!0===this.connected?(this.from.attachEdge(this),this.to.attachEdge(this)):(this.from&&this.from.detachEdge(this),this.to&&this.to.detachEdge(this)),this.edgeType.connect()}},{key:"disconnect",value:function(){this.from&&(this.from.detachEdge(this),this.from=void 0),this.to&&(this.to.detachEdge(this),this.to=void 0),this.connected=!1}},{key:"getTitle",value:function(){return this.title}},{key:"isSelected",value:function(){return this.selected}},{key:"getValue",value:function(){return this.options.value}},{key:"setValueRange",value:function(t,e,i){if(void 0!==this.options.value){var n=this.options.scaling.customScalingFunction(t,e,i,this.options.value),g=this.options.scaling.max-this.options.scaling.min;if(!0===this.options.scaling.label.enabled){var o=this.options.scaling.label.max-this.options.scaling.label.min;this.options.font.size=this.options.scaling.label.min+n*o}this.options.width=this.options.scaling.min+n*g}else this.options.width=this.baseWidth,this.options.font.size=this.baseFontSize;this._setInteractionWidths(),this.updateLabelModule()}},{key:"_setInteractionWidths",value:function(){"function"==typeof this.options.hoverWidth?this.edgeType.hoverWidth=this.options.hoverWidth(this.options.width):this.edgeType.hoverWidth=this.options.hoverWidth+this.options.width,"function"==typeof this.options.selectionWidth?this.edgeType.selectionWidth=this.options.selectionWidth(this.options.width):this.edgeType.selectionWidth=this.options.selectionWidth+this.options.width}},{key:"draw",value:function(t){var e=this.getFormattingValues();if(!e.hidden){var i=this.edgeType.getViaNode(),n={};this.edgeType.fromPoint=this.edgeType.from,this.edgeType.toPoint=this.edgeType.to,e.fromArrow&&(n.from=this.edgeType.getArrowData(t,"from",i,this.selected,this.hover,e),!1===e.arrowStrikethrough&&(this.edgeType.fromPoint=n.from.core),e.fromArrowSrc&&(n.from.image=this.imagelist.load(e.fromArrowSrc)),e.fromArrowImageWidth&&(n.from.imageWidth=e.fromArrowImageWidth),e.fromArrowImageHeight&&(n.from.imageHeight=e.fromArrowImageHeight)),e.toArrow&&(n.to=this.edgeType.getArrowData(t,"to",i,this.selected,this.hover,e),!1===e.arrowStrikethrough&&(this.edgeType.toPoint=n.to.core),e.toArrowSrc&&(n.to.image=this.imagelist.load(e.toArrowSrc)),e.toArrowImageWidth&&(n.to.imageWidth=e.toArrowImageWidth),e.toArrowImageHeight&&(n.to.imageHeight=e.toArrowImageHeight)),e.middleArrow&&(n.middle=this.edgeType.getArrowData(t,"middle",i,this.selected,this.hover,e),e.middleArrowSrc&&(n.middle.image=this.imagelist.load(e.middleArrowSrc)),e.middleArrowImageWidth&&(n.middle.imageWidth=e.middleArrowImageWidth),e.middleArrowImageHeight&&(n.middle.imageHeight=e.middleArrowImageHeight)),this.edgeType.drawLine(t,e,this.selected,this.hover,i),this.drawArrows(t,n,e),this.drawLabel(t,i)}}},{key:"drawArrows",value:function(t,e,i){i.fromArrow&&this.edgeType.drawArrowHead(t,i,this.selected,this.hover,e.from),i.middleArrow&&this.edgeType.drawArrowHead(t,i,this.selected,this.hover,e.middle),i.toArrow&&this.edgeType.drawArrowHead(t,i,this.selected,this.hover,e.to)}},{key:"drawLabel",value:function(t,e){if(void 0!==this.options.label){var i=this.from,n=this.to;if(this.labelModule.differentState(this.selected,this.hover)&&this.labelModule.getTextSize(t,this.selected,this.hover),i.id!=n.id){this.labelModule.pointToSelf=!1;var g=this.edgeType.getPoint(.5,e);t.save();var o=this._getRotation(t);0!=o.angle&&(t.translate(o.x,o.y),t.rotate(o.angle)),this.labelModule.draw(t,g.x,g.y,this.selected,this.hover),t.restore()}else{this.labelModule.pointToSelf=!0;var r=ua.getSelfRefCoordinates(t,this.options.selfReference.angle,this.options.selfReference.size,i);g=this._pointOnCircle(r.x,r.y,this.options.selfReference.size,this.options.selfReference.angle),this.labelModule.draw(t,g.x,g.y,this.selected,this.hover)}}}},{key:"getItemsOnPoint",value:function(t){var e=[];if(this.labelModule.visible()){var i=this._getRotation();ua.pointInRect(this.labelModule.getSize(),t,i)&&e.push({edgeId:this.id,labelId:0})}var n={left:t.x,top:t.y};return this.isOverlappingWith(n)&&e.push({edgeId:this.id}),e}},{key:"isOverlappingWith",value:function(t){if(this.connected){var e=this.from.x,i=this.from.y,n=this.to.x,g=this.to.y,o=t.left,r=t.top;return this.edgeType.getDistanceToEdge(e,i,n,g,o,r)<10}return!1}},{key:"_getRotation",value:function(t){var e=this.edgeType.getViaNode(),i=this.edgeType.getPoint(.5,e);void 0!==t&&this.labelModule.calculateLabelSize(t,this.selected,this.hover,i.x,i.y);var n={x:i.x,y:this.labelModule.size.yLine,angle:0};if(!this.labelModule.visible())return n;if("horizontal"===this.options.font.align)return n;var g=this.from.y-this.to.y,o=this.from.x-this.to.x,r=Math.atan2(g,o);return(r<-1&&o<0||r>0&&o<0)&&(r+=Math.PI),n.angle=r,n}},{key:"_pointOnCircle",value:function(t,e,i,n){return{x:t+i*Math.cos(n),y:e-i*Math.sin(n)}}},{key:"select",value:function(){this.selected=!0}},{key:"unselect",value:function(){this.selected=!1}},{key:"cleanup",value:function(){return this.edgeType.cleanup()}},{key:"remove",value:function(){this.cleanup(),this.disconnect(),delete this.body.edges[this.id]}},{key:"endPointsValid",value:function(){return void 0!==this.body.nodes[this.fromId]&&void 0!==this.body.nodes[this.toId]}}],[{key:"parseOptions",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},g=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=["arrowStrikethrough","id","from","hidden","hoverWidth","labelHighlightBold","length","line","opacity","physics","scaling","selectionWidth","selfReferenceSize","selfReference","to","title","value","width","font","chosen","widthConstraint"];if(Zo(o,t,e,i),ua.isValidLabel(e.label)?t.label=e.label:ua.isValidLabel(t.label)||(t.label=void 0),ar(t,e,"smooth",n),ar(t,e,"shadow",n),ar(t,e,"background",n),void 0!==e.dashes&&null!==e.dashes?t.dashes=e.dashes:!0===i&&null===e.dashes&&(t.dashes=Dn(n.dashes)),void 0!==e.scaling&&null!==e.scaling?(void 0!==e.scaling.min&&(t.scaling.min=e.scaling.min),void 0!==e.scaling.max&&(t.scaling.max=e.scaling.max),ar(t.scaling,e.scaling,"label",n.scaling)):!0===i&&null===e.scaling&&(t.scaling=Dn(n.scaling)),void 0!==e.arrows&&null!==e.arrows)if("string"==typeof e.arrows){var r=e.arrows.toLowerCase();t.arrows.to.enabled=-1!=go(r).call(r,"to"),t.arrows.middle.enabled=-1!=go(r).call(r,"middle"),t.arrows.from.enabled=-1!=go(r).call(r,"from")}else{if("object"!==lo(e.arrows))throw new Error("The arrow newOptions can only be an object or a string. Refer to the documentation. You used:"+BC(e.arrows));ar(t.arrows,e.arrows,"to",n.arrows),ar(t.arrows,e.arrows,"middle",n.arrows),ar(t.arrows,e.arrows,"from",n.arrows)}else!0===i&&null===e.arrows&&(t.arrows=Dn(n.arrows));if(void 0!==e.color&&null!==e.color){var A=Eo(e.color)?{color:e.color,highlight:e.color,hover:e.color,inherit:!1,opacity:1}:e.color,s=t.color;if(g)Go(s,n.color,!1,i);else for(var C in s)s.hasOwnProperty(C)&&delete s[C];if(Eo(s))s.color=s,s.highlight=s,s.hover=s,s.inherit=!1,void 0===A.opacity&&(s.opacity=1);else{var I=!1;void 0!==A.color&&(s.color=A.color,I=!0),void 0!==A.highlight&&(s.highlight=A.highlight,I=!0),void 0!==A.hover&&(s.hover=A.hover,I=!0),void 0!==A.inherit&&(s.inherit=A.inherit),void 0!==A.opacity&&(s.opacity=Math.min(1,Math.max(0,A.opacity))),!0===I?s.inherit=!1:void 0===s.inherit&&(s.inherit="from")}}else!0===i&&null===e.color&&(t.color=Ir(n.color));!0===i&&null===e.font&&(t.font=Ir(n.font)),e.hasOwnProperty("selfReferenceSize")&&(console.log("The selfReferenceSize property has been deprecated. Please use selfReference property instead. The selfReference can be set like thise selfReference:{size:30, angle:Math.PI / 4}"),t.selfReference.size=e.selfReferenceSize)}}]),t}(),ic=function(){function t(e,i,n){var g,o=this;qs(this,t),this.body=e,this.images=i,this.groups=n,this.body.functions.createEdge=et(g=this.create).call(g,this),this.edgesListeners={add:function(t,e){o.add(e.items)},update:function(t,e){o.update(e.items)},remove:function(t,e){o.remove(e.items)}},this.options={},this.defaultOptions={arrows:{to:{enabled:!1,scaleFactor:1,type:"arrow"},middle:{enabled:!1,scaleFactor:1,type:"arrow"},from:{enabled:!1,scaleFactor:1,type:"arrow"}},arrowStrikethrough:!0,color:{color:"#848484",highlight:"#848484",hover:"#848484",inherit:"from",opacity:1},dashes:!1,font:{color:"#343434",size:14,face:"arial",background:"none",strokeWidth:2,strokeColor:"#ffffff",align:"horizontal",multi:!1,vadjust:0,bold:{mod:"bold"},boldital:{mod:"bold italic"},ital:{mod:"italic"},mono:{mod:"",size:15,face:"courier new",vadjust:2}},hidden:!1,hoverWidth:1.5,label:void 0,labelHighlightBold:!0,length:void 0,physics:!0,scaling:{min:1,max:15,label:{enabled:!0,min:14,max:30,maxVisible:30,drawThreshold:5},customScalingFunction:function(t,e,i,n){if(e===t)return.5;var g=1/(e-t);return Math.max(0,(n-t)*g)}},selectionWidth:1.5,selfReference:{size:20,angle:Math.PI/4,renderBehindTheNode:!0},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:10,x:5,y:5},background:{enabled:!1,color:"rgba(111,111,111,1)",size:10,dashes:!1},smooth:{enabled:!0,type:"dynamic",forceDirection:"none",roundness:.5},title:void 0,width:1,value:void 0},Go(this.options,this.defaultOptions),this.bindEventListeners()}return tC(t,[{key:"bindEventListeners",value:function(){var t,e,i=this;this.body.emitter.on("_forceDisableDynamicCurves",(function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];"dynamic"===t&&(t="continuous");var n=!1;for(var g in i.body.edges)if(i.body.edges.hasOwnProperty(g)){var o=i.body.edges[g],r=i.body.data.edges.get(g);if(null!=r){var A=r.smooth;void 0!==A&&!0===A.enabled&&"dynamic"===A.type&&(void 0===t?o.setOptions({smooth:!1}):o.setOptions({smooth:{type:t}}),n=!0)}}!0===e&&!0===n&&i.body.emitter.emit("_dataChanged")})),this.body.emitter.on("_dataUpdated",(function(){i.reconnectEdges()})),this.body.emitter.on("refreshEdges",et(t=this.refresh).call(t,this)),this.body.emitter.on("refresh",et(e=this.refresh).call(e,this)),this.body.emitter.on("destroy",(function(){Yo(i.edgesListeners,(function(t,e){i.body.data.edges&&i.body.data.edges.off(e,t)})),delete i.body.functions.createEdge,delete i.edgesListeners.add,delete i.edgesListeners.update,delete i.edgesListeners.remove,delete i.edgesListeners}))}},{key:"setOptions",value:function(t){if(void 0!==t){ec.parseOptions(this.options,t,!0,this.defaultOptions,!0);var e=!1;if(void 0!==t.smooth)for(var i in this.body.edges)this.body.edges.hasOwnProperty(i)&&(e=this.body.edges[i].updateEdgeType()||e);if(void 0!==t.font)for(var n in this.body.edges)this.body.edges.hasOwnProperty(n)&&this.body.edges[n].updateLabelModule();void 0===t.hidden&&void 0===t.physics&&!0!==e||this.body.emitter.emit("_dataChanged")}}},{key:"setData",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.body.data.edges;if(t instanceof na||t instanceof ga)this.body.data.edges=t;else if(oo(t))this.body.data.edges=new na,this.body.data.edges.add(t);else{if(t)throw new TypeError("Array or DataSet expected");this.body.data.edges=new na}if(n&&Yo(this.edgesListeners,(function(t,e){n.off(e,t)})),this.body.edges={},this.body.data.edges){Yo(this.edgesListeners,(function(t,i){e.body.data.edges.on(i,t)}));var g=this.body.data.edges.getIds();this.add(g,!0)}this.body.emitter.emit("_adjustEdgesForHierarchicalLayout"),!1===i&&this.body.emitter.emit("_dataChanged")}},{key:"add",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.body.edges,n=this.body.data.edges,g=0;g<t.length;g++){var o=t[g],r=i[o];r&&r.disconnect();var A=n.get(o,{showInternalIds:!0});i[o]=this.create(A)}this.body.emitter.emit("_adjustEdgesForHierarchicalLayout"),!1===e&&this.body.emitter.emit("_dataChanged")}},{key:"update",value:function(t){for(var e=this.body.edges,i=this.body.data.edges,n=!1,g=0;g<t.length;g++){var o=t[g],r=i.get(o),A=e[o];void 0!==A?(A.disconnect(),n=A.setOptions(r)||n,A.connect()):(this.body.edges[o]=this.create(r),n=!0)}!0===n?(this.body.emitter.emit("_adjustEdgesForHierarchicalLayout"),this.body.emitter.emit("_dataChanged")):this.body.emitter.emit("_dataUpdated")}},{key:"remove",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(0!==t.length){var i=this.body.edges;Yo(t,(function(t){var e=i[t];void 0!==e&&e.remove()})),e&&this.body.emitter.emit("_dataChanged")}}},{key:"refresh",value:function(){var t=this;Yo(this.body.edges,(function(e,i){var n=t.body.data.edges.get(i);void 0!==n&&e.setOptions(n)}))}},{key:"create",value:function(t){return new ec(t,this.body,this.images,this.options,this.defaultOptions)}},{key:"reconnectEdges",value:function(){var t,e=this.body.nodes,i=this.body.edges;for(t in e)e.hasOwnProperty(t)&&(e[t].edges=[]);for(t in i)if(i.hasOwnProperty(t)){var n=i[t];n.from=null,n.to=null,n.connect()}}},{key:"getConnectedNodes",value:function(t){var e=[];if(void 0!==this.body.edges[t]){var i=this.body.edges[t];void 0!==i.fromId&&e.push(i.fromId),void 0!==i.toId&&e.push(i.toId)}return e}},{key:"_updateState",value:function(){this._addMissingEdges(),this._removeInvalidEdges()}},{key:"_removeInvalidEdges",value:function(){var t=this,e=[];Yo(this.body.edges,(function(i,n){var g=t.body.nodes[i.toId],o=t.body.nodes[i.fromId];void 0!==g&&!0===g.isCluster||void 0!==o&&!0===o.isCluster||void 0!==g&&void 0!==o||e.push(n)})),this.remove(e,!1)}},{key:"_addMissingEdges",value:function(){var t=this.body.data.edges;if(null!=t){var e=this.body.edges,i=[];eg(t).call(t,(function(t,n){void 0===e[n]&&i.push(n)})),this.add(i,!0)}}}]),t}(),nc=function(){function t(e,i,n){qs(this,t),this.body=e,this.physicsBody=i,this.barnesHutTree,this.setOptions(n),this._rng=xo("BARNES HUT SOLVER")}return tC(t,[{key:"setOptions",value:function(t){this.options=t,this.thetaInversed=1/this.options.theta,this.overlapAvoidanceFactor=1-Math.max(0,Math.min(1,this.options.avoidOverlap))}},{key:"solve",value:function(){if(0!==this.options.gravitationalConstant&&this.physicsBody.physicsNodeIndices.length>0){var t,e=this.body.nodes,i=this.physicsBody.physicsNodeIndices,n=i.length,g=this._formBarnesHutTree(e,i);this.barnesHutTree=g;for(var o=0;o<n;o++)(t=e[i[o]]).options.mass>0&&this._getForceContributions(g.root,t)}}},{key:"_getForceContributions",value:function(t,e){this._getForceContribution(t.children.NW,e),this._getForceContribution(t.children.NE,e),this._getForceContribution(t.children.SW,e),this._getForceContribution(t.children.SE,e)}},{key:"_getForceContribution",value:function(t,e){var i,n,g;t.childrenCount>0&&(i=t.centerOfMass.x-e.x,n=t.centerOfMass.y-e.y,(g=Math.sqrt(i*i+n*n))*t.calcSize>this.thetaInversed?this._calculateForces(g,i,n,e,t):4===t.childrenCount?this._getForceContributions(t,e):t.children.data.id!=e.id&&this._calculateForces(g,i,n,e,t))}},{key:"_calculateForces",value:function(t,e,i,n,g){0===t&&(e=t=.1),this.overlapAvoidanceFactor<1&&n.shape.radius&&(t=Math.max(.1+this.overlapAvoidanceFactor*n.shape.radius,t-n.shape.radius));var o=this.options.gravitationalConstant*g.mass*n.options.mass/Math.pow(t,3),r=e*o,A=i*o;this.physicsBody.forces[n.id].x+=r,this.physicsBody.forces[n.id].y+=A}},{key:"_formBarnesHutTree",value:function(t,e){for(var i,n=e.length,g=t[e[0]].x,o=t[e[0]].y,r=t[e[0]].x,A=t[e[0]].y,s=1;s<n;s++){var C=t[e[s]],I=C.x,a=C.y;C.options.mass>0&&(I<g&&(g=I),I>r&&(r=I),a<o&&(o=a),a>A&&(A=a))}var l=Math.abs(r-g)-Math.abs(A-o);l>0?(o-=.5*l,A+=.5*l):(g+=.5*l,r-=.5*l);var c=Math.max(1e-5,Math.abs(r-g)),u=.5*c,d=.5*(g+r),h=.5*(o+A),p={root:{centerOfMass:{x:0,y:0},mass:0,range:{minX:d-u,maxX:d+u,minY:h-u,maxY:h+u},size:c,calcSize:1/c,children:{data:null},maxWidth:0,level:0,childrenCount:4}};this._splitBranch(p.root);for(var f=0;f<n;f++)(i=t[e[f]]).options.mass>0&&this._placeInTree(p.root,i);return p}},{key:"_updateBranchMass",value:function(t,e){var i=t.centerOfMass,n=t.mass+e.options.mass,g=1/n;i.x=i.x*t.mass+e.x*e.options.mass,i.x*=g,i.y=i.y*t.mass+e.y*e.options.mass,i.y*=g,t.mass=n;var o=Math.max(Math.max(e.height,e.radius),e.width);t.maxWidth=t.maxWidth<o?o:t.maxWidth}},{key:"_placeInTree",value:function(t,e,i){1==i&&void 0!==i||this._updateBranchMass(t,e);var n,g=t.children.NW.range;n=g.maxX>e.x?g.maxY>e.y?"NW":"SW":g.maxY>e.y?"NE":"SE",this._placeInRegion(t,e,n)}},{key:"_placeInRegion",value:function(t,e,i){var n=t.children[i];switch(n.childrenCount){case 0:n.children.data=e,n.childrenCount=1,this._updateBranchMass(n,e);break;case 1:n.children.data.x===e.x&&n.children.data.y===e.y?(e.x+=this._rng(),e.y+=this._rng()):(this._splitBranch(n),this._placeInTree(n,e));break;case 4:this._placeInTree(n,e)}}},{key:"_splitBranch",value:function(t){var e=null;1===t.childrenCount&&(e=t.children.data,t.mass=0,t.centerOfMass.x=0,t.centerOfMass.y=0),t.childrenCount=4,t.children.data=null,this._insertRegion(t,"NW"),this._insertRegion(t,"NE"),this._insertRegion(t,"SW"),this._insertRegion(t,"SE"),null!=e&&this._placeInTree(t,e)}},{key:"_insertRegion",value:function(t,e){var i,n,g,o,r=.5*t.size;switch(e){case"NW":i=t.range.minX,n=t.range.minX+r,g=t.range.minY,o=t.range.minY+r;break;case"NE":i=t.range.minX+r,n=t.range.maxX,g=t.range.minY,o=t.range.minY+r;break;case"SW":i=t.range.minX,n=t.range.minX+r,g=t.range.minY+r,o=t.range.maxY;break;case"SE":i=t.range.minX+r,n=t.range.maxX,g=t.range.minY+r,o=t.range.maxY}t.children[e]={centerOfMass:{x:0,y:0},mass:0,range:{minX:i,maxX:n,minY:g,maxY:o},size:.5*t.size,calcSize:2*t.calcSize,children:{data:null},maxWidth:0,level:t.level+1,childrenCount:0}}},{key:"_debug",value:function(t,e){void 0!==this.barnesHutTree&&(t.lineWidth=1,this._drawBranch(this.barnesHutTree.root,t,e))}},{key:"_drawBranch",value:function(t,e,i){void 0===i&&(i="#FF0000"),4===t.childrenCount&&(this._drawBranch(t.children.NW,e),this._drawBranch(t.children.NE,e),this._drawBranch(t.children.SE,e),this._drawBranch(t.children.SW,e)),e.strokeStyle=i,e.beginPath(),e.moveTo(t.range.minX,t.range.minY),e.lineTo(t.range.maxX,t.range.minY),e.stroke(),e.beginPath(),e.moveTo(t.range.maxX,t.range.minY),e.lineTo(t.range.maxX,t.range.maxY),e.stroke(),e.beginPath(),e.moveTo(t.range.maxX,t.range.maxY),e.lineTo(t.range.minX,t.range.maxY),e.stroke(),e.beginPath(),e.moveTo(t.range.minX,t.range.maxY),e.lineTo(t.range.minX,t.range.minY),e.stroke()}}]),t}(),gc=function(){function t(e,i,n){qs(this,t),this._rng=xo("REPULSION SOLVER"),this.body=e,this.physicsBody=i,this.setOptions(n)}return tC(t,[{key:"setOptions",value:function(t){this.options=t}},{key:"solve",value:function(){for(var t,e,i,n,g,o,r,A,s=this.body.nodes,C=this.physicsBody.physicsNodeIndices,I=this.physicsBody.forces,a=this.options.nodeDistance,l=-2/3/a,c=0;c<C.length-1;c++){r=s[C[c]];for(var u=c+1;u<C.length;u++)t=(A=s[C[u]]).x-r.x,e=A.y-r.y,0===(i=Math.sqrt(t*t+e*e))&&(t=i=.1*this._rng()),i<2*a&&(o=i<.5*a?1:l*i+4/3,n=t*(o/=i),g=e*o,I[r.id].x-=n,I[r.id].y-=g,I[A.id].x+=n,I[A.id].y+=g)}}}]),t}(),oc=function(){function t(e,i,n){qs(this,t),this.body=e,this.physicsBody=i,this.setOptions(n)}return tC(t,[{key:"setOptions",value:function(t){this.options=t,this.overlapAvoidanceFactor=Math.max(0,Math.min(1,this.options.avoidOverlap||0))}},{key:"solve",value:function(){for(var t=this.body.nodes,e=this.physicsBody.physicsNodeIndices,i=this.physicsBody.forces,n=this.options.nodeDistance,g=0;g<e.length-1;g++)for(var o=t[e[g]],r=g+1;r<e.length;r++){var A=t[e[r]];if(o.level===A.level){var s=n+this.overlapAvoidanceFactor*((o.shape.radius||0)/2+(A.shape.radius||0)/2),C=A.x-o.x,I=A.y-o.y,a=Math.sqrt(C*C+I*I),l=void 0;l=a<s?-Math.pow(.05*a,2)+Math.pow(.05*s,2):0,0!==a&&(l/=a);var c=C*l,u=I*l;i[o.id].x-=c,i[o.id].y-=u,i[A.id].x+=c,i[A.id].y+=u}}}}]),t}(),rc=function(){function t(e,i,n){qs(this,t),this.body=e,this.physicsBody=i,this.setOptions(n)}return tC(t,[{key:"setOptions",value:function(t){this.options=t}},{key:"solve",value:function(){for(var t,e,i,n,g,o=this.physicsBody.physicsEdgeIndices,r=this.body.edges,A=0;A<o.length;A++)!0===(e=r[o[A]]).connected&&e.toId!==e.fromId&&void 0!==this.body.nodes[e.toId]&&void 0!==this.body.nodes[e.fromId]&&(void 0!==e.edgeType.via?(t=void 0===e.options.length?this.options.springLength:e.options.length,i=e.to,n=e.edgeType.via,g=e.from,this._calculateSpringForce(i,n,.5*t),this._calculateSpringForce(n,g,.5*t)):(t=void 0===e.options.length?1.5*this.options.springLength:e.options.length,this._calculateSpringForce(e.from,e.to,t)))}},{key:"_calculateSpringForce",value:function(t,e,i){var n=t.x-e.x,g=t.y-e.y,o=Math.max(Math.sqrt(n*n+g*g),.01),r=this.options.springConstant*(i-o)/o,A=n*r,s=g*r;void 0!==this.physicsBody.forces[t.id]&&(this.physicsBody.forces[t.id].x+=A,this.physicsBody.forces[t.id].y+=s),void 0!==this.physicsBody.forces[e.id]&&(this.physicsBody.forces[e.id].x-=A,this.physicsBody.forces[e.id].y-=s)}}]),t}(),Ac=function(){function t(e,i,n){qs(this,t),this.body=e,this.physicsBody=i,this.setOptions(n)}return tC(t,[{key:"setOptions",value:function(t){this.options=t}},{key:"solve",value:function(){for(var t,e,i,n,g,o,r,A,s,C,I=this.body.edges,a=this.physicsBody.physicsEdgeIndices,l=this.physicsBody.physicsNodeIndices,c=this.physicsBody.forces,u=0;u<l.length;u++){var d=l[u];c[d].springFx=0,c[d].springFy=0}for(var h=0;h<a.length;h++)!0===(e=I[a[h]]).connected&&(t=void 0===e.options.length?this.options.springLength:e.options.length,i=e.from.x-e.to.x,n=e.from.y-e.to.y,A=0===(A=Math.sqrt(i*i+n*n))?.01:A,g=i*(r=this.options.springConstant*(t-A)/A),o=n*r,e.to.level!=e.from.level?(void 0!==c[e.toId]&&(c[e.toId].springFx-=g,c[e.toId].springFy-=o),void 0!==c[e.fromId]&&(c[e.fromId].springFx+=g,c[e.fromId].springFy+=o)):(void 0!==c[e.toId]&&(c[e.toId].x-=.5*g,c[e.toId].y-=.5*o),void 0!==c[e.fromId]&&(c[e.fromId].x+=.5*g,c[e.fromId].y+=.5*o)));r=1;for(var p=0;p<l.length;p++){var f=l[p];s=Math.min(r,Math.max(-r,c[f].springFx)),C=Math.min(r,Math.max(-r,c[f].springFy)),c[f].x+=s,c[f].y+=C}for(var v=0,y=0,m=0;m<l.length;m++){var b=l[m];v+=c[b].x,y+=c[b].y}for(var x=v/l.length,w=y/l.length,k=0;k<l.length;k++){var O=l[k];c[O].x-=x,c[O].y-=w}}}]),t}(),sc=function(){function t(e,i,n){qs(this,t),this.body=e,this.physicsBody=i,this.setOptions(n)}return tC(t,[{key:"setOptions",value:function(t){this.options=t}},{key:"solve",value:function(){for(var t,e,i,n,g=this.body.nodes,o=this.physicsBody.physicsNodeIndices,r=this.physicsBody.forces,A=0;A<o.length;A++){t=-(n=g[o[A]]).x,e=-n.y,i=Math.sqrt(t*t+e*e),this._calculateForces(i,t,e,r,n)}}},{key:"_calculateForces",value:function(t,e,i,n,g){var o=0===t?0:this.options.centralGravity/t;n[g.id].x=e*o,n[g.id].y=i*o}}]),t}();function Cc(t){var e=function(){if("undefined"==typeof Reflect||!xC)return!1;if(xC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(xC(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=HC(t);if(e){var g=HC(this).constructor;i=xC(n,arguments,g)}else i=n.apply(this,arguments);return VC(this,i)}}var Ic=function(t){YC(i,t);var e=Cc(i);function i(t,n,g){var o;return qs(this,i),(o=e.call(this,t,n,g))._rng=xo("FORCE ATLAS 2 BASED REPULSION SOLVER"),o}return tC(i,[{key:"_calculateForces",value:function(t,e,i,n,g){0===t&&(e=t=.1*this._rng()),this.overlapAvoidanceFactor<1&&n.shape.radius&&(t=Math.max(.1+this.overlapAvoidanceFactor*n.shape.radius,t-n.shape.radius));var o=n.edges.length+1,r=this.options.gravitationalConstant*g.mass*n.options.mass*o/Math.pow(t,2),A=e*r,s=i*r;this.physicsBody.forces[n.id].x+=A,this.physicsBody.forces[n.id].y+=s}}]),i}(nc);function ac(t){var e=function(){if("undefined"==typeof Reflect||!xC)return!1;if(xC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(xC(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=HC(t);if(e){var g=HC(this).constructor;i=xC(n,arguments,g)}else i=n.apply(this,arguments);return VC(this,i)}}var lc=function(t){YC(i,t);var e=ac(i);function i(t,n,g){return qs(this,i),e.call(this,t,n,g)}return tC(i,[{key:"_calculateForces",value:function(t,e,i,n,g){if(t>0){var o=g.edges.length+1,r=this.options.centralGravity*o*g.options.mass;n[g.id].x=e*r,n[g.id].y=i*r}}}]),i}(sc),cc=function(){function t(e){qs(this,t),this.body=e,this.physicsBody={physicsNodeIndices:[],physicsEdgeIndices:[],forces:{},velocities:{}},this.physicsEnabled=!0,this.simulationInterval=1e3/60,this.requiresTimeout=!0,this.previousStates={},this.referenceState={},this.freezeCache={},this.renderTimer=void 0,this.adaptiveTimestep=!1,this.adaptiveTimestepEnabled=!1,this.adaptiveCounter=0,this.adaptiveInterval=3,this.stabilized=!1,this.startedStabilization=!1,this.stabilizationIterations=0,this.ready=!1,this.options={},this.defaultOptions={enabled:!0,barnesHut:{theta:.5,gravitationalConstant:-2e3,centralGravity:.3,springLength:95,springConstant:.04,damping:.09,avoidOverlap:0},forceAtlas2Based:{theta:.5,gravitationalConstant:-50,centralGravity:.01,springConstant:.08,springLength:100,damping:.4,avoidOverlap:0},repulsion:{centralGravity:.2,springLength:200,springConstant:.05,nodeDistance:100,damping:.09,avoidOverlap:0},hierarchicalRepulsion:{centralGravity:0,springLength:100,springConstant:.01,nodeDistance:120,damping:.09},maxVelocity:50,minVelocity:.75,solver:"barnesHut",stabilization:{enabled:!0,iterations:1e3,updateInterval:50,onlyDynamicEdges:!1,fit:!0},timestep:.5,adaptiveTimestep:!0,wind:{x:0,y:0}},So(this.options,this.defaultOptions),this.timestep=.5,this.layoutFailed=!1,this.bindEventListeners()}return tC(t,[{key:"bindEventListeners",value:function(){var t=this;this.body.emitter.on("initPhysics",(function(){t.initPhysics()})),this.body.emitter.on("_layoutFailed",(function(){t.layoutFailed=!0})),this.body.emitter.on("resetPhysics",(function(){t.stopSimulation(),t.ready=!1})),this.body.emitter.on("disablePhysics",(function(){t.physicsEnabled=!1,t.stopSimulation()})),this.body.emitter.on("restorePhysics",(function(){t.setOptions(t.options),!0===t.ready&&t.startSimulation()})),this.body.emitter.on("startSimulation",(function(){!0===t.ready&&t.startSimulation()})),this.body.emitter.on("stopSimulation",(function(){t.stopSimulation()})),this.body.emitter.on("destroy",(function(){t.stopSimulation(!1),t.body.emitter.off()})),this.body.emitter.on("_dataChanged",(function(){t.updatePhysicsData()}))}},{key:"setOptions",value:function(t){if(void 0!==t)if(!1===t)this.options.enabled=!1,this.physicsEnabled=!1,this.stopSimulation();else if(!0===t)this.options.enabled=!0,this.physicsEnabled=!0,this.startSimulation();else{this.physicsEnabled=!0,zo(["stabilization"],this.options,t),ar(this.options,t,"stabilization"),void 0===t.enabled&&(this.options.enabled=!0),!1===this.options.enabled&&(this.physicsEnabled=!1,this.stopSimulation());var e=this.options.wind;e&&(("number"!=typeof e.x||pC(e.x))&&(e.x=0),("number"!=typeof e.y||pC(e.y))&&(e.y=0)),this.timestep=this.options.timestep}this.init()}},{key:"init",value:function(){var t;"forceAtlas2Based"===this.options.solver?(t=this.options.forceAtlas2Based,this.nodesSolver=new Ic(this.body,this.physicsBody,t),this.edgesSolver=new rc(this.body,this.physicsBody,t),this.gravitySolver=new lc(this.body,this.physicsBody,t)):"repulsion"===this.options.solver?(t=this.options.repulsion,this.nodesSolver=new gc(this.body,this.physicsBody,t),this.edgesSolver=new rc(this.body,this.physicsBody,t),this.gravitySolver=new sc(this.body,this.physicsBody,t)):"hierarchicalRepulsion"===this.options.solver?(t=this.options.hierarchicalRepulsion,this.nodesSolver=new oc(this.body,this.physicsBody,t),this.edgesSolver=new Ac(this.body,this.physicsBody,t),this.gravitySolver=new sc(this.body,this.physicsBody,t)):(t=this.options.barnesHut,this.nodesSolver=new nc(this.body,this.physicsBody,t),this.edgesSolver=new rc(this.body,this.physicsBody,t),this.gravitySolver=new sc(this.body,this.physicsBody,t)),this.modelOptions=t}},{key:"initPhysics",value:function(){!0===this.physicsEnabled&&!0===this.options.enabled?!0===this.options.stabilization.enabled?this.stabilize():(this.stabilized=!1,this.ready=!0,this.body.emitter.emit("fit",{},this.layoutFailed),this.startSimulation()):(this.ready=!0,this.body.emitter.emit("fit"))}},{key:"startSimulation",value:function(){var t;!0===this.physicsEnabled&&!0===this.options.enabled?(this.stabilized=!1,this.adaptiveTimestep=!1,this.body.emitter.emit("_resizeNodes"),void 0===this.viewFunction&&(this.viewFunction=et(t=this.simulationStep).call(t,this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering"))):this.body.emitter.emit("_redraw")}},{key:"stopSimulation",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.stabilized=!0,!0===t&&this._emitStabilized(),void 0!==this.viewFunction&&(this.body.emitter.off("initRedraw",this.viewFunction),this.viewFunction=void 0,!0===t&&this.body.emitter.emit("_stopRendering"))}},{key:"simulationStep",value:function(){var t=fo();this.physicsTick(),(fo()-t<.4*this.simulationInterval||!0===this.runDoubleSpeed)&&!1===this.stabilized&&(this.physicsTick(),this.runDoubleSpeed=!0),!0===this.stabilized&&this.stopSimulation()}},{key:"_emitStabilized",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.stabilizationIterations;(this.stabilizationIterations>1||!0===this.startedStabilization)&&AC((function(){t.body.emitter.emit("stabilized",{iterations:e}),t.startedStabilization=!1,t.stabilizationIterations=0}),0)}},{key:"physicsStep",value:function(){this.gravitySolver.solve(),this.nodesSolver.solve(),this.edgesSolver.solve(),this.moveNodes()}},{key:"adjustTimeStep",value:function(){!0===this._evaluateStepQuality()?this.timestep=1.2*this.timestep:this.timestep/1.2<this.options.timestep?this.timestep=this.options.timestep:(this.adaptiveCounter=-1,this.timestep=Math.max(this.options.timestep,this.timestep/1.2))}},{key:"physicsTick",value:function(){if(this._startStabilizing(),!0!==this.stabilized){if(!0===this.adaptiveTimestep&&!0===this.adaptiveTimestepEnabled)this.adaptiveCounter%this.adaptiveInterval==0?(this.timestep=2*this.timestep,this.physicsStep(),this.revert(),this.timestep=.5*this.timestep,this.physicsStep(),this.physicsStep(),this.adjustTimeStep()):this.physicsStep(),this.adaptiveCounter+=1;else this.timestep=this.options.timestep,this.physicsStep();!0===this.stabilized&&this.revert(),this.stabilizationIterations++}}},{key:"updatePhysicsData",value:function(){this.physicsBody.forces={},this.physicsBody.physicsNodeIndices=[],this.physicsBody.physicsEdgeIndices=[];var t=this.body.nodes,e=this.body.edges;for(var i in t)t.hasOwnProperty(i)&&!0===t[i].options.physics&&this.physicsBody.physicsNodeIndices.push(t[i].id);for(var n in e)e.hasOwnProperty(n)&&!0===e[n].options.physics&&this.physicsBody.physicsEdgeIndices.push(e[n].id);for(var g=0;g<this.physicsBody.physicsNodeIndices.length;g++){var o=this.physicsBody.physicsNodeIndices[g];this.physicsBody.forces[o]={x:0,y:0},void 0===this.physicsBody.velocities[o]&&(this.physicsBody.velocities[o]={x:0,y:0})}for(var r in this.physicsBody.velocities)void 0===t[r]&&delete this.physicsBody.velocities[r]}},{key:"revert",value:function(){var t=jn(this.previousStates),e=this.body.nodes,i=this.physicsBody.velocities;this.referenceState={};for(var n=0;n<t.length;n++){var g=t[n];void 0!==e[g]?!0===e[g].options.physics&&(this.referenceState[g]={positions:{x:e[g].x,y:e[g].y}},i[g].x=this.previousStates[g].vx,i[g].y=this.previousStates[g].vy,e[g].x=this.previousStates[g].x,e[g].y=this.previousStates[g].y):delete this.previousStates[g]}}},{key:"_evaluateStepQuality",value:function(){var t,e,i=this.body.nodes,n=this.referenceState;for(var g in this.referenceState)if(this.referenceState.hasOwnProperty(g)&&void 0!==i[g]&&(t=i[g].x-n[g].positions.x,e=i[g].y-n[g].positions.y,Math.sqrt(Math.pow(t,2)+Math.pow(e,2))>.3))return!1;return!0}},{key:"moveNodes",value:function(){for(var t=this.physicsBody.physicsNodeIndices,e=0,i=0,n=0;n<t.length;n++){var g=t[n],o=this._performStep(g);e=Math.max(e,o),i+=o}this.adaptiveTimestepEnabled=i/t.length<5,this.stabilized=e<this.options.minVelocity}},{key:"calculateComponentVelocity",value:function(t,e,i){t+=(e-this.modelOptions.damping*t)/i*this.timestep;var n=this.options.maxVelocity||1e9;return Math.abs(t)>n&&(t=t>0?n:-n),t}},{key:"_performStep",value:function(t){var e=this.body.nodes[t],i=this.physicsBody.forces[t];this.options.wind&&(i.x+=this.options.wind.x,i.y+=this.options.wind.y);var n=this.physicsBody.velocities[t];return this.previousStates[t]={x:e.x,y:e.y,vx:n.x,vy:n.y},!1===e.options.fixed.x?(n.x=this.calculateComponentVelocity(n.x,i.x,e.options.mass),e.x+=n.x*this.timestep):(i.x=0,n.x=0),!1===e.options.fixed.y?(n.y=this.calculateComponentVelocity(n.y,i.y,e.options.mass),e.y+=n.y*this.timestep):(i.y=0,n.y=0),Math.sqrt(Math.pow(n.x,2)+Math.pow(n.y,2))}},{key:"_freezeNodes",value:function(){var t=this.body.nodes;for(var e in t)if(t.hasOwnProperty(e)&&t[e].x&&t[e].y){var i=t[e].options.fixed;this.freezeCache[e]={x:i.x,y:i.y},i.x=!0,i.y=!0}}},{key:"_restoreFrozenNodes",value:function(){var t=this.body.nodes;for(var e in t)t.hasOwnProperty(e)&&void 0!==this.freezeCache[e]&&(t[e].options.fixed.x=this.freezeCache[e].x,t[e].options.fixed.y=this.freezeCache[e].y);this.freezeCache={}}},{key:"stabilize",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.stabilization.iterations;"number"!=typeof e&&(e=this.options.stabilization.iterations,console.log("The stabilize method needs a numeric amount of iterations. Switching to default: ",e)),0!==this.physicsBody.physicsNodeIndices.length?(this.adaptiveTimestep=this.options.adaptiveTimestep,this.body.emitter.emit("_resizeNodes"),this.stopSimulation(),this.stabilized=!1,this.body.emitter.emit("_blockRedraw"),this.targetIterations=e,!0===this.options.stabilization.onlyDynamicEdges&&this._freezeNodes(),this.stabilizationIterations=0,AC((function(){return t._stabilizationBatch()}),0)):this.ready=!0}},{key:"_startStabilizing",value:function(){return!0!==this.startedStabilization&&(this.body.emitter.emit("startStabilizing"),this.startedStabilization=!0,!0)}},{key:"_stabilizationBatch",value:function(){var t=this,e=function(){return!1===t.stabilized&&t.stabilizationIterations<t.targetIterations},i=function(){t.body.emitter.emit("stabilizationProgress",{iterations:t.stabilizationIterations,total:t.targetIterations})};this._startStabilizing()&&i();for(var n,g=0;e()&&g<this.options.stabilization.updateInterval;)this.physicsTick(),g++;(i(),e())?AC(et(n=this._stabilizationBatch).call(n,this),0):this._finalizeStabilization()}},{key:"_finalizeStabilization",value:function(){this.body.emitter.emit("_allowRedraw"),!0===this.options.stabilization.fit&&this.body.emitter.emit("fit"),!0===this.options.stabilization.onlyDynamicEdges&&this._restoreFrozenNodes(),this.body.emitter.emit("stabilizationIterationsDone"),this.body.emitter.emit("_requestRedraw"),!0===this.stabilized?this._emitStabilized():this.startSimulation(),this.ready=!0}},{key:"_drawForces",value:function(t){for(var e=0;e<this.physicsBody.physicsNodeIndices.length;e++){var i=this.physicsBody.physicsNodeIndices[e],n=this.body.nodes[i],g=this.physicsBody.forces[i],o=Math.sqrt(Math.pow(g.x,2)+Math.pow(g.x,2)),r=Math.min(Math.max(5,o),15),A=3*r,s=or((180-180*Math.min(1,Math.max(0,.03*o)))/360,1,1),C={x:n.x+20*g.x,y:n.y+20*g.y};t.lineWidth=r,t.strokeStyle=s,t.beginPath(),t.moveTo(n.x,n.y),t.lineTo(C.x,C.y),t.stroke();var I=Math.atan2(g.y,g.x);t.fillStyle=s,Zl.draw(t,{type:"arrow",point:C,angle:I,length:A}),xa(t).call(t)}}}]),t}(),uc=[].reverse,dc=[1,2];V({target:"Array",proto:!0,forced:String(dc)===String(dc.reverse())},{reverse:function(){return qe(this)&&(this.length=this.length),uc.call(this)}});var hc=q("Array").reverse,pc=Array.prototype,fc=function(t){var e=t.reverse;return t===pc||t instanceof Array&&e===pc.reverse?hc:e},vc=function(){function t(){qs(this,t)}return tC(t,null,[{key:"getRange",value:function(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=1e9,g=-1e9,o=1e9,r=-1e9;if(i.length>0)for(var A=0;A<i.length;A++)o>(e=t[i[A]]).shape.boundingBox.left&&(o=e.shape.boundingBox.left),r<e.shape.boundingBox.right&&(r=e.shape.boundingBox.right),n>e.shape.boundingBox.top&&(n=e.shape.boundingBox.top),g<e.shape.boundingBox.bottom&&(g=e.shape.boundingBox.bottom);return 1e9===o&&-1e9===r&&1e9===n&&-1e9===g&&(n=0,g=0,o=0,r=0),{minX:o,maxX:r,minY:n,maxY:g}}},{key:"getRangeCore",value:function(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=1e9,g=-1e9,o=1e9,r=-1e9;if(i.length>0)for(var A=0;A<i.length;A++)o>(e=t[i[A]]).x&&(o=e.x),r<e.x&&(r=e.x),n>e.y&&(n=e.y),g<e.y&&(g=e.y);return 1e9===o&&-1e9===r&&1e9===n&&-1e9===g&&(n=0,g=0,o=0,r=0),{minX:o,maxX:r,minY:n,maxY:g}}},{key:"findCenter",value:function(t){return{x:.5*(t.maxX+t.minX),y:.5*(t.maxY+t.minY)}}},{key:"cloneOptions",value:function(t,e){var i={};return void 0===e||"node"===e?(Go(i,t.options,!0),i.x=t.x,i.y=t.y,i.amountOfConnections=t.edges.length):Go(i,t.options,!0),i}}]),t}();function yc(t){var e=function(){if("undefined"==typeof Reflect||!xC)return!1;if(xC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(xC(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=HC(t);if(e){var g=HC(this).constructor;i=xC(n,arguments,g)}else i=n.apply(this,arguments);return VC(this,i)}}var mc=function(t){YC(i,t);var e=yc(i);function i(t,n,g,o,r,A){var s;return qs(this,i),(s=e.call(this,t,n,g,o,r,A)).isCluster=!0,s.containedNodes={},s.containedEdges={},s}return tC(i,[{key:"_openChildCluster",value:function(t){var e=this,i=this.body.nodes[t];if(void 0===this.containedNodes[t])throw new Error("node with id: "+t+" not in current cluster");if(!i.isCluster)throw new Error("node with id: "+t+" is not a cluster");delete this.containedNodes[t],Yo(i.edges,(function(t){delete e.containedEdges[t.id]})),Yo(i.containedNodes,(function(t,i){e.containedNodes[i]=t})),i.containedNodes={},Yo(i.containedEdges,(function(t,i){e.containedEdges[i]=t})),i.containedEdges={},Yo(i.edges,(function(t){Yo(e.edges,(function(i){var n,g,o=go(n=i.clusteringEdgeReplacingIds).call(n,t.id);-1!==o&&(Yo(t.clusteringEdgeReplacingIds,(function(t){i.clusteringEdgeReplacingIds.push(t),e.body.edges[t].edgeReplacedById=i.id})),mr(g=i.clusteringEdgeReplacingIds).call(g,o,1))}))})),i.edges=[]}}]),i}(al),bc=function(){function t(e){var i=this;qs(this,t),this.body=e,this.clusteredNodes={},this.clusteredEdges={},this.options={},this.defaultOptions={},So(this.options,this.defaultOptions),this.body.emitter.on("_resetData",(function(){i.clusteredNodes={},i.clusteredEdges={}}))}return tC(t,[{key:"clusterByHubsize",value:function(t,e){void 0===t?t=this._getHubSize():"object"===lo(t)&&(e=this._checkOptions(t),t=this._getHubSize());for(var i=[],n=0;n<this.body.nodeIndices.length;n++){var g=this.body.nodes[this.body.nodeIndices[n]];g.edges.length>=t&&i.push(g.id)}for(var o=0;o<i.length;o++)this.clusterByConnection(i[o],e,!0);this.body.emitter.emit("_dataChanged")}},{key:"cluster",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(void 0===e.joinCondition)throw new Error("Cannot call clusterByNodeData without a joinCondition function in the options.");e=this._checkOptions(e);var n={},g={};Yo(this.body.nodes,(function(i,o){i.options&&!0===e.joinCondition(i.options)&&(n[o]=i,Yo(i.edges,(function(e){void 0===t.clusteredEdges[e.id]&&(g[e.id]=e)})))})),this._cluster(n,g,e,i)}},{key:"clusterByEdgeCount",value:function(t,e){var i=this,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];e=this._checkOptions(e);for(var g,o,r,A=[],s={},C=function(n){var C={},I={},c=i.body.nodeIndices[n],u=i.body.nodes[c];if(void 0===s[c]){r=0,o=[];for(var d=0;d<u.edges.length;d++)g=u.edges[d],void 0===i.clusteredEdges[g.id]&&(g.toId!==g.fromId&&r++,o.push(g));if(r===t){a=function(t){if(void 0===e.joinCondition||null===e.joinCondition)return!0;var i=vc.cloneOptions(t);return e.joinCondition(i)};for(var h=!0,p=0;p<o.length;p++){g=o[p];var f=i._getConnectedId(g,c);if(!a(u)){h=!1;break}I[g.id]=g,C[c]=u,C[f]=i.body.nodes[f],s[c]=!0}if(jn(C).length>0&&jn(I).length>0&&!0===h)if(void 0!==(l=function(){for(var t=0;t<A.length;++t)for(var e in C)if(void 0!==A[t].nodes[e])return A[t]}())){for(var v in C)void 0===l.nodes[v]&&(l.nodes[v]=C[v]);for(var y in I)void 0===l.edges[y]&&(l.edges[y]=I[y])}else A.push({nodes:C,edges:I})}}},I=0;I<this.body.nodeIndices.length;I++){var a,l;C(I)}for(var c=0;c<A.length;c++)this._cluster(A[c].nodes,A[c].edges,e,!1);!0===n&&this.body.emitter.emit("_dataChanged")}},{key:"clusterOutliers",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.clusterByEdgeCount(1,t,e)}},{key:"clusterBridges",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.clusterByEdgeCount(2,t,e)}},{key:"clusterByConnection",value:function(t,e){var i,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(void 0===t)throw new Error("No nodeId supplied to clusterByConnection!");if(void 0===this.body.nodes[t])throw new Error("The nodeId given to clusterByConnection does not exist!");var g=this.body.nodes[t];void 0===(e=this._checkOptions(e,g)).clusterNodeProperties.x&&(e.clusterNodeProperties.x=g.x),void 0===e.clusterNodeProperties.y&&(e.clusterNodeProperties.y=g.y),void 0===e.clusterNodeProperties.fixed&&(e.clusterNodeProperties.fixed={},e.clusterNodeProperties.fixed.x=g.options.fixed.x,e.clusterNodeProperties.fixed.y=g.options.fixed.y);var o={},r={},A=g.id,s=vc.cloneOptions(g);o[A]=g;for(var C=0;C<g.edges.length;C++){var I=g.edges[C];if(void 0===this.clusteredEdges[I.id]){var a=this._getConnectedId(I,A);if(void 0===this.clusteredNodes[a])if(a!==A)if(void 0===e.joinCondition)r[I.id]=I,o[a]=this.body.nodes[a];else{var l=vc.cloneOptions(this.body.nodes[a]);!0===e.joinCondition(s,l)&&(r[I.id]=I,o[a]=this.body.nodes[a])}else r[I.id]=I}}var c=Ag(i=jn(o)).call(i,(function(t){return o[t].id}));for(u in o)if(o.hasOwnProperty(u))for(var u=o[u],d=0;d<u.edges.length;d++){var h=u.edges[d];go(c).call(c,this._getConnectedId(h,u.id))>-1&&(r[h.id]=h)}this._cluster(o,r,e,n)}},{key:"_createClusterEdges",value:function(t,e,i,n){for(var g,o,r,A,s,C,I=jn(t),a=[],l=0;l<I.length;l++){r=t[o=I[l]];for(var c=0;c<r.edges.length;c++)g=r.edges[c],void 0===this.clusteredEdges[g.id]&&(g.toId==g.fromId?e[g.id]=g:g.toId==o?(A=i.id,C=s=g.fromId):(A=g.toId,s=i.id,C=A),void 0===t[C]&&a.push({edge:g,fromId:s,toId:A}))}for(var u=[],d=function(t){for(var e=0;e<u.length;e++){var i=u[e],n=t.fromId===i.fromId&&t.toId===i.toId,g=t.fromId===i.toId&&t.toId===i.fromId;if(n||g)return i}return null},h=0;h<a.length;h++){var p=a[h],f=p.edge,v=d(p);null===v?(v=this._createClusteredEdge(p.fromId,p.toId,f,n),u.push(v)):v.clusteringEdgeReplacingIds.push(f.id),this.body.edges[f.id].edgeReplacedById=v.id,this._backupEdgeOptions(f),f.setOptions({physics:!1})}}},{key:"_checkOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return void 0===t.clusterEdgeProperties&&(t.clusterEdgeProperties={}),void 0===t.clusterNodeProperties&&(t.clusterNodeProperties={}),t}},{key:"_cluster",value:function(t,e,i){var n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],g=[];for(var o in t)t.hasOwnProperty(o)&&void 0!==this.clusteredNodes[o]&&g.push(o);for(var r=0;r<g.length;++r)delete t[g[r]];if(0!=jn(t).length&&(1!=jn(t).length||1==i.clusterNodeProperties.allowSingleNodeCluster)){var A=Go({},i.clusterNodeProperties);if(void 0!==i.processProperties){var s=[];for(var C in t)if(t.hasOwnProperty(C)){var I=vc.cloneOptions(t[C]);s.push(I)}var a=[];for(var l in e)if(e.hasOwnProperty(l)&&"clusterEdge:"!==l.substr(0,12)){var c=vc.cloneOptions(e[l],"edge");a.push(c)}if(!(A=i.processProperties(A,s,a)))throw new Error("The processProperties function does not return properties!")}void 0===A.id&&(A.id="cluster:"+LI());var u=A.id;void 0===A.label&&(A.label="cluster");var d=void 0;void 0===A.x&&(d=this._getClusterPosition(t),A.x=d.x),void 0===A.y&&(void 0===d&&(d=this._getClusterPosition(t)),A.y=d.y),A.id=u;var h=this.body.functions.createNode(A,mc);h.containedNodes=t,h.containedEdges=e,h.clusterEdgeProperties=i.clusterEdgeProperties,this.body.nodes[A.id]=h,this._clusterEdges(t,e,A,i.clusterEdgeProperties),A.id=void 0,!0===n&&this.body.emitter.emit("_dataChanged")}}},{key:"_backupEdgeOptions",value:function(t){void 0===this.clusteredEdges[t.id]&&(this.clusteredEdges[t.id]={physics:t.options.physics})}},{key:"_restoreEdge",value:function(t){var e=this.clusteredEdges[t.id];void 0!==e&&(t.setOptions({physics:e.physics}),delete this.clusteredEdges[t.id])}},{key:"isCluster",value:function(t){return void 0!==this.body.nodes[t]?!0===this.body.nodes[t].isCluster:(console.log("Node does not exist."),!1)}},{key:"_getClusterPosition",value:function(t){for(var e,i=jn(t),n=t[i[0]].x,g=t[i[0]].x,o=t[i[0]].y,r=t[i[0]].y,A=1;A<i.length;A++)n=(e=t[i[A]]).x<n?e.x:n,g=e.x>g?e.x:g,o=e.y<o?e.y:o,r=e.y>r?e.y:r;return{x:.5*(n+g),y:.5*(o+r)}}},{key:"openCluster",value:function(t,e){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(void 0===t)throw new Error("No clusterNodeId supplied to openCluster.");var n=this.body.nodes[t];if(void 0===n)throw new Error("The clusterNodeId supplied to openCluster does not exist.");if(!0!==n.isCluster||void 0===n.containedNodes||void 0===n.containedEdges)throw new Error("The node:"+t+" is not a valid cluster.");var g=this.findNode(t),o=go(g).call(g,t)-1;if(o>=0){var r=g[o],A=this.body.nodes[r];return A._openChildCluster(t),delete this.body.nodes[t],void(!0===i&&this.body.emitter.emit("_dataChanged"))}var s=n.containedNodes,C=n.containedEdges;if(void 0!==e&&void 0!==e.releaseFunction&&"function"==typeof e.releaseFunction){var I={},a={x:n.x,y:n.y};for(var l in s)if(s.hasOwnProperty(l)){var c=this.body.nodes[l];I[l]={x:c.x,y:c.y}}var u=e.releaseFunction(a,I);for(var d in s)if(s.hasOwnProperty(d)){var h=this.body.nodes[d];void 0!==u[d]&&(h.x=void 0===u[d].x?n.x:u[d].x,h.y=void 0===u[d].y?n.y:u[d].y)}}else Yo(s,(function(t){!1===t.options.fixed.x&&(t.x=n.x),!1===t.options.fixed.y&&(t.y=n.y)}));for(var p in s)if(s.hasOwnProperty(p)){var f=this.body.nodes[p];f.vx=n.vx,f.vy=n.vy,f.setOptions({physics:!0}),delete this.clusteredNodes[p]}for(var v=[],y=0;y<n.edges.length;y++)v.push(n.edges[y]);for(var m=0;m<v.length;m++){for(var b=v[m],x=this._getConnectedId(b,t),w=this.clusteredNodes[x],k=0;k<b.clusteringEdgeReplacingIds.length;k++){var O=b.clusteringEdgeReplacingIds[k],D=this.body.edges[O];if(void 0!==D)if(void 0!==w){var M=this.body.nodes[w.clusterId];M.containedEdges[D.id]=D,delete C[D.id];var T=D.fromId,_=D.toId;D.toId==x?_=w.clusterId:T=w.clusterId,this._createClusteredEdge(T,_,D,M.clusterEdgeProperties,{hidden:!1,physics:!0})}else this._restoreEdge(D)}b.remove()}for(var N in C)C.hasOwnProperty(N)&&this._restoreEdge(C[N]);delete this.body.nodes[t],!0===i&&this.body.emitter.emit("_dataChanged")}},{key:"getNodesInCluster",value:function(t){var e=[];if(!0===this.isCluster(t)){var i=this.body.nodes[t].containedNodes;for(var n in i)i.hasOwnProperty(n)&&e.push(this.body.nodes[n].id)}return e}},{key:"findNode",value:function(t){for(var e,i=[],n=0;void 0!==this.clusteredNodes[t]&&n<100;){if(void 0===(e=this.body.nodes[t]))return[];i.push(e.id),t=this.clusteredNodes[t].clusterId,n++}return void 0===(e=this.body.nodes[t])?[]:(i.push(e.id),fc(i).call(i),i)}},{key:"updateClusteredNode",value:function(t,e){if(void 0===t)throw new Error("No clusteredNodeId supplied to updateClusteredNode.");if(void 0===e)throw new Error("No newOptions supplied to updateClusteredNode.");if(void 0===this.body.nodes[t])throw new Error("The clusteredNodeId supplied to updateClusteredNode does not exist.");this.body.nodes[t].setOptions(e),this.body.emitter.emit("_dataChanged")}},{key:"updateEdge",value:function(t,e){if(void 0===t)throw new Error("No startEdgeId supplied to updateEdge.");if(void 0===e)throw new Error("No newOptions supplied to updateEdge.");if(void 0===this.body.edges[t])throw new Error("The startEdgeId supplied to updateEdge does not exist.");for(var i=this.getClusteredEdges(t),n=0;n<i.length;n++){this.body.edges[i[n]].setOptions(e)}this.body.emitter.emit("_dataChanged")}},{key:"getClusteredEdges",value:function(t){for(var e=[],i=0;void 0!==t&&void 0!==this.body.edges[t]&&i<100;)e.push(this.body.edges[t].id),t=this.body.edges[t].edgeReplacedById,i++;return fc(e).call(e),e}},{key:"getBaseEdge",value:function(t){return this.getBaseEdges(t)[0]}},{key:"getBaseEdges",value:function(t){for(var e=[t],i=[],n=[],g=0;e.length>0&&g<100;){var o=e.pop();if(void 0!==o){var r=this.body.edges[o];if(void 0!==r){g++;var A=r.clusteringEdgeReplacingIds;if(void 0===A)n.push(o);else for(var s=0;s<A.length;++s){var C=A[s];-1===go(e).call(e,A)&&-1===go(i).call(i,A)&&e.push(C)}i.push(o)}}}return n}},{key:"_getConnectedId",value:function(t,e){return t.toId!=e?t.toId:(t.fromId,t.fromId)}},{key:"_getHubSize",value:function(){for(var t=0,e=0,i=0,n=0,g=0;g<this.body.nodeIndices.length;g++){var o=this.body.nodes[this.body.nodeIndices[g]];o.edges.length>n&&(n=o.edges.length),t+=o.edges.length,e+=Math.pow(o.edges.length,2),i+=1}t/=i;var r=(e/=i)-Math.pow(t,2),A=Math.sqrt(r),s=Math.floor(t+2*A);return s>n&&(s=n),s}},{key:"_createClusteredEdge",value:function(t,e,i,n,g){var o=vc.cloneOptions(i,"edge");Go(o,n),o.from=t,o.to=e,o.id="clusterEdge:"+LI(),void 0!==g&&Go(o,g);var r=this.body.functions.createEdge(o);return r.clusteringEdgeReplacingIds=[i.id],r.connect(),this.body.edges[r.id]=r,r}},{key:"_clusterEdges",value:function(t,e,i,n){if(e instanceof ec){var g=e,o={};o[g.id]=g,e=o}if(t instanceof al){var r=t,A={};A[r.id]=r,t=A}if(null==i)throw new Error("_clusterEdges: parameter clusterNode required");for(var s in void 0===n&&(n=i.clusterEdgeProperties),this._createClusterEdges(t,e,i,n),e)if(e.hasOwnProperty(s)&&void 0!==this.body.edges[s]){var C=this.body.edges[s];this._backupEdgeOptions(C),C.setOptions({physics:!1})}for(var I in t)t.hasOwnProperty(I)&&(this.clusteredNodes[I]={clusterId:i.id,node:this.body.nodes[I]},this.body.nodes[I].setOptions({physics:!1}))}},{key:"_getClusterNodeForNode",value:function(t){if(void 0!==t){var e=this.clusteredNodes[t];if(void 0!==e){var i=e.clusterId;if(void 0!==i)return this.body.nodes[i]}}}},{key:"_filter",value:function(t,e){var i=[];return Yo(t,(function(t){e(t)&&i.push(t)})),i}},{key:"_updateState",value:function(){var t,e=this,i=[],n={},g=function(t){Yo(e.body.nodes,(function(e){!0===e.isCluster&&t(e)}))};for(t in this.clusteredNodes){if(this.clusteredNodes.hasOwnProperty(t))void 0===this.body.nodes[t]&&i.push(t)}g((function(t){for(var e=0;e<i.length;e++)delete t.containedNodes[i[e]]}));for(var o=0;o<i.length;o++)delete this.clusteredNodes[i[o]];Yo(this.clusteredEdges,(function(t){var i=e.body.edges[t];void 0!==i&&i.endPointsValid()||(n[t]=t)})),g((function(t){Yo(t.containedEdges,(function(t,e){t.endPointsValid()||n[e]||(n[e]=e)}))})),Yo(this.body.edges,(function(t,i){var g=!0,o=t.clusteringEdgeReplacingIds;if(void 0!==o){var r=0;Yo(o,(function(t){var i=e.body.edges[t];void 0!==i&&i.endPointsValid()&&(r+=1)})),g=r>0}t.endPointsValid()&&g||(n[i]=i)})),g((function(t){Yo(n,(function(i){delete t.containedEdges[i],Yo(t.edges,(function(g,o){g.id!==i?g.clusteringEdgeReplacingIds=e._filter(g.clusteringEdgeReplacingIds,(function(t){return!n[t]})):t.edges[o]=null})),t.edges=e._filter(t.edges,(function(t){return null!==t}))}))})),Yo(n,(function(t){delete e.clusteredEdges[t]})),Yo(n,(function(t){delete e.body.edges[t]})),Yo(jn(this.body.edges),(function(t){var i=e.body.edges[t],n=e._isClusteredNode(i.fromId)||e._isClusteredNode(i.toId);if(n!==e._isClusteredEdge(i.id))if(n){var g=e._getClusterNodeForNode(i.fromId);void 0!==g&&e._clusterEdges(e.body.nodes[i.fromId],i,g);var o=e._getClusterNodeForNode(i.toId);void 0!==o&&e._clusterEdges(e.body.nodes[i.toId],i,o)}else delete e._clusterEdges[t],e._restoreEdge(i)}));for(var r=!1,A=!0,s=function(){var t=[];g((function(e){var i=jn(e.containedNodes).length,n=!0===e.options.allowSingleNodeCluster;(n&&i<1||!n&&i<2)&&t.push(e.id)}));for(var i=0;i<t.length;++i)e.openCluster(t[i],{},!1);A=t.length>0,r=r||A};A;)s();r&&this._updateState()}},{key:"_isClusteredNode",value:function(t){return void 0!==this.clusteredNodes[t]}},{key:"_isClusteredEdge",value:function(t){return void 0!==this.clusteredEdges[t]}}]),t}();var xc=function(){function t(e,i){var n;qs(this,t),void 0!==window&&(n=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame),window.requestAnimationFrame=void 0===n?function(t){t()}:n,this.body=e,this.canvas=i,this.redrawRequested=!1,this.renderTimer=void 0,this.requiresTimeout=!0,this.renderingActive=!1,this.renderRequests=0,this.allowRedraw=!0,this.dragging=!1,this.zooming=!1,this.options={},this.defaultOptions={hideEdgesOnDrag:!1,hideEdgesOnZoom:!1,hideNodesOnDrag:!1},So(this.options,this.defaultOptions),this._determineBrowserMethod(),this.bindEventListeners()}return tC(t,[{key:"bindEventListeners",value:function(){var t,e=this;this.body.emitter.on("dragStart",(function(){e.dragging=!0})),this.body.emitter.on("dragEnd",(function(){e.dragging=!1})),this.body.emitter.on("zoom",(function(){e.zooming=!0,window.clearTimeout(e.zoomTimeoutId),e.zoomTimeoutId=window.setTimeout((function(){var t;e.zooming=!1,et(t=e._requestRedraw).call(t,e)()}),250)})),this.body.emitter.on("_resizeNodes",(function(){e._resizeNodes()})),this.body.emitter.on("_redraw",(function(){!1===e.renderingActive&&e._redraw()})),this.body.emitter.on("_blockRedraw",(function(){e.allowRedraw=!1})),this.body.emitter.on("_allowRedraw",(function(){e.allowRedraw=!0,e.redrawRequested=!1})),this.body.emitter.on("_requestRedraw",et(t=this._requestRedraw).call(t,this)),this.body.emitter.on("_startRendering",(function(){e.renderRequests+=1,e.renderingActive=!0,e._startRendering()})),this.body.emitter.on("_stopRendering",(function(){e.renderRequests-=1,e.renderingActive=e.renderRequests>0,e.renderTimer=void 0})),this.body.emitter.on("destroy",(function(){e.renderRequests=0,e.allowRedraw=!1,e.renderingActive=!1,!0===e.requiresTimeout?clearTimeout(e.renderTimer):window.cancelAnimationFrame(e.renderTimer),e.body.emitter.off()}))}},{key:"setOptions",value:function(t){if(void 0!==t){Zo(["hideEdgesOnDrag","hideEdgesOnZoom","hideNodesOnDrag"],this.options,t)}}},{key:"_requestNextFrame",value:function(t,e){if("undefined"!=typeof window){var i,n=window;return!0===this.requiresTimeout?i=n.setTimeout(t,e):n.requestAnimationFrame&&(i=n.requestAnimationFrame(t)),i}}},{key:"_startRendering",value:function(){var t;!0===this.renderingActive&&(void 0===this.renderTimer&&(this.renderTimer=this._requestNextFrame(et(t=this._renderStep).call(t,this),this.simulationInterval)))}},{key:"_renderStep",value:function(){!0===this.renderingActive&&(this.renderTimer=void 0,!0===this.requiresTimeout&&this._startRendering(),this._redraw(),!1===this.requiresTimeout&&this._startRendering())}},{key:"redraw",value:function(){this.body.emitter.emit("setSize"),this._redraw()}},{key:"_requestRedraw",value:function(){var t=this;!0!==this.redrawRequested&&!1===this.renderingActive&&!0===this.allowRedraw&&(this.redrawRequested=!0,this._requestNextFrame((function(){t._redraw(!1)}),0))}},{key:"_redraw",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!0===this.allowRedraw){this.body.emitter.emit("initRedraw"),this.redrawRequested=!1,0!==this.canvas.frame.canvas.width&&0!==this.canvas.frame.canvas.height||this.canvas.setSize(),this.canvas.setTransform();var e=this.canvas.getContext(),i=this.canvas.frame.canvas.clientWidth,n=this.canvas.frame.canvas.clientHeight;if(e.clearRect(0,0,i,n),0===this.canvas.frame.clientWidth)return;e.save(),e.translate(this.body.view.translation.x,this.body.view.translation.y),e.scale(this.body.view.scale,this.body.view.scale),e.beginPath(),this.body.emitter.emit("beforeDrawing",e),e.closePath(),!1===t&&(!1===this.dragging||!0===this.dragging&&!1===this.options.hideEdgesOnDrag)&&(!1===this.zooming||!0===this.zooming&&!1===this.options.hideEdgesOnZoom)&&this._drawEdges(e),(!1===this.dragging||!0===this.dragging&&!1===this.options.hideNodesOnDrag)&&this._drawNodes(e,t),e.beginPath(),this.body.emitter.emit("afterDrawing",e),e.closePath(),e.restore(),!0===t&&e.clearRect(0,0,i,n)}}},{key:"_resizeNodes",value:function(){this.canvas.setTransform();var t=this.canvas.getContext();t.save(),t.translate(this.body.view.translation.x,this.body.view.translation.y),t.scale(this.body.view.scale,this.body.view.scale);var e,i=this.body.nodes;for(var n in i)i.hasOwnProperty(n)&&((e=i[n]).resize(t),e.updateBoundingBox(t,e.selected));t.restore()}},{key:"_drawNodes",value:function(t){for(var e,i,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],g=this.body.nodes,o=this.body.nodeIndices,r=[],A=[],s=20,C=this.canvas.DOMtoCanvas({x:-s,y:-s}),I=this.canvas.DOMtoCanvas({x:this.canvas.frame.canvas.clientWidth+s,y:this.canvas.frame.canvas.clientHeight+s}),a={top:C.y,left:C.x,bottom:I.y,right:I.x},l=0;l<o.length;l++)(e=g[o[l]]).hover?A.push(o[l]):e.isSelected()?r.push(o[l]):!0===n||!0===e.isBoundingBoxOverlappingWith(a)?e.draw(t):e.updateBoundingBox(t,e.selected);var c=r.length,u=A.length;for(i=0;i<c;i++)(e=g[r[i]]).draw(t);for(i=0;i<u;i++)(e=g[A[i]]).draw(t)}},{key:"_drawEdges",value:function(t){for(var e,i=this.body.edges,n=this.body.edgeIndices,g=0;g<n.length;g++)!0===(e=i[n[g]]).connected&&e.draw(t)}},{key:"_determineBrowserMethod",value:function(){if("undefined"!=typeof window){var t=navigator.userAgent.toLowerCase();this.requiresTimeout=!1,(-1!=go(t).call(t,"msie 9.0")||-1!=go(t).call(t,"safari")&&go(t).call(t,"chrome")<=-1)&&(this.requiresTimeout=!0)}else this.requiresTimeout=!0}}]),t}(),wc=Z.setInterval,kc=o((function(t,e){e.onTouch=function(t,e){e.inputHandler=function(t){t.isFirst&&e(t)},t.on("hammer.input",e.inputHandler)},e.onRelease=function(t,e){return e.inputHandler=function(t){t.isFinal&&e(t)},t.on("hammer.input",e.inputHandler)},e.offTouch=function(t,e){t.off("hammer.input",e.inputHandler)},e.offRelease=e.offTouch,e.disablePreventDefaultVertically=function(t){return t.getTouchAction=function(){return["pan-y"]},t}})),Oc=(kc.onTouch,kc.onRelease,kc.offTouch,kc.offRelease,kc.disablePreventDefaultVertically,function(){function t(e){var i;qs(this,t),this.body=e,this.pixelRatio=1,this.resizeTimer=void 0,this.resizeFunction=et(i=this._onResize).call(i,this),this.cameraState={},this.initialized=!1,this.canvasViewCenter={},this.options={},this.defaultOptions={autoResize:!0,height:"100%",width:"100%"},So(this.options,this.defaultOptions),this.bindEventListeners()}return tC(t,[{key:"bindEventListeners",value:function(){var t,e=this;this.body.emitter.once("resize",(function(t){0!==t.width&&(e.body.view.translation.x=.5*t.width),0!==t.height&&(e.body.view.translation.y=.5*t.height)})),this.body.emitter.on("setSize",et(t=this.setSize).call(t,this)),this.body.emitter.on("destroy",(function(){e.hammerFrame.destroy(),e.hammer.destroy(),e._cleanUp()}))}},{key:"setOptions",value:function(t){var e,i=this;if(void 0!==t){Zo(["width","height","autoResize"],this.options,t)}!0===this.options.autoResize&&(this._cleanUp(),this.resizeTimer=wc((function(){!0===i.setSize()&&i.body.emitter.emit("_requestRedraw")}),1e3),this.resizeFunction=et(e=this._onResize).call(e,this),Xo(window,"resize",this.resizeFunction))}},{key:"_cleanUp",value:function(){void 0!==this.resizeTimer&&clearInterval(this.resizeTimer),Ho(window,"resize",this.resizeFunction),this.resizeFunction=void 0}},{key:"_onResize",value:function(){this.setSize(),this.body.emitter.emit("_redraw")}},{key:"_getCameraState",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.pixelRatio;!0===this.initialized&&(this.cameraState.previousWidth=this.frame.canvas.width/t,this.cameraState.previousHeight=this.frame.canvas.height/t,this.cameraState.scale=this.body.view.scale,this.cameraState.position=this.DOMtoCanvas({x:.5*this.frame.canvas.width/t,y:.5*this.frame.canvas.height/t}))}},{key:"_setCameraState",value:function(){if(void 0!==this.cameraState.scale&&0!==this.frame.canvas.clientWidth&&0!==this.frame.canvas.clientHeight&&0!==this.pixelRatio&&this.cameraState.previousWidth>0&&this.cameraState.previousHeight>0){var t=this.frame.canvas.width/this.pixelRatio/this.cameraState.previousWidth,e=this.frame.canvas.height/this.pixelRatio/this.cameraState.previousHeight,i=this.cameraState.scale;1!=t&&1!=e?i=.5*this.cameraState.scale*(t+e):1!=t?i=this.cameraState.scale*t:1!=e&&(i=this.cameraState.scale*e),this.body.view.scale=i;var n=this.DOMtoCanvas({x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight}),g={x:n.x-this.cameraState.position.x,y:n.y-this.cameraState.position.y};this.body.view.translation.x+=g.x*this.body.view.scale,this.body.view.translation.y+=g.y*this.body.view.scale}}},{key:"_prepareValue",value:function(t){if("number"==typeof t)return t+"px";if("string"==typeof t){if(-1!==go(t).call(t,"%")||-1!==go(t).call(t,"px"))return t;if(-1===go(t).call(t,"%"))return t+"px"}throw new Error("Could not use the value supplied for width or height:"+t)}},{key:"_create",value:function(){for(;this.body.container.hasChildNodes();)this.body.container.removeChild(this.body.container.firstChild);if(this.frame=document.createElement("div"),this.frame.className="vis-network",this.frame.style.position="relative",this.frame.style.overflow="hidden",this.frame.tabIndex=900,this.frame.canvas=document.createElement("canvas"),this.frame.canvas.style.position="relative",this.frame.appendChild(this.frame.canvas),this.frame.canvas.getContext)this._setPixelRatio(),this.setTransform();else{var t=document.createElement("DIV");t.style.color="red",t.style.fontWeight="bold",t.style.padding="10px",t.innerHTML="Error: your browser does not support HTML canvas",this.frame.canvas.appendChild(t)}this.body.container.appendChild(this.frame),this.body.view.scale=1,this.body.view.translation={x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight},this._bindHammer()}},{key:"_bindHammer",value:function(){var t=this;void 0!==this.hammer&&this.hammer.destroy(),this.drag={},this.pinch={},this.hammer=new Vs(this.frame.canvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.get("pan").set({threshold:5,direction:Vs.DIRECTION_ALL}),kc.onTouch(this.hammer,(function(e){t.body.eventListeners.onTouch(e)})),this.hammer.on("tap",(function(e){t.body.eventListeners.onTap(e)})),this.hammer.on("doubletap",(function(e){t.body.eventListeners.onDoubleTap(e)})),this.hammer.on("press",(function(e){t.body.eventListeners.onHold(e)})),this.hammer.on("panstart",(function(e){t.body.eventListeners.onDragStart(e)})),this.hammer.on("panmove",(function(e){t.body.eventListeners.onDrag(e)})),this.hammer.on("panend",(function(e){t.body.eventListeners.onDragEnd(e)})),this.hammer.on("pinch",(function(e){t.body.eventListeners.onPinch(e)})),this.frame.canvas.addEventListener("wheel",(function(e){t.body.eventListeners.onMouseWheel(e)})),this.frame.canvas.addEventListener("mousemove",(function(e){t.body.eventListeners.onMouseMove(e)})),this.frame.canvas.addEventListener("contextmenu",(function(e){t.body.eventListeners.onContext(e)})),this.hammerFrame=new Vs(this.frame),kc.onRelease(this.hammerFrame,(function(e){t.body.eventListeners.onRelease(e)}))}},{key:"setSize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.width,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.height;t=this._prepareValue(t),e=this._prepareValue(e);var i=!1,n=this.frame.canvas.width,g=this.frame.canvas.height,o=this.pixelRatio;if(this._setPixelRatio(),t!=this.options.width||e!=this.options.height||this.frame.style.width!=t||this.frame.style.height!=e)this._getCameraState(o),this.frame.style.width=t,this.frame.style.height=e,this.frame.canvas.style.width="100%",this.frame.canvas.style.height="100%",this.frame.canvas.width=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),this.frame.canvas.height=Math.round(this.frame.canvas.clientHeight*this.pixelRatio),this.options.width=t,this.options.height=e,this.canvasViewCenter={x:.5*this.frame.clientWidth,y:.5*this.frame.clientHeight},i=!0;else{var r=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),A=Math.round(this.frame.canvas.clientHeight*this.pixelRatio);this.frame.canvas.width===r&&this.frame.canvas.height===A||this._getCameraState(o),this.frame.canvas.width!==r&&(this.frame.canvas.width=r,i=!0),this.frame.canvas.height!==A&&(this.frame.canvas.height=A,i=!0)}return!0===i&&(this.body.emitter.emit("resize",{width:Math.round(this.frame.canvas.width/this.pixelRatio),height:Math.round(this.frame.canvas.height/this.pixelRatio),oldWidth:Math.round(n/this.pixelRatio),oldHeight:Math.round(g/this.pixelRatio)}),this._setCameraState()),this.initialized=!0,i}},{key:"getContext",value:function(){return this.frame.canvas.getContext("2d")}},{key:"_determinePixelRatio",value:function(){var t=this.getContext();if(void 0===t)throw new Error("Could not get canvax context");var e=1;return"undefined"!=typeof window&&(e=window.devicePixelRatio||1),e/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)}},{key:"_setPixelRatio",value:function(){this.pixelRatio=this._determinePixelRatio()}},{key:"setTransform",value:function(){var t=this.getContext();if(void 0===t)throw new Error("Could not get canvax context");t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}},{key:"_XconvertDOMtoCanvas",value:function(t){return(t-this.body.view.translation.x)/this.body.view.scale}},{key:"_XconvertCanvasToDOM",value:function(t){return t*this.body.view.scale+this.body.view.translation.x}},{key:"_YconvertDOMtoCanvas",value:function(t){return(t-this.body.view.translation.y)/this.body.view.scale}},{key:"_YconvertCanvasToDOM",value:function(t){return t*this.body.view.scale+this.body.view.translation.y}},{key:"canvasToDOM",value:function(t){return{x:this._XconvertCanvasToDOM(t.x),y:this._YconvertCanvasToDOM(t.y)}}},{key:"DOMtoCanvas",value:function(t){return{x:this._XconvertDOMtoCanvas(t.x),y:this._YconvertDOMtoCanvas(t.y)}}}]),t}()),Dc=function(){function t(e,i){var n,g,o=this;qs(this,t),this.body=e,this.canvas=i,this.animationSpeed=1/this.renderRefreshRate,this.animationEasingFunction="easeInOutQuint",this.easingTime=0,this.sourceScale=0,this.targetScale=0,this.sourceTranslation=0,this.targetTranslation=0,this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0,this.touchTime=0,this.viewFunction=void 0,this.body.emitter.on("fit",et(n=this.fit).call(n,this)),this.body.emitter.on("animationFinished",(function(){o.body.emitter.emit("_stopRendering")})),this.body.emitter.on("unlockNode",et(g=this.releaseNode).call(g,this))}return tC(t,[{key:"setOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=t}},{key:"fit",value:function(){var t,e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{nodes:[]},n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];void 0!==(i=Co({},i)).nodes&&0!==i.nodes.length||(i.nodes=this.body.nodeIndices);var g=this.canvas.frame.canvas.clientWidth,o=this.canvas.frame.canvas.clientHeight;if(0===g||0===o)e=1,t=vc.getRange(this.body.nodes,i.nodes);else if(!0===n){var r=0;for(var A in this.body.nodes)if(this.body.nodes.hasOwnProperty(A)){var s=this.body.nodes[A];!0===s.predefinedPosition&&(r+=1)}if(r>.5*this.body.nodeIndices.length)return void this.fit(i,!1);t=vc.getRange(this.body.nodes,i.nodes);var C=this.body.nodeIndices.length;e=12.662/(C+7.4147)+.0964822;var I=Math.min(g/600,o/600);e*=I}else{this.body.emitter.emit("_resizeNodes"),t=vc.getRange(this.body.nodes,i.nodes);var a=1.1*Math.abs(t.maxX-t.minX),l=1.1*Math.abs(t.maxY-t.minY),c=g/a,u=o/l;e=c<=u?c:u}(e>1||0===e)&&(e=1);var d=vc.findCenter(t),h={position:d,scale:e,animation:i.animation};this.moveTo(h)}},{key:"focus",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0!==this.body.nodes[t]){var i={x:this.body.nodes[t].x,y:this.body.nodes[t].y};e.position=i,e.lockedOnNode=t,this.moveTo(e)}else console.log("Node: "+t+" cannot be found.")}},{key:"moveTo",value:function(t){if(void 0!==t){if(null!=t.offset){if(null!=t.offset.x){if(t.offset.x=+t.offset.x,!hC(t.offset.x))throw new TypeError('The option "offset.x" has to be a finite number.')}else t.offset.x=0;if(null!=t.offset.y){if(t.offset.y=+t.offset.y,!hC(t.offset.y))throw new TypeError('The option "offset.y" has to be a finite number.')}else t.offset.x=0}else t.offset={x:0,y:0};if(null!=t.position){if(null!=t.position.x){if(t.position.x=+t.position.x,!hC(t.position.x))throw new TypeError('The option "position.x" has to be a finite number.')}else t.position.x=0;if(null!=t.position.y){if(t.position.y=+t.position.y,!hC(t.position.y))throw new TypeError('The option "position.y" has to be a finite number.')}else t.position.x=0}else t.position=this.getViewPosition();if(null!=t.scale){if(t.scale=+t.scale,!(t.scale>0))throw new TypeError('The option "scale" has to be a number greater than zero.')}else t.scale=this.body.view.scale;void 0===t.animation&&(t.animation={duration:0}),!1===t.animation&&(t.animation={duration:0}),!0===t.animation&&(t.animation={}),void 0===t.animation.duration&&(t.animation.duration=1e3),void 0===t.animation.easingFunction&&(t.animation.easingFunction="easeInOutQuad"),this.animateView(t)}else t={}}},{key:"animateView",value:function(t){if(void 0!==t){this.animationEasingFunction=t.animation.easingFunction,this.releaseNode(),!0===t.locked&&(this.lockedOnNodeId=t.lockedOnNode,this.lockedOnNodeOffset=t.offset),0!=this.easingTime&&this._transitionRedraw(!0),this.sourceScale=this.body.view.scale,this.sourceTranslation=this.body.view.translation,this.targetScale=t.scale,this.body.view.scale=this.targetScale;var e,i,n=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),g=n.x-t.position.x,o=n.y-t.position.y;if(this.targetTranslation={x:this.sourceTranslation.x+g*this.targetScale+t.offset.x,y:this.sourceTranslation.y+o*this.targetScale+t.offset.y},0===t.animation.duration)if(null!=this.lockedOnNodeId)this.viewFunction=et(e=this._lockedRedraw).call(e,this),this.body.emitter.on("initRedraw",this.viewFunction);else this.body.view.scale=this.targetScale,this.body.view.translation=this.targetTranslation,this.body.emitter.emit("_requestRedraw");else this.animationSpeed=1/(60*t.animation.duration*.001)||1/60,this.animationEasingFunction=t.animation.easingFunction,this.viewFunction=et(i=this._transitionRedraw).call(i,this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering")}}},{key:"_lockedRedraw",value:function(){var t=this.body.nodes[this.lockedOnNodeId].x,e=this.body.nodes[this.lockedOnNodeId].y,i=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),n=i.x-t,g=i.y-e,o=this.body.view.translation,r={x:o.x+n*this.body.view.scale+this.lockedOnNodeOffset.x,y:o.y+g*this.body.view.scale+this.lockedOnNodeOffset.y};this.body.view.translation=r}},{key:"releaseNode",value:function(){void 0!==this.lockedOnNodeId&&void 0!==this.viewFunction&&(this.body.emitter.off("initRedraw",this.viewFunction),this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0)}},{key:"_transitionRedraw",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.easingTime+=this.animationSpeed,this.easingTime=!0===t?1:this.easingTime;var e=lr[this.animationEasingFunction](this.easingTime);if(this.body.view.scale=this.sourceScale+(this.targetScale-this.sourceScale)*e,this.body.view.translation={x:this.sourceTranslation.x+(this.targetTranslation.x-this.sourceTranslation.x)*e,y:this.sourceTranslation.y+(this.targetTranslation.y-this.sourceTranslation.y)*e},this.easingTime>=1){var i;if(this.body.emitter.off("initRedraw",this.viewFunction),this.easingTime=0,null!=this.lockedOnNodeId)this.viewFunction=et(i=this._lockedRedraw).call(i,this),this.body.emitter.on("initRedraw",this.viewFunction);this.body.emitter.emit("animationFinished")}}},{key:"getScale",value:function(){return this.body.view.scale}},{key:"getViewPosition",value:function(){return this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight})}}]),t}();hA("div.vis-network div.vis-navigation div.vis-button {\n    width:34px;\n    height:34px;\n    -moz-border-radius: 17px;\n    border-radius: 17px;\n    position:absolute;\n    display:inline-block;\n    background-position: 2px 2px;\n    background-repeat:no-repeat;\n    cursor: pointer;\n    -webkit-touch-callout: none;\n    -webkit-user-select: none;\n    -khtml-user-select: none;\n    -moz-user-select: none;\n    -ms-user-select: none;\n    user-select: none;\n}\n\ndiv.vis-network div.vis-navigation div.vis-button:hover {\n    box-shadow: 0 0 3px 3px rgba(56, 207, 21, 0.30);\n}\n\ndiv.vis-network div.vis-navigation div.vis-button:active {\n    box-shadow: 0 0 1px 3px rgba(56, 207, 21, 0.95);\n}\n\ndiv.vis-network div.vis-navigation div.vis-button.vis-up {\n    background-image: url('data:image/png;base64, ');\n    bottom:50px;\n    left:55px;\n}\ndiv.vis-network div.vis-navigation div.vis-button.vis-down {\n    background-image: url('data:image/png;base64, ');\n    bottom:10px;\n    left:55px;\n}\ndiv.vis-network div.vis-navigation div.vis-button.vis-left {\n    background-image: url('data:image/png;base64, ');\n    bottom:10px;\n    left:15px;\n}\ndiv.vis-network div.vis-navigation div.vis-button.vis-right {\n    background-image: url('data:image/png;base64, ');\n    bottom:10px;\n    left:95px;\n}\ndiv.vis-network div.vis-navigation div.vis-button.vis-zoomIn {\n    background-image: url('data:image/png;base64, ');\n    bottom:10px;\n    right:15px;\n}\ndiv.vis-network div.vis-navigation div.vis-button.vis-zoomOut {\n    background-image: url('data:image/png;base64, ');\n    bottom:10px;\n    right:55px;\n}\ndiv.vis-network div.vis-navigation div.vis-button.vis-zoomExtends {\n    background-image: url('data:image/png;base64, ');\n    bottom:50px;\n    right:15px;\n}\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIk5hdmlnYXRpb25IYW5kbGVyLmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtJQUNJLFVBQVU7SUFDVixXQUFXO0lBQ1gsd0JBQXdCO0lBQ3hCLG1CQUFtQjtJQUNuQixpQkFBaUI7SUFDakIsb0JBQW9CO0lBQ3BCLDRCQUE0QjtJQUM1QiwyQkFBMkI7SUFDM0IsZUFBZTtJQUNmLDJCQUEyQjtJQUMzQix5QkFBeUI7SUFDekIsd0JBQXdCO0lBQ3hCLHNCQUFzQjtJQUN0QixxQkFBcUI7SUFDckIsaUJBQWlCO0FBQ3JCOztBQUVBO0lBQ0ksK0NBQStDO0FBQ25EOztBQUVBO0lBQ0ksK0NBQStDO0FBQ25EOztBQUVBO0lBQ0ksMjJMQUF1QztJQUN2QyxXQUFXO0lBQ1gsU0FBUztBQUNiO0FBQ0E7SUFDSSwyMkxBQXlDO0lBQ3pDLFdBQVc7SUFDWCxTQUFTO0FBQ2I7QUFDQTtJQUNJLDI4TEFBeUM7SUFDekMsV0FBVztJQUNYLFNBQVM7QUFDYjtBQUNBO0lBQ0ksbTdMQUEwQztJQUMxQyxXQUFXO0lBQ1gsU0FBUztBQUNiO0FBQ0E7SUFDSSwyc0xBQW9DO0lBQ3BDLFdBQVc7SUFDWCxVQUFVO0FBQ2Q7QUFDQTtJQUNJLDI4S0FBcUM7SUFDckMsV0FBVztJQUNYLFVBQVU7QUFDZDtBQUNBO0lBQ0ksKzJMQUEyQztJQUMzQyxXQUFXO0lBQ1gsVUFBVTtBQUNkIiwiZmlsZSI6Ik5hdmlnYXRpb25IYW5kbGVyLmNzcyIsInNvdXJjZXNDb250ZW50IjpbImRpdi52aXMtbmV0d29yayBkaXYudmlzLW5hdmlnYXRpb24gZGl2LnZpcy1idXR0b24ge1xuICAgIHdpZHRoOjM0cHg7XG4gICAgaGVpZ2h0OjM0cHg7XG4gICAgLW1vei1ib3JkZXItcmFkaXVzOiAxN3B4O1xuICAgIGJvcmRlci1yYWRpdXM6IDE3cHg7XG4gICAgcG9zaXRpb246YWJzb2x1dGU7XG4gICAgZGlzcGxheTppbmxpbmUtYmxvY2s7XG4gICAgYmFja2dyb3VuZC1wb3NpdGlvbjogMnB4IDJweDtcbiAgICBiYWNrZ3JvdW5kLXJlcGVhdDpuby1yZXBlYXQ7XG4gICAgY3Vyc29yOiBwb2ludGVyO1xuICAgIC13ZWJraXQtdG91Y2gtY2FsbG91dDogbm9uZTtcbiAgICAtd2Via2l0LXVzZXItc2VsZWN0OiBub25lO1xuICAgIC1raHRtbC11c2VyLXNlbGVjdDogbm9uZTtcbiAgICAtbW96LXVzZXItc2VsZWN0OiBub25lO1xuICAgIC1tcy11c2VyLXNlbGVjdDogbm9uZTtcbiAgICB1c2VyLXNlbGVjdDogbm9uZTtcbn1cblxuZGl2LnZpcy1uZXR3b3JrIGRpdi52aXMtbmF2aWdhdGlvbiBkaXYudmlzLWJ1dHRvbjpob3ZlciB7XG4gICAgYm94LXNoYWRvdzogMCAwIDNweCAzcHggcmdiYSg1NiwgMjA3LCAyMSwgMC4zMCk7XG59XG5cbmRpdi52aXMtbmV0d29yayBkaXYudmlzLW5hdmlnYXRpb24gZGl2LnZpcy1idXR0b246YWN0aXZlIHtcbiAgICBib3gtc2hhZG93OiAwIDAgMXB4IDNweCByZ2JhKDU2LCAyMDcsIDIxLCAwLjk1KTtcbn1cblxuZGl2LnZpcy1uZXR3b3JrIGRpdi52aXMtbmF2aWdhdGlvbiBkaXYudmlzLWJ1dHRvbi52aXMtdXAge1xuICAgIGJhY2tncm91bmQtaW1hZ2U6IGlubGluZShcInVwQXJyb3cucG5nXCIpO1xuICAgIGJvdHRvbTo1MHB4O1xuICAgIGxlZnQ6NTVweDtcbn1cbmRpdi52aXMtbmV0d29yayBkaXYudmlzLW5hdmlnYXRpb24gZGl2LnZpcy1idXR0b24udmlzLWRvd24ge1xuICAgIGJhY2tncm91bmQtaW1hZ2U6IGlubGluZShcImRvd25BcnJvdy5wbmdcIik7XG4gICAgYm90dG9tOjEwcHg7XG4gICAgbGVmdDo1NXB4O1xufVxuZGl2LnZpcy1uZXR3b3JrIGRpdi52aXMtbmF2aWdhdGlvbiBkaXYudmlzLWJ1dHRvbi52aXMtbGVmdCB7XG4gICAgYmFja2dyb3VuZC1pbWFnZTogaW5saW5lKFwibGVmdEFycm93LnBuZ1wiKTtcbiAgICBib3R0b206MTBweDtcbiAgICBsZWZ0OjE1cHg7XG59XG5kaXYudmlzLW5ldHdvcmsgZGl2LnZpcy1uYXZpZ2F0aW9uIGRpdi52aXMtYnV0dG9uLnZpcy1yaWdodCB7XG4gICAgYmFja2dyb3VuZC1pbWFnZTogaW5saW5lKFwicmlnaHRBcnJvdy5wbmdcIik7XG4gICAgYm90dG9tOjEwcHg7XG4gICAgbGVmdDo5NXB4O1xufVxuZGl2LnZpcy1uZXR3b3JrIGRpdi52aXMtbmF2aWdhdGlvbiBkaXYudmlzLWJ1dHRvbi52aXMtem9vbUluIHtcbiAgICBiYWNrZ3JvdW5kLWltYWdlOiBpbmxpbmUoXCJwbHVzLnBuZ1wiKTtcbiAgICBib3R0b206MTBweDtcbiAgICByaWdodDoxNXB4O1xufVxuZGl2LnZpcy1uZXR3b3JrIGRpdi52aXMtbmF2aWdhdGlvbiBkaXYudmlzLWJ1dHRvbi52aXMtem9vbU91dCB7XG4gICAgYmFja2dyb3VuZC1pbWFnZTogaW5saW5lKFwibWludXMucG5nXCIpO1xuICAgIGJvdHRvbToxMHB4O1xuICAgIHJpZ2h0OjU1cHg7XG59XG5kaXYudmlzLW5ldHdvcmsgZGl2LnZpcy1uYXZpZ2F0aW9uIGRpdi52aXMtYnV0dG9uLnZpcy16b29tRXh0ZW5kcyB7XG4gICAgYmFja2dyb3VuZC1pbWFnZTogaW5saW5lKFwiem9vbUV4dGVuZHMucG5nXCIpO1xuICAgIGJvdHRvbTo1MHB4O1xuICAgIHJpZ2h0OjE1cHg7XG59XG4iXX0= */");var Mc=function(){function t(e,i){var n=this;qs(this,t),this.body=e,this.canvas=i,this.iconsCreated=!1,this.navigationHammers=[],this.boundFunctions={},this.touchTime=0,this.activated=!1,this.body.emitter.on("activate",(function(){n.activated=!0,n.configureKeyboardBindings()})),this.body.emitter.on("deactivate",(function(){n.activated=!1,n.configureKeyboardBindings()})),this.body.emitter.on("destroy",(function(){void 0!==n.keycharm&&n.keycharm.destroy()})),this.options={}}return tC(t,[{key:"setOptions",value:function(t){void 0!==t&&(this.options=t,this.create())}},{key:"create",value:function(){!0===this.options.navigationButtons?!1===this.iconsCreated&&this.loadNavigationElements():!0===this.iconsCreated&&this.cleanNavigation(),this.configureKeyboardBindings()}},{key:"cleanNavigation",value:function(){if(0!=this.navigationHammers.length){for(var t=0;t<this.navigationHammers.length;t++)this.navigationHammers[t].destroy();this.navigationHammers=[]}this.navigationDOM&&this.navigationDOM.wrapper&&this.navigationDOM.wrapper.parentNode&&this.navigationDOM.wrapper.parentNode.removeChild(this.navigationDOM.wrapper),this.iconsCreated=!1}},{key:"loadNavigationElements",value:function(){var t=this;this.cleanNavigation(),this.navigationDOM={};var e=["up","down","left","right","zoomIn","zoomOut","zoomExtends"],i=["_moveUp","_moveDown","_moveLeft","_moveRight","_zoomIn","_zoomOut","_fit"];this.navigationDOM.wrapper=document.createElement("div"),this.navigationDOM.wrapper.className="vis-navigation",this.canvas.frame.appendChild(this.navigationDOM.wrapper);for(var n=0;n<e.length;n++){this.navigationDOM[e[n]]=document.createElement("div"),this.navigationDOM[e[n]].className="vis-button vis-"+e[n],this.navigationDOM.wrapper.appendChild(this.navigationDOM[e[n]]);var g,o,r=new Vs(this.navigationDOM[e[n]]);if("_fit"===i[n])kc.onTouch(r,et(g=this._fit).call(g,this));else kc.onTouch(r,et(o=this.bindToRedraw).call(o,this,i[n]));this.navigationHammers.push(r)}var A=new Vs(this.canvas.frame);kc.onRelease(A,(function(){t._stopMovement()})),this.navigationHammers.push(A),this.iconsCreated=!0}},{key:"bindToRedraw",value:function(t){var e;void 0===this.boundFunctions[t]&&(this.boundFunctions[t]=et(e=this[t]).call(e,this),this.body.emitter.on("initRedraw",this.boundFunctions[t]),this.body.emitter.emit("_startRendering"))}},{key:"unbindFromRedraw",value:function(t){void 0!==this.boundFunctions[t]&&(this.body.emitter.off("initRedraw",this.boundFunctions[t]),this.body.emitter.emit("_stopRendering"),delete this.boundFunctions[t])}},{key:"_fit",value:function(){(new Date).valueOf()-this.touchTime>700&&(this.body.emitter.emit("fit",{duration:700}),this.touchTime=(new Date).valueOf())}},{key:"_stopMovement",value:function(){for(var t in this.boundFunctions)this.boundFunctions.hasOwnProperty(t)&&(this.body.emitter.off("initRedraw",this.boundFunctions[t]),this.body.emitter.emit("_stopRendering"));this.boundFunctions={}}},{key:"_moveUp",value:function(){this.body.view.translation.y+=this.options.keyboard.speed.y}},{key:"_moveDown",value:function(){this.body.view.translation.y-=this.options.keyboard.speed.y}},{key:"_moveLeft",value:function(){this.body.view.translation.x+=this.options.keyboard.speed.x}},{key:"_moveRight",value:function(){this.body.view.translation.x-=this.options.keyboard.speed.x}},{key:"_zoomIn",value:function(){var t=this.body.view.scale,e=this.body.view.scale*(1+this.options.keyboard.speed.zoom),i=this.body.view.translation,n=e/t,g=(1-n)*this.canvas.canvasViewCenter.x+i.x*n,o=(1-n)*this.canvas.canvasViewCenter.y+i.y*n;this.body.view.scale=e,this.body.view.translation={x:g,y:o},this.body.emitter.emit("zoom",{direction:"+",scale:this.body.view.scale,pointer:null})}},{key:"_zoomOut",value:function(){var t=this.body.view.scale,e=this.body.view.scale/(1+this.options.keyboard.speed.zoom),i=this.body.view.translation,n=e/t,g=(1-n)*this.canvas.canvasViewCenter.x+i.x*n,o=(1-n)*this.canvas.canvasViewCenter.y+i.y*n;this.body.view.scale=e,this.body.view.translation={x:g,y:o},this.body.emitter.emit("zoom",{direction:"-",scale:this.body.view.scale,pointer:null})}},{key:"configureKeyboardBindings",value:function(){var t,e,i,n,g,o,r,A,s,C,I,a,l,c,u,d,h,p,f,v,y,m,b,x,w=this;(void 0!==this.keycharm&&this.keycharm.destroy(),!0===this.options.keyboard.enabled)&&(!0===this.options.keyboard.bindToWindow?this.keycharm=vA({container:window,preventDefault:!0}):this.keycharm=vA({container:this.canvas.frame,preventDefault:!0}),this.keycharm.reset(),!0===this.activated&&(et(t=this.keycharm).call(t,"up",(function(){w.bindToRedraw("_moveUp")}),"keydown"),et(e=this.keycharm).call(e,"down",(function(){w.bindToRedraw("_moveDown")}),"keydown"),et(i=this.keycharm).call(i,"left",(function(){w.bindToRedraw("_moveLeft")}),"keydown"),et(n=this.keycharm).call(n,"right",(function(){w.bindToRedraw("_moveRight")}),"keydown"),et(g=this.keycharm).call(g,"=",(function(){w.bindToRedraw("_zoomIn")}),"keydown"),et(o=this.keycharm).call(o,"num+",(function(){w.bindToRedraw("_zoomIn")}),"keydown"),et(r=this.keycharm).call(r,"num-",(function(){w.bindToRedraw("_zoomOut")}),"keydown"),et(A=this.keycharm).call(A,"-",(function(){w.bindToRedraw("_zoomOut")}),"keydown"),et(s=this.keycharm).call(s,"[",(function(){w.bindToRedraw("_zoomOut")}),"keydown"),et(C=this.keycharm).call(C,"]",(function(){w.bindToRedraw("_zoomIn")}),"keydown"),et(I=this.keycharm).call(I,"pageup",(function(){w.bindToRedraw("_zoomIn")}),"keydown"),et(a=this.keycharm).call(a,"pagedown",(function(){w.bindToRedraw("_zoomOut")}),"keydown"),et(l=this.keycharm).call(l,"up",(function(){w.unbindFromRedraw("_moveUp")}),"keyup"),et(c=this.keycharm).call(c,"down",(function(){w.unbindFromRedraw("_moveDown")}),"keyup"),et(u=this.keycharm).call(u,"left",(function(){w.unbindFromRedraw("_moveLeft")}),"keyup"),et(d=this.keycharm).call(d,"right",(function(){w.unbindFromRedraw("_moveRight")}),"keyup"),et(h=this.keycharm).call(h,"=",(function(){w.unbindFromRedraw("_zoomIn")}),"keyup"),et(p=this.keycharm).call(p,"num+",(function(){w.unbindFromRedraw("_zoomIn")}),"keyup"),et(f=this.keycharm).call(f,"num-",(function(){w.unbindFromRedraw("_zoomOut")}),"keyup"),et(v=this.keycharm).call(v,"-",(function(){w.unbindFromRedraw("_zoomOut")}),"keyup"),et(y=this.keycharm).call(y,"[",(function(){w.unbindFromRedraw("_zoomOut")}),"keyup"),et(m=this.keycharm).call(m,"]",(function(){w.unbindFromRedraw("_zoomIn")}),"keyup"),et(b=this.keycharm).call(b,"pageup",(function(){w.unbindFromRedraw("_zoomIn")}),"keyup"),et(x=this.keycharm).call(x,"pagedown",(function(){w.unbindFromRedraw("_zoomOut")}),"keyup")))}}]),t}();hA("div.vis-tooltip {\n  position: absolute;\n  visibility: hidden;\n  padding: 5px;\n  white-space: nowrap;\n\n  font-family: verdana;\n  font-size:14px;\n  color:#000000;\n  background-color: #f5f4ed;\n\n  -moz-border-radius: 3px;\n  -webkit-border-radius: 3px;\n  border-radius: 3px;\n  border: 1px solid #808074;\n\n  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);\n  pointer-events: none;\n\n  z-index: 5;\n}\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlBvcHVwLmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLGtCQUFrQjtFQUNsQixrQkFBa0I7RUFDbEIsWUFBWTtFQUNaLG1CQUFtQjs7RUFFbkIsb0JBQW9CO0VBQ3BCLGNBQWM7RUFDZCxhQUFhO0VBQ2IseUJBQXlCOztFQUV6Qix1QkFBdUI7RUFDdkIsMEJBQTBCO0VBQzFCLGtCQUFrQjtFQUNsQix5QkFBeUI7O0VBRXpCLDJDQUEyQztFQUMzQyxvQkFBb0I7O0VBRXBCLFVBQVU7QUFDWiIsImZpbGUiOiJQb3B1cC5jc3MiLCJzb3VyY2VzQ29udGVudCI6WyJkaXYudmlzLXRvb2x0aXAge1xuICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gIHZpc2liaWxpdHk6IGhpZGRlbjtcbiAgcGFkZGluZzogNXB4O1xuICB3aGl0ZS1zcGFjZTogbm93cmFwO1xuXG4gIGZvbnQtZmFtaWx5OiB2ZXJkYW5hO1xuICBmb250LXNpemU6MTRweDtcbiAgY29sb3I6IzAwMDAwMDtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2Y1ZjRlZDtcblxuICAtbW96LWJvcmRlci1yYWRpdXM6IDNweDtcbiAgLXdlYmtpdC1ib3JkZXItcmFkaXVzOiAzcHg7XG4gIGJvcmRlci1yYWRpdXM6IDNweDtcbiAgYm9yZGVyOiAxcHggc29saWQgIzgwODA3NDtcblxuICBib3gtc2hhZG93OiAzcHggM3B4IDEwcHggcmdiYSgwLCAwLCAwLCAwLjIpO1xuICBwb2ludGVyLWV2ZW50czogbm9uZTtcblxuICB6LWluZGV4OiA1O1xufVxuIl19 */");var Tc=function(){function t(e,i){qs(this,t),this.container=e,this.overflowMethod=i||"cap",this.x=0,this.y=0,this.padding=5,this.hidden=!1,this.frame=document.createElement("div"),this.frame.className="vis-tooltip",this.container.appendChild(this.frame)}return tC(t,[{key:"setPosition",value:function(t,e){this.x=lg(t),this.y=lg(e)}},{key:"setText",value:function(t){t instanceof Element?(this.frame.innerHTML="",this.frame.appendChild(t)):this.frame.innerHTML=t}},{key:"show",value:function(t){if(void 0===t&&(t=!0),!0===t){var e=this.frame.clientHeight,i=this.frame.clientWidth,n=this.frame.parentNode.clientHeight,g=this.frame.parentNode.clientWidth,o=0,r=0;if("flip"==this.overflowMethod){var A=!1,s=!0;this.y-e<this.padding&&(s=!1),this.x+i>g-this.padding&&(A=!0),o=A?this.x-i:this.x,r=s?this.y-e:this.y}else(r=this.y-e)+e+this.padding>n&&(r=n-e-this.padding),r<this.padding&&(r=this.padding),(o=this.x)+i+this.padding>g&&(o=g-i-this.padding),o<this.padding&&(o=this.padding);this.frame.style.left=o+"px",this.frame.style.top=r+"px",this.frame.style.visibility="visible",this.hidden=!1}else this.hide()}},{key:"hide",value:function(){this.hidden=!0,this.frame.style.left="0",this.frame.style.top="0",this.frame.style.visibility="hidden"}},{key:"destroy",value:function(){this.frame.parentNode.removeChild(this.frame)}}]),t}(),_c=function(){function t(e,i,n){var g,o,r,A,s,C,I,a,l,c,u,d,h;qs(this,t),this.body=e,this.canvas=i,this.selectionHandler=n,this.navigationHandler=new Mc(e,i),this.body.eventListeners.onTap=et(g=this.onTap).call(g,this),this.body.eventListeners.onTouch=et(o=this.onTouch).call(o,this),this.body.eventListeners.onDoubleTap=et(r=this.onDoubleTap).call(r,this),this.body.eventListeners.onHold=et(A=this.onHold).call(A,this),this.body.eventListeners.onDragStart=et(s=this.onDragStart).call(s,this),this.body.eventListeners.onDrag=et(C=this.onDrag).call(C,this),this.body.eventListeners.onDragEnd=et(I=this.onDragEnd).call(I,this),this.body.eventListeners.onMouseWheel=et(a=this.onMouseWheel).call(a,this),this.body.eventListeners.onPinch=et(l=this.onPinch).call(l,this),this.body.eventListeners.onMouseMove=et(c=this.onMouseMove).call(c,this),this.body.eventListeners.onRelease=et(u=this.onRelease).call(u,this),this.body.eventListeners.onContext=et(d=this.onContext).call(d,this),this.touchTime=0,this.drag={},this.pinch={},this.popup=void 0,this.popupObj=void 0,this.popupTimer=void 0,this.body.functions.getPointer=et(h=this.getPointer).call(h,this),this.options={},this.defaultOptions={dragNodes:!0,dragView:!0,hover:!1,keyboard:{enabled:!1,speed:{x:10,y:10,zoom:.02},bindToWindow:!0},navigationButtons:!1,tooltipDelay:300,zoomView:!0,zoomSpeed:1},So(this.options,this.defaultOptions),this.bindEventListeners()}return tC(t,[{key:"bindEventListeners",value:function(){var t=this;this.body.emitter.on("destroy",(function(){clearTimeout(t.popupTimer),delete t.body.functions.getPointer}))}},{key:"setOptions",value:function(t){if(void 0!==t){zo(["hideEdgesOnDrag","hideEdgesOnZoom","hideNodesOnDrag","keyboard","multiselect","selectable","selectConnectedEdges"],this.options,t),ar(this.options,t,"keyboard"),t.tooltip&&(So(this.options.tooltip,t.tooltip),t.tooltip.color&&(this.options.tooltip.color=tr(t.tooltip.color)))}this.navigationHandler.setOptions(this.options)}},{key:"getPointer",value:function(t){return{x:t.x-Po(this.canvas.frame.canvas),y:t.y-Uo(this.canvas.frame.canvas)}}},{key:"onTouch",value:function(t){(new Date).valueOf()-this.touchTime>50&&(this.drag.pointer=this.getPointer(t.center),this.drag.pinched=!1,this.pinch.scale=this.body.view.scale,this.touchTime=(new Date).valueOf())}},{key:"onTap",value:function(t){var e=this.getPointer(t.center),i=this.selectionHandler.options.multiselect&&(t.changedPointers[0].ctrlKey||t.changedPointers[0].metaKey);this.checkSelectionChanges(e,t,i),this.selectionHandler._generateClickEvent("click",t,e)}},{key:"onDoubleTap",value:function(t){var e=this.getPointer(t.center);this.selectionHandler._generateClickEvent("doubleClick",t,e)}},{key:"onHold",value:function(t){var e=this.getPointer(t.center),i=this.selectionHandler.options.multiselect;this.checkSelectionChanges(e,t,i),this.selectionHandler._generateClickEvent("click",t,e),this.selectionHandler._generateClickEvent("hold",t,e)}},{key:"onRelease",value:function(t){if((new Date).valueOf()-this.touchTime>10){var e=this.getPointer(t.center);this.selectionHandler._generateClickEvent("release",t,e),this.touchTime=(new Date).valueOf()}}},{key:"onContext",value:function(t){var e=this.getPointer({x:t.clientX,y:t.clientY});this.selectionHandler._generateClickEvent("oncontext",t,e)}},{key:"checkSelectionChanges",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=this.selectionHandler.getSelection(),g=!1;g=!0===i?this.selectionHandler.selectAdditionalOnPoint(t):this.selectionHandler.selectOnPoint(t);var o=this.selectionHandler.getSelection(),r=this._determineDifference(n,o),A=this._determineDifference(o,n);r.edges.length>0&&(this.selectionHandler._generateClickEvent("deselectEdge",e,t,n),g=!0),r.nodes.length>0&&(this.selectionHandler._generateClickEvent("deselectNode",e,t,n),g=!0),A.nodes.length>0&&(this.selectionHandler._generateClickEvent("selectNode",e,t),g=!0),A.edges.length>0&&(this.selectionHandler._generateClickEvent("selectEdge",e,t),g=!0),!0===g&&this.selectionHandler._generateClickEvent("select",e,t)}},{key:"_determineDifference",value:function(t,e){var i=function(t,e){for(var i=[],n=0;n<t.length;n++){var g=t[n];-1===go(e).call(e,g)&&i.push(g)}return i};return{nodes:i(t.nodes,e.nodes),edges:i(t.edges,e.edges)}}},{key:"onDragStart",value:function(t){void 0===this.drag.pointer&&this.onTouch(t);var e=this.selectionHandler.getNodeAt(this.drag.pointer);if(this.drag.dragging=!0,this.drag.selection=[],this.drag.translation=So({},this.body.view.translation),this.drag.nodeId=void 0,void 0!==e&&!0===this.options.dragNodes){this.drag.nodeId=e.id,!1===e.isSelected()&&(this.selectionHandler.unselectAll(),this.selectionHandler.selectObject(e)),this.selectionHandler._generateClickEvent("dragStart",t,this.drag.pointer);var i=this.selectionHandler.selectionObj.nodes;for(var n in i)if(i.hasOwnProperty(n)){var g=i[n],o={id:g.id,node:g,x:g.x,y:g.y,xFixed:g.options.fixed.x,yFixed:g.options.fixed.y};g.options.fixed.x=!0,g.options.fixed.y=!0,this.drag.selection.push(o)}}else this.selectionHandler._generateClickEvent("dragStart",t,this.drag.pointer,void 0,!0)}},{key:"onDrag",value:function(t){var e=this;if(!0!==this.drag.pinched){this.body.emitter.emit("unlockNode");var i=this.getPointer(t.center),n=this.drag.selection;if(n&&n.length&&!0===this.options.dragNodes){this.selectionHandler._generateClickEvent("dragging",t,i);var g=i.x-this.drag.pointer.x,o=i.y-this.drag.pointer.y;eg(n).call(n,(function(t){var i=t.node;!1===t.xFixed&&(i.x=e.canvas._XconvertDOMtoCanvas(e.canvas._XconvertCanvasToDOM(t.x)+g)),!1===t.yFixed&&(i.y=e.canvas._YconvertDOMtoCanvas(e.canvas._YconvertCanvasToDOM(t.y)+o))})),this.body.emitter.emit("startSimulation")}else if(!0===this.options.dragView){if(this.selectionHandler._generateClickEvent("dragging",t,i,void 0,!0),void 0===this.drag.pointer)return void this.onDragStart(t);var r=i.x-this.drag.pointer.x,A=i.y-this.drag.pointer.y;this.body.view.translation={x:this.drag.translation.x+r,y:this.drag.translation.y+A},this.body.emitter.emit("_requestRedraw")}}}},{key:"onDragEnd",value:function(t){this.drag.dragging=!1;var e=this.drag.selection;e&&e.length?(eg(e).call(e,(function(t){t.node.options.fixed.x=t.xFixed,t.node.options.fixed.y=t.yFixed})),this.selectionHandler._generateClickEvent("dragEnd",t,this.getPointer(t.center)),this.body.emitter.emit("startSimulation")):(this.selectionHandler._generateClickEvent("dragEnd",t,this.getPointer(t.center),void 0,!0),this.body.emitter.emit("_requestRedraw"))}},{key:"onPinch",value:function(t){var e=this.getPointer(t.center);this.drag.pinched=!0,void 0===this.pinch.scale&&(this.pinch.scale=1);var i=this.pinch.scale*t.scale;this.zoom(i,e)}},{key:"zoom",value:function(t,e){if(!0===this.options.zoomView){var i=this.body.view.scale;t<1e-5&&(t=1e-5),t>10&&(t=10);var n=void 0;void 0!==this.drag&&!0===this.drag.dragging&&(n=this.canvas.DOMtoCanvas(this.drag.pointer));var g=this.body.view.translation,o=t/i,r=(1-o)*e.x+g.x*o,A=(1-o)*e.y+g.y*o;if(this.body.view.scale=t,this.body.view.translation={x:r,y:A},null!=n){var s=this.canvas.canvasToDOM(n);this.drag.pointer.x=s.x,this.drag.pointer.y=s.y}this.body.emitter.emit("_requestRedraw"),i<t?this.body.emitter.emit("zoom",{direction:"+",scale:this.body.view.scale,pointer:e}):this.body.emitter.emit("zoom",{direction:"-",scale:this.body.view.scale,pointer:e})}}},{key:"onMouseWheel",value:function(t){if(!0===this.options.zoomView){if(0!==t.deltaY){var e=this.body.view.scale;e*=1+(t.deltaY<0?1:-1)*(.1*this.options.zoomSpeed);var i=this.getPointer({x:t.clientX,y:t.clientY});this.zoom(e,i)}t.preventDefault()}}},{key:"onMouseMove",value:function(t){var e=this,i=this.getPointer({x:t.clientX,y:t.clientY}),n=!1;void 0!==this.popup&&(!1===this.popup.hidden&&this._checkHidePopup(i),!1===this.popup.hidden&&(n=!0,this.popup.setPosition(i.x+3,i.y-5),this.popup.show())),!1===this.options.keyboard.bindToWindow&&!0===this.options.keyboard.enabled&&this.canvas.frame.focus(),!1===n&&(void 0!==this.popupTimer&&(clearInterval(this.popupTimer),this.popupTimer=void 0),this.drag.dragging||(this.popupTimer=AC((function(){return e._checkShowPopup(i)}),this.options.tooltipDelay))),!0===this.options.hover&&this.selectionHandler.hoverObject(t,i)}},{key:"_checkShowPopup",value:function(t){var e=this.canvas._XconvertDOMtoCanvas(t.x),i=this.canvas._YconvertDOMtoCanvas(t.y),n={left:e,top:i,right:e,bottom:i},g=void 0===this.popupObj?void 0:this.popupObj.id,o=!1,r="node";if(void 0===this.popupObj){for(var A,s=this.body.nodeIndices,C=this.body.nodes,I=[],a=0;a<s.length;a++)!0===(A=C[s[a]]).isOverlappingWith(n)&&(o=!0,void 0!==A.getTitle()&&I.push(s[a]));I.length>0&&(this.popupObj=C[I[I.length-1]],o=!0)}if(void 0===this.popupObj&&!1===o){for(var l,c=this.body.edgeIndices,u=this.body.edges,d=[],h=0;h<c.length;h++)!0===(l=u[c[h]]).isOverlappingWith(n)&&!0===l.connected&&void 0!==l.getTitle()&&d.push(c[h]);d.length>0&&(this.popupObj=u[d[d.length-1]],r="edge")}void 0!==this.popupObj?this.popupObj.id!==g&&(void 0===this.popup&&(this.popup=new Tc(this.canvas.frame)),this.popup.popupTargetType=r,this.popup.popupTargetId=this.popupObj.id,this.popup.setPosition(t.x+3,t.y-5),this.popup.setText(this.popupObj.getTitle()),this.popup.show(),this.body.emitter.emit("showPopup",this.popupObj.id)):void 0!==this.popup&&(this.popup.hide(),this.body.emitter.emit("hidePopup"))}},{key:"_checkHidePopup",value:function(t){var e=this.selectionHandler._pointerToPositionObject(t),i=!1;if("node"===this.popup.popupTargetType){if(void 0!==this.body.nodes[this.popup.popupTargetId]&&!0===(i=this.body.nodes[this.popup.popupTargetId].isOverlappingWith(e))){var n=this.selectionHandler.getNodeAt(t);i=void 0!==n&&n.id===this.popup.popupTargetId}}else void 0===this.selectionHandler.getNodeAt(t)&&void 0!==this.body.edges[this.popup.popupTargetId]&&(i=this.body.edges[this.popup.popupTargetId].isOverlappingWith(e));!1===i&&(this.popupObj=void 0,this.popup.hide(),this.body.emitter.emit("hidePopup"))}}]),t}(),Nc=function(){function t(e,i){var n=this;qs(this,t),this.body=e,this.canvas=i,this.selectionObj={nodes:[],edges:[]},this.hoverObj={nodes:{},edges:{}},this.options={},this.defaultOptions={multiselect:!1,selectable:!0,selectConnectedEdges:!0,hoverConnectedEdges:!0},So(this.options,this.defaultOptions),this.body.emitter.on("_dataChanged",(function(){n.updateSelection()}))}return tC(t,[{key:"setOptions",value:function(t){if(void 0!==t){Zo(["multiselect","hoverConnectedEdges","selectable","selectConnectedEdges"],this.options,t)}}},{key:"selectOnPoint",value:function(t){var e=!1;if(!0===this.options.selectable){var i=this.getNodeAt(t)||this.getEdgeAt(t);this.unselectAll(),void 0!==i&&(e=this.selectObject(i)),this.body.emitter.emit("_requestRedraw")}return e}},{key:"selectAdditionalOnPoint",value:function(t){var e=!1;if(!0===this.options.selectable){var i=this.getNodeAt(t)||this.getEdgeAt(t);void 0!==i&&(e=!0,!0===i.isSelected()?this.deselectObject(i):this.selectObject(i),this.body.emitter.emit("_requestRedraw"))}return e}},{key:"_initBaseEvent",value:function(t,e){var i={};return i.pointer={DOM:{x:e.x,y:e.y},canvas:this.canvas.DOMtoCanvas(e)},i.event=t,i}},{key:"_generateClickEvent",value:function(t,e,i,n){var g=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=this._initBaseEvent(e,i);if(!0===g)o.nodes=[],o.edges=[];else{var r=this.getSelection();o.nodes=r.nodes,o.edges=r.edges}void 0!==n&&(o.previousSelection=n),"click"==t&&(o.items=this.getClickedItems(i)),void 0!==e.controlEdge&&(o.controlEdge=e.controlEdge),this.body.emitter.emit(t,o)}},{key:"selectObject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.selectConnectedEdges;return void 0!==t&&(t instanceof al&&!0===e&&this._selectConnectedEdges(t),t.select(),this._addToSelection(t),!0)}},{key:"deselectObject",value:function(t){!0===t.isSelected()&&(t.selected=!1,this._removeFromSelection(t))}},{key:"_getAllNodesOverlappingWith",value:function(t){for(var e=[],i=this.body.nodes,n=0;n<this.body.nodeIndices.length;n++){var g=this.body.nodeIndices[n];i[g].isOverlappingWith(t)&&e.push(g)}return e}},{key:"_pointerToPositionObject",value:function(t){var e=this.canvas.DOMtoCanvas(t);return{left:e.x-1,top:e.y+1,right:e.x+1,bottom:e.y-1}}},{key:"getNodeAt",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this._pointerToPositionObject(t),n=this._getAllNodesOverlappingWith(i);return n.length>0?!0===e?this.body.nodes[n[n.length-1]]:n[n.length-1]:void 0}},{key:"_getEdgesOverlappingWith",value:function(t,e){for(var i=this.body.edges,n=0;n<this.body.edgeIndices.length;n++){var g=this.body.edgeIndices[n];i[g].isOverlappingWith(t)&&e.push(g)}}},{key:"_getAllEdgesOverlappingWith",value:function(t){var e=[];return this._getEdgesOverlappingWith(t,e),e}},{key:"getEdgeAt",value:function(t){for(var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.canvas.DOMtoCanvas(t),n=10,g=null,o=this.body.edges,r=0;r<this.body.edgeIndices.length;r++){var A=this.body.edgeIndices[r],s=o[A];if(s.connected){var C=s.from.x,I=s.from.y,a=s.to.x,l=s.to.y,c=s.edgeType.getDistanceToEdge(C,I,a,l,i.x,i.y);c<n&&(g=A,n=c)}}return null!==g?!0===e?this.body.edges[g]:g:void 0}},{key:"_addToSelection",value:function(t){t instanceof al?this.selectionObj.nodes[t.id]=t:this.selectionObj.edges[t.id]=t}},{key:"_addToHover",value:function(t){t instanceof al?this.hoverObj.nodes[t.id]=t:this.hoverObj.edges[t.id]=t}},{key:"_removeFromSelection",value:function(t){t instanceof al?(delete this.selectionObj.nodes[t.id],this._unselectConnectedEdges(t)):delete this.selectionObj.edges[t.id]}},{key:"unselectAll",value:function(){for(var t in this.selectionObj.nodes)this.selectionObj.nodes.hasOwnProperty(t)&&this.selectionObj.nodes[t].unselect();for(var e in this.selectionObj.edges)this.selectionObj.edges.hasOwnProperty(e)&&this.selectionObj.edges[e].unselect();this.selectionObj={nodes:{},edges:{}}}},{key:"_getSelectedNodeCount",value:function(){var t=0;for(var e in this.selectionObj.nodes)this.selectionObj.nodes.hasOwnProperty(e)&&(t+=1);return t}},{key:"_getSelectedNode",value:function(){for(var t in this.selectionObj.nodes)if(this.selectionObj.nodes.hasOwnProperty(t))return this.selectionObj.nodes[t]}},{key:"_getSelectedEdge",value:function(){for(var t in this.selectionObj.edges)if(this.selectionObj.edges.hasOwnProperty(t))return this.selectionObj.edges[t]}},{key:"_getSelectedEdgeCount",value:function(){var t=0;for(var e in this.selectionObj.edges)this.selectionObj.edges.hasOwnProperty(e)&&(t+=1);return t}},{key:"_getSelectedObjectCount",value:function(){var t=0;for(var e in this.selectionObj.nodes)this.selectionObj.nodes.hasOwnProperty(e)&&(t+=1);for(var i in this.selectionObj.edges)this.selectionObj.edges.hasOwnProperty(i)&&(t+=1);return t}},{key:"_selectionIsEmpty",value:function(){for(var t in this.selectionObj.nodes)if(this.selectionObj.nodes.hasOwnProperty(t))return!1;for(var e in this.selectionObj.edges)if(this.selectionObj.edges.hasOwnProperty(e))return!1;return!0}},{key:"_clusterInSelection",value:function(){for(var t in this.selectionObj.nodes)if(this.selectionObj.nodes.hasOwnProperty(t)&&this.selectionObj.nodes[t].clusterSize>1)return!0;return!1}},{key:"_selectConnectedEdges",value:function(t){for(var e=0;e<t.edges.length;e++){var i=t.edges[e];i.select(),this._addToSelection(i)}}},{key:"_hoverConnectedEdges",value:function(t){for(var e=0;e<t.edges.length;e++){var i=t.edges[e];i.hover=!0,this._addToHover(i)}}},{key:"_unselectConnectedEdges",value:function(t){for(var e=0;e<t.edges.length;e++){var i=t.edges[e];i.unselect(),this._removeFromSelection(i)}}},{key:"emitBlurEvent",value:function(t,e,i){var n=this._initBaseEvent(t,e);!0===i.hover&&(i.hover=!1,i instanceof al?(n.node=i.id,this.body.emitter.emit("blurNode",n)):(n.edge=i.id,this.body.emitter.emit("blurEdge",n)))}},{key:"emitHoverEvent",value:function(t,e,i){var n=this._initBaseEvent(t,e),g=!1;return!1===i.hover&&(i.hover=!0,this._addToHover(i),g=!0,i instanceof al?(n.node=i.id,this.body.emitter.emit("hoverNode",n)):(n.edge=i.id,this.body.emitter.emit("hoverEdge",n))),g}},{key:"hoverObject",value:function(t,e){var i=this.getNodeAt(e);void 0===i&&(i=this.getEdgeAt(e));var n=!1;for(var g in this.hoverObj.nodes)this.hoverObj.nodes.hasOwnProperty(g)&&(void 0===i||i instanceof al&&i.id!=g||i instanceof ec)&&(this.emitBlurEvent(t,e,this.hoverObj.nodes[g]),delete this.hoverObj.nodes[g],n=!0);for(var o in this.hoverObj.edges)this.hoverObj.edges.hasOwnProperty(o)&&(!0===n?(this.hoverObj.edges[o].hover=!1,delete this.hoverObj.edges[o]):(void 0===i||i instanceof ec&&i.id!=o||i instanceof al&&!i.hover)&&(this.emitBlurEvent(t,e,this.hoverObj.edges[o]),delete this.hoverObj.edges[o],n=!0));if(void 0!==i){var r=jn(this.hoverObj.edges).length,A=jn(this.hoverObj.nodes).length;(n||i instanceof ec&&0===r&&0===A||i instanceof al&&0===r&&0===A)&&(n=this.emitHoverEvent(t,e,i)),i instanceof al&&!0===this.options.hoverConnectedEdges&&this._hoverConnectedEdges(i)}!0===n&&this.body.emitter.emit("_requestRedraw")}},{key:"getSelection",value:function(){return{nodes:this.getSelectedNodes(),edges:this.getSelectedEdges()}}},{key:"getSelectedNodes",value:function(){var t=[];if(!0===this.options.selectable)for(var e in this.selectionObj.nodes)this.selectionObj.nodes.hasOwnProperty(e)&&t.push(this.selectionObj.nodes[e].id);return t}},{key:"getSelectedEdges",value:function(){var t=[];if(!0===this.options.selectable)for(var e in this.selectionObj.edges)this.selectionObj.edges.hasOwnProperty(e)&&t.push(this.selectionObj.edges[e].id);return t}},{key:"setSelection",value:function(t){var e,i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t||!t.nodes&&!t.edges)throw"Selection must be an object with nodes and/or edges properties";if((n.unselectAll||void 0===n.unselectAll)&&this.unselectAll(),t.nodes)for(e=0;e<t.nodes.length;e++){i=t.nodes[e];var g=this.body.nodes[i];if(!g)throw new RangeError('Node with id "'+i+'" not found');this.selectObject(g,n.highlightEdges)}if(t.edges)for(e=0;e<t.edges.length;e++){i=t.edges[e];var o=this.body.edges[i];if(!o)throw new RangeError('Edge with id "'+i+'" not found');this.selectObject(o)}this.body.emitter.emit("_requestRedraw")}},{key:"selectNodes",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!t||void 0===t.length)throw"Selection must be an array with ids";this.setSelection({nodes:t},{highlightEdges:e})}},{key:"selectEdges",value:function(t){if(!t||void 0===t.length)throw"Selection must be an array with ids";this.setSelection({edges:t})}},{key:"updateSelection",value:function(){for(var t in this.selectionObj.nodes)this.selectionObj.nodes.hasOwnProperty(t)&&(this.body.nodes.hasOwnProperty(t)||delete this.selectionObj.nodes[t]);for(var e in this.selectionObj.edges)this.selectionObj.edges.hasOwnProperty(e)&&(this.body.edges.hasOwnProperty(e)||delete this.selectionObj.edges[e])}},{key:"getClickedItems",value:function(t){for(var e=this.canvas.DOMtoCanvas(t),i=[],n=this.body.nodeIndices,g=this.body.nodes,o=n.length-1;o>=0;o--){var r=g[n[o]].getItemsOnPoint(e);i.push.apply(i,r)}for(var A=this.body.edgeIndices,s=this.body.edges,C=A.length-1;C>=0;C--){var I=s[A[C]].getItemsOnPoint(e);i.push.apply(i,I)}return i}}]),t}(),jc=o((function(t,e){!function(t){t.__esModule=!0,t.sort=function(t,e,i,r){if(!Array.isArray(t))throw new TypeError("Can only sort arrays");e?"function"!=typeof e&&(r=i,i=e,e=n):e=n,i||(i=0),r||(r=t.length);var A=r-i;if(!(A<2)){var C=0;if(A<32)return C=g(t,i,r,e),void o(t,i,r,i+C,e);var I=new s(t,e),a=function(t){for(var e=0;t>=32;)e|=1&t,t>>=1;return t+e}(A);do{if((C=g(t,i,r,e))<a){var l=A;l>a&&(l=a),o(t,i,i+l,i+C,e),C=l}I.pushRun(i,C),I.mergeRuns(),A-=C,i+=C}while(0!==A);I.forceMergeRuns()}};var e=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9];function i(t){return t<1e5?t<100?t<10?0:1:t<1e4?t<1e3?2:3:4:t<1e7?t<1e6?5:6:t<1e9?t<1e8?7:8:9}function n(t,n){if(t===n)return 0;if(~~t===t&&~~n===n){if(0===t||0===n)return t<n?-1:1;if(t<0||n<0){if(n>=0)return-1;if(t>=0)return 1;t=-t,n=-n}var g=i(t),o=i(n),r=0;return g<o?(t*=e[o-g-1],n/=10,r=-1):g>o&&(n*=e[g-o-1],t/=10,r=1),t===n?r:t<n?-1:1}var A=String(t),s=String(n);return A===s?0:A<s?-1:1}function g(t,e,i,n){var g=e+1;if(g===i)return 1;if(n(t[g++],t[e])<0){for(;g<i&&n(t[g],t[g-1])<0;)g++;!function(t,e,i){for(i--;e<i;){var n=t[e];t[e++]=t[i],t[i--]=n}}(t,e,g)}else for(;g<i&&n(t[g],t[g-1])>=0;)g++;return g-e}function o(t,e,i,n,g){for(n===e&&n++;n<i;n++){for(var o=t[n],r=e,A=n;r<A;){var s=r+A>>>1;g(o,t[s])<0?A=s:r=s+1}var C=n-r;switch(C){case 3:t[r+3]=t[r+2];case 2:t[r+2]=t[r+1];case 1:t[r+1]=t[r];break;default:for(;C>0;)t[r+C]=t[r+C-1],C--}t[r]=o}}function r(t,e,i,n,g,o){var r=0,A=0,s=1;if(o(t,e[i+g])>0){for(A=n-g;s<A&&o(t,e[i+g+s])>0;)r=s,(s=1+(s<<1))<=0&&(s=A);s>A&&(s=A),r+=g,s+=g}else{for(A=g+1;s<A&&o(t,e[i+g-s])<=0;)r=s,(s=1+(s<<1))<=0&&(s=A);s>A&&(s=A);var C=r;r=g-s,s=g-C}for(r++;r<s;){var I=r+(s-r>>>1);o(t,e[i+I])>0?r=I+1:s=I}return s}function A(t,e,i,n,g,o){var r=0,A=0,s=1;if(o(t,e[i+g])<0){for(A=g+1;s<A&&o(t,e[i+g-s])<0;)r=s,(s=1+(s<<1))<=0&&(s=A);s>A&&(s=A);var C=r;r=g-s,s=g-C}else{for(A=n-g;s<A&&o(t,e[i+g+s])>=0;)r=s,(s=1+(s<<1))<=0&&(s=A);s>A&&(s=A),r+=g,s+=g}for(r++;r<s;){var I=r+(s-r>>>1);o(t,e[i+I])<0?s=I:r=I+1}return s}var s=function(){function t(e,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.array=null,this.compare=null,this.minGallop=7,this.length=0,this.tmpStorageLength=256,this.stackLength=0,this.runStart=null,this.runLength=null,this.stackSize=0,this.array=e,this.compare=i,this.length=e.length,this.length<512&&(this.tmpStorageLength=this.length>>>1),this.tmp=new Array(this.tmpStorageLength),this.stackLength=this.length<120?5:this.length<1542?10:this.length<119151?19:40,this.runStart=new Array(this.stackLength),this.runLength=new Array(this.stackLength)}return t.prototype.pushRun=function(t,e){this.runStart[this.stackSize]=t,this.runLength[this.stackSize]=e,this.stackSize+=1},t.prototype.mergeRuns=function(){for(;this.stackSize>1;){var t=this.stackSize-2;if(t>=1&&this.runLength[t-1]<=this.runLength[t]+this.runLength[t+1]||t>=2&&this.runLength[t-2]<=this.runLength[t]+this.runLength[t-1])this.runLength[t-1]<this.runLength[t+1]&&t--;else if(this.runLength[t]>this.runLength[t+1])break;this.mergeAt(t)}},t.prototype.forceMergeRuns=function(){for(;this.stackSize>1;){var t=this.stackSize-2;t>0&&this.runLength[t-1]<this.runLength[t+1]&&t--,this.mergeAt(t)}},t.prototype.mergeAt=function(t){var e=this.compare,i=this.array,n=this.runStart[t],g=this.runLength[t],o=this.runStart[t+1],s=this.runLength[t+1];this.runLength[t]=g+s,t===this.stackSize-3&&(this.runStart[t+1]=this.runStart[t+2],this.runLength[t+1]=this.runLength[t+2]),this.stackSize--;var C=A(i[o],i,n,g,0,e);n+=C,0!=(g-=C)&&0!==(s=r(i[n+g-1],i,o,s,s-1,e))&&(g<=s?this.mergeLow(n,g,o,s):this.mergeHigh(n,g,o,s))},t.prototype.mergeLow=function(t,e,i,n){var g=this.compare,o=this.array,s=this.tmp,C=0;for(C=0;C<e;C++)s[C]=o[t+C];var I=0,a=i,l=t;if(o[l++]=o[a++],0!=--n)if(1!==e){for(var c=this.minGallop;;){var u=0,d=0,h=!1;do{if(g(o[a],s[I])<0){if(o[l++]=o[a++],d++,u=0,0==--n){h=!0;break}}else if(o[l++]=s[I++],u++,d=0,1==--e){h=!0;break}}while((u|d)<c);if(h)break;do{if(0!==(u=A(o[a],s,I,e,0,g))){for(C=0;C<u;C++)o[l+C]=s[I+C];if(l+=u,I+=u,(e-=u)<=1){h=!0;break}}if(o[l++]=o[a++],0==--n){h=!0;break}if(0!==(d=r(s[I],o,a,n,0,g))){for(C=0;C<d;C++)o[l+C]=o[a+C];if(l+=d,a+=d,0==(n-=d)){h=!0;break}}if(o[l++]=s[I++],1==--e){h=!0;break}c--}while(u>=7||d>=7);if(h)break;c<0&&(c=0),c+=2}if(this.minGallop=c,c<1&&(this.minGallop=1),1===e){for(C=0;C<n;C++)o[l+C]=o[a+C];o[l+n]=s[I]}else{if(0===e)throw new Error("mergeLow preconditions were not respected");for(C=0;C<e;C++)o[l+C]=s[I+C]}}else{for(C=0;C<n;C++)o[l+C]=o[a+C];o[l+n]=s[I]}else for(C=0;C<e;C++)o[l+C]=s[I+C]},t.prototype.mergeHigh=function(t,e,i,n){var g=this.compare,o=this.array,s=this.tmp,C=0;for(C=0;C<n;C++)s[C]=o[i+C];var I=t+e-1,a=n-1,l=i+n-1,c=0,u=0;if(o[l--]=o[I--],0!=--e)if(1!==n){for(var d=this.minGallop;;){var h=0,p=0,f=!1;do{if(g(s[a],o[I])<0){if(o[l--]=o[I--],h++,p=0,0==--e){f=!0;break}}else if(o[l--]=s[a--],p++,h=0,1==--n){f=!0;break}}while((h|p)<d);if(f)break;do{if(0!=(h=e-A(s[a],o,t,e,e-1,g))){for(e-=h,u=1+(l-=h),c=1+(I-=h),C=h-1;C>=0;C--)o[u+C]=o[c+C];if(0===e){f=!0;break}}if(o[l--]=s[a--],1==--n){f=!0;break}if(0!=(p=n-r(o[I],s,0,n,n-1,g))){for(n-=p,u=1+(l-=p),c=1+(a-=p),C=0;C<p;C++)o[u+C]=s[c+C];if(n<=1){f=!0;break}}if(o[l--]=o[I--],0==--e){f=!0;break}d--}while(h>=7||p>=7);if(f)break;d<0&&(d=0),d+=2}if(this.minGallop=d,d<1&&(this.minGallop=1),1===n){for(u=1+(l-=e),c=1+(I-=e),C=e-1;C>=0;C--)o[u+C]=o[c+C];o[l]=s[a]}else{if(0===n)throw new Error("mergeHigh preconditions were not respected");for(c=l-(n-1),C=0;C<n;C++)o[c+C]=s[C]}}else{for(u=1+(l-=e),c=1+(I-=e),C=e-1;C>=0;C--)o[u+C]=o[c+C];o[l]=s[a]}else for(c=l-(n-1),C=0;C<n;C++)o[c+C]=s[C]},t}()}(e)}));g(jc);var Ec=jc,Bc=Ec.sort;function Fc(t){var e=function(){if("undefined"==typeof Reflect||!xC)return!1;if(xC.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(xC(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=HC(t);if(e){var g=HC(this).constructor;i=xC(n,arguments,g)}else i=n.apply(this,arguments);return VC(this,i)}}var Rc=function(){function t(){qs(this,t)}return tC(t,[{key:"abstract",value:function(){throw new Error("Can't instantiate abstract class!")}},{key:"fake_use",value:function(){}},{key:"curveType",value:function(){return this.abstract()}},{key:"getPosition",value:function(t){return this.fake_use(t),this.abstract()}},{key:"setPosition",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;this.fake_use(t,e,i),this.abstract()}},{key:"getTreeSize",value:function(t){return this.fake_use(t),this.abstract()}},{key:"sort",value:function(t){this.fake_use(t),this.abstract()}},{key:"fix",value:function(t,e){this.fake_use(t,e),this.abstract()}},{key:"shift",value:function(t,e){this.fake_use(t,e),this.abstract()}}]),t}(),Sc=function(t){YC(i,t);var e=Fc(i);function i(t){var n;return qs(this,i),(n=e.call(this)).layout=t,n}return tC(i,[{key:"curveType",value:function(){return"horizontal"}},{key:"getPosition",value:function(t){return t.x}},{key:"setPosition",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;void 0!==i&&this.layout.hierarchical.addToOrdering(t,i),t.x=e}},{key:"getTreeSize",value:function(t){var e=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,t);return{min:e.min_x,max:e.max_x}}},{key:"sort",value:function(t){Bc(t,(function(t,e){return t.x-e.x}))}},{key:"fix",value:function(t,e){t.y=this.layout.options.hierarchical.levelSeparation*e,t.options.fixed.y=!0}},{key:"shift",value:function(t,e){this.layout.body.nodes[t].x+=e}}]),i}(Rc),Zc=function(t){YC(i,t);var e=Fc(i);function i(t){var n;return qs(this,i),(n=e.call(this)).layout=t,n}return tC(i,[{key:"curveType",value:function(){return"vertical"}},{key:"getPosition",value:function(t){return t.y}},{key:"setPosition",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;void 0!==i&&this.layout.hierarchical.addToOrdering(t,i),t.y=e}},{key:"getTreeSize",value:function(t){var e=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,t);return{min:e.min_y,max:e.max_y}}},{key:"sort",value:function(t){Bc(t,(function(t,e){return t.y-e.y}))}},{key:"fix",value:function(t,e){t.x=this.layout.options.hierarchical.levelSeparation*e,t.options.fixed.x=!0}},{key:"shift",value:function(t,e){this.layout.body.nodes[t].y+=e}}]),i}(Rc),zc=ki.every,Gc=Wn("every"),Lc=Vn("every");V({target:"Array",proto:!0,forced:!Gc||!Lc},{every:function(t){return zc(this,t,arguments.length>1?arguments[1]:void 0)}});var Qc=q("Array").every,Wc=Array.prototype,Pc=function(t){var e=t.every;return t===Wc||t instanceof Array&&e===Wc.every?Qc:e};function Uc(t){if(void 0===nn||null==Ke(t)){if(oo(t)||(t=function(t,e){var i;if(!t)return;if("string"==typeof t)return Yc(t,e);var n=Vg(i=Object.prototype.toString.call(t)).call(i,8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return un(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Yc(t,e)}(t))){var e=0,i=function(){};return{s:i,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,g,o=!0,r=!1;return{s:function(){n=Je(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){r=!0,g=t},f:function(){try{o||null==n.return||n.return()}finally{if(r)throw g}}}}function Yc(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function Vc(t,e){var i=new yI;return eg(t).call(t,(function(t){var e;eg(e=t.edges).call(e,(function(t){t.connected&&i.add(t)}))})),eg(i).call(i,(function(t){var i=t.from.id,n=t.to.id;null==e[i]&&(e[i]=0),(null==e[n]||e[i]>=e[n])&&(e[n]=e[i]+1)})),e}function Xc(t,e,i,n,g){var o,r=n.size,A=i+"Id",s="to"===i?1:-1,C=Uc(n);try{var I=function(){var C=po(o.value,2),I=C[0],a=C[1];if(!n.has(I)||!t(a))return"continue";g[I]=0;for(var l=[a],c=0,u=void 0,d=function(){var t,o;if(!n.has(I))return"continue";var C=g[u.id]+s;if(eg(t=bg(o=u.edges).call(o,(function(t){return t.connected&&t.to!==t.from&&t[i]!==u&&n.has(t.toId)&&n.has(t.fromId)}))).call(t,(function(t){var n=t[A],o=g[n];(null==o||e(C,o))&&(g[n]=C,l.push(t[i]))})),c>r)return{v:{v:Vc(n,g)}};++c};u=l.pop();){var h=d();switch(h){case"continue":continue;default:if("object"===lo(h))return h.v}}};for(C.s();!(o=C.n()).done;){var a=I();switch(a){case"continue":continue;default:if("object"===lo(a))return a.v}}}catch(t){C.e(t)}finally{C.f()}return g}var Hc=function(){function t(){qs(this,t),this.childrenReference={},this.parentReference={},this.trees={},this.distributionOrdering={},this.levels={},this.distributionIndex={},this.isTree=!1,this.treeIndex=-1}return tC(t,[{key:"addRelation",value:function(t,e){void 0===this.childrenReference[t]&&(this.childrenReference[t]=[]),this.childrenReference[t].push(e),void 0===this.parentReference[e]&&(this.parentReference[e]=[]),this.parentReference[e].push(t)}},{key:"checkIfTree",value:function(){for(var t in this.parentReference)if(this.parentReference[t].length>1)return void(this.isTree=!1);this.isTree=!0}},{key:"numTrees",value:function(){return this.treeIndex+1}},{key:"setTreeIndex",value:function(t,e){void 0!==e&&void 0===this.trees[t.id]&&(this.trees[t.id]=e,this.treeIndex=Math.max(e,this.treeIndex))}},{key:"ensureLevel",value:function(t){void 0===this.levels[t]&&(this.levels[t]=0)}},{key:"getMaxLevel",value:function(t){var e=this,i={};return function t(n){if(void 0!==i[n])return i[n];var g=e.levels[n];if(e.childrenReference[n]){var o=e.childrenReference[n];if(o.length>0)for(var r=0;r<o.length;r++)g=Math.max(g,t(o[r]))}return i[n]=g,g}(t)}},{key:"levelDownstream",value:function(t,e){void 0===this.levels[e.id]&&(void 0===this.levels[t.id]&&(this.levels[t.id]=0),this.levels[e.id]=this.levels[t.id]+1)}},{key:"setMinLevelToZero",value:function(t){var e=1e9;for(var i in t)t.hasOwnProperty(i)&&void 0!==this.levels[i]&&(e=Math.min(this.levels[i],e));for(var n in t)t.hasOwnProperty(n)&&void 0!==this.levels[n]&&(this.levels[n]-=e)}},{key:"getTreeSize",value:function(t,e){var i=1e9,n=-1e9,g=1e9,o=-1e9;for(var r in this.trees)if(this.trees.hasOwnProperty(r)&&this.trees[r]===e){var A=t[r];i=Math.min(A.x,i),n=Math.max(A.x,n),g=Math.min(A.y,g),o=Math.max(A.y,o)}return{min_x:i,max_x:n,min_y:g,max_y:o}}},{key:"hasSameParent",value:function(t,e){var i=this.parentReference[t.id],n=this.parentReference[e.id];if(void 0===i||void 0===n)return!1;for(var g=0;g<i.length;g++)for(var o=0;o<n.length;o++)if(i[g]==n[o])return!0;return!1}},{key:"inSameSubNetwork",value:function(t,e){return this.trees[t.id]===this.trees[e.id]}},{key:"getLevels",value:function(){return jn(this.distributionOrdering)}},{key:"addToOrdering",value:function(t,e){void 0===this.distributionOrdering[e]&&(this.distributionOrdering[e]=[]);var i=!1,n=this.distributionOrdering[e];for(var g in n)if(n[g]===t){i=!0;break}i||(this.distributionOrdering[e].push(t),this.distributionIndex[t.id]=this.distributionOrdering[e].length-1)}}]),t}(),Jc=function(){function t(e){qs(this,t),this.body=e,this._resetRNG(Math.random()+":"+fo()),this.setPhysics=!1,this.options={},this.optionsBackup={physics:{}},this.defaultOptions={randomSeed:void 0,improvedLayout:!0,clusterThreshold:150,hierarchical:{enabled:!1,levelSeparation:150,nodeSpacing:100,treeSpacing:200,blockShifting:!0,edgeMinimization:!0,parentCentralization:!0,direction:"UD",sortMethod:"hubsize"}},So(this.options,this.defaultOptions),this.bindEventListeners()}return tC(t,[{key:"bindEventListeners",value:function(){var t=this;this.body.emitter.on("_dataChanged",(function(){t.setupHierarchicalLayout()})),this.body.emitter.on("_dataLoaded",(function(){t.layoutNetwork()})),this.body.emitter.on("_resetHierarchicalLayout",(function(){t.setupHierarchicalLayout()})),this.body.emitter.on("_adjustEdgesForHierarchicalLayout",(function(){if(!0===t.options.hierarchical.enabled){var e=t.direction.curveType();t.body.emitter.emit("_forceDisableDynamicCurves",e,!1)}}))}},{key:"setOptions",value:function(t,e){if(void 0!==t){var i=this.options.hierarchical,n=i.enabled;if(Zo(["randomSeed","improvedLayout","clusterThreshold"],this.options,t),ar(this.options,t,"hierarchical"),void 0!==t.randomSeed&&this._resetRNG(t.randomSeed),!0===i.enabled)return!0===n&&this.body.emitter.emit("refresh",!0),"RL"===i.direction||"DU"===i.direction?i.levelSeparation>0&&(i.levelSeparation*=-1):i.levelSeparation<0&&(i.levelSeparation*=-1),this.setDirectionStrategy(),this.body.emitter.emit("_resetHierarchicalLayout"),this.adaptAllOptionsForHierarchicalLayout(e);if(!0===n)return this.body.emitter.emit("refresh"),Go(e,this.optionsBackup)}return e}},{key:"_resetRNG",value:function(t){this.initialRandomSeed=t,this._rng=xo(this.initialRandomSeed)}},{key:"adaptAllOptionsForHierarchicalLayout",value:function(t){if(!0===this.options.hierarchical.enabled){var e=this.optionsBackup.physics;void 0===t.physics||!0===t.physics?(t.physics={enabled:void 0===e.enabled||e.enabled,solver:"hierarchicalRepulsion"},e.enabled=void 0===e.enabled||e.enabled,e.solver=e.solver||"barnesHut"):"object"===lo(t.physics)?(e.enabled=void 0===t.physics.enabled||t.physics.enabled,e.solver=t.physics.solver||"barnesHut",t.physics.solver="hierarchicalRepulsion"):!1!==t.physics&&(e.solver="barnesHut",t.physics={solver:"hierarchicalRepulsion"});var i=this.direction.curveType();if(void 0===t.edges)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},t.edges={smooth:!1};else if(void 0===t.edges.smooth)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},t.edges.smooth=!1;else if("boolean"==typeof t.edges.smooth)this.optionsBackup.edges={smooth:t.edges.smooth},t.edges.smooth={enabled:t.edges.smooth,type:i};else{var n=t.edges.smooth;void 0!==n.type&&"dynamic"!==n.type&&(i=n.type),this.optionsBackup.edges={smooth:{enabled:void 0===n.enabled||n.enabled,type:void 0===n.type?"dynamic":n.type,roundness:void 0===n.roundness?.5:n.roundness,forceDirection:void 0!==n.forceDirection&&n.forceDirection}},t.edges.smooth={enabled:void 0===n.enabled||n.enabled,type:i,roundness:void 0===n.roundness?.5:n.roundness,forceDirection:void 0!==n.forceDirection&&n.forceDirection}}this.body.emitter.emit("_forceDisableDynamicCurves",i)}return t}},{key:"positionInitially",value:function(t){if(!0!==this.options.hierarchical.enabled){this._resetRNG(this.initialRandomSeed);for(var e=t.length+50,i=0;i<t.length;i++){var n=t[i],g=2*Math.PI*this._rng();void 0===n.x&&(n.x=e*Math.cos(g)),void 0===n.y&&(n.y=e*Math.sin(g))}}}},{key:"layoutNetwork",value:function(){if(!0!==this.options.hierarchical.enabled&&!0===this.options.improvedLayout){for(var t=this.body.nodeIndices,e=0,i=0;i<t.length;i++){!0===this.body.nodes[t[i]].predefinedPosition&&(e+=1)}if(e<.5*t.length){var n=0,g=this.options.clusterThreshold,o={clusterNodeProperties:{shape:"ellipse",label:"",group:"",font:{multi:!1}},clusterEdgeProperties:{label:"",font:{multi:!1},smooth:{enabled:!1}}};if(t.length>g){for(var r=t.length;t.length>g&&n<=10;){n+=1;var A=t.length;if(n%3==0?this.body.modules.clustering.clusterBridges(o):this.body.modules.clustering.clusterOutliers(o),A==t.length&&n%3!=0)return this._declusterAll(),this.body.emitter.emit("_layoutFailed"),void console.info("This network could not be positioned by this version of the improved layout algorithm. Please disable improvedLayout for better performance.")}this.body.modules.kamadaKawai.setOptions({springLength:Math.max(150,2*r)})}n>10&&console.info("The clustering didn't succeed within the amount of interations allowed, progressing with partial result."),this.body.modules.kamadaKawai.solve(t,this.body.edgeIndices,!0),this._shiftToCenter();for(var s=0;s<t.length;s++){var C=this.body.nodes[t[s]];!1===C.predefinedPosition&&(C.x+=70*(.5-this._rng()),C.y+=70*(.5-this._rng()))}this._declusterAll(),this.body.emitter.emit("_repositionBezierNodes")}}}},{key:"_shiftToCenter",value:function(){for(var t=vc.getRangeCore(this.body.nodes,this.body.nodeIndices),e=vc.findCenter(t),i=0;i<this.body.nodeIndices.length;i++){var n=this.body.nodes[this.body.nodeIndices[i]];n.x-=e.x,n.y-=e.y}}},{key:"_declusterAll",value:function(){for(var t=!0;!0===t;){t=!1;for(var e=0;e<this.body.nodeIndices.length;e++)!0===this.body.nodes[this.body.nodeIndices[e]].isCluster&&(t=!0,this.body.modules.clustering.openCluster(this.body.nodeIndices[e],{},!1));!0===t&&this.body.emitter.emit("_dataChanged")}}},{key:"getSeed",value:function(){return this.initialRandomSeed}},{key:"setupHierarchicalLayout",value:function(){if(!0===this.options.hierarchical.enabled&&this.body.nodeIndices.length>0){var t,e,i=!1,n=!1;for(e in this.lastNodeOnLevel={},this.hierarchical=new Hc,this.body.nodes)this.body.nodes.hasOwnProperty(e)&&(void 0!==(t=this.body.nodes[e]).options.level?(i=!0,this.hierarchical.levels[e]=t.options.level):n=!0);if(!0===n&&!0===i)throw new Error("To use the hierarchical layout, nodes require either no predefined levels or levels have to be defined for all nodes.");if(!0===n){var g=this.options.hierarchical.sortMethod;"hubsize"===g?this._determineLevelsByHubsize():"directed"===g?this._determineLevelsDirected():"custom"===g&&this._determineLevelsCustomCallback()}for(var o in this.body.nodes)this.body.nodes.hasOwnProperty(o)&&this.hierarchical.ensureLevel(o);var r=this._getDistribution();this._generateMap(),this._placeNodesByHierarchy(r),this._condenseHierarchy(),this._shiftToCenter()}}},{key:"_condenseHierarchy",value:function(){var t=this,e=!1,i={},n=function(e,i){var n=t.hierarchical.trees;for(var g in n)n.hasOwnProperty(g)&&n[g]===e&&t.direction.shift(g,i)},g=function(){for(var e=[],i=0;i<t.hierarchical.numTrees();i++)e.push(t.direction.getTreeSize(i));return e},o=function e(i,n){if(!n[i.id]&&(n[i.id]=!0,t.hierarchical.childrenReference[i.id])){var g=t.hierarchical.childrenReference[i.id];if(g.length>0)for(var o=0;o<g.length;o++)e(t.body.nodes[g[o]],n)}},r=function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e9,n=1e9,g=1e9,o=1e9,r=-1e9;for(var A in e)if(e.hasOwnProperty(A)){var s=t.body.nodes[A],C=t.hierarchical.levels[s.id],I=t.direction.getPosition(s),a=t._getSpaceAroundNode(s,e),l=po(a,2),c=l[0],u=l[1];n=Math.min(c,n),g=Math.min(u,g),C<=i&&(o=Math.min(I,o),r=Math.max(I,r))}return[o,r,n,g]},A=function(e,i){var n=t.hierarchical.getMaxLevel(e.id),g=t.hierarchical.getMaxLevel(i.id);return Math.min(n,g)},s=function(e,i,n){for(var g=t.hierarchical,o=0;o<i.length;o++){var r=i[o],A=g.distributionOrdering[r];if(A.length>1)for(var s=0;s<A.length-1;s++){var C=A[s],I=A[s+1];g.hasSameParent(C,I)&&g.inSameSubNetwork(C,I)&&e(C,I,n)}}},C=function(i,n){var g=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=t.direction.getPosition(i),C=t.direction.getPosition(n),I=Math.abs(C-s),a=t.options.hierarchical.nodeSpacing;if(I>a){var l={},c={};o(i,l),o(n,c);var u=A(i,n),d=r(l,u),h=r(c,u),p=d[1],f=h[0],v=h[2],y=Math.abs(p-f);if(y>a){var m=p-f+a;m<-v+a&&(m=-v+a),m<0&&(t._shiftBlock(n.id,m),e=!0,!0===g&&t._centerParent(n))}}},I=function(n,g){for(var A=g.id,s=g.edges,C=t.hierarchical.levels[g.id],I=t.options.hierarchical.levelSeparation*t.options.hierarchical.levelSeparation,a={},l=[],c=0;c<s.length;c++){var u=s[c];if(u.toId!=u.fromId){var d=u.toId==A?u.from:u.to;a[s[c].id]=d,t.hierarchical.levels[d.id]<C&&l.push(u)}}var h=function(e,i){for(var n=0,g=0;g<i.length;g++)if(void 0!==a[i[g].id]){var o=t.direction.getPosition(a[i[g].id])-e;n+=o/Math.sqrt(o*o+I)}return n},p=function(e,i){for(var n=0,g=0;g<i.length;g++)if(void 0!==a[i[g].id]){var o=t.direction.getPosition(a[i[g].id])-e;n-=I*Math.pow(o*o+I,-1.5)}return n},f=function(e,i){for(var n=t.direction.getPosition(g),o={},r=0;r<e;r++){var A=h(n,i),s=p(n,i);if(void 0!==o[n-=Math.max(-40,Math.min(40,Math.round(A/s)))])break;o[n]=r}return n},v=f(n,l);!function(n){var A=t.direction.getPosition(g);if(void 0===i[g.id]){var s={};o(g,s),i[g.id]=s}var C=r(i[g.id]),I=C[2],a=C[3],l=n-A,c=0;l>0?c=Math.min(l,a-t.options.hierarchical.nodeSpacing):l<0&&(c=-Math.min(-l,I-t.options.hierarchical.nodeSpacing)),0!=c&&(t._shiftBlock(g.id,c),e=!0)}(v),function(i){var n=t.direction.getPosition(g),o=t._getSpaceAroundNode(g),r=po(o,2),A=r[0],s=r[1],C=i-n,I=n;C>0?I=Math.min(n+(s-t.options.hierarchical.nodeSpacing),i):C<0&&(I=Math.max(n-(A-t.options.hierarchical.nodeSpacing),i)),I!==n&&(t.direction.setPosition(g,I),e=!0)}(v=f(n,s))};!0===this.options.hierarchical.blockShifting&&(function(i){var n=t.hierarchical.getLevels();n=fc(n).call(n);for(var g=0;g<i&&(e=!1,s(C,n,!0),!0===e);g++);}(5),function(){for(var e in t.body.nodes)t.body.nodes.hasOwnProperty(e)&&t._centerParent(t.body.nodes[e])}()),!0===this.options.hierarchical.edgeMinimization&&function(i){var n=t.hierarchical.getLevels();n=fc(n).call(n);for(var g=0;g<i;g++){e=!1;for(var o=0;o<n.length;o++)for(var r=n[o],A=t.hierarchical.distributionOrdering[r],s=0;s<A.length;s++)I(1e3,A[s]);if(!0!==e)break}}(20),!0===this.options.hierarchical.parentCentralization&&function(){var e=t.hierarchical.getLevels();e=fc(e).call(e);for(var i=0;i<e.length;i++)for(var n=e[i],g=t.hierarchical.distributionOrdering[n],o=0;o<g.length;o++)t._centerParent(g[o])}(),function(){for(var e=g(),i=0,o=0;o<e.length-1;o++){i+=e[o].max-e[o+1].min+t.options.hierarchical.treeSpacing,n(o+1,i)}}()}},{key:"_getSpaceAroundNode",value:function(t,e){var i=!0;void 0===e&&(i=!1);var n=this.hierarchical.levels[t.id];if(void 0!==n){var g=this.hierarchical.distributionIndex[t.id],o=this.direction.getPosition(t),r=this.hierarchical.distributionOrdering[n],A=1e9,s=1e9;if(0!==g){var C=r[g-1];if(!0===i&&void 0===e[C.id]||!1===i)A=o-this.direction.getPosition(C)}if(g!=r.length-1){var I=r[g+1];if(!0===i&&void 0===e[I.id]||!1===i){var a=this.direction.getPosition(I);s=Math.min(s,a-o)}}return[A,s]}return[0,0]}},{key:"_centerParent",value:function(t){if(this.hierarchical.parentReference[t.id])for(var e=this.hierarchical.parentReference[t.id],i=0;i<e.length;i++){var n=e[i],g=this.body.nodes[n],o=this.hierarchical.childrenReference[n];if(void 0!==o){var r=this._getCenterPosition(o),A=this.direction.getPosition(g),s=this._getSpaceAroundNode(g),C=po(s,2),I=C[0],a=C[1],l=A-r;(l<0&&Math.abs(l)<a-this.options.hierarchical.nodeSpacing||l>0&&Math.abs(l)<I-this.options.hierarchical.nodeSpacing)&&this.direction.setPosition(g,r)}}}},{key:"_placeNodesByHierarchy",value:function(t){for(var e in this.positionedNodes={},t)if(t.hasOwnProperty(e)){var i,n=jn(t[e]);n=this._indexArrayToNodes(n),nI(i=this.direction).call(i,n);for(var g=0,o=0;o<n.length;o++){var r=n[o];if(void 0===this.positionedNodes[r.id]){var A=this.options.hierarchical.nodeSpacing,s=A*g;g>0&&(s=this.direction.getPosition(n[o-1])+A),this.direction.setPosition(r,s,e),this._validatePositionAndContinue(r,e,s),g++}}}}},{key:"_placeBranchNodes",value:function(t,e){var i,n=this.hierarchical.childrenReference[t];if(void 0!==n){for(var g=[],o=0;o<n.length;o++)g.push(this.body.nodes[n[o]]);nI(i=this.direction).call(i,g);for(var r=0;r<g.length;r++){var A=g[r],s=this.hierarchical.levels[A.id];if(!(s>e&&void 0===this.positionedNodes[A.id]))return;var C=this.options.hierarchical.nodeSpacing,I=void 0;I=0===r?this.direction.getPosition(this.body.nodes[t]):this.direction.getPosition(g[r-1])+C,this.direction.setPosition(A,I,s),this._validatePositionAndContinue(A,s,I)}var a=this._getCenterPosition(g);this.direction.setPosition(this.body.nodes[t],a,e)}}},{key:"_validatePositionAndContinue",value:function(t,e,i){if(this.hierarchical.isTree){if(void 0!==this.lastNodeOnLevel[e]){var n=this.direction.getPosition(this.body.nodes[this.lastNodeOnLevel[e]]);if(i-n<this.options.hierarchical.nodeSpacing){var g=n+this.options.hierarchical.nodeSpacing-i,o=this._findCommonParent(this.lastNodeOnLevel[e],t.id);this._shiftBlock(o.withChild,g)}}this.lastNodeOnLevel[e]=t.id,this.positionedNodes[t.id]=!0,this._placeBranchNodes(t.id,e)}}},{key:"_indexArrayToNodes",value:function(t){for(var e=[],i=0;i<t.length;i++)e.push(this.body.nodes[t[i]]);return e}},{key:"_getDistribution",value:function(){var t,e,i={};for(t in this.body.nodes)if(this.body.nodes.hasOwnProperty(t)){e=this.body.nodes[t];var n=void 0===this.hierarchical.levels[t]?0:this.hierarchical.levels[t];this.direction.fix(e,n),void 0===i[n]&&(i[n]={}),i[n][t]=e}return i}},{key:"_getActiveEdges",value:function(t){var e=this,i=[];return Yo(t.edges,(function(t){var n;-1!==go(n=e.body.edgeIndices).call(n,t.id)&&i.push(t)})),i}},{key:"_getHubSizes",value:function(){var t=this,e={};Yo(this.body.nodeIndices,(function(i){var n=t.body.nodes[i],g=t._getActiveEdges(n).length;e[g]=!0}));var i=[];return Yo(e,(function(t){i.push(Number(t))})),nI(Ec).call(Ec,i,(function(t,e){return e-t})),i}},{key:"_determineLevelsByHubsize",value:function(){for(var t=this,e=function(e,i){t.hierarchical.levelDownstream(e,i)},i=this._getHubSizes(),n=function(n){var g=i[n];if(0===g)return"break";Yo(t.body.nodeIndices,(function(i){var n=t.body.nodes[i];g===t._getActiveEdges(n).length&&t._crawlNetwork(e,i)}))},g=0;g<i.length;++g){if("break"===n(g))break}}},{key:"_determineLevelsCustomCallback",value:function(){var t=this;this._crawlNetwork((function(e,i,n){var g=t.hierarchical.levels[e.id];void 0===g&&(g=t.hierarchical.levels[e.id]=1e5);var o=(vc.cloneOptions(e,"node"),vc.cloneOptions(i,"node"),void vc.cloneOptions(n,"edge"));t.hierarchical.levels[i.id]=g+o})),this.hierarchical.setMinLevelToZero(this.body.nodes)}},{key:"_determineLevelsDirected",value:function(){var t,e=this,i=FI(t=this.body.nodeIndices).call(t,(function(t,i){return t.set(i,e.body.nodes[i]),t}),new mI),n=this.hierarchical.levels;"roots"===this.options.hierarchical.shakeTowards?this.hierarchical.levels=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Dn(null);return Xc((function(e){var i,n;return Pc(i=bg(n=e.edges).call(n,(function(e){return t.has(e.toId)}))).call(i,(function(t){return t.from===e}))}),(function(t,e){return e<t}),"to",t,e)}(i,n):this.hierarchical.levels=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Dn(null);return Xc((function(e){var i,n;return Pc(i=bg(n=e.edges).call(n,(function(e){return t.has(e.toId)}))).call(i,(function(t){return t.to===e}))}),(function(t,e){return e>t}),"from",t,e)}(i,n),this.hierarchical.setMinLevelToZero(this.body.nodes)}},{key:"_generateMap",value:function(){var t=this;this._crawlNetwork((function(e,i){t.hierarchical.levels[i.id]>t.hierarchical.levels[e.id]&&t.hierarchical.addRelation(e.id,i.id)})),this.hierarchical.checkIfTree()}},{key:"_crawlNetwork",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},i=arguments.length>1?arguments[1]:void 0,n={},g=function i(g,o){if(void 0===n[g.id]){var r;t.hierarchical.setTreeIndex(g,o),n[g.id]=!0;for(var A=t._getActiveEdges(g),s=0;s<A.length;s++){var C=A[s];!0===C.connected&&(r=C.toId==g.id?C.from:C.to,g.id!=r.id&&(e(g,r,C),i(r,o)))}}};if(void 0===i)for(var o=0,r=0;r<this.body.nodeIndices.length;r++){var A=this.body.nodeIndices[r];if(void 0===n[A]){var s=this.body.nodes[A];g(s,o),o+=1}}else{var C=this.body.nodes[i];if(void 0===C)return void console.error("Node not found:",i);g(C)}}},{key:"_shiftBlock",value:function(t,e){var i=this,n={};!function t(g){if(!n[g]){n[g]=!0,i.direction.shift(g,e);var o=i.hierarchical.childrenReference[g];if(void 0!==o)for(var r=0;r<o.length;r++)t(o[r])}}(t)}},{key:"_findCommonParent",value:function(t,e){var i=this,n={};return function t(e,n){var g=i.hierarchical.parentReference[n];if(void 0!==g)for(var o=0;o<g.length;o++){var r=g[o];e[r]=!0,t(e,r)}}(n,t),function t(e,n){var g=i.hierarchical.parentReference[n];if(void 0!==g)for(var o=0;o<g.length;o++){var r=g[o];if(void 0!==e[r])return{foundParent:r,withChild:n};var A=t(e,r);if(null!==A.foundParent)return A}return{foundParent:null,withChild:n}}(n,e)}},{key:"setDirectionStrategy",value:function(){var t="UD"===this.options.hierarchical.direction||"DU"===this.options.hierarchical.direction;this.direction=t?new Sc(this):new Zc(this)}},{key:"_getCenterPosition",value:function(t){for(var e=1e9,i=-1e9,n=0;n<t.length;n++){var g=void 0;if(void 0!==t[n].id)g=t[n];else{var o=t[n];g=this.body.nodes[o]}var r=this.direction.getPosition(g);e=Math.min(e,r),i=Math.max(i,r)}return.5*(e+i)}}]),t}();hA("div.vis-network div.vis-manipulation {\n  box-sizing: content-box;\n\n  border-width: 0;\n  border-bottom: 1px;\n  border-style:solid;\n  border-color: #d6d9d8;\n  background: #ffffff; /* Old browsers */\n  background: -moz-linear-gradient(top,  #ffffff 0%, #fcfcfc 48%, #fafafa 50%, #fcfcfc 100%); /* FF3.6+ */\n  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(48%,#fcfcfc), color-stop(50%,#fafafa), color-stop(100%,#fcfcfc)); /* Chrome,Safari4+ */\n  background: -webkit-linear-gradient(top,  #ffffff 0%,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%); /* Chrome10+,Safari5.1+ */\n  background: -o-linear-gradient(top,  #ffffff 0%,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%); /* Opera 11.10+ */\n  background: -ms-linear-gradient(top,  #ffffff 0%,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%); /* IE10+ */\n  background: linear-gradient(to bottom,  #ffffff 0%,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%); /* W3C */\n  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#fcfcfc',GradientType=0 ); /* IE6-9 */\n\n  padding-top:4px;\n  position: absolute;\n  left: 0;\n  top: 0;\n  width: 100%;\n  height: 28px;\n}\n\ndiv.vis-network div.vis-edit-mode {\n  position:absolute;\n  left: 0;\n  top: 5px;\n  height: 30px;\n}\n\n/* FIXME: shouldn't the vis-close button be a child of the vis-manipulation div? */\n\ndiv.vis-network div.vis-close {\n  position:absolute;\n  right: 0;\n  top: 0;\n  width: 30px;\n  height: 30px;\n\n  background-position: 20px 3px;\n  background-repeat: no-repeat;\n  background-image: url('data:image/png;base64, ');\n  cursor: pointer;\n  -webkit-touch-callout: none;\n  -webkit-user-select: none;\n  -khtml-user-select: none;\n  -moz-user-select: none;\n  -ms-user-select: none;\n  user-select: none;\n}\n\ndiv.vis-network div.vis-close:hover {\n  opacity: 0.6;\n}\n\ndiv.vis-network div.vis-manipulation div.vis-button,\ndiv.vis-network div.vis-edit-mode div.vis-button {\n  float:left;\n  font-family: verdana;\n  font-size: 12px;\n  -moz-border-radius: 15px;\n  border-radius: 15px;\n  display:inline-block;\n  background-position: 0px 0px;\n  background-repeat:no-repeat;\n  height:24px;\n  margin-left: 10px;\n  /*vertical-align:middle;*/\n  cursor: pointer;\n  padding: 0px 8px 0px 8px;\n  -webkit-touch-callout: none;\n  -webkit-user-select: none;\n  -khtml-user-select: none;\n  -moz-user-select: none;\n  -ms-user-select: none;\n  user-select: none;\n}\n\ndiv.vis-network div.vis-manipulation div.vis-button:hover {\n  box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.20);\n}\n\ndiv.vis-network div.vis-manipulation div.vis-button:active {\n  box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.50);\n}\n\ndiv.vis-network div.vis-manipulation div.vis-button.vis-back {\n  background-image: url('data:image/png;base64, ');\n}\n\ndiv.vis-network div.vis-manipulation div.vis-button.vis-none:hover {\n  box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.0);\n  cursor: default;\n}\ndiv.vis-network div.vis-manipulation div.vis-button.vis-none:active {\n  box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.0);\n}\ndiv.vis-network div.vis-manipulation div.vis-button.vis-none {\n  padding: 0;\n}\ndiv.vis-network div.vis-manipulation div.notification {\n  margin: 2px;\n  font-weight: bold;\n}\n\ndiv.vis-network div.vis-manipulation div.vis-button.vis-add {\n  background-image: url('data:image/png;base64, ');\n}\n\ndiv.vis-network div.vis-manipulation div.vis-button.vis-edit,\ndiv.vis-network div.vis-edit-mode div.vis-button.vis-edit {\n  background-image: url('data:image/png;base64, ');\n}\n\ndiv.vis-network div.vis-edit-mode div.vis-button.vis-edit.vis-edit-mode {\n  background-color: #fcfcfc;\n  border: 1px solid #cccccc;\n}\n\ndiv.vis-network div.vis-manipulation div.vis-button.vis-connect {\n  background-image: url('data:image/png;base64, ');\n}\n\ndiv.vis-network div.vis-manipulation div.vis-button.vis-delete {\n  background-image: url('data:image/png;base64, ');\n}\n/* top right bottom left */\ndiv.vis-network div.vis-manipulation div.vis-label,\ndiv.vis-network div.vis-edit-mode div.vis-label {\n  margin: 0 0 0 23px;\n  line-height: 25px;\n}\ndiv.vis-network div.vis-manipulation div.vis-separator-line {\n  float:left;\n  display:inline-block;\n  width:1px;\n  height:21px;\n  background-color: #bdbdbd;\n  margin: 0px 7px 0 15px; /*top right bottom left*/\n}\n\n/* TODO: is this redundant?\ndiv.network-navigation_wrapper {\n  position: absolute;\n  left: 0;\n  top: 0;\n  width: 100%;\n  height: 100%;\n}\n*/\n\n/*# sourceMappingURL=data:application/json;base64,  */");var Kc=function(){function t(e,i,n,g){var o,r,A=this;qs(this,t),this.body=e,this.canvas=i,this.selectionHandler=n,this.interactionHandler=g,this.editMode=!1,this.manipulationDiv=void 0,this.editModeDiv=void 0,this.closeDiv=void 0,this.manipulationHammers=[],this.temporaryUIFunctions={},this.temporaryEventFunctions=[],this.touchTime=0,this.temporaryIds={nodes:[],edges:[]},this.guiEnabled=!1,this.inMode=!1,this.selectedControlNode=void 0,this.options={},this.defaultOptions={enabled:!1,initiallyActive:!1,addNode:!0,addEdge:!0,editNode:void 0,editEdge:!0,deleteNode:!0,deleteEdge:!0,controlNodeStyle:{shape:"dot",size:6,color:{background:"#ff0000",border:"#3c3c3c",highlight:{background:"#07f968",border:"#3c3c3c"}},borderWidth:2,borderWidthSelected:2}},So(this.options,this.defaultOptions),this.body.emitter.on("destroy",(function(){A._clean()})),this.body.emitter.on("_dataChanged",et(o=this._restore).call(o,this)),this.body.emitter.on("_resetData",et(r=this._restore).call(r,this))}return tC(t,[{key:"_restore",value:function(){!1!==this.inMode&&(!0===this.options.initiallyActive?this.enableEditMode():this.disableEditMode())}},{key:"setOptions",value:function(t,e,i){void 0!==e&&(void 0!==e.locale?this.options.locale=e.locale:this.options.locale=i.locale,void 0!==e.locales?this.options.locales=e.locales:this.options.locales=i.locales),void 0!==t&&("boolean"==typeof t?this.options.enabled=t:(this.options.enabled=!0,Go(this.options,t)),!0===this.options.initiallyActive&&(this.editMode=!0),this._setup())}},{key:"toggleEditMode",value:function(){!0===this.editMode?this.disableEditMode():this.enableEditMode()}},{key:"enableEditMode",value:function(){this.editMode=!0,this._clean(),!0===this.guiEnabled&&(this.manipulationDiv.style.display="block",this.closeDiv.style.display="block",this.editModeDiv.style.display="none",this.showManipulatorToolbar())}},{key:"disableEditMode",value:function(){this.editMode=!1,this._clean(),!0===this.guiEnabled&&(this.manipulationDiv.style.display="none",this.closeDiv.style.display="none",this.editModeDiv.style.display="block",this._createEditButton())}},{key:"showManipulatorToolbar",value:function(){if(this._clean(),this.manipulationDOM={},!0===this.guiEnabled){var t,e;this.editMode=!0,this.manipulationDiv.style.display="block",this.closeDiv.style.display="block";var i=this.selectionHandler._getSelectedNodeCount(),n=this.selectionHandler._getSelectedEdgeCount(),g=i+n,o=this.options.locales[this.options.locale],r=!1;!1!==this.options.addNode&&(this._createAddNodeButton(o),r=!0),!1!==this.options.addEdge&&(!0===r?this._createSeperator(1):r=!0,this._createAddEdgeButton(o)),1===i&&"function"==typeof this.options.editNode?(!0===r?this._createSeperator(2):r=!0,this._createEditNodeButton(o)):1===n&&0===i&&!1!==this.options.editEdge&&(!0===r?this._createSeperator(3):r=!0,this._createEditEdgeButton(o)),0!==g&&(i>0&&!1!==this.options.deleteNode||0===i&&!1!==this.options.deleteEdge)&&(!0===r&&this._createSeperator(4),this._createDeleteButton(o)),this._bindHammerToDiv(this.closeDiv,et(t=this.toggleEditMode).call(t,this)),this._temporaryBindEvent("select",et(e=this.showManipulatorToolbar).call(e,this))}this.body.emitter.emit("_redraw")}},{key:"addNodeMode",value:function(){var t;if(!0!==this.editMode&&this.enableEditMode(),this._clean(),this.inMode="addNode",!0===this.guiEnabled){var e,i=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(i),this._createSeperator(),this._createDescription(i.addDescription||this.options.locales.en.addDescription),this._bindHammerToDiv(this.closeDiv,et(e=this.toggleEditMode).call(e,this))}this._temporaryBindEvent("click",et(t=this._performAddNode).call(t,this))}},{key:"editNode",value:function(){var t=this;!0!==this.editMode&&this.enableEditMode(),this._clean();var e=this.selectionHandler._getSelectedNode();if(void 0!==e){if(this.inMode="editNode","function"!=typeof this.options.editNode)throw new Error("No function has been configured to handle the editing of nodes.");if(!0!==e.isCluster){var i=Go({},e.options,!1);if(i.x=e.x,i.y=e.y,2!==this.options.editNode.length)throw new Error("The function for edit does not support two arguments (data, callback)");this.options.editNode(i,(function(e){null!=e&&"editNode"===t.inMode&&t.body.data.nodes.getDataSet().update(e),t.showManipulatorToolbar()}))}else alert(this.options.locales[this.options.locale].editClusterError||this.options.locales.en.editClusterError)}else this.showManipulatorToolbar()}},{key:"addEdgeMode",value:function(){var t,e,i,n,g;if(!0!==this.editMode&&this.enableEditMode(),this._clean(),this.inMode="addEdge",!0===this.guiEnabled){var o,r=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(r),this._createSeperator(),this._createDescription(r.edgeDescription||this.options.locales.en.edgeDescription),this._bindHammerToDiv(this.closeDiv,et(o=this.toggleEditMode).call(o,this))}this._temporaryBindUI("onTouch",et(t=this._handleConnect).call(t,this)),this._temporaryBindUI("onDragEnd",et(e=this._finishConnect).call(e,this)),this._temporaryBindUI("onDrag",et(i=this._dragControlNode).call(i,this)),this._temporaryBindUI("onRelease",et(n=this._finishConnect).call(n,this)),this._temporaryBindUI("onDragStart",et(g=this._dragStartEdge).call(g,this)),this._temporaryBindUI("onHold",(function(){}))}},{key:"editEdgeMode",value:function(){if(!0!==this.editMode&&this.enableEditMode(),this._clean(),this.inMode="editEdge","object"!==lo(this.options.editEdge)||"function"!=typeof this.options.editEdge.editWithoutDrag||(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdges()[0],void 0===this.edgeBeingEditedId)){if(!0===this.guiEnabled){var t,e=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(e),this._createSeperator(),this._createDescription(e.editEdgeDescription||this.options.locales.en.editEdgeDescription),this._bindHammerToDiv(this.closeDiv,et(t=this.toggleEditMode).call(t,this))}if(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdges()[0],void 0!==this.edgeBeingEditedId){var i,n,g,o,r=this.body.edges[this.edgeBeingEditedId],A=this._getNewTargetNode(r.from.x,r.from.y),s=this._getNewTargetNode(r.to.x,r.to.y);this.temporaryIds.nodes.push(A.id),this.temporaryIds.nodes.push(s.id),this.body.nodes[A.id]=A,this.body.nodeIndices.push(A.id),this.body.nodes[s.id]=s,this.body.nodeIndices.push(s.id),this._temporaryBindUI("onTouch",et(i=this._controlNodeTouch).call(i,this)),this._temporaryBindUI("onTap",(function(){})),this._temporaryBindUI("onHold",(function(){})),this._temporaryBindUI("onDragStart",et(n=this._controlNodeDragStart).call(n,this)),this._temporaryBindUI("onDrag",et(g=this._controlNodeDrag).call(g,this)),this._temporaryBindUI("onDragEnd",et(o=this._controlNodeDragEnd).call(o,this)),this._temporaryBindUI("onMouseMove",(function(){})),this._temporaryBindEvent("beforeDrawing",(function(t){var e=r.edgeType.findBorderPositions(t);!1===A.selected&&(A.x=e.from.x,A.y=e.from.y),!1===s.selected&&(s.x=e.to.x,s.y=e.to.y)})),this.body.emitter.emit("_redraw")}else this.showManipulatorToolbar()}else{var C=this.body.edges[this.edgeBeingEditedId];this._performEditEdge(C.from.id,C.to.id)}}},{key:"deleteSelected",value:function(){var t=this;!0!==this.editMode&&this.enableEditMode(),this._clean(),this.inMode="delete";var e=this.selectionHandler.getSelectedNodes(),i=this.selectionHandler.getSelectedEdges(),n=void 0;if(e.length>0){for(var g=0;g<e.length;g++)if(!0===this.body.nodes[e[g]].isCluster)return void alert(this.options.locales[this.options.locale].deleteClusterError||this.options.locales.en.deleteClusterError);"function"==typeof this.options.deleteNode&&(n=this.options.deleteNode)}else i.length>0&&"function"==typeof this.options.deleteEdge&&(n=this.options.deleteEdge);if("function"==typeof n){var o={nodes:e,edges:i};if(2!==n.length)throw new Error("The function for delete does not support two arguments (data, callback)");n(o,(function(e){null!=e&&"delete"===t.inMode?(t.body.data.edges.getDataSet().remove(e.edges),t.body.data.nodes.getDataSet().remove(e.nodes),t.body.emitter.emit("startSimulation"),t.showManipulatorToolbar()):(t.body.emitter.emit("startSimulation"),t.showManipulatorToolbar())}))}else this.body.data.edges.getDataSet().remove(i),this.body.data.nodes.getDataSet().remove(e),this.body.emitter.emit("startSimulation"),this.showManipulatorToolbar()}},{key:"_setup",value:function(){!0===this.options.enabled?(this.guiEnabled=!0,this._createWrappers(),!1===this.editMode?this._createEditButton():this.showManipulatorToolbar()):(this._removeManipulationDOM(),this.guiEnabled=!1)}},{key:"_createWrappers",value:function(){void 0===this.manipulationDiv&&(this.manipulationDiv=document.createElement("div"),this.manipulationDiv.className="vis-manipulation",!0===this.editMode?this.manipulationDiv.style.display="block":this.manipulationDiv.style.display="none",this.canvas.frame.appendChild(this.manipulationDiv)),void 0===this.editModeDiv&&(this.editModeDiv=document.createElement("div"),this.editModeDiv.className="vis-edit-mode",!0===this.editMode?this.editModeDiv.style.display="none":this.editModeDiv.style.display="block",this.canvas.frame.appendChild(this.editModeDiv)),void 0===this.closeDiv&&(this.closeDiv=document.createElement("div"),this.closeDiv.className="vis-close",this.closeDiv.style.display=this.manipulationDiv.style.display,this.canvas.frame.appendChild(this.closeDiv))}},{key:"_getNewTargetNode",value:function(t,e){var i=Go({},this.options.controlNodeStyle);i.id="targetNode"+LI(),i.hidden=!1,i.physics=!1,i.x=t,i.y=e;var n=this.body.functions.createNode(i);return n.shape.boundingBox={left:t,right:t,top:e,bottom:e},n}},{key:"_createEditButton",value:function(){var t;this._clean(),this.manipulationDOM={},jo(this.editModeDiv);var e=this.options.locales[this.options.locale],i=this._createButton("editMode","vis-button vis-edit vis-edit-mode",e.edit||this.options.locales.en.edit);this.editModeDiv.appendChild(i),this._bindHammerToDiv(i,et(t=this.toggleEditMode).call(t,this))}},{key:"_clean",value:function(){this.inMode=!1,!0===this.guiEnabled&&(jo(this.editModeDiv),jo(this.manipulationDiv),this._cleanManipulatorHammers()),this._cleanupTemporaryNodesAndEdges(),this._unbindTemporaryUIs(),this._unbindTemporaryEvents(),this.body.emitter.emit("restorePhysics")}},{key:"_cleanManipulatorHammers",value:function(){if(0!=this.manipulationHammers.length){for(var t=0;t<this.manipulationHammers.length;t++)this.manipulationHammers[t].destroy();this.manipulationHammers=[]}}},{key:"_removeManipulationDOM",value:function(){this._clean(),jo(this.manipulationDiv),jo(this.editModeDiv),jo(this.closeDiv),this.manipulationDiv&&this.canvas.frame.removeChild(this.manipulationDiv),this.editModeDiv&&this.canvas.frame.removeChild(this.editModeDiv),this.closeDiv&&this.canvas.frame.removeChild(this.closeDiv),this.manipulationDiv=void 0,this.editModeDiv=void 0,this.closeDiv=void 0}},{key:"_createSeperator",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.manipulationDOM["seperatorLineDiv"+t]=document.createElement("div"),this.manipulationDOM["seperatorLineDiv"+t].className="vis-separator-line",this.manipulationDiv.appendChild(this.manipulationDOM["seperatorLineDiv"+t])}},{key:"_createAddNodeButton",value:function(t){var e,i=this._createButton("addNode","vis-button vis-add",t.addNode||this.options.locales.en.addNode);this.manipulationDiv.appendChild(i),this._bindHammerToDiv(i,et(e=this.addNodeMode).call(e,this))}},{key:"_createAddEdgeButton",value:function(t){var e,i=this._createButton("addEdge","vis-button vis-connect",t.addEdge||this.options.locales.en.addEdge);this.manipulationDiv.appendChild(i),this._bindHammerToDiv(i,et(e=this.addEdgeMode).call(e,this))}},{key:"_createEditNodeButton",value:function(t){var e,i=this._createButton("editNode","vis-button vis-edit",t.editNode||this.options.locales.en.editNode);this.manipulationDiv.appendChild(i),this._bindHammerToDiv(i,et(e=this.editNode).call(e,this))}},{key:"_createEditEdgeButton",value:function(t){var e,i=this._createButton("editEdge","vis-button vis-edit",t.editEdge||this.options.locales.en.editEdge);this.manipulationDiv.appendChild(i),this._bindHammerToDiv(i,et(e=this.editEdgeMode).call(e,this))}},{key:"_createDeleteButton",value:function(t){var e,i;i=this.options.rtl?"vis-button vis-delete-rtl":"vis-button vis-delete";var n=this._createButton("delete",i,t.del||this.options.locales.en.del);this.manipulationDiv.appendChild(n),this._bindHammerToDiv(n,et(e=this.deleteSelected).call(e,this))}},{key:"_createBackButton",value:function(t){var e,i=this._createButton("back","vis-button vis-back",t.back||this.options.locales.en.back);this.manipulationDiv.appendChild(i),this._bindHammerToDiv(i,et(e=this.showManipulatorToolbar).call(e,this))}},{key:"_createButton",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"vis-label";return this.manipulationDOM[t+"Div"]=document.createElement("div"),this.manipulationDOM[t+"Div"].className=e,this.manipulationDOM[t+"Label"]=document.createElement("div"),this.manipulationDOM[t+"Label"].className=n,this.manipulationDOM[t+"Label"].innerHTML=i,this.manipulationDOM[t+"Div"].appendChild(this.manipulationDOM[t+"Label"]),this.manipulationDOM[t+"Div"]}},{key:"_createDescription",value:function(t){this.manipulationDiv.appendChild(this._createButton("description","vis-button vis-none",t))}},{key:"_temporaryBindEvent",value:function(t,e){this.temporaryEventFunctions.push({event:t,boundFunction:e}),this.body.emitter.on(t,e)}},{key:"_temporaryBindUI",value:function(t,e){if(void 0===this.body.eventListeners[t])throw new Error("This UI function does not exist. Typo? You tried: "+t+" possible are: "+BC(jn(this.body.eventListeners)));this.temporaryUIFunctions[t]=this.body.eventListeners[t],this.body.eventListeners[t]=e}},{key:"_unbindTemporaryUIs",value:function(){for(var t in this.temporaryUIFunctions)this.temporaryUIFunctions.hasOwnProperty(t)&&(this.body.eventListeners[t]=this.temporaryUIFunctions[t],delete this.temporaryUIFunctions[t]);this.temporaryUIFunctions={}}},{key:"_unbindTemporaryEvents",value:function(){for(var t=0;t<this.temporaryEventFunctions.length;t++){var e=this.temporaryEventFunctions[t].event,i=this.temporaryEventFunctions[t].boundFunction;this.body.emitter.off(e,i)}this.temporaryEventFunctions=[]}},{key:"_bindHammerToDiv",value:function(t,e){var i=new Vs(t,{});kc.onTouch(i,e),this.manipulationHammers.push(i)}},{key:"_cleanupTemporaryNodesAndEdges",value:function(){for(var t=0;t<this.temporaryIds.edges.length;t++){var e;this.body.edges[this.temporaryIds.edges[t]].disconnect(),delete this.body.edges[this.temporaryIds.edges[t]];var i,n=go(e=this.body.edgeIndices).call(e,this.temporaryIds.edges[t]);if(-1!==n)mr(i=this.body.edgeIndices).call(i,n,1)}for(var g=0;g<this.temporaryIds.nodes.length;g++){var o;delete this.body.nodes[this.temporaryIds.nodes[g]];var r,A=go(o=this.body.nodeIndices).call(o,this.temporaryIds.nodes[g]);if(-1!==A)mr(r=this.body.nodeIndices).call(r,A,1)}this.temporaryIds={nodes:[],edges:[]}}},{key:"_controlNodeTouch",value:function(t){this.selectionHandler.unselectAll(),this.lastTouch=this.body.functions.getPointer(t.center),this.lastTouch.translation=So({},this.body.view.translation)}},{key:"_controlNodeDragStart",value:function(t){var e=this.lastTouch,i=this.selectionHandler._pointerToPositionObject(e),n=this.body.nodes[this.temporaryIds.nodes[0]],g=this.body.nodes[this.temporaryIds.nodes[1]],o=this.body.edges[this.edgeBeingEditedId];this.selectedControlNode=void 0;var r=n.isOverlappingWith(i),A=g.isOverlappingWith(i);!0===r?(this.selectedControlNode=n,o.edgeType.from=n):!0===A&&(this.selectedControlNode=g,o.edgeType.to=g),void 0!==this.selectedControlNode&&this.selectionHandler.selectObject(this.selectedControlNode),this.body.emitter.emit("_redraw")}},{key:"_controlNodeDrag",value:function(t){this.body.emitter.emit("disablePhysics");var e=this.body.functions.getPointer(t.center),i=this.canvas.DOMtoCanvas(e);void 0!==this.selectedControlNode?(this.selectedControlNode.x=i.x,this.selectedControlNode.y=i.y):this.interactionHandler.onDrag(t),this.body.emitter.emit("_redraw")}},{key:"_controlNodeDragEnd",value:function(t){var e=this.body.functions.getPointer(t.center),i=this.selectionHandler._pointerToPositionObject(e),n=this.body.edges[this.edgeBeingEditedId];if(void 0!==this.selectedControlNode){this.selectionHandler.unselectAll();for(var g=this.selectionHandler._getAllNodesOverlappingWith(i),o=void 0,r=g.length-1;r>=0;r--)if(g[r]!==this.selectedControlNode.id){o=this.body.nodes[g[r]];break}if(void 0!==o&&void 0!==this.selectedControlNode)if(!0===o.isCluster)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{var A=this.body.nodes[this.temporaryIds.nodes[0]];this.selectedControlNode.id===A.id?this._performEditEdge(o.id,n.to.id):this._performEditEdge(n.from.id,o.id)}else n.updateEdgeType(),this.body.emitter.emit("restorePhysics");this.body.emitter.emit("_redraw")}}},{key:"_handleConnect",value:function(t){if((new Date).valueOf()-this.touchTime>100){this.lastTouch=this.body.functions.getPointer(t.center),this.lastTouch.translation=So({},this.body.view.translation);var e=this.lastTouch,i=this.selectionHandler.getNodeAt(e);if(void 0!==i)if(!0===i.isCluster)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{var n=this._getNewTargetNode(i.x,i.y);this.body.nodes[n.id]=n,this.body.nodeIndices.push(n.id);var g=this.body.functions.createEdge({id:"connectionEdge"+LI(),from:i.id,to:n.id,physics:!1,smooth:{enabled:!0,type:"continuous",roundness:.5}});this.body.edges[g.id]=g,this.body.edgeIndices.push(g.id),this.temporaryIds.nodes.push(n.id),this.temporaryIds.edges.push(g.id)}this.touchTime=(new Date).valueOf()}}},{key:"_dragControlNode",value:function(t){var e=this.body.functions.getPointer(t.center),i=this.selectionHandler._pointerToPositionObject(e),n=void 0;void 0!==this.temporaryIds.edges[0]&&(n=this.body.edges[this.temporaryIds.edges[0]].fromId);for(var g=this.selectionHandler._getAllNodesOverlappingWith(i),o=void 0,r=g.length-1;r>=0;r--){var A;if(-1===go(A=this.temporaryIds.nodes).call(A,g[r])){o=this.body.nodes[g[r]];break}}if(t.controlEdge={from:n,to:o?o.id:void 0},this.selectionHandler._generateClickEvent("controlNodeDragging",t,e),void 0!==this.temporaryIds.nodes[0]){var s=this.body.nodes[this.temporaryIds.nodes[0]];s.x=this.canvas._XconvertDOMtoCanvas(e.x),s.y=this.canvas._YconvertDOMtoCanvas(e.y),this.body.emitter.emit("_redraw")}else this.interactionHandler.onDrag(t)}},{key:"_finishConnect",value:function(t){var e=this.body.functions.getPointer(t.center),i=this.selectionHandler._pointerToPositionObject(e),n=void 0;void 0!==this.temporaryIds.edges[0]&&(n=this.body.edges[this.temporaryIds.edges[0]].fromId);for(var g=this.selectionHandler._getAllNodesOverlappingWith(i),o=void 0,r=g.length-1;r>=0;r--){var A;if(-1===go(A=this.temporaryIds.nodes).call(A,g[r])){o=this.body.nodes[g[r]];break}}this._cleanupTemporaryNodesAndEdges(),void 0!==o&&(!0===o.isCluster?alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError):void 0!==this.body.nodes[n]&&void 0!==this.body.nodes[o.id]&&this._performAddEdge(n,o.id)),t.controlEdge={from:n,to:o?o.id:void 0},this.selectionHandler._generateClickEvent("controlNodeDragEnd",t,e),this.body.emitter.emit("_redraw")}},{key:"_dragStartEdge",value:function(t){var e=this.lastTouch;this.selectionHandler._generateClickEvent("dragStart",t,e,void 0,!0)}},{key:"_performAddNode",value:function(t){var e=this,i={id:LI(),x:t.pointer.canvas.x,y:t.pointer.canvas.y,label:"new"};if("function"==typeof this.options.addNode){if(2!==this.options.addNode.length)throw this.showManipulatorToolbar(),new Error("The function for add does not support two arguments (data,callback)");this.options.addNode(i,(function(t){null!=t&&"addNode"===e.inMode&&e.body.data.nodes.getDataSet().add(t),e.showManipulatorToolbar()}))}else this.body.data.nodes.getDataSet().add(i),this.showManipulatorToolbar()}},{key:"_performAddEdge",value:function(t,e){var i=this,n={from:t,to:e};if("function"==typeof this.options.addEdge){if(2!==this.options.addEdge.length)throw new Error("The function for connect does not support two arguments (data,callback)");this.options.addEdge(n,(function(t){null!=t&&"addEdge"===i.inMode&&(i.body.data.edges.getDataSet().add(t),i.selectionHandler.unselectAll(),i.showManipulatorToolbar())}))}else this.body.data.edges.getDataSet().add(n),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}},{key:"_performEditEdge",value:function(t,e){var i=this,n={id:this.edgeBeingEditedId,from:t,to:e,label:this.body.data.edges.get(this.edgeBeingEditedId).label},g=this.options.editEdge;if("object"===lo(g)&&(g=g.editWithoutDrag),"function"==typeof g){if(2!==g.length)throw new Error("The function for edit does not support two arguments (data, callback)");g(n,(function(t){null==t||"editEdge"!==i.inMode?(i.body.edges[n.id].updateEdgeType(),i.body.emitter.emit("_redraw"),i.showManipulatorToolbar()):(i.body.data.edges.getDataSet().update(t),i.selectionHandler.unselectAll(),i.showManipulatorToolbar())}))}else this.body.data.edges.getDataSet().update(n),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}}]),t}();hA("div.vis-configuration {\n    position:relative;\n    display:block;\n    float:left;\n    font-size:12px;\n}\n\ndiv.vis-configuration-wrapper {\n    display:block;\n    width:700px;\n}\n\ndiv.vis-configuration-wrapper::after {\n  clear: both;\n  content: \"\";\n  display: block;\n}\n\ndiv.vis-configuration.vis-config-option-container{\n    display:block;\n    width:495px;\n    background-color: #ffffff;\n    border:2px solid #f7f8fa;\n    border-radius:4px;\n    margin-top:20px;\n    left:10px;\n    padding-left:5px;\n}\n\ndiv.vis-configuration.vis-config-button{\n    display:block;\n    width:495px;\n    height:25px;\n    vertical-align: middle;\n    line-height:25px;\n    background-color: #f7f8fa;\n    border:2px solid #ceced0;\n    border-radius:4px;\n    margin-top:20px;\n    left:10px;\n    padding-left:5px;\n    cursor: pointer;\n    margin-bottom:30px;\n}\n\ndiv.vis-configuration.vis-config-button.hover{\n    background-color: #4588e6;\n    border:2px solid #214373;\n    color:#ffffff;\n}\n\ndiv.vis-configuration.vis-config-item{\n    display:block;\n    float:left;\n    width:495px;\n    height:25px;\n    vertical-align: middle;\n    line-height:25px;\n}\n\n\ndiv.vis-configuration.vis-config-item.vis-config-s2{\n    left:10px;\n    background-color: #f7f8fa;\n    padding-left:5px;\n    border-radius:3px;\n}\ndiv.vis-configuration.vis-config-item.vis-config-s3{\n    left:20px;\n    background-color: #e4e9f0;\n    padding-left:5px;\n    border-radius:3px;\n}\ndiv.vis-configuration.vis-config-item.vis-config-s4{\n    left:30px;\n    background-color: #cfd8e6;\n    padding-left:5px;\n    border-radius:3px;\n}\n\ndiv.vis-configuration.vis-config-header{\n    font-size:18px;\n    font-weight: bold;\n}\n\ndiv.vis-configuration.vis-config-label{\n    width:120px;\n    height:25px;\n    line-height: 25px;\n}\n\ndiv.vis-configuration.vis-config-label.vis-config-s3{\n    width:110px;\n}\ndiv.vis-configuration.vis-config-label.vis-config-s4{\n    width:100px;\n}\n\ndiv.vis-configuration.vis-config-colorBlock{\n    top:1px;\n    width:30px;\n    height:19px;\n    border:1px solid #444444;\n    border-radius:2px;\n    padding:0px;\n    margin:0px;\n    cursor:pointer;\n}\n\ninput.vis-configuration.vis-config-checkbox {\n    left:-5px;\n}\n\n\ninput.vis-configuration.vis-config-rangeinput{\n    position:relative;\n    top:-5px;\n    width:60px;\n    /*height:13px;*/\n    padding:1px;\n    margin:0;\n    pointer-events:none;\n}\n\ninput.vis-configuration.vis-config-range{\n    /*removes default webkit styles*/\n    -webkit-appearance: none;\n\n    /*fix for FF unable to apply focus style bug */\n    border: 0px solid white;\n    background-color:rgba(0,0,0,0);\n\n    /*required for proper track sizing in FF*/\n    width: 300px;\n    height:20px;\n}\ninput.vis-configuration.vis-config-range::-webkit-slider-runnable-track {\n    width: 300px;\n    height: 5px;\n    background: #dedede; /* Old browsers */\n    background: -moz-linear-gradient(top,  #dedede 0%, #c8c8c8 99%); /* FF3.6+ */\n    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#dedede), color-stop(99%,#c8c8c8)); /* Chrome,Safari4+ */\n    background: -webkit-linear-gradient(top,  #dedede 0%,#c8c8c8 99%); /* Chrome10+,Safari5.1+ */\n    background: -o-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* Opera 11.10+ */\n    background: -ms-linear-gradient(top,  #dedede 0%,#c8c8c8 99%); /* IE10+ */\n    background: linear-gradient(to bottom,  #dedede 0%,#c8c8c8 99%); /* W3C */\n    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#dedede', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */\n\n    border: 1px solid #999999;\n    box-shadow: #aaaaaa 0px 0px 3px 0px;\n    border-radius: 3px;\n}\ninput.vis-configuration.vis-config-range::-webkit-slider-thumb {\n    -webkit-appearance: none;\n    border: 1px solid #14334b;\n    height: 17px;\n    width: 17px;\n    border-radius: 50%;\n    background: #3876c2; /* Old browsers */\n    background: -moz-linear-gradient(top,  #3876c2 0%, #385380 100%); /* FF3.6+ */\n    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#3876c2), color-stop(100%,#385380)); /* Chrome,Safari4+ */\n    background: -webkit-linear-gradient(top,  #3876c2 0%,#385380 100%); /* Chrome10+,Safari5.1+ */\n    background: -o-linear-gradient(top,  #3876c2 0%,#385380 100%); /* Opera 11.10+ */\n    background: -ms-linear-gradient(top,  #3876c2 0%,#385380 100%); /* IE10+ */\n    background: linear-gradient(to bottom,  #3876c2 0%,#385380 100%); /* W3C */\n    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3876c2', endColorstr='#385380',GradientType=0 ); /* IE6-9 */\n    box-shadow: #111927 0px 0px 1px 0px;\n    margin-top: -7px;\n}\ninput.vis-configuration.vis-config-range:focus {\n    outline: none;\n}\ninput.vis-configuration.vis-config-range:focus::-webkit-slider-runnable-track {\n    background: #9d9d9d; /* Old browsers */\n    background: -moz-linear-gradient(top, #9d9d9d 0%, #c8c8c8 99%); /* FF3.6+ */\n    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#9d9d9d), color-stop(99%,#c8c8c8)); /* Chrome,Safari4+ */\n    background: -webkit-linear-gradient(top,  #9d9d9d 0%,#c8c8c8 99%); /* Chrome10+,Safari5.1+ */\n    background: -o-linear-gradient(top,  #9d9d9d 0%,#c8c8c8 99%); /* Opera 11.10+ */\n    background: -ms-linear-gradient(top,  #9d9d9d 0%,#c8c8c8 99%); /* IE10+ */\n    background: linear-gradient(to bottom,  #9d9d9d 0%,#c8c8c8 99%); /* W3C */\n    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#9d9d9d', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */\n}\n\ninput.vis-configuration.vis-config-range::-moz-range-track {\n    width: 300px;\n    height: 10px;\n    background: #dedede; /* Old browsers */\n    background: -moz-linear-gradient(top,  #dedede 0%, #c8c8c8 99%); /* FF3.6+ */\n    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#dedede), color-stop(99%,#c8c8c8)); /* Chrome,Safari4+ */\n    background: -webkit-linear-gradient(top,  #dedede 0%,#c8c8c8 99%); /* Chrome10+,Safari5.1+ */\n    background: -o-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* Opera 11.10+ */\n    background: -ms-linear-gradient(top,  #dedede 0%,#c8c8c8 99%); /* IE10+ */\n    background: linear-gradient(to bottom,  #dedede 0%,#c8c8c8 99%); /* W3C */\n    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#dedede', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */\n\n    border: 1px solid #999999;\n    box-shadow: #aaaaaa 0px 0px 3px 0px;\n    border-radius: 3px;\n}\ninput.vis-configuration.vis-config-range::-moz-range-thumb {\n    border: none;\n    height: 16px;\n    width: 16px;\n\n    border-radius: 50%;\n    background:  #385380;\n}\n\n/*hide the outline behind the border*/\ninput.vis-configuration.vis-config-range:-moz-focusring{\n    outline: 1px solid white;\n    outline-offset: -1px;\n}\n\ninput.vis-configuration.vis-config-range::-ms-track {\n    width: 300px;\n    height: 5px;\n\n    /*remove bg colour from the track, we'll use ms-fill-lower and ms-fill-upper instead */\n    background: transparent;\n\n    /*leave room for the larger thumb to overflow with a transparent border */\n    border-color: transparent;\n    border-width: 6px 0;\n\n    /*remove default tick marks*/\n    color: transparent;\n}\ninput.vis-configuration.vis-config-range::-ms-fill-lower {\n    background: #777;\n    border-radius: 10px;\n}\ninput.vis-configuration.vis-config-range::-ms-fill-upper {\n    background: #ddd;\n    border-radius: 10px;\n}\ninput.vis-configuration.vis-config-range::-ms-thumb {\n    border: none;\n    height: 16px;\n    width: 16px;\n    border-radius: 50%;\n    background:  #385380;\n}\ninput.vis-configuration.vis-config-range:focus::-ms-fill-lower {\n    background: #888;\n}\ninput.vis-configuration.vis-config-range:focus::-ms-fill-upper {\n    background: #ccc;\n}\n\n.vis-configuration-popup {\n    position: absolute;\n    background: rgba(57, 76, 89, 0.85);\n    border: 2px solid #f2faff;\n    line-height:30px;\n    height:30px;\n    width:150px;\n    text-align:center;\n    color: #ffffff;\n    font-size:14px;\n    border-radius:4px;\n    -webkit-transition: opacity 0.3s ease-in-out;\n    -moz-transition: opacity 0.3s ease-in-out;\n    transition: opacity 0.3s ease-in-out;\n}\n.vis-configuration-popup:after, .vis-configuration-popup:before {\n    left: 100%;\n    top: 50%;\n    border: solid transparent;\n    content: \" \";\n    height: 0;\n    width: 0;\n    position: absolute;\n    pointer-events: none;\n}\n\n.vis-configuration-popup:after {\n    border-color: rgba(136, 183, 213, 0);\n    border-left-color: rgba(57, 76, 89, 0.85);\n    border-width: 8px;\n    margin-top: -8px;\n}\n.vis-configuration-popup:before {\n    border-color: rgba(194, 225, 245, 0);\n    border-left-color: #f2faff;\n    border-width: 12px;\n    margin-top: -12px;\n}\n/*# sourceMappingURL=data:application/json;base64,  */");hA("\ndiv.vis-color-picker {\n  position:absolute;\n  top: 0px;\n  left: 30px;\n  margin-top:-140px;\n  margin-left:30px;\n  width:310px;\n  height:444px;\n  z-index: 1;\n  padding: 10px;\n  border-radius:15px;\n  background-color:#ffffff;\n  display: none;\n  box-shadow: rgba(0,0,0,0.5) 0px 0px 10px 0px;\n}\n\ndiv.vis-color-picker div.vis-arrow {\n  position: absolute;\n  top:147px;\n  left:5px;\n}\n\ndiv.vis-color-picker div.vis-arrow::after,\ndiv.vis-color-picker div.vis-arrow::before {\n  right: 100%;\n  top: 50%;\n  border: solid transparent;\n  content: \" \";\n  height: 0;\n  width: 0;\n  position: absolute;\n  pointer-events: none;\n}\n\ndiv.vis-color-picker div.vis-arrow:after {\n  border-color: rgba(255, 255, 255, 0);\n  border-right-color: #ffffff;\n  border-width: 30px;\n  margin-top: -30px;\n}\n\ndiv.vis-color-picker div.vis-color {\n  position:absolute;\n  width: 289px;\n  height: 289px;\n  cursor: pointer;\n}\n\n\n\ndiv.vis-color-picker div.vis-brightness {\n  position: absolute;\n  top:313px;\n}\n\ndiv.vis-color-picker div.vis-opacity {\n  position:absolute;\n  top:350px;\n}\n\ndiv.vis-color-picker div.vis-selector {\n  position:absolute;\n  top:137px;\n  left:137px;\n  width:15px;\n  height:15px;\n  border-radius:15px;\n  border:1px solid #ffffff;\n  background: #4c4c4c; /* Old browsers */\n  background: -moz-linear-gradient(top,  #4c4c4c 0%, #595959 12%, #666666 25%, #474747 39%, #2c2c2c 50%, #000000 51%, #111111 60%, #2b2b2b 76%, #1c1c1c 91%, #131313 100%); /* FF3.6+ */\n  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#4c4c4c), color-stop(12%,#595959), color-stop(25%,#666666), color-stop(39%,#474747), color-stop(50%,#2c2c2c), color-stop(51%,#000000), color-stop(60%,#111111), color-stop(76%,#2b2b2b), color-stop(91%,#1c1c1c), color-stop(100%,#131313)); /* Chrome,Safari4+ */\n  background: -webkit-linear-gradient(top,  #4c4c4c 0%,#595959 12%,#666666 25%,#474747 39%,#2c2c2c 50%,#000000 51%,#111111 60%,#2b2b2b 76%,#1c1c1c 91%,#131313 100%); /* Chrome10+,Safari5.1+ */\n  background: -o-linear-gradient(top,  #4c4c4c 0%,#595959 12%,#666666 25%,#474747 39%,#2c2c2c 50%,#000000 51%,#111111 60%,#2b2b2b 76%,#1c1c1c 91%,#131313 100%); /* Opera 11.10+ */\n  background: -ms-linear-gradient(top,  #4c4c4c 0%,#595959 12%,#666666 25%,#474747 39%,#2c2c2c 50%,#000000 51%,#111111 60%,#2b2b2b 76%,#1c1c1c 91%,#131313 100%); /* IE10+ */\n  background: linear-gradient(to bottom,  #4c4c4c 0%,#595959 12%,#666666 25%,#474747 39%,#2c2c2c 50%,#000000 51%,#111111 60%,#2b2b2b 76%,#1c1c1c 91%,#131313 100%); /* W3C */\n  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4c4c4c', endColorstr='#131313',GradientType=0 ); /* IE6-9 */\n}\n\n\n\ndiv.vis-color-picker div.vis-new-color {\n  position:absolute;\n  width:140px;\n  height:20px;\n  border:1px solid rgba(0,0,0,0.1);\n  border-radius:5px;\n  top:380px;\n  left:159px;\n  text-align:right;\n  padding-right:2px;\n  font-size:10px;\n  color:rgba(0,0,0,0.4);\n  vertical-align:middle;\n  line-height:20px;\n\n}\n\ndiv.vis-color-picker div.vis-initial-color {\n  position:absolute;\n  width:140px;\n  height:20px;\n  border:1px solid rgba(0,0,0,0.1);\n  border-radius:5px;\n  top:380px;\n  left:10px;\n  text-align:left;\n  padding-left:2px;\n  font-size:10px;\n  color:rgba(0,0,0,0.4);\n  vertical-align:middle;\n  line-height:20px;\n}\n\ndiv.vis-color-picker div.vis-label {\n  position:absolute;\n  width:300px;\n  left:10px;\n}\n\ndiv.vis-color-picker div.vis-label.vis-brightness {\n  top:300px;\n}\n\ndiv.vis-color-picker div.vis-label.vis-opacity {\n  top:338px;\n}\n\ndiv.vis-color-picker div.vis-button {\n  position:absolute;\n  width:68px;\n  height:25px;\n  border-radius:10px;\n  vertical-align: middle;\n  text-align:center;\n  line-height: 25px;\n  top:410px;\n  border:2px solid #d9d9d9;\n  background-color: #f7f7f7;\n  cursor:pointer;\n}\n\ndiv.vis-color-picker div.vis-button.vis-cancel {\n  /*border:2px solid #ff4e33;*/\n  /*background-color: #ff7761;*/\n  left:5px;\n}\ndiv.vis-color-picker div.vis-button.vis-load {\n  /*border:2px solid #a153e6;*/\n  /*background-color: #cb8dff;*/\n  left:82px;\n}\ndiv.vis-color-picker div.vis-button.vis-apply {\n  /*border:2px solid #4588e6;*/\n  /*background-color: #82b6ff;*/\n  left:159px;\n}\ndiv.vis-color-picker div.vis-button.vis-save {\n  /*border:2px solid #45e655;*/\n  /*background-color: #6dff7c;*/\n  left:236px;\n}\n\n\ndiv.vis-color-picker input.vis-range {\n  width: 290px;\n  height:20px;\n}\n\n/* TODO: is this redundant?\ndiv.vis-color-picker input.vis-range-brightness {\n  width: 289px !important;\n}\n\n\ndiv.vis-color-picker input.vis-saturation-range {\n  width: 289px !important;\n}*/\n/*# sourceMappingURL=data:application/json;base64,  */");var qc={black:"#000000",navy:"#000080",darkblue:"#00008B",mediumblue:"#0000CD",blue:"#0000FF",darkgreen:"#006400",green:"#008000",teal:"#008080",darkcyan:"#008B8B",deepskyblue:"#00BFFF",darkturquoise:"#00CED1",mediumspringgreen:"#00FA9A",lime:"#00FF00",springgreen:"#00FF7F",aqua:"#00FFFF",cyan:"#00FFFF",midnightblue:"#191970",dodgerblue:"#1E90FF",lightseagreen:"#20B2AA",forestgreen:"#228B22",seagreen:"#2E8B57",darkslategray:"#2F4F4F",limegreen:"#32CD32",mediumseagreen:"#3CB371",turquoise:"#40E0D0",royalblue:"#4169E1",steelblue:"#4682B4",darkslateblue:"#483D8B",mediumturquoise:"#48D1CC",indigo:"#4B0082",darkolivegreen:"#556B2F",cadetblue:"#5F9EA0",cornflowerblue:"#6495ED",mediumaquamarine:"#66CDAA",dimgray:"#696969",slateblue:"#6A5ACD",olivedrab:"#6B8E23",slategray:"#708090",lightslategray:"#778899",mediumslateblue:"#7B68EE",lawngreen:"#7CFC00",chartreuse:"#7FFF00",aquamarine:"#7FFFD4",maroon:"#800000",purple:"#800080",olive:"#808000",gray:"#808080",skyblue:"#87CEEB",lightskyblue:"#87CEFA",blueviolet:"#8A2BE2",darkred:"#8B0000",darkmagenta:"#8B008B",saddlebrown:"#8B4513",darkseagreen:"#8FBC8F",lightgreen:"#90EE90",mediumpurple:"#9370D8",darkviolet:"#9400D3",palegreen:"#98FB98",darkorchid:"#9932CC",yellowgreen:"#9ACD32",sienna:"#A0522D",brown:"#A52A2A",darkgray:"#A9A9A9",lightblue:"#ADD8E6",greenyellow:"#ADFF2F",paleturquoise:"#AFEEEE",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",firebrick:"#B22222",darkgoldenrod:"#B8860B",mediumorchid:"#BA55D3",rosybrown:"#BC8F8F",darkkhaki:"#BDB76B",silver:"#C0C0C0",mediumvioletred:"#C71585",indianred:"#CD5C5C",peru:"#CD853F",chocolate:"#D2691E",tan:"#D2B48C",lightgrey:"#D3D3D3",palevioletred:"#D87093",thistle:"#D8BFD8",orchid:"#DA70D6",goldenrod:"#DAA520",crimson:"#DC143C",gainsboro:"#DCDCDC",plum:"#DDA0DD",burlywood:"#DEB887",lightcyan:"#E0FFFF",lavender:"#E6E6FA",darksalmon:"#E9967A",violet:"#EE82EE",palegoldenrod:"#EEE8AA",lightcoral:"#F08080",khaki:"#F0E68C",aliceblue:"#F0F8FF",honeydew:"#F0FFF0",azure:"#F0FFFF",sandybrown:"#F4A460",wheat:"#F5DEB3",beige:"#F5F5DC",whitesmoke:"#F5F5F5",mintcream:"#F5FFFA",ghostwhite:"#F8F8FF",salmon:"#FA8072",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lightgoldenrodyellow:"#FAFAD2",oldlace:"#FDF5E6",red:"#FF0000",fuchsia:"#FF00FF",magenta:"#FF00FF",deeppink:"#FF1493",orangered:"#FF4500",tomato:"#FF6347",hotpink:"#FF69B4",coral:"#FF7F50",darkorange:"#FF8C00",lightsalmon:"#FFA07A",orange:"#FFA500",lightpink:"#FFB6C1",pink:"#FFC0CB",gold:"#FFD700",peachpuff:"#FFDAB9",navajowhite:"#FFDEAD",moccasin:"#FFE4B5",bisque:"#FFE4C4",mistyrose:"#FFE4E1",blanchedalmond:"#FFEBCD",papayawhip:"#FFEFD5",lavenderblush:"#FFF0F5",seashell:"#FFF5EE",cornsilk:"#FFF8DC",lemonchiffon:"#FFFACD",floralwhite:"#FFFAF0",snow:"#FFFAFA",yellow:"#FFFF00",lightyellow:"#FFFFE0",ivory:"#FFFFF0",white:"#FFFFFF"},$c=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;qs(this,t),this.pixelRatio=e,this.generated=!1,this.centerCoordinates={x:144.5,y:144.5},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return tC(t,[{key:"insertTo",value:function(t){void 0!==this.hammer&&(this.hammer.destroy(),this.hammer=void 0),this.container=t,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker update callback is not a function.");this.updateCallback=t}},{key:"setCloseCallback",value:function(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker closing callback is not a function.");this.closeCallback=t}},{key:"_isColorString",value:function(t){if("string"==typeof t)return qc[t]}},{key:"setColor",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("none"!==t){var i,n=this._isColorString(t);if(void 0!==n&&(t=n),!0===Eo(t)){if(!0===sr(t)){var g=t.substr(4).substr(0,t.length-5).split(",");i={r:g[0],g:g[1],b:g[2],a:1}}else if(!0===Cr(t)){var o=t.substr(5).substr(0,t.length-6).split(",");i={r:o[0],g:o[1],b:o[2],a:o[3]}}else if(!0===Ar(t)){var r=Ko(t);i={r:r.r,g:r.g,b:r.b,a:1}}}else if(t instanceof Object&&void 0!==t.r&&void 0!==t.g&&void 0!==t.b){var A=void 0!==t.a?t.a:"1.0";i={r:t.r,g:t.g,b:t.b,a:A}}if(void 0===i)throw new Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+BC(t));this._setColor(i,e)}}},{key:"show",value:function(){void 0!==this.closeCallback&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];!0===e&&(this.previousColor=So({},this.color)),!0===this.applied&&this.updateCallback(this.initialColor),this.frame.style.display="none",AC((function(){void 0!==t.closeCallback&&(t.closeCallback(),t.closeCallback=void 0)}),0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){void 0!==this.previousColor?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];!0===e&&(this.initialColor=So({},t)),this.color=t;var i=er(t.r,t.g,t.b),n=2*Math.PI,g=this.r*i.s,o=this.centerCoordinates.x+g*Math.sin(n*i.h),r=this.centerCoordinates.y+g*Math.cos(n*i.h);this.colorPickerSelector.style.left=o-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=r-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(t)}},{key:"_setOpacity",value:function(t){this.color.a=t/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(t){var e=er(this.color.r,this.color.g,this.color.b);e.v=t/100;var i=gr(e.h,e.s,e.v);i.a=this.color.a,this.color=i,this._updatePicker()}},{key:"_updatePicker",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.color,e=er(t.r,t.g,t.b),i=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(i.webkitBackingStorePixelRatio||i.mozBackingStorePixelRatio||i.msBackingStorePixelRatio||i.oBackingStorePixelRatio||i.backingStorePixelRatio||1)),i.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var n=this.colorPickerCanvas.clientWidth,g=this.colorPickerCanvas.clientHeight;i.clearRect(0,0,n,g),i.putImageData(this.hueCircle,0,0),i.fillStyle="rgba(0,0,0,"+(1-e.v)+")",i.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),xa(i).call(i),this.brightnessRange.value=100*e.v,this.opacityRange.value=100*t.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){var t,e,i,n;if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){var g=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(g.webkitBackingStorePixelRatio||g.mozBackingStorePixelRatio||g.msBackingStorePixelRatio||g.oBackingStorePixelRatio||g.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var o=document.createElement("DIV");o.style.color="red",o.style.fontWeight="bold",o.style.padding="10px",o.innerHTML="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(o)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch(t){}this.opacityRange.value="100",this.opacityRange.className="vis-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch(t){}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var r=this;this.opacityRange.onchange=function(){r._setOpacity(this.value)},this.opacityRange.oninput=function(){r._setOpacity(this.value)},this.brightnessRange.onchange=function(){r._setBrightness(this.value)},this.brightnessRange.oninput=function(){r._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.innerHTML="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerHTML="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerHTML="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerHTML="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerHTML="cancel",this.cancelButton.onclick=et(t=this._hide).call(t,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerHTML="apply",this.applyButton.onclick=et(e=this._apply).call(e,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerHTML="save",this.saveButton.onclick=et(i=this._save).call(i,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerHTML="load last",this.loadButton.onclick=et(n=this._loadLast).call(n,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:"_bindHammer",value:function(){var t=this;this.drag={},this.pinch={},this.hammer=new Vs(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),kc.onTouch(this.hammer,(function(e){t._moveSelector(e)})),this.hammer.on("tap",(function(e){t._moveSelector(e)})),this.hammer.on("panstart",(function(e){t._moveSelector(e)})),this.hammer.on("panmove",(function(e){t._moveSelector(e)})),this.hammer.on("panend",(function(e){t._moveSelector(e)}))}},{key:"_generateHueCircle",value:function(){if(!1===this.generated){var t=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)),t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var e,i,n,g,o=this.colorPickerCanvas.clientWidth,r=this.colorPickerCanvas.clientHeight;t.clearRect(0,0,o,r),this.centerCoordinates={x:.5*o,y:.5*r},this.r=.49*o;var A,s=2*Math.PI/360,C=1/this.r;for(n=0;n<360;n++)for(g=0;g<this.r;g++)e=this.centerCoordinates.x+g*Math.sin(s*n),i=this.centerCoordinates.y+g*Math.cos(s*n),A=gr(n*(1/360),g*C,1),t.fillStyle="rgb("+A.r+","+A.g+","+A.b+")",t.fillRect(e-.5,i-.5,2,2);t.strokeStyle="rgba(0,0,0,1)",t.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),t.stroke(),this.hueCircle=t.getImageData(0,0,o,r)}this.generated=!0}},{key:"_moveSelector",value:function(t){var e=this.colorPickerDiv.getBoundingClientRect(),i=t.center.x-e.left,n=t.center.y-e.top,g=.5*this.colorPickerDiv.clientHeight,o=.5*this.colorPickerDiv.clientWidth,r=i-o,A=n-g,s=Math.atan2(r,A),C=.98*Math.min(Math.sqrt(r*r+A*A),o),I=Math.cos(s)*C+g,a=Math.sin(s)*C+o;this.colorPickerSelector.style.top=I-.5*this.colorPickerSelector.clientHeight+"px",this.colorPickerSelector.style.left=a-.5*this.colorPickerSelector.clientWidth+"px";var l=s/(2*Math.PI);l=l<0?l+1:l;var c=C/this.r,u=er(this.color.r,this.color.g,this.color.b);u.h=l,u.s=c;var d=gr(u.h,u.s,u.v);d.a=this.color.a,this.color=d,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}}]),t}(),tu=function(){function t(e,i,n){var g=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;qs(this,t),this.parent=e,this.changedOptions=[],this.container=i,this.allowCreation=!1,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},So(this.options,this.defaultOptions),this.configureOptions=n,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new $c(g),this.wrapper=void 0}return tC(t,[{key:"setOptions",value:function(t){if(void 0!==t){this.popupHistory={},this._removePopup();var e=!0;if("string"==typeof t)this.options.filter=t;else if(t instanceof Array)this.options.filter=t.join();else if("object"===lo(t)){if(null==t)throw new TypeError("options cannot be null");void 0!==t.container&&(this.options.container=t.container),void 0!==bg(t)&&(this.options.filter=bg(t)),void 0!==t.showButton&&(this.options.showButton=t.showButton),void 0!==t.enabled&&(e=t.enabled)}else"boolean"==typeof t?(this.options.filter=!0,e=t):"function"==typeof t&&(this.options.filter=t,e=!0);!1===bg(this.options)&&(e=!1),this.options.enabled=e}this._clean()}},{key:"setModuleOptions",value:function(t){this.moduleOptions=t,!0===this.options.enabled&&(this._clean(),void 0!==this.options.container&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var t=bg(this.options),e=0,i=!1;for(var n in this.configureOptions)this.configureOptions.hasOwnProperty(n)&&(this.allowCreation=!1,i=!1,"function"==typeof t?i=(i=t(n,[]))||this._handleObject(this.configureOptions[n],[n],!0):!0!==t&&-1===go(t).call(t,n)||(i=!0),!1!==i&&(this.allowCreation=!0,e>0&&this._makeItem([]),this._makeHeader(n),this._handleObject(this.configureOptions[n],[n])),e++);this._makeButton(),this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var t=0;t<this.domElements.length;t++)this.wrapper.appendChild(this.domElements[t]);this._showPopupIfNeeded()}},{key:"_clean",value:function(){for(var t=0;t<this.domElements.length;t++)this.wrapper.removeChild(this.domElements[t]);void 0!==this.wrapper&&(this.container.removeChild(this.wrapper),this.wrapper=void 0),this.domElements=[],this._removePopup()}},{key:"_getValue",value:function(t){for(var e=this.moduleOptions,i=0;i<t.length;i++){if(void 0===e[t[i]]){e=void 0;break}e=e[t[i]]}return e}},{key:"_makeItem",value:function(t){if(!0===this.allowCreation){var e=document.createElement("div");e.className="vis-configuration vis-config-item vis-config-s"+t.length;for(var i=arguments.length,n=new Array(i>1?i-1:0),g=1;g<i;g++)n[g-1]=arguments[g];return eg(n).call(n,(function(t){e.appendChild(t)})),this.domElements.push(e),this.domElements.length}return 0}},{key:"_makeHeader",value:function(t){var e=document.createElement("div");e.className="vis-configuration vis-config-header",e.innerHTML=t,this._makeItem([],e)}},{key:"_makeLabel",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=document.createElement("div");return n.className="vis-configuration vis-config-label vis-config-s"+e.length,n.innerHTML=!0===i?"<i><b>"+t+":</b></i>":t+":",n}},{key:"_makeDropdown",value:function(t,e,i){var n=document.createElement("select");n.className="vis-configuration vis-config-select";var g=0;void 0!==e&&-1!==go(t).call(t,e)&&(g=go(t).call(t,e));for(var o=0;o<t.length;o++){var r=document.createElement("option");r.value=t[o],o===g&&(r.selected="selected"),r.innerHTML=t[o],n.appendChild(r)}var A=this;n.onchange=function(){A._update(this.value,i)};var s=this._makeLabel(i[i.length-1],i);this._makeItem(i,s,n)}},{key:"_makeRange",value:function(t,e,i){var n=t[0],g=t[1],o=t[2],r=t[3],A=document.createElement("input");A.className="vis-configuration vis-config-range";try{A.type="range",A.min=g,A.max=o}catch(t){}A.step=r;var s="",C=0;if(void 0!==e){e<0&&1.2*e<g?(A.min=Math.ceil(1.2*e),C=A.min,s="range increased"):e/1.2<g&&(A.min=Math.ceil(e/1.2),C=A.min,s="range increased"),1.2*e>o&&1!==o&&(A.max=Math.ceil(1.2*e),C=A.max,s="range increased"),A.value=e}else A.value=n;var I=document.createElement("input");I.className="vis-configuration vis-config-rangeinput",I.value=A.value;var a=this;A.onchange=function(){I.value=this.value,a._update(Number(this.value),i)},A.oninput=function(){I.value=this.value};var l=this._makeLabel(i[i.length-1],i),c=this._makeItem(i,l,A,I);""!==s&&this.popupHistory[c]!==C&&(this.popupHistory[c]=C,this._setupPopup(s,c))}},{key:"_makeButton",value:function(){var t=this;if(!0===this.options.showButton){var e=document.createElement("div");e.className="vis-configuration vis-config-button",e.innerHTML="generate options",e.onclick=function(){t._printOptions()},e.onmouseover=function(){e.className="vis-configuration vis-config-button hover"},e.onmouseout=function(){e.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(e)}}},{key:"_setupPopup",value:function(t,e){var i=this;if(!0===this.initialized&&!0===this.allowCreation&&this.popupCounter<this.popupLimit){var n=document.createElement("div");n.id="vis-configuration-popup",n.className="vis-configuration-popup",n.innerHTML=t,n.onclick=function(){i._removePopup()},this.popupCounter+=1,this.popupDiv={html:n,index:e}}}},{key:"_removePopup",value:function(){void 0!==this.popupDiv.html&&(this.popupDiv.html.parentNode.removeChild(this.popupDiv.html),clearTimeout(this.popupDiv.hideTimeout),clearTimeout(this.popupDiv.deleteTimeout),this.popupDiv={})}},{key:"_showPopupIfNeeded",value:function(){var t=this;if(void 0!==this.popupDiv.html){var e=this.domElements[this.popupDiv.index].getBoundingClientRect();this.popupDiv.html.style.left=e.left+"px",this.popupDiv.html.style.top=e.top-30+"px",document.body.appendChild(this.popupDiv.html),this.popupDiv.hideTimeout=AC((function(){t.popupDiv.html.style.opacity=0}),1500),this.popupDiv.deleteTimeout=AC((function(){t._removePopup()}),1800)}}},{key:"_makeCheckbox",value:function(t,e,i){var n=document.createElement("input");n.type="checkbox",n.className="vis-configuration vis-config-checkbox",n.checked=t,void 0!==e&&(n.checked=e,e!==t&&("object"===lo(t)?e!==t.enabled&&this.changedOptions.push({path:i,value:e}):this.changedOptions.push({path:i,value:e})));var g=this;n.onchange=function(){g._update(this.checked,i)};var o=this._makeLabel(i[i.length-1],i);this._makeItem(i,o,n)}},{key:"_makeTextInput",value:function(t,e,i){var n=document.createElement("input");n.type="text",n.className="vis-configuration vis-config-text",n.value=e,e!==t&&this.changedOptions.push({path:i,value:e});var g=this;n.onchange=function(){g._update(this.value,i)};var o=this._makeLabel(i[i.length-1],i);this._makeItem(i,o,n)}},{key:"_makeColorField",value:function(t,e,i){var n=this,g=t[1],o=document.createElement("div");"none"!==(e=void 0===e?g:e)?(o.className="vis-configuration vis-config-colorBlock",o.style.backgroundColor=e):o.className="vis-configuration vis-config-colorBlock none",e=void 0===e?g:e,o.onclick=function(){n._showColorPicker(e,o,i)};var r=this._makeLabel(i[i.length-1],i);this._makeItem(i,r,o)}},{key:"_showColorPicker",value:function(t,e,i){var n=this;e.onclick=function(){},this.colorPicker.insertTo(e),this.colorPicker.show(),this.colorPicker.setColor(t),this.colorPicker.setUpdateCallback((function(t){var g="rgba("+t.r+","+t.g+","+t.b+","+t.a+")";e.style.backgroundColor=g,n._update(g,i)})),this.colorPicker.setCloseCallback((function(){e.onclick=function(){n._showColorPicker(t,e,i)}}))}},{key:"_handleObject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=!1,g=bg(this.options),o=!1;for(var r in t)if(t.hasOwnProperty(r)){n=!0;var A=t[r],s=Qo(e,r);if("function"==typeof g&&!1===(n=g(r,e))&&!(A instanceof Array)&&"string"!=typeof A&&"boolean"!=typeof A&&A instanceof Object&&(this.allowCreation=!1,n=this._handleObject(A,s,!0),this.allowCreation=!1===i),!1!==n){o=!0;var C=this._getValue(s);if(A instanceof Array)this._handleArray(A,C,s);else if("string"==typeof A)this._makeTextInput(A,C,s);else if("boolean"==typeof A)this._makeCheckbox(A,C,s);else if(A instanceof Object){var I=!0;if(-1!==go(e).call(e,"physics")&&this.moduleOptions.physics.solver!==r&&"wind"!==r&&(I=!1),!0===I)if(void 0!==A.enabled){var a=Qo(s,"enabled"),l=this._getValue(a);if(!0===l){var c=this._makeLabel(r,s,!0);this._makeItem(s,c),o=this._handleObject(A,s)||o}else this._makeCheckbox(A,l,s)}else{var u=this._makeLabel(r,s,!0);this._makeItem(s,u),o=this._handleObject(A,s)||o}}else console.error("dont know how to handle",A,r,s)}}return o}},{key:"_handleArray",value:function(t,e,i){"string"==typeof t[0]&&"color"===t[0]?(this._makeColorField(t,e,i),t[1]!==e&&this.changedOptions.push({path:i,value:e})):"string"==typeof t[0]?(this._makeDropdown(t,e,i),t[0]!==e&&this.changedOptions.push({path:i,value:e})):"number"==typeof t[0]&&(this._makeRange(t,e,i),t[0]!==e&&this.changedOptions.push({path:i,value:Number(e)}))}},{key:"_update",value:function(t,e){var i=this._constructOptions(t,e);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",i),this.initialized=!0,this.parent.setOptions(i)}},{key:"_constructOptions",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=i;t="false"!==(t="true"===t||t)&&t;for(var g=0;g<e.length;g++)"global"!==e[g]&&(void 0===n[e[g]]&&(n[e[g]]={}),g!==e.length-1?n=n[e[g]]:n[e[g]]=t);return i}},{key:"_printOptions",value:function(){var t=this.getOptions();this.optionsContainer.innerHTML="<pre>var options = "+BC(t,null,2)+"</pre>"}},{key:"getOptions",value:function(){for(var t={},e=0;e<this.changedOptions.length;e++)this._constructOptions(this.changedOptions[e].value,this.changedOptions[e].path,t);return t}}]),t}(),eu="string",iu="boolean",nu="number",gu="object",ou=["arrow","bar","box","circle","crow","curve","diamond","image","inv_curve","inv_triangle","triangle","vee"],ru={configure:{enabled:{boolean:iu},filter:{boolean:iu,string:eu,array:"array",function:"function"},container:{dom:"dom"},showButton:{boolean:iu},__type__:{object:gu,boolean:iu,string:eu,array:"array",function:"function"}},edges:{arrows:{to:{enabled:{boolean:iu},scaleFactor:{number:nu},type:{string:ou},imageHeight:{number:nu},imageWidth:{number:nu},src:{string:eu},__type__:{object:gu,boolean:iu}},middle:{enabled:{boolean:iu},scaleFactor:{number:nu},type:{string:ou},imageWidth:{number:nu},imageHeight:{number:nu},src:{string:eu},__type__:{object:gu,boolean:iu}},from:{enabled:{boolean:iu},scaleFactor:{number:nu},type:{string:ou},imageWidth:{number:nu},imageHeight:{number:nu},src:{string:eu},__type__:{object:gu,boolean:iu}},__type__:{string:["from","to","middle"],object:gu}},arrowStrikethrough:{boolean:iu},background:{enabled:{boolean:iu},color:{string:eu},size:{number:nu},dashes:{boolean:iu,array:"array"},__type__:{object:gu,boolean:iu}},chosen:{label:{boolean:iu,function:"function"},edge:{boolean:iu,function:"function"},__type__:{object:gu,boolean:iu}},color:{color:{string:eu},highlight:{string:eu},hover:{string:eu},inherit:{string:["from","to","both"],boolean:iu},opacity:{number:nu},__type__:{object:gu,string:eu}},dashes:{boolean:iu,array:"array"},font:{color:{string:eu},size:{number:nu},face:{string:eu},background:{string:eu},strokeWidth:{number:nu},strokeColor:{string:eu},align:{string:["horizontal","top","middle","bottom"]},vadjust:{number:nu},multi:{boolean:iu,string:eu},bold:{color:{string:eu},size:{number:nu},face:{string:eu},mod:{string:eu},vadjust:{number:nu},__type__:{object:gu,string:eu}},boldital:{color:{string:eu},size:{number:nu},face:{string:eu},mod:{string:eu},vadjust:{number:nu},__type__:{object:gu,string:eu}},ital:{color:{string:eu},size:{number:nu},face:{string:eu},mod:{string:eu},vadjust:{number:nu},__type__:{object:gu,string:eu}},mono:{color:{string:eu},size:{number:nu},face:{string:eu},mod:{string:eu},vadjust:{number:nu},__type__:{object:gu,string:eu}},__type__:{object:gu,string:eu}},hidden:{boolean:iu},hoverWidth:{function:"function",number:nu},label:{string:eu,undefined:"undefined"},labelHighlightBold:{boolean:iu},length:{number:nu,undefined:"undefined"},physics:{boolean:iu},scaling:{min:{number:nu},max:{number:nu},label:{enabled:{boolean:iu},min:{number:nu},max:{number:nu},maxVisible:{number:nu},drawThreshold:{number:nu},__type__:{object:gu,boolean:iu}},customScalingFunction:{function:"function"},__type__:{object:gu}},selectionWidth:{function:"function",number:nu},selfReferenceSize:{number:nu},selfReference:{size:{number:nu},angle:{number:nu},renderBehindTheNode:{boolean:iu},__type__:{object:gu}},shadow:{enabled:{boolean:iu},color:{string:eu},size:{number:nu},x:{number:nu},y:{number:nu},__type__:{object:gu,boolean:iu}},smooth:{enabled:{boolean:iu},type:{string:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"]},roundness:{number:nu},forceDirection:{string:["horizontal","vertical","none"],boolean:iu},__type__:{object:gu,boolean:iu}},title:{string:eu,undefined:"undefined"},width:{number:nu},widthConstraint:{maximum:{number:nu},__type__:{object:gu,boolean:iu,number:nu}},value:{number:nu,undefined:"undefined"},__type__:{object:gu}},groups:{useDefaultGroups:{boolean:iu},__any__:"get from nodes, will be overwritten below",__type__:{object:gu}},interaction:{dragNodes:{boolean:iu},dragView:{boolean:iu},hideEdgesOnDrag:{boolean:iu},hideEdgesOnZoom:{boolean:iu},hideNodesOnDrag:{boolean:iu},hover:{boolean:iu},keyboard:{enabled:{boolean:iu},speed:{x:{number:nu},y:{number:nu},zoom:{number:nu},__type__:{object:gu}},bindToWindow:{boolean:iu},__type__:{object:gu,boolean:iu}},multiselect:{boolean:iu},navigationButtons:{boolean:iu},selectable:{boolean:iu},selectConnectedEdges:{boolean:iu},hoverConnectedEdges:{boolean:iu},tooltipDelay:{number:nu},zoomView:{boolean:iu},zoomSpeed:{number:nu},__type__:{object:gu}},layout:{randomSeed:{undefined:"undefined",number:nu},improvedLayout:{boolean:iu},clusterThreshold:{number:nu},hierarchical:{enabled:{boolean:iu},levelSeparation:{number:nu},nodeSpacing:{number:nu},treeSpacing:{number:nu},blockShifting:{boolean:iu},edgeMinimization:{boolean:iu},parentCentralization:{boolean:iu},direction:{string:["UD","DU","LR","RL"]},sortMethod:{string:["hubsize","directed"]},shakeTowards:{string:["leaves","roots"]},__type__:{object:gu,boolean:iu}},__type__:{object:gu}},manipulation:{enabled:{boolean:iu},initiallyActive:{boolean:iu},addNode:{boolean:iu,function:"function"},addEdge:{boolean:iu,function:"function"},editNode:{function:"function"},editEdge:{editWithoutDrag:{function:"function"},__type__:{object:gu,boolean:iu,function:"function"}},deleteNode:{boolean:iu,function:"function"},deleteEdge:{boolean:iu,function:"function"},controlNodeStyle:"get from nodes, will be overwritten below",__type__:{object:gu,boolean:iu}},nodes:{borderWidth:{number:nu},borderWidthSelected:{number:nu,undefined:"undefined"},brokenImage:{string:eu,undefined:"undefined"},chosen:{label:{boolean:iu,function:"function"},node:{boolean:iu,function:"function"},__type__:{object:gu,boolean:iu}},color:{border:{string:eu},background:{string:eu},highlight:{border:{string:eu},background:{string:eu},__type__:{object:gu,string:eu}},hover:{border:{string:eu},background:{string:eu},__type__:{object:gu,string:eu}},__type__:{object:gu,string:eu}},opacity:{number:nu,undefined:"undefined"},fixed:{x:{boolean:iu},y:{boolean:iu},__type__:{object:gu,boolean:iu}},font:{align:{string:eu},color:{string:eu},size:{number:nu},face:{string:eu},background:{string:eu},strokeWidth:{number:nu},strokeColor:{string:eu},vadjust:{number:nu},multi:{boolean:iu,string:eu},bold:{color:{string:eu},size:{number:nu},face:{string:eu},mod:{string:eu},vadjust:{number:nu},__type__:{object:gu,string:eu}},boldital:{color:{string:eu},size:{number:nu},face:{string:eu},mod:{string:eu},vadjust:{number:nu},__type__:{object:gu,string:eu}},ital:{color:{string:eu},size:{number:nu},face:{string:eu},mod:{string:eu},vadjust:{number:nu},__type__:{object:gu,string:eu}},mono:{color:{string:eu},size:{number:nu},face:{string:eu},mod:{string:eu},vadjust:{number:nu},__type__:{object:gu,string:eu}},__type__:{object:gu,string:eu}},group:{string:eu,number:nu,undefined:"undefined"},heightConstraint:{minimum:{number:nu},valign:{string:eu},__type__:{object:gu,boolean:iu,number:nu}},hidden:{boolean:iu},icon:{face:{string:eu},code:{string:eu},size:{number:nu},color:{string:eu},weight:{string:eu,number:nu},__type__:{object:gu}},id:{string:eu,number:nu},image:{selected:{string:eu,undefined:"undefined"},unselected:{string:eu,undefined:"undefined"},__type__:{object:gu,string:eu}},imagePadding:{top:{number:nu},right:{number:nu},bottom:{number:nu},left:{number:nu},__type__:{object:gu,number:nu}},label:{string:eu,undefined:"undefined"},labelHighlightBold:{boolean:iu},level:{number:nu,undefined:"undefined"},margin:{top:{number:nu},right:{number:nu},bottom:{number:nu},left:{number:nu},__type__:{object:gu,number:nu}},mass:{number:nu},physics:{boolean:iu},scaling:{min:{number:nu},max:{number:nu},label:{enabled:{boolean:iu},min:{number:nu},max:{number:nu},maxVisible:{number:nu},drawThreshold:{number:nu},__type__:{object:gu,boolean:iu}},customScalingFunction:{function:"function"},__type__:{object:gu}},shadow:{enabled:{boolean:iu},color:{string:eu},size:{number:nu},x:{number:nu},y:{number:nu},__type__:{object:gu,boolean:iu}},shape:{string:["ellipse","circle","database","box","text","image","circularImage","diamond","dot","star","triangle","triangleDown","square","icon","hexagon"]},shapeProperties:{borderDashes:{boolean:iu,array:"array"},borderRadius:{number:nu},interpolation:{boolean:iu},useImageSize:{boolean:iu},useBorderWithImage:{boolean:iu},__type__:{object:gu}},size:{number:nu},title:{string:eu,dom:"dom",undefined:"undefined"},value:{number:nu,undefined:"undefined"},widthConstraint:{minimum:{number:nu},maximum:{number:nu},__type__:{object:gu,boolean:iu,number:nu}},x:{number:nu},y:{number:nu},__type__:{object:gu}},physics:{enabled:{boolean:iu},barnesHut:{theta:{number:nu},gravitationalConstant:{number:nu},centralGravity:{number:nu},springLength:{number:nu},springConstant:{number:nu},damping:{number:nu},avoidOverlap:{number:nu},__type__:{object:gu}},forceAtlas2Based:{theta:{number:nu},gravitationalConstant:{number:nu},centralGravity:{number:nu},springLength:{number:nu},springConstant:{number:nu},damping:{number:nu},avoidOverlap:{number:nu},__type__:{object:gu}},repulsion:{centralGravity:{number:nu},springLength:{number:nu},springConstant:{number:nu},nodeDistance:{number:nu},damping:{number:nu},__type__:{object:gu}},hierarchicalRepulsion:{centralGravity:{number:nu},springLength:{number:nu},springConstant:{number:nu},nodeDistance:{number:nu},damping:{number:nu},avoidOverlap:{number:nu},__type__:{object:gu}},maxVelocity:{number:nu},minVelocity:{number:nu},solver:{string:["barnesHut","repulsion","hierarchicalRepulsion","forceAtlas2Based"]},stabilization:{enabled:{boolean:iu},iterations:{number:nu},updateInterval:{number:nu},onlyDynamicEdges:{boolean:iu},fit:{boolean:iu},__type__:{object:gu,boolean:iu}},timestep:{number:nu},adaptiveTimestep:{boolean:iu},wind:{x:{number:nu},y:{number:nu},__type__:{object:gu}},__type__:{object:gu,boolean:iu}},autoResize:{boolean:iu},clickToUse:{boolean:iu},locale:{string:eu},locales:{__any__:{any:"any"},__type__:{object:gu}},height:{string:eu},width:{string:eu},__type__:{object:gu}};ru.groups.__any__=ru.nodes,ru.manipulation.controlNodeStyle=ru.nodes;var Au={nodes:{borderWidth:[1,0,10,1],borderWidthSelected:[2,0,10,1],color:{border:["color","#2B7CE9"],background:["color","#97C2FC"],highlight:{border:["color","#2B7CE9"],background:["color","#D2E5FF"]},hover:{border:["color","#2B7CE9"],background:["color","#D2E5FF"]}},opacity:[0,0,1,.1],fixed:{x:!1,y:!1},font:{color:["color","#343434"],size:[14,0,100,1],face:["arial","verdana","tahoma"],background:["color","none"],strokeWidth:[0,0,50,1],strokeColor:["color","#ffffff"]},hidden:!1,labelHighlightBold:!0,physics:!0,scaling:{min:[10,0,200,1],max:[30,0,200,1],label:{enabled:!1,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},shape:["ellipse","box","circle","database","diamond","dot","square","star","text","triangle","triangleDown","hexagon"],shapeProperties:{borderDashes:!1,borderRadius:[6,0,20,1],interpolation:!0,useImageSize:!1},size:[25,0,200,1]},edges:{arrows:{to:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"},middle:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"},from:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"}},arrowStrikethrough:!0,color:{color:["color","#848484"],highlight:["color","#848484"],hover:["color","#848484"],inherit:["from","to","both",!0,!1],opacity:[1,0,1,.05]},dashes:!1,font:{color:["color","#343434"],size:[14,0,100,1],face:["arial","verdana","tahoma"],background:["color","none"],strokeWidth:[2,0,50,1],strokeColor:["color","#ffffff"],align:["horizontal","top","middle","bottom"]},hidden:!1,hoverWidth:[1.5,0,5,.1],labelHighlightBold:!0,physics:!0,scaling:{min:[1,0,100,1],max:[15,0,100,1],label:{enabled:!0,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},selectionWidth:[1.5,0,5,.1],selfReferenceSize:[20,0,200,1],selfReference:{size:[20,0,200,1],angle:[Math.PI/2,-6*Math.PI,6*Math.PI,Math.PI/8],renderBehindTheNode:!0},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},smooth:{enabled:!0,type:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"],forceDirection:["horizontal","vertical","none"],roundness:[.5,0,1,.05]},width:[1,0,30,1]},layout:{hierarchical:{enabled:!1,levelSeparation:[150,20,500,5],nodeSpacing:[100,20,500,5],treeSpacing:[200,20,500,5],blockShifting:!0,edgeMinimization:!0,parentCentralization:!0,direction:["UD","DU","LR","RL"],sortMethod:["hubsize","directed"],shakeTowards:["leaves","roots"]}},interaction:{dragNodes:!0,dragView:!0,hideEdgesOnDrag:!1,hideEdgesOnZoom:!1,hideNodesOnDrag:!1,hover:!1,keyboard:{enabled:!1,speed:{x:[10,0,40,1],y:[10,0,40,1],zoom:[.02,0,.1,.005]},bindToWindow:!0},multiselect:!1,navigationButtons:!1,selectable:!0,selectConnectedEdges:!0,hoverConnectedEdges:!0,tooltipDelay:[300,0,1e3,25],zoomView:!0,zoomSpeed:[1,.1,2,.1]},manipulation:{enabled:!1,initiallyActive:!1},physics:{enabled:!0,barnesHut:{theta:[.5,.1,1,.05],gravitationalConstant:[-2e3,-3e4,0,50],centralGravity:[.3,0,10,.05],springLength:[95,0,500,5],springConstant:[.04,0,1.2,.005],damping:[.09,0,1,.01],avoidOverlap:[0,0,1,.01]},forceAtlas2Based:{theta:[.5,.1,1,.05],gravitationalConstant:[-50,-500,0,1],centralGravity:[.01,0,1,.005],springLength:[95,0,500,5],springConstant:[.08,0,1.2,.005],damping:[.4,0,1,.01],avoidOverlap:[0,0,1,.01]},repulsion:{centralGravity:[.2,0,10,.05],springLength:[200,0,500,5],springConstant:[.05,0,1.2,.005],nodeDistance:[100,0,500,5],damping:[.09,0,1,.01]},hierarchicalRepulsion:{centralGravity:[.2,0,10,.05],springLength:[100,0,500,5],springConstant:[.01,0,1.2,.005],nodeDistance:[120,0,500,5],damping:[.09,0,1,.01],avoidOverlap:[0,0,1,.01]},maxVelocity:[50,0,150,1],minVelocity:[.1,.01,.5,.01],solver:["barnesHut","forceAtlas2Based","repulsion","hierarchicalRepulsion"],timestep:[.5,.01,1,.01],wind:{x:[0,-10,10,.1],y:[0,-10,10,.1]}}},su=Object.freeze({__proto__:null,allOptions:ru,configureOptions:Au}),Cu=function(){function t(){qs(this,t)}return tC(t,[{key:"getDistances",value:function(t,e,i){for(var n={},g=t.edges,o=0;o<e.length;o++){var r={};n[e[o]]=r;for(var A=0;A<e.length;A++)r[e[A]]=o==A?0:1e9}for(var s=0;s<i.length;s++){var C=g[i[s]];!0===C.connected&&void 0!==n[C.fromId]&&void 0!==n[C.toId]&&(n[C.fromId][C.toId]=1,n[C.toId][C.fromId]=1)}for(var I=e.length,a=0;a<I;a++)for(var l=e[a],c=n[l],u=0;u<I-1;u++)for(var d=e[u],h=n[d],p=u+1;p<I;p++){var f=e[p],v=n[f],y=Math.min(h[f],h[l]+c[f]);h[f]=y,v[d]=y}return n}}]),t}(),Iu=function(){function t(e,i,n){qs(this,t),this.body=e,this.springLength=i,this.springConstant=n,this.distanceSolver=new Cu}return tC(t,[{key:"setOptions",value:function(t){t&&(t.springLength&&(this.springLength=t.springLength),t.springConstant&&(this.springConstant=t.springConstant))}},{key:"solve",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=this.distanceSolver.getDistances(this.body,t,e);this._createL_matrix(n),this._createK_matrix(n),this._createE_matrix();for(var g=.01,o=1,r=0,A=Math.max(1e3,Math.min(10*this.body.nodeIndices.length,6e3)),s=5,C=1e9,I=0,a=0,l=0,c=0,u=0;C>g&&r<A;){r+=1;var d=this._getHighestEnergyNode(i),h=po(d,4);for(I=h[0],C=h[1],a=h[2],l=h[3],c=C,u=0;c>o&&u<s;){u+=1,this._moveNode(I,a,l);var p=this._getEnergy(I),f=po(p,3);c=f[0],a=f[1],l=f[2]}}}},{key:"_getHighestEnergyNode",value:function(t){for(var e=this.body.nodeIndices,i=this.body.nodes,n=0,g=e[0],o=0,r=0,A=0;A<e.length;A++){var s=e[A];if(!1===i[s].predefinedPosition||!0===i[s].isCluster&&!0===t||!0===i[s].options.fixed.x||!0===i[s].options.fixed.y){var C=this._getEnergy(s),I=po(C,3),a=I[0],l=I[1],c=I[2];n<a&&(n=a,g=s,o=l,r=c)}}return[g,n,o,r]}},{key:"_getEnergy",value:function(t){var e=po(this.E_sums[t],2),i=e[0],n=e[1];return[Math.sqrt(Math.pow(i,2)+Math.pow(n,2)),i,n]}},{key:"_moveNode",value:function(t,e,i){for(var n=this.body.nodeIndices,g=this.body.nodes,o=0,r=0,A=0,s=g[t].x,C=g[t].y,I=this.K_matrix[t],a=this.L_matrix[t],l=0;l<n.length;l++){var c=n[l];if(c!==t){var u=g[c].x,d=g[c].y,h=I[c],p=a[c],f=1/Math.pow(Math.pow(s-u,2)+Math.pow(C-d,2),1.5);o+=h*(1-p*Math.pow(C-d,2)*f),r+=h*(p*(s-u)*(C-d)*f),A+=h*(1-p*Math.pow(s-u,2)*f)}}var v=(e/o+i/r)/(r/o-A/r),y=-(r*v+e)/o;g[t].x+=y,g[t].y+=v,this._updateE_matrix(t)}},{key:"_createL_matrix",value:function(t){var e=this.body.nodeIndices,i=this.springLength;this.L_matrix=[];for(var n=0;n<e.length;n++){this.L_matrix[e[n]]={};for(var g=0;g<e.length;g++)this.L_matrix[e[n]][e[g]]=i*t[e[n]][e[g]]}}},{key:"_createK_matrix",value:function(t){var e=this.body.nodeIndices,i=this.springConstant;this.K_matrix=[];for(var n=0;n<e.length;n++){this.K_matrix[e[n]]={};for(var g=0;g<e.length;g++)this.K_matrix[e[n]][e[g]]=i*Math.pow(t[e[n]][e[g]],-2)}}},{key:"_createE_matrix",value:function(){var t=this.body.nodeIndices,e=this.body.nodes;this.E_matrix={},this.E_sums={};for(var i=0;i<t.length;i++)this.E_matrix[t[i]]=[];for(var n=0;n<t.length;n++){for(var g=t[n],o=e[g].x,r=e[g].y,A=0,s=0,C=n;C<t.length;C++){var I=t[C];if(I!==g){var a=e[I].x,l=e[I].y,c=1/Math.sqrt(Math.pow(o-a,2)+Math.pow(r-l,2));this.E_matrix[g][C]=[this.K_matrix[g][I]*(o-a-this.L_matrix[g][I]*(o-a)*c),this.K_matrix[g][I]*(r-l-this.L_matrix[g][I]*(r-l)*c)],this.E_matrix[I][n]=this.E_matrix[g][C],A+=this.E_matrix[g][C][0],s+=this.E_matrix[g][C][1]}}this.E_sums[g]=[A,s]}}},{key:"_updateE_matrix",value:function(t){for(var e=this.body.nodeIndices,i=this.body.nodes,n=this.E_matrix[t],g=this.K_matrix[t],o=this.L_matrix[t],r=i[t].x,A=i[t].y,s=0,C=0,I=0;I<e.length;I++){var a=e[I];if(a!==t){var l=n[I],c=l[0],u=l[1],d=i[a].x,h=i[a].y,p=1/Math.sqrt(Math.pow(r-d,2)+Math.pow(A-h,2)),f=g[a]*(r-d-o[a]*(r-d)*p),v=g[a]*(A-h-o[a]*(A-h)*p);n[I]=[f,v],s+=f,C+=v;var y=this.E_sums[a];y[0]+=f-c,y[1]+=v-u}}this.E_sums[t]=[s,C]}}]),t}();function au(t,e,i){var n,g,o,r,A=this;if(!(this instanceof au))throw new SyntaxError("Constructor must be called with the new operator");this.options={},this.defaultOptions={locale:"en",locales:Ks,clickToUse:!1},So(this.options,this.defaultOptions),this.body={container:t,nodes:{},nodeIndices:[],edges:{},edgeIndices:[],emitter:{on:et(n=this.on).call(n,this),off:et(g=this.off).call(g,this),emit:et(o=this.emit).call(o,this),once:et(r=this.once).call(r,this)},eventListeners:{onTap:function(){},onTouch:function(){},onDoubleTap:function(){},onHold:function(){},onDragStart:function(){},onDrag:function(){},onDragEnd:function(){},onMouseWheel:function(){},onPinch:function(){},onMouseMove:function(){},onRelease:function(){},onContext:function(){}},data:{nodes:null,edges:null},functions:{createNode:function(){},createEdge:function(){},getPointer:function(){}},modules:{},view:{scale:1,translation:{x:0,y:0}}},this.bindEventListeners(),this.images=new iC((function(){return A.body.emitter.emit("_requestRedraw")})),this.groups=new nC,this.canvas=new Oc(this.body),this.selectionHandler=new Nc(this.body,this.canvas),this.interactionHandler=new _c(this.body,this.canvas,this.selectionHandler),this.view=new Dc(this.body,this.canvas),this.renderer=new xc(this.body,this.canvas),this.physics=new cc(this.body),this.layoutEngine=new Jc(this.body),this.clustering=new bc(this.body),this.manipulation=new Kc(this.body,this.canvas,this.selectionHandler,this.interactionHandler),this.nodesHandler=new ul(this.body,this.images,this.groups,this.layoutEngine),this.edgesHandler=new ic(this.body,this.images,this.groups),this.body.modules.kamadaKawai=new Iu(this.body,150,.05),this.body.modules.clustering=this.clustering,this.canvas._create(),this.setOptions(i),this.setData(e)}st(au.prototype),au.prototype.setOptions=function(t){var e=this;if(null===t&&(t=void 0),void 0!==t){!0===sl.validate(t,ru)&&console.log("%cErrors have been found in the supplied options object.",Al);if(Zo(["locale","locales","clickToUse"],this.options,t),t=this.layoutEngine.setOptions(t.layout,t),this.canvas.setOptions(t),this.groups.setOptions(t.groups),this.nodesHandler.setOptions(t.nodes),this.edgesHandler.setOptions(t.edges),this.physics.setOptions(t.physics),this.manipulation.setOptions(t.manipulation,t,this.options),this.interactionHandler.setOptions(t.interaction),this.renderer.setOptions(t.interaction),this.selectionHandler.setOptions(t.interaction),void 0!==t.groups&&this.body.emitter.emit("refreshNodes"),"configure"in t&&(this.configurator||(this.configurator=new tu(this,this.body.container,Au,this.canvas.pixelRatio)),this.configurator.setOptions(t.configure)),this.configurator&&!0===this.configurator.options.enabled){var i={nodes:{},edges:{},layout:{},interaction:{},manipulation:{},physics:{},global:{}};Go(i.nodes,this.nodesHandler.options),Go(i.edges,this.edgesHandler.options),Go(i.layout,this.layoutEngine.options),Go(i.interaction,this.selectionHandler.options),Go(i.interaction,this.renderer.options),Go(i.interaction,this.interactionHandler.options),Go(i.manipulation,this.manipulation.options),Go(i.physics,this.physics.options),Go(i.global,this.canvas.options),Go(i.global,this.options),this.configurator.setModuleOptions(i)}void 0!==t.clickToUse?!0===t.clickToUse?void 0===this.activator&&(this.activator=new Js(this.canvas.frame),this.activator.on("change",(function(){e.body.emitter.emit("activate")}))):(void 0!==this.activator&&(this.activator.destroy(),delete this.activator),this.body.emitter.emit("activate")):this.body.emitter.emit("activate"),this.canvas.setSize(),this.body.emitter.emit("startSimulation")}},au.prototype._updateVisibleIndices=function(){var t=this.body.nodes,e=this.body.edges;for(var i in this.body.nodeIndices=[],this.body.edgeIndices=[],t)t.hasOwnProperty(i)&&(this.clustering._isClusteredNode(i)||!1!==t[i].options.hidden||this.body.nodeIndices.push(t[i].id));for(var n in e)if(e.hasOwnProperty(n)){var g=e[n],o=t[g.fromId],r=t[g.toId],A=void 0!==o&&void 0!==r;!this.clustering._isClusteredEdge(n)&&!1===g.options.hidden&&A&&!1===o.options.hidden&&!1===r.options.hidden&&this.body.edgeIndices.push(g.id)}},au.prototype.bindEventListeners=function(){var t=this;this.body.emitter.on("_dataChanged",(function(){t.edgesHandler._updateState(),t.body.emitter.emit("_dataUpdated")})),this.body.emitter.on("_dataUpdated",(function(){t.clustering._updateState(),t._updateVisibleIndices(),t._updateValueRange(t.body.nodes),t._updateValueRange(t.body.edges),t.body.emitter.emit("startSimulation"),t.body.emitter.emit("_requestRedraw")}))},au.prototype.setData=function(t){if(this.body.emitter.emit("resetPhysics"),this.body.emitter.emit("_resetData"),this.selectionHandler.unselectAll(),t&&t.dot&&(t.nodes||t.edges))throw new SyntaxError('Data must contain either parameter "dot" or  parameter pair "nodes" and "edges", but not both.');if(this.setOptions(t&&t.options),t&&t.dot){console.log("The dot property has been deprecated. Please use the static convertDot method to convert DOT into vis.network format and use the normal data format with nodes and edges. This converter is used like this: var data = vis.network.convertDot(dotString);");var e=lA.DOTToGraph(t.dot);this.setData(e)}else if(t&&t.gephi){console.log("The gephi property has been deprecated. Please use the static convertGephi method to convert gephi into vis.network format and use the normal data format with nodes and edges. This converter is used like this: var data = vis.network.convertGephi(gephiJson);");var i=uA(t.gephi);this.setData(i)}else this.nodesHandler.setData(t&&t.nodes,!0),this.edgesHandler.setData(t&&t.edges,!0),this.body.emitter.emit("_dataChanged"),this.body.emitter.emit("_dataLoaded"),this.body.emitter.emit("initPhysics")},au.prototype.destroy=function(){for(var t in this.body.emitter.emit("destroy"),this.body.emitter.off(),this.off(),delete this.groups,delete this.canvas,delete this.selectionHandler,delete this.interactionHandler,delete this.view,delete this.renderer,delete this.physics,delete this.layoutEngine,delete this.clustering,delete this.manipulation,delete this.nodesHandler,delete this.edgesHandler,delete this.configurator,delete this.images,this.body.nodes)this.body.nodes.hasOwnProperty(t)&&delete this.body.nodes[t];for(var e in this.body.edges)this.body.edges.hasOwnProperty(e)&&delete this.body.edges[e];jo(this.body.container)},au.prototype._updateValueRange=function(t){var e,i=void 0,n=void 0,g=0;for(e in t)if(t.hasOwnProperty(e)){var o=t[e].getValue();void 0!==o&&(i=void 0===i?o:Math.min(o,i),n=void 0===n?o:Math.max(o,n),g+=o)}if(void 0!==i&&void 0!==n)for(e in t)t.hasOwnProperty(e)&&t[e].setValueRange(i,n,g)},au.prototype.isActive=function(){return!this.activator||this.activator.active},au.prototype.setSize=function(){return this.canvas.setSize.apply(this.canvas,arguments)},au.prototype.canvasToDOM=function(){return this.canvas.canvasToDOM.apply(this.canvas,arguments)},au.prototype.DOMtoCanvas=function(){return this.canvas.DOMtoCanvas.apply(this.canvas,arguments)},au.prototype.findNode=function(){return this.clustering.findNode.apply(this.clustering,arguments)},au.prototype.isCluster=function(){return this.clustering.isCluster.apply(this.clustering,arguments)},au.prototype.openCluster=function(){return this.clustering.openCluster.apply(this.clustering,arguments)},au.prototype.cluster=function(){return this.clustering.cluster.apply(this.clustering,arguments)},au.prototype.getNodesInCluster=function(){return this.clustering.getNodesInCluster.apply(this.clustering,arguments)},au.prototype.clusterByConnection=function(){return this.clustering.clusterByConnection.apply(this.clustering,arguments)},au.prototype.clusterByHubsize=function(){return this.clustering.clusterByHubsize.apply(this.clustering,arguments)},au.prototype.updateClusteredNode=function(){return this.clustering.updateClusteredNode.apply(this.clustering,arguments)},au.prototype.getClusteredEdges=function(){return this.clustering.getClusteredEdges.apply(this.clustering,arguments)},au.prototype.getBaseEdge=function(){return this.clustering.getBaseEdge.apply(this.clustering,arguments)},au.prototype.getBaseEdges=function(){return this.clustering.getBaseEdges.apply(this.clustering,arguments)},au.prototype.updateEdge=function(){return this.clustering.updateEdge.apply(this.clustering,arguments)},au.prototype.clusterOutliers=function(){return this.clustering.clusterOutliers.apply(this.clustering,arguments)},au.prototype.getSeed=function(){return this.layoutEngine.getSeed.apply(this.layoutEngine,arguments)},au.prototype.enableEditMode=function(){return this.manipulation.enableEditMode.apply(this.manipulation,arguments)},au.prototype.disableEditMode=function(){return this.manipulation.disableEditMode.apply(this.manipulation,arguments)},au.prototype.addNodeMode=function(){return this.manipulation.addNodeMode.apply(this.manipulation,arguments)},au.prototype.editNode=function(){return this.manipulation.editNode.apply(this.manipulation,arguments)},au.prototype.editNodeMode=function(){return console.log("Deprecated: Please use editNode instead of editNodeMode."),this.manipulation.editNode.apply(this.manipulation,arguments)},au.prototype.addEdgeMode=function(){return this.manipulation.addEdgeMode.apply(this.manipulation,arguments)},au.prototype.editEdgeMode=function(){return this.manipulation.editEdgeMode.apply(this.manipulation,arguments)},au.prototype.deleteSelected=function(){return this.manipulation.deleteSelected.apply(this.manipulation,arguments)},au.prototype.getPositions=function(){return this.nodesHandler.getPositions.apply(this.nodesHandler,arguments)},au.prototype.getPosition=function(){return this.nodesHandler.getPosition.apply(this.nodesHandler,arguments)},au.prototype.storePositions=function(){return this.nodesHandler.storePositions.apply(this.nodesHandler,arguments)},au.prototype.moveNode=function(){return this.nodesHandler.moveNode.apply(this.nodesHandler,arguments)},au.prototype.getBoundingBox=function(){return this.nodesHandler.getBoundingBox.apply(this.nodesHandler,arguments)},au.prototype.getConnectedNodes=function(t){return void 0!==this.body.nodes[t]?this.nodesHandler.getConnectedNodes.apply(this.nodesHandler,arguments):this.edgesHandler.getConnectedNodes.apply(this.edgesHandler,arguments)},au.prototype.getConnectedEdges=function(){return this.nodesHandler.getConnectedEdges.apply(this.nodesHandler,arguments)},au.prototype.startSimulation=function(){return this.physics.startSimulation.apply(this.physics,arguments)},au.prototype.stopSimulation=function(){return this.physics.stopSimulation.apply(this.physics,arguments)},au.prototype.stabilize=function(){return this.physics.stabilize.apply(this.physics,arguments)},au.prototype.getSelection=function(){return this.selectionHandler.getSelection.apply(this.selectionHandler,arguments)},au.prototype.setSelection=function(){return this.selectionHandler.setSelection.apply(this.selectionHandler,arguments)},au.prototype.getSelectedNodes=function(){return this.selectionHandler.getSelectedNodes.apply(this.selectionHandler,arguments)},au.prototype.getSelectedEdges=function(){return this.selectionHandler.getSelectedEdges.apply(this.selectionHandler,arguments)},au.prototype.getNodeAt=function(){var t=this.selectionHandler.getNodeAt.apply(this.selectionHandler,arguments);return void 0!==t&&void 0!==t.id?t.id:t},au.prototype.getEdgeAt=function(){var t=this.selectionHandler.getEdgeAt.apply(this.selectionHandler,arguments);return void 0!==t&&void 0!==t.id?t.id:t},au.prototype.selectNodes=function(){return this.selectionHandler.selectNodes.apply(this.selectionHandler,arguments)},au.prototype.selectEdges=function(){return this.selectionHandler.selectEdges.apply(this.selectionHandler,arguments)},au.prototype.unselectAll=function(){this.selectionHandler.unselectAll.apply(this.selectionHandler,arguments),this.redraw()},au.prototype.redraw=function(){return this.renderer.redraw.apply(this.renderer,arguments)},au.prototype.getScale=function(){return this.view.getScale.apply(this.view,arguments)},au.prototype.getViewPosition=function(){return this.view.getViewPosition.apply(this.view,arguments)},au.prototype.fit=function(){return this.view.fit.apply(this.view,arguments)},au.prototype.moveTo=function(){return this.view.moveTo.apply(this.view,arguments)},au.prototype.focus=function(){return this.view.focus.apply(this.view,arguments)},au.prototype.releaseNode=function(){return this.view.releaseNode.apply(this.view,arguments)},au.prototype.getOptionsFromConfigurator=function(){var t={};return this.configurator&&(t=this.configurator.getOptions.apply(this.configurator)),t};var lu=aA}).call(this,i(5))},function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e,i){var n,g,o;
/*!
 * jQuery UI Mouse 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */!function(r){"use strict";g=[i(0),i(18),i(1),i(2)],void 0===(o="function"==typeof(n=function(t){var e=!1;return t(document).on("mouseup",(function(){e=!1})),t.widget("ui.mouse",{version:"1.13.2",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,(function(t){return e._mouseDown(t)})).on("click."+this.widgetName,(function(i){if(!0===t.data(i.target,e.widgetName+".preventClickEvent"))return t.removeData(i.target,e.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1})),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(i){if(!e){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(i),this._mouseDownEvent=i;var n=this,g=1===i.which,o=!("string"!=typeof this.options.cancel||!i.target.nodeName)&&t(i.target).closest(this.options.cancel).length;return!(g&&!o&&this._mouseCapture(i))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout((function(){n.mouseDelayMet=!0}),this.options.delay)),this._mouseDistanceMet(i)&&this._mouseDelayMet(i)&&(this._mouseStarted=!1!==this._mouseStart(i),!this._mouseStarted)?(i.preventDefault(),!0):(!0===t.data(i.target,this.widgetName+".preventClickEvent")&&t.removeData(i.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return n._mouseMove(t)},this._mouseUpDelegate=function(t){return n._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),i.preventDefault(),e=!0,!0))}},_mouseMove:function(e){if(this._mouseMoved){if(t.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button)return this._mouseUp(e);if(!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(i){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,i.target===this._mouseDownEvent.target&&t.data(i.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(i)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,e=!1,i.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})?n.apply(e,g):n)||(t.exports=o)}()},function(t,e,i){var n,g,o;!function(r){"use strict";g=[i(0),i(1)],void 0===(o="function"==typeof(n=function(t){return t.ui.plugin={add:function(e,i,n){var g,o=t.ui[e].prototype;for(g in n)o.plugins[g]=o.plugins[g]||[],o.plugins[g].push([i,n[g]])},call:function(t,e,i,n){var g,o=t.plugins[e];if(o&&(n||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(g=0;g<o.length;g++)t.options[o[g][0]]&&o[g][1].apply(t.element,i)}}})?n.apply(e,g):n)||(t.exports=o)}()},function(t,e,i){"use strict";i.r(e),i.d(e,"DataSet",(function(){return n.a})),i.d(e,"DataView",(function(){return n.b})),i.d(e,"Network",(function(){return n.c})),i.d(e,"NetworkImages",(function(){return n.d})),i.d(e,"Queue",(function(){return n.e})),i.d(e,"data",(function(){return n.f})),i.d(e,"networkDOTParser",(function(){return n.g})),i.d(e,"networkGephiParser",(function(){return n.h})),i.d(e,"networkOptions",(function(){return n.i})),i.d(e,"parseDOTNetwork",(function(){return n.j})),i.d(e,"parseGephiNetwork",(function(){return n.k})),i.d(e,"util",(function(){return n.l}));var n=i(4)},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[i]}})}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),g=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),g(i(3),e),g(i(11),e)},function(t){t.exports=JSON.parse('{"name":"graph_notebook_widgets","version":"3.7.2","author":"amazon","description":"A Custom Jupyter Library for rendering NetworkX MultiDiGraphs using vis-network","dependencies":{"@jupyter-widgets/base":"^2 || ^3 || ^4","feather-icons":"4.28.0","jquery":"3.6.0","jquery-ui":"1.13.2","lodash":"4.17.21","vis-data":"6.5.1","vis-network":"7.6.3","vis-util":"4.0.0"},"devDependencies":{"@jupyterlab/builder":"^3.0.0","@phosphor/application":"1.7.3","@phosphor/widgets":"1.9.3","@types/chai":"4.2.11","@types/feather-icons":"4.7.0","@types/jquery":"3.5.0","@types/jqueryui":"1.12.13","@types/mocha":"7.0.2","@types/node":"13.13.5","@types/webpack-env":"1.15.2","@typescript-eslint/eslint-plugin":"2.32.0","@typescript-eslint/parser":"2.32.0","chai":"4.2.0","css-loader":"3.5.3","eslint":"6.8.0","eslint-config-prettier":"6.11.0","eslint-loader":"4.0.2","eslint-plugin-prettier":"3.1.3","fs-extra":"9.0.0","json-schema":"0.4.0","karma":"6.3.16","karma-chai":"0.1.0","karma-firefox-launcher":"1.3.0","karma-mocha":"2.0.1","karma-mocha-reporter":"2.2.5","karma-sinon":"1.0.5","karma-sourcemap-loader":"0.3.7","karma-webpack":"4.0.2","mkdirp":"0.5.5","mocha":"7.1.2","npm-run-all":"4.1.5","opencollective":"1.0.3","prettier":"2.0.5","rimraf":"3.0.2","sinon":"9.0.2","source-map-loader":"0.2.4","style-loader":"1.2.1","ts-loader":"5.4.5","typescript":"4.1.6","webpack":"4.43.0","webpack-cli":"3.3.11","webpack-dev-server":"3.11.0"},"files":["lib/**/*.js","dist/*.js","css/*.css"],"jupyterlab":{"extension":"lib/plugin","outputDir":"labextension","sharedPackages":{"@jupyter-widgets/base":{"bundled":false,"singleton":true}}},"keywords":["jupyter","widgets","ipython","ipywidgets","jupyterlab-extension"],"main":"lib/index.js","types":"lib/index.d.ts","scripts":{"build":"npm run build:lib && npm run build:nbextension && npm run build:labextension:dev","build:prod":"npm run build:lib && npm run build:nbextension && npm run build:labextension","build:labextension":"jupyter labextension build .","build:labextension:dev":"jupyter labextension build --development True .","build:lib":"tsc","build:nbextension":"webpack","clean":"npm run clean:lib && npm run clean:nbextension && npm run clean:labextension","clean:lib":"rimraf lib","clean:labextension":"rimraf labextension","clean:nbextension":"rimraf nbextension","lint":"eslint . --ext .ts,.tsx --fix","lint:check":"eslint . --ext .ts,.tsx","prepack":"npm run build:lib","test":"jest","watch":"npm-run-all -p watch:*","watch:lib":"tsc -w","watch:nbextension":"webpack --watch --mode=development","watch:labextension":"jupyter labextension watch ."}}')},function(t,e,i){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ForceView=e.ForceModel=void 0;const g=i(12),o=i(8),r=i(13),A=i(3),s=n(i(16)),C=n(i(0));i(17),i(23),i(25),s.default.replace();class I extends g.DOMWidgetModel{defaults(){return Object.assign(Object.assign({},super.defaults()),{_model_name:I.model_name,_model_module:I.model_module,_model_module_version:I.model_module_version,_view_name:I.view_name,_view_module:I.view_module,_view_module_version:I.view_module_version})}}e.ForceModel=I,I.serializers=Object.assign({},g.DOMWidgetModel.serializers),I.model_name="ForceModel",I.model_module=A.MODULE_NAME,I.model_module_version=A.MODULE_VERSION,I.view_name="ForceView",I.view_module=A.MODULE_NAME,I.view_module_version=A.MODULE_VERSION;class a extends g.DOMWidgetView{constructor(){super(...arguments),this.networkDiv=document.createElement("div"),this.canvasDiv=document.createElement("div"),this.menu=document.createElement("div"),this.expandDiv=document.createElement("div"),this.searchDiv=document.createElement("div"),this.searchOptionsDiv=document.createElement("div"),this.resetDiv=document.createElement("div"),this.detailsDiv=document.createElement("div"),this.physicsDiv=document.createElement("div"),this.nodeDataset=new r.NodeDataSet(new Array,{}),this.edgeDataset=new r.EdgeDataSet(new Array,{}),this.visOptions={},this.vis=null,this.detailsPanel=document.createElement("div"),this.detailsHeader=document.createElement("div"),this.graphPropertiesTable=document.createElement("table"),this.emptyDetailsMessage=document.createElement("p"),this.graphTableDiv=document.createElement("div"),this.resizeHandle=document.createElement("div"),this.detailsContainer=document.createElement("div"),this.noDataMessage="No additional data from data source found.",this.noElementSelectedMessage="Select a single node or edge to see more.",this.expandBtn=document.createElement("button"),this.nodeIDSearchMatches=new Array,this.edgeIDSearchMatches=new Array,this.excludeIDsFromSearch=!1,this.closeButton=document.createElement("button"),this.detailsText=document.createElement("p"),this.searchOptionsBtn=document.createElement("button"),this.searchMatchColorEdge="rgba(9,120,209,1)",this.searchMatchColorNode={background:"rgba(210, 229, 255, 1)",border:"#0978D1"},this.resetBtn=document.createElement("button"),this.doingReset=!1,this.detailsBtn=document.createElement("button"),this.selectedNodeID="",this.physicsBtn=document.createElement("button")}render(){this.networkDiv.classList.add("network-div"),this.canvasDiv.style.height="600px",this.canvasDiv.style.width="100%",this.networkDiv.appendChild(this.canvasDiv),this.menu.classList.add("menu-div"),this.networkDiv.appendChild(this.menu),this.networkDiv.appendChild(this.detailsPanel),this.el.appendChild(this.networkDiv);const t=this.model.get("network");this.visOptions=this.model.get("options"),this.populateDatasets(t);const e={nodes:this.nodeDataset,edges:this.edgeDataset};this.vis=new o.Network(this.canvasDiv,e,this.stripCustomPhysicsOptions()),setTimeout(()=>{var t;null===(t=this.vis)||void 0===t||t.stopSimulation()},this.visOptions.physics.simulationDuration),this.listenTo(this.model,"msg:custom",this.interceptCustom),this.listenTo(this.model,"change:network",this.changeNetwork),this.listenTo(this.model,"change:options",this.changeOptions),this.buildActions(),this.registerVisEvents(),this.registerWidgetEvents()}populateDatasets(t){const e=this.linksToEdges(t.graph.links);this.nodeDataset.update(t.graph.nodes),this.edgeDataset.update(e)}changeNetwork(){const t=this.model.get("network");this.populateDatasets(t)}changeOptions(){this.visOptions=this.model.get("options"),null!=this.vis&&this.vis.setOptions(this.stripCustomPhysicsOptions())}stripCustomPhysicsOptions(){const t=Object.assign({},JSON.parse(JSON.stringify(this.visOptions)));return delete t.physics.simulationDuration,delete t.physics.disablePhysicsAfterInitialSimulation,t}interceptCustom(t){const e=t.data;switch(t.method){case"add_node":this.addNode(e);break;case"add_node_data":this.addNodeData(e);break;case"add_node_property":this.addNodeProperty(e);break;case"add_edge":this.addEdge(e);break;case"add_edge_data":this.addEdgeData(e);break;default:console.log("unsupported method found",t.method)}}addNode(t){if(!t.hasOwnProperty("node_id"))return;const e=t.node_id;let i=this.nodeDataset.get(e);i=null===i?r.VisNode.fromObject(Object.assign({id:e},t.data)):r.VisNode.mergeObject(i,t.data),i.hasOwnProperty("label")||(i.label=e),this.nodeDataset.update([i])}addNodeData(t){this.addNode(t)}addNodeProperty(t){const e=new r.DynamicObject;e[t.key]=t.value,this.addNode({node_id:t.node_id,data:{properties:e}})}addEdge(t){if(!t.hasOwnProperty("from_id")||!t.hasOwnProperty("to_id")||!t.hasOwnProperty("edge_id"))return;const e=t.hasOwnProperty("label")?t.label:t.edge_id,i=t.hasOwnProperty("data")?t.data:{},n=t.from_id+":"+t.to_id+":"+t.edge_id,g=Object.assign({from:t.from_id,to:t.to_id,id:n,label:e},i);let o=this.edgeDataset.get(n);o=null===o?r.VisEdge.fromObject(g):r.VisEdge.mergeObject(o,g),this.edgeDataset.update([o])}addEdgeData(t){this.addEdge(t)}linksToEdges(t){const e=new Array,i=["source","target","key"];return t.forEach((function(t){const n=new r.VisEdge(t.source,t.target,t.key,t.label);for(const e in t)e in i||(n[e]=t[e]);e.push(n)})),e}registerVisEvents(){var t,e,i,n,g,o,r;null===(t=this.vis)||void 0===t||t.on("click",t=>{0===t.nodes.length&&1===t.edges.length?this.handleEdgeClick(t.edges[0]):0===t.nodes.length&&0===t.edges.length&&this.handleEmptyClick()}),null===(e=this.vis)||void 0===e||e.on("selectNode",t=>{this.handleNodeClick(t.nodes[0])}),null===(i=this.vis)||void 0===i||i.on("deselectNode",t=>{console.log("deselect"),t.previousSelection.nodes.forEach(t=>{this.handleDeselectNode(t)})}),null===(n=this.vis)||void 0===n||n.on("dragStart",t=>{const e={};t.nodes.forEach(t=>{e[t]=!0}),!e.hasOwnProperty(this.selectedNodeID)&&t.nodes.length>0&&this.handleDeselectNode(this.selectedNodeID),this.handleNodeClick(t.nodes[0])}),null===(g=this.vis)||void 0===g||g.on("startStabilizing",()=>{setTimeout(()=>{var t;null===(t=this.vis)||void 0===t||t.stopSimulation()},this.visOptions.physics.simulationDuration)}),null===(o=this.vis)||void 0===o||o.on("selectEdge",t=>{t.edges.forEach(e=>{this.handleEdgeClick(t.edges[0])})}),null===(r=this.vis)||void 0===r||r.on("stabilized",()=>{var t;1==this.visOptions.physics.disablePhysicsAfterInitialSimulation&&(this.visOptions.physics.enabled=!1,this.changeOptions()),this.doingReset&&(null===(t=this.vis)||void 0===t||t.fit({animation:!0}),this.doingReset=!1)})}handleDeselectNode(t){var e;console.log("handle deselect");const i=this.nodeDataset.get(t);null!==i&&(null!=t&&i.id===t?i.group||(i.color=this.searchMatchColorNode,i.font={color:"black"}):i.color=this.visOptions.nodes.color,i.borderWidth=0,this.nodeDataset.update(i),null===(e=this.vis)||void 0===e||e.stopSimulation(),this.selectedNodeID="")}handleEmptyClick(){this.hideGraphProperties(),this.detailsText.innerText="Details",this.setDetailsMessage(this.noElementSelectedMessage)}hideGraphProperties(){this.emptyDetailsMessage.classList.contains("displayNone")&&this.emptyDetailsMessage.classList.toggle("displayNone"),this.graphTableDiv.classList.contains("displayNone")||this.graphTableDiv.classList.toggle("displayNone")}buildGraphPropertiesTable(t){const e=C.default(this.graphPropertiesTable);let i;t.hasOwnProperty("properties")?(i=this.buildTableRows(t.properties),C.default(e).empty(),C.default(e).append(...i),this.showGraphProperties()):(this.hideGraphProperties(),this.setDetailsMessage(this.noDataMessage))}showGraphProperties(){this.graphTableDiv.classList.contains("displayNone")&&this.graphTableDiv.classList.toggle("displayNone"),this.emptyDetailsMessage.classList.contains("displayNone")||this.emptyDetailsMessage.classList.toggle("displayNone")}setDetailsMessage(t){C.default(this.emptyDetailsMessage).text(t)}buildTableRows(t){const e=new Array;if(Object.entries(t).sort((t,e)=>t[0].localeCompare(e[0])).forEach(t=>{const i=document.createElement("tr"),n=document.createElement("td"),g=document.createElement("td");n.appendChild(document.createTextNode(t[0].toString())),g.appendChild(document.createTextNode(t[1].toString())),i.appendChild(n),i.appendChild(g),e.push(i)}),0===e.length){const t=document.createElement("tr"),i=document.createElement("td");i.appendChild(document.createTextNode("No additional data from data source found.")),t.appendChild(i),e.push(t)}return e}handleNodeClick(t){var e;if(void 0===t)return;this.handleDeselectNode(this.selectedNodeID);const i=this.nodeDataset.get(t);null!==i&&(void 0!==i.label&&""!==i.label?this.detailsText.innerText="Details - "+i.title:this.detailsText.innerText="Details",this.buildGraphPropertiesTable(i),i.group?(i.font={bold:!0},i.opacity=1,i.borderWidth=3):i.font={color:"white"},this.nodeDataset.update(i),null===(e=this.vis)||void 0===e||e.stopSimulation(),this.selectedNodeID=t)}handleEdgeClick(t){const e=this.edgeDataset.get(t);null!==e&&(void 0!==e.title&&""!==e.title?this.detailsText.innerText="Details - "+e.title:this.detailsText.innerText="Details",this.buildGraphPropertiesTable(e))}handleSearchInput(t){var e,i,n,g,o;const r=[],A=[],s={},C={},I={};null===(e=this.vis)||void 0===e||e.getSelectedNodes().forEach(t=>{I[t]=!0});const a={};null===(i=this.vis)||void 0===i||i.getSelectedEdges().forEach(t=>{a[t]=!0}),""!==t?(this.nodeDataset.forEach((e,i)=>{if(this.search(t,e,0,this.excludeIDsFromSearch)){const t=i.toString();r.push({id:t,borderWidth:3}),s[i.toString()]=!0}}),this.edgeDataset.forEach((e,i)=>{this.search(t,e,0,this.excludeIDsFromSearch)&&(A.push({id:i.toString(),width:3,color:this.searchMatchColorEdge}),C[i.toString()]=!0)})):this.nodeDataset.forEach((t,e)=>{const i=e.toString();r.push({id:i,opacity:1,borderWidth:0}),s[e.toString()]=!0}),this.nodeIDSearchMatches.forEach(t=>{if(!s.hasOwnProperty(t.toString())){const e=I.hasOwnProperty(t.toString());r.push({id:t.toString(),borderWidth:e?this.visOptions.nodes.borderWidthSelected:0,opacity:.35})}}),this.edgeIDSearchMatches.forEach(t=>{C.hasOwnProperty(t.toString())||A.push({id:t.toString(),width:1,color:this.visOptions.edges.color})});let l=!1;1==this.visOptions.physics.enabled&&(null===(n=this.vis)||void 0===n||n.setOptions({physics:!1}),l=!0),this.nodeDataset.update(r),this.edgeDataset.update(A),l&&(null===(g=this.vis)||void 0===g||g.setOptions({physics:!0}),null===(o=this.vis)||void 0===o||o.stopSimulation()),this.nodeIDSearchMatches=Object.keys(s),this.edgeIDSearchMatches=Object.keys(C)}buildActions(){const t=document.createElement("div");t.classList.add("right-actions"),this.menu.append(t),this.expandDiv.classList.add("menu-action","expand-div"),this.searchDiv.classList.add("menu-action","search-div"),this.searchOptionsDiv.classList.add("menu-action","search-options-div"),this.resetDiv.classList.add("menu-action","reset-div"),this.detailsDiv.classList.add("menu-action","details-div"),this.physicsDiv.classList.add("menu-action","physics-div"),this.searchOptionsBtn.title="Exclude/Include UUIDs in Search",this.searchOptionsBtn.innerHTML=s.default.icons["user-check"].toSvg(),this.searchOptionsDiv.appendChild(this.searchOptionsBtn),t.append(this.searchOptionsDiv),this.searchOptionsBtn.onclick=()=>{this.excludeIDsFromSearch=!this.excludeIDsFromSearch,this.excludeIDsFromSearch?this.searchOptionsBtn.innerHTML=s.default.icons["user-x"].toSvg():this.searchOptionsBtn.innerHTML=s.default.icons["user-check"].toSvg()};const e=document.createElement("input");e.classList.add("search-bar"),e.type="search",e.placeholder="search",e.onkeyup=()=>{this.handleSearchInput(e.value)},this.searchDiv.append(e),t.append(this.searchDiv),this.resetBtn.title="Reset Graph View",this.resetBtn.innerHTML=s.default.icons["refresh-cw"].toSvg(),this.resetDiv.appendChild(this.resetBtn),t.append(this.resetDiv),this.resetBtn.onclick=()=>{this.visOptions.physics.enabled=!0,this.changeOptions(),this.physicsBtn.innerHTML=s.default.icons.unlock.toSvg(),this.doingReset=!0},this.physicsBtn.title="Enable/Disable Graph Physics",1==this.visOptions.physics.enabled&&0==this.visOptions.physics.disablePhysicsAfterInitialSimulation?this.physicsBtn.innerHTML=s.default.icons.unlock.toSvg():this.physicsBtn.innerHTML=s.default.icons.lock.toSvg(),this.physicsDiv.appendChild(this.physicsBtn),t.append(this.physicsDiv),this.physicsBtn.onclick=()=>{this.visOptions.physics.disablePhysicsAfterInitialSimulation=!1,this.visOptions.physics.enabled=!this.visOptions.physics.enabled,this.changeOptions(),1==this.visOptions.physics.enabled?this.physicsBtn.innerHTML=s.default.icons.unlock.toSvg():this.physicsBtn.innerHTML=s.default.icons.lock.toSvg()},this.detailsBtn.innerHTML=s.default.icons.list.toSvg(),this.detailsBtn.title="Details",this.detailsDiv.appendChild(this.detailsBtn),t.append(this.detailsDiv),this.detailsBtn.onclick=()=>{this.handleDetailsToggle()},this.closeButton.onclick=()=>{this.handleDetailsToggle()},this.detailsContainer.classList.add("details-container"),this.detailsPanel.classList.add("details","hidden"),this.detailsPanel.style.top="100px",this.detailsPanel.style.left="100px",this.detailsHeader.classList.add("details-header"),this.detailsText.className="details-text",this.closeButton.className="close-button",this.detailsHeader.append(this.detailsText,this.closeButton),this.closeButton.innerText="x",this.detailsText.innerText="Details";const i=document.createElement("div");i.classList.add("details-footer");const n=document.createElement("button");n.classList.add("details-footer-button"),n.textContent="Close",i.append(n),n.onclick=()=>{this.handleDetailsToggle()},this.detailsPanel.appendChild(this.detailsContainer),this.graphPropertiesTable.classList.add("properties-table"),this.graphTableDiv.classList.add("properties-content","displayNone"),this.graphTableDiv.append(this.graphPropertiesTable),this.emptyDetailsMessage.textContent="Select a single node or edge to see more.",this.emptyDetailsMessage.classList.add("emptyDetails"),this.resizeHandle.classList.add("resizeHandle"),this.detailsContainer.append(this.detailsHeader,this.emptyDetailsMessage,this.graphTableDiv,i),this.expandBtn.innerHTML=s.default.icons["maximize-2"].toSvg(),this.expandBtn.title="Fullscreen",this.expandBtn.onclick=()=>{this.toggleExpand()},this.expandDiv.appendChild(this.expandBtn),t.append(this.expandDiv);const g=new r.ForceDraggableOptions;g.handle=".details-header",g.containment="parent",C.default(this.detailsPanel).draggable(g);const o=new r.ForceResizableOptions;o.handles="s, e, w, se, sw",o.resize=(t,e)=>{this.detailsContainer.style.height=e.size.height.toString()+"px",this.detailsContainer.style.width=e.size.width.toString()+"px"},C.default(this.detailsPanel).resizable(o);const A=document.createElement("div"),I=document.createElement("div"),a=document.createElement("div"),l=document.createElement("button");l.title="Zoom In",l.onclick=()=>{var t,e;null===(t=this.vis)||void 0===t||t.moveTo({scale:2*(null===(e=this.vis)||void 0===e?void 0:e.getScale()),animation:!0})};const c=document.createElement("button");c.title="Zoom Out",c.onclick=()=>{var t,e;null===(t=this.vis)||void 0===t||t.moveTo({scale:.5*(null===(e=this.vis)||void 0===e?void 0:e.getScale()),animation:!0})};const u=document.createElement("button");u.title="Reset Zoom to Fit",u.onclick=()=>{var t;null===(t=this.vis)||void 0===t||t.fit({animation:!0})},l.innerHTML=s.default.icons["zoom-in"].toSvg(),c.innerHTML=s.default.icons["zoom-out"].toSvg(),u.innerHTML=s.default.icons.square.toSvg(),A.classList.add("menu-action","zoom-in-div"),I.classList.add("menu-action","zoom-out-div"),a.classList.add("menu-action","zoom-reset-div"),A.append(l),I.append(c),a.append(u);const d=document.createElement("div");d.classList.add("bottom-right"),d.append(A,a,I),this.networkDiv.append(d)}handleDetailsToggle(){this.detailsBtn.classList.toggle("active"),this.detailsPanel.classList.toggle("hidden")}search(t,e,i,n){if(Array.isArray(e)){for(let g=0;g<e.length;g++)if(this.search(t,e[g],i+1,n))return!0;return!1}if("object"==typeof e){let g=!1;return null==e||Object.entries(e).forEach(e=>{if(g)return!0;0===i?["properties","label"].includes(e[0].toString())?g=this.search(t,e[1],i+1,n):console.log("Not properties or label key, ignoring."):this.excludeIDsFromSearch&&["~id","~start","~end","T.id","Direction.IN","Direction.OUT"].includes(e[0].toString())?console.log("entry[0] is ID property, skipping."):g=this.search(t,e,i+1,n)}),g}return null!=e&&-1!==e.toString().indexOf(t)}toggleExpand(){const t=this.networkDiv,e=document,i=document.documentElement,n=document,g=e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement,o=i.requestFullscreen||i.mozRequestFullScreen||i.webkitRequestFullscreen||i.msRequestFullscreen,r=n.exitFullscreen||n.webkitExitFullscreen||n.msExitFullscreen||n.mozCancelFullScreen,A=t=>{const e=parseInt(this.detailsPanel.style.top),i=parseInt(this.detailsPanel.style.left);if(g)this.detailsPanel.style.left=i/650*window.innerWidth+"px",this.detailsPanel.style.top=e/650*window.innerHeight+"px",this.expandBtn.innerHTML=s.default.icons["minimize-2"].toSvg(),this.expandBtn.title="Exit Fullscreen";else{this.detailsPanel.style.left=i/window.innerWidth*650+"px";const t=e/window.innerHeight*650,n=this.detailsPanel.offsetHeight+t<650?t:t-this.detailsPanel.offsetHeight;this.detailsPanel.style.top=n+"px",console.log(n),this.expandBtn.innerHTML=s.default.icons["maximize-2"].toSvg(),this.expandBtn.title="Fullscreen",document.removeEventListener("fullscreenchange",A)}this.expandBtn.classList.toggle("active")};g?r&&(r.call(document),this.canvasDiv.style.height="600px"):o&&(document.addEventListener("fullscreenchange",A),o.call(t),this.canvasDiv.style.height="100%")}registerWidgetEvents(){let t;t=new MutationObserver((t,e)=>{var i;for(const n of t)"attributes"===n.type&&"width"===n.attributeName&&null===n.oldValue&&null!==n.target[n.attributeName]&&void 0!==n.target[n.attributeName]&&n.target[n.attributeName]>0&&(null===(i=this.vis)||void 0===i||i.fit(),e.disconnect())}),t.observe(this.el,{attributes:!0,childList:!1,subtree:!0})}}e.ForceView=a},function(e,i){e.exports=t},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ForceResizableOptions=e.ForceDraggableOptions=e.ForceNetwork=e.Graph=e.EdgeDataSet=e.NodeDataSet=e.Link=e.IdentifiableDynamicObject=e.Message=e.VisEdge=e.VisNode=e.VisSelection=e.DynamicObject=void 0;const n=i(8),g=i(14);class o{}e.DynamicObject=o;e.VisSelection=class{constructor(t,e){this.nodes=t,this.edges=e}};class r{constructor(t){this.id=t,this.id=t}static fromObject(t){let e=new r(t.id);return e=g.merge({},t,e),e}static mergeObject(t,e){null==e&&(e={});const i=g.clone(t);return g.merge({},i,e)}}e.VisNode=r;class A{constructor(t,e,i,n){this.from=t,this.to=e,this.id=i,this.from=t,this.to=e,this.id=t+":"+e+":"+i,this.label=n}static fromObject(t){const e=t.hasOwnProperty("from")?t.from:"",i=t.hasOwnProperty("to")?t.to:"",n=t.hasOwnProperty("label")?t.label:t.id;let o=new A(e,i,t.id,n);return o=g.merge({},t,o),o}static mergeObject(t,e){null==e&&(e={});const i=g.clone(t);return g.merge({},i,e)}}e.VisEdge=A;e.Message=class{constructor(t,e){this.method=t,this.data=e}};e.IdentifiableDynamicObject=class extends o{constructor(t){super(),this.id=t,this.id=t}};e.Link=class{constructor(t,e,i,n){this.key=t,this.label=e,this.source=i,this.target=n}};class s extends n.DataSet{}e.NodeDataSet=s;class C extends n.DataSet{}e.EdgeDataSet=C;e.Graph=class{constructor(t,e){this.nodes=t,this.links=e}};e.ForceNetwork=class{constructor(t){this.graph=t}};e.ForceDraggableOptions=class{};e.ForceResizableOptions=class{}},function(t,e,i){(function(t,n){var g;
/**
 * @license
 * Lodash <https://lodash.com/>
 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */(function(){var o="Expected a function",r="__lodash_placeholder__",A=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],s="[object Arguments]",C="[object Array]",I="[object Boolean]",a="[object Date]",l="[object Error]",c="[object Function]",u="[object GeneratorFunction]",d="[object Map]",h="[object Number]",p="[object Object]",f="[object RegExp]",v="[object Set]",y="[object String]",m="[object Symbol]",b="[object WeakMap]",x="[object ArrayBuffer]",w="[object DataView]",k="[object Float32Array]",O="[object Float64Array]",D="[object Int8Array]",M="[object Int16Array]",T="[object Int32Array]",_="[object Uint8Array]",N="[object Uint16Array]",j="[object Uint32Array]",E=/\b__p \+= '';/g,B=/\b(__p \+=) '' \+/g,F=/(__e\(.*?\)|\b__t\)) \+\n'';/g,R=/&(?:amp|lt|gt|quot|#39);/g,S=/[&<>"']/g,Z=RegExp(R.source),z=RegExp(S.source),G=/<%-([\s\S]+?)%>/g,L=/<%([\s\S]+?)%>/g,Q=/<%=([\s\S]+?)%>/g,W=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,P=/^\w*$/,U=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Y=/[\\^$.*+?()[\]{}|]/g,V=RegExp(Y.source),X=/^\s+/,H=/\s/,J=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,K=/\{\n\/\* \[wrapped with (.+)\] \*/,q=/,? & /,$=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,tt=/[()=,{}\[\]\/\s]/,et=/\\(\\)?/g,it=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,nt=/\w*$/,gt=/^[-+]0x[0-9a-f]+$/i,ot=/^0b[01]+$/i,rt=/^\[object .+?Constructor\]$/,At=/^0o[0-7]+$/i,st=/^(?:0|[1-9]\d*)$/,Ct=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,It=/($^)/,at=/['\n\r\u2028\u2029\\]/g,lt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ct="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ut="[\\ud800-\\udfff]",dt="["+ct+"]",ht="["+lt+"]",pt="\\d+",ft="[\\u2700-\\u27bf]",vt="[a-z\\xdf-\\xf6\\xf8-\\xff]",yt="[^\\ud800-\\udfff"+ct+pt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",mt="\\ud83c[\\udffb-\\udfff]",bt="[^\\ud800-\\udfff]",xt="(?:\\ud83c[\\udde6-\\uddff]){2}",wt="[\\ud800-\\udbff][\\udc00-\\udfff]",kt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Ot="(?:"+vt+"|"+yt+")",Dt="(?:"+kt+"|"+yt+")",Mt="(?:"+ht+"|"+mt+")"+"?",Tt="[\\ufe0e\\ufe0f]?"+Mt+("(?:\\u200d(?:"+[bt,xt,wt].join("|")+")[\\ufe0e\\ufe0f]?"+Mt+")*"),_t="(?:"+[ft,xt,wt].join("|")+")"+Tt,Nt="(?:"+[bt+ht+"?",ht,xt,wt,ut].join("|")+")",jt=RegExp("['’]","g"),Et=RegExp(ht,"g"),Bt=RegExp(mt+"(?="+mt+")|"+Nt+Tt,"g"),Ft=RegExp([kt+"?"+vt+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[dt,kt,"$"].join("|")+")",Dt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[dt,kt+Ot,"$"].join("|")+")",kt+"?"+Ot+"+(?:['’](?:d|ll|m|re|s|t|ve))?",kt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",pt,_t].join("|"),"g"),Rt=RegExp("[\\u200d\\ud800-\\udfff"+lt+"\\ufe0e\\ufe0f]"),St=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Zt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],zt=-1,Gt={};Gt[k]=Gt[O]=Gt[D]=Gt[M]=Gt[T]=Gt[_]=Gt["[object Uint8ClampedArray]"]=Gt[N]=Gt[j]=!0,Gt[s]=Gt[C]=Gt[x]=Gt[I]=Gt[w]=Gt[a]=Gt[l]=Gt[c]=Gt[d]=Gt[h]=Gt[p]=Gt[f]=Gt[v]=Gt[y]=Gt[b]=!1;var Lt={};Lt[s]=Lt[C]=Lt[x]=Lt[w]=Lt[I]=Lt[a]=Lt[k]=Lt[O]=Lt[D]=Lt[M]=Lt[T]=Lt[d]=Lt[h]=Lt[p]=Lt[f]=Lt[v]=Lt[y]=Lt[m]=Lt[_]=Lt["[object Uint8ClampedArray]"]=Lt[N]=Lt[j]=!0,Lt[l]=Lt[c]=Lt[b]=!1;var Qt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Wt=parseFloat,Pt=parseInt,Ut="object"==typeof t&&t&&t.Object===Object&&t,Yt="object"==typeof self&&self&&self.Object===Object&&self,Vt=Ut||Yt||Function("return this")(),Xt=e&&!e.nodeType&&e,Ht=Xt&&"object"==typeof n&&n&&!n.nodeType&&n,Jt=Ht&&Ht.exports===Xt,Kt=Jt&&Ut.process,qt=function(){try{var t=Ht&&Ht.require&&Ht.require("util").types;return t||Kt&&Kt.binding&&Kt.binding("util")}catch(t){}}(),$t=qt&&qt.isArrayBuffer,te=qt&&qt.isDate,ee=qt&&qt.isMap,ie=qt&&qt.isRegExp,ne=qt&&qt.isSet,ge=qt&&qt.isTypedArray;function oe(t,e,i){switch(i.length){case 0:return t.call(e);case 1:return t.call(e,i[0]);case 2:return t.call(e,i[0],i[1]);case 3:return t.call(e,i[0],i[1],i[2])}return t.apply(e,i)}function re(t,e,i,n){for(var g=-1,o=null==t?0:t.length;++g<o;){var r=t[g];e(n,r,i(r),t)}return n}function Ae(t,e){for(var i=-1,n=null==t?0:t.length;++i<n&&!1!==e(t[i],i,t););return t}function se(t,e){for(var i=null==t?0:t.length;i--&&!1!==e(t[i],i,t););return t}function Ce(t,e){for(var i=-1,n=null==t?0:t.length;++i<n;)if(!e(t[i],i,t))return!1;return!0}function Ie(t,e){for(var i=-1,n=null==t?0:t.length,g=0,o=[];++i<n;){var r=t[i];e(r,i,t)&&(o[g++]=r)}return o}function ae(t,e){return!!(null==t?0:t.length)&&me(t,e,0)>-1}function le(t,e,i){for(var n=-1,g=null==t?0:t.length;++n<g;)if(i(e,t[n]))return!0;return!1}function ce(t,e){for(var i=-1,n=null==t?0:t.length,g=Array(n);++i<n;)g[i]=e(t[i],i,t);return g}function ue(t,e){for(var i=-1,n=e.length,g=t.length;++i<n;)t[g+i]=e[i];return t}function de(t,e,i,n){var g=-1,o=null==t?0:t.length;for(n&&o&&(i=t[++g]);++g<o;)i=e(i,t[g],g,t);return i}function he(t,e,i,n){var g=null==t?0:t.length;for(n&&g&&(i=t[--g]);g--;)i=e(i,t[g],g,t);return i}function pe(t,e){for(var i=-1,n=null==t?0:t.length;++i<n;)if(e(t[i],i,t))return!0;return!1}var fe=ke("length");function ve(t,e,i){var n;return i(t,(function(t,i,g){if(e(t,i,g))return n=i,!1})),n}function ye(t,e,i,n){for(var g=t.length,o=i+(n?1:-1);n?o--:++o<g;)if(e(t[o],o,t))return o;return-1}function me(t,e,i){return e==e?function(t,e,i){var n=i-1,g=t.length;for(;++n<g;)if(t[n]===e)return n;return-1}(t,e,i):ye(t,xe,i)}function be(t,e,i,n){for(var g=i-1,o=t.length;++g<o;)if(n(t[g],e))return g;return-1}function xe(t){return t!=t}function we(t,e){var i=null==t?0:t.length;return i?Me(t,e)/i:NaN}function ke(t){return function(e){return null==e?void 0:e[t]}}function Oe(t){return function(e){return null==t?void 0:t[e]}}function De(t,e,i,n,g){return g(t,(function(t,g,o){i=n?(n=!1,t):e(i,t,g,o)})),i}function Me(t,e){for(var i,n=-1,g=t.length;++n<g;){var o=e(t[n]);void 0!==o&&(i=void 0===i?o:i+o)}return i}function Te(t,e){for(var i=-1,n=Array(t);++i<t;)n[i]=e(i);return n}function _e(t){return t?t.slice(0,Xe(t)+1).replace(X,""):t}function Ne(t){return function(e){return t(e)}}function je(t,e){return ce(e,(function(e){return t[e]}))}function Ee(t,e){return t.has(e)}function Be(t,e){for(var i=-1,n=t.length;++i<n&&me(e,t[i],0)>-1;);return i}function Fe(t,e){for(var i=t.length;i--&&me(e,t[i],0)>-1;);return i}function Re(t,e){for(var i=t.length,n=0;i--;)t[i]===e&&++n;return n}var Se=Oe({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","Ĳ":"IJ","ĳ":"ij","Œ":"Oe","œ":"oe","ŉ":"'n","ſ":"s"}),Ze=Oe({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function ze(t){return"\\"+Qt[t]}function Ge(t){return Rt.test(t)}function Le(t){var e=-1,i=Array(t.size);return t.forEach((function(t,n){i[++e]=[n,t]})),i}function Qe(t,e){return function(i){return t(e(i))}}function We(t,e){for(var i=-1,n=t.length,g=0,o=[];++i<n;){var A=t[i];A!==e&&A!==r||(t[i]=r,o[g++]=i)}return o}function Pe(t){var e=-1,i=Array(t.size);return t.forEach((function(t){i[++e]=t})),i}function Ue(t){var e=-1,i=Array(t.size);return t.forEach((function(t){i[++e]=[t,t]})),i}function Ye(t){return Ge(t)?function(t){var e=Bt.lastIndex=0;for(;Bt.test(t);)++e;return e}(t):fe(t)}function Ve(t){return Ge(t)?function(t){return t.match(Bt)||[]}(t):function(t){return t.split("")}(t)}function Xe(t){for(var e=t.length;e--&&H.test(t.charAt(e)););return e}var He=Oe({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var Je=function t(e){var i,n=(e=null==e?Vt:Je.defaults(Vt.Object(),e,Je.pick(Vt,Zt))).Array,g=e.Date,H=e.Error,lt=e.Function,ct=e.Math,ut=e.Object,dt=e.RegExp,ht=e.String,pt=e.TypeError,ft=n.prototype,vt=lt.prototype,yt=ut.prototype,mt=e["__core-js_shared__"],bt=vt.toString,xt=yt.hasOwnProperty,wt=0,kt=(i=/[^.]+$/.exec(mt&&mt.keys&&mt.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"",Ot=yt.toString,Dt=bt.call(ut),Mt=Vt._,Tt=dt("^"+bt.call(xt).replace(Y,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_t=Jt?e.Buffer:void 0,Nt=e.Symbol,Bt=e.Uint8Array,Rt=_t?_t.allocUnsafe:void 0,Qt=Qe(ut.getPrototypeOf,ut),Ut=ut.create,Yt=yt.propertyIsEnumerable,Xt=ft.splice,Ht=Nt?Nt.isConcatSpreadable:void 0,Kt=Nt?Nt.iterator:void 0,qt=Nt?Nt.toStringTag:void 0,fe=function(){try{var t=to(ut,"defineProperty");return t({},"",{}),t}catch(t){}}(),Oe=e.clearTimeout!==Vt.clearTimeout&&e.clearTimeout,Ke=g&&g.now!==Vt.Date.now&&g.now,qe=e.setTimeout!==Vt.setTimeout&&e.setTimeout,$e=ct.ceil,ti=ct.floor,ei=ut.getOwnPropertySymbols,ii=_t?_t.isBuffer:void 0,ni=e.isFinite,gi=ft.join,oi=Qe(ut.keys,ut),ri=ct.max,Ai=ct.min,si=g.now,Ci=e.parseInt,Ii=ct.random,ai=ft.reverse,li=to(e,"DataView"),ci=to(e,"Map"),ui=to(e,"Promise"),di=to(e,"Set"),hi=to(e,"WeakMap"),pi=to(ut,"create"),fi=hi&&new hi,vi={},yi=Mo(li),mi=Mo(ci),bi=Mo(ui),xi=Mo(di),wi=Mo(hi),ki=Nt?Nt.prototype:void 0,Oi=ki?ki.valueOf:void 0,Di=ki?ki.toString:void 0;function Mi(t){if(Ur(t)&&!Br(t)&&!(t instanceof ji)){if(t instanceof Ni)return t;if(xt.call(t,"__wrapped__"))return To(t)}return new Ni(t)}var Ti=function(){function t(){}return function(e){if(!Pr(e))return{};if(Ut)return Ut(e);t.prototype=e;var i=new t;return t.prototype=void 0,i}}();function _i(){}function Ni(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}function ji(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Ei(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}function Bi(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}function Fi(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}function Ri(t){var e=-1,i=null==t?0:t.length;for(this.__data__=new Fi;++e<i;)this.add(t[e])}function Si(t){var e=this.__data__=new Bi(t);this.size=e.size}function Zi(t,e){var i=Br(t),n=!i&&Er(t),g=!i&&!n&&Zr(t),o=!i&&!n&&!g&&$r(t),r=i||n||g||o,A=r?Te(t.length,ht):[],s=A.length;for(var C in t)!e&&!xt.call(t,C)||r&&("length"==C||g&&("offset"==C||"parent"==C)||o&&("buffer"==C||"byteLength"==C||"byteOffset"==C)||Ao(C,s))||A.push(C);return A}function zi(t){var e=t.length;return e?t[Sn(0,e-1)]:void 0}function Gi(t,e){return ko(fg(t),Hi(e,0,t.length))}function Li(t){return ko(fg(t))}function Qi(t,e,i){(void 0!==i&&!_r(t[e],i)||void 0===i&&!(e in t))&&Vi(t,e,i)}function Wi(t,e,i){var n=t[e];xt.call(t,e)&&_r(n,i)&&(void 0!==i||e in t)||Vi(t,e,i)}function Pi(t,e){for(var i=t.length;i--;)if(_r(t[i][0],e))return i;return-1}function Ui(t,e,i,n){return tn(t,(function(t,g,o){e(n,t,i(t),o)})),n}function Yi(t,e){return t&&vg(e,mA(e),t)}function Vi(t,e,i){"__proto__"==e&&fe?fe(t,e,{configurable:!0,enumerable:!0,value:i,writable:!0}):t[e]=i}function Xi(t,e){for(var i=-1,g=e.length,o=n(g),r=null==t;++i<g;)o[i]=r?void 0:hA(t,e[i]);return o}function Hi(t,e,i){return t==t&&(void 0!==i&&(t=t<=i?t:i),void 0!==e&&(t=t>=e?t:e)),t}function Ji(t,e,i,n,g,o){var r,A=1&e,C=2&e,l=4&e;if(i&&(r=g?i(t,n,g,o):i(t)),void 0!==r)return r;if(!Pr(t))return t;var b=Br(t);if(b){if(r=function(t){var e=t.length,i=new t.constructor(e);e&&"string"==typeof t[0]&&xt.call(t,"index")&&(i.index=t.index,i.input=t.input);return i}(t),!A)return fg(t,r)}else{var E=no(t),B=E==c||E==u;if(Zr(t))return lg(t,A);if(E==p||E==s||B&&!g){if(r=C||B?{}:oo(t),!A)return C?function(t,e){return vg(t,io(t),e)}(t,function(t,e){return t&&vg(e,bA(e),t)}(r,t)):function(t,e){return vg(t,eo(t),e)}(t,Yi(r,t))}else{if(!Lt[E])return g?t:{};r=function(t,e,i){var n=t.constructor;switch(e){case x:return cg(t);case I:case a:return new n(+t);case w:return function(t,e){var i=e?cg(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.byteLength)}(t,i);case k:case O:case D:case M:case T:case _:case"[object Uint8ClampedArray]":case N:case j:return ug(t,i);case d:return new n;case h:case y:return new n(t);case f:return function(t){var e=new t.constructor(t.source,nt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case v:return new n;case m:return g=t,Oi?ut(Oi.call(g)):{}}var g}(t,E,A)}}o||(o=new Si);var F=o.get(t);if(F)return F;o.set(t,r),Jr(t)?t.forEach((function(n){r.add(Ji(n,e,i,n,t,o))})):Yr(t)&&t.forEach((function(n,g){r.set(g,Ji(n,e,i,g,t,o))}));var R=b?void 0:(l?C?Vg:Yg:C?bA:mA)(t);return Ae(R||t,(function(n,g){R&&(n=t[g=n]),Wi(r,g,Ji(n,e,i,g,t,o))})),r}function Ki(t,e,i){var n=i.length;if(null==t)return!n;for(t=ut(t);n--;){var g=i[n],o=e[g],r=t[g];if(void 0===r&&!(g in t)||!o(r))return!1}return!0}function qi(t,e,i){if("function"!=typeof t)throw new pt(o);return mo((function(){t.apply(void 0,i)}),e)}function $i(t,e,i,n){var g=-1,o=ae,r=!0,A=t.length,s=[],C=e.length;if(!A)return s;i&&(e=ce(e,Ne(i))),n?(o=le,r=!1):e.length>=200&&(o=Ee,r=!1,e=new Ri(e));t:for(;++g<A;){var I=t[g],a=null==i?I:i(I);if(I=n||0!==I?I:0,r&&a==a){for(var l=C;l--;)if(e[l]===a)continue t;s.push(I)}else o(e,a,n)||s.push(I)}return s}Mi.templateSettings={escape:G,evaluate:L,interpolate:Q,variable:"",imports:{_:Mi}},Mi.prototype=_i.prototype,Mi.prototype.constructor=Mi,Ni.prototype=Ti(_i.prototype),Ni.prototype.constructor=Ni,ji.prototype=Ti(_i.prototype),ji.prototype.constructor=ji,Ei.prototype.clear=function(){this.__data__=pi?pi(null):{},this.size=0},Ei.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Ei.prototype.get=function(t){var e=this.__data__;if(pi){var i=e[t];return"__lodash_hash_undefined__"===i?void 0:i}return xt.call(e,t)?e[t]:void 0},Ei.prototype.has=function(t){var e=this.__data__;return pi?void 0!==e[t]:xt.call(e,t)},Ei.prototype.set=function(t,e){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=pi&&void 0===e?"__lodash_hash_undefined__":e,this},Bi.prototype.clear=function(){this.__data__=[],this.size=0},Bi.prototype.delete=function(t){var e=this.__data__,i=Pi(e,t);return!(i<0)&&(i==e.length-1?e.pop():Xt.call(e,i,1),--this.size,!0)},Bi.prototype.get=function(t){var e=this.__data__,i=Pi(e,t);return i<0?void 0:e[i][1]},Bi.prototype.has=function(t){return Pi(this.__data__,t)>-1},Bi.prototype.set=function(t,e){var i=this.__data__,n=Pi(i,t);return n<0?(++this.size,i.push([t,e])):i[n][1]=e,this},Fi.prototype.clear=function(){this.size=0,this.__data__={hash:new Ei,map:new(ci||Bi),string:new Ei}},Fi.prototype.delete=function(t){var e=qg(this,t).delete(t);return this.size-=e?1:0,e},Fi.prototype.get=function(t){return qg(this,t).get(t)},Fi.prototype.has=function(t){return qg(this,t).has(t)},Fi.prototype.set=function(t,e){var i=qg(this,t),n=i.size;return i.set(t,e),this.size+=i.size==n?0:1,this},Ri.prototype.add=Ri.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Ri.prototype.has=function(t){return this.__data__.has(t)},Si.prototype.clear=function(){this.__data__=new Bi,this.size=0},Si.prototype.delete=function(t){var e=this.__data__,i=e.delete(t);return this.size=e.size,i},Si.prototype.get=function(t){return this.__data__.get(t)},Si.prototype.has=function(t){return this.__data__.has(t)},Si.prototype.set=function(t,e){var i=this.__data__;if(i instanceof Bi){var n=i.__data__;if(!ci||n.length<199)return n.push([t,e]),this.size=++i.size,this;i=this.__data__=new Fi(n)}return i.set(t,e),this.size=i.size,this};var tn=bg(Cn),en=bg(In,!0);function nn(t,e){var i=!0;return tn(t,(function(t,n,g){return i=!!e(t,n,g)})),i}function gn(t,e,i){for(var n=-1,g=t.length;++n<g;){var o=t[n],r=e(o);if(null!=r&&(void 0===A?r==r&&!qr(r):i(r,A)))var A=r,s=o}return s}function on(t,e){var i=[];return tn(t,(function(t,n,g){e(t,n,g)&&i.push(t)})),i}function rn(t,e,i,n,g){var o=-1,r=t.length;for(i||(i=ro),g||(g=[]);++o<r;){var A=t[o];e>0&&i(A)?e>1?rn(A,e-1,i,n,g):ue(g,A):n||(g[g.length]=A)}return g}var An=xg(),sn=xg(!0);function Cn(t,e){return t&&An(t,e,mA)}function In(t,e){return t&&sn(t,e,mA)}function an(t,e){return Ie(e,(function(e){return Lr(t[e])}))}function ln(t,e){for(var i=0,n=(e=sg(e,t)).length;null!=t&&i<n;)t=t[Do(e[i++])];return i&&i==n?t:void 0}function cn(t,e,i){var n=e(t);return Br(t)?n:ue(n,i(t))}function un(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":qt&&qt in ut(t)?function(t){var e=xt.call(t,qt),i=t[qt];try{t[qt]=void 0;var n=!0}catch(t){}var g=Ot.call(t);n&&(e?t[qt]=i:delete t[qt]);return g}(t):function(t){return Ot.call(t)}(t)}function dn(t,e){return t>e}function hn(t,e){return null!=t&&xt.call(t,e)}function pn(t,e){return null!=t&&e in ut(t)}function fn(t,e,i){for(var g=i?le:ae,o=t[0].length,r=t.length,A=r,s=n(r),C=1/0,I=[];A--;){var a=t[A];A&&e&&(a=ce(a,Ne(e))),C=Ai(a.length,C),s[A]=!i&&(e||o>=120&&a.length>=120)?new Ri(A&&a):void 0}a=t[0];var l=-1,c=s[0];t:for(;++l<o&&I.length<C;){var u=a[l],d=e?e(u):u;if(u=i||0!==u?u:0,!(c?Ee(c,d):g(I,d,i))){for(A=r;--A;){var h=s[A];if(!(h?Ee(h,d):g(t[A],d,i)))continue t}c&&c.push(d),I.push(u)}}return I}function vn(t,e,i){var n=null==(t=po(t,e=sg(e,t)))?t:t[Do(Go(e))];return null==n?void 0:oe(n,t,i)}function yn(t){return Ur(t)&&un(t)==s}function mn(t,e,i,n,g){return t===e||(null==t||null==e||!Ur(t)&&!Ur(e)?t!=t&&e!=e:function(t,e,i,n,g,o){var r=Br(t),A=Br(e),c=r?C:no(t),u=A?C:no(e),b=(c=c==s?p:c)==p,k=(u=u==s?p:u)==p,O=c==u;if(O&&Zr(t)){if(!Zr(e))return!1;r=!0,b=!1}if(O&&!b)return o||(o=new Si),r||$r(t)?Pg(t,e,i,n,g,o):function(t,e,i,n,g,o,r){switch(i){case w:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case x:return!(t.byteLength!=e.byteLength||!o(new Bt(t),new Bt(e)));case I:case a:case h:return _r(+t,+e);case l:return t.name==e.name&&t.message==e.message;case f:case y:return t==e+"";case d:var A=Le;case v:var s=1&n;if(A||(A=Pe),t.size!=e.size&&!s)return!1;var C=r.get(t);if(C)return C==e;n|=2,r.set(t,e);var c=Pg(A(t),A(e),n,g,o,r);return r.delete(t),c;case m:if(Oi)return Oi.call(t)==Oi.call(e)}return!1}(t,e,c,i,n,g,o);if(!(1&i)){var D=b&&xt.call(t,"__wrapped__"),M=k&&xt.call(e,"__wrapped__");if(D||M){var T=D?t.value():t,_=M?e.value():e;return o||(o=new Si),g(T,_,i,n,o)}}if(!O)return!1;return o||(o=new Si),function(t,e,i,n,g,o){var r=1&i,A=Yg(t),s=A.length,C=Yg(e).length;if(s!=C&&!r)return!1;var I=s;for(;I--;){var a=A[I];if(!(r?a in e:xt.call(e,a)))return!1}var l=o.get(t),c=o.get(e);if(l&&c)return l==e&&c==t;var u=!0;o.set(t,e),o.set(e,t);var d=r;for(;++I<s;){a=A[I];var h=t[a],p=e[a];if(n)var f=r?n(p,h,a,e,t,o):n(h,p,a,t,e,o);if(!(void 0===f?h===p||g(h,p,i,n,o):f)){u=!1;break}d||(d="constructor"==a)}if(u&&!d){var v=t.constructor,y=e.constructor;v==y||!("constructor"in t)||!("constructor"in e)||"function"==typeof v&&v instanceof v&&"function"==typeof y&&y instanceof y||(u=!1)}return o.delete(t),o.delete(e),u}(t,e,i,n,g,o)}(t,e,i,n,mn,g))}function bn(t,e,i,n){var g=i.length,o=g,r=!n;if(null==t)return!o;for(t=ut(t);g--;){var A=i[g];if(r&&A[2]?A[1]!==t[A[0]]:!(A[0]in t))return!1}for(;++g<o;){var s=(A=i[g])[0],C=t[s],I=A[1];if(r&&A[2]){if(void 0===C&&!(s in t))return!1}else{var a=new Si;if(n)var l=n(C,I,s,t,e,a);if(!(void 0===l?mn(I,C,3,n,a):l))return!1}}return!0}function xn(t){return!(!Pr(t)||(e=t,kt&&kt in e))&&(Lr(t)?Tt:rt).test(Mo(t));var e}function wn(t){return"function"==typeof t?t:null==t?VA:"object"==typeof t?Br(t)?_n(t[0],t[1]):Tn(t):is(t)}function kn(t){if(!lo(t))return oi(t);var e=[];for(var i in ut(t))xt.call(t,i)&&"constructor"!=i&&e.push(i);return e}function On(t){if(!Pr(t))return function(t){var e=[];if(null!=t)for(var i in ut(t))e.push(i);return e}(t);var e=lo(t),i=[];for(var n in t)("constructor"!=n||!e&&xt.call(t,n))&&i.push(n);return i}function Dn(t,e){return t<e}function Mn(t,e){var i=-1,g=Rr(t)?n(t.length):[];return tn(t,(function(t,n,o){g[++i]=e(t,n,o)})),g}function Tn(t){var e=$g(t);return 1==e.length&&e[0][2]?uo(e[0][0],e[0][1]):function(i){return i===t||bn(i,t,e)}}function _n(t,e){return Co(t)&&co(e)?uo(Do(t),e):function(i){var n=hA(i,t);return void 0===n&&n===e?pA(i,t):mn(e,n,3)}}function Nn(t,e,i,n,g){t!==e&&An(e,(function(o,r){if(g||(g=new Si),Pr(o))!function(t,e,i,n,g,o,r){var A=vo(t,i),s=vo(e,i),C=r.get(s);if(C)return void Qi(t,i,C);var I=o?o(A,s,i+"",t,e,r):void 0,a=void 0===I;if(a){var l=Br(s),c=!l&&Zr(s),u=!l&&!c&&$r(s);I=s,l||c||u?Br(A)?I=A:Sr(A)?I=fg(A):c?(a=!1,I=lg(s,!0)):u?(a=!1,I=ug(s,!0)):I=[]:Xr(s)||Er(s)?(I=A,Er(A)?I=AA(A):Pr(A)&&!Lr(A)||(I=oo(s))):a=!1}a&&(r.set(s,I),g(I,s,n,o,r),r.delete(s));Qi(t,i,I)}(t,e,r,i,Nn,n,g);else{var A=n?n(vo(t,r),o,r+"",t,e,g):void 0;void 0===A&&(A=o),Qi(t,r,A)}}),bA)}function jn(t,e){var i=t.length;if(i)return Ao(e+=e<0?i:0,i)?t[e]:void 0}function En(t,e,i){e=e.length?ce(e,(function(t){return Br(t)?function(e){return ln(e,1===t.length?t[0]:t)}:t})):[VA];var n=-1;return e=ce(e,Ne(Kg())),function(t,e){var i=t.length;for(t.sort(e);i--;)t[i]=t[i].value;return t}(Mn(t,(function(t,i,g){return{criteria:ce(e,(function(e){return e(t)})),index:++n,value:t}})),(function(t,e){return function(t,e,i){var n=-1,g=t.criteria,o=e.criteria,r=g.length,A=i.length;for(;++n<r;){var s=dg(g[n],o[n]);if(s){if(n>=A)return s;var C=i[n];return s*("desc"==C?-1:1)}}return t.index-e.index}(t,e,i)}))}function Bn(t,e,i){for(var n=-1,g=e.length,o={};++n<g;){var r=e[n],A=ln(t,r);i(A,r)&&Qn(o,sg(r,t),A)}return o}function Fn(t,e,i,n){var g=n?be:me,o=-1,r=e.length,A=t;for(t===e&&(e=fg(e)),i&&(A=ce(t,Ne(i)));++o<r;)for(var s=0,C=e[o],I=i?i(C):C;(s=g(A,I,s,n))>-1;)A!==t&&Xt.call(A,s,1),Xt.call(t,s,1);return t}function Rn(t,e){for(var i=t?e.length:0,n=i-1;i--;){var g=e[i];if(i==n||g!==o){var o=g;Ao(g)?Xt.call(t,g,1):tg(t,g)}}return t}function Sn(t,e){return t+ti(Ii()*(e-t+1))}function Zn(t,e){var i="";if(!t||e<1||e>9007199254740991)return i;do{e%2&&(i+=t),(e=ti(e/2))&&(t+=t)}while(e);return i}function zn(t,e){return bo(ho(t,e,VA),t+"")}function Gn(t){return zi(_A(t))}function Ln(t,e){var i=_A(t);return ko(i,Hi(e,0,i.length))}function Qn(t,e,i,n){if(!Pr(t))return t;for(var g=-1,o=(e=sg(e,t)).length,r=o-1,A=t;null!=A&&++g<o;){var s=Do(e[g]),C=i;if("__proto__"===s||"constructor"===s||"prototype"===s)return t;if(g!=r){var I=A[s];void 0===(C=n?n(I,s,A):void 0)&&(C=Pr(I)?I:Ao(e[g+1])?[]:{})}Wi(A,s,C),A=A[s]}return t}var Wn=fi?function(t,e){return fi.set(t,e),t}:VA,Pn=fe?function(t,e){return fe(t,"toString",{configurable:!0,enumerable:!1,value:PA(e),writable:!0})}:VA;function Un(t){return ko(_A(t))}function Yn(t,e,i){var g=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(i=i>o?o:i)<0&&(i+=o),o=e>i?0:i-e>>>0,e>>>=0;for(var r=n(o);++g<o;)r[g]=t[g+e];return r}function Vn(t,e){var i;return tn(t,(function(t,n,g){return!(i=e(t,n,g))})),!!i}function Xn(t,e,i){var n=0,g=null==t?n:t.length;if("number"==typeof e&&e==e&&g<=2147483647){for(;n<g;){var o=n+g>>>1,r=t[o];null!==r&&!qr(r)&&(i?r<=e:r<e)?n=o+1:g=o}return g}return Hn(t,e,VA,i)}function Hn(t,e,i,n){var g=0,o=null==t?0:t.length;if(0===o)return 0;for(var r=(e=i(e))!=e,A=null===e,s=qr(e),C=void 0===e;g<o;){var I=ti((g+o)/2),a=i(t[I]),l=void 0!==a,c=null===a,u=a==a,d=qr(a);if(r)var h=n||u;else h=C?u&&(n||l):A?u&&l&&(n||!c):s?u&&l&&!c&&(n||!d):!c&&!d&&(n?a<=e:a<e);h?g=I+1:o=I}return Ai(o,4294967294)}function Jn(t,e){for(var i=-1,n=t.length,g=0,o=[];++i<n;){var r=t[i],A=e?e(r):r;if(!i||!_r(A,s)){var s=A;o[g++]=0===r?0:r}}return o}function Kn(t){return"number"==typeof t?t:qr(t)?NaN:+t}function qn(t){if("string"==typeof t)return t;if(Br(t))return ce(t,qn)+"";if(qr(t))return Di?Di.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function $n(t,e,i){var n=-1,g=ae,o=t.length,r=!0,A=[],s=A;if(i)r=!1,g=le;else if(o>=200){var C=e?null:Zg(t);if(C)return Pe(C);r=!1,g=Ee,s=new Ri}else s=e?[]:A;t:for(;++n<o;){var I=t[n],a=e?e(I):I;if(I=i||0!==I?I:0,r&&a==a){for(var l=s.length;l--;)if(s[l]===a)continue t;e&&s.push(a),A.push(I)}else g(s,a,i)||(s!==A&&s.push(a),A.push(I))}return A}function tg(t,e){return null==(t=po(t,e=sg(e,t)))||delete t[Do(Go(e))]}function eg(t,e,i,n){return Qn(t,e,i(ln(t,e)),n)}function ig(t,e,i,n){for(var g=t.length,o=n?g:-1;(n?o--:++o<g)&&e(t[o],o,t););return i?Yn(t,n?0:o,n?o+1:g):Yn(t,n?o+1:0,n?g:o)}function ng(t,e){var i=t;return i instanceof ji&&(i=i.value()),de(e,(function(t,e){return e.func.apply(e.thisArg,ue([t],e.args))}),i)}function gg(t,e,i){var g=t.length;if(g<2)return g?$n(t[0]):[];for(var o=-1,r=n(g);++o<g;)for(var A=t[o],s=-1;++s<g;)s!=o&&(r[o]=$i(r[o]||A,t[s],e,i));return $n(rn(r,1),e,i)}function og(t,e,i){for(var n=-1,g=t.length,o=e.length,r={};++n<g;){var A=n<o?e[n]:void 0;i(r,t[n],A)}return r}function rg(t){return Sr(t)?t:[]}function Ag(t){return"function"==typeof t?t:VA}function sg(t,e){return Br(t)?t:Co(t,e)?[t]:Oo(sA(t))}var Cg=zn;function Ig(t,e,i){var n=t.length;return i=void 0===i?n:i,!e&&i>=n?t:Yn(t,e,i)}var ag=Oe||function(t){return Vt.clearTimeout(t)};function lg(t,e){if(e)return t.slice();var i=t.length,n=Rt?Rt(i):new t.constructor(i);return t.copy(n),n}function cg(t){var e=new t.constructor(t.byteLength);return new Bt(e).set(new Bt(t)),e}function ug(t,e){var i=e?cg(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.length)}function dg(t,e){if(t!==e){var i=void 0!==t,n=null===t,g=t==t,o=qr(t),r=void 0!==e,A=null===e,s=e==e,C=qr(e);if(!A&&!C&&!o&&t>e||o&&r&&s&&!A&&!C||n&&r&&s||!i&&s||!g)return 1;if(!n&&!o&&!C&&t<e||C&&i&&g&&!n&&!o||A&&i&&g||!r&&g||!s)return-1}return 0}function hg(t,e,i,g){for(var o=-1,r=t.length,A=i.length,s=-1,C=e.length,I=ri(r-A,0),a=n(C+I),l=!g;++s<C;)a[s]=e[s];for(;++o<A;)(l||o<r)&&(a[i[o]]=t[o]);for(;I--;)a[s++]=t[o++];return a}function pg(t,e,i,g){for(var o=-1,r=t.length,A=-1,s=i.length,C=-1,I=e.length,a=ri(r-s,0),l=n(a+I),c=!g;++o<a;)l[o]=t[o];for(var u=o;++C<I;)l[u+C]=e[C];for(;++A<s;)(c||o<r)&&(l[u+i[A]]=t[o++]);return l}function fg(t,e){var i=-1,g=t.length;for(e||(e=n(g));++i<g;)e[i]=t[i];return e}function vg(t,e,i,n){var g=!i;i||(i={});for(var o=-1,r=e.length;++o<r;){var A=e[o],s=n?n(i[A],t[A],A,i,t):void 0;void 0===s&&(s=t[A]),g?Vi(i,A,s):Wi(i,A,s)}return i}function yg(t,e){return function(i,n){var g=Br(i)?re:Ui,o=e?e():{};return g(i,t,Kg(n,2),o)}}function mg(t){return zn((function(e,i){var n=-1,g=i.length,o=g>1?i[g-1]:void 0,r=g>2?i[2]:void 0;for(o=t.length>3&&"function"==typeof o?(g--,o):void 0,r&&so(i[0],i[1],r)&&(o=g<3?void 0:o,g=1),e=ut(e);++n<g;){var A=i[n];A&&t(e,A,n,o)}return e}))}function bg(t,e){return function(i,n){if(null==i)return i;if(!Rr(i))return t(i,n);for(var g=i.length,o=e?g:-1,r=ut(i);(e?o--:++o<g)&&!1!==n(r[o],o,r););return i}}function xg(t){return function(e,i,n){for(var g=-1,o=ut(e),r=n(e),A=r.length;A--;){var s=r[t?A:++g];if(!1===i(o[s],s,o))break}return e}}function wg(t){return function(e){var i=Ge(e=sA(e))?Ve(e):void 0,n=i?i[0]:e.charAt(0),g=i?Ig(i,1).join(""):e.slice(1);return n[t]()+g}}function kg(t){return function(e){return de(LA(EA(e).replace(jt,"")),t,"")}}function Og(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var i=Ti(t.prototype),n=t.apply(i,e);return Pr(n)?n:i}}function Dg(t){return function(e,i,n){var g=ut(e);if(!Rr(e)){var o=Kg(i,3);e=mA(e),i=function(t){return o(g[t],t,g)}}var r=t(e,i,n);return r>-1?g[o?e[r]:r]:void 0}}function Mg(t){return Ug((function(e){var i=e.length,n=i,g=Ni.prototype.thru;for(t&&e.reverse();n--;){var r=e[n];if("function"!=typeof r)throw new pt(o);if(g&&!A&&"wrapper"==Hg(r))var A=new Ni([],!0)}for(n=A?n:i;++n<i;){var s=Hg(r=e[n]),C="wrapper"==s?Xg(r):void 0;A=C&&Io(C[0])&&424==C[1]&&!C[4].length&&1==C[9]?A[Hg(C[0])].apply(A,C[3]):1==r.length&&Io(r)?A[s]():A.thru(r)}return function(){var t=arguments,n=t[0];if(A&&1==t.length&&Br(n))return A.plant(n).value();for(var g=0,o=i?e[g].apply(this,t):n;++g<i;)o=e[g].call(this,o);return o}}))}function Tg(t,e,i,g,o,r,A,s,C,I){var a=128&e,l=1&e,c=2&e,u=24&e,d=512&e,h=c?void 0:Og(t);return function p(){for(var f=arguments.length,v=n(f),y=f;y--;)v[y]=arguments[y];if(u)var m=Jg(p),b=Re(v,m);if(g&&(v=hg(v,g,o,u)),r&&(v=pg(v,r,A,u)),f-=b,u&&f<I){var x=We(v,m);return Rg(t,e,Tg,p.placeholder,i,v,x,s,C,I-f)}var w=l?i:this,k=c?w[t]:t;return f=v.length,s?v=fo(v,s):d&&f>1&&v.reverse(),a&&C<f&&(v.length=C),this&&this!==Vt&&this instanceof p&&(k=h||Og(k)),k.apply(w,v)}}function _g(t,e){return function(i,n){return function(t,e,i,n){return Cn(t,(function(t,g,o){e(n,i(t),g,o)})),n}(i,t,e(n),{})}}function Ng(t,e){return function(i,n){var g;if(void 0===i&&void 0===n)return e;if(void 0!==i&&(g=i),void 0!==n){if(void 0===g)return n;"string"==typeof i||"string"==typeof n?(i=qn(i),n=qn(n)):(i=Kn(i),n=Kn(n)),g=t(i,n)}return g}}function jg(t){return Ug((function(e){return e=ce(e,Ne(Kg())),zn((function(i){var n=this;return t(e,(function(t){return oe(t,n,i)}))}))}))}function Eg(t,e){var i=(e=void 0===e?" ":qn(e)).length;if(i<2)return i?Zn(e,t):e;var n=Zn(e,$e(t/Ye(e)));return Ge(e)?Ig(Ve(n),0,t).join(""):n.slice(0,t)}function Bg(t){return function(e,i,g){return g&&"number"!=typeof g&&so(e,i,g)&&(i=g=void 0),e=nA(e),void 0===i?(i=e,e=0):i=nA(i),function(t,e,i,g){for(var o=-1,r=ri($e((e-t)/(i||1)),0),A=n(r);r--;)A[g?r:++o]=t,t+=i;return A}(e,i,g=void 0===g?e<i?1:-1:nA(g),t)}}function Fg(t){return function(e,i){return"string"==typeof e&&"string"==typeof i||(e=rA(e),i=rA(i)),t(e,i)}}function Rg(t,e,i,n,g,o,r,A,s,C){var I=8&e;e|=I?32:64,4&(e&=~(I?64:32))||(e&=-4);var a=[t,e,g,I?o:void 0,I?r:void 0,I?void 0:o,I?void 0:r,A,s,C],l=i.apply(void 0,a);return Io(t)&&yo(l,a),l.placeholder=n,xo(l,t,e)}function Sg(t){var e=ct[t];return function(t,i){if(t=rA(t),(i=null==i?0:Ai(gA(i),292))&&ni(t)){var n=(sA(t)+"e").split("e");return+((n=(sA(e(n[0]+"e"+(+n[1]+i)))+"e").split("e"))[0]+"e"+(+n[1]-i))}return e(t)}}var Zg=di&&1/Pe(new di([,-0]))[1]==1/0?function(t){return new di(t)}:qA;function zg(t){return function(e){var i=no(e);return i==d?Le(e):i==v?Ue(e):function(t,e){return ce(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function Gg(t,e,i,g,A,s,C,I){var a=2&e;if(!a&&"function"!=typeof t)throw new pt(o);var l=g?g.length:0;if(l||(e&=-97,g=A=void 0),C=void 0===C?C:ri(gA(C),0),I=void 0===I?I:gA(I),l-=A?A.length:0,64&e){var c=g,u=A;g=A=void 0}var d=a?void 0:Xg(t),h=[t,e,i,g,A,c,u,s,C,I];if(d&&function(t,e){var i=t[1],n=e[1],g=i|n,o=g<131,A=128==n&&8==i||128==n&&256==i&&t[7].length<=e[8]||384==n&&e[7].length<=e[8]&&8==i;if(!o&&!A)return t;1&n&&(t[2]=e[2],g|=1&i?0:4);var s=e[3];if(s){var C=t[3];t[3]=C?hg(C,s,e[4]):s,t[4]=C?We(t[3],r):e[4]}(s=e[5])&&(C=t[5],t[5]=C?pg(C,s,e[6]):s,t[6]=C?We(t[5],r):e[6]);(s=e[7])&&(t[7]=s);128&n&&(t[8]=null==t[8]?e[8]:Ai(t[8],e[8]));null==t[9]&&(t[9]=e[9]);t[0]=e[0],t[1]=g}(h,d),t=h[0],e=h[1],i=h[2],g=h[3],A=h[4],!(I=h[9]=void 0===h[9]?a?0:t.length:ri(h[9]-l,0))&&24&e&&(e&=-25),e&&1!=e)p=8==e||16==e?function(t,e,i){var g=Og(t);return function o(){for(var r=arguments.length,A=n(r),s=r,C=Jg(o);s--;)A[s]=arguments[s];var I=r<3&&A[0]!==C&&A[r-1]!==C?[]:We(A,C);if((r-=I.length)<i)return Rg(t,e,Tg,o.placeholder,void 0,A,I,void 0,void 0,i-r);var a=this&&this!==Vt&&this instanceof o?g:t;return oe(a,this,A)}}(t,e,I):32!=e&&33!=e||A.length?Tg.apply(void 0,h):function(t,e,i,g){var o=1&e,r=Og(t);return function e(){for(var A=-1,s=arguments.length,C=-1,I=g.length,a=n(I+s),l=this&&this!==Vt&&this instanceof e?r:t;++C<I;)a[C]=g[C];for(;s--;)a[C++]=arguments[++A];return oe(l,o?i:this,a)}}(t,e,i,g);else var p=function(t,e,i){var n=1&e,g=Og(t);return function e(){var o=this&&this!==Vt&&this instanceof e?g:t;return o.apply(n?i:this,arguments)}}(t,e,i);return xo((d?Wn:yo)(p,h),t,e)}function Lg(t,e,i,n){return void 0===t||_r(t,yt[i])&&!xt.call(n,i)?e:t}function Qg(t,e,i,n,g,o){return Pr(t)&&Pr(e)&&(o.set(e,t),Nn(t,e,void 0,Qg,o),o.delete(e)),t}function Wg(t){return Xr(t)?void 0:t}function Pg(t,e,i,n,g,o){var r=1&i,A=t.length,s=e.length;if(A!=s&&!(r&&s>A))return!1;var C=o.get(t),I=o.get(e);if(C&&I)return C==e&&I==t;var a=-1,l=!0,c=2&i?new Ri:void 0;for(o.set(t,e),o.set(e,t);++a<A;){var u=t[a],d=e[a];if(n)var h=r?n(d,u,a,e,t,o):n(u,d,a,t,e,o);if(void 0!==h){if(h)continue;l=!1;break}if(c){if(!pe(e,(function(t,e){if(!Ee(c,e)&&(u===t||g(u,t,i,n,o)))return c.push(e)}))){l=!1;break}}else if(u!==d&&!g(u,d,i,n,o)){l=!1;break}}return o.delete(t),o.delete(e),l}function Ug(t){return bo(ho(t,void 0,Fo),t+"")}function Yg(t){return cn(t,mA,eo)}function Vg(t){return cn(t,bA,io)}var Xg=fi?function(t){return fi.get(t)}:qA;function Hg(t){for(var e=t.name+"",i=vi[e],n=xt.call(vi,e)?i.length:0;n--;){var g=i[n],o=g.func;if(null==o||o==t)return g.name}return e}function Jg(t){return(xt.call(Mi,"placeholder")?Mi:t).placeholder}function Kg(){var t=Mi.iteratee||XA;return t=t===XA?wn:t,arguments.length?t(arguments[0],arguments[1]):t}function qg(t,e){var i,n,g=t.__data__;return("string"==(n=typeof(i=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==i:null===i)?g["string"==typeof e?"string":"hash"]:g.map}function $g(t){for(var e=mA(t),i=e.length;i--;){var n=e[i],g=t[n];e[i]=[n,g,co(g)]}return e}function to(t,e){var i=function(t,e){return null==t?void 0:t[e]}(t,e);return xn(i)?i:void 0}var eo=ei?function(t){return null==t?[]:(t=ut(t),Ie(ei(t),(function(e){return Yt.call(t,e)})))}:os,io=ei?function(t){for(var e=[];t;)ue(e,eo(t)),t=Qt(t);return e}:os,no=un;function go(t,e,i){for(var n=-1,g=(e=sg(e,t)).length,o=!1;++n<g;){var r=Do(e[n]);if(!(o=null!=t&&i(t,r)))break;t=t[r]}return o||++n!=g?o:!!(g=null==t?0:t.length)&&Wr(g)&&Ao(r,g)&&(Br(t)||Er(t))}function oo(t){return"function"!=typeof t.constructor||lo(t)?{}:Ti(Qt(t))}function ro(t){return Br(t)||Er(t)||!!(Ht&&t&&t[Ht])}function Ao(t,e){var i=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==i||"symbol"!=i&&st.test(t))&&t>-1&&t%1==0&&t<e}function so(t,e,i){if(!Pr(i))return!1;var n=typeof e;return!!("number"==n?Rr(i)&&Ao(e,i.length):"string"==n&&e in i)&&_r(i[e],t)}function Co(t,e){if(Br(t))return!1;var i=typeof t;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=t&&!qr(t))||(P.test(t)||!W.test(t)||null!=e&&t in ut(e))}function Io(t){var e=Hg(t),i=Mi[e];if("function"!=typeof i||!(e in ji.prototype))return!1;if(t===i)return!0;var n=Xg(i);return!!n&&t===n[0]}(li&&no(new li(new ArrayBuffer(1)))!=w||ci&&no(new ci)!=d||ui&&"[object Promise]"!=no(ui.resolve())||di&&no(new di)!=v||hi&&no(new hi)!=b)&&(no=function(t){var e=un(t),i=e==p?t.constructor:void 0,n=i?Mo(i):"";if(n)switch(n){case yi:return w;case mi:return d;case bi:return"[object Promise]";case xi:return v;case wi:return b}return e});var ao=mt?Lr:rs;function lo(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||yt)}function co(t){return t==t&&!Pr(t)}function uo(t,e){return function(i){return null!=i&&(i[t]===e&&(void 0!==e||t in ut(i)))}}function ho(t,e,i){return e=ri(void 0===e?t.length-1:e,0),function(){for(var g=arguments,o=-1,r=ri(g.length-e,0),A=n(r);++o<r;)A[o]=g[e+o];o=-1;for(var s=n(e+1);++o<e;)s[o]=g[o];return s[e]=i(A),oe(t,this,s)}}function po(t,e){return e.length<2?t:ln(t,Yn(e,0,-1))}function fo(t,e){for(var i=t.length,n=Ai(e.length,i),g=fg(t);n--;){var o=e[n];t[n]=Ao(o,i)?g[o]:void 0}return t}function vo(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var yo=wo(Wn),mo=qe||function(t,e){return Vt.setTimeout(t,e)},bo=wo(Pn);function xo(t,e,i){var n=e+"";return bo(t,function(t,e){var i=e.length;if(!i)return t;var n=i-1;return e[n]=(i>1?"& ":"")+e[n],e=e.join(i>2?", ":" "),t.replace(J,"{\n/* [wrapped with "+e+"] */\n")}(n,function(t,e){return Ae(A,(function(i){var n="_."+i[0];e&i[1]&&!ae(t,n)&&t.push(n)})),t.sort()}(function(t){var e=t.match(K);return e?e[1].split(q):[]}(n),i)))}function wo(t){var e=0,i=0;return function(){var n=si(),g=16-(n-i);if(i=n,g>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function ko(t,e){var i=-1,n=t.length,g=n-1;for(e=void 0===e?n:e;++i<e;){var o=Sn(i,g),r=t[o];t[o]=t[i],t[i]=r}return t.length=e,t}var Oo=function(t){var e=wr(t,(function(t){return 500===i.size&&i.clear(),t})),i=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(U,(function(t,i,n,g){e.push(n?g.replace(et,"$1"):i||t)})),e}));function Do(t){if("string"==typeof t||qr(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Mo(t){if(null!=t){try{return bt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function To(t){if(t instanceof ji)return t.clone();var e=new Ni(t.__wrapped__,t.__chain__);return e.__actions__=fg(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var _o=zn((function(t,e){return Sr(t)?$i(t,rn(e,1,Sr,!0)):[]})),No=zn((function(t,e){var i=Go(e);return Sr(i)&&(i=void 0),Sr(t)?$i(t,rn(e,1,Sr,!0),Kg(i,2)):[]})),jo=zn((function(t,e){var i=Go(e);return Sr(i)&&(i=void 0),Sr(t)?$i(t,rn(e,1,Sr,!0),void 0,i):[]}));function Eo(t,e,i){var n=null==t?0:t.length;if(!n)return-1;var g=null==i?0:gA(i);return g<0&&(g=ri(n+g,0)),ye(t,Kg(e,3),g)}function Bo(t,e,i){var n=null==t?0:t.length;if(!n)return-1;var g=n-1;return void 0!==i&&(g=gA(i),g=i<0?ri(n+g,0):Ai(g,n-1)),ye(t,Kg(e,3),g,!0)}function Fo(t){return(null==t?0:t.length)?rn(t,1):[]}function Ro(t){return t&&t.length?t[0]:void 0}var So=zn((function(t){var e=ce(t,rg);return e.length&&e[0]===t[0]?fn(e):[]})),Zo=zn((function(t){var e=Go(t),i=ce(t,rg);return e===Go(i)?e=void 0:i.pop(),i.length&&i[0]===t[0]?fn(i,Kg(e,2)):[]})),zo=zn((function(t){var e=Go(t),i=ce(t,rg);return(e="function"==typeof e?e:void 0)&&i.pop(),i.length&&i[0]===t[0]?fn(i,void 0,e):[]}));function Go(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}var Lo=zn(Qo);function Qo(t,e){return t&&t.length&&e&&e.length?Fn(t,e):t}var Wo=Ug((function(t,e){var i=null==t?0:t.length,n=Xi(t,e);return Rn(t,ce(e,(function(t){return Ao(t,i)?+t:t})).sort(dg)),n}));function Po(t){return null==t?t:ai.call(t)}var Uo=zn((function(t){return $n(rn(t,1,Sr,!0))})),Yo=zn((function(t){var e=Go(t);return Sr(e)&&(e=void 0),$n(rn(t,1,Sr,!0),Kg(e,2))})),Vo=zn((function(t){var e=Go(t);return e="function"==typeof e?e:void 0,$n(rn(t,1,Sr,!0),void 0,e)}));function Xo(t){if(!t||!t.length)return[];var e=0;return t=Ie(t,(function(t){if(Sr(t))return e=ri(t.length,e),!0})),Te(e,(function(e){return ce(t,ke(e))}))}function Ho(t,e){if(!t||!t.length)return[];var i=Xo(t);return null==e?i:ce(i,(function(t){return oe(e,void 0,t)}))}var Jo=zn((function(t,e){return Sr(t)?$i(t,e):[]})),Ko=zn((function(t){return gg(Ie(t,Sr))})),qo=zn((function(t){var e=Go(t);return Sr(e)&&(e=void 0),gg(Ie(t,Sr),Kg(e,2))})),$o=zn((function(t){var e=Go(t);return e="function"==typeof e?e:void 0,gg(Ie(t,Sr),void 0,e)})),tr=zn(Xo);var er=zn((function(t){var e=t.length,i=e>1?t[e-1]:void 0;return i="function"==typeof i?(t.pop(),i):void 0,Ho(t,i)}));function ir(t){var e=Mi(t);return e.__chain__=!0,e}function nr(t,e){return e(t)}var gr=Ug((function(t){var e=t.length,i=e?t[0]:0,n=this.__wrapped__,g=function(e){return Xi(e,t)};return!(e>1||this.__actions__.length)&&n instanceof ji&&Ao(i)?((n=n.slice(i,+i+(e?1:0))).__actions__.push({func:nr,args:[g],thisArg:void 0}),new Ni(n,this.__chain__).thru((function(t){return e&&!t.length&&t.push(void 0),t}))):this.thru(g)}));var or=yg((function(t,e,i){xt.call(t,i)?++t[i]:Vi(t,i,1)}));var rr=Dg(Eo),Ar=Dg(Bo);function sr(t,e){return(Br(t)?Ae:tn)(t,Kg(e,3))}function Cr(t,e){return(Br(t)?se:en)(t,Kg(e,3))}var Ir=yg((function(t,e,i){xt.call(t,i)?t[i].push(e):Vi(t,i,[e])}));var ar=zn((function(t,e,i){var g=-1,o="function"==typeof e,r=Rr(t)?n(t.length):[];return tn(t,(function(t){r[++g]=o?oe(e,t,i):vn(t,e,i)})),r})),lr=yg((function(t,e,i){Vi(t,i,e)}));function cr(t,e){return(Br(t)?ce:Mn)(t,Kg(e,3))}var ur=yg((function(t,e,i){t[i?0:1].push(e)}),(function(){return[[],[]]}));var dr=zn((function(t,e){if(null==t)return[];var i=e.length;return i>1&&so(t,e[0],e[1])?e=[]:i>2&&so(e[0],e[1],e[2])&&(e=[e[0]]),En(t,rn(e,1),[])})),hr=Ke||function(){return Vt.Date.now()};function pr(t,e,i){return e=i?void 0:e,Gg(t,128,void 0,void 0,void 0,void 0,e=t&&null==e?t.length:e)}function fr(t,e){var i;if("function"!=typeof e)throw new pt(o);return t=gA(t),function(){return--t>0&&(i=e.apply(this,arguments)),t<=1&&(e=void 0),i}}var vr=zn((function(t,e,i){var n=1;if(i.length){var g=We(i,Jg(vr));n|=32}return Gg(t,n,e,i,g)})),yr=zn((function(t,e,i){var n=3;if(i.length){var g=We(i,Jg(yr));n|=32}return Gg(e,n,t,i,g)}));function mr(t,e,i){var n,g,r,A,s,C,I=0,a=!1,l=!1,c=!0;if("function"!=typeof t)throw new pt(o);function u(e){var i=n,o=g;return n=g=void 0,I=e,A=t.apply(o,i)}function d(t){return I=t,s=mo(p,e),a?u(t):A}function h(t){var i=t-C;return void 0===C||i>=e||i<0||l&&t-I>=r}function p(){var t=hr();if(h(t))return f(t);s=mo(p,function(t){var i=e-(t-C);return l?Ai(i,r-(t-I)):i}(t))}function f(t){return s=void 0,c&&n?u(t):(n=g=void 0,A)}function v(){var t=hr(),i=h(t);if(n=arguments,g=this,C=t,i){if(void 0===s)return d(C);if(l)return ag(s),s=mo(p,e),u(C)}return void 0===s&&(s=mo(p,e)),A}return e=rA(e)||0,Pr(i)&&(a=!!i.leading,r=(l="maxWait"in i)?ri(rA(i.maxWait)||0,e):r,c="trailing"in i?!!i.trailing:c),v.cancel=function(){void 0!==s&&ag(s),I=0,n=C=g=s=void 0},v.flush=function(){return void 0===s?A:f(hr())},v}var br=zn((function(t,e){return qi(t,1,e)})),xr=zn((function(t,e,i){return qi(t,rA(e)||0,i)}));function wr(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new pt(o);var i=function(){var n=arguments,g=e?e.apply(this,n):n[0],o=i.cache;if(o.has(g))return o.get(g);var r=t.apply(this,n);return i.cache=o.set(g,r)||o,r};return i.cache=new(wr.Cache||Fi),i}function kr(t){if("function"!=typeof t)throw new pt(o);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}wr.Cache=Fi;var Or=Cg((function(t,e){var i=(e=1==e.length&&Br(e[0])?ce(e[0],Ne(Kg())):ce(rn(e,1),Ne(Kg()))).length;return zn((function(n){for(var g=-1,o=Ai(n.length,i);++g<o;)n[g]=e[g].call(this,n[g]);return oe(t,this,n)}))})),Dr=zn((function(t,e){return Gg(t,32,void 0,e,We(e,Jg(Dr)))})),Mr=zn((function(t,e){return Gg(t,64,void 0,e,We(e,Jg(Mr)))})),Tr=Ug((function(t,e){return Gg(t,256,void 0,void 0,void 0,e)}));function _r(t,e){return t===e||t!=t&&e!=e}var Nr=Fg(dn),jr=Fg((function(t,e){return t>=e})),Er=yn(function(){return arguments}())?yn:function(t){return Ur(t)&&xt.call(t,"callee")&&!Yt.call(t,"callee")},Br=n.isArray,Fr=$t?Ne($t):function(t){return Ur(t)&&un(t)==x};function Rr(t){return null!=t&&Wr(t.length)&&!Lr(t)}function Sr(t){return Ur(t)&&Rr(t)}var Zr=ii||rs,zr=te?Ne(te):function(t){return Ur(t)&&un(t)==a};function Gr(t){if(!Ur(t))return!1;var e=un(t);return e==l||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!Xr(t)}function Lr(t){if(!Pr(t))return!1;var e=un(t);return e==c||e==u||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Qr(t){return"number"==typeof t&&t==gA(t)}function Wr(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Pr(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Ur(t){return null!=t&&"object"==typeof t}var Yr=ee?Ne(ee):function(t){return Ur(t)&&no(t)==d};function Vr(t){return"number"==typeof t||Ur(t)&&un(t)==h}function Xr(t){if(!Ur(t)||un(t)!=p)return!1;var e=Qt(t);if(null===e)return!0;var i=xt.call(e,"constructor")&&e.constructor;return"function"==typeof i&&i instanceof i&&bt.call(i)==Dt}var Hr=ie?Ne(ie):function(t){return Ur(t)&&un(t)==f};var Jr=ne?Ne(ne):function(t){return Ur(t)&&no(t)==v};function Kr(t){return"string"==typeof t||!Br(t)&&Ur(t)&&un(t)==y}function qr(t){return"symbol"==typeof t||Ur(t)&&un(t)==m}var $r=ge?Ne(ge):function(t){return Ur(t)&&Wr(t.length)&&!!Gt[un(t)]};var tA=Fg(Dn),eA=Fg((function(t,e){return t<=e}));function iA(t){if(!t)return[];if(Rr(t))return Kr(t)?Ve(t):fg(t);if(Kt&&t[Kt])return function(t){for(var e,i=[];!(e=t.next()).done;)i.push(e.value);return i}(t[Kt]());var e=no(t);return(e==d?Le:e==v?Pe:_A)(t)}function nA(t){return t?(t=rA(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function gA(t){var e=nA(t),i=e%1;return e==e?i?e-i:e:0}function oA(t){return t?Hi(gA(t),0,4294967295):0}function rA(t){if("number"==typeof t)return t;if(qr(t))return NaN;if(Pr(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Pr(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=_e(t);var i=ot.test(t);return i||At.test(t)?Pt(t.slice(2),i?2:8):gt.test(t)?NaN:+t}function AA(t){return vg(t,bA(t))}function sA(t){return null==t?"":qn(t)}var CA=mg((function(t,e){if(lo(e)||Rr(e))vg(e,mA(e),t);else for(var i in e)xt.call(e,i)&&Wi(t,i,e[i])})),IA=mg((function(t,e){vg(e,bA(e),t)})),aA=mg((function(t,e,i,n){vg(e,bA(e),t,n)})),lA=mg((function(t,e,i,n){vg(e,mA(e),t,n)})),cA=Ug(Xi);var uA=zn((function(t,e){t=ut(t);var i=-1,n=e.length,g=n>2?e[2]:void 0;for(g&&so(e[0],e[1],g)&&(n=1);++i<n;)for(var o=e[i],r=bA(o),A=-1,s=r.length;++A<s;){var C=r[A],I=t[C];(void 0===I||_r(I,yt[C])&&!xt.call(t,C))&&(t[C]=o[C])}return t})),dA=zn((function(t){return t.push(void 0,Qg),oe(wA,void 0,t)}));function hA(t,e,i){var n=null==t?void 0:ln(t,e);return void 0===n?i:n}function pA(t,e){return null!=t&&go(t,e,pn)}var fA=_g((function(t,e,i){null!=e&&"function"!=typeof e.toString&&(e=Ot.call(e)),t[e]=i}),PA(VA)),vA=_g((function(t,e,i){null!=e&&"function"!=typeof e.toString&&(e=Ot.call(e)),xt.call(t,e)?t[e].push(i):t[e]=[i]}),Kg),yA=zn(vn);function mA(t){return Rr(t)?Zi(t):kn(t)}function bA(t){return Rr(t)?Zi(t,!0):On(t)}var xA=mg((function(t,e,i){Nn(t,e,i)})),wA=mg((function(t,e,i,n){Nn(t,e,i,n)})),kA=Ug((function(t,e){var i={};if(null==t)return i;var n=!1;e=ce(e,(function(e){return e=sg(e,t),n||(n=e.length>1),e})),vg(t,Vg(t),i),n&&(i=Ji(i,7,Wg));for(var g=e.length;g--;)tg(i,e[g]);return i}));var OA=Ug((function(t,e){return null==t?{}:function(t,e){return Bn(t,e,(function(e,i){return pA(t,i)}))}(t,e)}));function DA(t,e){if(null==t)return{};var i=ce(Vg(t),(function(t){return[t]}));return e=Kg(e),Bn(t,i,(function(t,i){return e(t,i[0])}))}var MA=zg(mA),TA=zg(bA);function _A(t){return null==t?[]:je(t,mA(t))}var NA=kg((function(t,e,i){return e=e.toLowerCase(),t+(i?jA(e):e)}));function jA(t){return GA(sA(t).toLowerCase())}function EA(t){return(t=sA(t))&&t.replace(Ct,Se).replace(Et,"")}var BA=kg((function(t,e,i){return t+(i?"-":"")+e.toLowerCase()})),FA=kg((function(t,e,i){return t+(i?" ":"")+e.toLowerCase()})),RA=wg("toLowerCase");var SA=kg((function(t,e,i){return t+(i?"_":"")+e.toLowerCase()}));var ZA=kg((function(t,e,i){return t+(i?" ":"")+GA(e)}));var zA=kg((function(t,e,i){return t+(i?" ":"")+e.toUpperCase()})),GA=wg("toUpperCase");function LA(t,e,i){return t=sA(t),void 0===(e=i?void 0:e)?function(t){return St.test(t)}(t)?function(t){return t.match(Ft)||[]}(t):function(t){return t.match($)||[]}(t):t.match(e)||[]}var QA=zn((function(t,e){try{return oe(t,void 0,e)}catch(t){return Gr(t)?t:new H(t)}})),WA=Ug((function(t,e){return Ae(e,(function(e){e=Do(e),Vi(t,e,vr(t[e],t))})),t}));function PA(t){return function(){return t}}var UA=Mg(),YA=Mg(!0);function VA(t){return t}function XA(t){return wn("function"==typeof t?t:Ji(t,1))}var HA=zn((function(t,e){return function(i){return vn(i,t,e)}})),JA=zn((function(t,e){return function(i){return vn(t,i,e)}}));function KA(t,e,i){var n=mA(e),g=an(e,n);null!=i||Pr(e)&&(g.length||!n.length)||(i=e,e=t,t=this,g=an(e,mA(e)));var o=!(Pr(i)&&"chain"in i&&!i.chain),r=Lr(t);return Ae(g,(function(i){var n=e[i];t[i]=n,r&&(t.prototype[i]=function(){var e=this.__chain__;if(o||e){var i=t(this.__wrapped__),g=i.__actions__=fg(this.__actions__);return g.push({func:n,args:arguments,thisArg:t}),i.__chain__=e,i}return n.apply(t,ue([this.value()],arguments))})})),t}function qA(){}var $A=jg(ce),ts=jg(Ce),es=jg(pe);function is(t){return Co(t)?ke(Do(t)):function(t){return function(e){return ln(e,t)}}(t)}var ns=Bg(),gs=Bg(!0);function os(){return[]}function rs(){return!1}var As=Ng((function(t,e){return t+e}),0),ss=Sg("ceil"),Cs=Ng((function(t,e){return t/e}),1),Is=Sg("floor");var as,ls=Ng((function(t,e){return t*e}),1),cs=Sg("round"),us=Ng((function(t,e){return t-e}),0);return Mi.after=function(t,e){if("function"!=typeof e)throw new pt(o);return t=gA(t),function(){if(--t<1)return e.apply(this,arguments)}},Mi.ary=pr,Mi.assign=CA,Mi.assignIn=IA,Mi.assignInWith=aA,Mi.assignWith=lA,Mi.at=cA,Mi.before=fr,Mi.bind=vr,Mi.bindAll=WA,Mi.bindKey=yr,Mi.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Br(t)?t:[t]},Mi.chain=ir,Mi.chunk=function(t,e,i){e=(i?so(t,e,i):void 0===e)?1:ri(gA(e),0);var g=null==t?0:t.length;if(!g||e<1)return[];for(var o=0,r=0,A=n($e(g/e));o<g;)A[r++]=Yn(t,o,o+=e);return A},Mi.compact=function(t){for(var e=-1,i=null==t?0:t.length,n=0,g=[];++e<i;){var o=t[e];o&&(g[n++]=o)}return g},Mi.concat=function(){var t=arguments.length;if(!t)return[];for(var e=n(t-1),i=arguments[0],g=t;g--;)e[g-1]=arguments[g];return ue(Br(i)?fg(i):[i],rn(e,1))},Mi.cond=function(t){var e=null==t?0:t.length,i=Kg();return t=e?ce(t,(function(t){if("function"!=typeof t[1])throw new pt(o);return[i(t[0]),t[1]]})):[],zn((function(i){for(var n=-1;++n<e;){var g=t[n];if(oe(g[0],this,i))return oe(g[1],this,i)}}))},Mi.conforms=function(t){return function(t){var e=mA(t);return function(i){return Ki(i,t,e)}}(Ji(t,1))},Mi.constant=PA,Mi.countBy=or,Mi.create=function(t,e){var i=Ti(t);return null==e?i:Yi(i,e)},Mi.curry=function t(e,i,n){var g=Gg(e,8,void 0,void 0,void 0,void 0,void 0,i=n?void 0:i);return g.placeholder=t.placeholder,g},Mi.curryRight=function t(e,i,n){var g=Gg(e,16,void 0,void 0,void 0,void 0,void 0,i=n?void 0:i);return g.placeholder=t.placeholder,g},Mi.debounce=mr,Mi.defaults=uA,Mi.defaultsDeep=dA,Mi.defer=br,Mi.delay=xr,Mi.difference=_o,Mi.differenceBy=No,Mi.differenceWith=jo,Mi.drop=function(t,e,i){var n=null==t?0:t.length;return n?Yn(t,(e=i||void 0===e?1:gA(e))<0?0:e,n):[]},Mi.dropRight=function(t,e,i){var n=null==t?0:t.length;return n?Yn(t,0,(e=n-(e=i||void 0===e?1:gA(e)))<0?0:e):[]},Mi.dropRightWhile=function(t,e){return t&&t.length?ig(t,Kg(e,3),!0,!0):[]},Mi.dropWhile=function(t,e){return t&&t.length?ig(t,Kg(e,3),!0):[]},Mi.fill=function(t,e,i,n){var g=null==t?0:t.length;return g?(i&&"number"!=typeof i&&so(t,e,i)&&(i=0,n=g),function(t,e,i,n){var g=t.length;for((i=gA(i))<0&&(i=-i>g?0:g+i),(n=void 0===n||n>g?g:gA(n))<0&&(n+=g),n=i>n?0:oA(n);i<n;)t[i++]=e;return t}(t,e,i,n)):[]},Mi.filter=function(t,e){return(Br(t)?Ie:on)(t,Kg(e,3))},Mi.flatMap=function(t,e){return rn(cr(t,e),1)},Mi.flatMapDeep=function(t,e){return rn(cr(t,e),1/0)},Mi.flatMapDepth=function(t,e,i){return i=void 0===i?1:gA(i),rn(cr(t,e),i)},Mi.flatten=Fo,Mi.flattenDeep=function(t){return(null==t?0:t.length)?rn(t,1/0):[]},Mi.flattenDepth=function(t,e){return(null==t?0:t.length)?rn(t,e=void 0===e?1:gA(e)):[]},Mi.flip=function(t){return Gg(t,512)},Mi.flow=UA,Mi.flowRight=YA,Mi.fromPairs=function(t){for(var e=-1,i=null==t?0:t.length,n={};++e<i;){var g=t[e];n[g[0]]=g[1]}return n},Mi.functions=function(t){return null==t?[]:an(t,mA(t))},Mi.functionsIn=function(t){return null==t?[]:an(t,bA(t))},Mi.groupBy=Ir,Mi.initial=function(t){return(null==t?0:t.length)?Yn(t,0,-1):[]},Mi.intersection=So,Mi.intersectionBy=Zo,Mi.intersectionWith=zo,Mi.invert=fA,Mi.invertBy=vA,Mi.invokeMap=ar,Mi.iteratee=XA,Mi.keyBy=lr,Mi.keys=mA,Mi.keysIn=bA,Mi.map=cr,Mi.mapKeys=function(t,e){var i={};return e=Kg(e,3),Cn(t,(function(t,n,g){Vi(i,e(t,n,g),t)})),i},Mi.mapValues=function(t,e){var i={};return e=Kg(e,3),Cn(t,(function(t,n,g){Vi(i,n,e(t,n,g))})),i},Mi.matches=function(t){return Tn(Ji(t,1))},Mi.matchesProperty=function(t,e){return _n(t,Ji(e,1))},Mi.memoize=wr,Mi.merge=xA,Mi.mergeWith=wA,Mi.method=HA,Mi.methodOf=JA,Mi.mixin=KA,Mi.negate=kr,Mi.nthArg=function(t){return t=gA(t),zn((function(e){return jn(e,t)}))},Mi.omit=kA,Mi.omitBy=function(t,e){return DA(t,kr(Kg(e)))},Mi.once=function(t){return fr(2,t)},Mi.orderBy=function(t,e,i,n){return null==t?[]:(Br(e)||(e=null==e?[]:[e]),Br(i=n?void 0:i)||(i=null==i?[]:[i]),En(t,e,i))},Mi.over=$A,Mi.overArgs=Or,Mi.overEvery=ts,Mi.overSome=es,Mi.partial=Dr,Mi.partialRight=Mr,Mi.partition=ur,Mi.pick=OA,Mi.pickBy=DA,Mi.property=is,Mi.propertyOf=function(t){return function(e){return null==t?void 0:ln(t,e)}},Mi.pull=Lo,Mi.pullAll=Qo,Mi.pullAllBy=function(t,e,i){return t&&t.length&&e&&e.length?Fn(t,e,Kg(i,2)):t},Mi.pullAllWith=function(t,e,i){return t&&t.length&&e&&e.length?Fn(t,e,void 0,i):t},Mi.pullAt=Wo,Mi.range=ns,Mi.rangeRight=gs,Mi.rearg=Tr,Mi.reject=function(t,e){return(Br(t)?Ie:on)(t,kr(Kg(e,3)))},Mi.remove=function(t,e){var i=[];if(!t||!t.length)return i;var n=-1,g=[],o=t.length;for(e=Kg(e,3);++n<o;){var r=t[n];e(r,n,t)&&(i.push(r),g.push(n))}return Rn(t,g),i},Mi.rest=function(t,e){if("function"!=typeof t)throw new pt(o);return zn(t,e=void 0===e?e:gA(e))},Mi.reverse=Po,Mi.sampleSize=function(t,e,i){return e=(i?so(t,e,i):void 0===e)?1:gA(e),(Br(t)?Gi:Ln)(t,e)},Mi.set=function(t,e,i){return null==t?t:Qn(t,e,i)},Mi.setWith=function(t,e,i,n){return n="function"==typeof n?n:void 0,null==t?t:Qn(t,e,i,n)},Mi.shuffle=function(t){return(Br(t)?Li:Un)(t)},Mi.slice=function(t,e,i){var n=null==t?0:t.length;return n?(i&&"number"!=typeof i&&so(t,e,i)?(e=0,i=n):(e=null==e?0:gA(e),i=void 0===i?n:gA(i)),Yn(t,e,i)):[]},Mi.sortBy=dr,Mi.sortedUniq=function(t){return t&&t.length?Jn(t):[]},Mi.sortedUniqBy=function(t,e){return t&&t.length?Jn(t,Kg(e,2)):[]},Mi.split=function(t,e,i){return i&&"number"!=typeof i&&so(t,e,i)&&(e=i=void 0),(i=void 0===i?4294967295:i>>>0)?(t=sA(t))&&("string"==typeof e||null!=e&&!Hr(e))&&!(e=qn(e))&&Ge(t)?Ig(Ve(t),0,i):t.split(e,i):[]},Mi.spread=function(t,e){if("function"!=typeof t)throw new pt(o);return e=null==e?0:ri(gA(e),0),zn((function(i){var n=i[e],g=Ig(i,0,e);return n&&ue(g,n),oe(t,this,g)}))},Mi.tail=function(t){var e=null==t?0:t.length;return e?Yn(t,1,e):[]},Mi.take=function(t,e,i){return t&&t.length?Yn(t,0,(e=i||void 0===e?1:gA(e))<0?0:e):[]},Mi.takeRight=function(t,e,i){var n=null==t?0:t.length;return n?Yn(t,(e=n-(e=i||void 0===e?1:gA(e)))<0?0:e,n):[]},Mi.takeRightWhile=function(t,e){return t&&t.length?ig(t,Kg(e,3),!1,!0):[]},Mi.takeWhile=function(t,e){return t&&t.length?ig(t,Kg(e,3)):[]},Mi.tap=function(t,e){return e(t),t},Mi.throttle=function(t,e,i){var n=!0,g=!0;if("function"!=typeof t)throw new pt(o);return Pr(i)&&(n="leading"in i?!!i.leading:n,g="trailing"in i?!!i.trailing:g),mr(t,e,{leading:n,maxWait:e,trailing:g})},Mi.thru=nr,Mi.toArray=iA,Mi.toPairs=MA,Mi.toPairsIn=TA,Mi.toPath=function(t){return Br(t)?ce(t,Do):qr(t)?[t]:fg(Oo(sA(t)))},Mi.toPlainObject=AA,Mi.transform=function(t,e,i){var n=Br(t),g=n||Zr(t)||$r(t);if(e=Kg(e,4),null==i){var o=t&&t.constructor;i=g?n?new o:[]:Pr(t)&&Lr(o)?Ti(Qt(t)):{}}return(g?Ae:Cn)(t,(function(t,n,g){return e(i,t,n,g)})),i},Mi.unary=function(t){return pr(t,1)},Mi.union=Uo,Mi.unionBy=Yo,Mi.unionWith=Vo,Mi.uniq=function(t){return t&&t.length?$n(t):[]},Mi.uniqBy=function(t,e){return t&&t.length?$n(t,Kg(e,2)):[]},Mi.uniqWith=function(t,e){return e="function"==typeof e?e:void 0,t&&t.length?$n(t,void 0,e):[]},Mi.unset=function(t,e){return null==t||tg(t,e)},Mi.unzip=Xo,Mi.unzipWith=Ho,Mi.update=function(t,e,i){return null==t?t:eg(t,e,Ag(i))},Mi.updateWith=function(t,e,i,n){return n="function"==typeof n?n:void 0,null==t?t:eg(t,e,Ag(i),n)},Mi.values=_A,Mi.valuesIn=function(t){return null==t?[]:je(t,bA(t))},Mi.without=Jo,Mi.words=LA,Mi.wrap=function(t,e){return Dr(Ag(e),t)},Mi.xor=Ko,Mi.xorBy=qo,Mi.xorWith=$o,Mi.zip=tr,Mi.zipObject=function(t,e){return og(t||[],e||[],Wi)},Mi.zipObjectDeep=function(t,e){return og(t||[],e||[],Qn)},Mi.zipWith=er,Mi.entries=MA,Mi.entriesIn=TA,Mi.extend=IA,Mi.extendWith=aA,KA(Mi,Mi),Mi.add=As,Mi.attempt=QA,Mi.camelCase=NA,Mi.capitalize=jA,Mi.ceil=ss,Mi.clamp=function(t,e,i){return void 0===i&&(i=e,e=void 0),void 0!==i&&(i=(i=rA(i))==i?i:0),void 0!==e&&(e=(e=rA(e))==e?e:0),Hi(rA(t),e,i)},Mi.clone=function(t){return Ji(t,4)},Mi.cloneDeep=function(t){return Ji(t,5)},Mi.cloneDeepWith=function(t,e){return Ji(t,5,e="function"==typeof e?e:void 0)},Mi.cloneWith=function(t,e){return Ji(t,4,e="function"==typeof e?e:void 0)},Mi.conformsTo=function(t,e){return null==e||Ki(t,e,mA(e))},Mi.deburr=EA,Mi.defaultTo=function(t,e){return null==t||t!=t?e:t},Mi.divide=Cs,Mi.endsWith=function(t,e,i){t=sA(t),e=qn(e);var n=t.length,g=i=void 0===i?n:Hi(gA(i),0,n);return(i-=e.length)>=0&&t.slice(i,g)==e},Mi.eq=_r,Mi.escape=function(t){return(t=sA(t))&&z.test(t)?t.replace(S,Ze):t},Mi.escapeRegExp=function(t){return(t=sA(t))&&V.test(t)?t.replace(Y,"\\$&"):t},Mi.every=function(t,e,i){var n=Br(t)?Ce:nn;return i&&so(t,e,i)&&(e=void 0),n(t,Kg(e,3))},Mi.find=rr,Mi.findIndex=Eo,Mi.findKey=function(t,e){return ve(t,Kg(e,3),Cn)},Mi.findLast=Ar,Mi.findLastIndex=Bo,Mi.findLastKey=function(t,e){return ve(t,Kg(e,3),In)},Mi.floor=Is,Mi.forEach=sr,Mi.forEachRight=Cr,Mi.forIn=function(t,e){return null==t?t:An(t,Kg(e,3),bA)},Mi.forInRight=function(t,e){return null==t?t:sn(t,Kg(e,3),bA)},Mi.forOwn=function(t,e){return t&&Cn(t,Kg(e,3))},Mi.forOwnRight=function(t,e){return t&&In(t,Kg(e,3))},Mi.get=hA,Mi.gt=Nr,Mi.gte=jr,Mi.has=function(t,e){return null!=t&&go(t,e,hn)},Mi.hasIn=pA,Mi.head=Ro,Mi.identity=VA,Mi.includes=function(t,e,i,n){t=Rr(t)?t:_A(t),i=i&&!n?gA(i):0;var g=t.length;return i<0&&(i=ri(g+i,0)),Kr(t)?i<=g&&t.indexOf(e,i)>-1:!!g&&me(t,e,i)>-1},Mi.indexOf=function(t,e,i){var n=null==t?0:t.length;if(!n)return-1;var g=null==i?0:gA(i);return g<0&&(g=ri(n+g,0)),me(t,e,g)},Mi.inRange=function(t,e,i){return e=nA(e),void 0===i?(i=e,e=0):i=nA(i),function(t,e,i){return t>=Ai(e,i)&&t<ri(e,i)}(t=rA(t),e,i)},Mi.invoke=yA,Mi.isArguments=Er,Mi.isArray=Br,Mi.isArrayBuffer=Fr,Mi.isArrayLike=Rr,Mi.isArrayLikeObject=Sr,Mi.isBoolean=function(t){return!0===t||!1===t||Ur(t)&&un(t)==I},Mi.isBuffer=Zr,Mi.isDate=zr,Mi.isElement=function(t){return Ur(t)&&1===t.nodeType&&!Xr(t)},Mi.isEmpty=function(t){if(null==t)return!0;if(Rr(t)&&(Br(t)||"string"==typeof t||"function"==typeof t.splice||Zr(t)||$r(t)||Er(t)))return!t.length;var e=no(t);if(e==d||e==v)return!t.size;if(lo(t))return!kn(t).length;for(var i in t)if(xt.call(t,i))return!1;return!0},Mi.isEqual=function(t,e){return mn(t,e)},Mi.isEqualWith=function(t,e,i){var n=(i="function"==typeof i?i:void 0)?i(t,e):void 0;return void 0===n?mn(t,e,void 0,i):!!n},Mi.isError=Gr,Mi.isFinite=function(t){return"number"==typeof t&&ni(t)},Mi.isFunction=Lr,Mi.isInteger=Qr,Mi.isLength=Wr,Mi.isMap=Yr,Mi.isMatch=function(t,e){return t===e||bn(t,e,$g(e))},Mi.isMatchWith=function(t,e,i){return i="function"==typeof i?i:void 0,bn(t,e,$g(e),i)},Mi.isNaN=function(t){return Vr(t)&&t!=+t},Mi.isNative=function(t){if(ao(t))throw new H("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return xn(t)},Mi.isNil=function(t){return null==t},Mi.isNull=function(t){return null===t},Mi.isNumber=Vr,Mi.isObject=Pr,Mi.isObjectLike=Ur,Mi.isPlainObject=Xr,Mi.isRegExp=Hr,Mi.isSafeInteger=function(t){return Qr(t)&&t>=-9007199254740991&&t<=9007199254740991},Mi.isSet=Jr,Mi.isString=Kr,Mi.isSymbol=qr,Mi.isTypedArray=$r,Mi.isUndefined=function(t){return void 0===t},Mi.isWeakMap=function(t){return Ur(t)&&no(t)==b},Mi.isWeakSet=function(t){return Ur(t)&&"[object WeakSet]"==un(t)},Mi.join=function(t,e){return null==t?"":gi.call(t,e)},Mi.kebabCase=BA,Mi.last=Go,Mi.lastIndexOf=function(t,e,i){var n=null==t?0:t.length;if(!n)return-1;var g=n;return void 0!==i&&(g=(g=gA(i))<0?ri(n+g,0):Ai(g,n-1)),e==e?function(t,e,i){for(var n=i+1;n--;)if(t[n]===e)return n;return n}(t,e,g):ye(t,xe,g,!0)},Mi.lowerCase=FA,Mi.lowerFirst=RA,Mi.lt=tA,Mi.lte=eA,Mi.max=function(t){return t&&t.length?gn(t,VA,dn):void 0},Mi.maxBy=function(t,e){return t&&t.length?gn(t,Kg(e,2),dn):void 0},Mi.mean=function(t){return we(t,VA)},Mi.meanBy=function(t,e){return we(t,Kg(e,2))},Mi.min=function(t){return t&&t.length?gn(t,VA,Dn):void 0},Mi.minBy=function(t,e){return t&&t.length?gn(t,Kg(e,2),Dn):void 0},Mi.stubArray=os,Mi.stubFalse=rs,Mi.stubObject=function(){return{}},Mi.stubString=function(){return""},Mi.stubTrue=function(){return!0},Mi.multiply=ls,Mi.nth=function(t,e){return t&&t.length?jn(t,gA(e)):void 0},Mi.noConflict=function(){return Vt._===this&&(Vt._=Mt),this},Mi.noop=qA,Mi.now=hr,Mi.pad=function(t,e,i){t=sA(t);var n=(e=gA(e))?Ye(t):0;if(!e||n>=e)return t;var g=(e-n)/2;return Eg(ti(g),i)+t+Eg($e(g),i)},Mi.padEnd=function(t,e,i){t=sA(t);var n=(e=gA(e))?Ye(t):0;return e&&n<e?t+Eg(e-n,i):t},Mi.padStart=function(t,e,i){t=sA(t);var n=(e=gA(e))?Ye(t):0;return e&&n<e?Eg(e-n,i)+t:t},Mi.parseInt=function(t,e,i){return i||null==e?e=0:e&&(e=+e),Ci(sA(t).replace(X,""),e||0)},Mi.random=function(t,e,i){if(i&&"boolean"!=typeof i&&so(t,e,i)&&(e=i=void 0),void 0===i&&("boolean"==typeof e?(i=e,e=void 0):"boolean"==typeof t&&(i=t,t=void 0)),void 0===t&&void 0===e?(t=0,e=1):(t=nA(t),void 0===e?(e=t,t=0):e=nA(e)),t>e){var n=t;t=e,e=n}if(i||t%1||e%1){var g=Ii();return Ai(t+g*(e-t+Wt("1e-"+((g+"").length-1))),e)}return Sn(t,e)},Mi.reduce=function(t,e,i){var n=Br(t)?de:De,g=arguments.length<3;return n(t,Kg(e,4),i,g,tn)},Mi.reduceRight=function(t,e,i){var n=Br(t)?he:De,g=arguments.length<3;return n(t,Kg(e,4),i,g,en)},Mi.repeat=function(t,e,i){return e=(i?so(t,e,i):void 0===e)?1:gA(e),Zn(sA(t),e)},Mi.replace=function(){var t=arguments,e=sA(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Mi.result=function(t,e,i){var n=-1,g=(e=sg(e,t)).length;for(g||(g=1,t=void 0);++n<g;){var o=null==t?void 0:t[Do(e[n])];void 0===o&&(n=g,o=i),t=Lr(o)?o.call(t):o}return t},Mi.round=cs,Mi.runInContext=t,Mi.sample=function(t){return(Br(t)?zi:Gn)(t)},Mi.size=function(t){if(null==t)return 0;if(Rr(t))return Kr(t)?Ye(t):t.length;var e=no(t);return e==d||e==v?t.size:kn(t).length},Mi.snakeCase=SA,Mi.some=function(t,e,i){var n=Br(t)?pe:Vn;return i&&so(t,e,i)&&(e=void 0),n(t,Kg(e,3))},Mi.sortedIndex=function(t,e){return Xn(t,e)},Mi.sortedIndexBy=function(t,e,i){return Hn(t,e,Kg(i,2))},Mi.sortedIndexOf=function(t,e){var i=null==t?0:t.length;if(i){var n=Xn(t,e);if(n<i&&_r(t[n],e))return n}return-1},Mi.sortedLastIndex=function(t,e){return Xn(t,e,!0)},Mi.sortedLastIndexBy=function(t,e,i){return Hn(t,e,Kg(i,2),!0)},Mi.sortedLastIndexOf=function(t,e){if(null==t?0:t.length){var i=Xn(t,e,!0)-1;if(_r(t[i],e))return i}return-1},Mi.startCase=ZA,Mi.startsWith=function(t,e,i){return t=sA(t),i=null==i?0:Hi(gA(i),0,t.length),e=qn(e),t.slice(i,i+e.length)==e},Mi.subtract=us,Mi.sum=function(t){return t&&t.length?Me(t,VA):0},Mi.sumBy=function(t,e){return t&&t.length?Me(t,Kg(e,2)):0},Mi.template=function(t,e,i){var n=Mi.templateSettings;i&&so(t,e,i)&&(e=void 0),t=sA(t),e=aA({},e,n,Lg);var g,o,r=aA({},e.imports,n.imports,Lg),A=mA(r),s=je(r,A),C=0,I=e.interpolate||It,a="__p += '",l=dt((e.escape||It).source+"|"+I.source+"|"+(I===Q?it:It).source+"|"+(e.evaluate||It).source+"|$","g"),c="//# sourceURL="+(xt.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++zt+"]")+"\n";t.replace(l,(function(e,i,n,r,A,s){return n||(n=r),a+=t.slice(C,s).replace(at,ze),i&&(g=!0,a+="' +\n__e("+i+") +\n'"),A&&(o=!0,a+="';\n"+A+";\n__p += '"),n&&(a+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),C=s+e.length,e})),a+="';\n";var u=xt.call(e,"variable")&&e.variable;if(u){if(tt.test(u))throw new H("Invalid `variable` option passed into `_.template`")}else a="with (obj) {\n"+a+"\n}\n";a=(o?a.replace(E,""):a).replace(B,"$1").replace(F,"$1;"),a="function("+(u||"obj")+") {\n"+(u?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(g?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+a+"return __p\n}";var d=QA((function(){return lt(A,c+"return "+a).apply(void 0,s)}));if(d.source=a,Gr(d))throw d;return d},Mi.times=function(t,e){if((t=gA(t))<1||t>9007199254740991)return[];var i=4294967295,n=Ai(t,4294967295);t-=4294967295;for(var g=Te(n,e=Kg(e));++i<t;)e(i);return g},Mi.toFinite=nA,Mi.toInteger=gA,Mi.toLength=oA,Mi.toLower=function(t){return sA(t).toLowerCase()},Mi.toNumber=rA,Mi.toSafeInteger=function(t){return t?Hi(gA(t),-9007199254740991,9007199254740991):0===t?t:0},Mi.toString=sA,Mi.toUpper=function(t){return sA(t).toUpperCase()},Mi.trim=function(t,e,i){if((t=sA(t))&&(i||void 0===e))return _e(t);if(!t||!(e=qn(e)))return t;var n=Ve(t),g=Ve(e);return Ig(n,Be(n,g),Fe(n,g)+1).join("")},Mi.trimEnd=function(t,e,i){if((t=sA(t))&&(i||void 0===e))return t.slice(0,Xe(t)+1);if(!t||!(e=qn(e)))return t;var n=Ve(t);return Ig(n,0,Fe(n,Ve(e))+1).join("")},Mi.trimStart=function(t,e,i){if((t=sA(t))&&(i||void 0===e))return t.replace(X,"");if(!t||!(e=qn(e)))return t;var n=Ve(t);return Ig(n,Be(n,Ve(e))).join("")},Mi.truncate=function(t,e){var i=30,n="...";if(Pr(e)){var g="separator"in e?e.separator:g;i="length"in e?gA(e.length):i,n="omission"in e?qn(e.omission):n}var o=(t=sA(t)).length;if(Ge(t)){var r=Ve(t);o=r.length}if(i>=o)return t;var A=i-Ye(n);if(A<1)return n;var s=r?Ig(r,0,A).join(""):t.slice(0,A);if(void 0===g)return s+n;if(r&&(A+=s.length-A),Hr(g)){if(t.slice(A).search(g)){var C,I=s;for(g.global||(g=dt(g.source,sA(nt.exec(g))+"g")),g.lastIndex=0;C=g.exec(I);)var a=C.index;s=s.slice(0,void 0===a?A:a)}}else if(t.indexOf(qn(g),A)!=A){var l=s.lastIndexOf(g);l>-1&&(s=s.slice(0,l))}return s+n},Mi.unescape=function(t){return(t=sA(t))&&Z.test(t)?t.replace(R,He):t},Mi.uniqueId=function(t){var e=++wt;return sA(t)+e},Mi.upperCase=zA,Mi.upperFirst=GA,Mi.each=sr,Mi.eachRight=Cr,Mi.first=Ro,KA(Mi,(as={},Cn(Mi,(function(t,e){xt.call(Mi.prototype,e)||(as[e]=t)})),as),{chain:!1}),Mi.VERSION="4.17.21",Ae(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Mi[t].placeholder=Mi})),Ae(["drop","take"],(function(t,e){ji.prototype[t]=function(i){i=void 0===i?1:ri(gA(i),0);var n=this.__filtered__&&!e?new ji(this):this.clone();return n.__filtered__?n.__takeCount__=Ai(i,n.__takeCount__):n.__views__.push({size:Ai(i,4294967295),type:t+(n.__dir__<0?"Right":"")}),n},ji.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Ae(["filter","map","takeWhile"],(function(t,e){var i=e+1,n=1==i||3==i;ji.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Kg(t,3),type:i}),e.__filtered__=e.__filtered__||n,e}})),Ae(["head","last"],(function(t,e){var i="take"+(e?"Right":"");ji.prototype[t]=function(){return this[i](1).value()[0]}})),Ae(["initial","tail"],(function(t,e){var i="drop"+(e?"":"Right");ji.prototype[t]=function(){return this.__filtered__?new ji(this):this[i](1)}})),ji.prototype.compact=function(){return this.filter(VA)},ji.prototype.find=function(t){return this.filter(t).head()},ji.prototype.findLast=function(t){return this.reverse().find(t)},ji.prototype.invokeMap=zn((function(t,e){return"function"==typeof t?new ji(this):this.map((function(i){return vn(i,t,e)}))})),ji.prototype.reject=function(t){return this.filter(kr(Kg(t)))},ji.prototype.slice=function(t,e){t=gA(t);var i=this;return i.__filtered__&&(t>0||e<0)?new ji(i):(t<0?i=i.takeRight(-t):t&&(i=i.drop(t)),void 0!==e&&(i=(e=gA(e))<0?i.dropRight(-e):i.take(e-t)),i)},ji.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},ji.prototype.toArray=function(){return this.take(4294967295)},Cn(ji.prototype,(function(t,e){var i=/^(?:filter|find|map|reject)|While$/.test(e),n=/^(?:head|last)$/.test(e),g=Mi[n?"take"+("last"==e?"Right":""):e],o=n||/^find/.test(e);g&&(Mi.prototype[e]=function(){var e=this.__wrapped__,r=n?[1]:arguments,A=e instanceof ji,s=r[0],C=A||Br(e),I=function(t){var e=g.apply(Mi,ue([t],r));return n&&a?e[0]:e};C&&i&&"function"==typeof s&&1!=s.length&&(A=C=!1);var a=this.__chain__,l=!!this.__actions__.length,c=o&&!a,u=A&&!l;if(!o&&C){e=u?e:new ji(this);var d=t.apply(e,r);return d.__actions__.push({func:nr,args:[I],thisArg:void 0}),new Ni(d,a)}return c&&u?t.apply(this,r):(d=this.thru(I),c?n?d.value()[0]:d.value():d)})})),Ae(["pop","push","shift","sort","splice","unshift"],(function(t){var e=ft[t],i=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",n=/^(?:pop|shift)$/.test(t);Mi.prototype[t]=function(){var t=arguments;if(n&&!this.__chain__){var g=this.value();return e.apply(Br(g)?g:[],t)}return this[i]((function(i){return e.apply(Br(i)?i:[],t)}))}})),Cn(ji.prototype,(function(t,e){var i=Mi[e];if(i){var n=i.name+"";xt.call(vi,n)||(vi[n]=[]),vi[n].push({name:e,func:i})}})),vi[Tg(void 0,2).name]=[{name:"wrapper",func:void 0}],ji.prototype.clone=function(){var t=new ji(this.__wrapped__);return t.__actions__=fg(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=fg(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=fg(this.__views__),t},ji.prototype.reverse=function(){if(this.__filtered__){var t=new ji(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},ji.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,i=Br(t),n=e<0,g=i?t.length:0,o=function(t,e,i){var n=-1,g=i.length;for(;++n<g;){var o=i[n],r=o.size;switch(o.type){case"drop":t+=r;break;case"dropRight":e-=r;break;case"take":e=Ai(e,t+r);break;case"takeRight":t=ri(t,e-r)}}return{start:t,end:e}}(0,g,this.__views__),r=o.start,A=o.end,s=A-r,C=n?A:r-1,I=this.__iteratees__,a=I.length,l=0,c=Ai(s,this.__takeCount__);if(!i||!n&&g==s&&c==s)return ng(t,this.__actions__);var u=[];t:for(;s--&&l<c;){for(var d=-1,h=t[C+=e];++d<a;){var p=I[d],f=p.iteratee,v=p.type,y=f(h);if(2==v)h=y;else if(!y){if(1==v)continue t;break t}}u[l++]=h}return u},Mi.prototype.at=gr,Mi.prototype.chain=function(){return ir(this)},Mi.prototype.commit=function(){return new Ni(this.value(),this.__chain__)},Mi.prototype.next=function(){void 0===this.__values__&&(this.__values__=iA(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}},Mi.prototype.plant=function(t){for(var e,i=this;i instanceof _i;){var n=To(i);n.__index__=0,n.__values__=void 0,e?g.__wrapped__=n:e=n;var g=n;i=i.__wrapped__}return g.__wrapped__=t,e},Mi.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof ji){var e=t;return this.__actions__.length&&(e=new ji(this)),(e=e.reverse()).__actions__.push({func:nr,args:[Po],thisArg:void 0}),new Ni(e,this.__chain__)}return this.thru(Po)},Mi.prototype.toJSON=Mi.prototype.valueOf=Mi.prototype.value=function(){return ng(this.__wrapped__,this.__actions__)},Mi.prototype.first=Mi.prototype.head,Kt&&(Mi.prototype[Kt]=function(){return this}),Mi}();Vt._=Je,void 0===(g=function(){return Je}.call(e,i,e,n))||(n.exports=g)}).call(this)}).call(this,i(5),i(15)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,i){var n;"undefined"!=typeof self&&self,n=function(){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var g=e[n]={i:n,l:!1,exports:{}};return t[n].call(g.exports,g,g.exports,i),g.l=!0,g.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},i.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=0)}({"./dist/icons.json":
/*!*************************!*\
  !*** ./dist/icons.json ***!
  \*************************/
/*! exports provided: activity, airplay, alert-circle, alert-octagon, alert-triangle, align-center, align-justify, align-left, align-right, anchor, aperture, archive, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, award, bar-chart-2, bar-chart, battery-charging, battery, bell-off, bell, bluetooth, bold, book-open, book, bookmark, box, briefcase, calendar, camera-off, camera, cast, check-circle, check-square, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, chrome, circle, clipboard, clock, cloud-drizzle, cloud-lightning, cloud-off, cloud-rain, cloud-snow, cloud, code, codepen, codesandbox, coffee, columns, command, compass, copy, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, cpu, credit-card, crop, crosshair, database, delete, disc, divide-circle, divide-square, divide, dollar-sign, download-cloud, download, dribbble, droplet, edit-2, edit-3, edit, external-link, eye-off, eye, facebook, fast-forward, feather, figma, file-minus, file-plus, file-text, file, film, filter, flag, folder-minus, folder-plus, folder, framer, frown, gift, git-branch, git-commit, git-merge, git-pull-request, github, gitlab, globe, grid, hard-drive, hash, headphones, heart, help-circle, hexagon, home, image, inbox, info, instagram, italic, key, layers, layout, life-buoy, link-2, link, linkedin, list, loader, lock, log-in, log-out, mail, map-pin, map, maximize-2, maximize, meh, menu, message-circle, message-square, mic-off, mic, minimize-2, minimize, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, mouse-pointer, move, music, navigation-2, navigation, octagon, package, paperclip, pause-circle, pause, pen-tool, percent, phone-call, phone-forwarded, phone-incoming, phone-missed, phone-off, phone-outgoing, phone, pie-chart, play-circle, play, plus-circle, plus-square, plus, pocket, power, printer, radio, refresh-ccw, refresh-cw, repeat, rewind, rotate-ccw, rotate-cw, rss, save, scissors, search, send, server, settings, share-2, share, shield-off, shield, shopping-bag, shopping-cart, shuffle, sidebar, skip-back, skip-forward, slack, slash, sliders, smartphone, smile, speaker, square, star, stop-circle, sun, sunrise, sunset, tablet, tag, target, terminal, thermometer, thumbs-down, thumbs-up, toggle-left, toggle-right, tool, trash-2, trash, trello, trending-down, trending-up, triangle, truck, tv, twitch, twitter, type, umbrella, underline, unlock, upload-cloud, upload, user-check, user-minus, user-plus, user-x, user, users, video-off, video, voicemail, volume-1, volume-2, volume-x, volume, watch, wifi-off, wifi, wind, x-circle, x-octagon, x-square, x, youtube, zap-off, zap, zoom-in, zoom-out, default */function(t){t.exports={activity:'<polyline points="22 12 18 12 15 21 9 3 6 12 2 12"></polyline>',airplay:'<path d="M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1"></path><polygon points="12 15 17 21 7 21 12 15"></polygon>',"alert-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line>',"alert-octagon":'<polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"></polygon><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line>',"alert-triangle":'<path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path><line x1="12" y1="9" x2="12" y2="13"></line><line x1="12" y1="17" x2="12.01" y2="17"></line>',"align-center":'<line x1="18" y1="10" x2="6" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="18" y1="18" x2="6" y2="18"></line>',"align-justify":'<line x1="21" y1="10" x2="3" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="21" y1="18" x2="3" y2="18"></line>',"align-left":'<line x1="17" y1="10" x2="3" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="17" y1="18" x2="3" y2="18"></line>',"align-right":'<line x1="21" y1="10" x2="7" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="21" y1="18" x2="7" y2="18"></line>',anchor:'<circle cx="12" cy="5" r="3"></circle><line x1="12" y1="22" x2="12" y2="8"></line><path d="M5 12H2a10 10 0 0 0 20 0h-3"></path>',aperture:'<circle cx="12" cy="12" r="10"></circle><line x1="14.31" y1="8" x2="20.05" y2="17.94"></line><line x1="9.69" y1="8" x2="21.17" y2="8"></line><line x1="7.38" y1="12" x2="13.12" y2="2.06"></line><line x1="9.69" y1="16" x2="3.95" y2="6.06"></line><line x1="14.31" y1="16" x2="2.83" y2="16"></line><line x1="16.62" y1="12" x2="10.88" y2="21.94"></line>',archive:'<polyline points="21 8 21 21 3 21 3 8"></polyline><rect x="1" y="3" width="22" height="5"></rect><line x1="10" y1="12" x2="14" y2="12"></line>',"arrow-down-circle":'<circle cx="12" cy="12" r="10"></circle><polyline points="8 12 12 16 16 12"></polyline><line x1="12" y1="8" x2="12" y2="16"></line>',"arrow-down-left":'<line x1="17" y1="7" x2="7" y2="17"></line><polyline points="17 17 7 17 7 7"></polyline>',"arrow-down-right":'<line x1="7" y1="7" x2="17" y2="17"></line><polyline points="17 7 17 17 7 17"></polyline>',"arrow-down":'<line x1="12" y1="5" x2="12" y2="19"></line><polyline points="19 12 12 19 5 12"></polyline>',"arrow-left-circle":'<circle cx="12" cy="12" r="10"></circle><polyline points="12 8 8 12 12 16"></polyline><line x1="16" y1="12" x2="8" y2="12"></line>',"arrow-left":'<line x1="19" y1="12" x2="5" y2="12"></line><polyline points="12 19 5 12 12 5"></polyline>',"arrow-right-circle":'<circle cx="12" cy="12" r="10"></circle><polyline points="12 16 16 12 12 8"></polyline><line x1="8" y1="12" x2="16" y2="12"></line>',"arrow-right":'<line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline>',"arrow-up-circle":'<circle cx="12" cy="12" r="10"></circle><polyline points="16 12 12 8 8 12"></polyline><line x1="12" y1="16" x2="12" y2="8"></line>',"arrow-up-left":'<line x1="17" y1="17" x2="7" y2="7"></line><polyline points="7 17 7 7 17 7"></polyline>',"arrow-up-right":'<line x1="7" y1="17" x2="17" y2="7"></line><polyline points="7 7 17 7 17 17"></polyline>',"arrow-up":'<line x1="12" y1="19" x2="12" y2="5"></line><polyline points="5 12 12 5 19 12"></polyline>',"at-sign":'<circle cx="12" cy="12" r="4"></circle><path d="M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-3.92 7.94"></path>',award:'<circle cx="12" cy="8" r="7"></circle><polyline points="8.21 13.89 7 23 12 20 17 23 15.79 13.88"></polyline>',"bar-chart-2":'<line x1="18" y1="20" x2="18" y2="10"></line><line x1="12" y1="20" x2="12" y2="4"></line><line x1="6" y1="20" x2="6" y2="14"></line>',"bar-chart":'<line x1="12" y1="20" x2="12" y2="10"></line><line x1="18" y1="20" x2="18" y2="4"></line><line x1="6" y1="20" x2="6" y2="16"></line>',"battery-charging":'<path d="M5 18H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h3.19M15 6h2a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-3.19"></path><line x1="23" y1="13" x2="23" y2="11"></line><polyline points="11 6 7 12 13 12 9 18"></polyline>',battery:'<rect x="1" y="6" width="18" height="12" rx="2" ry="2"></rect><line x1="23" y1="13" x2="23" y2="11"></line>',"bell-off":'<path d="M13.73 21a2 2 0 0 1-3.46 0"></path><path d="M18.63 13A17.89 17.89 0 0 1 18 8"></path><path d="M6.26 6.26A5.86 5.86 0 0 0 6 8c0 7-3 9-3 9h14"></path><path d="M18 8a6 6 0 0 0-9.33-5"></path><line x1="1" y1="1" x2="23" y2="23"></line>',bell:'<path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"></path><path d="M13.73 21a2 2 0 0 1-3.46 0"></path>',bluetooth:'<polyline points="6.5 6.5 17.5 17.5 12 23 12 1 17.5 6.5 6.5 17.5"></polyline>',bold:'<path d="M6 4h8a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"></path><path d="M6 12h9a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"></path>',"book-open":'<path d="M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"></path><path d="M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"></path>',book:'<path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20"></path><path d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"></path>',bookmark:'<path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"></path>',box:'<path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line>',briefcase:'<rect x="2" y="7" width="20" height="14" rx="2" ry="2"></rect><path d="M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"></path>',calendar:'<rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line>',"camera-off":'<line x1="1" y1="1" x2="23" y2="23"></line><path d="M21 21H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h3m3-3h6l2 3h4a2 2 0 0 1 2 2v9.34m-7.72-2.06a4 4 0 1 1-5.56-5.56"></path>',camera:'<path d="M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"></path><circle cx="12" cy="13" r="4"></circle>',cast:'<path d="M2 16.1A5 5 0 0 1 5.9 20M2 12.05A9 9 0 0 1 9.95 20M2 8V6a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-6"></path><line x1="2" y1="20" x2="2.01" y2="20"></line>',"check-circle":'<path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline>',"check-square":'<polyline points="9 11 12 14 22 4"></polyline><path d="M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"></path>',check:'<polyline points="20 6 9 17 4 12"></polyline>',"chevron-down":'<polyline points="6 9 12 15 18 9"></polyline>',"chevron-left":'<polyline points="15 18 9 12 15 6"></polyline>',"chevron-right":'<polyline points="9 18 15 12 9 6"></polyline>',"chevron-up":'<polyline points="18 15 12 9 6 15"></polyline>',"chevrons-down":'<polyline points="7 13 12 18 17 13"></polyline><polyline points="7 6 12 11 17 6"></polyline>',"chevrons-left":'<polyline points="11 17 6 12 11 7"></polyline><polyline points="18 17 13 12 18 7"></polyline>',"chevrons-right":'<polyline points="13 17 18 12 13 7"></polyline><polyline points="6 17 11 12 6 7"></polyline>',"chevrons-up":'<polyline points="17 11 12 6 7 11"></polyline><polyline points="17 18 12 13 7 18"></polyline>',chrome:'<circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="4"></circle><line x1="21.17" y1="8" x2="12" y2="8"></line><line x1="3.95" y1="6.06" x2="8.54" y2="14"></line><line x1="10.88" y1="21.94" x2="15.46" y2="14"></line>',circle:'<circle cx="12" cy="12" r="10"></circle>',clipboard:'<path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"></path><rect x="8" y="2" width="8" height="4" rx="1" ry="1"></rect>',clock:'<circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline>',"cloud-drizzle":'<line x1="8" y1="19" x2="8" y2="21"></line><line x1="8" y1="13" x2="8" y2="15"></line><line x1="16" y1="19" x2="16" y2="21"></line><line x1="16" y1="13" x2="16" y2="15"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="12" y1="15" x2="12" y2="17"></line><path d="M20 16.58A5 5 0 0 0 18 7h-1.26A8 8 0 1 0 4 15.25"></path>',"cloud-lightning":'<path d="M19 16.9A5 5 0 0 0 18 7h-1.26a8 8 0 1 0-11.62 9"></path><polyline points="13 11 9 17 15 17 11 23"></polyline>',"cloud-off":'<path d="M22.61 16.95A5 5 0 0 0 18 10h-1.26a8 8 0 0 0-7.05-6M5 5a8 8 0 0 0 4 15h9a5 5 0 0 0 1.7-.3"></path><line x1="1" y1="1" x2="23" y2="23"></line>',"cloud-rain":'<line x1="16" y1="13" x2="16" y2="21"></line><line x1="8" y1="13" x2="8" y2="21"></line><line x1="12" y1="15" x2="12" y2="23"></line><path d="M20 16.58A5 5 0 0 0 18 7h-1.26A8 8 0 1 0 4 15.25"></path>',"cloud-snow":'<path d="M20 17.58A5 5 0 0 0 18 8h-1.26A8 8 0 1 0 4 16.25"></path><line x1="8" y1="16" x2="8.01" y2="16"></line><line x1="8" y1="20" x2="8.01" y2="20"></line><line x1="12" y1="18" x2="12.01" y2="18"></line><line x1="12" y1="22" x2="12.01" y2="22"></line><line x1="16" y1="16" x2="16.01" y2="16"></line><line x1="16" y1="20" x2="16.01" y2="20"></line>',cloud:'<path d="M18 10h-1.26A8 8 0 1 0 9 20h9a5 5 0 0 0 0-10z"></path>',code:'<polyline points="16 18 22 12 16 6"></polyline><polyline points="8 6 2 12 8 18"></polyline>',codepen:'<polygon points="12 2 22 8.5 22 15.5 12 22 2 15.5 2 8.5 12 2"></polygon><line x1="12" y1="22" x2="12" y2="15.5"></line><polyline points="22 8.5 12 15.5 2 8.5"></polyline><polyline points="2 15.5 12 8.5 22 15.5"></polyline><line x1="12" y1="2" x2="12" y2="8.5"></line>',codesandbox:'<path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="7.5 4.21 12 6.81 16.5 4.21"></polyline><polyline points="7.5 19.79 7.5 14.6 3 12"></polyline><polyline points="21 12 16.5 14.6 16.5 19.79"></polyline><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line>',coffee:'<path d="M18 8h1a4 4 0 0 1 0 8h-1"></path><path d="M2 8h16v9a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V8z"></path><line x1="6" y1="1" x2="6" y2="4"></line><line x1="10" y1="1" x2="10" y2="4"></line><line x1="14" y1="1" x2="14" y2="4"></line>',columns:'<path d="M12 3h7a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-7m0-18H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7m0-18v18"></path>',command:'<path d="M18 3a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3H6a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3V6a3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3h12a3 3 0 0 0 3-3 3 3 0 0 0-3-3z"></path>',compass:'<circle cx="12" cy="12" r="10"></circle><polygon points="16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76"></polygon>',copy:'<rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path>',"corner-down-left":'<polyline points="9 10 4 15 9 20"></polyline><path d="M20 4v7a4 4 0 0 1-4 4H4"></path>',"corner-down-right":'<polyline points="15 10 20 15 15 20"></polyline><path d="M4 4v7a4 4 0 0 0 4 4h12"></path>',"corner-left-down":'<polyline points="14 15 9 20 4 15"></polyline><path d="M20 4h-7a4 4 0 0 0-4 4v12"></path>',"corner-left-up":'<polyline points="14 9 9 4 4 9"></polyline><path d="M20 20h-7a4 4 0 0 1-4-4V4"></path>',"corner-right-down":'<polyline points="10 15 15 20 20 15"></polyline><path d="M4 4h7a4 4 0 0 1 4 4v12"></path>',"corner-right-up":'<polyline points="10 9 15 4 20 9"></polyline><path d="M4 20h7a4 4 0 0 0 4-4V4"></path>',"corner-up-left":'<polyline points="9 14 4 9 9 4"></polyline><path d="M20 20v-7a4 4 0 0 0-4-4H4"></path>',"corner-up-right":'<polyline points="15 14 20 9 15 4"></polyline><path d="M4 20v-7a4 4 0 0 1 4-4h12"></path>',cpu:'<rect x="4" y="4" width="16" height="16" rx="2" ry="2"></rect><rect x="9" y="9" width="6" height="6"></rect><line x1="9" y1="1" x2="9" y2="4"></line><line x1="15" y1="1" x2="15" y2="4"></line><line x1="9" y1="20" x2="9" y2="23"></line><line x1="15" y1="20" x2="15" y2="23"></line><line x1="20" y1="9" x2="23" y2="9"></line><line x1="20" y1="14" x2="23" y2="14"></line><line x1="1" y1="9" x2="4" y2="9"></line><line x1="1" y1="14" x2="4" y2="14"></line>',"credit-card":'<rect x="1" y="4" width="22" height="16" rx="2" ry="2"></rect><line x1="1" y1="10" x2="23" y2="10"></line>',crop:'<path d="M6.13 1L6 16a2 2 0 0 0 2 2h15"></path><path d="M1 6.13L16 6a2 2 0 0 1 2 2v15"></path>',crosshair:'<circle cx="12" cy="12" r="10"></circle><line x1="22" y1="12" x2="18" y2="12"></line><line x1="6" y1="12" x2="2" y2="12"></line><line x1="12" y1="6" x2="12" y2="2"></line><line x1="12" y1="22" x2="12" y2="18"></line>',database:'<ellipse cx="12" cy="5" rx="9" ry="3"></ellipse><path d="M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"></path><path d="M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"></path>',delete:'<path d="M21 4H8l-7 8 7 8h13a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2z"></path><line x1="18" y1="9" x2="12" y2="15"></line><line x1="12" y1="9" x2="18" y2="15"></line>',disc:'<circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="3"></circle>',"divide-circle":'<line x1="8" y1="12" x2="16" y2="12"></line><line x1="12" y1="16" x2="12" y2="16"></line><line x1="12" y1="8" x2="12" y2="8"></line><circle cx="12" cy="12" r="10"></circle>',"divide-square":'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="8" y1="12" x2="16" y2="12"></line><line x1="12" y1="16" x2="12" y2="16"></line><line x1="12" y1="8" x2="12" y2="8"></line>',divide:'<circle cx="12" cy="6" r="2"></circle><line x1="5" y1="12" x2="19" y2="12"></line><circle cx="12" cy="18" r="2"></circle>',"dollar-sign":'<line x1="12" y1="1" x2="12" y2="23"></line><path d="M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"></path>',"download-cloud":'<polyline points="8 17 12 21 16 17"></polyline><line x1="12" y1="12" x2="12" y2="21"></line><path d="M20.88 18.09A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.29"></path>',download:'<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="7 10 12 15 17 10"></polyline><line x1="12" y1="15" x2="12" y2="3"></line>',dribbble:'<circle cx="12" cy="12" r="10"></circle><path d="M8.56 2.75c4.37 6.03 6.02 9.42 8.03 17.72m2.54-15.38c-3.72 4.35-8.94 5.66-16.88 5.85m19.5 1.9c-3.5-.93-6.63-.82-8.94 0-2.58.92-5.01 2.86-7.44 6.32"></path>',droplet:'<path d="M12 2.69l5.66 5.66a8 8 0 1 1-11.31 0z"></path>',"edit-2":'<path d="M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"></path>',"edit-3":'<path d="M12 20h9"></path><path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"></path>',edit:'<path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"></path><path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"></path>',"external-link":'<path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path><polyline points="15 3 21 3 21 9"></polyline><line x1="10" y1="14" x2="21" y2="3"></line>',"eye-off":'<path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"></path><line x1="1" y1="1" x2="23" y2="23"></line>',eye:'<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle>',facebook:'<path d="M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"></path>',"fast-forward":'<polygon points="13 19 22 12 13 5 13 19"></polygon><polygon points="2 19 11 12 2 5 2 19"></polygon>',feather:'<path d="M20.24 12.24a6 6 0 0 0-8.49-8.49L5 10.5V19h8.5z"></path><line x1="16" y1="8" x2="2" y2="22"></line><line x1="17.5" y1="15" x2="9" y2="15"></line>',figma:'<path d="M5 5.5A3.5 3.5 0 0 1 8.5 2H12v7H8.5A3.5 3.5 0 0 1 5 5.5z"></path><path d="M12 2h3.5a3.5 3.5 0 1 1 0 7H12V2z"></path><path d="M12 12.5a3.5 3.5 0 1 1 7 0 3.5 3.5 0 1 1-7 0z"></path><path d="M5 19.5A3.5 3.5 0 0 1 8.5 16H12v3.5a3.5 3.5 0 1 1-7 0z"></path><path d="M5 12.5A3.5 3.5 0 0 1 8.5 9H12v7H8.5A3.5 3.5 0 0 1 5 12.5z"></path>',"file-minus":'<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="9" y1="15" x2="15" y2="15"></line>',"file-plus":'<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="12" y1="18" x2="12" y2="12"></line><line x1="9" y1="15" x2="15" y2="15"></line>',"file-text":'<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="16" y1="13" x2="8" y2="13"></line><line x1="16" y1="17" x2="8" y2="17"></line><polyline points="10 9 9 9 8 9"></polyline>',file:'<path d="M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"></path><polyline points="13 2 13 9 20 9"></polyline>',film:'<rect x="2" y="2" width="20" height="20" rx="2.18" ry="2.18"></rect><line x1="7" y1="2" x2="7" y2="22"></line><line x1="17" y1="2" x2="17" y2="22"></line><line x1="2" y1="12" x2="22" y2="12"></line><line x1="2" y1="7" x2="7" y2="7"></line><line x1="2" y1="17" x2="7" y2="17"></line><line x1="17" y1="17" x2="22" y2="17"></line><line x1="17" y1="7" x2="22" y2="7"></line>',filter:'<polygon points="22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"></polygon>',flag:'<path d="M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z"></path><line x1="4" y1="22" x2="4" y2="15"></line>',"folder-minus":'<path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path><line x1="9" y1="14" x2="15" y2="14"></line>',"folder-plus":'<path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path><line x1="12" y1="11" x2="12" y2="17"></line><line x1="9" y1="14" x2="15" y2="14"></line>',folder:'<path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path>',framer:'<path d="M5 16V9h14V2H5l14 14h-7m-7 0l7 7v-7m-7 0h7"></path>',frown:'<circle cx="12" cy="12" r="10"></circle><path d="M16 16s-1.5-2-4-2-4 2-4 2"></path><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line>',gift:'<polyline points="20 12 20 22 4 22 4 12"></polyline><rect x="2" y="7" width="20" height="5"></rect><line x1="12" y1="22" x2="12" y2="7"></line><path d="M12 7H7.5a2.5 2.5 0 0 1 0-5C11 2 12 7 12 7z"></path><path d="M12 7h4.5a2.5 2.5 0 0 0 0-5C13 2 12 7 12 7z"></path>',"git-branch":'<line x1="6" y1="3" x2="6" y2="15"></line><circle cx="18" cy="6" r="3"></circle><circle cx="6" cy="18" r="3"></circle><path d="M18 9a9 9 0 0 1-9 9"></path>',"git-commit":'<circle cx="12" cy="12" r="4"></circle><line x1="1.05" y1="12" x2="7" y2="12"></line><line x1="17.01" y1="12" x2="22.96" y2="12"></line>',"git-merge":'<circle cx="18" cy="18" r="3"></circle><circle cx="6" cy="6" r="3"></circle><path d="M6 21V9a9 9 0 0 0 9 9"></path>',"git-pull-request":'<circle cx="18" cy="18" r="3"></circle><circle cx="6" cy="6" r="3"></circle><path d="M13 6h3a2 2 0 0 1 2 2v7"></path><line x1="6" y1="9" x2="6" y2="21"></line>',github:'<path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"></path>',gitlab:'<path d="M22.65 14.39L12 22.13 1.35 14.39a.84.84 0 0 1-.3-.94l1.22-3.78 2.44-7.51A.42.42 0 0 1 4.82 2a.43.43 0 0 1 .58 0 .42.42 0 0 1 .11.18l2.44 7.49h8.1l2.44-7.51A.42.42 0 0 1 18.6 2a.43.43 0 0 1 .58 0 .42.42 0 0 1 .11.18l2.44 7.51L23 13.45a.84.84 0 0 1-.35.94z"></path>',globe:'<circle cx="12" cy="12" r="10"></circle><line x1="2" y1="12" x2="22" y2="12"></line><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"></path>',grid:'<rect x="3" y="3" width="7" height="7"></rect><rect x="14" y="3" width="7" height="7"></rect><rect x="14" y="14" width="7" height="7"></rect><rect x="3" y="14" width="7" height="7"></rect>',"hard-drive":'<line x1="22" y1="12" x2="2" y2="12"></line><path d="M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"></path><line x1="6" y1="16" x2="6.01" y2="16"></line><line x1="10" y1="16" x2="10.01" y2="16"></line>',hash:'<line x1="4" y1="9" x2="20" y2="9"></line><line x1="4" y1="15" x2="20" y2="15"></line><line x1="10" y1="3" x2="8" y2="21"></line><line x1="16" y1="3" x2="14" y2="21"></line>',headphones:'<path d="M3 18v-6a9 9 0 0 1 18 0v6"></path><path d="M21 19a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3zM3 19a2 2 0 0 0 2 2h1a2 2 0 0 0 2-2v-3a2 2 0 0 0-2-2H3z"></path>',heart:'<path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"></path>',"help-circle":'<circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><line x1="12" y1="17" x2="12.01" y2="17"></line>',hexagon:'<path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path>',home:'<path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline>',image:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><circle cx="8.5" cy="8.5" r="1.5"></circle><polyline points="21 15 16 10 5 21"></polyline>',inbox:'<polyline points="22 12 16 12 14 15 10 15 8 12 2 12"></polyline><path d="M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"></path>',info:'<circle cx="12" cy="12" r="10"></circle><line x1="12" y1="16" x2="12" y2="12"></line><line x1="12" y1="8" x2="12.01" y2="8"></line>',instagram:'<rect x="2" y="2" width="20" height="20" rx="5" ry="5"></rect><path d="M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"></path><line x1="17.5" y1="6.5" x2="17.51" y2="6.5"></line>',italic:'<line x1="19" y1="4" x2="10" y2="4"></line><line x1="14" y1="20" x2="5" y2="20"></line><line x1="15" y1="4" x2="9" y2="20"></line>',key:'<path d="M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4"></path>',layers:'<polygon points="12 2 2 7 12 12 22 7 12 2"></polygon><polyline points="2 17 12 22 22 17"></polyline><polyline points="2 12 12 17 22 12"></polyline>',layout:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="3" y1="9" x2="21" y2="9"></line><line x1="9" y1="21" x2="9" y2="9"></line>',"life-buoy":'<circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="4"></circle><line x1="4.93" y1="4.93" x2="9.17" y2="9.17"></line><line x1="14.83" y1="14.83" x2="19.07" y2="19.07"></line><line x1="14.83" y1="9.17" x2="19.07" y2="4.93"></line><line x1="14.83" y1="9.17" x2="18.36" y2="5.64"></line><line x1="4.93" y1="19.07" x2="9.17" y2="14.83"></line>',"link-2":'<path d="M15 7h3a5 5 0 0 1 5 5 5 5 0 0 1-5 5h-3m-6 0H6a5 5 0 0 1-5-5 5 5 0 0 1 5-5h3"></path><line x1="8" y1="12" x2="16" y2="12"></line>',link:'<path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path>',linkedin:'<path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"></path><rect x="2" y="9" width="4" height="12"></rect><circle cx="4" cy="4" r="2"></circle>',list:'<line x1="8" y1="6" x2="21" y2="6"></line><line x1="8" y1="12" x2="21" y2="12"></line><line x1="8" y1="18" x2="21" y2="18"></line><line x1="3" y1="6" x2="3.01" y2="6"></line><line x1="3" y1="12" x2="3.01" y2="12"></line><line x1="3" y1="18" x2="3.01" y2="18"></line>',loader:'<line x1="12" y1="2" x2="12" y2="6"></line><line x1="12" y1="18" x2="12" y2="22"></line><line x1="4.93" y1="4.93" x2="7.76" y2="7.76"></line><line x1="16.24" y1="16.24" x2="19.07" y2="19.07"></line><line x1="2" y1="12" x2="6" y2="12"></line><line x1="18" y1="12" x2="22" y2="12"></line><line x1="4.93" y1="19.07" x2="7.76" y2="16.24"></line><line x1="16.24" y1="7.76" x2="19.07" y2="4.93"></line>',lock:'<rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 10 0v4"></path>',"log-in":'<path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"></path><polyline points="10 17 15 12 10 7"></polyline><line x1="15" y1="12" x2="3" y2="12"></line>',"log-out":'<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"></path><polyline points="16 17 21 12 16 7"></polyline><line x1="21" y1="12" x2="9" y2="12"></line>',mail:'<path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path><polyline points="22,6 12,13 2,6"></polyline>',"map-pin":'<path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle>',map:'<polygon points="1 6 1 22 8 18 16 22 23 18 23 2 16 6 8 2 1 6"></polygon><line x1="8" y1="2" x2="8" y2="18"></line><line x1="16" y1="6" x2="16" y2="22"></line>',"maximize-2":'<polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" y1="3" x2="14" y2="10"></line><line x1="3" y1="21" x2="10" y2="14"></line>',maximize:'<path d="M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"></path>',meh:'<circle cx="12" cy="12" r="10"></circle><line x1="8" y1="15" x2="16" y2="15"></line><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line>',menu:'<line x1="3" y1="12" x2="21" y2="12"></line><line x1="3" y1="6" x2="21" y2="6"></line><line x1="3" y1="18" x2="21" y2="18"></line>',"message-circle":'<path d="M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"></path>',"message-square":'<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path>',"mic-off":'<line x1="1" y1="1" x2="23" y2="23"></line><path d="M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6"></path><path d="M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23"></path><line x1="12" y1="19" x2="12" y2="23"></line><line x1="8" y1="23" x2="16" y2="23"></line>',mic:'<path d="M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"></path><path d="M19 10v2a7 7 0 0 1-14 0v-2"></path><line x1="12" y1="19" x2="12" y2="23"></line><line x1="8" y1="23" x2="16" y2="23"></line>',"minimize-2":'<polyline points="4 14 10 14 10 20"></polyline><polyline points="20 10 14 10 14 4"></polyline><line x1="14" y1="10" x2="21" y2="3"></line><line x1="3" y1="21" x2="10" y2="14"></line>',minimize:'<path d="M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3"></path>',"minus-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="8" y1="12" x2="16" y2="12"></line>',"minus-square":'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="8" y1="12" x2="16" y2="12"></line>',minus:'<line x1="5" y1="12" x2="19" y2="12"></line>',monitor:'<rect x="2" y="3" width="20" height="14" rx="2" ry="2"></rect><line x1="8" y1="21" x2="16" y2="21"></line><line x1="12" y1="17" x2="12" y2="21"></line>',moon:'<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>',"more-horizontal":'<circle cx="12" cy="12" r="1"></circle><circle cx="19" cy="12" r="1"></circle><circle cx="5" cy="12" r="1"></circle>',"more-vertical":'<circle cx="12" cy="12" r="1"></circle><circle cx="12" cy="5" r="1"></circle><circle cx="12" cy="19" r="1"></circle>',"mouse-pointer":'<path d="M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z"></path><path d="M13 13l6 6"></path>',move:'<polyline points="5 9 2 12 5 15"></polyline><polyline points="9 5 12 2 15 5"></polyline><polyline points="15 19 12 22 9 19"></polyline><polyline points="19 9 22 12 19 15"></polyline><line x1="2" y1="12" x2="22" y2="12"></line><line x1="12" y1="2" x2="12" y2="22"></line>',music:'<path d="M9 18V5l12-2v13"></path><circle cx="6" cy="18" r="3"></circle><circle cx="18" cy="16" r="3"></circle>',"navigation-2":'<polygon points="12 2 19 21 12 17 5 21 12 2"></polygon>',navigation:'<polygon points="3 11 22 2 13 21 11 13 3 11"></polygon>',octagon:'<polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"></polygon>',package:'<line x1="16.5" y1="9.4" x2="7.5" y2="4.21"></line><path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line>',paperclip:'<path d="M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"></path>',"pause-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="10" y1="15" x2="10" y2="9"></line><line x1="14" y1="15" x2="14" y2="9"></line>',pause:'<rect x="6" y="4" width="4" height="16"></rect><rect x="14" y="4" width="4" height="16"></rect>',"pen-tool":'<path d="M12 19l7-7 3 3-7 7-3-3z"></path><path d="M18 13l-1.5-7.5L2 2l3.5 14.5L13 18l5-5z"></path><path d="M2 2l7.586 7.586"></path><circle cx="11" cy="11" r="2"></circle>',percent:'<line x1="19" y1="5" x2="5" y2="19"></line><circle cx="6.5" cy="6.5" r="2.5"></circle><circle cx="17.5" cy="17.5" r="2.5"></circle>',"phone-call":'<path d="M15.05 5A5 5 0 0 1 19 8.95M15.05 1A9 9 0 0 1 23 8.94m-1 7.98v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',"phone-forwarded":'<polyline points="19 1 23 5 19 9"></polyline><line x1="15" y1="5" x2="23" y2="5"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',"phone-incoming":'<polyline points="16 2 16 8 22 8"></polyline><line x1="23" y1="1" x2="16" y2="8"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',"phone-missed":'<line x1="23" y1="1" x2="17" y2="7"></line><line x1="17" y1="1" x2="23" y2="7"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',"phone-off":'<path d="M10.68 13.31a16 16 0 0 0 3.41 2.6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7 2 2 0 0 1 1.72 2v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.42 19.42 0 0 1-3.33-2.67m-2.67-3.34a19.79 19.79 0 0 1-3.07-8.63A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91"></path><line x1="23" y1="1" x2="1" y2="23"></line>',"phone-outgoing":'<polyline points="23 7 23 1 17 1"></polyline><line x1="16" y1="8" x2="23" y2="1"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',phone:'<path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',"pie-chart":'<path d="M21.21 15.89A10 10 0 1 1 8 2.83"></path><path d="M22 12A10 10 0 0 0 12 2v10z"></path>',"play-circle":'<circle cx="12" cy="12" r="10"></circle><polygon points="10 8 16 12 10 16 10 8"></polygon>',play:'<polygon points="5 3 19 12 5 21 5 3"></polygon>',"plus-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="16"></line><line x1="8" y1="12" x2="16" y2="12"></line>',"plus-square":'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="12" y1="8" x2="12" y2="16"></line><line x1="8" y1="12" x2="16" y2="12"></line>',plus:'<line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line>',pocket:'<path d="M4 3h16a2 2 0 0 1 2 2v6a10 10 0 0 1-10 10A10 10 0 0 1 2 11V5a2 2 0 0 1 2-2z"></path><polyline points="8 10 12 14 16 10"></polyline>',power:'<path d="M18.36 6.64a9 9 0 1 1-12.73 0"></path><line x1="12" y1="2" x2="12" y2="12"></line>',printer:'<polyline points="6 9 6 2 18 2 18 9"></polyline><path d="M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2"></path><rect x="6" y="14" width="12" height="8"></rect>',radio:'<circle cx="12" cy="12" r="2"></circle><path d="M16.24 7.76a6 6 0 0 1 0 8.49m-8.48-.01a6 6 0 0 1 0-8.49m11.31-2.82a10 10 0 0 1 0 14.14m-14.14 0a10 10 0 0 1 0-14.14"></path>',"refresh-ccw":'<polyline points="1 4 1 10 7 10"></polyline><polyline points="23 20 23 14 17 14"></polyline><path d="M20.49 9A9 9 0 0 0 5.64 5.64L1 10m22 4l-4.64 4.36A9 9 0 0 1 3.51 15"></path>',"refresh-cw":'<polyline points="23 4 23 10 17 10"></polyline><polyline points="1 20 1 14 7 14"></polyline><path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"></path>',repeat:'<polyline points="17 1 21 5 17 9"></polyline><path d="M3 11V9a4 4 0 0 1 4-4h14"></path><polyline points="7 23 3 19 7 15"></polyline><path d="M21 13v2a4 4 0 0 1-4 4H3"></path>',rewind:'<polygon points="11 19 2 12 11 5 11 19"></polygon><polygon points="22 19 13 12 22 5 22 19"></polygon>',"rotate-ccw":'<polyline points="1 4 1 10 7 10"></polyline><path d="M3.51 15a9 9 0 1 0 2.13-9.36L1 10"></path>',"rotate-cw":'<polyline points="23 4 23 10 17 10"></polyline><path d="M20.49 15a9 9 0 1 1-2.12-9.36L23 10"></path>',rss:'<path d="M4 11a9 9 0 0 1 9 9"></path><path d="M4 4a16 16 0 0 1 16 16"></path><circle cx="5" cy="19" r="1"></circle>',save:'<path d="M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"></path><polyline points="17 21 17 13 7 13 7 21"></polyline><polyline points="7 3 7 8 15 8"></polyline>',scissors:'<circle cx="6" cy="6" r="3"></circle><circle cx="6" cy="18" r="3"></circle><line x1="20" y1="4" x2="8.12" y2="15.88"></line><line x1="14.47" y1="14.48" x2="20" y2="20"></line><line x1="8.12" y1="8.12" x2="12" y2="12"></line>',search:'<circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line>',send:'<line x1="22" y1="2" x2="11" y2="13"></line><polygon points="22 2 15 22 11 13 2 9 22 2"></polygon>',server:'<rect x="2" y="2" width="20" height="8" rx="2" ry="2"></rect><rect x="2" y="14" width="20" height="8" rx="2" ry="2"></rect><line x1="6" y1="6" x2="6.01" y2="6"></line><line x1="6" y1="18" x2="6.01" y2="18"></line>',settings:'<circle cx="12" cy="12" r="3"></circle><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path>',"share-2":'<circle cx="18" cy="5" r="3"></circle><circle cx="6" cy="12" r="3"></circle><circle cx="18" cy="19" r="3"></circle><line x1="8.59" y1="13.51" x2="15.42" y2="17.49"></line><line x1="15.41" y1="6.51" x2="8.59" y2="10.49"></line>',share:'<path d="M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8"></path><polyline points="16 6 12 2 8 6"></polyline><line x1="12" y1="2" x2="12" y2="15"></line>',"shield-off":'<path d="M19.69 14a6.9 6.9 0 0 0 .31-2V5l-8-3-3.16 1.18"></path><path d="M4.73 4.73L4 5v7c0 6 8 10 8 10a20.29 20.29 0 0 0 5.62-4.38"></path><line x1="1" y1="1" x2="23" y2="23"></line>',shield:'<path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"></path>',"shopping-bag":'<path d="M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z"></path><line x1="3" y1="6" x2="21" y2="6"></line><path d="M16 10a4 4 0 0 1-8 0"></path>',"shopping-cart":'<circle cx="9" cy="21" r="1"></circle><circle cx="20" cy="21" r="1"></circle><path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"></path>',shuffle:'<polyline points="16 3 21 3 21 8"></polyline><line x1="4" y1="20" x2="21" y2="3"></line><polyline points="21 16 21 21 16 21"></polyline><line x1="15" y1="15" x2="21" y2="21"></line><line x1="4" y1="4" x2="9" y2="9"></line>',sidebar:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="9" y1="3" x2="9" y2="21"></line>',"skip-back":'<polygon points="19 20 9 12 19 4 19 20"></polygon><line x1="5" y1="19" x2="5" y2="5"></line>',"skip-forward":'<polygon points="5 4 15 12 5 20 5 4"></polygon><line x1="19" y1="5" x2="19" y2="19"></line>',slack:'<path d="M14.5 10c-.83 0-1.5-.67-1.5-1.5v-5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5v5c0 .83-.67 1.5-1.5 1.5z"></path><path d="M20.5 10H19V8.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"></path><path d="M9.5 14c.83 0 1.5.67 1.5 1.5v5c0 .83-.67 1.5-1.5 1.5S8 21.33 8 20.5v-5c0-.83.67-1.5 1.5-1.5z"></path><path d="M3.5 14H5v1.5c0 .83-.67 1.5-1.5 1.5S2 16.33 2 15.5 2.67 14 3.5 14z"></path><path d="M14 14.5c0-.83.67-1.5 1.5-1.5h5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-5c-.83 0-1.5-.67-1.5-1.5z"></path><path d="M15.5 19H14v1.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5-.67-1.5-1.5-1.5z"></path><path d="M10 9.5C10 8.67 9.33 8 8.5 8h-5C2.67 8 2 8.67 2 9.5S2.67 11 3.5 11h5c.83 0 1.5-.67 1.5-1.5z"></path><path d="M8.5 5H10V3.5C10 2.67 9.33 2 8.5 2S7 2.67 7 3.5 7.67 5 8.5 5z"></path>',slash:'<circle cx="12" cy="12" r="10"></circle><line x1="4.93" y1="4.93" x2="19.07" y2="19.07"></line>',sliders:'<line x1="4" y1="21" x2="4" y2="14"></line><line x1="4" y1="10" x2="4" y2="3"></line><line x1="12" y1="21" x2="12" y2="12"></line><line x1="12" y1="8" x2="12" y2="3"></line><line x1="20" y1="21" x2="20" y2="16"></line><line x1="20" y1="12" x2="20" y2="3"></line><line x1="1" y1="14" x2="7" y2="14"></line><line x1="9" y1="8" x2="15" y2="8"></line><line x1="17" y1="16" x2="23" y2="16"></line>',smartphone:'<rect x="5" y="2" width="14" height="20" rx="2" ry="2"></rect><line x1="12" y1="18" x2="12.01" y2="18"></line>',smile:'<circle cx="12" cy="12" r="10"></circle><path d="M8 14s1.5 2 4 2 4-2 4-2"></path><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line>',speaker:'<rect x="4" y="2" width="16" height="20" rx="2" ry="2"></rect><circle cx="12" cy="14" r="4"></circle><line x1="12" y1="6" x2="12.01" y2="6"></line>',square:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>',star:'<polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"></polygon>',"stop-circle":'<circle cx="12" cy="12" r="10"></circle><rect x="9" y="9" width="6" height="6"></rect>',sun:'<circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>',sunrise:'<path d="M17 18a5 5 0 0 0-10 0"></path><line x1="12" y1="2" x2="12" y2="9"></line><line x1="4.22" y1="10.22" x2="5.64" y2="11.64"></line><line x1="1" y1="18" x2="3" y2="18"></line><line x1="21" y1="18" x2="23" y2="18"></line><line x1="18.36" y1="11.64" x2="19.78" y2="10.22"></line><line x1="23" y1="22" x2="1" y2="22"></line><polyline points="8 6 12 2 16 6"></polyline>',sunset:'<path d="M17 18a5 5 0 0 0-10 0"></path><line x1="12" y1="9" x2="12" y2="2"></line><line x1="4.22" y1="10.22" x2="5.64" y2="11.64"></line><line x1="1" y1="18" x2="3" y2="18"></line><line x1="21" y1="18" x2="23" y2="18"></line><line x1="18.36" y1="11.64" x2="19.78" y2="10.22"></line><line x1="23" y1="22" x2="1" y2="22"></line><polyline points="16 5 12 9 8 5"></polyline>',tablet:'<rect x="4" y="2" width="16" height="20" rx="2" ry="2"></rect><line x1="12" y1="18" x2="12.01" y2="18"></line>',tag:'<path d="M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z"></path><line x1="7" y1="7" x2="7.01" y2="7"></line>',target:'<circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="6"></circle><circle cx="12" cy="12" r="2"></circle>',terminal:'<polyline points="4 17 10 11 4 5"></polyline><line x1="12" y1="19" x2="20" y2="19"></line>',thermometer:'<path d="M14 14.76V3.5a2.5 2.5 0 0 0-5 0v11.26a4.5 4.5 0 1 0 5 0z"></path>',"thumbs-down":'<path d="M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17"></path>',"thumbs-up":'<path d="M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3"></path>',"toggle-left":'<rect x="1" y="5" width="22" height="14" rx="7" ry="7"></rect><circle cx="8" cy="12" r="3"></circle>',"toggle-right":'<rect x="1" y="5" width="22" height="14" rx="7" ry="7"></rect><circle cx="16" cy="12" r="3"></circle>',tool:'<path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"></path>',"trash-2":'<polyline points="3 6 5 6 21 6"></polyline><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path><line x1="10" y1="11" x2="10" y2="17"></line><line x1="14" y1="11" x2="14" y2="17"></line>',trash:'<polyline points="3 6 5 6 21 6"></polyline><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path>',trello:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><rect x="7" y="7" width="3" height="9"></rect><rect x="14" y="7" width="3" height="5"></rect>',"trending-down":'<polyline points="23 18 13.5 8.5 8.5 13.5 1 6"></polyline><polyline points="17 18 23 18 23 12"></polyline>',"trending-up":'<polyline points="23 6 13.5 15.5 8.5 10.5 1 18"></polyline><polyline points="17 6 23 6 23 12"></polyline>',triangle:'<path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path>',truck:'<rect x="1" y="3" width="15" height="13"></rect><polygon points="16 8 20 8 23 11 23 16 16 16 16 8"></polygon><circle cx="5.5" cy="18.5" r="2.5"></circle><circle cx="18.5" cy="18.5" r="2.5"></circle>',tv:'<rect x="2" y="7" width="20" height="15" rx="2" ry="2"></rect><polyline points="17 2 12 7 7 2"></polyline>',twitch:'<path d="M21 2H3v16h5v4l4-4h5l4-4V2zm-10 9V7m5 4V7"></path>',twitter:'<path d="M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z"></path>',type:'<polyline points="4 7 4 4 20 4 20 7"></polyline><line x1="9" y1="20" x2="15" y2="20"></line><line x1="12" y1="4" x2="12" y2="20"></line>',umbrella:'<path d="M23 12a11.05 11.05 0 0 0-22 0zm-5 7a3 3 0 0 1-6 0v-7"></path>',underline:'<path d="M6 3v7a6 6 0 0 0 6 6 6 6 0 0 0 6-6V3"></path><line x1="4" y1="21" x2="20" y2="21"></line>',unlock:'<rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 9.9-1"></path>',"upload-cloud":'<polyline points="16 16 12 12 8 16"></polyline><line x1="12" y1="12" x2="12" y2="21"></line><path d="M20.39 18.39A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.3"></path><polyline points="16 16 12 12 8 16"></polyline>',upload:'<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="17 8 12 3 7 8"></polyline><line x1="12" y1="3" x2="12" y2="15"></line>',"user-check":'<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><polyline points="17 11 19 13 23 9"></polyline>',"user-minus":'<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><line x1="23" y1="11" x2="17" y2="11"></line>',"user-plus":'<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><line x1="20" y1="8" x2="20" y2="14"></line><line x1="23" y1="11" x2="17" y2="11"></line>',"user-x":'<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><line x1="18" y1="8" x2="23" y2="13"></line><line x1="23" y1="8" x2="18" y2="13"></line>',user:'<path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle>',users:'<path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="9" cy="7" r="4"></circle><path d="M23 21v-2a4 4 0 0 0-3-3.87"></path><path d="M16 3.13a4 4 0 0 1 0 7.75"></path>',"video-off":'<path d="M16 16v1a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h2m5.66 0H14a2 2 0 0 1 2 2v3.34l1 1L23 7v10"></path><line x1="1" y1="1" x2="23" y2="23"></line>',video:'<polygon points="23 7 16 12 23 17 23 7"></polygon><rect x="1" y="5" width="15" height="14" rx="2" ry="2"></rect>',voicemail:'<circle cx="5.5" cy="11.5" r="4.5"></circle><circle cx="18.5" cy="11.5" r="4.5"></circle><line x1="5.5" y1="16" x2="18.5" y2="16"></line>',"volume-1":'<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><path d="M15.54 8.46a5 5 0 0 1 0 7.07"></path>',"volume-2":'<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><path d="M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07"></path>',"volume-x":'<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><line x1="23" y1="9" x2="17" y2="15"></line><line x1="17" y1="9" x2="23" y2="15"></line>',volume:'<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon>',watch:'<circle cx="12" cy="12" r="7"></circle><polyline points="12 9 12 12 13.5 13.5"></polyline><path d="M16.51 17.35l-.35 3.83a2 2 0 0 1-2 1.82H9.83a2 2 0 0 1-2-1.82l-.35-3.83m.01-10.7l.35-3.83A2 2 0 0 1 9.83 1h4.35a2 2 0 0 1 2 1.82l.35 3.83"></path>',"wifi-off":'<line x1="1" y1="1" x2="23" y2="23"></line><path d="M16.72 11.06A10.94 10.94 0 0 1 19 12.55"></path><path d="M5 12.55a10.94 10.94 0 0 1 5.17-2.39"></path><path d="M10.71 5.05A16 16 0 0 1 22.58 9"></path><path d="M1.42 9a15.91 15.91 0 0 1 4.7-2.88"></path><path d="M8.53 16.11a6 6 0 0 1 6.95 0"></path><line x1="12" y1="20" x2="12.01" y2="20"></line>',wifi:'<path d="M5 12.55a11 11 0 0 1 14.08 0"></path><path d="M1.42 9a16 16 0 0 1 21.16 0"></path><path d="M8.53 16.11a6 6 0 0 1 6.95 0"></path><line x1="12" y1="20" x2="12.01" y2="20"></line>',wind:'<path d="M9.59 4.59A2 2 0 1 1 11 8H2m10.59 11.41A2 2 0 1 0 14 16H2m15.73-8.27A2.5 2.5 0 1 1 19.5 12H2"></path>',"x-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="15" y1="9" x2="9" y2="15"></line><line x1="9" y1="9" x2="15" y2="15"></line>',"x-octagon":'<polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"></polygon><line x1="15" y1="9" x2="9" y2="15"></line><line x1="9" y1="9" x2="15" y2="15"></line>',"x-square":'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="9" y1="9" x2="15" y2="15"></line><line x1="15" y1="9" x2="9" y2="15"></line>',x:'<line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line>',youtube:'<path d="M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z"></path><polygon points="9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02"></polygon>',"zap-off":'<polyline points="12.41 6.75 13 2 10.57 4.92"></polyline><polyline points="18.57 12.91 21 10 15.66 10"></polyline><polyline points="8 8 3 14 12 14 11 22 16 16"></polyline><line x1="1" y1="1" x2="23" y2="23"></line>',zap:'<polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"></polygon>',"zoom-in":'<circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line><line x1="11" y1="8" x2="11" y2="14"></line><line x1="8" y1="11" x2="14" y2="11"></line>',"zoom-out":'<circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line><line x1="8" y1="11" x2="14" y2="11"></line>'}},"./node_modules/classnames/dedupe.js":
/*!*******************************************!*\
  !*** ./node_modules/classnames/dedupe.js ***!
  \*******************************************/
/*! no static exports found */function(t,e,i){var n;
/*!
  Copyright (c) 2016 Jed Watson.
  Licensed under the MIT License (MIT), see
  http://jedwatson.github.io/classnames
*/!function(){"use strict";var i=function(){function t(){}function e(t,e){for(var i=e.length,n=0;n<i;++n)g(t,e[n])}t.prototype=Object.create(null);var i={}.hasOwnProperty,n=/\s+/;function g(t,g){if(g){var o=typeof g;"string"===o?function(t,e){for(var i=e.split(n),g=i.length,o=0;o<g;++o)t[i[o]]=!0}(t,g):Array.isArray(g)?e(t,g):"object"===o?function(t,e){for(var n in e)i.call(e,n)&&(t[n]=!!e[n])}(t,g):"number"===o&&function(t,e){t[e]=!0}(t,g)}}return function(){for(var i=arguments.length,n=Array(i),g=0;g<i;g++)n[g]=arguments[g];var o=new t;e(o,n);var r=[];for(var A in o)o[A]&&r.push(A);return r.join(" ")}}();void 0!==t&&t.exports?t.exports=i:void 0===(n=function(){return i}.apply(e,[]))||(t.exports=n)}()},"./node_modules/core-js/es/array/from.js":
/*!***********************************************!*\
  !*** ./node_modules/core-js/es/array/from.js ***!
  \***********************************************/
/*! no static exports found */function(t,e,i){i(/*! ../../modules/es.string.iterator */"./node_modules/core-js/modules/es.string.iterator.js"),i(/*! ../../modules/es.array.from */"./node_modules/core-js/modules/es.array.from.js");var n=i(/*! ../../internals/path */"./node_modules/core-js/internals/path.js");t.exports=n.Array.from},"./node_modules/core-js/internals/a-function.js":
/*!******************************************************!*\
  !*** ./node_modules/core-js/internals/a-function.js ***!
  \******************************************************/
/*! no static exports found */function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},"./node_modules/core-js/internals/an-object.js":
/*!*****************************************************!*\
  !*** ./node_modules/core-js/internals/an-object.js ***!
  \*****************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/is-object */"./node_modules/core-js/internals/is-object.js");t.exports=function(t){if(!n(t))throw TypeError(String(t)+" is not an object");return t}},"./node_modules/core-js/internals/array-from.js":
/*!******************************************************!*\
  !*** ./node_modules/core-js/internals/array-from.js ***!
  \******************************************************/
/*! no static exports found */function(t,e,i){"use strict";var n=i(/*! ../internals/bind-context */"./node_modules/core-js/internals/bind-context.js"),g=i(/*! ../internals/to-object */"./node_modules/core-js/internals/to-object.js"),o=i(/*! ../internals/call-with-safe-iteration-closing */"./node_modules/core-js/internals/call-with-safe-iteration-closing.js"),r=i(/*! ../internals/is-array-iterator-method */"./node_modules/core-js/internals/is-array-iterator-method.js"),A=i(/*! ../internals/to-length */"./node_modules/core-js/internals/to-length.js"),s=i(/*! ../internals/create-property */"./node_modules/core-js/internals/create-property.js"),C=i(/*! ../internals/get-iterator-method */"./node_modules/core-js/internals/get-iterator-method.js");t.exports=function(t){var e,i,I,a,l=g(t),c="function"==typeof this?this:Array,u=arguments.length,d=u>1?arguments[1]:void 0,h=void 0!==d,p=0,f=C(l);if(h&&(d=n(d,u>2?arguments[2]:void 0,2)),null==f||c==Array&&r(f))for(i=new c(e=A(l.length));e>p;p++)s(i,p,h?d(l[p],p):l[p]);else for(a=f.call(l),i=new c;!(I=a.next()).done;p++)s(i,p,h?o(a,d,[I.value,p],!0):I.value);return i.length=p,i}},"./node_modules/core-js/internals/array-includes.js":
/*!**********************************************************!*\
  !*** ./node_modules/core-js/internals/array-includes.js ***!
  \**********************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/to-indexed-object */"./node_modules/core-js/internals/to-indexed-object.js"),g=i(/*! ../internals/to-length */"./node_modules/core-js/internals/to-length.js"),o=i(/*! ../internals/to-absolute-index */"./node_modules/core-js/internals/to-absolute-index.js");t.exports=function(t){return function(e,i,r){var A,s=n(e),C=g(s.length),I=o(r,C);if(t&&i!=i){for(;C>I;)if((A=s[I++])!=A)return!0}else for(;C>I;I++)if((t||I in s)&&s[I]===i)return t||I||0;return!t&&-1}}},"./node_modules/core-js/internals/bind-context.js":
/*!********************************************************!*\
  !*** ./node_modules/core-js/internals/bind-context.js ***!
  \********************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/a-function */"./node_modules/core-js/internals/a-function.js");t.exports=function(t,e,i){if(n(t),void 0===e)return t;switch(i){case 0:return function(){return t.call(e)};case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,g){return t.call(e,i,n,g)}}return function(){return t.apply(e,arguments)}}},"./node_modules/core-js/internals/call-with-safe-iteration-closing.js":
/*!****************************************************************************!*\
  !*** ./node_modules/core-js/internals/call-with-safe-iteration-closing.js ***!
  \****************************************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/an-object */"./node_modules/core-js/internals/an-object.js");t.exports=function(t,e,i,g){try{return g?e(n(i)[0],i[1]):e(i)}catch(e){var o=t.return;throw void 0!==o&&n(o.call(t)),e}}},"./node_modules/core-js/internals/check-correctness-of-iteration.js":
/*!**************************************************************************!*\
  !*** ./node_modules/core-js/internals/check-correctness-of-iteration.js ***!
  \**************************************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/well-known-symbol */"./node_modules/core-js/internals/well-known-symbol.js")("iterator"),g=!1;try{var o=0,r={next:function(){return{done:!!o++}},return:function(){g=!0}};r[n]=function(){return this},Array.from(r,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!g)return!1;var i=!1;try{var o={};o[n]=function(){return{next:function(){return{done:i=!0}}}},t(o)}catch(t){}return i}},"./node_modules/core-js/internals/classof-raw.js":
/*!*******************************************************!*\
  !*** ./node_modules/core-js/internals/classof-raw.js ***!
  \*******************************************************/
/*! no static exports found */function(t,e){var i={}.toString;t.exports=function(t){return i.call(t).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":
/*!***************************************************!*\
  !*** ./node_modules/core-js/internals/classof.js ***!
  \***************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/classof-raw */"./node_modules/core-js/internals/classof-raw.js"),g=i(/*! ../internals/well-known-symbol */"./node_modules/core-js/internals/well-known-symbol.js")("toStringTag"),o="Arguments"==n(function(){return arguments}());t.exports=function(t){var e,i,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),g))?i:o?n(e):"Object"==(r=n(e))&&"function"==typeof e.callee?"Arguments":r}},"./node_modules/core-js/internals/copy-constructor-properties.js":
/*!***********************************************************************!*\
  !*** ./node_modules/core-js/internals/copy-constructor-properties.js ***!
  \***********************************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/has */"./node_modules/core-js/internals/has.js"),g=i(/*! ../internals/own-keys */"./node_modules/core-js/internals/own-keys.js"),o=i(/*! ../internals/object-get-own-property-descriptor */"./node_modules/core-js/internals/object-get-own-property-descriptor.js"),r=i(/*! ../internals/object-define-property */"./node_modules/core-js/internals/object-define-property.js");t.exports=function(t,e){for(var i=g(e),A=r.f,s=o.f,C=0;C<i.length;C++){var I=i[C];n(t,I)||A(t,I,s(e,I))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":
/*!********************************************************************!*\
  !*** ./node_modules/core-js/internals/correct-prototype-getter.js ***!
  \********************************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/fails */"./node_modules/core-js/internals/fails.js");t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},"./node_modules/core-js/internals/create-iterator-constructor.js":
/*!***********************************************************************!*\
  !*** ./node_modules/core-js/internals/create-iterator-constructor.js ***!
  \***********************************************************************/
/*! no static exports found */function(t,e,i){"use strict";var n=i(/*! ../internals/iterators-core */"./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,g=i(/*! ../internals/object-create */"./node_modules/core-js/internals/object-create.js"),o=i(/*! ../internals/create-property-descriptor */"./node_modules/core-js/internals/create-property-descriptor.js"),r=i(/*! ../internals/set-to-string-tag */"./node_modules/core-js/internals/set-to-string-tag.js"),A=i(/*! ../internals/iterators */"./node_modules/core-js/internals/iterators.js"),s=function(){return this};t.exports=function(t,e,i){var C=e+" Iterator";return t.prototype=g(n,{next:o(1,i)}),r(t,C,!1,!0),A[C]=s,t}},"./node_modules/core-js/internals/create-property-descriptor.js":
/*!**********************************************************************!*\
  !*** ./node_modules/core-js/internals/create-property-descriptor.js ***!
  \**********************************************************************/
/*! no static exports found */function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"./node_modules/core-js/internals/create-property.js":
/*!***********************************************************!*\
  !*** ./node_modules/core-js/internals/create-property.js ***!
  \***********************************************************/
/*! no static exports found */function(t,e,i){"use strict";var n=i(/*! ../internals/to-primitive */"./node_modules/core-js/internals/to-primitive.js"),g=i(/*! ../internals/object-define-property */"./node_modules/core-js/internals/object-define-property.js"),o=i(/*! ../internals/create-property-descriptor */"./node_modules/core-js/internals/create-property-descriptor.js");t.exports=function(t,e,i){var r=n(e);r in t?g.f(t,r,o(0,i)):t[r]=i}},"./node_modules/core-js/internals/define-iterator.js":
/*!***********************************************************!*\
  !*** ./node_modules/core-js/internals/define-iterator.js ***!
  \***********************************************************/
/*! no static exports found */function(t,e,i){"use strict";var n=i(/*! ../internals/export */"./node_modules/core-js/internals/export.js"),g=i(/*! ../internals/create-iterator-constructor */"./node_modules/core-js/internals/create-iterator-constructor.js"),o=i(/*! ../internals/object-get-prototype-of */"./node_modules/core-js/internals/object-get-prototype-of.js"),r=i(/*! ../internals/object-set-prototype-of */"./node_modules/core-js/internals/object-set-prototype-of.js"),A=i(/*! ../internals/set-to-string-tag */"./node_modules/core-js/internals/set-to-string-tag.js"),s=i(/*! ../internals/hide */"./node_modules/core-js/internals/hide.js"),C=i(/*! ../internals/redefine */"./node_modules/core-js/internals/redefine.js"),I=i(/*! ../internals/well-known-symbol */"./node_modules/core-js/internals/well-known-symbol.js"),a=i(/*! ../internals/is-pure */"./node_modules/core-js/internals/is-pure.js"),l=i(/*! ../internals/iterators */"./node_modules/core-js/internals/iterators.js"),c=i(/*! ../internals/iterators-core */"./node_modules/core-js/internals/iterators-core.js"),u=c.IteratorPrototype,d=c.BUGGY_SAFARI_ITERATORS,h=I("iterator"),p=function(){return this};t.exports=function(t,e,i,I,c,f,v){g(i,e,I);var y,m,b,x=function(t){if(t===c&&M)return M;if(!d&&t in O)return O[t];switch(t){case"keys":case"values":case"entries":return function(){return new i(this,t)}}return function(){return new i(this)}},w=e+" Iterator",k=!1,O=t.prototype,D=O[h]||O["@@iterator"]||c&&O[c],M=!d&&D||x(c),T="Array"==e&&O.entries||D;if(T&&(y=o(T.call(new t)),u!==Object.prototype&&y.next&&(a||o(y)===u||(r?r(y,u):"function"!=typeof y[h]&&s(y,h,p)),A(y,w,!0,!0),a&&(l[w]=p))),"values"==c&&D&&"values"!==D.name&&(k=!0,M=function(){return D.call(this)}),a&&!v||O[h]===M||s(O,h,M),l[e]=M,c)if(m={values:x("values"),keys:f?M:x("keys"),entries:x("entries")},v)for(b in m)(d||k||!(b in O))&&C(O,b,m[b]);else n({target:e,proto:!0,forced:d||k},m);return m}},"./node_modules/core-js/internals/descriptors.js":
/*!*******************************************************!*\
  !*** ./node_modules/core-js/internals/descriptors.js ***!
  \*******************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/fails */"./node_modules/core-js/internals/fails.js");t.exports=!n((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"./node_modules/core-js/internals/document-create-element.js":
/*!*******************************************************************!*\
  !*** ./node_modules/core-js/internals/document-create-element.js ***!
  \*******************************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/global */"./node_modules/core-js/internals/global.js"),g=i(/*! ../internals/is-object */"./node_modules/core-js/internals/is-object.js"),o=n.document,r=g(o)&&g(o.createElement);t.exports=function(t){return r?o.createElement(t):{}}},"./node_modules/core-js/internals/enum-bug-keys.js":
/*!*********************************************************!*\
  !*** ./node_modules/core-js/internals/enum-bug-keys.js ***!
  \*********************************************************/
/*! no static exports found */function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":
/*!**************************************************!*\
  !*** ./node_modules/core-js/internals/export.js ***!
  \**************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/global */"./node_modules/core-js/internals/global.js"),g=i(/*! ../internals/object-get-own-property-descriptor */"./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,o=i(/*! ../internals/hide */"./node_modules/core-js/internals/hide.js"),r=i(/*! ../internals/redefine */"./node_modules/core-js/internals/redefine.js"),A=i(/*! ../internals/set-global */"./node_modules/core-js/internals/set-global.js"),s=i(/*! ../internals/copy-constructor-properties */"./node_modules/core-js/internals/copy-constructor-properties.js"),C=i(/*! ../internals/is-forced */"./node_modules/core-js/internals/is-forced.js");t.exports=function(t,e){var i,I,a,l,c,u=t.target,d=t.global,h=t.stat;if(i=d?n:h?n[u]||A(u,{}):(n[u]||{}).prototype)for(I in e){if(l=e[I],a=t.noTargetGet?(c=g(i,I))&&c.value:i[I],!C(d?I:u+(h?".":"#")+I,t.forced)&&void 0!==a){if(typeof l==typeof a)continue;s(l,a)}(t.sham||a&&a.sham)&&o(l,"sham",!0),r(i,I,l,t)}}},"./node_modules/core-js/internals/fails.js":
/*!*************************************************!*\
  !*** ./node_modules/core-js/internals/fails.js ***!
  \*************************************************/
/*! no static exports found */function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},"./node_modules/core-js/internals/function-to-string.js":
/*!**************************************************************!*\
  !*** ./node_modules/core-js/internals/function-to-string.js ***!
  \**************************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/shared */"./node_modules/core-js/internals/shared.js");t.exports=n("native-function-to-string",Function.toString)},"./node_modules/core-js/internals/get-iterator-method.js":
/*!***************************************************************!*\
  !*** ./node_modules/core-js/internals/get-iterator-method.js ***!
  \***************************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/classof */"./node_modules/core-js/internals/classof.js"),g=i(/*! ../internals/iterators */"./node_modules/core-js/internals/iterators.js"),o=i(/*! ../internals/well-known-symbol */"./node_modules/core-js/internals/well-known-symbol.js")("iterator");t.exports=function(t){if(null!=t)return t[o]||t["@@iterator"]||g[n(t)]}},"./node_modules/core-js/internals/global.js":
/*!**************************************************!*\
  !*** ./node_modules/core-js/internals/global.js ***!
  \**************************************************/
/*! no static exports found */function(t,e,i){(function(e){var i="object",n=function(t){return t&&t.Math==Math&&t};t.exports=n(typeof globalThis==i&&globalThis)||n(typeof window==i&&window)||n(typeof self==i&&self)||n(typeof e==i&&e)||Function("return this")()}).call(this,i(/*! ./../../webpack/buildin/global.js */"./node_modules/webpack/buildin/global.js"))},"./node_modules/core-js/internals/has.js":
/*!***********************************************!*\
  !*** ./node_modules/core-js/internals/has.js ***!
  \***********************************************/
/*! no static exports found */function(t,e){var i={}.hasOwnProperty;t.exports=function(t,e){return i.call(t,e)}},"./node_modules/core-js/internals/hidden-keys.js":
/*!*******************************************************!*\
  !*** ./node_modules/core-js/internals/hidden-keys.js ***!
  \*******************************************************/
/*! no static exports found */function(t,e){t.exports={}},"./node_modules/core-js/internals/hide.js":
/*!************************************************!*\
  !*** ./node_modules/core-js/internals/hide.js ***!
  \************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/descriptors */"./node_modules/core-js/internals/descriptors.js"),g=i(/*! ../internals/object-define-property */"./node_modules/core-js/internals/object-define-property.js"),o=i(/*! ../internals/create-property-descriptor */"./node_modules/core-js/internals/create-property-descriptor.js");t.exports=n?function(t,e,i){return g.f(t,e,o(1,i))}:function(t,e,i){return t[e]=i,t}},"./node_modules/core-js/internals/html.js":
/*!************************************************!*\
  !*** ./node_modules/core-js/internals/html.js ***!
  \************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/global */"./node_modules/core-js/internals/global.js").document;t.exports=n&&n.documentElement},"./node_modules/core-js/internals/ie8-dom-define.js":
/*!**********************************************************!*\
  !*** ./node_modules/core-js/internals/ie8-dom-define.js ***!
  \**********************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/descriptors */"./node_modules/core-js/internals/descriptors.js"),g=i(/*! ../internals/fails */"./node_modules/core-js/internals/fails.js"),o=i(/*! ../internals/document-create-element */"./node_modules/core-js/internals/document-create-element.js");t.exports=!n&&!g((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"./node_modules/core-js/internals/indexed-object.js":
/*!**********************************************************!*\
  !*** ./node_modules/core-js/internals/indexed-object.js ***!
  \**********************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/fails */"./node_modules/core-js/internals/fails.js"),g=i(/*! ../internals/classof-raw */"./node_modules/core-js/internals/classof-raw.js"),o="".split;t.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==g(t)?o.call(t,""):Object(t)}:Object},"./node_modules/core-js/internals/internal-state.js":
/*!**********************************************************!*\
  !*** ./node_modules/core-js/internals/internal-state.js ***!
  \**********************************************************/
/*! no static exports found */function(t,e,i){var n,g,o,r=i(/*! ../internals/native-weak-map */"./node_modules/core-js/internals/native-weak-map.js"),A=i(/*! ../internals/global */"./node_modules/core-js/internals/global.js"),s=i(/*! ../internals/is-object */"./node_modules/core-js/internals/is-object.js"),C=i(/*! ../internals/hide */"./node_modules/core-js/internals/hide.js"),I=i(/*! ../internals/has */"./node_modules/core-js/internals/has.js"),a=i(/*! ../internals/shared-key */"./node_modules/core-js/internals/shared-key.js"),l=i(/*! ../internals/hidden-keys */"./node_modules/core-js/internals/hidden-keys.js"),c=A.WeakMap;if(r){var u=new c,d=u.get,h=u.has,p=u.set;n=function(t,e){return p.call(u,t,e),e},g=function(t){return d.call(u,t)||{}},o=function(t){return h.call(u,t)}}else{var f=a("state");l[f]=!0,n=function(t,e){return C(t,f,e),e},g=function(t){return I(t,f)?t[f]:{}},o=function(t){return I(t,f)}}t.exports={set:n,get:g,has:o,enforce:function(t){return o(t)?g(t):n(t,{})},getterFor:function(t){return function(e){var i;if(!s(e)||(i=g(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return i}}}},"./node_modules/core-js/internals/is-array-iterator-method.js":
/*!********************************************************************!*\
  !*** ./node_modules/core-js/internals/is-array-iterator-method.js ***!
  \********************************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/well-known-symbol */"./node_modules/core-js/internals/well-known-symbol.js"),g=i(/*! ../internals/iterators */"./node_modules/core-js/internals/iterators.js"),o=n("iterator"),r=Array.prototype;t.exports=function(t){return void 0!==t&&(g.Array===t||r[o]===t)}},"./node_modules/core-js/internals/is-forced.js":
/*!*****************************************************!*\
  !*** ./node_modules/core-js/internals/is-forced.js ***!
  \*****************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/fails */"./node_modules/core-js/internals/fails.js"),g=/#|\.prototype\./,o=function(t,e){var i=A[r(t)];return i==C||i!=s&&("function"==typeof e?n(e):!!e)},r=o.normalize=function(t){return String(t).replace(g,".").toLowerCase()},A=o.data={},s=o.NATIVE="N",C=o.POLYFILL="P";t.exports=o},"./node_modules/core-js/internals/is-object.js":
/*!*****************************************************!*\
  !*** ./node_modules/core-js/internals/is-object.js ***!
  \*****************************************************/
/*! no static exports found */function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},"./node_modules/core-js/internals/is-pure.js":
/*!***************************************************!*\
  !*** ./node_modules/core-js/internals/is-pure.js ***!
  \***************************************************/
/*! no static exports found */function(t,e){t.exports=!1},"./node_modules/core-js/internals/iterators-core.js":
/*!**********************************************************!*\
  !*** ./node_modules/core-js/internals/iterators-core.js ***!
  \**********************************************************/
/*! no static exports found */function(t,e,i){"use strict";var n,g,o,r=i(/*! ../internals/object-get-prototype-of */"./node_modules/core-js/internals/object-get-prototype-of.js"),A=i(/*! ../internals/hide */"./node_modules/core-js/internals/hide.js"),s=i(/*! ../internals/has */"./node_modules/core-js/internals/has.js"),C=i(/*! ../internals/well-known-symbol */"./node_modules/core-js/internals/well-known-symbol.js"),I=i(/*! ../internals/is-pure */"./node_modules/core-js/internals/is-pure.js"),a=C("iterator"),l=!1;[].keys&&("next"in(o=[].keys())?(g=r(r(o)))!==Object.prototype&&(n=g):l=!0),null==n&&(n={}),I||s(n,a)||A(n,a,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:l}},"./node_modules/core-js/internals/iterators.js":
/*!*****************************************************!*\
  !*** ./node_modules/core-js/internals/iterators.js ***!
  \*****************************************************/
/*! no static exports found */function(t,e){t.exports={}},"./node_modules/core-js/internals/native-symbol.js":
/*!*********************************************************!*\
  !*** ./node_modules/core-js/internals/native-symbol.js ***!
  \*********************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/fails */"./node_modules/core-js/internals/fails.js");t.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},"./node_modules/core-js/internals/native-weak-map.js":
/*!***********************************************************!*\
  !*** ./node_modules/core-js/internals/native-weak-map.js ***!
  \***********************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/global */"./node_modules/core-js/internals/global.js"),g=i(/*! ../internals/function-to-string */"./node_modules/core-js/internals/function-to-string.js"),o=n.WeakMap;t.exports="function"==typeof o&&/native code/.test(g.call(o))},"./node_modules/core-js/internals/object-create.js":
/*!*********************************************************!*\
  !*** ./node_modules/core-js/internals/object-create.js ***!
  \*********************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/an-object */"./node_modules/core-js/internals/an-object.js"),g=i(/*! ../internals/object-define-properties */"./node_modules/core-js/internals/object-define-properties.js"),o=i(/*! ../internals/enum-bug-keys */"./node_modules/core-js/internals/enum-bug-keys.js"),r=i(/*! ../internals/hidden-keys */"./node_modules/core-js/internals/hidden-keys.js"),A=i(/*! ../internals/html */"./node_modules/core-js/internals/html.js"),s=i(/*! ../internals/document-create-element */"./node_modules/core-js/internals/document-create-element.js"),C=i(/*! ../internals/shared-key */"./node_modules/core-js/internals/shared-key.js")("IE_PROTO"),I=function(){},a=function(){var t,e=s("iframe"),i=o.length;for(e.style.display="none",A.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),a=t.F;i--;)delete a.prototype[o[i]];return a()};t.exports=Object.create||function(t,e){var i;return null!==t?(I.prototype=n(t),i=new I,I.prototype=null,i[C]=t):i=a(),void 0===e?i:g(i,e)},r[C]=!0},"./node_modules/core-js/internals/object-define-properties.js":
/*!********************************************************************!*\
  !*** ./node_modules/core-js/internals/object-define-properties.js ***!
  \********************************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/descriptors */"./node_modules/core-js/internals/descriptors.js"),g=i(/*! ../internals/object-define-property */"./node_modules/core-js/internals/object-define-property.js"),o=i(/*! ../internals/an-object */"./node_modules/core-js/internals/an-object.js"),r=i(/*! ../internals/object-keys */"./node_modules/core-js/internals/object-keys.js");t.exports=n?Object.defineProperties:function(t,e){o(t);for(var i,n=r(e),A=n.length,s=0;A>s;)g.f(t,i=n[s++],e[i]);return t}},"./node_modules/core-js/internals/object-define-property.js":
/*!******************************************************************!*\
  !*** ./node_modules/core-js/internals/object-define-property.js ***!
  \******************************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/descriptors */"./node_modules/core-js/internals/descriptors.js"),g=i(/*! ../internals/ie8-dom-define */"./node_modules/core-js/internals/ie8-dom-define.js"),o=i(/*! ../internals/an-object */"./node_modules/core-js/internals/an-object.js"),r=i(/*! ../internals/to-primitive */"./node_modules/core-js/internals/to-primitive.js"),A=Object.defineProperty;e.f=n?A:function(t,e,i){if(o(t),e=r(e,!0),o(i),g)try{return A(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(t[e]=i.value),t}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":
/*!******************************************************************************!*\
  !*** ./node_modules/core-js/internals/object-get-own-property-descriptor.js ***!
  \******************************************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/descriptors */"./node_modules/core-js/internals/descriptors.js"),g=i(/*! ../internals/object-property-is-enumerable */"./node_modules/core-js/internals/object-property-is-enumerable.js"),o=i(/*! ../internals/create-property-descriptor */"./node_modules/core-js/internals/create-property-descriptor.js"),r=i(/*! ../internals/to-indexed-object */"./node_modules/core-js/internals/to-indexed-object.js"),A=i(/*! ../internals/to-primitive */"./node_modules/core-js/internals/to-primitive.js"),s=i(/*! ../internals/has */"./node_modules/core-js/internals/has.js"),C=i(/*! ../internals/ie8-dom-define */"./node_modules/core-js/internals/ie8-dom-define.js"),I=Object.getOwnPropertyDescriptor;e.f=n?I:function(t,e){if(t=r(t),e=A(e,!0),C)try{return I(t,e)}catch(t){}if(s(t,e))return o(!g.f.call(t,e),t[e])}},"./node_modules/core-js/internals/object-get-own-property-names.js":
/*!*************************************************************************!*\
  !*** ./node_modules/core-js/internals/object-get-own-property-names.js ***!
  \*************************************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/object-keys-internal */"./node_modules/core-js/internals/object-keys-internal.js"),g=i(/*! ../internals/enum-bug-keys */"./node_modules/core-js/internals/enum-bug-keys.js").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,g)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":
/*!***************************************************************************!*\
  !*** ./node_modules/core-js/internals/object-get-own-property-symbols.js ***!
  \***************************************************************************/
/*! no static exports found */function(t,e){e.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":
/*!*******************************************************************!*\
  !*** ./node_modules/core-js/internals/object-get-prototype-of.js ***!
  \*******************************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/has */"./node_modules/core-js/internals/has.js"),g=i(/*! ../internals/to-object */"./node_modules/core-js/internals/to-object.js"),o=i(/*! ../internals/shared-key */"./node_modules/core-js/internals/shared-key.js"),r=i(/*! ../internals/correct-prototype-getter */"./node_modules/core-js/internals/correct-prototype-getter.js"),A=o("IE_PROTO"),s=Object.prototype;t.exports=r?Object.getPrototypeOf:function(t){return t=g(t),n(t,A)?t[A]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},"./node_modules/core-js/internals/object-keys-internal.js":
/*!****************************************************************!*\
  !*** ./node_modules/core-js/internals/object-keys-internal.js ***!
  \****************************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/has */"./node_modules/core-js/internals/has.js"),g=i(/*! ../internals/to-indexed-object */"./node_modules/core-js/internals/to-indexed-object.js"),o=i(/*! ../internals/array-includes */"./node_modules/core-js/internals/array-includes.js"),r=i(/*! ../internals/hidden-keys */"./node_modules/core-js/internals/hidden-keys.js"),A=o(!1);t.exports=function(t,e){var i,o=g(t),s=0,C=[];for(i in o)!n(r,i)&&n(o,i)&&C.push(i);for(;e.length>s;)n(o,i=e[s++])&&(~A(C,i)||C.push(i));return C}},"./node_modules/core-js/internals/object-keys.js":
/*!*******************************************************!*\
  !*** ./node_modules/core-js/internals/object-keys.js ***!
  \*******************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/object-keys-internal */"./node_modules/core-js/internals/object-keys-internal.js"),g=i(/*! ../internals/enum-bug-keys */"./node_modules/core-js/internals/enum-bug-keys.js");t.exports=Object.keys||function(t){return n(t,g)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":
/*!*************************************************************************!*\
  !*** ./node_modules/core-js/internals/object-property-is-enumerable.js ***!
  \*************************************************************************/
/*! no static exports found */function(t,e,i){"use strict";var n={}.propertyIsEnumerable,g=Object.getOwnPropertyDescriptor,o=g&&!n.call({1:2},1);e.f=o?function(t){var e=g(this,t);return!!e&&e.enumerable}:n},"./node_modules/core-js/internals/object-set-prototype-of.js":
/*!*******************************************************************!*\
  !*** ./node_modules/core-js/internals/object-set-prototype-of.js ***!
  \*******************************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/validate-set-prototype-of-arguments */"./node_modules/core-js/internals/validate-set-prototype-of-arguments.js");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,i={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(i,[]),e=i instanceof Array}catch(t){}return function(i,g){return n(i,g),e?t.call(i,g):i.__proto__=g,i}}():void 0)},"./node_modules/core-js/internals/own-keys.js":
/*!****************************************************!*\
  !*** ./node_modules/core-js/internals/own-keys.js ***!
  \****************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/global */"./node_modules/core-js/internals/global.js"),g=i(/*! ../internals/object-get-own-property-names */"./node_modules/core-js/internals/object-get-own-property-names.js"),o=i(/*! ../internals/object-get-own-property-symbols */"./node_modules/core-js/internals/object-get-own-property-symbols.js"),r=i(/*! ../internals/an-object */"./node_modules/core-js/internals/an-object.js"),A=n.Reflect;t.exports=A&&A.ownKeys||function(t){var e=g.f(r(t)),i=o.f;return i?e.concat(i(t)):e}},"./node_modules/core-js/internals/path.js":
/*!************************************************!*\
  !*** ./node_modules/core-js/internals/path.js ***!
  \************************************************/
/*! no static exports found */function(t,e,i){t.exports=i(/*! ../internals/global */"./node_modules/core-js/internals/global.js")},"./node_modules/core-js/internals/redefine.js":
/*!****************************************************!*\
  !*** ./node_modules/core-js/internals/redefine.js ***!
  \****************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/global */"./node_modules/core-js/internals/global.js"),g=i(/*! ../internals/shared */"./node_modules/core-js/internals/shared.js"),o=i(/*! ../internals/hide */"./node_modules/core-js/internals/hide.js"),r=i(/*! ../internals/has */"./node_modules/core-js/internals/has.js"),A=i(/*! ../internals/set-global */"./node_modules/core-js/internals/set-global.js"),s=i(/*! ../internals/function-to-string */"./node_modules/core-js/internals/function-to-string.js"),C=i(/*! ../internals/internal-state */"./node_modules/core-js/internals/internal-state.js"),I=C.get,a=C.enforce,l=String(s).split("toString");g("inspectSource",(function(t){return s.call(t)})),(t.exports=function(t,e,i,g){var s=!!g&&!!g.unsafe,C=!!g&&!!g.enumerable,I=!!g&&!!g.noTargetGet;"function"==typeof i&&("string"!=typeof e||r(i,"name")||o(i,"name",e),a(i).source=l.join("string"==typeof e?e:"")),t!==n?(s?!I&&t[e]&&(C=!0):delete t[e],C?t[e]=i:o(t,e,i)):C?t[e]=i:A(e,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&I(this).source||s.call(this)}))},"./node_modules/core-js/internals/require-object-coercible.js":
/*!********************************************************************!*\
  !*** ./node_modules/core-js/internals/require-object-coercible.js ***!
  \********************************************************************/
/*! no static exports found */function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},"./node_modules/core-js/internals/set-global.js":
/*!******************************************************!*\
  !*** ./node_modules/core-js/internals/set-global.js ***!
  \******************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/global */"./node_modules/core-js/internals/global.js"),g=i(/*! ../internals/hide */"./node_modules/core-js/internals/hide.js");t.exports=function(t,e){try{g(n,t,e)}catch(i){n[t]=e}return e}},"./node_modules/core-js/internals/set-to-string-tag.js":
/*!*************************************************************!*\
  !*** ./node_modules/core-js/internals/set-to-string-tag.js ***!
  \*************************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/object-define-property */"./node_modules/core-js/internals/object-define-property.js").f,g=i(/*! ../internals/has */"./node_modules/core-js/internals/has.js"),o=i(/*! ../internals/well-known-symbol */"./node_modules/core-js/internals/well-known-symbol.js")("toStringTag");t.exports=function(t,e,i){t&&!g(t=i?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},"./node_modules/core-js/internals/shared-key.js":
/*!******************************************************!*\
  !*** ./node_modules/core-js/internals/shared-key.js ***!
  \******************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/shared */"./node_modules/core-js/internals/shared.js"),g=i(/*! ../internals/uid */"./node_modules/core-js/internals/uid.js"),o=n("keys");t.exports=function(t){return o[t]||(o[t]=g(t))}},"./node_modules/core-js/internals/shared.js":
/*!**************************************************!*\
  !*** ./node_modules/core-js/internals/shared.js ***!
  \**************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/global */"./node_modules/core-js/internals/global.js"),g=i(/*! ../internals/set-global */"./node_modules/core-js/internals/set-global.js"),o=i(/*! ../internals/is-pure */"./node_modules/core-js/internals/is-pure.js"),r=n["__core-js_shared__"]||g("__core-js_shared__",{});(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.1.3",mode:o?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-at.js":
/*!*****************************************************!*\
  !*** ./node_modules/core-js/internals/string-at.js ***!
  \*****************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/to-integer */"./node_modules/core-js/internals/to-integer.js"),g=i(/*! ../internals/require-object-coercible */"./node_modules/core-js/internals/require-object-coercible.js");t.exports=function(t,e,i){var o,r,A=String(g(t)),s=n(e),C=A.length;return s<0||s>=C?i?"":void 0:(o=A.charCodeAt(s))<55296||o>56319||s+1===C||(r=A.charCodeAt(s+1))<56320||r>57343?i?A.charAt(s):o:i?A.slice(s,s+2):r-56320+(o-55296<<10)+65536}},"./node_modules/core-js/internals/to-absolute-index.js":
/*!*************************************************************!*\
  !*** ./node_modules/core-js/internals/to-absolute-index.js ***!
  \*************************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/to-integer */"./node_modules/core-js/internals/to-integer.js"),g=Math.max,o=Math.min;t.exports=function(t,e){var i=n(t);return i<0?g(i+e,0):o(i,e)}},"./node_modules/core-js/internals/to-indexed-object.js":
/*!*************************************************************!*\
  !*** ./node_modules/core-js/internals/to-indexed-object.js ***!
  \*************************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/indexed-object */"./node_modules/core-js/internals/indexed-object.js"),g=i(/*! ../internals/require-object-coercible */"./node_modules/core-js/internals/require-object-coercible.js");t.exports=function(t){return n(g(t))}},"./node_modules/core-js/internals/to-integer.js":
/*!******************************************************!*\
  !*** ./node_modules/core-js/internals/to-integer.js ***!
  \******************************************************/
/*! no static exports found */function(t,e){var i=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:i)(t)}},"./node_modules/core-js/internals/to-length.js":
/*!*****************************************************!*\
  !*** ./node_modules/core-js/internals/to-length.js ***!
  \*****************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/to-integer */"./node_modules/core-js/internals/to-integer.js"),g=Math.min;t.exports=function(t){return t>0?g(n(t),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":
/*!*****************************************************!*\
  !*** ./node_modules/core-js/internals/to-object.js ***!
  \*****************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/require-object-coercible */"./node_modules/core-js/internals/require-object-coercible.js");t.exports=function(t){return Object(n(t))}},"./node_modules/core-js/internals/to-primitive.js":
/*!********************************************************!*\
  !*** ./node_modules/core-js/internals/to-primitive.js ***!
  \********************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/is-object */"./node_modules/core-js/internals/is-object.js");t.exports=function(t,e){if(!n(t))return t;var i,g;if(e&&"function"==typeof(i=t.toString)&&!n(g=i.call(t)))return g;if("function"==typeof(i=t.valueOf)&&!n(g=i.call(t)))return g;if(!e&&"function"==typeof(i=t.toString)&&!n(g=i.call(t)))return g;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/uid.js":
/*!***********************************************!*\
  !*** ./node_modules/core-js/internals/uid.js ***!
  \***********************************************/
/*! no static exports found */function(t,e){var i=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++i+n).toString(36))}},"./node_modules/core-js/internals/validate-set-prototype-of-arguments.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/core-js/internals/validate-set-prototype-of-arguments.js ***!
  \*******************************************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/is-object */"./node_modules/core-js/internals/is-object.js"),g=i(/*! ../internals/an-object */"./node_modules/core-js/internals/an-object.js");t.exports=function(t,e){if(g(t),!n(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")}},"./node_modules/core-js/internals/well-known-symbol.js":
/*!*************************************************************!*\
  !*** ./node_modules/core-js/internals/well-known-symbol.js ***!
  \*************************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/global */"./node_modules/core-js/internals/global.js"),g=i(/*! ../internals/shared */"./node_modules/core-js/internals/shared.js"),o=i(/*! ../internals/uid */"./node_modules/core-js/internals/uid.js"),r=i(/*! ../internals/native-symbol */"./node_modules/core-js/internals/native-symbol.js"),A=n.Symbol,s=g("wks");t.exports=function(t){return s[t]||(s[t]=r&&A[t]||(r?A:o)("Symbol."+t))}},"./node_modules/core-js/modules/es.array.from.js":
/*!*******************************************************!*\
  !*** ./node_modules/core-js/modules/es.array.from.js ***!
  \*******************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/export */"./node_modules/core-js/internals/export.js"),g=i(/*! ../internals/array-from */"./node_modules/core-js/internals/array-from.js");n({target:"Array",stat:!0,forced:!i(/*! ../internals/check-correctness-of-iteration */"./node_modules/core-js/internals/check-correctness-of-iteration.js")((function(t){Array.from(t)}))},{from:g})},"./node_modules/core-js/modules/es.string.iterator.js":
/*!************************************************************!*\
  !*** ./node_modules/core-js/modules/es.string.iterator.js ***!
  \************************************************************/
/*! no static exports found */function(t,e,i){"use strict";var n=i(/*! ../internals/string-at */"./node_modules/core-js/internals/string-at.js"),g=i(/*! ../internals/internal-state */"./node_modules/core-js/internals/internal-state.js"),o=i(/*! ../internals/define-iterator */"./node_modules/core-js/internals/define-iterator.js"),r=g.set,A=g.getterFor("String Iterator");o(String,"String",(function(t){r(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=A(this),i=e.string,g=e.index;return g>=i.length?{value:void 0,done:!0}:(t=n(i,g,!0),e.index+=t.length,{value:t,done:!1})}))},"./node_modules/webpack/buildin/global.js":
/*!***********************************!*\
  !*** (webpack)/buildin/global.js ***!
  \***********************************/
/*! no static exports found */function(t,e){var i;i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(i=window)}t.exports=i},"./src/default-attrs.json":
/*!********************************!*\
  !*** ./src/default-attrs.json ***!
  \********************************/
/*! exports provided: xmlns, width, height, viewBox, fill, stroke, stroke-width, stroke-linecap, stroke-linejoin, default */function(t){t.exports={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"}},"./src/icon.js":
/*!*********************!*\
  !*** ./src/icon.js ***!
  \*********************/
/*! no static exports found */function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},g=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),o=A(i(/*! classnames/dedupe */"./node_modules/classnames/dedupe.js")),r=A(i(/*! ./default-attrs.json */"./src/default-attrs.json"));function A(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var C=function(){function t(e,i){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];s(this,t),this.name=e,this.contents=i,this.tags=g,this.attrs=n({},r.default,{class:"feather feather-"+e})}return g(t,[{key:"toSvg",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n({},this.attrs,t,{class:(0,o.default)(this.attrs.class,t.class)});return"<svg "+I(e)+">"+this.contents+"</svg>"}},{key:"toString",value:function(){return this.contents}}]),t}();function I(t){return Object.keys(t).map((function(e){return e+'="'+t[e]+'"'})).join(" ")}e.default=C},"./src/icons.js":
/*!**********************!*\
  !*** ./src/icons.js ***!
  \**********************/
/*! no static exports found */function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(i(/*! ./icon */"./src/icon.js")),g=r(i(/*! ../dist/icons.json */"./dist/icons.json")),o=r(i(/*! ./tags.json */"./src/tags.json"));function r(t){return t&&t.__esModule?t:{default:t}}e.default=Object.keys(g.default).map((function(t){return new n.default(t,g.default[t],o.default[t])})).reduce((function(t,e){return t[e.name]=e,t}),{})},"./src/index.js":
/*!**********************!*\
  !*** ./src/index.js ***!
  \**********************/
/*! no static exports found */function(t,e,i){"use strict";var n=r(i(/*! ./icons */"./src/icons.js")),g=r(i(/*! ./to-svg */"./src/to-svg.js")),o=r(i(/*! ./replace */"./src/replace.js"));function r(t){return t&&t.__esModule?t:{default:t}}t.exports={icons:n.default,toSvg:g.default,replace:o.default}},"./src/replace.js":
/*!************************!*\
  !*** ./src/replace.js ***!
  \************************/
/*! no static exports found */function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},g=r(i(/*! classnames/dedupe */"./node_modules/classnames/dedupe.js")),o=r(i(/*! ./icons */"./src/icons.js"));function r(t){return t&&t.__esModule?t:{default:t}}function A(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=s(t),r=i["data-feather"];delete i["data-feather"];var A=o.default[r].toSvg(n({},e,i,{class:(0,g.default)(e.class,i.class)})),C=(new DOMParser).parseFromString(A,"image/svg+xml"),I=C.querySelector("svg");t.parentNode.replaceChild(I,t)}function s(t){return Array.from(t.attributes).reduce((function(t,e){return t[e.name]=e.value,t}),{})}e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("undefined"==typeof document)throw new Error("`feather.replace()` only works in a browser environment.");var e=document.querySelectorAll("[data-feather]");Array.from(e).forEach((function(e){return A(e,t)}))}},"./src/tags.json":
/*!***********************!*\
  !*** ./src/tags.json ***!
  \***********************/
/*! exports provided: activity, airplay, alert-circle, alert-octagon, alert-triangle, align-center, align-justify, align-left, align-right, anchor, archive, at-sign, award, aperture, bar-chart, bar-chart-2, battery, battery-charging, bell, bell-off, bluetooth, book-open, book, bookmark, box, briefcase, calendar, camera, cast, circle, clipboard, clock, cloud-drizzle, cloud-lightning, cloud-rain, cloud-snow, cloud, codepen, codesandbox, code, coffee, columns, command, compass, copy, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, cpu, credit-card, crop, crosshair, database, delete, disc, dollar-sign, droplet, edit, edit-2, edit-3, eye, eye-off, external-link, facebook, fast-forward, figma, file-minus, file-plus, file-text, film, filter, flag, folder-minus, folder-plus, folder, framer, frown, gift, git-branch, git-commit, git-merge, git-pull-request, github, gitlab, globe, hard-drive, hash, headphones, heart, help-circle, hexagon, home, image, inbox, instagram, key, layers, layout, life-bouy, link, link-2, linkedin, list, lock, log-in, log-out, mail, map-pin, map, maximize, maximize-2, meh, menu, message-circle, message-square, mic-off, mic, minimize, minimize-2, minus, monitor, moon, more-horizontal, more-vertical, mouse-pointer, move, music, navigation, navigation-2, octagon, package, paperclip, pause, pause-circle, pen-tool, percent, phone-call, phone-forwarded, phone-incoming, phone-missed, phone-off, phone-outgoing, phone, play, pie-chart, play-circle, plus, plus-circle, plus-square, pocket, power, printer, radio, refresh-cw, refresh-ccw, repeat, rewind, rotate-ccw, rotate-cw, rss, save, scissors, search, send, settings, share-2, shield, shield-off, shopping-bag, shopping-cart, shuffle, skip-back, skip-forward, slack, slash, sliders, smartphone, smile, speaker, star, stop-circle, sun, sunrise, sunset, tablet, tag, target, terminal, thermometer, thumbs-down, thumbs-up, toggle-left, toggle-right, tool, trash, trash-2, triangle, truck, tv, twitch, twitter, type, umbrella, unlock, user-check, user-minus, user-plus, user-x, user, users, video-off, video, voicemail, volume, volume-1, volume-2, volume-x, watch, wifi-off, wifi, wind, x-circle, x-octagon, x-square, x, youtube, zap-off, zap, zoom-in, zoom-out, default */function(t){t.exports={activity:["pulse","health","action","motion"],airplay:["stream","cast","mirroring"],"alert-circle":["warning","alert","danger"],"alert-octagon":["warning","alert","danger"],"alert-triangle":["warning","alert","danger"],"align-center":["text alignment","center"],"align-justify":["text alignment","justified"],"align-left":["text alignment","left"],"align-right":["text alignment","right"],anchor:[],archive:["index","box"],"at-sign":["mention","at","email","message"],award:["achievement","badge"],aperture:["camera","photo"],"bar-chart":["statistics","diagram","graph"],"bar-chart-2":["statistics","diagram","graph"],battery:["power","electricity"],"battery-charging":["power","electricity"],bell:["alarm","notification","sound"],"bell-off":["alarm","notification","silent"],bluetooth:["wireless"],"book-open":["read","library"],book:["read","dictionary","booklet","magazine","library"],bookmark:["read","clip","marker","tag"],box:["cube"],briefcase:["work","bag","baggage","folder"],calendar:["date"],camera:["photo"],cast:["chromecast","airplay"],circle:["off","zero","record"],clipboard:["copy"],clock:["time","watch","alarm"],"cloud-drizzle":["weather","shower"],"cloud-lightning":["weather","bolt"],"cloud-rain":["weather"],"cloud-snow":["weather","blizzard"],cloud:["weather"],codepen:["logo"],codesandbox:["logo"],code:["source","programming"],coffee:["drink","cup","mug","tea","cafe","hot","beverage"],columns:["layout"],command:["keyboard","cmd","terminal","prompt"],compass:["navigation","safari","travel","direction"],copy:["clone","duplicate"],"corner-down-left":["arrow","return"],"corner-down-right":["arrow"],"corner-left-down":["arrow"],"corner-left-up":["arrow"],"corner-right-down":["arrow"],"corner-right-up":["arrow"],"corner-up-left":["arrow"],"corner-up-right":["arrow"],cpu:["processor","technology"],"credit-card":["purchase","payment","cc"],crop:["photo","image"],crosshair:["aim","target"],database:["storage","memory"],delete:["remove"],disc:["album","cd","dvd","music"],"dollar-sign":["currency","money","payment"],droplet:["water"],edit:["pencil","change"],"edit-2":["pencil","change"],"edit-3":["pencil","change"],eye:["view","watch"],"eye-off":["view","watch","hide","hidden"],"external-link":["outbound"],facebook:["logo","social"],"fast-forward":["music"],figma:["logo","design","tool"],"file-minus":["delete","remove","erase"],"file-plus":["add","create","new"],"file-text":["data","txt","pdf"],film:["movie","video"],filter:["funnel","hopper"],flag:["report"],"folder-minus":["directory"],"folder-plus":["directory"],folder:["directory"],framer:["logo","design","tool"],frown:["emoji","face","bad","sad","emotion"],gift:["present","box","birthday","party"],"git-branch":["code","version control"],"git-commit":["code","version control"],"git-merge":["code","version control"],"git-pull-request":["code","version control"],github:["logo","version control"],gitlab:["logo","version control"],globe:["world","browser","language","translate"],"hard-drive":["computer","server","memory","data"],hash:["hashtag","number","pound"],headphones:["music","audio","sound"],heart:["like","love","emotion"],"help-circle":["question mark"],hexagon:["shape","node.js","logo"],home:["house","living"],image:["picture"],inbox:["email"],instagram:["logo","camera"],key:["password","login","authentication","secure"],layers:["stack"],layout:["window","webpage"],"life-bouy":["help","life ring","support"],link:["chain","url"],"link-2":["chain","url"],linkedin:["logo","social media"],list:["options"],lock:["security","password","secure"],"log-in":["sign in","arrow","enter"],"log-out":["sign out","arrow","exit"],mail:["email","message"],"map-pin":["location","navigation","travel","marker"],map:["location","navigation","travel"],maximize:["fullscreen"],"maximize-2":["fullscreen","arrows","expand"],meh:["emoji","face","neutral","emotion"],menu:["bars","navigation","hamburger"],"message-circle":["comment","chat"],"message-square":["comment","chat"],"mic-off":["record","sound","mute"],mic:["record","sound","listen"],minimize:["exit fullscreen","close"],"minimize-2":["exit fullscreen","arrows","close"],minus:["subtract"],monitor:["tv","screen","display"],moon:["dark","night"],"more-horizontal":["ellipsis"],"more-vertical":["ellipsis"],"mouse-pointer":["arrow","cursor"],move:["arrows"],music:["note"],navigation:["location","travel"],"navigation-2":["location","travel"],octagon:["stop"],package:["box","container"],paperclip:["attachment"],pause:["music","stop"],"pause-circle":["music","audio","stop"],"pen-tool":["vector","drawing"],percent:["discount"],"phone-call":["ring"],"phone-forwarded":["call"],"phone-incoming":["call"],"phone-missed":["call"],"phone-off":["call","mute"],"phone-outgoing":["call"],phone:["call"],play:["music","start"],"pie-chart":["statistics","diagram"],"play-circle":["music","start"],plus:["add","new"],"plus-circle":["add","new"],"plus-square":["add","new"],pocket:["logo","save"],power:["on","off"],printer:["fax","office","device"],radio:["signal"],"refresh-cw":["synchronise","arrows"],"refresh-ccw":["arrows"],repeat:["loop","arrows"],rewind:["music"],"rotate-ccw":["arrow"],"rotate-cw":["arrow"],rss:["feed","subscribe"],save:["floppy disk"],scissors:["cut"],search:["find","magnifier","magnifying glass"],send:["message","mail","email","paper airplane","paper aeroplane"],settings:["cog","edit","gear","preferences"],"share-2":["network","connections"],shield:["security","secure"],"shield-off":["security","insecure"],"shopping-bag":["ecommerce","cart","purchase","store"],"shopping-cart":["ecommerce","cart","purchase","store"],shuffle:["music"],"skip-back":["music"],"skip-forward":["music"],slack:["logo"],slash:["ban","no"],sliders:["settings","controls"],smartphone:["cellphone","device"],smile:["emoji","face","happy","good","emotion"],speaker:["audio","music"],star:["bookmark","favorite","like"],"stop-circle":["media","music"],sun:["brightness","weather","light"],sunrise:["weather","time","morning","day"],sunset:["weather","time","evening","night"],tablet:["device"],tag:["label"],target:["logo","bullseye"],terminal:["code","command line","prompt"],thermometer:["temperature","celsius","fahrenheit","weather"],"thumbs-down":["dislike","bad","emotion"],"thumbs-up":["like","good","emotion"],"toggle-left":["on","off","switch"],"toggle-right":["on","off","switch"],tool:["settings","spanner"],trash:["garbage","delete","remove","bin"],"trash-2":["garbage","delete","remove","bin"],triangle:["delta"],truck:["delivery","van","shipping","transport","lorry"],tv:["television","stream"],twitch:["logo"],twitter:["logo","social"],type:["text"],umbrella:["rain","weather"],unlock:["security"],"user-check":["followed","subscribed"],"user-minus":["delete","remove","unfollow","unsubscribe"],"user-plus":["new","add","create","follow","subscribe"],"user-x":["delete","remove","unfollow","unsubscribe","unavailable"],user:["person","account"],users:["group"],"video-off":["camera","movie","film"],video:["camera","movie","film"],voicemail:["phone"],volume:["music","sound","mute"],"volume-1":["music","sound"],"volume-2":["music","sound"],"volume-x":["music","sound","mute"],watch:["clock","time"],"wifi-off":["disabled"],wifi:["connection","signal","wireless"],wind:["weather","air"],"x-circle":["cancel","close","delete","remove","times","clear"],"x-octagon":["delete","stop","alert","warning","times","clear"],"x-square":["cancel","close","delete","remove","times","clear"],x:["cancel","close","delete","remove","times","clear"],youtube:["logo","video","play"],"zap-off":["flash","camera","lightning"],zap:["flash","camera","lightning"],"zoom-in":["magnifying glass"],"zoom-out":["magnifying glass"]}},"./src/to-svg.js":
/*!***********************!*\
  !*** ./src/to-svg.js ***!
  \***********************/
/*! no static exports found */function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,g=i(/*! ./icons */"./src/icons.js"),o=(n=g)&&n.__esModule?n:{default:n};e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(console.warn("feather.toSvg() is deprecated. Please use feather.icons[name].toSvg() instead."),!t)throw new Error("The required `key` (icon name) parameter is missing.");if(!o.default[t])throw new Error("No icon matching '"+t+"'. See the complete list of icons at https://feathericons.com");return o.default[t].toSvg(e)}},0:
/*!**************************************************!*\
  !*** multi core-js/es/array/from ./src/index.js ***!
  \**************************************************/
/*! no static exports found */function(t,e,i){i(/*! core-js/es/array/from */"./node_modules/core-js/es/array/from.js"),t.exports=i(/*! /home/travis/build/feathericons/feather/src/index.js */"./src/index.js")}})},t.exports=n()},function(t,e,i){var n,g,o;
/*!
 * jQuery UI Draggable 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */!function(r){"use strict";g=[i(0),i(6),i(19),i(7),i(20),i(21),i(22),i(1),i(2)],void 0===(o="function"==typeof(n=function(t){return t.widget("ui.draggable",t.ui.mouse,{version:"1.13.2",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(e){var i=this.options;return!(this.helper||i.disabled||t(e.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(e),!!this.handle&&(this._blurActiveElement(e),this._blockFrames(!0===i.iframeFix?"iframe":i.iframeFix),!0))},_blockFrames:function(e){this.iframeBlocks=this.document.find(e).map((function(){var e=t(this);return t("<div>").css("position","absolute").appendTo(e.parent()).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).offset(e.offset())[0]}))},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(e){var i=t.ui.safeActiveElement(this.document[0]);t(e.target).closest(i).length||t.ui.safeBlur(i)},_mouseStart:function(e){var i=this.options;return this.helper=this._createHelper(e),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter((function(){return"fixed"===t(this).css("position")})).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(e),this.originalPosition=this.position=this._generatePosition(e,!1),this.originalPageX=e.pageX,this.originalPageY=e.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),!1===this._trigger("start",e)?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!i.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(e,i){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!i){var n=this._uiHash();if(!1===this._trigger("drag",e,n))return this._mouseUp(new t.Event("mouseup",e)),!1;this.position=n.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var i=this,n=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(n=t.ui.ddmanager.drop(this,e)),this.dropped&&(n=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!n||"valid"===this.options.revert&&n||!0===this.options.revert||"function"==typeof this.options.revert&&this.options.revert.call(this.element,n)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),(function(){!1!==i._trigger("stop",e)&&i._clear()})):!1!==this._trigger("stop",e)&&this._clear(),!1},_mouseUp:function(e){return this._unblockFrames(),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),this.handleElement.is(e.target)&&this.element.trigger("focus"),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new t.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(e){return!this.options.handle||!!t(e.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(e){var i=this.options,n="function"==typeof i.helper,g=n?t(i.helper.apply(this.element[0],[e])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return g.parents("body").length||g.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),n&&g[0]===this.element[0]&&this._setPositionRelative(),g[0]===this.element[0]||/(fixed|absolute)/.test(g.css("position"))||g.css("position","absolute"),g},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),Array.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),i=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==i&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.element.position(),e=this._isRootNode(this.scrollParent[0]);return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,n,g=this.options,o=this.document[0];this.relativeContainer=null,g.containment?"window"!==g.containment?"document"!==g.containment?g.containment.constructor!==Array?("parent"===g.containment&&(g.containment=this.helper[0].parentNode),(n=(i=t(g.containment))[0])&&(e=/(scroll|auto)/.test(i.css("overflow")),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(e?Math.max(n.scrollWidth,n.offsetWidth):n.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(n.scrollHeight,n.offsetHeight):n.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=i)):this.containment=g.containment:this.containment=[0,0,t(o).width()-this.helperProportions.width-this.margins.left,(t(o).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(t,e){e||(e=this.position);var i="absolute"===t?1:-1,n=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:n?0:this.offset.scroll.top)*i,left:e.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:n?0:this.offset.scroll.left)*i}},_generatePosition:function(t,e){var i,n,g,o,r=this.options,A=this._isRootNode(this.scrollParent[0]),s=t.pageX,C=t.pageY;return A&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(this.relativeContainer?(n=this.relativeContainer.offset(),i=[this.containment[0]+n.left,this.containment[1]+n.top,this.containment[2]+n.left,this.containment[3]+n.top]):i=this.containment,t.pageX-this.offset.click.left<i[0]&&(s=i[0]+this.offset.click.left),t.pageY-this.offset.click.top<i[1]&&(C=i[1]+this.offset.click.top),t.pageX-this.offset.click.left>i[2]&&(s=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>i[3]&&(C=i[3]+this.offset.click.top)),r.grid&&(g=r.grid[1]?this.originalPageY+Math.round((C-this.originalPageY)/r.grid[1])*r.grid[1]:this.originalPageY,C=i?g-this.offset.click.top>=i[1]||g-this.offset.click.top>i[3]?g:g-this.offset.click.top>=i[1]?g-r.grid[1]:g+r.grid[1]:g,o=r.grid[0]?this.originalPageX+Math.round((s-this.originalPageX)/r.grid[0])*r.grid[0]:this.originalPageX,s=i?o-this.offset.click.left>=i[0]||o-this.offset.click.left>i[2]?o:o-this.offset.click.left>=i[0]?o-r.grid[0]:o+r.grid[0]:o),"y"===r.axis&&(s=this.originalPageX),"x"===r.axis&&(C=this.originalPageY)),{top:C-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:A?0:this.offset.scroll.top),left:s-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:A?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(e,i,n){return n=n||this._uiHash(),t.ui.plugin.call(this,e,[i,n,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),n.offset=this.positionAbs),t.Widget.prototype._trigger.call(this,e,i,n)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,i,n){var g=t.extend({},i,{item:n.element});n.sortables=[],t(n.options.connectToSortable).each((function(){var i=t(this).sortable("instance");i&&!i.options.disabled&&(n.sortables.push(i),i.refreshPositions(),i._trigger("activate",e,g))}))},stop:function(e,i,n){var g=t.extend({},i,{item:n.element});n.cancelHelperRemoval=!1,t.each(n.sortables,(function(){this.isOver?(this.isOver=0,n.cancelHelperRemoval=!0,this.cancelHelperRemoval=!1,this._storedCSS={position:this.placeholder.css("position"),top:this.placeholder.css("top"),left:this.placeholder.css("left")},this._mouseStop(e),this.options.helper=this.options._helper):(this.cancelHelperRemoval=!0,this._trigger("deactivate",e,g))}))},drag:function(e,i,n){t.each(n.sortables,(function(){var g=!1,o=this;o.positionAbs=n.positionAbs,o.helperProportions=n.helperProportions,o.offset.click=n.offset.click,o._intersectsWith(o.containerCache)&&(g=!0,t.each(n.sortables,(function(){return this.positionAbs=n.positionAbs,this.helperProportions=n.helperProportions,this.offset.click=n.offset.click,this!==o&&this._intersectsWith(this.containerCache)&&t.contains(o.element[0],this.element[0])&&(g=!1),g}))),g?(o.isOver||(o.isOver=1,n._parent=i.helper.parent(),o.currentItem=i.helper.appendTo(o.element).data("ui-sortable-item",!0),o.options._helper=o.options.helper,o.options.helper=function(){return i.helper[0]},e.target=o.currentItem[0],o._mouseCapture(e,!0),o._mouseStart(e,!0,!0),o.offset.click.top=n.offset.click.top,o.offset.click.left=n.offset.click.left,o.offset.parent.left-=n.offset.parent.left-o.offset.parent.left,o.offset.parent.top-=n.offset.parent.top-o.offset.parent.top,n._trigger("toSortable",e),n.dropped=o.element,t.each(n.sortables,(function(){this.refreshPositions()})),n.currentItem=n.element,o.fromOutside=n),o.currentItem&&(o._mouseDrag(e),i.position=o.position)):o.isOver&&(o.isOver=0,o.cancelHelperRemoval=!0,o.options._revert=o.options.revert,o.options.revert=!1,o._trigger("out",e,o._uiHash(o)),o._mouseStop(e,!0),o.options.revert=o.options._revert,o.options.helper=o.options._helper,o.placeholder&&o.placeholder.remove(),i.helper.appendTo(n._parent),n._refreshOffsets(e),i.position=n._generatePosition(e,!0),n._trigger("fromSortable",e),n.dropped=!1,t.each(n.sortables,(function(){this.refreshPositions()})))}))}}),t.ui.plugin.add("draggable","cursor",{start:function(e,i,n){var g=t("body"),o=n.options;g.css("cursor")&&(o._cursor=g.css("cursor")),g.css("cursor",o.cursor)},stop:function(e,i,n){var g=n.options;g._cursor&&t("body").css("cursor",g._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,i,n){var g=t(i.helper),o=n.options;g.css("opacity")&&(o._opacity=g.css("opacity")),g.css("opacity",o.opacity)},stop:function(e,i,n){var g=n.options;g._opacity&&t(i.helper).css("opacity",g._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(t,e,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(e,i,n){var g=n.options,o=!1,r=n.scrollParentNotHidden[0],A=n.document[0];r!==A&&"HTML"!==r.tagName?(g.axis&&"x"===g.axis||(n.overflowOffset.top+r.offsetHeight-e.pageY<g.scrollSensitivity?r.scrollTop=o=r.scrollTop+g.scrollSpeed:e.pageY-n.overflowOffset.top<g.scrollSensitivity&&(r.scrollTop=o=r.scrollTop-g.scrollSpeed)),g.axis&&"y"===g.axis||(n.overflowOffset.left+r.offsetWidth-e.pageX<g.scrollSensitivity?r.scrollLeft=o=r.scrollLeft+g.scrollSpeed:e.pageX-n.overflowOffset.left<g.scrollSensitivity&&(r.scrollLeft=o=r.scrollLeft-g.scrollSpeed))):(g.axis&&"x"===g.axis||(e.pageY-t(A).scrollTop()<g.scrollSensitivity?o=t(A).scrollTop(t(A).scrollTop()-g.scrollSpeed):t(window).height()-(e.pageY-t(A).scrollTop())<g.scrollSensitivity&&(o=t(A).scrollTop(t(A).scrollTop()+g.scrollSpeed))),g.axis&&"y"===g.axis||(e.pageX-t(A).scrollLeft()<g.scrollSensitivity?o=t(A).scrollLeft(t(A).scrollLeft()-g.scrollSpeed):t(window).width()-(e.pageX-t(A).scrollLeft())<g.scrollSensitivity&&(o=t(A).scrollLeft(t(A).scrollLeft()+g.scrollSpeed)))),!1!==o&&t.ui.ddmanager&&!g.dropBehaviour&&t.ui.ddmanager.prepareOffsets(n,e)}}),t.ui.plugin.add("draggable","snap",{start:function(e,i,n){var g=n.options;n.snapElements=[],t(g.snap.constructor!==String?g.snap.items||":data(ui-draggable)":g.snap).each((function(){var e=t(this),i=e.offset();this!==n.element[0]&&n.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:i.top,left:i.left})}))},drag:function(e,i,n){var g,o,r,A,s,C,I,a,l,c,u=n.options,d=u.snapTolerance,h=i.offset.left,p=h+n.helperProportions.width,f=i.offset.top,v=f+n.helperProportions.height;for(l=n.snapElements.length-1;l>=0;l--)C=(s=n.snapElements[l].left-n.margins.left)+n.snapElements[l].width,a=(I=n.snapElements[l].top-n.margins.top)+n.snapElements[l].height,p<s-d||h>C+d||v<I-d||f>a+d||!t.contains(n.snapElements[l].item.ownerDocument,n.snapElements[l].item)?(n.snapElements[l].snapping&&n.options.snap.release&&n.options.snap.release.call(n.element,e,t.extend(n._uiHash(),{snapItem:n.snapElements[l].item})),n.snapElements[l].snapping=!1):("inner"!==u.snapMode&&(g=Math.abs(I-v)<=d,o=Math.abs(a-f)<=d,r=Math.abs(s-p)<=d,A=Math.abs(C-h)<=d,g&&(i.position.top=n._convertPositionTo("relative",{top:I-n.helperProportions.height,left:0}).top),o&&(i.position.top=n._convertPositionTo("relative",{top:a,left:0}).top),r&&(i.position.left=n._convertPositionTo("relative",{top:0,left:s-n.helperProportions.width}).left),A&&(i.position.left=n._convertPositionTo("relative",{top:0,left:C}).left)),c=g||o||r||A,"outer"!==u.snapMode&&(g=Math.abs(I-f)<=d,o=Math.abs(a-v)<=d,r=Math.abs(s-h)<=d,A=Math.abs(C-p)<=d,g&&(i.position.top=n._convertPositionTo("relative",{top:I,left:0}).top),o&&(i.position.top=n._convertPositionTo("relative",{top:a-n.helperProportions.height,left:0}).top),r&&(i.position.left=n._convertPositionTo("relative",{top:0,left:s}).left),A&&(i.position.left=n._convertPositionTo("relative",{top:0,left:C-n.helperProportions.width}).left)),!n.snapElements[l].snapping&&(g||o||r||A||c)&&n.options.snap.snap&&n.options.snap.snap.call(n.element,e,t.extend(n._uiHash(),{snapItem:n.snapElements[l].item})),n.snapElements[l].snapping=g||o||r||A||c)}}),t.ui.plugin.add("draggable","stack",{start:function(e,i,n){var g,o=n.options,r=t.makeArray(t(o.stack)).sort((function(e,i){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(i).css("zIndex"),10)||0)}));r.length&&(g=parseInt(t(r[0]).css("zIndex"),10)||0,t(r).each((function(e){t(this).css("zIndex",g+e)})),this.css("zIndex",g+r.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,i,n){var g=t(i.helper),o=n.options;g.css("zIndex")&&(o._zIndex=g.css("zIndex")),g.css("zIndex",o.zIndex)},stop:function(e,i,n){var g=n.options;g._zIndex&&t(i.helper).css("zIndex",g._zIndex)}}),t.ui.draggable})?n.apply(e,g):n)||(t.exports=o)}()},function(t,e,i){var n,g,o;!function(r){"use strict";g=[i(0),i(1)],void 0===(o="function"==typeof(n=function(t){return t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase())})?n.apply(e,g):n)||(t.exports=o)}()},function(t,e,i){var n,g,o;
/*!
 * jQuery UI :data 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */!function(r){"use strict";g=[i(0),i(1)],void 0===(o="function"==typeof(n=function(t){return t.extend(t.expr.pseudos,{data:t.expr.createPseudo?t.expr.createPseudo((function(e){return function(i){return!!t.data(i,e)}})):function(e,i,n){return!!t.data(e,n[3])}})})?n.apply(e,g):n)||(t.exports=o)}()},function(t,e,i){var n,g,o;!function(r){"use strict";g=[i(0),i(1)],void 0===(o="function"==typeof(n=function(t){return t.ui.safeActiveElement=function(t){var e;try{e=t.activeElement}catch(i){e=t.body}return e||(e=t.body),e.nodeName||(e=t.body),e}})?n.apply(e,g):n)||(t.exports=o)}()},function(t,e,i){var n,g,o;!function(r){"use strict";g=[i(0),i(1)],void 0===(o="function"==typeof(n=function(t){return t.ui.safeBlur=function(e){e&&"body"!==e.nodeName.toLowerCase()&&t(e).trigger("blur")}})?n.apply(e,g):n)||(t.exports=o)}()},function(t,e,i){var n,g,o;
/*!
 * jQuery UI Scroll Parent 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */!function(r){"use strict";g=[i(0),i(1)],void 0===(o="function"==typeof(n=function(t){return t.fn.scrollParent=function(e){var i=this.css("position"),n="absolute"===i,g=e?/(auto|scroll|hidden)/:/(auto|scroll)/,o=this.parents().filter((function(){var e=t(this);return(!n||"static"!==e.css("position"))&&g.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))})).eq(0);return"fixed"!==i&&o.length?o:t(this[0].ownerDocument||document)}})?n.apply(e,g):n)||(t.exports=o)}()},function(t,e,i){var n,g,o;
/*!
 * jQuery UI Resizable 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */!function(r){"use strict";g=[i(0),i(6),i(24),i(7),i(1),i(2)],void 0===(o="function"==typeof(n=function(t){return t.widget("ui.resizable",t.ui.mouse,{version:"1.13.2",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(t){return parseFloat(t)||0},_isNumber:function(t){return!isNaN(parseFloat(t))},_hasScroll:function(e,i){if("hidden"===t(e).css("overflow"))return!1;var n=i&&"left"===i?"scrollLeft":"scrollTop",g=!1;if(e[n]>0)return!0;try{e[n]=1,g=e[n]>0,e[n]=0}catch(t){}return g},_create:function(){var e,i=this.options,n=this;this._addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!i.aspectRatio,aspectRatio:i.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:i.helper||i.ghost||i.animate?i.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(t("<div class='ui-wrapper'></div>").css({overflow:"hidden",position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,e={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(e),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(e),this._proportionallyResize()),this._setupHandles(),i.autoHide&&t(this.element).on("mouseenter",(function(){i.disabled||(n._removeClass("ui-resizable-autohide"),n._handles.show())})).on("mouseleave",(function(){i.disabled||n.resizing||(n._addClass("ui-resizable-autohide"),n._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy(),this._addedHandles.remove();var e,i=function(e){t(e).removeData("resizable").removeData("ui-resizable").off(".resizable")};return this.elementIsWrapper&&(i(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_setOption:function(t,e){switch(this._super(t,e),t){case"handles":this._removeHandles(),this._setupHandles();break;case"aspectRatio":this._aspectRatio=!!e}},_setupHandles:function(){var e,i,n,g,o,r=this.options,A=this;if(this.handles=r.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=t(),this._addedHandles=t(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),n=this.handles.split(","),this.handles={},i=0;i<n.length;i++)g="ui-resizable-"+(e=String.prototype.trim.call(n[i])),o=t("<div>"),this._addClass(o,"ui-resizable-handle "+g),o.css({zIndex:r.zIndex}),this.handles[e]=".ui-resizable-"+e,this.element.children(this.handles[e]).length||(this.element.append(o),this._addedHandles=this._addedHandles.add(o));this._renderAxis=function(e){var i,n,g,o;for(i in e=e||this.element,this.handles)this.handles[i].constructor===String?this.handles[i]=this.element.children(this.handles[i]).first().show():(this.handles[i].jquery||this.handles[i].nodeType)&&(this.handles[i]=t(this.handles[i]),this._on(this.handles[i],{mousedown:A._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(n=t(this.handles[i],this.element),o=/sw|ne|nw|se|n|s/.test(i)?n.outerHeight():n.outerWidth(),g=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),e.css(g,o),this._proportionallyResize()),this._handles=this._handles.add(this.handles[i])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",(function(){A.resizing||(this.className&&(o=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),A.axis=o&&o[1]?o[1]:"se")})),r.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._addedHandles.remove()},_mouseCapture:function(e){var i,n,g=!1;for(i in this.handles)((n=t(this.handles[i])[0])===e.target||t.contains(n,e.target))&&(g=!0);return!this.options.disabled&&g},_mouseStart:function(e){var i,n,g,o=this.options,r=this.element;return this.resizing=!0,this._renderProxy(),i=this._num(this.helper.css("left")),n=this._num(this.helper.css("top")),o.containment&&(i+=t(o.containment).scrollLeft()||0,n+=t(o.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:i,top:n},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:r.width(),height:r.height()},this.originalSize=this._helper?{width:r.outerWidth(),height:r.outerHeight()}:{width:r.width(),height:r.height()},this.sizeDiff={width:r.outerWidth()-r.width(),height:r.outerHeight()-r.height()},this.originalPosition={left:i,top:n},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof o.aspectRatio?o.aspectRatio:this.originalSize.width/this.originalSize.height||1,g=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor","auto"===g?this.axis+"-resize":g),this._addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var i,n,g=this.originalMousePosition,o=this.axis,r=e.pageX-g.left||0,A=e.pageY-g.top||0,s=this._change[o];return this._updatePrevProperties(),!!s&&(i=s.apply(this,[e,r,A]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(i=this._updateRatio(i,e)),i=this._respectSize(i,e),this._updateCache(i),this._propagate("resize",e),n=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(n)||(this._updatePrevProperties(),this._trigger("resize",e,this.ui()),this._applyChanges()),!1)},_mouseStop:function(e){this.resizing=!1;var i,n,g,o,r,A,s,C=this.options;return this._helper&&(g=(n=(i=this._proportionallyResizeElements).length&&/textarea/i.test(i[0].nodeName))&&this._hasScroll(i[0],"left")?0:this.sizeDiff.height,o=n?0:this.sizeDiff.width,r={width:this.helper.width()-o,height:this.helper.height()-g},A=parseFloat(this.element.css("left"))+(this.position.left-this.originalPosition.left)||null,s=parseFloat(this.element.css("top"))+(this.position.top-this.originalPosition.top)||null,C.animate||this.element.css(t.extend(r,{top:s,left:A})),this.helper.height(this.size.height),this.helper.width(this.size.width),this._helper&&!C.animate&&this._proportionallyResize()),t("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px"),this.helper.css(t),t},_updateVirtualBoundaries:function(t){var e,i,n,g,o,r=this.options;o={minWidth:this._isNumber(r.minWidth)?r.minWidth:0,maxWidth:this._isNumber(r.maxWidth)?r.maxWidth:1/0,minHeight:this._isNumber(r.minHeight)?r.minHeight:0,maxHeight:this._isNumber(r.maxHeight)?r.maxHeight:1/0},(this._aspectRatio||t)&&(e=o.minHeight*this.aspectRatio,n=o.minWidth/this.aspectRatio,i=o.maxHeight*this.aspectRatio,g=o.maxWidth/this.aspectRatio,e>o.minWidth&&(o.minWidth=e),n>o.minHeight&&(o.minHeight=n),i<o.maxWidth&&(o.maxWidth=i),g<o.maxHeight&&(o.maxHeight=g)),this._vBoundaries=o},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,i=this.size,n=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===n&&(t.left=e.left+(i.width-t.width),t.top=null),"nw"===n&&(t.top=e.top+(i.height-t.height),t.left=e.left+(i.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,i=this.axis,n=this._isNumber(t.width)&&e.maxWidth&&e.maxWidth<t.width,g=this._isNumber(t.height)&&e.maxHeight&&e.maxHeight<t.height,o=this._isNumber(t.width)&&e.minWidth&&e.minWidth>t.width,r=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,A=this.originalPosition.left+this.originalSize.width,s=this.originalPosition.top+this.originalSize.height,C=/sw|nw|w/.test(i),I=/nw|ne|n/.test(i);return o&&(t.width=e.minWidth),r&&(t.height=e.minHeight),n&&(t.width=e.maxWidth),g&&(t.height=e.maxHeight),o&&C&&(t.left=A-e.minWidth),n&&C&&(t.left=A-e.maxWidth),r&&I&&(t.top=s-e.minHeight),g&&I&&(t.top=s-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var e=0,i=[],n=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],g=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];e<4;e++)i[e]=parseFloat(n[e])||0,i[e]+=parseFloat(g[e])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,i=this.helper||this.element;e<this._proportionallyResizeElements.length;e++)t=this._proportionallyResizeElements[e],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var e=this.element,i=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||t("<div></div>").css({overflow:"hidden"}),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=this.originalSize;return{left:this.originalPosition.left+e,width:i.width-e}},n:function(t,e,i){var n=this.originalSize;return{top:this.originalPosition.top+i,height:n.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(e,i,n){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,i,n]))},sw:function(e,i,n){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,i,n]))},ne:function(e,i,n){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,i,n]))},nw:function(e,i,n){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,i,n]))}},_propagate:function(e,i){t.ui.plugin.call(this,e,[i,this.ui()]),"resize"!==e&&this._trigger(e,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.add("resizable","animate",{stop:function(e){var i=t(this).resizable("instance"),n=i.options,g=i._proportionallyResizeElements,o=g.length&&/textarea/i.test(g[0].nodeName),r=o&&i._hasScroll(g[0],"left")?0:i.sizeDiff.height,A=o?0:i.sizeDiff.width,s={width:i.size.width-A,height:i.size.height-r},C=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,I=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(t.extend(s,I&&C?{top:I,left:C}:{}),{duration:n.animateDuration,easing:n.animateEasing,step:function(){var n={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};g&&g.length&&t(g[0]).css({width:n.width,height:n.height}),i._updateCache(n),i._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var e,i,n,g,o,r,A,s=t(this).resizable("instance"),C=s.options,I=s.element,a=C.containment,l=a instanceof t?a.get(0):/parent/.test(a)?I.parent().get(0):a;l&&(s.containerElement=t(l),/document/.test(a)||a===document?(s.containerOffset={left:0,top:0},s.containerPosition={left:0,top:0},s.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(e=t(l),i=[],t(["Top","Right","Left","Bottom"]).each((function(t,n){i[t]=s._num(e.css("padding"+n))})),s.containerOffset=e.offset(),s.containerPosition=e.position(),s.containerSize={height:e.innerHeight()-i[3],width:e.innerWidth()-i[1]},n=s.containerOffset,g=s.containerSize.height,o=s.containerSize.width,r=s._hasScroll(l,"left")?l.scrollWidth:o,A=s._hasScroll(l)?l.scrollHeight:g,s.parentData={element:l,left:n.left,top:n.top,width:r,height:A}))},resize:function(e){var i,n,g,o,r=t(this).resizable("instance"),A=r.options,s=r.containerOffset,C=r.position,I=r._aspectRatio||e.shiftKey,a={top:0,left:0},l=r.containerElement,c=!0;l[0]!==document&&/static/.test(l.css("position"))&&(a=s),C.left<(r._helper?s.left:0)&&(r.size.width=r.size.width+(r._helper?r.position.left-s.left:r.position.left-a.left),I&&(r.size.height=r.size.width/r.aspectRatio,c=!1),r.position.left=A.helper?s.left:0),C.top<(r._helper?s.top:0)&&(r.size.height=r.size.height+(r._helper?r.position.top-s.top:r.position.top),I&&(r.size.width=r.size.height*r.aspectRatio,c=!1),r.position.top=r._helper?s.top:0),g=r.containerElement.get(0)===r.element.parent().get(0),o=/relative|absolute/.test(r.containerElement.css("position")),g&&o?(r.offset.left=r.parentData.left+r.position.left,r.offset.top=r.parentData.top+r.position.top):(r.offset.left=r.element.offset().left,r.offset.top=r.element.offset().top),i=Math.abs(r.sizeDiff.width+(r._helper?r.offset.left-a.left:r.offset.left-s.left)),n=Math.abs(r.sizeDiff.height+(r._helper?r.offset.top-a.top:r.offset.top-s.top)),i+r.size.width>=r.parentData.width&&(r.size.width=r.parentData.width-i,I&&(r.size.height=r.size.width/r.aspectRatio,c=!1)),n+r.size.height>=r.parentData.height&&(r.size.height=r.parentData.height-n,I&&(r.size.width=r.size.height*r.aspectRatio,c=!1)),c||(r.position.left=r.prevPosition.left,r.position.top=r.prevPosition.top,r.size.width=r.prevSize.width,r.size.height=r.prevSize.height)},stop:function(){var e=t(this).resizable("instance"),i=e.options,n=e.containerOffset,g=e.containerPosition,o=e.containerElement,r=t(e.helper),A=r.offset(),s=r.outerWidth()-e.sizeDiff.width,C=r.outerHeight()-e.sizeDiff.height;e._helper&&!i.animate&&/relative/.test(o.css("position"))&&t(this).css({left:A.left-g.left-n.left,width:s,height:C}),e._helper&&!i.animate&&/static/.test(o.css("position"))&&t(this).css({left:A.left-g.left-n.left,width:s,height:C})}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var e=t(this).resizable("instance").options;t(e.alsoResize).each((function(){var e=t(this);e.data("ui-resizable-alsoresize",{width:parseFloat(e.width()),height:parseFloat(e.height()),left:parseFloat(e.css("left")),top:parseFloat(e.css("top"))})}))},resize:function(e,i){var n=t(this).resizable("instance"),g=n.options,o=n.originalSize,r=n.originalPosition,A={height:n.size.height-o.height||0,width:n.size.width-o.width||0,top:n.position.top-r.top||0,left:n.position.left-r.left||0};t(g.alsoResize).each((function(){var e=t(this),n=t(this).data("ui-resizable-alsoresize"),g={},o=e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(o,(function(t,e){var i=(n[e]||0)+(A[e]||0);i&&i>=0&&(g[e]=i||null)})),e.css(g)}))},stop:function(){t(this).removeData("ui-resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).resizable("instance"),i=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.width,margin:0,left:0,top:0}),e._addClass(e.ghost,"ui-resizable-ghost"),!1!==t.uiBackCompat&&"string"==typeof e.options.ghost&&e.ghost.addClass(this.options.ghost),e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).resizable("instance");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).resizable("instance");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var e,i=t(this).resizable("instance"),n=i.options,g=i.size,o=i.originalSize,r=i.originalPosition,A=i.axis,s="number"==typeof n.grid?[n.grid,n.grid]:n.grid,C=s[0]||1,I=s[1]||1,a=Math.round((g.width-o.width)/C)*C,l=Math.round((g.height-o.height)/I)*I,c=o.width+a,u=o.height+l,d=n.maxWidth&&n.maxWidth<c,h=n.maxHeight&&n.maxHeight<u,p=n.minWidth&&n.minWidth>c,f=n.minHeight&&n.minHeight>u;n.grid=s,p&&(c+=C),f&&(u+=I),d&&(c-=C),h&&(u-=I),/^(se|s|e)$/.test(A)?(i.size.width=c,i.size.height=u):/^(ne)$/.test(A)?(i.size.width=c,i.size.height=u,i.position.top=r.top-l):/^(sw)$/.test(A)?(i.size.width=c,i.size.height=u,i.position.left=r.left-a):((u-I<=0||c-C<=0)&&(e=i._getPaddingPlusBorderDimensions(this)),u-I>0?(i.size.height=u,i.position.top=r.top-l):(u=I-e.height,i.size.height=u,i.position.top=r.top+o.height-u),c-C>0?(i.size.width=c,i.position.left=r.left-a):(c=C-e.width,i.size.width=c,i.position.left=r.left+o.width-c))}}),t.ui.resizable})?n.apply(e,g):n)||(t.exports=o)}()},function(t,e,i){var n,g,o;
/*!
 * jQuery UI Disable Selection 1.13.2
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */!function(r){"use strict";g=[i(0),i(1)],void 0===(o="function"==typeof(n=function(t){return t.fn.extend({disableSelection:(e="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(e+".ui-disableSelection",(function(t){t.preventDefault()}))}),enableSelection:function(){return this.off(".ui-disableSelection")}});var e})?n.apply(e,g):n)||(t.exports=o)}()},function(t,e,i){var n=i(26),g=i(27);"string"==typeof(g=g.__esModule?g.default:g)&&(g=[[t.i,g,""]]);var o={insert:"head",singleton:!1};n(g,o);t.exports=g.locals||{}},function(t,e,i){"use strict";var n,g=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},o=function(){var t={};return function(e){if(void 0===t[e]){var i=document.querySelector(e);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}t[e]=i}return t[e]}}(),r=[];function A(t){for(var e=-1,i=0;i<r.length;i++)if(r[i].identifier===t){e=i;break}return e}function s(t,e){for(var i={},n=[],g=0;g<t.length;g++){var o=t[g],s=e.base?o[0]+e.base:o[0],C=i[s]||0,I="".concat(s," ").concat(C);i[s]=C+1;var a=A(I),l={css:o[1],media:o[2],sourceMap:o[3]};-1!==a?(r[a].references++,r[a].updater(l)):r.push({identifier:I,updater:h(l,e),references:1}),n.push(I)}return n}function C(t){var e=document.createElement("style"),n=t.attributes||{};if(void 0===n.nonce){var g=i.nc;g&&(n.nonce=g)}if(Object.keys(n).forEach((function(t){e.setAttribute(t,n[t])})),"function"==typeof t.insert)t.insert(e);else{var r=o(t.insert||"head");if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(e)}return e}var I,a=(I=[],function(t,e){return I[t]=e,I.filter(Boolean).join("\n")});function l(t,e,i,n){var g=i?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(t.styleSheet)t.styleSheet.cssText=a(e,g);else{var o=document.createTextNode(g),r=t.childNodes;r[e]&&t.removeChild(r[e]),r.length?t.insertBefore(o,r[e]):t.appendChild(o)}}function c(t,e,i){var n=i.css,g=i.media,o=i.sourceMap;if(g?t.setAttribute("media",g):t.removeAttribute("media"),o&&btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}var u=null,d=0;function h(t,e){var i,n,g;if(e.singleton){var o=d++;i=u||(u=C(e)),n=l.bind(null,i,o,!1),g=l.bind(null,i,o,!0)}else i=C(e),n=c.bind(null,i,e),g=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(i)};return n(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;n(t=e)}else g()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=g());var i=s(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var n=0;n<i.length;n++){var g=A(i[n]);r[g].references--}for(var o=s(t,e),C=0;C<i.length;C++){var I=A(i[C]);0===r[I].references&&(r[I].updater(),r.splice(I,1))}i=o}}}},function(t,e,i){(e=i(28)(!1)).push([t.i,'.menu-div {\n    position: absolute;\n    top: 5px;\n    text-align: center;\n    pointer-events: none;\n    width: 100%;\n}\n\n::after {\n    display: none;\n}\n\nsvg {\n    display: inline-block;\n    vertical-align: middle;\n}\n\n\n.menu-action > button {\n    background: white;\n    width: 35px;\n    height: 35px;\n    border: 1px solid gray;\n    border-radius: 2px;\n    pointer-events: all;\n    top: 0;\n    position: center;\n}\n\n.menu-action {\n    background: white;\n    border: none;\n    border-radius: 2px;\n    display: inline;\n    margin: 4px;\n    height: 35px;\n}\n\n.fullscreen {\n    background: white;\n    position: fixed;\n    top: 0;\n    bottom: 0;\n    width: 100vh;\n    height: 100vh;\n    overflow: hidden;\n    object-fit: fill;\n    z-index: 9999;\n}\n\n.hidden {\n    visibility: hidden !important;\n}\n\n.network-div {\n    position: relative;\n    border: none;\n    outline: none;\n    height: 600px;\n}\n\n.vis-network {\n    outline: none;\n    border: none;\n}\n\n.network-div * {\n    font-size: 1em !important;\n    font-family: "Courier New", Courier, monospace !important;\n}\n\n.network-div:fullscreen {\n    background-color: rgba(255, 255, 255, 0);\n}\n\n.network-div:-webkit-full-screen {\n    background-color: rgba(255, 255, 255, 0);\n}\n\n.network-div:-moz-full-screen {\n    background-color: rgba(255, 255, 255, 0);\n}\n\n::backdrop {\n    background-color: white;\n}\n\n.details {\n    position: absolute !important;\n    background-color: white;\n    text-align: center;\n    border: none;\n    visibility: visible;\n    width: 30em;\n    height: 15em;\n    z-index: 9999;\n    top: 100px;\n    left: 100px;\n    display: flex;\n\n    box-shadow: 3px 3px 3px 3px grey;\n    overflow: hidden;\n}\n\n.active {\n    background-color: lightgrey !important;\n\n    -webkit-transition: all .5s;\n    -moz-transition: all .5s;\n    -o-transition: all .5s;\n    transition: all .5s;\n}\n\nbutton:focus {\n    outline: 0;\n}\n\ntd, th {\n    border: none;\n    text-align: left;\n    padding: 8px;\n}\n\ntr:nth-child(odd) {\n    background-color: #f4f4f4;\n}\n\n.collapsible {\n    background-color: #777;\n    color: white;\n    cursor: pointer;\n    padding: 18px;\n    width: 100%;\n    border: none;\n    text-align: left;\n    outline: none;\n    font-size: 15px;\n}\n\n.active, .collapsible:hover {\n    background-color: #555;\n}\n\n.collapsible:after {\n    content: \'\\002B\';\n    color: white;\n    font-weight: bold;\n    float: right;\n    margin-left: 5px;\n}\n\n.active:after {\n    content: "\\2212";\n}\n\n.properties-table {\n    font-family: "Courier New", Courier, monospace;\n    border-collapse: collapse;\n    width: 100%;\n    border-style: hidden;\n}\n\n.properties-content {\n    border: none;\n    transition: max-height 0.2s ease-out;\n    background-color: white;\n    height: calc(100% - 80px);\n    overflow: scroll;\n}\n\n.displayNone {\n    display: none !important;\n\n    width: 0;\n}\n\n.displayBlock {\n    display: block;\n}\n\n.emptyDetails {\n    border: none;\n    display: block;\n    height: calc(100% - 80px);\n    text-align: left;\n    margin: auto auto auto 10px;\n    overflow: hidden;\n    width: 100%;\n}\n\n.details-container {\n    width: 100%;\n}\n\ndiv.menu-action.active::after {\n    display: none;\n}\n\n.feather-list {\n    -moz-transform: translateY(2px);\n}\n\n.feather-maximize {\n    -moz-transform: translateY(2px);\n}\n\n.vis-tooltip {\n    background: white !important;\n    font-size: 1em !important;\n    font-family: "Courier New", Courier, monospace !important;\n\n    -webkit-marquee: auto medium infinite scroll normal !important;\n    overflow-x: -webkit-marquee !important;\n}\n\n.search-div {\n    background: transparent;\n}\n\n.search-bar {\n    height: 35px;\n    width: 100px;\n    border-radius: 2px;\n    color: black;\n    font-size: 15px;\n    pointer-events: all;\n    border: 1px solid gray;\n    text-align: left;\n    vertical-align: bottom;\n\n    -webkit-transition: all .5s;\n    -moz-transition: all .5s;\n    -o-transition: all .5s;\n    transition: all .5s;\n}\n\nbutton.active::after {\n    visibility: hidden;\n}\n\n.details-text {\n    display: inline-block;\n    margin: auto auto auto 10px;\n    font-weight: bold;\n\n    white-space: nowrap;\n    overflow: hidden;\n    text-overflow: ellipsis;\n}\n\n\n.details-header {\n    padding-top: 5px;\n    padding-bottom: 5px;\n    cursor: move;\n    background-color: white;\n    margin: auto;\n    display: flex;\n    justify-content: space-between;\n    flex-direction: row;\n    border-bottom: 1px solid lightgrey;\n}\n\n.close-button {\n    display: inline-block;\n    float: right;\n    background: inherit;\n    border: none;\n    cursor: pointer !important;\n}\n\n.details-footer {\n    background-color: white;\n    display: flex;\n    justify-content: flex-end;\n    flex-direction: row;\n    border-top: 1px solid lightgrey;\n    height: 40px;\n}\n\n.details-footer-button {\n    background: #4c6b9e;\n    color: white;\n    height: 70%;\n    float: right;\n    border-radius: 2px;\n    border: none;\n    margin-right: 20px;\n    margin-top: 10px;\n\n}\n\n.right-actions {\n    float: right;\n}\n\n.left-actions {\n    float: left;\n}\n\n.bottom-right {\n    position: absolute;\n    display: flex;\n    flex-flow: column;\n    bottom: 0;\n    right: 0;\n    margin-bottom: 4px;\n    margin-right: 4px;\n}\n',""]),t.exports=e},function(t,e,i){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i=function(t,e){var i=t[1]||"",n=t[3];if(!n)return i;if(e&&"function"==typeof btoa){var g=(r=n,A=btoa(unescape(encodeURIComponent(JSON.stringify(r)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(A),"/*# ".concat(s," */")),o=n.sources.map((function(t){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(t," */")}));return[i].concat(o).concat([g]).join("\n")}var r,A,s;return[i].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(i,"}"):i})).join("")},e.i=function(t,i,n){"string"==typeof t&&(t=[[null,t,""]]);var g={};if(n)for(var o=0;o<this.length;o++){var r=this[o][0];null!=r&&(g[r]=!0)}for(var A=0;A<t.length;A++){var s=[].concat(t[A]);n&&g[s[0]]||(i&&(s[2]?s[2]="".concat(i," and ").concat(s[2]):s[2]=i),e.push(s))}},e}}])}));
//# sourceMappingURL=index.js.map