UNPKG

vis-network

Version:

A dynamic, browser-based visualization library.

52 lines 428 kB
/** * vis-network * https://visjs.github.io/vis-network/ * * A dynamic, browser-based visualization library. * * @version 10.0.2 * @date 2025-09-15T17:49:24.446Z * * @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 t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var i,o,n,s,r,a,h,d,l,c,u,p,f,g,m,v,y={};function b(){if(o)return i;o=1;var e=function(t){return t&&t.Math===Math&&t};return i=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof t&&t)||e("object"==typeof i&&i)||function(){return this}()||Function("return this")()}function w(){return s?n:(s=1,n=function(t){try{return!!t()}catch(t){return!0}})}function _(){return a?r:(a=1,r=!w()(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))}function x(){if(d)return h;d=1;var t=_(),e=Function.prototype,i=e.apply,o=e.call;return h="object"==typeof Reflect&&Reflect.apply||(t?o.bind(i):function(){return o.apply(i,arguments)}),h}function E(){if(c)return l;c=1;var t=_(),e=Function.prototype,i=e.call,o=t&&e.bind.bind(i,i);return l=t?o:function(t){return function(){return i.apply(t,arguments)}},l}function O(){if(p)return u;p=1;var t=E(),e=t({}.toString),i=t("".slice);return u=function(t){return i(e(t),8,-1)},u}function C(){if(g)return f;g=1;var t=O(),e=E();return f=function(i){if("Function"===t(i))return e(i)}}function k(){if(v)return m;v=1;var t="object"==typeof document&&document.all;return m=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(t){return"function"==typeof t}}var S,T,D,M,I={};function P(){return T?S:(T=1,S=!w()(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))}function N(){if(M)return D;M=1;var t=_(),e=Function.prototype.call;return D=t?e.bind(e):function(){return e.apply(e,arguments)},D}var B,z,F,A,j,R,L,H,W,q,V,U,Y,X,G,K,Z,Q,$,J,tt,et,it,ot,nt,st,rt,at,ht,dt,lt,ct,ut,pt,ft,gt,mt,vt={};function yt(){if(B)return vt;B=1;var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,i=e&&!t.call({1:2},1);return vt.f=i?function(t){var i=e(this,t);return!!i&&i.enumerable}:t,vt}function bt(){return F?z:(F=1,z=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}})}function wt(){if(j)return A;j=1;var t=E(),e=w(),i=O(),o=Object,n=t("".split);return A=e(function(){return!o("z").propertyIsEnumerable(0)})?function(t){return"String"===i(t)?n(t,""):o(t)}:o,A}function _t(){return L||(L=1,R=function(t){return null==t}),R}function xt(){if(W)return H;W=1;var t=_t(),e=TypeError;return H=function(i){if(t(i))throw new e("Can't call method on "+i);return i},H}function Et(){if(V)return q;V=1;var t=wt(),e=xt();return q=function(i){return t(e(i))},q}function Ot(){if(Y)return U;Y=1;var t=k();return U=function(e){return"object"==typeof e?null!==e:t(e)},U}function Ct(){return G?X:(G=1,X={})}function kt(){if(Z)return K;Z=1;var t=Ct(),e=b(),i=k(),o=function(t){return i(t)?t:void 0};return K=function(i,n){return arguments.length<2?o(t[i])||o(e[i]):t[i]&&t[i][n]||e[i]&&e[i][n]},K}function St(){return $?Q:($=1,Q=E()({}.isPrototypeOf))}function Tt(){if(tt)return J;tt=1;var t=b().navigator,e=t&&t.userAgent;return J=e?String(e):""}function Dt(){if(it)return et;it=1;var t,e,i=b(),o=Tt(),n=i.process,s=i.Deno,r=n&&n.versions||s&&s.version,a=r&&r.v8;return a&&(e=(t=a.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!e&&o&&(!(t=o.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=o.match(/Chrome\/(\d+)/))&&(e=+t[1]),et=e}function Mt(){if(nt)return ot;nt=1;var t=Dt(),e=w(),i=b().String;return ot=!!Object.getOwnPropertySymbols&&!e(function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t&&t<41}),ot}function It(){return rt?st:(rt=1,st=Mt()&&!Symbol.sham&&"symbol"==typeof Symbol.iterator)}function Pt(){if(ht)return at;ht=1;var t=kt(),e=k(),i=St(),o=Object;return at=It()?function(t){return"symbol"==typeof t}:function(n){var s=t("Symbol");return e(s)&&i(s.prototype,o(n))},at}function Nt(){if(lt)return dt;lt=1;var t=String;return dt=function(e){try{return t(e)}catch(t){return"Object"}}}function Bt(){if(ut)return ct;ut=1;var t=k(),e=Nt(),i=TypeError;return ct=function(o){if(t(o))return o;throw new i(e(o)+" is not a function")}}function zt(){if(ft)return pt;ft=1;var t=Bt(),e=_t();return pt=function(i,o){var n=i[o];return e(n)?void 0:t(n)}}function Ft(){if(mt)return gt;mt=1;var t=N(),e=k(),i=Ot(),o=TypeError;return gt=function(n,s){var r,a;if("string"===s&&e(r=n.toString)&&!i(a=t(r,n)))return a;if(e(r=n.valueOf)&&!i(a=t(r,n)))return a;if("string"!==s&&e(r=n.toString)&&!i(a=t(r,n)))return a;throw new o("Can't convert object to primitive value")}}var At,jt,Rt,Lt,Ht,Wt,qt,Vt,Ut,Yt,Xt,Gt,Kt,Zt,Qt,$t,Jt,te,ee,ie,oe,ne,se,re,ae,he,de,le,ce={exports:{}};function ue(){return jt?At:(jt=1,At=!0)}function pe(){if(Lt)return Rt;Lt=1;var t=b(),e=Object.defineProperty;return Rt=function(i,o){try{e(t,i,{value:o,configurable:!0,writable:!0})}catch(e){t[i]=o}return o}}function fe(){if(Ht)return ce.exports;Ht=1;var t=ue(),e=b(),i=pe(),o="__core-js_shared__",n=ce.exports=e[o]||i(o,{});return(n.versions||(n.versions=[])).push({version:"3.44.0",mode:t?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE",source:"https://github.com/zloirock/core-js"}),ce.exports}function ge(){if(qt)return Wt;qt=1;var t=fe();return Wt=function(e,i){return t[e]||(t[e]=i||{})}}function me(){if(Ut)return Vt;Ut=1;var t=xt(),e=Object;return Vt=function(i){return e(t(i))}}function ve(){if(Xt)return Yt;Xt=1;var t=E(),e=me(),i=t({}.hasOwnProperty);return Yt=Object.hasOwn||function(t,o){return i(e(t),o)},Yt}function ye(){if(Kt)return Gt;Kt=1;var t=E(),e=0,i=Math.random(),o=t(1.1.toString);return Gt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+o(++e+i,36)}}function be(){if(Qt)return Zt;Qt=1;var t=b(),e=ge(),i=ve(),o=ye(),n=Mt(),s=It(),r=t.Symbol,a=e("wks"),h=s?r.for||r:r&&r.withoutSetter||o;return Zt=function(t){return i(a,t)||(a[t]=n&&i(r,t)?r[t]:h("Symbol."+t)),a[t]}}function we(){if(Jt)return $t;Jt=1;var t=N(),e=Ot(),i=Pt(),o=zt(),n=Ft(),s=TypeError,r=be()("toPrimitive");return $t=function(a,h){if(!e(a)||i(a))return a;var d,l=o(a,r);if(l){if(void 0===h&&(h="default"),d=t(l,a,h),!e(d)||i(d))return d;throw new s("Can't convert object to primitive value")}return void 0===h&&(h="number"),n(a,h)}}function _e(){if(ee)return te;ee=1;var t=we(),e=Pt();return te=function(i){var o=t(i,"string");return e(o)?o:o+""}}function xe(){if(oe)return ie;oe=1;var t=b(),e=Ot(),i=t.document,o=e(i)&&e(i.createElement);return ie=function(t){return o?i.createElement(t):{}},ie}function Ee(){if(se)return ne;se=1;var t=P(),e=w(),i=xe();return ne=!t&&!e(function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})}function Oe(){if(re)return I;re=1;var t=P(),e=N(),i=yt(),o=bt(),n=Et(),s=_e(),r=ve(),a=Ee(),h=Object.getOwnPropertyDescriptor;return I.f=t?h:function(t,d){if(t=n(t),d=s(d),a)try{return h(t,d)}catch(t){}if(r(t,d))return o(!e(i.f,t,d),t[d])},I}function Ce(){if(he)return ae;he=1;var t=w(),e=k(),i=/#|\.prototype\./,o=function(i,o){var h=s[n(i)];return h===a||h!==r&&(e(o)?t(o):!!o)},n=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},s=o.data={},r=o.NATIVE="N",a=o.POLYFILL="P";return ae=o}function ke(){if(le)return de;le=1;var t=C(),e=Bt(),i=_(),o=t(t.bind);return de=function(t,n){return e(t),void 0===n?t:i?o(t,n):function(){return t.apply(n,arguments)}},de}var Se,Te,De,Me,Ie,Pe,Ne,Be,ze,Fe,Ae,je,Re,Le,He,We,qe,Ve,Ue,Ye,Xe,Ge,Ke,Ze,Qe,$e,Je,ti,ei,ii={};function oi(){return Te?Se:(Te=1,Se=P()&&w()(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}))}function ni(){if(Me)return De;Me=1;var t=Ot(),e=String,i=TypeError;return De=function(o){if(t(o))return o;throw new i(e(o)+" is not an object")}}function si(){if(Ie)return ii;Ie=1;var t=P(),e=Ee(),i=oi(),o=ni(),n=_e(),s=TypeError,r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,h="enumerable",d="configurable",l="writable";return ii.f=t?i?function(t,e,i){if(o(t),e=n(e),o(i),"function"==typeof t&&"prototype"===e&&"value"in i&&l in i&&!i[l]){var s=a(t,e);s&&s[l]&&(t[e]=i.value,i={configurable:d in i?i[d]:s[d],enumerable:h in i?i[h]:s[h],writable:!1})}return r(t,e,i)}:r:function(t,i,a){if(o(t),i=n(i),o(a),e)try{return r(t,i,a)}catch(t){}if("get"in a||"set"in a)throw new s("Accessors not supported");return"value"in a&&(t[i]=a.value),t},ii}function ri(){if(Ne)return Pe;Ne=1;var t=P(),e=si(),i=bt();return Pe=t?function(t,o,n){return e.f(t,o,i(1,n))}:function(t,e,i){return t[e]=i,t},Pe}function ai(){if(ze)return Be;ze=1;var t=b(),e=x(),i=C(),o=k(),n=Oe().f,s=Ce(),r=Ct(),a=ke(),h=ri(),d=ve(),l=function(t){var i=function(o,n,s){if(this instanceof i){switch(arguments.length){case 0:return new t;case 1:return new t(o);case 2:return new t(o,n)}return new t(o,n,s)}return e(t,this,arguments)};return i.prototype=t.prototype,i};return Be=function(e,c){var u,p,f,g,m,v,y,b,w,_=e.target,x=e.global,E=e.stat,O=e.proto,C=x?t:E?t[_]:t[_]&&t[_].prototype,k=x?r:r[_]||h(r,_,{})[_],S=k.prototype;for(g in c)p=!(u=s(x?g:_+(E?".":"#")+g,e.forced))&&C&&d(C,g),v=k[g],p&&(y=e.dontCallGetSet?(w=n(C,g))&&w.value:C[g]),m=p&&y?y:c[g],(u||O||typeof v!=typeof m)&&(b=e.bind&&p?a(m,t):e.wrap&&p?l(m):O&&o(m)?i(m):m,(e.sham||m&&m.sham||v&&v.sham)&&h(b,"sham",!0),h(k,g,b),O&&(d(r,f=_+"Prototype")||h(r,f,{}),h(r[f],g,m),e.real&&S&&(u||!S[g])&&h(S,g,m)))}}function hi(){if(Ae)return Fe;Ae=1;var t=Math.ceil,e=Math.floor;return Fe=Math.trunc||function(i){var o=+i;return(o>0?e:t)(o)}}function di(){if(Re)return je;Re=1;var t=hi();return je=function(e){var i=+e;return i!=i||0===i?0:t(i)},je}function li(){if(He)return Le;He=1;var t=di(),e=Math.max,i=Math.min;return Le=function(o,n){var s=t(o);return s<0?e(s+n,0):i(s,n)},Le}function ci(){if(qe)return We;qe=1;var t=di(),e=Math.min;return We=function(i){var o=t(i);return o>0?e(o,9007199254740991):0}}function ui(){if(Ue)return Ve;Ue=1;var t=ci();return Ve=function(e){return t(e.length)}}function pi(){if(Xe)return Ye;Xe=1;var t=Et(),e=li(),i=ui(),o=function(o){return function(n,s,r){var a=t(n),h=i(a);if(0===h)return!o&&-1;var d,l=e(r,h);if(o&&s!=s){for(;h>l;)if((d=a[l++])!=d)return!0}else for(;h>l;l++)if((o||l in a)&&a[l]===s)return o||l||0;return!o&&-1}};return Ye={includes:o(!0),indexOf:o(!1)}}function fi(){return Ke?Ge:(Ke=1,Ge={})}function gi(){if(Qe)return Ze;Qe=1;var t=E(),e=ve(),i=Et(),o=pi().indexOf,n=fi(),s=t([].push);return Ze=function(t,r){var a,h=i(t),d=0,l=[];for(a in h)!e(n,a)&&e(h,a)&&s(l,a);for(;r.length>d;)e(h,a=r[d++])&&(~o(l,a)||s(l,a));return l},Ze}function mi(){return Je?$e:(Je=1,$e=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function vi(){if(ei)return ti;ei=1;var t=gi(),e=mi();return ti=Object.keys||function(i){return t(i,e)}}var yi,bi,wi,_i,xi,Ei,Oi,Ci,ki,Si,Ti={};function Di(){return yi||(yi=1,Ti.f=Object.getOwnPropertySymbols),Ti}function Mi(){if(wi)return bi;wi=1;var t=P(),e=E(),i=N(),o=w(),n=vi(),s=Di(),r=yt(),a=me(),h=wt(),d=Object.assign,l=Object.defineProperty,c=e([].concat);return bi=!d||o(function(){if(t&&1!==d({b:1},d(l({},"a",{enumerable:!0,get:function(){l(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},i={},o=Symbol("assign detection"),s="abcdefghijklmnopqrst";return e[o]=7,s.split("").forEach(function(t){i[t]=t}),7!==d({},e)[o]||n(d({},i)).join("")!==s})?function(e,o){for(var d=a(e),l=arguments.length,u=1,p=s.f,f=r.f;l>u;)for(var g,m=h(arguments[u++]),v=p?c(n(m),p(m)):n(m),y=v.length,b=0;y>b;)g=v[b++],t&&!i(f,m,g)||(d[g]=m[g]);return d}:d,bi}function Ii(){return Ei?xi:(Ei=1,function(){if(_i)return y;_i=1;var t=ai(),e=Mi();t({target:"Object",stat:!0,arity:2,forced:Object.assign!==e},{assign:e})}(),xi=Ct().Object.assign)}function Pi(){return Ci?Oi:(Ci=1,Oi=Ii())}var Ni,Bi,zi,Fi,Ai,ji,Ri,Li,Hi,Wi,qi,Vi,Ui,Yi,Xi,Gi=e(Si?ki:(Si=1,ki=Pi())),Ki={};function Zi(){return Bi?Ni:(Bi=1,Ni=E()([].slice))}function Qi(){if(Fi)return zi;Fi=1;var t=E(),e=Bt(),i=Ot(),o=ve(),n=Zi(),s=_(),r=Function,a=t([].concat),h=t([].join),d={};return zi=s?r.bind:function(t){var s=e(this),l=s.prototype,c=n(arguments,1),u=function(){var e=a(c,n(arguments));return this instanceof u?function(t,e,i){if(!o(d,e)){for(var n=[],s=0;s<e;s++)n[s]="a["+s+"]";d[e]=r("C,a","return new C("+h(n,",")+")")}return d[e](t,i)}(s,e.length,e):s.apply(t,e)};return i(l)&&(u.prototype=l),u},zi}function $i(){if(Ri)return ji;Ri=1;var t=b(),e=Ct();return ji=function(i,o){var n=e[i+"Prototype"],s=n&&n[o];if(s)return s;var r=t[i],a=r&&r.prototype;return a&&a[o]}}function Ji(){return Hi?Li:(Hi=1,function(){if(Ai)return Ki;Ai=1;var t=ai(),e=Qi();t({target:"Function",proto:!0,forced:Function.bind!==e},{bind:e})}(),Li=$i()("Function","bind"))}function to(){if(qi)return Wi;qi=1;var t=St(),e=Ji(),i=Function.prototype;return Wi=function(o){var n=o.bind;return o===i||t(i,o)&&n===i.bind?e:n},Wi}function eo(){return Ui?Vi:(Ui=1,Vi=to())}var io=e(Xi?Yi:(Xi=1,Yi=eo()));function oo(t,e,i,o){t.beginPath(),t.arc(e,i,o,0,2*Math.PI,!1),t.closePath()}function no(t,e,i,o,n,s){const r=Math.PI/180;o-2*s<0&&(s=o/2),n-2*s<0&&(s=n/2),t.beginPath(),t.moveTo(e+s,i),t.lineTo(e+o-s,i),t.arc(e+o-s,i+s,s,270*r,360*r,!1),t.lineTo(e+o,i+n-s),t.arc(e+o-s,i+n-s,s,0,90*r,!1),t.lineTo(e+s,i+n),t.arc(e+s,i+n-s,s,90*r,180*r,!1),t.lineTo(e,i+s),t.arc(e+s,i+s,s,180*r,270*r,!1),t.closePath()}function so(t,e,i,o,n){const s=.5522848,r=o/2*s,a=n/2*s,h=e+o,d=i+n,l=e+o/2,c=i+n/2;t.beginPath(),t.moveTo(e,c),t.bezierCurveTo(e,c-a,l-r,i,l,i),t.bezierCurveTo(l+r,i,h,c-a,h,c),t.bezierCurveTo(h,c+a,l+r,d,l,d),t.bezierCurveTo(l-r,d,e,c+a,e,c),t.closePath()}function ro(t,e,i,o,n){const s=n*(1/3),r=.5522848,a=o/2*r,h=s/2*r,d=e+o,l=i+s,c=e+o/2,u=i+s/2,p=i+(n-s/2),f=i+n;t.beginPath(),t.moveTo(d,u),t.bezierCurveTo(d,u+h,c+a,l,c,l),t.bezierCurveTo(c-a,l,e,u+h,e,u),t.bezierCurveTo(e,u-h,c-a,i,c,i),t.bezierCurveTo(c+a,i,d,u-h,d,u),t.lineTo(d,p),t.bezierCurveTo(d,p+h,c+a,f,c,f),t.bezierCurveTo(c-a,f,e,p+h,e,p),t.lineTo(e,u)}function ao(t,e,i,o,n,s){t.beginPath(),t.moveTo(e,i);const r=s.length,a=o-e,h=n-i,d=h/a;let l=Math.sqrt(a*a+h*h),c=0,u=!0,p=0,f=+s[0];for(;l>=.1;)f=+s[c++%r],f>l&&(f=l),p=Math.sqrt(f*f/(1+d*d)),p=a<0?-p:p,e+=p,i+=d*p,!0===u?t.lineTo(e,i):t.moveTo(e,i),l-=f,u=!u}const ho={circle:oo,dashedLine:ao,database:ro,diamond:function(t,e,i,o){t.beginPath(),t.lineTo(e,i+o),t.lineTo(e+o,i),t.lineTo(e,i-o),t.lineTo(e-o,i),t.closePath()},ellipse:so,ellipse_vis:so,hexagon:function(t,e,i,o){t.beginPath();const n=2*Math.PI/6;t.moveTo(e+o,i);for(let s=1;s<6;s++)t.lineTo(e+o*Math.cos(n*s),i+o*Math.sin(n*s));t.closePath()},roundRect:no,square:function(t,e,i,o){t.beginPath(),t.rect(e-o,i-o,2*o,2*o),t.closePath()},star:function(t,e,i,o){t.beginPath(),i+=.1*(o*=.82);for(let n=0;n<10;n++){const s=n%2==0?1.3*o:.5*o;t.lineTo(e+s*Math.sin(2*n*Math.PI/10),i-s*Math.cos(2*n*Math.PI/10))}t.closePath()},triangle:function(t,e,i,o){t.beginPath(),i+=.275*(o*=1.15);const n=2*o,s=n/2,r=Math.sqrt(3)/6*n,a=Math.sqrt(n*n-s*s);t.moveTo(e,i-(a-r)),t.lineTo(e+s,i+r),t.lineTo(e-s,i+r),t.lineTo(e,i-(a-r)),t.closePath()},triangleDown:function(t,e,i,o){t.beginPath(),i-=.275*(o*=1.15);const n=2*o,s=n/2,r=Math.sqrt(3)/6*n,a=Math.sqrt(n*n-s*s);t.moveTo(e,i+(a-r)),t.lineTo(e+s,i-r),t.lineTo(e-s,i-r),t.lineTo(e,i+(a-r)),t.closePath()}};var lo,co={exports:{}};var uo,po=(lo||(lo=1,function(){function t(e){if(e)return function(e){for(var i in t.prototype)e[i]=t.prototype[i];return e}(e)}co.exports=t,t.prototype.on=t.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},t.prototype.once=function(t,e){function i(){this.off(t,i),e.apply(this,arguments)}return i.fn=e,this.on(t,i),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var i,o=this._callbacks["$"+t];if(!o)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var n=0;n<o.length;n++)if((i=o[n])===e||i.fn===e){o.splice(n,1);break}return 0===o.length&&delete this._callbacks["$"+t],this},t.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),i=this._callbacks["$"+t],o=1;o<arguments.length;o++)e[o-1]=arguments[o];if(i){o=0;for(var n=(i=i.slice(0)).length;o<n;++o)i[o].apply(this,e)}return this},t.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},t.prototype.hasListeners=function(t){return!!this.listeners(t).length}}()),co.exports),fo=e(po);function go(){return go=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},go.apply(this,arguments)}function mo(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function vo(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}uo="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 o=arguments[i];if(null!=o)for(var n in o)o.hasOwnProperty(n)&&(e[n]=o[n])}return e}:Object.assign;var yo,bo=uo,wo=["","webkit","Moz","MS","ms","o"],_o="undefined"==typeof document?{style:{}}:document.createElement("div"),xo=Math.round,Eo=Math.abs,Oo=Date.now;function Co(t,e){for(var i,o,n=e[0].toUpperCase()+e.slice(1),s=0;s<wo.length;){if((o=(i=wo[s])?i+n:e)in t)return o;s++}}yo="undefined"==typeof window?{}:window;var ko=Co(_o.style,"touchAction"),So=void 0!==ko;var To="compute",Do="auto",Mo="manipulation",Io="none",Po="pan-x",No="pan-y",Bo=function(){if(!So)return!1;var t={},e=yo.CSS&&yo.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(i){return t[i]=!e||yo.CSS.supports("touch-action",i)}),t}(),zo="ontouchstart"in yo,Fo=void 0!==Co(yo,"PointerEvent"),Ao=zo&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),jo="touch",Ro="mouse",Lo=16,Ho=24,Wo=["x","y"],qo=["clientX","clientY"];function Vo(t,e,i){var o;if(t)if(t.forEach)t.forEach(e,i);else if(void 0!==t.length)for(o=0;o<t.length;)e.call(i,t[o],o,t),o++;else for(o in t)t.hasOwnProperty(o)&&e.call(i,t[o],o,t)}function Uo(t,e){return"function"==typeof t?t.apply(e&&e[0]||void 0,e):t}function Yo(t,e){return t.indexOf(e)>-1}var Xo=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){t===To&&(t=this.compute()),So&&this.manager.element.style&&Bo[t]&&(this.manager.element.style[ko]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return Vo(this.manager.recognizers,function(e){Uo(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),function(t){if(Yo(t,Io))return Io;var e=Yo(t,Po),i=Yo(t,No);return e&&i?Io:e||i?e?Po:No:Yo(t,Mo)?Mo:Do}(t.join(" "))},e.preventDefaults=function(t){var e=t.srcEvent,i=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var o=this.actions,n=Yo(o,Io)&&!Bo[Io],s=Yo(o,No)&&!Bo[No],r=Yo(o,Po)&&!Bo[Po];if(n){var a=1===t.pointers.length,h=t.distance<2,d=t.deltaTime<250;if(a&&h&&d)return}if(!r||!s)return n||s&&6&i||r&&i&Ho?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function Go(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function Ko(t){var e=t.length;if(1===e)return{x:xo(t[0].clientX),y:xo(t[0].clientY)};for(var i=0,o=0,n=0;n<e;)i+=t[n].clientX,o+=t[n].clientY,n++;return{x:xo(i/e),y:xo(o/e)}}function Zo(t){for(var e=[],i=0;i<t.pointers.length;)e[i]={clientX:xo(t.pointers[i].clientX),clientY:xo(t.pointers[i].clientY)},i++;return{timeStamp:Oo(),pointers:e,center:Ko(e),deltaX:t.deltaX,deltaY:t.deltaY}}function Qo(t,e,i){i||(i=Wo);var o=e[i[0]]-t[i[0]],n=e[i[1]]-t[i[1]];return Math.sqrt(o*o+n*n)}function $o(t,e,i){i||(i=Wo);var o=e[i[0]]-t[i[0]],n=e[i[1]]-t[i[1]];return 180*Math.atan2(n,o)/Math.PI}function Jo(t,e){return t===e?1:Eo(t)>=Eo(e)?t<0?2:4:e<0?8:Lo}function tn(t,e,i){return{x:e/t||0,y:i/t||0}}function en(t,e){var i=t.session,o=e.pointers,n=o.length;i.firstInput||(i.firstInput=Zo(e)),n>1&&!i.firstMultiple?i.firstMultiple=Zo(e):1===n&&(i.firstMultiple=!1);var s=i.firstInput,r=i.firstMultiple,a=r?r.center:s.center,h=e.center=Ko(o);e.timeStamp=Oo(),e.deltaTime=e.timeStamp-s.timeStamp,e.angle=$o(a,h),e.distance=Qo(a,h),function(t,e){var i=e.center,o=t.offsetDelta||{},n=t.prevDelta||{},s=t.prevInput||{};1!==e.eventType&&4!==s.eventType||(n=t.prevDelta={x:s.deltaX||0,y:s.deltaY||0},o=t.offsetDelta={x:i.x,y:i.y}),e.deltaX=n.x+(i.x-o.x),e.deltaY=n.y+(i.y-o.y)}(i,e),e.offsetDirection=Jo(e.deltaX,e.deltaY);var d,l,c=tn(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=c.x,e.overallVelocityY=c.y,e.overallVelocity=Eo(c.x)>Eo(c.y)?c.x:c.y,e.scale=r?(d=r.pointers,Qo((l=o)[0],l[1],qo)/Qo(d[0],d[1],qo)):1,e.rotation=r?function(t,e){return $o(e[1],e[0],qo)+$o(t[1],t[0],qo)}(r.pointers,o):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,o,n,s,r=t.lastInterval||e,a=e.timeStamp-r.timeStamp;if(8!==e.eventType&&(a>25||void 0===r.velocity)){var h=e.deltaX-r.deltaX,d=e.deltaY-r.deltaY,l=tn(a,h,d);o=l.x,n=l.y,i=Eo(l.x)>Eo(l.y)?l.x:l.y,s=Jo(h,d),t.lastInterval=e}else i=r.velocity,o=r.velocityX,n=r.velocityY,s=r.direction;e.velocity=i,e.velocityX=o,e.velocityY=n,e.direction=s}(i,e);var u,p=t.element,f=e.srcEvent;Go(u=f.composedPath?f.composedPath()[0]:f.path?f.path[0]:f.target,p)&&(p=u),e.target=p}function on(t,e,i){var o=i.pointers.length,n=i.changedPointers.length,s=1&e&&o-n===0,r=12&e&&o-n===0;i.isFirst=!!s,i.isFinal=!!r,s&&(t.session={}),i.eventType=e,en(t,i),t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function nn(t){return t.trim().split(/\s+/g)}function sn(t,e,i){Vo(nn(e),function(e){t.addEventListener(e,i,!1)})}function rn(t,e,i){Vo(nn(e),function(e){t.removeEventListener(e,i,!1)})}function an(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var hn=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){Uo(t.options.enable,[t])&&i.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&sn(this.element,this.evEl,this.domHandler),this.evTarget&&sn(this.target,this.evTarget,this.domHandler),this.evWin&&sn(an(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&rn(this.element,this.evEl,this.domHandler),this.evTarget&&rn(this.target,this.evTarget,this.domHandler),this.evWin&&rn(an(this.element),this.evWin,this.domHandler)},t}();function dn(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);for(var o=0;o<t.length;){if(i&&t[o][i]==e||!i&&t[o]===e)return o;o++}return-1}var ln={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},cn={2:jo,3:"pen",4:Ro,5:"kinect"},un="pointerdown",pn="pointermove pointerup pointercancel";yo.MSPointerEvent&&!yo.PointerEvent&&(un="MSPointerDown",pn="MSPointerMove MSPointerUp MSPointerCancel");var fn=function(t){function e(){var i,o=e.prototype;return o.evEl=un,o.evWin=pn,(i=t.apply(this,arguments)||this).store=i.manager.session.pointerEvents=[],i}return mo(e,t),e.prototype.handler=function(t){var e=this.store,i=!1,o=t.type.toLowerCase().replace("ms",""),n=ln[o],s=cn[t.pointerType]||t.pointerType,r=s===jo,a=dn(e,t.pointerId,"pointerId");1&n&&(0===t.button||r)?a<0&&(e.push(t),a=e.length-1):12&n&&(i=!0),a<0||(e[a]=t,this.callback(this.manager,n,{pointers:e,changedPointers:[t],pointerType:s,srcEvent:t}),i&&e.splice(a,1))},e}(hn);function gn(t){return Array.prototype.slice.call(t,0)}function mn(t,e,i){for(var o=[],n=[],s=0;s<t.length;){var r=e?t[s][e]:t[s];dn(n,r)<0&&o.push(t[s]),n[s]=r,s++}return i&&(o=e?o.sort(function(t,i){return t[e]>i[e]}):o.sort()),o}var vn={touchstart:1,touchmove:2,touchend:4,touchcancel:8},yn=function(t){function e(){var i;return e.prototype.evTarget="touchstart touchmove touchend touchcancel",(i=t.apply(this,arguments)||this).targetIds={},i}return mo(e,t),e.prototype.handler=function(t){var e=vn[t.type],i=bn.call(this,t,e);i&&this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:jo,srcEvent:t})},e}(hn);function bn(t,e){var i,o,n=gn(t.touches),s=this.targetIds;if(3&e&&1===n.length)return s[n[0].identifier]=!0,[n,n];var r=gn(t.changedTouches),a=[],h=this.target;if(o=n.filter(function(t){return Go(t.target,h)}),1===e)for(i=0;i<o.length;)s[o[i].identifier]=!0,i++;for(i=0;i<r.length;)s[r[i].identifier]&&a.push(r[i]),12&e&&delete s[r[i].identifier],i++;return a.length?[mn(o.concat(a),"identifier",!0),a]:void 0}var wn={mousedown:1,mousemove:2,mouseup:4},_n=function(t){function e(){var i,o=e.prototype;return o.evEl="mousedown",o.evWin="mousemove mouseup",(i=t.apply(this,arguments)||this).pressed=!1,i}return mo(e,t),e.prototype.handler=function(t){var e=wn[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:Ro,srcEvent:t}))},e}(hn);function xn(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var i={x:e.clientX,y:e.clientY},o=this.lastTouches;this.lastTouches.push(i);setTimeout(function(){var t=o.indexOf(i);t>-1&&o.splice(t,1)},2500)}}function En(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,xn.call(this,e)):12&t&&xn.call(this,e)}function On(t){for(var e=t.srcEvent.clientX,i=t.srcEvent.clientY,o=0;o<this.lastTouches.length;o++){var n=this.lastTouches[o],s=Math.abs(e-n.x),r=Math.abs(i-n.y);if(s<=25&&r<=25)return!0}return!1}var Cn=function(){return function(t){function e(e,i){var o;return(o=t.call(this,e,i)||this).handler=function(t,e,i){var n=i.pointerType===jo,s=i.pointerType===Ro;if(!(s&&i.sourceCapabilities&&i.sourceCapabilities.firesTouchEvents)){if(n)En.call(vo(vo(o)),e,i);else if(s&&On.call(vo(vo(o)),i))return;o.callback(t,e,i)}},o.touch=new yn(o.manager,o.handler),o.mouse=new _n(o.manager,o.handler),o.primaryTouch=null,o.lastTouches=[],o}return mo(e,t),e.prototype.destroy=function(){this.touch.destroy(),this.mouse.destroy()},e}(hn)}();function kn(t,e,i){return!!Array.isArray(t)&&(Vo(t,i[e],i),!0)}var Sn=32,Tn=1;function Dn(t,e){var i=e.manager;return i?i.get(t):t}function Mn(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}var In=function(){function t(t){void 0===t&&(t={}),this.options=go({enable:!0},t),this.id=Tn++,this.manager=null,this.state=1,this.simultaneous={},this.requireFail=[]}var e=t.prototype;return e.set=function(t){return bo(this.options,t),this.manager&&this.manager.touchAction.update(),this},e.recognizeWith=function(t){if(kn(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=Dn(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},e.dropRecognizeWith=function(t){return kn(t,"dropRecognizeWith",this)||(t=Dn(t,this),delete this.simultaneous[t.id]),this},e.requireFailure=function(t){if(kn(t,"requireFailure",this))return this;var e=this.requireFail;return-1===dn(e,t=Dn(t,this))&&(e.push(t),t.requireFailure(this)),this},e.dropRequireFailure=function(t){if(kn(t,"dropRequireFailure",this))return this;t=Dn(t,this);var e=dn(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 o(i){e.manager.emit(i,t)}i<8&&o(e.options.event+Mn(i)),o(e.options.event),t.additionalEvent&&o(t.additionalEvent),i>=8&&o(e.options.event+Mn(i))},e.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=Sn},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=bo({},t);if(!Uo(this.options.enable,[this,e]))return this.reset(),void(this.state=Sn);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}(),Pn=function(t){function e(e){var i;return void 0===e&&(e={}),(i=t.call(this,go({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}mo(e,t);var i=e.prototype;return i.getTouchAction=function(){return[Mo]},i.process=function(t){var e=this,i=this.options,o=t.pointers.length===i.pointers,n=t.distance<i.threshold,s=t.deltaTime<i.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(n&&s&&o){if(4!==t.eventType)return this.failTimeout();var r=!this.pTime||t.timeStamp-this.pTime<i.interval,a=!this.pCenter||Qo(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 Sn},i.failTimeout=function(){var t=this;return this._timer=setTimeout(function(){t.state=Sn},this.options.interval),Sn},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}(In),Nn=function(t){function e(e){return void 0===e&&(e={}),t.call(this,go({pointers:1},e))||this}mo(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,o=6&e,n=this.attrTest(t);return o&&(8&i||!n)?16|e:o||n?4&i?8|e:2&e?4|e:2:Sn},e}(In);function Bn(t){return t===Lo?"down":8===t?"up":2===t?"left":4===t?"right":""}var zn=function(t){function e(e){var i;return void 0===e&&(e={}),(i=t.call(this,go({event:"pan",threshold:10,pointers:1,direction:30},e))||this).pX=null,i.pY=null,i}mo(e,t);var i=e.prototype;return i.getTouchAction=function(){var t=this.options.direction,e=[];return 6&t&&e.push(No),t&Ho&&e.push(Po),e},i.directionTest=function(t){var e=this.options,i=!0,o=t.distance,n=t.direction,s=t.deltaX,r=t.deltaY;return n&e.direction||(6&e.direction?(n=0===s?1:s<0?2:4,i=s!==this.pX,o=Math.abs(t.deltaX)):(n=0===r?1:r<0?8:Lo,i=r!==this.pY,o=Math.abs(t.deltaY))),t.direction=n,i&&o>e.threshold&&n&e.direction},i.attrTest=function(t){return Nn.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=Bn(e.direction);i&&(e.additionalEvent=this.options.event+i),t.prototype.emit.call(this,e)},e}(Nn),Fn=function(t){function e(e){return void 0===e&&(e={}),t.call(this,go({event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},e))||this}mo(e,t);var i=e.prototype;return i.getTouchAction=function(){return zn.prototype.getTouchAction.call(this)},i.attrTest=function(e){var i,o=this.options.direction;return 30&o?i=e.overallVelocity:6&o?i=e.overallVelocityX:o&Ho&&(i=e.overallVelocityY),t.prototype.attrTest.call(this,e)&&o&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers===this.options.pointers&&Eo(i)>this.options.velocity&&4&e.eventType},i.emit=function(t){var e=Bn(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},e}(Nn),An=function(t){function e(e){return void 0===e&&(e={}),t.call(this,go({event:"pinch",threshold:0,pointers:2},e))||this}mo(e,t);var i=e.prototype;return i.getTouchAction=function(){return[Io]},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}(Nn),jn=function(t){function e(e){return void 0===e&&(e={}),t.call(this,go({event:"rotate",threshold:0,pointers:2},e))||this}mo(e,t);var i=e.prototype;return i.getTouchAction=function(){return[Io]},i.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)},e}(Nn),Rn=function(t){function e(e){var i;return void 0===e&&(e={}),(i=t.call(this,go({event:"press",pointers:1,time:251,threshold:9},e))||this)._timer=null,i._input=null,i}mo(e,t);var i=e.prototype;return i.getTouchAction=function(){return[Do]},i.process=function(t){var e=this,i=this.options,o=t.pointers.length===i.pointers,n=t.distance<i.threshold,s=t.deltaTime>i.time;if(this._input=t,!n||!o||12&t.eventType&&!s)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 Sn},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=Oo(),this.manager.emit(this.options.event,this._input)))},e}(In),Ln={domEvents:!1,touchAction:To,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Hn=[[jn,{enable:!1}],[An,{enable:!1},["rotate"]],[Fn,{direction:6}],[zn,{direction:6},["swipe"]],[Pn],[Pn,{event:"doubletap",taps:2},["tap"]],[Rn]];function Wn(t,e){var i,o=t.element;o.style&&(Vo(t.options.cssProps,function(n,s){i=Co(o.style,s),e?(t.oldCssProps[i]=o.style[i],o.style[i]=n):o.style[i]=t.oldCssProps[i]||""}),e||(t.oldCssProps={}))}var qn=function(){function t(t,e){var i,o=this;this.options=bo({},Ln,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||(Fo?fn:Ao?yn:zo?Cn:_n))(i,on),this.touchAction=new Xo(this,this.options.touchAction),Wn(this,!0),Vo(this.options.recognizers,function(t){var e=o.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 bo(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 o=this.recognizers,n=e.curRecognizer;(!n||n&&8&n.state)&&(e.curRecognizer=null,n=null);for(var s=0;s<o.length;)i=o[s],2===e.stopped||n&&i!==n&&!i.canRecognizeWith(n)?i.reset():i.recognize(t),!n&&14&i.state&&(e.curRecognizer=i,n=i),s++}},e.get=function(t){if(t instanceof In)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(kn(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(kn(t,"remove",this))return this;var e=this.get(t);if(t){var i=this.recognizers,o=dn(i,e);-1!==o&&(i.splice(o,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 Vo(nn(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 Vo(nn(t),function(t){e?i[t]&&i[t].splice(dn(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 o=0;o<i.length;)i[o](e),o++}},e.destroy=function(){this.element&&Wn(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},t}(),Vn={touchstart:1,touchmove:2,touchend:4,touchcancel:8},Un=function(t){function e(){var i,o=e.prototype;return o.evTarget="touchstart",o.evWin="touchstart touchmove touchend touchcancel",(i=t.apply(this,arguments)||this).started=!1,i}return mo(e,t),e.prototype.handler=function(t){var e=Vn[t.type];if(1===e&&(this.started=!0),this.started){var i=Yn.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:jo,srcEvent:t})}},e}(hn);function Yn(t,e){var i=gn(t.touches),o=gn(t.changedTouches);return 12&e&&(i=mn(i.concat(o),"identifier",!0)),[i,o]}function Xn(t,e,i){var o="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",n=window.console&&(window.console.warn||window.console.log);return n&&n.call(window.console,o,i),t.apply(this,arguments)}}var Gn=Xn(function(t,e,i){for(var o=Object.keys(e),n=0;n<o.length;)(!i||i&&void 0===t[o[n]])&&(t[o[n]]=e[o[n]]),n++;return t},"extend","Use `assign`."),Kn=Xn(function(t,e){return Gn(t,e,!0)},"merge","Use `assign`.");function Zn(t,e,i){var o,n=e.prototype;(o=t.prototype=Object.create(n)).constructor=t,o._super=n,i&&bo(o,i)}function Qn(t,e){return function(){return t.apply(e,arguments)}}var $n=function(){var t=function(t,e){return void 0===e&&(e={}),new qn(t,go({recognizers:Hn.concat()},e))};return t.VERSION="2.0.17-rc",t.DIRECTION_ALL=30,t.DIRECTION_DOWN=Lo,t.DIRECTION_LEFT=2,t.DIRECTION_RIGHT=4,t.DIRECTION_UP=8,t.DIRECTION_HORIZONTAL=6,t.DIRECTION_VERTICAL=Ho,t.DIRECTION_NONE=1,t.DIRECTION_DOWN=Lo,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=Sn,t.Manager=qn,t.Input=hn,t.TouchAction=Xo,t.TouchInput=yn,t.MouseInput=_n,t.PointerEventInput=fn,t.TouchMouseInput=Cn,t.SingleTouchInput=Un,t.Recognizer=In,t.AttrRecognizer=Nn,t.Tap=Pn,t.Pan=zn,t.Swipe=Fn,t.Pinch=An,t.Rotate=jn,t.Press=Rn,t.on=sn,t.off=rn,t.each=Vo,t.merge=Kn,t.extend=Gn,t.bindFn=Qn,t.assign=bo,t.inherit=Zn,t.bindFn=Qn,t.prefixed=Co,t.toArray=gn,t.inArray=dn,t.uniqueArray=mn,t.splitStr=nn,t.boolOrFn=Uo,t.hasParent=Go,t.addEventListeners=sn,t.removeEventListeners=rn,t.defaults=bo({},Ln,{preset:Hn}),t}();$n.defaults; /** * vis-util * https://github.com/visjs/vis-util * * utilitie collection for visjs * * @version 6.0.0 * @date 2025-07-12T18:02:43.836Z * * @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. */ const Jn=Symbol("DELETE");function ts(t,...e){return es({},t,...e)}function es(...t){const e=is(...t);return ns(e),e}function is(...t){if(t.length<2)return t[0];if(t.length>2)return is(es(t[0],t[1]),...t.slice(2));const e=t[0],i=t[1];if(e instanceof Date&&i instanceof Date)return e.setTime(i.getTime()),e;for(const t of Reflect.ownKeys(i))Object.prototype.propertyIsEnumerable.call(i,t)&&(i[t]===Jn?delete e[t]:null===e[t]||null===i[t]||"object"!=typeof e[t]||"object"!=typeof i[t]||Array.isArray(e[t])||Array.isArray(i[t])?e[t]=os(i[t]):e[t]=is(e[t],i[t]));return e}function os(t){return Array.isArray(t)?t.map(t=>os(t)):"object"==typeof t&&null!==t?t instanceof Date?new Date(t.getTime()):is({},t):t}function ns(t){for(const e of Object.keys(t))t[e]===Jn?delete t[e]:"object"==typeof t[e]&&null!==t[e]&&ns(t[e])}function ss(...t){return function(t){let[e,i,o]=function(...t){const e=function(){let t=4022871197;return function(e){const i=e.toString();for(let e=0;e<i.length;e++){t+=i.charCodeAt(e);let o=.02519603282416938*t;t=o>>>0,o-=t,o*=t,t=o>>>0,o-=t,t+=4294967296*o}return 2.3283064365386963e-10*(t>>>0)}}();let i=e(" "),o=e(" "),n=e(" ");for(let s=0;s<t.length;s++)i-=e(t[s]),i<0&&(i+=1),o-=e(t[s]),o<0&&(o+=1),n-=e(t[s]),n<0&&(n+=1);return[i,o,n]}(t),n=1;const s=()=>{const t=2091639*e+2.3283064365386963e-10*n;return e=i,i=o,o=t-(n=0|t)};return s.uint32=()=>4294967296*s(),s.fract53=()=>s()+11102230246251565e-32*(2097152*s()|0),s.algorithm="Alea",s.seed=t,s.version="0.9",s}(t.length?t:[Date.now()])}const rs="undefined"!=typeof window?window.Hammer||$n:function(){return function(){const t=()=>{};return{on:t,off:t,destroy:t,emit:t,get:()=>({set:t})}}()};function as(t){this._cleanupQueue=[],this.active=!1,this._dom={container:t,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push(()=>{this._dom.overlay.parentNode.removeChild(this._dom.overlay)});const e=rs(this._dom.overlay);e.on("tap",this._onTapOverlay.bind(this)),this._cleanupQueue.push(()=>{e.destroy()});["tap","doubletap","press","pinch","pan","panstart","panmove","panend"].forEach(t=>{e.on(t,t=>{t.srcEvent.stopPropagation()})}),document&&document.body&&(this._onClick=e=>{(function(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1})(e.target,t)||this.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push(()=>{document.body.removeEventListener("click",this._onClick)})),this._escListener=t=>{("key"in t?"Escape"===t.key:27===t.keyCode)&&this.deactivate()}}fo(as.prototype),as.current=null,as.prototype.destroy=function(){this.deactivate();for(const t of this._cleanupQueue.splice(0).reverse())t()},as.prototype.activate=function(){as.current&&as.current.deactivate(),as.current=this,this.active=!0,this._dom.overlay.style.display="none",this._dom.container.classList.add("vis-active"),this.emit("change"),this.emit("activate"),document.body.addEventListener("keydown",this._escListener)},as.prototype.deactivate=function(){this.active=!1,this._dom.overlay.style.display="block",this._dom.container.classList.remove("vis-active"),document.body.removeEventListener("keydown",this._escListener),this.emit("change"),this.emit("deactivate")},as.prototype._onTapOverlay=function(t){this.activate(),t.srcEvent.stopPropagation()};const hs=/^\/?Date\((-?\d+)/i,ds=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,ls=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,cs=/^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,us=/^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 ps(t){return t instanceof Number||"number"==typeof t}function fs(t){if(t)for(;!0===t.hasChildNodes();){const e=t.firstChild;e&&(fs(e),t.removeChild(e))}}function gs(t){return t instanceof String||"string"==typeof t}function ms(t){return"object"==typeof t&&null!==t}function vs(t,e,i,o){let n=!1;!0===o&&(n=null===e[i]&&void 0!==t[i]),n?delete t[i]:t[i]=e[i]}function ys(t,e,i=!1){for(const o in t)if(void 0!==e[o])if(null===e[o]||"object"!=typeof e[o])vs(t,e,o,i);else{const n=t[o],s=e[o];ms(n)&&ms(s)&&ys(n,s,i)}}const bs=Object.assign;function ws(t,e,i,o=!1){if(Array.isArray(i))throw new TypeError("Arrays are not supported by deepExtend");for(let n=0;n<t.length;n++){const s=t[n];if(Object.prototype.hasOwnProperty.call(i,s))if(i[s]&&i[s].constructor===Object)void 0===e[s]&&(e[s]={}),e[s].constructor===Object?xs(e[s],i[s],!1,o):vs(e,i,s,o);else{if(Array.isArray(i[s]))throw new TypeError("Arrays are not supported by deepExtend");vs(e,i,s,o)}}return e}function _s(t,e,i,o=!1){if(Array.isArray(i))throw new TypeError("Arrays are not supported by deepExtend");for(const n in i)if(Object.prototype.hasOwnProperty.call(i,n)&&!t.includes(n))if(i[n]&&i[n].constructor===Object)void 0===e[n]&&(e[n]={}),e[n].constructor===Object?xs(e[n],i[n]):vs(e,i,n,o);else if(Array.isArray(i[n])){e[n]=[];for(let t=0;t<i[n].length;t++)e[n].push(i[n][t])}else vs(e,i,n,o);return e}function xs(t,e,i=!1,o=!1){for(const n in e)(Object.prototype.hasOwnProperty.call(e,n)||!0===i)&&("object"==typeof e[n]&&null!==e[n]&&Object.getPrototypeOf(e[n])===Object.prototype?void 0===t[n]?t[n]=xs({},e[n],i):"object"==typeof t[n]&&null!==t[n]&&Object.getPrototypeOf(t[n])===Object.prototype?xs(t[n],e[n],i):vs(t,e,n,o):Array.isArray(e[n])?t[n]=e[n].slice():vs(t,e,n,o));return t}function Es(t,e){return[...t,e]}function Os(t){return t.slice()}function Cs(t){return t.getBoundingClientRect().left}function ks(t){return t.getBoundingClientRect().top}function Ss(t,e){if(Array.isArray(t)){const i=t.length;for(let o=0;o<i;o++)e(t[o],o,t)}else for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&e(t[i],i,t)}const Ts=Object.values;const Ds={asBoolean:(t,e)=>("function"==typeof t&&(t=t()),null!=t?0!=t:e||null),asNumber:(t,e)=>("function"==typeof t&&(t=t()),null!=t?Number(t)||e||null:e||null),asString:(t,e)=>("function"==typeof t&&(t=t()),null!=t?String(t):e||null),asSize:(t,e)=>("function"==typeof t&&(t=t()),gs(t)?t:ps(t)?t+"px":e||null),asElement:(t,e)=>("function"==typeof t&&(t=t()),t||e||null)};function Ms(t){let e;switch(t.length){case 3:case 4:return e=ls.exec(t),e?{r:parseInt(e[1]+e[1],16),g:parseInt(e[2]+e[2],16),b:parseInt(e[3]+e[3],16)}:null;case 6:case 7:return e=ds.exec(t),e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null;default:return null}}function Is(t,e){if(t.includes("rgba"))return t;if(t.includes("rgb")){const i=t.substr(t.indexOf("(")+1).replace(")","").split(",");return"rgba("+i[0]+","+i[1]+","+i[2]+","+e+")"}{const i=Ms(t);return null==i?t:"rgba("+i.r+","+i.g+","+i.b+","+e+")"}}function Ps(t,e,i){return"#"+((1<<24)+(t<<16)+(e<<8)+i).toString(16).slice(1)}function Ns(t,e){if(gs(t)){let e=t;if(Ls(e)){const t=e.substr(4).substr(0,e.length-5).split(",").map(function(t){return parseInt(t)});e=Ps(t[0],t[1],t[2])}if(!0===Rs(e)){const t=js(e),i={h:t.h,s:.8*t.s,v:Math.min(1,1.02*t.v)},o={h:t.h,s:Math.min(1,1.25*t.s),v:.8*t.v},n=As(o.h,o.s,o.v),s=As(i.h,i.s,i.v);return{background:e,border:n,highlight:{background:s,border:n},hover:{background:s,border:n}}}return{background:e,border:e,highlight:{background:e,border:e},hover:{background:e,border:e}}}if(e){return{background:t.background||e.background,border:t.border||e.border,highlight:gs(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:gs(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}}}return{background:t.background||void 0,border:t.border||void 0,highlight:gs(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:gs(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 Bs(t,e,i){t/=255,e/=255,i/=255;const o=Math.min(t,Math.min(e,i)),n=Math.max(t,Math.max(e,i));if(o===n)return{h:0,s:0,v:o};return{h:60*((t===o?3:i===o?1:5)-(t===o?e-i:i===o?t-e:i-t)/(n-o))/360,s:(n-o)/n,v:n}}function zs(t){const e=document.createElement("div"),i={};e.style.cssText=t;for(let t=0;t<e.style.length;++t)i[e.style[t]]=e.style.getPropertyValue(e.style[t]);return i}function Fs(t,e,i){let o,n,s;const r=Math.floor(6*t),a=6*t-r,h=i*(1-e),d=i*(1-a*e),l=i*(1-(1-a)*e);switch(r%6){case 0:o=i,n=l,s=h;break;case 1:o=d,n=i,s=h;break;case 2:o=h,n=i,s=l;break;case 3:o=h,n=d,s=i;break;case 4:o=l,n=h,s=i;break;case 5:o=i,n=h,s=d}return{r:Math.floor(255*o),g:Math.floor(255*n),b:Math.floor(255*s)}}function As(t,e,i){const o=Fs(t,e,i);return Ps(o.r,o.g,o.b)}function js(t){const e=Ms(t);if(!e)throw new TypeError(`'${t}' is not a valid color.`);return Bs(e.r,e.g,e.b)}function Rs(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)}function Ls(t){return cs.test(t)}function Hs(t){return us.test(t)}function Ws(t){if(null===t||"object"!=typeof t)return null;if(t instanceof Element)return t;const e=Object.create(t);for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&"object"==typeof t[i]&&(e[i]=Ws(t[i]));return e}function qs(t,e,i,o={}){const n=function(t){return null!=t},s=function(t){return null!==t&&"object"==typeof t};if(!s(t))throw new Error("Parameter mergeTarget must be an object");if(!s(e))throw new Error("Parameter options must be an object");if(!n(i))throw new Error("Parameter option must have a value");if(!s(o))throw new Error("Parameter globalOptions must be an object");const r=e[i],a=s(o)&&!function(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}(o)?o[i]:void 0,h=a?a.enabled:void 0;if(void 0===r)return;if("boolean"==typeof r)return s(t[i])||(t[i]={}),void(t[i].enabled=r);if(null===r&&!s(t[i])){if(!n(a))return;t[i]=Object.create(a)}if(!s(r))return;let d=!0;void 0!==r.enabled?d=r.enabled:void 0!==h&&(d=a.enabled),function(t,e,i){s(t[i])||(t[i]={});const o=e[i],n=t[i];for(const t in o)Object.prototype.hasOwnProperty.call(o,t)&&(n[t]=o[t])}(t,e,i