vis-network
Version:
A dynamic, browser-based visualization library.
51 lines • 663 kB
JavaScript
/**
* vis-network
* https://visjs.github.io/vis-network/
*
* A dynamic, browser-based visualization library.
*
* @version 8.1.0
* @date 2020-08-09T06:18:49.398Z
*
* @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 g="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function A(g,A,t){return g(t={path:A,exports:{},require:function(g,A){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==A&&t.path)}},t.exports),t.exports}function t(g){return g&&g.default||g}var C=function(g){return g&&g.Math==Math&&g},e=C("object"==typeof globalThis&&globalThis)||C("object"==typeof window&&window)||C("object"==typeof self&&self)||C("object"==typeof g&&g)||Function("return this")(),I=function(g){try{return!!g()}catch(g){return!0}},i=!I((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),o={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,r={f:n&&!o.call({1:2},1)?function(g){var A=n(this,g);return!!A&&A.enumerable}:o},s=function(g,A){return{enumerable:!(1&g),configurable:!(2&g),writable:!(4&g),value:A}},a={}.toString,d=function(g){return a.call(g).slice(8,-1)},h="".split,l=I((function(){return!Object("z").propertyIsEnumerable(0)}))?function(g){return"String"==d(g)?h.call(g,""):Object(g)}:Object,c=function(g){if(null==g)throw TypeError("Can't call method on "+g);return g},u=function(g){return l(c(g))},p=function(g){return"object"==typeof g?null!==g:"function"==typeof g},v=function(g,A){if(!p(g))return g;var t,C;if(A&&"function"==typeof(t=g.toString)&&!p(C=t.call(g)))return C;if("function"==typeof(t=g.valueOf)&&!p(C=t.call(g)))return C;if(!A&&"function"==typeof(t=g.toString)&&!p(C=t.call(g)))return C;throw TypeError("Can't convert object to primitive value")},f={}.hasOwnProperty,y=function(g,A){return f.call(g,A)},b=e.document,m=p(b)&&p(b.createElement),w=function(g){return m?b.createElement(g):{}},k=!i&&!I((function(){return 7!=Object.defineProperty(w("div"),"a",{get:function(){return 7}}).a})),x=Object.getOwnPropertyDescriptor,O={f:i?x:function(g,A){if(g=u(g),A=v(A,!0),k)try{return x(g,A)}catch(g){}if(y(g,A))return s(!r.f.call(g,A),g[A])}},E=/#|\.prototype\./,T=function(g,A){var t=N[D(g)];return t==P||t!=R&&("function"==typeof A?I(A):!!A)},D=T.normalize=function(g){return String(g).replace(E,".").toLowerCase()},N=T.data={},R=T.NATIVE="N",P=T.POLYFILL="P",M=T,z={},S=function(g){if("function"!=typeof g)throw TypeError(String(g)+" is not a function");return g},B=function(g,A,t){if(S(g),void 0===A)return g;switch(t){case 0:return function(){return g.call(A)};case 1:return function(t){return g.call(A,t)};case 2:return function(t,C){return g.call(A,t,C)};case 3:return function(t,C,e){return g.call(A,t,C,e)}}return function(){return g.apply(A,arguments)}},Z=function(g){if(!p(g))throw TypeError(String(g)+" is not an object");return g},F=Object.defineProperty,G={f:i?F:function(g,A,t){if(Z(g),A=v(A,!0),Z(t),k)try{return F(g,A,t)}catch(g){}if("get"in t||"set"in t)throw TypeError("Accessors not supported");return"value"in t&&(g[A]=t.value),g}},j=i?function(g,A,t){return G.f(g,A,s(1,t))}:function(g,A,t){return g[A]=t,g},L=O.f,V=function(g){var A=function(A,t,C){if(this instanceof g){switch(arguments.length){case 0:return new g;case 1:return new g(A);case 2:return new g(A,t)}return new g(A,t,C)}return g.apply(this,arguments)};return A.prototype=g.prototype,A},Y=function(g,A){var t,C,I,i,o,n,r,s,a=g.target,d=g.global,h=g.stat,l=g.proto,c=d?e:h?e[a]:(e[a]||{}).prototype,u=d?z:z[a]||(z[a]={}),p=u.prototype;for(I in A)t=!M(d?I:a+(h?".":"#")+I,g.forced)&&c&&y(c,I),o=u[I],t&&(n=g.noTargetGet?(s=L(c,I))&&s.value:c[I]),i=t&&n?n:A[I],t&&typeof o==typeof i||(r=g.bind&&t?B(i,e):g.wrap&&t?V(i):l&&"function"==typeof i?B(Function.call,i):i,(g.sham||i&&i.sham||o&&o.sham)&&j(r,"sham",!0),u[I]=r,l&&(y(z,C=a+"Prototype")||j(z,C,{}),z[C][I]=i,g.real&&p&&!p[I]&&j(p,I,i)))},W=[].slice,H={},Q=function(g,A,t){if(!(A in H)){for(var C=[],e=0;e<A;e++)C[e]="a["+e+"]";H[A]=Function("C,a","return new C("+C.join(",")+")")}return H[A](g,t)},U=Function.bind||function(g){var A=S(this),t=W.call(arguments,1),C=function(){var e=t.concat(W.call(arguments));return this instanceof C?Q(A,e.length,e):A.apply(g,e)};return p(A.prototype)&&(C.prototype=A.prototype),C};Y({target:"Function",proto:!0},{bind:U});var _=function(g){return z[g+"Prototype"]},K=_("Function").bind,X=Function.prototype,J=function(g){var A=g.bind;return g===X||g instanceof Function&&A===X.bind?K:A},q=Math.ceil,$=Math.floor,gg=function(g){return isNaN(g=+g)?0:(g>0?$:q)(g)},Ag=Math.min,tg=function(g){return g>0?Ag(gg(g),9007199254740991):0},Cg=Math.max,eg=Math.min,Ig=function(g,A){var t=gg(g);return t<0?Cg(t+A,0):eg(t,A)},ig=function(g){return function(A,t,C){var e,I=u(A),i=tg(I.length),o=Ig(C,i);if(g&&t!=t){for(;i>o;)if((e=I[o++])!=e)return!0}else for(;i>o;o++)if((g||o in I)&&I[o]===t)return g||o||0;return!g&&-1}},og={includes:ig(!0),indexOf:ig(!1)},ng={},rg=og.indexOf,sg=function(g,A){var t,C=u(g),e=0,I=[];for(t in C)!y(ng,t)&&y(C,t)&&I.push(t);for(;A.length>e;)y(C,t=A[e++])&&(~rg(I,t)||I.push(t));return I},ag=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],dg=Object.keys||function(g){return sg(g,ag)},hg={f:Object.getOwnPropertySymbols},lg=function(g){return Object(c(g))},cg=Object.assign,ug=Object.defineProperty,pg=!cg||I((function(){if(i&&1!==cg({b:1},cg(ug({},"a",{enumerable:!0,get:function(){ug(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var g={},A={},t=Symbol();return g[t]=7,"abcdefghijklmnopqrst".split("").forEach((function(g){A[g]=g})),7!=cg({},g)[t]||"abcdefghijklmnopqrst"!=dg(cg({},A)).join("")}))?function(g,A){for(var t=lg(g),C=arguments.length,e=1,I=hg.f,o=r.f;C>e;)for(var n,s=l(arguments[e++]),a=I?dg(s).concat(I(s)):dg(s),d=a.length,h=0;d>h;)n=a[h++],i&&!o.call(s,n)||(t[n]=s[n]);return t}:cg;Y({target:"Object",stat:!0,forced:Object.assign!==pg},{assign:pg});var vg=z.Object.assign;function fg(g,A,t,C){g.beginPath(),g.arc(A,t,C,0,2*Math.PI,!1),g.closePath()}function yg(g,A,t,C,e,I){var i=Math.PI/180;C-2*I<0&&(I=C/2),e-2*I<0&&(I=e/2),g.beginPath(),g.moveTo(A+I,t),g.lineTo(A+C-I,t),g.arc(A+C-I,t+I,I,270*i,360*i,!1),g.lineTo(A+C,t+e-I),g.arc(A+C-I,t+e-I,I,0,90*i,!1),g.lineTo(A+I,t+e),g.arc(A+I,t+e-I,I,90*i,180*i,!1),g.lineTo(A,t+I),g.arc(A+I,t+I,I,180*i,270*i,!1),g.closePath()}function bg(g,A,t,C,e){var I=C/2*.5522848,i=e/2*.5522848,o=A+C,n=t+e,r=A+C/2,s=t+e/2;g.beginPath(),g.moveTo(A,s),g.bezierCurveTo(A,s-i,r-I,t,r,t),g.bezierCurveTo(r+I,t,o,s-i,o,s),g.bezierCurveTo(o,s+i,r+I,n,r,n),g.bezierCurveTo(r-I,n,A,s+i,A,s),g.closePath()}function mg(g,A,t,C,e){var I=e*(1/3),i=C/2*.5522848,o=I/2*.5522848,n=A+C,r=t+I,s=A+C/2,a=t+I/2,d=t+(e-I/2),h=t+e;g.beginPath(),g.moveTo(n,a),g.bezierCurveTo(n,a+o,s+i,r,s,r),g.bezierCurveTo(s-i,r,A,a+o,A,a),g.bezierCurveTo(A,a-o,s-i,t,s,t),g.bezierCurveTo(s+i,t,n,a-o,n,a),g.lineTo(n,d),g.bezierCurveTo(n,d+o,s+i,h,s,h),g.bezierCurveTo(s-i,h,A,d+o,A,d),g.lineTo(A,a)}function wg(g,A,t,C,e,I){g.beginPath(),g.moveTo(A,t);for(var i=I.length,o=C-A,n=e-t,r=n/o,s=Math.sqrt(o*o+n*n),a=0,d=!0,h=0,l=+I[0];s>=.1;)(l=+I[a++%i])>s&&(l=s),h=Math.sqrt(l*l/(1+r*r)),A+=h=o<0?-h:h,t+=r*h,!0===d?g.lineTo(A,t):g.moveTo(A,t),s-=l,d=!d}var kg={circle:fg,dashedLine:wg,database:mg,diamond:function(g,A,t,C){g.beginPath(),g.lineTo(A,t+C),g.lineTo(A+C,t),g.lineTo(A,t-C),g.lineTo(A-C,t),g.closePath()},ellipse:bg,ellipse_vis:bg,hexagon:function(g,A,t,C){g.beginPath();var e=2*Math.PI/6;g.moveTo(A+C,t);for(var I=1;I<6;I++)g.lineTo(A+C*Math.cos(e*I),t+C*Math.sin(e*I));g.closePath()},roundRect:yg,square:function(g,A,t,C){g.beginPath(),g.rect(A-C,t-C,2*C,2*C),g.closePath()},star:function(g,A,t,C){g.beginPath(),t+=.1*(C*=.82);for(var e=0;e<10;e++){var I=e%2==0?1.3*C:.5*C;g.lineTo(A+I*Math.sin(2*e*Math.PI/10),t-I*Math.cos(2*e*Math.PI/10))}g.closePath()},triangle:function(g,A,t,C){g.beginPath(),t+=.275*(C*=1.15);var e=2*C,I=e/2,i=Math.sqrt(3)/6*e,o=Math.sqrt(e*e-I*I);g.moveTo(A,t-(o-i)),g.lineTo(A+I,t+i),g.lineTo(A-I,t+i),g.lineTo(A,t-(o-i)),g.closePath()},triangleDown:function(g,A,t,C){g.beginPath(),t-=.275*(C*=1.15);var e=2*C,I=e/2,i=Math.sqrt(3)/6*e,o=Math.sqrt(e*e-I*I);g.moveTo(A,t+(o-i)),g.lineTo(A+I,t-i),g.lineTo(A-I,t-i),g.lineTo(A,t+(o-i)),g.closePath()}};var xg=A((function(g){function A(g){if(g)return function(g){for(var t in A.prototype)g[t]=A.prototype[t];return g}(g)}g.exports=A,A.prototype.on=A.prototype.addEventListener=function(g,A){return this._callbacks=this._callbacks||{},(this._callbacks["$"+g]=this._callbacks["$"+g]||[]).push(A),this},A.prototype.once=function(g,A){function t(){this.off(g,t),A.apply(this,arguments)}return t.fn=A,this.on(g,t),this},A.prototype.off=A.prototype.removeListener=A.prototype.removeAllListeners=A.prototype.removeEventListener=function(g,A){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var t,C=this._callbacks["$"+g];if(!C)return this;if(1==arguments.length)return delete this._callbacks["$"+g],this;for(var e=0;e<C.length;e++)if((t=C[e])===A||t.fn===A){C.splice(e,1);break}return 0===C.length&&delete this._callbacks["$"+g],this},A.prototype.emit=function(g){this._callbacks=this._callbacks||{};for(var A=new Array(arguments.length-1),t=this._callbacks["$"+g],C=1;C<arguments.length;C++)A[C-1]=arguments[C];if(t){C=0;for(var e=(t=t.slice(0)).length;C<e;++C)t[C].apply(this,A)}return this},A.prototype.listeners=function(g){return this._callbacks=this._callbacks||{},this._callbacks["$"+g]||[]},A.prototype.hasListeners=function(g){return!!this.listeners(g).length}}));Y({target:"Object",stat:!0,forced:!i,sham:!i},{defineProperty:G.f});var Og=A((function(g){var A=z.Object,t=g.exports=function(g,t,C){return A.defineProperty(g,t,C)};A.defineProperty.sham&&(t.sham=!0)})),Eg=Og,Tg=i?Object.defineProperties:function(g,A){Z(g);for(var t,C=dg(A),e=C.length,I=0;e>I;)G.f(g,t=C[I++],A[t]);return g};Y({target:"Object",stat:!0,forced:!i,sham:!i},{defineProperties:Tg});var Dg=A((function(g){var A=z.Object,t=g.exports=function(g,t){return A.defineProperties(g,t)};A.defineProperties.sham&&(t.sham=!0)})),Ng=function(g){return"function"==typeof g?g:void 0},Rg=function(g,A){return arguments.length<2?Ng(z[g])||Ng(e[g]):z[g]&&z[g][A]||e[g]&&e[g][A]},Pg=ag.concat("length","prototype"),Mg={f:Object.getOwnPropertyNames||function(g){return sg(g,Pg)}},zg=Rg("Reflect","ownKeys")||function(g){var A=Mg.f(Z(g)),t=hg.f;return t?A.concat(t(g)):A},Sg=function(g,A,t){var C=v(A);C in g?G.f(g,C,s(0,t)):g[C]=t};Y({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(g){for(var A,t,C=u(g),e=O.f,I=zg(C),i={},o=0;I.length>o;)void 0!==(t=e(C,A=I[o++]))&&Sg(i,A,t);return i}});var Bg=z.Object.getOwnPropertyDescriptors,Zg=O.f,Fg=I((function(){Zg(1)}));Y({target:"Object",stat:!0,forced:!i||Fg,sham:!i},{getOwnPropertyDescriptor:function(g,A){return Zg(u(g),A)}});var Gg,jg=A((function(g){var A=z.Object,t=g.exports=function(g,t){return A.getOwnPropertyDescriptor(g,t)};A.getOwnPropertyDescriptor.sham&&(t.sham=!0)})),Lg=jg,Vg=!!Object.getOwnPropertySymbols&&!I((function(){return!String(Symbol())})),Yg=Vg&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Wg=Array.isArray||function(g){return"Array"==d(g)},Hg=Rg("document","documentElement"),Qg=e["__core-js_shared__"]||function(g,A){try{j(e,g,A)}catch(t){e[g]=A}return A}("__core-js_shared__",{}),Ug=A((function(g){(g.exports=function(g,A){return Qg[g]||(Qg[g]=void 0!==A?A:{})})("versions",[]).push({version:"3.6.4",mode:"pure",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),_g=0,Kg=Math.random(),Xg=function(g){return"Symbol("+String(void 0===g?"":g)+")_"+(++_g+Kg).toString(36)},Jg=Ug("keys"),qg=function(g){return Jg[g]||(Jg[g]=Xg(g))},$g=qg("IE_PROTO"),gA=function(){},AA=function(g){return"<script>"+g+"<\/script>"},tA=function(){try{Gg=document.domain&&new ActiveXObject("htmlfile")}catch(g){}var g,A;tA=Gg?function(g){g.write(AA("")),g.close();var A=g.parentWindow.Object;return g=null,A}(Gg):((A=w("iframe")).style.display="none",Hg.appendChild(A),A.src=String("javascript:"),(g=A.contentWindow.document).open(),g.write(AA("document.F=Object")),g.close(),g.F);for(var t=ag.length;t--;)delete tA.prototype[ag[t]];return tA()};ng[$g]=!0;var CA=Object.create||function(g,A){var t;return null!==g?(gA.prototype=Z(g),t=new gA,gA.prototype=null,t[$g]=g):t=tA(),void 0===A?t:Tg(t,A)},eA=Mg.f,IA={}.toString,iA="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],oA={f:function(g){return iA&&"[object Window]"==IA.call(g)?function(g){try{return eA(g)}catch(g){return iA.slice()}}(g):eA(u(g))}},nA=function(g,A,t,C){C&&C.enumerable?g[A]=t:j(g,A,t)},rA=Ug("wks"),sA=e.Symbol,aA=Yg?sA:sA&&sA.withoutSetter||Xg,dA=function(g){return y(rA,g)||(Vg&&y(sA,g)?rA[g]=sA[g]:rA[g]=aA("Symbol."+g)),rA[g]},hA={f:dA},lA=G.f,cA=function(g){var A=z.Symbol||(z.Symbol={});y(A,g)||lA(A,g,{value:hA.f(g)})},uA={};uA[dA("toStringTag")]="z";var pA="[object z]"===String(uA),vA=dA("toStringTag"),fA="Arguments"==d(function(){return arguments}()),yA=pA?d:function(g){var A,t,C;return void 0===g?"Undefined":null===g?"Null":"string"==typeof(t=function(g,A){try{return g[A]}catch(g){}}(A=Object(g),vA))?t:fA?d(A):"Object"==(C=d(A))&&"function"==typeof A.callee?"Arguments":C},bA=pA?{}.toString:function(){return"[object "+yA(this)+"]"},mA=G.f,wA=dA("toStringTag"),kA=function(g,A,t,C){if(g){var e=t?g:g.prototype;y(e,wA)||mA(e,wA,{configurable:!0,value:A}),C&&!pA&&j(e,"toString",bA)}},xA=Function.toString;"function"!=typeof Qg.inspectSource&&(Qg.inspectSource=function(g){return xA.call(g)});var OA,EA,TA,DA=Qg.inspectSource,NA=e.WeakMap,RA="function"==typeof NA&&/native code/.test(DA(NA)),PA=e.WeakMap;if(RA){var MA=new PA,zA=MA.get,SA=MA.has,BA=MA.set;OA=function(g,A){return BA.call(MA,g,A),A},EA=function(g){return zA.call(MA,g)||{}},TA=function(g){return SA.call(MA,g)}}else{var ZA=qg("state");ng[ZA]=!0,OA=function(g,A){return j(g,ZA,A),A},EA=function(g){return y(g,ZA)?g[ZA]:{}},TA=function(g){return y(g,ZA)}}var FA={set:OA,get:EA,has:TA,enforce:function(g){return TA(g)?EA(g):OA(g,{})},getterFor:function(g){return function(A){var t;if(!p(A)||(t=EA(A)).type!==g)throw TypeError("Incompatible receiver, "+g+" required");return t}}},GA=dA("species"),jA=function(g,A){var t;return Wg(g)&&("function"!=typeof(t=g.constructor)||t!==Array&&!Wg(t.prototype)?p(t)&&null===(t=t[GA])&&(t=void 0):t=void 0),new(void 0===t?Array:t)(0===A?0:A)},LA=[].push,VA=function(g){var A=1==g,t=2==g,C=3==g,e=4==g,I=6==g,i=5==g||I;return function(o,n,r,s){for(var a,d,h=lg(o),c=l(h),u=B(n,r,3),p=tg(c.length),v=0,f=s||jA,y=A?f(o,p):t?f(o,0):void 0;p>v;v++)if((i||v in c)&&(d=u(a=c[v],v,h),g))if(A)y[v]=d;else if(d)switch(g){case 3:return!0;case 5:return a;case 6:return v;case 2:LA.call(y,a)}else if(e)return!1;return I?-1:C||e?e:y}},YA={forEach:VA(0),map:VA(1),filter:VA(2),some:VA(3),every:VA(4),find:VA(5),findIndex:VA(6)},WA=YA.forEach,HA=qg("hidden"),QA=dA("toPrimitive"),UA=FA.set,_A=FA.getterFor("Symbol"),KA=Object.prototype,XA=e.Symbol,JA=Rg("JSON","stringify"),qA=O.f,$A=G.f,gt=oA.f,At=r.f,tt=Ug("symbols"),Ct=Ug("op-symbols"),et=Ug("string-to-symbol-registry"),It=Ug("symbol-to-string-registry"),it=Ug("wks"),ot=e.QObject,nt=!ot||!ot.prototype||!ot.prototype.findChild,rt=i&&I((function(){return 7!=CA($A({},"a",{get:function(){return $A(this,"a",{value:7}).a}})).a}))?function(g,A,t){var C=qA(KA,A);C&&delete KA[A],$A(g,A,t),C&&g!==KA&&$A(KA,A,C)}:$A,st=function(g,A){var t=tt[g]=CA(XA.prototype);return UA(t,{type:"Symbol",tag:g,description:A}),i||(t.description=A),t},at=Yg?function(g){return"symbol"==typeof g}:function(g){return Object(g)instanceof XA},dt=function(g,A,t){g===KA&&dt(Ct,A,t),Z(g);var C=v(A,!0);return Z(t),y(tt,C)?(t.enumerable?(y(g,HA)&&g[HA][C]&&(g[HA][C]=!1),t=CA(t,{enumerable:s(0,!1)})):(y(g,HA)||$A(g,HA,s(1,{})),g[HA][C]=!0),rt(g,C,t)):$A(g,C,t)},ht=function(g,A){Z(g);var t=u(A),C=dg(t).concat(pt(t));return WA(C,(function(A){i&&!lt.call(t,A)||dt(g,A,t[A])})),g},lt=function(g){var A=v(g,!0),t=At.call(this,A);return!(this===KA&&y(tt,A)&&!y(Ct,A))&&(!(t||!y(this,A)||!y(tt,A)||y(this,HA)&&this[HA][A])||t)},ct=function(g,A){var t=u(g),C=v(A,!0);if(t!==KA||!y(tt,C)||y(Ct,C)){var e=qA(t,C);return!e||!y(tt,C)||y(t,HA)&&t[HA][C]||(e.enumerable=!0),e}},ut=function(g){var A=gt(u(g)),t=[];return WA(A,(function(g){y(tt,g)||y(ng,g)||t.push(g)})),t},pt=function(g){var A=g===KA,t=gt(A?Ct:u(g)),C=[];return WA(t,(function(g){!y(tt,g)||A&&!y(KA,g)||C.push(tt[g])})),C};if(Vg||(nA((XA=function(){if(this instanceof XA)throw TypeError("Symbol is not a constructor");var g=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,A=Xg(g),t=function(g){this===KA&&t.call(Ct,g),y(this,HA)&&y(this[HA],A)&&(this[HA][A]=!1),rt(this,A,s(1,g))};return i&&nt&&rt(KA,A,{configurable:!0,set:t}),st(A,g)}).prototype,"toString",(function(){return _A(this).tag})),nA(XA,"withoutSetter",(function(g){return st(Xg(g),g)})),r.f=lt,G.f=dt,O.f=ct,Mg.f=oA.f=ut,hg.f=pt,hA.f=function(g){return st(dA(g),g)},i&&$A(XA.prototype,"description",{configurable:!0,get:function(){return _A(this).description}})),Y({global:!0,wrap:!0,forced:!Vg,sham:!Vg},{Symbol:XA}),WA(dg(it),(function(g){cA(g)})),Y({target:"Symbol",stat:!0,forced:!Vg},{for:function(g){var A=String(g);if(y(et,A))return et[A];var t=XA(A);return et[A]=t,It[t]=A,t},keyFor:function(g){if(!at(g))throw TypeError(g+" is not a symbol");if(y(It,g))return It[g]},useSetter:function(){nt=!0},useSimple:function(){nt=!1}}),Y({target:"Object",stat:!0,forced:!Vg,sham:!i},{create:function(g,A){return void 0===A?CA(g):ht(CA(g),A)},defineProperty:dt,defineProperties:ht,getOwnPropertyDescriptor:ct}),Y({target:"Object",stat:!0,forced:!Vg},{getOwnPropertyNames:ut,getOwnPropertySymbols:pt}),Y({target:"Object",stat:!0,forced:I((function(){hg.f(1)}))},{getOwnPropertySymbols:function(g){return hg.f(lg(g))}}),JA){var vt=!Vg||I((function(){var g=XA();return"[null]"!=JA([g])||"{}"!=JA({a:g})||"{}"!=JA(Object(g))}));Y({target:"JSON",stat:!0,forced:vt},{stringify:function(g,A,t){for(var C,e=[g],I=1;arguments.length>I;)e.push(arguments[I++]);if(C=A,(p(A)||void 0!==g)&&!at(g))return Wg(A)||(A=function(g,A){if("function"==typeof C&&(A=C.call(this,g,A)),!at(A))return A}),e[1]=A,JA.apply(null,e)}})}XA.prototype[QA]||j(XA.prototype,QA,XA.prototype.valueOf),kA(XA,"Symbol"),ng[HA]=!0;var ft,yt,bt,mt=z.Object.getOwnPropertySymbols,wt={},kt=!I((function(){function g(){}return g.prototype.constructor=null,Object.getPrototypeOf(new g)!==g.prototype})),xt=qg("IE_PROTO"),Ot=Object.prototype,Et=kt?Object.getPrototypeOf:function(g){return g=lg(g),y(g,xt)?g[xt]:"function"==typeof g.constructor&&g instanceof g.constructor?g.constructor.prototype:g instanceof Object?Ot:null},Tt=(dA("iterator"),!1);[].keys&&("next"in(bt=[].keys())?(yt=Et(Et(bt)))!==Object.prototype&&(ft=yt):Tt=!0),null==ft&&(ft={});var Dt={IteratorPrototype:ft,BUGGY_SAFARI_ITERATORS:Tt},Nt=Dt.IteratorPrototype,Rt=function(){return this},Pt=Object.setPrototypeOf||("__proto__"in{}?function(){var g,A=!1,t={};try{(g=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(t,[]),A=t instanceof Array}catch(g){}return function(t,C){return Z(t),function(g){if(!p(g)&&null!==g)throw TypeError("Can't set "+String(g)+" as a prototype")}(C),A?g.call(t,C):t.__proto__=C,t}}():void 0),Mt=Dt.IteratorPrototype,zt=Dt.BUGGY_SAFARI_ITERATORS,St=dA("iterator"),Bt=function(){return this},Zt=function(g,A,t,C,e,I,i){!function(g,A,t){var C=A+" Iterator";g.prototype=CA(Nt,{next:s(1,t)}),kA(g,C,!1,!0),wt[C]=Rt}(t,A,C);var o,n,r,a=function(g){if(g===e&&u)return u;if(!zt&&g in l)return l[g];switch(g){case"keys":case"values":case"entries":return function(){return new t(this,g)}}return function(){return new t(this)}},d=A+" Iterator",h=!1,l=g.prototype,c=l[St]||l["@@iterator"]||e&&l[e],u=!zt&&c||a(e),p="Array"==A&&l.entries||c;if(p&&(o=Et(p.call(new g)),Mt!==Object.prototype&&o.next&&(kA(o,d,!0,!0),wt[d]=Bt)),"values"==e&&c&&"values"!==c.name&&(h=!0,u=function(){return c.call(this)}),i&&l[St]!==u&&j(l,St,u),wt[A]=u,e)if(n={values:a("values"),keys:I?u:a("keys"),entries:a("entries")},i)for(r in n)(zt||h||!(r in l))&&nA(l,r,n[r]);else Y({target:A,proto:!0,forced:zt||h},n);return n},Ft=FA.set,Gt=FA.getterFor("Array Iterator");Zt(Array,"Array",(function(g,A){Ft(this,{type:"Array Iterator",target:u(g),index:0,kind:A})}),(function(){var g=Gt(this),A=g.target,t=g.kind,C=g.index++;return!A||C>=A.length?(g.target=void 0,{value:void 0,done:!0}):"keys"==t?{value:C,done:!1}:"values"==t?{value:A[C],done:!1}:{value:[C,A[C]],done:!1}}),"values");wt.Arguments=wt.Array;var jt=dA("toStringTag");for(var Lt 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 Vt=e[Lt],Yt=Vt&&Vt.prototype;Yt&&yA(Yt)!==jt&&j(Yt,jt,Lt),wt[Lt]=wt.Array}var Wt=function(g){return function(A,t){var C,e,I=String(c(A)),i=gg(t),o=I.length;return i<0||i>=o?g?"":void 0:(C=I.charCodeAt(i))<55296||C>56319||i+1===o||(e=I.charCodeAt(i+1))<56320||e>57343?g?I.charAt(i):C:g?I.slice(i,i+2):e-56320+(C-55296<<10)+65536}},Ht={codeAt:Wt(!1),charAt:Wt(!0)}.charAt,Qt=FA.set,Ut=FA.getterFor("String Iterator");Zt(String,"String",(function(g){Qt(this,{type:"String Iterator",string:String(g),index:0})}),(function(){var g,A=Ut(this),t=A.string,C=A.index;return C>=t.length?{value:void 0,done:!0}:(g=Ht(t,C),A.index+=g.length,{value:g,done:!1})}));var _t=dA("iterator"),Kt=function(g){if(null!=g)return g[_t]||g["@@iterator"]||wt[yA(g)]},Xt=function(g){var A=Kt(g);if("function"!=typeof A)throw TypeError(String(g)+" is not iterable");return Z(A.call(g))},Jt=Kt,qt=function(g,A,t,C){try{return C?A(Z(t)[0],t[1]):A(t)}catch(A){var e=g.return;throw void 0!==e&&Z(e.call(g)),A}},$t=dA("iterator"),gC=Array.prototype,AC=function(g){return void 0!==g&&(wt.Array===g||gC[$t]===g)},tC=dA("iterator"),CC=!1;try{var eC=0,IC={next:function(){return{done:!!eC++}},return:function(){CC=!0}};IC[tC]=function(){return this},Array.from(IC,(function(){throw 2}))}catch(g){}var iC=!function(g,A){if(!A&&!CC)return!1;var t=!1;try{var C={};C[tC]=function(){return{next:function(){return{done:t=!0}}}},g(C)}catch(g){}return t}((function(g){Array.from(g)}));Y({target:"Array",stat:!0,forced:iC},{from:function(g){var A,t,C,e,I,i,o=lg(g),n="function"==typeof this?this:Array,r=arguments.length,s=r>1?arguments[1]:void 0,a=void 0!==s,d=Kt(o),h=0;if(a&&(s=B(s,r>2?arguments[2]:void 0,2)),null==d||n==Array&&AC(d))for(t=new n(A=tg(o.length));A>h;h++)i=a?s(o[h],h):o[h],Sg(t,h,i);else for(I=(e=d.call(o)).next,t=new n;!(C=I.call(e)).done;h++)i=a?qt(e,s,[C.value,h],!0):C.value,Sg(t,h,i);return t.length=h,t}});var oC=z.Array.from,nC=oC;Y({target:"Object",stat:!0,sham:!i},{create:CA});var rC=z.Object,sC=function(g,A){return rC.create(g,A)},aC=sC,dC=Og;var hC,lC=function(g,A,t){return A in g?dC(g,A,{value:t,enumerable:!0,configurable:!0,writable:!0}):g[A]=t,g},cC="\t\n\v\f\r \u2028\u2029\ufeff",uC="["+cC+"]",pC=RegExp("^"+uC+uC+"*"),vC=RegExp(uC+uC+"*$"),fC=function(g){return function(A){var t=String(c(A));return 1&g&&(t=t.replace(pC,"")),2&g&&(t=t.replace(vC,"")),t}},yC={start:fC(1),end:fC(2),trim:fC(3)},bC=yC.trim;Y({target:"String",proto:!0,forced:(hC="trim",I((function(){return!!cC[hC]()||"
"!="
"[hC]()||cC[hC].name!==hC})))},{trim:function(){return bC(this)}});_("String").trim;var mC=function(g,A){var t=[][g];return!!t&&I((function(){t.call(null,A||function(){throw 1},1)}))},wC=Object.defineProperty,kC={},xC=function(g){throw g},OC=function(g,A){if(y(kC,g))return kC[g];A||(A={});var t=[][g],C=!!y(A,"ACCESSORS")&&A.ACCESSORS,e=y(A,0)?A[0]:xC,o=y(A,1)?A[1]:void 0;return kC[g]=!!t&&!I((function(){if(C&&!i)return!0;var g={length:-1};C?wC(g,1,{enumerable:!0,get:xC}):g[1]=1,t.call(g,e,o)}))},EC=YA.forEach,TC=mC("forEach"),DC=OC("forEach"),NC=TC&&DC?[].forEach:function(g){return EC(this,g,arguments.length>1?arguments[1]:void 0)};Y({target:"Array",proto:!0,forced:[].forEach!=NC},{forEach:NC});var RC=_("Array").forEach,PC=Array.prototype,MC={DOMTokenList:!0,NodeList:!0},zC=function(g){var A=g.forEach;return g===PC||g instanceof Array&&A===PC.forEach||MC.hasOwnProperty(yA(g))?RC:A},SC=yC.trim,BC=e.parseInt,ZC=/^[+-]?0[Xx]/,FC=8!==BC(cC+"08")||22!==BC(cC+"0x16")?function(g,A){var t=SC(String(g));return BC(t,A>>>0||(ZC.test(t)?16:10))}:BC;Y({global:!0,forced:parseInt!=FC},{parseInt:FC});var GC=z.parseInt,jC=r.f,LC=function(g){return function(A){for(var t,C=u(A),e=dg(C),I=e.length,o=0,n=[];I>o;)t=e[o++],i&&!jC.call(C,t)||n.push(g?[t,C[t]]:C[t]);return n}},VC={entries:LC(!0),values:LC(!1)}.values;Y({target:"Object",stat:!0},{values:function(g){return VC(g)}});z.Object.values;var YC,WC,HC=Rg("navigator","userAgent")||"",QC=e.process,UC=QC&&QC.versions,_C=UC&&UC.v8;_C?WC=(YC=_C.split("."))[0]+YC[1]:HC&&(!(YC=HC.match(/Edge\/(\d+)/))||YC[1]>=74)&&(YC=HC.match(/Chrome\/(\d+)/))&&(WC=YC[1]);var KC=WC&&+WC,XC=dA("species"),JC=function(g){return KC>=51||!I((function(){var A=[];return(A.constructor={})[XC]=function(){return{foo:1}},1!==A[g](Boolean).foo}))},qC=YA.filter,$C=JC("filter"),ge=OC("filter");Y({target:"Array",proto:!0,forced:!$C||!ge},{filter:function(g){return qC(this,g,arguments.length>1?arguments[1]:void 0)}});var Ae=_("Array").filter,te=Array.prototype,Ce=function(g){var A=g.filter;return g===te||g instanceof Array&&A===te.filter?Ae:A},ee=I((function(){Et(1)}));Y({target:"Object",stat:!0,forced:ee,sham:!kt},{getPrototypeOf:function(g){return Et(lg(g))}});var Ie=z.Object.getPrototypeOf,ie=Ie,oe=og.indexOf,ne=[].indexOf,re=!!ne&&1/[1].indexOf(1,-0)<0,se=mC("indexOf"),ae=OC("indexOf",{ACCESSORS:!0,1:0});Y({target:"Array",proto:!0,forced:re||!se||!ae},{indexOf:function(g){return re?ne.apply(this,arguments)||0:oe(this,g,arguments.length>1?arguments[1]:void 0)}});var de=_("Array").indexOf,he=Array.prototype,le=function(g){var A=g.indexOf;return g===he||g instanceof Array&&A===he.indexOf?de:A};Y({target:"Array",stat:!0},{isArray:Wg});var ce=z.Array.isArray,ue=ce;var pe=function(g){if(ue(g))return g},ve=dA("iterator"),fe=function(g){var A=Object(g);return void 0!==A[ve]||"@@iterator"in A||wt.hasOwnProperty(yA(A))},ye=dA("isConcatSpreadable"),be=KC>=51||!I((function(){var g=[];return g[ye]=!1,g.concat()[0]!==g})),me=JC("concat"),we=function(g){if(!p(g))return!1;var A=g[ye];return void 0!==A?!!A:Wg(g)};Y({target:"Array",proto:!0,forced:!be||!me},{concat:function(g){var A,t,C,e,I,i=lg(this),o=jA(i,0),n=0;for(A=-1,C=arguments.length;A<C;A++)if(we(I=-1===A?i:arguments[A])){if(n+(e=tg(I.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(t=0;t<e;t++,n++)t in I&&Sg(o,n,I[t])}else{if(n>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Sg(o,n++,I)}return o.length=n,o}});var ke=Object.freeze({__proto__:null});cA("asyncIterator");var xe=Object.freeze({__proto__:null});cA("hasInstance"),cA("isConcatSpreadable"),cA("iterator"),cA("match"),cA("matchAll"),cA("replace"),cA("search"),cA("species"),cA("split"),cA("toPrimitive"),cA("toStringTag"),cA("unscopables"),kA(Math,"Math",!0),kA(e.JSON,"JSON",!0),t(ke),t(xe);var Oe=z.Symbol;cA("asyncDispose"),cA("dispose"),cA("observable"),cA("patternMatch"),cA("replaceAll");var Ee=Oe;var Te=function(g,A){if(void 0!==Ee&&fe(Object(g))){var t=[],C=!0,e=!1,I=void 0;try{for(var i,o=Xt(g);!(C=(i=o.next()).done)&&(t.push(i.value),!A||t.length!==A);C=!0);}catch(g){e=!0,I=g}finally{try{C||null==o.return||o.return()}finally{if(e)throw I}}return t}},De=oC,Ne=JC("slice"),Re=OC("slice",{ACCESSORS:!0,0:0,1:2}),Pe=dA("species"),Me=[].slice,ze=Math.max;Y({target:"Array",proto:!0,forced:!Ne||!Re},{slice:function(g,A){var t,C,e,I=u(this),i=tg(I.length),o=Ig(g,i),n=Ig(void 0===A?i:A,i);if(Wg(I)&&("function"!=typeof(t=I.constructor)||t!==Array&&!Wg(t.prototype)?p(t)&&null===(t=t[Pe])&&(t=void 0):t=void 0,t===Array||void 0===t))return Me.call(I,o,n);for(C=new(void 0===t?Array:t)(ze(n-o,0)),e=0;o<n;o++,e++)o in I&&Sg(C,e,I[o]);return C.length=e,C}});var Se=_("Array").slice,Be=Array.prototype,Ze=function(g){var A=g.slice;return g===Be||g instanceof Array&&A===Be.slice?Se:A},Fe=Ze;var Ge=function(g,A){(null==A||A>g.length)&&(A=g.length);for(var t=0,C=new Array(A);t<A;t++)C[t]=g[t];return C};var je=function(g,A){var t;if(g){if("string"==typeof g)return Ge(g,A);var C=Fe(t=Object.prototype.toString.call(g)).call(t,8,-1);return"Object"===C&&g.constructor&&(C=g.constructor.name),"Map"===C||"Set"===C?De(g):"Arguments"===C||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C)?Ge(g,A):void 0}};var Le=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 Ve=function(g,A){return pe(g)||Te(g,A)||je(g,A)||Le()};Y({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}});var Ye=z.Date.now,We=I((function(){dg(1)}));Y({target:"Object",stat:!0,forced:We},{keys:function(g){return dg(lg(g))}});var He=z.Object.keys,Qe=YA.map,Ue=JC("map"),_e=OC("map");Y({target:"Array",proto:!0,forced:!Ue||!_e},{map:function(g){return Qe(this,g,arguments.length>1?arguments[1]:void 0)}});var Ke=_("Array").map,Xe=Array.prototype,Je=function(g){var A=g.map;return g===Xe||g instanceof Array&&A===Xe.map?Ke:A},qe=ce,$e=hA.f("iterator"),gI=$e,AI=A((function(g){function A(t){return g.exports=A="function"==typeof Ee&&"symbol"==typeof gI?function(g){return typeof g}:function(g){return g&&"function"==typeof Ee&&g.constructor===Ee&&g!==Ee.prototype?"symbol":typeof g},A(t)}g.exports=A}));Y({target:"Reflect",stat:!0},{ownKeys:zg});var tI=z.Reflect.ownKeys,CI=Ze;var eI=function(g){if(ue(g))return Ge(g)};var II=function(g){if(void 0!==Ee&&fe(Object(g)))return De(g)};var iI=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 oI=function(g){return eI(g)||II(g)||je(g)||iI()},nI=_("Array").concat,rI=Array.prototype,sI=function(g){var A=g.concat;return g===rI||g instanceof Array&&A===rI.concat?nI:A},aI=Oe;function dI(g,A){var t;if(void 0===aI||null==Jt(g)){if(qe(g)||(t=function(g,A){var t;if(!g)return;if("string"==typeof g)return hI(g,A);var C=CI(t=Object.prototype.toString.call(g)).call(t,8,-1);"Object"===C&&g.constructor&&(C=g.constructor.name);if("Map"===C||"Set"===C)return nC(g);if("Arguments"===C||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C))return hI(g,A)}(g))||A&&g&&"number"==typeof g.length){t&&(g=t);var C=0,e=function(){};return{s:e,n:function(){return C>=g.length?{done:!0}:{done:!1,value:g[C++]}},e:function(g){throw g},f:e}}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 I,i=!0,o=!1;return{s:function(){t=Xt(g)},n:function(){var g=t.next();return i=g.done,g},e:function(g){o=!0,I=g},f:function(){try{i||null==t.return||t.return()}finally{if(o)throw I}}}}function hI(g,A){(null==A||A>g.length)&&(A=g.length);for(var t=0,C=new Array(A);t<A;t++)C[t]=g[t];return C}
/**
* vis-util
* https://github.com/visjs/vis-util
*
* utilitie collection for visjs
*
* @version 4.3.4
* @date 2020-08-01T15:11:53.524Z
*
* @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 lI=aI("DELETE");function cI(){var g=uI.apply(void 0,arguments);return vI(g),g}function uI(){for(var g=arguments.length,A=new Array(g),t=0;t<g;t++)A[t]=arguments[t];if(A.length<2)return A[0];var C;if(A.length>2)return uI.apply(void 0,sI(C=[cI(A[0],A[1])]).call(C,oI(CI(A).call(A,2))));var e,I=A[0],i=A[1],o=dI(tI(i));try{for(o.s();!(e=o.n()).done;){var n=e.value;Object.prototype.propertyIsEnumerable.call(i,n)&&(i[n]===lI?delete I[n]:null===I[n]||null===i[n]||"object"!==AI(I[n])||"object"!==AI(i[n])||qe(I[n])||qe(i[n])?I[n]=pI(i[n]):I[n]=uI(I[n],i[n]))}}catch(g){o.e(g)}finally{o.f()}return I}function pI(g){return qe(g)?Je(g).call(g,(function(g){return pI(g)})):"object"===AI(g)&&null!==g?uI({},g):g}function vI(g){for(var A=0,t=He(g);A<t.length;A++){var C=t[A];g[C]===lI?delete g[C]:"object"===AI(g[C])&&null!==g[C]&&vI(g[C])}}function fI(){for(var g=arguments.length,A=new Array(g),t=0;t<g;t++)A[t]=arguments[t];return yI(A.length?A:[Ye()])}function yI(g){var A=function(){for(var g=bI(),A=g(" "),t=g(" "),C=g(" "),e=0;e<arguments.length;e++)(A-=g(e<0||arguments.length<=e?void 0:arguments[e]))<0&&(A+=1),(t-=g(e<0||arguments.length<=e?void 0:arguments[e]))<0&&(t+=1),(C-=g(e<0||arguments.length<=e?void 0:arguments[e]))<0&&(C+=1);return[A,t,C]}(g),t=Ve(A,3),C=t[0],e=t[1],I=t[2],i=1,o=function(){var g=2091639*C+2.3283064365386963e-10*i;return C=e,e=I,I=g-(i=0|g)};return o.uint32=function(){return 4294967296*o()},o.fract53=function(){return o()+11102230246251565e-32*(2097152*o()|0)},o.algorithm="Alea",o.seed=g,o.version="0.9",o}function bI(){var g=4022871197;return function(A){for(var t=A.toString(),C=0;C<t.length;C++){var e=.02519603282416938*(g+=t.charCodeAt(C));e-=g=e>>>0,g=(e*=g)>>>0,g+=4294967296*(e-=g)}return 2.3283064365386963e-10*(g>>>0)}}var mI=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,wI=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,kI=/^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,xI=/^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 OI(g){if(g)for(;!0===g.hasChildNodes();){var A=g.firstChild;A&&(OI(A),g.removeChild(A))}}function EI(g){return g instanceof String||"string"==typeof g}function TI(g){return"object"===AI(g)&&null!==g}function DI(g,A,t,C){var e=!1;!0===C&&(e=null===A[t]&&void 0!==g[t]),e?delete g[t]:g[t]=A[t]}function NI(g,A){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var C in g)if(void 0!==A[C])if(null===A[C]||"object"!==AI(A[C]))DI(g,A,C,t);else{var e=g[C],I=A[C];TI(e)&&TI(I)&&NI(e,I,t)}}function RI(g,A,t){var C=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(qe(t))throw new TypeError("Arrays are not supported by deepExtend");for(var e=0;e<g.length;e++){var I=g[e];if(Object.prototype.hasOwnProperty.call(t,I))if(t[I]&&t[I].constructor===Object)void 0===A[I]&&(A[I]={}),A[I].constructor===Object?MI(A[I],t[I],!1,C):DI(A,t,I,C);else{if(qe(t[I]))throw new TypeError("Arrays are not supported by deepExtend");DI(A,t,I,C)}}return A}function PI(g,A,t){var C=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(qe(t))throw new TypeError("Arrays are not supported by deepExtend");for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&-1===le(g).call(g,e))if(t[e]&&t[e].constructor===Object)void 0===A[e]&&(A[e]={}),A[e].constructor===Object?MI(A[e],t[e]):DI(A,t,e,C);else if(qe(t[e])){A[e]=[];for(var I=0;I<t[e].length;I++)A[e].push(t[e][I])}else DI(A,t,e,C);return A}function MI(g,A){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],C=arguments.length>3&&void 0!==arguments[3]&&arguments[3];for(var e in A)if(Object.prototype.hasOwnProperty.call(A,e)||!0===t)if("object"===AI(A[e])&&null!==A[e]&&ie(A[e])===Object.prototype)void 0===g[e]?g[e]=MI({},A[e],t):"object"===AI(g[e])&&null!==g[e]&&ie(g[e])===Object.prototype?MI(g[e],A[e],t):DI(g,A,e,C);else if(qe(A[e])){var I;g[e]=CI(I=A[e]).call(I)}else DI(g,A,e,C);return g}function zI(g,A){var t;return sI(t=[]).call(t,oI(g),[A])}function SI(g){return CI(g).call(g)}function BI(g){return g.getBoundingClientRect().top}function ZI(g,A){if(qe(g))for(var t=g.length,C=0;C<t;C++)A(g[C],C,g);else for(var e in g)Object.prototype.hasOwnProperty.call(g,e)&&A(g[e],e,g)}function FI(g){var A;switch(g.length){case 3:case 4:return(A=wI.exec(g))?{r:GC(A[1]+A[1],16),g:GC(A[2]+A[2],16),b:GC(A[3]+A[3],16)}:null;case 6:case 7:return(A=mI.exec(g))?{r:GC(A[1],16),g:GC(A[2],16),b:GC(A[3],16)}:null;default:return null}}function GI(g,A){if(-1!==le(g).call(g,"rgba"))return g;if(-1!==le(g).call(g,"rgb")){var t=g.substr(le(g).call(g,"(")+1).replace(")","").split(",");return"rgba("+t[0]+","+t[1]+","+t[2]+","+A+")"}var C=FI(g);return null==C?g:"rgba("+C.r+","+C.g+","+C.b+","+A+")"}function jI(g,A,t){var C;return"#"+CI(C=((1<<24)+(g<<16)+(A<<8)+t).toString(16)).call(C,1)}function LI(g,A){if(EI(g)){var t=g;if(QI(t)){var C,e=Je(C=t.substr(4).substr(0,t.length-5).split(",")).call(C,(function(g){return GC(g)}));t=jI(e[0],e[1],e[2])}if(!0===HI(t)){var I=function(g){var A=FI(g);if(!A)throw new TypeError("'".concat(g,"' is not a valid color."));return VI(A.r,A.g,A.b)}(t),i={h:I.h,s:.8*I.s,v:Math.min(1,1.02*I.v)},o={h:I.h,s:Math.min(1,1.25*I.s),v:.8*I.v},n=WI(o.h,o.s,o.v),r=WI(i.h,i.s,i.v);return{background:t,border:n,highlight:{background:r,border:n},hover:{background:r,border:n}}}return{background:t,border:t,highlight:{background:t,border:t},hover:{background:t,border:t}}}return A?{background:g.background||A.background,border:g.border||A.border,highlight:EI(g.highlight)?{border:g.highlight,background:g.highlight}:{background:g.highlight&&g.highlight.background||A.highlight.background,border:g.highlight&&g.highlight.border||A.highlight.border},hover:EI(g.hover)?{border:g.hover,background:g.hover}:{border:g.hover&&g.hover.border||A.hover.border,background:g.hover&&g.hover.background||A.hover.background}}:{background:g.background||void 0,border:g.border||void 0,highlight:EI(g.highlight)?{border:g.highlight,background:g.highlight}:{background:g.highlight&&g.highlight.background||void 0,border:g.highlight&&g.highlight.border||void 0},hover:EI(g.hover)?{border:g.hover,background:g.hover}:{border:g.hover&&g.hover.border||void 0,background:g.hover&&g.hover.background||void 0}}}function VI(g,A,t){g/=255,A/=255,t/=255;var C=Math.min(g,Math.min(A,t)),e=Math.max(g,Math.max(A,t));return C===e?{h:0,s:0,v:C}:{h:60*((g===C?3:t===C?1:5)-(g===C?A-t:t===C?g-A:t-g)/(e-C))/360,s:(e-C)/e,v:e}}function YI(g,A,t){var C,e,I,i=Math.floor(6*g),o=6*g-i,n=t*(1-A),r=t*(1-o*A),s=t*(1-(1-o)*A);switch(i%6){case 0:C=t,e=s,I=n;break;case 1:C=r,e=t,I=n;break;case 2:C=n,e=t,I=s;break;case 3:C=n,e=r,I=t;break;case 4:C=s,e=n,I=t;break;case 5:C=t,e=n,I=r}return{r:Math.floor(255*C),g:Math.floor(255*e),b:Math.floor(255*I)}}function WI(g,A,t){var C=YI(g,A,t);return jI(C.r,C.g,C.b)}function HI(g){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(g)}function QI(g){return kI.test(g)}function UI(g){return xI.test(g)}function _I(g){if(null===g||"object"!==AI(g))return null;if(g instanceof Element)return g;var A=aC(g);for(var t in g)Object.prototype.hasOwnProperty.call(g,t)&&"object"==AI(g[t])&&(A[t]=_I(g[t]));return A}function KI(g,A,t){var C=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},e=function(g){return null!=g},I=function(g){return null!==g&&"object"===AI(g)},i=function(g){for(var A in g)if(Object.prototype.hasOwnProperty.call(g,A))return!1;return!0};if(!I(g))throw new Error("Parameter mergeTarget must be an object");if(!I(A))throw new Error("Parameter options must be an object");if(!e(t))throw new Error("Parameter option must have a value");if(!I(C))throw new Error("Parameter globalOptions must be an object");var o=function(g,A,t){I(g[t])||(g[t]={});var C=A[t],e=g[t];for(var i in C)Object.prototype.hasOwnProperty.call(C,i)&&(e[i]=C[i])},n=A[t],r=I(C)&&!i(C),s=r?C[t]:void 0,a=s?s.enabled:void 0;if(void 0!==n){if("boolean"==typeof n)return I(g[t])||(g[t]={}),void(g[t].enabled=n);if(null===n&&!I(g[t])){if(!e(s))return;g[t]=aC(s)}if(I(n)){var d=!0;void 0!==n.enabled?d=n.enabled:void 0!==a&&(d=s.enabled),o(g,A,t),g[t].enabled=d}}}var XI={linear:function(g){return g},easeInQuad:function(g){return g*g},easeOutQuad:function(g){return g*(2-g)},easeInOutQuad:function(g){return g<.5?2*g*g:(4-2*g)*g-1},easeInCubic:function(g){return g*g*g},easeOutCubic:function(g){return--g*g*g+1},easeInOutCubic:function(g){return g<.5?4*g*g*g:(g-1)*(2*g-2)*(2*g-2)+1},easeInQuart:function(g){return g*g*g*g},easeOutQuart:function(g){return 1- --g*g*g*g},easeInOutQuart:function(g){return g<.5?8*g*g*g*g:1-8*--g*g*g*g},easeInQuint:function(g){return g*g*g*g*g},easeOutQuint:function(g){return 1+--g*g*g*g*g},easeInOutQuint:function(g){return g<.5?16*g*g*g*g*g:1+16*--g*g*g*g*g}};function JI(g,A){var t;qe(A)||(A=[A]);var C,e=dI(g);try{for(e.s();!(C=e.n()).done;){var I=C.value;if(I){t=I[A[0]];for(var i=1;i<A.length;i++)t&&(t=t[A[i]]);if(void 0!==t)break}}}catch(g){e.e(g)}finally{e.f()}return t}var qI=JC("splice"),$I=OC("splice",{ACCESSORS:!0,0:0,1:2}),gi=Math.max,Ai=Math.min;Y({target:"Array",proto:!0,forced:!qI||!$I},{splice:function(g,A){var t,C,e,I,i,o,n=lg(this),r=tg(n.length),s=Ig(g,r),a=arguments.length;if(0===a?t=C=0:1===a?(t=0,C=r-s):(t=a-2,C=Ai(gi(gg(A),0),r-s)),r+t-C>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(e=jA(n,C),I=0;I<C;I++)(i=s+I)in n&&Sg(e,I,n[i]);if(e.length=C,t<C){for(I=s;I<r-C;I++)o=I+t,(i=I+C)in n?n[o]=n[i]:delete n[o];for(I=r;I>r-C+t;I--)delete n[I-1]}else if(t>C)for(I=r-C;I>s;I--)o=I+t-1,(i=I+C-1)in n?n[o]=n[i]:delete n[o];for(I=0;I<t;I++)n[I+s]=arguments[I+2];return n.length=r-C+t,e}});var ti=_("Array").splice,Ci=Array.prototype,ei=function(g){var A=g.splice;return g===Ci||g instanceof Array&&A===Ci.splice?ti:A},Ii=og.includes,ii=OC("indexOf",{ACCESSORS:!0,1:0});Y({target:"Array",proto:!0,forced:!ii},{includes:function(g){return Ii(this,g,arguments.length>1?arguments[1]:void 0)}});var oi=_("Array").includes,ni=dA("match"),ri=function(g){if(function(g){var A;return p(g)&&(void 0!==(A=g[ni])?!!A:"RegExp"==d(g))}(g))throw TypeError("The method doesn't accept regular expressions");return g},si=dA("match");Y({target:"String",proto:!0,forced:!function(g){var A=/./;try{"/./"[g](A)}catch(t){try{return A[si]=!1,"/./"[g](A)}catch(g){}}return!1}("includes")},{includes:function(g){return!!~String(c(this)).indexOf(ri(g),arguments.length>1?arguments[1]:void 0)}});var ai=_("String").includes,di=Array.prototype,hi=String.prototype,li=function(g){var A=g.includes;return g===di||g instanceof Array&&A===di.includes?oi:"string"==typeof g||g===hi||g instanceof String&&A===hi.includes?ai:A};function ci(g){return wi=g,function(){var g={};ki=0,void(xi=wi.charAt(0)),Zi(),"strict"===Oi&&(g.strict=!0,Zi());"graph"!==Oi&&"digraph"!==Oi||(g.type=Oi,Zi());Ei===yi&&(g.id=Oi,Zi());if("{"!=Oi)throw Yi("Angle bracket { expected");if(Zi(),Fi(g),"}"!=Oi)throw Yi("Angle bracket } expected");if(Zi(),""!==Oi)throw Yi("End of file expected");return Zi(),delete g.node,delete g.edge,delete g.graph,g}()}var ui={fontsize:"font.size",fontcolor:"font.color",labelfontcolor:"font.color",fontname:"font.face",color:["color.border","color.background"],fillcolor:"color.background",tooltip:"title",labeltooltip:"title"},pi=aC(ui);pi.color="color.color",pi.style="dashes";var vi=0,fi=1,yi=2,bi=3,mi={"{":!0,"}":!0,"[":!0,"]":!0,";":!0,"=":!0,",":!0,"->":!0,"--":!0},wi="",ki=0,xi="",Oi="",Ei=vi;function Ti(){ki++,xi=wi.charAt(ki)}function Di(){return wi.charAt(ki+1)}var Ni=/[a-zA-Z_0-9.:#]/;function Ri(g){return Ni.test(g)}function Pi(g,A){if(g||(g={}),A)for(var t in A)A.hasOwnProperty(t)&&(g[t]=A[t]);return g}function Mi(g,A,t){for(var C=A.split("."),e=g;C.length;){var I=C.shift();C.length?(e[I]||(e[I]={}),e=e[I]):e[I]=t}}function zi(g,A){for(var t,C,e=null,I=[g],i=g;i.parent;)I.push(i.parent),i=i.parent;if(i.nodes)for(t=0,C=i.nodes.length;t<C;t++)if(A.id===i.nodes[t].id){e=i.nodes[t];break}for(e||(e={id:A.id},g.node&&(e.attr=Pi(e.attr,g.node))),t=I.length-1;t>=0;t--){var o,n=I[t];n.nodes||(n.nodes=[]),-1===le(o=n.nodes).call(o,e)&&n.nodes.push(e)}A.attr&&(e.attr=Pi(e.attr,A.attr))}function Si(g,A){if(g.edges||(g.edges=[]),g.edges.push(A),g.edge){var t=Pi({},g.edge);A.attr=Pi(t,A.attr)}}function Bi(g,A,t,C,e){var I={from:A,to:t,type:C};return g.edge&&(I.attr=Pi({},g.edge)),I.attr=Pi(I.attr||{},e),null!=e&&e.hasOwnProperty("arrows")&&null!=e.arrows&&(I.arrows={to:{enabled:!0,type:e.arrows.type}},e.arrows=null),I}function Zi(){for(Ei=vi,Oi="";" "===xi||"\t"===xi||"\n"===xi||"\r"===xi;)Ti();do{var g=!1;if("#"===xi){for(var A=ki-1;" "===wi.charAt(A)||"\t"===wi.charAt(A);)A--;if("\n"===wi.charAt(A)||""===wi.charAt(A)){for(;""!=xi&&"\n"!=xi;)Ti();g=!0}}if("/"===xi&&"/"===Di()){for(;""!=xi&&"\n"!=xi;)Ti();g=!0}if("/"===xi&&"*"===Di()){for(;""!=xi;){if("*"===xi&&"/"===Di()){Ti(),Ti();break}Ti()}g=!0}for(;" "===xi||"\t"===xi||"\n"===xi||"\r"===xi;)Ti()}while(g);if(""!==xi){var t=xi+Di();if(mi[t])return Ei=fi,Oi=t,Ti(),void Ti();if(mi[xi])return Ei=fi,Oi=xi,void Ti();if(Ri(xi)||"-"===xi){for(Oi+=xi,Ti();Ri(xi);)Oi+=xi,Ti();return"false"===Oi?Oi=!1:"true"===Oi?Oi=!0:isNaN(Number(Oi))||(Oi=Number(Oi)),void(Ei=yi)}if('"'===xi){for(Ti();""!=xi&&('"'!=xi||'"'===xi&&'"'===Di());)'"'===xi?(Oi+=xi,Ti()):"\\"===xi&&"n"===Di()?(Oi+="\n",Ti()):Oi+=xi,Ti();if('"'!=xi)throw Yi('End of string " expected');return Ti(),void(Ei=yi)}for(Ei=bi;""!=xi;)Oi+=xi,Ti();throw new SyntaxError('Syntax error in part "'+Wi(Oi,30)+'"')}Ei=fi}function Fi(g){for(;""!==Oi&&"}"!=Oi;)Gi(g),";"===Oi&&Zi()}function Gi(g){var A=ji(g);if(A)Li(g,A);else if(!function(g){if("node"===Oi)return Zi(),g.node=Vi(),"node";if("edge"===Oi)return Zi(),g.edge=Vi(),"edge";if("graph"===Oi)return Zi(),g.graph=Vi(),"graph";return null}(g)){if(Ei!=yi)throw Yi("Identifier expected");var t=Oi;if(Zi(),"="===Oi){if(Zi(),Ei!=yi)throw Yi("Identifier expected");g[t]=Oi,Zi()}else!function(g,A){var t={id:A},C=Vi();C&&(t.attr=C);zi(g,t),Li(g,A)}(g,t)}}function ji(g){var A=null;if("subgraph"===Oi&&((A={}).type="subgraph",Zi(),Ei===yi&&(A.id=Oi,Zi())),"{"===Oi){if(Zi(),A||(A={}),A.parent=g,A.node=g.node,A.edge=g.edge,A.graph=g.graph,Fi(A),"}"!=Oi)throw Yi("Angle bracket } expected");Zi(),delete A.node,delete A.edge,delete A.graph,delete A.parent,g.subgraphs||(g.subgraphs=[]),g.subgraphs.push(A)}return A}function Li(g,A){for(;"->"===Oi||"--"===Oi;){var t,C=Oi;Zi();var e=ji(g);if(e)t=e;else{if(Ei!=yi)throw Yi("Identifier or subgraph expected");zi(g,{id:t=Oi}),Zi()}Si(g,Bi(g,A,t,C,Vi())),A=t}}function Vi(){for(var g,A,t=null,C={dashed:!0,solid:!1,dotted:[1,5]},e={dot:"circle",box:"box",crow:"crow",curve:"curve",icurve:"inv_curve",normal:"triangle",inv:"inv_triangle",diamond:"diamond",tee:"bar",vee:"vee"},I=new Array,i=new Array;"["===Oi;){for(Zi(),t={};""!==Oi&&"]"!=Oi;){if(Ei!=yi)throw Yi("Attribute name expected");var o=Oi;if(Zi(),"="!=Oi)throw Yi("Equal sign = expected");if(Zi(),Ei!=yi)throw Yi("Attribute value expected");var n=Oi;"style"===o&&(n=C[n]),"arrowhead"===o&&(o="arrows",n={to:{enabled:!0,type:e[n]}}),"arrowtail"===o&&(o="arrows",n={from:{enabled:!0,type:e[n]}}),I.push({attr:t,name:o,value:n}),i.push(o),Zi(),","==Oi&&Zi()}if("]"!=Oi)throw Yi("Bracket ] expected");Zi()}if(li(i).call(i,"dir")){var r={arrows:{}};for(g=0;g<I.length;g++)if("arrows"===I[g].name)if(null!=I[g].value.to)r.arrows.to=g;else{if(null==I[g].value.from)throw Yi("Invalid value of arrows");r.arrows.from=g}else"dir"===I[g].name&&(r.dir=g);var s,a,d=I[r.dir].value;if(!li(i).call(i,"arrows"))if("both"===d)I.push({attr:I[r.dir].attr,name:"arrows",value:{to:{enabled:!0}}}),r.arrows.to=I.length-1,I.push({attr:I[r.dir].attr,name:"arrows",value:{from:{enabled:!0}}}),r.arrows.from=I.length-1;else if("forward"===d)I.push({attr:I[r.dir].attr,name:"arrows",value:{to:{enabled:!0}}}),r.arrows.to=I.length-1;else if("back"===d)I.push({attr:I[r.dir].attr,name:"arrows",value:{from:{enabled:!0}}}),r.arrows.from=I.length-1;else{if("none"!==d)throw Yi('Invalid dir type "'+d+'"');I.push({attr:I[r.dir].attr,name:"arrows",value:""}),r.arrows.to=I.length-1}if("both"===d)r.arrows.to&&r.arrows.from?(a=I[r.arrows.to].value.to.type,s=I[r.arrows.from].value.from.type,I[r.arrows.to]={attr:I[r.arrows.to].attr,name:I[r.arrows.to].name,value:{to:{enabled:!0,type:a},from:{enabled:!0,type:s}}},ei(I).call(I,r.arrows.from,1)):r.arrows.to?(a=I[r.arrows.to].value.to.type,s="arrow",I[r.arrows.to]={attr:I[r.arrows.to].attr,name:I[r.arrows.to].name,value:{to:{enabled:!0,type:a},from:{enabled:!0,type:s}}}):r.arrows.from&&(a="arrow",s=I[r.arrows.from].value.from.type,I[r.arrows.from]={attr:I[r.arrows.from].attr,name:I[r.arrows.from].name,value:{to:{enabled:!0,type:a},from:{enabled:!0,type:s}}});else if("back"===d)r.arrows.to&&r.arrows.from?(a="",s=I[r.arrows.from].value.from.type,I[r.arrows.from]={attr:I[r.arrows.from].attr,name:I[r.arrows.from].name,value:{to:{enabled:!0,type:a},from:{enabled:!0,type:s}}}):r.arrows.to?(a="",s="arrow",r.arrows.from=r.arrows.to,I[r.arrows.from]={attr:I[r.arrows.from].attr,name:I[r.arrows.from].name,value:{to:{enabled:!0,type:a},from:{enabled:!0,type:s}}}):r.arrows.from&&(a="",s=I[r.arrows.from].value.from.type,I[r.arrows.to]={attr:I[r.arrows.from].attr,name:I[r.arrows.from].name,value:{to:{enabled:!0,type:a},from:{enabled:!0,type:s}}}),I[r.arrows.from]={attr:I[r.arrows.from].attr,name:I[r.arrows.from].name,value:{from:{enabled:!0,type:I[r.arrows.from].value.from.type}}};else if("none"===d){var h;I[h=r.arrows.to?r.arrows.to:r.arrows.from]={attr:I[h].attr,name:I[h].name,value:""}}else{if("forward"!==d)throw Yi('Invalid dir type "'+d