Files
qt5-legatus-legacy/Lts/Tools/THP2/lib/script.js
T
2026-08-13 18:33:10 +02:00

171 lines
741 KiB
JavaScript
Executable File

var KR=Object.create;var oA=Object.defineProperty,JR=Object.defineProperties,ZR=Object.getOwnPropertyDescriptor,QR=Object.getOwnPropertyDescriptors,tj=Object.getOwnPropertyNames,t$=Object.getOwnPropertySymbols,ej=Object.getPrototypeOf,r$=Object.prototype.hasOwnProperty,rj=Object.prototype.propertyIsEnumerable;var e$=(F,L,J)=>L in F?oA(F,L,{enumerable:!0,configurable:!0,writable:!0,value:J}):F[L]=J,m_=(F,L)=>{for(var J in L||(L={}))r$.call(L,J)&&e$(F,J,L[J]);if(t$)for(var J of t$(L))rj.call(L,J)&&e$(F,J,L[J]);return F},mC=(F,L)=>JR(F,QR(L));var n$=(F=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(F,{get:(L,J)=>(typeof require!="undefined"?require:L)[J]}):F)(function(F){if(typeof require!="undefined")return require.apply(this,arguments);throw Error('Dynamic require of "'+F+'" is not supported')});var mI=(F,L)=>()=>(L||F((L={exports:{}}).exports,L),L.exports);var nj=(F,L,J,z)=>{if(L&&typeof L=="object"||typeof L=="function")for(let nt of tj(L))!r$.call(F,nt)&&nt!==J&&oA(F,nt,{get:()=>L[nt],enumerable:!(z=ZR(L,nt))||z.enumerable});return F};var i$=(F,L,J)=>(J=F!=null?KR(ej(F)):{},nj(L||!F||!F.__esModule?oA(J,"default",{value:F,enumerable:!0}):J,F));var o$=mI((aA,FT)=>{(function(F,L){typeof aA=="object"&&typeof FT!="undefined"?FT.exports=L():typeof define=="function"&&define.amd?define(L):F.moment=L()})(aA,function(){"use strict";var F;function L(){return F.apply(null,arguments)}function J(c){F=c}function z(c){return c instanceof Array||Object.prototype.toString.call(c)==="[object Array]"}function nt(c){return c!=null&&Object.prototype.toString.call(c)==="[object Object]"}function yt(c,b){return Object.prototype.hasOwnProperty.call(c,b)}function St(c){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(c).length===0;var b;for(b in c)if(yt(c,b))return!1;return!0}function dt(c){return c===void 0}function Gt(c){return typeof c=="number"||Object.prototype.toString.call(c)==="[object Number]"}function Wt(c){return c instanceof Date||Object.prototype.toString.call(c)==="[object Date]"}function In(c,b){var k=[],D,M=c.length;for(D=0;D<M;++D)k.push(b(c[D],D));return k}function Qe(c,b){for(var k in b)yt(b,k)&&(c[k]=b[k]);return yt(b,"toString")&&(c.toString=b.toString),yt(b,"valueOf")&&(c.valueOf=b.valueOf),c}function zr(c,b,k,D){return wc(c,b,k,D,!0).utc()}function Mi(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function Nt(c){return c._pf==null&&(c._pf=Mi()),c._pf}var an;Array.prototype.some?an=Array.prototype.some:an=function(c){var b=Object(this),k=b.length>>>0,D;for(D=0;D<k;D++)if(D in b&&c.call(this,b[D],D,b))return!0;return!1};function Pe(c){var b=null,k=!1,D=c._d&&!isNaN(c._d.getTime());if(D&&(b=Nt(c),k=an.call(b.parsedDateParts,function(M){return M!=null}),D=b.overflow<0&&!b.empty&&!b.invalidEra&&!b.invalidMonth&&!b.invalidWeekday&&!b.weekdayMismatch&&!b.nullInput&&!b.invalidFormat&&!b.userInvalidated&&(!b.meridiem||b.meridiem&&k),c._strict&&(D=D&&b.charsLeftOver===0&&b.unusedTokens.length===0&&b.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(c))c._isValid=D;else return D;return c._isValid}function sn(c){var b=zr(NaN);return c!=null?Qe(Nt(b),c):Nt(b).userInvalidated=!0,b}var le=L.momentProperties=[],ye=!1;function se(c,b){var k,D,M,W=le.length;if(dt(b._isAMomentObject)||(c._isAMomentObject=b._isAMomentObject),dt(b._i)||(c._i=b._i),dt(b._f)||(c._f=b._f),dt(b._l)||(c._l=b._l),dt(b._strict)||(c._strict=b._strict),dt(b._tzm)||(c._tzm=b._tzm),dt(b._isUTC)||(c._isUTC=b._isUTC),dt(b._offset)||(c._offset=b._offset),dt(b._pf)||(c._pf=Nt(b)),dt(b._locale)||(c._locale=b._locale),W>0)for(k=0;k<W;k++)D=le[k],M=b[D],dt(M)||(c[D]=M);return c}function fi(c){se(this,c),this._d=new Date(c._d!=null?c._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),ye===!1&&(ye=!0,L.updateOffset(this),ye=!1)}function kr(c){return c instanceof fi||c!=null&&c._isAMomentObject!=null}function ho(c){L.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+c)}function fr(c,b){var k=!0;return Qe(function(){if(L.deprecationHandler!=null&&L.deprecationHandler(null,c),k){var D=[],M,W,it,vt=arguments.length;for(W=0;W<vt;W++){if(M="",typeof arguments[W]=="object"){M+=`
[`+W+"] ";for(it in arguments[0])yt(arguments[0],it)&&(M+=it+": "+arguments[0][it]+", ");M=M.slice(0,-2)}else M=arguments[W];D.push(M)}ho(c+`
Arguments: `+Array.prototype.slice.call(D).join("")+`
`+new Error().stack),k=!1}return b.apply(this,arguments)},b)}var oc={};function $u(c,b){L.deprecationHandler!=null&&L.deprecationHandler(c,b),oc[c]||(ho(b),oc[c]=!0)}L.suppressDeprecationWarnings=!1,L.deprecationHandler=null;function Tr(c){return typeof Function!="undefined"&&c instanceof Function||Object.prototype.toString.call(c)==="[object Function]"}function ad(c){var b,k;for(k in c)yt(c,k)&&(b=c[k],Tr(b)?this[k]=b:this["_"+k]=b);this._config=c,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Te(c,b){var k=Qe({},c),D;for(D in b)yt(b,D)&&(nt(c[D])&&nt(b[D])?(k[D]={},Qe(k[D],c[D]),Qe(k[D],b[D])):b[D]!=null?k[D]=b[D]:delete k[D]);for(D in c)yt(c,D)&&!yt(b,D)&&nt(c[D])&&(k[D]=Qe({},k[D]));return k}function Ni(c){c!=null&&this.set(c)}var ie;Object.keys?ie=Object.keys:ie=function(c){var b,k=[];for(b in c)yt(c,b)&&k.push(b);return k};var Re={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function xe(c,b,k){var D=this._calendar[c]||this._calendar.sameElse;return Tr(D)?D.call(b,k):D}function Ae(c,b,k){var D=""+Math.abs(c),M=b-D.length,W=c>=0;return(W?k?"+":"":"-")+Math.pow(10,Math.max(0,M)).toString().substr(1)+D}var je=/(\[[^\[]*\])|(\\)?([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,Ur=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,pi={},Ue={};function Dt(c,b,k,D){var M=D;typeof D=="string"&&(M=function(){return this[D]()}),c&&(Ue[c]=M),b&&(Ue[b[0]]=function(){return Ae(M.apply(this,arguments),b[1],b[2])}),k&&(Ue[k]=function(){return this.localeData().ordinal(M.apply(this,arguments),c)})}function Mu(c){return c.match(/\[[\s\S]/)?c.replace(/^\[|\]$/g,""):c.replace(/\\/g,"")}function un(c){var b=c.match(je),k,D;for(k=0,D=b.length;k<D;k++)Ue[b[k]]?b[k]=Ue[b[k]]:b[k]=Mu(b[k]);return function(M){var W="",it;for(it=0;it<D;it++)W+=Tr(b[it])?b[it].call(M,c):b[it];return W}}function ya(c,b){return c.isValid()?(b=ei(b,c.localeData()),pi[b]=pi[b]||un(b),pi[b](c)):c.localeData().invalidDate()}function ei(c,b){var k=5;function D(M){return b.longDateFormat(M)||M}for(Ur.lastIndex=0;k>=0&&Ur.test(c);)c=c.replace(Ur,D),Ur.lastIndex=0,k-=1;return c}var sd={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 Kg(c){var b=this._longDateFormat[c],k=this._longDateFormat[c.toUpperCase()];return b||!k?b:(this._longDateFormat[c]=k.match(je).map(function(D){return D==="MMMM"||D==="MM"||D==="DD"||D==="dddd"?D.slice(1):D}).join(""),this._longDateFormat[c])}var gs="Invalid date";function No(){return this._invalidDate}var ac="%d",ba=/\d{1,2}/;function Ro(c){return this._ordinal.replace("%d",c)}var Jg={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 ys(c,b,k,D){var M=this._relativeTime[k];return Tr(M)?M(c,b,k,D):M.replace(/%d/i,c)}function ri(c,b){var k=this._relativeTime[c>0?"future":"past"];return Tr(k)?k(b):k.replace(/%s/i,b)}var ud={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 tr(c){return typeof c=="string"?ud[c]||ud[c.toLowerCase()]:void 0}function _e(c){var b={},k,D;for(D in c)yt(c,D)&&(k=tr(D),k&&(b[k]=c[D]));return b}var Ge={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 xr(c){var b=[],k;for(k in c)yt(c,k)&&b.push({unit:k,priority:Ge[k]});return b.sort(function(D,M){return D.priority-M.priority}),b}var we=/\d/,be=/\d\d/,Oe=/\d{3}/,wr=/\d{4}/,$e=/[+-]?\d{6}/,Xt=/\d\d?/,Le=/\d\d\d\d?/,er=/\d\d\d\d\d\d?/,bs=/\d{1,3}/,Fe=/\d{1,4}/,Pn=/[+-]?\d{1,6}/,fo=/\d+/,An=/[+-]?\d+/,sc=/Z|[+-]\d\d:?\d\d/gi,Ri=/Z|[+-]\d\d(?::?\d\d)?/gi,ld=/[+-]?\d+(\.\d{1,3})?/,vi=/[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,rr=/^[1-9]\d?/,wa=/^([1-9]\d|\d)/,po;po={};function Et(c,b,k){po[c]=Tr(b)?b:function(D,M){return D&&k?k:b}}function Zg(c,b){return yt(po,c)?po[c](b._strict,b._locale):new RegExp(Nu(c))}function Nu(c){return $n(c.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(b,k,D,M,W){return k||D||M||W}))}function $n(c){return c.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function nr(c){return c<0?Math.ceil(c)||0:Math.floor(c)}function qt(c){var b=+c,k=0;return b!==0&&isFinite(b)&&(k=nr(b)),k}var uc={};function Ee(c,b){var k,D=b,M;for(typeof c=="string"&&(c=[c]),Gt(b)&&(D=function(W,it){it[b]=qt(W)}),M=c.length,k=0;k<M;k++)uc[c[k]]=D}function Or(c,b){Ee(c,function(k,D,M,W){M._w=M._w||{},b(k,M._w,M,W)})}function _a(c,b,k){b!=null&&yt(uc,c)&&uc[c](b,k._a,k,c)}function lc(c){return c%4===0&&c%100!==0||c%400===0}var Er=0,Nr=1,mn=2,De=3,Mn=4,ji=5,ln=6,gn=7,$p=8;Dt("Y",0,0,function(){var c=this.year();return c<=9999?Ae(c,4):"+"+c}),Dt(0,["YY",2],0,function(){return this.year()%100}),Dt(0,["YYYY",4],0,"year"),Dt(0,["YYYYY",5],0,"year"),Dt(0,["YYYYYY",6,!0],0,"year"),Et("Y",An),Et("YY",Xt,be),Et("YYYY",Fe,wr),Et("YYYYY",Pn,$e),Et("YYYYYY",Pn,$e),Ee(["YYYYY","YYYYYY"],Er),Ee("YYYY",function(c,b){b[Er]=c.length===2?L.parseTwoDigitYear(c):qt(c)}),Ee("YY",function(c,b){b[Er]=L.parseTwoDigitYear(c)}),Ee("Y",function(c,b){b[Er]=parseInt(c,10)});function ws(c){return lc(c)?366:365}L.parseTwoDigitYear=function(c){return qt(c)+(qt(c)>68?1900:2e3)};var _s=cn("FullYear",!0);function Ru(){return lc(this.year())}function cn(c,b){return function(k){return k!=null?(Mp(this,c,k),L.updateOffset(this,b),this):jo(this,c)}}function jo(c,b){if(!c.isValid())return NaN;var k=c._d,D=c._isUTC;switch(b){case"Milliseconds":return D?k.getUTCMilliseconds():k.getMilliseconds();case"Seconds":return D?k.getUTCSeconds():k.getSeconds();case"Minutes":return D?k.getUTCMinutes():k.getMinutes();case"Hours":return D?k.getUTCHours():k.getHours();case"Date":return D?k.getUTCDate():k.getDate();case"Day":return D?k.getUTCDay():k.getDay();case"Month":return D?k.getUTCMonth():k.getMonth();case"FullYear":return D?k.getUTCFullYear():k.getFullYear();default:return NaN}}function Mp(c,b,k){var D,M,W,it,vt;if(!(!c.isValid()||isNaN(k))){switch(D=c._d,M=c._isUTC,b){case"Milliseconds":return void(M?D.setUTCMilliseconds(k):D.setMilliseconds(k));case"Seconds":return void(M?D.setUTCSeconds(k):D.setSeconds(k));case"Minutes":return void(M?D.setUTCMinutes(k):D.setMinutes(k));case"Hours":return void(M?D.setUTCHours(k):D.setHours(k));case"Date":return void(M?D.setUTCDate(k):D.setDate(k));case"FullYear":break;default:return}W=k,it=c.month(),vt=c.date(),vt=vt===29&&it===1&&!lc(W)?28:vt,M?D.setUTCFullYear(W,it,vt):D.setFullYear(W,it,vt)}}function yn(c){return c=tr(c),Tr(this[c])?this[c]():this}function bn(c,b){if(typeof c=="object"){c=_e(c);var k=xr(c),D,M=k.length;for(D=0;D<M;D++)this[k[D].unit](c[k[D].unit])}else if(c=tr(c),Tr(this[c]))return this[c](b);return this}function Qg(c,b){return(c%b+b)%b}var Kt;Array.prototype.indexOf?Kt=Array.prototype.indexOf:Kt=function(c){var b;for(b=0;b<this.length;++b)if(this[b]===c)return b;return-1};function Rr(c,b){if(isNaN(c)||isNaN(b))return NaN;var k=Qg(b,12);return c+=(b-k)/12,k===1?lc(c)?29:28:31-k%7%2}Dt("M",["MM",2],"Mo",function(){return this.month()+1}),Dt("MMM",0,0,function(c){return this.localeData().monthsShort(this,c)}),Dt("MMMM",0,0,function(c){return this.localeData().months(this,c)}),Et("M",Xt,rr),Et("MM",Xt,be),Et("MMM",function(c,b){return b.monthsShortRegex(c)}),Et("MMMM",function(c,b){return b.monthsRegex(c)}),Ee(["M","MM"],function(c,b){b[Nr]=qt(c)-1}),Ee(["MMM","MMMM"],function(c,b,k,D){var M=k._locale.monthsParse(c,D,k._strict);M!=null?b[Nr]=M:Nt(k).invalidMonth=c});var ty="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Np="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Rp=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ju=vi,cc=vi;function hc(c,b){return c?z(this._months)?this._months[c.month()]:this._months[(this._months.isFormat||Rp).test(b)?"format":"standalone"][c.month()]:z(this._months)?this._months:this._months.standalone}function cd(c,b){return c?z(this._monthsShort)?this._monthsShort[c.month()]:this._monthsShort[Rp.test(b)?"format":"standalone"][c.month()]:z(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Ss(c,b,k){var D,M,W,it=c.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],D=0;D<12;++D)W=zr([2e3,D]),this._shortMonthsParse[D]=this.monthsShort(W,"").toLocaleLowerCase(),this._longMonthsParse[D]=this.months(W,"").toLocaleLowerCase();return k?b==="MMM"?(M=Kt.call(this._shortMonthsParse,it),M!==-1?M:null):(M=Kt.call(this._longMonthsParse,it),M!==-1?M:null):b==="MMM"?(M=Kt.call(this._shortMonthsParse,it),M!==-1?M:(M=Kt.call(this._longMonthsParse,it),M!==-1?M:null)):(M=Kt.call(this._longMonthsParse,it),M!==-1?M:(M=Kt.call(this._shortMonthsParse,it),M!==-1?M:null))}function ey(c,b,k){var D,M,W;if(this._monthsParseExact)return Ss.call(this,c,b,k);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),D=0;D<12;D++){if(M=zr([2e3,D]),k&&!this._longMonthsParse[D]&&(this._longMonthsParse[D]=new RegExp("^"+this.months(M,"").replace(".","")+"$","i"),this._shortMonthsParse[D]=new RegExp("^"+this.monthsShort(M,"").replace(".","")+"$","i")),!k&&!this._monthsParse[D]&&(W="^"+this.months(M,"")+"|^"+this.monthsShort(M,""),this._monthsParse[D]=new RegExp(W.replace(".",""),"i")),k&&b==="MMMM"&&this._longMonthsParse[D].test(c))return D;if(k&&b==="MMM"&&this._shortMonthsParse[D].test(c))return D;if(!k&&this._monthsParse[D].test(c))return D}}function Sa(c,b){if(!c.isValid())return c;if(typeof b=="string"){if(/^\d+$/.test(b))b=qt(b);else if(b=c.localeData().monthsParse(b),!Gt(b))return c}var k=b,D=c.date();return D=D<29?D:Math.min(D,Rr(c.year(),k)),c._isUTC?c._d.setUTCMonth(k,D):c._d.setMonth(k,D),c}function ir(c){return c!=null?(Sa(this,c),L.updateOffset(this,!0),this):jo(this,"Month")}function hd(){return Rr(this.year(),this.month())}function qe(c){return this._monthsParseExact?(yt(this,"_monthsRegex")||or.call(this),c?this._monthsShortStrictRegex:this._monthsShortRegex):(yt(this,"_monthsShortRegex")||(this._monthsShortRegex=ju),this._monthsShortStrictRegex&&c?this._monthsShortStrictRegex:this._monthsShortRegex)}function cr(c){return this._monthsParseExact?(yt(this,"_monthsRegex")||or.call(this),c?this._monthsStrictRegex:this._monthsRegex):(yt(this,"_monthsRegex")||(this._monthsRegex=cc),this._monthsStrictRegex&&c?this._monthsStrictRegex:this._monthsRegex)}function or(){function c(Ft,oe){return oe.length-Ft.length}var b=[],k=[],D=[],M,W,it,vt;for(M=0;M<12;M++)W=zr([2e3,M]),it=$n(this.monthsShort(W,"")),vt=$n(this.months(W,"")),b.push(it),k.push(vt),D.push(vt),D.push(it);b.sort(c),k.sort(c),D.sort(c),this._monthsRegex=new RegExp("^("+D.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+k.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+b.join("|")+")","i")}function dd(c,b,k,D,M,W,it){var vt;return c<100&&c>=0?(vt=new Date(c+400,b,k,D,M,W,it),isFinite(vt.getFullYear())&&vt.setFullYear(c)):vt=new Date(c,b,k,D,M,W,it),vt}function ks(c){var b,k;return c<100&&c>=0?(k=Array.prototype.slice.call(arguments),k[0]=c+400,b=new Date(Date.UTC.apply(null,k)),isFinite(b.getUTCFullYear())&&b.setUTCFullYear(c)):b=new Date(Date.UTC.apply(null,arguments)),b}function dc(c,b,k){var D=7+b-k,M=(7+ks(c,0,D).getUTCDay()-b)%7;return-M+D-1}function jp(c,b,k,D,M){var W=(7+k-D)%7,it=dc(c,D,M),vt=1+7*(b-1)+W+it,Ft,oe;return vt<=0?(Ft=c-1,oe=ws(Ft)+vt):vt>ws(c)?(Ft=c+1,oe=vt-ws(c)):(Ft=c,oe=vt),{year:Ft,dayOfYear:oe}}function Lo(c,b,k){var D=dc(c.year(),b,k),M=Math.floor((c.dayOfYear()-D-1)/7)+1,W,it;return M<1?(it=c.year()-1,W=M+vo(it,b,k)):M>vo(c.year(),b,k)?(W=M-vo(c.year(),b,k),it=c.year()+1):(it=c.year(),W=M),{week:W,year:it}}function vo(c,b,k){var D=dc(c,b,k),M=dc(c+1,b,k);return(ws(c)-D+M)/7}Dt("w",["ww",2],"wo","week"),Dt("W",["WW",2],"Wo","isoWeek"),Et("w",Xt,rr),Et("ww",Xt,be),Et("W",Xt,rr),Et("WW",Xt,be),Or(["w","ww","W","WW"],function(c,b,k,D){b[D.substr(0,1)]=qt(c)});function ry(c){return Lo(c,this._week.dow,this._week.doy).week}var Lu={dow:0,doy:6};function Fu(){return this._week.dow}function fc(){return this._week.doy}function fd(c){var b=this.localeData().week(this);return c==null?b:this.add((c-b)*7,"d")}function Fo(c){var b=Lo(this,1,4).week;return c==null?b:this.add((c-b)*7,"d")}Dt("d",0,"do","day"),Dt("dd",0,0,function(c){return this.localeData().weekdaysMin(this,c)}),Dt("ddd",0,0,function(c){return this.localeData().weekdaysShort(this,c)}),Dt("dddd",0,0,function(c){return this.localeData().weekdays(this,c)}),Dt("e",0,0,"weekday"),Dt("E",0,0,"isoWeekday"),Et("d",Xt),Et("e",Xt),Et("E",Xt),Et("dd",function(c,b){return b.weekdaysMinRegex(c)}),Et("ddd",function(c,b){return b.weekdaysShortRegex(c)}),Et("dddd",function(c,b){return b.weekdaysRegex(c)}),Or(["dd","ddd","dddd"],function(c,b,k,D){var M=k._locale.weekdaysParse(c,D,k._strict);M!=null?b.d=M:Nt(k).invalidWeekday=c}),Or(["d","e","E"],function(c,b,k,D){b[D]=qt(c)});function pc(c,b){return typeof c!="string"?c:isNaN(c)?(c=b.weekdaysParse(c),typeof c=="number"?c:null):parseInt(c,10)}function Lp(c,b){return typeof c=="string"?b.weekdaysParse(c)%7||7:isNaN(c)?null:c}function Ye(c,b){return c.slice(b,7).concat(c.slice(0,b))}var ny="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),pd="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Fp="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),iy=vi,oy=vi,ay=vi;function sy(c,b){var k=z(this._weekdays)?this._weekdays:this._weekdays[c&&c!==!0&&this._weekdays.isFormat.test(b)?"format":"standalone"];return c===!0?Ye(k,this._week.dow):c?k[c.day()]:k}function Yp(c){return c===!0?Ye(this._weekdaysShort,this._week.dow):c?this._weekdaysShort[c.day()]:this._weekdaysShort}function Bp(c){return c===!0?Ye(this._weekdaysMin,this._week.dow):c?this._weekdaysMin[c.day()]:this._weekdaysMin}function uy(c,b,k){var D,M,W,it=c.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],D=0;D<7;++D)W=zr([2e3,1]).day(D),this._minWeekdaysParse[D]=this.weekdaysMin(W,"").toLocaleLowerCase(),this._shortWeekdaysParse[D]=this.weekdaysShort(W,"").toLocaleLowerCase(),this._weekdaysParse[D]=this.weekdays(W,"").toLocaleLowerCase();return k?b==="dddd"?(M=Kt.call(this._weekdaysParse,it),M!==-1?M:null):b==="ddd"?(M=Kt.call(this._shortWeekdaysParse,it),M!==-1?M:null):(M=Kt.call(this._minWeekdaysParse,it),M!==-1?M:null):b==="dddd"?(M=Kt.call(this._weekdaysParse,it),M!==-1||(M=Kt.call(this._shortWeekdaysParse,it),M!==-1)?M:(M=Kt.call(this._minWeekdaysParse,it),M!==-1?M:null)):b==="ddd"?(M=Kt.call(this._shortWeekdaysParse,it),M!==-1||(M=Kt.call(this._weekdaysParse,it),M!==-1)?M:(M=Kt.call(this._minWeekdaysParse,it),M!==-1?M:null)):(M=Kt.call(this._minWeekdaysParse,it),M!==-1||(M=Kt.call(this._weekdaysParse,it),M!==-1)?M:(M=Kt.call(this._shortWeekdaysParse,it),M!==-1?M:null))}function ly(c,b,k){var D,M,W;if(this._weekdaysParseExact)return uy.call(this,c,b,k);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),D=0;D<7;D++){if(M=zr([2e3,1]).day(D),k&&!this._fullWeekdaysParse[D]&&(this._fullWeekdaysParse[D]=new RegExp("^"+this.weekdays(M,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[D]=new RegExp("^"+this.weekdaysShort(M,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[D]=new RegExp("^"+this.weekdaysMin(M,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[D]||(W="^"+this.weekdays(M,"")+"|^"+this.weekdaysShort(M,"")+"|^"+this.weekdaysMin(M,""),this._weekdaysParse[D]=new RegExp(W.replace(".",""),"i")),k&&b==="dddd"&&this._fullWeekdaysParse[D].test(c))return D;if(k&&b==="ddd"&&this._shortWeekdaysParse[D].test(c))return D;if(k&&b==="dd"&&this._minWeekdaysParse[D].test(c))return D;if(!k&&this._weekdaysParse[D].test(c))return D}}function Yo(c){if(!this.isValid())return c!=null?this:NaN;var b=jo(this,"Day");return c!=null?(c=pc(c,this.localeData()),this.add(c-b,"d")):b}function Yu(c){if(!this.isValid())return c!=null?this:NaN;var b=(this.day()+7-this.localeData()._week.dow)%7;return c==null?b:this.add(c-b,"d")}function Hp(c){if(!this.isValid())return c!=null?this:NaN;if(c!=null){var b=Lp(c,this.localeData());return this.day(this.day()%7?b:b-7)}else return this.day()||7}function vd(c){return this._weekdaysParseExact?(yt(this,"_weekdaysRegex")||md.call(this),c?this._weekdaysStrictRegex:this._weekdaysRegex):(yt(this,"_weekdaysRegex")||(this._weekdaysRegex=iy),this._weekdaysStrictRegex&&c?this._weekdaysStrictRegex:this._weekdaysRegex)}function cy(c){return this._weekdaysParseExact?(yt(this,"_weekdaysRegex")||md.call(this),c?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(yt(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=oy),this._weekdaysShortStrictRegex&&c?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function vc(c){return this._weekdaysParseExact?(yt(this,"_weekdaysRegex")||md.call(this),c?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(yt(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ay),this._weekdaysMinStrictRegex&&c?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function md(){function c(pr,_i){return _i.length-pr.length}var b=[],k=[],D=[],M=[],W,it,vt,Ft,oe;for(W=0;W<7;W++)it=zr([2e3,1]).day(W),vt=$n(this.weekdaysMin(it,"")),Ft=$n(this.weekdaysShort(it,"")),oe=$n(this.weekdays(it,"")),b.push(vt),k.push(Ft),D.push(oe),M.push(vt),M.push(Ft),M.push(oe);b.sort(c),k.sort(c),D.sort(c),M.sort(c),this._weekdaysRegex=new RegExp("^("+M.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+D.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+k.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+b.join("|")+")","i")}function gd(){return this.hours()%12||12}function hy(){return this.hours()||24}Dt("H",["HH",2],0,"hour"),Dt("h",["hh",2],0,gd),Dt("k",["kk",2],0,hy),Dt("hmm",0,0,function(){return""+gd.apply(this)+Ae(this.minutes(),2)}),Dt("hmmss",0,0,function(){return""+gd.apply(this)+Ae(this.minutes(),2)+Ae(this.seconds(),2)}),Dt("Hmm",0,0,function(){return""+this.hours()+Ae(this.minutes(),2)}),Dt("Hmmss",0,0,function(){return""+this.hours()+Ae(this.minutes(),2)+Ae(this.seconds(),2)});function Li(c,b){Dt(c,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),b)})}Li("a",!0),Li("A",!1);function _r(c,b){return b._meridiemParse}Et("a",_r),Et("A",_r),Et("H",Xt,wa),Et("h",Xt,rr),Et("k",Xt,rr),Et("HH",Xt,be),Et("hh",Xt,be),Et("kk",Xt,be),Et("hmm",Le),Et("hmmss",er),Et("Hmm",Le),Et("Hmmss",er),Ee(["H","HH"],De),Ee(["k","kk"],function(c,b,k){var D=qt(c);b[De]=D===24?0:D}),Ee(["a","A"],function(c,b,k){k._isPm=k._locale.isPM(c),k._meridiem=c}),Ee(["h","hh"],function(c,b,k){b[De]=qt(c),Nt(k).bigHour=!0}),Ee("hmm",function(c,b,k){var D=c.length-2;b[De]=qt(c.substr(0,D)),b[Mn]=qt(c.substr(D)),Nt(k).bigHour=!0}),Ee("hmmss",function(c,b,k){var D=c.length-4,M=c.length-2;b[De]=qt(c.substr(0,D)),b[Mn]=qt(c.substr(D,2)),b[ji]=qt(c.substr(M)),Nt(k).bigHour=!0}),Ee("Hmm",function(c,b,k){var D=c.length-2;b[De]=qt(c.substr(0,D)),b[Mn]=qt(c.substr(D))}),Ee("Hmmss",function(c,b,k){var D=c.length-4,M=c.length-2;b[De]=qt(c.substr(0,D)),b[Mn]=qt(c.substr(D,2)),b[ji]=qt(c.substr(M))});function Nn(c){return(c+"").toLowerCase().charAt(0)==="p"}var Gp=/[ap]\.?m?\.?/i,dy=cn("Hours",!0);function fy(c,b,k){return c>11?k?"pm":"PM":k?"am":"AM"}var wn={calendar:Re,longDateFormat:sd,invalidDate:gs,ordinal:ac,dayOfMonthOrdinalParse:ba,relativeTime:Jg,months:ty,monthsShort:Np,week:Lu,weekdays:ny,weekdaysMin:Fp,weekdaysShort:pd,meridiemParse:Gp},de={},Bu={},Ts;function mc(c,b){var k,D=Math.min(c.length,b.length);for(k=0;k<D;k+=1)if(c[k]!==b[k])return k;return D}function xs(c){return c&&c.toLowerCase().replace("_","-")}function Wp(c){for(var b=0,k,D,M,W;b<c.length;){for(W=xs(c[b]).split("-"),k=W.length,D=xs(c[b+1]),D=D?D.split("-"):null;k>0;){if(M=Os(W.slice(0,k).join("-")),M)return M;if(D&&D.length>=k&&mc(W,D)>=k-1)break;k--}b++}return Ts}function ka(c){return!!(c&&c.match("^[^/\\\\]*$"))}function Os(c){var b=null,k;if(de[c]===void 0&&typeof FT!="undefined"&&FT&&FT.exports&&ka(c))try{b=Ts._abbr,k=n$,k("./locale/"+c),Fi(b)}catch(D){de[c]=null}return de[c]}function Fi(c,b){var k;return c&&(dt(b)?k=ni(c):k=Ta(c,b),k?Ts=k:typeof console!="undefined"&&console.warn&&console.warn("Locale "+c+" not found. Did you forget to load it?")),Ts._abbr}function Ta(c,b){if(b!==null){var k,D=wn;if(b.abbr=c,de[c]!=null)$u("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."),D=de[c]._config;else if(b.parentLocale!=null)if(de[b.parentLocale]!=null)D=de[b.parentLocale]._config;else if(k=Os(b.parentLocale),k!=null)D=k._config;else return Bu[b.parentLocale]||(Bu[b.parentLocale]=[]),Bu[b.parentLocale].push({name:c,config:b}),null;return de[c]=new Ni(Te(D,b)),Bu[c]&&Bu[c].forEach(function(M){Ta(M.name,M.config)}),Fi(c),de[c]}else return delete de[c],null}function Hu(c,b){if(b!=null){var k,D,M=wn;de[c]!=null&&de[c].parentLocale!=null?de[c].set(Te(de[c]._config,b)):(D=Os(c),D!=null&&(M=D._config),b=Te(M,b),D==null&&(b.abbr=c),k=new Ni(b),k.parentLocale=de[c],de[c]=k),Fi(c)}else de[c]!=null&&(de[c].parentLocale!=null?(de[c]=de[c].parentLocale,c===Fi()&&Fi(c)):de[c]!=null&&delete de[c]);return de[c]}function ni(c){var b;if(c&&c._locale&&c._locale._abbr&&(c=c._locale._abbr),!c)return Ts;if(!z(c)){if(b=Os(c),b)return b;c=[c]}return Wp(c)}function zp(){return ie(de)}function mi(c){var b,k=c._a;return k&&Nt(c).overflow===-2&&(b=k[Nr]<0||k[Nr]>11?Nr:k[mn]<1||k[mn]>Rr(k[Er],k[Nr])?mn:k[De]<0||k[De]>24||k[De]===24&&(k[Mn]!==0||k[ji]!==0||k[ln]!==0)?De:k[Mn]<0||k[Mn]>59?Mn:k[ji]<0||k[ji]>59?ji:k[ln]<0||k[ln]>999?ln:-1,Nt(c)._overflowDayOfYear&&(b<Er||b>mn)&&(b=mn),Nt(c)._overflowWeeks&&b===-1&&(b=gn),Nt(c)._overflowWeekday&&b===-1&&(b=$p),Nt(c).overflow=b),c}var mo=/^\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)?)?$/,gc=/^\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)?)?$/,Bo=/Z|[+-]\d\d(?::?\d\d)?/,jr=[["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]],yd=[["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/]],py=/^\/?Date\((-?\d+)/i,xa=/^(?:(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}))$/,Es={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Oa(c){var b,k,D=c._i,M=mo.exec(D)||gc.exec(D),W,it,vt,Ft,oe=jr.length,pr=yd.length;if(M){for(Nt(c).iso=!0,b=0,k=oe;b<k;b++)if(jr[b][1].exec(M[1])){it=jr[b][0],W=jr[b][2]!==!1;break}if(it==null){c._isValid=!1;return}if(M[3]){for(b=0,k=pr;b<k;b++)if(yd[b][1].exec(M[3])){vt=(M[2]||" ")+yd[b][0];break}if(vt==null){c._isValid=!1;return}}if(!W&&vt!=null){c._isValid=!1;return}if(M[4])if(Bo.exec(M[4]))Ft="Z";else{c._isValid=!1;return}c._f=it+(vt||"")+(Ft||""),Is(c)}else c._isValid=!1}function Ea(c,b,k,D,M,W){var it=[_n(c),Np.indexOf(b),parseInt(k,10),parseInt(D,10),parseInt(M,10)];return W&&it.push(parseInt(W,10)),it}function _n(c){var b=parseInt(c,10);return b<=49?2e3+b:b<=999?1900+b:b}function Rt(c){return c.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Bt(c,b,k){if(c){var D=pd.indexOf(c),M=new Date(b[0],b[1],b[2]).getDay();if(D!==M)return Nt(k).weekdayMismatch=!0,k._isValid=!1,!1}return!0}function yc(c,b,k){if(c)return Es[c];if(b)return 0;var D=parseInt(k,10),M=D%100,W=(D-M)/100;return W*60+M}function Da(c){var b=xa.exec(Rt(c._i)),k;if(b){if(k=Ea(b[4],b[3],b[2],b[5],b[6],b[7]),!Bt(b[1],k,c))return;c._a=k,c._tzm=yc(b[8],b[9],b[10]),c._d=ks.apply(null,c._a),c._d.setUTCMinutes(c._d.getUTCMinutes()-c._tzm),Nt(c).rfc2822=!0}else c._isValid=!1}function bd(c){var b=py.exec(c._i);if(b!==null){c._d=new Date(+b[1]);return}if(Oa(c),c._isValid===!1)delete c._isValid;else return;if(Da(c),c._isValid===!1)delete c._isValid;else return;c._strict?c._isValid=!1:L.createFromInputFallback(c)}L.createFromInputFallback=fr("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(c){c._d=new Date(c._i+(c._useUTC?" UTC":""))});function Ds(c,b,k){return c!=null?c:b!=null?b:k}function bc(c){var b=new Date(L.now());return c._useUTC?[b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate()]:[b.getFullYear(),b.getMonth(),b.getDate()]}function Gu(c){var b,k,D=[],M,W,it;if(!c._d){for(M=bc(c),c._w&&c._a[mn]==null&&c._a[Nr]==null&&Cs(c),c._dayOfYear!=null&&(it=Ds(c._a[Er],M[Er]),(c._dayOfYear>ws(it)||c._dayOfYear===0)&&(Nt(c)._overflowDayOfYear=!0),k=ks(it,0,c._dayOfYear),c._a[Nr]=k.getUTCMonth(),c._a[mn]=k.getUTCDate()),b=0;b<3&&c._a[b]==null;++b)c._a[b]=D[b]=M[b];for(;b<7;b++)c._a[b]=D[b]=c._a[b]==null?b===2?1:0:c._a[b];c._a[De]===24&&c._a[Mn]===0&&c._a[ji]===0&&c._a[ln]===0&&(c._nextDay=!0,c._a[De]=0),c._d=(c._useUTC?ks:dd).apply(null,D),W=c._useUTC?c._d.getUTCDay():c._d.getDay(),c._tzm!=null&&c._d.setUTCMinutes(c._d.getUTCMinutes()-c._tzm),c._nextDay&&(c._a[De]=24),c._w&&typeof c._w.d!="undefined"&&c._w.d!==W&&(Nt(c).weekdayMismatch=!0)}}function Cs(c){var b,k,D,M,W,it,vt,Ft,oe;b=c._w,b.GG!=null||b.W!=null||b.E!=null?(W=1,it=4,k=Ds(b.GG,c._a[Er],Lo(We(),1,4).year),D=Ds(b.W,1),M=Ds(b.E,1),(M<1||M>7)&&(Ft=!0)):(W=c._locale._week.dow,it=c._locale._week.doy,oe=Lo(We(),W,it),k=Ds(b.gg,c._a[Er],oe.year),D=Ds(b.w,oe.week),b.d!=null?(M=b.d,(M<0||M>6)&&(Ft=!0)):b.e!=null?(M=b.e+W,(b.e<0||b.e>6)&&(Ft=!0)):M=W),D<1||D>vo(k,W,it)?Nt(c)._overflowWeeks=!0:Ft!=null?Nt(c)._overflowWeekday=!0:(vt=jp(k,D,M,W,it),c._a[Er]=vt.year,c._dayOfYear=vt.dayOfYear)}L.ISO_8601=function(){},L.RFC_2822=function(){};function Is(c){if(c._f===L.ISO_8601){Oa(c);return}if(c._f===L.RFC_2822){Da(c);return}c._a=[],Nt(c).empty=!0;var b=""+c._i,k,D,M,W,it,vt=b.length,Ft=0,oe,pr;for(M=ei(c._f,c._locale).match(je)||[],pr=M.length,k=0;k<pr;k++)W=M[k],D=(b.match(Zg(W,c))||[])[0],D&&(it=b.substr(0,b.indexOf(D)),it.length>0&&Nt(c).unusedInput.push(it),b=b.slice(b.indexOf(D)+D.length),Ft+=D.length),Ue[W]?(D?Nt(c).empty=!1:Nt(c).unusedTokens.push(W),_a(W,D,c)):c._strict&&!D&&Nt(c).unusedTokens.push(W);Nt(c).charsLeftOver=vt-Ft,b.length>0&&Nt(c).unusedInput.push(b),c._a[De]<=12&&Nt(c).bigHour===!0&&c._a[De]>0&&(Nt(c).bigHour=void 0),Nt(c).parsedDateParts=c._a.slice(0),Nt(c).meridiem=c._meridiem,c._a[De]=Yi(c._locale,c._a[De],c._meridiem),oe=Nt(c).era,oe!==null&&(c._a[Er]=c._locale.erasConvertYear(oe,c._a[Er])),Gu(c),mi(c)}function Yi(c,b,k){var D;return k==null?b:c.meridiemHour!=null?c.meridiemHour(b,k):(c.isPM!=null&&(D=c.isPM(k),D&&b<12&&(b+=12),!D&&b===12&&(b=0)),b)}function vy(c){var b,k,D,M,W,it,vt=!1,Ft=c._f.length;if(Ft===0){Nt(c).invalidFormat=!0,c._d=new Date(NaN);return}for(M=0;M<Ft;M++)W=0,it=!1,b=se({},c),c._useUTC!=null&&(b._useUTC=c._useUTC),b._f=c._f[M],Is(b),Pe(b)&&(it=!0),W+=Nt(b).charsLeftOver,W+=Nt(b).unusedTokens.length*10,Nt(b).score=W,vt?W<D&&(D=W,k=b):(D==null||W<D||it)&&(D=W,k=b,it&&(vt=!0));Qe(c,k||b)}function wd(c){if(!c._d){var b=_e(c._i),k=b.day===void 0?b.date:b.day;c._a=In([b.year,b.month,k,b.hour,b.minute,b.second,b.millisecond],function(D){return D&&parseInt(D,10)}),Gu(c)}}function my(c){var b=new fi(mi(Sn(c)));return b._nextDay&&(b.add(1,"d"),b._nextDay=void 0),b}function Sn(c){var b=c._i,k=c._f;return c._locale=c._locale||ni(c._l),b===null||k===void 0&&b===""?sn({nullInput:!0}):(typeof b=="string"&&(c._i=b=c._locale.preparse(b)),kr(b)?new fi(mi(b)):(Wt(b)?c._d=b:z(k)?vy(c):k?Is(c):Wu(c),Pe(c)||(c._d=null),c))}function Wu(c){var b=c._i;dt(b)?c._d=new Date(L.now()):Wt(b)?c._d=new Date(b.valueOf()):typeof b=="string"?bd(c):z(b)?(c._a=In(b.slice(0),function(k){return parseInt(k,10)}),Gu(c)):nt(b)?wd(c):Gt(b)?c._d=new Date(b):L.createFromInputFallback(c)}function wc(c,b,k,D,M){var W={};return(b===!0||b===!1)&&(D=b,b=void 0),(k===!0||k===!1)&&(D=k,k=void 0),(nt(c)&&St(c)||z(c)&&c.length===0)&&(c=void 0),W._isAMomentObject=!0,W._useUTC=W._isUTC=M,W._l=k,W._i=c,W._f=b,W._strict=D,my(W)}function We(c,b,k,D){return wc(c,b,k,D,!1)}var Rn=fr("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var c=We.apply(null,arguments);return this.isValid()&&c.isValid()?c<this?this:c:sn()}),_c=fr("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var c=We.apply(null,arguments);return this.isValid()&&c.isValid()?c>this?this:c:sn()});function zu(c,b){var k,D;if(b.length===1&&z(b[0])&&(b=b[0]),!b.length)return We();for(k=b[0],D=1;D<b.length;++D)(!b[D].isValid()||b[D][c](k))&&(k=b[D]);return k}function Ps(){var c=[].slice.call(arguments,0);return zu("isBefore",c)}function gy(){var c=[].slice.call(arguments,0);return zu("isAfter",c)}var gi=function(){return Date.now?Date.now():+new Date},yi=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Sc(c){var b,k=!1,D,M=yi.length;for(b in c)if(yt(c,b)&&!(Kt.call(yi,b)!==-1&&(c[b]==null||!isNaN(c[b]))))return!1;for(D=0;D<M;++D)if(c[yi[D]]){if(k)return!1;parseFloat(c[yi[D]])!==qt(c[yi[D]])&&(k=!0)}return!0}function Mt(){return this._isValid}function yy(){return ii(NaN)}function kc(c){var b=_e(c),k=b.year||0,D=b.quarter||0,M=b.month||0,W=b.week||b.isoWeek||0,it=b.day||0,vt=b.hour||0,Ft=b.minute||0,oe=b.second||0,pr=b.millisecond||0;this._isValid=Sc(b),this._milliseconds=+pr+oe*1e3+Ft*6e4+vt*1e3*60*60,this._days=+it+W*7,this._months=+M+D*3+k*12,this._data={},this._locale=ni(),this._bubble()}function Ho(c){return c instanceof kc}function Tc(c){return c<0?Math.round(-1*c)*-1:Math.round(c)}function Up(c,b,k){var D=Math.min(c.length,b.length),M=Math.abs(c.length-b.length),W=0,it;for(it=0;it<D;it++)(k&&c[it]!==b[it]||!k&&qt(c[it])!==qt(b[it]))&&W++;return W+M}function Vp(c,b){Dt(c,0,0,function(){var k=this.utcOffset(),D="+";return k<0&&(k=-k,D="-"),D+Ae(~~(k/60),2)+b+Ae(~~k%60,2)})}Vp("Z",":"),Vp("ZZ",""),Et("Z",Ri),Et("ZZ",Ri),Ee(["Z","ZZ"],function(c,b,k){k._useUTC=!0,k._tzm=_d(Ri,c)});var Bi=/([\+\-]|\d\d)/gi;function _d(c,b){var k=(b||"").match(c),D,M,W;return k===null?null:(D=k[k.length-1]||[],M=(D+"").match(Bi)||["-",0,0],W=+(M[1]*60)+qt(M[2]),W===0?0:M[0]==="+"?W:-W)}function Ca(c,b){var k,D;return b._isUTC?(k=b.clone(),D=(kr(c)||Wt(c)?c.valueOf():We(c).valueOf())-k.valueOf(),k._d.setTime(k._d.valueOf()+D),L.updateOffset(k,!1),k):We(c).local()}function Uu(c){return-Math.round(c._d.getTimezoneOffset())}L.updateOffset=function(){};function Xp(c,b,k){var D=this._offset||0,M;if(!this.isValid())return c!=null?this:NaN;if(c!=null){if(typeof c=="string"){if(c=_d(Ri,c),c===null)return this}else Math.abs(c)<16&&!k&&(c=c*60);return!this._isUTC&&b&&(M=Uu(this)),this._offset=c,this._isUTC=!0,M!=null&&this.add(M,"m"),D!==c&&(!b||this._changeInProgress?Jp(this,ii(c-D,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,L.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?D:Uu(this)}function by(c,b){return c!=null?(typeof c!="string"&&(c=-c),this.utcOffset(c,b),this):-this.utcOffset()}function Vu(c){return this.utcOffset(0,c)}function xc(c){return this._isUTC&&(this.utcOffset(0,c),this._isUTC=!1,c&&this.subtract(Uu(this),"m")),this}function Ia(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var c=_d(sc,this._i);c!=null?this.utcOffset(c):this.utcOffset(0,!0)}return this}function wy(c){return this.isValid()?(c=c?We(c).utcOffset():0,(this.utcOffset()-c)%60===0):!1}function go(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function _y(){if(!dt(this._isDSTShifted))return this._isDSTShifted;var c={},b;return se(c,this),c=Sn(c),c._a?(b=c._isUTC?zr(c._a):We(c._a),this._isDSTShifted=this.isValid()&&Up(c._a,b.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Xu(){return this.isValid()?!this._isUTC:!1}function Sd(){return this.isValid()?this._isUTC:!1}function qp(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Oc=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,yo=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ii(c,b){var k=c,D=null,M,W,it;return Ho(c)?k={ms:c._milliseconds,d:c._days,M:c._months}:Gt(c)||!isNaN(+c)?(k={},b?k[b]=+c:k.milliseconds=+c):(D=Oc.exec(c))?(M=D[1]==="-"?-1:1,k={y:0,d:qt(D[mn])*M,h:qt(D[De])*M,m:qt(D[Mn])*M,s:qt(D[ji])*M,ms:qt(Tc(D[ln]*1e3))*M}):(D=yo.exec(c))?(M=D[1]==="-"?-1:1,k={y:Hi(D[2],M),M:Hi(D[3],M),w:Hi(D[4],M),d:Hi(D[5],M),h:Hi(D[6],M),m:Hi(D[7],M),s:Hi(D[8],M)}):k==null?k={}:typeof k=="object"&&("from"in k||"to"in k)&&(it=Lr(We(k.from),We(k.to)),k={},k.ms=it.milliseconds,k.M=it.months),W=new kc(k),Ho(c)&&yt(c,"_locale")&&(W._locale=c._locale),Ho(c)&&yt(c,"_isValid")&&(W._isValid=c._isValid),W}ii.fn=kc.prototype,ii.invalid=yy;function Hi(c,b){var k=c&&parseFloat(c.replace(",","."));return(isNaN(k)?0:k)*b}function kd(c,b){var k={};return k.months=b.month()-c.month()+(b.year()-c.year())*12,c.clone().add(k.months,"M").isAfter(b)&&--k.months,k.milliseconds=+b-+c.clone().add(k.months,"M"),k}function Lr(c,b){var k;return c.isValid()&&b.isValid()?(b=Ca(b,c),c.isBefore(b)?k=kd(c,b):(k=kd(b,c),k.milliseconds=-k.milliseconds,k.months=-k.months),k):{milliseconds:0,months:0}}function Kp(c,b){return function(k,D){var M,W;return D!==null&&!isNaN(+D)&&($u(b,"moment()."+b+"(period, number) is deprecated. Please use moment()."+b+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),W=k,k=D,D=W),M=ii(k,D),Jp(this,M,c),this}}function Jp(c,b,k,D){var M=b._milliseconds,W=Tc(b._days),it=Tc(b._months);c.isValid()&&(D=D==null?!0:D,it&&Sa(c,jo(c,"Month")+it*k),W&&Mp(c,"Date",jo(c,"Date")+W*k),M&&c._d.setTime(c._d.valueOf()+M*k),D&&L.updateOffset(c,W||it))}var qu=Kp(1,"add"),bi=Kp(-1,"subtract");function Ku(c){return typeof c=="string"||c instanceof String}function Sy(c){return kr(c)||Wt(c)||Ku(c)||Gt(c)||Zp(c)||As(c)||c===null||c===void 0}function As(c){var b=nt(c)&&!St(c),k=!1,D=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],M,W,it=D.length;for(M=0;M<it;M+=1)W=D[M],k=k||yt(c,W);return b&&k}function Zp(c){var b=z(c),k=!1;return b&&(k=c.filter(function(D){return!Gt(D)&&Ku(c)}).length===0),b&&k}function Pa(c){var b=nt(c)&&!St(c),k=!1,D=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],M,W;for(M=0;M<D.length;M+=1)W=D[M],k=k||yt(c,W);return b&&k}function $s(c,b){var k=c.diff(b,"days",!0);return k<-6?"sameElse":k<-1?"lastWeek":k<0?"lastDay":k<1?"sameDay":k<2?"nextDay":k<7?"nextWeek":"sameElse"}function Ju(c,b){arguments.length===1&&(arguments[0]?Sy(arguments[0])?(c=arguments[0],b=void 0):Pa(arguments[0])&&(b=arguments[0],c=void 0):(c=void 0,b=void 0));var k=c||We(),D=Ca(k,this).startOf("day"),M=L.calendarFormat(this,D)||"sameElse",W=b&&(Tr(b[M])?b[M].call(this,k):b[M]);return this.format(W||this.localeData().calendar(M,this,We(k)))}function ky(){return new fi(this)}function Ty(c,b){var k=kr(c)?c:We(c);return this.isValid()&&k.isValid()?(b=tr(b)||"millisecond",b==="millisecond"?this.valueOf()>k.valueOf():k.valueOf()<this.clone().startOf(b).valueOf()):!1}function Ec(c,b){var k=kr(c)?c:We(c);return this.isValid()&&k.isValid()?(b=tr(b)||"millisecond",b==="millisecond"?this.valueOf()<k.valueOf():this.clone().endOf(b).valueOf()<k.valueOf()):!1}function Qp(c,b,k,D){var M=kr(c)?c:We(c),W=kr(b)?b:We(b);return this.isValid()&&M.isValid()&&W.isValid()?(D=D||"()",(D[0]==="("?this.isAfter(M,k):!this.isBefore(M,k))&&(D[1]===")"?this.isBefore(W,k):!this.isAfter(W,k))):!1}function Td(c,b){var k=kr(c)?c:We(c),D;return this.isValid()&&k.isValid()?(b=tr(b)||"millisecond",b==="millisecond"?this.valueOf()===k.valueOf():(D=k.valueOf(),this.clone().startOf(b).valueOf()<=D&&D<=this.clone().endOf(b).valueOf())):!1}function Dc(c,b){return this.isSame(c,b)||this.isAfter(c,b)}function xy(c,b){return this.isSame(c,b)||this.isBefore(c,b)}function Oy(c,b,k){var D,M,W;if(!this.isValid())return NaN;if(D=Ca(c,this),!D.isValid())return NaN;switch(M=(D.utcOffset()-this.utcOffset())*6e4,b=tr(b),b){case"year":W=Vr(this,D)/12;break;case"month":W=Vr(this,D);break;case"quarter":W=Vr(this,D)/3;break;case"second":W=(this-D)/1e3;break;case"minute":W=(this-D)/6e4;break;case"hour":W=(this-D)/36e5;break;case"day":W=(this-D-M)/864e5;break;case"week":W=(this-D-M)/6048e5;break;default:W=this-D}return k?W:nr(W)}function Vr(c,b){if(c.date()<b.date())return-Vr(b,c);var k=(b.year()-c.year())*12+(b.month()-c.month()),D=c.clone().add(k,"months"),M,W;return b-D<0?(M=c.clone().add(k-1,"months"),W=(b-D)/(D-M)):(M=c.clone().add(k+1,"months"),W=(b-D)/(M-D)),-(k+W)||0}L.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",L.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function tv(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Ey(c){if(!this.isValid())return null;var b=c!==!0,k=b?this.clone().utc():this;return k.year()<0||k.year()>9999?ya(k,b?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Tr(Date.prototype.toISOString)?b?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",ya(k,"Z")):ya(k,b?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function xd(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var c="moment",b="",k,D,M,W;return this.isLocal()||(c=this.utcOffset()===0?"moment.utc":"moment.parseZone",b="Z"),k="["+c+'("]',D=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",M="-MM-DD[T]HH:mm:ss.SSS",W=b+'[")]',this.format(k+D+M+W)}function Dy(c){c||(c=this.isUtc()?L.defaultFormatUtc:L.defaultFormat);var b=ya(this,c);return this.localeData().postformat(b)}function ev(c,b){return this.isValid()&&(kr(c)&&c.isValid()||We(c).isValid())?ii({to:this,from:c}).locale(this.locale()).humanize(!b):this.localeData().invalidDate()}function Aa(c){return this.from(We(),c)}function $a(c,b){return this.isValid()&&(kr(c)&&c.isValid()||We(c).isValid())?ii({from:this,to:c}).locale(this.locale()).humanize(!b):this.localeData().invalidDate()}function rv(c){return this.to(We(),c)}function nv(c){var b;return c===void 0?this._locale._abbr:(b=ni(c),b!=null&&(this._locale=b),this)}var Od=fr("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(c){return c===void 0?this.localeData():this.locale(c)});function Go(){return this._locale}var Zu=1e3,Ms=60*Zu,Ns=60*Ms,Qu=(365*400+97)*24*Ns;function Rs(c,b){return(c%b+b)%b}function js(c,b,k){return c<100&&c>=0?new Date(c+400,b,k)-Qu:new Date(c,b,k).valueOf()}function Gi(c,b,k){return c<100&&c>=0?Date.UTC(c+400,b,k)-Qu:Date.UTC(c,b,k)}function Cc(c){var b,k;if(c=tr(c),c===void 0||c==="millisecond"||!this.isValid())return this;switch(k=this._isUTC?Gi:js,c){case"year":b=k(this.year(),0,1);break;case"quarter":b=k(this.year(),this.month()-this.month()%3,1);break;case"month":b=k(this.year(),this.month(),1);break;case"week":b=k(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":b=k(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":b=k(this.year(),this.month(),this.date());break;case"hour":b=this._d.valueOf(),b-=Rs(b+(this._isUTC?0:this.utcOffset()*Ms),Ns);break;case"minute":b=this._d.valueOf(),b-=Rs(b,Ms);break;case"second":b=this._d.valueOf(),b-=Rs(b,Zu);break}return this._d.setTime(b),L.updateOffset(this,!0),this}function tl(c){var b,k;if(c=tr(c),c===void 0||c==="millisecond"||!this.isValid())return this;switch(k=this._isUTC?Gi:js,c){case"year":b=k(this.year()+1,0,1)-1;break;case"quarter":b=k(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":b=k(this.year(),this.month()+1,1)-1;break;case"week":b=k(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":b=k(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":b=k(this.year(),this.month(),this.date()+1)-1;break;case"hour":b=this._d.valueOf(),b+=Ns-Rs(b+(this._isUTC?0:this.utcOffset()*Ms),Ns)-1;break;case"minute":b=this._d.valueOf(),b+=Ms-Rs(b,Ms)-1;break;case"second":b=this._d.valueOf(),b+=Zu-Rs(b,Zu)-1;break}return this._d.setTime(b),L.updateOffset(this,!0),this}function Ic(){return this._d.valueOf()-(this._offset||0)*6e4}function Ed(){return Math.floor(this.valueOf()/1e3)}function Dd(){return new Date(this.valueOf())}function Ls(){var c=this;return[c.year(),c.month(),c.date(),c.hour(),c.minute(),c.second(),c.millisecond()]}function Fs(){var c=this;return{years:c.year(),months:c.month(),date:c.date(),hours:c.hours(),minutes:c.minutes(),seconds:c.seconds(),milliseconds:c.milliseconds()}}function iv(){return this.isValid()?this.toISOString():null}function Ys(){return Pe(this)}function Cy(){return Qe({},Nt(this))}function el(){return Nt(this).overflow}function Iy(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Dt("N",0,0,"eraAbbr"),Dt("NN",0,0,"eraAbbr"),Dt("NNN",0,0,"eraAbbr"),Dt("NNNN",0,0,"eraName"),Dt("NNNNN",0,0,"eraNarrow"),Dt("y",["y",1],"yo","eraYear"),Dt("y",["yy",2],0,"eraYear"),Dt("y",["yyy",3],0,"eraYear"),Dt("y",["yyyy",4],0,"eraYear"),Et("N",At),Et("NN",At),Et("NNN",At),Et("NNNN",Se),Et("NNNNN",Id),Ee(["N","NN","NNN","NNNN","NNNNN"],function(c,b,k,D){var M=k._locale.erasParse(c,D,k._strict);M?Nt(k).era=M:Nt(k).invalidEra=c}),Et("y",fo),Et("yy",fo),Et("yyy",fo),Et("yyyy",fo),Et("yo",My),Ee(["y","yy","yyy","yyyy"],Er),Ee(["yo"],function(c,b,k,D){var M;k._locale._eraYearOrdinalRegex&&(M=c.match(k._locale._eraYearOrdinalRegex)),k._locale.eraYearOrdinalParse?b[Er]=k._locale.eraYearOrdinalParse(c,M):b[Er]=parseInt(c,10)});function ov(c,b){var k,D,M,W=this._eras||ni("en")._eras;for(k=0,D=W.length;k<D;++k){switch(typeof W[k].since){case"string":M=L(W[k].since).startOf("day"),W[k].since=M.valueOf();break}switch(typeof W[k].until){case"undefined":W[k].until=1/0;break;case"string":M=L(W[k].until).startOf("day").valueOf(),W[k].until=M.valueOf();break}}return W}function Py(c,b,k){var D,M,W=this.eras(),it,vt,Ft;for(c=c.toUpperCase(),D=0,M=W.length;D<M;++D)if(it=W[D].name.toUpperCase(),vt=W[D].abbr.toUpperCase(),Ft=W[D].narrow.toUpperCase(),k)switch(b){case"N":case"NN":case"NNN":if(vt===c)return W[D];break;case"NNNN":if(it===c)return W[D];break;case"NNNNN":if(Ft===c)return W[D];break}else if([it,vt,Ft].indexOf(c)>=0)return W[D]}function av(c,b){var k=c.since<=c.until?1:-1;return b===void 0?L(c.since).year():L(c.since).year()+(b-c.offset)*k}function Wi(){var c,b,k,D=this.localeData().eras();for(c=0,b=D.length;c<b;++c)if(k=this.clone().startOf("day").valueOf(),D[c].since<=k&&k<=D[c].until||D[c].until<=k&&k<=D[c].since)return D[c].name;return""}function sv(){var c,b,k,D=this.localeData().eras();for(c=0,b=D.length;c<b;++c)if(k=this.clone().startOf("day").valueOf(),D[c].since<=k&&k<=D[c].until||D[c].until<=k&&k<=D[c].since)return D[c].narrow;return""}function Ay(){var c,b,k,D=this.localeData().eras();for(c=0,b=D.length;c<b;++c)if(k=this.clone().startOf("day").valueOf(),D[c].since<=k&&k<=D[c].until||D[c].until<=k&&k<=D[c].since)return D[c].abbr;return""}function Cd(){var c,b,k,D,M=this.localeData().eras();for(c=0,b=M.length;c<b;++c)if(k=M[c].since<=M[c].until?1:-1,D=this.clone().startOf("day").valueOf(),M[c].since<=D&&D<=M[c].until||M[c].until<=D&&D<=M[c].since)return(this.year()-L(M[c].since).year())*k+M[c].offset;return this.year()}function rl(c){return yt(this,"_erasNameRegex")||Ma.call(this),c?this._erasNameRegex:this._erasRegex}function uv(c){return yt(this,"_erasAbbrRegex")||Ma.call(this),c?this._erasAbbrRegex:this._erasRegex}function $y(c){return yt(this,"_erasNarrowRegex")||Ma.call(this),c?this._erasNarrowRegex:this._erasRegex}function At(c,b){return b.erasAbbrRegex(c)}function Se(c,b){return b.erasNameRegex(c)}function Id(c,b){return b.erasNarrowRegex(c)}function My(c,b){return b._eraYearOrdinalRegex||fo}function Ma(){var c=[],b=[],k=[],D=[],M,W,it,vt,Ft,oe=this.eras();for(M=0,W=oe.length;M<W;++M)it=$n(oe[M].name),vt=$n(oe[M].abbr),Ft=$n(oe[M].narrow),b.push(it),c.push(vt),k.push(Ft),D.push(it),D.push(vt),D.push(Ft);this._erasRegex=new RegExp("^("+D.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+b.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+c.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+k.join("|")+")","i")}Dt(0,["gg",2],0,function(){return this.weekYear()%100}),Dt(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Bs(c,b){Dt(0,[c,c.length],0,b)}Bs("gggg","weekYear"),Bs("ggggg","weekYear"),Bs("GGGG","isoWeekYear"),Bs("GGGGG","isoWeekYear"),Et("G",An),Et("g",An),Et("GG",Xt,be),Et("gg",Xt,be),Et("GGGG",Fe,wr),Et("gggg",Fe,wr),Et("GGGGG",Pn,$e),Et("ggggg",Pn,$e),Or(["gggg","ggggg","GGGG","GGGGG"],function(c,b,k,D){b[D.substr(0,2)]=qt(c)}),Or(["gg","GG"],function(c,b,k,D){b[D]=L.parseTwoDigitYear(c)});function nl(c){return oi.call(this,c,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Pd(c){return oi.call(this,c,this.isoWeek(),this.isoWeekday(),1,4)}function lv(){return vo(this.year(),1,4)}function cv(){return vo(this.isoWeekYear(),1,4)}function il(){var c=this.localeData()._week;return vo(this.year(),c.dow,c.doy)}function Wo(){var c=this.localeData()._week;return vo(this.weekYear(),c.dow,c.doy)}function oi(c,b,k,D,M){var W;return c==null?Lo(this,D,M).year:(W=vo(c,D,M),b>W&&(b=W),ol.call(this,c,b,k,D,M))}function ol(c,b,k,D,M){var W=jp(c,b,k,D,M),it=ks(W.year,0,W.dayOfYear);return this.year(it.getUTCFullYear()),this.month(it.getUTCMonth()),this.date(it.getUTCDate()),this}Dt("Q",0,"Qo","quarter"),Et("Q",we),Ee("Q",function(c,b){b[Nr]=(qt(c)-1)*3});function Ny(c){return c==null?Math.ceil((this.month()+1)/3):this.month((c-1)*3+this.month()%3)}Dt("D",["DD",2],"Do","date"),Et("D",Xt,rr),Et("DD",Xt,be),Et("Do",function(c,b){return c?b._dayOfMonthOrdinalParse||b._ordinalParse:b._dayOfMonthOrdinalParseLenient}),Ee(["D","DD"],mn),Ee("Do",function(c,b){b[mn]=qt(c.match(Xt)[0])});var Na=cn("Date",!0);Dt("DDD",["DDDD",3],"DDDo","dayOfYear"),Et("DDD",bs),Et("DDDD",Oe),Ee(["DDD","DDDD"],function(c,b,k){k._dayOfYear=qt(c)});function Pc(c){var b=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return c==null?b:this.add(c-b,"d")}Dt("m",["mm",2],0,"minute"),Et("m",Xt,wa),Et("mm",Xt,be),Ee(["m","mm"],Mn);var Ac=cn("Minutes",!1);Dt("s",["ss",2],0,"second"),Et("s",Xt,wa),Et("ss",Xt,be),Ee(["s","ss"],ji);var Ad=cn("Seconds",!1);Dt("S",0,0,function(){return~~(this.millisecond()/100)}),Dt(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Dt(0,["SSS",3],0,"millisecond"),Dt(0,["SSSS",4],0,function(){return this.millisecond()*10}),Dt(0,["SSSSS",5],0,function(){return this.millisecond()*100}),Dt(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),Dt(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),Dt(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),Dt(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Et("S",bs,we),Et("SS",bs,be),Et("SSS",bs,Oe);var zo,hv;for(zo="SSSS";zo.length<=9;zo+="S")Et(zo,fo);function bo(c,b){b[ln]=qt(("0."+c)*1e3)}for(zo="S";zo.length<=9;zo+="S")Ee(zo,bo);hv=cn("Milliseconds",!1),Dt("z",0,0,"zoneAbbr"),Dt("zz",0,0,"zoneName");function Ry(){return this._isUTC?"UTC":""}function Hs(){return this._isUTC?"Coordinated Universal Time":""}var ct=fi.prototype;ct.add=qu,ct.calendar=Ju,ct.clone=ky,ct.diff=Oy,ct.endOf=tl,ct.format=Dy,ct.from=ev,ct.fromNow=Aa,ct.to=$a,ct.toNow=rv,ct.get=yn,ct.invalidAt=el,ct.isAfter=Ty,ct.isBefore=Ec,ct.isBetween=Qp,ct.isSame=Td,ct.isSameOrAfter=Dc,ct.isSameOrBefore=xy,ct.isValid=Ys,ct.lang=Od,ct.locale=nv,ct.localeData=Go,ct.max=_c,ct.min=Rn,ct.parsingFlags=Cy,ct.set=bn,ct.startOf=Cc,ct.subtract=bi,ct.toArray=Ls,ct.toObject=Fs,ct.toDate=Dd,ct.toISOString=Ey,ct.inspect=xd,typeof Symbol!="undefined"&&Symbol.for!=null&&(ct[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ct.toJSON=iv,ct.toString=tv,ct.unix=Ed,ct.valueOf=Ic,ct.creationData=Iy,ct.eraName=Wi,ct.eraNarrow=sv,ct.eraAbbr=Ay,ct.eraYear=Cd,ct.year=_s,ct.isLeapYear=Ru,ct.weekYear=nl,ct.isoWeekYear=Pd,ct.quarter=ct.quarters=Ny,ct.month=ir,ct.daysInMonth=hd,ct.week=ct.weeks=fd,ct.isoWeek=ct.isoWeeks=Fo,ct.weeksInYear=il,ct.weeksInWeekYear=Wo,ct.isoWeeksInYear=lv,ct.isoWeeksInISOWeekYear=cv,ct.date=Na,ct.day=ct.days=Yo,ct.weekday=Yu,ct.isoWeekday=Hp,ct.dayOfYear=Pc,ct.hour=ct.hours=dy,ct.minute=ct.minutes=Ac,ct.second=ct.seconds=Ad,ct.millisecond=ct.milliseconds=hv,ct.utcOffset=Xp,ct.utc=Vu,ct.local=xc,ct.parseZone=Ia,ct.hasAlignedHourOffset=wy,ct.isDST=go,ct.isLocal=Xu,ct.isUtcOffset=Sd,ct.isUtc=qp,ct.isUTC=qp,ct.zoneAbbr=Ry,ct.zoneName=Hs,ct.dates=fr("dates accessor is deprecated. Use date instead.",Na),ct.months=fr("months accessor is deprecated. Use month instead",ir),ct.years=fr("years accessor is deprecated. Use year instead",_s),ct.zone=fr("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",by),ct.isDSTShifted=fr("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",_y);function $d(c){return We(c*1e3)}function dv(){return We.apply(null,arguments).parseZone()}function wi(c){return c}var fe=Ni.prototype;fe.calendar=xe,fe.longDateFormat=Kg,fe.invalidDate=No,fe.ordinal=Ro,fe.preparse=wi,fe.postformat=wi,fe.relativeTime=ys,fe.pastFuture=ri,fe.set=ad,fe.eras=ov,fe.erasParse=Py,fe.erasConvertYear=av,fe.erasAbbrRegex=uv,fe.erasNameRegex=rl,fe.erasNarrowRegex=$y,fe.months=hc,fe.monthsShort=cd,fe.monthsParse=ey,fe.monthsRegex=cr,fe.monthsShortRegex=qe,fe.week=ry,fe.firstDayOfYear=fc,fe.firstDayOfWeek=Fu,fe.weekdays=sy,fe.weekdaysMin=Bp,fe.weekdaysShort=Yp,fe.weekdaysParse=ly,fe.weekdaysRegex=vd,fe.weekdaysShortRegex=cy,fe.weekdaysMinRegex=vc,fe.isPM=Nn,fe.meridiem=fy;function zi(c,b,k,D){var M=ni(),W=zr().set(D,b);return M[k](W,c)}function Md(c,b,k){if(Gt(c)&&(b=c,c=void 0),c=c||"",b!=null)return zi(c,b,k,"month");var D,M=[];for(D=0;D<12;D++)M[D]=zi(c,D,k,"month");return M}function Ra(c,b,k,D){typeof c=="boolean"?(Gt(b)&&(k=b,b=void 0),b=b||""):(b=c,k=b,c=!1,Gt(b)&&(k=b,b=void 0),b=b||"");var M=ni(),W=c?M._week.dow:0,it,vt=[];if(k!=null)return zi(b,(k+W)%7,D,"day");for(it=0;it<7;it++)vt[it]=zi(b,(it+W)%7,D,"day");return vt}function Gs(c,b){return Md(c,b,"months")}function jy(c,b){return Md(c,b,"monthsShort")}function wo(c,b,k){return Ra(c,b,k,"weekdays")}function al(c,b,k){return Ra(c,b,k,"weekdaysShort")}function $c(c,b,k){return Ra(c,b,k,"weekdaysMin")}Fi("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(c){var b=c%10,k=qt(c%100/10)===1?"th":b===1?"st":b===2?"nd":b===3?"rd":"th";return c+k}}),L.lang=fr("moment.lang is deprecated. Use moment.locale instead.",Fi),L.langData=fr("moment.langData is deprecated. Use moment.localeData instead.",ni);var Ui=Math.abs;function sl(){var c=this._data;return this._milliseconds=Ui(this._milliseconds),this._days=Ui(this._days),this._months=Ui(this._months),c.milliseconds=Ui(c.milliseconds),c.seconds=Ui(c.seconds),c.minutes=Ui(c.minutes),c.hours=Ui(c.hours),c.months=Ui(c.months),c.years=Ui(c.years),this}function fv(c,b,k,D){var M=ii(b,k);return c._milliseconds+=D*M._milliseconds,c._days+=D*M._days,c._months+=D*M._months,c._bubble()}function Ly(c,b){return fv(this,c,b,1)}function ar(c,b){return fv(this,c,b,-1)}function Nd(c){return c<0?Math.floor(c):Math.ceil(c)}function Fy(){var c=this._milliseconds,b=this._days,k=this._months,D=this._data,M,W,it,vt,Ft;return c>=0&&b>=0&&k>=0||c<=0&&b<=0&&k<=0||(c+=Nd(ul(k)+b)*864e5,b=0,k=0),D.milliseconds=c%1e3,M=nr(c/1e3),D.seconds=M%60,W=nr(M/60),D.minutes=W%60,it=nr(W/60),D.hours=it%24,b+=nr(it/24),Ft=nr(pv(b)),k+=Ft,b-=Nd(ul(Ft)),vt=nr(k/12),k%=12,D.days=b,D.months=k,D.years=vt,this}function pv(c){return c*4800/146097}function ul(c){return c*146097/4800}function Ws(c){if(!this.isValid())return NaN;var b,k,D=this._milliseconds;if(c=tr(c),c==="month"||c==="quarter"||c==="year")switch(b=this._days+D/864e5,k=this._months+pv(b),c){case"month":return k;case"quarter":return k/3;case"year":return k/12}else switch(b=this._days+Math.round(ul(this._months)),c){case"week":return b/7+D/6048e5;case"day":return b+D/864e5;case"hour":return b*24+D/36e5;case"minute":return b*1440+D/6e4;case"second":return b*86400+D/1e3;case"millisecond":return Math.floor(b*864e5)+D;default:throw new Error("Unknown unit "+c)}}function _o(c){return function(){return this.as(c)}}var vv=_o("ms"),mv=_o("s"),gv=_o("m"),Yy=_o("h"),By=_o("d"),Hy=_o("w"),Rd=_o("M"),Dr=_o("Q"),ja=_o("y"),Mc=vv;function yv(){return ii(this)}function zs(c){return c=tr(c),this.isValid()?this[c+"s"]():NaN}function So(c){return function(){return this.isValid()?this._data[c]:NaN}}var bv=So("milliseconds"),jd=So("seconds"),Us=So("minutes"),Nc=So("hours"),Uo=So("days"),Vs=So("months"),Ld=So("years");function wv(){return nr(this.days()/7)}var Cr=Math.round,kn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function jn(c,b,k,D,M){return M.relativeTime(b||1,!!k,c,D)}function Gy(c,b,k,D){var M=ii(c).abs(),W=Cr(M.as("s")),it=Cr(M.as("m")),vt=Cr(M.as("h")),Ft=Cr(M.as("d")),oe=Cr(M.as("M")),pr=Cr(M.as("w")),_i=Cr(M.as("y")),Xo=W<=k.ss&&["s",W]||W<k.s&&["ss",W]||it<=1&&["m"]||it<k.m&&["mm",it]||vt<=1&&["h"]||vt<k.h&&["hh",vt]||Ft<=1&&["d"]||Ft<k.d&&["dd",Ft];return k.w!=null&&(Xo=Xo||pr<=1&&["w"]||pr<k.w&&["ww",pr]),Xo=Xo||oe<=1&&["M"]||oe<k.M&&["MM",oe]||_i<=1&&["y"]||["yy",_i],Xo[2]=b,Xo[3]=+c>0,Xo[4]=D,jn.apply(null,Xo)}function ll(c){return c===void 0?Cr:typeof c=="function"?(Cr=c,!0):!1}function Wy(c,b){return kn[c]===void 0?!1:b===void 0?kn[c]:(kn[c]=b,c==="s"&&(kn.ss=b-1),!0)}function Fd(c,b){if(!this.isValid())return this.localeData().invalidDate();var k=!1,D=kn,M,W;return typeof c=="object"&&(b=c,c=!1),typeof c=="boolean"&&(k=c),typeof b=="object"&&(D=Object.assign({},kn,b),b.s!=null&&b.ss==null&&(D.ss=b.s-1)),M=this.localeData(),W=Gy(this,!k,D,M),k&&(W=M.pastFuture(+this,W)),M.postformat(W)}var Vo=Math.abs;function La(c){return(c>0)-(c<0)||+c}function Tn(){if(!this.isValid())return this.localeData().invalidDate();var c=Vo(this._milliseconds)/1e3,b=Vo(this._days),k=Vo(this._months),D,M,W,it,vt=this.asSeconds(),Ft,oe,pr,_i;return vt?(D=nr(c/60),M=nr(D/60),c%=60,D%=60,W=nr(k/12),k%=12,it=c?c.toFixed(3).replace(/\.?0+$/,""):"",Ft=vt<0?"-":"",oe=La(this._months)!==La(vt)?"-":"",pr=La(this._days)!==La(vt)?"-":"",_i=La(this._milliseconds)!==La(vt)?"-":"",Ft+"P"+(W?oe+W+"Y":"")+(k?oe+k+"M":"")+(b?pr+b+"D":"")+(M||D||c?"T":"")+(M?_i+M+"H":"")+(D?_i+D+"M":"")+(c?_i+it+"S":"")):"P0D"}var Ut=kc.prototype;Ut.isValid=Mt,Ut.abs=sl,Ut.add=Ly,Ut.subtract=ar,Ut.as=Ws,Ut.asMilliseconds=vv,Ut.asSeconds=mv,Ut.asMinutes=gv,Ut.asHours=Yy,Ut.asDays=By,Ut.asWeeks=Hy,Ut.asMonths=Rd,Ut.asQuarters=Dr,Ut.asYears=ja,Ut.valueOf=Mc,Ut._bubble=Fy,Ut.clone=yv,Ut.get=zs,Ut.milliseconds=bv,Ut.seconds=jd,Ut.minutes=Us,Ut.hours=Nc,Ut.days=Uo,Ut.weeks=wv,Ut.months=Vs,Ut.years=Ld,Ut.humanize=Fd,Ut.toISOString=Tn,Ut.toString=Tn,Ut.toJSON=Tn,Ut.locale=nv,Ut.localeData=Go,Ut.toIsoString=fr("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Tn),Ut.lang=Od,Dt("X",0,0,"unix"),Dt("x",0,0,"valueOf"),Et("x",An),Et("X",ld),Ee("X",function(c,b,k){k._d=new Date(parseFloat(c)*1e3)}),Ee("x",function(c,b,k){k._d=new Date(qt(c))});return L.version="2.30.1",J(We),L.fn=ct,L.min=Ps,L.max=gy,L.now=gi,L.utc=zr,L.unix=$d,L.months=Gs,L.isDate=Wt,L.locale=Fi,L.invalid=sn,L.duration=ii,L.isMoment=kr,L.weekdays=wo,L.parseZone=dv,L.localeData=ni,L.isDuration=Ho,L.monthsShort=jy,L.weekdaysMin=$c,L.defineLocale=Ta,L.updateLocale=Hu,L.locales=zp,L.weekdaysShort=al,L.normalizeUnits=tr,L.relativeTimeRounding=ll,L.relativeTimeThreshold=Wy,L.calendarFormat=$s,L.prototype=ct,L.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"},L})});var s$=mI((gI,a$)=>{(function(F,L){typeof gI=="object"&&typeof a$!="undefined"?L(gI):typeof define=="function"&&define.amd?define(["exports"],L):(F=typeof globalThis!="undefined"?globalThis:F||self,L(F.vis=F.vis||{}))})(gI,function(F){function L(l,h){if(!(l instanceof h))throw new TypeError("Cannot call a class as a function")}var J=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function z(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var nt={exports:{}},yt=function(l){return l&&l.Math===Math&&l},St=yt(typeof globalThis=="object"&&globalThis)||yt(typeof window=="object"&&window)||yt(typeof self=="object"&&self)||yt(typeof J=="object"&&J)||function(){return this}()||J||Function("return this")(),dt=function(l){try{return!!l()}catch(h){return!0}},Gt=dt,Wt=!Gt(function(){var l=function(){}.bind();return typeof l!="function"||l.hasOwnProperty("prototype")}),In=Wt,Qe=Function.prototype,zr=Qe.apply,Mi=Qe.call,Nt=typeof Reflect=="object"&&Reflect.apply||(In?Mi.bind(zr):function(){return Mi.apply(zr,arguments)}),an=Wt,Pe=Function.prototype,sn=Pe.call,le=an&&Pe.bind.bind(sn,sn),ye=an?le:function(l){return function(){return sn.apply(l,arguments)}},se=ye,fi=se({}.toString),kr=se("".slice),ho=function(l){return kr(fi(l),8,-1)},fr=ho,oc=ye,$u=function(l){if(fr(l)==="Function")return oc(l)},Tr=typeof document=="object"&&document.all,ad=typeof Tr=="undefined"&&Tr!==void 0,Te={all:Tr,IS_HTMLDDA:ad},Ni=Te,ie=Ni.all,Re=Ni.IS_HTMLDDA?function(l){return typeof l=="function"||l===ie}:function(l){return typeof l=="function"},xe={},Ae=dt,je=!Ae(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Ur=Wt,pi=Function.prototype.call,Ue=Ur?pi.bind(pi):function(){return pi.apply(pi,arguments)},Dt={},Mu={}.propertyIsEnumerable,un=Object.getOwnPropertyDescriptor,ya=un&&!Mu.call({1:2},1);Dt.f=ya?function(h){var g=un(this,h);return!!g&&g.enumerable}:Mu;var ei=function(l,h){return{enumerable:!(l&1),configurable:!(l&2),writable:!(l&4),value:h}},sd=ye,Kg=dt,gs=ho,No=Object,ac=sd("".split),ba=Kg(function(){return!No("z").propertyIsEnumerable(0)})?function(l){return gs(l)==="String"?ac(l,""):No(l)}:No,Ro=function(l){return l==null},Jg=Ro,ys=TypeError,ri=function(l){if(Jg(l))throw new ys("Can't call method on "+l);return l},ud=ba,tr=ri,_e=function(l){return ud(tr(l))},Ge=Re,xr=Te,we=xr.all,be=xr.IS_HTMLDDA?function(l){return typeof l=="object"?l!==null:Ge(l)||l===we}:function(l){return typeof l=="object"?l!==null:Ge(l)},Oe={},wr=Oe,$e=St,Xt=Re,Le=function(l){return Xt(l)?l:void 0},er=function(l,h){return arguments.length<2?Le(wr[l])||Le($e[l]):wr[l]&&wr[l][h]||$e[l]&&$e[l][h]},bs=ye,Fe=bs({}.isPrototypeOf),Pn=typeof navigator!="undefined"&&String(navigator.userAgent)||"",fo=St,An=Pn,sc=fo.process,Ri=fo.Deno,ld=sc&&sc.versions||Ri&&Ri.version,vi=ld&&ld.v8,rr,wa;vi&&(rr=vi.split("."),wa=rr[0]>0&&rr[0]<4?1:+(rr[0]+rr[1])),!wa&&An&&(rr=An.match(/Edge\/(\d+)/),(!rr||rr[1]>=74)&&(rr=An.match(/Chrome\/(\d+)/),rr&&(wa=+rr[1])));var po=wa,Et=po,Zg=dt,Nu=St,$n=Nu.String,nr=!!Object.getOwnPropertySymbols&&!Zg(function(){var l=Symbol("symbol detection");return!$n(l)||!(Object(l)instanceof Symbol)||!Symbol.sham&&Et&&Et<41}),qt=nr,uc=qt&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Ee=er,Or=Re,_a=Fe,lc=uc,Er=Object,Nr=lc?function(l){return typeof l=="symbol"}:function(l){var h=Ee("Symbol");return Or(h)&&_a(h.prototype,Er(l))},mn=String,De=function(l){try{return mn(l)}catch(h){return"Object"}},Mn=Re,ji=De,ln=TypeError,gn=function(l){if(Mn(l))return l;throw new ln(ji(l)+" is not a function")},$p=gn,ws=Ro,_s=function(l,h){var g=l[h];return ws(g)?void 0:$p(g)},Ru=Ue,cn=Re,jo=be,Mp=TypeError,yn=function(l,h){var g,y;if(h==="string"&&cn(g=l.toString)&&!jo(y=Ru(g,l))||cn(g=l.valueOf)&&!jo(y=Ru(g,l))||h!=="string"&&cn(g=l.toString)&&!jo(y=Ru(g,l)))return y;throw new Mp("Can't convert object to primitive value")},bn={exports:{}},Qg=!0,Kt=St,Rr=Object.defineProperty,ty=function(l,h){try{Rr(Kt,l,{value:h,configurable:!0,writable:!0})}catch(g){Kt[l]=h}return h},Np=St,Rp=ty,ju="__core-js_shared__",cc=Np[ju]||Rp(ju,{}),hc=cc,cd=hc;(bn.exports=function(l,h){return cd[l]||(cd[l]=h!==void 0?h:{})})("versions",[]).push({version:"3.33.2",mode:"pure",copyright:"\xA9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE",source:"https://github.com/zloirock/core-js"});var Ss=bn.exports,ey=ri,Sa=Object,ir=function(l){return Sa(ey(l))},hd=ye,qe=ir,cr=hd({}.hasOwnProperty),or=Object.hasOwn||function(h,g){return cr(qe(h),g)},dd=ye,ks=0,dc=Math.random(),jp=dd(1 .toString),Lo=function(l){return"Symbol("+(l===void 0?"":l)+")_"+jp(++ks+dc,36)},vo=St,ry=Ss,Lu=or,Fu=Lo,fc=nr,fd=uc,Fo=vo.Symbol,pc=ry("wks"),Lp=fd?Fo.for||Fo:Fo&&Fo.withoutSetter||Fu,Ye=function(l){return Lu(pc,l)||(pc[l]=fc&&Lu(Fo,l)?Fo[l]:Lp("Symbol."+l)),pc[l]},ny=Ue,pd=be,Fp=Nr,iy=_s,oy=yn,ay=Ye,sy=TypeError,Yp=ay("toPrimitive"),Bp=function(l,h){if(!pd(l)||Fp(l))return l;var g=iy(l,Yp),y;if(g){if(h===void 0&&(h="default"),y=ny(g,l,h),!pd(y)||Fp(y))return y;throw new sy("Can't convert object to primitive value")}return h===void 0&&(h="number"),oy(l,h)},uy=Bp,ly=Nr,Yo=function(l){var h=uy(l,"string");return ly(h)?h:h+""},Yu=St,Hp=be,vd=Yu.document,cy=Hp(vd)&&Hp(vd.createElement),vc=function(l){return cy?vd.createElement(l):{}},md=je,gd=dt,hy=vc,Li=!md&&!gd(function(){return Object.defineProperty(hy("div"),"a",{get:function(){return 7}}).a!==7}),_r=je,Nn=Ue,Gp=Dt,dy=ei,fy=_e,wn=Yo,de=or,Bu=Li,Ts=Object.getOwnPropertyDescriptor;xe.f=_r?Ts:function(h,g){if(h=fy(h),g=wn(g),Bu)try{return Ts(h,g)}catch(y){}if(de(h,g))return dy(!Nn(Gp.f,h,g),h[g])};var mc=dt,xs=Re,Wp=/#|\.prototype\./,ka=function(l,h){var g=Fi[Os(l)];return g===Hu?!0:g===Ta?!1:xs(h)?mc(h):!!h},Os=ka.normalize=function(l){return String(l).replace(Wp,".").toLowerCase()},Fi=ka.data={},Ta=ka.NATIVE="N",Hu=ka.POLYFILL="P",ni=ka,zp=$u,mi=gn,mo=Wt,gc=zp(zp.bind),Bo=function(l,h){return mi(l),h===void 0?l:mo?gc(l,h):function(){return l.apply(h,arguments)}},jr={},yd=je,py=dt,xa=yd&&py(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Es=be,Oa=String,Ea=TypeError,_n=function(l){if(Es(l))return l;throw new Ea(Oa(l)+" is not an object")},Rt=je,Bt=Li,yc=xa,Da=_n,bd=Yo,Ds=TypeError,bc=Object.defineProperty,Gu=Object.getOwnPropertyDescriptor,Cs="enumerable",Is="configurable",Yi="writable";jr.f=Rt?yc?function(h,g,y){if(Da(h),g=bd(g),Da(y),typeof h=="function"&&g==="prototype"&&"value"in y&&Yi in y&&!y[Yi]){var w=Gu(h,g);w&&w[Yi]&&(h[g]=y.value,y={configurable:Is in y?y[Is]:w[Is],enumerable:Cs in y?y[Cs]:w[Cs],writable:!1})}return bc(h,g,y)}:bc:function(h,g,y){if(Da(h),g=bd(g),Da(y),Bt)try{return bc(h,g,y)}catch(w){}if("get"in y||"set"in y)throw new Ds("Accessors not supported");return"value"in y&&(h[g]=y.value),h};var vy=je,wd=jr,my=ei,Sn=vy?function(l,h,g){return wd.f(l,h,my(1,g))}:function(l,h,g){return l[h]=g,l},Wu=St,wc=Nt,We=$u,Rn=Re,_c=xe.f,zu=ni,Ps=Oe,gy=Bo,gi=Sn,yi=or,Sc=function(l){var h=function(g,y,w){if(this instanceof h){switch(arguments.length){case 0:return new l;case 1:return new l(g);case 2:return new l(g,y)}return new l(g,y,w)}return wc(l,this,arguments)};return h.prototype=l.prototype,h},Mt=function(l,h){var g=l.target,y=l.global,w=l.stat,T=l.proto,I=y?Wu:w?Wu[g]:(Wu[g]||{}).prototype,R=y?Ps:Ps[g]||gi(Ps,g,{})[g],$=R.prototype,B,V,et,Z,rt,xt,Ht,zt,ae;for(Z in h)B=zu(y?Z:g+(w?".":"#")+Z,l.forced),V=!B&&I&&yi(I,Z),xt=R[Z],V&&(l.dontCallGetSet?(ae=_c(I,Z),Ht=ae&&ae.value):Ht=I[Z]),rt=V&&Ht?Ht:h[Z],!(V&&typeof xt==typeof rt)&&(l.bind&&V?zt=gy(rt,Wu):l.wrap&&V?zt=Sc(rt):T&&Rn(rt)?zt=We(rt):zt=rt,(l.sham||rt&&rt.sham||xt&&xt.sham)&&gi(zt,"sham",!0),gi(R,Z,zt),T&&(et=g+"Prototype",yi(Ps,et)||gi(Ps,et,{}),gi(Ps[et],Z,rt),l.real&&$&&(B||!$[Z])&&gi($,Z,rt)))},yy=Mt,kc=je,Ho=jr.f;yy({target:"Object",stat:!0,forced:Object.defineProperty!==Ho,sham:!kc},{defineProperty:Ho});var Tc=Oe,Up=Tc.Object,Vp=nt.exports=function(h,g,y){return Up.defineProperty(h,g,y)};Up.defineProperty.sham&&(Vp.sham=!0);var Bi=nt.exports,_d=Bi,Ca=_d,Uu=Ca,Xp=Uu,by=Xp,Vu=by,xc=Vu,Ia=z(xc),wy=ho,go=Array.isArray||function(h){return wy(h)==="Array"},_y=Math.ceil,Xu=Math.floor,Sd=Math.trunc||function(h){var g=+h;return(g>0?Xu:_y)(g)},qp=Sd,Oc=function(l){var h=+l;return h!==h||h===0?0:qp(h)},yo=Oc,ii=Math.min,Hi=function(l){return l>0?ii(yo(l),9007199254740991):0},kd=Hi,Lr=function(l){return kd(l.length)},Kp=TypeError,Jp=9007199254740991,qu=function(l){if(l>Jp)throw Kp("Maximum allowed index exceeded");return l},bi=Yo,Ku=jr,Sy=ei,As=function(l,h,g){var y=bi(h);y in l?Ku.f(l,y,Sy(0,g)):l[y]=g},Zp=Ye,Pa=Zp("toStringTag"),$s={};$s[Pa]="z";var Ju=String($s)==="[object z]",ky=Ju,Ty=Re,Ec=ho,Qp=Ye,Td=Qp("toStringTag"),Dc=Object,xy=Ec(function(){return arguments}())==="Arguments",Oy=function(l,h){try{return l[h]}catch(g){}},Vr=ky?Ec:function(l){var h,g,y;return l===void 0?"Undefined":l===null?"Null":typeof(g=Oy(h=Dc(l),Td))=="string"?g:xy?Ec(h):(y=Ec(h))==="Object"&&Ty(h.callee)?"Arguments":y},tv=ye,Ey=Re,xd=hc,Dy=tv(Function.toString);Ey(xd.inspectSource)||(xd.inspectSource=function(l){return Dy(l)});var ev=xd.inspectSource,Aa=ye,$a=dt,rv=Re,nv=Vr,Od=er,Go=ev,Zu=function(){},Ms=[],Ns=Od("Reflect","construct"),Qu=/^\s*(?:class|function)\b/,Rs=Aa(Qu.exec),js=!Qu.test(Zu),Gi=function(h){if(!rv(h))return!1;try{return Ns(Zu,Ms,h),!0}catch(g){return!1}},Cc=function(h){if(!rv(h))return!1;switch(nv(h)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return js||!!Rs(Qu,Go(h))}catch(g){return!0}};Cc.sham=!0;var tl=!Ns||$a(function(){var l;return Gi(Gi.call)||!Gi(Object)||!Gi(function(){l=!0})||l})?Cc:Gi,Ic=go,Ed=tl,Dd=be,Ls=Ye,Fs=Ls("species"),iv=Array,Ys=function(l){var h;return Ic(l)&&(h=l.constructor,Ed(h)&&(h===iv||Ic(h.prototype))?h=void 0:Dd(h)&&(h=h[Fs],h===null&&(h=void 0))),h===void 0?iv:h},Cy=Ys,el=function(l,h){return new(Cy(l))(h===0?0:h)},Iy=dt,ov=Ye,Py=po,av=ov("species"),Wi=function(l){return Py>=51||!Iy(function(){var h=[],g=h.constructor={};return g[av]=function(){return{foo:1}},h[l](Boolean).foo!==1})},sv=Mt,Ay=dt,Cd=go,rl=be,uv=ir,$y=Lr,At=qu,Se=As,Id=el,My=Wi,Ma=Ye,Bs=po,nl=Ma("isConcatSpreadable"),Pd=Bs>=51||!Ay(function(){var l=[];return l[nl]=!1,l.concat()[0]!==l}),lv=function(l){if(!rl(l))return!1;var h=l[nl];return h!==void 0?!!h:Cd(l)},cv=!Pd||!My("concat");sv({target:"Array",proto:!0,arity:1,forced:cv},{concat:function(h){var g=uv(this),y=Id(g,0),w=0,T,I,R,$,B;for(T=-1,R=arguments.length;T<R;T++)if(B=T===-1?g:arguments[T],lv(B))for($=$y(B),At(w+$),I=0;I<$;I++,w++)I in B&&Se(y,w,B[I]);else At(w+1),Se(y,w++,B);return y.length=w,y}});var il=Vr,Wo=String,oi=function(l){if(il(l)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return Wo(l)},ol={},Ny=Oc,Na=Math.max,Pc=Math.min,Ac=function(l,h){var g=Ny(l);return g<0?Na(g+h,0):Pc(g,h)},Ad=_e,zo=Ac,hv=Lr,bo=function(l){return function(h,g,y){var w=Ad(h),T=hv(w),I=zo(y,T),R;if(l&&g!==g){for(;T>I;)if(R=w[I++],R!==R)return!0}else for(;T>I;I++)if((l||I in w)&&w[I]===g)return l||I||0;return!l&&-1}},Ry={includes:bo(!0),indexOf:bo(!1)},Hs={},ct=ye,$d=or,dv=_e,wi=Ry.indexOf,fe=Hs,zi=ct([].push),Md=function(l,h){var g=dv(l),y=0,w=[],T;for(T in g)!$d(fe,T)&&$d(g,T)&&zi(w,T);for(;h.length>y;)$d(g,T=h[y++])&&(~wi(w,T)||zi(w,T));return w},Ra=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Gs=Md,jy=Ra,wo=Object.keys||function(h){return Gs(h,jy)},al=je,$c=xa,Ui=jr,sl=_n,fv=_e,Ly=wo;ol.f=al&&!$c?Object.defineProperties:function(h,g){sl(h);for(var y=fv(g),w=Ly(g),T=w.length,I=0,R;T>I;)Ui.f(h,R=w[I++],y[R]);return h};var ar=er,Nd=ar("document","documentElement"),Fy=Ss,pv=Lo,ul=Fy("keys"),Ws=function(l){return ul[l]||(ul[l]=pv(l))},_o=_n,vv=ol,mv=Ra,gv=Hs,Yy=Nd,By=vc,Hy=Ws,Rd=">",Dr="<",ja="prototype",Mc="script",yv=Hy("IE_PROTO"),zs=function(){},So=function(l){return Dr+Mc+Rd+l+Dr+"/"+Mc+Rd},bv=function(l){l.write(So("")),l.close();var h=l.parentWindow.Object;return l=null,h},jd=function(){var l=By("iframe"),h="java"+Mc+":",g;return l.style.display="none",Yy.appendChild(l),l.src=String(h),g=l.contentWindow.document,g.open(),g.write(So("document.F=Object")),g.close(),g.F},Us,Nc=function(){try{Us=new ActiveXObject("htmlfile")}catch(h){}Nc=typeof document!="undefined"?document.domain&&Us?bv(Us):jd():bv(Us);for(var l=mv.length;l--;)delete Nc[ja][mv[l]];return Nc()};gv[yv]=!0;var Uo=Object.create||function(h,g){var y;return h!==null?(zs[ja]=_o(h),y=new zs,zs[ja]=null,y[yv]=h):y=Nc(),g===void 0?y:vv.f(y,g)},Vs={},Ld=Md,wv=Ra,Cr=wv.concat("length","prototype");Vs.f=Object.getOwnPropertyNames||function(h){return Ld(h,Cr)};var kn={},jn=Ac,Gy=Lr,ll=As,Wy=Array,Fd=Math.max,Vo=function(l,h,g){for(var y=Gy(l),w=jn(h,y),T=jn(g===void 0?y:g,y),I=Wy(Fd(T-w,0)),R=0;w<T;w++,R++)ll(I,R,l[w]);return I.length=R,I},La=ho,Tn=_e,Ut=Vs.f,c=Vo,b=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],k=function(l){try{return Ut(l)}catch(h){return c(b)}};kn.f=function(h){return b&&La(h)==="Window"?k(h):Ut(Tn(h))};var D={};D.f=Object.getOwnPropertySymbols;var M=Sn,W=function(l,h,g,y){return y&&y.enumerable?l[h]=g:M(l,h,g),l},it=jr,vt=function(l,h,g){return it.f(l,h,g)},Ft={},oe=Ye;Ft.f=oe;var pr=Oe,_i=or,Xo=Ft,zy=jr.f,Ve=function(l){var h=pr.Symbol||(pr.Symbol={});_i(h,l)||zy(h,l,{value:Xo.f(l)})},y_=Ue,WT=er,b_=Ye,w_=W,Xs=function(){var l=WT("Symbol"),h=l&&l.prototype,g=h&&h.valueOf,y=b_("toPrimitive");h&&!h[y]&&w_(h,y,function(w){return y_(g,this)},{arity:1})},__=Ju,S_=Vr,k_=__?{}.toString:function(){return"[object "+S_(this)+"]"},Uy=Ju,zT=jr.f,Vy=Sn,_v=or,Sv=k_,UT=Ye,T_=UT("toStringTag"),qs=function(l,h,g,y){if(l){var w=g?l:l.prototype;_v(w,T_)||zT(w,T_,{configurable:!0,value:h}),y&&!Uy&&Vy(w,"toString",Sv)}},Xy=St,VT=Re,Vi=Xy.WeakMap,Fa=VT(Vi)&&/native code/.test(String(Vi)),Ir=Fa,Yd=St,Bd=be,XT=Sn,kv=or,Si=hc,Ks=Ws,ko=Hs,qo="Object already initialized",Rc=Yd.TypeError,Hd=Yd.WeakMap,cl,To,Ko,jc=function(l){return Ko(l)?To(l):cl(l,{})},x_=function(l){return function(h){var g;if(!Bd(h)||(g=To(h)).type!==l)throw new Rc("Incompatible receiver, "+l+" required");return g}};if(Ir||Si.state){var pe=Si.state||(Si.state=new Hd);pe.get=pe.get,pe.has=pe.has,pe.set=pe.set,cl=function(l,h){if(pe.has(l))throw new Rc(qo);return h.facade=l,pe.set(l,h),h},To=function(l){return pe.get(l)||{}},Ko=function(l){return pe.has(l)}}else{var Jo=Ks("state");ko[Jo]=!0,cl=function(l,h){if(kv(l,Jo))throw new Rc(qo);return h.facade=l,XT(l,Jo,h),h},To=function(l){return kv(l,Jo)?l[Jo]:{}},Ko=function(l){return kv(l,Jo)}}var Js={set:cl,get:To,has:Ko,enforce:jc,getterFor:x_},Lc=Bo,Tv=ye,qy=ba,Gd=ir,Zs=Lr,xv=el,Ky=Tv([].push),Zo=function(l){var h=l===1,g=l===2,y=l===3,w=l===4,T=l===6,I=l===7,R=l===5||T;return function($,B,V,et){for(var Z=Gd($),rt=qy(Z),xt=Lc(B,V),Ht=Zs(rt),zt=0,ae=et||xv,he=h?ae($,Ht):g||I?ae($,0):void 0,Qn,Gr;Ht>zt;zt++)if((R||zt in rt)&&(Qn=rt[zt],Gr=xt(Qn,zt,Z),l))if(h)he[zt]=Gr;else if(Gr)switch(l){case 3:return!0;case 5:return Qn;case 6:return zt;case 2:Ky(he,Qn)}else switch(l){case 4:return!1;case 7:Ky(he,Qn)}return T?-1:y||w?w:he}},hl={forEach:Zo(0),map:Zo(1),filter:Zo(2),some:Zo(3),every:Zo(4),find:Zo(5),findIndex:Zo(6),filterReject:Zo(7)},Fc=Mt,dl=St,Jy=Ue,O_=ye,fl=je,Yc=nr,Ov=dt,Fr=or,Ev=Fe,Zy=_n,Dv=_e,Qy=Yo,qT=oi,tb=ei,Bc=Uo,Hc=wo,Xr=Vs,Gc=kn,Wd=D,eb=xe,rb=jr,Xi=ol,Qs=Dt,Wc=W,E_=vt,zd=Ss,zc=Ws,Ya=Hs,Cv=Lo,D_=Ye,nb=Ft,Ba=Ve,Ud=Xs,KT=qs,xo=Js,Ha=hl.forEach,hn=zc("hidden"),pl="Symbol",vl="prototype",C_=xo.set,ib=xo.getterFor(pl),ki=Object[vl],Ga=dl.Symbol,ml=Ga&&Ga[vl],I_=dl.RangeError,JT=dl.TypeError,ob=dl.QObject,ab=eb.f,tu=rb.f,P_=Gc.f,sb=Qs.f,A_=O_([].push),Ln=zd("symbols"),Uc=zd("op-symbols"),$_=zd("wks"),ub=!ob||!ob[vl]||!ob[vl].findChild,gl=function(l,h,g){var y=ab(ki,h);y&&delete ki[h],tu(l,h,g),y&&l!==ki&&tu(ki,h,y)},Vc=fl&&Ov(function(){return Bc(tu({},"a",{get:function(){return tu(this,"a",{value:7}).a}})).a!==7})?gl:tu,Iv=function(l,h){var g=Ln[l]=Bc(ml);return C_(g,{type:pl,tag:l,description:h}),fl||(g.description=h),g},Vd=function(h,g,y){h===ki&&Vd(Uc,g,y),Zy(h);var w=Qy(g);return Zy(y),Fr(Ln,w)?(y.enumerable?(Fr(h,hn)&&h[hn][w]&&(h[hn][w]=!1),y=Bc(y,{enumerable:tb(0,!1)})):(Fr(h,hn)||tu(h,hn,tb(1,{})),h[hn][w]=!0),Vc(h,w,y)):tu(h,w,y)},Pv=function(h,g){Zy(h);var y=Dv(g),w=Hc(y).concat(fb(y));return Ha(w,function(T){(!fl||Jy(cb,y,T))&&Vd(h,T,y[T])}),h},lb=function(h,g){return g===void 0?Bc(h):Pv(Bc(h),g)},cb=function(h){var g=Qy(h),y=Jy(sb,this,g);return this===ki&&Fr(Ln,g)&&!Fr(Uc,g)?!1:y||!Fr(this,g)||!Fr(Ln,g)||Fr(this,hn)&&this[hn][g]?y:!0},hb=function(h,g){var y=Dv(h),w=Qy(g);if(!(y===ki&&Fr(Ln,w)&&!Fr(Uc,w))){var T=ab(y,w);return T&&Fr(Ln,w)&&!(Fr(y,hn)&&y[hn][w])&&(T.enumerable=!0),T}},db=function(h){var g=P_(Dv(h)),y=[];return Ha(g,function(w){!Fr(Ln,w)&&!Fr(Ya,w)&&A_(y,w)}),y},fb=function(l){var h=l===ki,g=P_(h?Uc:Dv(l)),y=[];return Ha(g,function(w){Fr(Ln,w)&&(!h||Fr(ki,w))&&A_(y,Ln[w])}),y};Yc||(Ga=function(){if(Ev(ml,this))throw new JT("Symbol is not a constructor");var h=!arguments.length||arguments[0]===void 0?void 0:qT(arguments[0]),g=Cv(h),y=function(w){var T=this===void 0?dl:this;T===ki&&Jy(y,Uc,w),Fr(T,hn)&&Fr(T[hn],g)&&(T[hn][g]=!1);var I=tb(1,w);try{Vc(T,g,I)}catch(R){if(!(R instanceof I_))throw R;gl(T,g,I)}};return fl&&ub&&Vc(ki,g,{configurable:!0,set:y}),Iv(g,h)},ml=Ga[vl],Wc(ml,"toString",function(){return ib(this).tag}),Wc(Ga,"withoutSetter",function(l){return Iv(Cv(l),l)}),Qs.f=cb,rb.f=Vd,Xi.f=Pv,eb.f=hb,Xr.f=Gc.f=db,Wd.f=fb,nb.f=function(l){return Iv(D_(l),l)},fl&&E_(ml,"description",{configurable:!0,get:function(){return ib(this).description}})),Fc({global:!0,constructor:!0,wrap:!0,forced:!Yc,sham:!Yc},{Symbol:Ga}),Ha(Hc($_),function(l){Ba(l)}),Fc({target:pl,stat:!0,forced:!Yc},{useSetter:function(){ub=!0},useSimple:function(){ub=!1}}),Fc({target:"Object",stat:!0,forced:!Yc,sham:!fl},{create:lb,defineProperty:Vd,defineProperties:Pv,getOwnPropertyDescriptor:hb}),Fc({target:"Object",stat:!0,forced:!Yc},{getOwnPropertyNames:db}),Ud(),KT(Ga,pl),Ya[hn]=!0;var ZT=nr,Xc=ZT&&!!Symbol.for&&!!Symbol.keyFor,pb=Mt,Av=er,M_=or,Xd=oi,N_=Ss,QT=Xc,vb=N_("string-to-symbol-registry"),eu=N_("symbol-to-string-registry");pb({target:"Symbol",stat:!0,forced:!QT},{for:function(l){var h=Xd(l);if(M_(vb,h))return vb[h];var g=Av("Symbol")(h);return vb[h]=g,eu[g]=h,g}});var qd=Mt,R_=or,mb=Nr,j_=De,tx=Ss,L_=Xc,gb=tx("symbol-to-string-registry");qd({target:"Symbol",stat:!0,forced:!L_},{keyFor:function(h){if(!mb(h))throw new TypeError(j_(h)+" is not a symbol");if(R_(gb,h))return gb[h]}});var F_=ye,qc=F_([].slice),Y_=ye,B_=go,ex=Re,yb=ho,rx=oi,H_=Y_([].push),nx=function(l){if(ex(l))return l;if(B_(l)){for(var h=l.length,g=[],y=0;y<h;y++){var w=l[y];typeof w=="string"?H_(g,w):(typeof w=="number"||yb(w)==="Number"||yb(w)==="String")&&H_(g,rx(w))}var T=g.length,I=!0;return function(R,$){if(I)return I=!1,$;if(B_(this))return $;for(var B=0;B<T;B++)if(g[B]===R)return $}}},ix=Mt,ru=er,bb=Nt,G_=Ue,Kc=ye,yl=dt,$v=Re,W_=Nr,wb=qc,ox=nx,_b=nr,Sb=String,Qo=ru("JSON","stringify"),Mv=Kc(/./.exec),z_=Kc("".charAt),Nv=Kc("".charCodeAt),kb=Kc("".replace),Tb=Kc(1 .toString),Jc=/[\uD800-\uDFFF]/g,xb=/^[\uD800-\uDBFF]$/,Rv=/^[\uDC00-\uDFFF]$/,jv=!_b||yl(function(){var l=ru("Symbol")("stringify detection");return Qo([l])!=="[null]"||Qo({a:l})!=="{}"||Qo(Object(l))!=="{}"}),Lv=yl(function(){return Qo("\uDF06\uD834")!=='"\\udf06\\ud834"'||Qo("\uDEAD")!=='"\\udead"'}),ax=function(l,h){var g=wb(arguments),y=ox(h);if(!(!$v(y)&&(l===void 0||W_(l))))return g[1]=function(w,T){if($v(y)&&(T=G_(y,this,Sb(w),T)),!W_(T))return T},bb(Qo,null,g)},U_=function(l,h,g){var y=z_(g,h-1),w=z_(g,h+1);return Mv(xb,l)&&!Mv(Rv,w)||Mv(Rv,l)&&!Mv(xb,y)?"\\u"+Tb(Nv(l,0),16):l};Qo&&ix({target:"JSON",stat:!0,arity:3,forced:jv||Lv},{stringify:function(h,g,y){var w=wb(arguments),T=bb(jv?ax:Qo,null,w);return Lv&&typeof T=="string"?kb(T,Jc,U_):T}});var Ob=Mt,sx=nr,Zc=dt,Fv=D,ux=ir,V_=!sx||Zc(function(){Fv.f(1)});Ob({target:"Object",stat:!0,forced:V_},{getOwnPropertySymbols:function(h){var g=Fv.f;return g?g(ux(h)):[]}});var lx=Ve;lx("asyncIterator");var cx=Ve;cx("hasInstance");var hx=Ve;hx("isConcatSpreadable");var dx=Ve;dx("iterator");var X_=Ve;X_("match");var q_=Ve;q_("matchAll");var Eb=Ve;Eb("replace");var K_=Ve;K_("search");var Db=Ve;Db("species");var J_=Ve;J_("split");var fx=Ve,px=Xs;fx("toPrimitive"),px();var Z_=er,Q_=Ve,vx=qs;Q_("toStringTag"),vx(Z_("Symbol"),"Symbol");var mx=Ve;mx("unscopables");var Cb=St,gx=qs;gx(Cb.JSON,"JSON",!0);var yx=Oe,t1=yx.Symbol,bl={},Kd=je,bx=or,Jd=Function.prototype,Ib=Kd&&Object.getOwnPropertyDescriptor,wl=bx(Jd,"name"),Zd=wl&&function(){}.name==="something",Pb=wl&&(!Kd||Kd&&Ib(Jd,"name").configurable),wx={EXISTS:wl,PROPER:Zd,CONFIGURABLE:Pb},Yv=dt,Qc=!Yv(function(){function l(){}return l.prototype.constructor=null,Object.getPrototypeOf(new l)!==l.prototype}),e1=or,r1=Re,Ab=ir,n1=Ws,Bv=Qc,nu=n1("IE_PROTO"),Qd=Object,_x=Qd.prototype,Hv=Bv?Qd.getPrototypeOf:function(l){var h=Ab(l);if(e1(h,nu))return h[nu];var g=h.constructor;return r1(g)&&h instanceof g?g.prototype:h instanceof Qd?_x:null},Sx=dt,kx=Re,i1=be,o1=Uo,Gv=Hv,$b=W,a1=Ye,th=a1("iterator"),Mb=!1,ta,Wv,Nb;[].keys&&(Nb=[].keys(),"next"in Nb?(Wv=Gv(Gv(Nb)),Wv!==Object.prototype&&(ta=Wv)):Mb=!0);var s1=!i1(ta)||Sx(function(){var l={};return ta[th].call(l)!==l});s1?ta={}:ta=o1(ta),kx(ta[th])||$b(ta,th,function(){return this});var Rb={IteratorPrototype:ta,BUGGY_SAFARI_ITERATORS:Mb},u1=Rb.IteratorPrototype,Tx=Uo,eh=ei,l1=qs,c1=bl,h1=function(){return this},_l=function(l,h,g,y){var w=h+" Iterator";return l.prototype=Tx(u1,{next:eh(+!y,g)}),l1(l,w,!1,!0),c1[w]=h1,l},Fn=ye,jb=gn,d1=function(l,h,g){try{return Fn(jb(Object.getOwnPropertyDescriptor(l,h)[g]))}catch(y){}},xx=Re,f1=String,zv=TypeError,p1=function(l){if(typeof l=="object"||xx(l))return l;throw new zv("Can't set "+f1(l)+" as a prototype")},v1=d1,m1=_n,Ox=p1,Wa=Object.setPrototypeOf||("__proto__"in{}?function(){var l=!1,h={},g;try{g=v1(Object.prototype,"__proto__","set"),g(h,[]),l=h instanceof Array}catch(y){}return function(w,T){return m1(w),Ox(T),l?g(w,T):w.__proto__=T,w}}():void 0),Uv=Mt,g1=Ue,Vv=wx,Ex=_l,qr=Hv,Dx=qs,y1=W,Cx=Ye,Xv=bl,qv=Rb,Sl=Vv.PROPER;Vv.CONFIGURABLE,qv.IteratorPrototype;var tf=qv.BUGGY_SAFARI_ITERATORS,Lb=Cx("iterator"),b1="keys",ef="values",w1="entries",Fb=function(){return this},Kv=function(l,h,g,y,w,T,I){Ex(g,h,y);var R=function(ae){if(ae===w&&Z)return Z;if(!tf&&ae&&ae in V)return V[ae];switch(ae){case b1:return function(){return new g(this,ae)};case ef:return function(){return new g(this,ae)};case w1:return function(){return new g(this,ae)}}return function(){return new g(this)}},$=h+" Iterator",B=!1,V=l.prototype,et=V[Lb]||V["@@iterator"]||w&&V[w],Z=!tf&&et||R(w),rt=h==="Array"&&V.entries||et,xt,Ht,zt;if(rt&&(xt=qr(rt.call(new l)),xt!==Object.prototype&&xt.next&&(Dx(xt,$,!0,!0),Xv[$]=Fb)),Sl&&w===ef&&et&&et.name!==ef&&(B=!0,Z=function(){return g1(et,this)}),w)if(Ht={values:R(ef),keys:T?Z:R(b1),entries:R(w1)},I)for(zt in Ht)(tf||B||!(zt in V))&&y1(V,zt,Ht[zt]);else Uv({target:h,proto:!0,forced:tf||B},Ht);return I&&V[Lb]!==Z&&y1(V,Lb,Z,{name:w}),Xv[h]=Z,Ht},Yb=function(l,h){return{value:l,done:h}},Jv=_e,rh=bl,_1=Js;jr.f;var Jt=Kv,nh=Yb,S1="Array Iterator",rf=_1.set,k1=_1.getterFor(S1);Jt(Array,"Array",function(l,h){rf(this,{type:S1,target:Jv(l),index:0,kind:h})},function(){var l=k1(this),h=l.target,g=l.index++;if(!h||g>=h.length)return l.target=void 0,nh(void 0,!0);switch(l.kind){case"keys":return nh(g,!1);case"values":return nh(h[g],!1)}return nh([g,h[g]],!1)},"values"),rh.Arguments=rh.Array;var Ix={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},Px=Ix,T1=St,x1=Vr,Ce=Sn,me=bl,Bb=Ye,O1=Bb("toStringTag");for(var nf in Px){var E1=T1[nf],of=E1&&E1.prototype;of&&x1(of)!==O1&&Ce(of,O1,nf),me[nf]=me.Array}var ai=t1,D1=ai,Ax=Ye,Hb=jr.f,C1=Ax("metadata"),af=Function.prototype;af[C1]===void 0&&Hb(af,C1,{value:null});var $x=Ve;$x("asyncDispose");var Mx=Ve;Mx("dispose");var Gb=Ve;Gb("metadata");var Wb=D1,Nx=Wb,zb=er,Rx=ye,Zv=zb("Symbol"),Ub=Zv.keyFor,Pr=Rx(Zv.prototype.valueOf),I1=Zv.isRegisteredSymbol||function(h){try{return Ub(Pr(h))!==void 0}catch(g){return!1}},jx=Mt,Lx=I1;jx({target:"Symbol",stat:!0},{isRegisteredSymbol:Lx});for(var Qv=Ss,P1=er,Vb=ye,Fx=Nr,A1=Ye,ih=P1("Symbol"),si=ih.isWellKnownSymbol,ui=P1("Object","getOwnPropertyNames"),tm=Vb(ih.prototype.valueOf),$1=Qv("wks"),oh=0,M1=ui(ih),Yx=M1.length;oh<Yx;oh++)try{var Xb=M1[oh];Fx(ih[Xb])&&A1(Xb)}catch(l){}var sf=function(h){if(si&&si(h))return!0;try{for(var g=tm(h),y=0,w=ui($1),T=w.length;y<T;y++)if($1[w[y]]==g)return!0}catch(I){}return!1},N1=Mt,Bx=sf;N1({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:Bx});var R1=Ve;R1("matcher");var Be=Ve;Be("observable");var qb=Mt,Hx=I1;qb({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:Hx});var em=Mt,ce=sf;em({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:ce});var Kb=Ve;Kb("metadataKey");var at=Ve;at("patternMatch");var Jb=Ve;Jb("replaceAll");var Gx=Nx,Wx=Gx,Zb=Wx,iu=z(Zb),Qb=ye,zx=Oc,j1=oi,L1=ri,F1=Qb("".charAt),Y1=Qb("".charCodeAt),B1=Qb("".slice),t0=function(l){return function(h,g){var y=j1(L1(h)),w=zx(g),T=y.length,I,R;return w<0||w>=T?l?"":void 0:(I=Y1(y,w),I<55296||I>56319||w+1===T||(R=Y1(y,w+1))<56320||R>57343?l?F1(y,w):I:l?B1(y,w,w+2):(I-55296<<10)+(R-56320)+65536)}},H1={codeAt:t0(!1),charAt:t0(!0)},G1=H1.charAt,uf=oi,rm=Js,W1=Kv,ah=Yb,nm="String Iterator",z1=rm.set,Yn=rm.getterFor(nm);W1(String,"String",function(l){z1(this,{type:nm,string:uf(l),index:0})},function(){var h=Yn(this),g=h.string,y=h.index,w;return y>=g.length?ah(void 0,!0):(w=G1(g,y),h.index+=w.length,ah(w,!1))});var e0=Ft,Ux=e0.f("iterator"),Vx=Ux,ou=Vx,Xx=ou,U1=Xx,qx=U1,Kx=qx,V1=Kx,Jx=z(V1);function sh(l){"@babel/helpers - typeof";return sh=typeof iu=="function"&&typeof Jx=="symbol"?function(h){return typeof h}:function(h){return h&&typeof iu=="function"&&h.constructor===iu&&h!==iu.prototype?"symbol":typeof h},sh(l)}var lf=Ft,X1=lf.f("toPrimitive"),Zx=X1,Ot=Zx,Bn=Ot,r0=Bn,Qx=r0,q1=Qx,im=q1,n0=z(im);function tO(l,h){if(sh(l)!=="object"||l===null)return l;var g=l[n0];if(g!==void 0){var y=g.call(l,h||"default");if(sh(y)!=="object")return y;throw new TypeError("@@toPrimitive must return a primitive value.")}return(h==="string"?String:Number)(l)}function K1(l){var h=tO(l,"string");return sh(h)==="symbol"?h:String(h)}function J1(l,h){for(var g=0;g<h.length;g++){var y=h[g];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Ia(l,K1(y.key),y)}}function kl(l,h,g){return h&&J1(l.prototype,h),g&&J1(l,g),Ia(l,"prototype",{writable:!1}),l}function qi(l,h,g){return h=K1(h),h in l?Ia(l,h,{value:g,enumerable:!0,configurable:!0,writable:!0}):l[h]=g,l}var uh=ye,eO=gn,rO=be,ve=or,om=qc,i0=Wt,cf=Function,Z1=uh([].concat),nO=uh([].join),am={},o0=function(l,h,g){if(!ve(am,h)){for(var y=[],w=0;w<h;w++)y[w]="a["+w+"]";am[h]=cf("C,a","return new C("+nO(y,",")+")")}return am[h](l,g)},sm=i0?cf.bind:function(h){var g=eO(this),y=g.prototype,w=om(arguments,1),T=function(){var R=Z1(w,om(arguments));return this instanceof T?o0(g,R.length,R):g.apply(h,R)};return rO(y)&&(T.prototype=y),T},Hn=Mt,dn=sm;Hn({target:"Function",proto:!0,forced:Function.bind!==dn},{bind:dn});var hf=St,iO=Oe,Yr=function(l,h){var g=iO[l+"Prototype"],y=g&&g[h];if(y)return y;var w=hf[l],T=w&&w.prototype;return T&&T[h]},a0=Yr,s0=a0("Function","bind"),um=Fe,df=s0,u0=Function.prototype,oO=function(l){var h=l.bind;return l===u0||um(u0,l)&&h===u0.bind?df:h},aO=oO,l0=aO,sO=l0,za=z(sO),Q1=gn,Gn=ir,uO=ba,ff=Lr,pf=TypeError,tS=function(l){return function(h,g,y,w){Q1(g);var T=Gn(h),I=uO(T),R=ff(T),$=l?R-1:0,B=l?-1:1;if(y<2)for(;;){if($ in I){w=I[$],$+=B;break}if($+=B,l?$<0:R<=$)throw new pf("Reduce of empty array with no initial value")}for(;l?$>=0:R>$;$+=B)$ in I&&(w=g(w,I[$],$,T));return w}},lm={left:tS(!1),right:tS(!0)},lO=dt,cm=function(l,h){var g=[][l];return!!g&&lO(function(){g.call(null,h||function(){return 1},1)})},cO=St,eS=ho,lh=eS(cO.process)==="process",c0=Mt,hO=lm.left,h0=cm,ea=po,d0=lh,dO=!d0&&ea>79&&ea<83,fO=dO||!h0("reduce");c0({target:"Array",proto:!0,forced:fO},{reduce:function(h){var g=arguments.length;return hO(this,h,g,g>1?arguments[1]:void 0)}});var rS=Yr,pO=rS("Array","reduce"),vO=Fe,f0=pO,vf=Array.prototype,nS=function(l){var h=l.reduce;return l===vf||vO(vf,l)&&h===vf.reduce?f0:h},Br=nS,hm=Br,mO=hm,p0=z(mO),gO=Mt,yO=hl.filter,bO=Wi,wO=bO("filter");gO({target:"Array",proto:!0,forced:!wO},{filter:function(h){return yO(this,h,arguments.length>1?arguments[1]:void 0)}});var iS=Yr,_O=iS("Array","filter"),SO=Fe,kO=_O,v0=Array.prototype,m0=function(l){var h=l.filter;return l===v0||SO(v0,l)&&h===v0.filter?kO:h},TO=m0,g0=TO,xO=g0,Kr=z(xO),oS=Mt,y0=hl.map,b0=Wi,aS=b0("map");oS({target:"Array",proto:!0,forced:!aS},{map:function(h){return y0(this,h,arguments.length>1?arguments[1]:void 0)}});var w0=Yr,OO=w0("Array","map"),Jr=Fe,_0=OO,Tl=Array.prototype,S0=function(l){var h=l.map;return l===Tl||Jr(Tl,l)&&h===Tl.map?_0:h},EO=S0,DO=EO,sS=DO,Zr=z(sS),k0=go,CO=Lr,IO=qu,uS=Bo,T0=function(l,h,g,y,w,T,I,R){for(var $=w,B=0,V=I?uS(I,R):!1,et,Z;B<y;)B in g&&(et=V?V(g[B],B,h):g[B],T>0&&k0(et)?(Z=CO(et),$=T0(l,h,et,Z,$,T-1)-1):(IO($+1),l[$]=et),$++),B++;return $},PO=T0,x0=Mt,AO=PO,lS=gn,$O=ir,cS=Lr,MO=el;x0({target:"Array",proto:!0},{flatMap:function(h){var g=$O(this),y=cS(g),w;return lS(h),w=MO(g,0),w.length=AO(w,g,g,y,0,1,h,arguments.length>1?arguments[1]:void 0),w}});var ch=Yr,NO=ch("Array","flatMap"),RO=Fe,jO=NO,O0=Array.prototype,LO=function(l){var h=l.flatMap;return l===O0||RO(O0,l)&&h===O0.flatMap?jO:h},hS=LO,E0=hS,FO=E0,YO=z(FO);function BO(l){return new GO(l)}var HO=function(){function l(h,g,y){var w,T,I;L(this,l),qi(this,"_listeners",{add:za(w=this._add).call(w,this),remove:za(T=this._remove).call(T,this),update:za(I=this._update).call(I,this)}),this._source=h,this._transformers=g,this._target=y}return kl(l,[{key:"all",value:function(){return this._target.update(this._transformItems(this._source.get())),this}},{key:"start",value:function(){return this._source.on("add",this._listeners.add),this._source.on("remove",this._listeners.remove),this._source.on("update",this._listeners.update),this}},{key:"stop",value:function(){return this._source.off("add",this._listeners.add),this._source.off("remove",this._listeners.remove),this._source.off("update",this._listeners.update),this}},{key:"_transformItems",value:function(g){var y;return p0(y=this._transformers).call(y,function(w,T){return T(w)},g)}},{key:"_add",value:function(g,y){y!=null&&this._target.add(this._transformItems(this._source.get(y.items)))}},{key:"_update",value:function(g,y){y!=null&&this._target.update(this._transformItems(this._source.get(y.items)))}},{key:"_remove",value:function(g,y){y!=null&&this._target.remove(this._transformItems(y.oldData))}}]),l}(),GO=function(){function l(h){L(this,l),qi(this,"_transformers",[]),this._source=h}return kl(l,[{key:"filter",value:function(g){return this._transformers.push(function(y){return Kr(y).call(y,g)}),this}},{key:"map",value:function(g){return this._transformers.push(function(y){return Zr(y).call(y,g)}),this}},{key:"flatMap",value:function(g){return this._transformers.push(function(y){return YO(y).call(y,g)}),this}},{key:"to",value:function(g){return new HO(this._source,this._transformers,g)}}]),l}(),WO=Ue,dS=_n,fS=_s,D0=function(l,h,g){var y,w;dS(l);try{if(y=fS(l,"return"),!y){if(h==="throw")throw g;return g}y=WO(y,l)}catch(T){w=!0,y=T}if(h==="throw")throw g;if(w)throw y;return dS(y),g},zO=_n,C0=D0,I0=function(l,h,g,y){try{return y?h(zO(g)[0],g[1]):h(g)}catch(w){C0(l,"throw",w)}},pS=Ye,vS=bl,P0=pS("iterator"),UO=Array.prototype,A0=function(l){return l!==void 0&&(vS.Array===l||UO[P0]===l)},$0=Vr,au=_s,Ti=Ro,Ki=bl,hh=Ye,su=hh("iterator"),Qr=function(l){if(!Ti(l))return au(l,su)||au(l,"@@iterator")||Ki[$0(l)]},dm=Ue,VO=gn,uu=_n,xl=De,fm=Qr,dh=TypeError,pm=function(l,h){var g=arguments.length<2?fm(l):h;if(VO(g))return uu(dm(g,l));throw new dh(xl(l)+" is not iterable")},vm=Bo,mS=Ue,gS=ir,mm=I0,Ol=A0,mf=tl,fh=Lr,gf=As,yS=pm,XO=Qr,bS=Array,yf=function(h){var g=gS(h),y=mf(this),w=arguments.length,T=w>1?arguments[1]:void 0,I=T!==void 0;I&&(T=vm(T,w>2?arguments[2]:void 0));var R=XO(g),$=0,B,V,et,Z,rt,xt;if(R&&!(this===bS&&Ol(R)))for(Z=yS(g,R),rt=Z.next,V=y?new this:[];!(et=mS(rt,Z)).done;$++)xt=I?mm(Z,T,[et.value,$],!0):et.value,gf(V,$,xt);else for(B=fh(g),V=y?new this(B):bS(B);B>$;$++)xt=I?T(g[$],$):g[$],gf(V,$,xt);return V.length=$,V},M0=Ye,wS=M0("iterator"),tn=!1;try{var Ar=0,Wn={next:function(){return{done:!!Ar++}},return:function(){tn=!0}};Wn[wS]=function(){return this},Array.from(Wn,function(){throw 2})}catch(l){}var bf=function(l,h){try{if(!h&&!tn)return!1}catch(w){return!1}var g=!1;try{var y={};y[wS]=function(){return{next:function(){return{done:g=!0}}}},l(y)}catch(w){}return g},wf=Mt,El=yf,_f=bf,Dl=!_f(function(l){Array.from(l)});wf({target:"Array",stat:!0,forced:Dl},{from:El});var ra=Oe,Cl=ra.Array.from,gm=Cl,N0=gm,ph=N0,Ji=z(ph),Sf=Qr,Ua=Sf,R0=Ua,j0=R0,Zi=j0,ym=Zi,Oo=ym,kf=Oo,L0=kf,F0=z(L0),qO=L0,bm=z(qO),Il=Mt,Tf=go;Il({target:"Array",stat:!0},{isArray:Tf});var xf=Oe,Ke=xf.Array.isArray,lu=Ke,vr=lu,Y0=vr,KO=Y0,_S=KO,SS=_S,wm=SS,vh=z(wm);function B0(l){if(vh(l))return l}var kS=je,H0=go,JO=TypeError,xi=Object.getOwnPropertyDescriptor,Of=kS&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(l){return l instanceof TypeError}}(),TS=Of?function(l,h){if(H0(l)&&!xi(l,"length").writable)throw new JO("Cannot set read only .length");return l.length=h}:function(l,h){return l.length=h},xS=Mt,ZO=ir,QO=Lr,G0=TS,mh=qu,cu=dt,tE=cu(function(){return[].push.call({length:4294967296},1)!==4294967297}),gh=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(l){return l instanceof TypeError}},OS=tE||!gh();xS({target:"Array",proto:!0,arity:1,forced:OS},{push:function(h){var g=ZO(this),y=QO(g),w=arguments.length;mh(y+w);for(var T=0;T<w;T++)g[y]=arguments[T],y++;return G0(g,y),y}});var Ef=Yr,W0=Ef("Array","push"),hu=Fe,ES=W0,Df=Array.prototype,DS=function(l){var h=l.push;return l===Df||hu(Df,l)&&h===Df.push?ES:h},CS=DS,IS=CS,PS=IS,z0=PS,AS=z0,U0=AS,V0=U0,eE=z(V0);function rE(l,h){var g=l==null?null:typeof iu!="undefined"&&F0(l)||l["@@iterator"];if(g!=null){var y,w,T,I,R=[],$=!0,B=!1;try{if(T=(g=g.call(l)).next,h===0){if(Object(g)!==g)return;$=!1}else for(;!($=(y=T.call(g)).done)&&(eE(R).call(R,y.value),R.length!==h);$=!0);}catch(V){B=!0,w=V}finally{try{if(!$&&g.return!=null&&(I=g.return(),Object(I)!==I))return}finally{if(B)throw w}}return R}}var nE=Mt,X0=go,$S=tl,iE=be,MS=Ac,NS=Lr,q0=_e,RS=As,jS=Ye,K0=Wi,LS=qc,_m=K0("slice"),FS=jS("species"),yh=Array,oE=Math.max;nE({target:"Array",proto:!0,forced:!_m},{slice:function(h,g){var y=q0(this),w=NS(y),T=MS(h,w),I=MS(g===void 0?w:g,w),R,$,B;if(X0(y)&&(R=y.constructor,$S(R)&&(R===yh||X0(R.prototype))?R=void 0:iE(R)&&(R=R[FS],R===null&&(R=void 0)),R===yh||R===void 0))return LS(y,T,I);for($=new(R===void 0?yh:R)(oE(I-T,0)),B=0;T<I;T++,B++)T in y&&RS($,B,y[T]);return $.length=B,$}});var Va=Yr,li=Va("Array","slice"),J0=Fe,aE=li,Cf=Array.prototype,sE=function(l){var h=l.slice;return l===Cf||J0(Cf,l)&&h===Cf.slice?aE:h},Z0=sE,YS=Z0,Sm=YS,uE=Sm,BS=uE,lE=BS,Q0=lE,du=z(Q0),HS=N0,cE=HS,GS=cE,tw=GS,WS=tw,zn=z(WS);function bh(l,h){(h==null||h>l.length)&&(h=l.length);for(var g=0,y=new Array(h);g<h;g++)y[g]=l[g];return y}function ew(l,h){var g;if(l){if(typeof l=="string")return bh(l,h);var y=du(g=Object.prototype.toString.call(l)).call(g,8,-1);if(y==="Object"&&l.constructor&&(y=l.constructor.name),y==="Map"||y==="Set")return zn(l);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return bh(l,h)}}function hE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ci(l,h){return B0(l)||rE(l,h)||ew(l,h)||hE()}function dE(l){if(vh(l))return bh(l)}function zS(l){if(typeof iu!="undefined"&&F0(l)!=null||l["@@iterator"]!=null)return zn(l)}function US(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xn(l){return dE(l)||zS(l)||ew(l)||US()}var fE=D1,wh=z(fE),pE=Yr,vE=pE("Array","concat"),mE=Fe,VS=vE,km=Array.prototype,XS=function(l){var h=l.concat;return l===km||mE(km,l)&&h===km.concat?VS:h},gE=XS,qS=gE,KS=qS,If=z(KS),rw=YS,Pl=z(rw),JS=er,Pf=ye,Xa=Vs,nw=D,iw=_n,Af=Pf([].concat),Tm=JS("Reflect","ownKeys")||function(h){var g=Xa.f(iw(h)),y=nw.f;return y?Af(g,y(h)):g},ow=Mt,aw=Tm;ow({target:"Reflect",stat:!0},{ownKeys:aw});var ZS=Oe,QS=ZS.Reflect.ownKeys,tk=QS,_h=tk,sw=_h,uw=z(sw),yE=vr,fn=z(yE),xm=Mt,bE=ir,$f=wo,wE=dt,_E=wE(function(){$f(1)});xm({target:"Object",stat:!0,forced:_E},{keys:function(h){return $f(bE(h))}});var lw=Oe,cw=lw.Object.keys,SE=cw,kE=SE,Om=kE,Mf=z(Om),ek=hl.forEach,TE=cm,xE=TE("forEach"),OE=xE?[].forEach:function(h){return ek(this,h,arguments.length>1?arguments[1]:void 0)},EE=Mt,Em=OE;EE({target:"Array",proto:!0,forced:[].forEach!==Em},{forEach:Em});var Nf=Yr,rk=Nf("Array","forEach"),nk=rk,ik=nk,DE=Vr,ok=or,ak=Fe,Oi=ik,Rf=Array.prototype,sk={DOMTokenList:!0,NodeList:!0},uk=function(l){var h=l.forEach;return l===Rf||ak(Rf,l)&&h===Rf.forEach||ok(sk,DE(l))?Oi:h},Dm=uk,qa=z(Dm),Ka=Mt,lk=ye,CE=go,IE=lk([].reverse),ck=[1,2];Ka({target:"Array",proto:!0,forced:String(ck)===String(ck.reverse())},{reverse:function(){return CE(this)&&(this.length=this.length),IE(this)}});var Sh=Yr,PE=Sh("Array","reverse"),hk=Fe,Ie=PE,Al=Array.prototype,AE=function(l){var h=l.reverse;return l===Al||hk(Al,l)&&h===Al.reverse?Ie:h},$E=AE,dk=$E,fk=dk,ME=z(fk),jf=De,NE=TypeError,$l=function(l,h){if(!delete l[h])throw new NE("Cannot delete property "+jf(h)+" of "+jf(l))},Lf=Mt,Ff=ir,kh=Ac,Cm=Oc,Yf=Lr,Im=TS,hw=qu,RE=el,Pm=As,Am=$l,jE=Wi,LE=jE("splice"),Un=Math.max,$m=Math.min;Lf({target:"Array",proto:!0,forced:!LE},{splice:function(h,g){var y=Ff(this),w=Yf(y),T=kh(h,w),I=arguments.length,R,$,B,V,et,Z;for(I===0?R=$=0:I===1?(R=0,$=w-T):(R=I-2,$=$m(Un(Cm(g),0),w-T)),hw(w+R-$),B=RE(y,$),V=0;V<$;V++)et=T+V,et in y&&Pm(B,V,y[et]);if(B.length=$,R<$){for(V=T;V<w-$;V++)et=V+$,Z=V+R,et in y?y[Z]=y[et]:Am(y,Z);for(V=w;V>w-$+R;V--)Am(y,V-1)}else if(R>$)for(V=w-$;V>T;V--)et=V+$-1,Z=V+R-1,et in y?y[Z]=y[et]:Am(y,Z);for(V=0;V<R;V++)y[V+T]=arguments[V+2];return Im(y,w-$+R),B}});var FE=Yr,YE=FE("Array","splice"),pk=Fe,vk=YE,Mm=Array.prototype,Ei=function(l){var h=l.splice;return l===Mm||pk(Mm,l)&&h===Mm.splice?vk:h},BE=Ei,HE=BE,Nm=HE,mk=z(Nm),dw=je,fw=ye,pw=Ue,vw=dt,Bf=wo,Eo=D,Qi=Dt,Th=ir,na=ba,to=Object.assign,Hf=Object.defineProperty,GE=fw([].concat),gk=!to||vw(function(){if(dw&&to({b:1},to(Hf({},"a",{enumerable:!0,get:function(){Hf(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var l={},h={},g=Symbol("assign detection"),y="abcdefghijklmnopqrst";return l[g]=7,y.split("").forEach(function(w){h[w]=w}),to({},l)[g]!==7||Bf(to({},h)).join("")!==y})?function(h,g){for(var y=Th(h),w=arguments.length,T=1,I=Eo.f,R=Qi.f;w>T;)for(var $=na(arguments[T++]),B=I?GE(Bf($),I($)):Bf($),V=B.length,et=0,Z;V>et;)Z=B[et++],(!dw||pw(R,$,Z))&&(y[Z]=$[Z]);return y}:to,xh=Mt,ia=gk;xh({target:"Object",stat:!0,arity:2,forced:Object.assign!==ia},{assign:ia});var Ml=Oe,Gf=Ml.Object.assign,Rm=Gf,jm=Rm,mw=jm,Lm=z(mw),Fm=Mt,fu=dt,oa=ir,pu=Hv,Oh=Qc,Ym=fu(function(){pu(1)});Fm({target:"Object",stat:!0,forced:Ym,sham:!Oh},{getPrototypeOf:function(h){return pu(oa(h))}});var yk=Oe,bk=yk.Object.getPrototypeOf,Wf=bk,gw=Wf,Nl=Mt,On=je,Rl=Uo;Nl({target:"Object",stat:!0,sham:!On},{create:Rl});var mr=Oe,hi=mr.Object,Bm=function(h,g){return hi.create(h,g)},zf=Bm,Eh=zf,jl=Eh,Ll=z(jl),Di=Oe,vu=Nt;Di.JSON||(Di.JSON={stringify:JSON.stringify});var Uf=function(h,g,y){return vu(Di.JSON.stringify,null,arguments)},yw=Uf,Dh=yw,eo=Dh,Fl=z(eo),Yl=typeof Bun=="function"&&Bun&&typeof Bun.version=="string",Bl=TypeError,aa=function(l,h){if(l<h)throw new Bl("Not enough arguments");return l},Hm=St,wk=Nt,Gm=Re,Hl=Yl,_k=Pn,Sk=qc,WE=aa,zE=Hm.Function,Vf=/MSIE .\./.test(_k)||Hl&&function(){var l=Hm.Bun.version.split(".");return l.length<3||l[0]==="0"&&(l[1]<3||l[1]==="3"&&l[2]==="0")}(),Ch=function(l,h){var g=h?2:1;return Vf?function(y,w){var T=WE(arguments.length,1)>g,I=Gm(y)?y:zE(y),R=T?Sk(arguments,g):[],$=T?function(){wk(I,this,R)}:I;return h?l($,w):l($)}:l},Gl=Mt,Wm=St,Ih=Ch,Ja=Ih(Wm.setInterval,!0);Gl({global:!0,bind:!0,forced:Wm.setInterval!==Ja},{setInterval:Ja});var kk=Mt,Tk=St,Ph=Ch,ro=Ph(Tk.setTimeout,!0);kk({global:!0,bind:!0,forced:Tk.setTimeout!==ro},{setTimeout:ro});var bw=Oe,Xf=bw.setTimeout,ww=Xf,_w=z(ww),Sw={exports:{}};(function(l){function h(y){if(y)return g(y);this._callbacks=new Map}function g(y){return Object.assign(y,h.prototype),y._callbacks=new Map,y}h.prototype.on=function(y,w){var I;let T=(I=this._callbacks.get(y))!=null?I:[];return T.push(w),this._callbacks.set(y,T),this},h.prototype.once=function(y,w){let T=(...I)=>{this.off(y,T),w.apply(this,I)};return T.fn=w,this.on(y,T),this},h.prototype.off=function(y,w){if(y===void 0&&w===void 0)return this._callbacks.clear(),this;if(w===void 0)return this._callbacks.delete(y),this;let T=this._callbacks.get(y);if(T){for(let[I,R]of T.entries())if(R===w||R.fn===w){T.splice(I,1);break}T.length===0?this._callbacks.delete(y):this._callbacks.set(y,T)}return this},h.prototype.emit=function(y,...w){let T=this._callbacks.get(y);if(T){let I=[...T];for(let R of I)R.apply(this,w)}return this},h.prototype.listeners=function(y){var w;return(w=this._callbacks.get(y))!=null?w:[]},h.prototype.listenerCount=function(y){if(y)return this.listeners(y).length;let w=0;for(let T of this._callbacks.values())w+=T.length;return w},h.prototype.hasListeners=function(y){return this.listenerCount(y)>0},h.prototype.addEventListener=h.prototype.on,h.prototype.removeListener=h.prototype.off,h.prototype.removeEventListener=h.prototype.off,h.prototype.removeAllListeners=h.prototype.off,l.exports=h})(Sw);var kw=Sw.exports,zm=z(kw);function en(){return en=Object.assign||function(l){for(var h=1;h<arguments.length;h++){var g=arguments[h];for(var y in g)Object.prototype.hasOwnProperty.call(g,y)&&(l[y]=g[y])}return l},en.apply(this,arguments)}function En(l,h){l.prototype=Object.create(h.prototype),l.prototype.constructor=l,l.__proto__=h}function Um(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}var qf;typeof Object.assign!="function"?qf=function(h){if(h==null)throw new TypeError("Cannot convert undefined or null to object");for(var g=Object(h),y=1;y<arguments.length;y++){var w=arguments[y];if(w!=null)for(var T in w)w.hasOwnProperty(T)&&(g[T]=w[T])}return g}:qf=Object.assign;var Wl=qf,Tw=["","webkit","Moz","MS","ms","o"],Vm=typeof document=="undefined"?{style:{}}:document.createElement("div"),UE="function",Ah=Math.round,mu=Math.abs,Za=Date.now;function Qa(l,h){for(var g,y,w=h[0].toUpperCase()+h.slice(1),T=0;T<Tw.length;){if(g=Tw[T],y=g?g+w:h,y in l)return y;T++}}var $r;typeof window=="undefined"?$r={}:$r=window;var zl=Qa(Vm.style,"touchAction"),ts=zl!==void 0;function sa(){if(!ts)return!1;var l={},h=$r.CSS&&$r.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(g){return l[g]=h?$r.CSS.supports("touch-action",g):!0}),l}var gu="compute",no="auto",Xm="manipulation",Ci="none",Ul="pan-x",es="pan-y",yu=sa(),$h=/mobile|tablet|ip(ad|hone|od)|android/i,xw="ontouchstart"in $r,Vl=Qa($r,"PointerEvent")!==void 0,qm=xw&&$h.test(navigator.userAgent),Xl="touch",Km="pen",Mh="mouse",Jm="kinect",xk=25,Dn=1,rs=2,Sr=4,Vn=8,Kf=1,Nh=2,Jf=4,ql=8,Kl=16,Xn=Nh|Jf,io=ql|Kl,Zf=Xn|io,Ow=["x","y"],bu=["clientX","clientY"];function ua(l,h,g){var y;if(l)if(l.forEach)l.forEach(h,g);else if(l.length!==void 0)for(y=0;y<l.length;)h.call(g,l[y],y,l),y++;else for(y in l)l.hasOwnProperty(y)&&h.call(g,l[y],y,l)}function Qf(l,h){return typeof l===UE?l.apply(h&&h[0]||void 0,h):l}function ns(l,h){return l.indexOf(h)>-1}function Ok(l){if(ns(l,Ci))return Ci;var h=ns(l,Ul),g=ns(l,es);return h&&g?Ci:h||g?h?Ul:es:ns(l,Xm)?Xm:no}var Zm=function(){function l(g,y){this.manager=g,this.set(y)}var h=l.prototype;return h.set=function(y){y===gu&&(y=this.compute()),ts&&this.manager.element.style&&yu[y]&&(this.manager.element.style[zl]=y),this.actions=y.toLowerCase().trim()},h.update=function(){this.set(this.manager.options.touchAction)},h.compute=function(){var y=[];return ua(this.manager.recognizers,function(w){Qf(w.options.enable,[w])&&(y=y.concat(w.getTouchAction()))}),Ok(y.join(" "))},h.preventDefaults=function(y){var w=y.srcEvent,T=y.offsetDirection;if(this.manager.session.prevented){w.preventDefault();return}var I=this.actions,R=ns(I,Ci)&&!yu[Ci],$=ns(I,es)&&!yu[es],B=ns(I,Ul)&&!yu[Ul];if(R){var V=y.pointers.length===1,et=y.distance<2,Z=y.deltaTime<250;if(V&&et&&Z)return}if(!(B&&$)&&(R||$&&T&Xn||B&&T&io))return this.preventSrc(w)},h.preventSrc=function(y){this.manager.session.prevented=!0,y.preventDefault()},l}();function tp(l,h){for(;l;){if(l===h)return!0;l=l.parentNode}return!1}function ep(l){var h=l.length;if(h===1)return{x:Ah(l[0].clientX),y:Ah(l[0].clientY)};for(var g=0,y=0,w=0;w<h;)g+=l[w].clientX,y+=l[w].clientY,w++;return{x:Ah(g/h),y:Ah(y/h)}}function Ew(l){for(var h=[],g=0;g<l.pointers.length;)h[g]={clientX:Ah(l.pointers[g].clientX),clientY:Ah(l.pointers[g].clientY)},g++;return{timeStamp:Za(),pointers:h,center:ep(h),deltaX:l.deltaX,deltaY:l.deltaY}}function rp(l,h,g){g||(g=Ow);var y=h[g[0]]-l[g[0]],w=h[g[1]]-l[g[1]];return Math.sqrt(y*y+w*w)}function np(l,h,g){g||(g=Ow);var y=h[g[0]]-l[g[0]],w=h[g[1]]-l[g[1]];return Math.atan2(w,y)*180/Math.PI}function Do(l,h){return l===h?Kf:mu(l)>=mu(h)?l<0?Nh:Jf:h<0?ql:Kl}function VE(l,h){var g=h.center,y=l.offsetDelta||{},w=l.prevDelta||{},T=l.prevInput||{};(h.eventType===Dn||T.eventType===Sr)&&(w=l.prevDelta={x:T.deltaX||0,y:T.deltaY||0},y=l.offsetDelta={x:g.x,y:g.y}),h.deltaX=w.x+(g.x-y.x),h.deltaY=w.y+(g.y-y.y)}function Ek(l,h,g){return{x:h/l||0,y:g/l||0}}function XE(l,h){return rp(h[0],h[1],bu)/rp(l[0],l[1],bu)}function qE(l,h){return np(h[1],h[0],bu)+np(l[1],l[0],bu)}function KE(l,h){var g=l.lastInterval||h,y=h.timeStamp-g.timeStamp,w,T,I,R;if(h.eventType!==Vn&&(y>xk||g.velocity===void 0)){var $=h.deltaX-g.deltaX,B=h.deltaY-g.deltaY,V=Ek(y,$,B);T=V.x,I=V.y,w=mu(V.x)>mu(V.y)?V.x:V.y,R=Do($,B),l.lastInterval=h}else w=g.velocity,T=g.velocityX,I=g.velocityY,R=g.direction;h.velocity=w,h.velocityX=T,h.velocityY=I,h.direction=R}function ip(l,h){var g=l.session,y=h.pointers,w=y.length;g.firstInput||(g.firstInput=Ew(h)),w>1&&!g.firstMultiple?g.firstMultiple=Ew(h):w===1&&(g.firstMultiple=!1);var T=g.firstInput,I=g.firstMultiple,R=I?I.center:T.center,$=h.center=ep(y);h.timeStamp=Za(),h.deltaTime=h.timeStamp-T.timeStamp,h.angle=np(R,$),h.distance=rp(R,$),VE(g,h),h.offsetDirection=Do(h.deltaX,h.deltaY);var B=Ek(h.deltaTime,h.deltaX,h.deltaY);h.overallVelocityX=B.x,h.overallVelocityY=B.y,h.overallVelocity=mu(B.x)>mu(B.y)?B.x:B.y,h.scale=I?XE(I.pointers,y):1,h.rotation=I?qE(I.pointers,y):0,h.maxPointers=g.prevInput?h.pointers.length>g.prevInput.maxPointers?h.pointers.length:g.prevInput.maxPointers:h.pointers.length,KE(g,h);var V=l.element,et=h.srcEvent,Z;et.composedPath?Z=et.composedPath()[0]:et.path?Z=et.path[0]:Z=et.target,tp(Z,V)&&(V=Z),h.target=V}function di(l,h,g){var y=g.pointers.length,w=g.changedPointers.length,T=h&Dn&&y-w===0,I=h&(Sr|Vn)&&y-w===0;g.isFirst=!!T,g.isFinal=!!I,T&&(l.session={}),g.eventType=h,ip(l,g),l.emit("hammer.input",g),l.recognize(g),l.session.prevInput=g}function Jl(l){return l.trim().split(/\s+/g)}function Co(l,h,g){ua(Jl(h),function(y){l.addEventListener(y,g,!1)})}function op(l,h,g){ua(Jl(h),function(y){l.removeEventListener(y,g,!1)})}function Rh(l){var h=l.ownerDocument||l;return h.defaultView||h.parentWindow||window}var la=function(){function l(g,y){var w=this;this.manager=g,this.callback=y,this.element=g.element,this.target=g.options.inputTarget,this.domHandler=function(T){Qf(g.options.enable,[g])&&w.handler(T)},this.init()}var h=l.prototype;return h.handler=function(){},h.init=function(){this.evEl&&Co(this.element,this.evEl,this.domHandler),this.evTarget&&Co(this.target,this.evTarget,this.domHandler),this.evWin&&Co(Rh(this.element),this.evWin,this.domHandler)},h.destroy=function(){this.evEl&&op(this.element,this.evEl,this.domHandler),this.evTarget&&op(this.target,this.evTarget,this.domHandler),this.evWin&&op(Rh(this.element),this.evWin,this.domHandler)},l}();function Io(l,h,g){if(l.indexOf&&!g)return l.indexOf(h);for(var y=0;y<l.length;){if(g&&l[y][g]==h||!g&&l[y]===h)return y;y++}return-1}var Dk={pointerdown:Dn,pointermove:rs,pointerup:Sr,pointercancel:Vn,pointerout:Vn},JE={2:Xl,3:Km,4:Mh,5:Jm},Ck="pointerdown",ap="pointermove pointerup pointercancel";$r.MSPointerEvent&&!$r.PointerEvent&&(Ck="MSPointerDown",ap="MSPointerMove MSPointerUp MSPointerCancel");var Qm=function(l){En(h,l);function h(){var y,w=h.prototype;return w.evEl=Ck,w.evWin=ap,y=l.apply(this,arguments)||this,y.store=y.manager.session.pointerEvents=[],y}var g=h.prototype;return g.handler=function(w){var T=this.store,I=!1,R=w.type.toLowerCase().replace("ms",""),$=Dk[R],B=JE[w.pointerType]||w.pointerType,V=B===Xl,et=Io(T,w.pointerId,"pointerId");$&Dn&&(w.button===0||V)?et<0&&(T.push(w),et=T.length-1):$&(Sr|Vn)&&(I=!0),!(et<0)&&(T[et]=w,this.callback(this.manager,$,{pointers:T,changedPointers:[w],pointerType:B,srcEvent:w}),I&&T.splice(et,1))},h}(la);function ca(l){return Array.prototype.slice.call(l,0)}function wu(l,h,g){for(var y=[],w=[],T=0;T<l.length;){var I=h?l[T][h]:l[T];Io(w,I)<0&&y.push(l[T]),w[T]=I,T++}return g&&(h?y=y.sort(function(R,$){return R[h]>$[h]}):y=y.sort()),y}var sp={touchstart:Dn,touchmove:rs,touchend:Sr,touchcancel:Vn},Dw="touchstart touchmove touchend touchcancel",tg=function(l){En(h,l);function h(){var y;return h.prototype.evTarget=Dw,y=l.apply(this,arguments)||this,y.targetIds={},y}var g=h.prototype;return g.handler=function(w){var T=sp[w.type],I=Cw.call(this,w,T);I&&this.callback(this.manager,T,{pointers:I[0],changedPointers:I[1],pointerType:Xl,srcEvent:w})},h}(la);function Cw(l,h){var g=ca(l.touches),y=this.targetIds;if(h&(Dn|rs)&&g.length===1)return y[g[0].identifier]=!0,[g,g];var w,T,I=ca(l.changedTouches),R=[],$=this.target;if(T=g.filter(function(B){return tp(B.target,$)}),h===Dn)for(w=0;w<T.length;)y[T[w].identifier]=!0,w++;for(w=0;w<I.length;)y[I[w].identifier]&&R.push(I[w]),h&(Sr|Vn)&&delete y[I[w].identifier],w++;if(R.length)return[wu(T.concat(R),"identifier",!0),R]}var eg={mousedown:Dn,mousemove:rs,mouseup:Sr},Ik="mousedown",up="mousemove mouseup",Iw=function(l){En(h,l);function h(){var y,w=h.prototype;return w.evEl=Ik,w.evWin=up,y=l.apply(this,arguments)||this,y.pressed=!1,y}var g=h.prototype;return g.handler=function(w){var T=eg[w.type];T&Dn&&w.button===0&&(this.pressed=!0),T&rs&&w.which!==1&&(T=Sr),this.pressed&&(T&Sr&&(this.pressed=!1),this.callback(this.manager,T,{pointers:[w],changedPointers:[w],pointerType:Mh,srcEvent:w}))},h}(la),Pk=2500,rg=25;function Pw(l){var h=l.changedPointers,g=h[0];if(g.identifier===this.primaryTouch){var y={x:g.clientX,y:g.clientY},w=this.lastTouches;this.lastTouches.push(y);var T=function(){var R=w.indexOf(y);R>-1&&w.splice(R,1)};setTimeout(T,Pk)}}function Ak(l,h){l&Dn?(this.primaryTouch=h.changedPointers[0].identifier,Pw.call(this,h)):l&(Sr|Vn)&&Pw.call(this,h)}function ZE(l){for(var h=l.srcEvent.clientX,g=l.srcEvent.clientY,y=0;y<this.lastTouches.length;y++){var w=this.lastTouches[y],T=Math.abs(h-w.x),I=Math.abs(g-w.y);if(T<=rg&&I<=rg)return!0}return!1}var jh=function(){var l=function(h){En(g,h);function g(w,T){var I;return I=h.call(this,w,T)||this,I.handler=function(R,$,B){var V=B.pointerType===Xl,et=B.pointerType===Mh;if(!(et&&B.sourceCapabilities&&B.sourceCapabilities.firesTouchEvents)){if(V)Ak.call(Um(Um(I)),$,B);else if(et&&ZE.call(Um(Um(I)),B))return;I.callback(R,$,B)}},I.touch=new tg(I.manager,I.handler),I.mouse=new Iw(I.manager,I.handler),I.primaryTouch=null,I.lastTouches=[],I}var y=g.prototype;return y.destroy=function(){this.touch.destroy(),this.mouse.destroy()},g}(la);return l}();function Aw(l){var h,g=l.options.inputClass;return g?h=g:Vl?h=Qm:qm?h=tg:xw?h=jh:h=Iw,new h(l,di)}function Lh(l,h,g){return Array.isArray(l)?(ua(l,g[h],g),!0):!1}var ng=1,oo=2,Fh=4,_u=8,ao=_u,lp=16,hr=32,$k=1;function ig(){return $k++}function og(l,h){var g=h.manager;return g?g.get(l):l}function sr(l){return l&lp?"cancel":l&_u?"end":l&Fh?"move":l&oo?"start":""}var ha=function(){function l(g){g===void 0&&(g={}),this.options=en({enable:!0},g),this.id=ig(),this.manager=null,this.state=ng,this.simultaneous={},this.requireFail=[]}var h=l.prototype;return h.set=function(y){return Wl(this.options,y),this.manager&&this.manager.touchAction.update(),this},h.recognizeWith=function(y){if(Lh(y,"recognizeWith",this))return this;var w=this.simultaneous;return y=og(y,this),w[y.id]||(w[y.id]=y,y.recognizeWith(this)),this},h.dropRecognizeWith=function(y){return Lh(y,"dropRecognizeWith",this)?this:(y=og(y,this),delete this.simultaneous[y.id],this)},h.requireFailure=function(y){if(Lh(y,"requireFailure",this))return this;var w=this.requireFail;return y=og(y,this),Io(w,y)===-1&&(w.push(y),y.requireFailure(this)),this},h.dropRequireFailure=function(y){if(Lh(y,"dropRequireFailure",this))return this;y=og(y,this);var w=Io(this.requireFail,y);return w>-1&&this.requireFail.splice(w,1),this},h.hasRequireFailures=function(){return this.requireFail.length>0},h.canRecognizeWith=function(y){return!!this.simultaneous[y.id]},h.emit=function(y){var w=this,T=this.state;function I(R){w.manager.emit(R,y)}T<_u&&I(w.options.event+sr(T)),I(w.options.event),y.additionalEvent&&I(y.additionalEvent),T>=_u&&I(w.options.event+sr(T))},h.tryEmit=function(y){if(this.canEmit())return this.emit(y);this.state=hr},h.canEmit=function(){for(var y=0;y<this.requireFail.length;){if(!(this.requireFail[y].state&(hr|ng)))return!1;y++}return!0},h.recognize=function(y){var w=Wl({},y);if(!Qf(this.options.enable,[this,w])){this.reset(),this.state=hr;return}this.state&(ao|lp|hr)&&(this.state=ng),this.state=this.process(w),this.state&(oo|Fh|_u|lp)&&this.tryEmit(w)},h.process=function(y){},h.getTouchAction=function(){},h.reset=function(){},l}(),ag=function(l){En(h,l);function h(y){var w;return y===void 0&&(y={}),w=l.call(this,en({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},y))||this,w.pTime=!1,w.pCenter=!1,w._timer=null,w._input=null,w.count=0,w}var g=h.prototype;return g.getTouchAction=function(){return[Xm]},g.process=function(w){var T=this,I=this.options,R=w.pointers.length===I.pointers,$=w.distance<I.threshold,B=w.deltaTime<I.time;if(this.reset(),w.eventType&Dn&&this.count===0)return this.failTimeout();if($&&B&&R){if(w.eventType!==Sr)return this.failTimeout();var V=this.pTime?w.timeStamp-this.pTime<I.interval:!0,et=!this.pCenter||rp(this.pCenter,w.center)<I.posThreshold;this.pTime=w.timeStamp,this.pCenter=w.center,!et||!V?this.count=1:this.count+=1,this._input=w;var Z=this.count%I.taps;if(Z===0)return this.hasRequireFailures()?(this._timer=setTimeout(function(){T.state=ao,T.tryEmit()},I.interval),oo):ao}return hr},g.failTimeout=function(){var w=this;return this._timer=setTimeout(function(){w.state=hr},this.options.interval),hr},g.reset=function(){clearTimeout(this._timer)},g.emit=function(){this.state===ao&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},h}(ha),qn=function(l){En(h,l);function h(y){return y===void 0&&(y={}),l.call(this,en({pointers:1},y))||this}var g=h.prototype;return g.attrTest=function(w){var T=this.options.pointers;return T===0||w.pointers.length===T},g.process=function(w){var T=this.state,I=w.eventType,R=T&(oo|Fh),$=this.attrTest(w);return R&&(I&Vn||!$)?T|lp:R||$?I&Sr?T|_u:T&oo?T|Fh:oo:hr},h}(ha);function $w(l){return l===Kl?"down":l===ql?"up":l===Nh?"left":l===Jf?"right":""}var Mw=function(l){En(h,l);function h(y){var w;return y===void 0&&(y={}),w=l.call(this,en({event:"pan",threshold:10,pointers:1,direction:Zf},y))||this,w.pX=null,w.pY=null,w}var g=h.prototype;return g.getTouchAction=function(){var w=this.options.direction,T=[];return w&Xn&&T.push(es),w&io&&T.push(Ul),T},g.directionTest=function(w){var T=this.options,I=!0,R=w.distance,$=w.direction,B=w.deltaX,V=w.deltaY;return $&T.direction||(T.direction&Xn?($=B===0?Kf:B<0?Nh:Jf,I=B!==this.pX,R=Math.abs(w.deltaX)):($=V===0?Kf:V<0?ql:Kl,I=V!==this.pY,R=Math.abs(w.deltaY))),w.direction=$,I&&R>T.threshold&&$&T.direction},g.attrTest=function(w){return qn.prototype.attrTest.call(this,w)&&(this.state&oo||!(this.state&oo)&&this.directionTest(w))},g.emit=function(w){this.pX=w.deltaX,this.pY=w.deltaY;var T=$w(w.direction);T&&(w.additionalEvent=this.options.event+T),l.prototype.emit.call(this,w)},h}(qn),Yh=function(l){En(h,l);function h(y){return y===void 0&&(y={}),l.call(this,en({event:"swipe",threshold:10,velocity:.3,direction:Xn|io,pointers:1},y))||this}var g=h.prototype;return g.getTouchAction=function(){return Mw.prototype.getTouchAction.call(this)},g.attrTest=function(w){var T=this.options.direction,I;return T&(Xn|io)?I=w.overallVelocity:T&Xn?I=w.overallVelocityX:T&io&&(I=w.overallVelocityY),l.prototype.attrTest.call(this,w)&&T&w.offsetDirection&&w.distance>this.options.threshold&&w.maxPointers===this.options.pointers&&mu(I)>this.options.velocity&&w.eventType&Sr},g.emit=function(w){var T=$w(w.offsetDirection);T&&this.manager.emit(this.options.event+T,w),this.manager.emit(this.options.event,w)},h}(qn),Mk=function(l){En(h,l);function h(y){return y===void 0&&(y={}),l.call(this,en({event:"pinch",threshold:0,pointers:2},y))||this}var g=h.prototype;return g.getTouchAction=function(){return[Ci]},g.attrTest=function(w){return l.prototype.attrTest.call(this,w)&&(Math.abs(w.scale-1)>this.options.threshold||this.state&oo)},g.emit=function(w){if(w.scale!==1){var T=w.scale<1?"in":"out";w.additionalEvent=this.options.event+T}l.prototype.emit.call(this,w)},h}(qn),cp=function(l){En(h,l);function h(y){return y===void 0&&(y={}),l.call(this,en({event:"rotate",threshold:0,pointers:2},y))||this}var g=h.prototype;return g.getTouchAction=function(){return[Ci]},g.attrTest=function(w){return l.prototype.attrTest.call(this,w)&&(Math.abs(w.rotation)>this.options.threshold||this.state&oo)},h}(qn),Nk=function(l){En(h,l);function h(y){var w;return y===void 0&&(y={}),w=l.call(this,en({event:"press",pointers:1,time:251,threshold:9},y))||this,w._timer=null,w._input=null,w}var g=h.prototype;return g.getTouchAction=function(){return[no]},g.process=function(w){var T=this,I=this.options,R=w.pointers.length===I.pointers,$=w.distance<I.threshold,B=w.deltaTime>I.time;if(this._input=w,!$||!R||w.eventType&(Sr|Vn)&&!B)this.reset();else if(w.eventType&Dn)this.reset(),this._timer=setTimeout(function(){T.state=ao,T.tryEmit()},I.time);else if(w.eventType&Sr)return ao;return hr},g.reset=function(){clearTimeout(this._timer)},g.emit=function(w){this.state===ao&&(w&&w.eventType&Sr?this.manager.emit(this.options.event+"up",w):(this._input.timeStamp=Za(),this.manager.emit(this.options.event,this._input)))},h}(ha),hp={domEvents:!1,touchAction:gu,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Nw=[[cp,{enable:!1}],[Mk,{enable:!1},["rotate"]],[Yh,{direction:Xn}],[Mw,{direction:Xn},["swipe"]],[ag],[ag,{event:"doubletap",taps:2},["tap"]],[Nk]],Rk=1,sg=2;function ug(l,h){var g=l.element;if(g.style){var y;ua(l.options.cssProps,function(w,T){y=Qa(g.style,T),h?(l.oldCssProps[y]=g.style[y],g.style[y]=w):g.style[y]=l.oldCssProps[y]||""}),h||(l.oldCssProps={})}}function QE(l,h){var g=document.createEvent("Event");g.initEvent(l,!0,!0),g.gesture=h,h.target.dispatchEvent(g)}var Bh=function(){function l(g,y){var w=this;this.options=Wl({},hp,y||{}),this.options.inputTarget=this.options.inputTarget||g,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=g,this.input=Aw(this),this.touchAction=new Zm(this,this.options.touchAction),ug(this,!0),ua(this.options.recognizers,function(T){var I=w.add(new T[0](T[1]));T[2]&&I.recognizeWith(T[2]),T[3]&&I.requireFailure(T[3])},this)}var h=l.prototype;return h.set=function(y){return Wl(this.options,y),y.touchAction&&this.touchAction.update(),y.inputTarget&&(this.input.destroy(),this.input.target=y.inputTarget,this.input.init()),this},h.stop=function(y){this.session.stopped=y?sg:Rk},h.recognize=function(y){var w=this.session;if(!w.stopped){this.touchAction.preventDefaults(y);var T,I=this.recognizers,R=w.curRecognizer;(!R||R&&R.state&ao)&&(w.curRecognizer=null,R=null);for(var $=0;$<I.length;)T=I[$],w.stopped!==sg&&(!R||T===R||T.canRecognizeWith(R))?T.recognize(y):T.reset(),!R&&T.state&(oo|Fh|_u)&&(w.curRecognizer=T,R=T),$++}},h.get=function(y){if(y instanceof ha)return y;for(var w=this.recognizers,T=0;T<w.length;T++)if(w[T].options.event===y)return w[T];return null},h.add=function(y){if(Lh(y,"add",this))return this;var w=this.get(y.options.event);return w&&this.remove(w),this.recognizers.push(y),y.manager=this,this.touchAction.update(),y},h.remove=function(y){if(Lh(y,"remove",this))return this;var w=this.get(y);if(y){var T=this.recognizers,I=Io(T,w);I!==-1&&(T.splice(I,1),this.touchAction.update())}return this},h.on=function(y,w){if(y===void 0||w===void 0)return this;var T=this.handlers;return ua(Jl(y),function(I){T[I]=T[I]||[],T[I].push(w)}),this},h.off=function(y,w){if(y===void 0)return this;var T=this.handlers;return ua(Jl(y),function(I){w?T[I]&&T[I].splice(Io(T[I],w),1):delete T[I]}),this},h.emit=function(y,w){this.options.domEvents&&QE(y,w);var T=this.handlers[y]&&this.handlers[y].slice();if(!(!T||!T.length)){w.type=y,w.preventDefault=function(){w.srcEvent.preventDefault()};for(var I=0;I<T.length;)T[I](w),I++}},h.destroy=function(){this.element&&ug(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},l}(),is={touchstart:Dn,touchmove:rs,touchend:Sr,touchcancel:Vn},jk="touchstart",lg="touchstart touchmove touchend touchcancel",tD=function(l){En(h,l);function h(){var y,w=h.prototype;return w.evTarget=jk,w.evWin=lg,y=l.apply(this,arguments)||this,y.started=!1,y}var g=h.prototype;return g.handler=function(w){var T=is[w.type];if(T===Dn&&(this.started=!0),!!this.started){var I=Lk.call(this,w,T);T&(Sr|Vn)&&I[0].length-I[1].length===0&&(this.started=!1),this.callback(this.manager,T,{pointers:I[0],changedPointers:I[1],pointerType:Xl,srcEvent:w})}},h}(la);function Lk(l,h){var g=ca(l.touches),y=ca(l.changedTouches);return h&(Sr|Vn)&&(g=wu(g.concat(y),"identifier",!0)),[g,y]}function Fk(l,h,g){var y="DEPRECATED METHOD: "+h+`
`+g+` AT
`;return function(){var w=new Error("get-stack-trace"),T=w&&w.stack?w.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",I=window.console&&(window.console.warn||window.console.log);return I&&I.call(window.console,y,T),l.apply(this,arguments)}}var Yk=Fk(function(l,h,g){for(var y=Object.keys(h),w=0;w<y.length;)(!g||g&&l[y[w]]===void 0)&&(l[y[w]]=h[y[w]]),w++;return l},"extend","Use `assign`."),eD=Fk(function(l,h){return Yk(l,h,!0)},"merge","Use `assign`.");function rD(l,h,g){var y=h.prototype,w;w=l.prototype=Object.create(y),w.constructor=l,w._super=y,g&&Wl(w,g)}function Bk(l,h){return function(){return l.apply(h,arguments)}}var cg=function(){var l=function(g,y){return y===void 0&&(y={}),new Bh(g,en({recognizers:Nw.concat()},y))};return l.VERSION="2.0.17-rc",l.DIRECTION_ALL=Zf,l.DIRECTION_DOWN=Kl,l.DIRECTION_LEFT=Nh,l.DIRECTION_RIGHT=Jf,l.DIRECTION_UP=ql,l.DIRECTION_HORIZONTAL=Xn,l.DIRECTION_VERTICAL=io,l.DIRECTION_NONE=Kf,l.DIRECTION_DOWN=Kl,l.INPUT_START=Dn,l.INPUT_MOVE=rs,l.INPUT_END=Sr,l.INPUT_CANCEL=Vn,l.STATE_POSSIBLE=ng,l.STATE_BEGAN=oo,l.STATE_CHANGED=Fh,l.STATE_ENDED=_u,l.STATE_RECOGNIZED=ao,l.STATE_CANCELLED=lp,l.STATE_FAILED=hr,l.Manager=Bh,l.Input=la,l.TouchAction=Zm,l.TouchInput=tg,l.MouseInput=Iw,l.PointerEventInput=Qm,l.TouchMouseInput=jh,l.SingleTouchInput=tD,l.Recognizer=ha,l.AttrRecognizer=qn,l.Tap=ag,l.Pan=Mw,l.Swipe=Yh,l.Pinch=Mk,l.Rotate=cp,l.Press=Nk,l.on=Co,l.off=op,l.each=ua,l.merge=eD,l.extend=Yk,l.bindFn=Bk,l.assign=Wl,l.inherit=rD,l.bindFn=Bk,l.prefixed=Qa,l.toArray=ca,l.inArray=Io,l.uniqueArray=wu,l.splitStr=Jl,l.boolOrFn=Qf,l.hasParent=tp,l.addEventListeners=Co,l.removeEventListeners=op,l.defaults=Wl({},hp,{preset:Nw}),l}(),Hk=cg;function Rw(l,h){var g=typeof wh!="undefined"&&bm(l)||l["@@iterator"];if(!g){if(fn(l)||(g=Gk(l))||h&&l&&typeof l.length=="number"){g&&(l=g);var y=0,w=function(){};return{s:w,n:function(){return y>=l.length?{done:!0}:{done:!1,value:l[y++]}},e:function(B){throw B},f:w}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var T=!0,I=!1,R;return{s:function(){g=g.call(l)},n:function(){var B=g.next();return T=B.done,B},e:function(B){I=!0,R=B},f:function(){try{!T&&g.return!=null&&g.return()}finally{if(I)throw R}}}}function Gk(l,h){var g;if(l){if(typeof l=="string")return jw(l,h);var y=Pl(g=Object.prototype.toString.call(l)).call(g,8,-1);if(y==="Object"&&l.constructor&&(y=l.constructor.name),y==="Map"||y==="Set")return Ji(l);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return jw(l,h)}}function jw(l,h){(h==null||h>l.length)&&(h=l.length);for(var g=0,y=new Array(h);g<h;g++)y[g]=l[g];return y}var hg=wh("DELETE");function Wk(l){for(var h,g=arguments.length,y=new Array(g>1?g-1:0),w=1;w<g;w++)y[w-1]=arguments[w];return Lw.apply(void 0,If(h=[{},l]).call(h,y))}function Lw(){var l=dp.apply(void 0,arguments);return fp(l),l}function dp(){for(var l=arguments.length,h=new Array(l),g=0;g<l;g++)h[g]=arguments[g];if(h.length<2)return h[0];if(h.length>2){var y;return dp.apply(void 0,If(y=[Lw(h[0],h[1])]).call(y,xn(Pl(h).call(h,2))))}var w=h[0],T=h[1];if(w instanceof Date&&T instanceof Date)return w.setTime(T.getTime()),w;var I=Rw(uw(T)),R;try{for(I.s();!(R=I.n()).done;){var $=R.value;Object.prototype.propertyIsEnumerable.call(T,$)&&(T[$]===hg?delete w[$]:w[$]!==null&&T[$]!==null&&typeof w[$]=="object"&&typeof T[$]=="object"&&!fn(w[$])&&!fn(T[$])?w[$]=dp(w[$],T[$]):w[$]=Fw(T[$]))}}catch(B){I.e(B)}finally{I.f()}return w}function Fw(l){return fn(l)?Zr(l).call(l,function(h){return Fw(h)}):typeof l=="object"&&l!==null?l instanceof Date?new Date(l.getTime()):dp({},l):l}function fp(l){for(var h=0,g=Mf(l);h<g.length;h++){var y=g[h];l[y]===hg?delete l[y]:typeof l[y]=="object"&&l[y]!==null&&fp(l[y])}}function os(){var l=function(){};return{on:l,off:l,destroy:l,emit:l,get(){return{set:l}}}}var nD=typeof window!="undefined"?window.Hammer||Hk:function(){return os()};function as(l){var h=this,g;this._cleanupQueue=[],this.active=!1,this._dom={container:l,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push(function(){h._dom.overlay.parentNode.removeChild(h._dom.overlay)});var y=nD(this._dom.overlay);y.on("tap",za(g=this._onTapOverlay).call(g,this)),this._cleanupQueue.push(function(){y.destroy()});var w=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];qa(w).call(w,function(T){y.on(T,function(I){I.srcEvent.stopPropagation()})}),document&&document.body&&(this._onClick=function(T){iD(T.target,l)||h.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push(function(){document.body.removeEventListener("click",h._onClick)})),this._escListener=function(T){("key"in T?T.key==="Escape":T.keyCode===27)&&h.deactivate()}}zm(as.prototype),as.current=null,as.prototype.destroy=function(){var l,h;this.deactivate();var g=Rw(ME(l=mk(h=this._cleanupQueue).call(h,0)).call(l)),y;try{for(g.s();!(y=g.n()).done;){var w=y.value;w()}}catch(T){g.e(T)}finally{g.f()}},as.prototype.activate=function(){as.current&&as.current.deactivate(),as.current=this,this.active=!0,this._dom.overlay.style.display="none",this._dom.container.classList.add("vis-active"),this.emit("change"),this.emit("activate"),document.body.addEventListener("keydown",this._escListener)},as.prototype.deactivate=function(){this.active=!1,this._dom.overlay.style.display="block",this._dom.container.classList.remove("vis-active"),document.body.removeEventListener("keydown",this._escListener),this.emit("change"),this.emit("deactivate")},as.prototype._onTapOverlay=function(l){this.activate(),l.srcEvent.stopPropagation()};function iD(l,h){for(;l;){if(l===h)return!0;l=l.parentNode}return!1}var zk=tl,oD=De,aD=TypeError,Yw=function(l){if(zk(l))return l;throw new aD(oD(l)+" is not a constructor")},sD=Mt,Po=er,pp=Nt,uD=sm,Hh=Yw,vp=_n,Gh=be,dg=Uo,Bw=dt,fg=Po("Reflect","construct"),pg=Object.prototype,lD=[].push,Uk=Bw(function(){function l(){}return!(fg(function(){},[],l)instanceof l)}),rn=!Bw(function(){fg(function(){})}),mp=Uk||rn;sD({target:"Reflect",stat:!0,forced:mp,sham:mp},{construct:function(h,g){Hh(h),vp(g);var y=arguments.length<3?h:Hh(arguments[2]);if(rn&&!Uk)return fg(h,g,y);if(h===y){switch(g.length){case 0:return new h;case 1:return new h(g[0]);case 2:return new h(g[0],g[1]);case 3:return new h(g[0],g[1],g[2]);case 4:return new h(g[0],g[1],g[2],g[3])}var w=[null];return pp(lD,w,g),new(pp(uD,h,w))}var T=y.prototype,I=dg(Gh(T)?T:pg),R=pp(h,I,g);return Gh(R)?R:I}});var Wh=Oe,Vk=Wh.Reflect.construct,Xk=Vk,ss=Xk,Hw=ss,Su=z(Hw),gp=Oe,zh=gp.Object.getOwnPropertySymbols,ku=zh,qk=ku,Gw=qk,H=z(Gw),vg={exports:{}},cD=Mt,Kk=dt,Jk=_e,Zk=xe.f,Qk=je,tT=!Qk||Kk(function(){Zk(1)});cD({target:"Object",stat:!0,forced:tT,sham:!Qk},{getOwnPropertyDescriptor:function(h,g){return Zk(Jk(h),g)}});var hD=Oe,yp=hD.Object,Ww=vg.exports=function(h,g){return yp.getOwnPropertyDescriptor(h,g)};yp.getOwnPropertyDescriptor.sham&&(Ww.sham=!0);var eT=vg.exports,rT=eT,nT=rT,mg=nT,Ao=z(mg),bp=Mt,dD=je,fD=Tm,iT=_e,pD=xe,oT=As;bp({target:"Object",stat:!0,sham:!dD},{getOwnPropertyDescriptors:function(h){for(var g=iT(h),y=pD.f,w=fD(g),T={},I=0,R,$;w.length>I;)$=y(g,R=w[I++]),$!==void 0&&oT(T,R,$);return T}});var aT=Oe,Tu=aT.Object.getOwnPropertyDescriptors,sT=Tu,zw=sT,vD=zw,uT=z(vD),Zl={exports:{}},gg=Mt,mD=je,Uw=ol.f;gg({target:"Object",stat:!0,forced:Object.defineProperties!==Uw,sham:!mD},{defineProperties:Uw});var gD=Oe,Uh=gD.Object,Vw=Zl.exports=function(h,g){return Uh.defineProperties(h,g)};Uh.defineProperties.sham&&(Vw.sham=!0);var yD=Zl.exports,bD=yD,lT=bD,wD=lT,_D=z(wD),yg=Ca,cT=z(yg);function Vh(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}var xu=Eh,SD=xu,kD=SD,hT=kD,dT=hT,fT=z(dT),wp=Mt,TD=Wa;wp({target:"Object",stat:!0},{setPrototypeOf:TD});var xD=Oe,_p=xD.Object.setPrototypeOf,OD=_p,pT=OD,nn=pT,us=nn,vT=us,Xw=vT,qw=Xw,bg=z(qw),wg=l0,_g=wg,da=_g,mT=da,Kw=mT,Sp=z(Kw);function Sg(l,h){var g;return Sg=bg?Sp(g=bg).call(g):function(w,T){return w.__proto__=T,w},Sg(l,h)}function kg(l,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=fT(h&&h.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Ia(l,"prototype",{writable:!1}),h&&Sg(l,h)}function Mr(l,h){if(h&&(sh(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Vh(l)}var Tg=gw,Xh=Tg,gT=Xh,Jw=gT,xg=Jw,Og=z(xg);function so(l){var h;return so=bg?Sp(h=Og).call(h):function(y){return y.__proto__||Og(y)},so(l)}var u={exports:{}},f={exports:{}};(function(l){var h=Zb,g=V1;function y(w){"@babel/helpers - typeof";return l.exports=y=typeof h=="function"&&typeof g=="symbol"?function(T){return typeof T}:function(T){return T&&typeof h=="function"&&T.constructor===h&&T!==h.prototype?"symbol":typeof T},l.exports.__esModule=!0,l.exports.default=l.exports,y(w)}l.exports=y,l.exports.__esModule=!0,l.exports.default=l.exports})(f);var v=f.exports,m=uk,S=m,E=S,P=E,A=P,N=or,U=Tm,K=xe,Q=jr,st=function(l,h,g){for(var y=U(h),w=Q.f,T=K.f,I=0;I<y.length;I++){var R=y[I];!N(l,R)&&!(g&&N(g,R))&&w(l,R,T(h,R))}},ht=be,kt=Sn,Tt=function(l,h){ht(h)&&"cause"in h&&kt(l,"cause",h.cause)},Pt=ye,Vt=Error,jt=Pt("".replace),Me=function(l){return String(new Vt(l).stack)}("zxcasd"),Ne=/\n\s*at [^:]*:[^\n]*/,Je=Ne.test(Me),Hr=function(l,h){if(Je&&typeof l=="string"&&!Vt.prepareStackTrace)for(;h--;)l=jt(l,Ne,"");return l},fa=dt,pn=ei,ze=!fa(function(){var l=new Error("a");return"stack"in l?(Object.defineProperty(l,"stack",pn(1,7)),l.stack!==7):!0}),ls=Sn,Ou=Hr,qh=ze,on=Error.captureStackTrace,Eg=function(l,h,g,y){qh&&(on?on(l,h):ls(l,"stack",Ou(g,y)))},Kn=Bo,cs=Ue,kp=_n,Kh=De,Ql=A0,Tp=Lr,Jh=Fe,yT=pm,Zw=Qr,Qw=D0,xp=TypeError,tc=function(l,h){this.stopped=l,this.result=h},Op=tc.prototype,lt=function(l,h,g){var y=g&&g.that,w=!!(g&&g.AS_ENTRIES),T=!!(g&&g.IS_RECORD),I=!!(g&&g.IS_ITERATOR),R=!!(g&&g.INTERRUPTED),$=Kn(h,y),B,V,et,Z,rt,xt,Ht,zt=function(he){return B&&Qw(B,"normal",he),new tc(!0,he)},ae=function(he){return w?(kp(he),R?$(he[0],he[1],zt):$(he[0],he[1])):R?$(he,zt):$(he)};if(T)B=l.iterator;else if(I)B=l;else{if(V=Zw(l),!V)throw new xp(Kh(l)+" is not iterable");if(Ql(V)){for(et=0,Z=Tp(l);Z>et;et++)if(rt=ae(l[et]),rt&&Jh(Op,rt))return rt;return new tc(!1)}B=yT(l,V)}for(xt=T?l.next:B.next;!(Ht=cs(xt,B)).done;){try{rt=ae(Ht.value)}catch(he){Qw(B,"throw",he)}if(typeof rt=="object"&&rt&&Jh(Op,rt))return rt}return new tc(!1)},mt=oi,ft=function(l,h){return l===void 0?arguments.length<2?"":h:mt(l)},Qt=Mt,$t=Fe,ge=Hv,gr=Wa,Jn=st,Cn=Uo,Eu=Sn,ec=ei,rc=Tt,kC=Eg,TC=lt,NI=ft,RI=Ye,jI=RI("toStringTag"),Dg=Error,LI=[].push,Cg=function(h,g){var y=$t(ED,this),w;gr?w=gr(new Dg,y?ge(this):ED):(w=y?this:Cn(ED),Eu(w,jI,"Error")),g!==void 0&&Eu(w,"message",NI(g)),kC(w,Cg,w.stack,1),arguments.length>2&&rc(w,arguments[2]);var T=[];return TC(h,LI,{that:T}),Eu(w,"errors",T),w};gr?gr(Cg,Dg):Jn(Cg,Dg,{name:!0});var ED=Cg.prototype=Cn(Dg.prototype,{constructor:ec(1,Cg),message:ec(1,""),name:ec(1,"AggregateError")});Qt({global:!0,constructor:!0,arity:2},{AggregateError:Cg});var DD=er,FI=vt,bT=Ye,YI=je,xC=bT("species"),OC=function(l){var h=DD(l);YI&&h&&!h[xC]&&FI(h,xC,{configurable:!0,get:function(){return this}})},BI=Fe,HI=TypeError,wT=function(l,h){if(BI(h,l))return l;throw new HI("Incorrect invocation")},t_=_n,GI=Yw,WI=Ro,zI=Ye,UI=zI("species"),EC=function(l,h){var g=t_(l).constructor,y;return g===void 0||WI(y=t_(g)[UI])?h:GI(y)},VI=Pn,_T=/(?:ipad|iphone|ipod).*applewebkit/i.test(VI),$o=St,DC=Nt,XI=Bo,ST=Re,qI=or,CD=dt,Du=Nd,KI=qc,kT=vc,JI=aa,ZI=_T,QI=lh,ID=$o.setImmediate,PD=$o.clearImmediate,tP=$o.process,AD=$o.Dispatch,CC=$o.Function,IC=$o.MessageChannel,eP=$o.String,TT=0,e_={},r_="onreadystatechange",Ig,Zh,$D,MD;CD(function(){Ig=$o.location});var xT=function(l){if(qI(e_,l)){var h=e_[l];delete e_[l],h()}},ND=function(l){return function(){xT(l)}},PC=function(l){xT(l.data)},AC=function(l){$o.postMessage(eP(l),Ig.protocol+"//"+Ig.host)};(!ID||!PD)&&(ID=function(h){JI(arguments.length,1);var g=ST(h)?h:CC(h),y=KI(arguments,1);return e_[++TT]=function(){DC(g,void 0,y)},Zh(TT),TT},PD=function(h){delete e_[h]},QI?Zh=function(l){tP.nextTick(ND(l))}:AD&&AD.now?Zh=function(l){AD.now(ND(l))}:IC&&!ZI?($D=new IC,MD=$D.port2,$D.port1.onmessage=PC,Zh=XI(MD.postMessage,MD)):$o.addEventListener&&ST($o.postMessage)&&!$o.importScripts&&Ig&&Ig.protocol!=="file:"&&!CD(AC)?(Zh=AC,$o.addEventListener("message",PC,!1)):r_ in kT("script")?Zh=function(l){Du.appendChild(kT("script"))[r_]=function(){Du.removeChild(this),xT(l)}}:Zh=function(l){setTimeout(ND(l),0)});var $C={set:ID,clear:PD},MC=function(){this.head=null,this.tail=null};MC.prototype={add:function(l){var h={item:l,next:null},g=this.tail;g?g.next=h:this.head=h,this.tail=h},get:function(){var l=this.head;if(l){var h=this.head=l.next;return h===null&&(this.tail=null),l.item}}};var NC=MC,rP=Pn,nP=/ipad|iphone|ipod/i.test(rP)&&typeof Pebble!="undefined",iP=Pn,oP=/web0s(?!.*chrome)/i.test(iP),Ep=St,RC=Bo,aP=xe.f,RD=$C.set,sP=NC,uP=_T,lP=nP,cP=oP,jD=lh,LD=Ep.MutationObserver||Ep.WebKitMutationObserver,jC=Ep.document,LC=Ep.process,n_=Ep.Promise,FC=aP(Ep,"queueMicrotask"),FD=FC&&FC.value,Pg,YD,BD,i_,YC;if(!FD){var Qh=new sP,o_=function(){var l,h;for(jD&&(l=LC.domain)&&l.exit();h=Qh.get();)try{h()}catch(g){throw Qh.head&&Pg(),g}l&&l.enter()};!uP&&!jD&&!cP&&LD&&jC?(YD=!0,BD=jC.createTextNode(""),new LD(o_).observe(BD,{characterData:!0}),Pg=function(){BD.data=YD=!YD}):!lP&&n_&&n_.resolve?(i_=n_.resolve(void 0),i_.constructor=n_,YC=RC(i_.then,i_),Pg=function(){YC(o_)}):jD?Pg=function(){LC.nextTick(o_)}:(RD=RC(RD,Ep),Pg=function(){RD(o_)}),FD=function(l){Qh.head||Pg(),Qh.add(l)}}var BC=FD,HD=function(l,h){try{arguments.length===1?console.error(l):console.error(l,h)}catch(g){}},Ag=function(l){try{return{error:!1,value:l()}}catch(h){return{error:!0,value:h}}},hP=St,$g=hP.Promise,a_=typeof Deno=="object"&&Deno&&typeof Deno.version=="object",GD=a_,dP=lh,fP=!GD&&!dP&&typeof window=="object"&&typeof document=="object",pP=St,Mg=$g,HC=Re,vP=ni,mP=ev,gP=Ye,WD=fP,yP=a_,zD=po,GC=Mg&&Mg.prototype,bP=gP("species"),OT=!1,uo=HC(pP.PromiseRejectionEvent),WC=vP("Promise",function(){var l=mP(Mg),h=l!==String(Mg);if(!h&&zD===66||!(GC.catch&&GC.finally))return!0;if(!zD||zD<51||!/native code/.test(l)){var g=new Mg(function(T){T(1)}),y=function(T){T(function(){},function(){})},w=g.constructor={};if(w[bP]=y,OT=g.then(function(){})instanceof y,!OT)return!0}return!h&&(WD||yP)&&!uo}),Ng={CONSTRUCTOR:WC,REJECTION_EVENT:uo,SUBCLASSING:OT},pa={},UD=gn,zC=TypeError,UC=function(l){var h,g;this.promise=new l(function(y,w){if(h!==void 0||g!==void 0)throw new zC("Bad Promise constructor");h=y,g=w}),this.resolve=UD(h),this.reject=UD(g)};pa.f=function(l){return new UC(l)};var VD=Mt,Rg=lh,hs=St,s_=Ue,VC=W,ET=qs,wP=OC,XD=gn,qD=Re,XC=be,Dp=wT,_P=EC,KD=$C.set,JD=BC,qC=HD,SP=Ag,td=NC,KC=Js,Cu=$g,ZD=Ng,DT=pa,CT="Promise",JC=ZD.CONSTRUCTOR,kP=ZD.REJECTION_EVENT;ZD.SUBCLASSING;var QD=KC.getterFor(CT),TP=KC.set,tC=Cu&&Cu.prototype,jg=Cu,eC=tC,ZC=hs.TypeError,IT=hs.document,PT=hs.process,rC=DT.f,nC=rC,xP=!!(IT&&IT.createEvent&&hs.dispatchEvent),iC="unhandledrejection",OP="rejectionhandled",QC=0,ed=1,tI=2,oC=1,Cp=2,ds,Lg,eI,Fg=function(l){var h;return XC(l)&&qD(h=l.then)?h:!1},u_=function(l,h){var g=h.value,y=h.state===ed,w=y?l.ok:l.fail,T=l.resolve,I=l.reject,R=l.domain,$,B,V;try{w?(y||(h.rejection===Cp&&rI(h),h.rejection=oC),w===!0?$=g:(R&&R.enter(),$=w(g),R&&(R.exit(),V=!0)),$===l.promise?I(new ZC("Promise-chain cycle")):(B=Fg($))?s_(B,$,T,I):T($)):I(g)}catch(et){R&&!V&&R.exit(),I(et)}},aC=function(l,h){l.notified||(l.notified=!0,JD(function(){for(var g=l.reactions,y;y=g.get();)u_(y,l);l.notified=!1,h&&!l.rejection&&ee(l)}))},te=function(l,h,g){var y,w;xP?(y=IT.createEvent("Event"),y.promise=h,y.reason=g,y.initEvent(l,!1,!0),hs.dispatchEvent(y)):y={promise:h,reason:g},!kP&&(w=hs["on"+l])?w(y):l===iC&&qC("Unhandled promise rejection",g)},ee=function(l){s_(KD,hs,function(){var h=l.facade,g=l.value,y=Ze(l),w;if(y&&(w=SP(function(){Rg?PT.emit("unhandledRejection",g,h):te(iC,h,g)}),l.rejection=Rg||Ze(l)?Cp:oC,w.error))throw w.value})},Ze=function(l){return l.rejection!==oC&&!l.parent},rI=function(l){s_(KD,hs,function(){var h=l.facade;Rg?PT.emit("rejectionHandled",h):te(OP,h,l.value)})},fs=function(l,h,g){return function(y){l(h,y,g)}},ur=function(l,h,g){l.done||(l.done=!0,g&&(l=g),l.value=h,l.state=tI,aC(l,!0))},rd=function(l,h,g){if(!l.done){l.done=!0,g&&(l=g);try{if(l.facade===h)throw new ZC("Promise can't be resolved itself");var y=Fg(h);y?JD(function(){var w={done:!1};try{s_(y,h,fs(rd,w,l),fs(ur,w,l))}catch(T){ur(w,T,l)}}):(l.value=h,l.state=ed,aC(l,!1))}catch(w){ur({done:!1},w,l)}}};JC&&(jg=function(h){Dp(this,eC),XD(h),s_(ds,this);var g=QD(this);try{h(fs(rd,g),fs(ur,g))}catch(y){ur(g,y)}},eC=jg.prototype,ds=function(h){TP(this,{type:CT,done:!1,notified:!1,parent:!1,reactions:new td,rejection:!1,state:QC,value:void 0})},ds.prototype=VC(eC,"then",function(h,g){var y=QD(this),w=rC(_P(this,jg));return y.parent=!0,w.ok=qD(h)?h:!0,w.fail=qD(g)&&g,w.domain=Rg?PT.domain:void 0,y.state===QC?y.reactions.add(w):JD(function(){u_(w,y)}),w.promise}),Lg=function(){var l=new ds,h=QD(l);this.promise=l,this.resolve=fs(rd,h),this.reject=fs(ur,h)},DT.f=rC=function(l){return l===jg||l===eI?new Lg(l):nC(l)}),VD({global:!0,constructor:!0,wrap:!0,forced:JC},{Promise:jg}),ET(jg,CT,!1,!0),wP(CT);var EP=$g,DP=bf,CP=Ng.CONSTRUCTOR,AT=CP||!DP(function(l){EP.all(l).then(void 0,function(){})}),nI=Mt,IP=Ue,PP=gn,sC=pa,uC=Ag,iI=lt,nd=AT;nI({target:"Promise",stat:!0,forced:nd},{all:function(h){var g=this,y=sC.f(g),w=y.resolve,T=y.reject,I=uC(function(){var R=PP(g.resolve),$=[],B=0,V=1;iI(h,function(et){var Z=B++,rt=!1;V++,IP(R,g,et).then(function(xt){rt||(rt=!0,$[Z]=xt,--V||w($))},T)}),--V||w($)});return I.error&&T(I.value),y.promise}});var va=Mt,ps=Ng.CONSTRUCTOR,$T=$g;$T&&$T.prototype,va({target:"Promise",proto:!0,forced:ps,real:!0},{catch:function(l){return this.then(void 0,l)}});var Yg=Mt,lC=Ue,oI=gn,AP=pa,aI=Ag,$P=lt,cC=AT;Yg({target:"Promise",stat:!0,forced:cC},{race:function(h){var g=this,y=AP.f(g),w=y.reject,T=aI(function(){var I=oI(g.resolve);$P(h,function(R){lC(I,g,R).then(y.resolve,w)})});return T.error&&w(T.value),y.promise}});var l_=Mt,hC=Ue,Ii=pa,Zn=Ng.CONSTRUCTOR;l_({target:"Promise",stat:!0,forced:Zn},{reject:function(h){var g=Ii.f(this);return hC(g.reject,void 0,h),g.promise}});var nc=_n,lo=be,MT=pa,He=function(l,h){if(nc(l),lo(h)&&h.constructor===l)return h;var g=MT.f(l),y=g.resolve;return y(h),g.promise},ne=Mt,ke=er,Xe=Qg,Bg=$g,yr=Ng.CONSTRUCTOR,Hg=He,MP=ke("Promise"),NP=!yr;ne({target:"Promise",stat:!0,forced:Xe},{resolve:function(h){return Hg(NP&&this===MP?Bg:this,h)}});var Iu=Mt,RP=Ue,jP=gn,t=pa,e=Ag,n=lt,r=AT;Iu({target:"Promise",stat:!0,forced:r},{allSettled:function(h){var g=this,y=t.f(g),w=y.resolve,T=y.reject,I=e(function(){var R=jP(g.resolve),$=[],B=0,V=1;n(h,function(et){var Z=B++,rt=!1;V++,RP(R,g,et).then(function(xt){rt||(rt=!0,$[Z]={status:"fulfilled",value:xt},--V||w($))},function(xt){rt||(rt=!0,$[Z]={status:"rejected",reason:xt},--V||w($))})}),--V||w($)});return I.error&&T(I.value),y.promise}});var o=Mt,a=Ue,s=gn,d=er,p=pa,_=Ag,x=lt,O=AT,C="No one promise resolved";o({target:"Promise",stat:!0,forced:O},{any:function(h){var g=this,y=d("AggregateError"),w=p.f(g),T=w.resolve,I=w.reject,R=_(function(){var $=s(g.resolve),B=[],V=0,et=1,Z=!1;x(h,function(rt){var xt=V++,Ht=!1;et++,a($,g,rt).then(function(zt){Ht||Z||(Z=!0,T(zt))},function(zt){Ht||Z||(Ht=!0,B[xt]=zt,--et||I(new y(B,C)))})}),--et||I(new y(B,C))});return R.error&&I(R.value),w.promise}});var Y=Mt,j=$g,G=dt,X=er,q=Re,tt=EC,ot=He,wt=j&&j.prototype,It=!!j&&G(function(){wt.finally.call({then:function(){}},function(){})});Y({target:"Promise",proto:!0,real:!0,forced:It},{finally:function(l){var h=tt(this,X("Promise")),g=q(l);return this.then(g?function(y){return ot(h,l()).then(function(){return y})}:l,g?function(y){return ot(h,l()).then(function(){throw y})}:l)}});var pt=Oe,bt=pt.Promise,ut=bt,Lt=ut,re=Mt,lr=pa;re({target:"Promise",stat:!0},{withResolvers:function(){var h=lr.f(this);return{promise:h.promise,resolve:h.resolve,reject:h.reject}}});var dr=Lt,co=dr,Ip=Mt,Gg=pa,c_=Ag;Ip({target:"Promise",stat:!0,forced:!0},{try:function(l){var h=Gg.f(this),g=c_(l);return(g.error?h.reject:h.resolve)(g.value),h.promise}});var dC=co,sI=dC,Pi=sI,fC=dk,NT=fC,pC=NT,F$=pC,Y$=F$;(function(l){var h=v.default,g=xc,y=Zb,w=dT,T=xg,I=A,R=V0,$=qw,B=Pi,V=Y$,et=Q0;function Z(){l.exports=Z=function(){return xt},l.exports.__esModule=!0,l.exports.default=l.exports;var rt,xt={},Ht=Object.prototype,zt=Ht.hasOwnProperty,ae=g||function(Ct,gt,_t){Ct[gt]=_t.value},he=typeof y=="function"?y:{},Qn=he.iterator||"@@iterator",Gr=he.asyncIterator||"@@asyncIterator",$i=he.toStringTag||"@@toStringTag";function Wr(Ct,gt,_t){return g(Ct,gt,{value:_t,enumerable:!0,configurable:!0,writable:!0}),Ct[gt]}try{Wr({},"")}catch(Ct){Wr=function(_t,Yt,ue){return _t[Yt]=ue}}function Ap(Ct,gt,_t,Yt){var ue=gt&&gt.prototype instanceof jT?gt:jT,Zt=w(ue.prototype),vn=new nA(Yt||[]);return ae(Zt,"_invoke",{value:XR(Ct,_t,vn)}),Zt}function vs(Ct,gt,_t){try{return{type:"normal",arg:Ct.call(gt,_t)}}catch(Yt){return{type:"throw",arg:Yt}}}xt.wrap=Ap;var zg="suspendedStart",RT="suspendedYield",Ug="executing",od="completed",Pu={};function jT(){}function fI(){}function f_(){}var tA={};Wr(tA,Qn,function(){return this});var eA=T,pI=eA&&eA(eA(iA([])));pI&&pI!==Ht&&zt.call(pI,Qn)&&(tA=pI);var LT=f_.prototype=jT.prototype=w(tA);function ZA(Ct){var gt;I(gt=["next","throw","return"]).call(gt,function(_t){Wr(Ct,_t,function(Yt){return this._invoke(_t,Yt)})})}function vI(Ct,gt){function _t(ue,Zt,vn,Mo){var ga=vs(Ct[ue],Ct,Zt);if(ga.type!=="throw"){var p_=ga.arg,Vg=p_.value;return Vg&&h(Vg)=="object"&&zt.call(Vg,"__await")?gt.resolve(Vg.__await).then(function(v_){_t("next",v_,vn,Mo)},function(v_){_t("throw",v_,vn,Mo)}):gt.resolve(Vg).then(function(v_){p_.value=v_,vn(p_)},function(v_){return _t("throw",v_,vn,Mo)})}Mo(ga.arg)}var Yt;ae(this,"_invoke",{value:function(Zt,vn){function Mo(){return new gt(function(ga,p_){_t(Zt,vn,ga,p_)})}return Yt=Yt?Yt.then(Mo,Mo):Mo()}})}function XR(Ct,gt,_t){var Yt=zg;return function(ue,Zt){if(Yt===Ug)throw new Error("Generator is already running");if(Yt===od){if(ue==="throw")throw Zt;return{value:rt,done:!0}}for(_t.method=ue,_t.arg=Zt;;){var vn=_t.delegate;if(vn){var Mo=QA(vn,_t);if(Mo){if(Mo===Pu)continue;return Mo}}if(_t.method==="next")_t.sent=_t._sent=_t.arg;else if(_t.method==="throw"){if(Yt===zg)throw Yt=od,_t.arg;_t.dispatchException(_t.arg)}else _t.method==="return"&&_t.abrupt("return",_t.arg);Yt=Ug;var ga=vs(Ct,gt,_t);if(ga.type==="normal"){if(Yt=_t.done?od:RT,ga.arg===Pu)continue;return{value:ga.arg,done:_t.done}}ga.type==="throw"&&(Yt=od,_t.method="throw",_t.arg=ga.arg)}}}function QA(Ct,gt){var _t=gt.method,Yt=Ct.iterator[_t];if(Yt===rt)return gt.delegate=null,_t==="throw"&&Ct.iterator.return&&(gt.method="return",gt.arg=rt,QA(Ct,gt),gt.method==="throw")||_t!=="return"&&(gt.method="throw",gt.arg=new TypeError("The iterator does not provide a '"+_t+"' method")),Pu;var ue=vs(Yt,Ct.iterator,gt.arg);if(ue.type==="throw")return gt.method="throw",gt.arg=ue.arg,gt.delegate=null,Pu;var Zt=ue.arg;return Zt?Zt.done?(gt[Ct.resultName]=Zt.value,gt.next=Ct.nextLoc,gt.method!=="return"&&(gt.method="next",gt.arg=rt),gt.delegate=null,Pu):Zt:(gt.method="throw",gt.arg=new TypeError("iterator result is not an object"),gt.delegate=null,Pu)}function qR(Ct){var gt,_t={tryLoc:Ct[0]};1 in Ct&&(_t.catchLoc=Ct[1]),2 in Ct&&(_t.finallyLoc=Ct[2],_t.afterLoc=Ct[3]),R(gt=this.tryEntries).call(gt,_t)}function rA(Ct){var gt=Ct.completion||{};gt.type="normal",delete gt.arg,Ct.completion=gt}function nA(Ct){this.tryEntries=[{tryLoc:"root"}],I(Ct).call(Ct,qR,this),this.reset(!0)}function iA(Ct){if(Ct||Ct===""){var gt=Ct[Qn];if(gt)return gt.call(Ct);if(typeof Ct.next=="function")return Ct;if(!isNaN(Ct.length)){var _t=-1,Yt=function ue(){for(;++_t<Ct.length;)if(zt.call(Ct,_t))return ue.value=Ct[_t],ue.done=!1,ue;return ue.value=rt,ue.done=!0,ue};return Yt.next=Yt}}throw new TypeError(h(Ct)+" is not iterable")}return fI.prototype=f_,ae(LT,"constructor",{value:f_,configurable:!0}),ae(f_,"constructor",{value:fI,configurable:!0}),fI.displayName=Wr(f_,$i,"GeneratorFunction"),xt.isGeneratorFunction=function(Ct){var gt=typeof Ct=="function"&&Ct.constructor;return!!gt&&(gt===fI||(gt.displayName||gt.name)==="GeneratorFunction")},xt.mark=function(Ct){return $?$(Ct,f_):(Ct.__proto__=f_,Wr(Ct,$i,"GeneratorFunction")),Ct.prototype=w(LT),Ct},xt.awrap=function(Ct){return{__await:Ct}},ZA(vI.prototype),Wr(vI.prototype,Gr,function(){return this}),xt.AsyncIterator=vI,xt.async=function(Ct,gt,_t,Yt,ue){ue===void 0&&(ue=B);var Zt=new vI(Ap(Ct,gt,_t,Yt),ue);return xt.isGeneratorFunction(gt)?Zt:Zt.next().then(function(vn){return vn.done?vn.value:Zt.next()})},ZA(LT),Wr(LT,$i,"Generator"),Wr(LT,Qn,function(){return this}),Wr(LT,"toString",function(){return"[object Generator]"}),xt.keys=function(Ct){var gt=Object(Ct),_t=[];for(var Yt in gt)R(_t).call(_t,Yt);return V(_t).call(_t),function ue(){for(;_t.length;){var Zt=_t.pop();if(Zt in gt)return ue.value=Zt,ue.done=!1,ue}return ue.done=!0,ue}},xt.values=iA,nA.prototype={constructor:nA,reset:function(gt){var _t;if(this.prev=0,this.next=0,this.sent=this._sent=rt,this.done=!1,this.delegate=null,this.method="next",this.arg=rt,I(_t=this.tryEntries).call(_t,rA),!gt)for(var Yt in this)Yt.charAt(0)==="t"&&zt.call(this,Yt)&&!isNaN(+et(Yt).call(Yt,1))&&(this[Yt]=rt)},stop:function(){this.done=!0;var gt=this.tryEntries[0].completion;if(gt.type==="throw")throw gt.arg;return this.rval},dispatchException:function(gt){if(this.done)throw gt;var _t=this;function Yt(p_,Vg){return vn.type="throw",vn.arg=gt,_t.next=p_,Vg&&(_t.method="next",_t.arg=rt),!!Vg}for(var ue=this.tryEntries.length-1;ue>=0;--ue){var Zt=this.tryEntries[ue],vn=Zt.completion;if(Zt.tryLoc==="root")return Yt("end");if(Zt.tryLoc<=this.prev){var Mo=zt.call(Zt,"catchLoc"),ga=zt.call(Zt,"finallyLoc");if(Mo&&ga){if(this.prev<Zt.catchLoc)return Yt(Zt.catchLoc,!0);if(this.prev<Zt.finallyLoc)return Yt(Zt.finallyLoc)}else if(Mo){if(this.prev<Zt.catchLoc)return Yt(Zt.catchLoc,!0)}else{if(!ga)throw new Error("try statement without catch or finally");if(this.prev<Zt.finallyLoc)return Yt(Zt.finallyLoc)}}}},abrupt:function(gt,_t){for(var Yt=this.tryEntries.length-1;Yt>=0;--Yt){var ue=this.tryEntries[Yt];if(ue.tryLoc<=this.prev&&zt.call(ue,"finallyLoc")&&this.prev<ue.finallyLoc){var Zt=ue;break}}Zt&&(gt==="break"||gt==="continue")&&Zt.tryLoc<=_t&&_t<=Zt.finallyLoc&&(Zt=null);var vn=Zt?Zt.completion:{};return vn.type=gt,vn.arg=_t,Zt?(this.method="next",this.next=Zt.finallyLoc,Pu):this.complete(vn)},complete:function(gt,_t){if(gt.type==="throw")throw gt.arg;return gt.type==="break"||gt.type==="continue"?this.next=gt.arg:gt.type==="return"?(this.rval=this.arg=gt.arg,this.method="return",this.next="end"):gt.type==="normal"&&_t&&(this.next=_t),Pu},finish:function(gt){for(var _t=this.tryEntries.length-1;_t>=0;--_t){var Yt=this.tryEntries[_t];if(Yt.finallyLoc===gt)return this.complete(Yt.completion,Yt.afterLoc),rA(Yt),Pu}},catch:function(gt){for(var _t=this.tryEntries.length-1;_t>=0;--_t){var Yt=this.tryEntries[_t];if(Yt.tryLoc===gt){var ue=Yt.completion;if(ue.type==="throw"){var Zt=ue.arg;rA(Yt)}return Zt}}throw new Error("illegal catch attempt")},delegateYield:function(gt,_t,Yt){return this.delegate={iterator:iA(gt),resultName:_t,nextLoc:Yt},this.method==="next"&&(this.arg=rt),Pu}},xt}l.exports=Z,l.exports.__esModule=!0,l.exports.default=l.exports})(u);var B$=u.exports,uI=B$(),H$=uI;try{regeneratorRuntime=uI}catch(l){typeof globalThis=="object"?globalThis.regeneratorRuntime=uI:Function("r","regeneratorRuntime = r")(uI)}var ma=z(H$),gA={exports:{}},G$=dt,W$=G$(function(){if(typeof ArrayBuffer=="function"){var l=new ArrayBuffer(8);Object.isExtensible(l)&&Object.defineProperty(l,"a",{value:8})}}),z$=dt,U$=be,V$=ho,yA=W$,lI=Object.isExtensible,X$=z$(function(){lI(1)}),q$=X$||yA?function(h){return!U$(h)||yA&&V$(h)==="ArrayBuffer"?!1:lI?lI(h):!0}:lI,K$=dt,J$=!K$(function(){return Object.isExtensible(Object.preventExtensions({}))}),Z$=Mt,Q$=ye,tM=Hs,eM=be,LP=or,rM=jr.f,bA=Vs,nM=kn,FP=q$,iM=Lo,oM=J$,wA=!1,Pp=iM("meta"),aM=0,YP=function(l){rM(l,Pp,{value:{objectID:"O"+aM++,weakData:{}}})},sM=function(l,h){if(!eM(l))return typeof l=="symbol"?l:(typeof l=="string"?"S":"P")+l;if(!LP(l,Pp)){if(!FP(l))return"F";if(!h)return"E";YP(l)}return l[Pp].objectID},uM=function(l,h){if(!LP(l,Pp)){if(!FP(l))return!0;if(!h)return!1;YP(l)}return l[Pp].weakData},lM=function(l){return oM&&wA&&FP(l)&&!LP(l,Pp)&&YP(l),l},cM=function(){hM.enable=function(){},wA=!0;var l=bA.f,h=Q$([].splice),g={};g[Pp]=1,l(g).length&&(bA.f=function(y){for(var w=l(y),T=0,I=w.length;T<I;T++)if(w[T]===Pp){h(w,T,1);break}return w},Z$({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:nM.f}))},hM=gA.exports={enable:cM,fastKey:sM,getWeakData:uM,onFreeze:lM};tM[Pp]=!0;var _A=gA.exports,dM=Mt,fM=St,pM=_A,vM=dt,mM=Sn,gM=lt,yM=wT,bM=Re,wM=be,_M=Ro,SM=qs,kM=jr.f,TM=hl.forEach,xM=je,SA=Js,OM=SA.set,EM=SA.getterFor,kA=function(l,h,g){var y=l.indexOf("Map")!==-1,w=l.indexOf("Weak")!==-1,T=y?"set":"add",I=fM[l],R=I&&I.prototype,$={},B;if(!xM||!bM(I)||!(w||R.forEach&&!vM(function(){new I().entries().next()})))B=g.getConstructor(h,l,y,T),pM.enable();else{B=h(function(Z,rt){OM(yM(Z,V),{type:l,collection:new I}),_M(rt)||gM(rt,Z[T],{that:Z,AS_ENTRIES:y})});var V=B.prototype,et=EM(l);TM(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(Z){var rt=Z==="add"||Z==="set";Z in R&&!(w&&Z==="clear")&&mM(V,Z,function(xt,Ht){var zt=et(this).collection;if(!rt&&w&&!wM(xt))return Z==="get"?void 0:!1;var ae=zt[Z](xt===0?0:xt,Ht);return rt?this:ae})}),w||kM(V,"size",{configurable:!0,get:function(){return et(this).collection.size}})}return SM(B,l,!1,!0),$[l]=B,dM({global:!0,forced:!0},$),w||g.setStrong(B,l,y),B},DM=W,CM=function(l,h,g){for(var y in h)g&&g.unsafe&&l[y]?l[y]=h[y]:DM(l,y,h[y],g);return l},IM=Uo,PM=vt,TA=CM,AM=Bo,$M=wT,MM=Ro,NM=lt,RM=Kv,cI=Yb,jM=OC,vC=je,xA=_A.fastKey,OA=Js,EA=OA.set,BP=OA.getterFor,DA={getConstructor:function(l,h,g,y){var w=l(function(B,V){$M(B,T),EA(B,{type:h,index:IM(null),first:void 0,last:void 0,size:0}),vC||(B.size=0),MM(V)||NM(V,B[y],{that:B,AS_ENTRIES:g})}),T=w.prototype,I=BP(h),R=function(B,V,et){var Z=I(B),rt=$(B,V),xt,Ht;return rt?rt.value=et:(Z.last=rt={index:Ht=xA(V,!0),key:V,value:et,previous:xt=Z.last,next:void 0,removed:!1},Z.first||(Z.first=rt),xt&&(xt.next=rt),vC?Z.size++:B.size++,Ht!=="F"&&(Z.index[Ht]=rt)),B},$=function(B,V){var et=I(B),Z=xA(V),rt;if(Z!=="F")return et.index[Z];for(rt=et.first;rt;rt=rt.next)if(rt.key===V)return rt};return TA(T,{clear:function(){for(var V=this,et=I(V),Z=et.index,rt=et.first;rt;)rt.removed=!0,rt.previous&&(rt.previous=rt.previous.next=void 0),delete Z[rt.index],rt=rt.next;et.first=et.last=void 0,vC?et.size=0:V.size=0},delete:function(B){var V=this,et=I(V),Z=$(V,B);if(Z){var rt=Z.next,xt=Z.previous;delete et.index[Z.index],Z.removed=!0,xt&&(xt.next=rt),rt&&(rt.previous=xt),et.first===Z&&(et.first=rt),et.last===Z&&(et.last=xt),vC?et.size--:V.size--}return!!Z},forEach:function(V){for(var et=I(this),Z=AM(V,arguments.length>1?arguments[1]:void 0),rt;rt=rt?rt.next:et.first;)for(Z(rt.value,rt.key,this);rt&&rt.removed;)rt=rt.previous},has:function(V){return!!$(this,V)}}),TA(T,g?{get:function(V){var et=$(this,V);return et&&et.value},set:function(V,et){return R(this,V===0?0:V,et)}}:{add:function(V){return R(this,V=V===0?0:V,V)}}),vC&&PM(T,"size",{configurable:!0,get:function(){return I(this).size}}),w},setStrong:function(l,h,g){var y=h+" Iterator",w=BP(h),T=BP(y);RM(l,h,function(I,R){EA(this,{type:y,target:I,state:w(I),kind:R,last:void 0})},function(){for(var I=T(this),R=I.kind,$=I.last;$&&$.removed;)$=$.previous;return!I.target||!(I.last=$=$?$.next:I.state.first)?(I.target=void 0,cI(void 0,!0)):cI(R==="keys"?$.key:R==="values"?$.value:[$.key,$.value],!1)},g?"entries":"values",!g,!0),jM(h)}},LM=kA,FM=DA;LM("Map",function(l){return function(){return l(this,arguments.length?arguments[0]:void 0)}},FM);var YM=Oe,BM=YM.Map,HM=BM,GM=HM,WM=GM,CA=z(WM),zM=Mt,UM=hl.some,VM=cm,XM=VM("some");zM({target:"Array",proto:!0,forced:!XM},{some:function(h){return UM(this,h,arguments.length>1?arguments[1]:void 0)}});var qM=Yr,KM=qM("Array","some"),JM=Fe,ZM=KM,HP=Array.prototype,QM=function(l){var h=l.some;return l===HP||JM(HP,l)&&h===HP.some?ZM:h},tN=QM,eN=tN,rN=eN,nN=z(rN),iN=Yr,oN=iN("Array","keys"),aN=oN,sN=aN,uN=Vr,lN=or,cN=Fe,hN=sN,GP=Array.prototype,dN={DOMTokenList:!0,NodeList:!0},fN=function(l){var h=l.keys;return l===GP||cN(GP,l)&&h===GP.keys||lN(dN,uN(l))?hN:h},pN=fN,h_=z(pN),IA=Vo,vN=Math.floor,WP=function(l,h){var g=l.length,y=vN(g/2);return g<8?mN(l,h):gN(l,WP(IA(l,0,y),h),WP(IA(l,y),h),h)},mN=function(l,h){for(var g=l.length,y=1,w,T;y<g;){for(T=y,w=l[y];T&&h(l[T-1],w)>0;)l[T]=l[--T];T!==y++&&(l[T]=w)}return l},gN=function(l,h,g,y){for(var w=h.length,T=g.length,I=0,R=0;I<w||R<T;)l[I+R]=I<w&&R<T?y(h[I],g[R])<=0?h[I++]:g[R++]:I<w?h[I++]:g[R++];return l},yN=WP,bN=Pn,PA=bN.match(/firefox\/(\d+)/i),wN=!!PA&&+PA[1],_N=Pn,SN=/MSIE|Trident/.test(_N),kN=Pn,AA=kN.match(/AppleWebKit\/(\d+)\./),TN=!!AA&&+AA[1],xN=Mt,$A=ye,ON=gn,EN=ir,MA=Lr,DN=$l,NA=oi,zP=dt,CN=yN,IN=cm,RA=wN,PN=SN,jA=po,LA=TN,Wg=[],FA=$A(Wg.sort),AN=$A(Wg.push),$N=zP(function(){Wg.sort(void 0)}),MN=zP(function(){Wg.sort(null)}),NN=IN("sort"),YA=!zP(function(){if(jA)return jA<70;if(!(RA&&RA>3)){if(PN)return!0;if(LA)return LA<603;var l="",h,g,y,w;for(h=65;h<76;h++){switch(g=String.fromCharCode(h),h){case 66:case 69:case 70:case 72:y=3;break;case 68:case 71:y=4;break;default:y=2}for(w=0;w<47;w++)Wg.push({k:g+w,v:y})}for(Wg.sort(function(T,I){return I.v-T.v}),w=0;w<Wg.length;w++)g=Wg[w].k.charAt(0),l.charAt(l.length-1)!==g&&(l+=g);return l!=="DGBEFHACIJK"}}),RN=$N||!MN||!NN||!YA,jN=function(l){return function(h,g){return g===void 0?-1:h===void 0?1:l!==void 0?+l(h,g)||0:NA(h)>NA(g)?1:-1}};xN({target:"Array",proto:!0,forced:RN},{sort:function(h){h!==void 0&&ON(h);var g=EN(this);if(YA)return h===void 0?FA(g):FA(g,h);var y=[],w=MA(g),T,I;for(I=0;I<w;I++)I in g&&AN(y,g[I]);for(CN(y,jN(h)),T=MA(y),I=0;I<T;)g[I]=y[I++];for(;I<w;)DN(g,I++);return g}});var LN=Yr,FN=LN("Array","sort"),YN=Fe,BN=FN,UP=Array.prototype,HN=function(l){var h=l.sort;return l===UP||YN(UP,l)&&h===UP.sort?BN:h},GN=HN,WN=GN,zN=WN,VP=z(zN),UN=Yr,VN=UN("Array","values"),XN=VN,qN=XN,KN=Vr,JN=or,ZN=Fe,QN=qN,XP=Array.prototype,tR={DOMTokenList:!0,NodeList:!0},eR=function(l){var h=l.values;return l===XP||ZN(XP,l)&&h===XP.values||JN(tR,KN(l))?QN:h},rR=eR,BA=z(rR),nR=ou,d_=z(nR),iR=Yr,oR=iR("Array","entries"),aR=oR,sR=aR,uR=Vr,lR=or,cR=Fe,hR=sR,qP=Array.prototype,dR={DOMTokenList:!0,NodeList:!0},fR=function(l){var h=l.entries;return l===qP||cR(qP,l)&&h===qP.entries||lR(dR,uR(l))?hR:h},pR=fR,vR=z(pR);let hI,mR=new Uint8Array(16);function gR(){if(!hI&&(hI=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!hI))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return hI(mR)}let Ai=[];for(let l=0;l<256;++l)Ai.push((l+256).toString(16).slice(1));function yR(l,h=0){return Ai[l[h+0]]+Ai[l[h+1]]+Ai[l[h+2]]+Ai[l[h+3]]+"-"+Ai[l[h+4]]+Ai[l[h+5]]+"-"+Ai[l[h+6]]+Ai[l[h+7]]+"-"+Ai[l[h+8]]+Ai[l[h+9]]+"-"+Ai[l[h+10]]+Ai[l[h+11]]+Ai[l[h+12]]+Ai[l[h+13]]+Ai[l[h+14]]+Ai[l[h+15]]}var HA={randomUUID:typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function bR(l,h,g){if(HA.randomUUID&&!h&&!l)return HA.randomUUID();l=l||{};let y=l.random||(l.rng||gR)();if(y[6]=y[6]&15|64,y[8]=y[8]&63|128,h){g=g||0;for(let w=0;w<16;++w)h[g+w]=y[w];return h}return yR(y)}function KP(l){return typeof l=="string"||typeof l=="number"}var GA=function(){function l(h){L(this,l),qi(this,"_queue",[]),qi(this,"_timeout",null),qi(this,"_extended",null),this.delay=null,this.max=1/0,this.setOptions(h)}return kl(l,[{key:"setOptions",value:function(g){g&&typeof g.delay!="undefined"&&(this.delay=g.delay),g&&typeof g.max!="undefined"&&(this.max=g.max),this._flushIfNeeded()}},{key:"destroy",value:function(){if(this.flush(),this._extended){for(var g=this._extended.object,y=this._extended.methods,w=0;w<y.length;w++){var T=y[w];T.original?g[T.name]=T.original:delete g[T.name]}this._extended=null}}},{key:"replace",value:function(g,y){var w=this,T=g[y];if(!T)throw new Error("Method "+y+" undefined");g[y]=function(){for(var I=arguments.length,R=new Array(I),$=0;$<I;$++)R[$]=arguments[$];w.queue({args:R,fn:T,context:this})}}},{key:"queue",value:function(g){typeof g=="function"?this._queue.push({fn:g}):this._queue.push(g),this._flushIfNeeded()}},{key:"_flushIfNeeded",value:function(){var g=this;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=_w(function(){g.flush()},this.delay))}},{key:"flush",value:function(){var g,y;qa(g=mk(y=this._queue).call(y,0)).call(g,function(w){w.fn.apply(w.context||w.fn,w.args||[])})}}],[{key:"extend",value:function(g,y){var w=new l(y);if(g.flush!==void 0)throw new Error("Target object already has a property flush");g.flush=function(){w.flush()};var T=[{name:"flush",original:void 0}];if(y&&y.replace)for(var I=0;I<y.replace.length;I++){var R=y.replace[I];T.push({name:R,original:g[R]}),w.replace(g,R)}return w._extended={object:g,methods:T},w}}]),l}(),WA=function(){function l(){L(this,l),qi(this,"_subscribers",{"*":[],add:[],remove:[],update:[]}),qi(this,"subscribe",l.prototype.on),qi(this,"unsubscribe",l.prototype.off)}return kl(l,[{key:"_trigger",value:function(g,y,w){var T,I;if(g==="*")throw new Error("Cannot trigger event *");qa(T=If(I=[]).call(I,xn(this._subscribers[g]),xn(this._subscribers["*"]))).call(T,function(R){R(g,y,w!=null?w:null)})}},{key:"on",value:function(g,y){typeof y=="function"&&this._subscribers[g].push(y)}},{key:"off",value:function(g,y){var w;this._subscribers[g]=Kr(w=this._subscribers[g]).call(w,function(T){return T!==y})}}]),l}(),wR=kA,_R=DA;wR("Set",function(l){return function(){return l(this,arguments.length?arguments[0]:void 0)}},_R);var SR=Oe,kR=SR.Set,TR=kR,xR=TR,OR=xR,dI=z(OR),ER=pm,DR=ER,CR=DR,IR=CR,PR=IR,AR=PR,$R=AR,MR=$R,NR=MR,RR=NR,JP=z(RR);function id(l,h){var g=typeof wh!="undefined"&&bm(l)||l["@@iterator"];if(!g){if(fn(l)||(g=jR(l))||h&&l&&typeof l.length=="number"){g&&(l=g);var y=0,w=function(){};return{s:w,n:function(){return y>=l.length?{done:!0}:{done:!1,value:l[y++]}},e:function(B){throw B},f:w}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var T=!0,I=!1,R;return{s:function(){g=g.call(l)},n:function(){var B=g.next();return T=B.done,B},e:function(B){I=!0,R=B},f:function(){try{!T&&g.return!=null&&g.return()}finally{if(I)throw R}}}}function jR(l,h){var g;if(l){if(typeof l=="string")return zA(l,h);var y=Pl(g=Object.prototype.toString.call(l)).call(g,8,-1);if(y==="Object"&&l.constructor&&(y=l.constructor.name),y==="Map"||y==="Set")return Ji(l);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return zA(l,h)}}function zA(l,h){(h==null||h>l.length)&&(h=l.length);for(var g=0,y=new Array(h);g<h;g++)y[g]=l[g];return y}var ZP=function(l){function h(g){L(this,h),this._pairs=g}return kl(h,[{key:l,value:ma.mark(function g(){var y,w,T,I,R;return ma.wrap(function(B){for(;;)switch(B.prev=B.next){case 0:y=id(this._pairs),B.prev=1,y.s();case 3:if((w=y.n()).done){B.next=9;break}return T=ci(w.value,2),I=T[0],R=T[1],B.next=7,[I,R];case 7:B.next=3;break;case 9:B.next=14;break;case 11:B.prev=11,B.t0=B.catch(1),y.e(B.t0);case 14:return B.prev=14,y.f(),B.finish(14);case 17:case"end":return B.stop()}},g,this,[[1,11,14,17]])})},{key:"entries",value:ma.mark(function g(){var y,w,T,I,R;return ma.wrap(function(B){for(;;)switch(B.prev=B.next){case 0:y=id(this._pairs),B.prev=1,y.s();case 3:if((w=y.n()).done){B.next=9;break}return T=ci(w.value,2),I=T[0],R=T[1],B.next=7,[I,R];case 7:B.next=3;break;case 9:B.next=14;break;case 11:B.prev=11,B.t0=B.catch(1),y.e(B.t0);case 14:return B.prev=14,y.f(),B.finish(14);case 17:case"end":return B.stop()}},g,this,[[1,11,14,17]])})},{key:"keys",value:ma.mark(function g(){var y,w,T,I;return ma.wrap(function($){for(;;)switch($.prev=$.next){case 0:y=id(this._pairs),$.prev=1,y.s();case 3:if((w=y.n()).done){$.next=9;break}return T=ci(w.value,1),I=T[0],$.next=7,I;case 7:$.next=3;break;case 9:$.next=14;break;case 11:$.prev=11,$.t0=$.catch(1),y.e($.t0);case 14:return $.prev=14,y.f(),$.finish(14);case 17:case"end":return $.stop()}},g,this,[[1,11,14,17]])})},{key:"values",value:ma.mark(function g(){var y,w,T,I;return ma.wrap(function($){for(;;)switch($.prev=$.next){case 0:y=id(this._pairs),$.prev=1,y.s();case 3:if((w=y.n()).done){$.next=9;break}return T=ci(w.value,2),I=T[1],$.next=7,I;case 7:$.next=3;break;case 9:$.next=14;break;case 11:$.prev=11,$.t0=$.catch(1),y.e($.t0);case 14:return $.prev=14,y.f(),$.finish(14);case 17:case"end":return $.stop()}},g,this,[[1,11,14,17]])})},{key:"toIdArray",value:function(){var y;return Zr(y=xn(this._pairs)).call(y,function(w){return w[0]})}},{key:"toItemArray",value:function(){var y;return Zr(y=xn(this._pairs)).call(y,function(w){return w[1]})}},{key:"toEntryArray",value:function(){return xn(this._pairs)}},{key:"toObjectMap",value:function(){var y=Ll(null),w=id(this._pairs),T;try{for(w.s();!(T=w.n()).done;){var I=ci(T.value,2),R=I[0],$=I[1];y[R]=$}}catch(B){w.e(B)}finally{w.f()}return y}},{key:"toMap",value:function(){return new CA(this._pairs)}},{key:"toIdSet",value:function(){return new dI(this.toIdArray())}},{key:"toItemSet",value:function(){return new dI(this.toItemArray())}},{key:"cache",value:function(){return new h(xn(this._pairs))}},{key:"distinct",value:function(y){var w=new dI,T=id(this._pairs),I;try{for(T.s();!(I=T.n()).done;){var R=ci(I.value,2),$=R[0],B=R[1];w.add(y(B,$))}}catch(V){T.e(V)}finally{T.f()}return w}},{key:"filter",value:function(y){var w=this._pairs;return new h({[d_](){return ma.mark(function T(){var I,R,$,B,V;return ma.wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:I=id(w),Z.prev=1,I.s();case 3:if((R=I.n()).done){Z.next=10;break}if($=ci(R.value,2),B=$[0],V=$[1],!y(V,B)){Z.next=8;break}return Z.next=8,[B,V];case 8:Z.next=3;break;case 10:Z.next=15;break;case 12:Z.prev=12,Z.t0=Z.catch(1),I.e(Z.t0);case 15:return Z.prev=15,I.f(),Z.finish(15);case 18:case"end":return Z.stop()}},T,null,[[1,12,15,18]])})()}})}},{key:"forEach",value:function(y){var w=id(this._pairs),T;try{for(w.s();!(T=w.n()).done;){var I=ci(T.value,2),R=I[0],$=I[1];y($,R)}}catch(B){w.e(B)}finally{w.f()}}},{key:"map",value:function(y){var w=this._pairs;return new h({[d_](){return ma.mark(function T(){var I,R,$,B,V;return ma.wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:I=id(w),Z.prev=1,I.s();case 3:if((R=I.n()).done){Z.next=9;break}return $=ci(R.value,2),B=$[0],V=$[1],Z.next=7,[B,y(V,B)];case 7:Z.next=3;break;case 9:Z.next=14;break;case 11:Z.prev=11,Z.t0=Z.catch(1),I.e(Z.t0);case 14:return Z.prev=14,I.f(),Z.finish(14);case 17:case"end":return Z.stop()}},T,null,[[1,11,14,17]])})()}})}},{key:"max",value:function(y){var w=JP(this._pairs),T=w.next();if(T.done)return null;for(var I=T.value[1],R=y(T.value[1],T.value[0]);!(T=w.next()).done;){var $=ci(T.value,2),B=$[0],V=$[1],et=y(V,B);et>R&&(R=et,I=V)}return I}},{key:"min",value:function(y){var w=JP(this._pairs),T=w.next();if(T.done)return null;for(var I=T.value[1],R=y(T.value[1],T.value[0]);!(T=w.next()).done;){var $=ci(T.value,2),B=$[0],V=$[1],et=y(V,B);et<R&&(R=et,I=V)}return I}},{key:"reduce",value:function(y,w){var T=id(this._pairs),I;try{for(T.s();!(I=T.n()).done;){var R=ci(I.value,2),$=R[0],B=R[1];w=y(w,B,$)}}catch(V){T.e(V)}finally{T.f()}return w}},{key:"sort",value:function(y){var w=this;return new h({[d_]:function(){var T;return JP(VP(T=xn(w._pairs)).call(T,function(I,R){var $=ci(I,2),B=$[0],V=$[1],et=ci(R,2),Z=et[0],rt=et[1];return y(V,rt,B,Z)}))}})}}]),h}(d_);function UA(l,h){var g=Mf(l);if(H){var y=H(l);h&&(y=Kr(y).call(y,function(w){return Ao(l,w).enumerable})),g.push.apply(g,y)}return g}function VA(l){for(var h=1;h<arguments.length;h++){var g,y,w=arguments[h]!=null?arguments[h]:{};h%2?qa(g=UA(Object(w),!0)).call(g,function(T){qi(l,T,w[T])}):uT?_D(l,uT(w)):qa(y=UA(Object(w))).call(y,function(T){cT(l,T,Ao(w,T))})}return l}function QP(l,h){var g=typeof wh!="undefined"&&bm(l)||l["@@iterator"];if(!g){if(fn(l)||(g=LR(l))||h&&l&&typeof l.length=="number"){g&&(l=g);var y=0,w=function(){};return{s:w,n:function(){return y>=l.length?{done:!0}:{done:!1,value:l[y++]}},e:function(B){throw B},f:w}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var T=!0,I=!1,R;return{s:function(){g=g.call(l)},n:function(){var B=g.next();return T=B.done,B},e:function(B){I=!0,R=B},f:function(){try{!T&&g.return!=null&&g.return()}finally{if(I)throw R}}}}function LR(l,h){var g;if(l){if(typeof l=="string")return XA(l,h);var y=Pl(g=Object.prototype.toString.call(l)).call(g,8,-1);if(y==="Object"&&l.constructor&&(y=l.constructor.name),y==="Map"||y==="Set")return Ji(l);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return XA(l,h)}}function XA(l,h){(h==null||h>l.length)&&(h=l.length);for(var g=0,y=new Array(h);g<h;g++)y[g]=l[g];return y}function FR(l){var h=YR();return function(){var y=so(l),w;if(h){var T=so(this).constructor;w=Su(y,arguments,T)}else w=y.apply(this,arguments);return Mr(this,w)}}function YR(){if(typeof Reflect=="undefined"||!Su||Su.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Su(Boolean,[],function(){})),!0}catch(l){return!1}}function BR(l,h){return l[h]==null&&(l[h]=bR()),l}var qA=function(l){kg(g,l);var h=FR(g);function g(y,w){var T;return L(this,g),T=h.call(this),qi(Vh(T),"_queue",null),y&&!fn(y)&&(w=y,y=[]),T._options=w||{},T._data=new CA,T.length=0,T._idProp=T._options.fieldId||"id",y&&y.length&&T.add(y),T.setOptions(w),T}return kl(g,[{key:"idProp",get:function(){return this._idProp}},{key:"setOptions",value:function(w){w&&w.queue!==void 0&&(w.queue===!1?this._queue&&(this._queue.destroy(),this._queue=null):(this._queue||(this._queue=GA.extend(this,{replace:["add","update","remove"]})),w.queue&&typeof w.queue=="object"&&this._queue.setOptions(w.queue)))}},{key:"add",value:function(w,T){var I=this,R=[],$;if(fn(w)){var B=Zr(w).call(w,function(Z){return Z[I._idProp]});if(nN(B).call(B,function(Z){return I._data.has(Z)}))throw new Error("A duplicate id was found in the parameter array.");for(var V=0,et=w.length;V<et;V++)$=this._addItem(w[V]),R.push($)}else if(w&&typeof w=="object")$=this._addItem(w),R.push($);else throw new Error("Unknown dataType");return R.length&&this._trigger("add",{items:R},T),R}},{key:"update",value:function(w,T){var I=this,R=[],$=[],B=[],V=[],et=this._idProp,Z=function(ae){var he=ae[et];if(he!=null&&I._data.has(he)){var Qn=ae,Gr=Lm({},I._data.get(he)),$i=I._updateItem(Qn);$.push($i),V.push(Qn),B.push(Gr)}else{var Wr=I._addItem(ae);R.push(Wr)}};if(fn(w))for(var rt=0,xt=w.length;rt<xt;rt++)w[rt]&&typeof w[rt]=="object"?Z(w[rt]):console.warn("Ignoring input item, which is not an object at index "+rt);else if(w&&typeof w=="object")Z(w);else throw new Error("Unknown dataType");if(R.length&&this._trigger("add",{items:R},T),$.length){var Ht={items:$,oldData:B,data:V};this._trigger("update",Ht,T)}return If(R).call(R,$)}},{key:"updateOnly",value:function(w,T){var I,R=this;fn(w)||(w=[w]);var $=Zr(I=Zr(w).call(w,function(V){var et=R._data.get(V[R._idProp]);if(et==null)throw new Error("Updating non-existent items is not allowed.");return{oldData:et,update:V}})).call(I,function(V){var et=V.oldData,Z=V.update,rt=et[R._idProp],xt=Wk(et,Z);return R._data.set(rt,xt),{id:rt,oldData:et,updatedData:xt}});if($.length){var B={items:Zr($).call($,function(V){return V.id}),oldData:Zr($).call($,function(V){return V.oldData}),data:Zr($).call($,function(V){return V.updatedData})};return this._trigger("update",B,T),B.items}else return[]}},{key:"get",value:function(w,T){var I=void 0,R=void 0,$=void 0;KP(w)?(I=w,$=T):fn(w)?(R=w,$=T):$=w;var B=$&&$.returnType==="Object"?"Object":"Array",V=$&&Kr($),et=[],Z=void 0,rt=void 0,xt=void 0;if(I!=null)Z=this._data.get(I),Z&&V&&!V(Z)&&(Z=void 0);else if(R!=null)for(var Ht=0,zt=R.length;Ht<zt;Ht++)Z=this._data.get(R[Ht]),Z!=null&&(!V||V(Z))&&et.push(Z);else{var ae;rt=xn(h_(ae=this._data).call(ae));for(var he=0,Qn=rt.length;he<Qn;he++)xt=rt[he],Z=this._data.get(xt),Z!=null&&(!V||V(Z))&&et.push(Z)}if($&&$.order&&I==null&&this._sort(et,$.order),$&&$.fields){var Gr=$.fields;if(I!=null&&Z!=null)Z=this._filterFields(Z,Gr);else for(var $i=0,Wr=et.length;$i<Wr;$i++)et[$i]=this._filterFields(et[$i],Gr)}if(B=="Object"){for(var Ap={},vs=0,zg=et.length;vs<zg;vs++){var RT=et[vs],Ug=RT[this._idProp];Ap[Ug]=RT}return Ap}else if(I!=null){var od;return(od=Z)!==null&&od!==void 0?od:null}else return et}},{key:"getIds",value:function(w){var T=this._data,I=w&&Kr(w),R=w&&w.order,$=xn(h_(T).call(T)),B=[];if(I)if(R){for(var V=[],et=0,Z=$.length;et<Z;et++){var rt=$[et],xt=this._data.get(rt);xt!=null&&I(xt)&&V.push(xt)}this._sort(V,R);for(var Ht=0,zt=V.length;Ht<zt;Ht++)B.push(V[Ht][this._idProp])}else for(var ae=0,he=$.length;ae<he;ae++){var Qn=$[ae],Gr=this._data.get(Qn);Gr!=null&&I(Gr)&&B.push(Gr[this._idProp])}else if(R){for(var $i=[],Wr=0,Ap=$.length;Wr<Ap;Wr++){var vs=$[Wr];$i.push(T.get(vs))}this._sort($i,R);for(var zg=0,RT=$i.length;zg<RT;zg++)B.push($i[zg][this._idProp])}else for(var Ug=0,od=$.length;Ug<od;Ug++){var Pu=$[Ug],jT=T.get(Pu);jT!=null&&B.push(jT[this._idProp])}return B}},{key:"getDataSet",value:function(){return this}},{key:"forEach",value:function(w,T){var I=T&&Kr(T),R=this._data,$=xn(h_(R).call(R));if(T&&T.order)for(var B=this.get(T),V=0,et=B.length;V<et;V++){var Z=B[V],rt=Z[this._idProp];w(Z,rt)}else for(var xt=0,Ht=$.length;xt<Ht;xt++){var zt=$[xt],ae=this._data.get(zt);ae!=null&&(!I||I(ae))&&w(ae,zt)}}},{key:"map",value:function(w,T){for(var I=T&&Kr(T),R=[],$=this._data,B=xn(h_($).call($)),V=0,et=B.length;V<et;V++){var Z=B[V],rt=this._data.get(Z);rt!=null&&(!I||I(rt))&&R.push(w(rt,Z))}return T&&T.order&&this._sort(R,T.order),R}},{key:"_filterFields",value:function(w,T){var I;return w&&p0(I=fn(T)?T:Mf(T)).call(I,function(R,$){return R[$]=w[$],R},{})}},{key:"_sort",value:function(w,T){if(typeof T=="string"){var I=T;VP(w).call(w,function(R,$){var B=R[I],V=$[I];return B>V?1:B<V?-1:0})}else if(typeof T=="function")VP(w).call(w,T);else throw new TypeError("Order must be a function or a string")}},{key:"remove",value:function(w,T){for(var I=[],R=[],$=fn(w)?w:[w],B=0,V=$.length;B<V;B++){var et=this._remove($[B]);if(et){var Z=et[this._idProp];Z!=null&&(I.push(Z),R.push(et))}}return I.length&&this._trigger("remove",{items:I,oldData:R},T),I}},{key:"_remove",value:function(w){var T;if(KP(w)?T=w:w&&typeof w=="object"&&(T=w[this._idProp]),T!=null&&this._data.has(T)){var I=this._data.get(T)||null;return this._data.delete(T),--this.length,I}return null}},{key:"clear",value:function(w){for(var T,I=xn(h_(T=this._data).call(T)),R=[],$=0,B=I.length;$<B;$++)R.push(this._data.get(I[$]));return this._data.clear(),this.length=0,this._trigger("remove",{items:I,oldData:R},w),I}},{key:"max",value:function(w){var T,I=null,R=null,$=QP(BA(T=this._data).call(T)),B;try{for($.s();!(B=$.n()).done;){var V=B.value,et=V[w];typeof et=="number"&&(R==null||et>R)&&(I=V,R=et)}}catch(Z){$.e(Z)}finally{$.f()}return I||null}},{key:"min",value:function(w){var T,I=null,R=null,$=QP(BA(T=this._data).call(T)),B;try{for($.s();!(B=$.n()).done;){var V=B.value,et=V[w];typeof et=="number"&&(R==null||et<R)&&(I=V,R=et)}}catch(Z){$.e(Z)}finally{$.f()}return I||null}},{key:"distinct",value:function(w){for(var T=this._data,I=xn(h_(T).call(T)),R=[],$=0,B=0,V=I.length;B<V;B++){for(var et=I[B],Z=T.get(et),rt=Z[w],xt=!1,Ht=0;Ht<$;Ht++)if(R[Ht]==rt){xt=!0;break}!xt&&rt!==void 0&&(R[$]=rt,$++)}return R}},{key:"_addItem",value:function(w){var T=BR(w,this._idProp),I=T[this._idProp];if(this._data.has(I))throw new Error("Cannot add item: item with id "+I+" already exists");return this._data.set(I,T),++this.length,I}},{key:"_updateItem",value:function(w){var T=w[this._idProp];if(T==null)throw new Error("Cannot update item: item has no id (item: "+Fl(w)+")");var I=this._data.get(T);if(!I)throw new Error("Cannot update item: no item with id "+T+" found");return this._data.set(T,VA(VA({},I),w)),T}},{key:"stream",value:function(w){if(w){var T=this._data;return new ZP({[d_](){return ma.mark(function R(){var $,B,V,et;return ma.wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:$=QP(w),rt.prev=1,$.s();case 3:if((B=$.n()).done){rt.next=11;break}if(V=B.value,et=T.get(V),et==null){rt.next=9;break}return rt.next=9,[V,et];case 9:rt.next=3;break;case 11:rt.next=16;break;case 13:rt.prev=13,rt.t0=rt.catch(1),$.e(rt.t0);case 16:return rt.prev=16,$.f(),rt.finish(16);case 19:case"end":return rt.stop()}},R,null,[[1,13,16,19]])})()}})}else{var I;return new ZP({[d_]:za(I=vR(this._data)).call(I,this._data)})}}}]),g}(WA);function HR(l,h){var g=typeof wh!="undefined"&&bm(l)||l["@@iterator"];if(!g){if(fn(l)||(g=GR(l))||h&&l&&typeof l.length=="number"){g&&(l=g);var y=0,w=function(){};return{s:w,n:function(){return y>=l.length?{done:!0}:{done:!1,value:l[y++]}},e:function(B){throw B},f:w}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var T=!0,I=!1,R;return{s:function(){g=g.call(l)},n:function(){var B=g.next();return T=B.done,B},e:function(B){I=!0,R=B},f:function(){try{!T&&g.return!=null&&g.return()}finally{if(I)throw R}}}}function GR(l,h){var g;if(l){if(typeof l=="string")return KA(l,h);var y=Pl(g=Object.prototype.toString.call(l)).call(g,8,-1);if(y==="Object"&&l.constructor&&(y=l.constructor.name),y==="Map"||y==="Set")return Ji(l);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return KA(l,h)}}function KA(l,h){(h==null||h>l.length)&&(h=l.length);for(var g=0,y=new Array(h);g<h;g++)y[g]=l[g];return y}function WR(l){var h=zR();return function(){var y=so(l),w;if(h){var T=so(this).constructor;w=Su(y,arguments,T)}else w=y.apply(this,arguments);return Mr(this,w)}}function zR(){if(typeof Reflect=="undefined"||!Su||Su.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Su(Boolean,[],function(){})),!0}catch(l){return!1}}var UR=function(l){kg(g,l);var h=WR(g);function g(y,w){var T,I;return L(this,g),I=h.call(this),qi(Vh(I),"length",0),qi(Vh(I),"_ids",new dI),I._options=w||{},I._listener=za(T=I._onEvent).call(T,Vh(I)),I.setData(y),I}return kl(g,[{key:"idProp",get:function(){return this.getDataSet().idProp}},{key:"setData",value:function(w){if(this._data){this._data.off&&this._data.off("*",this._listener);var T=this._data.getIds({filter:Kr(this._options)}),I=this._data.get(T);this._ids.clear(),this.length=0,this._trigger("remove",{items:T,oldData:I})}if(w!=null){this._data=w;for(var R=this._data.getIds({filter:Kr(this._options)}),$=0,B=R.length;$<B;$++){var V=R[$];this._ids.add(V)}this.length=R.length,this._trigger("add",{items:R})}else this._data=new qA;this._data.on&&this._data.on("*",this._listener)}},{key:"refresh",value:function(){for(var w=this._data.getIds({filter:Kr(this._options)}),T=xn(this._ids),I={},R=[],$=[],B=[],V=0,et=w.length;V<et;V++){var Z=w[V];I[Z]=!0,this._ids.has(Z)||(R.push(Z),this._ids.add(Z))}for(var rt=0,xt=T.length;rt<xt;rt++){var Ht=T[rt],zt=this._data.get(Ht);zt==null?console.error("If you see this, report it please."):I[Ht]||($.push(Ht),B.push(zt),this._ids.delete(Ht))}this.length+=R.length-$.length,R.length&&this._trigger("add",{items:R}),$.length&&this._trigger("remove",{items:$,oldData:B})}},{key:"get",value:function(w,T){if(this._data==null)return null;var I=null,R;KP(w)||fn(w)?(I=w,R=T):R=w;var $=Lm({},this._options,R),B=Kr(this._options),V=R&&Kr(R);return B&&V&&($.filter=function(et){return B(et)&&V(et)}),I==null?this._data.get($):this._data.get(I,$)}},{key:"getIds",value:function(w){if(this._data.length){var T=Kr(this._options),I=w!=null?Kr(w):null,R;return I?T?R=function(B){return T(B)&&I(B)}:R=I:R=T,this._data.getIds({filter:R,order:w&&w.order})}else return[]}},{key:"forEach",value:function(w,T){if(this._data){var I,R=Kr(this._options),$=T&&Kr(T),B;$?R?B=function(et){return R(et)&&$(et)}:B=$:B=R,qa(I=this._data).call(I,w,{filter:B,order:T&&T.order})}}},{key:"map",value:function(w,T){if(this._data){var I,R=Kr(this._options),$=T&&Kr(T),B;return $?R?B=function(et){return R(et)&&$(et)}:B=$:B=R,Zr(I=this._data).call(I,w,{filter:B,order:T&&T.order})}else return[]}},{key:"getDataSet",value:function(){return this._data.getDataSet()}},{key:"stream",value:function(w){var T;return this._data.stream(w||{[d_]:za(T=h_(this._ids)).call(T,this._ids)})}},{key:"dispose",value:function(){var w;(w=this._data)!==null&&w!==void 0&&w.off&&this._data.off("*",this._listener);var T="This data view has already been disposed of.",I={get:function(){throw new Error(T)},set:function(){throw new Error(T)},configurable:!1},R=HR(uw(g.prototype)),$;try{for(R.s();!($=R.n()).done;){var B=$.value;cT(this,B,I)}}catch(V){R.e(V)}finally{R.f()}}},{key:"_onEvent",value:function(w,T,I){if(!(!T||!T.items||!this._data)){var R=T.items,$=[],B=[],V=[],et=[],Z=[],rt=[];switch(w){case"add":for(var xt=0,Ht=R.length;xt<Ht;xt++){var zt=R[xt],ae=this.get(zt);ae&&(this._ids.add(zt),$.push(zt))}break;case"update":for(var he=0,Qn=R.length;he<Qn;he++){var Gr=R[he],$i=this.get(Gr);$i?this._ids.has(Gr)?(B.push(Gr),Z.push(T.data[he]),et.push(T.oldData[he])):(this._ids.add(Gr),$.push(Gr)):this._ids.has(Gr)&&(this._ids.delete(Gr),V.push(Gr),rt.push(T.oldData[he]))}break;case"remove":for(var Wr=0,Ap=R.length;Wr<Ap;Wr++){var vs=R[Wr];this._ids.has(vs)&&(this._ids.delete(vs),V.push(vs),rt.push(T.oldData[Wr]))}break}this.length+=$.length-V.length,$.length&&this._trigger("add",{items:$},I),B.length&&this._trigger("update",{items:B,oldData:et,data:Z},I),V.length&&this._trigger("remove",{items:V,oldData:rt},I)}}}]),g}(WA);function JA(l,h){return typeof h=="object"&&h!==null&&l===h.idProp&&typeof h.add=="function"&&typeof h.clear=="function"&&typeof h.distinct=="function"&&typeof qa(h)=="function"&&typeof h.get=="function"&&typeof h.getDataSet=="function"&&typeof h.getIds=="function"&&typeof h.length=="number"&&typeof Zr(h)=="function"&&typeof h.max=="function"&&typeof h.min=="function"&&typeof h.off=="function"&&typeof h.on=="function"&&typeof h.remove=="function"&&typeof h.setOptions=="function"&&typeof h.stream=="function"&&typeof h.update=="function"&&typeof h.updateOnly=="function"}function VR(l,h){return typeof h=="object"&&h!==null&&l===h.idProp&&typeof qa(h)=="function"&&typeof h.get=="function"&&typeof h.getDataSet=="function"&&typeof h.getIds=="function"&&typeof h.length=="number"&&typeof Zr(h)=="function"&&typeof h.off=="function"&&typeof h.on=="function"&&typeof h.stream=="function"&&JA(l,h.getDataSet())}F.DELETE=hg,F.DataSet=qA,F.DataStream=ZP,F.DataView=UR,F.Queue=GA,F.createNewDataPipeFrom=BO,F.isDataSetLike=JA,F.isDataViewLike=VR})});var l$=mI((yI,u$)=>{(function(F,L){typeof yI=="object"&&typeof u$!="undefined"?L(yI,o$(),s$()):typeof define=="function"&&define.amd?define(["exports","moment","vis-data/peer/umd/vis-data.js"],L):L((F=typeof globalThis!="undefined"?globalThis:F||self).vis=F.vis||{},F.moment,F.vis)})(yI,function(F,L,J){var z=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function nt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var yt={},St={get exports(){return yt},set exports(t){yt=t}},dt=function(t){return t&&t.Math==Math&&t},Gt=dt(typeof globalThis=="object"&&globalThis)||dt(typeof window=="object"&&window)||dt(typeof self=="object"&&self)||dt(typeof z=="object"&&z)||function(){return this}()||Function("return this")(),Wt=function(t){try{return!!t()}catch(e){return!0}},In=!Wt(function(){var t=function(){}.bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),Qe=In,zr=Function.prototype,Mi=zr.apply,Nt=zr.call,an=typeof Reflect=="object"&&Reflect.apply||(Qe?Nt.bind(Mi):function(){return Nt.apply(Mi,arguments)}),Pe=In,sn=Function.prototype,le=sn.call,ye=Pe&&sn.bind.bind(le,le),se=Pe?ye:function(t){return function(){return le.apply(t,arguments)}},fi=se,kr=fi({}.toString),ho=fi("".slice),fr=function(t){return ho(kr(t),8,-1)},oc=fr,$u=se,Tr=function(t){if(oc(t)==="Function")return $u(t)},ad=typeof document=="object"&&document.all,Te={all:ad,IS_HTMLDDA:ad===void 0&&ad!==void 0},Ni=Te.all,ie=Te.IS_HTMLDDA?function(t){return typeof t=="function"||t===Ni}:function(t){return typeof t=="function"},Re={},xe=!Wt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Ae=In,je=Function.prototype.call,Ur=Ae?je.bind(je):function(){return je.apply(je,arguments)},pi={},Ue={}.propertyIsEnumerable,Dt=Object.getOwnPropertyDescriptor,Mu=Dt&&!Ue.call({1:2},1);pi.f=Mu?function(t){var e=Dt(this,t);return!!e&&e.enumerable}:Ue;var un,ya,ei=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},sd=Wt,Kg=fr,gs=Object,No=se("".split),ac=sd(function(){return!gs("z").propertyIsEnumerable(0)})?function(t){return Kg(t)=="String"?No(t,""):gs(t)}:gs,ba=function(t){return t==null},Ro=ba,Jg=TypeError,ys=function(t){if(Ro(t))throw Jg("Can't call method on "+t);return t},ri=ac,ud=ys,tr=function(t){return ri(ud(t))},_e=ie,Ge=Te.all,xr=Te.IS_HTMLDDA?function(t){return typeof t=="object"?t!==null:_e(t)||t===Ge}:function(t){return typeof t=="object"?t!==null:_e(t)},we={},be=we,Oe=Gt,wr=ie,$e=function(t){return wr(t)?t:void 0},Xt=function(t,e){return arguments.length<2?$e(be[t])||$e(Oe[t]):be[t]&&be[t][e]||Oe[t]&&Oe[t][e]},Le=se({}.isPrototypeOf),er=typeof navigator!="undefined"&&String(navigator.userAgent)||"",bs=Gt,Fe=er,Pn=bs.process,fo=bs.Deno,An=Pn&&Pn.versions||fo&&fo.version,sc=An&&An.v8;sc&&(ya=(un=sc.split("."))[0]>0&&un[0]<4?1:+(un[0]+un[1])),!ya&&Fe&&(!(un=Fe.match(/Edge\/(\d+)/))||un[1]>=74)&&(un=Fe.match(/Chrome\/(\d+)/))&&(ya=+un[1]);var Ri=ya,ld=Ri,vi=Wt,rr=!!Object.getOwnPropertySymbols&&!vi(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&ld&&ld<41}),wa=rr&&!Symbol.sham&&typeof Symbol.iterator=="symbol",po=Xt,Et=ie,Zg=Le,Nu=Object,$n=wa?function(t){return typeof t=="symbol"}:function(t){var e=po("Symbol");return Et(e)&&Zg(e.prototype,Nu(t))},nr=String,qt=function(t){try{return nr(t)}catch(e){return"Object"}},uc=ie,Ee=qt,Or=TypeError,_a=function(t){if(uc(t))return t;throw Or(Ee(t)+" is not a function")},lc=_a,Er=ba,Nr=function(t,e){var n=t[e];return Er(n)?void 0:lc(n)},mn=Ur,De=ie,Mn=xr,ji=TypeError,ln={},gn={get exports(){return ln},set exports(t){ln=t}},$p=Gt,ws=Object.defineProperty,_s=function(t,e){try{ws($p,t,{value:e,configurable:!0,writable:!0})}catch(n){$p[t]=e}return e},Ru="__core-js_shared__",cn=Gt[Ru]||_s(Ru,{}),jo=cn;(gn.exports=function(t,e){return jo[t]||(jo[t]=e!==void 0?e:{})})("versions",[]).push({version:"3.29.0",mode:"pure",copyright:"\xA9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Mp=ys,yn=Object,bn=function(t){return yn(Mp(t))},Qg=bn,Kt=se({}.hasOwnProperty),Rr=Object.hasOwn||function(t,e){return Kt(Qg(t),e)},ty=se,Np=0,Rp=Math.random(),ju=ty(1 .toString),cc=function(t){return"Symbol("+(t===void 0?"":t)+")_"+ju(++Np+Rp,36)},hc=ln,cd=Rr,Ss=cc,ey=rr,Sa=wa,ir=Gt.Symbol,hd=hc("wks"),qe=Sa?ir.for||ir:ir&&ir.withoutSetter||Ss,cr=function(t){return cd(hd,t)||(hd[t]=ey&&cd(ir,t)?ir[t]:qe("Symbol."+t)),hd[t]},or=Ur,dd=xr,ks=$n,dc=Nr,jp=function(t,e){var n,r;if(e==="string"&&De(n=t.toString)&&!Mn(r=mn(n,t))||De(n=t.valueOf)&&!Mn(r=mn(n,t))||e!=="string"&&De(n=t.toString)&&!Mn(r=mn(n,t)))return r;throw ji("Can't convert object to primitive value")},Lo=TypeError,vo=cr("toPrimitive"),ry=function(t,e){if(!dd(t)||ks(t))return t;var n,r=dc(t,vo);if(r){if(e===void 0&&(e="default"),n=or(r,t,e),!dd(n)||ks(n))return n;throw Lo("Can't convert object to primitive value")}return e===void 0&&(e="number"),jp(t,e)},Lu=$n,Fu=function(t){var e=ry(t,"string");return Lu(e)?e:e+""},fc=xr,fd=Gt.document,Fo=fc(fd)&&fc(fd.createElement),pc=function(t){return Fo?fd.createElement(t):{}},Lp=pc,Ye=!xe&&!Wt(function(){return Object.defineProperty(Lp("div"),"a",{get:function(){return 7}}).a!=7}),ny=xe,pd=Ur,Fp=pi,iy=ei,oy=tr,ay=Fu,sy=Rr,Yp=Ye,Bp=Object.getOwnPropertyDescriptor;Re.f=ny?Bp:function(t,e){if(t=oy(t),e=ay(e),Yp)try{return Bp(t,e)}catch(n){}if(sy(t,e))return iy(!pd(Fp.f,t,e),t[e])};var uy=Wt,ly=ie,Yo=/#|\.prototype\./,Yu=function(t,e){var n=vd[Hp(t)];return n==vc||n!=cy&&(ly(e)?uy(e):!!e)},Hp=Yu.normalize=function(t){return String(t).replace(Yo,".").toLowerCase()},vd=Yu.data={},cy=Yu.NATIVE="N",vc=Yu.POLYFILL="P",md=Yu,gd=_a,hy=In,Li=Tr(Tr.bind),_r=function(t,e){return gd(t),e===void 0?t:hy?Li(t,e):function(){return t.apply(e,arguments)}},Nn={},Gp=xe&&Wt(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),dy=xr,fy=String,wn=TypeError,de=function(t){if(dy(t))return t;throw wn(fy(t)+" is not an object")},Bu=xe,Ts=Ye,mc=Gp,xs=de,Wp=Fu,ka=TypeError,Os=Object.defineProperty,Fi=Object.getOwnPropertyDescriptor,Ta="enumerable",Hu="configurable",ni="writable";Nn.f=Bu?mc?function(t,e,n){if(xs(t),e=Wp(e),xs(n),typeof t=="function"&&e==="prototype"&&"value"in n&&ni in n&&!n[ni]){var r=Fi(t,e);r&&r[ni]&&(t[e]=n.value,n={configurable:Hu in n?n[Hu]:r[Hu],enumerable:Ta in n?n[Ta]:r[Ta],writable:!1})}return Os(t,e,n)}:Os:function(t,e,n){if(xs(t),e=Wp(e),xs(n),Ts)try{return Os(t,e,n)}catch(r){}if("get"in n||"set"in n)throw ka("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var zp=Nn,mi=ei,mo=xe?function(t,e,n){return zp.f(t,e,mi(1,n))}:function(t,e,n){return t[e]=n,t},gc=Gt,Bo=an,jr=Tr,yd=ie,py=Re.f,xa=md,Es=we,Oa=_r,Ea=mo,_n=Rr,Rt=function(t){var e=function(n,r,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,o)}return Bo(t,this,arguments)};return e.prototype=t.prototype,e},Bt=function(t,e){var n,r,o,a,s,d,p,_,x,O=t.target,C=t.global,Y=t.stat,j=t.proto,G=C?gc:Y?gc[O]:(gc[O]||{}).prototype,X=C?Es:Es[O]||Ea(Es,O,{})[O],q=X.prototype;for(a in e)r=!(n=xa(C?a:O+(Y?".":"#")+a,t.forced))&&G&&_n(G,a),d=X[a],r&&(p=t.dontCallGetSet?(x=py(G,a))&&x.value:G[a]),s=r&&p?p:e[a],r&&typeof d==typeof s||(_=t.bind&&r?Oa(s,gc):t.wrap&&r?Rt(s):j&&yd(s)?jr(s):s,(t.sham||s&&s.sham||d&&d.sham)&&Ea(_,"sham",!0),Ea(X,a,_),j&&(_n(Es,o=O+"Prototype")||Ea(Es,o,{}),Ea(Es[o],a,s),t.real&&q&&(n||!q[a])&&Ea(q,a,s)))},yc=se([].slice),Da=se,bd=_a,Ds=xr,bc=Rr,Gu=yc,Cs=In,Is=Function,Yi=Da([].concat),vy=Da([].join),wd={},my=function(t,e,n){if(!bc(wd,e)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";wd[e]=Is("C,a","return new C("+vy(r,",")+")")}return wd[e](t,n)},Sn=Cs?Is.bind:function(t){var e=bd(this),n=e.prototype,r=Gu(arguments,1),o=function(){var a=Yi(r,Gu(arguments));return this instanceof o?my(e,a.length,a):e.apply(t,a)};return Ds(n)&&(o.prototype=n),o},Wu={};Wu[cr("toStringTag")]="z";var wc=String(Wu)==="[object z]",We=wc,Rn=ie,_c=fr,zu=cr("toStringTag"),Ps=Object,gy=_c(function(){return arguments}())=="Arguments",gi=We?_c:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,a){try{return o[a]}catch(s){}}(e=Ps(t),zu))=="string"?n:gy?_c(e):(r=_c(e))=="Object"&&Rn(e.callee)?"Arguments":r},yi=ie,Sc=cn,Mt=se(Function.toString);yi(Sc.inspectSource)||(Sc.inspectSource=function(t){return Mt(t)});var yy=Sc.inspectSource,kc=se,Ho=Wt,Tc=ie,Up=gi,Vp=yy,Bi=function(){},_d=[],Ca=Xt("Reflect","construct"),Uu=/^\s*(?:class|function)\b/,Xp=kc(Uu.exec),by=!Uu.exec(Bi),Vu=function(t){if(!Tc(t))return!1;try{return Ca(Bi,_d,t),!0}catch(e){return!1}},xc=function(t){if(!Tc(t))return!1;switch(Up(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return by||!!Xp(Uu,Vp(t))}catch(e){return!0}};xc.sham=!0;var Ia=!Ca||Ho(function(){var t;return Vu(Vu.call)||!Vu(Object)||!Vu(function(){t=!0})||t})?xc:Vu,wy=Ia,go=qt,_y=TypeError,Xu={},Sd=Math.ceil,qp=Math.floor,Oc=Math.trunc||function(t){var e=+t;return(e>0?qp:Sd)(e)},yo=function(t){var e=+t;return e!=e||e===0?0:Oc(e)},ii=yo,Hi=Math.max,kd=Math.min,Lr=function(t,e){var n=ii(t);return n<0?Hi(n+e,0):kd(n,e)},Kp=yo,Jp=Math.min,qu=function(t){return t>0?Jp(Kp(t),9007199254740991):0},bi=function(t){return qu(t.length)},Ku=tr,Sy=Lr,As=bi,Zp=function(t){return function(e,n,r){var o,a=Ku(e),s=As(a),d=Sy(r,s);if(t&&n!=n){for(;s>d;)if((o=a[d++])!=o)return!0}else for(;s>d;d++)if((t||d in a)&&a[d]===n)return t||d||0;return!t&&-1}},Pa={includes:Zp(!0),indexOf:Zp(!1)},$s={},Ju=Rr,ky=tr,Ty=Pa.indexOf,Ec=$s,Qp=se([].push),Td=function(t,e){var n,r=ky(t),o=0,a=[];for(n in r)!Ju(Ec,n)&&Ju(r,n)&&Qp(a,n);for(;e.length>o;)Ju(r,n=e[o++])&&(~Ty(a,n)||Qp(a,n));return a},Dc=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],xy=Td,Oy=Dc,Vr=Object.keys||function(t){return xy(t,Oy)},tv=xe,Ey=Gp,xd=Nn,Dy=de,ev=tr,Aa=Vr;Xu.f=tv&&!Ey?Object.defineProperties:function(t,e){Dy(t);for(var n,r=ev(e),o=Aa(e),a=o.length,s=0;a>s;)xd.f(t,n=o[s++],r[n]);return t};var $a,rv=Xt("document","documentElement"),nv=cc,Od=ln("keys"),Go=function(t){return Od[t]||(Od[t]=nv(t))},Zu=de,Ms=Xu,Ns=Dc,Qu=$s,Rs=rv,js=pc,Gi="prototype",Cc="script",tl=Go("IE_PROTO"),Ic=function(){},Ed=function(t){return"<"+Cc+">"+t+"</"+Cc+">"},Dd=function(t){t.write(Ed("")),t.close();var e=t.parentWindow.Object;return t=null,e},Ls=function(){try{$a=new ActiveXObject("htmlfile")}catch(o){}var t,e,n;Ls=typeof document!="undefined"?document.domain&&$a?Dd($a):(e=js("iframe"),n="java"+Cc+":",e.style.display="none",Rs.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(Ed("document.F=Object")),t.close(),t.F):Dd($a);for(var r=Ns.length;r--;)delete Ls[Gi][Ns[r]];return Ls()};Qu[tl]=!0;var Fs=Object.create||function(t,e){var n;return t!==null?(Ic[Gi]=Zu(t),n=new Ic,Ic[Gi]=null,n[tl]=t):n=Ls(),e===void 0?n:Ms.f(n,e)},iv=Bt,Ys=an,Cy=Sn,el=function(t){if(wy(t))return t;throw _y(go(t)+" is not a constructor")},Iy=de,ov=xr,Py=Fs,av=Wt,Wi=Xt("Reflect","construct"),sv=Object.prototype,Ay=[].push,Cd=av(function(){function t(){}return!(Wi(function(){},[],t)instanceof t)}),rl=!av(function(){Wi(function(){})}),uv=Cd||rl;iv({target:"Reflect",stat:!0,forced:uv,sham:uv},{construct:function(t,e){el(t),Iy(e);var n=arguments.length<3?t:el(arguments[2]);if(rl&&!Cd)return Wi(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return Ys(Ay,r,e),new(Ys(Cy,t,r))}var o=n.prototype,a=Py(ov(o)?o:sv),s=Ys(t,a,e);return ov(s)?s:a}});var $y=we.Reflect.construct;(function(t){t.exports=$y})(St);var At=nt(yt);function Se(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Id={},My={get exports(){return Id},set exports(t){Id=t}},Ma={},Bs={get exports(){return Ma},set exports(t){Ma=t}},nl={},Pd={get exports(){return nl},set exports(t){nl=t}},lv=Bt,cv=xe,il=Nn.f;lv({target:"Object",stat:!0,forced:Object.defineProperty!==il,sham:!cv},{defineProperty:il});var Wo=we.Object,oi=Pd.exports=function(t,e,n){return Wo.defineProperty(t,e,n)};Wo.defineProperty.sham&&(oi.sham=!0);var ol=nl,Ny=ol;(function(t){t.exports=Ny})(Bs),function(t){t.exports=Ma}(My);var Na=nt(Id),Pc={},Ac={get exports(){return Pc},set exports(t){Pc=t}},Ad={},zo={get exports(){return Ad},set exports(t){Ad=t}},hv=fr,bo=Array.isArray||function(t){return hv(t)=="Array"},Ry=TypeError,Hs=function(t){if(t>9007199254740991)throw Ry("Maximum allowed index exceeded");return t},ct=Fu,$d=Nn,dv=ei,wi=function(t,e,n){var r=ct(e);r in t?$d.f(t,r,dv(0,n)):t[r]=n},fe=bo,zi=Ia,Md=xr,Ra=cr("species"),Gs=Array,jy=function(t){var e;return fe(t)&&(e=t.constructor,(zi(e)&&(e===Gs||fe(e.prototype))||Md(e)&&(e=e[Ra])===null)&&(e=void 0)),e===void 0?Gs:e},wo=function(t,e){return new(jy(t))(e===0?0:e)},al=Wt,$c=Ri,Ui=cr("species"),sl=function(t){return $c>=51||!al(function(){var e=[];return(e.constructor={})[Ui]=function(){return{foo:1}},e[t](Boolean).foo!==1})},fv=Bt,Ly=Wt,ar=bo,Nd=xr,Fy=bn,pv=bi,ul=Hs,Ws=wi,_o=wo,vv=sl,mv=Ri,gv=cr("isConcatSpreadable"),Yy=mv>=51||!Ly(function(){var t=[];return t[gv]=!1,t.concat()[0]!==t}),By=function(t){if(!Nd(t))return!1;var e=t[gv];return e!==void 0?!!e:ar(t)};fv({target:"Array",proto:!0,arity:1,forced:!Yy||!vv("concat")},{concat:function(t){var e,n,r,o,a,s=Fy(this),d=_o(s,0),p=0;for(e=-1,r=arguments.length;e<r;e++)if(By(a=e===-1?s:arguments[e]))for(o=pv(a),ul(p+o),n=0;n<o;n++,p++)n in a&&Ws(d,p,a[n]);else ul(p+1),Ws(d,p++,a);return d.length=p,d}});var Hy=gi,Rd=String,Dr=function(t){if(Hy(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Rd(t)},ja={},Mc=Td,yv=Dc.concat("length","prototype");ja.f=Object.getOwnPropertyNames||function(t){return Mc(t,yv)};var zs={},So=Lr,bv=bi,jd=wi,Us=Array,Nc=Math.max,Uo=function(t,e,n){for(var r=bv(t),o=So(e,r),a=So(n===void 0?r:n,r),s=Us(Nc(a-o,0)),d=0;o<a;o++,d++)jd(s,d,t[o]);return s.length=d,s},Vs=fr,Ld=tr,wv=ja.f,Cr=Uo,kn=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];zs.f=function(t){return kn&&Vs(t)=="Window"?function(e){try{return wv(e)}catch(n){return Cr(kn)}}(t):wv(Ld(t))};var jn={};jn.f=Object.getOwnPropertySymbols;var Gy=mo,ll=function(t,e,n,r){return r&&r.enumerable?t[e]=n:Gy(t,e,n),t},Wy=Nn,Fd=function(t,e,n){return Wy.f(t,e,n)},Vo={},La=cr;Vo.f=La;var Tn,Ut,c,b=we,k=Rr,D=Vo,M=Nn.f,W=function(t){var e=b.Symbol||(b.Symbol={});k(e,t)||M(e,t,{value:D.f(t)})},it=Ur,vt=Xt,Ft=cr,oe=ll,pr=function(){var t=vt("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,r=Ft("toPrimitive");e&&!e[r]&&oe(e,r,function(o){return it(n,this)},{arity:1})},_i=gi,Xo=wc?{}.toString:function(){return"[object "+_i(this)+"]"},zy=wc,Ve=Nn.f,y_=mo,WT=Rr,b_=Xo,w_=cr("toStringTag"),Xs=function(t,e,n,r){if(t){var o=n?t:t.prototype;WT(o,w_)||Ve(o,w_,{configurable:!0,value:e}),r&&!zy&&y_(o,"toString",b_)}},__=ie,S_=Gt.WeakMap,k_=__(S_)&&/native code/.test(String(S_)),Uy=Gt,zT=xr,Vy=mo,_v=Rr,Sv=cn,UT=Go,T_=$s,qs="Object already initialized",Xy=Uy.TypeError,VT=Uy.WeakMap;if(k_||Sv.state){var Vi=Sv.state||(Sv.state=new VT);Vi.get=Vi.get,Vi.has=Vi.has,Vi.set=Vi.set,Tn=function(t,e){if(Vi.has(t))throw Xy(qs);return e.facade=t,Vi.set(t,e),e},Ut=function(t){return Vi.get(t)||{}},c=function(t){return Vi.has(t)}}else{var Fa=UT("state");T_[Fa]=!0,Tn=function(t,e){if(_v(t,Fa))throw Xy(qs);return e.facade=t,Vy(t,Fa,e),e},Ut=function(t){return _v(t,Fa)?t[Fa]:{}},c=function(t){return _v(t,Fa)}}var Ir={set:Tn,get:Ut,has:c,enforce:function(t){return c(t)?Ut(t):Tn(t,{})},getterFor:function(t){return function(e){var n;if(!zT(e)||(n=Ut(e)).type!==t)throw Xy("Incompatible receiver, "+t+" required");return n}}},Yd=_r,Bd=ac,XT=bn,kv=bi,Si=wo,Ks=se([].push),ko=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,a=t==6,s=t==7,d=t==5||a;return function(p,_,x,O){for(var C,Y,j=XT(p),G=Bd(j),X=Yd(_,x),q=kv(G),tt=0,ot=O||Si,wt=e?ot(p,q):n||s?ot(p,0):void 0;q>tt;tt++)if((d||tt in G)&&(Y=X(C=G[tt],tt,j),t))if(e)wt[tt]=Y;else if(Y)switch(t){case 3:return!0;case 5:return C;case 6:return tt;case 2:Ks(wt,C)}else switch(t){case 4:return!1;case 7:Ks(wt,C)}return a?-1:r||o?o:wt}},qo={forEach:ko(0),map:ko(1),filter:ko(2),some:ko(3),every:ko(4),find:ko(5),findIndex:ko(6),filterReject:ko(7)},Rc=Bt,Hd=Gt,cl=Ur,To=se,Ko=xe,jc=rr,x_=Wt,pe=Rr,Jo=Le,Js=de,Lc=tr,Tv=Fu,qy=Dr,Gd=ei,Zs=Fs,xv=Vr,Ky=ja,Zo=zs,hl=jn,Fc=Re,dl=Nn,Jy=Xu,O_=pi,fl=ll,Yc=Fd,Ov=ln,Fr=$s,Ev=cc,Zy=cr,Dv=Vo,Qy=W,qT=pr,tb=Xs,Bc=Ir,Hc=qo.forEach,Xr=Go("hidden"),Gc="Symbol",Wd="prototype",eb=Bc.set,rb=Bc.getterFor(Gc),Xi=Object[Wd],Qs=Hd.Symbol,Wc=Qs&&Qs[Wd],E_=Hd.TypeError,zd=Hd.QObject,zc=Fc.f,Ya=dl.f,Cv=Zo.f,D_=O_.f,nb=To([].push),Ba=Ov("symbols"),Ud=Ov("op-symbols"),KT=Ov("wks"),xo=!zd||!zd[Wd]||!zd[Wd].findChild,Ha=Ko&&x_(function(){return Zs(Ya({},"a",{get:function(){return Ya(this,"a",{value:7}).a}})).a!=7})?function(t,e,n){var r=zc(Xi,e);r&&delete Xi[e],Ya(t,e,n),r&&t!==Xi&&Ya(Xi,e,r)}:Ya,hn=function(t,e){var n=Ba[t]=Zs(Wc);return eb(n,{type:Gc,tag:t,description:e}),Ko||(n.description=e),n},pl=function(t,e,n){t===Xi&&pl(Ud,e,n),Js(t);var r=Tv(e);return Js(n),pe(Ba,r)?(n.enumerable?(pe(t,Xr)&&t[Xr][r]&&(t[Xr][r]=!1),n=Zs(n,{enumerable:Gd(0,!1)})):(pe(t,Xr)||Ya(t,Xr,Gd(1,{})),t[Xr][r]=!0),Ha(t,r,n)):Ya(t,r,n)},vl=function(t,e){Js(t);var n=Lc(e),r=xv(n).concat(Ga(n));return Hc(r,function(o){Ko&&!cl(C_,n,o)||pl(t,o,n[o])}),t},C_=function(t){var e=Tv(t),n=cl(D_,this,e);return!(this===Xi&&pe(Ba,e)&&!pe(Ud,e))&&(!(n||!pe(this,e)||!pe(Ba,e)||pe(this,Xr)&&this[Xr][e])||n)},ib=function(t,e){var n=Lc(t),r=Tv(e);if(n!==Xi||!pe(Ba,r)||pe(Ud,r)){var o=zc(n,r);return!o||!pe(Ba,r)||pe(n,Xr)&&n[Xr][r]||(o.enumerable=!0),o}},ki=function(t){var e=Cv(Lc(t)),n=[];return Hc(e,function(r){pe(Ba,r)||pe(Fr,r)||nb(n,r)}),n},Ga=function(t){var e=t===Xi,n=Cv(e?Ud:Lc(t)),r=[];return Hc(n,function(o){!pe(Ba,o)||e&&!pe(Xi,o)||nb(r,Ba[o])}),r};jc||(Qs=function(){if(Jo(Wc,this))throw E_("Symbol is not a constructor");var t=arguments.length&&arguments[0]!==void 0?qy(arguments[0]):void 0,e=Ev(t),n=function(r){this===Xi&&cl(n,Ud,r),pe(this,Xr)&&pe(this[Xr],e)&&(this[Xr][e]=!1),Ha(this,e,Gd(1,r))};return Ko&&xo&&Ha(Xi,e,{configurable:!0,set:n}),hn(e,t)},fl(Wc=Qs[Wd],"toString",function(){return rb(this).tag}),fl(Qs,"withoutSetter",function(t){return hn(Ev(t),t)}),O_.f=C_,dl.f=pl,Jy.f=vl,Fc.f=ib,Ky.f=Zo.f=ki,hl.f=Ga,Dv.f=function(t){return hn(Zy(t),t)},Ko&&Yc(Wc,"description",{configurable:!0,get:function(){return rb(this).description}})),Rc({global:!0,constructor:!0,wrap:!0,forced:!jc,sham:!jc},{Symbol:Qs}),Hc(xv(KT),function(t){Qy(t)}),Rc({target:Gc,stat:!0,forced:!jc},{useSetter:function(){xo=!0},useSimple:function(){xo=!1}}),Rc({target:"Object",stat:!0,forced:!jc,sham:!Ko},{create:function(t,e){return e===void 0?Zs(t):vl(Zs(t),e)},defineProperty:pl,defineProperties:vl,getOwnPropertyDescriptor:ib}),Rc({target:"Object",stat:!0,forced:!jc},{getOwnPropertyNames:ki}),qT(),tb(Qs,Gc),Fr[Xr]=!0;var ml=rr&&!!Symbol.for&&!!Symbol.keyFor,I_=Bt,JT=Xt,ob=Rr,ab=Dr,tu=ln,P_=ml,sb=tu("string-to-symbol-registry"),A_=tu("symbol-to-string-registry");I_({target:"Symbol",stat:!0,forced:!P_},{for:function(t){var e=ab(t);if(ob(sb,e))return sb[e];var n=JT("Symbol")(e);return sb[e]=n,A_[n]=e,n}});var Ln=Bt,Uc=Rr,$_=$n,ub=qt,gl=ml,Vc=ln("symbol-to-string-registry");Ln({target:"Symbol",stat:!0,forced:!gl},{keyFor:function(t){if(!$_(t))throw TypeError(ub(t)+" is not a symbol");if(Uc(Vc,t))return Vc[t]}});var Iv=bo,Vd=ie,Pv=fr,lb=Dr,cb=se([].push),hb=Bt,db=Xt,fb=an,ZT=Ur,Xc=se,pb=Wt,Av=ie,M_=$n,Xd=yc,N_=function(t){if(Vd(t))return t;if(Iv(t)){for(var e=t.length,n=[],r=0;r<e;r++){var o=t[r];typeof o=="string"?cb(n,o):typeof o!="number"&&Pv(o)!="Number"&&Pv(o)!="String"||cb(n,lb(o))}var a=n.length,s=!0;return function(d,p){if(s)return s=!1,p;if(Iv(this))return p;for(var _=0;_<a;_++)if(n[_]===d)return p}}},QT=rr,vb=String,eu=db("JSON","stringify"),qd=Xc(/./.exec),R_=Xc("".charAt),mb=Xc("".charCodeAt),j_=Xc("".replace),tx=Xc(1 .toString),L_=/[\uD800-\uDFFF]/g,gb=/^[\uD800-\uDBFF]$/,F_=/^[\uDC00-\uDFFF]$/,qc=!QT||pb(function(){var t=db("Symbol")();return eu([t])!="[null]"||eu({a:t})!="{}"||eu(Object(t))!="{}"}),Y_=pb(function(){return eu("\uDF06\uD834")!=='"\\udf06\\ud834"'||eu("\uDEAD")!=='"\\udead"'}),B_=function(t,e){var n=Xd(arguments),r=N_(e);if(Av(r)||t!==void 0&&!M_(t))return n[1]=function(o,a){if(Av(r)&&(a=ZT(r,this,vb(o),a)),!M_(a))return a},fb(eu,null,n)},ex=function(t,e,n){var r=R_(n,e-1),o=R_(n,e+1);return qd(gb,t)&&!qd(F_,o)||qd(F_,t)&&!qd(gb,r)?"\\u"+tx(mb(t,0),16):t};eu&&hb({target:"JSON",stat:!0,arity:3,forced:qc||Y_},{stringify:function(t,e,n){var r=Xd(arguments),o=fb(qc?B_:eu,null,r);return Y_&&typeof o=="string"?j_(o,L_,ex):o}});var yb=jn,rx=bn;Bt({target:"Object",stat:!0,forced:!rr||Wt(function(){yb.f(1)})},{getOwnPropertySymbols:function(t){var e=yb.f;return e?e(rx(t)):[]}}),W("asyncIterator"),W("hasInstance"),W("isConcatSpreadable"),W("iterator"),W("match"),W("matchAll"),W("replace"),W("search"),W("species"),W("split");var H_=pr;W("toPrimitive"),H_();var nx=Xt,ix=Xs;W("toStringTag"),ix(nx("Symbol"),"Symbol"),W("unscopables"),Xs(Gt.JSON,"JSON",!0);var ru,bb,G_,Kc=we.Symbol,yl={},$v=xe,W_=Rr,wb=Function.prototype,ox=$v&&Object.getOwnPropertyDescriptor,_b=W_(wb,"name"),Sb={EXISTS:_b,PROPER:_b&&function(){}.name==="something",CONFIGURABLE:_b&&(!$v||$v&&ox(wb,"name").configurable)},Qo=!Wt(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Mv=Rr,z_=ie,Nv=bn,kb=Qo,Tb=Go("IE_PROTO"),Jc=Object,xb=Jc.prototype,Rv=kb?Jc.getPrototypeOf:function(t){var e=Nv(t);if(Mv(e,Tb))return e[Tb];var n=e.constructor;return z_(n)&&e instanceof n?n.prototype:e instanceof Jc?xb:null},jv=Wt,Lv=ie,ax=xr,U_=Fs,Ob=Rv,sx=ll,Zc=cr("iterator"),Fv=!1;[].keys&&("next"in(G_=[].keys())?(bb=Ob(Ob(G_)))!==Object.prototype&&(ru=bb):Fv=!0);var ux=!ax(ru)||jv(function(){var t={};return ru[Zc].call(t)!==t});Lv((ru=ux?{}:U_(ru))[Zc])||sx(ru,Zc,function(){return this});var V_={IteratorPrototype:ru,BUGGY_SAFARI_ITERATORS:Fv},lx=V_.IteratorPrototype,cx=Fs,hx=ei,dx=Xs,X_=yl,q_=function(){return this},Eb=se,K_=_a,Db=ie,J_=String,fx=TypeError,px=function(t,e,n){try{return Eb(K_(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(r){}},Z_=de,Q_=function(t){if(typeof t=="object"||Db(t))return t;throw fx("Can't set "+J_(t)+" as a prototype")},vx=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=px(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array}catch(r){}return function(r,o){return Z_(r),Q_(o),e?t(r,o):r.__proto__=o,r}}():void 0),mx=Bt,Cb=Ur,gx=function(t,e,n,r){var o=e+" Iterator";return t.prototype=cx(lx,{next:hx(+!r,n)}),dx(t,o,!1,!0),X_[o]=q_,t},yx=Rv,t1=Xs,bl=ll,Kd=yl,bx=Sb.PROPER,Jd=V_.BUGGY_SAFARI_ITERATORS,Ib=cr("iterator"),wl="keys",Zd="values",Pb="entries",wx=function(){return this},Yv=function(t,e,n,r,o,a,s){gx(n,e,r);var d,p,_,x=function(q){if(q===o&&G)return G;if(!Jd&&q in Y)return Y[q];switch(q){case wl:case Zd:case Pb:return function(){return new n(this,q)}}return function(){return new n(this)}},O=e+" Iterator",C=!1,Y=t.prototype,j=Y[Ib]||Y["@@iterator"]||o&&Y[o],G=!Jd&&j||x(o),X=e=="Array"&&Y.entries||j;if(X&&(d=yx(X.call(new t)))!==Object.prototype&&d.next&&(t1(d,O,!0,!0),Kd[O]=wx),bx&&o==Zd&&j&&j.name!==Zd&&(C=!0,G=function(){return Cb(j,this)}),o)if(p={values:x(Zd),keys:a?G:x(wl),entries:x(Pb)},s)for(_ in p)(Jd||C||!(_ in Y))&&bl(Y,_,p[_]);else mx({target:e,proto:!0,forced:Jd||C},p);return s&&Y[Ib]!==G&&bl(Y,Ib,G,{name:o}),Kd[e]=G,p},Qc=function(t,e){return{value:t,done:e}},e1=tr,r1=yl,Ab=Ir;Nn.f;var n1=Yv,Bv=Qc,nu="Array Iterator",Qd=Ab.set,_x=Ab.getterFor(nu);n1(Array,"Array",function(t,e){Qd(this,{type:nu,target:e1(t),index:0,kind:e})},function(){var t=_x(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,Bv(void 0,!0)):Bv(n=="keys"?r:n=="values"?e[r]:[r,e[r]],!1)},"values"),r1.Arguments=r1.Array;var Hv={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},Sx=Gt,kx=gi,i1=mo,o1=yl,Gv=cr("toStringTag");for(var $b in Hv){var a1=Sx[$b],th=a1&&a1.prototype;th&&kx(th)!==Gv&&i1(th,Gv,$b),o1[$b]=o1.Array}var Mb=Kc;W("dispose");var ta=Mb;W("asyncDispose");var Wv=Bt,Nb=se,s1=Xt("Symbol"),Rb=s1.keyFor,u1=Nb(s1.prototype.valueOf);Wv({target:"Symbol",stat:!0},{isRegistered:function(t){try{return Rb(u1(t))!==void 0}catch(e){return!1}}});for(var Tx=Bt,eh=ln,l1=Xt,c1=se,h1=$n,_l=cr,Fn=l1("Symbol"),jb=Fn.isWellKnown,d1=l1("Object","getOwnPropertyNames"),xx=c1(Fn.prototype.valueOf),f1=eh("wks"),zv=0,p1=d1(Fn),v1=p1.length;zv<v1;zv++)try{var m1=p1[zv];h1(Fn[m1])&&_l(m1)}catch(t){}Tx({target:"Symbol",stat:!0,forced:!0},{isWellKnown:function(t){if(jb&&jb(t))return!0;try{for(var e=xx(t),n=0,r=d1(f1),o=r.length;n<o;n++)if(f1[r[n]]==e)return!0}catch(a){}return!1}}),W("matcher"),W("metadataKey"),W("observable"),W("metadata"),W("patternMatch"),W("replaceAll");var Ox=ta;(function(t){t.exports=Ox})(zo),function(t){t.exports=Ad}(Ac);var Wa=nt(Pc),Uv={},g1={get exports(){return Uv},set exports(t){Uv=t}},Vv={},Ex={get exports(){return Vv},set exports(t){Vv=t}},qr=se,Dx=yo,y1=Dr,Cx=ys,Xv=qr("".charAt),qv=qr("".charCodeAt),Sl=qr("".slice),tf=function(t){return function(e,n){var r,o,a=y1(Cx(e)),s=Dx(n),d=a.length;return s<0||s>=d?t?"":void 0:(r=qv(a,s))<55296||r>56319||s+1===d||(o=qv(a,s+1))<56320||o>57343?t?Xv(a,s):r:t?Sl(a,s,s+2):o-56320+(r-55296<<10)+65536}},Lb={codeAt:tf(!1),charAt:tf(!0)}.charAt,b1=Dr,ef=Ir,w1=Yv,Fb=Qc,Kv="String Iterator",Yb=ef.set,Jv=ef.getterFor(Kv);w1(String,"String",function(t){Yb(this,{type:Kv,string:b1(t),index:0})},function(){var t,e=Jv(this),n=e.string,r=e.index;return r>=n.length?Fb(void 0,!0):(t=Lb(n,r),e.index+=t.length,Fb(t,!1))});var rh=Vo.f("iterator");(function(t){t.exports=rh})(Ex),function(t){t.exports=Vv}(g1);var _1=nt(Uv);function Jt(t){return Jt=typeof Wa=="function"&&typeof _1=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Wa=="function"&&e.constructor===Wa&&e!==Wa.prototype?"symbol":typeof e},Jt(t)}var nh={},S1={get exports(){return nh},set exports(t){nh=t}},rf={},k1={get exports(){return rf},set exports(t){rf=t}},Ix=Vo.f("toPrimitive");(function(t){t.exports=Ix})(k1),function(t){t.exports=rf}(S1);var Px=nt(nh);function T1(t){var e=function(n,r){if(Jt(n)!=="object"||n===null)return n;var o=n[Px];if(o!==void 0){var a=o.call(n,r||"default");if(Jt(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)}(t,"string");return Jt(e)==="symbol"?e:String(e)}function x1(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Na(t,T1(r.key),r)}}function Ce(t,e,n){return e&&x1(t.prototype,e),n&&x1(t,n),Na(t,"prototype",{writable:!1}),t}function me(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var Bb={},O1={get exports(){return Bb},set exports(t){Bb=t}},nf={},E1={get exports(){return nf},set exports(t){nf=t}};Bt({target:"Object",stat:!0,sham:!xe},{create:Fs});var of=we.Object,ai=function(t,e){return of.create(t,e)},D1=ai;(function(t){t.exports=D1})(E1),function(t){t.exports=nf}(O1);var Ax=nt(Bb),Hb={},C1={get exports(){return Hb},set exports(t){Hb=t}},af={},$x={get exports(){return af},set exports(t){af=t}};Bt({target:"Object",stat:!0},{setPrototypeOf:vx});var Mx=we.Object.setPrototypeOf;(function(t){t.exports=Mx})($x),function(t){t.exports=af}(C1);var Gb=nt(Hb),Wb={},Nx={get exports(){return Wb},set exports(t){Wb=t}},zb={},Rx={get exports(){return zb},set exports(t){zb=t}},Zv=Sn;Bt({target:"Function",proto:!0,forced:Function.bind!==Zv},{bind:Zv});var Ub=we,Pr=function(t){return Ub[t+"Prototype"]},I1=Pr("Function").bind,jx=Le,Lx=I1,Qv=Function.prototype,P1=function(t){var e=t.bind;return t===Qv||jx(Qv,t)&&e===Qv.bind?Lx:e},Vb=P1,Fx=Vb;(function(t){t.exports=Fx})(Rx),function(t){t.exports=zb}(Nx);var A1=nt(Wb);function ih(t,e){var n;return ih=Gb?A1(n=Gb).call(n):function(r,o){return r.__proto__=o,r},ih(t,e)}function si(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Ax(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Na(t,"prototype",{writable:!1}),e&&ih(t,e)}function ui(t,e){if(e&&(Jt(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return me(t)}var tm={},$1={get exports(){return tm},set exports(t){tm=t}},oh={},M1={get exports(){return oh},set exports(t){oh=t}},Yx=bn,Xb=Rv,sf=Qo;Bt({target:"Object",stat:!0,forced:Wt(function(){Xb(1)}),sham:!sf},{getPrototypeOf:function(t){return Xb(Yx(t))}});var N1=we.Object.getPrototypeOf,Bx=N1;(function(t){t.exports=Bx})(M1),function(t){t.exports=oh}($1);var R1=nt(tm);function Be(t){var e;return Be=Gb?A1(e=R1).call(e):function(n){return n.__proto__||R1(n)},Be(t)}var qb={},Hx={get exports(){return qb},set exports(t){qb=t}};Bt({target:"Array",stat:!0},{isArray:bo});var em=we.Array.isArray;(function(t){t.exports=em})(Hx);var ce=nt(qb),Kb={};(function(t){t.exports=Vb})({get exports(){return Kb},set exports(t){Kb=t}});var at=nt(Kb),Jb={},Gx={get exports(){return Jb},set exports(t){Jb=t}},Wx=typeof Bun=="function"&&Bun&&typeof Bun.version=="string",Zb=TypeError,iu=Gt,Qb=an,zx=ie,j1=Wx,L1=er,F1=yc,Y1=function(t,e){if(t<e)throw Zb("Not enough arguments");return t},B1=iu.Function,t0=/MSIE .\./.test(L1)||j1&&function(){var t=iu.Bun.version.split(".");return t.length<3||t[0]==0&&(t[1]<3||t[1]==3&&t[2]==0)}(),H1=function(t,e){var n=e?2:1;return t0?function(r,o){var a=Y1(arguments.length,1)>n,s=zx(r)?r:B1(r),d=a?F1(arguments,n):[],p=a?function(){Qb(s,this,d)}:s;return e?t(p,o):t(p)}:t},G1=Bt,uf=Gt,rm=H1(uf.setInterval,!0);G1({global:!0,bind:!0,forced:uf.setInterval!==rm},{setInterval:rm});var W1=Bt,ah=Gt,nm=H1(ah.setTimeout,!0);W1({global:!0,bind:!0,forced:ah.setTimeout!==nm},{setTimeout:nm});var z1=we.setTimeout;(function(t){t.exports=z1})(Gx);var Yn=nt(Jb),e0={},Ux={get exports(){return e0},set exports(t){e0=t}},Vx=Wt,ou=function(t,e){var n=[][t];return!!n&&Vx(function(){n.call(null,e||function(){return 1},1)})},Xx=qo.forEach,U1=ou("forEach")?[].forEach:function(t){return Xx(this,t,arguments.length>1?arguments[1]:void 0)};Bt({target:"Array",proto:!0,forced:[].forEach!=U1},{forEach:U1});var qx=Pr("Array").forEach,Kx=gi,V1=Rr,Jx=Le,sh=qx,lf=Array.prototype,X1={DOMTokenList:!0,NodeList:!0},Zx=function(t){var e=t.forEach;return t===lf||Jx(lf,t)&&e===lf.forEach||V1(X1,Kx(t))?sh:e};(function(t){t.exports=Zx})(Ux);var Ot=nt(e0),Bn=typeof window!="undefined"&&window.moment||L,r0={},Qx={get exports(){return r0},set exports(t){r0=t}},q1=we.Object.getOwnPropertySymbols;(function(t){t.exports=q1})(Qx);var im=nt(r0),n0={},tO={get exports(){return n0},set exports(t){n0=t}},K1=qo.filter;Bt({target:"Array",proto:!0,forced:!sl("filter")},{filter:function(t){return K1(this,t,arguments.length>1?arguments[1]:void 0)}});var J1=Pr("Array").filter,kl=Le,qi=J1,uh=Array.prototype,eO=function(t){var e=t.filter;return t===uh||kl(uh,t)&&e===uh.filter?qi:e},rO=eO;(function(t){t.exports=rO})(tO);var ve=nt(n0),om={},i0={get exports(){return om},set exports(t){om=t}},cf={},Z1={get exports(){return cf},set exports(t){cf=t}},nO=Bt,am=Wt,o0=tr,sm=Re.f,Hn=xe;nO({target:"Object",stat:!0,forced:!Hn||am(function(){sm(1)}),sham:!Hn},{getOwnPropertyDescriptor:function(t,e){return sm(o0(t),e)}});var dn=we.Object,hf=Z1.exports=function(t,e){return dn.getOwnPropertyDescriptor(t,e)};dn.getOwnPropertyDescriptor.sham&&(hf.sham=!0);var iO=cf;(function(t){t.exports=iO})(i0);var Yr=nt(om),a0={},s0={get exports(){return a0},set exports(t){a0=t}},um=Xt,df=ja,u0=jn,oO=de,aO=se([].concat),l0=um("Reflect","ownKeys")||function(t){var e=df.f(oO(t)),n=u0.f;return n?aO(e,n(t)):e},sO=l0,za=tr,Q1=Re,Gn=wi;Bt({target:"Object",stat:!0,sham:!xe},{getOwnPropertyDescriptors:function(t){for(var e,n,r=za(t),o=Q1.f,a=sO(r),s={},d=0;a.length>d;)(n=o(r,e=a[d++]))!==void 0&&Gn(s,e,n);return s}});var uO=we.Object.getOwnPropertyDescriptors;(function(t){t.exports=uO})(s0);var ff=nt(a0),pf={},tS={get exports(){return pf},set exports(t){pf=t}},lm={},lO={get exports(){return lm},set exports(t){lm=t}},cm=Bt,cO=xe,eS=Xu.f;cm({target:"Object",stat:!0,forced:Object.defineProperties!==eS,sham:!cO},{defineProperties:eS});var lh=we.Object,c0=lO.exports=function(t,e){return lh.defineProperties(t,e)};lh.defineProperties.sham&&(c0.sham=!0);var hO=lm;(function(t){t.exports=hO})(tS);var h0=nt(pf);function ea(t,e,n){return(e=T1(e))in t?Na(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var d0={},dO={get exports(){return d0},set exports(t){d0=t}},fO=qo.map;Bt({target:"Array",proto:!0,forced:!sl("map")},{map:function(t){return fO(this,t,arguments.length>1?arguments[1]:void 0)}});var rS=Pr("Array").map,pO=Le,vO=rS,f0=Array.prototype,vf=function(t){var e=t.map;return t===f0||pO(f0,t)&&e===f0.map?vO:e},nS=vf;(function(t){t.exports=nS})(dO);var Br=nt(d0),hm={},mO={get exports(){return hm},set exports(t){hm=t}},p0=_a,gO=bn,yO=ac,bO=bi,wO=TypeError,iS=function(t){return function(e,n,r,o){p0(n);var a=gO(e),s=yO(a),d=bO(a),p=t?d-1:0,_=t?-1:1;if(r<2)for(;;){if(p in s){o=s[p],p+=_;break}if(p+=_,t?p<0:d<=p)throw wO("Reduce of empty array with no initial value")}for(;t?p>=0:d>p;p+=_)p in s&&(o=n(o,s[p],p,a));return o}},_O={left:iS(!1),right:iS(!0)},SO=typeof process!="undefined"&&fr(process)=="process",kO=_O.left;Bt({target:"Array",proto:!0,forced:!SO&&Ri>79&&Ri<83||!ou("reduce")},{reduce:function(t){var e=arguments.length;return kO(this,t,e,e>1?arguments[1]:void 0)}});var v0=Pr("Array").reduce,m0=Le,TO=v0,g0=Array.prototype,xO=function(t){var e=t.reduce;return t===g0||m0(g0,t)&&e===g0.reduce?TO:e},Kr=xO;(function(t){t.exports=Kr})(mO);var oS=nt(hm),y0={},b0={get exports(){return y0},set exports(t){y0=t}},aS=bn,w0=Vr;Bt({target:"Object",stat:!0,forced:Wt(function(){w0(1)})},{keys:function(t){return w0(aS(t))}});var OO=we.Object.keys;(function(t){t.exports=OO})(b0);var Jr=nt(y0),_0={};(function(t){t.exports=ol})({get exports(){return _0},set exports(t){_0=t}});var Tl=nt(_0),S0={},EO={get exports(){return S0},set exports(t){S0=t}},DO=Ur,sS=de,Zr=Nr,k0=function(t,e,n){var r,o;sS(t);try{if(!(r=Zr(t,"return"))){if(e==="throw")throw n;return n}r=DO(r,t)}catch(a){o=!0,r=a}if(e==="throw")throw n;if(o)throw r;return sS(r),n},CO=de,IO=k0,uS=yl,T0=cr("iterator"),PO=Array.prototype,x0=function(t){return t!==void 0&&(uS.Array===t||PO[T0]===t)},AO=gi,lS=Nr,$O=ba,cS=yl,MO=cr("iterator"),ch=function(t){if(!$O(t))return lS(t,MO)||lS(t,"@@iterator")||cS[AO(t)]},NO=Ur,RO=_a,jO=de,O0=qt,LO=ch,hS=TypeError,E0=function(t,e){var n=arguments.length<2?LO(t):e;if(RO(n))return jO(NO(n,t));throw hS(O0(t)+" is not iterable")},FO=_r,YO=Ur,BO=bn,HO=function(t,e,n,r){try{return r?e(CO(n)[0],n[1]):e(n)}catch(o){IO(t,"throw",o)}},GO=x0,WO=Ia,dS=bi,fS=wi,D0=E0,zO=ch,C0=Array,I0=cr("iterator"),pS=!1;try{var vS=0,P0={next:function(){return{done:!!vS++}},return:function(){pS=!0}};P0[I0]=function(){return this},Array.from(P0,function(){throw 2})}catch(t){}var UO=function(t){var e=BO(t),n=WO(this),r=arguments.length,o=r>1?arguments[1]:void 0,a=o!==void 0;a&&(o=FO(o,r>2?arguments[2]:void 0));var s,d,p,_,x,O,C=zO(e),Y=0;if(!C||this===C0&&GO(C))for(s=dS(e),d=n?new this(s):C0(s);s>Y;Y++)O=a?o(e[Y],Y):e[Y],fS(d,Y,O);else for(x=(_=D0(e,C)).next,d=n?new this:[];!(p=YO(x,_)).done;Y++)O=a?HO(_,o,[p.value,Y],!0):p.value,fS(d,Y,O);return d.length=Y,d},A0=function(t,e){if(!e&&!pS)return!1;var n=!1;try{var r={};r[I0]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(o){}return n};Bt({target:"Array",stat:!0,forced:!A0(function(t){Array.from(t)})},{from:UO});var $0=we.Array.from;(function(t){t.exports=$0})(EO);var au=nt(S0),Ti={},Ki={get exports(){return Ti},set exports(t){Ti=t}},hh={},su=ch;(function(t){t.exports=su})({get exports(){return hh},set exports(t){hh=t}}),function(t){t.exports=hh}(Ki);var Qr=nt(Ti),dm={},VO={get exports(){return dm},set exports(t){dm=t}},uu={},xl=em;(function(t){t.exports=xl})({get exports(){return uu},set exports(t){uu=t}}),function(t){t.exports=uu}(VO);var fm=nt(dm),dh={},pm={get exports(){return dh},set exports(t){dh=t}},vm={},mS={get exports(){return vm},set exports(t){vm=t}},gS=Bt,mm=bo,Ol=Ia,mf=xr,fh=Lr,gf=bi,yS=tr,XO=wi,bS=cr,yf=yc,M0=sl("slice"),wS=bS("species"),tn=Array,Ar=Math.max;gS({target:"Array",proto:!0,forced:!M0},{slice:function(t,e){var n,r,o,a=yS(this),s=gf(a),d=fh(t,s),p=fh(e===void 0?s:e,s);if(mm(a)&&(n=a.constructor,(Ol(n)&&(n===tn||mm(n.prototype))||mf(n)&&(n=n[wS])===null)&&(n=void 0),n===tn||n===void 0))return yf(a,d,p);for(r=new(n===void 0?tn:n)(Ar(p-d,0)),o=0;d<p;d++,o++)d in a&&XO(r,o,a[d]);return r.length=o,r}});var Wn=Pr("Array").slice,bf=Le,wf=Wn,El=Array.prototype,_f=function(t){var e=t.slice;return t===El||bf(El,t)&&e===El.slice?wf:e},Dl=_f,ra=Dl;(function(t){t.exports=ra})(mS),function(t){t.exports=vm}(pm);var Cl=nt(dh),gm={},N0={get exports(){return gm},set exports(t){gm=t}},ph={},Ji=$0;(function(t){t.exports=Ji})({get exports(){return ph},set exports(t){ph=t}}),function(t){t.exports=ph}(N0);var Sf=nt(gm);function Ua(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function R0(t,e){var n;if(t){if(typeof t=="string")return Ua(t,e);var r=Cl(n=Object.prototype.toString.call(t)).call(n,8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Sf(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ua(t,e):void 0}}function j0(t,e){return function(n){if(fm(n))return n}(t)||function(n,r){var o=n==null?null:Wa!==void 0&&Qr(n)||n["@@iterator"];if(o!=null){var a,s,d,p,_=[],x=!0,O=!1;try{if(d=(o=o.call(n)).next,r===0){if(Object(o)!==o)return;x=!1}else for(;!(x=(a=d.call(o)).done)&&(_.push(a.value),_.length!==r);x=!0);}catch(C){O=!0,s=C}finally{try{if(!x&&o.return!=null&&(p=o.return(),Object(p)!==p))return}finally{if(O)throw s}}return _}}(t,e)||R0(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Zi(t){return function(e){if(fm(e))return Ua(e)}(t)||function(e){if(Wa!==void 0&&Qr(e)!=null||e["@@iterator"]!=null)return Sf(e)}(t)||R0(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var ym={};(function(t){t.exports=Mb})({get exports(){return ym},set exports(t){ym=t}});var Oo=nt(ym),kf={},L0={get exports(){return kf},set exports(t){kf=t}},F0=Pr("Array").concat,qO=Le,bm=F0,Il=Array.prototype,Tf=function(t){var e=t.concat;return t===Il||qO(Il,t)&&e===Il.concat?bm:e},xf=Tf;(function(t){t.exports=xf})(L0);var Ke=nt(kf),lu={};(function(t){t.exports=Dl})({get exports(){return lu},set exports(t){lu=t}});var vr=nt(lu),Y0={},KO={get exports(){return Y0},set exports(t){Y0=t}};Bt({target:"Reflect",stat:!0},{ownKeys:l0});var _S=we.Reflect.ownKeys;(function(t){t.exports=_S})(KO);var SS=nt(Y0),wm={},vh={get exports(){return wm},set exports(t){wm=t}},B0=Bt,kS=Date,H0=se(kS.prototype.getTime);B0({target:"Date",stat:!0},{now:function(){return H0(new kS)}});var JO=we.Date.now;(function(t){t.exports=JO})(vh);var xi=nt(wm),Of={},TS={get exports(){return Of},set exports(t){Of=t}},xS=Bt,ZO=bo,QO=se([].reverse),G0=[1,2];xS({target:"Array",proto:!0,forced:String(G0)===String(G0.reverse())},{reverse:function(){return ZO(this)&&(this.length=this.length),QO(this)}});var mh=Pr("Array").reverse,cu=Le,tE=mh,gh=Array.prototype,OS=function(t){var e=t.reverse;return t===gh||cu(gh,t)&&e===gh.reverse?tE:e},Ef=OS;(function(t){t.exports=Ef})(TS);var W0=nt(Of),hu={},ES={get exports(){return hu},set exports(t){hu=t}},Df=xe,DS=bo,CS=TypeError,IS=Object.getOwnPropertyDescriptor,PS=Df&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}(),z0=qt,AS=TypeError,U0=function(t,e){if(!delete t[e])throw AS("Cannot delete property "+z0(e)+" of "+z0(t))},V0=Bt,eE=bn,rE=Lr,nE=yo,X0=bi,$S=PS?function(t,e){if(DS(t)&&!IS(t,"length").writable)throw CS("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},iE=Hs,MS=wo,NS=wi,q0=U0,RS=sl("splice"),jS=Math.max,K0=Math.min;V0({target:"Array",proto:!0,forced:!RS},{splice:function(t,e){var n,r,o,a,s,d,p=eE(this),_=X0(p),x=rE(t,_),O=arguments.length;for(O===0?n=r=0:O===1?(n=0,r=_-x):(n=O-2,r=K0(jS(nE(e),0),_-x)),iE(_+n-r),o=MS(p,r),a=0;a<r;a++)(s=x+a)in p&&NS(o,a,p[s]);if(o.length=r,n<r){for(a=x;a<_-r;a++)d=a+n,(s=a+r)in p?p[d]=p[s]:q0(p,d);for(a=_;a>_-r+n;a--)q0(p,a-1)}else if(n>r)for(a=_-r;a>x;a--)d=a+n-1,(s=a+r-1)in p?p[d]=p[s]:q0(p,d);for(a=0;a<n;a++)p[a+x]=arguments[a+2];return $S(p,_-r+n),o}});var LS=Pr("Array").splice,_m=Le,FS=LS,yh=Array.prototype,oE=function(t){var e=t.splice;return t===yh||_m(yh,t)&&e===yh.splice?FS:e},Va=oE;(function(t){t.exports=Va})(ES);var li=nt(hu),J0={},aE={get exports(){return J0},set exports(t){J0=t}},Cf=xe,sE=se,Z0=Ur,YS=Wt,Sm=Vr,uE=jn,BS=pi,lE=bn,Q0=ac,du=Object.assign,HS=Object.defineProperty,cE=sE([].concat),GS=!du||YS(function(){if(Cf&&du({b:1},du(HS({},"a",{enumerable:!0,get:function(){HS(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(o){e[o]=o}),du({},t)[n]!=7||Sm(du({},e)).join("")!=r})?function(t,e){for(var n=lE(t),r=arguments.length,o=1,a=uE.f,s=BS.f;r>o;)for(var d,p=Q0(arguments[o++]),_=a?cE(Sm(p),a(p)):Sm(p),x=_.length,O=0;x>O;)d=_[O++],Cf&&!Z0(s,p,d)||(n[d]=p[d]);return n}:du,tw=GS;Bt({target:"Object",stat:!0,arity:2,forced:Object.assign!==tw},{assign:tw});var WS=we.Object.assign;(function(t){t.exports=WS})(aE);var zn=nt(J0),bh={},ew={get exports(){return bh},set exports(t){bh=t}},hE=Pa.includes;Bt({target:"Array",proto:!0,forced:Wt(function(){return!Array(1).includes()})},{includes:function(t){return hE(this,t,arguments.length>1?arguments[1]:void 0)}});var ci=Pr("Array").includes,dE=xr,zS=fr,US=cr("match"),xn=function(t){var e;return dE(t)&&((e=t[US])!==void 0?!!e:zS(t)=="RegExp")},fE=TypeError,wh=cr("match"),pE=Bt,vE=function(t){if(xn(t))throw fE("The method doesn't accept regular expressions");return t},mE=ys,VS=Dr,km=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[wh]=!1,"/./"[t](e)}catch(r){}}return!1},XS=se("".indexOf);pE({target:"String",proto:!0,forced:!km("includes")},{includes:function(t){return!!~XS(VS(mE(this)),VS(vE(t)),arguments.length>1?arguments[1]:void 0)}});var gE=Pr("String").includes,qS=Le,KS=ci,If=gE,rw=Array.prototype,Pl=String.prototype,JS=function(t){var e=t.includes;return t===rw||qS(rw,t)&&e===rw.includes?KS:typeof t=="string"||t===Pl||qS(Pl,t)&&e===Pl.includes?If:e},Pf=JS;(function(t){t.exports=Pf})(ew);var Xa=nt(bh),nw={};(function(t){t.exports=N1})({get exports(){return nw},set exports(t){nw=t}});var iw=nt(nw),Af={},Tm={get exports(){return Af},set exports(t){Af=t}},ow=xe,aw=se,ZS=Vr,QS=tr,tk=aw(pi.f),_h=aw([].push),sw=function(t){return function(e){for(var n,r=QS(e),o=ZS(r),a=o.length,s=0,d=[];a>s;)n=o[s++],ow&&!tk(r,n)||_h(d,t?[n,r[n]]:r[n]);return d}},uw={entries:sw(!0),values:sw(!1)}.values;Bt({target:"Object",stat:!0},{values:function(t){return uw(t)}});var yE=we.Object.values;(function(t){t.exports=yE})(Tm);var fn=nt(Af),xm={},bE={get exports(){return xm},set exports(t){xm=t}},$f=`
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,wE=ys,_E=Dr,lw=$f,cw=se("".replace),SE=RegExp("^["+lw+"]+"),kE=RegExp("(^|[^"+lw+"])["+lw+"]+$"),Om=function(t){return function(e){var n=_E(wE(e));return 1&t&&(n=cw(n,SE,"")),2&t&&(n=cw(n,kE,"$1")),n}},Mf={start:Om(1),end:Om(2),trim:Om(3)},ek=Gt,TE=Wt,xE=se,OE=Dr,EE=Mf.trim,Em=$f,Nf=ek.parseInt,rk=ek.Symbol,nk=rk&&rk.iterator,ik=/^[+-]?0x/i,DE=xE(ik.exec),ok=Nf(Em+"08")!==8||Nf(Em+"0x16")!==22||nk&&!TE(function(){Nf(Object(nk))})?function(t,e){var n=EE(OE(t));return Nf(n,e>>>0||(DE(ik,n)?16:10))}:Nf;Bt({global:!0,forced:parseInt!=ok},{parseInt:ok});var ak=we.parseInt;(function(t){t.exports=ak})(bE);var Oi=nt(xm),Rf={},sk={get exports(){return Rf},set exports(t){Rf=t}},uk=Bt,Dm=Pa.indexOf,qa=ou,Ka=Tr([].indexOf),lk=!!Ka&&1/Ka([1],1,-0)<0;uk({target:"Array",proto:!0,forced:lk||!qa("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return lk?Ka(this,t,e)||0:Dm(this,t,e)}});var CE=Pr("Array").indexOf,IE=Le,ck=CE,Sh=Array.prototype,PE=function(t){var e=t.indexOf;return t===Sh||IE(Sh,t)&&e===Sh.indexOf?ck:e},hk=PE;(function(t){t.exports=hk})(sk);var Ie=nt(Rf),Al={},AE={get exports(){return Al},set exports(t){Al=t}},$E=Sb.PROPER,dk=Wt,fk=$f,ME=Mf.trim;Bt({target:"String",proto:!0,forced:function(t){return dk(function(){return!!fk[t]()||"\u200B\x85\u180E"[t]()!=="\u200B\x85\u180E"||$E&&fk[t].name!==t})}("trim")},{trim:function(){return ME(this)}});var jf=Pr("String").trim,NE=Le,$l=jf,Lf=String.prototype,Ff=function(t){var e=t.trim;return typeof t=="string"||t===Lf||NE(Lf,t)&&e===Lf.trim?$l:e},kh=Ff;(function(t){t.exports=kh})(AE);var Cm=nt(Al),Yf={};(function(t){t.exports=ai})({get exports(){return Yf},set exports(t){Yf=t}});var Im=nt(Yf),hw={},RE={get exports(){return hw},set exports(t){hw=t}},Pm=we,Am=an;Pm.JSON||(Pm.JSON={stringify:JSON.stringify});var jE=function(t,e,n){return Am(Pm.JSON.stringify,null,arguments)},LE=jE;(function(t){t.exports=LE})(RE);var Un=nt(hw),$m={},FE={get exports(){return $m},set exports(t){$m=t}},YE=bn,pk=Lr,vk=bi,Mm=function(t){for(var e=YE(this),n=vk(e),r=arguments.length,o=pk(r>1?arguments[1]:void 0,n),a=r>2?arguments[2]:void 0,s=a===void 0?n:pk(a,n);s>o;)e[o++]=t;return e};Bt({target:"Array",proto:!0},{fill:Mm});var Ei=Pr("Array").fill,BE=Le,HE=Ei,Nm=Array.prototype,mk=function(t){var e=t.fill;return t===Nm||BE(Nm,t)&&e===Nm.fill?HE:e},dw=mk;(function(t){t.exports=dw})(FE);var fw=nt($m),pw={};(function(t){function e(n){if(n)return function(r){for(var o in e.prototype)r[o]=e.prototype[o];return r}(n)}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(n,r){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(r),this},e.prototype.once=function(n,r){function o(){this.off(n,o),r.apply(this,arguments)}return o.fn=r,this.on(n,o),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(n,r){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var o,a=this._callbacks["$"+n];if(!a)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var s=0;s<a.length;s++)if((o=a[s])===r||o.fn===r){a.splice(s,1);break}return a.length===0&&delete this._callbacks["$"+n],this},e.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var r=new Array(arguments.length-1),o=this._callbacks["$"+n],a=1;a<arguments.length;a++)r[a-1]=arguments[a];if(o){a=0;for(var s=(o=o.slice(0)).length;a<s;++a)o[a].apply(this,r)}return this},e.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]},e.prototype.hasListeners=function(n){return!!this.listeners(n).length}})({get exports(){return pw},set exports(t){pw=t}});var vw,Bf=pw;function Eo(){return Eo=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Eo.apply(this,arguments)}function Qi(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function Th(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}vw=typeof Object.assign!="function"?function(t){if(t==null)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var r=arguments[n];if(r!=null)for(var o in r)r.hasOwnProperty(o)&&(e[o]=r[o])}return e}:Object.assign;var na,to=vw,Hf=["","webkit","Moz","MS","ms","o"],GE=typeof document=="undefined"?{style:{}}:document.createElement("div"),gk="function",xh=Math.round,ia=Math.abs,Ml=Date.now;function Gf(t,e){for(var n,r,o=e[0].toUpperCase()+e.slice(1),a=0;a<Hf.length;){if((r=(n=Hf[a])?n+o:e)in t)return r;a++}}na=typeof window=="undefined"?{}:window;var Rm=Gf(GE.style,"touchAction"),jm=Rm!==void 0,mw="compute",Lm="auto",Fm="manipulation",fu="none",oa="pan-x",pu="pan-y",Oh=function(){if(!jm)return!1;var t={},e=na.CSS&&na.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(n){return t[n]=!e||na.CSS.supports("touch-action",n)}),t}(),Ym="ontouchstart"in na,yk=Gf(na,"PointerEvent")!==void 0,bk=Ym&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),Wf="touch",gw="mouse",Nl=25,On=1,Rl=2,mr=4,hi=8,Bm=1,zf=2,Eh=4,jl=8,Ll=16,Di=zf|Eh,vu=jl|Ll,Uf=Di|vu,yw=["x","y"],Dh=["clientX","clientY"];function eo(t,e,n){var r;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==void 0)for(r=0;r<t.length;)e.call(n,t[r],r,t),r++;else for(r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t)}function Fl(t,e){return typeof t===gk?t.apply(e&&e[0]||void 0,e):t}function Yl(t,e){return t.indexOf(e)>-1}var Bl=function(){function t(n,r){this.manager=n,this.set(r)}var e=t.prototype;return e.set=function(n){n===mw&&(n=this.compute()),jm&&this.manager.element.style&&Oh[n]&&(this.manager.element.style[Rm]=n),this.actions=n.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var n=[];return eo(this.manager.recognizers,function(r){Fl(r.options.enable,[r])&&(n=n.concat(r.getTouchAction()))}),function(r){if(Yl(r,fu))return fu;var o=Yl(r,oa),a=Yl(r,pu);return o&&a?fu:o||a?o?oa:pu:Yl(r,Fm)?Fm:Lm}(n.join(" "))},e.preventDefaults=function(n){var r=n.srcEvent,o=n.offsetDirection;if(this.manager.session.prevented)r.preventDefault();else{var a=this.actions,s=Yl(a,fu)&&!Oh[fu],d=Yl(a,pu)&&!Oh[pu],p=Yl(a,oa)&&!Oh[oa];if(s){var _=n.pointers.length===1,x=n.distance<2,O=n.deltaTime<250;if(_&&x&&O)return}if(!p||!d)return s||d&&o&Di||p&&o&vu?this.preventSrc(r):void 0}},e.preventSrc=function(n){this.manager.session.prevented=!0,n.preventDefault()},t}();function aa(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function Hm(t){var e=t.length;if(e===1)return{x:xh(t[0].clientX),y:xh(t[0].clientY)};for(var n=0,r=0,o=0;o<e;)n+=t[o].clientX,r+=t[o].clientY,o++;return{x:xh(n/e),y:xh(r/e)}}function wk(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:xh(t.pointers[n].clientX),clientY:xh(t.pointers[n].clientY)},n++;return{timeStamp:Ml(),pointers:e,center:Hm(e),deltaX:t.deltaX,deltaY:t.deltaY}}function Gm(t,e,n){n||(n=yw);var r=e[n[0]]-t[n[0]],o=e[n[1]]-t[n[1]];return Math.sqrt(r*r+o*o)}function Hl(t,e,n){n||(n=yw);var r=e[n[0]]-t[n[0]],o=e[n[1]]-t[n[1]];return 180*Math.atan2(o,r)/Math.PI}function _k(t,e){return t===e?Bm:ia(t)>=ia(e)?t<0?zf:Eh:e<0?jl:Ll}function Sk(t,e,n){return{x:e/t||0,y:n/t||0}}function WE(t,e){var n=t.session,r=e.pointers,o=r.length;n.firstInput||(n.firstInput=wk(e)),o>1&&!n.firstMultiple?n.firstMultiple=wk(e):o===1&&(n.firstMultiple=!1);var a=n.firstInput,s=n.firstMultiple,d=s?s.center:a.center,p=e.center=Hm(r);e.timeStamp=Ml(),e.deltaTime=e.timeStamp-a.timeStamp,e.angle=Hl(d,p),e.distance=Gm(d,p),function(G,X){var q=X.center,tt=G.offsetDelta||{},ot=G.prevDelta||{},wt=G.prevInput||{};X.eventType!==On&&wt.eventType!==mr||(ot=G.prevDelta={x:wt.deltaX||0,y:wt.deltaY||0},tt=G.offsetDelta={x:q.x,y:q.y}),X.deltaX=ot.x+(q.x-tt.x),X.deltaY=ot.y+(q.y-tt.y)}(n,e),e.offsetDirection=_k(e.deltaX,e.deltaY);var _,x,O=Sk(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=O.x,e.overallVelocityY=O.y,e.overallVelocity=ia(O.x)>ia(O.y)?O.x:O.y,e.scale=s?(_=s.pointers,Gm((x=r)[0],x[1],Dh)/Gm(_[0],_[1],Dh)):1,e.rotation=s?function(G,X){return Hl(X[1],X[0],Dh)+Hl(G[1],G[0],Dh)}(s.pointers,r):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(G,X){var q,tt,ot,wt,It=G.lastInterval||X,pt=X.timeStamp-It.timeStamp;if(X.eventType!==hi&&(pt>Nl||It.velocity===void 0)){var bt=X.deltaX-It.deltaX,ut=X.deltaY-It.deltaY,Lt=Sk(pt,bt,ut);tt=Lt.x,ot=Lt.y,q=ia(Lt.x)>ia(Lt.y)?Lt.x:Lt.y,wt=_k(bt,ut),G.lastInterval=X}else q=It.velocity,tt=It.velocityX,ot=It.velocityY,wt=It.direction;X.velocity=q,X.velocityX=tt,X.velocityY=ot,X.direction=wt}(n,e);var C,Y=t.element,j=e.srcEvent;aa(C=j.composedPath?j.composedPath()[0]:j.path?j.path[0]:j.target,Y)&&(Y=C),e.target=Y}function zE(t,e,n){var r=n.pointers.length,o=n.changedPointers.length,a=e&On&&r-o==0,s=e&(mr|hi)&&r-o==0;n.isFirst=!!a,n.isFinal=!!s,a&&(t.session={}),n.eventType=e,WE(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function Vf(t){return t.trim().split(/\s+/g)}function Ch(t,e,n){eo(Vf(e),function(r){t.addEventListener(r,n,!1)})}function Gl(t,e,n){eo(Vf(e),function(r){t.removeEventListener(r,n,!1)})}function Wm(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var Ih=function(){function t(n,r){var o=this;this.manager=n,this.callback=r,this.element=n.element,this.target=n.options.inputTarget,this.domHandler=function(a){Fl(n.options.enable,[n])&&o.handler(a)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&Ch(this.element,this.evEl,this.domHandler),this.evTarget&&Ch(this.target,this.evTarget,this.domHandler),this.evWin&&Ch(Wm(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&Gl(this.element,this.evEl,this.domHandler),this.evTarget&&Gl(this.target,this.evTarget,this.domHandler),this.evWin&&Gl(Wm(this.element),this.evWin,this.domHandler)},t}();function Ja(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var r=0;r<t.length;){if(n&&t[r][n]==e||!n&&t[r]===e)return r;r++}return-1}var kk={pointerdown:On,pointermove:Rl,pointerup:mr,pointercancel:hi,pointerout:hi},Tk={2:Wf,3:"pen",4:gw,5:"kinect"},Ph="pointerdown",ro="pointermove pointerup pointercancel";na.MSPointerEvent&&!na.PointerEvent&&(Ph="MSPointerDown",ro="MSPointerMove MSPointerUp MSPointerCancel");var bw=function(t){function e(){var n,r=e.prototype;return r.evEl=Ph,r.evWin=ro,(n=t.apply(this,arguments)||this).store=n.manager.session.pointerEvents=[],n}return Qi(e,t),e.prototype.handler=function(n){var r=this.store,o=!1,a=n.type.toLowerCase().replace("ms",""),s=kk[a],d=Tk[n.pointerType]||n.pointerType,p=d===Wf,_=Ja(r,n.pointerId,"pointerId");s&On&&(n.button===0||p)?_<0&&(r.push(n),_=r.length-1):s&(mr|hi)&&(o=!0),_<0||(r[_]=n,this.callback(this.manager,s,{pointers:r,changedPointers:[n],pointerType:d,srcEvent:n}),o&&r.splice(_,1))},e}(Ih);function Xf(t){return Array.prototype.slice.call(t,0)}function ww(t,e,n){for(var r=[],o=[],a=0;a<t.length;){var s=e?t[a][e]:t[a];Ja(o,s)<0&&r.push(t[a]),o[a]=s,a++}return n&&(r=e?r.sort(function(d,p){return d[e]>p[e]}):r.sort()),r}var _w={touchstart:On,touchmove:Rl,touchend:mr,touchcancel:hi},Sw="touchstart touchmove touchend touchcancel",kw=function(t){function e(){var n;return e.prototype.evTarget=Sw,(n=t.apply(this,arguments)||this).targetIds={},n}return Qi(e,t),e.prototype.handler=function(n){var r=_w[n.type],o=zm.call(this,n,r);o&&this.callback(this.manager,r,{pointers:o[0],changedPointers:o[1],pointerType:Wf,srcEvent:n})},e}(Ih);function zm(t,e){var n,r,o=Xf(t.touches),a=this.targetIds;if(e&(On|Rl)&&o.length===1)return a[o[0].identifier]=!0,[o,o];var s=Xf(t.changedTouches),d=[],p=this.target;if(r=o.filter(function(_){return aa(_.target,p)}),e===On)for(n=0;n<r.length;)a[r[n].identifier]=!0,n++;for(n=0;n<s.length;)a[s[n].identifier]&&d.push(s[n]),e&(mr|hi)&&delete a[s[n].identifier],n++;return d.length?[ww(r.concat(d),"identifier",!0),d]:void 0}var en={mousedown:On,mousemove:Rl,mouseup:mr},En="mousedown",Um="mousemove mouseup",qf=function(t){function e(){var n,r=e.prototype;return r.evEl=En,r.evWin=Um,(n=t.apply(this,arguments)||this).pressed=!1,n}return Qi(e,t),e.prototype.handler=function(n){var r=en[n.type];r&On&&n.button===0&&(this.pressed=!0),r&Rl&&n.which!==1&&(r=mr),this.pressed&&(r&mr&&(this.pressed=!1),this.callback(this.manager,r,{pointers:[n],changedPointers:[n],pointerType:gw,srcEvent:n}))},e}(Ih),Wl=2500,Tw=25;function Vm(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY},r=this.lastTouches;this.lastTouches.push(n),setTimeout(function(){var o=r.indexOf(n);o>-1&&r.splice(o,1)},Wl)}}function UE(t,e){t&On?(this.primaryTouch=e.changedPointers[0].identifier,Vm.call(this,e)):t&(mr|hi)&&Vm.call(this,e)}function Ah(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var o=this.lastTouches[r],a=Math.abs(e-o.x),s=Math.abs(n-o.y);if(a<=Tw&&s<=Tw)return!0}return!1}var mu=function(){return function(t){function e(n,r){var o;return(o=t.call(this,n,r)||this).handler=function(a,s,d){var p=d.pointerType===Wf,_=d.pointerType===gw;if(!(_&&d.sourceCapabilities&&d.sourceCapabilities.firesTouchEvents)){if(p)UE.call(Th(Th(o)),s,d);else if(_&&Ah.call(Th(Th(o)),d))return;o.callback(a,s,d)}},o.touch=new kw(o.manager,o.handler),o.mouse=new qf(o.manager,o.handler),o.primaryTouch=null,o.lastTouches=[],o}return Qi(e,t),e.prototype.destroy=function(){this.touch.destroy(),this.mouse.destroy()},e}(Ih)}();function Za(t,e,n){return!!Array.isArray(t)&&(eo(t,n[e],n),!0)}var Qa=1,$r=2,zl=4,ts=8,sa=ts,gu=16,no=32,Xm=1;function Ci(t,e){var n=e.manager;return n?n.get(t):t}function Ul(t){return t&gu?"cancel":t&ts?"end":t&zl?"move":t&$r?"start":""}var es=function(){function t(n){n===void 0&&(n={}),this.options=Eo({enable:!0},n),this.id=Xm++,this.manager=null,this.state=Qa,this.simultaneous={},this.requireFail=[]}var e=t.prototype;return e.set=function(n){return to(this.options,n),this.manager&&this.manager.touchAction.update(),this},e.recognizeWith=function(n){if(Za(n,"recognizeWith",this))return this;var r=this.simultaneous;return r[(n=Ci(n,this)).id]||(r[n.id]=n,n.recognizeWith(this)),this},e.dropRecognizeWith=function(n){return Za(n,"dropRecognizeWith",this)||(n=Ci(n,this),delete this.simultaneous[n.id]),this},e.requireFailure=function(n){if(Za(n,"requireFailure",this))return this;var r=this.requireFail;return Ja(r,n=Ci(n,this))===-1&&(r.push(n),n.requireFailure(this)),this},e.dropRequireFailure=function(n){if(Za(n,"dropRequireFailure",this))return this;n=Ci(n,this);var r=Ja(this.requireFail,n);return r>-1&&this.requireFail.splice(r,1),this},e.hasRequireFailures=function(){return this.requireFail.length>0},e.canRecognizeWith=function(n){return!!this.simultaneous[n.id]},e.emit=function(n){var r=this,o=this.state;function a(s){r.manager.emit(s,n)}o<ts&&a(r.options.event+Ul(o)),a(r.options.event),n.additionalEvent&&a(n.additionalEvent),o>=ts&&a(r.options.event+Ul(o))},e.tryEmit=function(n){if(this.canEmit())return this.emit(n);this.state=no},e.canEmit=function(){for(var n=0;n<this.requireFail.length;){if(!(this.requireFail[n].state&(no|Qa)))return!1;n++}return!0},e.recognize=function(n){var r=to({},n);if(!Fl(this.options.enable,[this,r]))return this.reset(),void(this.state=no);this.state&(sa|gu|no)&&(this.state=Qa),this.state=this.process(r),this.state&($r|zl|ts|gu)&&this.tryEmit(r)},e.process=function(n){},e.getTouchAction=function(){},e.reset=function(){},t}(),yu=function(t){function e(r){var o;return r===void 0&&(r={}),(o=t.call(this,Eo({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},r))||this).pTime=!1,o.pCenter=!1,o._timer=null,o._input=null,o.count=0,o}Qi(e,t);var n=e.prototype;return n.getTouchAction=function(){return[Fm]},n.process=function(r){var o=this,a=this.options,s=r.pointers.length===a.pointers,d=r.distance<a.threshold,p=r.deltaTime<a.time;if(this.reset(),r.eventType&On&&this.count===0)return this.failTimeout();if(d&&p&&s){if(r.eventType!==mr)return this.failTimeout();var _=!this.pTime||r.timeStamp-this.pTime<a.interval,x=!this.pCenter||Gm(this.pCenter,r.center)<a.posThreshold;if(this.pTime=r.timeStamp,this.pCenter=r.center,x&&_?this.count+=1:this.count=1,this._input=r,this.count%a.taps===0)return this.hasRequireFailures()?(this._timer=setTimeout(function(){o.state=sa,o.tryEmit()},a.interval),$r):sa}return no},n.failTimeout=function(){var r=this;return this._timer=setTimeout(function(){r.state=no},this.options.interval),no},n.reset=function(){clearTimeout(this._timer)},n.emit=function(){this.state===sa&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},e}(es),$h=function(t){function e(r){return r===void 0&&(r={}),t.call(this,Eo({pointers:1},r))||this}Qi(e,t);var n=e.prototype;return n.attrTest=function(r){var o=this.options.pointers;return o===0||r.pointers.length===o},n.process=function(r){var o=this.state,a=r.eventType,s=o&($r|zl),d=this.attrTest(r);return s&&(a&hi||!d)?o|gu:s||d?a&mr?o|ts:o&$r?o|zl:$r:no},e}(es);function xw(t){return t===Ll?"down":t===jl?"up":t===zf?"left":t===Eh?"right":""}var Vl=function(t){function e(r){var o;return r===void 0&&(r={}),(o=t.call(this,Eo({event:"pan",threshold:10,pointers:1,direction:Uf},r))||this).pX=null,o.pY=null,o}Qi(e,t);var n=e.prototype;return n.getTouchAction=function(){var r=this.options.direction,o=[];return r&Di&&o.push(pu),r&vu&&o.push(oa),o},n.directionTest=function(r){var o=this.options,a=!0,s=r.distance,d=r.direction,p=r.deltaX,_=r.deltaY;return d&o.direction||(o.direction&Di?(d=p===0?Bm:p<0?zf:Eh,a=p!==this.pX,s=Math.abs(r.deltaX)):(d=_===0?Bm:_<0?jl:Ll,a=_!==this.pY,s=Math.abs(r.deltaY))),r.direction=d,a&&s>o.threshold&&d&o.direction},n.attrTest=function(r){return $h.prototype.attrTest.call(this,r)&&(this.state&$r||!(this.state&$r)&&this.directionTest(r))},n.emit=function(r){this.pX=r.deltaX,this.pY=r.deltaY;var o=xw(r.direction);o&&(r.additionalEvent=this.options.event+o),t.prototype.emit.call(this,r)},e}($h),qm=function(t){function e(r){return r===void 0&&(r={}),t.call(this,Eo({event:"swipe",threshold:10,velocity:.3,direction:Di|vu,pointers:1},r))||this}Qi(e,t);var n=e.prototype;return n.getTouchAction=function(){return Vl.prototype.getTouchAction.call(this)},n.attrTest=function(r){var o,a=this.options.direction;return a&(Di|vu)?o=r.overallVelocity:a&Di?o=r.overallVelocityX:a&vu&&(o=r.overallVelocityY),t.prototype.attrTest.call(this,r)&&a&r.offsetDirection&&r.distance>this.options.threshold&&r.maxPointers===this.options.pointers&&ia(o)>this.options.velocity&&r.eventType&mr},n.emit=function(r){var o=xw(r.offsetDirection);o&&this.manager.emit(this.options.event+o,r),this.manager.emit(this.options.event,r)},e}($h),Xl=function(t){function e(r){return r===void 0&&(r={}),t.call(this,Eo({event:"pinch",threshold:0,pointers:2},r))||this}Qi(e,t);var n=e.prototype;return n.getTouchAction=function(){return[fu]},n.attrTest=function(r){return t.prototype.attrTest.call(this,r)&&(Math.abs(r.scale-1)>this.options.threshold||this.state&$r)},n.emit=function(r){if(r.scale!==1){var o=r.scale<1?"in":"out";r.additionalEvent=this.options.event+o}t.prototype.emit.call(this,r)},e}($h),Km=function(t){function e(r){return r===void 0&&(r={}),t.call(this,Eo({event:"rotate",threshold:0,pointers:2},r))||this}Qi(e,t);var n=e.prototype;return n.getTouchAction=function(){return[fu]},n.attrTest=function(r){return t.prototype.attrTest.call(this,r)&&(Math.abs(r.rotation)>this.options.threshold||this.state&$r)},e}($h),Mh=function(t){function e(r){var o;return r===void 0&&(r={}),(o=t.call(this,Eo({event:"press",pointers:1,time:251,threshold:9},r))||this)._timer=null,o._input=null,o}Qi(e,t);var n=e.prototype;return n.getTouchAction=function(){return[Lm]},n.process=function(r){var o=this,a=this.options,s=r.pointers.length===a.pointers,d=r.distance<a.threshold,p=r.deltaTime>a.time;if(this._input=r,!d||!s||r.eventType&(mr|hi)&&!p)this.reset();else if(r.eventType&On)this.reset(),this._timer=setTimeout(function(){o.state=sa,o.tryEmit()},a.time);else if(r.eventType&mr)return sa;return no},n.reset=function(){clearTimeout(this._timer)},n.emit=function(r){this.state===sa&&(r&&r.eventType&mr?this.manager.emit(this.options.event+"up",r):(this._input.timeStamp=Ml(),this.manager.emit(this.options.event,this._input)))},e}(es),Jm={domEvents:!1,touchAction:mw,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},xk=[[Km,{enable:!1}],[Xl,{enable:!1},["rotate"]],[qm,{direction:Di}],[Vl,{direction:Di},["swipe"]],[yu],[yu,{event:"doubletap",taps:2},["tap"]],[Mh]];function Dn(t,e){var n,r=t.element;r.style&&(eo(t.options.cssProps,function(o,a){n=Gf(r.style,a),e?(t.oldCssProps[n]=r.style[n],r.style[n]=o):r.style[n]=t.oldCssProps[n]||""}),e||(t.oldCssProps={}))}var rs=function(){function t(n,r){var o,a=this;this.options=to({},Jm,r||{}),this.options.inputTarget=this.options.inputTarget||n,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=n,this.input=new((o=this).options.inputClass||(yk?bw:bk?kw:Ym?mu:qf))(o,zE),this.touchAction=new Bl(this,this.options.touchAction),Dn(this,!0),eo(this.options.recognizers,function(s){var d=a.add(new s[0](s[1]));s[2]&&d.recognizeWith(s[2]),s[3]&&d.requireFailure(s[3])},this)}var e=t.prototype;return e.set=function(n){return to(this.options,n),n.touchAction&&this.touchAction.update(),n.inputTarget&&(this.input.destroy(),this.input.target=n.inputTarget,this.input.init()),this},e.stop=function(n){this.session.stopped=n?2:1},e.recognize=function(n){var r=this.session;if(!r.stopped){var o;this.touchAction.preventDefaults(n);var a=this.recognizers,s=r.curRecognizer;(!s||s&&s.state&sa)&&(r.curRecognizer=null,s=null);for(var d=0;d<a.length;)o=a[d],r.stopped===2||s&&o!==s&&!o.canRecognizeWith(s)?o.reset():o.recognize(n),!s&&o.state&($r|zl|ts)&&(r.curRecognizer=o,s=o),d++}},e.get=function(n){if(n instanceof es)return n;for(var r=this.recognizers,o=0;o<r.length;o++)if(r[o].options.event===n)return r[o];return null},e.add=function(n){if(Za(n,"add",this))return this;var r=this.get(n.options.event);return r&&this.remove(r),this.recognizers.push(n),n.manager=this,this.touchAction.update(),n},e.remove=function(n){if(Za(n,"remove",this))return this;var r=this.get(n);if(n){var o=this.recognizers,a=Ja(o,r);a!==-1&&(o.splice(a,1),this.touchAction.update())}return this},e.on=function(n,r){if(n===void 0||r===void 0)return this;var o=this.handlers;return eo(Vf(n),function(a){o[a]=o[a]||[],o[a].push(r)}),this},e.off=function(n,r){if(n===void 0)return this;var o=this.handlers;return eo(Vf(n),function(a){r?o[a]&&o[a].splice(Ja(o[a],r),1):delete o[a]}),this},e.emit=function(n,r){this.options.domEvents&&function(s,d){var p=document.createEvent("Event");p.initEvent(s,!0,!0),p.gesture=d,d.target.dispatchEvent(p)}(n,r);var o=this.handlers[n]&&this.handlers[n].slice();if(o&&o.length){r.type=n,r.preventDefault=function(){r.srcEvent.preventDefault()};for(var a=0;a<o.length;)o[a](r),a++}},e.destroy=function(){this.element&&Dn(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},t}(),Sr={touchstart:On,touchmove:Rl,touchend:mr,touchcancel:hi},Vn="touchstart",Kf="touchstart touchmove touchend touchcancel",Nh=function(t){function e(){var n,r=e.prototype;return r.evTarget=Vn,r.evWin=Kf,(n=t.apply(this,arguments)||this).started=!1,n}return Qi(e,t),e.prototype.handler=function(n){var r=Sr[n.type];if(r===On&&(this.started=!0),this.started){var o=Jf.call(this,n,r);r&(mr|hi)&&o[0].length-o[1].length==0&&(this.started=!1),this.callback(this.manager,r,{pointers:o[0],changedPointers:o[1],pointerType:Wf,srcEvent:n})}},e}(Ih);function Jf(t,e){var n=Xf(t.touches),r=Xf(t.changedTouches);return e&(mr|hi)&&(n=ww(n.concat(r),"identifier",!0)),[n,r]}function ql(t,e,n){var r="DEPRECATED METHOD: "+e+`
`+n+` AT
`;return function(){var o=new Error("get-stack-trace"),a=o&&o.stack?o.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",s=window.console&&(window.console.warn||window.console.log);return s&&s.call(window.console,r,a),t.apply(this,arguments)}}var Kl=ql(function(t,e,n){for(var r=Object.keys(e),o=0;o<r.length;)(!n||n&&t[r[o]]===void 0)&&(t[r[o]]=e[r[o]]),o++;return t},"extend","Use `assign`."),Xn=ql(function(t,e){return Kl(t,e,!0)},"merge","Use `assign`.");function io(t,e,n){var r,o=e.prototype;(r=t.prototype=Object.create(o)).constructor=t,r._super=o,n&&to(r,n)}function Zf(t,e){return function(){return t.apply(e,arguments)}}var Ow=function(){var t=function(e,n){return n===void 0&&(n={}),new rs(e,Eo({recognizers:xk.concat()},n))};return t.VERSION="2.0.17-rc",t.DIRECTION_ALL=Uf,t.DIRECTION_DOWN=Ll,t.DIRECTION_LEFT=zf,t.DIRECTION_RIGHT=Eh,t.DIRECTION_UP=jl,t.DIRECTION_HORIZONTAL=Di,t.DIRECTION_VERTICAL=vu,t.DIRECTION_NONE=Bm,t.DIRECTION_DOWN=Ll,t.INPUT_START=On,t.INPUT_MOVE=Rl,t.INPUT_END=mr,t.INPUT_CANCEL=hi,t.STATE_POSSIBLE=Qa,t.STATE_BEGAN=$r,t.STATE_CHANGED=zl,t.STATE_ENDED=ts,t.STATE_RECOGNIZED=sa,t.STATE_CANCELLED=gu,t.STATE_FAILED=no,t.Manager=rs,t.Input=Ih,t.TouchAction=Bl,t.TouchInput=kw,t.MouseInput=qf,t.PointerEventInput=bw,t.TouchMouseInput=mu,t.SingleTouchInput=Nh,t.Recognizer=es,t.AttrRecognizer=$h,t.Tap=yu,t.Pan=Vl,t.Swipe=qm,t.Pinch=Xl,t.Rotate=Km,t.Press=Mh,t.on=Ch,t.off=Gl,t.each=eo,t.merge=Xn,t.extend=Kl,t.bindFn=Zf,t.assign=to,t.inherit=io,t.bindFn=Zf,t.prefixed=Gf,t.toArray=Xf,t.inArray=Ja,t.uniqueArray=ww,t.splitStr=Vf,t.boolOrFn=Fl,t.hasParent=aa,t.addEventListeners=Ch,t.removeEventListeners=Gl,t.defaults=to({},Jm,{preset:xk}),t}();Ow.defaults;var bu=Ow;function ua(t,e){var n=Jr(t);if(im){var r=im(t);e&&(r=ve(r).call(r,function(o){return Yr(t,o).enumerable})),n.push.apply(n,r)}return n}function Qf(t){for(var e=1;e<arguments.length;e++){var n,r,o=arguments[e]!=null?arguments[e]:{};e%2?Ot(n=ua(Object(o),!0)).call(n,function(a){ea(t,a,o[a])}):ff?h0(t,ff(o)):Ot(r=ua(Object(o))).call(r,function(a){Tl(t,a,Yr(o,a))})}return t}function ns(t,e){var n=Oo!==void 0&&Qr(t)||t["@@iterator"];if(!n){if(ce(t)||(n=function(p,_){var x;if(p){if(typeof p=="string")return Ok(p,_);var O=vr(x=Object.prototype.toString.call(p)).call(x,8,-1);if(O==="Object"&&p.constructor&&(O=p.constructor.name),O==="Map"||O==="Set")return au(p);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return Ok(p,_)}}(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(p){throw p},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,s=!0,d=!1;return{s:function(){n=n.call(t)},n:function(){var p=n.next();return s=p.done,p},e:function(p){d=!0,a=p},f:function(){try{s||n.return==null||n.return()}finally{if(d)throw a}}}}function Ok(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Zm=Oo("DELETE");function tp(){var t=ep.apply(void 0,arguments);return rp(t),t}function ep(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(e.length<2)return e[0];var r;if(e.length>2)return ep.apply(void 0,Ke(r=[tp(e[0],e[1])]).call(r,Zi(vr(e).call(e,2))));var o,a=e[0],s=e[1],d=ns(SS(s));try{for(d.s();!(o=d.n()).done;){var p=o.value;Object.prototype.propertyIsEnumerable.call(s,p)&&(s[p]===Zm?delete a[p]:a[p]===null||s[p]===null||Jt(a[p])!=="object"||Jt(s[p])!=="object"||ce(a[p])||ce(s[p])?a[p]=Ew(s[p]):a[p]=ep(a[p],s[p]))}}catch(_){d.e(_)}finally{d.f()}return a}function Ew(t){return ce(t)?Br(t).call(t,function(e){return Ew(e)}):Jt(t)==="object"&&t!==null?ep({},t):t}function rp(t){for(var e=0,n=Jr(t);e<n.length;e++){var r=n[e];t[r]===Zm?delete t[r]:Jt(t[r])==="object"&&t[r]!==null&&rp(t[r])}}var np=typeof window!="undefined"?window.Hammer||bu:function(){return function(){var t=function(){};return{on:t,off:t,destroy:t,emit:t,get:function(){return{set:t}}}}()};function Do(t){var e,n=this;this._cleanupQueue=[],this.active=!1,this._dom={container:t,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push(function(){n._dom.overlay.parentNode.removeChild(n._dom.overlay)});var r=np(this._dom.overlay);r.on("tap",at(e=this._onTapOverlay).call(e,this)),this._cleanupQueue.push(function(){r.destroy()});var o=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];Ot(o).call(o,function(a){r.on(a,function(s){s.srcEvent.stopPropagation()})}),document&&document.body&&(this._onClick=function(a){(function(s,d){for(;s;){if(s===d)return!0;s=s.parentNode}return!1})(a.target,t)||n.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push(function(){document.body.removeEventListener("click",n._onClick)})),this._escListener=function(a){("key"in a?a.key==="Escape":a.keyCode===27)&&n.deactivate()}}Bf(Do.prototype),Do.current=null,Do.prototype.destroy=function(){var t,e;this.deactivate();var n,r=ns(W0(t=li(e=this._cleanupQueue).call(e,0)).call(t));try{for(r.s();!(n=r.n()).done;)(0,n.value)()}catch(o){r.e(o)}finally{r.f()}},Do.prototype.activate=function(){Do.current&&Do.current.deactivate(),Do.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)},Do.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")},Do.prototype._onTapOverlay=function(t){this.activate(),t.srcEvent.stopPropagation()};var VE=/^\/?Date\((-?\d+)/i,Ek=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,XE=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,qE=/^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,KE=/^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 ip(t){return t instanceof Number||typeof t=="number"}function di(t){return t instanceof String||typeof t=="string"}function Jl(t){return Jt(t)==="object"&&t!==null}function Co(t,e,n,r){var o=!1;r===!0&&(o=e[n]===null&&t[n]!==void 0),o?delete t[n]:t[n]=e[n]}var op=zn;function Rh(t,e){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],r=arguments.length>3&&arguments[3]!==void 0&&arguments[3];for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)||n===!0)if(Jt(e[o])==="object"&&e[o]!==null&&iw(e[o])===Object.prototype)t[o]===void 0?t[o]=Rh({},e[o],n):Jt(t[o])==="object"&&t[o]!==null&&iw(t[o])===Object.prototype?Rh(t[o],e[o],n):Co(t,e,o,r);else if(ce(e[o])){var a;t[o]=vr(a=e[o]).call(a)}else Co(t,e,o,r);return t}function la(t){var e=Jt(t);return e==="object"?t===null?"null":t instanceof Boolean?"Boolean":t instanceof Number?"Number":t instanceof String?"String":ce(t)?"Array":t instanceof Date?"Date":"Object":e==="number"?"Number":e==="boolean"?"Boolean":e==="string"?"String":e===void 0?"undefined":e}function Io(t,e){var n;return Ke(n=[]).call(n,Zi(t),[e])}function Dk(t){return vr(t).call(t)}var JE=fn,Ck={asBoolean:function(t,e){return typeof t=="function"&&(t=t()),t!=null?t!=0:e||null},asNumber:function(t,e){return typeof t=="function"&&(t=t()),t!=null?Number(t)||e||null:e||null},asString:function(t,e){return typeof t=="function"&&(t=t()),t!=null?String(t):e||null},asSize:function(t,e){return typeof t=="function"&&(t=t()),di(t)?t:ip(t)?t+"px":e||null},asElement:function(t,e){return typeof t=="function"&&(t=t()),t||e||null}};function ap(t){var e;switch(t.length){case 3:case 4:return(e=XE.exec(t))?{r:Oi(e[1]+e[1],16),g:Oi(e[2]+e[2],16),b:Oi(e[3]+e[3],16)}:null;case 6:case 7:return(e=Ek.exec(t))?{r:Oi(e[1],16),g:Oi(e[2],16),b:Oi(e[3],16)}:null;default:return null}}function Qm(t,e,n){var r;return"#"+vr(r=((1<<24)+(t<<16)+(e<<8)+n).toString(16)).call(r,1)}function ca(t,e,n){t/=255,e/=255,n/=255;var r=Math.min(t,Math.min(e,n)),o=Math.max(t,Math.max(e,n));return r===o?{h:0,s:0,v:r}:{h:60*((t===r?3:n===r?1:5)-(t===r?e-n:n===r?t-e:n-t)/(o-r))/360,s:(o-r)/o,v:o}}var wu={split:function(t){var e,n={};return Ot(e=t.split(";")).call(e,function(r){if(Cm(r).call(r)!=""){var o,a,s=r.split(":"),d=Cm(o=s[0]).call(o),p=Cm(a=s[1]).call(a);n[d]=p}}),n},join:function(t){var e;return Br(e=Jr(t)).call(e,function(n){return n+": "+t[n]}).join("; ")}};function sp(t,e,n){var r,o,a,s=Math.floor(6*t),d=6*t-s,p=n*(1-e),_=n*(1-d*e),x=n*(1-(1-d)*e);switch(s%6){case 0:r=n,o=x,a=p;break;case 1:r=_,o=n,a=p;break;case 2:r=p,o=n,a=x;break;case 3:r=p,o=_,a=n;break;case 4:r=x,o=p,a=n;break;case 5:r=n,o=p,a=_}return{r:Math.floor(255*r),g:Math.floor(255*o),b:Math.floor(255*a)}}function Dw(t,e,n){var r=sp(t,e,n);return Qm(r.r,r.g,r.b)}function tg(t){var e=ap(t);if(!e)throw new TypeError("'".concat(t,"' is not a valid color."));return ca(e.r,e.g,e.b)}function Cw(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)}function eg(t){return qE.test(t)}function Ik(t){return KE.test(t)}function up(t){if(t===null||Jt(t)!=="object")return null;if(t instanceof Element)return t;var e=Im(t);for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&Jt(t[n])=="object"&&(e[n]=up(t[n]));return e}var Iw={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"},Pk=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;Se(this,t),this.pixelRatio=e,this.generated=!1,this.centerCoordinates={x:144.5,y:144.5},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return Ce(t,[{key:"insertTo",value:function(e){this.hammer!==void 0&&(this.hammer.destroy(),this.hammer=void 0),this.container=e,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(e){if(typeof e!="function")throw new Error("Function attempted to set as colorPicker update callback is not a function.");this.updateCallback=e}},{key:"setCloseCallback",value:function(e){if(typeof e!="function")throw new Error("Function attempted to set as colorPicker closing callback is not a function.");this.closeCallback=e}},{key:"_isColorString",value:function(e){if(typeof e=="string")return Iw[e]}},{key:"setColor",value:function(e){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];if(e!=="none"){var r,o=this._isColorString(e);if(o!==void 0&&(e=o),di(e)===!0){if(eg(e)===!0){var a=e.substr(4).substr(0,e.length-5).split(",");r={r:a[0],g:a[1],b:a[2],a:1}}else if(Ik(e)===!0){var s=e.substr(5).substr(0,e.length-6).split(",");r={r:s[0],g:s[1],b:s[2],a:s[3]}}else if(Cw(e)===!0){var d=ap(e);r={r:d.r,g:d.g,b:d.b,a:1}}}else if(e instanceof Object&&e.r!==void 0&&e.g!==void 0&&e.b!==void 0){var p=e.a!==void 0?e.a:"1.0";r={r:e.r,g:e.g,b:e.b,a:p}}if(r===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: "+Un(e));this._setColor(r,n)}}},{key:"show",value:function(){this.closeCallback!==void 0&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var e=this;(!(arguments.length>0&&arguments[0]!==void 0)||arguments[0])===!0&&(this.previousColor=zn({},this.color)),this.applied===!0&&this.updateCallback(this.initialColor),this.frame.style.display="none",Yn(function(){e.closeCallback!==void 0&&(e.closeCallback(),e.closeCallback=void 0)},0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){this.previousColor!==void 0?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(e){(!(arguments.length>1&&arguments[1]!==void 0)||arguments[1])===!0&&(this.initialColor=zn({},e)),this.color=e;var n=ca(e.r,e.g,e.b),r=2*Math.PI,o=this.r*n.s,a=this.centerCoordinates.x+o*Math.sin(r*n.h),s=this.centerCoordinates.y+o*Math.cos(r*n.h);this.colorPickerSelector.style.left=a-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=s-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(e)}},{key:"_setOpacity",value:function(e){this.color.a=e/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(e){var n=ca(this.color.r,this.color.g,this.color.b);n.v=e/100;var r=sp(n.h,n.s,n.v);r.a=this.color.a,this.color=r,this._updatePicker()}},{key:"_updatePicker",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.color,n=ca(e.r,e.g,e.b),r=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(r.webkitBackingStorePixelRatio||r.mozBackingStorePixelRatio||r.msBackingStorePixelRatio||r.oBackingStorePixelRatio||r.backingStorePixelRatio||1)),r.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var o=this.colorPickerCanvas.clientWidth,a=this.colorPickerCanvas.clientHeight;r.clearRect(0,0,o,a),r.putImageData(this.hueCircle,0,0),r.fillStyle="rgba(0,0,0,"+(1-n.v)+")",r.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),fw(r).call(r),this.brightnessRange.value=100*n.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+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){var e,n,r,o;if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){var 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{var s=document.createElement("DIV");s.style.color="red",s.style.fontWeight="bold",s.style.padding="10px",s.innerText="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(s)}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(p){}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(p){}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var d=this;this.opacityRange.onchange=function(){d._setOpacity(this.value)},this.opacityRange.oninput=function(){d._setOpacity(this.value)},this.brightnessRange.onchange=function(){d._setBrightness(this.value)},this.brightnessRange.oninput=function(){d._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=at(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=at(n=this._apply).call(n,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerText="save",this.saveButton.onclick=at(r=this._save).call(r,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerText="load last",this.loadButton.onclick=at(o=this._loadLast).call(o,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:"_bindHammer",value:function(){var e=this;this.drag={},this.pinch={},this.hammer=new np(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("hammer.input",function(n){n.isFirst&&e._moveSelector(n)}),this.hammer.on("tap",function(n){e._moveSelector(n)}),this.hammer.on("panstart",function(n){e._moveSelector(n)}),this.hammer.on("panmove",function(n){e._moveSelector(n)}),this.hammer.on("panend",function(n){e._moveSelector(n)})}},{key:"_generateHueCircle",value:function(){if(this.generated===!1){var 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);var n,r,o,a,s=this.colorPickerCanvas.clientWidth,d=this.colorPickerCanvas.clientHeight;e.clearRect(0,0,s,d),this.centerCoordinates={x:.5*s,y:.5*d},this.r=.49*s;var p,_=2*Math.PI/360,x=1/this.r;for(o=0;o<360;o++)for(a=0;a<this.r;a++)n=this.centerCoordinates.x+a*Math.sin(_*o),r=this.centerCoordinates.y+a*Math.cos(_*o),p=sp(.002777777777777778*o,a*x,1),e.fillStyle="rgb("+p.r+","+p.g+","+p.b+")",e.fillRect(n-.5,r-.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,s,d)}this.generated=!0}},{key:"_moveSelector",value:function(e){var n=this.colorPickerDiv.getBoundingClientRect(),r=e.center.x-n.left,o=e.center.y-n.top,a=.5*this.colorPickerDiv.clientHeight,s=.5*this.colorPickerDiv.clientWidth,d=r-s,p=o-a,_=Math.atan2(d,p),x=.98*Math.min(Math.sqrt(d*d+p*p),s),O=Math.cos(_)*x+a,C=Math.sin(_)*x+s;this.colorPickerSelector.style.top=O-.5*this.colorPickerSelector.clientHeight+"px",this.colorPickerSelector.style.left=C-.5*this.colorPickerSelector.clientWidth+"px";var Y=_/(2*Math.PI);Y=Y<0?Y+1:Y;var j=x/this.r,G=ca(this.color.r,this.color.g,this.color.b);G.h=Y,G.s=j;var X=sp(G.h,G.s,G.v);X.a=this.color.a,this.color=X,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}}]),t}();function rg(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(e.length<1)throw new TypeError("Invalid arguments.");if(e.length===1)return document.createTextNode(e[0]);var r=document.createElement(e[0]);return r.appendChild(rg.apply(void 0,Zi(vr(e).call(e,1)))),r}var Pw,Ak=function(){function t(e,n,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){return!1};Se(this,t),this.parent=e,this.changedOptions=[],this.container=n,this.allowCreation=!1,this.hideOption=a,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},zn(this.options,this.defaultOptions),this.configureOptions=r,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new Pk(o),this.wrapper=void 0}return Ce(t,[{key:"setOptions",value:function(e){if(e!==void 0){this.popupHistory={},this._removePopup();var n=!0;if(typeof e=="string")this.options.filter=e;else if(ce(e))this.options.filter=e.join();else if(Jt(e)==="object"){if(e==null)throw new TypeError("options cannot be null");e.container!==void 0&&(this.options.container=e.container),ve(e)!==void 0&&(this.options.filter=ve(e)),e.showButton!==void 0&&(this.options.showButton=e.showButton),e.enabled!==void 0&&(n=e.enabled)}else typeof e=="boolean"?(this.options.filter=!0,n=e):typeof e=="function"&&(this.options.filter=e,n=!0);ve(this.options)===!1&&(n=!1),this.options.enabled=n}this._clean()}},{key:"setModuleOptions",value:function(e){this.moduleOptions=e,this.options.enabled===!0&&(this._clean(),this.options.container!==void 0&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var e=ve(this.options),n=0,r=!1;for(var o in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,o)&&(this.allowCreation=!1,r=!1,typeof e=="function"?r=(r=e(o,[]))||this._handleObject(this.configureOptions[o],[o],!0):e!==!0&&Ie(e).call(e,o)===-1||(r=!0),r!==!1&&(this.allowCreation=!0,n>0&&this._makeItem([]),this._makeHeader(o),this._handleObject(this.configureOptions[o],[o])),n++);this._makeButton(),this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var e=0;e<this.domElements.length;e++)this.wrapper.appendChild(this.domElements[e]);this._showPopupIfNeeded()}},{key:"_clean",value:function(){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()}},{key:"_getValue",value:function(e){for(var n=this.moduleOptions,r=0;r<e.length;r++){if(n[e[r]]===void 0){n=void 0;break}n=n[e[r]]}return n}},{key:"_makeItem",value:function(e){if(this.allowCreation===!0){var n=document.createElement("div");n.className="vis-configuration vis-config-item vis-config-s"+e.length;for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];return Ot(o).call(o,function(s){n.appendChild(s)}),this.domElements.push(n),this.domElements.length}return 0}},{key:"_makeHeader",value:function(e){var n=document.createElement("div");n.className="vis-configuration vis-config-header",n.innerText=e,this._makeItem([],n)}},{key:"_makeLabel",value:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0&&arguments[2],o=document.createElement("div");if(o.className="vis-configuration vis-config-label vis-config-s"+n.length,r===!0){for(;o.firstChild;)o.removeChild(o.firstChild);o.appendChild(rg("i","b",e))}else o.innerText=e+":";return o}},{key:"_makeDropdown",value:function(e,n,r){var o=document.createElement("select");o.className="vis-configuration vis-config-select";var a=0;n!==void 0&&Ie(e).call(e,n)!==-1&&(a=Ie(e).call(e,n));for(var s=0;s<e.length;s++){var d=document.createElement("option");d.value=e[s],s===a&&(d.selected="selected"),d.innerText=e[s],o.appendChild(d)}var p=this;o.onchange=function(){p._update(this.value,r)};var _=this._makeLabel(r[r.length-1],r);this._makeItem(r,_,o)}},{key:"_makeRange",value:function(e,n,r){var o=e[0],a=e[1],s=e[2],d=e[3],p=document.createElement("input");p.className="vis-configuration vis-config-range";try{p.type="range",p.min=a,p.max=s}catch(X){}p.step=d;var _="",x=0;if(n!==void 0){var O=1.2;n<0&&n*O<a?(p.min=Math.ceil(n*O),x=p.min,_="range increased"):n/O<a&&(p.min=Math.ceil(n/O),x=p.min,_="range increased"),n*O>s&&s!==1&&(p.max=Math.ceil(n*O),x=p.max,_="range increased"),p.value=n}else p.value=o;var C=document.createElement("input");C.className="vis-configuration vis-config-rangeinput",C.value=p.value;var Y=this;p.onchange=function(){C.value=this.value,Y._update(Number(this.value),r)},p.oninput=function(){C.value=this.value};var j=this._makeLabel(r[r.length-1],r),G=this._makeItem(r,j,p,C);_!==""&&this.popupHistory[G]!==x&&(this.popupHistory[G]=x,this._setupPopup(_,G))}},{key:"_makeButton",value:function(){var e=this;if(this.options.showButton===!0){var n=document.createElement("div");n.className="vis-configuration vis-config-button",n.innerText="generate options",n.onclick=function(){e._printOptions()},n.onmouseover=function(){n.className="vis-configuration vis-config-button hover"},n.onmouseout=function(){n.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(n)}}},{key:"_setupPopup",value:function(e,n){var r=this;if(this.initialized===!0&&this.allowCreation===!0&&this.popupCounter<this.popupLimit){var o=document.createElement("div");o.id="vis-configuration-popup",o.className="vis-configuration-popup",o.innerText=e,o.onclick=function(){r._removePopup()},this.popupCounter+=1,this.popupDiv={html:o,index:n}}}},{key:"_removePopup",value:function(){this.popupDiv.html!==void 0&&(this.popupDiv.html.parentNode.removeChild(this.popupDiv.html),clearTimeout(this.popupDiv.hideTimeout),clearTimeout(this.popupDiv.deleteTimeout),this.popupDiv={})}},{key:"_showPopupIfNeeded",value:function(){var e=this;if(this.popupDiv.html!==void 0){var n=this.domElements[this.popupDiv.index].getBoundingClientRect();this.popupDiv.html.style.left=n.left+"px",this.popupDiv.html.style.top=n.top-30+"px",document.body.appendChild(this.popupDiv.html),this.popupDiv.hideTimeout=Yn(function(){e.popupDiv.html.style.opacity=0},1500),this.popupDiv.deleteTimeout=Yn(function(){e._removePopup()},1800)}}},{key:"_makeCheckbox",value:function(e,n,r){var o=document.createElement("input");o.type="checkbox",o.className="vis-configuration vis-config-checkbox",o.checked=e,n!==void 0&&(o.checked=n,n!==e&&(Jt(e)==="object"?n!==e.enabled&&this.changedOptions.push({path:r,value:n}):this.changedOptions.push({path:r,value:n})));var a=this;o.onchange=function(){a._update(this.checked,r)};var s=this._makeLabel(r[r.length-1],r);this._makeItem(r,s,o)}},{key:"_makeTextInput",value:function(e,n,r){var o=document.createElement("input");o.type="text",o.className="vis-configuration vis-config-text",o.value=n,n!==e&&this.changedOptions.push({path:r,value:n});var a=this;o.onchange=function(){a._update(this.value,r)};var s=this._makeLabel(r[r.length-1],r);this._makeItem(r,s,o)}},{key:"_makeColorField",value:function(e,n,r){var o=this,a=e[1],s=document.createElement("div");(n=n===void 0?a:n)!=="none"?(s.className="vis-configuration vis-config-colorBlock",s.style.backgroundColor=n):s.className="vis-configuration vis-config-colorBlock none",n=n===void 0?a:n,s.onclick=function(){o._showColorPicker(n,s,r)};var d=this._makeLabel(r[r.length-1],r);this._makeItem(r,d,s)}},{key:"_showColorPicker",value:function(e,n,r){var o=this;n.onclick=function(){},this.colorPicker.insertTo(n),this.colorPicker.show(),this.colorPicker.setColor(e),this.colorPicker.setUpdateCallback(function(a){var s="rgba("+a.r+","+a.g+","+a.b+","+a.a+")";n.style.backgroundColor=s,o._update(s,r)}),this.colorPicker.setCloseCallback(function(){n.onclick=function(){o._showColorPicker(e,n,r)}})}},{key:"_handleObject",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0&&arguments[2],o=!1,a=ve(this.options),s=!1;for(var d in e)if(Object.prototype.hasOwnProperty.call(e,d)){o=!0;var p=e[d],_=Io(n,d);if(typeof a=="function"&&(o=a(d,n))===!1&&!ce(p)&&typeof p!="string"&&typeof p!="boolean"&&p instanceof Object&&(this.allowCreation=!1,o=this._handleObject(p,_,!0),this.allowCreation=r===!1),o!==!1){s=!0;var x=this._getValue(_);if(ce(p))this._handleArray(p,x,_);else if(typeof p=="string")this._makeTextInput(p,x,_);else if(typeof p=="boolean")this._makeCheckbox(p,x,_);else if(p instanceof Object){if(!this.hideOption(n,d,this.moduleOptions))if(p.enabled!==void 0){var O=Io(_,"enabled"),C=this._getValue(O);if(C===!0){var Y=this._makeLabel(d,_,!0);this._makeItem(_,Y),s=this._handleObject(p,_)||s}else this._makeCheckbox(p,C,_)}else{var j=this._makeLabel(d,_,!0);this._makeItem(_,j),s=this._handleObject(p,_)||s}}else console.error("dont know how to handle",p,d,_)}}return s}},{key:"_handleArray",value:function(e,n,r){typeof e[0]=="string"&&e[0]==="color"?(this._makeColorField(e,n,r),e[1]!==n&&this.changedOptions.push({path:r,value:n})):typeof e[0]=="string"?(this._makeDropdown(e,n,r),e[0]!==n&&this.changedOptions.push({path:r,value:n})):typeof e[0]=="number"&&(this._makeRange(e,n,r),e[0]!==n&&this.changedOptions.push({path:r,value:Number(n)}))}},{key:"_update",value:function(e,n){var r=this._constructOptions(e,n);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",r),this.initialized=!0,this.parent.setOptions(r)}},{key:"_constructOptions",value:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=r;e=(e=e==="true"||e)!=="false"&&e;for(var a=0;a<n.length;a++)n[a]!=="global"&&(o[n[a]]===void 0&&(o[n[a]]={}),a!==n.length-1?o=o[n[a]]:o[n[a]]=e);return r}},{key:"_printOptions",value:function(){for(var e=this.getOptions();this.optionsContainer.firstChild;)this.optionsContainer.removeChild(this.optionsContainer.firstChild);this.optionsContainer.appendChild(rg("pre","const options = "+Un(e,null,2)))}},{key:"getOptions",value:function(){for(var e={},n=0;n<this.changedOptions.length;n++)this._constructOptions(this.changedOptions[n].value,this.changedOptions[n].path,e);return e}}]),t}(),ZE=function(){function t(e,n){Se(this,t),this.container=e,this.overflowMethod=n||"cap",this.x=0,this.y=0,this.padding=5,this.hidden=!1,this.frame=document.createElement("div"),this.frame.className="vis-tooltip",this.container.appendChild(this.frame)}return Ce(t,[{key:"setPosition",value:function(e,n){this.x=Oi(e),this.y=Oi(n)}},{key:"setText",value:function(e){if(e instanceof Element){for(;this.frame.firstChild;)this.frame.removeChild(this.frame.firstChild);this.frame.appendChild(e)}else this.frame.innerText=e}},{key:"show",value:function(e){if(e===void 0&&(e=!0),e===!0){var n=this.frame.clientHeight,r=this.frame.clientWidth,o=this.frame.parentNode.clientHeight,a=this.frame.parentNode.clientWidth,s=0,d=0;if(this.overflowMethod=="flip"){var p=!1,_=!0;this.y-n<this.padding&&(_=!1),this.x+r>a-this.padding&&(p=!0),s=p?this.x-r:this.x,d=_?this.y-n:this.y}else(d=this.y-n)+n+this.padding>o&&(d=o-n-this.padding),d<this.padding&&(d=this.padding),(s=this.x)+r+this.padding>a&&(s=a-r-this.padding),s<this.padding&&(s=this.padding);this.frame.style.left=s+"px",this.frame.style.top=d+"px",this.frame.style.visibility="visible",this.hidden=!1}else this.hide()}},{key:"hide",value:function(){this.hidden=!0,this.frame.style.left="0",this.frame.style.top="0",this.frame.style.visibility="hidden"}},{key:"destroy",value:function(){this.frame.parentNode.removeChild(this.frame)}}]),t}(),jh=!1,Aw="background: #FFeeee; color: #dd0000",Lh=function(){function t(){Se(this,t)}return Ce(t,null,[{key:"validate",value:function(e,n,r){jh=!1,Pw=n;var o=n;return r!==void 0&&(o=n[r]),t.parse(e,o,[]),jh}},{key:"parse",value:function(e,n,r){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.check(o,e,n,r)}},{key:"check",value:function(e,n,r,o){if(r[e]!==void 0||r.__any__!==void 0){var a=e,s=!0;r[e]===void 0&&r.__any__!==void 0&&(a="__any__",s=t.getType(n[e])==="object");var d=r[a];s&&d.__type__!==void 0&&(d=d.__type__),t.checkFields(e,n,r,a,d,o)}else t.getSuggestion(e,r,o)}},{key:"checkFields",value:function(e,n,r,o,a,s){var d=function(x){console.error("%c"+x+t.printLocation(s,e),Aw)},p=t.getType(n[e]),_=a[p];_!==void 0?t.getType(_)==="array"&&Ie(_).call(_,n[e])===-1?(d('Invalid option detected in "'+e+'". Allowed values are:'+t.print(_)+' not "'+n[e]+'". '),jh=!0):p==="object"&&o!=="__any__"&&(s=Io(s,e),t.parse(n[e],r[o],s)):a.any===void 0&&(d('Invalid type received for "'+e+'". Expected: '+t.print(Jr(a))+". Received ["+p+'] "'+n[e]+'"'),jh=!0)}},{key:"getType",value:function(e){var n=Jt(e);return n==="object"?e===null?"null":e instanceof Boolean?"boolean":e instanceof Number?"number":e instanceof String?"string":ce(e)?"array":e instanceof Date?"date":e.nodeType!==void 0?"dom":e._isAMomentObject===!0?"moment":"object":n==="number"?"number":n==="boolean"?"boolean":n==="string"?"string":n===void 0?"undefined":n}},{key:"getSuggestion",value:function(e,n,r){var o,a=t.findInOptions(e,n,r,!1),s=t.findInOptions(e,Pw,[],!0);o=a.indexMatch!==void 0?" in "+t.printLocation(a.path,e,"")+'Perhaps it was incomplete? Did you mean: "'+a.indexMatch+`"?
`:s.distance<=4&&a.distance>s.distance?" in "+t.printLocation(a.path,e,"")+"Perhaps it was misplaced? Matching option found at: "+t.printLocation(s.path,s.closestMatch,""):a.distance<=8?'. Did you mean "'+a.closestMatch+'"?'+t.printLocation(a.path,e):". Did you mean one of these: "+t.print(Jr(n))+t.printLocation(r,e),console.error('%cUnknown option detected: "'+e+'"'+o,Aw),jh=!0}},{key:"findInOptions",value:function(e,n,r){var o=arguments.length>3&&arguments[3]!==void 0&&arguments[3],a=1e9,s="",d=[],p=e.toLowerCase(),_=void 0;for(var x in n){var O=void 0;if(n[x].__type__!==void 0&&o===!0){var C=t.findInOptions(e,n[x],Io(r,x));a>C.distance&&(s=C.closestMatch,d=C.path,a=C.distance,_=C.indexMatch)}else{var Y;Ie(Y=x.toLowerCase()).call(Y,p)!==-1&&(_=x),a>(O=t.levenshteinDistance(e,x))&&(s=x,d=Dk(r),a=O)}}return{closestMatch:s,path:d,distance:a,indexMatch:_}}},{key:"printLocation",value:function(e,n){for(var r=`
`+(arguments.length>2&&arguments[2]!==void 0?arguments[2]:`Problem value found at:
`)+`options = {
`,o=0;o<e.length;o++){for(var a=0;a<o+1;a++)r+=" ";r+=e[o]+`: {
`}for(var s=0;s<e.length+1;s++)r+=" ";r+=n+`
`;for(var d=0;d<e.length+1;d++){for(var p=0;p<e.length-d;p++)r+=" ";r+=`}
`}return r+`
`}},{key:"print",value:function(e){return Un(e).replace(/(")|(\[)|(\])|(,"__type__")/g,"").replace(/(,)/g,", ")}},{key:"levenshteinDistance",value:function(e,n){if(e.length===0)return n.length;if(n.length===0)return e.length;var r,o,a=[];for(r=0;r<=n.length;r++)a[r]=[r];for(o=0;o<=e.length;o++)a[0][o]=o;for(r=1;r<=n.length;r++)for(o=1;o<=e.length;o++)n.charAt(r-1)==e.charAt(o-1)?a[r][o]=a[r-1][o-1]:a[r][o]=Math.min(a[r-1][o-1]+1,Math.min(a[r][o-1]+1,a[r-1][o]+1));return a[n.length][e.length]}}]),t}(),ng=Do,oo=Pk,Fh=Ak,_u=np,ao=ZE,lp=Aw,hr=Lh,$k=Object.freeze({__proto__:null,Activator:ng,Alea:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(r){var o=function(){for(var O=function(){var X=4022871197;return function(q){for(var tt=q.toString(),ot=0;ot<tt.length;ot++){var wt=.02519603282416938*(X+=tt.charCodeAt(ot));wt-=X=wt>>>0,X=(wt*=X)>>>0,X+=4294967296*(wt-=X)}return 23283064365386963e-26*(X>>>0)}}(),C=O(" "),Y=O(" "),j=O(" "),G=0;G<arguments.length;G++)(C-=O(G<0||arguments.length<=G?void 0:arguments[G]))<0&&(C+=1),(Y-=O(G<0||arguments.length<=G?void 0:arguments[G]))<0&&(Y+=1),(j-=O(G<0||arguments.length<=G?void 0:arguments[G]))<0&&(j+=1);return[C,Y,j]}(r),a=j0(o,3),s=a[0],d=a[1],p=a[2],_=1,x=function(){var O=2091639*s+23283064365386963e-26*_;return s=d,d=p,p=O-(_=0|O)};return x.uint32=function(){return 4294967296*x()},x.fract53=function(){return x()+11102230246251565e-32*(2097152*x()|0)},x.algorithm="Alea",x.seed=r,x.version="0.9",x}(e.length?e:[xi()])},ColorPicker:oo,Configurator:Fh,DELETE:Zm,HSVToHex:Dw,HSVToRGB:sp,Hammer:_u,Popup:ao,RGBToHSV:ca,RGBToHex:Qm,VALIDATOR_PRINT_STYLE:lp,Validator:hr,addClassName:function(t,e){var n=t.className.split(" "),r=e.split(" ");n=Ke(n).call(n,ve(r).call(r,function(o){return!Xa(n).call(n,o)})),t.className=n.join(" ")},addCssText:function(t,e){var n=wu.split(t.style.cssText),r=wu.split(e),o=Qf(Qf({},n),r);t.style.cssText=wu.join(o)},addEventListener:function(t,e,n,r){var o;t.addEventListener?(r===void 0&&(r=!1),e==="mousewheel"&&Xa(o=navigator.userAgent).call(o,"Firefox")&&(e="DOMMouseScroll"),t.addEventListener(e,n,r)):t.attachEvent("on"+e,n)},binarySearchCustom:function(t,e,n,r){for(var o=0,a=0,s=t.length-1;a<=s&&o<1e4;){var d=Math.floor((a+s)/2),p=t[d],_=e(r===void 0?p[n]:p[n][r]);if(_==0)return d;_==-1?a=d+1:s=d-1,o++}return-1},binarySearchValue:function(t,e,n,r,o){var a,s,d,p,_=0,x=0,O=t.length-1;for(o=o!=null?o:function(C,Y){return C==Y?0:C<Y?-1:1};x<=O&&_<1e4;){if(p=Math.floor(.5*(O+x)),a=t[Math.max(0,p-1)][n],s=t[p][n],d=t[Math.min(t.length-1,p+1)][n],o(s,e)==0)return p;if(o(a,e)<0&&o(s,e)>0)return r=="before"?Math.max(0,p-1):p;if(o(s,e)<0&&o(d,e)>0)return r=="before"?p:Math.min(t.length-1,p+1);o(s,e)<0?x=p+1:O=p-1,_++}return-1},bridgeObject:up,copyAndExtendArray:Io,copyArray:Dk,deepExtend:Rh,deepObjectAssign:tp,easingFunctions:{linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return t*(2-t)},easeInOutQuad:function(t){return t<.5?2*t*t:(4-2*t)*t-1},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return--t*t*t+1},easeInOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1- --t*t*t*t},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1+--t*t*t*t*t},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}},equalArray:function(t,e){if(t.length!==e.length)return!1;for(var n=0,r=t.length;n<r;n++)if(t[n]!=e[n])return!1;return!0},extend:op,fillIfDefined:function t(e,n){var r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];for(var o in e)if(n[o]!==void 0)if(n[o]===null||Jt(n[o])!=="object")Co(e,n,o,r);else{var a=e[o],s=n[o];Jl(a)&&Jl(s)&&t(a,s,r)}},forEach:function(t,e){if(ce(t))for(var n=t.length,r=0;r<n;r++)e(t[r],r,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e(t[o],o,t)},getAbsoluteLeft:function(t){return t.getBoundingClientRect().left},getAbsoluteRight:function(t){return t.getBoundingClientRect().right},getAbsoluteTop:function(t){return t.getBoundingClientRect().top},getScrollBarWidth:function(){var t=document.createElement("p");t.style.width="100%",t.style.height="200px";var e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.style.visibility="hidden",e.style.width="200px",e.style.height="150px",e.style.overflow="hidden",e.appendChild(t),document.body.appendChild(e);var n=t.offsetWidth;e.style.overflow="scroll";var r=t.offsetWidth;return n==r&&(r=e.clientWidth),document.body.removeChild(e),n-r},getTarget:function(){var 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)instanceof Element)?e:null},getType:la,hasParent:function(t,e){for(var n=t;n;){if(n===e)return!0;if(!n.parentNode)return!1;n=n.parentNode}return!1},hexToHSV:tg,hexToRGB:ap,insertSort:function(t,e){for(var n=0;n<t.length;n++){var r=t[n],o=void 0;for(o=n;o>0&&e(r,t[o-1])<0;o--)t[o]=t[o-1];t[o]=r}return t},isDate:function(t){return!!(t instanceof Date||di(t)&&(VE.exec(t)||!isNaN(Date.parse(t))))},isNumber:ip,isObject:Jl,isString:di,isValidHex:Cw,isValidRGB:eg,isValidRGBA:Ik,mergeOptions:function(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=function(x){return x!=null},a=function(x){return x!==null&&Jt(x)==="object"};if(!a(t))throw new Error("Parameter mergeTarget must be an object");if(!a(e))throw new Error("Parameter options must be an object");if(!o(n))throw new Error("Parameter option must have a value");if(!a(r))throw new Error("Parameter globalOptions must be an object");var s=e[n],d=a(r)&&!function(x){for(var O in x)if(Object.prototype.hasOwnProperty.call(x,O))return!1;return!0}(r)?r[n]:void 0,p=d?d.enabled:void 0;if(s!==void 0){if(typeof s=="boolean")return a(t[n])||(t[n]={}),void(t[n].enabled=s);if(s===null&&!a(t[n])){if(!o(d))return;t[n]=Im(d)}if(a(s)){var _=!0;s.enabled!==void 0?_=s.enabled:p!==void 0&&(_=d.enabled),function(x,O,C){a(x[C])||(x[C]={});var Y=O[C],j=x[C];for(var G in Y)Object.prototype.hasOwnProperty.call(Y,G)&&(j[G]=Y[G])}(t,e,n),t[n].enabled=_}}},option:Ck,overrideOpacity:function(t,e){if(Xa(t).call(t,"rgba"))return t;if(Xa(t).call(t,"rgb")){var n=t.substr(Ie(t).call(t,"(")+1).replace(")","").split(",");return"rgba("+n[0]+","+n[1]+","+n[2]+","+e+")"}var r=ap(t);return r==null?t:"rgba("+r.r+","+r.g+","+r.b+","+e+")"},parseColor:function(t,e){if(di(t)){var n=t;if(eg(n)){var r,o=Br(r=n.substr(4).substr(0,n.length-5).split(",")).call(r,function(x){return Oi(x)});n=Qm(o[0],o[1],o[2])}if(Cw(n)===!0){var a=tg(n),s={h:a.h,s:.8*a.s,v:Math.min(1,1.02*a.v)},d={h:a.h,s:Math.min(1,1.25*a.s),v:.8*a.v},p=Dw(d.h,d.s,d.v),_=Dw(s.h,s.s,s.v);return{background:n,border:p,highlight:{background:_,border:p},hover:{background:_,border:p}}}return{background:n,border:n,highlight:{background:n,border:n},hover:{background:n,border:n}}}return e?{background:t.background||e.background,border:t.border||e.border,highlight:di(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:di(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:di(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:di(t.hover)?{border:t.hover,background:t.hover}:{border:t.hover&&t.hover.border||void 0,background:t.hover&&t.hover.background||void 0}}},preventDefault:function(t){t||(t=window.event),t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},pureDeepObjectAssign:function(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return tp.apply(void 0,Ke(e=[{},t]).call(e,r))},recursiveDOMDelete:function t(e){if(e)for(;e.hasChildNodes()===!0;){var n=e.firstChild;n&&(t(n),e.removeChild(n))}},removeClassName:function(t,e){var n=t.className.split(" "),r=e.split(" ");n=ve(n).call(n,function(o){return!Xa(r).call(r,o)}),t.className=n.join(" ")},removeCssText:function(t,e){var n=wu.split(t.style.cssText),r=wu.split(e);for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&delete n[o];t.style.cssText=wu.join(n)},removeEventListener:function(t,e,n,r){var o;t.removeEventListener?(r===void 0&&(r=!1),e==="mousewheel"&&Xa(o=navigator.userAgent).call(o,"Firefox")&&(e="DOMMouseScroll"),t.removeEventListener(e,n,r)):t.detachEvent("on"+e,n)},selectiveBridgeObject:function(t,e){if(e!==null&&Jt(e)==="object"){for(var n=Im(e),r=0;r<t.length;r++)Object.prototype.hasOwnProperty.call(e,t[r])&&Jt(e[t[r]])=="object"&&(n[t[r]]=up(e[t[r]]));return n}return null},selectiveDeepExtend:function(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(ce(n))throw new TypeError("Arrays are not supported by deepExtend");for(var o=0;o<t.length;o++){var a=t[o];if(Object.prototype.hasOwnProperty.call(n,a))if(n[a]&&n[a].constructor===Object)e[a]===void 0&&(e[a]={}),e[a].constructor===Object?Rh(e[a],n[a],!1,r):Co(e,n,a,r);else{if(ce(n[a]))throw new TypeError("Arrays are not supported by deepExtend");Co(e,n,a,r)}}return e},selectiveExtend:function(t,e){if(!ce(t))throw new Error("Array with property names expected as first argument");for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];for(var a=0,s=r;a<s.length;a++)for(var d=s[a],p=0;p<t.length;p++){var _=t[p];d&&Object.prototype.hasOwnProperty.call(d,_)&&(e[_]=d[_])}return e},selectiveNotDeepExtend:function(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(ce(n))throw new TypeError("Arrays are not supported by deepExtend");for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&!Xa(t).call(t,o))if(n[o]&&n[o].constructor===Object)e[o]===void 0&&(e[o]={}),e[o].constructor===Object?Rh(e[o],n[o]):Co(e,n,o,r);else if(ce(n[o])){e[o]=[];for(var a=0;a<n[o].length;a++)e[o].push(n[o][a])}else Co(e,n,o,r);return e},throttle:function(t){var e=!1;return function(){e||(e=!0,requestAnimationFrame(function(){e=!1,t()}))}},toArray:JE,topMost:function(t,e){var n;ce(e)||(e=[e]);var r,o=ns(t);try{for(o.s();!(r=o.n()).done;){var a=r.value;if(a){n=a[e[0]];for(var s=1;s<e.length;s++)n&&(n=n[e[s]]);if(n!==void 0)break}}}catch(d){o.e(d)}finally{o.f()}return n},updateProperty:function(t,e,n){return t[e]!==n&&(t[e]=n,!0)}}),ig={},og={get exports(){return ig},set exports(t){ig=t}},sr={},ha={},ag={get exports(){return ha},set exports(t){ha=t}},qn={};function $w(){var t={"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1};return t}var Mw=/javascript\s*\:/gim;qn.whiteList=$w(),qn.getDefaultWhiteList=$w,qn.onAttr=function(t,e,n){},qn.onIgnoreAttr=function(t,e,n){},qn.safeAttrValue=function(t,e){return Mw.test(e)?"":e};var Yh={indexOf:function(t,e){var n,r;if(Array.prototype.indexOf)return t.indexOf(e);for(n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1},forEach:function(t,e,n){var r,o;if(Array.prototype.forEach)return t.forEach(e,n);for(r=0,o=t.length;r<o;r++)e.call(n,t[r],r,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,"")}},Mk=function(t,e){(t=Yh.trimRight(t))[t.length-1]!==";"&&(t+=";");var n=t.length,r=!1,o=0,a=0,s="";function d(){if(!r){var x=Yh.trim(t.slice(o,a)),O=x.indexOf(":");if(O!==-1){var C=Yh.trim(x.slice(0,O)),Y=Yh.trim(x.slice(O+1));if(C){var j=e(o,s.length,C,Y,x);j&&(s+=j+"; ")}}}o=a+1}for(;a<n;a++){var p=t[a];if(p==="/"&&t[a+1]==="*"){var _=t.indexOf("*/",a+2);if(_===-1)break;o=(a=_+1)+1,r=!1}else p==="("?r=!0:p===")"?r=!1:p===";"?r||d():p===`
`&&d()}return Yh.trim(s)},cp=qn,Nk=Mk;function hp(t){return t==null}function Nw(t){(t=function(e){var n={};for(var r in e)n[r]=e[r];return n}(t||{})).whiteList=t.whiteList||cp.whiteList,t.onAttr=t.onAttr||cp.onAttr,t.onIgnoreAttr=t.onIgnoreAttr||cp.onIgnoreAttr,t.safeAttrValue=t.safeAttrValue||cp.safeAttrValue,this.options=t}Nw.prototype.process=function(t){if(!(t=(t=t||"").toString()))return"";var e=this.options,n=e.whiteList,r=e.onAttr,o=e.onIgnoreAttr,a=e.safeAttrValue,s=Nk(t,function(d,p,_,x,O){var C=n[_],Y=!1;if(C===!0?Y=C:typeof C=="function"?Y=C(x):C instanceof RegExp&&(Y=C.test(x)),Y!==!0&&(Y=!1),x=a(_,x)){var j,G={position:p,sourcePosition:d,source:O,isWhite:Y};return Y?hp(j=r(_,x,G))?_+":"+x:j:hp(j=o(_,x,G))?void 0:j}});return s};var Rk=Nw;(function(t,e){var n=qn,r=Rk;for(var o in e=t.exports=function(a,s){return new r(s).process(a)},e.FilterCSS=r,n)e[o]=n[o];typeof window!="undefined"&&(window.filterCSS=t.exports)})(ag,ha);var sg={indexOf:function(t,e){var n,r;if(Array.prototype.indexOf)return t.indexOf(e);for(n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1},forEach:function(t,e,n){var r,o;if(Array.prototype.forEach)return t.forEach(e,n);for(r=0,o=t.length;r<o;r++)e.call(n,t[r],r,t)},trim:function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(t){var e=/\s|\n|\t/.exec(t);return e?e.index:-1}},ug=ha.FilterCSS,QE=ha.getDefaultWhiteList,Bh=sg;function is(){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"],ins:["datetime"],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 jk=new ug;function lg(t){return t.replace(tD,"&lt;").replace(Lk,"&gt;")}var tD=/</g,Lk=/>/g,Fk=/"/g,Yk=/&quot;/g,eD=/&#([a-zA-Z0-9]*);?/gim,rD=/&colon;?/gim,Bk=/&newline;?/gim,cg=/((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,Hk=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,Rw=/u\s*r\s*l\s*\(.*/gi;function Gk(t){return t.replace(Fk,"&quot;")}function jw(t){return t.replace(Yk,'"')}function hg(t){return t.replace(eD,function(e,n){return n[0]==="x"||n[0]==="X"?String.fromCharCode(parseInt(n.substr(1),16)):String.fromCharCode(parseInt(n,10))})}function Wk(t){return t.replace(rD,":").replace(Bk," ")}function Lw(t){for(var e="",n=0,r=t.length;n<r;n++)e+=t.charCodeAt(n)<32?" ":t.charAt(n);return Bh.trim(e)}function dp(t){return t=Lw(t=Wk(t=hg(t=jw(t))))}function Fw(t){return t=lg(t=Gk(t))}sr.whiteList={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"],ins:["datetime"],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"]},sr.getDefaultWhiteList=is,sr.onTag=function(t,e,n){},sr.onIgnoreTag=function(t,e,n){},sr.onTagAttr=function(t,e,n){},sr.onIgnoreTagAttr=function(t,e,n){},sr.safeAttrValue=function(t,e,n,r){if(n=dp(n),e==="href"||e==="src"){if((n=Bh.trim(n))==="#")return"#";if(n.substr(0,7)!=="http://"&&n.substr(0,8)!=="https://"&&n.substr(0,7)!=="mailto:"&&n.substr(0,4)!=="tel:"&&n.substr(0,11)!=="data:image/"&&n.substr(0,6)!=="ftp://"&&n.substr(0,2)!=="./"&&n.substr(0,3)!=="../"&&n[0]!=="#"&&n[0]!=="/")return""}else if(e==="background"){if(cg.lastIndex=0,cg.test(n))return""}else if(e==="style"){if(Hk.lastIndex=0,Hk.test(n)||(Rw.lastIndex=0,Rw.test(n)&&(cg.lastIndex=0,cg.test(n))))return"";r!==!1&&(n=(r=r||jk).process(n))}return n=Fw(n)},sr.escapeHtml=lg,sr.escapeQuote=Gk,sr.unescapeQuote=jw,sr.escapeHtmlEntities=hg,sr.escapeDangerHtml5Entities=Wk,sr.clearNonPrintableCharacter=Lw,sr.friendlyAttrValue=dp,sr.escapeAttrValue=Fw,sr.onIgnoreTagStripAll=function(){return""},sr.StripTagBody=function(t,e){typeof e!="function"&&(e=function(){});var n=!Array.isArray(t),r=[],o=!1;return{onIgnoreTag:function(a,s,d){if(function(x){return!!n||Bh.indexOf(t,x)!==-1}(a)){if(d.isClosing){var p="[/removed]",_=d.position+p.length;return r.push([o!==!1?o:d.position,_]),o=!1,p}return o||(o=d.position),"[removed]"}return e(a,s,d)},remove:function(a){var s="",d=0;return Bh.forEach(r,function(p){s+=a.slice(d,p[0]),d=p[1]}),s+=a.slice(d)}}},sr.stripCommentTag=function(t){for(var e="",n=0;n<t.length;){var r=t.indexOf("<!--",n);if(r===-1){e+=t.slice(n);break}e+=t.slice(n,r);var o=t.indexOf("-->",r);if(o===-1)break;n=o+3}return e},sr.stripBlankChar=function(t){var e=t.split("");return(e=e.filter(function(n){var r=n.charCodeAt(0);return r!==127&&(!(r<=31)||r===10||r===13)})).join("")},sr.cssFilter=jk,sr.getDefaultCSSWhiteList=QE;var fp={},os=sg;function nD(t){var e,n=os.spaceIndex(t);return e=n===-1?t.slice(1,-1):t.slice(1,n+1),(e=os.trim(e).toLowerCase()).slice(0,1)==="/"&&(e=e.slice(1)),e.slice(-1)==="/"&&(e=e.slice(0,-1)),e}function as(t){return t.slice(0,2)==="</"}var iD=/[^a-zA-Z0-9\\_:.-]/gim;function zk(t,e){for(;e<t.length;e++){var n=t[e];if(n!==" ")return n==="="?e:-1}}function oD(t,e){for(;e<t.length;e++){var n=t[e];if(n!==" ")return n==="'"||n==='"'?e:-1}}function aD(t,e){for(;e>0;e--){var n=t[e];if(n!==" ")return n==="="?e:-1}}function Yw(t){return function(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}(t)?t.substr(1,t.length-2):t}fp.parseTag=function(t,e,n){var r="",o=0,a=!1,s=!1,d=0,p=t.length,_="",x="";t:for(d=0;d<p;d++){var O=t.charAt(d);if(a===!1){if(O==="<"){a=d;continue}}else if(s===!1){if(O==="<"){r+=n(t.slice(o,d)),a=d,o=d;continue}if(O===">"||d===p-1){r+=n(t.slice(o,a)),_=nD(x=t.slice(a,d+1)),r+=e(a,r.length,_,x,as(x)),o=d+1,a=!1;continue}if(O==='"'||O==="'")for(var C=1,Y=t.charAt(d-C);Y.trim()===""||Y==="=";){if(Y==="="){s=O;continue t}Y=t.charAt(d-++C)}}else if(O===s){s=!1;continue}}return o<p&&(r+=n(t.substr(o))),r},fp.parseAttr=function(t,e){var n=0,r=0,o=[],a=!1,s=t.length;function d(O,C){if(!((O=(O=os.trim(O)).replace(iD,"").toLowerCase()).length<1)){var Y=e(O,C||"");Y&&o.push(Y)}}for(var p=0;p<s;p++){var _,x=t.charAt(p);if(a!==!1||x!=="=")if(a===!1||p!==r){if(/\s|\n|\t/.test(x)){if(t=t.replace(/\s|\n|\t/g," "),a===!1){if((_=zk(t,p))===-1){d(os.trim(t.slice(n,p))),a=!1,n=p+1;continue}p=_-1;continue}if((_=aD(t,p-1))===-1){d(a,Yw(os.trim(t.slice(n,p)))),a=!1,n=p+1;continue}}}else{if((_=t.indexOf(x,p+1))===-1)break;d(a,os.trim(t.slice(r+1,_))),a=!1,n=(p=_)+1}else a=t.slice(n,p),n=p+1,r=t.charAt(n)==='"'||t.charAt(n)==="'"?n:oD(t,p+1)}return n<t.length&&(a===!1?d(t.slice(n)):d(a,Yw(os.trim(t.slice(n))))),os.trim(o.join(" "))};var sD=ha.FilterCSS,Po=sr,pp=fp,uD=pp.parseTag,Hh=pp.parseAttr,vp=sg;function Gh(t){return t==null}function dg(t){(t=function(e){var n={};for(var r in e)n[r]=e[r];return n}(t||{})).stripIgnoreTag&&(t.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),t.onIgnoreTag=Po.onIgnoreTagStripAll),t.whiteList||t.allowList?t.whiteList=function(e){var n={};for(var r in e)Array.isArray(e[r])?n[r.toLowerCase()]=e[r].map(function(o){return o.toLowerCase()}):n[r.toLowerCase()]=e[r];return n}(t.whiteList||t.allowList):t.whiteList=Po.whiteList,t.onTag=t.onTag||Po.onTag,t.onTagAttr=t.onTagAttr||Po.onTagAttr,t.onIgnoreTag=t.onIgnoreTag||Po.onIgnoreTag,t.onIgnoreTagAttr=t.onIgnoreTagAttr||Po.onIgnoreTagAttr,t.safeAttrValue=t.safeAttrValue||Po.safeAttrValue,t.escapeHtml=t.escapeHtml||Po.escapeHtml,this.options=t,t.css===!1?this.cssFilter=!1:(t.css=t.css||{},this.cssFilter=new sD(t.css))}dg.prototype.process=function(t){if(!(t=(t=t||"").toString()))return"";var e=this.options,n=e.whiteList,r=e.onTag,o=e.onIgnoreTag,a=e.onTagAttr,s=e.onIgnoreTagAttr,d=e.safeAttrValue,p=e.escapeHtml,_=this.cssFilter;e.stripBlankChar&&(t=Po.stripBlankChar(t)),e.allowCommentTag||(t=Po.stripCommentTag(t));var x=!1;e.stripIgnoreTagBody&&(x=Po.StripTagBody(e.stripIgnoreTagBody,o),o=x.onIgnoreTag);var O=uD(t,function(C,Y,j,G,X){var q={sourcePosition:C,position:Y,isClosing:X,isWhite:Object.prototype.hasOwnProperty.call(n,j)},tt=r(j,G,q);if(!Gh(tt))return tt;if(q.isWhite){if(q.isClosing)return"</"+j+">";var ot=function(pt){var bt=vp.spaceIndex(pt);if(bt===-1)return{html:"",closing:pt[pt.length-2]==="/"};var ut=(pt=vp.trim(pt.slice(bt+1,-1)))[pt.length-1]==="/";return ut&&(pt=vp.trim(pt.slice(0,-1))),{html:pt,closing:ut}}(G),wt=n[j],It=Hh(ot.html,function(pt,bt){var ut=vp.indexOf(wt,pt)!==-1,Lt=a(j,pt,bt,ut);return Gh(Lt)?ut?(bt=d(j,pt,bt,_))?pt+'="'+bt+'"':pt:Gh(Lt=s(j,pt,bt,ut))?void 0:Lt:Lt});return G="<"+j,It&&(G+=" "+It),ot.closing&&(G+=" /"),G+=">"}return Gh(tt=o(j,G,q))?p(G):tt},p);return x&&(O=x.remove(O)),O};var Bw=dg;(function(t,e){var n=sr,r=fp,o=Bw;function a(s,d){return new o(d).process(s)}(e=t.exports=a).filterXSS=a,e.FilterXSS=o,function(){for(var s in n)e[s]=n[s];for(var d in r)e[d]=r[d]}(),typeof window!="undefined"&&(window.filterXSS=t.exports),typeof self!="undefined"&&typeof DedicatedWorkerGlobalScope!="undefined"&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=t.exports)})(og,ig);var fg=ig;let pg,lD=new Uint8Array(16);function Uk(){if(!pg&&(pg=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!pg))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return pg(lD)}let rn=[];for(let t=0;t<256;++t)rn.push((t+256).toString(16).slice(1));var mp={randomUUID:typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Wh(t,e,n){if(mp.randomUUID&&!e&&!t)return mp.randomUUID();let r=(t=t||{}).random||(t.rng||Uk)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(let o=0;o<16;++o)e[n+o]=r[o];return e}return function(o,a=0){return(rn[o[a+0]]+rn[o[a+1]]+rn[o[a+2]]+rn[o[a+3]]+"-"+rn[o[a+4]]+rn[o[a+5]]+"-"+rn[o[a+6]]+rn[o[a+7]]+"-"+rn[o[a+8]]+rn[o[a+9]]+"-"+rn[o[a+10]]+rn[o[a+11]]+rn[o[a+12]]+rn[o[a+13]]+rn[o[a+14]]+rn[o[a+15]]).toLowerCase()}(r)}function Vk(t,e){var n=Jr(t);if(im){var r=im(t);e&&(r=ve(r).call(r,function(o){return Yr(t,o).enumerable})),n.push.apply(n,r)}return n}function Xk(t){for(var e=1;e<arguments.length;e++){var n,r,o=arguments[e]!=null?arguments[e]:{};e%2?Ot(n=Vk(Object(o),!0)).call(n,function(a){ea(t,a,o[a])}):ff?h0(t,ff(o)):Ot(r=Vk(Object(o))).call(r,function(a){Tl(t,a,Yr(o,a))})}return t}function ss(t){var e;if(!t)return!1;var n=(e=t.idProp)!==null&&e!==void 0?e:t._idProp;return!!n&&J.isDataViewLike(n,t)}var Hw=/^\/?Date\((-?\d+)/i,Su=/^\d+$/;function gp(t,e){var n;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 di(t)&&!isNaN(Date.parse(t))?L(t).valueOf():Number(t.valueOf());case"string":case"String":return String(t);case"Date":try{return gp(t,"Moment").toDate()}catch(r){throw r instanceof TypeError?new TypeError("Cannot convert object of type "+la(t)+" to type "+e):r}case"Moment":if(ip(t))return L(t);if(t instanceof Date)return L(t.valueOf());if(L.isMoment(t))return L(t);if(di(t))return(n=Hw.exec(t))?L(Number(n[1])):(n=Su.exec(t),L(n?Number(t):t));throw new TypeError("Cannot convert object of type "+la(t)+" to type "+e);case"ISODate":if(ip(t))return new Date(t);if(t instanceof Date)return t.toISOString();if(L.isMoment(t))return t.toDate().toISOString();if(di(t))return(n=Hw.exec(t))?new Date(Number(n[1])).toISOString():L(t).format();throw new Error("Cannot convert object of type "+la(t)+" to type ISODate");case"ASPDate":if(ip(t))return"/Date("+t+")/";if(t instanceof Date||L.isMoment(t))return"/Date("+t.valueOf()+")/";if(di(t))return"/Date("+((n=Hw.exec(t))?new Date(Number(n[1])).valueOf():new Date(t).valueOf())+")/";throw new Error("Cannot convert object of type "+la(t)+" to type ASPDate");default:throw new Error("Unknown type ".concat(e))}}}function zh(t){var e,n,r,o,a,s,d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{start:"Date",end:"Date"},p=t._idProp,_=new J.DataSet({fieldId:p}),x=Br(e=J.createNewDataPipeFrom(t)).call(e,function(O){var C;return oS(C=Jr(O)).call(C,function(Y,j){return Y[j]=gp(O[j],d[j]),Y},{})}).to(_);return x.all().start(),{add:function(){var O;return(O=t.getDataSet()).add.apply(O,arguments)},remove:function(){var O;return(O=t.getDataSet()).remove.apply(O,arguments)},update:function(){var O;return(O=t.getDataSet()).update.apply(O,arguments)},updateOnly:function(){var O;return(O=t.getDataSet()).updateOnly.apply(O,arguments)},clear:function(){var O;return(O=t.getDataSet()).clear.apply(O,arguments)},forEach:at(n=Ot(_)).call(n,_),get:at(r=_.get).call(r,_),getIds:at(o=_.getIds).call(o,_),off:at(a=_.off).call(a,_),on:at(s=_.on).call(s,_),get length(){return _.length},idProp:p,type:d,rawDS:t,coercedDS:_,dispose:function(){return x.stop()}}}var ku=function(t){var e=new fg.FilterXSS(t);return function(n){return e.process(n)}},qk=function(t){return t},Gw=ku(),H=Xk(Xk({},$k),{},{convert:gp,setupXSSProtection:function(t){t&&(t.disabled===!0?(Gw=qk,console.warn("You disabled XSS protection for vis-Timeline. I sure hope you know what you're doing!")):t.filterOptions&&(Gw=ku(t.filterOptions)))}});Tl(H,"xss",{get:function(){return Gw}});var vg={},cD={get exports(){return vg},set exports(t){vg=t}},Kk=Gt,Jk=Wt,Zk=Dr,Qk=Mf.trim,tT=$f,hD=se("".charAt),yp=Kk.parseFloat,Ww=Kk.Symbol,eT=Ww&&Ww.iterator,rT=1/yp(tT+"-0")!=-1/0||eT&&!Jk(function(){yp(Object(eT))})?function(t){var e=Qk(Zk(t)),n=yp(e);return n===0&&hD(e,0)=="-"?-0:n}:yp;Bt({global:!0,forced:parseFloat!=rT},{parseFloat:rT});var nT=we.parseFloat;(function(t){t.exports=nT})(cD);var mg=nt(vg),Ao=function(){function t(e,n){Se(this,t),this.options=null,this.props=null}return Ce(t,[{key:"setOptions",value:function(e){e&&H.extend(this.options,e)}},{key:"redraw",value:function(){return!1}},{key:"destroy",value:function(){}},{key:"_isResized",value:function(){var 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}}]),t}(),bp={},dD={get exports(){return bp},set exports(t){bp=t}},fD=yo,iT=Dr,pD=ys,oT=RangeError;Bt({target:"String",proto:!0},{repeat:function(t){var e=iT(pD(this)),n="",r=fD(t);if(r<0||r==1/0)throw oT("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n}});var aT=Pr("String").repeat,Tu=Le,sT=aT,zw=String.prototype,vD=function(t){var e=t.repeat;return typeof t=="string"||t===zw||Tu(zw,t)&&e===zw.repeat?sT:e},uT=vD;(function(t){t.exports=uT})(dD);var Zl=nt(bp),gg={},mD={get exports(){return gg},set exports(t){gg=t}},Uw=Uo,gD=Math.floor,Uh=function(t,e){var n=t.length,r=gD(n/2);return n<8?Vw(t,e):yD(t,Uh(Uw(t,0,r),e),Uh(Uw(t,r),e),e)},Vw=function(t,e){for(var n,r,o=t.length,a=1;a<o;){for(r=a,n=t[a];r&&e(t[r-1],n)>0;)t[r]=t[--r];r!==a++&&(t[r]=n)}return t},yD=function(t,e,n,r){for(var o=e.length,a=n.length,s=0,d=0;s<o||d<a;)t[s+d]=s<o&&d<a?r(e[s],n[d])<=0?e[s++]:n[d++]:s<o?e[s++]:n[d++];return t},bD=Uh,lT=er.match(/firefox\/(\d+)/i),wD=!!lT&&+lT[1],_D=/MSIE|Trident/.test(er),yg=er.match(/AppleWebKit\/(\d+)\./),cT=!!yg&&+yg[1],Vh=Bt,xu=se,SD=_a,kD=bn,hT=bi,dT=U0,fT=Dr,wp=Wt,TD=bD,xD=ou,_p=wD,OD=_D,pT=Ri,nn=cT,us=[],vT=xu(us.sort),Xw=xu(us.push),qw=wp(function(){us.sort(void 0)}),bg=wp(function(){us.sort(null)}),wg=xD("sort"),_g=!wp(function(){if(pT)return pT<70;if(!(_p&&_p>3)){if(OD)return!0;if(nn)return nn<603;var t,e,n,r,o="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)us.push({k:e+r,v:n})}for(us.sort(function(a,s){return s.v-a.v}),r=0;r<us.length;r++)e=us[r].k.charAt(0),o.charAt(o.length-1)!==e&&(o+=e);return o!=="DGBEFHACIJK"}});Vh({target:"Array",proto:!0,forced:qw||!bg||!wg||!_g},{sort:function(t){t!==void 0&&SD(t);var e=kD(this);if(_g)return t===void 0?vT(e):vT(e,t);var n,r,o=[],a=hT(e);for(r=0;r<a;r++)r in e&&Xw(o,e[r]);for(TD(o,function(s){return function(d,p){return p===void 0?-1:d===void 0?1:s!==void 0?+s(d,p)||0:fT(d)>fT(p)?1:-1}}(t)),n=hT(o),r=0;r<n;)e[r]=o[r++];for(;r<a;)dT(e,r++);return e}});var da=Pr("Array").sort,mT=Le,Kw=da,Sp=Array.prototype,Sg=function(t){var e=t.sort;return t===Sp||mT(Sp,t)&&e===Sp.sort?Kw:e},kg=Sg;(function(t){t.exports=kg})(mD);var Mr=nt(gg);function Tg(t,e,n){if(n&&!ce(n))return Tg(t,e,[n]);if(e.hiddenDates=[],n&&ce(n)==1){for(var r,o=0;o<n.length;o++)if(Zl(n[o])===void 0){var a={};a.start=t(n[o].start).toDate().valueOf(),a.end=t(n[o].end).toDate().valueOf(),e.hiddenDates.push(a)}Mr(r=e.hiddenDates).call(r,function(s,d){return s.start-d.start})}}function Xh(t,e,n){if(n&&!ce(n))return Xh(t,e,[n]);if(n&&e.domProps.centerContainer.width!==void 0){Tg(t,e,n);for(var r=t(e.range.start),o=t(e.range.end),a=(e.range.end-e.range.start)/e.domProps.centerContainer.width,s=0;s<n.length;s++)if(Zl(n[s])!==void 0){var d=t(n[s].start),p=t(n[s].end);if(d._d=="Invalid Date")throw new Error("Supplied start date is not valid: ".concat(n[s].start));if(p._d=="Invalid Date")throw new Error("Supplied end date is not valid: ".concat(n[s].end));if(p-d>=4*a){var _=0,x=o.clone();switch(Zl(n[s])){case"daily":d.day()!=p.day()&&(_=1),d.dayOfYear(r.dayOfYear()),d.year(r.year()),d.subtract(7,"days"),p.dayOfYear(r.dayOfYear()),p.year(r.year()),p.subtract(7-_,"days"),x.add(1,"weeks");break;case"weekly":var O=p.diff(d,"days"),C=d.day();d.date(r.date()),d.month(r.month()),d.year(r.year()),p=d.clone(),d.day(C),p.day(C),p.add(O,"days"),d.subtract(1,"weeks"),p.subtract(1,"weeks"),x.add(1,"weeks");break;case"monthly":d.month()!=p.month()&&(_=1),d.month(r.month()),d.year(r.year()),d.subtract(1,"months"),p.month(r.month()),p.year(r.year()),p.subtract(1,"months"),p.add(_,"months"),x.add(1,"months");break;case"yearly":d.year()!=p.year()&&(_=1),d.year(r.year()),d.subtract(1,"years"),p.year(r.year()),p.subtract(1,"years"),p.add(_,"years"),x.add(1,"years");break;default:return void console.log("Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:",Zl(n[s]))}for(;d<x;)switch(e.hiddenDates.push({start:d.valueOf(),end:p.valueOf()}),Zl(n[s])){case"daily":d.add(1,"days"),p.add(1,"days");break;case"weekly":d.add(1,"weeks"),p.add(1,"weeks");break;case"monthly":d.add(1,"months"),p.add(1,"months");break;case"yearly":d.add(1,"y"),p.add(1,"y");break;default:return void console.log("Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:",Zl(n[s]))}e.hiddenDates.push({start:d.valueOf(),end:p.valueOf()})}}gT(e);var Y=E(e.range.start,e.hiddenDates),j=E(e.range.end,e.hiddenDates),G=e.range.start,X=e.range.end;Y.hidden==1&&(G=e.range.startToFront==1?Y.startDate-1:Y.endDate+1),j.hidden==1&&(X=e.range.endToFront==1?j.startDate-1:j.endDate+1),Y.hidden!=1&&j.hidden!=1||e.range._applyRange(G,X)}}function gT(t){for(var e,n=t.hiddenDates,r=[],o=0;o<n.length;o++)for(var a=0;a<n.length;a++)o!=a&&n[a].remove!=1&&n[o].remove!=1&&(n[a].start>=n[o].start&&n[a].end<=n[o].end?n[a].remove=!0:n[a].start>=n[o].start&&n[a].start<=n[o].end?(n[o].end=n[a].end,n[a].remove=!0):n[a].end>=n[o].start&&n[a].end<=n[o].end&&(n[o].start=n[a].start,n[a].remove=!0));for(o=0;o<n.length;o++)n[o].remove!==!0&&r.push(n[o]);t.hiddenDates=r,Mr(e=t.hiddenDates).call(e,function(s,d){return s.start-d.start})}function Jw(t,e,n){for(var r=!1,o=e.current.valueOf(),a=0;a<e.hiddenDates.length;a++){var s=e.hiddenDates[a].start,d=e.hiddenDates[a].end;if(o>=s&&o<d){r=!0;break}}if(r==1&&o<e._end.valueOf()&&o!=n){var p=t(n),_=t(d);p.year()!=_.year()?e.switchedYear=!0:p.month()!=_.month()?e.switchedMonth=!0:p.dayOfYear()!=_.dayOfYear()&&(e.switchedDay=!0),e.current=_}}function xg(t,e,n){var r;if(t.body.hiddenDates.length==0)return r=t.range.conversion(n),(e.valueOf()-r.offset)*r.scale;var o=E(e,t.body.hiddenDates);o.hidden==1&&(e=o.startDate);var a=so(t.body.hiddenDates,t.range.start,t.range.end);if(e<t.range.start){r=t.range.conversion(n,a);var s=u(t.body.hiddenDates,e,r.offset);return e=t.options.moment(e).toDate().valueOf(),e+=s,-(r.offset-e.valueOf())*r.scale}if(e>t.range.end){var d={start:t.range.start,end:e};return e=f(t.options.moment,t.body.hiddenDates,d,e),r=t.range.conversion(n,a),(e.valueOf()-r.offset)*r.scale}return e=f(t.options.moment,t.body.hiddenDates,t.range,e),r=t.range.conversion(n,a),(e.valueOf()-r.offset)*r.scale}function Og(t,e,n){if(t.body.hiddenDates.length==0){var r=t.range.conversion(n);return new Date(e/r.scale+r.offset)}var o=so(t.body.hiddenDates,t.range.start,t.range.end),a=(t.range.end-t.range.start-o)*e/n,s=m(t.body.hiddenDates,t.range,a);return new Date(s+a+t.range.start)}function so(t,e,n){for(var r=0,o=0;o<t.length;o++){var a=t[o].start,s=t[o].end;a>=e&&s<n&&(r+=s-a)}return r}function u(t,e,n){for(var r=0,o=0;o<t.length;o++){var a=t[o].start,s=t[o].end;a>=e&&s<=n&&(r+=s-a)}return r}function f(t,e,n,r){return r=t(r).toDate().valueOf(),r-=v(t,e,n,r)}function v(t,e,n,r){var o=0;r=t(r).toDate().valueOf();for(var a=0;a<e.length;a++){var s=e[a].start,d=e[a].end;s>=n.start&&d<n.end&&r>=d&&(o+=d-s)}return o}function m(t,e,n){for(var r=0,o=0,a=e.start,s=0;s<t.length;s++){var d=t[s].start,p=t[s].end;if(d>=e.start&&p<e.end){if(o+=d-a,a=p,o>=n)break;r+=p-d}}return r}function S(t,e,n,r){var o=E(e,t);return o.hidden==1?n<0?r==1?o.startDate-(o.endDate-e)-1:o.startDate-1:r==1?o.endDate+(e-o.startDate)+1:o.endDate+1:e}function E(t,e){for(var n=0;n<e.length;n++){var r=e[n].start,o=e[n].end;if(t>=r&&t<o)return{hidden:!0,startDate:r,endDate:o}}return{hidden:!1,startDate:r,endDate:o}}var P=Object.freeze({__proto__:null,convertHiddenOptions:Tg,correctTimeForHidden:f,getAccumulatedHiddenDuration:m,getHiddenDurationBefore:v,getHiddenDurationBeforeStart:u,getHiddenDurationBetween:so,getIsHidden:E,printDates:function(t){for(var e=0;e<t.length;e++)console.log(e,new Date(t[e].start),new Date(t[e].end),t[e].start,t[e].end,t[e].remove)},removeDuplicates:gT,snapAwayFromHidden:S,stepOverHiddenDates:Jw,toScreen:xg,toTime:Og,updateHiddenDates:Xh});function A(t){var e=function(){if(typeof Reflect=="undefined"||!At||At.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(At(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var n,r=Be(t);if(e){var o=Be(this).constructor;n=At(r,arguments,o)}else n=r.apply(this,arguments);return ui(this,n)}}var N=function(t){si(n,t);var e=A(n);function n(r,o){var a,s,d,p,_,x,O,C;Se(this,n),C=e.call(this);var Y=Bn().hours(0).minutes(0).seconds(0).milliseconds(0),j=Y.clone().add(-3,"days").valueOf(),G=Y.clone().add(3,"days").valueOf();return C.millisecondsPerPixelCache=void 0,o===void 0?(C.start=j,C.end=G):(C.start=o.start||j,C.end=o.end||G),C.rolling=!1,C.body=r,C.deltaDifference=0,C.scaleOffset=0,C.startToFront=!1,C.endToFront=!0,C.defaultOptions={rtl:!1,start:null,end:null,moment:Bn,direction:"horizontal",moveable:!0,zoomable:!0,min:null,max:null,zoomMin:10,zoomMax:31536e10,rollingMode:{follow:!1,offset:.5}},C.options=H.extend({},C.defaultOptions),C.props={touch:{}},C.animationTimer=null,C.body.emitter.on("panstart",at(a=C._onDragStart).call(a,me(C))),C.body.emitter.on("panmove",at(s=C._onDrag).call(s,me(C))),C.body.emitter.on("panend",at(d=C._onDragEnd).call(d,me(C))),C.body.emitter.on("mousewheel",at(p=C._onMouseWheel).call(p,me(C))),C.body.emitter.on("touch",at(_=C._onTouch).call(_,me(C))),C.body.emitter.on("pinch",at(x=C._onPinch).call(x,me(C))),C.body.dom.rollingModeBtn.addEventListener("click",at(O=C.startRolling).call(O,me(C))),C.setOptions(o),C}return Ce(n,[{key:"setOptions",value:function(r){r&&(H.selectiveExtend(["animation","direction","min","max","zoomMin","zoomMax","moveable","zoomable","moment","activate","hiddenDates","zoomKey","zoomFriction","rtl","showCurrentTime","rollingMode","horizontalScroll"],this.options,r),r.rollingMode&&r.rollingMode.follow&&this.startRolling(),("start"in r||"end"in r)&&this.setRange(r.start,r.end))}},{key:"startRolling",value:function(){var r=this;(function o(){r.stopRolling(),r.rolling=!0;var a=r.end-r.start,s=H.convert(new Date,"Date").valueOf(),d=r.options.rollingMode&&r.options.rollingMode.offset||.5,p=s-a*d,_=s+a*(1-d);r.setRange(p,_,{animation:!1}),(a=1/r.conversion(r.body.domProps.center.width).scale/10)<30&&(a=30),a>1e3&&(a=1e3),r.body.dom.rollingModeBtn.style.visibility="hidden",r.currentTimeTimer=Yn(o,a)})()}},{key:"stopRolling",value:function(){this.currentTimeTimer!==void 0&&(clearTimeout(this.currentTimeTimer),this.rolling=!1,this.body.dom.rollingModeBtn.style.visibility="visible")}},{key:"setRange",value:function(r,o,a,s,d){a||(a={}),a.byUser!==!0&&(a.byUser=!1);var p=this,_=r!=null?H.convert(r,"Date").valueOf():null,x=o!=null?H.convert(o,"Date").valueOf():null;if(this._cancelAnimation(),this.millisecondsPerPixelCache=void 0,a.animation){var O,C=this.start,Y=this.end,j=Jt(a.animation)==="object"&&"duration"in a.animation?a.animation.duration:500,G=Jt(a.animation)==="object"&&"easingFunction"in a.animation?a.animation.easingFunction:"easeInOutQuad",X=H.easingFunctions[G];if(!X)throw new Error(Ke(O="Unknown easing function ".concat(Un(G),". Choose from: ")).call(O,Jr(H.easingFunctions).join(", ")));var q=xi(),tt=!1;return function It(){if(!p.props.touch.dragging){var pt=xi()-q,bt=X(pt/j),ut=pt>j,Lt=ut||_===null?_:C+(_-C)*bt,re=ut||x===null?x:Y+(x-Y)*bt;ot=p._applyRange(Lt,re),Xh(p.options.moment,p.body,p.options.hiddenDates),tt=tt||ot;var lr={start:new Date(p.start),end:new Date(p.end),byUser:a.byUser,event:a.event};if(d&&d(bt,ot,ut),ot&&p.body.emitter.emit("rangechange",lr),ut){if(tt&&(p.body.emitter.emit("rangechanged",lr),s))return s()}else p.animationTimer=Yn(It,20)}}()}var ot=this._applyRange(_,x);if(Xh(this.options.moment,this.body,this.options.hiddenDates),ot){var wt={start:new Date(this.start),end:new Date(this.end),byUser:a.byUser,event:a.event};if(this.body.emitter.emit("rangechange",wt),clearTimeout(p.timeoutID),p.timeoutID=Yn(function(){p.body.emitter.emit("rangechanged",wt)},200),s)return s()}}},{key:"getMillisecondsPerPixel",value:function(){return this.millisecondsPerPixelCache===void 0&&(this.millisecondsPerPixelCache=(this.end-this.start)/this.body.dom.center.clientWidth),this.millisecondsPerPixelCache}},{key:"_cancelAnimation",value:function(){this.animationTimer&&(clearTimeout(this.animationTimer),this.animationTimer=null)}},{key:"_applyRange",value:function(r,o){var a,s=r!=null?H.convert(r,"Date").valueOf():this.start,d=o!=null?H.convert(o,"Date").valueOf():this.end,p=this.options.max!=null?H.convert(this.options.max,"Date").valueOf():null,_=this.options.min!=null?H.convert(this.options.min,"Date").valueOf():null;if(isNaN(s)||s===null)throw new Error('Invalid start "'.concat(r,'"'));if(isNaN(d)||d===null)throw new Error('Invalid end "'.concat(o,'"'));if(d<s&&(d=s),_!==null&&s<_&&(s+=a=_-s,d+=a,p!=null&&d>p&&(d=p)),p!==null&&d>p&&(s-=a=d-p,d-=a,_!=null&&s<_&&(s=_)),this.options.zoomMin!==null){var x=mg(this.options.zoomMin);x<0&&(x=0),d-s<x&&(this.end-this.start===x&&s>=this.start-.5&&d<=this.end?(s=this.start,d=this.end):(s-=(a=x-(d-s))/2,d+=a/2))}if(this.options.zoomMax!==null){var O=mg(this.options.zoomMax);O<0&&(O=0),d-s>O&&(this.end-this.start===O&&s<this.start&&d>this.end?(s=this.start,d=this.end):(s+=(a=d-s-O)/2,d-=a/2))}var C=this.start!=s||this.end!=d;return s>=this.start&&s<=this.end||d>=this.start&&d<=this.end||this.start>=s&&this.start<=d||this.end>=s&&this.end<=d||this.body.emitter.emit("checkRangedItems"),this.start=s,this.end=d,C}},{key:"getRange",value:function(){return{start:this.start,end:this.end}}},{key:"conversion",value:function(r,o){return n.conversion(this.start,this.end,r,o)}},{key:"_onDragStart",value:function(r){this.deltaDifference=0,this.previousDelta=0,this.options.moveable&&this._isInsideRange(r)&&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"))}},{key:"_onDrag",value:function(r){if(r&&this.props.touch.dragging&&this.options.moveable&&this.props.touch.allowDragging){var o=this.options.direction;U(o);var a=o=="horizontal"?r.deltaX:r.deltaY;a-=this.deltaDifference;var s=this.props.touch.end-this.props.touch.start;s-=so(this.body.hiddenDates,this.start,this.end);var d,p=o=="horizontal"?this.body.domProps.center.width:this.body.domProps.center.height;d=this.options.rtl?a/p*s:-a/p*s;var _=this.props.touch.start+d,x=this.props.touch.end+d,O=S(this.body.hiddenDates,_,this.previousDelta-a,!0),C=S(this.body.hiddenDates,x,this.previousDelta-a,!0);if(O!=_||C!=x)return this.deltaDifference+=a,this.props.touch.start=O,this.props.touch.end=C,void this._onDrag(r);this.previousDelta=a,this._applyRange(_,x);var Y=new Date(this.start),j=new Date(this.end);this.body.emitter.emit("rangechange",{start:Y,end:j,byUser:!0,event:r}),this.body.emitter.emit("panmove")}}},{key:"_onDragEnd",value:function(r){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:r}))}},{key:"_onMouseWheel",value:function(r){var o=0;if(r.wheelDelta?o=r.wheelDelta/120:r.detail?o=-r.detail/3:r.deltaY&&(o=-r.deltaY/3),!(this.options.zoomKey&&!r[this.options.zoomKey]&&this.options.zoomable||!this.options.zoomable&&this.options.moveable)&&this.options.zoomable&&this.options.moveable&&this._isInsideRange(r)&&o){var a,s,d=this.options.zoomFriction||5;if(a=o<0?1-o/d:1/(1+o/d),this.rolling){var p=this.options.rollingMode&&this.options.rollingMode.offset||.5;s=this.start+(this.end-this.start)*p}else{var _=this.getPointer({x:r.clientX,y:r.clientY},this.body.dom.center);s=this._pointerToDate(_)}this.zoom(a,s,o,r),r.preventDefault()}}},{key:"_onTouch",value:function(r){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,H.preventDefault(r)}},{key:"_onPinch",value:function(r){if(this.options.zoomable&&this.options.moveable){H.preventDefault(r),this.props.touch.allowDragging=!1,this.props.touch.center||(this.props.touch.center=this.getPointer(r.center,this.body.dom.center),this.props.touch.centerDate=this._pointerToDate(this.props.touch.center)),this.stopRolling();var o=1/(r.scale+this.scaleOffset),a=this.props.touch.centerDate,s=so(this.body.hiddenDates,this.start,this.end),d=v(this.options.moment,this.body.hiddenDates,this,a),p=s-d,_=a-d+(this.props.touch.start-(a-d))*o,x=a+p+(this.props.touch.end-(a+p))*o;this.startToFront=1-o<=0,this.endToFront=o-1<=0;var O=S(this.body.hiddenDates,_,1-o,!0),C=S(this.body.hiddenDates,x,o-1,!0);O==_&&C==x||(this.props.touch.start=O,this.props.touch.end=C,this.scaleOffset=1-r.scale,_=O,x=C);var Y={animation:!1,byUser:!0,event:r};this.setRange(_,x,Y),this.startToFront=!1,this.endToFront=!0}}},{key:"_isInsideRange",value:function(r){var o=r.center?r.center.x:r.clientX,a=this.body.dom.centerContainer.getBoundingClientRect(),s=this.options.rtl?o-a.left:a.right-o,d=this.body.util.toTime(s);return d>=this.start&&d<=this.end}},{key:"_pointerToDate",value:function(r){var o,a=this.options.direction;if(U(a),a=="horizontal")return this.body.util.toTime(r.x).valueOf();var s=this.body.domProps.center.height;return o=this.conversion(s),r.y/o.scale+o.offset}},{key:"getPointer",value:function(r,o){var a=o.getBoundingClientRect();return this.options.rtl?{x:a.right-r.x,y:r.y-a.top}:{x:r.x-a.left,y:r.y-a.top}}},{key:"zoom",value:function(r,o,a,s){o==null&&(o=(this.start+this.end)/2);var d=so(this.body.hiddenDates,this.start,this.end),p=v(this.options.moment,this.body.hiddenDates,this,o),_=d-p,x=o-p+(this.start-(o-p))*r,O=o+_+(this.end-(o+_))*r;this.startToFront=!(a>0),this.endToFront=!(-a>0);var C=S(this.body.hiddenDates,x,a,!0),Y=S(this.body.hiddenDates,O,-a,!0);C==x&&Y==O||(x=C,O=Y);var j={animation:!1,byUser:!0,event:s};this.setRange(x,O,j),this.startToFront=!1,this.endToFront=!0}},{key:"move",value:function(r){var o=this.end-this.start,a=this.start+o*r,s=this.end+o*r;this.start=a,this.end=s}},{key:"moveTo",value:function(r){var o=(this.start+this.end)/2-r,a=this.start-o,s=this.end-o;this.setRange(a,s,{animation:!1,byUser:!0,event:null})}}],[{key:"conversion",value:function(r,o,a,s){return s===void 0&&(s=0),a!=0&&o-r!=0?{offset:r,scale:a/(o-r-s)}:{offset:0,scale:1}}}]),n}(Ao);function U(t){if(t!="horizontal"&&t!="vertical")throw new TypeError('Unknown direction "'.concat(t,'". Choose "horizontal" or "vertical".'))}var K={},Q={get exports(){return K},set exports(t){K=t}},st=qo.some;Bt({target:"Array",proto:!0,forced:!ou("some")},{some:function(t){return st(this,t,arguments.length>1?arguments[1]:void 0)}});var ht=Pr("Array").some,kt=Le,Tt=ht,Pt=Array.prototype,Vt=function(t){var e=t.some;return t===Pt||kt(Pt,t)&&e===Pt.some?Tt:e},jt=Vt;(function(t){t.exports=jt})(Q);var Me=nt(K),Ne={},Je=we.setInterval;(function(t){t.exports=Je})({get exports(){return Ne},set exports(t){Ne=t}});var Hr,fa=nt(Ne),pn=null;typeof window!="undefined"?Hr=function t(e,n){var r=n||{preventDefault:!1};if(e.Manager){var o=e,a=function(x,O){var C=Object.create(r);return O&&o.assign(C,O),t(new o(x,C),C)};return o.assign(a,o),a.Manager=function(x,O){var C=Object.create(r);return O&&o.assign(C,O),t(new o.Manager(x,C),C)},a}var s=Object.create(e),d=e.element;function p(x){return x.match(/[^ ]+/g)}function _(x){if(x.type!=="hammer.input"){if(x.srcEvent._handled||(x.srcEvent._handled={}),x.srcEvent._handled[x.type])return;x.srcEvent._handled[x.type]=!0}var O=!1;x.stopPropagation=function(){O=!0};var C=x.srcEvent.stopPropagation.bind(x.srcEvent);typeof C=="function"&&(x.srcEvent.stopPropagation=function(){C(),x.stopPropagation()}),x.firstTarget=pn;for(var Y=pn;Y&&!O;){var j=Y.hammer;if(j){for(var G,X=0;X<j.length;X++)if(G=j[X]._handlers[x.type])for(var q=0;q<G.length&&!O;q++)G[q](x)}Y=Y.parentNode}}return d.hammer||(d.hammer=[]),d.hammer.push(s),e.on("hammer.input",function(x){r.preventDefault!==!0&&r.preventDefault!==x.pointerType||x.preventDefault(),x.isFirst&&(pn=x.target)}),s._handlers={},s.on=function(x,O){return p(x).forEach(function(C){var Y=s._handlers[C];Y||(s._handlers[C]=Y=[],e.on(C,_)),Y.push(O)}),s},s.off=function(x,O){return p(x).forEach(function(C){var Y=s._handlers[C];Y&&((Y=O?Y.filter(function(j){return j!==O}):[]).length>0?s._handlers[C]=Y:(e.off(C,_),delete s._handlers[C]))}),s},s.emit=function(x,O){pn=O.target,e.emit(x,O)},s.destroy=function(){var x=e.element.hammer,O=x.indexOf(s);O!==-1&&x.splice(O,1),x.length||delete e.element.hammer,s._handlers={},e.destroy()},s}(window.Hammer||bu,{preventDefault:"mouse"}):Hr=function(){return function(){var t=function(){};return{on:t,off:t,destroy:t,emit:t,get:function(e){return{set:t}}}}()};var ze=Hr;function ls(t,e){e.inputHandler=function(n){n.isFirst&&e(n)},t.on("hammer.input",e.inputHandler)}var Ou=function(){function t(e,n,r,o,a){Se(this,t),this.moment=a&&a.moment||Bn,this.options=a||{},this.current=this.moment(),this._start=this.moment(),this._end=this.moment(),this.autoScale=!0,this.scale="day",this.step=1,this.setRange(e,n,r),this.switchedDay=!1,this.switchedMonth=!1,this.switchedYear=!1,ce(o)?this.hiddenDates=o:this.hiddenDates=o!=null?[o]:[],this.format=t.FORMAT}return Ce(t,[{key:"setMoment",value:function(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())}},{key:"setFormat",value:function(e){var n=H.deepExtend({},t.FORMAT);this.format=H.deepExtend(n,e)}},{key:"setRange",value:function(e,n,r){if(!(e instanceof Date&&n instanceof Date))throw"No legal start or end date in method setRange";this._start=e!=null?this.moment(e.valueOf()):xi(),this._end=n!=null?this.moment(n.valueOf()):xi(),this.autoScale&&this.setMinimumStep(r)}},{key:"start",value:function(){this.current=this._start.clone(),this.roundToMinor()}},{key:"roundToMinor",value:function(){switch(this.scale=="week"&&this.current.weekday(0),this.scale){case"year":this.current.year(this.step*Math.floor(this.current.year()/this.step)),this.current.month(0);case"month":this.current.date(1);case"week":case"day":case"weekday":this.current.hours(0);case"hour":this.current.minutes(0);case"minute":this.current.seconds(0);case"second":this.current.milliseconds(0)}if(this.step!=1){var e=this.current.clone();switch(this.scale){case"millisecond":this.current.subtract(this.current.milliseconds()%this.step,"milliseconds");break;case"second":this.current.subtract(this.current.seconds()%this.step,"seconds");break;case"minute":this.current.subtract(this.current.minutes()%this.step,"minutes");break;case"hour":this.current.subtract(this.current.hours()%this.step,"hours");break;case"weekday":case"day":this.current.subtract((this.current.date()-1)%this.step,"day");break;case"week":this.current.subtract(this.current.week()%this.step,"week");break;case"month":this.current.subtract(this.current.month()%this.step,"month");break;case"year":this.current.subtract(this.current.year()%this.step,"year")}e.isSame(this.current)||(this.current=this.moment(S(this.hiddenDates,this.current.valueOf(),-1,!0)))}}},{key:"hasNext",value:function(){return this.current.valueOf()<=this._end.valueOf()}},{key:"next",value:function(){var e=this.current.valueOf();switch(this.scale){case"millisecond":this.current.add(this.step,"millisecond");break;case"second":this.current.add(this.step,"second");break;case"minute":this.current.add(this.step,"minute");break;case"hour":this.current.add(this.step,"hour"),this.current.month()<6?this.current.subtract(this.current.hours()%this.step,"hour"):this.current.hours()%this.step!=0&&this.current.add(this.step-this.current.hours()%this.step,"hour");break;case"weekday":case"day":this.current.add(this.step,"day");break;case"week":if(this.current.weekday()!==0)this.current.weekday(0),this.current.add(this.step,"week");else if(this.options.showMajorLabels===!1)this.current.add(this.step,"week");else{var n=this.current.clone();n.add(1,"week"),n.isSame(this.current,"month")?this.current.add(this.step,"week"):(this.current.add(this.step,"week"),this.current.date(1))}break;case"month":this.current.add(this.step,"month");break;case"year":this.current.add(this.step,"year")}if(this.step!=1)switch(this.scale){case"millisecond":this.current.milliseconds()>0&&this.current.milliseconds()<this.step&&this.current.milliseconds(0);break;case"second":this.current.seconds()>0&&this.current.seconds()<this.step&&this.current.seconds(0);break;case"minute":this.current.minutes()>0&&this.current.minutes()<this.step&&this.current.minutes(0);break;case"hour":this.current.hours()>0&&this.current.hours()<this.step&&this.current.hours(0);break;case"weekday":case"day":this.current.date()<this.step+1&&this.current.date(1);break;case"week":this.current.week()<this.step&&this.current.week(1);break;case"month":this.current.month()<this.step&&this.current.month(0)}this.current.valueOf()==e&&(this.current=this._end.clone()),this.switchedDay=!1,this.switchedMonth=!1,this.switchedYear=!1,Jw(this.moment,this,e)}},{key:"getCurrent",value:function(){return this.current.clone()}},{key:"setScale",value:function(e){e&&typeof e.scale=="string"&&(this.scale=e.scale,this.step=e.step>0?e.step:1,this.autoScale=!1)}},{key:"setAutoScale",value:function(e){this.autoScale=e}},{key:"setMinimumStep",value:function(e){if(e!=null){var n=31104e6,r=2592e6,o=864e5,a=36e5,s=6e4,d=1e3;1e3*n>e&&(this.scale="year",this.step=1e3),500*n>e&&(this.scale="year",this.step=500),100*n>e&&(this.scale="year",this.step=100),50*n>e&&(this.scale="year",this.step=50),10*n>e&&(this.scale="year",this.step=10),5*n>e&&(this.scale="year",this.step=5),n>e&&(this.scale="year",this.step=1),7776e6>e&&(this.scale="month",this.step=3),r>e&&(this.scale="month",this.step=1),6048e5>e&&this.options.showWeekScale&&(this.scale="week",this.step=1),1728e5>e&&(this.scale="day",this.step=2),o>e&&(this.scale="day",this.step=1),432e5>e&&(this.scale="weekday",this.step=1),144e5>e&&(this.scale="hour",this.step=4),a>e&&(this.scale="hour",this.step=1),9e5>e&&(this.scale="minute",this.step=15),6e5>e&&(this.scale="minute",this.step=10),3e5>e&&(this.scale="minute",this.step=5),s>e&&(this.scale="minute",this.step=1),15e3>e&&(this.scale="second",this.step=15),1e4>e&&(this.scale="second",this.step=10),5e3>e&&(this.scale="second",this.step=5),d>e&&(this.scale="second",this.step=1),200>e&&(this.scale="millisecond",this.step=200),100>e&&(this.scale="millisecond",this.step=100),50>e&&(this.scale="millisecond",this.step=50),10>e&&(this.scale="millisecond",this.step=10),5>e&&(this.scale="millisecond",this.step=5),1>e&&(this.scale="millisecond",this.step=1)}}},{key:"isMajor",value:function(){if(this.switchedYear==1)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==1)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==1)switch(this.scale){case"millisecond":case"second":case"minute":case"hour":return!0;default:return!1}var 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;default:return!1}}},{key:"getLabelMinor",value:function(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);var n=this.format.minorLabels[this.scale];return this.scale==="week"&&e.date()===1&&e.weekday()!==0?"":n&&n.length>0?this.moment(e).format(n):""}},{key:"getLabelMajor",value:function(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);var n=this.format.majorLabels[this.scale];return n&&n.length>0?this.moment(e).format(n):""}},{key:"getClassName",value:function(){var e,n=this.moment,r=this.moment(this.current),o=r.locale?r.locale("en"):r.lang("en"),a=this.step,s=[];function d(O){return O/a%2==0?" vis-even":" vis-odd"}function p(O){return O.isSame(xi(),"day")?" vis-today":O.isSame(n().add(1,"day"),"day")?" vis-tomorrow":O.isSame(n().add(-1,"day"),"day")?" vis-yesterday":""}function _(O){return O.isSame(xi(),"week")?" vis-current-week":""}function x(O){return O.isSame(xi(),"month")?" vis-current-month":""}switch(this.scale){case"millisecond":s.push(p(o)),s.push(d(o.milliseconds()));break;case"second":s.push(p(o)),s.push(d(o.seconds()));break;case"minute":s.push(p(o)),s.push(d(o.minutes()));break;case"hour":s.push(Ke(e="vis-h".concat(o.hours())).call(e,this.step==4?"-h"+(o.hours()+4):"")),s.push(p(o)),s.push(d(o.hours()));break;case"weekday":s.push("vis-".concat(o.format("dddd").toLowerCase())),s.push(p(o)),s.push(_(o)),s.push(d(o.date()));break;case"day":s.push("vis-day".concat(o.date())),s.push("vis-".concat(o.format("MMMM").toLowerCase())),s.push(p(o)),s.push(x(o)),s.push(this.step<=2?p(o):""),s.push(this.step<=2?"vis-".concat(o.format("dddd").toLowerCase()):""),s.push(d(o.date()-1));break;case"week":s.push("vis-week".concat(o.format("w"))),s.push(_(o)),s.push(d(o.week()));break;case"month":s.push("vis-".concat(o.format("MMMM").toLowerCase())),s.push(x(o)),s.push(d(o.month()));break;case"year":s.push("vis-year".concat(o.year())),s.push(function(O){return O.isSame(xi(),"year")?" vis-current-year":""}(o)),s.push(d(o.year()))}return ve(s).call(s,String).join(" ")}}],[{key:"snap",value:function(e,n,r){var o=Bn(e);if(n=="year"){var a=o.year()+Math.round(o.month()/12);o.year(Math.round(a/r)*r),o.month(0),o.date(0),o.hours(0),o.minutes(0),o.seconds(0),o.milliseconds(0)}else if(n=="month")o.date()>15?(o.date(1),o.add(1,"month")):o.date(1),o.hours(0),o.minutes(0),o.seconds(0),o.milliseconds(0);else if(n=="week")o.weekday()>2?(o.weekday(0),o.add(1,"week")):o.weekday(0),o.hours(0),o.minutes(0),o.seconds(0),o.milliseconds(0);else if(n=="day"){switch(r){case 5:case 2:o.hours(24*Math.round(o.hours()/24));break;default:o.hours(12*Math.round(o.hours()/12))}o.minutes(0),o.seconds(0),o.milliseconds(0)}else if(n=="weekday"){switch(r){case 5:case 2:o.hours(12*Math.round(o.hours()/12));break;default:o.hours(6*Math.round(o.hours()/6))}o.minutes(0),o.seconds(0),o.milliseconds(0)}else if(n=="hour")r===4?o.minutes(60*Math.round(o.minutes()/60)):o.minutes(30*Math.round(o.minutes()/30)),o.seconds(0),o.milliseconds(0);else if(n=="minute"){switch(r){case 15:case 10:o.minutes(5*Math.round(o.minutes()/5)),o.seconds(0);break;case 5:o.seconds(60*Math.round(o.seconds()/60));break;default:o.seconds(30*Math.round(o.seconds()/30))}o.milliseconds(0)}else if(n=="second")switch(r){case 15:case 10:o.seconds(5*Math.round(o.seconds()/5)),o.milliseconds(0);break;case 5:o.milliseconds(1e3*Math.round(o.milliseconds()/1e3));break;default:o.milliseconds(500*Math.round(o.milliseconds()/500))}else if(n=="millisecond"){var s=r>5?r/2:1;o.milliseconds(Math.round(o.milliseconds()/s)*s)}return o}}]),t}();function qh(t){var e=function(){if(typeof Reflect=="undefined"||!At||At.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(At(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var n,r=Be(t);if(e){var o=Be(this).constructor;n=At(r,arguments,o)}else n=r.apply(this,arguments);return ui(this,n)}}Ou.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:""}};var on=function(t){si(n,t);var e=qh(n);function n(r,o){var a;return Se(this,n),(a=e.call(this)).dom={foreground:null,lines:[],majorTexts:[],minorTexts:[],redundant:{lines:[],majorTexts:[],minorTexts:[]}},a.props={range:{start:0,end:0,minimumStep:0},lineTop:0},a.defaultOptions={orientation:{axis:"bottom"},showMinorLabels:!0,showMajorLabels:!0,showWeekScale:!1,maxMinorChars:7,format:H.extend({},Ou.FORMAT),moment:Bn,timeAxis:null},a.options=H.extend({},a.defaultOptions),a.body=r,a._create(),a.setOptions(o),a}return Ce(n,[{key:"setOptions",value:function(r){r&&(H.selectiveExtend(["showMinorLabels","showMajorLabels","showWeekScale","maxMinorChars","hiddenDates","timeAxis","moment","rtl"],this.options,r),H.selectiveDeepExtend(["format"],this.options,r),"orientation"in r&&(typeof r.orientation=="string"?this.options.orientation.axis=r.orientation:Jt(r.orientation)==="object"&&"axis"in r.orientation&&(this.options.orientation.axis=r.orientation.axis)),"locale"in r&&(typeof Bn.locale=="function"?Bn.locale(r.locale):Bn.lang(r.locale)))}},{key:"_create",value:function(){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"}},{key:"destroy",value:function(){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}},{key:"redraw",value:function(){var r=this.props,o=this.dom.foreground,a=this.dom.background,s=this.options.orientation.axis=="top"?this.body.dom.top:this.body.dom.bottom,d=o.parentNode!==s;this._calculateCharSize();var p=this.options.showMinorLabels&&this.options.orientation.axis!=="none",_=this.options.showMajorLabels&&this.options.orientation.axis!=="none";r.minorLabelHeight=p?r.minorCharHeight:0,r.majorLabelHeight=_?r.majorCharHeight:0,r.height=r.minorLabelHeight+r.majorLabelHeight,r.width=o.offsetWidth,r.minorLineHeight=this.body.domProps.root.height-r.majorLabelHeight-(this.options.orientation.axis=="top"?this.body.domProps.bottom.height:this.body.domProps.top.height),r.minorLineWidth=1,r.majorLineHeight=r.minorLineHeight+r.majorLabelHeight,r.majorLineWidth=1;var x=o.nextSibling,O=a.nextSibling;return o.parentNode&&o.parentNode.removeChild(o),a.parentNode&&a.parentNode.removeChild(a),o.style.height="".concat(this.props.height,"px"),this._repaintLabels(),x?s.insertBefore(o,x):s.appendChild(o),O?this.body.dom.backgroundVertical.insertBefore(a,O):this.body.dom.backgroundVertical.appendChild(a),this._isResized()||d}},{key:"_repaintLabels",value:function(){var r=this.options.orientation.axis,o=H.convert(this.body.range.start,"Number"),a=H.convert(this.body.range.end,"Number"),s=this.body.util.toTime((this.props.minorCharWidth||10)*this.options.maxMinorChars).valueOf(),d=s-v(this.options.moment,this.body.hiddenDates,this.body.range,s);d-=this.body.util.toTime(0).valueOf();var p=new Ou(new Date(o),new Date(a),d,this.body.hiddenDates,this.options);p.setMoment(this.options.moment),this.options.format&&p.setFormat(this.options.format),this.options.timeAxis&&p.setScale(this.options.timeAxis),this.step=p;var _,x,O,C,Y,j,G=this.dom;G.redundant.lines=G.lines,G.redundant.majorTexts=G.majorTexts,G.redundant.minorTexts=G.minorTexts,G.lines=[],G.majorTexts=[],G.minorTexts=[];var X,q,tt,ot=0,wt=void 0,It=0,pt=1e3;for(p.start(),x=p.getCurrent(),C=this.body.util.toScreen(x);p.hasNext()&&It<pt;){if(It++,Y=p.isMajor(),tt=p.getClassName(),_=x,O=C,p.next(),x=p.getCurrent(),X=ot,ot=(C=this.body.util.toScreen(x))-O,p.scale==="week"?j=!0:j=ot>=.4*X,this.options.showMinorLabels&&j){var bt=this._repaintMinorText(O,p.getLabelMinor(_),r,tt);bt.style.width="".concat(ot,"px")}Y&&this.options.showMajorLabels?(O>0&&(wt==null&&(wt=O),bt=this._repaintMajorText(O,p.getLabelMajor(_),r,tt)),q=this._repaintMajorLine(O,ot,r,tt)):j?q=this._repaintMinorLine(O,ot,r,tt):q&&(q.style.width="".concat(Oi(q.style.width)+ot,"px"))}if(It!==pt||Eg||(console.warn("Something is wrong with the Timeline scale. Limited drawing of grid lines to ".concat(pt," lines.")),Eg=!0),this.options.showMajorLabels){var ut=this.body.util.toTime(0),Lt=p.getLabelMajor(ut),re=Lt.length*(this.props.majorCharWidth||10)+10;(wt==null||re<wt)&&this._repaintMajorText(0,Lt,r,tt)}Ot(H).call(H,this.dom.redundant,function(lr){for(;lr.length;){var dr=lr.pop();dr&&dr.parentNode&&dr.parentNode.removeChild(dr)}})}},{key:"_repaintMinorText",value:function(r,o,a,s){var d=this.dom.redundant.minorTexts.shift();if(!d){var p=document.createTextNode("");(d=document.createElement("div")).appendChild(p),this.dom.foreground.appendChild(d)}this.dom.minorTexts.push(d),d.innerHTML=H.xss(o);var _=a=="top"?this.props.majorLabelHeight:0;return this._setXY(d,r,_),d.className="vis-text vis-minor ".concat(s),d}},{key:"_repaintMajorText",value:function(r,o,a,s){var d=this.dom.redundant.majorTexts.shift();if(!d){var p=document.createElement("div");(d=document.createElement("div")).appendChild(p),this.dom.foreground.appendChild(d)}d.childNodes[0].innerHTML=H.xss(o),d.className="vis-text vis-major ".concat(s);var _=a=="top"?0:this.props.minorLabelHeight;return this._setXY(d,r,_),this.dom.majorTexts.push(d),d}},{key:"_setXY",value:function(r,o,a){var s,d=this.options.rtl?-1*o:o;r.style.transform=Ke(s="translate(".concat(d,"px, ")).call(s,a,"px)")}},{key:"_repaintMinorLine",value:function(r,o,a,s){var d,p=this.dom.redundant.lines.shift();p||(p=document.createElement("div"),this.dom.background.appendChild(p)),this.dom.lines.push(p);var _=this.props;p.style.width="".concat(o,"px"),p.style.height="".concat(_.minorLineHeight,"px");var x=a=="top"?_.majorLabelHeight:this.body.domProps.top.height,O=r-_.minorLineWidth/2;return this._setXY(p,O,x),p.className=Ke(d="vis-grid ".concat(this.options.rtl?"vis-vertical-rtl":"vis-vertical"," vis-minor ")).call(d,s),p}},{key:"_repaintMajorLine",value:function(r,o,a,s){var d,p=this.dom.redundant.lines.shift();p||(p=document.createElement("div"),this.dom.background.appendChild(p)),this.dom.lines.push(p);var _=this.props;p.style.width="".concat(o,"px"),p.style.height="".concat(_.majorLineHeight,"px");var x=a=="top"?0:this.body.domProps.top.height,O=r-_.majorLineWidth/2;return this._setXY(p,O,x),p.className=Ke(d="vis-grid ".concat(this.options.rtl?"vis-vertical-rtl":"vis-vertical"," vis-major ")).call(d,s),p}},{key:"_calculateCharSize",value:function(){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}}]),n}(Ao),Eg=!1;function Kn(t){var e,n;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=ze(this.dom.overlay),this.hammer.on("tap",at(e=this._onTapOverlay).call(e,this));var r=this,o=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];Ot(o).call(o,function(a){r.hammer.on(a,function(s){s.stopPropagation()})}),document&&document.body&&(this.onClick=function(a){(function(s,d){for(;s;){if(s===d)return!0;s=s.parentNode}return!1})(a.target,t)||r.deactivate()},document.body.addEventListener("click",this.onClick)),this.keycharm!==void 0&&this.keycharm.destroy(),this.keycharm=function(a){var s,d=a&&a.preventDefault||!1,p=a&&a.container||window,_={},x={keydown:{},keyup:{}},O={};for(s=97;s<=122;s++)O[String.fromCharCode(s)]={code:s-97+65,shift:!1};for(s=65;s<=90;s++)O[String.fromCharCode(s)]={code:s,shift:!0};for(s=0;s<=9;s++)O[""+s]={code:48+s,shift:!1};for(s=1;s<=12;s++)O["F"+s]={code:111+s,shift:!1};for(s=0;s<=9;s++)O["num"+s]={code:96+s,shift:!1};O["num*"]={code:106,shift:!1},O["num+"]={code:107,shift:!1},O["num-"]={code:109,shift:!1},O["num/"]={code:111,shift:!1},O["num."]={code:110,shift:!1},O.left={code:37,shift:!1},O.up={code:38,shift:!1},O.right={code:39,shift:!1},O.down={code:40,shift:!1},O.space={code:32,shift:!1},O.enter={code:13,shift:!1},O.shift={code:16,shift:void 0},O.esc={code:27,shift:!1},O.backspace={code:8,shift:!1},O.tab={code:9,shift:!1},O.ctrl={code:17,shift:!1},O.alt={code:18,shift:!1},O.delete={code:46,shift:!1},O.pageup={code:33,shift:!1},O.pagedown={code:34,shift:!1},O["="]={code:187,shift:!1},O["-"]={code:189,shift:!1},O["]"]={code:221,shift:!1},O["["]={code:219,shift:!1};var C=function(G){j(G,"keydown")},Y=function(G){j(G,"keyup")},j=function(G,X){if(x[X][G.keyCode]!==void 0){for(var q=x[X][G.keyCode],tt=0;tt<q.length;tt++)(q[tt].shift===void 0||q[tt].shift==1&&G.shiftKey==1||q[tt].shift==0&&G.shiftKey==0)&&q[tt].fn(G);d==1&&G.preventDefault()}};return _.bind=function(G,X,q){if(q===void 0&&(q="keydown"),O[G]===void 0)throw new Error("unsupported key: "+G);x[q][O[G].code]===void 0&&(x[q][O[G].code]=[]),x[q][O[G].code].push({fn:X,shift:O[G].shift})},_.bindAll=function(G,X){for(var q in X===void 0&&(X="keydown"),O)O.hasOwnProperty(q)&&_.bind(q,G,X)},_.getKey=function(G){for(var X in O)if(O.hasOwnProperty(X)&&(G.shiftKey==1&&O[X].shift==1&&G.keyCode==O[X].code||G.shiftKey==0&&O[X].shift==0&&G.keyCode==O[X].code||G.keyCode==O[X].code&&X=="shift"))return X;return"unknown key, currently not supported"},_.unbind=function(G,X,q){if(q===void 0&&(q="keydown"),O[G]===void 0)throw new Error("unsupported key: "+G);if(X!==void 0){var tt=[],ot=x[q][O[G].code];if(ot!==void 0)for(var wt=0;wt<ot.length;wt++)ot[wt].fn==X&&ot[wt].shift==O[G].shift||tt.push(x[q][O[G].code][wt]);x[q][O[G].code]=tt}else x[q][O[G].code]=[]},_.reset=function(){x={keydown:{},keyup:{}}},_.destroy=function(){x={keydown:{},keyup:{}},p.removeEventListener("keydown",C,!0),p.removeEventListener("keyup",Y,!0)},p.addEventListener("keydown",C,!0),p.addEventListener("keyup",Y,!0),_}(),this.escListener=at(n=this.deactivate).call(n,this)}Bf(Kn.prototype),Kn.current=null,Kn.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},Kn.prototype.activate=function(){var t;Kn.current&&Kn.current.deactivate(),Kn.current=this,this.active=!0,this.dom.overlay.style.display="none",H.addClassName(this.dom.container,"vis-active"),this.emit("change"),this.emit("activate"),at(t=this.keycharm).call(t,"esc",this.escListener)},Kn.prototype.deactivate=function(){Kn.current===this&&(Kn.current=null),this.active=!1,this.dom.overlay.style.display="",H.removeClassName(this.dom.container,"vis-active"),this.keycharm.unbind("esc",this.escListener),this.emit("change"),this.emit("deactivate")},Kn.prototype._onTapOverlay=function(t){this.activate(),t.stopPropagation()};var cs={current:"current",time:"time",deleteSelected:"Delete selected"},kp={current:"attuale",time:"tempo",deleteSelected:"Cancella la selezione"},Kh={current:"huidige",time:"tijd",deleteSelected:"Selectie verwijderen"},Ql={current:"Aktuelle",time:"Zeit",deleteSelected:"L\xF6sche Auswahl"},Tp={current:"actuel",time:"heure",deleteSelected:"Effacer la selection"},Jh={current:"corriente",time:"hora",deleteSelected:"Eliminar selecci\xF3n"},yT={current:"\u043F\u043E\u0442\u043E\u0447\u043D\u0438\u0439",time:"\u0447\u0430\u0441",deleteSelected:"\u0412\u0438\u0434\u0430\u043B\u0438\u0442\u0438 \u043E\u0431\u0440\u0430\u043D\u0435"},Zw={current:"\u0442\u0435\u043A\u0443\u0449\u0435\u0435",time:"\u0432\u0440\u0435\u043C\u044F",deleteSelected:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0435"},Qw={current:"aktualny",time:"czas",deleteSelected:"Usu\u0144 wybrane"},xp={current:"atual",time:"data",deleteSelected:"Apagar selecionado"},tc={current:"\u73FE\u5728",time:"\u6642\u523B",deleteSelected:"\u9078\u629E\u3055\u308C\u305F\u3082\u306E\u3092\u524A\u9664"},Op={current:"nuvarande",time:"tid",deleteSelected:"Radera valda"},lt={current:"n\xE5v\xE6rende",time:"tid",deleteSelected:"Slett valgte"},mt={current:"einamas",time:"laikas",deleteSelected:"Pa\u0161alinti pasirinkt\u0105"},ft={en:cs,en_EN:cs,en_US:cs,it:kp,it_IT:kp,it_CH:kp,nl:Kh,nl_NL:Kh,nl_BE:Kh,de:Ql,de_DE:Ql,fr:Tp,fr_FR:Tp,fr_CA:Tp,fr_BE:Tp,es:Jh,es_ES:Jh,uk:yT,uk_UA:yT,ru:Zw,ru_RU:Zw,pl:Qw,pl_PL:Qw,pt:xp,pt_BR:xp,pt_PT:xp,ja:tc,ja_JP:tc,lt:mt,lt_LT:mt,sv:Op,sv_SE:Op,nb:lt,nn:lt,nb_NO:lt,nn_NO:lt};function Qt(t){var e=function(){if(typeof Reflect=="undefined"||!At||At.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(At(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var n,r=Be(t);if(e){var o=Be(this).constructor;n=At(r,arguments,o)}else n=r.apply(this,arguments);return ui(this,n)}}var $t=function(t){si(n,t);var e=Qt(n);function n(r,o){var a,s;Se(this,n),(s=e.call(this)).body=r,s.defaultOptions={moment:Bn,locales:ft,locale:"en",id:void 0,title:void 0},s.options=H.extend({},s.defaultOptions),s.setOptions(o),s.options.locales=H.extend({},ft,s.options.locales);var d=s.defaultOptions.locales[s.defaultOptions.locale];return Ot(a=Jr(s.options.locales)).call(a,function(p){s.options.locales[p]=H.extend({},d,s.options.locales[p])}),o&&o.time!=null?s.customTime=o.time:s.customTime=new Date,s.eventParams={},s._create(),s}return Ce(n,[{key:"setOptions",value:function(r){r&&H.selectiveExtend(["moment","locale","locales","id","title","rtl","snap"],this.options,r)}},{key:"_create",value:function(){var r,o,a,s=document.createElement("div");s["custom-time"]=this,s.className="vis-custom-time ".concat(this.options.id||""),s.style.position="absolute",s.style.top="0px",s.style.height="100%",this.bar=s;var d=document.createElement("div");function p(_){this.body.range._onMouseWheel(_)}d.style.position="relative",d.style.top="0px",this.options.rtl?d.style.right="-10px":d.style.left="-10px",d.style.height="100%",d.style.width="20px",d.addEventListener?(d.addEventListener("mousewheel",at(p).call(p,this),!1),d.addEventListener("DOMMouseScroll",at(p).call(p,this),!1)):d.attachEvent("onmousewheel",at(p).call(p,this)),s.appendChild(d),this.hammer=new ze(d),this.hammer.on("panstart",at(r=this._onDragStart).call(r,this)),this.hammer.on("panmove",at(o=this._onDrag).call(o,this)),this.hammer.on("panend",at(a=this._onDragEnd).call(a,this)),this.hammer.get("pan").set({threshold:5,direction:ze.DIRECTION_ALL}),this.hammer.get("press").set({time:1e4})}},{key:"destroy",value:function(){this.hide(),this.hammer.destroy(),this.hammer=null,this.body=null}},{key:"redraw",value:function(){var r=this.body.dom.backgroundVertical;this.bar.parentNode!=r&&(this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),r.appendChild(this.bar));var o=this.body.util.toScreen(this.customTime),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);var s,d=this.options.title;return d===void 0?d=(d=Ke(s="".concat(a.time,": ")).call(s,this.options.moment(this.customTime).format("dddd, MMMM Do YYYY, H:mm:ss"))).charAt(0).toUpperCase()+d.substring(1):typeof d=="function"&&(d=d.call(this,this.customTime)),this.options.rtl?this.bar.style.right="".concat(o,"px"):this.bar.style.left="".concat(o,"px"),this.bar.title=d,!1}},{key:"hide",value:function(){this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar)}},{key:"setCustomTime",value:function(r){this.customTime=H.convert(r,"Date"),this.redraw()}},{key:"getCustomTime",value:function(){return new Date(this.customTime.valueOf())}},{key:"setCustomMarker",value:function(r,o){var a,s,d=document.createElement("div");d.className="vis-custom-time-marker",d.innerHTML=H.xss(r),d.style.position="absolute",o&&(d.setAttribute("contenteditable","true"),d.addEventListener("pointerdown",function(){d.focus()}),d.addEventListener("input",at(a=this._onMarkerChange).call(a,this)),d.title=r,d.addEventListener("blur",at(s=function(p){this.title!=p.target.innerHTML&&(this._onMarkerChanged(p),this.title=p.target.innerHTML)}).call(s,this))),this.bar.appendChild(d)}},{key:"setCustomTitle",value:function(r){this.options.title=r}},{key:"_onDragStart",value:function(r){this.eventParams.dragging=!0,this.eventParams.customTime=this.customTime,r.stopPropagation()}},{key:"_onDrag",value:function(r){if(this.eventParams.dragging){var o=this.options.rtl?-1*r.deltaX:r.deltaX,a=this.body.util.toScreen(this.eventParams.customTime)+o,s=this.body.util.toTime(a),d=this.body.util.getScale(),p=this.body.util.getStep(),_=this.options.snap,x=_?_(s,d,p):s;this.setCustomTime(x),this.body.emitter.emit("timechange",{id:this.options.id,time:new Date(this.customTime.valueOf()),event:r}),r.stopPropagation()}}},{key:"_onDragEnd",value:function(r){this.eventParams.dragging&&(this.body.emitter.emit("timechanged",{id:this.options.id,time:new Date(this.customTime.valueOf()),event:r}),r.stopPropagation())}},{key:"_onMarkerChange",value:function(r){this.body.emitter.emit("markerchange",{id:this.options.id,title:r.target.innerHTML,event:r}),r.stopPropagation()}},{key:"_onMarkerChanged",value:function(r){this.body.emitter.emit("markerchanged",{id:this.options.id,title:r.target.innerHTML,event:r}),r.stopPropagation()}}],[{key:"customTimeFromTarget",value:function(r){for(var o=r.target;o;){if(o.hasOwnProperty("custom-time"))return o["custom-time"];o=o.parentNode}return null}}]),n}(Ao),ge=function(){function t(){Se(this,t)}return Ce(t,[{key:"_create",value:function(e){var n,r,o,a=this;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",function(){a.initialDrawDone===!0&&a._redraw()}),this.on("rangechanged",function(){a.initialRangeChangeDone||(a.initialRangeChangeDone=!0)}),this.on("touch",at(n=this._onTouch).call(n,this)),this.on("panmove",at(r=this._onDrag).call(r,this));var s=this;this._origRedraw=at(o=this._redraw).call(o,this),this._redraw=H.throttle(this._origRedraw),this.on("_change",function(q){s.itemSet&&s.itemSet.initialItemSetDrawn&&q&&q.queue==1?s._redraw():s._origRedraw()}),this.hammer=new ze(this.dom.root);var d=this.hammer.get("pinch").set({enable:!0});d&&function(q){q.getTouchAction=function(){return["pan-y"]}}(d),this.hammer.get("pan").set({threshold:5,direction:ze.DIRECTION_ALL}),this.timelineListeners={};var p,_,x=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];function O(q){this.isActive()&&this.emit("mousewheel",q);var tt=0,ot=0;if("detail"in q&&(ot=-1*q.detail),"wheelDelta"in q&&(ot=q.wheelDelta),"wheelDeltaY"in q&&(ot=q.wheelDeltaY),"wheelDeltaX"in q&&(tt=-1*q.wheelDeltaX),"axis"in q&&q.axis===q.HORIZONTAL_AXIS&&(tt=-1*ot,ot=0),"deltaY"in q&&(ot=-1*q.deltaY),"deltaX"in q&&(tt=q.deltaX),q.deltaMode&&(q.deltaMode===1?(tt*=40,ot*=40):(tt*=40,ot*=800)),this.options.preferZoom){if(!this.options.zoomKey||q[this.options.zoomKey])return}else if(this.options.zoomKey&&q[this.options.zoomKey])return;if(this.options.verticalScroll||this.options.horizontalScroll){if(this.options.verticalScroll&&Math.abs(ot)>=Math.abs(tt)){var wt=this.props.scrollTop,It=wt+ot;this.isActive()&&this._setScrollTop(It)!==wt&&(this._redraw(),this.emit("scroll",q),q.preventDefault())}else if(this.options.horizontalScroll){var pt=(Math.abs(tt)>=Math.abs(ot)?tt:ot)/120*(this.range.end-this.range.start)/20,bt=this.range.start+pt,ut=this.range.end+pt,Lt={animation:!1,byUser:!0,event:q};this.range.setRange(bt,ut,Lt),q.preventDefault()}}}Ot(x).call(x,function(q){var tt=function(ot){s.isActive()&&s.emit(q,ot)};s.hammer.on(q,tt),s.timelineListeners[q]=tt}),ls(this.hammer,function(q){s.emit("touch",q)}),p=this.hammer,(_=function(q){s.emit("release",q)}).inputHandler=function(q){q.isFinal&&_(q)},p.on("hammer.input",_.inputHandler);var C="onwheel"in document.createElement("div")?"wheel":document.onmousewheel!==void 0?"mousewheel":this.dom.centerContainer.addEventListener?"DOMMouseScroll":"onmousewheel";function Y(q){if(s.options.verticalScroll&&(q.preventDefault(),s.isActive())){var tt=-q.target.scrollTop;s._setScrollTop(tt),s._redraw(),s.emit("scrollSide",q)}}this.dom.top.addEventListener,this.dom.bottom.addEventListener,this.dom.centerContainer.addEventListener(C,at(O).call(O,this),!1),this.dom.top.addEventListener(C,at(O).call(O,this),!1),this.dom.bottom.addEventListener(C,at(O).call(O,this),!1),this.dom.left.parentNode.addEventListener("scroll",at(Y).call(Y,this)),this.dom.right.parentNode.addEventListener("scroll",at(Y).call(Y,this));var j=!1;function G(q){var tt;if(q.preventDefault&&(s.emit("dragover",s.getEventProperties(q)),q.preventDefault()),Ie(tt=q.target.className).call(tt,"timeline")>-1&&!j)return q.dataTransfer.dropEffect="move",j=!0,!1}function X(q){q.preventDefault&&q.preventDefault(),q.stopPropagation&&q.stopPropagation();try{var tt=JSON.parse(q.dataTransfer.getData("text"));if(!tt||!tt.content)return}catch(ot){return!1}return j=!1,q.center={x:q.clientX,y:q.clientY},tt.target!=="item"?s.itemSet._onAddItem(q):s.itemSet._onDropObjectOnItem(q),s.emit("drop",s.getEventProperties(q)),!1}if(this.dom.center.addEventListener("dragover",at(G).call(G,this),!1),this.dom.center.addEventListener("drop",at(X).call(X,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)}},{key:"setOptions",value:function(e){var n;if(e){if(H.selectiveExtend(["width","height","minHeight","maxHeight","autoResize","start","end","clickToUse","dataAttributes","hiddenDates","locale","locales","moment","preferZoom","rtl","zoomKey","horizontalScroll","verticalScroll","longSelectPressTime","snap"],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"),Jt(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}:Jt(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){var r=this.timeAxis2=new on(this.body);r.setOptions=function(_){var x=_?H.extend({},_):{};x.orientation="top",on.prototype.setOptions.call(r,x)},this.components.push(r)}}else if(this.timeAxis2){var o,a,s=Ie(o=this.components).call(o,this.timeAxis2);s!==-1&&li(a=this.components).call(a,s,1),this.timeAxis2.destroy(),this.timeAxis2=null}typeof e.drawPoints=="function"&&(e.drawPoints={onRender:e.drawPoints}),"hiddenDates"in this.options&&Tg(this.options.moment,this.body,this.options.hiddenDates),"clickToUse"in e&&(e.clickToUse?this.activator||(this.activator=new Kn(this.dom.root)):this.activator&&(this.activator.destroy(),delete this.activator)),this._initAutoResize()}if(Ot(n=this.components).call(n,function(_){return _.setOptions(e)}),"configure"in e){var d;this.configurator||(this.configurator=this._createConfigurator()),this.configurator.setOptions(e.configure);var p=H.deepExtend({},this.options);Ot(d=this.components).call(d,function(_){H.deepExtend(p,_.options)}),this.configurator.setModuleOptions({global:p})}this._redraw()}},{key:"isActive",value:function(){return!this.activator||this.activator.active}},{key:"destroy",value:function(){var e;for(var n in 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),this.timelineListeners)this.timelineListeners.hasOwnProperty(n)&&delete this.timelineListeners[n];this.timelineListeners=null,this.hammer&&this.hammer.destroy(),this.hammer=null,Ot(e=this.components).call(e,function(r){return r.destroy()}),this.body=null}},{key:"setCustomTime",value:function(e,n){var r,o=ve(r=this.customTimes).call(r,function(a){return n===a.options.id});if(o.length===0)throw new Error("No custom time bar found with id ".concat(Un(n)));o.length>0&&o[0].setCustomTime(e)}},{key:"getCustomTime",value:function(e){var n,r=ve(n=this.customTimes).call(n,function(o){return o.options.id===e});if(r.length===0)throw new Error("No custom time bar found with id ".concat(Un(e)));return r[0].getCustomTime()}},{key:"setCustomTimeMarker",value:function(e,n,r){var o,a=ve(o=this.customTimes).call(o,function(s){return s.options.id===n});if(a.length===0)throw new Error("No custom time bar found with id ".concat(Un(n)));a.length>0&&a[0].setCustomMarker(e,r)}},{key:"setCustomTimeTitle",value:function(e,n){var r,o=ve(r=this.customTimes).call(r,function(a){return a.options.id===n});if(o.length===0)throw new Error("No custom time bar found with id ".concat(Un(n)));if(o.length>0)return o[0].setCustomTitle(e)}},{key:"getEventProperties",value:function(e){return{event:e}}},{key:"addCustomTime",value:function(e,n){var r,o=e!==void 0?H.convert(e,"Date"):new Date,a=Me(r=this.customTimes).call(r,function(d){return d.options.id===n});if(a)throw new Error("A custom time with id ".concat(Un(n)," already exists"));var s=new $t(this.body,H.extend({},this.options,{time:o,id:n,snap:this.itemSet?this.itemSet.options.snap:this.options.snap}));return this.customTimes.push(s),this.components.push(s),this._redraw(),n}},{key:"removeCustomTime",value:function(e){var n,r=this,o=ve(n=this.customTimes).call(n,function(a){return a.options.id===e});if(o.length===0)throw new Error("No custom time bar found with id ".concat(Un(e)));Ot(o).call(o,function(a){var s,d,p,_;li(s=r.customTimes).call(s,Ie(d=r.customTimes).call(d,a),1),li(p=r.components).call(p,Ie(_=r.components).call(_,a),1),a.destroy()})}},{key:"getVisibleItems",value:function(){return this.itemSet&&this.itemSet.getVisibleItems()||[]}},{key:"getItemsAtCurrentTime",value:function(e){return this.time=e,this.itemSet&&this.itemSet.getItemsAtCurrentTime(this.time)||[]}},{key:"getVisibleGroups",value:function(){return this.itemSet&&this.itemSet.getVisibleGroups()||[]}},{key:"fit",value:function(e,n){var r=this.getDataRange();if(r.min!==null||r.max!==null){var o=r.max-r.min,a=new Date(r.min.valueOf()-.01*o),s=new Date(r.max.valueOf()+.01*o),d=!e||e.animation===void 0||e.animation;this.range.setRange(a,s,{animation:d},n)}}},{key:"getDataRange",value:function(){throw new Error("Cannot invoke abstract method getDataRange")}},{key:"setWindow",value:function(e,n,r,o){var a,s;typeof arguments[2]=="function"&&(o=arguments[2],r={}),arguments.length==1?(a=(s=arguments[0]).animation===void 0||s.animation,this.range.setRange(s.start,s.end,{animation:a})):arguments.length==2&&typeof arguments[1]=="function"?(o=arguments[1],a=(s=arguments[0]).animation===void 0||s.animation,this.range.setRange(s.start,s.end,{animation:a},o)):(a=!r||r.animation===void 0||r.animation,this.range.setRange(e,n,{animation:a},o))}},{key:"moveTo",value:function(e,n,r){typeof arguments[1]=="function"&&(r=arguments[1],n={});var o=this.range.end-this.range.start,a=H.convert(e,"Date").valueOf(),s=a-o/2,d=a+o/2,p=!n||n.animation===void 0||n.animation;this.range.setRange(s,d,{animation:p},r)}},{key:"getWindow",value:function(){var e=this.range.getRange();return{start:new Date(e.start),end:new Date(e.end)}}},{key:"zoomIn",value:function(e,n,r){if(!(!e||e<0||e>1)){typeof arguments[1]=="function"&&(r=arguments[1],n={});var o=this.getWindow(),a=o.start.valueOf(),s=o.end.valueOf(),d=s-a,p=(d-d/(1+e))/2,_=a+p,x=s-p;this.setWindow(_,x,n,r)}}},{key:"zoomOut",value:function(e,n,r){if(!(!e||e<0||e>1)){typeof arguments[1]=="function"&&(r=arguments[1],n={});var o=this.getWindow(),a=o.start.valueOf(),s=o.end.valueOf(),d=s-a,p=a-d*e/2,_=s+d*e/2;this.setWindow(p,_,n,r)}}},{key:"redraw",value:function(){this._redraw()}},{key:"_redraw",value:function(){var e;this.redrawCount++;var n=this.dom;if(n&&n.container&&n.root.offsetWidth!=0){var r=!1,o=this.options,a=this.props;Xh(this.options.moment,this.body,this.options.hiddenDates),o.orientation=="top"?(H.addClassName(n.root,"vis-top"),H.removeClassName(n.root,"vis-bottom")):(H.removeClassName(n.root,"vis-top"),H.addClassName(n.root,"vis-bottom")),o.rtl?(H.addClassName(n.root,"vis-rtl"),H.removeClassName(n.root,"vis-ltr")):(H.addClassName(n.root,"vis-ltr"),H.removeClassName(n.root,"vis-rtl")),n.root.style.maxHeight=H.option.asSize(o.maxHeight,""),n.root.style.minHeight=H.option.asSize(o.minHeight,""),n.root.style.width=H.option.asSize(o.width,"");var s=n.root.offsetWidth;a.border.left=1,a.border.right=1,a.border.top=1,a.border.bottom=1,a.center.height=n.center.offsetHeight,a.left.height=n.left.offsetHeight,a.right.height=n.right.offsetHeight,a.top.height=n.top.clientHeight||-a.border.top,a.bottom.height=Math.round(n.bottom.getBoundingClientRect().height)||n.bottom.clientHeight||-a.border.bottom;var d=Math.max(a.left.height,a.center.height,a.right.height),p=a.top.height+d+a.bottom.height+a.border.top+a.border.bottom;n.root.style.height=H.option.asSize(o.height,"".concat(p,"px")),a.root.height=n.root.offsetHeight,a.background.height=a.root.height;var _=a.root.height-a.top.height-a.bottom.height;a.centerContainer.height=_,a.leftContainer.height=_,a.rightContainer.height=a.leftContainer.height,a.root.width=s,a.background.width=a.root.width,this.initialDrawDone||(a.scrollbarWidth=H.getScrollBarWidth());var x=n.leftContainer.clientWidth,O=n.rightContainer.clientWidth;o.verticalScroll?o.rtl?(a.left.width=x||-a.border.left,a.right.width=O+a.scrollbarWidth||-a.border.right):(a.left.width=x+a.scrollbarWidth||-a.border.left,a.right.width=O||-a.border.right):(a.left.width=x||-a.border.left,a.right.width=O||-a.border.right),this._setDOM();var C=this._updateScrollTop();o.orientation.item!="top"&&(C+=Math.max(a.centerContainer.height-a.center.height-a.border.top-a.border.bottom,0)),n.center.style.transform="translateY(".concat(C,"px)");var Y=a.scrollTop==0?"hidden":"",j=a.scrollTop==a.scrollTopMin?"hidden":"";n.shadowTop.style.visibility=Y,n.shadowBottom.style.visibility=j,n.shadowTopLeft.style.visibility=Y,n.shadowBottomLeft.style.visibility=j,n.shadowTopRight.style.visibility=Y,n.shadowBottomRight.style.visibility=j,o.verticalScroll&&(n.rightContainer.className="vis-panel vis-right vis-vertical-scroll",n.leftContainer.className="vis-panel vis-left vis-vertical-scroll",n.shadowTopRight.style.visibility="hidden",n.shadowBottomRight.style.visibility="hidden",n.shadowTopLeft.style.visibility="hidden",n.shadowBottomLeft.style.visibility="hidden",n.left.style.top="0px",n.right.style.top="0px"),(!o.verticalScroll||a.center.height<a.centerContainer.height)&&(n.left.style.top="".concat(C,"px"),n.right.style.top="".concat(C,"px"),n.rightContainer.className=n.rightContainer.className.replace(new RegExp("(?:^|\\s)vis-vertical-scroll(?:\\s|$)")," "),n.leftContainer.className=n.leftContainer.className.replace(new RegExp("(?:^|\\s)vis-vertical-scroll(?:\\s|$)")," "),a.left.width=x||-a.border.left,a.right.width=O||-a.border.right,this._setDOM());var G=a.center.height>a.centerContainer.height;if(this.hammer.get("pan").set({direction:G?ze.DIRECTION_ALL:ze.DIRECTION_HORIZONTAL}),this.hammer.get("press").set({time:this.options.longSelectPressTime}),Ot(e=this.components).call(e,function(X){r=X.redraw()||r}),r){if(this.redrawCount<5)return void this.body.emitter.emit("_change");console.log("WARNING: infinite loop in redraw?")}else this.redrawCount=0;this.body.emitter.emit("changed")}}},{key:"_setDOM",value:function(){var e=this.props,n=this.dom;e.leftContainer.width=e.left.width,e.rightContainer.width=e.right.width;var r=e.root.width-e.left.width-e.right.width;e.center.width=r,e.centerContainer.width=r,e.top.width=r,e.bottom.width=r,n.background.style.height="".concat(e.background.height,"px"),n.backgroundVertical.style.height="".concat(e.background.height,"px"),n.backgroundHorizontal.style.height="".concat(e.centerContainer.height,"px"),n.centerContainer.style.height="".concat(e.centerContainer.height,"px"),n.leftContainer.style.height="".concat(e.leftContainer.height,"px"),n.rightContainer.style.height="".concat(e.rightContainer.height,"px"),n.background.style.width="".concat(e.background.width,"px"),n.backgroundVertical.style.width="".concat(e.centerContainer.width,"px"),n.backgroundHorizontal.style.width="".concat(e.background.width,"px"),n.centerContainer.style.width="".concat(e.center.width,"px"),n.top.style.width="".concat(e.top.width,"px"),n.bottom.style.width="".concat(e.bottom.width,"px"),n.background.style.left="0",n.background.style.top="0",n.backgroundVertical.style.left="".concat(e.left.width+e.border.left,"px"),n.backgroundVertical.style.top="0",n.backgroundHorizontal.style.left="0",n.backgroundHorizontal.style.top="".concat(e.top.height,"px"),n.centerContainer.style.left="".concat(e.left.width,"px"),n.centerContainer.style.top="".concat(e.top.height,"px"),n.leftContainer.style.left="0",n.leftContainer.style.top="".concat(e.top.height,"px"),n.rightContainer.style.left="".concat(e.left.width+e.center.width,"px"),n.rightContainer.style.top="".concat(e.top.height,"px"),n.top.style.left="".concat(e.left.width,"px"),n.top.style.top="0",n.bottom.style.left="".concat(e.left.width,"px"),n.bottom.style.top="".concat(e.top.height+e.centerContainer.height,"px"),n.center.style.left="0",n.left.style.left="0",n.right.style.left="0"}},{key:"setCurrentTime",value:function(e){if(!this.currentTime)throw new Error("Option showCurrentTime must be true");this.currentTime.setCurrentTime(e)}},{key:"getCurrentTime",value:function(){if(!this.currentTime)throw new Error("Option showCurrentTime must be true");return this.currentTime.getCurrentTime()}},{key:"_toTime",value:function(e){return Og(this,e,this.props.center.width)}},{key:"_toGlobalTime",value:function(e){return Og(this,e,this.props.root.width)}},{key:"_toScreen",value:function(e){return xg(this,e,this.props.center.width)}},{key:"_toGlobalScreen",value:function(e){return xg(this,e,this.props.root.width)}},{key:"_initAutoResize",value:function(){this.options.autoResize==1?this._startAutoResize():this._stopAutoResize()}},{key:"_startAutoResize",value:function(){var e=this;this._stopAutoResize(),this._onResize=function(){if(e.options.autoResize==1){if(e.dom.root){var n=e.dom.root.offsetHeight,r=e.dom.root.offsetWidth;r==e.props.lastWidth&&n==e.props.lastHeight||(e.props.lastWidth=r,e.props.lastHeight=n,e.props.scrollbarWidth=H.getScrollBarWidth(),e.body.emitter.emit("_change"))}}else e._stopAutoResize()},H.addEventListener(window,"resize",this._onResize),e.dom.root&&(e.props.lastWidth=e.dom.root.offsetWidth,e.props.lastHeight=e.dom.root.offsetHeight),this.watchTimer=fa(this._onResize,1e3)}},{key:"_stopAutoResize",value:function(){this.watchTimer&&(clearInterval(this.watchTimer),this.watchTimer=void 0),this._onResize&&(H.removeEventListener(window,"resize",this._onResize),this._onResize=null)}},{key:"_onTouch",value:function(e){this.touch.allowDragging=!0,this.touch.initialScrollTop=this.props.scrollTop}},{key:"_onPinch",value:function(e){this.touch.allowDragging=!1}},{key:"_onDrag",value:function(e){if(e&&this.touch.allowDragging){var n=e.deltaY,r=this._getScrollTop(),o=this._setScrollTop(this.touch.initialScrollTop+n);this.options.verticalScroll&&(this.dom.left.parentNode.scrollTop=-this.props.scrollTop,this.dom.right.parentNode.scrollTop=-this.props.scrollTop),o!=r&&this.emit("verticalDrag")}}},{key:"_setScrollTop",value:function(e){return this.props.scrollTop=e,this._updateScrollTop(),this.props.scrollTop}},{key:"_updateScrollTop",value:function(){var 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}},{key:"_getScrollTop",value:function(){return this.props.scrollTop}},{key:"_createConfigurator",value:function(){throw new Error("Cannot invoke abstract method _createConfigurator")}}]),t}();function gr(t){var e=function(){if(typeof Reflect=="undefined"||!At||At.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(At(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var n,r=Be(t);if(e){var o=Be(this).constructor;n=At(r,arguments,o)}else n=r.apply(this,arguments);return ui(this,n)}}Bf(ge.prototype);var Jn=function(t){si(n,t);var e=gr(n);function n(r,o){var a,s;Se(this,n),(s=e.call(this)).body=r,s.defaultOptions={rtl:!1,showCurrentTime:!0,alignCurrentTime:void 0,moment:Bn,locales:ft,locale:"en"},s.options=H.extend({},s.defaultOptions),s.setOptions(o),s.options.locales=H.extend({},ft,s.options.locales);var d=s.defaultOptions.locales[s.defaultOptions.locale];return Ot(a=Jr(s.options.locales)).call(a,function(p){s.options.locales[p]=H.extend({},d,s.options.locales[p])}),s.offset=0,s._create(),s}return Ce(n,[{key:"_create",value:function(){var r=document.createElement("div");r.className="vis-current-time",r.style.position="absolute",r.style.top="0px",r.style.height="100%",this.bar=r}},{key:"destroy",value:function(){this.options.showCurrentTime=!1,this.redraw(),this.body=null}},{key:"setOptions",value:function(r){r&&H.selectiveExtend(["rtl","showCurrentTime","alignCurrentTime","moment","locale","locales"],this.options,r)}},{key:"redraw",value:function(){if(this.options.showCurrentTime){var r,o,a=this.body.dom.backgroundVertical;this.bar.parentNode!=a&&(this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),a.appendChild(this.bar),this.start());var s=this.options.moment(xi()+this.offset);this.options.alignCurrentTime&&(s=s.startOf(this.options.alignCurrentTime));var d=this.body.util.toScreen(s),p=this.options.locales[this.options.locale];p||(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),p=this.options.locales.en);var _=Ke(r=Ke(o="".concat(p.current," ")).call(o,p.time,": ")).call(r,s.format("dddd, MMMM Do YYYY, H:mm:ss"));_=_.charAt(0).toUpperCase()+_.substring(1),this.options.rtl?this.bar.style.transform="translateX(".concat(-1*d,"px)"):this.bar.style.transform="translateX(".concat(d,"px)"),this.bar.title=_}else this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),this.stop();return!1}},{key:"start",value:function(){var r=this;(function o(){r.stop();var a=1/r.body.range.conversion(r.body.domProps.center.width).scale/10;a<30&&(a=30),a>1e3&&(a=1e3),r.redraw(),r.body.emitter.emit("currentTimeTick"),r.currentTimeTimer=Yn(o,a)})()}},{key:"stop",value:function(){this.currentTimeTimer!==void 0&&(clearTimeout(this.currentTimeTimer),delete this.currentTimeTimer)}},{key:"setCurrentTime",value:function(r){var o=H.convert(r,"Date").valueOf(),a=xi();this.offset=o-a,this.redraw()}},{key:"getCurrentTime",value:function(){return new Date(xi()+this.offset)}}]),n}(Ao),Cn={},Eu={get exports(){return Cn},set exports(t){Cn=t}},ec=Bt,rc=qo.find,kC="find",TC=!0;kC in[]&&Array(1)[kC](function(){TC=!1}),ec({target:"Array",proto:!0,forced:TC},{find:function(t){return rc(this,t,arguments.length>1?arguments[1]:void 0)}});var NI=Pr("Array").find,RI=Le,jI=NI,Dg=Array.prototype,LI=function(t){var e=t.find;return t===Dg||RI(Dg,t)&&e===Dg.find?jI:e},Cg=LI;(function(t){t.exports=Cg})(Eu);var ED=nt(Cn),DD={},FI={get exports(){return DD},set exports(t){DD=t}},bT={},YI={get exports(){return bT},set exports(t){bT=t}},xC=Wt(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),OC=Wt,BI=xr,HI=fr,wT=xC,t_=Object.isExtensible,GI=OC(function(){t_(1)})||wT?function(t){return!!BI(t)&&(!wT||HI(t)!="ArrayBuffer")&&(!t_||t_(t))}:t_,WI=!Wt(function(){return Object.isExtensible(Object.preventExtensions({}))}),zI=Bt,UI=se,EC=$s,VI=xr,_T=Rr,$o=Nn.f,DC=ja,XI=zs,ST=GI,qI=WI,CD=!1,Du=cc("meta"),KI=0,kT=function(t){$o(t,Du,{value:{objectID:"O"+KI++,weakData:{}}})},JI=YI.exports={enable:function(){JI.enable=function(){},CD=!0;var t=DC.f,e=UI([].splice),n={};n[Du]=1,t(n).length&&(DC.f=function(r){for(var o=t(r),a=0,s=o.length;a<s;a++)if(o[a]===Du){e(o,a,1);break}return o},zI({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:XI.f}))},fastKey:function(t,e){if(!VI(t))return typeof t=="symbol"?t:(typeof t=="string"?"S":"P")+t;if(!_T(t,Du)){if(!ST(t))return"F";if(!e)return"E";kT(t)}return t[Du].objectID},getWeakData:function(t,e){if(!_T(t,Du)){if(!ST(t))return!0;if(!e)return!1;kT(t)}return t[Du].weakData},onFreeze:function(t){return qI&&CD&&ST(t)&&!_T(t,Du)&&kT(t),t}};EC[Du]=!0;var ZI=_r,QI=Ur,ID=de,PD=qt,tP=x0,AD=bi,CC=Le,IC=E0,eP=ch,TT=k0,e_=TypeError,r_=function(t,e){this.stopped=t,this.result=e},Ig=r_.prototype,Zh=function(t,e,n){var r,o,a,s,d,p,_,x=n&&n.that,O=!(!n||!n.AS_ENTRIES),C=!(!n||!n.IS_RECORD),Y=!(!n||!n.IS_ITERATOR),j=!(!n||!n.INTERRUPTED),G=ZI(e,x),X=function(tt){return r&&TT(r,"normal",tt),new r_(!0,tt)},q=function(tt){return O?(ID(tt),j?G(tt[0],tt[1],X):G(tt[0],tt[1])):j?G(tt,X):G(tt)};if(C)r=t.iterator;else if(Y)r=t;else{if(!(o=eP(t)))throw e_(PD(t)+" is not iterable");if(tP(o)){for(a=0,s=AD(t);s>a;a++)if((d=q(t[a]))&&CC(Ig,d))return d;return new r_(!1)}r=IC(t,o)}for(p=C?t.next:r.next;!(_=QI(p,r)).done;){try{d=q(_.value)}catch(tt){TT(r,"throw",tt)}if(typeof d=="object"&&d&&CC(Ig,d))return d}return new r_(!1)},$D=Le,MD=TypeError,xT=function(t,e){if($D(e,t))return t;throw MD("Incorrect invocation")},ND=Bt,PC=Gt,AC=bT,$C=Wt,MC=mo,NC=Zh,rP=xT,nP=ie,iP=xr,oP=Xs,Ep=Nn.f,RC=qo.forEach,aP=xe,RD=Ir.set,sP=Ir.getterFor,uP=ll,lP=Xt,cP=Fd,jD=xe,LD=cr("species"),jC=Fs,LC=Fd,n_=function(t,e,n){for(var r in e)n&&n.unsafe&&t[r]?t[r]=e[r]:uP(t,r,e[r],n);return t},FC=_r,FD=xT,Pg=ba,YD=Zh,BD=Yv,i_=Qc,YC=function(t){var e=lP(t);jD&&e&&!e[LD]&&cP(e,LD,{configurable:!0,get:function(){return this}})},Qh=xe,o_=bT.fastKey,BC=Ir.set,HD=Ir.getterFor,Ag={getConstructor:function(t,e,n,r){var o=t(function(_,x){FD(_,a),BC(_,{type:e,index:jC(null),first:void 0,last:void 0,size:0}),Qh||(_.size=0),Pg(x)||YD(x,_[r],{that:_,AS_ENTRIES:n})}),a=o.prototype,s=HD(e),d=function(_,x,O){var C,Y,j=s(_),G=p(_,x);return G?G.value=O:(j.last=G={index:Y=o_(x,!0),key:x,value:O,previous:C=j.last,next:void 0,removed:!1},j.first||(j.first=G),C&&(C.next=G),Qh?j.size++:_.size++,Y!=="F"&&(j.index[Y]=G)),_},p=function(_,x){var O,C=s(_),Y=o_(x);if(Y!=="F")return C.index[Y];for(O=C.first;O;O=O.next)if(O.key==x)return O};return n_(a,{clear:function(){for(var _=s(this),x=_.index,O=_.first;O;)O.removed=!0,O.previous&&(O.previous=O.previous.next=void 0),delete x[O.index],O=O.next;_.first=_.last=void 0,Qh?_.size=0:this.size=0},delete:function(_){var x=this,O=s(x),C=p(x,_);if(C){var Y=C.next,j=C.previous;delete O.index[C.index],C.removed=!0,j&&(j.next=Y),Y&&(Y.previous=j),O.first==C&&(O.first=Y),O.last==C&&(O.last=j),Qh?O.size--:x.size--}return!!C},forEach:function(_){for(var x,O=s(this),C=FC(_,arguments.length>1?arguments[1]:void 0);x=x?x.next:O.first;)for(C(x.value,x.key,this);x&&x.removed;)x=x.previous},has:function(_){return!!p(this,_)}}),n_(a,n?{get:function(_){var x=p(this,_);return x&&x.value},set:function(_,x){return d(this,_===0?0:_,x)}}:{add:function(_){return d(this,_=_===0?0:_,_)}}),Qh&&LC(a,"size",{configurable:!0,get:function(){return s(this).size}}),o},setStrong:function(t,e,n){var r=e+" Iterator",o=HD(e),a=HD(r);BD(t,e,function(s,d){BC(this,{type:r,target:s,state:o(s),kind:d,last:void 0})},function(){for(var s=a(this),d=s.kind,p=s.last;p&&p.removed;)p=p.previous;return s.target&&(s.last=p=p?p.next:s.state.first)?i_(d=="keys"?p.key:d=="values"?p.value:[p.key,p.value],!1):(s.target=void 0,i_(void 0,!0))},n?"entries":"values",!n,!0),YC(e)}},hP=function(t,e,n){var r,o=t.indexOf("Map")!==-1,a=t.indexOf("Weak")!==-1,s=o?"set":"add",d=PC[t],p=d&&d.prototype,_={};if(aP&&nP(d)&&(a||p.forEach&&!$C(function(){new d().entries().next()}))){var x=(r=e(function(C,Y){RD(rP(C,x),{type:t,collection:new d}),Y!=null&&NC(Y,C[s],{that:C,AS_ENTRIES:o})})).prototype,O=sP(t);RC(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(C){var Y=C=="add"||C=="set";!(C in p)||a&&C=="clear"||MC(x,C,function(j,G){var X=O(this).collection;if(!Y&&a&&!iP(j))return C=="get"&&void 0;var q=X[C](j===0?0:j,G);return Y?this:q})}),a||Ep(x,"size",{configurable:!0,get:function(){return O(this).collection.size}})}else r=n.getConstructor(e,t,o,s),AC.enable();return oP(r,t,!1,!0),_[t]=r,ND({global:!0,forced:!0},_),a||n.setStrong(r,t,o),r};hP("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Ag);var $g=we.Set;(function(t){t.exports=$g})(FI);var a_=nt(DD),GD={},dP={get exports(){return GD},set exports(t){GD=t}},fP=Bt,pP=qo.findIndex,Mg="findIndex",HC=!0;Mg in[]&&Array(1)[Mg](function(){HC=!1}),fP({target:"Array",proto:!0,forced:HC},{findIndex:function(t){return pP(this,t,arguments.length>1?arguments[1]:void 0)}});var vP=Pr("Array").findIndex,mP=Le,gP=vP,WD=Array.prototype,yP=function(t){var e=t.findIndex;return t===WD||mP(WD,t)&&e===WD.findIndex?gP:e},zD=yP;(function(t){t.exports=zD})(dP);var GC=nt(GD);function bP(t,e){var n=Oo!==void 0&&Qr(t)||t["@@iterator"];if(!n){if(ce(t)||(n=function(p,_){var x;if(p){if(typeof p=="string")return OT(p,_);var O=vr(x=Object.prototype.toString.call(p)).call(x,8,-1);if(O==="Object"&&p.constructor&&(O=p.constructor.name),O==="Map"||O==="Set")return au(p);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return OT(p,_)}}(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(p){throw p},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,s=!0,d=!1;return{s:function(){n=n.call(t)},n:function(){var p=n.next();return s=p.done,p},e:function(p){d=!0,a=p},f:function(){try{s||n.return==null||n.return()}finally{if(d)throw a}}}}function OT(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var uo=.001;function WC(t){Mr(t).call(t,function(e,n){return e.data.start-n.data.start})}function Ng(t){Mr(t).call(t,function(e,n){return("end"in e.data?e.data.end:e.data.start)-("end"in n.data?n.data.end:n.data.start)})}function pa(t,e,n,r){return Rg(t,e.item,!1,function(o){return o.stack&&(n||o.top===null)},function(o){return o.stack},function(o){return e.axis},r)===null}function UD(t,e,n){var r=Rg(t,e.item,!1,function(o){return o.stack},function(o){return!0},function(o){return o.baseTop});n.height=r-n.top+.5*e.item.vertical}function zC(t,e,n,r){for(var o=0;o<t.length;o++)if(t[o].data.subgroup==null)t[o].top=e.item.vertical;else if(t[o].data.subgroup!==void 0&&r){var a=0;for(var s in n)n.hasOwnProperty(s)&&n[s].visible==1&&n[s].index<n[t[o].data.subgroup].index&&(a+=n[s].height,n[t[o].data.subgroup].top=a);t[o].top=a+.5*e.item.vertical}r||UC(t,e,n)}function UC(t,e,n){var r;Rg(Mr(r=fn(n)).call(r,function(a,s){return a.index>s.index?1:a.index<s.index?-1:0}),{vertical:0},!0,function(a){return!0},function(a){return!0},function(a){return 0});for(var o=0;o<t.length;o++)t[o].data.subgroup!==void 0&&(t[o].top=n[t[o].data.subgroup].top+.5*e.item.vertical)}function VD(t,e,n){var r=!1,o=[];for(var a in n)n[a].hasOwnProperty("index")?o[n[a].index]=a:o.push(a);for(var s=0;s<o.length;s++)if(a=o[s],n.hasOwnProperty(a)){for(var d in r=r||n[a].stack,n[a].top=0,n)n[d].visible&&n[a].index>n[d].index&&(n[a].top+=n[d].height);for(var p=t[a],_=0;_<p.length;_++)p[_].data.subgroup!==void 0&&(p[_].top=n[p[_].data.subgroup].top+.5*e.item.vertical,n[a].stack&&(p[_].baseTop=p[_].top));r&&n[a].stack&&UD(t[a],e,n[a])}}function Rg(t,e,n,r,o,a,s){var d=function(bt){return bt.start},p=function(bt){return bt.end};if(!n){var _=!(!t[0]||!t[0].options.rtl);d=_?function(bt){return bt.right}:function(bt){return bt.left},p=function(bt){return d(bt)+bt.width+e.horizontal}}var x,O=[],C=[],Y=null,j=0,G=bP(t);try{var X=function(){var bt=x.value;if(r(bt))O.push(bt);else if(o(bt)){var ut=d(bt);Y!==null&&ut<Y-uo&&(j=0),Y=ut,j=hs(C,function(Lt){return d(Lt)-uo>ut},j),li(C).call(C,j,0,bt),j++}};for(G.s();!(x=G.n()).done;)X()}catch(bt){G.e(bt)}finally{G.f()}Y=null;var q=null;j=0;for(var tt=0,ot=0,wt=0,It=function(){var bt,ut,Lt=O.shift();Lt.top=a(Lt);var re=d(Lt),lr=p(Lt);Y!==null&&re<Y-uo&&(tt=0,ot=0,j=0,q=null),Y=re,tt=hs(C,function(Pi){return re<p(Pi)-uo},tt),(q===null||q<lr-uo)&&(ot=hs(C,function(Pi){return lr<d(Pi)-uo},Math.max(tt,ot))),q!==null&&q-uo>lr&&(ot=function(Pi,fC,NT,pC){for(NT||(NT=0),pC||(pC=Pi.length),i=pC-1;i>=NT;i--)if(fC(Pi[i]))return i;return NT-1}(C,function(Pi){return lr+uo>=d(Pi)},tt,horizontalOVerlapEndIndex)+1);for(var dr,co,Ip,Gg=Mr(bt=ve(ut=vr(C).call(C,tt,ot)).call(ut,function(Pi){return re<p(Pi)-uo&&lr-uo>d(Pi)})).call(bt,function(Pi,fC){return Pi.top-fC.top}),c_=0;c_<Gg.length;c_++){var dC=Gg[c_];co=dC,Ip=e,(dr=Lt).top-Ip.vertical+uo<co.top+co.height&&dr.top+dr.height+Ip.vertical-uo>co.top&&(Lt.top=dC.top+dC.height+e.vertical)}o(Lt)&&(j=hs(C,function(Pi){return d(Pi)-uo>re},j),li(C).call(C,j,0,Lt),j++);var sI=Lt.top+Lt.height;if(sI>wt&&(wt=sI),s&&s())return{v:null}};O.length>0;){var pt=It();if(Jt(pt)==="object")return pt.v}return wt}function hs(t,e,n){var r;n||(n=0);var o=GC(r=vr(t).call(t,n)).call(r,e);return o===-1?t.length:o+n}var s_=Object.freeze({__proto__:null,nostack:zC,orderByEnd:Ng,orderByStart:WC,stack:pa,stackSubgroups:UC,stackSubgroupsWithInnerStack:VD,substack:UD}),VC="__background__",ET=function(){function t(e,n,r){var o=this;if(Se(this,t),this.groupId=e,this.subgroups={},this.subgroupStack={},this.subgroupStackAll=!1,this.subgroupVisibility={},this.doInnerStack=!1,this.shouldBailStackItems=!1,this.subgroupIndex=0,this.subgroupOrderer=n&&n.subgroupOrder,this.itemSet=r,this.isVisible=null,this.stackDirty=!0,this._disposeCallbacks=[],n&&n.nestedGroups&&(this.nestedGroups=n.nestedGroups,n.showNested==0?this.showNested=!1:this.showNested=!0),n&&n.subgroupStack)if(typeof n.subgroupStack=="boolean")this.doInnerStack=n.subgroupStack,this.subgroupStackAll=n.subgroupStack;else for(var a in n.subgroupStack)this.subgroupStack[a]=n.subgroupStack[a],this.doInnerStack=this.doInnerStack||n.subgroupStack[a];n&&n.heightMode?this.heightMode=n.heightMode:this.heightMode=r.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;var s=function(){o.checkRangedItems=!0};this.itemSet.body.emitter.on("checkRangedItems",s),this._disposeCallbacks.push(function(){o.itemSet.body.emitter.off("checkRangedItems",s)}),this._create(),this.setData(n)}return Ce(t,[{key:"_create",value:function(){var e=document.createElement("div");this.itemSet.options.groupEditable.order?e.className="vis-label draggable":e.className="vis-label",this.dom.label=e;var n=document.createElement("div");n.className="vis-inner",e.appendChild(n),this.dom.inner=n;var r=document.createElement("div");r.className="vis-group",r["vis-group"]=this,this.dom.foreground=r,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)}},{key:"setData",value:function(e){if(!this.itemSet.groupTouchParams.isDragging){var n,r,o;if(e&&e.subgroupVisibility)for(var a in e.subgroupVisibility)this.subgroupVisibility[a]=e.subgroupVisibility[a];if(this.itemSet.options&&this.itemSet.options.groupTemplate?n=(r=at(o=this.itemSet.options.groupTemplate).call(o,this))(e,this.dom.inner):n=e&&e.content,n instanceof Element){for(;this.dom.inner.firstChild;)this.dom.inner.removeChild(this.dom.inner.firstChild);this.dom.inner.appendChild(n)}else n instanceof Object&&n.isReactComponent||(n instanceof Object?r(e,this.dom.inner):this.dom.inner.innerHTML=n!=null?H.xss(n):H.xss(this.groupId||""));this.dom.label.title=e&&e.title||"",this.dom.inner.firstChild?H.removeClassName(this.dom.inner,"vis-hidden"):H.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==0?this.showNested=!1:this.showNested=!0),H.addClassName(this.dom.label,"vis-nesting-group"),this.showNested?(H.removeClassName(this.dom.label,"collapsed"),H.addClassName(this.dom.label,"expanded")):(H.removeClassName(this.dom.label,"expanded"),H.addClassName(this.dom.label,"collapsed"))):this.nestedGroups&&(this.nestedGroups=null,H.removeClassName(this.dom.label,"collapsed"),H.removeClassName(this.dom.label,"expanded"),H.removeClassName(this.dom.label,"vis-nesting-group")),e&&(e.treeLevel||e.nestedInGroup)?(H.addClassName(this.dom.label,"vis-nested-group"),e.treeLevel?H.addClassName(this.dom.label,"vis-group-level-"+e.treeLevel):H.addClassName(this.dom.label,"vis-group-level-unknown-but-gte1")):H.addClassName(this.dom.label,"vis-group-level-0");var s=e&&e.className||null;s!=this.className&&(this.className&&(H.removeClassName(this.dom.label,this.className),H.removeClassName(this.dom.foreground,this.className),H.removeClassName(this.dom.background,this.className),H.removeClassName(this.dom.axis,this.className)),H.addClassName(this.dom.label,s),H.addClassName(this.dom.foreground,s),H.addClassName(this.dom.background,s),H.addClassName(this.dom.axis,s),this.className=s),this.style&&(H.removeCssText(this.dom.label,this.style),this.style=null),e&&e.style&&(H.addCssText(this.dom.label,e.style),this.style=e.style)}}},{key:"getLabelWidth",value:function(){return this.props.label.width}},{key:"_didMarkerHeightChange",value:function(){var e=this.dom.marker.clientHeight;if(e!=this.lastMarkerHeight){this.lastMarkerHeight=e;var n={},r=0;if(Ot(H).call(H,this.items,function(s,d){s.dirty=!0,s.displayed&&(n[d]=s.redraw(!0),r=n[d].length)}),r>0)for(var o=function(s){Ot(H).call(H,n,function(d){d[s]()})},a=0;a<r;a++)o(a);return!0}return!1}},{key:"_calculateGroupSizeAndPosition",value:function(){var e=this.dom.foreground,n=e.offsetTop,r=e.offsetLeft,o=e.offsetWidth;this.top=n,this.right=r,this.width=o}},{key:"_shouldBailItemsRedraw",value:function(){var e=this,n=this.itemSet.options.onTimeout,r={relativeBailingTime:this.itemSet.itemsSettingTime,bailTimeMs:n&&n.timeoutMs,userBailFunction:n&&n.callback,shouldBailStackItems:this.shouldBailStackItems},o=null;if(!this.itemSet.initialDrawDone){if(r.shouldBailStackItems)return!0;Math.abs(xi()-new Date(r.relativeBailingTime))>r.bailTimeMs&&(r.userBailFunction&&this.itemSet.userContinueNotBail==null?r.userBailFunction(function(a){e.itemSet.userContinueNotBail=a,o=!a}):o=e.itemSet.userContinueNotBail==0)}return o}},{key:"_redrawItems",value:function(e,n,r,o){var a=this;if(e||this.stackDirty||this.isVisible&&!n){var s,d,p,_,x,O,C={byEnd:ve(s=this.orderedItems.byEnd).call(s,function(ut){return!ut.isCluster}),byStart:ve(d=this.orderedItems.byStart).call(d,function(ut){return!ut.isCluster})},Y={byEnd:Zi(new a_(ve(p=Br(_=this.orderedItems.byEnd).call(_,function(ut){return ut.cluster})).call(p,function(ut){return!!ut}))),byStart:Zi(new a_(ve(x=Br(O=this.orderedItems.byStart).call(O,function(ut){return ut.cluster})).call(x,function(ut){return!!ut})))},j=function(){var ut,Lt,re,lr=a._updateItemsInRange(C,ve(ut=a.visibleItems).call(ut,function(co){return!co.isCluster}),o),dr=a._updateClustersInRange(Y,ve(Lt=a.visibleItems).call(Lt,function(co){return co.isCluster}),o);return Ke(re=[]).call(re,Zi(lr),Zi(dr))},G=function(ut){var Lt={},re=function(dr){var co,Ip=ve(co=a.visibleItems).call(co,function(Gg){return Gg.data.subgroup===dr});Lt[dr]=ut?Mr(Ip).call(Ip,function(Gg,c_){return ut(Gg.data,c_.data)}):Ip};for(var lr in a.subgroups)re(lr);return Lt};if(typeof this.itemSet.options.order=="function"){var X=this;if(this.doInnerStack&&this.itemSet.options.stackSubgroups)VD(G(this.itemSet.options.order),r,this.subgroups),this.visibleItems=j(),this._updateSubGroupHeights(r);else{var q,tt,ot,wt;this.visibleItems=j(),this._updateSubGroupHeights(r);var It=Mr(q=ve(tt=vr(ot=this.visibleItems).call(ot)).call(tt,function(ut){return ut.isCluster||!ut.isCluster&&!ut.cluster})).call(q,function(ut,Lt){return X.itemSet.options.order(ut.data,Lt.data)});this.shouldBailStackItems=pa(It,r,!0,at(wt=this._shouldBailItemsRedraw).call(wt,this))}}else{var pt;this.visibleItems=j(),this._updateSubGroupHeights(r),this.itemSet.options.stack?this.doInnerStack&&this.itemSet.options.stackSubgroups?VD(G(),r,this.subgroups):this.shouldBailStackItems=pa(this.visibleItems,r,!0,at(pt=this._shouldBailItemsRedraw).call(pt,this)):zC(this.visibleItems,r,this.subgroups,this.itemSet.options.stackSubgroups)}for(var bt=0;bt<this.visibleItems.length;bt++)this.visibleItems[bt].repositionX(),this.subgroupVisibility[this.visibleItems[bt].data.subgroup]!==void 0&&(this.subgroupVisibility[this.visibleItems[bt].data.subgroup]||this.visibleItems[bt].hide());this.itemSet.options.cluster&&Ot(H).call(H,this.items,function(ut){ut.cluster&&ut.displayed&&ut.hide()}),this.shouldBailStackItems&&this.itemSet.body.emitter.emit("destroyTimeline"),this.stackDirty=!1}}},{key:"_didResize",value:function(e,n){e=H.updateProperty(this,"height",n)||e;var r=this.dom.inner.clientWidth,o=this.dom.inner.clientHeight;return e=H.updateProperty(this.props.label,"width",r)||e,e=H.updateProperty(this.props.label,"height",o)||e}},{key:"_applyGroupHeight",value:function(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")}},{key:"_updateItemsVerticalPosition",value:function(e){for(var n=0,r=this.visibleItems.length;n<r;n++){var o=this.visibleItems[n];o.repositionY(e),this.isVisible||this.groupId==VC||o.displayed&&o.hide()}}},{key:"redraw",value:function(e,n,r,o){var a,s,d,p,_,x,O,C=this,Y=!1,j=this.isVisible,G=[function(){r=C._didMarkerHeightChange.call(C)||r},at(a=this._updateSubGroupHeights).call(a,this,n),at(s=this._calculateGroupSizeAndPosition).call(s,this),function(){var X;C.isVisible=at(X=C._isGroupVisible).call(X,C)(e,n)},function(){var X;at(X=C._redrawItems).call(X,C)(r,j,n,e)},at(d=this._updateSubgroupsSizes).call(d,this),function(){var X;x=at(X=C._calculateHeight).call(X,C)(n)},at(p=this._calculateGroupSizeAndPosition).call(p,this),function(){var X;Y=at(X=C._didResize).call(X,C)(Y,x)},function(){var X;at(X=C._applyGroupHeight).call(X,C)(x)},function(){var X;at(X=C._updateItemsVerticalPosition).call(X,C)(n)},at(_=function(){return!C.isVisible&&C.height&&(Y=!1),Y}).call(_,this)];return o?G:(Ot(G).call(G,function(X){O=X()}),O)}},{key:"_updateSubGroupHeights",value:function(e){var n=this;if(Jr(this.subgroups).length>0){var r=this;this._resetSubgroups(),Ot(H).call(H,this.visibleItems,function(o){o.data.subgroup!==void 0&&(r.subgroups[o.data.subgroup].height=Math.max(r.subgroups[o.data.subgroup].height,o.height+e.item.vertical),r.subgroups[o.data.subgroup].visible=n.subgroupVisibility[o.data.subgroup]===void 0||!!n.subgroupVisibility[o.data.subgroup])})}}},{key:"_isGroupVisible",value:function(e,n){return this.top<=e.body.domProps.centerContainer.height-e.body.domProps.scrollTop+n.axis&&this.top+this.height+n.axis>=-e.body.domProps.scrollTop}},{key:"_calculateHeight",value:function(e){var n,r;if((r=this.heightMode==="fixed"?H.toArray(this.items):this.visibleItems).length>0){var o=r[0].top,a=r[0].top+r[0].height;if(Ot(H).call(H,r,function(d){o=Math.min(o,d.top),a=Math.max(a,d.top+d.height)}),o>e.axis){var s=o-e.axis;a-=s,Ot(H).call(H,r,function(d){d.top-=s})}n=Math.ceil(a+e.item.vertical/2),this.heightMode!=="fitItems"&&(n=Math.max(n,this.props.label.height))}else n=this.props.label.height;return n}},{key:"show",value:function(){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)}},{key:"hide",value:function(){var e=this.dom.label;e.parentNode&&e.parentNode.removeChild(e);var n=this.dom.foreground;n.parentNode&&n.parentNode.removeChild(n);var r=this.dom.background;r.parentNode&&r.parentNode.removeChild(r);var o=this.dom.axis;o.parentNode&&o.parentNode.removeChild(o)}},{key:"add",value:function(e){var n;if(this.items[e.id]=e,e.setParent(this),this.stackDirty=!0,e.data.subgroup!==void 0&&(this._addToSubgroup(e),this.orderSubgroups()),!Xa(n=this.visibleItems).call(n,e)){var r=this.itemSet.body.range;this._checkIfVisible(e,this.visibleItems,r)}}},{key:"_addToSubgroup",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.data.subgroup;n!=null&&this.subgroups[n]===void 0&&(this.subgroups[n]={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[n]||!1},this.subgroupIndex++),new Date(e.data.start)<new Date(this.subgroups[n].start)&&(this.subgroups[n].start=e.data.start);var r=e.data.end||e.data.start;new Date(r)>new Date(this.subgroups[n].end)&&(this.subgroups[n].end=r),this.subgroups[n].items.push(e)}},{key:"_updateSubgroupsSizes",value:function(){var e=this;if(e.subgroups){var n=function(){var o,a=e.subgroups[r].items[0].data.end||e.subgroups[r].items[0].data.start,s=e.subgroups[r].items[0].data.start,d=a-1;Ot(o=e.subgroups[r].items).call(o,function(p){new Date(p.data.start)<new Date(s)&&(s=p.data.start);var _=p.data.end||p.data.start;new Date(_)>new Date(d)&&(d=_)}),e.subgroups[r].start=s,e.subgroups[r].end=new Date(d-1)};for(var r in e.subgroups)n()}}},{key:"orderSubgroups",value:function(){if(this.subgroupOrderer!==void 0){var e=[];if(typeof this.subgroupOrderer=="string"){for(var n in this.subgroups)e.push({subgroup:n,sortField:this.subgroups[n].items[0].data[this.subgroupOrderer]});Mr(e).call(e,function(a,s){return a.sortField-s.sortField})}else if(typeof this.subgroupOrderer=="function"){for(var r in this.subgroups)e.push(this.subgroups[r].items[0].data);Mr(e).call(e,this.subgroupOrderer)}if(e.length>0)for(var o=0;o<e.length;o++)this.subgroups[e[o].subgroup].index=o}}},{key:"_resetSubgroups",value:function(){for(var e in this.subgroups)this.subgroups.hasOwnProperty(e)&&(this.subgroups[e].visible=!1,this.subgroups[e].height=0)}},{key:"remove",value:function(e){var n,r;delete this.items[e.id],e.setParent(null),this.stackDirty=!0;var o=Ie(n=this.visibleItems).call(n,e);o!=-1&&li(r=this.visibleItems).call(r,o,1),e.data.subgroup!==void 0&&(this._removeFromSubgroup(e),this.orderSubgroups())}},{key:"_removeFromSubgroup",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.data.subgroup;if(n!=null){var r=this.subgroups[n];if(r){var o,a,s=Ie(o=r.items).call(o,e);s>=0&&(li(a=r.items).call(a,s,1),r.items.length?this._updateSubgroupsSizes():delete this.subgroups[n])}}}},{key:"removeFromDataSet",value:function(e){this.itemSet.removeItem(e.id)}},{key:"order",value:function(){for(var e=H.toArray(this.items),n=[],r=[],o=0;o<e.length;o++)e[o].data.end!==void 0&&r.push(e[o]),n.push(e[o]);this.orderedItems={byStart:n,byEnd:r},WC(this.orderedItems.byStart),Ng(this.orderedItems.byEnd)}},{key:"_updateItemsInRange",value:function(e,n,r){var o=[],a={};if(!this.isVisible&&this.groupId!=VC){for(var s=0;s<n.length;s++){var d=n[s];d.displayed&&d.hide()}return o}var p=(r.end-r.start)/4,_=r.start-p,x=r.end+p;if(n.length>0)for(var O=0;O<n.length;O++)this._checkIfVisibleWithReference(n[O],o,a,r);var C=H.binarySearchCustom(e.byStart,function(pt){return pt<_?-1:pt<=x?0:1},"data","start");if(this._traceVisible(C,e.byStart,o,a,function(pt){return pt.data.start<_||pt.data.start>x}),this.checkRangedItems==1){this.checkRangedItems=!1;for(var Y=0;Y<e.byEnd.length;Y++)this._checkIfVisibleWithReference(e.byEnd[Y],o,a,r)}else{var j=H.binarySearchCustom(e.byEnd,function(pt){var bt=pt.start;return pt.end<_?-1:bt<=x?0:1},"data");this._traceVisible(j,e.byEnd,o,a,function(pt){return pt.data.end<_||pt.data.start>x})}for(var G={},X=0,q=0;q<o.length;q++){var tt=o[q];tt.displayed||(G[q]=tt.redraw(!0),X=G[q].length)}if(X>0)for(var ot=function(pt){Ot(H).call(H,G,function(bt){bt[pt]()})},wt=0;wt<X;wt++)ot(wt);for(var It=0;It<o.length;It++)o[It].repositionX();return o}},{key:"_traceVisible",value:function(e,n,r,o,a){if(e!=-1){for(var s=e;s>=0;s--){var d=n[s];if(a(d))break;d.isCluster&&!d.hasItems()||d.cluster||o[d.id]===void 0&&(o[d.id]=!0,r.push(d))}for(var p=e+1;p<n.length;p++){var _=n[p];if(a(_))break;_.isCluster&&!_.hasItems()||_.cluster||o[_.id]===void 0&&(o[_.id]=!0,r.push(_))}}}},{key:"_checkIfVisible",value:function(e,n,r){e.isVisible(r)?(e.displayed||e.show(),e.repositionX(),n.push(e)):e.displayed&&e.hide()}},{key:"_checkIfVisibleWithReference",value:function(e,n,r,o){e.isVisible(o)?r[e.id]===void 0&&(r[e.id]=!0,n.push(e)):e.displayed&&e.hide()}},{key:"_updateClustersInRange",value:function(e,n,r){var o=[],a={};if(n.length>0)for(var s=0;s<n.length;s++)this._checkIfVisibleWithReference(n[s],o,a,r);for(var d=0;d<e.byStart.length;d++)this._checkIfVisibleWithReference(e.byStart[d],o,a,r);for(var p=0;p<e.byEnd.length;p++)this._checkIfVisibleWithReference(e.byEnd[p],o,a,r);for(var _={},x=0,O=0;O<o.length;O++){var C=o[O];C.displayed||(_[O]=C.redraw(!0),x=_[O].length)}if(x>0)for(var Y=0;Y<x;Y++)Ot(H).call(H,_,function(G){G[Y]()});for(var j=0;j<o.length;j++)o[j].repositionX();return o}},{key:"changeSubgroup",value:function(e,n,r){this._removeFromSubgroup(e,n),this._addToSubgroup(e,r),this.orderSubgroups()}},{key:"dispose",value:function(){var e;for(this.hide();e=this._disposeCallbacks.pop();)e()}}]),t}();function wP(t){var e=function(){if(typeof Reflect=="undefined"||!At||At.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(At(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var n,r=Be(t);if(e){var o=Be(this).constructor;n=At(r,arguments,o)}else n=r.apply(this,arguments);return ui(this,n)}}var XD=function(t){si(n,t);var e=wP(n);function n(r,o,a){var s;return Se(this,n),(s=e.call(this,r,o,a)).width=0,s.height=0,s.top=0,s.left=0,s}return Ce(n,[{key:"redraw",value:function(r,o,a){this.visibleItems=this._updateItemsInRange(this.orderedItems,this.visibleItems,r),this.width=this.dom.background.offsetWidth,this.dom.background.style.height="0";for(var s=0,d=this.visibleItems.length;s<d;s++)this.visibleItems[s].repositionY(o);return!1}},{key:"show",value:function(){this.dom.background.parentNode||this.itemSet.dom.background.appendChild(this.dom.background)}}]),n}(ET);function qD(t,e){var n=Oo!==void 0&&Qr(t)||t["@@iterator"];if(!n){if(ce(t)||(n=function(p,_){var x;if(p){if(typeof p=="string")return XC(p,_);var O=vr(x=Object.prototype.toString.call(p)).call(x,8,-1);if(O==="Object"&&p.constructor&&(O=p.constructor.name),O==="Map"||O==="Set")return au(p);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return XC(p,_)}}(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(p){throw p},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,s=!0,d=!1;return{s:function(){n=n.call(t)},n:function(){var p=n.next();return s=p.done,p},e:function(p){d=!0,a=p},f:function(){try{s||n.return==null||n.return()}finally{if(d)throw a}}}}function XC(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Dp=function(){function t(e,n,r){var o,a=this;Se(this,t),this.id=null,this.parent=null,this.data=e,this.dom=null,this.conversion=n||{},this.defaultOptions={locales:ft,locale:"en"},this.options=H.extend({},this.defaultOptions,r),this.options.locales=H.extend({},ft,this.options.locales);var s=this.defaultOptions.locales[this.defaultOptions.locale];Ot(o=Jr(this.options.locales)).call(o,function(d){a.options.locales[d]=H.extend({},s,a.options.locales[d])}),this.selected=!1,this.displayed=!1,this.groupShowing=!0,this.selectable=r&&r.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()}return Ce(t,[{key:"select",value:function(){this.selectable&&(this.selected=!0,this.dirty=!0,this.displayed&&this.redraw())}},{key:"unselect",value:function(){this.selected=!1,this.dirty=!0,this.displayed&&this.redraw()}},{key:"setData",value:function(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()}},{key:"setSelectability",value:function(e){e&&(this.selectable=e.selectable===void 0||!!e.selectable)}},{key:"setParent",value:function(e){this.displayed?(this.hide(),this.parent=e,this.parent&&this.show()):this.parent=e}},{key:"isVisible",value:function(e){return!1}},{key:"show",value:function(){return!1}},{key:"hide",value:function(){return!1}},{key:"redraw",value:function(){}},{key:"repositionX",value:function(){}},{key:"repositionY",value:function(){}},{key:"_repaintDragCenter",value:function(){if(this.selected&&this.editable.updateTime&&!this.dom.dragCenter){var e,n,r=this,o=document.createElement("div");o.className="vis-drag-center",o.dragCenterItem=this,this.hammerDragCenter=new ze(o),this.hammerDragCenter.on("tap",function(a){r.parent.itemSet.body.emitter.emit("click",{event:a,item:r.id})}),this.hammerDragCenter.on("doubletap",function(a){a.stopPropagation(),r.parent.itemSet._onUpdateItem(r),r.parent.itemSet.body.emitter.emit("doubleClick",{event:a,item:r.id})}),this.hammerDragCenter.on("panstart",function(a){a.stopPropagation(),r.parent.itemSet._onDragStart(a)}),this.hammerDragCenter.on("panmove",at(e=r.parent.itemSet._onDrag).call(e,r.parent.itemSet)),this.hammerDragCenter.on("panend",at(n=r.parent.itemSet._onDragEnd).call(n,r.parent.itemSet)),this.hammerDragCenter.get("press").set({time:1e4}),this.dom.box?this.dom.dragLeft?this.dom.box.insertBefore(o,this.dom.dragLeft):this.dom.box.appendChild(o):this.dom.point&&this.dom.point.appendChild(o),this.dom.dragCenter=o}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))}},{key:"_repaintDeleteButton",value:function(e){var n=(this.options.editable.overrideItems||this.editable==null)&&this.options.editable.remove||!this.options.editable.overrideItems&&this.editable!=null&&this.editable.remove;if(this.selected&&n&&!this.dom.deleteButton){var r=this,o=document.createElement("div");this.options.rtl?o.className="vis-delete-rtl":o.className="vis-delete";var 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),o.title=a.deleteSelected,this.hammerDeleteButton=new ze(o).on("tap",function(s){s.stopPropagation(),r.parent.removeFromDataSet(r)}),e.appendChild(o),this.dom.deleteButton=o}else this.selected&&n||!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))}},{key:"_repaintOnItemUpdateTimeTooltip",value:function(e){if(this.options.tooltipOnItemUpdateTime){var n=(this.options.editable.updateTime||this.data.editable===!0)&&this.data.editable!==!1;if(this.selected&&n&&!this.dom.onItemUpdateTimeTooltip){var r=document.createElement("div");r.className="vis-onUpdateTime-tooltip",e.appendChild(r),this.dom.onItemUpdateTimeTooltip=r}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%";var o,a,s=this.parent.itemSet.body.domProps.scrollTop;(this.options.orientation.item=="top"?this.top:this.parent.height-this.top-this.height)+this.parent.top-50<-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")),this.options.tooltipOnItemUpdateTime&&this.options.tooltipOnItemUpdateTime.template?o=at(a=this.options.tooltipOnItemUpdateTime.template).call(a,this)(this.data):(o="start: ".concat(Bn(this.data.start).format("MM/DD/YYYY hh:mm")),this.data.end&&(o+="<br> end: ".concat(Bn(this.data.end).format("MM/DD/YYYY hh:mm")))),this.dom.onItemUpdateTimeTooltip.innerHTML=H.xss(o)}}}},{key:"_getItemData",value:function(){return this.parent.itemSet.itemsData.get(this.id)}},{key:"_updateContents",value:function(e){var n,r,o,a,s,d,p=this._getItemData(),_=(this.dom.box||this.dom.point).getElementsByClassName("vis-item-visible-frame")[0];if(this.options.visibleFrameTemplate?(a=at(s=this.options.visibleFrameTemplate).call(s,this),o=H.xss(a(p,_))):o="",_){if(o instanceof Object&&!(o instanceof Element))a(p,_);else if(this._contentToString(this.itemVisibleFrameContent)!==this._contentToString(o)){if(o instanceof Element)_.innerHTML="",_.appendChild(o);else if(o!=null)_.innerHTML=H.xss(o);else if(this.data.type!="background"||this.data.content!==void 0)throw new Error('Property "content" missing in item '.concat(this.id));this.itemVisibleFrameContent=o}}if(this.options.template?n=(r=at(d=this.options.template).call(d,this))(p,e,this.data):n=this.data.content,n instanceof Object&&!(n instanceof Element))r(p,e);else if(this._contentToString(this.content)!==this._contentToString(n)){if(n instanceof Element)e.innerHTML="",e.appendChild(n);else if(n!=null)e.innerHTML=H.xss(n);else if(this.data.type!="background"||this.data.content!==void 0)throw new Error('Property "content" missing in item '.concat(this.id));this.content=n}}},{key:"_updateDataAttributes",value:function(e){if(this.options.dataAttributes&&this.options.dataAttributes.length>0){var n=[];if(ce(this.options.dataAttributes))n=this.options.dataAttributes;else{if(this.options.dataAttributes!="all")return;n=Jr(this.data)}var r,o=qD(n);try{for(o.s();!(r=o.n()).done;){var a=r.value,s=this.data[a];s!=null?e.setAttribute("data-".concat(a),s):e.removeAttribute("data-".concat(a))}}catch(d){o.e(d)}finally{o.f()}}}},{key:"_updateStyle",value:function(e){this.style&&(H.removeCssText(e,this.style),this.style=null),this.data.style&&(H.addCssText(e,this.data.style),this.style=this.data.style)}},{key:"_contentToString",value:function(e){return typeof e=="string"?e:e&&"outerHTML"in e?e.outerHTML:e}},{key:"_updateEditStatus",value:function(){this.options&&(typeof this.options.editable=="boolean"?this.editable={updateTime:this.options.editable,updateGroup:this.options.editable,remove:this.options.editable}:Jt(this.options.editable)==="object"&&(this.editable={},H.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}:Jt(this.data.editable)==="object"&&(this.editable={},H.selectiveExtend(["updateTime","updateGroup","remove"],this.editable,this.data.editable)))}},{key:"getWidthLeft",value:function(){return 0}},{key:"getWidthRight",value:function(){return 0}},{key:"getTitle",value:function(){var e;return this.options.tooltip&&this.options.tooltip.template?at(e=this.options.tooltip.template).call(e,this)(this._getItemData(),this.data):this.data.title}}]),t}();function _P(t){var e=function(){if(typeof Reflect=="undefined"||!At||At.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(At(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var n,r=Be(t);if(e){var o=Be(this).constructor;n=At(r,arguments,o)}else n=r.apply(this,arguments);return ui(this,n)}}Dp.prototype.stack=!0;var KD=function(t){si(n,t);var e=_P(n);function n(r,o,a){var s;if(Se(this,n),(s=e.call(this,r,o,a)).props={dot:{width:0,height:0},line:{width:0,height:0}},r&&r.start==null)throw new Error('Property "start" missing in item '.concat(r));return s}return Ce(n,[{key:"isVisible",value:function(r){if(this.cluster)return!1;var o,a=this.data.align||this.options.align,s=this.width*r.getMillisecondsPerPixel();return o=a=="right"?this.data.start.getTime()>r.start&&this.data.start.getTime()-s<r.end:a=="left"?this.data.start.getTime()+s>r.start&&this.data.start.getTime()<r.end:this.data.start.getTime()+s/2>r.start&&this.data.start.getTime()-s/2<r.end,o}},{key:"_createDomElement",value:function(){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)}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var 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 o=this.parent.dom.background;if(!o)throw new Error("Cannot redraw item: parent has no background container element");o.appendChild(this.dom.line)}if(!this.dom.dot.parentNode){var a=this.parent.dom.axis;if(!o)throw new Error("Cannot redraw item: parent has no axis container element");a.appendChild(this.dom.dot)}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.box),this._updateStyle(this.dom.box);var r=this.editable.updateTime||this.editable.updateGroup,o=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+(r?" vis-editable":" vis-readonly");this.dom.box.className="vis-item vis-box".concat(o),this.dom.line.className="vis-item vis-line".concat(o),this.dom.dot.className="vis-item vis-dot".concat(o)}}},{key:"_getDomComponentsSizes",value:function(){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}}}},{key:"_updateDomComponentsSizes",value:function(r){this.options.rtl?this.dom.box.style.right="0px":this.dom.box.style.left="0px",this.props.dot.height=r.dot.height,this.props.dot.width=r.dot.width,this.props.line.width=r.line.width,this.width=r.box.width,this.height=r.box.height,this.options.rtl?this.dom.box.style.right=r.previous.right:this.dom.box.style.left=r.previous.left,this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.box),this._repaintDragCenter(),this._repaintDeleteButton(this.dom.box)}},{key:"redraw",value:function(r){var o,a,s,d,p,_,x=this,O=[at(o=this._createDomElement).call(o,this),at(a=this._appendDomElement).call(a,this),at(s=this._updateDirtyDomComponents).call(s,this),function(){x.dirty&&(p=x._getDomComponentsSizes())},function(){var C;x.dirty&&at(C=x._updateDomComponentsSizes).call(C,x)(p)},at(d=this._repaintDomAdditionals).call(d,this)];return r?O:(Ot(O).call(O,function(C){_=C()}),_)}},{key:"show",value:function(r){if(!this.displayed)return this.redraw(r)}},{key:"hide",value:function(){if(this.displayed){var r=this.dom;r.box.remove?r.box.remove():r.box.parentNode&&r.box.parentNode.removeChild(r.box),r.line.remove?r.line.remove():r.line.parentNode&&r.line.parentNode.removeChild(r.line),r.dot.remove?r.dot.remove():r.dot.parentNode&&r.dot.parentNode.removeChild(r.dot),this.displayed=!1}}},{key:"repositionXY",value:function(){var r=this.options.rtl,o=function(a,s,d){var p;if(s!==void 0||d!==void 0){var _=arguments.length>3&&arguments[3]!==void 0&&arguments[3]?-1*s:s;a.style.transform=d!==void 0?s!==void 0?Ke(p="translate(".concat(_,"px, ")).call(p,d,"px)"):"translateY(".concat(d,"px)"):"translateX(".concat(_,"px)")}};o(this.dom.box,this.boxX,this.boxY,r),o(this.dom.dot,this.dotX,this.dotY,r),o(this.dom.line,this.lineX,this.lineY,r)}},{key:"repositionX",value:function(){var r=this.conversion.toScreen(this.data.start),o=this.data.align===void 0?this.options.align:this.data.align,a=this.props.line.width,s=this.props.dot.width;o=="right"?(this.boxX=r-this.width,this.lineX=r-a,this.dotX=r-a/2-s/2):o=="left"?(this.boxX=r,this.lineX=r,this.dotX=r+a/2-s/2):(this.boxX=r-this.width/2,this.lineX=this.options.rtl?r-a:r-a/2,this.dotX=r-s/2),this.options.rtl?this.right=this.boxX:this.left=this.boxX,this.repositionXY()}},{key:"repositionY",value:function(){var r=this.options.orientation.item,o=this.dom.line.style;if(r=="top"){var a=this.parent.top+this.top+1;this.boxY=this.top||0,o.height="".concat(a,"px"),o.bottom="",o.top="0"}else{var s=this.parent.itemSet.props.height-this.parent.top-this.parent.height+this.top;this.boxY=this.parent.height-this.top-(this.height||0),o.height="".concat(s,"px"),o.top="",o.bottom="0"}this.dotY=-this.props.dot.height/2,this.repositionXY()}},{key:"getWidthLeft",value:function(){return this.width/2}},{key:"getWidthRight",value:function(){return this.width/2}}]),n}(Dp);function JD(t){var e=function(){if(typeof Reflect=="undefined"||!At||At.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(At(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var n,r=Be(t);if(e){var o=Be(this).constructor;n=At(r,arguments,o)}else n=r.apply(this,arguments);return ui(this,n)}}var qC=function(t){si(n,t);var e=JD(n);function n(r,o,a){var s;if(Se(this,n),(s=e.call(this,r,o,a)).props={dot:{top:0,width:0,height:0},content:{height:0,marginLeft:0,marginRight:0}},r&&r.start==null)throw new Error('Property "start" missing in item '.concat(r));return s}return Ce(n,[{key:"isVisible",value:function(r){if(this.cluster)return!1;var o=this.width*r.getMillisecondsPerPixel();return this.data.start.getTime()+o>r.start&&this.data.start<r.end}},{key:"_createDomElement",value:function(){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)}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.point.parentNode){var r=this.parent.dom.foreground;if(!r)throw new Error("Cannot redraw item: parent has no foreground container element");r.appendChild(this.dom.point)}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.point),this._updateStyle(this.dom.point);var r=this.editable.updateTime||this.editable.updateGroup,o=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+(r?" vis-editable":" vis-readonly");this.dom.point.className="vis-item vis-point".concat(o),this.dom.dot.className="vis-item vis-dot".concat(o)}}},{key:"_getDomComponentsSizes",value:function(){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}}}},{key:"_updateDomComponentsSizes",value:function(r){this.props.dot.width=r.dot.width,this.props.dot.height=r.dot.height,this.props.content.height=r.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=r.point.width,this.height=r.point.height,this.dom.dot.style.top="".concat((this.height-this.props.dot.height)/2,"px");var o=this.props.dot.width,a=this.options.rtl?o/2:o/2*-1;this.dom.dot.style.transform="translateX(".concat(a,"px"),this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.point),this._repaintDragCenter(),this._repaintDeleteButton(this.dom.point)}},{key:"redraw",value:function(r){var o,a,s,d,p,_,x=this,O=[at(o=this._createDomElement).call(o,this),at(a=this._appendDomElement).call(a,this),at(s=this._updateDirtyDomComponents).call(s,this),function(){x.dirty&&(p=x._getDomComponentsSizes())},function(){var C;x.dirty&&at(C=x._updateDomComponentsSizes).call(C,x)(p)},at(d=this._repaintDomAdditionals).call(d,this)];return r?O:(Ot(O).call(O,function(C){_=C()}),_)}},{key:"repositionXY",value:function(){var r=this.options.rtl,o=function(a,s,d){var p;if(s!==void 0||d!==void 0){var _=arguments.length>3&&arguments[3]!==void 0&&arguments[3]?-1*s:s;a.style.transform=d!==void 0?s!==void 0?Ke(p="translate(".concat(_,"px, ")).call(p,d,"px)"):"translateY(".concat(d,"px)"):"translateX(".concat(_,"px)")}};o(this.dom.point,this.pointX,this.pointY,r)}},{key:"show",value:function(r){if(!this.displayed)return this.redraw(r)}},{key:"hide",value:function(){this.displayed&&(this.dom.point.parentNode&&this.dom.point.parentNode.removeChild(this.dom.point),this.displayed=!1)}},{key:"repositionX",value:function(){var r=this.conversion.toScreen(this.data.start);this.pointX=r,this.options.rtl?this.right=r-this.props.dot.width:this.left=r-this.props.dot.width,this.repositionXY()}},{key:"repositionY",value:function(){var r=this.options.orientation.item;this.pointY=r=="top"?this.top:this.parent.height-this.top-this.height,this.repositionXY()}},{key:"getWidthLeft",value:function(){return this.props.dot.width}},{key:"getWidthRight",value:function(){return this.props.dot.width}}]),n}(Dp);function SP(t){var e=function(){if(typeof Reflect=="undefined"||!At||At.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(At(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var n,r=Be(t);if(e){var o=Be(this).constructor;n=At(r,arguments,o)}else n=r.apply(this,arguments);return ui(this,n)}}var td=function(t){si(n,t);var e=SP(n);function n(r,o,a){var s;if(Se(this,n),(s=e.call(this,r,o,a)).props={content:{width:0}},s.overflow=!1,r){if(r.start==null)throw new Error('Property "start" missing in item '.concat(r.id));if(r.end==null)throw new Error('Property "end" missing in item '.concat(r.id))}return s}return Ce(n,[{key:"isVisible",value:function(r){return!this.cluster&&this.data.start<r.end&&this.data.end>r.start}},{key:"_createDomElement",value:function(){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)}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var r=this.parent.dom.foreground;if(!r)throw new Error("Cannot redraw item: parent has no foreground container element");r.appendChild(this.dom.box)}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.box),this._updateStyle(this.dom.box);var r=this.editable.updateTime||this.editable.updateGroup,o=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+(r?" vis-editable":" vis-readonly");this.dom.box.className=this.baseClassName+o,this.dom.content.style.maxWidth="none"}}},{key:"_getDomComponentsSizes",value:function(){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}}}},{key:"_updateDomComponentsSizes",value:function(r){this.props.content.width=r.content.width,this.height=r.box.height,this.dom.content.style.maxWidth="",this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.box),this._repaintDeleteButton(this.dom.box),this._repaintDragCenter(),this._repaintDragLeft(),this._repaintDragRight()}},{key:"redraw",value:function(r){var o,a,s,d,p,_,x=this,O=[at(o=this._createDomElement).call(o,this),at(a=this._appendDomElement).call(a,this),at(s=this._updateDirtyDomComponents).call(s,this),function(){var C;x.dirty&&(p=at(C=x._getDomComponentsSizes).call(C,x)())},function(){var C;x.dirty&&at(C=x._updateDomComponentsSizes).call(C,x)(p)},at(d=this._repaintDomAdditionals).call(d,this)];return r?O:(Ot(O).call(O,function(C){_=C()}),_)}},{key:"show",value:function(r){if(!this.displayed)return this.redraw(r)}},{key:"hide",value:function(){if(this.displayed){var r=this.dom.box;r.parentNode&&r.parentNode.removeChild(r),this.displayed=!1}}},{key:"repositionX",value:function(r){var o,a,s=this.parent.width,d=this.conversion.toScreen(this.data.start),p=this.conversion.toScreen(this.data.end),_=this.data.align===void 0?this.options.align:this.data.align;this.data.limitSize===!1||r!==void 0&&r!==!0||(d<-s&&(d=-s),p>2*s&&(p=2*s));var x=Math.max(Math.round(1e3*(p-d))/1e3,1);switch(this.overflow?(this.options.rtl?this.right=d:this.left=d,this.width=x+this.props.content.width,a=this.props.content.width):(this.options.rtl?this.right=d:this.left=d,this.width=x,a=Math.min(p-d,this.props.content.width)),this.options.rtl?this.dom.box.style.transform="translateX(".concat(-1*this.right,"px)"):this.dom.box.style.transform="translateX(".concat(this.left,"px)"),this.dom.box.style.width="".concat(x,"px"),this.whiteSpace&&(this.height=this.dom.box.offsetHeight),_){case"left":this.dom.content.style.transform="translateX(0)";break;case"right":if(this.options.rtl){var O=-1*Math.max(x-a,0);this.dom.content.style.transform="translateX(".concat(O,"px)")}else this.dom.content.style.transform="translateX(".concat(Math.max(x-a,0),"px)");break;case"center":if(this.options.rtl){var C=-1*Math.max((x-a)/2,0);this.dom.content.style.transform="translateX(".concat(C,"px)")}else this.dom.content.style.transform="translateX(".concat(Math.max((x-a)/2,0),"px)");break;default:if(o=this.overflow?p>0?Math.max(-d,0):-a:d<0?-d:0,this.options.rtl){var Y=-1*o;this.dom.content.style.transform="translateX(".concat(Y,"px)")}else this.dom.content.style.transform="translateX(".concat(o,"px)")}}},{key:"repositionY",value:function(){var r=this.options.orientation.item,o=this.dom.box;o.style.top="".concat(r=="top"?this.top:this.parent.height-this.top-this.height,"px")}},{key:"_repaintDragLeft",value:function(){if((this.selected||this.options.itemsAlwaysDraggable.range)&&this.editable.updateTime&&!this.dom.dragLeft){var r=document.createElement("div");r.className="vis-drag-left",r.dragLeftItem=this,this.dom.box.appendChild(r),this.dom.dragLeft=r}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)}},{key:"_repaintDragRight",value:function(){if((this.selected||this.options.itemsAlwaysDraggable.range)&&this.editable.updateTime&&!this.dom.dragRight){var r=document.createElement("div");r.className="vis-drag-right",r.dragRightItem=this,this.dom.box.appendChild(r),this.dom.dragRight=r}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)}}]),n}(Dp);function KC(t){var e=function(){if(typeof Reflect=="undefined"||!At||At.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(At(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var n,r=Be(t);if(e){var o=Be(this).constructor;n=At(r,arguments,o)}else n=r.apply(this,arguments);return ui(this,n)}}td.prototype.baseClassName="vis-item vis-range";var Cu=function(t){si(n,t);var e=KC(n);function n(r,o,a){var s;if(Se(this,n),(s=e.call(this,r,o,a)).props={content:{width:0}},s.overflow=!1,r){if(r.start==null)throw new Error('Property "start" missing in item '.concat(r.id));if(r.end==null)throw new Error('Property "end" missing in item '.concat(r.id))}return s}return Ce(n,[{key:"isVisible",value:function(r){return this.data.start<r.end&&this.data.end>r.start}},{key:"_createDomElement",value:function(){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)}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var r=this.parent.dom.background;if(!r)throw new Error("Cannot redraw item: parent has no background container element");r.appendChild(this.dom.box)}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.content),this._updateStyle(this.dom.box);var r=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"");this.dom.box.className=this.baseClassName+r}}},{key:"_getDomComponentsSizes",value:function(){return this.overflow=window.getComputedStyle(this.dom.content).overflow!=="hidden",{content:{width:this.dom.content.offsetWidth}}}},{key:"_updateDomComponentsSizes",value:function(r){this.props.content.width=r.content.width,this.height=0,this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){}},{key:"redraw",value:function(r){var o,a,s,d,p,_,x=this,O=[at(o=this._createDomElement).call(o,this),at(a=this._appendDomElement).call(a,this),at(s=this._updateDirtyDomComponents).call(s,this),function(){var C;x.dirty&&(p=at(C=x._getDomComponentsSizes).call(C,x)())},function(){var C;x.dirty&&at(C=x._updateDomComponentsSizes).call(C,x)(p)},at(d=this._repaintDomAdditionals).call(d,this)];return r?O:(Ot(O).call(O,function(C){_=C()}),_)}},{key:"repositionY",value:function(r){var o,a=this.options.orientation.item;if(this.data.subgroup!==void 0){var s=this.data.subgroup;this.dom.box.style.height="".concat(this.parent.subgroups[s].height,"px"),this.dom.box.style.top="".concat(a=="top"?this.parent.top+this.parent.subgroups[s].top:this.parent.top+this.parent.height-this.parent.subgroups[s].top-this.parent.subgroups[s].height,"px"),this.dom.box.style.bottom=""}else this.parent instanceof XD?(o=Math.max(this.parent.height,this.parent.itemSet.body.domProps.center.height,this.parent.itemSet.body.domProps.centerContainer.height),this.dom.box.style.bottom=a=="bottom"?"0":"",this.dom.box.style.top=a=="top"?"0":""):(o=this.parent.height,this.dom.box.style.top="".concat(this.parent.top,"px"),this.dom.box.style.bottom="");this.dom.box.style.height="".concat(o,"px")}}]),n}(Dp);Cu.prototype.baseClassName="vis-item vis-background",Cu.prototype.stack=!1,Cu.prototype.show=td.prototype.show,Cu.prototype.hide=td.prototype.hide,Cu.prototype.repositionX=td.prototype.repositionX;var ZD=function(){function t(e,n){Se(this,t),this.container=e,this.overflowMethod=n||"cap",this.x=0,this.y=0,this.padding=5,this.hidden=!1,this.frame=document.createElement("div"),this.frame.className="vis-tooltip",this.container.appendChild(this.frame)}return Ce(t,[{key:"setPosition",value:function(e,n){this.x=Oi(e),this.y=Oi(n)}},{key:"setText",value:function(e){e instanceof Element?(this.frame.innerHTML="",this.frame.appendChild(e)):this.frame.innerHTML=H.xss(e)}},{key:"show",value:function(e){if(e===void 0&&(e=!0),e===!0){var n=this.frame.clientHeight,r=this.frame.clientWidth,o=this.frame.parentNode.clientHeight,a=this.frame.parentNode.clientWidth,s=0,d=0;if(this.overflowMethod=="flip"||this.overflowMethod=="none"){var p=!1,_=!0;this.overflowMethod=="flip"&&(this.y-n<this.padding&&(_=!1),this.x+r>a-this.padding&&(p=!0)),s=p?this.x-r:this.x,d=_?this.y-n:this.y}else(d=this.y-n)+n+this.padding>o&&(d=o-n-this.padding),d<this.padding&&(d=this.padding),(s=this.x)+r+this.padding>a&&(s=a-r-this.padding),s<this.padding&&(s=this.padding);this.frame.style.left=s+"px",this.frame.style.top=d+"px",this.frame.style.visibility="visible",this.hidden=!1}else this.hide()}},{key:"hide",value:function(){this.hidden=!0,this.frame.style.left="0",this.frame.style.top="0",this.frame.style.visibility="hidden"}},{key:"destroy",value:function(){this.frame.parentNode.removeChild(this.frame)}}]),t}(),DT={},CT={get exports(){return DT},set exports(t){DT=t}},JC=qo.every;Bt({target:"Array",proto:!0,forced:!ou("every")},{every:function(t){return JC(this,t,arguments.length>1?arguments[1]:void 0)}});var kP=Pr("Array").every,QD=Le,TP=kP,tC=Array.prototype,jg=function(t){var e=t.every;return t===tC||QD(tC,t)&&e===tC.every?TP:e},eC=jg;(function(t){t.exports=eC})(CT);var ZC=nt(DT);function IT(t,e){var n=Oo!==void 0&&Qr(t)||t["@@iterator"];if(!n){if(ce(t)||(n=function(p,_){var x;if(p){if(typeof p=="string")return PT(p,_);var O=vr(x=Object.prototype.toString.call(p)).call(x,8,-1);if(O==="Object"&&p.constructor&&(O=p.constructor.name),O==="Map"||O==="Set")return au(p);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return PT(p,_)}}(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(p){throw p},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,s=!0,d=!1;return{s:function(){n=n.call(t)},n:function(){var p=n.next();return s=p.done,p},e:function(p){d=!0,a=p},f:function(){try{s||n.return==null||n.return()}finally{if(d)throw a}}}}function PT(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function rC(t){var e=function(){if(typeof Reflect=="undefined"||!At||At.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(At(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var n,r=Be(t);if(e){var o=Be(this).constructor;n=At(r,arguments,o)}else n=r.apply(this,arguments);return ui(this,n)}}var nC=function(t){si(n,t);var e=rC(n);function n(r,o,a){var s;Se(this,n);var d=zn({},{fitOnDoubleClick:!0},a,{editable:!1});if((s=e.call(this,r,o,d)).props={content:{width:0,height:0}},!r||r.uiItems==null)throw new Error('Property "uiItems" missing in item '+r.id);return s.id=Wh(),s.group=r.group,s._setupRange(),s.emitter=s.data.eventEmitter,s.range=s.data.range,s.attached=!1,s.isCluster=!0,s.data.isCluster=!0,s}return Ce(n,[{key:"hasItems",value:function(){return this.data.uiItems&&this.data.uiItems.length&&this.attached}},{key:"setUiItems",value:function(r){this.detach(),this.data.uiItems=r,this._setupRange(),this.attach()}},{key:"isVisible",value:function(r){var o=this.data.end?this.data.end-this.data.start:0,a=this.width*r.getMillisecondsPerPixel(),s=Math.max(this.data.start.getTime()+o,this.data.start.getTime()+a);return this.data.start<r.end&&s>r.start&&this.hasItems()}},{key:"getData",value:function(){return{isCluster:!0,id:this.id,items:this.data.items||[],data:this.data}}},{key:"redraw",value:function(r){var o,a,s,d,p,_,x,O,C=[at(o=this._createDomElement).call(o,this),at(a=this._appendDomElement).call(a,this),at(s=this._updateDirtyDomComponents).call(s,this),at(d=function(){this.dirty&&(x=this._getDomComponentsSizes())}).call(d,this),at(p=function(){var Y;this.dirty&&at(Y=this._updateDomComponentsSizes).call(Y,this)(x)}).call(p,this),at(_=this._repaintDomAdditionals).call(_,this)];return r?C:(Ot(C).call(C,function(Y){O=Y()}),O)}},{key:"show",value:function(){this.displayed||this.redraw()}},{key:"hide",value:function(){if(this.displayed){var r=this.dom;r.box.parentNode&&r.box.parentNode.removeChild(r.box),this.options.showStipes&&(r.line.parentNode&&r.line.parentNode.removeChild(r.line),r.dot.parentNode&&r.dot.parentNode.removeChild(r.dot)),this.displayed=!1}}},{key:"repositionX",value:function(){var r=this.conversion.toScreen(this.data.start),o=this.data.end?this.conversion.toScreen(this.data.end):0;if(o)this.repositionXWithRanges(r,o);else{var a=this.data.align===void 0?this.options.align:this.data.align;this.repositionXWithoutRanges(r,a)}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(r,o))}},{key:"repositionStype",value:function(r,o){this.dom.line.style.display="block",this.dom.dot.style.display="block";var a=this.dom.line.offsetWidth,s=this.dom.dot.offsetWidth;if(o){var d=a+r+(o-r)/2,p=d-s/2,_=this.options.rtl?-1*d:d,x=this.options.rtl?-1*p:p;this.dom.line.style.transform="translateX(".concat(_,"px)"),this.dom.dot.style.transform="translateX(".concat(x,"px)")}else{var O=this.options.rtl?-1*r:r,C=this.options.rtl?-1*(r-s/2):r-s/2;this.dom.line.style.transform="translateX(".concat(O,"px)"),this.dom.dot.style.transform="translateX(".concat(C,"px)")}}},{key:"repositionXWithoutRanges",value:function(r,o){o=="right"?this.options.rtl?(this.right=r-this.width,this.dom.box.style.right=this.right+"px"):(this.left=r-this.width,this.dom.box.style.left=this.left+"px"):o=="left"?this.options.rtl?(this.right=r,this.dom.box.style.right=this.right+"px"):(this.left=r,this.dom.box.style.left=this.left+"px"):this.options.rtl?(this.right=r-this.width/2,this.dom.box.style.right=this.right+"px"):(this.left=r-this.width/2,this.dom.box.style.left=this.left+"px")}},{key:"repositionXWithRanges",value:function(r,o){var a=Math.round(Math.max(o-r+.5,1));this.options.rtl?this.right=r:this.left=r,this.width=Math.max(a,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=a+"px"}},{key:"repositionY",value:function(){var r=this.options.orientation.item,o=this.dom.box;if(o.style.top=r=="top"?(this.top||0)+"px":(this.parent.height-this.top-this.height||0)+"px",this.options.showStipes){if(r=="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 a=this.parent.itemSet.props.height,s=a-this.parent.top-this.parent.height+this.top;this.dom.line.style.top=a-s+"px",this.dom.line.style.bottom="0"}this.dom.dot.style.top=-this.dom.dot.offsetHeight/2+"px"}}},{key:"getWidthLeft",value:function(){return this.width/2}},{key:"getWidthRight",value:function(){return this.width/2}},{key:"move",value:function(){this.repositionX(),this.repositionY()}},{key:"attach",value:function(){var r,o,a=IT(this.data.uiItems);try{for(a.s();!(o=a.n()).done;)o.value.cluster=this}catch(s){a.e(s)}finally{a.f()}this.data.items=Br(r=this.data.uiItems).call(r,function(s){return s.data}),this.attached=!0,this.dirty=!0}},{key:"detach",value:function(){var r=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(this.hasItems()){var o,a=IT(this.data.uiItems);try{for(a.s();!(o=a.n()).done;)delete o.value.cluster}catch(s){a.e(s)}finally{a.f()}this.attached=!1,r&&this.group&&(this.group.remove(this),this.group=null),this.data.items=[],this.dirty=!0}}},{key:"_onDoubleClick",value:function(){this._fit()}},{key:"_setupRange",value:function(){var r,o,a,s=Br(r=this.data.uiItems).call(r,function(_){return{start:_.data.start.valueOf(),end:_.data.end?_.data.end.valueOf():_.data.start.valueOf()}});this.data.min=Math.min.apply(Math,Zi(Br(s).call(s,function(_){return Math.min(_.start,_.end||_.start)}))),this.data.max=Math.max.apply(Math,Zi(Br(s).call(s,function(_){return Math.max(_.start,_.end||_.start)})));var d=Br(o=this.data.uiItems).call(o,function(_){return _.center}),p=oS(d).call(d,function(_,x){return _+x},0)/this.data.uiItems.length;Me(a=this.data.uiItems).call(a,function(_){return _.data.end})?(this.data.start=new Date(this.data.min),this.data.end=new Date(this.data.max)):(this.data.start=new Date(p),this.data.end=null)}},{key:"_getUiItems",value:function(){var r,o=this;return this.data.uiItems&&this.data.uiItems.length?ve(r=this.data.uiItems).call(r,function(a){return a.cluster===o}):[]}},{key:"_createDomElement",value:function(){if(!this.dom){var r;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&&(this.dom.box.ondblclick=at(r=n.prototype._onDoubleClick).call(r,this)),this.dom.box["vis-item"]=this,this.dirty=!0}}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var r=this.parent.dom.foreground;if(!r)throw new Error("Cannot redraw item: parent has no foreground container element");r.appendChild(this.dom.box)}var o=this.parent.dom.background;if(this.options.showStipes){if(!this.dom.line.parentNode){if(!o)throw new Error("Cannot redraw item: parent has no background container element");o.appendChild(this.dom.line)}if(!this.dom.dot.parentNode){var a=this.parent.dom.axis;if(!o)throw new Error("Cannot redraw item: parent has no axis container element");a.appendChild(this.dom.dot)}}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.box),this._updateStyle(this.dom.box);var r=this.baseClassName+" "+(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+" vis-readonly";this.dom.box.className="vis-item "+r,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")}}},{key:"_getDomComponentsSizes",value:function(){var r={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&&(r.dot={height:this.dom.dot.offsetHeight,width:this.dom.dot.offsetWidth},r.line={width:this.dom.line.offsetWidth}),r}},{key:"_updateDomComponentsSizes",value:function(r){this.options.rtl?this.dom.box.style.right="0px":this.dom.box.style.left="0px",this.data.end?this.minWidth=r.box.width:this.width=r.box.width,this.height=r.box.height,this.options.rtl?this.dom.box.style.right=r.previous.right:this.dom.box.style.left=r.previous.left,this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.box)}},{key:"_isStipeVisible",value:function(){return this.minWidth>=this.width||!this.data.end}},{key:"_getFitRange",value:function(){var r=.05*(this.data.max-this.data.min)/2;return{fitStart:this.data.min-r,fitEnd:this.data.max+r}}},{key:"_fit",value:function(){if(this.emitter){var r=this._getFitRange(),o=r.fitStart,a=r.fitEnd,s={start:new Date(o),end:new Date(a),animation:!0};this.emitter.emit("fit",s)}}},{key:"_getItemData",value:function(){return this.data}}]),n}(Dp);function xP(t,e){var n=Oo!==void 0&&Qr(t)||t["@@iterator"];if(!n){if(ce(t)||(n=function(p,_){var x;if(p){if(typeof p=="string")return iC(p,_);var O=vr(x=Object.prototype.toString.call(p)).call(x,8,-1);if(O==="Object"&&p.constructor&&(O=p.constructor.name),O==="Map"||O==="Set")return au(p);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return iC(p,_)}}(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(p){throw p},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,s=!0,d=!1;return{s:function(){n=n.call(t)},n:function(){var p=n.next();return s=p.done,p},e:function(p){d=!0,a=p},f:function(){try{s||n.return==null||n.return()}finally{if(d)throw a}}}}function iC(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}nC.prototype.baseClassName="vis-item vis-range vis-cluster";var OP="__ungrouped__",QC=function(){function t(e){Se(this,t),this.itemSet=e,this.groups={},this.cache={},this.cache[-1]=[]}return Ce(t,[{key:"createClusterItem",value:function(e,n,r){return new nC(e,n,r)}},{key:"setItems",value:function(e,n){this.items=e||[],this.dataChanged=!0,this.applyOnChangedLevel=!1,n&&n.applyOnChangedLevel&&(this.applyOnChangedLevel=n.applyOnChangedLevel)}},{key:"updateData",value:function(){this.dataChanged=!0,this.applyOnChangedLevel=!1}},{key:"getClusters",value:function(e,n,r){var o=typeof r=="boolean"?{}:r,a=o.maxItems,s=o.clusterCriteria;s||(s=function(){return!0}),a=a||1;var d=-1,p=0;if(n>0){if(n>=1)return[];d=Math.abs(Math.round(Math.log(100/n)/Math.log(2))),p=Math.abs(Math.pow(2,d))}if(this.dataChanged){var _=d!=this.cacheLevel;(!this.applyOnChangedLevel||_)&&(this._dropLevelsCache(),this._filterData())}this.cacheLevel=d;var x=this.cache[d];if(!x){for(var O in x=[],this.groups)if(this.groups.hasOwnProperty(O))for(var C=this.groups[O],Y=C.length,j=0;j<Y;){for(var G=C[j],X=1,q=j-1;q>=0&&G.center-C[q].center<p/2;)!C[q].cluster&&s(G.data,C[q].data)&&X++,q--;for(var tt=j+1;tt<C.length&&C[tt].center-G.center<p/2;)s(G.data,C[tt].data)&&X++,tt++;for(var ot=x.length-1;ot>=0&&G.center-x[ot].center<p;)G.group==x[ot].group&&s(G.data,x[ot].data)&&X++,ot--;if(X>a){for(var wt=X-a+1,It=[],pt=j;It.length<wt&&pt<C.length;)s(C[j].data,C[pt].data)&&It.push(C[pt]),pt++;var bt=this.itemSet.getGroupId(G.data),ut=this.itemSet.groups[bt]||this.itemSet.groups[OP],Lt=this._getClusterForItems(It,ut,e,r);x.push(Lt),j+=wt}else delete G.cluster,j+=1}this.cache[d]=x}return x}},{key:"_filterData",value:function(){var e={};this.groups=e;for(var n=0,r=fn(this.items);n<r.length;n++){var o=r[n],a=o.parent?o.parent.groupId:"",s=e[a];s||(s=[],e[a]=s),s.push(o),o.data.start&&(o.data.end?o.center=(o.data.start.valueOf()+o.data.end.valueOf())/2:o.center=o.data.start.valueOf())}for(var d in e){var p;e.hasOwnProperty(d)&&Mr(p=e[d]).call(p,function(_,x){return _.center-x.center})}this.dataChanged=!1}},{key:"_getClusterForItems",value:function(e,n,r,o){var a,s,d=Br(a=r||[]).call(a,function(q){var tt;return{cluster:q,itemsIds:new a_(Br(tt=q.data.uiItems).call(tt,function(ot){return ot.id}))}});if(d.length){var p,_=xP(d);try{var x=function(){var q=p.value;if(q.itemsIds.size===e.length&&ZC(e).call(e,function(tt){return q.itemsIds.has(tt.id)}))return s=q.cluster,"break"};for(_.s();!(p=_.n()).done&&x()!=="break";);}catch(q){_.e(q)}finally{_.f()}}if(s)return s.setUiItems(e),s.group!==n&&(s.group&&s.group.remove(s),n&&(n.add(s),s.group=n)),s;var O=o.titleTemplate||"",C={toScreen:this.itemSet.body.util.toScreen,toTime:this.itemSet.body.util.toTime},Y=O.replace(/{count}/,e.length),j='<div title="'+Y+'">'+e.length+"</div>",G=zn({},o,this.itemSet.options),X={content:j,title:Y,group:n,uiItems:e,eventEmitter:this.itemSet.body.emitter,range:this.itemSet.body.range};return s=this.createClusterItem(X,C,G),n&&(n.add(s),s.group=n),s.attach(),s}},{key:"_dropLevelsCache",value:function(){this.cache={},this.cacheLevel=-1,this.cache[this.cacheLevel]=[]}}]),t}();function ed(t,e){var n=Oo!==void 0&&Qr(t)||t["@@iterator"];if(!n){if(ce(t)||(n=function(p,_){var x;if(p){if(typeof p=="string")return tI(p,_);var O=vr(x=Object.prototype.toString.call(p)).call(x,8,-1);if(O==="Object"&&p.constructor&&(O=p.constructor.name),O==="Map"||O==="Set")return au(p);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return tI(p,_)}}(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(p){throw p},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,s=!0,d=!1;return{s:function(){n=n.call(t)},n:function(){var p=n.next();return s=p.done,p},e:function(p){d=!0,a=p},f:function(){try{s||n.return==null||n.return()}finally{if(d)throw a}}}}function tI(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function oC(t){var e=function(){if(typeof Reflect=="undefined"||!At||At.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(At(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var n,r=Be(t);if(e){var o=Be(this).constructor;n=At(r,arguments,o)}else n=r.apply(this,arguments);return ui(this,n)}}var Cp="__ungrouped__",ds="__background__",Lg=function(t){si(n,t);var e=oC(n);function n(r,o){var a;Se(this,n),(a=e.call(this)).body=r,a.defaultOptions={type:null,orientation:{item:"bottom"},align:"auto",stack:!0,stackSubgroups:!0,groupOrderSwap:function(d,p,_){var x=p.order;p.order=d.order,d.order=x},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:Ou.snap,onDropObjectOnItem:function(d,p,_){_(p)},onAdd:function(d,p){p(d)},onUpdate:function(d,p){p(d)},onMove:function(d,p){p(d)},onRemove:function(d,p){p(d)},onMoving:function(d,p){p(d)},onAddGroup:function(d,p){p(d)},onMoveGroup:function(d,p){p(d)},onRemoveGroup:function(d,p){p(d)},margin:{item:{horizontal:10,vertical:10},axis:20},showTooltips:!0,tooltip:{followMouse:!1,overflowMethod:"flip",delay:500},tooltipOnItemUpdateTime:!1},a.options=H.extend({},a.defaultOptions),a.options.rtl=o.rtl,a.options.onTimeout=o.onTimeout,a.conversion={toScreen:r.util.toScreen,toTime:r.util.toTime},a.dom={},a.props={},a.hammer=null;var s=me(a);return a.itemsData=null,a.groupsData=null,a.itemsSettingTime=null,a.initialItemSetDrawn=!1,a.userContinueNotBail=null,a.sequentialSelection=!1,a.itemListeners={add:function(d,p,_){s._onAdd(p.items),s.options.cluster&&s.clusterGenerator.setItems(s.items,{applyOnChangedLevel:!1}),s.redraw()},update:function(d,p,_){s._onUpdate(p.items),s.options.cluster&&s.clusterGenerator.setItems(s.items,{applyOnChangedLevel:!1}),s.redraw()},remove:function(d,p,_){s._onRemove(p.items),s.options.cluster&&s.clusterGenerator.setItems(s.items,{applyOnChangedLevel:!1}),s.redraw()}},a.groupListeners={add:function(d,p,_){if(s._onAddGroups(p.items),s.groupsData&&s.groupsData.length>0){var x,O=s.groupsData.getDataSet();Ot(x=O.get()).call(x,function(C){if(C.nestedGroups){var Y;C.showNested!=0&&(C.showNested=!0);var j=[];Ot(Y=C.nestedGroups).call(Y,function(G){var X=O.get(G);X&&(X.nestedInGroup=C.id,C.showNested==0&&(X.visible=!1),j=Ke(j).call(j,X))}),O.update(j,_)}})}},update:function(d,p,_){s._onUpdateGroups(p.items)},remove:function(d,p,_){s._onRemoveGroups(p.items)}},a.items={},a.groups={},a.groupIds=[],a.selection=[],a.popup=null,a.popupTimer=null,a.touchParams={},a.groupTouchParams={group:null,isDragging:!1},a._create(),a.setOptions(o),a.clusters=[],a}return Ce(n,[{key:"_create",value:function(){var r,o,a,s,d,p,_,x,O,C,Y,j,G,X,q,tt=this,ot=document.createElement("div");ot.className="vis-itemset",ot["vis-itemset"]=this,this.dom.frame=ot;var wt=document.createElement("div");wt.className="vis-background",ot.appendChild(wt),this.dom.background=wt;var It=document.createElement("div");It.className="vis-foreground",ot.appendChild(It),this.dom.foreground=It;var pt=document.createElement("div");pt.className="vis-axis",this.dom.axis=pt;var bt=document.createElement("div");bt.className="vis-labelset",this.dom.labelSet=bt,this._updateUngrouped();var ut=new XD(ds,null,this);ut.show(),this.groups[ds]=ut,this.hammer=new ze(this.body.dom.centerContainer),this.hammer.on("hammer.input",function(Lt){Lt.isFirst&&tt._onTouch(Lt)}),this.hammer.on("panstart",at(r=this._onDragStart).call(r,this)),this.hammer.on("panmove",at(o=this._onDrag).call(o,this)),this.hammer.on("panend",at(a=this._onDragEnd).call(a,this)),this.hammer.get("pan").set({threshold:5,direction:ze.ALL}),this.hammer.get("press").set({time:1e4}),this.hammer.on("tap",at(s=this._onSelectItem).call(s,this)),this.hammer.on("press",at(d=this._onMultiSelectItem).call(d,this)),this.hammer.get("press").set({time:1e4}),this.hammer.on("doubletap",at(p=this._onAddItem).call(p,this)),this.options.rtl?this.groupHammer=new ze(this.body.dom.rightContainer):this.groupHammer=new ze(this.body.dom.leftContainer),this.groupHammer.on("tap",at(_=this._onGroupClick).call(_,this)),this.groupHammer.on("panstart",at(x=this._onGroupDragStart).call(x,this)),this.groupHammer.on("panmove",at(O=this._onGroupDrag).call(O,this)),this.groupHammer.on("panend",at(C=this._onGroupDragEnd).call(C,this)),this.groupHammer.get("pan").set({threshold:5,direction:ze.DIRECTION_VERTICAL}),this.body.dom.centerContainer.addEventListener("mouseover",at(Y=this._onMouseOver).call(Y,this)),this.body.dom.centerContainer.addEventListener("mouseout",at(j=this._onMouseOut).call(j,this)),this.body.dom.centerContainer.addEventListener("mousemove",at(G=this._onMouseMove).call(G,this)),this.body.dom.centerContainer.addEventListener("contextmenu",at(X=this._onDragEnd).call(X,this)),this.body.dom.centerContainer.addEventListener("mousewheel",at(q=this._onMouseWheel).call(q,this)),this.show()}},{key:"setOptions",value:function(r){var o=this;if(r){var a,s;H.selectiveExtend(["type","rtl","align","order","stack","stackSubgroups","selectable","multiselect","sequentialSelection","multiselectPerGroup","longSelectPressTime","groupOrder","dataAttributes","template","groupTemplate","visibleFrameTemplate","hide","snap","groupOrderSwap","showTooltips","tooltip","tooltipOnItemUpdateTime","groupHeightMode","onTimeout"],this.options,r),"itemsAlwaysDraggable"in r&&(typeof r.itemsAlwaysDraggable=="boolean"?(this.options.itemsAlwaysDraggable.item=r.itemsAlwaysDraggable,this.options.itemsAlwaysDraggable.range=!1):Jt(r.itemsAlwaysDraggable)==="object"&&(H.selectiveExtend(["item","range"],this.options.itemsAlwaysDraggable,r.itemsAlwaysDraggable),this.options.itemsAlwaysDraggable.item||(this.options.itemsAlwaysDraggable.range=!1))),"sequentialSelection"in r&&typeof r.sequentialSelection=="boolean"&&(this.options.sequentialSelection=r.sequentialSelection),"orientation"in r&&(typeof r.orientation=="string"?this.options.orientation.item=r.orientation==="top"?"top":"bottom":Jt(r.orientation)==="object"&&"item"in r.orientation&&(this.options.orientation.item=r.orientation.item)),"margin"in r&&(typeof r.margin=="number"?(this.options.margin.axis=r.margin,this.options.margin.item.horizontal=r.margin,this.options.margin.item.vertical=r.margin):Jt(r.margin)==="object"&&(H.selectiveExtend(["axis"],this.options.margin,r.margin),"item"in r.margin&&(typeof r.margin.item=="number"?(this.options.margin.item.horizontal=r.margin.item,this.options.margin.item.vertical=r.margin.item):Jt(r.margin.item)==="object"&&H.selectiveExtend(["horizontal","vertical"],this.options.margin.item,r.margin.item)))),Ot(a=["locale","locales"]).call(a,function(d){d in r&&(o.options[d]=r[d])}),"editable"in r&&(typeof r.editable=="boolean"?(this.options.editable.updateTime=r.editable,this.options.editable.updateGroup=r.editable,this.options.editable.add=r.editable,this.options.editable.remove=r.editable,this.options.editable.overrideItems=!1):Jt(r.editable)==="object"&&H.selectiveExtend(["updateTime","updateGroup","add","remove","overrideItems"],this.options.editable,r.editable)),"groupEditable"in r&&(typeof r.groupEditable=="boolean"?(this.options.groupEditable.order=r.groupEditable,this.options.groupEditable.add=r.groupEditable,this.options.groupEditable.remove=r.groupEditable):Jt(r.groupEditable)==="object"&&H.selectiveExtend(["order","add","remove"],this.options.groupEditable,r.groupEditable)),Ot(s=["onDropObjectOnItem","onAdd","onUpdate","onRemove","onMove","onMoving","onAddGroup","onMoveGroup","onRemoveGroup"]).call(s,function(d){var p=r[d];if(p){var _;if(typeof p!="function")throw new Error(Ke(_="option ".concat(d," must be a function ")).call(_,d,"(item, callback)"));o.options[d]=p}}),r.cluster?(zn(this.options,{cluster:r.cluster}),this.clusterGenerator||(this.clusterGenerator=new QC(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()}}},{key:"markDirty",value:function(r){this.groupIds=[],r&&(r.refreshItems&&Ot(H).call(H,this.items,function(o){o.dirty=!0,o.displayed&&o.redraw()}),r.restackGroups&&Ot(H).call(H,this.groups,function(o,a){a!==ds&&(o.stackDirty=!0)}))}},{key:"destroy",value:function(){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}},{key:"hide",value:function(){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)}},{key:"show",value:function(){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))}},{key:"setPopupTimer",value:function(r){if(this.clearPopupTimer(),r){var o=this.options.tooltip.delay||typeof this.options.tooltip.delay=="number"?this.options.tooltip.delay:500;this.popupTimer=Yn(function(){r.show()},o)}}},{key:"clearPopupTimer",value:function(){this.popupTimer!=null&&(clearTimeout(this.popupTimer),this.popupTimer=null)}},{key:"setSelection",value:function(r){var o;r==null&&(r=[]),ce(r)||(r=[r]);var a,s=ve(o=this.selection).call(o,function(j){return Ie(r).call(r,j)===-1}),d=ed(s);try{for(d.s();!(a=d.n()).done;){var p=a.value,_=this.getItemById(p);_&&_.unselect()}}catch(j){d.e(j)}finally{d.f()}this.selection=Zi(r);var x,O=ed(r);try{for(O.s();!(x=O.n()).done;){var C=x.value,Y=this.getItemById(C);Y&&Y.select()}}catch(j){O.e(j)}finally{O.f()}}},{key:"getSelection",value:function(){var r;return Ke(r=this.selection).call(r,[])}},{key:"getVisibleItems",value:function(){var r,o,a=this.body.range.getRange();this.options.rtl?(r=this.body.util.toScreen(a.start),o=this.body.util.toScreen(a.end)):(o=this.body.util.toScreen(a.start),r=this.body.util.toScreen(a.end));var s=[];for(var d in this.groups)if(this.groups.hasOwnProperty(d)){var p,_=this.groups[d],x=ed(_.isVisible?_.visibleItems:[]);try{for(x.s();!(p=x.n()).done;){var O=p.value;this.options.rtl?O.right<o&&O.right+O.width>r&&s.push(O.id):O.left<r&&O.left+O.width>o&&s.push(O.id)}}catch(C){x.e(C)}finally{x.f()}}return s}},{key:"getItemsAtCurrentTime",value:function(r){var o,a;this.options.rtl?(o=this.body.util.toScreen(r),a=this.body.util.toScreen(r)):(a=this.body.util.toScreen(r),o=this.body.util.toScreen(r));var s=[];for(var d in this.groups)if(this.groups.hasOwnProperty(d)){var p,_=this.groups[d],x=ed(_.isVisible?_.visibleItems:[]);try{for(x.s();!(p=x.n()).done;){var O=p.value;this.options.rtl?O.right<a&&O.right+O.width>o&&s.push(O.id):O.left<o&&O.left+O.width>a&&s.push(O.id)}}catch(C){x.e(C)}finally{x.f()}}return s}},{key:"getVisibleGroups",value:function(){var r=[];for(var o in this.groups)this.groups.hasOwnProperty(o)&&this.groups[o].isVisible&&r.push(o);return r}},{key:"getItemById",value:function(r){var o;return this.items[r]||ED(o=this.clusters).call(o,function(a){return a.id===r})}},{key:"_deselect",value:function(r){for(var o=this.selection,a=0,s=o.length;a<s;a++)if(o[a]==r){li(o).call(o,a,1);break}}},{key:"redraw",value:function(){var r=this.options.margin,o=this.body.range,a=H.option.asSize,s=this.options,d=s.orientation.item,p=!1,_=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,_.className="vis-itemset",this.options.cluster&&this._clusterItems(),p=this._orderGroups()||p;var x=o.end-o.start,O=x!=this.lastVisibleInterval||this.props.width!=this.props.lastWidth,C=o.start!=this.lastRangeStart,Y=s.stack!=this.lastStack,j=s.stackSubgroups!=this.lastStackSubgroups,G=O||C||Y||j;this.lastVisibleInterval=x,this.lastRangeStart=o.start,this.lastStack=s.stack,this.lastStackSubgroups=s.stackSubgroups,this.props.lastWidth=this.props.width;var X=this._firstGroup(),q={item:r.item,axis:r.axis},tt={item:r.item,axis:r.item.vertical/2},ot=0,wt=r.axis+r.item.vertical;this.groups[ds].redraw(o,tt,G);var It={},pt=0;if(Ot(H).call(H,this.groups,function(re,lr){if(lr!==ds){var dr=re==X?q:tt;It[lr]=re.redraw(o,dr,G,!0),pt=It[lr].length}}),pt>0){for(var bt={},ut=function(re){Ot(H).call(H,It,function(lr,dr){bt[dr]=lr[re]()})},Lt=0;Lt<pt;Lt++)ut(Lt);Ot(H).call(H,this.groups,function(re,lr){if(lr!==ds){var dr=bt[lr];p=dr||p,ot+=re.height}}),ot=Math.max(ot,wt)}return ot=Math.max(ot,wt),_.style.height=a(ot),this.props.width=_.offsetWidth,this.props.height=ot,this.dom.axis.style.top=a(d=="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,p=this._isResized()||p}},{key:"_firstGroup",value:function(){var r=this.options.orientation.item=="top"?0:this.groupIds.length-1,o=this.groupIds[r];return this.groups[o]||this.groups[Cp]||null}},{key:"_updateUngrouped",value:function(){var r,o,a=this.groups[Cp];if(this.groupsData){if(a){for(o in a.dispose(),delete this.groups[Cp],this.items)if(this.items.hasOwnProperty(o)){(r=this.items[o]).parent&&r.parent.remove(r);var s=this.getGroupId(r.data),d=this.groups[s];d&&d.add(r)||r.hide()}}}else if(!a){for(o in a=new ET(null,null,this),this.groups[Cp]=a,this.items)this.items.hasOwnProperty(o)&&(r=this.items[o],a.add(r));a.show()}}},{key:"getLabelSet",value:function(){return this.dom.labelSet}},{key:"setItems",value:function(r){this.itemsSettingTime=new Date;var o,a=this,s=this.itemsData;if(r){if(!ss(r))throw new TypeError("Data must implement the interface of DataSet or DataView");this.itemsData=zh(r)}else this.itemsData=null;if(s&&(Ot(H).call(H,this.itemListeners,function(p,_){s.off(_,p)}),s.dispose(),o=s.getIds(),this._onRemove(o)),this.itemsData){var d=this.id;Ot(H).call(H,this.itemListeners,function(p,_){a.itemsData.on(_,p,d)}),o=this.itemsData.getIds(),this._onAdd(o),this._updateUngrouped()}this.body.emitter.emit("_change",{queue:!0})}},{key:"getItems",value:function(){return this.itemsData!=null?this.itemsData.rawDS:null}},{key:"setGroups",value:function(r){var o,a=this;if(this.groupsData&&(Ot(H).call(H,this.groupListeners,function(_,x){a.groupsData.off(x,_)}),o=this.groupsData.getIds(),this.groupsData=null,this._onRemoveGroups(o)),r){if(!ss(r))throw new TypeError("Data must implement the interface of DataSet or DataView");this.groupsData=r}else this.groupsData=null;if(this.groupsData){var s,d=this.groupsData.getDataSet();Ot(s=d.get()).call(s,function(_){var x;_.nestedGroups&&Ot(x=_.nestedGroups).call(x,function(O){var C=d.get(O);C.nestedInGroup=_.id,_.showNested==0&&(C.visible=!1),d.update(C)})});var p=this.id;Ot(H).call(H,this.groupListeners,function(_,x){a.groupsData.on(x,_,p)}),o=this.groupsData.getIds(),this._onAddGroups(o)}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})}},{key:"getGroups",value:function(){return this.groupsData}},{key:"removeItem",value:function(r){var o=this,a=this.itemsData.get(r);a&&this.options.onRemove(a,function(s){s&&o.itemsData.remove(r)})}},{key:"_getType",value:function(r){return r.type||this.options.type||(r.end?"range":"box")}},{key:"getGroupId",value:function(r){return this._getType(r)=="background"&&r.group==null?ds:this.groupsData?r.group:Cp}},{key:"_onUpdate",value:function(r){var o=this,a=this;Ot(r).call(r,function(s){var d,p=a.itemsData.get(s),_=a.items[s],x=p?a._getType(p):null,O=n.types[x];if(_&&(O&&_ instanceof O?a._updateItem(_,p):(d=_.selected,a._removeItem(_),_=null)),!_&&p){if(!O)throw new TypeError('Unknown item type "'.concat(x,'"'));(_=new O(p,a.conversion,a.options)).id=s,a._addItem(_),d&&(o.selection.push(s),_.select())}}),this._order(),this.options.cluster&&(this.clusterGenerator.setItems(this.items,{applyOnChangedLevel:!1}),this._clusterItems()),this.body.emitter.emit("_change",{queue:!0})}},{key:"_onRemove",value:function(r){var o=0,a=this;Ot(r).call(r,function(s){var d=a.items[s];d&&(o++,a._removeItem(d))}),o&&(this._order(),this.body.emitter.emit("_change",{queue:!0}))}},{key:"_order",value:function(){Ot(H).call(H,this.groups,function(r){r.order()})}},{key:"_onUpdateGroups",value:function(r){this._onAddGroups(r)}},{key:"_onAddGroups",value:function(r){var o=this;Ot(r).call(r,function(a){var s=o.groupsData.get(a),d=o.groups[a];if(d)d.setData(s);else{if(a==Cp||a==ds)throw new Error("Illegal group id. ".concat(a," is a reserved id."));var p=Im(o.options);for(var _ in H.extend(p,{height:null}),d=new ET(a,s,o),o.groups[a]=d,o.items)if(o.items.hasOwnProperty(_)){var x=o.items[_];x.data.group==a&&d.add(x)}d.order(),d.show()}}),this.body.emitter.emit("_change",{queue:!0})}},{key:"_onRemoveGroups",value:function(r){var o=this;Ot(r).call(r,function(a){var s=o.groups[a];s&&(s.dispose(),delete o.groups[a])}),this.options.cluster&&(this.clusterGenerator.updateData(),this._clusterItems()),this.markDirty({restackGroups:!!this.options.cluster}),this.body.emitter.emit("_change",{queue:!0})}},{key:"_orderGroups",value:function(){if(this.groupsData){var r=this.groupsData.getIds({order:this.options.groupOrder});r=this._orderNestedGroups(r);var o=!H.equalArray(r,this.groupIds);if(o){var a=this.groups;Ot(r).call(r,function(s){a[s].hide()}),Ot(r).call(r,function(s){a[s].show()}),this.groupIds=r}return o}return!1}},{key:"_orderNestedGroups",value:function(r){var o=this;return function a(s,d){var p=[];return Ot(d).call(d,function(_){if(p.push(_),s.groupsData.get(_).nestedGroups){var x,O=Br(x=s.groupsData.get({filter:function(C){return C.nestedInGroup==_},order:s.options.groupOrder})).call(x,function(C){return C.id});p=Ke(p).call(p,a(s,O))}}),p}(this,ve(r).call(r,function(a){return!o.groupsData.get(a).nestedInGroup}))}},{key:"_addItem",value:function(r){this.items[r.id]=r;var o=this.getGroupId(r.data),a=this.groups[o];a?a&&a.data&&a.data.showNested&&(r.groupShowing=!0):r.groupShowing=!1,a&&a.add(r)}},{key:"_updateItem",value:function(r,o){r.setData(o);var a=this.getGroupId(r.data),s=this.groups[a];s?s&&s.data&&s.data.showNested&&(r.groupShowing=!0):r.groupShowing=!1}},{key:"_removeItem",value:function(r){var o,a;r.hide(),delete this.items[r.id];var s=Ie(o=this.selection).call(o,r.id);s!=-1&&li(a=this.selection).call(a,s,1),r.parent&&r.parent.remove(r),this.popup!=null&&this.popup.hide()}},{key:"_constructByEndArray",value:function(r){for(var o=[],a=0;a<r.length;a++)r[a]instanceof td&&o.push(r[a]);return o}},{key:"_onTouch",value:function(r){this.touchParams.item=this.itemFromTarget(r),this.touchParams.dragLeftItem=r.target.dragLeftItem||!1,this.touchParams.dragRightItem=r.target.dragRightItem||!1,this.touchParams.itemProps=null}},{key:"_getGroupIndex",value:function(r){for(var o=0;o<this.groupIds.length;o++)if(r==this.groupIds[o])return o}},{key:"_onDragStart",value:function(r){var o=this;if(!this.touchParams.itemIsDragging){var a,s=this.touchParams.item||null,d=this;if(s&&(s.selected||this.options.itemsAlwaysDraggable.item)){if(this.options.editable.overrideItems&&!this.options.editable.updateTime&&!this.options.editable.updateGroup||s.editable!=null&&!s.editable.updateTime&&!s.editable.updateGroup&&!this.options.editable.overrideItems)return;var p=this.touchParams.dragLeftItem,_=this.touchParams.dragRightItem;if(this.touchParams.itemIsDragging=!0,this.touchParams.selectedItem=s,p)a={item:p,initialX:r.center.x,dragLeft:!0,data:this._cloneItemData(s.data)},this.touchParams.itemProps=[a];else if(_)a={item:_,initialX:r.center.x,dragRight:!0,data:this._cloneItemData(s.data)},this.touchParams.itemProps=[a];else if(this.options.editable.add&&(r.srcEvent.ctrlKey||r.srcEvent.metaKey))this._onDragStartAddItem(r);else{this.groupIds.length<1&&this.redraw();var x=this._getGroupIndex(s.data.group),O=this.options.itemsAlwaysDraggable.item&&!s.selected?[s.id]:this.getSelection();this.touchParams.itemProps=Br(O).call(O,function(C){var Y=d.items[C],j=d._getGroupIndex(Y.data.group);return{item:Y,initialX:r.center.x,groupOffset:x-j,data:o._cloneItemData(Y.data)}})}r.stopPropagation()}else this.options.editable.add&&(r.srcEvent.ctrlKey||r.srcEvent.metaKey)&&this._onDragStartAddItem(r)}}},{key:"_onDragStartAddItem",value:function(r){var o=this.options.snap||null,a=this.dom.frame.getBoundingClientRect(),s=this.options.rtl?a.right-r.center.x+10:r.center.x-a.left-10,d=this.body.util.toTime(s),p=this.body.util.getScale(),_=this.body.util.getStep(),x=o?o(d,p,_):d,O={type:"range",start:x,end:x,content:"new item"},C=Wh();O[this.itemsData.idProp]=C;var Y=this.groupFromTarget(r);Y&&(O.group=Y.groupId);var j=new td(O,this.conversion,this.options);j.id=C,j.data=this._cloneItemData(O),this._addItem(j),this.touchParams.selectedItem=j;var G={item:j,initialX:r.center.x,data:j.data};this.options.rtl?G.dragLeft=!0:G.dragRight=!0,this.touchParams.itemProps=[G],r.stopPropagation()}},{key:"_onDrag",value:function(r){var o=this;if(this.popup!=null&&this.options.showTooltips&&!this.popup.hidden){var a=this.body.dom.centerContainer,s=a.getBoundingClientRect();this.popup.setPosition(r.center.x-s.left+a.offsetLeft,r.center.y-s.top+a.offsetTop),this.popup.show()}if(this.touchParams.itemProps){var d;r.stopPropagation();var p=this,_=this.options.snap||null,x=this.body.dom.root.offsetLeft,O=this.options.rtl?x+this.body.domProps.right.width:x+this.body.domProps.left.width,C=this.body.util.getScale(),Y=this.body.util.getStep(),j=this.touchParams.selectedItem,G=(this.options.editable.overrideItems||j.editable==null)&&this.options.editable.updateGroup||!this.options.editable.overrideItems&&j.editable!=null&&j.editable.updateGroup,X=null;if(G&&j&&j.data.group!=null){var q=p.groupFromTarget(r);q&&(X=this._getGroupIndex(q.groupId))}Ot(d=this.touchParams.itemProps).call(d,function(tt){var ot,wt,It,pt,bt,ut=p.body.util.toTime(r.center.x-O),Lt=p.body.util.toTime(tt.initialX-O);ot=o.options.rtl?-(ut-Lt):ut-Lt;var re=o._cloneItemData(tt.item.data);if(tt.item.editable==null||tt.item.editable.updateTime||tt.item.editable.updateGroup||p.options.editable.overrideItems){if((o.options.editable.overrideItems||j.editable==null)&&o.options.editable.updateTime||!o.options.editable.overrideItems&&j.editable!=null&&j.editable.updateTime){if(tt.dragLeft)o.options.rtl?re.end!=null&&(It=H.convert(tt.data.end,"Date"),bt=new Date(It.valueOf()+ot),re.end=_?_(bt,C,Y):bt):re.start!=null&&(wt=H.convert(tt.data.start,"Date"),pt=new Date(wt.valueOf()+ot),re.start=_?_(pt,C,Y):pt);else if(tt.dragRight)o.options.rtl?re.start!=null&&(wt=H.convert(tt.data.start,"Date"),pt=new Date(wt.valueOf()+ot),re.start=_?_(pt,C,Y):pt):re.end!=null&&(It=H.convert(tt.data.end,"Date"),bt=new Date(It.valueOf()+ot),re.end=_?_(bt,C,Y):bt);else if(re.start!=null)if(wt=H.convert(tt.data.start,"Date").valueOf(),pt=new Date(wt+ot),re.end!=null){var lr=(It=H.convert(tt.data.end,"Date")).valueOf()-wt.valueOf();re.start=_?_(pt,C,Y):pt,re.end=new Date(re.start.valueOf()+lr)}else re.start=_?_(pt,C,Y):pt}if(G&&!tt.dragLeft&&!tt.dragRight&&X!=null&&re.group!=null){var dr=X-tt.groupOffset;dr=Math.max(0,dr),dr=Math.min(p.groupIds.length-1,dr),re.group=p.groupIds[dr]}re=o._cloneItemData(re),p.options.onMoving(re,function(co){co&&tt.item.setData(o._cloneItemData(co,"Date"))})}}),this.body.emitter.emit("_change")}}},{key:"_moveToGroup",value:function(r,o){var a=this.groups[o];if(a&&a.groupId!=r.data.group){var s=r.parent;s.remove(r),s.order(),r.data.group=a.groupId,a.add(r),a.order()}}},{key:"_onDragEnd",value:function(r){var o=this;if(this.touchParams.itemIsDragging=!1,this.touchParams.itemProps){r.stopPropagation();var a=this,s=this.touchParams.itemProps;this.touchParams.itemProps=null,Ot(s).call(s,function(d){var p=d.item.id;if(a.itemsData.get(p)!=null){var _=o._cloneItemData(d.item.data);a.options.onMove(_,function(x){x?(x[o.itemsData.idProp]=p,o.itemsData.update(x)):(d.item.setData(d.data),a.body.emitter.emit("_change"))})}else a.options.onAdd(d.item.data,function(x){a._removeItem(d.item),x&&a.itemsData.add(x),a.body.emitter.emit("_change")})})}}},{key:"_onGroupClick",value:function(r){var o=this,a=this.groupFromTarget(r);Yn(function(){o.toggleGroupShowNested(a)},1)}},{key:"toggleGroupShowNested",value:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0;if(r&&r.nestedGroups){var a=this.groupsData.getDataSet();r.showNested=o!=null?!!o:!r.showNested;var s=a.get(r.groupId);s.showNested=r.showNested;for(var d,p=r.nestedGroups,_=p;_.length>0;){var x=_;_=[];for(var O=0;O<x.length;O++){var C=a.get(x[O]);C.nestedGroups&&(_=Ke(_).call(_,C.nestedGroups))}_.length>0&&(p=Ke(p).call(p,_))}if(s.showNested){for(var Y=a.get(s.nestedGroups),j=0;j<Y.length;j++){var G=Y[j];G.nestedGroups&&G.nestedGroups.length>0&&(G.showNested==null||G.showNested==1)&&Y.push.apply(Y,Zi(a.get(G.nestedGroups)))}d=Br(Y).call(Y,function(q){return q.visible==null&&(q.visible=!0),q.visible=!!s.showNested,q})}else{var X;d=Br(X=a.get(p)).call(X,function(q){return q.visible==null&&(q.visible=!0),q.visible=!!s.showNested,q})}a.update(Ke(d).call(d,s)),s.showNested?(H.removeClassName(r.dom.label,"collapsed"),H.addClassName(r.dom.label,"expanded")):(H.removeClassName(r.dom.label,"expanded"),H.addClassName(r.dom.label,"collapsed"))}}},{key:"toggleGroupDragClassName",value:function(r){r.dom.label.classList.toggle("vis-group-is-dragging"),r.dom.foreground.classList.toggle("vis-group-is-dragging")}},{key:"_onGroupDragStart",value:function(r){this.groupTouchParams.isDragging||this.options.groupEditable.order&&(this.groupTouchParams.group=this.groupFromTarget(r),this.groupTouchParams.group&&(r.stopPropagation(),this.groupTouchParams.isDragging=!0,this.toggleGroupDragClassName(this.groupTouchParams.group),this.groupTouchParams.originalOrder=this.groupsData.getIds({order:this.options.groupOrder})))}},{key:"_onGroupDrag",value:function(r){if(this.options.groupEditable.order&&this.groupTouchParams.group){r.stopPropagation();var o=this.groupsData.getDataSet(),a=this.groupFromTarget(r);if(a&&a.height!=this.groupTouchParams.group.height){var s=a.top<this.groupTouchParams.group.top,d=r.center?r.center.y:r.clientY,p=a.dom.foreground.getBoundingClientRect(),_=this.groupTouchParams.group.height;if(s){if(p.top+_<d)return}else{var x=a.height;if(p.top+x-_>d)return}}if(a&&a!=this.groupTouchParams.group){var O=o.get(a.groupId),C=o.get(this.groupTouchParams.group.groupId);C&&O&&(this.options.groupOrderSwap(C,O,o),o.update(C),o.update(O));var Y=o.getIds({order:this.options.groupOrder});if(!H.equalArray(Y,this.groupTouchParams.originalOrder))for(var j=this.groupTouchParams.originalOrder,G=this.groupTouchParams.group.groupId,X=Math.min(j.length,Y.length),q=0,tt=0,ot=0;q<X;){for(;q+tt<X&&q+ot<X&&Y[q+tt]==j[q+ot];)q++;if(q+tt>=X)break;if(Y[q+tt]==G)tt=1;else if(j[q+ot]==G)ot=1;else{var wt=Ie(Y).call(Y,j[q+ot]),It=o.get(Y[q+tt]),pt=o.get(j[q+ot]);this.options.groupOrderSwap(It,pt,o),o.update(It),o.update(pt);var bt=Y[q+tt];Y[q+tt]=j[q+ot],Y[wt]=bt,q++}}}}}},{key:"_onGroupDragEnd",value:function(r){if(this.groupTouchParams.isDragging=!1,this.options.groupEditable.order&&this.groupTouchParams.group){r.stopPropagation();var o=this,a=o.groupTouchParams.group.groupId,s=o.groupsData.getDataSet(),d=H.extend({},s.get(a));o.options.onMoveGroup(d,function(p){if(p)p[s._idProp]=a,s.update(p);else{var _=s.getIds({order:o.options.groupOrder});if(!H.equalArray(_,o.groupTouchParams.originalOrder))for(var x=o.groupTouchParams.originalOrder,O=Math.min(x.length,_.length),C=0;C<O;){for(;C<O&&_[C]==x[C];)C++;if(C>=O)break;var Y=Ie(_).call(_,x[C]),j=s.get(_[C]),G=s.get(x[C]);o.options.groupOrderSwap(j,G,s),s.update(j),s.update(G);var X=_[C];_[C]=x[C],_[Y]=X,C++}}}),o.body.emitter.emit("groupDragged",{groupId:a}),this.toggleGroupDragClassName(this.groupTouchParams.group),this.groupTouchParams.group=null}}},{key:"_onSelectItem",value:function(r){if(this.options.selectable){var o=r.srcEvent&&(r.srcEvent.ctrlKey||r.srcEvent.metaKey),a=r.srcEvent&&r.srcEvent.shiftKey;if(o||a)this._onMultiSelectItem(r);else{var s=this.getSelection(),d=this.itemFromTarget(r),p=d&&d.selectable?[d.id]:[];this.setSelection(p);var _=this.getSelection();(_.length>0||s.length>0)&&this.body.emitter.emit("select",{items:_,event:r})}}}},{key:"_onMouseOver",value:function(r){var o=this.itemFromTarget(r);if(o&&o!==this.itemFromRelatedTarget(r)){var a=o.getTitle();if(this.options.showTooltips&&a){this.popup==null&&(this.popup=new ZD(this.body.dom.root,this.options.tooltip.overflowMethod||"flip")),this.popup.setText(a);var s=this.body.dom.centerContainer,d=s.getBoundingClientRect();this.popup.setPosition(r.clientX-d.left+s.offsetLeft,r.clientY-d.top+s.offsetTop),this.setPopupTimer(this.popup)}else this.clearPopupTimer(),this.popup!=null&&this.popup.hide();this.body.emitter.emit("itemover",{item:o.id,event:r})}}},{key:"_onMouseOut",value:function(r){var o=this.itemFromTarget(r);o&&o!==this.itemFromRelatedTarget(r)&&(this.clearPopupTimer(),this.popup!=null&&this.popup.hide(),this.body.emitter.emit("itemout",{item:o.id,event:r}))}},{key:"_onMouseMove",value:function(r){if(this.itemFromTarget(r)&&(this.popupTimer!=null&&this.setPopupTimer(this.popup),this.options.showTooltips&&this.options.tooltip.followMouse&&this.popup&&!this.popup.hidden)){var o=this.body.dom.centerContainer,a=o.getBoundingClientRect();this.popup.setPosition(r.clientX-a.left+o.offsetLeft,r.clientY-a.top+o.offsetTop),this.popup.show()}}},{key:"_onMouseWheel",value:function(r){this.touchParams.itemIsDragging&&this._onDragEnd(r)}},{key:"_onUpdateItem",value:function(r){if(this.options.selectable&&(this.options.editable.updateTime||this.options.editable.updateGroup)){var o=this;if(r){var a=o.itemsData.get(r.id);this.options.onUpdate(a,function(s){s&&o.itemsData.update(s)})}}}},{key:"_onDropObjectOnItem",value:function(r){var o=this.itemFromTarget(r),a=JSON.parse(r.dataTransfer.getData("text"));this.options.onDropObjectOnItem(a,o)}},{key:"_onAddItem",value:function(r){if(this.options.selectable&&this.options.editable.add){var o,a,s=this,d=this.options.snap||null,p=this.dom.frame.getBoundingClientRect(),_=this.options.rtl?p.right-r.center.x:r.center.x-p.left,x=this.body.util.toTime(_),O=this.body.util.getScale(),C=this.body.util.getStep();r.type=="drop"?((a=JSON.parse(r.dataTransfer.getData("text"))).content=a.content?a.content:"new item",a.start=a.start?a.start:d?d(x,O,C):x,a.type=a.type||"box",a[this.itemsData.idProp]=a.id||Wh(),a.type!="range"||a.end||(o=this.body.util.toTime(_+this.props.width/5),a.end=d?d(o,O,C):o)):((a={start:d?d(x,O,C):x,content:"new item"})[this.itemsData.idProp]=Wh(),this.options.type==="range"&&(o=this.body.util.toTime(_+this.props.width/5),a.end=d?d(o,O,C):o));var Y=this.groupFromTarget(r);Y&&(a.group=Y.groupId),a=this._cloneItemData(a),this.options.onAdd(a,function(j){j&&(s.itemsData.add(j),r.type=="drop"&&s.setSelection([j.id]))})}}},{key:"_onMultiSelectItem",value:function(r){var o=this;if(this.options.selectable){var a=this.itemFromTarget(r);if(a){var s=this.options.multiselect?this.getSelection():[];if((r.srcEvent&&r.srcEvent.shiftKey||this.options.sequentialSelection)&&this.options.multiselect){var d=this.itemsData.get(a.id).group,p=void 0;this.options.multiselectPerGroup&&s.length>0&&(p=this.itemsData.get(s[0]).group),this.options.multiselectPerGroup&&p!=null&&p!=d||s.push(a.id);var _=n._getItemRange(this.itemsData.get(s));if(!this.options.multiselectPerGroup||p==d){for(var x in s=[],this.items)if(this.items.hasOwnProperty(x)){var O=this.items[x],C=O.data.start,Y=O.data.end!==void 0?O.data.end:C;!(C>=_.min&&Y<=_.max)||this.options.multiselectPerGroup&&p!=this.itemsData.get(O.id).group||O instanceof Cu||s.push(O.id)}}}else{var j=Ie(s).call(s,a.id);j==-1?s.push(a.id):li(s).call(s,j,1)}var G=ve(s).call(s,function(X){return o.getItemById(X).selectable});this.setSelection(G),this.body.emitter.emit("select",{items:this.getSelection(),event:r})}}}},{key:"itemFromElement",value:function(r){for(var o=r;o;){if(o.hasOwnProperty("vis-item"))return o["vis-item"];o=o.parentNode}return null}},{key:"itemFromTarget",value:function(r){return this.itemFromElement(r.target)}},{key:"itemFromRelatedTarget",value:function(r){return this.itemFromElement(r.relatedTarget)}},{key:"groupFromTarget",value:function(r){var o=r.center?r.center.y:r.clientY,a=this.groupIds;a.length<=0&&this.groupsData&&(a=this.groupsData.getIds({order:this.options.groupOrder}));for(var s=0;s<a.length;s++){var d=a[s],p=this.groups[d],_=p.dom.foreground,x=_.getBoundingClientRect();if(o>=x.top&&o<x.top+_.offsetHeight)return p;if(this.options.orientation.item==="top"){if(s===this.groupIds.length-1&&o>x.top)return p}else if(s===0&&o<x.top+_.offset)return p}return null}},{key:"_cloneItemData",value:function(r,o){var a=H.extend({},r);return o||(o=this.itemsData.type),a.start!=null&&(a.start=H.convert(a.start,o&&o.start||"Date")),a.end!=null&&(a.end=H.convert(a.end,o&&o.end||"Date")),a}},{key:"_clusterItems",value:function(){if(this.options.cluster){var r=this.body.range.conversion(this.body.domProps.center.width).scale,o=this.clusterGenerator.getClusters(this.clusters,r,this.options.cluster);if(this.clusters!=o){if(this._detachAllClusters(),o){var a,s=ed(o);try{for(s.s();!(a=s.n()).done;)a.value.attach()}catch(d){s.e(d)}finally{s.f()}this.clusters=o}this._updateClusters(o)}}}},{key:"_detachAllClusters",value:function(){if(this.options.cluster&&this.clusters&&this.clusters.length){var r,o=ed(this.clusters);try{for(o.s();!(r=o.n()).done;)r.value.detach()}catch(a){o.e(a)}finally{o.f()}}}},{key:"_updateClusters",value:function(r){if(this.clusters&&this.clusters.length){var o,a,s=new a_(Br(r).call(r,function(G){return G.id})),d=ve(o=this.clusters).call(o,function(G){return!s.has(G.id)}),p=!1,_=ed(d);try{for(_.s();!(a=_.n()).done;){var x,O,C=a.value,Y=Ie(x=this.selection).call(x,C.id);Y!==-1&&(C.unselect(),li(O=this.selection).call(O,Y,1),p=!0)}}catch(G){_.e(G)}finally{_.f()}if(p){var j=this.getSelection();this.body.emitter.emit("select",{items:j,event})}}this.clusters=r||[]}}],[{key:"_getItemRange",value:function(r){var o=null,a=null;return Ot(r).call(r,function(s){(a==null||s.start<a)&&(a=s.start),s.end!=null?(o==null||s.end>o)&&(o=s.end):(o==null||s.start>o)&&(o=s.start)}),{min:a,max:o}}},{key:"itemSetFromTarget",value:function(r){for(var o=r.target;o;){if(o.hasOwnProperty("vis-itemset"))return o["vis-itemset"];o=o.parentNode}return null}}]),n}(Ao);Lg.types={background:Cu,box:KD,range:td,point:qC},Lg.prototype._onAdd=Lg.prototype._onUpdate;var eI,Fg=!1,u_="background: #FFeeee; color: #dd0000",aC=function(){function t(){Se(this,t)}return Ce(t,null,[{key:"validate",value:function(e,n,r){Fg=!1,eI=n;var o=n;return r!==void 0&&(o=n[r]),t.parse(e,o,[]),Fg}},{key:"parse",value:function(e,n,r){for(var o in e)e.hasOwnProperty(o)&&t.check(o,e,n,r)}},{key:"check",value:function(e,n,r,o){if(r[e]!==void 0||r.__any__!==void 0){var a=e,s=!0;r[e]===void 0&&r.__any__!==void 0&&(a="__any__",s=t.getType(n[e])==="object");var d=r[a];s&&d.__type__!==void 0&&(d=d.__type__),t.checkFields(e,n,r,a,d,o)}else t.getSuggestion(e,r,o)}},{key:"checkFields",value:function(e,n,r,o,a,s){var d=function(x){console.log("%c"+x+t.printLocation(s,e),u_)},p=t.getType(n[e]),_=a[p];_!==void 0?t.getType(_)==="array"&&Ie(_).call(_,n[e])===-1?(d('Invalid option detected in "'+e+'". Allowed values are:'+t.print(_)+' not "'+n[e]+'". '),Fg=!0):p==="object"&&o!=="__any__"&&(s=H.copyAndExtendArray(s,e),t.parse(n[e],r[o],s)):a.any===void 0&&(d('Invalid type received for "'+e+'". Expected: '+t.print(Jr(a))+". Received ["+p+'] "'+n[e]+'"'),Fg=!0)}},{key:"getType",value:function(e){var n=Jt(e);return n==="object"?e===null?"null":e instanceof Boolean?"boolean":e instanceof Number?"number":e instanceof String?"string":ce(e)?"array":e instanceof Date?"date":e.nodeType!==void 0?"dom":e._isAMomentObject===!0?"moment":"object":n==="number"?"number":n==="boolean"?"boolean":n==="string"?"string":n===void 0?"undefined":n}},{key:"getSuggestion",value:function(e,n,r){var o,a=t.findInOptions(e,n,r,!1),s=t.findInOptions(e,eI,[],!0);o=a.indexMatch!==void 0?" in "+t.printLocation(a.path,e,"")+'Perhaps it was incomplete? Did you mean: "'+a.indexMatch+`"?
`:s.distance<=4&&a.distance>s.distance?" in "+t.printLocation(a.path,e,"")+"Perhaps it was misplaced? Matching option found at: "+t.printLocation(s.path,s.closestMatch,""):a.distance<=8?'. Did you mean "'+a.closestMatch+'"?'+t.printLocation(a.path,e):". Did you mean one of these: "+t.print(Jr(n))+t.printLocation(r,e),console.log('%cUnknown option detected: "'+e+'"'+o,u_),Fg=!0}},{key:"findInOptions",value:function(e,n,r){var o=arguments.length>3&&arguments[3]!==void 0&&arguments[3],a=1e9,s="",d=[],p=e.toLowerCase(),_=void 0;for(var x in n){var O=void 0;if(n[x].__type__!==void 0&&o===!0){var C=t.findInOptions(e,n[x],H.copyAndExtendArray(r,x));a>C.distance&&(s=C.closestMatch,d=C.path,a=C.distance,_=C.indexMatch)}else{var Y;Ie(Y=x.toLowerCase()).call(Y,p)!==-1&&(_=x),a>(O=t.levenshteinDistance(e,x))&&(s=x,d=H.copyArray(r),a=O)}}return{closestMatch:s,path:d,distance:a,indexMatch:_}}},{key:"printLocation",value:function(e,n){for(var r=`
`+(arguments.length>2&&arguments[2]!==void 0?arguments[2]:`Problem value found at:
`)+`options = {
`,o=0;o<e.length;o++){for(var a=0;a<o+1;a++)r+=" ";r+=e[o]+`: {
`}for(var s=0;s<e.length+1;s++)r+=" ";r+=n+`
`;for(var d=0;d<e.length+1;d++){for(var p=0;p<e.length-d;p++)r+=" ";r+=`}
`}return r+`
`}},{key:"print",value:function(e){return Un(e).replace(/(\")|(\[)|(\])|(,"__type__")/g,"").replace(/(\,)/g,", ")}},{key:"levenshteinDistance",value:function(e,n){if(e.length===0)return n.length;if(n.length===0)return e.length;var r,o,a=[];for(r=0;r<=n.length;r++)a[r]=[r];for(o=0;o<=e.length;o++)a[0][o]=o;for(r=1;r<=n.length;r++)for(o=1;o<=e.length;o++)n.charAt(r-1)==e.charAt(o-1)?a[r][o]=a[r-1][o-1]:a[r][o]=Math.min(a[r-1][o-1]+1,Math.min(a[r][o-1]+1,a[r-1][o]+1));return a[n.length][e.length]}}]),t}(),te="string",ee="boolean",Ze="number",rI="array",fs="date",ur="object",rd="moment",EP={configure:{enabled:{boolean:ee},filter:{boolean:ee,function:"function"},container:{dom:"dom"},__type__:{object:ur,boolean:ee,function:"function"}},align:{string:te},alignCurrentTime:{string:te,undefined:"undefined"},rtl:{boolean:ee,undefined:"undefined"},rollingMode:{follow:{boolean:ee},offset:{number:Ze,undefined:"undefined"},__type__:{object:ur}},onTimeout:{timeoutMs:{number:Ze},callback:{function:"function"},__type__:{object:ur}},verticalScroll:{boolean:ee,undefined:"undefined"},horizontalScroll:{boolean:ee,undefined:"undefined"},autoResize:{boolean:ee},throttleRedraw:{number:Ze},clickToUse:{boolean:ee},dataAttributes:{string:te,array:rI},editable:{add:{boolean:ee,undefined:"undefined"},remove:{boolean:ee,undefined:"undefined"},updateGroup:{boolean:ee,undefined:"undefined"},updateTime:{boolean:ee,undefined:"undefined"},overrideItems:{boolean:ee,undefined:"undefined"},__type__:{boolean:ee,object:ur}},end:{number:Ze,date:fs,string:te,moment:rd},format:{minorLabels:{millisecond:{string:te,undefined:"undefined"},second:{string:te,undefined:"undefined"},minute:{string:te,undefined:"undefined"},hour:{string:te,undefined:"undefined"},weekday:{string:te,undefined:"undefined"},day:{string:te,undefined:"undefined"},week:{string:te,undefined:"undefined"},month:{string:te,undefined:"undefined"},year:{string:te,undefined:"undefined"},__type__:{object:ur,function:"function"}},majorLabels:{millisecond:{string:te,undefined:"undefined"},second:{string:te,undefined:"undefined"},minute:{string:te,undefined:"undefined"},hour:{string:te,undefined:"undefined"},weekday:{string:te,undefined:"undefined"},day:{string:te,undefined:"undefined"},week:{string:te,undefined:"undefined"},month:{string:te,undefined:"undefined"},year:{string:te,undefined:"undefined"},__type__:{object:ur,function:"function"}},__type__:{object:ur}},moment:{function:"function"},groupHeightMode:{string:te},groupOrder:{string:te,function:"function"},groupEditable:{add:{boolean:ee,undefined:"undefined"},remove:{boolean:ee,undefined:"undefined"},order:{boolean:ee,undefined:"undefined"},__type__:{boolean:ee,object:ur}},groupOrderSwap:{function:"function"},height:{string:te,number:Ze},hiddenDates:{start:{date:fs,number:Ze,string:te,moment:rd},end:{date:fs,number:Ze,string:te,moment:rd},repeat:{string:te},__type__:{object:ur,array:rI}},itemsAlwaysDraggable:{item:{boolean:ee,undefined:"undefined"},range:{boolean:ee,undefined:"undefined"},__type__:{boolean:ee,object:ur}},limitSize:{boolean:ee},locale:{string:te},locales:{__any__:{any:"any"},__type__:{object:ur}},longSelectPressTime:{number:Ze},margin:{axis:{number:Ze},item:{horizontal:{number:Ze,undefined:"undefined"},vertical:{number:Ze,undefined:"undefined"},__type__:{object:ur,number:Ze}},__type__:{object:ur,number:Ze}},max:{date:fs,number:Ze,string:te,moment:rd},maxHeight:{number:Ze,string:te},maxMinorChars:{number:Ze},min:{date:fs,number:Ze,string:te,moment:rd},minHeight:{number:Ze,string:te},moveable:{boolean:ee},multiselect:{boolean:ee},multiselectPerGroup:{boolean:ee},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:te,undefined:"undefined"},item:{string:te,undefined:"undefined"},__type__:{string:te,object:ur}},selectable:{boolean:ee},sequentialSelection:{boolean:ee},showCurrentTime:{boolean:ee},showMajorLabels:{boolean:ee},showMinorLabels:{boolean:ee},showWeekScale:{boolean:ee},stack:{boolean:ee},stackSubgroups:{boolean:ee},cluster:{maxItems:{number:Ze,undefined:"undefined"},titleTemplate:{string:te,undefined:"undefined"},clusterCriteria:{function:"function",undefined:"undefined"},showStipes:{boolean:ee,undefined:"undefined"},fitOnDoubleClick:{boolean:ee,undefined:"undefined"},__type__:{boolean:ee,object:ur}},snap:{function:"function",null:"null"},start:{date:fs,number:Ze,string:te,moment:rd},template:{function:"function"},loadingScreenTemplate:{function:"function"},groupTemplate:{function:"function"},visibleFrameTemplate:{string:te,function:"function"},showTooltips:{boolean:ee},tooltip:{followMouse:{boolean:ee},overflowMethod:{string:["cap","flip","none"]},delay:{number:Ze},template:{function:"function"},__type__:{object:ur}},tooltipOnItemUpdateTime:{template:{function:"function"},__type__:{boolean:ee,object:ur}},timeAxis:{scale:{string:te,undefined:"undefined"},step:{number:Ze,undefined:"undefined"},__type__:{object:ur}},type:{string:te},width:{string:te,number:Ze},preferZoom:{boolean:ee},zoomable:{boolean:ee},zoomKey:{string:["ctrlKey","altKey","shiftKey","metaKey",""]},zoomFriction:{number:Ze},zoomMax:{number:Ze},zoomMin:{number:Ze},xss:{disabled:{boolean:ee},filterOptions:{__any__:{any:"any"},__type__:{object:ur}},__type__:{object:ur}},__type__:{object:ur}},DP={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}}},CP={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"},AT=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;Se(this,t),this.pixelRatio=e,this.generated=!1,this.centerCoordinates={x:144.5,y:144.5},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return Ce(t,[{key:"insertTo",value:function(e){this.hammer!==void 0&&(this.hammer.destroy(),this.hammer=void 0),this.container=e,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(e){if(typeof e!="function")throw new Error("Function attempted to set as colorPicker update callback is not a function.");this.updateCallback=e}},{key:"setCloseCallback",value:function(e){if(typeof e!="function")throw new Error("Function attempted to set as colorPicker closing callback is not a function.");this.closeCallback=e}},{key:"_isColorString",value:function(e){if(typeof e=="string")return CP[e]}},{key:"setColor",value:function(e){var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];if(e!=="none"){var r,o=this._isColorString(e);if(o!==void 0&&(e=o),H.isString(e)===!0){if(H.isValidRGB(e)===!0){var a=e.substr(4).substr(0,e.length-5).split(",");r={r:a[0],g:a[1],b:a[2],a:1}}else if(H.isValidRGBA(e)===!0){var s=e.substr(5).substr(0,e.length-6).split(",");r={r:s[0],g:s[1],b:s[2],a:s[3]}}else if(H.isValidHex(e)===!0){var d=H.hexToRGB(e);r={r:d.r,g:d.g,b:d.b,a:1}}}else if(e instanceof Object&&e.r!==void 0&&e.g!==void 0&&e.b!==void 0){var p=e.a!==void 0?e.a:"1.0";r={r:e.r,g:e.g,b:e.b,a:p}}if(r===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: "+Un(e));this._setColor(r,n)}}},{key:"show",value:function(){this.closeCallback!==void 0&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var e=this;(!(arguments.length>0&&arguments[0]!==void 0)||arguments[0])===!0&&(this.previousColor=H.extend({},this.color)),this.applied===!0&&this.updateCallback(this.initialColor),this.frame.style.display="none",Yn(function(){e.closeCallback!==void 0&&(e.closeCallback(),e.closeCallback=void 0)},0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){this.previousColor!==void 0?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(e){(!(arguments.length>1&&arguments[1]!==void 0)||arguments[1])===!0&&(this.initialColor=H.extend({},e)),this.color=e;var n=H.RGBToHSV(e.r,e.g,e.b),r=2*Math.PI,o=this.r*n.s,a=this.centerCoordinates.x+o*Math.sin(r*n.h),s=this.centerCoordinates.y+o*Math.cos(r*n.h);this.colorPickerSelector.style.left=a-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=s-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(e)}},{key:"_setOpacity",value:function(e){this.color.a=e/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(e){var n=H.RGBToHSV(this.color.r,this.color.g,this.color.b);n.v=e/100;var r=H.HSVToRGB(n.h,n.s,n.v);r.a=this.color.a,this.color=r,this._updatePicker()}},{key:"_updatePicker",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.color,n=H.RGBToHSV(e.r,e.g,e.b),r=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(r.webkitBackingStorePixelRatio||r.mozBackingStorePixelRatio||r.msBackingStorePixelRatio||r.oBackingStorePixelRatio||r.backingStorePixelRatio||1)),r.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var o=this.colorPickerCanvas.clientWidth,a=this.colorPickerCanvas.clientHeight;r.clearRect(0,0,o,a),r.putImageData(this.hueCircle,0,0),r.fillStyle="rgba(0,0,0,"+(1-n.v)+")",r.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),fw(r).call(r),this.brightnessRange.value=100*n.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+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){var e,n,r,o;if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){var 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{var s=document.createElement("DIV");s.style.color="red",s.style.fontWeight="bold",s.style.padding="10px",s.innerHTML="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(s)}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(p){}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(p){}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var d=this;this.opacityRange.onchange=function(){d._setOpacity(this.value)},this.opacityRange.oninput=function(){d._setOpacity(this.value)},this.brightnessRange.onchange=function(){d._setBrightness(this.value)},this.brightnessRange.oninput=function(){d._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=at(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=at(n=this._apply).call(n,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerHTML="save",this.saveButton.onclick=at(r=this._save).call(r,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerHTML="load last",this.loadButton.onclick=at(o=this._loadLast).call(o,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:"_bindHammer",value:function(){var e=this;this.drag={},this.pinch={},this.hammer=new ze(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),ls(this.hammer,function(n){e._moveSelector(n)}),this.hammer.on("tap",function(n){e._moveSelector(n)}),this.hammer.on("panstart",function(n){e._moveSelector(n)}),this.hammer.on("panmove",function(n){e._moveSelector(n)}),this.hammer.on("panend",function(n){e._moveSelector(n)})}},{key:"_generateHueCircle",value:function(){if(this.generated===!1){var 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);var n,r,o,a,s=this.colorPickerCanvas.clientWidth,d=this.colorPickerCanvas.clientHeight;e.clearRect(0,0,s,d),this.centerCoordinates={x:.5*s,y:.5*d},this.r=.49*s;var p,_=2*Math.PI/360,x=1/this.r;for(o=0;o<360;o++)for(a=0;a<this.r;a++)n=this.centerCoordinates.x+a*Math.sin(_*o),r=this.centerCoordinates.y+a*Math.cos(_*o),p=H.HSVToRGB(.002777777777777778*o,a*x,1),e.fillStyle="rgb("+p.r+","+p.g+","+p.b+")",e.fillRect(n-.5,r-.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,s,d)}this.generated=!0}},{key:"_moveSelector",value:function(e){var n=this.colorPickerDiv.getBoundingClientRect(),r=e.center.x-n.left,o=e.center.y-n.top,a=.5*this.colorPickerDiv.clientHeight,s=.5*this.colorPickerDiv.clientWidth,d=r-s,p=o-a,_=Math.atan2(d,p),x=.98*Math.min(Math.sqrt(d*d+p*p),s),O=Math.cos(_)*x+a,C=Math.sin(_)*x+s;this.colorPickerSelector.style.top=O-.5*this.colorPickerSelector.clientHeight+"px",this.colorPickerSelector.style.left=C-.5*this.colorPickerSelector.clientWidth+"px";var Y=_/(2*Math.PI);Y=Y<0?Y+1:Y;var j=x/this.r,G=H.RGBToHSV(this.color.r,this.color.g,this.color.b);G.h=Y,G.s=j;var X=H.HSVToRGB(G.h,G.s,G.v);X.a=this.color.a,this.color=X,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}}]),t}(),nI=function(){function t(e,n,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;Se(this,t),this.parent=e,this.changedOptions=[],this.container=n,this.allowCreation=!1,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},H.extend(this.options,this.defaultOptions),this.configureOptions=r,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new AT(o),this.wrapper=void 0}return Ce(t,[{key:"setOptions",value:function(e){if(e!==void 0){this.popupHistory={},this._removePopup();var n=!0;if(typeof e=="string")this.options.filter=e;else if(ce(e))this.options.filter=e.join();else if(Jt(e)==="object"){if(e==null)throw new TypeError("options cannot be null");e.container!==void 0&&(this.options.container=e.container),ve(e)!==void 0&&(this.options.filter=ve(e)),e.showButton!==void 0&&(this.options.showButton=e.showButton),e.enabled!==void 0&&(n=e.enabled)}else typeof e=="boolean"?(this.options.filter=!0,n=e):typeof e=="function"&&(this.options.filter=e,n=!0);ve(this.options)===!1&&(n=!1),this.options.enabled=n}this._clean()}},{key:"setModuleOptions",value:function(e){this.moduleOptions=e,this.options.enabled===!0&&(this._clean(),this.options.container!==void 0&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var e=ve(this.options),n=0,r=!1;for(var o in this.configureOptions)this.configureOptions.hasOwnProperty(o)&&(this.allowCreation=!1,r=!1,typeof e=="function"?r=(r=e(o,[]))||this._handleObject(this.configureOptions[o],[o],!0):e!==!0&&Ie(e).call(e,o)===-1||(r=!0),r!==!1&&(this.allowCreation=!0,n>0&&this._makeItem([]),this._makeHeader(o),this._handleObject(this.configureOptions[o],[o])),n++);this._makeButton(),this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var e=0;e<this.domElements.length;e++)this.wrapper.appendChild(this.domElements[e]);this._showPopupIfNeeded()}},{key:"_clean",value:function(){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()}},{key:"_getValue",value:function(e){for(var n=this.moduleOptions,r=0;r<e.length;r++){if(n[e[r]]===void 0){n=void 0;break}n=n[e[r]]}return n}},{key:"_makeItem",value:function(e){if(this.allowCreation===!0){var n=document.createElement("div");n.className="vis-configuration vis-config-item vis-config-s"+e.length;for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];return Ot(o).call(o,function(s){n.appendChild(s)}),this.domElements.push(n),this.domElements.length}return 0}},{key:"_makeHeader",value:function(e){var n=document.createElement("div");n.className="vis-configuration vis-config-header",n.innerHTML=H.xss(e),this._makeItem([],n)}},{key:"_makeLabel",value:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0&&arguments[2],o=document.createElement("div");return o.className="vis-configuration vis-config-label vis-config-s"+n.length,o.innerHTML=r===!0?H.xss("<i><b>"+e+":</b></i>"):H.xss(e+":"),o}},{key:"_makeDropdown",value:function(e,n,r){var o=document.createElement("select");o.className="vis-configuration vis-config-select";var a=0;n!==void 0&&Ie(e).call(e,n)!==-1&&(a=Ie(e).call(e,n));for(var s=0;s<e.length;s++){var d=document.createElement("option");d.value=e[s],s===a&&(d.selected="selected"),d.innerHTML=e[s],o.appendChild(d)}var p=this;o.onchange=function(){p._update(this.value,r)};var _=this._makeLabel(r[r.length-1],r);this._makeItem(r,_,o)}},{key:"_makeRange",value:function(e,n,r){var o=e[0],a=e[1],s=e[2],d=e[3],p=document.createElement("input");p.className="vis-configuration vis-config-range";try{p.type="range",p.min=a,p.max=s}catch(X){}p.step=d;var _="",x=0;if(n!==void 0){var O=1.2;n<0&&n*O<a?(p.min=Math.ceil(n*O),x=p.min,_="range increased"):n/O<a&&(p.min=Math.ceil(n/O),x=p.min,_="range increased"),n*O>s&&s!==1&&(p.max=Math.ceil(n*O),x=p.max,_="range increased"),p.value=n}else p.value=o;var C=document.createElement("input");C.className="vis-configuration vis-config-rangeinput",C.value=Number(p.value);var Y=this;p.onchange=function(){C.value=this.value,Y._update(Number(this.value),r)},p.oninput=function(){C.value=this.value};var j=this._makeLabel(r[r.length-1],r),G=this._makeItem(r,j,p,C);_!==""&&this.popupHistory[G]!==x&&(this.popupHistory[G]=x,this._setupPopup(_,G))}},{key:"_makeButton",value:function(){var e=this;if(this.options.showButton===!0){var n=document.createElement("div");n.className="vis-configuration vis-config-button",n.innerHTML="generate options",n.onclick=function(){e._printOptions()},n.onmouseover=function(){n.className="vis-configuration vis-config-button hover"},n.onmouseout=function(){n.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(n)}}},{key:"_setupPopup",value:function(e,n){var r=this;if(this.initialized===!0&&this.allowCreation===!0&&this.popupCounter<this.popupLimit){var o=document.createElement("div");o.id="vis-configuration-popup",o.className="vis-configuration-popup",o.innerHTML=H.xss(e),o.onclick=function(){r._removePopup()},this.popupCounter+=1,this.popupDiv={html:o,index:n}}}},{key:"_removePopup",value:function(){this.popupDiv.html!==void 0&&(this.popupDiv.html.parentNode.removeChild(this.popupDiv.html),clearTimeout(this.popupDiv.hideTimeout),clearTimeout(this.popupDiv.deleteTimeout),this.popupDiv={})}},{key:"_showPopupIfNeeded",value:function(){var e=this;if(this.popupDiv.html!==void 0){var n=this.domElements[this.popupDiv.index].getBoundingClientRect();this.popupDiv.html.style.left=n.left+"px",this.popupDiv.html.style.top=n.top-30+"px",document.body.appendChild(this.popupDiv.html),this.popupDiv.hideTimeout=Yn(function(){e.popupDiv.html.style.opacity=0},1500),this.popupDiv.deleteTimeout=Yn(function(){e._removePopup()},1800)}}},{key:"_makeCheckbox",value:function(e,n,r){var o=document.createElement("input");o.type="checkbox",o.className="vis-configuration vis-config-checkbox",o.checked=e,n!==void 0&&(o.checked=n,n!==e&&(Jt(e)==="object"?n!==e.enabled&&this.changedOptions.push({path:r,value:n}):this.changedOptions.push({path:r,value:n})));var a=this;o.onchange=function(){a._update(this.checked,r)};var s=this._makeLabel(r[r.length-1],r);this._makeItem(r,s,o)}},{key:"_makeTextInput",value:function(e,n,r){var o=document.createElement("input");o.type="text",o.className="vis-configuration vis-config-text",o.value=n,n!==e&&this.changedOptions.push({path:r,value:n});var a=this;o.onchange=function(){a._update(this.value,r)};var s=this._makeLabel(r[r.length-1],r);this._makeItem(r,s,o)}},{key:"_makeColorField",value:function(e,n,r){var o=this,a=e[1],s=document.createElement("div");(n=n===void 0?a:n)!=="none"?(s.className="vis-configuration vis-config-colorBlock",s.style.backgroundColor=n):s.className="vis-configuration vis-config-colorBlock none",n=n===void 0?a:n,s.onclick=function(){o._showColorPicker(n,s,r)};var d=this._makeLabel(r[r.length-1],r);this._makeItem(r,d,s)}},{key:"_showColorPicker",value:function(e,n,r){var o=this;n.onclick=function(){},this.colorPicker.insertTo(n),this.colorPicker.show(),this.colorPicker.setColor(e),this.colorPicker.setUpdateCallback(function(a){var s="rgba("+a.r+","+a.g+","+a.b+","+a.a+")";n.style.backgroundColor=s,o._update(s,r)}),this.colorPicker.setCloseCallback(function(){n.onclick=function(){o._showColorPicker(e,n,r)}})}},{key:"_handleObject",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0&&arguments[2],o=!1,a=ve(this.options),s=!1;for(var d in e)if(e.hasOwnProperty(d)){o=!0;var p=e[d],_=H.copyAndExtendArray(n,d);if(typeof a=="function"&&(o=a(d,n))===!1&&!ce(p)&&typeof p!="string"&&typeof p!="boolean"&&p instanceof Object&&(this.allowCreation=!1,o=this._handleObject(p,_,!0),this.allowCreation=r===!1),o!==!1){s=!0;var x=this._getValue(_);if(ce(p))this._handleArray(p,x,_);else if(typeof p=="string")this._makeTextInput(p,x,_);else if(typeof p=="boolean")this._makeCheckbox(p,x,_);else if(p instanceof Object){var O=!0;if(Ie(n).call(n,"physics")!==-1&&this.moduleOptions.physics.solver!==d&&(O=!1),O===!0)if(p.enabled!==void 0){var C=H.copyAndExtendArray(_,"enabled"),Y=this._getValue(C);if(Y===!0){var j=this._makeLabel(d,_,!0);this._makeItem(_,j),s=this._handleObject(p,_)||s}else this._makeCheckbox(p,Y,_)}else{var G=this._makeLabel(d,_,!0);this._makeItem(_,G),s=this._handleObject(p,_)||s}}else console.error("dont know how to handle",p,d,_)}}return s}},{key:"_handleArray",value:function(e,n,r){typeof e[0]=="string"&&e[0]==="color"?(this._makeColorField(e,n,r),e[1]!==n&&this.changedOptions.push({path:r,value:n})):typeof e[0]=="string"?(this._makeDropdown(e,n,r),e[0]!==n&&this.changedOptions.push({path:r,value:n})):typeof e[0]=="number"&&(this._makeRange(e,n,r),e[0]!==n&&this.changedOptions.push({path:r,value:Number(n)}))}},{key:"_update",value:function(e,n){var r=this._constructOptions(e,n);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",r),this.initialized=!0,this.parent.setOptions(r)}},{key:"_constructOptions",value:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=r;e=(e=e==="true"||e)!=="false"&&e;for(var a=0;a<n.length;a++)n[a]!=="global"&&(o[n[a]]===void 0&&(o[n[a]]={}),a!==n.length-1?o=o[n[a]]:o[n[a]]=e);return r}},{key:"_printOptions",value:function(){var e=this.getOptions();this.optionsContainer.innerHTML="<pre>var options = "+Un(e,null,2)+"</pre>"}},{key:"getOptions",value:function(){for(var e={},n=0;n<this.changedOptions.length;n++)this._constructOptions(this.changedOptions[n].value,this.changedOptions[n].path,e);return e}}]),t}();function IP(t){var e=function(){if(typeof Reflect=="undefined"||!At||At.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(At(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var n,r=Be(t);if(e){var o=Be(this).constructor;n=At(r,arguments,o)}else n=r.apply(this,arguments);return ui(this,n)}}var PP=function(t){si(n,t);var e=IP(n);function n(r,o,a,s){var d,p,_,x,O,C,Y,j;if(Se(this,n),(j=e.call(this)).initTime=new Date,j.itemsDone=!1,!(me(j)instanceof n))throw new SyntaxError("Constructor must be called with the new operator");if(!ce(a)&&!ss(a)&&a instanceof Object){var G=s;s=a,a=G}s&&s.throttleRedraw&&console.warn('Timeline option "throttleRedraw" is DEPRICATED and no longer supported. It will be removed in the next MAJOR release.');var X=me(j);if(j.defaultOptions={autoResize:!0,longSelectPressTime:251,orientation:{axis:"bottom",item:"bottom"},moment:Bn},j.options=H.deepExtend({},j.defaultOptions),s&&H.setupXSSProtection(s.xss),j._create(r),!s||s&&s.rtl===void 0){var q;j.dom.root.style.visibility="hidden";for(var tt=j.dom.root;!q&&tt;)q=window.getComputedStyle(tt,null).direction,tt=tt.parentElement;j.options.rtl=q&&q.toLowerCase()=="rtl"}else j.options.rtl=s.rtl;s&&(s.rollingMode&&(j.options.rollingMode=s.rollingMode),s.onInitialDrawComplete&&(j.options.onInitialDrawComplete=s.onInitialDrawComplete),s.onTimeout&&(j.options.onTimeout=s.onTimeout),s.loadingScreenTemplate&&(j.options.loadingScreenTemplate=s.loadingScreenTemplate));var ot=document.createElement("div");if(j.options.loadingScreenTemplate){var wt,It=at(wt=j.options.loadingScreenTemplate).call(wt,me(j)),pt=It(j.dom.loadingScreen);pt instanceof Object&&!(pt instanceof Element)?It(ot):pt instanceof Element?(ot.innerHTML="",ot.appendChild(pt)):pt!=null&&(ot.innerHTML=H.xss(pt))}function bt(ut,Lt){X.hasListeners(ut)&&X.emit(ut,X.getEventProperties(Lt))}return j.dom.loadingScreen.appendChild(ot),j.components=[],j.body={dom:j.dom,domProps:j.props,emitter:{on:at(d=j.on).call(d,me(j)),off:at(p=j.off).call(p,me(j)),emit:at(_=j.emit).call(_,me(j))},hiddenDates:[],util:{getScale:function(){return X.timeAxis.step.scale},getStep:function(){return X.timeAxis.step.step},toScreen:at(x=X._toScreen).call(x,X),toGlobalScreen:at(O=X._toGlobalScreen).call(O,X),toTime:at(C=X._toTime).call(C,X),toGlobalTime:at(Y=X._toGlobalTime).call(Y,X)}},j.range=new N(j.body,j.options),j.components.push(j.range),j.body.range=j.range,j.timeAxis=new on(j.body,j.options),j.timeAxis2=null,j.components.push(j.timeAxis),j.currentTime=new Jn(j.body,j.options),j.components.push(j.currentTime),j.itemSet=new Lg(j.body,j.options),j.components.push(j.itemSet),j.itemsData=null,j.groupsData=null,j.dom.root.onclick=function(ut){bt("click",ut)},j.dom.root.ondblclick=function(ut){bt("doubleClick",ut)},j.dom.root.oncontextmenu=function(ut){bt("contextmenu",ut)},j.dom.root.onmouseover=function(ut){bt("mouseOver",ut)},window.PointerEvent?(j.dom.root.onpointerdown=function(ut){bt("mouseDown",ut)},j.dom.root.onpointermove=function(ut){bt("mouseMove",ut)},j.dom.root.onpointerup=function(ut){bt("mouseUp",ut)}):(j.dom.root.onmousemove=function(ut){bt("mouseMove",ut)},j.dom.root.onmousedown=function(ut){bt("mouseDown",ut)},j.dom.root.onmouseup=function(ut){bt("mouseUp",ut)}),j.initialFitDone=!1,j.on("changed",function(){if(X.itemsData!=null){if(!X.initialFitDone&&!X.options.rollingMode)if(X.initialFitDone=!0,X.options.start!=null||X.options.end!=null){if(X.options.start==null||X.options.end==null)var ut=X.getItemRange();var Lt=X.options.start!=null?X.options.start:ut.min,re=X.options.end!=null?X.options.end:ut.max;X.setWindow(Lt,re,{animation:!1})}else X.fit({animation:!1});X.initialDrawDone||!X.initialRangeChangeDone&&(X.options.start||X.options.end)&&!X.options.rollingMode||(X.initialDrawDone=!0,X.itemSet.initialDrawDone=!0,X.dom.root.style.visibility="visible",X.dom.loadingScreen.parentNode.removeChild(X.dom.loadingScreen),X.options.onInitialDrawComplete&&Yn(function(){return X.options.onInitialDrawComplete()},0))}}),j.on("destroyTimeline",function(){X.destroy()}),s&&j.setOptions(s),j.body.emitter.on("fit",function(ut){j._onFit(ut),j.redraw()}),a&&j.setGroups(a),o&&j.setItems(o),j._redraw(),j}return Ce(n,[{key:"_createConfigurator",value:function(){return new nI(this,this.dom.container,DP)}},{key:"redraw",value:function(){this.itemSet&&this.itemSet.markDirty({refreshItems:!0}),this._redraw()}},{key:"setOptions",value:function(r){if(aC.validate(r,EP)===!0&&console.log("%cErrors have been found in the supplied options object.",u_),ge.prototype.setOptions.call(this,r),"type"in r&&r.type!==this.options.type){this.options.type=r.type;var o=this.itemsData;if(o){var a=this.getSelection();this.setItems(null),this.setItems(o.rawDS),this.setSelection(a)}}}},{key:"setItems",value:function(r){var o;this.itemsDone=!1,o=r?ss(r)?zh(r):zh(new J.DataSet(r)):null,this.itemsData&&this.itemsData.dispose(),this.itemsData=o,this.itemSet&&this.itemSet.setItems(o!=null?o.rawDS:null)}},{key:"setGroups",value:function(r){var o;r?(ce(r)&&(r=new J.DataSet(r)),o=new J.DataView(r,{filter:function(a){return a.visible!==!1}})):o=null,this.groupsData!=null&&typeof this.groupsData.setData=="function"&&this.groupsData.setData(null),this.groupsData=o,this.itemSet.setGroups(o)}},{key:"setData",value:function(r){r&&r.groups&&this.setGroups(r.groups),r&&r.items&&this.setItems(r.items)}},{key:"setSelection",value:function(r,o){this.itemSet&&this.itemSet.setSelection(r),o&&o.focus&&this.focus(r,o)}},{key:"getSelection",value:function(){return this.itemSet&&this.itemSet.getSelection()||[]}},{key:"focus",value:function(r,o){if(this.itemsData&&r!=null){var a=ce(r)?r:[r],s=this.itemsData.get(a),d=null,p=null;if(Ot(s).call(s,function(tt){var ot=tt.start.valueOf(),wt="end"in tt?tt.end.valueOf():tt.start.valueOf();(d===null||ot<d)&&(d=ot),(p===null||wt>p)&&(p=wt)}),d!==null&&p!==null){var _=this,x=this.itemSet.items[a[0]],O=-1*this._getScrollTop(),C=null,Y=function(){var tt=iI(_,x);tt.shouldScroll&&tt.itemTop!=C.itemTop&&(_._setScrollTop(-tt.scrollOffset),_._redraw())},j=!o||o.zoom===void 0||o.zoom,G=(d+p)/2,X=j?1.1*(p-d):Math.max(this.range.end-this.range.start,1.1*(p-d)),q=!o||o.animation===void 0||o.animation;q||(C={shouldScroll:!1,scrollOffset:-1,itemTop:-1}),this.range.setRange(G-X/2,G+X/2,{animation:q},function(){Y(),Yn(Y,100)},function(tt,ot,wt){var It=iI(_,x);if(It!==!1&&(C||(C=It),C.itemTop!=It.itemTop||C.shouldScroll)){C.itemTop!=It.itemTop&&It.shouldScroll&&(C=It,O=-1*_._getScrollTop());var pt=O,bt=C.scrollOffset,ut=wt?bt:pt+(bt-pt)*tt;_._setScrollTop(-ut),ot||_._redraw()}})}}}},{key:"fit",value:function(r,o){var a,s=!r||r.animation===void 0||r.animation;this.itemsData.length===1&&this.itemsData.get()[0].end===void 0?(a=this.getDataRange(),this.moveTo(a.min.valueOf(),{animation:s},o)):(a=this.getItemRange(),this.range.setRange(a.min,a.max,{animation:s},o))}},{key:"getItemRange",value:function(){var r=this,o=this.getDataRange(),a=o.min!==null?o.min.valueOf():null,s=o.max!==null?o.max.valueOf():null,d=null,p=null;if(a!=null&&s!=null){var _=s-a;_<=0&&(_=10);var x=_/this.props.center.width,O={},C=0;if(Ot(H).call(H,this.itemSet.items,function(tt,ot){tt.groupShowing&&(O[ot]=tt.redraw(!0),C=O[ot].length)}),C>0)for(var Y=function(tt){Ot(H).call(H,O,function(ot){ot[tt]()})},j=0;j<C;j++)Y(j);if(Ot(H).call(H,this.itemSet.items,function(tt){var ot,wt,It=sC(tt),pt=uC(tt);r.options.rtl?(ot=It-(tt.getWidthRight()+10)*x,wt=pt+(tt.getWidthLeft()+10)*x):(ot=It-(tt.getWidthLeft()+10)*x,wt=pt+(tt.getWidthRight()+10)*x),ot<a&&(a=ot,d=tt),wt>s&&(s=wt,p=tt)}),d&&p){var G=d.getWidthLeft()+10,X=p.getWidthRight()+10,q=this.props.center.width-G-X;q>0&&(this.options.rtl?(a=sC(d)-X*_/q,s=uC(p)+G*_/q):(a=sC(d)-G*_/q,s=uC(p)+X*_/q))}}return{min:a!=null?new Date(a):null,max:s!=null?new Date(s):null}}},{key:"getDataRange",value:function(){var r,o=null,a=null;return this.itemsData&&Ot(r=this.itemsData).call(r,function(s){var d=H.convert(s.start,"Date").valueOf(),p=H.convert(s.end!=null?s.end:s.start,"Date").valueOf();(o===null||d<o)&&(o=d),(a===null||p>a)&&(a=p)}),{min:o!=null?new Date(o):null,max:a!=null?new Date(a):null}}},{key:"getEventProperties",value:function(r){var o=r.center?r.center.x:r.clientX,a=r.center?r.center.y:r.clientY,s=this.dom.centerContainer.getBoundingClientRect(),d=this.options.rtl?s.right-o:o-s.left,p=a-s.top,_=this.itemSet.itemFromTarget(r),x=this.itemSet.groupFromTarget(r),O=$t.customTimeFromTarget(r),C=this.itemSet.options.snap||null,Y=this.body.util.getScale(),j=this.body.util.getStep(),G=this._toTime(d),X=C?C(G,Y,j):G,q=H.getTarget(r),tt=null;return _!=null?tt="item":O!=null?tt="custom-time":H.hasParent(q,this.timeAxis.dom.foreground)||this.timeAxis2&&H.hasParent(q,this.timeAxis2.dom.foreground)?tt="axis":H.hasParent(q,this.itemSet.dom.labelSet)?tt="group-label":H.hasParent(q,this.currentTime.bar)?tt="current-time":H.hasParent(q,this.dom.center)&&(tt="background"),{event:r,item:_?_.id:null,isCluster:!!_&&!!_.isCluster,items:_?_.items||[]:null,group:x?x.groupId:null,customTime:O?O.options.id:null,what:tt,pageX:r.srcEvent?r.srcEvent.pageX:r.pageX,pageY:r.srcEvent?r.srcEvent.pageY:r.pageY,x:d,y:p,time:G,snappedTime:X}}},{key:"toggleRollingMode",value:function(){this.range.rolling?this.range.stopRolling():(this.options.rollingMode==null&&this.setOptions(this.options),this.range.startRolling())}},{key:"_redraw",value:function(){ge.prototype._redraw.call(this)}},{key:"_onFit",value:function(r){var o=r.start,a=r.end,s=r.animation;a?this.range.setRange(o,a,{animation:s}):this.moveTo(o.valueOf(),{animation:s})}}]),n}(ge);function sC(t){return H.convert(t.data.start,"Date").valueOf()}function uC(t){var e=t.data.end!=null?t.data.end:t.data.start;return H.convert(e,"Date").valueOf()}function iI(t,e){if(!e.parent)return!1;var n=t.options.rtl?t.props.rightContainer.height:t.props.leftContainer.height,r=t.props.center.height,o=e.parent,a=o.top,s=!0,d=t.timeAxis.options.orientation.axis,p=function(){return d=="bottom"?o.height-e.top-e.height:e.top},_=-1*t._getScrollTop(),x=a+p(),O=e.height;return x<_?a+n<=a+p()+O&&(a+=p()-t.itemSet.options.margin.item.vertical):x+O>_+n?a+=p()+O-n+t.itemSet.options.margin.item.vertical:s=!1,{shouldScroll:s,scrollOffset:a=Math.min(a,r-n),itemTop:x}}function nd(t){for(var e in t)t.hasOwnProperty(e)&&(t[e].redundant=t[e].used,t[e].used=[])}function va(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e].redundant){for(var n=0;n<t[e].redundant.length;n++)t[e].redundant[n].parentNode.removeChild(t[e].redundant[n]);t[e].redundant=[]}}function ps(t,e,n){var r;return e.hasOwnProperty(t)?e[t].redundant.length>0?(r=e[t].redundant[0],e[t].redundant.shift()):(r=document.createElementNS("http://www.w3.org/2000/svg",t),n.appendChild(r)):(r=document.createElementNS("http://www.w3.org/2000/svg",t),e[t]={used:[],redundant:[]},n.appendChild(r)),e[t].used.push(r),r}function $T(t,e,n,r){var o;return e.hasOwnProperty(t)?e[t].redundant.length>0?(o=e[t].redundant[0],e[t].redundant.shift()):(o=document.createElement(t),r!==void 0?n.insertBefore(o,r):n.appendChild(o)):(o=document.createElement(t),e[t]={used:[],redundant:[]},r!==void 0?n.insertBefore(o,r):n.appendChild(o)),e[t].used.push(o),o}function Yg(t,e,n,r,o,a){var s;if(n.style=="circle"?((s=ps("circle",r,o)).setAttributeNS(null,"cx",t),s.setAttributeNS(null,"cy",e),s.setAttributeNS(null,"r",.5*n.size)):((s=ps("rect",r,o)).setAttributeNS(null,"x",t-.5*n.size),s.setAttributeNS(null,"y",e-.5*n.size),s.setAttributeNS(null,"width",n.size),s.setAttributeNS(null,"height",n.size)),n.styles!==void 0&&s.setAttributeNS(null,"style",n.styles),s.setAttributeNS(null,"class",n.className+" vis-point"),a){var d=ps("text",r,o);a.xOffset&&(t+=a.xOffset),a.yOffset&&(e+=a.yOffset),a.content&&(d.textContent=a.content),a.className&&d.setAttributeNS(null,"class",a.className+" vis-label"),d.setAttributeNS(null,"x",t),d.setAttributeNS(null,"y",e)}return s}function lC(t,e,n,r,o,a,s,d){if(r!=0){r<0&&(e-=r*=-1);var p=ps("rect",a,s);p.setAttributeNS(null,"x",t-.5*n),p.setAttributeNS(null,"y",e),p.setAttributeNS(null,"width",n),p.setAttributeNS(null,"height",r),p.setAttributeNS(null,"class",o),d&&p.setAttributeNS(null,"style",d)}}var oI=function(){function t(e,n,r,o,a,s){var d=arguments.length>6&&arguments[6]!==void 0&&arguments[6],p=arguments.length>7&&arguments[7]!==void 0&&arguments[7];if(Se(this,t),this.majorSteps=[1,2,5,10],this.minorSteps=[.25,.5,1,2],this.customLines=null,this.containerHeight=a,this.majorCharHeight=s,this._start=e,this._end=n,this.scale=1,this.minorStepIdx=-1,this.magnitudefactor=1,this.determineScale(),this.zeroAlign=d,this.autoScaleStart=r,this.autoScaleEnd=o,this.formattingFunction=p,r||o){var _=this,x=function(O){var C=O-O%(_.magnitudefactor*_.minorSteps[_.minorStepIdx]);return O%(_.magnitudefactor*_.minorSteps[_.minorStepIdx])>_.magnitudefactor*_.minorSteps[_.minorStepIdx]*.5?C+_.magnitudefactor*_.minorSteps[_.minorStepIdx]:C};r&&(this._start-=2*this.magnitudefactor*this.minorSteps[this.minorStepIdx],this._start=x(this._start)),o&&(this._end+=this.magnitudefactor*this.minorSteps[this.minorStepIdx],this._end=x(this._end)),this.determineScale()}}return Ce(t,[{key:"setCharHeight",value:function(e){this.majorCharHeight=e}},{key:"setHeight",value:function(e){this.containerHeight=e}},{key:"determineScale",value:function(){var e=this._end-this._start;this.scale=this.containerHeight/e;var n=this.majorCharHeight/this.scale,r=e>0?Math.round(Math.log(e)/Math.LN10):0;this.minorStepIdx=-1,this.magnitudefactor=Math.pow(10,r);var o=0;r<0&&(o=r);for(var a=!1,s=o;Math.abs(s)<=Math.abs(r);s++){this.magnitudefactor=Math.pow(10,s);for(var d=0;d<this.minorSteps.length;d++)if(this.magnitudefactor*this.minorSteps[d]>=n){a=!0,this.minorStepIdx=d;break}if(a===!0)break}}},{key:"is_major",value:function(e){return e%(this.magnitudefactor*this.majorSteps[this.minorStepIdx])==0}},{key:"getStep",value:function(){return this.magnitudefactor*this.minorSteps[this.minorStepIdx]}},{key:"getFirstMajor",value:function(){var e=this.magnitudefactor*this.majorSteps[this.minorStepIdx];return this.convertValue(this._start+(e-this._start%e)%e)}},{key:"formatValue",value:function(e){var n=e.toPrecision(5);return typeof this.formattingFunction=="function"&&(n=this.formattingFunction(e)),typeof n=="number"?"".concat(n):typeof n=="string"?n:e.toPrecision(5)}},{key:"getLines",value:function(){for(var e=[],n=this.getStep(),r=(n-this._start%n)%n,o=this._start+r;this._end-o>1e-5;o+=n)o!=this._start&&e.push({major:this.is_major(o),y:this.convertValue(o),val:this.formatValue(o)});return e}},{key:"followScale",value:function(e){var n=this.minorStepIdx,r=this._start,o=this._end,a=this,s=function(){a.magnitudefactor*=2},d=function(){a.magnitudefactor/=2};e.minorStepIdx<=1&&this.minorStepIdx<=1||e.minorStepIdx>1&&this.minorStepIdx>1||(e.minorStepIdx<this.minorStepIdx?(this.minorStepIdx=1,n==2||s(),s()):(this.minorStepIdx=2,n==1||d(),d()));for(var p=e.convertValue(0),_=e.getStep()*e.scale,x=!1,O=0;!x&&O++<5;){this.scale=_/(this.minorSteps[this.minorStepIdx]*this.magnitudefactor);var C=this.containerHeight/this.scale;this._start=r,this._end=this._start+C;var Y=this._end*this.scale,j=this.magnitudefactor*this.majorSteps[this.minorStepIdx],G=this.getFirstMajor()-e.getFirstMajor();if(this.zeroAlign){var X=p-Y;this._end+=X/this.scale,this._start=this._end-C}else this.autoScaleStart?(this._start-=G/this.scale,this._end=this._start+C):(this._start+=j-G/this.scale,this._end=this._start+C);if(!this.autoScaleEnd&&this._end>o+1e-5)d(),x=!1;else{if(!this.autoScaleStart&&this._start<r-1e-5){if(!(this.zeroAlign&&r>=0)){d(),x=!1;continue}console.warn("Can't adhere to given 'min' range, due to zeroalign")}this.autoScaleStart&&this.autoScaleEnd&&C<o-r?(s(),x=!1):x=!0}}}},{key:"convertValue",value:function(e){return this.containerHeight-(e-this._start)*this.scale}},{key:"screenToValue",value:function(e){return(this.containerHeight-e)/this.scale+this._start}}]),t}();function AP(t,e){var n=Oo!==void 0&&Qr(t)||t["@@iterator"];if(!n){if(ce(t)||(n=function(p,_){var x;if(p){if(typeof p=="string")return aI(p,_);var O=vr(x=Object.prototype.toString.call(p)).call(x,8,-1);if(O==="Object"&&p.constructor&&(O=p.constructor.name),O==="Map"||O==="Set")return au(p);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return aI(p,_)}}(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(p){throw p},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,s=!0,d=!1;return{s:function(){n=n.call(t)},n:function(){var p=n.next();return s=p.done,p},e:function(p){d=!0,a=p},f:function(){try{s||n.return==null||n.return()}finally{if(d)throw a}}}}function aI(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function $P(t){var e=function(){if(typeof Reflect=="undefined"||!At||At.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(At(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var n,r=Be(t);if(e){var o=Be(this).constructor;n=At(r,arguments,o)}else n=r.apply(this,arguments);return ui(this,n)}}var cC=function(t){si(n,t);var e=$P(n);function n(r,o,a,s){var d;Se(this,n),(d=e.call(this)).id=Wh(),d.body=r,d.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:function(_){return"".concat(mg(_.toPrecision(3)))},title:{text:void 0,style:void 0}},right:{range:{min:void 0,max:void 0},format:function(_){return"".concat(mg(_.toPrecision(3)))},title:{text:void 0,style:void 0}}},d.linegraphOptions=s,d.linegraphSVG=a,d.props={},d.DOMelements={lines:{},labels:{},title:{}},d.dom={},d.scale=void 0,d.range={start:0,end:0},d.options=H.extend({},d.defaultOptions),d.conversionFactor=1,d.setOptions(o),d.width=Number("".concat(d.options.width).replace("px","")),d.minWidth=d.width,d.height=d.linegraphSVG.getBoundingClientRect().height,d.hidden=!1,d.stepPixels=25,d.zeroCrossing=-1,d.amountOfSteps=-1,d.lineOffset=0,d.master=!0,d.masterAxis=null,d.svgElements={},d.iconsRemoved=!1,d.groups={},d.amountOfGroups=0,d._create(),d.scale==null&&d._redrawLabels(),d.framework={svg:d.svg,svgElements:d.svgElements,options:d.options,groups:d.groups};var p=me(d);return d.body.emitter.on("verticalDrag",function(){p.dom.lineContainer.style.top="".concat(p.body.domProps.scrollTop,"px")}),d}return Ce(n,[{key:"addGroup",value:function(r,o){this.groups.hasOwnProperty(r)||(this.groups[r]=o),this.amountOfGroups+=1}},{key:"updateGroup",value:function(r,o){this.groups.hasOwnProperty(r)||(this.amountOfGroups+=1),this.groups[r]=o}},{key:"removeGroup",value:function(r){this.groups.hasOwnProperty(r)&&(delete this.groups[r],this.amountOfGroups-=1)}},{key:"setOptions",value:function(r){if(r){var o=!1;this.options.orientation!=r.orientation&&r.orientation!==void 0&&(o=!0),H.selectiveDeepExtend(["orientation","showMinorLabels","showMajorLabels","icons","majorLinesOffset","minorLinesOffset","labelOffsetX","labelOffsetY","iconWidth","width","visible","left","right","alignZeros"],this.options,r),this.minWidth=Number("".concat(this.options.width).replace("px","")),o===!0&&this.dom.frame&&(this.hide(),this.show())}}},{key:"_create",value:function(){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)}},{key:"_redrawGroupIcons",value:function(){var r;nd(this.svgElements);var o=this.options.iconWidth,a=11.5;r=this.options.orientation==="left"?4:this.width-o-4;var s=Jr(this.groups);Mr(s).call(s,function(x,O){return x<O?-1:1});var d,p=AP(s);try{for(p.s();!(d=p.n()).done;){var _=d.value;this.groups[_].visible!==!0||this.linegraphOptions.visibility[_]!==void 0&&this.linegraphOptions.visibility[_]!==!0||(this.groups[_].getLegend(o,15,this.framework,r,a),a+=19)}}catch(x){p.e(x)}finally{p.f()}va(this.svgElements),this.iconsRemoved=!1}},{key:"_cleanupIcons",value:function(){this.iconsRemoved===!1&&(nd(this.svgElements),va(this.svgElements),this.iconsRemoved=!0)}},{key:"show",value:function(){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"}},{key:"hide",value:function(){this.hidden=!0,this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame),this.dom.lineContainer.style.display="none"}},{key:"setRange",value:function(r,o){this.range.start=r,this.range.end=o}},{key:"redraw",value:function(){var r=!1,o=0;for(var a in this.dom.lineContainer.style.top="".concat(this.body.domProps.scrollTop,"px"),this.groups)this.groups.hasOwnProperty(a)&&(this.groups[a].visible!==!0||this.linegraphOptions.visibility[a]!==void 0&&this.linegraphOptions.visibility[a]!==!0||o++);if(this.amountOfGroups===0||o===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;var s=this.props,d=this.dom.frame;d.className="vis-data-axis",this._calculateCharSize();var p=this.options.orientation,_=this.options.showMinorLabels,x=this.options.showMajorLabels,O=this.body.dom.backgroundHorizontal.offsetWidth;s.minorLabelHeight=_?s.minorCharHeight:0,s.majorLabelHeight=x?s.majorCharHeight:0,s.minorLineWidth=O-this.lineOffset-this.width+2*this.options.minorLinesOffset,s.minorLineHeight=1,s.majorLineWidth=O-this.lineOffset-this.width+2*this.options.majorLinesOffset,s.majorLineHeight=1,p==="left"?(d.style.top="0",d.style.left="0",d.style.bottom="",d.style.width="".concat(this.width,"px"),d.style.height="".concat(this.height,"px"),this.props.width=this.body.domProps.left.width,this.props.height=this.body.domProps.left.height):(d.style.top="",d.style.bottom="0",d.style.left="0",d.style.width="".concat(this.width,"px"),d.style.height="".concat(this.height,"px"),this.props.width=this.body.domProps.right.width,this.props.height=this.body.domProps.right.height),r=this._redrawLabels(),r=this._isResized()||r,this.options.icons===!0?this._redrawGroupIcons():this._cleanupIcons(),this._redrawTitle(p)}return r}},{key:"_redrawLabels",value:function(){var r=this,o=!1;nd(this.DOMelements.lines),nd(this.DOMelements.labels);var a=this.options.orientation,s=this.options[a].range!=null?this.options[a].range:{},d=!0;s.max!=null&&(this.range.end=s.max,d=!1);var p=!0;s.min!=null&&(this.range.start=s.min,p=!1),this.scale=new oI(this.range.start,this.range.end,p,d,this.dom.frame.offsetHeight,this.props.majorCharHeight,this.options.alignZeros,this.options[a].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;var _=this.scale.getLines();Ot(_).call(_,function(C){var Y=C.y,j=C.major;r.options.showMinorLabels&&j===!1&&r._redrawLabel(Y-2,C.val,a,"vis-y-axis vis-minor",r.props.minorCharHeight),j&&Y>=0&&r._redrawLabel(Y-2,C.val,a,"vis-y-axis vis-major",r.props.majorCharHeight),r.master===!0&&(j?r._redrawLine(Y,a,"vis-grid vis-horizontal vis-major",r.options.majorLinesOffset,r.props.majorLineWidth):r._redrawLine(Y,a,"vis-grid vis-horizontal vis-minor",r.options.minorLinesOffset,r.props.minorLineWidth))});var x=0;this.options[a].title!==void 0&&this.options[a].title.text!==void 0&&(x=this.props.titleCharHeight);var O=this.options.icons===!0?Math.max(this.options.iconWidth,x)+this.options.labelOffsetX+15:x+this.options.labelOffsetX+15;return this.maxLabelSize>this.width-O&&this.options.visible===!0?(this.width=this.maxLabelSize+O,this.options.width="".concat(this.width,"px"),va(this.DOMelements.lines),va(this.DOMelements.labels),this.redraw(),o=!0):this.maxLabelSize<this.width-O&&this.options.visible===!0&&this.width>this.minWidth?(this.width=Math.max(this.minWidth,this.maxLabelSize+O),this.options.width="".concat(this.width,"px"),va(this.DOMelements.lines),va(this.DOMelements.labels),this.redraw(),o=!0):(va(this.DOMelements.lines),va(this.DOMelements.labels),o=!1),o}},{key:"convertValue",value:function(r){return this.scale.convertValue(r)}},{key:"screenToValue",value:function(r){return this.scale.screenToValue(r)}},{key:"_redrawLabel",value:function(r,o,a,s,d){var p=$T("div",this.DOMelements.labels,this.dom.frame);p.className=s,p.innerHTML=H.xss(o),a==="left"?(p.style.left="-".concat(this.options.labelOffsetX,"px"),p.style.textAlign="right"):(p.style.right="-".concat(this.options.labelOffsetX,"px"),p.style.textAlign="left"),p.style.top="".concat(r-.5*d+this.options.labelOffsetY,"px"),o+="";var _=Math.max(this.props.majorCharWidth,this.props.minorCharWidth);this.maxLabelSize<o.length*_&&(this.maxLabelSize=o.length*_)}},{key:"_redrawLine",value:function(r,o,a,s,d){if(this.master===!0){var p=$T("div",this.DOMelements.lines,this.dom.lineContainer);p.className=a,p.innerHTML="",o==="left"?p.style.left="".concat(this.width-s,"px"):p.style.right="".concat(this.width-s,"px"),p.style.width="".concat(d,"px"),p.style.top="".concat(r,"px")}}},{key:"_redrawTitle",value:function(r){if(nd(this.DOMelements.title),this.options[r].title!==void 0&&this.options[r].title.text!==void 0){var o=$T("div",this.DOMelements.title,this.dom.frame);o.className="vis-y-axis vis-title vis-".concat(r),o.innerHTML=H.xss(this.options[r].title.text),this.options[r].title.style!==void 0&&H.addCssText(o,this.options[r].title.style),r==="left"?o.style.left="".concat(this.props.titleCharHeight,"px"):o.style.right="".concat(this.props.titleCharHeight,"px"),o.style.width="".concat(this.height,"px")}va(this.DOMelements.title)}},{key:"_calculateCharSize",value:function(){if(!("minorCharHeight"in this.props)){var r=document.createTextNode("0"),o=document.createElement("div");o.className="vis-y-axis vis-minor vis-measure",o.appendChild(r),this.dom.frame.appendChild(o),this.props.minorCharHeight=o.clientHeight,this.props.minorCharWidth=o.clientWidth,this.dom.frame.removeChild(o)}if(!("majorCharHeight"in this.props)){var a=document.createTextNode("0"),s=document.createElement("div");s.className="vis-y-axis vis-major vis-measure",s.appendChild(a),this.dom.frame.appendChild(s),this.props.majorCharHeight=s.clientHeight,this.props.majorCharWidth=s.clientWidth,this.dom.frame.removeChild(s)}if(!("titleCharHeight"in this.props)){var d=document.createTextNode("0"),p=document.createElement("div");p.className="vis-y-axis vis-title vis-measure",p.appendChild(d),this.dom.frame.appendChild(p),this.props.titleCharHeight=p.clientHeight,this.props.titleCharWidth=p.clientWidth,this.dom.frame.removeChild(p)}}}]),n}(Ao);function l_(t,e){}function hC(t,e){return{style:(e=e===void 0?{}: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 Ii(t,e){}function Zn(t,e){}function nc(t,e,n,r){this.id=e,this.options=H.selectiveBridgeObject(["sampling","style","sort","yAxisOrientation","barChart","drawPoints","shaded","interpolation","zIndex","excludeFromStacking","excludeFromLegend"],n),this.usingDefaultStyle=t.className===void 0,this.groupsUsingDefaultStyles=r,this.zeroPosition=0,this.update(t),this.usingDefaultStyle==1&&(this.groupsUsingDefaultStyles[0]+=1),this.itemsData=[],this.visible=t.visible===void 0||t.visible}function lo(t,e,n,r){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=n,this.options=H.extend({},this.defaultOptions),this.linegraphOptions=r,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)}l_.draw=function(t,e,n,r){r=r||0;for(var o=function(d,p){var _=void 0;return d.options&&d.options.drawPoints&&d.options.drawPoints.onRender&&typeof d.options.drawPoints.onRender=="function"&&(_=d.options.drawPoints.onRender),p.group.options&&p.group.options.drawPoints&&p.group.options.drawPoints.onRender&&typeof p.group.options.drawPoints.onRender=="function"&&(_=p.group.options.drawPoints.onRender),_}(n,e),a=0;a<t.length;a++)if(o){var s=o(t[a],e);s!==!0&&Jt(s)!=="object"||Yg(t[a].screen_x+r,t[a].screen_y,hC(e,s),n.svgElements,n.svg,t[a].label)}else Yg(t[a].screen_x+r,t[a].screen_y,hC(e),n.svgElements,n.svg,t[a].label)},l_.drawIcon=function(t,e,n,r,o,a){var s=.5*o,d=ps("rect",a.svgElements,a.svg);d.setAttributeNS(null,"x",e),d.setAttributeNS(null,"y",n-s),d.setAttributeNS(null,"width",r),d.setAttributeNS(null,"height",2*s),d.setAttributeNS(null,"class","vis-outline"),Yg(e+.5*r,n,hC(t),a.svgElements,a.svg)},Ii.drawIcon=function(t,e,n,r,o,a){var s=.5*o,d=ps("rect",a.svgElements,a.svg);d.setAttributeNS(null,"x",e),d.setAttributeNS(null,"y",n-s),d.setAttributeNS(null,"width",r),d.setAttributeNS(null,"height",2*s),d.setAttributeNS(null,"class","vis-outline");var p=Math.round(.3*r),_=t.options.barChart.width/p,x=Math.round(.4*o),O=Math.round(.75*o),C=Math.round((r-2*p)/3);if(lC(e+.5*p+C,n+s-x-1,p,x,t.className+" vis-bar",a.svgElements,a.svg,t.style),lC(e+1.5*p+C+2,n+s-O-1,p,O,t.className+" vis-bar",a.svgElements,a.svg,t.style),t.options.drawPoints.enabled==1){var Y={style:t.options.drawPoints.style,styles:t.options.drawPoints.styles,size:t.options.drawPoints.size/_,className:t.className};Yg(e+.5*p+C,n+s-x-1,Y,a.svgElements,a.svg),Yg(e+1.5*p+C+2,n+s-O-1,Y,a.svgElements,a.svg)}},Ii.draw=function(t,e,n){var r,o,a,s,d,p,_=[],x={},O=0;for(d=0;d<t.length;d++)if((s=n.groups[t[d]]).options.style==="bar"&&s.visible===!0&&(n.options.groups.visibility[t[d]]===void 0||n.options.groups.visibility[t[d]]===!0))for(p=0;p<e[t[d]].length;p++)_.push({screen_x:e[t[d]][p].screen_x,screen_end:e[t[d]][p].screen_end,screen_y:e[t[d]][p].screen_y,x:e[t[d]][p].x,end:e[t[d]][p].end,y:e[t[d]][p].y,groupId:t[d],label:e[t[d]][p].label}),O+=1;if(O!==0)for(Mr(_).call(_,function(tt,ot){return tt.screen_x===ot.screen_x?tt.groupId<ot.groupId?-1:1:tt.screen_x-ot.screen_x}),Ii._getDataIntersections(x,_),d=0;d<_.length;d++){var C=(s=n.groups[_[d].groupId]).options.barChart.minWidth!=null?s.options.barChart.minWidth:.1*s.options.barChart.width,Y=0;if(x[o=_[d].screen_x]===void 0)d+1<_.length&&(r=Math.abs(_[d+1].screen_x-o)),a=Ii._getSafeDrawData(r,s,C);else{var j=d+(x[o].amount-x[o].resolved);j<_.length&&(r=Math.abs(_[j].screen_x-o)),a=Ii._getSafeDrawData(r,s,C),x[o].resolved+=1,s.options.stack===!0&&s.options.excludeFromStacking!==!0?_[d].screen_y<s.zeroPosition?(Y=x[o].accumulatedNegative,x[o].accumulatedNegative+=s.zeroPosition-_[d].screen_y):(Y=x[o].accumulatedPositive,x[o].accumulatedPositive+=s.zeroPosition-_[d].screen_y):s.options.barChart.sideBySide===!0&&(a.width=a.width/x[o].amount,a.offset+=x[o].resolved*a.width-.5*a.width*(x[o].amount+1))}var G=a.width,X=_[d].screen_x;if(_[d].screen_end!=null?X+=.5*(G=_[d].screen_end-_[d].screen_x):X+=a.offset,lC(X,_[d].screen_y-Y,G,s.zeroPosition-_[d].screen_y,s.className+" vis-bar",n.svgElements,n.svg,s.style),s.options.drawPoints.enabled===!0){var q={screen_x:_[d].screen_x,screen_y:_[d].screen_y-Y,x:_[d].x,y:_[d].y,groupId:_[d].groupId,label:_[d].label};l_.draw([q],s,n,a.offset)}}},Ii._getDataIntersections=function(t,e){for(var n,r=0;r<e.length;r++)r+1<e.length&&(n=Math.abs(e[r+1].screen_x-e[r].screen_x)),r>0&&(n=Math.min(n,Math.abs(e[r-1].screen_x-e[r].screen_x))),n===0&&(t[e[r].screen_x]===void 0&&(t[e[r].screen_x]={amount:0,resolved:0,accumulatedPositive:0,accumulatedNegative:0}),t[e[r].screen_x].amount+=1)},Ii._getSafeDrawData=function(t,e,n){var r,o;return t<e.options.barChart.width&&t>0?(r=t<n?n:t,o=0,e.options.barChart.align==="left"?o-=.5*t:e.options.barChart.align==="right"&&(o+=.5*t)):(r=e.options.barChart.width,o=0,e.options.barChart.align==="left"?o-=.5*e.options.barChart.width:e.options.barChart.align==="right"&&(o+=.5*e.options.barChart.width)),{width:r,offset:o}},Ii.getStackedYRange=function(t,e,n,r,o){if(t.length>0){Mr(t).call(t,function(s,d){return s.screen_x===d.screen_x?s.groupId<d.groupId?-1:1:s.screen_x-d.screen_x});var a={};Ii._getDataIntersections(a,t),e[r]=Ii._getStackedYRange(a,t),e[r].yAxisOrientation=o,n.push(r)}},Ii._getStackedYRange=function(t,e){for(var n,r=e[0].screen_y,o=e[0].screen_y,a=0;a<e.length;a++)t[n=e[a].screen_x]===void 0?(r=r>e[a].screen_y?e[a].screen_y:r,o=o<e[a].screen_y?e[a].screen_y:o):e[a].screen_y<0?t[n].accumulatedNegative+=e[a].screen_y:t[n].accumulatedPositive+=e[a].screen_y;for(var s in t)t.hasOwnProperty(s)&&(r=(r=r>t[s].accumulatedNegative?t[s].accumulatedNegative:r)>t[s].accumulatedPositive?t[s].accumulatedPositive:r,o=(o=o<t[s].accumulatedNegative?t[s].accumulatedNegative:o)<t[s].accumulatedPositive?t[s].accumulatedPositive:o);return{min:r,max:o}},Zn.calcPath=function(t,e){if(t!=null&&t.length>0)return e.options.interpolation.enabled==1?Zn._catmullRom(t,e):Zn._linear(t)},Zn.drawIcon=function(t,e,n,r,o,a){var s,d,p=.5*o,_=ps("rect",a.svgElements,a.svg);_.setAttributeNS(null,"x",e),_.setAttributeNS(null,"y",n-p),_.setAttributeNS(null,"width",r),_.setAttributeNS(null,"height",2*p),_.setAttributeNS(null,"class","vis-outline"),(s=ps("path",a.svgElements,a.svg)).setAttributeNS(null,"class",t.className),t.style!==void 0&&s.setAttributeNS(null,"style",t.style),s.setAttributeNS(null,"d","M"+e+","+n+" L"+(e+r)+","+n),t.options.shaded.enabled==1&&(d=ps("path",a.svgElements,a.svg),t.options.shaded.orientation=="top"?d.setAttributeNS(null,"d","M"+e+", "+(n-p)+"L"+e+","+n+" L"+(e+r)+","+n+" L"+(e+r)+","+(n-p)):d.setAttributeNS(null,"d","M"+e+","+n+" L"+e+","+(n+p)+" L"+(e+r)+","+(n+p)+"L"+(e+r)+","+n),d.setAttributeNS(null,"class",t.className+" vis-icon-fill"),t.options.shaded.style!==void 0&&t.options.shaded.style!==""&&d.setAttributeNS(null,"style",t.options.shaded.style)),t.options.drawPoints.enabled==1&&Yg(e+.5*r,n,{style:t.options.drawPoints.style,styles:t.options.drawPoints.styles,size:t.options.drawPoints.size,className:t.className},a.svgElements,a.svg)},Zn.drawShading=function(t,e,n,r){if(e.options.shaded.enabled==1){var o,a=Number(r.svg.style.height.replace("px","")),s=ps("path",r.svgElements,r.svg),d="L";e.options.interpolation.enabled==1&&(d="C");var p=0;p=e.options.shaded.orientation=="top"?0:e.options.shaded.orientation=="bottom"?a:Math.min(Math.max(0,e.zeroPosition),a),o=e.options.shaded.orientation=="group"&&n!=null&&n!=null?"M"+t[0][0]+","+t[0][1]+" "+this.serializePath(t,d,!1)+" L"+n[n.length-1][0]+","+n[n.length-1][1]+" "+this.serializePath(n,d,!0)+n[0][0]+","+n[0][1]+" Z":"M"+t[0][0]+","+t[0][1]+" "+this.serializePath(t,d,!1)+" V"+p+" 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)}},Zn.draw=function(t,e,n){if(t!=null&&t!=null){var r=ps("path",n.svgElements,n.svg);r.setAttributeNS(null,"class",e.className),e.style!==void 0&&r.setAttributeNS(null,"style",e.style);var o="L";e.options.interpolation.enabled==1&&(o="C"),r.setAttributeNS(null,"d","M"+t[0][0]+","+t[0][1]+" "+this.serializePath(t,o,!1))}},Zn.serializePath=function(t,e,n){if(t.length<2)return"";var r,o=e;if(n)for(r=t.length-2;r>0;r--)o+=t[r][0]+","+t[r][1]+" ";else for(r=1;r<t.length;r++)o+=t[r][0]+","+t[r][1]+" ";return o},Zn._catmullRomUniform=function(t){var e,n,r,o,a,s,d=[];d.push([Math.round(t[0].screen_x),Math.round(t[0].screen_y)]);for(var p=1/6,_=t.length,x=0;x<_-1;x++)e=x==0?t[0]:t[x-1],n=t[x],r=t[x+1],o=x+2<_?t[x+2]:r,a={screen_x:(-e.screen_x+6*n.screen_x+r.screen_x)*p,screen_y:(-e.screen_y+6*n.screen_y+r.screen_y)*p},s={screen_x:(n.screen_x+6*r.screen_x-o.screen_x)*p,screen_y:(n.screen_y+6*r.screen_y-o.screen_y)*p},d.push([a.screen_x,a.screen_y]),d.push([s.screen_x,s.screen_y]),d.push([r.screen_x,r.screen_y]);return d},Zn._catmullRom=function(t,e){var n=e.options.interpolation.alpha;if(n==0||n===void 0)return this._catmullRomUniform(t);var r,o,a,s,d,p,_,x,O,C,Y,j,G,X,q,tt,ot,wt,It,pt=[];pt.push([Math.round(t[0].screen_x),Math.round(t[0].screen_y)]);for(var bt=t.length,ut=0;ut<bt-1;ut++)r=ut==0?t[0]:t[ut-1],o=t[ut],a=t[ut+1],s=ut+2<bt?t[ut+2]:a,_=Math.sqrt(Math.pow(r.screen_x-o.screen_x,2)+Math.pow(r.screen_y-o.screen_y,2)),x=Math.sqrt(Math.pow(o.screen_x-a.screen_x,2)+Math.pow(o.screen_y-a.screen_y,2)),O=Math.sqrt(Math.pow(a.screen_x-s.screen_x,2)+Math.pow(a.screen_y-s.screen_y,2)),X=Math.pow(O,n),tt=Math.pow(O,2*n),q=Math.pow(x,n),ot=Math.pow(x,2*n),It=Math.pow(_,n),C=2*(wt=Math.pow(_,2*n))+3*It*q+ot,Y=2*tt+3*X*q+ot,(j=3*It*(It+q))>0&&(j=1/j),(G=3*X*(X+q))>0&&(G=1/G),d={screen_x:(-ot*r.screen_x+C*o.screen_x+wt*a.screen_x)*j,screen_y:(-ot*r.screen_y+C*o.screen_y+wt*a.screen_y)*j},p={screen_x:(tt*o.screen_x+Y*a.screen_x-ot*s.screen_x)*G,screen_y:(tt*o.screen_y+Y*a.screen_y-ot*s.screen_y)*G},d.screen_x==0&&d.screen_y==0&&(d=o),p.screen_x==0&&p.screen_y==0&&(p=a),pt.push([d.screen_x,d.screen_y]),pt.push([p.screen_x,p.screen_y]),pt.push([a.screen_x,a.screen_y]);return pt},Zn._linear=function(t){for(var e=[],n=0;n<t.length;n++)e.push([t[n].screen_x,t[n].screen_y]);return e},nc.prototype.setItems=function(t){t!=null?(this.itemsData=t,Mr(this.options)==1&&H.insertSort(this.itemsData,function(e,n){return e.x>n.x?1:-1})):this.itemsData=[]},nc.prototype.getItems=function(){return this.itemsData},nc.prototype.setZeroPosition=function(t){this.zeroPosition=t},nc.prototype.setOptions=function(t){t!==void 0&&(H.selectiveDeepExtend(["sampling","style","sort","yAxisOrientation","barChart","zIndex","excludeFromStacking","excludeFromLegend"],this.options,t),typeof t.drawPoints=="function"&&(t.drawPoints={onRender:t.drawPoints}),H.mergeOptions(this.options,t,"interpolation"),H.mergeOptions(this.options,t,"drawPoints"),H.mergeOptions(this.options,t,"shaded"),t.interpolation&&Jt(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)))},nc.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||t.visible,this.style=t.style,this.setOptions(t.options)},nc.prototype.getLegend=function(t,e,n,r,o){switch(n!=null&&n!=null||(n={svg:document.createElementNS("http://www.w3.org/2000/svg","svg"),svgElements:{},options:this.options,groups:[this]}),r!=null&&r!=null||(r=0),o!=null&&o!=null||(o=.5*e),this.options.style){case"line":Zn.drawIcon(this,r,o,t,e,n);break;case"points":case"point":l_.drawIcon(this,r,o,t,e,n);break;case"bar":Ii.drawIcon(this,r,o,t,e,n)}return{icon:n.svg,label:this.content,orientation:this.options.yAxisOrientation}},nc.prototype.getYRange=function(t){for(var e=t[0].y,n=t[0].y,r=0;r<t.length;r++)e=e>t[r].y?t[r].y:e,n=n<t[r].y?t[r].y:n;return{min:e,max:n,yAxisOrientation:this.options.yAxisOrientation}},lo.prototype=new Ao,lo.prototype.clear=function(){this.groups={},this.amountOfGroups=0},lo.prototype.addGroup=function(t,e){e.options.excludeFromLegend!=1&&(this.groups.hasOwnProperty(t)||(this.groups[t]=e),this.amountOfGroups+=1)},lo.prototype.updateGroup=function(t,e){this.groups[t]=e},lo.prototype.removeGroup=function(t){this.groups.hasOwnProperty(t)&&(delete this.groups[t],this.amountOfGroups-=1)},lo.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)},lo.prototype.hide=function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame)},lo.prototype.show=function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame)},lo.prototype.setOptions=function(t){H.selectiveDeepExtend(["enabled","orientation","icons","left","right"],this.options,t)},lo.prototype.redraw=function(){var t=0,e=Jr(this.groups);Mr(e).call(e,function(s,d){return s<d?-1:1});for(var n=0;n<e.length;n++){var r=e[n];this.groups[r].visible!=1||this.linegraphOptions.visibility[r]!==void 0&&this.linegraphOptions.visibility[r]!=1||t++}if(this.options[this.side].visible==0||this.amountOfGroups==0||this.options.enabled==0||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 o=this.body.domProps.center.height-this.body.domProps.centerContainer.height;this.dom.frame.style.bottom=4+o+Number(this.body.dom.center.style.top.replace("px",""))+"px",this.dom.frame.style.top=""}this.options.icons==0?(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 a="";for(n=0;n<e.length;n++)r=e[n],this.groups[r].visible!=1||this.linegraphOptions.visibility[r]!==void 0&&this.linegraphOptions.visibility[r]!=1||(a+=this.groups[r].content+"<br />");this.dom.textArea.innerHTML=H.xss(a),this.dom.textArea.style.lineHeight=.75*this.options.iconSize+this.options.iconSpacing+"px"}},lo.prototype.drawLegendIcons=function(){if(this.dom.frame.parentNode){var t=Jr(this.groups);Mr(t).call(t,function(x,O){return x<O?-1:1}),nd(_=this.svgElements),va(_),nd(_);var e=window.getComputedStyle(this.dom.frame).paddingTop,n=Number(e.replace("px","")),r=n,o=this.options.iconSize,a=.75*this.options.iconSize,s=n+.5*a+3;this.svg.style.width=o+5+n+"px";for(var d=0;d<t.length;d++){var p=t[d];this.groups[p].visible!=1||this.linegraphOptions.visibility[p]!==void 0&&this.linegraphOptions.visibility[p]!=1||(this.groups[p].getLegend(o,a,this.framework,r,s),s+=a+this.options.iconSpacing)}}var _};var MT="__ungrouped__";function He(t,e){this.id=Wh(),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=H.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 n=this;this.itemsData=null,this.groupsData=null,this.itemListeners={add:function(r,o,a){n._onAdd(o.items)},update:function(r,o,a){n._onUpdate(o.items)},remove:function(r,o,a){n._onRemove(o.items)}},this.groupListeners={add:function(r,o,a){n._onAddGroups(o.items)},update:function(r,o,a){n._onUpdateGroups(o.items)},remove:function(r,o,a){n._onRemoveGroups(o.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(){n.svg.style.left=H.option.asSize(-n.props.width),n.forceGraphUpdate=!0,n.redraw.call(n)}),this._create(),this.framework={svg:this.svg,svgElements:this.svgElements,options:this.options,groups:this.groups}}He.prototype=new Ao,He.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 cC(this.body,this.options.dataAxis,this.svg,this.options.groups),this.options.dataAxis.orientation="right",this.yAxisRight=new cC(this.body,this.options.dataAxis,this.svg,this.options.groups),delete this.options.dataAxis.orientation,this.legendLeft=new lo(this.body,this.options.legend,"left",this.options.groups),this.legendRight=new lo(this.body,this.options.legend,"right",this.options.groups),this.show()},He.prototype.setOptions=function(t){t&&(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&&Oi((t.graphHeight+"").replace("px",""))<this.body.domProps.centerContainer.height&&(this.updateSVGheight=!0),H.selectiveDeepExtend(["sampling","defaultGroup","stack","height","graphHeight","yAxisOrientation","style","barChart","dataAxis","sort","groups"],this.options,t),H.mergeOptions(this.options,t,"interpolation"),H.mergeOptions(this.options,t,"drawPoints"),H.mergeOptions(this.options,t,"shaded"),H.mergeOptions(this.options,t,"legend"),t.interpolation&&Jt(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)),this.groups.hasOwnProperty(MT)&&this.groups[MT].setOptions(t)),this.dom.frame&&(this.forceGraphUpdate=!0,this.body.emitter.emit("_change",{queue:!0}))},He.prototype.hide=function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame)},He.prototype.show=function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame)},He.prototype.setItems=function(t){var e,n=this,r=this.itemsData;if(t){if(!ss(t))throw new TypeError("Data must implement the interface of DataSet or DataView");this.itemsData=zh(t)}else this.itemsData=null;if(r&&(Ot(H).call(H,this.itemListeners,function(a,s){r.off(s,a)}),r.dispose(),e=r.getIds(),this._onRemove(e)),this.itemsData){var o=this.id;Ot(H).call(H,this.itemListeners,function(a,s){n.itemsData.on(s,a,o)}),e=this.itemsData.getIds(),this._onAdd(e)}},He.prototype.setGroups=function(t){var e,n=this;if(this.groupsData){Ot(H).call(H,this.groupListeners,function(a,s){n.groupsData.off(s,a)}),e=this.groupsData.getIds(),this.groupsData=null;for(var r=0;r<e.length;r++)this._removeGroup(e[r])}if(t){if(!ss(t))throw new TypeError("Data must implement the interface of DataSet or DataView");this.groupsData=t}else this.groupsData=null;if(this.groupsData){var o=this.id;Ot(H).call(H,this.groupListeners,function(a,s){n.groupsData.on(s,a,o)}),e=this.groupsData.getIds(),this._onAddGroups(e)}},He.prototype._onUpdate=function(t){this._updateAllGroupData(t)},He.prototype._onAdd=function(t){this._onUpdate(t)},He.prototype._onRemove=function(t){this._onUpdate(t)},He.prototype._onUpdateGroups=function(t){this._updateAllGroupData(null,t)},He.prototype._onAddGroups=function(t){this._onUpdateGroups(t)},He.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})},He.prototype._removeGroup=function(t){this.groups.hasOwnProperty(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])},He.prototype._updateGroup=function(t,e){this.groups.hasOwnProperty(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 nc(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()},He.prototype._updateAllGroupData=function(t,e){if(this.itemsData!=null){var n={},r=this.itemsData.get(),o=this.itemsData.idProp,a={};t&&Br(t).call(t,function(X){a[X]=X});for(var s={},d=0;d<r.length;d++){var p=r[d],_=p.group;_==null&&(_=MT),s.hasOwnProperty(_)?s[_]++:s[_]=1}var x={};if(!e&&t){for(_ in this.groups)if(this.groups.hasOwnProperty(_)){var O=(G=this.groups[_]).getItems();n[_]=ve(O).call(O,function(X){return x[X[o]]=X[o],X[o]!==a[X[o]]});var C=s[_];s[_]-=n[_].length,n[_].length<C&&(n[_][C-1]={})}}for(d=0;d<r.length;d++)if((_=(p=r[d]).group)==null&&(_=MT),e||!t||p[o]===a[p[o]]||!x.hasOwnProperty(p[o])){n.hasOwnProperty(_)||(n[_]=new Array(s[_]));var Y=H.bridgeObject(p);Y.x=H.convert(p.x,"Date"),Y.end=H.convert(p.end,"Date"),Y.orginalY=p.y,Y.y=Number(p.y),Y[o]=p[o];var j=n[_].length-s[_]--;n[_][j]=Y}for(_ in this.groups)this.groups.hasOwnProperty(_)&&(n.hasOwnProperty(_)||(n[_]=new Array(0)));for(_ in n)if(n.hasOwnProperty(_))if(n[_].length==0)this.groups.hasOwnProperty(_)&&this._removeGroup(_);else{var G=void 0;this.groupsData!=null&&(G=this.groupsData.get(_)),G==null&&(G={id:_,content:this.options.defaultGroup+_}),this._updateGroup(G,_),this.groups[_].setItems(n[_])}this.forceGraphUpdate=!0,this.body.emitter.emit("_change",{queue:!0})}},He.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,n=this.body.range.end-this.body.range.start,r=n!=this.lastVisibleInterval;if(this.lastVisibleInterval=n,t==1&&(this.svg.style.width=H.option.asSize(3*this.props.width),this.svg.style.left=H.option.asSize(-this.props.width),Ie(e=this.options.height+"").call(e,"%")==-1&&this.updateSVGheightOnResize!=1||(this.updateSVGheight=!0)),this.updateSVGheight==1?(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==1||r==1||this.abortedGraphUpdate==1||this.forceGraphUpdate==1)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 o=this.body.range.start-this.lastStart,a=this.body.range.end-this.body.range.start;if(this.props.width!=0){var s=o*(this.props.width/a);this.svg.style.left=-this.props.width-s+"px"}}return this.legendLeft.redraw(),this.legendRight.redraw(),t},He.prototype._getSortedGroupIds=function(){var t=[];for(var e in this.groups)if(this.groups.hasOwnProperty(e)){var n=this.groups[e];n.visible!=1||this.options.groups.visibility[e]!==void 0&&this.options.groups.visibility[e]!=1||t.push({id:e,zIndex:n.options.zIndex})}H.insertSort(t,function(a,s){var d=a.zIndex,p=s.zIndex;return d===void 0&&(d=0),p===void 0&&(p=0),d==p?0:d<p?-1:1});for(var r=new Array(t.length),o=0;o<t.length;o++)r[o]=t[o].id;return r},He.prototype._updateGraph=function(){if(nd(this.svgElements),this.props.width!=0&&this.itemsData!=null){var t,e,n={},r=this.body.util.toGlobalTime(-this.body.domProps.root.width),o=this.body.util.toGlobalTime(2*this.body.domProps.root.width),a=this._getSortedGroupIds();if(a.length>0){var s={};for(this._getRelevantData(a,s,r,o),this._applySampling(a,s),e=0;e<a.length;e++)this._convertXcoordinates(s[a[e]]);if(this._getYRanges(a,s,n),this._updateYAxis(a,n)==1)return va(this.svgElements),this.abortedGraphUpdate=!0,!0;this.abortedGraphUpdate=!1;var d=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||(d!=null&&(this._stack(s[t.id],s[d.id]),t.options.shaded.enabled==1&&t.options.shaded.orientation!=="group"&&(t.options.shaded.orientation=="top"&&d.options.shaded.orientation!=="group"?(d.options.shaded.orientation="group",d.options.shaded.groupId=t.id):(t.options.shaded.orientation="group",t.options.shaded.groupId=d.id))),d=t)),this._convertYcoordinates(s[a[e]],t);var p={};for(e=0;e<a.length;e++)if((t=this.groups[a[e]]).options.style==="line"&&t.options.shaded.enabled==1){var _=s[a[e]];if(_==null||_.length==0)continue;if(p.hasOwnProperty(a[e])||(p[a[e]]=Zn.calcPath(_,t)),t.options.shaded.orientation==="group"){var x=t.options.shaded.groupId;if(Ie(a).call(a,x)===-1){console.log(t.id+": Unknown shading group target given:"+x);continue}p.hasOwnProperty(x)||(p[x]=Zn.calcPath(s[x],this.groups[x])),Zn.drawShading(p[a[e]],t,p[x],this.framework)}else Zn.drawShading(p[a[e]],t,void 0,this.framework)}for(Ii.draw(a,s,this.framework),e=0;e<a.length;e++)if(t=this.groups[a[e]],s[a[e]].length>0)switch(t.options.style){case"line":p.hasOwnProperty(a[e])||(p[a[e]]=Zn.calcPath(s[a[e]],t)),Zn.draw(p[a[e]],t,this.framework);case"point":case"points":t.options.style!="point"&&t.options.style!="points"&&t.options.drawPoints.enabled!=1||l_.draw(s[a[e]],t,this.framework)}}}return va(this.svgElements),!1},He.prototype._stack=function(t,e){var n,r,o,a,s;n=0;for(var d=0;d<t.length;d++){a=void 0,s=void 0;for(var p=n;p<e.length;p++){if(e[p].x===t[d].x){a=e[p],s=e[p],n=p;break}if(e[p].x>t[d].x){s=e[p],a=p==0?s:e[p-1],n=p;break}}s===void 0&&(a=e[e.length-1],s=e[e.length-1]),r=s.x-a.x,o=s.y-a.y,t[d].y=r==0?t[d].orginalY+s.y:t[d].orginalY+o/r*(t[d].x-a.x)+a.y}},He.prototype._getRelevantData=function(t,e,n,r){var o,a,s,d;if(t.length>0)for(a=0;a<t.length;a++){var p=(o=this.groups[t[a]]).getItems();if(Mr(o.options)==1){var _=function(Y,j){return Y.getTime()==j.getTime()?0:Y<j?-1:1},x=Math.max(0,H.binarySearchValue(p,n,"x","before",_)),O=Math.min(p.length,H.binarySearchValue(p,r,"x","after",_)+1);O<=0&&(O=p.length);var C=new Array(O-x);for(s=x;s<O;s++)d=o.itemsData[s],C[s-x]=d;e[t[a]]=C}else e[t[a]]=o.itemsData}},He.prototype._applySampling=function(t,e){if(t.length>0){for(var n=0;n<t.length;n++)if(this.groups[t[n]].options.sampling==1){var r=e[t[n]];if(r.length>0){var o,a=r.length,s=a/(this.body.util.toGlobalScreen(r[r.length-1].x)-this.body.util.toGlobalScreen(r[0].x));o=Math.min(Math.ceil(.2*a),Math.max(1,Math.round(s)));for(var d=new Array(a),p=0;p<a;p+=o)d[Math.round(p/o)]=r[p];e[t[n]]=li(d).call(d,0,Math.round(a/o))}}}},He.prototype._getYRanges=function(t,e,n){var r,o,a,s,d=[],p=[];if(t.length>0){for(a=0;a<t.length;a++)r=e[t[a]],s=this.groups[t[a]].options,r.length>0&&(o=this.groups[t[a]],s.stack===!0&&s.style==="bar"?s.yAxisOrientation==="left"?d=Ke(d).call(d,r):p=Ke(p).call(p,r):n[t[a]]=o.getYRange(r,t[a]));Ii.getStackedYRange(d,n,t,"__barStackLeft","left"),Ii.getStackedYRange(p,n,t,"__barStackRight","right")}},He.prototype._updateYAxis=function(t,e){var n,r,o=!1,a=!1,s=!1,d=1e9,p=1e9,_=-1e9,x=-1e9;if(t.length>0){for(var O=0;O<t.length;O++){var C=this.groups[t[O]];C&&C.options.yAxisOrientation!="right"?(a=!0,d=1e9,_=-1e9):C&&C.options.yAxisOrientation&&(s=!0,p=1e9,x=-1e9)}for(O=0;O<t.length;O++)e.hasOwnProperty(t[O])&&e[t[O]].ignore!==!0&&(n=e[t[O]].min,r=e[t[O]].max,e[t[O]].yAxisOrientation!="right"?(a=!0,d=d>n?n:d,_=_<r?r:_):(s=!0,p=p>n?n:p,x=x<r?r:x));a==1&&this.yAxisLeft.setRange(d,_),s==1&&this.yAxisRight.setRange(p,x)}o=this._toggleAxisVisiblity(a,this.yAxisLeft)||o,o=this._toggleAxisVisiblity(s,this.yAxisRight)||o,s==1&&a==1?(this.yAxisLeft.drawIcons=!0,this.yAxisRight.drawIcons=!0):(this.yAxisLeft.drawIcons=!1,this.yAxisRight.drawIcons=!1),this.yAxisRight.master=!a,this.yAxisRight.masterAxis=this.yAxisLeft,this.yAxisRight.master==0?(this.yAxisLeft.lineOffset=s==1?this.yAxisRight.width:0,o=this.yAxisLeft.redraw()||o,o=this.yAxisRight.redraw()||o):o=this.yAxisRight.redraw()||o;var Y=["__barStackLeft","__barStackRight","__lineStackLeft","__lineStackRight"];for(O=0;O<Y.length;O++)Ie(t).call(t,Y[O])!=-1&&li(t).call(t,Ie(t).call(t,Y[O]),1);return o},He.prototype._toggleAxisVisiblity=function(t,e){var n=!1;return t==0?e.dom.frame.parentNode&&e.hidden==0&&(e.hide(),n=!0):e.dom.frame.parentNode||e.hidden!=1||(e.show(),n=!0),n},He.prototype._convertXcoordinates=function(t){for(var e=this.body.util.toScreen,n=0;n<t.length;n++)t[n].screen_x=e(t[n].x)+this.props.width,t[n].screen_y=t[n].y,t[n].end!=null?t[n].screen_end=e(t[n].end)+this.props.width:t[n].screen_end=void 0},He.prototype._convertYcoordinates=function(t,e){var n=this.yAxisLeft,r=Number(this.svg.style.height.replace("px",""));e.options.yAxisOrientation=="right"&&(n=this.yAxisRight);for(var o=0;o<t.length;o++)t[o].screen_y=Math.round(n.convertValue(t[o].y));e.setZeroPosition(Math.min(r,n.convertValue(0)))};var ne="string",ke="boolean",Xe="number",Bg="date",yr="object",Hg="moment",MP={configure:{enabled:{boolean:ke},filter:{boolean:ke,function:"function"},container:{dom:"dom"},__type__:{object:yr,boolean:ke,function:"function"}},alignCurrentTime:{string:ne,undefined:"undefined"},yAxisOrientation:{string:["left","right"]},defaultGroup:{string:ne},sort:{boolean:ke},sampling:{boolean:ke},stack:{boolean:ke},graphHeight:{string:ne,number:Xe},shaded:{enabled:{boolean:ke},orientation:{string:["bottom","top","zero","group"]},groupId:{object:yr},__type__:{boolean:ke,object:yr}},style:{string:["line","bar","points"]},barChart:{width:{number:Xe},minWidth:{number:Xe},sideBySide:{boolean:ke},align:{string:["left","center","right"]},__type__:{object:yr}},interpolation:{enabled:{boolean:ke},parametrization:{string:["centripetal","chordal","uniform"]},alpha:{number:Xe},__type__:{object:yr,boolean:ke}},drawPoints:{enabled:{boolean:ke},onRender:{function:"function"},size:{number:Xe},style:{string:["square","circle"]},__type__:{object:yr,boolean:ke,function:"function"}},dataAxis:{showMinorLabels:{boolean:ke},showMajorLabels:{boolean:ke},showWeekScale:{boolean:ke},icons:{boolean:ke},width:{string:ne,number:Xe},visible:{boolean:ke},alignZeros:{boolean:ke},left:{range:{min:{number:Xe,undefined:"undefined"},max:{number:Xe,undefined:"undefined"},__type__:{object:yr}},format:{function:"function"},title:{text:{string:ne,number:Xe,undefined:"undefined"},style:{string:ne,undefined:"undefined"},__type__:{object:yr}},__type__:{object:yr}},right:{range:{min:{number:Xe,undefined:"undefined"},max:{number:Xe,undefined:"undefined"},__type__:{object:yr}},format:{function:"function"},title:{text:{string:ne,number:Xe,undefined:"undefined"},style:{string:ne,undefined:"undefined"},__type__:{object:yr}},__type__:{object:yr}},__type__:{object:yr}},legend:{enabled:{boolean:ke},icons:{boolean:ke},left:{visible:{boolean:ke},position:{string:["top-right","bottom-right","top-left","bottom-left"]},__type__:{object:yr}},right:{visible:{boolean:ke},position:{string:["top-right","bottom-right","top-left","bottom-left"]},__type__:{object:yr}},__type__:{object:yr,boolean:ke}},groups:{visibility:{any:"any"},__type__:{object:yr}},autoResize:{boolean:ke},throttleRedraw:{number:Xe},clickToUse:{boolean:ke},end:{number:Xe,date:Bg,string:ne,moment:Hg},format:{minorLabels:{millisecond:{string:ne,undefined:"undefined"},second:{string:ne,undefined:"undefined"},minute:{string:ne,undefined:"undefined"},hour:{string:ne,undefined:"undefined"},weekday:{string:ne,undefined:"undefined"},day:{string:ne,undefined:"undefined"},week:{string:ne,undefined:"undefined"},month:{string:ne,undefined:"undefined"},quarter:{string:ne,undefined:"undefined"},year:{string:ne,undefined:"undefined"},__type__:{object:yr}},majorLabels:{millisecond:{string:ne,undefined:"undefined"},second:{string:ne,undefined:"undefined"},minute:{string:ne,undefined:"undefined"},hour:{string:ne,undefined:"undefined"},weekday:{string:ne,undefined:"undefined"},day:{string:ne,undefined:"undefined"},week:{string:ne,undefined:"undefined"},month:{string:ne,undefined:"undefined"},quarter:{string:ne,undefined:"undefined"},year:{string:ne,undefined:"undefined"},__type__:{object:yr}},__type__:{object:yr}},moment:{function:"function"},height:{string:ne,number:Xe},hiddenDates:{start:{date:Bg,number:Xe,string:ne,moment:Hg},end:{date:Bg,number:Xe,string:ne,moment:Hg},repeat:{string:ne},__type__:{object:yr,array:"array"}},locale:{string:ne},locales:{__any__:{any:"any"},__type__:{object:yr}},max:{date:Bg,number:Xe,string:ne,moment:Hg},maxHeight:{number:Xe,string:ne},maxMinorChars:{number:Xe},min:{date:Bg,number:Xe,string:ne,moment:Hg},minHeight:{number:Xe,string:ne},moveable:{boolean:ke},multiselect:{boolean:ke},orientation:{string:ne},showCurrentTime:{boolean:ke},showMajorLabels:{boolean:ke},showMinorLabels:{boolean:ke},showWeekScale:{boolean:ke},snap:{function:"function",null:"null"},start:{date:Bg,number:Xe,string:ne,moment:Hg},timeAxis:{scale:{string:ne,undefined:"undefined"},step:{number:Xe,undefined:"undefined"},__type__:{object:yr}},width:{string:ne,number:Xe},zoomable:{boolean:ke},zoomKey:{string:["ctrlKey","altKey","metaKey",""]},zoomMax:{number:Xe},zoomMin:{number:Xe},zIndex:{number:Xe},__type__:{object:yr}},NP={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 Iu(t,e,n,r){var o,a,s,d,p,_,x;if(!ce(n)&&!ss(n)&&n instanceof Object){var O=r;r=n,n=O}r&&r.throttleRedraw&&console.warn('Graph2d option "throttleRedraw" is DEPRICATED and no longer supported. It will be removed in the next MAJOR release.');var C=this;this.defaultOptions={start:null,end:null,autoResize:!0,orientation:{axis:"bottom",item:"bottom"},moment:Bn,width:null,height:null,maxHeight:null,minHeight:null},this.options=H.deepExtend({},this.defaultOptions),this._create(t),this.components=[],this.body={dom:this.dom,domProps:this.props,emitter:{on:at(o=this.on).call(o,this),off:at(a=this.off).call(a,this),emit:at(s=this.emit).call(s,this)},hiddenDates:[],util:{getScale:function(){return C.timeAxis.step.scale},getStep:function(){return C.timeAxis.step.step},toScreen:at(d=C._toScreen).call(d,C),toGlobalScreen:at(p=C._toGlobalScreen).call(p,C),toTime:at(_=C._toTime).call(_,C),toGlobalTime:at(x=C._toGlobalTime).call(x,C)}},this.range=new N(this.body),this.components.push(this.range),this.body.range=this.range,this.timeAxis=new on(this.body),this.components.push(this.timeAxis),this.currentTime=new Jn(this.body),this.components.push(this.currentTime),this.linegraph=new He(this.body),this.components.push(this.linegraph),this.itemsData=null,this.groupsData=null,this.on("tap",function(Y){C.emit("click",C.getEventProperties(Y))}),this.on("doubletap",function(Y){C.emit("doubleClick",C.getEventProperties(Y))}),this.dom.root.oncontextmenu=function(Y){C.emit("contextmenu",C.getEventProperties(Y))},this.initialFitDone=!1,this.on("changed",function(){if(C.itemsData!=null){if(!C.initialFitDone&&!C.options.rollingMode)if(C.initialFitDone=!0,C.options.start!=null||C.options.end!=null){if(C.options.start==null||C.options.end==null)var Y=C.getItemRange();var j=C.options.start!=null?C.options.start:Y.min,G=C.options.end!=null?C.options.end:Y.max;C.setWindow(j,G,{animation:!1})}else C.fit({animation:!1});C.initialDrawDone||!C.initialRangeChangeDone&&(C.options.start||C.options.end)&&!C.options.rollingMode||(C.initialDrawDone=!0,C.dom.root.style.visibility="visible",C.dom.loadingScreen.parentNode.removeChild(C.dom.loadingScreen),C.options.onInitialDrawComplete&&Yn(function(){return C.options.onInitialDrawComplete()},0))}}),r&&this.setOptions(r),n&&this.setGroups(n),e&&this.setItems(e),this._redraw()}Iu.prototype=new ge,Iu.prototype.setOptions=function(t){aC.validate(t,MP)===!0&&console.log("%cErrors have been found in the supplied options object.",u_),ge.prototype.setOptions.call(this,t)},Iu.prototype.setItems=function(t){var e,n=this.itemsData==null;if(e=t?ss(t)?zh(t):zh(new J.DataSet(t)):null,this.itemsData&&this.itemsData.dispose(),this.itemsData=e,this.linegraph&&this.linegraph.setItems(e!=null?e.rawDS:null),n)if(this.options.start!=null||this.options.end!=null){var r=this.options.start!=null?this.options.start:null,o=this.options.end!=null?this.options.end:null;this.setWindow(r,o,{animation:!1})}else this.fit({animation:!1})},Iu.prototype.setGroups=function(t){var e;e=t?ss(t)?t:new J.DataSet(t):null,this.groupsData=e,this.linegraph.setGroups(e)},Iu.prototype.getLegend=function(t,e,n){return e===void 0&&(e=15),n===void 0&&(n=15),this.linegraph.groups[t]!==void 0?this.linegraph.groups[t].getLegend(e,n):"cannot find group:'"+t+"'"},Iu.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]==1)},Iu.prototype.getDataRange=function(){var t=null,e=null;for(var n in this.linegraph.groups)if(this.linegraph.groups.hasOwnProperty(n)&&this.linegraph.groups[n].visible==1)for(var r=0;r<this.linegraph.groups[n].itemsData.length;r++){var o=this.linegraph.groups[n].itemsData[r],a=H.convert(o.x,"Date").valueOf();t=t==null||t>a?a:t,e=e==null||e<a?a:e}return{min:t!=null?new Date(t):null,max:e!=null?new Date(e):null}},Iu.prototype.getEventProperties=function(t){var e=t.center?t.center.x:t.clientX,n=t.center?t.center.y:t.clientY,r=e-H.getAbsoluteLeft(this.dom.centerContainer),o=n-H.getAbsoluteTop(this.dom.centerContainer),a=this._toTime(r),s=$t.customTimeFromTarget(t),d=H.getTarget(t),p=null;H.hasParent(d,this.timeAxis.dom.foreground)||this.timeAxis2&&H.hasParent(d,this.timeAxis2.dom.foreground)?p="axis":H.hasParent(d,this.linegraph.yAxisLeft.dom.frame)||H.hasParent(d,this.linegraph.yAxisRight.dom.frame)?p="data-axis":H.hasParent(d,this.linegraph.legendLeft.dom.frame)||H.hasParent(d,this.linegraph.legendRight.dom.frame)?p="legend":s!=null?p="custom-time":H.hasParent(d,this.currentTime.bar)?p="current-time":H.hasParent(d,this.dom.center)&&(p="background");var _=[],x=this.linegraph.yAxisLeft,O=this.linegraph.yAxisRight;return!x.hidden&&this.itemsData.length>0&&_.push(x.screenToValue(o)),!O.hidden&&this.itemsData.length>0&&_.push(O.screenToValue(o)),{event:t,customTime:s?s.options.id:null,what:p,pageX:t.srcEvent?t.srcEvent.pageX:t.pageX,pageY:t.srcEvent?t.srcEvent.pageY:t.pageY,x:r,y:o,time:a,value:_}},Iu.prototype._createConfigurator=function(){return new nI(this,this.dom.container,NP)};var RP=function(){try{return navigator?navigator.languages&&navigator.languages.length?navigator.languages:navigator.userLanguage||navigator.language||navigator.browserLanguage||"en":"en"}catch(t){return"en"}}();L.locale(RP);var jP={Core:ge,DateUtil:P,Range:N,stack:s_,TimeStep:Ou,components:{items:{Item:Dp,BackgroundItem:Cu,BoxItem:KD,ClusterItem:nC,PointItem:qC,RangeItem:td},BackgroundGroup:XD,Component:Ao,CurrentTime:Jn,CustomTime:$t,DataAxis:cC,DataScale:oI,GraphGroup:nc,Group:ET,ItemSet:Lg,Legend:lo,LineGraph:He,TimeAxis:on}};F.Graph2d=Iu,F.Timeline=PP,F.timeline=jP})});var h$=mI((bI,c$)=>{(function(F,L){typeof bI=="object"&&typeof c$!="undefined"?L(bI):typeof define=="function"&&define.amd?define(["exports"],L):L((F=typeof globalThis!="undefined"?globalThis:F||self).vis=F.vis||{})})(bI,function(F){function L(u,f){if(!(u instanceof f))throw new TypeError("Cannot call a class as a function")}var J=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function z(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var nt={exports:{}},yt=function(u){return u&&u.Math===Math&&u},St=yt(typeof globalThis=="object"&&globalThis)||yt(typeof window=="object"&&window)||yt(typeof self=="object"&&self)||yt(typeof J=="object"&&J)||function(){return this}()||J||Function("return this")(),dt=function(u){try{return!!u()}catch(f){return!0}},Gt=!dt(function(){var u=function(){}.bind();return typeof u!="function"||u.hasOwnProperty("prototype")}),Wt=Gt,In=Function.prototype,Qe=In.apply,zr=In.call,Mi=typeof Reflect=="object"&&Reflect.apply||(Wt?zr.bind(Qe):function(){return zr.apply(Qe,arguments)}),Nt=Gt,an=Function.prototype,Pe=an.call,sn=Nt&&an.bind.bind(Pe,Pe),le=Nt?sn:function(u){return function(){return Pe.apply(u,arguments)}},ye=le,se=ye({}.toString),fi=ye("".slice),kr=function(u){return fi(se(u),8,-1)},ho=kr,fr=le,oc=function(u){if(ho(u)==="Function")return fr(u)},$u=typeof document=="object"&&document.all,Tr={all:$u,IS_HTMLDDA:$u===void 0&&$u!==void 0},ad=Tr.all,Te=Tr.IS_HTMLDDA?function(u){return typeof u=="function"||u===ad}:function(u){return typeof u=="function"},Ni={},ie=!dt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Re=Gt,xe=Function.prototype.call,Ae=Re?xe.bind(xe):function(){return xe.apply(xe,arguments)},je={},Ur={}.propertyIsEnumerable,pi=Object.getOwnPropertyDescriptor,Ue=pi&&!Ur.call({1:2},1);je.f=Ue?function(u){var f=pi(this,u);return!!f&&f.enumerable}:Ur;var Dt,Mu,un=function(u,f){return{enumerable:!(1&u),configurable:!(2&u),writable:!(4&u),value:f}},ya=dt,ei=kr,sd=Object,Kg=le("".split),gs=ya(function(){return!sd("z").propertyIsEnumerable(0)})?function(u){return ei(u)==="String"?Kg(u,""):sd(u)}:sd,No=function(u){return u==null},ac=No,ba=TypeError,Ro=function(u){if(ac(u))throw new ba("Can't call method on "+u);return u},Jg=gs,ys=Ro,ri=function(u){return Jg(ys(u))},ud=Te,tr=Tr.all,_e=Tr.IS_HTMLDDA?function(u){return typeof u=="object"?u!==null:ud(u)||u===tr}:function(u){return typeof u=="object"?u!==null:ud(u)},Ge={},xr=Ge,we=St,be=Te,Oe=function(u){return be(u)?u:void 0},wr=function(u,f){return arguments.length<2?Oe(xr[u])||Oe(we[u]):xr[u]&&xr[u][f]||we[u]&&we[u][f]},$e=le({}.isPrototypeOf),Xt=typeof navigator!="undefined"&&String(navigator.userAgent)||"",Le=St,er=Xt,bs=Le.process,Fe=Le.Deno,Pn=bs&&bs.versions||Fe&&Fe.version,fo=Pn&&Pn.v8;fo&&(Mu=(Dt=fo.split("."))[0]>0&&Dt[0]<4?1:+(Dt[0]+Dt[1])),!Mu&&er&&(!(Dt=er.match(/Edge\/(\d+)/))||Dt[1]>=74)&&(Dt=er.match(/Chrome\/(\d+)/))&&(Mu=+Dt[1]);var An=Mu,sc=An,Ri=dt,ld=St.String,vi=!!Object.getOwnPropertySymbols&&!Ri(function(){var u=Symbol("symbol detection");return!ld(u)||!(Object(u)instanceof Symbol)||!Symbol.sham&&sc&&sc<41}),rr=vi&&!Symbol.sham&&typeof Symbol.iterator=="symbol",wa=wr,po=Te,Et=$e,Zg=Object,Nu=rr?function(u){return typeof u=="symbol"}:function(u){var f=wa("Symbol");return po(f)&&Et(f.prototype,Zg(u))},$n=String,nr=function(u){try{return $n(u)}catch(f){return"Object"}},qt=Te,uc=nr,Ee=TypeError,Or=function(u){if(qt(u))return u;throw new Ee(uc(u)+" is not a function")},_a=Or,lc=No,Er=function(u,f){var v=u[f];return lc(v)?void 0:_a(v)},Nr=Ae,mn=Te,De=_e,Mn=TypeError,ji={exports:{}},ln=St,gn=Object.defineProperty,$p=function(u,f){try{gn(ln,u,{value:f,configurable:!0,writable:!0})}catch(v){ln[u]=f}return f},ws="__core-js_shared__",_s=St[ws]||$p(ws,{}),Ru=_s;(ji.exports=function(u,f){return Ru[u]||(Ru[u]=f!==void 0?f:{})})("versions",[]).push({version:"3.33.2",mode:"pure",copyright:"\xA9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE",source:"https://github.com/zloirock/core-js"});var cn=ji.exports,jo=Ro,Mp=Object,yn=function(u){return Mp(jo(u))},bn=yn,Qg=le({}.hasOwnProperty),Kt=Object.hasOwn||function(u,f){return Qg(bn(u),f)},Rr=le,ty=0,Np=Math.random(),Rp=Rr(1 .toString),ju=function(u){return"Symbol("+(u===void 0?"":u)+")_"+Rp(++ty+Np,36)},cc=cn,hc=Kt,cd=ju,Ss=vi,ey=rr,Sa=St.Symbol,ir=cc("wks"),hd=ey?Sa.for||Sa:Sa&&Sa.withoutSetter||cd,qe=function(u){return hc(ir,u)||(ir[u]=Ss&&hc(Sa,u)?Sa[u]:hd("Symbol."+u)),ir[u]},cr=Ae,or=_e,dd=Nu,ks=Er,dc=function(u,f){var v,m;if(f==="string"&&mn(v=u.toString)&&!De(m=Nr(v,u))||mn(v=u.valueOf)&&!De(m=Nr(v,u))||f!=="string"&&mn(v=u.toString)&&!De(m=Nr(v,u)))return m;throw new Mn("Can't convert object to primitive value")},jp=TypeError,Lo=qe("toPrimitive"),vo=function(u,f){if(!or(u)||dd(u))return u;var v,m=ks(u,Lo);if(m){if(f===void 0&&(f="default"),v=cr(m,u,f),!or(v)||dd(v))return v;throw new jp("Can't convert object to primitive value")}return f===void 0&&(f="number"),dc(u,f)},ry=Nu,Lu=function(u){var f=vo(u,"string");return ry(f)?f:f+""},Fu=_e,fc=St.document,fd=Fu(fc)&&Fu(fc.createElement),Fo=function(u){return fd?fc.createElement(u):{}},pc=Fo,Lp=!ie&&!dt(function(){return Object.defineProperty(pc("div"),"a",{get:function(){return 7}}).a!==7}),Ye=ie,ny=Ae,pd=je,Fp=un,iy=ri,oy=Lu,ay=Kt,sy=Lp,Yp=Object.getOwnPropertyDescriptor;Ni.f=Ye?Yp:function(u,f){if(u=iy(u),f=oy(f),sy)try{return Yp(u,f)}catch(v){}if(ay(u,f))return Fp(!ny(pd.f,u,f),u[f])};var Bp=dt,uy=Te,ly=/#|\.prototype\./,Yo=function(u,f){var v=Hp[Yu(u)];return v===cy||v!==vd&&(uy(f)?Bp(f):!!f)},Yu=Yo.normalize=function(u){return String(u).replace(ly,".").toLowerCase()},Hp=Yo.data={},vd=Yo.NATIVE="N",cy=Yo.POLYFILL="P",vc=Yo,md=Or,gd=Gt,hy=oc(oc.bind),Li=function(u,f){return md(u),f===void 0?u:gd?hy(u,f):function(){return u.apply(f,arguments)}},_r={},Nn=ie&&dt(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Gp=_e,dy=String,fy=TypeError,wn=function(u){if(Gp(u))return u;throw new fy(dy(u)+" is not an object")},de=ie,Bu=Lp,Ts=Nn,mc=wn,xs=Lu,Wp=TypeError,ka=Object.defineProperty,Os=Object.getOwnPropertyDescriptor,Fi="enumerable",Ta="configurable",Hu="writable";_r.f=de?Ts?function(u,f,v){if(mc(u),f=xs(f),mc(v),typeof u=="function"&&f==="prototype"&&"value"in v&&Hu in v&&!v[Hu]){var m=Os(u,f);m&&m[Hu]&&(u[f]=v.value,v={configurable:Ta in v?v[Ta]:m[Ta],enumerable:Fi in v?v[Fi]:m[Fi],writable:!1})}return ka(u,f,v)}:ka:function(u,f,v){if(mc(u),f=xs(f),mc(v),Bu)try{return ka(u,f,v)}catch(m){}if("get"in v||"set"in v)throw new Wp("Accessors not supported");return"value"in v&&(u[f]=v.value),u};var ni=_r,zp=un,mi=ie?function(u,f,v){return ni.f(u,f,zp(1,v))}:function(u,f,v){return u[f]=v,u},mo=St,gc=Mi,Bo=oc,jr=Te,yd=Ni.f,py=vc,xa=Ge,Es=Li,Oa=mi,Ea=Kt,_n=function(u){var f=function(v,m,S){if(this instanceof f){switch(arguments.length){case 0:return new u;case 1:return new u(v);case 2:return new u(v,m)}return new u(v,m,S)}return gc(u,this,arguments)};return f.prototype=u.prototype,f},Rt=function(u,f){var v,m,S,E,P,A,N,U,K,Q=u.target,st=u.global,ht=u.stat,kt=u.proto,Tt=st?mo:ht?mo[Q]:(mo[Q]||{}).prototype,Pt=st?xa:xa[Q]||Oa(xa,Q,{})[Q],Vt=Pt.prototype;for(E in f)m=!(v=py(st?E:Q+(ht?".":"#")+E,u.forced))&&Tt&&Ea(Tt,E),A=Pt[E],m&&(N=u.dontCallGetSet?(K=yd(Tt,E))&&K.value:Tt[E]),P=m&&N?N:f[E],m&&typeof A==typeof P||(U=u.bind&&m?Es(P,mo):u.wrap&&m?_n(P):kt&&jr(P)?Bo(P):P,(u.sham||P&&P.sham||A&&A.sham)&&Oa(U,"sham",!0),Oa(Pt,E,U),kt&&(Ea(xa,S=Q+"Prototype")||Oa(xa,S,{}),Oa(xa[S],E,P),u.real&&Vt&&(v||!Vt[E])&&Oa(Vt,E,P)))},Bt=Rt,yc=ie,Da=_r.f;Bt({target:"Object",stat:!0,forced:Object.defineProperty!==Da,sham:!yc},{defineProperty:Da});var bd=Ge.Object,Ds=nt.exports=function(u,f,v){return bd.defineProperty(u,f,v)};bd.defineProperty.sham&&(Ds.sham=!0);var bc=nt.exports,Gu=bc,Cs=z(Gu),Is=kr,Yi=Array.isArray||function(u){return Is(u)==="Array"},vy=Math.ceil,wd=Math.floor,my=Math.trunc||function(u){var f=+u;return(f>0?wd:vy)(f)},Sn=function(u){var f=+u;return f!=f||f===0?0:my(f)},Wu=Sn,wc=Math.min,We=function(u){return u>0?wc(Wu(u),9007199254740991):0},Rn=function(u){return We(u.length)},_c=TypeError,zu=function(u){if(u>9007199254740991)throw _c("Maximum allowed index exceeded");return u},Ps=Lu,gy=_r,gi=un,yi=function(u,f,v){var m=Ps(f);m in u?gy.f(u,m,gi(0,v)):u[m]=v},Sc={};Sc[qe("toStringTag")]="z";var Mt=String(Sc)==="[object z]",yy=Mt,kc=Te,Ho=kr,Tc=qe("toStringTag"),Up=Object,Vp=Ho(function(){return arguments}())==="Arguments",Bi=yy?Ho:function(u){var f,v,m;return u===void 0?"Undefined":u===null?"Null":typeof(v=function(S,E){try{return S[E]}catch(P){}}(f=Up(u),Tc))=="string"?v:Vp?Ho(f):(m=Ho(f))==="Object"&&kc(f.callee)?"Arguments":m},_d=Te,Ca=_s,Uu=le(Function.toString);_d(Ca.inspectSource)||(Ca.inspectSource=function(u){return Uu(u)});var Xp=Ca.inspectSource,by=le,Vu=dt,xc=Te,Ia=Bi,wy=Xp,go=function(){},_y=[],Xu=wr("Reflect","construct"),Sd=/^\s*(?:class|function)\b/,qp=by(Sd.exec),Oc=!Sd.test(go),yo=function(u){if(!xc(u))return!1;try{return Xu(go,_y,u),!0}catch(f){return!1}},ii=function(u){if(!xc(u))return!1;switch(Ia(u)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Oc||!!qp(Sd,wy(u))}catch(f){return!0}};ii.sham=!0;var Hi=!Xu||Vu(function(){var u;return yo(yo.call)||!yo(Object)||!yo(function(){u=!0})||u})?ii:yo,kd=Yi,Lr=Hi,Kp=_e,Jp=qe("species"),qu=Array,bi=function(u){var f;return kd(u)&&(f=u.constructor,(Lr(f)&&(f===qu||kd(f.prototype))||Kp(f)&&(f=f[Jp])===null)&&(f=void 0)),f===void 0?qu:f},Ku=function(u,f){return new(bi(u))(f===0?0:f)},Sy=dt,As=An,Zp=qe("species"),Pa=function(u){return As>=51||!Sy(function(){var f=[];return(f.constructor={})[Zp]=function(){return{foo:1}},f[u](Boolean).foo!==1})},$s=Rt,Ju=dt,ky=Yi,Ty=_e,Ec=yn,Qp=Rn,Td=zu,Dc=yi,xy=Ku,Oy=Pa,Vr=An,tv=qe("isConcatSpreadable"),Ey=Vr>=51||!Ju(function(){var u=[];return u[tv]=!1,u.concat()[0]!==u}),xd=function(u){if(!Ty(u))return!1;var f=u[tv];return f!==void 0?!!f:ky(u)};$s({target:"Array",proto:!0,arity:1,forced:!Ey||!Oy("concat")},{concat:function(u){var f,v,m,S,E,P=Ec(this),A=xy(P,0),N=0;for(f=-1,m=arguments.length;f<m;f++)if(xd(E=f===-1?P:arguments[f]))for(S=Qp(E),Td(N+S),v=0;v<S;v++,N++)v in E&&Dc(A,N,E[v]);else Td(N+1),Dc(A,N++,E);return A.length=N,A}});var Dy=Bi,ev=String,Aa=function(u){if(Dy(u)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return ev(u)},$a={},rv=Sn,nv=Math.max,Od=Math.min,Go=function(u,f){var v=rv(u);return v<0?nv(v+f,0):Od(v,f)},Zu=ri,Ms=Go,Ns=Rn,Qu=function(u){return function(f,v,m){var S,E=Zu(f),P=Ns(E),A=Ms(m,P);if(u&&v!=v){for(;P>A;)if((S=E[A++])!=S)return!0}else for(;P>A;A++)if((u||A in E)&&E[A]===v)return u||A||0;return!u&&-1}},Rs={includes:Qu(!0),indexOf:Qu(!1)},js={},Gi=Kt,Cc=ri,tl=Rs.indexOf,Ic=js,Ed=le([].push),Dd=function(u,f){var v,m=Cc(u),S=0,E=[];for(v in m)!Gi(Ic,v)&&Gi(m,v)&&Ed(E,v);for(;f.length>S;)Gi(m,v=f[S++])&&(~tl(E,v)||Ed(E,v));return E},Ls=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Fs=Dd,iv=Ls,Ys=Object.keys||function(u){return Fs(u,iv)},Cy=ie,el=Nn,Iy=_r,ov=wn,Py=ri,av=Ys;$a.f=Cy&&!el?Object.defineProperties:function(u,f){ov(u);for(var v,m=Py(f),S=av(f),E=S.length,P=0;E>P;)Iy.f(u,v=S[P++],m[v]);return u};var Wi,sv=wr("document","documentElement"),Ay=ju,Cd=cn("keys"),rl=function(u){return Cd[u]||(Cd[u]=Ay(u))},uv=wn,$y=$a,At=Ls,Se=js,Id=sv,My=Fo,Ma="prototype",Bs="script",nl=rl("IE_PROTO"),Pd=function(){},lv=function(u){return"<"+Bs+">"+u+"</"+Bs+">"},cv=function(u){u.write(lv("")),u.close();var f=u.parentWindow.Object;return u=null,f},il=function(){try{Wi=new ActiveXObject("htmlfile")}catch(S){}var u,f,v;il=typeof document!="undefined"?document.domain&&Wi?cv(Wi):(f=My("iframe"),v="java"+Bs+":",f.style.display="none",Id.appendChild(f),f.src=String(v),(u=f.contentWindow.document).open(),u.write(lv("document.F=Object")),u.close(),u.F):cv(Wi);for(var m=At.length;m--;)delete il[Ma][At[m]];return il()};Se[nl]=!0;var Wo=Object.create||function(u,f){var v;return u!==null?(Pd[Ma]=uv(u),v=new Pd,Pd[Ma]=null,v[nl]=u):v=il(),f===void 0?v:$y.f(v,f)},oi={},ol=Dd,Ny=Ls.concat("length","prototype");oi.f=Object.getOwnPropertyNames||function(u){return ol(u,Ny)};var Na={},Pc=Go,Ac=Rn,Ad=yi,zo=Array,hv=Math.max,bo=function(u,f,v){for(var m=Ac(u),S=Pc(f,m),E=Pc(v===void 0?m:v,m),P=zo(hv(E-S,0)),A=0;S<E;S++,A++)Ad(P,A,u[S]);return P.length=A,P},Ry=kr,Hs=ri,ct=oi.f,$d=bo,dv=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Na.f=function(u){return dv&&Ry(u)==="Window"?function(f){try{return ct(f)}catch(v){return $d(dv)}}(u):ct(Hs(u))};var wi={};wi.f=Object.getOwnPropertySymbols;var fe=mi,zi=function(u,f,v,m){return m&&m.enumerable?u[f]=v:fe(u,f,v),u},Md=_r,Ra=function(u,f,v){return Md.f(u,f,v)},Gs={},jy=qe;Gs.f=jy;var wo,al,$c,Ui=Ge,sl=Kt,fv=Gs,Ly=_r.f,ar=function(u){var f=Ui.Symbol||(Ui.Symbol={});sl(f,u)||Ly(f,u,{value:fv.f(u)})},Nd=Ae,Fy=wr,pv=qe,ul=zi,Ws=function(){var u=Fy("Symbol"),f=u&&u.prototype,v=f&&f.valueOf,m=pv("toPrimitive");f&&!f[m]&&ul(f,m,function(S){return Nd(v,this)},{arity:1})},_o=Bi,vv=Mt?{}.toString:function(){return"[object "+_o(this)+"]"},mv=Mt,gv=_r.f,Yy=mi,By=Kt,Hy=vv,Rd=qe("toStringTag"),Dr=function(u,f,v,m){if(u){var S=v?u:u.prototype;By(S,Rd)||gv(S,Rd,{configurable:!0,value:f}),m&&!mv&&Yy(S,"toString",Hy)}},ja=Te,Mc=St.WeakMap,yv=ja(Mc)&&/native code/.test(String(Mc)),zs=St,So=_e,bv=mi,jd=Kt,Us=_s,Nc=rl,Uo=js,Vs="Object already initialized",Ld=zs.TypeError,wv=zs.WeakMap;if(yv||Us.state){var Cr=Us.state||(Us.state=new wv);Cr.get=Cr.get,Cr.has=Cr.has,Cr.set=Cr.set,wo=function(u,f){if(Cr.has(u))throw new Ld(Vs);return f.facade=u,Cr.set(u,f),f},al=function(u){return Cr.get(u)||{}},$c=function(u){return Cr.has(u)}}else{var kn=Nc("state");Uo[kn]=!0,wo=function(u,f){if(jd(u,kn))throw new Ld(Vs);return f.facade=u,bv(u,kn,f),f},al=function(u){return jd(u,kn)?u[kn]:{}},$c=function(u){return jd(u,kn)}}var jn={set:wo,get:al,has:$c,enforce:function(u){return $c(u)?al(u):wo(u,{})},getterFor:function(u){return function(f){var v;if(!So(f)||(v=al(f)).type!==u)throw new Ld("Incompatible receiver, "+u+" required");return v}}},Gy=Li,ll=gs,Wy=yn,Fd=Rn,Vo=Ku,La=le([].push),Tn=function(u){var f=u===1,v=u===2,m=u===3,S=u===4,E=u===6,P=u===7,A=u===5||E;return function(N,U,K,Q){for(var st,ht,kt=Wy(N),Tt=ll(kt),Pt=Gy(U,K),Vt=Fd(Tt),jt=0,Me=Q||Vo,Ne=f?Me(N,Vt):v||P?Me(N,0):void 0;Vt>jt;jt++)if((A||jt in Tt)&&(ht=Pt(st=Tt[jt],jt,kt),u))if(f)Ne[jt]=ht;else if(ht)switch(u){case 3:return!0;case 5:return st;case 6:return jt;case 2:La(Ne,st)}else switch(u){case 4:return!1;case 7:La(Ne,st)}return E?-1:m||S?S:Ne}},Ut={forEach:Tn(0),map:Tn(1),filter:Tn(2),some:Tn(3),every:Tn(4),find:Tn(5),findIndex:Tn(6),filterReject:Tn(7)},c=Rt,b=St,k=Ae,D=le,M=ie,W=vi,it=dt,vt=Kt,Ft=$e,oe=wn,pr=ri,_i=Lu,Xo=Aa,zy=un,Ve=Wo,y_=Ys,WT=oi,b_=Na,w_=wi,Xs=Ni,__=_r,S_=$a,k_=je,Uy=zi,zT=Ra,Vy=cn,_v=js,Sv=ju,UT=qe,T_=Gs,qs=ar,Xy=Ws,VT=Dr,Vi=jn,Fa=Ut.forEach,Ir=rl("hidden"),Yd="Symbol",Bd="prototype",XT=Vi.set,kv=Vi.getterFor(Yd),Si=Object[Bd],Ks=b.Symbol,ko=Ks&&Ks[Bd],qo=b.RangeError,Rc=b.TypeError,Hd=b.QObject,cl=Xs.f,To=__.f,Ko=b_.f,jc=k_.f,x_=D([].push),pe=Vy("symbols"),Jo=Vy("op-symbols"),Js=Vy("wks"),Lc=!Hd||!Hd[Bd]||!Hd[Bd].findChild,Tv=function(u,f,v){var m=cl(Si,f);m&&delete Si[f],To(u,f,v),m&&u!==Si&&To(Si,f,m)},qy=M&&it(function(){return Ve(To({},"a",{get:function(){return To(this,"a",{value:7}).a}})).a!==7})?Tv:To,Gd=function(u,f){var v=pe[u]=Ve(ko);return XT(v,{type:Yd,tag:u,description:f}),M||(v.description=f),v},Zs=function(u,f,v){u===Si&&Zs(Jo,f,v),oe(u);var m=_i(f);return oe(v),vt(pe,m)?(v.enumerable?(vt(u,Ir)&&u[Ir][m]&&(u[Ir][m]=!1),v=Ve(v,{enumerable:zy(0,!1)})):(vt(u,Ir)||To(u,Ir,zy(1,{})),u[Ir][m]=!0),qy(u,m,v)):To(u,m,v)},xv=function(u,f){oe(u);var v=pr(f),m=y_(v).concat(Fc(v));return Fa(m,function(S){M&&!k(Ky,v,S)||Zs(u,S,v[S])}),u},Ky=function(u){var f=_i(u),v=k(jc,this,f);return!(this===Si&&vt(pe,f)&&!vt(Jo,f))&&(!(v||!vt(this,f)||!vt(pe,f)||vt(this,Ir)&&this[Ir][f])||v)},Zo=function(u,f){var v=pr(u),m=_i(f);if(v!==Si||!vt(pe,m)||vt(Jo,m)){var S=cl(v,m);return!S||!vt(pe,m)||vt(v,Ir)&&v[Ir][m]||(S.enumerable=!0),S}},hl=function(u){var f=Ko(pr(u)),v=[];return Fa(f,function(m){vt(pe,m)||vt(_v,m)||x_(v,m)}),v},Fc=function(u){var f=u===Si,v=Ko(f?Jo:pr(u)),m=[];return Fa(v,function(S){!vt(pe,S)||f&&!vt(Si,S)||x_(m,pe[S])}),m};W||(Ks=function(){if(Ft(ko,this))throw new Rc("Symbol is not a constructor");var u=arguments.length&&arguments[0]!==void 0?Xo(arguments[0]):void 0,f=Sv(u),v=function(m){var S=this===void 0?b:this;S===Si&&k(v,Jo,m),vt(S,Ir)&&vt(S[Ir],f)&&(S[Ir][f]=!1);var E=zy(1,m);try{qy(S,f,E)}catch(P){if(!(P instanceof qo))throw P;Tv(S,f,E)}};return M&&Lc&&qy(Si,f,{configurable:!0,set:v}),Gd(f,u)},Uy(ko=Ks[Bd],"toString",function(){return kv(this).tag}),Uy(Ks,"withoutSetter",function(u){return Gd(Sv(u),u)}),k_.f=Ky,__.f=Zs,S_.f=xv,Xs.f=Zo,WT.f=b_.f=hl,w_.f=Fc,T_.f=function(u){return Gd(UT(u),u)},M&&zT(ko,"description",{configurable:!0,get:function(){return kv(this).description}})),c({global:!0,constructor:!0,wrap:!0,forced:!W,sham:!W},{Symbol:Ks}),Fa(y_(Js),function(u){qs(u)}),c({target:Yd,stat:!0,forced:!W},{useSetter:function(){Lc=!0},useSimple:function(){Lc=!1}}),c({target:"Object",stat:!0,forced:!W,sham:!M},{create:function(u,f){return f===void 0?Ve(u):xv(Ve(u),f)},defineProperty:Zs,defineProperties:xv,getOwnPropertyDescriptor:Zo}),c({target:"Object",stat:!0,forced:!W},{getOwnPropertyNames:hl}),Xy(),VT(Ks,Yd),_v[Ir]=!0;var dl=vi&&!!Symbol.for&&!!Symbol.keyFor,Jy=Rt,O_=wr,fl=Kt,Yc=Aa,Ov=cn,Fr=dl,Ev=Ov("string-to-symbol-registry"),Zy=Ov("symbol-to-string-registry");Jy({target:"Symbol",stat:!0,forced:!Fr},{for:function(u){var f=Yc(u);if(fl(Ev,f))return Ev[f];var v=O_("Symbol")(f);return Ev[f]=v,Zy[v]=f,v}});var Dv=Rt,Qy=Kt,qT=Nu,tb=nr,Bc=dl,Hc=cn("symbol-to-string-registry");Dv({target:"Symbol",stat:!0,forced:!Bc},{keyFor:function(u){if(!qT(u))throw new TypeError(tb(u)+" is not a symbol");if(Qy(Hc,u))return Hc[u]}});var Xr=le([].slice),Gc=Yi,Wd=Te,eb=kr,rb=Aa,Xi=le([].push),Qs=Rt,Wc=wr,E_=Mi,zd=Ae,zc=le,Ya=dt,Cv=Te,D_=Nu,nb=Xr,Ba=function(u){if(Wd(u))return u;if(Gc(u)){for(var f=u.length,v=[],m=0;m<f;m++){var S=u[m];typeof S=="string"?Xi(v,S):typeof S!="number"&&eb(S)!=="Number"&&eb(S)!=="String"||Xi(v,rb(S))}var E=v.length,P=!0;return function(A,N){if(P)return P=!1,N;if(Gc(this))return N;for(var U=0;U<E;U++)if(v[U]===A)return N}}},Ud=vi,KT=String,xo=Wc("JSON","stringify"),Ha=zc(/./.exec),hn=zc("".charAt),pl=zc("".charCodeAt),vl=zc("".replace),C_=zc(1 .toString),ib=/[\uD800-\uDFFF]/g,ki=/^[\uD800-\uDBFF]$/,Ga=/^[\uDC00-\uDFFF]$/,ml=!Ud||Ya(function(){var u=Wc("Symbol")("stringify detection");return xo([u])!=="[null]"||xo({a:u})!=="{}"||xo(Object(u))!=="{}"}),I_=Ya(function(){return xo("\uDF06\uD834")!=='"\\udf06\\ud834"'||xo("\uDEAD")!=='"\\udead"'}),JT=function(u,f){var v=nb(arguments),m=Ba(f);if(Cv(m)||u!==void 0&&!D_(u))return v[1]=function(S,E){if(Cv(m)&&(E=zd(m,this,KT(S),E)),!D_(E))return E},E_(xo,null,v)},ob=function(u,f,v){var m=hn(v,f-1),S=hn(v,f+1);return Ha(ki,u)&&!Ha(Ga,S)||Ha(Ga,u)&&!Ha(ki,m)?"\\u"+C_(pl(u,0),16):u};xo&&Qs({target:"JSON",stat:!0,arity:3,forced:ml||I_},{stringify:function(u,f,v){var m=nb(arguments),S=E_(ml?JT:xo,null,m);return I_&&typeof S=="string"?vl(S,ib,ob):S}});var ab=wi,tu=yn;Rt({target:"Object",stat:!0,forced:!vi||dt(function(){ab.f(1)})},{getOwnPropertySymbols:function(u){var f=ab.f;return f?f(tu(u)):[]}}),ar("asyncIterator"),ar("hasInstance"),ar("isConcatSpreadable"),ar("iterator"),ar("match"),ar("matchAll"),ar("replace"),ar("search"),ar("species"),ar("split");var P_=Ws;ar("toPrimitive"),P_();var sb=wr,A_=Dr;ar("toStringTag"),A_(sb("Symbol"),"Symbol"),ar("unscopables"),Dr(St.JSON,"JSON",!0);var Ln,Uc,$_,ub=Ge.Symbol,gl={},Vc=ie,Iv=Kt,Vd=Function.prototype,Pv=Vc&&Object.getOwnPropertyDescriptor,lb=Iv(Vd,"name"),cb={EXISTS:lb,PROPER:lb&&function(){}.name==="something",CONFIGURABLE:lb&&(!Vc||Vc&&Pv(Vd,"name").configurable)},hb=!dt(function(){function u(){}return u.prototype.constructor=null,Object.getPrototypeOf(new u)!==u.prototype}),db=Kt,fb=Te,ZT=yn,Xc=hb,pb=rl("IE_PROTO"),Av=Object,M_=Av.prototype,Xd=Xc?Av.getPrototypeOf:function(u){var f=ZT(u);if(db(f,pb))return f[pb];var v=f.constructor;return fb(v)&&f instanceof v?v.prototype:f instanceof Av?M_:null},N_=dt,QT=Te,vb=_e,eu=Wo,qd=Xd,R_=zi,mb=qe("iterator"),j_=!1;[].keys&&("next"in($_=[].keys())?(Uc=qd(qd($_)))!==Object.prototype&&(Ln=Uc):j_=!0);var tx=!vb(Ln)||N_(function(){var u={};return Ln[mb].call(u)!==u});QT((Ln=tx?{}:eu(Ln))[mb])||R_(Ln,mb,function(){return this});var L_={IteratorPrototype:Ln,BUGGY_SAFARI_ITERATORS:j_},gb=L_.IteratorPrototype,F_=Wo,qc=un,Y_=Dr,B_=gl,ex=function(){return this},yb=le,rx=Or,H_=Te,nx=String,ix=TypeError,ru=function(u,f,v){try{return yb(rx(Object.getOwnPropertyDescriptor(u,f)[v]))}catch(m){}},bb=wn,G_=function(u){if(typeof u=="object"||H_(u))return u;throw new ix("Can't set "+nx(u)+" as a prototype")},Kc=Object.setPrototypeOf||("__proto__"in{}?function(){var u,f=!1,v={};try{(u=ru(Object.prototype,"__proto__","set"))(v,[]),f=v instanceof Array}catch(m){}return function(m,S){return bb(m),G_(S),f?u(m,S):m.__proto__=S,m}}():void 0),yl=Rt,$v=Ae,W_=cb,wb=function(u,f,v,m){var S=f+" Iterator";return u.prototype=F_(gb,{next:qc(+!m,v)}),Y_(u,S,!1,!0),B_[S]=ex,u},ox=Xd,_b=Dr,Sb=zi,Qo=gl,Mv=L_,z_=W_.PROPER,Nv=Mv.BUGGY_SAFARI_ITERATORS,kb=qe("iterator"),Tb="keys",Jc="values",xb="entries",Rv=function(){return this},jv=function(u,f,v,m,S,E,P){wb(v,f,m);var A,N,U,K=function(Vt){if(Vt===S&&Tt)return Tt;if(!Nv&&Vt&&Vt in ht)return ht[Vt];switch(Vt){case Tb:case Jc:case xb:return function(){return new v(this,Vt)}}return function(){return new v(this)}},Q=f+" Iterator",st=!1,ht=u.prototype,kt=ht[kb]||ht["@@iterator"]||S&&ht[S],Tt=!Nv&&kt||K(S),Pt=f==="Array"&&ht.entries||kt;if(Pt&&(A=ox(Pt.call(new u)))!==Object.prototype&&A.next&&(_b(A,Q,!0,!0),Qo[Q]=Rv),z_&&S===Jc&&kt&&kt.name!==Jc&&(st=!0,Tt=function(){return $v(kt,this)}),S)if(N={values:K(Jc),keys:E?Tt:K(Tb),entries:K(xb)},P)for(U in N)(Nv||st||!(U in ht))&&Sb(ht,U,N[U]);else yl({target:f,proto:!0,forced:Nv||st},N);return P&&ht[kb]!==Tt&&Sb(ht,kb,Tt,{name:S}),Qo[f]=Tt,N},Lv=function(u,f){return{value:u,done:f}},ax=ri,U_=gl,Ob=jn;_r.f;var sx=jv,Zc=Lv,Fv="Array Iterator",ux=Ob.set,V_=Ob.getterFor(Fv);sx(Array,"Array",function(u,f){ux(this,{type:Fv,target:ax(u),index:0,kind:f})},function(){var u=V_(this),f=u.target,v=u.index++;if(!f||v>=f.length)return u.target=void 0,Zc(void 0,!0);switch(u.kind){case"keys":return Zc(v,!1);case"values":return Zc(f[v],!1)}return Zc([v,f[v]],!1)},"values"),U_.Arguments=U_.Array;var lx={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},cx=St,hx=Bi,dx=mi,X_=gl,q_=qe("toStringTag");for(var Eb in lx){var K_=cx[Eb],Db=K_&&K_.prototype;Db&&hx(Db)!==q_&&dx(Db,q_,Eb),X_[Eb]=X_.Array}var J_=ub,fx=qe,px=_r.f,Z_=fx("metadata"),Q_=Function.prototype;Q_[Z_]===void 0&&px(Q_,Z_,{value:null}),ar("asyncDispose"),ar("dispose"),ar("metadata");var vx=J_,mx=le,Cb=wr("Symbol"),gx=Cb.keyFor,yx=mx(Cb.prototype.valueOf),t1=Cb.isRegisteredSymbol||function(u){try{return gx(yx(u))!==void 0}catch(f){return!1}};Rt({target:"Symbol",stat:!0},{isRegisteredSymbol:t1});for(var bl=cn,Kd=wr,bx=le,Jd=Nu,Ib=qe,wl=Kd("Symbol"),Zd=wl.isWellKnownSymbol,Pb=Kd("Object","getOwnPropertyNames"),wx=bx(wl.prototype.valueOf),Yv=bl("wks"),Qc=0,e1=Pb(wl),r1=e1.length;Qc<r1;Qc++)try{var Ab=e1[Qc];Jd(wl[Ab])&&Ib(Ab)}catch(u){}var n1=function(u){if(Zd&&Zd(u))return!0;try{for(var f=wx(u),v=0,m=Pb(Yv),S=m.length;v<S;v++)if(Yv[m[v]]==f)return!0}catch(E){}return!1};Rt({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:n1}),ar("matcher"),ar("observable"),Rt({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:t1}),Rt({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:n1}),ar("metadataKey"),ar("patternMatch"),ar("replaceAll");var Bv=vx,nu=z(Bv),Qd=le,_x=Sn,Hv=Aa,Sx=Ro,kx=Qd("".charAt),i1=Qd("".charCodeAt),o1=Qd("".slice),Gv=function(u){return function(f,v){var m,S,E=Hv(Sx(f)),P=_x(v),A=E.length;return P<0||P>=A?u?"":void 0:(m=i1(E,P))<55296||m>56319||P+1===A||(S=i1(E,P+1))<56320||S>57343?u?kx(E,P):m:u?o1(E,P,P+2):S-56320+(m-55296<<10)+65536}},$b={codeAt:Gv(!1),charAt:Gv(!0)}.charAt,a1=Aa,th=jn,Mb=jv,ta=Lv,Wv="String Iterator",Nb=th.set,s1=th.getterFor(Wv);Mb(String,"String",function(u){Nb(this,{type:Wv,string:a1(u),index:0})},function(){var u,f=s1(this),v=f.string,m=f.index;return m>=v.length?ta(void 0,!0):(u=$b(v,m),f.index+=u.length,ta(u,!1))});var Rb=Gs.f("iterator"),u1=Rb,Tx=z(u1);function eh(u){return eh=typeof nu=="function"&&typeof Tx=="symbol"?function(f){return typeof f}:function(f){return f&&typeof nu=="function"&&f.constructor===nu&&f!==nu.prototype?"symbol":typeof f},eh(u)}var l1=z(Gs.f("toPrimitive"));function c1(u){var f=function(v,m){if(eh(v)!=="object"||v===null)return v;var S=v[l1];if(S!==void 0){var E=S.call(v,m||"default");if(eh(E)!=="object")return E;throw new TypeError("@@toPrimitive must return a primitive value.")}return(m==="string"?String:Number)(v)}(u,"string");return eh(f)==="symbol"?f:String(f)}function h1(u,f){for(var v=0;v<f.length;v++){var m=f[v];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Cs(u,c1(m.key),m)}}function _l(u,f,v){return f&&h1(u.prototype,f),v&&h1(u,v),Cs(u,"prototype",{writable:!1}),u}function Fn(u,f,v){return(f=c1(f))in u?Cs(u,f,{value:v,enumerable:!0,configurable:!0,writable:!0}):u[f]=v,u}var jb=le,d1=Or,xx=_e,f1=Kt,zv=Xr,p1=Gt,v1=Function,m1=jb([].concat),Ox=jb([].join),Wa={},Uv=p1?v1.bind:function(u){var f=d1(this),v=f.prototype,m=zv(arguments,1),S=function(){var E=m1(m,zv(arguments));return this instanceof S?function(P,A,N){if(!f1(Wa,A)){for(var U=[],K=0;K<A;K++)U[K]="a["+K+"]";Wa[A]=v1("C,a","return new C("+Ox(U,",")+")")}return Wa[A](P,N)}(f,E.length,E):f.apply(u,E)};return xx(v)&&(S.prototype=v),S},g1=Uv;Rt({target:"Function",proto:!0,forced:Function.bind!==g1},{bind:g1});var Vv=St,Ex=Ge,qr=function(u,f){var v=Ex[u+"Prototype"],m=v&&v[f];if(m)return m;var S=Vv[u],E=S&&S.prototype;return E&&E[f]},Dx=qr("Function","bind"),y1=$e,Cx=Dx,Xv=Function.prototype,qv=function(u){var f=u.bind;return u===Xv||y1(Xv,u)&&f===Xv.bind?Cx:f},Sl=z(qv),tf=Or,Lb=yn,b1=gs,ef=Rn,w1=TypeError,Fb=function(u){return function(f,v,m,S){tf(v);var E=Lb(f),P=b1(E),A=ef(E),N=u?A-1:0,U=u?-1:1;if(m<2)for(;;){if(N in P){S=P[N],N+=U;break}if(N+=U,u?N<0:A<=N)throw new w1("Reduce of empty array with no initial value")}for(;u?N>=0:A>N;N+=U)N in P&&(S=v(S,P[N],N,E));return S}},Kv={left:Fb(!1),right:Fb(!0)},Yb=dt,Jv=function(u,f){var v=[][u];return!!v&&Yb(function(){v.call(null,f||function(){return 1},1)})},rh=kr(St.process)==="process",_1=Kv.left;Rt({target:"Array",proto:!0,forced:!rh&&An>79&&An<83||!Jv("reduce")},{reduce:function(u){var f=arguments.length;return _1(this,u,f,f>1?arguments[1]:void 0)}});var Jt=qr("Array","reduce"),nh=$e,S1=Jt,rf=Array.prototype,k1=z(function(u){var f=u.reduce;return u===rf||nh(rf,u)&&f===rf.reduce?S1:f}),Ix=Ut.filter;Rt({target:"Array",proto:!0,forced:!Pa("filter")},{filter:function(u){return Ix(this,u,arguments.length>1?arguments[1]:void 0)}});var Px=qr("Array","filter"),T1=$e,x1=Px,Ce=Array.prototype,me=z(function(u){var f=u.filter;return u===Ce||T1(Ce,u)&&f===Ce.filter?x1:f}),Bb=Ut.map;Rt({target:"Array",proto:!0,forced:!Pa("map")},{map:function(u){return Bb(this,u,arguments.length>1?arguments[1]:void 0)}});var O1=qr("Array","map"),nf=$e,E1=O1,of=Array.prototype,ai=z(function(u){var f=u.map;return u===of||nf(of,u)&&f===of.map?E1:f}),D1=Yi,Ax=Rn,Hb=zu,C1=Li,af=function(u,f,v,m,S,E,P,A){for(var N,U,K=S,Q=0,st=!!P&&C1(P,A);Q<m;)Q in v&&(N=st?st(v[Q],Q,f):v[Q],E>0&&D1(N)?(U=Ax(N),K=af(u,f,N,U,K,E-1)-1):(Hb(K+1),u[K]=N),K++),Q++;return K},$x=af,Mx=Or,Gb=yn,Wb=Rn,Nx=Ku;Rt({target:"Array",proto:!0},{flatMap:function(u){var f,v=Gb(this),m=Wb(v);return Mx(u),(f=Nx(v,0)).length=$x(f,v,v,m,0,1,u,arguments.length>1?arguments[1]:void 0),f}});var zb=qr("Array","flatMap"),Rx=$e,Zv=zb,Ub=Array.prototype,Pr=z(function(u){var f=u.flatMap;return u===Ub||Rx(Ub,u)&&f===Ub.flatMap?Zv:f}),I1=function(){function u(f,v,m){var S,E,P;L(this,u),Fn(this,"_listeners",{add:Sl(S=this._add).call(S,this),remove:Sl(E=this._remove).call(E,this),update:Sl(P=this._update).call(P,this)}),this._source=f,this._transformers=v,this._target=m}return _l(u,[{key:"all",value:function(){return this._target.update(this._transformItems(this._source.get())),this}},{key:"start",value:function(){return this._source.on("add",this._listeners.add),this._source.on("remove",this._listeners.remove),this._source.on("update",this._listeners.update),this}},{key:"stop",value:function(){return this._source.off("add",this._listeners.add),this._source.off("remove",this._listeners.remove),this._source.off("update",this._listeners.update),this}},{key:"_transformItems",value:function(f){var v;return k1(v=this._transformers).call(v,function(m,S){return S(m)},f)}},{key:"_add",value:function(f,v){v!=null&&this._target.add(this._transformItems(this._source.get(v.items)))}},{key:"_update",value:function(f,v){v!=null&&this._target.update(this._transformItems(this._source.get(v.items)))}},{key:"_remove",value:function(f,v){v!=null&&this._target.remove(this._transformItems(v.oldData))}}]),u}(),jx=function(){function u(f){L(this,u),Fn(this,"_transformers",[]),this._source=f}return _l(u,[{key:"filter",value:function(f){return this._transformers.push(function(v){return me(v).call(v,f)}),this}},{key:"map",value:function(f){return this._transformers.push(function(v){return ai(v).call(v,f)}),this}},{key:"flatMap",value:function(f){return this._transformers.push(function(v){return Pr(v).call(v,f)}),this}},{key:"to",value:function(f){return new I1(this._source,this._transformers,f)}}]),u}(),Lx=Ae,Qv=wn,P1=Er,Vb=function(u,f,v){var m,S;Qv(u);try{if(!(m=P1(u,"return"))){if(f==="throw")throw v;return v}m=Lx(m,u)}catch(E){S=!0,m=E}if(f==="throw")throw v;if(S)throw m;return Qv(m),v},Fx=wn,A1=Vb,ih=gl,si=qe("iterator"),ui=Array.prototype,tm=function(u){return u!==void 0&&(ih.Array===u||ui[si]===u)},$1=Bi,oh=Er,M1=No,Yx=gl,Xb=qe("iterator"),sf=function(u){if(!M1(u))return oh(u,Xb)||oh(u,"@@iterator")||Yx[$1(u)]},N1=Ae,Bx=Or,R1=wn,Be=nr,qb=sf,Hx=TypeError,em=function(u,f){var v=arguments.length<2?qb(u):f;if(Bx(v))return R1(N1(v,u));throw new Hx(Be(u)+" is not iterable")},ce=Li,Kb=Ae,at=yn,Jb=function(u,f,v,m){try{return m?f(Fx(v)[0],v[1]):f(v)}catch(S){A1(u,"throw",S)}},Gx=tm,Wx=Hi,Zb=Rn,iu=yi,Qb=em,zx=sf,j1=Array,L1=qe("iterator"),F1=!1;try{var Y1=0,B1={next:function(){return{done:!!Y1++}},return:function(){F1=!0}};B1[L1]=function(){return this},Array.from(B1,function(){throw 2})}catch(u){}var t0=function(u,f){try{if(!f&&!F1)return!1}catch(S){return!1}var v=!1;try{var m={};m[L1]=function(){return{next:function(){return{done:v=!0}}}},u(m)}catch(S){}return v},H1=function(u){var f=at(u),v=Wx(this),m=arguments.length,S=m>1?arguments[1]:void 0,E=S!==void 0;E&&(S=ce(S,m>2?arguments[2]:void 0));var P,A,N,U,K,Q,st=zx(f),ht=0;if(!st||this===j1&&Gx(st))for(P=Zb(f),A=v?new this(P):j1(P);P>ht;ht++)Q=E?S(f[ht],ht):f[ht],iu(A,ht,Q);else for(K=(U=Qb(f,st)).next,A=v?new this:[];!(N=Kb(K,U)).done;ht++)Q=E?Jb(U,S,[N.value,ht],!0):N.value,iu(A,ht,Q);return A.length=ht,A};Rt({target:"Array",stat:!0,forced:!t0(function(u){Array.from(u)})},{from:H1});var G1=Ge.Array.from,uf=z(G1),rm=sf,W1=z(rm),ah=z(rm);Rt({target:"Array",stat:!0},{isArray:Yi});var nm=Ge.Array.isArray,z1=z(nm),Yn=ie,e0=Yi,Ux=TypeError,Vx=Object.getOwnPropertyDescriptor,ou=Yn&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(u){return u instanceof TypeError}}()?function(u,f){if(e0(u)&&!Vx(u,"length").writable)throw new Ux("Cannot set read only .length");return u.length=f}:function(u,f){return u.length=f},Xx=yn,U1=Rn,qx=ou,Kx=zu;Rt({target:"Array",proto:!0,arity:1,forced:dt(function(){return[].push.call({length:4294967296},1)!==4294967297})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(u){return u instanceof TypeError}}()},{push:function(u){var f=Xx(this),v=U1(f),m=arguments.length;Kx(v+m);for(var S=0;S<m;S++)f[v]=arguments[S],v++;return qx(f,v),v}});var V1=qr("Array","push"),Jx=$e,sh=V1,lf=Array.prototype,X1=function(u){var f=u.push;return u===lf||Jx(lf,u)&&f===lf.push?sh:f},Zx=z(X1),Ot=Rt,Bn=Yi,r0=Hi,Qx=_e,q1=Go,im=Rn,n0=ri,tO=yi,K1=qe,J1=Xr,kl=Pa("slice"),qi=K1("species"),uh=Array,eO=Math.max;Ot({target:"Array",proto:!0,forced:!kl},{slice:function(u,f){var v,m,S,E=n0(this),P=im(E),A=q1(u,P),N=q1(f===void 0?P:f,P);if(Bn(E)&&(v=E.constructor,(r0(v)&&(v===uh||Bn(v.prototype))||Qx(v)&&(v=v[qi])===null)&&(v=void 0),v===uh||v===void 0))return J1(E,A,N);for(m=new(v===void 0?uh:v)(eO(N-A,0)),S=0;A<N;A++,S++)A in E&&tO(m,S,E[A]);return m.length=S,m}});var rO=qr("Array","slice"),ve=$e,om=rO,i0=Array.prototype,cf=function(u){var f=u.slice;return u===i0||ve(i0,u)&&f===i0.slice?om:f},Z1=cf,nO=z(Z1),am=z(G1);function o0(u,f){(f==null||f>u.length)&&(f=u.length);for(var v=0,m=new Array(f);v<f;v++)m[v]=u[v];return m}function sm(u,f){var v;if(u){if(typeof u=="string")return o0(u,f);var m=nO(v=Object.prototype.toString.call(u)).call(v,8,-1);return m==="Object"&&u.constructor&&(m=u.constructor.name),m==="Map"||m==="Set"?am(u):m==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(m)?o0(u,f):void 0}}function Hn(u,f){return function(v){if(z1(v))return v}(u)||function(v,m){var S=v==null?null:nu!==void 0&&W1(v)||v["@@iterator"];if(S!=null){var E,P,A,N,U=[],K=!0,Q=!1;try{if(A=(S=S.call(v)).next,m===0){if(Object(S)!==S)return;K=!1}else for(;!(K=(E=A.call(S)).done)&&(Zx(U).call(U,E.value),U.length!==m);K=!0);}catch(st){Q=!0,P=st}finally{try{if(!K&&S.return!=null&&(N=S.return(),Object(N)!==N))return}finally{if(Q)throw P}}return U}}(u,f)||sm(u,f)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function dn(u){return function(f){if(z1(f))return o0(f)}(u)||function(f){if(nu!==void 0&&W1(f)!=null||f["@@iterator"]!=null)return am(f)}(u)||sm(u)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var hf=z(J_),iO=qr("Array","concat"),Yr=$e,a0=iO,s0=Array.prototype,um=z(function(u){var f=u.concat;return u===s0||Yr(s0,u)&&f===s0.concat?a0:f}),df=z(cf),u0=wr,oO=oi,aO=wi,l0=wn,sO=le([].concat),za=u0("Reflect","ownKeys")||function(u){var f=oO.f(l0(u)),v=aO.f;return v?sO(f,v(u)):f};Rt({target:"Reflect",stat:!0},{ownKeys:za});var Q1=z(Ge.Reflect.ownKeys),Gn=z(nm),uO=yn,ff=Ys;Rt({target:"Object",stat:!0,forced:dt(function(){ff(1)})},{keys:function(u){return ff(uO(u))}});var pf=z(Ge.Object.keys),tS=Ut.forEach,lm=Jv("forEach")?[].forEach:function(u){return tS(this,u,arguments.length>1?arguments[1]:void 0)};Rt({target:"Array",proto:!0,forced:[].forEach!==lm},{forEach:lm});var lO=qr("Array","forEach"),cm=Bi,cO=Kt,eS=$e,lh=lO,c0=Array.prototype,hO={DOMTokenList:!0,NodeList:!0},h0=function(u){var f=u.forEach;return u===c0||eS(c0,u)&&f===c0.forEach||cO(hO,cm(u))?lh:f},ea=z(h0),d0=Rt,dO=Yi,fO=le([].reverse),rS=[1,2];d0({target:"Array",proto:!0,forced:String(rS)===String(rS.reverse())},{reverse:function(){return dO(this)&&(this.length=this.length),fO(this)}});var pO=qr("Array","reverse"),vO=$e,f0=pO,vf=Array.prototype,nS=function(u){var f=u.reverse;return u===vf||vO(vf,u)&&f===vf.reverse?f0:f},Br=z(nS),hm=nr,mO=TypeError,p0=function(u,f){if(!delete u[f])throw new mO("Cannot delete property "+hm(f)+" of "+hm(u))},gO=Rt,yO=yn,bO=Go,wO=Sn,iS=Rn,_O=ou,SO=zu,kO=Ku,v0=yi,m0=p0,TO=Pa("splice"),g0=Math.max,xO=Math.min;gO({target:"Array",proto:!0,forced:!TO},{splice:function(u,f){var v,m,S,E,P,A,N=yO(this),U=iS(N),K=bO(u,U),Q=arguments.length;for(Q===0?v=m=0:Q===1?(v=0,m=U-K):(v=Q-2,m=xO(g0(wO(f),0),U-K)),SO(U+v-m),S=kO(N,m),E=0;E<m;E++)(P=K+E)in N&&v0(S,E,N[P]);if(S.length=m,v<m){for(E=K;E<U-m;E++)A=E+v,(P=E+m)in N?N[A]=N[P]:m0(N,A);for(E=U;E>U-m+v;E--)m0(N,E-1)}else if(v>m)for(E=U-m;E>K;E--)A=E+v-1,(P=E+m-1)in N?N[A]=N[P]:m0(N,A);for(E=0;E<v;E++)N[E+K]=arguments[E+2];return _O(N,U-m+v),S}});var Kr=qr("Array","splice"),oS=$e,y0=Kr,b0=Array.prototype,aS=z(function(u){var f=u.splice;return u===b0||oS(b0,u)&&f===b0.splice?y0:f}),w0=ie,OO=le,Jr=Ae,_0=dt,Tl=Ys,S0=wi,EO=je,DO=yn,sS=gs,Zr=Object.assign,k0=Object.defineProperty,CO=OO([].concat),IO=!Zr||_0(function(){if(w0&&Zr({b:1},Zr(k0({},"a",{enumerable:!0,get:function(){k0(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var u={},f={},v=Symbol("assign detection"),m="abcdefghijklmnopqrst";return u[v]=7,m.split("").forEach(function(S){f[S]=S}),Zr({},u)[v]!==7||Tl(Zr({},f)).join("")!==m})?function(u,f){for(var v=DO(u),m=arguments.length,S=1,E=S0.f,P=EO.f;m>S;)for(var A,N=sS(arguments[S++]),U=E?CO(Tl(N),E(N)):Tl(N),K=U.length,Q=0;K>Q;)A=U[Q++],w0&&!Jr(P,N,A)||(v[A]=N[A]);return v}:Zr,uS=IO;Rt({target:"Object",stat:!0,arity:2,forced:Object.assign!==uS},{assign:uS});var T0=z(Ge.Object.assign),PO=yn,x0=Xd,AO=hb;Rt({target:"Object",stat:!0,forced:dt(function(){x0(1)}),sham:!AO},{getPrototypeOf:function(u){return x0(PO(u))}});var lS=Ge.Object.getPrototypeOf;Rt({target:"Object",stat:!0,sham:!ie},{create:Wo});var $O=Ge.Object,cS=function(u,f){return $O.create(u,f)},MO=z(cS),ch=Ge,NO=Mi;ch.JSON||(ch.JSON={stringify:JSON.stringify});var RO=function(u,f,v){return NO(ch.JSON.stringify,null,arguments)},jO=z(RO),O0=typeof Bun=="function"&&Bun&&typeof Bun.version=="string",LO=TypeError,hS=function(u,f){if(u<f)throw new LO("Not enough arguments");return u},E0=St,FO=Mi,YO=Te,BO=O0,HO=Xt,GO=Xr,WO=hS,dS=E0.Function,fS=/MSIE .\./.test(HO)||BO&&function(){var u=E0.Bun.version.split(".");return u.length<3||u[0]==="0"&&(u[1]<3||u[1]==="3"&&u[2]==="0")}(),D0=function(u,f){var v=f?2:1;return fS?function(m,S){var E=WO(arguments.length,1)>v,P=YO(m)?m:dS(m),A=E?GO(arguments,v):[],N=E?function(){FO(P,this,A)}:P;return f?u(N,S):u(N)}:u},zO=Rt,C0=St,I0=D0(C0.setInterval,!0);zO({global:!0,bind:!0,forced:C0.setInterval!==I0},{setInterval:I0});var pS=Rt,vS=St,P0=D0(vS.setTimeout,!0);pS({global:!0,bind:!0,forced:vS.setTimeout!==P0},{setTimeout:P0});var UO=z(Ge.setTimeout),A0={exports:{}};(function(u){function f(v){if(v)return function(m){return Object.assign(m,f.prototype),m._callbacks=new Map,m}(v);this._callbacks=new Map}f.prototype.on=function(v,m){var E;let S=(E=this._callbacks.get(v))!=null?E:[];return S.push(m),this._callbacks.set(v,S),this},f.prototype.once=function(v,m){let S=(...E)=>{this.off(v,S),m.apply(this,E)};return S.fn=m,this.on(v,S),this},f.prototype.off=function(v,m){if(v===void 0&&m===void 0)return this._callbacks.clear(),this;if(m===void 0)return this._callbacks.delete(v),this;let S=this._callbacks.get(v);if(S){for(let[E,P]of S.entries())if(P===m||P.fn===m){S.splice(E,1);break}S.length===0?this._callbacks.delete(v):this._callbacks.set(v,S)}return this},f.prototype.emit=function(v,...m){let S=this._callbacks.get(v);if(S){let E=[...S];for(let P of E)P.apply(this,m)}return this},f.prototype.listeners=function(v){var m;return(m=this._callbacks.get(v))!=null?m:[]},f.prototype.listenerCount=function(v){if(v)return this.listeners(v).length;let m=0;for(let S of this._callbacks.values())m+=S.length;return m},f.prototype.hasListeners=function(v){return this.listenerCount(v)>0},f.prototype.addEventListener=f.prototype.on,f.prototype.removeListener=f.prototype.off,f.prototype.removeEventListener=f.prototype.off,f.prototype.removeAllListeners=f.prototype.off,u.exports=f})(A0);var $0,au=z(A0.exports);function Ti(){return Ti=Object.assign||function(u){for(var f=1;f<arguments.length;f++){var v=arguments[f];for(var m in v)Object.prototype.hasOwnProperty.call(v,m)&&(u[m]=v[m])}return u},Ti.apply(this,arguments)}function Ki(u,f){u.prototype=Object.create(f.prototype),u.prototype.constructor=u,u.__proto__=f}function hh(u){if(u===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u}$0=typeof Object.assign!="function"?function(u){if(u==null)throw new TypeError("Cannot convert undefined or null to object");for(var f=Object(u),v=1;v<arguments.length;v++){var m=arguments[v];if(m!=null)for(var S in m)m.hasOwnProperty(S)&&(f[S]=m[S])}return f}:Object.assign;var su,Qr=$0,dm=["","webkit","Moz","MS","ms","o"],VO=typeof document=="undefined"?{style:{}}:document.createElement("div"),uu=Math.round,xl=Math.abs,fm=Date.now;function dh(u,f){for(var v,m,S=f[0].toUpperCase()+f.slice(1),E=0;E<dm.length;){if((m=(v=dm[E])?v+S:f)in u)return m;E++}}su=typeof window=="undefined"?{}:window;var pm=dh(VO.style,"touchAction"),vm=pm!==void 0,mS="compute",gS="auto",mm="manipulation",Ol="none",mf="pan-x",fh="pan-y",gf=function(){if(!vm)return!1;var u={},f=su.CSS&&su.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(v){return u[v]=!f||su.CSS.supports("touch-action",v)}),u}(),yS="ontouchstart"in su,XO=dh(su,"PointerEvent")!==void 0,bS=yS&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),yf="touch",M0="mouse",wS=25,tn=1,Ar=4,Wn=8,bf=1,wf=2,El=4,_f=8,Dl=16,ra=wf|El,Cl=_f|Dl,gm=ra|Cl,N0=["x","y"],ph=["clientX","clientY"];function Ji(u,f,v){var m;if(u)if(u.forEach)u.forEach(f,v);else if(u.length!==void 0)for(m=0;m<u.length;)f.call(v,u[m],m,u),m++;else for(m in u)u.hasOwnProperty(m)&&f.call(v,u[m],m,u)}function Sf(u,f){return typeof u=="function"?u.apply(f&&f[0]||void 0,f):u}function Ua(u,f){return u.indexOf(f)>-1}var R0=function(){function u(v,m){this.manager=v,this.set(m)}var f=u.prototype;return f.set=function(v){v===mS&&(v=this.compute()),vm&&this.manager.element.style&&gf[v]&&(this.manager.element.style[pm]=v),this.actions=v.toLowerCase().trim()},f.update=function(){this.set(this.manager.options.touchAction)},f.compute=function(){var v=[];return Ji(this.manager.recognizers,function(m){Sf(m.options.enable,[m])&&(v=v.concat(m.getTouchAction()))}),function(m){if(Ua(m,Ol))return Ol;var S=Ua(m,mf),E=Ua(m,fh);return S&&E?Ol:S||E?S?mf:fh:Ua(m,mm)?mm:gS}(v.join(" "))},f.preventDefaults=function(v){var m=v.srcEvent,S=v.offsetDirection;if(this.manager.session.prevented)m.preventDefault();else{var E=this.actions,P=Ua(E,Ol)&&!gf[Ol],A=Ua(E,fh)&&!gf[fh],N=Ua(E,mf)&&!gf[mf];if(P){var U=v.pointers.length===1,K=v.distance<2,Q=v.deltaTime<250;if(U&&K&&Q)return}if(!N||!A)return P||A&&S&ra||N&&S&Cl?this.preventSrc(m):void 0}},f.preventSrc=function(v){this.manager.session.prevented=!0,v.preventDefault()},u}();function j0(u,f){for(;u;){if(u===f)return!0;u=u.parentNode}return!1}function Zi(u){var f=u.length;if(f===1)return{x:uu(u[0].clientX),y:uu(u[0].clientY)};for(var v=0,m=0,S=0;S<f;)v+=u[S].clientX,m+=u[S].clientY,S++;return{x:uu(v/f),y:uu(m/f)}}function ym(u){for(var f=[],v=0;v<u.pointers.length;)f[v]={clientX:uu(u.pointers[v].clientX),clientY:uu(u.pointers[v].clientY)},v++;return{timeStamp:fm(),pointers:f,center:Zi(f),deltaX:u.deltaX,deltaY:u.deltaY}}function Oo(u,f,v){v||(v=N0);var m=f[v[0]]-u[v[0]],S=f[v[1]]-u[v[1]];return Math.sqrt(m*m+S*S)}function kf(u,f,v){v||(v=N0);var m=f[v[0]]-u[v[0]],S=f[v[1]]-u[v[1]];return 180*Math.atan2(S,m)/Math.PI}function L0(u,f){return u===f?bf:xl(u)>=xl(f)?u<0?wf:El:f<0?_f:Dl}function F0(u,f,v){return{x:f/u||0,y:v/u||0}}function qO(u,f){var v=u.session,m=f.pointers,S=m.length;v.firstInput||(v.firstInput=ym(f)),S>1&&!v.firstMultiple?v.firstMultiple=ym(f):S===1&&(v.firstMultiple=!1);var E=v.firstInput,P=v.firstMultiple,A=P?P.center:E.center,N=f.center=Zi(m);f.timeStamp=fm(),f.deltaTime=f.timeStamp-E.timeStamp,f.angle=kf(A,N),f.distance=Oo(A,N),function(Tt,Pt){var Vt=Pt.center,jt=Tt.offsetDelta||{},Me=Tt.prevDelta||{},Ne=Tt.prevInput||{};Pt.eventType!==tn&&Ne.eventType!==Ar||(Me=Tt.prevDelta={x:Ne.deltaX||0,y:Ne.deltaY||0},jt=Tt.offsetDelta={x:Vt.x,y:Vt.y}),Pt.deltaX=Me.x+(Vt.x-jt.x),Pt.deltaY=Me.y+(Vt.y-jt.y)}(v,f),f.offsetDirection=L0(f.deltaX,f.deltaY);var U,K,Q=F0(f.deltaTime,f.deltaX,f.deltaY);f.overallVelocityX=Q.x,f.overallVelocityY=Q.y,f.overallVelocity=xl(Q.x)>xl(Q.y)?Q.x:Q.y,f.scale=P?(U=P.pointers,Oo((K=m)[0],K[1],ph)/Oo(U[0],U[1],ph)):1,f.rotation=P?function(Tt,Pt){return kf(Pt[1],Pt[0],ph)+kf(Tt[1],Tt[0],ph)}(P.pointers,m):0,f.maxPointers=v.prevInput?f.pointers.length>v.prevInput.maxPointers?f.pointers.length:v.prevInput.maxPointers:f.pointers.length,function(Tt,Pt){var Vt,jt,Me,Ne,Je=Tt.lastInterval||Pt,Hr=Pt.timeStamp-Je.timeStamp;if(Pt.eventType!==Wn&&(Hr>wS||Je.velocity===void 0)){var fa=Pt.deltaX-Je.deltaX,pn=Pt.deltaY-Je.deltaY,ze=F0(Hr,fa,pn);jt=ze.x,Me=ze.y,Vt=xl(ze.x)>xl(ze.y)?ze.x:ze.y,Ne=L0(fa,pn),Tt.lastInterval=Pt}else Vt=Je.velocity,jt=Je.velocityX,Me=Je.velocityY,Ne=Je.direction;Pt.velocity=Vt,Pt.velocityX=jt,Pt.velocityY=Me,Pt.direction=Ne}(v,f);var st,ht=u.element,kt=f.srcEvent;j0(st=kt.composedPath?kt.composedPath()[0]:kt.path?kt.path[0]:kt.target,ht)&&(ht=st),f.target=ht}function bm(u,f,v){var m=v.pointers.length,S=v.changedPointers.length,E=f&tn&&m-S==0,P=f&(Ar|Wn)&&m-S==0;v.isFirst=!!E,v.isFinal=!!P,E&&(u.session={}),v.eventType=f,qO(u,v),u.emit("hammer.input",v),u.recognize(v),u.session.prevInput=v}function Il(u){return u.trim().split(/\s+/g)}function Tf(u,f,v){Ji(Il(f),function(m){u.addEventListener(m,v,!1)})}function xf(u,f,v){Ji(Il(f),function(m){u.removeEventListener(m,v,!1)})}function Ke(u){var f=u.ownerDocument||u;return f.defaultView||f.parentWindow||window}var lu=function(){function u(v,m){var S=this;this.manager=v,this.callback=m,this.element=v.element,this.target=v.options.inputTarget,this.domHandler=function(E){Sf(v.options.enable,[v])&&S.handler(E)},this.init()}var f=u.prototype;return f.handler=function(){},f.init=function(){this.evEl&&Tf(this.element,this.evEl,this.domHandler),this.evTarget&&Tf(this.target,this.evTarget,this.domHandler),this.evWin&&Tf(Ke(this.element),this.evWin,this.domHandler)},f.destroy=function(){this.evEl&&xf(this.element,this.evEl,this.domHandler),this.evTarget&&xf(this.target,this.evTarget,this.domHandler),this.evWin&&xf(Ke(this.element),this.evWin,this.domHandler)},u}();function vr(u,f,v){if(u.indexOf&&!v)return u.indexOf(f);for(var m=0;m<u.length;){if(v&&u[m][v]==f||!v&&u[m]===f)return m;m++}return-1}var Y0={pointerdown:tn,pointermove:2,pointerup:Ar,pointercancel:Wn,pointerout:Wn},KO={2:yf,3:"pen",4:M0,5:"kinect"},_S="pointerdown",SS="pointermove pointerup pointercancel";su.MSPointerEvent&&!su.PointerEvent&&(_S="MSPointerDown",SS="MSPointerMove MSPointerUp MSPointerCancel");var wm=function(u){function f(){var v,m=f.prototype;return m.evEl=_S,m.evWin=SS,(v=u.apply(this,arguments)||this).store=v.manager.session.pointerEvents=[],v}return Ki(f,u),f.prototype.handler=function(v){var m=this.store,S=!1,E=v.type.toLowerCase().replace("ms",""),P=Y0[E],A=KO[v.pointerType]||v.pointerType,N=A===yf,U=vr(m,v.pointerId,"pointerId");P&tn&&(v.button===0||N)?U<0&&(m.push(v),U=m.length-1):P&(Ar|Wn)&&(S=!0),U<0||(m[U]=v,this.callback(this.manager,P,{pointers:m,changedPointers:[v],pointerType:A,srcEvent:v}),S&&m.splice(U,1))},f}(lu);function vh(u){return Array.prototype.slice.call(u,0)}function B0(u,f,v){for(var m=[],S=[],E=0;E<u.length;){var P=f?u[E][f]:u[E];vr(S,P)<0&&m.push(u[E]),S[E]=P,E++}return v&&(m=f?m.sort(function(A,N){return A[f]>N[f]}):m.sort()),m}var kS={touchstart:tn,touchmove:2,touchend:Ar,touchcancel:Wn},H0=function(u){function f(){var v;return f.prototype.evTarget="touchstart touchmove touchend touchcancel",(v=u.apply(this,arguments)||this).targetIds={},v}return Ki(f,u),f.prototype.handler=function(v){var m=kS[v.type],S=JO.call(this,v,m);S&&this.callback(this.manager,m,{pointers:S[0],changedPointers:S[1],pointerType:yf,srcEvent:v})},f}(lu);function JO(u,f){var v,m,S=vh(u.touches),E=this.targetIds;if(f&(2|tn)&&S.length===1)return E[S[0].identifier]=!0,[S,S];var P=vh(u.changedTouches),A=[],N=this.target;if(m=S.filter(function(U){return j0(U.target,N)}),f===tn)for(v=0;v<m.length;)E[m[v].identifier]=!0,v++;for(v=0;v<P.length;)E[P[v].identifier]&&A.push(P[v]),f&(Ar|Wn)&&delete E[P[v].identifier],v++;return A.length?[B0(m.concat(A),"identifier",!0),A]:void 0}var xi={mousedown:tn,mousemove:2,mouseup:Ar},Of=function(u){function f(){var v,m=f.prototype;return m.evEl="mousedown",m.evWin="mousemove mouseup",(v=u.apply(this,arguments)||this).pressed=!1,v}return Ki(f,u),f.prototype.handler=function(v){var m=xi[v.type];m&tn&&v.button===0&&(this.pressed=!0),2&m&&v.which!==1&&(m=Ar),this.pressed&&(m&Ar&&(this.pressed=!1),this.callback(this.manager,m,{pointers:[v],changedPointers:[v],pointerType:M0,srcEvent:v}))},f}(lu),TS=2500;function xS(u){var f=u.changedPointers[0];if(f.identifier===this.primaryTouch){var v={x:f.clientX,y:f.clientY},m=this.lastTouches;this.lastTouches.push(v),setTimeout(function(){var S=m.indexOf(v);S>-1&&m.splice(S,1)},TS)}}function ZO(u,f){u&tn?(this.primaryTouch=f.changedPointers[0].identifier,xS.call(this,f)):u&(Ar|Wn)&&xS.call(this,f)}function QO(u){for(var f=u.srcEvent.clientX,v=u.srcEvent.clientY,m=0;m<this.lastTouches.length;m++){var S=this.lastTouches[m],E=Math.abs(f-S.x),P=Math.abs(v-S.y);if(E<=25&&P<=25)return!0}return!1}var G0=function(){return function(u){function f(v,m){var S;return(S=u.call(this,v,m)||this).handler=function(E,P,A){var N=A.pointerType===yf,U=A.pointerType===M0;if(!(U&&A.sourceCapabilities&&A.sourceCapabilities.firesTouchEvents)){if(N)ZO.call(hh(hh(S)),P,A);else if(U&&QO.call(hh(hh(S)),A))return;S.callback(E,P,A)}},S.touch=new H0(S.manager,S.handler),S.mouse=new Of(S.manager,S.handler),S.primaryTouch=null,S.lastTouches=[],S}return Ki(f,u),f.prototype.destroy=function(){this.touch.destroy(),this.mouse.destroy()},f}(lu)}();function mh(u,f,v){return!!Array.isArray(u)&&(Ji(u,v[f],v),!0)}var cu=32,tE=1;function gh(u,f){var v=f.manager;return v?v.get(u):u}function OS(u){return 16&u?"cancel":8&u?"end":4&u?"move":2&u?"start":""}var Ef=function(){function u(v){v===void 0&&(v={}),this.options=Ti({enable:!0},v),this.id=tE++,this.manager=null,this.state=1,this.simultaneous={},this.requireFail=[]}var f=u.prototype;return f.set=function(v){return Qr(this.options,v),this.manager&&this.manager.touchAction.update(),this},f.recognizeWith=function(v){if(mh(v,"recognizeWith",this))return this;var m=this.simultaneous;return m[(v=gh(v,this)).id]||(m[v.id]=v,v.recognizeWith(this)),this},f.dropRecognizeWith=function(v){return mh(v,"dropRecognizeWith",this)||(v=gh(v,this),delete this.simultaneous[v.id]),this},f.requireFailure=function(v){if(mh(v,"requireFailure",this))return this;var m=this.requireFail;return vr(m,v=gh(v,this))===-1&&(m.push(v),v.requireFailure(this)),this},f.dropRequireFailure=function(v){if(mh(v,"dropRequireFailure",this))return this;v=gh(v,this);var m=vr(this.requireFail,v);return m>-1&&this.requireFail.splice(m,1),this},f.hasRequireFailures=function(){return this.requireFail.length>0},f.canRecognizeWith=function(v){return!!this.simultaneous[v.id]},f.emit=function(v){var m=this,S=this.state;function E(P){m.manager.emit(P,v)}S<8&&E(m.options.event+OS(S)),E(m.options.event),v.additionalEvent&&E(v.additionalEvent),S>=8&&E(m.options.event+OS(S))},f.tryEmit=function(v){if(this.canEmit())return this.emit(v);this.state=cu},f.canEmit=function(){for(var v=0;v<this.requireFail.length;){if(!(33&this.requireFail[v].state))return!1;v++}return!0},f.recognize=function(v){var m=Qr({},v);if(!Sf(this.options.enable,[this,m]))return this.reset(),void(this.state=cu);56&this.state&&(this.state=1),this.state=this.process(m),30&this.state&&this.tryEmit(m)},f.process=function(v){},f.getTouchAction=function(){},f.reset=function(){},u}(),W0=function(u){function f(m){var S;return m===void 0&&(m={}),(S=u.call(this,Ti({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},m))||this).pTime=!1,S.pCenter=!1,S._timer=null,S._input=null,S.count=0,S}Ki(f,u);var v=f.prototype;return v.getTouchAction=function(){return[mm]},v.process=function(m){var S=this,E=this.options,P=m.pointers.length===E.pointers,A=m.distance<E.threshold,N=m.deltaTime<E.time;if(this.reset(),m.eventType&tn&&this.count===0)return this.failTimeout();if(A&&N&&P){if(m.eventType!==Ar)return this.failTimeout();var U=!this.pTime||m.timeStamp-this.pTime<E.interval,K=!this.pCenter||Oo(this.pCenter,m.center)<E.posThreshold;if(this.pTime=m.timeStamp,this.pCenter=m.center,K&&U?this.count+=1:this.count=1,this._input=m,this.count%E.taps===0)return this.hasRequireFailures()?(this._timer=setTimeout(function(){S.state=8,S.tryEmit()},E.interval),2):8}return cu},v.failTimeout=function(){var m=this;return this._timer=setTimeout(function(){m.state=cu},this.options.interval),cu},v.reset=function(){clearTimeout(this._timer)},v.emit=function(){this.state===8&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},f}(Ef),hu=function(u){function f(m){return m===void 0&&(m={}),u.call(this,Ti({pointers:1},m))||this}Ki(f,u);var v=f.prototype;return v.attrTest=function(m){var S=this.options.pointers;return S===0||m.pointers.length===S},v.process=function(m){var S=this.state,E=m.eventType,P=6&S,A=this.attrTest(m);return P&&(E&Wn||!A)?16|S:P||A?E&Ar?8|S:2&S?4|S:2:cu},f}(Ef);function ES(u){return u===Dl?"down":u===_f?"up":u===wf?"left":u===El?"right":""}var Df=function(u){function f(m){var S;return m===void 0&&(m={}),(S=u.call(this,Ti({event:"pan",threshold:10,pointers:1,direction:gm},m))||this).pX=null,S.pY=null,S}Ki(f,u);var v=f.prototype;return v.getTouchAction=function(){var m=this.options.direction,S=[];return m&ra&&S.push(fh),m&Cl&&S.push(mf),S},v.directionTest=function(m){var S=this.options,E=!0,P=m.distance,A=m.direction,N=m.deltaX,U=m.deltaY;return A&S.direction||(S.direction&ra?(A=N===0?bf:N<0?wf:El,E=N!==this.pX,P=Math.abs(m.deltaX)):(A=U===0?bf:U<0?_f:Dl,E=U!==this.pY,P=Math.abs(m.deltaY))),m.direction=A,E&&P>S.threshold&&A&S.direction},v.attrTest=function(m){return hu.prototype.attrTest.call(this,m)&&(2&this.state||!(2&this.state)&&this.directionTest(m))},v.emit=function(m){this.pX=m.deltaX,this.pY=m.deltaY;var S=ES(m.direction);S&&(m.additionalEvent=this.options.event+S),u.prototype.emit.call(this,m)},f}(hu),DS=function(u){function f(m){return m===void 0&&(m={}),u.call(this,Ti({event:"swipe",threshold:10,velocity:.3,direction:ra|Cl,pointers:1},m))||this}Ki(f,u);var v=f.prototype;return v.getTouchAction=function(){return Df.prototype.getTouchAction.call(this)},v.attrTest=function(m){var S,E=this.options.direction;return E&(ra|Cl)?S=m.overallVelocity:E&ra?S=m.overallVelocityX:E&Cl&&(S=m.overallVelocityY),u.prototype.attrTest.call(this,m)&&E&m.offsetDirection&&m.distance>this.options.threshold&&m.maxPointers===this.options.pointers&&xl(S)>this.options.velocity&&m.eventType&Ar},v.emit=function(m){var S=ES(m.offsetDirection);S&&this.manager.emit(this.options.event+S,m),this.manager.emit(this.options.event,m)},f}(hu),CS=function(u){function f(m){return m===void 0&&(m={}),u.call(this,Ti({event:"pinch",threshold:0,pointers:2},m))||this}Ki(f,u);var v=f.prototype;return v.getTouchAction=function(){return[Ol]},v.attrTest=function(m){return u.prototype.attrTest.call(this,m)&&(Math.abs(m.scale-1)>this.options.threshold||2&this.state)},v.emit=function(m){if(m.scale!==1){var S=m.scale<1?"in":"out";m.additionalEvent=this.options.event+S}u.prototype.emit.call(this,m)},f}(hu),IS=function(u){function f(m){return m===void 0&&(m={}),u.call(this,Ti({event:"rotate",threshold:0,pointers:2},m))||this}Ki(f,u);var v=f.prototype;return v.getTouchAction=function(){return[Ol]},v.attrTest=function(m){return u.prototype.attrTest.call(this,m)&&(Math.abs(m.rotation)>this.options.threshold||2&this.state)},f}(hu),PS=function(u){function f(m){var S;return m===void 0&&(m={}),(S=u.call(this,Ti({event:"press",pointers:1,time:251,threshold:9},m))||this)._timer=null,S._input=null,S}Ki(f,u);var v=f.prototype;return v.getTouchAction=function(){return[gS]},v.process=function(m){var S=this,E=this.options,P=m.pointers.length===E.pointers,A=m.distance<E.threshold,N=m.deltaTime>E.time;if(this._input=m,!A||!P||m.eventType&(Ar|Wn)&&!N)this.reset();else if(m.eventType&tn)this.reset(),this._timer=setTimeout(function(){S.state=8,S.tryEmit()},E.time);else if(m.eventType&Ar)return 8;return cu},v.reset=function(){clearTimeout(this._timer)},v.emit=function(m){this.state===8&&(m&&m.eventType&Ar?this.manager.emit(this.options.event+"up",m):(this._input.timeStamp=fm(),this.manager.emit(this.options.event,this._input)))},f}(Ef),z0={domEvents:!1,touchAction:mS,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},AS=[[IS,{enable:!1}],[CS,{enable:!1},["rotate"]],[DS,{direction:ra}],[Df,{direction:ra},["swipe"]],[W0],[W0,{event:"doubletap",taps:2},["tap"]],[PS]];function U0(u,f){var v,m=u.element;m.style&&(Ji(u.options.cssProps,function(S,E){v=dh(m.style,E),f?(u.oldCssProps[v]=m.style[v],m.style[v]=S):m.style[v]=u.oldCssProps[v]||""}),f||(u.oldCssProps={}))}var V0=function(){function u(v,m){var S,E=this;this.options=Qr({},z0,m||{}),this.options.inputTarget=this.options.inputTarget||v,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=v,this.input=new((S=this).options.inputClass||(XO?wm:bS?H0:yS?G0:Of))(S,bm),this.touchAction=new R0(this,this.options.touchAction),U0(this,!0),Ji(this.options.recognizers,function(P){var A=E.add(new P[0](P[1]));P[2]&&A.recognizeWith(P[2]),P[3]&&A.requireFailure(P[3])},this)}var f=u.prototype;return f.set=function(v){return Qr(this.options,v),v.touchAction&&this.touchAction.update(),v.inputTarget&&(this.input.destroy(),this.input.target=v.inputTarget,this.input.init()),this},f.stop=function(v){this.session.stopped=v?2:1},f.recognize=function(v){var m=this.session;if(!m.stopped){var S;this.touchAction.preventDefaults(v);var E=this.recognizers,P=m.curRecognizer;(!P||P&&8&P.state)&&(m.curRecognizer=null,P=null);for(var A=0;A<E.length;)S=E[A],m.stopped===2||P&&S!==P&&!S.canRecognizeWith(P)?S.reset():S.recognize(v),!P&&14&S.state&&(m.curRecognizer=S,P=S),A++}},f.get=function(v){if(v instanceof Ef)return v;for(var m=this.recognizers,S=0;S<m.length;S++)if(m[S].options.event===v)return m[S];return null},f.add=function(v){if(mh(v,"add",this))return this;var m=this.get(v.options.event);return m&&this.remove(m),this.recognizers.push(v),v.manager=this,this.touchAction.update(),v},f.remove=function(v){if(mh(v,"remove",this))return this;var m=this.get(v);if(v){var S=this.recognizers,E=vr(S,m);E!==-1&&(S.splice(E,1),this.touchAction.update())}return this},f.on=function(v,m){if(v===void 0||m===void 0)return this;var S=this.handlers;return Ji(Il(v),function(E){S[E]=S[E]||[],S[E].push(m)}),this},f.off=function(v,m){if(v===void 0)return this;var S=this.handlers;return Ji(Il(v),function(E){m?S[E]&&S[E].splice(vr(S[E],m),1):delete S[E]}),this},f.emit=function(v,m){this.options.domEvents&&function(P,A){var N=document.createEvent("Event");N.initEvent(P,!0,!0),N.gesture=A,A.target.dispatchEvent(N)}(v,m);var S=this.handlers[v]&&this.handlers[v].slice();if(S&&S.length){m.type=v,m.preventDefault=function(){m.srcEvent.preventDefault()};for(var E=0;E<S.length;)S[E](m),E++}},f.destroy=function(){this.element&&U0(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},u}(),eE={touchstart:tn,touchmove:2,touchend:Ar,touchcancel:Wn},rE=function(u){function f(){var v,m=f.prototype;return m.evTarget="touchstart",m.evWin="touchstart touchmove touchend touchcancel",(v=u.apply(this,arguments)||this).started=!1,v}return Ki(f,u),f.prototype.handler=function(v){var m=eE[v.type];if(m===tn&&(this.started=!0),this.started){var S=nE.call(this,v,m);m&(Ar|Wn)&&S[0].length-S[1].length==0&&(this.started=!1),this.callback(this.manager,m,{pointers:S[0],changedPointers:S[1],pointerType:yf,srcEvent:v})}},f}(lu);function nE(u,f){var v=vh(u.touches),m=vh(u.changedTouches);return f&(Ar|Wn)&&(v=B0(v.concat(m),"identifier",!0)),[v,m]}function X0(u,f,v){var m="DEPRECATED METHOD: "+f+`
`+v+` AT
`;return function(){var S=new Error("get-stack-trace"),E=S&&S.stack?S.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",P=window.console&&(window.console.warn||window.console.log);return P&&P.call(window.console,m,E),u.apply(this,arguments)}}var $S=X0(function(u,f,v){for(var m=Object.keys(f),S=0;S<m.length;)(!v||v&&u[m[S]]===void 0)&&(u[m[S]]=f[m[S]]),S++;return u},"extend","Use `assign`."),iE=X0(function(u,f){return $S(u,f,!0)},"merge","Use `assign`.");function MS(u,f,v){var m,S=f.prototype;(m=u.prototype=Object.create(S)).constructor=u,m._super=S,v&&Qr(m,v)}function NS(u,f){return function(){return u.apply(f,arguments)}}var q0=function(){var u=function(f,v){return v===void 0&&(v={}),new V0(f,Ti({recognizers:AS.concat()},v))};return u.VERSION="2.0.17-rc",u.DIRECTION_ALL=gm,u.DIRECTION_DOWN=Dl,u.DIRECTION_LEFT=wf,u.DIRECTION_RIGHT=El,u.DIRECTION_UP=_f,u.DIRECTION_HORIZONTAL=ra,u.DIRECTION_VERTICAL=Cl,u.DIRECTION_NONE=bf,u.DIRECTION_DOWN=Dl,u.INPUT_START=tn,u.INPUT_MOVE=2,u.INPUT_END=Ar,u.INPUT_CANCEL=Wn,u.STATE_POSSIBLE=1,u.STATE_BEGAN=2,u.STATE_CHANGED=4,u.STATE_ENDED=8,u.STATE_RECOGNIZED=8,u.STATE_CANCELLED=16,u.STATE_FAILED=cu,u.Manager=V0,u.Input=lu,u.TouchAction=R0,u.TouchInput=H0,u.MouseInput=Of,u.PointerEventInput=wm,u.TouchMouseInput=G0,u.SingleTouchInput=rE,u.Recognizer=Ef,u.AttrRecognizer=hu,u.Tap=W0,u.Pan=Df,u.Swipe=DS,u.Pinch=CS,u.Rotate=IS,u.Press=PS,u.on=Tf,u.off=xf,u.each=Ji,u.merge=iE,u.extend=$S,u.bindFn=NS,u.assign=Qr,u.inherit=MS,u.bindFn=NS,u.prefixed=dh,u.toArray=vh,u.inArray=vr,u.uniqueArray=B0,u.splitStr=Il,u.boolOrFn=Sf,u.hasParent=j0,u.addEventListeners=Tf,u.removeEventListeners=xf,u.defaults=Qr({},z0,{preset:AS}),u}();function RS(u,f){var v=hf!==void 0&&ah(u)||u["@@iterator"];if(!v){if(Gn(u)||(v=function(N,U){var K;if(N){if(typeof N=="string")return jS(N,U);var Q=df(K=Object.prototype.toString.call(N)).call(K,8,-1);if(Q==="Object"&&N.constructor&&(Q=N.constructor.name),Q==="Map"||Q==="Set")return uf(N);if(Q==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Q))return jS(N,U)}}(u))||f&&u&&typeof u.length=="number"){v&&(u=v);var m=0,S=function(){};return{s:S,n:function(){return m>=u.length?{done:!0}:{done:!1,value:u[m++]}},e:function(N){throw N},f:S}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E,P=!0,A=!1;return{s:function(){v=v.call(u)},n:function(){var N=v.next();return P=N.done,N},e:function(N){A=!0,E=N},f:function(){try{P||v.return==null||v.return()}finally{if(A)throw E}}}}function jS(u,f){(f==null||f>u.length)&&(f=u.length);for(var v=0,m=new Array(f);v<f;v++)m[v]=u[v];return m}var K0=hf("DELETE");function LS(){var u=_m.apply(void 0,arguments);return yh(u),u}function _m(){for(var u=arguments.length,f=new Array(u),v=0;v<u;v++)f[v]=arguments[v];if(f.length<2)return f[0];var m;if(f.length>2)return _m.apply(void 0,um(m=[LS(f[0],f[1])]).call(m,dn(df(f).call(f,2))));var S=f[0],E=f[1];if(S instanceof Date&&E instanceof Date)return S.setTime(E.getTime()),S;var P,A=RS(Q1(E));try{for(A.s();!(P=A.n()).done;){var N=P.value;Object.prototype.propertyIsEnumerable.call(E,N)&&(E[N]===K0?delete S[N]:S[N]===null||E[N]===null||typeof S[N]!="object"||typeof E[N]!="object"||Gn(S[N])||Gn(E[N])?S[N]=FS(E[N]):S[N]=_m(S[N],E[N]))}}catch(U){A.e(U)}finally{A.f()}return S}function FS(u){return Gn(u)?ai(u).call(u,function(f){return FS(f)}):typeof u=="object"&&u!==null?u instanceof Date?new Date(u.getTime()):_m({},u):u}function yh(u){for(var f=0,v=pf(u);f<v.length;f++){var m=v[f];u[m]===K0?delete u[m]:typeof u[m]=="object"&&u[m]!==null&&yh(u[m])}}var oE=typeof window!="undefined"?window.Hammer||q0:function(){return function(){var u=function(){};return{on:u,off:u,destroy:u,emit:u,get:()=>({set:u})}}()};function Va(u){var f,v=this;this._cleanupQueue=[],this.active=!1,this._dom={container:u,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push(function(){v._dom.overlay.parentNode.removeChild(v._dom.overlay)});var m=oE(this._dom.overlay);m.on("tap",Sl(f=this._onTapOverlay).call(f,this)),this._cleanupQueue.push(function(){m.destroy()});var S=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];ea(S).call(S,function(E){m.on(E,function(P){P.srcEvent.stopPropagation()})}),document&&document.body&&(this._onClick=function(E){(function(P,A){for(;P;){if(P===A)return!0;P=P.parentNode}return!1})(E.target,u)||v.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push(function(){document.body.removeEventListener("click",v._onClick)})),this._escListener=function(E){("key"in E?E.key==="Escape":E.keyCode===27)&&v.deactivate()}}au(Va.prototype),Va.current=null,Va.prototype.destroy=function(){var u,f;this.deactivate();var v,m=RS(Br(u=aS(f=this._cleanupQueue).call(f,0)).call(u));try{for(m.s();!(v=m.n()).done;)(0,v.value)()}catch(S){m.e(S)}finally{m.f()}},Va.prototype.activate=function(){Va.current&&Va.current.deactivate(),Va.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)},Va.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")},Va.prototype._onTapOverlay=function(u){this.activate(),u.srcEvent.stopPropagation()};var li=Hi,J0=nr,aE=TypeError,Cf=function(u){if(li(u))return u;throw new aE(J0(u)+" is not a constructor")},sE=Rt,Z0=Mi,YS=Uv,Sm=Cf,uE=wn,BS=_e,lE=Wo,Q0=dt,du=wr("Reflect","construct"),HS=Object.prototype,cE=[].push,GS=Q0(function(){function u(){}return!(du(function(){},[],u)instanceof u)}),tw=!Q0(function(){du(function(){})}),WS=GS||tw;sE({target:"Reflect",stat:!0,forced:WS,sham:WS},{construct:function(u,f){Sm(u),uE(f);var v=arguments.length<3?u:Sm(arguments[2]);if(tw&&!GS)return du(u,f,v);if(u===v){switch(f.length){case 0:return new u;case 1:return new u(f[0]);case 2:return new u(f[0],f[1]);case 3:return new u(f[0],f[1],f[2]);case 4:return new u(f[0],f[1],f[2],f[3])}var m=[null];return Z0(cE,m,f),new(Z0(YS,u,m))}var S=v.prototype,E=lE(BS(S)?S:HS),P=Z0(u,E,f);return BS(P)?P:E}});var zn=z(Ge.Reflect.construct),bh=z(Ge.Object.getOwnPropertySymbols),ew={exports:{}},hE=Rt,ci=dt,dE=ri,zS=Ni.f,US=ie;hE({target:"Object",stat:!0,forced:!US||ci(function(){zS(1)}),sham:!US},{getOwnPropertyDescriptor:function(u,f){return zS(dE(u),f)}});var xn=Ge.Object,fE=ew.exports=function(u,f){return xn.getOwnPropertyDescriptor(u,f)};xn.getOwnPropertyDescriptor.sham&&(fE.sham=!0);var wh=z(ew.exports),pE=za,vE=ri,mE=Ni,VS=yi;Rt({target:"Object",stat:!0,sham:!ie},{getOwnPropertyDescriptors:function(u){for(var f,v,m=vE(u),S=mE.f,E=pE(m),P={},A=0;E.length>A;)(v=S(m,f=E[A++]))!==void 0&&VS(P,f,v);return P}});var km=z(Ge.Object.getOwnPropertyDescriptors),XS={exports:{}},gE=Rt,qS=ie,KS=$a.f;gE({target:"Object",stat:!0,forced:Object.defineProperties!==KS,sham:!qS},{defineProperties:KS});var If=Ge.Object,rw=XS.exports=function(u,f){return If.defineProperties(u,f)};If.defineProperties.sham&&(rw.sham=!0);var Pl=z(XS.exports),JS=z(bc);function Pf(u){if(u===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u}var Xa=cS,nw=z(Xa);Rt({target:"Object",stat:!0},{setPrototypeOf:Kc});var iw=Ge.Object.setPrototypeOf,Af=z(iw),Tm=z(qv);function ow(u,f){var v;return ow=Af?Tm(v=Af).call(v):function(m,S){return m.__proto__=S,m},ow(u,f)}function aw(u,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=nw(f&&f.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),Cs(u,"prototype",{writable:!1}),f&&ow(u,f)}function ZS(u,f){if(f&&(eh(f)==="object"||typeof f=="function"))return f;if(f!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Pf(u)}var QS=lS,tk=z(QS);function _h(u){var f;return _h=Af?Tm(f=tk).call(f):function(v){return v.__proto__||tk(v)},_h(u)}var sw={exports:{}},uw={exports:{}};(function(u){var f=Bv,v=u1;function m(S){return u.exports=m=typeof f=="function"&&typeof v=="symbol"?function(E){return typeof E}:function(E){return E&&typeof f=="function"&&E.constructor===f&&E!==f.prototype?"symbol":typeof E},u.exports.__esModule=!0,u.exports.default=u.exports,m(S)}u.exports=m,u.exports.__esModule=!0,u.exports.default=u.exports})(uw);var yE=uw.exports,fn=h0,xm=Kt,bE=za,$f=Ni,wE=_r,_E=_e,lw=mi,cw=Error,SE=le("".replace),kE=String(new cw("zxcasd").stack),Om=/\n\s*at [^:]*:[^\n]*/,Mf=Om.test(kE),ek=un,TE=!dt(function(){var u=new Error("a");return!("stack"in u)||(Object.defineProperty(u,"stack",ek(1,7)),u.stack!==7)}),xE=mi,OE=function(u,f){if(Mf&&typeof u=="string"&&!cw.prepareStackTrace)for(;f--;)u=SE(u,Om,"");return u},EE=TE,Em=Error.captureStackTrace,Nf=Li,rk=Ae,nk=wn,ik=nr,DE=tm,ok=Rn,ak=$e,Oi=em,Rf=sf,sk=Vb,uk=TypeError,Dm=function(u,f){this.stopped=u,this.result=f},qa=Dm.prototype,Ka=function(u,f,v){var m,S,E,P,A,N,U,K=v&&v.that,Q=!(!v||!v.AS_ENTRIES),st=!(!v||!v.IS_RECORD),ht=!(!v||!v.IS_ITERATOR),kt=!(!v||!v.INTERRUPTED),Tt=Nf(f,K),Pt=function(jt){return m&&sk(m,"normal",jt),new Dm(!0,jt)},Vt=function(jt){return Q?(nk(jt),kt?Tt(jt[0],jt[1],Pt):Tt(jt[0],jt[1])):kt?Tt(jt,Pt):Tt(jt)};if(st)m=u.iterator;else if(ht)m=u;else{if(!(S=Rf(u)))throw new uk(ik(u)+" is not iterable");if(DE(S)){for(E=0,P=ok(u);P>E;E++)if((A=Vt(u[E]))&&ak(qa,A))return A;return new Dm(!1)}m=Oi(u,S)}for(N=st?u.next:m.next;!(U=rk(N,m)).done;){try{A=Vt(U.value)}catch(jt){sk(m,"throw",jt)}if(typeof A=="object"&&A&&ak(qa,A))return A}return new Dm(!1)},lk=Aa,CE=Rt,IE=$e,ck=Xd,Sh=Kc,PE=function(u,f,v){for(var m=bE(f),S=wE.f,E=$f.f,P=0;P<m.length;P++){var A=m[P];xm(u,A)||v&&xm(v,A)||S(u,A,E(f,A))}},hk=Wo,Ie=mi,Al=un,AE=function(u,f){_E(f)&&"cause"in f&&lw(u,"cause",f.cause)},$E=function(u,f,v,m){EE&&(Em?Em(u,f):xE(u,"stack",OE(v,m)))},dk=Ka,fk=function(u,f){return u===void 0?arguments.length<2?"":f:lk(u)},ME=qe("toStringTag"),jf=Error,NE=[].push,$l=function(u,f){var v,m=IE(Lf,this);Sh?v=Sh(new jf,m?ck(this):Lf):(v=m?this:hk(Lf),Ie(v,ME,"Error")),f!==void 0&&Ie(v,"message",fk(f)),$E(v,$l,v.stack,1),arguments.length>2&&AE(v,arguments[2]);var S=[];return dk(u,NE,{that:S}),Ie(v,"errors",S),v};Sh?Sh($l,jf):PE($l,jf,{name:!0});var Lf=$l.prototype=hk(jf.prototype,{constructor:Al(1,$l),message:Al(1,""),name:Al(1,"AggregateError")});CE({global:!0,constructor:!0,arity:2},{AggregateError:$l});var Ff,kh,Cm,Yf,Im=wr,hw=Ra,RE=ie,Pm=qe("species"),Am=function(u){var f=Im(u);RE&&f&&!f[Pm]&&hw(f,Pm,{configurable:!0,get:function(){return this}})},jE=$e,LE=TypeError,Un=function(u,f){if(jE(f,u))return u;throw new LE("Incorrect invocation")},$m=wn,FE=Cf,YE=No,pk=qe("species"),vk=function(u,f){var v,m=$m(u).constructor;return m===void 0||YE(v=$m(m)[pk])?f:FE(v)},Mm=/(?:ipad|iphone|ipod).*applewebkit/i.test(Xt),Ei=St,BE=Mi,HE=Li,Nm=Te,mk=Kt,dw=dt,fw=sv,pw=Xr,vw=Fo,Bf=hS,Eo=Mm,Qi=rh,Th=Ei.setImmediate,na=Ei.clearImmediate,to=Ei.process,Hf=Ei.Dispatch,GE=Ei.Function,gk=Ei.MessageChannel,xh=Ei.String,ia=0,Ml={},Gf="onreadystatechange";dw(function(){Ff=Ei.location});var Rm=function(u){if(mk(Ml,u)){var f=Ml[u];delete Ml[u],f()}},jm=function(u){return function(){Rm(u)}},mw=function(u){Rm(u.data)},Lm=function(u){Ei.postMessage(xh(u),Ff.protocol+"//"+Ff.host)};Th&&na||(Th=function(u){Bf(arguments.length,1);var f=Nm(u)?u:GE(u),v=pw(arguments,1);return Ml[++ia]=function(){BE(f,void 0,v)},kh(ia),ia},na=function(u){delete Ml[u]},Qi?kh=function(u){to.nextTick(jm(u))}:Hf&&Hf.now?kh=function(u){Hf.now(jm(u))}:gk&&!Eo?(Yf=(Cm=new gk).port2,Cm.port1.onmessage=mw,kh=HE(Yf.postMessage,Yf)):Ei.addEventListener&&Nm(Ei.postMessage)&&!Ei.importScripts&&Ff&&Ff.protocol!=="file:"&&!dw(Lm)?(kh=Lm,Ei.addEventListener("message",mw,!1)):kh=Gf in vw("script")?function(u){fw.appendChild(vw("script"))[Gf]=function(){fw.removeChild(this),Rm(u)}}:function(u){setTimeout(jm(u),0)});var Fm={set:Th,clear:na},fu=function(){this.head=null,this.tail=null};fu.prototype={add:function(u){var f={item:u,next:null},v=this.tail;v?v.next=f:this.head=f,this.tail=f},get:function(){var u=this.head;if(u)return(this.head=u.next)===null&&(this.tail=null),u.item}};var oa,pu,Oh,Ym,yk,bk=fu,Wf=/ipad|iphone|ipod/i.test(Xt)&&typeof Pebble!="undefined",gw=/web0s(?!.*chrome)/i.test(Xt),Nl=St,On=Li,Rl=Ni.f,mr=Fm.set,hi=bk,Bm=Mm,zf=Wf,Eh=gw,jl=rh,Ll=Nl.MutationObserver||Nl.WebKitMutationObserver,Di=Nl.document,vu=Nl.process,Uf=Nl.Promise,yw=Rl(Nl,"queueMicrotask"),Dh=yw&&yw.value;if(!Dh){var eo=new hi,Fl=function(){var u,f;for(jl&&(u=vu.domain)&&u.exit();f=eo.get();)try{f()}catch(v){throw eo.head&&oa(),v}u&&u.enter()};Bm||jl||Eh||!Ll||!Di?!zf&&Uf&&Uf.resolve?((Ym=Uf.resolve(void 0)).constructor=Uf,yk=On(Ym.then,Ym),oa=function(){yk(Fl)}):jl?oa=function(){vu.nextTick(Fl)}:(mr=On(mr,Nl),oa=function(){mr(Fl)}):(pu=!0,Oh=Di.createTextNode(""),new Ll(Fl).observe(Oh,{characterData:!0}),oa=function(){Oh.data=pu=!pu}),Dh=function(u){eo.head||oa(),eo.add(u)}}var Yl=Dh,Bl=function(u){try{return{error:!1,value:u()}}catch(f){return{error:!0,value:f}}},aa=St.Promise,Hm=typeof Deno=="object"&&Deno&&typeof Deno.version=="object",wk=!Hm&&!rh&&typeof window=="object"&&typeof document=="object",Gm=St,Hl=aa,_k=Te,Sk=vc,WE=Xp,zE=qe,Vf=wk,Ch=Hm,Gl=An,Wm=Hl&&Hl.prototype,Ih=zE("species"),Ja=!1,kk=_k(Gm.PromiseRejectionEvent),Tk=Sk("Promise",function(){var u=WE(Hl),f=u!==String(Hl);if(!f&&Gl===66||!Wm.catch||!Wm.finally)return!0;if(!Gl||Gl<51||!/native code/.test(u)){var v=new Hl(function(S){S(1)}),m=function(S){S(function(){},function(){})};if((v.constructor={})[Ih]=m,!(Ja=v.then(function(){})instanceof m))return!0}return!f&&(Vf||Ch)&&!kk}),Ph={CONSTRUCTOR:Tk,REJECTION_EVENT:kk,SUBCLASSING:Ja},ro={},bw=Or,Xf=TypeError,ww=function(u){var f,v;this.promise=new u(function(m,S){if(f!==void 0||v!==void 0)throw new Xf("Bad Promise constructor");f=m,v=S}),this.resolve=bw(f),this.reject=bw(v)};ro.f=function(u){return new ww(u)};var _w,Sw,kw=Rt,zm=rh,en=St,En=Ae,Um=zi,qf=Dr,Wl=Am,Tw=Or,Vm=Te,UE=_e,Ah=Un,mu=vk,Za=Fm.set,Qa=Yl,$r=function(u,f){try{arguments.length===1?console.error(u):console.error(u,f)}catch(v){}},zl=Bl,ts=bk,sa=jn,gu=aa,no=Ph,Xm=ro,Ci="Promise",Ul=no.CONSTRUCTOR,es=no.REJECTION_EVENT,yu=sa.getterFor(Ci),$h=sa.set,xw=gu&&gu.prototype,Vl=gu,qm=xw,Xl=en.TypeError,Km=en.document,Mh=en.process,Jm=Xm.f,xk=Jm,Dn=!!(Km&&Km.createEvent&&en.dispatchEvent),rs="unhandledrejection",Sr=function(u){var f;return!(!UE(u)||!Vm(f=u.then))&&f},Vn=function(u,f){var v,m,S,E=f.value,P=f.state===1,A=P?u.ok:u.fail,N=u.resolve,U=u.reject,K=u.domain;try{A?(P||(f.rejection===2&&Kl(f),f.rejection=1),A===!0?v=E:(K&&K.enter(),v=A(E),K&&(K.exit(),S=!0)),v===u.promise?U(new Xl("Promise-chain cycle")):(m=Sr(v))?En(m,v,N,U):N(v)):U(E)}catch(Q){K&&!S&&K.exit(),U(Q)}},Kf=function(u,f){u.notified||(u.notified=!0,Qa(function(){for(var v,m=u.reactions;v=m.get();)Vn(v,u);u.notified=!1,f&&!u.rejection&&Jf(u)}))},Nh=function(u,f,v){var m,S;Dn?((m=Km.createEvent("Event")).promise=f,m.reason=v,m.initEvent(u,!1,!0),en.dispatchEvent(m)):m={promise:f,reason:v},!es&&(S=en["on"+u])?S(m):u===rs&&$r("Unhandled promise rejection",v)},Jf=function(u){En(Za,en,function(){var f,v=u.facade,m=u.value;if(ql(u)&&(f=zl(function(){zm?Mh.emit("unhandledRejection",m,v):Nh(rs,v,m)}),u.rejection=zm||ql(u)?2:1,f.error))throw f.value})},ql=function(u){return u.rejection!==1&&!u.parent},Kl=function(u){En(Za,en,function(){var f=u.facade;zm?Mh.emit("rejectionHandled",f):Nh("rejectionhandled",f,u.value)})},Xn=function(u,f,v){return function(m){u(f,m,v)}},io=function(u,f,v){u.done||(u.done=!0,v&&(u=v),u.value=f,u.state=2,Kf(u,!0))},Zf=function(u,f,v){if(!u.done){u.done=!0,v&&(u=v);try{if(u.facade===f)throw new Xl("Promise can't be resolved itself");var m=Sr(f);m?Qa(function(){var S={done:!1};try{En(m,f,Xn(Zf,S,u),Xn(io,S,u))}catch(E){io(S,E,u)}}):(u.value=f,u.state=1,Kf(u,!1))}catch(S){io({done:!1},S,u)}}};Ul&&(qm=(Vl=function(u){Ah(this,qm),Tw(u),En(_w,this);var f=yu(this);try{u(Xn(Zf,f),Xn(io,f))}catch(v){io(f,v)}}).prototype,(_w=function(u){$h(this,{type:Ci,done:!1,notified:!1,parent:!1,reactions:new ts,rejection:!1,state:0,value:void 0})}).prototype=Um(qm,"then",function(u,f){var v=yu(this),m=Jm(mu(this,Vl));return v.parent=!0,m.ok=!Vm(u)||u,m.fail=Vm(f)&&f,m.domain=zm?Mh.domain:void 0,v.state===0?v.reactions.add(m):Qa(function(){Vn(m,v)}),m.promise}),Sw=function(){var u=new _w,f=yu(u);this.promise=u,this.resolve=Xn(Zf,f),this.reject=Xn(io,f)},Xm.f=Jm=function(u){return u===Vl||u===void 0?new Sw(u):xk(u)}),kw({global:!0,constructor:!0,wrap:!0,forced:Ul},{Promise:Vl}),qf(Vl,Ci,!1,!0),Wl(Ci);var Ow=aa,bu=Ph.CONSTRUCTOR||!t0(function(u){Ow.all(u).then(void 0,function(){})}),ua=Ae,Qf=Or,ns=ro,Ok=Bl,Zm=Ka;Rt({target:"Promise",stat:!0,forced:bu},{all:function(u){var f=this,v=ns.f(f),m=v.resolve,S=v.reject,E=Ok(function(){var P=Qf(f.resolve),A=[],N=0,U=1;Zm(u,function(K){var Q=N++,st=!1;U++,ua(P,f,K).then(function(ht){st||(st=!0,A[Q]=ht,--U||m(A))},S)}),--U||m(A)});return E.error&&S(E.value),v.promise}});var tp=Rt,ep=Ph.CONSTRUCTOR;aa&&aa.prototype,tp({target:"Promise",proto:!0,forced:ep,real:!0},{catch:function(u){return this.then(void 0,u)}});var Ew=Ae,rp=Or,np=ro,Do=Bl,VE=Ka;Rt({target:"Promise",stat:!0,forced:bu},{race:function(u){var f=this,v=np.f(f),m=v.reject,S=Do(function(){var E=rp(f.resolve);VE(u,function(P){Ew(E,f,P).then(v.resolve,m)})});return S.error&&m(S.value),v.promise}});var Ek=Ae,XE=ro;Rt({target:"Promise",stat:!0,forced:Ph.CONSTRUCTOR},{reject:function(u){var f=XE.f(this);return Ek(f.reject,void 0,u),f.promise}});var qE=wn,KE=_e,ip=ro,di=function(u,f){if(qE(u),KE(f)&&f.constructor===u)return f;var v=ip.f(u);return(0,v.resolve)(f),v.promise},Jl=Rt,Co=aa,op=Ph.CONSTRUCTOR,Rh=di,la=wr("Promise"),Io=!op;Jl({target:"Promise",stat:!0,forced:!0},{resolve:function(u){return Rh(Io&&this===la?Co:this,u)}});var Dk=Ae,JE=Or,Ck=ro,ap=Bl,Qm=Ka;Rt({target:"Promise",stat:!0,forced:bu},{allSettled:function(u){var f=this,v=Ck.f(f),m=v.resolve,S=v.reject,E=ap(function(){var P=JE(f.resolve),A=[],N=0,U=1;Qm(u,function(K){var Q=N++,st=!1;U++,Dk(P,f,K).then(function(ht){st||(st=!0,A[Q]={status:"fulfilled",value:ht},--U||m(A))},function(ht){st||(st=!0,A[Q]={status:"rejected",reason:ht},--U||m(A))})}),--U||m(A)});return E.error&&S(E.value),v.promise}});var ca=Ae,wu=Or,sp=wr,Dw=ro,tg=Bl,Cw=Ka,eg="No one promise resolved";Rt({target:"Promise",stat:!0,forced:bu},{any:function(u){var f=this,v=sp("AggregateError"),m=Dw.f(f),S=m.resolve,E=m.reject,P=tg(function(){var A=wu(f.resolve),N=[],U=0,K=1,Q=!1;Cw(u,function(st){var ht=U++,kt=!1;K++,ca(A,f,st).then(function(Tt){kt||Q||(Q=!0,S(Tt))},function(Tt){kt||Q||(kt=!0,N[ht]=Tt,--K||E(new v(N,eg)))})}),--K||E(new v(N,eg))});return P.error&&E(P.value),m.promise}});var Ik=Rt,up=aa,Iw=dt,Pk=wr,rg=Te,Pw=vk,Ak=di,ZE=up&&up.prototype;Ik({target:"Promise",proto:!0,real:!0,forced:!!up&&Iw(function(){ZE.finally.call({then:function(){}},function(){})})},{finally:function(u){var f=Pw(this,Pk("Promise")),v=rg(u);return this.then(v?function(m){return Ak(f,u()).then(function(){return m})}:u,v?function(m){return Ak(f,u()).then(function(){throw m})}:u)}});var jh=Ge.Promise,Aw=ro;Rt({target:"Promise",stat:!0},{withResolvers:function(){var u=Aw.f(this);return{promise:u.promise,resolve:u.resolve,reject:u.reject}}});var Lh=jh,ng=ro,oo=Bl;Rt({target:"Promise",stat:!0,forced:!0},{try:function(u){var f=ng.f(this),v=oo(u);return(v.error?f.reject:f.resolve)(v.value),f.promise}});var Fh=Lh,_u=nS;(function(u){var f=yE.default,v=Gu,m=Bv,S=Xa,E=QS,P=fn,A=X1,N=iw,U=Fh,K=_u,Q=Z1;function st(){u.exports=st=function(){return kt},u.exports.__esModule=!0,u.exports.default=u.exports;var ht,kt={},Tt=Object.prototype,Pt=Tt.hasOwnProperty,Vt=v||function(lt,mt,ft){lt[mt]=ft.value},jt=typeof m=="function"?m:{},Me=jt.iterator||"@@iterator",Ne=jt.asyncIterator||"@@asyncIterator",Je=jt.toStringTag||"@@toStringTag";function Hr(lt,mt,ft){return v(lt,mt,{value:ft,enumerable:!0,configurable:!0,writable:!0}),lt[mt]}try{Hr({},"")}catch(lt){Hr=function(mt,ft,Qt){return mt[ft]=Qt}}function fa(lt,mt,ft,Qt){var $t=mt&&mt.prototype instanceof Eg?mt:Eg,ge=S($t.prototype),gr=new tc(Qt||[]);return Vt(ge,"_invoke",{value:yT(lt,ft,gr)}),ge}function pn(lt,mt,ft){try{return{type:"normal",arg:lt.call(mt,ft)}}catch(Qt){return{type:"throw",arg:Qt}}}kt.wrap=fa;var ze="suspendedStart",ls="suspendedYield",Ou="executing",qh="completed",on={};function Eg(){}function Kn(){}function cs(){}var kp={};Hr(kp,Me,function(){return this});var Kh=E&&E(E(Op([])));Kh&&Kh!==Tt&&Pt.call(Kh,Me)&&(kp=Kh);var Ql=cs.prototype=Eg.prototype=S(kp);function Tp(lt){var mt;P(mt=["next","throw","return"]).call(mt,function(ft){Hr(lt,ft,function(Qt){return this._invoke(ft,Qt)})})}function Jh(lt,mt){function ft($t,ge,gr,Jn){var Cn=pn(lt[$t],lt,ge);if(Cn.type!=="throw"){var Eu=Cn.arg,ec=Eu.value;return ec&&f(ec)=="object"&&Pt.call(ec,"__await")?mt.resolve(ec.__await).then(function(rc){ft("next",rc,gr,Jn)},function(rc){ft("throw",rc,gr,Jn)}):mt.resolve(ec).then(function(rc){Eu.value=rc,gr(Eu)},function(rc){return ft("throw",rc,gr,Jn)})}Jn(Cn.arg)}var Qt;Vt(this,"_invoke",{value:function($t,ge){function gr(){return new mt(function(Jn,Cn){ft($t,ge,Jn,Cn)})}return Qt=Qt?Qt.then(gr,gr):gr()}})}function yT(lt,mt,ft){var Qt=ze;return function($t,ge){if(Qt===Ou)throw new Error("Generator is already running");if(Qt===qh){if($t==="throw")throw ge;return{value:ht,done:!0}}for(ft.method=$t,ft.arg=ge;;){var gr=ft.delegate;if(gr){var Jn=Zw(gr,ft);if(Jn){if(Jn===on)continue;return Jn}}if(ft.method==="next")ft.sent=ft._sent=ft.arg;else if(ft.method==="throw"){if(Qt===ze)throw Qt=qh,ft.arg;ft.dispatchException(ft.arg)}else ft.method==="return"&&ft.abrupt("return",ft.arg);Qt=Ou;var Cn=pn(lt,mt,ft);if(Cn.type==="normal"){if(Qt=ft.done?qh:ls,Cn.arg===on)continue;return{value:Cn.arg,done:ft.done}}Cn.type==="throw"&&(Qt=qh,ft.method="throw",ft.arg=Cn.arg)}}}function Zw(lt,mt){var ft=mt.method,Qt=lt.iterator[ft];if(Qt===ht)return mt.delegate=null,ft==="throw"&&lt.iterator.return&&(mt.method="return",mt.arg=ht,Zw(lt,mt),mt.method==="throw")||ft!=="return"&&(mt.method="throw",mt.arg=new TypeError("The iterator does not provide a '"+ft+"' method")),on;var $t=pn(Qt,lt.iterator,mt.arg);if($t.type==="throw")return mt.method="throw",mt.arg=$t.arg,mt.delegate=null,on;var ge=$t.arg;return ge?ge.done?(mt[lt.resultName]=ge.value,mt.next=lt.nextLoc,mt.method!=="return"&&(mt.method="next",mt.arg=ht),mt.delegate=null,on):ge:(mt.method="throw",mt.arg=new TypeError("iterator result is not an object"),mt.delegate=null,on)}function Qw(lt){var mt,ft={tryLoc:lt[0]};1 in lt&&(ft.catchLoc=lt[1]),2 in lt&&(ft.finallyLoc=lt[2],ft.afterLoc=lt[3]),A(mt=this.tryEntries).call(mt,ft)}function xp(lt){var mt=lt.completion||{};mt.type="normal",delete mt.arg,lt.completion=mt}function tc(lt){this.tryEntries=[{tryLoc:"root"}],P(lt).call(lt,Qw,this),this.reset(!0)}function Op(lt){if(lt||lt===""){var mt=lt[Me];if(mt)return mt.call(lt);if(typeof lt.next=="function")return lt;if(!isNaN(lt.length)){var ft=-1,Qt=function $t(){for(;++ft<lt.length;)if(Pt.call(lt,ft))return $t.value=lt[ft],$t.done=!1,$t;return $t.value=ht,$t.done=!0,$t};return Qt.next=Qt}}throw new TypeError(f(lt)+" is not iterable")}return Kn.prototype=cs,Vt(Ql,"constructor",{value:cs,configurable:!0}),Vt(cs,"constructor",{value:Kn,configurable:!0}),Kn.displayName=Hr(cs,Je,"GeneratorFunction"),kt.isGeneratorFunction=function(lt){var mt=typeof lt=="function"&&lt.constructor;return!!mt&&(mt===Kn||(mt.displayName||mt.name)==="GeneratorFunction")},kt.mark=function(lt){return N?N(lt,cs):(lt.__proto__=cs,Hr(lt,Je,"GeneratorFunction")),lt.prototype=S(Ql),lt},kt.awrap=function(lt){return{__await:lt}},Tp(Jh.prototype),Hr(Jh.prototype,Ne,function(){return this}),kt.AsyncIterator=Jh,kt.async=function(lt,mt,ft,Qt,$t){$t===void 0&&($t=U);var ge=new Jh(fa(lt,mt,ft,Qt),$t);return kt.isGeneratorFunction(mt)?ge:ge.next().then(function(gr){return gr.done?gr.value:ge.next()})},Tp(Ql),Hr(Ql,Je,"Generator"),Hr(Ql,Me,function(){return this}),Hr(Ql,"toString",function(){return"[object Generator]"}),kt.keys=function(lt){var mt=Object(lt),ft=[];for(var Qt in mt)A(ft).call(ft,Qt);return K(ft).call(ft),function $t(){for(;ft.length;){var ge=ft.pop();if(ge in mt)return $t.value=ge,$t.done=!1,$t}return $t.done=!0,$t}},kt.values=Op,tc.prototype={constructor:tc,reset:function(lt){var mt;if(this.prev=0,this.next=0,this.sent=this._sent=ht,this.done=!1,this.delegate=null,this.method="next",this.arg=ht,P(mt=this.tryEntries).call(mt,xp),!lt)for(var ft in this)ft.charAt(0)==="t"&&Pt.call(this,ft)&&!isNaN(+Q(ft).call(ft,1))&&(this[ft]=ht)},stop:function(){this.done=!0;var lt=this.tryEntries[0].completion;if(lt.type==="throw")throw lt.arg;return this.rval},dispatchException:function(lt){if(this.done)throw lt;var mt=this;function ft(Cn,Eu){return ge.type="throw",ge.arg=lt,mt.next=Cn,Eu&&(mt.method="next",mt.arg=ht),!!Eu}for(var Qt=this.tryEntries.length-1;Qt>=0;--Qt){var $t=this.tryEntries[Qt],ge=$t.completion;if($t.tryLoc==="root")return ft("end");if($t.tryLoc<=this.prev){var gr=Pt.call($t,"catchLoc"),Jn=Pt.call($t,"finallyLoc");if(gr&&Jn){if(this.prev<$t.catchLoc)return ft($t.catchLoc,!0);if(this.prev<$t.finallyLoc)return ft($t.finallyLoc)}else if(gr){if(this.prev<$t.catchLoc)return ft($t.catchLoc,!0)}else{if(!Jn)throw new Error("try statement without catch or finally");if(this.prev<$t.finallyLoc)return ft($t.finallyLoc)}}}},abrupt:function(lt,mt){for(var ft=this.tryEntries.length-1;ft>=0;--ft){var Qt=this.tryEntries[ft];if(Qt.tryLoc<=this.prev&&Pt.call(Qt,"finallyLoc")&&this.prev<Qt.finallyLoc){var $t=Qt;break}}$t&&(lt==="break"||lt==="continue")&&$t.tryLoc<=mt&&mt<=$t.finallyLoc&&($t=null);var ge=$t?$t.completion:{};return ge.type=lt,ge.arg=mt,$t?(this.method="next",this.next=$t.finallyLoc,on):this.complete(ge)},complete:function(lt,mt){if(lt.type==="throw")throw lt.arg;return lt.type==="break"||lt.type==="continue"?this.next=lt.arg:lt.type==="return"?(this.rval=this.arg=lt.arg,this.method="return",this.next="end"):lt.type==="normal"&&mt&&(this.next=mt),on},finish:function(lt){for(var mt=this.tryEntries.length-1;mt>=0;--mt){var ft=this.tryEntries[mt];if(ft.finallyLoc===lt)return this.complete(ft.completion,ft.afterLoc),xp(ft),on}},catch:function(lt){for(var mt=this.tryEntries.length-1;mt>=0;--mt){var ft=this.tryEntries[mt];if(ft.tryLoc===lt){var Qt=ft.completion;if(Qt.type==="throw"){var $t=Qt.arg;xp(ft)}return $t}}throw new Error("illegal catch attempt")},delegateYield:function(lt,mt,ft){return this.delegate={iterator:Op(lt),resultName:mt,nextLoc:ft},this.method==="next"&&(this.arg=ht),on}},kt}u.exports=st,u.exports.__esModule=!0,u.exports.default=u.exports})(sw);var ao=(0,sw.exports)(),lp=ao;try{regeneratorRuntime=ao}catch(u){typeof globalThis=="object"?globalThis.regeneratorRuntime=ao:Function("r","regeneratorRuntime = r")(ao)}var hr=z(lp),$k={exports:{}},ig=dt(function(){if(typeof ArrayBuffer=="function"){var u=new ArrayBuffer(8);Object.isExtensible(u)&&Object.defineProperty(u,"a",{value:8})}}),og=dt,sr=_e,ha=kr,ag=ig,qn=Object.isExtensible,$w=og(function(){qn(1)})||ag?function(u){return!!sr(u)&&(!ag||ha(u)!=="ArrayBuffer")&&(!qn||qn(u))}:qn,Mw=!dt(function(){return Object.isExtensible(Object.preventExtensions({}))}),Yh=Rt,Mk=le,cp=js,Nk=_e,hp=Kt,Nw=_r.f,Rk=oi,sg=Na,ug=$w,QE=Mw,Bh=!1,is=ju("meta"),jk=0,lg=function(u){Nw(u,is,{value:{objectID:"O"+jk++,weakData:{}}})},tD=$k.exports={enable:function(){tD.enable=function(){},Bh=!0;var u=Rk.f,f=Mk([].splice),v={};v[is]=1,u(v).length&&(Rk.f=function(m){for(var S=u(m),E=0,P=S.length;E<P;E++)if(S[E]===is){f(S,E,1);break}return S},Yh({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:sg.f}))},fastKey:function(u,f){if(!Nk(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!hp(u,is)){if(!ug(u))return"F";if(!f)return"E";lg(u)}return u[is].objectID},getWeakData:function(u,f){if(!hp(u,is)){if(!ug(u))return!0;if(!f)return!1;lg(u)}return u[is].weakData},onFreeze:function(u){return QE&&Bh&&ug(u)&&!hp(u,is)&&lg(u),u}};cp[is]=!0;var Lk=$k.exports,Fk=Rt,Yk=St,eD=Lk,rD=dt,Bk=mi,cg=Ka,Hk=Un,Rw=Te,Gk=_e,jw=No,hg=Dr,Wk=_r.f,Lw=Ut.forEach,dp=ie,Fw=jn.set,fp=jn.getterFor,os=function(u,f,v){var m,S=u.indexOf("Map")!==-1,E=u.indexOf("Weak")!==-1,P=S?"set":"add",A=Yk[u],N=A&&A.prototype,U={};if(dp&&Rw(A)&&(E||N.forEach&&!rD(function(){new A().entries().next()}))){var K=(m=f(function(st,ht){Fw(Hk(st,K),{type:u,collection:new A}),jw(ht)||cg(ht,st[P],{that:st,AS_ENTRIES:S})})).prototype,Q=fp(u);Lw(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(st){var ht=st==="add"||st==="set";!(st in N)||E&&st==="clear"||Bk(K,st,function(kt,Tt){var Pt=Q(this).collection;if(!ht&&E&&!Gk(kt))return st==="get"&&void 0;var Vt=Pt[st](kt===0?0:kt,Tt);return ht?this:Vt})}),E||Wk(K,"size",{configurable:!0,get:function(){return Q(this).collection.size}})}else m=v.getConstructor(f,u,S,P),eD.enable();return hg(m,u,!1,!0),U[u]=m,Fk({global:!0,forced:!0},U),E||v.setStrong(m,u,S),m},nD=zi,as=Wo,iD=Ra,zk=function(u,f,v){for(var m in f)v&&v.unsafe&&u[m]?u[m]=f[m]:nD(u,m,f[m],v);return u},oD=Li,aD=Un,Yw=No,sD=Ka,Po=jv,pp=Lv,uD=Am,Hh=ie,vp=Lk.fastKey,Gh=jn.set,dg=jn.getterFor,Bw={getConstructor:function(u,f,v,m){var S=u(function(U,K){aD(U,E),Gh(U,{type:f,index:as(null),first:void 0,last:void 0,size:0}),Hh||(U.size=0),Yw(K)||sD(K,U[m],{that:U,AS_ENTRIES:v})}),E=S.prototype,P=dg(f),A=function(U,K,Q){var st,ht,kt=P(U),Tt=N(U,K);return Tt?Tt.value=Q:(kt.last=Tt={index:ht=vp(K,!0),key:K,value:Q,previous:st=kt.last,next:void 0,removed:!1},kt.first||(kt.first=Tt),st&&(st.next=Tt),Hh?kt.size++:U.size++,ht!=="F"&&(kt.index[ht]=Tt)),U},N=function(U,K){var Q,st=P(U),ht=vp(K);if(ht!=="F")return st.index[ht];for(Q=st.first;Q;Q=Q.next)if(Q.key===K)return Q};return zk(E,{clear:function(){for(var U=P(this),K=U.index,Q=U.first;Q;)Q.removed=!0,Q.previous&&(Q.previous=Q.previous.next=void 0),delete K[Q.index],Q=Q.next;U.first=U.last=void 0,Hh?U.size=0:this.size=0},delete:function(U){var K=this,Q=P(K),st=N(K,U);if(st){var ht=st.next,kt=st.previous;delete Q.index[st.index],st.removed=!0,kt&&(kt.next=ht),ht&&(ht.previous=kt),Q.first===st&&(Q.first=ht),Q.last===st&&(Q.last=kt),Hh?Q.size--:K.size--}return!!st},forEach:function(U){for(var K,Q=P(this),st=oD(U,arguments.length>1?arguments[1]:void 0);K=K?K.next:Q.first;)for(st(K.value,K.key,this);K&&K.removed;)K=K.previous},has:function(U){return!!N(this,U)}}),zk(E,v?{get:function(U){var K=N(this,U);return K&&K.value},set:function(U,K){return A(this,U===0?0:U,K)}}:{add:function(U){return A(this,U=U===0?0:U,U)}}),Hh&&iD(E,"size",{configurable:!0,get:function(){return P(this).size}}),S},setStrong:function(u,f,v){var m=f+" Iterator",S=dg(f),E=dg(m);Po(u,f,function(P,A){Gh(this,{type:m,target:P,state:S(P),kind:A,last:void 0})},function(){for(var P=E(this),A=P.kind,N=P.last;N&&N.removed;)N=N.previous;return P.target&&(P.last=N=N?N.next:P.state.first)?pp(A==="keys"?N.key:A==="values"?N.value:[N.key,N.value],!1):(P.target=void 0,pp(void 0,!0))},v?"entries":"values",!v,!0),uD(f)}};os("Map",function(u){return function(){return u(this,arguments.length?arguments[0]:void 0)}},Bw);var fg=z(Ge.Map),pg=Ut.some;Rt({target:"Array",proto:!0,forced:!Jv("some")},{some:function(u){return pg(this,u,arguments.length>1?arguments[1]:void 0)}});var lD=qr("Array","some"),Uk=$e,rn=lD,mp=Array.prototype,Wh=z(function(u){var f=u.some;return u===mp||Uk(mp,u)&&f===mp.some?rn:f}),Vk=qr("Array","keys"),Xk=Bi,ss=Kt,Hw=$e,Su=Vk,gp=Array.prototype,zh={DOMTokenList:!0,NodeList:!0},ku=z(function(u){var f=u.keys;return u===gp||Hw(gp,u)&&f===gp.keys||ss(zh,Xk(u))?Su:f}),qk=bo,Gw=Math.floor,H=function(u,f){var v=u.length,m=Gw(v/2);return v<8?vg(u,f):cD(u,H(qk(u,0,m),f),H(qk(u,m),f),f)},vg=function(u,f){for(var v,m,S=u.length,E=1;E<S;){for(m=E,v=u[E];m&&f(u[m-1],v)>0;)u[m]=u[--m];m!==E++&&(u[m]=v)}return u},cD=function(u,f,v,m){for(var S=f.length,E=v.length,P=0,A=0;P<S||A<E;)u[P+A]=P<S&&A<E?m(f[P],v[A])<=0?f[P++]:v[A++]:P<S?f[P++]:v[A++];return u},Kk=H,Jk=Xt.match(/firefox\/(\d+)/i),Zk=!!Jk&&+Jk[1],Qk=/MSIE|Trident/.test(Xt),tT=Xt.match(/AppleWebKit\/(\d+)\./),hD=!!tT&&+tT[1],yp=Rt,Ww=le,eT=Or,rT=yn,nT=Rn,mg=p0,Ao=Aa,bp=dt,dD=Kk,fD=Jv,iT=Zk,pD=Qk,oT=An,aT=hD,Tu=[],sT=Ww(Tu.sort),zw=Ww(Tu.push),vD=bp(function(){Tu.sort(void 0)}),uT=bp(function(){Tu.sort(null)}),Zl=fD("sort"),gg=!bp(function(){if(oT)return oT<70;if(!(iT&&iT>3)){if(pD)return!0;if(aT)return aT<603;var u,f,v,m,S="";for(u=65;u<76;u++){switch(f=String.fromCharCode(u),u){case 66:case 69:case 70:case 72:v=3;break;case 68:case 71:v=4;break;default:v=2}for(m=0;m<47;m++)Tu.push({k:f+m,v})}for(Tu.sort(function(E,P){return P.v-E.v}),m=0;m<Tu.length;m++)f=Tu[m].k.charAt(0),S.charAt(S.length-1)!==f&&(S+=f);return S!=="DGBEFHACIJK"}});yp({target:"Array",proto:!0,forced:vD||!uT||!Zl||!gg},{sort:function(u){u!==void 0&&eT(u);var f=rT(this);if(gg)return u===void 0?sT(f):sT(f,u);var v,m,S=[],E=nT(f);for(m=0;m<E;m++)m in f&&zw(S,f[m]);for(dD(S,function(P){return function(A,N){return N===void 0?-1:A===void 0?1:P!==void 0?+P(A,N)||0:Ao(A)>Ao(N)?1:-1}}(u)),v=nT(S),m=0;m<v;)f[m]=S[m++];for(;m<E;)mg(f,m++);return f}});var mD=qr("Array","sort"),Uw=$e,gD=mD,Uh=Array.prototype,Vw=z(function(u){var f=u.sort;return u===Uh||Uw(Uh,u)&&f===Uh.sort?gD:f}),yD=qr("Array","values"),bD=Bi,lT=Kt,wD=$e,_D=yD,yg=Array.prototype,cT={DOMTokenList:!0,NodeList:!0},Vh=z(function(u){var f=u.values;return u===yg||wD(yg,u)&&f===yg.values||lT(cT,bD(u))?_D:f}),xu=z(Rb),SD=qr("Array","entries"),kD=Bi,hT=Kt,dT=$e,fT=SD,wp=Array.prototype,TD={DOMTokenList:!0,NodeList:!0},xD=z(function(u){var f=u.entries;return u===wp||dT(wp,u)&&f===wp.entries||hT(TD,kD(u))?fT:f});let _p,OD=new Uint8Array(16);function pT(){if(!_p&&(_p=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!_p))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return _p(OD)}let nn=[];for(let u=0;u<256;++u)nn.push((u+256).toString(16).slice(1));var us={randomUUID:typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function vT(u,f,v){if(us.randomUUID&&!f&&!u)return us.randomUUID();let m=(u=u||{}).random||(u.rng||pT)();if(m[6]=15&m[6]|64,m[8]=63&m[8]|128,f){v=v||0;for(let S=0;S<16;++S)f[v+S]=m[S];return f}return function(S,E=0){return nn[S[E+0]]+nn[S[E+1]]+nn[S[E+2]]+nn[S[E+3]]+"-"+nn[S[E+4]]+nn[S[E+5]]+"-"+nn[S[E+6]]+nn[S[E+7]]+"-"+nn[S[E+8]]+nn[S[E+9]]+"-"+nn[S[E+10]]+nn[S[E+11]]+nn[S[E+12]]+nn[S[E+13]]+nn[S[E+14]]+nn[S[E+15]]}(m)}function Xw(u){return typeof u=="string"||typeof u=="number"}var qw=function(){function u(f){L(this,u),Fn(this,"_queue",[]),Fn(this,"_timeout",null),Fn(this,"_extended",null),this.delay=null,this.max=1/0,this.setOptions(f)}return _l(u,[{key:"setOptions",value:function(f){f&&f.delay!==void 0&&(this.delay=f.delay),f&&f.max!==void 0&&(this.max=f.max),this._flushIfNeeded()}},{key:"destroy",value:function(){if(this.flush(),this._extended){for(var f=this._extended.object,v=this._extended.methods,m=0;m<v.length;m++){var S=v[m];S.original?f[S.name]=S.original:delete f[S.name]}this._extended=null}}},{key:"replace",value:function(f,v){var m=this,S=f[v];if(!S)throw new Error("Method "+v+" undefined");f[v]=function(){for(var E=arguments.length,P=new Array(E),A=0;A<E;A++)P[A]=arguments[A];m.queue({args:P,fn:S,context:this})}}},{key:"queue",value:function(f){typeof f=="function"?this._queue.push({fn:f}):this._queue.push(f),this._flushIfNeeded()}},{key:"_flushIfNeeded",value:function(){var f=this;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=UO(function(){f.flush()},this.delay))}},{key:"flush",value:function(){var f,v;ea(f=aS(v=this._queue).call(v,0)).call(f,function(m){m.fn.apply(m.context||m.fn,m.args||[])})}}],[{key:"extend",value:function(f,v){var m=new u(v);if(f.flush!==void 0)throw new Error("Target object already has a property flush");f.flush=function(){m.flush()};var S=[{name:"flush",original:void 0}];if(v&&v.replace)for(var E=0;E<v.replace.length;E++){var P=v.replace[E];S.push({name:P,original:f[P]}),m.replace(f,P)}return m._extended={object:f,methods:S},m}}]),u}(),bg=function(){function u(){L(this,u),Fn(this,"_subscribers",{"*":[],add:[],remove:[],update:[]}),Fn(this,"subscribe",u.prototype.on),Fn(this,"unsubscribe",u.prototype.off)}return _l(u,[{key:"_trigger",value:function(f,v,m){var S,E;if(f==="*")throw new Error("Cannot trigger event *");ea(S=um(E=[]).call(E,dn(this._subscribers[f]),dn(this._subscribers["*"]))).call(S,function(P){P(f,v,m!=null?m:null)})}},{key:"on",value:function(f,v){typeof v=="function"&&this._subscribers[f].push(v)}},{key:"off",value:function(f,v){var m;this._subscribers[f]=me(m=this._subscribers[f]).call(m,function(S){return S!==v})}}]),u}();os("Set",function(u){return function(){return u(this,arguments.length?arguments[0]:void 0)}},Bw);var wg=z(Ge.Set),_g=z(em);function da(u,f){var v=hf!==void 0&&ah(u)||u["@@iterator"];if(!v){if(Gn(u)||(v=function(N,U){var K;if(N){if(typeof N=="string")return mT(N,U);var Q=df(K=Object.prototype.toString.call(N)).call(K,8,-1);if(Q==="Object"&&N.constructor&&(Q=N.constructor.name),Q==="Map"||Q==="Set")return uf(N);if(Q==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Q))return mT(N,U)}}(u))||f&&u&&typeof u.length=="number"){v&&(u=v);var m=0,S=function(){};return{s:S,n:function(){return m>=u.length?{done:!0}:{done:!1,value:u[m++]}},e:function(N){throw N},f:S}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E,P=!0,A=!1;return{s:function(){v=v.call(u)},n:function(){var N=v.next();return P=N.done,N},e:function(N){A=!0,E=N},f:function(){try{P||v.return==null||v.return()}finally{if(A)throw E}}}}function mT(u,f){(f==null||f>u.length)&&(f=u.length);for(var v=0,m=new Array(f);v<f;v++)m[v]=u[v];return m}var Kw=function(u){function f(v){L(this,f),this._pairs=v}return _l(f,[{key:u,value:hr.mark(function v(){var m,S,E,P,A;return hr.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:m=da(this._pairs),N.prev=1,m.s();case 3:if((S=m.n()).done){N.next=9;break}return E=Hn(S.value,2),P=E[0],A=E[1],N.next=7,[P,A];case 7:N.next=3;break;case 9:N.next=14;break;case 11:N.prev=11,N.t0=N.catch(1),m.e(N.t0);case 14:return N.prev=14,m.f(),N.finish(14);case 17:case"end":return N.stop()}},v,this,[[1,11,14,17]])})},{key:"entries",value:hr.mark(function v(){var m,S,E,P,A;return hr.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:m=da(this._pairs),N.prev=1,m.s();case 3:if((S=m.n()).done){N.next=9;break}return E=Hn(S.value,2),P=E[0],A=E[1],N.next=7,[P,A];case 7:N.next=3;break;case 9:N.next=14;break;case 11:N.prev=11,N.t0=N.catch(1),m.e(N.t0);case 14:return N.prev=14,m.f(),N.finish(14);case 17:case"end":return N.stop()}},v,this,[[1,11,14,17]])})},{key:"keys",value:hr.mark(function v(){var m,S,E,P;return hr.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:m=da(this._pairs),A.prev=1,m.s();case 3:if((S=m.n()).done){A.next=9;break}return E=Hn(S.value,1),P=E[0],A.next=7,P;case 7:A.next=3;break;case 9:A.next=14;break;case 11:A.prev=11,A.t0=A.catch(1),m.e(A.t0);case 14:return A.prev=14,m.f(),A.finish(14);case 17:case"end":return A.stop()}},v,this,[[1,11,14,17]])})},{key:"values",value:hr.mark(function v(){var m,S,E,P;return hr.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:m=da(this._pairs),A.prev=1,m.s();case 3:if((S=m.n()).done){A.next=9;break}return E=Hn(S.value,2),P=E[1],A.next=7,P;case 7:A.next=3;break;case 9:A.next=14;break;case 11:A.prev=11,A.t0=A.catch(1),m.e(A.t0);case 14:return A.prev=14,m.f(),A.finish(14);case 17:case"end":return A.stop()}},v,this,[[1,11,14,17]])})},{key:"toIdArray",value:function(){var v;return ai(v=dn(this._pairs)).call(v,function(m){return m[0]})}},{key:"toItemArray",value:function(){var v;return ai(v=dn(this._pairs)).call(v,function(m){return m[1]})}},{key:"toEntryArray",value:function(){return dn(this._pairs)}},{key:"toObjectMap",value:function(){var v,m=MO(null),S=da(this._pairs);try{for(S.s();!(v=S.n()).done;){var E=Hn(v.value,2),P=E[0],A=E[1];m[P]=A}}catch(N){S.e(N)}finally{S.f()}return m}},{key:"toMap",value:function(){return new fg(this._pairs)}},{key:"toIdSet",value:function(){return new wg(this.toIdArray())}},{key:"toItemSet",value:function(){return new wg(this.toItemArray())}},{key:"cache",value:function(){return new f(dn(this._pairs))}},{key:"distinct",value:function(v){var m,S=new wg,E=da(this._pairs);try{for(E.s();!(m=E.n()).done;){var P=Hn(m.value,2),A=P[0],N=P[1];S.add(v(N,A))}}catch(U){E.e(U)}finally{E.f()}return S}},{key:"filter",value:function(v){var m=this._pairs;return new f({[xu]:()=>hr.mark(function S(){var E,P,A,N,U;return hr.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:E=da(m),K.prev=1,E.s();case 3:if((P=E.n()).done){K.next=10;break}if(A=Hn(P.value,2),N=A[0],U=A[1],!v(U,N)){K.next=8;break}return K.next=8,[N,U];case 8:K.next=3;break;case 10:K.next=15;break;case 12:K.prev=12,K.t0=K.catch(1),E.e(K.t0);case 15:return K.prev=15,E.f(),K.finish(15);case 18:case"end":return K.stop()}},S,null,[[1,12,15,18]])})()})}},{key:"forEach",value:function(v){var m,S=da(this._pairs);try{for(S.s();!(m=S.n()).done;){var E=Hn(m.value,2),P=E[0];v(E[1],P)}}catch(A){S.e(A)}finally{S.f()}}},{key:"map",value:function(v){var m=this._pairs;return new f({[xu]:()=>hr.mark(function S(){var E,P,A,N,U;return hr.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:E=da(m),K.prev=1,E.s();case 3:if((P=E.n()).done){K.next=9;break}return A=Hn(P.value,2),N=A[0],U=A[1],K.next=7,[N,v(U,N)];case 7:K.next=3;break;case 9:K.next=14;break;case 11:K.prev=11,K.t0=K.catch(1),E.e(K.t0);case 14:return K.prev=14,E.f(),K.finish(14);case 17:case"end":return K.stop()}},S,null,[[1,11,14,17]])})()})}},{key:"max",value:function(v){var m=_g(this._pairs),S=m.next();if(S.done)return null;for(var E=S.value[1],P=v(S.value[1],S.value[0]);!(S=m.next()).done;){var A=Hn(S.value,2),N=A[0],U=A[1],K=v(U,N);K>P&&(P=K,E=U)}return E}},{key:"min",value:function(v){var m=_g(this._pairs),S=m.next();if(S.done)return null;for(var E=S.value[1],P=v(S.value[1],S.value[0]);!(S=m.next()).done;){var A=Hn(S.value,2),N=A[0],U=A[1],K=v(U,N);K<P&&(P=K,E=U)}return E}},{key:"reduce",value:function(v,m){var S,E=da(this._pairs);try{for(E.s();!(S=E.n()).done;){var P=Hn(S.value,2),A=P[0];m=v(m,P[1],A)}}catch(N){E.e(N)}finally{E.f()}return m}},{key:"sort",value:function(v){var m=this;return new f({[xu]:function(){var S;return _g(Vw(S=dn(m._pairs)).call(S,function(E,P){var A=Hn(E,2),N=A[0],U=A[1],K=Hn(P,2),Q=K[0],st=K[1];return v(U,st,N,Q)}))}})}}]),f}(xu);function Sp(u,f){var v=pf(u);if(bh){var m=bh(u);f&&(m=me(m).call(m,function(S){return wh(u,S).enumerable})),v.push.apply(v,m)}return v}function Sg(u){for(var f=1;f<arguments.length;f++){var v,m,S=arguments[f]!=null?arguments[f]:{};f%2?ea(v=Sp(Object(S),!0)).call(v,function(E){Fn(u,E,S[E])}):km?Pl(u,km(S)):ea(m=Sp(Object(S))).call(m,function(E){JS(u,E,wh(S,E))})}return u}function kg(u,f){var v=hf!==void 0&&ah(u)||u["@@iterator"];if(!v){if(Gn(u)||(v=function(N,U){var K;if(N){if(typeof N=="string")return Mr(N,U);var Q=df(K=Object.prototype.toString.call(N)).call(K,8,-1);if(Q==="Object"&&N.constructor&&(Q=N.constructor.name),Q==="Map"||Q==="Set")return uf(N);if(Q==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Q))return Mr(N,U)}}(u))||f&&u&&typeof u.length=="number"){v&&(u=v);var m=0,S=function(){};return{s:S,n:function(){return m>=u.length?{done:!0}:{done:!1,value:u[m++]}},e:function(N){throw N},f:S}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E,P=!0,A=!1;return{s:function(){v=v.call(u)},n:function(){var N=v.next();return P=N.done,N},e:function(N){A=!0,E=N},f:function(){try{P||v.return==null||v.return()}finally{if(A)throw E}}}}function Mr(u,f){(f==null||f>u.length)&&(f=u.length);for(var v=0,m=new Array(f);v<f;v++)m[v]=u[v];return m}function Tg(u){var f=function(){if(typeof Reflect=="undefined"||!zn||zn.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(zn(Boolean,[],function(){})),!0}catch(v){return!1}}();return function(){var v,m=_h(u);if(f){var S=_h(this).constructor;v=zn(m,arguments,S)}else v=m.apply(this,arguments);return ZS(this,v)}}var Xh=function(u){aw(v,u);var f=Tg(v);function v(m,S){var E;return L(this,v),Fn(Pf(E=f.call(this)),"_queue",null),m&&!Gn(m)&&(S=m,m=[]),E._options=S||{},E._data=new fg,E.length=0,E._idProp=E._options.fieldId||"id",m&&m.length&&E.add(m),E.setOptions(S),E}return _l(v,[{key:"idProp",get:function(){return this._idProp}},{key:"setOptions",value:function(m){m&&m.queue!==void 0&&(m.queue===!1?this._queue&&(this._queue.destroy(),this._queue=null):(this._queue||(this._queue=qw.extend(this,{replace:["add","update","remove"]})),m.queue&&typeof m.queue=="object"&&this._queue.setOptions(m.queue)))}},{key:"add",value:function(m,S){var E,P=this,A=[];if(Gn(m)){var N=ai(m).call(m,function(Q){return Q[P._idProp]});if(Wh(N).call(N,function(Q){return P._data.has(Q)}))throw new Error("A duplicate id was found in the parameter array.");for(var U=0,K=m.length;U<K;U++)E=this._addItem(m[U]),A.push(E)}else{if(!m||typeof m!="object")throw new Error("Unknown dataType");E=this._addItem(m),A.push(E)}return A.length&&this._trigger("add",{items:A},S),A}},{key:"update",value:function(m,S){var E=this,P=[],A=[],N=[],U=[],K=this._idProp,Q=function(Tt){var Pt=Tt[K];if(Pt!=null&&E._data.has(Pt)){var Vt=Tt,jt=T0({},E._data.get(Pt)),Me=E._updateItem(Vt);A.push(Me),U.push(Vt),N.push(jt)}else{var Ne=E._addItem(Tt);P.push(Ne)}};if(Gn(m))for(var st=0,ht=m.length;st<ht;st++)m[st]&&typeof m[st]=="object"?Q(m[st]):console.warn("Ignoring input item, which is not an object at index "+st);else{if(!m||typeof m!="object")throw new Error("Unknown dataType");Q(m)}if(P.length&&this._trigger("add",{items:P},S),A.length){var kt={items:A,oldData:N,data:U};this._trigger("update",kt,S)}return um(P).call(P,A)}},{key:"updateOnly",value:function(m,S){var E,P=this;Gn(m)||(m=[m]);var A=ai(E=ai(m).call(m,function(U){var K=P._data.get(U[P._idProp]);if(K==null)throw new Error("Updating non-existent items is not allowed.");return{oldData:K,update:U}})).call(E,function(U){var K=U.oldData,Q=U.update,st=K[P._idProp],ht=function(kt){for(var Tt,Pt=arguments.length,Vt=new Array(Pt>1?Pt-1:0),jt=1;jt<Pt;jt++)Vt[jt-1]=arguments[jt];return LS.apply(void 0,um(Tt=[{},kt]).call(Tt,Vt))}(K,Q);return P._data.set(st,ht),{id:st,oldData:K,updatedData:ht}});if(A.length){var N={items:ai(A).call(A,function(U){return U.id}),oldData:ai(A).call(A,function(U){return U.oldData}),data:ai(A).call(A,function(U){return U.updatedData})};return this._trigger("update",N,S),N.items}return[]}},{key:"get",value:function(m,S){var E=void 0,P=void 0,A=void 0;Xw(m)?(E=m,A=S):Gn(m)?(P=m,A=S):A=m;var N,U=A&&A.returnType==="Object"?"Object":"Array",K=A&&me(A),Q=[],st=void 0,ht=void 0,kt=void 0;if(E!=null)(st=this._data.get(E))&&K&&!K(st)&&(st=void 0);else if(P!=null)for(var Tt=0,Pt=P.length;Tt<Pt;Tt++)(st=this._data.get(P[Tt]))==null||K&&!K(st)||Q.push(st);else for(var Vt,jt=0,Me=(ht=dn(ku(Vt=this._data).call(Vt))).length;jt<Me;jt++)kt=ht[jt],(st=this._data.get(kt))==null||K&&!K(st)||Q.push(st);if(A&&A.order&&E==null&&this._sort(Q,A.order),A&&A.fields){var Ne=A.fields;if(E!=null&&st!=null)st=this._filterFields(st,Ne);else for(var Je=0,Hr=Q.length;Je<Hr;Je++)Q[Je]=this._filterFields(Q[Je],Ne)}if(U=="Object"){for(var fa={},pn=0,ze=Q.length;pn<ze;pn++){var ls=Q[pn];fa[ls[this._idProp]]=ls}return fa}return E!=null?(N=st)!==null&&N!==void 0?N:null:Q}},{key:"getIds",value:function(m){var S=this._data,E=m&&me(m),P=m&&m.order,A=dn(ku(S).call(S)),N=[];if(E)if(P){for(var U=[],K=0,Q=A.length;K<Q;K++){var st=A[K],ht=this._data.get(st);ht!=null&&E(ht)&&U.push(ht)}this._sort(U,P);for(var kt=0,Tt=U.length;kt<Tt;kt++)N.push(U[kt][this._idProp])}else for(var Pt=0,Vt=A.length;Pt<Vt;Pt++){var jt=A[Pt],Me=this._data.get(jt);Me!=null&&E(Me)&&N.push(Me[this._idProp])}else if(P){for(var Ne=[],Je=0,Hr=A.length;Je<Hr;Je++){var fa=A[Je];Ne.push(S.get(fa))}this._sort(Ne,P);for(var pn=0,ze=Ne.length;pn<ze;pn++)N.push(Ne[pn][this._idProp])}else for(var ls=0,Ou=A.length;ls<Ou;ls++){var qh=A[ls],on=S.get(qh);on!=null&&N.push(on[this._idProp])}return N}},{key:"getDataSet",value:function(){return this}},{key:"forEach",value:function(m,S){var E=S&&me(S),P=this._data,A=dn(ku(P).call(P));if(S&&S.order)for(var N=this.get(S),U=0,K=N.length;U<K;U++){var Q=N[U];m(Q,Q[this._idProp])}else for(var st=0,ht=A.length;st<ht;st++){var kt=A[st],Tt=this._data.get(kt);Tt==null||E&&!E(Tt)||m(Tt,kt)}}},{key:"map",value:function(m,S){for(var E=S&&me(S),P=[],A=this._data,N=dn(ku(A).call(A)),U=0,K=N.length;U<K;U++){var Q=N[U],st=this._data.get(Q);st==null||E&&!E(st)||P.push(m(st,Q))}return S&&S.order&&this._sort(P,S.order),P}},{key:"_filterFields",value:function(m,S){var E;return m&&k1(E=Gn(S)?S:pf(S)).call(E,function(P,A){return P[A]=m[A],P},{})}},{key:"_sort",value:function(m,S){if(typeof S=="string"){var E=S;Vw(m).call(m,function(P,A){var N=P[E],U=A[E];return N>U?1:N<U?-1:0})}else{if(typeof S!="function")throw new TypeError("Order must be a function or a string");Vw(m).call(m,S)}}},{key:"remove",value:function(m,S){for(var E=[],P=[],A=Gn(m)?m:[m],N=0,U=A.length;N<U;N++){var K=this._remove(A[N]);if(K){var Q=K[this._idProp];Q!=null&&(E.push(Q),P.push(K))}}return E.length&&this._trigger("remove",{items:E,oldData:P},S),E}},{key:"_remove",value:function(m){var S;if(Xw(m)?S=m:m&&typeof m=="object"&&(S=m[this._idProp]),S!=null&&this._data.has(S)){var E=this._data.get(S)||null;return this._data.delete(S),--this.length,E}return null}},{key:"clear",value:function(m){for(var S,E=dn(ku(S=this._data).call(S)),P=[],A=0,N=E.length;A<N;A++)P.push(this._data.get(E[A]));return this._data.clear(),this.length=0,this._trigger("remove",{items:E,oldData:P},m),E}},{key:"max",value:function(m){var S,E,P=null,A=null,N=kg(Vh(S=this._data).call(S));try{for(N.s();!(E=N.n()).done;){var U=E.value,K=U[m];typeof K=="number"&&(A==null||K>A)&&(P=U,A=K)}}catch(Q){N.e(Q)}finally{N.f()}return P||null}},{key:"min",value:function(m){var S,E,P=null,A=null,N=kg(Vh(S=this._data).call(S));try{for(N.s();!(E=N.n()).done;){var U=E.value,K=U[m];typeof K=="number"&&(A==null||K<A)&&(P=U,A=K)}}catch(Q){N.e(Q)}finally{N.f()}return P||null}},{key:"distinct",value:function(m){for(var S=this._data,E=dn(ku(S).call(S)),P=[],A=0,N=0,U=E.length;N<U;N++){for(var K=E[N],Q=S.get(K)[m],st=!1,ht=0;ht<A;ht++)if(P[ht]==Q){st=!0;break}st||Q===void 0||(P[A]=Q,A++)}return P}},{key:"_addItem",value:function(m){var S=function(P,A){return P[A]==null&&(P[A]=vT()),P}(m,this._idProp),E=S[this._idProp];if(this._data.has(E))throw new Error("Cannot add item: item with id "+E+" already exists");return this._data.set(E,S),++this.length,E}},{key:"_updateItem",value:function(m){var S=m[this._idProp];if(S==null)throw new Error("Cannot update item: item has no id (item: "+jO(m)+")");var E=this._data.get(S);if(!E)throw new Error("Cannot update item: no item with id "+S+" found");return this._data.set(S,Sg(Sg({},E),m)),S}},{key:"stream",value:function(m){if(m){var S=this._data;return new Kw({[xu]:()=>hr.mark(function P(){var A,N,U,K;return hr.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:A=kg(m),Q.prev=1,A.s();case 3:if((N=A.n()).done){Q.next=11;break}if(U=N.value,(K=S.get(U))==null){Q.next=9;break}return Q.next=9,[U,K];case 9:Q.next=3;break;case 11:Q.next=16;break;case 13:Q.prev=13,Q.t0=Q.catch(1),A.e(Q.t0);case 16:return Q.prev=16,A.f(),Q.finish(16);case 19:case"end":return Q.stop()}},P,null,[[1,13,16,19]])})()})}var E;return new Kw({[xu]:Sl(E=xD(this._data)).call(E,this._data)})}}]),v}(bg);function gT(u,f){var v=hf!==void 0&&ah(u)||u["@@iterator"];if(!v){if(Gn(u)||(v=function(N,U){var K;if(N){if(typeof N=="string")return Jw(N,U);var Q=df(K=Object.prototype.toString.call(N)).call(K,8,-1);if(Q==="Object"&&N.constructor&&(Q=N.constructor.name),Q==="Map"||Q==="Set")return uf(N);if(Q==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Q))return Jw(N,U)}}(u))||f&&u&&typeof u.length=="number"){v&&(u=v);var m=0,S=function(){};return{s:S,n:function(){return m>=u.length?{done:!0}:{done:!1,value:u[m++]}},e:function(N){throw N},f:S}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E,P=!0,A=!1;return{s:function(){v=v.call(u)},n:function(){var N=v.next();return P=N.done,N},e:function(N){A=!0,E=N},f:function(){try{P||v.return==null||v.return()}finally{if(A)throw E}}}}function Jw(u,f){(f==null||f>u.length)&&(f=u.length);for(var v=0,m=new Array(f);v<f;v++)m[v]=u[v];return m}function xg(u){var f=function(){if(typeof Reflect=="undefined"||!zn||zn.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(zn(Boolean,[],function(){})),!0}catch(v){return!1}}();return function(){var v,m=_h(u);if(f){var S=_h(this).constructor;v=zn(m,arguments,S)}else v=m.apply(this,arguments);return ZS(this,v)}}var Og=function(u){aw(v,u);var f=xg(v);function v(m,S){var E,P;return L(this,v),Fn(Pf(P=f.call(this)),"length",0),Fn(Pf(P),"_ids",new wg),P._options=S||{},P._listener=Sl(E=P._onEvent).call(E,Pf(P)),P.setData(m),P}return _l(v,[{key:"idProp",get:function(){return this.getDataSet().idProp}},{key:"setData",value:function(m){if(this._data){this._data.off&&this._data.off("*",this._listener);var S=this._data.getIds({filter:me(this._options)}),E=this._data.get(S);this._ids.clear(),this.length=0,this._trigger("remove",{items:S,oldData:E})}if(m!=null){this._data=m;for(var P=this._data.getIds({filter:me(this._options)}),A=0,N=P.length;A<N;A++){var U=P[A];this._ids.add(U)}this.length=P.length,this._trigger("add",{items:P})}else this._data=new Xh;this._data.on&&this._data.on("*",this._listener)}},{key:"refresh",value:function(){for(var m=this._data.getIds({filter:me(this._options)}),S=dn(this._ids),E={},P=[],A=[],N=[],U=0,K=m.length;U<K;U++){var Q=m[U];E[Q]=!0,this._ids.has(Q)||(P.push(Q),this._ids.add(Q))}for(var st=0,ht=S.length;st<ht;st++){var kt=S[st],Tt=this._data.get(kt);Tt==null?console.error("If you see this, report it please."):E[kt]||(A.push(kt),N.push(Tt),this._ids.delete(kt))}this.length+=P.length-A.length,P.length&&this._trigger("add",{items:P}),A.length&&this._trigger("remove",{items:A,oldData:N})}},{key:"get",value:function(m,S){if(this._data==null)return null;var E,P=null;Xw(m)||Gn(m)?(P=m,E=S):E=m;var A=T0({},this._options,E),N=me(this._options),U=E&&me(E);return N&&U&&(A.filter=function(K){return N(K)&&U(K)}),P==null?this._data.get(A):this._data.get(P,A)}},{key:"getIds",value:function(m){if(this._data.length){var S,E=me(this._options),P=m!=null?me(m):null;return S=P?E?function(A){return E(A)&&P(A)}:P:E,this._data.getIds({filter:S,order:m&&m.order})}return[]}},{key:"forEach",value:function(m,S){if(this._data){var E,P,A=me(this._options),N=S&&me(S);P=N?A?function(U){return A(U)&&N(U)}:N:A,ea(E=this._data).call(E,m,{filter:P,order:S&&S.order})}}},{key:"map",value:function(m,S){if(this._data){var E,P,A=me(this._options),N=S&&me(S);return P=N?A?function(U){return A(U)&&N(U)}:N:A,ai(E=this._data).call(E,m,{filter:P,order:S&&S.order})}return[]}},{key:"getDataSet",value:function(){return this._data.getDataSet()}},{key:"stream",value:function(m){var S;return this._data.stream(m||{[xu]:Sl(S=ku(this._ids)).call(S,this._ids)})}},{key:"dispose",value:function(){var m;(m=this._data)!==null&&m!==void 0&&m.off&&this._data.off("*",this._listener);var S,E="This data view has already been disposed of.",P={get:function(){throw new Error(E)},set:function(){throw new Error(E)},configurable:!1},A=gT(Q1(v.prototype));try{for(A.s();!(S=A.n()).done;){var N=S.value;JS(this,N,P)}}catch(U){A.e(U)}finally{A.f()}}},{key:"_onEvent",value:function(m,S,E){if(S&&S.items&&this._data){var P=S.items,A=[],N=[],U=[],K=[],Q=[],st=[];switch(m){case"add":for(var ht=0,kt=P.length;ht<kt;ht++){var Tt=P[ht];this.get(Tt)&&(this._ids.add(Tt),A.push(Tt))}break;case"update":for(var Pt=0,Vt=P.length;Pt<Vt;Pt++){var jt=P[Pt];this.get(jt)?this._ids.has(jt)?(N.push(jt),Q.push(S.data[Pt]),K.push(S.oldData[Pt])):(this._ids.add(jt),A.push(jt)):this._ids.has(jt)&&(this._ids.delete(jt),U.push(jt),st.push(S.oldData[Pt]))}break;case"remove":for(var Me=0,Ne=P.length;Me<Ne;Me++){var Je=P[Me];this._ids.has(Je)&&(this._ids.delete(Je),U.push(Je),st.push(S.oldData[Me]))}}this.length+=A.length-U.length,A.length&&this._trigger("add",{items:A},E),N.length&&this._trigger("update",{items:N,oldData:K,data:Q},E),U.length&&this._trigger("remove",{items:U,oldData:st},E)}}}]),v}(bg);function so(u,f){return typeof f=="object"&&f!==null&&u===f.idProp&&typeof f.add=="function"&&typeof f.clear=="function"&&typeof f.distinct=="function"&&typeof ea(f)=="function"&&typeof f.get=="function"&&typeof f.getDataSet=="function"&&typeof f.getIds=="function"&&typeof f.length=="number"&&typeof ai(f)=="function"&&typeof f.max=="function"&&typeof f.min=="function"&&typeof f.off=="function"&&typeof f.on=="function"&&typeof f.remove=="function"&&typeof f.setOptions=="function"&&typeof f.stream=="function"&&typeof f.update=="function"&&typeof f.updateOnly=="function"}F.DELETE=K0,F.DataSet=Xh,F.DataStream=Kw,F.DataView=Og,F.Queue=qw,F.createNewDataPipeFrom=function(u){return new jx(u)},F.isDataSetLike=so,F.isDataViewLike=function(u,f){return typeof f=="object"&&f!==null&&u===f.idProp&&typeof ea(f)=="function"&&typeof f.get=="function"&&typeof f.getDataSet=="function"&&typeof f.getIds=="function"&&typeof f.length=="number"&&typeof ai(f)=="function"&&typeof f.off=="function"&&typeof f.on=="function"&&typeof f.stream=="function"&&so(u,f.getDataSet())}})});var E$=i$(l$()),pA=i$(h$());var ij={"Take Home Package - ${exerciseName}":{"de-DE":"Take Home Package - ${exerciseName}"},'Failed to load THP: \n"${e.message}"\nat ${e.filename}:${e.lineno}:${e.colno}':{"de-DE":'Fehler beim Laden des THP: \n"${e.message}"\nbei ${e.filename}:${e.lineno}:${e.colno}'},"${num} topic(s) could not be loaded.":{"de-DE":"${num} Topic(s) konnten nicht geladen werden."},"Topic has missing values. Object was '${t}'":{"de-DE":"Dem Topic fehlen ein oder mehrere Eigenschaften. Inhalt des Objekts: '${t}'"},"Please reload.":{"de-DE":"Bitte laden Sie diese Seite neu."},Activate:{"de-DE":"Aktivieren"},"Screen 1":{"de-DE":"Bildschirm 1"},"Screen 2":{"de-DE":"Bildschirm 2"},Loading:{"de-DE":"Wird geladen"},"Dark mode":{"de-DE":"Abdunkeln"},Language:{"de-DE":"Sprache"},Play:{"de-DE":"Wiedergabe"},Pause:{"de-DE":"Pausieren"},Stop:{"de-DE":"Stopp"},Filter:{"de-DE":null},"Enter Fullscreen mode on this screen":{"de-DE":"Vollbildmodus auf diesem Bildschirm aktivieren"},"Use without Fullscreen mode":{"de-DE":"Ohne Vollbildmodus nutzen"}},d$=ij;var f$={};function p$(F){f$=F,aj()}var gC=sj(),v$=document.documentElement.lang;function m$(F,L){let J=F.textContent||"";L===!0&&F.setAttribute("data-tr-org",J),F.textContent=ti(J)}function g$(F){for(let J of F.childNodes)g$(J);if(F.nodeType!==Node.ELEMENT_NODE)return;let L=F;L.hasAttribute("data-tr")&&(L.hasAttribute("data-tr-org")||m$(L,!0))}var oj=function(F){for(let L of F){if(L.type==="attributes"&&L.target.nodeType===Node.ELEMENT_NODE){let J=L.target,z=J.getAttribute("data-tr");if(!z||z.length<1)continue;J.setAttribute("data-tr-org",z),J.textContent=ti(z),J.setAttribute("data-tr","");continue}if(!(L.addedNodes.length<1||L.type!=="childList"))for(let J of L.addedNodes)g$(J)}};function aj(){document.documentElement.lang=gC,document.querySelectorAll("[data-tr]").forEach(F=>{m$(F,!0)}),new MutationObserver(oj).observe(document,{attributeFilter:["data-tr"],childList:!0,subtree:!0})}function sj(){return navigator.languages&&navigator.languages.length?navigator.languages[0]:navigator.language||"en-US"}function y$(F){gC=F,document.documentElement.lang=F,document.querySelectorAll("[data-tr-org]").forEach(L=>{let J=L.getAttribute("data-tr-org");if(!J){L.textContent="";return}let z;v$===gC?z=J:z=ti(J),L.textContent=z})}function uj(F){var J;return v$===gC?F:((J=f$[F])==null?void 0:J[gC])||F}function ti(F,...L){let J=uj(F),z={};L.forEach((nt,yt)=>{if(typeof nt=="object"){for(let St in nt)z[St]=nt[St];return}z[""+yt.toString()]=nt});try{return new Function(...Object.keys(z),`return \`${J}\`;`)(...Object.values(z))}catch(nt){return console.error("webtr: tr error: ",nt),J}}function sA(F,L,J){console.error(J,F,L),alert(J||F)}function SI(F,L,J,z,nt){let yt=`${nt?"":"lib/"}screen.html?screen=${L}&lang=${J}&theme=${z}`;br(F).src=yt}function yC(F){return document.getElementById(F)}function w$(F){return br("topic_"+F)}function br(F){let L=document.getElementById(F);if(!L)throw new Error(`Cannot find element '${F}'`);return L}var wI=null;function bC(F){wI&&clearTimeout(wI),wI=setTimeout(()=>{wI=null,F()},100)}function kI(F){var L;(L=yC(F))==null||L.style.setProperty("display","none")}function uA(F,L){var J;(J=yC(F))==null||J.style.setProperty("display",L||"block")}function _$(F,L){let J=br("screens"),z=F===0?J.offsetWidth:J.offsetWidth/F,nt=J.offsetHeight,yt=br(L),St=nt*b$;if(z>St){let dt=Math.min(z,(z-St)/2);yt.style.paddingTop="0",yt.style.paddingBottom="0",yt.style.paddingLeft=dt+"px",yt.style.paddingRight=dt+"px"}else{let dt=z/b$;if(nt>dt){let Gt=Math.min(nt,(nt-dt)/2);yt.style.paddingTop=Gt+"px",yt.style.paddingBottom=Gt+"px",yt.style.paddingLeft="0",yt.style.paddingRight="0"}}}var b$=16/9;function _I(F){return F*100+"%"}function lj(F,L,J,z,nt){let yt=F.style,St=z<2e-4||nt<2e-4;yt.left=_I(L),yt.top=_I(J),yt.width=_I(St?1:z),yt.height=_I(St?1:nt)}function S$(F){var z,nt,yt;let L="topic_"+F.id;if(yC(L)!==null){console.error("!!! element for topic already exists: "+F.id);return}let J=document.createElement(F.element);if(J.setAttribute("data-topic-type",F.type.toString()),J.setAttribute("data-topic-start",F.start.toString()),J.setAttribute("data-topic-duration",F.duration.toString()),J.setAttribute("data-topic-x",F.x.toString()),J.setAttribute("data-topic-y",F.y.toString()),J.setAttribute("data-topic-w",F.w.toString()),J.setAttribute("data-topic-h",F.h.toString()),J.setAttribute("data-topic-channel",F.channel.toString()),J.setAttribute("data-topic-filter",(nt=(z=F.filter)==null?void 0:z.toString())!=null?nt:"(null)"),J.setAttribute("data-topic-description",(yt=F.description)!=null?yt:""),J.addEventListener("error",St=>{console.error(`Topic ${F.id}# (${F.description||" - "}) error:`,St)}),["audio"].includes(F.element))J.setAttribute("hidden","");else{J.style.setProperty("z-index",""+(F.id+(F.filter?F.filter*1e4:0))),J.style.setProperty("position","fixed");let{x:St,y:dt,w:Gt,h:Wt}=F;lj(J,St,dt,Gt,Wt)}return J.classList.add("topic"),J.id=L,br("screen").appendChild(J),J}var DI=null;globalThis.addEventListener("error",F=>{DI||(DI="error"),console.error("DOM error: ",F),alert(ti('Failed to load THP: \n"${e.message}"\nat ${e.filename}:${e.lineno}:${e.colno}',{e:F})),uA("error","flex"),kI("loading")});var CI=[];function TI(F,L){let J=[];for(let z in F){let nt=F[z];L&&nt===null||nt!==void 0&&typeof nt=="number"||J.push(z)}if(J.length>0){let z=J.join(", ");throw L?new Error(ti("Value for keys '${keys}' is not of type number or null",{keys:z})):new Error(ti("Value for keys '${keys}' is not of type number",{keys:z}))}}function YT(F,L){let J=[];for(let z in F){let nt=F[z];(L||nt.length>0)&&nt!=null&&typeof nt=="string"||J.push(z)}if(J.length>0){let z=J.join(", ");throw L?new Error(ti("Value for keys '${keys}' is not of type string or empty string",{keys:z})):new Error(ti("Value for keys '${keys}' is not of type string or is an empty string",{keys:z}))}}function cj(F){let{id:L,type:J,description:z,channel:nt,filter:yt,start:St,duration:dt,element:Gt,x:Wt,y:In,w:Qe,h:zr}=F;if(TI({id:L,type:J,channel:nt,start:St,duration:dt,x:Wt,y:In,w:Qe,h:zr}),TI({filter:yt},!0),YT({element:Gt}),YT({description:z},!0),yt&&yt<1)throw new Error(ti("If 'filter' is not null, it must be greater than 0, but was '${filter}'",{filter:yt}));let Mi=(Pe=>{if(Pe===1)return 1;if(Pe===2)return 2;if(Pe===3)return 3;if(Pe===4)return 4;throw new Error(ti("'channel' must be either 1 .. 4, but was '${channel}'",{channel:nt}))})(nt);function Nt(Pe,...sn){let le=[],ye=Pe,se={};if(sn.forEach(fi=>{if(!(fi in Pe)){le.push(fi.toString());return}se[fi]=ye[fi]}),le.length>0)throw new Error(`Missing key(s) in topic: ${le.join(", ")}`);return se}let an={id:L,type:J,description:z,channel:Mi,filter:yt,start:St,duration:dt,element:Gt,x:Wt,y:In,w:Qe,h:zr};switch(Gt){case"video":{let{src:Pe}=Nt(F,"src");return YT({src:Pe}),mC(m_({},an),{element:"video",src:Pe})}case"object":{let{filename:Pe,page:sn,zoom:le}=Nt(F,"filename","page","zoom");return YT({filename:Pe}),TI({page:sn}),TI({zoom:le},!0),mC(m_({},an),{element:"object",filename:Pe,page:sn,zoom:le})}case"img":{let{src:Pe}=Nt(F,"src");return YT({src:Pe}),mC(m_({},an),{element:"img",src:Pe})}case"audio":{let{src:Pe}=Nt(F,"src");return YT({src:Pe}),mC(m_({},an),{element:"audio",src:Pe})}case"marker":return m_({},an);default:throw new Error(ti("Unknown element: '${element}'",{element:F.element}))}}function hj(){let F=[],L=0;if(!("topicsJs"in globalThis))throw new Error("File 'topic.js' is missing!");let J=globalThis.topicsJs;console.debug("topicsJs",J);for(let z of J)try{F.push(cj(z))}catch(nt){console.error("Could not add topic:",nt),L++}return L>0&&alert(ti("${num} topic(s) could not be loaded.",{num:L})),F}function D$(F){let L=ic-F.start;Pj(F.id,L),qg&&vA(F.id,L)}function dj(F){if(!MI)for(let L of Au){let J=GT(L);if(J.channel===F+2)try{D$(J)}catch(z){console.error("initAndPlayTopic failed",z)}}}function k$(F){kI("screen"+F),br("frame-screen"+F).src="about:blank",AI[F-1]=window.open("lib/popout.html?screen="+F,"screen"+F,"location=no,toolbar=no,height=480,width=600"),bC(wC)}var AI=[null,null];function T$(F){let L=AI.filter(J=>!J).length;_$(L,F)}function wC(){T$("screen1"),T$("screen2")}var lA=["light","dark"];function cA(F){return F&&lA.includes(F.toLowerCase())?F:null}function fj(){let F=br("theme-switch"),L=cA(localStorage.getItem("theme"))||cA(document.documentElement.getAttribute("data-theme"))||lA[0];document.documentElement.setAttribute("data-theme",L),F.checked=L==="dark";function J(z){document.documentElement.classList.add("transitions"),setTimeout(()=>document.documentElement.classList.remove("transitions"),2e3);let nt=lA[z.target&&"checked"in z.target&&!z.target.checked?0:1];document.documentElement.setAttribute("data-theme",nt),localStorage.setItem("theme",nt);let yt={changeTheme:nt};HT(1).postMessage(yt,"*"),HT(2).postMessage(yt,"*")}return F.addEventListener("change",J,!1),L}function pj(){let F=cA(document.documentElement.getAttribute("data-theme"));if(!F)throw new Error("No theme active!");return F}globalThis.addEventListener("load",()=>{let F=fj();SI("frame-screen1",1,document.documentElement.lang,F),SI("frame-screen2",2,document.documentElement.lang,F)});globalThis.addEventListener("DOMContentLoaded",()=>{var L;if(DI)return;DI="load",p$(d$),br("popout1").addEventListener("click",()=>BT(k$,1)),br("popout2").addEventListener("click",()=>BT(k$,2)),br("pp").addEventListener("click",()=>BT(Mj)),br("stop").addEventListener("click",()=>BT(M$)),br("changeLang_DE").addEventListener("click",()=>BT(O$,"de-DE")),br("changeLang_EN").addEventListener("click",()=>BT(O$,"en-US"));try{for(let J of hj())CI.push(J)}catch(J){sA(ti("Error while loading topics."),J)}if(xj(),CI.length==0){alert(ti("This take home package cannot be used as it doesn't contain any topics."));return}globalThis.addEventListener("resize",()=>bC(wC));let F=new ResizeObserver(()=>bC(wC));F.observe(br("main")),F.observe(br("timeline")),(L=yC("pp"))==null||L.removeAttribute("disabled"),wC(),setTimeout(()=>kI("loading"),1e3)});function C$(F){for(let L of Au){let J=GT(L);(F===void 0||R$(J.channel)===F)&&$j(L,ic-J.start)}}function xI(F,L){if(!(L in F))throw new Error(`Key '${L}' not found in object`);let J=F[L];if(typeof J!="number")throw new Error(`Value for key '${L}' is not of type number`);if(isNaN(J))throw new Error(`Value for key '${L}' is not a number`);return J}globalThis.addEventListener("message",function(F){let L=F.data;if("activated"in L){let J=xI(L,"activated");if(C$(J),!qg)return;for(let z of Au){let nt=GT(z);R$(nt.channel)===J&&vA(z,ic-nt.start)}}else if("popoutLoaded"in L){let J=xI(L,"popoutLoaded"),z={init:{lang:document.documentElement.lang,theme:document.documentElement.getAttribute("data-theme")}};HT(J).postMessage(z,"*")}else if("screenLoaded"in L){let J=xI(L,"screenLoaded");dj(J)}else if("closed"in L){let J=xI(L,"closed");SI("frame-screen"+J,J,document.documentElement.lang,pj()),uA("screen"+J),AI[J-1]=null,bC(wC)}else console.debug("script.ts: unknown msg type")});function Xg(F){return new Date(F*1e3)}var vj=[{typeId:1,name:"SituationMap",color:"#B1CBBB"},{typeId:2,name:"SituationReplay",color:"#C94C4C"},{typeId:3,name:"Image",color:"#FEFBD8"},{typeId:4,name:"Text",color:"#91A8D1"},{typeId:5,name:"Pdf",color:"#80CED6"},{typeId:6,name:"Xml",color:"#EEA29A"},{typeId:7,name:"TacticalPlan",color:"#DAC292"},{typeId:8,name:"MSOffice",color:"#F7CAC9"},{typeId:9,name:"OpenOffice",color:"#B2B2B2"},{typeId:10,name:"Audio",color:"#034F84"},{typeId:11,name:"Video",color:"#618685"},{typeId:12,name:"Building",color:"#C6BCB6"},{typeId:13,name:"SituationMapFilter",color:"#36486B"},{typeId:14,name:"Snapshot",color:"#F18973"},{typeId:15,name:"Evaluation",color:"#D6CBD3"},{typeId:16,name:"Report",color:"#FEB236"},{typeId:17,name:"Situation",color:"#B1C1CB"},{typeId:999,name:"Marker",color:"#80CED6"}];function I$(F){let L=vj.find(J=>J.typeId===F);if(!L)throw new Error(ti("No topic type found for topic type id ${typeId}",{typeId:F}));return L}function mj(F){let L=yt=>(yt=yt/255,yt<=.03928?yt/12.92:Math.pow((yt+.055)/1.055,2.4)),J=L(F.r),z=L(F.g),nt=L(F.b);return .2126*J+.7152*z+.0722*nt}function gj(F,L){let J=yj(F),z=P$(J),nt={r:Math.round(z.r*(1-L/100)),g:Math.round(z.g*(1-L/100)),b:Math.round(z.b*(1-L/100))};return`rgb(${nt.r}, ${nt.g}, ${nt.b})`}function yj(F){let L=F.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);return L?`#${(1<<24|Number(L[1])<<16|Number(L[2])<<8|Number(L[3])).toString(16).slice(1)}`:F}function P$(F){let L=parseInt(F.slice(1),16);return{r:L>>16&255,g:L>>8&255,b:L&255}}function bj(F){let L=P$(F);return mj(L)>.5}function wj(F){let J=I$(F).color,z=gj(J,20);return`background-color: ${J}; border-color: ${z};`}var $I=new pA.DataSet,EI=0,ms;function _j(F,L){if(!L)return F;if(F<3)throw new Error("Filters are only allowed for channel 3 or 4 (screen 1 or screen 2)");let J=_C.get(F);if(!J)throw new Error("Group for channel doesn't exist! Channel was: "+F);let z=J.nestedGroups||[],nt=z.length;if(nt>=L){let Qe=z[L-1];if(!Qe)throw new Error("No filterGroupId for filter at: "+(L-1));return Qe}let yt=300,St=[],dt=L-nt;for(;dt>0&&yt-- >0;){let Qe=Tj++;St.push(Qe),dt--}let Gt=J.id,Wt=[...z,...St];try{_C.update({id:Gt,showNested:!0,nestedGroups:Wt})}catch(Qe){console.error("groupsDataSet update failed:",Qe)}St.forEach(Qe=>{_C.add({id:Qe,content:"Filter",showNested:!1,treeLevel:1})});let In=St[St.length-1];if(!In)throw new Error(`No new filter at 'newIds[${St.length-1}]`);return In}function Sj(F){let J=I$(F).color;return bj(J)?"text-dark":"text-light"}function kj(F){let{id:L,type:J,description:z,channel:nt,filter:yt,start:St,duration:dt}=F,Gt=St+dt;$I.add({id:L,content:z+"<br />",start:Xg(St),end:Xg(Gt),group:_j(nt,yt||void 0),type:"range",style:wj(J),className:Sj(J),typeId:J,topicInfo:F}),Gt>EI&&(EI=Gt,ms.setOptions({max:Xg(EI+1)}))}var _C=new pA.DataSet,Tj=5,II=1;function xj(){let F=br("timeline"),L={min:Xg(0),max:Xg(3600),autoResize:!0,horizontalScroll:!0,zoomKey:"shiftKey",moveable:!0,showCurrentTime:!0,showMajorLabels:!1,stack:!1,stackSubgroups:!1,snap:function(z,nt,yt){let St=z.getMilliseconds();return z.setSeconds(z.getSeconds()+(St>=500?1:0)),z.setMilliseconds(0),z},tooltip:{followMouse:!0},format:{minorLabels:{millisecond:"mm:ss",second:"mm:ss",minute:"mm:ss",hour:"mm:ss",weekday:"mm:ss",day:"mm:ss",week:"mm:ss",month:"mm:ss",year:"mm:ss"},majorLabels:{millisecond:"mm:ss",second:"mm:ss",minute:"mm:ss",hour:"mm:ss",weekday:"mm:ss",day:"mm:ss",week:"mm:ss",month:"mm:ss",year:"mm:ss"}}};function J(z){let nt=document.createElement("span");return nt.setAttribute("data-tr",""),nt.classList.add("transitions"),nt.textContent=z,nt}_C.add([{id:1,content:J("Audio"),showNested:!1},{id:2,content:J("Playback"),showNested:!1},{id:3,content:J("Screen 1"),showNested:!1},{id:4,content:J("Screen 2"),showNested:!1}]),ms=new E$.Timeline(F,$I,_C,L);for(let z of CI)kj(z);ms.addCustomTime(Xg(0),1),ms.setCustomTimeMarker("<span data-tr>Position</span>",II,!1),ms.setCustomTimeTitle(()=>ti("Current position of playback in seconds"),II),ms.on("select",z=>{if(!("items"in z)){console.error("Selected data has no 'items' array in properties!",z);return}let nt=z.items;for(let yt of nt){Ej(yt);break}setTimeout(()=>{ms.setSelection([])},100)}),ms.on("timechanged",z=>{if(!(!("id"in z)||z.id!==1)){if(!("time"in z)||!(z.time instanceof Date)){console.error("'props.time' not an instace of Date!",z,z.time);return}hA(PI(z.time)),OI&&(L$(),OI=!1)}}),ms.on("timechange",z=>{if(!(!("id"in z)||z.id!==1)){if(!("time"in z)||!(z.time instanceof Date)){console.error("'props.time' not an instace of Date!",z,z.time);return}qg&&!OI&&(OI=!0),mA(),hA(PI(z.time))}})}function Oj(F){if(!(F instanceof Date)||typeof F.getMonth!="function")throw new Error("'date' is not of type Date or is invalid: "+typeof F+", "+JSON.stringify(F));return F}function PI(F){return Oj(F).getTime()/1e3}var OI=!1;function hA(F){MI=!1,br("stop").removeAttribute("disabled"),A$(F)}function A$(F){if(ic!==F)try{ic=F,$$()&&C$()}catch(L){console.error(L)}}function Ej(F){let L=$I.get(F);if(!L){console.error("Item with id "+F+" not found!");return}let J=L.start.getTime()/1e3;hA(J)}var Au=[];function $$(){if(ic>EI+1)return M$(),!1;let F=Xg(ic);ms.setCustomTime(F,II),ms.moveTo(F);let L=$I.get({filter:J=>ic>=PI(J.start)&&ic<=PI(J.end)});for(let J of L)if(!Au.includes(J.id))try{D$(GT(J.id)),Au.push(J.id)}catch(z){console.error("initAndPlayTopic failed",z)}for(let J of Au)L.find(z=>z.id===J)||(Au=Au.filter(z=>z!=J),j$(J));return!0}var dA=null,ic=0,qg=!1,MI=!0;function M$(){MI=!0,mA(),br("stop").setAttribute("disabled",""),ms.setCustomTime(Xg(0),II),A$(0);for(let F of Au)j$(F);Au=[]}function GT(F){let L=CI.find(J=>J.id===F);if(!L)throw new Error(ti("Cannot find topic info for id ${id}",{id:F}));return L}function HT(F){let L=AI[F-1];if(L!==null)return L;let z=br("frame-screen"+F).contentWindow;if(!z)throw new Error(`Frame '${"frame-screen"+F}' not ready yet!`);return z}function x$(F){fA(1,F),fA(2,F)}function fA(F,L){HT(F).postMessage({commandMessage:m_({},L)},"*")}function Dj(F,L,J,z){fA(N$(F),{controlType:L,topic:J,pos:z})}function N$(F){if(F<3||F>4)throw new Error("channel not on a screen: "+F+" - must be channel 3 or 4!");return F-2}function R$(F){try{return N$(F)}catch(L){return null}}function Cj(F){let L=S$(F);return L.src=`topics/${F.src}`,L.controls=!1,L.muted=!1,L}var g_=0;function Ij(){return{init:function(F,L){let J=Cj(F);J.currentTime=L,g_===0&&x$({controlType:5}),g_++},playbackPlay:function(F,L){let J=w$(F.id);J.currentTime=L,setTimeout(()=>J.play(),1)},playbackPause:function(F){br("topic_"+F.id).pause()},playbackStop:function(F){br("topic_"+F.id).remove(),g_--,g_<0&&(console.error("AUDIO TOPIC COUNT UNDERFLOW! "+g_+" < 0 !"),g_=0),g_===0&&x$({controlType:6})},setPlaybackPosition:function(F,L){let J=br("topic_"+F.id);J.currentTime=L}}}function SC(F,L,J){let z=GT(L);if(z.element!=="marker"){if(z.type===10){let nt=Ij();switch(F){case 0:{if(J===void 0)throw new Error("pos === undefined");nt.init(z,J);break}case 1:{nt.playbackPause(z);break}case 2:{if(J===void 0)throw new Error("pos === undefined");nt.playbackPlay(z,J);break}case 3:{nt.playbackStop(z);break}case 4:{if(J===void 0)throw new Error("pos === undefined");nt.setPlaybackPosition(z,J);break}default:throw new Error("Unknown control type "+F)}return}Dj(z.channel,F,z,J)}}function Pj(F,L){SC(0,F,L)}function Aj(F){SC(1,F)}function vA(F,L){SC(2,F,L)}function j$(F){SC(3,F)}function $j(F,L){SC(4,F,L)}function BT(F,...L){try{let J=F(...L);J&&console.debug("tryCall: function returned a value",J)}catch(J){sA("tryCall exception",J,ti("The selected operation has failed."))}}function O$(F){y$(F),ms.redraw();let L={changeLang:F};[HT(1),HT(2)].forEach(z=>z.postMessage(L,"*"))}function mA(){if(qg){dA&&clearInterval(dA),br("pp").setAttribute("data-tr","Play");for(let F of Au)Aj(F);qg=!1}}function L$(){if(MI=!1,!qg){dA=setInterval(()=>{ic++;try{$$()}catch(F){console.error("ERROR WHILE TICKING:",F)}},1e3),br("pp").setAttribute("data-tr","Pause"),br("stop").removeAttribute("disabled");for(let F of Au){let L=GT(F).start,J=ic-L;vA(F,J)}qg=!0}}function Mj(){qg?mA():L$()}
/*! Bundled license information:
moment/moment.js:
(*! moment.js *)
(*! version : 2.30.1 *)
(*! authors : Tim Wood, Iskren Chernev, Moment.js contributors *)
(*! license : MIT *)
(*! momentjs.com *)
vis-data/peer/umd/vis-data.js:
(**
* vis-data
* http://visjs.org/
*
* Manage unstructured data using DataSet. Add, update, and remove data, and listen for changes in the data.
*
* @version 7.1.9
* @date 2023-11-24T17:53:34.179Z
*
* @copyright (c) 2011-2017 Almende B.V, http://almende.com
* @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
*
* @license
* vis.js is dual licensed under both
*
* 1. The Apache 2.0 License
* http://www.apache.org/licenses/LICENSE-2.0
*
* and
*
* 2. The MIT License
* http://opensource.org/licenses/MIT
*
* vis.js may be distributed under either license.
*)
(*! Hammer.JS - v2.0.17-rc - 2019-12-16
* http://naver.github.io/egjs
*
* Forked By Naver egjs
* Copyright (c) hammerjs
* Licensed under the MIT license *)
vis-timeline/peer/umd/vis-timeline-graph2d.min.js:
(**
* vis-timeline and vis-graph2d
* https://visjs.github.io/vis-timeline/
*
* Create a fully customizable, interactive timeline with items and ranges.
*
* @version 7.7.2
* @date 2023-03-22T11:14:31.874Z
*
* @copyright (c) 2011-2017 Almende B.V, http://almende.com
* @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
*
* @license
* vis.js is dual licensed under both
*
* 1. The Apache 2.0 License
* http://www.apache.org/licenses/LICENSE-2.0
*
* and
*
* 2. The MIT License
* http://opensource.org/licenses/MIT
*
* vis.js may be distributed under either license.
*)
(*! Hammer.JS - v2.0.17-rc - 2019-12-16
* http://naver.github.io/egjs
*
* Forked By Naver egjs
* Copyright (c) hammerjs
* Licensed under the MIT license *)
vis-data/peer/umd/vis-data.min.js:
(**
* vis-data
* http://visjs.org/
*
* Manage unstructured data using DataSet. Add, update, and remove data, and listen for changes in the data.
*
* @version 7.1.9
* @date 2023-11-24T17:53:34.179Z
*
* @copyright (c) 2011-2017 Almende B.V, http://almende.com
* @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
*
* @license
* vis.js is dual licensed under both
*
* 1. The Apache 2.0 License
* http://www.apache.org/licenses/LICENSE-2.0
*
* and
*
* 2. The MIT License
* http://opensource.org/licenses/MIT
*
* vis.js may be distributed under either license.
*)
(*! Hammer.JS - v2.0.17-rc - 2019-12-16
* http://naver.github.io/egjs
*
* Forked By Naver egjs
* Copyright (c) hammerjs
* Licensed under the MIT license *)
webtr/dist/webtr.js:
(**
* @file webtr.ts
* @copyright Mike Wille <mike@wille.io>
* @license MIT
*)
*/