vis-util 5.0.4 → 5.0.5
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/esnext/esm/vis-util.js +9 -2
- package/esnext/esm/vis-util.js.map +1 -1
- package/esnext/esm/vis-util.min.js +3 -3
- package/esnext/esm/vis-util.min.js.map +1 -1
- package/esnext/umd/vis-util.js +9 -2
- package/esnext/umd/vis-util.js.map +1 -1
- package/esnext/umd/vis-util.min.js +3 -3
- package/esnext/umd/vis-util.min.js.map +1 -1
- package/package.json +13 -11
- package/peer/esm/vis-util.js +9 -2
- 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/umd/vis-util.js +9 -2
- package/peer/umd/vis-util.js.map +1 -1
- package/peer/umd/vis-util.min.js +3 -3
- package/peer/umd/vis-util.min.js.map +1 -1
- package/standalone/esm/vis-util.js +9 -2
- 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/umd/vis-util.js +9 -2
- package/standalone/umd/vis-util.js.map +1 -1
- package/standalone/umd/vis-util.min.js +3 -3
- 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 5.0.
|
|
8
|
-
* @date 2023-
|
|
7
|
+
* @version 5.0.5
|
|
8
|
+
* @date 2023-10-03T18:47:58.061Z
|
|
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
|
-
var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var n=function(t){try{return!!t()}catch(t){return!0}},r=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),i=r,o=Function.prototype,a=o.call,s=i&&o.bind.bind(a,a),c=i?s:function(t){return function(){return a.apply(t,arguments)}},u=Math.ceil,l=Math.floor,h=Math.trunc||function(t){var e=+t;return(e>0?l:u)(e)},f=function(t){var e=+t;return e!=e||0===e?0:h(e)},p=function(t){return t&&t.Math==Math&&t},v=p("object"==typeof globalThis&&globalThis)||p("object"==typeof window&&window)||p("object"==typeof self&&self)||p("object"==typeof t&&t)||function(){return this}()||Function("return this")(),d={exports:{}},g=v,y=Object.defineProperty,m=function(t,e){try{y(g,t,{value:e,configurable:!0,writable:!0})}catch(n){g[t]=e}return e},b="__core-js_shared__",k=v[b]||m(b,{}),w=k;(d.exports=function(t,e){return w[t]||(w[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.29.0",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE",source:"https://github.com/zloirock/core-js"});var C,E,O=d.exports,F=function(t){return null==t},_=F,T=TypeError,S=function(t){if(_(t))throw T("Can't call method on "+t);return t},A=S,P=Object,x=function(t){return P(A(t))},D=x,j=c({}.hasOwnProperty),I=Object.hasOwn||function(t,e){return j(D(t),e)},R=c,M=0,N=Math.random(),B=R(1..toString),L=function(t){return"Symbol("+(void 0===t?"":t)+")_"+B(++M+N,36)},z="undefined"!=typeof navigator&&String(navigator.userAgent)||"",H=v,W=z,q=H.process,Y=H.Deno,X=q&&q.versions||Y&&Y.version,V=X&&X.v8;V&&(E=(C=V.split("."))[0]>0&&C[0]<4?1:+(C[0]+C[1])),!E&&W&&(!(C=W.match(/Edge\/(\d+)/))||C[1]>=74)&&(C=W.match(/Chrome\/(\d+)/))&&(E=+C[1]);var U=E,$=U,G=n,Q=!!Object.getOwnPropertySymbols&&!G((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&$&&$<41})),J=Q&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,K=O,Z=I,tt=L,et=Q,nt=J,rt=v.Symbol,it=K("wks"),ot=nt?rt.for||rt:rt&&rt.withoutSetter||tt,at=function(t){return Z(it,t)||(it[t]=et&&Z(rt,t)?rt[t]:ot("Symbol."+t)),it[t]},st={};st[at("toStringTag")]="z";var ct="[object z]"===String(st),ut="object"==typeof document&&document.all,lt={all:ut,IS_HTMLDDA:void 0===ut&&void 0!==ut},ht=lt.all,ft=lt.IS_HTMLDDA?function(t){return"function"==typeof t||t===ht}:function(t){return"function"==typeof t},pt=c,vt=pt({}.toString),dt=pt("".slice),gt=function(t){return dt(vt(t),8,-1)},yt=ct,mt=ft,bt=gt,kt=at("toStringTag"),wt=Object,Ct="Arguments"==bt(function(){return arguments}()),Et=yt?bt:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=wt(t),kt))?n:Ct?bt(e):"Object"==(r=bt(e))&&mt(e.callee)?"Arguments":r},Ot=Et,Ft=String,_t=function(t){if("Symbol"===Ot(t))throw TypeError("Cannot convert a Symbol value to a string");return Ft(t)},Tt=c,St=f,At=_t,Pt=S,xt=Tt("".charAt),Dt=Tt("".charCodeAt),jt=Tt("".slice),It=function(t){return function(e,n){var r,i,o=At(Pt(e)),a=St(n),s=o.length;return a<0||a>=s?t?"":void 0:(r=Dt(o,a))<55296||r>56319||a+1===s||(i=Dt(o,a+1))<56320||i>57343?t?xt(o,a):r:t?jt(o,a,a+2):i-56320+(r-55296<<10)+65536}},Rt={codeAt:It(!1),charAt:It(!0)},Mt=ft,Nt=v.WeakMap,Bt=Mt(Nt)&&/native code/.test(String(Nt)),Lt=ft,zt=lt.all,Ht=lt.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:Lt(t)||t===zt}:function(t){return"object"==typeof t?null!==t:Lt(t)},Wt=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),qt={},Yt=Ht,Xt=v.document,Vt=Yt(Xt)&&Yt(Xt.createElement),Ut=function(t){return Vt?Xt.createElement(t):{}},$t=Ut,Gt=!Wt&&!n((function(){return 7!=Object.defineProperty($t("div"),"a",{get:function(){return 7}}).a})),Qt=Wt&&n((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Jt=Ht,Kt=String,Zt=TypeError,te=function(t){if(Jt(t))return t;throw Zt(Kt(t)+" is not an object")},ee=r,ne=Function.prototype.call,re=ee?ne.bind(ne):function(){return ne.apply(ne,arguments)},ie={},oe=ie,ae=v,se=ft,ce=function(t){return se(t)?t:void 0},ue=function(t,e){return arguments.length<2?ce(oe[t])||ce(ae[t]):oe[t]&&oe[t][e]||ae[t]&&ae[t][e]},le=c({}.isPrototypeOf),he=ue,fe=ft,pe=le,ve=Object,de=J?function(t){return"symbol"==typeof t}:function(t){var e=he("Symbol");return fe(e)&&pe(e.prototype,ve(t))},ge=String,ye=function(t){try{return ge(t)}catch(t){return"Object"}},me=ft,be=ye,ke=TypeError,we=function(t){if(me(t))return t;throw ke(be(t)+" is not a function")},Ce=we,Ee=F,Oe=function(t,e){var n=t[e];return Ee(n)?void 0:Ce(n)},Fe=re,_e=ft,Te=Ht,Se=TypeError,Ae=re,Pe=Ht,xe=de,De=Oe,je=function(t,e){var n,r;if("string"===e&&_e(n=t.toString)&&!Te(r=Fe(n,t)))return r;if(_e(n=t.valueOf)&&!Te(r=Fe(n,t)))return r;if("string"!==e&&_e(n=t.toString)&&!Te(r=Fe(n,t)))return r;throw Se("Can't convert object to primitive value")},Ie=TypeError,Re=at("toPrimitive"),Me=function(t,e){if(!Pe(t)||xe(t))return t;var n,r=De(t,Re);if(r){if(void 0===e&&(e="default"),n=Ae(r,t,e),!Pe(n)||xe(n))return n;throw Ie("Can't convert object to primitive value")}return void 0===e&&(e="number"),je(t,e)},Ne=de,Be=function(t){var e=Me(t,"string");return Ne(e)?e:e+""},Le=Wt,ze=Gt,He=Qt,We=te,qe=Be,Ye=TypeError,Xe=Object.defineProperty,Ve=Object.getOwnPropertyDescriptor,Ue="enumerable",$e="configurable",Ge="writable";qt.f=Le?He?function(t,e,n){if(We(t),e=qe(e),We(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Ge in n&&!n[Ge]){var r=Ve(t,e);r&&r[Ge]&&(t[e]=n.value,n={configurable:$e in n?n[$e]:r[$e],enumerable:Ue in n?n[Ue]:r[Ue],writable:!1})}return Xe(t,e,n)}:Xe:function(t,e,n){if(We(t),e=qe(e),We(n),ze)try{return Xe(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Ye("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var Qe,Je,Ke,Ze=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},tn=qt,en=Ze,nn=Wt?function(t,e,n){return tn.f(t,e,en(1,n))}:function(t,e,n){return t[e]=n,t},rn=L,on=O("keys"),an=function(t){return on[t]||(on[t]=rn(t))},sn={},cn=Bt,un=v,ln=Ht,hn=nn,fn=I,pn=k,vn=an,dn=sn,gn="Object already initialized",yn=un.TypeError,mn=un.WeakMap;if(cn||pn.state){var bn=pn.state||(pn.state=new mn);bn.get=bn.get,bn.has=bn.has,bn.set=bn.set,Qe=function(t,e){if(bn.has(t))throw yn(gn);return e.facade=t,bn.set(t,e),e},Je=function(t){return bn.get(t)||{}},Ke=function(t){return bn.has(t)}}else{var kn=vn("state");dn[kn]=!0,Qe=function(t,e){if(fn(t,kn))throw yn(gn);return e.facade=t,hn(t,kn,e),e},Je=function(t){return fn(t,kn)?t[kn]:{}},Ke=function(t){return fn(t,kn)}}var wn={set:Qe,get:Je,has:Ke,enforce:function(t){return Ke(t)?Je(t):Qe(t,{})},getterFor:function(t){return function(e){var n;if(!ln(e)||(n=Je(e)).type!==t)throw yn("Incompatible receiver, "+t+" required");return n}}},Cn=r,En=Function.prototype,On=En.apply,Fn=En.call,_n="object"==typeof Reflect&&Reflect.apply||(Cn?Fn.bind(On):function(){return Fn.apply(On,arguments)}),Tn=gt,Sn=c,An=function(t){if("Function"===Tn(t))return Sn(t)},Pn={},xn={},Dn={}.propertyIsEnumerable,jn=Object.getOwnPropertyDescriptor,In=jn&&!Dn.call({1:2},1);xn.f=In?function(t){var e=jn(this,t);return!!e&&e.enumerable}:Dn;var Rn=n,Mn=gt,Nn=Object,Bn=c("".split),Ln=Rn((function(){return!Nn("z").propertyIsEnumerable(0)}))?function(t){return"String"==Mn(t)?Bn(t,""):Nn(t)}:Nn,zn=Ln,Hn=S,Wn=function(t){return zn(Hn(t))},qn=Wt,Yn=re,Xn=xn,Vn=Ze,Un=Wn,$n=Be,Gn=I,Qn=Gt,Jn=Object.getOwnPropertyDescriptor;Pn.f=qn?Jn:function(t,e){if(t=Un(t),e=$n(e),Qn)try{return Jn(t,e)}catch(t){}if(Gn(t,e))return Vn(!Yn(Xn.f,t,e),t[e])};var Kn=n,Zn=ft,tr=/#|\.prototype\./,er=function(t,e){var n=rr[nr(t)];return n==or||n!=ir&&(Zn(e)?Kn(e):!!e)},nr=er.normalize=function(t){return String(t).replace(tr,".").toLowerCase()},rr=er.data={},ir=er.NATIVE="N",or=er.POLYFILL="P",ar=er,sr=we,cr=r,ur=An(An.bind),lr=function(t,e){return sr(t),void 0===e?t:cr?ur(t,e):function(){return t.apply(e,arguments)}},hr=v,fr=_n,pr=An,vr=ft,dr=Pn.f,gr=ar,yr=ie,mr=lr,br=nn,kr=I,wr=function(t){var e=function(n,r,i){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,i)}return fr(t,this,arguments)};return e.prototype=t.prototype,e},Cr=function(t,e){var n,r,i,o,a,s,c,u,l,h=t.target,f=t.global,p=t.stat,v=t.proto,d=f?hr:p?hr[h]:(hr[h]||{}).prototype,g=f?yr:yr[h]||br(yr,h,{})[h],y=g.prototype;for(o in e)r=!(n=gr(f?o:h+(p?".":"#")+o,t.forced))&&d&&kr(d,o),s=g[o],r&&(c=t.dontCallGetSet?(l=dr(d,o))&&l.value:d[o]),a=r&&c?c:e[o],r&&typeof s==typeof a||(u=t.bind&&r?mr(a,hr):t.wrap&&r?wr(a):v&&vr(a)?pr(a):a,(t.sham||a&&a.sham||s&&s.sham)&&br(u,"sham",!0),br(g,o,u),v&&(kr(yr,i=h+"Prototype")||br(yr,i,{}),br(yr[i],o,a),t.real&&y&&(n||!y[o])&&br(y,o,a)))},Er=Wt,Or=I,Fr=Function.prototype,_r=Er&&Object.getOwnPropertyDescriptor,Tr=Or(Fr,"name"),Sr={EXISTS:Tr,PROPER:Tr&&"something"===function(){}.name,CONFIGURABLE:Tr&&(!Er||Er&&_r(Fr,"name").configurable)},Ar={},Pr=f,xr=Math.max,Dr=Math.min,jr=function(t,e){var n=Pr(t);return n<0?xr(n+e,0):Dr(n,e)},Ir=f,Rr=Math.min,Mr=function(t){return t>0?Rr(Ir(t),9007199254740991):0},Nr=function(t){return Mr(t.length)},Br=Wn,Lr=jr,zr=Nr,Hr=function(t){return function(e,n,r){var i,o=Br(e),a=zr(o),s=Lr(r,a);if(t&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((t||s in o)&&o[s]===n)return t||s||0;return!t&&-1}},Wr={includes:Hr(!0),indexOf:Hr(!1)},qr=I,Yr=Wn,Xr=Wr.indexOf,Vr=sn,Ur=c([].push),$r=function(t,e){var n,r=Yr(t),i=0,o=[];for(n in r)!qr(Vr,n)&&qr(r,n)&&Ur(o,n);for(;e.length>i;)qr(r,n=e[i++])&&(~Xr(o,n)||Ur(o,n));return o},Gr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Qr=$r,Jr=Gr,Kr=Object.keys||function(t){return Qr(t,Jr)},Zr=Wt,ti=Qt,ei=qt,ni=te,ri=Wn,ii=Kr;Ar.f=Zr&&!ti?Object.defineProperties:function(t,e){ni(t);for(var n,r=ri(e),i=ii(e),o=i.length,a=0;o>a;)ei.f(t,n=i[a++],r[n]);return t};var oi,ai=ue("document","documentElement"),si=te,ci=Ar,ui=Gr,li=sn,hi=ai,fi=Ut,pi="prototype",vi="script",di=an("IE_PROTO"),gi=function(){},yi=function(t){return"<"+vi+">"+t+"</"+vi+">"},mi=function(t){t.write(yi("")),t.close();var e=t.parentWindow.Object;return t=null,e},bi=function(){try{oi=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;bi="undefined"!=typeof document?document.domain&&oi?mi(oi):(e=fi("iframe"),n="java"+vi+":",e.style.display="none",hi.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(yi("document.F=Object")),t.close(),t.F):mi(oi);for(var r=ui.length;r--;)delete bi[pi][ui[r]];return bi()};li[di]=!0;var ki,wi,Ci,Ei=Object.create||function(t,e){var n;return null!==t?(gi[pi]=si(t),n=new gi,gi[pi]=null,n[di]=t):n=bi(),void 0===e?n:ci.f(n,e)},Oi=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Fi=I,_i=ft,Ti=x,Si=Oi,Ai=an("IE_PROTO"),Pi=Object,xi=Pi.prototype,Di=Si?Pi.getPrototypeOf:function(t){var e=Ti(t);if(Fi(e,Ai))return e[Ai];var n=e.constructor;return _i(n)&&e instanceof n?n.prototype:e instanceof Pi?xi:null},ji=nn,Ii=function(t,e,n,r){return r&&r.enumerable?t[e]=n:ji(t,e,n),t},Ri=n,Mi=ft,Ni=Ht,Bi=Ei,Li=Di,zi=Ii,Hi=at("iterator"),Wi=!1;[].keys&&("next"in(Ci=[].keys())?(wi=Li(Li(Ci)))!==Object.prototype&&(ki=wi):Wi=!0);var qi=!Ni(ki)||Ri((function(){var t={};return ki[Hi].call(t)!==t}));Mi((ki=qi?{}:Bi(ki))[Hi])||zi(ki,Hi,(function(){return this}));var Yi={IteratorPrototype:ki,BUGGY_SAFARI_ITERATORS:Wi},Xi=Et,Vi=ct?{}.toString:function(){return"[object "+Xi(this)+"]"},Ui=ct,$i=qt.f,Gi=nn,Qi=I,Ji=Vi,Ki=at("toStringTag"),Zi=function(t,e,n,r){if(t){var i=n?t:t.prototype;Qi(i,Ki)||$i(i,Ki,{configurable:!0,value:e}),r&&!Ui&&Gi(i,"toString",Ji)}},to={},eo=Yi.IteratorPrototype,no=Ei,ro=Ze,io=Zi,oo=to,ao=function(){return this},so=Cr,co=re,uo=Sr,lo=function(t,e,n,r){var i=e+" Iterator";return t.prototype=no(eo,{next:ro(+!r,n)}),io(t,i,!1,!0),oo[i]=ao,t},ho=Di,fo=Zi,po=Ii,vo=to,go=Yi,yo=uo.PROPER,mo=go.BUGGY_SAFARI_ITERATORS,bo=at("iterator"),ko="keys",wo="values",Co="entries",Eo=function(){return this},Oo=function(t,e,n,r,i,o,a){lo(n,e,r);var s,c,u,l=function(t){if(t===i&&d)return d;if(!mo&&t in p)return p[t];switch(t){case ko:case wo:case Co:return function(){return new n(this,t)}}return function(){return new n(this)}},h=e+" Iterator",f=!1,p=t.prototype,v=p[bo]||p["@@iterator"]||i&&p[i],d=!mo&&v||l(i),g="Array"==e&&p.entries||v;if(g&&(s=ho(g.call(new t)))!==Object.prototype&&s.next&&(fo(s,h,!0,!0),vo[h]=Eo),yo&&i==wo&&v&&v.name!==wo&&(f=!0,d=function(){return co(v,this)}),i)if(c={values:l(wo),keys:o?d:l(ko),entries:l(Co)},a)for(u in c)(mo||f||!(u in p))&&po(p,u,c[u]);else so({target:e,proto:!0,forced:mo||f},c);return a&&p[bo]!==d&&po(p,bo,d,{name:i}),vo[e]=d,c},Fo=function(t,e){return{value:t,done:e}},_o=Rt.charAt,To=_t,So=wn,Ao=Oo,Po=Fo,xo="String Iterator",Do=So.set,jo=So.getterFor(xo);Ao(String,"String",(function(t){Do(this,{type:xo,string:To(t),index:0})}),(function(){var t,e=jo(this),n=e.string,r=e.index;return r>=n.length?Po(void 0,!0):(t=_o(n,r),e.index+=t.length,Po(t,!1))}));var Io=re,Ro=te,Mo=Oe,No=te,Bo=function(t,e,n){var r,i;Ro(t);try{if(!(r=Mo(t,"return"))){if("throw"===e)throw n;return n}r=Io(r,t)}catch(t){i=!0,r=t}if("throw"===e)throw n;if(i)throw r;return Ro(r),n},Lo=to,zo=at("iterator"),Ho=Array.prototype,Wo=ft,qo=k,Yo=c(Function.toString);Wo(qo.inspectSource)||(qo.inspectSource=function(t){return Yo(t)});var Xo=qo.inspectSource,Vo=c,Uo=n,$o=ft,Go=Et,Qo=Xo,Jo=function(){},Ko=[],Zo=ue("Reflect","construct"),ta=/^\s*(?:class|function)\b/,ea=Vo(ta.exec),na=!ta.exec(Jo),ra=function(t){if(!$o(t))return!1;try{return Zo(Jo,Ko,t),!0}catch(t){return!1}},ia=function(t){if(!$o(t))return!1;switch(Go(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return na||!!ea(ta,Qo(t))}catch(t){return!0}};ia.sham=!0;var oa=!Zo||Uo((function(){var t;return ra(ra.call)||!ra(Object)||!ra((function(){t=!0}))||t}))?ia:ra,aa=Be,sa=qt,ca=Ze,ua=function(t,e,n){var r=aa(e);r in t?sa.f(t,r,ca(0,n)):t[r]=n},la=Et,ha=Oe,fa=F,pa=to,va=at("iterator"),da=function(t){if(!fa(t))return ha(t,va)||ha(t,"@@iterator")||pa[la(t)]},ga=re,ya=we,ma=te,ba=ye,ka=da,wa=TypeError,Ca=lr,Ea=re,Oa=x,Fa=function(t,e,n,r){try{return r?e(No(n)[0],n[1]):e(n)}catch(e){Bo(t,"throw",e)}},_a=function(t){return void 0!==t&&(Lo.Array===t||Ho[zo]===t)},Ta=oa,Sa=Nr,Aa=ua,Pa=function(t,e){var n=arguments.length<2?ka(t):e;if(ya(n))return ma(ga(n,t));throw wa(ba(t)+" is not iterable")},xa=da,Da=Array,ja=at("iterator"),Ia=!1;try{var Ra=0,Ma={next:function(){return{done:!!Ra++}},return:function(){Ia=!0}};Ma[ja]=function(){return this},Array.from(Ma,(function(){throw 2}))}catch(t){}var Na=function(t){var e=Oa(t),n=Ta(this),r=arguments.length,i=r>1?arguments[1]:void 0,o=void 0!==i;o&&(i=Ca(i,r>2?arguments[2]:void 0));var a,s,c,u,l,h,f=xa(e),p=0;if(!f||this===Da&&_a(f))for(a=Sa(e),s=n?new this(a):Da(a);a>p;p++)h=o?i(e[p],p):e[p],Aa(s,p,h);else for(l=(u=Pa(e,f)).next,s=n?new this:[];!(c=Ea(l,u)).done;p++)h=o?Fa(u,i,[c.value,p],!0):c.value,Aa(s,p,h);return s.length=p,s},Ba=function(t,e){if(!e&&!Ia)return!1;var n=!1;try{var r={};r[ja]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n};Cr({target:"Array",stat:!0,forced:!Ba((function(t){Array.from(t)}))},{from:Na});var La=ie.Array.from,za=e(La),Ha=Wn,Wa=to,qa=wn;qt.f;var Ya=Oo,Xa=Fo,Va="Array Iterator",Ua=qa.set,$a=qa.getterFor(Va);Ya(Array,"Array",(function(t,e){Ua(this,{type:Va,target:Ha(t),index:0,kind:e})}),(function(){var t=$a(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,Xa(void 0,!0)):Xa("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values"),Wa.Arguments=Wa.Array;var Ga=da,Qa={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},Ja=v,Ka=Et,Za=nn,ts=to,es=at("toStringTag");for(var ns in Qa){var rs=Ja[ns],is=rs&&rs.prototype;is&&Ka(is)!==es&&Za(is,es,ns),ts[ns]=ts.Array}var os=e(Ga),as=gt,ss=Array.isArray||function(t){return"Array"==as(t)},cs=TypeError,us=function(t){if(t>9007199254740991)throw cs("Maximum allowed index exceeded");return t},ls=ss,hs=oa,fs=Ht,ps=at("species"),vs=Array,ds=function(t){var e;return ls(t)&&(e=t.constructor,(hs(e)&&(e===vs||ls(e.prototype))||fs(e)&&null===(e=e[ps]))&&(e=void 0)),void 0===e?vs:e},gs=function(t,e){return new(ds(t))(0===e?0:e)},ys=n,ms=U,bs=at("species"),ks=function(t){return ms>=51||!ys((function(){var e=[];return(e.constructor={})[bs]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},ws=Cr,Cs=n,Es=ss,Os=Ht,Fs=x,_s=Nr,Ts=us,Ss=ua,As=gs,Ps=ks,xs=U,Ds=at("isConcatSpreadable"),js=xs>=51||!Cs((function(){var t=[];return t[Ds]=!1,t.concat()[0]!==t})),Is=function(t){if(!Os(t))return!1;var e=t[Ds];return void 0!==e?!!e:Es(t)};ws({target:"Array",proto:!0,arity:1,forced:!js||!Ps("concat")},{concat:function(t){var e,n,r,i,o,a=Fs(this),s=As(a,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(Is(o=-1===e?a:arguments[e]))for(i=_s(o),Ts(c+i),n=0;n<i;n++,c++)n in o&&Ss(s,c,o[n]);else Ts(c+1),Ss(s,c++,o);return s.length=c,s}});var Rs={},Ms=$r,Ns=Gr.concat("length","prototype");Rs.f=Object.getOwnPropertyNames||function(t){return Ms(t,Ns)};var Bs={},Ls=jr,zs=Nr,Hs=ua,Ws=Array,qs=Math.max,Ys=gt,Xs=Wn,Vs=Rs.f,Us=function(t,e,n){for(var r=zs(t),i=Ls(e,r),o=Ls(void 0===n?r:n,r),a=Ws(qs(o-i,0)),s=0;i<o;i++,s++)Hs(a,s,t[i]);return a.length=s,a},$s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Bs.f=function(t){return $s&&"Window"==Ys(t)?function(t){try{return Vs(t)}catch(t){return Us($s)}}(t):Vs(Xs(t))};var Gs={};Gs.f=Object.getOwnPropertySymbols;var Qs=qt,Js={},Ks=at;Js.f=Ks;var Zs=ie,tc=I,ec=Js,nc=qt.f,rc=function(t){var e=Zs.Symbol||(Zs.Symbol={});tc(e,t)||nc(e,t,{value:ec.f(t)})},ic=re,oc=ue,ac=at,sc=Ii,cc=function(){var t=oc("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,r=ac("toPrimitive");e&&!e[r]&&sc(e,r,(function(t){return ic(n,this)}),{arity:1})},uc=lr,lc=Ln,hc=x,fc=Nr,pc=gs,vc=c([].push),dc=function(t){var e=1==t,n=2==t,r=3==t,i=4==t,o=6==t,a=7==t,s=5==t||o;return function(c,u,l,h){for(var f,p,v=hc(c),d=lc(v),g=uc(u,l),y=fc(d),m=0,b=h||pc,k=e?b(c,y):n||a?b(c,0):void 0;y>m;m++)if((s||m in d)&&(p=g(f=d[m],m,v),t))if(e)k[m]=p;else if(p)switch(t){case 3:return!0;case 5:return f;case 6:return m;case 2:vc(k,f)}else switch(t){case 4:return!1;case 7:vc(k,f)}return o?-1:r||i?i:k}},gc={forEach:dc(0),map:dc(1),filter:dc(2),some:dc(3),every:dc(4),find:dc(5),findIndex:dc(6),filterReject:dc(7)},yc=Cr,mc=v,bc=re,kc=c,wc=Wt,Cc=Q,Ec=n,Oc=I,Fc=le,_c=te,Tc=Wn,Sc=Be,Ac=_t,Pc=Ze,xc=Ei,Dc=Kr,jc=Rs,Ic=Bs,Rc=Gs,Mc=Pn,Nc=qt,Bc=Ar,Lc=xn,zc=Ii,Hc=function(t,e,n){return Qs.f(t,e,n)},Wc=O,qc=sn,Yc=L,Xc=at,Vc=Js,Uc=rc,$c=cc,Gc=Zi,Qc=wn,Jc=gc.forEach,Kc=an("hidden"),Zc="Symbol",tu="prototype",eu=Qc.set,nu=Qc.getterFor(Zc),ru=Object[tu],iu=mc.Symbol,ou=iu&&iu[tu],au=mc.TypeError,su=mc.QObject,cu=Mc.f,uu=Nc.f,lu=Ic.f,hu=Lc.f,fu=kc([].push),pu=Wc("symbols"),vu=Wc("op-symbols"),du=Wc("wks"),gu=!su||!su[tu]||!su[tu].findChild,yu=wc&&Ec((function(){return 7!=xc(uu({},"a",{get:function(){return uu(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=cu(ru,e);r&&delete ru[e],uu(t,e,n),r&&t!==ru&&uu(ru,e,r)}:uu,mu=function(t,e){var n=pu[t]=xc(ou);return eu(n,{type:Zc,tag:t,description:e}),wc||(n.description=e),n},bu=function(t,e,n){t===ru&&bu(vu,e,n),_c(t);var r=Sc(e);return _c(n),Oc(pu,r)?(n.enumerable?(Oc(t,Kc)&&t[Kc][r]&&(t[Kc][r]=!1),n=xc(n,{enumerable:Pc(0,!1)})):(Oc(t,Kc)||uu(t,Kc,Pc(1,{})),t[Kc][r]=!0),yu(t,r,n)):uu(t,r,n)},ku=function(t,e){_c(t);var n=Tc(e),r=Dc(n).concat(Ou(n));return Jc(r,(function(e){wc&&!bc(wu,n,e)||bu(t,e,n[e])})),t},wu=function(t){var e=Sc(t),n=bc(hu,this,e);return!(this===ru&&Oc(pu,e)&&!Oc(vu,e))&&(!(n||!Oc(this,e)||!Oc(pu,e)||Oc(this,Kc)&&this[Kc][e])||n)},Cu=function(t,e){var n=Tc(t),r=Sc(e);if(n!==ru||!Oc(pu,r)||Oc(vu,r)){var i=cu(n,r);return!i||!Oc(pu,r)||Oc(n,Kc)&&n[Kc][r]||(i.enumerable=!0),i}},Eu=function(t){var e=lu(Tc(t)),n=[];return Jc(e,(function(t){Oc(pu,t)||Oc(qc,t)||fu(n,t)})),n},Ou=function(t){var e=t===ru,n=lu(e?vu:Tc(t)),r=[];return Jc(n,(function(t){!Oc(pu,t)||e&&!Oc(ru,t)||fu(r,pu[t])})),r};Cc||(zc(ou=(iu=function(){if(Fc(ou,this))throw au("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?Ac(arguments[0]):void 0,e=Yc(t),n=function(t){this===ru&&bc(n,vu,t),Oc(this,Kc)&&Oc(this[Kc],e)&&(this[Kc][e]=!1),yu(this,e,Pc(1,t))};return wc&&gu&&yu(ru,e,{configurable:!0,set:n}),mu(e,t)})[tu],"toString",(function(){return nu(this).tag})),zc(iu,"withoutSetter",(function(t){return mu(Yc(t),t)})),Lc.f=wu,Nc.f=bu,Bc.f=ku,Mc.f=Cu,jc.f=Ic.f=Eu,Rc.f=Ou,Vc.f=function(t){return mu(Xc(t),t)},wc&&Hc(ou,"description",{configurable:!0,get:function(){return nu(this).description}})),yc({global:!0,constructor:!0,wrap:!0,forced:!Cc,sham:!Cc},{Symbol:iu}),Jc(Dc(du),(function(t){Uc(t)})),yc({target:Zc,stat:!0,forced:!Cc},{useSetter:function(){gu=!0},useSimple:function(){gu=!1}}),yc({target:"Object",stat:!0,forced:!Cc,sham:!wc},{create:function(t,e){return void 0===e?xc(t):ku(xc(t),e)},defineProperty:bu,defineProperties:ku,getOwnPropertyDescriptor:Cu}),yc({target:"Object",stat:!0,forced:!Cc},{getOwnPropertyNames:Eu}),$c(),Gc(iu,Zc),qc[Kc]=!0;var Fu=Q&&!!Symbol.for&&!!Symbol.keyFor,_u=Cr,Tu=ue,Su=I,Au=_t,Pu=O,xu=Fu,Du=Pu("string-to-symbol-registry"),ju=Pu("symbol-to-string-registry");_u({target:"Symbol",stat:!0,forced:!xu},{for:function(t){var e=Au(t);if(Su(Du,e))return Du[e];var n=Tu("Symbol")(e);return Du[e]=n,ju[n]=e,n}});var Iu=Cr,Ru=I,Mu=de,Nu=ye,Bu=Fu,Lu=O("symbol-to-string-registry");Iu({target:"Symbol",stat:!0,forced:!Bu},{keyFor:function(t){if(!Mu(t))throw TypeError(Nu(t)+" is not a symbol");if(Ru(Lu,t))return Lu[t]}});var zu=c([].slice),Hu=ss,Wu=ft,qu=gt,Yu=_t,Xu=c([].push),Vu=Cr,Uu=ue,$u=_n,Gu=re,Qu=c,Ju=n,Ku=ft,Zu=de,tl=zu,el=function(t){if(Wu(t))return t;if(Hu(t)){for(var e=t.length,n=[],r=0;r<e;r++){var i=t[r];"string"==typeof i?Xu(n,i):"number"!=typeof i&&"Number"!=qu(i)&&"String"!=qu(i)||Xu(n,Yu(i))}var o=n.length,a=!0;return function(t,e){if(a)return a=!1,e;if(Hu(this))return e;for(var r=0;r<o;r++)if(n[r]===t)return e}}},nl=Q,rl=String,il=Uu("JSON","stringify"),ol=Qu(/./.exec),al=Qu("".charAt),sl=Qu("".charCodeAt),cl=Qu("".replace),ul=Qu(1..toString),ll=/[\uD800-\uDFFF]/g,hl=/^[\uD800-\uDBFF]$/,fl=/^[\uDC00-\uDFFF]$/,pl=!nl||Ju((function(){var t=Uu("Symbol")();return"[null]"!=il([t])||"{}"!=il({a:t})||"{}"!=il(Object(t))})),vl=Ju((function(){return'"\\udf06\\ud834"'!==il("\udf06\ud834")||'"\\udead"'!==il("\udead")})),dl=function(t,e){var n=tl(arguments),r=el(e);if(Ku(r)||void 0!==t&&!Zu(t))return n[1]=function(t,e){if(Ku(r)&&(e=Gu(r,this,rl(t),e)),!Zu(e))return e},$u(il,null,n)},gl=function(t,e,n){var r=al(n,e-1),i=al(n,e+1);return ol(hl,t)&&!ol(fl,i)||ol(fl,t)&&!ol(hl,r)?"\\u"+ul(sl(t,0),16):t};il&&Vu({target:"JSON",stat:!0,arity:3,forced:pl||vl},{stringify:function(t,e,n){var r=tl(arguments),i=$u(pl?dl:il,null,r);return vl&&"string"==typeof i?cl(i,ll,gl):i}});var yl=Gs,ml=x;Cr({target:"Object",stat:!0,forced:!Q||n((function(){yl.f(1)}))},{getOwnPropertySymbols:function(t){var e=yl.f;return e?e(ml(t)):[]}}),rc("asyncIterator"),rc("hasInstance"),rc("isConcatSpreadable"),rc("iterator"),rc("match"),rc("matchAll"),rc("replace"),rc("search"),rc("species"),rc("split");var bl=cc;rc("toPrimitive"),bl();var kl=ue,wl=Zi;rc("toStringTag"),wl(kl("Symbol"),"Symbol"),rc("unscopables"),Zi(v.JSON,"JSON",!0);var Cl=ie.Symbol;rc("dispose");var El=Cl;rc("asyncDispose");var Ol=Cr,Fl=c,_l=ue("Symbol"),Tl=_l.keyFor,Sl=Fl(_l.prototype.valueOf);Ol({target:"Symbol",stat:!0},{isRegistered:function(t){try{return void 0!==Tl(Sl(t))}catch(t){return!1}}});for(var Al=Cr,Pl=O,xl=ue,Dl=c,jl=de,Il=at,Rl=xl("Symbol"),Ml=Rl.isWellKnown,Nl=xl("Object","getOwnPropertyNames"),Bl=Dl(Rl.prototype.valueOf),Ll=Pl("wks"),zl=0,Hl=Nl(Rl),Wl=Hl.length;zl<Wl;zl++)try{var ql=Hl[zl];jl(Rl[ql])&&Il(ql)}catch(t){}Al({target:"Symbol",stat:!0,forced:!0},{isWellKnown:function(t){if(Ml&&Ml(t))return!0;try{for(var e=Bl(t),n=0,r=Nl(Ll),i=r.length;n<i;n++)if(Ll[r[n]]==e)return!0}catch(t){}return!1}}),rc("matcher"),rc("metadataKey"),rc("observable"),rc("metadata"),rc("patternMatch"),rc("replaceAll");var Yl=e(El),Xl=e(Js.f("iterator"));function Vl(t){return Vl="function"==typeof Yl&&"symbol"==typeof Xl?function(t){return typeof t}:function(t){return t&&"function"==typeof Yl&&t.constructor===Yl&&t!==Yl.prototype?"symbol":typeof t},Vl(t)}Cr({target:"Array",stat:!0},{isArray:ss});var Ul=ie.Array.isArray,$l=e(Ul);function Gl(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Ql=e(La);var Jl=Cr,Kl=ss,Zl=oa,th=Ht,eh=jr,nh=Nr,rh=Wn,ih=ua,oh=at,ah=zu,sh=ks("slice"),ch=oh("species"),uh=Array,lh=Math.max;Jl({target:"Array",proto:!0,forced:!sh},{slice:function(t,e){var n,r,i,o=rh(this),a=nh(o),s=eh(t,a),c=eh(void 0===e?a:e,a);if(Kl(o)&&(n=o.constructor,(Zl(n)&&(n===uh||Kl(n.prototype))||th(n)&&null===(n=n[ch]))&&(n=void 0),n===uh||void 0===n))return ah(o,s,c);for(r=new(void 0===n?uh:n)(lh(c-s,0)),i=0;s<c;s++,i++)s in o&&ih(r,i,o[s]);return r.length=i,r}});var hh=ie,fh=function(t){return hh[t+"Prototype"]},ph=fh("Array").slice,vh=le,dh=ph,gh=Array.prototype,yh=function(t){var e=t.slice;return t===gh||vh(gh,t)&&e===gh.slice?dh:e},mh=e(yh);function bh(t,e){var n;if(t){if("string"==typeof t)return Gl(t,e);var r=mh(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Ql(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Gl(t,e):void 0}}function kh(t){return function(t){if($l(t))return Gl(t)}(t)||function(t){if(void 0!==Yl&&null!=os(t)||null!=t["@@iterator"])return Ql(t)}(t)||bh(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var wh=e(Cl),Ch=fh("Array").concat,Eh=le,Oh=Ch,Fh=Array.prototype,_h=e((function(t){var e=t.concat;return t===Fh||Eh(Fh,t)&&e===Fh.concat?Oh:e})),Th=e(yh),Sh=ue,Ah=Rs,Ph=Gs,xh=te,Dh=c([].concat),jh=Sh("Reflect","ownKeys")||function(t){var e=Ah.f(xh(t)),n=Ph.f;return n?Dh(e,n(t)):e};Cr({target:"Reflect",stat:!0},{ownKeys:jh});var Ih=e(ie.Reflect.ownKeys),Rh=e(Ul),Mh=gc.map;Cr({target:"Array",proto:!0,forced:!ks("map")},{map:function(t){return Mh(this,t,arguments.length>1?arguments[1]:void 0)}});var Nh=fh("Array").map,Bh=le,Lh=Nh,zh=Array.prototype,Hh=e((function(t){var e=t.map;return t===zh||Bh(zh,t)&&e===zh.map?Lh:e})),Wh=x,qh=Kr;Cr({target:"Object",stat:!0,forced:n((function(){qh(1)}))},{keys:function(t){return qh(Wh(t))}});var Yh=e(ie.Object.keys);function Xh(t,e){var n=void 0!==wh&&os(t)||t["@@iterator"];if(!n){if(Rh(t)||(n=function(t,e){var n;if(!t)return;if("string"==typeof t)return Vh(t,e);var r=Th(n=Object.prototype.toString.call(t)).call(n,8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return za(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Vh(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Vh(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Uh=wh("DELETE");function $h(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return Gh.apply(void 0,_h(e=[{},t]).call(e,r))}function Gh(){var t=Qh.apply(void 0,arguments);return Kh(t),t}function Qh(){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];var r;if(e.length>2)return Qh.apply(void 0,_h(r=[Gh(e[0],e[1])]).call(r,kh(Th(e).call(e,2))));var i,o=e[0],a=e[1],s=Xh(Ih(a));try{for(s.s();!(i=s.n()).done;){var c=i.value;Object.prototype.propertyIsEnumerable.call(a,c)&&(a[c]===Uh?delete o[c]:null===o[c]||null===a[c]||"object"!==Vl(o[c])||"object"!==Vl(a[c])||Rh(o[c])||Rh(a[c])?o[c]=Jh(a[c]):o[c]=Qh(o[c],a[c]))}}catch(t){s.e(t)}finally{s.f()}return o}function Jh(t){return Rh(t)?Hh(t).call(t,(function(t){return Jh(t)})):"object"===Vl(t)&&null!==t?Qh({},t):t}function Kh(t){for(var e=0,n=Yh(t);e<n.length;e++){var r=n[e];t[r]===Uh?delete t[r]:"object"===Vl(t[r])&&null!==t[r]&&Kh(t[r])}}function Zh(t,e){return function(t){if($l(t))return t}(t)||function(t,e){var n=null==t?null:void 0!==Yl&&os(t)||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(t){u=!0,i=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(t,e)||bh(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 tf=Cr,ef=Date,nf=c(ef.prototype.getTime);tf({target:"Date",stat:!0},{now:function(){return nf(new ef)}});var rf=e(ie.Date.now);function of(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){var e=function(){for(var t=function(){var t=4022871197;return function(e){for(var n=e.toString(),r=0;r<n.length;r++){var i=.02519603282416938*(t+=n.charCodeAt(r));i-=t=i>>>0,t=(i*=t)>>>0,t+=4294967296*(i-=t)}return 2.3283064365386963e-10*(t>>>0)}}(),e=t(" "),n=t(" "),r=t(" "),i=0;i<arguments.length;i++)(e-=t(i<0||arguments.length<=i?void 0:arguments[i]))<0&&(e+=1),(n-=t(i<0||arguments.length<=i?void 0:arguments[i]))<0&&(n+=1),(r-=t(i<0||arguments.length<=i?void 0:arguments[i]))<0&&(r+=1);return[e,n,r]}(t),n=Zh(e,3),r=n[0],i=n[1],o=n[2],a=1,s=function(){var t=2091639*r+2.3283064365386963e-10*a;return r=i,i=o,o=t-(a=0|t)};return s.uint32=function(){return 4294967296*s()},s.fract53=function(){return s()+11102230246251565e-32*(2097152*s()|0)},s.algorithm="Alea",s.seed=t,s.version="0.9",s}(e.length?e:[rf()])}var af=c,sf=we,cf=Ht,uf=I,lf=zu,hf=r,ff=Function,pf=af([].concat),vf=af([].join),df={},gf=hf?ff.bind:function(t){var e=sf(this),n=e.prototype,r=lf(arguments,1),i=function(){var n=pf(r,lf(arguments));return this instanceof i?function(t,e,n){if(!uf(df,e)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";df[e]=ff("C,a","return new C("+vf(r,",")+")")}return df[e](t,n)}(e,n.length,n):e.apply(t,n)};return cf(n)&&(i.prototype=n),i},yf=gf;Cr({target:"Function",proto:!0,forced:Function.bind!==yf},{bind:yf});var mf=fh("Function").bind,bf=le,kf=mf,wf=Function.prototype,Cf=e((function(t){var e=t.bind;return t===wf||bf(wf,t)&&e===wf.bind?kf:e})),Ef=n,Of=function(t,e){var n=[][t];return!!n&&Ef((function(){n.call(null,e||function(){return 1},1)}))},Ff=gc.forEach,_f=Of("forEach")?[].forEach:function(t){return Ff(this,t,arguments.length>1?arguments[1]:void 0)};Cr({target:"Array",proto:!0,forced:[].forEach!=_f},{forEach:_f});var Tf=fh("Array").forEach,Sf=Et,Af=I,Pf=le,xf=Tf,Df=Array.prototype,jf={DOMTokenList:!0,NodeList:!0},If=e((function(t){var e=t.forEach;return t===Df||Pf(Df,t)&&e===Df.forEach||Af(jf,Sf(t))?xf:e})),Rf=Cr,Mf=ss,Nf=c([].reverse),Bf=[1,2];Rf({target:"Array",proto:!0,forced:String(Bf)===String(Bf.reverse())},{reverse:function(){return Mf(this)&&(this.length=this.length),Nf(this)}});var Lf=fh("Array").reverse,zf=le,Hf=Lf,Wf=Array.prototype,qf=e((function(t){var e=t.reverse;return t===Wf||zf(Wf,t)&&e===Wf.reverse?Hf:e})),Yf=Wt,Xf=ss,Vf=TypeError,Uf=Object.getOwnPropertyDescriptor,$f=Yf&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}(),Gf=ye,Qf=TypeError,Jf=Cr,Kf=x,Zf=jr,tp=f,ep=Nr,np=$f?function(t,e){if(Xf(t)&&!Uf(t,"length").writable)throw Vf("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},rp=us,ip=gs,op=ua,ap=function(t,e){if(!delete t[e])throw Qf("Cannot delete property "+Gf(e)+" of "+Gf(t))},sp=ks("splice"),cp=Math.max,up=Math.min;Jf({target:"Array",proto:!0,forced:!sp},{splice:function(t,e){var n,r,i,o,a,s,c=Kf(this),u=ep(c),l=Zf(t,u),h=arguments.length;for(0===h?n=r=0:1===h?(n=0,r=u-l):(n=h-2,r=up(cp(tp(e),0),u-l)),rp(u+n-r),i=ip(c,r),o=0;o<r;o++)(a=l+o)in c&&op(i,o,c[a]);if(i.length=r,n<r){for(o=l;o<u-r;o++)s=o+n,(a=o+r)in c?c[s]=c[a]:ap(c,s);for(o=u;o>u-r+n;o--)ap(c,o-1)}else if(n>r)for(o=u-r;o>l;o--)s=o+n-1,(a=o+r-1)in c?c[s]=c[a]:ap(c,s);for(o=0;o<n;o++)c[o+l]=arguments[o+2];return np(c,u-r+n),i}});var lp=fh("Array").splice,hp=le,fp=lp,pp=Array.prototype,vp=e((function(t){var e=t.splice;return t===pp||hp(pp,t)&&e===pp.splice?fp:e})),dp={exports:{}};!function(t){function e(t){if(t)return function(t){for(var n in e.prototype)t[n]=e.prototype[n];return t}(t)}dp.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+t];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var i=0;i<r.length;i++)if((n=r[i])===e||n.fn===e){r.splice(i,1);break}return 0===r.length&&delete this._callbacks["$"+t],this},e.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),n=this._callbacks["$"+t],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(n){r=0;for(var i=(n=n.slice(0)).length;r<i;++r)n[r].apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},e.prototype.hasListeners=function(t){return!!this.listeners(t).length}}();var gp=e(dp.exports);
|
|
26
|
+
var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var n=function(t){try{return!!t()}catch(t){return!0}},r=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),i=r,o=Function.prototype,a=o.call,s=i&&o.bind.bind(a,a),c=i?s:function(t){return function(){return a.apply(t,arguments)}},u=Math.ceil,l=Math.floor,h=Math.trunc||function(t){var e=+t;return(e>0?l:u)(e)},f=function(t){var e=+t;return e!=e||0===e?0:h(e)},p=function(t){return t&&t.Math==Math&&t},v=p("object"==typeof globalThis&&globalThis)||p("object"==typeof window&&window)||p("object"==typeof self&&self)||p("object"==typeof t&&t)||function(){return this}()||Function("return this")(),d={exports:{}},g=v,y=Object.defineProperty,m=function(t,e){try{y(g,t,{value:e,configurable:!0,writable:!0})}catch(n){g[t]=e}return e},b="__core-js_shared__",k=v[b]||m(b,{}),w=k;(d.exports=function(t,e){return w[t]||(w[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.29.0",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE",source:"https://github.com/zloirock/core-js"});var C,E,O=d.exports,F=function(t){return null==t},T=F,_=TypeError,S=function(t){if(T(t))throw _("Can't call method on "+t);return t},A=S,P=Object,x=function(t){return P(A(t))},D=x,j=c({}.hasOwnProperty),I=Object.hasOwn||function(t,e){return j(D(t),e)},R=c,M=0,N=Math.random(),B=R(1..toString),L=function(t){return"Symbol("+(void 0===t?"":t)+")_"+B(++M+N,36)},z="undefined"!=typeof navigator&&String(navigator.userAgent)||"",H=v,W=z,q=H.process,Y=H.Deno,X=q&&q.versions||Y&&Y.version,V=X&&X.v8;V&&(E=(C=V.split("."))[0]>0&&C[0]<4?1:+(C[0]+C[1])),!E&&W&&(!(C=W.match(/Edge\/(\d+)/))||C[1]>=74)&&(C=W.match(/Chrome\/(\d+)/))&&(E=+C[1]);var U=E,$=U,G=n,Q=!!Object.getOwnPropertySymbols&&!G((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&$&&$<41})),J=Q&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,K=O,Z=I,tt=L,et=Q,nt=J,rt=v.Symbol,it=K("wks"),ot=nt?rt.for||rt:rt&&rt.withoutSetter||tt,at=function(t){return Z(it,t)||(it[t]=et&&Z(rt,t)?rt[t]:ot("Symbol."+t)),it[t]},st={};st[at("toStringTag")]="z";var ct="[object z]"===String(st),ut="object"==typeof document&&document.all,lt={all:ut,IS_HTMLDDA:void 0===ut&&void 0!==ut},ht=lt.all,ft=lt.IS_HTMLDDA?function(t){return"function"==typeof t||t===ht}:function(t){return"function"==typeof t},pt=c,vt=pt({}.toString),dt=pt("".slice),gt=function(t){return dt(vt(t),8,-1)},yt=ct,mt=ft,bt=gt,kt=at("toStringTag"),wt=Object,Ct="Arguments"==bt(function(){return arguments}()),Et=yt?bt:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=wt(t),kt))?n:Ct?bt(e):"Object"==(r=bt(e))&&mt(e.callee)?"Arguments":r},Ot=Et,Ft=String,Tt=function(t){if("Symbol"===Ot(t))throw TypeError("Cannot convert a Symbol value to a string");return Ft(t)},_t=c,St=f,At=Tt,Pt=S,xt=_t("".charAt),Dt=_t("".charCodeAt),jt=_t("".slice),It=function(t){return function(e,n){var r,i,o=At(Pt(e)),a=St(n),s=o.length;return a<0||a>=s?t?"":void 0:(r=Dt(o,a))<55296||r>56319||a+1===s||(i=Dt(o,a+1))<56320||i>57343?t?xt(o,a):r:t?jt(o,a,a+2):i-56320+(r-55296<<10)+65536}},Rt={codeAt:It(!1),charAt:It(!0)},Mt=ft,Nt=v.WeakMap,Bt=Mt(Nt)&&/native code/.test(String(Nt)),Lt=ft,zt=lt.all,Ht=lt.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:Lt(t)||t===zt}:function(t){return"object"==typeof t?null!==t:Lt(t)},Wt=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),qt={},Yt=Ht,Xt=v.document,Vt=Yt(Xt)&&Yt(Xt.createElement),Ut=function(t){return Vt?Xt.createElement(t):{}},$t=Ut,Gt=!Wt&&!n((function(){return 7!=Object.defineProperty($t("div"),"a",{get:function(){return 7}}).a})),Qt=Wt&&n((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Jt=Ht,Kt=String,Zt=TypeError,te=function(t){if(Jt(t))return t;throw Zt(Kt(t)+" is not an object")},ee=r,ne=Function.prototype.call,re=ee?ne.bind(ne):function(){return ne.apply(ne,arguments)},ie={},oe=ie,ae=v,se=ft,ce=function(t){return se(t)?t:void 0},ue=function(t,e){return arguments.length<2?ce(oe[t])||ce(ae[t]):oe[t]&&oe[t][e]||ae[t]&&ae[t][e]},le=c({}.isPrototypeOf),he=ue,fe=ft,pe=le,ve=Object,de=J?function(t){return"symbol"==typeof t}:function(t){var e=he("Symbol");return fe(e)&&pe(e.prototype,ve(t))},ge=String,ye=function(t){try{return ge(t)}catch(t){return"Object"}},me=ft,be=ye,ke=TypeError,we=function(t){if(me(t))return t;throw ke(be(t)+" is not a function")},Ce=we,Ee=F,Oe=function(t,e){var n=t[e];return Ee(n)?void 0:Ce(n)},Fe=re,Te=ft,_e=Ht,Se=TypeError,Ae=re,Pe=Ht,xe=de,De=Oe,je=function(t,e){var n,r;if("string"===e&&Te(n=t.toString)&&!_e(r=Fe(n,t)))return r;if(Te(n=t.valueOf)&&!_e(r=Fe(n,t)))return r;if("string"!==e&&Te(n=t.toString)&&!_e(r=Fe(n,t)))return r;throw Se("Can't convert object to primitive value")},Ie=TypeError,Re=at("toPrimitive"),Me=function(t,e){if(!Pe(t)||xe(t))return t;var n,r=De(t,Re);if(r){if(void 0===e&&(e="default"),n=Ae(r,t,e),!Pe(n)||xe(n))return n;throw Ie("Can't convert object to primitive value")}return void 0===e&&(e="number"),je(t,e)},Ne=de,Be=function(t){var e=Me(t,"string");return Ne(e)?e:e+""},Le=Wt,ze=Gt,He=Qt,We=te,qe=Be,Ye=TypeError,Xe=Object.defineProperty,Ve=Object.getOwnPropertyDescriptor,Ue="enumerable",$e="configurable",Ge="writable";qt.f=Le?He?function(t,e,n){if(We(t),e=qe(e),We(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Ge in n&&!n[Ge]){var r=Ve(t,e);r&&r[Ge]&&(t[e]=n.value,n={configurable:$e in n?n[$e]:r[$e],enumerable:Ue in n?n[Ue]:r[Ue],writable:!1})}return Xe(t,e,n)}:Xe:function(t,e,n){if(We(t),e=qe(e),We(n),ze)try{return Xe(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Ye("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var Qe,Je,Ke,Ze=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},tn=qt,en=Ze,nn=Wt?function(t,e,n){return tn.f(t,e,en(1,n))}:function(t,e,n){return t[e]=n,t},rn=L,on=O("keys"),an=function(t){return on[t]||(on[t]=rn(t))},sn={},cn=Bt,un=v,ln=Ht,hn=nn,fn=I,pn=k,vn=an,dn=sn,gn="Object already initialized",yn=un.TypeError,mn=un.WeakMap;if(cn||pn.state){var bn=pn.state||(pn.state=new mn);bn.get=bn.get,bn.has=bn.has,bn.set=bn.set,Qe=function(t,e){if(bn.has(t))throw yn(gn);return e.facade=t,bn.set(t,e),e},Je=function(t){return bn.get(t)||{}},Ke=function(t){return bn.has(t)}}else{var kn=vn("state");dn[kn]=!0,Qe=function(t,e){if(fn(t,kn))throw yn(gn);return e.facade=t,hn(t,kn,e),e},Je=function(t){return fn(t,kn)?t[kn]:{}},Ke=function(t){return fn(t,kn)}}var wn={set:Qe,get:Je,has:Ke,enforce:function(t){return Ke(t)?Je(t):Qe(t,{})},getterFor:function(t){return function(e){var n;if(!ln(e)||(n=Je(e)).type!==t)throw yn("Incompatible receiver, "+t+" required");return n}}},Cn=r,En=Function.prototype,On=En.apply,Fn=En.call,Tn="object"==typeof Reflect&&Reflect.apply||(Cn?Fn.bind(On):function(){return Fn.apply(On,arguments)}),_n=gt,Sn=c,An=function(t){if("Function"===_n(t))return Sn(t)},Pn={},xn={},Dn={}.propertyIsEnumerable,jn=Object.getOwnPropertyDescriptor,In=jn&&!Dn.call({1:2},1);xn.f=In?function(t){var e=jn(this,t);return!!e&&e.enumerable}:Dn;var Rn=n,Mn=gt,Nn=Object,Bn=c("".split),Ln=Rn((function(){return!Nn("z").propertyIsEnumerable(0)}))?function(t){return"String"==Mn(t)?Bn(t,""):Nn(t)}:Nn,zn=Ln,Hn=S,Wn=function(t){return zn(Hn(t))},qn=Wt,Yn=re,Xn=xn,Vn=Ze,Un=Wn,$n=Be,Gn=I,Qn=Gt,Jn=Object.getOwnPropertyDescriptor;Pn.f=qn?Jn:function(t,e){if(t=Un(t),e=$n(e),Qn)try{return Jn(t,e)}catch(t){}if(Gn(t,e))return Vn(!Yn(Xn.f,t,e),t[e])};var Kn=n,Zn=ft,tr=/#|\.prototype\./,er=function(t,e){var n=rr[nr(t)];return n==or||n!=ir&&(Zn(e)?Kn(e):!!e)},nr=er.normalize=function(t){return String(t).replace(tr,".").toLowerCase()},rr=er.data={},ir=er.NATIVE="N",or=er.POLYFILL="P",ar=er,sr=we,cr=r,ur=An(An.bind),lr=function(t,e){return sr(t),void 0===e?t:cr?ur(t,e):function(){return t.apply(e,arguments)}},hr=v,fr=Tn,pr=An,vr=ft,dr=Pn.f,gr=ar,yr=ie,mr=lr,br=nn,kr=I,wr=function(t){var e=function(n,r,i){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,i)}return fr(t,this,arguments)};return e.prototype=t.prototype,e},Cr=function(t,e){var n,r,i,o,a,s,c,u,l,h=t.target,f=t.global,p=t.stat,v=t.proto,d=f?hr:p?hr[h]:(hr[h]||{}).prototype,g=f?yr:yr[h]||br(yr,h,{})[h],y=g.prototype;for(o in e)r=!(n=gr(f?o:h+(p?".":"#")+o,t.forced))&&d&&kr(d,o),s=g[o],r&&(c=t.dontCallGetSet?(l=dr(d,o))&&l.value:d[o]),a=r&&c?c:e[o],r&&typeof s==typeof a||(u=t.bind&&r?mr(a,hr):t.wrap&&r?wr(a):v&&vr(a)?pr(a):a,(t.sham||a&&a.sham||s&&s.sham)&&br(u,"sham",!0),br(g,o,u),v&&(kr(yr,i=h+"Prototype")||br(yr,i,{}),br(yr[i],o,a),t.real&&y&&(n||!y[o])&&br(y,o,a)))},Er=Wt,Or=I,Fr=Function.prototype,Tr=Er&&Object.getOwnPropertyDescriptor,_r=Or(Fr,"name"),Sr={EXISTS:_r,PROPER:_r&&"something"===function(){}.name,CONFIGURABLE:_r&&(!Er||Er&&Tr(Fr,"name").configurable)},Ar={},Pr=f,xr=Math.max,Dr=Math.min,jr=function(t,e){var n=Pr(t);return n<0?xr(n+e,0):Dr(n,e)},Ir=f,Rr=Math.min,Mr=function(t){return t>0?Rr(Ir(t),9007199254740991):0},Nr=function(t){return Mr(t.length)},Br=Wn,Lr=jr,zr=Nr,Hr=function(t){return function(e,n,r){var i,o=Br(e),a=zr(o),s=Lr(r,a);if(t&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((t||s in o)&&o[s]===n)return t||s||0;return!t&&-1}},Wr={includes:Hr(!0),indexOf:Hr(!1)},qr=I,Yr=Wn,Xr=Wr.indexOf,Vr=sn,Ur=c([].push),$r=function(t,e){var n,r=Yr(t),i=0,o=[];for(n in r)!qr(Vr,n)&&qr(r,n)&&Ur(o,n);for(;e.length>i;)qr(r,n=e[i++])&&(~Xr(o,n)||Ur(o,n));return o},Gr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Qr=$r,Jr=Gr,Kr=Object.keys||function(t){return Qr(t,Jr)},Zr=Wt,ti=Qt,ei=qt,ni=te,ri=Wn,ii=Kr;Ar.f=Zr&&!ti?Object.defineProperties:function(t,e){ni(t);for(var n,r=ri(e),i=ii(e),o=i.length,a=0;o>a;)ei.f(t,n=i[a++],r[n]);return t};var oi,ai=ue("document","documentElement"),si=te,ci=Ar,ui=Gr,li=sn,hi=ai,fi=Ut,pi="prototype",vi="script",di=an("IE_PROTO"),gi=function(){},yi=function(t){return"<"+vi+">"+t+"</"+vi+">"},mi=function(t){t.write(yi("")),t.close();var e=t.parentWindow.Object;return t=null,e},bi=function(){try{oi=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;bi="undefined"!=typeof document?document.domain&&oi?mi(oi):(e=fi("iframe"),n="java"+vi+":",e.style.display="none",hi.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(yi("document.F=Object")),t.close(),t.F):mi(oi);for(var r=ui.length;r--;)delete bi[pi][ui[r]];return bi()};li[di]=!0;var ki,wi,Ci,Ei=Object.create||function(t,e){var n;return null!==t?(gi[pi]=si(t),n=new gi,gi[pi]=null,n[di]=t):n=bi(),void 0===e?n:ci.f(n,e)},Oi=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Fi=I,Ti=ft,_i=x,Si=Oi,Ai=an("IE_PROTO"),Pi=Object,xi=Pi.prototype,Di=Si?Pi.getPrototypeOf:function(t){var e=_i(t);if(Fi(e,Ai))return e[Ai];var n=e.constructor;return Ti(n)&&e instanceof n?n.prototype:e instanceof Pi?xi:null},ji=nn,Ii=function(t,e,n,r){return r&&r.enumerable?t[e]=n:ji(t,e,n),t},Ri=n,Mi=ft,Ni=Ht,Bi=Ei,Li=Di,zi=Ii,Hi=at("iterator"),Wi=!1;[].keys&&("next"in(Ci=[].keys())?(wi=Li(Li(Ci)))!==Object.prototype&&(ki=wi):Wi=!0);var qi=!Ni(ki)||Ri((function(){var t={};return ki[Hi].call(t)!==t}));Mi((ki=qi?{}:Bi(ki))[Hi])||zi(ki,Hi,(function(){return this}));var Yi={IteratorPrototype:ki,BUGGY_SAFARI_ITERATORS:Wi},Xi=Et,Vi=ct?{}.toString:function(){return"[object "+Xi(this)+"]"},Ui=ct,$i=qt.f,Gi=nn,Qi=I,Ji=Vi,Ki=at("toStringTag"),Zi=function(t,e,n,r){if(t){var i=n?t:t.prototype;Qi(i,Ki)||$i(i,Ki,{configurable:!0,value:e}),r&&!Ui&&Gi(i,"toString",Ji)}},to={},eo=Yi.IteratorPrototype,no=Ei,ro=Ze,io=Zi,oo=to,ao=function(){return this},so=Cr,co=re,uo=Sr,lo=function(t,e,n,r){var i=e+" Iterator";return t.prototype=no(eo,{next:ro(+!r,n)}),io(t,i,!1,!0),oo[i]=ao,t},ho=Di,fo=Zi,po=Ii,vo=to,go=Yi,yo=uo.PROPER,mo=go.BUGGY_SAFARI_ITERATORS,bo=at("iterator"),ko="keys",wo="values",Co="entries",Eo=function(){return this},Oo=function(t,e,n,r,i,o,a){lo(n,e,r);var s,c,u,l=function(t){if(t===i&&d)return d;if(!mo&&t in p)return p[t];switch(t){case ko:case wo:case Co:return function(){return new n(this,t)}}return function(){return new n(this)}},h=e+" Iterator",f=!1,p=t.prototype,v=p[bo]||p["@@iterator"]||i&&p[i],d=!mo&&v||l(i),g="Array"==e&&p.entries||v;if(g&&(s=ho(g.call(new t)))!==Object.prototype&&s.next&&(fo(s,h,!0,!0),vo[h]=Eo),yo&&i==wo&&v&&v.name!==wo&&(f=!0,d=function(){return co(v,this)}),i)if(c={values:l(wo),keys:o?d:l(ko),entries:l(Co)},a)for(u in c)(mo||f||!(u in p))&&po(p,u,c[u]);else so({target:e,proto:!0,forced:mo||f},c);return a&&p[bo]!==d&&po(p,bo,d,{name:i}),vo[e]=d,c},Fo=function(t,e){return{value:t,done:e}},To=Rt.charAt,_o=Tt,So=wn,Ao=Oo,Po=Fo,xo="String Iterator",Do=So.set,jo=So.getterFor(xo);Ao(String,"String",(function(t){Do(this,{type:xo,string:_o(t),index:0})}),(function(){var t,e=jo(this),n=e.string,r=e.index;return r>=n.length?Po(void 0,!0):(t=To(n,r),e.index+=t.length,Po(t,!1))}));var Io=re,Ro=te,Mo=Oe,No=te,Bo=function(t,e,n){var r,i;Ro(t);try{if(!(r=Mo(t,"return"))){if("throw"===e)throw n;return n}r=Io(r,t)}catch(t){i=!0,r=t}if("throw"===e)throw n;if(i)throw r;return Ro(r),n},Lo=to,zo=at("iterator"),Ho=Array.prototype,Wo=ft,qo=k,Yo=c(Function.toString);Wo(qo.inspectSource)||(qo.inspectSource=function(t){return Yo(t)});var Xo=qo.inspectSource,Vo=c,Uo=n,$o=ft,Go=Et,Qo=Xo,Jo=function(){},Ko=[],Zo=ue("Reflect","construct"),ta=/^\s*(?:class|function)\b/,ea=Vo(ta.exec),na=!ta.exec(Jo),ra=function(t){if(!$o(t))return!1;try{return Zo(Jo,Ko,t),!0}catch(t){return!1}},ia=function(t){if(!$o(t))return!1;switch(Go(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return na||!!ea(ta,Qo(t))}catch(t){return!0}};ia.sham=!0;var oa=!Zo||Uo((function(){var t;return ra(ra.call)||!ra(Object)||!ra((function(){t=!0}))||t}))?ia:ra,aa=Be,sa=qt,ca=Ze,ua=function(t,e,n){var r=aa(e);r in t?sa.f(t,r,ca(0,n)):t[r]=n},la=Et,ha=Oe,fa=F,pa=to,va=at("iterator"),da=function(t){if(!fa(t))return ha(t,va)||ha(t,"@@iterator")||pa[la(t)]},ga=re,ya=we,ma=te,ba=ye,ka=da,wa=TypeError,Ca=lr,Ea=re,Oa=x,Fa=function(t,e,n,r){try{return r?e(No(n)[0],n[1]):e(n)}catch(e){Bo(t,"throw",e)}},Ta=function(t){return void 0!==t&&(Lo.Array===t||Ho[zo]===t)},_a=oa,Sa=Nr,Aa=ua,Pa=function(t,e){var n=arguments.length<2?ka(t):e;if(ya(n))return ma(ga(n,t));throw wa(ba(t)+" is not iterable")},xa=da,Da=Array,ja=at("iterator"),Ia=!1;try{var Ra=0,Ma={next:function(){return{done:!!Ra++}},return:function(){Ia=!0}};Ma[ja]=function(){return this},Array.from(Ma,(function(){throw 2}))}catch(t){}var Na=function(t){var e=Oa(t),n=_a(this),r=arguments.length,i=r>1?arguments[1]:void 0,o=void 0!==i;o&&(i=Ca(i,r>2?arguments[2]:void 0));var a,s,c,u,l,h,f=xa(e),p=0;if(!f||this===Da&&Ta(f))for(a=Sa(e),s=n?new this(a):Da(a);a>p;p++)h=o?i(e[p],p):e[p],Aa(s,p,h);else for(l=(u=Pa(e,f)).next,s=n?new this:[];!(c=Ea(l,u)).done;p++)h=o?Fa(u,i,[c.value,p],!0):c.value,Aa(s,p,h);return s.length=p,s},Ba=function(t,e){if(!e&&!Ia)return!1;var n=!1;try{var r={};r[ja]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n};Cr({target:"Array",stat:!0,forced:!Ba((function(t){Array.from(t)}))},{from:Na});var La=ie.Array.from,za=e(La),Ha=Wn,Wa=to,qa=wn;qt.f;var Ya=Oo,Xa=Fo,Va="Array Iterator",Ua=qa.set,$a=qa.getterFor(Va);Ya(Array,"Array",(function(t,e){Ua(this,{type:Va,target:Ha(t),index:0,kind:e})}),(function(){var t=$a(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,Xa(void 0,!0)):Xa("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values"),Wa.Arguments=Wa.Array;var Ga=da,Qa={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},Ja=v,Ka=Et,Za=nn,ts=to,es=at("toStringTag");for(var ns in Qa){var rs=Ja[ns],is=rs&&rs.prototype;is&&Ka(is)!==es&&Za(is,es,ns),ts[ns]=ts.Array}var os=e(Ga),as=gt,ss=Array.isArray||function(t){return"Array"==as(t)},cs=TypeError,us=function(t){if(t>9007199254740991)throw cs("Maximum allowed index exceeded");return t},ls=ss,hs=oa,fs=Ht,ps=at("species"),vs=Array,ds=function(t){var e;return ls(t)&&(e=t.constructor,(hs(e)&&(e===vs||ls(e.prototype))||fs(e)&&null===(e=e[ps]))&&(e=void 0)),void 0===e?vs:e},gs=function(t,e){return new(ds(t))(0===e?0:e)},ys=n,ms=U,bs=at("species"),ks=function(t){return ms>=51||!ys((function(){var e=[];return(e.constructor={})[bs]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},ws=Cr,Cs=n,Es=ss,Os=Ht,Fs=x,Ts=Nr,_s=us,Ss=ua,As=gs,Ps=ks,xs=U,Ds=at("isConcatSpreadable"),js=xs>=51||!Cs((function(){var t=[];return t[Ds]=!1,t.concat()[0]!==t})),Is=function(t){if(!Os(t))return!1;var e=t[Ds];return void 0!==e?!!e:Es(t)};ws({target:"Array",proto:!0,arity:1,forced:!js||!Ps("concat")},{concat:function(t){var e,n,r,i,o,a=Fs(this),s=As(a,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(Is(o=-1===e?a:arguments[e]))for(i=Ts(o),_s(c+i),n=0;n<i;n++,c++)n in o&&Ss(s,c,o[n]);else _s(c+1),Ss(s,c++,o);return s.length=c,s}});var Rs={},Ms=$r,Ns=Gr.concat("length","prototype");Rs.f=Object.getOwnPropertyNames||function(t){return Ms(t,Ns)};var Bs={},Ls=jr,zs=Nr,Hs=ua,Ws=Array,qs=Math.max,Ys=gt,Xs=Wn,Vs=Rs.f,Us=function(t,e,n){for(var r=zs(t),i=Ls(e,r),o=Ls(void 0===n?r:n,r),a=Ws(qs(o-i,0)),s=0;i<o;i++,s++)Hs(a,s,t[i]);return a.length=s,a},$s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Bs.f=function(t){return $s&&"Window"==Ys(t)?function(t){try{return Vs(t)}catch(t){return Us($s)}}(t):Vs(Xs(t))};var Gs={};Gs.f=Object.getOwnPropertySymbols;var Qs=qt,Js={},Ks=at;Js.f=Ks;var Zs=ie,tc=I,ec=Js,nc=qt.f,rc=function(t){var e=Zs.Symbol||(Zs.Symbol={});tc(e,t)||nc(e,t,{value:ec.f(t)})},ic=re,oc=ue,ac=at,sc=Ii,cc=function(){var t=oc("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,r=ac("toPrimitive");e&&!e[r]&&sc(e,r,(function(t){return ic(n,this)}),{arity:1})},uc=lr,lc=Ln,hc=x,fc=Nr,pc=gs,vc=c([].push),dc=function(t){var e=1==t,n=2==t,r=3==t,i=4==t,o=6==t,a=7==t,s=5==t||o;return function(c,u,l,h){for(var f,p,v=hc(c),d=lc(v),g=uc(u,l),y=fc(d),m=0,b=h||pc,k=e?b(c,y):n||a?b(c,0):void 0;y>m;m++)if((s||m in d)&&(p=g(f=d[m],m,v),t))if(e)k[m]=p;else if(p)switch(t){case 3:return!0;case 5:return f;case 6:return m;case 2:vc(k,f)}else switch(t){case 4:return!1;case 7:vc(k,f)}return o?-1:r||i?i:k}},gc={forEach:dc(0),map:dc(1),filter:dc(2),some:dc(3),every:dc(4),find:dc(5),findIndex:dc(6),filterReject:dc(7)},yc=Cr,mc=v,bc=re,kc=c,wc=Wt,Cc=Q,Ec=n,Oc=I,Fc=le,Tc=te,_c=Wn,Sc=Be,Ac=Tt,Pc=Ze,xc=Ei,Dc=Kr,jc=Rs,Ic=Bs,Rc=Gs,Mc=Pn,Nc=qt,Bc=Ar,Lc=xn,zc=Ii,Hc=function(t,e,n){return Qs.f(t,e,n)},Wc=O,qc=sn,Yc=L,Xc=at,Vc=Js,Uc=rc,$c=cc,Gc=Zi,Qc=wn,Jc=gc.forEach,Kc=an("hidden"),Zc="Symbol",tu="prototype",eu=Qc.set,nu=Qc.getterFor(Zc),ru=Object[tu],iu=mc.Symbol,ou=iu&&iu[tu],au=mc.TypeError,su=mc.QObject,cu=Mc.f,uu=Nc.f,lu=Ic.f,hu=Lc.f,fu=kc([].push),pu=Wc("symbols"),vu=Wc("op-symbols"),du=Wc("wks"),gu=!su||!su[tu]||!su[tu].findChild,yu=wc&&Ec((function(){return 7!=xc(uu({},"a",{get:function(){return uu(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=cu(ru,e);r&&delete ru[e],uu(t,e,n),r&&t!==ru&&uu(ru,e,r)}:uu,mu=function(t,e){var n=pu[t]=xc(ou);return eu(n,{type:Zc,tag:t,description:e}),wc||(n.description=e),n},bu=function(t,e,n){t===ru&&bu(vu,e,n),Tc(t);var r=Sc(e);return Tc(n),Oc(pu,r)?(n.enumerable?(Oc(t,Kc)&&t[Kc][r]&&(t[Kc][r]=!1),n=xc(n,{enumerable:Pc(0,!1)})):(Oc(t,Kc)||uu(t,Kc,Pc(1,{})),t[Kc][r]=!0),yu(t,r,n)):uu(t,r,n)},ku=function(t,e){Tc(t);var n=_c(e),r=Dc(n).concat(Ou(n));return Jc(r,(function(e){wc&&!bc(wu,n,e)||bu(t,e,n[e])})),t},wu=function(t){var e=Sc(t),n=bc(hu,this,e);return!(this===ru&&Oc(pu,e)&&!Oc(vu,e))&&(!(n||!Oc(this,e)||!Oc(pu,e)||Oc(this,Kc)&&this[Kc][e])||n)},Cu=function(t,e){var n=_c(t),r=Sc(e);if(n!==ru||!Oc(pu,r)||Oc(vu,r)){var i=cu(n,r);return!i||!Oc(pu,r)||Oc(n,Kc)&&n[Kc][r]||(i.enumerable=!0),i}},Eu=function(t){var e=lu(_c(t)),n=[];return Jc(e,(function(t){Oc(pu,t)||Oc(qc,t)||fu(n,t)})),n},Ou=function(t){var e=t===ru,n=lu(e?vu:_c(t)),r=[];return Jc(n,(function(t){!Oc(pu,t)||e&&!Oc(ru,t)||fu(r,pu[t])})),r};Cc||(zc(ou=(iu=function(){if(Fc(ou,this))throw au("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?Ac(arguments[0]):void 0,e=Yc(t),n=function(t){this===ru&&bc(n,vu,t),Oc(this,Kc)&&Oc(this[Kc],e)&&(this[Kc][e]=!1),yu(this,e,Pc(1,t))};return wc&&gu&&yu(ru,e,{configurable:!0,set:n}),mu(e,t)})[tu],"toString",(function(){return nu(this).tag})),zc(iu,"withoutSetter",(function(t){return mu(Yc(t),t)})),Lc.f=wu,Nc.f=bu,Bc.f=ku,Mc.f=Cu,jc.f=Ic.f=Eu,Rc.f=Ou,Vc.f=function(t){return mu(Xc(t),t)},wc&&Hc(ou,"description",{configurable:!0,get:function(){return nu(this).description}})),yc({global:!0,constructor:!0,wrap:!0,forced:!Cc,sham:!Cc},{Symbol:iu}),Jc(Dc(du),(function(t){Uc(t)})),yc({target:Zc,stat:!0,forced:!Cc},{useSetter:function(){gu=!0},useSimple:function(){gu=!1}}),yc({target:"Object",stat:!0,forced:!Cc,sham:!wc},{create:function(t,e){return void 0===e?xc(t):ku(xc(t),e)},defineProperty:bu,defineProperties:ku,getOwnPropertyDescriptor:Cu}),yc({target:"Object",stat:!0,forced:!Cc},{getOwnPropertyNames:Eu}),$c(),Gc(iu,Zc),qc[Kc]=!0;var Fu=Q&&!!Symbol.for&&!!Symbol.keyFor,Tu=Cr,_u=ue,Su=I,Au=Tt,Pu=O,xu=Fu,Du=Pu("string-to-symbol-registry"),ju=Pu("symbol-to-string-registry");Tu({target:"Symbol",stat:!0,forced:!xu},{for:function(t){var e=Au(t);if(Su(Du,e))return Du[e];var n=_u("Symbol")(e);return Du[e]=n,ju[n]=e,n}});var Iu=Cr,Ru=I,Mu=de,Nu=ye,Bu=Fu,Lu=O("symbol-to-string-registry");Iu({target:"Symbol",stat:!0,forced:!Bu},{keyFor:function(t){if(!Mu(t))throw TypeError(Nu(t)+" is not a symbol");if(Ru(Lu,t))return Lu[t]}});var zu=c([].slice),Hu=ss,Wu=ft,qu=gt,Yu=Tt,Xu=c([].push),Vu=Cr,Uu=ue,$u=Tn,Gu=re,Qu=c,Ju=n,Ku=ft,Zu=de,tl=zu,el=function(t){if(Wu(t))return t;if(Hu(t)){for(var e=t.length,n=[],r=0;r<e;r++){var i=t[r];"string"==typeof i?Xu(n,i):"number"!=typeof i&&"Number"!=qu(i)&&"String"!=qu(i)||Xu(n,Yu(i))}var o=n.length,a=!0;return function(t,e){if(a)return a=!1,e;if(Hu(this))return e;for(var r=0;r<o;r++)if(n[r]===t)return e}}},nl=Q,rl=String,il=Uu("JSON","stringify"),ol=Qu(/./.exec),al=Qu("".charAt),sl=Qu("".charCodeAt),cl=Qu("".replace),ul=Qu(1..toString),ll=/[\uD800-\uDFFF]/g,hl=/^[\uD800-\uDBFF]$/,fl=/^[\uDC00-\uDFFF]$/,pl=!nl||Ju((function(){var t=Uu("Symbol")();return"[null]"!=il([t])||"{}"!=il({a:t})||"{}"!=il(Object(t))})),vl=Ju((function(){return'"\\udf06\\ud834"'!==il("\udf06\ud834")||'"\\udead"'!==il("\udead")})),dl=function(t,e){var n=tl(arguments),r=el(e);if(Ku(r)||void 0!==t&&!Zu(t))return n[1]=function(t,e){if(Ku(r)&&(e=Gu(r,this,rl(t),e)),!Zu(e))return e},$u(il,null,n)},gl=function(t,e,n){var r=al(n,e-1),i=al(n,e+1);return ol(hl,t)&&!ol(fl,i)||ol(fl,t)&&!ol(hl,r)?"\\u"+ul(sl(t,0),16):t};il&&Vu({target:"JSON",stat:!0,arity:3,forced:pl||vl},{stringify:function(t,e,n){var r=tl(arguments),i=$u(pl?dl:il,null,r);return vl&&"string"==typeof i?cl(i,ll,gl):i}});var yl=Gs,ml=x;Cr({target:"Object",stat:!0,forced:!Q||n((function(){yl.f(1)}))},{getOwnPropertySymbols:function(t){var e=yl.f;return e?e(ml(t)):[]}}),rc("asyncIterator"),rc("hasInstance"),rc("isConcatSpreadable"),rc("iterator"),rc("match"),rc("matchAll"),rc("replace"),rc("search"),rc("species"),rc("split");var bl=cc;rc("toPrimitive"),bl();var kl=ue,wl=Zi;rc("toStringTag"),wl(kl("Symbol"),"Symbol"),rc("unscopables"),Zi(v.JSON,"JSON",!0);var Cl=ie.Symbol;rc("dispose");var El=Cl;rc("asyncDispose");var Ol=Cr,Fl=c,Tl=ue("Symbol"),_l=Tl.keyFor,Sl=Fl(Tl.prototype.valueOf);Ol({target:"Symbol",stat:!0},{isRegistered:function(t){try{return void 0!==_l(Sl(t))}catch(t){return!1}}});for(var Al=Cr,Pl=O,xl=ue,Dl=c,jl=de,Il=at,Rl=xl("Symbol"),Ml=Rl.isWellKnown,Nl=xl("Object","getOwnPropertyNames"),Bl=Dl(Rl.prototype.valueOf),Ll=Pl("wks"),zl=0,Hl=Nl(Rl),Wl=Hl.length;zl<Wl;zl++)try{var ql=Hl[zl];jl(Rl[ql])&&Il(ql)}catch(t){}Al({target:"Symbol",stat:!0,forced:!0},{isWellKnown:function(t){if(Ml&&Ml(t))return!0;try{for(var e=Bl(t),n=0,r=Nl(Ll),i=r.length;n<i;n++)if(Ll[r[n]]==e)return!0}catch(t){}return!1}}),rc("matcher"),rc("metadataKey"),rc("observable"),rc("metadata"),rc("patternMatch"),rc("replaceAll");var Yl=e(El),Xl=e(Js.f("iterator"));function Vl(t){return Vl="function"==typeof Yl&&"symbol"==typeof Xl?function(t){return typeof t}:function(t){return t&&"function"==typeof Yl&&t.constructor===Yl&&t!==Yl.prototype?"symbol":typeof t},Vl(t)}Cr({target:"Array",stat:!0},{isArray:ss});var Ul=ie.Array.isArray,$l=e(Ul);function Gl(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Ql=e(La);var Jl=Cr,Kl=ss,Zl=oa,th=Ht,eh=jr,nh=Nr,rh=Wn,ih=ua,oh=at,ah=zu,sh=ks("slice"),ch=oh("species"),uh=Array,lh=Math.max;Jl({target:"Array",proto:!0,forced:!sh},{slice:function(t,e){var n,r,i,o=rh(this),a=nh(o),s=eh(t,a),c=eh(void 0===e?a:e,a);if(Kl(o)&&(n=o.constructor,(Zl(n)&&(n===uh||Kl(n.prototype))||th(n)&&null===(n=n[ch]))&&(n=void 0),n===uh||void 0===n))return ah(o,s,c);for(r=new(void 0===n?uh:n)(lh(c-s,0)),i=0;s<c;s++,i++)s in o&&ih(r,i,o[s]);return r.length=i,r}});var hh=ie,fh=function(t){return hh[t+"Prototype"]},ph=fh("Array").slice,vh=le,dh=ph,gh=Array.prototype,yh=function(t){var e=t.slice;return t===gh||vh(gh,t)&&e===gh.slice?dh:e},mh=e(yh);function bh(t,e){var n;if(t){if("string"==typeof t)return Gl(t,e);var r=mh(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Ql(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Gl(t,e):void 0}}function kh(t){return function(t){if($l(t))return Gl(t)}(t)||function(t){if(void 0!==Yl&&null!=os(t)||null!=t["@@iterator"])return Ql(t)}(t)||bh(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var wh=e(Cl),Ch=fh("Array").concat,Eh=le,Oh=Ch,Fh=Array.prototype,Th=e((function(t){var e=t.concat;return t===Fh||Eh(Fh,t)&&e===Fh.concat?Oh:e})),_h=e(yh),Sh=ue,Ah=Rs,Ph=Gs,xh=te,Dh=c([].concat),jh=Sh("Reflect","ownKeys")||function(t){var e=Ah.f(xh(t)),n=Ph.f;return n?Dh(e,n(t)):e};Cr({target:"Reflect",stat:!0},{ownKeys:jh});var Ih=e(ie.Reflect.ownKeys),Rh=e(Ul),Mh=gc.map;Cr({target:"Array",proto:!0,forced:!ks("map")},{map:function(t){return Mh(this,t,arguments.length>1?arguments[1]:void 0)}});var Nh=fh("Array").map,Bh=le,Lh=Nh,zh=Array.prototype,Hh=e((function(t){var e=t.map;return t===zh||Bh(zh,t)&&e===zh.map?Lh:e})),Wh=x,qh=Kr;Cr({target:"Object",stat:!0,forced:n((function(){qh(1)}))},{keys:function(t){return qh(Wh(t))}});var Yh=e(ie.Object.keys);function Xh(t,e){var n=void 0!==wh&&os(t)||t["@@iterator"];if(!n){if(Rh(t)||(n=function(t,e){var n;if(!t)return;if("string"==typeof t)return Vh(t,e);var r=_h(n=Object.prototype.toString.call(t)).call(n,8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return za(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Vh(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Vh(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Uh=wh("DELETE");function $h(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return Gh.apply(void 0,Th(e=[{},t]).call(e,r))}function Gh(){var t=Qh.apply(void 0,arguments);return Kh(t),t}function Qh(){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];var r;if(e.length>2)return Qh.apply(void 0,Th(r=[Gh(e[0],e[1])]).call(r,kh(_h(e).call(e,2))));var i=e[0],o=e[1];if(i instanceof Date&&o instanceof Date)return i.setTime(o.getTime()),i;var a,s=Xh(Ih(o));try{for(s.s();!(a=s.n()).done;){var c=a.value;Object.prototype.propertyIsEnumerable.call(o,c)&&(o[c]===Uh?delete i[c]:null===i[c]||null===o[c]||"object"!==Vl(i[c])||"object"!==Vl(o[c])||Rh(i[c])||Rh(o[c])?i[c]=Jh(o[c]):i[c]=Qh(i[c],o[c]))}}catch(t){s.e(t)}finally{s.f()}return i}function Jh(t){return Rh(t)?Hh(t).call(t,(function(t){return Jh(t)})):"object"===Vl(t)&&null!==t?t instanceof Date?new Date(t.getTime()):Qh({},t):t}function Kh(t){for(var e=0,n=Yh(t);e<n.length;e++){var r=n[e];t[r]===Uh?delete t[r]:"object"===Vl(t[r])&&null!==t[r]&&Kh(t[r])}}function Zh(t,e){return function(t){if($l(t))return t}(t)||function(t,e){var n=null==t?null:void 0!==Yl&&os(t)||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(t){u=!0,i=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(t,e)||bh(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 tf=Cr,ef=Date,nf=c(ef.prototype.getTime);tf({target:"Date",stat:!0},{now:function(){return nf(new ef)}});var rf=e(ie.Date.now);function of(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){var e=function(){for(var t=function(){var t=4022871197;return function(e){for(var n=e.toString(),r=0;r<n.length;r++){var i=.02519603282416938*(t+=n.charCodeAt(r));i-=t=i>>>0,t=(i*=t)>>>0,t+=4294967296*(i-=t)}return 2.3283064365386963e-10*(t>>>0)}}(),e=t(" "),n=t(" "),r=t(" "),i=0;i<arguments.length;i++)(e-=t(i<0||arguments.length<=i?void 0:arguments[i]))<0&&(e+=1),(n-=t(i<0||arguments.length<=i?void 0:arguments[i]))<0&&(n+=1),(r-=t(i<0||arguments.length<=i?void 0:arguments[i]))<0&&(r+=1);return[e,n,r]}(t),n=Zh(e,3),r=n[0],i=n[1],o=n[2],a=1,s=function(){var t=2091639*r+2.3283064365386963e-10*a;return r=i,i=o,o=t-(a=0|t)};return s.uint32=function(){return 4294967296*s()},s.fract53=function(){return s()+11102230246251565e-32*(2097152*s()|0)},s.algorithm="Alea",s.seed=t,s.version="0.9",s}(e.length?e:[rf()])}var af=c,sf=we,cf=Ht,uf=I,lf=zu,hf=r,ff=Function,pf=af([].concat),vf=af([].join),df={},gf=hf?ff.bind:function(t){var e=sf(this),n=e.prototype,r=lf(arguments,1),i=function(){var n=pf(r,lf(arguments));return this instanceof i?function(t,e,n){if(!uf(df,e)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";df[e]=ff("C,a","return new C("+vf(r,",")+")")}return df[e](t,n)}(e,n.length,n):e.apply(t,n)};return cf(n)&&(i.prototype=n),i},yf=gf;Cr({target:"Function",proto:!0,forced:Function.bind!==yf},{bind:yf});var mf=fh("Function").bind,bf=le,kf=mf,wf=Function.prototype,Cf=e((function(t){var e=t.bind;return t===wf||bf(wf,t)&&e===wf.bind?kf:e})),Ef=n,Of=function(t,e){var n=[][t];return!!n&&Ef((function(){n.call(null,e||function(){return 1},1)}))},Ff=gc.forEach,Tf=Of("forEach")?[].forEach:function(t){return Ff(this,t,arguments.length>1?arguments[1]:void 0)};Cr({target:"Array",proto:!0,forced:[].forEach!=Tf},{forEach:Tf});var _f=fh("Array").forEach,Sf=Et,Af=I,Pf=le,xf=_f,Df=Array.prototype,jf={DOMTokenList:!0,NodeList:!0},If=e((function(t){var e=t.forEach;return t===Df||Pf(Df,t)&&e===Df.forEach||Af(jf,Sf(t))?xf:e})),Rf=Cr,Mf=ss,Nf=c([].reverse),Bf=[1,2];Rf({target:"Array",proto:!0,forced:String(Bf)===String(Bf.reverse())},{reverse:function(){return Mf(this)&&(this.length=this.length),Nf(this)}});var Lf=fh("Array").reverse,zf=le,Hf=Lf,Wf=Array.prototype,qf=e((function(t){var e=t.reverse;return t===Wf||zf(Wf,t)&&e===Wf.reverse?Hf:e})),Yf=Wt,Xf=ss,Vf=TypeError,Uf=Object.getOwnPropertyDescriptor,$f=Yf&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}(),Gf=ye,Qf=TypeError,Jf=Cr,Kf=x,Zf=jr,tp=f,ep=Nr,np=$f?function(t,e){if(Xf(t)&&!Uf(t,"length").writable)throw Vf("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},rp=us,ip=gs,op=ua,ap=function(t,e){if(!delete t[e])throw Qf("Cannot delete property "+Gf(e)+" of "+Gf(t))},sp=ks("splice"),cp=Math.max,up=Math.min;Jf({target:"Array",proto:!0,forced:!sp},{splice:function(t,e){var n,r,i,o,a,s,c=Kf(this),u=ep(c),l=Zf(t,u),h=arguments.length;for(0===h?n=r=0:1===h?(n=0,r=u-l):(n=h-2,r=up(cp(tp(e),0),u-l)),rp(u+n-r),i=ip(c,r),o=0;o<r;o++)(a=l+o)in c&&op(i,o,c[a]);if(i.length=r,n<r){for(o=l;o<u-r;o++)s=o+n,(a=o+r)in c?c[s]=c[a]:ap(c,s);for(o=u;o>u-r+n;o--)ap(c,o-1)}else if(n>r)for(o=u-r;o>l;o--)s=o+n-1,(a=o+r-1)in c?c[s]=c[a]:ap(c,s);for(o=0;o<n;o++)c[o+l]=arguments[o+2];return np(c,u-r+n),i}});var lp=fh("Array").splice,hp=le,fp=lp,pp=Array.prototype,vp=e((function(t){var e=t.splice;return t===pp||hp(pp,t)&&e===pp.splice?fp:e})),dp={exports:{}};!function(t){function e(t){if(t)return function(t){for(var n in e.prototype)t[n]=e.prototype[n];return t}(t)}dp.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+t];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var i=0;i<r.length;i++)if((n=r[i])===e||n.fn===e){r.splice(i,1);break}return 0===r.length&&delete this._callbacks["$"+t],this},e.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),n=this._callbacks["$"+t],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(n){r=0;for(var i=(n=n.slice(0)).length;r<i;++r)n[r].apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},e.prototype.hasListeners=function(t){return!!this.listeners(t).length}}();var gp=e(dp.exports);
|
|
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 yp(){return yp=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},yp.apply(this,arguments)}function mp(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function bp(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var kp,wp="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,Cp=["","webkit","Moz","MS","ms","o"],Ep="undefined"==typeof document?{style:{}}:document.createElement("div"),Op=Math.round,Fp=Math.abs,_p=Date.now;function Tp(t,e){for(var n,r,i=e[0].toUpperCase()+e.slice(1),o=0;o<Cp.length;){if((r=(n=Cp[o])?n+i:e)in t)return r;o++}}kp="undefined"==typeof window?{}:window;var Sp=Tp(Ep.style,"touchAction"),Ap=void 0!==Sp;var Pp="compute",xp="auto",Dp="manipulation",jp="none",Ip="pan-x",Rp="pan-y",Mp=function(){if(!Ap)return!1;var t={},e=kp.CSS&&kp.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){return t[n]=!e||kp.CSS.supports("touch-action",n)})),t}(),Np="ontouchstart"in kp,Bp=void 0!==Tp(kp,"PointerEvent"),Lp=Np&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),zp="touch",Hp="mouse",Wp=25,qp=1,Yp=4,Xp=8,Vp=1,Up=2,$p=4,Gp=8,Qp=16,Jp=Up|$p,Kp=Gp|Qp,Zp=Jp|Kp,tv=["x","y"],ev=["clientX","clientY"];function nv(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 rv(t,e){return"function"==typeof t?t.apply(e&&e[0]||void 0,e):t}function iv(t,e){return t.indexOf(e)>-1}var ov=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){t===Pp&&(t=this.compute()),Ap&&this.manager.element.style&&Mp[t]&&(this.manager.element.style[Sp]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return nv(this.manager.recognizers,(function(e){rv(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(iv(t,jp))return jp;var e=iv(t,Ip),n=iv(t,Rp);return e&&n?jp:e||n?e?Ip:Rp:iv(t,Dp)?Dp:xp}(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=iv(r,jp)&&!Mp[jp],o=iv(r,Rp)&&!Mp[Rp],a=iv(r,Ip)&&!Mp[Ip];if(i){var s=1===t.pointers.length,c=t.distance<2,u=t.deltaTime<250;if(s&&c&&u)return}if(!a||!o)return i||o&&n&Jp||a&&n&Kp?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function av(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function sv(t){var e=t.length;if(1===e)return{x:Op(t[0].clientX),y:Op(t[0].clientY)};for(var n=0,r=0,i=0;i<e;)n+=t[i].clientX,r+=t[i].clientY,i++;return{x:Op(n/e),y:Op(r/e)}}function cv(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:Op(t.pointers[n].clientX),clientY:Op(t.pointers[n].clientY)},n++;return{timeStamp:_p(),pointers:e,center:sv(e),deltaX:t.deltaX,deltaY:t.deltaY}}function uv(t,e,n){n||(n=tv);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return Math.sqrt(r*r+i*i)}function lv(t,e,n){n||(n=tv);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return 180*Math.atan2(i,r)/Math.PI}function hv(t,e){return t===e?Vp:Fp(t)>=Fp(e)?t<0?Up:$p:e<0?Gp:Qp}function fv(t,e,n){return{x:e/t||0,y:n/t||0}}function pv(t,e){var n=t.session,r=e.pointers,i=r.length;n.firstInput||(n.firstInput=cv(e)),i>1&&!n.firstMultiple?n.firstMultiple=cv(e):1===i&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,s=a?a.center:o.center,c=e.center=sv(r);e.timeStamp=_p(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=lv(s,c),e.distance=uv(s,c),function(t,e){var n=e.center,r=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};e.eventType!==qp&&o.eventType!==Yp||(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=hv(e.deltaX,e.deltaY);var u,l,h=fv(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=h.x,e.overallVelocityY=h.y,e.overallVelocity=Fp(h.x)>Fp(h.y)?h.x:h.y,e.scale=a?(u=a.pointers,uv((l=r)[0],l[1],ev)/uv(u[0],u[1],ev)):1,e.rotation=a?function(t,e){return lv(e[1],e[0],ev)+lv(t[1],t[0],ev)}(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(e.eventType!==Xp&&(s>Wp||void 0===a.velocity)){var c=e.deltaX-a.deltaX,u=e.deltaY-a.deltaY,l=fv(s,c,u);r=l.x,i=l.y,n=Fp(l.x)>Fp(l.y)?l.x:l.y,o=hv(c,u),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 f,p=t.element,v=e.srcEvent;av(f=v.composedPath?v.composedPath()[0]:v.path?v.path[0]:v.target,p)&&(p=f),e.target=p}function vv(t,e,n){var r=n.pointers.length,i=n.changedPointers.length,o=e&qp&&r-i==0,a=e&(Yp|Xp)&&r-i==0;n.isFirst=!!o,n.isFinal=!!a,o&&(t.session={}),n.eventType=e,pv(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function dv(t){return t.trim().split(/\s+/g)}function gv(t,e,n){nv(dv(e),(function(e){t.addEventListener(e,n,!1)}))}function yv(t,e,n){nv(dv(e),(function(e){t.removeEventListener(e,n,!1)}))}function mv(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var bv=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){rv(t.options.enable,[t])&&n.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&gv(this.element,this.evEl,this.domHandler),this.evTarget&&gv(this.target,this.evTarget,this.domHandler),this.evWin&&gv(mv(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&yv(this.element,this.evEl,this.domHandler),this.evTarget&&yv(this.target,this.evTarget,this.domHandler),this.evWin&&yv(mv(this.element),this.evWin,this.domHandler)},t}();function kv(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 wv={pointerdown:qp,pointermove:2,pointerup:Yp,pointercancel:Xp,pointerout:Xp},Cv={2:zp,3:"pen",4:Hp,5:"kinect"},Ev="pointerdown",Ov="pointermove pointerup pointercancel";kp.MSPointerEvent&&!kp.PointerEvent&&(Ev="MSPointerDown",Ov="MSPointerMove MSPointerUp MSPointerCancel");var Fv=function(t){function e(){var n,r=e.prototype;return r.evEl=Ev,r.evWin=Ov,(n=t.apply(this,arguments)||this).store=n.manager.session.pointerEvents=[],n}return mp(e,t),e.prototype.handler=function(t){var e=this.store,n=!1,r=t.type.toLowerCase().replace("ms",""),i=wv[r],o=Cv[t.pointerType]||t.pointerType,a=o===zp,s=kv(e,t.pointerId,"pointerId");i&qp&&(0===t.button||a)?s<0&&(e.push(t),s=e.length-1):i&(Yp|Xp)&&(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}(bv);function _v(t){return Array.prototype.slice.call(t,0)}function Tv(t,e,n){for(var r=[],i=[],o=0;o<t.length;){var a=e?t[o][e]:t[o];kv(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 Sv={touchstart:qp,touchmove:2,touchend:Yp,touchcancel:Xp},Av=function(t){function e(){var n;return e.prototype.evTarget="touchstart touchmove touchend touchcancel",(n=t.apply(this,arguments)||this).targetIds={},n}return mp(e,t),e.prototype.handler=function(t){var e=Sv[t.type],n=Pv.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:zp,srcEvent:t})},e}(bv);function Pv(t,e){var n,r,i=_v(t.touches),o=this.targetIds;if(e&(2|qp)&&1===i.length)return o[i[0].identifier]=!0,[i,i];var a=_v(t.changedTouches),s=[],c=this.target;if(r=i.filter((function(t){return av(t.target,c)})),e===qp)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]),e&(Yp|Xp)&&delete o[a[n].identifier],n++;return s.length?[Tv(r.concat(s),"identifier",!0),s]:void 0}var xv={mousedown:qp,mousemove:2,mouseup:Yp},Dv=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 mp(e,t),e.prototype.handler=function(t){var e=xv[t.type];e&qp&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=Yp),this.pressed&&(e&Yp&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:Hp,srcEvent:t}))},e}(bv),jv=2500;function Iv(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)}),jv)}}function Rv(t,e){t&qp?(this.primaryTouch=e.changedPointers[0].identifier,Iv.call(this,e)):t&(Yp|Xp)&&Iv.call(this,e)}function Mv(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 Nv=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===zp,o=n.pointerType===Hp;if(!(o&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)Rv.call(bp(bp(r)),e,n);else if(o&&Mv.call(bp(bp(r)),n))return;r.callback(t,e,n)}},r.touch=new Av(r.manager,r.handler),r.mouse=new Dv(r.manager,r.handler),r.primaryTouch=null,r.lastTouches=[],r}return mp(e,t),e.prototype.destroy=function(){this.touch.destroy(),this.mouse.destroy()},e}(bv)}();function Bv(t,e,n){return!!Array.isArray(t)&&(nv(t,n[e],n),!0)}var Lv=32,zv=1;function Hv(t,e){var n=e.manager;return n?n.get(t):t}function Wv(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}var qv=function(){function t(t){void 0===t&&(t={}),this.options=yp({enable:!0},t),this.id=zv++,this.manager=null,this.state=1,this.simultaneous={},this.requireFail=[]}var e=t.prototype;return e.set=function(t){return wp(this.options,t),this.manager&&this.manager.touchAction.update(),this},e.recognizeWith=function(t){if(Bv(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=Hv(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},e.dropRecognizeWith=function(t){return Bv(t,"dropRecognizeWith",this)||(t=Hv(t,this),delete this.simultaneous[t.id]),this},e.requireFailure=function(t){if(Bv(t,"requireFailure",this))return this;var e=this.requireFail;return-1===kv(e,t=Hv(t,this))&&(e.push(t),t.requireFailure(this)),this},e.dropRequireFailure=function(t){if(Bv(t,"dropRequireFailure",this))return this;t=Hv(t,this);var e=kv(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+Wv(n)),r(e.options.event),t.additionalEvent&&r(t.additionalEvent),n>=8&&r(e.options.event+Wv(n))},e.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=Lv},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=wp({},t);if(!rv(this.options.enable,[this,e]))return this.reset(),void(this.state=Lv);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}(),Yv=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,yp({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}mp(e,t);var n=e.prototype;return n.getTouchAction=function(){return[Dp]},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(),t.eventType&qp&&0===this.count)return this.failTimeout();if(i&&o&&r){if(t.eventType!==Yp)return this.failTimeout();var a=!this.pTime||t.timeStamp-this.pTime<n.interval,s=!this.pCenter||uv(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 Lv},n.failTimeout=function(){var t=this;return this._timer=setTimeout((function(){t.state=Lv}),this.options.interval),Lv},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}(qv),Xv=function(t){function e(e){return void 0===e&&(e={}),t.call(this,yp({pointers:1},e))||this}mp(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&&(n&Xp||!i)?16|e:r||i?n&Yp?8|e:2&e?4|e:2:Lv},e}(qv);function Vv(t){return t===Qp?"down":t===Gp?"up":t===Up?"left":t===$p?"right":""}var Uv=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,yp({event:"pan",threshold:10,pointers:1,direction:Zp},e))||this).pX=null,n.pY=null,n}mp(e,t);var n=e.prototype;return n.getTouchAction=function(){var t=this.options.direction,e=[];return t&Jp&&e.push(Rp),t&Kp&&e.push(Ip),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||(e.direction&Jp?(i=0===o?Vp:o<0?Up:$p,n=o!==this.pX,r=Math.abs(t.deltaX)):(i=0===a?Vp:a<0?Gp:Qp,n=a!==this.pY,r=Math.abs(t.deltaY))),t.direction=i,n&&r>e.threshold&&i&e.direction},n.attrTest=function(t){return Xv.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=Vv(e.direction);n&&(e.additionalEvent=this.options.event+n),t.prototype.emit.call(this,e)},e}(Xv),$v=function(t){function e(e){return void 0===e&&(e={}),t.call(this,yp({event:"swipe",threshold:10,velocity:.3,direction:Jp|Kp,pointers:1},e))||this}mp(e,t);var n=e.prototype;return n.getTouchAction=function(){return Uv.prototype.getTouchAction.call(this)},n.attrTest=function(e){var n,r=this.options.direction;return r&(Jp|Kp)?n=e.overallVelocity:r&Jp?n=e.overallVelocityX:r&Kp&&(n=e.overallVelocityY),t.prototype.attrTest.call(this,e)&&r&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers===this.options.pointers&&Fp(n)>this.options.velocity&&e.eventType&Yp},n.emit=function(t){var e=Vv(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},e}(Xv),Gv=function(t){function e(e){return void 0===e&&(e={}),t.call(this,yp({event:"pinch",threshold:0,pointers:2},e))||this}mp(e,t);var n=e.prototype;return n.getTouchAction=function(){return[jp]},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}(Xv),Qv=function(t){function e(e){return void 0===e&&(e={}),t.call(this,yp({event:"rotate",threshold:0,pointers:2},e))||this}mp(e,t);var n=e.prototype;return n.getTouchAction=function(){return[jp]},n.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)},e}(Xv),Jv=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,yp({event:"press",pointers:1,time:251,threshold:9},e))||this)._timer=null,n._input=null,n}mp(e,t);var n=e.prototype;return n.getTouchAction=function(){return[xp]},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||t.eventType&(Yp|Xp)&&!o)this.reset();else if(t.eventType&qp)this.reset(),this._timer=setTimeout((function(){e.state=8,e.tryEmit()}),n.time);else if(t.eventType&Yp)return 8;return Lv},n.reset=function(){clearTimeout(this._timer)},n.emit=function(t){8===this.state&&(t&&t.eventType&Yp?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=_p(),this.manager.emit(this.options.event,this._input)))},e}(qv),Kv={domEvents:!1,touchAction:Pp,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Zv=[[Qv,{enable:!1}],[Gv,{enable:!1},["rotate"]],[$v,{direction:Jp}],[Uv,{direction:Jp},["swipe"]],[Yv],[Yv,{event:"doubletap",taps:2},["tap"]],[Jv]];function td(t,e){var n,r=t.element;r.style&&(nv(t.options.cssProps,(function(i,o){n=Tp(r.style,o),e?(t.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}var ed=function(){function t(t,e){var n,r=this;this.options=wp({},Kv,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||(Bp?Fv:Lp?Av:Np?Nv:Dv))(n,vv),this.touchAction=new ov(this,this.options.touchAction),td(this,!0),nv(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 wp(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 qv)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(Bv(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(Bv(t,"remove",this))return this;var e=this.get(t);if(t){var n=this.recognizers,r=kv(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 nv(dv(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 nv(dv(t),(function(t){e?n[t]&&n[t].splice(kv(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&&td(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},t}(),nd={touchstart:qp,touchmove:2,touchend:Yp,touchcancel:Xp},rd=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 mp(e,t),e.prototype.handler=function(t){var e=nd[t.type];if(e===qp&&(this.started=!0),this.started){var n=id.call(this,t,e);e&(Yp|Xp)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:zp,srcEvent:t})}},e}(bv);function id(t,e){var n=_v(t.touches),r=_v(t.changedTouches);return e&(Yp|Xp)&&(n=Tv(n.concat(r),"identifier",!0)),[n,r]}function od(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 ad=od((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`."),sd=od((function(t,e){return ad(t,e,!0)}),"merge","Use `assign`.");function cd(t,e,n){var r,i=e.prototype;(r=t.prototype=Object.create(i)).constructor=t,r._super=i,n&&wp(r,n)}function ud(t,e){return function(){return t.apply(e,arguments)}}var ld=function(){var t=function(t,e){return void 0===e&&(e={}),new ed(t,yp({recognizers:Zv.concat()},e))};return t.VERSION="2.0.17-rc",t.DIRECTION_ALL=Zp,t.DIRECTION_DOWN=Qp,t.DIRECTION_LEFT=Up,t.DIRECTION_RIGHT=$p,t.DIRECTION_UP=Gp,t.DIRECTION_HORIZONTAL=Jp,t.DIRECTION_VERTICAL=Kp,t.DIRECTION_NONE=Vp,t.DIRECTION_DOWN=Qp,t.INPUT_START=qp,t.INPUT_MOVE=2,t.INPUT_END=Yp,t.INPUT_CANCEL=Xp,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=Lv,t.Manager=ed,t.Input=bv,t.TouchAction=ov,t.TouchInput=Av,t.MouseInput=Dv,t.PointerEventInput=Fv,t.TouchMouseInput=Nv,t.SingleTouchInput=rd,t.Recognizer=qv,t.AttrRecognizer=Xv,t.Tap=Yv,t.Pan=Uv,t.Swipe=$v,t.Pinch=Gv,t.Rotate=Qv,t.Press=Jv,t.on=gv,t.off=yv,t.each=nv,t.merge=sd,t.extend=ad,t.bindFn=ud,t.assign=wp,t.inherit=cd,t.bindFn=ud,t.prefixed=Tp,t.toArray=_v,t.inArray=kv,t.uniqueArray=Tv,t.splitStr=dv,t.boolOrFn=rv,t.hasParent=av,t.addEventListeners=gv,t.removeEventListeners=yv,t.defaults=wp({},Kv,{preset:Zv}),t}();ld.defaults;var hd=ld;var fd="undefined"!=typeof window?window.Hammer||hd:function(){return function(){var t=function(){};return{on:t,off:t,destroy:t,emit:t,get:function(){return{set:t}}}}()};function pd(t,e){var n=void 0!==wh&&os(t)||t["@@iterator"];if(!n){if(Rh(t)||(n=function(t,e){var n;if(!t)return;if("string"==typeof t)return vd(t,e);var r=Th(n=Object.prototype.toString.call(t)).call(n,8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return za(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vd(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function vd(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function dd(t){var e,n=this;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((function(){n._dom.overlay.parentNode.removeChild(n._dom.overlay)}));var r=fd(this._dom.overlay);r.on("tap",Cf(e=this._onTapOverlay).call(e,this)),this._cleanupQueue.push((function(){r.destroy()}));var i=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];If(i).call(i,(function(t){r.on(t,(function(t){t.srcEvent.stopPropagation()}))})),document&&document.body&&(this._onClick=function(e){(function(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1})(e.target,t)||n.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push((function(){document.body.removeEventListener("click",n._onClick)}))),this._escListener=function(t){("key"in t?"Escape"===t.key:27===t.keyCode)&&n.deactivate()}}function gd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}gp(dd.prototype),dd.current=null,dd.prototype.destroy=function(){var t,e;this.deactivate();var n,r=pd(qf(t=vp(e=this._cleanupQueue).call(e,0)).call(t));try{for(r.s();!(n=r.n()).done;){(0,n.value)()}}catch(t){r.e(t)}finally{r.f()}},dd.prototype.activate=function(){dd.current&&dd.current.deactivate(),dd.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)},dd.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")},dd.prototype._onTapOverlay=function(t){this.activate(),t.srcEvent.stopPropagation()};var yd={exports:{}},md=Cr,bd=Wt,kd=qt.f;md({target:"Object",stat:!0,forced:Object.defineProperty!==kd,sham:!bd},{defineProperty:kd});var wd=ie.Object,Cd=yd.exports=function(t,e,n){return wd.defineProperty(t,e,n)};wd.defineProperty.sham&&(Cd.sham=!0);var Ed=e(yd.exports),Od=e(Js.f("toPrimitive"));function Fd(t){var e=function(t,e){if("object"!==Vl(t)||null===t)return t;var n=t[Od];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Vl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Vl(e)?e:String(e)}function _d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Ed(t,Fd(r.key),r)}}function Td(t,e,n){return e&&_d(t.prototype,e),n&&_d(t,n),Ed(t,"prototype",{writable:!1}),t}var Sd=ie,Ad=_n;Sd.JSON||(Sd.JSON={stringify:JSON.stringify});var Pd=e((function(t,e,n){return Ad(Sd.JSON.stringify,null,arguments)})),xd=Wt,Dd=c,jd=re,Id=n,Rd=Kr,Md=Gs,Nd=xn,Bd=x,Ld=Ln,zd=Object.assign,Hd=Object.defineProperty,Wd=Dd([].concat),qd=!zd||Id((function(){if(xd&&1!==zd({b:1},zd(Hd({},"a",{enumerable:!0,get:function(){Hd(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=zd({},t)[n]||Rd(zd({},e)).join("")!=r}))?function(t,e){for(var n=Bd(t),r=arguments.length,i=1,o=Md.f,a=Nd.f;r>i;)for(var s,c=Ld(arguments[i++]),u=o?Wd(Rd(c),o(c)):Rd(c),l=u.length,h=0;l>h;)s=u[h++],xd&&!jd(a,c,s)||(n[s]=c[s]);return n}:zd,Yd=qd;Cr({target:"Object",stat:!0,arity:2,forced:Object.assign!==Yd},{assign:Yd});var Xd=e(ie.Object.assign),Vd="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,Ud=TypeError,$d=v,Gd=_n,Qd=ft,Jd=Vd,Kd=z,Zd=zu,tg=function(t,e){if(t<e)throw Ud("Not enough arguments");return t},eg=$d.Function,ng=/MSIE .\./.test(Kd)||Jd&&function(){var t=$d.Bun.version.split(".");return t.length<3||0==t[0]&&(t[1]<3||3==t[1]&&0==t[2])}(),rg=function(t,e){var n=e?2:1;return ng?function(r,i){var o=tg(arguments.length,1)>n,a=Qd(r)?r:eg(r),s=o?Zd(arguments,n):[],c=o?function(){Gd(a,this,s)}:a;return e?t(c,i):t(c)}:t},ig=Cr,og=v,ag=rg(og.setInterval,!0);ig({global:!0,bind:!0,forced:og.setInterval!==ag},{setInterval:ag});var sg=Cr,cg=v,ug=rg(cg.setTimeout,!0);sg({global:!0,bind:!0,forced:cg.setTimeout!==ug},{setTimeout:ug});var lg=e(ie.setTimeout),hg=x,fg=jr,pg=Nr;Cr({target:"Array",proto:!0},{fill:function(t){for(var e=hg(this),n=pg(e),r=arguments.length,i=fg(r>1?arguments[1]:void 0,n),o=r>2?arguments[2]:void 0,a=void 0===o?n:fg(o,n);a>i;)e[i++]=t;return e}});var vg=fh("Array").fill,dg=le,gg=vg,yg=Array.prototype,mg=e((function(t){var e=t.fill;return t===yg||dg(yg,t)&&e===yg.fill?gg:e})),bg=Wr.includes;Cr({target:"Array",proto:!0,forced:n((function(){return!Array(1).includes()}))},{includes:function(t){return bg(this,t,arguments.length>1?arguments[1]:void 0)}});var kg=fh("Array").includes,wg=Ht,Cg=gt,Eg=at("match"),Og=function(t){var e;return wg(t)&&(void 0!==(e=t[Eg])?!!e:"RegExp"==Cg(t))},Fg=TypeError,_g=at("match"),Tg=Cr,Sg=function(t){if(Og(t))throw Fg("The method doesn't accept regular expressions");return t},Ag=S,Pg=_t,xg=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[_g]=!1,"/./"[t](e)}catch(t){}}return!1},Dg=c("".indexOf);Tg({target:"String",proto:!0,forced:!xg("includes")},{includes:function(t){return!!~Dg(Pg(Ag(this)),Pg(Sg(t)),arguments.length>1?arguments[1]:void 0)}});var jg=fh("String").includes,Ig=le,Rg=kg,Mg=jg,Ng=Array.prototype,Bg=String.prototype,Lg=e((function(t){var e=t.includes;return t===Ng||Ig(Ng,t)&&e===Ng.includes?Rg:"string"==typeof t||t===Bg||Ig(Bg,t)&&e===Bg.includes?Mg:e})),zg=x,Hg=Di,Wg=Oi;Cr({target:"Object",stat:!0,forced:n((function(){Hg(1)})),sham:!Wg},{getPrototypeOf:function(t){return Hg(zg(t))}});var qg=e(ie.Object.getPrototypeOf),Yg=gc.filter;Cr({target:"Array",proto:!0,forced:!ks("filter")},{filter:function(t){return Yg(this,t,arguments.length>1?arguments[1]:void 0)}});var Xg=fh("Array").filter,Vg=le,Ug=Xg,$g=Array.prototype,Gg=e((function(t){var e=t.filter;return t===$g||Vg($g,t)&&e===$g.filter?Ug:e})),Qg=Wt,Jg=c,Kg=Kr,Zg=Wn,ty=Jg(xn.f),ey=Jg([].push),ny=function(t){return function(e){for(var n,r=Zg(e),i=Kg(r),o=i.length,a=0,s=[];o>a;)n=i[a++],Qg&&!ty(r,n)||ey(s,t?[n,r[n]]:r[n]);return s}},ry={entries:ny(!0),values:ny(!1)},iy=ry.values;Cr({target:"Object",stat:!0},{values:function(t){return iy(t)}});var oy=e(ie.Object.values),ay="\t\n\v\f\r \u2028\u2029\ufeff",sy=S,cy=_t,uy=ay,ly=c("".replace),hy=RegExp("^["+uy+"]+"),fy=RegExp("(^|[^"+uy+"])["+uy+"]+$"),py=function(t){return function(e){var n=cy(sy(e));return 1&t&&(n=ly(n,hy,"")),2&t&&(n=ly(n,fy,"$1")),n}},vy={start:py(1),end:py(2),trim:py(3)},dy=v,gy=n,yy=c,my=_t,by=vy.trim,ky=ay,wy=dy.parseInt,Cy=dy.Symbol,Ey=Cy&&Cy.iterator,Oy=/^[+-]?0x/i,Fy=yy(Oy.exec),_y=8!==wy(ky+"08")||22!==wy(ky+"0x16")||Ey&&!gy((function(){wy(Object(Ey))}))?function(t,e){var n=by(my(t));return wy(n,e>>>0||(Fy(Oy,n)?16:10))}:wy;Cr({global:!0,forced:parseInt!=_y},{parseInt:_y});var Ty=e(ie.parseInt),Sy=Cr,Ay=Wr.indexOf,Py=Of,xy=An([].indexOf),Dy=!!xy&&1/xy([1],1,-0)<0;Sy({target:"Array",proto:!0,forced:Dy||!Py("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return Dy?xy(this,t,e)||0:Ay(this,t,e)}});var jy=fh("Array").indexOf,Iy=le,Ry=jy,My=Array.prototype,Ny=e((function(t){var e=t.indexOf;return t===My||Iy(My,t)&&e===My.indexOf?Ry:e})),By=ry.entries;Cr({target:"Object",stat:!0},{entries:function(t){return By(t)}});var Ly=e(ie.Object.entries);Cr({target:"Object",stat:!0,sham:!Wt},{create:Ei});var zy=ie.Object,Hy=e((function(t,e){return zy.create(t,e)}));function Wy(t,e){var n=void 0!==wh&&os(t)||t["@@iterator"];if(!n){if(Rh(t)||(n=function(t,e){var n;if(!t)return;if("string"==typeof t)return qy(t,e);var r=Th(n=Object.prototype.toString.call(t)).call(n,8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return za(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qy(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function qy(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Yy=/^\/?Date\((-?\d+)/i,Xy=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,Vy=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,Uy=/^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,$y=/^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 Gy(t){return t instanceof Number||"number"==typeof t}function Qy(t){if(t)for(;!0===t.hasChildNodes();){var e=t.firstChild;e&&(Qy(e),t.removeChild(e))}}function Jy(t){return t instanceof String||"string"==typeof t}function Ky(t){return"object"===Vl(t)&&null!==t}function Zy(t){if(t instanceof Date)return!0;if(Jy(t)){if(Yy.exec(t))return!0;if(!isNaN(Date.parse(t)))return!0}return!1}function tm(t,e,n,r){var i=!1;!0===r&&(i=null===e[n]&&void 0!==t[n]),i?delete t[n]:t[n]=e[n]}function em(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var r in t)if(void 0!==e[r])if(null===e[r]||"object"!==Vl(e[r]))tm(t,e,r,n);else{var i=t[r],o=e[r];Ky(i)&&Ky(o)&&em(i,o,n)}}var nm=Xd;function rm(t,e){if(!Rh(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(var o=0,a=r;o<a.length;o++)for(var s=a[o],c=0;c<t.length;c++){var u=t[c];s&&Object.prototype.hasOwnProperty.call(s,u)&&(e[u]=s[u])}return e}function im(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(Rh(n))throw new TypeError("Arrays are not supported by deepExtend");for(var i=0;i<t.length;i++){var 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?am(e[o],n[o],!1,r):tm(e,n,o,r);else{if(Rh(n[o]))throw new TypeError("Arrays are not supported by deepExtend");tm(e,n,o,r)}}return e}function om(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(Rh(n))throw new TypeError("Arrays are not supported by deepExtend");for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&!Lg(t).call(t,i))if(n[i]&&n[i].constructor===Object)void 0===e[i]&&(e[i]={}),e[i].constructor===Object?am(e[i],n[i]):tm(e,n,i,r);else if(Rh(n[i])){e[i]=[];for(var o=0;o<n[i].length;o++)e[i].push(n[i][o])}else tm(e,n,i,r);return e}function am(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)||!0===n)if("object"===Vl(e[i])&&null!==e[i]&&qg(e[i])===Object.prototype)void 0===t[i]?t[i]=am({},e[i],n):"object"===Vl(t[i])&&null!==t[i]&&qg(t[i])===Object.prototype?am(t[i],e[i],n):tm(t,e,i,r);else if(Rh(e[i])){var o;t[i]=Th(o=e[i]).call(o)}else tm(t,e,i,r);return t}function sm(t,e){if(t.length!==e.length)return!1;for(var n=0,r=t.length;n<r;n++)if(t[n]!=e[n])return!1;return!0}function cm(t){var e=Vl(t);return"object"===e?null===t?"null":t instanceof Boolean?"Boolean":t instanceof Number?"Number":t instanceof String?"String":Rh(t)?"Array":t instanceof Date?"Date":"Object":"number"===e?"Number":"boolean"===e?"Boolean":"string"===e?"String":void 0===e?"undefined":e}function um(t,e){var n;return _h(n=[]).call(n,kh(t),[e])}function lm(t){return Th(t).call(t)}function hm(t){return t.getBoundingClientRect().left}function fm(t){return t.getBoundingClientRect().right}function pm(t){return t.getBoundingClientRect().top}function vm(t,e){var n=t.className.split(" "),r=e.split(" ");n=_h(n).call(n,Gg(r).call(r,(function(t){return!Lg(n).call(n,t)}))),t.className=n.join(" ")}function dm(t,e){var n=t.className.split(" "),r=e.split(" ");n=Gg(n).call(n,(function(t){return!Lg(r).call(r,t)})),t.className=n.join(" ")}function gm(t,e){if(Rh(t))for(var n=t.length,r=0;r<n;r++)e(t[r],r,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e(t[i],i,t)}var ym=oy;function mm(t,e,n){return t[e]!==n&&(t[e]=n,!0)}function bm(t){var e=!1;return function(){e||(e=!0,requestAnimationFrame((function(){e=!1,t()})))}}function km(t,e,n,r){var i;t.addEventListener?(void 0===r&&(r=!1),"mousewheel"===e&&Lg(i=navigator.userAgent).call(i,"Firefox")&&(e="DOMMouseScroll"),t.addEventListener(e,n,r)):t.attachEvent("on"+e,n)}function wm(t,e,n,r){var i;t.removeEventListener?(void 0===r&&(r=!1),"mousewheel"===e&&Lg(i=navigator.userAgent).call(i,"Firefox")&&(e="DOMMouseScroll"),t.removeEventListener(e,n,r)):t.detachEvent("on"+e,n)}function Cm(t){t||(t=window.event),t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)}function Em(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.event,e=null;return t&&(t.target?e=t.target:t.srcElement&&(e=t.srcElement)),e instanceof Element&&(null==e.nodeType||3!=e.nodeType||(e=e.parentNode)instanceof Element)?e:null}function Om(t,e){for(var n=t;n;){if(n===e)return!0;if(!n.parentNode)return!1;n=n.parentNode}return!1}var Fm={asBoolean:function(t,e){return"function"==typeof t&&(t=t()),null!=t?0!=t:e||null},asNumber:function(t,e){return"function"==typeof t&&(t=t()),null!=t?Number(t)||e||null:e||null},asString:function(t,e){return"function"==typeof t&&(t=t()),null!=t?String(t):e||null},asSize:function(t,e){return"function"==typeof t&&(t=t()),Jy(t)?t:Gy(t)?t+"px":e||null},asElement:function(t,e){return"function"==typeof t&&(t=t()),t||e||null}};function _m(t){var e;switch(t.length){case 3:case 4:return(e=Vy.exec(t))?{r:Ty(e[1]+e[1],16),g:Ty(e[2]+e[2],16),b:Ty(e[3]+e[3],16)}:null;case 6:case 7:return(e=Xy.exec(t))?{r:Ty(e[1],16),g:Ty(e[2],16),b:Ty(e[3],16)}:null;default:return null}}function Tm(t,e){if(Lg(t).call(t,"rgba"))return t;if(Lg(t).call(t,"rgb")){var n=t.substr(Ny(t).call(t,"(")+1).replace(")","").split(",");return"rgba("+n[0]+","+n[1]+","+n[2]+","+e+")"}var r=_m(t);return null==r?t:"rgba("+r.r+","+r.g+","+r.b+","+e+")"}function Sm(t,e,n){var r;return"#"+Th(r=((1<<24)+(t<<16)+(e<<8)+n).toString(16)).call(r,1)}function Am(t,e){if(Jy(t)){var n=t;if(Bm(n)){var r,i=Hh(r=n.substr(4).substr(0,n.length-5).split(",")).call(r,(function(t){return Ty(t)}));n=Sm(i[0],i[1],i[2])}if(!0===Nm(n)){var o=Mm(n),a={h:o.h,s:.8*o.s,v:Math.min(1,1.02*o.v)},s={h:o.h,s:Math.min(1,1.25*o.s),v:.8*o.v},c=Rm(s.h,s.s,s.v),u=Rm(a.h,a.s,a.v);return{background:n,border:c,highlight:{background:u,border:c},hover:{background:u,border:c}}}return{background:n,border:n,highlight:{background:n,border:n},hover:{background:n,border:n}}}return e?{background:t.background||e.background,border:t.border||e.border,highlight:Jy(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:Jy(t.hover)?{border:t.hover,background:t.hover}:{border:t.hover&&t.hover.border||e.hover.border,background:t.hover&&t.hover.background||e.hover.background}}:{background:t.background||void 0,border:t.border||void 0,highlight:Jy(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:Jy(t.hover)?{border:t.hover,background:t.hover}:{border:t.hover&&t.hover.border||void 0,background:t.hover&&t.hover.background||void 0}}}function Pm(t,e,n){t/=255,e/=255,n/=255;var r=Math.min(t,Math.min(e,n)),i=Math.max(t,Math.max(e,n));return r===i?{h:0,s:0,v:r}:{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 xm(t){var e=document.createElement("div"),n={};e.style.cssText=t;for(var r=0;r<e.style.length;++r)n[e.style[r]]=e.style.getPropertyValue(e.style[r]);return n}function Dm(t,e){for(var n=xm(e),r=0,i=Ly(n);r<i.length;r++){var o=Zh(i[r],2),a=o[0],s=o[1];t.style.setProperty(a,s)}}function jm(t,e){for(var n=xm(e),r=0,i=Yh(n);r<i.length;r++){var o=i[r];t.style.removeProperty(o)}}function Im(t,e,n){var r,i,o,a=Math.floor(6*t),s=6*t-a,c=n*(1-e),u=n*(1-s*e),l=n*(1-(1-s)*e);switch(a%6){case 0:r=n,i=l,o=c;break;case 1:r=u,i=n,o=c;break;case 2:r=c,i=n,o=l;break;case 3:r=c,i=u,o=n;break;case 4:r=l,i=c,o=n;break;case 5:r=n,i=c,o=u}return{r:Math.floor(255*r),g:Math.floor(255*i),b:Math.floor(255*o)}}function Rm(t,e,n){var r=Im(t,e,n);return Sm(r.r,r.g,r.b)}function Mm(t){var e=_m(t);if(!e)throw new TypeError("'".concat(t,"' is not a valid color."));return Pm(e.r,e.g,e.b)}function Nm(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)}function Bm(t){return Uy.test(t)}function Lm(t){return $y.test(t)}function zm(t,e){if(null!==e&&"object"===Vl(e)){for(var n=Hy(e),r=0;r<t.length;r++)Object.prototype.hasOwnProperty.call(e,t[r])&&"object"==Vl(e[t[r]])&&(n[t[r]]=Hm(e[t[r]]));return n}return null}function Hm(t){if(null===t||"object"!==Vl(t))return null;if(t instanceof Element)return t;var e=Hy(t);for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&"object"==Vl(t[n])&&(e[n]=Hm(t[n]));return e}function Wm(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=void 0;for(i=n;i>0&&e(r,t[i-1])<0;i--)t[i]=t[i-1];t[i]=r}return t}function qm(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=function(t){return null!=t},o=function(t){return null!==t&&"object"===Vl(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");var a=e[n],s=o(r)&&!function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}(r)?r[n]:void 0,c=s?s.enabled:void 0;if(void 0!==a){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]=Hy(s)}if(o(a)){var u=!0;void 0!==a.enabled?u=a.enabled:void 0!==c&&(u=s.enabled),function(t,e,n){o(t[n])||(t[n]={});var r=e[n],i=t[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])}(t,e,n),t[n].enabled=u}}}function Ym(t,e,n,r){for(var i=0,o=0,a=t.length-1;o<=a&&i<1e4;){var s=Math.floor((o+a)/2),c=t[s],u=e(void 0===r?c[n]:c[n][r]);if(0==u)return s;-1==u?o=s+1:a=s-1,i++}return-1}function Xm(t,e,n,r,i){var o,a,s,c,u=0,l=0,h=t.length-1;for(i=null!=i?i:function(t,e){return t==e?0:t<e?-1:1};l<=h&&u<1e4;){if(c=Math.floor(.5*(h+l)),o=t[Math.max(0,c-1)][n],a=t[c][n],s=t[Math.min(t.length-1,c+1)][n],0==i(a,e))return c;if(i(o,e)<0&&i(a,e)>0)return"before"==r?Math.max(0,c-1):c;if(i(a,e)<0&&i(s,e)>0)return"before"==r?c:Math.min(t.length-1,c+1);i(a,e)<0?l=c+1:h=c-1,u++}return-1}var Vm={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return t*(2-t)},easeInOutQuad:function(t){return t<.5?2*t*t:(4-2*t)*t-1},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return--t*t*t+1},easeInOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1- --t*t*t*t},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1+--t*t*t*t*t},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}};function Um(){var t=document.createElement("p");t.style.width="100%",t.style.height="200px";var e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.style.visibility="hidden",e.style.width="200px",e.style.height="150px",e.style.overflow="hidden",e.appendChild(t),document.body.appendChild(e);var n=t.offsetWidth;e.style.overflow="scroll";var r=t.offsetWidth;return n==r&&(r=e.clientWidth),document.body.removeChild(e),n-r}function $m(t,e){var n;Rh(e)||(e=[e]);var r,i=Wy(t);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(o){n=o[e[0]];for(var a=1;a<e.length;a++)n&&(n=n[e[a]]);if(void 0!==n)break}}}catch(t){i.e(t)}finally{i.f()}return n}var Gm={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"},Qm=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;gd(this,t),this.pixelRatio=e,this.generated=!1,this.centerCoordinates={x:144.5,y:144.5},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return Td(t,[{key:"insertTo",value:function(t){void 0!==this.hammer&&(this.hammer.destroy(),this.hammer=void 0),this.container=t,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker update callback is not a function.");this.updateCallback=t}},{key:"setCloseCallback",value:function(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker closing callback is not a function.");this.closeCallback=t}},{key:"_isColorString",value:function(t){if("string"==typeof t)return Gm[t]}},{key:"setColor",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("none"!==t){var n,r=this._isColorString(t);if(void 0!==r&&(t=r),!0===Jy(t)){if(!0===Bm(t)){var i=t.substr(4).substr(0,t.length-5).split(",");n={r:i[0],g:i[1],b:i[2],a:1}}else if(!0===Lm(t)){var o=t.substr(5).substr(0,t.length-6).split(",");n={r:o[0],g:o[1],b:o[2],a:o[3]}}else if(!0===Nm(t)){var a=_m(t);n={r:a.r,g:a.g,b:a.b,a:1}}}else if(t instanceof Object&&void 0!==t.r&&void 0!==t.g&&void 0!==t.b){var s=void 0!==t.a?t.a:"1.0";n={r:t.r,g:t.g,b:t.b,a:s}}if(void 0===n)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: "+Pd(t));this._setColor(n,e)}}},{key:"show",value:function(){void 0!==this.closeCallback&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var t=this;!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&(this.previousColor=Xd({},this.color)),!0===this.applied&&this.updateCallback(this.initialColor),this.frame.style.display="none",lg((function(){void 0!==t.closeCallback&&(t.closeCallback(),t.closeCallback=void 0)}),0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){void 0!==this.previousColor?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(t){!0===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(this.initialColor=Xd({},t)),this.color=t;var e=Pm(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)}},{key:"_setOpacity",value:function(t){this.color.a=t/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(t){var e=Pm(this.color.r,this.color.g,this.color.b);e.v=t/100;var n=Im(e.h,e.s,e.v);n.a=this.color.a,this.color=n,this._updatePicker()}},{key:"_updatePicker",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.color,e=Pm(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);var 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),mg(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+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){var t,e,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){var i=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(i.webkitBackingStorePixelRatio||i.mozBackingStorePixelRatio||i.msBackingStorePixelRatio||i.oBackingStorePixelRatio||i.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var o=document.createElement("DIV");o.style.color="red",o.style.fontWeight="bold",o.style.padding="10px",o.innerText="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(o)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch(t){}this.opacityRange.value="100",this.opacityRange.className="vis-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch(t){}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var a=this;this.opacityRange.onchange=function(){a._setOpacity(this.value)},this.opacityRange.oninput=function(){a._setOpacity(this.value)},this.brightnessRange.onchange=function(){a._setBrightness(this.value)},this.brightnessRange.oninput=function(){a._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=Cf(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=Cf(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=Cf(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=Cf(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)}},{key:"_bindHammer",value:function(){var t=this;this.drag={},this.pinch={},this.hammer=new fd(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("hammer.input",(function(e){e.isFirst&&t._moveSelector(e)})),this.hammer.on("tap",(function(e){t._moveSelector(e)})),this.hammer.on("panstart",(function(e){t._moveSelector(e)})),this.hammer.on("panmove",(function(e){t._moveSelector(e)})),this.hammer.on("panend",(function(e){t._moveSelector(e)}))}},{key:"_generateHueCircle",value:function(){if(!1===this.generated){var t=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)),t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var e,n,r,i,o=this.colorPickerCanvas.clientWidth,a=this.colorPickerCanvas.clientHeight;t.clearRect(0,0,o,a),this.centerCoordinates={x:.5*o,y:.5*a},this.r=.49*o;var s,c=2*Math.PI/360,u=1/this.r;for(r=0;r<360;r++)for(i=0;i<this.r;i++)e=this.centerCoordinates.x+i*Math.sin(c*r),n=this.centerCoordinates.y+i*Math.cos(c*r),s=Im(.002777777777777778*r,i*u,1),t.fillStyle="rgb("+s.r+","+s.g+","+s.b+")",t.fillRect(e-.5,n-.5,2,2);t.strokeStyle="rgba(0,0,0,1)",t.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),t.stroke(),this.hueCircle=t.getImageData(0,0,o,a)}this.generated=!0}},{key:"_moveSelector",value:function(t){var 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,c=Math.atan2(a,s),u=.98*Math.min(Math.sqrt(a*a+s*s),o),l=Math.cos(c)*u+i,h=Math.sin(c)*u+o;this.colorPickerSelector.style.top=l-.5*this.colorPickerSelector.clientHeight+"px",this.colorPickerSelector.style.left=h-.5*this.colorPickerSelector.clientWidth+"px";var f=c/(2*Math.PI);f=f<0?f+1:f;var p=u/this.r,v=Pm(this.color.r,this.color.g,this.color.b);v.h=f,v.s=p;var d=Im(v.h,v.s,v.v);d.a=this.color.a,this.color=d,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}}]),t}();function Jm(){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]);var r=document.createElement(e[0]);return r.appendChild(Jm.apply(void 0,kh(Th(e).call(e,1)))),r}var Km,Zm=function(){function t(e,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return!1};gd(this,t),this.parent=e,this.changedOptions=[],this.container=n,this.allowCreation=!1,this.hideOption=o,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},Xd(this.options,this.defaultOptions),this.configureOptions=r,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new Qm(i),this.wrapper=void 0}return Td(t,[{key:"setOptions",value:function(t){if(void 0!==t){this.popupHistory={},this._removePopup();var e=!0;if("string"==typeof t)this.options.filter=t;else if(Rh(t))this.options.filter=t.join();else if("object"===Vl(t)){if(null==t)throw new TypeError("options cannot be null");void 0!==t.container&&(this.options.container=t.container),void 0!==Gg(t)&&(this.options.filter=Gg(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===Gg(this.options)&&(e=!1),this.options.enabled=e}this._clean()}},{key:"setModuleOptions",value:function(t){this.moduleOptions=t,!0===this.options.enabled&&(this._clean(),void 0!==this.options.container&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var t=Gg(this.options),e=0,n=!1;for(var r in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,r)&&(this.allowCreation=!1,n=!1,"function"==typeof t?n=(n=t(r,[]))||this._handleObject(this.configureOptions[r],[r],!0):!0!==t&&-1===Ny(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()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var t=0;t<this.domElements.length;t++)this.wrapper.appendChild(this.domElements[t]);this._showPopupIfNeeded()}},{key:"_clean",value:function(){for(var t=0;t<this.domElements.length;t++)this.wrapper.removeChild(this.domElements[t]);void 0!==this.wrapper&&(this.container.removeChild(this.wrapper),this.wrapper=void 0),this.domElements=[],this._removePopup()}},{key:"_getValue",value:function(t){for(var e=this.moduleOptions,n=0;n<t.length;n++){if(void 0===e[t[n]]){e=void 0;break}e=e[t[n]]}return e}},{key:"_makeItem",value:function(t){if(!0===this.allowCreation){var e=document.createElement("div");e.className="vis-configuration vis-config-item vis-config-s"+t.length;for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return If(r).call(r,(function(t){e.appendChild(t)})),this.domElements.push(e),this.domElements.length}return 0}},{key:"_makeHeader",value:function(t){var e=document.createElement("div");e.className="vis-configuration vis-config-header",e.innerText=t,this._makeItem([],e)}},{key:"_makeLabel",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],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(Jm("i","b",t))}else r.innerText=t+":";return r}},{key:"_makeDropdown",value:function(t,e,n){var r=document.createElement("select");r.className="vis-configuration vis-config-select";var i=0;void 0!==e&&-1!==Ny(t).call(t,e)&&(i=Ny(t).call(t,e));for(var o=0;o<t.length;o++){var a=document.createElement("option");a.value=t[o],o===i&&(a.selected="selected"),a.innerText=t[o],r.appendChild(a)}var s=this;r.onchange=function(){s._update(this.value,n)};var c=this._makeLabel(n[n.length-1],n);this._makeItem(n,c,r)}},{key:"_makeRange",value:function(t,e,n){var 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;var c="",u=0;if(void 0!==e){var l=1.2;e<0&&e*l<i?(s.min=Math.ceil(e*l),u=s.min,c="range increased"):e/l<i&&(s.min=Math.ceil(e/l),u=s.min,c="range increased"),e*l>o&&1!==o&&(s.max=Math.ceil(e*l),u=s.max,c="range increased"),s.value=e}else s.value=r;var h=document.createElement("input");h.className="vis-configuration vis-config-rangeinput",h.value=s.value;var f=this;s.onchange=function(){h.value=this.value,f._update(Number(this.value),n)},s.oninput=function(){h.value=this.value};var p=this._makeLabel(n[n.length-1],n),v=this._makeItem(n,p,s,h);""!==c&&this.popupHistory[v]!==u&&(this.popupHistory[v]=u,this._setupPopup(c,v))}},{key:"_makeButton",value:function(){var t=this;if(!0===this.options.showButton){var e=document.createElement("div");e.className="vis-configuration vis-config-button",e.innerText="generate options",e.onclick=function(){t._printOptions()},e.onmouseover=function(){e.className="vis-configuration vis-config-button hover"},e.onmouseout=function(){e.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(e)}}},{key:"_setupPopup",value:function(t,e){var n=this;if(!0===this.initialized&&!0===this.allowCreation&&this.popupCounter<this.popupLimit){var r=document.createElement("div");r.id="vis-configuration-popup",r.className="vis-configuration-popup",r.innerText=t,r.onclick=function(){n._removePopup()},this.popupCounter+=1,this.popupDiv={html:r,index:e}}}},{key:"_removePopup",value:function(){void 0!==this.popupDiv.html&&(this.popupDiv.html.parentNode.removeChild(this.popupDiv.html),clearTimeout(this.popupDiv.hideTimeout),clearTimeout(this.popupDiv.deleteTimeout),this.popupDiv={})}},{key:"_showPopupIfNeeded",value:function(){var t=this;if(void 0!==this.popupDiv.html){var e=this.domElements[this.popupDiv.index].getBoundingClientRect();this.popupDiv.html.style.left=e.left+"px",this.popupDiv.html.style.top=e.top-30+"px",document.body.appendChild(this.popupDiv.html),this.popupDiv.hideTimeout=lg((function(){t.popupDiv.html.style.opacity=0}),1500),this.popupDiv.deleteTimeout=lg((function(){t._removePopup()}),1800)}}},{key:"_makeCheckbox",value:function(t,e,n){var 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"===Vl(t)?e!==t.enabled&&this.changedOptions.push({path:n,value:e}):this.changedOptions.push({path:n,value:e})));var i=this;r.onchange=function(){i._update(this.checked,n)};var o=this._makeLabel(n[n.length-1],n);this._makeItem(n,o,r)}},{key:"_makeTextInput",value:function(t,e,n){var 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});var i=this;r.onchange=function(){i._update(this.value,n)};var o=this._makeLabel(n[n.length-1],n);this._makeItem(n,o,r)}},{key:"_makeColorField",value:function(t,e,n){var r=this,i=t[1],o=document.createElement("div");"none"!==(e=void 0===e?i:e)?(o.className="vis-configuration vis-config-colorBlock",o.style.backgroundColor=e):o.className="vis-configuration vis-config-colorBlock none",e=void 0===e?i:e,o.onclick=function(){r._showColorPicker(e,o,n)};var a=this._makeLabel(n[n.length-1],n);this._makeItem(n,a,o)}},{key:"_showColorPicker",value:function(t,e,n){var r=this;e.onclick=function(){},this.colorPicker.insertTo(e),this.colorPicker.show(),this.colorPicker.setColor(t),this.colorPicker.setUpdateCallback((function(t){var i="rgba("+t.r+","+t.g+","+t.b+","+t.a+")";e.style.backgroundColor=i,r._update(i,n)})),this.colorPicker.setCloseCallback((function(){e.onclick=function(){r._showColorPicker(t,e,n)}}))}},{key:"_handleObject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!1,i=Gg(this.options),o=!1;for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){r=!0;var s=t[a],c=um(e,a);if("function"==typeof i&&!1===(r=i(a,e))&&!Rh(s)&&"string"!=typeof s&&"boolean"!=typeof s&&s instanceof Object&&(this.allowCreation=!1,r=this._handleObject(s,c,!0),this.allowCreation=!1===n),!1!==r){o=!0;var u=this._getValue(c);if(Rh(s))this._handleArray(s,u,c);else if("string"==typeof s)this._makeTextInput(s,u,c);else if("boolean"==typeof s)this._makeCheckbox(s,u,c);else if(s instanceof Object){if(!this.hideOption(e,a,this.moduleOptions))if(void 0!==s.enabled){var l=um(c,"enabled"),h=this._getValue(l);if(!0===h){var f=this._makeLabel(a,c,!0);this._makeItem(c,f),o=this._handleObject(s,c)||o}else this._makeCheckbox(s,h,c)}else{var p=this._makeLabel(a,c,!0);this._makeItem(c,p),o=this._handleObject(s,c)||o}}else console.error("dont know how to handle",s,a,c)}}return o}},{key:"_handleArray",value:function(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)}))}},{key:"_update",value:function(t,e){var 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)}},{key:"_constructOptions",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n;t="false"!==(t="true"===t||t)&&t;for(var i=0;i<e.length;i++)"global"!==e[i]&&(void 0===r[e[i]]&&(r[e[i]]={}),i!==e.length-1?r=r[e[i]]:r[e[i]]=t);return n}},{key:"_printOptions",value:function(){for(var t=this.getOptions();this.optionsContainer.firstChild;)this.optionsContainer.removeChild(this.optionsContainer.firstChild);this.optionsContainer.appendChild(Jm("pre","const options = "+Pd(t,null,2)))}},{key:"getOptions",value:function(){for(var t={},e=0;e<this.changedOptions.length;e++)this._constructOptions(this.changedOptions[e].value,this.changedOptions[e].path,t);return t}}]),t}(),tb=function(){function t(e,n){gd(this,t),this.container=e,this.overflowMethod=n||"cap",this.x=0,this.y=0,this.padding=5,this.hidden=!1,this.frame=document.createElement("div"),this.frame.className="vis-tooltip",this.container.appendChild(this.frame)}return Td(t,[{key:"setPosition",value:function(t,e){this.x=Ty(t),this.y=Ty(e)}},{key:"setText",value:function(t){if(t instanceof Element){for(;this.frame.firstChild;)this.frame.removeChild(this.frame.firstChild);this.frame.appendChild(t)}else this.frame.innerText=t}},{key:"show",value:function(t){if(void 0===t&&(t=!0),!0===t){var e=this.frame.clientHeight,n=this.frame.clientWidth,r=this.frame.parentNode.clientHeight,i=this.frame.parentNode.clientWidth,o=0,a=0;if("flip"==this.overflowMethod){var s=!1,c=!0;this.y-e<this.padding&&(c=!1),this.x+n>i-this.padding&&(s=!0),o=s?this.x-n:this.x,a=c?this.y-e:this.y}else(a=this.y-e)+e+this.padding>r&&(a=r-e-this.padding),a<this.padding&&(a=this.padding),(o=this.x)+n+this.padding>i&&(o=i-n-this.padding),o<this.padding&&(o=this.padding);this.frame.style.left=o+"px",this.frame.style.top=a+"px",this.frame.style.visibility="visible",this.hidden=!1}else this.hide()}},{key:"hide",value:function(){this.hidden=!0,this.frame.style.left="0",this.frame.style.top="0",this.frame.style.visibility="hidden"}},{key:"destroy",value:function(){this.frame.parentNode.removeChild(this.frame)}}]),t}(),eb=!1,nb="background: #FFeeee; color: #dd0000",rb=function(){function t(){gd(this,t)}return Td(t,null,[{key:"validate",value:function(e,n,r){eb=!1,Km=n;var i=n;return void 0!==r&&(i=n[r]),t.parse(e,i,[]),eb}},{key:"parse",value:function(e,n,r){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.check(i,e,n,r)}},{key:"check",value:function(e,n,r,i){if(void 0!==r[e]||void 0!==r.__any__){var o=e,a=!0;void 0===r[e]&&void 0!==r.__any__&&(o="__any__",a="object"===t.getType(n[e]));var s=r[o];a&&void 0!==s.__type__&&(s=s.__type__),t.checkFields(e,n,r,o,s,i)}else t.getSuggestion(e,r,i)}},{key:"checkFields",value:function(e,n,r,i,o,a){var s=function(n){console.error("%c"+n+t.printLocation(a,e),nb)},c=t.getType(n[e]),u=o[c];void 0!==u?"array"===t.getType(u)&&-1===Ny(u).call(u,n[e])?(s('Invalid option detected in "'+e+'". Allowed values are:'+t.print(u)+' not "'+n[e]+'". '),eb=!0):"object"===c&&"__any__"!==i&&(a=um(a,e),t.parse(n[e],r[i],a)):void 0===o.any&&(s('Invalid type received for "'+e+'". Expected: '+t.print(Yh(o))+". Received ["+c+'] "'+n[e]+'"'),eb=!0)}},{key:"getType",value:function(t){var e=Vl(t);return"object"===e?null===t?"null":t instanceof Boolean?"boolean":t instanceof Number?"number":t instanceof String?"string":Rh(t)?"array":t instanceof Date?"date":void 0!==t.nodeType?"dom":!0===t._isAMomentObject?"moment":"object":"number"===e?"number":"boolean"===e?"boolean":"string"===e?"string":void 0===e?"undefined":e}},{key:"getSuggestion",value:function(e,n,r){var i,o=t.findInOptions(e,n,r,!1),a=t.findInOptions(e,Km,[],!0);i=void 0!==o.indexMatch?" in "+t.printLocation(o.path,e,"")+'Perhaps it was incomplete? Did you mean: "'+o.indexMatch+'"?\n\n':a.distance<=4&&o.distance>a.distance?" in "+t.printLocation(o.path,e,"")+"Perhaps it was misplaced? Matching option found at: "+t.printLocation(a.path,a.closestMatch,""):o.distance<=8?'. Did you mean "'+o.closestMatch+'"?'+t.printLocation(o.path,e):". Did you mean one of these: "+t.print(Yh(n))+t.printLocation(r,e),console.error('%cUnknown option detected: "'+e+'"'+i,nb),eb=!0}},{key:"findInOptions",value:function(e,n,r){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=1e9,a="",s=[],c=e.toLowerCase(),u=void 0;for(var l in n){var h=void 0;if(void 0!==n[l].__type__&&!0===i){var f=t.findInOptions(e,n[l],um(r,l));o>f.distance&&(a=f.closestMatch,s=f.path,o=f.distance,u=f.indexMatch)}else{var p;-1!==Ny(p=l.toLowerCase()).call(p,c)&&(u=l),o>(h=t.levenshteinDistance(e,l))&&(a=l,s=lm(r),o=h)}}return{closestMatch:a,path:s,distance:o,indexMatch:u}}},{key:"printLocation",value:function(t,e){for(var n="\n\n"+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Problem value found at: \n")+"options = {\n",r=0;r<t.length;r++){for(var i=0;i<r+1;i++)n+=" ";n+=t[r]+": {\n"}for(var o=0;o<t.length+1;o++)n+=" ";n+=e+"\n";for(var a=0;a<t.length+1;a++){for(var s=0;s<t.length-a;s++)n+=" ";n+="}\n"}return n+"\n\n"}},{key:"print",value:function(t){return Pd(t).replace(/(")|(\[)|(\])|(,"__type__")/g,"").replace(/(,)/g,", ")}},{key:"levenshteinDistance",value:function(t,e){if(0===t.length)return e.length;if(0===e.length)return t.length;var n,r,i=[];for(n=0;n<=e.length;n++)i[n]=[n];for(r=0;r<=t.length;r++)i[0][r]=r;for(n=1;n<=e.length;n++)for(r=1;r<=t.length;r++)e.charAt(n-1)==t.charAt(r-1)?i[n][r]=i[n-1][r-1]:i[n][r]=Math.min(i[n-1][r-1]+1,Math.min(i[n][r-1]+1,i[n-1][r]+1));return i[e.length][t.length]}}]),t}(),ib=dd,ob=Qm,ab=Zm,sb=fd,cb=tb,ub=nb,lb=rb;export{ib as Activator,of as Alea,ob as ColorPicker,ab as Configurator,Uh as DELETE,Rm as HSVToHex,Im as HSVToRGB,sb as Hammer,cb as Popup,Pm as RGBToHSV,Sm as RGBToHex,ub as VALIDATOR_PRINT_STYLE,lb as Validator,vm as addClassName,Dm as addCssText,km as addEventListener,Ym as binarySearchCustom,Xm as binarySearchValue,Hm as bridgeObject,um as copyAndExtendArray,lm as copyArray,am as deepExtend,Gh as deepObjectAssign,Vm as easingFunctions,sm as equalArray,nm as extend,em as fillIfDefined,gm as forEach,hm as getAbsoluteLeft,fm as getAbsoluteRight,pm as getAbsoluteTop,Um as getScrollBarWidth,Em as getTarget,cm as getType,Om as hasParent,Mm as hexToHSV,_m as hexToRGB,Wm as insertSort,Zy as isDate,Gy as isNumber,Ky as isObject,Jy as isString,Nm as isValidHex,Bm as isValidRGB,Lm as isValidRGBA,qm as mergeOptions,Fm as option,Tm as overrideOpacity,Am as parseColor,Cm as preventDefault,$h as pureDeepObjectAssign,Qy as recursiveDOMDelete,dm as removeClassName,jm as removeCssText,wm as removeEventListener,zm as selectiveBridgeObject,im as selectiveDeepExtend,rm as selectiveExtend,om as selectiveNotDeepExtend,bm as throttle,ym as toArray,$m as topMost,mm as updateProperty};
|
|
33
|
+
function yp(){return yp=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},yp.apply(this,arguments)}function mp(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function bp(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var kp,wp="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,Cp=["","webkit","Moz","MS","ms","o"],Ep="undefined"==typeof document?{style:{}}:document.createElement("div"),Op=Math.round,Fp=Math.abs,Tp=Date.now;function _p(t,e){for(var n,r,i=e[0].toUpperCase()+e.slice(1),o=0;o<Cp.length;){if((r=(n=Cp[o])?n+i:e)in t)return r;o++}}kp="undefined"==typeof window?{}:window;var Sp=_p(Ep.style,"touchAction"),Ap=void 0!==Sp;var Pp="compute",xp="auto",Dp="manipulation",jp="none",Ip="pan-x",Rp="pan-y",Mp=function(){if(!Ap)return!1;var t={},e=kp.CSS&&kp.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){return t[n]=!e||kp.CSS.supports("touch-action",n)})),t}(),Np="ontouchstart"in kp,Bp=void 0!==_p(kp,"PointerEvent"),Lp=Np&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),zp="touch",Hp="mouse",Wp=25,qp=1,Yp=4,Xp=8,Vp=1,Up=2,$p=4,Gp=8,Qp=16,Jp=Up|$p,Kp=Gp|Qp,Zp=Jp|Kp,tv=["x","y"],ev=["clientX","clientY"];function nv(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 rv(t,e){return"function"==typeof t?t.apply(e&&e[0]||void 0,e):t}function iv(t,e){return t.indexOf(e)>-1}var ov=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){t===Pp&&(t=this.compute()),Ap&&this.manager.element.style&&Mp[t]&&(this.manager.element.style[Sp]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return nv(this.manager.recognizers,(function(e){rv(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(iv(t,jp))return jp;var e=iv(t,Ip),n=iv(t,Rp);return e&&n?jp:e||n?e?Ip:Rp:iv(t,Dp)?Dp:xp}(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=iv(r,jp)&&!Mp[jp],o=iv(r,Rp)&&!Mp[Rp],a=iv(r,Ip)&&!Mp[Ip];if(i){var s=1===t.pointers.length,c=t.distance<2,u=t.deltaTime<250;if(s&&c&&u)return}if(!a||!o)return i||o&&n&Jp||a&&n&Kp?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function av(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function sv(t){var e=t.length;if(1===e)return{x:Op(t[0].clientX),y:Op(t[0].clientY)};for(var n=0,r=0,i=0;i<e;)n+=t[i].clientX,r+=t[i].clientY,i++;return{x:Op(n/e),y:Op(r/e)}}function cv(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:Op(t.pointers[n].clientX),clientY:Op(t.pointers[n].clientY)},n++;return{timeStamp:Tp(),pointers:e,center:sv(e),deltaX:t.deltaX,deltaY:t.deltaY}}function uv(t,e,n){n||(n=tv);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return Math.sqrt(r*r+i*i)}function lv(t,e,n){n||(n=tv);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return 180*Math.atan2(i,r)/Math.PI}function hv(t,e){return t===e?Vp:Fp(t)>=Fp(e)?t<0?Up:$p:e<0?Gp:Qp}function fv(t,e,n){return{x:e/t||0,y:n/t||0}}function pv(t,e){var n=t.session,r=e.pointers,i=r.length;n.firstInput||(n.firstInput=cv(e)),i>1&&!n.firstMultiple?n.firstMultiple=cv(e):1===i&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,s=a?a.center:o.center,c=e.center=sv(r);e.timeStamp=Tp(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=lv(s,c),e.distance=uv(s,c),function(t,e){var n=e.center,r=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};e.eventType!==qp&&o.eventType!==Yp||(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=hv(e.deltaX,e.deltaY);var u,l,h=fv(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=h.x,e.overallVelocityY=h.y,e.overallVelocity=Fp(h.x)>Fp(h.y)?h.x:h.y,e.scale=a?(u=a.pointers,uv((l=r)[0],l[1],ev)/uv(u[0],u[1],ev)):1,e.rotation=a?function(t,e){return lv(e[1],e[0],ev)+lv(t[1],t[0],ev)}(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(e.eventType!==Xp&&(s>Wp||void 0===a.velocity)){var c=e.deltaX-a.deltaX,u=e.deltaY-a.deltaY,l=fv(s,c,u);r=l.x,i=l.y,n=Fp(l.x)>Fp(l.y)?l.x:l.y,o=hv(c,u),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 f,p=t.element,v=e.srcEvent;av(f=v.composedPath?v.composedPath()[0]:v.path?v.path[0]:v.target,p)&&(p=f),e.target=p}function vv(t,e,n){var r=n.pointers.length,i=n.changedPointers.length,o=e&qp&&r-i==0,a=e&(Yp|Xp)&&r-i==0;n.isFirst=!!o,n.isFinal=!!a,o&&(t.session={}),n.eventType=e,pv(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function dv(t){return t.trim().split(/\s+/g)}function gv(t,e,n){nv(dv(e),(function(e){t.addEventListener(e,n,!1)}))}function yv(t,e,n){nv(dv(e),(function(e){t.removeEventListener(e,n,!1)}))}function mv(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var bv=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){rv(t.options.enable,[t])&&n.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&gv(this.element,this.evEl,this.domHandler),this.evTarget&&gv(this.target,this.evTarget,this.domHandler),this.evWin&&gv(mv(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&yv(this.element,this.evEl,this.domHandler),this.evTarget&&yv(this.target,this.evTarget,this.domHandler),this.evWin&&yv(mv(this.element),this.evWin,this.domHandler)},t}();function kv(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 wv={pointerdown:qp,pointermove:2,pointerup:Yp,pointercancel:Xp,pointerout:Xp},Cv={2:zp,3:"pen",4:Hp,5:"kinect"},Ev="pointerdown",Ov="pointermove pointerup pointercancel";kp.MSPointerEvent&&!kp.PointerEvent&&(Ev="MSPointerDown",Ov="MSPointerMove MSPointerUp MSPointerCancel");var Fv=function(t){function e(){var n,r=e.prototype;return r.evEl=Ev,r.evWin=Ov,(n=t.apply(this,arguments)||this).store=n.manager.session.pointerEvents=[],n}return mp(e,t),e.prototype.handler=function(t){var e=this.store,n=!1,r=t.type.toLowerCase().replace("ms",""),i=wv[r],o=Cv[t.pointerType]||t.pointerType,a=o===zp,s=kv(e,t.pointerId,"pointerId");i&qp&&(0===t.button||a)?s<0&&(e.push(t),s=e.length-1):i&(Yp|Xp)&&(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}(bv);function Tv(t){return Array.prototype.slice.call(t,0)}function _v(t,e,n){for(var r=[],i=[],o=0;o<t.length;){var a=e?t[o][e]:t[o];kv(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 Sv={touchstart:qp,touchmove:2,touchend:Yp,touchcancel:Xp},Av=function(t){function e(){var n;return e.prototype.evTarget="touchstart touchmove touchend touchcancel",(n=t.apply(this,arguments)||this).targetIds={},n}return mp(e,t),e.prototype.handler=function(t){var e=Sv[t.type],n=Pv.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:zp,srcEvent:t})},e}(bv);function Pv(t,e){var n,r,i=Tv(t.touches),o=this.targetIds;if(e&(2|qp)&&1===i.length)return o[i[0].identifier]=!0,[i,i];var a=Tv(t.changedTouches),s=[],c=this.target;if(r=i.filter((function(t){return av(t.target,c)})),e===qp)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]),e&(Yp|Xp)&&delete o[a[n].identifier],n++;return s.length?[_v(r.concat(s),"identifier",!0),s]:void 0}var xv={mousedown:qp,mousemove:2,mouseup:Yp},Dv=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 mp(e,t),e.prototype.handler=function(t){var e=xv[t.type];e&qp&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=Yp),this.pressed&&(e&Yp&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:Hp,srcEvent:t}))},e}(bv),jv=2500;function Iv(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)}),jv)}}function Rv(t,e){t&qp?(this.primaryTouch=e.changedPointers[0].identifier,Iv.call(this,e)):t&(Yp|Xp)&&Iv.call(this,e)}function Mv(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 Nv=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===zp,o=n.pointerType===Hp;if(!(o&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)Rv.call(bp(bp(r)),e,n);else if(o&&Mv.call(bp(bp(r)),n))return;r.callback(t,e,n)}},r.touch=new Av(r.manager,r.handler),r.mouse=new Dv(r.manager,r.handler),r.primaryTouch=null,r.lastTouches=[],r}return mp(e,t),e.prototype.destroy=function(){this.touch.destroy(),this.mouse.destroy()},e}(bv)}();function Bv(t,e,n){return!!Array.isArray(t)&&(nv(t,n[e],n),!0)}var Lv=32,zv=1;function Hv(t,e){var n=e.manager;return n?n.get(t):t}function Wv(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}var qv=function(){function t(t){void 0===t&&(t={}),this.options=yp({enable:!0},t),this.id=zv++,this.manager=null,this.state=1,this.simultaneous={},this.requireFail=[]}var e=t.prototype;return e.set=function(t){return wp(this.options,t),this.manager&&this.manager.touchAction.update(),this},e.recognizeWith=function(t){if(Bv(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=Hv(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},e.dropRecognizeWith=function(t){return Bv(t,"dropRecognizeWith",this)||(t=Hv(t,this),delete this.simultaneous[t.id]),this},e.requireFailure=function(t){if(Bv(t,"requireFailure",this))return this;var e=this.requireFail;return-1===kv(e,t=Hv(t,this))&&(e.push(t),t.requireFailure(this)),this},e.dropRequireFailure=function(t){if(Bv(t,"dropRequireFailure",this))return this;t=Hv(t,this);var e=kv(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+Wv(n)),r(e.options.event),t.additionalEvent&&r(t.additionalEvent),n>=8&&r(e.options.event+Wv(n))},e.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=Lv},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=wp({},t);if(!rv(this.options.enable,[this,e]))return this.reset(),void(this.state=Lv);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}(),Yv=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,yp({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}mp(e,t);var n=e.prototype;return n.getTouchAction=function(){return[Dp]},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(),t.eventType&qp&&0===this.count)return this.failTimeout();if(i&&o&&r){if(t.eventType!==Yp)return this.failTimeout();var a=!this.pTime||t.timeStamp-this.pTime<n.interval,s=!this.pCenter||uv(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 Lv},n.failTimeout=function(){var t=this;return this._timer=setTimeout((function(){t.state=Lv}),this.options.interval),Lv},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}(qv),Xv=function(t){function e(e){return void 0===e&&(e={}),t.call(this,yp({pointers:1},e))||this}mp(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&&(n&Xp||!i)?16|e:r||i?n&Yp?8|e:2&e?4|e:2:Lv},e}(qv);function Vv(t){return t===Qp?"down":t===Gp?"up":t===Up?"left":t===$p?"right":""}var Uv=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,yp({event:"pan",threshold:10,pointers:1,direction:Zp},e))||this).pX=null,n.pY=null,n}mp(e,t);var n=e.prototype;return n.getTouchAction=function(){var t=this.options.direction,e=[];return t&Jp&&e.push(Rp),t&Kp&&e.push(Ip),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||(e.direction&Jp?(i=0===o?Vp:o<0?Up:$p,n=o!==this.pX,r=Math.abs(t.deltaX)):(i=0===a?Vp:a<0?Gp:Qp,n=a!==this.pY,r=Math.abs(t.deltaY))),t.direction=i,n&&r>e.threshold&&i&e.direction},n.attrTest=function(t){return Xv.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=Vv(e.direction);n&&(e.additionalEvent=this.options.event+n),t.prototype.emit.call(this,e)},e}(Xv),$v=function(t){function e(e){return void 0===e&&(e={}),t.call(this,yp({event:"swipe",threshold:10,velocity:.3,direction:Jp|Kp,pointers:1},e))||this}mp(e,t);var n=e.prototype;return n.getTouchAction=function(){return Uv.prototype.getTouchAction.call(this)},n.attrTest=function(e){var n,r=this.options.direction;return r&(Jp|Kp)?n=e.overallVelocity:r&Jp?n=e.overallVelocityX:r&Kp&&(n=e.overallVelocityY),t.prototype.attrTest.call(this,e)&&r&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers===this.options.pointers&&Fp(n)>this.options.velocity&&e.eventType&Yp},n.emit=function(t){var e=Vv(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},e}(Xv),Gv=function(t){function e(e){return void 0===e&&(e={}),t.call(this,yp({event:"pinch",threshold:0,pointers:2},e))||this}mp(e,t);var n=e.prototype;return n.getTouchAction=function(){return[jp]},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}(Xv),Qv=function(t){function e(e){return void 0===e&&(e={}),t.call(this,yp({event:"rotate",threshold:0,pointers:2},e))||this}mp(e,t);var n=e.prototype;return n.getTouchAction=function(){return[jp]},n.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)},e}(Xv),Jv=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,yp({event:"press",pointers:1,time:251,threshold:9},e))||this)._timer=null,n._input=null,n}mp(e,t);var n=e.prototype;return n.getTouchAction=function(){return[xp]},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||t.eventType&(Yp|Xp)&&!o)this.reset();else if(t.eventType&qp)this.reset(),this._timer=setTimeout((function(){e.state=8,e.tryEmit()}),n.time);else if(t.eventType&Yp)return 8;return Lv},n.reset=function(){clearTimeout(this._timer)},n.emit=function(t){8===this.state&&(t&&t.eventType&Yp?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=Tp(),this.manager.emit(this.options.event,this._input)))},e}(qv),Kv={domEvents:!1,touchAction:Pp,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Zv=[[Qv,{enable:!1}],[Gv,{enable:!1},["rotate"]],[$v,{direction:Jp}],[Uv,{direction:Jp},["swipe"]],[Yv],[Yv,{event:"doubletap",taps:2},["tap"]],[Jv]];function td(t,e){var n,r=t.element;r.style&&(nv(t.options.cssProps,(function(i,o){n=_p(r.style,o),e?(t.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}var ed=function(){function t(t,e){var n,r=this;this.options=wp({},Kv,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||(Bp?Fv:Lp?Av:Np?Nv:Dv))(n,vv),this.touchAction=new ov(this,this.options.touchAction),td(this,!0),nv(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 wp(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 qv)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(Bv(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(Bv(t,"remove",this))return this;var e=this.get(t);if(t){var n=this.recognizers,r=kv(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 nv(dv(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 nv(dv(t),(function(t){e?n[t]&&n[t].splice(kv(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&&td(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},t}(),nd={touchstart:qp,touchmove:2,touchend:Yp,touchcancel:Xp},rd=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 mp(e,t),e.prototype.handler=function(t){var e=nd[t.type];if(e===qp&&(this.started=!0),this.started){var n=id.call(this,t,e);e&(Yp|Xp)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:zp,srcEvent:t})}},e}(bv);function id(t,e){var n=Tv(t.touches),r=Tv(t.changedTouches);return e&(Yp|Xp)&&(n=_v(n.concat(r),"identifier",!0)),[n,r]}function od(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 ad=od((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`."),sd=od((function(t,e){return ad(t,e,!0)}),"merge","Use `assign`.");function cd(t,e,n){var r,i=e.prototype;(r=t.prototype=Object.create(i)).constructor=t,r._super=i,n&&wp(r,n)}function ud(t,e){return function(){return t.apply(e,arguments)}}var ld=function(){var t=function(t,e){return void 0===e&&(e={}),new ed(t,yp({recognizers:Zv.concat()},e))};return t.VERSION="2.0.17-rc",t.DIRECTION_ALL=Zp,t.DIRECTION_DOWN=Qp,t.DIRECTION_LEFT=Up,t.DIRECTION_RIGHT=$p,t.DIRECTION_UP=Gp,t.DIRECTION_HORIZONTAL=Jp,t.DIRECTION_VERTICAL=Kp,t.DIRECTION_NONE=Vp,t.DIRECTION_DOWN=Qp,t.INPUT_START=qp,t.INPUT_MOVE=2,t.INPUT_END=Yp,t.INPUT_CANCEL=Xp,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=Lv,t.Manager=ed,t.Input=bv,t.TouchAction=ov,t.TouchInput=Av,t.MouseInput=Dv,t.PointerEventInput=Fv,t.TouchMouseInput=Nv,t.SingleTouchInput=rd,t.Recognizer=qv,t.AttrRecognizer=Xv,t.Tap=Yv,t.Pan=Uv,t.Swipe=$v,t.Pinch=Gv,t.Rotate=Qv,t.Press=Jv,t.on=gv,t.off=yv,t.each=nv,t.merge=sd,t.extend=ad,t.bindFn=ud,t.assign=wp,t.inherit=cd,t.bindFn=ud,t.prefixed=_p,t.toArray=Tv,t.inArray=kv,t.uniqueArray=_v,t.splitStr=dv,t.boolOrFn=rv,t.hasParent=av,t.addEventListeners=gv,t.removeEventListeners=yv,t.defaults=wp({},Kv,{preset:Zv}),t}();ld.defaults;var hd=ld;var fd="undefined"!=typeof window?window.Hammer||hd:function(){return function(){var t=function(){};return{on:t,off:t,destroy:t,emit:t,get:function(){return{set:t}}}}()};function pd(t,e){var n=void 0!==wh&&os(t)||t["@@iterator"];if(!n){if(Rh(t)||(n=function(t,e){var n;if(!t)return;if("string"==typeof t)return vd(t,e);var r=_h(n=Object.prototype.toString.call(t)).call(n,8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return za(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vd(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function vd(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function dd(t){var e,n=this;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((function(){n._dom.overlay.parentNode.removeChild(n._dom.overlay)}));var r=fd(this._dom.overlay);r.on("tap",Cf(e=this._onTapOverlay).call(e,this)),this._cleanupQueue.push((function(){r.destroy()}));var i=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];If(i).call(i,(function(t){r.on(t,(function(t){t.srcEvent.stopPropagation()}))})),document&&document.body&&(this._onClick=function(e){(function(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1})(e.target,t)||n.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push((function(){document.body.removeEventListener("click",n._onClick)}))),this._escListener=function(t){("key"in t?"Escape"===t.key:27===t.keyCode)&&n.deactivate()}}function gd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}gp(dd.prototype),dd.current=null,dd.prototype.destroy=function(){var t,e;this.deactivate();var n,r=pd(qf(t=vp(e=this._cleanupQueue).call(e,0)).call(t));try{for(r.s();!(n=r.n()).done;){(0,n.value)()}}catch(t){r.e(t)}finally{r.f()}},dd.prototype.activate=function(){dd.current&&dd.current.deactivate(),dd.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)},dd.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")},dd.prototype._onTapOverlay=function(t){this.activate(),t.srcEvent.stopPropagation()};var yd={exports:{}},md=Cr,bd=Wt,kd=qt.f;md({target:"Object",stat:!0,forced:Object.defineProperty!==kd,sham:!bd},{defineProperty:kd});var wd=ie.Object,Cd=yd.exports=function(t,e,n){return wd.defineProperty(t,e,n)};wd.defineProperty.sham&&(Cd.sham=!0);var Ed=e(yd.exports),Od=e(Js.f("toPrimitive"));function Fd(t){var e=function(t,e){if("object"!==Vl(t)||null===t)return t;var n=t[Od];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Vl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Vl(e)?e:String(e)}function Td(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Ed(t,Fd(r.key),r)}}function _d(t,e,n){return e&&Td(t.prototype,e),n&&Td(t,n),Ed(t,"prototype",{writable:!1}),t}var Sd=ie,Ad=Tn;Sd.JSON||(Sd.JSON={stringify:JSON.stringify});var Pd=e((function(t,e,n){return Ad(Sd.JSON.stringify,null,arguments)})),xd=Wt,Dd=c,jd=re,Id=n,Rd=Kr,Md=Gs,Nd=xn,Bd=x,Ld=Ln,zd=Object.assign,Hd=Object.defineProperty,Wd=Dd([].concat),qd=!zd||Id((function(){if(xd&&1!==zd({b:1},zd(Hd({},"a",{enumerable:!0,get:function(){Hd(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=zd({},t)[n]||Rd(zd({},e)).join("")!=r}))?function(t,e){for(var n=Bd(t),r=arguments.length,i=1,o=Md.f,a=Nd.f;r>i;)for(var s,c=Ld(arguments[i++]),u=o?Wd(Rd(c),o(c)):Rd(c),l=u.length,h=0;l>h;)s=u[h++],xd&&!jd(a,c,s)||(n[s]=c[s]);return n}:zd,Yd=qd;Cr({target:"Object",stat:!0,arity:2,forced:Object.assign!==Yd},{assign:Yd});var Xd=e(ie.Object.assign),Vd="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,Ud=TypeError,$d=v,Gd=Tn,Qd=ft,Jd=Vd,Kd=z,Zd=zu,tg=function(t,e){if(t<e)throw Ud("Not enough arguments");return t},eg=$d.Function,ng=/MSIE .\./.test(Kd)||Jd&&function(){var t=$d.Bun.version.split(".");return t.length<3||0==t[0]&&(t[1]<3||3==t[1]&&0==t[2])}(),rg=function(t,e){var n=e?2:1;return ng?function(r,i){var o=tg(arguments.length,1)>n,a=Qd(r)?r:eg(r),s=o?Zd(arguments,n):[],c=o?function(){Gd(a,this,s)}:a;return e?t(c,i):t(c)}:t},ig=Cr,og=v,ag=rg(og.setInterval,!0);ig({global:!0,bind:!0,forced:og.setInterval!==ag},{setInterval:ag});var sg=Cr,cg=v,ug=rg(cg.setTimeout,!0);sg({global:!0,bind:!0,forced:cg.setTimeout!==ug},{setTimeout:ug});var lg=e(ie.setTimeout),hg=x,fg=jr,pg=Nr;Cr({target:"Array",proto:!0},{fill:function(t){for(var e=hg(this),n=pg(e),r=arguments.length,i=fg(r>1?arguments[1]:void 0,n),o=r>2?arguments[2]:void 0,a=void 0===o?n:fg(o,n);a>i;)e[i++]=t;return e}});var vg=fh("Array").fill,dg=le,gg=vg,yg=Array.prototype,mg=e((function(t){var e=t.fill;return t===yg||dg(yg,t)&&e===yg.fill?gg:e})),bg=Wr.includes;Cr({target:"Array",proto:!0,forced:n((function(){return!Array(1).includes()}))},{includes:function(t){return bg(this,t,arguments.length>1?arguments[1]:void 0)}});var kg=fh("Array").includes,wg=Ht,Cg=gt,Eg=at("match"),Og=function(t){var e;return wg(t)&&(void 0!==(e=t[Eg])?!!e:"RegExp"==Cg(t))},Fg=TypeError,Tg=at("match"),_g=Cr,Sg=function(t){if(Og(t))throw Fg("The method doesn't accept regular expressions");return t},Ag=S,Pg=Tt,xg=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[Tg]=!1,"/./"[t](e)}catch(t){}}return!1},Dg=c("".indexOf);_g({target:"String",proto:!0,forced:!xg("includes")},{includes:function(t){return!!~Dg(Pg(Ag(this)),Pg(Sg(t)),arguments.length>1?arguments[1]:void 0)}});var jg=fh("String").includes,Ig=le,Rg=kg,Mg=jg,Ng=Array.prototype,Bg=String.prototype,Lg=e((function(t){var e=t.includes;return t===Ng||Ig(Ng,t)&&e===Ng.includes?Rg:"string"==typeof t||t===Bg||Ig(Bg,t)&&e===Bg.includes?Mg:e})),zg=x,Hg=Di,Wg=Oi;Cr({target:"Object",stat:!0,forced:n((function(){Hg(1)})),sham:!Wg},{getPrototypeOf:function(t){return Hg(zg(t))}});var qg=e(ie.Object.getPrototypeOf),Yg=gc.filter;Cr({target:"Array",proto:!0,forced:!ks("filter")},{filter:function(t){return Yg(this,t,arguments.length>1?arguments[1]:void 0)}});var Xg=fh("Array").filter,Vg=le,Ug=Xg,$g=Array.prototype,Gg=e((function(t){var e=t.filter;return t===$g||Vg($g,t)&&e===$g.filter?Ug:e})),Qg=Wt,Jg=c,Kg=Kr,Zg=Wn,ty=Jg(xn.f),ey=Jg([].push),ny=function(t){return function(e){for(var n,r=Zg(e),i=Kg(r),o=i.length,a=0,s=[];o>a;)n=i[a++],Qg&&!ty(r,n)||ey(s,t?[n,r[n]]:r[n]);return s}},ry={entries:ny(!0),values:ny(!1)},iy=ry.values;Cr({target:"Object",stat:!0},{values:function(t){return iy(t)}});var oy=e(ie.Object.values),ay="\t\n\v\f\r \u2028\u2029\ufeff",sy=S,cy=Tt,uy=ay,ly=c("".replace),hy=RegExp("^["+uy+"]+"),fy=RegExp("(^|[^"+uy+"])["+uy+"]+$"),py=function(t){return function(e){var n=cy(sy(e));return 1&t&&(n=ly(n,hy,"")),2&t&&(n=ly(n,fy,"$1")),n}},vy={start:py(1),end:py(2),trim:py(3)},dy=v,gy=n,yy=c,my=Tt,by=vy.trim,ky=ay,wy=dy.parseInt,Cy=dy.Symbol,Ey=Cy&&Cy.iterator,Oy=/^[+-]?0x/i,Fy=yy(Oy.exec),Ty=8!==wy(ky+"08")||22!==wy(ky+"0x16")||Ey&&!gy((function(){wy(Object(Ey))}))?function(t,e){var n=by(my(t));return wy(n,e>>>0||(Fy(Oy,n)?16:10))}:wy;Cr({global:!0,forced:parseInt!=Ty},{parseInt:Ty});var _y=e(ie.parseInt),Sy=Cr,Ay=Wr.indexOf,Py=Of,xy=An([].indexOf),Dy=!!xy&&1/xy([1],1,-0)<0;Sy({target:"Array",proto:!0,forced:Dy||!Py("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return Dy?xy(this,t,e)||0:Ay(this,t,e)}});var jy=fh("Array").indexOf,Iy=le,Ry=jy,My=Array.prototype,Ny=e((function(t){var e=t.indexOf;return t===My||Iy(My,t)&&e===My.indexOf?Ry:e})),By=ry.entries;Cr({target:"Object",stat:!0},{entries:function(t){return By(t)}});var Ly=e(ie.Object.entries);Cr({target:"Object",stat:!0,sham:!Wt},{create:Ei});var zy=ie.Object,Hy=e((function(t,e){return zy.create(t,e)}));function Wy(t,e){var n=void 0!==wh&&os(t)||t["@@iterator"];if(!n){if(Rh(t)||(n=function(t,e){var n;if(!t)return;if("string"==typeof t)return qy(t,e);var r=_h(n=Object.prototype.toString.call(t)).call(n,8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return za(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qy(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function qy(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Yy=/^\/?Date\((-?\d+)/i,Xy=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,Vy=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,Uy=/^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,$y=/^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 Gy(t){return t instanceof Number||"number"==typeof t}function Qy(t){if(t)for(;!0===t.hasChildNodes();){var e=t.firstChild;e&&(Qy(e),t.removeChild(e))}}function Jy(t){return t instanceof String||"string"==typeof t}function Ky(t){return"object"===Vl(t)&&null!==t}function Zy(t){if(t instanceof Date)return!0;if(Jy(t)){if(Yy.exec(t))return!0;if(!isNaN(Date.parse(t)))return!0}return!1}function tm(t,e,n,r){var i=!1;!0===r&&(i=null===e[n]&&void 0!==t[n]),i?delete t[n]:t[n]=e[n]}function em(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var r in t)if(void 0!==e[r])if(null===e[r]||"object"!==Vl(e[r]))tm(t,e,r,n);else{var i=t[r],o=e[r];Ky(i)&&Ky(o)&&em(i,o,n)}}var nm=Xd;function rm(t,e){if(!Rh(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(var o=0,a=r;o<a.length;o++)for(var s=a[o],c=0;c<t.length;c++){var u=t[c];s&&Object.prototype.hasOwnProperty.call(s,u)&&(e[u]=s[u])}return e}function im(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(Rh(n))throw new TypeError("Arrays are not supported by deepExtend");for(var i=0;i<t.length;i++){var 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?am(e[o],n[o],!1,r):tm(e,n,o,r);else{if(Rh(n[o]))throw new TypeError("Arrays are not supported by deepExtend");tm(e,n,o,r)}}return e}function om(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(Rh(n))throw new TypeError("Arrays are not supported by deepExtend");for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&!Lg(t).call(t,i))if(n[i]&&n[i].constructor===Object)void 0===e[i]&&(e[i]={}),e[i].constructor===Object?am(e[i],n[i]):tm(e,n,i,r);else if(Rh(n[i])){e[i]=[];for(var o=0;o<n[i].length;o++)e[i].push(n[i][o])}else tm(e,n,i,r);return e}function am(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)||!0===n)if("object"===Vl(e[i])&&null!==e[i]&&qg(e[i])===Object.prototype)void 0===t[i]?t[i]=am({},e[i],n):"object"===Vl(t[i])&&null!==t[i]&&qg(t[i])===Object.prototype?am(t[i],e[i],n):tm(t,e,i,r);else if(Rh(e[i])){var o;t[i]=_h(o=e[i]).call(o)}else tm(t,e,i,r);return t}function sm(t,e){if(t.length!==e.length)return!1;for(var n=0,r=t.length;n<r;n++)if(t[n]!=e[n])return!1;return!0}function cm(t){var e=Vl(t);return"object"===e?null===t?"null":t instanceof Boolean?"Boolean":t instanceof Number?"Number":t instanceof String?"String":Rh(t)?"Array":t instanceof Date?"Date":"Object":"number"===e?"Number":"boolean"===e?"Boolean":"string"===e?"String":void 0===e?"undefined":e}function um(t,e){var n;return Th(n=[]).call(n,kh(t),[e])}function lm(t){return _h(t).call(t)}function hm(t){return t.getBoundingClientRect().left}function fm(t){return t.getBoundingClientRect().right}function pm(t){return t.getBoundingClientRect().top}function vm(t,e){var n=t.className.split(" "),r=e.split(" ");n=Th(n).call(n,Gg(r).call(r,(function(t){return!Lg(n).call(n,t)}))),t.className=n.join(" ")}function dm(t,e){var n=t.className.split(" "),r=e.split(" ");n=Gg(n).call(n,(function(t){return!Lg(r).call(r,t)})),t.className=n.join(" ")}function gm(t,e){if(Rh(t))for(var n=t.length,r=0;r<n;r++)e(t[r],r,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e(t[i],i,t)}var ym=oy;function mm(t,e,n){return t[e]!==n&&(t[e]=n,!0)}function bm(t){var e=!1;return function(){e||(e=!0,requestAnimationFrame((function(){e=!1,t()})))}}function km(t,e,n,r){var i;t.addEventListener?(void 0===r&&(r=!1),"mousewheel"===e&&Lg(i=navigator.userAgent).call(i,"Firefox")&&(e="DOMMouseScroll"),t.addEventListener(e,n,r)):t.attachEvent("on"+e,n)}function wm(t,e,n,r){var i;t.removeEventListener?(void 0===r&&(r=!1),"mousewheel"===e&&Lg(i=navigator.userAgent).call(i,"Firefox")&&(e="DOMMouseScroll"),t.removeEventListener(e,n,r)):t.detachEvent("on"+e,n)}function Cm(t){t||(t=window.event),t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)}function Em(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.event,e=null;return t&&(t.target?e=t.target:t.srcElement&&(e=t.srcElement)),e instanceof Element&&(null==e.nodeType||3!=e.nodeType||(e=e.parentNode)instanceof Element)?e:null}function Om(t,e){for(var n=t;n;){if(n===e)return!0;if(!n.parentNode)return!1;n=n.parentNode}return!1}var Fm={asBoolean:function(t,e){return"function"==typeof t&&(t=t()),null!=t?0!=t:e||null},asNumber:function(t,e){return"function"==typeof t&&(t=t()),null!=t?Number(t)||e||null:e||null},asString:function(t,e){return"function"==typeof t&&(t=t()),null!=t?String(t):e||null},asSize:function(t,e){return"function"==typeof t&&(t=t()),Jy(t)?t:Gy(t)?t+"px":e||null},asElement:function(t,e){return"function"==typeof t&&(t=t()),t||e||null}};function Tm(t){var e;switch(t.length){case 3:case 4:return(e=Vy.exec(t))?{r:_y(e[1]+e[1],16),g:_y(e[2]+e[2],16),b:_y(e[3]+e[3],16)}:null;case 6:case 7:return(e=Xy.exec(t))?{r:_y(e[1],16),g:_y(e[2],16),b:_y(e[3],16)}:null;default:return null}}function _m(t,e){if(Lg(t).call(t,"rgba"))return t;if(Lg(t).call(t,"rgb")){var n=t.substr(Ny(t).call(t,"(")+1).replace(")","").split(",");return"rgba("+n[0]+","+n[1]+","+n[2]+","+e+")"}var r=Tm(t);return null==r?t:"rgba("+r.r+","+r.g+","+r.b+","+e+")"}function Sm(t,e,n){var r;return"#"+_h(r=((1<<24)+(t<<16)+(e<<8)+n).toString(16)).call(r,1)}function Am(t,e){if(Jy(t)){var n=t;if(Bm(n)){var r,i=Hh(r=n.substr(4).substr(0,n.length-5).split(",")).call(r,(function(t){return _y(t)}));n=Sm(i[0],i[1],i[2])}if(!0===Nm(n)){var o=Mm(n),a={h:o.h,s:.8*o.s,v:Math.min(1,1.02*o.v)},s={h:o.h,s:Math.min(1,1.25*o.s),v:.8*o.v},c=Rm(s.h,s.s,s.v),u=Rm(a.h,a.s,a.v);return{background:n,border:c,highlight:{background:u,border:c},hover:{background:u,border:c}}}return{background:n,border:n,highlight:{background:n,border:n},hover:{background:n,border:n}}}return e?{background:t.background||e.background,border:t.border||e.border,highlight:Jy(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:Jy(t.hover)?{border:t.hover,background:t.hover}:{border:t.hover&&t.hover.border||e.hover.border,background:t.hover&&t.hover.background||e.hover.background}}:{background:t.background||void 0,border:t.border||void 0,highlight:Jy(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:Jy(t.hover)?{border:t.hover,background:t.hover}:{border:t.hover&&t.hover.border||void 0,background:t.hover&&t.hover.background||void 0}}}function Pm(t,e,n){t/=255,e/=255,n/=255;var r=Math.min(t,Math.min(e,n)),i=Math.max(t,Math.max(e,n));return r===i?{h:0,s:0,v:r}:{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 xm(t){var e=document.createElement("div"),n={};e.style.cssText=t;for(var r=0;r<e.style.length;++r)n[e.style[r]]=e.style.getPropertyValue(e.style[r]);return n}function Dm(t,e){for(var n=xm(e),r=0,i=Ly(n);r<i.length;r++){var o=Zh(i[r],2),a=o[0],s=o[1];t.style.setProperty(a,s)}}function jm(t,e){for(var n=xm(e),r=0,i=Yh(n);r<i.length;r++){var o=i[r];t.style.removeProperty(o)}}function Im(t,e,n){var r,i,o,a=Math.floor(6*t),s=6*t-a,c=n*(1-e),u=n*(1-s*e),l=n*(1-(1-s)*e);switch(a%6){case 0:r=n,i=l,o=c;break;case 1:r=u,i=n,o=c;break;case 2:r=c,i=n,o=l;break;case 3:r=c,i=u,o=n;break;case 4:r=l,i=c,o=n;break;case 5:r=n,i=c,o=u}return{r:Math.floor(255*r),g:Math.floor(255*i),b:Math.floor(255*o)}}function Rm(t,e,n){var r=Im(t,e,n);return Sm(r.r,r.g,r.b)}function Mm(t){var e=Tm(t);if(!e)throw new TypeError("'".concat(t,"' is not a valid color."));return Pm(e.r,e.g,e.b)}function Nm(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)}function Bm(t){return Uy.test(t)}function Lm(t){return $y.test(t)}function zm(t,e){if(null!==e&&"object"===Vl(e)){for(var n=Hy(e),r=0;r<t.length;r++)Object.prototype.hasOwnProperty.call(e,t[r])&&"object"==Vl(e[t[r]])&&(n[t[r]]=Hm(e[t[r]]));return n}return null}function Hm(t){if(null===t||"object"!==Vl(t))return null;if(t instanceof Element)return t;var e=Hy(t);for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&"object"==Vl(t[n])&&(e[n]=Hm(t[n]));return e}function Wm(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=void 0;for(i=n;i>0&&e(r,t[i-1])<0;i--)t[i]=t[i-1];t[i]=r}return t}function qm(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=function(t){return null!=t},o=function(t){return null!==t&&"object"===Vl(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");var a=e[n],s=o(r)&&!function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}(r)?r[n]:void 0,c=s?s.enabled:void 0;if(void 0!==a){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]=Hy(s)}if(o(a)){var u=!0;void 0!==a.enabled?u=a.enabled:void 0!==c&&(u=s.enabled),function(t,e,n){o(t[n])||(t[n]={});var r=e[n],i=t[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])}(t,e,n),t[n].enabled=u}}}function Ym(t,e,n,r){for(var i=0,o=0,a=t.length-1;o<=a&&i<1e4;){var s=Math.floor((o+a)/2),c=t[s],u=e(void 0===r?c[n]:c[n][r]);if(0==u)return s;-1==u?o=s+1:a=s-1,i++}return-1}function Xm(t,e,n,r,i){var o,a,s,c,u=0,l=0,h=t.length-1;for(i=null!=i?i:function(t,e){return t==e?0:t<e?-1:1};l<=h&&u<1e4;){if(c=Math.floor(.5*(h+l)),o=t[Math.max(0,c-1)][n],a=t[c][n],s=t[Math.min(t.length-1,c+1)][n],0==i(a,e))return c;if(i(o,e)<0&&i(a,e)>0)return"before"==r?Math.max(0,c-1):c;if(i(a,e)<0&&i(s,e)>0)return"before"==r?c:Math.min(t.length-1,c+1);i(a,e)<0?l=c+1:h=c-1,u++}return-1}var Vm={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return t*(2-t)},easeInOutQuad:function(t){return t<.5?2*t*t:(4-2*t)*t-1},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return--t*t*t+1},easeInOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1- --t*t*t*t},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1+--t*t*t*t*t},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}};function Um(){var t=document.createElement("p");t.style.width="100%",t.style.height="200px";var e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.style.visibility="hidden",e.style.width="200px",e.style.height="150px",e.style.overflow="hidden",e.appendChild(t),document.body.appendChild(e);var n=t.offsetWidth;e.style.overflow="scroll";var r=t.offsetWidth;return n==r&&(r=e.clientWidth),document.body.removeChild(e),n-r}function $m(t,e){var n;Rh(e)||(e=[e]);var r,i=Wy(t);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(o){n=o[e[0]];for(var a=1;a<e.length;a++)n&&(n=n[e[a]]);if(void 0!==n)break}}}catch(t){i.e(t)}finally{i.f()}return n}var Gm={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"},Qm=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;gd(this,t),this.pixelRatio=e,this.generated=!1,this.centerCoordinates={x:144.5,y:144.5},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return _d(t,[{key:"insertTo",value:function(t){void 0!==this.hammer&&(this.hammer.destroy(),this.hammer=void 0),this.container=t,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker update callback is not a function.");this.updateCallback=t}},{key:"setCloseCallback",value:function(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker closing callback is not a function.");this.closeCallback=t}},{key:"_isColorString",value:function(t){if("string"==typeof t)return Gm[t]}},{key:"setColor",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("none"!==t){var n,r=this._isColorString(t);if(void 0!==r&&(t=r),!0===Jy(t)){if(!0===Bm(t)){var i=t.substr(4).substr(0,t.length-5).split(",");n={r:i[0],g:i[1],b:i[2],a:1}}else if(!0===Lm(t)){var o=t.substr(5).substr(0,t.length-6).split(",");n={r:o[0],g:o[1],b:o[2],a:o[3]}}else if(!0===Nm(t)){var a=Tm(t);n={r:a.r,g:a.g,b:a.b,a:1}}}else if(t instanceof Object&&void 0!==t.r&&void 0!==t.g&&void 0!==t.b){var s=void 0!==t.a?t.a:"1.0";n={r:t.r,g:t.g,b:t.b,a:s}}if(void 0===n)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: "+Pd(t));this._setColor(n,e)}}},{key:"show",value:function(){void 0!==this.closeCallback&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var t=this;!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&(this.previousColor=Xd({},this.color)),!0===this.applied&&this.updateCallback(this.initialColor),this.frame.style.display="none",lg((function(){void 0!==t.closeCallback&&(t.closeCallback(),t.closeCallback=void 0)}),0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){void 0!==this.previousColor?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(t){!0===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(this.initialColor=Xd({},t)),this.color=t;var e=Pm(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)}},{key:"_setOpacity",value:function(t){this.color.a=t/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(t){var e=Pm(this.color.r,this.color.g,this.color.b);e.v=t/100;var n=Im(e.h,e.s,e.v);n.a=this.color.a,this.color=n,this._updatePicker()}},{key:"_updatePicker",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.color,e=Pm(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);var 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),mg(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+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){var t,e,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){var i=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(i.webkitBackingStorePixelRatio||i.mozBackingStorePixelRatio||i.msBackingStorePixelRatio||i.oBackingStorePixelRatio||i.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var o=document.createElement("DIV");o.style.color="red",o.style.fontWeight="bold",o.style.padding="10px",o.innerText="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(o)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch(t){}this.opacityRange.value="100",this.opacityRange.className="vis-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch(t){}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var a=this;this.opacityRange.onchange=function(){a._setOpacity(this.value)},this.opacityRange.oninput=function(){a._setOpacity(this.value)},this.brightnessRange.onchange=function(){a._setBrightness(this.value)},this.brightnessRange.oninput=function(){a._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=Cf(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=Cf(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=Cf(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=Cf(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)}},{key:"_bindHammer",value:function(){var t=this;this.drag={},this.pinch={},this.hammer=new fd(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("hammer.input",(function(e){e.isFirst&&t._moveSelector(e)})),this.hammer.on("tap",(function(e){t._moveSelector(e)})),this.hammer.on("panstart",(function(e){t._moveSelector(e)})),this.hammer.on("panmove",(function(e){t._moveSelector(e)})),this.hammer.on("panend",(function(e){t._moveSelector(e)}))}},{key:"_generateHueCircle",value:function(){if(!1===this.generated){var t=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)),t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var e,n,r,i,o=this.colorPickerCanvas.clientWidth,a=this.colorPickerCanvas.clientHeight;t.clearRect(0,0,o,a),this.centerCoordinates={x:.5*o,y:.5*a},this.r=.49*o;var s,c=2*Math.PI/360,u=1/this.r;for(r=0;r<360;r++)for(i=0;i<this.r;i++)e=this.centerCoordinates.x+i*Math.sin(c*r),n=this.centerCoordinates.y+i*Math.cos(c*r),s=Im(.002777777777777778*r,i*u,1),t.fillStyle="rgb("+s.r+","+s.g+","+s.b+")",t.fillRect(e-.5,n-.5,2,2);t.strokeStyle="rgba(0,0,0,1)",t.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),t.stroke(),this.hueCircle=t.getImageData(0,0,o,a)}this.generated=!0}},{key:"_moveSelector",value:function(t){var 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,c=Math.atan2(a,s),u=.98*Math.min(Math.sqrt(a*a+s*s),o),l=Math.cos(c)*u+i,h=Math.sin(c)*u+o;this.colorPickerSelector.style.top=l-.5*this.colorPickerSelector.clientHeight+"px",this.colorPickerSelector.style.left=h-.5*this.colorPickerSelector.clientWidth+"px";var f=c/(2*Math.PI);f=f<0?f+1:f;var p=u/this.r,v=Pm(this.color.r,this.color.g,this.color.b);v.h=f,v.s=p;var d=Im(v.h,v.s,v.v);d.a=this.color.a,this.color=d,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}}]),t}();function Jm(){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]);var r=document.createElement(e[0]);return r.appendChild(Jm.apply(void 0,kh(_h(e).call(e,1)))),r}var Km,Zm=function(){function t(e,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return!1};gd(this,t),this.parent=e,this.changedOptions=[],this.container=n,this.allowCreation=!1,this.hideOption=o,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},Xd(this.options,this.defaultOptions),this.configureOptions=r,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new Qm(i),this.wrapper=void 0}return _d(t,[{key:"setOptions",value:function(t){if(void 0!==t){this.popupHistory={},this._removePopup();var e=!0;if("string"==typeof t)this.options.filter=t;else if(Rh(t))this.options.filter=t.join();else if("object"===Vl(t)){if(null==t)throw new TypeError("options cannot be null");void 0!==t.container&&(this.options.container=t.container),void 0!==Gg(t)&&(this.options.filter=Gg(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===Gg(this.options)&&(e=!1),this.options.enabled=e}this._clean()}},{key:"setModuleOptions",value:function(t){this.moduleOptions=t,!0===this.options.enabled&&(this._clean(),void 0!==this.options.container&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var t=Gg(this.options),e=0,n=!1;for(var r in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,r)&&(this.allowCreation=!1,n=!1,"function"==typeof t?n=(n=t(r,[]))||this._handleObject(this.configureOptions[r],[r],!0):!0!==t&&-1===Ny(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()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var t=0;t<this.domElements.length;t++)this.wrapper.appendChild(this.domElements[t]);this._showPopupIfNeeded()}},{key:"_clean",value:function(){for(var t=0;t<this.domElements.length;t++)this.wrapper.removeChild(this.domElements[t]);void 0!==this.wrapper&&(this.container.removeChild(this.wrapper),this.wrapper=void 0),this.domElements=[],this._removePopup()}},{key:"_getValue",value:function(t){for(var e=this.moduleOptions,n=0;n<t.length;n++){if(void 0===e[t[n]]){e=void 0;break}e=e[t[n]]}return e}},{key:"_makeItem",value:function(t){if(!0===this.allowCreation){var e=document.createElement("div");e.className="vis-configuration vis-config-item vis-config-s"+t.length;for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return If(r).call(r,(function(t){e.appendChild(t)})),this.domElements.push(e),this.domElements.length}return 0}},{key:"_makeHeader",value:function(t){var e=document.createElement("div");e.className="vis-configuration vis-config-header",e.innerText=t,this._makeItem([],e)}},{key:"_makeLabel",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],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(Jm("i","b",t))}else r.innerText=t+":";return r}},{key:"_makeDropdown",value:function(t,e,n){var r=document.createElement("select");r.className="vis-configuration vis-config-select";var i=0;void 0!==e&&-1!==Ny(t).call(t,e)&&(i=Ny(t).call(t,e));for(var o=0;o<t.length;o++){var a=document.createElement("option");a.value=t[o],o===i&&(a.selected="selected"),a.innerText=t[o],r.appendChild(a)}var s=this;r.onchange=function(){s._update(this.value,n)};var c=this._makeLabel(n[n.length-1],n);this._makeItem(n,c,r)}},{key:"_makeRange",value:function(t,e,n){var 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;var c="",u=0;if(void 0!==e){var l=1.2;e<0&&e*l<i?(s.min=Math.ceil(e*l),u=s.min,c="range increased"):e/l<i&&(s.min=Math.ceil(e/l),u=s.min,c="range increased"),e*l>o&&1!==o&&(s.max=Math.ceil(e*l),u=s.max,c="range increased"),s.value=e}else s.value=r;var h=document.createElement("input");h.className="vis-configuration vis-config-rangeinput",h.value=s.value;var f=this;s.onchange=function(){h.value=this.value,f._update(Number(this.value),n)},s.oninput=function(){h.value=this.value};var p=this._makeLabel(n[n.length-1],n),v=this._makeItem(n,p,s,h);""!==c&&this.popupHistory[v]!==u&&(this.popupHistory[v]=u,this._setupPopup(c,v))}},{key:"_makeButton",value:function(){var t=this;if(!0===this.options.showButton){var e=document.createElement("div");e.className="vis-configuration vis-config-button",e.innerText="generate options",e.onclick=function(){t._printOptions()},e.onmouseover=function(){e.className="vis-configuration vis-config-button hover"},e.onmouseout=function(){e.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(e)}}},{key:"_setupPopup",value:function(t,e){var n=this;if(!0===this.initialized&&!0===this.allowCreation&&this.popupCounter<this.popupLimit){var r=document.createElement("div");r.id="vis-configuration-popup",r.className="vis-configuration-popup",r.innerText=t,r.onclick=function(){n._removePopup()},this.popupCounter+=1,this.popupDiv={html:r,index:e}}}},{key:"_removePopup",value:function(){void 0!==this.popupDiv.html&&(this.popupDiv.html.parentNode.removeChild(this.popupDiv.html),clearTimeout(this.popupDiv.hideTimeout),clearTimeout(this.popupDiv.deleteTimeout),this.popupDiv={})}},{key:"_showPopupIfNeeded",value:function(){var t=this;if(void 0!==this.popupDiv.html){var e=this.domElements[this.popupDiv.index].getBoundingClientRect();this.popupDiv.html.style.left=e.left+"px",this.popupDiv.html.style.top=e.top-30+"px",document.body.appendChild(this.popupDiv.html),this.popupDiv.hideTimeout=lg((function(){t.popupDiv.html.style.opacity=0}),1500),this.popupDiv.deleteTimeout=lg((function(){t._removePopup()}),1800)}}},{key:"_makeCheckbox",value:function(t,e,n){var 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"===Vl(t)?e!==t.enabled&&this.changedOptions.push({path:n,value:e}):this.changedOptions.push({path:n,value:e})));var i=this;r.onchange=function(){i._update(this.checked,n)};var o=this._makeLabel(n[n.length-1],n);this._makeItem(n,o,r)}},{key:"_makeTextInput",value:function(t,e,n){var 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});var i=this;r.onchange=function(){i._update(this.value,n)};var o=this._makeLabel(n[n.length-1],n);this._makeItem(n,o,r)}},{key:"_makeColorField",value:function(t,e,n){var r=this,i=t[1],o=document.createElement("div");"none"!==(e=void 0===e?i:e)?(o.className="vis-configuration vis-config-colorBlock",o.style.backgroundColor=e):o.className="vis-configuration vis-config-colorBlock none",e=void 0===e?i:e,o.onclick=function(){r._showColorPicker(e,o,n)};var a=this._makeLabel(n[n.length-1],n);this._makeItem(n,a,o)}},{key:"_showColorPicker",value:function(t,e,n){var r=this;e.onclick=function(){},this.colorPicker.insertTo(e),this.colorPicker.show(),this.colorPicker.setColor(t),this.colorPicker.setUpdateCallback((function(t){var i="rgba("+t.r+","+t.g+","+t.b+","+t.a+")";e.style.backgroundColor=i,r._update(i,n)})),this.colorPicker.setCloseCallback((function(){e.onclick=function(){r._showColorPicker(t,e,n)}}))}},{key:"_handleObject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!1,i=Gg(this.options),o=!1;for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){r=!0;var s=t[a],c=um(e,a);if("function"==typeof i&&!1===(r=i(a,e))&&!Rh(s)&&"string"!=typeof s&&"boolean"!=typeof s&&s instanceof Object&&(this.allowCreation=!1,r=this._handleObject(s,c,!0),this.allowCreation=!1===n),!1!==r){o=!0;var u=this._getValue(c);if(Rh(s))this._handleArray(s,u,c);else if("string"==typeof s)this._makeTextInput(s,u,c);else if("boolean"==typeof s)this._makeCheckbox(s,u,c);else if(s instanceof Object){if(!this.hideOption(e,a,this.moduleOptions))if(void 0!==s.enabled){var l=um(c,"enabled"),h=this._getValue(l);if(!0===h){var f=this._makeLabel(a,c,!0);this._makeItem(c,f),o=this._handleObject(s,c)||o}else this._makeCheckbox(s,h,c)}else{var p=this._makeLabel(a,c,!0);this._makeItem(c,p),o=this._handleObject(s,c)||o}}else console.error("dont know how to handle",s,a,c)}}return o}},{key:"_handleArray",value:function(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)}))}},{key:"_update",value:function(t,e){var 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)}},{key:"_constructOptions",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n;t="false"!==(t="true"===t||t)&&t;for(var i=0;i<e.length;i++)"global"!==e[i]&&(void 0===r[e[i]]&&(r[e[i]]={}),i!==e.length-1?r=r[e[i]]:r[e[i]]=t);return n}},{key:"_printOptions",value:function(){for(var t=this.getOptions();this.optionsContainer.firstChild;)this.optionsContainer.removeChild(this.optionsContainer.firstChild);this.optionsContainer.appendChild(Jm("pre","const options = "+Pd(t,null,2)))}},{key:"getOptions",value:function(){for(var t={},e=0;e<this.changedOptions.length;e++)this._constructOptions(this.changedOptions[e].value,this.changedOptions[e].path,t);return t}}]),t}(),tb=function(){function t(e,n){gd(this,t),this.container=e,this.overflowMethod=n||"cap",this.x=0,this.y=0,this.padding=5,this.hidden=!1,this.frame=document.createElement("div"),this.frame.className="vis-tooltip",this.container.appendChild(this.frame)}return _d(t,[{key:"setPosition",value:function(t,e){this.x=_y(t),this.y=_y(e)}},{key:"setText",value:function(t){if(t instanceof Element){for(;this.frame.firstChild;)this.frame.removeChild(this.frame.firstChild);this.frame.appendChild(t)}else this.frame.innerText=t}},{key:"show",value:function(t){if(void 0===t&&(t=!0),!0===t){var e=this.frame.clientHeight,n=this.frame.clientWidth,r=this.frame.parentNode.clientHeight,i=this.frame.parentNode.clientWidth,o=0,a=0;if("flip"==this.overflowMethod){var s=!1,c=!0;this.y-e<this.padding&&(c=!1),this.x+n>i-this.padding&&(s=!0),o=s?this.x-n:this.x,a=c?this.y-e:this.y}else(a=this.y-e)+e+this.padding>r&&(a=r-e-this.padding),a<this.padding&&(a=this.padding),(o=this.x)+n+this.padding>i&&(o=i-n-this.padding),o<this.padding&&(o=this.padding);this.frame.style.left=o+"px",this.frame.style.top=a+"px",this.frame.style.visibility="visible",this.hidden=!1}else this.hide()}},{key:"hide",value:function(){this.hidden=!0,this.frame.style.left="0",this.frame.style.top="0",this.frame.style.visibility="hidden"}},{key:"destroy",value:function(){this.frame.parentNode.removeChild(this.frame)}}]),t}(),eb=!1,nb="background: #FFeeee; color: #dd0000",rb=function(){function t(){gd(this,t)}return _d(t,null,[{key:"validate",value:function(e,n,r){eb=!1,Km=n;var i=n;return void 0!==r&&(i=n[r]),t.parse(e,i,[]),eb}},{key:"parse",value:function(e,n,r){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.check(i,e,n,r)}},{key:"check",value:function(e,n,r,i){if(void 0!==r[e]||void 0!==r.__any__){var o=e,a=!0;void 0===r[e]&&void 0!==r.__any__&&(o="__any__",a="object"===t.getType(n[e]));var s=r[o];a&&void 0!==s.__type__&&(s=s.__type__),t.checkFields(e,n,r,o,s,i)}else t.getSuggestion(e,r,i)}},{key:"checkFields",value:function(e,n,r,i,o,a){var s=function(n){console.error("%c"+n+t.printLocation(a,e),nb)},c=t.getType(n[e]),u=o[c];void 0!==u?"array"===t.getType(u)&&-1===Ny(u).call(u,n[e])?(s('Invalid option detected in "'+e+'". Allowed values are:'+t.print(u)+' not "'+n[e]+'". '),eb=!0):"object"===c&&"__any__"!==i&&(a=um(a,e),t.parse(n[e],r[i],a)):void 0===o.any&&(s('Invalid type received for "'+e+'". Expected: '+t.print(Yh(o))+". Received ["+c+'] "'+n[e]+'"'),eb=!0)}},{key:"getType",value:function(t){var e=Vl(t);return"object"===e?null===t?"null":t instanceof Boolean?"boolean":t instanceof Number?"number":t instanceof String?"string":Rh(t)?"array":t instanceof Date?"date":void 0!==t.nodeType?"dom":!0===t._isAMomentObject?"moment":"object":"number"===e?"number":"boolean"===e?"boolean":"string"===e?"string":void 0===e?"undefined":e}},{key:"getSuggestion",value:function(e,n,r){var i,o=t.findInOptions(e,n,r,!1),a=t.findInOptions(e,Km,[],!0);i=void 0!==o.indexMatch?" in "+t.printLocation(o.path,e,"")+'Perhaps it was incomplete? Did you mean: "'+o.indexMatch+'"?\n\n':a.distance<=4&&o.distance>a.distance?" in "+t.printLocation(o.path,e,"")+"Perhaps it was misplaced? Matching option found at: "+t.printLocation(a.path,a.closestMatch,""):o.distance<=8?'. Did you mean "'+o.closestMatch+'"?'+t.printLocation(o.path,e):". Did you mean one of these: "+t.print(Yh(n))+t.printLocation(r,e),console.error('%cUnknown option detected: "'+e+'"'+i,nb),eb=!0}},{key:"findInOptions",value:function(e,n,r){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=1e9,a="",s=[],c=e.toLowerCase(),u=void 0;for(var l in n){var h=void 0;if(void 0!==n[l].__type__&&!0===i){var f=t.findInOptions(e,n[l],um(r,l));o>f.distance&&(a=f.closestMatch,s=f.path,o=f.distance,u=f.indexMatch)}else{var p;-1!==Ny(p=l.toLowerCase()).call(p,c)&&(u=l),o>(h=t.levenshteinDistance(e,l))&&(a=l,s=lm(r),o=h)}}return{closestMatch:a,path:s,distance:o,indexMatch:u}}},{key:"printLocation",value:function(t,e){for(var n="\n\n"+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Problem value found at: \n")+"options = {\n",r=0;r<t.length;r++){for(var i=0;i<r+1;i++)n+=" ";n+=t[r]+": {\n"}for(var o=0;o<t.length+1;o++)n+=" ";n+=e+"\n";for(var a=0;a<t.length+1;a++){for(var s=0;s<t.length-a;s++)n+=" ";n+="}\n"}return n+"\n\n"}},{key:"print",value:function(t){return Pd(t).replace(/(")|(\[)|(\])|(,"__type__")/g,"").replace(/(,)/g,", ")}},{key:"levenshteinDistance",value:function(t,e){if(0===t.length)return e.length;if(0===e.length)return t.length;var n,r,i=[];for(n=0;n<=e.length;n++)i[n]=[n];for(r=0;r<=t.length;r++)i[0][r]=r;for(n=1;n<=e.length;n++)for(r=1;r<=t.length;r++)e.charAt(n-1)==t.charAt(r-1)?i[n][r]=i[n-1][r-1]:i[n][r]=Math.min(i[n-1][r-1]+1,Math.min(i[n][r-1]+1,i[n-1][r]+1));return i[e.length][t.length]}}]),t}(),ib=dd,ob=Qm,ab=Zm,sb=fd,cb=tb,ub=nb,lb=rb;export{ib as Activator,of as Alea,ob as ColorPicker,ab as Configurator,Uh as DELETE,Rm as HSVToHex,Im as HSVToRGB,sb as Hammer,cb as Popup,Pm as RGBToHSV,Sm as RGBToHex,ub as VALIDATOR_PRINT_STYLE,lb as Validator,vm as addClassName,Dm as addCssText,km as addEventListener,Ym as binarySearchCustom,Xm as binarySearchValue,Hm as bridgeObject,um as copyAndExtendArray,lm as copyArray,am as deepExtend,Gh as deepObjectAssign,Vm as easingFunctions,sm as equalArray,nm as extend,em as fillIfDefined,gm as forEach,hm as getAbsoluteLeft,fm as getAbsoluteRight,pm as getAbsoluteTop,Um as getScrollBarWidth,Em as getTarget,cm as getType,Om as hasParent,Mm as hexToHSV,Tm as hexToRGB,Wm as insertSort,Zy as isDate,Gy as isNumber,Ky as isObject,Jy as isString,Nm as isValidHex,Bm as isValidRGB,Lm as isValidRGBA,qm as mergeOptions,Fm as option,_m as overrideOpacity,Am as parseColor,Cm as preventDefault,$h as pureDeepObjectAssign,Qy as recursiveDOMDelete,dm as removeClassName,jm as removeCssText,wm as removeEventListener,zm as selectiveBridgeObject,im as selectiveDeepExtend,rm as selectiveExtend,om as selectiveNotDeepExtend,bm as throttle,ym as toArray,$m as topMost,mm as updateProperty};
|
|
34
34
|
//# sourceMappingURL=vis-util.min.js.map
|