vis-util 6.0.1 → 6.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/declarations/shared/index.d.ts +2 -1
- package/declarations/shared/index.d.ts.map +1 -1
- package/esnext/esm/vis-util.js +2 -2
- package/esnext/esm/vis-util.js.map +1 -1
- package/esnext/esm/vis-util.min.js +2 -2
- package/esnext/esm/vis-util.min.js.map +1 -1
- package/esnext/esm/vis-util.min.mjs +2 -2
- package/esnext/esm/vis-util.min.mjs.map +1 -1
- package/esnext/esm/vis-util.mjs +2 -2
- package/esnext/esm/vis-util.mjs.map +1 -1
- package/esnext/umd/vis-util.cjs +2 -2
- package/esnext/umd/vis-util.cjs.map +1 -1
- package/esnext/umd/vis-util.js +2 -2
- package/esnext/umd/vis-util.js.map +1 -1
- package/esnext/umd/vis-util.min.cjs +2 -2
- package/esnext/umd/vis-util.min.cjs.map +1 -1
- package/esnext/umd/vis-util.min.js +2 -2
- package/esnext/umd/vis-util.min.js.map +1 -1
- package/package.json +11 -10
- package/peer/esm/vis-util.js +233 -60
- package/peer/esm/vis-util.js.map +1 -1
- package/peer/esm/vis-util.min.js +4 -4
- package/peer/esm/vis-util.min.js.map +1 -1
- package/peer/esm/vis-util.min.mjs +4 -4
- package/peer/esm/vis-util.min.mjs.map +1 -1
- package/peer/esm/vis-util.mjs +233 -60
- package/peer/esm/vis-util.mjs.map +1 -1
- package/peer/umd/vis-util.cjs +233 -60
- package/peer/umd/vis-util.cjs.map +1 -1
- package/peer/umd/vis-util.js +233 -60
- package/peer/umd/vis-util.js.map +1 -1
- package/peer/umd/vis-util.min.cjs +4 -4
- package/peer/umd/vis-util.min.cjs.map +1 -1
- package/peer/umd/vis-util.min.js +4 -4
- package/peer/umd/vis-util.min.js.map +1 -1
- package/standalone/esm/vis-util.js +233 -60
- package/standalone/esm/vis-util.js.map +1 -1
- package/standalone/esm/vis-util.min.js +4 -4
- package/standalone/esm/vis-util.min.js.map +1 -1
- package/standalone/esm/vis-util.min.mjs +4 -4
- package/standalone/esm/vis-util.min.mjs.map +1 -1
- package/standalone/esm/vis-util.mjs +233 -60
- package/standalone/esm/vis-util.mjs.map +1 -1
- package/standalone/umd/vis-util.cjs +233 -60
- package/standalone/umd/vis-util.cjs.map +1 -1
- package/standalone/umd/vis-util.js +233 -60
- package/standalone/umd/vis-util.js.map +1 -1
- package/standalone/umd/vis-util.min.cjs +4 -4
- package/standalone/umd/vis-util.min.cjs.map +1 -1
- package/standalone/umd/vis-util.min.js +4 -4
- package/standalone/umd/vis-util.min.js.map +1 -1
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
*
|
|
5
5
|
* utilitie collection for visjs
|
|
6
6
|
*
|
|
7
|
-
* @version 6.0.
|
|
8
|
-
* @date 2026-
|
|
7
|
+
* @version 6.0.3
|
|
8
|
+
* @date 2026-10-25T07:23:27.729Z
|
|
9
9
|
*
|
|
10
10
|
* @copyright (c) 2011-2017 Almende B.V, http://almende.com
|
|
11
11
|
* @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
*
|
|
24
24
|
* vis.js may be distributed under either license.
|
|
25
25
|
*/
|
|
26
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).vis=t.vis||{})}(this,function(t){var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var r,i,o,a,s,u,c,l,f,h,p,d,v,g,m,y,b={};function w(){if(i)return r;i=1;var t=function(t){return t&&t.Math===Math&&t};return r=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof e&&e)||t("object"==typeof r&&r)||function(){return this}()||Function("return this")()}function C(){return a?o:(a=1,o=function(t){try{return!!t()}catch(t){return!0}})}function E(){return u?s:(u=1,s=!C()(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))}function k(){if(l)return c;l=1;var t=E(),e=Function.prototype,n=e.apply,r=e.call;return c="object"==typeof Reflect&&Reflect.apply||(t?r.bind(n):function(){return r.apply(n,arguments)}),c}function O(){if(h)return f;h=1;var t=E(),e=Function.prototype,n=e.call,r=t&&e.bind.bind(n,n);return f=t?r:function(t){return function(){return n.apply(t,arguments)}},f}function T(){if(d)return p;d=1;var t=O(),e=t({}.toString),n=t("".slice);return p=function(t){return n(e(t),8,-1)}}function F(){if(g)return v;g=1;var t=T(),e=O();return v=function(n){if("Function"===t(n))return e(n)}}function S(){if(y)return m;y=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 _,A,D,P,x={};function j(){return A?_:(A=1,_=!C()(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))}function R(){if(P)return D;P=1;var t=E(),e=Function.prototype.call;return D=t?e.bind(e):function(){return e.apply(e,arguments)},D}var N,I,B,M,L,z,H,W,U,V,q,Y,X,G,J,Q,$,K,Z,tt,et,nt,rt,it,ot,at,st,ut,ct,lt,ft,ht,pt,dt,vt,gt,mt,yt={};function bt(){if(N)return yt;N=1;var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,n=e&&!t.call({1:2},1);return yt.f=n?function(t){var n=e(this,t);return!!n&&n.enumerable}:t,yt}function wt(){return B?I:(B=1,I=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}})}function Ct(){if(L)return M;L=1;var t=O(),e=C(),n=T(),r=Object,i=t("".split);return M=e(function(){return!r("z").propertyIsEnumerable(0)})?function(t){return"String"===n(t)?i(t,""):r(t)}:r}function Et(){return H?z:(H=1,z=function(t){return null==t})}function kt(){if(U)return W;U=1;var t=Et(),e=TypeError;return W=function(n){if(t(n))throw new e("Can't call method on "+n);return n}}function Ot(){if(q)return V;q=1;var t=Ct(),e=kt();return V=function(n){return t(e(n))}}function Tt(){if(X)return Y;X=1;var t=S();return Y=function(e){return"object"==typeof e?null!==e:t(e)}}function Ft(){return J?G:(J=1,G={})}function St(){if($)return Q;$=1;var t=Ft(),e=w(),n=S(),r=function(t){return n(t)?t:void 0};return Q=function(n,i){return arguments.length<2?r(t[n])||r(e[n]):t[n]&&t[n][i]||e[n]&&e[n][i]},Q}function _t(){return Z?K:(Z=1,K=O()({}.isPrototypeOf))}function At(){if(et)return tt;et=1;var t=w().navigator,e=t&&t.userAgent;return tt=e?String(e):""}function Dt(){if(rt)return nt;rt=1;var t,e,n=w(),r=At(),i=n.process,o=n.Deno,a=i&&i.versions||o&&o.version,s=a&&a.v8;return s&&(e=(t=s.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!e&&r&&(!(t=r.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=r.match(/Chrome\/(\d+)/))&&(e=+t[1]),nt=e}function Pt(){if(ot)return it;ot=1;var t=Dt(),e=C(),n=w().String;return it=!!Object.getOwnPropertySymbols&&!e(function(){var e=Symbol("symbol detection");return!n(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t&&t<41}),it}function xt(){return st?at:(st=1,at=Pt()&&!Symbol.sham&&"symbol"==typeof Symbol.iterator)}function jt(){if(ct)return ut;ct=1;var t=St(),e=S(),n=_t(),r=Object;return ut=xt()?function(t){return"symbol"==typeof t}:function(i){var o=t("Symbol");return e(o)&&n(o.prototype,r(i))}}function Rt(){if(ft)return lt;ft=1;var t=String;return lt=function(e){try{return t(e)}catch(t){return"Object"}}}function Nt(){if(pt)return ht;pt=1;var t=S(),e=Rt(),n=TypeError;return ht=function(r){if(t(r))return r;throw new n(e(r)+" is not a function")}}function It(){if(vt)return dt;vt=1;var t=Nt(),e=Et();return dt=function(n,r){var i=n[r];return e(i)?void 0:t(i)}}function Bt(){if(mt)return gt;mt=1;var t=R(),e=S(),n=Tt(),r=TypeError;return gt=function(i,o){var a,s;if("string"===o&&e(a=i.toString)&&!n(s=t(a,i)))return s;if(e(a=i.valueOf)&&!n(s=t(a,i)))return s;if("string"!==o&&e(a=i.toString)&&!n(s=t(a,i)))return s;throw new r("Can't convert object to primitive value")}}var Mt,Lt,zt,Ht,Wt,Ut,Vt,qt,Yt,Xt,Gt,Jt,Qt,$t,Kt,Zt,te,ee,ne,re,ie,oe,ae,se,ue,ce,le,fe,he={exports:{}};function pe(){return Lt?Mt:(Lt=1,Mt=!0)}function de(){if(Ht)return zt;Ht=1;var t=w(),e=Object.defineProperty;return zt=function(n,r){try{e(t,n,{value:r,configurable:!0,writable:!0})}catch(e){t[n]=r}return r}}function ve(){if(Wt)return he.exports;Wt=1;var t=pe(),e=w(),n=de(),r="__core-js_shared__",i=he.exports=e[r]||n(r,{});return(i.versions||(i.versions=[])).push({version:"3.49.0",mode:t?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"}),he.exports}function ge(){if(Vt)return Ut;Vt=1;var t=ve();return Ut=function(e,n){return t[e]||(t[e]=n||{})}}function me(){if(Yt)return qt;Yt=1;var t=kt(),e=Object;return qt=function(n){return e(t(n))}}function ye(){if(Gt)return Xt;Gt=1;var t=O(),e=me(),n=t({}.hasOwnProperty);return Xt=Object.hasOwn||function(t,r){return n(e(t),r)}}function be(){if(Qt)return Jt;Qt=1;var t=O(),e=0,n=Math.random(),r=t(1.1.toString);return Jt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+r(++e+n,36)}}function we(){if(Kt)return $t;Kt=1;var t=w(),e=ge(),n=ye(),r=be(),i=Pt(),o=xt(),a=t.Symbol,s=e("wks"),u=o?a.for||a:a&&a.withoutSetter||r;return $t=function(t){return n(s,t)||(s[t]=i&&n(a,t)?a[t]:u("Symbol."+t)),s[t]}}function Ce(){if(te)return Zt;te=1;var t=R(),e=Tt(),n=jt(),r=It(),i=Bt(),o=TypeError,a=we()("toPrimitive");return Zt=function(s,u){if(!e(s)||n(s))return s;var c,l=r(s,a);if(l){if(void 0===u&&(u="default"),c=t(l,s,u),!e(c)||n(c))return c;throw new o("Can't convert object to primitive value")}return void 0===u&&(u="number"),i(s,u)}}function Ee(){if(ne)return ee;ne=1;var t=Ce(),e=jt();return ee=function(n){var r=t(n,"string");return e(r)?r:r+""}}function ke(){if(ie)return re;ie=1;var t=w(),e=Tt(),n=t.document,r=e(n)&&e(n.createElement);return re=function(t){return r?n.createElement(t):{}}}function Oe(){if(ae)return oe;ae=1;var t=j(),e=C(),n=ke();return oe=!t&&!e(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function Te(){if(se)return x;se=1;var t=j(),e=R(),n=bt(),r=wt(),i=Ot(),o=Ee(),a=ye(),s=Oe(),u=Object.getOwnPropertyDescriptor;return x.f=t?u:function(t,c){if(t=i(t),c=o(c),s)try{return u(t,c)}catch(t){}if(a(t,c))return r(!e(n.f,t,c),t[c])},x}function Fe(){if(ce)return ue;ce=1;var t=C(),e=S(),n=/#|\.prototype\./,r=function(n,r){var u=o[i(n)];return u===s||u!==a&&(e(r)?t(r):!!r)},i=r.normalize=function(t){return String(t).replace(n,".").toLowerCase()},o=r.data={},a=r.NATIVE="N",s=r.POLYFILL="P";return ue=r}function Se(){if(fe)return le;fe=1;var t=F(),e=Nt(),n=E(),r=t(t.bind);return le=function(t,i){return e(t),void 0===i?t:n?r(t,i):function(){return t.apply(i,arguments)}},le}var _e,Ae,De,Pe,xe,je,Re,Ne,Ie,Be,Me,Le,ze,He,We,Ue,Ve,qe,Ye,Xe,Ge,Je,Qe,$e,Ke,Ze,tn,en,nn,rn,on,an,sn,un,cn,ln,fn,hn,pn,dn,vn={};function gn(){return Ae?_e:(Ae=1,_e=j()&&C()(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}))}function mn(){if(Pe)return De;Pe=1;var t=Tt(),e=String,n=TypeError;return De=function(r){if(t(r))return r;throw new n(e(r)+" is not an object")}}function yn(){if(xe)return vn;xe=1;var t=j(),e=Oe(),n=gn(),r=mn(),i=Ee(),o=TypeError,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u="enumerable",c="configurable",l="writable";return vn.f=t?n?function(t,e,n){if(r(t),e=i(e),r(n),"function"==typeof t&&"prototype"===e&&"value"in n&&l in n&&!n[l]){var o=s(t,e);o&&o[l]&&(t[e]=n.value,n={configurable:c in n?n[c]:o[c],enumerable:u in n?n[u]:o[u],writable:!1})}return a(t,e,n)}:a:function(t,n,s){if(r(t),n=i(n),r(s),e)try{return a(t,n,s)}catch(t){}if("get"in s||"set"in s)throw new o("Accessors not supported");return"value"in s&&(t[n]=s.value),t},vn}function bn(){if(Re)return je;Re=1;var t=j(),e=yn(),n=wt();return je=t?function(t,r,i){return e.f(t,r,n(1,i))}:function(t,e,n){return t[e]=n,t}}function wn(){if(Ie)return Ne;Ie=1;var t=w(),e=k(),n=F(),r=S(),i=Te().f,o=Fe(),a=Ft(),s=Se(),u=bn(),c=ye(),l=function(t){var n=function(r,i,o){if(this instanceof n){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,i)}return new t(r,i,o)}return e(t,this,arguments)};return n.prototype=t.prototype,n};return Ne=function(e,f){var h,p,d,v,g,m,y,b,w,C=e.target,E=e.global,k=e.stat,O=e.proto,T=E?t:k?t[C]:t[C]&&t[C].prototype,F=E?a:a[C]||u(a,C,{})[C],S=F.prototype;for(v in f)p=!(h=o(E?v:C+(k?".":"#")+v,e.forced))&&T&&c(T,v),m=F[v],p&&(y=e.dontCallGetSet?(w=i(T,v))&&w.value:T[v]),g=p&&y?y:f[v],(h||O||typeof m!=typeof g)&&(b=e.bind&&p?s(g,t):e.wrap&&p?l(g):O&&r(g)?n(g):g,(e.sham||g&&g.sham||m&&m.sham)&&u(b,"sham",!0),u(F,v,b),O&&(c(a,d=C+"Prototype")||u(a,d,{}),u(a[d],v,g),e.real&&S&&(h||!S[v])&&u(S,v,g)))}}function Cn(){if(Me)return Be;Me=1;var t=T();return Be=Array.isArray||function(e){return"Array"===t(e)}}function En(){if(ze)return Le;ze=1;var t=Math.ceil,e=Math.floor;return Le=Math.trunc||function(n){var r=+n;return(r>0?e:t)(r)}}function kn(){if(We)return He;We=1;var t=En();return He=function(e){var n=+e;return n!=n||0===n?0:t(n)}}function On(){if(Ve)return Ue;Ve=1;var t=kn(),e=Math.min;return Ue=function(n){var r=t(n);return r>0?e(r,9007199254740991):0}}function Tn(){if(Ye)return qe;Ye=1;var t=On();return qe=function(e){return t(e.length)}}function Fn(){if(Ge)return Xe;Ge=1;var t=TypeError;return Xe=function(e){if(e>9007199254740991)throw new t("Maximum allowed index exceeded");return e}}function Sn(){if(Qe)return Je;Qe=1;var t=j(),e=yn(),n=wt();return Je=function(r,i,o){t?e.f(r,i,n(0,o)):r[i]=o}}function _n(){if(Ke)return $e;Ke=1;var t=j(),e=Cn(),n=TypeError,r=Object.getOwnPropertyDescriptor,i=t&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();return $e=i?function(t,i){if(e(t)&&!r(t,"length").writable)throw new n("Cannot set read only .length");return t.length=i}:function(t,e){return t.length=e}}function An(){if(tn)return Ze;tn=1;var t={};return t[we()("toStringTag")]="z",Ze="[object z]"===String(t)}function Dn(){if(nn)return en;nn=1;var t=An(),e=S(),n=T(),r=we()("toStringTag"),i=Object,o="Arguments"===n(function(){return arguments}());return en=t?n:function(t){var a,s,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(s=function(t,e){try{return t[e]}catch(t){}}(a=i(t),r))?s:o?n(a):"Object"===(u=n(a))&&e(a.callee)?"Arguments":u}}function Pn(){if(on)return rn;on=1;var t=O(),e=S(),n=ve(),r=t(Function.toString);return e(n.inspectSource)||(n.inspectSource=function(t){return r(t)}),rn=n.inspectSource}function xn(){if(sn)return an;sn=1;var t=O(),e=C(),n=S(),r=Dn(),i=St(),o=Pn(),a=function(){},s=i("Reflect","construct"),u=/^\s*(?:class|function)\b/,c=t(u.exec),l=!u.test(a),f=function(t){if(!n(t))return!1;try{return s(a,[],t),!0}catch(t){return!1}},h=function(t){if(!n(t))return!1;switch(r(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return l||!!c(u,o(t))}catch(t){return!0}};return h.sham=!0,an=!s||e(function(){var t;return f(f.call)||!f(Object)||!f(function(){t=!0})||t})?h:f}function jn(){if(cn)return un;cn=1;var t=Cn(),e=xn(),n=Tt(),r=we()("species"),i=Array;return un=function(o){var a;return t(o)&&(a=o.constructor,(e(a)&&(a===i||t(a.prototype))||n(a)&&null===(a=a[r]))&&(a=void 0)),void 0===a?i:a}}function Rn(){if(fn)return ln;fn=1;var t=jn();return ln=function(e,n){return new(t(e))(0===n?0:n)}}function Nn(){if(pn)return hn;pn=1;var t=C(),e=we(),n=Dt(),r=e("species");return hn=function(e){return n>=51||!t(function(){var t=[];return(t.constructor={})[r]=function(){return{foo:1}},1!==t[e](Boolean).foo})}}function In(){if(dn)return b;dn=1;var t=wn(),e=C(),n=Cn(),r=Tt(),i=me(),o=Tn(),a=Fn(),s=Sn(),u=_n(),c=Rn(),l=Nn(),f=we(),h=Dt(),p=f("isConcatSpreadable"),d=h>=51||!e(function(){var t=[];return t[p]=!1,t.concat()[0]!==t}),v=function(t){if(!r(t))return!1;var e=t[p];return void 0!==e?!!e:n(t)};return t({target:"Array",proto:!0,arity:1,forced:!d||!l("concat")},{concat:function(t){var e,n,r,l,f,h=i(this),p=c(h,0),d=0;for(e=-1,r=arguments.length;e<r;e++)if(v(f=-1===e?h:arguments[e]))for(l=o(f),a(d+l),n=0;n<l;n++,d++)n in f&&s(p,d,f[n]);else a(d+1),s(p,d++,f);return u(p,d),p}}),b}var Bn,Mn,Ln={},zn={};function Hn(){if(Mn)return Bn;Mn=1;var t=Dn(),e=String;return Bn=function(n){if("Symbol"===t(n))throw new TypeError("Cannot convert a Symbol value to a string");return e(n)}}var Wn,Un,Vn,qn,Yn,Xn,Gn,Jn,Qn,$n,Kn,Zn,tr,er,nr,rr,ir,or,ar,sr={};function ur(){if(Un)return Wn;Un=1;var t=kn(),e=Math.max,n=Math.min;return Wn=function(r,i){var o=t(r);return o<0?e(o+i,0):n(o,i)}}function cr(){if(qn)return Vn;qn=1;var t=Ot(),e=ur(),n=Tn(),r=function(r){return function(i,o,a){var s=t(i),u=n(s);if(0===u)return!r&&-1;var c,l=e(a,u);if(r&&o!=o){for(;u>l;)if((c=s[l++])!=c)return!0}else for(;u>l;l++)if((r||l in s)&&s[l]===o)return r||l||0;return!r&&-1}};return Vn={includes:r(!0),indexOf:r(!1)}}function lr(){return Xn?Yn:(Xn=1,Yn={})}function fr(){if(Jn)return Gn;Jn=1;var t=O(),e=ye(),n=Ot(),r=cr().indexOf,i=lr(),o=t([].push);return Gn=function(t,a){var s,u=n(t),c=0,l=[];for(s in u)!e(i,s)&&e(u,s)&&o(l,s);for(;a.length>c;)e(u,s=a[c++])&&(~r(l,s)||o(l,s));return l}}function hr(){return $n?Qn:($n=1,Qn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function pr(){if(Zn)return Kn;Zn=1;var t=fr(),e=hr();return Kn=Object.keys||function(n){return t(n,e)}}function dr(){if(tr)return sr;tr=1;var t=j(),e=gn(),n=yn(),r=mn(),i=Ot(),o=pr();return sr.f=t&&!e?Object.defineProperties:function(t,e){r(t);for(var a,s=i(e),u=o(e),c=u.length,l=0;c>l;)n.f(t,a=u[l++],s[a]);return t},sr}function vr(){return nr?er:(nr=1,er=St()("document","documentElement"))}function gr(){if(ir)return rr;ir=1;var t=ge(),e=be(),n=t("keys");return rr=function(t){return n[t]||(n[t]=e(t))}}function mr(){if(ar)return or;ar=1;var t,e=mn(),n=dr(),r=hr(),i=lr(),o=vr(),a=ke(),s="prototype",u="script",c=gr()("IE_PROTO"),l=function(){},f=function(t){return"<"+u+">"+t+"</"+u+">"},h=function(t){t.write(f("")),t.close();var e=t.parentWindow.Object;return t=null,e},p=function(){try{t=new ActiveXObject("htmlfile")}catch(t){}var e,n,i;p="undefined"!=typeof document?document.domain&&t?h(t):(n=a("iframe"),i="java"+u+":",n.style.display="none",o.appendChild(n),n.src=String(i),(e=n.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):h(t);for(var c=r.length;c--;)delete p[s][r[c]];return p()};return i[c]=!0,or=Object.create||function(t,r){var i;return null!==t?(l[s]=e(t),i=new l,l[s]=null,i[c]=t):i=p(),void 0===r?i:n.f(i,r)}}var yr,br={};function wr(){if(yr)return br;yr=1;var t=fr(),e=hr().concat("length","prototype");return br.f=Object.getOwnPropertyNames||function(n){return t(n,e)},br}var Cr,Er,kr,Or={};function Tr(){return Er?Cr:(Er=1,Cr=O()([].slice))}function Fr(){if(kr)return Or;kr=1;var t=T(),e=Ot(),n=wr().f,r=Tr(),i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return Or.f=function(o){return i&&"Window"===t(o)?function(t){try{return n(t)}catch(t){return r(i)}}(o):n(e(o))},Or}var Sr,_r,Ar,Dr,Pr,xr={};function jr(){return Sr||(Sr=1,xr.f=Object.getOwnPropertySymbols),xr}function Rr(){if(Ar)return _r;Ar=1;var t=bn();return _r=function(e,n,r,i){return i&&i.enumerable?e[n]=r:t(e,n,r),e}}function Nr(){if(Pr)return Dr;Pr=1;var t=yn();return Dr=function(e,n,r){return t.f(e,n,r)}}var Ir,Br,Mr,Lr,zr,Hr,Wr,Ur,Vr,qr,Yr,Xr,Gr,Jr,Qr,$r,Kr={};function Zr(){if(Ir)return Kr;Ir=1;var t=we();return Kr.f=t,Kr}function ti(){if(Mr)return Br;Mr=1;var t=Ft(),e=ye(),n=Zr(),r=yn().f;return Br=function(i){var o=t.Symbol||(t.Symbol={});e(o,i)||r(o,i,{value:n.f(i)})}}function ei(){if(zr)return Lr;zr=1;var t=R(),e=St(),n=we(),r=Rr();return Lr=function(){var i=e("Symbol"),o=i&&i.prototype,a=o&&o.valueOf,s=n("toPrimitive");o&&!o[s]&&r(o,s,function(e){return t(a,this)},{arity:1})}}function ni(){if(Wr)return Hr;Wr=1;var t=An(),e=Dn();return Hr=t?{}.toString:function(){return"[object "+e(this)+"]"}}function ri(){if(Vr)return Ur;Vr=1;var t=An(),e=yn().f,n=bn(),r=ye(),i=ni(),o=we()("toStringTag");return Ur=function(a,s,u,c){var l=u?a:a&&a.prototype;l&&(r(l,o)||e(l,o,{configurable:!0,value:s}),c&&!t&&n(l,"toString",i))}}function ii(){if(Yr)return qr;Yr=1;var t=w(),e=S(),n=t.WeakMap;return qr=e(n)&&/native code/.test(String(n))}function oi(){if(Gr)return Xr;Gr=1;var t,e,n,r=ii(),i=w(),o=Tt(),a=bn(),s=ye(),u=ve(),c=gr(),l=lr(),f="Object already initialized",h=i.TypeError,p=i.WeakMap;if(r||u.state){var d=u.state||(u.state=new p);d.get=d.get,d.has=d.has,d.set=d.set,t=function(t,e){if(d.has(t))throw new h(f);return e.facade=t,d.set(t,e),e},e=function(t){return d.get(t)||{}},n=function(t){return d.has(t)}}else{var v=c("state");l[v]=!0,t=function(t,e){if(s(t,v))throw new h(f);return e.facade=t,a(t,v,e),e},e=function(t){return s(t,v)?t[v]:{}},n=function(t){return s(t,v)}}return Xr={set:t,get:e,has:n,enforce:function(r){return n(r)?e(r):t(r,{})},getterFor:function(t){return function(n){var r;if(!o(n)||(r=e(n)).type!==t)throw new h("Incompatible receiver, "+t+" required");return r}}}}function ai(){if(Qr)return Jr;Qr=1;var t=Se(),e=Ct(),n=me(),r=Tn(),i=Rn(),o=Sn(),a=function(a){var s=1===a,u=2===a,c=3===a,l=4===a,f=6===a,h=7===a,p=5===a||f;return function(d,v,g){for(var m,y,b=n(d),w=e(b),C=r(w),E=t(v,g),k=0,O=0,T=s?i(d,C):u||h?i(d,0):void 0;C>k;k++)if((p||k in w)&&(y=E(m=w[k],k,b),a))if(s)o(T,k,y);else if(y)switch(a){case 3:return!0;case 5:return m;case 6:return k;case 2:o(T,O++,m)}else switch(a){case 4:return!1;case 7:o(T,O++,m)}return f?-1:c||l?l:T}};return Jr={forEach:a(0),map:a(1),filter:a(2),some:a(3),every:a(4),find:a(5),findIndex:a(6),filterReject:a(7)}}var si,ui,ci,li={};function fi(){return ui?si:(ui=1,si=Pt()&&!!Symbol.for&&!!Symbol.keyFor)}var hi,pi={};var di,vi,gi,mi,yi,bi,wi,Ci={};function Ei(){if(vi)return di;vi=1;var t=Tt(),e=oi().get;return di=function(n){if(!t(n))return!1;var r=e(n);return!!r&&"RawJSON"===r.type}}function ki(){if(mi)return gi;mi=1;var t=O(),e=ye(),n=SyntaxError,r=parseInt,i=String.fromCharCode,o=t("".charAt),a=t("".slice),s=t(/./.exec),u={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},c=/^[\da-f]{4}$/i,l=/^[\u0000-\u001F]$/;return gi=function(t,f){for(var h=!0,p="";f<t.length;){var d=o(t,f);if("\\"===d){var v=a(t,f,f+2);if(e(u,v))p+=u[v],f+=2;else{if("\\u"!==v)throw new n('Unknown escape sequence: "'+v+'"');var g=a(t,f+=2,f+4);if(!s(c,g))throw new n("Bad Unicode escape at: "+f);p+=i(r(g,16)),f+=4}}else{if('"'===d){h=!1,f++;break}if(s(l,d))throw new n("Bad control character in string literal at: "+f);p+=d,f++}}if(h)throw new n("Unterminated string at: "+f);return{value:p,end:f}}}function Oi(){return bi?yi:(bi=1,yi=!C()(function(){var t="9007199254740993",e=JSON.rawJSON(t);return!JSON.isRawJSON(e)||JSON.stringify(e)!==t}))}function Ti(){if(wi)return Ci;wi=1;var t=wn(),e=St(),n=k(),r=R(),i=O(),o=C(),a=Cn(),s=S(),u=Ei(),c=jt(),l=T(),f=Hn(),h=Tr(),p=ki(),d=be(),v=Pt(),g=Oi(),m=String,y=e("JSON","stringify"),b=i(/./.exec),w=i("".charAt),E=i("".charCodeAt),F=i("".replace),_=i("".slice),A=i([].push),D=i(1.1.toString),P=/[\uD800-\uDFFF]/g,x=/^[\uD800-\uDBFF]$/,j=/^[\uDC00-\uDFFF]$/,N=d(),I=N.length,B=!v||o(function(){var t=e("Symbol")("stringify detection");return"[null]"!==y([t])||"{}"!==y({a:t})||"{}"!==y(Object(t))}),M=o(function(){return'"\\udf06\\ud834"'!==y("\udf06\ud834")||'"\\udead"'!==y("\udead")}),L=B?function(t,e){var i=h(arguments),o=H(e);if(s(o)||void 0!==t&&!c(t))return i[1]=function(t,e){if(s(o)&&(e=r(o,this,m(t),e)),!c(e))return e},n(y,null,i)}:y,z=function(t,e,n){var r=w(n,e-1),i=w(n,e+1);return b(x,t)&&!b(j,i)||b(j,t)&&!b(x,r)?"\\u"+D(E(t,0),16):t},H=function(t){if(s(t))return t;if(a(t)){for(var e=t.length,n=[],r=0;r<e;r++){var i=t[r];"string"==typeof i?A(n,i):"number"!=typeof i&&"Number"!==l(i)&&"String"!==l(i)||A(n,f(i))}var o=n.length,u=!0;return function(t,e){if(u)return u=!1,e;if(a(this))return e;for(var r=0;r<o;r++)if(n[r]===t)return e}}};return y&&t({target:"JSON",stat:!0,arity:3,forced:B||M||!g},{stringify:function(t,e,n){var i=H(e),o=[],a=L(t,function(t,e){var n=s(i)?r(i,this,m(t),e):e;return!g&&u(n)?N+(A(o,n.rawJSON)-1):n},n);if("string"!=typeof a)return a;if(M&&(a=F(a,P,z)),g)return a;for(var c="",l=a.length,f=0;f<l;f++){var h=w(a,f);if('"'===h){var d=p(a,++f).end-1,v=_(a,f,d);c+=_(v,0,I)===N?o[_(v,I)]:'"'+v+'"',f=d}else c+=h}return c}}),Ci}var Fi,Si,_i={};function Ai(){return Si||(Si=1,function(){if($r)return zn;$r=1;var t=wn(),e=w(),n=R(),r=O(),i=pe(),o=j(),a=Pt(),s=C(),u=ye(),c=_t(),l=mn(),f=Ot(),h=Ee(),p=Hn(),d=wt(),v=mr(),g=pr(),m=wr(),y=Fr(),b=jr(),E=Te(),k=yn(),T=dr(),F=bt(),S=Rr(),_=Nr(),A=ge(),D=gr(),P=lr(),x=be(),N=we(),I=Zr(),B=ti(),M=ei(),L=ri(),z=oi(),H=ai().forEach,W=D("hidden"),U="Symbol",V="prototype",q=z.set,Y=z.getterFor(U),X=Object[V],G=e.Symbol,J=G&&G[V],Q=e.RangeError,$=e.TypeError,K=e.QObject,Z=E.f,tt=k.f,et=y.f,nt=F.f,rt=r([].push),it=A("symbols"),ot=A("op-symbols"),at=A("wks"),st=!K||!K[V]||!K[V].findChild,ut=function(t,e,n){var r=Z(X,e);return r&&delete X[e],tt(t,e,n),r&&t!==X&&tt(X,e,r),t},ct=o&&s(function(){return 7!==v(tt({},"a",{get:function(){return tt(this,"a",{value:7}).a}})).a})?ut:tt,lt=function(t,e){var n=it[t]=v(J);return q(n,{type:U,tag:t,description:e}),o||(n.description=e),n},ft=function(t,e,n){t===X&&ft(ot,e,n),l(t);var r=h(e);return l(n),u(it,r)?(("enumerable"in n?!n.enumerable:!u(t,r)||u(t,W)&&t[W][r])?(u(t,W)||tt(t,W,d(1,v(null))),t[W][r]=!0):(u(t,W)&&t[W][r]&&(t[W][r]=!1),n=v(n,{enumerable:d(0,!1)})),ct(t,r,n)):tt(t,r,n)},ht=function(t,e){l(t);var r=f(e),i=g(r).concat(gt(r));return H(i,function(e){o&&!n(pt,r,e)||ft(t,e,r[e])}),t},pt=function(t){var e=h(t),r=n(nt,this,e);return!(this===X&&u(it,e)&&!u(ot,e))&&(!(r||!u(this,e)||!u(it,e)||u(this,W)&&this[W][e])||r)},dt=function(t,e){var n=f(t),r=h(e);if(n!==X||!u(it,r)||u(ot,r)){var i=Z(n,r);return!i||!u(it,r)||u(n,W)&&n[W][r]||(i.enumerable=!0),i}},vt=function(t){var e=et(f(t)),n=[];return H(e,function(t){u(it,t)||u(P,t)||rt(n,t)}),n},gt=function(t){var e=t===X,n=et(e?ot:f(t)),r=[];return H(n,function(t){!u(it,t)||e&&!u(X,t)||rt(r,it[t])}),r};a||(G=function(){if(c(J,this))throw new $("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?p(arguments[0]):void 0,r=x(t),i=function(t){var o=void 0===this?e:this;o===X&&n(i,ot,t),u(o,W)&&u(o[W],r)&&(o[W][r]=!1);var a=d(1,t);try{ct(o,r,a)}catch(t){if(!(t instanceof Q))throw t;ut(o,r,a)}};return o&&st&&ct(X,r,{configurable:!0,set:i}),lt(r,t)},S(J=G[V],"toString",function(){return Y(this).tag}),S(G,"withoutSetter",function(t){return lt(x(t),t)}),F.f=pt,k.f=ft,T.f=ht,E.f=dt,m.f=y.f=vt,b.f=gt,I.f=function(t){return lt(N(t),t)},o&&(_(J,"description",{configurable:!0,get:function(){return Y(this).description}}),i||S(X,"propertyIsEnumerable",pt,{unsafe:!0}))),t({global:!0,constructor:!0,wrap:!0,forced:!a,sham:!a},{Symbol:G}),H(g(at),function(t){B(t)}),t({target:U,stat:!0,forced:!a},{useSetter:function(){st=!0},useSimple:function(){st=!1}}),t({target:"Object",stat:!0,forced:!a,sham:!o},{create:function(t,e){return void 0===e?v(t):ht(v(t),e)},defineProperty:ft,defineProperties:ht,getOwnPropertyDescriptor:dt}),t({target:"Object",stat:!0,forced:!a},{getOwnPropertyNames:vt}),M(),L(G,U),P[W]=!0}(),function(){if(ci)return li;ci=1;var t=wn(),e=St(),n=ye(),r=Hn(),i=ge(),o=fi(),a=i("string-to-symbol-registry"),s=i("symbol-to-string-registry");t({target:"Symbol",stat:!0,forced:!o},{for:function(t){var i=r(t);if(n(a,i))return a[i];var o=e("Symbol")(i);return a[i]=o,s[o]=i,o}})}(),function(){if(hi)return pi;hi=1;var t=wn(),e=ye(),n=jt(),r=Rt(),i=ge(),o=fi(),a=i("symbol-to-string-registry");t({target:"Symbol",stat:!0,forced:!o},{keyFor:function(t){if(!n(t))throw new TypeError(r(t)+" is not a symbol");if(e(a,t))return a[t]}})}(),Ti(),function(){if(Fi)return _i;Fi=1;var t=wn(),e=Pt(),n=C(),r=jr(),i=me();t({target:"Object",stat:!0,forced:!e||n(function(){r.f(1)})},{getOwnPropertySymbols:function(t){var e=r.f;return e?e(i(t)):[]}})}()),Ln}var Di,Pi={};function xi(){return Di||(Di=1,ti()("asyncDispose")),Pi}var ji;var Ri,Ni={};function Ii(){return Ri||(Ri=1,ti()("dispose")),Ni}var Bi;var Mi;var Li;var zi;var Hi;var Wi;var Ui;var Vi;var qi;var Yi,Xi={};var Gi,Ji={};var Qi;var $i,Ki,Zi,to={};function eo(){return Zi?Ki:(Zi=1,In(),Ai(),xi(),ji||(ji=1,ti()("asyncIterator")),Ii(),Bi||(Bi=1,ti()("hasInstance")),Mi||(Mi=1,ti()("isConcatSpreadable")),Li||(Li=1,ti()("iterator")),zi||(zi=1,ti()("match")),Hi||(Hi=1,ti()("matchAll")),Wi||(Wi=1,ti()("replace")),Ui||(Ui=1,ti()("search")),Vi||(Vi=1,ti()("species")),qi||(qi=1,ti()("split")),function(){if(Yi)return Xi;Yi=1;var t=ti(),e=ei();t("toPrimitive"),e()}(),function(){if(Gi)return Ji;Gi=1;var t=St(),e=ti(),n=ri();e("toStringTag"),n(t("Symbol"),"Symbol")}(),Qi||(Qi=1,ti()("unscopables")),function(){if($i)return to;$i=1;var t=w();ri()(t.JSON,"JSON",!0)}(),Ki=Ft().Symbol)}var no,ro,io,oo,ao,so,uo,co,lo,fo,ho,po,vo,go,mo,yo,bo,wo,Co,Eo,ko,Oo,To,Fo,So,_o,Ao,Do,Po,xo,jo,Ro,No,Io,Bo,Mo={};function Lo(){return ro?no:(ro=1,no=function(){})}function zo(){return oo?io:(oo=1,io={})}function Ho(){if(so)return ao;so=1;var t=j(),e=ye(),n=Function.prototype,r=t&&Object.getOwnPropertyDescriptor,i=e(n,"name"),o=i&&"something"===function(){}.name,a=i&&(!t||t&&r(n,"name").configurable);return ao={EXISTS:i,PROPER:o,CONFIGURABLE:a}}function Wo(){return co?uo:(co=1,uo=!C()(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))}function Uo(){if(fo)return lo;fo=1;var t=ye(),e=S(),n=me(),r=gr(),i=Wo(),o=r("IE_PROTO"),a=Object,s=a.prototype;return lo=i?a.getPrototypeOf:function(r){var i=n(r);if(t(i,o))return i[o];var u=i.constructor;return e(u)&&i instanceof u?u.prototype:i instanceof a?s:null}}function Vo(){if(po)return ho;po=1;var t,e,n,r=C(),i=S(),o=Tt(),a=mr(),s=Uo(),u=Rr(),c=we(),l=pe(),f=c("iterator"),h=!1;return[].keys&&("next"in(n=[].keys())?(e=s(s(n)))!==Object.prototype&&(t=e):h=!0),!o(t)||r(function(){var e={};return t[f].call(e)!==e})?t={}:l&&(t=a(t)),i(t[f])||u(t,f,function(){return this}),ho={IteratorPrototype:t,BUGGY_SAFARI_ITERATORS:h}}function qo(){if(go)return vo;go=1;var t=Vo().IteratorPrototype,e=mr(),n=wt(),r=ri(),i=zo(),o=function(){return this};return vo=function(a,s,u,c){var l=s+" Iterator";return a.prototype=e(t,{next:n(+!c,u)}),r(a,l,!1,!0),i[l]=o,a}}function Yo(){if(yo)return mo;yo=1;var t=O(),e=Nt();return mo=function(n,r,i){try{return t(e(Object.getOwnPropertyDescriptor(n,r)[i]))}catch(t){}}}function Xo(){if(wo)return bo;wo=1;var t=Tt();return bo=function(e){return t(e)||null===e}}function Go(){if(Eo)return Co;Eo=1;var t=Xo(),e=String,n=TypeError;return Co=function(r){if(t(r))return r;throw new n("Can't set "+e(r)+" as a prototype")}}function Jo(){if(Oo)return ko;Oo=1;var t=Yo(),e=Tt(),n=kt(),r=Go();return ko=Object.setPrototypeOf||("__proto__"in{}?function(){var i,o=!1,a={};try{(i=t(Object.prototype,"__proto__","set"))(a,[]),o=a instanceof Array}catch(t){}return function(t,a){return n(t),r(a),e(t)?(o?i(t,a):t.__proto__=a,t):t}}():void 0)}function Qo(){if(Fo)return To;Fo=1;var t=wn(),e=R(),n=pe(),r=Ho(),i=S(),o=qo(),a=Uo(),s=Jo(),u=ri(),c=bn(),l=Rr(),f=we(),h=zo(),p=Vo(),d=r.PROPER,v=r.CONFIGURABLE,g=p.IteratorPrototype,m=p.BUGGY_SAFARI_ITERATORS,y=f("iterator"),b="keys",w="values",C="entries",E=function(){return this};return To=function(r,f,p,k,O,T,F){o(p,f,k);var S,_,A,D=function(t){if(t===O&&N)return N;if(!m&&t&&t in j)return j[t];switch(t){case b:case w:case C:return function(){return new p(this,t)}}return function(){return new p(this)}},P=f+" Iterator",x=!1,j=r.prototype,R=j[y]||j["@@iterator"]||O&&j[O],N=!m&&R||D(O),I="Array"===f&&j.entries||R;if(I&&(S=a(I.call(new r)))!==Object.prototype&&S.next&&(n||a(S)===g||(s?s(S,g):i(S[y])||l(S,y,E)),u(S,P,!0,!0),n&&(h[P]=E)),d&&O===w&&R&&R.name!==w&&(!n&&v?c(j,"name",w):(x=!0,N=function(){return e(R,this)})),O)if(_={values:D(w),keys:T?N:D(b),entries:D(C)},F)for(A in _)(m||x||!(A in j))&&l(j,A,_[A]);else t({target:f,proto:!0,forced:m||x},_);return n&&!F||j[y]===N||l(j,y,N,{name:O}),h[f]=N,_}}function $o(){return _o?So:(_o=1,So=function(t,e){return{value:t,done:e}})}function Ko(){if(Do)return Ao;Do=1;var t=Ot(),e=Lo(),n=zo(),r=oi(),i=yn().f,o=Qo(),a=$o(),s=pe(),u=j(),c="Array Iterator",l=r.set,f=r.getterFor(c);Ao=o(Array,"Array",function(e,n){l(this,{type:c,target:t(e),index:0,kind:n})},function(){var t=f(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,a(void 0,!0);switch(t.kind){case"keys":return a(n,!1);case"values":return a(e[n],!1)}return a([n,e[n]],!1)},"values");var h=n.Arguments=n.Array;if(e("keys"),e("values"),e("entries"),!s&&u&&"values"!==h.name)try{i(h,"name",{value:"values"})}catch(t){}return Ao}function Zo(){return xo?Po:(xo=1,Po={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})}function ta(){if(jo)return Mo;jo=1,Ko();var t=Zo(),e=w(),n=ri(),r=zo();for(var i in t)n(e[i],i),r[i]=r.Array;return Mo}function ea(){if(No)return Ro;No=1;var t=eo();return ta(),Ro=t}var na,ra,ia,oa,aa,sa,ua,ca,la,fa,ha,pa=n(Bo?Io:(Bo=1,Io=ea())),da={};function va(){if(ia)return ra;ia=1;var t=w(),e=Ft();return ra=function(n,r){var i=e[n+"Prototype"],o=i&&i[r];if(o)return o;var a=t[n],s=a&&a.prototype;return s&&s[r]}}function ga(){return aa?oa:(aa=1,function(){if(na)return da;na=1;var t=wn(),e=Cn(),n=xn(),r=Tt(),i=ur(),o=Tn(),a=Ot(),s=Sn(),u=_n(),c=we(),l=Nn(),f=Tr(),h=l("slice"),p=c("species"),d=Array,v=Math.max;t({target:"Array",proto:!0,forced:!h},{slice:function(t,c){var l,h,g,m=a(this),y=o(m),b=i(t,y),w=i(void 0===c?y:c,y);if(e(m)&&(l=m.constructor,(n(l)&&(l===d||e(l.prototype))||r(l)&&null===(l=l[p]))&&(l=void 0),l===d||void 0===l))return f(m,b,w);for(h=new(void 0===l?d:l)(v(w-b,0)),g=0;b<w;b++,g++)b in m&&s(h,g,m[b]);return u(h,g),h}})}(),oa=va()("Array","slice"))}function ma(){if(ua)return sa;ua=1;var t=_t(),e=ga(),n=Array.prototype;return sa=function(r){var i=r.slice;return r===n||t(n,r)&&i===n.slice?e:i}}function ya(){return la?ca:(la=1,ca=ma())}var ba,wa,Ca,Ea,ka,Oa,Ta,Fa,Sa,_a=n(ha?fa:(ha=1,fa=ya()));function Aa(){if(wa)return ba;wa=1;var t=St(),e=O(),n=wr(),r=jr(),i=mn(),o=e([].concat);return ba=t("Reflect","ownKeys")||function(t){var e=n.f(i(t)),a=r.f;return a?o(e,a(t)):e},ba}function Da(){return ka?Ea:(ka=1,Ca||(Ca=1,wn()({target:"Reflect",stat:!0},{ownKeys:Aa()})),Ea=Ft().Reflect.ownKeys)}function Pa(){return Ta?Oa:(Ta=1,Oa=Da())}var xa,ja,Ra,Na,Ia,Ba,Ma,La=n(Sa?Fa:(Sa=1,Fa=Pa()));function za(){return Ra?ja:(Ra=1,xa||(xa=1,wn()({target:"Array",stat:!0},{isArray:Cn()})),ja=Ft().Array.isArray)}function Ha(){return Ia?Na:(Ia=1,Na=za())}var Wa,Ua,Va,qa,Ya,Xa,Ga,Ja,Qa,$a=n(Ma?Ba:(Ma=1,Ba=Ha())),Ka={};function Za(){return Va?Ua:(Va=1,function(){if(Wa)return Ka;Wa=1;var t=wn(),e=ai().map;t({target:"Array",proto:!0,forced:!Nn()("map")},{map:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}})}(),Ua=va()("Array","map"))}function ts(){if(Ya)return qa;Ya=1;var t=_t(),e=Za(),n=Array.prototype;return qa=function(r){var i=r.map;return r===n||t(n,r)&&i===n.map?e:i}}function es(){return Ga?Xa:(Ga=1,Xa=ts())}var ns,rs,is,os,as,ss,us,cs=n(Qa?Ja:(Qa=1,Ja=es())),ls={};function fs(){return is?rs:(is=1,function(){if(ns)return ls;ns=1;var t=wn(),e=me(),n=pr();t({target:"Object",stat:!0,forced:C()(function(){n(1)})},{keys:function(t){return n(e(t))}})}(),rs=Ft().Object.keys)}function hs(){return as?os:(as=1,os=fs())}var ps=n(us?ss:(us=1,ss=hs()));const ds=pa("DELETE");function vs(){const t=gs(...arguments);return ys(t),t}function gs(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(e.length<2)return e[0];if(e.length>2)return gs(vs(e[0],e[1]),..._a(e).call(e,2));const r=e[0],i=e[1];if(r instanceof Date&&i instanceof Date)return r.setTime(i.getTime()),r;for(const t of La(i))Object.prototype.propertyIsEnumerable.call(i,t)&&(i[t]===ds?delete r[t]:null===r[t]||null===i[t]||"object"!=typeof r[t]||"object"!=typeof i[t]||$a(r[t])||$a(i[t])?r[t]=ms(i[t]):r[t]=gs(r[t],i[t]));return r}function ms(t){return $a(t)?cs(t).call(t,t=>ms(t)):"object"==typeof t&&null!==t?t instanceof Date?new Date(t.getTime()):gs({},t):t}function ys(t){for(const e of ps(t))t[e]===ds?delete t[e]:"object"==typeof t[e]&&null!==t[e]&&ys(t[e])}var bs,ws,Cs,Es,ks,Os;function Ts(){return ws?bs:(ws=1,bs=Ha())}function Fs(){return Es?Cs:(Es=1,Cs=Ts())}function Ss(){return Os?ks:(Os=1,ks=Fs())}var _s=n(Ss());var As,Ds={};var Ps;var xs;var js,Rs,Ns;function Is(){if(Ns)return Rs;Ns=1;var t=ea();return function(){if(As)return Ds;As=1;var t=we(),e=yn().f,n=t("metadata"),r=Function.prototype;void 0===r[n]&&e(r,n,{value:null})}(),Ps||(Ps=1,xi()),xs||(xs=1,Ii()),js||(js=1,ti()("metadata")),Rs=t}var Bs,Ms,Ls;function zs(){if(Ms)return Bs;Ms=1;var t=St(),e=O(),n=t("Symbol"),r=n.keyFor,i=e(n.prototype.valueOf);return Bs=n.isRegisteredSymbol||function(t){try{return void 0!==r(i(t))}catch(t){return!1}}}var Hs,Ws,Us;function Vs(){if(Ws)return Hs;Ws=1;for(var t=ge(),e=St(),n=O(),r=jt(),i=we(),o=e("Symbol"),a=o.isWellKnownSymbol,s=e("Object","getOwnPropertyNames"),u=n(o.prototype.valueOf),c=t("wks"),l=0,f=s(o),h=f.length;l<h;l++)try{var p=f[l];r(o[p])&&i(p)}catch(t){}return Hs=function(t){if(a&&a(t))return!0;try{for(var e=u(t),n=0,r=s(c),i=r.length;n<i;n++)if(c[r[n]]==e)return!0}catch(t){}return!1},Hs}var qs;var Ys;var Xs;var Gs;var Js;var Qs;var $s;var Ks,Zs,tu,eu,nu;function ru(){if(tu)return Zs;tu=1;var t=Is();return Ls||(Ls=1,wn()({target:"Symbol",stat:!0},{isRegisteredSymbol:zs()})),Us||(Us=1,wn()({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:Vs()})),qs||(qs=1,ti()("customMatcher")),Ys||(Ys=1,ti()("observable")),Xs||(Xs=1,wn()({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:zs()})),Gs||(Gs=1,wn()({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:Vs()})),Js||(Js=1,ti()("matcher")),Qs||(Qs=1,ti()("metadataKey")),$s||($s=1,ti()("patternMatch")),Ks||(Ks=1,ti()("replaceAll")),Zs=t}function iu(){return nu?eu:(nu=1,eu=ru())}var ou,au,su,uu,cu,lu,fu,hu,pu,du,vu,gu,mu,yu,bu,wu=n(iu()),Cu={};function Eu(){if(au)return ou;au=1;var t=O(),e=kn(),n=Hn(),r=kt(),i=t("".charAt),o=t("".charCodeAt),a=t("".slice),s=function(t){return function(s,u){var c,l,f=n(r(s)),h=e(u),p=f.length;return h<0||h>=p?t?"":void 0:(c=o(f,h))<55296||c>56319||h+1===p||(l=o(f,h+1))<56320||l>57343?t?i(f,h):c:t?a(f,h,h+2):l-56320+(c-55296<<10)+65536}};return ou={codeAt:s(!1),charAt:s(!0)}}function ku(){if(su)return Cu;su=1;var t=Eu().charAt,e=Hn(),n=oi(),r=Qo(),i=$o(),o="String Iterator",a=n.set,s=n.getterFor(o);return r(String,"String",function(t){a(this,{type:o,string:e(t),index:0})},function(){var e,n=s(this),r=n.string,o=n.index;return o>=r.length?i(void 0,!0):(e=t(r,o),n.index+=e.length,i(e,!1))}),Cu}function Ou(){if(cu)return uu;cu=1;var t=Dn(),e=It(),n=Et(),r=zo(),i=we()("iterator");return uu=function(o){if(!n(o))return e(o,i)||e(o,"@@iterator")||r[t(o)]}}function Tu(){return fu?lu:(fu=1,Ko(),ku(),lu=Ou())}function Fu(){if(pu)return hu;pu=1;var t=Tu();return ta(),hu=t}function Su(){return vu?du:(vu=1,du=Fu())}function _u(){return mu?gu:(mu=1,gu=Su())}function Au(){return bu?yu:(bu=1,yu=_u())}var Du,Pu,xu,ju,Ru,Nu,Iu,Bu,Mu,Lu,zu,Hu,Wu,Uu=n(Au()),Vu={};function qu(){return xu?Pu:(xu=1,function(){if(Du)return Vu;Du=1;var t=wn(),e=me(),n=Tn(),r=_n(),i=Fn();t({target:"Array",proto:!0,arity:1,forced:C()(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var o=e(this),a=n(o),s=arguments.length;i(a+s);for(var u=0;u<s;u++)o[a]=arguments[u],a++;return r(o,a),a}})}(),Pu=va()("Array","push"))}function Yu(){if(Ru)return ju;Ru=1;var t=_t(),e=qu(),n=Array.prototype;return ju=function(r){var i=r.push;return r===n||t(n,r)&&i===n.push?e:i}}function Xu(){return Iu?Nu:(Iu=1,Nu=Yu())}function Gu(){return Mu?Bu:(Mu=1,Bu=Xu())}function Ju(){return zu?Lu:(zu=1,Lu=Gu())}function Qu(){return Wu?Hu:(Wu=1,Hu=Ju())}var $u,Ku,Zu,tc,ec,nc,rc=n(Qu());function ic(){return Ku?$u:(Ku=1,$u=ya())}function oc(){return tc?Zu:(tc=1,Zu=ic())}function ac(){return nc?ec:(nc=1,ec=oc())}var sc,uc,cc,lc,fc,hc,pc,dc,vc,gc,mc,yc,bc,wc,Cc,Ec,kc,Oc,Tc,Fc,Sc,_c,Ac,Dc=n(ac()),Pc={};function xc(){if(uc)return sc;uc=1;var t=R(),e=mn(),n=It();return sc=function(r,i,o){var a,s;e(r);try{if(!(a=n(r,"return"))){if("throw"===i)throw o;return o}a=t(a,r)}catch(t){s=!0,a=t}if("throw"===i)throw o;if(s)throw a;return e(a),o}}function jc(){if(lc)return cc;lc=1;var t=mn(),e=xc();return cc=function(n,r,i,o){try{return o?r(t(i)[0],i[1]):r(i)}catch(t){e(n,"throw",t)}}}function Rc(){if(hc)return fc;hc=1;var t=we(),e=zo(),n=t("iterator"),r=Array.prototype;return fc=function(t){return void 0!==t&&(e.Array===t||r[n]===t)}}function Nc(){if(dc)return pc;dc=1;var t=R(),e=Nt(),n=mn(),r=Rt(),i=Ou(),o=TypeError;return pc=function(a,s){var u=arguments.length<2?i(a):s;if(e(u))return n(t(u,a));throw new o(r(a)+" is not iterable")},pc}function Ic(){if(gc)return vc;gc=1;var t=Se(),e=R(),n=me(),r=jc(),i=Rc(),o=xn(),a=Tn(),s=Sn(),u=_n(),c=Nc(),l=Ou(),f=xc(),h=Array;return vc=function(p){var d=o(this),v=arguments.length,g=v>1?arguments[1]:void 0,m=void 0!==g;m&&(g=t(g,v>2?arguments[2]:void 0));var y,b,w,C,E,k,O=n(p),T=l(O),F=0;if(!T||this===h&&i(T))for(y=a(O),b=d?new this(y):h(y);y>F;F++)k=m?g(O[F],F):O[F],s(b,F,k);else for(b=d?new this:[],E=(C=c(O,T)).next;!(w=e(E,C)).done;F++){k=m?r(C,g,[w.value,F],!0):w.value;try{s(b,F,k)}catch(t){f(C,"throw",t)}}return u(b,F),b},vc}function Bc(){if(yc)return mc;yc=1;var t=we()("iterator"),e=!1;try{var n=0,r={next:function(){return{done:!!n++}},return:function(){e=!0}};r[t]=function(){return this},Array.from(r,function(){throw 2})}catch(t){}return mc=function(n,r){try{if(!r&&!e)return!1}catch(t){return!1}var i=!1;try{var o={};o[t]=function(){return{next:function(){return{done:i=!0}}}},n(o)}catch(t){}return i}}function Mc(){return Cc?wc:(Cc=1,ku(),function(){if(bc)return Pc;bc=1;var t=wn(),e=Ic();t({target:"Array",stat:!0,forced:!Bc()(function(t){Array.from(t)})},{from:e})}(),wc=Ft().Array.from)}function Lc(){return kc?Ec:(kc=1,Ec=Mc())}function zc(){return Tc?Oc:(Tc=1,Oc=Lc())}function Hc(){return Sc?Fc:(Sc=1,Fc=zc())}function Wc(){return Ac?_c:(Ac=1,_c=Hc())}var Uc=n(Wc());function Vc(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function qc(t,e){return function(t){if(_s(t))return t}(t)||function(t,e){var n=null==t?null:void 0!==wu&&Uu(t)||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(rc(s).call(s,r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(t){var n;if("string"==typeof t)return Vc(t,e);var r=Dc(n={}.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Uc(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Vc(t,e):void 0}}(t,e)||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 Yc,Xc,Gc,Jc,Qc,$c,Kc,Zc={};function tl(){return Gc?Xc:(Gc=1,function(){if(Yc)return Zc;Yc=1;var t=wn(),e=Date,n=O()(e.prototype.getTime);t({target:"Date",stat:!0},{now:function(){return n(new e)}})}(),Xc=Ft().Date.now)}function el(){return Qc?Jc:(Qc=1,Jc=tl())}var nl=n(Kc?$c:(Kc=1,$c=el()));var rl,il,ol,al,sl,ul,cl,ll,fl,hl,pl,dl={};function vl(){if(il)return rl;il=1;var t=O(),e=Nt(),n=Tt(),r=ye(),i=Tr(),o=E(),a=Function,s=t([].concat),u=t([].join),c={};return rl=o?a.bind:function(t){var o=e(this),l=o.prototype,f=i(arguments,1),h=function(){var e=s(f,i(arguments));return this instanceof h?function(t,e,n){if(!r(c,e)){for(var i=[],o=0;o<e;o++)i[o]="a["+o+"]";c[e]=a("C,a","return new C("+u(i,",")+")")}return c[e](t,n)}(o,e.length,e):o.apply(t,e)};return n(l)&&(h.prototype=l),h},rl}function gl(){return sl?al:(sl=1,function(){if(ol)return dl;ol=1;var t=wn(),e=vl();t({target:"Function",proto:!0,forced:Function.bind!==e},{bind:e})}(),al=va()("Function","bind"))}function ml(){if(cl)return ul;cl=1;var t=_t(),e=gl(),n=Function.prototype;return ul=function(r){var i=r.bind;return r===n||t(n,r)&&i===n.bind?e:i}}function yl(){return fl?ll:(fl=1,ll=ml())}var bl,wl,Cl,El,kl,Ol,Tl,Fl,Sl,_l,Al,Dl,Pl,xl=n(pl?hl:(pl=1,hl=yl())),jl={};function Rl(){if(wl)return bl;wl=1;var t=C();return bl=function(e,n){var r=[][e];return!!r&&t(function(){r.call(null,n||function(){return 1},1)})}}function Nl(){if(El)return Cl;El=1;var t=ai().forEach,e=Rl()("forEach");return Cl=e?[].forEach:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)},Cl}function Il(){return Tl?Ol:(Tl=1,function(){if(kl)return jl;kl=1;var t=wn(),e=Nl();t({target:"Array",proto:!0,forced:[].forEach!==e},{forEach:e})}(),Ol=va()("Array","forEach"))}function Bl(){return Sl?Fl:(Sl=1,Fl=Il())}function Ml(){if(Al)return _l;Al=1;var t=Dn(),e=ye(),n=_t(),r=Bl(),i=Array.prototype,o={DOMTokenList:!0,NodeList:!0};return _l=function(a){var s=a.forEach;return a===i||n(i,a)&&s===i.forEach||e(o,t(a))?r:s}}var Ll,zl,Hl,Wl,Ul,Vl,ql,Yl,Xl,Gl,Jl,Ql=n(Pl?Dl:(Pl=1,Dl=Ml())),$l={};function Kl(){if(zl)return Ll;zl=1;var t=Rt(),e=TypeError;return Ll=function(n,r){if(!delete n[r])throw new e("Cannot delete property "+t(r)+" of "+t(n))}}function Zl(){return Ul?Wl:(Ul=1,function(){if(Hl)return $l;Hl=1;var t=wn(),e=me(),n=ur(),r=kn(),i=Tn(),o=_n(),a=Fn(),s=Rn(),u=Sn(),c=Kl(),l=Nn()("splice"),f=Math.max,h=Math.min;t({target:"Array",proto:!0,forced:!l},{splice:function(t,l){var p,d,v,g,m,y,b=e(this),w=i(b),C=n(t,w),E=arguments.length;for(0===E?p=d=0:1===E?(p=0,d=w-C):(p=E-2,d=h(f(r(l),0),w-C)),a(w+p-d),v=s(b,d),g=0;g<d;g++)(m=C+g)in b&&u(v,g,b[m]);if(o(v,d),p<d){for(g=C;g<w-d;g++)y=g+p,(m=g+d)in b?b[y]=b[m]:c(b,y);for(g=w;g>w-d+p;g--)c(b,g-1)}else if(p>d)for(g=w-d;g>C;g--)y=g+p-1,(m=g+d-1)in b?b[y]=b[m]:c(b,y);for(g=0;g<p;g++)b[g+C]=arguments[g+2];return o(b,w-d+p),v}})}(),Wl=va()("Array","splice"))}function tf(){if(ql)return Vl;ql=1;var t=_t(),e=Zl(),n=Array.prototype;return Vl=function(r){var i=r.splice;return r===n||t(n,r)&&i===n.splice?e:i}}function ef(){return Xl?Yl:(Xl=1,Yl=tf())}var nf,rf=n(Jl?Gl:(Jl=1,Gl=ef())),of={exports:{}};function af(){return nf||(nf=1,function(t){function e(t){if(t)return function(t){return Object.assign(t,e.prototype),t._callbacks=new Map,t}(t);this._callbacks=new Map}e.prototype.on=function(t,e){const n=this._callbacks.get(t)??[];return n.push(e),this._callbacks.set(t,n),this},e.prototype.once=function(t,e){const n=(...r)=>{this.off(t,n),e.apply(this,r)};return n.fn=e,this.on(t,n),this},e.prototype.off=function(t,e){if(void 0===t&&void 0===e)return this._callbacks.clear(),this;if(void 0===e)return this._callbacks.delete(t),this;const n=this._callbacks.get(t);if(n){for(const[t,r]of n.entries())if(r===e||r.fn===e){n.splice(t,1);break}0===n.length?this._callbacks.delete(t):this._callbacks.set(t,n)}return this},e.prototype.emit=function(t,...e){const n=this._callbacks.get(t);if(n){const t=[...n];for(const n of t)n.apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks.get(t)??[]},e.prototype.listenerCount=function(t){if(t)return this.listeners(t).length;let e=0;for(const t of this._callbacks.values())e+=t.length;return e},e.prototype.hasListeners=function(t){return this.listenerCount(t)>0},e.prototype.addEventListener=e.prototype.on,e.prototype.removeListener=e.prototype.off,e.prototype.removeEventListener=e.prototype.off,e.prototype.removeAllListeners=e.prototype.off,t.exports=e}(of)),of.exports}var sf,uf=n(af());
|
|
26
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).vis=t.vis||{})}(this,function(t){var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var r,i,o,a,s,u,c,l,f,h,p,d,v,g,m,y,b={};function w(){if(i)return r;i=1;var t=function(t){return t&&t.Math===Math&&t};return r=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof e&&e)||t("object"==typeof r&&r)||function(){return this}()||Function("return this")()}function C(){return a?o:(a=1,o=function(t){try{return!!t()}catch(t){return!0}})}function O(){return u?s:(u=1,s=!C()(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))}function E(){if(l)return c;l=1;var t=O(),e=Function.prototype,n=e.apply,r=e.call;return c="object"==typeof Reflect&&Reflect.apply||(t?r.bind(n):function(){return r.apply(n,arguments)}),c}function k(){if(h)return f;h=1;var t=O(),e=Function.prototype,n=e.call,r=t&&e.bind.bind(n,n);return f=t?r:function(t){return function(){return n.apply(t,arguments)}},f}function T(){if(d)return p;d=1;var t=k(),e=t({}.toString),n=t("".slice);return p=function(t){return n(e(t),8,-1)}}function S(){if(g)return v;g=1;var t=T(),e=k();return v=function(n){if("Function"===t(n))return e(n)}}function F(){if(y)return m;y=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 _,A,D,P,x={};function j(){return A?_:(A=1,_=!C()(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))}function N(){if(P)return D;P=1;var t=O(),e=Function.prototype.call;return D=t?e.bind(e):function(){return e.apply(e,arguments)},D}var R,I,B,M,L,z,H,W,U,V,q,Y,X,G,J,Q,$,K,Z,tt,et,nt,rt,it,ot,at,st,ut,ct,lt,ft,ht,pt,dt,vt,gt,mt,yt={};function bt(){if(R)return yt;R=1;var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,n=e&&!t.call({1:2},1);return yt.f=n?function(t){var n=e(this,t);return!!n&&n.enumerable}:t,yt}function wt(){return B?I:(B=1,I=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}})}function Ct(){if(L)return M;L=1;var t=k(),e=C(),n=T(),r=Object,i=t("".split);return M=e(function(){return!r("z").propertyIsEnumerable(0)})?function(t){return"String"===n(t)?i(t,""):r(t)}:r}function Ot(){return H?z:(H=1,z=function(t){return null==t})}function Et(){if(U)return W;U=1;var t=Ot(),e=TypeError;return W=function(n){if(t(n))throw new e("Can't call method on "+n);return n}}function kt(){if(q)return V;q=1;var t=Ct(),e=Et();return V=function(n){return t(e(n))}}function Tt(){if(X)return Y;X=1;var t=F();return Y=function(e){return"object"==typeof e?null!==e:t(e)}}function St(){return J?G:(J=1,G={})}function Ft(){if($)return Q;$=1;var t=St(),e=w(),n=F(),r=function(t){return n(t)?t:void 0};return Q=function(n,i){return arguments.length<2?r(t[n])||r(e[n]):t[n]&&t[n][i]||e[n]&&e[n][i]},Q}function _t(){return Z?K:(Z=1,K=k()({}.isPrototypeOf))}function At(){if(et)return tt;et=1;var t=w().navigator,e=t&&t.userAgent;return tt=e?String(e):""}function Dt(){if(rt)return nt;rt=1;var t,e,n=w(),r=At(),i=n.process,o=n.Deno,a=i&&i.versions||o&&o.version,s=a&&a.v8;return s&&(e=(t=s.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!e&&r&&(!(t=r.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=r.match(/Chrome\/(\d+)/))&&(e=+t[1]),nt=e}function Pt(){if(ot)return it;ot=1;var t=Dt(),e=C(),n=w().String;return it=!!Object.getOwnPropertySymbols&&!e(function(){var e=Symbol("symbol detection");return!n(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t&&t<41}),it}function xt(){return st?at:(st=1,at=Pt()&&!Symbol.sham&&"symbol"==typeof Symbol.iterator)}function jt(){if(ct)return ut;ct=1;var t=Ft(),e=F(),n=_t(),r=Object;return ut=xt()?function(t){return"symbol"==typeof t}:function(i){var o=t("Symbol");return e(o)&&n(o.prototype,r(i))}}function Nt(){if(ft)return lt;ft=1;var t=String;return lt=function(e){try{return t(e)}catch(t){return"Object"}}}function Rt(){if(pt)return ht;pt=1;var t=F(),e=Nt(),n=TypeError;return ht=function(r){if(t(r))return r;throw new n(e(r)+" is not a function")}}function It(){if(vt)return dt;vt=1;var t=Rt(),e=Ot();return dt=function(n,r){var i=n[r];return e(i)?void 0:t(i)}}function Bt(){if(mt)return gt;mt=1;var t=N(),e=F(),n=Tt(),r=TypeError;return gt=function(i,o){var a,s;if("string"===o&&e(a=i.toString)&&!n(s=t(a,i)))return s;if(e(a=i.valueOf)&&!n(s=t(a,i)))return s;if("string"!==o&&e(a=i.toString)&&!n(s=t(a,i)))return s;throw new r("Can't convert object to primitive value")}}var Mt,Lt,zt,Ht,Wt,Ut,Vt,qt,Yt,Xt,Gt,Jt,Qt,$t,Kt,Zt,te,ee,ne,re,ie,oe,ae,se,ue,ce,le,fe,he={exports:{}};function pe(){return Lt?Mt:(Lt=1,Mt=!0)}function de(){if(Ht)return zt;Ht=1;var t=w(),e=Object.defineProperty;return zt=function(n,r){try{e(t,n,{value:r,configurable:!0,writable:!0})}catch(e){t[n]=r}return r}}function ve(){if(Wt)return he.exports;Wt=1;var t=pe(),e=w(),n=de(),r="__core-js_shared__",i=he.exports=e[r]||n(r,{});return(i.versions||(i.versions=[])).push({version:"3.50.0",mode:t?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.50.0/LICENSE",source:"https://github.com/zloirock/core-js"}),he.exports}function ge(){if(Vt)return Ut;Vt=1;var t=ve(),e=Object.create||Object;return Ut=function(n,r){return t[n]||(t[n]=r||e(null))}}function me(){if(Yt)return qt;Yt=1;var t=Et(),e=Object;return qt=function(n){return e(t(n))}}function ye(){if(Gt)return Xt;Gt=1;var t=k(),e=me(),n=t({}.hasOwnProperty);return Xt=Object.hasOwn||function(t,r){return n(e(t),r)}}function be(){if(Qt)return Jt;Qt=1;var t=k(),e=0,n=Math.random(),r=t(1.1.toString);return Jt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+r(++e+n,36)}}function we(){if(Kt)return $t;Kt=1;var t=w(),e=ge(),n=ye(),r=be(),i=Pt(),o=xt(),a=t.Symbol,s=e("wks"),u=o?a.for||a:a&&a.withoutSetter||r;return $t=function(t){return n(s,t)||(s[t]=i&&n(a,t)?a[t]:u("Symbol."+t)),s[t]}}function Ce(){if(te)return Zt;te=1;var t=N(),e=Tt(),n=jt(),r=It(),i=Bt(),o=TypeError,a=we()("toPrimitive");return Zt=function(s,u){if(!e(s)||n(s))return s;var c,l=r(s,a);if(l){if(void 0===u&&(u="default"),c=t(l,s,u),!e(c)||n(c))return c;throw new o("Can't convert object to primitive value")}return void 0===u&&(u="number"),i(s,u)}}function Oe(){if(ne)return ee;ne=1;var t=Ce(),e=jt();return ee=function(n){var r=t(n,"string");return e(r)?r:r+""}}function Ee(){if(ie)return re;ie=1;var t=w(),e=Tt(),n=t.document,r=e(n)&&e(n.createElement);return re=function(t){return r?n.createElement(t):{}}}function ke(){if(ae)return oe;ae=1;var t=j(),e=C(),n=Ee();return oe=!t&&!e(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function Te(){if(se)return x;se=1;var t=j(),e=N(),n=bt(),r=wt(),i=kt(),o=Oe(),a=ye(),s=ke(),u=Object.getOwnPropertyDescriptor;return x.f=t?u:function(t,c){if(t=i(t),c=o(c),s)try{return u(t,c)}catch(t){}if(a(t,c))return r(!e(n.f,t,c),t[c])},x}function Se(){if(ce)return ue;ce=1;var t=C(),e=F(),n=/#|\.prototype\./,r=function(n,r){var u=o[i(n)];return u===s||u!==a&&(e(r)?t(r):!!r)},i=r.normalize=function(t){return String(t).replace(n,".").toLowerCase()},o=r.data={},a=r.NATIVE="N",s=r.POLYFILL="P";return ue=r}function Fe(){if(fe)return le;fe=1;var t=S(),e=Rt(),n=O(),r=t(t.bind);return le=function(t,i){return e(t),void 0===i?t:n?r(t,i):function(){return t.apply(i,arguments)}},le}var _e,Ae,De,Pe,xe,je,Ne,Re,Ie,Be,Me,Le,ze,He,We,Ue,Ve,qe,Ye,Xe,Ge,Je,Qe,$e,Ke,Ze,tn,en,nn,rn,on,an,sn,un,cn,ln,fn,hn,pn,dn,vn={};function gn(){return Ae?_e:(Ae=1,_e=j()&&C()(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}))}function mn(){if(Pe)return De;Pe=1;var t=Tt(),e=String,n=TypeError;return De=function(r){if(t(r))return r;throw new n(e(r)+" is not an object")}}function yn(){if(xe)return vn;xe=1;var t=j(),e=ke(),n=gn(),r=mn(),i=Oe(),o=TypeError,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u="enumerable",c="configurable",l="writable";return vn.f=t?n?function(t,e,n){if(r(t),e=i(e),r(n),"function"==typeof t&&"prototype"===e&&"value"in n&&l in n&&!n[l]){var o=s(t,e);o&&o[l]&&(t[e]=n.value,n={configurable:c in n?n[c]:o[c],enumerable:u in n?n[u]:o[u],writable:!1})}return a(t,e,n)}:a:function(t,n,s){if(r(t),n=i(n),r(s),e)try{return a(t,n,s)}catch(t){}if("get"in s||"set"in s)throw new o("Accessors not supported");return"value"in s&&(t[n]=s.value),t},vn}function bn(){if(Ne)return je;Ne=1;var t=j(),e=yn(),n=wt();return je=t?function(t,r,i){return e.f(t,r,n(1,i))}:function(t,e,n){return t[e]=n,t}}function wn(){if(Ie)return Re;Ie=1;var t=w(),e=E(),n=S(),r=F(),i=Te().f,o=Se(),a=St(),s=Fe(),u=bn(),c=ye(),l=function(t){var n=function(r,i,o){if(this instanceof n){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,i)}return new t(r,i,o)}return e(t,this,arguments)};return n.prototype=t.prototype,n};return Re=function(e,f){var h,p,d,v,g,m,y,b,w,C=e.target,O=e.global,E=e.stat,k=e.proto,T=O?t:E?t[C]:t[C]&&t[C].prototype,S=O?a:a[C]||u(a,C,{})[C],F=S.prototype;for(v in f)p=!(h=o(O?v:C+(E?".":"#")+v,e.forced))&&T&&c(T,v),m=S[v],p&&(y=e.dontCallGetSet?(w=i(T,v))&&w.value:T[v]),g=p&&y?y:f[v],(h||k||typeof m!=typeof g)&&(b=e.bind&&p?s(g,t):e.wrap&&p?l(g):k&&r(g)?n(g):g,(e.sham||g&&g.sham||m&&m.sham)&&u(b,"sham",!0),u(S,v,b),k&&(c(a,d=C+"Prototype")||u(a,d,{}),u(a[d],v,g),e.real&&F&&(h||!F[v])&&u(F,v,g)))}}function Cn(){if(Me)return Be;Me=1;var t=T();return Be=Array.isArray||function(e){return"Array"===t(e)}}function On(){if(ze)return Le;ze=1;var t=Math.ceil,e=Math.floor;return Le=Math.trunc||function(n){var r=+n;return(r>0?e:t)(r)}}function En(){if(We)return He;We=1;var t=On();return He=function(e){var n=+e;return n!=n||0===n?0:t(n)}}function kn(){if(Ve)return Ue;Ve=1;var t=En(),e=Math.min;return Ue=function(n){var r=t(n);return r>0?e(r,9007199254740991):0}}function Tn(){if(Ye)return qe;Ye=1;var t=kn();return qe=function(e){return t(e.length)}}function Sn(){if(Ge)return Xe;Ge=1;var t=TypeError;return Xe=function(e){if(e>9007199254740991)throw new t("Maximum allowed index exceeded");return e}}function Fn(){if(Qe)return Je;Qe=1;var t=j(),e=yn(),n=wt();return Je=function(r,i,o){t?e.f(r,i,n(0,o)):r[i]=o}}function _n(){if(Ke)return $e;Ke=1;var t=j(),e=Cn(),n=TypeError,r=Object.getOwnPropertyDescriptor,i=t&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();return $e=i?function(t,i){if(e(t)&&!r(t,"length").writable)throw new n("Cannot set read only .length");return t.length=i}:function(t,e){return t.length=e}}function An(){if(tn)return Ze;tn=1;var t={};return t[we()("toStringTag")]="z",Ze="[object z]"===String(t)}function Dn(){if(nn)return en;nn=1;var t=An(),e=F(),n=T(),r=we()("toStringTag"),i=Object,o="Arguments"===n(function(){return arguments}());return en=t?n:function(t){var a,s,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(s=function(t,e){try{return t[e]}catch(t){}}(a=i(t),r))?s:o?n(a):"Object"===(u=n(a))&&e(a.callee)?"Arguments":u}}function Pn(){if(on)return rn;on=1;var t=k(),e=F(),n=ve(),r=t(Function.toString);return e(n.inspectSource)||(n.inspectSource=function(t){return r(t)}),rn=n.inspectSource}function xn(){if(sn)return an;sn=1;var t=k(),e=C(),n=F(),r=Dn(),i=Ft(),o=Pn(),a=function(){},s=i("Reflect","construct"),u=/^\s*(?:class|function)\b/,c=t(u.exec),l=!u.test(a),f=function(t){if(!n(t))return!1;try{return s(a,[],t),!0}catch(t){return!1}},h=function(t){if(!n(t))return!1;switch(r(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return l||!!c(u,o(t))}catch(t){return!0}};return h.sham=!0,an=!s||e(function(){var t;return f(f.call)||!f(Object)||!f(function(){t=!0})||t})?h:f}function jn(){if(cn)return un;cn=1;var t=Cn(),e=xn(),n=Tt(),r=we()("species"),i=Array;return un=function(o){var a;return t(o)&&(a=o.constructor,(e(a)&&(a===i||t(a.prototype))||n(a)&&null===(a=a[r]))&&(a=void 0)),void 0===a?i:a}}function Nn(){if(fn)return ln;fn=1;var t=jn();return ln=function(e,n){return new(t(e))(0===n?0:n)}}function Rn(){if(pn)return hn;pn=1;var t=C(),e=we(),n=Dt(),r=e("species");return hn=function(e){return n>=51||!t(function(){var t=[];return(t.constructor={})[r]=function(){return{foo:1}},1!==t[e](Boolean).foo})}}function In(){if(dn)return b;dn=1;var t=wn(),e=C(),n=Cn(),r=Tt(),i=me(),o=Tn(),a=Sn(),s=Fn(),u=_n(),c=Nn(),l=Rn(),f=we(),h=Dt(),p=f("isConcatSpreadable"),d=h>=51||!e(function(){var t=[];return t[p]=!1,t.concat()[0]!==t}),v=function(t){if(!r(t))return!1;var e=t[p];return void 0!==e?!!e:n(t)};return t({target:"Array",proto:!0,arity:1,forced:!d||!l("concat")},{concat:function(t){var e,n,r,l,f,h=i(this),p=c(h,0),d=0;for(e=-1,r=arguments.length;e<r;e++)if(v(f=-1===e?h:arguments[e]))for(l=o(f),a(d+l),n=0;n<l;n++,d++)n in f&&s(p,d,f[n]);else a(d+1),s(p,d++,f);return u(p,d),p}}),b}var Bn,Mn,Ln={},zn={};function Hn(){if(Mn)return Bn;Mn=1;var t=Dn(),e=String;return Bn=function(n){if("Symbol"===t(n))throw new TypeError("Cannot convert a Symbol value to a string");return e(n)}}var Wn,Un,Vn,qn,Yn,Xn,Gn,Jn,Qn,$n,Kn,Zn,tr,er,nr,rr,ir,or,ar,sr={};function ur(){if(Un)return Wn;Un=1;var t=En(),e=Math.max,n=Math.min;return Wn=function(r,i){var o=t(r);return o<0?e(o+i,0):n(o,i)}}function cr(){if(qn)return Vn;qn=1;var t=kt(),e=ur(),n=Tn(),r=function(r){return function(i,o,a){var s=t(i),u=n(s);if(0===u)return!r&&-1;var c,l=e(a,u);if(r&&o!=o){for(;u>l;)if((c=s[l++])!=c)return!0}else for(;u>l;l++)if((r||l in s)&&s[l]===o)return r||l||0;return!r&&-1}};return Vn={includes:r(!0),indexOf:r(!1)}}function lr(){return Xn?Yn:(Xn=1,Yn={})}function fr(){if(Jn)return Gn;Jn=1;var t=k(),e=ye(),n=kt(),r=cr().indexOf,i=lr(),o=t([].push);return Gn=function(t,a){var s,u=n(t),c=0,l=[];for(s in u)!e(i,s)&&e(u,s)&&o(l,s);for(;a.length>c;)e(u,s=a[c++])&&(~r(l,s)||o(l,s));return l}}function hr(){return $n?Qn:($n=1,Qn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function pr(){if(Zn)return Kn;Zn=1;var t=fr(),e=hr();return Kn=Object.keys||function(n){return t(n,e)}}function dr(){if(tr)return sr;tr=1;var t=j(),e=gn(),n=yn(),r=mn(),i=kt(),o=pr();return sr.f=t&&!e?Object.defineProperties:function(t,e){r(t);for(var a,s=i(e),u=o(e),c=u.length,l=0;c>l;)n.f(t,a=u[l++],s[a]);return t},sr}function vr(){return nr?er:(nr=1,er=Ft()("document","documentElement"))}function gr(){if(ir)return rr;ir=1;var t=ge(),e=be(),n=t("keys");return rr=function(t){return n[t]||(n[t]=e(t))}}function mr(){if(ar)return or;ar=1;var t,e=mn(),n=dr(),r=hr(),i=lr(),o=vr(),a=Ee(),s="prototype",u="script",c=gr()("IE_PROTO"),l=function(){},f=function(t){return"<"+u+">"+t+"</"+u+">"},h=function(t){t.write(f("")),t.close();var e=t.parentWindow.Object;return t=null,e},p=function(){try{t=new ActiveXObject("htmlfile")}catch(t){}var e,n,i;p="undefined"!=typeof document?document.domain&&t?h(t):(n=a("iframe"),i="java"+u+":",n.style.display="none",o.appendChild(n),n.src=String(i),(e=n.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):h(t);for(var c=r.length;c--;)delete p[s][r[c]];return p()};return i[c]=!0,or=Object.create||function(t,r){var i;return null!==t?(l[s]=e(t),i=new l,l[s]=null,i[c]=t):i=p(),void 0===r?i:n.f(i,r)}}var yr,br={};function wr(){if(yr)return br;yr=1;var t=fr(),e=hr().concat("length","prototype");return br.f=Object.getOwnPropertyNames||function(n){return t(n,e)},br}var Cr,Or,Er,kr={};function Tr(){return Or?Cr:(Or=1,Cr=k()([].slice))}function Sr(){if(Er)return kr;Er=1;var t=T(),e=kt(),n=wr().f,r=Tr(),i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return kr.f=function(o){return i&&"Window"===t(o)?function(t){try{return n(t)}catch(t){return r(i)}}(o):n(e(o))},kr}var Fr,_r,Ar,Dr,Pr,xr={};function jr(){return Fr||(Fr=1,xr.f=Object.getOwnPropertySymbols),xr}function Nr(){if(Ar)return _r;Ar=1;var t=bn();return _r=function(e,n,r,i){return i&&i.enumerable?e[n]=r:t(e,n,r),e}}function Rr(){if(Pr)return Dr;Pr=1;var t=yn();return Dr=function(e,n,r){return t.f(e,n,r)}}var Ir,Br,Mr,Lr,zr,Hr,Wr,Ur,Vr,qr,Yr,Xr,Gr,Jr,Qr,$r,Kr={};function Zr(){if(Ir)return Kr;Ir=1;var t=we();return Kr.f=t,Kr}function ti(){if(Mr)return Br;Mr=1;var t=St(),e=ye(),n=Zr(),r=yn().f;return Br=function(i){var o=t.Symbol||(t.Symbol={});e(o,i)||r(o,i,{value:n.f(i)})}}function ei(){if(zr)return Lr;zr=1;var t=N(),e=Ft(),n=we(),r=Nr();return Lr=function(){var i=e("Symbol"),o=i&&i.prototype,a=o&&o.valueOf,s=n("toPrimitive");o&&!o[s]&&r(o,s,function(e){return t(a,this)},{arity:1})}}function ni(){if(Wr)return Hr;Wr=1;var t=An(),e=Dn();return Hr=t?{}.toString:function(){return"[object "+e(this)+"]"}}function ri(){if(Vr)return Ur;Vr=1;var t=An(),e=yn().f,n=bn(),r=ye(),i=ni(),o=we()("toStringTag");return Ur=function(a,s,u,c){var l=u?a:a&&a.prototype;l&&(r(l,o)||e(l,o,{configurable:!0,value:s}),c&&!t&&n(l,"toString",i))}}function ii(){if(Yr)return qr;Yr=1;var t=w(),e=F(),n=t.WeakMap;return qr=e(n)&&/native code/.test(String(n))}function oi(){if(Gr)return Xr;Gr=1;var t,e,n,r=ii(),i=w(),o=Tt(),a=bn(),s=ye(),u=ve(),c=gr(),l=lr(),f="Object already initialized",h=i.TypeError,p=i.WeakMap;if(r||u.state){var d=u.state||(u.state=new p);d.get=d.get,d.has=d.has,d.set=d.set,t=function(t,e){if(d.has(t))throw new h(f);return e.facade=t,d.set(t,e),e},e=function(t){return d.get(t)||{}},n=function(t){return d.has(t)}}else{var v=c("state");l[v]=!0,t=function(t,e){if(s(t,v))throw new h(f);return e.facade=t,a(t,v,e),e},e=function(t){return s(t,v)?t[v]:{}},n=function(t){return s(t,v)}}return Xr={set:t,get:e,has:n,enforce:function(r){return n(r)?e(r):t(r,{})},getterFor:function(t){return function(n){var r;if(!o(n)||(r=e(n)).type!==t)throw new h("Incompatible receiver, "+t+" required");return r}}}}function ai(){if(Qr)return Jr;Qr=1;var t=Fe(),e=Ct(),n=me(),r=Tn(),i=Nn(),o=Fn(),a=function(a){var s=1===a,u=2===a,c=3===a,l=4===a,f=6===a,h=7===a,p=5===a||f;return function(d,v,g){for(var m,y,b=n(d),w=e(b),C=r(w),O=t(v,g),E=0,k=0,T=s?i(d,C):u||h?i(d,0):void 0;C>E;E++)if((p||E in w)&&(y=O(m=w[E],E,b),a))if(s)o(T,E,y);else if(y)switch(a){case 3:return!0;case 5:return m;case 6:return E;case 2:o(T,k++,m)}else switch(a){case 4:return!1;case 7:o(T,k++,m)}return f?-1:c||l?l:T}};return Jr={forEach:a(0),map:a(1),filter:a(2),some:a(3),every:a(4),find:a(5),findIndex:a(6),filterReject:a(7)}}var si,ui,ci,li={};function fi(){return ui?si:(ui=1,si=Pt()&&!!Symbol.for&&!!Symbol.keyFor)}var hi,pi={};var di,vi,gi,mi,yi,bi,wi,Ci,Oi,Ei={};function ki(){if(vi)return di;vi=1;var t=Tt(),e=oi().get;return di=function(n){if(!t(n))return!1;var r=e(n);return!!r&&"RawJSON"===r.type}}function Ti(){return mi?gi:(mi=1,gi=k()(1.1.valueOf))}function Si(){if(bi)return yi;bi=1;var t=k(),e=ye(),n=SyntaxError,r=parseInt,i=String.fromCharCode,o=t("".charAt),a=t("".slice),s=t(/./.exec),u={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},c=/^[\da-f]{4}$/i,l=/^[\u0000-\u001F]$/;return yi=function(t,f){for(var h=!0,p="";f<t.length;){var d=o(t,f);if("\\"===d){var v=a(t,f,f+2);if(e(u,v))p+=u[v],f+=2;else{if("\\u"!==v)throw new n('Unknown escape sequence: "'+v+'"');var g=a(t,f+=2,f+4);if(!s(c,g))throw new n("Bad Unicode escape at: "+f);p+=i(r(g,16)),f+=4}}else{if('"'===d){h=!1,f++;break}if(s(l,d))throw new n("Bad control character in string literal at: "+f);p+=d,f++}}if(h)throw new n("Unterminated string at: "+f);return{value:p,end:f}}}function Fi(){return Ci?wi:(Ci=1,wi=!C()(function(){var t="9007199254740993",e=JSON.rawJSON(t);return!JSON.isRawJSON(e)||JSON.stringify(e)!==t}))}function _i(){if(Oi)return Ei;Oi=1;var t=wn(),e=Ft(),n=N(),r=k(),i=C(),o=Cn(),a=F(),s=Tt(),u=mr(),c=ki(),l=jt(),f=T(),h=Ti(),p=cr().includes,d=ye(),v=Hn(),g=Si(),m=be(),y=Pt(),b=Fi(),w=String,O=TypeError,E=e("JSON","stringify"),S=e("BigInt"),_=r("".valueOf),A=r((!0).valueOf),D=S&&r(S.prototype.valueOf),P=r(/./.exec),x=r("".charAt),j=r("".charCodeAt),R=r("".replace),I=r("".slice),B=r([].push),M=r([].pop),L=r(1.1.toString),z=/[\uD800-\uDFFF]/g,H=/^[\uD800-\uDBFF]$/,W=/^[\uDC00-\uDFFF]$/,U=/^\d+$/,V=m(),q=m(),Y=m(),X=V.length,G=q.length,J=!y||i(function(){var t=e("Symbol")("stringify detection");return"[null]"!==E([t])||"{}"!==E({a:t})||"{}"!==E(Object(t))}),Q=i(function(){return'"\\udf06\\ud834"'!==E("\udf06\ud834")||'"\\udead"'!==E("\udead")}),$=b?e("JSON","isRawJSON"):c,K=J?function(t,e,r){return E(t,function(t,r){var i=n(e,this,t,r);if(!l(i))return i},r)}:E,Z=function(t,e,n){var r=x(n,e-1),i=x(n,e+1);return P(H,t)&&!P(W,i)||P(W,t)&&!P(H,r)?"\\u"+L(j(t,0),16):t},tt=function(t,e){try{return t(e),!0}catch(t){return!1}},et=function(t){if(!s(t)||a(t)||o(t))return!1;try{return!function(t){var e=f(t);return"Number"===e&&tt(h,t)||"String"===e&&tt(_,t)||"Boolean"===e&&tt(A,t)||!!D&&"BigInt"===e&&tt(D,t)}(t)}catch(t){return!0}},nt=function(t,e){return{toJSON:function(){var r=t[e];if(s(r)||"bigint"==typeof r){var i=r.toJSON;a(i)&&(r=n(i,r,e))}return r}}};return E&&t({target:"JSON",stat:!0,arity:3,forced:J||Q||!b},{stringify:function(t,e,r){var i,s=a(e)?e:void 0,c=s?void 0:function(t){if(o(t)){for(var e=t.length,n=[],r=u(null),i=0;i<e;i++){var a,s=t[i];if("string"==typeof s)a=s;else{if("number"!=typeof s&&"Number"!==f(s)&&"String"!==f(s))continue;a=v(s)}d(r,a)||(r[a]=!0,B(n,a))}return n}}(e),l=c&&function(t){for(var e=0,n=t.length;e<n;e++)if(P(U,t[e]))return q;return""}(c),h=[],m=[],y=[],C=!1,E=!0,k=K(t,function(t,e){if(t=w(t),c){if(t===Y)return M(m),void(i=M(y));if(E)E=!1;else if(this!==i&&!o(this)&&!p(c,t))return}else s&&(e=n(s,this,t,e));if($(e))return b?e:(C=!0,V+(B(h,e.rawJSON)-1));if(c&&et(e)){if(p(m,e))throw new O("Converting circular structure to JSON");var r=function(t,e,n){for(var r=u(null),i=0,o=e.length;i<o;i++){var a=e[i];r[n+a]=nt(t,a)}return r[Y]=null,r}(e,c,l);return B(m,e),B(y,i),i=r,l&&(C=!0),r}return e},r);if("string"!=typeof k)return k;if(Q&&(k=R(k,z,Z)),!C)return k;for(var T="",S=k.length,F=0;F<S;F++){var _=x(k,F);if('"'===_){var A=g(k,++F).end-1,D=I(k,F,A);I(D,0,X)===V?T+=h[I(D,X)]:I(D,0,G)===q?T+='"'+I(D,G)+'"':T+='"'+D+'"',F=A}else T+=_}return T}}),Ei}var Ai,Di,Pi={};function xi(){return Di||(Di=1,function(){if($r)return zn;$r=1;var t=wn(),e=w(),n=N(),r=k(),i=pe(),o=j(),a=Pt(),s=C(),u=ye(),c=_t(),l=mn(),f=kt(),h=Oe(),p=Hn(),d=wt(),v=mr(),g=pr(),m=wr(),y=Sr(),b=jr(),O=Te(),E=yn(),T=dr(),S=bt(),F=Nr(),_=Rr(),A=ge(),D=gr(),P=lr(),x=be(),R=we(),I=Zr(),B=ti(),M=ei(),L=ri(),z=oi(),H=ai().forEach,W=D("hidden"),U="Symbol",V="prototype",q=z.set,Y=z.getterFor(U),X=Object[V],G=e.Symbol,J=G&&G[V],Q=e.RangeError,$=e.TypeError,K=e.QObject,Z=O.f,tt=E.f,et=y.f,nt=S.f,rt=r([].push),it=A("symbols"),ot=A("op-symbols"),at=A("wks"),st=!K||!K[V]||!K[V].findChild,ut=function(t,e,n){var r=Z(X,e);return r&&delete X[e],tt(t,e,n),r&&t!==X&&tt(X,e,r),t},ct=o&&s(function(){return 7!==v(tt({},"a",{get:function(){return tt(this,"a",{value:7}).a}})).a})?ut:tt,lt=function(t,e){var n=it[t]=v(J);return q(n,{type:U,tag:t,description:e}),o||(n.description=e),n},ft=function(t,e,n){t===X&&ft(ot,e,n),l(t);var r=h(e);return l(n),u(it,r)?(("enumerable"in n?!n.enumerable:!u(t,r)||u(t,W)&&t[W][r])?(u(t,W)||tt(t,W,d(1,v(null))),t[W][r]=!0):(u(t,W)&&t[W][r]&&(t[W][r]=!1),n=v(n,{enumerable:d(0,!1)})),ct(t,r,n)):tt(t,r,n)},ht=function(t,e){l(t);var r=f(e),i=g(r).concat(gt(r));return H(i,function(e){o&&!n(pt,r,e)||ft(t,e,r[e])}),t},pt=function(t){var e=h(t),r=n(nt,this,e);return!(this===X&&u(it,e)&&!u(ot,e))&&(!(r||!u(this,e)||!u(it,e)||u(this,W)&&this[W][e])||r)},dt=function(t,e){var n=f(t),r=h(e);if(n!==X||!u(it,r)||u(ot,r)){var i=Z(n,r);return!i||!u(it,r)||u(n,W)&&n[W][r]||(i.enumerable=!0),i}},vt=function(t){var e=et(f(t)),n=[];return H(e,function(t){u(it,t)||u(P,t)||rt(n,t)}),n},gt=function(t){var e=t===X,n=et(e?ot:f(t)),r=[];return H(n,function(t){!u(it,t)||e&&!u(X,t)||rt(r,it[t])}),r};a||(G=function(){if(c(J,this))throw new $("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?p(arguments[0]):void 0,r=x(t),i=function(t){var o=void 0===this?e:this;o===X&&n(i,ot,t),u(o,W)&&u(o[W],r)&&(o[W][r]=!1);var a=d(1,t);try{ct(o,r,a)}catch(t){if(!(t instanceof Q))throw t;ut(o,r,a)}};return o&&st&&ct(X,r,{configurable:!0,set:i}),lt(r,t)},F(J=G[V],"toString",function(){return Y(this).tag}),F(G,"withoutSetter",function(t){return lt(x(t),t)}),S.f=pt,E.f=ft,T.f=ht,O.f=dt,m.f=y.f=vt,b.f=gt,I.f=function(t){return lt(R(t),t)},o&&(_(J,"description",{configurable:!0,get:function(){return Y(this).description}}),i||F(X,"propertyIsEnumerable",pt,{unsafe:!0}))),t({global:!0,constructor:!0,wrap:!0,forced:!a,sham:!a},{Symbol:G}),H(g(at),function(t){B(t)}),t({target:U,stat:!0,forced:!a},{useSetter:function(){st=!0},useSimple:function(){st=!1}}),t({target:"Object",stat:!0,forced:!a,sham:!o},{create:function(t,e){return void 0===e?v(t):ht(v(t),e)},defineProperty:ft,defineProperties:ht,getOwnPropertyDescriptor:dt}),t({target:"Object",stat:!0,forced:!a},{getOwnPropertyNames:vt}),M(),L(G,U),P[W]=!0}(),function(){if(ci)return li;ci=1;var t=wn(),e=Ft(),n=ye(),r=Hn(),i=ge(),o=fi(),a=i("string-to-symbol-registry"),s=i("symbol-to-string-registry");t({target:"Symbol",stat:!0,forced:!o},{for:function(t){var i=r(t);if(n(a,i))return a[i];var o=e("Symbol")(i);return a[i]=o,s[o]=i,o}})}(),function(){if(hi)return pi;hi=1;var t=wn(),e=ye(),n=jt(),r=Nt(),i=ge(),o=fi(),a=i("symbol-to-string-registry");t({target:"Symbol",stat:!0,forced:!o},{keyFor:function(t){if(!n(t))throw new TypeError(r(t)+" is not a symbol");if(e(a,t))return a[t]}})}(),_i(),function(){if(Ai)return Pi;Ai=1;var t=wn(),e=Pt(),n=C(),r=jr(),i=me();t({target:"Object",stat:!0,forced:!e||n(function(){r.f(1)})},{getOwnPropertySymbols:function(t){var e=r.f;return e?e(i(t)):[]}})}()),Ln}var ji,Ni={};function Ri(){return ji||(ji=1,ti()("asyncDispose")),Ni}var Ii;var Bi,Mi={};function Li(){return Bi||(Bi=1,ti()("dispose")),Mi}var zi;var Hi;var Wi;var Ui;var Vi;var qi;var Yi;var Xi;var Gi;var Ji,Qi={};var $i,Ki={};var Zi;var to,eo,no,ro={};function io(){return no?eo:(no=1,In(),xi(),Ri(),Ii||(Ii=1,ti()("asyncIterator")),Li(),zi||(zi=1,ti()("hasInstance")),Hi||(Hi=1,ti()("isConcatSpreadable")),Wi||(Wi=1,ti()("iterator")),Ui||(Ui=1,ti()("match")),Vi||(Vi=1,ti()("matchAll")),qi||(qi=1,ti()("replace")),Yi||(Yi=1,ti()("search")),Xi||(Xi=1,ti()("species")),Gi||(Gi=1,ti()("split")),function(){if(Ji)return Qi;Ji=1;var t=ti(),e=ei();t("toPrimitive"),e()}(),function(){if($i)return Ki;$i=1;var t=Ft(),e=ti(),n=ri();e("toStringTag"),n(t("Symbol"),"Symbol")}(),Zi||(Zi=1,ti()("unscopables")),function(){if(to)return ro;to=1;var t=w();ri()(t.JSON,"JSON",!0)}(),eo=St().Symbol)}var oo,ao,so,uo,co,lo,fo,ho,po,vo,go,mo,yo,bo,wo,Co,Oo,Eo,ko,To,So,Fo,_o,Ao,Do,Po,xo,jo,No,Ro,Io,Bo,Mo,Lo,zo,Ho={};function Wo(){return ao?oo:(ao=1,oo=function(){})}function Uo(){return uo?so:(uo=1,so=Object.create?Object.create(null):{})}function Vo(){if(lo)return co;lo=1;var t=j(),e=ye(),n=Function.prototype,r=t&&Object.getOwnPropertyDescriptor,i=e(n,"name"),o=i&&"something"===function(){}.name,a=i&&(!t||t&&r(n,"name").configurable);return co={EXISTS:i,PROPER:o,CONFIGURABLE:a}}function qo(){return ho?fo:(ho=1,fo=!C()(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))}function Yo(){if(vo)return po;vo=1;var t=ye(),e=F(),n=me(),r=gr(),i=qo(),o=r("IE_PROTO"),a=Object,s=a.prototype;return po=i?a.getPrototypeOf:function(r){var i=n(r);if(t(i,o))return i[o];var u=i.constructor;return e(u)&&i instanceof u?u.prototype:i instanceof a?s:null}}function Xo(){if(mo)return go;mo=1;var t,e,n,r=C(),i=F(),o=Tt(),a=mr(),s=Yo(),u=Nr(),c=we(),l=pe(),f=c("iterator"),h=!1;return[].keys&&("next"in(n=[].keys())?(e=s(s(n)))!==Object.prototype&&(t=e):h=!0),!o(t)||r(function(){var e={};return t[f].call(e)!==e})?t={}:l&&(t=a(t)),i(t[f])||u(t,f,function(){return this}),go={IteratorPrototype:t,BUGGY_SAFARI_ITERATORS:h}}function Go(){if(bo)return yo;bo=1;var t=Xo().IteratorPrototype,e=mr(),n=wt(),r=ri(),i=Uo(),o=function(){return this};return yo=function(a,s,u,c){var l=s+" Iterator";return a.prototype=e(t,{next:n(+!c,u)}),r(a,l,!1,!0),i[l]=o,a}}function Jo(){if(Co)return wo;Co=1;var t=k(),e=Rt();return wo=function(n,r,i){try{return t(e(Object.getOwnPropertyDescriptor(n,r)[i]))}catch(t){}}}function Qo(){if(Eo)return Oo;Eo=1;var t=Tt();return Oo=function(e){return t(e)||null===e}}function $o(){if(To)return ko;To=1;var t=Qo(),e=String,n=TypeError;return ko=function(r){if(t(r))return r;throw new n("Can't set "+e(r)+" as a prototype")}}function Ko(){if(Fo)return So;Fo=1;var t=Jo(),e=Tt(),n=Et(),r=$o();return So=Object.setPrototypeOf||("__proto__"in{}?function(){var i,o=!1,a={};try{(i=t(Object.prototype,"__proto__","set"))(a,[]),o=a instanceof Array}catch(t){}return function(t,a){return n(t),r(a),e(t)?(o?i(t,a):t.__proto__=a,t):t}}():void 0)}function Zo(){if(Ao)return _o;Ao=1;var t=wn(),e=N(),n=pe(),r=Vo(),i=F(),o=Go(),a=Yo(),s=Ko(),u=ri(),c=bn(),l=Nr(),f=we(),h=Uo(),p=Xo(),d=r.PROPER,v=r.CONFIGURABLE,g=p.IteratorPrototype,m=p.BUGGY_SAFARI_ITERATORS,y=f("iterator"),b="keys",w="values",C="entries",O=function(){return this};return _o=function(r,f,p,E,k,T,S){o(p,f,E);var F,_,A,D=function(t){if(t===k&&R)return R;if(!m&&t&&t in j)return j[t];switch(t){case b:case w:case C:return function(){return new p(this,t)}}return function(){return new p(this)}},P=f+" Iterator",x=!1,j=r.prototype,N=j[y]||j["@@iterator"]||k&&j[k],R=!m&&N||D(k),I="Array"===f&&j.entries||N;if(I&&(F=a(I.call(new r)))!==Object.prototype&&F.next&&(n||a(F)===g||(s?s(F,g):i(F[y])||l(F,y,O)),u(F,P,!0,!0),n&&(h[P]=O)),d&&k===w&&N&&N.name!==w&&(!n&&v?c(j,"name",w):(x=!0,R=function(){return e(N,this)})),k)if(_={values:D(w),keys:T?R:D(b),entries:D(C)},S)for(A in _)(m||x||!(A in j))&&l(j,A,_[A]);else t({target:f,proto:!0,forced:m||x},_);return n&&!S||j[y]===R||l(j,y,R,{name:k}),h[f]=R,_}}function ta(){return Po?Do:(Po=1,Do=function(t,e){return{value:t,done:e}})}function ea(){if(jo)return xo;jo=1;var t=kt(),e=Wo(),n=Uo(),r=oi(),i=yn().f,o=Zo(),a=ta(),s=pe(),u=j(),c="Array Iterator",l=r.set,f=r.getterFor(c);xo=o(Array,"Array",function(e,n){l(this,{type:c,target:t(e),index:0,kind:n})},function(){var t=f(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,a(void 0,!0);switch(t.kind){case"keys":return a(n,!1);case"values":return a(e[n],!1)}return a([n,e[n]],!1)},"values");var h=n.Arguments=n.Array;if(e("keys"),e("values"),e("entries"),!s&&u&&"values"!==h.name)try{i(h,"name",{value:"values"})}catch(t){}return xo}function na(){return Ro?No:(Ro=1,No={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})}function ra(){if(Io)return Ho;Io=1,ea();var t=na(),e=w(),n=ri(),r=Uo();for(var i in t)n(e[i],i),r[i]=r.Array;return Ho}function ia(){if(Mo)return Bo;Mo=1;var t=io();return ra(),Bo=t}var oa,aa,sa,ua,ca,la,fa,ha,pa,da,va,ga=n(zo?Lo:(zo=1,Lo=ia())),ma={};function ya(){if(sa)return aa;sa=1;var t=w(),e=St();return aa=function(n,r){var i=e[n+"Prototype"],o=i&&i[r];if(o)return o;var a=t[n],s=a&&a.prototype;return s&&s[r]}}function ba(){return ca?ua:(ca=1,function(){if(oa)return ma;oa=1;var t=wn(),e=Cn(),n=xn(),r=Tt(),i=ur(),o=Tn(),a=kt(),s=Fn(),u=_n(),c=we(),l=Rn(),f=Tr(),h=l("slice"),p=c("species"),d=Array,v=Math.max;t({target:"Array",proto:!0,forced:!h},{slice:function(t,c){var l,h,g,m=a(this),y=o(m),b=i(t,y),w=i(void 0===c?y:c,y);if(e(m)&&(l=m.constructor,(n(l)&&(l===d||e(l.prototype))||r(l)&&null===(l=l[p]))&&(l=void 0),l===d||void 0===l))return f(m,b,w);for(h=new(void 0===l?d:l)(v(w-b,0)),g=0;b<w;b++,g++)b in m&&s(h,g,m[b]);return u(h,g),h}})}(),ua=ya()("Array","slice"))}function wa(){if(fa)return la;fa=1;var t=_t(),e=ba(),n=Array.prototype;return la=function(r){var i=r.slice;return r===n||t(n,r)&&i===n.slice?e:i}}function Ca(){return pa?ha:(pa=1,ha=wa())}var Oa,Ea,ka,Ta,Sa,Fa,_a,Aa,Da,Pa=n(va?da:(va=1,da=Ca()));function xa(){if(Ea)return Oa;Ea=1;var t=Ft(),e=k(),n=wr(),r=jr(),i=mn(),o=e([].concat);return Oa=t("Reflect","ownKeys")||function(t){var e=n.f(i(t)),a=r.f;return a?o(e,a(t)):e},Oa}function ja(){return Sa?Ta:(Sa=1,ka||(ka=1,wn()({target:"Reflect",stat:!0},{ownKeys:xa()})),Ta=St().Reflect.ownKeys)}function Na(){return _a?Fa:(_a=1,Fa=ja())}var Ra,Ia,Ba,Ma,La,za,Ha,Wa=n(Da?Aa:(Da=1,Aa=Na()));function Ua(){return Ba?Ia:(Ba=1,Ra||(Ra=1,wn()({target:"Array",stat:!0},{isArray:Cn()})),Ia=St().Array.isArray)}function Va(){return La?Ma:(La=1,Ma=Ua())}var qa,Ya,Xa,Ga,Ja,Qa,$a,Ka,Za,ts=n(Ha?za:(Ha=1,za=Va())),es={};function ns(){return Xa?Ya:(Xa=1,function(){if(qa)return es;qa=1;var t=wn(),e=ai().map;t({target:"Array",proto:!0,forced:!Rn()("map")},{map:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}})}(),Ya=ya()("Array","map"))}function rs(){if(Ja)return Ga;Ja=1;var t=_t(),e=ns(),n=Array.prototype;return Ga=function(r){var i=r.map;return r===n||t(n,r)&&i===n.map?e:i}}function is(){return $a?Qa:($a=1,Qa=rs())}var os,as,ss,us,cs,ls,fs,hs=n(Za?Ka:(Za=1,Ka=is())),ps={};function ds(){return ss?as:(ss=1,function(){if(os)return ps;os=1;var t=wn(),e=me(),n=pr();t({target:"Object",stat:!0,forced:C()(function(){n(1)})},{keys:function(t){return n(e(t))}})}(),as=St().Object.keys)}function vs(){return cs?us:(cs=1,us=ds())}var gs=n(fs?ls:(fs=1,ls=vs()));const ms=ga("DELETE");function ys(){const t=bs(...arguments);return Cs(t),t}function bs(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(e.length<2)return e[0];if(e.length>2)return bs(ys(e[0],e[1]),...Pa(e).call(e,2));const r=e[0],i=e[1];if(r instanceof Date&&i instanceof Date)return r.setTime(i.getTime()),r;for(const t of Wa(i))Object.prototype.propertyIsEnumerable.call(i,t)&&(i[t]===ms?delete r[t]:null===r[t]||null===i[t]||"object"!=typeof r[t]||"object"!=typeof i[t]||ts(r[t])||ts(i[t])?r[t]=ws(i[t]):r[t]=bs(r[t],i[t]));return r}function ws(t){return ts(t)?hs(t).call(t,t=>ws(t)):"object"==typeof t&&null!==t?t instanceof Date?new Date(t.getTime()):bs({},t):t}function Cs(t){for(const e of gs(t))t[e]===ms?delete t[e]:"object"==typeof t[e]&&null!==t[e]&&Cs(t[e])}var Os,Es,ks,Ts,Ss,Fs;function _s(){return Es?Os:(Es=1,Os=Va())}function As(){return Ts?ks:(Ts=1,ks=_s())}function Ds(){return Fs?Ss:(Fs=1,Ss=As())}var Ps=n(Ds());var xs,js={};var Ns;var Rs;var Is,Bs,Ms;function Ls(){if(Ms)return Bs;Ms=1;var t=ia();return function(){if(xs)return js;xs=1;var t=we(),e=yn().f,n=t("metadata"),r=Function.prototype;void 0===r[n]&&e(r,n,{value:null})}(),Ns||(Ns=1,Ri()),Rs||(Rs=1,Li()),Is||(Is=1,ti()("metadata")),Bs=t}var zs,Hs,Ws;function Us(){if(Hs)return zs;Hs=1;var t=Ft(),e=k(),n=t("Symbol"),r=n.keyFor,i=e(n.prototype.valueOf);return zs=n.isRegisteredSymbol||function(t){try{return void 0!==r(i(t))}catch(t){return!1}}}var Vs,qs,Ys;function Xs(){if(qs)return Vs;qs=1;for(var t=ge(),e=Ft(),n=k(),r=jt(),i=we(),o=e("Symbol"),a=o.isWellKnownSymbol,s=e("Object","getOwnPropertyNames"),u=n(o.prototype.valueOf),c=t("wks"),l=0,f=s(o),h=f.length;l<h;l++)try{var p=f[l];r(o[p])&&i(p)}catch(t){}return Vs=function(t){if(a&&a(t))return!0;try{for(var e=u(t),n=0,r=s(c),i=r.length;n<i;n++)if(c[r[n]]==e)return!0}catch(t){}return!1},Vs}var Gs;var Js;var Qs;var $s;var Ks;var Zs;var tu;var eu,nu,ru,iu,ou;function au(){if(ru)return nu;ru=1;var t=Ls();return Ws||(Ws=1,wn()({target:"Symbol",stat:!0},{isRegisteredSymbol:Us()})),Ys||(Ys=1,wn()({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:Xs()})),Gs||(Gs=1,ti()("customMatcher")),Js||(Js=1,ti()("observable")),Qs||(Qs=1,wn()({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:Us()})),$s||($s=1,wn()({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:Xs()})),Ks||(Ks=1,ti()("matcher")),Zs||(Zs=1,ti()("metadataKey")),tu||(tu=1,ti()("patternMatch")),eu||(eu=1,ti()("replaceAll")),nu=t}function su(){return ou?iu:(ou=1,iu=au())}var uu,cu,lu,fu,hu,pu,du,vu,gu,mu,yu,bu,wu,Cu,Ou,Eu,ku,Tu=n(su()),Su={};function Fu(){if(cu)return uu;cu=1;var t=k(),e=En(),n=Hn(),r=Et(),i=t("".charAt),o=t("".charCodeAt),a=t("".slice),s=function(t){return function(s,u){var c,l,f=n(r(s)),h=e(u),p=f.length;return h<0||h>=p?t?"":void 0:(c=o(f,h))<55296||c>56319||h+1===p||(l=o(f,h+1))<56320||l>57343?t?i(f,h):c:t?a(f,h,h+2):l-56320+(c-55296<<10)+65536}};return uu={codeAt:s(!1),charAt:s(!0)}}function _u(){if(lu)return Su;lu=1;var t=Fu().charAt,e=Hn(),n=oi(),r=Zo(),i=ta(),o="String Iterator",a=n.set,s=n.getterFor(o);return r(String,"String",function(t){a(this,{type:o,string:e(t),index:0})},function(){var e,n=s(this),r=n.string,o=n.index;return o>=r.length?i(void 0,!0):(e=t(r,o),n.index+=e.length,i(e,!1))}),Su}function Au(){if(hu)return fu;hu=1;var t=Dn(),e=ye(),n=Uo();return fu=function(r){var i=t(r);return"Arguments"===i&&(i="Array"),e(n,i)?n[i]:void 0}}function Du(){if(du)return pu;du=1;var t=Au(),e=we()("iterator");return pu=function(n){return n[e]||n["@@iterator"]||t(n)}}function Pu(){return gu?vu:(gu=1,ea(),_u(),vu=Du())}function xu(){if(yu)return mu;yu=1;var t=Pu();return ra(),mu=t}function ju(){return wu?bu:(wu=1,bu=xu())}function Nu(){return Ou?Cu:(Ou=1,Cu=ju())}function Ru(){return ku?Eu:(ku=1,Eu=Nu())}var Iu,Bu,Mu,Lu,zu,Hu,Wu,Uu,Vu,qu,Yu,Xu,Gu,Ju=n(Ru()),Qu={};function $u(){return Mu?Bu:(Mu=1,function(){if(Iu)return Qu;Iu=1;var t=wn(),e=me(),n=Tn(),r=_n(),i=Sn();t({target:"Array",proto:!0,arity:1,forced:C()(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var o=e(this),a=n(o),s=arguments.length;i(a+s);for(var u=0;u<s;u++)o[a]=arguments[u],a++;return r(o,a),a}})}(),Bu=ya()("Array","push"))}function Ku(){if(zu)return Lu;zu=1;var t=_t(),e=$u(),n=Array.prototype;return Lu=function(r){var i=r.push;return r===n||t(n,r)&&i===n.push?e:i}}function Zu(){return Wu?Hu:(Wu=1,Hu=Ku())}function tc(){return Vu?Uu:(Vu=1,Uu=Zu())}function ec(){return Yu?qu:(Yu=1,qu=tc())}function nc(){return Gu?Xu:(Gu=1,Xu=ec())}var rc,ic,oc,ac,sc,uc,cc=n(nc());function lc(){return ic?rc:(ic=1,rc=Ca())}function fc(){return ac?oc:(ac=1,oc=lc())}function hc(){return uc?sc:(uc=1,sc=fc())}var pc,dc,vc,gc,mc,yc,bc,wc,Cc,Oc,Ec,kc,Tc,Sc,Fc,_c,Ac,Dc,Pc,xc,jc,Nc,Rc,Ic,Bc,Mc=n(hc()),Lc={};function zc(){if(dc)return pc;dc=1;var t=N(),e=mn(),n=It();return pc=function(r,i,o){var a,s;e(r);try{if(!(a=n(r,"return"))){if("throw"===i)throw o;return o}a=t(a,r)}catch(t){s=!0,a=t}if("throw"===i)throw o;if(s)throw a;return e(a),o}}function Hc(){if(gc)return vc;gc=1;var t=mn(),e=zc();return vc=function(n,r,i,o){try{return o?r(t(i)[0],i[1]):r(i)}catch(t){e(n,"throw",t)}}}function Wc(){if(yc)return mc;yc=1;var t=we(),e=Uo(),n=t("iterator"),r=Array.prototype;return mc=function(t){return void 0!==t&&(e.Array===t||r[n]===t)}}function Uc(){if(wc)return bc;wc=1;var t=It(),e=Ot(),n=Au(),r=we()("iterator");return bc=function(i){if(!e(i))return t(i,r)||t(i,"@@iterator")||n(i)}}function Vc(){if(Oc)return Cc;Oc=1;var t=N(),e=F(),n=mn(),r=Nt(),i=Uc(),o=TypeError;return Cc=function(a,s){var u=arguments.length<2?i(a):s;if(e(u))return n(t(u,a));throw new o(r(a)+" is not iterable")},Cc}function qc(){if(kc)return Ec;kc=1;var t=Fe(),e=N(),n=me(),r=Hc(),i=Wc(),o=xn(),a=Tn(),s=Fn(),u=_n(),c=Vc(),l=Uc(),f=zc(),h=Sn(),p=Array;return Ec=function(d){var v=o(this),g=arguments.length,m=g>1?arguments[1]:void 0,y=void 0!==m;y&&(m=t(m,g>2?arguments[2]:void 0));var b,w,C,O,E,k,T=n(d),S=l(T),F=0;if(!S||this===p&&i(S))for(b=a(T),w=v?new this(b):p(b);b>F;F++)k=y?m(T[F],F):T[F],s(w,F,k);else for(w=v?new this:[],E=(O=c(T,S)).next;!(C=e(E,O)).done;F++){try{h(F)}catch(t){f(O,"throw",t)}k=y?r(O,m,[C.value,F],!0):C.value;try{s(w,F,k)}catch(t){f(O,"throw",t)}}return u(w,F),w},Ec}function Yc(){if(Sc)return Tc;Sc=1;var t=we()("iterator"),e=!1;try{var n=0,r={next:function(){return{done:!!n++}},return:function(){e=!0}};r[t]=function(){return this},Array.from(r,function(){throw 2})}catch(t){}return Tc=function(n,r){try{if(!r&&!e)return!1}catch(t){return!1}var i=!1;try{var o={};o[t]=function(){return{next:function(){return{done:i=!0}}}},n(o)}catch(t){}return i}}function Xc(){return Ac?_c:(Ac=1,_u(),function(){if(Fc)return Lc;Fc=1;var t=wn(),e=qc();t({target:"Array",stat:!0,forced:!Yc()(function(t){Array.from(t)})},{from:e})}(),_c=St().Array.from)}function Gc(){return Pc?Dc:(Pc=1,Dc=Xc())}function Jc(){return jc?xc:(jc=1,xc=Gc())}function Qc(){return Rc?Nc:(Rc=1,Nc=Jc())}function $c(){return Bc?Ic:(Bc=1,Ic=Qc())}var Kc=n($c());function Zc(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function tl(t,e){return function(t){if(Ps(t))return t}(t)||function(t,e){var n=null==t?null:void 0!==Tu&&Ju(t)||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(cc(s).call(s,r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(t){var n;if("string"==typeof t)return Zc(t,e);var r=Mc(n={}.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Kc(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Zc(t,e):void 0}}(t,e)||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 el,nl,rl,il,ol,al,sl,ul={};function cl(){return rl?nl:(rl=1,function(){if(el)return ul;el=1;var t=wn(),e=Date,n=k()(e.prototype.getTime);t({target:"Date",stat:!0},{now:function(){return n(new e)}})}(),nl=St().Date.now)}function ll(){return ol?il:(ol=1,il=cl())}var fl=n(sl?al:(sl=1,al=ll()));var hl,pl,dl,vl,gl,ml,yl,bl,wl,Cl,Ol,El={};function kl(){if(pl)return hl;pl=1;var t=k(),e=Rt(),n=Tt(),r=ye(),i=Tr(),o=O(),a=Function,s=t([].concat),u=t([].join),c={};return hl=o?a.bind:function(t){var o=e(this),l=o.prototype,f=i(arguments,1),h=function(){var e=s(f,i(arguments));return this instanceof h?function(t,e,n){if(!r(c,e)){for(var i=[],o=0;o<e;o++)i[o]="a["+o+"]";c[e]=a("C,a","return new C("+u(i,",")+")")}return c[e](t,n)}(o,e.length,e):o.apply(t,e)};return n(l)&&(h.prototype=l),h},hl}function Tl(){return gl?vl:(gl=1,function(){if(dl)return El;dl=1;var t=wn(),e=kl();t({target:"Function",proto:!0,forced:Function.bind!==e},{bind:e})}(),vl=ya()("Function","bind"))}function Sl(){if(yl)return ml;yl=1;var t=_t(),e=Tl(),n=Function.prototype;return ml=function(r){var i=r.bind;return r===n||t(n,r)&&i===n.bind?e:i}}function Fl(){return wl?bl:(wl=1,bl=Sl())}var _l,Al,Dl,Pl,xl,jl,Nl,Rl,Il,Bl,Ml,Ll,zl,Hl=n(Ol?Cl:(Ol=1,Cl=Fl())),Wl={};function Ul(){if(Al)return _l;Al=1;var t=C();return _l=function(e,n){var r=[][e];return!!r&&t(function(){r.call(null,n||function(){return 1},1)})}}function Vl(){if(Pl)return Dl;Pl=1;var t=ai().forEach,e=Ul()("forEach");return Dl=e?[].forEach:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)},Dl}function ql(){return Nl?jl:(Nl=1,function(){if(xl)return Wl;xl=1;var t=wn(),e=Vl();t({target:"Array",proto:!0,forced:[].forEach!==e},{forEach:e})}(),jl=ya()("Array","forEach"))}function Yl(){return Il?Rl:(Il=1,Rl=ql())}function Xl(){if(Ml)return Bl;Ml=1;var t=Dn(),e=ye(),n=_t(),r=Yl(),i=Array.prototype,o={DOMTokenList:!0,NodeList:!0};return Bl=function(a){var s=a.forEach;return a===i||n(i,a)&&s===i.forEach||e(o,t(a))?r:s}}var Gl,Jl,Ql,$l,Kl,Zl,tf,ef,nf,rf,of,af=n(zl?Ll:(zl=1,Ll=Xl())),sf={};function uf(){if(Jl)return Gl;Jl=1;var t=Nt(),e=TypeError;return Gl=function(n,r){if(!delete n[r])throw new e("Cannot delete property "+t(r)+" of "+t(n))}}function cf(){return Kl?$l:(Kl=1,function(){if(Ql)return sf;Ql=1;var t=wn(),e=me(),n=ur(),r=En(),i=Tn(),o=_n(),a=Sn(),s=Nn(),u=Fn(),c=uf(),l=Rn()("splice"),f=Math.max,h=Math.min;t({target:"Array",proto:!0,forced:!l},{splice:function(t,l){var p,d,v,g,m,y,b=e(this),w=i(b),C=n(t,w),O=arguments.length;for(0===O?p=d=0:1===O?(p=0,d=w-C):(p=O-2,d=h(f(r(l),0),w-C)),a(w+p-d),v=s(b,d),g=0;g<d;g++)(m=C+g)in b&&u(v,g,b[m]);if(o(v,d),p<d){for(g=C;g<w-d;g++)y=g+p,(m=g+d)in b?b[y]=b[m]:c(b,y);for(g=w;g>w-d+p;g--)c(b,g-1)}else if(p>d)for(g=w-d;g>C;g--)y=g+p-1,(m=g+d-1)in b?b[y]=b[m]:c(b,y);for(g=0;g<p;g++)b[g+C]=arguments[g+2];return o(b,w-d+p),v}})}(),$l=ya()("Array","splice"))}function lf(){if(tf)return Zl;tf=1;var t=_t(),e=cf(),n=Array.prototype;return Zl=function(r){var i=r.splice;return r===n||t(n,r)&&i===n.splice?e:i}}function ff(){return nf?ef:(nf=1,ef=lf())}var hf,pf=n(of?rf:(of=1,rf=ff())),df={exports:{}};function vf(){return hf||(hf=1,function(t){function e(t){if(t)return function(t){return Object.assign(t,e.prototype),t._callbacks=new Map,t}(t);this._callbacks=new Map}e.prototype.on=function(t,e){const n=this._callbacks.get(t)??[];return n.push(e),this._callbacks.set(t,n),this},e.prototype.once=function(t,e){const n=(...r)=>{this.off(t,n),e.apply(this,r)};return n.fn=e,this.on(t,n),this},e.prototype.off=function(t,e){if(void 0===t&&void 0===e)return this._callbacks.clear(),this;if(void 0===e)return this._callbacks.delete(t),this;const n=this._callbacks.get(t);if(n){for(const[t,r]of n.entries())if(r===e||r.fn===e){n.splice(t,1);break}0===n.length?this._callbacks.delete(t):this._callbacks.set(t,n)}return this},e.prototype.emit=function(t,...e){const n=this._callbacks.get(t);if(n){const t=[...n];for(const n of t)n.apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks.get(t)??[]},e.prototype.listenerCount=function(t){if(t)return this.listeners(t).length;let e=0;for(const t of this._callbacks.values())e+=t.length;return e},e.prototype.hasListeners=function(t){return this.listenerCount(t)>0},e.prototype.addEventListener=e.prototype.on,e.prototype.removeListener=e.prototype.off,e.prototype.removeEventListener=e.prototype.off,e.prototype.removeAllListeners=e.prototype.off,t.exports=e}(df)),df.exports}var gf,mf=n(vf());
|
|
27
27
|
/*! Hammer.JS - v2.0.17-rc - 2019-12-16
|
|
28
28
|
* http://naver.github.io/egjs
|
|
29
29
|
*
|
|
30
30
|
* Forked By Naver egjs
|
|
31
31
|
* Copyright (c) hammerjs
|
|
32
32
|
* Licensed under the MIT license */
|
|
33
|
-
function cf(){return cf=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},cf.apply(this,arguments)}function lf(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function ff(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}sf="function"!=typeof Object.assign?function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i])}return e}:Object.assign;var hf,pf=sf,df=["","webkit","Moz","MS","ms","o"],vf="undefined"==typeof document?{style:{}}:document.createElement("div"),gf=Math.round,mf=Math.abs,yf=Date.now;function bf(t,e){for(var n,r,i=e[0].toUpperCase()+e.slice(1),o=0;o<df.length;){if((r=(n=df[o])?n+i:e)in t)return r;o++}}hf="undefined"==typeof window?{}:window;var wf=bf(vf.style,"touchAction"),Cf=void 0!==wf;var Ef="compute",kf="auto",Of="manipulation",Tf="none",Ff="pan-x",Sf="pan-y",_f=function(){if(!Cf)return!1;var t={},e=hf.CSS&&hf.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(n){return t[n]=!e||hf.CSS.supports("touch-action",n)}),t}(),Af="ontouchstart"in hf,Df=void 0!==bf(hf,"PointerEvent"),Pf=Af&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),xf="touch",jf="mouse",Rf=16,Nf=24,If=["x","y"],Bf=["clientX","clientY"];function Mf(t,e,n){var r;if(t)if(t.forEach)t.forEach(e,n);else if(void 0!==t.length)for(r=0;r<t.length;)e.call(n,t[r],r,t),r++;else for(r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t)}function Lf(t,e){return"function"==typeof t?t.apply(e&&e[0]||void 0,e):t}function zf(t,e){return t.indexOf(e)>-1}var Hf=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){t===Ef&&(t=this.compute()),Cf&&this.manager.element.style&&_f[t]&&(this.manager.element.style[wf]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return Mf(this.manager.recognizers,function(e){Lf(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),function(t){if(zf(t,Tf))return Tf;var e=zf(t,Ff),n=zf(t,Sf);return e&&n?Tf:e||n?e?Ff:Sf:zf(t,Of)?Of:kf}(t.join(" "))},e.preventDefaults=function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var r=this.actions,i=zf(r,Tf)&&!_f[Tf],o=zf(r,Sf)&&!_f[Sf],a=zf(r,Ff)&&!_f[Ff];if(i){var s=1===t.pointers.length,u=t.distance<2,c=t.deltaTime<250;if(s&&u&&c)return}if(!a||!o)return i||o&&6&n||a&&n&Nf?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function Wf(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function Uf(t){var e=t.length;if(1===e)return{x:gf(t[0].clientX),y:gf(t[0].clientY)};for(var n=0,r=0,i=0;i<e;)n+=t[i].clientX,r+=t[i].clientY,i++;return{x:gf(n/e),y:gf(r/e)}}function Vf(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:gf(t.pointers[n].clientX),clientY:gf(t.pointers[n].clientY)},n++;return{timeStamp:yf(),pointers:e,center:Uf(e),deltaX:t.deltaX,deltaY:t.deltaY}}function qf(t,e,n){n||(n=If);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return Math.sqrt(r*r+i*i)}function Yf(t,e,n){n||(n=If);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return 180*Math.atan2(i,r)/Math.PI}function Xf(t,e){return t===e?1:mf(t)>=mf(e)?t<0?2:4:e<0?8:Rf}function Gf(t,e,n){return{x:e/t||0,y:n/t||0}}function Jf(t,e){var n=t.session,r=e.pointers,i=r.length;n.firstInput||(n.firstInput=Vf(e)),i>1&&!n.firstMultiple?n.firstMultiple=Vf(e):1===i&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,s=a?a.center:o.center,u=e.center=Uf(r);e.timeStamp=yf(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=Yf(s,u),e.distance=qf(s,u),function(t,e){var n=e.center,r=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};1!==e.eventType&&4!==o.eventType||(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=i.x+(n.x-r.x),e.deltaY=i.y+(n.y-r.y)}(n,e),e.offsetDirection=Xf(e.deltaX,e.deltaY);var c,l,f=Gf(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=f.x,e.overallVelocityY=f.y,e.overallVelocity=mf(f.x)>mf(f.y)?f.x:f.y,e.scale=a?(c=a.pointers,qf((l=r)[0],l[1],Bf)/qf(c[0],c[1],Bf)):1,e.rotation=a?function(t,e){return Yf(e[1],e[0],Bf)+Yf(t[1],t[0],Bf)}(a.pointers,r):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,r,i,o,a=t.lastInterval||e,s=e.timeStamp-a.timeStamp;if(8!==e.eventType&&(s>25||void 0===a.velocity)){var u=e.deltaX-a.deltaX,c=e.deltaY-a.deltaY,l=Gf(s,u,c);r=l.x,i=l.y,n=mf(l.x)>mf(l.y)?l.x:l.y,o=Xf(u,c),t.lastInterval=e}else n=a.velocity,r=a.velocityX,i=a.velocityY,o=a.direction;e.velocity=n,e.velocityX=r,e.velocityY=i,e.direction=o}(n,e);var h,p=t.element,d=e.srcEvent;Wf(h=d.composedPath?d.composedPath()[0]:d.path?d.path[0]:d.target,p)&&(p=h),e.target=p}function Qf(t,e,n){var r=n.pointers.length,i=n.changedPointers.length,o=1&e&&r-i===0,a=12&e&&r-i===0;n.isFirst=!!o,n.isFinal=!!a,o&&(t.session={}),n.eventType=e,Jf(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function $f(t){return t.trim().split(/\s+/g)}function Kf(t,e,n){Mf($f(e),function(e){t.addEventListener(e,n,!1)})}function Zf(t,e,n){Mf($f(e),function(e){t.removeEventListener(e,n,!1)})}function th(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var eh=function(){function t(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){Lf(t.options.enable,[t])&&n.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&Kf(this.element,this.evEl,this.domHandler),this.evTarget&&Kf(this.target,this.evTarget,this.domHandler),this.evWin&&Kf(th(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&Zf(this.element,this.evEl,this.domHandler),this.evTarget&&Zf(this.target,this.evTarget,this.domHandler),this.evWin&&Zf(th(this.element),this.evWin,this.domHandler)},t}();function nh(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var r=0;r<t.length;){if(n&&t[r][n]==e||!n&&t[r]===e)return r;r++}return-1}var rh={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},ih={2:xf,3:"pen",4:jf,5:"kinect"},oh="pointerdown",ah="pointermove pointerup pointercancel";hf.MSPointerEvent&&!hf.PointerEvent&&(oh="MSPointerDown",ah="MSPointerMove MSPointerUp MSPointerCancel");var sh=function(t){function e(){var n,r=e.prototype;return r.evEl=oh,r.evWin=ah,(n=t.apply(this,arguments)||this).store=n.manager.session.pointerEvents=[],n}return lf(e,t),e.prototype.handler=function(t){var e=this.store,n=!1,r=t.type.toLowerCase().replace("ms",""),i=rh[r],o=ih[t.pointerType]||t.pointerType,a=o===xf,s=nh(e,t.pointerId,"pointerId");1&i&&(0===t.button||a)?s<0&&(e.push(t),s=e.length-1):12&i&&(n=!0),s<0||(e[s]=t,this.callback(this.manager,i,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(s,1))},e}(eh);function uh(t){return Array.prototype.slice.call(t,0)}function ch(t,e,n){for(var r=[],i=[],o=0;o<t.length;){var a=e?t[o][e]:t[o];nh(i,a)<0&&r.push(t[o]),i[o]=a,o++}return n&&(r=e?r.sort(function(t,n){return t[e]>n[e]}):r.sort()),r}var lh={touchstart:1,touchmove:2,touchend:4,touchcancel:8},fh=function(t){function e(){var n;return e.prototype.evTarget="touchstart touchmove touchend touchcancel",(n=t.apply(this,arguments)||this).targetIds={},n}return lf(e,t),e.prototype.handler=function(t){var e=lh[t.type],n=hh.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:xf,srcEvent:t})},e}(eh);function hh(t,e){var n,r,i=uh(t.touches),o=this.targetIds;if(3&e&&1===i.length)return o[i[0].identifier]=!0,[i,i];var a=uh(t.changedTouches),s=[],u=this.target;if(r=i.filter(function(t){return Wf(t.target,u)}),1===e)for(n=0;n<r.length;)o[r[n].identifier]=!0,n++;for(n=0;n<a.length;)o[a[n].identifier]&&s.push(a[n]),12&e&&delete o[a[n].identifier],n++;return s.length?[ch(r.concat(s),"identifier",!0),s]:void 0}var ph={mousedown:1,mousemove:2,mouseup:4},dh=function(t){function e(){var n,r=e.prototype;return r.evEl="mousedown",r.evWin="mousemove mouseup",(n=t.apply(this,arguments)||this).pressed=!1,n}return lf(e,t),e.prototype.handler=function(t){var e=ph[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:jf,srcEvent:t}))},e}(eh);function vh(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY},r=this.lastTouches;this.lastTouches.push(n);setTimeout(function(){var t=r.indexOf(n);t>-1&&r.splice(t,1)},2500)}}function gh(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,vh.call(this,e)):12&t&&vh.call(this,e)}function mh(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],o=Math.abs(e-i.x),a=Math.abs(n-i.y);if(o<=25&&a<=25)return!0}return!1}var yh=function(){return function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).handler=function(t,e,n){var i=n.pointerType===xf,o=n.pointerType===jf;if(!(o&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)gh.call(ff(ff(r)),e,n);else if(o&&mh.call(ff(ff(r)),n))return;r.callback(t,e,n)}},r.touch=new fh(r.manager,r.handler),r.mouse=new dh(r.manager,r.handler),r.primaryTouch=null,r.lastTouches=[],r}return lf(e,t),e.prototype.destroy=function(){this.touch.destroy(),this.mouse.destroy()},e}(eh)}();function bh(t,e,n){return!!Array.isArray(t)&&(Mf(t,n[e],n),!0)}var wh=32,Ch=1;function Eh(t,e){var n=e.manager;return n?n.get(t):t}function kh(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}var Oh=function(){function t(t){void 0===t&&(t={}),this.options=cf({enable:!0},t),this.id=Ch++,this.manager=null,this.state=1,this.simultaneous={},this.requireFail=[]}var e=t.prototype;return e.set=function(t){return pf(this.options,t),this.manager&&this.manager.touchAction.update(),this},e.recognizeWith=function(t){if(bh(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=Eh(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},e.dropRecognizeWith=function(t){return bh(t,"dropRecognizeWith",this)||(t=Eh(t,this),delete this.simultaneous[t.id]),this},e.requireFailure=function(t){if(bh(t,"requireFailure",this))return this;var e=this.requireFail;return-1===nh(e,t=Eh(t,this))&&(e.push(t),t.requireFailure(this)),this},e.dropRequireFailure=function(t){if(bh(t,"dropRequireFailure",this))return this;t=Eh(t,this);var e=nh(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,n=this.state;function r(n){e.manager.emit(n,t)}n<8&&r(e.options.event+kh(n)),r(e.options.event),t.additionalEvent&&r(t.additionalEvent),n>=8&&r(e.options.event+kh(n))},e.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=wh},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=pf({},t);if(!Lf(this.options.enable,[this,e]))return this.reset(),void(this.state=wh);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}(),Th=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,cf({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},e))||this).pTime=!1,n.pCenter=!1,n._timer=null,n._input=null,n.count=0,n}lf(e,t);var n=e.prototype;return n.getTouchAction=function(){return[Of]},n.process=function(t){var e=this,n=this.options,r=t.pointers.length===n.pointers,i=t.distance<n.threshold,o=t.deltaTime<n.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(i&&o&&r){if(4!==t.eventType)return this.failTimeout();var a=!this.pTime||t.timeStamp-this.pTime<n.interval,s=!this.pCenter||qf(this.pCenter,t.center)<n.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,s&&a?this.count+=1:this.count=1,this._input=t,0===this.count%n.taps)return this.hasRequireFailures()?(this._timer=setTimeout(function(){e.state=8,e.tryEmit()},n.interval),2):8}return wh},n.failTimeout=function(){var t=this;return this._timer=setTimeout(function(){t.state=wh},this.options.interval),wh},n.reset=function(){clearTimeout(this._timer)},n.emit=function(){8===this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},e}(Oh),Fh=function(t){function e(e){return void 0===e&&(e={}),t.call(this,cf({pointers:1},e))||this}lf(e,t);var n=e.prototype;return n.attrTest=function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},n.process=function(t){var e=this.state,n=t.eventType,r=6&e,i=this.attrTest(t);return r&&(8&n||!i)?16|e:r||i?4&n?8|e:2&e?4|e:2:wh},e}(Oh);function Sh(t){return t===Rf?"down":8===t?"up":2===t?"left":4===t?"right":""}var _h=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,cf({event:"pan",threshold:10,pointers:1,direction:30},e))||this).pX=null,n.pY=null,n}lf(e,t);var n=e.prototype;return n.getTouchAction=function(){var t=this.options.direction,e=[];return 6&t&&e.push(Sf),t&Nf&&e.push(Ff),e},n.directionTest=function(t){var e=this.options,n=!0,r=t.distance,i=t.direction,o=t.deltaX,a=t.deltaY;return i&e.direction||(6&e.direction?(i=0===o?1:o<0?2:4,n=o!==this.pX,r=Math.abs(t.deltaX)):(i=0===a?1:a<0?8:Rf,n=a!==this.pY,r=Math.abs(t.deltaY))),t.direction=i,n&&r>e.threshold&&i&e.direction},n.attrTest=function(t){return Fh.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},n.emit=function(e){this.pX=e.deltaX,this.pY=e.deltaY;var n=Sh(e.direction);n&&(e.additionalEvent=this.options.event+n),t.prototype.emit.call(this,e)},e}(Fh),Ah=function(t){function e(e){return void 0===e&&(e={}),t.call(this,cf({event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},e))||this}lf(e,t);var n=e.prototype;return n.getTouchAction=function(){return _h.prototype.getTouchAction.call(this)},n.attrTest=function(e){var n,r=this.options.direction;return 30&r?n=e.overallVelocity:6&r?n=e.overallVelocityX:r&Nf&&(n=e.overallVelocityY),t.prototype.attrTest.call(this,e)&&r&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers===this.options.pointers&&mf(n)>this.options.velocity&&4&e.eventType},n.emit=function(t){var e=Sh(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},e}(Fh),Dh=function(t){function e(e){return void 0===e&&(e={}),t.call(this,cf({event:"pinch",threshold:0,pointers:2},e))||this}lf(e,t);var n=e.prototype;return n.getTouchAction=function(){return[Tf]},n.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},n.emit=function(e){if(1!==e.scale){var n=e.scale<1?"in":"out";e.additionalEvent=this.options.event+n}t.prototype.emit.call(this,e)},e}(Fh),Ph=function(t){function e(e){return void 0===e&&(e={}),t.call(this,cf({event:"rotate",threshold:0,pointers:2},e))||this}lf(e,t);var n=e.prototype;return n.getTouchAction=function(){return[Tf]},n.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)},e}(Fh),xh=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,cf({event:"press",pointers:1,time:251,threshold:9},e))||this)._timer=null,n._input=null,n}lf(e,t);var n=e.prototype;return n.getTouchAction=function(){return[kf]},n.process=function(t){var e=this,n=this.options,r=t.pointers.length===n.pointers,i=t.distance<n.threshold,o=t.deltaTime>n.time;if(this._input=t,!i||!r||12&t.eventType&&!o)this.reset();else if(1&t.eventType)this.reset(),this._timer=setTimeout(function(){e.state=8,e.tryEmit()},n.time);else if(4&t.eventType)return 8;return wh},n.reset=function(){clearTimeout(this._timer)},n.emit=function(t){8===this.state&&(t&&4&t.eventType?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=yf(),this.manager.emit(this.options.event,this._input)))},e}(Oh),jh={domEvents:!1,touchAction:Ef,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Rh=[[Ph,{enable:!1}],[Dh,{enable:!1},["rotate"]],[Ah,{direction:6}],[_h,{direction:6},["swipe"]],[Th],[Th,{event:"doubletap",taps:2},["tap"]],[xh]];function Nh(t,e){var n,r=t.element;r.style&&(Mf(t.options.cssProps,function(i,o){n=bf(r.style,o),e?(t.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=t.oldCssProps[n]||""}),e||(t.oldCssProps={}))}var Ih=function(){function t(t,e){var n,r=this;this.options=pf({},jh,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((n=this).options.inputClass||(Df?sh:Pf?fh:Af?yh:dh))(n,Qf),this.touchAction=new Hf(this,this.options.touchAction),Nh(this,!0),Mf(this.options.recognizers,function(t){var e=r.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 pf(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 n;this.touchAction.preventDefaults(t);var r=this.recognizers,i=e.curRecognizer;(!i||i&&8&i.state)&&(e.curRecognizer=null,i=null);for(var o=0;o<r.length;)n=r[o],2===e.stopped||i&&n!==i&&!n.canRecognizeWith(i)?n.reset():n.recognize(t),!i&&14&n.state&&(e.curRecognizer=n,i=n),o++}},e.get=function(t){if(t instanceof Oh)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event===t)return e[n];return null},e.add=function(t){if(bh(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(bh(t,"remove",this))return this;var e=this.get(t);if(t){var n=this.recognizers,r=nh(n,e);-1!==r&&(n.splice(r,1),this.touchAction.update())}return this},e.on=function(t,e){if(void 0===t||void 0===e)return this;var n=this.handlers;return Mf($f(t),function(t){n[t]=n[t]||[],n[t].push(e)}),this},e.off=function(t,e){if(void 0===t)return this;var n=this.handlers;return Mf($f(t),function(t){e?n[t]&&n[t].splice(nh(n[t],e),1):delete n[t]}),this},e.emit=function(t,e){this.options.domEvents&&function(t,e){var n=document.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](e),r++}},e.destroy=function(){this.element&&Nh(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},t}(),Bh={touchstart:1,touchmove:2,touchend:4,touchcancel:8},Mh=function(t){function e(){var n,r=e.prototype;return r.evTarget="touchstart",r.evWin="touchstart touchmove touchend touchcancel",(n=t.apply(this,arguments)||this).started=!1,n}return lf(e,t),e.prototype.handler=function(t){var e=Bh[t.type];if(1===e&&(this.started=!0),this.started){var n=Lh.call(this,t,e);12&e&&n[0].length-n[1].length===0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:xf,srcEvent:t})}},e}(eh);function Lh(t,e){var n=uh(t.touches),r=uh(t.changedTouches);return 12&e&&(n=ch(n.concat(r),"identifier",!0)),[n,r]}function zh(t,e,n){var r="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",i=window.console&&(window.console.warn||window.console.log);return i&&i.call(window.console,r,n),t.apply(this,arguments)}}var Hh=zh(function(t,e,n){for(var r=Object.keys(e),i=0;i<r.length;)(!n||n&&void 0===t[r[i]])&&(t[r[i]]=e[r[i]]),i++;return t},"extend","Use `assign`."),Wh=zh(function(t,e){return Hh(t,e,!0)},"merge","Use `assign`.");function Uh(t,e,n){var r,i=e.prototype;(r=t.prototype=Object.create(i)).constructor=t,r._super=i,n&&pf(r,n)}function Vh(t,e){return function(){return t.apply(e,arguments)}}var qh=function(){var t=function(t,e){return void 0===e&&(e={}),new Ih(t,cf({recognizers:Rh.concat()},e))};return t.VERSION="2.0.17-rc",t.DIRECTION_ALL=30,t.DIRECTION_DOWN=Rf,t.DIRECTION_LEFT=2,t.DIRECTION_RIGHT=4,t.DIRECTION_UP=8,t.DIRECTION_HORIZONTAL=6,t.DIRECTION_VERTICAL=Nf,t.DIRECTION_NONE=1,t.DIRECTION_DOWN=Rf,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=wh,t.Manager=Ih,t.Input=eh,t.TouchAction=Hf,t.TouchInput=fh,t.MouseInput=dh,t.PointerEventInput=sh,t.TouchMouseInput=yh,t.SingleTouchInput=Mh,t.Recognizer=Oh,t.AttrRecognizer=Fh,t.Tap=Th,t.Pan=_h,t.Swipe=Ah,t.Pinch=Dh,t.Rotate=Ph,t.Press=xh,t.on=Kf,t.off=Zf,t.each=Mf,t.merge=Wh,t.extend=Hh,t.bindFn=Vh,t.assign=pf,t.inherit=Uh,t.bindFn=Vh,t.prefixed=bf,t.toArray=uh,t.inArray=nh,t.uniqueArray=ch,t.splitStr=$f,t.boolOrFn=Lf,t.hasParent=Wf,t.addEventListeners=Kf,t.removeEventListeners=Zf,t.defaults=pf({},jh,{preset:Rh}),t}();qh.defaults;const Yh="undefined"!=typeof window?window.Hammer||qh:function(){return function(){const t=()=>{};return{on:t,off:t,destroy:t,emit:t,get:()=>({set:t})}}()};function Xh(t){var e;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 n=Yh(this._dom.overlay);n.on("tap",xl(e=this._onTapOverlay).call(e,this)),this._cleanupQueue.push(()=>{n.destroy()});const r=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];Ql(r).call(r,t=>{n.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()}}uf(Xh.prototype),Xh.current=null,Xh.prototype.destroy=function(){this.deactivate();for(const e of rf(t=this._cleanupQueue).call(t,0).toReversed()){var t;e()}},Xh.prototype.activate=function(){Xh.current&&Xh.current.deactivate(),Xh.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)},Xh.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")},Xh.prototype._onTapOverlay=function(t){this.activate(),t.srcEvent.stopPropagation()};var Gh,Jh,Qh,$h,Kh,Zh,tp,ep,np,rp,ip,op,ap,sp={};function up(){if(Jh)return Gh;Jh=1;var t=kn(),e=Hn(),n=kt(),r=RangeError,i=Math.floor;return Gh=function(o){var a=e(n(this)),s="",u=t(o);if(u<0||u===1/0)throw new r("Wrong number of repetitions");for(;u>0;(u=i(u/2))&&(a+=a))u%2&&(s+=a);return s}}function cp(){if($h)return Qh;$h=1;var t=O(),e=On(),n=Hn(),r=up(),i=kt(),o=t(r),a=t("".slice),s=Math.ceil,u=function(t){return function(r,u,c){var l=n(i(r)),f=e(u),h=l.length;if(f<=h)return l;var p,d,v=void 0===c?" ":n(c);return""===v?l:((d=o(v,s((p=f-h)/v.length))).length>p&&(d=a(d,0,p)),t?l+d:d+l)}};return Qh={start:u(!1),end:u(!0)}}function lp(){if(Zh)return Kh;Zh=1;var t=O(),e=C(),n=cp().start,r=RangeError,i=isFinite,o=Math.abs,a=Date.prototype,s=a.toISOString,u=t(a.getTime),c=t(a.getUTCDate),l=t(a.getUTCFullYear),f=t(a.getUTCHours),h=t(a.getUTCMilliseconds),p=t(a.getUTCMinutes),d=t(a.getUTCMonth),v=t(a.getUTCSeconds);return Kh=e(function(){return"0385-07-25T07:06:39.999Z"!==s.call(new Date(-50000000000001))})||!e(function(){s.call(new Date(NaN))})?function(){if(!i(u(this)))throw new r("Invalid time value");var t=this,e=l(t),a=h(t),s=e<0?"-":e>9999?"+":"";return s+n(o(e),s?6:4,0)+"-"+n(d(t)+1,2,0)+"-"+n(c(t),2,0)+"T"+n(f(t),2,0)+":"+n(p(t),2,0)+":"+n(v(t),2,0)+"."+n(a,3,0)+"Z"}:s}function fp(){if(np)return ep;np=1,function(){if(tp)return sp;tp=1;var t=wn(),e=R(),n=me(),r=Ce(),i=lp(),o=T();t({target:"Date",proto:!0,forced:C()(function(){return null!==new Date(NaN).toJSON()||1!==e(Date.prototype.toJSON,{toISOString:function(){return 1}})})},{toJSON:function(t){var a=n(this),s=r(a,"number");return"number"!=typeof s||isFinite(s)?"toISOString"in a||"Date"!==o(a)?a.toISOString():e(i,a):null}})}(),Ti();var t=Ft(),e=k();return t.JSON||(t.JSON={stringify:JSON.stringify}),ep=function(n,r,i){return e(t.JSON.stringify,null,arguments)},ep}function hp(){return ip?rp:(ip=1,rp=fp())}var pp,dp,vp,gp,mp,yp,bp,wp,Cp,Ep=n(ap?op:(ap=1,op=hp())),kp={};function Op(){if(dp)return pp;dp=1;var t=j(),e=O(),n=R(),r=C(),i=pr(),o=jr(),a=bt(),s=me(),u=Ct(),c=Object.assign,l=Object.defineProperty,f=e([].concat);return pp=!c||r(function(){if(t&&1!==c({b:1},c(l({},"a",{enumerable:!0,get:function(){l(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},n={},r=Symbol("assign detection"),o="abcdefghijklmnopqrst";return e[r]=7,o.split("").forEach(function(t){n[t]=t}),7!==c({},e)[r]||i(c({},n)).join("")!==o})?function(e,r){for(var c=s(e),l=arguments.length,h=1,p=o.f,d=a.f;l>h;)for(var v,g=u(arguments[h++]),m=p?f(i(g),p(g)):i(g),y=m.length,b=0;y>b;)v=m[b++],t&&!n(d,g,v)||(c[v]=g[v]);return c}:c,pp}function Tp(){return mp?gp:(mp=1,function(){if(vp)return kp;vp=1;var t=wn(),e=Op();t({target:"Object",stat:!0,arity:2,forced:Object.assign!==e},{assign:e})}(),gp=Ft().Object.assign)}function Fp(){return bp?yp:(bp=1,yp=Tp())}var Sp,_p,Ap,Dp,Pp,xp,jp,Rp=n(Cp?wp:(Cp=1,wp=Fp())),Np={},Ip={};function Bp(){if(_p)return Sp;_p=1;var t=w(),e=At(),n=T(),r=function(t){return e.slice(0,t.length)===t};return Sp=r("Bun/")?"BUN":r("Cloudflare-Workers")?"CLOUDFLARE":r("Deno/")?"DENO":r("Node.js/")?"NODE":t.Bun&&"string"==typeof Bun.version?"BUN":t.Deno&&"object"==typeof Deno.version?"DENO":"process"===n(t.process)?"NODE":t.window&&t.document?"BROWSER":"REST"}function Mp(){if(Dp)return Ap;Dp=1;var t=TypeError;return Ap=function(e,n){if(e<n)throw new t("Not enough arguments");return e}}function Lp(){if(xp)return Pp;xp=1;var t,e=w(),n=k(),r=S(),i=Bp(),o=At(),a=Tr(),s=Mp(),u=e.Function,c=/MSIE .\./.test(o)||"BUN"===i&&((t=e.Bun.version.split(".")).length<3||"0"===t[0]&&(t[1]<3||"3"===t[1]&&"0"===t[2]));return Pp=function(t,e){var i=e?2:1;return c?function(o,c){var l=s(arguments.length,1)>i,f=r(o)?o:u(o),h=l?a(arguments,i):[],p=l?function(){n(f,this,h)}:f;return e?t(p,c):t(p)}:t},Pp}var zp,Hp,Wp,Up,Vp,qp,Yp={};function Xp(){return Hp||(Hp=1,function(){if(jp)return Ip;jp=1;var t=wn(),e=w(),n=Lp()(e.setInterval,!0);t({global:!0,bind:!0,forced:e.setInterval!==n},{setInterval:n})}(),function(){if(zp)return Yp;zp=1;var t=wn(),e=w(),n=Lp()(e.setTimeout,!0);t({global:!0,bind:!0,forced:e.setTimeout!==n},{setTimeout:n})}()),Np}function Gp(){return Up?Wp:(Up=1,Xp(),Wp=Ft().setTimeout)}var Jp,Qp,$p,Kp,Zp,td,ed,nd,rd,id,od,ad=n(qp?Vp:(qp=1,Vp=Gp())),sd={};function ud(){if(Qp)return Jp;Qp=1;var t=me(),e=ur(),n=Tn();return Jp=function(r){for(var i=t(this),o=n(i),a=arguments.length,s=e(a>1?arguments[1]:void 0,o),u=a>2?arguments[2]:void 0,c=void 0===u?o:e(u,o);c>s;)i[s++]=r;return i},Jp}function cd(){return Zp?Kp:(Zp=1,function(){if($p)return sd;$p=1;var t=wn(),e=ud(),n=Lo();t({target:"Array",proto:!0},{fill:e}),n("fill")}(),Kp=va()("Array","fill"))}function ld(){if(ed)return td;ed=1;var t=_t(),e=cd(),n=Array.prototype;return td=function(r){var i=r.fill;return r===n||t(n,r)&&i===n.fill?e:i}}function fd(){return rd?nd:(rd=1,nd=ld())}var hd,pd,dd,vd=n(od?id:(od=1,id=fd())),gd={};function md(){return dd?pd:(dd=1,function(){if(hd)return gd;hd=1;var t=wn(),e=cr().includes,n=C(),r=Lo(),i=n(function(){return!Array(1).includes()}),o=n(function(){return[,1].includes(void 0,1)});t({target:"Array",proto:!0,forced:i||o},{includes:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}}),r("includes")}(),pd=va()("Array","includes"))}var yd,bd,wd,Cd,Ed,kd,Od,Td,Fd,Sd,_d,Ad,Dd,Pd,xd,jd={};function Rd(){if(bd)return yd;bd=1;var t=Tt(),e=T(),n=we()("match");return yd=function(r){var i;return t(r)&&(void 0!==(i=r[n])?!!i:"RegExp"===e(r))}}function Nd(){if(Cd)return wd;Cd=1;var t=Rd(),e=TypeError;return wd=function(n){if(t(n))throw new e("The method doesn't accept regular expressions");return n}}function Id(){if(kd)return Ed;kd=1;var t=we()("match");return Ed=function(e){var n=/./;try{"/./"[e](n)}catch(r){try{return n[t]=!1,"/./"[e](n)}catch(t){}}return!1}}function Bd(){return Fd?Td:(Fd=1,function(){if(Od)return jd;Od=1;var t=wn(),e=O(),n=Nd(),r=kt(),i=Hn(),o=Id(),a=e("".indexOf);t({target:"String",proto:!0,forced:!o("includes")},{includes:function(t){return!!~a(i(r(this)),i(n(t)),arguments.length>1?arguments[1]:void 0)}})}(),Td=va()("String","includes"))}function Md(){if(_d)return Sd;_d=1;var t=_t(),e=md(),n=Bd(),r=Array.prototype,i=String.prototype;return Sd=function(o){var a=o.includes;return o===r||t(r,o)&&a===r.includes?e:"string"==typeof o||o===i||t(i,o)&&a===i.includes?n:a}}function Ld(){return Dd?Ad:(Dd=1,Ad=Md())}var zd,Hd,Wd,Ud,Vd,qd,Yd,Xd=n(xd?Pd:(xd=1,Pd=Ld())),Gd={};function Jd(){return Wd?Hd:(Wd=1,function(){if(zd)return Gd;zd=1;var t=wn(),e=C(),n=me(),r=Uo(),i=Wo();t({target:"Object",stat:!0,forced:e(function(){r(1)}),sham:!i},{getPrototypeOf:function(t){return r(n(t))}})}(),Hd=Ft().Object.getPrototypeOf)}function Qd(){return Vd?Ud:(Vd=1,Ud=Jd())}var $d,Kd,Zd,tv,ev,nv,rv,iv,ov=n(Yd?qd:(Yd=1,qd=Qd()));function av(){return Kd?$d:(Kd=1,In(),$d=va()("Array","concat"))}function sv(){if(tv)return Zd;tv=1;var t=_t(),e=av(),n=Array.prototype;return Zd=function(r){var i=r.concat;return r===n||t(n,r)&&i===n.concat?e:i}}function uv(){return nv?ev:(nv=1,ev=sv())}var cv,lv,fv,hv,pv,dv,vv,gv,mv,yv=n(iv?rv:(iv=1,rv=uv())),bv={};function wv(){return fv?lv:(fv=1,function(){if(cv)return bv;cv=1;var t=wn(),e=ai().filter;t({target:"Array",proto:!0,forced:!Nn()("filter")},{filter:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}})}(),lv=va()("Array","filter"))}function Cv(){if(pv)return hv;pv=1;var t=_t(),e=wv(),n=Array.prototype;return hv=function(r){var i=r.filter;return r===n||t(n,r)&&i===n.filter?e:i}}function Ev(){return vv?dv:(vv=1,dv=Cv())}var kv,Ov,Tv,Fv,Sv,_v,Av,Dv,Pv,xv=n(mv?gv:(mv=1,gv=Ev())),jv={};function Rv(){if(Ov)return kv;Ov=1;var t=j(),e=C(),n=O(),r=Uo(),i=pr(),o=Ot(),a=n(bt().f),s=n([].push),u=t&&e(function(){var t=Object.create(null);return t[2]=2,!a(t,2)}),c=function(e){return function(n){for(var c,l=o(n),f=i(l),h=u&&null===r(l),p=f.length,d=0,v=[];p>d;)c=f[d++],t&&!(h?c in l:a(l,c))||s(v,e?[c,l[c]]:l[c]);return v}};return kv={entries:c(!0),values:c(!1)}}function Nv(){return Sv?Fv:(Sv=1,function(){if(Tv)return jv;Tv=1;var t=wn(),e=Rv().values;t({target:"Object",stat:!0},{values:function(t){return e(t)}})}(),Fv=Ft().Object.values)}function Iv(){return Av?_v:(Av=1,_v=Nv())}var Bv,Mv,Lv,zv,Hv,Wv,Uv,Vv,qv,Yv,Xv,Gv,Jv,Qv=n(Pv?Dv:(Pv=1,Dv=Iv())),$v={};function Kv(){return Mv?Bv:(Mv=1,Bv="\t\n\v\f\r \u2028\u2029\ufeff")}function Zv(){if(zv)return Lv;zv=1;var t=O(),e=kt(),n=Hn(),r=Kv(),i=t("".replace),o=RegExp("^["+r+"]+"),a=RegExp("(^|[^"+r+"])["+r+"]+$"),s=function(t){return function(r){var s=n(e(r));return 1&t&&(s=i(s,o,"")),2&t&&(s=i(s,a,"$1")),s}};return Lv={start:s(1),end:s(2),trim:s(3)}}function tg(){if(Wv)return Hv;Wv=1;var t=w(),e=C(),n=O(),r=Hn(),i=Zv().trim,o=Kv(),a=t.parseInt,s=t.Symbol,u=s&&s.iterator,c=/^[+-]?0x/i,l=n(c.exec),f=8!==a(o+"08")||22!==a(o+"0x16")||u&&!e(function(){a(Object(u))});return Hv=f?function(t,e){var n=i(r(t));return a(n,e>>>0||(l(c,n)?16:10))}:a}function eg(){return qv?Vv:(qv=1,function(){if(Uv)return $v;Uv=1;var t=wn(),e=tg();t({global:!0,forced:parseInt!==e},{parseInt:e})}(),Vv=Ft().parseInt)}function ng(){return Xv?Yv:(Xv=1,Yv=eg())}var rg,ig,og,ag,sg,ug,cg,lg,fg,hg=n(Jv?Gv:(Jv=1,Gv=ng())),pg={};function dg(){return og?ig:(og=1,function(){if(rg)return pg;rg=1;var t=wn(),e=F(),n=cr().indexOf,r=Rl(),i=e([].indexOf),o=!!i&&1/i([1],1,-0)<0;t({target:"Array",proto:!0,forced:o||!r("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return o?i(this,t,e)||0:n(this,t,e)}})}(),ig=va()("Array","indexOf"))}function vg(){if(sg)return ag;sg=1;var t=_t(),e=dg(),n=Array.prototype;return ag=function(r){var i=r.indexOf;return r===n||t(n,r)&&i===n.indexOf?e:i}}function gg(){return cg?ug:(cg=1,ug=vg())}var mg,yg,bg,wg,Cg,Eg,kg,Og=n(fg?lg:(fg=1,lg=gg())),Tg={};function Fg(){return bg?yg:(bg=1,function(){if(mg)return Tg;mg=1;var t=wn(),e=Rv().entries;t({target:"Object",stat:!0},{entries:function(t){return e(t)}})}(),yg=Ft().Object.entries)}function Sg(){return Cg?wg:(Cg=1,wg=Fg())}var _g,Ag,Dg,Pg,xg,jg,Rg,Ng=n(kg?Eg:(kg=1,Eg=Sg()));function Ig(){if(Dg)return Ag;Dg=1,_g||(_g=1,wn()({target:"Object",stat:!0,sham:!j()},{create:mr()}));var t=Ft().Object;return Ag=function(e,n){return t.create(e,n)}}function Bg(){return xg?Pg:(xg=1,Pg=Ig())}var Mg=n(Rg?jg:(Rg=1,jg=Bg()));const Lg=/^\/?Date\((-?\d+)/i,zg=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,Hg=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,Wg=/^rgb\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *\)$/i,Ug=/^rgba\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *([01]|0?\.\d+) *\)$/i;function Vg(t){return t instanceof Number||"number"==typeof t}function qg(t){return t instanceof String||"string"==typeof t}function Yg(t){return"object"==typeof t&&null!==t}function Xg(t,e,n,r){let i=!1;!0===r&&(i=null===e[n]&&void 0!==t[n]),i?delete t[n]:t[n]=e[n]}const Gg=Rp;function Jg(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)||!0===n)if("object"==typeof e[o]&&null!==e[o]&&ov(e[o])===Object.prototype)void 0===t[o]?t[o]=Jg({},e[o],n):"object"==typeof t[o]&&null!==t[o]&&ov(t[o])===Object.prototype?Jg(t[o],e[o],n):Xg(t,e,o,r);else if($a(e[o])){var i;t[o]=_a(i=e[o]).call(i)}else Xg(t,e,o,r);return t}function Qg(t,e){return[...t,e]}function $g(t){return _a(t).call(t)}const Kg=Qv;const Zg={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()),qg(t)?t:Vg(t)?t+"px":e||null),asElement:(t,e)=>("function"==typeof t&&(t=t()),t||e||null)};function tm(t){let e;switch(t.length){case 3:case 4:return e=Hg.exec(t),e?{r:hg(e[1]+e[1],16),g:hg(e[2]+e[2],16),b:hg(e[3]+e[3],16)}:null;case 6:case 7:return e=zg.exec(t),e?{r:hg(e[1],16),g:hg(e[2],16),b:hg(e[3],16)}:null;default:return null}}function em(t,e,n){var r;return"#"+_a(r=((1<<24)+(t<<16)+(e<<8)+n).toString(16)).call(r,1)}function nm(t,e,n){t/=255,e/=255,n/=255;const r=Math.min(t,Math.min(e,n)),i=Math.max(t,Math.max(e,n));if(r===i)return{h:0,s:0,v:r};return{h:60*((t===r?3:n===r?1:5)-(t===r?e-n:n===r?t-e:n-t)/(i-r))/360,s:(i-r)/i,v:i}}function rm(t){const e=document.createElement("div"),n={};e.style.cssText=t;for(let t=0;t<e.style.length;++t)n[e.style[t]]=e.style.getPropertyValue(e.style[t]);return n}function im(t,e,n){let r,i,o;const a=Math.floor(6*t),s=6*t-a,u=n*(1-e),c=n*(1-s*e),l=n*(1-(1-s)*e);switch(a%6){case 0:r=n,i=l,o=u;break;case 1:r=c,i=n,o=u;break;case 2:r=u,i=n,o=l;break;case 3:r=u,i=c,o=n;break;case 4:r=l,i=u,o=n;break;case 5:r=n,i=u,o=c}return{r:Math.floor(255*r),g:Math.floor(255*i),b:Math.floor(255*o)}}function om(t,e,n){const r=im(t,e,n);return em(r.r,r.g,r.b)}function am(t){const e=tm(t);if(!e)throw new TypeError("'".concat(t,"' is not a valid color."));return nm(e.r,e.g,e.b)}function sm(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)}function um(t){return Wg.test(t)}function cm(t){return Ug.test(t)}function lm(t){if(null===t||"object"!=typeof t)return null;if(t instanceof Element)return t;const e=Mg(t);for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&"object"==typeof t[n]&&(e[n]=lm(t[n]));return e}const fm={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>t*(2-t),easeInOutQuad:t=>t<.5?2*t*t:(4-2*t)*t-1,easeInCubic:t=>t*t*t,easeOutCubic:t=>--t*t*t+1,easeInOutCubic:t=>t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1,easeInQuart:t=>t*t*t*t,easeOutQuart:t=>1- --t*t*t*t,easeInOutQuart:t=>t<.5?8*t*t*t*t:1-8*--t*t*t*t,easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>1+--t*t*t*t*t,easeInOutQuint:t=>t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t};const hm={black:"#000000",navy:"#000080",darkblue:"#00008B",mediumblue:"#0000CD",blue:"#0000FF",darkgreen:"#006400",green:"#008000",teal:"#008080",darkcyan:"#008B8B",deepskyblue:"#00BFFF",darkturquoise:"#00CED1",mediumspringgreen:"#00FA9A",lime:"#00FF00",springgreen:"#00FF7F",aqua:"#00FFFF",cyan:"#00FFFF",midnightblue:"#191970",dodgerblue:"#1E90FF",lightseagreen:"#20B2AA",forestgreen:"#228B22",seagreen:"#2E8B57",darkslategray:"#2F4F4F",limegreen:"#32CD32",mediumseagreen:"#3CB371",turquoise:"#40E0D0",royalblue:"#4169E1",steelblue:"#4682B4",darkslateblue:"#483D8B",mediumturquoise:"#48D1CC",indigo:"#4B0082",darkolivegreen:"#556B2F",cadetblue:"#5F9EA0",cornflowerblue:"#6495ED",mediumaquamarine:"#66CDAA",dimgray:"#696969",slateblue:"#6A5ACD",olivedrab:"#6B8E23",slategray:"#708090",lightslategray:"#778899",mediumslateblue:"#7B68EE",lawngreen:"#7CFC00",chartreuse:"#7FFF00",aquamarine:"#7FFFD4",maroon:"#800000",purple:"#800080",olive:"#808000",gray:"#808080",skyblue:"#87CEEB",lightskyblue:"#87CEFA",blueviolet:"#8A2BE2",darkred:"#8B0000",darkmagenta:"#8B008B",saddlebrown:"#8B4513",darkseagreen:"#8FBC8F",lightgreen:"#90EE90",mediumpurple:"#9370D8",darkviolet:"#9400D3",palegreen:"#98FB98",darkorchid:"#9932CC",yellowgreen:"#9ACD32",sienna:"#A0522D",brown:"#A52A2A",darkgray:"#A9A9A9",lightblue:"#ADD8E6",greenyellow:"#ADFF2F",paleturquoise:"#AFEEEE",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",firebrick:"#B22222",darkgoldenrod:"#B8860B",mediumorchid:"#BA55D3",rosybrown:"#BC8F8F",darkkhaki:"#BDB76B",silver:"#C0C0C0",mediumvioletred:"#C71585",indianred:"#CD5C5C",peru:"#CD853F",chocolate:"#D2691E",tan:"#D2B48C",lightgrey:"#D3D3D3",palevioletred:"#D87093",thistle:"#D8BFD8",orchid:"#DA70D6",goldenrod:"#DAA520",crimson:"#DC143C",gainsboro:"#DCDCDC",plum:"#DDA0DD",burlywood:"#DEB887",lightcyan:"#E0FFFF",lavender:"#E6E6FA",darksalmon:"#E9967A",violet:"#EE82EE",palegoldenrod:"#EEE8AA",lightcoral:"#F08080",khaki:"#F0E68C",aliceblue:"#F0F8FF",honeydew:"#F0FFF0",azure:"#F0FFFF",sandybrown:"#F4A460",wheat:"#F5DEB3",beige:"#F5F5DC",whitesmoke:"#F5F5F5",mintcream:"#F5FFFA",ghostwhite:"#F8F8FF",salmon:"#FA8072",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lightgoldenrodyellow:"#FAFAD2",oldlace:"#FDF5E6",red:"#FF0000",fuchsia:"#FF00FF",magenta:"#FF00FF",deeppink:"#FF1493",orangered:"#FF4500",tomato:"#FF6347",hotpink:"#FF69B4",coral:"#FF7F50",darkorange:"#FF8C00",lightsalmon:"#FFA07A",orange:"#FFA500",lightpink:"#FFB6C1",pink:"#FFC0CB",gold:"#FFD700",peachpuff:"#FFDAB9",navajowhite:"#FFDEAD",moccasin:"#FFE4B5",bisque:"#FFE4C4",mistyrose:"#FFE4E1",blanchedalmond:"#FFEBCD",papayawhip:"#FFEFD5",lavenderblush:"#FFF0F5",seashell:"#FFF5EE",cornsilk:"#FFF8DC",lemonchiffon:"#FFFACD",floralwhite:"#FFFAF0",snow:"#FFFAFA",yellow:"#FFFF00",lightyellow:"#FFFFE0",ivory:"#FFFFF0",white:"#FFFFFF"};let pm=class{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.pixelRatio=t,this.generated=!1,this.centerCoordinates={x:144.5,y:144.5},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=()=>{},this.closeCallback=()=>{},this._create()}insertTo(t){void 0!==this.hammer&&(this.hammer.destroy(),this.hammer=void 0),this.container=t,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}setUpdateCallback(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker update callback is not a function.");this.updateCallback=t}setCloseCallback(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker closing callback is not a function.");this.closeCallback=t}_isColorString(t){if("string"==typeof t)return hm[t]}setColor(t){let e,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("none"===t)return;const r=this._isColorString(t);if(void 0!==r&&(t=r),!0===qg(t)){if(!0===um(t)){const n=t.substr(4).substr(0,t.length-5).split(",");e={r:n[0],g:n[1],b:n[2],a:1}}else if(!0===cm(t)){const n=t.substr(5).substr(0,t.length-6).split(",");e={r:n[0],g:n[1],b:n[2],a:n[3]}}else if(!0===sm(t)){const n=tm(t);e={r:n.r,g:n.g,b:n.b,a:1}}}else if(t instanceof Object&&void 0!==t.r&&void 0!==t.g&&void 0!==t.b){const n=void 0!==t.a?t.a:"1.0";e={r:t.r,g:t.g,b:t.b,a:n}}if(void 0===e)throw new Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+Ep(t));this._setColor(e,n)}show(){void 0!==this.closeCallback&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}_hide(){!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&(this.previousColor=Rp({},this.color)),!0===this.applied&&this.updateCallback(this.initialColor),this.frame.style.display="none",ad(()=>{void 0!==this.closeCallback&&(this.closeCallback(),this.closeCallback=void 0)},0)}_save(){this.updateCallback(this.color),this.applied=!1,this._hide()}_apply(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}_loadLast(){void 0!==this.previousColor?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}_setColor(t){!0===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(this.initialColor=Rp({},t)),this.color=t;const e=nm(t.r,t.g,t.b),n=2*Math.PI,r=this.r*e.s,i=this.centerCoordinates.x+r*Math.sin(n*e.h),o=this.centerCoordinates.y+r*Math.cos(n*e.h);this.colorPickerSelector.style.left=i-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=o-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(t)}_setOpacity(t){this.color.a=t/100,this._updatePicker(this.color)}_setBrightness(t){const e=nm(this.color.r,this.color.g,this.color.b);e.v=t/100;const n=im(e.h,e.s,e.v);n.a=this.color.a,this.color=n,this._updatePicker()}_updatePicker(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.color;const e=nm(t.r,t.g,t.b),n=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(n.webkitBackingStorePixelRatio||n.mozBackingStorePixelRatio||n.msBackingStorePixelRatio||n.oBackingStorePixelRatio||n.backingStorePixelRatio||1)),n.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);const r=this.colorPickerCanvas.clientWidth,i=this.colorPickerCanvas.clientHeight;n.clearRect(0,0,r,i),n.putImageData(this.hueCircle,0,0),n.fillStyle="rgba(0,0,0,"+(1-e.v)+")",n.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),vd(n).call(n),this.brightnessRange.value=100*e.v,this.opacityRange.value=100*t.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}_setSize(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}_create(){var t,e,n,r;if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){const t=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{const t=document.createElement("DIV");t.style.color="red",t.style.fontWeight="bold",t.style.padding="10px",t.innerText="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(t)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch(t){}this.opacityRange.value="100",this.opacityRange.className="vis-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch(t){}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);const i=this;this.opacityRange.onchange=function(){i._setOpacity(this.value)},this.opacityRange.oninput=function(){i._setOpacity(this.value)},this.brightnessRange.onchange=function(){i._setBrightness(this.value)},this.brightnessRange.oninput=function(){i._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.innerText="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerText="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerText="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerText="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerText="cancel",this.cancelButton.onclick=xl(t=this._hide).call(t,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerText="apply",this.applyButton.onclick=xl(e=this._apply).call(e,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerText="save",this.saveButton.onclick=xl(n=this._save).call(n,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerText="load last",this.loadButton.onclick=xl(r=this._loadLast).call(r,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}_bindHammer(){this.drag={},this.pinch={},this.hammer=new Yh(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("hammer.input",t=>{t.isFirst&&this._moveSelector(t)}),this.hammer.on("tap",t=>{this._moveSelector(t)}),this.hammer.on("panstart",t=>{this._moveSelector(t)}),this.hammer.on("panmove",t=>{this._moveSelector(t)}),this.hammer.on("panend",t=>{this._moveSelector(t)})}_generateHueCircle(){if(!1===this.generated){const t=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)),t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);const e=this.colorPickerCanvas.clientWidth,n=this.colorPickerCanvas.clientHeight;let r,i,o,a;t.clearRect(0,0,e,n),this.centerCoordinates={x:.5*e,y:.5*n},this.r=.49*e;const s=2*Math.PI/360,u=1/360,c=1/this.r;let l;for(o=0;o<360;o++)for(a=0;a<this.r;a++)r=this.centerCoordinates.x+a*Math.sin(s*o),i=this.centerCoordinates.y+a*Math.cos(s*o),l=im(o*u,a*c,1),t.fillStyle="rgb("+l.r+","+l.g+","+l.b+")",t.fillRect(r-.5,i-.5,2,2);t.strokeStyle="rgba(0,0,0,1)",t.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),t.stroke(),this.hueCircle=t.getImageData(0,0,e,n)}this.generated=!0}_moveSelector(t){const e=this.colorPickerDiv.getBoundingClientRect(),n=t.center.x-e.left,r=t.center.y-e.top,i=.5*this.colorPickerDiv.clientHeight,o=.5*this.colorPickerDiv.clientWidth,a=n-o,s=r-i,u=Math.atan2(a,s),c=.98*Math.min(Math.sqrt(a*a+s*s),o),l=Math.cos(u)*c+i,f=Math.sin(u)*c+o;this.colorPickerSelector.style.top=l-.5*this.colorPickerSelector.clientHeight+"px",this.colorPickerSelector.style.left=f-.5*this.colorPickerSelector.clientWidth+"px";let h=u/(2*Math.PI);h=h<0?h+1:h;const p=c/this.r,d=nm(this.color.r,this.color.g,this.color.b);d.h=h,d.s=p;const v=im(d.h,d.s,d.v);v.a=this.color.a,this.color=v,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}};function dm(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(e.length<1)throw new TypeError("Invalid arguments.");if(1===e.length)return document.createTextNode(e[0]);{const t=document.createElement(e[0]);return t.appendChild(dm(..._a(e).call(e,1))),t}}let vm,gm=!1;const mm="background: #FFeeee; color: #dd0000";const ym=Xh,bm=pm,wm=class{constructor(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:()=>!1;this.parent=t,this.changedOptions=[],this.container=e,this.allowCreation=!1,this.hideOption=i,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},Rp(this.options,this.defaultOptions),this.configureOptions=n,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new pm(r),this.wrapper=void 0}setOptions(t){if(void 0!==t){this.popupHistory={},this._removePopup();let e=!0;if("string"==typeof t)this.options.filter=t;else if($a(t))this.options.filter=t.join();else if("object"==typeof t){if(null==t)throw new TypeError("options cannot be null");void 0!==t.container&&(this.options.container=t.container),void 0!==xv(t)&&(this.options.filter=xv(t)),void 0!==t.showButton&&(this.options.showButton=t.showButton),void 0!==t.enabled&&(e=t.enabled)}else"boolean"==typeof t?(this.options.filter=!0,e=t):"function"==typeof t&&(this.options.filter=t,e=!0);!1===xv(this.options)&&(e=!1),this.options.enabled=e}this._clean()}setModuleOptions(t){this.moduleOptions=t,!0===this.options.enabled&&(this._clean(),void 0!==this.options.container&&(this.container=this.options.container),this._create())}_create(){this._clean(),this.changedOptions=[];const t=xv(this.options);let e=0,n=!1;for(const r in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,r)&&(this.allowCreation=!1,n=!1,"function"==typeof t?(n=t(r,[]),n=n||this._handleObject(this.configureOptions[r],[r],!0)):!0!==t&&-1===Og(t).call(t,r)||(n=!0),!1!==n&&(this.allowCreation=!0,e>0&&this._makeItem([]),this._makeHeader(r),this._handleObject(this.configureOptions[r],[r])),e++);this._makeButton(),this._push()}_push(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(let t=0;t<this.domElements.length;t++)this.wrapper.appendChild(this.domElements[t]);this._showPopupIfNeeded()}_clean(){for(let t=0;t<this.domElements.length;t++)this.wrapper.removeChild(this.domElements[t]);void 0!==this.wrapper&&(this.container.removeChild(this.wrapper),this.wrapper=void 0),this.domElements=[],this._removePopup()}_getValue(t){let e=this.moduleOptions;for(let n=0;n<t.length;n++){if(void 0===e[t[n]]){e=void 0;break}e=e[t[n]]}return e}_makeItem(t){if(!0===this.allowCreation){const i=document.createElement("div");i.className="vis-configuration vis-config-item vis-config-s"+t.length;for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return Ql(n).call(n,t=>{i.appendChild(t)}),this.domElements.push(i),this.domElements.length}return 0}_makeHeader(t){const e=document.createElement("div");e.className="vis-configuration vis-config-header",e.innerText=t,this._makeItem([],e)}_makeLabel(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=document.createElement("div");if(r.className="vis-configuration vis-config-label vis-config-s"+e.length,!0===n){for(;r.firstChild;)r.removeChild(r.firstChild);r.appendChild(dm("i","b",t))}else r.innerText=t+":";return r}_makeDropdown(t,e,n){const r=document.createElement("select");r.className="vis-configuration vis-config-select";let i=0;void 0!==e&&-1!==Og(t).call(t,e)&&(i=Og(t).call(t,e));for(let e=0;e<t.length;e++){const n=document.createElement("option");n.value=t[e],e===i&&(n.selected="selected"),n.innerText=t[e],r.appendChild(n)}const o=this;r.onchange=function(){o._update(this.value,n)};const a=this._makeLabel(n[n.length-1],n);this._makeItem(n,a,r)}_makeRange(t,e,n){const r=t[0],i=t[1],o=t[2],a=t[3],s=document.createElement("input");s.className="vis-configuration vis-config-range";try{s.type="range",s.min=i,s.max=o}catch(t){}s.step=a;let u="",c=0;if(void 0!==e){const t=1.2;e<0&&e*t<i?(s.min=Math.ceil(e*t),c=s.min,u="range increased"):e/t<i&&(s.min=Math.ceil(e/t),c=s.min,u="range increased"),e*t>o&&1!==o&&(s.max=Math.ceil(e*t),c=s.max,u="range increased"),s.value=e}else s.value=r;const l=document.createElement("input");l.className="vis-configuration vis-config-rangeinput",l.value=s.value;const f=this;s.onchange=function(){l.value=this.value,f._update(Number(this.value),n)},s.oninput=function(){l.value=this.value};const h=this._makeLabel(n[n.length-1],n),p=this._makeItem(n,h,s,l);""!==u&&this.popupHistory[p]!==c&&(this.popupHistory[p]=c,this._setupPopup(u,p))}_makeButton(){if(!0===this.options.showButton){const t=document.createElement("div");t.className="vis-configuration vis-config-button",t.innerText="generate options",t.onclick=()=>{this._printOptions()},t.onmouseover=()=>{t.className="vis-configuration vis-config-button hover"},t.onmouseout=()=>{t.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(t)}}_setupPopup(t,e){if(!0===this.initialized&&!0===this.allowCreation&&this.popupCounter<this.popupLimit){const n=document.createElement("div");n.id="vis-configuration-popup",n.className="vis-configuration-popup",n.innerText=t,n.onclick=()=>{this._removePopup()},this.popupCounter+=1,this.popupDiv={html:n,index:e}}}_removePopup(){void 0!==this.popupDiv.html&&(this.popupDiv.html.parentNode.removeChild(this.popupDiv.html),clearTimeout(this.popupDiv.hideTimeout),clearTimeout(this.popupDiv.deleteTimeout),this.popupDiv={})}_showPopupIfNeeded(){if(void 0!==this.popupDiv.html){const t=this.domElements[this.popupDiv.index].getBoundingClientRect();this.popupDiv.html.style.left=t.left+"px",this.popupDiv.html.style.top=t.top-30+"px",document.body.appendChild(this.popupDiv.html),this.popupDiv.hideTimeout=ad(()=>{this.popupDiv.html.style.opacity=0},1500),this.popupDiv.deleteTimeout=ad(()=>{this._removePopup()},1800)}}_makeCheckbox(t,e,n){const r=document.createElement("input");r.type="checkbox",r.className="vis-configuration vis-config-checkbox",r.checked=t,void 0!==e&&(r.checked=e,e!==t&&("object"==typeof t?e!==t.enabled&&this.changedOptions.push({path:n,value:e}):this.changedOptions.push({path:n,value:e})));const i=this;r.onchange=function(){i._update(this.checked,n)};const o=this._makeLabel(n[n.length-1],n);this._makeItem(n,o,r)}_makeTextInput(t,e,n){const r=document.createElement("input");r.type="text",r.className="vis-configuration vis-config-text",r.value=e,e!==t&&this.changedOptions.push({path:n,value:e});const i=this;r.onchange=function(){i._update(this.value,n)};const o=this._makeLabel(n[n.length-1],n);this._makeItem(n,o,r)}_makeColorField(t,e,n){const r=t[1],i=document.createElement("div");"none"!==(e=void 0===e?r:e)?(i.className="vis-configuration vis-config-colorBlock",i.style.backgroundColor=e):i.className="vis-configuration vis-config-colorBlock none",e=void 0===e?r:e,i.onclick=()=>{this._showColorPicker(e,i,n)};const o=this._makeLabel(n[n.length-1],n);this._makeItem(n,o,i)}_showColorPicker(t,e,n){e.onclick=function(){},this.colorPicker.insertTo(e),this.colorPicker.show(),this.colorPicker.setColor(t),this.colorPicker.setUpdateCallback(t=>{const r="rgba("+t.r+","+t.g+","+t.b+","+t.a+")";e.style.backgroundColor=r,this._update(r,n)}),this.colorPicker.setCloseCallback(()=>{e.onclick=()=>{this._showColorPicker(t,e,n)}})}_handleObject(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!1;const i=xv(this.options);let o=!1;for(const a in t)if(Object.prototype.hasOwnProperty.call(t,a)){r=!0;const s=t[a],u=Qg(e,a);if("function"==typeof i&&(r=i(a,e),!1===r&&!$a(s)&&"string"!=typeof s&&"boolean"!=typeof s&&s instanceof Object&&(this.allowCreation=!1,r=this._handleObject(s,u,!0),this.allowCreation=!1===n)),!1!==r){o=!0;const t=this._getValue(u);if($a(s))this._handleArray(s,t,u);else if("string"==typeof s)this._makeTextInput(s,t,u);else if("boolean"==typeof s)this._makeCheckbox(s,t,u);else if(s instanceof Object){if(!this.hideOption(e,a,this.moduleOptions))if(void 0!==s.enabled){const t=Qg(u,"enabled"),e=this._getValue(t);if(!0===e){const t=this._makeLabel(a,u,!0);this._makeItem(u,t),o=this._handleObject(s,u)||o}else this._makeCheckbox(s,e,u)}else{const t=this._makeLabel(a,u,!0);this._makeItem(u,t),o=this._handleObject(s,u)||o}}else console.error("dont know how to handle",s,a,u)}}return o}_handleArray(t,e,n){"string"==typeof t[0]&&"color"===t[0]?(this._makeColorField(t,e,n),t[1]!==e&&this.changedOptions.push({path:n,value:e})):"string"==typeof t[0]?(this._makeDropdown(t,e,n),t[0]!==e&&this.changedOptions.push({path:n,value:e})):"number"==typeof t[0]&&(this._makeRange(t,e,n),t[0]!==e&&this.changedOptions.push({path:n,value:Number(e)}))}_update(t,e){const n=this._constructOptions(t,e);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",n),this.initialized=!0,this.parent.setOptions(n)}_constructOptions(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n;t="false"!==(t="true"===t||t)&&t;for(let n=0;n<e.length;n++)"global"!==e[n]&&(void 0===r[e[n]]&&(r[e[n]]={}),n!==e.length-1?r=r[e[n]]:r[e[n]]=t);return n}_printOptions(){const t=this.getOptions();for(;this.optionsContainer.firstChild;)this.optionsContainer.removeChild(this.optionsContainer.firstChild);this.optionsContainer.appendChild(dm("pre","const options = "+Ep(t,null,2)))}getOptions(){const t={};for(let e=0;e<this.changedOptions.length;e++)this._constructOptions(this.changedOptions[e].value,this.changedOptions[e].path,t);return t}},Cm=Yh,Em=class{constructor(t,e){this.container=t,this.overflowMethod=e||"cap",this.x=0,this.y=0,this.padding=5,this.hidden=!1,this.frame=document.createElement("div"),this.frame.className="vis-tooltip",this.container.appendChild(this.frame)}setPosition(t,e){this.x=hg(t),this.y=hg(e)}setText(t){if(t instanceof Element){for(;this.frame.firstChild;)this.frame.removeChild(this.frame.firstChild);this.frame.appendChild(t)}else this.frame.innerText=t}show(t){if(void 0===t&&(t=!0),!0===t){const t=this.frame.clientHeight,e=this.frame.clientWidth,n=this.frame.parentNode.clientHeight,r=this.frame.parentNode.clientWidth;let i=0,o=0;if("flip"==this.overflowMethod){let n=!1,a=!0;this.y-t<this.padding&&(a=!1),this.x+e>r-this.padding&&(n=!0),i=n?this.x-e:this.x,o=a?this.y-t:this.y}else o=this.y-t,o+t+this.padding>n&&(o=n-t-this.padding),o<this.padding&&(o=this.padding),i=this.x,i+e+this.padding>r&&(i=r-e-this.padding),i<this.padding&&(i=this.padding);this.frame.style.left=i+"px",this.frame.style.top=o+"px",this.frame.style.visibility="visible",this.hidden=!1}else this.hide()}hide(){this.hidden=!0,this.frame.style.left="0",this.frame.style.top="0",this.frame.style.visibility="hidden"}destroy(){this.frame.parentNode.removeChild(this.frame)}},km=mm,Om=class t{static validate(e,n,r){gm=!1,vm=n;let i=n;return void 0!==r&&(i=n[r]),t.parse(e,i,[]),gm}static parse(e,n,r){for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.check(i,e,n,r)}static check(e,n,r,i){if(void 0===r[e]&&void 0===r.__any__)return void t.getSuggestion(e,r,i);let o=e,a=!0;void 0===r[e]&&void 0!==r.__any__&&(o="__any__",a="object"===t.getType(n[e]));let s=r[o];a&&void 0!==s.__type__&&(s=s.__type__),t.checkFields(e,n,r,o,s,i)}static checkFields(e,n,r,i,o,a){const s=function(n){console.error("%c"+n+t.printLocation(a,e),mm)},u=t.getType(n[e]),c=o[u];void 0!==c?"array"===t.getType(c)&&-1===Og(c).call(c,n[e])?(s('Invalid option detected in "'+e+'". Allowed values are:'+t.print(c)+' not "'+n[e]+'". '),gm=!0):"object"===u&&"__any__"!==i&&(a=Qg(a,e),t.parse(n[e],r[i],a)):void 0===o.any&&(s('Invalid type received for "'+e+'". Expected: '+t.print(ps(o))+". Received ["+u+'] "'+n[e]+'"'),gm=!0)}static getType(t){const e=typeof t;return"object"===e?null===t?"null":t instanceof Boolean?"boolean":t instanceof Number?"number":t instanceof String?"string":$a(t)?"array":t instanceof Date?"date":void 0!==t.nodeType?"dom":!0===t._isAMomentObject?"moment":"object":"number"===e?"number":"boolean"===e?"boolean":"string"===e?"string":void 0===e?"undefined":e}static getSuggestion(e,n,r){const i=t.findInOptions(e,n,r,!1),o=t.findInOptions(e,vm,[],!0);let a;a=void 0!==i.indexMatch?" in "+t.printLocation(i.path,e,"")+'Perhaps it was incomplete? Did you mean: "'+i.indexMatch+'"?\n\n':o.distance<=4&&i.distance>o.distance?" in "+t.printLocation(i.path,e,"")+"Perhaps it was misplaced? Matching option found at: "+t.printLocation(o.path,o.closestMatch,""):i.distance<=8?'. Did you mean "'+i.closestMatch+'"?'+t.printLocation(i.path,e):". Did you mean one of these: "+t.print(ps(n))+t.printLocation(r,e),console.error('%cUnknown option detected: "'+e+'"'+a,mm),gm=!0}static findInOptions(e,n,r){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=1e9,a="",s=[];const u=e.toLowerCase();let c;for(const f in n){let h;if(void 0!==n[f].__type__&&!0===i){const i=t.findInOptions(e,n[f],Qg(r,f));o>i.distance&&(a=i.closestMatch,s=i.path,o=i.distance,c=i.indexMatch)}else{var l;-1!==Og(l=f.toLowerCase()).call(l,u)&&(c=f),h=t.levenshteinDistance(e,f),o>h&&(a=f,s=$g(r),o=h)}}return{closestMatch:a,path:s,distance:o,indexMatch:c}}static printLocation(t,e){let n="\n\n"+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Problem value found at: \n")+"options = {\n";for(let e=0;e<t.length;e++){for(let t=0;t<e+1;t++)n+=" ";n+=t[e]+": {\n"}for(let e=0;e<t.length+1;e++)n+=" ";n+=e+"\n";for(let e=0;e<t.length+1;e++){for(let r=0;r<t.length-e;r++)n+=" ";n+="}\n"}return n+"\n\n"}static print(t){return Ep(t).replace(/(")|(\[)|(\])|(,"__type__")/g,"").replace(/(,)/g,", ")}static levenshteinDistance(t,e){if(0===t.length)return e.length;if(0===e.length)return t.length;const n=[];let r,i;for(r=0;r<=e.length;r++)n[r]=[r];for(i=0;i<=t.length;i++)n[0][i]=i;for(r=1;r<=e.length;r++)for(i=1;i<=t.length;i++)e.charAt(r-1)==t.charAt(i-1)?n[r][i]=n[r-1][i-1]:n[r][i]=Math.min(n[r-1][i-1]+1,Math.min(n[r][i-1]+1,n[r-1][i]+1));return n[e.length][t.length]}};t.Activator=ym,t.Alea=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){let e=function(){const t=function(){let t=4022871197;return function(e){const n=e.toString();for(let e=0;e<n.length;e++){t+=n.charCodeAt(e);let r=.02519603282416938*t;t=r>>>0,r-=t,r*=t,t=r>>>0,r-=t,t+=4294967296*r}return 2.3283064365386963e-10*(t>>>0)}}();let e=t(" "),n=t(" "),r=t(" ");for(let i=0;i<arguments.length;i++)e-=t(i<0||arguments.length<=i?void 0:arguments[i]),e<0&&(e+=1),n-=t(i<0||arguments.length<=i?void 0:arguments[i]),n<0&&(n+=1),r-=t(i<0||arguments.length<=i?void 0:arguments[i]),r<0&&(r+=1);return[e,n,r]}(t),n=qc(e,3),r=n[0],i=n[1],o=n[2],a=1;const s=()=>{const t=2091639*r+2.3283064365386963e-10*a;return r=i,i=o,o=t-(a=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}(e.length?e:[nl()])},t.ColorPicker=bm,t.Configurator=wm,t.DELETE=ds,t.HSVToHex=om,t.HSVToRGB=im,t.Hammer=Cm,t.Popup=Em,t.RGBToHSV=nm,t.RGBToHex=em,t.VALIDATOR_PRINT_STYLE=km,t.Validator=Om,t.addClassName=function(t,e){let n=t.className.split(" ");const r=e.split(" ");n=yv(n).call(n,xv(r).call(r,function(t){return!Xd(n).call(n,t)})),t.className=n.join(" ")},t.addCssText=function(t,e){const n=rm(e);for(const e of Ng(n)){var r=qc(e,2);const n=r[0],i=r[1];t.style.setProperty(n,i)}},t.binarySearchCustom=function(t,e,n,r){let i=0,o=0,a=t.length-1;for(;o<=a&&i<1e4;){const s=Math.floor((o+a)/2),u=t[s],c=e(void 0===r?u[n]:u[n][r]);if(0==c)return s;-1==c?o=s+1:a=s-1,i++}return-1},t.binarySearchValue=function(t,e,n,r,i){let o,a,s,u,c=0,l=0,f=t.length-1;for(i=null!=i?i:function(t,e){return t==e?0:t<e?-1:1};l<=f&&c<1e4;){if(u=Math.floor(.5*(f+l)),o=t[Math.max(0,u-1)][n],a=t[u][n],s=t[Math.min(t.length-1,u+1)][n],0==i(a,e))return u;if(i(o,e)<0&&i(a,e)>0)return"before"==r?Math.max(0,u-1):u;if(i(a,e)<0&&i(s,e)>0)return"before"==r?u:Math.min(t.length-1,u+1);i(a,e)<0?l=u+1:f=u-1,c++}return-1},t.bridgeObject=lm,t.copyAndExtendArray=Qg,t.copyArray=$g,t.deepExtend=Jg,t.deepObjectAssign=vs,t.easingFunctions=fm,t.equalArray=function(t,e){if(t.length!==e.length)return!1;for(let n=0,r=t.length;n<r;n++)if(t[n]!=e[n])return!1;return!0},t.extend=Gg,t.fillIfDefined=function t(e,n){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(const i in e)if(void 0!==n[i])if(null===n[i]||"object"!=typeof n[i])Xg(e,n,i,r);else{const o=e[i],a=n[i];Yg(o)&&Yg(a)&&t(o,a,r)}},t.forEach=function(t,e){if($a(t)){const n=t.length;for(let r=0;r<n;r++)e(t[r],r,t)}else for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&e(t[n],n,t)},t.getAbsoluteLeft=function(t){return t.getBoundingClientRect().left},t.getAbsoluteRight=function(t){return t.getBoundingClientRect().right},t.getAbsoluteTop=function(t){return t.getBoundingClientRect().top},t.getScrollBarWidth=function(){const t=document.createElement("p");t.style.width="100%",t.style.height="200px";const e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.style.visibility="hidden",e.style.width="200px",e.style.height="150px",e.style.overflow="hidden",e.appendChild(t),document.body.appendChild(e);const n=t.offsetWidth;e.style.overflow="scroll";let r=t.offsetWidth;return n==r&&(r=e.clientWidth),document.body.removeChild(e),n-r},t.getTarget=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.event,e=null;return t&&(t.target?e=t.target:t.srcElement&&(e=t.srcElement)),e instanceof Element&&(null==e.nodeType||3!=e.nodeType||(e=e.parentNode,e instanceof Element))?e:null},t.getType=function(t){const e=typeof t;return"object"===e?null===t?"null":t instanceof Boolean?"Boolean":t instanceof Number?"Number":t instanceof String?"String":$a(t)?"Array":t instanceof Date?"Date":"Object":"number"===e?"Number":"boolean"===e?"Boolean":"string"===e?"String":void 0===e?"undefined":e},t.hasParent=function(t,e){let n=t;for(;n;){if(n===e)return!0;if(!n.parentNode)return!1;n=n.parentNode}return!1},t.hexToHSV=am,t.hexToRGB=tm,t.insertSort=function(t,e){for(let n=0;n<t.length;n++){const r=t[n];let i;for(i=n;i>0&&e(r,t[i-1])<0;i--)t[i]=t[i-1];t[i]=r}return t},t.isDate=function(t){if(t instanceof Date)return!0;if(qg(t)){if(Lg.exec(t))return!0;if(!isNaN(Date.parse(t)))return!0}return!1},t.isNumber=Vg,t.isObject=Yg,t.isString=qg,t.isValidHex=sm,t.isValidRGB=um,t.isValidRGBA=cm,t.mergeOptions=function(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=function(t){return null!=t},o=function(t){return null!==t&&"object"==typeof t};if(!o(t))throw new Error("Parameter mergeTarget must be an object");if(!o(e))throw new Error("Parameter options must be an object");if(!i(n))throw new Error("Parameter option must have a value");if(!o(r))throw new Error("Parameter globalOptions must be an object");const a=e[n],s=o(r)&&!function(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}(r)?r[n]:void 0,u=s?s.enabled:void 0;if(void 0===a)return;if("boolean"==typeof a)return o(t[n])||(t[n]={}),void(t[n].enabled=a);if(null===a&&!o(t[n])){if(!i(s))return;t[n]=Mg(s)}if(!o(a))return;let c=!0;void 0!==a.enabled?c=a.enabled:void 0!==u&&(c=s.enabled),function(t,e,n){o(t[n])||(t[n]={});const r=e[n],i=t[n];for(const t in r)Object.prototype.hasOwnProperty.call(r,t)&&(i[t]=r[t])}(t,e,n),t[n].enabled=c},t.option=Zg,t.overrideOpacity=function(t,e){if(Xd(t).call(t,"rgba"))return t;if(Xd(t).call(t,"rgb")){const n=t.substr(Og(t).call(t,"(")+1).replace(")","").split(",");return"rgba("+n[0]+","+n[1]+","+n[2]+","+e+")"}{const n=tm(t);return null==n?t:"rgba("+n.r+","+n.g+","+n.b+","+e+")"}},t.parseColor=function(t,e){if(qg(t)){let e=t;if(um(e)){var n;const t=cs(n=e.substr(4).substr(0,e.length-5).split(",")).call(n,function(t){return hg(t)});e=em(t[0],t[1],t[2])}if(!0===sm(e)){const t=am(e),n={h:t.h,s:.8*t.s,v:Math.min(1,1.02*t.v)},r={h:t.h,s:Math.min(1,1.25*t.s),v:.8*t.v},i=om(r.h,r.s,r.v),o=om(n.h,n.s,n.v);return{background:e,border:i,highlight:{background:o,border:i},hover:{background:o,border:i}}}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:qg(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:qg(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:qg(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:qg(t.hover)?{border:t.hover,background:t.hover}:{border:t.hover&&t.hover.border||void 0,background:t.hover&&t.hover.background||void 0}}},t.preventDefault=function(t){t||(t=window.event),t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},t.pureDeepObjectAssign=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return vs({},t,...n)},t.recursiveDOMDelete=function t(e){if(e)for(;!0===e.hasChildNodes();){const n=e.firstChild;n&&(t(n),e.removeChild(n))}},t.removeClassName=function(t,e){let n=t.className.split(" ");const r=e.split(" ");n=xv(n).call(n,function(t){return!Xd(r).call(r,t)}),t.className=n.join(" ")},t.removeCssText=function(t,e){const n=rm(e);for(const e of ps(n))t.style.removeProperty(e)},t.selectiveBridgeObject=function(t,e){if(null!==e&&"object"==typeof e){const n=Mg(e);for(let r=0;r<t.length;r++)Object.prototype.hasOwnProperty.call(e,t[r])&&"object"==typeof e[t[r]]&&(n[t[r]]=lm(e[t[r]]));return n}return null},t.selectiveDeepExtend=function(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if($a(n))throw new TypeError("Arrays are not supported by deepExtend");for(let i=0;i<t.length;i++){const o=t[i];if(Object.prototype.hasOwnProperty.call(n,o))if(n[o]&&n[o].constructor===Object)void 0===e[o]&&(e[o]={}),e[o].constructor===Object?Jg(e[o],n[o],!1,r):Xg(e,n,o,r);else{if($a(n[o]))throw new TypeError("Arrays are not supported by deepExtend");Xg(e,n,o,r)}}return e},t.selectiveExtend=function(t,e){if(!$a(t))throw new Error("Array with property names expected as first argument");for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];for(const n of r)for(let r=0;r<t.length;r++){const i=t[r];n&&Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},t.selectiveNotDeepExtend=function(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if($a(n))throw new TypeError("Arrays are not supported by deepExtend");for(const i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&!Xd(t).call(t,i))if(n[i]&&n[i].constructor===Object)void 0===e[i]&&(e[i]={}),e[i].constructor===Object?Jg(e[i],n[i]):Xg(e,n,i,r);else if($a(n[i])){e[i]=[];for(let t=0;t<n[i].length;t++)e[i].push(n[i][t])}else Xg(e,n,i,r);return e},t.throttle=function(t){let e=!1;return()=>{e||(e=!0,requestAnimationFrame(()=>{e=!1,t()}))}},t.toArray=Kg,t.topMost=function(t,e){let n;$a(e)||(e=[e]);for(const r of t)if(r){n=r[e[0]];for(let t=1;t<e.length;t++)n&&(n=n[e[t]]);if(void 0!==n)break}return n},t.updateProperty=function(t,e,n){return t[e]!==n&&(t[e]=n,!0)}});
|
|
33
|
+
function yf(){return yf=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},yf.apply(this,arguments)}function bf(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function wf(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}gf="function"!=typeof Object.assign?function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i])}return e}:Object.assign;var Cf,Of=gf,Ef=["","webkit","Moz","MS","ms","o"],kf="undefined"==typeof document?{style:{}}:document.createElement("div"),Tf=Math.round,Sf=Math.abs,Ff=Date.now;function _f(t,e){for(var n,r,i=e[0].toUpperCase()+e.slice(1),o=0;o<Ef.length;){if((r=(n=Ef[o])?n+i:e)in t)return r;o++}}Cf="undefined"==typeof window?{}:window;var Af=_f(kf.style,"touchAction"),Df=void 0!==Af;var Pf="compute",xf="auto",jf="manipulation",Nf="none",Rf="pan-x",If="pan-y",Bf=function(){if(!Df)return!1;var t={},e=Cf.CSS&&Cf.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(n){return t[n]=!e||Cf.CSS.supports("touch-action",n)}),t}(),Mf="ontouchstart"in Cf,Lf=void 0!==_f(Cf,"PointerEvent"),zf=Mf&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),Hf="touch",Wf="mouse",Uf=16,Vf=24,qf=["x","y"],Yf=["clientX","clientY"];function Xf(t,e,n){var r;if(t)if(t.forEach)t.forEach(e,n);else if(void 0!==t.length)for(r=0;r<t.length;)e.call(n,t[r],r,t),r++;else for(r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t)}function Gf(t,e){return"function"==typeof t?t.apply(e&&e[0]||void 0,e):t}function Jf(t,e){return t.indexOf(e)>-1}var Qf=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){t===Pf&&(t=this.compute()),Df&&this.manager.element.style&&Bf[t]&&(this.manager.element.style[Af]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return Xf(this.manager.recognizers,function(e){Gf(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),function(t){if(Jf(t,Nf))return Nf;var e=Jf(t,Rf),n=Jf(t,If);return e&&n?Nf:e||n?e?Rf:If:Jf(t,jf)?jf:xf}(t.join(" "))},e.preventDefaults=function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var r=this.actions,i=Jf(r,Nf)&&!Bf[Nf],o=Jf(r,If)&&!Bf[If],a=Jf(r,Rf)&&!Bf[Rf];if(i){var s=1===t.pointers.length,u=t.distance<2,c=t.deltaTime<250;if(s&&u&&c)return}if(!a||!o)return i||o&&6&n||a&&n&Vf?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function $f(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function Kf(t){var e=t.length;if(1===e)return{x:Tf(t[0].clientX),y:Tf(t[0].clientY)};for(var n=0,r=0,i=0;i<e;)n+=t[i].clientX,r+=t[i].clientY,i++;return{x:Tf(n/e),y:Tf(r/e)}}function Zf(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:Tf(t.pointers[n].clientX),clientY:Tf(t.pointers[n].clientY)},n++;return{timeStamp:Ff(),pointers:e,center:Kf(e),deltaX:t.deltaX,deltaY:t.deltaY}}function th(t,e,n){n||(n=qf);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return Math.sqrt(r*r+i*i)}function eh(t,e,n){n||(n=qf);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return 180*Math.atan2(i,r)/Math.PI}function nh(t,e){return t===e?1:Sf(t)>=Sf(e)?t<0?2:4:e<0?8:Uf}function rh(t,e,n){return{x:e/t||0,y:n/t||0}}function ih(t,e){var n=t.session,r=e.pointers,i=r.length;n.firstInput||(n.firstInput=Zf(e)),i>1&&!n.firstMultiple?n.firstMultiple=Zf(e):1===i&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,s=a?a.center:o.center,u=e.center=Kf(r);e.timeStamp=Ff(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=eh(s,u),e.distance=th(s,u),function(t,e){var n=e.center,r=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};1!==e.eventType&&4!==o.eventType||(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=i.x+(n.x-r.x),e.deltaY=i.y+(n.y-r.y)}(n,e),e.offsetDirection=nh(e.deltaX,e.deltaY);var c,l,f=rh(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=f.x,e.overallVelocityY=f.y,e.overallVelocity=Sf(f.x)>Sf(f.y)?f.x:f.y,e.scale=a?(c=a.pointers,th((l=r)[0],l[1],Yf)/th(c[0],c[1],Yf)):1,e.rotation=a?function(t,e){return eh(e[1],e[0],Yf)+eh(t[1],t[0],Yf)}(a.pointers,r):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,r,i,o,a=t.lastInterval||e,s=e.timeStamp-a.timeStamp;if(8!==e.eventType&&(s>25||void 0===a.velocity)){var u=e.deltaX-a.deltaX,c=e.deltaY-a.deltaY,l=rh(s,u,c);r=l.x,i=l.y,n=Sf(l.x)>Sf(l.y)?l.x:l.y,o=nh(u,c),t.lastInterval=e}else n=a.velocity,r=a.velocityX,i=a.velocityY,o=a.direction;e.velocity=n,e.velocityX=r,e.velocityY=i,e.direction=o}(n,e);var h,p=t.element,d=e.srcEvent;$f(h=d.composedPath?d.composedPath()[0]:d.path?d.path[0]:d.target,p)&&(p=h),e.target=p}function oh(t,e,n){var r=n.pointers.length,i=n.changedPointers.length,o=1&e&&r-i===0,a=12&e&&r-i===0;n.isFirst=!!o,n.isFinal=!!a,o&&(t.session={}),n.eventType=e,ih(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function ah(t){return t.trim().split(/\s+/g)}function sh(t,e,n){Xf(ah(e),function(e){t.addEventListener(e,n,!1)})}function uh(t,e,n){Xf(ah(e),function(e){t.removeEventListener(e,n,!1)})}function ch(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var lh=function(){function t(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){Gf(t.options.enable,[t])&&n.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&sh(this.element,this.evEl,this.domHandler),this.evTarget&&sh(this.target,this.evTarget,this.domHandler),this.evWin&&sh(ch(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&uh(this.element,this.evEl,this.domHandler),this.evTarget&&uh(this.target,this.evTarget,this.domHandler),this.evWin&&uh(ch(this.element),this.evWin,this.domHandler)},t}();function fh(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var r=0;r<t.length;){if(n&&t[r][n]==e||!n&&t[r]===e)return r;r++}return-1}var hh={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},ph={2:Hf,3:"pen",4:Wf,5:"kinect"},dh="pointerdown",vh="pointermove pointerup pointercancel";Cf.MSPointerEvent&&!Cf.PointerEvent&&(dh="MSPointerDown",vh="MSPointerMove MSPointerUp MSPointerCancel");var gh=function(t){function e(){var n,r=e.prototype;return r.evEl=dh,r.evWin=vh,(n=t.apply(this,arguments)||this).store=n.manager.session.pointerEvents=[],n}return bf(e,t),e.prototype.handler=function(t){var e=this.store,n=!1,r=t.type.toLowerCase().replace("ms",""),i=hh[r],o=ph[t.pointerType]||t.pointerType,a=o===Hf,s=fh(e,t.pointerId,"pointerId");1&i&&(0===t.button||a)?s<0&&(e.push(t),s=e.length-1):12&i&&(n=!0),s<0||(e[s]=t,this.callback(this.manager,i,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(s,1))},e}(lh);function mh(t){return Array.prototype.slice.call(t,0)}function yh(t,e,n){for(var r=[],i=[],o=0;o<t.length;){var a=e?t[o][e]:t[o];fh(i,a)<0&&r.push(t[o]),i[o]=a,o++}return n&&(r=e?r.sort(function(t,n){return t[e]>n[e]}):r.sort()),r}var bh={touchstart:1,touchmove:2,touchend:4,touchcancel:8},wh=function(t){function e(){var n;return e.prototype.evTarget="touchstart touchmove touchend touchcancel",(n=t.apply(this,arguments)||this).targetIds={},n}return bf(e,t),e.prototype.handler=function(t){var e=bh[t.type],n=Ch.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:Hf,srcEvent:t})},e}(lh);function Ch(t,e){var n,r,i=mh(t.touches),o=this.targetIds;if(3&e&&1===i.length)return o[i[0].identifier]=!0,[i,i];var a=mh(t.changedTouches),s=[],u=this.target;if(r=i.filter(function(t){return $f(t.target,u)}),1===e)for(n=0;n<r.length;)o[r[n].identifier]=!0,n++;for(n=0;n<a.length;)o[a[n].identifier]&&s.push(a[n]),12&e&&delete o[a[n].identifier],n++;return s.length?[yh(r.concat(s),"identifier",!0),s]:void 0}var Oh={mousedown:1,mousemove:2,mouseup:4},Eh=function(t){function e(){var n,r=e.prototype;return r.evEl="mousedown",r.evWin="mousemove mouseup",(n=t.apply(this,arguments)||this).pressed=!1,n}return bf(e,t),e.prototype.handler=function(t){var e=Oh[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:Wf,srcEvent:t}))},e}(lh);function kh(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY},r=this.lastTouches;this.lastTouches.push(n);setTimeout(function(){var t=r.indexOf(n);t>-1&&r.splice(t,1)},2500)}}function Th(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,kh.call(this,e)):12&t&&kh.call(this,e)}function Sh(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],o=Math.abs(e-i.x),a=Math.abs(n-i.y);if(o<=25&&a<=25)return!0}return!1}var Fh=function(){return function(t){function e(e,n){var r;return(r=t.call(this,e,n)||this).handler=function(t,e,n){var i=n.pointerType===Hf,o=n.pointerType===Wf;if(!(o&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)Th.call(wf(wf(r)),e,n);else if(o&&Sh.call(wf(wf(r)),n))return;r.callback(t,e,n)}},r.touch=new wh(r.manager,r.handler),r.mouse=new Eh(r.manager,r.handler),r.primaryTouch=null,r.lastTouches=[],r}return bf(e,t),e.prototype.destroy=function(){this.touch.destroy(),this.mouse.destroy()},e}(lh)}();function _h(t,e,n){return!!Array.isArray(t)&&(Xf(t,n[e],n),!0)}var Ah=32,Dh=1;function Ph(t,e){var n=e.manager;return n?n.get(t):t}function xh(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}var jh=function(){function t(t){void 0===t&&(t={}),this.options=yf({enable:!0},t),this.id=Dh++,this.manager=null,this.state=1,this.simultaneous={},this.requireFail=[]}var e=t.prototype;return e.set=function(t){return Of(this.options,t),this.manager&&this.manager.touchAction.update(),this},e.recognizeWith=function(t){if(_h(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=Ph(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},e.dropRecognizeWith=function(t){return _h(t,"dropRecognizeWith",this)||(t=Ph(t,this),delete this.simultaneous[t.id]),this},e.requireFailure=function(t){if(_h(t,"requireFailure",this))return this;var e=this.requireFail;return-1===fh(e,t=Ph(t,this))&&(e.push(t),t.requireFailure(this)),this},e.dropRequireFailure=function(t){if(_h(t,"dropRequireFailure",this))return this;t=Ph(t,this);var e=fh(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,n=this.state;function r(n){e.manager.emit(n,t)}n<8&&r(e.options.event+xh(n)),r(e.options.event),t.additionalEvent&&r(t.additionalEvent),n>=8&&r(e.options.event+xh(n))},e.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=Ah},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=Of({},t);if(!Gf(this.options.enable,[this,e]))return this.reset(),void(this.state=Ah);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}(),Nh=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,yf({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},e))||this).pTime=!1,n.pCenter=!1,n._timer=null,n._input=null,n.count=0,n}bf(e,t);var n=e.prototype;return n.getTouchAction=function(){return[jf]},n.process=function(t){var e=this,n=this.options,r=t.pointers.length===n.pointers,i=t.distance<n.threshold,o=t.deltaTime<n.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(i&&o&&r){if(4!==t.eventType)return this.failTimeout();var a=!this.pTime||t.timeStamp-this.pTime<n.interval,s=!this.pCenter||th(this.pCenter,t.center)<n.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,s&&a?this.count+=1:this.count=1,this._input=t,0===this.count%n.taps)return this.hasRequireFailures()?(this._timer=setTimeout(function(){e.state=8,e.tryEmit()},n.interval),2):8}return Ah},n.failTimeout=function(){var t=this;return this._timer=setTimeout(function(){t.state=Ah},this.options.interval),Ah},n.reset=function(){clearTimeout(this._timer)},n.emit=function(){8===this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},e}(jh),Rh=function(t){function e(e){return void 0===e&&(e={}),t.call(this,yf({pointers:1},e))||this}bf(e,t);var n=e.prototype;return n.attrTest=function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},n.process=function(t){var e=this.state,n=t.eventType,r=6&e,i=this.attrTest(t);return r&&(8&n||!i)?16|e:r||i?4&n?8|e:2&e?4|e:2:Ah},e}(jh);function Ih(t){return t===Uf?"down":8===t?"up":2===t?"left":4===t?"right":""}var Bh=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,yf({event:"pan",threshold:10,pointers:1,direction:30},e))||this).pX=null,n.pY=null,n}bf(e,t);var n=e.prototype;return n.getTouchAction=function(){var t=this.options.direction,e=[];return 6&t&&e.push(If),t&Vf&&e.push(Rf),e},n.directionTest=function(t){var e=this.options,n=!0,r=t.distance,i=t.direction,o=t.deltaX,a=t.deltaY;return i&e.direction||(6&e.direction?(i=0===o?1:o<0?2:4,n=o!==this.pX,r=Math.abs(t.deltaX)):(i=0===a?1:a<0?8:Uf,n=a!==this.pY,r=Math.abs(t.deltaY))),t.direction=i,n&&r>e.threshold&&i&e.direction},n.attrTest=function(t){return Rh.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},n.emit=function(e){this.pX=e.deltaX,this.pY=e.deltaY;var n=Ih(e.direction);n&&(e.additionalEvent=this.options.event+n),t.prototype.emit.call(this,e)},e}(Rh),Mh=function(t){function e(e){return void 0===e&&(e={}),t.call(this,yf({event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},e))||this}bf(e,t);var n=e.prototype;return n.getTouchAction=function(){return Bh.prototype.getTouchAction.call(this)},n.attrTest=function(e){var n,r=this.options.direction;return 30&r?n=e.overallVelocity:6&r?n=e.overallVelocityX:r&Vf&&(n=e.overallVelocityY),t.prototype.attrTest.call(this,e)&&r&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers===this.options.pointers&&Sf(n)>this.options.velocity&&4&e.eventType},n.emit=function(t){var e=Ih(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},e}(Rh),Lh=function(t){function e(e){return void 0===e&&(e={}),t.call(this,yf({event:"pinch",threshold:0,pointers:2},e))||this}bf(e,t);var n=e.prototype;return n.getTouchAction=function(){return[Nf]},n.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},n.emit=function(e){if(1!==e.scale){var n=e.scale<1?"in":"out";e.additionalEvent=this.options.event+n}t.prototype.emit.call(this,e)},e}(Rh),zh=function(t){function e(e){return void 0===e&&(e={}),t.call(this,yf({event:"rotate",threshold:0,pointers:2},e))||this}bf(e,t);var n=e.prototype;return n.getTouchAction=function(){return[Nf]},n.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)},e}(Rh),Hh=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,yf({event:"press",pointers:1,time:251,threshold:9},e))||this)._timer=null,n._input=null,n}bf(e,t);var n=e.prototype;return n.getTouchAction=function(){return[xf]},n.process=function(t){var e=this,n=this.options,r=t.pointers.length===n.pointers,i=t.distance<n.threshold,o=t.deltaTime>n.time;if(this._input=t,!i||!r||12&t.eventType&&!o)this.reset();else if(1&t.eventType)this.reset(),this._timer=setTimeout(function(){e.state=8,e.tryEmit()},n.time);else if(4&t.eventType)return 8;return Ah},n.reset=function(){clearTimeout(this._timer)},n.emit=function(t){8===this.state&&(t&&4&t.eventType?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=Ff(),this.manager.emit(this.options.event,this._input)))},e}(jh),Wh={domEvents:!1,touchAction:Pf,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Uh=[[zh,{enable:!1}],[Lh,{enable:!1},["rotate"]],[Mh,{direction:6}],[Bh,{direction:6},["swipe"]],[Nh],[Nh,{event:"doubletap",taps:2},["tap"]],[Hh]];function Vh(t,e){var n,r=t.element;r.style&&(Xf(t.options.cssProps,function(i,o){n=_f(r.style,o),e?(t.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=t.oldCssProps[n]||""}),e||(t.oldCssProps={}))}var qh=function(){function t(t,e){var n,r=this;this.options=Of({},Wh,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((n=this).options.inputClass||(Lf?gh:zf?wh:Mf?Fh:Eh))(n,oh),this.touchAction=new Qf(this,this.options.touchAction),Vh(this,!0),Xf(this.options.recognizers,function(t){var e=r.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 Of(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 n;this.touchAction.preventDefaults(t);var r=this.recognizers,i=e.curRecognizer;(!i||i&&8&i.state)&&(e.curRecognizer=null,i=null);for(var o=0;o<r.length;)n=r[o],2===e.stopped||i&&n!==i&&!n.canRecognizeWith(i)?n.reset():n.recognize(t),!i&&14&n.state&&(e.curRecognizer=n,i=n),o++}},e.get=function(t){if(t instanceof jh)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event===t)return e[n];return null},e.add=function(t){if(_h(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(_h(t,"remove",this))return this;var e=this.get(t);if(t){var n=this.recognizers,r=fh(n,e);-1!==r&&(n.splice(r,1),this.touchAction.update())}return this},e.on=function(t,e){if(void 0===t||void 0===e)return this;var n=this.handlers;return Xf(ah(t),function(t){n[t]=n[t]||[],n[t].push(e)}),this},e.off=function(t,e){if(void 0===t)return this;var n=this.handlers;return Xf(ah(t),function(t){e?n[t]&&n[t].splice(fh(n[t],e),1):delete n[t]}),this},e.emit=function(t,e){this.options.domEvents&&function(t,e){var n=document.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](e),r++}},e.destroy=function(){this.element&&Vh(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},t}(),Yh={touchstart:1,touchmove:2,touchend:4,touchcancel:8},Xh=function(t){function e(){var n,r=e.prototype;return r.evTarget="touchstart",r.evWin="touchstart touchmove touchend touchcancel",(n=t.apply(this,arguments)||this).started=!1,n}return bf(e,t),e.prototype.handler=function(t){var e=Yh[t.type];if(1===e&&(this.started=!0),this.started){var n=Gh.call(this,t,e);12&e&&n[0].length-n[1].length===0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:Hf,srcEvent:t})}},e}(lh);function Gh(t,e){var n=mh(t.touches),r=mh(t.changedTouches);return 12&e&&(n=yh(n.concat(r),"identifier",!0)),[n,r]}function Jh(t,e,n){var r="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",i=window.console&&(window.console.warn||window.console.log);return i&&i.call(window.console,r,n),t.apply(this,arguments)}}var Qh=Jh(function(t,e,n){for(var r=Object.keys(e),i=0;i<r.length;)(!n||n&&void 0===t[r[i]])&&(t[r[i]]=e[r[i]]),i++;return t},"extend","Use `assign`."),$h=Jh(function(t,e){return Qh(t,e,!0)},"merge","Use `assign`.");function Kh(t,e,n){var r,i=e.prototype;(r=t.prototype=Object.create(i)).constructor=t,r._super=i,n&&Of(r,n)}function Zh(t,e){return function(){return t.apply(e,arguments)}}var tp=function(){var t=function(t,e){return void 0===e&&(e={}),new qh(t,yf({recognizers:Uh.concat()},e))};return t.VERSION="2.0.17-rc",t.DIRECTION_ALL=30,t.DIRECTION_DOWN=Uf,t.DIRECTION_LEFT=2,t.DIRECTION_RIGHT=4,t.DIRECTION_UP=8,t.DIRECTION_HORIZONTAL=6,t.DIRECTION_VERTICAL=Vf,t.DIRECTION_NONE=1,t.DIRECTION_DOWN=Uf,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=Ah,t.Manager=qh,t.Input=lh,t.TouchAction=Qf,t.TouchInput=wh,t.MouseInput=Eh,t.PointerEventInput=gh,t.TouchMouseInput=Fh,t.SingleTouchInput=Xh,t.Recognizer=jh,t.AttrRecognizer=Rh,t.Tap=Nh,t.Pan=Bh,t.Swipe=Mh,t.Pinch=Lh,t.Rotate=zh,t.Press=Hh,t.on=sh,t.off=uh,t.each=Xf,t.merge=$h,t.extend=Qh,t.bindFn=Zh,t.assign=Of,t.inherit=Kh,t.bindFn=Zh,t.prefixed=_f,t.toArray=mh,t.inArray=fh,t.uniqueArray=yh,t.splitStr=ah,t.boolOrFn=Gf,t.hasParent=$f,t.addEventListeners=sh,t.removeEventListeners=uh,t.defaults=Of({},Wh,{preset:Uh}),t}();tp.defaults;const ep="undefined"!=typeof window?window.Hammer||tp:function(){return function(){const t=()=>{};return{on:t,off:t,destroy:t,emit:t,get:()=>({set:t})}}()};function np(t){var e;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 n=ep(this._dom.overlay);n.on("tap",Hl(e=this._onTapOverlay).call(e,this)),this._cleanupQueue.push(()=>{n.destroy()});const r=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];af(r).call(r,t=>{n.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()}}mf(np.prototype),np.current=null,np.prototype.destroy=function(){this.deactivate();for(const e of pf(t=this._cleanupQueue).call(t,0).toReversed()){var t;e()}},np.prototype.activate=function(){np.current&&np.current.deactivate(),np.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)},np.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")},np.prototype._onTapOverlay=function(t){this.activate(),t.srcEvent.stopPropagation()};var rp,ip,op,ap,sp,up,cp,lp,fp,hp,pp,dp,vp,gp={};function mp(){if(ip)return rp;ip=1;var t=En(),e=Hn(),n=Et(),r=RangeError,i=Math.floor;return rp=function(o){var a=e(n(this)),s="",u=t(o);if(u<0||u===1/0)throw new r("Wrong number of repetitions");for(;u>0;(u=i(u/2))&&(a+=a))u%2&&(s+=a);return s}}function yp(){if(ap)return op;ap=1;var t=k(),e=kn(),n=Hn(),r=mp(),i=Et(),o=t(r),a=t("".slice),s=Math.ceil,u=function(t){return function(r,u,c){var l=n(i(r)),f=e(u),h=l.length;if(f<=h)return l;var p,d,v=void 0===c?" ":n(c);return""===v?l:((d=o(v,s((p=f-h)/v.length))).length>p&&(d=a(d,0,p)),t?l+d:d+l)}};return op={start:u(!1),end:u(!0)}}function bp(){if(up)return sp;up=1;var t=k(),e=C(),n=yp().start,r=RangeError,i=isFinite,o=Math.abs,a=Date.prototype,s=a.toISOString,u=t(a.getTime),c=t(a.getUTCDate),l=t(a.getUTCFullYear),f=t(a.getUTCHours),h=t(a.getUTCMilliseconds),p=t(a.getUTCMinutes),d=t(a.getUTCMonth),v=t(a.getUTCSeconds);return sp=e(function(){return"0385-07-25T07:06:39.999Z"!==s.call(new Date(-50000000000001))})||!e(function(){s.call(new Date(NaN))})?function(){if(!i(u(this)))throw new r("Invalid time value");var t=this,e=l(t),a=h(t),s=e<0?"-":e>9999?"+":"";return s+n(o(e),s?6:4,0)+"-"+n(d(t)+1,2,0)+"-"+n(c(t),2,0)+"T"+n(f(t),2,0)+":"+n(p(t),2,0)+":"+n(v(t),2,0)+"."+n(a,3,0)+"Z"}:s}function wp(){if(fp)return lp;fp=1,function(){if(cp)return gp;cp=1;var t=wn(),e=N(),n=me(),r=Ce(),i=bp(),o=T();t({target:"Date",proto:!0,forced:C()(function(){return null!==new Date(NaN).toJSON()||1!==e(Date.prototype.toJSON,{toISOString:function(){return 1}})})},{toJSON:function(t){var a=n(this),s=r(a,"number");return"number"!=typeof s||isFinite(s)?"toISOString"in a||"Date"!==o(a)?a.toISOString():e(i,a):null}})}(),_i();var t=St(),e=E();return t.JSON||(t.JSON={stringify:JSON.stringify}),lp=function(n,r,i){return e(t.JSON.stringify,null,arguments)},lp}function Cp(){return pp?hp:(pp=1,hp=wp())}var Op,Ep,kp,Tp,Sp,Fp,_p,Ap,Dp,Pp=n(vp?dp:(vp=1,dp=Cp())),xp={};function jp(){if(Ep)return Op;Ep=1;var t=j(),e=k(),n=N(),r=C(),i=pr(),o=jr(),a=bt(),s=me(),u=Ct(),c=Object.assign,l=Object.defineProperty,f=e([].concat);return Op=!c||r(function(){if(t&&1!==c({b:1},c(l({},"a",{enumerable:!0,get:function(){l(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},n={},r=Symbol("assign detection"),o="abcdefghijklmnopqrst";return e[r]=7,o.split("").forEach(function(t){n[t]=t}),7!==c({},e)[r]||i(c({},n)).join("")!==o})?function(e,r){for(var c=s(e),l=arguments.length,h=1,p=o.f,d=a.f;l>h;)for(var v,g=u(arguments[h++]),m=p?f(i(g),p(g)):i(g),y=m.length,b=0;y>b;)v=m[b++],t&&!n(d,g,v)||(c[v]=g[v]);return c}:c,Op}function Np(){return Sp?Tp:(Sp=1,function(){if(kp)return xp;kp=1;var t=wn(),e=jp();t({target:"Object",stat:!0,arity:2,forced:Object.assign!==e},{assign:e})}(),Tp=St().Object.assign)}function Rp(){return _p?Fp:(_p=1,Fp=Np())}var Ip,Bp,Mp,Lp,zp,Hp,Wp,Up=n(Dp?Ap:(Dp=1,Ap=Rp())),Vp={},qp={};function Yp(){if(Bp)return Ip;Bp=1;var t=w(),e=At(),n=T(),r=function(t){return e.slice(0,t.length)===t};return Ip=r("Bun/")?"BUN":r("Cloudflare-Workers")?"CLOUDFLARE":r("Deno/")?"DENO":r("Node.js/")?"NODE":t.Bun&&"string"==typeof Bun.version?"BUN":t.Deno&&"object"==typeof Deno.version?"DENO":"process"===n(t.process)?"NODE":t.window&&t.document?"BROWSER":"REST"}function Xp(){if(Lp)return Mp;Lp=1;var t=TypeError;return Mp=function(e,n){if(e<n)throw new t("Not enough arguments");return e}}function Gp(){if(Hp)return zp;Hp=1;var t,e=w(),n=E(),r=F(),i=Yp(),o=At(),a=Tr(),s=Xp(),u=e.Function,c=/MSIE .\./.test(o)||"BUN"===i&&((t=e.Bun.version.split(".")).length<3||"0"===t[0]&&(t[1]<3||"3"===t[1]&&"0"===t[2]));return zp=function(t,e){var i=e?2:1;return c?function(o,c){var l=s(arguments.length,1)>i,f=r(o)?o:u(o),h=l?a(arguments,i):[],p=l?function(){n(f,this,h)}:f;return e?t(p,c):t(p)}:t},zp}var Jp,Qp,$p,Kp,Zp,td,ed={};function nd(){return Qp||(Qp=1,function(){if(Wp)return qp;Wp=1;var t=wn(),e=w(),n=Gp()(e.setInterval,!0);t({global:!0,bind:!0,forced:e.setInterval!==n},{setInterval:n})}(),function(){if(Jp)return ed;Jp=1;var t=wn(),e=w(),n=Gp()(e.setTimeout,!0);t({global:!0,bind:!0,forced:e.setTimeout!==n},{setTimeout:n})}()),Vp}function rd(){return Kp?$p:(Kp=1,nd(),$p=St().setTimeout)}var id,od,ad,sd,ud,cd,ld,fd,hd,pd,dd,vd=n(td?Zp:(td=1,Zp=rd())),gd={};function md(){if(od)return id;od=1;var t=me(),e=ur(),n=Tn();return id=[].fill||function(r){for(var i=t(this),o=n(i),a=arguments.length,s=e(a>1?arguments[1]:void 0,o),u=a>2?arguments[2]:void 0,c=void 0===u?o:e(u,o);c>s;)i[s++]=r;return i},id}function yd(){return ud?sd:(ud=1,function(){if(ad)return gd;ad=1;var t=wn(),e=md(),n=Wo();t({target:"Array",proto:!0},{fill:e}),n("fill")}(),sd=ya()("Array","fill"))}function bd(){if(ld)return cd;ld=1;var t=_t(),e=yd(),n=Array.prototype;return cd=function(r){var i=r.fill;return r===n||t(n,r)&&i===n.fill?e:i}}function wd(){return hd?fd:(hd=1,fd=bd())}var Cd,Od,Ed,kd=n(dd?pd:(dd=1,pd=wd())),Td={};function Sd(){return Ed?Od:(Ed=1,function(){if(Cd)return Td;Cd=1;var t=wn(),e=cr().includes,n=C(),r=Wo(),i=n(function(){return!Array(1).includes()}),o=n(function(){return[,1].includes(void 0,1)});t({target:"Array",proto:!0,forced:i||o},{includes:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}}),r("includes")}(),Od=ya()("Array","includes"))}var Fd,_d,Ad,Dd,Pd,xd,jd,Nd,Rd,Id,Bd,Md,Ld,zd,Hd,Wd={};function Ud(){if(_d)return Fd;_d=1;var t=Tt(),e=T(),n=we()("match");return Fd=function(r){var i;return t(r)&&(void 0!==(i=r[n])?!!i:"RegExp"===e(r))}}function Vd(){if(Dd)return Ad;Dd=1;var t=Ud(),e=TypeError;return Ad=function(n){if(t(n))throw new e("The method doesn't accept regular expressions");return n}}function qd(){if(xd)return Pd;xd=1;var t=we()("match");return Pd=function(e){var n=/./;try{"/./"[e](n)}catch(r){try{return n[t]=!1,"/./"[e](n)}catch(t){}}return!1}}function Yd(){return Rd?Nd:(Rd=1,function(){if(jd)return Wd;jd=1;var t=wn(),e=k(),n=Vd(),r=Et(),i=Hn(),o=qd(),a=e("".indexOf);t({target:"String",proto:!0,forced:!o("includes")},{includes:function(t){return!!~a(i(r(this)),i(n(t)),arguments.length>1?arguments[1]:void 0)}})}(),Nd=ya()("String","includes"))}function Xd(){if(Bd)return Id;Bd=1;var t=_t(),e=Sd(),n=Yd(),r=Array.prototype,i=String.prototype;return Id=function(o){var a=o.includes;return o===r||t(r,o)&&a===r.includes?e:"string"==typeof o||o===i||t(i,o)&&a===i.includes?n:a}}function Gd(){return Ld?Md:(Ld=1,Md=Xd())}var Jd,Qd,$d,Kd,Zd,tv,ev,nv=n(Hd?zd:(Hd=1,zd=Gd())),rv={};function iv(){return $d?Qd:($d=1,function(){if(Jd)return rv;Jd=1;var t=wn(),e=C(),n=me(),r=Yo(),i=qo();t({target:"Object",stat:!0,forced:e(function(){r(1)}),sham:!i},{getPrototypeOf:function(t){return r(n(t))}})}(),Qd=St().Object.getPrototypeOf)}function ov(){return Zd?Kd:(Zd=1,Kd=iv())}var av,sv,uv,cv,lv,fv,hv,pv,dv=n(ev?tv:(ev=1,tv=ov()));function vv(){return sv?av:(sv=1,In(),av=ya()("Array","concat"))}function gv(){if(cv)return uv;cv=1;var t=_t(),e=vv(),n=Array.prototype;return uv=function(r){var i=r.concat;return r===n||t(n,r)&&i===n.concat?e:i}}function mv(){return fv?lv:(fv=1,lv=gv())}var yv,bv,wv,Cv,Ov,Ev,kv,Tv,Sv,Fv=n(pv?hv:(pv=1,hv=mv())),_v={};function Av(){return wv?bv:(wv=1,function(){if(yv)return _v;yv=1;var t=wn(),e=ai().filter;t({target:"Array",proto:!0,forced:!Rn()("filter")},{filter:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}})}(),bv=ya()("Array","filter"))}function Dv(){if(Ov)return Cv;Ov=1;var t=_t(),e=Av(),n=Array.prototype;return Cv=function(r){var i=r.filter;return r===n||t(n,r)&&i===n.filter?e:i}}function Pv(){return kv?Ev:(kv=1,Ev=Dv())}var xv,jv,Nv,Rv,Iv,Bv,Mv,Lv,zv,Hv=n(Sv?Tv:(Sv=1,Tv=Pv())),Wv={};function Uv(){if(jv)return xv;jv=1;var t=j(),e=C(),n=k(),r=Yo(),i=pr(),o=kt(),a=n(bt().f),s=n([].push),u=t&&e(function(){var t=Object.create(null);return t[2]=2,!a(t,2)}),c=function(e){return function(n){for(var c,l=o(n),f=i(l),h=u&&null===r(l),p=f.length,d=0,v=[];p>d;)c=f[d++],t&&!(h?c in l:a(l,c))||s(v,e?[c,l[c]]:l[c]);return v}};return xv={entries:c(!0),values:c(!1)}}function Vv(){return Iv?Rv:(Iv=1,function(){if(Nv)return Wv;Nv=1;var t=wn(),e=Uv().values;t({target:"Object",stat:!0},{values:function(t){return e(t)}})}(),Rv=St().Object.values)}function qv(){return Mv?Bv:(Mv=1,Bv=Vv())}var Yv,Xv,Gv,Jv,Qv,$v,Kv,Zv,tg,eg,ng,rg,ig,og=n(zv?Lv:(zv=1,Lv=qv())),ag={};function sg(){return Xv?Yv:(Xv=1,Yv="\t\n\v\f\r \u2028\u2029\ufeff")}function ug(){if(Jv)return Gv;Jv=1;var t=k(),e=Et(),n=Hn(),r=sg(),i=t("".replace),o=RegExp("^["+r+"]+"),a=RegExp("(^|[^"+r+"])["+r+"]+$"),s=function(t){return function(r){var s=n(e(r));return 1&t&&(s=i(s,o,"")),2&t&&(s=i(s,a,"$1")),s}};return Gv={start:s(1),end:s(2),trim:s(3)}}function cg(){if($v)return Qv;$v=1;var t=w(),e=C(),n=k(),r=Hn(),i=ug().trim,o=sg(),a=t.parseInt,s=t.Symbol,u=s&&s.iterator,c=/^[+-]?0x/i,l=n(c.exec),f=8!==a(o+"08")||22!==a(o+"0x16")||u&&!e(function(){a(Object(u))});return Qv=f?function(t,e){var n=i(r(t));return a(n,e>>>0||(l(c,n)?16:10))}:a}function lg(){return tg?Zv:(tg=1,function(){if(Kv)return ag;Kv=1;var t=wn(),e=cg();t({global:!0,forced:parseInt!==e},{parseInt:e})}(),Zv=St().parseInt)}function fg(){return ng?eg:(ng=1,eg=lg())}var hg,pg,dg,vg,gg,mg,yg,bg,wg,Cg=n(ig?rg:(ig=1,rg=fg())),Og={};function Eg(){return dg?pg:(dg=1,function(){if(hg)return Og;hg=1;var t=wn(),e=S(),n=cr().indexOf,r=Ul(),i=e([].indexOf),o=!!i&&1/i([1],1,-0)<0;t({target:"Array",proto:!0,forced:o||!r("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return o?i(this,t,e)||0:n(this,t,e)}})}(),pg=ya()("Array","indexOf"))}function kg(){if(gg)return vg;gg=1;var t=_t(),e=Eg(),n=Array.prototype;return vg=function(r){var i=r.indexOf;return r===n||t(n,r)&&i===n.indexOf?e:i}}function Tg(){return yg?mg:(yg=1,mg=kg())}var Sg,Fg,_g,Ag,Dg,Pg,xg,jg=n(wg?bg:(wg=1,bg=Tg())),Ng={};function Rg(){return _g?Fg:(_g=1,function(){if(Sg)return Ng;Sg=1;var t=wn(),e=Uv().entries;t({target:"Object",stat:!0},{entries:function(t){return e(t)}})}(),Fg=St().Object.entries)}function Ig(){return Dg?Ag:(Dg=1,Ag=Rg())}var Bg,Mg,Lg,zg,Hg,Wg,Ug,Vg=n(xg?Pg:(xg=1,Pg=Ig()));function qg(){if(Lg)return Mg;Lg=1,Bg||(Bg=1,wn()({target:"Object",stat:!0,sham:!j()},{create:mr()}));var t=St().Object;return Mg=function(e,n){return t.create(e,n)}}function Yg(){return Hg?zg:(Hg=1,zg=qg())}var Xg=n(Ug?Wg:(Ug=1,Wg=Yg()));const Gg=/^\/?Date\((-?\d+)/i,Jg=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,Qg=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,$g=/^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,Kg=/^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 Zg(t){return t instanceof Number||"number"==typeof t}function tm(t){return t instanceof String||"string"==typeof t}function em(t){return"object"==typeof t&&null!==t}function nm(t,e,n,r){let i=!1;!0===r&&(i=null===e[n]&&void 0!==t[n]),i?delete t[n]:t[n]=e[n]}const rm=Up;function im(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)||!0===n)if("object"==typeof e[o]&&null!==e[o]&&dv(e[o])===Object.prototype)void 0===t[o]?t[o]=im({},e[o],n):"object"==typeof t[o]&&null!==t[o]&&dv(t[o])===Object.prototype?im(t[o],e[o],n):nm(t,e,o,r);else if(ts(e[o])){var i;t[o]=Pa(i=e[o]).call(i)}else nm(t,e,o,r);return t}function om(t,e){return[...t,e]}function am(t){return Pa(t).call(t)}const sm=og;const um={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()),tm(t)?t:Zg(t)?t+"px":e||null),asElement:(t,e)=>("function"==typeof t&&(t=t()),t||e||null)};function cm(t){let e;switch(t.length){case 3:case 4:return e=Qg.exec(t),e?{r:Cg(e[1]+e[1],16),g:Cg(e[2]+e[2],16),b:Cg(e[3]+e[3],16)}:null;case 6:case 7:return e=Jg.exec(t),e?{r:Cg(e[1],16),g:Cg(e[2],16),b:Cg(e[3],16)}:null;default:return null}}function lm(t,e,n){var r;return"#"+Pa(r=((1<<24)+(t<<16)+(e<<8)+n).toString(16)).call(r,1)}function fm(t,e,n){t/=255,e/=255,n/=255;const r=Math.min(t,Math.min(e,n)),i=Math.max(t,Math.max(e,n));if(r===i)return{h:0,s:0,v:r};return{h:60*((t===r?3:n===r?1:5)-(t===r?e-n:n===r?t-e:n-t)/(i-r))/360,s:(i-r)/i,v:i}}function hm(t){const e=document.createElement("div"),n={};e.style.cssText=t;for(let t=0;t<e.style.length;++t)n[e.style[t]]=e.style.getPropertyValue(e.style[t]);return n}function pm(t,e,n){let r,i,o;const a=Math.floor(6*t),s=6*t-a,u=n*(1-e),c=n*(1-s*e),l=n*(1-(1-s)*e);switch(a%6){case 0:r=n,i=l,o=u;break;case 1:r=c,i=n,o=u;break;case 2:r=u,i=n,o=l;break;case 3:r=u,i=c,o=n;break;case 4:r=l,i=u,o=n;break;case 5:r=n,i=u,o=c}return{r:Math.floor(255*r),g:Math.floor(255*i),b:Math.floor(255*o)}}function dm(t,e,n){const r=pm(t,e,n);return lm(r.r,r.g,r.b)}function vm(t){const e=cm(t);if(!e)throw new TypeError("'".concat(t,"' is not a valid color."));return fm(e.r,e.g,e.b)}function gm(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)}function mm(t){return $g.test(t)}function ym(t){return Kg.test(t)}function bm(t){if(null===t||"object"!=typeof t)return null;if(t instanceof Element)return t;const e=Xg(t);for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&"object"==typeof t[n]&&(e[n]=bm(t[n]));return e}const wm={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>t*(2-t),easeInOutQuad:t=>t<.5?2*t*t:(4-2*t)*t-1,easeInCubic:t=>t*t*t,easeOutCubic:t=>--t*t*t+1,easeInOutCubic:t=>t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1,easeInQuart:t=>t*t*t*t,easeOutQuart:t=>1- --t*t*t*t,easeInOutQuart:t=>t<.5?8*t*t*t*t:1-8*--t*t*t*t,easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>1+--t*t*t*t*t,easeInOutQuint:t=>t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t};const Cm={black:"#000000",navy:"#000080",darkblue:"#00008B",mediumblue:"#0000CD",blue:"#0000FF",darkgreen:"#006400",green:"#008000",teal:"#008080",darkcyan:"#008B8B",deepskyblue:"#00BFFF",darkturquoise:"#00CED1",mediumspringgreen:"#00FA9A",lime:"#00FF00",springgreen:"#00FF7F",aqua:"#00FFFF",cyan:"#00FFFF",midnightblue:"#191970",dodgerblue:"#1E90FF",lightseagreen:"#20B2AA",forestgreen:"#228B22",seagreen:"#2E8B57",darkslategray:"#2F4F4F",limegreen:"#32CD32",mediumseagreen:"#3CB371",turquoise:"#40E0D0",royalblue:"#4169E1",steelblue:"#4682B4",darkslateblue:"#483D8B",mediumturquoise:"#48D1CC",indigo:"#4B0082",darkolivegreen:"#556B2F",cadetblue:"#5F9EA0",cornflowerblue:"#6495ED",mediumaquamarine:"#66CDAA",dimgray:"#696969",slateblue:"#6A5ACD",olivedrab:"#6B8E23",slategray:"#708090",lightslategray:"#778899",mediumslateblue:"#7B68EE",lawngreen:"#7CFC00",chartreuse:"#7FFF00",aquamarine:"#7FFFD4",maroon:"#800000",purple:"#800080",olive:"#808000",gray:"#808080",skyblue:"#87CEEB",lightskyblue:"#87CEFA",blueviolet:"#8A2BE2",darkred:"#8B0000",darkmagenta:"#8B008B",saddlebrown:"#8B4513",darkseagreen:"#8FBC8F",lightgreen:"#90EE90",mediumpurple:"#9370D8",darkviolet:"#9400D3",palegreen:"#98FB98",darkorchid:"#9932CC",yellowgreen:"#9ACD32",sienna:"#A0522D",brown:"#A52A2A",darkgray:"#A9A9A9",lightblue:"#ADD8E6",greenyellow:"#ADFF2F",paleturquoise:"#AFEEEE",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",firebrick:"#B22222",darkgoldenrod:"#B8860B",mediumorchid:"#BA55D3",rosybrown:"#BC8F8F",darkkhaki:"#BDB76B",silver:"#C0C0C0",mediumvioletred:"#C71585",indianred:"#CD5C5C",peru:"#CD853F",chocolate:"#D2691E",tan:"#D2B48C",lightgrey:"#D3D3D3",palevioletred:"#D87093",thistle:"#D8BFD8",orchid:"#DA70D6",goldenrod:"#DAA520",crimson:"#DC143C",gainsboro:"#DCDCDC",plum:"#DDA0DD",burlywood:"#DEB887",lightcyan:"#E0FFFF",lavender:"#E6E6FA",darksalmon:"#E9967A",violet:"#EE82EE",palegoldenrod:"#EEE8AA",lightcoral:"#F08080",khaki:"#F0E68C",aliceblue:"#F0F8FF",honeydew:"#F0FFF0",azure:"#F0FFFF",sandybrown:"#F4A460",wheat:"#F5DEB3",beige:"#F5F5DC",whitesmoke:"#F5F5F5",mintcream:"#F5FFFA",ghostwhite:"#F8F8FF",salmon:"#FA8072",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lightgoldenrodyellow:"#FAFAD2",oldlace:"#FDF5E6",red:"#FF0000",fuchsia:"#FF00FF",magenta:"#FF00FF",deeppink:"#FF1493",orangered:"#FF4500",tomato:"#FF6347",hotpink:"#FF69B4",coral:"#FF7F50",darkorange:"#FF8C00",lightsalmon:"#FFA07A",orange:"#FFA500",lightpink:"#FFB6C1",pink:"#FFC0CB",gold:"#FFD700",peachpuff:"#FFDAB9",navajowhite:"#FFDEAD",moccasin:"#FFE4B5",bisque:"#FFE4C4",mistyrose:"#FFE4E1",blanchedalmond:"#FFEBCD",papayawhip:"#FFEFD5",lavenderblush:"#FFF0F5",seashell:"#FFF5EE",cornsilk:"#FFF8DC",lemonchiffon:"#FFFACD",floralwhite:"#FFFAF0",snow:"#FFFAFA",yellow:"#FFFF00",lightyellow:"#FFFFE0",ivory:"#FFFFF0",white:"#FFFFFF"};let Om=class{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.pixelRatio=t,this.generated=!1,this.centerCoordinates={x:144.5,y:144.5},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=()=>{},this.closeCallback=()=>{},this._create()}insertTo(t){void 0!==this.hammer&&(this.hammer.destroy(),this.hammer=void 0),this.container=t,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}setUpdateCallback(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker update callback is not a function.");this.updateCallback=t}setCloseCallback(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker closing callback is not a function.");this.closeCallback=t}_isColorString(t){if("string"==typeof t)return Cm[t]}setColor(t){let e,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("none"===t)return;const r=this._isColorString(t);if(void 0!==r&&(t=r),!0===tm(t)){if(!0===mm(t)){const n=t.substr(4).substr(0,t.length-5).split(",");e={r:n[0],g:n[1],b:n[2],a:1}}else if(!0===ym(t)){const n=t.substr(5).substr(0,t.length-6).split(",");e={r:n[0],g:n[1],b:n[2],a:n[3]}}else if(!0===gm(t)){const n=cm(t);e={r:n.r,g:n.g,b:n.b,a:1}}}else if(t instanceof Object&&void 0!==t.r&&void 0!==t.g&&void 0!==t.b){const n=void 0!==t.a?t.a:"1.0";e={r:t.r,g:t.g,b:t.b,a:n}}if(void 0===e)throw new Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+Pp(t));this._setColor(e,n)}show(){void 0!==this.closeCallback&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}_hide(){!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&(this.previousColor=Up({},this.color)),!0===this.applied&&this.updateCallback(this.initialColor),this.frame.style.display="none",vd(()=>{void 0!==this.closeCallback&&(this.closeCallback(),this.closeCallback=void 0)},0)}_save(){this.updateCallback(this.color),this.applied=!1,this._hide()}_apply(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}_loadLast(){void 0!==this.previousColor?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}_setColor(t){!0===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(this.initialColor=Up({},t)),this.color=t;const e=fm(t.r,t.g,t.b),n=2*Math.PI,r=this.r*e.s,i=this.centerCoordinates.x+r*Math.sin(n*e.h),o=this.centerCoordinates.y+r*Math.cos(n*e.h);this.colorPickerSelector.style.left=i-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=o-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(t)}_setOpacity(t){this.color.a=t/100,this._updatePicker(this.color)}_setBrightness(t){const e=fm(this.color.r,this.color.g,this.color.b);e.v=t/100;const n=pm(e.h,e.s,e.v);n.a=this.color.a,this.color=n,this._updatePicker()}_updatePicker(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.color;const e=fm(t.r,t.g,t.b),n=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(n.webkitBackingStorePixelRatio||n.mozBackingStorePixelRatio||n.msBackingStorePixelRatio||n.oBackingStorePixelRatio||n.backingStorePixelRatio||1)),n.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);const r=this.colorPickerCanvas.clientWidth,i=this.colorPickerCanvas.clientHeight;n.clearRect(0,0,r,i),n.putImageData(this.hueCircle,0,0),n.fillStyle="rgba(0,0,0,"+(1-e.v)+")",n.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),kd(n).call(n),this.brightnessRange.value=100*e.v,this.opacityRange.value=100*t.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}_setSize(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}_create(){var t,e,n,r;if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){const t=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{const t=document.createElement("DIV");t.style.color="red",t.style.fontWeight="bold",t.style.padding="10px",t.innerText="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(t)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch(t){}this.opacityRange.value="100",this.opacityRange.className="vis-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch(t){}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);const i=this;this.opacityRange.onchange=function(){i._setOpacity(this.value)},this.opacityRange.oninput=function(){i._setOpacity(this.value)},this.brightnessRange.onchange=function(){i._setBrightness(this.value)},this.brightnessRange.oninput=function(){i._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.innerText="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerText="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerText="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerText="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerText="cancel",this.cancelButton.onclick=Hl(t=this._hide).call(t,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerText="apply",this.applyButton.onclick=Hl(e=this._apply).call(e,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerText="save",this.saveButton.onclick=Hl(n=this._save).call(n,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerText="load last",this.loadButton.onclick=Hl(r=this._loadLast).call(r,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}_bindHammer(){this.drag={},this.pinch={},this.hammer=new ep(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("hammer.input",t=>{t.isFirst&&this._moveSelector(t)}),this.hammer.on("tap",t=>{this._moveSelector(t)}),this.hammer.on("panstart",t=>{this._moveSelector(t)}),this.hammer.on("panmove",t=>{this._moveSelector(t)}),this.hammer.on("panend",t=>{this._moveSelector(t)})}_generateHueCircle(){if(!1===this.generated){const t=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)),t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);const e=this.colorPickerCanvas.clientWidth,n=this.colorPickerCanvas.clientHeight;let r,i,o,a;t.clearRect(0,0,e,n),this.centerCoordinates={x:.5*e,y:.5*n},this.r=.49*e;const s=2*Math.PI/360,u=1/360,c=1/this.r;let l;for(o=0;o<360;o++)for(a=0;a<this.r;a++)r=this.centerCoordinates.x+a*Math.sin(s*o),i=this.centerCoordinates.y+a*Math.cos(s*o),l=pm(o*u,a*c,1),t.fillStyle="rgb("+l.r+","+l.g+","+l.b+")",t.fillRect(r-.5,i-.5,2,2);t.strokeStyle="rgba(0,0,0,1)",t.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),t.stroke(),this.hueCircle=t.getImageData(0,0,e,n)}this.generated=!0}_moveSelector(t){const e=this.colorPickerDiv.getBoundingClientRect(),n=t.center.x-e.left,r=t.center.y-e.top,i=.5*this.colorPickerDiv.clientHeight,o=.5*this.colorPickerDiv.clientWidth,a=n-o,s=r-i,u=Math.atan2(a,s),c=.98*Math.min(Math.sqrt(a*a+s*s),o),l=Math.cos(u)*c+i,f=Math.sin(u)*c+o;this.colorPickerSelector.style.top=l-.5*this.colorPickerSelector.clientHeight+"px",this.colorPickerSelector.style.left=f-.5*this.colorPickerSelector.clientWidth+"px";let h=u/(2*Math.PI);h=h<0?h+1:h;const p=c/this.r,d=fm(this.color.r,this.color.g,this.color.b);d.h=h,d.s=p;const v=pm(d.h,d.s,d.v);v.a=this.color.a,this.color=v,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}};function Em(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(e.length<1)throw new TypeError("Invalid arguments.");if(1===e.length)return document.createTextNode(e[0]);{const t=document.createElement(e[0]);return t.appendChild(Em(...Pa(e).call(e,1))),t}}let km,Tm=!1;const Sm="background: #FFeeee; color: #dd0000";const Fm=np,_m=Om,Am=class{constructor(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:()=>!1;this.parent=t,this.changedOptions=[],this.container=e,this.allowCreation=!1,this.hideOption=i,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},Up(this.options,this.defaultOptions),this.configureOptions=n,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new Om(r),this.wrapper=void 0}setOptions(t){if(void 0!==t){this.popupHistory={},this._removePopup();let e=!0;if("string"==typeof t)this.options.filter=t;else if(ts(t))this.options.filter=t.join();else if("object"==typeof t){if(null==t)throw new TypeError("options cannot be null");void 0!==t.container&&(this.options.container=t.container),void 0!==Hv(t)&&(this.options.filter=Hv(t)),void 0!==t.showButton&&(this.options.showButton=t.showButton),void 0!==t.enabled&&(e=t.enabled)}else"boolean"==typeof t?(this.options.filter=!0,e=t):"function"==typeof t&&(this.options.filter=t,e=!0);!1===Hv(this.options)&&(e=!1),this.options.enabled=e}this._clean()}setModuleOptions(t){this.moduleOptions=t,!0===this.options.enabled&&(this._clean(),void 0!==this.options.container&&(this.container=this.options.container),this._create())}_create(){this._clean(),this.changedOptions=[];const t=Hv(this.options);let e=0,n=!1;for(const r in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,r)&&(this.allowCreation=!1,n=!1,"function"==typeof t?(n=t(r,[]),n=n||this._handleObject(this.configureOptions[r],[r],!0)):!0!==t&&-1===jg(t).call(t,r)||(n=!0),!1!==n&&(this.allowCreation=!0,e>0&&this._makeItem([]),this._makeHeader(r),this._handleObject(this.configureOptions[r],[r])),e++);this._makeButton(),this._push()}_push(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(let t=0;t<this.domElements.length;t++)this.wrapper.appendChild(this.domElements[t]);this._showPopupIfNeeded()}_clean(){for(let t=0;t<this.domElements.length;t++)this.wrapper.removeChild(this.domElements[t]);void 0!==this.wrapper&&(this.container.removeChild(this.wrapper),this.wrapper=void 0),this.domElements=[],this._removePopup()}_getValue(t){let e=this.moduleOptions;for(let n=0;n<t.length;n++){if(void 0===e[t[n]]){e=void 0;break}e=e[t[n]]}return e}_makeItem(t){if(!0===this.allowCreation){const i=document.createElement("div");i.className="vis-configuration vis-config-item vis-config-s"+t.length;for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return af(n).call(n,t=>{i.appendChild(t)}),this.domElements.push(i),this.domElements.length}return 0}_makeHeader(t){const e=document.createElement("div");e.className="vis-configuration vis-config-header",e.innerText=t,this._makeItem([],e)}_makeLabel(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=document.createElement("div");if(r.className="vis-configuration vis-config-label vis-config-s"+e.length,!0===n){for(;r.firstChild;)r.removeChild(r.firstChild);r.appendChild(Em("i","b",t))}else r.innerText=t+":";return r}_makeDropdown(t,e,n){const r=document.createElement("select");r.className="vis-configuration vis-config-select";let i=0;void 0!==e&&-1!==jg(t).call(t,e)&&(i=jg(t).call(t,e));for(let e=0;e<t.length;e++){const n=document.createElement("option");n.value=t[e],e===i&&(n.selected="selected"),n.innerText=t[e],r.appendChild(n)}const o=this;r.onchange=function(){o._update(this.value,n)};const a=this._makeLabel(n[n.length-1],n);this._makeItem(n,a,r)}_makeRange(t,e,n){const r=t[0],i=t[1],o=t[2],a=t[3],s=document.createElement("input");s.className="vis-configuration vis-config-range";try{s.type="range",s.min=i,s.max=o}catch(t){}s.step=a;let u="",c=0;if(void 0!==e){const t=1.2;e<0&&e*t<i?(s.min=Math.ceil(e*t),c=s.min,u="range increased"):e/t<i&&(s.min=Math.ceil(e/t),c=s.min,u="range increased"),e*t>o&&1!==o&&(s.max=Math.ceil(e*t),c=s.max,u="range increased"),s.value=e}else s.value=r;const l=document.createElement("input");l.className="vis-configuration vis-config-rangeinput",l.value=s.value;const f=this;s.onchange=function(){l.value=this.value,f._update(Number(this.value),n)},s.oninput=function(){l.value=this.value};const h=this._makeLabel(n[n.length-1],n),p=this._makeItem(n,h,s,l);""!==u&&this.popupHistory[p]!==c&&(this.popupHistory[p]=c,this._setupPopup(u,p))}_makeButton(){if(!0===this.options.showButton){const t=document.createElement("div");t.className="vis-configuration vis-config-button",t.innerText="generate options",t.onclick=()=>{this._printOptions()},t.onmouseover=()=>{t.className="vis-configuration vis-config-button hover"},t.onmouseout=()=>{t.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(t)}}_setupPopup(t,e){if(!0===this.initialized&&!0===this.allowCreation&&this.popupCounter<this.popupLimit){const n=document.createElement("div");n.id="vis-configuration-popup",n.className="vis-configuration-popup",n.innerText=t,n.onclick=()=>{this._removePopup()},this.popupCounter+=1,this.popupDiv={html:n,index:e}}}_removePopup(){void 0!==this.popupDiv.html&&(this.popupDiv.html.parentNode.removeChild(this.popupDiv.html),clearTimeout(this.popupDiv.hideTimeout),clearTimeout(this.popupDiv.deleteTimeout),this.popupDiv={})}_showPopupIfNeeded(){if(void 0!==this.popupDiv.html){const t=this.domElements[this.popupDiv.index].getBoundingClientRect();this.popupDiv.html.style.left=t.left+"px",this.popupDiv.html.style.top=t.top-30+"px",document.body.appendChild(this.popupDiv.html),this.popupDiv.hideTimeout=vd(()=>{this.popupDiv.html.style.opacity=0},1500),this.popupDiv.deleteTimeout=vd(()=>{this._removePopup()},1800)}}_makeCheckbox(t,e,n){const r=document.createElement("input");r.type="checkbox",r.className="vis-configuration vis-config-checkbox",r.checked=t,void 0!==e&&(r.checked=e,e!==t&&("object"==typeof t?e!==t.enabled&&this.changedOptions.push({path:n,value:e}):this.changedOptions.push({path:n,value:e})));const i=this;r.onchange=function(){i._update(this.checked,n)};const o=this._makeLabel(n[n.length-1],n);this._makeItem(n,o,r)}_makeTextInput(t,e,n){const r=document.createElement("input");r.type="text",r.className="vis-configuration vis-config-text",r.value=e,e!==t&&this.changedOptions.push({path:n,value:e});const i=this;r.onchange=function(){i._update(this.value,n)};const o=this._makeLabel(n[n.length-1],n);this._makeItem(n,o,r)}_makeColorField(t,e,n){const r=t[1],i=document.createElement("div");"none"!==(e=void 0===e?r:e)?(i.className="vis-configuration vis-config-colorBlock",i.style.backgroundColor=e):i.className="vis-configuration vis-config-colorBlock none",e=void 0===e?r:e,i.onclick=()=>{this._showColorPicker(e,i,n)};const o=this._makeLabel(n[n.length-1],n);this._makeItem(n,o,i)}_showColorPicker(t,e,n){e.onclick=function(){},this.colorPicker.insertTo(e),this.colorPicker.show(),this.colorPicker.setColor(t),this.colorPicker.setUpdateCallback(t=>{const r="rgba("+t.r+","+t.g+","+t.b+","+t.a+")";e.style.backgroundColor=r,this._update(r,n)}),this.colorPicker.setCloseCallback(()=>{e.onclick=()=>{this._showColorPicker(t,e,n)}})}_handleObject(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!1;const i=Hv(this.options);let o=!1;for(const a in t)if(Object.prototype.hasOwnProperty.call(t,a)){r=!0;const s=t[a],u=om(e,a);if("function"==typeof i&&(r=i(a,e),!1===r&&!ts(s)&&"string"!=typeof s&&"boolean"!=typeof s&&s instanceof Object&&(this.allowCreation=!1,r=this._handleObject(s,u,!0),this.allowCreation=!1===n)),!1!==r){o=!0;const t=this._getValue(u);if(ts(s))this._handleArray(s,t,u);else if("string"==typeof s)this._makeTextInput(s,t,u);else if("boolean"==typeof s)this._makeCheckbox(s,t,u);else if(s instanceof Object){if(!this.hideOption(e,a,this.moduleOptions))if(void 0!==s.enabled){const t=om(u,"enabled"),e=this._getValue(t);if(!0===e){const t=this._makeLabel(a,u,!0);this._makeItem(u,t),o=this._handleObject(s,u)||o}else this._makeCheckbox(s,e,u)}else{const t=this._makeLabel(a,u,!0);this._makeItem(u,t),o=this._handleObject(s,u)||o}}else console.error("dont know how to handle",s,a,u)}}return o}_handleArray(t,e,n){"string"==typeof t[0]&&"color"===t[0]?(this._makeColorField(t,e,n),t[1]!==e&&this.changedOptions.push({path:n,value:e})):"string"==typeof t[0]?(this._makeDropdown(t,e,n),t[0]!==e&&this.changedOptions.push({path:n,value:e})):"number"==typeof t[0]&&(this._makeRange(t,e,n),t[0]!==e&&this.changedOptions.push({path:n,value:Number(e)}))}_update(t,e){const n=this._constructOptions(t,e);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",n),this.initialized=!0,this.parent.setOptions(n)}_constructOptions(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n;t="false"!==(t="true"===t||t)&&t;for(let n=0;n<e.length;n++)"global"!==e[n]&&(void 0===r[e[n]]&&(r[e[n]]={}),n!==e.length-1?r=r[e[n]]:r[e[n]]=t);return n}_printOptions(){const t=this.getOptions();for(;this.optionsContainer.firstChild;)this.optionsContainer.removeChild(this.optionsContainer.firstChild);this.optionsContainer.appendChild(Em("pre","const options = "+Pp(t,null,2)))}getOptions(){const t={};for(let e=0;e<this.changedOptions.length;e++)this._constructOptions(this.changedOptions[e].value,this.changedOptions[e].path,t);return t}},Dm=ep,Pm=class{constructor(t,e){this.container=t,this.overflowMethod=e||"cap",this.x=0,this.y=0,this.padding=5,this.hidden=!1,this.frame=document.createElement("div"),this.frame.className="vis-tooltip",this.container.appendChild(this.frame)}setPosition(t,e){this.x=Cg(t),this.y=Cg(e)}setText(t){if(t instanceof Element){for(;this.frame.firstChild;)this.frame.removeChild(this.frame.firstChild);this.frame.appendChild(t)}else this.frame.innerText=t}show(t){if(void 0===t&&(t=!0),!0===t){const t=this.frame.clientHeight,e=this.frame.clientWidth,n=this.frame.parentNode.clientHeight,r=this.frame.parentNode.clientWidth;let i=0,o=0;if("flip"==this.overflowMethod){let n=!1,a=!0;this.y-t<this.padding&&(a=!1),this.x+e>r-this.padding&&(n=!0),i=n?this.x-e:this.x,o=a?this.y-t:this.y}else o=this.y-t,o+t+this.padding>n&&(o=n-t-this.padding),o<this.padding&&(o=this.padding),i=this.x,i+e+this.padding>r&&(i=r-e-this.padding),i<this.padding&&(i=this.padding);this.frame.style.left=i+"px",this.frame.style.top=o+"px",this.frame.style.visibility="visible",this.hidden=!1}else this.hide()}hide(){this.hidden=!0,this.frame.style.left="0",this.frame.style.top="0",this.frame.style.visibility="hidden"}destroy(){this.frame.parentNode.removeChild(this.frame)}},xm=Sm,jm=class t{static validate(e,n,r){Tm=!1,km=n;let i=n;return void 0!==r&&(i=n[r]),t.parse(e,i,[]),Tm}static parse(e,n,r){for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.check(i,e,n,r)}static check(e,n,r,i){if(void 0===r[e]&&void 0===r.__any__)return void t.getSuggestion(e,r,i);let o=e,a=!0;void 0===r[e]&&void 0!==r.__any__&&(o="__any__",a="object"===t.getType(n[e]));let s=r[o];a&&void 0!==s.__type__&&(s=s.__type__),t.checkFields(e,n,r,o,s,i)}static checkFields(e,n,r,i,o,a){const s=function(n){console.error("%c"+n+t.printLocation(a,e),Sm)},u=t.getType(n[e]),c=o[u];void 0!==c?"array"===t.getType(c)&&-1===jg(c).call(c,n[e])?(s('Invalid option detected in "'+e+'". Allowed values are:'+t.print(c)+' not "'+n[e]+'". '),Tm=!0):"object"===u&&"__any__"!==i&&(a=om(a,e),t.parse(n[e],r[i],a)):void 0===o.any&&(s('Invalid type received for "'+e+'". Expected: '+t.print(gs(o))+". Received ["+u+'] "'+n[e]+'"'),Tm=!0)}static getType(t){const e=typeof t;return"object"===e?null===t?"null":t instanceof Boolean?"boolean":t instanceof Number?"number":t instanceof String?"string":ts(t)?"array":t instanceof Date?"date":void 0!==t.nodeType?"dom":!0===t._isAMomentObject?"moment":"object":"number"===e?"number":"boolean"===e?"boolean":"string"===e?"string":void 0===e?"undefined":e}static getSuggestion(e,n,r){const i=t.findInOptions(e,n,r,!1),o=t.findInOptions(e,km,[],!0);let a;a=void 0!==i.indexMatch?" in "+t.printLocation(i.path,e,"")+'Perhaps it was incomplete? Did you mean: "'+i.indexMatch+'"?\n\n':o.distance<=4&&i.distance>o.distance?" in "+t.printLocation(i.path,e,"")+"Perhaps it was misplaced? Matching option found at: "+t.printLocation(o.path,o.closestMatch,""):i.distance<=8?'. Did you mean "'+i.closestMatch+'"?'+t.printLocation(i.path,e):". Did you mean one of these: "+t.print(gs(n))+t.printLocation(r,e),console.error('%cUnknown option detected: "'+e+'"'+a,Sm),Tm=!0}static findInOptions(e,n,r){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=1e9,a="",s=[];const u=e.toLowerCase();let c;for(const f in n){let h;if(void 0!==n[f].__type__&&!0===i){const i=t.findInOptions(e,n[f],om(r,f));o>i.distance&&(a=i.closestMatch,s=i.path,o=i.distance,c=i.indexMatch)}else{var l;-1!==jg(l=f.toLowerCase()).call(l,u)&&(c=f),h=t.levenshteinDistance(e,f),o>h&&(a=f,s=am(r),o=h)}}return{closestMatch:a,path:s,distance:o,indexMatch:c}}static printLocation(t,e){let n="\n\n"+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Problem value found at: \n")+"options = {\n";for(let e=0;e<t.length;e++){for(let t=0;t<e+1;t++)n+=" ";n+=t[e]+": {\n"}for(let e=0;e<t.length+1;e++)n+=" ";n+=e+"\n";for(let e=0;e<t.length+1;e++){for(let r=0;r<t.length-e;r++)n+=" ";n+="}\n"}return n+"\n\n"}static print(t){return Pp(t).replace(/(")|(\[)|(\])|(,"__type__")/g,"").replace(/(,)/g,", ")}static levenshteinDistance(t,e){if(0===t.length)return e.length;if(0===e.length)return t.length;const n=[];let r,i;for(r=0;r<=e.length;r++)n[r]=[r];for(i=0;i<=t.length;i++)n[0][i]=i;for(r=1;r<=e.length;r++)for(i=1;i<=t.length;i++)e.charAt(r-1)==t.charAt(i-1)?n[r][i]=n[r-1][i-1]:n[r][i]=Math.min(n[r-1][i-1]+1,Math.min(n[r][i-1]+1,n[r-1][i]+1));return n[e.length][t.length]}};t.Activator=Fm,t.Alea=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){let e=function(){const t=function(){let t=4022871197;return function(e){const n=e.toString();for(let e=0;e<n.length;e++){t+=n.charCodeAt(e);let r=.02519603282416938*t;t=r>>>0,r-=t,r*=t,t=r>>>0,r-=t,t+=4294967296*r}return 2.3283064365386963e-10*(t>>>0)}}();let e=t(" "),n=t(" "),r=t(" ");for(let i=0;i<arguments.length;i++)e-=t(i<0||arguments.length<=i?void 0:arguments[i]),e<0&&(e+=1),n-=t(i<0||arguments.length<=i?void 0:arguments[i]),n<0&&(n+=1),r-=t(i<0||arguments.length<=i?void 0:arguments[i]),r<0&&(r+=1);return[e,n,r]}(t),n=tl(e,3),r=n[0],i=n[1],o=n[2],a=1;const s=()=>{const t=2091639*r+2.3283064365386963e-10*a;return r=i,i=o,o=t-(a=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}(e.length?e:[fl()])},t.ColorPicker=_m,t.Configurator=Am,t.DELETE=ms,t.HSVToHex=dm,t.HSVToRGB=pm,t.Hammer=Dm,t.Popup=Pm,t.RGBToHSV=fm,t.RGBToHex=lm,t.VALIDATOR_PRINT_STYLE=xm,t.Validator=jm,t.addClassName=function(t,e){let n=t.className.split(" ");const r=e.split(" ");n=Fv(n).call(n,Hv(r).call(r,function(t){return!nv(n).call(n,t)})),t.className=n.join(" ")},t.addCssText=function(t,e){const n=hm(e);for(const e of Vg(n)){var r=tl(e,2);const n=r[0],i=r[1];t.style.setProperty(n,i)}},t.binarySearchCustom=function(t,e,n,r){let i=0,o=0,a=t.length-1;for(;o<=a&&i<1e4;){const s=Math.floor((o+a)/2),u=t[s],c=e(void 0===r?u[n]:u[n][r]);if(0==c)return s;-1==c?o=s+1:a=s-1,i++}return-1},t.binarySearchValue=function(t,e,n,r,i){let o,a,s,u,c=0,l=0,f=t.length-1;for(i=null!=i?i:function(t,e){return t==e?0:t<e?-1:1};l<=f&&c<1e4;){if(u=Math.floor(.5*(f+l)),o=t[Math.max(0,u-1)][n],a=t[u][n],s=t[Math.min(t.length-1,u+1)][n],0==i(a,e))return u;if(i(o,e)<0&&i(a,e)>0)return"before"==r?Math.max(0,u-1):u;if(i(a,e)<0&&i(s,e)>0)return"before"==r?u:Math.min(t.length-1,u+1);i(a,e)<0?l=u+1:f=u-1,c++}return-1},t.bridgeObject=bm,t.copyAndExtendArray=om,t.copyArray=am,t.deepExtend=im,t.deepObjectAssign=ys,t.easingFunctions=wm,t.equalArray=function(t,e){if(t.length!==e.length)return!1;for(let n=0,r=t.length;n<r;n++)if(t[n]!=e[n])return!1;return!0},t.extend=rm,t.fillIfDefined=function t(e,n){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(const i in e)if(void 0!==n[i])if(null===n[i]||"object"!=typeof n[i])nm(e,n,i,r);else{const o=e[i],a=n[i];em(o)&&em(a)&&t(o,a,r)}},t.forEach=function(t,e){if(ts(t)){const n=t.length;for(let r=0;r<n;r++)e(t[r],r,t)}else for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&e(t[n],n,t)},t.getAbsoluteLeft=function(t){return t.getBoundingClientRect().left},t.getAbsoluteRight=function(t){return t.getBoundingClientRect().right},t.getAbsoluteTop=function(t){return t.getBoundingClientRect().top},t.getScrollBarWidth=function(){const t=document.createElement("p");t.style.width="100%",t.style.height="200px";const e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.style.visibility="hidden",e.style.width="200px",e.style.height="150px",e.style.overflow="hidden",e.appendChild(t),document.body.appendChild(e);const n=t.offsetWidth;e.style.overflow="scroll";let r=t.offsetWidth;return n==r&&(r=e.clientWidth),document.body.removeChild(e),n-r},t.getTarget=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.event,e=null;return t&&(t.target?e=t.target:t.srcElement&&(e=t.srcElement)),e instanceof Element&&(null==e.nodeType||3!=e.nodeType||(e=e.parentNode,e instanceof Element))?e:null},t.getType=function(t){const e=typeof t;return"object"===e?null===t?"null":t instanceof Boolean?"Boolean":t instanceof Number?"Number":t instanceof String?"String":ts(t)?"Array":t instanceof Date?"Date":"Object":"number"===e?"Number":"boolean"===e?"Boolean":"string"===e?"String":void 0===e?"undefined":e},t.hasParent=function(t,e){let n=t;for(;n;){if(n===e)return!0;if(!n.parentNode)return!1;n=n.parentNode}return!1},t.hexToHSV=vm,t.hexToRGB=cm,t.insertSort=function(t,e){for(let n=0;n<t.length;n++){const r=t[n];let i;for(i=n;i>0&&e(r,t[i-1])<0;i--)t[i]=t[i-1];t[i]=r}return t},t.isDate=function(t){if(t instanceof Date)return!0;if(tm(t)){if(Gg.exec(t))return!0;if(!isNaN(Date.parse(t)))return!0}return!1},t.isNumber=Zg,t.isObject=em,t.isString=tm,t.isValidHex=gm,t.isValidRGB=mm,t.isValidRGBA=ym,t.mergeOptions=function(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=function(t){return null!=t},o=function(t){return null!==t&&"object"==typeof t};if(!o(t))throw new Error("Parameter mergeTarget must be an object");if(!o(e))throw new Error("Parameter options must be an object");if(!i(n))throw new Error("Parameter option must have a value");if(!o(r))throw new Error("Parameter globalOptions must be an object");const a=e[n],s=o(r)&&!function(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}(r)?r[n]:void 0,u=s?s.enabled:void 0;if(void 0===a)return;if("boolean"==typeof a)return o(t[n])||(t[n]={}),void(t[n].enabled=a);if(null===a&&!o(t[n])){if(!i(s))return;t[n]=Xg(s)}if(!o(a))return;let c=!0;void 0!==a.enabled?c=a.enabled:void 0!==u&&(c=s.enabled),function(t,e,n){o(t[n])||(t[n]={});const r=e[n],i=t[n];for(const t in r)Object.prototype.hasOwnProperty.call(r,t)&&(i[t]=r[t])}(t,e,n),t[n].enabled=c},t.option=um,t.overrideOpacity=function(t,e){if(nv(t).call(t,"rgba"))return t;if(nv(t).call(t,"rgb")){const n=t.substr(jg(t).call(t,"(")+1).replace(")","").split(",");return"rgba("+n[0]+","+n[1]+","+n[2]+","+e+")"}{const n=cm(t);return null==n?t:"rgba("+n.r+","+n.g+","+n.b+","+e+")"}},t.parseColor=function(t,e){if(tm(t)){let e=t;if(mm(e)){var n;const t=hs(n=e.substr(4).substr(0,e.length-5).split(",")).call(n,function(t){return Cg(t)});e=lm(t[0],t[1],t[2])}if(!0===gm(e)){const t=vm(e),n={h:t.h,s:.8*t.s,v:Math.min(1,1.02*t.v)},r={h:t.h,s:Math.min(1,1.25*t.s),v:.8*t.v},i=dm(r.h,r.s,r.v),o=dm(n.h,n.s,n.v);return{background:e,border:i,highlight:{background:o,border:i},hover:{background:o,border:i}}}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:tm(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:tm(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:tm(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:tm(t.hover)?{border:t.hover,background:t.hover}:{border:t.hover&&t.hover.border||void 0,background:t.hover&&t.hover.background||void 0}}},t.preventDefault=function(t){t||(t=window.event),t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},t.pureDeepObjectAssign=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return ys({},t,...n)},t.recursiveDOMDelete=function t(e){if(e)for(;!0===e.hasChildNodes();){const n=e.firstChild;n&&(t(n),e.removeChild(n))}},t.removeClassName=function(t,e){let n=t.className.split(" ");const r=e.split(" ");n=Hv(n).call(n,function(t){return!nv(r).call(r,t)}),t.className=n.join(" ")},t.removeCssText=function(t,e){const n=hm(e);for(const e of gs(n))t.style.removeProperty(e)},t.selectiveBridgeObject=function(t,e){if(null!==e&&"object"==typeof e){const n=Xg(e);for(let r=0;r<t.length;r++)Object.prototype.hasOwnProperty.call(e,t[r])&&"object"==typeof e[t[r]]&&(n[t[r]]=bm(e[t[r]]));return n}return null},t.selectiveDeepExtend=function(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(ts(n))throw new TypeError("Arrays are not supported by deepExtend");for(let i=0;i<t.length;i++){const o=t[i];if(Object.prototype.hasOwnProperty.call(n,o))if(n[o]&&n[o].constructor===Object)void 0===e[o]&&(e[o]={}),e[o].constructor===Object?im(e[o],n[o],!1,r):nm(e,n,o,r);else{if(ts(n[o]))throw new TypeError("Arrays are not supported by deepExtend");nm(e,n,o,r)}}return e},t.selectiveExtend=function(t,e){if(!ts(t))throw new Error("Array with property names expected as first argument");for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];for(const n of r)for(let r=0;r<t.length;r++){const i=t[r];n&&Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},t.selectiveNotDeepExtend=function(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(ts(n))throw new TypeError("Arrays are not supported by deepExtend");for(const i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&!nv(t).call(t,i))if(n[i]&&n[i].constructor===Object)void 0===e[i]&&(e[i]={}),e[i].constructor===Object?im(e[i],n[i]):nm(e,n,i,r);else if(ts(n[i])){e[i]=[];for(let t=0;t<n[i].length;t++)e[i].push(n[i][t])}else nm(e,n,i,r);return e},t.throttle=function(t){let e=!1;return()=>{e||(e=!0,requestAnimationFrame(()=>{e=!1,t()}))}},t.toArray=sm,t.topMost=function(t,e){let n;ts(e)||(e=[e]);for(const r of t)if(r){n=r[e[0]];for(let t=1;t<e.length;t++)n&&(n=n[e[t]]);if(void 0!==n)break}return n},t.updateProperty=function(t,e,n){return t[e]!==n&&(t[e]=n,!0)}});
|
|
34
34
|
//# sourceMappingURL=vis-util.min.cjs.map
|