@ltm-blueverse/alpha-hub-studio 0.7.0
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/README.md +22 -0
- package/package.json +23 -0
- package/static/apple-touch-icon.png +0 -0
- package/static/assets/DecisionWorkspace-DG6zPNls.js +1 -0
- package/static/assets/DiffMergeWorkspace-C8yIdDC7.js +1 -0
- package/static/assets/EntityResolutionTab-RBysMLhB.js +6 -0
- package/static/assets/GraphInspectorPanel-Bbrbhd03.js +1 -0
- package/static/assets/GraphWorkspace-AxTFEhNP.js +1116 -0
- package/static/assets/ImportExportWorkspace-BK3TofDv.js +6 -0
- package/static/assets/KGOverviewTab-D9EWKL_n.js +1 -0
- package/static/assets/LineageDiagram-XxBVa1Ij.js +27 -0
- package/static/assets/MarkdownContentViewer-Chx4ysCK.js +45 -0
- package/static/assets/MemoryWorkspace-CIjaTN_S.js +6 -0
- package/static/assets/OntologySummaryTab-NJ3ZrkoJ.js +1 -0
- package/static/assets/ReasoningWorkspace-B127Rd-S.js +19 -0
- package/static/assets/RegistryTab-BE2-yKLC.js +11 -0
- package/static/assets/SparqlWorkspace-RwPj2YK7.js +26 -0
- package/static/assets/TimelinePanel-DmtiXgmN.js +36 -0
- package/static/assets/VocabularyWorkspace-YF9waL5N.js +44 -0
- package/static/assets/book-open-BqEIxx1e.js +6 -0
- package/static/assets/chevron-right-CiEuNwKq.js +11 -0
- package/static/assets/circle-check-BToWKwbO.js +6 -0
- package/static/assets/copy-BfQXGhHP.js +6 -0
- package/static/assets/download-gQOgYz3q.js +6 -0
- package/static/assets/external-link-DqNu6T-f.js +6 -0
- package/static/assets/file-text-Bbz-r0FQ.js +6 -0
- package/static/assets/git-branch-B8yDcUSY.js +6 -0
- package/static/assets/graph-vendor-CUDaIrp7.js +312 -0
- package/static/assets/graphTheme-DNKLxzKZ.js +6 -0
- package/static/assets/hero-B5GXDCBc.png +0 -0
- package/static/assets/index-Bt8w1Tz_.css +1 -0
- package/static/assets/index-C00aFykz.js +9 -0
- package/static/assets/index-DHWWI-uw.js +1730 -0
- package/static/assets/index-Dli_3Iwd.js +22 -0
- package/static/assets/index-DtC_GayB.js +16 -0
- package/static/assets/index-MVDNL3vw.js +127 -0
- package/static/assets/info-vaffNQOD.js +6 -0
- package/static/assets/layers-Cct6D_wK.js +6 -0
- package/static/assets/loader-circle-C8NUmtFx.js +6 -0
- package/static/assets/neighborhoodPanelPlugin-w1yJlm0A.js +1 -0
- package/static/assets/pencil-DYlEC6ri.js +6 -0
- package/static/assets/play-G1gyOk2a.js +6 -0
- package/static/assets/queries-CYtdSB4H.js +1 -0
- package/static/assets/query-vendor-BqVbYexz.js +34 -0
- package/static/assets/refresh-cw-CL9OXZ89.js +6 -0
- package/static/assets/registryStore-MVt_NgVV.js +1 -0
- package/static/assets/style-BZV40eAE.css +1 -0
- package/static/assets/style-D8TqSrGs.js +15 -0
- package/static/assets/temporalOverlayPlugin-CRhLa1FU.js +1 -0
- package/static/assets/timeline-vendor-WyY-t3YQ.js +97 -0
- package/static/assets/timeline-vendor-lG7zfUUF.css +1 -0
- package/static/assets/trash-2-DiZNV6Gj.js +6 -0
- package/static/assets/x-DpqMYq96.js +6 -0
- package/static/favicon-32.png +0 -0
- package/static/favicon.svg +13 -0
- package/static/icons.svg +24 -0
- package/static/index.html +18 -0
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* vis-data
|
|
3
|
+
* http://visjs.org/
|
|
4
|
+
*
|
|
5
|
+
* Manage unstructured data using DataSet. Add, update, and remove data, and listen for changes in the data.
|
|
6
|
+
*
|
|
7
|
+
* @version 8.0.3
|
|
8
|
+
* @date 2025-09-10T16:22:00.613Z
|
|
9
|
+
*
|
|
10
|
+
* @copyright (c) 2011-2017 Almende B.V, http://almende.com
|
|
11
|
+
* @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
|
|
12
|
+
*
|
|
13
|
+
* @license
|
|
14
|
+
* vis.js is dual licensed under both
|
|
15
|
+
*
|
|
16
|
+
* 1. The Apache 2.0 License
|
|
17
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
18
|
+
*
|
|
19
|
+
* and
|
|
20
|
+
*
|
|
21
|
+
* 2. The MIT License
|
|
22
|
+
* http://opensource.org/licenses/MIT
|
|
23
|
+
*
|
|
24
|
+
* vis.js may be distributed under either license.
|
|
25
|
+
*/var vw=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ne(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var xl={exports:{}},mw={},bs,gw;function Ye(){if(gw)return bs;gw=1;var t=function(e){return e&&e.Math===Math&&e};return bs=t(typeof globalThis=="object"&&globalThis)||t(typeof window=="object"&&window)||t(typeof self=="object"&&self)||t(typeof vw=="object"&&vw)||t(typeof bs=="object"&&bs)||(function(){return this})()||Function("return this")(),bs}var Pl,yw;function ve(){return yw||(yw=1,Pl=function(t){try{return!!t()}catch{return!0}}),Pl}var Dl,bw;function Js(){if(bw)return Dl;bw=1;var t=ve();return Dl=!t(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),Dl}var Il,_w;function Io(){if(_w)return Il;_w=1;var t=Js(),e=Function.prototype,r=e.apply,i=e.call;return Il=typeof Reflect=="object"&&Reflect.apply||(t?i.bind(r):function(){return i.apply(r,arguments)}),Il}var Cl,ww;function Ee(){if(ww)return Cl;ww=1;var t=Js(),e=Function.prototype,r=e.call,i=t&&e.bind.bind(r,r);return Cl=t?i:function(n){return function(){return r.apply(n,arguments)}},Cl}var ql,Sw;function jr(){if(Sw)return ql;Sw=1;var t=Ee(),e=t({}.toString),r=t("".slice);return ql=function(i){return r(e(i),8,-1)},ql}var kl,Ow;function LF(){if(Ow)return kl;Ow=1;var t=jr(),e=Ee();return kl=function(r){if(t(r)==="Function")return e(r)},kl}var Al,Ew;function et(){if(Ew)return Al;Ew=1;var t=typeof document=="object"&&document.all;return Al=typeof t>"u"&&t!==void 0?function(e){return typeof e=="function"||e===t}:function(e){return typeof e=="function"},Al}var Ml={},Nl,Tw;function Ue(){if(Tw)return Nl;Tw=1;var t=ve();return Nl=!t(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Nl}var Fl,$w;function Rt(){if($w)return Fl;$w=1;var t=Js(),e=Function.prototype.call;return Fl=t?e.bind(e):function(){return e.apply(e,arguments)},Fl}var Ll={},Rw;function D_(){if(Rw)return Ll;Rw=1;var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,r=e&&!t.call({1:2},1);return Ll.f=r?function(n){var s=e(this,n);return!!s&&s.enumerable}:t,Ll}var jl,xw;function ea(){return xw||(xw=1,jl=function(t,e){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:e}}),jl}var Gl,Pw;function Co(){if(Pw)return Gl;Pw=1;var t=Ee(),e=ve(),r=jr(),i=Object,n=t("".split);return Gl=e(function(){return!i("z").propertyIsEnumerable(0)})?function(s){return r(s)==="String"?n(s,""):i(s)}:i,Gl}var Bl,Dw;function ta(){return Dw||(Dw=1,Bl=function(t){return t==null}),Bl}var Wl,Iw;function Wi(){if(Iw)return Wl;Iw=1;var t=ta(),e=TypeError;return Wl=function(r){if(t(r))throw new e("Can't call method on "+r);return r},Wl}var Hl,Cw;function br(){if(Cw)return Hl;Cw=1;var t=Co(),e=Wi();return Hl=function(r){return t(e(r))},Hl}var Yl,qw;function yt(){if(qw)return Yl;qw=1;var t=et();return Yl=function(e){return typeof e=="object"?e!==null:t(e)},Yl}var Ul,kw;function Ke(){return kw||(kw=1,Ul={}),Ul}var Vl,Aw;function Ft(){if(Aw)return Vl;Aw=1;var t=Ke(),e=Ye(),r=et(),i=function(n){return r(n)?n:void 0};return Vl=function(n,s){return arguments.length<2?i(t[n])||i(e[n]):t[n]&&t[n][s]||e[n]&&e[n][s]},Vl}var zl,Mw;function Xe(){if(Mw)return zl;Mw=1;var t=Ee();return zl=t({}.isPrototypeOf),zl}var Kl,Nw;function Nn(){if(Nw)return Kl;Nw=1;var t=Ye(),e=t.navigator,r=e&&e.userAgent;return Kl=r?String(r):"",Kl}var Xl,Fw;function ra(){if(Fw)return Xl;Fw=1;var t=Ye(),e=Nn(),r=t.process,i=t.Deno,n=r&&r.versions||i&&i.version,s=n&&n.v8,a,o;return s&&(a=s.split("."),o=a[0]>0&&a[0]<4?1:+(a[0]+a[1])),!o&&e&&(a=e.match(/Edge\/(\d+)/),(!a||a[1]>=74)&&(a=e.match(/Chrome\/(\d+)/),a&&(o=+a[1]))),Xl=o,Xl}var Zl,Lw;function Fn(){if(Lw)return Zl;Lw=1;var t=ra(),e=ve(),r=Ye(),i=r.String;return Zl=!!Object.getOwnPropertySymbols&&!e(function(){var n=Symbol("symbol detection");return!i(n)||!(Object(n)instanceof Symbol)||!Symbol.sham&&t&&t<41}),Zl}var Ql,jw;function jF(){if(jw)return Ql;jw=1;var t=Fn();return Ql=t&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Ql}var Jl,Gw;function ia(){if(Gw)return Jl;Gw=1;var t=Ft(),e=et(),r=Xe(),i=jF(),n=Object;return Jl=i?function(s){return typeof s=="symbol"}:function(s){var a=t("Symbol");return e(a)&&r(a.prototype,n(s))},Jl}var eu,Bw;function Ln(){if(Bw)return eu;Bw=1;var t=String;return eu=function(e){try{return t(e)}catch{return"Object"}},eu}var tu,Ww;function _r(){if(Ww)return tu;Ww=1;var t=et(),e=Ln(),r=TypeError;return tu=function(i){if(t(i))return i;throw new r(e(i)+" is not a function")},tu}var ru,Hw;function I_(){if(Hw)return ru;Hw=1;var t=_r(),e=ta();return ru=function(r,i){var n=r[i];return e(n)?void 0:t(n)},ru}var iu,Yw;function NG(){if(Yw)return iu;Yw=1;var t=Rt(),e=et(),r=yt(),i=TypeError;return iu=function(n,s){var a,o;if(s==="string"&&e(a=n.toString)&&!r(o=t(a,n))||e(a=n.valueOf)&&!r(o=t(a,n))||s!=="string"&&e(a=n.toString)&&!r(o=t(a,n)))return o;throw new i("Can't convert object to primitive value")},iu}var nu={exports:{}},su,Uw;function jn(){return Uw||(Uw=1,su=!0),su}var au,Vw;function FG(){if(Vw)return au;Vw=1;var t=Ye(),e=Object.defineProperty;return au=function(r,i){try{e(t,r,{value:i,configurable:!0,writable:!0})}catch{t[r]=i}return i},au}var zw;function C_(){if(zw)return nu.exports;zw=1;var t=jn(),e=Ye(),r=FG(),i="__core-js_shared__",n=nu.exports=e[i]||r(i,{});return(n.versions||(n.versions=[])).push({version:"3.44.0",mode:t?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE",source:"https://github.com/zloirock/core-js"}),nu.exports}var ou,Kw;function Gn(){if(Kw)return ou;Kw=1;var t=C_();return ou=function(e,r){return t[e]||(t[e]=r||{})},ou}var lu,Xw;function Kt(){if(Xw)return lu;Xw=1;var t=Wi(),e=Object;return lu=function(r){return e(t(r))},lu}var uu,Zw;function tt(){if(Zw)return uu;Zw=1;var t=Ee(),e=Kt(),r=t({}.hasOwnProperty);return uu=Object.hasOwn||function(n,s){return r(e(n),s)},uu}var cu,Qw;function qo(){if(Qw)return cu;Qw=1;var t=Ee(),e=0,r=Math.random(),i=t(1.1.toString);return cu=function(n){return"Symbol("+(n===void 0?"":n)+")_"+i(++e+r,36)},cu}var hu,Jw;function rt(){if(Jw)return hu;Jw=1;var t=Ye(),e=Gn(),r=tt(),i=qo(),n=Fn(),s=jF(),a=t.Symbol,o=e("wks"),l=s?a.for||a:a&&a.withoutSetter||i;return hu=function(u){return r(o,u)||(o[u]=n&&r(a,u)?a[u]:l("Symbol."+u)),o[u]},hu}var du,eS;function GF(){if(eS)return du;eS=1;var t=Rt(),e=yt(),r=ia(),i=I_(),n=NG(),s=rt(),a=TypeError,o=s("toPrimitive");return du=function(l,u){if(!e(l)||r(l))return l;var c=i(l,o),h;if(c){if(u===void 0&&(u="default"),h=t(c,l,u),!e(h)||r(h))return h;throw new a("Can't convert object to primitive value")}return u===void 0&&(u="number"),n(l,u)},du}var fu,tS;function q_(){if(tS)return fu;tS=1;var t=GF(),e=ia();return fu=function(r){var i=t(r,"string");return e(i)?i:i+""},fu}var pu,rS;function BF(){if(rS)return pu;rS=1;var t=Ye(),e=yt(),r=t.document,i=e(r)&&e(r.createElement);return pu=function(n){return i?r.createElement(n):{}},pu}var vu,iS;function WF(){if(iS)return vu;iS=1;var t=Ue(),e=ve(),r=BF();return vu=!t&&!e(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!==7}),vu}var nS;function ko(){if(nS)return Ml;nS=1;var t=Ue(),e=Rt(),r=D_(),i=ea(),n=br(),s=q_(),a=tt(),o=WF(),l=Object.getOwnPropertyDescriptor;return Ml.f=t?l:function(c,h){if(c=n(c),h=s(h),o)try{return l(c,h)}catch{}if(a(c,h))return i(!e(r.f,c,h),c[h])},Ml}var mu,sS;function LG(){if(sS)return mu;sS=1;var t=ve(),e=et(),r=/#|\.prototype\./,i=function(l,u){var c=s[n(l)];return c===o?!0:c===a?!1:e(u)?t(u):!!u},n=i.normalize=function(l){return String(l).replace(r,".").toLowerCase()},s=i.data={},a=i.NATIVE="N",o=i.POLYFILL="P";return mu=i,mu}var gu,aS;function na(){if(aS)return gu;aS=1;var t=LF(),e=_r(),r=Js(),i=t(t.bind);return gu=function(n,s){return e(n),s===void 0?n:r?i(n,s):function(){return n.apply(s,arguments)}},gu}var yu={},bu,oS;function HF(){if(oS)return bu;oS=1;var t=Ue(),e=ve();return bu=t&&e(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),bu}var _u,lS;function Gr(){if(lS)return _u;lS=1;var t=yt(),e=String,r=TypeError;return _u=function(i){if(t(i))return i;throw new r(e(i)+" is not an object")},_u}var uS;function Xt(){if(uS)return yu;uS=1;var t=Ue(),e=WF(),r=HF(),i=Gr(),n=q_(),s=TypeError,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,l="enumerable",u="configurable",c="writable";return yu.f=t?r?function(d,f,p){if(i(d),f=n(f),i(p),typeof d=="function"&&f==="prototype"&&"value"in p&&c in p&&!p[c]){var v=o(d,f);v&&v[c]&&(d[f]=p.value,p={configurable:u in p?p[u]:v[u],enumerable:l in p?p[l]:v[l],writable:!1})}return a(d,f,p)}:a:function(d,f,p){if(i(d),f=n(f),i(p),e)try{return a(d,f,p)}catch{}if("get"in p||"set"in p)throw new s("Accessors not supported");return"value"in p&&(d[f]=p.value),d},yu}var wu,cS;function Bn(){if(cS)return wu;cS=1;var t=Ue(),e=Xt(),r=ea();return wu=t?function(i,n,s){return e.f(i,n,r(1,s))}:function(i,n,s){return i[n]=s,i},wu}var Su,hS;function Z(){if(hS)return Su;hS=1;var t=Ye(),e=Io(),r=LF(),i=et(),n=ko().f,s=LG(),a=Ke(),o=na(),l=Bn(),u=tt(),c=function(h){var d=function(f,p,v){if(this instanceof d){switch(arguments.length){case 0:return new h;case 1:return new h(f);case 2:return new h(f,p)}return new h(f,p,v)}return e(h,this,arguments)};return d.prototype=h.prototype,d};return Su=function(h,d){var f=h.target,p=h.global,v=h.stat,m=h.proto,y=p?t:v?t[f]:t[f]&&t[f].prototype,g=p?a:a[f]||l(a,f,{})[f],O=g.prototype,_,w,E,$,b,T,R,x,P;for($ in d)_=s(p?$:f+(v?".":"#")+$,h.forced),w=!_&&y&&u(y,$),T=g[$],w&&(h.dontCallGetSet?(P=n(y,$),R=P&&P.value):R=y[$]),b=w&&R?R:d[$],!(!_&&!m&&typeof T==typeof b)&&(h.bind&&w?x=o(b,t):h.wrap&&w?x=c(b):m&&i(b)?x=r(b):x=b,(h.sham||b&&b.sham||T&&T.sham)&&l(x,"sham",!0),l(g,$,x),m&&(E=f+"Prototype",u(a,E)||l(a,E,{}),l(a[E],$,b),h.real&&O&&(_||!O[$])&&l(O,$,b)))},Su}var dS;function jG(){if(dS)return mw;dS=1;var t=Z(),e=Ue(),r=Xt().f;return t({target:"Object",stat:!0,forced:Object.defineProperty!==r,sham:!e},{defineProperty:r}),mw}var fS;function GG(){if(fS)return xl.exports;fS=1,jG();var t=Ke(),e=t.Object,r=xl.exports=function(n,s,a){return e.defineProperty(n,s,a)};return e.defineProperty.sham&&(r.sham=!0),xl.exports}var Ou,pS;function YF(){if(pS)return Ou;pS=1;var t=GG();return Ou=t,Ou}var Eu,vS;function BG(){if(vS)return Eu;vS=1;var t=YF();return Eu=t,Eu}var Tu,mS;function WG(){if(mS)return Tu;mS=1;var t=BG();return Tu=t,Tu}var $u,gS;function HG(){return gS||(gS=1,$u=WG()),$u}var YG=HG(),UG=ne(YG),yS={},Ru,bS;function ei(){if(bS)return Ru;bS=1;var t=jr();return Ru=Array.isArray||function(r){return t(r)==="Array"},Ru}var xu,_S;function VG(){if(_S)return xu;_S=1;var t=Math.ceil,e=Math.floor;return xu=Math.trunc||function(i){var n=+i;return(n>0?e:t)(n)},xu}var Pu,wS;function Wn(){if(wS)return Pu;wS=1;var t=VG();return Pu=function(e){var r=+e;return r!==r||r===0?0:t(r)},Pu}var Du,SS;function UF(){if(SS)return Du;SS=1;var t=Wn(),e=Math.min;return Du=function(r){var i=t(r);return i>0?e(i,9007199254740991):0},Du}var Iu,OS;function wr(){if(OS)return Iu;OS=1;var t=UF();return Iu=function(e){return t(e.length)},Iu}var Cu,ES;function k_(){if(ES)return Cu;ES=1;var t=TypeError,e=9007199254740991;return Cu=function(r){if(r>e)throw t("Maximum allowed index exceeded");return r},Cu}var qu,TS;function Ao(){if(TS)return qu;TS=1;var t=Ue(),e=Xt(),r=ea();return qu=function(i,n,s){t?e.f(i,n,r(0,s)):i[n]=s},qu}var ku,$S;function A_(){if($S)return ku;$S=1;var t=rt(),e=t("toStringTag"),r={};return r[e]="z",ku=String(r)==="[object z]",ku}var Au,RS;function ti(){if(RS)return Au;RS=1;var t=A_(),e=et(),r=jr(),i=rt(),n=i("toStringTag"),s=Object,a=r((function(){return arguments})())==="Arguments",o=function(l,u){try{return l[u]}catch{}};return Au=t?r:function(l){var u,c,h;return l===void 0?"Undefined":l===null?"Null":typeof(c=o(u=s(l),n))=="string"?c:a?r(u):(h=r(u))==="Object"&&e(u.callee)?"Arguments":h},Au}var Mu,xS;function zG(){if(xS)return Mu;xS=1;var t=Ee(),e=et(),r=C_(),i=t(Function.toString);return e(r.inspectSource)||(r.inspectSource=function(n){return i(n)}),Mu=r.inspectSource,Mu}var Nu,PS;function VF(){if(PS)return Nu;PS=1;var t=Ee(),e=ve(),r=et(),i=ti(),n=Ft(),s=zG(),a=function(){},o=n("Reflect","construct"),l=/^\s*(?:class|function)\b/,u=t(l.exec),c=!l.test(a),h=function(p){if(!r(p))return!1;try{return o(a,[],p),!0}catch{return!1}},d=function(p){if(!r(p))return!1;switch(i(p)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return c||!!u(l,s(p))}catch{return!0}};return d.sham=!0,Nu=!o||e(function(){var f;return h(h.call)||!h(Object)||!h(function(){f=!0})||f})?d:h,Nu}var Fu,DS;function KG(){if(DS)return Fu;DS=1;var t=ei(),e=VF(),r=yt(),i=rt(),n=i("species"),s=Array;return Fu=function(a){var o;return t(a)&&(o=a.constructor,e(o)&&(o===s||t(o.prototype))?o=void 0:r(o)&&(o=o[n],o===null&&(o=void 0))),o===void 0?s:o},Fu}var Lu,IS;function Mo(){if(IS)return Lu;IS=1;var t=KG();return Lu=function(e,r){return new(t(e))(r===0?0:r)},Lu}var ju,CS;function sa(){if(CS)return ju;CS=1;var t=ve(),e=rt(),r=ra(),i=e("species");return ju=function(n){return r>=51||!t(function(){var s=[],a=s.constructor={};return a[i]=function(){return{foo:1}},s[n](Boolean).foo!==1})},ju}var qS;function zF(){if(qS)return yS;qS=1;var t=Z(),e=ve(),r=ei(),i=yt(),n=Kt(),s=wr(),a=k_(),o=Ao(),l=Mo(),u=sa(),c=rt(),h=ra(),d=c("isConcatSpreadable"),f=h>=51||!e(function(){var m=[];return m[d]=!1,m.concat()[0]!==m}),p=function(m){if(!i(m))return!1;var y=m[d];return y!==void 0?!!y:r(m)},v=!f||!u("concat");return t({target:"Array",proto:!0,arity:1,forced:v},{concat:function(y){var g=n(this),O=l(g,0),_=0,w,E,$,b,T;for(w=-1,$=arguments.length;w<$;w++)if(T=w===-1?g:arguments[w],p(T))for(b=s(T),a(_+b),E=0;E<b;E++,_++)E in T&&o(O,_,T[E]);else a(_+1),o(O,_++,T);return O.length=_,O}}),yS}var kS={},AS={},Gu,MS;function ri(){if(MS)return Gu;MS=1;var t=ti(),e=String;return Gu=function(r){if(t(r)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return e(r)},Gu}var Bu={},Wu,NS;function M_(){if(NS)return Wu;NS=1;var t=Wn(),e=Math.max,r=Math.min;return Wu=function(i,n){var s=t(i);return s<0?e(s+n,0):r(s,n)},Wu}var Hu,FS;function XG(){if(FS)return Hu;FS=1;var t=br(),e=M_(),r=wr(),i=function(n){return function(s,a,o){var l=t(s),u=r(l);if(u===0)return!n&&-1;var c=e(o,u),h;if(n&&a!==a){for(;u>c;)if(h=l[c++],h!==h)return!0}else for(;u>c;c++)if((n||c in l)&&l[c]===a)return n||c||0;return!n&&-1}};return Hu={includes:i(!0),indexOf:i(!1)},Hu}var Yu,LS;function aa(){return LS||(LS=1,Yu={}),Yu}var Uu,jS;function KF(){if(jS)return Uu;jS=1;var t=Ee(),e=tt(),r=br(),i=XG().indexOf,n=aa(),s=t([].push);return Uu=function(a,o){var l=r(a),u=0,c=[],h;for(h in l)!e(n,h)&&e(l,h)&&s(c,h);for(;o.length>u;)e(l,h=o[u++])&&(~i(c,h)||s(c,h));return c},Uu}var Vu,GS;function N_(){return GS||(GS=1,Vu=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),Vu}var zu,BS;function No(){if(BS)return zu;BS=1;var t=KF(),e=N_();return zu=Object.keys||function(i){return t(i,e)},zu}var WS;function F_(){if(WS)return Bu;WS=1;var t=Ue(),e=HF(),r=Xt(),i=Gr(),n=br(),s=No();return Bu.f=t&&!e?Object.defineProperties:function(o,l){i(o);for(var u=n(l),c=s(l),h=c.length,d=0,f;h>d;)r.f(o,f=c[d++],u[f]);return o},Bu}var Ku,HS;function ZG(){if(HS)return Ku;HS=1;var t=Ft();return Ku=t("document","documentElement"),Ku}var Xu,YS;function Fo(){if(YS)return Xu;YS=1;var t=Gn(),e=qo(),r=t("keys");return Xu=function(i){return r[i]||(r[i]=e(i))},Xu}var Zu,US;function oa(){if(US)return Zu;US=1;var t=Gr(),e=F_(),r=N_(),i=aa(),n=ZG(),s=BF(),a=Fo(),o=">",l="<",u="prototype",c="script",h=a("IE_PROTO"),d=function(){},f=function(g){return l+c+o+g+l+"/"+c+o},p=function(g){g.write(f("")),g.close();var O=g.parentWindow.Object;return g=null,O},v=function(){var g=s("iframe"),O="java"+c+":",_;return g.style.display="none",n.appendChild(g),g.src=String(O),_=g.contentWindow.document,_.open(),_.write(f("document.F=Object")),_.close(),_.F},m,y=function(){try{m=new ActiveXObject("htmlfile")}catch{}y=typeof document<"u"?document.domain&&m?p(m):v():p(m);for(var g=r.length;g--;)delete y[u][r[g]];return y()};return i[h]=!0,Zu=Object.create||function(O,_){var w;return O!==null?(d[u]=t(O),w=new d,d[u]=null,w[h]=O):w=y(),_===void 0?w:e.f(w,_)},Zu}var Qu={},VS;function Lo(){if(VS)return Qu;VS=1;var t=KF(),e=N_(),r=e.concat("length","prototype");return Qu.f=Object.getOwnPropertyNames||function(n){return t(n,r)},Qu}var Ju={},ec,zS;function Hn(){if(zS)return ec;zS=1;var t=Ee();return ec=t([].slice),ec}var KS;function XF(){if(KS)return Ju;KS=1;var t=jr(),e=br(),r=Lo().f,i=Hn(),n=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(a){try{return r(a)}catch{return i(n)}};return Ju.f=function(o){return n&&t(o)==="Window"?s(o):r(e(o))},Ju}var tc={},XS;function jo(){return XS||(XS=1,tc.f=Object.getOwnPropertySymbols),tc}var rc,ZS;function la(){if(ZS)return rc;ZS=1;var t=Bn();return rc=function(e,r,i,n){return n&&n.enumerable?e[r]=i:t(e,r,i),e},rc}var ic,QS;function L_(){if(QS)return ic;QS=1;var t=Xt();return ic=function(e,r,i){return t.f(e,r,i)},ic}var nc={},JS;function Go(){if(JS)return nc;JS=1;var t=rt();return nc.f=t,nc}var sc,e0;function Ce(){if(e0)return sc;e0=1;var t=Ke(),e=tt(),r=Go(),i=Xt().f;return sc=function(n){var s=t.Symbol||(t.Symbol={});e(s,n)||i(s,n,{value:r.f(n)})},sc}var ac,t0;function ZF(){if(t0)return ac;t0=1;var t=Rt(),e=Ft(),r=rt(),i=la();return ac=function(){var n=e("Symbol"),s=n&&n.prototype,a=s&&s.valueOf,o=r("toPrimitive");s&&!s[o]&&i(s,o,function(l){return t(a,this)},{arity:1})},ac}var oc,r0;function QG(){if(r0)return oc;r0=1;var t=A_(),e=ti();return oc=t?{}.toString:function(){return"[object "+e(this)+"]"},oc}var lc,i0;function Hi(){if(i0)return lc;i0=1;var t=A_(),e=Xt().f,r=Bn(),i=tt(),n=QG(),s=rt(),a=s("toStringTag");return lc=function(o,l,u,c){var h=u?o:o&&o.prototype;h&&(i(h,a)||e(h,a,{configurable:!0,value:l}),c&&!t&&r(h,"toString",n))},lc}var uc,n0;function JG(){if(n0)return uc;n0=1;var t=Ye(),e=et(),r=t.WeakMap;return uc=e(r)&&/native code/.test(String(r)),uc}var cc,s0;function ua(){if(s0)return cc;s0=1;var t=JG(),e=Ye(),r=yt(),i=Bn(),n=tt(),s=C_(),a=Fo(),o=aa(),l="Object already initialized",u=e.TypeError,c=e.WeakMap,h,d,f,p=function(g){return f(g)?d(g):h(g,{})},v=function(g){return function(O){var _;if(!r(O)||(_=d(O)).type!==g)throw new u("Incompatible receiver, "+g+" required");return _}};if(t||s.state){var m=s.state||(s.state=new c);m.get=m.get,m.has=m.has,m.set=m.set,h=function(g,O){if(m.has(g))throw new u(l);return O.facade=g,m.set(g,O),O},d=function(g){return m.get(g)||{}},f=function(g){return m.has(g)}}else{var y=a("state");o[y]=!0,h=function(g,O){if(n(g,y))throw new u(l);return O.facade=g,i(g,y,O),O},d=function(g){return n(g,y)?g[y]:{}},f=function(g){return n(g,y)}}return cc={set:h,get:d,has:f,enforce:p,getterFor:v},cc}var hc,a0;function Yn(){if(a0)return hc;a0=1;var t=na(),e=Ee(),r=Co(),i=Kt(),n=wr(),s=Mo(),a=e([].push),o=function(l){var u=l===1,c=l===2,h=l===3,d=l===4,f=l===6,p=l===7,v=l===5||f;return function(m,y,g,O){for(var _=i(m),w=r(_),E=n(w),$=t(y,g),b=0,T=O||s,R=u?T(m,E):c||p?T(m,0):void 0,x,P;E>b;b++)if((v||b in w)&&(x=w[b],P=$(x,b,_),l))if(u)R[b]=P;else if(P)switch(l){case 3:return!0;case 5:return x;case 6:return b;case 2:a(R,x)}else switch(l){case 4:return!1;case 7:a(R,x)}return f?-1:h||d?d:R}};return hc={forEach:o(0),map:o(1),filter:o(2),some:o(3),every:o(4),find:o(5),findIndex:o(6),filterReject:o(7)},hc}var o0;function eB(){if(o0)return AS;o0=1;var t=Z(),e=Ye(),r=Rt(),i=Ee(),n=jn(),s=Ue(),a=Fn(),o=ve(),l=tt(),u=Xe(),c=Gr(),h=br(),d=q_(),f=ri(),p=ea(),v=oa(),m=No(),y=Lo(),g=XF(),O=jo(),_=ko(),w=Xt(),E=F_(),$=D_(),b=la(),T=L_(),R=Gn(),x=Fo(),P=aa(),I=qo(),j=rt(),K=Go(),G=Ce(),B=ZF(),A=Hi(),U=ua(),me=Yn().forEach,W=x("hidden"),se="Symbol",Se="prototype",oe=U.set,st=U.getterFor(se),Oe=Object[Se],ht=e.Symbol,nr=ht&&ht[Se],Ol=e.RangeError,El=e.TypeError,ci=e.QObject,cs=_.f,dt=w.f,hs=g.f,Tl=$.f,ds=i([].push),ze=R("symbols"),sr=R("op-symbols"),$l=R("wks"),hi=!ci||!ci[Se]||!ci[Se].findChild,fs=function(V,k,F){var L=cs(Oe,k);L&&delete Oe[k],dt(V,k,F),L&&V!==Oe&&dt(Oe,k,L)},di=s&&o(function(){return v(dt({},"a",{get:function(){return dt(this,"a",{value:7}).a}})).a!==7})?fs:dt,fi=function(V,k){var F=ze[V]=v(nr);return oe(F,{type:se,tag:V,description:k}),s||(F.description=k),F},Tr=function(k,F,L){k===Oe&&Tr(sr,F,L),c(k);var z=d(F);return c(L),l(ze,z)?(L.enumerable?(l(k,W)&&k[W][z]&&(k[W][z]=!1),L=v(L,{enumerable:p(0,!1)})):(l(k,W)||dt(k,W,p(1,v(null))),k[W][z]=!0),di(k,z,L)):dt(k,z,L)},pi=function(k,F){c(k);var L=h(F),z=m(L).concat(ms(L));return me(z,function(pe){(!s||r(vi,L,pe))&&Tr(k,pe,L[pe])}),k},Rl=function(k,F){return F===void 0?v(k):pi(v(k),F)},vi=function(k){var F=d(k),L=r(Tl,this,F);return this===Oe&&l(ze,F)&&!l(sr,F)?!1:L||!l(this,F)||!l(ze,F)||l(this,W)&&this[W][F]?L:!0},ps=function(k,F){var L=h(k),z=d(F);if(!(L===Oe&&l(ze,z)&&!l(sr,z))){var pe=cs(L,z);return pe&&l(ze,z)&&!(l(L,W)&&L[W][z])&&(pe.enumerable=!0),pe}},vs=function(k){var F=hs(h(k)),L=[];return me(F,function(z){!l(ze,z)&&!l(P,z)&&ds(L,z)}),L},ms=function(V){var k=V===Oe,F=hs(k?sr:h(V)),L=[];return me(F,function(z){l(ze,z)&&(!k||l(Oe,z))&&ds(L,ze[z])}),L};return a||(ht=function(){if(u(nr,this))throw new El("Symbol is not a constructor");var k=!arguments.length||arguments[0]===void 0?void 0:f(arguments[0]),F=I(k),L=function(z){var pe=this===void 0?e:this;pe===Oe&&r(L,sr,z),l(pe,W)&&l(pe[W],F)&&(pe[W][F]=!1);var gs=p(1,z);try{di(pe,F,gs)}catch(ys){if(!(ys instanceof Ol))throw ys;fs(pe,F,gs)}};return s&&hi&&di(Oe,F,{configurable:!0,set:L}),fi(F,k)},nr=ht[Se],b(nr,"toString",function(){return st(this).tag}),b(ht,"withoutSetter",function(V){return fi(I(V),V)}),$.f=vi,w.f=Tr,E.f=pi,_.f=ps,y.f=g.f=vs,O.f=ms,K.f=function(V){return fi(j(V),V)},s&&(T(nr,"description",{configurable:!0,get:function(){return st(this).description}}),n||b(Oe,"propertyIsEnumerable",vi,{unsafe:!0}))),t({global:!0,constructor:!0,wrap:!0,forced:!a,sham:!a},{Symbol:ht}),me(m($l),function(V){G(V)}),t({target:se,stat:!0,forced:!a},{useSetter:function(){hi=!0},useSimple:function(){hi=!1}}),t({target:"Object",stat:!0,forced:!a,sham:!s},{create:Rl,defineProperty:Tr,defineProperties:pi,getOwnPropertyDescriptor:ps}),t({target:"Object",stat:!0,forced:!a},{getOwnPropertyNames:vs}),B(),A(ht,se),P[W]=!0,AS}var l0={},dc,u0;function QF(){if(u0)return dc;u0=1;var t=Fn();return dc=t&&!!Symbol.for&&!!Symbol.keyFor,dc}var c0;function tB(){if(c0)return l0;c0=1;var t=Z(),e=Ft(),r=tt(),i=ri(),n=Gn(),s=QF(),a=n("string-to-symbol-registry"),o=n("symbol-to-string-registry");return t({target:"Symbol",stat:!0,forced:!s},{for:function(l){var u=i(l);if(r(a,u))return a[u];var c=e("Symbol")(u);return a[u]=c,o[c]=u,c}}),l0}var h0={},d0;function rB(){if(d0)return h0;d0=1;var t=Z(),e=tt(),r=ia(),i=Ln(),n=Gn(),s=QF(),a=n("symbol-to-string-registry");return t({target:"Symbol",stat:!0,forced:!s},{keyFor:function(l){if(!r(l))throw new TypeError(i(l)+" is not a symbol");if(e(a,l))return a[l]}}),h0}var f0={},fc,p0;function iB(){if(p0)return fc;p0=1;var t=Ee(),e=ei(),r=et(),i=jr(),n=ri(),s=t([].push);return fc=function(a){if(r(a))return a;if(e(a)){for(var o=a.length,l=[],u=0;u<o;u++){var c=a[u];typeof c=="string"?s(l,c):(typeof c=="number"||i(c)==="Number"||i(c)==="String")&&s(l,n(c))}var h=l.length,d=!0;return function(f,p){if(d)return d=!1,p;if(e(this))return p;for(var v=0;v<h;v++)if(l[v]===f)return p}}},fc}var v0;function JF(){if(v0)return f0;v0=1;var t=Z(),e=Ft(),r=Io(),i=Rt(),n=Ee(),s=ve(),a=et(),o=ia(),l=Hn(),u=iB(),c=Fn(),h=String,d=e("JSON","stringify"),f=n(/./.exec),p=n("".charAt),v=n("".charCodeAt),m=n("".replace),y=n(1.1.toString),g=/[\uD800-\uDFFF]/g,O=/^[\uD800-\uDBFF]$/,_=/^[\uDC00-\uDFFF]$/,w=!c||s(function(){var T=e("Symbol")("stringify detection");return d([T])!=="[null]"||d({a:T})!=="{}"||d(Object(T))!=="{}"}),E=s(function(){return d("\uDF06\uD834")!=='"\\udf06\\ud834"'||d("\uDEAD")!=='"\\udead"'}),$=function(T,R){var x=l(arguments),P=u(R);if(!(!a(P)&&(T===void 0||o(T))))return x[1]=function(I,j){if(a(P)&&(j=i(P,this,h(I),j)),!o(j))return j},r(d,null,x)},b=function(T,R,x){var P=p(x,R-1),I=p(x,R+1);return f(O,T)&&!f(_,I)||f(_,T)&&!f(O,P)?"\\u"+y(v(T,0),16):T};return d&&t({target:"JSON",stat:!0,arity:3,forced:w||E},{stringify:function(R,x,P){var I=l(arguments),j=r(w?$:d,null,I);return E&&typeof j=="string"?m(j,g,b):j}}),f0}var m0={},g0;function nB(){if(g0)return m0;g0=1;var t=Z(),e=Fn(),r=ve(),i=jo(),n=Kt(),s=!e||r(function(){i.f(1)});return t({target:"Object",stat:!0,forced:s},{getOwnPropertySymbols:function(o){var l=i.f;return l?l(n(o)):[]}}),m0}var y0;function eL(){return y0||(y0=1,eB(),tB(),rB(),JF(),nB()),kS}var b0={},_0;function tL(){if(_0)return b0;_0=1;var t=Ce();return t("asyncDispose"),b0}var w0={},S0;function sB(){if(S0)return w0;S0=1;var t=Ce();return t("asyncIterator"),w0}var O0={},E0;function rL(){if(E0)return O0;E0=1;var t=Ce();return t("dispose"),O0}var T0={},$0;function aB(){if($0)return T0;$0=1;var t=Ce();return t("hasInstance"),T0}var R0={},x0;function oB(){if(x0)return R0;x0=1;var t=Ce();return t("isConcatSpreadable"),R0}var P0={},D0;function iL(){if(D0)return P0;D0=1;var t=Ce();return t("iterator"),P0}var I0={},C0;function lB(){if(C0)return I0;C0=1;var t=Ce();return t("match"),I0}var q0={},k0;function uB(){if(k0)return q0;k0=1;var t=Ce();return t("matchAll"),q0}var A0={},M0;function cB(){if(M0)return A0;M0=1;var t=Ce();return t("replace"),A0}var N0={},F0;function hB(){if(F0)return N0;F0=1;var t=Ce();return t("search"),N0}var L0={},j0;function dB(){if(j0)return L0;j0=1;var t=Ce();return t("species"),L0}var G0={},B0;function fB(){if(B0)return G0;B0=1;var t=Ce();return t("split"),G0}var W0={},H0;function nL(){if(H0)return W0;H0=1;var t=Ce(),e=ZF();return t("toPrimitive"),e(),W0}var Y0={},U0;function pB(){if(U0)return Y0;U0=1;var t=Ft(),e=Ce(),r=Hi();return e("toStringTag"),r(t("Symbol"),"Symbol"),Y0}var V0={},z0;function vB(){if(z0)return V0;z0=1;var t=Ce();return t("unscopables"),V0}var K0={},X0;function mB(){if(X0)return K0;X0=1;var t=Ye(),e=Hi();return e(t.JSON,"JSON",!0),K0}var pc,Z0;function gB(){if(Z0)return pc;Z0=1,zF(),eL(),tL(),sB(),rL(),aB(),oB(),iL(),lB(),uB(),cB(),hB(),dB(),fB(),nL(),pB(),vB(),mB();var t=Ke();return pc=t.Symbol,pc}var Q0={},vc,J0;function sL(){return J0||(J0=1,vc=function(){}),vc}var mc,eO;function Un(){return eO||(eO=1,mc={}),mc}var gc,tO;function yB(){if(tO)return gc;tO=1;var t=Ue(),e=tt(),r=Function.prototype,i=t&&Object.getOwnPropertyDescriptor,n=e(r,"name"),s=n&&(function(){}).name==="something",a=n&&(!t||t&&i(r,"name").configurable);return gc={EXISTS:n,PROPER:s,CONFIGURABLE:a},gc}var yc,rO;function bB(){if(rO)return yc;rO=1;var t=ve();return yc=!t(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),yc}var bc,iO;function aL(){if(iO)return bc;iO=1;var t=tt(),e=et(),r=Kt(),i=Fo(),n=bB(),s=i("IE_PROTO"),a=Object,o=a.prototype;return bc=n?a.getPrototypeOf:function(l){var u=r(l);if(t(u,s))return u[s];var c=u.constructor;return e(c)&&u instanceof c?c.prototype:u instanceof a?o:null},bc}var _c,nO;function oL(){if(nO)return _c;nO=1;var t=ve(),e=et(),r=yt(),i=oa(),n=aL(),s=la(),a=rt(),o=jn(),l=a("iterator"),u=!1,c,h,d;[].keys&&(d=[].keys(),"next"in d?(h=n(n(d)),h!==Object.prototype&&(c=h)):u=!0);var f=!r(c)||t(function(){var p={};return c[l].call(p)!==p});return f?c={}:o&&(c=i(c)),e(c[l])||s(c,l,function(){return this}),_c={IteratorPrototype:c,BUGGY_SAFARI_ITERATORS:u},_c}var wc,sO;function _B(){if(sO)return wc;sO=1;var t=oL().IteratorPrototype,e=oa(),r=ea(),i=Hi(),n=Un(),s=function(){return this};return wc=function(a,o,l,u){var c=o+" Iterator";return a.prototype=e(t,{next:r(+!u,l)}),i(a,c,!1,!0),n[c]=s,a},wc}var Sc,aO;function wB(){if(aO)return Sc;aO=1;var t=Ee(),e=_r();return Sc=function(r,i,n){try{return t(e(Object.getOwnPropertyDescriptor(r,i)[n]))}catch{}},Sc}var Oc,oO;function SB(){if(oO)return Oc;oO=1;var t=yt();return Oc=function(e){return t(e)||e===null},Oc}var Ec,lO;function OB(){if(lO)return Ec;lO=1;var t=SB(),e=String,r=TypeError;return Ec=function(i){if(t(i))return i;throw new r("Can't set "+e(i)+" as a prototype")},Ec}var Tc,uO;function EB(){if(uO)return Tc;uO=1;var t=wB(),e=yt(),r=Wi(),i=OB();return Tc=Object.setPrototypeOf||("__proto__"in{}?(function(){var n=!1,s={},a;try{a=t(Object.prototype,"__proto__","set"),a(s,[]),n=s instanceof Array}catch{}return function(l,u){return r(l),i(u),e(l)&&(n?a(l,u):l.__proto__=u),l}})():void 0),Tc}var $c,cO;function j_(){if(cO)return $c;cO=1;var t=Z(),e=Rt(),r=jn(),i=yB(),n=et(),s=_B(),a=aL(),o=EB(),l=Hi(),u=Bn(),c=la(),h=rt(),d=Un(),f=oL(),p=i.PROPER,v=i.CONFIGURABLE,m=f.IteratorPrototype,y=f.BUGGY_SAFARI_ITERATORS,g=h("iterator"),O="keys",_="values",w="entries",E=function(){return this};return $c=function($,b,T,R,x,P,I){s(T,b,R);var j=function(oe){if(oe===x&&U)return U;if(!y&&oe&&oe in B)return B[oe];switch(oe){case O:return function(){return new T(this,oe)};case _:return function(){return new T(this,oe)};case w:return function(){return new T(this,oe)}}return function(){return new T(this)}},K=b+" Iterator",G=!1,B=$.prototype,A=B[g]||B["@@iterator"]||x&&B[x],U=!y&&A||j(x),me=b==="Array"&&B.entries||A,W,se,Se;if(me&&(W=a(me.call(new $)),W!==Object.prototype&&W.next&&(!r&&a(W)!==m&&(o?o(W,m):n(W[g])||c(W,g,E)),l(W,K,!0,!0),r&&(d[K]=E))),p&&x===_&&A&&A.name!==_&&(!r&&v?u(B,"name",_):(G=!0,U=function(){return e(A,this)})),x)if(se={values:j(_),keys:P?U:j(O),entries:j(w)},I)for(Se in se)(y||G||!(Se in B))&&c(B,Se,se[Se]);else t({target:b,proto:!0,forced:y||G},se);return(!r||I)&&B[g]!==U&&c(B,g,U,{name:x}),d[b]=U,se},$c}var Rc,hO;function G_(){return hO||(hO=1,Rc=function(t,e){return{value:t,done:e}}),Rc}var xc,dO;function ii(){if(dO)return xc;dO=1;var t=br(),e=sL(),r=Un(),i=ua(),n=Xt().f,s=j_(),a=G_(),o=jn(),l=Ue(),u="Array Iterator",c=i.set,h=i.getterFor(u);xc=s(Array,"Array",function(f,p){c(this,{type:u,target:t(f),index:0,kind:p})},function(){var f=h(this),p=f.target,v=f.index++;if(!p||v>=p.length)return f.target=null,a(void 0,!0);switch(f.kind){case"keys":return a(v,!1);case"values":return a(p[v],!1)}return a([v,p[v]],!1)},"values");var d=r.Arguments=r.Array;if(e("keys"),e("values"),e("entries"),!o&&l&&d.name!=="values")try{n(d,"name",{value:"values"})}catch{}return xc}var Pc,fO;function TB(){return fO||(fO=1,Pc={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}),Pc}var pO;function ni(){if(pO)return Q0;pO=1,ii();var t=TB(),e=Ye(),r=Hi(),i=Un();for(var n in t)r(e[n],n),i[n]=i.Array;return Q0}var Dc,vO;function lL(){if(vO)return Dc;vO=1;var t=gB();return ni(),Dc=t,Dc}var mO={},gO;function $B(){if(gO)return mO;gO=1;var t=rt(),e=Xt().f,r=t("metadata"),i=Function.prototype;return i[r]===void 0&&e(i,r,{value:null}),mO}var yO={},bO;function RB(){return bO||(bO=1,tL()),yO}var _O={},wO;function xB(){return wO||(wO=1,rL()),_O}var SO={},OO;function PB(){if(OO)return SO;OO=1;var t=Ce();return t("metadata"),SO}var Ic,EO;function DB(){if(EO)return Ic;EO=1;var t=lL();return $B(),RB(),xB(),PB(),Ic=t,Ic}var TO={},Cc,$O;function uL(){if($O)return Cc;$O=1;var t=Ft(),e=Ee(),r=t("Symbol"),i=r.keyFor,n=e(r.prototype.valueOf);return Cc=r.isRegisteredSymbol||function(a){try{return i(n(a))!==void 0}catch{return!1}},Cc}var RO;function IB(){if(RO)return TO;RO=1;var t=Z(),e=uL();return t({target:"Symbol",stat:!0},{isRegisteredSymbol:e}),TO}var xO={},qc,PO;function cL(){if(PO)return qc;PO=1;for(var t=Gn(),e=Ft(),r=Ee(),i=ia(),n=rt(),s=e("Symbol"),a=s.isWellKnownSymbol,o=e("Object","getOwnPropertyNames"),l=r(s.prototype.valueOf),u=t("wks"),c=0,h=o(s),d=h.length;c<d;c++)try{var f=h[c];i(s[f])&&n(f)}catch{}return qc=function(v){if(a&&a(v))return!0;try{for(var m=l(v),y=0,g=o(u),O=g.length;y<O;y++)if(u[g[y]]==m)return!0}catch{}return!1},qc}var DO;function CB(){if(DO)return xO;DO=1;var t=Z(),e=cL();return t({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:e}),xO}var IO={},CO;function qB(){if(CO)return IO;CO=1;var t=Ce();return t("customMatcher"),IO}var qO={},kO;function kB(){if(kO)return qO;kO=1;var t=Ce();return t("observable"),qO}var AO={},MO;function AB(){if(MO)return AO;MO=1;var t=Z(),e=uL();return t({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:e}),AO}var NO={},FO;function MB(){if(FO)return NO;FO=1;var t=Z(),e=cL();return t({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:e}),NO}var LO={},jO;function NB(){if(jO)return LO;jO=1;var t=Ce();return t("matcher"),LO}var GO={},BO;function FB(){if(BO)return GO;BO=1;var t=Ce();return t("metadataKey"),GO}var WO={},HO;function LB(){if(HO)return WO;HO=1;var t=Ce();return t("patternMatch"),WO}var YO={},UO;function jB(){if(UO)return YO;UO=1;var t=Ce();return t("replaceAll"),YO}var kc,VO;function GB(){if(VO)return kc;VO=1;var t=DB();return IB(),CB(),qB(),kB(),AB(),MB(),NB(),FB(),LB(),jB(),kc=t,kc}var Ac,zO;function BB(){return zO||(zO=1,Ac=GB()),Ac}var WB=BB(),Wa=ne(WB),KO={},Mc,XO;function HB(){if(XO)return Mc;XO=1;var t=Ee(),e=Wn(),r=ri(),i=Wi(),n=t("".charAt),s=t("".charCodeAt),a=t("".slice),o=function(l){return function(u,c){var h=r(i(u)),d=e(c),f=h.length,p,v;return d<0||d>=f?l?"":void 0:(p=s(h,d),p<55296||p>56319||d+1===f||(v=s(h,d+1))<56320||v>57343?l?n(h,d):p:l?a(h,d,d+2):(p-55296<<10)+(v-56320)+65536)}};return Mc={codeAt:o(!1),charAt:o(!0)},Mc}var ZO;function Bo(){if(ZO)return KO;ZO=1;var t=HB().charAt,e=ri(),r=ua(),i=j_(),n=G_(),s="String Iterator",a=r.set,o=r.getterFor(s);return i(String,"String",function(l){a(this,{type:s,string:e(l),index:0})},function(){var u=o(this),c=u.string,h=u.index,d;return h>=c.length?n(void 0,!0):(d=t(c,h),u.index+=d.length,n(d,!1))}),KO}var Nc,QO;function YB(){if(QO)return Nc;QO=1,ii(),Bo(),iL();var t=Go();return Nc=t.f("iterator"),Nc}var Fc,JO;function hL(){if(JO)return Fc;JO=1;var t=YB();return ni(),Fc=t,Fc}var Lc,eE;function UB(){if(eE)return Lc;eE=1;var t=hL();return Lc=t,Lc}var jc,tE;function VB(){if(tE)return jc;tE=1;var t=UB();return jc=t,jc}var Gc,rE;function zB(){return rE||(rE=1,Gc=VB()),Gc}var KB=zB(),XB=ne(KB);function Ms(t){"@babel/helpers - typeof";return Ms=typeof Wa=="function"&&typeof XB=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Wa=="function"&&e.constructor===Wa&&e!==Wa.prototype?"symbol":typeof e},Ms(t)}var Bc,iE;function ZB(){if(iE)return Bc;iE=1,nL();var t=Go();return Bc=t.f("toPrimitive"),Bc}var Wc,nE;function QB(){if(nE)return Wc;nE=1;var t=ZB();return Wc=t,Wc}var Hc,sE;function JB(){if(sE)return Hc;sE=1;var t=QB();return Hc=t,Hc}var Yc,aE;function eW(){if(aE)return Yc;aE=1;var t=JB();return Yc=t,Yc}var Uc,oE;function tW(){return oE||(oE=1,Uc=eW()),Uc}var rW=tW(),iW=ne(rW);function nW(t,e){if(Ms(t)!="object"||!t)return t;var r=t[iW];if(r!==void 0){var i=r.call(t,e);if(Ms(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function sW(t){var e=nW(t,"string");return Ms(e)=="symbol"?e:e+""}function Yt(t,e,r){return(e=sW(e))in t?UG(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var lE={},Vc,uE;function aW(){if(uE)return Vc;uE=1;var t=Ee(),e=_r(),r=yt(),i=tt(),n=Hn(),s=Js(),a=Function,o=t([].concat),l=t([].join),u={},c=function(h,d,f){if(!i(u,d)){for(var p=[],v=0;v<d;v++)p[v]="a["+v+"]";u[d]=a("C,a","return new C("+l(p,",")+")")}return u[d](h,f)};return Vc=s?a.bind:function(d){var f=e(this),p=f.prototype,v=n(arguments,1),m=function(){var g=o(v,n(arguments));return this instanceof m?c(f,g.length,g):f.apply(d,g)};return r(p)&&(m.prototype=p),m},Vc}var cE;function oW(){if(cE)return lE;cE=1;var t=Z(),e=aW();return t({target:"Function",proto:!0,forced:Function.bind!==e},{bind:e}),lE}var zc,hE;function bt(){if(hE)return zc;hE=1;var t=Ye(),e=Ke();return zc=function(r,i){var n=e[r+"Prototype"],s=n&&n[i];if(s)return s;var a=t[r],o=a&&a.prototype;return o&&o[i]},zc}var Kc,dE;function lW(){if(dE)return Kc;dE=1,oW();var t=bt();return Kc=t("Function","bind"),Kc}var Xc,fE;function uW(){if(fE)return Xc;fE=1;var t=Xe(),e=lW(),r=Function.prototype;return Xc=function(i){var n=i.bind;return i===r||t(r,i)&&n===r.bind?e:n},Xc}var Zc,pE;function cW(){if(pE)return Zc;pE=1;var t=uW();return Zc=t,Zc}var Qc,vE;function hW(){return vE||(vE=1,Qc=cW()),Qc}var dW=hW(),Ti=ne(dW),mE={},Jc,gE;function fW(){if(gE)return Jc;gE=1;var t=_r(),e=Kt(),r=Co(),i=wr(),n=TypeError,s="Reduce of empty array with no initial value",a=function(o){return function(l,u,c,h){var d=e(l),f=r(d),p=i(d);if(t(u),p===0&&c<2)throw new n(s);var v=o?p-1:0,m=o?-1:1;if(c<2)for(;;){if(v in f){h=f[v],v+=m;break}if(v+=m,o?v<0:p<=v)throw new n(s)}for(;o?v>=0:p>v;v+=m)v in f&&(h=u(h,f[v],v,d));return h}};return Jc={left:a(!1),right:a(!0)},Jc}var eh,yE;function Wo(){if(yE)return eh;yE=1;var t=ve();return eh=function(e,r){var i=[][e];return!!i&&t(function(){i.call(null,r||function(){return 1},1)})},eh}var th,bE;function dL(){if(bE)return th;bE=1;var t=Ye(),e=Nn(),r=jr(),i=function(n){return e.slice(0,n.length)===n};return th=(function(){return i("Bun/")?"BUN":i("Cloudflare-Workers")?"CLOUDFLARE":i("Deno/")?"DENO":i("Node.js/")?"NODE":t.Bun&&typeof Bun.version=="string"?"BUN":t.Deno&&typeof Deno.version=="object"?"DENO":r(t.process)==="process"?"NODE":t.window&&t.document?"BROWSER":"REST"})(),th}var rh,_E;function pW(){if(_E)return rh;_E=1;var t=dL();return rh=t==="NODE",rh}var wE;function vW(){if(wE)return mE;wE=1;var t=Z(),e=fW().left,r=Wo(),i=ra(),n=pW(),s=!n&&i>79&&i<83,a=s||!r("reduce");return t({target:"Array",proto:!0,forced:a},{reduce:function(l){var u=arguments.length;return e(this,l,u,u>1?arguments[1]:void 0)}}),mE}var ih,SE;function mW(){if(SE)return ih;SE=1,vW();var t=bt();return ih=t("Array","reduce"),ih}var nh,OE;function gW(){if(OE)return nh;OE=1;var t=Xe(),e=mW(),r=Array.prototype;return nh=function(i){var n=i.reduce;return i===r||t(r,i)&&n===r.reduce?e:n},nh}var sh,EE;function yW(){if(EE)return sh;EE=1;var t=gW();return sh=t,sh}var ah,TE;function bW(){return TE||(TE=1,ah=yW()),ah}var _W=bW(),fL=ne(_W),$E={},RE;function wW(){if(RE)return $E;RE=1;var t=Z(),e=Yn().filter,r=sa(),i=r("filter");return t({target:"Array",proto:!0,forced:!i},{filter:function(s){return e(this,s,arguments.length>1?arguments[1]:void 0)}}),$E}var oh,xE;function SW(){if(xE)return oh;xE=1,wW();var t=bt();return oh=t("Array","filter"),oh}var lh,PE;function OW(){if(PE)return lh;PE=1;var t=Xe(),e=SW(),r=Array.prototype;return lh=function(i){var n=i.filter;return i===r||t(r,i)&&n===r.filter?e:n},lh}var uh,DE;function EW(){if(DE)return uh;DE=1;var t=OW();return uh=t,uh}var ch,IE;function TW(){return IE||(IE=1,ch=EW()),ch}var $W=TW(),Ze=ne($W),CE={},qE;function RW(){if(qE)return CE;qE=1;var t=Z(),e=Yn().map,r=sa(),i=r("map");return t({target:"Array",proto:!0,forced:!i},{map:function(s){return e(this,s,arguments.length>1?arguments[1]:void 0)}}),CE}var hh,kE;function xW(){if(kE)return hh;kE=1,RW();var t=bt();return hh=t("Array","map"),hh}var dh,AE;function PW(){if(AE)return dh;AE=1;var t=Xe(),e=xW(),r=Array.prototype;return dh=function(i){var n=i.map;return i===r||t(r,i)&&n===r.map?e:n},dh}var fh,ME;function DW(){if(ME)return fh;ME=1;var t=PW();return fh=t,fh}var ph,NE;function IW(){return NE||(NE=1,ph=DW()),ph}var CW=IW(),Dt=ne(CW),FE={},vh,LE;function qW(){if(LE)return vh;LE=1;var t=ei(),e=wr(),r=k_(),i=na(),n=function(s,a,o,l,u,c,h,d){for(var f=u,p=0,v=h?i(h,d):!1,m,y;p<l;)p in o&&(m=v?v(o[p],p,a):o[p],c>0&&t(m)?(y=e(m),f=n(s,a,m,y,f,c-1)-1):(r(f+1),s[f]=m),f++),p++;return f};return vh=n,vh}var jE;function kW(){if(jE)return FE;jE=1;var t=Z(),e=qW(),r=_r(),i=Kt(),n=wr(),s=Mo();return t({target:"Array",proto:!0},{flatMap:function(o){var l=i(this),u=n(l),c;return r(o),c=s(l,0),c.length=e(c,l,l,u,0,1,o,arguments.length>1?arguments[1]:void 0),c}}),FE}var GE={},BE;function AW(){if(BE)return GE;BE=1;var t=sL();return t("flatMap"),GE}var mh,WE;function MW(){if(WE)return mh;WE=1,kW(),AW();var t=bt();return mh=t("Array","flatMap"),mh}var gh,HE;function NW(){if(HE)return gh;HE=1;var t=Xe(),e=MW(),r=Array.prototype;return gh=function(i){var n=i.flatMap;return i===r||t(r,i)&&n===r.flatMap?e:n},gh}var yh,YE;function FW(){if(YE)return yh;YE=1;var t=NW();return yh=t,yh}var bh,UE;function LW(){return UE||(UE=1,bh=FW()),bh}var jW=LW(),GW=ne(jW);function BW(t){return new HW(t)}class WW{constructor(e,r,i){var n,s,a;Yt(this,"_listeners",{add:Ti(n=this._add).call(n,this),remove:Ti(s=this._remove).call(s,this),update:Ti(a=this._update).call(a,this)}),this._source=e,this._transformers=r,this._target=i}all(){return this._target.update(this._transformItems(this._source.get())),this}start(){return this._source.on("add",this._listeners.add),this._source.on("remove",this._listeners.remove),this._source.on("update",this._listeners.update),this}stop(){return this._source.off("add",this._listeners.add),this._source.off("remove",this._listeners.remove),this._source.off("update",this._listeners.update),this}_transformItems(e){var r;return fL(r=this._transformers).call(r,(i,n)=>n(i),e)}_add(e,r){r!=null&&this._target.add(this._transformItems(this._source.get(r.items)))}_update(e,r){r!=null&&this._target.update(this._transformItems(this._source.get(r.items)))}_remove(e,r){r!=null&&this._target.remove(this._transformItems(r.oldData))}}class HW{constructor(e){Yt(this,"_transformers",[]),this._source=e}filter(e){return this._transformers.push(r=>Ze(r).call(r,e)),this}map(e){return this._transformers.push(r=>Dt(r).call(r,e)),this}flatMap(e){return this._transformers.push(r=>GW(r).call(r,e)),this}to(e){return new WW(this._source,this._transformers,e)}}var _h,VE;function YW(){return VE||(VE=1,_h=lL()),_h}var UW=YW(),VW=ne(UW),zE={},KE;function zW(){if(KE)return zE;KE=1;var t=Z(),e=ei(),r=VF(),i=yt(),n=M_(),s=wr(),a=br(),o=Ao(),l=rt(),u=sa(),c=Hn(),h=u("slice"),d=l("species"),f=Array,p=Math.max;return t({target:"Array",proto:!0,forced:!h},{slice:function(m,y){var g=a(this),O=s(g),_=n(m,O),w=n(y===void 0?O:y,O),E,$,b;if(e(g)&&(E=g.constructor,r(E)&&(E===f||e(E.prototype))?E=void 0:i(E)&&(E=E[d],E===null&&(E=void 0)),E===f||E===void 0))return c(g,_,w);for($=new(E===void 0?f:E)(p(w-_,0)),b=0;_<w;_++,b++)_ in g&&o($,b,g[_]);return $.length=b,$}}),zE}var wh,XE;function KW(){if(XE)return wh;XE=1,zW();var t=bt();return wh=t("Array","slice"),wh}var Sh,ZE;function XW(){if(ZE)return Sh;ZE=1;var t=Xe(),e=KW(),r=Array.prototype;return Sh=function(i){var n=i.slice;return i===r||t(r,i)&&n===r.slice?e:n},Sh}var Oh,QE;function ZW(){if(QE)return Oh;QE=1;var t=XW();return Oh=t,Oh}var Eh,JE;function QW(){return JE||(JE=1,Eh=ZW()),Eh}var JW=QW(),eH=ne(JW),eT={},Th,tT;function pL(){if(tT)return Th;tT=1;var t=Ft(),e=Ee(),r=Lo(),i=jo(),n=Gr(),s=e([].concat);return Th=t("Reflect","ownKeys")||function(o){var l=r.f(n(o)),u=i.f;return u?s(l,u(o)):l},Th}var rT;function tH(){if(rT)return eT;rT=1;var t=Z(),e=pL();return t({target:"Reflect",stat:!0},{ownKeys:e}),eT}var $h,iT;function rH(){if(iT)return $h;iT=1,tH();var t=Ke();return $h=t.Reflect.ownKeys,$h}var Rh,nT;function iH(){if(nT)return Rh;nT=1;var t=rH();return Rh=t,Rh}var xh,sT;function nH(){return sT||(sT=1,xh=iH()),xh}var sH=nH(),vL=ne(sH),aT={},oT;function aH(){if(oT)return aT;oT=1;var t=Z(),e=ei();return t({target:"Array",stat:!0},{isArray:e}),aT}var Ph,lT;function oH(){if(lT)return Ph;lT=1,aH();var t=Ke();return Ph=t.Array.isArray,Ph}var Dh,uT;function lH(){if(uT)return Dh;uT=1;var t=oH();return Dh=t,Dh}var Ih,cT;function uH(){return cT||(cT=1,Ih=lH()),Ih}var cH=uH(),ar=ne(cH),hT={},dT;function hH(){if(dT)return hT;dT=1;var t=Z(),e=Kt(),r=No(),i=ve(),n=i(function(){r(1)});return t({target:"Object",stat:!0,forced:n},{keys:function(a){return r(e(a))}}),hT}var Ch,fT;function dH(){if(fT)return Ch;fT=1,hH();var t=Ke();return Ch=t.Object.keys,Ch}var qh,pT;function fH(){if(pT)return qh;pT=1;var t=dH();return qh=t,qh}var kh,vT;function pH(){return vT||(vT=1,kh=fH()),kh}var vH=pH(),B_=ne(vH),mT={},Ah,gT;function mH(){if(gT)return Ah;gT=1;var t=Yn().forEach,e=Wo(),r=e("forEach");return Ah=r?[].forEach:function(n){return t(this,n,arguments.length>1?arguments[1]:void 0)},Ah}var yT;function gH(){if(yT)return mT;yT=1;var t=Z(),e=mH();return t({target:"Array",proto:!0,forced:[].forEach!==e},{forEach:e}),mT}var Mh,bT;function yH(){if(bT)return Mh;bT=1,gH();var t=bt();return Mh=t("Array","forEach"),Mh}var Nh,_T;function bH(){if(_T)return Nh;_T=1;var t=yH();return Nh=t,Nh}var Fh,wT;function _H(){if(wT)return Fh;wT=1;var t=ti(),e=tt(),r=Xe(),i=bH(),n=Array.prototype,s={DOMTokenList:!0,NodeList:!0};return Fh=function(a){var o=a.forEach;return a===n||r(n,a)&&o===n.forEach||e(s,t(a))?i:o},Fh}var Lh,ST;function wH(){return ST||(ST=1,Lh=_H()),Lh}var SH=wH(),Jr=ne(SH),OT={},ET;function OH(){if(ET)return OT;ET=1;var t=Z(),e=Ee(),r=ei(),i=e([].reverse),n=[1,2];return t({target:"Array",proto:!0,forced:String(n)===String(n.reverse())},{reverse:function(){return r(this)&&(this.length=this.length),i(this)}}),OT}var jh,TT;function EH(){if(TT)return jh;TT=1,OH();var t=bt();return jh=t("Array","reverse"),jh}var Gh,$T;function TH(){if($T)return Gh;$T=1;var t=Xe(),e=EH(),r=Array.prototype;return Gh=function(i){var n=i.reverse;return i===r||t(r,i)&&n===r.reverse?e:n},Gh}var Bh,RT;function $H(){if(RT)return Bh;RT=1;var t=TH();return Bh=t,Bh}var Wh,xT;function RH(){return xT||(xT=1,Wh=$H()),Wh}var xH=RH(),PH=ne(xH),PT={},Hh,DT;function DH(){if(DT)return Hh;DT=1;var t=Ue(),e=ei(),r=TypeError,i=Object.getOwnPropertyDescriptor,n=t&&!(function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(s){return s instanceof TypeError}})();return Hh=n?function(s,a){if(e(s)&&!i(s,"length").writable)throw new r("Cannot set read only .length");return s.length=a}:function(s,a){return s.length=a},Hh}var Yh,IT;function mL(){if(IT)return Yh;IT=1;var t=Ln(),e=TypeError;return Yh=function(r,i){if(!delete r[i])throw new e("Cannot delete property "+t(i)+" of "+t(r))},Yh}var CT;function IH(){if(CT)return PT;CT=1;var t=Z(),e=Kt(),r=M_(),i=Wn(),n=wr(),s=DH(),a=k_(),o=Mo(),l=Ao(),u=mL(),c=sa(),h=c("splice"),d=Math.max,f=Math.min;return t({target:"Array",proto:!0,forced:!h},{splice:function(v,m){var y=e(this),g=n(y),O=r(v,g),_=arguments.length,w,E,$,b,T,R;for(_===0?w=E=0:_===1?(w=0,E=g-O):(w=_-2,E=f(d(i(m),0),g-O)),a(g+w-E),$=o(y,E),b=0;b<E;b++)T=O+b,T in y&&l($,b,y[T]);if($.length=E,w<E){for(b=O;b<g-E;b++)T=b+E,R=b+w,T in y?y[R]=y[T]:u(y,R);for(b=g;b>g-E+w;b--)u(y,b-1)}else if(w>E)for(b=g-E;b>O;b--)T=b+E-1,R=b+w-1,T in y?y[R]=y[T]:u(y,R);for(b=0;b<w;b++)y[b+O]=arguments[b+2];return s(y,g-E+w),$}}),PT}var Uh,qT;function CH(){if(qT)return Uh;qT=1,IH();var t=bt();return Uh=t("Array","splice"),Uh}var Vh,kT;function qH(){if(kT)return Vh;kT=1;var t=Xe(),e=CH(),r=Array.prototype;return Vh=function(i){var n=i.splice;return i===r||t(r,i)&&n===r.splice?e:n},Vh}var zh,AT;function kH(){if(AT)return zh;AT=1;var t=qH();return zh=t,zh}var Kh,MT;function AH(){return MT||(MT=1,Kh=kH()),Kh}var MH=AH(),gL=ne(MH),NT={},Xh,FT;function NH(){if(FT)return Xh;FT=1;var t=Ue(),e=Ee(),r=Rt(),i=ve(),n=No(),s=jo(),a=D_(),o=Kt(),l=Co(),u=Object.assign,c=Object.defineProperty,h=e([].concat);return Xh=!u||i(function(){if(t&&u({b:1},u(c({},"a",{enumerable:!0,get:function(){c(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var d={},f={},p=Symbol("assign detection"),v="abcdefghijklmnopqrst";return d[p]=7,v.split("").forEach(function(m){f[m]=m}),u({},d)[p]!==7||n(u({},f)).join("")!==v})?function(f,p){for(var v=o(f),m=arguments.length,y=1,g=s.f,O=a.f;m>y;)for(var _=l(arguments[y++]),w=g?h(n(_),g(_)):n(_),E=w.length,$=0,b;E>$;)b=w[$++],(!t||r(O,_,b))&&(v[b]=_[b]);return v}:u,Xh}var LT;function FH(){if(LT)return NT;LT=1;var t=Z(),e=NH();return t({target:"Object",stat:!0,arity:2,forced:Object.assign!==e},{assign:e}),NT}var Zh,jT;function LH(){if(jT)return Zh;jT=1,FH();var t=Ke();return Zh=t.Object.assign,Zh}var Qh,GT;function jH(){if(GT)return Qh;GT=1;var t=LH();return Qh=t,Qh}var Jh,BT;function GH(){return BT||(BT=1,Jh=jH()),Jh}var BH=GH(),yL=ne(BH),ed,WT;function WH(){if(WT)return ed;WT=1,zF();var t=bt();return ed=t("Array","concat"),ed}var td,HT;function HH(){if(HT)return td;HT=1;var t=Xe(),e=WH(),r=Array.prototype;return td=function(i){var n=i.concat;return i===r||t(r,i)&&n===r.concat?e:n},td}var rd,YT;function YH(){if(YT)return rd;YT=1;var t=HH();return rd=t,rd}var id,UT;function UH(){return UT||(UT=1,id=YH()),id}var VH=UH(),zH=ne(VH),VT={},zT;function KH(){if(zT)return VT;zT=1;var t=Z(),e=Ue(),r=oa();return t({target:"Object",stat:!0,sham:!e},{create:r}),VT}var nd,KT;function XH(){if(KT)return nd;KT=1,KH();var t=Ke(),e=t.Object;return nd=function(i,n){return e.create(i,n)},nd}var sd,XT;function ZH(){if(XT)return sd;XT=1;var t=XH();return sd=t,sd}var ad,ZT;function QH(){return ZT||(ZT=1,ad=ZH()),ad}var JH=QH(),eY=ne(JH),QT={},od,JT;function tY(){if(JT)return od;JT=1;var t=Wn(),e=ri(),r=Wi(),i=RangeError;return od=function(s){var a=e(r(this)),o="",l=t(s);if(l<0||l===1/0)throw new i("Wrong number of repetitions");for(;l>0;(l>>>=1)&&(a+=a))l&1&&(o+=a);return o},od}var ld,e$;function rY(){if(e$)return ld;e$=1;var t=Ee(),e=UF(),r=ri(),i=tY(),n=Wi(),s=t(i),a=t("".slice),o=Math.ceil,l=function(u){return function(c,h,d){var f=r(n(c)),p=e(h),v=f.length,m=d===void 0?" ":r(d),y,g;return p<=v||m===""?f:(y=p-v,g=s(m,o(y/m.length)),g.length>y&&(g=a(g,0,y)),u?f+g:g+f)}};return ld={start:l(!1),end:l(!0)},ld}var ud,t$;function iY(){if(t$)return ud;t$=1;var t=Ee(),e=ve(),r=rY().start,i=RangeError,n=isFinite,s=Math.abs,a=Date.prototype,o=a.toISOString,l=t(a.getTime),u=t(a.getUTCDate),c=t(a.getUTCFullYear),h=t(a.getUTCHours),d=t(a.getUTCMilliseconds),f=t(a.getUTCMinutes),p=t(a.getUTCMonth),v=t(a.getUTCSeconds);return ud=e(function(){return o.call(new Date(-5e13-1))!=="0385-07-25T07:06:39.999Z"})||!e(function(){o.call(new Date(NaN))})?function(){if(!n(l(this)))throw new i("Invalid time value");var y=this,g=c(y),O=d(y),_=g<0?"-":g>9999?"+":"";return _+r(s(g),_?6:4,0)+"-"+r(p(y)+1,2,0)+"-"+r(u(y),2,0)+"T"+r(h(y),2,0)+":"+r(f(y),2,0)+":"+r(v(y),2,0)+"."+r(O,3,0)+"Z"}:o,ud}var r$;function nY(){if(r$)return QT;r$=1;var t=Z(),e=Rt(),r=Kt(),i=GF(),n=iY(),s=jr(),a=ve(),o=a(function(){return new Date(NaN).toJSON()!==null||e(Date.prototype.toJSON,{toISOString:function(){return 1}})!==1});return t({target:"Date",proto:!0,forced:o},{toJSON:function(u){var c=r(this),h=i(c,"number");return typeof h=="number"&&!isFinite(h)?null:!("toISOString"in c)&&s(c)==="Date"?e(n,c):c.toISOString()}}),QT}var cd,i$;function sY(){if(i$)return cd;i$=1,nY(),JF();var t=Ke(),e=Io();return t.JSON||(t.JSON={stringify:JSON.stringify}),cd=function(i,n,s){return e(t.JSON.stringify,null,arguments)},cd}var hd,n$;function aY(){if(n$)return hd;n$=1;var t=sY();return hd=t,hd}var dd,s$;function oY(){return s$||(s$=1,dd=aY()),dd}var lY=oY(),uY=ne(lY),a$={},o$={},fd,l$;function cY(){if(l$)return fd;l$=1;var t=TypeError;return fd=function(e,r){if(e<r)throw new t("Not enough arguments");return e},fd}var pd,u$;function bL(){if(u$)return pd;u$=1;var t=Ye(),e=Io(),r=et(),i=dL(),n=Nn(),s=Hn(),a=cY(),o=t.Function,l=/MSIE .\./.test(n)||i==="BUN"&&(function(){var u=t.Bun.version.split(".");return u.length<3||u[0]==="0"&&(u[1]<3||u[1]==="3"&&u[2]==="0")})();return pd=function(u,c){var h=c?2:1;return l?function(d,f){var p=a(arguments.length,1)>h,v=r(d)?d:o(d),m=p?s(arguments,h):[],y=p?function(){e(v,this,m)}:v;return c?u(y,f):u(y)}:u},pd}var c$;function hY(){if(c$)return o$;c$=1;var t=Z(),e=Ye(),r=bL(),i=r(e.setInterval,!0);return t({global:!0,bind:!0,forced:e.setInterval!==i},{setInterval:i}),o$}var h$={},d$;function dY(){if(d$)return h$;d$=1;var t=Z(),e=Ye(),r=bL(),i=r(e.setTimeout,!0);return t({global:!0,bind:!0,forced:e.setTimeout!==i},{setTimeout:i}),h$}var f$;function fY(){return f$||(f$=1,hY(),dY()),a$}var vd,p$;function pY(){if(p$)return vd;p$=1,fY();var t=Ke();return vd=t.setTimeout,vd}var md,v$;function vY(){return v$||(v$=1,md=pY()),md}var mY=vY(),gY=ne(mY),gd={exports:{}},m$;function yY(){return m$||(m$=1,(function(t){function e(i){if(i)return r(i);this._callbacks=new Map}function r(i){return Object.assign(i,e.prototype),i._callbacks=new Map,i}e.prototype.on=function(i,n){const s=this._callbacks.get(i)??[];return s.push(n),this._callbacks.set(i,s),this},e.prototype.once=function(i,n){const s=(...a)=>{this.off(i,s),n.apply(this,a)};return s.fn=n,this.on(i,s),this},e.prototype.off=function(i,n){if(i===void 0&&n===void 0)return this._callbacks.clear(),this;if(n===void 0)return this._callbacks.delete(i),this;const s=this._callbacks.get(i);if(s){for(const[a,o]of s.entries())if(o===n||o.fn===n){s.splice(a,1);break}s.length===0?this._callbacks.delete(i):this._callbacks.set(i,s)}return this},e.prototype.emit=function(i,...n){const s=this._callbacks.get(i);if(s){const a=[...s];for(const o of a)o.apply(this,n)}return this},e.prototype.listeners=function(i){return this._callbacks.get(i)??[]},e.prototype.listenerCount=function(i){if(i)return this.listeners(i).length;let n=0;for(const s of this._callbacks.values())n+=s.length;return n},e.prototype.hasListeners=function(i){return this.listenerCount(i)>0},e.prototype.addEventListener=e.prototype.on,e.prototype.removeListener=e.prototype.off,e.prototype.removeEventListener=e.prototype.off,e.prototype.removeAllListeners=e.prototype.off,t.exports=e})(gd)),gd.exports}var bY=yY(),_Y=ne(bY);/*! Hammer.JS - v2.0.17-rc - 2019-12-16
|
|
26
|
+
* http://naver.github.io/egjs
|
|
27
|
+
*
|
|
28
|
+
* Forked By Naver egjs
|
|
29
|
+
* Copyright (c) hammerjs
|
|
30
|
+
* Licensed under the MIT license */function lr(){return lr=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},lr.apply(this,arguments)}function Zt(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function Ha(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var t_;typeof Object.assign!="function"?t_=function(e){if(e==null)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(e),i=1;i<arguments.length;i++){var n=arguments[i];if(n!=null)for(var s in n)n.hasOwnProperty(s)&&(r[s]=n[s])}return r}:t_=Object.assign;var Ii=t_,g$=["","webkit","Moz","MS","ms","o"],wY=typeof document>"u"?{style:{}}:document.createElement("div"),SY="function",vn=Math.round,Ci=Math.abs,W_=Date.now;function Ho(t,e){for(var r,i,n=e[0].toUpperCase()+e.slice(1),s=0;s<g$.length;){if(r=g$[s],i=r?r+n:e,i in t)return i;s++}}var Dr;typeof window>"u"?Dr={}:Dr=window;var _L=Ho(wY.style,"touchAction"),wL=_L!==void 0;function OY(){if(!wL)return!1;var t={},e=Dr.CSS&&Dr.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(r){return t[r]=e?Dr.CSS.supports("touch-action",r):!0}),t}var SL="compute",OL="auto",r_="manipulation",$i="none",Ns="pan-x",Fs="pan-y",Ya=OY(),EY=/mobile|tablet|ip(ad|hone|od)|android/i,EL="ontouchstart"in Dr,TY=Ho(Dr,"PointerEvent")!==void 0,$Y=EL&&EY.test(navigator.userAgent),ca="touch",RY="pen",H_="mouse",xY="kinect",PY=25,mt=1,Yi=2,We=4,Tt=8,uo=1,ha=2,da=4,fa=8,$n=16,gr=ha|da,Ri=fa|$n,TL=gr|Ri,$L=["x","y"],co=["clientX","clientY"];function Ir(t,e,r){var i;if(t)if(t.forEach)t.forEach(e,r);else if(t.length!==void 0)for(i=0;i<t.length;)e.call(r,t[i],i,t),i++;else for(i in t)t.hasOwnProperty(i)&&e.call(r,t[i],i,t)}function Yo(t,e){return typeof t===SY?t.apply(e&&e[0]||void 0,e):t}function _i(t,e){return t.indexOf(e)>-1}function DY(t){if(_i(t,$i))return $i;var e=_i(t,Ns),r=_i(t,Fs);return e&&r?$i:e||r?e?Ns:Fs:_i(t,r_)?r_:OL}var RL=(function(){function t(r,i){this.manager=r,this.set(i)}var e=t.prototype;return e.set=function(i){i===SL&&(i=this.compute()),wL&&this.manager.element.style&&Ya[i]&&(this.manager.element.style[_L]=i),this.actions=i.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var i=[];return Ir(this.manager.recognizers,function(n){Yo(n.options.enable,[n])&&(i=i.concat(n.getTouchAction()))}),DY(i.join(" "))},e.preventDefaults=function(i){var n=i.srcEvent,s=i.offsetDirection;if(this.manager.session.prevented){n.preventDefault();return}var a=this.actions,o=_i(a,$i)&&!Ya[$i],l=_i(a,Fs)&&!Ya[Fs],u=_i(a,Ns)&&!Ya[Ns];if(o){var c=i.pointers.length===1,h=i.distance<2,d=i.deltaTime<250;if(c&&h&&d)return}if(!(u&&l)&&(o||l&&s&gr||u&&s&Ri))return this.preventSrc(n)},e.preventSrc=function(i){this.manager.session.prevented=!0,i.preventDefault()},t})();function Y_(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function xL(t){var e=t.length;if(e===1)return{x:vn(t[0].clientX),y:vn(t[0].clientY)};for(var r=0,i=0,n=0;n<e;)r+=t[n].clientX,i+=t[n].clientY,n++;return{x:vn(r/e),y:vn(i/e)}}function y$(t){for(var e=[],r=0;r<t.pointers.length;)e[r]={clientX:vn(t.pointers[r].clientX),clientY:vn(t.pointers[r].clientY)},r++;return{timeStamp:W_(),pointers:e,center:xL(e),deltaX:t.deltaX,deltaY:t.deltaY}}function ho(t,e,r){r||(r=$L);var i=e[r[0]]-t[r[0]],n=e[r[1]]-t[r[1]];return Math.sqrt(i*i+n*n)}function i_(t,e,r){r||(r=$L);var i=e[r[0]]-t[r[0]],n=e[r[1]]-t[r[1]];return Math.atan2(n,i)*180/Math.PI}function PL(t,e){return t===e?uo:Ci(t)>=Ci(e)?t<0?ha:da:e<0?fa:$n}function IY(t,e){var r=e.center,i=t.offsetDelta||{},n=t.prevDelta||{},s=t.prevInput||{};(e.eventType===mt||s.eventType===We)&&(n=t.prevDelta={x:s.deltaX||0,y:s.deltaY||0},i=t.offsetDelta={x:r.x,y:r.y}),e.deltaX=n.x+(r.x-i.x),e.deltaY=n.y+(r.y-i.y)}function DL(t,e,r){return{x:e/t||0,y:r/t||0}}function CY(t,e){return ho(e[0],e[1],co)/ho(t[0],t[1],co)}function qY(t,e){return i_(e[1],e[0],co)+i_(t[1],t[0],co)}function kY(t,e){var r=t.lastInterval||e,i=e.timeStamp-r.timeStamp,n,s,a,o;if(e.eventType!==Tt&&(i>PY||r.velocity===void 0)){var l=e.deltaX-r.deltaX,u=e.deltaY-r.deltaY,c=DL(i,l,u);s=c.x,a=c.y,n=Ci(c.x)>Ci(c.y)?c.x:c.y,o=PL(l,u),t.lastInterval=e}else n=r.velocity,s=r.velocityX,a=r.velocityY,o=r.direction;e.velocity=n,e.velocityX=s,e.velocityY=a,e.direction=o}function AY(t,e){var r=t.session,i=e.pointers,n=i.length;r.firstInput||(r.firstInput=y$(e)),n>1&&!r.firstMultiple?r.firstMultiple=y$(e):n===1&&(r.firstMultiple=!1);var s=r.firstInput,a=r.firstMultiple,o=a?a.center:s.center,l=e.center=xL(i);e.timeStamp=W_(),e.deltaTime=e.timeStamp-s.timeStamp,e.angle=i_(o,l),e.distance=ho(o,l),IY(r,e),e.offsetDirection=PL(e.deltaX,e.deltaY);var u=DL(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=u.x,e.overallVelocityY=u.y,e.overallVelocity=Ci(u.x)>Ci(u.y)?u.x:u.y,e.scale=a?CY(a.pointers,i):1,e.rotation=a?qY(a.pointers,i):0,e.maxPointers=r.prevInput?e.pointers.length>r.prevInput.maxPointers?e.pointers.length:r.prevInput.maxPointers:e.pointers.length,kY(r,e);var c=t.element,h=e.srcEvent,d;h.composedPath?d=h.composedPath()[0]:h.path?d=h.path[0]:d=h.target,Y_(d,c)&&(c=d),e.target=c}function MY(t,e,r){var i=r.pointers.length,n=r.changedPointers.length,s=e&mt&&i-n===0,a=e&(We|Tt)&&i-n===0;r.isFirst=!!s,r.isFinal=!!a,s&&(t.session={}),r.eventType=e,AY(t,r),t.emit("hammer.input",r),t.recognize(r),t.session.prevInput=r}function Ls(t){return t.trim().split(/\s+/g)}function xs(t,e,r){Ir(Ls(e),function(i){t.addEventListener(i,r,!1)})}function Ps(t,e,r){Ir(Ls(e),function(i){t.removeEventListener(i,r,!1)})}function b$(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var Vn=(function(){function t(r,i){var n=this;this.manager=r,this.callback=i,this.element=r.element,this.target=r.options.inputTarget,this.domHandler=function(s){Yo(r.options.enable,[r])&&n.handler(s)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&xs(this.element,this.evEl,this.domHandler),this.evTarget&&xs(this.target,this.evTarget,this.domHandler),this.evWin&&xs(b$(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&Ps(this.element,this.evEl,this.domHandler),this.evTarget&&Ps(this.target,this.evTarget,this.domHandler),this.evWin&&Ps(b$(this.element),this.evWin,this.domHandler)},t})();function qi(t,e,r){if(t.indexOf&&!r)return t.indexOf(e);for(var i=0;i<t.length;){if(r&&t[i][r]==e||!r&&t[i]===e)return i;i++}return-1}var NY={pointerdown:mt,pointermove:Yi,pointerup:We,pointercancel:Tt,pointerout:Tt},FY={2:ca,3:RY,4:H_,5:xY},IL="pointerdown",CL="pointermove pointerup pointercancel";Dr.MSPointerEvent&&!Dr.PointerEvent&&(IL="MSPointerDown",CL="MSPointerMove MSPointerUp MSPointerCancel");var qL=(function(t){Zt(e,t);function e(){var i,n=e.prototype;return n.evEl=IL,n.evWin=CL,i=t.apply(this,arguments)||this,i.store=i.manager.session.pointerEvents=[],i}var r=e.prototype;return r.handler=function(n){var s=this.store,a=!1,o=n.type.toLowerCase().replace("ms",""),l=NY[o],u=FY[n.pointerType]||n.pointerType,c=u===ca,h=qi(s,n.pointerId,"pointerId");l&mt&&(n.button===0||c)?h<0&&(s.push(n),h=s.length-1):l&(We|Tt)&&(a=!0),!(h<0)&&(s[h]=n,this.callback(this.manager,l,{pointers:s,changedPointers:[n],pointerType:u,srcEvent:n}),a&&s.splice(h,1))},e})(Vn);function js(t){return Array.prototype.slice.call(t,0)}function U_(t,e,r){for(var i=[],n=[],s=0;s<t.length;){var a=e?t[s][e]:t[s];qi(n,a)<0&&i.push(t[s]),n[s]=a,s++}return r&&(e?i=i.sort(function(o,l){return o[e]>l[e]}):i=i.sort()),i}var LY={touchstart:mt,touchmove:Yi,touchend:We,touchcancel:Tt},jY="touchstart touchmove touchend touchcancel",V_=(function(t){Zt(e,t);function e(){var i;return e.prototype.evTarget=jY,i=t.apply(this,arguments)||this,i.targetIds={},i}var r=e.prototype;return r.handler=function(n){var s=LY[n.type],a=GY.call(this,n,s);a&&this.callback(this.manager,s,{pointers:a[0],changedPointers:a[1],pointerType:ca,srcEvent:n})},e})(Vn);function GY(t,e){var r=js(t.touches),i=this.targetIds;if(e&(mt|Yi)&&r.length===1)return i[r[0].identifier]=!0,[r,r];var n,s,a=js(t.changedTouches),o=[],l=this.target;if(s=r.filter(function(u){return Y_(u.target,l)}),e===mt)for(n=0;n<s.length;)i[s[n].identifier]=!0,n++;for(n=0;n<a.length;)i[a[n].identifier]&&o.push(a[n]),e&(We|Tt)&&delete i[a[n].identifier],n++;if(o.length)return[U_(s.concat(o),"identifier",!0),o]}var BY={mousedown:mt,mousemove:Yi,mouseup:We},WY="mousedown",HY="mousemove mouseup",z_=(function(t){Zt(e,t);function e(){var i,n=e.prototype;return n.evEl=WY,n.evWin=HY,i=t.apply(this,arguments)||this,i.pressed=!1,i}var r=e.prototype;return r.handler=function(n){var s=BY[n.type];s&mt&&n.button===0&&(this.pressed=!0),s&Yi&&n.which!==1&&(s=We),this.pressed&&(s&We&&(this.pressed=!1),this.callback(this.manager,s,{pointers:[n],changedPointers:[n],pointerType:H_,srcEvent:n}))},e})(Vn),YY=2500,_$=25;function w$(t){var e=t.changedPointers,r=e[0];if(r.identifier===this.primaryTouch){var i={x:r.clientX,y:r.clientY},n=this.lastTouches;this.lastTouches.push(i);var s=function(){var o=n.indexOf(i);o>-1&&n.splice(o,1)};setTimeout(s,YY)}}function UY(t,e){t&mt?(this.primaryTouch=e.changedPointers[0].identifier,w$.call(this,e)):t&(We|Tt)&&w$.call(this,e)}function VY(t){for(var e=t.srcEvent.clientX,r=t.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var n=this.lastTouches[i],s=Math.abs(e-n.x),a=Math.abs(r-n.y);if(s<=_$&&a<=_$)return!0}return!1}var kL=(function(){var t=(function(e){Zt(r,e);function r(n,s){var a;return a=e.call(this,n,s)||this,a.handler=function(o,l,u){var c=u.pointerType===ca,h=u.pointerType===H_;if(!(h&&u.sourceCapabilities&&u.sourceCapabilities.firesTouchEvents)){if(c)UY.call(Ha(Ha(a)),l,u);else if(h&&VY.call(Ha(Ha(a)),u))return;a.callback(o,l,u)}},a.touch=new V_(a.manager,a.handler),a.mouse=new z_(a.manager,a.handler),a.primaryTouch=null,a.lastTouches=[],a}var i=r.prototype;return i.destroy=function(){this.touch.destroy(),this.mouse.destroy()},r})(Vn);return t})();function zY(t){var e,r=t.options.inputClass;return r?e=r:TY?e=qL:$Y?e=V_:EL?e=kL:e=z_,new e(t,MY)}function mn(t,e,r){return Array.isArray(t)?(Ir(t,r[e],r),!0):!1}var io=1,Ut=2,Rn=4,Xr=8,Cr=Xr,Gs=16,fr=32,KY=1;function XY(){return KY++}function Ua(t,e){var r=e.manager;return r?r.get(t):t}function S$(t){return t&Gs?"cancel":t&Xr?"end":t&Rn?"move":t&Ut?"start":""}var pa=(function(){function t(r){r===void 0&&(r={}),this.options=lr({enable:!0},r),this.id=XY(),this.manager=null,this.state=io,this.simultaneous={},this.requireFail=[]}var e=t.prototype;return e.set=function(i){return Ii(this.options,i),this.manager&&this.manager.touchAction.update(),this},e.recognizeWith=function(i){if(mn(i,"recognizeWith",this))return this;var n=this.simultaneous;return i=Ua(i,this),n[i.id]||(n[i.id]=i,i.recognizeWith(this)),this},e.dropRecognizeWith=function(i){return mn(i,"dropRecognizeWith",this)?this:(i=Ua(i,this),delete this.simultaneous[i.id],this)},e.requireFailure=function(i){if(mn(i,"requireFailure",this))return this;var n=this.requireFail;return i=Ua(i,this),qi(n,i)===-1&&(n.push(i),i.requireFailure(this)),this},e.dropRequireFailure=function(i){if(mn(i,"dropRequireFailure",this))return this;i=Ua(i,this);var n=qi(this.requireFail,i);return n>-1&&this.requireFail.splice(n,1),this},e.hasRequireFailures=function(){return this.requireFail.length>0},e.canRecognizeWith=function(i){return!!this.simultaneous[i.id]},e.emit=function(i){var n=this,s=this.state;function a(o){n.manager.emit(o,i)}s<Xr&&a(n.options.event+S$(s)),a(n.options.event),i.additionalEvent&&a(i.additionalEvent),s>=Xr&&a(n.options.event+S$(s))},e.tryEmit=function(i){if(this.canEmit())return this.emit(i);this.state=fr},e.canEmit=function(){for(var i=0;i<this.requireFail.length;){if(!(this.requireFail[i].state&(fr|io)))return!1;i++}return!0},e.recognize=function(i){var n=Ii({},i);if(!Yo(this.options.enable,[this,n])){this.reset(),this.state=fr;return}this.state&(Cr|Gs|fr)&&(this.state=io),this.state=this.process(n),this.state&(Ut|Rn|Xr|Gs)&&this.tryEmit(n)},e.process=function(i){},e.getTouchAction=function(){},e.reset=function(){},t})(),n_=(function(t){Zt(e,t);function e(i){var n;return i===void 0&&(i={}),n=t.call(this,lr({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},i))||this,n.pTime=!1,n.pCenter=!1,n._timer=null,n._input=null,n.count=0,n}var r=e.prototype;return r.getTouchAction=function(){return[r_]},r.process=function(n){var s=this,a=this.options,o=n.pointers.length===a.pointers,l=n.distance<a.threshold,u=n.deltaTime<a.time;if(this.reset(),n.eventType&mt&&this.count===0)return this.failTimeout();if(l&&u&&o){if(n.eventType!==We)return this.failTimeout();var c=this.pTime?n.timeStamp-this.pTime<a.interval:!0,h=!this.pCenter||ho(this.pCenter,n.center)<a.posThreshold;this.pTime=n.timeStamp,this.pCenter=n.center,!h||!c?this.count=1:this.count+=1,this._input=n;var d=this.count%a.taps;if(d===0)return this.hasRequireFailures()?(this._timer=setTimeout(function(){s.state=Cr,s.tryEmit()},a.interval),Ut):Cr}return fr},r.failTimeout=function(){var n=this;return this._timer=setTimeout(function(){n.state=fr},this.options.interval),fr},r.reset=function(){clearTimeout(this._timer)},r.emit=function(){this.state===Cr&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},e})(pa),xn=(function(t){Zt(e,t);function e(i){return i===void 0&&(i={}),t.call(this,lr({pointers:1},i))||this}var r=e.prototype;return r.attrTest=function(n){var s=this.options.pointers;return s===0||n.pointers.length===s},r.process=function(n){var s=this.state,a=n.eventType,o=s&(Ut|Rn),l=this.attrTest(n);return o&&(a&Tt||!l)?s|Gs:o||l?a&We?s|Xr:s&Ut?s|Rn:Ut:fr},e})(pa);function AL(t){return t===$n?"down":t===fa?"up":t===ha?"left":t===da?"right":""}var K_=(function(t){Zt(e,t);function e(i){var n;return i===void 0&&(i={}),n=t.call(this,lr({event:"pan",threshold:10,pointers:1,direction:TL},i))||this,n.pX=null,n.pY=null,n}var r=e.prototype;return r.getTouchAction=function(){var n=this.options.direction,s=[];return n&gr&&s.push(Fs),n&Ri&&s.push(Ns),s},r.directionTest=function(n){var s=this.options,a=!0,o=n.distance,l=n.direction,u=n.deltaX,c=n.deltaY;return l&s.direction||(s.direction&gr?(l=u===0?uo:u<0?ha:da,a=u!==this.pX,o=Math.abs(n.deltaX)):(l=c===0?uo:c<0?fa:$n,a=c!==this.pY,o=Math.abs(n.deltaY))),n.direction=l,a&&o>s.threshold&&l&s.direction},r.attrTest=function(n){return xn.prototype.attrTest.call(this,n)&&(this.state&Ut||!(this.state&Ut)&&this.directionTest(n))},r.emit=function(n){this.pX=n.deltaX,this.pY=n.deltaY;var s=AL(n.direction);s&&(n.additionalEvent=this.options.event+s),t.prototype.emit.call(this,n)},e})(xn),ML=(function(t){Zt(e,t);function e(i){return i===void 0&&(i={}),t.call(this,lr({event:"swipe",threshold:10,velocity:.3,direction:gr|Ri,pointers:1},i))||this}var r=e.prototype;return r.getTouchAction=function(){return K_.prototype.getTouchAction.call(this)},r.attrTest=function(n){var s=this.options.direction,a;return s&(gr|Ri)?a=n.overallVelocity:s&gr?a=n.overallVelocityX:s&Ri&&(a=n.overallVelocityY),t.prototype.attrTest.call(this,n)&&s&n.offsetDirection&&n.distance>this.options.threshold&&n.maxPointers===this.options.pointers&&Ci(a)>this.options.velocity&&n.eventType&We},r.emit=function(n){var s=AL(n.offsetDirection);s&&this.manager.emit(this.options.event+s,n),this.manager.emit(this.options.event,n)},e})(xn),NL=(function(t){Zt(e,t);function e(i){return i===void 0&&(i={}),t.call(this,lr({event:"pinch",threshold:0,pointers:2},i))||this}var r=e.prototype;return r.getTouchAction=function(){return[$i]},r.attrTest=function(n){return t.prototype.attrTest.call(this,n)&&(Math.abs(n.scale-1)>this.options.threshold||this.state&Ut)},r.emit=function(n){if(n.scale!==1){var s=n.scale<1?"in":"out";n.additionalEvent=this.options.event+s}t.prototype.emit.call(this,n)},e})(xn),FL=(function(t){Zt(e,t);function e(i){return i===void 0&&(i={}),t.call(this,lr({event:"rotate",threshold:0,pointers:2},i))||this}var r=e.prototype;return r.getTouchAction=function(){return[$i]},r.attrTest=function(n){return t.prototype.attrTest.call(this,n)&&(Math.abs(n.rotation)>this.options.threshold||this.state&Ut)},e})(xn),LL=(function(t){Zt(e,t);function e(i){var n;return i===void 0&&(i={}),n=t.call(this,lr({event:"press",pointers:1,time:251,threshold:9},i))||this,n._timer=null,n._input=null,n}var r=e.prototype;return r.getTouchAction=function(){return[OL]},r.process=function(n){var s=this,a=this.options,o=n.pointers.length===a.pointers,l=n.distance<a.threshold,u=n.deltaTime>a.time;if(this._input=n,!l||!o||n.eventType&(We|Tt)&&!u)this.reset();else if(n.eventType&mt)this.reset(),this._timer=setTimeout(function(){s.state=Cr,s.tryEmit()},a.time);else if(n.eventType&We)return Cr;return fr},r.reset=function(){clearTimeout(this._timer)},r.emit=function(n){this.state===Cr&&(n&&n.eventType&We?this.manager.emit(this.options.event+"up",n):(this._input.timeStamp=W_(),this.manager.emit(this.options.event,this._input)))},e})(pa),jL={domEvents:!1,touchAction:SL,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},O$=[[FL,{enable:!1}],[NL,{enable:!1},["rotate"]],[ML,{direction:gr}],[K_,{direction:gr},["swipe"]],[n_],[n_,{event:"doubletap",taps:2},["tap"]],[LL]],ZY=1,E$=2;function T$(t,e){var r=t.element;if(r.style){var i;Ir(t.options.cssProps,function(n,s){i=Ho(r.style,s),e?(t.oldCssProps[i]=r.style[i],r.style[i]=n):r.style[i]=t.oldCssProps[i]||""}),e||(t.oldCssProps={})}}function QY(t,e){var r=document.createEvent("Event");r.initEvent(t,!0,!0),r.gesture=e,e.target.dispatchEvent(r)}var $$=(function(){function t(r,i){var n=this;this.options=Ii({},jL,i||{}),this.options.inputTarget=this.options.inputTarget||r,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=r,this.input=zY(this),this.touchAction=new RL(this,this.options.touchAction),T$(this,!0),Ir(this.options.recognizers,function(s){var a=n.add(new s[0](s[1]));s[2]&&a.recognizeWith(s[2]),s[3]&&a.requireFailure(s[3])},this)}var e=t.prototype;return e.set=function(i){return Ii(this.options,i),i.touchAction&&this.touchAction.update(),i.inputTarget&&(this.input.destroy(),this.input.target=i.inputTarget,this.input.init()),this},e.stop=function(i){this.session.stopped=i?E$:ZY},e.recognize=function(i){var n=this.session;if(!n.stopped){this.touchAction.preventDefaults(i);var s,a=this.recognizers,o=n.curRecognizer;(!o||o&&o.state&Cr)&&(n.curRecognizer=null,o=null);for(var l=0;l<a.length;)s=a[l],n.stopped!==E$&&(!o||s===o||s.canRecognizeWith(o))?s.recognize(i):s.reset(),!o&&s.state&(Ut|Rn|Xr)&&(n.curRecognizer=s,o=s),l++}},e.get=function(i){if(i instanceof pa)return i;for(var n=this.recognizers,s=0;s<n.length;s++)if(n[s].options.event===i)return n[s];return null},e.add=function(i){if(mn(i,"add",this))return this;var n=this.get(i.options.event);return n&&this.remove(n),this.recognizers.push(i),i.manager=this,this.touchAction.update(),i},e.remove=function(i){if(mn(i,"remove",this))return this;var n=this.get(i);if(i){var s=this.recognizers,a=qi(s,n);a!==-1&&(s.splice(a,1),this.touchAction.update())}return this},e.on=function(i,n){if(i===void 0||n===void 0)return this;var s=this.handlers;return Ir(Ls(i),function(a){s[a]=s[a]||[],s[a].push(n)}),this},e.off=function(i,n){if(i===void 0)return this;var s=this.handlers;return Ir(Ls(i),function(a){n?s[a]&&s[a].splice(qi(s[a],n),1):delete s[a]}),this},e.emit=function(i,n){this.options.domEvents&&QY(i,n);var s=this.handlers[i]&&this.handlers[i].slice();if(!(!s||!s.length)){n.type=i,n.preventDefault=function(){n.srcEvent.preventDefault()};for(var a=0;a<s.length;)s[a](n),a++}},e.destroy=function(){this.element&&T$(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},t})(),JY={touchstart:mt,touchmove:Yi,touchend:We,touchcancel:Tt},eU="touchstart",tU="touchstart touchmove touchend touchcancel",rU=(function(t){Zt(e,t);function e(){var i,n=e.prototype;return n.evTarget=eU,n.evWin=tU,i=t.apply(this,arguments)||this,i.started=!1,i}var r=e.prototype;return r.handler=function(n){var s=JY[n.type];if(s===mt&&(this.started=!0),!!this.started){var a=iU.call(this,n,s);s&(We|Tt)&&a[0].length-a[1].length===0&&(this.started=!1),this.callback(this.manager,s,{pointers:a[0],changedPointers:a[1],pointerType:ca,srcEvent:n})}},e})(Vn);function iU(t,e){var r=js(t.touches),i=js(t.changedTouches);return e&(We|Tt)&&(r=U_(r.concat(i),"identifier",!0)),[r,i]}function GL(t,e,r){var i="DEPRECATED METHOD: "+e+`
|
|
31
|
+
`+r+` AT
|
|
32
|
+
`;return function(){var n=new Error("get-stack-trace"),s=n&&n.stack?n.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",a=window.console&&(window.console.warn||window.console.log);return a&&a.call(window.console,i,s),t.apply(this,arguments)}}var BL=GL(function(t,e,r){for(var i=Object.keys(e),n=0;n<i.length;)(!r||r&&t[i[n]]===void 0)&&(t[i[n]]=e[i[n]]),n++;return t},"extend","Use `assign`."),nU=GL(function(t,e){return BL(t,e,!0)},"merge","Use `assign`.");function sU(t,e,r){var i=e.prototype,n;n=t.prototype=Object.create(i),n.constructor=t,n._super=i,r&&Ii(n,r)}function R$(t,e){return function(){return t.apply(e,arguments)}}var aU=(function(){var t=function(r,i){return i===void 0&&(i={}),new $$(r,lr({recognizers:O$.concat()},i))};return t.VERSION="2.0.17-rc",t.DIRECTION_ALL=TL,t.DIRECTION_DOWN=$n,t.DIRECTION_LEFT=ha,t.DIRECTION_RIGHT=da,t.DIRECTION_UP=fa,t.DIRECTION_HORIZONTAL=gr,t.DIRECTION_VERTICAL=Ri,t.DIRECTION_NONE=uo,t.DIRECTION_DOWN=$n,t.INPUT_START=mt,t.INPUT_MOVE=Yi,t.INPUT_END=We,t.INPUT_CANCEL=Tt,t.STATE_POSSIBLE=io,t.STATE_BEGAN=Ut,t.STATE_CHANGED=Rn,t.STATE_ENDED=Xr,t.STATE_RECOGNIZED=Cr,t.STATE_CANCELLED=Gs,t.STATE_FAILED=fr,t.Manager=$$,t.Input=Vn,t.TouchAction=RL,t.TouchInput=V_,t.MouseInput=z_,t.PointerEventInput=qL,t.TouchMouseInput=kL,t.SingleTouchInput=rU,t.Recognizer=pa,t.AttrRecognizer=xn,t.Tap=n_,t.Pan=K_,t.Swipe=ML,t.Pinch=NL,t.Rotate=FL,t.Press=LL,t.on=xs,t.off=Ps,t.each=Ir,t.merge=nU,t.extend=BL,t.bindFn=R$,t.assign=Ii,t.inherit=sU,t.bindFn=R$,t.prefixed=Ho,t.toArray=js,t.inArray=qi,t.uniqueArray=U_,t.splitStr=Ls,t.boolOrFn=Yo,t.hasParent=Y_,t.addEventListeners=xs,t.removeEventListeners=Ps,t.defaults=Ii({},jL,{preset:O$}),t})();const WL=VW("DELETE");function oU(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return HL({},t,...r)}function HL(){const t=fo(...arguments);return UL(t),t}function fo(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(e.length<2)return e[0];if(e.length>2)return fo(HL(e[0],e[1]),...eH(e).call(e,2));const i=e[0],n=e[1];if(i instanceof Date&&n instanceof Date)return i.setTime(n.getTime()),i;for(const s of vL(n))Object.prototype.propertyIsEnumerable.call(n,s)&&(n[s]===WL?delete i[s]:i[s]!==null&&n[s]!==null&&typeof i[s]=="object"&&typeof n[s]=="object"&&!ar(i[s])&&!ar(n[s])?i[s]=fo(i[s],n[s]):i[s]=YL(n[s]));return i}function YL(t){return ar(t)?Dt(t).call(t,e=>YL(e)):typeof t=="object"&&t!==null?t instanceof Date?new Date(t.getTime()):fo({},t):t}function UL(t){for(const e of B_(t))t[e]===WL?delete t[e]:typeof t[e]=="object"&&t[e]!==null&&UL(t[e])}function lU(){const t=()=>{};return{on:t,off:t,destroy:t,emit:t,get(){return{set:t}}}}const uU=typeof window<"u"?window.Hammer||aU:function(){return lU()};function xr(t){var e;this._cleanupQueue=[],this.active=!1,this._dom={container:t,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push(()=>{this._dom.overlay.parentNode.removeChild(this._dom.overlay)});const r=uU(this._dom.overlay);r.on("tap",Ti(e=this._onTapOverlay).call(e,this)),this._cleanupQueue.push(()=>{r.destroy()});const i=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];Jr(i).call(i,n=>{r.on(n,s=>{s.srcEvent.stopPropagation()})}),document&&document.body&&(this._onClick=n=>{cU(n.target,t)||this.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push(()=>{document.body.removeEventListener("click",this._onClick)})),this._escListener=n=>{("key"in n?n.key==="Escape":n.keyCode===27)&&this.deactivate()}}_Y(xr.prototype);xr.current=null;xr.prototype.destroy=function(){this.deactivate();for(const r of PH(t=gL(e=this._cleanupQueue).call(e,0)).call(t)){var t,e;r()}};xr.prototype.activate=function(){xr.current&&xr.current.deactivate(),xr.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)};xr.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")};xr.prototype._onTapOverlay=function(t){this.activate(),t.srcEvent.stopPropagation()};function cU(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}var yd,x$;function hU(){if(x$)return yd;x$=1,eL();var t=Ke();return yd=t.Object.getOwnPropertySymbols,yd}var bd,P$;function dU(){if(P$)return bd;P$=1;var t=hU();return bd=t,bd}var _d,D$;function fU(){return D$||(D$=1,_d=dU()),_d}var pU=fU(),I$=ne(pU),wd={exports:{}},C$={},q$;function vU(){if(q$)return C$;q$=1;var t=Z(),e=ve(),r=br(),i=ko().f,n=Ue(),s=!n||e(function(){i(1)});return t({target:"Object",stat:!0,forced:s,sham:!n},{getOwnPropertyDescriptor:function(o,l){return i(r(o),l)}}),C$}var k$;function mU(){if(k$)return wd.exports;k$=1,vU();var t=Ke(),e=t.Object,r=wd.exports=function(n,s){return e.getOwnPropertyDescriptor(n,s)};return e.getOwnPropertyDescriptor.sham&&(r.sham=!0),wd.exports}var Sd,A$;function gU(){if(A$)return Sd;A$=1;var t=mU();return Sd=t,Sd}var Od,M$;function yU(){return M$||(M$=1,Od=gU()),Od}var bU=yU(),VL=ne(bU),N$={},F$;function _U(){if(F$)return N$;F$=1;var t=Z(),e=Ue(),r=pL(),i=br(),n=ko(),s=Ao();return t({target:"Object",stat:!0,sham:!e},{getOwnPropertyDescriptors:function(o){for(var l=i(o),u=n.f,c=r(l),h={},d=0,f,p;c.length>d;)p=u(l,f=c[d++]),p!==void 0&&s(h,f,p);return h}}),N$}var Ed,L$;function wU(){if(L$)return Ed;L$=1,_U();var t=Ke();return Ed=t.Object.getOwnPropertyDescriptors,Ed}var Td,j$;function SU(){if(j$)return Td;j$=1;var t=wU();return Td=t,Td}var $d,G$;function OU(){return G$||(G$=1,$d=SU()),$d}var EU=OU(),B$=ne(EU),Rd={exports:{}},W$={},H$;function TU(){if(H$)return W$;H$=1;var t=Z(),e=Ue(),r=F_().f;return t({target:"Object",stat:!0,forced:Object.defineProperties!==r,sham:!e},{defineProperties:r}),W$}var Y$;function $U(){if(Y$)return Rd.exports;Y$=1,TU();var t=Ke(),e=t.Object,r=Rd.exports=function(n,s){return e.defineProperties(n,s)};return e.defineProperties.sham&&(r.sham=!0),Rd.exports}var xd,U$;function RU(){if(U$)return xd;U$=1;var t=$U();return xd=t,xd}var Pd,V$;function xU(){return V$||(V$=1,Pd=RU()),Pd}var PU=xU(),DU=ne(PU),Dd,z$;function IU(){return z$||(z$=1,Dd=YF()),Dd}var CU=IU(),zL=ne(CU),K$={},X$={},Id={exports:{}},Cd,Z$;function qU(){if(Z$)return Cd;Z$=1;var t=ve();return Cd=t(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),Cd}var qd,Q$;function kU(){if(Q$)return qd;Q$=1;var t=ve(),e=yt(),r=jr(),i=qU(),n=Object.isExtensible,s=t(function(){});return qd=s||i?function(o){return!e(o)||i&&r(o)==="ArrayBuffer"?!1:n?n(o):!0}:n,qd}var kd,J$;function AU(){if(J$)return kd;J$=1;var t=ve();return kd=!t(function(){return Object.isExtensible(Object.preventExtensions({}))}),kd}var eR;function KL(){if(eR)return Id.exports;eR=1;var t=Z(),e=Ee(),r=aa(),i=yt(),n=tt(),s=Xt().f,a=Lo(),o=XF(),l=kU(),u=qo(),c=AU(),h=!1,d=u("meta"),f=0,p=function(_){s(_,d,{value:{objectID:"O"+f++,weakData:{}}})},v=function(_,w){if(!i(_))return typeof _=="symbol"?_:(typeof _=="string"?"S":"P")+_;if(!n(_,d)){if(!l(_))return"F";if(!w)return"E";p(_)}return _[d].objectID},m=function(_,w){if(!n(_,d)){if(!l(_))return!0;if(!w)return!1;p(_)}return _[d].weakData},y=function(_){return c&&h&&l(_)&&!n(_,d)&&p(_),_},g=function(){O.enable=function(){},h=!0;var _=a.f,w=e([].splice),E={};E[d]=1,_(E).length&&(a.f=function($){for(var b=_($),T=0,R=b.length;T<R;T++)if(b[T]===d){w(b,T,1);break}return b},t({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:o.f}))},O=Id.exports={enable:g,fastKey:v,getWeakData:m,onFreeze:y};return r[d]=!0,Id.exports}var Ad,tR;function MU(){if(tR)return Ad;tR=1;var t=rt(),e=Un(),r=t("iterator"),i=Array.prototype;return Ad=function(n){return n!==void 0&&(e.Array===n||i[r]===n)},Ad}var Md,rR;function XL(){if(rR)return Md;rR=1;var t=ti(),e=I_(),r=ta(),i=Un(),n=rt(),s=n("iterator");return Md=function(a){if(!r(a))return e(a,s)||e(a,"@@iterator")||i[t(a)]},Md}var Nd,iR;function ZL(){if(iR)return Nd;iR=1;var t=Rt(),e=_r(),r=Gr(),i=Ln(),n=XL(),s=TypeError;return Nd=function(a,o){var l=arguments.length<2?n(a):o;if(e(l))return r(t(l,a));throw new s(i(a)+" is not iterable")},Nd}var Fd,nR;function X_(){if(nR)return Fd;nR=1;var t=Rt(),e=Gr(),r=I_();return Fd=function(i,n,s){var a,o;e(i);try{if(a=r(i,"return"),!a){if(n==="throw")throw s;return s}a=t(a,i)}catch(l){o=!0,a=l}if(n==="throw")throw s;if(o)throw a;return e(a),s},Fd}var Ld,sR;function Z_(){if(sR)return Ld;sR=1;var t=na(),e=Rt(),r=Gr(),i=Ln(),n=MU(),s=wr(),a=Xe(),o=ZL(),l=XL(),u=X_(),c=TypeError,h=function(f,p){this.stopped=f,this.result=p},d=h.prototype;return Ld=function(f,p,v){var m=v&&v.that,y=!!(v&&v.AS_ENTRIES),g=!!(v&&v.IS_RECORD),O=!!(v&&v.IS_ITERATOR),_=!!(v&&v.INTERRUPTED),w=t(p,m),E,$,b,T,R,x,P,I=function(K){return E&&u(E,"normal"),new h(!0,K)},j=function(K){return y?(r(K),_?w(K[0],K[1],I):w(K[0],K[1])):_?w(K,I):w(K)};if(g)E=f.iterator;else if(O)E=f;else{if($=l(f),!$)throw new c(i(f)+" is not iterable");if(n($)){for(b=0,T=s(f);T>b;b++)if(R=j(f[b]),R&&a(d,R))return R;return new h(!1)}E=o(f,$)}for(x=g?f.next:E.next;!(P=e(x,E)).done;){try{R=j(P.value)}catch(K){u(E,"throw",K)}if(typeof R=="object"&&R&&a(d,R))return R}return new h(!1)},Ld}var jd,aR;function QL(){if(aR)return jd;aR=1;var t=Xe(),e=TypeError;return jd=function(r,i){if(t(i,r))return r;throw new e("Incorrect invocation")},jd}var Gd,oR;function JL(){if(oR)return Gd;oR=1;var t=Z(),e=Ye(),r=KL(),i=ve(),n=Bn(),s=Z_(),a=QL(),o=et(),l=yt(),u=ta(),c=Hi(),h=Xt().f,d=Yn().forEach,f=Ue(),p=ua(),v=p.set,m=p.getterFor;return Gd=function(y,g,O){var _=y.indexOf("Map")!==-1,w=y.indexOf("Weak")!==-1,E=_?"set":"add",$=e[y],b=$&&$.prototype,T={},R;if(!f||!o($)||!(w||b.forEach&&!i(function(){new $().entries().next()})))R=O.getConstructor(g,y,_,E),r.enable();else{R=g(function(I,j){v(a(I,x),{type:y,collection:new $}),u(j)||s(j,I[E],{that:I,AS_ENTRIES:_})});var x=R.prototype,P=m(y);d(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(I){var j=I==="add"||I==="set";I in b&&!(w&&I==="clear")&&n(x,I,function(K,G){var B=P(this).collection;if(!j&&w&&!l(K))return I==="get"?void 0:!1;var A=B[I](K===0?0:K,G);return j?this:A})}),w||h(x,"size",{configurable:!0,get:function(){return P(this).collection.size}})}return c(R,y,!1,!0),T[y]=R,t({global:!0,forced:!0},T),w||O.setStrong(R,y,_),R},Gd}var Bd,lR;function NU(){if(lR)return Bd;lR=1;var t=la();return Bd=function(e,r,i){for(var n in r)i&&i.unsafe&&e[n]?e[n]=r[n]:t(e,n,r[n],i);return e},Bd}var Wd,uR;function FU(){if(uR)return Wd;uR=1;var t=Ft(),e=L_(),r=rt(),i=Ue(),n=r("species");return Wd=function(s){var a=t(s);i&&a&&!a[n]&&e(a,n,{configurable:!0,get:function(){return this}})},Wd}var Hd,cR;function e2(){if(cR)return Hd;cR=1;var t=oa(),e=L_(),r=NU(),i=na(),n=QL(),s=ta(),a=Z_(),o=j_(),l=G_(),u=FU(),c=Ue(),h=KL().fastKey,d=ua(),f=d.set,p=d.getterFor;return Hd={getConstructor:function(v,m,y,g){var O=v(function(b,T){n(b,_),f(b,{type:m,index:t(null),first:null,last:null,size:0}),c||(b.size=0),s(T)||a(T,b[g],{that:b,AS_ENTRIES:y})}),_=O.prototype,w=p(m),E=function(b,T,R){var x=w(b),P=$(b,T),I,j;return P?P.value=R:(x.last=P={index:j=h(T,!0),key:T,value:R,previous:I=x.last,next:null,removed:!1},x.first||(x.first=P),I&&(I.next=P),c?x.size++:b.size++,j!=="F"&&(x.index[j]=P)),b},$=function(b,T){var R=w(b),x=h(T),P;if(x!=="F")return R.index[x];for(P=R.first;P;P=P.next)if(P.key===T)return P};return r(_,{clear:function(){for(var T=this,R=w(T),x=R.first;x;)x.removed=!0,x.previous&&(x.previous=x.previous.next=null),x=x.next;R.first=R.last=null,R.index=t(null),c?R.size=0:T.size=0},delete:function(b){var T=this,R=w(T),x=$(T,b);if(x){var P=x.next,I=x.previous;delete R.index[x.index],x.removed=!0,I&&(I.next=P),P&&(P.previous=I),R.first===x&&(R.first=P),R.last===x&&(R.last=I),c?R.size--:T.size--}return!!x},forEach:function(T){for(var R=w(this),x=i(T,arguments.length>1?arguments[1]:void 0),P;P=P?P.next:R.first;)for(x(P.value,P.key,this);P&&P.removed;)P=P.previous},has:function(T){return!!$(this,T)}}),r(_,y?{get:function(T){var R=$(this,T);return R&&R.value},set:function(T,R){return E(this,T===0?0:T,R)}}:{add:function(T){return E(this,T=T===0?0:T,T)}}),c&&e(_,"size",{configurable:!0,get:function(){return w(this).size}}),O},setStrong:function(v,m,y){var g=m+" Iterator",O=p(m),_=p(g);o(v,m,function(w,E){f(this,{type:g,target:w,state:O(w),kind:E,last:null})},function(){for(var w=_(this),E=w.kind,$=w.last;$&&$.removed;)$=$.previous;return!w.target||!(w.last=$=$?$.next:w.state.first)?(w.target=null,l(void 0,!0)):l(E==="keys"?$.key:E==="values"?$.value:[$.key,$.value],!1)},y?"entries":"values",!y,!0),u(m)}},Hd}var hR;function LU(){if(hR)return X$;hR=1;var t=JL(),e=e2();return t("Map",function(r){return function(){return r(this,arguments.length?arguments[0]:void 0)}},e),X$}var dR;function jU(){return dR||(dR=1,LU()),K$}var fR={},Yd,pR;function t2(){return pR||(pR=1,Yd=function(t,e){return e===1?function(r,i){return r[t](i)}:function(r,i,n){return r[t](i,n)}}),Yd}var Ud,vR;function GU(){if(vR)return Ud;vR=1;var t=Ft(),e=t2(),r=t("Map");return Ud={Map:r,set:e("set",2),get:e("get",1),has:e("has",1),remove:e("delete",1),proto:r.prototype},Ud}var mR;function BU(){if(mR)return fR;mR=1;var t=Z(),e=Ee(),r=_r(),i=Wi(),n=Z_(),s=GU(),a=jn(),o=ve(),l=s.Map,u=s.has,c=s.get,h=s.set,d=e([].push),f=a||o(function(){return l.groupBy("ab",function(p){return p}).get("a").length!==1});return t({target:"Map",stat:!0,forced:a||f},{groupBy:function(v,m){i(v),r(m);var y=new l,g=0;return n(v,function(O){var _=m(O,g++);u(y,_)?d(c(y,_),O):h(y,_,[O])}),y}}),fR}var Vd,gR;function WU(){if(gR)return Vd;gR=1,ii(),jU(),BU(),Bo();var t=Ke();return Vd=t.Map,Vd}var zd,yR;function HU(){if(yR)return zd;yR=1;var t=WU();return ni(),zd=t,zd}var Kd,bR;function YU(){return bR||(bR=1,Kd=HU()),Kd}var UU=YU(),r2=ne(UU),_R={},wR;function VU(){if(wR)return _R;wR=1;var t=Z(),e=Yn().some,r=Wo(),i=r("some");return t({target:"Array",proto:!0,forced:!i},{some:function(s){return e(this,s,arguments.length>1?arguments[1]:void 0)}}),_R}var Xd,SR;function zU(){if(SR)return Xd;SR=1,VU();var t=bt();return Xd=t("Array","some"),Xd}var Zd,OR;function KU(){if(OR)return Zd;OR=1;var t=Xe(),e=zU(),r=Array.prototype;return Zd=function(i){var n=i.some;return i===r||t(r,i)&&n===r.some?e:n},Zd}var Qd,ER;function XU(){if(ER)return Qd;ER=1;var t=KU();return Qd=t,Qd}var Jd,TR;function ZU(){return TR||(TR=1,Jd=XU()),Jd}var QU=ZU(),JU=ne(QU),ef,$R;function eV(){if($R)return ef;$R=1,ii();var t=bt();return ef=t("Array","keys"),ef}var tf,RR;function tV(){if(RR)return tf;RR=1;var t=eV();return tf=t,tf}var rf,xR;function rV(){if(xR)return rf;xR=1,ni();var t=ti(),e=tt(),r=Xe(),i=tV(),n=Array.prototype,s={DOMTokenList:!0,NodeList:!0};return rf=function(a){var o=a.keys;return a===n||r(n,a)&&o===n.keys||e(s,t(a))?i:o},rf}var nf,PR;function iV(){return PR||(PR=1,nf=rV()),nf}var nV=iV(),yi=ne(nV),DR={},sf,IR;function sV(){if(IR)return sf;IR=1;var t=Hn(),e=Math.floor,r=function(i,n){var s=i.length;if(s<8)for(var a=1,o,l;a<s;){for(l=a,o=i[a];l&&n(i[l-1],o)>0;)i[l]=i[--l];l!==a++&&(i[l]=o)}else for(var u=e(s/2),c=r(t(i,0,u),n),h=r(t(i,u),n),d=c.length,f=h.length,p=0,v=0;p<d||v<f;)i[p+v]=p<d&&v<f?n(c[p],h[v])<=0?c[p++]:h[v++]:p<d?c[p++]:h[v++];return i};return sf=r,sf}var af,CR;function aV(){if(CR)return af;CR=1;var t=Nn(),e=t.match(/firefox\/(\d+)/i);return af=!!e&&+e[1],af}var of,qR;function oV(){if(qR)return of;qR=1;var t=Nn();return of=/MSIE|Trident/.test(t),of}var lf,kR;function lV(){if(kR)return lf;kR=1;var t=Nn(),e=t.match(/AppleWebKit\/(\d+)\./);return lf=!!e&&+e[1],lf}var AR;function uV(){if(AR)return DR;AR=1;var t=Z(),e=Ee(),r=_r(),i=Kt(),n=wr(),s=mL(),a=ri(),o=ve(),l=sV(),u=Wo(),c=aV(),h=oV(),d=ra(),f=lV(),p=[],v=e(p.sort),m=e(p.push),y=o(function(){p.sort(void 0)}),g=o(function(){p.sort(null)}),O=u("sort"),_=!o(function(){if(d)return d<70;if(!(c&&c>3)){if(h)return!0;if(f)return f<603;var $="",b,T,R,x;for(b=65;b<76;b++){switch(T=String.fromCharCode(b),b){case 66:case 69:case 70:case 72:R=3;break;case 68:case 71:R=4;break;default:R=2}for(x=0;x<47;x++)p.push({k:T+x,v:R})}for(p.sort(function(P,I){return I.v-P.v}),x=0;x<p.length;x++)T=p[x].k.charAt(0),$.charAt($.length-1)!==T&&($+=T);return $!=="DGBEFHACIJK"}}),w=y||!g||!O||!_,E=function($){return function(b,T){return T===void 0?-1:b===void 0?1:$!==void 0?+$(b,T)||0:a(b)>a(T)?1:-1}};return t({target:"Array",proto:!0,forced:w},{sort:function(b){b!==void 0&&r(b);var T=i(this);if(_)return b===void 0?v(T):v(T,b);var R=[],x=n(T),P,I;for(I=0;I<x;I++)I in T&&m(R,T[I]);for(l(R,E(b)),P=n(R),I=0;I<P;)T[I]=R[I++];for(;I<x;)s(T,I++);return T}}),DR}var uf,MR;function cV(){if(MR)return uf;MR=1,uV();var t=bt();return uf=t("Array","sort"),uf}var cf,NR;function hV(){if(NR)return cf;NR=1;var t=Xe(),e=cV(),r=Array.prototype;return cf=function(i){var n=i.sort;return i===r||t(r,i)&&n===r.sort?e:n},cf}var hf,FR;function dV(){if(FR)return hf;FR=1;var t=hV();return hf=t,hf}var df,LR;function fV(){return LR||(LR=1,df=dV()),df}var pV=fV(),s_=ne(pV),ff,jR;function vV(){if(jR)return ff;jR=1,ii();var t=bt();return ff=t("Array","values"),ff}var pf,GR;function mV(){if(GR)return pf;GR=1;var t=vV();return pf=t,pf}var vf,BR;function gV(){if(BR)return vf;BR=1,ni();var t=ti(),e=tt(),r=Xe(),i=mV(),n=Array.prototype,s={DOMTokenList:!0,NodeList:!0};return vf=function(a){var o=a.values;return a===n||r(n,a)&&o===n.values||e(s,t(a))?i:o},vf}var mf,WR;function yV(){return WR||(WR=1,mf=gV()),mf}var bV=yV(),HR=ne(bV),gf,YR;function _V(){return YR||(YR=1,gf=hL()),gf}var wV=_V(),wi=ne(wV),yf,UR;function SV(){if(UR)return yf;UR=1,ii();var t=bt();return yf=t("Array","entries"),yf}var bf,VR;function OV(){if(VR)return bf;VR=1;var t=SV();return bf=t,bf}var _f,zR;function EV(){if(zR)return _f;zR=1,ni();var t=ti(),e=tt(),r=Xe(),i=OV(),n=Array.prototype,s={DOMTokenList:!0,NodeList:!0};return _f=function(a){var o=a.entries;return a===n||r(n,a)&&o===n.entries||e(s,t(a))?i:o},_f}var wf,KR;function TV(){return KR||(KR=1,wf=EV()),wf}var $V=TV(),RV=ne($V);const at=[];for(let t=0;t<256;++t)at.push((t+256).toString(16).slice(1));function xV(t,e=0){return(at[t[e+0]]+at[t[e+1]]+at[t[e+2]]+at[t[e+3]]+"-"+at[t[e+4]]+at[t[e+5]]+"-"+at[t[e+6]]+at[t[e+7]]+"-"+at[t[e+8]]+at[t[e+9]]+"-"+at[t[e+10]]+at[t[e+11]]+at[t[e+12]]+at[t[e+13]]+at[t[e+14]]+at[t[e+15]]).toLowerCase()}let Sf;const PV=new Uint8Array(16);function DV(){if(!Sf){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Sf=crypto.getRandomValues.bind(crypto)}return Sf(PV)}const IV=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var XR={randomUUID:IV};function CV(t,e,r){t=t||{};const i=t.random??t.rng?.()??DV();if(i.length<16)throw new Error("Random bytes length must be >= 16");return i[6]=i[6]&15|64,i[8]=i[8]&63|128,xV(i)}function qV(t,e,r){return XR.randomUUID&&!t?XR.randomUUID():CV(t)}function a_(t){return typeof t=="string"||typeof t=="number"}class Q_{constructor(e){Yt(this,"_queue",[]),Yt(this,"_timeout",null),Yt(this,"_extended",null),this.delay=null,this.max=1/0,this.setOptions(e)}setOptions(e){e&&typeof e.delay<"u"&&(this.delay=e.delay),e&&typeof e.max<"u"&&(this.max=e.max),this._flushIfNeeded()}static extend(e,r){const i=new Q_(r);if(e.flush!==void 0)throw new Error("Target object already has a property flush");e.flush=()=>{i.flush()};const n=[{name:"flush",original:void 0}];if(r&&r.replace)for(let s=0;s<r.replace.length;s++){const a=r.replace[s];n.push({name:a,original:e[a]}),i.replace(e,a)}return i._extended={object:e,methods:n},i}destroy(){if(this.flush(),this._extended){const e=this._extended.object,r=this._extended.methods;for(let i=0;i<r.length;i++){const n=r[i];n.original?e[n.name]=n.original:delete e[n.name]}this._extended=null}}replace(e,r){const i=this,n=e[r];if(!n)throw new Error("Method "+r+" undefined");e[r]=function(){for(var s=arguments.length,a=new Array(s),o=0;o<s;o++)a[o]=arguments[o];i.queue({args:a,fn:n,context:this})}}queue(e){typeof e=="function"?this._queue.push({fn:e}):this._queue.push(e),this._flushIfNeeded()}_flushIfNeeded(){this._queue.length>this.max&&this.flush(),this._timeout!=null&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&typeof this.delay=="number"&&(this._timeout=gY(()=>{this.flush()},this.delay))}flush(){var e,r;Jr(e=gL(r=this._queue).call(r,0)).call(e,i=>{i.fn.apply(i.context||i.fn,i.args||[])})}}class Bs{constructor(){Yt(this,"_subscribers",{"*":[],add:[],remove:[],update:[]}),Yt(this,"subscribe",Bs.prototype.on),Yt(this,"unsubscribe",Bs.prototype.off)}_trigger(e,r,i){var n;if(e==="*")throw new Error("Cannot trigger event *");Jr(n=[...this._subscribers[e],...this._subscribers["*"]]).call(n,s=>{s(e,r,i??null)})}on(e,r){typeof r=="function"&&this._subscribers[e].push(r)}off(e,r){var i;this._subscribers[e]=Ze(i=this._subscribers[e]).call(i,n=>n!==r)}}var ZR={},QR={},JR;function kV(){if(JR)return QR;JR=1;var t=JL(),e=e2();return t("Set",function(r){return function(){return r(this,arguments.length?arguments[0]:void 0)}},e),QR}var ex;function AV(){return ex||(ex=1,kV()),ZR}var tx={},Of,rx;function Ui(){if(rx)return Of;rx=1;var t=Ln(),e=TypeError;return Of=function(r){if(typeof r=="object"&&"size"in r&&"has"in r&&"add"in r&&"delete"in r&&"keys"in r)return r;throw new e(t(r)+" is not a set")},Of}var Ef,ix;function Vi(){if(ix)return Ef;ix=1;var t=Ft(),e=t2(),r=t("Set"),i=r.prototype;return Ef={Set:r,add:e("add",1),has:e("has",1),remove:e("delete",1),proto:i},Ef}var Tf,nx;function zi(){if(nx)return Tf;nx=1;var t=Rt();return Tf=function(e,r,i){for(var n=i?e:e.iterator,s=e.next,a,o;!(a=t(s,n)).done;)if(o=r(a.value),o!==void 0)return o},Tf}var $f,sx;function va(){if(sx)return $f;sx=1;var t=zi();return $f=function(e,r,i){return i?t(e.keys(),r,!0):e.forEach(r)},$f}var Rf,ax;function J_(){if(ax)return Rf;ax=1;var t=Vi(),e=va(),r=t.Set,i=t.add;return Rf=function(n){var s=new r;return e(n,function(a){i(s,a)}),s},Rf}var xf,ox;function ma(){return ox||(ox=1,xf=function(t){return t.size}),xf}var Pf,lx;function MV(){return lx||(lx=1,Pf=function(t){return{iterator:t,next:t.next,done:!1}}),Pf}var Df,ux;function Ki(){if(ux)return Df;ux=1;var t=_r(),e=Gr(),r=Rt(),i=Wn(),n=MV(),s="Invalid size",a=RangeError,o=TypeError,l=Math.max,u=function(c,h){this.set=c,this.size=l(h,0),this.has=t(c.has),this.keys=t(c.keys)};return u.prototype={getIterator:function(){return n(e(r(this.keys,this.set)))},includes:function(c){return r(this.has,this.set,c)}},Df=function(c){e(c);var h=+c.size;if(h!==h)throw new o(s);var d=i(h);if(d<0)throw new a(s);return new u(c,d)},Df}var If,cx;function NV(){if(cx)return If;cx=1;var t=Ui(),e=Vi(),r=J_(),i=ma(),n=Ki(),s=va(),a=zi(),o=e.has,l=e.remove;return If=function(c){var h=t(this),d=n(c),f=r(h);return i(h)<=d.size?s(h,function(p){d.includes(p)&&l(f,p)}):a(d.getIterator(),function(p){o(f,p)&&l(f,p)}),f},If}var Cf,hx;function Xi(){return hx||(hx=1,Cf=function(){return!1}),Cf}var dx;function FV(){if(dx)return tx;dx=1;var t=Z(),e=NV(),r=ve(),i=Xi(),n=!i("difference",function(a){return a.size===0}),s=n||r(function(){var a={size:1,has:function(){return!0},keys:function(){var l=0;return{next:function(){var u=l++>1;return o.has(1)&&o.clear(),{done:u,value:2}}}}},o=new Set([1,2,3,4]);return o.difference(a).size!==3});return t({target:"Set",proto:!0,real:!0,forced:s},{difference:e}),tx}var fx={},qf,px;function LV(){if(px)return qf;px=1;var t=Ui(),e=Vi(),r=ma(),i=Ki(),n=va(),s=zi(),a=e.Set,o=e.add,l=e.has;return qf=function(c){var h=t(this),d=i(c),f=new a;return r(h)>d.size?s(d.getIterator(),function(p){l(h,p)&&o(f,p)}):n(h,function(p){d.includes(p)&&o(f,p)}),f},qf}var vx;function jV(){if(vx)return fx;vx=1;var t=Z(),e=ve(),r=LV(),i=Xi(),n=!i("intersection",function(s){return s.size===2&&s.has(1)&&s.has(2)})||e(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});return t({target:"Set",proto:!0,real:!0,forced:n},{intersection:r}),fx}var mx={},kf,gx;function GV(){if(gx)return kf;gx=1;var t=Ui(),e=Vi().has,r=ma(),i=Ki(),n=va(),s=zi(),a=X_();return kf=function(l){var u=t(this),c=i(l);if(r(u)<=c.size)return n(u,function(d){if(c.includes(d))return!1},!0)!==!1;var h=c.getIterator();return s(h,function(d){if(e(u,d))return a(h,"normal",!1)})!==!1},kf}var yx;function BV(){if(yx)return mx;yx=1;var t=Z(),e=GV(),r=Xi(),i=!r("isDisjointFrom",function(n){return!n});return t({target:"Set",proto:!0,real:!0,forced:i},{isDisjointFrom:e}),mx}var bx={},Af,_x;function WV(){if(_x)return Af;_x=1;var t=Ui(),e=ma(),r=va(),i=Ki();return Af=function(s){var a=t(this),o=i(s);return e(a)>o.size?!1:r(a,function(l){if(!o.includes(l))return!1},!0)!==!1},Af}var wx;function HV(){if(wx)return bx;wx=1;var t=Z(),e=WV(),r=Xi(),i=!r("isSubsetOf",function(n){return n});return t({target:"Set",proto:!0,real:!0,forced:i},{isSubsetOf:e}),bx}var Sx={},Mf,Ox;function YV(){if(Ox)return Mf;Ox=1;var t=Ui(),e=Vi().has,r=ma(),i=Ki(),n=zi(),s=X_();return Mf=function(o){var l=t(this),u=i(o);if(r(l)<u.size)return!1;var c=u.getIterator();return n(c,function(h){if(!e(l,h))return s(c,"normal",!1)})!==!1},Mf}var Ex;function UV(){if(Ex)return Sx;Ex=1;var t=Z(),e=YV(),r=Xi(),i=!r("isSupersetOf",function(n){return!n});return t({target:"Set",proto:!0,real:!0,forced:i},{isSupersetOf:e}),Sx}var Tx={},Nf,$x;function VV(){if($x)return Nf;$x=1;var t=Ui(),e=Vi(),r=J_(),i=Ki(),n=zi(),s=e.add,a=e.has,o=e.remove;return Nf=function(u){var c=t(this),h=i(u).getIterator(),d=r(c);return n(h,function(f){a(c,f)?o(d,f):s(d,f)}),d},Nf}var Ff,Rx;function i2(){return Rx||(Rx=1,Ff=function(t){try{var e=new Set,r={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return e.clear(),e.add(4),function(){return{done:!0}}}})}},i=e[t](r);return i.size===1&&i.values().next().value===4}catch{return!1}}),Ff}var xx;function zV(){if(xx)return Tx;xx=1;var t=Z(),e=VV(),r=i2(),i=Xi(),n=!i("symmetricDifference")||!r("symmetricDifference");return t({target:"Set",proto:!0,real:!0,forced:n},{symmetricDifference:e}),Tx}var Px={},Lf,Dx;function KV(){if(Dx)return Lf;Dx=1;var t=Ui(),e=Vi().add,r=J_(),i=Ki(),n=zi();return Lf=function(a){var o=t(this),l=i(a).getIterator(),u=r(o);return n(l,function(c){e(u,c)}),u},Lf}var Ix;function XV(){if(Ix)return Px;Ix=1;var t=Z(),e=KV(),r=i2(),i=Xi(),n=!i("union")||!r("union");return t({target:"Set",proto:!0,real:!0,forced:n},{union:e}),Px}var jf,Cx;function ZV(){if(Cx)return jf;Cx=1,ii(),AV(),FV(),jV(),BV(),HV(),UV(),zV(),XV(),Bo();var t=Ke();return jf=t.Set,jf}var Gf,qx;function QV(){if(qx)return Gf;qx=1;var t=ZV();return ni(),Gf=t,Gf}var Bf,kx;function JV(){return kx||(kx=1,Bf=QV()),Bf}var ez=JV(),no=ne(ez),Wf,Ax;function tz(){if(Ax)return Wf;Ax=1,ii(),Bo();var t=ZL();return Wf=t,Wf}var Hf,Mx;function rz(){if(Mx)return Hf;Mx=1;var t=tz();return ni(),Hf=t,Hf}var Yf,Nx;function iz(){if(Nx)return Yf;Nx=1;var t=rz();return Yf=t,Yf}var Uf,Fx;function nz(){if(Fx)return Uf;Fx=1;var t=iz();return Uf=t,Uf}var Vf,Lx;function sz(){return Lx||(Lx=1,Vf=nz()),Vf}var zf,jx;function az(){return jx||(jx=1,zf=sz()),zf}var oz=az(),Kf=ne(oz);class Si{constructor(e){this._pairs=e}*[wi](){for(const[e,r]of this._pairs)yield[e,r]}*entries(){for(const[e,r]of this._pairs)yield[e,r]}*keys(){for(const[e]of this._pairs)yield e}*values(){for(const[,e]of this._pairs)yield e}toIdArray(){var e;return Dt(e=[...this._pairs]).call(e,r=>r[0])}toItemArray(){var e;return Dt(e=[...this._pairs]).call(e,r=>r[1])}toEntryArray(){return[...this._pairs]}toObjectMap(){const e=eY(null);for(const[r,i]of this._pairs)e[r]=i;return e}toMap(){return new r2(this._pairs)}toIdSet(){return new no(this.toIdArray())}toItemSet(){return new no(this.toItemArray())}cache(){return new Si([...this._pairs])}distinct(e){const r=new no;for(const[i,n]of this._pairs)r.add(e(n,i));return r}filter(e){const r=this._pairs;return new Si({*[wi](){for(const[i,n]of r)e(n,i)&&(yield[i,n])}})}forEach(e){for(const[r,i]of this._pairs)e(i,r)}map(e){const r=this._pairs;return new Si({*[wi](){for(const[i,n]of r)yield[i,e(n,i)]}})}max(e){const r=Kf(this._pairs);let i=r.next();if(i.done)return null;let n=i.value[1],s=e(i.value[1],i.value[0]);for(;!(i=r.next()).done;){const[a,o]=i.value,l=e(o,a);l>s&&(s=l,n=o)}return n}min(e){const r=Kf(this._pairs);let i=r.next();if(i.done)return null;let n=i.value[1],s=e(i.value[1],i.value[0]);for(;!(i=r.next()).done;){const[a,o]=i.value,l=e(o,a);l<s&&(s=l,n=o)}return n}reduce(e,r){for(const[i,n]of this._pairs)r=e(r,n,i);return r}sort(e){return new Si({[wi]:()=>{var r;return Kf(s_(r=[...this._pairs]).call(r,(i,n)=>{let[s,a]=i,[o,l]=n;return e(a,l,s,o)}))}})}}function Gx(t,e){var r=B_(t);if(I$){var i=I$(t);e&&(i=Ze(i).call(i,function(n){return VL(t,n).enumerable})),r.push.apply(r,i)}return r}function Bx(t){for(var e=1;e<arguments.length;e++){var r,i,n=arguments[e]!=null?arguments[e]:{};e%2?Jr(r=Gx(Object(n),!0)).call(r,function(s){Yt(t,s,n[s])}):B$?DU(t,B$(n)):Jr(i=Gx(Object(n))).call(i,function(s){zL(t,s,VL(n,s))})}return t}function lz(t,e){return t[e]==null&&(t[e]=qV()),t}class Pn extends Bs{get idProp(){return this._idProp}constructor(e,r){super(),Yt(this,"_queue",null),e&&!ar(e)&&(r=e,e=[]),this._options=r||{},this._data=new r2,this.length=0,this._idProp=this._options.fieldId||"id",e&&e.length&&this.add(e),this.setOptions(r)}setOptions(e){e&&e.queue!==void 0&&(e.queue===!1?this._queue&&(this._queue.destroy(),this._queue=null):(this._queue||(this._queue=Q_.extend(this,{replace:["add","update","remove"]})),e.queue&&typeof e.queue=="object"&&this._queue.setOptions(e.queue)))}add(e,r){const i=[];let n;if(ar(e)){const s=Dt(e).call(e,a=>a[this._idProp]);if(JU(s).call(s,a=>this._data.has(a)))throw new Error("A duplicate id was found in the parameter array.");for(let a=0,o=e.length;a<o;a++)n=this._addItem(e[a]),i.push(n)}else if(e&&typeof e=="object")n=this._addItem(e),i.push(n);else throw new Error("Unknown dataType");return i.length&&this._trigger("add",{items:i},r),i}update(e,r){const i=[],n=[],s=[],a=[],o=this._idProp,l=u=>{const c=u[o];if(c!=null&&this._data.has(c)){const h=u,d=yL({},this._data.get(c)),f=this._updateItem(h);n.push(f),a.push(h),s.push(d)}else{const h=this._addItem(u);i.push(h)}};if(ar(e))for(let u=0,c=e.length;u<c;u++)e[u]&&typeof e[u]=="object"?l(e[u]):console.warn("Ignoring input item, which is not an object at index "+u);else if(e&&typeof e=="object")l(e);else throw new Error("Unknown dataType");if(i.length&&this._trigger("add",{items:i},r),n.length){const u={items:n,oldData:s,data:a};this._trigger("update",u,r)}return zH(i).call(i,n)}updateOnly(e,r){var i;ar(e)||(e=[e]);const n=Dt(i=Dt(e).call(e,s=>{const a=this._data.get(s[this._idProp]);if(a==null)throw new Error("Updating non-existent items is not allowed.");return{oldData:a,update:s}})).call(i,s=>{let{oldData:a,update:o}=s;const l=a[this._idProp],u=oU(a,o);return this._data.set(l,u),{id:l,oldData:a,updatedData:u}});if(n.length){const s={items:Dt(n).call(n,a=>a.id),oldData:Dt(n).call(n,a=>a.oldData),data:Dt(n).call(n,a=>a.updatedData)};return this._trigger("update",s,r),s.items}else return[]}get(e,r){let i,n,s;a_(e)?(i=e,s=r):ar(e)?(n=e,s=r):s=e;const a=s&&s.returnType==="Object"?"Object":"Array",o=s&&Ze(s),l=[];let u,c,h;if(i!=null)u=this._data.get(i),u&&o&&!o(u)&&(u=void 0);else if(n!=null)for(let f=0,p=n.length;f<p;f++)u=this._data.get(n[f]),u!=null&&(!o||o(u))&&l.push(u);else{var d;c=[...yi(d=this._data).call(d)];for(let f=0,p=c.length;f<p;f++)h=c[f],u=this._data.get(h),u!=null&&(!o||o(u))&&l.push(u)}if(s&&s.order&&i==null&&this._sort(l,s.order),s&&s.fields){const f=s.fields;if(i!=null&&u!=null)u=this._filterFields(u,f);else for(let p=0,v=l.length;p<v;p++)l[p]=this._filterFields(l[p],f)}if(a=="Object"){const f={};for(let p=0,v=l.length;p<v;p++){const m=l[p],y=m[this._idProp];f[y]=m}return f}else return i!=null?u??null:l}getIds(e){const r=this._data,i=e&&Ze(e),n=e&&e.order,s=[...yi(r).call(r)],a=[];if(i)if(n){const o=[];for(let l=0,u=s.length;l<u;l++){const c=s[l],h=this._data.get(c);h!=null&&i(h)&&o.push(h)}this._sort(o,n);for(let l=0,u=o.length;l<u;l++)a.push(o[l][this._idProp])}else for(let o=0,l=s.length;o<l;o++){const u=s[o],c=this._data.get(u);c!=null&&i(c)&&a.push(c[this._idProp])}else if(n){const o=[];for(let l=0,u=s.length;l<u;l++){const c=s[l];o.push(r.get(c))}this._sort(o,n);for(let l=0,u=o.length;l<u;l++)a.push(o[l][this._idProp])}else for(let o=0,l=s.length;o<l;o++){const u=s[o],c=r.get(u);c!=null&&a.push(c[this._idProp])}return a}getDataSet(){return this}forEach(e,r){const i=r&&Ze(r),n=this._data,s=[...yi(n).call(n)];if(r&&r.order){const a=this.get(r);for(let o=0,l=a.length;o<l;o++){const u=a[o],c=u[this._idProp];e(u,c)}}else for(let a=0,o=s.length;a<o;a++){const l=s[a],u=this._data.get(l);u!=null&&(!i||i(u))&&e(u,l)}}map(e,r){const i=r&&Ze(r),n=[],s=this._data,a=[...yi(s).call(s)];for(let o=0,l=a.length;o<l;o++){const u=a[o],c=this._data.get(u);c!=null&&(!i||i(c))&&n.push(e(c,u))}return r&&r.order&&this._sort(n,r.order),n}_filterFields(e,r){var i;return e&&fL(i=ar(r)?r:B_(r)).call(i,(n,s)=>(n[s]=e[s],n),{})}_sort(e,r){if(typeof r=="string"){const i=r;s_(e).call(e,(n,s)=>{const a=n[i],o=s[i];return a>o?1:a<o?-1:0})}else if(typeof r=="function")s_(e).call(e,r);else throw new TypeError("Order must be a function or a string")}remove(e,r){const i=[],n=[],s=ar(e)?e:[e];for(let a=0,o=s.length;a<o;a++){const l=this._remove(s[a]);if(l){const u=l[this._idProp];u!=null&&(i.push(u),n.push(l))}}return i.length&&this._trigger("remove",{items:i,oldData:n},r),i}_remove(e){let r;if(a_(e)?r=e:e&&typeof e=="object"&&(r=e[this._idProp]),r!=null&&this._data.has(r)){const i=this._data.get(r)||null;return this._data.delete(r),--this.length,i}return null}clear(e){var r;const i=[...yi(r=this._data).call(r)],n=[];for(let s=0,a=i.length;s<a;s++)n.push(this._data.get(i[s]));return this._data.clear(),this.length=0,this._trigger("remove",{items:i,oldData:n},e),i}max(e){let r=null,i=null;for(const s of HR(n=this._data).call(n)){var n;const a=s[e];typeof a=="number"&&(i==null||a>i)&&(r=s,i=a)}return r||null}min(e){let r=null,i=null;for(const s of HR(n=this._data).call(n)){var n;const a=s[e];typeof a=="number"&&(i==null||a<i)&&(r=s,i=a)}return r||null}distinct(e){const r=this._data,i=[...yi(r).call(r)],n=[];let s=0;for(let a=0,o=i.length;a<o;a++){const l=i[a],c=r.get(l)[e];let h=!1;for(let d=0;d<s;d++)if(n[d]==c){h=!0;break}!h&&c!==void 0&&(n[s]=c,s++)}return n}_addItem(e){const r=lz(e,this._idProp),i=r[this._idProp];if(this._data.has(i))throw new Error("Cannot add item: item with id "+i+" already exists");return this._data.set(i,r),++this.length,i}_updateItem(e){const r=e[this._idProp];if(r==null)throw new Error("Cannot update item: item has no id (item: "+uY(e)+")");const i=this._data.get(r);if(!i)throw new Error("Cannot update item: no item with id "+r+" found");return this._data.set(r,Bx(Bx({},i),e)),r}stream(e){if(e){const i=this._data;return new Si({*[wi](){for(const n of e){const s=i.get(n);s!=null&&(yield[n,s])}}})}else{var r;return new Si({[wi]:Ti(r=RV(this._data)).call(r,this._data)})}}}class e1 extends Bs{get idProp(){return this.getDataSet().idProp}constructor(e,r){var i;super(),Yt(this,"length",0),Yt(this,"_ids",new no),this._options=r||{},this._listener=Ti(i=this._onEvent).call(i,this),this.setData(e)}setData(e){if(this._data){this._data.off&&this._data.off("*",this._listener);const r=this._data.getIds({filter:Ze(this._options)}),i=this._data.get(r);this._ids.clear(),this.length=0,this._trigger("remove",{items:r,oldData:i})}if(e!=null){this._data=e;const r=this._data.getIds({filter:Ze(this._options)});for(let i=0,n=r.length;i<n;i++){const s=r[i];this._ids.add(s)}this.length=r.length,this._trigger("add",{items:r})}else this._data=new Pn;this._data.on&&this._data.on("*",this._listener)}refresh(){const e=this._data.getIds({filter:Ze(this._options)}),r=[...this._ids],i={},n=[],s=[],a=[];for(let o=0,l=e.length;o<l;o++){const u=e[o];i[u]=!0,this._ids.has(u)||(n.push(u),this._ids.add(u))}for(let o=0,l=r.length;o<l;o++){const u=r[o],c=this._data.get(u);c==null?console.error("If you see this, report it please."):i[u]||(s.push(u),a.push(c),this._ids.delete(u))}this.length+=n.length-s.length,n.length&&this._trigger("add",{items:n}),s.length&&this._trigger("remove",{items:s,oldData:a})}get(e,r){if(this._data==null)return null;let i=null,n;a_(e)||ar(e)?(i=e,n=r):n=e;const s=yL({},this._options,n),a=Ze(this._options),o=n&&Ze(n);return a&&o&&(s.filter=l=>a(l)&&o(l)),i==null?this._data.get(s):this._data.get(i,s)}getIds(e){if(this._data.length){const r=Ze(this._options),i=e!=null?Ze(e):null;let n;return i?r?n=s=>r(s)&&i(s):n=i:n=r,this._data.getIds({filter:n,order:e&&e.order})}else return[]}forEach(e,r){if(this._data){var i;const n=Ze(this._options),s=r&&Ze(r);let a;s?n?a=function(o){return n(o)&&s(o)}:a=s:a=n,Jr(i=this._data).call(i,e,{filter:a,order:r&&r.order})}}map(e,r){if(this._data){var i;const n=Ze(this._options),s=r&&Ze(r);let a;return s?n?a=o=>n(o)&&s(o):a=s:a=n,Dt(i=this._data).call(i,e,{filter:a,order:r&&r.order})}else return[]}getDataSet(){return this._data.getDataSet()}stream(e){var r;return this._data.stream(e||{[wi]:Ti(r=yi(this._ids)).call(r,this._ids)})}dispose(){var e;(e=this._data)!==null&&e!==void 0&&e.off&&this._data.off("*",this._listener);const r="This data view has already been disposed of.",i={get:()=>{throw new Error(r)},set:()=>{throw new Error(r)},configurable:!1};for(const n of vL(e1.prototype))zL(this,n,i)}_onEvent(e,r,i){if(!r||!r.items||!this._data)return;const n=r.items,s=[],a=[],o=[],l=[],u=[],c=[];switch(e){case"add":for(let h=0,d=n.length;h<d;h++){const f=n[h];this.get(f)&&(this._ids.add(f),s.push(f))}break;case"update":for(let h=0,d=n.length;h<d;h++){const f=n[h];this.get(f)?this._ids.has(f)?(a.push(f),u.push(r.data[h]),l.push(r.oldData[h])):(this._ids.add(f),s.push(f)):this._ids.has(f)&&(this._ids.delete(f),o.push(f),c.push(r.oldData[h]))}break;case"remove":for(let h=0,d=n.length;h<d;h++){const f=n[h];this._ids.has(f)&&(this._ids.delete(f),o.push(f),c.push(r.oldData[h]))}break}this.length+=s.length-o.length,s.length&&this._trigger("add",{items:s},i),a.length&&this._trigger("update",{items:a,oldData:l,data:u},i),o.length&&this._trigger("remove",{items:o,oldData:c},i)}}function uz(t,e){return typeof e=="object"&&e!==null&&t===e.idProp&&typeof e.add=="function"&&typeof e.clear=="function"&&typeof e.distinct=="function"&&typeof Jr(e)=="function"&&typeof e.get=="function"&&typeof e.getDataSet=="function"&&typeof e.getIds=="function"&&typeof e.length=="number"&&typeof Dt(e)=="function"&&typeof e.max=="function"&&typeof e.min=="function"&&typeof e.off=="function"&&typeof e.on=="function"&&typeof e.remove=="function"&&typeof e.setOptions=="function"&&typeof e.stream=="function"&&typeof e.update=="function"&&typeof e.updateOnly=="function"}function cz(t,e){return typeof e=="object"&&e!==null&&t===e.idProp&&typeof Jr(e)=="function"&&typeof e.get=="function"&&typeof e.getDataSet=="function"&&typeof e.getIds=="function"&&typeof e.length=="number"&&typeof Dt(e)=="function"&&typeof e.off=="function"&&typeof e.on=="function"&&typeof e.stream=="function"&&uz(t,e.getDataSet())}//! moment.js
|
|
33
|
+
//! version : 2.31.0
|
|
34
|
+
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
35
|
+
//! license : MIT
|
|
36
|
+
//! momentjs.com
|
|
37
|
+
var n2;function q(){return n2.apply(null,arguments)}function hz(t){n2=t}function ur(t){return t instanceof Array||Object.prototype.toString.call(t)==="[object Array]"}function xi(t){return t!=null&&Object.prototype.toString.call(t)==="[object Object]"}function ie(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function t1(t){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(t).length===0;var e;for(e in t)if(ie(t,e))return!1;return!0}function wt(t){return t===void 0}function Fr(t){return typeof t=="number"||Object.prototype.toString.call(t)==="[object Number]"}function ga(t){return t instanceof Date||Object.prototype.toString.call(t)==="[object Date]"}function s2(t,e){var r=[],i,n=t.length;for(i=0;i<n;++i)r.push(e(t[i],i));return r}function pr(t,e){for(var r in e)ie(e,r)&&(t[r]=e[r]);return ie(e,"toString")&&(t.toString=e.toString),ie(e,"valueOf")&&(t.valueOf=e.valueOf),t}function Sr(t,e,r,i){return D2(t,e,r,i,!0).utc()}function dz(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidOffset:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function te(t){return t._pf==null&&(t._pf=dz()),t._pf}var o_;Array.prototype.some?o_=Array.prototype.some:o_=function(t){var e=Object(this),r=e.length>>>0,i;for(i=0;i<r;i++)if(i in e&&t.call(this,e[i],i,e))return!0;return!1};function r1(t){var e=null,r=!1,i=t._d&&!isNaN(t._d.getTime());if(i&&(e=te(t),r=o_.call(e.parsedDateParts,function(n){return n!=null}),i=e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidOffset&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&r),t._strict&&(i=i&&e.charsLeftOver===0&&e.unusedTokens.length===0&&e.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(t))t._isValid=i;else return i;return t._isValid}function ya(t){var e=Sr(NaN);return t!=null?pr(te(e),t):te(e).userInvalidated=!0,e}var Wx=q.momentProperties=[],Xf=!1;function i1(t,e){var r,i,n,s=Wx.length;if(wt(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),wt(e._i)||(t._i=e._i),wt(e._f)||(t._f=e._f),wt(e._l)||(t._l=e._l),wt(e._strict)||(t._strict=e._strict),wt(e._tzm)||(t._tzm=e._tzm),wt(e._isUTC)||(t._isUTC=e._isUTC),wt(e._offset)||(t._offset=e._offset),wt(e._pf)||(t._pf=te(e)),wt(e._locale)||(t._locale=e._locale),s>0)for(r=0;r<s;r++)i=Wx[r],n=e[i],wt(n)||(t[i]=n);return t}function ba(t){i1(this,t),this._d=new Date(t._d!=null?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Xf===!1&&(Xf=!0,q.updateOffset(this),Xf=!1)}function Mt(t){return t instanceof ba||t!=null&&t._isAMomentObject!=null}function a2(t){q.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+t)}function Qt(t,e){var r=!0;return pr(function(){if(q.deprecationHandler!=null&&q.deprecationHandler(null,t),r){var i=[],n,s,a,o=arguments.length;for(s=0;s<o;s++){if(n="",typeof arguments[s]=="object"){n+=`
|
|
38
|
+
[`+s+"] ";for(a in arguments[0])ie(arguments[0],a)&&(n+=a+": "+arguments[0][a]+", ");n=n.slice(0,-2)}else n=arguments[s];i.push(n)}a2(t+`
|
|
39
|
+
Arguments: `+Array.prototype.slice.call(i).join("")+`
|
|
40
|
+
`+new Error().stack),r=!1}return e.apply(this,arguments)},e)}var Hx={};function o2(t,e){q.deprecationHandler!=null&&q.deprecationHandler(t,e),Hx[t]||(a2(e+`
|
|
41
|
+
`+new Error().stack),Hx[t]=!0)}q.suppressDeprecationWarnings=!1;q.deprecationHandler=null;function Or(t){return typeof Function<"u"&&t instanceof Function||Object.prototype.toString.call(t)==="[object Function]"}var Yx={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Jt(t){return typeof t=="string"?Yx[t]||Yx[t.toLowerCase()]:void 0}function n1(t){var e={},r,i;for(i in t)ie(t,i)&&(r=Jt(i),r&&(e[r]=t[i]));return e}var fz={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function pz(t){var e=[],r;for(r in t)ie(t,r)&&e.push({unit:r,priority:fz[r]});return e.sort(function(i,n){return i.priority-n.priority}),e}function zt(t,e,r){var i=""+Math.abs(t),n=e-i.length,s=t>=0;return(s?r?"+":"":"-")+Math.pow(10,Math.max(0,n)).toString().substr(1)+i}var s1=/(\[[^\[]*\])|(\\e)|(\\)?(eHHmm|[Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Va=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Zf={},wn={};function H(t,e,r,i){var n=i;typeof i=="string"&&(n=function(){return this[i]()}),t&&(wn[t]=n),e&&(wn[e[0]]=function(){return zt(n.apply(this,arguments),e[1],e[2])}),r&&(wn[r]=function(){return this.localeData().ordinal(n.apply(this,arguments),t)})}function vz(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function mz(t){var e=t.match(s1),r,i;for(r=0,i=e.length;r<i;r++)wn[e[r]]?e[r]=wn[e[r]]:e[r]=vz(e[r]);return function(n){var s="",a;for(a=0;a<i;a++)s+=Or(e[a])?e[a].call(n,t):e[a];return s}}function so(t,e){if(!t.isValid())return t.localeData().invalidDate();e=l2(e,t.localeData());var r="$"+e;return ie(Zf,r)||(Zf[r]=mz(e)),Zf[r](t)}function l2(t,e){var r=5;function i(n){return e.longDateFormat(n)||n}for(Va.lastIndex=0;r>=0&&Va.test(t);)t=t.replace(Va,i),Va.lastIndex=0,r-=1;return t}var u2=/\d/,Lt=/\d\d/,c2=/\d{3}/,a1=/\d{4}/,Uo=/[+-]?\d{6}/,$e=/\d\d?/,h2=/\d\d\d\d?/,o1=/\d\d\d\d\d\d?/,Vo=/\d{1,3}/,l1=/\d{1,4}/,zo=/[+-]?\d{1,6}/,zn=/\d+/,Ko=/[+-]?\d+/,gz=/Z|[+-]\d\d:?\d\d/gi,Xo=/Z|[+-]\d\d(?::?\d\d)?/gi,yz=/[+-]?\d+(\.\d{1,3})?/,_a=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Kn=/^[1-9]\d?/,u1=/^([1-9]\d|\d)/,po;po={};function N(t,e,r){po[t]=Or(e)?e:function(i,n){return i&&r?r:e}}function bz(t,e){return ie(po,t)?po[t](e._strict,e._locale):new RegExp(_z(t))}function _z(t){return qr(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,r,i,n,s){return r||i||n||s}))}function qr(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Bt(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function re(t){var e=+t,r=0;return e!==0&&isFinite(e)&&(r=Bt(e)),r}var l_={};function _e(t,e){var r,i=e,n;for(typeof t=="string"&&(t=[t]),Fr(e)&&(i=function(s,a){a[e]=re(s)}),n=t.length,r=0;r<n;r++)l_[t[r]]=i}function Xn(t,e){_e(t,function(r,i,n,s){n._w=n._w||{},e(r,n._w,n,s)})}function wz(t,e,r){e!=null&&ie(l_,t)&&l_[t](e,r._a,r,t)}function Zo(t){return t%4===0&&t%100!==0||t%400===0}var Fe=0,At=1,St=2,Be=3,Wt=4,Pr=5,Oi=6,Sz=7,Oz=8;H("Y",0,0,function(){var t=this.year();return t<=9999?zt(t,4):"+"+t});H(0,["YY",2],0,function(){return this.year()%100});H(0,["YYYY",4],0,"year");H(0,["YYYYY",5],0,"year");H(0,["YYYYYY",6,!0],0,"year");N("Y",Ko);N("YY",$e,Lt);N("YYYY",l1,a1);N("YYYYY",zo,Uo);N("YYYYYY",zo,Uo);_e(["YYYYY","YYYYYY"],Fe);_e("YYYY",function(t,e){e[Fe]=t.length===2?q.parseTwoDigitYear(t):re(t)});_e("YY",function(t,e){e[Fe]=q.parseTwoDigitYear(t)});_e("Y",function(t,e){e[Fe]=parseInt(t,10)});function Ds(t){return Zo(t)?366:365}q.parseTwoDigitYear=function(t){return re(t)+(re(t)>68?1900:2e3)};var d2=Zn("FullYear",!0);function Ez(){return Zo(this.year())}function Zn(t,e){return function(r){return r!=null?(f2(this,t,r),q.updateOffset(this,e),this):Ws(this,t)}}function Ws(t,e){if(!t.isValid())return NaN;var r=t._d,i=t._isUTC;switch(e){case"Milliseconds":return i?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return i?r.getUTCSeconds():r.getSeconds();case"Minutes":return i?r.getUTCMinutes():r.getMinutes();case"Hours":return i?r.getUTCHours():r.getHours();case"Date":return i?r.getUTCDate():r.getDate();case"Day":return i?r.getUTCDay():r.getDay();case"Month":return i?r.getUTCMonth():r.getMonth();case"FullYear":return i?r.getUTCFullYear():r.getFullYear();default:return NaN}}function f2(t,e,r){var i,n,s,a,o;if(!(!t.isValid()||isNaN(r))){switch(i=t._d,n=t._isUTC,e){case"Milliseconds":return void(n?i.setUTCMilliseconds(r):i.setMilliseconds(r));case"Seconds":return void(n?i.setUTCSeconds(r):i.setSeconds(r));case"Minutes":return void(n?i.setUTCMinutes(r):i.setMinutes(r));case"Hours":return void(n?i.setUTCHours(r):i.setHours(r));case"Date":return void(n?i.setUTCDate(r):i.setDate(r));case"FullYear":break;default:return}s=r,a=t.month(),o=t.date(),o=o===29&&a===1&&!Zo(s)?28:o,n?i.setUTCFullYear(s,a,o):i.setFullYear(s,a,o)}}function Tz(t){return t=Jt(t),Or(this[t])?this[t]():this}function $z(t,e){if(typeof t=="object"){t=n1(t);var r=pz(t),i,n=r.length;for(i=0;i<n;i++)this[r[i].unit](t[r[i].unit])}else if(t=Jt(t),Or(this[t]))return this[t](e);return this}function Rz(t,e){return(t%e+e)%e}var Ne;Array.prototype.indexOf?Ne=Array.prototype.indexOf:Ne=function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1};function c1(t,e){if(isNaN(t)||isNaN(e))return NaN;var r=Rz(e,12);return t+=(e-r)/12,r===1?Zo(t)?29:28:31-r%7%2}H("M",["MM",2],"Mo",function(){return this.month()+1});H("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)});H("MMMM",0,0,function(t){return this.localeData().months(this,t)});N("M",$e,Kn);N("MM",$e,Lt);N("MMM",function(t,e){return e.monthsShortRegex(t)});N("MMMM",function(t,e){return e.monthsRegex(t)});_e(["M","MM"],function(t,e){e[At]=re(t)-1});_e(["MMM","MMMM"],function(t,e,r,i){var n=r._locale.monthsParse(t,i,r._strict);n!=null?e[At]=n:te(r).invalidMonth=t});var xz="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),p2="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),v2=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Pz=_a,Dz=_a,Ux=["monthsParse","longMonthsParse","shortMonthsParse","monthsRegex","monthsShortRegex","monthsStrictRegex","monthsShortStrictRegex"];function Iz(t,e){var r,i;for(r=0;r<Ux.length;r++)i=Ux[r],ie(e,i)||delete t["_"+i]}function Cz(t,e){return t?ur(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||v2).test(e)?"format":"standalone"][t.month()]:ur(this._months)?this._months:this._months.standalone}function qz(t,e){return t?ur(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[v2.test(e)?"format":"standalone"][t.month()]:ur(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function kz(t,e,r){var i,n,s,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)s=Sr([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(s,"").toLocaleLowerCase();return r?e==="MMM"?(n=Ne.call(this._shortMonthsParse,a),n!==-1?n:null):(n=Ne.call(this._longMonthsParse,a),n!==-1?n:null):e==="MMM"?(n=Ne.call(this._shortMonthsParse,a),n!==-1?n:(n=Ne.call(this._longMonthsParse,a),n!==-1?n:null)):(n=Ne.call(this._longMonthsParse,a),n!==-1?n:(n=Ne.call(this._shortMonthsParse,a),n!==-1?n:null))}function Az(t,e,r){var i,n,s;if(this._monthsParseExact)return kz.call(this,t,e,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(n=Sr([2e3,i]),r&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),!r&&!this._monthsParse[i]&&(s="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[i]=new RegExp(s.replace(".",""),"i")),r&&e==="MMMM"&&this._longMonthsParse[i].test(t))return i;if(r&&e==="MMM"&&this._shortMonthsParse[i].test(t))return i;if(!r&&this._monthsParse[i].test(t))return i}}function m2(t,e){if(!t.isValid())return t;if(typeof e=="string"){if(/^\d+$/.test(e))e=re(e);else if(e=t.localeData().monthsParse(e),!Fr(e))return t}var r=e,i=t.date();return i=i<29?i:Math.min(i,c1(t.year(),r)),t._isUTC?t._d.setUTCMonth(r,i):t._d.setMonth(r,i),t}function g2(t){return t!=null?(m2(this,t),q.updateOffset(this,!0),this):Ws(this,"Month")}function Mz(){return c1(this.year(),this.month())}function Nz(t){return this._monthsParseExact?(ie(this,"_monthsRegex")||y2.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(ie(this,"_monthsShortRegex")||(this._monthsShortRegex=Pz),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function Fz(t){return this._monthsParseExact?(ie(this,"_monthsRegex")||y2.call(this),t?this._monthsStrictRegex:this._monthsRegex):(ie(this,"_monthsRegex")||(this._monthsRegex=Dz),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function y2(){function t(l,u){return u.length-l.length}var e=[],r=[],i=[],n,s,a,o;for(n=0;n<12;n++)s=Sr([2e3,n]),a=qr(this.monthsShort(s,"")),o=qr(this.months(s,"")),e.push(a),r.push(o),i.push(o),i.push(a);e.sort(t),r.sort(t),i.sort(t),this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+e.join("|")+")","i")}H("d",0,"do","day");H("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)});H("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)});H("dddd",0,0,function(t){return this.localeData().weekdays(this,t)});H("e",0,0,"weekday");H("E",0,0,"isoWeekday");H("eHHmm",0,0,function(){return""+this.weekday()+zt(this.hours(),2)+zt(this.minutes(),2)});N("d",$e);N("e",$e);N("E",$e);N("eHHmm",o1);N("dd",function(t,e){return e.weekdaysMinRegex(t)});N("ddd",function(t,e){return e.weekdaysShortRegex(t)});N("dddd",function(t,e){return e.weekdaysRegex(t)});Xn(["dd","ddd","dddd"],function(t,e,r,i){var n=r._locale.weekdaysParse(t,i,r._strict);n!=null?e.d=n:te(r).invalidWeekday=t});Xn(["d","e","E"],function(t,e,r,i){e[i]=re(t)});Xn("eHHmm",function(t,e,r){var i=t.length-4;e.e=re(t.substr(0,i)),r._a[Be]=re(t.substr(i,2)),r._a[Wt]=re(t.substr(i+2))});function Lz(t,e){return typeof t!="string"?t:isNaN(t)?(t=e.weekdaysParse(t),typeof t=="number"?t:null):parseInt(t,10)}function jz(t,e){return typeof t=="string"?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function h1(t,e){return t.slice(e,7).concat(t.slice(0,e))}var Gz="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),b2="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Bz="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Wz=_a,Hz=_a,Yz=_a,Vx=["weekdaysParse","fullWeekdaysParse","shortWeekdaysParse","minWeekdaysParse","weekdaysRegex","weekdaysShortRegex","weekdaysMinRegex","weekdaysStrictRegex","weekdaysShortStrictRegex","weekdaysMinStrictRegex"];function Uz(t,e){var r,i;for(r=0;r<Vx.length;r++)i=Vx[r],ie(e,i)||delete t["_"+i]}function Vz(t,e){var r=ur(this._weekdays)?this._weekdays:this._weekdays[t&&t!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return t===!0?h1(r,this._week.dow):t?r[t.day()]:r}function zz(t){return t===!0?h1(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function Kz(t){return t===!0?h1(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function Xz(t,e,r){var i,n,s,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)s=Sr([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(s,"").toLocaleLowerCase();return r?e==="dddd"?(n=Ne.call(this._weekdaysParse,a),n!==-1?n:null):e==="ddd"?(n=Ne.call(this._shortWeekdaysParse,a),n!==-1?n:null):(n=Ne.call(this._minWeekdaysParse,a),n!==-1?n:null):e==="dddd"?(n=Ne.call(this._weekdaysParse,a),n!==-1||(n=Ne.call(this._shortWeekdaysParse,a),n!==-1)?n:(n=Ne.call(this._minWeekdaysParse,a),n!==-1?n:null)):e==="ddd"?(n=Ne.call(this._shortWeekdaysParse,a),n!==-1||(n=Ne.call(this._weekdaysParse,a),n!==-1)?n:(n=Ne.call(this._minWeekdaysParse,a),n!==-1?n:null)):(n=Ne.call(this._minWeekdaysParse,a),n!==-1||(n=Ne.call(this._weekdaysParse,a),n!==-1)?n:(n=Ne.call(this._shortWeekdaysParse,a),n!==-1?n:null))}function Zz(t,e,r){var i,n,s;if(this._weekdaysParseExact)return Xz.call(this,t,e,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(n=Sr([2e3,1]).day(i),r&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(s="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[i]=new RegExp(s.replace(".",""),"i")),r&&e==="dddd"&&this._fullWeekdaysParse[i].test(t))return i;if(r&&e==="ddd"&&this._shortWeekdaysParse[i].test(t))return i;if(r&&e==="dd"&&this._minWeekdaysParse[i].test(t))return i;if(!r&&this._weekdaysParse[i].test(t))return i}}function Qz(t){if(!this.isValid())return t!=null?this:NaN;var e=Ws(this,"Day");return t!=null?(t=Lz(t,this.localeData()),this.add(t-e,"d")):e}function Jz(t){if(!this.isValid())return t!=null?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return t==null?e:this.add(t-e,"d")}function e3(t){if(!this.isValid())return t!=null?this:NaN;if(t!=null){var e=jz(t,this.localeData());return this.day(this.day()%7?e:e-7)}else return this.day()||7}function t3(t){return this._weekdaysParseExact?(ie(this,"_weekdaysRegex")||d1.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(ie(this,"_weekdaysRegex")||(this._weekdaysRegex=Wz),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function r3(t){return this._weekdaysParseExact?(ie(this,"_weekdaysRegex")||d1.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(ie(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Hz),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function i3(t){return this._weekdaysParseExact?(ie(this,"_weekdaysRegex")||d1.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(ie(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Yz),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function d1(){function t(c,h){return h.length-c.length}var e=[],r=[],i=[],n=[],s,a,o,l,u;for(s=0;s<7;s++)a=Sr([2e3,1]).day(s),o=qr(this.weekdaysMin(a,"")),l=qr(this.weekdaysShort(a,"")),u=qr(this.weekdays(a,"")),e.push(o),r.push(l),i.push(u),n.push(o),n.push(l),n.push(u);e.sort(t),r.sort(t),i.sort(t),n.sort(t),this._weekdaysRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function n3(t){var e,r;Iz(this,t),Uz(this,t);for(r in t)ie(t,r)&&(e=t[r],Or(e)?this[r]=e:this["_"+r]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function u_(t,e){var r=pr({},t),i;for(i in e)ie(e,i)&&(xi(t[i])&&xi(e[i])?(r[i]={},pr(r[i],t[i]),pr(r[i],e[i])):e[i]!=null?r[i]=e[i]:delete r[i]);for(i in t)ie(t,i)&&!ie(e,i)&&xi(t[i])&&(r[i]=pr({},r[i]));return r}function f1(t){t!=null&&this.set(t)}var c_;Object.keys?c_=Object.keys:c_=function(t){var e,r=[];for(e in t)ie(t,e)&&r.push(e);return r};var s3={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function a3(t,e,r){var i=this._calendar[t]||this._calendar.sameElse;return Or(i)?i.call(e,r):i}var o3={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function l3(t){var e=this._longDateFormat[t],r=this._longDateFormat[t.toUpperCase()],i=this._longDateFormatCache;return e||!r?e:i&&i[t]&&i[t].formatUpper===r?i[t].format:(e=r.match(s1).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),i||(i=this._longDateFormatCache={}),i[t]={formatUpper:r,format:e},e)}var u3="Invalid date";function c3(){return this._invalidDate}var h3="%d",d3=/\d{1,2}/;function f3(t){return this._ordinal.replace("%d",t)}var p3={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function _2(t,e,r,i){var n=this._relativeTime[r];return Or(n)?n(t,e,r,i):n.replace(/%d/i,t)}function v3(t,e,r,i){return this.postformat(_2.call(this,t,e,r,i))}function w2(t,e){var r=this._relativeTime[t>0?"future":"past"];return Or(r)?r(e):r.replace(/%s/i,e)}function m3(t,e){return this.postformat(w2.call(this,t,e))}function g3(t,e,r,i,n,s,a){var o;return t<100&&t>=0?(o=new Date(t+400,e,r,i,n,s,a),isFinite(o.getFullYear())&&o.setFullYear(t)):o=new Date(t,e,r,i,n,s,a),o}function ki(t){var e,r;return t<100&&t>=0?(r=Array.prototype.slice.call(arguments),r[0]=t+400,e=new Date(Date.UTC.apply(null,r)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function vo(t,e,r){var i=7+e-r,n=(7+ki(t,0,i).getUTCDay()-e)%7;return-n+i-1}function S2(t,e,r,i,n){var s=(7+r-i)%7,a=vo(t,i,n),o=1+7*(e-1)+s+a,l,u;return o<=0?(l=t-1,u=Ds(l)+o):o>Ds(t)?(l=t+1,u=o-Ds(t)):(l=t,u=o),{year:l,dayOfYear:u}}function O2(t,e,r,i){var n=vo(t,r,i),s=Math.floor((e-n-1)/7)+1,a,o;return s<1?(o=t-1,a=s+kr(o,r,i)):s>kr(t,r,i)?(a=s-kr(t,r,i),o=t+1):(o=t,a=s),{week:a,year:o}}function p1(t,e,r){return O2(t.year(),t.dayOfYear(),e,r)}function zx(t,e,r,i,n){var s=Math.round((ki(t,e,r)-ki(t,0,1))/864e5)+1;return O2(t,s,i,n)}function kr(t,e,r){var i=vo(t,e,r),n=vo(t+1,e,r);return(Ds(t)-i+n)/7}H("w",["ww",2],"wo","week");H("W",["WW",2],"Wo","isoWeek");N("w",$e,Kn);N("ww",$e,Lt);N("W",$e,Kn);N("WW",$e,Lt);Xn(["w","ww","W","WW"],function(t,e,r,i){e[i.substr(0,1)]=re(t)});function y3(t){return p1(t,this._week.dow,this._week.doy).week}var b3={dow:0,doy:6};function _3(){return this._week.dow}function w3(){return this._week.doy}function S3(t){var e=this.localeData().week(this);return t==null?e:this.add((t-e)*7,"d")}function O3(t){var e=p1(this,1,4).week;return t==null?e:this.add((t-e)*7,"d")}function v1(){return this.hours()%12||12}function E3(){return this.hours()||24}H("H",["HH",2],0,"hour");H("h",["hh",2],0,v1);H("k",["kk",2],0,E3);H("hmm",0,0,function(){return""+v1.apply(this)+zt(this.minutes(),2)});H("hmmss",0,0,function(){return""+v1.apply(this)+zt(this.minutes(),2)+zt(this.seconds(),2)});H("Hmm",0,0,function(){return""+this.hours()+zt(this.minutes(),2)});H("Hmmss",0,0,function(){return""+this.hours()+zt(this.minutes(),2)+zt(this.seconds(),2)});function E2(t,e){H(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}E2("a",!0);E2("A",!1);function T2(t,e){return e._meridiemParse}N("a",T2);N("A",T2);N("H",$e,u1);N("h",$e,Kn);N("k",$e,Kn);N("HH",$e,Lt);N("hh",$e,Lt);N("kk",$e,Lt);N("hmm",h2);N("hmmss",o1);N("Hmm",h2);N("Hmmss",o1);_e(["H","HH"],Be);_e(["k","kk"],function(t,e,r){var i=re(t);e[Be]=i===24?0:i});_e(["a","A"],function(t,e,r){r._isPm=r._locale.isPM(t),r._meridiem=t});_e(["h","hh"],function(t,e,r){e[Be]=re(t),te(r).bigHour=!0});_e("hmm",function(t,e,r){var i=t.length-2;e[Be]=re(t.substr(0,i)),e[Wt]=re(t.substr(i)),te(r).bigHour=!0});_e("hmmss",function(t,e,r){var i=t.length-4,n=t.length-2;e[Be]=re(t.substr(0,i)),e[Wt]=re(t.substr(i,2)),e[Pr]=re(t.substr(n)),te(r).bigHour=!0});_e("Hmm",function(t,e,r){var i=t.length-2;e[Be]=re(t.substr(0,i)),e[Wt]=re(t.substr(i))});_e("Hmmss",function(t,e,r){var i=t.length-4,n=t.length-2;e[Be]=re(t.substr(0,i)),e[Wt]=re(t.substr(i,2)),e[Pr]=re(t.substr(n))});function T3(t){return(t+"").toLowerCase().charAt(0)==="p"}var $3=/[ap]\.?m?\.?/i,R3=Zn("Hours",!0);function x3(t,e,r){return t>11?r?"pm":"PM":r?"am":"AM"}var $2={calendar:s3,longDateFormat:o3,invalidDate:u3,ordinal:h3,dayOfMonthOrdinalParse:d3,relativeTime:p3,months:xz,monthsShort:p2,week:b3,weekdays:Gz,weekdaysMin:Bz,weekdaysShort:b2,meridiemParse:$3},ye={},_s={},Hs;function P3(t,e){var r,i=Math.min(t.length,e.length);for(r=0;r<i;r+=1)if(t[r]!==e[r])return r;return i}function h_(t){return t&&t.toLowerCase().replace("_","-")}function D3(t){for(var e=0,r,i,n,s;e<t.length;){for(s=h_(t[e]).split("-"),r=s.length,i=h_(t[e+1]),i=i?i.split("-"):null;r>0;){if(n=Qo(s.slice(0,r).join("-")),n)return n;if(i&&i.length>=r&&P3(s,i)>=r-1)break;r--}e++}return Hs}function I3(t){return typeof t=="string"&&/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(t)}function Qo(t){var e=null,r,i;if(ie(ye,t))return ye[t];if(i=h_(t),ie(ye,i))return ye[i];if(typeof module<"u"&&module&&module.exports&&I3(i))try{e=Hs._abbr,r=require,r("./locale/"+i),Zr(e)}catch{ye[i]=null}if(ie(ye,i))return ye[i]}function Zr(t,e){var r;return t&&(wt(e)?r=Br(t):r=m1(t,e),r?Hs=r:typeof console<"u"&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Hs._abbr}function m1(t,e){if(e!==null){var r,i=$2;if(e.abbr=t,ye[t]!=null)o2("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=ye[t]._config;else if(e.parentLocale!=null)if(ye[e.parentLocale]!=null)i=ye[e.parentLocale]._config;else if(r=Qo(e.parentLocale),r!=null)i=r._config;else return _s[e.parentLocale]||(_s[e.parentLocale]=[]),_s[e.parentLocale].push({name:t,config:e}),null;return ye[t]=new f1(u_(i,e)),_s[t]&&_s[t].forEach(function(n){m1(n.name,n.config)}),Zr(t),ye[t]}else return delete ye[t],null}function C3(t,e){var r,i=Qo(t),n=$2;return i!=null&&(t=i._abbr),e!=null?(ye[t]!=null&&ye[t].parentLocale!=null?ye[t].set(u_(ye[t]._config,e)):(i!=null&&(n=i._config),e=u_(n,e),i==null&&(e.abbr=t),r=new f1(e),r.parentLocale=ye[t],ye[t]=r),Zr(t)):ye[t]!=null&&(ye[t].parentLocale!=null?(ye[t]=ye[t].parentLocale,t===Zr()&&Zr(t)):ye[t]!=null&&delete ye[t]),ye[t]}function Br(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Hs;if(!ur(t)){if(e=Qo(t),e)return e;t=[t]}return D3(t)}function q3(){return c_(ye)}function g1(t){var e,r=t._a;return r&&te(t).overflow===-2&&(e=r[At]<0||r[At]>11?At:r[St]<1||r[St]>c1(r[Fe],r[At])?St:r[Be]<0||r[Be]>24||r[Be]===24&&(r[Wt]!==0||r[Pr]!==0||r[Oi]!==0)?Be:r[Wt]<0||r[Wt]>59?Wt:r[Pr]<0||r[Pr]>59?Pr:r[Oi]<0||r[Oi]>999?Oi:-1,te(t)._overflowDayOfYear&&(e<Fe||e>St)&&(e=St),te(t)._overflowWeeks&&e===-1&&(e=Sz),te(t)._overflowWeekday&&e===-1&&(e=Oz),te(t).overflow=e),t}var k3=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,A3=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,M3=/Z|[+-]\d\d(?::?\d\d)?/,za=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Qf=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],N3=/^\/?Date\((-?\d+)/i,F3=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,L3={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function R2(t){var e,r,i=t._i,n=k3.exec(i)||A3.exec(i),s,a,o,l,u=za.length,c=Qf.length;if(n){for(te(t).iso=!0,e=0,r=u;e<r;e++)if(za[e][1].exec(n[1])){a=za[e][0],s=za[e][2]!==!1;break}if(a==null){t._isValid=!1;return}if(n[3]){for(e=0,r=c;e<r;e++)if(Qf[e][1].exec(n[3])){o=(n[2]||" ")+Qf[e][0];break}if(o==null){t._isValid=!1;return}}if(!s&&o!=null){t._isValid=!1;return}if(n[4])if(M3.exec(n[4]))l="Z";else{t._isValid=!1;return}t._f=a+(o||"")+(l||""),b1(t)}else t._isValid=!1}function j3(t,e,r,i,n,s){var a=[G3(t),p2.indexOf(e),parseInt(r,10),parseInt(i,10),parseInt(n,10)];return s&&a.push(parseInt(s,10)),a}function G3(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function B3(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function W3(t,e,r){if(t){var i=b2.indexOf(t),n=new Date(e[0],e[1],e[2]).getDay();if(i!==n)return te(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function H3(t,e,r){if(t)return L3[t];if(e)return 0;var i=parseInt(r,10),n=i%100,s=(i-n)/100;return s*60+n}function x2(t){var e=F3.exec(B3(t._i)),r;if(e){if(r=j3(e[4],e[3],e[2],e[5],e[6],e[7]),!W3(e[1],r,t))return;t._a=r,t._tzm=H3(e[8],e[9],e[10]),t._d=ki.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),te(t).rfc2822=!0}else t._isValid=!1}function Y3(t){var e=N3.exec(t._i);if(e!==null){t._d=new Date(+e[1]);return}if(R2(t),t._isValid===!1)delete t._isValid;else return;if(x2(t),t._isValid===!1)delete t._isValid;else return;t._strict?t._isValid=!1:q.createFromInputFallback(t)}q.createFromInputFallback=Qt("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))});function ws(t,e,r){return t??e??r}function Kx(t,e,r){var i=Object.prototype.hasOwnProperty.call(t,"_isDefaultDatePartsForWeek"),n=t._isDefaultDatePartsForWeek;t._isDefaultDatePartsForWeek=!!r;try{return q._getDefaultDateParts(t,e,r)}finally{i?t._isDefaultDatePartsForWeek=n:delete t._isDefaultDatePartsForWeek}}function U3(t){var e=t._defaultDatePartsNow;return e?(e.hasValue||(e.value=q.now(),e.hasValue=!0),e.value):q.now()}function V3(t,e,r){var i=r||t._isDefaultDatePartsForWeek,n=i?Ie(e):new Date(e);return i?[n.year(),n.month(),n.date()]:t._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}q._getDefaultDateParts=V3;function y1(t){var e,r,i=[],n,s,a,o,l;if(!t._d){for((t._a[Fe]==null||t._a[At]==null||t._a[St]==null)&&(n=U3(t),s=Kx(t,n)),t._w&&t._a[St]==null&&t._a[At]==null&&z3(t,Kx(t,n,!0)),t._dayOfYear!=null&&(o=t._a[Fe]!=null?t._a[Fe]:s[Fe],(t._dayOfYear>Ds(o)||t._dayOfYear===0)&&(te(t)._overflowDayOfYear=!0),r=ki(o,0,t._dayOfYear),t._a[At]=r.getUTCMonth(),t._a[St]=r.getUTCDate()),l=t._a[Fe]==null||t._a[At]==null||t._a[St]==null,e=0;e<3&&t._a[e]==null;++e)t._a[e]=i[e]=s[e];for(;e<7;e++)t._a[e]=i[e]=t._a[e]==null?e===2?1:0:t._a[e];t._a[Be]===24&&t._a[Wt]===0&&t._a[Pr]===0&&t._a[Oi]===0&&(t._nextDay=!0,t._a[Be]=0),t._d=(t._useUTC?ki:g3).apply(null,i),a=t._useUTC?t._d.getUTCDay():t._d.getDay(),t._tzm!=null&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Be]=24),t._w&&typeof t._w.d<"u"&&!l&&t._w.d!==a&&(te(t).weekdayMismatch=!0)}}function z3(t,e){var r,i,n,s,a,o,l,u,c;r=t._w,r.GG!=null||r.W!=null||r.E!=null?(a=1,o=4,i=ws(r.GG,t._a[Fe],zx(e[Fe],e[At],e[St],1,4).year),n=ws(r.W,1),s=ws(r.E,1),(s<1||s>7)&&(u=!0)):(a=t._locale._week.dow,o=t._locale._week.doy,c=zx(e[Fe],e[At],e[St],a,o),i=ws(r.gg,t._a[Fe],c.year),n=ws(r.w,c.week),r.d!=null?(s=r.d,(s<0||s>6)&&(u=!0)):r.e!=null?(s=r.e+a,(r.e<0||r.e>6)&&(u=!0)):s=a),n<1||n>kr(i,a,o)?te(t)._overflowWeeks=!0:u!=null?te(t)._overflowWeekday=!0:(l=S2(i,n,s,a,o),t._a[Fe]=l.year,t._dayOfYear=l.dayOfYear)}q.ISO_8601=function(){};q.RFC_2822=function(){};function b1(t){if(t._f===q.ISO_8601){R2(t);return}if(t._f===q.RFC_2822){x2(t);return}t._a=[],te(t).empty=!0;var e=""+t._i,r,i,n,s,a,o=e.length,l=0,u,c;for(n=l2(t._f,t._locale).match(s1)||[],c=n.length,r=0;r<c;r++)s=n[r],i=(e.match(bz(s,t))||[])[0],i&&(a=e.substr(0,e.indexOf(i)),a.length>0&&te(t).unusedInput.push(a),e=e.slice(e.indexOf(i)+i.length),l+=i.length),wn[s]?(i?te(t).empty=!1:te(t).unusedTokens.push(s),wz(s,i,t)):t._strict&&!i&&te(t).unusedTokens.push(s);te(t).charsLeftOver=o-l,e.length>0&&te(t).unusedInput.push(e),t._a[Be]<=12&&te(t).bigHour===!0&&t._a[Be]>0&&(te(t).bigHour=void 0),te(t).parsedDateParts=t._a.slice(0),te(t).meridiem=t._meridiem,t._a[Be]=K3(t._locale,t._a[Be],t._meridiem),u=te(t).era,u!==null&&(t._a[Fe]=t._locale.erasConvertYear(u,t._a[Fe])),y1(t),g1(t)}function K3(t,e,r){var i;return r==null?e:t.meridiemHour!=null?t.meridiemHour(e,r):(t.isPM!=null&&(i=t.isPM(r),i&&e<12&&(e+=12),!i&&e===12&&(e=0)),e)}function X3(t){var e,r,i,n,s,a,o=!1,l={},u=t._f.length;if(u===0){te(t).invalidFormat=!0,t._d=new Date(NaN);return}for(n=0;n<u;n++)s=0,a=!1,e=i1({},t),t._useUTC!=null&&(e._useUTC=t._useUTC),e._defaultDatePartsNow=l,e._f=t._f[n],b1(e),r1(e)&&(a=!0),s+=te(e).charsLeftOver,s+=te(e).unusedTokens.length*10,te(e).score=s,o?s<i&&(i=s,r=e):(i==null||s<i||a)&&(i=s,r=e,a&&(o=!0));pr(t,r||e)}function Z3(t){if(!t._d){var e=n1(t._i),r=e.day===void 0?e.date:e.day;t._a=s2([e.year,e.month,r,e.hour,e.minute,e.second,e.millisecond],function(i){return i&&parseInt(i,10)}),y1(t)}}function Q3(t){var e=new ba(g1(P2(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function P2(t){var e=t._i,r=t._f;return t._locale=t._locale||Br(t._l),e===null||r===void 0&&e===""?ya({nullInput:!0}):(typeof e=="string"&&(t._i=e=t._locale.preparse(e)),Mt(e)?new ba(g1(e)):(ga(e)?t._d=e:ur(r)?X3(t):r?b1(t):J3(t),r1(t)||(t._d=null),t))}function J3(t){var e=t._i;wt(e)?t._d=new Date(q.now()):ga(e)?t._d=new Date(e.valueOf()):typeof e=="string"?Y3(t):ur(e)?(t._a=s2(e.slice(0),function(r){return parseInt(r,10)}),y1(t)):xi(e)?Z3(t):Fr(e)?t._d=new Date(e):q.createFromInputFallback(t)}function D2(t,e,r,i,n){var s={};return(e===!0||e===!1)&&(i=e,e=void 0),(r===!0||r===!1)&&(i=r,r=void 0),(xi(t)&&t1(t)||ur(t)&&t.length===0)&&(t=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=n,s._l=r,s._i=t,s._f=e,s._strict=i,Q3(s)}function Ie(t,e,r,i){return D2(t,e,r,i,!1)}var e5=Qt("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Ie.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:ya()}),t5=Qt("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Ie.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:ya()});function I2(t,e){var r,i;if(e.length===1&&ur(e[0])&&(e=e[0]),!e.length)return Ie();for(i=0;i<e.length;++i)if(Mt(e[i])){r=e[i];break}if(!r)return ya();for(++i;i<e.length;++i)Mt(e[i])&&(!e[i].isValid()||e[i][t](r))&&(r=e[i]);return r}function r5(){var t=[].slice.call(arguments,0);return I2("isBefore",t)}function i5(){var t=[].slice.call(arguments,0);return I2("isAfter",t)}var n5=function(){return Date.now?Date.now():+new Date},Ss=["year","quarter","month","week","day","hour","minute","second","millisecond"];function s5(t){var e,r=!1,i,n=Ss.length;for(e in t)if(ie(t,e)&&!(Ne.call(Ss,e)!==-1&&(t[e]==null||!isNaN(t[e]))))return!1;for(i=0;i<n;++i)if(t[Ss[i]]){if(r)return!1;parseFloat(t[Ss[i]])!==re(t[Ss[i]])&&(r=!0)}return!0}function a5(){return this._isValid}function o5(){return hr(NaN)}function Jo(t){var e=n1(t),r=e.year||0,i=e.quarter||0,n=e.month||0,s=e.week||e.isoWeek||0,a=e.day||0,o=e.hour||0,l=e.minute||0,u=e.second||0,c=e.millisecond||0;this._isValid=s5(e),this._milliseconds=+c+u*1e3+l*6e4+o*1e3*60*60,this._days=+a+s*7,this._months=+n+i*3+r*12,this._data={},this._locale=Br(),this._bubble()}function ao(t){return t instanceof Jo}function d_(t){return t<0?Math.round(-1*t)*-1:Math.round(t)}function l5(t,e,r){var i=Math.min(t.length,e.length),n=Math.abs(t.length-e.length),s=0,a;for(a=0;a<i;a++)re(t[a])!==re(e[a])&&s++;return s+n}function C2(t,e){H(t,0,0,function(){var r=this.utcOffset(),i="+";return r<0&&(r=-r,i="-"),i+zt(~~(r/60),2)+e+zt(~~r%60,2)})}C2("Z",":");C2("ZZ","");N("Z",Xo);N("ZZ",Xo);_e(["Z","ZZ"],function(t,e,r){var i=_1(Xo,t);r._useUTC=!0,r._tzm=i,i===null&&(te(r).invalidOffset=t)});var u5=/([\+\-]|\d\d)/gi;function _1(t,e){var r=(e||"").match(t),i,n,s;return r===null||(i=r[r.length-1]||[],n=(i+"").match(u5)||["-",0,0],s=+(n[1]*60)+re(n[2]),re(n[2])>59||(n[0]==="+"?s>840:s>720))?null:s===0?0:n[0]==="+"?s:-s}function w1(t,e){var r,i;return e._isUTC?(r=e.clone(),i=(Mt(t)||ga(t)?t.valueOf():Ie(t).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+i),q.updateOffset(r,!1),r):Ie(t).local()}function f_(t){return-Math.round(t._d.getTimezoneOffset())}q.updateOffset=function(){};function c5(t,e,r){var i=this._offset||0,n;if(!this.isValid())return t!=null?this:NaN;if(t!=null){if(typeof t=="string"){if(t=_1(Xo,t),t===null)return this}else Math.abs(t)<16&&!r&&(t=t*60);return!this._isUTC&&e&&(n=f_(this)),this._offset=t,this._isUTC=!0,n!=null&&this.add(n,"m"),i!==t&&(!e||this._changeInProgress?A2(this,hr(t-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,q.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?i:f_(this)}function h5(t,e){return t!=null?(typeof t!="string"&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function d5(t){return this.utcOffset(0,t)}function f5(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(f_(this),"m")),this}function p5(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var t=_1(gz,this._i);t!=null?this.utcOffset(t):this.utcOffset(0,!0)}return this}function v5(t){return this.isValid()?(t=t?Ie(t).utcOffset():0,(this.utcOffset()-t)%60===0):!1}function m5(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function g5(){if(!wt(this._isDSTShifted))return this._isDSTShifted;var t={},e;return i1(t,this),t=P2(t),t._a?(e=t._isUTC?Sr(t._a):Ie(t._a),this._isDSTShifted=this.isValid()&&l5(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function y5(){return this.isValid()?!this._isUTC:!1}function b5(){return this.isValid()?this._isUTC:!1}function q2(){return this.isValid()?this._isUTC&&this._offset===0:!1}var _5=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,w5=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function hr(t,e){var r=t,i=null,n,s,a;return ao(t)?r={ms:t._milliseconds,d:t._days,M:t._months}:Fr(t)||!isNaN(+t)?(r={},e?r[e]=+t:r.milliseconds=+t):(i=_5.exec(t))?(n=i[1]==="-"?-1:1,r={y:0,d:re(i[St])*n,h:re(i[Be])*n,m:re(i[Wt])*n,s:re(i[Pr])*n,ms:re(d_(i[Oi]*1e3))*n}):(i=w5.exec(t))?(n=i[1]==="-"?-1:1,r={y:mi(i[2],n),M:mi(i[3],n),w:mi(i[4],n),d:mi(i[5],n),h:mi(i[6],n),m:mi(i[7],n),s:mi(i[8],n)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(a=S5(Ie(r.from),Ie(r.to)),r={},r.ms=a.milliseconds,r.M=a.months),s=new Jo(r),ao(t)&&ie(t,"_locale")&&(s._locale=t._locale),ao(t)&&ie(t,"_isValid")&&(s._isValid=t._isValid),s}hr.fn=Jo.prototype;hr.invalid=o5;function mi(t,e){var r=t&&parseFloat(t.replace(",","."));return(isNaN(r)?0:r)*e}function Xx(t,e){var r={};return r.months=e.month()-t.month()+(e.year()-t.year())*12,t.clone().add(r.months,"M").isAfter(e)&&--r.months,r.milliseconds=+e-+t.clone().add(r.months,"M"),r}function S5(t,e){var r;return t.isValid()&&e.isValid()?(e=w1(e,t),t.isBefore(e)?r=Xx(t,e):(r=Xx(e,t),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function k2(t,e){return function(r,i){var n,s;return i!==null&&!isNaN(+i)&&(o2(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),s=r,r=i,i=s),n=hr(r,i),A2(this,n,t),this}}function A2(t,e,r,i){var n=e._milliseconds,s=d_(e._days),a=d_(e._months);t.isValid()&&(i=i??!0,a&&m2(t,Ws(t,"Month")+a*r),s&&f2(t,"Date",Ws(t,"Date")+s*r),n&&t._d.setTime(t._d.valueOf()+n*r),i&&q.updateOffset(t,s||a))}var O5=k2(1,"add"),E5=k2(-1,"subtract");function M2(t){return typeof t=="string"||t instanceof String}function T5(t){return Mt(t)||ga(t)||M2(t)||Fr(t)||R5(t)||$5(t)||t===null||t===void 0}function $5(t){var e=xi(t)&&!t1(t),r=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],n,s,a=i.length;for(n=0;n<a;n+=1)s=i[n],r=r||ie(t,s);return e&&r}function R5(t){var e=ur(t),r=!1;return e&&(r=t.filter(function(i){return!Fr(i)&&M2(t)}).length===0),e&&r}function x5(t){var e=xi(t)&&!t1(t),r=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],n,s;for(n=0;n<i.length;n+=1)s=i[n],r=r||ie(t,s);return e&&r}function P5(t,e){var r=t.diff(e,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function D5(t,e){arguments.length===1&&(arguments[0]?T5(arguments[0])?(t=arguments[0],e=void 0):x5(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var r=t||Ie(),i=w1(r,this).startOf("day"),n=q.calendarFormat(this,i)||"sameElse",s=e&&(Or(e[n])?e[n].call(this,r):e[n]);return this.format(s||this.localeData().calendar(n,this,Ie(r)))}function I5(){return new ba(this)}function C5(t,e){var r=Mt(t)?t:Ie(t);return this.isValid()&&r.isValid()?(e=Jt(e)||"millisecond",e==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(e).valueOf()):!1}function q5(t,e){var r=Mt(t)?t:Ie(t);return this.isValid()&&r.isValid()?(e=Jt(e)||"millisecond",e==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(e).valueOf()<r.valueOf()):!1}function k5(t,e,r,i){var n=Mt(t)?t:Ie(t),s=Mt(e)?e:Ie(e);return this.isValid()&&n.isValid()&&s.isValid()?(i=i||"()",(i[0]==="("?this.isAfter(n,r):!this.isBefore(n,r))&&(i[1]===")"?this.isBefore(s,r):!this.isAfter(s,r))):!1}function A5(t,e){var r=Mt(t)?t:Ie(t),i;return this.isValid()&&r.isValid()?(e=Jt(e)||"millisecond",e==="millisecond"?this.valueOf()===r.valueOf():(i=r.valueOf(),this.clone().startOf(e).valueOf()<=i&&i<=this.clone().endOf(e).valueOf())):!1}function M5(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function N5(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function F5(t,e,r){var i,n,s;if(!this.isValid())return NaN;if(i=w1(t,this),!i.isValid())return NaN;switch(n=(i.utcOffset()-this.utcOffset())*6e4,e=Jt(e),e){case"year":s=oo(this,i)/12;break;case"month":s=oo(this,i);break;case"quarter":s=oo(this,i)/3;break;case"second":s=(this-i)/1e3;break;case"minute":s=(this-i)/6e4;break;case"hour":s=(this-i)/36e5;break;case"day":s=(this-i-n)/864e5;break;case"week":s=(this-i-n)/6048e5;break;default:s=this-i}return r?s:Bt(s)}function oo(t,e){if(t.date()<e.date())return-oo(e,t);var r=(e.year()-t.year())*12+(e.month()-t.month()),i=t.clone().add(r,"months"),n,s;return e-i<0?(n=t.clone().add(r-1,"months"),s=(e-i)/(i-n)):(n=t.clone().add(r+1,"months"),s=(e-i)/(n-i)),-(r+s)||0}q.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";q.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function L5(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function j5(t){if(!this.isValid())return null;var e=t!==!0,r=e?this.clone().utc():this;return r.year()<0||r.year()>9999?so(r,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Or(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",so(r,"Z")):so(r,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function G5(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="",r,i,n,s;return this.isLocal()||(t=this.utcOffset()===0?"moment.utc":"moment.parseZone",e="Z"),r="["+t+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",s=e+'[")]',this.format(r+i+n+s)}function B5(t){t||(t=this.isUtc()?q.defaultFormatUtc:q.defaultFormat);var e=so(this,t);return this.localeData().postformat(e)}function W5(t,e){return this.isValid()&&(Mt(t)&&t.isValid()||Ie(t).isValid())?hr({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function H5(t){return this.from(Ie(),t)}function Y5(t,e){return this.isValid()&&(Mt(t)&&t.isValid()||Ie(t).isValid())?hr({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function U5(t){return this.to(Ie(),t)}function N2(t){var e;return t===void 0?this._locale._abbr:(e=Br(t),e!=null&&(this._locale=e),this)}var F2=Qt("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return t===void 0?this.localeData():this.locale(t)});function L2(){return this._locale}var mo=1e3,Sn=60*mo,go=60*Sn,j2=(365*400+97)*24*go;function On(t,e){return(t%e+e)%e}function G2(t,e,r){return t<100&&t>=0?new Date(t+400,e,r)-j2:new Date(t,e,r).valueOf()}function B2(t,e,r){return t<100&&t>=0?Date.UTC(t+400,e,r)-j2:Date.UTC(t,e,r)}function V5(t){var e,r;if(t=Jt(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?B2:G2,t){case"year":e=r(this.year(),0,1);break;case"quarter":e=r(this.year(),this.month()-this.month()%3,1);break;case"month":e=r(this.year(),this.month(),1);break;case"week":e=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=r(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=On(e+(this._isUTC?0:this.utcOffset()*Sn),go);break;case"minute":e=this._d.valueOf(),e-=On(e,Sn);break;case"second":e=this._d.valueOf(),e-=On(e,mo);break}return this._d.setTime(e),q.updateOffset(this,!0),this}function z5(t){var e,r;if(t=Jt(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?B2:G2,t){case"year":e=r(this.year()+1,0,1)-1;break;case"quarter":e=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=r(this.year(),this.month()+1,1)-1;break;case"week":e=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=go-On(e+(this._isUTC?0:this.utcOffset()*Sn),go)-1;break;case"minute":e=this._d.valueOf(),e+=Sn-On(e,Sn)-1;break;case"second":e=this._d.valueOf(),e+=mo-On(e,mo)-1;break}return this._d.setTime(e),q.updateOffset(this,!0),this}function K5(){return this._d.valueOf()-(this._offset||0)*6e4}function X5(){return Math.floor(this.valueOf()/1e3)}function Z5(){return new Date(this.valueOf())}function Q5(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function J5(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function eK(){return this.isValid()?this.toISOString():null}function tK(){return r1(this)}function rK(){return pr({},te(this))}function iK(){return te(this).overflow}function nK(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}H("N",0,0,"eraAbbr");H("NN",0,0,"eraAbbr");H("NNN",0,0,"eraAbbr");H("NNNN",0,0,"eraName");H("NNNNN",0,0,"eraNarrow");H("y",["y",1],"yo","eraYear");H("y",["yy",2],0,"eraYear");H("y",["yyy",3],0,"eraYear");H("y",["yyyy",4],0,"eraYear");N("N",S1);N("NN",S1);N("NNN",S1);N("NNNN",vK);N("NNNNN",mK);_e(["N","NN","NNN","NNNN","NNNNN"],function(t,e,r,i){var n=r._locale.erasParse(t,i,r._strict);n?te(r).era=n:te(r).invalidEra=t});N("y",zn);N("yy",zn);N("yyy",zn);N("yyyy",zn);N("yo",gK);_e(["y","yy","yyy","yyyy"],Fe);_e(["yo"],function(t,e,r,i){var n;r._locale._eraYearOrdinalRegex&&(n=t.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?e[Fe]=r._locale.eraYearOrdinalParse(t,n):e[Fe]=parseInt(t,10)});function sK(t,e){var r,i,n,s=this._eras||Br("en")._eras;for(r=0,i=s.length;r<i;++r)switch(typeof s[r].since==="string"&&(n=q(s[r].since).startOf("day"),s[r].since=n.valueOf()),typeof s[r].until){case"undefined":s[r].until=1/0;break;case"string":n=q(s[r].until).startOf("day").valueOf(),s[r].until=n.valueOf();break}return s}function aK(t,e,r){var i,n,s=this.eras(),a,o,l;for(t=t.toUpperCase(),i=0,n=s.length;i<n;++i)if(a=s[i].name.toUpperCase(),o=s[i].abbr.toUpperCase(),l=s[i].narrow.toUpperCase(),r)switch(e){case"N":case"NN":case"NNN":if(o===t)return s[i];break;case"NNNN":if(a===t)return s[i];break;case"NNNNN":if(l===t)return s[i];break}else if([a,o,l].indexOf(t)>=0)return s[i]}function oK(t,e){var r=t.since<=t.until?1:-1;return e===void 0?q(t.since).year():q(t.since).year()+(e-t.offset)*r}function lK(){var t,e,r,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t)if(r=this.clone().startOf("day").valueOf(),i[t].since<=r&&r<=i[t].until||i[t].until<=r&&r<=i[t].since)return i[t].name;return""}function uK(){var t,e,r,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t)if(r=this.clone().startOf("day").valueOf(),i[t].since<=r&&r<=i[t].until||i[t].until<=r&&r<=i[t].since)return i[t].narrow;return""}function cK(){var t,e,r,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t)if(r=this.clone().startOf("day").valueOf(),i[t].since<=r&&r<=i[t].until||i[t].until<=r&&r<=i[t].since)return i[t].abbr;return""}function hK(){var t,e,r,i,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t)if(r=n[t].since<=n[t].until?1:-1,i=this.clone().startOf("day").valueOf(),n[t].since<=i&&i<=n[t].until||n[t].until<=i&&i<=n[t].since)return(this.year()-q(n[t].since).year())*r+n[t].offset;return this.year()}function dK(t){return ie(this,"_erasNameRegex")||O1.call(this),t?this._erasNameRegex:this._erasRegex}function fK(t){return ie(this,"_erasAbbrRegex")||O1.call(this),t?this._erasAbbrRegex:this._erasRegex}function pK(t){return ie(this,"_erasNarrowRegex")||O1.call(this),t?this._erasNarrowRegex:this._erasRegex}function S1(t,e){return e.erasAbbrRegex(t)}function vK(t,e){return e.erasNameRegex(t)}function mK(t,e){return e.erasNarrowRegex(t)}function gK(t,e){return e._eraYearOrdinalRegex||zn}function O1(){var t=[],e=[],r=[],i=[],n,s,a,o,l,u=this.eras();for(n=0,s=u.length;n<s;++n)a=qr(u[n].name),o=qr(u[n].abbr),l=qr(u[n].narrow),e.push(a),t.push(o),r.push(l),i.push(a),i.push(o),i.push(l);this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+e.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+t.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}H(0,["gg",2],0,function(){return this.weekYear()%100});H(0,["GG",2],0,function(){return this.isoWeekYear()%100});function el(t,e){H(0,[t,t.length],0,e)}el("gggg","weekYear");el("ggggg","weekYear");el("GGGG","isoWeekYear");el("GGGGG","isoWeekYear");N("G",Ko);N("g",Ko);N("GG",$e,Lt);N("gg",$e,Lt);N("GGGG",l1,a1);N("gggg",l1,a1);N("GGGGG",zo,Uo);N("ggggg",zo,Uo);Xn(["gggg","ggggg","GGGG","GGGGG"],function(t,e,r,i){e[i.substr(0,2)]=re(t)});Xn(["gg","GG"],function(t,e,r,i){e[i]=q.parseTwoDigitYear(t)});function yK(t){return W2.call(this,t,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function bK(t){return W2.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function _K(){return kr(this.year(),1,4)}function wK(){return kr(this.isoWeekYear(),1,4)}function SK(){var t=this.localeData()._week;return kr(this.year(),t.dow,t.doy)}function OK(){var t=this.localeData()._week;return kr(this.weekYear(),t.dow,t.doy)}function W2(t,e,r,i,n){var s;return t==null?p1(this,i,n).year:(s=kr(t,i,n),e>s&&(e=s),EK.call(this,t,e,r,i,n))}function EK(t,e,r,i,n){var s=S2(t,e,r,i,n),a=ki(s.year,0,s.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}H("Q",0,"Qo","quarter");N("Q",u2);_e("Q",function(t,e){e[At]=(re(t)-1)*3});function TK(t){return t==null?Math.ceil((this.month()+1)/3):this.month((t-1)*3+this.month()%3)}H("D",["DD",2],"Do","date");N("D",$e,Kn);N("DD",$e,Lt);N("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient});_e(["D","DD"],St);_e("Do",function(t,e){e[St]=re(t.match($e)[0])});var H2=Zn("Date",!0);H("DDD",["DDDD",3],"DDDo","dayOfYear");N("DDD",Vo);N("DDDD",c2);_e(["DDD","DDDD"],function(t,e,r){r._dayOfYear=re(t)});function $K(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return t==null?e:this.add(t-e,"d")}H("m",["mm",2],0,"minute");N("m",$e,u1);N("mm",$e,Lt);_e(["m","mm"],Wt);var RK=Zn("Minutes",!1);H("s",["ss",2],0,"second");N("s",$e,u1);N("ss",$e,Lt);_e(["s","ss"],Pr);var xK=Zn("Seconds",!1);H("S",0,0,function(){return~~(this.millisecond()/100)});H(0,["SS",2],0,function(){return~~(this.millisecond()/10)});H(0,["SSS",3],0,"millisecond");H(0,["SSSS",4],0,function(){return this.millisecond()*10});H(0,["SSSSS",5],0,function(){return this.millisecond()*100});H(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});H(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});H(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});H(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});N("S",Vo,u2);N("SS",Vo,Lt);N("SSS",Vo,c2);var Kr,Y2;for(Kr="SSSS";Kr.length<=9;Kr+="S")N(Kr,zn);function PK(t,e){e[Oi]=re(("0."+t)*1e3)}for(Kr="S";Kr.length<=9;Kr+="S")_e(Kr,PK);Y2=Zn("Milliseconds",!1);H("z",0,0,"zoneAbbr");H("zz",0,0,"zoneName");function DK(){return this._isUTC?"UTC":""}function IK(){return this._isUTC?"Coordinated Universal Time":""}var C=ba.prototype;C.add=O5;C.calendar=D5;C.clone=I5;C.diff=F5;C.endOf=z5;C.format=B5;C.from=W5;C.fromNow=H5;C.to=Y5;C.toNow=U5;C.get=Tz;C.invalidAt=iK;C.isAfter=C5;C.isBefore=q5;C.isBetween=k5;C.isSame=A5;C.isSameOrAfter=M5;C.isSameOrBefore=N5;C.isValid=tK;C.lang=F2;C.locale=N2;C.localeData=L2;C.max=t5;C.min=e5;C.parsingFlags=rK;C.set=$z;C.startOf=V5;C.subtract=E5;C.toArray=Q5;C.toObject=J5;C.toDate=Z5;C.toISOString=j5;C.inspect=G5;typeof Symbol<"u"&&Symbol.for!=null&&(C[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});C.toJSON=eK;C.toString=L5;C.unix=X5;C.valueOf=K5;C.creationData=nK;C.eraName=lK;C.eraNarrow=uK;C.eraAbbr=cK;C.eraYear=hK;C.year=d2;C.isLeapYear=Ez;C.weekYear=yK;C.isoWeekYear=bK;C.quarter=C.quarters=TK;C.month=g2;C.daysInMonth=Mz;C.week=C.weeks=S3;C.isoWeek=C.isoWeeks=O3;C.weeksInYear=SK;C.weeksInWeekYear=OK;C.isoWeeksInYear=_K;C.isoWeeksInISOWeekYear=wK;C.date=H2;C.day=C.days=Qz;C.weekday=Jz;C.isoWeekday=e3;C.dayOfYear=$K;C.hour=C.hours=R3;C.minute=C.minutes=RK;C.second=C.seconds=xK;C.millisecond=C.milliseconds=Y2;C.utcOffset=c5;C.utc=d5;C.local=f5;C.parseZone=p5;C.hasAlignedHourOffset=v5;C.isDST=m5;C.isLocal=y5;C.isUtcOffset=b5;C.isUtc=q2;C.isUTC=q2;C.zoneAbbr=DK;C.zoneName=IK;C.dates=Qt("dates accessor is deprecated. Use date instead.",H2);C.months=Qt("months accessor is deprecated. Use month instead",g2);C.years=Qt("years accessor is deprecated. Use year instead",d2);C.zone=Qt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",h5);C.isDSTShifted=Qt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",g5);function CK(t){return Ie(t*1e3)}function qK(){return Ie.apply(null,arguments).parseZone()}function U2(t){return t}var he=f1.prototype;he.calendar=a3;he.longDateFormat=l3;he.invalidDate=c3;he.ordinal=f3;he.preparse=U2;he.postformat=U2;he.relativeTime=v3;he.pastFuture=m3;he.set=n3;he.eras=sK;he.erasParse=aK;he.erasConvertYear=oK;he.erasAbbrRegex=fK;he.erasNameRegex=dK;he.erasNarrowRegex=pK;he.months=Cz;he.monthsShort=qz;he.monthsParse=Az;he.monthsRegex=Fz;he.monthsShortRegex=Nz;he.week=y3;he.firstDayOfYear=w3;he.firstDayOfWeek=_3;he.weekdays=Vz;he.weekdaysMin=Kz;he.weekdaysShort=zz;he.weekdaysParse=Zz;he.weekdaysRegex=t3;he.weekdaysShortRegex=r3;he.weekdaysMinRegex=i3;he.isPM=T3;he.meridiem=x3;function yo(t,e,r,i){var n=Br(),s=Sr().set(i,e);return n[r](s,t)}function V2(t,e,r){if(Fr(t)&&(e=t,t=void 0),t=t||"",e!=null)return yo(t,e,r,"month");var i,n=[];for(i=0;i<12;i++)n[i]=yo(t,i,r,"month");return n}function E1(t,e,r,i){typeof t=="boolean"?(Fr(e)&&(r=e,e=void 0),e=e||""):(e=t,r=e,t=!1,Fr(e)&&(r=e,e=void 0),e=e||"");var n=Br(),s=t?n._week.dow:0,a,o=[];if(r!=null)return yo(e,(r+s)%7,i,"day");for(a=0;a<7;a++)o[a]=yo(e,(a+s)%7,i,"day");return o}function kK(t,e){return V2(t,e,"months")}function AK(t,e){return V2(t,e,"monthsShort")}function MK(t,e,r){return E1(t,e,r,"weekdays")}function NK(t,e,r){return E1(t,e,r,"weekdaysShort")}function FK(t,e,r){return E1(t,e,r,"weekdaysMin")}Zr("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,r=re(t%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return t+r}});q.lang=Qt("moment.lang is deprecated. Use moment.locale instead.",Zr);q.langData=Qt("moment.langData is deprecated. Use moment.localeData instead.",Br);var $r=Math.abs;function LK(){var t=this._data;return this._milliseconds=$r(this._milliseconds),this._days=$r(this._days),this._months=$r(this._months),t.milliseconds=$r(t.milliseconds),t.seconds=$r(t.seconds),t.minutes=$r(t.minutes),t.hours=$r(t.hours),t.months=$r(t.months),t.years=$r(t.years),this}function z2(t,e,r,i){var n=hr(e,r);return t._milliseconds+=i*n._milliseconds,t._days+=i*n._days,t._months+=i*n._months,t._bubble()}function jK(t,e){return z2(this,t,e,1)}function GK(t,e){return z2(this,t,e,-1)}function Zx(t){return t<0?Math.floor(t):Math.ceil(t)}function BK(){var t=this._milliseconds,e=this._days,r=this._months,i=this._data,n,s,a,o,l;return t>=0&&e>=0&&r>=0||t<=0&&e<=0&&r<=0||(t+=Zx(p_(r)+e)*864e5,e=0,r=0),i.milliseconds=t%1e3,n=Bt(t/1e3),i.seconds=n%60,s=Bt(n/60),i.minutes=s%60,a=Bt(s/60),i.hours=a%24,e+=Bt(a/24),l=Bt(K2(e)),r+=l,e-=Zx(p_(l)),o=Bt(r/12),r%=12,i.days=e,i.months=r,i.years=o,this}function K2(t){return t*4800/146097}function p_(t){return t*146097/4800}function WK(t){if(!this.isValid())return NaN;var e,r,i=this._milliseconds;if(t=Jt(t),t==="month"||t==="quarter"||t==="year")switch(e=this._days+i/864e5,r=this._months+K2(e),t){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(e=this._days+Math.round(p_(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return e*24+i/36e5;case"minute":return e*1440+i/6e4;case"second":return e*86400+i/1e3;case"millisecond":return Math.floor(e*864e5)+i;default:throw new Error("Unknown unit "+t)}}function Wr(t){return function(){return this.as(t)}}var X2=Wr("ms"),HK=Wr("s"),YK=Wr("m"),UK=Wr("h"),VK=Wr("d"),zK=Wr("w"),KK=Wr("M"),XK=Wr("Q"),ZK=Wr("y"),QK=X2;function JK(){return hr(this)}function e4(t){return t=Jt(t),this.isValid()?this[t+"s"]():NaN}function Zi(t){return function(){return this.isValid()?this._data[t]:NaN}}var t4=Zi("milliseconds"),r4=Zi("seconds"),i4=Zi("minutes"),n4=Zi("hours"),s4=Zi("days"),a4=Zi("months"),o4=Zi("years");function l4(){return Bt(this.days()/7)}var Rr=Math.round,gn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function u4(t,e,r,i,n){return _2.call(n,e||1,!!r,t,i)}function c4(t,e,r,i){var n=hr(t).abs(),s=Rr(n.as("s")),a=Rr(n.as("m")),o=Rr(n.as("h")),l=Rr(n.as("d")),u=Rr(n.as("M")),c=Rr(n.as("w")),h=Rr(n.as("y")),d=s<=r.ss&&["s",s]||s<r.s&&["ss",s]||a<=1&&["m"]||a<r.m&&["mm",a]||o<=1&&["h"]||o<r.h&&["hh",o]||l<=1&&["d"]||l<r.d&&["dd",l];return r.w!=null&&(d=d||c<=1&&["w"]||c<r.w&&["ww",c]),d=d||u<=1&&["M"]||u<r.M&&["MM",u]||h<=1&&["y"]||["yy",h],d[2]=e,d[3]=+t>0,d[4]=i,u4.apply(null,d)}function h4(t){return t===void 0?Rr:typeof t=="function"?(Rr=t,!0):!1}function d4(t,e){return gn[t]===void 0?!1:e===void 0?gn[t]:(gn[t]=e,t==="s"&&(gn.ss=e-1),!0)}function f4(t,e){if(!this.isValid())return this.localeData().invalidDate();var r=!1,i=gn,n,s;return typeof t=="object"&&(e=t,t=!1),typeof t=="boolean"&&(r=t),typeof e=="object"&&(i=pr(pr({},gn),e||{}),e.s!=null&&e.ss==null&&(i.ss=e.s-1)),n=this.localeData(),s=c4(this,!r,i,n),r&&(s=w2.call(n,+this,s)),n.postformat(s)}var Jf=Math.abs;function ln(t){return(t>0)-(t<0)||+t}function tl(){if(!this.isValid())return this.localeData().invalidDate();var t=Jf(this._milliseconds)/1e3,e=Jf(this._days),r=Jf(this._months),i,n,s,a,o=this.asSeconds(),l,u,c,h;return o?(i=Bt(t/60),n=Bt(i/60),t%=60,i%=60,s=Bt(r/12),r%=12,a=t?t.toFixed(3).replace(/\.?0+$/,""):"",l=o<0?"-":"",u=ln(this._months)!==ln(o)?"-":"",c=ln(this._days)!==ln(o)?"-":"",h=ln(this._milliseconds)!==ln(o)?"-":"",l+"P"+(s?u+s+"Y":"")+(r?u+r+"M":"")+(e?c+e+"D":"")+(n||i||t?"T":"")+(n?h+n+"H":"")+(i?h+i+"M":"")+(t?h+a+"S":"")):"P0D"}var ae=Jo.prototype;ae.isValid=a5;ae.abs=LK;ae.add=jK;ae.subtract=GK;ae.as=WK;ae.asMilliseconds=X2;ae.asSeconds=HK;ae.asMinutes=YK;ae.asHours=UK;ae.asDays=VK;ae.asWeeks=zK;ae.asMonths=KK;ae.asQuarters=XK;ae.asYears=ZK;ae.valueOf=QK;ae._bubble=BK;ae.clone=JK;ae.get=e4;ae.milliseconds=t4;ae.seconds=r4;ae.minutes=i4;ae.hours=n4;ae.days=s4;ae.weeks=l4;ae.months=a4;ae.years=o4;ae.humanize=f4;ae.toISOString=tl;ae.toString=tl;ae.toJSON=tl;ae.locale=N2;ae.localeData=L2;ae.toIsoString=Qt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",tl);ae.lang=F2;H("X",0,0,"unix");H("x",0,0,"valueOf");N("x",Ko);N("X",yz);_e("X",function(t,e,r){r._d=new Date(parseFloat(t)*1e3)});_e("x",function(t,e,r){r._d=new Date(re(t))});//! moment.js
|
|
42
|
+
q.version="2.31.0";hz(Ie);q.fn=C;q.min=r5;q.max=i5;q.now=n5;q.utc=Sr;q.unix=CK;q.months=kK;q.isDate=ga;q.locale=Zr;q.invalid=ya;q.duration=hr;q.isMoment=Mt;q.weekdays=MK;q.parseZone=qK;q.localeData=Br;q.isDuration=ao;q.monthsShort=AK;q.weekdaysMin=FK;q.defineLocale=m1;q.updateLocale=C3;q.locales=q3;q.weekdaysShort=NK;q.normalizeUnits=Jt;q.relativeTimeRounding=h4;q.relativeTimeThreshold=d4;q.calendarFormat=P5;q.prototype=C;q.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};/**
|
|
43
|
+
* vis-timeline and vis-graph2d
|
|
44
|
+
* https://visjs.github.io/vis-timeline/
|
|
45
|
+
*
|
|
46
|
+
* Create a fully customizable, interactive timeline with items and ranges.
|
|
47
|
+
*
|
|
48
|
+
* @version 8.5.0
|
|
49
|
+
* @date 2025-12-12T13:44:42.806Z
|
|
50
|
+
*
|
|
51
|
+
* @copyright (c) 2011-2017 Almende B.V, http://almende.com
|
|
52
|
+
* @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
|
|
53
|
+
*
|
|
54
|
+
* @license
|
|
55
|
+
* vis.js is dual licensed under both
|
|
56
|
+
*
|
|
57
|
+
* 1. The Apache 2.0 License
|
|
58
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
59
|
+
*
|
|
60
|
+
* and
|
|
61
|
+
*
|
|
62
|
+
* 2. The MIT License
|
|
63
|
+
* http://opensource.org/licenses/MIT
|
|
64
|
+
*
|
|
65
|
+
* vis.js may be distributed under either license.
|
|
66
|
+
*/var Qx=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Q(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Jx={},Os,eP;function Ae(){if(eP)return Os;eP=1;var t=function(e){return e&&e.Math===Math&&e};return Os=t(typeof globalThis=="object"&&globalThis)||t(typeof window=="object"&&window)||t(typeof self=="object"&&self)||t(typeof Qx=="object"&&Qx)||t(typeof Os=="object"&&Os)||(function(){return this})()||Function("return this")(),Os}var ep,tP;function ce(){return tP||(tP=1,ep=function(t){try{return!!t()}catch{return!0}}),ep}var tp,rP;function wa(){if(rP)return tp;rP=1;var t=ce();return tp=!t(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),tp}var rp,iP;function rl(){if(iP)return rp;iP=1;var t=wa(),e=Function.prototype,r=e.apply,i=e.call;return rp=typeof Reflect=="object"&&Reflect.apply||(t?i.bind(r):function(){return i.apply(r,arguments)}),rp}var ip,nP;function de(){if(nP)return ip;nP=1;var t=wa(),e=Function.prototype,r=e.call,i=t&&e.bind.bind(r,r);return ip=t?i:function(n){return function(){return r.apply(n,arguments)}},ip}var np,sP;function Er(){if(sP)return np;sP=1;var t=de(),e=t({}.toString),r=t("".slice);return np=function(i){return r(e(i),8,-1)},np}var sp,aP;function T1(){if(aP)return sp;aP=1;var t=Er(),e=de();return sp=function(r){if(t(r)==="Function")return e(r)},sp}var ap,oP;function it(){if(oP)return ap;oP=1;var t=typeof document=="object"&&document.all;return ap=typeof t>"u"&&t!==void 0?function(e){return typeof e=="function"||e===t}:function(e){return typeof e=="function"},ap}var op={},lp,lP;function Le(){if(lP)return lp;lP=1;var t=ce();return lp=!t(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),lp}var up,uP;function xt(){if(uP)return up;uP=1;var t=wa(),e=Function.prototype.call;return up=t?e.bind(e):function(){return e.apply(e,arguments)},up}var cp={},cP;function il(){if(cP)return cp;cP=1;var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,r=e&&!t.call({1:2},1);return cp.f=r?function(n){var s=e(this,n);return!!s&&s.enumerable}:t,cp}var hp,hP;function Sa(){return hP||(hP=1,hp=function(t,e){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:e}}),hp}var dp,dP;function nl(){if(dP)return dp;dP=1;var t=de(),e=ce(),r=Er(),i=Object,n=t("".split);return dp=e(function(){return!i("z").propertyIsEnumerable(0)})?function(s){return r(s)==="String"?n(s,""):i(s)}:i,dp}var fp,fP;function Oa(){return fP||(fP=1,fp=function(t){return t==null}),fp}var pp,pP;function si(){if(pP)return pp;pP=1;var t=Oa(),e=TypeError;return pp=function(r){if(t(r))throw new e("Can't call method on "+r);return r},pp}var vp,vP;function dr(){if(vP)return vp;vP=1;var t=nl(),e=si();return vp=function(r){return t(e(r))},vp}var mp,mP;function ct(){if(mP)return mp;mP=1;var t=it();return mp=function(e){return typeof e=="object"?e!==null:t(e)},mp}var gp,gP;function Re(){return gP||(gP=1,gp={}),gp}var yp,yP;function er(){if(yP)return yp;yP=1;var t=Re(),e=Ae(),r=it(),i=function(n){return r(n)?n:void 0};return yp=function(n,s){return arguments.length<2?i(t[n])||i(e[n]):t[n]&&t[n][s]||e[n]&&e[n][s]},yp}var bp,bP;function je(){if(bP)return bp;bP=1;var t=de();return bp=t({}.isPrototypeOf),bp}var _p,_P;function Qn(){if(_P)return _p;_P=1;var t=Ae(),e=t.navigator,r=e&&e.userAgent;return _p=r?String(r):"",_p}var wp,wP;function Ea(){if(wP)return wp;wP=1;var t=Ae(),e=Qn(),r=t.process,i=t.Deno,n=r&&r.versions||i&&i.version,s=n&&n.v8,a,o;return s&&(a=s.split("."),o=a[0]>0&&a[0]<4?1:+(a[0]+a[1])),!o&&e&&(a=e.match(/Edge\/(\d+)/),(!a||a[1]>=74)&&(a=e.match(/Chrome\/(\d+)/),a&&(o=+a[1]))),wp=o,wp}var Sp,SP;function Jn(){if(SP)return Sp;SP=1;var t=Ea(),e=ce(),r=Ae(),i=r.String;return Sp=!!Object.getOwnPropertySymbols&&!e(function(){var n=Symbol("symbol detection");return!i(n)||!(Object(n)instanceof Symbol)||!Symbol.sham&&t&&t<41}),Sp}var Op,OP;function Z2(){if(OP)return Op;OP=1;var t=Jn();return Op=t&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Op}var Ep,EP;function Ta(){if(EP)return Ep;EP=1;var t=er(),e=it(),r=je(),i=Z2(),n=Object;return Ep=i?function(s){return typeof s=="symbol"}:function(s){var a=t("Symbol");return e(a)&&r(a.prototype,n(s))},Ep}var Tp,TP;function es(){if(TP)return Tp;TP=1;var t=String;return Tp=function(e){try{return t(e)}catch{return"Object"}},Tp}var $p,$P;function ai(){if($P)return $p;$P=1;var t=it(),e=es(),r=TypeError;return $p=function(i){if(t(i))return i;throw new r(e(i)+" is not a function")},$p}var Rp,RP;function $1(){if(RP)return Rp;RP=1;var t=ai(),e=Oa();return Rp=function(r,i){var n=r[i];return e(n)?void 0:t(n)},Rp}var xp,xP;function p4(){if(xP)return xp;xP=1;var t=xt(),e=it(),r=ct(),i=TypeError;return xp=function(n,s){var a,o;if(s==="string"&&e(a=n.toString)&&!r(o=t(a,n))||e(a=n.valueOf)&&!r(o=t(a,n))||s!=="string"&&e(a=n.toString)&&!r(o=t(a,n)))return o;throw new i("Can't convert object to primitive value")},xp}var Pp={exports:{}},Dp,PP;function $a(){return PP||(PP=1,Dp=!0),Dp}var Ip,DP;function v4(){if(DP)return Ip;DP=1;var t=Ae(),e=Object.defineProperty;return Ip=function(r,i){try{e(t,r,{value:i,configurable:!0,writable:!0})}catch{t[r]=i}return i},Ip}var IP;function R1(){if(IP)return Pp.exports;IP=1;var t=$a(),e=Ae(),r=v4(),i="__core-js_shared__",n=Pp.exports=e[i]||r(i,{});return(n.versions||(n.versions=[])).push({version:"3.44.0",mode:t?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Pp.exports}var Cp,CP;function ts(){if(CP)return Cp;CP=1;var t=R1();return Cp=function(e,r){return t[e]||(t[e]=r||{})},Cp}var qp,qP;function jt(){if(qP)return qp;qP=1;var t=si(),e=Object;return qp=function(r){return e(t(r))},qp}var kp,kP;function _t(){if(kP)return kp;kP=1;var t=de(),e=jt(),r=t({}.hasOwnProperty);return kp=Object.hasOwn||function(n,s){return r(e(n),s)},kp}var Ap,AP;function sl(){if(AP)return Ap;AP=1;var t=de(),e=0,r=Math.random(),i=t(1.1.toString);return Ap=function(n){return"Symbol("+(n===void 0?"":n)+")_"+i(++e+r,36)},Ap}var Mp,MP;function Ve(){if(MP)return Mp;MP=1;var t=Ae(),e=ts(),r=_t(),i=sl(),n=Jn(),s=Z2(),a=t.Symbol,o=e("wks"),l=s?a.for||a:a&&a.withoutSetter||i;return Mp=function(u){return r(o,u)||(o[u]=n&&r(a,u)?a[u]:l("Symbol."+u)),o[u]},Mp}var Np,NP;function Q2(){if(NP)return Np;NP=1;var t=xt(),e=ct(),r=Ta(),i=$1(),n=p4(),s=Ve(),a=TypeError,o=s("toPrimitive");return Np=function(l,u){if(!e(l)||r(l))return l;var c=i(l,o),h;if(c){if(u===void 0&&(u="default"),h=t(c,l,u),!e(h)||r(h))return h;throw new a("Can't convert object to primitive value")}return u===void 0&&(u="number"),n(l,u)},Np}var Fp,FP;function x1(){if(FP)return Fp;FP=1;var t=Q2(),e=Ta();return Fp=function(r){var i=t(r,"string");return e(i)?i:i+""},Fp}var Lp,LP;function J2(){if(LP)return Lp;LP=1;var t=Ae(),e=ct(),r=t.document,i=e(r)&&e(r.createElement);return Lp=function(n){return i?r.createElement(n):{}},Lp}var jp,jP;function ej(){if(jP)return jp;jP=1;var t=Le(),e=ce(),r=J2();return jp=!t&&!e(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!==7}),jp}var GP;function al(){if(GP)return op;GP=1;var t=Le(),e=xt(),r=il(),i=Sa(),n=dr(),s=x1(),a=_t(),o=ej(),l=Object.getOwnPropertyDescriptor;return op.f=t?l:function(c,h){if(c=n(c),h=s(h),o)try{return l(c,h)}catch{}if(a(c,h))return i(!e(r.f,c,h),c[h])},op}var Gp,BP;function m4(){if(BP)return Gp;BP=1;var t=ce(),e=it(),r=/#|\.prototype\./,i=function(l,u){var c=s[n(l)];return c===o?!0:c===a?!1:e(u)?t(u):!!u},n=i.normalize=function(l){return String(l).replace(r,".").toLowerCase()},s=i.data={},a=i.NATIVE="N",o=i.POLYFILL="P";return Gp=i,Gp}var Bp,WP;function ol(){if(WP)return Bp;WP=1;var t=T1(),e=ai(),r=wa(),i=t(t.bind);return Bp=function(n,s){return e(n),s===void 0?n:r?i(n,s):function(){return n.apply(s,arguments)}},Bp}var Wp={},Hp,HP;function tj(){if(HP)return Hp;HP=1;var t=Le(),e=ce();return Hp=t&&e(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Hp}var Yp,YP;function Hr(){if(YP)return Yp;YP=1;var t=ct(),e=String,r=TypeError;return Yp=function(i){if(t(i))return i;throw new r(e(i)+" is not an object")},Yp}var UP;function tr(){if(UP)return Wp;UP=1;var t=Le(),e=ej(),r=tj(),i=Hr(),n=x1(),s=TypeError,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,l="enumerable",u="configurable",c="writable";return Wp.f=t?r?function(d,f,p){if(i(d),f=n(f),i(p),typeof d=="function"&&f==="prototype"&&"value"in p&&c in p&&!p[c]){var v=o(d,f);v&&v[c]&&(d[f]=p.value,p={configurable:u in p?p[u]:v[u],enumerable:l in p?p[l]:v[l],writable:!1})}return a(d,f,p)}:a:function(d,f,p){if(i(d),f=n(f),i(p),e)try{return a(d,f,p)}catch{}if("get"in p||"set"in p)throw new s("Accessors not supported");return"value"in p&&(d[f]=p.value),d},Wp}var Up,VP;function rs(){if(VP)return Up;VP=1;var t=Le(),e=tr(),r=Sa();return Up=t?function(i,n,s){return e.f(i,n,r(1,s))}:function(i,n,s){return i[n]=s,i},Up}var Vp,zP;function Y(){if(zP)return Vp;zP=1;var t=Ae(),e=rl(),r=T1(),i=it(),n=al().f,s=m4(),a=Re(),o=ol(),l=rs(),u=_t(),c=function(h){var d=function(f,p,v){if(this instanceof d){switch(arguments.length){case 0:return new h;case 1:return new h(f);case 2:return new h(f,p)}return new h(f,p,v)}return e(h,this,arguments)};return d.prototype=h.prototype,d};return Vp=function(h,d){var f=h.target,p=h.global,v=h.stat,m=h.proto,y=p?t:v?t[f]:t[f]&&t[f].prototype,g=p?a:a[f]||l(a,f,{})[f],O=g.prototype,_,w,E,$,b,T,R,x,P;for($ in d)_=s(p?$:f+(v?".":"#")+$,h.forced),w=!_&&y&&u(y,$),T=g[$],w&&(h.dontCallGetSet?(P=n(y,$),R=P&&P.value):R=y[$]),b=w&&R?R:d[$],!(!_&&!m&&typeof T==typeof b)&&(h.bind&&w?x=o(b,t):h.wrap&&w?x=c(b):m&&i(b)?x=r(b):x=b,(h.sham||b&&b.sham||T&&T.sham)&&l(x,"sham",!0),l(g,$,x),m&&(E=f+"Prototype",u(a,E)||l(a,E,{}),l(a[E],$,b),h.real&&O&&(_||!O[$])&&l(O,$,b)))},Vp}var zp,KP;function Qi(){if(KP)return zp;KP=1;var t=Er();return zp=Array.isArray||function(r){return t(r)==="Array"},zp}var XP;function g4(){if(XP)return Jx;XP=1;var t=Y(),e=Qi();return t({target:"Array",stat:!0},{isArray:e}),Jx}var Kp,ZP;function y4(){if(ZP)return Kp;ZP=1,g4();var t=Re();return Kp=t.Array.isArray,Kp}var Xp,QP;function b4(){if(QP)return Xp;QP=1;var t=y4();return Xp=t,Xp}var Zp,JP;function _4(){return JP||(JP=1,Zp=b4()),Zp}var w4=_4(),fe=Q(w4),eD={},Qp,tD;function is(){if(tD)return Qp;tD=1;var t=de();return Qp=t([].slice),Qp}var Jp,rD;function S4(){if(rD)return Jp;rD=1;var t=de(),e=ai(),r=ct(),i=_t(),n=is(),s=wa(),a=Function,o=t([].concat),l=t([].join),u={},c=function(h,d,f){if(!i(u,d)){for(var p=[],v=0;v<d;v++)p[v]="a["+v+"]";u[d]=a("C,a","return new C("+l(p,",")+")")}return u[d](h,f)};return Jp=s?a.bind:function(d){var f=e(this),p=f.prototype,v=n(arguments,1),m=function(){var g=o(v,n(arguments));return this instanceof m?c(f,g.length,g):f.apply(d,g)};return r(p)&&(m.prototype=p),m},Jp}var iD;function O4(){if(iD)return eD;iD=1;var t=Y(),e=S4();return t({target:"Function",proto:!0,forced:Function.bind!==e},{bind:e}),eD}var ev,nD;function nt(){if(nD)return ev;nD=1;var t=Ae(),e=Re();return ev=function(r,i){var n=e[r+"Prototype"],s=n&&n[i];if(s)return s;var a=t[r],o=a&&a.prototype;return o&&o[i]},ev}var tv,sD;function E4(){if(sD)return tv;sD=1,O4();var t=nt();return tv=t("Function","bind"),tv}var rv,aD;function T4(){if(aD)return rv;aD=1;var t=je(),e=E4(),r=Function.prototype;return rv=function(i){var n=i.bind;return i===r||t(r,i)&&n===r.bind?e:n},rv}var iv,oD;function $4(){if(oD)return iv;oD=1;var t=T4();return iv=t,iv}var nv,lD;function R4(){return lD||(lD=1,nv=$4()),nv}var x4=R4(),D=Q(x4),uD={},cD={},sv,hD;function rj(){if(hD)return sv;hD=1;var t=Ae(),e=Qn(),r=Er(),i=function(n){return e.slice(0,n.length)===n};return sv=(function(){return i("Bun/")?"BUN":i("Cloudflare-Workers")?"CLOUDFLARE":i("Deno/")?"DENO":i("Node.js/")?"NODE":t.Bun&&typeof Bun.version=="string"?"BUN":t.Deno&&typeof Deno.version=="object"?"DENO":r(t.process)==="process"?"NODE":t.window&&t.document?"BROWSER":"REST"})(),sv}var av,dD;function P4(){if(dD)return av;dD=1;var t=TypeError;return av=function(e,r){if(e<r)throw new t("Not enough arguments");return e},av}var ov,fD;function ij(){if(fD)return ov;fD=1;var t=Ae(),e=rl(),r=it(),i=rj(),n=Qn(),s=is(),a=P4(),o=t.Function,l=/MSIE .\./.test(n)||i==="BUN"&&(function(){var u=t.Bun.version.split(".");return u.length<3||u[0]==="0"&&(u[1]<3||u[1]==="3"&&u[2]==="0")})();return ov=function(u,c){var h=c?2:1;return l?function(d,f){var p=a(arguments.length,1)>h,v=r(d)?d:o(d),m=p?s(arguments,h):[],y=p?function(){e(v,this,m)}:v;return c?u(y,f):u(y)}:u},ov}var pD;function D4(){if(pD)return cD;pD=1;var t=Y(),e=Ae(),r=ij(),i=r(e.setInterval,!0);return t({global:!0,bind:!0,forced:e.setInterval!==i},{setInterval:i}),cD}var vD={},mD;function I4(){if(mD)return vD;mD=1;var t=Y(),e=Ae(),r=ij(),i=r(e.setTimeout,!0);return t({global:!0,bind:!0,forced:e.setTimeout!==i},{setTimeout:i}),vD}var gD;function nj(){return gD||(gD=1,D4(),I4()),uD}var lv,yD;function C4(){if(yD)return lv;yD=1,nj();var t=Re();return lv=t.setTimeout,lv}var uv,bD;function q4(){return bD||(bD=1,uv=C4()),uv}var k4=q4(),vt=Q(k4),cv,_D;function P1(){if(_D)return cv;_D=1;var t=Ve(),e=t("toStringTag"),r={};return r[e]="z",cv=String(r)==="[object z]",cv}var hv,wD;function Ra(){if(wD)return hv;wD=1;var t=P1(),e=it(),r=Er(),i=Ve(),n=i("toStringTag"),s=Object,a=r((function(){return arguments})())==="Arguments",o=function(l,u){try{return l[u]}catch{}};return hv=t?r:function(l){var u,c,h;return l===void 0?"Undefined":l===null?"Null":typeof(c=o(u=s(l),n))=="string"?c:a?r(u):(h=r(u))==="Object"&&e(u.callee)?"Arguments":h},hv}var SD={},dv,OD;function A4(){if(OD)return dv;OD=1;var t=Math.ceil,e=Math.floor;return dv=Math.trunc||function(i){var n=+i;return(n>0?e:t)(n)},dv}var fv,ED;function ns(){if(ED)return fv;ED=1;var t=A4();return fv=function(e){var r=+e;return r!==r||r===0?0:t(r)},fv}var pv,TD;function sj(){if(TD)return pv;TD=1;var t=ns(),e=Math.min;return pv=function(r){var i=t(r);return i>0?e(i,9007199254740991):0},pv}var vv,$D;function Yr(){if($D)return vv;$D=1;var t=sj();return vv=function(e){return t(e.length)},vv}var mv,RD;function M4(){if(RD)return mv;RD=1;var t=de(),e=it(),r=R1(),i=t(Function.toString);return e(r.inspectSource)||(r.inspectSource=function(n){return i(n)}),mv=r.inspectSource,mv}var gv,xD;function aj(){if(xD)return gv;xD=1;var t=de(),e=ce(),r=it(),i=Ra(),n=er(),s=M4(),a=function(){},o=n("Reflect","construct"),l=/^\s*(?:class|function)\b/,u=t(l.exec),c=!l.test(a),h=function(p){if(!r(p))return!1;try{return o(a,[],p),!0}catch{return!1}},d=function(p){if(!r(p))return!1;switch(i(p)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return c||!!u(l,s(p))}catch{return!0}};return d.sham=!0,gv=!o||e(function(){var f;return h(h.call)||!h(Object)||!h(function(){f=!0})||f})?d:h,gv}var yv,PD;function N4(){if(PD)return yv;PD=1;var t=Qi(),e=aj(),r=ct(),i=Ve(),n=i("species"),s=Array;return yv=function(a){var o;return t(a)&&(o=a.constructor,e(o)&&(o===s||t(o.prototype))?o=void 0:r(o)&&(o=o[n],o===null&&(o=void 0))),o===void 0?s:o},yv}var bv,DD;function D1(){if(DD)return bv;DD=1;var t=N4();return bv=function(e,r){return new(t(e))(r===0?0:r)},bv}var _v,ID;function oi(){if(ID)return _v;ID=1;var t=ol(),e=de(),r=nl(),i=jt(),n=Yr(),s=D1(),a=e([].push),o=function(l){var u=l===1,c=l===2,h=l===3,d=l===4,f=l===6,p=l===7,v=l===5||f;return function(m,y,g,O){for(var _=i(m),w=r(_),E=n(w),$=t(y,g),b=0,T=O||s,R=u?T(m,E):c||p?T(m,0):void 0,x,P;E>b;b++)if((v||b in w)&&(x=w[b],P=$(x,b,_),l))if(u)R[b]=P;else if(P)switch(l){case 3:return!0;case 5:return x;case 6:return b;case 2:a(R,x)}else switch(l){case 4:return!1;case 7:a(R,x)}return f?-1:h||d?d:R}};return _v={forEach:o(0),map:o(1),filter:o(2),some:o(3),every:o(4),find:o(5),findIndex:o(6),filterReject:o(7)},_v}var wv,CD;function ss(){if(CD)return wv;CD=1;var t=ce();return wv=function(e,r){var i=[][e];return!!i&&t(function(){i.call(null,r||function(){return 1},1)})},wv}var Sv,qD;function F4(){if(qD)return Sv;qD=1;var t=oi().forEach,e=ss(),r=e("forEach");return Sv=r?[].forEach:function(n){return t(this,n,arguments.length>1?arguments[1]:void 0)},Sv}var kD;function L4(){if(kD)return SD;kD=1;var t=Y(),e=F4();return t({target:"Array",proto:!0,forced:[].forEach!==e},{forEach:e}),SD}var Ov,AD;function j4(){if(AD)return Ov;AD=1,L4();var t=nt();return Ov=t("Array","forEach"),Ov}var Ev,MD;function G4(){if(MD)return Ev;MD=1;var t=j4();return Ev=t,Ev}var Tv,ND;function B4(){if(ND)return Tv;ND=1;var t=Ra(),e=_t(),r=je(),i=G4(),n=Array.prototype,s={DOMTokenList:!0,NodeList:!0};return Tv=function(a){var o=a.forEach;return a===n||r(n,a)&&o===n.forEach||e(s,t(a))?i:o},Tv}var $v,FD;function W4(){return FD||(FD=1,$v=B4()),$v}var H4=W4(),M=Q(H4);const Ot=typeof window<"u"&&window.moment||q;var LD={},jD={},Rv,GD;function rr(){if(GD)return Rv;GD=1;var t=Ra(),e=String;return Rv=function(r){if(t(r)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return e(r)},Rv}var xv={},Pv,BD;function ll(){if(BD)return Pv;BD=1;var t=ns(),e=Math.max,r=Math.min;return Pv=function(i,n){var s=t(i);return s<0?e(s+n,0):r(s,n)},Pv}var Dv,WD;function I1(){if(WD)return Dv;WD=1;var t=dr(),e=ll(),r=Yr(),i=function(n){return function(s,a,o){var l=t(s),u=r(l);if(u===0)return!n&&-1;var c=e(o,u),h;if(n&&a!==a){for(;u>c;)if(h=l[c++],h!==h)return!0}else for(;u>c;c++)if((n||c in l)&&l[c]===a)return n||c||0;return!n&&-1}};return Dv={includes:i(!0),indexOf:i(!1)},Dv}var Iv,HD;function xa(){return HD||(HD=1,Iv={}),Iv}var Cv,YD;function oj(){if(YD)return Cv;YD=1;var t=de(),e=_t(),r=dr(),i=I1().indexOf,n=xa(),s=t([].push);return Cv=function(a,o){var l=r(a),u=0,c=[],h;for(h in l)!e(n,h)&&e(l,h)&&s(c,h);for(;o.length>u;)e(l,h=o[u++])&&(~i(c,h)||s(c,h));return c},Cv}var qv,UD;function C1(){return UD||(UD=1,qv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),qv}var kv,VD;function Pa(){if(VD)return kv;VD=1;var t=oj(),e=C1();return kv=Object.keys||function(i){return t(i,e)},kv}var zD;function q1(){if(zD)return xv;zD=1;var t=Le(),e=tj(),r=tr(),i=Hr(),n=dr(),s=Pa();return xv.f=t&&!e?Object.defineProperties:function(o,l){i(o);for(var u=n(l),c=s(l),h=c.length,d=0,f;h>d;)r.f(o,f=c[d++],u[f]);return o},xv}var Av,KD;function Y4(){if(KD)return Av;KD=1;var t=er();return Av=t("document","documentElement"),Av}var Mv,XD;function ul(){if(XD)return Mv;XD=1;var t=ts(),e=sl(),r=t("keys");return Mv=function(i){return r[i]||(r[i]=e(i))},Mv}var Nv,ZD;function Da(){if(ZD)return Nv;ZD=1;var t=Hr(),e=q1(),r=C1(),i=xa(),n=Y4(),s=J2(),a=ul(),o=">",l="<",u="prototype",c="script",h=a("IE_PROTO"),d=function(){},f=function(g){return l+c+o+g+l+"/"+c+o},p=function(g){g.write(f("")),g.close();var O=g.parentWindow.Object;return g=null,O},v=function(){var g=s("iframe"),O="java"+c+":",_;return g.style.display="none",n.appendChild(g),g.src=String(O),_=g.contentWindow.document,_.open(),_.write(f("document.F=Object")),_.close(),_.F},m,y=function(){try{m=new ActiveXObject("htmlfile")}catch{}y=typeof document<"u"?document.domain&&m?p(m):v():p(m);for(var g=r.length;g--;)delete y[u][r[g]];return y()};return i[h]=!0,Nv=Object.create||function(O,_){var w;return O!==null?(d[u]=t(O),w=new d,d[u]=null,w[h]=O):w=y(),_===void 0?w:e.f(w,_)},Nv}var Fv={},QD;function cl(){if(QD)return Fv;QD=1;var t=oj(),e=C1(),r=e.concat("length","prototype");return Fv.f=Object.getOwnPropertyNames||function(n){return t(n,r)},Fv}var Lv={},JD;function lj(){if(JD)return Lv;JD=1;var t=Er(),e=dr(),r=cl().f,i=is(),n=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(a){try{return r(a)}catch{return i(n)}};return Lv.f=function(o){return n&&t(o)==="Window"?s(o):r(e(o))},Lv}var jv={},eI;function hl(){return eI||(eI=1,jv.f=Object.getOwnPropertySymbols),jv}var Gv,tI;function Ia(){if(tI)return Gv;tI=1;var t=rs();return Gv=function(e,r,i,n){return n&&n.enumerable?e[r]=i:t(e,r,i),e},Gv}var Bv,rI;function k1(){if(rI)return Bv;rI=1;var t=tr();return Bv=function(e,r,i){return t.f(e,r,i)},Bv}var Wv={},iI;function dl(){if(iI)return Wv;iI=1;var t=Ve();return Wv.f=t,Wv}var Hv,nI;function qe(){if(nI)return Hv;nI=1;var t=Re(),e=_t(),r=dl(),i=tr().f;return Hv=function(n){var s=t.Symbol||(t.Symbol={});e(s,n)||i(s,n,{value:r.f(n)})},Hv}var Yv,sI;function uj(){if(sI)return Yv;sI=1;var t=xt(),e=er(),r=Ve(),i=Ia();return Yv=function(){var n=e("Symbol"),s=n&&n.prototype,a=s&&s.valueOf,o=r("toPrimitive");s&&!s[o]&&i(s,o,function(l){return t(a,this)},{arity:1})},Yv}var Uv,aI;function U4(){if(aI)return Uv;aI=1;var t=P1(),e=Ra();return Uv=t?{}.toString:function(){return"[object "+e(this)+"]"},Uv}var Vv,oI;function Ji(){if(oI)return Vv;oI=1;var t=P1(),e=tr().f,r=rs(),i=_t(),n=U4(),s=Ve(),a=s("toStringTag");return Vv=function(o,l,u,c){var h=u?o:o&&o.prototype;h&&(i(h,a)||e(h,a,{configurable:!0,value:l}),c&&!t&&r(h,"toString",n))},Vv}var zv,lI;function V4(){if(lI)return zv;lI=1;var t=Ae(),e=it(),r=t.WeakMap;return zv=e(r)&&/native code/.test(String(r)),zv}var Kv,uI;function Ca(){if(uI)return Kv;uI=1;var t=V4(),e=Ae(),r=ct(),i=rs(),n=_t(),s=R1(),a=ul(),o=xa(),l="Object already initialized",u=e.TypeError,c=e.WeakMap,h,d,f,p=function(g){return f(g)?d(g):h(g,{})},v=function(g){return function(O){var _;if(!r(O)||(_=d(O)).type!==g)throw new u("Incompatible receiver, "+g+" required");return _}};if(t||s.state){var m=s.state||(s.state=new c);m.get=m.get,m.has=m.has,m.set=m.set,h=function(g,O){if(m.has(g))throw new u(l);return O.facade=g,m.set(g,O),O},d=function(g){return m.get(g)||{}},f=function(g){return m.has(g)}}else{var y=a("state");o[y]=!0,h=function(g,O){if(n(g,y))throw new u(l);return O.facade=g,i(g,y,O),O},d=function(g){return n(g,y)?g[y]:{}},f=function(g){return n(g,y)}}return Kv={set:h,get:d,has:f,enforce:p,getterFor:v},Kv}var cI;function z4(){if(cI)return jD;cI=1;var t=Y(),e=Ae(),r=xt(),i=de(),n=$a(),s=Le(),a=Jn(),o=ce(),l=_t(),u=je(),c=Hr(),h=dr(),d=x1(),f=rr(),p=Sa(),v=Da(),m=Pa(),y=cl(),g=lj(),O=hl(),_=al(),w=tr(),E=q1(),$=il(),b=Ia(),T=k1(),R=ts(),x=ul(),P=xa(),I=sl(),j=Ve(),K=dl(),G=qe(),B=uj(),A=Ji(),U=Ca(),me=oi().forEach,W=x("hidden"),se="Symbol",Se="prototype",oe=U.set,st=U.getterFor(se),Oe=Object[Se],ht=e.Symbol,nr=ht&&ht[Se],Ol=e.RangeError,El=e.TypeError,ci=e.QObject,cs=_.f,dt=w.f,hs=g.f,Tl=$.f,ds=i([].push),ze=R("symbols"),sr=R("op-symbols"),$l=R("wks"),hi=!ci||!ci[Se]||!ci[Se].findChild,fs=function(V,k,F){var L=cs(Oe,k);L&&delete Oe[k],dt(V,k,F),L&&V!==Oe&&dt(Oe,k,L)},di=s&&o(function(){return v(dt({},"a",{get:function(){return dt(this,"a",{value:7}).a}})).a!==7})?fs:dt,fi=function(V,k){var F=ze[V]=v(nr);return oe(F,{type:se,tag:V,description:k}),s||(F.description=k),F},Tr=function(k,F,L){k===Oe&&Tr(sr,F,L),c(k);var z=d(F);return c(L),l(ze,z)?(L.enumerable?(l(k,W)&&k[W][z]&&(k[W][z]=!1),L=v(L,{enumerable:p(0,!1)})):(l(k,W)||dt(k,W,p(1,v(null))),k[W][z]=!0),di(k,z,L)):dt(k,z,L)},pi=function(k,F){c(k);var L=h(F),z=m(L).concat(ms(L));return me(z,function(pe){(!s||r(vi,L,pe))&&Tr(k,pe,L[pe])}),k},Rl=function(k,F){return F===void 0?v(k):pi(v(k),F)},vi=function(k){var F=d(k),L=r(Tl,this,F);return this===Oe&&l(ze,F)&&!l(sr,F)?!1:L||!l(this,F)||!l(ze,F)||l(this,W)&&this[W][F]?L:!0},ps=function(k,F){var L=h(k),z=d(F);if(!(L===Oe&&l(ze,z)&&!l(sr,z))){var pe=cs(L,z);return pe&&l(ze,z)&&!(l(L,W)&&L[W][z])&&(pe.enumerable=!0),pe}},vs=function(k){var F=hs(h(k)),L=[];return me(F,function(z){!l(ze,z)&&!l(P,z)&&ds(L,z)}),L},ms=function(V){var k=V===Oe,F=hs(k?sr:h(V)),L=[];return me(F,function(z){l(ze,z)&&(!k||l(Oe,z))&&ds(L,ze[z])}),L};return a||(ht=function(){if(u(nr,this))throw new El("Symbol is not a constructor");var k=!arguments.length||arguments[0]===void 0?void 0:f(arguments[0]),F=I(k),L=function(z){var pe=this===void 0?e:this;pe===Oe&&r(L,sr,z),l(pe,W)&&l(pe[W],F)&&(pe[W][F]=!1);var gs=p(1,z);try{di(pe,F,gs)}catch(ys){if(!(ys instanceof Ol))throw ys;fs(pe,F,gs)}};return s&&hi&&di(Oe,F,{configurable:!0,set:L}),fi(F,k)},nr=ht[Se],b(nr,"toString",function(){return st(this).tag}),b(ht,"withoutSetter",function(V){return fi(I(V),V)}),$.f=vi,w.f=Tr,E.f=pi,_.f=ps,y.f=g.f=vs,O.f=ms,K.f=function(V){return fi(j(V),V)},s&&(T(nr,"description",{configurable:!0,get:function(){return st(this).description}}),n||b(Oe,"propertyIsEnumerable",vi,{unsafe:!0}))),t({global:!0,constructor:!0,wrap:!0,forced:!a,sham:!a},{Symbol:ht}),me(m($l),function(V){G(V)}),t({target:se,stat:!0,forced:!a},{useSetter:function(){hi=!0},useSimple:function(){hi=!1}}),t({target:"Object",stat:!0,forced:!a,sham:!s},{create:Rl,defineProperty:Tr,defineProperties:pi,getOwnPropertyDescriptor:ps}),t({target:"Object",stat:!0,forced:!a},{getOwnPropertyNames:vs}),B(),A(ht,se),P[W]=!0,jD}var hI={},Xv,dI;function cj(){if(dI)return Xv;dI=1;var t=Jn();return Xv=t&&!!Symbol.for&&!!Symbol.keyFor,Xv}var fI;function K4(){if(fI)return hI;fI=1;var t=Y(),e=er(),r=_t(),i=rr(),n=ts(),s=cj(),a=n("string-to-symbol-registry"),o=n("symbol-to-string-registry");return t({target:"Symbol",stat:!0,forced:!s},{for:function(l){var u=i(l);if(r(a,u))return a[u];var c=e("Symbol")(u);return a[u]=c,o[c]=u,c}}),hI}var pI={},vI;function X4(){if(vI)return pI;vI=1;var t=Y(),e=_t(),r=Ta(),i=es(),n=ts(),s=cj(),a=n("symbol-to-string-registry");return t({target:"Symbol",stat:!0,forced:!s},{keyFor:function(l){if(!r(l))throw new TypeError(i(l)+" is not a symbol");if(e(a,l))return a[l]}}),pI}var mI={},Zv,gI;function Z4(){if(gI)return Zv;gI=1;var t=de(),e=Qi(),r=it(),i=Er(),n=rr(),s=t([].push);return Zv=function(a){if(r(a))return a;if(e(a)){for(var o=a.length,l=[],u=0;u<o;u++){var c=a[u];typeof c=="string"?s(l,c):(typeof c=="number"||i(c)==="Number"||i(c)==="String")&&s(l,n(c))}var h=l.length,d=!0;return function(f,p){if(d)return d=!1,p;if(e(this))return p;for(var v=0;v<h;v++)if(l[v]===f)return p}}},Zv}var yI;function hj(){if(yI)return mI;yI=1;var t=Y(),e=er(),r=rl(),i=xt(),n=de(),s=ce(),a=it(),o=Ta(),l=is(),u=Z4(),c=Jn(),h=String,d=e("JSON","stringify"),f=n(/./.exec),p=n("".charAt),v=n("".charCodeAt),m=n("".replace),y=n(1.1.toString),g=/[\uD800-\uDFFF]/g,O=/^[\uD800-\uDBFF]$/,_=/^[\uDC00-\uDFFF]$/,w=!c||s(function(){var T=e("Symbol")("stringify detection");return d([T])!=="[null]"||d({a:T})!=="{}"||d(Object(T))!=="{}"}),E=s(function(){return d("\uDF06\uD834")!=='"\\udf06\\ud834"'||d("\uDEAD")!=='"\\udead"'}),$=function(T,R){var x=l(arguments),P=u(R);if(!(!a(P)&&(T===void 0||o(T))))return x[1]=function(I,j){if(a(P)&&(j=i(P,this,h(I),j)),!o(j))return j},r(d,null,x)},b=function(T,R,x){var P=p(x,R-1),I=p(x,R+1);return f(O,T)&&!f(_,I)||f(_,T)&&!f(O,P)?"\\u"+y(v(T,0),16):T};return d&&t({target:"JSON",stat:!0,arity:3,forced:w||E},{stringify:function(R,x,P){var I=l(arguments),j=r(w?$:d,null,I);return E&&typeof j=="string"?m(j,g,b):j}}),mI}var bI={},_I;function Q4(){if(_I)return bI;_I=1;var t=Y(),e=Jn(),r=ce(),i=hl(),n=jt(),s=!e||r(function(){i.f(1)});return t({target:"Object",stat:!0,forced:s},{getOwnPropertySymbols:function(o){var l=i.f;return l?l(n(o)):[]}}),bI}var wI;function dj(){return wI||(wI=1,z4(),K4(),X4(),hj(),Q4()),LD}var Qv,SI;function J4(){if(SI)return Qv;SI=1,dj();var t=Re();return Qv=t.Object.getOwnPropertySymbols,Qv}var Jv,OI;function e6(){if(OI)return Jv;OI=1;var t=J4();return Jv=t,Jv}var em,EI;function t6(){return EI||(EI=1,em=e6()),em}var r6=t6(),TI=Q(r6),$I={},tm,RI;function qa(){if(RI)return tm;RI=1;var t=ce(),e=Ve(),r=Ea(),i=e("species");return tm=function(n){return r>=51||!t(function(){var s=[],a=s.constructor={};return a[i]=function(){return{foo:1}},s[n](Boolean).foo!==1})},tm}var xI;function i6(){if(xI)return $I;xI=1;var t=Y(),e=oi().filter,r=qa(),i=r("filter");return t({target:"Array",proto:!0,forced:!i},{filter:function(s){return e(this,s,arguments.length>1?arguments[1]:void 0)}}),$I}var rm,PI;function n6(){if(PI)return rm;PI=1,i6();var t=nt();return rm=t("Array","filter"),rm}var im,DI;function s6(){if(DI)return im;DI=1;var t=je(),e=n6(),r=Array.prototype;return im=function(i){var n=i.filter;return i===r||t(r,i)&&n===r.filter?e:n},im}var nm,II;function a6(){if(II)return nm;II=1;var t=s6();return nm=t,nm}var sm,CI;function o6(){return CI||(CI=1,sm=a6()),sm}var l6=o6(),ue=Q(l6),am={exports:{}},qI={},kI;function u6(){if(kI)return qI;kI=1;var t=Y(),e=ce(),r=dr(),i=al().f,n=Le(),s=!n||e(function(){i(1)});return t({target:"Object",stat:!0,forced:s,sham:!n},{getOwnPropertyDescriptor:function(o,l){return i(r(o),l)}}),qI}var AI;function c6(){if(AI)return am.exports;AI=1,u6();var t=Re(),e=t.Object,r=am.exports=function(n,s){return e.getOwnPropertyDescriptor(n,s)};return e.getOwnPropertyDescriptor.sham&&(r.sham=!0),am.exports}var om,MI;function h6(){if(MI)return om;MI=1;var t=c6();return om=t,om}var lm,NI;function d6(){return NI||(NI=1,lm=h6()),lm}var f6=d6(),fj=Q(f6),FI={},um,LI;function pj(){if(LI)return um;LI=1;var t=er(),e=de(),r=cl(),i=hl(),n=Hr(),s=e([].concat);return um=t("Reflect","ownKeys")||function(o){var l=r.f(n(o)),u=i.f;return u?s(l,u(o)):l},um}var cm,jI;function fl(){if(jI)return cm;jI=1;var t=Le(),e=tr(),r=Sa();return cm=function(i,n,s){t?e.f(i,n,r(0,s)):i[n]=s},cm}var GI;function p6(){if(GI)return FI;GI=1;var t=Y(),e=Le(),r=pj(),i=dr(),n=al(),s=fl();return t({target:"Object",stat:!0,sham:!e},{getOwnPropertyDescriptors:function(o){for(var l=i(o),u=n.f,c=r(l),h={},d=0,f,p;c.length>d;)p=u(l,f=c[d++]),p!==void 0&&s(h,f,p);return h}}),FI}var hm,BI;function v6(){if(BI)return hm;BI=1,p6();var t=Re();return hm=t.Object.getOwnPropertyDescriptors,hm}var dm,WI;function m6(){if(WI)return dm;WI=1;var t=v6();return dm=t,dm}var fm,HI;function g6(){return HI||(HI=1,fm=m6()),fm}var y6=g6(),YI=Q(y6),pm={exports:{}},UI={},VI;function b6(){if(VI)return UI;VI=1;var t=Y(),e=Le(),r=q1().f;return t({target:"Object",stat:!0,forced:Object.defineProperties!==r,sham:!e},{defineProperties:r}),UI}var zI;function _6(){if(zI)return pm.exports;zI=1,b6();var t=Re(),e=t.Object,r=pm.exports=function(n,s){return e.defineProperties(n,s)};return e.defineProperties.sham&&(r.sham=!0),pm.exports}var vm,KI;function w6(){if(KI)return vm;KI=1;var t=_6();return vm=t,vm}var mm,XI;function S6(){return XI||(XI=1,mm=w6()),mm}var O6=S6(),E6=Q(O6),gm={exports:{}},ZI={},QI;function T6(){if(QI)return ZI;QI=1;var t=Y(),e=Le(),r=tr().f;return t({target:"Object",stat:!0,forced:Object.defineProperty!==r,sham:!e},{defineProperty:r}),ZI}var JI;function $6(){if(JI)return gm.exports;JI=1,T6();var t=Re(),e=t.Object,r=gm.exports=function(n,s,a){return e.defineProperty(n,s,a)};return e.defineProperty.sham&&(r.sham=!0),gm.exports}var ym,eC;function vj(){if(eC)return ym;eC=1;var t=$6();return ym=t,ym}var bm,tC;function R6(){if(tC)return bm;tC=1;var t=vj();return bm=t,bm}var _m,rC;function x6(){if(rC)return _m;rC=1;var t=R6();return _m=t,_m}var wm,iC;function P6(){return iC||(iC=1,wm=x6()),wm}var D6=P6(),I6=Q(D6),nC={},Sm,sC;function mj(){if(sC)return Sm;sC=1;var t=TypeError,e=9007199254740991;return Sm=function(r){if(r>e)throw t("Maximum allowed index exceeded");return r},Sm}var aC;function gj(){if(aC)return nC;aC=1;var t=Y(),e=ce(),r=Qi(),i=ct(),n=jt(),s=Yr(),a=mj(),o=fl(),l=D1(),u=qa(),c=Ve(),h=Ea(),d=c("isConcatSpreadable"),f=h>=51||!e(function(){var m=[];return m[d]=!1,m.concat()[0]!==m}),p=function(m){if(!i(m))return!1;var y=m[d];return y!==void 0?!!y:r(m)},v=!f||!u("concat");return t({target:"Array",proto:!0,arity:1,forced:v},{concat:function(y){var g=n(this),O=l(g,0),_=0,w,E,$,b,T;for(w=-1,$=arguments.length;w<$;w++)if(T=w===-1?g:arguments[w],p(T))for(b=s(T),a(_+b),E=0;E<b;E++,_++)E in T&&o(O,_,T[E]);else a(_+1),o(O,_++,T);return O.length=_,O}}),nC}var oC={},lC;function yj(){if(lC)return oC;lC=1;var t=qe();return t("asyncDispose"),oC}var uC={},cC;function C6(){if(cC)return uC;cC=1;var t=qe();return t("asyncIterator"),uC}var hC={},dC;function bj(){if(dC)return hC;dC=1;var t=qe();return t("dispose"),hC}var fC={},pC;function q6(){if(pC)return fC;pC=1;var t=qe();return t("hasInstance"),fC}var vC={},mC;function k6(){if(mC)return vC;mC=1;var t=qe();return t("isConcatSpreadable"),vC}var gC={},yC;function _j(){if(yC)return gC;yC=1;var t=qe();return t("iterator"),gC}var bC={},_C;function A6(){if(_C)return bC;_C=1;var t=qe();return t("match"),bC}var wC={},SC;function M6(){if(SC)return wC;SC=1;var t=qe();return t("matchAll"),wC}var OC={},EC;function N6(){if(EC)return OC;EC=1;var t=qe();return t("replace"),OC}var TC={},$C;function F6(){if($C)return TC;$C=1;var t=qe();return t("search"),TC}var RC={},xC;function L6(){if(xC)return RC;xC=1;var t=qe();return t("species"),RC}var PC={},DC;function j6(){if(DC)return PC;DC=1;var t=qe();return t("split"),PC}var IC={},CC;function wj(){if(CC)return IC;CC=1;var t=qe(),e=uj();return t("toPrimitive"),e(),IC}var qC={},kC;function G6(){if(kC)return qC;kC=1;var t=er(),e=qe(),r=Ji();return e("toStringTag"),r(t("Symbol"),"Symbol"),qC}var AC={},MC;function B6(){if(MC)return AC;MC=1;var t=qe();return t("unscopables"),AC}var NC={},FC;function W6(){if(FC)return NC;FC=1;var t=Ae(),e=Ji();return e(t.JSON,"JSON",!0),NC}var Om,LC;function H6(){if(LC)return Om;LC=1,gj(),dj(),yj(),C6(),bj(),q6(),k6(),_j(),A6(),M6(),N6(),F6(),L6(),j6(),wj(),G6(),B6(),W6();var t=Re();return Om=t.Symbol,Om}var jC={},Em,GC;function pl(){return GC||(GC=1,Em=function(){}),Em}var Tm,BC;function as(){return BC||(BC=1,Tm={}),Tm}var $m,WC;function Y6(){if(WC)return $m;WC=1;var t=Le(),e=_t(),r=Function.prototype,i=t&&Object.getOwnPropertyDescriptor,n=e(r,"name"),s=n&&(function(){}).name==="something",a=n&&(!t||t&&i(r,"name").configurable);return $m={EXISTS:n,PROPER:s,CONFIGURABLE:a},$m}var Rm,HC;function Sj(){if(HC)return Rm;HC=1;var t=ce();return Rm=!t(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),Rm}var xm,YC;function vl(){if(YC)return xm;YC=1;var t=_t(),e=it(),r=jt(),i=ul(),n=Sj(),s=i("IE_PROTO"),a=Object,o=a.prototype;return xm=n?a.getPrototypeOf:function(l){var u=r(l);if(t(u,s))return u[s];var c=u.constructor;return e(c)&&u instanceof c?c.prototype:u instanceof a?o:null},xm}var Pm,UC;function Oj(){if(UC)return Pm;UC=1;var t=ce(),e=it(),r=ct(),i=Da(),n=vl(),s=Ia(),a=Ve(),o=$a(),l=a("iterator"),u=!1,c,h,d;[].keys&&(d=[].keys(),"next"in d?(h=n(n(d)),h!==Object.prototype&&(c=h)):u=!0);var f=!r(c)||t(function(){var p={};return c[l].call(p)!==p});return f?c={}:o&&(c=i(c)),e(c[l])||s(c,l,function(){return this}),Pm={IteratorPrototype:c,BUGGY_SAFARI_ITERATORS:u},Pm}var Dm,VC;function U6(){if(VC)return Dm;VC=1;var t=Oj().IteratorPrototype,e=Da(),r=Sa(),i=Ji(),n=as(),s=function(){return this};return Dm=function(a,o,l,u){var c=o+" Iterator";return a.prototype=e(t,{next:r(+!u,l)}),i(a,c,!1,!0),n[c]=s,a},Dm}var Im,zC;function V6(){if(zC)return Im;zC=1;var t=de(),e=ai();return Im=function(r,i,n){try{return t(e(Object.getOwnPropertyDescriptor(r,i)[n]))}catch{}},Im}var Cm,KC;function z6(){if(KC)return Cm;KC=1;var t=ct();return Cm=function(e){return t(e)||e===null},Cm}var qm,XC;function K6(){if(XC)return qm;XC=1;var t=z6(),e=String,r=TypeError;return qm=function(i){if(t(i))return i;throw new r("Can't set "+e(i)+" as a prototype")},qm}var km,ZC;function X6(){if(ZC)return km;ZC=1;var t=V6(),e=ct(),r=si(),i=K6();return km=Object.setPrototypeOf||("__proto__"in{}?(function(){var n=!1,s={},a;try{a=t(Object.prototype,"__proto__","set"),a(s,[]),n=s instanceof Array}catch{}return function(l,u){return r(l),i(u),e(l)&&(n?a(l,u):l.__proto__=u),l}})():void 0),km}var Am,QC;function A1(){if(QC)return Am;QC=1;var t=Y(),e=xt(),r=$a(),i=Y6(),n=it(),s=U6(),a=vl(),o=X6(),l=Ji(),u=rs(),c=Ia(),h=Ve(),d=as(),f=Oj(),p=i.PROPER,v=i.CONFIGURABLE,m=f.IteratorPrototype,y=f.BUGGY_SAFARI_ITERATORS,g=h("iterator"),O="keys",_="values",w="entries",E=function(){return this};return Am=function($,b,T,R,x,P,I){s(T,b,R);var j=function(oe){if(oe===x&&U)return U;if(!y&&oe&&oe in B)return B[oe];switch(oe){case O:return function(){return new T(this,oe)};case _:return function(){return new T(this,oe)};case w:return function(){return new T(this,oe)}}return function(){return new T(this)}},K=b+" Iterator",G=!1,B=$.prototype,A=B[g]||B["@@iterator"]||x&&B[x],U=!y&&A||j(x),me=b==="Array"&&B.entries||A,W,se,Se;if(me&&(W=a(me.call(new $)),W!==Object.prototype&&W.next&&(!r&&a(W)!==m&&(o?o(W,m):n(W[g])||c(W,g,E)),l(W,K,!0,!0),r&&(d[K]=E))),p&&x===_&&A&&A.name!==_&&(!r&&v?u(B,"name",_):(G=!0,U=function(){return e(A,this)})),x)if(se={values:j(_),keys:P?U:j(O),entries:j(w)},I)for(Se in se)(y||G||!(Se in B))&&c(B,Se,se[Se]);else t({target:b,proto:!0,forced:y||G},se);return(!r||I)&&B[g]!==U&&c(B,g,U,{name:x}),d[b]=U,se},Am}var Mm,JC;function M1(){return JC||(JC=1,Mm=function(t,e){return{value:t,done:e}}),Mm}var Nm,eq;function N1(){if(eq)return Nm;eq=1;var t=dr(),e=pl(),r=as(),i=Ca(),n=tr().f,s=A1(),a=M1(),o=$a(),l=Le(),u="Array Iterator",c=i.set,h=i.getterFor(u);Nm=s(Array,"Array",function(f,p){c(this,{type:u,target:t(f),index:0,kind:p})},function(){var f=h(this),p=f.target,v=f.index++;if(!p||v>=p.length)return f.target=null,a(void 0,!0);switch(f.kind){case"keys":return a(v,!1);case"values":return a(p[v],!1)}return a([v,p[v]],!1)},"values");var d=r.Arguments=r.Array;if(e("keys"),e("values"),e("entries"),!o&&l&&d.name!=="values")try{n(d,"name",{value:"values"})}catch{}return Nm}var Fm,tq;function Z6(){return tq||(tq=1,Fm={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}),Fm}var rq;function F1(){if(rq)return jC;rq=1,N1();var t=Z6(),e=Ae(),r=Ji(),i=as();for(var n in t)r(e[n],n),i[n]=i.Array;return jC}var Lm,iq;function Ej(){if(iq)return Lm;iq=1;var t=H6();return F1(),Lm=t,Lm}var nq={},sq;function Q6(){if(sq)return nq;sq=1;var t=Ve(),e=tr().f,r=t("metadata"),i=Function.prototype;return i[r]===void 0&&e(i,r,{value:null}),nq}var aq={},oq;function J6(){return oq||(oq=1,yj()),aq}var lq={},uq;function e8(){return uq||(uq=1,bj()),lq}var cq={},hq;function t8(){if(hq)return cq;hq=1;var t=qe();return t("metadata"),cq}var jm,dq;function r8(){if(dq)return jm;dq=1;var t=Ej();return Q6(),J6(),e8(),t8(),jm=t,jm}var fq={},Gm,pq;function Tj(){if(pq)return Gm;pq=1;var t=er(),e=de(),r=t("Symbol"),i=r.keyFor,n=e(r.prototype.valueOf);return Gm=r.isRegisteredSymbol||function(a){try{return i(n(a))!==void 0}catch{return!1}},Gm}var vq;function i8(){if(vq)return fq;vq=1;var t=Y(),e=Tj();return t({target:"Symbol",stat:!0},{isRegisteredSymbol:e}),fq}var mq={},Bm,gq;function $j(){if(gq)return Bm;gq=1;for(var t=ts(),e=er(),r=de(),i=Ta(),n=Ve(),s=e("Symbol"),a=s.isWellKnownSymbol,o=e("Object","getOwnPropertyNames"),l=r(s.prototype.valueOf),u=t("wks"),c=0,h=o(s),d=h.length;c<d;c++)try{var f=h[c];i(s[f])&&n(f)}catch{}return Bm=function(v){if(a&&a(v))return!0;try{for(var m=l(v),y=0,g=o(u),O=g.length;y<O;y++)if(u[g[y]]==m)return!0}catch{}return!1},Bm}var yq;function n8(){if(yq)return mq;yq=1;var t=Y(),e=$j();return t({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:e}),mq}var bq={},_q;function s8(){if(_q)return bq;_q=1;var t=qe();return t("customMatcher"),bq}var wq={},Sq;function a8(){if(Sq)return wq;Sq=1;var t=qe();return t("observable"),wq}var Oq={},Eq;function o8(){if(Eq)return Oq;Eq=1;var t=Y(),e=Tj();return t({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:e}),Oq}var Tq={},$q;function l8(){if($q)return Tq;$q=1;var t=Y(),e=$j();return t({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:e}),Tq}var Rq={},xq;function u8(){if(xq)return Rq;xq=1;var t=qe();return t("matcher"),Rq}var Pq={},Dq;function c8(){if(Dq)return Pq;Dq=1;var t=qe();return t("metadataKey"),Pq}var Iq={},Cq;function h8(){if(Cq)return Iq;Cq=1;var t=qe();return t("patternMatch"),Iq}var qq={},kq;function d8(){if(kq)return qq;kq=1;var t=qe();return t("replaceAll"),qq}var Wm,Aq;function f8(){if(Aq)return Wm;Aq=1;var t=r8();return i8(),n8(),s8(),a8(),o8(),l8(),u8(),c8(),h8(),d8(),Wm=t,Wm}var Hm,Mq;function p8(){return Mq||(Mq=1,Hm=f8()),Hm}var v8=p8(),Ka=Q(v8),Nq={},Ym,Fq;function m8(){if(Fq)return Ym;Fq=1;var t=de(),e=ns(),r=rr(),i=si(),n=t("".charAt),s=t("".charCodeAt),a=t("".slice),o=function(l){return function(u,c){var h=r(i(u)),d=e(c),f=h.length,p,v;return d<0||d>=f?l?"":void 0:(p=s(h,d),p<55296||p>56319||d+1===f||(v=s(h,d+1))<56320||v>57343?l?n(h,d):p:l?a(h,d,d+2):(p-55296<<10)+(v-56320)+65536)}};return Ym={codeAt:o(!1),charAt:o(!0)},Ym}var Lq;function Rj(){if(Lq)return Nq;Lq=1;var t=m8().charAt,e=rr(),r=Ca(),i=A1(),n=M1(),s="String Iterator",a=r.set,o=r.getterFor(s);return i(String,"String",function(l){a(this,{type:s,string:e(l),index:0})},function(){var u=o(this),c=u.string,h=u.index,d;return h>=c.length?n(void 0,!0):(d=t(c,h),u.index+=d.length,n(d,!1))}),Nq}var Um,jq;function g8(){if(jq)return Um;jq=1,N1(),Rj(),_j();var t=dl();return Um=t.f("iterator"),Um}var Vm,Gq;function y8(){if(Gq)return Vm;Gq=1;var t=g8();return F1(),Vm=t,Vm}var zm,Bq;function b8(){if(Bq)return zm;Bq=1;var t=y8();return zm=t,zm}var Km,Wq;function _8(){if(Wq)return Km;Wq=1;var t=b8();return Km=t,Km}var Xm,Hq;function w8(){return Hq||(Hq=1,Xm=_8()),Xm}var S8=w8(),O8=Q(S8);function Ys(t){"@babel/helpers - typeof";return Ys=typeof Ka=="function"&&typeof O8=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Ka=="function"&&e.constructor===Ka&&e!==Ka.prototype?"symbol":typeof e},Ys(t)}var Zm,Yq;function E8(){if(Yq)return Zm;Yq=1,wj();var t=dl();return Zm=t.f("toPrimitive"),Zm}var Qm,Uq;function T8(){if(Uq)return Qm;Uq=1;var t=E8();return Qm=t,Qm}var Jm,Vq;function $8(){if(Vq)return Jm;Vq=1;var t=T8();return Jm=t,Jm}var eg,zq;function R8(){if(zq)return eg;zq=1;var t=$8();return eg=t,eg}var tg,Kq;function x8(){return Kq||(Kq=1,tg=R8()),tg}var P8=x8(),D8=Q(P8);function I8(t,e){if(Ys(t)!="object"||!t)return t;var r=t[D8];if(r!==void 0){var i=r.call(t,e);if(Ys(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function C8(t){var e=I8(t,"string");return Ys(e)=="symbol"?e:e+""}function q8(t,e,r){return(e=C8(e))in t?I6(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Xq={},Zq;function k8(){if(Zq)return Xq;Zq=1;var t=Y(),e=oi().map,r=qa(),i=r("map");return t({target:"Array",proto:!0,forced:!i},{map:function(s){return e(this,s,arguments.length>1?arguments[1]:void 0)}}),Xq}var rg,Qq;function A8(){if(Qq)return rg;Qq=1,k8();var t=nt();return rg=t("Array","map"),rg}var ig,Jq;function M8(){if(Jq)return ig;Jq=1;var t=je(),e=A8(),r=Array.prototype;return ig=function(i){var n=i.map;return i===r||t(r,i)&&n===r.map?e:n},ig}var ng,ek;function N8(){if(ek)return ng;ek=1;var t=M8();return ng=t,ng}var sg,tk;function F8(){return tk||(tk=1,sg=N8()),sg}var L8=F8(),Qe=Q(L8),rk={},ag,ik;function j8(){if(ik)return ag;ik=1;var t=ai(),e=jt(),r=nl(),i=Yr(),n=TypeError,s="Reduce of empty array with no initial value",a=function(o){return function(l,u,c,h){var d=e(l),f=r(d),p=i(d);if(t(u),p===0&&c<2)throw new n(s);var v=o?p-1:0,m=o?-1:1;if(c<2)for(;;){if(v in f){h=f[v],v+=m;break}if(v+=m,o?v<0:p<=v)throw new n(s)}for(;o?v>=0:p>v;v+=m)v in f&&(h=u(h,f[v],v,d));return h}};return ag={left:a(!1),right:a(!0)},ag}var og,nk;function G8(){if(nk)return og;nk=1;var t=rj();return og=t==="NODE",og}var sk;function B8(){if(sk)return rk;sk=1;var t=Y(),e=j8().left,r=ss(),i=Ea(),n=G8(),s=!n&&i>79&&i<83,a=s||!r("reduce");return t({target:"Array",proto:!0,forced:a},{reduce:function(l){var u=arguments.length;return e(this,l,u,u>1?arguments[1]:void 0)}}),rk}var lg,ak;function W8(){if(ak)return lg;ak=1,B8();var t=nt();return lg=t("Array","reduce"),lg}var ug,ok;function H8(){if(ok)return ug;ok=1;var t=je(),e=W8(),r=Array.prototype;return ug=function(i){var n=i.reduce;return i===r||t(r,i)&&n===r.reduce?e:n},ug}var cg,lk;function Y8(){if(lk)return cg;lk=1;var t=H8();return cg=t,cg}var hg,uk;function U8(){return uk||(uk=1,hg=Y8()),hg}var V8=U8(),xj=Q(V8),ck={},hk;function z8(){if(hk)return ck;hk=1;var t=Y(),e=jt(),r=Pa(),i=ce(),n=i(function(){r(1)});return t({target:"Object",stat:!0,forced:n},{keys:function(a){return r(e(a))}}),ck}var dg,dk;function K8(){if(dk)return dg;dk=1,z8();var t=Re();return dg=t.Object.keys,dg}var fg,fk;function X8(){if(fk)return fg;fk=1;var t=K8();return fg=t,fg}var pg,pk;function Z8(){return pk||(pk=1,pg=X8()),pg}var Q8=Z8(),ut=Q(Q8),vg,vk;function J8(){return vk||(vk=1,vg=vj()),vg}var eX=J8(),Pj=Q(eX),mg,mk;function tX(){return mk||(mk=1,mg=Ej()),mg}var rX=tX(),iX=Q(rX),gk={},yk;function nX(){if(yk)return gk;yk=1;var t=Y(),e=Qi(),r=aj(),i=ct(),n=ll(),s=Yr(),a=dr(),o=fl(),l=Ve(),u=qa(),c=is(),h=u("slice"),d=l("species"),f=Array,p=Math.max;return t({target:"Array",proto:!0,forced:!h},{slice:function(m,y){var g=a(this),O=s(g),_=n(m,O),w=n(y===void 0?O:y,O),E,$,b;if(e(g)&&(E=g.constructor,r(E)&&(E===f||e(E.prototype))?E=void 0:i(E)&&(E=E[d],E===null&&(E=void 0)),E===f||E===void 0))return c(g,_,w);for($=new(E===void 0?f:E)(p(w-_,0)),b=0;_<w;_++,b++)_ in g&&o($,b,g[_]);return $.length=b,$}}),gk}var gg,bk;function sX(){if(bk)return gg;bk=1,nX();var t=nt();return gg=t("Array","slice"),gg}var yg,_k;function aX(){if(_k)return yg;_k=1;var t=je(),e=sX(),r=Array.prototype;return yg=function(i){var n=i.slice;return i===r||t(r,i)&&n===r.slice?e:n},yg}var bg,wk;function oX(){if(wk)return bg;wk=1;var t=aX();return bg=t,bg}var _g,Sk;function lX(){return Sk||(Sk=1,_g=oX()),_g}var uX=lX(),os=Q(uX),Ok={},Ek;function cX(){if(Ek)return Ok;Ek=1;var t=Y(),e=pj();return t({target:"Reflect",stat:!0},{ownKeys:e}),Ok}var wg,Tk;function hX(){if(Tk)return wg;Tk=1,cX();var t=Re();return wg=t.Reflect.ownKeys,wg}var Sg,$k;function dX(){if($k)return Sg;$k=1;var t=hX();return Sg=t,Sg}var Og,Rk;function fX(){return Rk||(Rk=1,Og=dX()),Og}var pX=fX(),vX=Q(pX),xk={},Pk;function mX(){if(Pk)return xk;Pk=1;var t=Y(),e=de(),r=Date,i=e(r.prototype.getTime);return t({target:"Date",stat:!0},{now:function(){return i(new r)}}),xk}var Eg,Dk;function gX(){if(Dk)return Eg;Dk=1,mX();var t=Re();return Eg=t.Date.now,Eg}var Tg,Ik;function yX(){if(Ik)return Tg;Ik=1;var t=gX();return Tg=t,Tg}var $g,Ck;function bX(){return Ck||(Ck=1,$g=yX()),$g}var _X=bX(),It=Q(_X),qk={},kk;function wX(){if(kk)return qk;kk=1;var t=Y(),e=de(),r=Qi(),i=e([].reverse),n=[1,2];return t({target:"Array",proto:!0,forced:String(n)===String(n.reverse())},{reverse:function(){return r(this)&&(this.length=this.length),i(this)}}),qk}var Rg,Ak;function SX(){if(Ak)return Rg;Ak=1,wX();var t=nt();return Rg=t("Array","reverse"),Rg}var xg,Mk;function OX(){if(Mk)return xg;Mk=1;var t=je(),e=SX(),r=Array.prototype;return xg=function(i){var n=i.reverse;return i===r||t(r,i)&&n===r.reverse?e:n},xg}var Pg,Nk;function EX(){if(Nk)return Pg;Nk=1;var t=OX();return Pg=t,Pg}var Dg,Fk;function TX(){return Fk||(Fk=1,Dg=EX()),Dg}var $X=TX(),RX=Q($X),Lk={},Ig,jk;function xX(){if(jk)return Ig;jk=1;var t=Le(),e=Qi(),r=TypeError,i=Object.getOwnPropertyDescriptor,n=t&&!(function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(s){return s instanceof TypeError}})();return Ig=n?function(s,a){if(e(s)&&!i(s,"length").writable)throw new r("Cannot set read only .length");return s.length=a}:function(s,a){return s.length=a},Ig}var Cg,Gk;function Dj(){if(Gk)return Cg;Gk=1;var t=es(),e=TypeError;return Cg=function(r,i){if(!delete r[i])throw new e("Cannot delete property "+t(i)+" of "+t(r))},Cg}var Bk;function PX(){if(Bk)return Lk;Bk=1;var t=Y(),e=jt(),r=ll(),i=ns(),n=Yr(),s=xX(),a=mj(),o=D1(),l=fl(),u=Dj(),c=qa(),h=c("splice"),d=Math.max,f=Math.min;return t({target:"Array",proto:!0,forced:!h},{splice:function(v,m){var y=e(this),g=n(y),O=r(v,g),_=arguments.length,w,E,$,b,T,R;for(_===0?w=E=0:_===1?(w=0,E=g-O):(w=_-2,E=f(d(i(m),0),g-O)),a(g+w-E),$=o(y,E),b=0;b<E;b++)T=O+b,T in y&&l($,b,y[T]);if($.length=E,w<E){for(b=O;b<g-E;b++)T=b+E,R=b+w,T in y?y[R]=y[T]:u(y,R);for(b=g;b>g-E+w;b--)u(y,b-1)}else if(w>E)for(b=g-E;b>O;b--)T=b+E-1,R=b+w-1,T in y?y[R]=y[T]:u(y,R);for(b=0;b<w;b++)y[b+O]=arguments[b+2];return s(y,g-E+w),$}}),Lk}var qg,Wk;function DX(){if(Wk)return qg;Wk=1,PX();var t=nt();return qg=t("Array","splice"),qg}var kg,Hk;function IX(){if(Hk)return kg;Hk=1;var t=je(),e=DX(),r=Array.prototype;return kg=function(i){var n=i.splice;return i===r||t(r,i)&&n===r.splice?e:n},kg}var Ag,Yk;function CX(){if(Yk)return Ag;Yk=1;var t=IX();return Ag=t,Ag}var Mg,Uk;function qX(){return Uk||(Uk=1,Mg=CX()),Mg}var kX=qX(),Et=Q(kX),Vk={},Ng,zk;function AX(){if(zk)return Ng;zk=1;var t=Le(),e=de(),r=xt(),i=ce(),n=Pa(),s=hl(),a=il(),o=jt(),l=nl(),u=Object.assign,c=Object.defineProperty,h=e([].concat);return Ng=!u||i(function(){if(t&&u({b:1},u(c({},"a",{enumerable:!0,get:function(){c(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var d={},f={},p=Symbol("assign detection"),v="abcdefghijklmnopqrst";return d[p]=7,v.split("").forEach(function(m){f[m]=m}),u({},d)[p]!==7||n(u({},f)).join("")!==v})?function(f,p){for(var v=o(f),m=arguments.length,y=1,g=s.f,O=a.f;m>y;)for(var _=l(arguments[y++]),w=g?h(n(_),g(_)):n(_),E=w.length,$=0,b;E>$;)b=w[$++],(!t||r(O,_,b))&&(v[b]=_[b]);return v}:u,Ng}var Kk;function MX(){if(Kk)return Vk;Kk=1;var t=Y(),e=AX();return t({target:"Object",stat:!0,arity:2,forced:Object.assign!==e},{assign:e}),Vk}var Fg,Xk;function NX(){if(Xk)return Fg;Xk=1,MX();var t=Re();return Fg=t.Object.assign,Fg}var Lg,Zk;function FX(){if(Zk)return Lg;Zk=1;var t=NX();return Lg=t,Lg}var jg,Qk;function LX(){return Qk||(Qk=1,jg=FX()),jg}var jX=LX(),Ai=Q(jX),Jk={},eA;function GX(){if(eA)return Jk;eA=1;var t=Y(),e=I1().includes,r=ce(),i=pl(),n=r(function(){return!Array(1).includes()});return t({target:"Array",proto:!0,forced:n},{includes:function(a){return e(this,a,arguments.length>1?arguments[1]:void 0)}}),i("includes"),Jk}var Gg,tA;function BX(){if(tA)return Gg;tA=1,GX();var t=nt();return Gg=t("Array","includes"),Gg}var rA={},Bg,iA;function WX(){if(iA)return Bg;iA=1;var t=ct(),e=Er(),r=Ve(),i=r("match");return Bg=function(n){var s;return t(n)&&((s=n[i])!==void 0?!!s:e(n)==="RegExp")},Bg}var Wg,nA;function HX(){if(nA)return Wg;nA=1;var t=WX(),e=TypeError;return Wg=function(r){if(t(r))throw new e("The method doesn't accept regular expressions");return r},Wg}var Hg,sA;function YX(){if(sA)return Hg;sA=1;var t=Ve(),e=t("match");return Hg=function(r){var i=/./;try{"/./"[r](i)}catch{try{return i[e]=!1,"/./"[r](i)}catch{}}return!1},Hg}var aA;function UX(){if(aA)return rA;aA=1;var t=Y(),e=de(),r=HX(),i=si(),n=rr(),s=YX(),a=e("".indexOf);return t({target:"String",proto:!0,forced:!s("includes")},{includes:function(l){return!!~a(n(i(this)),n(r(l)),arguments.length>1?arguments[1]:void 0)}}),rA}var Yg,oA;function VX(){if(oA)return Yg;oA=1,UX();var t=nt();return Yg=t("String","includes"),Yg}var Ug,lA;function zX(){if(lA)return Ug;lA=1;var t=je(),e=BX(),r=VX(),i=Array.prototype,n=String.prototype;return Ug=function(s){var a=s.includes;return s===i||t(i,s)&&a===i.includes?e:typeof s=="string"||s===n||t(n,s)&&a===n.includes?r:a},Ug}var Vg,uA;function KX(){if(uA)return Vg;uA=1;var t=zX();return Vg=t,Vg}var zg,cA;function XX(){return cA||(cA=1,zg=KX()),zg}var ZX=XX(),Dn=Q(ZX),hA={},dA;function QX(){if(dA)return hA;dA=1;var t=Y(),e=ce(),r=jt(),i=vl(),n=Sj(),s=e(function(){i(1)});return t({target:"Object",stat:!0,forced:s,sham:!n},{getPrototypeOf:function(o){return i(r(o))}}),hA}var Kg,fA;function JX(){if(fA)return Kg;fA=1,QX();var t=Re();return Kg=t.Object.getPrototypeOf,Kg}var Xg,pA;function e9(){if(pA)return Xg;pA=1;var t=JX();return Xg=t,Xg}var Zg,vA;function t9(){return vA||(vA=1,Zg=e9()),Zg}var r9=t9(),mA=Q(r9),Qg,gA;function i9(){if(gA)return Qg;gA=1,gj();var t=nt();return Qg=t("Array","concat"),Qg}var Jg,yA;function n9(){if(yA)return Jg;yA=1;var t=je(),e=i9(),r=Array.prototype;return Jg=function(i){var n=i.concat;return i===r||t(r,i)&&n===r.concat?e:n},Jg}var ey,bA;function s9(){if(bA)return ey;bA=1;var t=n9();return ey=t,ey}var ty,_A;function a9(){return _A||(_A=1,ty=s9()),ty}var o9=a9(),Ge=Q(o9),wA={},ry,SA;function Ij(){if(SA)return ry;SA=1;var t=Le(),e=ce(),r=de(),i=vl(),n=Pa(),s=dr(),a=il().f,o=r(a),l=r([].push),u=t&&e(function(){var h=Object.create(null);return h[2]=2,!o(h,2)}),c=function(h){return function(d){for(var f=s(d),p=n(f),v=u&&i(f)===null,m=p.length,y=0,g=[],O;m>y;)O=p[y++],(!t||(v?O in f:o(f,O)))&&l(g,h?[O,f[O]]:f[O]);return g}};return ry={entries:c(!0),values:c(!1)},ry}var OA;function l9(){if(OA)return wA;OA=1;var t=Y(),e=Ij().values;return t({target:"Object",stat:!0},{values:function(i){return e(i)}}),wA}var iy,EA;function u9(){if(EA)return iy;EA=1,l9();var t=Re();return iy=t.Object.values,iy}var ny,TA;function c9(){if(TA)return ny;TA=1;var t=u9();return ny=t,ny}var sy,$A;function h9(){return $A||($A=1,sy=c9()),sy}var d9=h9(),L1=Q(d9),RA={},ay,xA;function j1(){return xA||(xA=1,ay=`
|
|
67
|
+
\v\f\r \u2028\u2029\uFEFF`),ay}var oy,PA;function Cj(){if(PA)return oy;PA=1;var t=de(),e=si(),r=rr(),i=j1(),n=t("".replace),s=RegExp("^["+i+"]+"),a=RegExp("(^|[^"+i+"])["+i+"]+$"),o=function(l){return function(u){var c=r(e(u));return l&1&&(c=n(c,s,"")),l&2&&(c=n(c,a,"$1")),c}};return oy={start:o(1),end:o(2),trim:o(3)},oy}var ly,DA;function f9(){if(DA)return ly;DA=1;var t=Ae(),e=ce(),r=de(),i=rr(),n=Cj().trim,s=j1(),a=t.parseInt,o=t.Symbol,l=o&&o.iterator,u=/^[+-]?0x/i,c=r(u.exec),h=a(s+"08")!==8||a(s+"0x16")!==22||l&&!e(function(){a(Object(l))});return ly=h?function(f,p){var v=n(i(f));return a(v,p>>>0||(c(u,v)?16:10))}:a,ly}var IA;function p9(){if(IA)return RA;IA=1;var t=Y(),e=f9();return t({global:!0,forced:parseInt!==e},{parseInt:e}),RA}var uy,CA;function v9(){if(CA)return uy;CA=1,p9();var t=Re();return uy=t.parseInt,uy}var cy,qA;function m9(){if(qA)return cy;qA=1;var t=v9();return cy=t,cy}var hy,kA;function g9(){return kA||(kA=1,hy=m9()),hy}var y9=g9(),Ct=Q(y9),AA={},MA;function b9(){if(MA)return AA;MA=1;var t=Y(),e=T1(),r=I1().indexOf,i=ss(),n=e([].indexOf),s=!!n&&1/n([1],1,-0)<0,a=s||!i("indexOf");return t({target:"Array",proto:!0,forced:a},{indexOf:function(l){var u=arguments.length>1?arguments[1]:void 0;return s?n(this,l,u)||0:r(this,l,u)}}),AA}var dy,NA;function _9(){if(NA)return dy;NA=1,b9();var t=nt();return dy=t("Array","indexOf"),dy}var fy,FA;function w9(){if(FA)return fy;FA=1;var t=je(),e=_9(),r=Array.prototype;return fy=function(i){var n=i.indexOf;return i===r||t(r,i)&&n===r.indexOf?e:n},fy}var py,LA;function S9(){if(LA)return py;LA=1;var t=w9();return py=t,py}var vy,jA;function O9(){return jA||(jA=1,vy=S9()),vy}var E9=O9(),be=Q(E9),GA={},BA;function T9(){if(BA)return GA;BA=1;var t=Y(),e=Ij().entries;return t({target:"Object",stat:!0},{entries:function(i){return e(i)}}),GA}var my,WA;function $9(){if(WA)return my;WA=1,T9();var t=Re();return my=t.Object.entries,my}var gy,HA;function R9(){if(HA)return gy;HA=1;var t=$9();return gy=t,gy}var yy,YA;function x9(){return YA||(YA=1,yy=R9()),yy}var P9=x9(),D9=Q(P9),UA={},VA;function I9(){if(VA)return UA;VA=1;var t=Y(),e=Le(),r=Da();return t({target:"Object",stat:!0,sham:!e},{create:r}),UA}var by,zA;function C9(){if(zA)return by;zA=1,I9();var t=Re(),e=t.Object;return by=function(i,n){return e.create(i,n)},by}var _y,KA;function q9(){if(KA)return _y;KA=1;var t=C9();return _y=t,_y}var wy,XA;function k9(){return XA||(XA=1,wy=q9()),wy}var A9=k9(),ml=Q(A9),ZA={},Sy,QA;function qj(){if(QA)return Sy;QA=1;var t=ns(),e=rr(),r=si(),i=RangeError;return Sy=function(s){var a=e(r(this)),o="",l=t(s);if(l<0||l===1/0)throw new i("Wrong number of repetitions");for(;l>0;(l>>>=1)&&(a+=a))l&1&&(o+=a);return o},Sy}var Oy,JA;function M9(){if(JA)return Oy;JA=1;var t=de(),e=sj(),r=rr(),i=qj(),n=si(),s=t(i),a=t("".slice),o=Math.ceil,l=function(u){return function(c,h,d){var f=r(n(c)),p=e(h),v=f.length,m=d===void 0?" ":r(d),y,g;return p<=v||m===""?f:(y=p-v,g=s(m,o(y/m.length)),g.length>y&&(g=a(g,0,y)),u?f+g:g+f)}};return Oy={start:l(!1),end:l(!0)},Oy}var Ey,eM;function N9(){if(eM)return Ey;eM=1;var t=de(),e=ce(),r=M9().start,i=RangeError,n=isFinite,s=Math.abs,a=Date.prototype,o=a.toISOString,l=t(a.getTime),u=t(a.getUTCDate),c=t(a.getUTCFullYear),h=t(a.getUTCHours),d=t(a.getUTCMilliseconds),f=t(a.getUTCMinutes),p=t(a.getUTCMonth),v=t(a.getUTCSeconds);return Ey=e(function(){return o.call(new Date(-5e13-1))!=="0385-07-25T07:06:39.999Z"})||!e(function(){o.call(new Date(NaN))})?function(){if(!n(l(this)))throw new i("Invalid time value");var y=this,g=c(y),O=d(y),_=g<0?"-":g>9999?"+":"";return _+r(s(g),_?6:4,0)+"-"+r(p(y)+1,2,0)+"-"+r(u(y),2,0)+"T"+r(h(y),2,0)+":"+r(f(y),2,0)+":"+r(v(y),2,0)+"."+r(O,3,0)+"Z"}:o,Ey}var tM;function F9(){if(tM)return ZA;tM=1;var t=Y(),e=xt(),r=jt(),i=Q2(),n=N9(),s=Er(),a=ce(),o=a(function(){return new Date(NaN).toJSON()!==null||e(Date.prototype.toJSON,{toISOString:function(){return 1}})!==1});return t({target:"Date",proto:!0,forced:o},{toJSON:function(u){var c=r(this),h=i(c,"number");return typeof h=="number"&&!isFinite(h)?null:!("toISOString"in c)&&s(c)==="Date"?e(n,c):c.toISOString()}}),ZA}var Ty,rM;function L9(){if(rM)return Ty;rM=1,F9(),hj();var t=Re(),e=rl();return t.JSON||(t.JSON={stringify:JSON.stringify}),Ty=function(i,n,s){return e(t.JSON.stringify,null,arguments)},Ty}var $y,iM;function j9(){if(iM)return $y;iM=1;var t=L9();return $y=t,$y}var Ry,nM;function G9(){return nM||(nM=1,Ry=j9()),Ry}var B9=G9(),qt=Q(B9),sM={},xy,aM;function W9(){if(aM)return xy;aM=1;var t=jt(),e=ll(),r=Yr();return xy=function(n){for(var s=t(this),a=r(s),o=arguments.length,l=e(o>1?arguments[1]:void 0,a),u=o>2?arguments[2]:void 0,c=u===void 0?a:e(u,a);c>l;)s[l++]=n;return s},xy}var oM;function H9(){if(oM)return sM;oM=1;var t=Y(),e=W9(),r=pl();return t({target:"Array",proto:!0},{fill:e}),r("fill"),sM}var Py,lM;function Y9(){if(lM)return Py;lM=1,H9();var t=nt();return Py=t("Array","fill"),Py}var Dy,uM;function U9(){if(uM)return Dy;uM=1;var t=je(),e=Y9(),r=Array.prototype;return Dy=function(i){var n=i.fill;return i===r||t(r,i)&&n===r.fill?e:n},Dy}var Iy,cM;function V9(){if(cM)return Iy;cM=1;var t=U9();return Iy=t,Iy}var Cy,hM;function z9(){return hM||(hM=1,Cy=V9()),Cy}var K9=z9(),kj=Q(K9),qy={exports:{}},dM;function X9(){return dM||(dM=1,(function(t){t.exports=e;function e(i){if(i)return r(i)}function r(i){for(var n in e.prototype)i[n]=e.prototype[n];return i}e.prototype.on=e.prototype.addEventListener=function(i,n){return this._callbacks=this._callbacks||{},(this._callbacks["$"+i]=this._callbacks["$"+i]||[]).push(n),this},e.prototype.once=function(i,n){function s(){this.off(i,s),n.apply(this,arguments)}return s.fn=n,this.on(i,s),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(i,n){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var s=this._callbacks["$"+i];if(!s)return this;if(arguments.length==1)return delete this._callbacks["$"+i],this;for(var a,o=0;o<s.length;o++)if(a=s[o],a===n||a.fn===n){s.splice(o,1);break}return s.length===0&&delete this._callbacks["$"+i],this},e.prototype.emit=function(i){this._callbacks=this._callbacks||{};for(var n=new Array(arguments.length-1),s=this._callbacks["$"+i],a=1;a<arguments.length;a++)n[a-1]=arguments[a];if(s){s=s.slice(0);for(var a=0,o=s.length;a<o;++a)s[a].apply(this,n)}return this},e.prototype.listeners=function(i){return this._callbacks=this._callbacks||{},this._callbacks["$"+i]||[]},e.prototype.hasListeners=function(i){return!!this.listeners(i).length}})(qy)),qy.exports}var Z9=X9(),G1=Q(Z9);/*! Hammer.JS - v2.0.17-rc - 2019-12-16
|
|
68
|
+
* http://naver.github.io/egjs
|
|
69
|
+
*
|
|
70
|
+
* Forked By Naver egjs
|
|
71
|
+
* Copyright (c) hammerjs
|
|
72
|
+
* Licensed under the MIT license */function cr(){return cr=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},cr.apply(this,arguments)}function ir(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function Xa(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var v_;typeof Object.assign!="function"?v_=function(e){if(e==null)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(e),i=1;i<arguments.length;i++){var n=arguments[i];if(n!=null)for(var s in n)n.hasOwnProperty(s)&&(r[s]=n[s])}return r}:v_=Object.assign;var Mi=v_,fM=["","webkit","Moz","MS","ms","o"],Q9=typeof document>"u"?{style:{}}:document.createElement("div"),J9="function",yn=Math.round,Ni=Math.abs,B1=Date.now;function gl(t,e){for(var r,i,n=e[0].toUpperCase()+e.slice(1),s=0;s<fM.length;){if(r=fM[s],i=r?r+n:e,i in t)return i;s++}}var Ar;typeof window>"u"?Ar={}:Ar=window;var Aj=gl(Q9.style,"touchAction"),Mj=Aj!==void 0;function e7(){if(!Mj)return!1;var t={},e=Ar.CSS&&Ar.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(r){return t[r]=e?Ar.CSS.supports("touch-action",r):!0}),t}var Nj="compute",Fj="auto",m_="manipulation",Pi="none",Us="pan-x",Vs="pan-y",Za=e7(),t7=/mobile|tablet|ip(ad|hone|od)|android/i,Lj="ontouchstart"in Ar,r7=gl(Ar,"PointerEvent")!==void 0,i7=Lj&&t7.test(navigator.userAgent),ka="touch",n7="pen",W1="mouse",s7="kinect",a7=25,gt=1,en=2,He=4,$t=8,bo=1,Aa=2,Ma=4,Na=8,In=16,yr=Aa|Ma,Di=Na|In,jj=yr|Di,Gj=["x","y"],_o=["clientX","clientY"];function Mr(t,e,r){var i;if(t)if(t.forEach)t.forEach(e,r);else if(t.length!==void 0)for(i=0;i<t.length;)e.call(r,t[i],i,t),i++;else for(i in t)t.hasOwnProperty(i)&&e.call(r,t[i],i,t)}function yl(t,e){return typeof t===J9?t.apply(e&&e[0]||void 0,e):t}function Ei(t,e){return t.indexOf(e)>-1}function o7(t){if(Ei(t,Pi))return Pi;var e=Ei(t,Us),r=Ei(t,Vs);return e&&r?Pi:e||r?e?Us:Vs:Ei(t,m_)?m_:Fj}var Bj=(function(){function t(r,i){this.manager=r,this.set(i)}var e=t.prototype;return e.set=function(i){i===Nj&&(i=this.compute()),Mj&&this.manager.element.style&&Za[i]&&(this.manager.element.style[Aj]=i),this.actions=i.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var i=[];return Mr(this.manager.recognizers,function(n){yl(n.options.enable,[n])&&(i=i.concat(n.getTouchAction()))}),o7(i.join(" "))},e.preventDefaults=function(i){var n=i.srcEvent,s=i.offsetDirection;if(this.manager.session.prevented){n.preventDefault();return}var a=this.actions,o=Ei(a,Pi)&&!Za[Pi],l=Ei(a,Vs)&&!Za[Vs],u=Ei(a,Us)&&!Za[Us];if(o){var c=i.pointers.length===1,h=i.distance<2,d=i.deltaTime<250;if(c&&h&&d)return}if(!(u&&l)&&(o||l&&s&yr||u&&s&Di))return this.preventSrc(n)},e.preventSrc=function(i){this.manager.session.prevented=!0,i.preventDefault()},t})();function H1(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function Wj(t){var e=t.length;if(e===1)return{x:yn(t[0].clientX),y:yn(t[0].clientY)};for(var r=0,i=0,n=0;n<e;)r+=t[n].clientX,i+=t[n].clientY,n++;return{x:yn(r/e),y:yn(i/e)}}function pM(t){for(var e=[],r=0;r<t.pointers.length;)e[r]={clientX:yn(t.pointers[r].clientX),clientY:yn(t.pointers[r].clientY)},r++;return{timeStamp:B1(),pointers:e,center:Wj(e),deltaX:t.deltaX,deltaY:t.deltaY}}function wo(t,e,r){r||(r=Gj);var i=e[r[0]]-t[r[0]],n=e[r[1]]-t[r[1]];return Math.sqrt(i*i+n*n)}function g_(t,e,r){r||(r=Gj);var i=e[r[0]]-t[r[0]],n=e[r[1]]-t[r[1]];return Math.atan2(n,i)*180/Math.PI}function Hj(t,e){return t===e?bo:Ni(t)>=Ni(e)?t<0?Aa:Ma:e<0?Na:In}function l7(t,e){var r=e.center,i=t.offsetDelta||{},n=t.prevDelta||{},s=t.prevInput||{};(e.eventType===gt||s.eventType===He)&&(n=t.prevDelta={x:s.deltaX||0,y:s.deltaY||0},i=t.offsetDelta={x:r.x,y:r.y}),e.deltaX=n.x+(r.x-i.x),e.deltaY=n.y+(r.y-i.y)}function Yj(t,e,r){return{x:e/t||0,y:r/t||0}}function u7(t,e){return wo(e[0],e[1],_o)/wo(t[0],t[1],_o)}function c7(t,e){return g_(e[1],e[0],_o)+g_(t[1],t[0],_o)}function h7(t,e){var r=t.lastInterval||e,i=e.timeStamp-r.timeStamp,n,s,a,o;if(e.eventType!==$t&&(i>a7||r.velocity===void 0)){var l=e.deltaX-r.deltaX,u=e.deltaY-r.deltaY,c=Yj(i,l,u);s=c.x,a=c.y,n=Ni(c.x)>Ni(c.y)?c.x:c.y,o=Hj(l,u),t.lastInterval=e}else n=r.velocity,s=r.velocityX,a=r.velocityY,o=r.direction;e.velocity=n,e.velocityX=s,e.velocityY=a,e.direction=o}function d7(t,e){var r=t.session,i=e.pointers,n=i.length;r.firstInput||(r.firstInput=pM(e)),n>1&&!r.firstMultiple?r.firstMultiple=pM(e):n===1&&(r.firstMultiple=!1);var s=r.firstInput,a=r.firstMultiple,o=a?a.center:s.center,l=e.center=Wj(i);e.timeStamp=B1(),e.deltaTime=e.timeStamp-s.timeStamp,e.angle=g_(o,l),e.distance=wo(o,l),l7(r,e),e.offsetDirection=Hj(e.deltaX,e.deltaY);var u=Yj(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=u.x,e.overallVelocityY=u.y,e.overallVelocity=Ni(u.x)>Ni(u.y)?u.x:u.y,e.scale=a?u7(a.pointers,i):1,e.rotation=a?c7(a.pointers,i):0,e.maxPointers=r.prevInput?e.pointers.length>r.prevInput.maxPointers?e.pointers.length:r.prevInput.maxPointers:e.pointers.length,h7(r,e);var c=t.element,h=e.srcEvent,d;h.composedPath?d=h.composedPath()[0]:h.path?d=h.path[0]:d=h.target,H1(d,c)&&(c=d),e.target=c}function f7(t,e,r){var i=r.pointers.length,n=r.changedPointers.length,s=e>&&i-n===0,a=e&(He|$t)&&i-n===0;r.isFirst=!!s,r.isFinal=!!a,s&&(t.session={}),r.eventType=e,d7(t,r),t.emit("hammer.input",r),t.recognize(r),t.session.prevInput=r}function zs(t){return t.trim().split(/\s+/g)}function Is(t,e,r){Mr(zs(e),function(i){t.addEventListener(i,r,!1)})}function Cs(t,e,r){Mr(zs(e),function(i){t.removeEventListener(i,r,!1)})}function vM(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var ls=(function(){function t(r,i){var n=this;this.manager=r,this.callback=i,this.element=r.element,this.target=r.options.inputTarget,this.domHandler=function(s){yl(r.options.enable,[r])&&n.handler(s)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&Is(this.element,this.evEl,this.domHandler),this.evTarget&&Is(this.target,this.evTarget,this.domHandler),this.evWin&&Is(vM(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&Cs(this.element,this.evEl,this.domHandler),this.evTarget&&Cs(this.target,this.evTarget,this.domHandler),this.evWin&&Cs(vM(this.element),this.evWin,this.domHandler)},t})();function Fi(t,e,r){if(t.indexOf&&!r)return t.indexOf(e);for(var i=0;i<t.length;){if(r&&t[i][r]==e||!r&&t[i]===e)return i;i++}return-1}var p7={pointerdown:gt,pointermove:en,pointerup:He,pointercancel:$t,pointerout:$t},v7={2:ka,3:n7,4:W1,5:s7},Uj="pointerdown",Vj="pointermove pointerup pointercancel";Ar.MSPointerEvent&&!Ar.PointerEvent&&(Uj="MSPointerDown",Vj="MSPointerMove MSPointerUp MSPointerCancel");var zj=(function(t){ir(e,t);function e(){var i,n=e.prototype;return n.evEl=Uj,n.evWin=Vj,i=t.apply(this,arguments)||this,i.store=i.manager.session.pointerEvents=[],i}var r=e.prototype;return r.handler=function(n){var s=this.store,a=!1,o=n.type.toLowerCase().replace("ms",""),l=p7[o],u=v7[n.pointerType]||n.pointerType,c=u===ka,h=Fi(s,n.pointerId,"pointerId");l>&&(n.button===0||c)?h<0&&(s.push(n),h=s.length-1):l&(He|$t)&&(a=!0),!(h<0)&&(s[h]=n,this.callback(this.manager,l,{pointers:s,changedPointers:[n],pointerType:u,srcEvent:n}),a&&s.splice(h,1))},e})(ls);function Ks(t){return Array.prototype.slice.call(t,0)}function Y1(t,e,r){for(var i=[],n=[],s=0;s<t.length;){var a=e?t[s][e]:t[s];Fi(n,a)<0&&i.push(t[s]),n[s]=a,s++}return r&&(e?i=i.sort(function(o,l){return o[e]>l[e]}):i=i.sort()),i}var m7={touchstart:gt,touchmove:en,touchend:He,touchcancel:$t},g7="touchstart touchmove touchend touchcancel",U1=(function(t){ir(e,t);function e(){var i;return e.prototype.evTarget=g7,i=t.apply(this,arguments)||this,i.targetIds={},i}var r=e.prototype;return r.handler=function(n){var s=m7[n.type],a=y7.call(this,n,s);a&&this.callback(this.manager,s,{pointers:a[0],changedPointers:a[1],pointerType:ka,srcEvent:n})},e})(ls);function y7(t,e){var r=Ks(t.touches),i=this.targetIds;if(e&(gt|en)&&r.length===1)return i[r[0].identifier]=!0,[r,r];var n,s,a=Ks(t.changedTouches),o=[],l=this.target;if(s=r.filter(function(u){return H1(u.target,l)}),e===gt)for(n=0;n<s.length;)i[s[n].identifier]=!0,n++;for(n=0;n<a.length;)i[a[n].identifier]&&o.push(a[n]),e&(He|$t)&&delete i[a[n].identifier],n++;if(o.length)return[Y1(s.concat(o),"identifier",!0),o]}var b7={mousedown:gt,mousemove:en,mouseup:He},_7="mousedown",w7="mousemove mouseup",V1=(function(t){ir(e,t);function e(){var i,n=e.prototype;return n.evEl=_7,n.evWin=w7,i=t.apply(this,arguments)||this,i.pressed=!1,i}var r=e.prototype;return r.handler=function(n){var s=b7[n.type];s>&&n.button===0&&(this.pressed=!0),s&en&&n.which!==1&&(s=He),this.pressed&&(s&He&&(this.pressed=!1),this.callback(this.manager,s,{pointers:[n],changedPointers:[n],pointerType:W1,srcEvent:n}))},e})(ls),S7=2500,mM=25;function gM(t){var e=t.changedPointers,r=e[0];if(r.identifier===this.primaryTouch){var i={x:r.clientX,y:r.clientY},n=this.lastTouches;this.lastTouches.push(i);var s=function(){var o=n.indexOf(i);o>-1&&n.splice(o,1)};setTimeout(s,S7)}}function O7(t,e){t>?(this.primaryTouch=e.changedPointers[0].identifier,gM.call(this,e)):t&(He|$t)&&gM.call(this,e)}function E7(t){for(var e=t.srcEvent.clientX,r=t.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var n=this.lastTouches[i],s=Math.abs(e-n.x),a=Math.abs(r-n.y);if(s<=mM&&a<=mM)return!0}return!1}var Kj=(function(){var t=(function(e){ir(r,e);function r(n,s){var a;return a=e.call(this,n,s)||this,a.handler=function(o,l,u){var c=u.pointerType===ka,h=u.pointerType===W1;if(!(h&&u.sourceCapabilities&&u.sourceCapabilities.firesTouchEvents)){if(c)O7.call(Xa(Xa(a)),l,u);else if(h&&E7.call(Xa(Xa(a)),u))return;a.callback(o,l,u)}},a.touch=new U1(a.manager,a.handler),a.mouse=new V1(a.manager,a.handler),a.primaryTouch=null,a.lastTouches=[],a}var i=r.prototype;return i.destroy=function(){this.touch.destroy(),this.mouse.destroy()},r})(ls);return t})();function T7(t){var e,r=t.options.inputClass;return r?e=r:r7?e=zj:i7?e=U1:Lj?e=Kj:e=V1,new e(t,f7)}function bn(t,e,r){return Array.isArray(t)?(Mr(t,r[e],r),!0):!1}var lo=1,Vt=2,Cn=4,Qr=8,Nr=Qr,Xs=16,vr=32,$7=1;function R7(){return $7++}function Qa(t,e){var r=e.manager;return r?r.get(t):t}function yM(t){return t&Xs?"cancel":t&Qr?"end":t&Cn?"move":t&Vt?"start":""}var Fa=(function(){function t(r){r===void 0&&(r={}),this.options=cr({enable:!0},r),this.id=R7(),this.manager=null,this.state=lo,this.simultaneous={},this.requireFail=[]}var e=t.prototype;return e.set=function(i){return Mi(this.options,i),this.manager&&this.manager.touchAction.update(),this},e.recognizeWith=function(i){if(bn(i,"recognizeWith",this))return this;var n=this.simultaneous;return i=Qa(i,this),n[i.id]||(n[i.id]=i,i.recognizeWith(this)),this},e.dropRecognizeWith=function(i){return bn(i,"dropRecognizeWith",this)?this:(i=Qa(i,this),delete this.simultaneous[i.id],this)},e.requireFailure=function(i){if(bn(i,"requireFailure",this))return this;var n=this.requireFail;return i=Qa(i,this),Fi(n,i)===-1&&(n.push(i),i.requireFailure(this)),this},e.dropRequireFailure=function(i){if(bn(i,"dropRequireFailure",this))return this;i=Qa(i,this);var n=Fi(this.requireFail,i);return n>-1&&this.requireFail.splice(n,1),this},e.hasRequireFailures=function(){return this.requireFail.length>0},e.canRecognizeWith=function(i){return!!this.simultaneous[i.id]},e.emit=function(i){var n=this,s=this.state;function a(o){n.manager.emit(o,i)}s<Qr&&a(n.options.event+yM(s)),a(n.options.event),i.additionalEvent&&a(i.additionalEvent),s>=Qr&&a(n.options.event+yM(s))},e.tryEmit=function(i){if(this.canEmit())return this.emit(i);this.state=vr},e.canEmit=function(){for(var i=0;i<this.requireFail.length;){if(!(this.requireFail[i].state&(vr|lo)))return!1;i++}return!0},e.recognize=function(i){var n=Mi({},i);if(!yl(this.options.enable,[this,n])){this.reset(),this.state=vr;return}this.state&(Nr|Xs|vr)&&(this.state=lo),this.state=this.process(n),this.state&(Vt|Cn|Qr|Xs)&&this.tryEmit(n)},e.process=function(i){},e.getTouchAction=function(){},e.reset=function(){},t})(),y_=(function(t){ir(e,t);function e(i){var n;return i===void 0&&(i={}),n=t.call(this,cr({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},i))||this,n.pTime=!1,n.pCenter=!1,n._timer=null,n._input=null,n.count=0,n}var r=e.prototype;return r.getTouchAction=function(){return[m_]},r.process=function(n){var s=this,a=this.options,o=n.pointers.length===a.pointers,l=n.distance<a.threshold,u=n.deltaTime<a.time;if(this.reset(),n.eventType>&&this.count===0)return this.failTimeout();if(l&&u&&o){if(n.eventType!==He)return this.failTimeout();var c=this.pTime?n.timeStamp-this.pTime<a.interval:!0,h=!this.pCenter||wo(this.pCenter,n.center)<a.posThreshold;this.pTime=n.timeStamp,this.pCenter=n.center,!h||!c?this.count=1:this.count+=1,this._input=n;var d=this.count%a.taps;if(d===0)return this.hasRequireFailures()?(this._timer=setTimeout(function(){s.state=Nr,s.tryEmit()},a.interval),Vt):Nr}return vr},r.failTimeout=function(){var n=this;return this._timer=setTimeout(function(){n.state=vr},this.options.interval),vr},r.reset=function(){clearTimeout(this._timer)},r.emit=function(){this.state===Nr&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},e})(Fa),qn=(function(t){ir(e,t);function e(i){return i===void 0&&(i={}),t.call(this,cr({pointers:1},i))||this}var r=e.prototype;return r.attrTest=function(n){var s=this.options.pointers;return s===0||n.pointers.length===s},r.process=function(n){var s=this.state,a=n.eventType,o=s&(Vt|Cn),l=this.attrTest(n);return o&&(a&$t||!l)?s|Xs:o||l?a&He?s|Qr:s&Vt?s|Cn:Vt:vr},e})(Fa);function Xj(t){return t===In?"down":t===Na?"up":t===Aa?"left":t===Ma?"right":""}var z1=(function(t){ir(e,t);function e(i){var n;return i===void 0&&(i={}),n=t.call(this,cr({event:"pan",threshold:10,pointers:1,direction:jj},i))||this,n.pX=null,n.pY=null,n}var r=e.prototype;return r.getTouchAction=function(){var n=this.options.direction,s=[];return n&yr&&s.push(Vs),n&Di&&s.push(Us),s},r.directionTest=function(n){var s=this.options,a=!0,o=n.distance,l=n.direction,u=n.deltaX,c=n.deltaY;return l&s.direction||(s.direction&yr?(l=u===0?bo:u<0?Aa:Ma,a=u!==this.pX,o=Math.abs(n.deltaX)):(l=c===0?bo:c<0?Na:In,a=c!==this.pY,o=Math.abs(n.deltaY))),n.direction=l,a&&o>s.threshold&&l&s.direction},r.attrTest=function(n){return qn.prototype.attrTest.call(this,n)&&(this.state&Vt||!(this.state&Vt)&&this.directionTest(n))},r.emit=function(n){this.pX=n.deltaX,this.pY=n.deltaY;var s=Xj(n.direction);s&&(n.additionalEvent=this.options.event+s),t.prototype.emit.call(this,n)},e})(qn),Zj=(function(t){ir(e,t);function e(i){return i===void 0&&(i={}),t.call(this,cr({event:"swipe",threshold:10,velocity:.3,direction:yr|Di,pointers:1},i))||this}var r=e.prototype;return r.getTouchAction=function(){return z1.prototype.getTouchAction.call(this)},r.attrTest=function(n){var s=this.options.direction,a;return s&(yr|Di)?a=n.overallVelocity:s&yr?a=n.overallVelocityX:s&Di&&(a=n.overallVelocityY),t.prototype.attrTest.call(this,n)&&s&n.offsetDirection&&n.distance>this.options.threshold&&n.maxPointers===this.options.pointers&&Ni(a)>this.options.velocity&&n.eventType&He},r.emit=function(n){var s=Xj(n.offsetDirection);s&&this.manager.emit(this.options.event+s,n),this.manager.emit(this.options.event,n)},e})(qn),Qj=(function(t){ir(e,t);function e(i){return i===void 0&&(i={}),t.call(this,cr({event:"pinch",threshold:0,pointers:2},i))||this}var r=e.prototype;return r.getTouchAction=function(){return[Pi]},r.attrTest=function(n){return t.prototype.attrTest.call(this,n)&&(Math.abs(n.scale-1)>this.options.threshold||this.state&Vt)},r.emit=function(n){if(n.scale!==1){var s=n.scale<1?"in":"out";n.additionalEvent=this.options.event+s}t.prototype.emit.call(this,n)},e})(qn),Jj=(function(t){ir(e,t);function e(i){return i===void 0&&(i={}),t.call(this,cr({event:"rotate",threshold:0,pointers:2},i))||this}var r=e.prototype;return r.getTouchAction=function(){return[Pi]},r.attrTest=function(n){return t.prototype.attrTest.call(this,n)&&(Math.abs(n.rotation)>this.options.threshold||this.state&Vt)},e})(qn),eG=(function(t){ir(e,t);function e(i){var n;return i===void 0&&(i={}),n=t.call(this,cr({event:"press",pointers:1,time:251,threshold:9},i))||this,n._timer=null,n._input=null,n}var r=e.prototype;return r.getTouchAction=function(){return[Fj]},r.process=function(n){var s=this,a=this.options,o=n.pointers.length===a.pointers,l=n.distance<a.threshold,u=n.deltaTime>a.time;if(this._input=n,!l||!o||n.eventType&(He|$t)&&!u)this.reset();else if(n.eventType>)this.reset(),this._timer=setTimeout(function(){s.state=Nr,s.tryEmit()},a.time);else if(n.eventType&He)return Nr;return vr},r.reset=function(){clearTimeout(this._timer)},r.emit=function(n){this.state===Nr&&(n&&n.eventType&He?this.manager.emit(this.options.event+"up",n):(this._input.timeStamp=B1(),this.manager.emit(this.options.event,this._input)))},e})(Fa),tG={domEvents:!1,touchAction:Nj,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},bM=[[Jj,{enable:!1}],[Qj,{enable:!1},["rotate"]],[Zj,{direction:yr}],[z1,{direction:yr},["swipe"]],[y_],[y_,{event:"doubletap",taps:2},["tap"]],[eG]],x7=1,_M=2;function wM(t,e){var r=t.element;if(r.style){var i;Mr(t.options.cssProps,function(n,s){i=gl(r.style,s),e?(t.oldCssProps[i]=r.style[i],r.style[i]=n):r.style[i]=t.oldCssProps[i]||""}),e||(t.oldCssProps={})}}function P7(t,e){var r=document.createEvent("Event");r.initEvent(t,!0,!0),r.gesture=e,e.target.dispatchEvent(r)}var SM=(function(){function t(r,i){var n=this;this.options=Mi({},tG,i||{}),this.options.inputTarget=this.options.inputTarget||r,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=r,this.input=T7(this),this.touchAction=new Bj(this,this.options.touchAction),wM(this,!0),Mr(this.options.recognizers,function(s){var a=n.add(new s[0](s[1]));s[2]&&a.recognizeWith(s[2]),s[3]&&a.requireFailure(s[3])},this)}var e=t.prototype;return e.set=function(i){return Mi(this.options,i),i.touchAction&&this.touchAction.update(),i.inputTarget&&(this.input.destroy(),this.input.target=i.inputTarget,this.input.init()),this},e.stop=function(i){this.session.stopped=i?_M:x7},e.recognize=function(i){var n=this.session;if(!n.stopped){this.touchAction.preventDefaults(i);var s,a=this.recognizers,o=n.curRecognizer;(!o||o&&o.state&Nr)&&(n.curRecognizer=null,o=null);for(var l=0;l<a.length;)s=a[l],n.stopped!==_M&&(!o||s===o||s.canRecognizeWith(o))?s.recognize(i):s.reset(),!o&&s.state&(Vt|Cn|Qr)&&(n.curRecognizer=s,o=s),l++}},e.get=function(i){if(i instanceof Fa)return i;for(var n=this.recognizers,s=0;s<n.length;s++)if(n[s].options.event===i)return n[s];return null},e.add=function(i){if(bn(i,"add",this))return this;var n=this.get(i.options.event);return n&&this.remove(n),this.recognizers.push(i),i.manager=this,this.touchAction.update(),i},e.remove=function(i){if(bn(i,"remove",this))return this;var n=this.get(i);if(i){var s=this.recognizers,a=Fi(s,n);a!==-1&&(s.splice(a,1),this.touchAction.update())}return this},e.on=function(i,n){if(i===void 0||n===void 0)return this;var s=this.handlers;return Mr(zs(i),function(a){s[a]=s[a]||[],s[a].push(n)}),this},e.off=function(i,n){if(i===void 0)return this;var s=this.handlers;return Mr(zs(i),function(a){n?s[a]&&s[a].splice(Fi(s[a],n),1):delete s[a]}),this},e.emit=function(i,n){this.options.domEvents&&P7(i,n);var s=this.handlers[i]&&this.handlers[i].slice();if(!(!s||!s.length)){n.type=i,n.preventDefault=function(){n.srcEvent.preventDefault()};for(var a=0;a<s.length;)s[a](n),a++}},e.destroy=function(){this.element&&wM(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},t})(),D7={touchstart:gt,touchmove:en,touchend:He,touchcancel:$t},I7="touchstart",C7="touchstart touchmove touchend touchcancel",q7=(function(t){ir(e,t);function e(){var i,n=e.prototype;return n.evTarget=I7,n.evWin=C7,i=t.apply(this,arguments)||this,i.started=!1,i}var r=e.prototype;return r.handler=function(n){var s=D7[n.type];if(s===gt&&(this.started=!0),!!this.started){var a=k7.call(this,n,s);s&(He|$t)&&a[0].length-a[1].length===0&&(this.started=!1),this.callback(this.manager,s,{pointers:a[0],changedPointers:a[1],pointerType:ka,srcEvent:n})}},e})(ls);function k7(t,e){var r=Ks(t.touches),i=Ks(t.changedTouches);return e&(He|$t)&&(r=Y1(r.concat(i),"identifier",!0)),[r,i]}function rG(t,e,r){var i="DEPRECATED METHOD: "+e+`
|
|
73
|
+
`+r+` AT
|
|
74
|
+
`;return function(){var n=new Error("get-stack-trace"),s=n&&n.stack?n.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",a=window.console&&(window.console.warn||window.console.log);return a&&a.call(window.console,i,s),t.apply(this,arguments)}}var iG=rG(function(t,e,r){for(var i=Object.keys(e),n=0;n<i.length;)(!r||r&&t[i[n]]===void 0)&&(t[i[n]]=e[i[n]]),n++;return t},"extend","Use `assign`."),A7=rG(function(t,e){return iG(t,e,!0)},"merge","Use `assign`.");function M7(t,e,r){var i=e.prototype,n;n=t.prototype=Object.create(i),n.constructor=t,n._super=i,r&&Mi(n,r)}function OM(t,e){return function(){return t.apply(e,arguments)}}var K1=(function(){var t=function(r,i){return i===void 0&&(i={}),new SM(r,cr({recognizers:bM.concat()},i))};return t.VERSION="2.0.17-rc",t.DIRECTION_ALL=jj,t.DIRECTION_DOWN=In,t.DIRECTION_LEFT=Aa,t.DIRECTION_RIGHT=Ma,t.DIRECTION_UP=Na,t.DIRECTION_HORIZONTAL=yr,t.DIRECTION_VERTICAL=Di,t.DIRECTION_NONE=bo,t.DIRECTION_DOWN=In,t.INPUT_START=gt,t.INPUT_MOVE=en,t.INPUT_END=He,t.INPUT_CANCEL=$t,t.STATE_POSSIBLE=lo,t.STATE_BEGAN=Vt,t.STATE_CHANGED=Cn,t.STATE_ENDED=Qr,t.STATE_RECOGNIZED=Nr,t.STATE_CANCELLED=Xs,t.STATE_FAILED=vr,t.Manager=SM,t.Input=ls,t.TouchAction=Bj,t.TouchInput=U1,t.MouseInput=V1,t.PointerEventInput=zj,t.TouchMouseInput=Kj,t.SingleTouchInput=q7,t.Recognizer=Fa,t.AttrRecognizer=qn,t.Tap=y_,t.Pan=z1,t.Swipe=Zj,t.Pinch=Qj,t.Rotate=Jj,t.Press=eG,t.on=Is,t.off=Cs,t.each=Mr,t.merge=A7,t.extend=iG,t.bindFn=OM,t.assign=Mi,t.inherit=M7,t.bindFn=OM,t.prefixed=gl,t.toArray=Ks,t.inArray=Fi,t.uniqueArray=Y1,t.splitStr=zs,t.boolOrFn=yl,t.hasParent=H1,t.addEventListeners=Is,t.removeEventListeners=Cs,t.defaults=Mi({},tG,{preset:bM}),t})();K1.defaults;const X1=iX("DELETE");function N7(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return Z1({},t,...r)}function Z1(){const t=So(...arguments);return sG(t),t}function So(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(e.length<2)return e[0];if(e.length>2)return So(Z1(e[0],e[1]),...os(e).call(e,2));const i=e[0],n=e[1];if(i instanceof Date&&n instanceof Date)return i.setTime(n.getTime()),i;for(const s of vX(n))Object.prototype.propertyIsEnumerable.call(n,s)&&(n[s]===X1?delete i[s]:i[s]!==null&&n[s]!==null&&typeof i[s]=="object"&&typeof n[s]=="object"&&!fe(i[s])&&!fe(n[s])?i[s]=So(i[s],n[s]):i[s]=nG(n[s]));return i}function nG(t){return fe(t)?Qe(t).call(t,e=>nG(e)):typeof t=="object"&&t!==null?t instanceof Date?new Date(t.getTime()):So({},t):t}function sG(t){for(const e of ut(t))t[e]===X1?delete t[e]:typeof t[e]=="object"&&t[e]!==null&&sG(t[e])}function F7(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return L7(e.length?e:[It()])}function L7(t){let[e,r,i]=j7(t),n=1;const s=()=>{const a=2091639*e+n*23283064365386963e-26;return e=r,r=i,i=a-(n=a|0)};return s.uint32=()=>s()*4294967296,s.fract53=()=>s()+(s()*2097152|0)*11102230246251565e-32,s.algorithm="Alea",s.seed=t,s.version="0.9",s}function j7(){const t=G7();let e=t(" "),r=t(" "),i=t(" ");for(let n=0;n<arguments.length;n++)e-=t(n<0||arguments.length<=n?void 0:arguments[n]),e<0&&(e+=1),r-=t(n<0||arguments.length<=n?void 0:arguments[n]),r<0&&(r+=1),i-=t(n<0||arguments.length<=n?void 0:arguments[n]),i<0&&(i+=1);return[e,r,i]}function G7(){let t=4022871197;return function(e){const r=e.toString();for(let i=0;i<r.length;i++){t+=r.charCodeAt(i);let n=.02519603282416938*t;t=n>>>0,n-=t,n*=t,t=n>>>0,n-=t,t+=n*4294967296}return(t>>>0)*23283064365386963e-26}}function B7(){const t=()=>{};return{on:t,off:t,destroy:t,emit:t,get(){return{set:t}}}}const Q1=typeof window<"u"?window.Hammer||K1:function(){return B7()};function mr(t){var e;this._cleanupQueue=[],this.active=!1,this._dom={container:t,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push(()=>{this._dom.overlay.parentNode.removeChild(this._dom.overlay)});const r=Q1(this._dom.overlay);r.on("tap",D(e=this._onTapOverlay).call(e,this)),this._cleanupQueue.push(()=>{r.destroy()});const i=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];M(i).call(i,n=>{r.on(n,s=>{s.srcEvent.stopPropagation()})}),document&&document.body&&(this._onClick=n=>{W7(n.target,t)||this.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push(()=>{document.body.removeEventListener("click",this._onClick)})),this._escListener=n=>{("key"in n?n.key==="Escape":n.keyCode===27)&&this.deactivate()}}G1(mr.prototype);mr.current=null;mr.prototype.destroy=function(){this.deactivate();for(const r of RX(t=Et(e=this._cleanupQueue).call(e,0)).call(t)){var t,e;r()}};mr.prototype.activate=function(){mr.current&&mr.current.deactivate(),mr.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)};mr.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")};mr.prototype._onTapOverlay=function(t){this.activate(),t.srcEvent.stopPropagation()};function W7(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}const H7=/^\/?Date\((-?\d+)/i,Y7=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,U7=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,V7=/^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,z7=/^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 qs(t){return t instanceof Number||typeof t=="number"}function aG(t){if(t)for(;t.hasChildNodes()===!0;){const e=t.firstChild;e&&(aG(e),t.removeChild(e))}}function kt(t){return t instanceof String||typeof t=="string"}function b_(t){return typeof t=="object"&&t!==null}function K7(t){if(t instanceof Date)return!0;if(kt(t)){if(H7.exec(t))return!0;if(!isNaN(Date.parse(t)))return!0}return!1}function Li(t,e,r,i){let n=!1;i===!0&&(n=e[r]===null&&t[r]!==void 0),n?delete t[r]:t[r]=e[r]}function oG(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;for(const i in t)if(e[i]!==void 0)if(e[i]===null||typeof e[i]!="object")Li(t,e,i,r);else{const n=t[i],s=e[i];b_(n)&&b_(s)&&oG(n,s,r)}}const X7=Ai;function Z7(t,e){if(!fe(t))throw new Error("Array with property names expected as first argument");for(var r=arguments.length,i=new Array(r>2?r-2:0),n=2;n<r;n++)i[n-2]=arguments[n];for(const s of i)for(let a=0;a<t.length;a++){const o=t[a];s&&Object.prototype.hasOwnProperty.call(s,o)&&(e[o]=s[o])}return e}function Q7(t,e,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(fe(r))throw new TypeError("Arrays are not supported by deepExtend");for(let n=0;n<t.length;n++){const s=t[n];if(Object.prototype.hasOwnProperty.call(r,s))if(r[s]&&r[s].constructor===Object)e[s]===void 0&&(e[s]={}),e[s].constructor===Object?Zs(e[s],r[s],!1,i):Li(e,r,s,i);else{if(fe(r[s]))throw new TypeError("Arrays are not supported by deepExtend");Li(e,r,s,i)}}return e}function J7(t,e,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(fe(r))throw new TypeError("Arrays are not supported by deepExtend");for(const n in r)if(Object.prototype.hasOwnProperty.call(r,n)&&!Dn(t).call(t,n))if(r[n]&&r[n].constructor===Object)e[n]===void 0&&(e[n]={}),e[n].constructor===Object?Zs(e[n],r[n]):Li(e,r,n,i);else if(fe(r[n])){e[n]=[];for(let s=0;s<r[n].length;s++)e[n].push(r[n][s])}else Li(e,r,n,i);return e}function Zs(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)||r===!0)if(typeof e[s]=="object"&&e[s]!==null&&mA(e[s])===Object.prototype)t[s]===void 0?t[s]=Zs({},e[s],r):typeof t[s]=="object"&&t[s]!==null&&mA(t[s])===Object.prototype?Zs(t[s],e[s],r):Li(t,e,s,i);else if(fe(e[s])){var n;t[s]=os(n=e[s]).call(n)}else Li(t,e,s,i);return t}function eZ(t,e){if(t.length!==e.length)return!1;for(let r=0,i=t.length;r<i;r++)if(t[r]!=e[r])return!1;return!0}function Rs(t){const e=typeof t;return e==="object"?t===null?"null":t instanceof Boolean?"Boolean":t instanceof Number?"Number":t instanceof String?"String":fe(t)?"Array":t instanceof Date?"Date":"Object":e==="number"?"Number":e==="boolean"?"Boolean":e==="string"?"String":e===void 0?"undefined":e}function Qs(t,e){return[...t,e]}function lG(t){return os(t).call(t)}function tZ(t){return t.getBoundingClientRect().left}function rZ(t){return t.getBoundingClientRect().right}function iZ(t){return t.getBoundingClientRect().top}function nZ(t,e){let r=t.className.split(" ");const i=e.split(" ");r=Ge(r).call(r,ue(i).call(i,function(n){return!Dn(r).call(r,n)})),t.className=r.join(" ")}function sZ(t,e){let r=t.className.split(" ");const i=e.split(" ");r=ue(r).call(r,function(n){return!Dn(i).call(i,n)}),t.className=r.join(" ")}function aZ(t,e){if(fe(t)){const r=t.length;for(let i=0;i<r;i++)e(t[i],i,t)}else for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&e(t[r],r,t)}const oZ=L1;function lZ(t,e,r){return t[e]!==r?(t[e]=r,!0):!1}function uZ(t){let e=!1;return()=>{e||(e=!0,requestAnimationFrame(()=>{e=!1,t()}))}}function cZ(t){t||(t=window.event),t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)}function hZ(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event,e=null;return t&&(t.target?e=t.target:t.srcElement&&(e=t.srcElement)),!(e instanceof Element)||e.nodeType!=null&&e.nodeType==3&&(e=e.parentNode,!(e instanceof Element))?null:e}function dZ(t,e){let r=t;for(;r;){if(r===e)return!0;if(r.parentNode)r=r.parentNode;else return!1}return!1}const fZ={asBoolean(t,e){return typeof t=="function"&&(t=t()),t!=null?t!=!1:e||null},asNumber(t,e){return typeof t=="function"&&(t=t()),t!=null?Number(t)||e||null:e||null},asString(t,e){return typeof t=="function"&&(t=t()),t!=null?String(t):e||null},asSize(t,e){return typeof t=="function"&&(t=t()),kt(t)?t:qs(t)?t+"px":e||null},asElement(t,e){return typeof t=="function"&&(t=t()),t||e||null}};function bl(t){let e;switch(t.length){case 3:case 4:return e=U7.exec(t),e?{r:Ct(e[1]+e[1],16),g:Ct(e[2]+e[2],16),b:Ct(e[3]+e[3],16)}:null;case 6:case 7:return e=Y7.exec(t),e?{r:Ct(e[1],16),g:Ct(e[2],16),b:Ct(e[3],16)}:null;default:return null}}function pZ(t,e){if(Dn(t).call(t,"rgba"))return t;if(Dn(t).call(t,"rgb")){const r=t.substr(be(t).call(t,"(")+1).replace(")","").split(",");return"rgba("+r[0]+","+r[1]+","+r[2]+","+e+")"}else{const r=bl(t);return r==null?t:"rgba("+r.r+","+r.g+","+r.b+","+e+")"}}function J1(t,e,r){var i;return"#"+os(i=((1<<24)+(t<<16)+(e<<8)+r).toString(16)).call(i,1)}function vZ(t,e){if(kt(t)){let i=t;if(tw(i)){var r;const n=Qe(r=i.substr(4).substr(0,i.length-5).split(",")).call(r,function(s){return Ct(s)});i=J1(n[0],n[1],n[2])}if(ew(i)===!0){const n=cG(i),s={h:n.h,s:n.s*.8,v:Math.min(1,n.v*1.02)},a={h:n.h,s:Math.min(1,n.s*1.25),v:n.v*.8},o=__(a.h,a.s,a.v),l=__(s.h,s.s,s.v);return{background:i,border:o,highlight:{background:l,border:o},hover:{background:l,border:o}}}else return{background:i,border:i,highlight:{background:i,border:i},hover:{background:i,border:i}}}else return e?{background:t.background||e.background,border:t.border||e.border,highlight:kt(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:kt(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:kt(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:kt(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 _n(t,e,r){t=t/255,e=e/255,r=r/255;const i=Math.min(t,Math.min(e,r)),n=Math.max(t,Math.max(e,r));if(i===n)return{h:0,s:0,v:i};const s=t===i?e-r:r===i?t-e:r-t,o=60*((t===i?3:r===i?1:5)-s/(n-i))/360,l=(n-i)/n;return{h:o,s:l,v:n}}function uG(t){const e=document.createElement("div"),r={};e.style.cssText=t;for(let i=0;i<e.style.length;++i)r[e.style[i]]=e.style.getPropertyValue(e.style[i]);return r}function mZ(t,e){const r=uG(e);for(const[i,n]of D9(r))t.style.setProperty(i,n)}function gZ(t,e){const r=uG(e);for(const i of ut(r))t.style.removeProperty(i)}function ks(t,e,r){let i,n,s;const a=Math.floor(t*6),o=t*6-a,l=r*(1-e),u=r*(1-o*e),c=r*(1-(1-o)*e);switch(a%6){case 0:i=r,n=c,s=l;break;case 1:i=u,n=r,s=l;break;case 2:i=l,n=r,s=c;break;case 3:i=l,n=u,s=r;break;case 4:i=c,n=l,s=r;break;case 5:i=r,n=l,s=u;break}return{r:Math.floor(i*255),g:Math.floor(n*255),b:Math.floor(s*255)}}function __(t,e,r){const i=ks(t,e,r);return J1(i.r,i.g,i.b)}function cG(t){const e=bl(t);if(!e)throw new TypeError("'".concat(t,"' is not a valid color."));return _n(e.r,e.g,e.b)}function ew(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)}function tw(t){return V7.test(t)}function hG(t){return z7.test(t)}function yZ(t,e){if(e!==null&&typeof e=="object"){const r=ml(e);for(let i=0;i<t.length;i++)Object.prototype.hasOwnProperty.call(e,t[i])&&typeof e[t[i]]=="object"&&(r[t[i]]=rw(e[t[i]]));return r}else return null}function rw(t){if(t===null||typeof t!="object")return null;if(t instanceof Element)return t;const e=ml(t);for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&typeof t[r]=="object"&&(e[r]=rw(t[r]));return e}function bZ(t,e){for(let r=0;r<t.length;r++){const i=t[r];let n;for(n=r;n>0&&e(i,t[n-1])<0;n--)t[n]=t[n-1];t[n]=i}return t}function _Z(t,e,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const n=function(f){return f!=null},s=function(f){return f!==null&&typeof f=="object"},a=function(f){for(const p in f)if(Object.prototype.hasOwnProperty.call(f,p))return!1;return!0};if(!s(t))throw new Error("Parameter mergeTarget must be an object");if(!s(e))throw new Error("Parameter options must be an object");if(!n(r))throw new Error("Parameter option must have a value");if(!s(i))throw new Error("Parameter globalOptions must be an object");const o=function(f,p,v){s(f[v])||(f[v]={});const m=p[v],y=f[v];for(const g in m)Object.prototype.hasOwnProperty.call(m,g)&&(y[g]=m[g])},l=e[r],c=s(i)&&!a(i)?i[r]:void 0,h=c?c.enabled:void 0;if(l===void 0)return;if(typeof l=="boolean"){s(t[r])||(t[r]={}),t[r].enabled=l;return}if(l===null&&!s(t[r]))if(n(c))t[r]=ml(c);else return;if(!s(l))return;let d=!0;l.enabled!==void 0?d=l.enabled:h!==void 0&&(d=c.enabled),o(t,e,r),t[r].enabled=d}function wZ(t,e,r,i){let s=0,a=0,o=t.length-1;for(;a<=o&&s<1e4;){const l=Math.floor((a+o)/2),u=t[l],c=i===void 0?u[r]:u[r][i],h=e(c);if(h==0)return l;h==-1?a=l+1:o=l-1,s++}return-1}function SZ(t,e,r,i,n){let a=0,o=0,l=t.length-1,u,c,h,d;for(n=n??function(f,p){return f==p?0:f<p?-1:1};o<=l&&a<1e4;){if(d=Math.floor(.5*(l+o)),u=t[Math.max(0,d-1)][r],c=t[d][r],h=t[Math.min(t.length-1,d+1)][r],n(c,e)==0)return d;if(n(u,e)<0&&n(c,e)>0)return i=="before"?Math.max(0,d-1):d;if(n(c,e)<0&&n(h,e)>0)return i=="before"?d:Math.min(t.length-1,d+1);n(c,e)<0?o=d+1:l=d-1,a++}return-1}const OZ={linear(t){return t},easeInQuad(t){return t*t},easeOutQuad(t){return t*(2-t)},easeInOutQuad(t){return t<.5?2*t*t:-1+(4-2*t)*t},easeInCubic(t){return t*t*t},easeOutCubic(t){return--t*t*t+1},easeInOutCubic(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart(t){return t*t*t*t},easeOutQuart(t){return 1- --t*t*t*t},easeInOutQuart(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint(t){return t*t*t*t*t},easeOutQuint(t){return 1+--t*t*t*t*t},easeInOutQuint(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}};function EZ(){const t=document.createElement("p");t.style.width="100%",t.style.height="200px";const e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.style.visibility="hidden",e.style.width="200px",e.style.height="150px",e.style.overflow="hidden",e.appendChild(t),document.body.appendChild(e);const r=t.offsetWidth;e.style.overflow="scroll";let i=t.offsetWidth;return r==i&&(i=e.clientWidth),document.body.removeChild(e),r-i}function TZ(t,e){let r;fe(e)||(e=[e]);for(const i of t)if(i){r=i[e[0]];for(let n=1;n<e.length;n++)r&&(r=r[e[n]]);if(typeof r<"u")break}return r}const $Z={black:"#000000",navy:"#000080",darkblue:"#00008B",mediumblue:"#0000CD",blue:"#0000FF",darkgreen:"#006400",green:"#008000",teal:"#008080",darkcyan:"#008B8B",deepskyblue:"#00BFFF",darkturquoise:"#00CED1",mediumspringgreen:"#00FA9A",lime:"#00FF00",springgreen:"#00FF7F",aqua:"#00FFFF",cyan:"#00FFFF",midnightblue:"#191970",dodgerblue:"#1E90FF",lightseagreen:"#20B2AA",forestgreen:"#228B22",seagreen:"#2E8B57",darkslategray:"#2F4F4F",limegreen:"#32CD32",mediumseagreen:"#3CB371",turquoise:"#40E0D0",royalblue:"#4169E1",steelblue:"#4682B4",darkslateblue:"#483D8B",mediumturquoise:"#48D1CC",indigo:"#4B0082",darkolivegreen:"#556B2F",cadetblue:"#5F9EA0",cornflowerblue:"#6495ED",mediumaquamarine:"#66CDAA",dimgray:"#696969",slateblue:"#6A5ACD",olivedrab:"#6B8E23",slategray:"#708090",lightslategray:"#778899",mediumslateblue:"#7B68EE",lawngreen:"#7CFC00",chartreuse:"#7FFF00",aquamarine:"#7FFFD4",maroon:"#800000",purple:"#800080",olive:"#808000",gray:"#808080",skyblue:"#87CEEB",lightskyblue:"#87CEFA",blueviolet:"#8A2BE2",darkred:"#8B0000",darkmagenta:"#8B008B",saddlebrown:"#8B4513",darkseagreen:"#8FBC8F",lightgreen:"#90EE90",mediumpurple:"#9370D8",darkviolet:"#9400D3",palegreen:"#98FB98",darkorchid:"#9932CC",yellowgreen:"#9ACD32",sienna:"#A0522D",brown:"#A52A2A",darkgray:"#A9A9A9",lightblue:"#ADD8E6",greenyellow:"#ADFF2F",paleturquoise:"#AFEEEE",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",firebrick:"#B22222",darkgoldenrod:"#B8860B",mediumorchid:"#BA55D3",rosybrown:"#BC8F8F",darkkhaki:"#BDB76B",silver:"#C0C0C0",mediumvioletred:"#C71585",indianred:"#CD5C5C",peru:"#CD853F",chocolate:"#D2691E",tan:"#D2B48C",lightgrey:"#D3D3D3",palevioletred:"#D87093",thistle:"#D8BFD8",orchid:"#DA70D6",goldenrod:"#DAA520",crimson:"#DC143C",gainsboro:"#DCDCDC",plum:"#DDA0DD",burlywood:"#DEB887",lightcyan:"#E0FFFF",lavender:"#E6E6FA",darksalmon:"#E9967A",violet:"#EE82EE",palegoldenrod:"#EEE8AA",lightcoral:"#F08080",khaki:"#F0E68C",aliceblue:"#F0F8FF",honeydew:"#F0FFF0",azure:"#F0FFFF",sandybrown:"#F4A460",wheat:"#F5DEB3",beige:"#F5F5DC",whitesmoke:"#F5F5F5",mintcream:"#F5FFFA",ghostwhite:"#F8F8FF",salmon:"#FA8072",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lightgoldenrodyellow:"#FAFAD2",oldlace:"#FDF5E6",red:"#FF0000",fuchsia:"#FF00FF",magenta:"#FF00FF",deeppink:"#FF1493",orangered:"#FF4500",tomato:"#FF6347",hotpink:"#FF69B4",coral:"#FF7F50",darkorange:"#FF8C00",lightsalmon:"#FFA07A",orange:"#FFA500",lightpink:"#FFB6C1",pink:"#FFC0CB",gold:"#FFD700",peachpuff:"#FFDAB9",navajowhite:"#FFDEAD",moccasin:"#FFE4B5",bisque:"#FFE4C4",mistyrose:"#FFE4E1",blanchedalmond:"#FFEBCD",papayawhip:"#FFEFD5",lavenderblush:"#FFF0F5",seashell:"#FFF5EE",cornsilk:"#FFF8DC",lemonchiffon:"#FFFACD",floralwhite:"#FFFAF0",snow:"#FFFAFA",yellow:"#FFFF00",lightyellow:"#FFFFE0",ivory:"#FFFFF0",white:"#FFFFFF"};let dG=class{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;this.pixelRatio=e,this.generated=!1,this.centerCoordinates={x:289/2,y:289/2},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=()=>{},this.closeCallback=()=>{},this._create()}insertTo(e){this.hammer!==void 0&&(this.hammer.destroy(),this.hammer=void 0),this.container=e,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}setUpdateCallback(e){if(typeof e=="function")this.updateCallback=e;else throw new Error("Function attempted to set as colorPicker update callback is not a function.")}setCloseCallback(e){if(typeof e=="function")this.closeCallback=e;else throw new Error("Function attempted to set as colorPicker closing callback is not a function.")}_isColorString(e){if(typeof e=="string")return $Z[e]}setColor(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(e==="none")return;let i;const n=this._isColorString(e);if(n!==void 0&&(e=n),kt(e)===!0){if(tw(e)===!0){const s=e.substr(4).substr(0,e.length-5).split(",");i={r:s[0],g:s[1],b:s[2],a:1}}else if(hG(e)===!0){const s=e.substr(5).substr(0,e.length-6).split(",");i={r:s[0],g:s[1],b:s[2],a:s[3]}}else if(ew(e)===!0){const s=bl(e);i={r:s.r,g:s.g,b:s.b,a:1}}}else if(e instanceof Object&&e.r!==void 0&&e.g!==void 0&&e.b!==void 0){const s=e.a!==void 0?e.a:"1.0";i={r:e.r,g:e.g,b:e.b,a:s}}if(i===void 0)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: "+qt(e));this._setColor(i,r)}show(){this.closeCallback!==void 0&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}_hide(){(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0)===!0&&(this.previousColor=Ai({},this.color)),this.applied===!0&&this.updateCallback(this.initialColor),this.frame.style.display="none",vt(()=>{this.closeCallback!==void 0&&(this.closeCallback(),this.closeCallback=void 0)},0)}_save(){this.updateCallback(this.color),this.applied=!1,this._hide()}_apply(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}_loadLast(){this.previousColor!==void 0?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}_setColor(e){(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)===!0&&(this.initialColor=Ai({},e)),this.color=e;const i=_n(e.r,e.g,e.b),n=2*Math.PI,s=this.r*i.s,a=this.centerCoordinates.x+s*Math.sin(n*i.h),o=this.centerCoordinates.y+s*Math.cos(n*i.h);this.colorPickerSelector.style.left=a-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=o-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(e)}_setOpacity(e){this.color.a=e/100,this._updatePicker(this.color)}_setBrightness(e){const r=_n(this.color.r,this.color.g,this.color.b);r.v=e/100;const i=ks(r.h,r.s,r.v);i.a=this.color.a,this.color=i,this._updatePicker()}_updatePicker(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.color;const r=_n(e.r,e.g,e.b),i=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(i.webkitBackingStorePixelRatio||i.mozBackingStorePixelRatio||i.msBackingStorePixelRatio||i.oBackingStorePixelRatio||i.backingStorePixelRatio||1)),i.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);const n=this.colorPickerCanvas.clientWidth,s=this.colorPickerCanvas.clientHeight;i.clearRect(0,0,n,s),i.putImageData(this.hueCircle,0,0),i.fillStyle="rgba(0,0,0,"+(1-r.v)+")",i.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),kj(i).call(i),this.brightnessRange.value=100*r.v,this.opacityRange.value=100*e.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}_setSize(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}_create(){var e,r,i,n;if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){const a=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(a.webkitBackingStorePixelRatio||a.mozBackingStorePixelRatio||a.msBackingStorePixelRatio||a.oBackingStorePixelRatio||a.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{const a=document.createElement("DIV");a.style.color="red",a.style.fontWeight="bold",a.style.padding="10px",a.innerText="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(a)}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{}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{}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);const s=this;this.opacityRange.onchange=function(){s._setOpacity(this.value)},this.opacityRange.oninput=function(){s._setOpacity(this.value)},this.brightnessRange.onchange=function(){s._setBrightness(this.value)},this.brightnessRange.oninput=function(){s._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=D(e=this._hide).call(e,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerText="apply",this.applyButton.onclick=D(r=this._apply).call(r,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerText="save",this.saveButton.onclick=D(i=this._save).call(i,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerText="load last",this.loadButton.onclick=D(n=this._loadLast).call(n,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}_bindHammer(){this.drag={},this.pinch={},this.hammer=new Q1(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("hammer.input",e=>{e.isFirst&&this._moveSelector(e)}),this.hammer.on("tap",e=>{this._moveSelector(e)}),this.hammer.on("panstart",e=>{this._moveSelector(e)}),this.hammer.on("panmove",e=>{this._moveSelector(e)}),this.hammer.on("panend",e=>{this._moveSelector(e)})}_generateHueCircle(){if(this.generated===!1){const e=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)),e.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);const r=this.colorPickerCanvas.clientWidth,i=this.colorPickerCanvas.clientHeight;e.clearRect(0,0,r,i);let n,s,a,o;this.centerCoordinates={x:r*.5,y:i*.5},this.r=.49*r;const l=2*Math.PI/360,u=1/360,c=1/this.r;let h;for(a=0;a<360;a++)for(o=0;o<this.r;o++)n=this.centerCoordinates.x+o*Math.sin(l*a),s=this.centerCoordinates.y+o*Math.cos(l*a),h=ks(a*u,o*c,1),e.fillStyle="rgb("+h.r+","+h.g+","+h.b+")",e.fillRect(n-.5,s-.5,2,2);e.strokeStyle="rgba(0,0,0,1)",e.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),e.stroke(),this.hueCircle=e.getImageData(0,0,r,i)}this.generated=!0}_moveSelector(e){const r=this.colorPickerDiv.getBoundingClientRect(),i=e.center.x-r.left,n=e.center.y-r.top,s=.5*this.colorPickerDiv.clientHeight,a=.5*this.colorPickerDiv.clientWidth,o=i-a,l=n-s,u=Math.atan2(o,l),c=.98*Math.min(Math.sqrt(o*o+l*l),a),h=Math.cos(u)*c+s,d=Math.sin(u)*c+a;this.colorPickerSelector.style.top=h-.5*this.colorPickerSelector.clientHeight+"px",this.colorPickerSelector.style.left=d-.5*this.colorPickerSelector.clientWidth+"px";let f=u/(2*Math.PI);f=f<0?f+1:f;const p=c/this.r,v=_n(this.color.r,this.color.g,this.color.b);v.h=f,v.s=p;const m=ks(v.h,v.s,v.v);m.a=this.color.a,this.color=m,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}};function w_(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(e.length<1)throw new TypeError("Invalid arguments.");if(e.length===1)return document.createTextNode(e[0]);{const i=document.createElement(e[0]);return i.appendChild(w_(...os(e).call(e,1))),i}}let RZ=class{constructor(e,r,i){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:()=>!1;this.parent=e,this.changedOptions=[],this.container=r,this.allowCreation=!1,this.hideOption=s,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},Ai(this.options,this.defaultOptions),this.configureOptions=i,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new dG(n),this.wrapper=void 0}setOptions(e){if(e!==void 0){this.popupHistory={},this._removePopup();let r=!0;if(typeof e=="string")this.options.filter=e;else if(fe(e))this.options.filter=e.join();else if(typeof e=="object"){if(e==null)throw new TypeError("options cannot be null");e.container!==void 0&&(this.options.container=e.container),ue(e)!==void 0&&(this.options.filter=ue(e)),e.showButton!==void 0&&(this.options.showButton=e.showButton),e.enabled!==void 0&&(r=e.enabled)}else typeof e=="boolean"?(this.options.filter=!0,r=e):typeof e=="function"&&(this.options.filter=e,r=!0);ue(this.options)===!1&&(r=!1),this.options.enabled=r}this._clean()}setModuleOptions(e){this.moduleOptions=e,this.options.enabled===!0&&(this._clean(),this.options.container!==void 0&&(this.container=this.options.container),this._create())}_create(){this._clean(),this.changedOptions=[];const e=ue(this.options);let r=0,i=!1;for(const n in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,n)&&(this.allowCreation=!1,i=!1,typeof e=="function"?(i=e(n,[]),i=i||this._handleObject(this.configureOptions[n],[n],!0)):(e===!0||be(e).call(e,n)!==-1)&&(i=!0),i!==!1&&(this.allowCreation=!0,r>0&&this._makeItem([]),this._makeHeader(n),this._handleObject(this.configureOptions[n],[n])),r++);this._makeButton(),this._push()}_push(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(let e=0;e<this.domElements.length;e++)this.wrapper.appendChild(this.domElements[e]);this._showPopupIfNeeded()}_clean(){for(let e=0;e<this.domElements.length;e++)this.wrapper.removeChild(this.domElements[e]);this.wrapper!==void 0&&(this.container.removeChild(this.wrapper),this.wrapper=void 0),this.domElements=[],this._removePopup()}_getValue(e){let r=this.moduleOptions;for(let i=0;i<e.length;i++)if(r[e[i]]!==void 0)r=r[e[i]];else{r=void 0;break}return r}_makeItem(e){if(this.allowCreation===!0){const s=document.createElement("div");s.className="vis-configuration vis-config-item vis-config-s"+e.length;for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return M(i).call(i,a=>{s.appendChild(a)}),this.domElements.push(s),this.domElements.length}return 0}_makeHeader(e){const r=document.createElement("div");r.className="vis-configuration vis-config-header",r.innerText=e,this._makeItem([],r)}_makeLabel(e,r){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const n=document.createElement("div");if(n.className="vis-configuration vis-config-label vis-config-s"+r.length,i===!0){for(;n.firstChild;)n.removeChild(n.firstChild);n.appendChild(w_("i","b",e))}else n.innerText=e+":";return n}_makeDropdown(e,r,i){const n=document.createElement("select");n.className="vis-configuration vis-config-select";let s=0;r!==void 0&&be(e).call(e,r)!==-1&&(s=be(e).call(e,r));for(let l=0;l<e.length;l++){const u=document.createElement("option");u.value=e[l],l===s&&(u.selected="selected"),u.innerText=e[l],n.appendChild(u)}const a=this;n.onchange=function(){a._update(this.value,i)};const o=this._makeLabel(i[i.length-1],i);this._makeItem(i,o,n)}_makeRange(e,r,i){const n=e[0],s=e[1],a=e[2],o=e[3],l=document.createElement("input");l.className="vis-configuration vis-config-range";try{l.type="range",l.min=s,l.max=a}catch{}l.step=o;let u="",c=0;r!==void 0?(r<0&&r*1.2<s?(l.min=Math.ceil(r*1.2),c=l.min,u="range increased"):r/1.2<s&&(l.min=Math.ceil(r/1.2),c=l.min,u="range increased"),r*1.2>a&&a!==1&&(l.max=Math.ceil(r*1.2),c=l.max,u="range increased"),l.value=r):l.value=n;const h=document.createElement("input");h.className="vis-configuration vis-config-rangeinput",h.value=l.value;const d=this;l.onchange=function(){h.value=this.value,d._update(Number(this.value),i)},l.oninput=function(){h.value=this.value};const f=this._makeLabel(i[i.length-1],i),p=this._makeItem(i,f,l,h);u!==""&&this.popupHistory[p]!==c&&(this.popupHistory[p]=c,this._setupPopup(u,p))}_makeButton(){if(this.options.showButton===!0){const e=document.createElement("div");e.className="vis-configuration vis-config-button",e.innerText="generate options",e.onclick=()=>{this._printOptions()},e.onmouseover=()=>{e.className="vis-configuration vis-config-button hover"},e.onmouseout=()=>{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)}}_setupPopup(e,r){if(this.initialized===!0&&this.allowCreation===!0&&this.popupCounter<this.popupLimit){const i=document.createElement("div");i.id="vis-configuration-popup",i.className="vis-configuration-popup",i.innerText=e,i.onclick=()=>{this._removePopup()},this.popupCounter+=1,this.popupDiv={html:i,index:r}}}_removePopup(){this.popupDiv.html!==void 0&&(this.popupDiv.html.parentNode.removeChild(this.popupDiv.html),clearTimeout(this.popupDiv.hideTimeout),clearTimeout(this.popupDiv.deleteTimeout),this.popupDiv={})}_showPopupIfNeeded(){if(this.popupDiv.html!==void 0){const r=this.domElements[this.popupDiv.index].getBoundingClientRect();this.popupDiv.html.style.left=r.left+"px",this.popupDiv.html.style.top=r.top-30+"px",document.body.appendChild(this.popupDiv.html),this.popupDiv.hideTimeout=vt(()=>{this.popupDiv.html.style.opacity=0},1500),this.popupDiv.deleteTimeout=vt(()=>{this._removePopup()},1800)}}_makeCheckbox(e,r,i){const n=document.createElement("input");n.type="checkbox",n.className="vis-configuration vis-config-checkbox",n.checked=e,r!==void 0&&(n.checked=r,r!==e&&(typeof e=="object"?r!==e.enabled&&this.changedOptions.push({path:i,value:r}):this.changedOptions.push({path:i,value:r})));const s=this;n.onchange=function(){s._update(this.checked,i)};const a=this._makeLabel(i[i.length-1],i);this._makeItem(i,a,n)}_makeTextInput(e,r,i){const n=document.createElement("input");n.type="text",n.className="vis-configuration vis-config-text",n.value=r,r!==e&&this.changedOptions.push({path:i,value:r});const s=this;n.onchange=function(){s._update(this.value,i)};const a=this._makeLabel(i[i.length-1],i);this._makeItem(i,a,n)}_makeColorField(e,r,i){const n=e[1],s=document.createElement("div");r=r===void 0?n:r,r!=="none"?(s.className="vis-configuration vis-config-colorBlock",s.style.backgroundColor=r):s.className="vis-configuration vis-config-colorBlock none",r=r===void 0?n:r,s.onclick=()=>{this._showColorPicker(r,s,i)};const a=this._makeLabel(i[i.length-1],i);this._makeItem(i,a,s)}_showColorPicker(e,r,i){r.onclick=function(){},this.colorPicker.insertTo(r),this.colorPicker.show(),this.colorPicker.setColor(e),this.colorPicker.setUpdateCallback(n=>{const s="rgba("+n.r+","+n.g+","+n.b+","+n.a+")";r.style.backgroundColor=s,this._update(s,i)}),this.colorPicker.setCloseCallback(()=>{r.onclick=()=>{this._showColorPicker(e,r,i)}})}_handleObject(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=!1;const s=ue(this.options);let a=!1;for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){n=!0;const l=e[o],u=Qs(r,o);if(typeof s=="function"&&(n=s(o,r),n===!1&&!fe(l)&&typeof l!="string"&&typeof l!="boolean"&&l instanceof Object&&(this.allowCreation=!1,n=this._handleObject(l,u,!0),this.allowCreation=i===!1)),n!==!1){a=!0;const c=this._getValue(u);if(fe(l))this._handleArray(l,c,u);else if(typeof l=="string")this._makeTextInput(l,c,u);else if(typeof l=="boolean")this._makeCheckbox(l,c,u);else if(l instanceof Object){if(!this.hideOption(r,o,this.moduleOptions))if(l.enabled!==void 0){const h=Qs(u,"enabled"),d=this._getValue(h);if(d===!0){const f=this._makeLabel(o,u,!0);this._makeItem(u,f),a=this._handleObject(l,u)||a}else this._makeCheckbox(l,d,u)}else{const h=this._makeLabel(o,u,!0);this._makeItem(u,h),a=this._handleObject(l,u)||a}}else console.error("dont know how to handle",l,o,u)}}return a}_handleArray(e,r,i){typeof e[0]=="string"&&e[0]==="color"?(this._makeColorField(e,r,i),e[1]!==r&&this.changedOptions.push({path:i,value:r})):typeof e[0]=="string"?(this._makeDropdown(e,r,i),e[0]!==r&&this.changedOptions.push({path:i,value:r})):typeof e[0]=="number"&&(this._makeRange(e,r,i),e[0]!==r&&this.changedOptions.push({path:i,value:Number(r)}))}_update(e,r){const i=this._constructOptions(e,r);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",i),this.initialized=!0,this.parent.setOptions(i)}_constructOptions(e,r){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=i;e=e==="true"?!0:e,e=e==="false"?!1:e;for(let s=0;s<r.length;s++)r[s]!=="global"&&(n[r[s]]===void 0&&(n[r[s]]={}),s!==r.length-1?n=n[r[s]]:n[r[s]]=e);return i}_printOptions(){const e=this.getOptions();for(;this.optionsContainer.firstChild;)this.optionsContainer.removeChild(this.optionsContainer.firstChild);this.optionsContainer.appendChild(w_("pre","const options = "+qt(e,null,2)))}getOptions(){const e={};for(let r=0;r<this.changedOptions.length;r++)this._constructOptions(this.changedOptions[r].value,this.changedOptions[r].path,e);return e}},xZ=class{constructor(e,r){this.container=e,this.overflowMethod=r||"cap",this.x=0,this.y=0,this.padding=5,this.hidden=!1,this.frame=document.createElement("div"),this.frame.className="vis-tooltip",this.container.appendChild(this.frame)}setPosition(e,r){this.x=Ct(e),this.y=Ct(r)}setText(e){if(e instanceof Element){for(;this.frame.firstChild;)this.frame.removeChild(this.frame.firstChild);this.frame.appendChild(e)}else this.frame.innerText=e}show(e){if(e===void 0&&(e=!0),e===!0){const r=this.frame.clientHeight,i=this.frame.clientWidth,n=this.frame.parentNode.clientHeight,s=this.frame.parentNode.clientWidth;let a=0,o=0;if(this.overflowMethod=="flip"){let l=!1,u=!0;this.y-r<this.padding&&(u=!1),this.x+i>s-this.padding&&(l=!0),l?a=this.x-i:a=this.x,u?o=this.y-r:o=this.y}else o=this.y-r,o+r+this.padding>n&&(o=n-r-this.padding),o<this.padding&&(o=this.padding),a=this.x,a+i+this.padding>s&&(a=s-i-this.padding),a<this.padding&&(a=this.padding);this.frame.style.left=a+"px",this.frame.style.top=o+"px",this.frame.style.visibility="visible",this.hidden=!1}else this.hide()}hide(){this.hidden=!0,this.frame.style.left="0",this.frame.style.top="0",this.frame.style.visibility="hidden"}destroy(){this.frame.parentNode.removeChild(this.frame)}},Es=!1,EM;const S_="background: #FFeeee; color: #dd0000";let PZ=class ke{static validate(e,r,i){Es=!1,EM=r;let n=r;return i!==void 0&&(n=r[i]),ke.parse(e,n,[]),Es}static parse(e,r,i){for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&ke.check(n,e,r,i)}static check(e,r,i,n){if(i[e]===void 0&&i.__any__===void 0){ke.getSuggestion(e,i,n);return}let s=e,a=!0;i[e]===void 0&&i.__any__!==void 0&&(s="__any__",a=ke.getType(r[e])==="object");let o=i[s];a&&o.__type__!==void 0&&(o=o.__type__),ke.checkFields(e,r,i,s,o,n)}static checkFields(e,r,i,n,s,a){const o=function(c){console.error("%c"+c+ke.printLocation(a,e),S_)},l=ke.getType(r[e]),u=s[l];u!==void 0?ke.getType(u)==="array"&&be(u).call(u,r[e])===-1?(o('Invalid option detected in "'+e+'". Allowed values are:'+ke.print(u)+' not "'+r[e]+'". '),Es=!0):l==="object"&&n!=="__any__"&&(a=Qs(a,e),ke.parse(r[e],i[n],a)):s.any===void 0&&(o('Invalid type received for "'+e+'". Expected: '+ke.print(ut(s))+". Received ["+l+'] "'+r[e]+'"'),Es=!0)}static getType(e){const r=typeof e;return r==="object"?e===null?"null":e instanceof Boolean?"boolean":e instanceof Number?"number":e instanceof String?"string":fe(e)?"array":e instanceof Date?"date":e.nodeType!==void 0?"dom":e._isAMomentObject===!0?"moment":"object":r==="number"?"number":r==="boolean"?"boolean":r==="string"?"string":r===void 0?"undefined":r}static getSuggestion(e,r,i){const n=ke.findInOptions(e,r,i,!1),s=ke.findInOptions(e,EM,[],!0),a=8,o=4;let l;n.indexMatch!==void 0?l=" in "+ke.printLocation(n.path,e,"")+'Perhaps it was incomplete? Did you mean: "'+n.indexMatch+`"?
|
|
75
|
+
|
|
76
|
+
`:s.distance<=o&&n.distance>s.distance?l=" in "+ke.printLocation(n.path,e,"")+"Perhaps it was misplaced? Matching option found at: "+ke.printLocation(s.path,s.closestMatch,""):n.distance<=a?l='. Did you mean "'+n.closestMatch+'"?'+ke.printLocation(n.path,e):l=". Did you mean one of these: "+ke.print(ut(r))+ke.printLocation(i,e),console.error('%cUnknown option detected: "'+e+'"'+l,S_),Es=!0}static findInOptions(e,r,i){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,s=1e9,a="",o=[];const l=e.toLowerCase();let u;for(const h in r){let d;if(r[h].__type__!==void 0&&n===!0){const f=ke.findInOptions(e,r[h],Qs(i,h));s>f.distance&&(a=f.closestMatch,o=f.path,s=f.distance,u=f.indexMatch)}else{var c;be(c=h.toLowerCase()).call(c,l)!==-1&&(u=h),d=ke.levenshteinDistance(e,h),s>d&&(a=h,o=lG(i),s=d)}}return{closestMatch:a,path:o,distance:s,indexMatch:u}}static printLocation(e,r){let n=`
|
|
77
|
+
|
|
78
|
+
`+(arguments.length>2&&arguments[2]!==void 0?arguments[2]:`Problem value found at:
|
|
79
|
+
`)+`options = {
|
|
80
|
+
`;for(let s=0;s<e.length;s++){for(let a=0;a<s+1;a++)n+=" ";n+=e[s]+`: {
|
|
81
|
+
`}for(let s=0;s<e.length+1;s++)n+=" ";n+=r+`
|
|
82
|
+
`;for(let s=0;s<e.length+1;s++){for(let a=0;a<e.length-s;a++)n+=" ";n+=`}
|
|
83
|
+
`}return n+`
|
|
84
|
+
|
|
85
|
+
`}static print(e){return qt(e).replace(/(")|(\[)|(\])|(,"__type__")/g,"").replace(/(,)/g,", ")}static levenshteinDistance(e,r){if(e.length===0)return r.length;if(r.length===0)return e.length;const i=[];let n;for(n=0;n<=r.length;n++)i[n]=[n];let s;for(s=0;s<=e.length;s++)i[0][s]=s;for(n=1;n<=r.length;n++)for(s=1;s<=e.length;s++)r.charAt(n-1)==e.charAt(s-1)?i[n][s]=i[n-1][s-1]:i[n][s]=Math.min(i[n-1][s-1]+1,Math.min(i[n][s-1]+1,i[n-1][s]+1));return i[r.length][e.length]}};const DZ=mr,IZ=dG,CZ=RZ,qZ=Q1,kZ=xZ,AZ=S_,MZ=PZ;var NZ=Object.freeze({__proto__:null,Activator:DZ,Alea:F7,ColorPicker:IZ,Configurator:CZ,DELETE:X1,HSVToHex:__,HSVToRGB:ks,Hammer:qZ,Popup:kZ,RGBToHSV:_n,RGBToHex:J1,VALIDATOR_PRINT_STYLE:AZ,Validator:MZ,addClassName:nZ,addCssText:mZ,binarySearchCustom:wZ,binarySearchValue:SZ,bridgeObject:rw,copyAndExtendArray:Qs,copyArray:lG,deepExtend:Zs,deepObjectAssign:Z1,easingFunctions:OZ,equalArray:eZ,extend:X7,fillIfDefined:oG,forEach:aZ,getAbsoluteLeft:tZ,getAbsoluteRight:rZ,getAbsoluteTop:iZ,getScrollBarWidth:EZ,getTarget:hZ,getType:Rs,hasParent:dZ,hexToHSV:cG,hexToRGB:bl,insertSort:bZ,isDate:K7,isNumber:qs,isObject:b_,isString:kt,isValidHex:ew,isValidRGB:tw,isValidRGBA:hG,mergeOptions:_Z,option:fZ,overrideOpacity:pZ,parseColor:vZ,preventDefault:cZ,pureDeepObjectAssign:N7,recursiveDOMDelete:aG,removeClassName:sZ,removeCssText:gZ,selectiveBridgeObject:yZ,selectiveDeepExtend:Q7,selectiveExtend:Z7,selectiveNotDeepExtend:J7,throttle:uZ,toArray:oZ,topMost:TZ,updateProperty:lZ}),Ja={exports:{}},xe={},eo={exports:{}},gi={},TM;function fG(){if(TM)return gi;TM=1;function t(){var s={};return s["align-content"]=!1,s["align-items"]=!1,s["align-self"]=!1,s["alignment-adjust"]=!1,s["alignment-baseline"]=!1,s.all=!1,s["anchor-point"]=!1,s.animation=!1,s["animation-delay"]=!1,s["animation-direction"]=!1,s["animation-duration"]=!1,s["animation-fill-mode"]=!1,s["animation-iteration-count"]=!1,s["animation-name"]=!1,s["animation-play-state"]=!1,s["animation-timing-function"]=!1,s.azimuth=!1,s["backface-visibility"]=!1,s.background=!0,s["background-attachment"]=!0,s["background-clip"]=!0,s["background-color"]=!0,s["background-image"]=!0,s["background-origin"]=!0,s["background-position"]=!0,s["background-repeat"]=!0,s["background-size"]=!0,s["baseline-shift"]=!1,s.binding=!1,s.bleed=!1,s["bookmark-label"]=!1,s["bookmark-level"]=!1,s["bookmark-state"]=!1,s.border=!0,s["border-bottom"]=!0,s["border-bottom-color"]=!0,s["border-bottom-left-radius"]=!0,s["border-bottom-right-radius"]=!0,s["border-bottom-style"]=!0,s["border-bottom-width"]=!0,s["border-collapse"]=!0,s["border-color"]=!0,s["border-image"]=!0,s["border-image-outset"]=!0,s["border-image-repeat"]=!0,s["border-image-slice"]=!0,s["border-image-source"]=!0,s["border-image-width"]=!0,s["border-left"]=!0,s["border-left-color"]=!0,s["border-left-style"]=!0,s["border-left-width"]=!0,s["border-radius"]=!0,s["border-right"]=!0,s["border-right-color"]=!0,s["border-right-style"]=!0,s["border-right-width"]=!0,s["border-spacing"]=!0,s["border-style"]=!0,s["border-top"]=!0,s["border-top-color"]=!0,s["border-top-left-radius"]=!0,s["border-top-right-radius"]=!0,s["border-top-style"]=!0,s["border-top-width"]=!0,s["border-width"]=!0,s.bottom=!1,s["box-decoration-break"]=!0,s["box-shadow"]=!0,s["box-sizing"]=!0,s["box-snap"]=!0,s["box-suppress"]=!0,s["break-after"]=!0,s["break-before"]=!0,s["break-inside"]=!0,s["caption-side"]=!1,s.chains=!1,s.clear=!0,s.clip=!1,s["clip-path"]=!1,s["clip-rule"]=!1,s.color=!0,s["color-interpolation-filters"]=!0,s["column-count"]=!1,s["column-fill"]=!1,s["column-gap"]=!1,s["column-rule"]=!1,s["column-rule-color"]=!1,s["column-rule-style"]=!1,s["column-rule-width"]=!1,s["column-span"]=!1,s["column-width"]=!1,s.columns=!1,s.contain=!1,s.content=!1,s["counter-increment"]=!1,s["counter-reset"]=!1,s["counter-set"]=!1,s.crop=!1,s.cue=!1,s["cue-after"]=!1,s["cue-before"]=!1,s.cursor=!1,s.direction=!1,s.display=!0,s["display-inside"]=!0,s["display-list"]=!0,s["display-outside"]=!0,s["dominant-baseline"]=!1,s.elevation=!1,s["empty-cells"]=!1,s.filter=!1,s.flex=!1,s["flex-basis"]=!1,s["flex-direction"]=!1,s["flex-flow"]=!1,s["flex-grow"]=!1,s["flex-shrink"]=!1,s["flex-wrap"]=!1,s.float=!1,s["float-offset"]=!1,s["flood-color"]=!1,s["flood-opacity"]=!1,s["flow-from"]=!1,s["flow-into"]=!1,s.font=!0,s["font-family"]=!0,s["font-feature-settings"]=!0,s["font-kerning"]=!0,s["font-language-override"]=!0,s["font-size"]=!0,s["font-size-adjust"]=!0,s["font-stretch"]=!0,s["font-style"]=!0,s["font-synthesis"]=!0,s["font-variant"]=!0,s["font-variant-alternates"]=!0,s["font-variant-caps"]=!0,s["font-variant-east-asian"]=!0,s["font-variant-ligatures"]=!0,s["font-variant-numeric"]=!0,s["font-variant-position"]=!0,s["font-weight"]=!0,s.grid=!1,s["grid-area"]=!1,s["grid-auto-columns"]=!1,s["grid-auto-flow"]=!1,s["grid-auto-rows"]=!1,s["grid-column"]=!1,s["grid-column-end"]=!1,s["grid-column-start"]=!1,s["grid-row"]=!1,s["grid-row-end"]=!1,s["grid-row-start"]=!1,s["grid-template"]=!1,s["grid-template-areas"]=!1,s["grid-template-columns"]=!1,s["grid-template-rows"]=!1,s["hanging-punctuation"]=!1,s.height=!0,s.hyphens=!1,s.icon=!1,s["image-orientation"]=!1,s["image-resolution"]=!1,s["ime-mode"]=!1,s["initial-letters"]=!1,s["inline-box-align"]=!1,s["justify-content"]=!1,s["justify-items"]=!1,s["justify-self"]=!1,s.left=!1,s["letter-spacing"]=!0,s["lighting-color"]=!0,s["line-box-contain"]=!1,s["line-break"]=!1,s["line-grid"]=!1,s["line-height"]=!1,s["line-snap"]=!1,s["line-stacking"]=!1,s["line-stacking-ruby"]=!1,s["line-stacking-shift"]=!1,s["line-stacking-strategy"]=!1,s["list-style"]=!0,s["list-style-image"]=!0,s["list-style-position"]=!0,s["list-style-type"]=!0,s.margin=!0,s["margin-bottom"]=!0,s["margin-left"]=!0,s["margin-right"]=!0,s["margin-top"]=!0,s["marker-offset"]=!1,s["marker-side"]=!1,s.marks=!1,s.mask=!1,s["mask-box"]=!1,s["mask-box-outset"]=!1,s["mask-box-repeat"]=!1,s["mask-box-slice"]=!1,s["mask-box-source"]=!1,s["mask-box-width"]=!1,s["mask-clip"]=!1,s["mask-image"]=!1,s["mask-origin"]=!1,s["mask-position"]=!1,s["mask-repeat"]=!1,s["mask-size"]=!1,s["mask-source-type"]=!1,s["mask-type"]=!1,s["max-height"]=!0,s["max-lines"]=!1,s["max-width"]=!0,s["min-height"]=!0,s["min-width"]=!0,s["move-to"]=!1,s["nav-down"]=!1,s["nav-index"]=!1,s["nav-left"]=!1,s["nav-right"]=!1,s["nav-up"]=!1,s["object-fit"]=!1,s["object-position"]=!1,s.opacity=!1,s.order=!1,s.orphans=!1,s.outline=!1,s["outline-color"]=!1,s["outline-offset"]=!1,s["outline-style"]=!1,s["outline-width"]=!1,s.overflow=!1,s["overflow-wrap"]=!1,s["overflow-x"]=!1,s["overflow-y"]=!1,s.padding=!0,s["padding-bottom"]=!0,s["padding-left"]=!0,s["padding-right"]=!0,s["padding-top"]=!0,s.page=!1,s["page-break-after"]=!1,s["page-break-before"]=!1,s["page-break-inside"]=!1,s["page-policy"]=!1,s.pause=!1,s["pause-after"]=!1,s["pause-before"]=!1,s.perspective=!1,s["perspective-origin"]=!1,s.pitch=!1,s["pitch-range"]=!1,s["play-during"]=!1,s.position=!1,s["presentation-level"]=!1,s.quotes=!1,s["region-fragment"]=!1,s.resize=!1,s.rest=!1,s["rest-after"]=!1,s["rest-before"]=!1,s.richness=!1,s.right=!1,s.rotation=!1,s["rotation-point"]=!1,s["ruby-align"]=!1,s["ruby-merge"]=!1,s["ruby-position"]=!1,s["shape-image-threshold"]=!1,s["shape-outside"]=!1,s["shape-margin"]=!1,s.size=!1,s.speak=!1,s["speak-as"]=!1,s["speak-header"]=!1,s["speak-numeral"]=!1,s["speak-punctuation"]=!1,s["speech-rate"]=!1,s.stress=!1,s["string-set"]=!1,s["tab-size"]=!1,s["table-layout"]=!1,s["text-align"]=!0,s["text-align-last"]=!0,s["text-combine-upright"]=!0,s["text-decoration"]=!0,s["text-decoration-color"]=!0,s["text-decoration-line"]=!0,s["text-decoration-skip"]=!0,s["text-decoration-style"]=!0,s["text-emphasis"]=!0,s["text-emphasis-color"]=!0,s["text-emphasis-position"]=!0,s["text-emphasis-style"]=!0,s["text-height"]=!0,s["text-indent"]=!0,s["text-justify"]=!0,s["text-orientation"]=!0,s["text-overflow"]=!0,s["text-shadow"]=!0,s["text-space-collapse"]=!0,s["text-transform"]=!0,s["text-underline-position"]=!0,s["text-wrap"]=!0,s.top=!1,s.transform=!1,s["transform-origin"]=!1,s["transform-style"]=!1,s.transition=!1,s["transition-delay"]=!1,s["transition-duration"]=!1,s["transition-property"]=!1,s["transition-timing-function"]=!1,s["unicode-bidi"]=!1,s["vertical-align"]=!1,s.visibility=!1,s["voice-balance"]=!1,s["voice-duration"]=!1,s["voice-family"]=!1,s["voice-pitch"]=!1,s["voice-range"]=!1,s["voice-rate"]=!1,s["voice-stress"]=!1,s["voice-volume"]=!1,s.volume=!1,s["white-space"]=!1,s.widows=!1,s.width=!0,s["will-change"]=!1,s["word-break"]=!0,s["word-spacing"]=!0,s["word-wrap"]=!0,s["wrap-flow"]=!1,s["wrap-through"]=!1,s["writing-mode"]=!1,s["z-index"]=!1,s}function e(s,a,o){}function r(s,a,o){}var i=/javascript\s*\:/img;function n(s,a){return i.test(a)?"":a}return gi.whiteList=t(),gi.getDefaultWhiteList=t,gi.onAttr=e,gi.onIgnoreAttr=r,gi.safeAttrValue=n,gi}var ky,$M;function pG(){return $M||($M=1,ky={indexOf:function(t,e){var r,i;if(Array.prototype.indexOf)return t.indexOf(e);for(r=0,i=t.length;r<i;r++)if(t[r]===e)return r;return-1},forEach:function(t,e,r){var i,n;if(Array.prototype.forEach)return t.forEach(e,r);for(i=0,n=t.length;i<n;i++)e.call(r,t[i],i,t)},trim:function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(t){return String.prototype.trimRight?t.trimRight():t.replace(/(\s*$)/g,"")}}),ky}var Ay,RM;function FZ(){if(RM)return Ay;RM=1;var t=pG();function e(r,i){r=t.trimRight(r),r[r.length-1]!==";"&&(r+=";");var n=r.length,s=!1,a=0,o=0,l="";function u(){if(!s){var d=t.trim(r.slice(a,o)),f=d.indexOf(":");if(f!==-1){var p=t.trim(d.slice(0,f)),v=t.trim(d.slice(f+1));if(p){var m=i(a,l.length,p,v,d);m&&(l+=m+"; ")}}}a=o+1}for(;o<n;o++){var c=r[o];if(c==="/"&&r[o+1]==="*"){var h=r.indexOf("*/",o+2);if(h===-1)break;o=h+1,a=o+1,s=!1}else c==="("?s=!0:c===")"?s=!1:c===";"?s||u():c===`
|
|
86
|
+
`&&u()}return t.trim(l)}return Ay=e,Ay}var My,xM;function LZ(){if(xM)return My;xM=1;var t=fG(),e=FZ();pG();function r(s){return s==null}function i(s){var a={};for(var o in s)a[o]=s[o];return a}function n(s){s=i(s||{}),s.whiteList=s.whiteList||t.whiteList,s.onAttr=s.onAttr||t.onAttr,s.onIgnoreAttr=s.onIgnoreAttr||t.onIgnoreAttr,s.safeAttrValue=s.safeAttrValue||t.safeAttrValue,this.options=s}return n.prototype.process=function(s){if(s=s||"",s=s.toString(),!s)return"";var a=this,o=a.options,l=o.whiteList,u=o.onAttr,c=o.onIgnoreAttr,h=o.safeAttrValue,d=e(s,function(f,p,v,m,y){var g=l[v],O=!1;if(g===!0?O=g:typeof g=="function"?O=g(m):g instanceof RegExp&&(O=g.test(m)),O!==!0&&(O=!1),m=h(v,m),!!m){var _={position:p,sourcePosition:f,source:y,isWhite:O};if(O){var w=u(v,m,_);return r(w)?v+":"+m:w}else{var w=c(v,m,_);if(!r(w))return w}}});return d},My=n,My}var PM;function O_(){return PM||(PM=1,(function(t,e){var r=fG(),i=LZ();function n(a,o){var l=new i(o);return l.process(a)}e=t.exports=n,e.FilterCSS=i;for(var s in r)e[s]=r[s];typeof window<"u"&&(window.filterCSS=t.exports)})(eo,eo.exports)),eo.exports}var Ny,DM;function iw(){return DM||(DM=1,Ny={indexOf:function(t,e){var r,i;if(Array.prototype.indexOf)return t.indexOf(e);for(r=0,i=t.length;r<i;r++)if(t[r]===e)return r;return-1},forEach:function(t,e,r){var i,n;if(Array.prototype.forEach)return t.forEach(e,r);for(i=0,n=t.length;i<n;i++)e.call(r,t[i],i,t)},trim:function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(t){var e=/\s|\n|\t/,r=e.exec(t);return r?r.index:-1}}),Ny}var IM;function vG(){if(IM)return xe;IM=1;var t=O_().FilterCSS,e=O_().getDefaultWhiteList,r=iw();function i(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height","loading"],ins:["datetime"],kbd:[],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var n=new t;function s(G,B,A){}function a(G,B,A){}function o(G,B,A){}function l(G,B,A){}function u(G){return G.replace(h,"<").replace(d,">")}function c(G,B,A,U){if(A=R(A),B==="href"||B==="src"){if(A=r.trim(A),A==="#")return"#";if(!(A.substr(0,7)==="http://"||A.substr(0,8)==="https://"||A.substr(0,7)==="mailto:"||A.substr(0,4)==="tel:"||A.substr(0,11)==="data:image/"||A.substr(0,6)==="ftp://"||A.substr(0,2)==="./"||A.substr(0,3)==="../"||A[0]==="#"||A[0]==="/"))return""}else if(B==="background"){if(g.lastIndex=0,g.test(A))return""}else if(B==="style"){if(O.lastIndex=0,O.test(A)||(_.lastIndex=0,_.test(A)&&(g.lastIndex=0,g.test(A))))return"";U!==!1&&(U=U||n,A=U.process(A))}return A=x(A),A}var h=/</g,d=/>/g,f=/"/g,p=/"/g,v=/&#([a-zA-Z0-9]*);?/gim,m=/:?/gim,y=/&newline;?/gim,g=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,O=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,_=/u\s*r\s*l\s*\(.*/gi;function w(G){return G.replace(f,""")}function E(G){return G.replace(p,'"')}function $(G){return G.replace(v,function(A,U){return U[0]==="x"||U[0]==="X"?String.fromCharCode(parseInt(U.substr(1),16)):String.fromCharCode(parseInt(U,10))})}function b(G){return G.replace(m,":").replace(y," ")}function T(G){for(var B="",A=0,U=G.length;A<U;A++)B+=G.charCodeAt(A)<32?" ":G.charAt(A);return r.trim(B)}function R(G){return G=E(G),G=$(G),G=b(G),G=T(G),G}function x(G){return G=w(G),G=u(G),G}function P(){return""}function I(G,B){typeof B!="function"&&(B=function(){});var A=!Array.isArray(G);function U(se){return A?!0:r.indexOf(G,se)!==-1}var me=[],W=!1;return{onIgnoreTag:function(se,Se,oe){if(U(se))if(oe.isClosing){var st="[/removed]",Oe=oe.position+st.length;return me.push([W!==!1?W:oe.position,Oe]),W=!1,st}else return W||(W=oe.position),"[removed]";else return B(se,Se,oe)},remove:function(se){var Se="",oe=0;return r.forEach(me,function(st){Se+=se.slice(oe,st[0]),oe=st[1]}),Se+=se.slice(oe),Se}}}function j(G){for(var B="",A=0;A<G.length;){var U=G.indexOf("<!--",A);if(U===-1){B+=G.slice(A);break}B+=G.slice(A,U);var me=G.indexOf("-->",U);if(me===-1)break;A=me+3}return B}function K(G){var B=G.split("");return B=B.filter(function(A){var U=A.charCodeAt(0);return U===127?!1:U<=31?U===10||U===13:!0}),B.join("")}return xe.whiteList=i(),xe.getDefaultWhiteList=i,xe.onTag=s,xe.onIgnoreTag=a,xe.onTagAttr=o,xe.onIgnoreTagAttr=l,xe.safeAttrValue=c,xe.escapeHtml=u,xe.escapeQuote=w,xe.unescapeQuote=E,xe.escapeHtmlEntities=$,xe.escapeDangerHtml5Entities=b,xe.clearNonPrintableCharacter=T,xe.friendlyAttrValue=R,xe.escapeAttrValue=x,xe.onIgnoreTagStripAll=P,xe.StripTagBody=I,xe.stripCommentTag=j,xe.stripBlankChar=K,xe.attributeWrapSign='"',xe.cssFilter=n,xe.getDefaultCSSWhiteList=e,xe}var to={},CM;function mG(){if(CM)return to;CM=1;var t=iw();function e(h){var d=t.spaceIndex(h),f;return d===-1?f=h.slice(1,-1):f=h.slice(1,d+1),f=t.trim(f).toLowerCase(),f.slice(0,1)==="/"&&(f=f.slice(1)),f.slice(-1)==="/"&&(f=f.slice(0,-1)),f}function r(h){return h.slice(0,2)==="</"}function i(h,d,f){var p="",v=0,m=!1,y=!1,g=0,O=h.length,_="",w="";e:for(g=0;g<O;g++){var E=h.charAt(g);if(m===!1){if(E==="<"){m=g;continue}}else if(y===!1){if(E==="<"){p+=f(h.slice(v,g)),m=g,v=g;continue}if(E===">"||g===O-1){p+=f(h.slice(v,m)),w=h.slice(m,g+1),_=e(w),p+=d(m,p.length,_,w,r(w)),v=g+1,m=!1;continue}if(E==='"'||E==="'")for(var $=1,b=h.charAt(g-$);b.trim()===""||b==="=";){if(b==="="){y=E;continue e}b=h.charAt(g-++$)}}else if(E===y){y=!1;continue}}return v<O&&(p+=f(h.substr(v))),p}var n=/[^a-zA-Z0-9\\_:.-]/gim;function s(h,d){var f=0,p=0,v=[],m=!1,y=h.length;function g($,b){if($=t.trim($),$=$.replace(n,"").toLowerCase(),!($.length<1)){var T=d($,b||"");T&&v.push(T)}}for(var O=0;O<y;O++){var _=h.charAt(O),w,E;if(m===!1&&_==="="){m=h.slice(f,O),f=O+1,p=h.charAt(f)==='"'||h.charAt(f)==="'"?f:o(h,O+1);continue}if(m!==!1&&O===p){if(E=h.indexOf(_,O+1),E===-1)break;w=t.trim(h.slice(p+1,E)),g(m,w),m=!1,O=E,f=O+1;continue}if(/\s|\n|\t/.test(_))if(h=h.replace(/\s|\n|\t/g," "),m===!1)if(E=a(h,O),E===-1){w=t.trim(h.slice(f,O)),g(w),m=!1,f=O+1;continue}else{O=E-1;continue}else if(E=l(h,O-1),E===-1){w=t.trim(h.slice(f,O)),w=c(w),g(m,w),m=!1,f=O+1;continue}else continue}return f<h.length&&(m===!1?g(h.slice(f)):g(m,c(t.trim(h.slice(f))))),t.trim(v.join(" "))}function a(h,d){for(;d<h.length;d++){var f=h[d];if(f!==" ")return f==="="?d:-1}}function o(h,d){for(;d<h.length;d++){var f=h[d];if(f!==" ")return f==="'"||f==='"'?d:-1}}function l(h,d){for(;d>0;d--){var f=h[d];if(f!==" ")return f==="="?d:-1}}function u(h){return h[0]==='"'&&h[h.length-1]==='"'||h[0]==="'"&&h[h.length-1]==="'"}function c(h){return u(h)?h.substr(1,h.length-2):h}return to.parseTag=i,to.parseAttr=s,to}var Fy,qM;function jZ(){if(qM)return Fy;qM=1;var t=O_().FilterCSS,e=vG(),r=mG(),i=r.parseTag,n=r.parseAttr,s=iw();function a(h){return h==null}function o(h){var d=s.spaceIndex(h);if(d===-1)return{html:"",closing:h[h.length-2]==="/"};h=s.trim(h.slice(d+1,-1));var f=h[h.length-1]==="/";return f&&(h=s.trim(h.slice(0,-1))),{html:h,closing:f}}function l(h){var d={};for(var f in h)d[f]=h[f];return d}function u(h){var d={};for(var f in h)Array.isArray(h[f])?d[f.toLowerCase()]=h[f].map(function(p){return p.toLowerCase()}):d[f.toLowerCase()]=h[f];return d}function c(h){h=l(h||{}),h.stripIgnoreTag&&(h.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),h.onIgnoreTag=e.onIgnoreTagStripAll),h.whiteList||h.allowList?h.whiteList=u(h.whiteList||h.allowList):h.whiteList=e.whiteList,this.attributeWrapSign=h.singleQuotedAttributeValue===!0?"'":e.attributeWrapSign,h.onTag=h.onTag||e.onTag,h.onTagAttr=h.onTagAttr||e.onTagAttr,h.onIgnoreTag=h.onIgnoreTag||e.onIgnoreTag,h.onIgnoreTagAttr=h.onIgnoreTagAttr||e.onIgnoreTagAttr,h.safeAttrValue=h.safeAttrValue||e.safeAttrValue,h.escapeHtml=h.escapeHtml||e.escapeHtml,this.options=h,h.css===!1?this.cssFilter=!1:(h.css=h.css||{},this.cssFilter=new t(h.css))}return c.prototype.process=function(h){if(h=h||"",h=h.toString(),!h)return"";var d=this,f=d.options,p=f.whiteList,v=f.onTag,m=f.onIgnoreTag,y=f.onTagAttr,g=f.onIgnoreTagAttr,O=f.safeAttrValue,_=f.escapeHtml,w=d.attributeWrapSign,E=d.cssFilter;f.stripBlankChar&&(h=e.stripBlankChar(h)),f.allowCommentTag||(h=e.stripCommentTag(h));var $=!1;f.stripIgnoreTagBody&&($=e.StripTagBody(f.stripIgnoreTagBody,m),m=$.onIgnoreTag);var b=i(h,function(T,R,x,P,I){var j={sourcePosition:T,position:R,isClosing:I,isWhite:Object.prototype.hasOwnProperty.call(p,x)},K=v(x,P,j);if(!a(K))return K;if(j.isWhite){if(j.isClosing)return"</"+x+">";var G=o(P),B=p[x],A=n(G.html,function(U,me){var W=s.indexOf(B,U)!==-1,se=y(x,U,me,W);return a(se)?W?(me=O(x,U,me,E),me?U+"="+w+me+w:U):(se=g(x,U,me,W),a(se)?void 0:se):se});return P="<"+x,A&&(P+=" "+A),G.closing&&(P+=" /"),P+=">",P}else return K=m(x,P,j),a(K)?_(P):K},_);return $&&(b=$.remove(b)),b},Fy=c,Fy}var kM;function GZ(){return kM||(kM=1,(function(t,e){var r=vG(),i=mG(),n=jZ();function s(o,l){var u=new n(l);return u.process(o)}e=t.exports=s,e.filterXSS=s,e.FilterXSS=n,(function(){for(var o in r)e[o]=r[o];for(var l in i)e[l]=i[l]})(),typeof window<"u"&&(window.filterXSS=t.exports);function a(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}a()&&(self.filterXSS=t.exports)})(Ja,Ja.exports)),Ja.exports}var BZ=GZ(),WZ=Q(BZ);const ot=[];for(let t=0;t<256;++t)ot.push((t+256).toString(16).slice(1));function HZ(t,e=0){return(ot[t[e+0]]+ot[t[e+1]]+ot[t[e+2]]+ot[t[e+3]]+"-"+ot[t[e+4]]+ot[t[e+5]]+"-"+ot[t[e+6]]+ot[t[e+7]]+"-"+ot[t[e+8]]+ot[t[e+9]]+"-"+ot[t[e+10]]+ot[t[e+11]]+ot[t[e+12]]+ot[t[e+13]]+ot[t[e+14]]+ot[t[e+15]]).toLowerCase()}let Ly;const YZ=new Uint8Array(16);function UZ(){if(!Ly){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ly=crypto.getRandomValues.bind(crypto)}return Ly(YZ)}const VZ=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var AM={randomUUID:VZ};function zZ(t,e,r){t=t||{};const i=t.random??t.rng?.()??UZ();if(i.length<16)throw new Error("Random bytes length must be >= 16");return i[6]=i[6]&15|64,i[8]=i[8]&63|128,HZ(i)}function En(t,e,r){return AM.randomUUID&&!t?AM.randomUUID():zZ(t)}function MM(t,e){var r=ut(t);if(TI){var i=TI(t);e&&(i=ue(i).call(i,function(n){return fj(t,n).enumerable})),r.push.apply(r,i)}return r}function NM(t){for(var e=1;e<arguments.length;e++){var r,i,n=arguments[e]!=null?arguments[e]:{};e%2?M(r=MM(Object(n),!0)).call(r,function(s){q8(t,s,n[s])}):YI?E6(t,YI(n)):M(i=MM(Object(n))).call(i,function(s){Pj(t,s,fj(n,s))})}return t}function Lr(t){var e;if(!t)return!1;let r=(e=t.idProp)!==null&&e!==void 0?e:t._idProp;return r?cz(r,t):!1}const jy=/^\/?Date\((-?\d+)/i,KZ=/^\d+$/;function nw(t,e){let r;if(t!==void 0){if(t===null)return null;if(!e)return t;if(typeof e!="string"&&!(e instanceof String))throw new Error("Type must be a string");switch(e){case"boolean":case"Boolean":return!!t;case"number":case"Number":return kt(t)&&!isNaN(Date.parse(t))?q(t).valueOf():Number(t.valueOf());case"string":case"String":return String(t);case"Date":try{return nw(t,"Moment").toDate()}catch(i){throw i instanceof TypeError?new TypeError("Cannot convert object of type "+Rs(t)+" to type "+e):i}case"Moment":if(qs(t))return q(t);if(t instanceof Date)return q(t.valueOf());if(q.isMoment(t))return q(t);if(kt(t))return r=jy.exec(t),r?q(Number(r[1])):(r=KZ.exec(t),q(r?Number(t):t));throw new TypeError("Cannot convert object of type "+Rs(t)+" to type "+e);case"ISODate":if(qs(t))return new Date(t);if(t instanceof Date)return t.toISOString();if(q.isMoment(t))return t.toDate().toISOString();if(kt(t))return r=jy.exec(t),r?new Date(Number(r[1])).toISOString():q(t).format();throw new Error("Cannot convert object of type "+Rs(t)+" to type ISODate");case"ASPDate":if(qs(t))return"/Date("+t+")/";if(t instanceof Date||q.isMoment(t))return"/Date("+t.valueOf()+")/";if(kt(t)){r=jy.exec(t);let i;return r?i=new Date(Number(r[1])).valueOf():i=new Date(t).valueOf(),"/Date("+i+")/"}else throw new Error("Cannot convert object of type "+Rs(t)+" to type ASPDate");default:throw new Error("Unknown type ".concat(e))}}}function kn(t){var e,r,i,n,s,a;let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{start:"Date",end:"Date"};const l=t._idProp,u=new Pn({fieldId:l}),c=Qe(e=BW(t)).call(e,h=>{var d;return xj(d=ut(h)).call(d,(f,p)=>(f[p]=nw(h[p],o[p]),f),{})}).to(u);return c.all().start(),{add:function(){return t.getDataSet().add(...arguments)},remove:function(){return t.getDataSet().remove(...arguments)},update:function(){return t.getDataSet().update(...arguments)},updateOnly:function(){return t.getDataSet().updateOnly(...arguments)},clear:function(){return t.getDataSet().clear(...arguments)},forEach:D(r=M(u)).call(r,u),get:D(i=u.get).call(i,u),getIds:D(n=u.getIds).call(n,u),off:D(s=u.off).call(s,u),on:D(a=u.on).call(a,u),get length(){return u.length},idProp:l,type:o,rawDS:t,coercedDS:u,dispose:()=>c.stop()}}const gG=t=>{const e=new WZ.FilterXSS(t);return r=>typeof r=="string"?e.process(r):r},XZ=t=>t;let E_=gG();const ZZ=t=>{t&&(t.disabled===!0?(E_=XZ,console.warn("You disabled XSS protection for vis-Timeline. I sure hope you know what you're doing!")):t.filterOptions&&(E_=gG(t.filterOptions)))},S=NM(NM({},NZ),{},{convert:nw,setupXSSProtection:ZZ});Pj(S,"xss",{get:function(){return E_}});var FM={},Gy,LM;function QZ(){if(LM)return Gy;LM=1;var t=Ae(),e=ce(),r=de(),i=rr(),n=Cj().trim,s=j1(),a=r("".charAt),o=t.parseFloat,l=t.Symbol,u=l&&l.iterator,c=1/o(s+"-0")!==-1/0||u&&!e(function(){o(Object(u))});return Gy=c?function(d){var f=n(i(d)),p=o(f);return p===0&&a(f,0)==="-"?-0:p}:o,Gy}var jM;function JZ(){if(jM)return FM;jM=1;var t=Y(),e=QZ();return t({global:!0,forced:parseFloat!==e},{parseFloat:e}),FM}var By,GM;function eQ(){if(GM)return By;GM=1,JZ();var t=Re();return By=t.parseFloat,By}var Wy,BM;function tQ(){if(BM)return Wy;BM=1;var t=eQ();return Wy=t,Wy}var Hy,WM;function rQ(){return WM||(WM=1,Hy=tQ()),Hy}var iQ=rQ(),Oo=Q(iQ);class li{constructor(){this.options=null,this.props=null}setOptions(e){e&&S.extend(this.options,e)}redraw(){return!1}destroy(){}_isResized(){const e=this.props._previousWidth!==this.props.width||this.props._previousHeight!==this.props.height;return this.props._previousWidth=this.props.width,this.props._previousHeight=this.props.height,e}}var HM={},YM;function nQ(){if(YM)return HM;YM=1;var t=Y(),e=qj();return t({target:"String",proto:!0},{repeat:e}),HM}var Yy,UM;function sQ(){if(UM)return Yy;UM=1,nQ();var t=nt();return Yy=t("String","repeat"),Yy}var Uy,VM;function aQ(){if(VM)return Uy;VM=1;var t=je(),e=sQ(),r=String.prototype;return Uy=function(i){var n=i.repeat;return typeof i=="string"||i===r||t(r,i)&&n===r.repeat?e:n},Uy}var Vy,zM;function oQ(){if(zM)return Vy;zM=1;var t=aQ();return Vy=t,Vy}var zy,KM;function lQ(){return KM||(KM=1,zy=oQ()),zy}var uQ=lQ(),pn=Q(uQ),XM={},Ky,ZM;function cQ(){if(ZM)return Ky;ZM=1;var t=is(),e=Math.floor,r=function(i,n){var s=i.length;if(s<8)for(var a=1,o,l;a<s;){for(l=a,o=i[a];l&&n(i[l-1],o)>0;)i[l]=i[--l];l!==a++&&(i[l]=o)}else for(var u=e(s/2),c=r(t(i,0,u),n),h=r(t(i,u),n),d=c.length,f=h.length,p=0,v=0;p<d||v<f;)i[p+v]=p<d&&v<f?n(c[p],h[v])<=0?c[p++]:h[v++]:p<d?c[p++]:h[v++];return i};return Ky=r,Ky}var Xy,QM;function hQ(){if(QM)return Xy;QM=1;var t=Qn(),e=t.match(/firefox\/(\d+)/i);return Xy=!!e&&+e[1],Xy}var Zy,JM;function dQ(){if(JM)return Zy;JM=1;var t=Qn();return Zy=/MSIE|Trident/.test(t),Zy}var Qy,eN;function fQ(){if(eN)return Qy;eN=1;var t=Qn(),e=t.match(/AppleWebKit\/(\d+)\./);return Qy=!!e&&+e[1],Qy}var tN;function pQ(){if(tN)return XM;tN=1;var t=Y(),e=de(),r=ai(),i=jt(),n=Yr(),s=Dj(),a=rr(),o=ce(),l=cQ(),u=ss(),c=hQ(),h=dQ(),d=Ea(),f=fQ(),p=[],v=e(p.sort),m=e(p.push),y=o(function(){p.sort(void 0)}),g=o(function(){p.sort(null)}),O=u("sort"),_=!o(function(){if(d)return d<70;if(!(c&&c>3)){if(h)return!0;if(f)return f<603;var $="",b,T,R,x;for(b=65;b<76;b++){switch(T=String.fromCharCode(b),b){case 66:case 69:case 70:case 72:R=3;break;case 68:case 71:R=4;break;default:R=2}for(x=0;x<47;x++)p.push({k:T+x,v:R})}for(p.sort(function(P,I){return I.v-P.v}),x=0;x<p.length;x++)T=p[x].k.charAt(0),$.charAt($.length-1)!==T&&($+=T);return $!=="DGBEFHACIJK"}}),w=y||!g||!O||!_,E=function($){return function(b,T){return T===void 0?-1:b===void 0?1:$!==void 0?+$(b,T)||0:a(b)>a(T)?1:-1}};return t({target:"Array",proto:!0,forced:w},{sort:function(b){b!==void 0&&r(b);var T=i(this);if(_)return b===void 0?v(T):v(T,b);var R=[],x=n(T),P,I;for(I=0;I<x;I++)I in T&&m(R,T[I]);for(l(R,E(b)),P=n(R),I=0;I<P;)T[I]=R[I++];for(;I<x;)s(T,I++);return T}}),XM}var Jy,rN;function vQ(){if(rN)return Jy;rN=1,pQ();var t=nt();return Jy=t("Array","sort"),Jy}var eb,iN;function mQ(){if(iN)return eb;iN=1;var t=je(),e=vQ(),r=Array.prototype;return eb=function(i){var n=i.sort;return i===r||t(r,i)&&n===r.sort?e:n},eb}var tb,nN;function gQ(){if(nN)return tb;nN=1;var t=mQ();return tb=t,tb}var rb,sN;function yQ(){return sN||(sN=1,rb=gQ()),rb}var bQ=yQ(),Je=Q(bQ);function sw(t,e,r){if(r&&!fe(r))return sw(t,e,[r]);if(e.hiddenDates=[],r&&fe(r)==!0){var i;for(let n=0;n<r.length;n++)if(pn(r[n])===void 0){const s={};s.start=t(r[n].start).toDate().valueOf(),s.end=t(r[n].end).toDate().valueOf(),e.hiddenDates.push(s)}Je(i=e.hiddenDates).call(i,(n,s)=>n.start-s.start)}}function Eo(t,e,r){if(r&&!fe(r))return Eo(t,e,[r]);if(r&&e.domProps.centerContainer.width!==void 0){sw(t,e,r);const i=t(e.range.start),n=t(e.range.end),a=(e.range.end-e.range.start)/e.domProps.centerContainer.width;for(let h=0;h<r.length;h++)if(pn(r[h])!==void 0){let d=t(r[h].start),f=t(r[h].end);if(d._d=="Invalid Date")throw new Error("Supplied start date is not valid: ".concat(r[h].start));if(f._d=="Invalid Date")throw new Error("Supplied end date is not valid: ".concat(r[h].end));if(f-d>=4*a){let v=0,m=n.clone();switch(pn(r[h])){case"daily":d.day()!=f.day()&&(v=1),d=d.dayOfYear(i.dayOfYear()).year(i.year()).subtract(7,"days"),f=f.dayOfYear(i.dayOfYear()).year(i.year()).subtract(7-v,"days"),m.add(1,"weeks");break;case"weekly":{const y=f.diff(d,"days"),g=d.day();d=d.date(i.date()).month(i.month()).year(i.year()),f=d.clone(),d=d.day(g).subtract(1,"weeks"),f=f.day(g).add(y,"days").subtract(1,"weeks"),m.add(1,"weeks");break}case"monthly":d.month()!=f.month()&&(v=1),d=d.month(i.month()).year(i.year()).subtract(1,"months"),f=f.month(i.month()).year(i.year()).subtract(1,"months").add(v,"months"),m.add(1,"months");break;case"yearly":d.year()!=f.year()&&(v=1),d=d.year(i.year()).subtract(1,"years"),f=f.year(i.year()).subtract(1,"years").add(v,"years"),m.add(1,"years");break;default:console.log("Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:",pn(r[h]));return}for(;d<m;)switch(e.hiddenDates.push({start:d.valueOf(),end:f.valueOf()}),pn(r[h])){case"daily":d=d.add(1,"days"),f=f.add(1,"days");break;case"weekly":d=d.add(1,"weeks"),f=f.add(1,"weeks");break;case"monthly":d=d.add(1,"months"),f=f.add(1,"months");break;case"yearly":d=d.add(1,"y"),f=f.add(1,"y");break;default:console.log("Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:",pn(r[h]));return}e.hiddenDates.push({start:d.valueOf(),end:f.valueOf()})}}_Q(e);const o=$o(e.range.start,e.hiddenDates),l=$o(e.range.end,e.hiddenDates);let u=e.range.start,c=e.range.end;o.hidden==!0&&(u=e.range.startToFront==!0?o.startDate-1:o.endDate+1),l.hidden==!0&&(c=e.range.endToFront==!0?l.startDate-1:l.endDate+1),(o.hidden==!0||l.hidden==!0)&&e.range._applyRange(u,c)}}function _Q(t){var e;const r=t.hiddenDates,i=[];for(var n=0;n<r.length;n++)for(let s=0;s<r.length;s++)n!=s&&r[s].remove!=!0&&r[n].remove!=!0&&(r[s].start>=r[n].start&&r[s].end<=r[n].end?r[s].remove=!0:r[s].start>=r[n].start&&r[s].start<=r[n].end?(r[n].end=r[s].end,r[s].remove=!0):r[s].end>=r[n].start&&r[s].end<=r[n].end&&(r[n].start=r[s].start,r[s].remove=!0));for(n=0;n<r.length;n++)r[n].remove!==!0&&i.push(r[n]);t.hiddenDates=i,Je(e=t.hiddenDates).call(e,(s,a)=>s.start-a.start)}function wQ(t,e,r){let i=!1;const n=e.current.valueOf();for(let a=0;a<e.hiddenDates.length;a++){const o=e.hiddenDates[a].start;var s=e.hiddenDates[a].end;if(n>=o&&n<s){i=!0;break}}if(i==!0&&n<e._end.valueOf()&&n!=r){const a=t(r),o=t(s);a.year()!=o.year()?e.switchedYear=!0:a.month()!=o.month()?e.switchedMonth=!0:a.dayOfYear()!=o.dayOfYear()&&(e.switchedDay=!0),e.current=o}}function aN(t,e,r){let i;if(t.body.hiddenDates.length==0)return i=t.range.conversion(r),(e.valueOf()-i.offset)*i.scale;{const n=$o(e,t.body.hiddenDates);n.hidden==!0&&(e=n.startDate);const s=As(t.body.hiddenDates,t.range.start,t.range.end);if(e<t.range.start){i=t.range.conversion(r,s);const a=SQ(t.body.hiddenDates,e,i.offset);return e=t.options.moment(e).toDate().valueOf(),e=e+a,-(i.offset-e.valueOf())*i.scale}else if(e>t.range.end){const a={start:t.range.start,end:e};return e=lN(t.options.moment,t.body.hiddenDates,a,e),i=t.range.conversion(r,s),(e.valueOf()-i.offset)*i.scale}else return e=lN(t.options.moment,t.body.hiddenDates,t.range,e),i=t.range.conversion(r,s),(e.valueOf()-i.offset)*i.scale}}function oN(t,e,r){if(t.body.hiddenDates.length==0){const i=t.range.conversion(r);return new Date(e/i.scale+i.offset)}else{const i=As(t.body.hiddenDates,t.range.start,t.range.end),s=(t.range.end-t.range.start-i)*e/r,a=OQ(t.body.hiddenDates,t.range,s);return new Date(a+s+t.range.start)}}function As(t,e,r){let i=0;for(let n=0;n<t.length;n++){const s=t[n].start,a=t[n].end;s>=e&&a<r&&(i+=a-s)}return i}function SQ(t,e,r){let i=0;for(let n=0;n<t.length;n++){const s=t[n].start,a=t[n].end;s>=e&&a<=r&&(i+=a-s)}return i}function lN(t,e,r,i){return i=t(i).toDate().valueOf(),i-=To(t,e,r,i),i}function To(t,e,r,i){let n=0;i=t(i).toDate().valueOf();for(let s=0;s<e.length;s++){const a=e[s].start,o=e[s].end;a>=r.start&&o<r.end&&i>=o&&(n+=o-a)}return n}function OQ(t,e,r){let i=0,n=0,s=e.start;for(let a=0;a<t.length;a++){const o=t[a].start,l=t[a].end;if(o>=e.start&&l<e.end){if(n+=o-s,s=l,n>=r)break;i+=l-o}}return i}function bi(t,e,r,i){const n=$o(e,t);return n.hidden==!0?r<0?i==!0?n.startDate-(n.endDate-e)-1:n.startDate-1:i==!0?n.endDate+(e-n.startDate)+1:n.endDate+1:e}function $o(t,e){for(let n=0;n<e.length;n++){var r=e[n].start,i=e[n].end;if(t>=r&&t<i)return{hidden:!0,startDate:r,endDate:i}}return{hidden:!1,startDate:r,endDate:i}}class _l extends li{constructor(e,r){var i,n,s,a,o,l,u;super();const c=Ot().hours(0).minutes(0).seconds(0).milliseconds(0),h=c.clone().add(-3,"days").valueOf(),d=c.clone().add(3,"days").valueOf();this.millisecondsPerPixelCache=void 0,r===void 0?(this.start=h,this.end=d):(this.start=r.start||h,this.end=r.end||d),this.rolling=!1,this.body=e,this.deltaDifference=0,this.scaleOffset=0,this.startToFront=!1,this.endToFront=!0,this.defaultOptions={rtl:!1,start:null,end:null,moment:Ot,direction:"horizontal",moveable:!0,zoomable:!0,min:null,max:null,zoomMin:10,zoomMax:1e3*60*60*24*365*1e4,rollingMode:{follow:!1,offset:.5}},this.options=S.extend({},this.defaultOptions),this.props={touch:{}},this.animationTimer=null,this.body.emitter.on("panstart",D(i=this._onDragStart).call(i,this)),this.body.emitter.on("panmove",D(n=this._onDrag).call(n,this)),this.body.emitter.on("panend",D(s=this._onDragEnd).call(s,this)),this.body.emitter.on("mousewheel",D(a=this._onMouseWheel).call(a,this)),this.body.emitter.on("touch",D(o=this._onTouch).call(o,this)),this.body.emitter.on("pinch",D(l=this._onPinch).call(l,this)),this.body.dom.rollingModeBtn.addEventListener("click",D(u=this.startRolling).call(u,this)),this.setOptions(r)}setOptions(e){if(e){const r=["animation","direction","min","max","zoomMin","zoomMax","moveable","zoomable","moment","activate","hiddenDates","zoomKey","zoomFriction","rtl","showCurrentTime","rollingMode","horizontalScroll","horizontalScrollKey","horizontalScrollInvert","verticalScroll"];S.selectiveExtend(r,this.options,e),e.rollingMode&&e.rollingMode.follow&&this.startRolling(),("start"in e||"end"in e)&&this.setRange(e.start,e.end)}}startRolling(){const e=this;function r(){e.stopRolling(),e.rolling=!0;let i=e.end-e.start;const n=S.convert(new Date,"Date").valueOf(),s=e.options.rollingMode&&e.options.rollingMode.offset||.5,a=n-i*s,o=n+i*(1-s),l={animation:!1};e.setRange(a,o,l),i=1/e.conversion(e.body.domProps.center.width).scale/10,i<30&&(i=30),i>1e3&&(i=1e3),e.body.dom.rollingModeBtn.style.visibility="hidden",e.currentTimeTimer=vt(r,i)}r()}stopRolling(){this.currentTimeTimer!==void 0&&(clearTimeout(this.currentTimeTimer),this.rolling=!1,this.body.dom.rollingModeBtn.style.visibility="visible")}setRange(e,r,i,n,s){i||(i={}),i.byUser!==!0&&(i.byUser=!1);const a=this,o=e!=null?S.convert(e,"Date").valueOf():null,l=r!=null?S.convert(r,"Date").valueOf():null;if(this._cancelAnimation(),this.millisecondsPerPixelCache=void 0,i.animation){const h=this.start,d=this.end,f=typeof i.animation=="object"&&"duration"in i.animation?i.animation.duration:500,p=typeof i.animation=="object"&&"easingFunction"in i.animation?i.animation.easingFunction:"easeInOutQuad",v=S.easingFunctions[p];if(!v){var u;throw new Error(Ge(u="Unknown easing function ".concat(qt(p),". Choose from: ")).call(u,ut(S.easingFunctions).join(", ")))}const m=It();let y=!1;const g=()=>{if(!a.props.touch.dragging){const _=It()-m,w=v(_/f),E=_>f,$=E||o===null?o:h+(o-h)*w,b=E||l===null?l:d+(l-d)*w;c=a._applyRange($,b),Eo(a.options.moment,a.body,a.options.hiddenDates),y=y||c;const T={start:new Date(a.start),end:new Date(a.end),byUser:i.byUser,event:i.event};if(s&&s(w,c,E),c&&a.body.emitter.emit("rangechange",T),E){if(y&&(a.body.emitter.emit("rangechanged",T),n))return n()}else a.animationTimer=vt(g,20)}};return g()}else{var c=this._applyRange(o,l);if(Eo(this.options.moment,this.body,this.options.hiddenDates),c){const h={start:new Date(this.start),end:new Date(this.end),byUser:i.byUser,event:i.event};if(this.body.emitter.emit("rangechange",h),clearTimeout(a.timeoutID),a.timeoutID=vt(()=>{a.body.emitter.emit("rangechanged",h)},200),n)return n()}}}getMillisecondsPerPixel(){return this.millisecondsPerPixelCache===void 0&&(this.millisecondsPerPixelCache=(this.end-this.start)/this.body.dom.center.clientWidth),this.millisecondsPerPixelCache}_cancelAnimation(){this.animationTimer&&(clearTimeout(this.animationTimer),this.animationTimer=null)}_applyRange(e,r){let i=e!=null?S.convert(e,"Date").valueOf():this.start,n=r!=null?S.convert(r,"Date").valueOf():this.end;const s=this.options.max!=null?S.convert(this.options.max,"Date").valueOf():null,a=this.options.min!=null?S.convert(this.options.min,"Date").valueOf():null;let o;if(isNaN(i)||i===null)throw new Error('Invalid start "'.concat(e,'"'));if(isNaN(n)||n===null)throw new Error('Invalid end "'.concat(r,'"'));if(n<i&&(n=i),a!==null&&i<a&&(o=a-i,i+=o,n+=o,s!=null&&n>s&&(n=s)),s!==null&&n>s&&(o=n-s,i-=o,n-=o,a!=null&&i<a&&(i=a)),this.options.zoomMin!==null){let u=Oo(this.options.zoomMin);u<0&&(u=0),n-i<u&&(this.end-this.start===u&&i>=this.start-.5&&n<=this.end?(i=this.start,n=this.end):(o=u-(n-i),i-=o/2,n+=o/2))}if(this.options.zoomMax!==null){let u=Oo(this.options.zoomMax);u<0&&(u=0),n-i>u&&(this.end-this.start===u&&i<this.start&&n>this.end?(i=this.start,n=this.end):(o=n-i-u,i+=o/2,n-=o/2))}const l=this.start!=i||this.end!=n;return!(i>=this.start&&i<=this.end||n>=this.start&&n<=this.end)&&!(this.start>=i&&this.start<=n||this.end>=i&&this.end<=n)&&this.body.emitter.emit("checkRangedItems"),this.start=i,this.end=n,l}getRange(){return{start:this.start,end:this.end}}conversion(e,r){return _l.conversion(this.start,this.end,e,r)}static conversion(e,r,i,n){return n===void 0&&(n=0),i!=0&&r-e!=0?{offset:e,scale:i/(r-e-n)}:{offset:0,scale:1}}_onDragStart(e){this.deltaDifference=0,this.previousDelta=0,this.options.moveable&&this._isInsideRange(e)&&this.props.touch.allowDragging&&(this.stopRolling(),this.props.touch.start=this.start,this.props.touch.end=this.end,this.props.touch.dragging=!0,this.body.dom.root&&(this.body.dom.root.style.cursor="move"))}_onDrag(e){if(!e||!this.props.touch.dragging||!this.options.moveable||!this.props.touch.allowDragging)return;const r=this.options.direction;uN(r);let i=r=="horizontal"?e.deltaX:e.deltaY;i-=this.deltaDifference;let n=this.props.touch.end-this.props.touch.start;const s=As(this.body.hiddenDates,this.start,this.end);n-=s;const a=r=="horizontal"?this.body.domProps.center.width:this.body.domProps.center.height;let o;this.options.rtl?o=i/a*n:o=-i/a*n;const l=this.props.touch.start+o,u=this.props.touch.end+o,c=bi(this.body.hiddenDates,l,this.previousDelta-i,!0),h=bi(this.body.hiddenDates,u,this.previousDelta-i,!0);if(c!=l||h!=u){this.deltaDifference+=i,this.props.touch.start=c,this.props.touch.end=h,this._onDrag(e);return}this.previousDelta=i,this._applyRange(l,u);const d=new Date(this.start),f=new Date(this.end);this.body.emitter.emit("rangechange",{start:d,end:f,byUser:!0,event:e}),this.body.emitter.emit("panmove")}_onDragEnd(e){this.props.touch.dragging&&this.options.moveable&&this.props.touch.allowDragging&&(this.props.touch.dragging=!1,this.body.dom.root&&(this.body.dom.root.style.cursor="auto"),this.body.emitter.emit("rangechanged",{start:new Date(this.start),end:new Date(this.end),byUser:!0,event:e}))}_onMouseWheel(e){let r=0;if(e.wheelDelta?r=e.wheelDelta/120:e.detail?r=-e.detail/3:e.deltaY&&(r=-e.deltaY/3),!(this.options.zoomKey&&!e[this.options.zoomKey]&&this.options.zoomable||!this.options.zoomable&&this.options.moveable)&&this.options.zoomable&&this.options.moveable&&this._isInsideRange(e)&&r){const i=this.options.zoomFriction||5;let n;r<0?n=1-r/i:n=1/(1+r/i);let s;if(this.rolling){const a=this.options.rollingMode&&this.options.rollingMode.offset||.5;s=this.start+(this.end-this.start)*a}else{const a=this.getPointer({x:e.clientX,y:e.clientY},this.body.dom.center);s=this._pointerToDate(a)}this.zoom(n,s,r,e),e.preventDefault()}}_onTouch(e){this.props.touch.start=this.start,this.props.touch.end=this.end,this.props.touch.allowDragging=!0,this.props.touch.center=null,this.props.touch.centerDate=null,this.scaleOffset=0,this.deltaDifference=0,S.preventDefault(e)}_onPinch(e){if(!(this.options.zoomable&&this.options.moveable))return;S.preventDefault(e),this.props.touch.allowDragging=!1,this.props.touch.center||(this.props.touch.center=this.getPointer(e.center,this.body.dom.center),this.props.touch.centerDate=this._pointerToDate(this.props.touch.center)),this.stopRolling();const r=1/(e.scale+this.scaleOffset),i=this.props.touch.centerDate,n=As(this.body.hiddenDates,this.start,this.end),s=To(this.options.moment,this.body.hiddenDates,this,i),a=n-s;let o=i-s+(this.props.touch.start-(i-s))*r,l=i+a+(this.props.touch.end-(i+a))*r;this.startToFront=1-r<=0,this.endToFront=r-1<=0;const u=bi(this.body.hiddenDates,o,1-r,!0),c=bi(this.body.hiddenDates,l,r-1,!0);(u!=o||c!=l)&&(this.props.touch.start=u,this.props.touch.end=c,this.scaleOffset=1-e.scale,o=u,l=c);const h={animation:!1,byUser:!0,event:e};this.setRange(o,l,h),this.startToFront=!1,this.endToFront=!0}_isInsideRange(e){const r=e.center?e.center.x:e.clientX,i=this.body.dom.centerContainer.getBoundingClientRect(),n=this.options.rtl?r-i.left:i.right-r,s=this.body.util.toTime(n);return s>=this.start&&s<=this.end}_pointerToDate(e){let r;const i=this.options.direction;if(uN(i),i=="horizontal")return this.body.util.toTime(e.x).valueOf();{const n=this.body.domProps.center.height;return r=this.conversion(n),e.y/r.scale+r.offset}}getPointer(e,r){const i=r.getBoundingClientRect();return this.options.rtl?{x:i.right-e.x,y:e.y-i.top}:{x:e.x-i.left,y:e.y-i.top}}zoom(e,r,i,n){r==null&&(r=(this.start+this.end)/2);const s=As(this.body.hiddenDates,this.start,this.end),a=To(this.options.moment,this.body.hiddenDates,this,r),o=s-a;let l=r-a+(this.start-(r-a))*e,u=r+o+(this.end-(r+o))*e;this.startToFront=!(i>0),this.endToFront=!(-i>0);const c=bi(this.body.hiddenDates,l,i,!0),h=bi(this.body.hiddenDates,u,-i,!0);(c!=l||h!=u)&&(l=c,u=h);const d={animation:!1,byUser:!0,event:n};this.setRange(l,u,d),this.startToFront=!1,this.endToFront=!0}move(e){const r=this.end-this.start,i=this.start+r*e,n=this.end+r*e;this.start=i,this.end=n}moveTo(e){const i=(this.start+this.end)/2-e,n=this.start-i,s=this.end-i,a={animation:!1,byUser:!0,event:null};this.setRange(n,s,a)}destroy(){this.stopRolling()}}function uN(t){if(t!="horizontal"&&t!="vertical")throw new TypeError('Unknown direction "'.concat(t,'". Choose "horizontal" or "vertical".'))}var cN={},hN;function EQ(){if(hN)return cN;hN=1;var t=Y(),e=oi().some,r=ss(),i=r("some");return t({target:"Array",proto:!0,forced:!i},{some:function(s){return e(this,s,arguments.length>1?arguments[1]:void 0)}}),cN}var ib,dN;function TQ(){if(dN)return ib;dN=1,EQ();var t=nt();return ib=t("Array","some"),ib}var nb,fN;function $Q(){if(fN)return nb;fN=1;var t=je(),e=TQ(),r=Array.prototype;return nb=function(i){var n=i.some;return i===r||t(r,i)&&n===r.some?e:n},nb}var sb,pN;function RQ(){if(pN)return sb;pN=1;var t=$Q();return sb=t,sb}var ab,vN;function xQ(){return vN||(vN=1,ab=RQ()),ab}var PQ=xQ(),yG=Q(PQ),ob,mN;function DQ(){if(mN)return ob;mN=1,nj();var t=Re();return ob=t.setInterval,ob}var lb,gN;function IQ(){return gN||(gN=1,lb=DQ()),lb}var CQ=IQ(),qQ=Q(CQ),Ts=null;function T_(t,e){var r=e||{preventDefault:!1};if(t.Manager){var i=t,n=function(u,c){var h=Object.create(r);return c&&i.assign(h,c),T_(new i(u,h),h)};return i.assign(n,i),n.Manager=function(u,c){var h=Object.create(r);return c&&i.assign(h,c),T_(new i.Manager(u,h),h)},n}var s=Object.create(t),a=t.element;a.hammer||(a.hammer=[]),a.hammer.push(s),t.on("hammer.input",function(u){(r.preventDefault===!0||r.preventDefault===u.pointerType)&&u.preventDefault(),u.isFirst&&(Ts=u.target)}),s._handlers={},s.on=function(u,c){return o(u).forEach(function(h){var d=s._handlers[h];d||(s._handlers[h]=d=[],t.on(h,l)),d.push(c)}),s},s.off=function(u,c){return o(u).forEach(function(h){var d=s._handlers[h];d&&(d=c?d.filter(function(f){return f!==c}):[],d.length>0?s._handlers[h]=d:(t.off(h,l),delete s._handlers[h]))}),s},s.emit=function(u,c){Ts=c.target,t.emit(u,c)},s.destroy=function(){var u=t.element.hammer,c=u.indexOf(s);c!==-1&&u.splice(c,1),u.length||delete t.element.hammer,s._handlers={},t.destroy()};function o(u){return u.match(/[^ ]+/g)}function l(u){if(u.type!=="hammer.input"){if(u.srcEvent._handled||(u.srcEvent._handled={}),u.srcEvent._handled[u.type])return;u.srcEvent._handled[u.type]=!0}var c=!1;u.stopPropagation=function(){c=!0};var h=u.srcEvent.stopPropagation.bind(u.srcEvent);typeof h=="function"&&(u.srcEvent.stopPropagation=function(){h(),u.stopPropagation()}),u.firstTarget=Ts;for(var d=Ts.isConnected?Ts:u.target;d&&!c;){var f=d.hammer;if(f){for(var p,v=0;v<f.length;v++)if(p=f[v]._handlers[u.type],p)for(var m=0;m<p.length&&!c;m++)p[m](u)}d=d.parentNode}}return s}function kQ(){const t=()=>{};return{on:t,off:t,destroy:t,emit:t,get(){return{set:t}}}}let $_;if(typeof window<"u"){const t=window.Hammer||K1;$_=T_(t,{preventDefault:"mouse"})}else $_=function(){return kQ()};var ft=$_;function bG(t,e){e.inputHandler=function(r){r.isFirst&&e(r)},t.on("hammer.input",e.inputHandler)}function AQ(t,e){return e.inputHandler=function(r){r.isFinal&&e(r)},t.on("hammer.input",e.inputHandler)}function MQ(t){const e="pan-y";return t.getTouchAction=function(){return[e]},t}class ji{constructor(e,r,i,n,s){this.moment=s&&s.moment||Ot,this.options=s||{},this.current=this.moment(),this._start=this.moment(),this._end=this.moment(),this.autoScale=!0,this.scale="day",this.step=1,this.setRange(e,r,i),this.switchedDay=!1,this.switchedMonth=!1,this.switchedYear=!1,fe(n)?this.hiddenDates=n:n!=null?this.hiddenDates=[n]:this.hiddenDates=[],this.format=ji.FORMAT}setMoment(e){this.moment=e,this.current=this.moment(this.current.valueOf()),this._start=this.moment(this._start.valueOf()),this._end=this.moment(this._end.valueOf())}setFormat(e){const r=S.deepExtend({},ji.FORMAT);this.format=S.deepExtend(r,e)}setRange(e,r,i){if(!(e instanceof Date)||!(r instanceof Date))throw"No legal start or end date in method setRange";this._start=e!=null?this.moment(e.valueOf()):It(),this._end=r!=null?this.moment(r.valueOf()):It(),this.autoScale&&this.setMinimumStep(i)}start(){this.current=this._start.clone(),this.roundToMinor()}roundToMinor(){switch(this.scale=="week"&&this.current.weekday(0),this.scale){case"year":this.current=this.current.year(this.step*Math.floor(this.current.year()/this.step)).month(0);case"month":this.current=this.current.date(1);case"week":case"day":case"weekday":this.current=this.current.hours(0);case"hour":this.current=this.current.minutes(0);case"minute":this.current=this.current.seconds(0);case"second":this.current=this.current.milliseconds(0)}if(this.step!=1){let e=this.current.clone();switch(this.scale){case"millisecond":this.current=this.current.subtract(this.current.milliseconds()%this.step,"milliseconds");break;case"second":this.current=this.current.subtract(this.current.seconds()%this.step,"seconds");break;case"minute":this.current=this.current.subtract(this.current.minutes()%this.step,"minutes");break;case"hour":this.current=this.current.subtract(this.current.hours()%this.step,"hours");break;case"weekday":case"day":this.current=this.current.subtract((this.current.date()-1)%this.step,"day");break;case"week":this.current=this.current.subtract(this.current.week()%this.step,"week");break;case"month":this.current=this.current.subtract(this.current.month()%this.step,"month");break;case"year":this.current=this.current.subtract(this.current.year()%this.step,"year");break}e.isSame(this.current)||(this.current=this.moment(bi(this.hiddenDates,this.current.valueOf(),-1,!0)))}}hasNext(){return this.current.valueOf()<=this._end.valueOf()}next(){const e=this.current.valueOf();switch(this.scale){case"millisecond":this.current=this.current.add(this.step,"millisecond");break;case"second":this.current=this.current.add(this.step,"second");break;case"minute":this.current=this.current.add(this.step,"minute");break;case"hour":this.current=this.current.add(this.step,"hour"),this.current.month()<6?this.current=this.current.subtract(this.current.hours()%this.step,"hour"):this.current.hours()%this.step!==0&&(this.current=this.current.add(this.step-this.current.hours()%this.step,"hour"));break;case"weekday":case"day":this.current=this.current.add(this.step,"day");break;case"week":if(this.current.weekday()!==0)this.current=this.current.weekday(0).add(this.step,"week");else if(this.options.showMajorLabels===!1)this.current=this.current.add(this.step,"week");else{const r=this.current.clone();r.add(1,"week"),r.isSame(this.current,"month")?this.current=this.current.add(this.step,"week"):this.current=this.current.add(this.step,"week").date(1)}break;case"month":this.current=this.current.add(this.step,"month");break;case"year":this.current=this.current.add(this.step,"year");break}if(this.step!=1)switch(this.scale){case"millisecond":this.current.milliseconds()>0&&this.current.milliseconds()<this.step&&(this.current=this.current.milliseconds(0));break;case"second":this.current.seconds()>0&&this.current.seconds()<this.step&&(this.current=this.current.seconds(0));break;case"minute":this.current.minutes()>0&&this.current.minutes()<this.step&&(this.current=this.current.minutes(0));break;case"hour":this.current.hours()>0&&this.current.hours()<this.step&&(this.current=this.current.hours(0));break;case"weekday":case"day":this.current.date()<this.step+1&&(this.current=this.current.date(1));break;case"week":this.current.week()<this.step&&(this.current=this.current.week(1));break;case"month":this.current.month()<this.step&&(this.current=this.current.month(0));break}this.current.valueOf()==e&&(this.current=this._end.clone()),this.switchedDay=!1,this.switchedMonth=!1,this.switchedYear=!1,wQ(this.moment,this,e)}getCurrent(){return this.current.clone()}setScale(e){e&&typeof e.scale=="string"&&(this.scale=e.scale,this.step=e.step>0?e.step:1,this.autoScale=!1)}setAutoScale(e){this.autoScale=e}setMinimumStep(e){if(e==null)return;const r=1e3*60*60*24*30*12,i=1e3*60*60*24*30,n=1e3*60*60*24,s=1e3*60*60,a=1e3*60,o=1e3,l=1;r*1e3>e&&(this.scale="year",this.step=1e3),r*500>e&&(this.scale="year",this.step=500),r*100>e&&(this.scale="year",this.step=100),r*50>e&&(this.scale="year",this.step=50),r*10>e&&(this.scale="year",this.step=10),r*5>e&&(this.scale="year",this.step=5),r>e&&(this.scale="year",this.step=1),i*3>e&&(this.scale="month",this.step=3),i>e&&(this.scale="month",this.step=1),n*7>e&&this.options.showWeekScale&&(this.scale="week",this.step=1),n*2>e&&(this.scale="day",this.step=2),n>e&&(this.scale="day",this.step=1),n/2>e&&(this.scale="weekday",this.step=1),s*4>e&&(this.scale="hour",this.step=4),s>e&&(this.scale="hour",this.step=1),a*15>e&&(this.scale="minute",this.step=15),a*10>e&&(this.scale="minute",this.step=10),a*5>e&&(this.scale="minute",this.step=5),a>e&&(this.scale="minute",this.step=1),o*15>e&&(this.scale="second",this.step=15),o*10>e&&(this.scale="second",this.step=10),o*5>e&&(this.scale="second",this.step=5),o>e&&(this.scale="second",this.step=1),l*200>e&&(this.scale="millisecond",this.step=200),l*100>e&&(this.scale="millisecond",this.step=100),l*50>e&&(this.scale="millisecond",this.step=50),l*10>e&&(this.scale="millisecond",this.step=10),l*5>e&&(this.scale="millisecond",this.step=5),l>e&&(this.scale="millisecond",this.step=1)}static snap(e,r,i){let n=Ot(e);if(r=="year"){const s=n.year()+Math.round(n.month()/12);n=n.year(Math.round(s/i)*i).month(0).date(0).hours(0).minutes(0).seconds(0).milliseconds(0)}else if(r=="month")n.date()>15?n=n.date(1).add(1,"month"):n=n.date(1),n=n.hours(0).minutes(0).seconds(0).milliseconds(0);else if(r=="week")n.weekday()>2?n=n.weekday(0).add(1,"week"):n=n.weekday(0),n=n.hours(0).minutes(0).seconds(0).milliseconds(0);else if(r=="day"){switch(i){case 5:case 2:n=n.hours(Math.round(n.hours()/24)*24);break;default:n=n.hours(Math.round(n.hours()/12)*12);break}n=n.minutes(0).seconds(0).milliseconds(0)}else if(r=="weekday"){switch(i){case 5:case 2:n=n.hours(Math.round(n.hours()/12)*12);break;default:n=n.hours(Math.round(n.hours()/6)*6);break}n=n.minutes(0).seconds(0).milliseconds(0)}else if(r=="hour")i===4?n=n.minutes(Math.round(n.minutes()/60)*60):n=n.minutes(Math.round(n.minutes()/30)*30),n=n.seconds(0).milliseconds(0);else if(r=="minute"){switch(i){case 15:case 10:n=n.minutes(Math.round(n.minutes()/5)*5).seconds(0);break;case 5:n=n.seconds(Math.round(n.seconds()/60)*60);break;default:n=n.seconds(Math.round(n.seconds()/30)*30);break}n=n.milliseconds(0)}else if(r=="second")switch(i){case 15:case 10:n=n.seconds(Math.round(n.seconds()/5)*5).milliseconds(0);break;case 5:n=n.milliseconds(Math.round(n.milliseconds()/1e3)*1e3);break;default:n=n.milliseconds(Math.round(n.milliseconds()/500)*500);break}else if(r=="millisecond"){const s=i>5?i/2:1;n=n.milliseconds(Math.round(n.milliseconds()/s)*s)}return n}isMajor(){if(this.switchedYear==!0)switch(this.scale){case"year":case"month":case"week":case"weekday":case"day":case"hour":case"minute":case"second":case"millisecond":return!0;default:return!1}else if(this.switchedMonth==!0)switch(this.scale){case"week":case"weekday":case"day":case"hour":case"minute":case"second":case"millisecond":return!0;default:return!1}else if(this.switchedDay==!0)switch(this.scale){case"millisecond":case"second":case"minute":case"hour":return!0;default:return!1}const e=this.moment(this.current);switch(this.scale){case"millisecond":return e.milliseconds()==0;case"second":return e.seconds()==0;case"minute":return e.hours()==0&&e.minutes()==0;case"hour":return e.hours()==0;case"weekday":case"day":return this.options.showWeekScale?e.isoWeekday()==1:e.date()==1;case"week":return e.date()==1;case"month":return e.month()==0;case"year":return!1;default:return!1}}getLabelMinor(e){if(e==null&&(e=this.current),e instanceof Date&&(e=this.moment(e)),typeof this.format.minorLabels=="function")return this.format.minorLabels(e,this.scale,this.step);const r=this.format.minorLabels[this.scale];switch(this.scale){case"week":if(e.date()===1&&e.weekday()!==0)return"";default:return r&&r.length>0?this.moment(e).format(r):""}}getLabelMajor(e){if(e==null&&(e=this.current),e instanceof Date&&(e=this.moment(e)),typeof this.format.majorLabels=="function")return this.format.majorLabels(e,this.scale,this.step);const r=this.format.majorLabels[this.scale];return r&&r.length>0?this.moment(e).format(r):""}getClassName(){var e;const r=this.moment,i=this.moment(this.current),n=i.locale?i.locale("en"):i.lang("en"),s=this.step,a=[];function o(d){return d/s%2==0?" vis-even":" vis-odd"}function l(d){return d.isSame(It(),"day")?" vis-today":d.isSame(r().add(1,"day"),"day")?" vis-tomorrow":d.isSame(r().add(-1,"day"),"day")?" vis-yesterday":""}function u(d){return d.isSame(It(),"week")?" vis-current-week":""}function c(d){return d.isSame(It(),"month")?" vis-current-month":""}function h(d){return d.isSame(It(),"year")?" vis-current-year":""}switch(this.scale){case"millisecond":a.push(l(n)),a.push(o(n.milliseconds()));break;case"second":a.push(l(n)),a.push(o(n.seconds()));break;case"minute":a.push(l(n)),a.push(o(n.minutes()));break;case"hour":a.push(Ge(e="vis-h".concat(n.hours())).call(e,this.step==4?"-h"+(n.hours()+4):"")),a.push(l(n)),a.push(o(n.hours()));break;case"weekday":a.push("vis-".concat(n.format("dddd").toLowerCase())),a.push(l(n)),a.push(u(n)),a.push(o(n.date()));break;case"day":a.push("vis-day".concat(n.date())),a.push("vis-".concat(n.format("MMMM").toLowerCase())),a.push(l(n)),a.push(c(n)),a.push(this.step<=2?l(n):""),a.push(this.step<=2?"vis-".concat(n.format("dddd").toLowerCase()):""),a.push(o(n.date()-1));break;case"week":a.push("vis-week".concat(n.format("w"))),a.push(u(n)),a.push(o(n.week()));break;case"month":a.push("vis-".concat(n.format("MMMM").toLowerCase())),a.push(c(n)),a.push(o(n.month()));break;case"year":a.push("vis-year".concat(n.year())),a.push(h(n)),a.push(o(n.year()));break}return ue(a).call(a,String).join(" ")}}ji.FORMAT={minorLabels:{millisecond:"SSS",second:"s",minute:"HH:mm",hour:"HH:mm",weekday:"ddd D",day:"D",week:"w",month:"MMM",year:"YYYY"},majorLabels:{millisecond:"HH:mm:ss",second:"D MMMM HH:mm",minute:"ddd D MMMM",hour:"ddd D MMMM",weekday:"MMMM YYYY",day:"MMMM YYYY",week:"MMMM YYYY",month:"YYYY",year:""}};class Ro extends li{constructor(e,r){super(),this.dom={foreground:null,lines:[],majorTexts:[],minorTexts:[],redundant:{lines:[],majorTexts:[],minorTexts:[]}},this.props={range:{start:0,end:0,minimumStep:0},lineTop:0},this.defaultOptions={orientation:{axis:"bottom"},showMinorLabels:!0,showMajorLabels:!0,showWeekScale:!1,maxMinorChars:7,format:S.extend({},ji.FORMAT),moment:Ot,timeAxis:null},this.options=S.extend({},this.defaultOptions),this.body=e,this._create(),this.setOptions(r)}setOptions(e){e&&(S.selectiveExtend(["showMinorLabels","showMajorLabels","showWeekScale","maxMinorChars","hiddenDates","timeAxis","moment","rtl"],this.options,e),S.selectiveDeepExtend(["format"],this.options,e),"orientation"in e&&(typeof e.orientation=="string"?this.options.orientation.axis=e.orientation:typeof e.orientation=="object"&&"axis"in e.orientation&&(this.options.orientation.axis=e.orientation.axis)),"locale"in e&&(typeof Ot.locale=="function"?Ot.locale(e.locale):Ot.lang(e.locale)))}_create(){this.dom.foreground=document.createElement("div"),this.dom.background=document.createElement("div"),this.dom.foreground.className="vis-time-axis vis-foreground",this.dom.background.className="vis-time-axis vis-background"}destroy(){this.dom.foreground.parentNode&&this.dom.foreground.parentNode.removeChild(this.dom.foreground),this.dom.background.parentNode&&this.dom.background.parentNode.removeChild(this.dom.background),this.body=null}redraw(){const e=this.props,r=this.dom.foreground,i=this.dom.background,n=this.options.orientation.axis=="top"?this.body.dom.top:this.body.dom.bottom,s=r.parentNode!==n;this._calculateCharSize();const a=this.options.showMinorLabels&&this.options.orientation.axis!=="none",o=this.options.showMajorLabels&&this.options.orientation.axis!=="none";e.minorLabelHeight=a?e.minorCharHeight:0,e.majorLabelHeight=o?e.majorCharHeight:0,e.height=e.minorLabelHeight+e.majorLabelHeight,e.width=r.offsetWidth,e.minorLineHeight=this.body.domProps.root.height-e.majorLabelHeight-(this.options.orientation.axis=="top"?this.body.domProps.bottom.height:this.body.domProps.top.height),e.minorLineWidth=1,e.majorLineHeight=e.minorLineHeight+e.majorLabelHeight,e.majorLineWidth=1;const l=r.nextSibling,u=i.nextSibling;return r.parentNode&&r.parentNode.removeChild(r),i.parentNode&&i.parentNode.removeChild(i),r.style.height="".concat(this.props.height,"px"),this._repaintLabels(),l?n.insertBefore(r,l):n.appendChild(r),u?this.body.dom.backgroundVertical.insertBefore(i,u):this.body.dom.backgroundVertical.appendChild(i),this._isResized()||s}_repaintLabels(){const e=this.options.orientation.axis,r=S.convert(this.body.range.start,"Number"),i=S.convert(this.body.range.end,"Number"),n=this.body.util.toTime((this.props.minorCharWidth||10)*this.options.maxMinorChars).valueOf();let s=n-To(this.options.moment,this.body.hiddenDates,this.body.range,n);s-=this.body.util.toTime(0).valueOf();const a=new ji(new Date(r),new Date(i),s,this.body.hiddenDates,this.options);a.setMoment(this.options.moment),this.options.format&&a.setFormat(this.options.format),this.options.timeAxis&&a.setScale(this.options.timeAxis),this.step=a;const o=this.dom;o.redundant.lines=o.lines,o.redundant.majorTexts=o.majorTexts,o.redundant.minorTexts=o.minorTexts,o.lines=[],o.majorTexts=[],o.minorTexts=[];let l,u,c,h,d,f,p=0,v,m,y,g=0;const O=1e3;let _;for(a.start(),u=a.getCurrent(),h=this.body.util.toScreen(u);a.hasNext()&&g<O;){if(g++,d=a.isMajor(),_=a.getClassName(),l=u,c=h,a.next(),u=a.getCurrent(),h=this.body.util.toScreen(u),v=p,p=h-c,a.scale==="week"?f=!0:f=p>=v*.4,this.options.showMinorLabels&&f){var w=this._repaintMinorText(c,a.getLabelMinor(l),e,_);w.style.width="".concat(p,"px")}d&&this.options.showMajorLabels?(c>0&&(y==null&&(y=c),w=this._repaintMajorText(c,a.getLabelMajor(l),e,_)),m=this._repaintMajorLine(c,p,e,_)):f?m=this._repaintMinorLine(c,p,e,_):m&&(m.style.width="".concat(Ct(m.style.width)+p,"px"))}if(g===O&&!yN&&(console.warn("Something is wrong with the Timeline scale. Limited drawing of grid lines to ".concat(O," lines.")),yN=!0),this.options.showMajorLabels){const E=this.body.util.toTime(0),$=a.getLabelMajor(E),b=$.length*(this.props.majorCharWidth||10)+10;(y==null||b<y)&&this._repaintMajorText(0,$,e,_)}M(S).call(S,this.dom.redundant,E=>{for(;E.length;){const $=E.pop();$&&$.parentNode&&$.parentNode.removeChild($)}})}_repaintMinorText(e,r,i,n){let s=this.dom.redundant.minorTexts.shift();if(!s){const o=document.createTextNode("");s=document.createElement("div"),s.appendChild(o),this.dom.foreground.appendChild(s)}this.dom.minorTexts.push(s),s.innerHTML=S.xss(r);let a=i=="top"?this.props.majorLabelHeight:0;return this._setXY(s,e,a),s.className="vis-text vis-minor ".concat(n),s}_repaintMajorText(e,r,i,n){let s=this.dom.redundant.majorTexts.shift();if(!s){const o=document.createElement("div");s=document.createElement("div"),s.appendChild(o),this.dom.foreground.appendChild(s)}s.childNodes[0].innerHTML=S.xss(r),s.className="vis-text vis-major ".concat(n);let a=i=="top"?0:this.props.minorLabelHeight;return this._setXY(s,e,a),this.dom.majorTexts.push(s),s}_setXY(e,r,i){var n;const s=this.options.rtl?r*-1:r;e.style.transform=Ge(n="translate(".concat(s,"px, ")).call(n,i,"px)")}_repaintMinorLine(e,r,i,n){var s;let a=this.dom.redundant.lines.shift();a||(a=document.createElement("div"),this.dom.background.appendChild(a)),this.dom.lines.push(a);const o=this.props;a.style.width="".concat(r,"px"),a.style.height="".concat(o.minorLineHeight,"px");let l=i=="top"?o.majorLabelHeight:this.body.domProps.top.height,u=e-o.minorLineWidth/2;return this._setXY(a,u,l),a.className=Ge(s="vis-grid ".concat(this.options.rtl?"vis-vertical-rtl":"vis-vertical"," vis-minor ")).call(s,n),a}_repaintMajorLine(e,r,i,n){var s;let a=this.dom.redundant.lines.shift();a||(a=document.createElement("div"),this.dom.background.appendChild(a)),this.dom.lines.push(a);const o=this.props;a.style.width="".concat(r,"px"),a.style.height="".concat(o.majorLineHeight,"px");let l=i=="top"?0:this.body.domProps.top.height,u=e-o.majorLineWidth/2;return this._setXY(a,u,l),a.className=Ge(s="vis-grid ".concat(this.options.rtl?"vis-vertical-rtl":"vis-vertical"," vis-major ")).call(s,n),a}_calculateCharSize(){this.dom.measureCharMinor||(this.dom.measureCharMinor=document.createElement("DIV"),this.dom.measureCharMinor.className="vis-text vis-minor vis-measure",this.dom.measureCharMinor.style.position="absolute",this.dom.measureCharMinor.appendChild(document.createTextNode("0")),this.dom.foreground.appendChild(this.dom.measureCharMinor)),this.props.minorCharHeight=this.dom.measureCharMinor.clientHeight,this.props.minorCharWidth=this.dom.measureCharMinor.clientWidth,this.dom.measureCharMajor||(this.dom.measureCharMajor=document.createElement("DIV"),this.dom.measureCharMajor.className="vis-text vis-major vis-measure",this.dom.measureCharMajor.style.position="absolute",this.dom.measureCharMajor.appendChild(document.createTextNode("0")),this.dom.foreground.appendChild(this.dom.measureCharMajor)),this.props.majorCharHeight=this.dom.measureCharMajor.clientHeight,this.props.majorCharWidth=this.dom.measureCharMajor.clientWidth}}var yN=!1;function NQ(t){var e=window,r={},i={keydown:{},keyup:{}},n={},s;for(s=97;s<=122;s++)n[String.fromCharCode(s)]={code:65+(s-97),shift:!1};for(s=65;s<=90;s++)n[String.fromCharCode(s)]={code:s,shift:!0};for(s=0;s<=9;s++)n[""+s]={code:48+s,shift:!1};for(s=1;s<=12;s++)n["F"+s]={code:111+s,shift:!1};for(s=0;s<=9;s++)n["num"+s]={code:96+s,shift:!1};n["num*"]={code:106,shift:!1},n["num+"]={code:107,shift:!1},n["num-"]={code:109,shift:!1},n["num/"]={code:111,shift:!1},n["num."]={code:110,shift:!1},n.left={code:37,shift:!1},n.up={code:38,shift:!1},n.right={code:39,shift:!1},n.down={code:40,shift:!1},n.space={code:32,shift:!1},n.enter={code:13,shift:!1},n.shift={code:16,shift:void 0},n.esc={code:27,shift:!1},n.backspace={code:8,shift:!1},n.tab={code:9,shift:!1},n.ctrl={code:17,shift:!1},n.alt={code:18,shift:!1},n.delete={code:46,shift:!1},n.pageup={code:33,shift:!1},n.pagedown={code:34,shift:!1},n["="]={code:187,shift:!1},n["-"]={code:189,shift:!1},n["]"]={code:221,shift:!1},n["["]={code:219,shift:!1};var a=function(u){l(u,"keydown")},o=function(u){l(u,"keyup")},l=function(u,c){if(i[c][u.keyCode]!==void 0)for(var h=i[c][u.keyCode],d=0;d<h.length;d++)(h[d].shift===void 0||h[d].shift==!0&&u.shiftKey==!0||h[d].shift==!1&&u.shiftKey==!1)&&h[d].fn(u)};return r.bind=function(u,c,h){if(h===void 0&&(h="keydown"),n[u]===void 0)throw new Error("unsupported key: "+u);i[h][n[u].code]===void 0&&(i[h][n[u].code]=[]),i[h][n[u].code].push({fn:c,shift:n[u].shift})},r.bindAll=function(u,c){c===void 0&&(c="keydown");for(var h in n)n.hasOwnProperty(h)&&r.bind(h,u,c)},r.getKey=function(u){for(var c in n)if(n.hasOwnProperty(c)){if(u.shiftKey==!0&&n[c].shift==!0&&u.keyCode==n[c].code)return c;if(u.shiftKey==!1&&n[c].shift==!1&&u.keyCode==n[c].code)return c;if(u.keyCode==n[c].code&&c=="shift")return c}return"unknown key, currently not supported"},r.unbind=function(u,c,h){if(h===void 0&&(h="keydown"),n[u]===void 0)throw new Error("unsupported key: "+u);if(c!==void 0){var d=[],f=i[h][n[u].code];if(f!==void 0)for(var p=0;p<f.length;p++)f[p].fn==c&&f[p].shift==n[u].shift||d.push(i[h][n[u].code][p]);i[h][n[u].code]=d}else i[h][n[u].code]=[]},r.reset=function(){i={keydown:{},keyup:{}}},r.destroy=function(){i={keydown:{},keyup:{}},e.removeEventListener("keydown",a,!0),e.removeEventListener("keyup",o,!0)},e.addEventListener("keydown",a,!0),e.addEventListener("keyup",o,!0),r}function Ht(t){var e,r;this.active=!1,this.dom={container:t},this.dom.overlay=document.createElement("div"),this.dom.overlay.className="vis-overlay",this.dom.container.appendChild(this.dom.overlay),this.hammer=ft(this.dom.overlay),this.hammer.on("tap",D(e=this._onTapOverlay).call(e,this));var i=this,n=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];M(n).call(n,function(s){i.hammer.on(s,function(a){a.stopPropagation()})}),document&&document.body&&(this.onClick=function(s){FQ(s.target,t)||i.deactivate()},document.body.addEventListener("click",this.onClick)),this.keycharm!==void 0&&this.keycharm.destroy(),this.keycharm=NQ(),this.escListener=D(r=this.deactivate).call(r,this)}G1(Ht.prototype);Ht.current=null;Ht.prototype.destroy=function(){this.deactivate(),this.dom.overlay.parentNode.removeChild(this.dom.overlay),this.onClick&&document.body.removeEventListener("click",this.onClick),this.keycharm!==void 0&&this.keycharm.destroy(),this.keycharm=null,this.hammer.destroy(),this.hammer=null};Ht.prototype.activate=function(){var t;Ht.current&&Ht.current.deactivate(),Ht.current=this,this.active=!0,this.dom.overlay.style.display="none",S.addClassName(this.dom.container,"vis-active"),this.emit("change"),this.emit("activate"),D(t=this.keycharm).call(t,"esc",this.escListener)};Ht.prototype.deactivate=function(){Ht.current===this&&(Ht.current=null),this.active=!1,this.dom.overlay.style.display="",S.removeClassName(this.dom.container,"vis-active"),this.keycharm.unbind("esc",this.escListener),this.emit("change"),this.emit("deactivate")};Ht.prototype._onTapOverlay=function(t){this.activate(),t.stopPropagation()};function FQ(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}const aw={current:"current",time:"time",deleteSelected:"Delete selected"},LQ=aw,jQ=aw,ow={current:"attuale",time:"tempo",deleteSelected:"Cancella la selezione"},GQ=ow,BQ=ow,lw={current:"huidige",time:"tijd",deleteSelected:"Selectie verwijderen"},WQ=lw,HQ=lw,uw={current:"Aktuelle",time:"Zeit",deleteSelected:"Lösche Auswahl"},YQ=uw,UQ=uw,La={current:"actuel",time:"heure",deleteSelected:"Effacer la selection"},VQ=La,zQ=La,KQ=La,XQ=La,_G={current:"actual",time:"hora",deleteSelected:"Eliminar selección"},ZQ=_G,wG={current:"поточний",time:"час",deleteSelected:"Видалити обране"},QQ=wG,SG={current:"текущее",time:"время",deleteSelected:"Удалить выбранное"},JQ=SG,OG={current:"aktualny",time:"czas",deleteSelected:"Usuń wybrane"},eJ=OG,cw={current:"atual",time:"data",deleteSelected:"Apagar selecionado"},tJ=cw,rJ=cw,EG={current:"güncel",time:"zaman",deleteSelected:"Seçileni sil"},iJ=EG,TG={current:"現在",time:"時刻",deleteSelected:"選択されたものを削除"},nJ=TG,$G={current:"nuvarande",time:"tid",deleteSelected:"Radera valda"},sJ=$G,wl={current:"nåværende",time:"tid",deleteSelected:"Slett valgte"},aJ=wl,oJ=wl,lJ=wl,RG={current:"einamas",time:"laikas",deleteSelected:"Pašalinti pasirinktą"},uJ=RG,An={en:aw,en_EN:LQ,en_US:jQ,it:ow,it_IT:GQ,it_CH:BQ,nl:lw,nl_NL:WQ,nl_BE:HQ,de:uw,de_DE:YQ,de_CH:UQ,fr:La,fr_FR:VQ,fr_CA:zQ,fr_BE:KQ,fr_CH:XQ,es:_G,es_ES:ZQ,uk:wG,uk_UA:QQ,ru:SG,ru_RU:JQ,pl:OG,pl_PL:eJ,pt:cw,pt_BR:tJ,pt_PT:rJ,tr:EG,tr_TR:iJ,ja:TG,ja_JP:nJ,lt:RG,lt_LT:uJ,sv:$G,sv_SE:sJ,nb:wl,nn:oJ,nb_NO:aJ,nn_NO:lJ};class hw extends li{constructor(e,r){var i;super(),this.body=e,this.defaultOptions={moment:Ot,locales:An,locale:"en",id:void 0,title:void 0},this.options=S.extend({},this.defaultOptions),this.setOptions(r),this.options.locales=S.extend({},An,this.options.locales);const n=this.defaultOptions.locales[this.defaultOptions.locale];M(i=ut(this.options.locales)).call(i,s=>{this.options.locales[s]=S.extend({},n,this.options.locales[s])}),r&&r.time!=null?this.customTime=r.time:this.customTime=new Date,this.eventParams={},this._create()}setOptions(e){e&&S.selectiveExtend(["moment","locale","locales","id","title","rtl","snap"],this.options,e)}_create(){var e,r,i;const n=document.createElement("div");n["custom-time"]=this,n.className="vis-custom-time ".concat(this.options.id||""),n.style.position="absolute",n.style.top="0px",n.style.height="100%",this.bar=n;const s=document.createElement("div");s.style.position="relative",s.style.top="0px",this.options.rtl?s.style.right="-10px":s.style.left="-10px",s.style.height="100%",s.style.width="20px";function a(o){this.body.range._onMouseWheel(o)}s.addEventListener?(s.addEventListener("mousewheel",D(a).call(a,this),!1),s.addEventListener("DOMMouseScroll",D(a).call(a,this),!1)):s.attachEvent("onmousewheel",D(a).call(a,this)),n.appendChild(s),this.hammer=new ft(s),this.hammer.on("panstart",D(e=this._onDragStart).call(e,this)),this.hammer.on("panmove",D(r=this._onDrag).call(r,this)),this.hammer.on("panend",D(i=this._onDragEnd).call(i,this)),this.hammer.get("pan").set({threshold:5,direction:ft.DIRECTION_ALL}),this.hammer.get("press").set({time:1e4})}destroy(){this.hide(),this.hammer.destroy(),this.hammer=null,this.body=null}redraw(){const e=this.body.dom.backgroundVertical;this.bar.parentNode!=e&&(this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),e.appendChild(this.bar));const r=this.body.util.toScreen(this.customTime);let i=this.options.locales[this.options.locale];i||(this.warned||(console.warn("WARNING: options.locales['".concat(this.options.locale,"'] not found. See https://visjs.github.io/vis-timeline/docs/timeline/#Localization")),this.warned=!0),i=this.options.locales.en);let n=this.options.title;if(n===void 0){var s;n=Ge(s="".concat(i.time,": ")).call(s,this.options.moment(this.customTime).format("dddd, MMMM Do YYYY, H:mm:ss")),n=n.charAt(0).toUpperCase()+n.substring(1)}else typeof n=="function"&&(n=n.call(this,this.customTime));return this.options.rtl?this.bar.style.right="".concat(r,"px"):this.bar.style.left="".concat(r,"px"),this.bar.title=n,!1}hide(){this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar)}setCustomTime(e){this.customTime=S.convert(e,"Date"),this.redraw()}getCustomTime(){return new Date(this.customTime.valueOf())}setCustomMarker(e,r){if(this.marker&&this.bar.removeChild(this.marker),this.marker=document.createElement("div"),this.marker.className="vis-custom-time-marker",this.marker.innerHTML=S.xss(e),this.marker.style.position="absolute",r){var i;this.marker.setAttribute("contenteditable","true"),this.marker.addEventListener("pointerdown",()=>{this.marker.focus()}),this.marker.addEventListener("input",D(i=this._onMarkerChange).call(i,this)),this.marker.title=e,this.marker.addEventListener("blur",n=>{this.title!=n.target.innerHTML&&(this._onMarkerChanged(n),this.title=n.target.innerHTML)})}this.bar.appendChild(this.marker)}setCustomTitle(e){this.options.title=e}_onDragStart(e){this.eventParams.dragging=!0,this.eventParams.customTime=this.customTime,e.stopPropagation()}_onDrag(e){if(!this.eventParams.dragging)return;let r=this.options.rtl?-1*e.deltaX:e.deltaX;const i=this.body.util.toScreen(this.eventParams.customTime)+r,n=this.body.util.toTime(i),s=this.body.util.getScale(),a=this.body.util.getStep(),o=this.options.snap,l=o?o(n,s,a):n;this.setCustomTime(l),this.body.emitter.emit("timechange",{id:this.options.id,time:new Date(this.customTime.valueOf()),event:e}),e.stopPropagation()}_onDragEnd(e){this.eventParams.dragging&&(this.body.emitter.emit("timechanged",{id:this.options.id,time:new Date(this.customTime.valueOf()),event:e}),e.stopPropagation())}_onMarkerChange(e){this.body.emitter.emit("markerchange",{id:this.options.id,title:e.target.innerHTML,event:e}),e.stopPropagation()}_onMarkerChanged(e){this.body.emitter.emit("markerchanged",{id:this.options.id,title:e.target.innerHTML,event:e}),e.stopPropagation()}static customTimeFromTarget(e){let r=e.target;for(;r;){if(Object.prototype.hasOwnProperty.call(r,"custom-time"))return r["custom-time"];r=r.parentNode}return null}}class Tn{_create(e){var r,i,n;this.dom={},this.dom.container=e,this.dom.container.style.position="relative",this.dom.root=document.createElement("div"),this.dom.background=document.createElement("div"),this.dom.backgroundVertical=document.createElement("div"),this.dom.backgroundHorizontal=document.createElement("div"),this.dom.centerContainer=document.createElement("div"),this.dom.leftContainer=document.createElement("div"),this.dom.rightContainer=document.createElement("div"),this.dom.center=document.createElement("div"),this.dom.left=document.createElement("div"),this.dom.right=document.createElement("div"),this.dom.top=document.createElement("div"),this.dom.bottom=document.createElement("div"),this.dom.shadowTop=document.createElement("div"),this.dom.shadowBottom=document.createElement("div"),this.dom.shadowTopLeft=document.createElement("div"),this.dom.shadowBottomLeft=document.createElement("div"),this.dom.shadowTopRight=document.createElement("div"),this.dom.shadowBottomRight=document.createElement("div"),this.dom.rollingModeBtn=document.createElement("div"),this.dom.loadingScreen=document.createElement("div"),this.dom.root.className="vis-timeline",this.dom.background.className="vis-panel vis-background",this.dom.backgroundVertical.className="vis-panel vis-background vis-vertical",this.dom.backgroundHorizontal.className="vis-panel vis-background vis-horizontal",this.dom.centerContainer.className="vis-panel vis-center",this.dom.leftContainer.className="vis-panel vis-left",this.dom.rightContainer.className="vis-panel vis-right",this.dom.top.className="vis-panel vis-top",this.dom.bottom.className="vis-panel vis-bottom",this.dom.left.className="vis-content",this.dom.center.className="vis-content",this.dom.right.className="vis-content",this.dom.shadowTop.className="vis-shadow vis-top",this.dom.shadowBottom.className="vis-shadow vis-bottom",this.dom.shadowTopLeft.className="vis-shadow vis-top",this.dom.shadowBottomLeft.className="vis-shadow vis-bottom",this.dom.shadowTopRight.className="vis-shadow vis-top",this.dom.shadowBottomRight.className="vis-shadow vis-bottom",this.dom.rollingModeBtn.className="vis-rolling-mode-btn",this.dom.loadingScreen.className="vis-loading-screen",this.dom.root.appendChild(this.dom.background),this.dom.root.appendChild(this.dom.backgroundVertical),this.dom.root.appendChild(this.dom.backgroundHorizontal),this.dom.root.appendChild(this.dom.centerContainer),this.dom.root.appendChild(this.dom.leftContainer),this.dom.root.appendChild(this.dom.rightContainer),this.dom.root.appendChild(this.dom.top),this.dom.root.appendChild(this.dom.bottom),this.dom.root.appendChild(this.dom.rollingModeBtn),this.dom.centerContainer.appendChild(this.dom.center),this.dom.leftContainer.appendChild(this.dom.left),this.dom.rightContainer.appendChild(this.dom.right),this.dom.centerContainer.appendChild(this.dom.shadowTop),this.dom.centerContainer.appendChild(this.dom.shadowBottom),this.dom.leftContainer.appendChild(this.dom.shadowTopLeft),this.dom.leftContainer.appendChild(this.dom.shadowBottomLeft),this.dom.rightContainer.appendChild(this.dom.shadowTopRight),this.dom.rightContainer.appendChild(this.dom.shadowBottomRight),this.props={root:{},background:{},centerContainer:{},leftContainer:{},rightContainer:{},center:{},left:{},right:{},top:{},bottom:{},border:{},scrollTop:0,scrollTopMin:0},this.on("rangechange",()=>{this.initialDrawDone===!0&&this._redraw()}),this.on("rangechanged",()=>{this.initialRangeChangeDone||(this.initialRangeChangeDone=!0)}),this.on("touch",D(r=this._onTouch).call(r,this)),this.on("panmove",D(i=this._onDrag).call(i,this));const s=this;this._origRedraw=D(n=this._redraw).call(n,this),this._redraw=S.throttle(this._origRedraw),this.on("_change",p=>{s.itemSet&&s.itemSet.initialItemSetDrawn&&p&&p.queue==!0?s._redraw():s._origRedraw()}),this.hammer=new ft(this.dom.root);const a=this.hammer.get("pinch").set({enable:!0});a&&MQ(a),this.hammer.get("pan").set({threshold:5,direction:ft.DIRECTION_ALL}),this.timelineListeners={};const o=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];M(o).call(o,p=>{const v=m=>{s.isActive()&&s.emit(p,m)};s.hammer.on(p,v),s.timelineListeners[p]=v}),bG(this.hammer,p=>{s.emit("touch",p)}),AQ(this.hammer,p=>{s.emit("release",p)});function l(p){if(!this.isActive())return;if(this.emit("mousewheel",p),this.options.preferZoom){if(!this.options.zoomKey||p[this.options.zoomKey])return}else if(this.options.zoomKey&&p[this.options.zoomKey])return;if(!this.options.verticalScroll&&!this.options.horizontalScroll)return;let v=0,m=0;"detail"in p&&(m=p.detail*-1),"wheelDelta"in p&&(m=p.wheelDelta),"wheelDeltaY"in p&&(m=p.wheelDeltaY),"wheelDeltaX"in p&&(v=p.wheelDeltaX*-1),"axis"in p&&p.axis===p.HORIZONTAL_AXIS&&(v=m*-1,m=0),"deltaY"in p&&(m=p.deltaY*-1),"deltaX"in p&&(v=p.deltaX);var y=40,g=800;p.deltaMode&&(p.deltaMode===1?(v*=y,m*=y):(v*=y,m*=g));const O=this.options.verticalScroll,_=Math.abs(m)>=Math.abs(v),w=this.options.horizontalScroll&&this.options.horizontalScrollKey&&p[this.options.horizontalScrollKey];if(O&&_&&!w){const E=this.props.scrollTop,$=E+m;this._setScrollTop($)!==E&&(this._redraw(),this.emit("scroll",p),p.preventDefault());return}if(this.options.horizontalScroll){this.range.stopRolling();let $=(_?m:v)/120*(this.range.end-this.range.start)/20;this.options.horizontalScrollInvert&&_&&($=-$);const b=this.range.start+$,T=this.range.end+$,R={animation:!1,byUser:!0,event:p};this.range.setRange(b,T,R),p.preventDefault();return}}const u="onwheel"in document.createElement("div")?"wheel":document.onmousewheel!==void 0?"mousewheel":this.dom.centerContainer.addEventListener?"DOMMouseScroll":"onmousewheel";this.dom.top.addEventListener,this.dom.bottom.addEventListener,this.dom.centerContainer.addEventListener(u,D(l).call(l,this),!1),this.dom.top.addEventListener(u,D(l).call(l,this),!1),this.dom.bottom.addEventListener(u,D(l).call(l,this),!1);function c(p){if(s.options.verticalScroll&&(p.preventDefault(),s.isActive())){const v=-p.target.scrollTop;s._setScrollTop(v),s._redraw(),s.emit("scrollSide",p)}}this.dom.left.parentNode.addEventListener("scroll",D(c).call(c,this)),this.dom.right.parentNode.addEventListener("scroll",D(c).call(c,this));let h=!1;function d(p){var v;if(p.preventDefault&&(s.emit("dragover",s.getEventProperties(p)),p.preventDefault()),be(v=p.target.className).call(v,"timeline")>-1&&!h)return p.dataTransfer.dropEffect="move",h=!0,!1}function f(p){p.preventDefault&&p.preventDefault(),p.stopPropagation&&p.stopPropagation();try{var v=JSON.parse(p.dataTransfer.getData("text"));if(!v||!v.content)return}catch{return!1}return h=!1,p.center={x:p.clientX,y:p.clientY},v.target!=="item"?s.itemSet._onAddItem(p):s.itemSet._onDropObjectOnItem(p),s.emit("drop",s.getEventProperties(p)),!1}if(this.dom.center.addEventListener("dragover",D(d).call(d,this),!1),this.dom.center.addEventListener("drop",D(f).call(f,this),!1),this.customTimes=[],this.touch={},this.redrawCount=0,this.initialDrawDone=!1,this.initialRangeChangeDone=!1,!e)throw new Error("No container provided");e.appendChild(this.dom.root),e.appendChild(this.dom.loadingScreen)}setOptions(e){var r;if(e){const a=["width","height","minHeight","maxHeight","autoResize","start","end","clickToUse","dataAttributes","hiddenDates","locale","locales","moment","preferZoom","rtl","zoomKey","horizontalScroll","horizontalScrollKey","horizontalScrollInvert","verticalScroll","longSelectPressTime","snap"];if(S.selectiveExtend(a,this.options,e),this.dom.rollingModeBtn.style.visibility="hidden",this.options.rtl&&(this.dom.container.style.direction="rtl",this.dom.backgroundVertical.className="vis-panel vis-background vis-vertical-rtl"),this.options.verticalScroll&&(this.options.rtl?this.dom.rightContainer.className="vis-panel vis-right vis-vertical-scroll":this.dom.leftContainer.className="vis-panel vis-left vis-vertical-scroll"),typeof this.options.orientation!="object"&&(this.options.orientation={item:void 0,axis:void 0}),"orientation"in e&&(typeof e.orientation=="string"?this.options.orientation={item:e.orientation,axis:e.orientation}:typeof e.orientation=="object"&&("item"in e.orientation&&(this.options.orientation.item=e.orientation.item),"axis"in e.orientation&&(this.options.orientation.axis=e.orientation.axis))),this.options.orientation.axis==="both"){if(!this.timeAxis2){const o=this.timeAxis2=new Ro(this.body,this.options);o.setOptions=l=>{const u=l?S.extend({},l):{};u.orientation="top",Ro.prototype.setOptions.call(o,u)},this.components.push(o)}}else if(this.timeAxis2){var i;const o=be(i=this.components).call(i,this.timeAxis2);if(o!==-1){var n;Et(n=this.components).call(n,o,1)}this.timeAxis2.destroy(),this.timeAxis2=null}typeof e.drawPoints=="function"&&(e.drawPoints={onRender:e.drawPoints}),"hiddenDates"in this.options&&sw(this.options.moment,this.body,this.options.hiddenDates),"clickToUse"in e&&(e.clickToUse?this.activator||(this.activator=new Ht(this.dom.root)):this.activator&&(this.activator.destroy(),delete this.activator)),this._initAutoResize()}if(M(r=this.components).call(r,a=>a.setOptions(e)),"configure"in e){var s;this.configurator||(this.configurator=this._createConfigurator()),this.configurator.setOptions(e.configure);const a=S.deepExtend({},this.options);M(s=this.components).call(s,o=>{S.deepExtend(a,o.options)}),this.configurator.setModuleOptions({global:a})}this._redraw()}isActive(){return!this.activator||this.activator.active}destroy(){var e;this.setItems(null),this.setGroups(null),this.off(),this._stopAutoResize(),this.dom.root.parentNode&&this.dom.root.parentNode.removeChild(this.dom.root),this.dom=null,this.activator&&(this.activator.destroy(),delete this.activator);for(const r in this.timelineListeners)Object.prototype.hasOwnProperty.call(this.timelineListeners,r)&&delete this.timelineListeners[r];this.timelineListeners=null,this.hammer&&this.hammer.destroy(),this.hammer=null,M(e=this.components).call(e,r=>r.destroy()),this.body=null}setCustomTime(e,r){var i;const n=ue(i=this.customTimes).call(i,s=>r===s.options.id);if(n.length===0)throw new Error("No custom time bar found with id ".concat(qt(r)));n.length>0&&n[0].setCustomTime(e)}getCustomTime(e){var r;const i=ue(r=this.customTimes).call(r,n=>n.options.id===e);if(i.length===0)throw new Error("No custom time bar found with id ".concat(qt(e)));return i[0].getCustomTime()}setCustomTimeMarker(e,r,i){var n;const s=ue(n=this.customTimes).call(n,a=>a.options.id===r);if(s.length===0)throw new Error("No custom time bar found with id ".concat(qt(r)));s.length>0&&s[0].setCustomMarker(e,i)}setCustomTimeTitle(e,r){var i;const n=ue(i=this.customTimes).call(i,s=>s.options.id===r);if(n.length===0)throw new Error("No custom time bar found with id ".concat(qt(r)));if(n.length>0)return n[0].setCustomTitle(e)}getEventProperties(e){return{event:e}}addCustomTime(e,r){var i;const n=e!==void 0?S.convert(e,"Date"):new Date;if(yG(i=this.customTimes).call(i,o=>o.options.id===r))throw new Error("A custom time with id ".concat(qt(r)," already exists"));const a=new hw(this.body,S.extend({},this.options,{time:n,id:r,snap:this.itemSet?this.itemSet.options.snap:this.options.snap}));return this.customTimes.push(a),this.components.push(a),this._redraw(),r}removeCustomTime(e){var r;const i=ue(r=this.customTimes).call(r,n=>n.options.id===e);if(i.length===0)throw new Error("No custom time bar found with id ".concat(qt(e)));M(i).call(i,n=>{var s,a,o,l;Et(s=this.customTimes).call(s,be(a=this.customTimes).call(a,n),1),Et(o=this.components).call(o,be(l=this.components).call(l,n),1),n.destroy()})}getVisibleItems(){return this.itemSet&&this.itemSet.getVisibleItems()||[]}getItemsAtCurrentTime(e){return this.time=e,this.itemSet&&this.itemSet.getItemsAtCurrentTime(this.time)||[]}getVisibleGroups(){return this.itemSet&&this.itemSet.getVisibleGroups()||[]}fit(e,r){const i=this.getDataRange();if(i.min===null&&i.max===null)return;const n=i.max-i.min,s=new Date(i.min.valueOf()-n*.01),a=new Date(i.max.valueOf()+n*.01),o=e&&e.animation!==void 0?e.animation:!0;this.range.setRange(s,a,{animation:o},r)}getDataRange(){throw new Error("Cannot invoke abstract method getDataRange")}setWindow(e,r,i,n){typeof arguments[2]=="function"&&(n=arguments[2],i={});let s,a;arguments.length==1?(a=arguments[0],s=a.animation!==void 0?a.animation:!0,this.range.setRange(a.start,a.end,{animation:s})):arguments.length==2&&typeof arguments[1]=="function"?(a=arguments[0],n=arguments[1],s=a.animation!==void 0?a.animation:!0,this.range.setRange(a.start,a.end,{animation:s},n)):(s=i&&i.animation!==void 0?i.animation:!0,this.range.setRange(e,r,{animation:s},n))}moveTo(e,r,i){typeof arguments[1]=="function"&&(i=arguments[1],r={});const n=this.range.end-this.range.start,s=S.convert(e,"Date").valueOf(),a=s-n/2,o=s+n/2,l=r&&r.animation!==void 0?r.animation:!0;this.range.setRange(a,o,{animation:l},i)}getWindow(){const e=this.range.getRange();return{start:new Date(e.start),end:new Date(e.end)}}zoomIn(e,r,i){if(!e||e<0||e>1)return;typeof arguments[1]=="function"&&(i=arguments[1],r={});const n=this.getWindow(),s=n.start.valueOf(),a=n.end.valueOf(),o=a-s,l=o/(1+e),u=(o-l)/2,c=s+u,h=a-u;this.setWindow(c,h,r,i)}zoomOut(e,r,i){if(!e||e<0||e>1)return;typeof arguments[1]=="function"&&(i=arguments[1],r={});const n=this.getWindow(),s=n.start.valueOf(),a=n.end.valueOf(),o=a-s,l=s-o*e/2,u=a+o*e/2;this.setWindow(l,u,r,i)}redraw(){this._redraw()}_redraw(){var e;this.redrawCount++;const r=this.dom;if(!r||!r.container||r.root.offsetWidth==0)return;let i=!1;const n=this.options,s=this.props;Eo(this.options.moment,this.body,this.options.hiddenDates),n.orientation=="top"?(S.addClassName(r.root,"vis-top"),S.removeClassName(r.root,"vis-bottom")):(S.removeClassName(r.root,"vis-top"),S.addClassName(r.root,"vis-bottom")),n.rtl?(S.addClassName(r.root,"vis-rtl"),S.removeClassName(r.root,"vis-ltr")):(S.addClassName(r.root,"vis-ltr"),S.removeClassName(r.root,"vis-rtl")),r.root.style.maxHeight=S.option.asSize(n.maxHeight,""),r.root.style.minHeight=S.option.asSize(n.minHeight,""),r.root.style.width=S.option.asSize(n.width,"");const a=r.root.offsetWidth;s.border.left=1,s.border.right=1,s.border.top=1,s.border.bottom=1,s.center.height=r.center.offsetHeight,s.left.height=r.left.offsetHeight,s.right.height=r.right.offsetHeight,s.top.height=r.top.clientHeight||-s.border.top,s.bottom.height=Math.round(r.bottom.getBoundingClientRect().height)||r.bottom.clientHeight||-s.border.bottom;const o=Math.max(s.left.height,s.center.height,s.right.height),l=s.top.height+o+s.bottom.height+s.border.top+s.border.bottom;r.root.style.height=S.option.asSize(n.height,"".concat(l,"px")),s.root.height=r.root.offsetHeight,s.background.height=s.root.height;const u=s.root.height-s.top.height-s.bottom.height;s.centerContainer.height=u,s.leftContainer.height=u,s.rightContainer.height=s.leftContainer.height,s.root.width=a,s.background.width=s.root.width,this.initialDrawDone||(s.scrollbarWidth=S.getScrollBarWidth());const c=r.leftContainer.clientWidth,h=r.rightContainer.clientWidth;n.verticalScroll?n.rtl?(s.left.width=c||-s.border.left,s.right.width=h+s.scrollbarWidth||-s.border.right):(s.left.width=c+s.scrollbarWidth||-s.border.left,s.right.width=h||-s.border.right):(s.left.width=c||-s.border.left,s.right.width=h||-s.border.right),this._setDOM();let d=this._updateScrollTop();n.orientation.item!="top"&&(d+=Math.max(s.centerContainer.height-s.center.height-s.border.top-s.border.bottom,0)),r.center.style.transform="translateY(".concat(d,"px)");const f=s.scrollTop==0?"hidden":"",p=s.scrollTop==s.scrollTopMin?"hidden":"";r.shadowTop.style.visibility=f,r.shadowBottom.style.visibility=p,r.shadowTopLeft.style.visibility=f,r.shadowBottomLeft.style.visibility=p,r.shadowTopRight.style.visibility=f,r.shadowBottomRight.style.visibility=p,n.verticalScroll&&(r.rightContainer.className="vis-panel vis-right vis-vertical-scroll",r.leftContainer.className="vis-panel vis-left vis-vertical-scroll",r.shadowTopRight.style.visibility="hidden",r.shadowBottomRight.style.visibility="hidden",r.shadowTopLeft.style.visibility="hidden",r.shadowBottomLeft.style.visibility="hidden",r.left.style.top="0px",r.right.style.top="0px"),(!n.verticalScroll||s.center.height<s.centerContainer.height)&&(r.left.style.top="".concat(d,"px"),r.right.style.top="".concat(d,"px"),r.rightContainer.className=r.rightContainer.className.replace(new RegExp("(?:^|\\s)vis-vertical-scroll(?:\\s|$)")," "),r.leftContainer.className=r.leftContainer.className.replace(new RegExp("(?:^|\\s)vis-vertical-scroll(?:\\s|$)")," "),s.left.width=c||-s.border.left,s.right.width=h||-s.border.right,this._setDOM());const v=s.center.height>s.centerContainer.height;this.hammer.get("pan").set({direction:v?ft.DIRECTION_ALL:ft.DIRECTION_HORIZONTAL}),this.hammer.get("press").set({time:this.options.longSelectPressTime}),M(e=this.components).call(e,y=>{i=y.redraw()||i});const m=5;if(i)if(this.redrawCount<m){this.body.emitter.emit("_change");return}else console.log("WARNING: infinite loop in redraw?");else this.redrawCount=0;this.body.emitter.emit("changed")}_setDOM(){const e=this.props,r=this.dom;e.leftContainer.width=e.left.width,e.rightContainer.width=e.right.width;const i=e.root.width-e.left.width-e.right.width;e.center.width=i,e.centerContainer.width=i,e.top.width=i,e.bottom.width=i,r.background.style.height="".concat(e.background.height,"px"),r.backgroundVertical.style.height="".concat(e.background.height,"px"),r.backgroundHorizontal.style.height="".concat(e.centerContainer.height,"px"),r.centerContainer.style.height="".concat(e.centerContainer.height,"px"),r.leftContainer.style.height="".concat(e.leftContainer.height,"px"),r.rightContainer.style.height="".concat(e.rightContainer.height,"px"),r.background.style.width="".concat(e.background.width,"px"),r.backgroundVertical.style.width="".concat(e.centerContainer.width,"px"),r.backgroundHorizontal.style.width="".concat(e.background.width,"px"),r.centerContainer.style.width="".concat(e.center.width,"px"),r.top.style.width="".concat(e.top.width,"px"),r.bottom.style.width="".concat(e.bottom.width,"px"),r.background.style.left="0",r.background.style.top="0",r.backgroundVertical.style.left="".concat(e.left.width+e.border.left,"px"),r.backgroundVertical.style.top="0",r.backgroundHorizontal.style.left="0",r.backgroundHorizontal.style.top="".concat(e.top.height,"px"),r.centerContainer.style.left="".concat(e.left.width,"px"),r.centerContainer.style.top="".concat(e.top.height,"px"),r.leftContainer.style.left="0",r.leftContainer.style.top="".concat(e.top.height,"px"),r.rightContainer.style.left="".concat(e.left.width+e.center.width,"px"),r.rightContainer.style.top="".concat(e.top.height,"px"),r.top.style.left="".concat(e.left.width,"px"),r.top.style.top="0",r.bottom.style.left="".concat(e.left.width,"px"),r.bottom.style.top="".concat(e.top.height+e.centerContainer.height,"px"),r.center.style.left="0",r.left.style.left="0",r.right.style.left="0"}setCurrentTime(e){if(!this.currentTime)throw new Error("Option showCurrentTime must be true");this.currentTime.setCurrentTime(e)}getCurrentTime(){if(!this.currentTime)throw new Error("Option showCurrentTime must be true");return this.currentTime.getCurrentTime()}_toTime(e){return oN(this,e,this.props.center.width)}_toGlobalTime(e){return oN(this,e,this.props.root.width)}_toScreen(e){return aN(this,e,this.props.center.width)}_toGlobalScreen(e){return aN(this,e,this.props.root.width)}_initAutoResize(){this.options.autoResize==!0?this._startAutoResize():this._stopAutoResize()}_startAutoResize(){const e=this;this._stopAutoResize(),this._onResize=()=>{if(e.options.autoResize!=!0){e._stopAutoResize();return}if(e.dom.root){const r=e.dom.root.offsetHeight,i=e.dom.root.offsetWidth;(i!=e.props.lastWidth||r!=e.props.lastHeight)&&(e.props.lastWidth=i,e.props.lastHeight=r,e.props.scrollbarWidth=S.getScrollBarWidth(),e.body.emitter.emit("_change"))}},window.addEventListener("resize",this._onResize),e.dom.root&&(e.props.lastWidth=e.dom.root.offsetWidth,e.props.lastHeight=e.dom.root.offsetHeight),this.watchTimer=qQ(this._onResize,1e3)}_stopAutoResize(){this.watchTimer&&(clearInterval(this.watchTimer),this.watchTimer=void 0),this._onResize&&(window.removeEventListener("resize",this._onResize),this._onResize=null)}_onTouch(){this.touch.allowDragging=!0,this.touch.initialScrollTop=this.props.scrollTop}_onPinch(){this.touch.allowDragging=!1}_onDrag(e){if(!e||!this.touch.allowDragging)return;const r=e.deltaY,i=this._getScrollTop(),n=this._setScrollTop(this.touch.initialScrollTop+r);this.options.verticalScroll&&(this.dom.left.parentNode.scrollTop=-this.props.scrollTop,this.dom.right.parentNode.scrollTop=-this.props.scrollTop),n!=i&&this.emit("verticalDrag")}_setScrollTop(e){return this.props.scrollTop=e,this._updateScrollTop(),this.props.scrollTop}_updateScrollTop(){const e=Math.min(this.props.centerContainer.height-this.props.border.top-this.props.border.bottom-this.props.center.height,0);return e!=this.props.scrollTopMin&&(this.options.orientation.item!="top"&&(this.props.scrollTop+=e-this.props.scrollTopMin),this.props.scrollTopMin=e),this.props.scrollTop>0&&(this.props.scrollTop=0),this.props.scrollTop<e&&(this.props.scrollTop=e),this.options.verticalScroll&&(this.dom.left.parentNode.scrollTop=-this.props.scrollTop,this.dom.right.parentNode.scrollTop=-this.props.scrollTop),this.props.scrollTop}_getScrollTop(){return this.props.scrollTop}_createConfigurator(){throw new Error("Cannot invoke abstract method _createConfigurator")}}G1(Tn.prototype);class xG extends li{constructor(e,r){var i;super(),this.body=e,this.defaultOptions={rtl:!1,showCurrentTime:!0,alignCurrentTime:void 0,moment:Ot,locales:An,locale:"en"},this.options=S.extend({},this.defaultOptions),this.setOptions(r),this.options.locales=S.extend({},An,this.options.locales);const n=this.defaultOptions.locales[this.defaultOptions.locale];M(i=ut(this.options.locales)).call(i,s=>{this.options.locales[s]=S.extend({},n,this.options.locales[s])}),this.offset=0,this._create()}_create(){const e=document.createElement("div");e.className="vis-current-time",e.style.position="absolute",e.style.top="0px",e.style.height="100%",this.bar=e}destroy(){this.options.showCurrentTime=!1,this.redraw(),this.body=null}setOptions(e){e&&S.selectiveExtend(["rtl","showCurrentTime","alignCurrentTime","moment","locale","locales"],this.options,e)}redraw(){if(this.options.showCurrentTime){var e,r;const i=this.body.dom.backgroundVertical;this.bar.parentNode!=i&&(this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),i.appendChild(this.bar),this.start());let n=this.options.moment(It()+this.offset);this.options.alignCurrentTime&&(n=n.startOf(this.options.alignCurrentTime));const s=this.body.util.toScreen(n);let a=this.options.locales[this.options.locale];a||(this.warned||(console.warn("WARNING: options.locales['".concat(this.options.locale,"'] not found. See https://visjs.github.io/vis-timeline/docs/timeline/#Localization")),this.warned=!0),a=this.options.locales.en);let o=Ge(e=Ge(r="".concat(a.current," ")).call(r,a.time,": ")).call(e,n.format("dddd, MMMM Do YYYY, H:mm:ss"));o=o.charAt(0).toUpperCase()+o.substring(1),this.options.rtl?this.bar.style.transform="translateX(".concat(s*-1,"px)"):this.bar.style.transform="translateX(".concat(s,"px)"),this.bar.title=o}else this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),this.stop();return!1}start(){const e=this;function r(){e.stop();let n=1/e.body.range.conversion(e.body.domProps.center.width).scale/10;n<30&&(n=30),n>1e3&&(n=1e3),e.redraw(),e.body.emitter.emit("currentTimeTick"),e.currentTimeTimer=vt(r,n)}r()}stop(){this.currentTimeTimer!==void 0&&(clearTimeout(this.currentTimeTimer),delete this.currentTimeTimer)}setCurrentTime(e){const r=S.convert(e,"Date").valueOf(),i=It();this.offset=r-i,this.redraw()}getCurrentTime(){return new Date(It()+this.offset)}}var bN={},_N;function cJ(){if(_N)return bN;_N=1;var t=Y(),e=oi().find,r=pl(),i="find",n=!0;return i in[]&&Array(1)[i](function(){n=!1}),t({target:"Array",proto:!0,forced:n},{find:function(a){return e(this,a,arguments.length>1?arguments[1]:void 0)}}),r(i),bN}var ub,wN;function hJ(){if(wN)return ub;wN=1,cJ();var t=nt();return ub=t("Array","find"),ub}var cb,SN;function dJ(){if(SN)return cb;SN=1;var t=je(),e=hJ(),r=Array.prototype;return cb=function(i){var n=i.find;return i===r||t(r,i)&&n===r.find?e:n},cb}var hb,ON;function fJ(){if(ON)return hb;ON=1;var t=dJ();return hb=t,hb}var db,EN;function pJ(){return EN||(EN=1,db=fJ()),db}var vJ=pJ(),mJ=Q(vJ),TN={},$N={},fb={exports:{}},pb,RN;function gJ(){if(RN)return pb;RN=1;var t=ce();return pb=t(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),pb}var vb,xN;function yJ(){if(xN)return vb;xN=1;var t=ce(),e=ct(),r=Er(),i=gJ(),n=Object.isExtensible,s=t(function(){});return vb=s||i?function(o){return!e(o)||i&&r(o)==="ArrayBuffer"?!1:n?n(o):!0}:n,vb}var mb,PN;function bJ(){if(PN)return mb;PN=1;var t=ce();return mb=!t(function(){return Object.isExtensible(Object.preventExtensions({}))}),mb}var DN;function PG(){if(DN)return fb.exports;DN=1;var t=Y(),e=de(),r=xa(),i=ct(),n=_t(),s=tr().f,a=cl(),o=lj(),l=yJ(),u=sl(),c=bJ(),h=!1,d=u("meta"),f=0,p=function(_){s(_,d,{value:{objectID:"O"+f++,weakData:{}}})},v=function(_,w){if(!i(_))return typeof _=="symbol"?_:(typeof _=="string"?"S":"P")+_;if(!n(_,d)){if(!l(_))return"F";if(!w)return"E";p(_)}return _[d].objectID},m=function(_,w){if(!n(_,d)){if(!l(_))return!0;if(!w)return!1;p(_)}return _[d].weakData},y=function(_){return c&&h&&l(_)&&!n(_,d)&&p(_),_},g=function(){O.enable=function(){},h=!0;var _=a.f,w=e([].splice),E={};E[d]=1,_(E).length&&(a.f=function($){for(var b=_($),T=0,R=b.length;T<R;T++)if(b[T]===d){w(b,T,1);break}return b},t({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:o.f}))},O=fb.exports={enable:g,fastKey:v,getWeakData:m,onFreeze:y};return r[d]=!0,fb.exports}var gb,IN;function _J(){if(IN)return gb;IN=1;var t=Ve(),e=as(),r=t("iterator"),i=Array.prototype;return gb=function(n){return n!==void 0&&(e.Array===n||i[r]===n)},gb}var yb,CN;function DG(){if(CN)return yb;CN=1;var t=Ra(),e=$1(),r=Oa(),i=as(),n=Ve(),s=n("iterator");return yb=function(a){if(!r(a))return e(a,s)||e(a,"@@iterator")||i[t(a)]},yb}var bb,qN;function wJ(){if(qN)return bb;qN=1;var t=xt(),e=ai(),r=Hr(),i=es(),n=DG(),s=TypeError;return bb=function(a,o){var l=arguments.length<2?n(a):o;if(e(l))return r(t(l,a));throw new s(i(a)+" is not iterable")},bb}var _b,kN;function dw(){if(kN)return _b;kN=1;var t=xt(),e=Hr(),r=$1();return _b=function(i,n,s){var a,o;e(i);try{if(a=r(i,"return"),!a){if(n==="throw")throw s;return s}a=t(a,i)}catch(l){o=!0,a=l}if(n==="throw")throw s;if(o)throw a;return e(a),s},_b}var wb,AN;function IG(){if(AN)return wb;AN=1;var t=ol(),e=xt(),r=Hr(),i=es(),n=_J(),s=Yr(),a=je(),o=wJ(),l=DG(),u=dw(),c=TypeError,h=function(f,p){this.stopped=f,this.result=p},d=h.prototype;return wb=function(f,p,v){var m=v&&v.that,y=!!(v&&v.AS_ENTRIES),g=!!(v&&v.IS_RECORD),O=!!(v&&v.IS_ITERATOR),_=!!(v&&v.INTERRUPTED),w=t(p,m),E,$,b,T,R,x,P,I=function(K){return E&&u(E,"normal"),new h(!0,K)},j=function(K){return y?(r(K),_?w(K[0],K[1],I):w(K[0],K[1])):_?w(K,I):w(K)};if(g)E=f.iterator;else if(O)E=f;else{if($=l(f),!$)throw new c(i(f)+" is not iterable");if(n($)){for(b=0,T=s(f);T>b;b++)if(R=j(f[b]),R&&a(d,R))return R;return new h(!1)}E=o(f,$)}for(x=g?f.next:E.next;!(P=e(x,E)).done;){try{R=j(P.value)}catch(K){u(E,"throw",K)}if(typeof R=="object"&&R&&a(d,R))return R}return new h(!1)},wb}var Sb,MN;function CG(){if(MN)return Sb;MN=1;var t=je(),e=TypeError;return Sb=function(r,i){if(t(i,r))return r;throw new e("Incorrect invocation")},Sb}var Ob,NN;function SJ(){if(NN)return Ob;NN=1;var t=Y(),e=Ae(),r=PG(),i=ce(),n=rs(),s=IG(),a=CG(),o=it(),l=ct(),u=Oa(),c=Ji(),h=tr().f,d=oi().forEach,f=Le(),p=Ca(),v=p.set,m=p.getterFor;return Ob=function(y,g,O){var _=y.indexOf("Map")!==-1,w=y.indexOf("Weak")!==-1,E=_?"set":"add",$=e[y],b=$&&$.prototype,T={},R;if(!f||!o($)||!(w||b.forEach&&!i(function(){new $().entries().next()})))R=O.getConstructor(g,y,_,E),r.enable();else{R=g(function(I,j){v(a(I,x),{type:y,collection:new $}),u(j)||s(j,I[E],{that:I,AS_ENTRIES:_})});var x=R.prototype,P=m(y);d(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(I){var j=I==="add"||I==="set";I in b&&!(w&&I==="clear")&&n(x,I,function(K,G){var B=P(this).collection;if(!j&&w&&!l(K))return I==="get"?void 0:!1;var A=B[I](K===0?0:K,G);return j?this:A})}),w||h(x,"size",{configurable:!0,get:function(){return P(this).collection.size}})}return c(R,y,!1,!0),T[y]=R,t({global:!0,forced:!0},T),w||O.setStrong(R,y,_),R},Ob}var Eb,FN;function OJ(){if(FN)return Eb;FN=1;var t=Ia();return Eb=function(e,r,i){for(var n in r)i&&i.unsafe&&e[n]?e[n]=r[n]:t(e,n,r[n],i);return e},Eb}var Tb,LN;function EJ(){if(LN)return Tb;LN=1;var t=er(),e=k1(),r=Ve(),i=Le(),n=r("species");return Tb=function(s){var a=t(s);i&&a&&!a[n]&&e(a,n,{configurable:!0,get:function(){return this}})},Tb}var $b,jN;function TJ(){if(jN)return $b;jN=1;var t=Da(),e=k1(),r=OJ(),i=ol(),n=CG(),s=Oa(),a=IG(),o=A1(),l=M1(),u=EJ(),c=Le(),h=PG().fastKey,d=Ca(),f=d.set,p=d.getterFor;return $b={getConstructor:function(v,m,y,g){var O=v(function(b,T){n(b,_),f(b,{type:m,index:t(null),first:null,last:null,size:0}),c||(b.size=0),s(T)||a(T,b[g],{that:b,AS_ENTRIES:y})}),_=O.prototype,w=p(m),E=function(b,T,R){var x=w(b),P=$(b,T),I,j;return P?P.value=R:(x.last=P={index:j=h(T,!0),key:T,value:R,previous:I=x.last,next:null,removed:!1},x.first||(x.first=P),I&&(I.next=P),c?x.size++:b.size++,j!=="F"&&(x.index[j]=P)),b},$=function(b,T){var R=w(b),x=h(T),P;if(x!=="F")return R.index[x];for(P=R.first;P;P=P.next)if(P.key===T)return P};return r(_,{clear:function(){for(var T=this,R=w(T),x=R.first;x;)x.removed=!0,x.previous&&(x.previous=x.previous.next=null),x=x.next;R.first=R.last=null,R.index=t(null),c?R.size=0:T.size=0},delete:function(b){var T=this,R=w(T),x=$(T,b);if(x){var P=x.next,I=x.previous;delete R.index[x.index],x.removed=!0,I&&(I.next=P),P&&(P.previous=I),R.first===x&&(R.first=P),R.last===x&&(R.last=I),c?R.size--:T.size--}return!!x},forEach:function(T){for(var R=w(this),x=i(T,arguments.length>1?arguments[1]:void 0),P;P=P?P.next:R.first;)for(x(P.value,P.key,this);P&&P.removed;)P=P.previous},has:function(T){return!!$(this,T)}}),r(_,y?{get:function(T){var R=$(this,T);return R&&R.value},set:function(T,R){return E(this,T===0?0:T,R)}}:{add:function(T){return E(this,T=T===0?0:T,T)}}),c&&e(_,"size",{configurable:!0,get:function(){return w(this).size}}),O},setStrong:function(v,m,y){var g=m+" Iterator",O=p(m),_=p(g);o(v,m,function(w,E){f(this,{type:g,target:w,state:O(w),kind:E,last:null})},function(){for(var w=_(this),E=w.kind,$=w.last;$&&$.removed;)$=$.previous;return!w.target||!(w.last=$=$?$.next:w.state.first)?(w.target=null,l(void 0,!0)):l(E==="keys"?$.key:E==="values"?$.value:[$.key,$.value],!1)},y?"entries":"values",!y,!0),u(m)}},$b}var GN;function $J(){if(GN)return $N;GN=1;var t=SJ(),e=TJ();return t("Set",function(r){return function(){return r(this,arguments.length?arguments[0]:void 0)}},e),$N}var BN;function RJ(){return BN||(BN=1,$J()),TN}var WN={},Rb,HN;function tn(){if(HN)return Rb;HN=1;var t=es(),e=TypeError;return Rb=function(r){if(typeof r=="object"&&"size"in r&&"has"in r&&"add"in r&&"delete"in r&&"keys"in r)return r;throw new e(t(r)+" is not a set")},Rb}var xb,YN;function xJ(){return YN||(YN=1,xb=function(t,e){return e===1?function(r,i){return r[t](i)}:function(r,i,n){return r[t](i,n)}}),xb}var Pb,UN;function rn(){if(UN)return Pb;UN=1;var t=er(),e=xJ(),r=t("Set"),i=r.prototype;return Pb={Set:r,add:e("add",1),has:e("has",1),remove:e("delete",1),proto:i},Pb}var Db,VN;function nn(){if(VN)return Db;VN=1;var t=xt();return Db=function(e,r,i){for(var n=i?e:e.iterator,s=e.next,a,o;!(a=t(s,n)).done;)if(o=r(a.value),o!==void 0)return o},Db}var Ib,zN;function ja(){if(zN)return Ib;zN=1;var t=nn();return Ib=function(e,r,i){return i?t(e.keys(),r,!0):e.forEach(r)},Ib}var Cb,KN;function fw(){if(KN)return Cb;KN=1;var t=rn(),e=ja(),r=t.Set,i=t.add;return Cb=function(n){var s=new r;return e(n,function(a){i(s,a)}),s},Cb}var qb,XN;function Ga(){return XN||(XN=1,qb=function(t){return t.size}),qb}var kb,ZN;function PJ(){return ZN||(ZN=1,kb=function(t){return{iterator:t,next:t.next,done:!1}}),kb}var Ab,QN;function sn(){if(QN)return Ab;QN=1;var t=ai(),e=Hr(),r=xt(),i=ns(),n=PJ(),s="Invalid size",a=RangeError,o=TypeError,l=Math.max,u=function(c,h){this.set=c,this.size=l(h,0),this.has=t(c.has),this.keys=t(c.keys)};return u.prototype={getIterator:function(){return n(e(r(this.keys,this.set)))},includes:function(c){return r(this.has,this.set,c)}},Ab=function(c){e(c);var h=+c.size;if(h!==h)throw new o(s);var d=i(h);if(d<0)throw new a(s);return new u(c,d)},Ab}var Mb,JN;function DJ(){if(JN)return Mb;JN=1;var t=tn(),e=rn(),r=fw(),i=Ga(),n=sn(),s=ja(),a=nn(),o=e.has,l=e.remove;return Mb=function(c){var h=t(this),d=n(c),f=r(h);return i(h)<=d.size?s(h,function(p){d.includes(p)&&l(f,p)}):a(d.getIterator(),function(p){o(f,p)&&l(f,p)}),f},Mb}var Nb,eF;function an(){return eF||(eF=1,Nb=function(){return!1}),Nb}var tF;function IJ(){if(tF)return WN;tF=1;var t=Y(),e=DJ(),r=ce(),i=an(),n=!i("difference",function(a){return a.size===0}),s=n||r(function(){var a={size:1,has:function(){return!0},keys:function(){var l=0;return{next:function(){var u=l++>1;return o.has(1)&&o.clear(),{done:u,value:2}}}}},o=new Set([1,2,3,4]);return o.difference(a).size!==3});return t({target:"Set",proto:!0,real:!0,forced:s},{difference:e}),WN}var rF={},Fb,iF;function CJ(){if(iF)return Fb;iF=1;var t=tn(),e=rn(),r=Ga(),i=sn(),n=ja(),s=nn(),a=e.Set,o=e.add,l=e.has;return Fb=function(c){var h=t(this),d=i(c),f=new a;return r(h)>d.size?s(d.getIterator(),function(p){l(h,p)&&o(f,p)}):n(h,function(p){d.includes(p)&&o(f,p)}),f},Fb}var nF;function qJ(){if(nF)return rF;nF=1;var t=Y(),e=ce(),r=CJ(),i=an(),n=!i("intersection",function(s){return s.size===2&&s.has(1)&&s.has(2)})||e(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});return t({target:"Set",proto:!0,real:!0,forced:n},{intersection:r}),rF}var sF={},Lb,aF;function kJ(){if(aF)return Lb;aF=1;var t=tn(),e=rn().has,r=Ga(),i=sn(),n=ja(),s=nn(),a=dw();return Lb=function(l){var u=t(this),c=i(l);if(r(u)<=c.size)return n(u,function(d){if(c.includes(d))return!1},!0)!==!1;var h=c.getIterator();return s(h,function(d){if(e(u,d))return a(h,"normal",!1)})!==!1},Lb}var oF;function AJ(){if(oF)return sF;oF=1;var t=Y(),e=kJ(),r=an(),i=!r("isDisjointFrom",function(n){return!n});return t({target:"Set",proto:!0,real:!0,forced:i},{isDisjointFrom:e}),sF}var lF={},jb,uF;function MJ(){if(uF)return jb;uF=1;var t=tn(),e=Ga(),r=ja(),i=sn();return jb=function(s){var a=t(this),o=i(s);return e(a)>o.size?!1:r(a,function(l){if(!o.includes(l))return!1},!0)!==!1},jb}var cF;function NJ(){if(cF)return lF;cF=1;var t=Y(),e=MJ(),r=an(),i=!r("isSubsetOf",function(n){return n});return t({target:"Set",proto:!0,real:!0,forced:i},{isSubsetOf:e}),lF}var hF={},Gb,dF;function FJ(){if(dF)return Gb;dF=1;var t=tn(),e=rn().has,r=Ga(),i=sn(),n=nn(),s=dw();return Gb=function(o){var l=t(this),u=i(o);if(r(l)<u.size)return!1;var c=u.getIterator();return n(c,function(h){if(!e(l,h))return s(c,"normal",!1)})!==!1},Gb}var fF;function LJ(){if(fF)return hF;fF=1;var t=Y(),e=FJ(),r=an(),i=!r("isSupersetOf",function(n){return!n});return t({target:"Set",proto:!0,real:!0,forced:i},{isSupersetOf:e}),hF}var pF={},Bb,vF;function jJ(){if(vF)return Bb;vF=1;var t=tn(),e=rn(),r=fw(),i=sn(),n=nn(),s=e.add,a=e.has,o=e.remove;return Bb=function(u){var c=t(this),h=i(u).getIterator(),d=r(c);return n(h,function(f){a(c,f)?o(d,f):s(d,f)}),d},Bb}var Wb,mF;function qG(){return mF||(mF=1,Wb=function(t){try{var e=new Set,r={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return e.clear(),e.add(4),function(){return{done:!0}}}})}},i=e[t](r);return i.size===1&&i.values().next().value===4}catch{return!1}}),Wb}var gF;function GJ(){if(gF)return pF;gF=1;var t=Y(),e=jJ(),r=qG(),i=an(),n=!i("symmetricDifference")||!r("symmetricDifference");return t({target:"Set",proto:!0,real:!0,forced:n},{symmetricDifference:e}),pF}var yF={},Hb,bF;function BJ(){if(bF)return Hb;bF=1;var t=tn(),e=rn().add,r=fw(),i=sn(),n=nn();return Hb=function(a){var o=t(this),l=i(a).getIterator(),u=r(o);return n(l,function(c){e(u,c)}),u},Hb}var _F;function WJ(){if(_F)return yF;_F=1;var t=Y(),e=BJ(),r=qG(),i=an(),n=!i("union")||!r("union");return t({target:"Set",proto:!0,real:!0,forced:n},{union:e}),yF}var Yb,wF;function HJ(){if(wF)return Yb;wF=1,N1(),RJ(),IJ(),qJ(),AJ(),NJ(),LJ(),GJ(),WJ(),Rj();var t=Re();return Yb=t.Set,Yb}var Ub,SF;function YJ(){if(SF)return Ub;SF=1;var t=HJ();return F1(),Ub=t,Ub}var Vb,OF;function UJ(){return OF||(OF=1,Vb=YJ()),Vb}var VJ=UJ(),xo=Q(VJ);const Pt=.001;function zJ(t){Je(t).call(t,(e,r)=>e.data.start-r.data.start)}function KJ(t){Je(t).call(t,(e,r)=>{const i="end"in e.data?e.data.end:e.data.start,n="end"in r.data?r.data.end:r.data.start;return i-n})}function EF(t,e,r,i){return pw(t,e.item,!1,s=>s.stack&&(r||s.top===null),s=>s.stack,()=>e.axis,i)===null}function XJ(t,e,r){const i=pw(t,e.item,!1,n=>n.stack,()=>!0,n=>n.baseTop);r.height=i-r.top+.5*e.item.vertical}function ZJ(t,e,r,i){for(let n=0;n<t.length;n++){if(t[n].data.subgroup==null){t[n].top=e.item.vertical;continue}if(t[n].data.subgroup===void 0||!i)continue;let s=0;for(const a in r)!Object.prototype.hasOwnProperty.call(r,a)||r[a].visible!==!0||r[a].index>=r[t[n].data.subgroup].index||(s+=r[a].height,r[t[n].data.subgroup].top=s);t[n].top=s+.5*e.item.vertical}i||QJ(t,e,r)}function QJ(t,e,r){var i;pw(Je(i=L1(r)).call(i,(n,s)=>n.index>s.index?1:n.index<s.index?-1:0),{vertical:0},!0,()=>!0,()=>!0,()=>0);for(let n=0;n<t.length;n++)t[n].data.subgroup!==void 0&&(t[n].top=r[t[n].data.subgroup].top+.5*e.item.vertical)}function TF(t,e,r){let i=!1;const n=[];for(let s in r)Object.prototype.hasOwnProperty.call(r[s],"index")?n[r[s].index]=s:n.push(s);for(let s=0;s<n.length;s++){let a=n[s];if(!Object.prototype.hasOwnProperty.call(r,a))continue;i=i||r[a].stack,r[a].top=0;for(const l in r)r[l].visible&&r[a].index>r[l].index&&(r[a].top+=r[l].height);const o=t[a];for(let l=0;l<o.length;l++)o[l].data.subgroup!==void 0&&(o[l].top=r[o[l].data.subgroup].top+.5*e.item.vertical,r[a].stack&&(o[l].baseTop=o[l].top));i&&r[a].stack&&XJ(t[a],e,r[a])}}function pw(t,e,r,i,n,s,a){let o=g=>g.start,l=g=>g.end;r||(!!(t[0]&&t[0].options.rtl)?o=O=>O.right:o=O=>O.left,l=O=>o(O)+O.width+e.horizontal);const u=[],c=[];let h=null,d=0;for(const g of t)if(i(g))u.push(g);else if(n(g)){const O=o(g);h!==null&&O<h-Pt&&(d=0),h=O,d=ro(c,_=>o(_)-Pt>O,d),Et(c).call(c,d,0,g),d++}h=null;let f=null;d=0;let p=0,v=0,m=0;for(;u.length>0;){var y;const g=u.shift();g.top=s(g);const O=o(g),_=l(g);h!==null&&O<h-Pt&&(p=0,v=0,d=0,f=null),(h===null||O>h+Pt)&&(p=ro(c,$=>O<l($)-Pt,p)),h=O,(f===null||f<_-Pt)&&(v=ro(c,$=>_<o($)-Pt,Math.max(p,v))),f!==null&&f-Pt>_&&(v=eee(c,$=>_+Pt>=o($),p,v)+1),f=_;const w=Je(y=tee(c,$=>O<l($)-Pt,p,v)).call(y,($,b)=>$.top-b.top);for(let $=0;$<w.length;$++){const b=w[$];JJ(g,b,e)&&(g.top=b.top+b.height+e.vertical)}n(g)&&(d=ro(c,$=>o($)-Pt>O,d),Et(c).call(c,d,0,g),d<p&&p++,d<=v&&v++,d++);const E=g.top+g.height;if(E>m&&(m=E),a&&a())return null}return m}function JJ(t,e,r){return t.top-r.vertical+Pt<e.top+e.height&&t.top+t.height+r.vertical-Pt>e.top}function ro(t,e,r){r||(r=0);for(let i=r;i<t.length;i++)if(e(t[i]))return i;return t.length}function eee(t,e,r,i){r||(r=0),i||(i=t.length);for(let n=i-1;n>=r;n--)if(e(t[n]))return n;return r-1}function tee(t,e,r,i){r||(r=0),i?i=Math.min(i,t.length):i=t.length;const n=[];for(let s=r;s<i;s++)e(t[s])&&n.push(t[s]);return n}const ree="__background__",$F={BACKGROUND:ree};class R_{constructor(e,r,i){if(this.groupId=e,this.subgroups={},this.subgroupStack={},this.subgroupStackAll=!1,this.subgroupVisibility={},this.doInnerStack=!1,this.shouldBailStackItems=!1,this.subgroupIndex=0,this.subgroupOrderer=r&&r.subgroupOrder,this.itemSet=i,this.isVisible=null,this.height=0,this.stackDirty=!0,this._disposeCallbacks=[],r&&r.nestedGroups&&(this.nestedGroups=r.nestedGroups,r.showNested==!1?this.showNested=!1:this.showNested=!0),r&&r.subgroupStack)if(typeof r.subgroupStack=="boolean")this.doInnerStack=r.subgroupStack,this.subgroupStackAll=r.subgroupStack;else for(const s in r.subgroupStack)Object.prototype.hasOwnProperty.call(r.subgroupStack,s)&&(this.subgroupStack[s]=r.subgroupStack[s],this.doInnerStack=this.doInnerStack||r.subgroupStack[s]);r&&r.heightMode?this.heightMode=r.heightMode:this.heightMode=i.options.groupHeightMode,this.nestedInGroup=null,this.dom={},this.props={label:{width:0,height:0}},this.className=null,this.items={},this.visibleItems=[],this.itemsInRange=[],this.orderedItems={byStart:[],byEnd:[]},this.checkRangedItems=!1;const n=()=>{this.checkRangedItems=!0};this.itemSet.body.emitter.on("checkRangedItems",n),this._disposeCallbacks.push(()=>{this.itemSet.body.emitter.off("checkRangedItems",n)}),this._create(),this.setData(r)}_create(){const e=document.createElement("div");this.itemSet.options.groupEditable.order?e.className="vis-label draggable":e.className="vis-label",this.dom.label=e;const r=document.createElement("div");r.className="vis-inner",e.appendChild(r),this.dom.inner=r;const i=document.createElement("div");i.className="vis-group",i["vis-group"]=this,this.dom.foreground=i,this.dom.background=document.createElement("div"),this.dom.background.className="vis-group",this.dom.axis=document.createElement("div"),this.dom.axis.className="vis-group",this.dom.marker=document.createElement("div"),this.dom.marker.style.visibility="hidden",this.dom.marker.style.position="absolute",this.dom.marker.innerHTML="",this.dom.background.appendChild(this.dom.marker)}setData(e){if(this.itemSet.groupTouchParams.isDragging)return;let r,i;if(e&&e.subgroupVisibility)for(const a in e.subgroupVisibility)Object.prototype.hasOwnProperty.call(e.subgroupVisibility,a)&&(this.subgroupVisibility[a]=e.subgroupVisibility[a]);if(this.itemSet.options&&this.itemSet.options.groupTemplate){var n;i=D(n=this.itemSet.options.groupTemplate).call(n,this),r=i(e,this.dom.inner)}else r=e&&e.content;if(r instanceof Element){for(;this.dom.inner.firstChild;)this.dom.inner.removeChild(this.dom.inner.firstChild);this.dom.inner.appendChild(r)}else r instanceof Object&&r.isReactComponent||(r instanceof Object?i(e,this.dom.inner):r!=null?this.dom.inner.innerHTML=S.xss(r):this.dom.inner.innerHTML=S.xss(this.groupId||""));this.dom.label.title=e&&e.title||"",this.dom.inner.firstChild?S.removeClassName(this.dom.inner,"vis-hidden"):S.addClassName(this.dom.inner,"vis-hidden"),e&&e.nestedGroups?((!this.nestedGroups||this.nestedGroups!=e.nestedGroups)&&(this.nestedGroups=e.nestedGroups),(e.showNested!==void 0||this.showNested===void 0)&&(e.showNested==!1?this.showNested=!1:this.showNested=!0),S.addClassName(this.dom.label,"vis-nesting-group"),this.showNested?(S.removeClassName(this.dom.label,"collapsed"),S.addClassName(this.dom.label,"expanded")):(S.removeClassName(this.dom.label,"expanded"),S.addClassName(this.dom.label,"collapsed"))):this.nestedGroups&&(this.nestedGroups=null,S.removeClassName(this.dom.label,"collapsed"),S.removeClassName(this.dom.label,"expanded"),S.removeClassName(this.dom.label,"vis-nesting-group")),e&&(e.treeLevel||e.nestedInGroup)?(S.addClassName(this.dom.label,"vis-nested-group"),e.treeLevel?S.addClassName(this.dom.label,"vis-group-level-"+e.treeLevel):S.addClassName(this.dom.label,"vis-group-level-unknown-but-gte1")):S.addClassName(this.dom.label,"vis-group-level-0");const s=e&&e.className||null;s!=this.className&&(this.className&&(S.removeClassName(this.dom.label,this.className),S.removeClassName(this.dom.foreground,this.className),S.removeClassName(this.dom.background,this.className),S.removeClassName(this.dom.axis,this.className)),S.addClassName(this.dom.label,s),S.addClassName(this.dom.foreground,s),S.addClassName(this.dom.background,s),S.addClassName(this.dom.axis,s),this.className=s),this.style&&(S.removeCssText(this.dom.label,this.style),this.style=null),e&&e.style&&(S.addCssText(this.dom.label,e.style),this.style=e.style)}getLabelWidth(){return this.props.label.width}_didMarkerHeightChange(){const e=this.dom.marker.clientHeight;if(e!=this.lastMarkerHeight){this.lastMarkerHeight=e;const r={};let i=0;if(M(S).call(S,this.items,(s,a)=>{s.dirty=!0,s.displayed&&(r[a]=s.redraw(!0),i=r[a].length)}),i>0)for(let s=0;s<i;s++)M(S).call(S,r,a=>{a[s]()});return!0}else return!1}_calculateGroupSizeAndPosition(){const{offsetTop:e,offsetLeft:r,offsetWidth:i}=this.dom.foreground;this.top=e,this.right=r,this.width=i}_shouldBailItemsRedraw(){const e=this,r=this.itemSet.options.onTimeout,i={relativeBailingTime:this.itemSet.itemsSettingTime,bailTimeMs:r&&r.timeoutMs,userBailFunction:r&&r.callback,shouldBailStackItems:this.shouldBailStackItems};let n=null;if(!this.itemSet.initialDrawDone){if(i.shouldBailStackItems)return!0;Math.abs(It()-new Date(i.relativeBailingTime))>i.bailTimeMs&&(i.userBailFunction&&this.itemSet.userContinueNotBail==null?i.userBailFunction(s=>{e.itemSet.userContinueNotBail=s,n=!s}):e.itemSet.userContinueNotBail==!1?n=!0:n=!1)}return n}_redrawItems(e,r,i,n){if(e||this.stackDirty||this.isVisible&&!r){var a,o,l,u,c,h;const y={byEnd:ue(a=this.orderedItems.byEnd).call(a,w=>!w.isCluster),byStart:ue(o=this.orderedItems.byStart).call(o,w=>!w.isCluster)},g={byEnd:[...new xo(ue(l=Qe(u=this.orderedItems.byEnd).call(u,w=>w.cluster)).call(l,w=>!!w))],byStart:[...new xo(ue(c=Qe(h=this.orderedItems.byStart).call(h,w=>w.cluster)).call(c,w=>!!w))]},O=()=>{var w,E;const $=this._updateItemsInRange(y,ue(w=this.visibleItems).call(w,T=>!T.isCluster),n),b=this._updateClustersInRange(g,ue(E=this.visibleItems).call(E,T=>T.isCluster),n);return[...$,...b]},_=w=>{let E={};for(const b in this.subgroups){var $;if(!Object.prototype.hasOwnProperty.call(this.subgroups,b))continue;const T=ue($=this.visibleItems).call($,R=>R.data.subgroup===b);E[b]=w?Je(T).call(T,(R,x)=>w(R.data,x.data)):T}return E};if(typeof this.itemSet.options.order=="function"){const w=this;if(this.doInnerStack&&this.itemSet.options.stackSubgroups){const E=_(this.itemSet.options.order);TF(E,i,this.subgroups),this.visibleItems=O(),this._updateSubGroupHeights(i)}else{var d,f,p,v;this.visibleItems=O(),this._updateSubGroupHeights(i);const E=Je(d=ue(f=os(p=this.visibleItems).call(p)).call(f,$=>$.isCluster||!$.isCluster&&!$.cluster)).call(d,($,b)=>w.itemSet.options.order($.data,b.data));this.shouldBailStackItems=EF(E,i,!0,D(v=this._shouldBailItemsRedraw).call(v,this))}}else if(this.visibleItems=O(),this._updateSubGroupHeights(i),this.itemSet.options.stack)if(this.doInnerStack&&this.itemSet.options.stackSubgroups){const w=_();TF(w,i,this.subgroups)}else{var m;this.shouldBailStackItems=EF(this.visibleItems,i,!0,D(m=this._shouldBailItemsRedraw).call(m,this))}else ZJ(this.visibleItems,i,this.subgroups,this.itemSet.options.stackSubgroups);for(let w=0;w<this.visibleItems.length;w++)this.visibleItems[w].repositionX(),this.subgroupVisibility[this.visibleItems[w].data.subgroup]!==void 0&&(this.subgroupVisibility[this.visibleItems[w].data.subgroup]||this.visibleItems[w].hide());this.itemSet.options.cluster&&M(S).call(S,this.items,w=>{w.cluster&&w.displayed&&w.hide()}),this.shouldBailStackItems&&this.itemSet.body.emitter.emit("destroyTimeline"),this.stackDirty=!1}}_didResize(e,r){e=S.updateProperty(this,"height",r)||e;const i=this.dom.inner.clientWidth,n=this.dom.inner.clientHeight;return e=S.updateProperty(this.props.label,"width",i)||e,e=S.updateProperty(this.props.label,"height",n)||e,e}_applyGroupHeight(e){this.dom.background.style.height="".concat(e,"px"),this.dom.foreground.style.height="".concat(e,"px"),this.dom.label.style.height="".concat(e,"px")}_updateItemsVerticalPosition(e){for(let r=0,i=this.visibleItems.length;r<i;r++){const n=this.visibleItems[r];n.repositionY(e),!this.isVisible&&this.groupId!=$F.BACKGROUND&&n.displayed&&n.hide()}}redraw(e,r,i,n){var s,a,o,l,u;let c=!1;const h=this.isVisible;let d;const f=[()=>{i=this._didMarkerHeightChange.call(this)||i},D(s=this._updateSubGroupHeights).call(s,this,r),D(a=this._calculateGroupSizeAndPosition).call(a,this),()=>{var p;this.isVisible=D(p=this._isGroupVisible).call(p,this)(e,r)},()=>{var p;D(p=this._redrawItems).call(p,this)(i,h,r,e)},D(o=this._updateSubgroupsSizes).call(o,this),()=>{var p;d=this.height=D(p=this._calculateHeight).call(p,this)(r)},D(l=this._calculateGroupSizeAndPosition).call(l,this),()=>{var p;c=D(p=this._didResize).call(p,this)(c,d)},()=>{var p;D(p=this._applyGroupHeight).call(p,this)(d)},()=>{var p;D(p=this._updateItemsVerticalPosition).call(p,this)(r)},D(u=()=>(!this.isVisible&&this.height&&(c=!1),c)).call(u,this)];if(n)return f;{let p;return M(f).call(f,v=>{p=v()}),p}}_updateSubGroupHeights(e){if(ut(this.subgroups).length>0){const r=this;this._resetSubgroups(),M(S).call(S,this.visibleItems,i=>{i.data.subgroup!==void 0&&(r.subgroups[i.data.subgroup].height=Math.max(r.subgroups[i.data.subgroup].height,i.height+e.item.vertical),r.subgroups[i.data.subgroup].visible=typeof this.subgroupVisibility[i.data.subgroup]>"u"?!0:!!this.subgroupVisibility[i.data.subgroup])})}}_isGroupVisible(e,r){return this.top<=e.body.domProps.centerContainer.height-e.body.domProps.scrollTop+r.axis&&this.top+this.height+r.axis>=-e.body.domProps.scrollTop}_calculateHeight(e){let r,i;if(this.heightMode==="fixed"?i=S.toArray(this.items):i=this.visibleItems,!this.isVisible&&this.height)r=Math.max(this.height,this.props.label.height);else if(i.length>0){let n=i[0].top,s=i[0].top+i[0].height;if(M(S).call(S,i,a=>{n=Math.min(n,a.top),s=Math.max(s,a.top+a.height)}),n>e.axis){const a=n-e.axis;s-=a,M(S).call(S,i,o=>{o.top-=a})}r=Math.ceil(s+e.item.vertical/2),this.heightMode!=="fitItems"&&(r=Math.max(r,this.props.label.height))}else r=this.props.label.height;return r}show(){this.dom.label.parentNode||this.itemSet.dom.labelSet.appendChild(this.dom.label),this.dom.foreground.parentNode||this.itemSet.dom.foreground.appendChild(this.dom.foreground),this.dom.background.parentNode||this.itemSet.dom.background.appendChild(this.dom.background),this.dom.axis.parentNode||this.itemSet.dom.axis.appendChild(this.dom.axis)}hide(){const e=this.dom.label;e.parentNode&&e.parentNode.removeChild(e);const r=this.dom.foreground;r.parentNode&&r.parentNode.removeChild(r);const i=this.dom.background;i.parentNode&&i.parentNode.removeChild(i);const n=this.dom.axis;n.parentNode&&n.parentNode.removeChild(n)}add(e){var r;if(this.items[e.id]=e,e.setParent(this),this.stackDirty=!0,e.data.subgroup!==void 0&&(this._addToSubgroup(e),this.orderSubgroups()),!Dn(r=this.visibleItems).call(r,e)){const i=this.itemSet.body.range;this._checkIfVisible(e,this.visibleItems,i)}}_addToSubgroup(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.data.subgroup;r!=null&&this.subgroups[r]===void 0&&(this.subgroups[r]={height:0,top:0,start:e.data.start,end:e.data.end||e.data.start,visible:!1,index:this.subgroupIndex,items:[],stack:this.subgroupStackAll||this.subgroupStack[r]||!1},this.subgroupIndex++),new Date(e.data.start)<new Date(this.subgroups[r].start)&&(this.subgroups[r].start=e.data.start);const i=e.data.end||e.data.start;new Date(i)>new Date(this.subgroups[r].end)&&(this.subgroups[r].end=i),this.subgroups[r].items.push(e)}_updateSubgroupsSizes(){const e=this;if(e.subgroups)for(const i in e.subgroups){var r;if(!Object.prototype.hasOwnProperty.call(e.subgroups,i))continue;const n=e.subgroups[i].items[0].data.end||e.subgroups[i].items[0].data.start;let s=e.subgroups[i].items[0].data.start,a=n-1;M(r=e.subgroups[i].items).call(r,o=>{new Date(o.data.start)<new Date(s)&&(s=o.data.start);const l=o.data.end||o.data.start;new Date(l)>new Date(a)&&(a=l)}),e.subgroups[i].start=s,e.subgroups[i].end=new Date(a-1)}}orderSubgroups(){if(this.subgroupOrderer!==void 0){const e=[];if(typeof this.subgroupOrderer=="string"){for(const r in this.subgroups)Object.prototype.hasOwnProperty.call(this.subgroups,r)&&e.push({subgroup:r,sortField:this.subgroups[r].items[0].data[this.subgroupOrderer]});Je(e).call(e,(r,i)=>r.sortField-i.sortField)}else if(typeof this.subgroupOrderer=="function"){for(const r in this.subgroups)Object.prototype.hasOwnProperty.call(this.subgroups,r)&&e.push(this.subgroups[r].items[0].data);Je(e).call(e,this.subgroupOrderer)}if(e.length>0)for(let r=0;r<e.length;r++)this.subgroups[e[r].subgroup].index=r}}_resetSubgroups(){for(const e in this.subgroups)Object.prototype.hasOwnProperty.call(this.subgroups,e)&&(this.subgroups[e].visible=!1,this.subgroups[e].height=0)}remove(e){var r,i;delete this.items[e.id],e.setParent(null),this.stackDirty=!0;const n=be(r=this.visibleItems).call(r,e);n!=-1&&Et(i=this.visibleItems).call(i,n,1),e.data.subgroup!==void 0&&(this._removeFromSubgroup(e),this.orderSubgroups())}_removeFromSubgroup(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.data.subgroup;if(r!=null){const s=this.subgroups[r];if(s){var i;const a=be(i=s.items).call(i,e);if(a>=0){var n;Et(n=s.items).call(n,a,1),s.items.length?this._updateSubgroupsSizes():delete this.subgroups[r]}}}}removeFromDataSet(e){this.itemSet.removeItem(e.id)}order(){const e=S.toArray(this.items),r=[],i=[];for(let n=0;n<e.length;n++)e[n].data.end!==void 0&&i.push(e[n]),r.push(e[n]);this.orderedItems={byStart:r,byEnd:i},zJ(this.orderedItems.byStart),KJ(this.orderedItems.byEnd)}_updateItemsInRange(e,r,i){const n=[],s={};if(!this.isVisible&&this.height!==void 0&&this.groupId!=$F.BACKGROUND){for(let m=0;m<r.length;m++){var a=r[m];a.displayed&&a.hide()}return n}const o=(i.end-i.start)/4,l=i.start-o,u=i.end+o,c=m=>m<l?-1:m<=u?0:1,h=m=>{const{start:y,end:g}=m;return g<l?-1:y<=u?0:1};if(r.length>0)for(let m=0;m<r.length;m++)this._checkIfVisibleWithReference(r[m],n,s,i);const d=S.binarySearchCustom(e.byStart,c,"data","start");if(this._traceVisible(d,e.byStart,n,s,m=>m.data.start<l||m.data.start>u),this.checkRangedItems==!0){this.checkRangedItems=!1;for(let m=0;m<e.byEnd.length;m++)this._checkIfVisibleWithReference(e.byEnd[m],n,s,i)}else{const m=S.binarySearchCustom(e.byEnd,h,"data");this._traceVisible(m,e.byEnd,n,s,y=>y.data.end<l||y.data.start>u)}this._sortVisibleItems(e.byStart,n,s);const f={};let p=0;for(let m=0;m<n.length;m++){const y=n[m];y.displayed||(f[m]=y.redraw(!0),p=f[m].length)}if(p>0)for(let m=0;m<p;m++)M(S).call(S,f,y=>{y[m]()});for(let m=0;m<n.length;m++)n[m].repositionX();return n}_traceVisible(e,r,i,n,s){if(e!=-1){for(let a=e;a>=0;a--){let o=r[a];if(s(o))break;!(o.isCluster&&!o.hasItems())&&!o.cluster&&n[o.id]===void 0&&(n[o.id]=!0,i.unshift(o))}for(let a=e+1;a<r.length;a++){let o=r[a];if(s(o))break;!(o.isCluster&&!o.hasItems())&&!o.cluster&&n[o.id]===void 0&&(n[o.id]=!0,i.push(o))}}}_sortVisibleItems(e,r,i){r.length=0;for(let n=0;n<e.length;n++){let s=e[n];i[s.id]&&r.push(s)}}_checkIfVisible(e,r,i){e.isVisible(i)?(e.displayed||e.show(),e.repositionX(),r.push(e)):e.displayed&&e.hide()}_checkIfVisibleWithReference(e,r,i,n){e.isVisible(n)?i[e.id]===void 0&&(i[e.id]=!0,r.push(e)):e.displayed&&e.hide()}_updateClustersInRange(e,r,i){const n=[],s={};if(r.length>0)for(let c=0;c<r.length;c++)this._checkIfVisibleWithReference(r[c],n,s,i);for(let c=0;c<e.byStart.length;c++)this._checkIfVisibleWithReference(e.byStart[c],n,s,i);for(let c=0;c<e.byEnd.length;c++)this._checkIfVisibleWithReference(e.byEnd[c],n,s,i);const a={};let o=0;for(let c=0;c<n.length;c++){const h=n[c];h.displayed||(a[c]=h.redraw(!0),o=a[c].length)}if(o>0)for(var u=0;u<o;u++)M(S).call(S,a,function(c){c[u]()});for(let c=0;c<n.length;c++)n[c].repositionX();return n}changeSubgroup(e,r,i){this._removeFromSubgroup(e,r),this._addToSubgroup(e,i),this.orderSubgroups()}dispose(){this.hide();let e;for(;e=this._disposeCallbacks.pop();)e()}}class kG extends R_{constructor(e,r,i){super(e,r,i),this.width=0,this.height=0,this.top=0,this.left=0}redraw(e,r){this.visibleItems=this._updateItemsInRange(this.orderedItems,this.visibleItems,e),this.width=this.dom.background.offsetWidth,this.dom.background.style.height="0";for(let n=0,s=this.visibleItems.length;n<s;n++)this.visibleItems[n].repositionY(r);return!1}show(){this.dom.background.parentNode||this.itemSet.dom.background.appendChild(this.dom.background)}}class us{constructor(e,r,i){var n;this.id=null,this.parent=null,this.data=e,this.dom=null,this.conversion=r||{},this.defaultOptions={locales:An,locale:"en"},this.options=S.extend({},this.defaultOptions,i),this.options.locales=S.extend({},An,this.options.locales);const s=this.defaultOptions.locales[this.defaultOptions.locale];M(n=ut(this.options.locales)).call(n,a=>{this.options.locales[a]=S.extend({},s,this.options.locales[a])}),this.selected=!1,this.displayed=!1,this.groupShowing=!0,this.selectable=i&&i.selectable||!1,this.dirty=!0,this.top=null,this.right=null,this.left=null,this.width=null,this.height=null,this.setSelectability(e),this.editable=null,this._updateEditStatus()}select(){this.selectable&&(this.selected=!0,this.dirty=!0,this.displayed&&this.redraw())}unselect(){this.selected=!1,this.dirty=!0,this.displayed&&this.redraw()}setData(e){e.group!=null&&this.data.group!=e.group&&this.parent!=null&&this.parent.itemSet._moveToGroup(this,e.group),this.setSelectability(e),this.parent&&(this.parent.stackDirty=!0),e.subgroup!=null&&this.data.subgroup!=e.subgroup&&this.parent!=null&&this.parent.changeSubgroup(this,this.data.subgroup,e.subgroup),this.data=e,this._updateEditStatus(),this.dirty=!0,this.displayed&&this.redraw()}setSelectability(e){e&&(this.selectable=typeof e.selectable>"u"?!0:!!e.selectable)}setParent(e){this.displayed?(this.hide(),this.parent=e,this.parent&&this.show()):this.parent=e}isVisible(){return!1}show(){return!1}hide(){return!1}redraw(){}repositionX(){}repositionY(){}_repaintDragCenter(){if(this.selected&&this.editable.updateTime&&!this.dom.dragCenter){var e,r;const i=this,n=document.createElement("div");n.className="vis-drag-center",n.dragCenterItem=this,this.hammerDragCenter=new ft(n),this.hammerDragCenter.on("tap",s=>{i.parent.itemSet.body.emitter.emit("click",{event:s,item:i.id})}),this.hammerDragCenter.on("doubletap",s=>{s.stopPropagation(),i.parent.itemSet._onUpdateItem(i),i.parent.itemSet.body.emitter.emit("doubleClick",{event:s,item:i.id})}),this.hammerDragCenter.on("panstart",s=>{s.stopPropagation(),i.parent.itemSet._onDragStart(s)}),this.hammerDragCenter.on("panmove",D(e=i.parent.itemSet._onDrag).call(e,i.parent.itemSet)),this.hammerDragCenter.on("panend",D(r=i.parent.itemSet._onDragEnd).call(r,i.parent.itemSet)),this.hammerDragCenter.get("press").set({time:1e4}),this.dom.box?this.dom.dragLeft?this.dom.box.insertBefore(n,this.dom.dragLeft):this.dom.box.appendChild(n):this.dom.point&&this.dom.point.appendChild(n),this.dom.dragCenter=n}else!this.selected&&this.dom.dragCenter&&(this.dom.dragCenter.parentNode&&this.dom.dragCenter.parentNode.removeChild(this.dom.dragCenter),this.dom.dragCenter=null,this.hammerDragCenter&&(this.hammerDragCenter.destroy(),this.hammerDragCenter=null))}_repaintDeleteButton(e){const r=(this.options.editable.overrideItems||this.editable==null)&&this.options.editable.remove||!this.options.editable.overrideItems&&this.editable!=null&&this.editable.remove;if(this.selected&&r&&!this.dom.deleteButton){const i=this,n=document.createElement("div");this.options.rtl?n.className="vis-delete-rtl":n.className="vis-delete";let s=this.options.locales[this.options.locale];s||(this.warned||(console.warn("WARNING: options.locales['".concat(this.options.locale,"'] not found. See https://visjs.github.io/vis-timeline/docs/timeline/#Localization")),this.warned=!0),s=this.options.locales.en),n.title=s.deleteSelected,this.hammerDeleteButton=new ft(n).on("tap",a=>{a.stopPropagation(),i.parent.removeFromDataSet(i)}),e.appendChild(n),this.dom.deleteButton=n}else(!this.selected||!r)&&this.dom.deleteButton&&(this.dom.deleteButton.parentNode&&this.dom.deleteButton.parentNode.removeChild(this.dom.deleteButton),this.dom.deleteButton=null,this.hammerDeleteButton&&(this.hammerDeleteButton.destroy(),this.hammerDeleteButton=null))}_repaintOnItemUpdateTimeTooltip(e){if(!this.options.tooltipOnItemUpdateTime)return;const r=(this.options.editable.updateTime||this.data.editable===!0)&&this.data.editable!==!1;if(this.selected&&r&&!this.dom.onItemUpdateTimeTooltip){const n=document.createElement("div");n.className="vis-onUpdateTime-tooltip",e.appendChild(n),this.dom.onItemUpdateTimeTooltip=n}else!this.selected&&this.dom.onItemUpdateTimeTooltip&&(this.dom.onItemUpdateTimeTooltip.parentNode&&this.dom.onItemUpdateTimeTooltip.parentNode.removeChild(this.dom.onItemUpdateTimeTooltip),this.dom.onItemUpdateTimeTooltip=null);if(this.dom.onItemUpdateTimeTooltip){this.dom.onItemUpdateTimeTooltip.style.visibility=this.parent.itemSet.touchParams.itemIsDragging?"visible":"hidden",this.dom.onItemUpdateTimeTooltip.style.transform="translateX(-50%)",this.dom.onItemUpdateTimeTooltip.style.left="50%";const n=50,s=this.parent.itemSet.body.domProps.scrollTop;let a;this.options.orientation.item=="top"?a=this.top:a=this.parent.height-this.top-this.height,a+this.parent.top-n<-s?(this.dom.onItemUpdateTimeTooltip.style.bottom="",this.dom.onItemUpdateTimeTooltip.style.top="".concat(this.height+2,"px")):(this.dom.onItemUpdateTimeTooltip.style.top="",this.dom.onItemUpdateTimeTooltip.style.bottom="".concat(this.height+2,"px"));let l,u;if(this.options.tooltipOnItemUpdateTime&&this.options.tooltipOnItemUpdateTime.template){var i;u=D(i=this.options.tooltipOnItemUpdateTime.template).call(i,this),l=u(this.data)}else l="start: ".concat(Ot(this.data.start).format("MM/DD/YYYY hh:mm")),this.data.end&&(l+="<br> end: ".concat(Ot(this.data.end).format("MM/DD/YYYY hh:mm")));this.dom.onItemUpdateTimeTooltip.innerHTML=S.xss(l)}}_getItemData(){return this.parent.itemSet.itemsData.get(this.id)}_updateContents(e){let r,i,n,s,a;const o=this._getItemData(),u=(this.dom.box||this.dom.point).getElementsByClassName("vis-item-visible-frame")[0];if(this.options.visibleFrameTemplate){var c;a=D(c=this.options.visibleFrameTemplate).call(c,this),s=S.xss(a(o,u))}else s="";if(u){if(s instanceof Object&&!(s instanceof Element))a(o,u);else if(i=this._contentToString(this.itemVisibleFrameContent)!==this._contentToString(s),i){if(s instanceof Element)u.innerHTML="",u.appendChild(s);else if(s!=null)u.innerHTML=S.xss(s);else if(!(this.data.type=="background"&&this.data.content===void 0))throw new Error('Property "content" missing in item '.concat(this.id));this.itemVisibleFrameContent=s}}if(this.options.template){var h;n=D(h=this.options.template).call(h,this),r=n(o,e,this.data)}else r=this.data.content;if(r instanceof Object&&!(r instanceof Element))n(o,e);else if(i=this._contentToString(this.content)!==this._contentToString(r),i){if(r instanceof Element)e.innerHTML="",e.appendChild(r);else if(r!=null)e.innerHTML=S.xss(r);else if(!(this.data.type=="background"&&this.data.content===void 0))throw new Error('Property "content" missing in item '.concat(this.id));this.content=r}}_updateDataAttributes(e){if(this.options.dataAttributes&&this.options.dataAttributes.length>0){let r=[];if(fe(this.options.dataAttributes))r=this.options.dataAttributes;else if(this.options.dataAttributes=="all")r=ut(this.data);else return;for(const i of r){const n=this.data[i];n!=null?e.setAttribute("data-".concat(i),n):e.removeAttribute("data-".concat(i))}}}_updateStyle(e){this.style&&(S.removeCssText(e,this.style),this.style=null),this.data.style&&(S.addCssText(e,this.data.style),this.style=this.data.style)}_contentToString(e){return typeof e=="string"?e:e&&"outerHTML"in e?e.outerHTML:e}_updateEditStatus(){this.options&&(typeof this.options.editable=="boolean"?this.editable={updateTime:this.options.editable,updateGroup:this.options.editable,remove:this.options.editable}:typeof this.options.editable=="object"&&(this.editable={},S.selectiveExtend(["updateTime","updateGroup","remove"],this.editable,this.options.editable))),(!this.options||!this.options.editable||this.options.editable.overrideItems!==!0)&&this.data&&(typeof this.data.editable=="boolean"?this.editable={updateTime:this.data.editable,updateGroup:this.data.editable,remove:this.data.editable}:typeof this.data.editable=="object"&&(this.editable={},S.selectiveExtend(["updateTime","updateGroup","remove"],this.editable,this.data.editable)))}getWidthLeft(){return 0}getWidthRight(){return 0}getTitle(){if(this.options.tooltip&&this.options.tooltip.template){var e;return D(e=this.options.tooltip.template).call(e,this)(this._getItemData(),this.data)}return this.data.title}}us.prototype.stack=!0;class iee extends us{constructor(e,r,i){if(super(e,r,i),this.props={dot:{width:0,height:0},line:{width:0,height:0}},e&&e.start==null)throw new Error('Property "start" missing in item '.concat(e))}isVisible(e){if(this.cluster)return!1;let r;const i=this.data.align||this.options.align,n=this.width*e.getMillisecondsPerPixel();return i=="right"?r=this.data.start.getTime()>e.start&&this.data.start.getTime()-n<e.end:i=="left"?r=this.data.start.getTime()+n>e.start&&this.data.start.getTime()<e.end:r=this.data.start.getTime()+n/2>e.start&&this.data.start.getTime()-n/2<e.end,r}_createDomElement(){this.dom||(this.dom={},this.dom.box=document.createElement("DIV"),this.dom.content=document.createElement("DIV"),this.dom.content.className="vis-item-content",this.dom.box.appendChild(this.dom.content),this.dom.line=document.createElement("DIV"),this.dom.line.className="vis-line",this.dom.dot=document.createElement("DIV"),this.dom.dot.className="vis-dot",this.dom.box["vis-item"]=this,this.dirty=!0)}_appendDomElement(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){const r=this.parent.dom.foreground;if(!r)throw new Error("Cannot redraw item: parent has no foreground container element");r.appendChild(this.dom.box)}if(!this.dom.line.parentNode){var e=this.parent.dom.background;if(!e)throw new Error("Cannot redraw item: parent has no background container element");e.appendChild(this.dom.line)}if(!this.dom.dot.parentNode){const r=this.parent.dom.axis;if(!e)throw new Error("Cannot redraw item: parent has no axis container element");r.appendChild(this.dom.dot)}this.displayed=!0}_updateDirtyDomComponents(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.box),this._updateStyle(this.dom.box);const e=this.editable.updateTime||this.editable.updateGroup,r=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+(e?" vis-editable":" vis-readonly");this.dom.box.className="vis-item vis-box".concat(r),this.dom.line.className="vis-item vis-line".concat(r),this.dom.dot.className="vis-item vis-dot".concat(r)}}_getDomComponentsSizes(){return{previous:{right:this.dom.box.style.right,left:this.dom.box.style.left},dot:{height:this.dom.dot.offsetHeight,width:this.dom.dot.offsetWidth},line:{width:this.dom.line.offsetWidth},box:{width:this.dom.box.offsetWidth,height:this.dom.box.offsetHeight}}}_updateDomComponentsSizes(e){this.options.rtl?this.dom.box.style.right="0px":this.dom.box.style.left="0px",this.props.dot.height=e.dot.height,this.props.dot.width=e.dot.width,this.props.line.width=e.line.width,this.width=e.box.width,this.height=e.box.height,this.options.rtl?this.dom.box.style.right=e.previous.right:this.dom.box.style.left=e.previous.left,this.dirty=!1}_repaintDomAdditionals(){this._repaintOnItemUpdateTimeTooltip(this.dom.box),this._repaintDragCenter(),this._repaintDeleteButton(this.dom.box)}redraw(e){var r,i,n,s;let a;const o=[D(r=this._createDomElement).call(r,this),D(i=this._appendDomElement).call(i,this),D(n=this._updateDirtyDomComponents).call(n,this),()=>{this.dirty&&(a=this._getDomComponentsSizes())},()=>{if(this.dirty){var l;D(l=this._updateDomComponentsSizes).call(l,this)(a)}},D(s=this._repaintDomAdditionals).call(s,this)];if(e)return o;{let l;return M(o).call(o,u=>{l=u()}),l}}show(e){if(!this.displayed)return this.redraw(e)}hide(){if(this.displayed){const e=this.dom;e.box.remove?e.box.remove():e.box.parentNode&&e.box.parentNode.removeChild(e.box),e.line.remove?e.line.remove():e.line.parentNode&&e.line.parentNode.removeChild(e.line),e.dot.remove?e.dot.remove():e.dot.parentNode&&e.dot.parentNode.removeChild(e.dot),this.displayed=!1}}repositionXY(){const e=this.options.rtl,r=function(i,n,s){var a;let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(n===void 0&&s===void 0)return;const l=o?n*-1:n;if(s===void 0){i.style.transform="translateX(".concat(l,"px)");return}if(n===void 0){i.style.transform="translateY(".concat(s,"px)");return}i.style.transform=Ge(a="translate(".concat(l,"px, ")).call(a,s,"px)")};r(this.dom.box,this.boxX,this.boxY,e),r(this.dom.dot,this.dotX,this.dotY,e),r(this.dom.line,this.lineX,this.lineY,e)}repositionX(){const e=this.conversion.toScreen(this.data.start),r=this.data.align===void 0?this.options.align:this.data.align,i=this.props.line.width,n=this.props.dot.width;r=="right"?(this.boxX=e-this.width,this.lineX=e-i,this.dotX=e-i/2-n/2):r=="left"?(this.boxX=e,this.lineX=e,this.dotX=e+i/2-n/2):(this.boxX=e-this.width/2,this.lineX=this.options.rtl?e-i:e-i/2,this.dotX=e-n/2),this.options.rtl?this.right=this.boxX:this.left=this.boxX,this.repositionXY()}repositionY(){const e=this.options.orientation.item,r=this.dom.line.style;if(e=="top"){const i=this.parent.top+this.top+1;this.boxY=this.top||0,r.height="".concat(i,"px"),r.bottom="",r.top="0"}else{const n=this.parent.itemSet.props.height-this.parent.top-this.parent.height+this.top;this.boxY=this.parent.height-this.top-(this.height||0),r.height="".concat(n,"px"),r.top="",r.bottom="0"}this.dotY=-this.props.dot.height/2,this.repositionXY()}getWidthLeft(){return this.width/2}getWidthRight(){return this.width/2}}class nee extends us{constructor(e,r,i){if(super(e,r,i),this.props={dot:{top:0,width:0,height:0},content:{height:0,marginLeft:0,marginRight:0}},e&&e.start==null)throw new Error('Property "start" missing in item '.concat(e))}isVisible(e){if(this.cluster)return!1;const r=this.width*e.getMillisecondsPerPixel();return this.data.start.getTime()+r>e.start&&this.data.start<e.end}_createDomElement(){this.dom||(this.dom={},this.dom.point=document.createElement("div"),this.dom.content=document.createElement("div"),this.dom.content.className="vis-item-content",this.dom.point.appendChild(this.dom.content),this.dom.dot=document.createElement("div"),this.dom.point.appendChild(this.dom.dot),this.dom.point["vis-item"]=this,this.dirty=!0)}_appendDomElement(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.point.parentNode){const e=this.parent.dom.foreground;if(!e)throw new Error("Cannot redraw item: parent has no foreground container element");e.appendChild(this.dom.point)}this.displayed=!0}_updateDirtyDomComponents(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.point),this._updateStyle(this.dom.point);const e=this.editable.updateTime||this.editable.updateGroup,r=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+(e?" vis-editable":" vis-readonly");this.dom.point.className="vis-item vis-point".concat(r),this.dom.dot.className="vis-item vis-dot".concat(r)}}_getDomComponentsSizes(){return{dot:{width:this.dom.dot.offsetWidth,height:this.dom.dot.offsetHeight},content:{width:this.dom.content.offsetWidth,height:this.dom.content.offsetHeight},point:{width:this.dom.point.offsetWidth,height:this.dom.point.offsetHeight}}}_updateDomComponentsSizes(e){this.props.dot.width=e.dot.width,this.props.dot.height=e.dot.height,this.props.content.height=e.content.height,this.options.rtl?this.dom.content.style.marginRight="".concat(this.props.dot.width/2,"px"):this.dom.content.style.marginLeft="".concat(this.props.dot.width/2,"px"),this.width=e.point.width,this.height=e.point.height,this.dom.dot.style.top="".concat((this.height-this.props.dot.height)/2,"px");const r=this.props.dot.width,i=this.options.rtl?r/2:r/2*-1;this.dom.dot.style.transform="translateX(".concat(i,"px"),this.dirty=!1}_repaintDomAdditionals(){this._repaintOnItemUpdateTimeTooltip(this.dom.point),this._repaintDragCenter(),this._repaintDeleteButton(this.dom.point)}redraw(e){var r,i,n,s;let a;const o=[D(r=this._createDomElement).call(r,this),D(i=this._appendDomElement).call(i,this),D(n=this._updateDirtyDomComponents).call(n,this),()=>{this.dirty&&(a=this._getDomComponentsSizes())},()=>{if(this.dirty){var l;D(l=this._updateDomComponentsSizes).call(l,this)(a)}},D(s=this._repaintDomAdditionals).call(s,this)];if(e)return o;{let l;return M(o).call(o,u=>{l=u()}),l}}repositionXY(){const e=this.options.rtl;(function(i,n,s){var a;let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(n===void 0&&s===void 0)return;const l=o?n*-1:n;if(s===void 0){i.style.transform="translateX(".concat(l,"px)");return}if(n===void 0){i.style.transform="translateY(".concat(s,"px)");return}i.style.transform=Ge(a="translate(".concat(l,"px, ")).call(a,s,"px)")})(this.dom.point,this.pointX,this.pointY,e)}show(e){if(!this.displayed)return this.redraw(e)}hide(){this.displayed&&(this.dom.point.parentNode&&this.dom.point.parentNode.removeChild(this.dom.point),this.displayed=!1)}repositionX(){const e=this.conversion.toScreen(this.data.start);this.pointX=e,this.options.rtl?this.right=e-this.props.dot.width:this.left=e-this.props.dot.width,this.repositionXY()}repositionY(){this.options.orientation.item=="top"?this.pointY=this.top:this.pointY=this.parent.height-this.top-this.height,this.repositionXY()}getWidthLeft(){return this.props.dot.width}getWidthRight(){return this.props.dot.width}}class Gi extends us{constructor(e,r,i){if(super(e,r,i),this.props={content:{width:0}},this.overflow=!1,e){if(e.start==null)throw new Error('Property "start" missing in item '.concat(e.id));if(e.end==null)throw new Error('Property "end" missing in item '.concat(e.id))}}isVisible(e){return this.cluster?!1:this.data.start<e.end&&this.data.end>e.start}_createDomElement(){this.dom||(this.dom={},this.dom.box=document.createElement("div"),this.dom.frame=document.createElement("div"),this.dom.frame.className="vis-item-overflow",this.dom.box.appendChild(this.dom.frame),this.dom.visibleFrame=document.createElement("div"),this.dom.visibleFrame.className="vis-item-visible-frame",this.dom.box.appendChild(this.dom.visibleFrame),this.dom.content=document.createElement("div"),this.dom.content.className="vis-item-content",this.dom.frame.appendChild(this.dom.content),this.dom.box["vis-item"]=this,this.dirty=!0)}_appendDomElement(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){const e=this.parent.dom.foreground;if(!e)throw new Error("Cannot redraw item: parent has no foreground container element");e.appendChild(this.dom.box)}this.displayed=!0}_updateDirtyDomComponents(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.box),this._updateStyle(this.dom.box);const e=this.editable.updateTime||this.editable.updateGroup,r=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+(e?" vis-editable":" vis-readonly");this.dom.box.className=this.baseClassName+r,this.dom.content.style.maxWidth="none"}}_getDomComponentsSizes(){return this.overflow=window.getComputedStyle(this.dom.frame).overflow!=="hidden",this.whiteSpace=window.getComputedStyle(this.dom.content).whiteSpace!=="nowrap",{content:{width:this.dom.content.offsetWidth},box:{height:this.dom.box.offsetHeight}}}_updateDomComponentsSizes(e){this.props.content.width=e.content.width,this.height=e.box.height,this.dom.content.style.maxWidth="",this.dirty=!1}_repaintDomAdditionals(){this._repaintOnItemUpdateTimeTooltip(this.dom.box),this._repaintDeleteButton(this.dom.box),this._repaintDragCenter(),this._repaintDragLeft(),this._repaintDragRight()}redraw(e){var r,i,n,s;let a;const o=[D(r=this._createDomElement).call(r,this),D(i=this._appendDomElement).call(i,this),D(n=this._updateDirtyDomComponents).call(n,this),()=>{if(this.dirty){var l;a=D(l=this._getDomComponentsSizes).call(l,this)()}},()=>{if(this.dirty){var l;D(l=this._updateDomComponentsSizes).call(l,this)(a)}},D(s=this._repaintDomAdditionals).call(s,this)];if(e)return o;{let l;return M(o).call(o,u=>{l=u()}),l}}show(e){if(!this.displayed)return this.redraw(e)}hide(){if(this.displayed){const e=this.dom.box;e.parentNode&&e.parentNode.removeChild(e),this.displayed=!1}}repositionX(e){const r=this.parent.width;let i=this.conversion.toScreen(this.data.start),n=this.conversion.toScreen(this.data.end);const s=this.data.align===void 0?this.options.align:this.data.align;let a,o;this.data.limitSize!==!1&&(e===void 0||e===!0)&&(i<-r&&(i=-r),n>2*r&&(n=2*r));const l=Math.max(Math.round((n-i)*1e3)/1e3,1);switch(this.overflow?(this.options.rtl?this.right=i:this.left=i,this.width=l+this.props.content.width,o=this.props.content.width):(this.options.rtl?this.right=i:this.left=i,this.width=l,o=Math.min(n-i,this.props.content.width)),this.options.rtl?this.dom.box.style.transform="translateX(".concat(this.right*-1,"px)"):this.dom.box.style.transform="translateX(".concat(this.left,"px)"),this.dom.box.style.width="".concat(l,"px"),this.whiteSpace&&(this.height=this.dom.box.offsetHeight),s){case"left":this.dom.content.style.transform="translateX(0)";break;case"right":if(this.options.rtl){const u=Math.max(l-o,0)*-1;this.dom.content.style.transform="translateX(".concat(u,"px)")}else this.dom.content.style.transform="translateX(".concat(Math.max(l-o,0),"px)");break;case"center":if(this.options.rtl){const u=Math.max((l-o)/2,0)*-1;this.dom.content.style.transform="translateX(".concat(u,"px)")}else this.dom.content.style.transform="translateX(".concat(Math.max((l-o)/2,0),"px)");break;default:if(this.overflow?n>0?a=Math.max(-i,0):a=-o:i<0?a=-i:a=0,this.options.rtl){const u=a*-1;this.dom.content.style.transform="translateX(".concat(u,"px)")}else this.dom.content.style.transform="translateX(".concat(a,"px)")}}repositionY(){const e=this.options.orientation.item,r=this.dom.box;e=="top"?r.style.top="".concat(this.top,"px"):r.style.top="".concat(this.parent.height-this.top-this.height,"px")}_repaintDragLeft(){if((this.selected||this.options.itemsAlwaysDraggable.range)&&this.editable.updateTime&&!this.dom.dragLeft){const e=document.createElement("div");e.className="vis-drag-left",e.dragLeftItem=this,this.dom.box.appendChild(e),this.dom.dragLeft=e}else!this.selected&&!this.options.itemsAlwaysDraggable.range&&this.dom.dragLeft&&(this.dom.dragLeft.parentNode&&this.dom.dragLeft.parentNode.removeChild(this.dom.dragLeft),this.dom.dragLeft=null)}_repaintDragRight(){if((this.selected||this.options.itemsAlwaysDraggable.range)&&this.editable.updateTime&&!this.dom.dragRight){const e=document.createElement("div");e.className="vis-drag-right",e.dragRightItem=this,this.dom.box.appendChild(e),this.dom.dragRight=e}else!this.selected&&!this.options.itemsAlwaysDraggable.range&&this.dom.dragRight&&(this.dom.dragRight.parentNode&&this.dom.dragRight.parentNode.removeChild(this.dom.dragRight),this.dom.dragRight=null)}}Gi.prototype.baseClassName="vis-item vis-range";class on extends us{constructor(e,r,i){if(super(e,r,i),this.props={content:{width:0}},this.overflow=!1,e){if(e.start==null)throw new Error('Property "start" missing in item '.concat(e.id));if(e.end==null)throw new Error('Property "end" missing in item '.concat(e.id))}}isVisible(e){return this.data.start<e.end&&this.data.end>e.start}_createDomElement(){this.dom||(this.dom={},this.dom.box=document.createElement("div"),this.dom.frame=document.createElement("div"),this.dom.frame.className="vis-item-overflow",this.dom.box.appendChild(this.dom.frame),this.dom.content=document.createElement("div"),this.dom.content.className="vis-item-content",this.dom.frame.appendChild(this.dom.content),this.dirty=!0)}_appendDomElement(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){const e=this.parent.dom.background;if(!e)throw new Error("Cannot redraw item: parent has no background container element");e.appendChild(this.dom.box)}this.displayed=!0}_updateDirtyDomComponents(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.content),this._updateStyle(this.dom.box);const e=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"");this.dom.box.className=this.baseClassName+e}}_getDomComponentsSizes(){return this.overflow=window.getComputedStyle(this.dom.content).overflow!=="hidden",{content:{width:this.dom.content.offsetWidth}}}_updateDomComponentsSizes(e){this.props.content.width=e.content.width,this.height=0,this.dirty=!1}_repaintDomAdditionals(){}redraw(e){var r,i,n,s;let a;const o=[D(r=this._createDomElement).call(r,this),D(i=this._appendDomElement).call(i,this),D(n=this._updateDirtyDomComponents).call(n,this),()=>{if(this.dirty){var l;a=D(l=this._getDomComponentsSizes).call(l,this)()}},()=>{if(this.dirty){var l;D(l=this._updateDomComponentsSizes).call(l,this)(a)}},D(s=this._repaintDomAdditionals).call(s,this)];if(e)return o;{let l;return M(o).call(o,u=>{l=u()}),l}}repositionY(){let e;const r=this.options.orientation.item;if(this.data.subgroup!==void 0){const i=this.data.subgroup;this.dom.box.style.height="".concat(this.parent.subgroups[i].height,"px"),r=="top"?this.dom.box.style.top="".concat(this.parent.top+this.parent.subgroups[i].top,"px"):this.dom.box.style.top="".concat(this.parent.top+this.parent.height-this.parent.subgroups[i].top-this.parent.subgroups[i].height,"px"),this.dom.box.style.bottom=""}else this.parent instanceof kG?(e=Math.max(this.parent.height,this.parent.itemSet.body.domProps.center.height,this.parent.itemSet.body.domProps.centerContainer.height),this.dom.box.style.bottom=r=="bottom"?"0":"",this.dom.box.style.top=r=="top"?"0":""):(e=this.parent.height,this.dom.box.style.top="".concat(this.parent.top,"px"),this.dom.box.style.bottom="");this.dom.box.style.height="".concat(e,"px")}}on.prototype.baseClassName="vis-item vis-background";on.prototype.stack=!1;on.prototype.show=Gi.prototype.show;on.prototype.hide=Gi.prototype.hide;on.prototype.repositionX=Gi.prototype.repositionX;class see{constructor(e,r){this.container=e,this.overflowMethod=r||"cap",this.x=0,this.y=0,this.padding=5,this.hidden=!1,this.frame=document.createElement("div"),this.frame.className="vis-tooltip",this.container.appendChild(this.frame)}setPosition(e,r){this.x=Ct(e),this.y=Ct(r)}setText(e){e instanceof Element?(this.frame.innerHTML="",this.frame.appendChild(e)):this.frame.innerHTML=S.xss(e)}show(e){if(e===void 0&&(e=!0),e===!0){var r=this.frame.clientHeight,i=this.frame.clientWidth,n=this.frame.parentNode.clientHeight,s=this.frame.parentNode.clientWidth,a=0,o=0;if(this.overflowMethod=="flip"||this.overflowMethod=="none"){let l=!1,u=!0;this.overflowMethod=="flip"&&(this.y-r<this.padding&&(u=!1),this.x+i>s-this.padding&&(l=!0)),l?a=this.x-i:a=this.x,u?o=this.y-r:o=this.y}else o=this.y-r,o+r+this.padding>n&&(o=n-r-this.padding),o<this.padding&&(o=this.padding),a=this.x,a+i+this.padding>s&&(a=s-i-this.padding),a<this.padding&&(a=this.padding);this.frame.style.left=a+"px",this.frame.style.top=o+"px",this.frame.style.visibility="visible",this.hidden=!1}else this.hide()}hide(){this.hidden=!0,this.frame.style.left="0",this.frame.style.top="0",this.frame.style.visibility="hidden"}destroy(){this.frame.parentNode.removeChild(this.frame)}}var RF={},xF;function aee(){if(xF)return RF;xF=1;var t=Y(),e=oi().every,r=ss(),i=r("every");return t({target:"Array",proto:!0,forced:!i},{every:function(s){return e(this,s,arguments.length>1?arguments[1]:void 0)}}),RF}var zb,PF;function oee(){if(PF)return zb;PF=1,aee();var t=nt();return zb=t("Array","every"),zb}var Kb,DF;function lee(){if(DF)return Kb;DF=1;var t=je(),e=oee(),r=Array.prototype;return Kb=function(i){var n=i.every;return i===r||t(r,i)&&n===r.every?e:n},Kb}var Xb,IF;function uee(){if(IF)return Xb;IF=1;var t=lee();return Xb=t,Xb}var Zb,CF;function cee(){return CF||(CF=1,Zb=uee()),Zb}var hee=cee(),dee=Q(hee);class Sl extends us{constructor(e,r,i){const n=Ai({},{fitOnDoubleClick:!0},i,{editable:!1});if(super(e,r,n),this.props={content:{width:0,height:0}},!e||e.uiItems==null)throw new Error('Property "uiItems" missing in item '+e.id);this.id=En(),this.group=e.group,this._setupRange(),this.emitter=this.data.eventEmitter,this.range=this.data.range,this.attached=!1,this.isCluster=!0,this.data.isCluster=!0}hasItems(){return this.data.uiItems&&this.data.uiItems.length&&this.attached}setUiItems(e){this.detach(),this.data.uiItems=e,this._setupRange(),this.attach()}isVisible(e){const r=this.data.end?this.data.end-this.data.start:0,i=this.width*e.getMillisecondsPerPixel(),n=Math.max(this.data.start.getTime()+r,this.data.start.getTime()+i);return this.data.start<e.end&&n>e.start&&this.hasItems()}getData(){return{isCluster:!0,id:this.id,items:this.data.items||[],data:this.data}}redraw(e){var r,i,n,s,a,o,l,u=[D(r=this._createDomElement).call(r,this),D(i=this._appendDomElement).call(i,this),D(n=this._updateDirtyDomComponents).call(n,this),D(s=function(){this.dirty&&(l=this._getDomComponentsSizes())}).call(s,this),D(a=function(){if(this.dirty){var h;D(h=this._updateDomComponentsSizes).call(h,this)(l)}}).call(a,this),D(o=this._repaintDomAdditionals).call(o,this)];if(e)return u;var c;return M(u).call(u,function(h){c=h()}),c}show(){this.displayed||this.redraw()}hide(){if(this.displayed){var e=this.dom;e.box.parentNode&&e.box.parentNode.removeChild(e.box),this.options.showStipes&&(e.line.parentNode&&e.line.parentNode.removeChild(e.line),e.dot.parentNode&&e.dot.parentNode.removeChild(e.dot)),this.displayed=!1}}repositionX(){let e=this.conversion.toScreen(this.data.start),r=this.data.end?this.conversion.toScreen(this.data.end):0;if(r)this.repositionXWithRanges(e,r);else{let i=this.data.align===void 0?this.options.align:this.data.align;this.repositionXWithoutRanges(e,i)}this.options.showStipes&&(this.dom.line.style.display=this._isStipeVisible()?"block":"none",this.dom.dot.style.display=this._isStipeVisible()?"block":"none",this._isStipeVisible()&&this.repositionStype(e,r))}repositionStype(e,r){this.dom.line.style.display="block",this.dom.dot.style.display="block";const i=this.dom.line.offsetWidth,n=this.dom.dot.offsetWidth;if(r){const s=i+e+(r-e)/2,a=s-n/2,o=this.options.rtl?s*-1:s,l=this.options.rtl?a*-1:a;this.dom.line.style.transform="translateX(".concat(o,"px)"),this.dom.dot.style.transform="translateX(".concat(l,"px)")}else{const s=this.options.rtl?e*-1:e,a=this.options.rtl?(e-n/2)*-1:e-n/2;this.dom.line.style.transform="translateX(".concat(s,"px)"),this.dom.dot.style.transform="translateX(".concat(a,"px)")}}repositionXWithoutRanges(e,r){r=="right"?this.options.rtl?(this.right=e-this.width,this.dom.box.style.right=this.right+"px"):(this.left=e-this.width,this.dom.box.style.left=this.left+"px"):r=="left"?this.options.rtl?(this.right=e,this.dom.box.style.right=this.right+"px"):(this.left=e,this.dom.box.style.left=this.left+"px"):this.options.rtl?(this.right=e-this.width/2,this.dom.box.style.right=this.right+"px"):(this.left=e-this.width/2,this.dom.box.style.left=this.left+"px")}repositionXWithRanges(e,r){let i=Math.round(Math.max(r-e+.5,1));this.options.rtl?this.right=e:this.left=e,this.width=Math.max(i,this.minWidth||0),this.options.rtl?this.dom.box.style.right=this.right+"px":this.dom.box.style.left=this.left+"px",this.dom.box.style.width=i+"px"}repositionY(){var e=this.options.orientation.item,r=this.dom.box;if(e=="top"?r.style.top=(this.top||0)+"px":r.style.top=(this.parent.height-this.top-this.height||0)+"px",this.options.showStipes){if(e=="top")this.dom.line.style.top="0",this.dom.line.style.height=this.parent.top+this.top+1+"px",this.dom.line.style.bottom="";else{var i=this.parent.itemSet.props.height,n=i-this.parent.top-this.parent.height+this.top;this.dom.line.style.top=i-n+"px",this.dom.line.style.bottom="0"}this.dom.dot.style.top=-this.dom.dot.offsetHeight/2+"px"}}getWidthLeft(){return this.width/2}getWidthRight(){return this.width/2}move(){this.repositionX(),this.repositionY()}attach(){var e;for(let r of this.data.uiItems)r.cluster=this;this.data.items=Qe(e=this.data.uiItems).call(e,r=>r.data),this.attached=!0,this.dirty=!0}detach(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(this.hasItems()){for(let r of this.data.uiItems)delete r.cluster;this.attached=!1,e&&this.group&&(this.group.remove(this),this.group=null),this.data.items=[],this.dirty=!0}}_onDoubleClick(){this._fit()}_setupRange(){var e,r,i;const n=Qe(e=this.data.uiItems).call(e,o=>({start:o.data.start.valueOf(),end:o.data.end?o.data.end.valueOf():o.data.start.valueOf()}));this.data.min=Math.min(...Qe(n).call(n,o=>Math.min(o.start,o.end||o.start))),this.data.max=Math.max(...Qe(n).call(n,o=>Math.max(o.start,o.end||o.start)));const s=Qe(r=this.data.uiItems).call(r,o=>o.center),a=xj(s).call(s,(o,l)=>o+l,0)/this.data.uiItems.length;yG(i=this.data.uiItems).call(i,o=>o.data.end)?(this.data.start=new Date(this.data.min),this.data.end=new Date(this.data.max)):(this.data.start=new Date(a),this.data.end=null)}_getUiItems(){if(this.data.uiItems&&this.data.uiItems.length){var e;return ue(e=this.data.uiItems).call(e,r=>r.cluster===this)}return[]}_createDomElement(){if(!this.dom){if(this.dom={},this.dom.box=document.createElement("DIV"),this.dom.content=document.createElement("DIV"),this.dom.content.className="vis-item-content",this.dom.box.appendChild(this.dom.content),this.options.showStipes&&(this.dom.line=document.createElement("DIV"),this.dom.line.className="vis-cluster-line",this.dom.line.style.display="none",this.dom.dot=document.createElement("DIV"),this.dom.dot.className="vis-cluster-dot",this.dom.dot.style.display="none"),this.options.fitOnDoubleClick){var e;this.dom.box.ondblclick=D(e=Sl.prototype._onDoubleClick).call(e,this)}this.dom.box["vis-item"]=this,this.dirty=!0}}_appendDomElement(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){const i=this.parent.dom.foreground;if(!i)throw new Error("Cannot redraw item: parent has no foreground container element");i.appendChild(this.dom.box)}const e=this.parent.dom.background;if(this.options.showStipes){if(!this.dom.line.parentNode){if(!e)throw new Error("Cannot redraw item: parent has no background container element");e.appendChild(this.dom.line)}if(!this.dom.dot.parentNode){var r=this.parent.dom.axis;if(!e)throw new Error("Cannot redraw item: parent has no axis container element");r.appendChild(this.dom.dot)}}this.displayed=!0}_updateDirtyDomComponents(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.box),this._updateStyle(this.dom.box);const e=this.baseClassName+" "+(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+" vis-readonly";this.dom.box.className="vis-item "+e,this.options.showStipes&&(this.dom.line.className="vis-item vis-cluster-line "+(this.selected?" vis-selected":""),this.dom.dot.className="vis-item vis-cluster-dot "+(this.selected?" vis-selected":"")),this.data.end&&(this.dom.content.style.maxWidth="none")}}_getDomComponentsSizes(){const e={previous:{right:this.dom.box.style.right,left:this.dom.box.style.left},box:{width:this.dom.box.offsetWidth,height:this.dom.box.offsetHeight}};return this.options.showStipes&&(e.dot={height:this.dom.dot.offsetHeight,width:this.dom.dot.offsetWidth},e.line={width:this.dom.line.offsetWidth}),e}_updateDomComponentsSizes(e){this.options.rtl?this.dom.box.style.right="0px":this.dom.box.style.left="0px",this.data.end?this.minWidth=e.box.width:this.width=e.box.width,this.height=e.box.height,this.options.rtl?this.dom.box.style.right=e.previous.right:this.dom.box.style.left=e.previous.left,this.dirty=!1}_repaintDomAdditionals(){this._repaintOnItemUpdateTimeTooltip(this.dom.box)}_isStipeVisible(){return this.minWidth>=this.width||!this.data.end}_getFitRange(){const e=.05*(this.data.max-this.data.min)/2;return{fitStart:this.data.min-e,fitEnd:this.data.max+e}}_fit(){if(this.emitter){const{fitStart:e,fitEnd:r}=this._getFitRange(),i={start:new Date(e),end:new Date(r),animation:!0};this.emitter.emit("fit",i)}}_getItemData(){return this.data}}Sl.prototype.baseClassName="vis-item vis-range vis-cluster";const fee="__ungrouped__",pee={UNGROUPED:fee};class vee{constructor(e){this.itemSet=e,this.groups={},this.cache={},this.cache[-1]=[]}createClusterItem(e,r,i){return new Sl(e,r,i)}setItems(e,r){this.items=e||[],this.dataChanged=!0,this.applyOnChangedLevel=!1,r&&r.applyOnChangedLevel&&(this.applyOnChangedLevel=r.applyOnChangedLevel)}updateData(){this.dataChanged=!0,this.applyOnChangedLevel=!1}getClusters(e,r,i){let{maxItems:n,clusterCriteria:s}=typeof i=="boolean"?{}:i;s||(s=()=>!0),n=n||1;let a=-1,o=2,l=0;if(r>0){if(r>=1)return[];a=Math.abs(Math.round(Math.log(100/r)/Math.log(o))),l=Math.abs(Math.pow(o,a))}if(this.dataChanged){const c=a!=this.cacheLevel;(!this.applyOnChangedLevel||c)&&(this._dropLevelsCache(),this._filterData())}this.cacheLevel=a;let u=this.cache[a];if(!u){u=[];for(let c in this.groups){if(!Object.prototype.hasOwnProperty.call(this.groups,c))continue;const h=this.groups[c],d=h.length;let f=0;for(;f<d;){let p=h[f],v=1,m=f-1;for(;m>=0&&p.center-h[m].center<l/2;)!h[m].cluster&&s(p.data,h[m].data)&&v++,m--;let y=f+1;for(;y<h.length&&h[y].center-p.center<l/2;)s(p.data,h[y].data)&&v++,y++;let g=u.length-1;for(;g>=0&&p.center-u[g].center<l;)p.group==u[g].group&&s(p.data,u[g].data)&&v++,g--;if(v>n){const O=v-n+1,_=[];let w=f;for(;_.length<O&&w<h.length;)s(h[f].data,h[w].data)&&_.push(h[w]),w++;const E=this.itemSet.getGroupId(p.data),$=this.itemSet.groups[E]||this.itemSet.groups[pee.UNGROUPED];let b=this._getClusterForItems(_,$,e,i);u.push(b),f+=O}else delete p.cluster,f+=1}}this.cache[a]=u}return u}_filterData(){const e={};this.groups=e;for(const i of L1(this.items)){const n=i.parent?i.parent.groupId:"";let s=e[n];s||(s=[],e[n]=s),s.push(i),i.data.start&&(i.data.end?i.center=(i.data.start.valueOf()+i.data.end.valueOf())/2:i.center=i.data.start.valueOf())}for(let i in e){var r;Object.prototype.hasOwnProperty.call(e,i)&&Je(r=e[i]).call(r,(n,s)=>n.center-s.center)}this.dataChanged=!1}_getClusterForItems(e,r,i,n){var s;const a=Qe(s=i||[]).call(s,p=>{var v;return{cluster:p,itemsIds:new xo(Qe(v=p.data.uiItems).call(v,m=>m.id))}});let o;if(a.length){for(let p of a)if(p.itemsIds.size===e.length&&dee(e).call(e,v=>p.itemsIds.has(v.id))){o=p.cluster;break}}if(o)return o.setUiItems(e),o.group!==r&&(o.group&&o.group.remove(o),r&&(r.add(o),o.group=r)),o;let l=n.titleTemplate||"";const u={toScreen:this.itemSet.body.util.toScreen,toTime:this.itemSet.body.util.toTime},c=l.replace(/{count}/,e.length),h='<div title="'+c+'">'+e.length+"</div>",d=Ai({},n,this.itemSet.options),f={content:h,title:c,group:r,uiItems:e,eventEmitter:this.itemSet.body.emitter,range:this.itemSet.body.range};return o=this.createClusterItem(f,u,d),r&&(r.add(o),o.group=r),o.attach(),o}_dropLevelsCache(){this.cache={},this.cacheLevel=-1,this.cache[this.cacheLevel]=[]}}const un="__ungrouped__",Vr="__background__";class Bi extends li{constructor(e,r){super(),this.body=e,this.defaultOptions={type:null,orientation:{item:"bottom"},align:"auto",stack:!0,stackSubgroups:!0,groupOrderSwap(n,s){const a=s.order;s.order=n.order,n.order=a},groupOrder:"order",selectable:!0,multiselect:!1,longSelectPressTime:251,itemsAlwaysDraggable:{item:!1,range:!1},editable:{updateTime:!1,updateGroup:!1,add:!1,remove:!1,overrideItems:!1},groupEditable:{order:!1,add:!1,remove:!1},snap:ji.snap,onDropObjectOnItem(n,s,a){a(s)},onAdd(n,s){s(n)},onUpdate(n,s){s(n)},onMove(n,s){s(n)},onRemove(n,s){s(n)},onMoving(n,s){s(n)},onAddGroup(n,s){s(n)},onMoveGroup(n,s){s(n)},onRemoveGroup(n,s){s(n)},margin:{item:{horizontal:10,vertical:10},axis:20},showTooltips:!0,tooltip:{followMouse:!1,overflowMethod:"flip",delay:500},tooltipOnItemUpdateTime:!1},this.options=S.extend({},this.defaultOptions),this.options.rtl=r.rtl,this.options.onTimeout=r.onTimeout,this.conversion={toScreen:e.util.toScreen,toTime:e.util.toTime},this.dom={},this.props={},this.hammer=null;const i=this;this.itemsData=null,this.groupsData=null,this.itemsSettingTime=null,this.initialItemSetDrawn=!1,this.userContinueNotBail=null,this.sequentialSelection=!1,this.itemListeners={add(n,s){i._onAdd(s.items),i.options.cluster&&i.clusterGenerator.setItems(i.items,{applyOnChangedLevel:!1}),i.redraw()},update(n,s){i._onUpdate(s.items),i.options.cluster&&i.clusterGenerator.setItems(i.items,{applyOnChangedLevel:!1}),i.redraw()},remove(n,s){i._onRemove(s.items),i.options.cluster&&i.clusterGenerator.setItems(i.items,{applyOnChangedLevel:!1}),i.redraw()}},this.groupListeners={add(n,s,a){if(i._onAddGroups(s.items),i.groupsData&&i.groupsData.length>0){var o;const l=i.groupsData.getDataSet();M(o=l.get()).call(o,u=>{if(u.nestedGroups){var c;u.showNested!=!1&&(u.showNested=!0);let h=[];M(c=u.nestedGroups).call(c,d=>{const f=l.get(d);f&&(f.nestedInGroup=u.id,u.showNested==!1&&(f.visible=!1),h=Ge(h).call(h,f))}),l.update(h,a)}})}},update(n,s){i._onUpdateGroups(s.items)},remove(n,s){i._onRemoveGroups(s.items)}},this.items={},this.groups={},this.groupIds=[],this.selection=[],this.popup=null,this.popupTimer=null,this.touchParams={},this.groupTouchParams={group:null,isDragging:!1},this._create(),this.setOptions(r),this.clusters=[]}_create(){var e,r,i,n,s,a,o,l,u,c,h,d,f,p,v;const m=document.createElement("div");m.className="vis-itemset",m["vis-itemset"]=this,this.dom.frame=m;const y=document.createElement("div");y.className="vis-background",m.appendChild(y),this.dom.background=y;const g=document.createElement("div");g.className="vis-foreground",m.appendChild(g),this.dom.foreground=g;const O=document.createElement("div");O.className="vis-axis",this.dom.axis=O;const _=document.createElement("div");_.className="vis-labelset",this.dom.labelSet=_,this._updateUngrouped();const w=new kG(Vr,null,this);w.show(),this.groups[Vr]=w,this.hammer=new ft(this.body.dom.centerContainer),this.hammer.on("hammer.input",E=>{E.isFirst&&this._onTouch(E)}),this.hammer.on("panstart",D(e=this._onDragStart).call(e,this)),this.hammer.on("panmove",D(r=this._onDrag).call(r,this)),this.hammer.on("panend",D(i=this._onDragEnd).call(i,this)),this.hammer.get("pan").set({threshold:5,direction:ft.ALL}),this.hammer.get("press").set({time:1e4}),this.hammer.on("tap",D(n=this._onSelectItem).call(n,this)),this.hammer.on("press",D(s=this._onMultiSelectItem).call(s,this)),this.hammer.get("press").set({time:1e4}),this.hammer.on("doubletap",D(a=this._onAddItem).call(a,this)),this.options.rtl?this.groupHammer=new ft(this.body.dom.rightContainer):this.groupHammer=new ft(this.body.dom.leftContainer),this.groupHammer.on("tap",D(o=this._onGroupClick).call(o,this)),this.groupHammer.on("panstart",D(l=this._onGroupDragStart).call(l,this)),this.groupHammer.on("panmove",D(u=this._onGroupDrag).call(u,this)),this.groupHammer.on("panend",D(c=this._onGroupDragEnd).call(c,this)),this.groupHammer.get("pan").set({threshold:5,direction:ft.DIRECTION_VERTICAL}),this.body.dom.centerContainer.addEventListener("mouseover",D(h=this._onMouseOver).call(h,this)),this.body.dom.centerContainer.addEventListener("mouseout",D(d=this._onMouseOut).call(d,this)),this.body.dom.centerContainer.addEventListener("mousemove",D(f=this._onMouseMove).call(f,this)),this.body.dom.centerContainer.addEventListener("contextmenu",D(p=this._onDragEnd).call(p,this)),this.body.dom.centerContainer.addEventListener("mousewheel",D(v=this._onMouseWheel).call(v,this)),this.show()}setOptions(e){if(e){var r,i;const n=["type","rtl","align","order","stack","stackSubgroups","selectable","multiselect","sequentialSelection","multiselectPerGroup","longSelectPressTime","groupOrder","dataAttributes","template","groupTemplate","visibleFrameTemplate","hide","snap","groupOrderSwap","showTooltips","tooltip","tooltipOnItemUpdateTime","groupHeightMode","onTimeout"];S.selectiveExtend(n,this.options,e),"itemsAlwaysDraggable"in e&&(typeof e.itemsAlwaysDraggable=="boolean"?(this.options.itemsAlwaysDraggable.item=e.itemsAlwaysDraggable,this.options.itemsAlwaysDraggable.range=!1):typeof e.itemsAlwaysDraggable=="object"&&(S.selectiveExtend(["item","range"],this.options.itemsAlwaysDraggable,e.itemsAlwaysDraggable),this.options.itemsAlwaysDraggable.item||(this.options.itemsAlwaysDraggable.range=!1))),"sequentialSelection"in e&&typeof e.sequentialSelection=="boolean"&&(this.options.sequentialSelection=e.sequentialSelection),"orientation"in e&&(typeof e.orientation=="string"?this.options.orientation.item=e.orientation==="top"?"top":"bottom":typeof e.orientation=="object"&&"item"in e.orientation&&(this.options.orientation.item=e.orientation.item)),"margin"in e&&(typeof e.margin=="number"?(this.options.margin.axis=e.margin,this.options.margin.item.horizontal=e.margin,this.options.margin.item.vertical=e.margin):typeof e.margin=="object"&&(S.selectiveExtend(["axis"],this.options.margin,e.margin),"item"in e.margin&&(typeof e.margin.item=="number"?(this.options.margin.item.horizontal=e.margin.item,this.options.margin.item.vertical=e.margin.item):typeof e.margin.item=="object"&&S.selectiveExtend(["horizontal","vertical"],this.options.margin.item,e.margin.item)))),M(r=["locale","locales"]).call(r,a=>{a in e&&(this.options[a]=e[a])}),"editable"in e&&(typeof e.editable=="boolean"?(this.options.editable.updateTime=e.editable,this.options.editable.updateGroup=e.editable,this.options.editable.add=e.editable,this.options.editable.remove=e.editable,this.options.editable.overrideItems=!1):typeof e.editable=="object"&&S.selectiveExtend(["updateTime","updateGroup","add","remove","overrideItems"],this.options.editable,e.editable)),"groupEditable"in e&&(typeof e.groupEditable=="boolean"?(this.options.groupEditable.order=e.groupEditable,this.options.groupEditable.add=e.groupEditable,this.options.groupEditable.remove=e.groupEditable):typeof e.groupEditable=="object"&&S.selectiveExtend(["order","add","remove"],this.options.groupEditable,e.groupEditable));const s=a=>{const o=e[a];if(o){if(typeof o!="function"){var l;throw new Error(Ge(l="option ".concat(a," must be a function ")).call(l,a,"(item, callback)"))}this.options[a]=o}};M(i=["onDropObjectOnItem","onAdd","onUpdate","onRemove","onMove","onMoving","onAddGroup","onMoveGroup","onRemoveGroup"]).call(i,s),e.cluster?(Ai(this.options,{cluster:e.cluster}),this.clusterGenerator||(this.clusterGenerator=new vee(this)),this.clusterGenerator.setItems(this.items,{applyOnChangedLevel:!1}),this.markDirty({refreshItems:!0,restackGroups:!0}),this.redraw()):this.clusterGenerator?(this._detachAllClusters(),this.clusters=[],this.clusterGenerator=null,this.options.cluster=void 0,this.markDirty({refreshItems:!0,restackGroups:!0}),this.redraw()):this.markDirty()}}markDirty(e){this.groupIds=[],e&&(e.refreshItems&&M(S).call(S,this.items,r=>{r.dirty=!0,r.displayed&&r.redraw()}),e.restackGroups&&M(S).call(S,this.groups,(r,i)=>{i!==Vr&&(r.stackDirty=!0)}))}destroy(){this.clearPopupTimer(),this.hide(),this.setItems(null),this.setGroups(null),this.hammer&&this.hammer.destroy(),this.groupHammer&&this.groupHammer.destroy(),this.hammer=null,this.body=null,this.conversion=null}hide(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame),this.dom.axis.parentNode&&this.dom.axis.parentNode.removeChild(this.dom.axis),this.dom.labelSet.parentNode&&this.dom.labelSet.parentNode.removeChild(this.dom.labelSet)}show(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame),this.dom.axis.parentNode||this.body.dom.backgroundVertical.appendChild(this.dom.axis),this.dom.labelSet.parentNode||(this.options.rtl?this.body.dom.right.appendChild(this.dom.labelSet):this.body.dom.left.appendChild(this.dom.labelSet))}setPopupTimer(e){if(this.clearPopupTimer(),e){const r=this.options.tooltip.delay||typeof this.options.tooltip.delay=="number"?this.options.tooltip.delay:500;this.popupTimer=vt(function(){e.show()},r)}}clearPopupTimer(){this.popupTimer!=null&&(clearTimeout(this.popupTimer),this.popupTimer=null)}setSelection(e){var r;e==null&&(e=[]),fe(e)||(e=[e]);const i=ue(r=this.selection).call(r,n=>be(e).call(e,n)===-1);for(let n of i){const s=this.getItemById(n);s&&s.unselect()}this.selection=[...e];for(let n of e){const s=this.getItemById(n);s&&s.select()}}getSelection(){var e;return Ge(e=this.selection).call(e,[])}getVisibleItems(){const e=this.body.range.getRange();let r,i;this.options.rtl?(r=this.body.util.toScreen(e.start),i=this.body.util.toScreen(e.end)):(i=this.body.util.toScreen(e.start),r=this.body.util.toScreen(e.end));const n=[];for(const s in this.groups){if(!Object.prototype.hasOwnProperty.call(this.groups,s))continue;const a=this.groups[s],o=a.isVisible?a.visibleItems:[];for(const l of o)this.options.rtl?l.right<i&&l.right+l.width>r&&n.push(l.id):l.left<r&&l.left+l.width>i&&n.push(l.id)}return n}getItemsAtCurrentTime(e){let r,i;this.options.rtl?(r=this.body.util.toScreen(e),i=this.body.util.toScreen(e)):(i=this.body.util.toScreen(e),r=this.body.util.toScreen(e));const n=[];for(const s in this.groups){if(!Object.prototype.hasOwnProperty.call(this.groups,s))continue;const a=this.groups[s],o=a.isVisible?a.visibleItems:[];for(const l of o)this.options.rtl?l.right<i&&l.right+l.width>r&&n.push(l.id):l.left<r&&l.left+l.width>i&&n.push(l.id)}return n}getVisibleGroups(){const e=[];for(const r in this.groups){if(!Object.prototype.hasOwnProperty.call(this.groups,r))continue;this.groups[r].isVisible&&e.push(r)}return e}getItemById(e){var r;return this.items[e]||mJ(r=this.clusters).call(r,i=>i.id===e)}_deselect(e){const r=this.selection;for(let i=0,n=r.length;i<n;i++)if(r[i]==e){Et(r).call(r,i,1);break}}redraw(){const e=this.options.margin,r=this.body.range,i=S.option.asSize,n=this.options,s=n.orientation.item;let a=!1;const o=this.dom.frame;this.props.top=this.body.domProps.top.height+this.body.domProps.border.top,this.options.rtl?this.props.right=this.body.domProps.right.width+this.body.domProps.border.right:this.props.left=this.body.domProps.left.width+this.body.domProps.border.left,o.className="vis-itemset",this.options.cluster&&this._clusterItems(),a=this._orderGroups()||a;const l=r.end-r.start,u=l!=this.lastVisibleInterval||this.props.width!=this.props.lastWidth,c=r.start!=this.lastRangeStart,h=n.stack!=this.lastStack,d=n.stackSubgroups!=this.lastStackSubgroups,f=u||c||h||d;this.lastVisibleInterval=l,this.lastRangeStart=r.start,this.lastStack=n.stack,this.lastStackSubgroups=n.stackSubgroups,this.props.lastWidth=this.props.width;const p=this._firstGroup(),v={item:e.item,axis:e.axis},m={item:e.item,axis:e.item.vertical/2};let y=0;const g=e.axis+e.item.vertical;this.groups[Vr].redraw(r,m,f);const O={};let _=0;if(M(S).call(S,this.groups,(E,$)=>{if($===Vr)return;const b=E==p?v:m,T=!0;O[$]=E.redraw(r,b,f,T),_=O[$].length}),_>0){const E={};for(let $=0;$<_;$++)M(S).call(S,O,(b,T)=>{E[T]=b[$]()});M(S).call(S,this.groups,($,b)=>{if(b===Vr)return;a=E[b]||a,y+=$.height}),y=Math.max(y,g)}return y=Math.max(y,g),o.style.height=i(y),this.props.width=o.offsetWidth,this.props.height=y,this.dom.axis.style.top=i(s=="top"?this.body.domProps.top.height+this.body.domProps.border.top:this.body.domProps.top.height+this.body.domProps.centerContainer.height),this.options.rtl?this.dom.axis.style.right="0":this.dom.axis.style.left="0",this.hammer.get("press").set({time:this.options.longSelectPressTime}),this.initialItemSetDrawn=!0,a=this._isResized()||a,a}_firstGroup(){const e=this.options.orientation.item=="top"?0:this.groupIds.length-1,r=this.groupIds[e];return this.groups[r]||this.groups[un]||null}_updateUngrouped(){let e=this.groups[un],r,i;if(this.groupsData){if(e){e.dispose(),delete this.groups[un];for(i in this.items){if(!Object.prototype.hasOwnProperty.call(this.items,i))continue;r=this.items[i],r.parent&&r.parent.remove(r);const n=this.getGroupId(r.data),s=this.groups[n];s&&s.add(r)||r.hide()}}}else if(!e){e=new R_(null,null,this),this.groups[un]=e;for(i in this.items)Object.prototype.hasOwnProperty.call(this.items,i)&&(r=this.items[i],e.add(r));e.show()}}getLabelSet(){return this.dom.labelSet}setItems(e){this.itemsSettingTime=new Date;const r=this;let i;const n=this.itemsData;if(!e)this.itemsData=null;else if(Lr(e))this.itemsData=kn(e);else throw new TypeError("Data must implement the interface of DataSet or DataView");if(n&&(M(S).call(S,this.itemListeners,(s,a)=>{n.off(a,s)}),n.dispose(),i=n.getIds(),this._onRemove(i)),this.itemsData){const s=this.id;M(S).call(S,this.itemListeners,(a,o)=>{r.itemsData.on(o,a,s)}),i=this.itemsData.getIds(),this._onAdd(i),this._updateUngrouped()}this.body.emitter.emit("_change",{queue:!0})}getItems(){return this.itemsData!=null?this.itemsData.rawDS:null}setGroups(e){const r=this;let i;if(this.groupsData&&(M(S).call(S,this.groupListeners,(s,a)=>{r.groupsData.off(a,s)}),i=this.groupsData.getIds(),this.groupsData=null,this._onRemoveGroups(i)),!e)this.groupsData=null;else if(Lr(e))this.groupsData=e;else throw new TypeError("Data must implement the interface of DataSet or DataView");if(this.groupsData){var n;const s=this.groupsData.getDataSet();M(n=s.get()).call(n,o=>{if(o.nestedGroups){var l;M(l=o.nestedGroups).call(l,u=>{const c=s.get(u);c.nestedInGroup=o.id,o.showNested==!1&&(c.visible=!1),s.update(c)})}});const a=this.id;M(S).call(S,this.groupListeners,(o,l)=>{r.groupsData.on(l,o,a)}),i=this.groupsData.getIds(),this._onAddGroups(i)}this._updateUngrouped(),this._order(),this.options.cluster&&(this.clusterGenerator.updateData(),this._clusterItems(),this.markDirty({refreshItems:!0,restackGroups:!0})),this.body.emitter.emit("_change",{queue:!0})}getGroups(){return this.groupsData}removeItem(e){const r=this.itemsData.get(e);r&&this.options.onRemove(r,i=>{i&&this.itemsData.remove(e)})}_getType(e){return e.type||this.options.type||(e.end?"range":"box")}getGroupId(e){return this._getType(e)=="background"&&e.group==null?Vr:this.groupsData?e.group:un}_onUpdate(e){const r=this;M(e).call(e,i=>{const n=r.itemsData.get(i);let s=r.items[i];const a=n?r._getType(n):null,o=Bi.types[a];let l;if(s&&(!o||!(s instanceof o)?(l=s.selected,r._removeItem(s),s=null):r._updateItem(s,n)),!s&&n)if(o)s=new o(n,r.conversion,r.options),s.id=i,r._addItem(s),l&&(this.selection.push(i),s.select());else throw new TypeError('Unknown item type "'.concat(a,'"'))}),this._order(),this.options.cluster&&(this.clusterGenerator.setItems(this.items,{applyOnChangedLevel:!1}),this._clusterItems()),this.body.emitter.emit("_change",{queue:!0})}_onRemove(e){let r=0;const i=this;M(e).call(e,n=>{const s=i.items[n];s&&(r++,i._removeItem(s))}),r&&(this._order(),this.body.emitter.emit("_change",{queue:!0}))}_order(){M(S).call(S,this.groups,e=>{e.order()})}_onUpdateGroups(e){this._onAddGroups(e)}_onAddGroups(e){const r=this;M(e).call(e,i=>{const n=r.groupsData.get(i);let s=r.groups[i];if(s)s.setData(n);else{if(i==un||i==Vr)throw new Error("Illegal group id. ".concat(i," is a reserved id."));const a=ml(r.options);S.extend(a,{height:null}),s=new R_(i,n,r),r.groups[i]=s;for(const o in r.items){if(!Object.prototype.hasOwnProperty.call(r.items,o))continue;const l=r.items[o];l.data.group==i&&s.add(l)}s.order(),s.show()}}),this.body.emitter.emit("_change",{queue:!0})}_onRemoveGroups(e){M(e).call(e,r=>{const i=this.groups[r];i&&(i.dispose(),delete this.groups[r])}),this.options.cluster&&(this.clusterGenerator.updateData(),this._clusterItems()),this.markDirty({restackGroups:!!this.options.cluster}),this.body.emitter.emit("_change",{queue:!0})}_orderGroups(){if(this.groupsData){let e=this.groupsData.getIds({order:this.options.groupOrder});e=this._orderNestedGroups(e);const r=!S.equalArray(e,this.groupIds);if(r){const i=this.groups;M(e).call(e,n=>{i[n].hide()}),M(e).call(e,n=>{i[n].show()}),this.groupIds=e}return r}else return!1}_orderNestedGroups(e){function r(n,s){let a=[];return M(s).call(s,o=>{if(a.push(o),n.groupsData.get(o).nestedGroups){var u;const c=Qe(u=n.groupsData.get({filter(h){return h.nestedInGroup==o},order:n.options.groupOrder})).call(u,h=>h.id);a=Ge(a).call(a,r(n,c))}}),a}const i=ue(e).call(e,n=>!this.groupsData.get(n).nestedInGroup);return r(this,i)}_addItem(e){this.items[e.id]=e;const r=this.getGroupId(e.data),i=this.groups[r];i?i&&i.data&&i.data.showNested&&(e.groupShowing=!0):e.groupShowing=!1,i&&i.add(e)}_updateItem(e,r){e.setData(r);const i=this.getGroupId(e.data),n=this.groups[i];n?n&&n.data&&n.data.showNested&&(e.groupShowing=!0):e.groupShowing=!1}_removeItem(e){var r,i;e.hide(),delete this.items[e.id];const n=be(r=this.selection).call(r,e.id);n!=-1&&Et(i=this.selection).call(i,n,1),e.parent&&e.parent.remove(e),this.popup!=null&&this.popup.hide()}_constructByEndArray(e){const r=[];for(let i=0;i<e.length;i++)e[i]instanceof Gi&&r.push(e[i]);return r}_onTouch(e){this.touchParams.item=this.itemFromTarget(e),this.touchParams.dragLeftItem=e.target.dragLeftItem||!1,this.touchParams.dragRightItem=e.target.dragRightItem||!1,this.touchParams.itemProps=null}_getGroupIndex(e){for(let r=0;r<this.groupIds.length;r++)if(e==this.groupIds[r])return r}_onDragStart(e){if(this.touchParams.itemIsDragging)return;const r=this.touchParams.item||null,i=this;let n;if(r&&(r.selected||this.options.itemsAlwaysDraggable.item)){if(this.options.editable.overrideItems&&!this.options.editable.updateTime&&!this.options.editable.updateGroup||r.editable!=null&&!r.editable.updateTime&&!r.editable.updateGroup&&!this.options.editable.overrideItems)return;const s=this.touchParams.dragLeftItem,a=this.touchParams.dragRightItem;if(this.touchParams.itemIsDragging=!0,this.touchParams.selectedItem=r,s)n={item:s,initialX:e.center.x,dragLeft:!0,data:this._cloneItemData(r.data)},this.touchParams.itemProps=[n];else if(a)n={item:a,initialX:e.center.x,dragRight:!0,data:this._cloneItemData(r.data)},this.touchParams.itemProps=[n];else if(this.options.editable.add&&(e.srcEvent.ctrlKey||e.srcEvent.metaKey))this._onDragStartAddItem(e);else{this.groupIds.length<1&&this.redraw();const o=this._getGroupIndex(r.data.group),l=this.options.itemsAlwaysDraggable.item&&!r.selected?[r.id]:this.getSelection();this.touchParams.itemProps=Qe(l).call(l,u=>{const c=i.items[u],h=i._getGroupIndex(c.data.group);return{item:c,initialX:e.center.x,groupOffset:o-h,data:this._cloneItemData(c.data)}})}e.stopPropagation()}else this.options.editable.add&&(e.srcEvent.ctrlKey||e.srcEvent.metaKey)&&this._onDragStartAddItem(e)}_onDragStartAddItem(e){const r=this.options.snap||null,i=this.dom.frame.getBoundingClientRect(),n=this.options.rtl?i.right-e.center.x+10:e.center.x-i.left-10,s=this.body.util.toTime(n),a=this.body.util.getScale(),o=this.body.util.getStep(),l=r?r(s,a,o):s,c={type:"range",start:l,end:l,content:"new item"},h=En();c[this.itemsData.idProp]=h;const d=this.groupFromTarget(e);d&&(c.group=d.groupId);const f=new Gi(c,this.conversion,this.options);f.id=h,f.data=this._cloneItemData(c),this._addItem(f),this.touchParams.selectedItem=f;const p={item:f,initialX:e.center.x,data:f.data};this.options.rtl?p.dragLeft=!0:p.dragRight=!0,this.touchParams.itemProps=[p],e.stopPropagation()}_onDrag(e){if(this.popup!=null&&this.options.showTooltips&&!this.popup.hidden){const i=this.body.dom.centerContainer,n=i.getBoundingClientRect();this.popup.setPosition(e.center.x-n.left+i.offsetLeft,e.center.y-n.top+i.offsetTop),this.popup.show()}if(this.touchParams.itemProps){var r;e.stopPropagation();const i=this,n=this.options.snap||null,s=this.body.dom.root.offsetLeft,a=this.options.rtl?s+this.body.domProps.right.width:s+this.body.domProps.left.width,o=this.body.util.getScale(),l=this.body.util.getStep(),u=this.touchParams.selectedItem,c=(this.options.editable.overrideItems||u.editable==null)&&this.options.editable.updateGroup||!this.options.editable.overrideItems&&u.editable!=null&&u.editable.updateGroup;let h=null;if(c&&u&&u.data.group!=null){const d=i.groupFromTarget(e);d&&(h=this._getGroupIndex(d.groupId))}M(r=this.touchParams.itemProps).call(r,d=>{const f=i.body.util.toTime(e.center.x-a),p=i.body.util.toTime(d.initialX-a);let v,m,y,g,O;this.options.rtl?v=-(f-p):v=f-p;let _=this._cloneItemData(d.item.data);if(d.item.editable!=null&&!d.item.editable.updateTime&&!d.item.editable.updateGroup&&!i.options.editable.overrideItems)return;if((this.options.editable.overrideItems||u.editable==null)&&this.options.editable.updateTime||!this.options.editable.overrideItems&&u.editable!=null&&u.editable.updateTime){if(d.dragLeft)this.options.rtl?_.end!=null&&(y=S.convert(d.data.end,"Date"),O=new Date(y.valueOf()+v),_.end=n?n(O,o,l):O):_.start!=null&&(m=S.convert(d.data.start,"Date"),g=new Date(m.valueOf()+v),_.start=n?n(g,o,l):g);else if(d.dragRight)this.options.rtl?_.start!=null&&(m=S.convert(d.data.start,"Date"),g=new Date(m.valueOf()+v),_.start=n?n(g,o,l):g):_.end!=null&&(y=S.convert(d.data.end,"Date"),O=new Date(y.valueOf()+v),_.end=n?n(O,o,l):O);else if(_.start!=null)if(m=S.convert(d.data.start,"Date").valueOf(),g=new Date(m+v),_.end!=null){y=S.convert(d.data.end,"Date");const E=y.valueOf()-m.valueOf();_.start=n?n(g,o,l):g,_.end=new Date(_.start.valueOf()+E)}else _.start=n?n(g,o,l):g}if(c&&!d.dragLeft&&!d.dragRight&&h!=null&&_.group!=null){let E=h-d.groupOffset;E=Math.max(0,E),E=Math.min(i.groupIds.length-1,E),_.group=i.groupIds[E]}_=this._cloneItemData(_),i.options.onMoving(_,E=>{E&&d.item.setData(this._cloneItemData(E,"Date"))})}),this.body.emitter.emit("_change")}}_moveToGroup(e,r){const i=this.groups[r];if(i&&i.groupId!=e.data.group){const n=e.parent;n.remove(e),n.order(),e.data.group=i.groupId,i.add(e),i.order()}}_onDragEnd(e){if(this.touchParams.itemIsDragging=!1,this.touchParams.itemProps){e.stopPropagation();const r=this,i=this.touchParams.itemProps;this.touchParams.itemProps=null,M(i).call(i,n=>{const s=n.item.id;if(!(r.itemsData.get(s)!=null))r.options.onAdd(n.item.data,o=>{r._removeItem(n.item),o&&r.itemsData.add(o),r.body.emitter.emit("_change")});else{const o=this._cloneItemData(n.item.data);r.options.onMove(o,l=>{l?(l[this.itemsData.idProp]=s,this.itemsData.update(l)):(n.item.setData(n.data),r.body.emitter.emit("_change"))})}})}}_onGroupClick(e){const r=this.groupFromTarget(e);vt(()=>{this.toggleGroupShowNested(r)},1)}toggleGroupShowNested(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0;if(!e||!e.nestedGroups)return;const i=this.groupsData.getDataSet();r!=null?e.showNested=!!r:e.showNested=!e.showNested;let n=i.get(e.groupId);n.showNested=e.showNested;let s=e.nestedGroups,a=s;for(;a.length>0;){let c=a;a=[];for(let h=0;h<c.length;h++){let d=i.get(c[h]);d.nestedGroups&&(a=Ge(a).call(a,d.nestedGroups))}a.length>0&&(s=Ge(s).call(s,a))}var o;if(n.showNested){var l=i.get(n.nestedGroups);for(let c=0;c<l.length;c++){let h=l[c];h.nestedGroups&&h.nestedGroups.length>0&&(h.showNested==null||h.showNested==!0)&&l.push(...i.get(h.nestedGroups))}o=Qe(l).call(l,function(c){return c.visible==null&&(c.visible=!0),c.visible=!!n.showNested,c})}else{var u;o=Qe(u=i.get(s)).call(u,function(c){return c.visible==null&&(c.visible=!0),c.visible=!!n.showNested,c})}i.update(Ge(o).call(o,n)),n.showNested?(S.removeClassName(e.dom.label,"collapsed"),S.addClassName(e.dom.label,"expanded")):(S.removeClassName(e.dom.label,"expanded"),S.addClassName(e.dom.label,"collapsed"))}toggleGroupDragClassName(e){e.dom.label.classList.toggle("vis-group-is-dragging"),e.dom.foreground.classList.toggle("vis-group-is-dragging")}_onGroupDragStart(e){this.groupTouchParams.isDragging||this.options.groupEditable.order&&(this.groupTouchParams.group=this.groupFromTarget(e),this.groupTouchParams.group&&(e.stopPropagation(),this.groupTouchParams.isDragging=!0,this.toggleGroupDragClassName(this.groupTouchParams.group),this.groupTouchParams.originalOrder=this.groupsData.getIds({order:this.options.groupOrder})))}_onGroupDrag(e){if(this.options.groupEditable.order&&this.groupTouchParams.group){e.stopPropagation();const r=this.groupsData.getDataSet(),i=this.groupFromTarget(e);if(i&&i.height!=this.groupTouchParams.group.height){const n=i.top<this.groupTouchParams.group.top,s=e.center?e.center.y:e.clientY,a=i.dom.foreground.getBoundingClientRect(),o=this.groupTouchParams.group.height;if(n){if(a.top+o<s)return}else{const l=i.height;if(a.top+l-o>s)return}}if(i&&i!=this.groupTouchParams.group){const n=r.get(i.groupId),s=r.get(this.groupTouchParams.group.groupId);s&&n&&(this.options.groupOrderSwap(s,n,r),r.update(s),r.update(n));const a=r.getIds({order:this.options.groupOrder});if(!S.equalArray(a,this.groupTouchParams.originalOrder)){const o=this.groupTouchParams.originalOrder,l=this.groupTouchParams.group.groupId,u=Math.min(o.length,a.length);let c=0,h=0,d=0;for(;c<u;){for(;c+h<u&&c+d<u&&a[c+h]==o[c+d];)c++;if(c+h>=u)break;if(a[c+h]==l)h=1;else if(o[c+d]==l)d=1;else{const f=be(a).call(a,o[c+d]),p=r.get(a[c+h]),v=r.get(o[c+d]);this.options.groupOrderSwap(p,v,r),r.update(p),r.update(v);const m=a[c+h];a[c+h]=o[c+d],a[f]=m,c++}}}}}}_onGroupDragEnd(e){if(this.groupTouchParams.isDragging=!1,this.options.groupEditable.order&&this.groupTouchParams.group){e.stopPropagation();const r=this,i=r.groupTouchParams.group.groupId,n=r.groupsData.getDataSet(),s=S.extend({},n.get(i));r.options.onMoveGroup(s,a=>{if(a)a[n._idProp]=i,n.update(a);else{const o=n.getIds({order:r.options.groupOrder});if(!S.equalArray(o,r.groupTouchParams.originalOrder)){const l=r.groupTouchParams.originalOrder,u=Math.min(l.length,o.length);let c=0;for(;c<u;){for(;c<u&&o[c]==l[c];)c++;if(c>=u)break;const h=be(o).call(o,l[c]),d=n.get(o[c]),f=n.get(l[c]);r.options.groupOrderSwap(d,f,n),n.update(d),n.update(f);const p=o[c];o[c]=l[c],o[h]=p,c++}}}}),r.body.emitter.emit("groupDragged",{groupId:i}),this.toggleGroupDragClassName(this.groupTouchParams.group),this.groupTouchParams.group=null}}_onSelectItem(e){if(!this.options.selectable)return;const r=e.srcEvent&&(e.srcEvent.ctrlKey||e.srcEvent.metaKey),i=e.srcEvent&&e.srcEvent.shiftKey;if(r||i){this._onMultiSelectItem(e);return}const n=this.getSelection(),s=this.itemFromTarget(e),a=s&&s.selectable?[s.id]:[];this.setSelection(a);const o=this.getSelection();(o.length>0||n.length>0)&&this.body.emitter.emit("select",{items:o,event:e})}_onMouseOver(e){const r=this.itemFromTarget(e);if(!r)return;const i=this.itemFromRelatedTarget(e);if(r===i)return;const n=r.getTitle();if(this.options.showTooltips&&n){this.popup==null&&(this.popup=new see(this.body.dom.root,this.options.tooltip.overflowMethod||"flip")),this.popup.setText(n);const s=this.body.dom.centerContainer,a=s.getBoundingClientRect();this.popup.setPosition(e.clientX-a.left+s.offsetLeft,e.clientY-a.top+s.offsetTop),this.setPopupTimer(this.popup)}else this.clearPopupTimer(),this.popup!=null&&this.popup.hide();this.body.emitter.emit("itemover",{item:r.id,event:e})}_onMouseOut(e){const r=this.itemFromTarget(e);if(!r)return;const i=this.itemFromRelatedTarget(e);r!==i&&(this.clearPopupTimer(),this.popup!=null&&this.popup.hide(),this.body.emitter.emit("itemout",{item:r.id,event:e}))}_onMouseMove(e){if(this.itemFromTarget(e)&&(this.popupTimer!=null&&this.setPopupTimer(this.popup),this.options.showTooltips&&this.options.tooltip.followMouse&&this.popup&&!this.popup.hidden)){const i=this.body.dom.centerContainer,n=i.getBoundingClientRect();this.popup.setPosition(e.clientX-n.left+i.offsetLeft,e.clientY-n.top+i.offsetTop),this.popup.show()}}_onMouseWheel(e){this.touchParams.itemIsDragging&&this._onDragEnd(e)}_onUpdateItem(e){if(!this.options.selectable||!this.options.editable.updateTime&&!this.options.editable.updateGroup)return;const r=this;if(e){const i=r.itemsData.get(e.id);this.options.onUpdate(i,n=>{n&&r.itemsData.update(n)})}}_onDropObjectOnItem(e){const r=this.itemFromTarget(e),i=JSON.parse(e.dataTransfer.getData("text"));this.options.onDropObjectOnItem(i,r)}_onAddItem(e){if(!this.options.selectable||!this.options.editable.add)return;const r=this,i=this.options.snap||null,n=this.dom.frame.getBoundingClientRect(),s=this.options.rtl?n.right-e.center.x:e.center.x-n.left,a=this.body.util.toTime(s),o=this.body.util.getScale(),l=this.body.util.getStep();let u,c;e.type=="drop"?(c=JSON.parse(e.dataTransfer.getData("text")),c.content=c.content?c.content:"new item",c.start=c.start?c.start:i?i(a,o,l):a,c.type=c.type||"box",c[this.itemsData.idProp]=c.id||En(),c.type=="range"&&!c.end&&(u=this.body.util.toTime(s+this.props.width/5),c.end=i?i(u,o,l):u)):(c={start:i?i(a,o,l):a,content:"new item"},c[this.itemsData.idProp]=En(),this.options.type==="range"&&(u=this.body.util.toTime(s+this.props.width/5),c.end=i?i(u,o,l):u));const h=this.groupFromTarget(e);h&&(c.group=h.groupId),c=this._cloneItemData(c),this.options.onAdd(c,d=>{d&&(r.itemsData.add(d),e.type=="drop"&&r.setSelection([d.id]))})}_onMultiSelectItem(e){if(!this.options.selectable)return;const r=this.itemFromTarget(e);if(r){let i=this.options.multiselect?this.getSelection():[];if((e.srcEvent&&e.srcEvent.shiftKey||!1||this.options.sequentialSelection)&&this.options.multiselect){const a=this.itemsData.get(r.id).group;let o;this.options.multiselectPerGroup&&i.length>0&&(o=this.itemsData.get(i[0]).group),(!this.options.multiselectPerGroup||o==null||o==a)&&i.push(r.id);const l=Bi._getItemRange(this.itemsData.get(i));if(!this.options.multiselectPerGroup||o==a){i=[];for(const u in this.items){if(!Object.prototype.hasOwnProperty.call(this.items,u))continue;const c=this.items[u],h=c.data.start,d=c.data.end!==void 0?c.data.end:h;h>=l.min&&d<=l.max&&(!this.options.multiselectPerGroup||o==this.itemsData.get(c.id).group)&&!(c instanceof on)&&i.push(c.id)}}}else{const a=be(i).call(i,r.id);a==-1?i.push(r.id):Et(i).call(i,a,1)}const s=ue(i).call(i,a=>this.getItemById(a).selectable);this.setSelection(s),this.body.emitter.emit("select",{items:this.getSelection(),event:e})}}static _getItemRange(e){let r=null,i=null;return M(e).call(e,n=>{(i==null||n.start<i)&&(i=n.start),n.end!=null?(r==null||n.end>r)&&(r=n.end):(r==null||n.start>r)&&(r=n.start)}),{min:i,max:r}}itemFromElement(e){let r=e;for(;r;){if(Object.prototype.hasOwnProperty.call(r,"vis-item"))return r["vis-item"];r=r.parentNode}return null}itemFromTarget(e){return this.itemFromElement(e.target)}itemFromRelatedTarget(e){return this.itemFromElement(e.relatedTarget)}groupFromTarget(e){const r=e.center?e.center.y:e.clientY;let i=this.groupIds;i.length<=0&&this.groupsData&&(i=this.groupsData.getIds({order:this.options.groupOrder}));for(let n=0;n<i.length;n++){const s=i[n],a=this.groups[s],o=a.dom.foreground,l=o.getBoundingClientRect();if(r>=l.top&&r<l.top+o.offsetHeight)return a;if(this.options.orientation.item==="top"){if(n===this.groupIds.length-1&&r>l.top)return a}else if(n===0&&r<l.top+o.offset)return a}return null}static itemSetFromTarget(e){let r=e.target;for(;r;){if(Object.prototype.hasOwnProperty.call(r,"vis-itemset"))return r["vis-itemset"];r=r.parentNode}return null}_cloneItemData(e,r){const i=S.extend({},e);return r||(r=this.itemsData.type),i.start!=null&&(i.start=S.convert(i.start,r&&r.start||"Date")),i.end!=null&&(i.end=S.convert(i.end,r&&r.end||"Date")),i}_clusterItems(){if(!this.options.cluster)return;const{scale:e}=this.body.range.conversion(this.body.domProps.center.width),r=this.clusterGenerator.getClusters(this.clusters,e,this.options.cluster);if(this.clusters!=r){if(this._detachAllClusters(),r){for(let i of r)i.attach();this.clusters=r}this._updateClusters(r)}}_detachAllClusters(){if(this.options.cluster&&this.clusters&&this.clusters.length)for(let e of this.clusters)e.detach()}_updateClusters(e){if(this.clusters&&this.clusters.length){var r;const s=new xo(Qe(e).call(e,l=>l.id)),a=ue(r=this.clusters).call(r,l=>!s.has(l.id));let o=!1;for(let l of a){var i;const u=be(i=this.selection).call(i,l.id);if(u!==-1){var n;l.unselect(),Et(n=this.selection).call(n,u,1),o=!0}}if(o){const l=this.getSelection();this.body.emitter.emit("select",{items:l,event})}}this.clusters=e||[]}}Bi.types={background:on,box:iee,range:Gi,point:nee};Bi.prototype._onAdd=Bi.prototype._onUpdate;let $s=!1,qF,Po="background: #FFeeee; color: #dd0000";class De{constructor(){}static validate(e,r,i){$s=!1,qF=r;let n=r;return i!==void 0&&(n=r[i]),De.parse(e,n,[]),$s}static parse(e,r,i){for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&De.check(n,e,r,i)}static check(e,r,i,n){if(i[e]===void 0&&i.__any__===void 0){De.getSuggestion(e,i,n);return}let s=e,a=!0;i[e]===void 0&&i.__any__!==void 0&&(s="__any__",a=De.getType(r[e])==="object");let o=i[s];a&&o.__type__!==void 0&&(o=o.__type__),De.checkFields(e,r,i,s,o,n)}static checkFields(e,r,i,n,s,a){let o=function(c){console.log("%c"+c+De.printLocation(a,e),Po)},l=De.getType(r[e]),u=s[l];u!==void 0?De.getType(u)==="array"&&be(u).call(u,r[e])===-1?(o('Invalid option detected in "'+e+'". Allowed values are:'+De.print(u)+' not "'+r[e]+'". '),$s=!0):l==="object"&&n!=="__any__"&&(a=S.copyAndExtendArray(a,e),De.parse(r[e],i[n],a)):s.any===void 0&&(o('Invalid type received for "'+e+'". Expected: '+De.print(ut(s))+". Received ["+l+'] "'+r[e]+'"'),$s=!0)}static getType(e){var r=typeof e;return r==="object"?e===null?"null":e instanceof Boolean?"boolean":e instanceof Number?"number":e instanceof String?"string":fe(e)?"array":e instanceof Date?"date":e.nodeType!==void 0?"dom":e._isAMomentObject===!0?"moment":"object":r==="number"?"number":r==="boolean"?"boolean":r==="string"?"string":r===void 0?"undefined":r}static getSuggestion(e,r,i){let n=De.findInOptions(e,r,i,!1),s=De.findInOptions(e,qF,[],!0),a=8,o=4,l;n.indexMatch!==void 0?l=" in "+De.printLocation(n.path,e,"")+'Perhaps it was incomplete? Did you mean: "'+n.indexMatch+`"?
|
|
87
|
+
|
|
88
|
+
`:s.distance<=o&&n.distance>s.distance?l=" in "+De.printLocation(n.path,e,"")+"Perhaps it was misplaced? Matching option found at: "+De.printLocation(s.path,s.closestMatch,""):n.distance<=a?l='. Did you mean "'+n.closestMatch+'"?'+De.printLocation(n.path,e):l=". Did you mean one of these: "+De.print(ut(r))+De.printLocation(i,e),console.log('%cUnknown option detected: "'+e+'"'+l,Po),$s=!0}static findInOptions(e,r,i){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,s=1e9,a="",o=[],l=e.toLowerCase(),u;for(let h in r){if(!Object.prototype.hasOwnProperty.call(r,h))continue;let d;if(r[h].__type__!==void 0&&n===!0){let f=De.findInOptions(e,r[h],S.copyAndExtendArray(i,h));s>f.distance&&(a=f.closestMatch,o=f.path,s=f.distance,u=f.indexMatch)}else{var c;be(c=h.toLowerCase()).call(c,l)!==-1&&(u=h),d=De.levenshteinDistance(e,h),s>d&&(a=h,o=S.copyArray(i),s=d)}}return{closestMatch:a,path:o,distance:s,indexMatch:u}}static printLocation(e,r){let n=`
|
|
89
|
+
|
|
90
|
+
`+(arguments.length>2&&arguments[2]!==void 0?arguments[2]:`Problem value found at:
|
|
91
|
+
`)+`options = {
|
|
92
|
+
`;for(let s=0;s<e.length;s++){for(let a=0;a<s+1;a++)n+=" ";n+=e[s]+`: {
|
|
93
|
+
`}for(let s=0;s<e.length+1;s++)n+=" ";n+=r+`
|
|
94
|
+
`;for(let s=0;s<e.length+1;s++){for(let a=0;a<e.length-s;a++)n+=" ";n+=`}
|
|
95
|
+
`}return n+`
|
|
96
|
+
|
|
97
|
+
`}static print(e){return qt(e).replace(/(\")|(\[)|(\])|(,"__type__")/g,"").replace(/(\,)/g,", ")}static levenshteinDistance(e,r){if(e.length===0)return r.length;if(r.length===0)return e.length;var i=[],n;for(n=0;n<=r.length;n++)i[n]=[n];var s;for(s=0;s<=e.length;s++)i[0][s]=s;for(n=1;n<=r.length;n++)for(s=1;s<=e.length;s++)r.charAt(n-1)==e.charAt(s-1)?i[n][s]=i[n-1][s-1]:i[n][s]=Math.min(i[n-1][s-1]+1,Math.min(i[n][s-1]+1,i[n-1][s]+1));return i[r.length][e.length]}}let J="string",X="boolean",Te="number",kF="array",cn="date",Me="object",mee="dom",hn="moment",AF="any",gee={configure:{enabled:{boolean:X},filter:{boolean:X,function:"function"},container:{dom:mee},__type__:{object:Me,boolean:X,function:"function"}},align:{string:J},alignCurrentTime:{string:J,undefined:"undefined"},rtl:{boolean:X,undefined:"undefined"},rollingMode:{follow:{boolean:X},offset:{number:Te,undefined:"undefined"},__type__:{object:Me}},onTimeout:{timeoutMs:{number:Te},callback:{function:"function"},__type__:{object:Me}},verticalScroll:{boolean:X,undefined:"undefined"},horizontalScroll:{boolean:X,undefined:"undefined"},horizontalScrollKey:{string:J,undefined:"undefined"},horizontalScrollInvert:{boolean:X,undefined:"undefined"},autoResize:{boolean:X},throttleRedraw:{number:Te},clickToUse:{boolean:X},dataAttributes:{string:J,array:kF},editable:{add:{boolean:X,undefined:"undefined"},remove:{boolean:X,undefined:"undefined"},updateGroup:{boolean:X,undefined:"undefined"},updateTime:{boolean:X,undefined:"undefined"},overrideItems:{boolean:X,undefined:"undefined"},__type__:{boolean:X,object:Me}},end:{number:Te,date:cn,string:J,moment:hn},format:{minorLabels:{millisecond:{string:J,undefined:"undefined"},second:{string:J,undefined:"undefined"},minute:{string:J,undefined:"undefined"},hour:{string:J,undefined:"undefined"},weekday:{string:J,undefined:"undefined"},day:{string:J,undefined:"undefined"},week:{string:J,undefined:"undefined"},month:{string:J,undefined:"undefined"},year:{string:J,undefined:"undefined"},__type__:{object:Me,function:"function"}},majorLabels:{millisecond:{string:J,undefined:"undefined"},second:{string:J,undefined:"undefined"},minute:{string:J,undefined:"undefined"},hour:{string:J,undefined:"undefined"},weekday:{string:J,undefined:"undefined"},day:{string:J,undefined:"undefined"},week:{string:J,undefined:"undefined"},month:{string:J,undefined:"undefined"},year:{string:J,undefined:"undefined"},__type__:{object:Me,function:"function"}},__type__:{object:Me}},moment:{function:"function"},groupHeightMode:{string:J},groupOrder:{string:J,function:"function"},groupEditable:{add:{boolean:X,undefined:"undefined"},remove:{boolean:X,undefined:"undefined"},order:{boolean:X,undefined:"undefined"},__type__:{boolean:X,object:Me}},groupOrderSwap:{function:"function"},height:{string:J,number:Te},hiddenDates:{start:{date:cn,number:Te,string:J,moment:hn},end:{date:cn,number:Te,string:J,moment:hn},repeat:{string:J},__type__:{object:Me,array:kF}},itemsAlwaysDraggable:{item:{boolean:X,undefined:"undefined"},range:{boolean:X,undefined:"undefined"},__type__:{boolean:X,object:Me}},limitSize:{boolean:X},locale:{string:J},locales:{__any__:{any:AF},__type__:{object:Me}},longSelectPressTime:{number:Te},margin:{axis:{number:Te},item:{horizontal:{number:Te,undefined:"undefined"},vertical:{number:Te,undefined:"undefined"},__type__:{object:Me,number:Te}},__type__:{object:Me,number:Te}},max:{date:cn,number:Te,string:J,moment:hn},maxHeight:{number:Te,string:J},maxMinorChars:{number:Te},min:{date:cn,number:Te,string:J,moment:hn},minHeight:{number:Te,string:J},moveable:{boolean:X},multiselect:{boolean:X},multiselectPerGroup:{boolean:X},onAdd:{function:"function"},onDropObjectOnItem:{function:"function"},onUpdate:{function:"function"},onMove:{function:"function"},onMoving:{function:"function"},onRemove:{function:"function"},onAddGroup:{function:"function"},onMoveGroup:{function:"function"},onRemoveGroup:{function:"function"},onInitialDrawComplete:{function:"function"},order:{function:"function"},orientation:{axis:{string:J,undefined:"undefined"},item:{string:J,undefined:"undefined"},__type__:{string:J,object:Me}},selectable:{boolean:X},sequentialSelection:{boolean:X},showCurrentTime:{boolean:X},showMajorLabels:{boolean:X},showMinorLabels:{boolean:X},showWeekScale:{boolean:X},stack:{boolean:X},stackSubgroups:{boolean:X},cluster:{maxItems:{number:Te,undefined:"undefined"},titleTemplate:{string:J,undefined:"undefined"},clusterCriteria:{function:"function",undefined:"undefined"},showStipes:{boolean:X,undefined:"undefined"},fitOnDoubleClick:{boolean:X,undefined:"undefined"},__type__:{boolean:X,object:Me}},snap:{function:"function",null:"null"},start:{date:cn,number:Te,string:J,moment:hn},template:{function:"function"},loadingScreenTemplate:{function:"function"},groupTemplate:{function:"function"},visibleFrameTemplate:{string:J,function:"function"},showTooltips:{boolean:X},tooltip:{followMouse:{boolean:X},overflowMethod:{string:["cap","flip","none"]},delay:{number:Te},template:{function:"function"},__type__:{object:Me}},tooltipOnItemUpdateTime:{template:{function:"function"},__type__:{boolean:X,object:Me}},timeAxis:{scale:{string:J,undefined:"undefined"},step:{number:Te,undefined:"undefined"},__type__:{object:Me}},type:{string:J},width:{string:J,number:Te},preferZoom:{boolean:X},zoomable:{boolean:X},zoomKey:{string:["ctrlKey","altKey","shiftKey","metaKey",""]},zoomFriction:{number:Te},zoomMax:{number:Te},zoomMin:{number:Te},xss:{disabled:{boolean:X},filterOptions:{__any__:{any:AF},__type__:{object:Me}},__type__:{object:Me}},__type__:{object:Me}},yee={global:{align:["center","left","right"],alignCurrentTime:["none","year","month","quarter","week","isoWeek","day","date","hour","minute","second"],direction:!1,autoResize:!0,clickToUse:!1,editable:{add:!1,remove:!1,updateGroup:!1,updateTime:!1},end:"",format:{minorLabels:{millisecond:"SSS",second:"s",minute:"HH:mm",hour:"HH:mm",weekday:"ddd D",day:"D",week:"w",month:"MMM",year:"YYYY"},majorLabels:{millisecond:"HH:mm:ss",second:"D MMMM HH:mm",minute:"ddd D MMMM",hour:"ddd D MMMM",weekday:"MMMM YYYY",day:"MMMM YYYY",week:"MMMM YYYY",month:"YYYY",year:""}},groupHeightMode:["auto","fixed","fitItems"],groupsDraggable:!1,height:"",locale:"",longSelectPressTime:251,margin:{axis:[20,0,100,1],item:{horizontal:[10,0,100,1],vertical:[10,0,100,1]}},max:"",maxHeight:"",maxMinorChars:[7,0,20,1],min:"",minHeight:"",moveable:!1,multiselect:!1,multiselectPerGroup:!1,orientation:{axis:["both","bottom","top"],item:["bottom","top"]},preferZoom:!1,selectable:!0,showCurrentTime:!1,showMajorLabels:!0,showMinorLabels:!0,stack:!0,stackSubgroups:!0,cluster:!1,start:"",showTooltips:!0,tooltip:{followMouse:!1,overflowMethod:"flip",delay:[500,0,99999,100]},tooltipOnItemUpdateTime:!1,type:["box","point","range","background"],width:"100%",zoomable:!0,zoomKey:["ctrlKey","altKey","shiftKey","metaKey",""],zoomMax:[31536e10,10,31536e10,1],zoomMin:[10,10,31536e10,1],xss:{disabled:!1}}};var bee={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"};class _ee{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;this.pixelRatio=e,this.generated=!1,this.centerCoordinates={x:289/2,y:289/2},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=()=>{},this.closeCallback=()=>{},this._create()}insertTo(e){this.hammer!==void 0&&(this.hammer.destroy(),this.hammer=void 0),this.container=e,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}setUpdateCallback(e){if(typeof e=="function")this.updateCallback=e;else throw new Error("Function attempted to set as colorPicker update callback is not a function.")}setCloseCallback(e){if(typeof e=="function")this.closeCallback=e;else throw new Error("Function attempted to set as colorPicker closing callback is not a function.")}_isColorString(e){if(typeof e=="string")return bee[e]}setColor(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(e==="none")return;let i;var n=this._isColorString(e);if(n!==void 0&&(e=n),S.isString(e)===!0){if(S.isValidRGB(e)===!0){let s=e.substr(4).substr(0,e.length-5).split(",");i={r:s[0],g:s[1],b:s[2],a:1}}else if(S.isValidRGBA(e)===!0){let s=e.substr(5).substr(0,e.length-6).split(",");i={r:s[0],g:s[1],b:s[2],a:s[3]}}else if(S.isValidHex(e)===!0){let s=S.hexToRGB(e);i={r:s.r,g:s.g,b:s.b,a:1}}}else if(e instanceof Object&&e.r!==void 0&&e.g!==void 0&&e.b!==void 0){let s=e.a!==void 0?e.a:"1.0";i={r:e.r,g:e.g,b:e.b,a:s}}if(i===void 0)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: "+qt(e));this._setColor(i,r)}show(){this.closeCallback!==void 0&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}_hide(){(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0)===!0&&(this.previousColor=S.extend({},this.color)),this.applied===!0&&this.updateCallback(this.initialColor),this.frame.style.display="none",vt(()=>{this.closeCallback!==void 0&&(this.closeCallback(),this.closeCallback=void 0)},0)}_save(){this.updateCallback(this.color),this.applied=!1,this._hide()}_apply(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}_loadLast(){this.previousColor!==void 0?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}_setColor(e){(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)===!0&&(this.initialColor=S.extend({},e)),this.color=e;let i=S.RGBToHSV(e.r,e.g,e.b),n=2*Math.PI,s=this.r*i.s,a=this.centerCoordinates.x+s*Math.sin(n*i.h),o=this.centerCoordinates.y+s*Math.cos(n*i.h);this.colorPickerSelector.style.left=a-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=o-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(e)}_setOpacity(e){this.color.a=e/100,this._updatePicker(this.color)}_setBrightness(e){let r=S.RGBToHSV(this.color.r,this.color.g,this.color.b);r.v=e/100;let i=S.HSVToRGB(r.h,r.s,r.v);i.a=this.color.a,this.color=i,this._updatePicker()}_updatePicker(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.color,r=S.RGBToHSV(e.r,e.g,e.b),i=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(i.webkitBackingStorePixelRatio||i.mozBackingStorePixelRatio||i.msBackingStorePixelRatio||i.oBackingStorePixelRatio||i.backingStorePixelRatio||1)),i.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);let n=this.colorPickerCanvas.clientWidth,s=this.colorPickerCanvas.clientHeight;i.clearRect(0,0,n,s),i.putImageData(this.hueCircle,0,0),i.fillStyle="rgba(0,0,0,"+(1-r.v)+")",i.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),kj(i).call(i),this.brightnessRange.value=100*r.v,this.opacityRange.value=100*e.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}_setSize(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}_create(){var e,r,i,n;if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){let a=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(a.webkitBackingStorePixelRatio||a.mozBackingStorePixelRatio||a.msBackingStorePixelRatio||a.oBackingStorePixelRatio||a.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{let a=document.createElement("DIV");a.style.color="red",a.style.fontWeight="bold",a.style.padding="10px",a.innerHTML="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(a)}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{}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{}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var s=this;this.opacityRange.onchange=function(){s._setOpacity(this.value)},this.opacityRange.oninput=function(){s._setOpacity(this.value)},this.brightnessRange.onchange=function(){s._setBrightness(this.value)},this.brightnessRange.oninput=function(){s._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.innerHTML="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerHTML="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerHTML="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerHTML="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerHTML="cancel",this.cancelButton.onclick=D(e=this._hide).call(e,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerHTML="apply",this.applyButton.onclick=D(r=this._apply).call(r,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerHTML="save",this.saveButton.onclick=D(i=this._save).call(i,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerHTML="load last",this.loadButton.onclick=D(n=this._loadLast).call(n,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}_bindHammer(){this.drag={},this.pinch={},this.hammer=new ft(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),bG(this.hammer,e=>{this._moveSelector(e)}),this.hammer.on("tap",e=>{this._moveSelector(e)}),this.hammer.on("panstart",e=>{this._moveSelector(e)}),this.hammer.on("panmove",e=>{this._moveSelector(e)}),this.hammer.on("panend",e=>{this._moveSelector(e)})}_generateHueCircle(){if(this.generated===!1){let e=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)),e.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);let r=this.colorPickerCanvas.clientWidth,i=this.colorPickerCanvas.clientHeight;e.clearRect(0,0,r,i);let n,s,a,o;this.centerCoordinates={x:r*.5,y:i*.5},this.r=.49*r;let l=2*Math.PI/360,u=1/360,c=1/this.r,h;for(a=0;a<360;a++)for(o=0;o<this.r;o++)n=this.centerCoordinates.x+o*Math.sin(l*a),s=this.centerCoordinates.y+o*Math.cos(l*a),h=S.HSVToRGB(a*u,o*c,1),e.fillStyle="rgb("+h.r+","+h.g+","+h.b+")",e.fillRect(n-.5,s-.5,2,2);e.strokeStyle="rgba(0,0,0,1)",e.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),e.stroke(),this.hueCircle=e.getImageData(0,0,r,i)}this.generated=!0}_moveSelector(e){let r=this.colorPickerDiv.getBoundingClientRect(),i=e.center.x-r.left,n=e.center.y-r.top,s=.5*this.colorPickerDiv.clientHeight,a=.5*this.colorPickerDiv.clientWidth,o=i-a,l=n-s,u=Math.atan2(o,l),c=.98*Math.min(Math.sqrt(o*o+l*l),a),h=Math.cos(u)*c+s,d=Math.sin(u)*c+a;this.colorPickerSelector.style.top=h-.5*this.colorPickerSelector.clientHeight+"px",this.colorPickerSelector.style.left=d-.5*this.colorPickerSelector.clientWidth+"px";let f=u/(2*Math.PI);f=f<0?f+1:f;let p=c/this.r,v=S.RGBToHSV(this.color.r,this.color.g,this.color.b);v.h=f,v.s=p;let m=S.HSVToRGB(v.h,v.s,v.v);m.a=this.color.a,this.color=m,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+")"}}class AG{constructor(e,r,i){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;this.parent=e,this.changedOptions=[],this.container=r,this.allowCreation=!1,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},S.extend(this.options,this.defaultOptions),this.configureOptions=i,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new _ee(n),this.wrapper=void 0}setOptions(e){if(e!==void 0){this.popupHistory={},this._removePopup();let r=!0;if(typeof e=="string")this.options.filter=e;else if(fe(e))this.options.filter=e.join();else if(typeof e=="object"){if(e==null)throw new TypeError("options cannot be null");e.container!==void 0&&(this.options.container=e.container),ue(e)!==void 0&&(this.options.filter=ue(e)),e.showButton!==void 0&&(this.options.showButton=e.showButton),e.enabled!==void 0&&(r=e.enabled)}else typeof e=="boolean"?(this.options.filter=!0,r=e):typeof e=="function"&&(this.options.filter=e,r=!0);ue(this.options)===!1&&(r=!1),this.options.enabled=r}this._clean()}setModuleOptions(e){this.moduleOptions=e,this.options.enabled===!0&&(this._clean(),this.options.container!==void 0&&(this.container=this.options.container),this._create())}_create(){this._clean(),this.changedOptions=[];let e=ue(this.options),r=0,i=!1;for(let n in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,n)&&(this.allowCreation=!1,i=!1,typeof e=="function"?(i=e(n,[]),i=i||this._handleObject(this.configureOptions[n],[n],!0)):(e===!0||be(e).call(e,n)!==-1)&&(i=!0),i!==!1&&(this.allowCreation=!0,r>0&&this._makeItem([]),this._makeHeader(n),this._handleObject(this.configureOptions[n],[n])),r++);this._makeButton(),this._push()}_push(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var e=0;e<this.domElements.length;e++)this.wrapper.appendChild(this.domElements[e]);this._showPopupIfNeeded()}_clean(){for(var e=0;e<this.domElements.length;e++)this.wrapper.removeChild(this.domElements[e]);this.wrapper!==void 0&&(this.container.removeChild(this.wrapper),this.wrapper=void 0),this.domElements=[],this._removePopup()}_getValue(e){let r=this.moduleOptions;for(let i=0;i<e.length;i++)if(r[e[i]]!==void 0)r=r[e[i]];else{r=void 0;break}return r}_makeItem(e){if(this.allowCreation===!0){let s=document.createElement("div");s.className="vis-configuration vis-config-item vis-config-s"+e.length;for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return M(i).call(i,a=>{s.appendChild(a)}),this.domElements.push(s),this.domElements.length}return 0}_makeHeader(e){let r=document.createElement("div");r.className="vis-configuration vis-config-header",r.innerHTML=S.xss(e),this._makeItem([],r)}_makeLabel(e,r){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=document.createElement("div");return n.className="vis-configuration vis-config-label vis-config-s"+r.length,i===!0?n.innerHTML=S.xss("<i><b>"+e+":</b></i>"):n.innerHTML=S.xss(e+":"),n}_makeDropdown(e,r,i){let n=document.createElement("select");n.className="vis-configuration vis-config-select";let s=0;r!==void 0&&be(e).call(e,r)!==-1&&(s=be(e).call(e,r));for(let l=0;l<e.length;l++){let u=document.createElement("option");u.value=e[l],l===s&&(u.selected="selected"),u.innerHTML=e[l],n.appendChild(u)}let a=this;n.onchange=function(){a._update(this.value,i)};let o=this._makeLabel(i[i.length-1],i);this._makeItem(i,o,n)}_makeRange(e,r,i){let n=e[0],s=e[1],a=e[2],o=e[3],l=document.createElement("input");l.className="vis-configuration vis-config-range";try{l.type="range",l.min=s,l.max=a}catch{}l.step=o;let u="",c=0;if(r!==void 0){let v=1.2;r<0&&r*v<s?(l.min=Math.ceil(r*v),c=l.min,u="range increased"):r/v<s&&(l.min=Math.ceil(r/v),c=l.min,u="range increased"),r*v>a&&a!==1&&(l.max=Math.ceil(r*v),c=l.max,u="range increased"),l.value=r}else l.value=n;let h=document.createElement("input");h.className="vis-configuration vis-config-rangeinput",h.value=Number(l.value);var d=this;l.onchange=function(){h.value=this.value,d._update(Number(this.value),i)},l.oninput=function(){h.value=this.value};let f=this._makeLabel(i[i.length-1],i),p=this._makeItem(i,f,l,h);u!==""&&this.popupHistory[p]!==c&&(this.popupHistory[p]=c,this._setupPopup(u,p))}_makeButton(){if(this.options.showButton===!0){let e=document.createElement("div");e.className="vis-configuration vis-config-button",e.innerHTML="generate options",e.onclick=()=>{this._printOptions()},e.onmouseover=()=>{e.className="vis-configuration vis-config-button hover"},e.onmouseout=()=>{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)}}_setupPopup(e,r){if(this.initialized===!0&&this.allowCreation===!0&&this.popupCounter<this.popupLimit){let i=document.createElement("div");i.id="vis-configuration-popup",i.className="vis-configuration-popup",i.innerHTML=S.xss(e),i.onclick=()=>{this._removePopup()},this.popupCounter+=1,this.popupDiv={html:i,index:r}}}_removePopup(){this.popupDiv.html!==void 0&&(this.popupDiv.html.parentNode.removeChild(this.popupDiv.html),clearTimeout(this.popupDiv.hideTimeout),clearTimeout(this.popupDiv.deleteTimeout),this.popupDiv={})}_showPopupIfNeeded(){if(this.popupDiv.html!==void 0){let r=this.domElements[this.popupDiv.index].getBoundingClientRect();this.popupDiv.html.style.left=r.left+"px",this.popupDiv.html.style.top=r.top-30+"px",document.body.appendChild(this.popupDiv.html),this.popupDiv.hideTimeout=vt(()=>{this.popupDiv.html.style.opacity=0},1500),this.popupDiv.deleteTimeout=vt(()=>{this._removePopup()},1800)}}_makeCheckbox(e,r,i){var n=document.createElement("input");n.type="checkbox",n.className="vis-configuration vis-config-checkbox",n.checked=e,r!==void 0&&(n.checked=r,r!==e&&(typeof e=="object"?r!==e.enabled&&this.changedOptions.push({path:i,value:r}):this.changedOptions.push({path:i,value:r})));let s=this;n.onchange=function(){s._update(this.checked,i)};let a=this._makeLabel(i[i.length-1],i);this._makeItem(i,a,n)}_makeTextInput(e,r,i){var n=document.createElement("input");n.type="text",n.className="vis-configuration vis-config-text",n.value=r,r!==e&&this.changedOptions.push({path:i,value:r});let s=this;n.onchange=function(){s._update(this.value,i)};let a=this._makeLabel(i[i.length-1],i);this._makeItem(i,a,n)}_makeColorField(e,r,i){let n=e[1],s=document.createElement("div");r=r===void 0?n:r,r!=="none"?(s.className="vis-configuration vis-config-colorBlock",s.style.backgroundColor=r):s.className="vis-configuration vis-config-colorBlock none",r=r===void 0?n:r,s.onclick=()=>{this._showColorPicker(r,s,i)};let a=this._makeLabel(i[i.length-1],i);this._makeItem(i,a,s)}_showColorPicker(e,r,i){r.onclick=function(){},this.colorPicker.insertTo(r),this.colorPicker.show(),this.colorPicker.setColor(e),this.colorPicker.setUpdateCallback(n=>{let s="rgba("+n.r+","+n.g+","+n.b+","+n.a+")";r.style.backgroundColor=s,this._update(s,i)}),this.colorPicker.setCloseCallback(()=>{r.onclick=()=>{this._showColorPicker(e,r,i)}})}_handleObject(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=!1,s=ue(this.options),a=!1;for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;n=!0;let l=e[o],u=S.copyAndExtendArray(r,o);if(typeof s=="function"&&(n=s(o,r),n===!1&&!fe(l)&&typeof l!="string"&&typeof l!="boolean"&&l instanceof Object&&(this.allowCreation=!1,n=this._handleObject(l,u,!0),this.allowCreation=i===!1)),n!==!1){a=!0;let c=this._getValue(u);if(fe(l))this._handleArray(l,c,u);else if(typeof l=="string")this._makeTextInput(l,c,u);else if(typeof l=="boolean")this._makeCheckbox(l,c,u);else if(l instanceof Object){let h=!0;if(be(r).call(r,"physics")!==-1&&this.moduleOptions.physics.solver!==o&&(h=!1),h===!0)if(l.enabled!==void 0){let d=S.copyAndExtendArray(u,"enabled"),f=this._getValue(d);if(f===!0){let p=this._makeLabel(o,u,!0);this._makeItem(u,p),a=this._handleObject(l,u)||a}else this._makeCheckbox(l,f,u)}else{let d=this._makeLabel(o,u,!0);this._makeItem(u,d),a=this._handleObject(l,u)||a}}else console.error("dont know how to handle",l,o,u)}}return a}_handleArray(e,r,i){typeof e[0]=="string"&&e[0]==="color"?(this._makeColorField(e,r,i),e[1]!==r&&this.changedOptions.push({path:i,value:r})):typeof e[0]=="string"?(this._makeDropdown(e,r,i),e[0]!==r&&this.changedOptions.push({path:i,value:r})):typeof e[0]=="number"&&(this._makeRange(e,r,i),e[0]!==r&&this.changedOptions.push({path:i,value:Number(r)}))}_update(e,r){let i=this._constructOptions(e,r);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",i),this.initialized=!0,this.parent.setOptions(i)}_constructOptions(e,r){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=i;e=e==="true"?!0:e,e=e==="false"?!1:e;for(let s=0;s<r.length;s++)r[s]!=="global"&&(n[r[s]]===void 0&&(n[r[s]]={}),s!==r.length-1?n=n[r[s]]:n[r[s]]=e);return i}_printOptions(){let e=this.getOptions();this.optionsContainer.innerHTML="<pre>var options = "+qt(e,null,2)+"</pre>"}getOptions(){let e={};for(var r=0;r<this.changedOptions.length;r++)this._constructOptions(this.changedOptions[r].value,this.changedOptions[r].path,e);return e}}class MG extends Tn{constructor(e,r,i,n){var s,a,o,l,u,c,h;if(super(),this.initTime=new Date,this.itemsDone=!1,!(this instanceof MG))throw new SyntaxError("Constructor must be called with the new operator");if(!(fe(i)||Lr(i))&&i instanceof Object){const m=n;n=i,i=m}n&&n.throttleRedraw&&console.warn('Timeline option "throttleRedraw" is DEPRICATED and no longer supported. It will be removed in the next MAJOR release.');const d=this;if(this.defaultOptions={autoResize:!0,longSelectPressTime:251,orientation:{axis:"bottom",item:"bottom"},moment:Ot},this.options=S.deepExtend({},this.defaultOptions),n&&S.setupXSSProtection(n.xss),this._create(e),!n||n&&typeof n.rtl>"u"){this.dom.root.style.visibility="hidden";let m,y=this.dom.root;for(;!m&&y;)m=window.getComputedStyle(y,null).direction,y=y.parentElement;this.options.rtl=m&&m.toLowerCase()=="rtl"}else this.options.rtl=n.rtl;n&&(n.rollingMode&&(this.options.rollingMode=n.rollingMode),n.onInitialDrawComplete&&(this.options.onInitialDrawComplete=n.onInitialDrawComplete),n.onTimeout&&(this.options.onTimeout=n.onTimeout),n.loadingScreenTemplate&&(this.options.loadingScreenTemplate=n.loadingScreenTemplate));const f=document.createElement("div");if(this.options.loadingScreenTemplate){var p;const m=D(p=this.options.loadingScreenTemplate).call(p,this),y=m(this.dom.loadingScreen);y instanceof Object&&!(y instanceof Element)?m(f):y instanceof Element?(f.innerHTML="",f.appendChild(y)):y!=null&&(f.innerHTML=S.xss(y))}this.dom.loadingScreen.appendChild(f),this.components=[],this.body={dom:this.dom,domProps:this.props,emitter:{on:D(s=this.on).call(s,this),off:D(a=this.off).call(a,this),emit:D(o=this.emit).call(o,this)},hiddenDates:[],util:{getScale(){return d.timeAxis.step.scale},getStep(){return d.timeAxis.step.step},toScreen:D(l=d._toScreen).call(l,d),toGlobalScreen:D(u=d._toGlobalScreen).call(u,d),toTime:D(c=d._toTime).call(c,d),toGlobalTime:D(h=d._toGlobalTime).call(h,d)}},this.range=new _l(this.body,this.options),this.components.push(this.range),this.body.range=this.range,this.timeAxis=new Ro(this.body,this.options),this.timeAxis2=null,this.components.push(this.timeAxis),this.currentTime=new xG(this.body,this.options),this.components.push(this.currentTime),this.itemSet=new Bi(this.body,this.options),this.components.push(this.itemSet),this.itemsData=null,this.groupsData=null;function v(m,y){d.hasListeners(m)&&d.emit(m,d.getEventProperties(y))}this.dom.root.onclick=m=>v("click",m),this.dom.root.ondblclick=m=>v("doubleClick",m),this.dom.root.oncontextmenu=m=>v("contextmenu",m),this.dom.root.onmouseover=m=>v("mouseOver",m),window.PointerEvent?(this.dom.root.onpointerdown=m=>v("mouseDown",m),this.dom.root.onpointermove=m=>v("mouseMove",m),this.dom.root.onpointerup=m=>v("mouseUp",m)):(this.dom.root.onmousemove=m=>v("mouseMove",m),this.dom.root.onmousedown=m=>v("mouseDown",m),this.dom.root.onmouseup=m=>v("mouseUp",m)),this.initialFitDone=!1,this.on("changed",()=>{if(d.itemsData!=null){if(!d.initialFitDone&&!d.options.rollingMode)if(d.initialFitDone=!0,d.options.start!=null||d.options.end!=null){if(d.options.start==null||d.options.end==null)var m=d.getItemRange();const y=d.options.start!=null?d.options.start:m.min,g=d.options.end!=null?d.options.end:m.max;d.setWindow(y,g,{animation:!1})}else d.fit({animation:!1});!d.initialDrawDone&&(d.initialRangeChangeDone||!d.options.start&&!d.options.end||d.options.rollingMode)&&(d.initialDrawDone=!0,d.itemSet.initialDrawDone=!0,d.dom.root.style.visibility="visible",d.dom.loadingScreen.parentNode.removeChild(d.dom.loadingScreen),d.options.onInitialDrawComplete&&vt(()=>d.options.onInitialDrawComplete(),0))}}),this.on("destroyTimeline",()=>{d.destroy()}),n&&this.setOptions(n),this.body.emitter.on("fit",m=>{this._onFit(m),this.redraw()}),i&&this.setGroups(i),r&&this.setItems(r),this._redraw()}_createConfigurator(){return new AG(this,this.dom.container,yee)}redraw(){this.itemSet&&this.itemSet.markDirty({refreshItems:!0}),this._redraw()}setOptions(e){if(De.validate(e,gee)===!0&&console.log("%cErrors have been found in the supplied options object.",Po),Tn.prototype.setOptions.call(this,e),"type"in e&&e.type!==this.options.type){this.options.type=e.type;const i=this.itemsData;if(i){const n=this.getSelection();this.setItems(null),this.setItems(i.rawDS),this.setSelection(n)}}}setItems(e){this.itemsDone=!1;let r;e?Lr(e)?r=kn(e):r=kn(new Pn(e)):r=null,this.itemsData&&this.itemsData.dispose(),this.itemsData=r,this.itemSet&&this.itemSet.setItems(r!=null?r.rawDS:null)}setGroups(e){let r;const i=n=>n.visible!==!1;e?(fe(e)&&(e=new Pn(e)),r=new e1(e,{filter:i})):r=null,this.groupsData!=null&&typeof this.groupsData.setData=="function"&&this.groupsData.setData(null),this.groupsData=r,this.itemSet.setGroups(r)}setData(e){e&&e.groups&&this.setGroups(e.groups),e&&e.items&&this.setItems(e.items)}setSelection(e,r){this.itemSet&&this.itemSet.setSelection(e),r&&r.focus&&this.focus(e,r)}getSelection(){return this.itemSet&&this.itemSet.getSelection()||[]}focus(e,r){if(!this.itemsData||e==null)return;const i=fe(e)?e:[e],n=this.itemsData.get(i);let s=null,a=null;if(M(n).call(n,o=>{const l=o.start.valueOf(),u="end"in o?o.end.valueOf():o.start.valueOf();(s===null||l<s)&&(s=l),(a===null||u>a)&&(a=u)}),s!==null&&a!==null){const o=this,l=this.itemSet.items[i[0]];let u=this._getScrollTop()*-1,c=null;const h=(g,O,_)=>{const w=MF(o,l);if(w===!1||(c||(c=w),c.itemTop==w.itemTop&&!c.shouldScroll))return;c.itemTop!=w.itemTop&&w.shouldScroll&&(c=w,u=o._getScrollTop()*-1);const E=u,$=c.scrollOffset,b=_?$:E+($-E)*g;o._setScrollTop(-b),O||o._redraw()},d=()=>{const g=MF(o,l);g.shouldScroll&&g.itemTop!=c.itemTop&&(o._setScrollTop(-g.scrollOffset),o._redraw())},f=()=>{d(),vt(d,100)},p=r&&r.zoom!==void 0?r.zoom:!0,v=(s+a)/2,m=p?(a-s)*1.1:Math.max(this.range.end-this.range.start,(a-s)*1.1),y=r&&r.animation!==void 0?r.animation:!0;y||(c={shouldScroll:!1,scrollOffset:-1,itemTop:-1}),this.range.stopRolling(),this.range.setRange(v-m/2,v+m/2,{animation:y},f,h)}}fit(e,r){const i=e&&e.animation!==void 0?e.animation:!0;let n;this.itemsData.length===1&&this.itemsData.get()[0].end===void 0?(n=this.getDataRange(),this.moveTo(n.min.valueOf(),{animation:i},r)):(n=this.getItemRange(),this.range.setRange(n.min,n.max,{animation:i},r))}getItemRange(){const e=this.getDataRange();let r=e.min!==null?e.min.valueOf():null,i=e.max!==null?e.max.valueOf():null,n=null,s=null;if(r!=null&&i!=null){let a=i-r;a<=0&&(a=10);const o=a/this.props.center.width,l={};let u=0;if(M(S).call(S,this.itemSet.items,(h,d)=>{h.groupShowing&&(l[d]=h.redraw(!0),u=l[d].length)}),u>0)for(let h=0;h<u;h++)M(S).call(S,l,d=>{d[h]()});if(M(S).call(S,this.itemSet.items,h=>{const d=Qb(h),f=Jb(h);let p,v;this.options.rtl?(p=d-(h.getWidthRight()+10)*o,v=f+(h.getWidthLeft()+10)*o):(p=d-(h.getWidthLeft()+10)*o,v=f+(h.getWidthRight()+10)*o),p<r&&(r=p,n=h),v>i&&(i=v,s=h)}),n&&s){const h=n.getWidthLeft()+10,d=s.getWidthRight()+10,f=this.props.center.width-h-d;f>0&&(this.options.rtl?(r=Qb(n)-d*a/f,i=Jb(s)+h*a/f):(r=Qb(n)-h*a/f,i=Jb(s)+d*a/f))}}return{min:r!=null?new Date(r):null,max:i!=null?new Date(i):null}}getDataRange(){let e=null,r=null;if(this.itemsData){var i;M(i=this.itemsData).call(i,n=>{const s=S.convert(n.start,"Date").valueOf(),a=S.convert(n.end!=null?n.end:n.start,"Date").valueOf();(e===null||s<e)&&(e=s),(r===null||a>r)&&(r=a)})}return{min:e!=null?new Date(e):null,max:r!=null?new Date(r):null}}getEventProperties(e){const r=e.center?e.center.x:e.clientX,i=e.center?e.center.y:e.clientY,n=this.dom.centerContainer.getBoundingClientRect(),s=this.options.rtl?n.right-r:r-n.left,a=i-n.top,o=this.itemSet.itemFromTarget(e),l=this.itemSet.groupFromTarget(e),u=hw.customTimeFromTarget(e),c=this.itemSet.options.snap||null,h=this.body.util.getScale(),d=this.body.util.getStep(),f=this._toTime(s),p=c?c(f,h,d):f,v=S.getTarget(e);let m=null;return o!=null?m="item":u!=null?m="custom-time":S.hasParent(v,this.timeAxis.dom.foreground)||this.timeAxis2&&S.hasParent(v,this.timeAxis2.dom.foreground)?m="axis":S.hasParent(v,this.itemSet.dom.labelSet)?m="group-label":S.hasParent(v,this.currentTime.bar)?m="current-time":S.hasParent(v,this.dom.center)&&(m="background"),{event:e,item:o?o.id:null,isCluster:o?!!o.isCluster:!1,items:o?o.items||[]:null,group:l?l.groupId:null,customTime:u?u.options.id:null,what:m,pageX:e.srcEvent?e.srcEvent.pageX:e.pageX,pageY:e.srcEvent?e.srcEvent.pageY:e.pageY,x:s,y:a,time:f,snappedTime:p}}toggleRollingMode(){this.range.rolling?this.range.stopRolling():(this.options.rollingMode==null&&this.setOptions(this.options),this.range.startRolling())}_redraw(){Tn.prototype._redraw.call(this)}_onFit(e){const{start:r,end:i,animation:n}=e;i?this.range.setRange(r,i,{animation:n}):this.moveTo(r.valueOf(),{animation:n})}}function Qb(t){return S.convert(t.data.start,"Date").valueOf()}function Jb(t){const e=t.data.end!=null?t.data.end:t.data.start;return S.convert(e,"Date").valueOf()}function MF(t,e){if(!e.parent)return!1;const r=t.options.rtl?t.props.rightContainer.height:t.props.leftContainer.height,i=t.props.center.height,n=e.parent;let s=n.top,a=!0;const o=t.timeAxis.options.orientation.axis,l=()=>o=="bottom"?n.height-e.top-e.height:e.top,u=t._getScrollTop()*-1,c=s+l(),h=e.height;return c<u?s+r<=s+l()+h&&(s+=l()-t.itemSet.options.margin.item.vertical):c+h>u+r?s+=l()+h-r+t.itemSet.options.margin.item.vertical:a=!1,s=Math.min(s,i-r),{shouldScroll:a,scrollOffset:s,itemTop:c}}function zr(t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(t[e].redundant=t[e].used,t[e].used=[])}function Gt(t){for(var e in t){if(!Object.prototype.hasOwnProperty.call(t,e))continue;const i=t[e];for(var r=0;r<i.redundant.length;r++)i.redundant[r].parentNode.removeChild(i.redundant[r]);i.redundant=[]}}function wee(t){zr(t),Gt(t),zr(t)}function or(t,e,r){var i;return Object.prototype.hasOwnProperty.call(e,t)?e[t].redundant.length>0?(i=e[t].redundant[0],e[t].redundant.shift()):(i=document.createElementNS("http://www.w3.org/2000/svg",t),r.appendChild(i)):(i=document.createElementNS("http://www.w3.org/2000/svg",t),e[t]={used:[],redundant:[]},r.appendChild(i)),e[t].used.push(i),i}function e_(t,e,r,i){var n;return Object.prototype.hasOwnProperty.call(e,t)?e[t].redundant.length>0?(n=e[t].redundant[0],e[t].redundant.shift()):(n=document.createElement(t),r.appendChild(n)):(n=document.createElement(t),e[t]={used:[],redundant:[]},r.appendChild(n)),e[t].used.push(n),n}function Mn(t,e,r,i,n,s){var a;if(r.style=="circle"?(a=or("circle",i,n),a.setAttributeNS(null,"cx",t),a.setAttributeNS(null,"cy",e),a.setAttributeNS(null,"r",.5*r.size)):(a=or("rect",i,n),a.setAttributeNS(null,"x",t-.5*r.size),a.setAttributeNS(null,"y",e-.5*r.size),a.setAttributeNS(null,"width",r.size),a.setAttributeNS(null,"height",r.size)),r.styles!==void 0&&a.setAttributeNS(null,"style",r.styles),a.setAttributeNS(null,"class",r.className+" vis-point"),s){var o=or("text",i,n);s.xOffset&&(t=t+s.xOffset),s.yOffset&&(e=e+s.yOffset),s.content&&(o.textContent=s.content),s.className&&o.setAttributeNS(null,"class",s.className+" vis-label"),o.setAttributeNS(null,"x",t),o.setAttributeNS(null,"y",e)}return a}function x_(t,e,r,i,n,s,a,o){if(i!=0){i<0&&(i*=-1,e-=i);var l=or("rect",s,a);l.setAttributeNS(null,"x",t-.5*r),l.setAttributeNS(null,"y",e),l.setAttributeNS(null,"width",r),l.setAttributeNS(null,"height",i),l.setAttributeNS(null,"class",n),o&&l.setAttributeNS(null,"style",o)}}function See(){try{return navigator?navigator.languages&&navigator.languages.length?navigator.languages:navigator.userLanguage||navigator.language||navigator.browserLanguage||"en":"en"}catch{return"en"}}class Oee{constructor(e,r,i,n,s,a){let o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:!1,l=arguments.length>7&&arguments[7]!==void 0?arguments[7]:!1;if(this.majorSteps=[1,2,5,10],this.minorSteps=[.25,.5,1,2],this.customLines=null,this.containerHeight=s,this.majorCharHeight=a,this._start=e,this._end=r,this.scale=1,this.minorStepIdx=-1,this.magnitudefactor=1,this.determineScale(),this.zeroAlign=o,this.autoScaleStart=i,this.autoScaleEnd=n,this.formattingFunction=l,i||n){const u=this,c=h=>{const d=h-h%(u.magnitudefactor*u.minorSteps[u.minorStepIdx]);return h%(u.magnitudefactor*u.minorSteps[u.minorStepIdx])>.5*(u.magnitudefactor*u.minorSteps[u.minorStepIdx])?d+u.magnitudefactor*u.minorSteps[u.minorStepIdx]:d};i&&(this._start-=this.magnitudefactor*2*this.minorSteps[this.minorStepIdx],this._start=c(this._start)),n&&(this._end+=this.magnitudefactor*this.minorSteps[this.minorStepIdx],this._end=c(this._end)),this.determineScale()}}setCharHeight(e){this.majorCharHeight=e}setHeight(e){this.containerHeight=e}determineScale(){const e=this._end-this._start;this.scale=this.containerHeight/e;const r=this.majorCharHeight/this.scale,i=e>0?Math.round(Math.log(e)/Math.LN10):0;this.minorStepIdx=-1,this.magnitudefactor=Math.pow(10,i);let n=0;i<0&&(n=i);let s=!1;for(let a=n;Math.abs(a)<=Math.abs(i);a++){this.magnitudefactor=Math.pow(10,a);for(let o=0;o<this.minorSteps.length;o++)if(this.magnitudefactor*this.minorSteps[o]>=r){s=!0,this.minorStepIdx=o;break}if(s===!0)break}}is_major(e){return e%(this.magnitudefactor*this.majorSteps[this.minorStepIdx])===0}getStep(){return this.magnitudefactor*this.minorSteps[this.minorStepIdx]}getFirstMajor(){const e=this.magnitudefactor*this.majorSteps[this.minorStepIdx];return this.convertValue(this._start+(e-this._start%e)%e)}formatValue(e){let r=e.toPrecision(5);return typeof this.formattingFunction=="function"&&(r=this.formattingFunction(e)),typeof r=="number"?"".concat(r):typeof r=="string"?r:e.toPrecision(5)}getLines(){const e=[],r=this.getStep(),i=(r-this._start%r)%r;for(let n=this._start+i;this._end-n>1e-5;n+=r)n!=this._start&&e.push({major:this.is_major(n),y:this.convertValue(n),val:this.formatValue(n)});return e}followScale(e){const r=this.minorStepIdx,i=this._start,n=this._end,s=this,a=()=>{s.magnitudefactor*=2},o=()=>{s.magnitudefactor/=2};e.minorStepIdx<=1&&this.minorStepIdx<=1||e.minorStepIdx>1&&this.minorStepIdx>1||(e.minorStepIdx<this.minorStepIdx?(this.minorStepIdx=1,r==2||a(),a()):(this.minorStepIdx=2,r==1||o(),o()));const l=e.convertValue(0),u=e.getStep()*e.scale;let c=!1,h=0;for(;!c&&h++<5;){this.scale=u/(this.minorSteps[this.minorStepIdx]*this.magnitudefactor);const d=this.containerHeight/this.scale;this._start=i,this._end=this._start+d;const f=this._end*this.scale,p=this.magnitudefactor*this.majorSteps[this.minorStepIdx],v=this.getFirstMajor()-e.getFirstMajor();if(this.zeroAlign){const m=l-f;this._end+=m/this.scale,this._start=this._end-d}else this.autoScaleStart?(this._start-=v/this.scale,this._end=this._start+d):(this._start+=p-v/this.scale,this._end=this._start+d);if(!this.autoScaleEnd&&this._end>n+1e-5){o(),c=!1;continue}if(!this.autoScaleStart&&this._start<i-1e-5)if(this.zeroAlign&&i>=0)console.warn("Can't adhere to given 'min' range, due to zeroalign");else{o(),c=!1;continue}if(this.autoScaleStart&&this.autoScaleEnd&&d<n-i){a(),c=!1;continue}c=!0}}convertValue(e){return this.containerHeight-(e-this._start)*this.scale}screenToValue(e){return(this.containerHeight-e)/this.scale+this._start}}class NF extends li{constructor(e,r,i,n){super(),this.id=En(),this.body=e,this.defaultOptions={orientation:"left",showMinorLabels:!0,showMajorLabels:!0,showWeekScale:!1,icons:!1,majorLinesOffset:7,minorLinesOffset:4,labelOffsetX:10,labelOffsetY:2,iconWidth:20,width:"40px",visible:!0,alignZeros:!0,left:{range:{min:void 0,max:void 0},format(a){return"".concat(Oo(a.toPrecision(3)))},title:{text:void 0,style:void 0}},right:{range:{min:void 0,max:void 0},format(a){return"".concat(Oo(a.toPrecision(3)))},title:{text:void 0,style:void 0}}},this.linegraphOptions=n,this.linegraphSVG=i,this.props={},this.DOMelements={lines:{},labels:{},title:{}},this.dom={},this.scale=void 0,this.range={start:0,end:0},this.options=S.extend({},this.defaultOptions),this.conversionFactor=1,this.setOptions(r),this.width=Number("".concat(this.options.width).replace("px","")),this.minWidth=this.width,this.height=this.linegraphSVG.getBoundingClientRect().height,this.hidden=!1,this.stepPixels=25,this.zeroCrossing=-1,this.amountOfSteps=-1,this.lineOffset=0,this.master=!0,this.masterAxis=null,this.svgElements={},this.iconsRemoved=!1,this.groups={},this.amountOfGroups=0,this._create(),this.scale==null&&this._redrawLabels(),this.framework={svg:this.svg,svgElements:this.svgElements,options:this.options,groups:this.groups};const s=this;this.body.emitter.on("verticalDrag",()=>{s.dom.lineContainer.style.top="".concat(s.body.domProps.scrollTop,"px")})}addGroup(e,r){Object.prototype.hasOwnProperty.call(this.groups,e)||(this.groups[e]=r),this.amountOfGroups+=1}updateGroup(e,r){Object.prototype.hasOwnProperty.call(this.groups,e)||(this.amountOfGroups+=1),this.groups[e]=r}removeGroup(e){Object.prototype.hasOwnProperty.call(this.groups,e)&&(delete this.groups[e],this.amountOfGroups-=1)}setOptions(e){if(e){let r=!1;this.options.orientation!=e.orientation&&e.orientation!==void 0&&(r=!0);const i=["orientation","showMinorLabels","showMajorLabels","icons","majorLinesOffset","minorLinesOffset","labelOffsetX","labelOffsetY","iconWidth","width","visible","left","right","alignZeros"];S.selectiveDeepExtend(i,this.options,e),this.minWidth=Number("".concat(this.options.width).replace("px","")),r===!0&&this.dom.frame&&(this.hide(),this.show())}}_create(){this.dom.frame=document.createElement("div"),this.dom.frame.style.width=this.options.width,this.dom.frame.style.height=this.height,this.dom.lineContainer=document.createElement("div"),this.dom.lineContainer.style.width="100%",this.dom.lineContainer.style.height=this.height,this.dom.lineContainer.style.position="relative",this.dom.lineContainer.style.visibility="visible",this.dom.lineContainer.style.display="block",this.svg=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.svg.style.position="absolute",this.svg.style.top="0px",this.svg.style.height="100%",this.svg.style.width="100%",this.svg.style.display="block",this.dom.frame.appendChild(this.svg)}_redrawGroupIcons(){zr(this.svgElements);let e;const r=this.options.iconWidth,i=15,n=4;let s=n+.5*i;this.options.orientation==="left"?e=n:e=this.width-r-n;const a=ut(this.groups);Je(a).call(a,(o,l)=>o<l?-1:1);for(const o of a)this.groups[o].visible===!0&&(this.linegraphOptions.visibility[o]===void 0||this.linegraphOptions.visibility[o]===!0)&&(this.groups[o].getLegend(r,i,this.framework,e,s),s+=i+n);Gt(this.svgElements),this.iconsRemoved=!1}_cleanupIcons(){this.iconsRemoved===!1&&(zr(this.svgElements),Gt(this.svgElements),this.iconsRemoved=!0)}show(){this.hidden=!1,this.dom.frame.parentNode||(this.options.orientation==="left"?this.body.dom.left.appendChild(this.dom.frame):this.body.dom.right.appendChild(this.dom.frame)),this.dom.lineContainer.parentNode||this.body.dom.backgroundHorizontal.appendChild(this.dom.lineContainer),this.dom.lineContainer.style.display="block"}hide(){this.hidden=!0,this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame),this.dom.lineContainer.style.display="none"}setRange(e,r){this.range.start=e,this.range.end=r}redraw(){let e=!1,r=0;this.dom.lineContainer.style.top="".concat(this.body.domProps.scrollTop,"px");for(const i in this.groups)Object.prototype.hasOwnProperty.call(this.groups,i)&&this.groups[i].visible===!0&&(this.linegraphOptions.visibility[i]===void 0||this.linegraphOptions.visibility[i]===!0)&&r++;if(this.amountOfGroups===0||r===0)this.hide();else{this.show(),this.height=Number(this.linegraphSVG.style.height.replace("px","")),this.dom.lineContainer.style.height="".concat(this.height,"px"),this.width=this.options.visible===!0?Number("".concat(this.options.width).replace("px","")):0;const i=this.props,n=this.dom.frame;n.className="vis-data-axis",this._calculateCharSize();const s=this.options.orientation,a=this.options.showMinorLabels,o=this.options.showMajorLabels,l=this.body.dom.backgroundHorizontal.offsetWidth;i.minorLabelHeight=a?i.minorCharHeight:0,i.majorLabelHeight=o?i.majorCharHeight:0,i.minorLineWidth=l-this.lineOffset-this.width+2*this.options.minorLinesOffset,i.minorLineHeight=1,i.majorLineWidth=l-this.lineOffset-this.width+2*this.options.majorLinesOffset,i.majorLineHeight=1,s==="left"?(n.style.top="0",n.style.left="0",n.style.bottom="",n.style.width="".concat(this.width,"px"),n.style.height="".concat(this.height,"px"),this.props.width=this.body.domProps.left.width,this.props.height=this.body.domProps.left.height):(n.style.top="",n.style.bottom="0",n.style.left="0",n.style.width="".concat(this.width,"px"),n.style.height="".concat(this.height,"px"),this.props.width=this.body.domProps.right.width,this.props.height=this.body.domProps.right.height),e=this._redrawLabels(),e=this._isResized()||e,this.options.icons===!0?this._redrawGroupIcons():this._cleanupIcons(),this._redrawTitle(s)}return e}_redrawLabels(){let e=!1;zr(this.DOMelements.lines),zr(this.DOMelements.labels);const r=this.options.orientation,i=this.options[r].range!=null?this.options[r].range:{};let n=!0;i.max!=null&&(this.range.end=i.max,n=!1);let s=!0;i.min!=null&&(this.range.start=i.min,s=!1),this.scale=new Oee(this.range.start,this.range.end,s,n,this.dom.frame.offsetHeight,this.props.majorCharHeight,this.options.alignZeros,this.options[r].format),this.master===!1&&this.masterAxis!=null?(this.scale.followScale(this.masterAxis.scale),this.dom.lineContainer.style.display="none"):this.dom.lineContainer.style.display="block",this.maxLabelSize=0;const a=this.scale.getLines();M(a).call(a,u=>{const c=u.y,h=u.major;this.options.showMinorLabels&&h===!1&&this._redrawLabel(c-2,u.val,r,"vis-y-axis vis-minor",this.props.minorCharHeight),h&&c>=0&&this._redrawLabel(c-2,u.val,r,"vis-y-axis vis-major",this.props.majorCharHeight),this.master===!0&&(h?this._redrawLine(c,r,"vis-grid vis-horizontal vis-major",this.options.majorLinesOffset,this.props.majorLineWidth):this._redrawLine(c,r,"vis-grid vis-horizontal vis-minor",this.options.minorLinesOffset,this.props.minorLineWidth))});let o=0;this.options[r].title!==void 0&&this.options[r].title.text!==void 0&&(o=this.props.titleCharHeight);const l=this.options.icons===!0?Math.max(this.options.iconWidth,o)+this.options.labelOffsetX+15:o+this.options.labelOffsetX+15;return this.maxLabelSize>this.width-l&&this.options.visible===!0?(this.width=this.maxLabelSize+l,this.options.width="".concat(this.width,"px"),Gt(this.DOMelements.lines),Gt(this.DOMelements.labels),this.redraw(),e=!0):this.maxLabelSize<this.width-l&&this.options.visible===!0&&this.width>this.minWidth?(this.width=Math.max(this.minWidth,this.maxLabelSize+l),this.options.width="".concat(this.width,"px"),Gt(this.DOMelements.lines),Gt(this.DOMelements.labels),this.redraw(),e=!0):(Gt(this.DOMelements.lines),Gt(this.DOMelements.labels),e=!1),e}convertValue(e){return this.scale.convertValue(e)}screenToValue(e){return this.scale.screenToValue(e)}_redrawLabel(e,r,i,n,s){const a=e_("div",this.DOMelements.labels,this.dom.frame);a.className=n,a.innerHTML=S.xss(r),i==="left"?(a.style.left="-".concat(this.options.labelOffsetX,"px"),a.style.textAlign="right"):(a.style.right="-".concat(this.options.labelOffsetX,"px"),a.style.textAlign="left"),a.style.top="".concat(e-.5*s+this.options.labelOffsetY,"px"),r+="";const o=Math.max(this.props.majorCharWidth,this.props.minorCharWidth);this.maxLabelSize<r.length*o&&(this.maxLabelSize=r.length*o)}_redrawLine(e,r,i,n,s){if(this.master===!0){const a=e_("div",this.DOMelements.lines,this.dom.lineContainer);a.className=i,a.innerHTML="",r==="left"?a.style.left="".concat(this.width-n,"px"):a.style.right="".concat(this.width-n,"px"),a.style.width="".concat(s,"px"),a.style.top="".concat(e,"px")}}_redrawTitle(e){if(zr(this.DOMelements.title),this.options[e].title!==void 0&&this.options[e].title.text!==void 0){const r=e_("div",this.DOMelements.title,this.dom.frame);r.className="vis-y-axis vis-title vis-".concat(e),r.innerHTML=S.xss(this.options[e].title.text),this.options[e].title.style!==void 0&&S.addCssText(r,this.options[e].title.style),e==="left"?r.style.left="".concat(this.props.titleCharHeight,"px"):r.style.right="".concat(this.props.titleCharHeight,"px"),r.style.width="".concat(this.height,"px")}Gt(this.DOMelements.title)}_calculateCharSize(){if(!("minorCharHeight"in this.props)){const e=document.createTextNode("0"),r=document.createElement("div");r.className="vis-y-axis vis-minor vis-measure",r.appendChild(e),this.dom.frame.appendChild(r),this.props.minorCharHeight=r.clientHeight,this.props.minorCharWidth=r.clientWidth,this.dom.frame.removeChild(r)}if(!("majorCharHeight"in this.props)){const e=document.createTextNode("0"),r=document.createElement("div");r.className="vis-y-axis vis-major vis-measure",r.appendChild(e),this.dom.frame.appendChild(r),this.props.majorCharHeight=r.clientHeight,this.props.majorCharWidth=r.clientWidth,this.dom.frame.removeChild(r)}if(!("titleCharHeight"in this.props)){const e=document.createTextNode("0"),r=document.createElement("div");r.className="vis-y-axis vis-title vis-measure",r.appendChild(e),this.dom.frame.appendChild(r),this.props.titleCharHeight=r.clientHeight,this.props.titleCharWidth=r.clientWidth,this.dom.frame.removeChild(r)}}}function Ba(){}Ba.draw=function(t,e,r,i){i=i||0;for(var n=Eee(r,e),s=0;s<t.length;s++)if(!n)Mn(t[s].screen_x+i,t[s].screen_y,P_(e),r.svgElements,r.svg,t[s].label);else{var a=n(t[s],e);(a===!0||typeof a=="object")&&Mn(t[s].screen_x+i,t[s].screen_y,P_(e,a),r.svgElements,r.svg,t[s].label)}};Ba.drawIcon=function(t,e,r,i,n,s){var a=n*.5,o=or("rect",s.svgElements,s.svg);o.setAttributeNS(null,"x",e),o.setAttributeNS(null,"y",r-a),o.setAttributeNS(null,"width",i),o.setAttributeNS(null,"height",2*a),o.setAttributeNS(null,"class","vis-outline"),Mn(e+.5*i,r,P_(t),s.svgElements,s.svg)};function P_(t,e){return e=typeof e>"u"?{}:e,{style:e.style||t.options.drawPoints.style,styles:e.styles||t.options.drawPoints.styles,size:e.size||t.options.drawPoints.size,className:e.className||t.className}}function Eee(t,e){var r=void 0;return t.options&&t.options.drawPoints&&t.options.drawPoints.onRender&&typeof t.options.drawPoints.onRender=="function"&&(r=t.options.drawPoints.onRender),e.group.options&&e.group.options.drawPoints&&e.group.options.drawPoints.onRender&&typeof e.group.options.drawPoints.onRender=="function"&&(r=e.group.options.drawPoints.onRender),r}function pt(){}pt.drawIcon=function(t,e,r,i,n,s){var a=n*.5,o=or("rect",s.svgElements,s.svg);o.setAttributeNS(null,"x",e),o.setAttributeNS(null,"y",r-a),o.setAttributeNS(null,"width",i),o.setAttributeNS(null,"height",2*a),o.setAttributeNS(null,"class","vis-outline");var l=Math.round(.3*i),u=t.options.barChart.width,c=u/l,h=Math.round(.4*n),d=Math.round(.75*n),f=Math.round((i-2*l)/3);if(x_(e+.5*l+f,r+a-h-1,l,h,t.className+" vis-bar",s.svgElements,s.svg,t.style),x_(e+1.5*l+f+2,r+a-d-1,l,d,t.className+" vis-bar",s.svgElements,s.svg,t.style),t.options.drawPoints.enabled==!0){var p={style:t.options.drawPoints.style,styles:t.options.drawPoints.styles,size:t.options.drawPoints.size/c,className:t.className};Mn(e+.5*l+f,r+a-h-1,p,s.svgElements,s.svg),Mn(e+1.5*l+f+2,r+a-d-1,p,s.svgElements,s.svg)}};pt.draw=function(t,e,r){var i=[],n={},s,a,o,l,u,c,h=0;for(u=0;u<t.length;u++)if(l=r.groups[t[u]],l.options.style==="bar"&&l.visible===!0&&(r.options.groups.visibility[t[u]]===void 0||r.options.groups.visibility[t[u]]===!0))for(c=0;c<e[t[u]].length;c++)i.push({screen_x:e[t[u]][c].screen_x,screen_end:e[t[u]][c].screen_end,screen_y:e[t[u]][c].screen_y,x:e[t[u]][c].x,end:e[t[u]][c].end,y:e[t[u]][c].y,groupId:t[u],label:e[t[u]][c].label}),h+=1;if(h!==0)for(Je(i).call(i,function(v,m){return v.screen_x===m.screen_x?v.groupId<m.groupId?-1:1:v.screen_x-m.screen_x}),pt._getDataIntersections(n,i),u=0;u<i.length;u++){l=r.groups[i[u].groupId];var d=l.options.barChart.minWidth!=null?l.options.barChart.minWidth:.1*l.options.barChart.width;a=i[u].screen_x;var f=0;if(n[a]===void 0)u+1<i.length&&(s=Math.abs(i[u+1].screen_x-a)),o=pt._getSafeDrawData(s,l,d);else{var p=u+(n[a].amount-n[a].resolved);p<i.length&&(s=Math.abs(i[p].screen_x-a)),o=pt._getSafeDrawData(s,l,d),n[a].resolved+=1,l.options.stack===!0&&l.options.excludeFromStacking!==!0?i[u].screen_y<l.zeroPosition?(f=n[a].accumulatedNegative,n[a].accumulatedNegative+=l.zeroPosition-i[u].screen_y):(f=n[a].accumulatedPositive,n[a].accumulatedPositive+=l.zeroPosition-i[u].screen_y):l.options.barChart.sideBySide===!0&&(o.width=o.width/n[a].amount,o.offset+=n[a].resolved*o.width-.5*o.width*(n[a].amount+1))}let v=o.width,m=i[u].screen_x;if(i[u].screen_end!=null?(v=i[u].screen_end-i[u].screen_x,m+=v*.5):m+=o.offset,x_(m,i[u].screen_y-f,v,l.zeroPosition-i[u].screen_y,l.className+" vis-bar",r.svgElements,r.svg,l.style),l.options.drawPoints.enabled===!0){let y={screen_x:i[u].screen_x,screen_y:i[u].screen_y-f,x:i[u].x,y:i[u].y,groupId:i[u].groupId,label:i[u].label};Ba.draw([y],l,r,o.offset)}}};pt._getDataIntersections=function(t,e){for(var r,i=0;i<e.length;i++)i+1<e.length&&(r=Math.abs(e[i+1].screen_x-e[i].screen_x)),i>0&&(r=Math.min(r,Math.abs(e[i-1].screen_x-e[i].screen_x))),r===0&&(t[e[i].screen_x]===void 0&&(t[e[i].screen_x]={amount:0,resolved:0,accumulatedPositive:0,accumulatedNegative:0}),t[e[i].screen_x].amount+=1)};pt._getSafeDrawData=function(t,e,r){var i,n;return t<e.options.barChart.width&&t>0?(i=t<r?r:t,n=0,e.options.barChart.align==="left"?n-=.5*t:e.options.barChart.align==="right"&&(n+=.5*t)):(i=e.options.barChart.width,n=0,e.options.barChart.align==="left"?n-=.5*e.options.barChart.width:e.options.barChart.align==="right"&&(n+=.5*e.options.barChart.width)),{width:i,offset:n}};pt.getStackedYRange=function(t,e,r,i,n){if(t.length>0){Je(t).call(t,function(a,o){return a.screen_x===o.screen_x?a.groupId<o.groupId?-1:1:a.screen_x-o.screen_x});var s={};pt._getDataIntersections(s,t),e[i]=pt._getStackedYRange(s,t),e[i].yAxisOrientation=n,r.push(i)}};pt._getStackedYRange=function(t,e){for(var r,i=e[0].screen_y,n=e[0].screen_y,s=0;s<e.length;s++)r=e[s].screen_x,t[r]===void 0?(i=i>e[s].screen_y?e[s].screen_y:i,n=n<e[s].screen_y?e[s].screen_y:n):e[s].screen_y<0?t[r].accumulatedNegative+=e[s].screen_y:t[r].accumulatedPositive+=e[s].screen_y;for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(i=i>t[a].accumulatedNegative?t[a].accumulatedNegative:i,i=i>t[a].accumulatedPositive?t[a].accumulatedPositive:i,n=n<t[a].accumulatedNegative?t[a].accumulatedNegative:n,n=n<t[a].accumulatedPositive?t[a].accumulatedPositive:n);return{min:i,max:n}};function lt(){}lt.calcPath=function(t,e){if(t!=null&&t.length>0){var r=[];return e.options.interpolation.enabled==!0?r=lt._catmullRom(t,e):r=lt._linear(t),r}};lt.drawIcon=function(t,e,r,i,n,s){var a=n*.5,o,l,u=or("rect",s.svgElements,s.svg);if(u.setAttributeNS(null,"x",e),u.setAttributeNS(null,"y",r-a),u.setAttributeNS(null,"width",i),u.setAttributeNS(null,"height",2*a),u.setAttributeNS(null,"class","vis-outline"),o=or("path",s.svgElements,s.svg),o.setAttributeNS(null,"class",t.className),t.style!==void 0&&o.setAttributeNS(null,"style",t.style),o.setAttributeNS(null,"d","M"+e+","+r+" L"+(e+i)+","+r),t.options.shaded.enabled==!0&&(l=or("path",s.svgElements,s.svg),t.options.shaded.orientation=="top"?l.setAttributeNS(null,"d","M"+e+", "+(r-a)+"L"+e+","+r+" L"+(e+i)+","+r+" L"+(e+i)+","+(r-a)):l.setAttributeNS(null,"d","M"+e+","+r+" L"+e+","+(r+a)+" L"+(e+i)+","+(r+a)+"L"+(e+i)+","+r),l.setAttributeNS(null,"class",t.className+" vis-icon-fill"),t.options.shaded.style!==void 0&&t.options.shaded.style!==""&&l.setAttributeNS(null,"style",t.options.shaded.style)),t.options.drawPoints.enabled==!0){var c={style:t.options.drawPoints.style,styles:t.options.drawPoints.styles,size:t.options.drawPoints.size,className:t.className};Mn(e+.5*i,r,c,s.svgElements,s.svg)}};lt.drawShading=function(t,e,r,i){if(e.options.shaded.enabled==!0){var n=Number(i.svg.style.height.replace("px","")),s=or("path",i.svgElements,i.svg),a="L";e.options.interpolation.enabled==!0&&(a="C");var o,l=0;e.options.shaded.orientation=="top"?l=0:e.options.shaded.orientation=="bottom"?l=n:l=Math.min(Math.max(0,e.zeroPosition),n),e.options.shaded.orientation=="group"&&r!=null&&r!=null?o="M"+t[0][0]+","+t[0][1]+" "+this.serializePath(t,a,!1)+" L"+r[r.length-1][0]+","+r[r.length-1][1]+" "+this.serializePath(r,a,!0)+r[0][0]+","+r[0][1]+" Z":o="M"+t[0][0]+","+t[0][1]+" "+this.serializePath(t,a,!1)+" V"+l+" H"+t[0][0]+" Z",s.setAttributeNS(null,"class",e.className+" vis-fill"),e.options.shaded.style!==void 0&&s.setAttributeNS(null,"style",e.options.shaded.style),s.setAttributeNS(null,"d",o)}};lt.draw=function(t,e,r){if(t!=null&&t!=null){var i=or("path",r.svgElements,r.svg);i.setAttributeNS(null,"class",e.className),e.style!==void 0&&i.setAttributeNS(null,"style",e.style);var n="L";e.options.interpolation.enabled==!0&&(n="C"),i.setAttributeNS(null,"d","M"+t[0][0]+","+t[0][1]+" "+this.serializePath(t,n,!1))}};lt.serializePath=function(t,e,r){if(t.length<2)return"";var i=e,n;if(r)for(n=t.length-2;n>0;n--)i+=t[n][0]+","+t[n][1]+" ";else for(n=1;n<t.length;n++)i+=t[n][0]+","+t[n][1]+" ";return i};lt._catmullRomUniform=function(t){var e,r,i,n,s,a,o=[];o.push([Math.round(t[0].screen_x),Math.round(t[0].screen_y)]);for(var l=1/6,u=t.length,c=0;c<u-1;c++)e=c==0?t[0]:t[c-1],r=t[c],i=t[c+1],n=c+2<u?t[c+2]:i,s={screen_x:(-e.screen_x+6*r.screen_x+i.screen_x)*l,screen_y:(-e.screen_y+6*r.screen_y+i.screen_y)*l},a={screen_x:(r.screen_x+6*i.screen_x-n.screen_x)*l,screen_y:(r.screen_y+6*i.screen_y-n.screen_y)*l},o.push([s.screen_x,s.screen_y]),o.push([a.screen_x,a.screen_y]),o.push([i.screen_x,i.screen_y]);return o};lt._catmullRom=function(t,e){var r=e.options.interpolation.alpha;if(r==0||r===void 0)return this._catmullRomUniform(t);var i,n,s,a,o,l,u,c,h,d,f,p,v,m,y,g,O,_,w,E=[];E.push([Math.round(t[0].screen_x),Math.round(t[0].screen_y)]);for(var $=t.length,b=0;b<$-1;b++)i=b==0?t[0]:t[b-1],n=t[b],s=t[b+1],a=b+2<$?t[b+2]:s,u=Math.sqrt(Math.pow(i.screen_x-n.screen_x,2)+Math.pow(i.screen_y-n.screen_y,2)),c=Math.sqrt(Math.pow(n.screen_x-s.screen_x,2)+Math.pow(n.screen_y-s.screen_y,2)),h=Math.sqrt(Math.pow(s.screen_x-a.screen_x,2)+Math.pow(s.screen_y-a.screen_y,2)),m=Math.pow(h,r),g=Math.pow(h,2*r),y=Math.pow(c,r),O=Math.pow(c,2*r),w=Math.pow(u,r),_=Math.pow(u,2*r),d=2*_+3*w*y+O,f=2*g+3*m*y+O,p=3*w*(w+y),p>0&&(p=1/p),v=3*m*(m+y),v>0&&(v=1/v),o={screen_x:(-O*i.screen_x+d*n.screen_x+_*s.screen_x)*p,screen_y:(-O*i.screen_y+d*n.screen_y+_*s.screen_y)*p},l={screen_x:(g*n.screen_x+f*s.screen_x-O*a.screen_x)*v,screen_y:(g*n.screen_y+f*s.screen_y-O*a.screen_y)*v},o.screen_x==0&&o.screen_y==0&&(o=n),l.screen_x==0&&l.screen_y==0&&(l=s),E.push([o.screen_x,o.screen_y]),E.push([l.screen_x,l.screen_y]),E.push([s.screen_x,s.screen_y]);return E};lt._linear=function(t){for(var e=[],r=0;r<t.length;r++)e.push([t[r].screen_x,t[r].screen_y]);return e};function ui(t,e,r,i){this.id=e;var n=["sampling","style","sort","yAxisOrientation","barChart","drawPoints","shaded","interpolation","zIndex","excludeFromStacking","excludeFromLegend"];this.options=S.selectiveBridgeObject(n,r),this.usingDefaultStyle=t.className===void 0,this.groupsUsingDefaultStyles=i,this.zeroPosition=0,this.update(t),this.usingDefaultStyle==!0&&(this.groupsUsingDefaultStyles[0]+=1),this.itemsData=[],this.visible=t.visible===void 0?!0:t.visible}ui.prototype.setItems=function(t){t!=null?(this.itemsData=t,Je(this.options)==!0&&S.insertSort(this.itemsData,function(e,r){return e.x>r.x?1:-1})):this.itemsData=[]};ui.prototype.getItems=function(){return this.itemsData};ui.prototype.setZeroPosition=function(t){this.zeroPosition=t};ui.prototype.setOptions=function(t){if(t!==void 0){var e=["sampling","style","sort","yAxisOrientation","barChart","zIndex","excludeFromStacking","excludeFromLegend"];S.selectiveDeepExtend(e,this.options,t),typeof t.drawPoints=="function"&&(t.drawPoints={onRender:t.drawPoints}),S.mergeOptions(this.options,t,"interpolation"),S.mergeOptions(this.options,t,"drawPoints"),S.mergeOptions(this.options,t,"shaded"),t.interpolation&&typeof t.interpolation=="object"&&t.interpolation.parametrization&&(t.interpolation.parametrization=="uniform"?this.options.interpolation.alpha=0:t.interpolation.parametrization=="chordal"?this.options.interpolation.alpha=1:(this.options.interpolation.parametrization="centripetal",this.options.interpolation.alpha=.5))}};ui.prototype.update=function(t){this.group=t,this.content=t.content||"graph",this.className=t.className||this.className||"vis-graph-group"+this.groupsUsingDefaultStyles[0]%10,this.visible=t.visible===void 0?!0:t.visible,this.style=t.style,this.setOptions(t.options)};ui.prototype.getLegend=function(t,e,r,i,n){if(r==null||r==null){var s=document.createElementNS("http://www.w3.org/2000/svg","svg");r={svg:s,svgElements:{},options:this.options,groups:[this]}}switch((i==null||i==null)&&(i=0),(n==null||n==null)&&(n=.5*e),this.options.style){case"line":lt.drawIcon(this,i,n,t,e,r);break;case"points":case"point":Ba.drawIcon(this,i,n,t,e,r);break;case"bar":pt.drawIcon(this,i,n,t,e,r);break}return{icon:r.svg,label:this.content,orientation:this.options.yAxisOrientation}};ui.prototype.getYRange=function(t){for(var e=t[0].y,r=t[0].y,i=0;i<t.length;i++)e=e>t[i].y?t[i].y:e,r=r<t[i].y?t[i].y:r;return{min:e,max:r,yAxisOrientation:this.options.yAxisOrientation}};function Nt(t,e,r,i){this.body=t,this.defaultOptions={enabled:!1,icons:!0,iconSize:20,iconSpacing:6,left:{visible:!0,position:"top-left"},right:{visible:!0,position:"top-right"}},this.side=r,this.options=S.extend({},this.defaultOptions),this.linegraphOptions=i,this.svgElements={},this.dom={},this.groups={},this.amountOfGroups=0,this._create(),this.framework={svg:this.svg,svgElements:this.svgElements,options:this.options,groups:this.groups},this.setOptions(e)}Nt.prototype=new li;Nt.prototype.clear=function(){this.groups={},this.amountOfGroups=0};Nt.prototype.addGroup=function(t,e){e.options.excludeFromLegend!=!0&&(Object.prototype.hasOwnProperty.call(this.groups,t)||(this.groups[t]=e),this.amountOfGroups+=1)};Nt.prototype.updateGroup=function(t,e){this.groups[t]=e};Nt.prototype.removeGroup=function(t){Object.prototype.hasOwnProperty.call(this.groups,t)&&(delete this.groups[t],this.amountOfGroups-=1)};Nt.prototype._create=function(){this.dom.frame=document.createElement("div"),this.dom.frame.className="vis-legend",this.dom.frame.style.position="absolute",this.dom.frame.style.top="10px",this.dom.frame.style.display="block",this.dom.textArea=document.createElement("div"),this.dom.textArea.className="vis-legend-text",this.dom.textArea.style.position="relative",this.dom.textArea.style.top="0px",this.svg=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.svg.style.position="absolute",this.svg.style.top="0px",this.svg.style.width=this.options.iconSize+5+"px",this.svg.style.height="100%",this.dom.frame.appendChild(this.svg),this.dom.frame.appendChild(this.dom.textArea)};Nt.prototype.hide=function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame)};Nt.prototype.show=function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame)};Nt.prototype.setOptions=function(t){var e=["enabled","orientation","icons","left","right"];S.selectiveDeepExtend(e,this.options,t)};Nt.prototype.redraw=function(){var t=0,e=ut(this.groups);Je(e).call(e,function(a,o){return a<o?-1:1});for(var r=0;r<e.length;r++){var i=e[r];this.groups[i].visible==!0&&(this.linegraphOptions.visibility[i]===void 0||this.linegraphOptions.visibility[i]==!0)&&t++}if(this.options[this.side].visible==!1||this.amountOfGroups==0||this.options.enabled==!1||t==0)this.hide();else{if(this.show(),this.options[this.side].position=="top-left"||this.options[this.side].position=="bottom-left"?(this.dom.frame.style.left="4px",this.dom.frame.style.textAlign="left",this.dom.textArea.style.textAlign="left",this.dom.textArea.style.left=this.options.iconSize+15+"px",this.dom.textArea.style.right="",this.svg.style.left="0px",this.svg.style.right=""):(this.dom.frame.style.right="4px",this.dom.frame.style.textAlign="right",this.dom.textArea.style.textAlign="right",this.dom.textArea.style.right=this.options.iconSize+15+"px",this.dom.textArea.style.left="",this.svg.style.right="0px",this.svg.style.left=""),this.options[this.side].position=="top-left"||this.options[this.side].position=="top-right")this.dom.frame.style.top=4-Number(this.body.dom.center.style.top.replace("px",""))+"px",this.dom.frame.style.bottom="";else{var n=this.body.domProps.center.height-this.body.domProps.centerContainer.height;this.dom.frame.style.bottom=4+n+Number(this.body.dom.center.style.top.replace("px",""))+"px",this.dom.frame.style.top=""}this.options.icons==!1?(this.dom.frame.style.width=this.dom.textArea.offsetWidth+10+"px",this.dom.textArea.style.right="",this.dom.textArea.style.left="",this.svg.style.width="0px"):(this.dom.frame.style.width=this.options.iconSize+15+this.dom.textArea.offsetWidth+10+"px",this.drawLegendIcons());var s="";for(r=0;r<e.length;r++)i=e[r],this.groups[i].visible==!0&&(this.linegraphOptions.visibility[i]===void 0||this.linegraphOptions.visibility[i]==!0)&&(s+=this.groups[i].content+"<br />");this.dom.textArea.innerHTML=S.xss(s),this.dom.textArea.style.lineHeight=.75*this.options.iconSize+this.options.iconSpacing+"px"}};Nt.prototype.drawLegendIcons=function(){if(this.dom.frame.parentNode){var t=ut(this.groups);Je(t).call(t,function(u,c){return u<c?-1:1}),wee(this.svgElements);var e=window.getComputedStyle(this.dom.frame).paddingTop,r=Number(e.replace("px","")),i=r,n=this.options.iconSize,s=.75*this.options.iconSize,a=r+.5*s+3;this.svg.style.width=n+5+r+"px";for(var o=0;o<t.length;o++){var l=t[o];this.groups[l].visible==!0&&(this.linegraphOptions.visibility[l]===void 0||this.linegraphOptions.visibility[l]==!0)&&(this.groups[l].getLegend(n,s,this.framework,i,a),a+=s+this.options.iconSpacing)}}};var Do="__ungrouped__";function we(t,e){this.id=En(),this.body=t,this.defaultOptions={yAxisOrientation:"left",defaultGroup:"default",sort:!0,sampling:!0,stack:!1,graphHeight:"400px",shaded:{enabled:!1,orientation:"bottom"},style:"line",barChart:{width:50,sideBySide:!1,align:"center"},interpolation:{enabled:!0,parametrization:"centripetal",alpha:.5},drawPoints:{enabled:!0,size:6,style:"square"},dataAxis:{},legend:{},groups:{visibility:{}}},this.options=S.extend({},this.defaultOptions),this.dom={},this.props={},this.hammer=null,this.groups={},this.abortedGraphUpdate=!1,this.updateSVGheight=!1,this.updateSVGheightOnResize=!1,this.forceGraphUpdate=!0;var r=this;this.itemsData=null,this.groupsData=null,this.itemListeners={add:function(i,n){r._onAdd(n.items)},update:function(i,n){r._onUpdate(n.items)},remove:function(i,n){r._onRemove(n.items)}},this.groupListeners={add:function(i,n){r._onAddGroups(n.items)},update:function(i,n){r._onUpdateGroups(n.items)},remove:function(i,n){r._onRemoveGroups(n.items)}},this.items={},this.selection=[],this.lastStart=this.body.range.start,this.touchParams={},this.svgElements={},this.setOptions(e),this.groupsUsingDefaultStyles=[0],this.body.emitter.on("rangechanged",function(){r.svg.style.left=S.option.asSize(-r.props.width),r.forceGraphUpdate=!0,r.redraw.call(r)}),this._create(),this.framework={svg:this.svg,svgElements:this.svgElements,options:this.options,groups:this.groups}}we.prototype=new li;we.prototype._create=function(){var t=document.createElement("div");t.className="vis-line-graph",this.dom.frame=t,this.svg=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.svg.style.position="relative",this.svg.style.height=(""+this.options.graphHeight).replace("px","")+"px",this.svg.style.display="block",t.appendChild(this.svg),this.options.dataAxis.orientation="left",this.yAxisLeft=new NF(this.body,this.options.dataAxis,this.svg,this.options.groups),this.options.dataAxis.orientation="right",this.yAxisRight=new NF(this.body,this.options.dataAxis,this.svg,this.options.groups),delete this.options.dataAxis.orientation,this.legendLeft=new Nt(this.body,this.options.legend,"left",this.options.groups),this.legendRight=new Nt(this.body,this.options.legend,"right",this.options.groups),this.show()};we.prototype.setOptions=function(t){if(t){var e=["sampling","defaultGroup","stack","height","graphHeight","yAxisOrientation","style","barChart","dataAxis","sort","groups"];t.graphHeight===void 0&&t.height!==void 0?(this.updateSVGheight=!0,this.updateSVGheightOnResize=!0):this.body.domProps.centerContainer.height!==void 0&&t.graphHeight!==void 0&&Ct((t.graphHeight+"").replace("px",""))<this.body.domProps.centerContainer.height&&(this.updateSVGheight=!0),S.selectiveDeepExtend(e,this.options,t),S.mergeOptions(this.options,t,"interpolation"),S.mergeOptions(this.options,t,"drawPoints"),S.mergeOptions(this.options,t,"shaded"),S.mergeOptions(this.options,t,"legend"),t.interpolation&&typeof t.interpolation=="object"&&t.interpolation.parametrization&&(t.interpolation.parametrization=="uniform"?this.options.interpolation.alpha=0:t.interpolation.parametrization=="chordal"?this.options.interpolation.alpha=1:(this.options.interpolation.parametrization="centripetal",this.options.interpolation.alpha=.5)),this.yAxisLeft&&t.dataAxis!==void 0&&(this.yAxisLeft.setOptions(this.options.dataAxis),this.yAxisRight.setOptions(this.options.dataAxis)),this.legendLeft&&t.legend!==void 0&&(this.legendLeft.setOptions(this.options.legend),this.legendRight.setOptions(this.options.legend)),Object.prototype.hasOwnProperty.call(this.groups,Do)&&this.groups[Do].setOptions(t)}this.dom.frame&&(this.forceGraphUpdate=!0,this.body.emitter.emit("_change",{queue:!0}))};we.prototype.hide=function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame)};we.prototype.show=function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame)};we.prototype.setItems=function(t){var e=this,r,i=this.itemsData;if(!t)this.itemsData=null;else if(Lr(t))this.itemsData=kn(t);else throw new TypeError("Data must implement the interface of DataSet or DataView");if(i&&(M(S).call(S,this.itemListeners,function(s,a){i.off(a,s)}),i.dispose(),r=i.getIds(),this._onRemove(r)),this.itemsData){var n=this.id;M(S).call(S,this.itemListeners,function(s,a){e.itemsData.on(a,s,n)}),r=this.itemsData.getIds(),this._onAdd(r)}};we.prototype.setGroups=function(t){var e=this,r;if(this.groupsData){M(S).call(S,this.groupListeners,function(s,a){e.groupsData.off(a,s)}),r=this.groupsData.getIds(),this.groupsData=null;for(var i=0;i<r.length;i++)this._removeGroup(r[i])}if(!t)this.groupsData=null;else if(Lr(t))this.groupsData=t;else throw new TypeError("Data must implement the interface of DataSet or DataView");if(this.groupsData){var n=this.id;M(S).call(S,this.groupListeners,function(s,a){e.groupsData.on(a,s,n)}),r=this.groupsData.getIds(),this._onAddGroups(r)}};we.prototype._onUpdate=function(t){this._updateAllGroupData(t)};we.prototype._onAdd=function(t){this._onUpdate(t)};we.prototype._onRemove=function(t){this._onUpdate(t)};we.prototype._onUpdateGroups=function(t){this._updateAllGroupData(null,t)};we.prototype._onAddGroups=function(t){this._onUpdateGroups(t)};we.prototype._onRemoveGroups=function(t){for(var e=0;e<t.length;e++)this._removeGroup(t[e]);this.forceGraphUpdate=!0,this.body.emitter.emit("_change",{queue:!0})};we.prototype._removeGroup=function(t){Object.prototype.hasOwnProperty.call(this.groups,t)&&(this.groups[t].options.yAxisOrientation=="right"?(this.yAxisRight.removeGroup(t),this.legendRight.removeGroup(t),this.legendRight.redraw()):(this.yAxisLeft.removeGroup(t),this.legendLeft.removeGroup(t),this.legendLeft.redraw()),delete this.groups[t])};we.prototype._updateGroup=function(t,e){Object.prototype.hasOwnProperty.call(this.groups,e)?(this.groups[e].update(t),this.groups[e].options.yAxisOrientation=="right"?(this.yAxisRight.updateGroup(e,this.groups[e]),this.legendRight.updateGroup(e,this.groups[e]),this.yAxisLeft.removeGroup(e),this.legendLeft.removeGroup(e)):(this.yAxisLeft.updateGroup(e,this.groups[e]),this.legendLeft.updateGroup(e,this.groups[e]),this.yAxisRight.removeGroup(e),this.legendRight.removeGroup(e))):(this.groups[e]=new ui(t,e,this.options,this.groupsUsingDefaultStyles),this.groups[e].options.yAxisOrientation=="right"?(this.yAxisRight.addGroup(e,this.groups[e]),this.legendRight.addGroup(e,this.groups[e])):(this.yAxisLeft.addGroup(e,this.groups[e]),this.legendLeft.addGroup(e,this.groups[e]))),this.legendLeft.redraw(),this.legendRight.redraw()};we.prototype._updateAllGroupData=function(t,e){if(this.itemsData!=null){var r={},i=this.itemsData.get(),n=this.itemsData.idProp,s={};t&&Qe(t).call(t,function(m){s[m]=m});for(var a={},o=0;o<i.length;o++){var l=i[o],u=l.group;u==null&&(u=Do),Object.prototype.hasOwnProperty.call(a,u)?a[u]++:a[u]=1}var c={};if(!e&&t){for(u in this.groups)if(Object.prototype.hasOwnProperty.call(this.groups,u)){v=this.groups[u];var h=v.getItems();r[u]=ue(h).call(h,function(m){return c[m[n]]=m[n],m[n]!==s[m[n]]});var d=a[u];a[u]-=r[u].length,r[u].length<d&&(r[u][d-1]={})}}for(o=0;o<i.length;o++)if(l=i[o],u=l.group,u==null&&(u=Do),!(!e&&t&&l[n]!==s[l[n]]&&Object.prototype.hasOwnProperty.call(c,l[n]))){Object.prototype.hasOwnProperty.call(r,u)||(r[u]=new Array(a[u]));var f=S.bridgeObject(l);f.x=S.convert(l.x,"Date"),f.end=S.convert(l.end,"Date"),f.orginalY=l.y,f.y=Number(l.y),f[n]=l[n];var p=r[u].length-a[u]--;r[u][p]=f}for(u in this.groups)!Object.prototype.hasOwnProperty.call(this.groups,u)||Object.prototype.hasOwnProperty.call(r,u)||(r[u]=new Array(0));for(u in r)if(Object.prototype.hasOwnProperty.call(r,u))if(r[u].length==0)Object.prototype.hasOwnProperty.call(this.groups,u)&&this._removeGroup(u);else{var v=void 0;this.groupsData!=null&&(v=this.groupsData.get(u)),v==null&&(v={id:u,content:this.options.defaultGroup+u}),this._updateGroup(v,u),this.groups[u].setItems(r[u])}this.forceGraphUpdate=!0,this.body.emitter.emit("_change",{queue:!0})}};we.prototype.redraw=function(){var t=!1;this.props.width=this.dom.frame.offsetWidth,this.props.height=this.body.domProps.centerContainer.height-this.body.domProps.border.top-this.body.domProps.border.bottom,t=this._isResized()||t;var e=this.body.range.end-this.body.range.start,r=e!=this.lastVisibleInterval;if(this.lastVisibleInterval=e,t==!0){var i;this.svg.style.width=S.option.asSize(3*this.props.width),this.svg.style.left=S.option.asSize(-this.props.width),(be(i=this.options.height+"").call(i,"%")!=-1||this.updateSVGheightOnResize==!0)&&(this.updateSVGheight=!0)}if(this.updateSVGheight==!0?(this.options.graphHeight!=this.props.height+"px"&&(this.options.graphHeight=this.props.height+"px",this.svg.style.height=this.props.height+"px"),this.updateSVGheight=!1):this.svg.style.height=(""+this.options.graphHeight).replace("px","")+"px",t==!0||r==!0||this.abortedGraphUpdate==!0||this.forceGraphUpdate==!0)t=this._updateGraph()||t,this.forceGraphUpdate=!1,this.lastStart=this.body.range.start,this.svg.style.left=-this.props.width+"px";else if(this.lastStart!=0){var n=this.body.range.start-this.lastStart,s=this.body.range.end-this.body.range.start;if(this.props.width!=0){var a=this.props.width/s,o=n*a;this.svg.style.left=-this.props.width-o+"px"}}return this.legendLeft.redraw(),this.legendRight.redraw(),t};we.prototype._getSortedGroupIds=function(){var t=[];for(var e in this.groups)if(Object.prototype.hasOwnProperty.call(this.groups,e)){var r=this.groups[e];r.visible==!0&&(this.options.groups.visibility[e]===void 0||this.options.groups.visibility[e]==!0)&&t.push({id:e,zIndex:r.options.zIndex})}S.insertSort(t,function(s,a){var o=s.zIndex,l=a.zIndex;return o===void 0&&(o=0),l===void 0&&(l=0),o==l?0:o<l?-1:1});for(var i=new Array(t.length),n=0;n<t.length;n++)i[n]=t[n].id;return i};we.prototype._updateGraph=function(){if(zr(this.svgElements),this.props.width!=0&&this.itemsData!=null){var t,e,r={},i=!1,n=this.body.util.toGlobalTime(-this.body.domProps.root.width),s=this.body.util.toGlobalTime(2*this.body.domProps.root.width),a=this._getSortedGroupIds();if(a.length>0){var o={};for(this._getRelevantData(a,o,n,s),this._applySampling(a,o),e=0;e<a.length;e++)this._convertXcoordinates(o[a[e]]);if(this._getYRanges(a,o,r),i=this._updateYAxis(a,r),i==!0)return Gt(this.svgElements),this.abortedGraphUpdate=!0,!0;this.abortedGraphUpdate=!1;var l=void 0;for(e=0;e<a.length;e++)t=this.groups[a[e]],this.options.stack===!0&&this.options.style==="line"&&(t.options.excludeFromStacking==null||!t.options.excludeFromStacking)&&(l!=null&&(this._stack(o[t.id],o[l.id]),t.options.shaded.enabled==!0&&t.options.shaded.orientation!=="group"&&(t.options.shaded.orientation=="top"&&l.options.shaded.orientation!=="group"?(l.options.shaded.orientation="group",l.options.shaded.groupId=t.id):(t.options.shaded.orientation="group",t.options.shaded.groupId=l.id))),l=t),this._convertYcoordinates(o[a[e]],t);var u={};for(e=0;e<a.length;e++)if(t=this.groups[a[e]],t.options.style==="line"&&t.options.shaded.enabled==!0){var c=o[a[e]];if(c==null||c.length==0)continue;if(Object.prototype.hasOwnProperty.call(u,a[e])||(u[a[e]]=lt.calcPath(c,t)),t.options.shaded.orientation==="group"){var h=t.options.shaded.groupId;if(be(a).call(a,h)===-1){console.log(t.id+": Unknown shading group target given:"+h);continue}Object.prototype.hasOwnProperty.call(u,h)||(u[h]=lt.calcPath(o[h],this.groups[h])),lt.drawShading(u[a[e]],t,u[h],this.framework)}else lt.drawShading(u[a[e]],t,void 0,this.framework)}for(pt.draw(a,o,this.framework),e=0;e<a.length;e++)if(t=this.groups[a[e]],o[a[e]].length>0)switch(t.options.style){case"line":Object.prototype.hasOwnProperty.call(u,a[e])||(u[a[e]]=lt.calcPath(o[a[e]],t)),lt.draw(u[a[e]],t,this.framework);case"point":case"points":(t.options.style=="point"||t.options.style=="points"||t.options.drawPoints.enabled==!0)&&Ba.draw(o[a[e]],t,this.framework);break}}}return Gt(this.svgElements),!1};we.prototype._stack=function(t,e){var r,i,n,s,a;r=0;for(var o=0;o<t.length;o++){s=void 0,a=void 0;for(var l=r;l<e.length;l++)if(e[l].x===t[o].x){s=e[l],a=e[l],r=l;break}else if(e[l].x>t[o].x){a=e[l],l==0?s=a:s=e[l-1],r=l;break}a===void 0&&(s=e[e.length-1],a=e[e.length-1]),i=a.x-s.x,n=a.y-s.y,i==0?t[o].y=t[o].orginalY+a.y:t[o].y=t[o].orginalY+n/i*(t[o].x-s.x)+s.y}};we.prototype._getRelevantData=function(t,e,r,i){var n,s,a,o;if(t.length>0)for(s=0;s<t.length;s++){n=this.groups[t[s]];var l=n.getItems();if(Je(n.options)==!0){var u=function(f,p){return f.getTime()==p.getTime()?0:f<p?-1:1},c=Math.max(0,S.binarySearchValue(l,r,"x","before",u)),h=Math.min(l.length,S.binarySearchValue(l,i,"x","after",u)+1);h<=0&&(h=l.length);var d=new Array(h-c);for(a=c;a<h;a++)o=n.itemsData[a],d[a-c]=o;e[t[s]]=d}else e[t[s]]=n.itemsData}};we.prototype._applySampling=function(t,e){var r;if(t.length>0){for(var i=0;i<t.length;i++)if(r=this.groups[t[i]],r.options.sampling==!0){var n=e[t[i]];if(n.length>0){var s=1,a=n.length,o=this.body.util.toGlobalScreen(n[n.length-1].x)-this.body.util.toGlobalScreen(n[0].x),l=a/o;s=Math.min(Math.ceil(.2*a),Math.max(1,Math.round(l)));for(var u=new Array(a),c=0;c<a;c+=s){var h=Math.round(c/s);u[h]=n[c]}e[t[i]]=Et(u).call(u,0,Math.round(a/s))}}}};we.prototype._getYRanges=function(t,e,r){var i,n,s,a=[],o=[],l;if(t.length>0){for(s=0;s<t.length;s++)i=e[t[s]],l=this.groups[t[s]].options,i.length>0&&(n=this.groups[t[s]],l.stack===!0&&l.style==="bar"?l.yAxisOrientation==="left"?a=Ge(a).call(a,i):o=Ge(o).call(o,i):r[t[s]]=n.getYRange(i,t[s]));pt.getStackedYRange(a,r,t,"__barStackLeft","left"),pt.getStackedYRange(o,r,t,"__barStackRight","right")}};we.prototype._updateYAxis=function(t,e){var r=!1,i=!1,n=!1,s=1e9,a=1e9,o=-1e9,l=-1e9,u,c;if(t.length>0){for(var h=0;h<t.length;h++){var d=this.groups[t[h]];d&&d.options.yAxisOrientation!="right"?(i=!0,s=1e9,o=-1e9):d&&d.options.yAxisOrientation&&(n=!0,a=1e9,l=-1e9)}for(h=0;h<t.length;h++)!Object.prototype.hasOwnProperty.call(e,t[h])||e[t[h]].ignore===!0||(u=e[t[h]].min,c=e[t[h]].max,e[t[h]].yAxisOrientation!="right"?(i=!0,s=s>u?u:s,o=o<c?c:o):(n=!0,a=a>u?u:a,l=l<c?c:l));i==!0&&this.yAxisLeft.setRange(s,o),n==!0&&this.yAxisRight.setRange(a,l)}r=this._toggleAxisVisiblity(i,this.yAxisLeft)||r,r=this._toggleAxisVisiblity(n,this.yAxisRight)||r,n==!0&&i==!0?(this.yAxisLeft.drawIcons=!0,this.yAxisRight.drawIcons=!0):(this.yAxisLeft.drawIcons=!1,this.yAxisRight.drawIcons=!1),this.yAxisRight.master=!i,this.yAxisRight.masterAxis=this.yAxisLeft,this.yAxisRight.master==!1?(n==!0?this.yAxisLeft.lineOffset=this.yAxisRight.width:this.yAxisLeft.lineOffset=0,r=this.yAxisLeft.redraw()||r,r=this.yAxisRight.redraw()||r):r=this.yAxisRight.redraw()||r;var f=["__barStackLeft","__barStackRight","__lineStackLeft","__lineStackRight"];for(h=0;h<f.length;h++)be(t).call(t,f[h])!=-1&&Et(t).call(t,be(t).call(t,f[h]),1);return r};we.prototype._toggleAxisVisiblity=function(t,e){var r=!1;return t==!1?e.dom.frame.parentNode&&e.hidden==!1&&(e.hide(),r=!0):!e.dom.frame.parentNode&&e.hidden==!0&&(e.show(),r=!0),r};we.prototype._convertXcoordinates=function(t){for(var e=this.body.util.toScreen,r=0;r<t.length;r++)t[r].screen_x=e(t[r].x)+this.props.width,t[r].screen_y=t[r].y,t[r].end!=null?t[r].screen_end=e(t[r].end)+this.props.width:t[r].screen_end=void 0};we.prototype._convertYcoordinates=function(t,e){var r=this.yAxisLeft,i=Number(this.svg.style.height.replace("px",""));e.options.yAxisOrientation=="right"&&(r=this.yAxisRight);for(var n=0;n<t.length;n++)t[n].screen_y=Math.round(r.convertValue(t[n].y));e.setZeroPosition(Math.min(i,r.convertValue(0)))};let ee="string",le="boolean",ge="number",Tee="array",dn="date",Pe="object",$ee="dom",fn="moment",FF="any",Ree={configure:{enabled:{boolean:le},filter:{boolean:le,function:"function"},container:{dom:$ee},__type__:{object:Pe,boolean:le,function:"function"}},alignCurrentTime:{string:ee,undefined:"undefined"},yAxisOrientation:{string:["left","right"]},defaultGroup:{string:ee},sort:{boolean:le},sampling:{boolean:le},stack:{boolean:le},graphHeight:{string:ee,number:ge},shaded:{enabled:{boolean:le},orientation:{string:["bottom","top","zero","group"]},groupId:{object:Pe},__type__:{boolean:le,object:Pe}},style:{string:["line","bar","points"]},barChart:{width:{number:ge},minWidth:{number:ge},sideBySide:{boolean:le},align:{string:["left","center","right"]},__type__:{object:Pe}},interpolation:{enabled:{boolean:le},parametrization:{string:["centripetal","chordal","uniform"]},alpha:{number:ge},__type__:{object:Pe,boolean:le}},drawPoints:{enabled:{boolean:le},onRender:{function:"function"},size:{number:ge},style:{string:["square","circle"]},__type__:{object:Pe,boolean:le,function:"function"}},dataAxis:{showMinorLabels:{boolean:le},showMajorLabels:{boolean:le},showWeekScale:{boolean:le},icons:{boolean:le},width:{string:ee,number:ge},visible:{boolean:le},alignZeros:{boolean:le},left:{range:{min:{number:ge,undefined:"undefined"},max:{number:ge,undefined:"undefined"},__type__:{object:Pe}},format:{function:"function"},title:{text:{string:ee,number:ge,undefined:"undefined"},style:{string:ee,undefined:"undefined"},__type__:{object:Pe}},__type__:{object:Pe}},right:{range:{min:{number:ge,undefined:"undefined"},max:{number:ge,undefined:"undefined"},__type__:{object:Pe}},format:{function:"function"},title:{text:{string:ee,number:ge,undefined:"undefined"},style:{string:ee,undefined:"undefined"},__type__:{object:Pe}},__type__:{object:Pe}},__type__:{object:Pe}},legend:{enabled:{boolean:le},icons:{boolean:le},left:{visible:{boolean:le},position:{string:["top-right","bottom-right","top-left","bottom-left"]},__type__:{object:Pe}},right:{visible:{boolean:le},position:{string:["top-right","bottom-right","top-left","bottom-left"]},__type__:{object:Pe}},__type__:{object:Pe,boolean:le}},groups:{visibility:{any:FF},__type__:{object:Pe}},autoResize:{boolean:le},throttleRedraw:{number:ge},clickToUse:{boolean:le},end:{number:ge,date:dn,string:ee,moment:fn},format:{minorLabels:{millisecond:{string:ee,undefined:"undefined"},second:{string:ee,undefined:"undefined"},minute:{string:ee,undefined:"undefined"},hour:{string:ee,undefined:"undefined"},weekday:{string:ee,undefined:"undefined"},day:{string:ee,undefined:"undefined"},week:{string:ee,undefined:"undefined"},month:{string:ee,undefined:"undefined"},quarter:{string:ee,undefined:"undefined"},year:{string:ee,undefined:"undefined"},__type__:{object:Pe}},majorLabels:{millisecond:{string:ee,undefined:"undefined"},second:{string:ee,undefined:"undefined"},minute:{string:ee,undefined:"undefined"},hour:{string:ee,undefined:"undefined"},weekday:{string:ee,undefined:"undefined"},day:{string:ee,undefined:"undefined"},week:{string:ee,undefined:"undefined"},month:{string:ee,undefined:"undefined"},quarter:{string:ee,undefined:"undefined"},year:{string:ee,undefined:"undefined"},__type__:{object:Pe}},__type__:{object:Pe}},moment:{function:"function"},height:{string:ee,number:ge},hiddenDates:{start:{date:dn,number:ge,string:ee,moment:fn},end:{date:dn,number:ge,string:ee,moment:fn},repeat:{string:ee},__type__:{object:Pe,array:Tee}},locale:{string:ee},locales:{__any__:{any:FF},__type__:{object:Pe}},max:{date:dn,number:ge,string:ee,moment:fn},maxHeight:{number:ge,string:ee},maxMinorChars:{number:ge},min:{date:dn,number:ge,string:ee,moment:fn},minHeight:{number:ge,string:ee},moveable:{boolean:le},multiselect:{boolean:le},orientation:{string:ee},showCurrentTime:{boolean:le},showMajorLabels:{boolean:le},showMinorLabels:{boolean:le},showWeekScale:{boolean:le},snap:{function:"function",null:"null"},start:{date:dn,number:ge,string:ee,moment:fn},timeAxis:{scale:{string:ee,undefined:"undefined"},step:{number:ge,undefined:"undefined"},__type__:{object:Pe}},width:{string:ee,number:ge},zoomable:{boolean:le},zoomKey:{string:["ctrlKey","altKey","metaKey",""]},zoomMax:{number:ge},zoomMin:{number:ge},zIndex:{number:ge},__type__:{object:Pe}},xee={global:{alignCurrentTime:["none","year","month","quarter","week","isoWeek","day","date","hour","minute","second"],sort:!0,sampling:!0,stack:!1,shaded:{enabled:!1,orientation:["zero","top","bottom","group"]},style:["line","bar","points"],barChart:{width:[50,5,100,5],minWidth:[50,5,100,5],sideBySide:!1,align:["left","center","right"]},interpolation:{enabled:!0,parametrization:["centripetal","chordal","uniform"]},drawPoints:{enabled:!0,size:[6,2,30,1],style:["square","circle"]},dataAxis:{showMinorLabels:!0,showMajorLabels:!0,showWeekScale:!1,icons:!1,width:[40,0,200,1],visible:!0,alignZeros:!0,left:{title:{text:"",style:""}},right:{title:{text:"",style:""}}},legend:{enabled:!1,icons:!0,left:{visible:!0,position:["top-right","bottom-right","top-left","bottom-left"]},right:{visible:!0,position:["top-right","bottom-right","top-left","bottom-left"]}},autoResize:!0,clickToUse:!1,end:"",format:{minorLabels:{millisecond:"SSS",second:"s",minute:"HH:mm",hour:"HH:mm",weekday:"ddd D",day:"D",week:"w",month:"MMM",quarter:"[Q]Q",year:"YYYY"},majorLabels:{millisecond:"HH:mm:ss",second:"D MMMM HH:mm",minute:"ddd D MMMM",hour:"ddd D MMMM",weekday:"MMMM YYYY",day:"MMMM YYYY",week:"MMMM YYYY",month:"YYYY",quarter:"YYYY",year:""}},height:"",locale:"",max:"",maxHeight:"",maxMinorChars:[7,0,20,1],min:"",minHeight:"",moveable:!0,orientation:["both","bottom","top"],showCurrentTime:!1,showMajorLabels:!0,showMinorLabels:!0,showWeekScale:!1,start:"",width:"100%",zoomable:!0,zoomKey:["ctrlKey","altKey","metaKey",""],zoomMax:[31536e10,10,31536e10,1],zoomMin:[10,10,31536e10,1],zIndex:0}};function Ur(t,e,r,i){var n,s,a,o,l,u,c;if(!(fe(r)||Lr(r))&&r instanceof Object){var h=i;i=r,r=h}i&&i.throttleRedraw&&console.warn('Graph2d option "throttleRedraw" is DEPRICATED and no longer supported. It will be removed in the next MAJOR release.');var d=this;this.defaultOptions={start:null,end:null,autoResize:!0,orientation:{axis:"bottom",item:"bottom"},moment:Ot,width:null,height:null,maxHeight:null,minHeight:null},this.options=S.deepExtend({},this.defaultOptions),this._create(t),this.components=[],this.body={dom:this.dom,domProps:this.props,emitter:{on:D(n=this.on).call(n,this),off:D(s=this.off).call(s,this),emit:D(a=this.emit).call(a,this)},hiddenDates:[],util:{getScale(){return d.timeAxis.step.scale},getStep(){return d.timeAxis.step.step},toScreen:D(o=d._toScreen).call(o,d),toGlobalScreen:D(l=d._toGlobalScreen).call(l,d),toTime:D(u=d._toTime).call(u,d),toGlobalTime:D(c=d._toGlobalTime).call(c,d)}},this.range=new _l(this.body),this.components.push(this.range),this.body.range=this.range,this.timeAxis=new Ro(this.body),this.components.push(this.timeAxis),this.currentTime=new xG(this.body),this.components.push(this.currentTime),this.linegraph=new we(this.body),this.components.push(this.linegraph),this.itemsData=null,this.groupsData=null,this.on("tap",function(f){d.emit("click",d.getEventProperties(f))}),this.on("doubletap",function(f){d.emit("doubleClick",d.getEventProperties(f))}),this.dom.root.oncontextmenu=function(f){d.emit("contextmenu",d.getEventProperties(f))},this.initialFitDone=!1,this.on("changed",function(){if(d.itemsData!=null){if(!d.initialFitDone&&!d.options.rollingMode)if(d.initialFitDone=!0,d.options.start!=null||d.options.end!=null){if(d.options.start==null||d.options.end==null)var f=d.getItemRange();var p=d.options.start!=null?d.options.start:f.min,v=d.options.end!=null?d.options.end:f.max;d.setWindow(p,v,{animation:!1})}else d.fit({animation:!1});!d.initialDrawDone&&(d.initialRangeChangeDone||!d.options.start&&!d.options.end||d.options.rollingMode)&&(d.initialDrawDone=!0,d.dom.root.style.visibility="visible",d.dom.loadingScreen.parentNode.removeChild(d.dom.loadingScreen),d.options.onInitialDrawComplete&&vt(()=>d.options.onInitialDrawComplete(),0))}}),i&&this.setOptions(i),r&&this.setGroups(r),e&&this.setItems(e),this._redraw()}Ur.prototype=new Tn;Ur.prototype.setOptions=function(t){De.validate(t,Ree)===!0&&console.log("%cErrors have been found in the supplied options object.",Po),Tn.prototype.setOptions.call(this,t)};Ur.prototype.setItems=function(t){var e=this.itemsData==null,r;if(t?Lr(t)?r=kn(t):r=kn(new Pn(t)):r=null,this.itemsData&&this.itemsData.dispose(),this.itemsData=r,this.linegraph&&this.linegraph.setItems(r!=null?r.rawDS:null),e)if(this.options.start!=null||this.options.end!=null){var i=this.options.start!=null?this.options.start:null,n=this.options.end!=null?this.options.end:null;this.setWindow(i,n,{animation:!1})}else this.fit({animation:!1})};Ur.prototype.setGroups=function(t){var e;t?Lr(t)?e=t:e=new Pn(t):e=null,this.groupsData=e,this.linegraph.setGroups(e)};Ur.prototype.getLegend=function(t,e,r){return e===void 0&&(e=15),r===void 0&&(r=15),this.linegraph.groups[t]!==void 0?this.linegraph.groups[t].getLegend(e,r):"cannot find group:'"+t+"'"};Ur.prototype.isGroupVisible=function(t){return this.linegraph.groups[t]!==void 0?this.linegraph.groups[t].visible&&(this.linegraph.options.groups.visibility[t]===void 0||this.linegraph.options.groups.visibility[t]==!0):!1};Ur.prototype.getDataRange=function(){var t=null,e=null;for(var r in this.linegraph.groups)if(!(!Object.prototype.hasOwnProperty.call(this.linegraph.groups,r)||this.linegraph.groups[r].visible!==!0))for(var i=0;i<this.linegraph.groups[r].itemsData.length;i++){var n=this.linegraph.groups[r].itemsData[i],s=S.convert(n.x,"Date").valueOf();t=t==null||t>s?s:t,e=e==null||e<s?s:e}return{min:t!=null?new Date(t):null,max:e!=null?new Date(e):null}};Ur.prototype.getEventProperties=function(t){var e=t.center?t.center.x:t.clientX,r=t.center?t.center.y:t.clientY,i=e-S.getAbsoluteLeft(this.dom.centerContainer),n=r-S.getAbsoluteTop(this.dom.centerContainer),s=this._toTime(i),a=hw.customTimeFromTarget(t),o=S.getTarget(t),l=null;S.hasParent(o,this.timeAxis.dom.foreground)||this.timeAxis2&&S.hasParent(o,this.timeAxis2.dom.foreground)?l="axis":S.hasParent(o,this.linegraph.yAxisLeft.dom.frame)||S.hasParent(o,this.linegraph.yAxisRight.dom.frame)?l="data-axis":S.hasParent(o,this.linegraph.legendLeft.dom.frame)||S.hasParent(o,this.linegraph.legendRight.dom.frame)?l="legend":a!=null?l="custom-time":S.hasParent(o,this.currentTime.bar)?l="current-time":S.hasParent(o,this.dom.center)&&(l="background");var u=[],c=this.linegraph.yAxisLeft,h=this.linegraph.yAxisRight;return!c.hidden&&this.itemsData.length>0&&u.push(c.screenToValue(n)),!h.hidden&&this.itemsData.length>0&&u.push(h.screenToValue(n)),{event:t,customTime:a?a.options.id:null,what:l,pageX:t.srcEvent?t.srcEvent.pageX:t.pageX,pageY:t.srcEvent?t.srcEvent.pageY:t.pageY,x:i,y:n,time:s,value:u}};Ur.prototype._createConfigurator=function(){return new AG(this,this.dom.container,xee)};const Pee=See();q.locale(Pee);export{Pn as D,MG as T};
|