126 lines
761 KiB
JavaScript
126 lines
761 KiB
JavaScript
import{dU as t,eb as e,dV as n,ec as r,ed as o,ee as s,ds as a,e1 as l,ef as u,eg as c,dj as h,eh as d,ei as p,e2 as f,di as m,ej as v,s as g,ek as y,el as b,dd as w,em as _,en as k,dm as x,dL as S,eo as D,dk as T,dl as C,ep as O,i as E,d5 as M,_ as P,n as A,t as I,dA as N,a as j,x as R,d7 as F,a4 as L,l as Y,d9 as z,r as H}from"./card-b98d578d.js";import{s as G,e as B}from"./startOfHour-a87a7c0b.js";import{e as W}from"./endOfDay-8eba624c.js";import"./date-picker-a6a20636.js";var V={exports:{}};function U(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var q,X={exports:{}};function $(){return q||(q=1,(t=X).exports=function(){var e,n;function i(){return e.apply(null,arguments)}function r(t){e=t}function o(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function s(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function a(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function l(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(a(t,e))return!1;return!0}function u(t){return void 0===t}function c(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function h(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function d(t,e){var n,i=[],r=t.length;for(n=0;n<r;++n)i.push(e(t[n],n));return i}function p(t,e){for(var n in e)a(e,n)&&(t[n]=e[n]);return a(e,"toString")&&(t.toString=e.toString),a(e,"valueOf")&&(t.valueOf=e.valueOf),t}function f(t,e,n,i){return $n(t,e,n,i,!0).utc()}function m(){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 v(t){return null==t._pf&&(t._pf=m()),t._pf}function g(t){var e=null,i=!1,r=t._d&&!isNaN(t._d.getTime());return r&&(e=v(t),i=n.call(e.parsedDateParts,(function(t){return null!=t})),r=e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&i),t._strict&&(r=r&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour)),null!=Object.isFrozen&&Object.isFrozen(t)?r:(t._isValid=r,t._isValid)}function y(t){var e=f(NaN);return null!=t?p(v(e),t):v(e).userInvalidated=!0,e}n=Array.prototype.some?Array.prototype.some:function(t){var e,n=Object(this),i=n.length>>>0;for(e=0;e<i;e++)if(e in n&&t.call(this,n[e],e,n))return!0;return!1};var b=i.momentProperties=[],w=!1;function _(t,e){var n,i,r,o=b.length;if(u(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),u(e._i)||(t._i=e._i),u(e._f)||(t._f=e._f),u(e._l)||(t._l=e._l),u(e._strict)||(t._strict=e._strict),u(e._tzm)||(t._tzm=e._tzm),u(e._isUTC)||(t._isUTC=e._isUTC),u(e._offset)||(t._offset=e._offset),u(e._pf)||(t._pf=v(e)),u(e._locale)||(t._locale=e._locale),o>0)for(n=0;n<o;n++)u(r=e[i=b[n]])||(t[i]=r);return t}function k(t){_(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===w&&(w=!0,i.updateOffset(this),w=!1)}function x(t){return t instanceof k||null!=t&&null!=t._isAMomentObject}function S(t){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function D(t,e){var n=!0;return p((function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,t),n){var r,o,s,l=[],u=arguments.length;for(o=0;o<u;o++){if(r="","object"==typeof arguments[o]){for(s in r+="\n["+o+"] ",arguments[0])a(arguments[0],s)&&(r+=s+": "+arguments[0][s]+", ");r=r.slice(0,-2)}else r=arguments[o];l.push(r)}S(t+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return e.apply(this,arguments)}),e)}var T,C={};function O(t,e){null!=i.deprecationHandler&&i.deprecationHandler(t,e),C[t]||(S(e),C[t]=!0)}function E(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function M(t){var e,n;for(n in t)a(t,n)&&(E(e=t[n])?this[n]=e:this["_"+n]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function P(t,e){var n,i=p({},t);for(n in e)a(e,n)&&(s(t[n])&&s(e[n])?(i[n]={},p(i[n],t[n]),p(i[n],e[n])):null!=e[n]?i[n]=e[n]:delete i[n]);for(n in t)a(t,n)&&!a(e,n)&&s(t[n])&&(i[n]=p({},i[n]));return i}function A(t){null!=t&&this.set(t)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,T=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)a(t,e)&&n.push(e);return n};var I={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function N(t,e,n){var i=this._calendar[t]||this._calendar.sameElse;return E(i)?i.call(e,n):i}function j(t,e,n){var i=""+Math.abs(t),r=e-i.length;return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}var R=/(\[[^\[]*\])|(\\)?([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,F=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,L={},Y={};function z(t,e,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),t&&(Y[t]=r),e&&(Y[e[0]]=function(){return j(r.apply(this,arguments),e[1],e[2])}),n&&(Y[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function H(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function G(t){var e,n,i=t.match(R);for(e=0,n=i.length;e<n;e++)Y[i[e]]?i[e]=Y[i[e]]:i[e]=H(i[e]);return function(e){var r,o="";for(r=0;r<n;r++)o+=E(i[r])?i[r].call(e,t):i[r];return o}}function B(t,e){return t.isValid()?(e=W(e,t.localeData()),L[e]=L[e]||G(e),L[e](t)):t.localeData().invalidDate()}function W(t,e){var n=5;function i(t){return e.longDateFormat(t)||t}for(F.lastIndex=0;n>=0&&F.test(t);)t=t.replace(F,i),F.lastIndex=0,n-=1;return t}var V={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 q(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(R).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])}var X="Invalid date";function $(){return this._invalidDate}var K="%d",Q=/\d{1,2}/;function Z(t){return this._ordinal.replace("%d",t)}var J={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 tt(t,e,n,i){var r=this._relativeTime[n];return E(r)?r(t,e,n,i):r.replace(/%d/i,t)}function et(t,e){var n=this._relativeTime[t>0?"future":"past"];return E(n)?n(e):n.replace(/%s/i,e)}var nt={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 it(t){return"string"==typeof t?nt[t]||nt[t.toLowerCase()]:void 0}function rt(t){var e,n,i={};for(n in t)a(t,n)&&(e=it(n))&&(i[e]=t[n]);return i}var ot={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 st(t){var e,n=[];for(e in t)a(t,e)&&n.push({unit:e,priority:ot[e]});return n.sort((function(t,e){return t.priority-e.priority})),n}var at,lt=/\d/,ut=/\d\d/,ct=/\d{3}/,ht=/\d{4}/,dt=/[+-]?\d{6}/,pt=/\d\d?/,ft=/\d\d\d\d?/,mt=/\d\d\d\d\d\d?/,vt=/\d{1,3}/,gt=/\d{1,4}/,yt=/[+-]?\d{1,6}/,bt=/\d+/,wt=/[+-]?\d+/,_t=/Z|[+-]\d\d:?\d\d/gi,kt=/Z|[+-]\d\d(?::?\d\d)?/gi,xt=/[+-]?\d+(\.\d{1,3})?/,St=/[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,Dt=/^[1-9]\d?/,Tt=/^([1-9]\d|\d)/;function Ct(t,e,n){at[t]=E(e)?e:function(t,i){return t&&n?n:e}}function Ot(t,e){return a(at,t)?at[t](e._strict,e._locale):new RegExp(Et(t))}function Et(t){return Mt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,n,i,r){return e||n||i||r})))}function Mt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Pt(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function At(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=Pt(e)),n}at={};var It={};function Nt(t,e){var n,i,r=e;for("string"==typeof t&&(t=[t]),c(e)&&(r=function(t,n){n[e]=At(t)}),i=t.length,n=0;n<i;n++)It[t[n]]=r}function jt(t,e){Nt(t,(function(t,n,i,r){i._w=i._w||{},e(t,i._w,i,r)}))}function Rt(t,e,n){null!=e&&a(It,t)&&It[t](e,n._a,n,t)}function Ft(t){return t%4==0&&t%100!=0||t%400==0}var Lt=0,Yt=1,zt=2,Ht=3,Gt=4,Bt=5,Wt=6,Vt=7,Ut=8;function qt(t){return Ft(t)?366:365}z("Y",0,0,(function(){var t=this.year();return t<=9999?j(t,4):"+"+t})),z(0,["YY",2],0,(function(){return this.year()%100})),z(0,["YYYY",4],0,"year"),z(0,["YYYYY",5],0,"year"),z(0,["YYYYYY",6,!0],0,"year"),Ct("Y",wt),Ct("YY",pt,ut),Ct("YYYY",gt,ht),Ct("YYYYY",yt,dt),Ct("YYYYYY",yt,dt),Nt(["YYYYY","YYYYYY"],Lt),Nt("YYYY",(function(t,e){e[Lt]=2===t.length?i.parseTwoDigitYear(t):At(t)})),Nt("YY",(function(t,e){e[Lt]=i.parseTwoDigitYear(t)})),Nt("Y",(function(t,e){e[Lt]=parseInt(t,10)})),i.parseTwoDigitYear=function(t){return At(t)+(At(t)>68?1900:2e3)};var Xt,$t=Qt("FullYear",!0);function Kt(){return Ft(this.year())}function Qt(t,e){return function(n){return null!=n?(Jt(this,t,n),i.updateOffset(this,e),this):Zt(this,t)}}function Zt(t,e){if(!t.isValid())return NaN;var n=t._d,i=t._isUTC;switch(e){case"Milliseconds":return i?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return i?n.getUTCSeconds():n.getSeconds();case"Minutes":return i?n.getUTCMinutes():n.getMinutes();case"Hours":return i?n.getUTCHours():n.getHours();case"Date":return i?n.getUTCDate():n.getDate();case"Day":return i?n.getUTCDay():n.getDay();case"Month":return i?n.getUTCMonth():n.getMonth();case"FullYear":return i?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Jt(t,e,n){var i,r,o,s,a;if(t.isValid()&&!isNaN(n)){switch(i=t._d,r=t._isUTC,e){case"Milliseconds":return void(r?i.setUTCMilliseconds(n):i.setMilliseconds(n));case"Seconds":return void(r?i.setUTCSeconds(n):i.setSeconds(n));case"Minutes":return void(r?i.setUTCMinutes(n):i.setMinutes(n));case"Hours":return void(r?i.setUTCHours(n):i.setHours(n));case"Date":return void(r?i.setUTCDate(n):i.setDate(n));case"FullYear":break;default:return}o=n,s=t.month(),a=29!==(a=t.date())||1!==s||Ft(o)?a:28,r?i.setUTCFullYear(o,s,a):i.setFullYear(o,s,a)}}function te(t){return E(this[t=it(t)])?this[t]():this}function ee(t,e){if("object"==typeof t){var n,i=st(t=rt(t)),r=i.length;for(n=0;n<r;n++)this[i[n].unit](t[i[n].unit])}else if(E(this[t=it(t)]))return this[t](e);return this}function ne(t,e){return(t%e+e)%e}function ie(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=ne(e,12);return t+=(e-n)/12,1===n?Ft(t)?29:28:31-n%7%2}Xt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},z("M",["MM",2],"Mo",(function(){return this.month()+1})),z("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),z("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),Ct("M",pt,Dt),Ct("MM",pt,ut),Ct("MMM",(function(t,e){return e.monthsShortRegex(t)})),Ct("MMMM",(function(t,e){return e.monthsRegex(t)})),Nt(["M","MM"],(function(t,e){e[Yt]=At(t)-1})),Nt(["MMM","MMMM"],(function(t,e,n,i){var r=n._locale.monthsParse(t,i,n._strict);null!=r?e[Yt]=r:v(n).invalidMonth=t}));var re="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),oe="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),se=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ae=St,le=St;function ue(t,e){return t?o(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||se).test(e)?"format":"standalone"][t.month()]:o(this._months)?this._months:this._months.standalone}function ce(t,e){return t?o(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[se.test(e)?"format":"standalone"][t.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function he(t,e,n){var i,r,o,s=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)o=f([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(r=Xt.call(this._shortMonthsParse,s))?r:null:-1!==(r=Xt.call(this._longMonthsParse,s))?r:null:"MMM"===e?-1!==(r=Xt.call(this._shortMonthsParse,s))||-1!==(r=Xt.call(this._longMonthsParse,s))?r:null:-1!==(r=Xt.call(this._longMonthsParse,s))||-1!==(r=Xt.call(this._shortMonthsParse,s))?r:null}function de(t,e,n){var i,r,o;if(this._monthsParseExact)return he.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=f([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}}function pe(t,e){if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=At(e);else if(!c(e=t.localeData().monthsParse(e)))return t;var n=e,i=t.date();return i=i<29?i:Math.min(i,ie(t.year(),n)),t._isUTC?t._d.setUTCMonth(n,i):t._d.setMonth(n,i),t}function fe(t){return null!=t?(pe(this,t),i.updateOffset(this,!0),this):Zt(this,"Month")}function me(){return ie(this.year(),this.month())}function ve(t){return this._monthsParseExact?(a(this,"_monthsRegex")||ye.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=ae),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function ge(t){return this._monthsParseExact?(a(this,"_monthsRegex")||ye.call(this),t?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=le),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function ye(){function t(t,e){return e.length-t.length}var e,n,i,r,o=[],s=[],a=[];for(e=0;e<12;e++)n=f([2e3,e]),i=Mt(this.monthsShort(n,"")),r=Mt(this.months(n,"")),o.push(i),s.push(r),a.push(r),a.push(i);o.sort(t),s.sort(t),a.sort(t),this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+o.join("|")+")","i")}function be(t,e,n,i,r,o,s){var a;return t<100&&t>=0?(a=new Date(t+400,e,n,i,r,o,s),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,e,n,i,r,o,s),a}function we(t){var e,n;return t<100&&t>=0?((n=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function _e(t,e,n){var i=7+e-n;return-(7+we(t,0,i).getUTCDay()-e)%7+i-1}function ke(t,e,n,i,r){var o,s,a=1+7*(e-1)+(7+n-i)%7+_e(t,i,r);return a<=0?s=qt(o=t-1)+a:a>qt(t)?(o=t+1,s=a-qt(t)):(o=t,s=a),{year:o,dayOfYear:s}}function xe(t,e,n){var i,r,o=_e(t.year(),e,n),s=Math.floor((t.dayOfYear()-o-1)/7)+1;return s<1?i=s+Se(r=t.year()-1,e,n):s>Se(t.year(),e,n)?(i=s-Se(t.year(),e,n),r=t.year()+1):(r=t.year(),i=s),{week:i,year:r}}function Se(t,e,n){var i=_e(t,e,n),r=_e(t+1,e,n);return(qt(t)-i+r)/7}function De(t){return xe(t,this._week.dow,this._week.doy).week}z("w",["ww",2],"wo","week"),z("W",["WW",2],"Wo","isoWeek"),Ct("w",pt,Dt),Ct("ww",pt,ut),Ct("W",pt,Dt),Ct("WW",pt,ut),jt(["w","ww","W","WW"],(function(t,e,n,i){e[i.substr(0,1)]=At(t)}));var Te={dow:0,doy:6};function Ce(){return this._week.dow}function Oe(){return this._week.doy}function Ee(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function Me(t){var e=xe(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function Pe(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}function Ae(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Ie(t,e){return t.slice(e,7).concat(t.slice(0,e))}z("d",0,"do","day"),z("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),z("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),z("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),z("e",0,0,"weekday"),z("E",0,0,"isoWeekday"),Ct("d",pt),Ct("e",pt),Ct("E",pt),Ct("dd",(function(t,e){return e.weekdaysMinRegex(t)})),Ct("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),Ct("dddd",(function(t,e){return e.weekdaysRegex(t)})),jt(["dd","ddd","dddd"],(function(t,e,n,i){var r=n._locale.weekdaysParse(t,i,n._strict);null!=r?e.d=r:v(n).invalidWeekday=t})),jt(["d","e","E"],(function(t,e,n,i){e[i]=At(t)}));var Ne="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),je="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Re="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Fe=St,Le=St,Ye=St;function ze(t,e){var n=o(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Ie(n,this._week.dow):t?n[t.day()]:n}function He(t){return!0===t?Ie(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function Ge(t){return!0===t?Ie(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function Be(t,e,n){var i,r,o,s=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=f([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(r=Xt.call(this._weekdaysParse,s))?r:null:"ddd"===e?-1!==(r=Xt.call(this._shortWeekdaysParse,s))?r:null:-1!==(r=Xt.call(this._minWeekdaysParse,s))?r:null:"dddd"===e?-1!==(r=Xt.call(this._weekdaysParse,s))||-1!==(r=Xt.call(this._shortWeekdaysParse,s))||-1!==(r=Xt.call(this._minWeekdaysParse,s))?r:null:"ddd"===e?-1!==(r=Xt.call(this._shortWeekdaysParse,s))||-1!==(r=Xt.call(this._weekdaysParse,s))||-1!==(r=Xt.call(this._minWeekdaysParse,s))?r:null:-1!==(r=Xt.call(this._minWeekdaysParse,s))||-1!==(r=Xt.call(this._weekdaysParse,s))||-1!==(r=Xt.call(this._shortWeekdaysParse,s))?r:null}function We(t,e,n){var i,r,o;if(this._weekdaysParseExact)return Be.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=f([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}}function Ve(t){if(!this.isValid())return null!=t?this:NaN;var e=Zt(this,"Day");return null!=t?(t=Pe(t,this.localeData()),this.add(t-e,"d")):e}function Ue(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function qe(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Ae(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function Xe(t){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Qe.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=Fe),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function $e(t){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Qe.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Le),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ke(t){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Qe.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ye),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Qe(){function t(t,e){return e.length-t.length}var e,n,i,r,o,s=[],a=[],l=[],u=[];for(e=0;e<7;e++)n=f([2e3,1]).day(e),i=Mt(this.weekdaysMin(n,"")),r=Mt(this.weekdaysShort(n,"")),o=Mt(this.weekdays(n,"")),s.push(i),a.push(r),l.push(o),u.push(i),u.push(r),u.push(o);s.sort(t),a.sort(t),l.sort(t),u.sort(t),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Ze(){return this.hours()%12||12}function Je(){return this.hours()||24}function tn(t,e){z(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function en(t,e){return e._meridiemParse}function nn(t){return"p"===(t+"").toLowerCase().charAt(0)}z("H",["HH",2],0,"hour"),z("h",["hh",2],0,Ze),z("k",["kk",2],0,Je),z("hmm",0,0,(function(){return""+Ze.apply(this)+j(this.minutes(),2)})),z("hmmss",0,0,(function(){return""+Ze.apply(this)+j(this.minutes(),2)+j(this.seconds(),2)})),z("Hmm",0,0,(function(){return""+this.hours()+j(this.minutes(),2)})),z("Hmmss",0,0,(function(){return""+this.hours()+j(this.minutes(),2)+j(this.seconds(),2)})),tn("a",!0),tn("A",!1),Ct("a",en),Ct("A",en),Ct("H",pt,Tt),Ct("h",pt,Dt),Ct("k",pt,Dt),Ct("HH",pt,ut),Ct("hh",pt,ut),Ct("kk",pt,ut),Ct("hmm",ft),Ct("hmmss",mt),Ct("Hmm",ft),Ct("Hmmss",mt),Nt(["H","HH"],Ht),Nt(["k","kk"],(function(t,e,n){var i=At(t);e[Ht]=24===i?0:i})),Nt(["a","A"],(function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t})),Nt(["h","hh"],(function(t,e,n){e[Ht]=At(t),v(n).bigHour=!0})),Nt("hmm",(function(t,e,n){var i=t.length-2;e[Ht]=At(t.substr(0,i)),e[Gt]=At(t.substr(i)),v(n).bigHour=!0})),Nt("hmmss",(function(t,e,n){var i=t.length-4,r=t.length-2;e[Ht]=At(t.substr(0,i)),e[Gt]=At(t.substr(i,2)),e[Bt]=At(t.substr(r)),v(n).bigHour=!0})),Nt("Hmm",(function(t,e,n){var i=t.length-2;e[Ht]=At(t.substr(0,i)),e[Gt]=At(t.substr(i))})),Nt("Hmmss",(function(t,e,n){var i=t.length-4,r=t.length-2;e[Ht]=At(t.substr(0,i)),e[Gt]=At(t.substr(i,2)),e[Bt]=At(t.substr(r))}));var rn=/[ap]\.?m?\.?/i,on=Qt("Hours",!0);function sn(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}var an,ln={calendar:I,longDateFormat:V,invalidDate:X,ordinal:K,dayOfMonthOrdinalParse:Q,relativeTime:J,months:re,monthsShort:oe,week:Te,weekdays:Ne,weekdaysMin:Re,weekdaysShort:je,meridiemParse:rn},un={},cn={};function hn(t,e){var n,i=Math.min(t.length,e.length);for(n=0;n<i;n+=1)if(t[n]!==e[n])return n;return i}function dn(t){return t?t.toLowerCase().replace("_","-"):t}function pn(t){for(var e,n,i,r,o=0;o<t.length;){for(e=(r=dn(t[o]).split("-")).length,n=(n=dn(t[o+1]))?n.split("-"):null;e>0;){if(i=mn(r.slice(0,e).join("-")))return i;if(n&&n.length>=e&&hn(r,n)>=e-1)break;e--}o++}return an}function fn(t){return!(!t||!t.match("^[^/\\\\]*$"))}function mn(e){var n=null;if(void 0===un[e]&&t&&t.exports&&fn(e))try{n=an._abbr,U("./locale/"+e),vn(n)}catch(t){un[e]=null}return un[e]}function vn(t,e){var n;return t&&((n=u(e)?bn(t):gn(t,e))?an=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),an._abbr}function gn(t,e){if(null!==e){var n,i=ln;if(e.abbr=t,null!=un[t])O("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=un[t]._config;else if(null!=e.parentLocale)if(null!=un[e.parentLocale])i=un[e.parentLocale]._config;else{if(null==(n=mn(e.parentLocale)))return cn[e.parentLocale]||(cn[e.parentLocale]=[]),cn[e.parentLocale].push({name:t,config:e}),null;i=n._config}return un[t]=new A(P(i,e)),cn[t]&&cn[t].forEach((function(t){gn(t.name,t.config)})),vn(t),un[t]}return delete un[t],null}function yn(t,e){if(null!=e){var n,i,r=ln;null!=un[t]&&null!=un[t].parentLocale?un[t].set(P(un[t]._config,e)):(null!=(i=mn(t))&&(r=i._config),e=P(r,e),null==i&&(e.abbr=t),(n=new A(e)).parentLocale=un[t],un[t]=n),vn(t)}else null!=un[t]&&(null!=un[t].parentLocale?(un[t]=un[t].parentLocale,t===vn()&&vn(t)):null!=un[t]&&delete un[t]);return un[t]}function bn(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return an;if(!o(t)){if(e=mn(t))return e;t=[t]}return pn(t)}function wn(){return T(un)}function _n(t){var e,n=t._a;return n&&-2===v(t).overflow&&(e=n[Yt]<0||n[Yt]>11?Yt:n[zt]<1||n[zt]>ie(n[Lt],n[Yt])?zt:n[Ht]<0||n[Ht]>24||24===n[Ht]&&(0!==n[Gt]||0!==n[Bt]||0!==n[Wt])?Ht:n[Gt]<0||n[Gt]>59?Gt:n[Bt]<0||n[Bt]>59?Bt:n[Wt]<0||n[Wt]>999?Wt:-1,v(t)._overflowDayOfYear&&(e<Lt||e>zt)&&(e=zt),v(t)._overflowWeeks&&-1===e&&(e=Vt),v(t)._overflowWeekday&&-1===e&&(e=Ut),v(t).overflow=e),t}var kn=/^\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)?)?$/,xn=/^\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)?)?$/,Sn=/Z|[+-]\d\d(?::?\d\d)?/,Dn=[["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]],Tn=[["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/]],Cn=/^\/?Date\((-?\d+)/i,On=/^(?:(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}))$/,En={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Mn(t){var e,n,i,r,o,s,a=t._i,l=kn.exec(a)||xn.exec(a),u=Dn.length,c=Tn.length;if(l){for(v(t).iso=!0,e=0,n=u;e<n;e++)if(Dn[e][1].exec(l[1])){r=Dn[e][0],i=!1!==Dn[e][2];break}if(null==r)return void(t._isValid=!1);if(l[3]){for(e=0,n=c;e<n;e++)if(Tn[e][1].exec(l[3])){o=(l[2]||" ")+Tn[e][0];break}if(null==o)return void(t._isValid=!1)}if(!i&&null!=o)return void(t._isValid=!1);if(l[4]){if(!Sn.exec(l[4]))return void(t._isValid=!1);s="Z"}t._f=r+(o||"")+(s||""),Gn(t)}else t._isValid=!1}function Pn(t,e,n,i,r,o){var s=[An(t),oe.indexOf(e),parseInt(n,10),parseInt(i,10),parseInt(r,10)];return o&&s.push(parseInt(o,10)),s}function An(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function In(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Nn(t,e,n){return!t||je.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(v(n).weekdayMismatch=!0,n._isValid=!1,!1)}function jn(t,e,n){if(t)return En[t];if(e)return 0;var i=parseInt(n,10),r=i%100;return(i-r)/100*60+r}function Rn(t){var e,n=On.exec(In(t._i));if(n){if(e=Pn(n[4],n[3],n[2],n[5],n[6],n[7]),!Nn(n[1],e,t))return;t._a=e,t._tzm=jn(n[8],n[9],n[10]),t._d=we.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),v(t).rfc2822=!0}else t._isValid=!1}function Fn(t){var e=Cn.exec(t._i);null===e?(Mn(t),!1===t._isValid&&(delete t._isValid,Rn(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:i.createFromInputFallback(t)))):t._d=new Date(+e[1])}function Ln(t,e,n){return null!=t?t:null!=e?e:n}function Yn(t){var e=new Date(i.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function zn(t){var e,n,i,r,o,s=[];if(!t._d){for(i=Yn(t),t._w&&null==t._a[zt]&&null==t._a[Yt]&&Hn(t),null!=t._dayOfYear&&(o=Ln(t._a[Lt],i[Lt]),(t._dayOfYear>qt(o)||0===t._dayOfYear)&&(v(t)._overflowDayOfYear=!0),n=we(o,0,t._dayOfYear),t._a[Yt]=n.getUTCMonth(),t._a[zt]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=s[e]=i[e];for(;e<7;e++)t._a[e]=s[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[Ht]&&0===t._a[Gt]&&0===t._a[Bt]&&0===t._a[Wt]&&(t._nextDay=!0,t._a[Ht]=0),t._d=(t._useUTC?we:be).apply(null,s),r=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Ht]=24),t._w&&void 0!==t._w.d&&t._w.d!==r&&(v(t).weekdayMismatch=!0)}}function Hn(t){var e,n,i,r,o,s,a,l,u;null!=(e=t._w).GG||null!=e.W||null!=e.E?(o=1,s=4,n=Ln(e.GG,t._a[Lt],xe(Kn(),1,4).year),i=Ln(e.W,1),((r=Ln(e.E,1))<1||r>7)&&(l=!0)):(o=t._locale._week.dow,s=t._locale._week.doy,u=xe(Kn(),o,s),n=Ln(e.gg,t._a[Lt],u.year),i=Ln(e.w,u.week),null!=e.d?((r=e.d)<0||r>6)&&(l=!0):null!=e.e?(r=e.e+o,(e.e<0||e.e>6)&&(l=!0)):r=o),i<1||i>Se(n,o,s)?v(t)._overflowWeeks=!0:null!=l?v(t)._overflowWeekday=!0:(a=ke(n,i,r,o,s),t._a[Lt]=a.year,t._dayOfYear=a.dayOfYear)}function Gn(t){if(t._f!==i.ISO_8601)if(t._f!==i.RFC_2822){t._a=[],v(t).empty=!0;var e,n,r,o,s,a,l,u=""+t._i,c=u.length,h=0;for(l=(r=W(t._f,t._locale).match(R)||[]).length,e=0;e<l;e++)o=r[e],(n=(u.match(Ot(o,t))||[])[0])&&((s=u.substr(0,u.indexOf(n))).length>0&&v(t).unusedInput.push(s),u=u.slice(u.indexOf(n)+n.length),h+=n.length),Y[o]?(n?v(t).empty=!1:v(t).unusedTokens.push(o),Rt(o,n,t)):t._strict&&!n&&v(t).unusedTokens.push(o);v(t).charsLeftOver=c-h,u.length>0&&v(t).unusedInput.push(u),t._a[Ht]<=12&&!0===v(t).bigHour&&t._a[Ht]>0&&(v(t).bigHour=void 0),v(t).parsedDateParts=t._a.slice(0),v(t).meridiem=t._meridiem,t._a[Ht]=Bn(t._locale,t._a[Ht],t._meridiem),null!==(a=v(t).era)&&(t._a[Lt]=t._locale.erasConvertYear(a,t._a[Lt])),zn(t),_n(t)}else Rn(t);else Mn(t)}function Bn(t,e,n){var i;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((i=t.isPM(n))&&e<12&&(e+=12),i||12!==e||(e=0),e):e}function Wn(t){var e,n,i,r,o,s,a=!1,l=t._f.length;if(0===l)return v(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<l;r++)o=0,s=!1,e=_({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],Gn(e),g(e)&&(s=!0),o+=v(e).charsLeftOver,o+=10*v(e).unusedTokens.length,v(e).score=o,a?o<i&&(i=o,n=e):(null==i||o<i||s)&&(i=o,n=e,s&&(a=!0));p(t,n||e)}function Vn(t){if(!t._d){var e=rt(t._i),n=void 0===e.day?e.date:e.day;t._a=d([e.year,e.month,n,e.hour,e.minute,e.second,e.millisecond],(function(t){return t&&parseInt(t,10)})),zn(t)}}function Un(t){var e=new k(_n(qn(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function qn(t){var e=t._i,n=t._f;return t._locale=t._locale||bn(t._l),null===e||void 0===n&&""===e?y({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),x(e)?new k(_n(e)):(h(e)?t._d=e:o(n)?Wn(t):n?Gn(t):Xn(t),g(t)||(t._d=null),t))}function Xn(t){var e=t._i;u(e)?t._d=new Date(i.now()):h(e)?t._d=new Date(e.valueOf()):"string"==typeof e?Fn(t):o(e)?(t._a=d(e.slice(0),(function(t){return parseInt(t,10)})),zn(t)):s(e)?Vn(t):c(e)?t._d=new Date(e):i.createFromInputFallback(t)}function $n(t,e,n,i,r){var a={};return!0!==e&&!1!==e||(i=e,e=void 0),!0!==n&&!1!==n||(i=n,n=void 0),(s(t)&&l(t)||o(t)&&0===t.length)&&(t=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=r,a._l=n,a._i=t,a._f=e,a._strict=i,Un(a)}function Kn(t,e,n,i){return $n(t,e,n,i,!1)}i.createFromInputFallback=D("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),i.ISO_8601=function(){},i.RFC_2822=function(){};var Qn=D("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Kn.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:y()})),Zn=D("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Kn.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:y()}));function Jn(t,e){var n,i;if(1===e.length&&o(e[0])&&(e=e[0]),!e.length)return Kn();for(n=e[0],i=1;i<e.length;++i)e[i].isValid()&&!e[i][t](n)||(n=e[i]);return n}function ti(){return Jn("isBefore",[].slice.call(arguments,0))}function ei(){return Jn("isAfter",[].slice.call(arguments,0))}var ni=function(){return Date.now?Date.now():+new Date},ii=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ri(t){var e,n,i=!1,r=ii.length;for(e in t)if(a(t,e)&&(-1===Xt.call(ii,e)||null!=t[e]&&isNaN(t[e])))return!1;for(n=0;n<r;++n)if(t[ii[n]]){if(i)return!1;parseFloat(t[ii[n]])!==At(t[ii[n]])&&(i=!0)}return!0}function oi(){return this._isValid}function si(){return Ei(NaN)}function ai(t){var e=rt(t),n=e.year||0,i=e.quarter||0,r=e.month||0,o=e.week||e.isoWeek||0,s=e.day||0,a=e.hour||0,l=e.minute||0,u=e.second||0,c=e.millisecond||0;this._isValid=ri(e),this._milliseconds=+c+1e3*u+6e4*l+1e3*a*60*60,this._days=+s+7*o,this._months=+r+3*i+12*n,this._data={},this._locale=bn(),this._bubble()}function li(t){return t instanceof ai}function ui(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function ci(t,e,n){var i,r=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),s=0;for(i=0;i<r;i++)(n&&t[i]!==e[i]||!n&&At(t[i])!==At(e[i]))&&s++;return s+o}function hi(t,e){z(t,0,0,(function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+j(~~(t/60),2)+e+j(~~t%60,2)}))}hi("Z",":"),hi("ZZ",""),Ct("Z",kt),Ct("ZZ",kt),Nt(["Z","ZZ"],(function(t,e,n){n._useUTC=!0,n._tzm=pi(kt,t)}));var di=/([\+\-]|\d\d)/gi;function pi(t,e){var n,i,r=(e||"").match(t);return null===r?null:0===(i=60*(n=((r[r.length-1]||[])+"").match(di)||["-",0,0])[1]+At(n[2]))?0:"+"===n[0]?i:-i}function fi(t,e){var n,r;return e._isUTC?(n=e.clone(),r=(x(t)||h(t)?t.valueOf():Kn(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),i.updateOffset(n,!1),n):Kn(t).local()}function mi(t){return-Math.round(t._d.getTimezoneOffset())}function vi(t,e,n){var r,o=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=pi(kt,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(r=mi(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==t&&(!e||this._changeInProgress?Ni(this,Ei(t-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:mi(this)}function gi(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function yi(t){return this.utcOffset(0,t)}function bi(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(mi(this),"m")),this}function wi(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=pi(_t,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this}function _i(t){return!!this.isValid()&&(t=t?Kn(t).utcOffset():0,(this.utcOffset()-t)%60==0)}function ki(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function xi(){if(!u(this._isDSTShifted))return this._isDSTShifted;var t,e={};return _(e,this),(e=qn(e))._a?(t=e._isUTC?f(e._a):Kn(e._a),this._isDSTShifted=this.isValid()&&ci(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Si(){return!!this.isValid()&&!this._isUTC}function Di(){return!!this.isValid()&&this._isUTC}function Ti(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Ci=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Oi=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ei(t,e){var n,i,r,o=t,s=null;return li(t)?o={ms:t._milliseconds,d:t._days,M:t._months}:c(t)||!isNaN(+t)?(o={},e?o[e]=+t:o.milliseconds=+t):(s=Ci.exec(t))?(n="-"===s[1]?-1:1,o={y:0,d:At(s[zt])*n,h:At(s[Ht])*n,m:At(s[Gt])*n,s:At(s[Bt])*n,ms:At(ui(1e3*s[Wt]))*n}):(s=Oi.exec(t))?(n="-"===s[1]?-1:1,o={y:Mi(s[2],n),M:Mi(s[3],n),w:Mi(s[4],n),d:Mi(s[5],n),h:Mi(s[6],n),m:Mi(s[7],n),s:Mi(s[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(r=Ai(Kn(o.from),Kn(o.to)),(o={}).ms=r.milliseconds,o.M=r.months),i=new ai(o),li(t)&&a(t,"_locale")&&(i._locale=t._locale),li(t)&&a(t,"_isValid")&&(i._isValid=t._isValid),i}function Mi(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Pi(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Ai(t,e){var n;return t.isValid()&&e.isValid()?(e=fi(e,t),t.isBefore(e)?n=Pi(t,e):((n=Pi(e,t)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Ii(t,e){return function(n,i){var r;return null===i||isNaN(+i)||(O(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=i,i=r),Ni(this,Ei(n,i),t),this}}function Ni(t,e,n,r){var o=e._milliseconds,s=ui(e._days),a=ui(e._months);t.isValid()&&(r=null==r||r,a&&pe(t,Zt(t,"Month")+a*n),s&&Jt(t,"Date",Zt(t,"Date")+s*n),o&&t._d.setTime(t._d.valueOf()+o*n),r&&i.updateOffset(t,s||a))}Ei.fn=ai.prototype,Ei.invalid=si;var ji=Ii(1,"add"),Ri=Ii(-1,"subtract");function Fi(t){return"string"==typeof t||t instanceof String}function Li(t){return x(t)||h(t)||Fi(t)||c(t)||zi(t)||Yi(t)||null==t}function Yi(t){var e,n,i=s(t)&&!l(t),r=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],u=o.length;for(e=0;e<u;e+=1)n=o[e],r=r||a(t,n);return i&&r}function zi(t){var e=o(t),n=!1;return e&&(n=0===t.filter((function(e){return!c(e)&&Fi(t)})).length),e&&n}function Hi(t){var e,n,i=s(t)&&!l(t),r=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;e<o.length;e+=1)n=o[e],r=r||a(t,n);return i&&r}function Gi(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Bi(t,e){1===arguments.length&&(arguments[0]?Li(arguments[0])?(t=arguments[0],e=void 0):Hi(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var n=t||Kn(),r=fi(n,this).startOf("day"),o=i.calendarFormat(this,r)||"sameElse",s=e&&(E(e[o])?e[o].call(this,n):e[o]);return this.format(s||this.localeData().calendar(o,this,Kn(n)))}function Wi(){return new k(this)}function Vi(t,e){var n=x(t)?t:Kn(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=it(e)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())}function Ui(t,e){var n=x(t)?t:Kn(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=it(e)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())}function qi(t,e,n,i){var r=x(t)?t:Kn(t),o=x(e)?e:Kn(e);return!!(this.isValid()&&r.isValid()&&o.isValid())&&("("===(i=i||"()")[0]?this.isAfter(r,n):!this.isBefore(r,n))&&(")"===i[1]?this.isBefore(o,n):!this.isAfter(o,n))}function Xi(t,e){var n,i=x(t)?t:Kn(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=it(e)||"millisecond")?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))}function $i(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function Ki(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function Qi(t,e,n){var i,r,o;if(!this.isValid())return NaN;if(!(i=fi(t,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),e=it(e)){case"year":o=Zi(this,i)/12;break;case"month":o=Zi(this,i);break;case"quarter":o=Zi(this,i)/3;break;case"second":o=(this-i)/1e3;break;case"minute":o=(this-i)/6e4;break;case"hour":o=(this-i)/36e5;break;case"day":o=(this-i-r)/864e5;break;case"week":o=(this-i-r)/6048e5;break;default:o=this-i}return n?o:Pt(o)}function Zi(t,e){if(t.date()<e.date())return-Zi(e,t);var n=12*(e.year()-t.year())+(e.month()-t.month()),i=t.clone().add(n,"months");return-(n+(e-i<0?(e-i)/(i-t.clone().add(n-1,"months")):(e-i)/(t.clone().add(n+1,"months")-i)))||0}function Ji(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function tr(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?B(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):E(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",B(n,"Z")):B(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function er(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,n,i,r="moment",o="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),t="["+r+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",i=o+'[")]',this.format(t+e+n+i)}function nr(t){t||(t=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var e=B(this,t);return this.localeData().postformat(e)}function ir(t,e){return this.isValid()&&(x(t)&&t.isValid()||Kn(t).isValid())?Ei({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function rr(t){return this.from(Kn(),t)}function or(t,e){return this.isValid()&&(x(t)&&t.isValid()||Kn(t).isValid())?Ei({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function sr(t){return this.to(Kn(),t)}function ar(t){var e;return void 0===t?this._locale._abbr:(null!=(e=bn(t))&&(this._locale=e),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var lr=D("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function ur(){return this._locale}var cr=1e3,hr=60*cr,dr=60*hr,pr=3506328*dr;function fr(t,e){return(t%e+e)%e}function mr(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-pr:new Date(t,e,n).valueOf()}function vr(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-pr:Date.UTC(t,e,n)}function gr(t){var e,n;if(void 0===(t=it(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?vr:mr,t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=fr(e+(this._isUTC?0:this.utcOffset()*hr),dr);break;case"minute":e=this._d.valueOf(),e-=fr(e,hr);break;case"second":e=this._d.valueOf(),e-=fr(e,cr)}return this._d.setTime(e),i.updateOffset(this,!0),this}function yr(t){var e,n;if(void 0===(t=it(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?vr:mr,t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=dr-fr(e+(this._isUTC?0:this.utcOffset()*hr),dr)-1;break;case"minute":e=this._d.valueOf(),e+=hr-fr(e,hr)-1;break;case"second":e=this._d.valueOf(),e+=cr-fr(e,cr)-1}return this._d.setTime(e),i.updateOffset(this,!0),this}function br(){return this._d.valueOf()-6e4*(this._offset||0)}function wr(){return Math.floor(this.valueOf()/1e3)}function _r(){return new Date(this.valueOf())}function kr(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function xr(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function Sr(){return this.isValid()?this.toISOString():null}function Dr(){return g(this)}function Tr(){return p({},v(this))}function Cr(){return v(this).overflow}function Or(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Er(t,e){var n,r,o,s=this._eras||bn("en")._eras;for(n=0,r=s.length;n<r;++n)switch("string"==typeof s[n].since&&(o=i(s[n].since).startOf("day"),s[n].since=o.valueOf()),typeof s[n].until){case"undefined":s[n].until=1/0;break;case"string":o=i(s[n].until).startOf("day").valueOf(),s[n].until=o.valueOf()}return s}function Mr(t,e,n){var i,r,o,s,a,l=this.eras();for(t=t.toUpperCase(),i=0,r=l.length;i<r;++i)if(o=l[i].name.toUpperCase(),s=l[i].abbr.toUpperCase(),a=l[i].narrow.toUpperCase(),n)switch(e){case"N":case"NN":case"NNN":if(s===t)return l[i];break;case"NNNN":if(o===t)return l[i];break;case"NNNNN":if(a===t)return l[i]}else if([o,s,a].indexOf(t)>=0)return l[i]}function Pr(t,e){var n=t.since<=t.until?1:-1;return void 0===e?i(t.since).year():i(t.since).year()+(e-t.offset)*n}function Ar(){var t,e,n,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),i[t].since<=n&&n<=i[t].until)return i[t].name;if(i[t].until<=n&&n<=i[t].since)return i[t].name}return""}function Ir(){var t,e,n,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),i[t].since<=n&&n<=i[t].until)return i[t].narrow;if(i[t].until<=n&&n<=i[t].since)return i[t].narrow}return""}function Nr(){var t,e,n,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),i[t].since<=n&&n<=i[t].until)return i[t].abbr;if(i[t].until<=n&&n<=i[t].since)return i[t].abbr}return""}function jr(){var t,e,n,r,o=this.localeData().eras();for(t=0,e=o.length;t<e;++t)if(n=o[t].since<=o[t].until?1:-1,r=this.clone().startOf("day").valueOf(),o[t].since<=r&&r<=o[t].until||o[t].until<=r&&r<=o[t].since)return(this.year()-i(o[t].since).year())*n+o[t].offset;return this.year()}function Rr(t){return a(this,"_erasNameRegex")||Br.call(this),t?this._erasNameRegex:this._erasRegex}function Fr(t){return a(this,"_erasAbbrRegex")||Br.call(this),t?this._erasAbbrRegex:this._erasRegex}function Lr(t){return a(this,"_erasNarrowRegex")||Br.call(this),t?this._erasNarrowRegex:this._erasRegex}function Yr(t,e){return e.erasAbbrRegex(t)}function zr(t,e){return e.erasNameRegex(t)}function Hr(t,e){return e.erasNarrowRegex(t)}function Gr(t,e){return e._eraYearOrdinalRegex||bt}function Br(){var t,e,n,i,r,o=[],s=[],a=[],l=[],u=this.eras();for(t=0,e=u.length;t<e;++t)n=Mt(u[t].name),i=Mt(u[t].abbr),r=Mt(u[t].narrow),s.push(n),o.push(i),a.push(r),l.push(n),l.push(i),l.push(r);this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+s.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i")}function Wr(t,e){z(0,[t,t.length],0,e)}function Vr(t){return Qr.call(this,t,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Ur(t){return Qr.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function qr(){return Se(this.year(),1,4)}function Xr(){return Se(this.isoWeekYear(),1,4)}function $r(){var t=this.localeData()._week;return Se(this.year(),t.dow,t.doy)}function Kr(){var t=this.localeData()._week;return Se(this.weekYear(),t.dow,t.doy)}function Qr(t,e,n,i,r){var o;return null==t?xe(this,i,r).year:(e>(o=Se(t,i,r))&&(e=o),Zr.call(this,t,e,n,i,r))}function Zr(t,e,n,i,r){var o=ke(t,e,n,i,r),s=we(o.year,0,o.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}function Jr(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}z("N",0,0,"eraAbbr"),z("NN",0,0,"eraAbbr"),z("NNN",0,0,"eraAbbr"),z("NNNN",0,0,"eraName"),z("NNNNN",0,0,"eraNarrow"),z("y",["y",1],"yo","eraYear"),z("y",["yy",2],0,"eraYear"),z("y",["yyy",3],0,"eraYear"),z("y",["yyyy",4],0,"eraYear"),Ct("N",Yr),Ct("NN",Yr),Ct("NNN",Yr),Ct("NNNN",zr),Ct("NNNNN",Hr),Nt(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,n,i){var r=n._locale.erasParse(t,i,n._strict);r?v(n).era=r:v(n).invalidEra=t})),Ct("y",bt),Ct("yy",bt),Ct("yyy",bt),Ct("yyyy",bt),Ct("yo",Gr),Nt(["y","yy","yyy","yyyy"],Lt),Nt(["yo"],(function(t,e,n,i){var r;n._locale._eraYearOrdinalRegex&&(r=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[Lt]=n._locale.eraYearOrdinalParse(t,r):e[Lt]=parseInt(t,10)})),z(0,["gg",2],0,(function(){return this.weekYear()%100})),z(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Wr("gggg","weekYear"),Wr("ggggg","weekYear"),Wr("GGGG","isoWeekYear"),Wr("GGGGG","isoWeekYear"),Ct("G",wt),Ct("g",wt),Ct("GG",pt,ut),Ct("gg",pt,ut),Ct("GGGG",gt,ht),Ct("gggg",gt,ht),Ct("GGGGG",yt,dt),Ct("ggggg",yt,dt),jt(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,n,i){e[i.substr(0,2)]=At(t)})),jt(["gg","GG"],(function(t,e,n,r){e[r]=i.parseTwoDigitYear(t)})),z("Q",0,"Qo","quarter"),Ct("Q",lt),Nt("Q",(function(t,e){e[Yt]=3*(At(t)-1)})),z("D",["DD",2],"Do","date"),Ct("D",pt,Dt),Ct("DD",pt,ut),Ct("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),Nt(["D","DD"],zt),Nt("Do",(function(t,e){e[zt]=At(t.match(pt)[0])}));var to=Qt("Date",!0);function eo(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}z("DDD",["DDDD",3],"DDDo","dayOfYear"),Ct("DDD",vt),Ct("DDDD",ct),Nt(["DDD","DDDD"],(function(t,e,n){n._dayOfYear=At(t)})),z("m",["mm",2],0,"minute"),Ct("m",pt,Tt),Ct("mm",pt,ut),Nt(["m","mm"],Gt);var no=Qt("Minutes",!1);z("s",["ss",2],0,"second"),Ct("s",pt,Tt),Ct("ss",pt,ut),Nt(["s","ss"],Bt);var io,ro,oo=Qt("Seconds",!1);for(z("S",0,0,(function(){return~~(this.millisecond()/100)})),z(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),z(0,["SSS",3],0,"millisecond"),z(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),z(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),z(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),z(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),z(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),z(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),Ct("S",vt,lt),Ct("SS",vt,ut),Ct("SSS",vt,ct),io="SSSS";io.length<=9;io+="S")Ct(io,bt);function so(t,e){e[Wt]=At(1e3*("0."+t))}for(io="S";io.length<=9;io+="S")Nt(io,so);function ao(){return this._isUTC?"UTC":""}function lo(){return this._isUTC?"Coordinated Universal Time":""}ro=Qt("Milliseconds",!1),z("z",0,0,"zoneAbbr"),z("zz",0,0,"zoneName");var uo=k.prototype;function co(t){return Kn(1e3*t)}function ho(){return Kn.apply(null,arguments).parseZone()}function po(t){return t}uo.add=ji,uo.calendar=Bi,uo.clone=Wi,uo.diff=Qi,uo.endOf=yr,uo.format=nr,uo.from=ir,uo.fromNow=rr,uo.to=or,uo.toNow=sr,uo.get=te,uo.invalidAt=Cr,uo.isAfter=Vi,uo.isBefore=Ui,uo.isBetween=qi,uo.isSame=Xi,uo.isSameOrAfter=$i,uo.isSameOrBefore=Ki,uo.isValid=Dr,uo.lang=lr,uo.locale=ar,uo.localeData=ur,uo.max=Zn,uo.min=Qn,uo.parsingFlags=Tr,uo.set=ee,uo.startOf=gr,uo.subtract=Ri,uo.toArray=kr,uo.toObject=xr,uo.toDate=_r,uo.toISOString=tr,uo.inspect=er,"undefined"!=typeof Symbol&&null!=Symbol.for&&(uo[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),uo.toJSON=Sr,uo.toString=Ji,uo.unix=wr,uo.valueOf=br,uo.creationData=Or,uo.eraName=Ar,uo.eraNarrow=Ir,uo.eraAbbr=Nr,uo.eraYear=jr,uo.year=$t,uo.isLeapYear=Kt,uo.weekYear=Vr,uo.isoWeekYear=Ur,uo.quarter=uo.quarters=Jr,uo.month=fe,uo.daysInMonth=me,uo.week=uo.weeks=Ee,uo.isoWeek=uo.isoWeeks=Me,uo.weeksInYear=$r,uo.weeksInWeekYear=Kr,uo.isoWeeksInYear=qr,uo.isoWeeksInISOWeekYear=Xr,uo.date=to,uo.day=uo.days=Ve,uo.weekday=Ue,uo.isoWeekday=qe,uo.dayOfYear=eo,uo.hour=uo.hours=on,uo.minute=uo.minutes=no,uo.second=uo.seconds=oo,uo.millisecond=uo.milliseconds=ro,uo.utcOffset=vi,uo.utc=yi,uo.local=bi,uo.parseZone=wi,uo.hasAlignedHourOffset=_i,uo.isDST=ki,uo.isLocal=Si,uo.isUtcOffset=Di,uo.isUtc=Ti,uo.isUTC=Ti,uo.zoneAbbr=ao,uo.zoneName=lo,uo.dates=D("dates accessor is deprecated. Use date instead.",to),uo.months=D("months accessor is deprecated. Use month instead",fe),uo.years=D("years accessor is deprecated. Use year instead",$t),uo.zone=D("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",gi),uo.isDSTShifted=D("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",xi);var fo=A.prototype;function mo(t,e,n,i){var r=bn(),o=f().set(i,e);return r[n](o,t)}function vo(t,e,n){if(c(t)&&(e=t,t=void 0),t=t||"",null!=e)return mo(t,e,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=mo(t,i,n,"month");return r}function go(t,e,n,i){"boolean"==typeof t?(c(e)&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,c(e)&&(n=e,e=void 0),e=e||"");var r,o=bn(),s=t?o._week.dow:0,a=[];if(null!=n)return mo(e,(n+s)%7,i,"day");for(r=0;r<7;r++)a[r]=mo(e,(r+s)%7,i,"day");return a}function yo(t,e){return vo(t,e,"months")}function bo(t,e){return vo(t,e,"monthsShort")}function wo(t,e,n){return go(t,e,n,"weekdays")}function _o(t,e,n){return go(t,e,n,"weekdaysShort")}function ko(t,e,n){return go(t,e,n,"weekdaysMin")}fo.calendar=N,fo.longDateFormat=q,fo.invalidDate=$,fo.ordinal=Z,fo.preparse=po,fo.postformat=po,fo.relativeTime=tt,fo.pastFuture=et,fo.set=M,fo.eras=Er,fo.erasParse=Mr,fo.erasConvertYear=Pr,fo.erasAbbrRegex=Fr,fo.erasNameRegex=Rr,fo.erasNarrowRegex=Lr,fo.months=ue,fo.monthsShort=ce,fo.monthsParse=de,fo.monthsRegex=ge,fo.monthsShortRegex=ve,fo.week=De,fo.firstDayOfYear=Oe,fo.firstDayOfWeek=Ce,fo.weekdays=ze,fo.weekdaysMin=Ge,fo.weekdaysShort=He,fo.weekdaysParse=We,fo.weekdaysRegex=Xe,fo.weekdaysShortRegex=$e,fo.weekdaysMinRegex=Ke,fo.isPM=nn,fo.meridiem=sn,vn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===At(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),i.lang=D("moment.lang is deprecated. Use moment.locale instead.",vn),i.langData=D("moment.langData is deprecated. Use moment.localeData instead.",bn);var xo=Math.abs;function So(){var t=this._data;return this._milliseconds=xo(this._milliseconds),this._days=xo(this._days),this._months=xo(this._months),t.milliseconds=xo(t.milliseconds),t.seconds=xo(t.seconds),t.minutes=xo(t.minutes),t.hours=xo(t.hours),t.months=xo(t.months),t.years=xo(t.years),this}function Do(t,e,n,i){var r=Ei(e,n);return t._milliseconds+=i*r._milliseconds,t._days+=i*r._days,t._months+=i*r._months,t._bubble()}function To(t,e){return Do(this,t,e,1)}function Co(t,e){return Do(this,t,e,-1)}function Oo(t){return t<0?Math.floor(t):Math.ceil(t)}function Eo(){var t,e,n,i,r,o=this._milliseconds,s=this._days,a=this._months,l=this._data;return o>=0&&s>=0&&a>=0||o<=0&&s<=0&&a<=0||(o+=864e5*Oo(Po(a)+s),s=0,a=0),l.milliseconds=o%1e3,t=Pt(o/1e3),l.seconds=t%60,e=Pt(t/60),l.minutes=e%60,n=Pt(e/60),l.hours=n%24,s+=Pt(n/24),a+=r=Pt(Mo(s)),s-=Oo(Po(r)),i=Pt(a/12),a%=12,l.days=s,l.months=a,l.years=i,this}function Mo(t){return 4800*t/146097}function Po(t){return 146097*t/4800}function Ao(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=it(t))||"quarter"===t||"year"===t)switch(e=this._days+i/864e5,n=this._months+Mo(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(Po(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}}function Io(t){return function(){return this.as(t)}}var No=Io("ms"),jo=Io("s"),Ro=Io("m"),Fo=Io("h"),Lo=Io("d"),Yo=Io("w"),zo=Io("M"),Ho=Io("Q"),Go=Io("y"),Bo=No;function Wo(){return Ei(this)}function Vo(t){return t=it(t),this.isValid()?this[t+"s"]():NaN}function Uo(t){return function(){return this.isValid()?this._data[t]:NaN}}var qo=Uo("milliseconds"),Xo=Uo("seconds"),$o=Uo("minutes"),Ko=Uo("hours"),Qo=Uo("days"),Zo=Uo("months"),Jo=Uo("years");function ts(){return Pt(this.days()/7)}var es=Math.round,ns={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function is(t,e,n,i,r){return r.relativeTime(e||1,!!n,t,i)}function rs(t,e,n,i){var r=Ei(t).abs(),o=es(r.as("s")),s=es(r.as("m")),a=es(r.as("h")),l=es(r.as("d")),u=es(r.as("M")),c=es(r.as("w")),h=es(r.as("y")),d=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||s<=1&&["m"]||s<n.m&&["mm",s]||a<=1&&["h"]||a<n.h&&["hh",a]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(d=d||c<=1&&["w"]||c<n.w&&["ww",c]),(d=d||u<=1&&["M"]||u<n.M&&["MM",u]||h<=1&&["y"]||["yy",h])[2]=e,d[3]=+t>0,d[4]=i,is.apply(null,d)}function os(t){return void 0===t?es:"function"==typeof t&&(es=t,!0)}function ss(t,e){return void 0!==ns[t]&&(void 0===e?ns[t]:(ns[t]=e,"s"===t&&(ns.ss=e-1),!0))}function as(t,e){if(!this.isValid())return this.localeData().invalidDate();var n,i,r=!1,o=ns;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(r=t),"object"==typeof e&&(o=Object.assign({},ns,e),null!=e.s&&null==e.ss&&(o.ss=e.s-1)),i=rs(this,!r,o,n=this.localeData()),r&&(i=n.pastFuture(+this,i)),n.postformat(i)}var ls=Math.abs;function us(t){return(t>0)-(t<0)||+t}function cs(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,i,r,o,s,a,l=ls(this._milliseconds)/1e3,u=ls(this._days),c=ls(this._months),h=this.asSeconds();return h?(t=Pt(l/60),e=Pt(t/60),l%=60,t%=60,n=Pt(c/12),c%=12,i=l?l.toFixed(3).replace(/\.?0+$/,""):"",r=h<0?"-":"",o=us(this._months)!==us(h)?"-":"",s=us(this._days)!==us(h)?"-":"",a=us(this._milliseconds)!==us(h)?"-":"",r+"P"+(n?o+n+"Y":"")+(c?o+c+"M":"")+(u?s+u+"D":"")+(e||t||l?"T":"")+(e?a+e+"H":"")+(t?a+t+"M":"")+(l?a+i+"S":"")):"P0D"}var hs=ai.prototype;return hs.isValid=oi,hs.abs=So,hs.add=To,hs.subtract=Co,hs.as=Ao,hs.asMilliseconds=No,hs.asSeconds=jo,hs.asMinutes=Ro,hs.asHours=Fo,hs.asDays=Lo,hs.asWeeks=Yo,hs.asMonths=zo,hs.asQuarters=Ho,hs.asYears=Go,hs.valueOf=Bo,hs._bubble=Eo,hs.clone=Wo,hs.get=Vo,hs.milliseconds=qo,hs.seconds=Xo,hs.minutes=$o,hs.hours=Ko,hs.days=Qo,hs.weeks=ts,hs.months=Zo,hs.years=Jo,hs.humanize=as,hs.toISOString=cs,hs.toString=cs,hs.toJSON=cs,hs.locale=ar,hs.localeData=ur,hs.toIsoString=D("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",cs),hs.lang=lr,z("X",0,0,"unix"),z("x",0,0,"valueOf"),Ct("x",wt),Ct("X",xt),Nt("X",(function(t,e,n){n._d=new Date(1e3*parseFloat(t))})),Nt("x",(function(t,e,n){n._d=new Date(At(t))})),
|
||
//! moment.js
|
||
i.version="2.30.1",r(Kn),i.fn=uo,i.min=ti,i.max=ei,i.now=ni,i.utc=f,i.unix=co,i.months=yo,i.isDate=h,i.locale=vn,i.invalid=y,i.duration=Ei,i.isMoment=x,i.weekdays=wo,i.parseZone=ho,i.localeData=bn,i.isDuration=li,i.monthsShort=bo,i.weekdaysMin=ko,i.defineLocale=gn,i.updateLocale=yn,i.locales=wn,i.weekdaysShort=_o,i.normalizeUnits=it,i.relativeTimeRounding=os,i.relativeTimeThreshold=ss,i.calendarFormat=Gi,i.prototype=uo,i.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"},i}()),X.exports;var t}var K,Q={exports:{}};
|
||
/**
|
||
* 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.
|
||
*/function Z(){return K||(K=1,function(t){function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function r(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var o={exports:{}},s=function(t){return t&&t.Math===Math&&t},a=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof i&&i)||function(){return this}()||i||Function("return this")(),l=function(t){try{return!!t()}catch(t){return!0}},u=!l((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),c=u,h=Function.prototype,d=h.apply,p=h.call,f="object"==typeof Reflect&&Reflect.apply||(c?p.bind(d):function(){return p.apply(d,arguments)}),m=u,v=Function.prototype,g=v.call,y=m&&v.bind.bind(g,g),b=m?y:function(t){return function(){return g.apply(t,arguments)}},w=b,_=w({}.toString),k=w("".slice),x=function(t){return k(_(t),8,-1)},S=x,D=b,T=function(t){if("Function"===S(t))return D(t)},C="object"==typeof document&&document.all,O=void 0===C&&void 0!==C,E={all:C,IS_HTMLDDA:O},M=E,P=M.all,A=M.IS_HTMLDDA?function(t){return"function"==typeof t||t===P}:function(t){return"function"==typeof t},I={},N=!l((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),j=u,R=Function.prototype.call,F=j?R.bind(R):function(){return R.apply(R,arguments)},L={},Y={}.propertyIsEnumerable,z=Object.getOwnPropertyDescriptor,H=z&&!Y.call({1:2},1);L.f=H?function(t){var e=z(this,t);return!!e&&e.enumerable}:Y;var G,B,W=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},V=l,U=x,q=Object,X=b("".split),$=V((function(){return!q("z").propertyIsEnumerable(0)}))?function(t){return"String"===U(t)?X(t,""):q(t)}:q,K=function(t){return null==t},Q=K,Z=TypeError,J=function(t){if(Q(t))throw new Z("Can't call method on "+t);return t},tt=$,et=J,nt=function(t){return tt(et(t))},it=A,rt=E,ot=rt.all,st=rt.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:it(t)||t===ot}:function(t){return"object"==typeof t?null!==t:it(t)},at={},lt=at,ut=a,ct=A,ht=function(t){return ct(t)?t:void 0},dt=function(t,e){return arguments.length<2?ht(lt[t])||ht(ut[t]):lt[t]&<[t][e]||ut[t]&&ut[t][e]},pt=b({}.isPrototypeOf),ft="undefined"!=typeof navigator&&String(navigator.userAgent)||"",mt=a,vt=ft,gt=mt.process,yt=mt.Deno,bt=gt&>.versions||yt&&yt.version,wt=bt&&bt.v8;wt&&(B=(G=wt.split("."))[0]>0&&G[0]<4?1:+(G[0]+G[1])),!B&&vt&&(!(G=vt.match(/Edge\/(\d+)/))||G[1]>=74)&&(G=vt.match(/Chrome\/(\d+)/))&&(B=+G[1]);var _t=B,kt=_t,xt=l,St=a.String,Dt=!!Object.getOwnPropertySymbols&&!xt((function(){var t=Symbol("symbol detection");return!St(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&kt&&kt<41})),Tt=Dt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ct=dt,Ot=A,Et=pt,Mt=Object,Pt=Tt?function(t){return"symbol"==typeof t}:function(t){var e=Ct("Symbol");return Ot(e)&&Et(e.prototype,Mt(t))},At=String,It=function(t){try{return At(t)}catch(t){return"Object"}},Nt=A,jt=It,Rt=TypeError,Ft=function(t){if(Nt(t))return t;throw new Rt(jt(t)+" is not a function")},Lt=Ft,Yt=K,zt=function(t,e){var n=t[e];return Yt(n)?void 0:Lt(n)},Ht=F,Gt=A,Bt=st,Wt=TypeError,Vt=function(t,e){var n,i;if("string"===e&&Gt(n=t.toString)&&!Bt(i=Ht(n,t)))return i;if(Gt(n=t.valueOf)&&!Bt(i=Ht(n,t)))return i;if("string"!==e&&Gt(n=t.toString)&&!Bt(i=Ht(n,t)))return i;throw new Wt("Can't convert object to primitive value")},Ut={exports:{}},qt=!0,Xt=a,$t=Object.defineProperty,Kt=function(t,e){try{$t(Xt,t,{value:e,configurable:!0,writable:!0})}catch(n){Xt[t]=e}return e},Qt="__core-js_shared__",Zt=a[Qt]||Kt(Qt,{}),Jt=Zt;(Ut.exports=function(t,e){return Jt[t]||(Jt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.33.2",mode:"pure",copyright:"© 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 te=Ut.exports,ee=J,ne=Object,ie=function(t){return ne(ee(t))},re=ie,oe=b({}.hasOwnProperty),se=Object.hasOwn||function(t,e){return oe(re(t),e)},ae=b,le=0,ue=Math.random(),ce=ae(1..toString),he=function(t){return"Symbol("+(void 0===t?"":t)+")_"+ce(++le+ue,36)},de=te,pe=se,fe=he,me=Dt,ve=Tt,ge=a.Symbol,ye=de("wks"),be=ve?ge.for||ge:ge&&ge.withoutSetter||fe,we=function(t){return pe(ye,t)||(ye[t]=me&&pe(ge,t)?ge[t]:be("Symbol."+t)),ye[t]},_e=F,ke=st,xe=Pt,Se=zt,De=Vt,Te=TypeError,Ce=we("toPrimitive"),Oe=function(t,e){if(!ke(t)||xe(t))return t;var n,i=Se(t,Ce);if(i){if(void 0===e&&(e="default"),n=_e(i,t,e),!ke(n)||xe(n))return n;throw new Te("Can't convert object to primitive value")}return void 0===e&&(e="number"),De(t,e)},Ee=Pt,Me=function(t){var e=Oe(t,"string");return Ee(e)?e:e+""},Pe=st,Ae=a.document,Ie=Pe(Ae)&&Pe(Ae.createElement),Ne=function(t){return Ie?Ae.createElement(t):{}},je=l,Re=Ne,Fe=!N&&!je((function(){return 7!==Object.defineProperty(Re("div"),"a",{get:function(){return 7}}).a})),Le=N,Ye=F,ze=L,He=W,Ge=nt,Be=Me,We=se,Ve=Fe,Ue=Object.getOwnPropertyDescriptor;I.f=Le?Ue:function(t,e){if(t=Ge(t),e=Be(e),Ve)try{return Ue(t,e)}catch(t){}if(We(t,e))return He(!Ye(ze.f,t,e),t[e])};var qe=l,Xe=A,$e=/#|\.prototype\./,Ke=function(t,e){var n=Ze[Qe(t)];return n===tn||n!==Je&&(Xe(e)?qe(e):!!e)},Qe=Ke.normalize=function(t){return String(t).replace($e,".").toLowerCase()},Ze=Ke.data={},Je=Ke.NATIVE="N",tn=Ke.POLYFILL="P",en=Ke,nn=Ft,rn=u,on=T(T.bind),sn=function(t,e){return nn(t),void 0===e?t:rn?on(t,e):function(){return t.apply(e,arguments)}},an={},ln=l,un=N&&ln((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),cn=st,hn=String,dn=TypeError,pn=function(t){if(cn(t))return t;throw new dn(hn(t)+" is not an object")},fn=N,mn=Fe,vn=un,gn=pn,yn=Me,bn=TypeError,wn=Object.defineProperty,_n=Object.getOwnPropertyDescriptor,kn="enumerable",xn="configurable",Sn="writable";an.f=fn?vn?function(t,e,n){if(gn(t),e=yn(e),gn(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Sn in n&&!n[Sn]){var i=_n(t,e);i&&i[Sn]&&(t[e]=n.value,n={configurable:xn in n?n[xn]:i[xn],enumerable:kn in n?n[kn]:i[kn],writable:!1})}return wn(t,e,n)}:wn:function(t,e,n){if(gn(t),e=yn(e),gn(n),mn)try{return wn(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new bn("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var Dn=an,Tn=W,Cn=N?function(t,e,n){return Dn.f(t,e,Tn(1,n))}:function(t,e,n){return t[e]=n,t},On=a,En=f,Mn=T,Pn=A,An=I.f,In=en,Nn=at,jn=sn,Rn=Cn,Fn=se,Ln=function(t){var e=function(n,i,r){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,i)}return new t(n,i,r)}return En(t,this,arguments)};return e.prototype=t.prototype,e},Yn=function(t,e){var n,i,r,o,s,a,l,u,c,h=t.target,d=t.global,p=t.stat,f=t.proto,m=d?On:p?On[h]:(On[h]||{}).prototype,v=d?Nn:Nn[h]||Rn(Nn,h,{})[h],g=v.prototype;for(o in e)i=!(n=In(d?o:h+(p?".":"#")+o,t.forced))&&m&&Fn(m,o),a=v[o],i&&(l=t.dontCallGetSet?(c=An(m,o))&&c.value:m[o]),s=i&&l?l:e[o],i&&typeof a==typeof s||(u=t.bind&&i?jn(s,On):t.wrap&&i?Ln(s):f&&Pn(s)?Mn(s):s,(t.sham||s&&s.sham||a&&a.sham)&&Rn(u,"sham",!0),Rn(v,o,u),f&&(Fn(Nn,r=h+"Prototype")||Rn(Nn,r,{}),Rn(Nn[r],o,s),t.real&&g&&(n||!g[o])&&Rn(g,o,s)))},zn=Yn,Hn=N,Gn=an.f;zn({target:"Object",stat:!0,forced:Object.defineProperty!==Gn,sham:!Hn},{defineProperty:Gn});var Bn=at.Object,Wn=o.exports=function(t,e,n){return Bn.defineProperty(t,e,n)};Bn.defineProperty.sham&&(Wn.sham=!0);var Vn=o.exports,Un=Vn,qn=r(Un),Xn=x,$n=Array.isArray||function(t){return"Array"===Xn(t)},Kn=Math.ceil,Qn=Math.floor,Zn=Math.trunc||function(t){var e=+t;return(e>0?Qn:Kn)(e)},Jn=Zn,ti=function(t){var e=+t;return e!=e||0===e?0:Jn(e)},ei=ti,ni=Math.min,ii=function(t){return t>0?ni(ei(t),9007199254740991):0},ri=function(t){return ii(t.length)},oi=TypeError,si=9007199254740991,ai=function(t){if(t>si)throw oi("Maximum allowed index exceeded");return t},li=Me,ui=an,ci=W,hi=function(t,e,n){var i=li(e);i in t?ui.f(t,i,ci(0,n)):t[i]=n},di=we("toStringTag"),pi={};pi[di]="z";var fi="[object z]"===String(pi),mi=fi,vi=A,gi=x,yi=we("toStringTag"),bi=Object,wi="Arguments"===gi(function(){return arguments}()),_i=function(t,e){try{return t[e]}catch(t){}},ki=mi?gi:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=_i(e=bi(t),yi))?n:wi?gi(e):"Object"===(i=gi(e))&&vi(e.callee)?"Arguments":i},xi=A,Si=Zt,Di=b(Function.toString);xi(Si.inspectSource)||(Si.inspectSource=function(t){return Di(t)});var Ti=Si.inspectSource,Ci=b,Oi=l,Ei=A,Mi=ki,Pi=Ti,Ai=function(){},Ii=[],Ni=dt("Reflect","construct"),ji=/^\s*(?:class|function)\b/,Ri=Ci(ji.exec),Fi=!ji.test(Ai),Li=function(t){if(!Ei(t))return!1;try{return Ni(Ai,Ii,t),!0}catch(t){return!1}},Yi=function(t){if(!Ei(t))return!1;switch(Mi(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Fi||!!Ri(ji,Pi(t))}catch(t){return!0}};Yi.sham=!0;var zi=!Ni||Oi((function(){var t;return Li(Li.call)||!Li(Object)||!Li((function(){t=!0}))||t}))?Yi:Li,Hi=$n,Gi=zi,Bi=st,Wi=we("species"),Vi=Array,Ui=function(t){var e;return Hi(t)&&(e=t.constructor,(Gi(e)&&(e===Vi||Hi(e.prototype))||Bi(e)&&null===(e=e[Wi]))&&(e=void 0)),void 0===e?Vi:e},qi=function(t,e){return new(Ui(t))(0===e?0:e)},Xi=l,$i=_t,Ki=we("species"),Qi=function(t){return $i>=51||!Xi((function(){var e=[];return(e.constructor={})[Ki]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Zi=Yn,Ji=l,tr=$n,er=st,nr=ie,ir=ri,rr=ai,or=hi,sr=qi,ar=Qi,lr=_t,ur=we("isConcatSpreadable"),cr=lr>=51||!Ji((function(){var t=[];return t[ur]=!1,t.concat()[0]!==t})),hr=function(t){if(!er(t))return!1;var e=t[ur];return void 0!==e?!!e:tr(t)},dr=!cr||!ar("concat");Zi({target:"Array",proto:!0,arity:1,forced:dr},{concat:function(t){var e,n,i,r,o,s=nr(this),a=sr(s,0),l=0;for(e=-1,i=arguments.length;e<i;e++)if(hr(o=-1===e?s:arguments[e]))for(r=ir(o),rr(l+r),n=0;n<r;n++,l++)n in o&&or(a,l,o[n]);else rr(l+1),or(a,l++,o);return a.length=l,a}});var pr=ki,fr=String,mr=function(t){if("Symbol"===pr(t))throw new TypeError("Cannot convert a Symbol value to a string");return fr(t)},vr={},gr=ti,yr=Math.max,br=Math.min,wr=function(t,e){var n=gr(t);return n<0?yr(n+e,0):br(n,e)},_r=nt,kr=wr,xr=ri,Sr=function(t){return function(e,n,i){var r,o=_r(e),s=xr(o),a=kr(i,s);if(t&&n!=n){for(;s>a;)if((r=o[a++])!=r)return!0}else for(;s>a;a++)if((t||a in o)&&o[a]===n)return t||a||0;return!t&&-1}},Dr={includes:Sr(!0),indexOf:Sr(!1)},Tr={},Cr=b,Or=se,Er=nt,Mr=Dr.indexOf,Pr=Tr,Ar=Cr([].push),Ir=function(t,e){var n,i=Er(t),r=0,o=[];for(n in i)!Or(Pr,n)&&Or(i,n)&&Ar(o,n);for(;e.length>r;)Or(i,n=e[r++])&&(~Mr(o,n)||Ar(o,n));return o},Nr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],jr=Ir,Rr=Nr,Fr=Object.keys||function(t){return jr(t,Rr)},Lr=N,Yr=un,zr=an,Hr=pn,Gr=nt,Br=Fr;vr.f=Lr&&!Yr?Object.defineProperties:function(t,e){Hr(t);for(var n,i=Gr(e),r=Br(e),o=r.length,s=0;o>s;)zr.f(t,n=r[s++],i[n]);return t};var Wr,Vr=dt("document","documentElement"),Ur=he,qr=te("keys"),Xr=function(t){return qr[t]||(qr[t]=Ur(t))},$r=pn,Kr=vr,Qr=Nr,Zr=Tr,Jr=Vr,to=Ne,eo=">",no="<",io="prototype",ro="script",oo=Xr("IE_PROTO"),so=function(){},ao=function(t){return no+ro+eo+t+no+"/"+ro+eo},lo=function(t){t.write(ao("")),t.close();var e=t.parentWindow.Object;return t=null,e},uo=function(){var t,e=to("iframe"),n="java"+ro+":";return e.style.display="none",Jr.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(ao("document.F=Object")),t.close(),t.F},co=function(){try{Wr=new ActiveXObject("htmlfile")}catch(t){}co="undefined"!=typeof document?document.domain&&Wr?lo(Wr):uo():lo(Wr);for(var t=Qr.length;t--;)delete co[io][Qr[t]];return co()};Zr[oo]=!0;var ho=Object.create||function(t,e){var n;return null!==t?(so[io]=$r(t),n=new so,so[io]=null,n[oo]=t):n=co(),void 0===e?n:Kr.f(n,e)},po={},fo=Ir,mo=Nr.concat("length","prototype");po.f=Object.getOwnPropertyNames||function(t){return fo(t,mo)};var vo={},go=wr,yo=ri,bo=hi,wo=Array,_o=Math.max,ko=function(t,e,n){for(var i=yo(t),r=go(e,i),o=go(void 0===n?i:n,i),s=wo(_o(o-r,0)),a=0;r<o;r++,a++)bo(s,a,t[r]);return s.length=a,s},xo=x,So=nt,Do=po.f,To=ko,Co="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Oo=function(t){try{return Do(t)}catch(t){return To(Co)}};vo.f=function(t){return Co&&"Window"===xo(t)?Oo(t):Do(So(t))};var Eo={};Eo.f=Object.getOwnPropertySymbols;var Mo=Cn,Po=function(t,e,n,i){return i&&i.enumerable?t[e]=n:Mo(t,e,n),t},Ao=an,Io=function(t,e,n){return Ao.f(t,e,n)},No={},jo=we;No.f=jo;var Ro,Fo,Lo,Yo=at,zo=se,Ho=No,Go=an.f,Bo=function(t){var e=Yo.Symbol||(Yo.Symbol={});zo(e,t)||Go(e,t,{value:Ho.f(t)})},Wo=F,Vo=dt,Uo=we,qo=Po,Xo=function(){var t=Vo("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,i=Uo("toPrimitive");e&&!e[i]&&qo(e,i,(function(t){return Wo(n,this)}),{arity:1})},$o=ki,Ko=fi?{}.toString:function(){return"[object "+$o(this)+"]"},Qo=fi,Zo=an.f,Jo=Cn,ts=se,es=Ko,ns=we("toStringTag"),is=function(t,e,n,i){if(t){var r=n?t:t.prototype;ts(r,ns)||Zo(r,ns,{configurable:!0,value:e}),i&&!Qo&&Jo(r,"toString",es)}},rs=A,os=a.WeakMap,ss=rs(os)&&/native code/.test(String(os)),as=a,ls=st,us=Cn,cs=se,hs=Zt,ds=Xr,ps=Tr,fs="Object already initialized",ms=as.TypeError,vs=as.WeakMap,gs=function(t){return Lo(t)?Fo(t):Ro(t,{})},ys=function(t){return function(e){var n;if(!ls(e)||(n=Fo(e)).type!==t)throw new ms("Incompatible receiver, "+t+" required");return n}};if(ss||hs.state){var bs=hs.state||(hs.state=new vs);bs.get=bs.get,bs.has=bs.has,bs.set=bs.set,Ro=function(t,e){if(bs.has(t))throw new ms(fs);return e.facade=t,bs.set(t,e),e},Fo=function(t){return bs.get(t)||{}},Lo=function(t){return bs.has(t)}}else{var ws=ds("state");ps[ws]=!0,Ro=function(t,e){if(cs(t,ws))throw new ms(fs);return e.facade=t,us(t,ws,e),e},Fo=function(t){return cs(t,ws)?t[ws]:{}},Lo=function(t){return cs(t,ws)}}var _s={set:Ro,get:Fo,has:Lo,enforce:gs,getterFor:ys},ks=sn,xs=$,Ss=ie,Ds=ri,Ts=qi,Cs=b([].push),Os=function(t){var e=1===t,n=2===t,i=3===t,r=4===t,o=6===t,s=7===t,a=5===t||o;return function(l,u,c,h){for(var d,p,f=Ss(l),m=xs(f),v=ks(u,c),g=Ds(m),y=0,b=h||Ts,w=e?b(l,g):n||s?b(l,0):void 0;g>y;y++)if((a||y in m)&&(p=v(d=m[y],y,f),t))if(e)w[y]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return y;case 2:Cs(w,d)}else switch(t){case 4:return!1;case 7:Cs(w,d)}return o?-1:i||r?r:w}},Es={forEach:Os(0),map:Os(1),filter:Os(2),some:Os(3),every:Os(4),find:Os(5),findIndex:Os(6),filterReject:Os(7)},Ms=Yn,Ps=a,As=F,Is=b,Ns=N,js=Dt,Rs=l,Fs=se,Ls=pt,Ys=pn,zs=nt,Hs=Me,Gs=mr,Bs=W,Ws=ho,Vs=Fr,Us=po,qs=vo,Xs=Eo,$s=I,Ks=an,Qs=vr,Zs=L,Js=Po,ta=Io,ea=te,na=Xr,ia=Tr,ra=he,oa=we,sa=No,aa=Bo,la=Xo,ua=is,ca=_s,ha=Es.forEach,da=na("hidden"),pa="Symbol",fa="prototype",ma=ca.set,va=ca.getterFor(pa),ga=Object[fa],ya=Ps.Symbol,ba=ya&&ya[fa],wa=Ps.RangeError,_a=Ps.TypeError,ka=Ps.QObject,xa=$s.f,Sa=Ks.f,Da=qs.f,Ta=Zs.f,Ca=Is([].push),Oa=ea("symbols"),Ea=ea("op-symbols"),Ma=ea("wks"),Pa=!ka||!ka[fa]||!ka[fa].findChild,Aa=function(t,e,n){var i=xa(ga,e);i&&delete ga[e],Sa(t,e,n),i&&t!==ga&&Sa(ga,e,i)},Ia=Ns&&Rs((function(){return 7!==Ws(Sa({},"a",{get:function(){return Sa(this,"a",{value:7}).a}})).a}))?Aa:Sa,Na=function(t,e){var n=Oa[t]=Ws(ba);return ma(n,{type:pa,tag:t,description:e}),Ns||(n.description=e),n},ja=function(t,e,n){t===ga&&ja(Ea,e,n),Ys(t);var i=Hs(e);return Ys(n),Fs(Oa,i)?(n.enumerable?(Fs(t,da)&&t[da][i]&&(t[da][i]=!1),n=Ws(n,{enumerable:Bs(0,!1)})):(Fs(t,da)||Sa(t,da,Bs(1,{})),t[da][i]=!0),Ia(t,i,n)):Sa(t,i,n)},Ra=function(t,e){Ys(t);var n=zs(e),i=Vs(n).concat(Ha(n));return ha(i,(function(e){Ns&&!As(La,n,e)||ja(t,e,n[e])})),t},Fa=function(t,e){return void 0===e?Ws(t):Ra(Ws(t),e)},La=function(t){var e=Hs(t),n=As(Ta,this,e);return!(this===ga&&Fs(Oa,e)&&!Fs(Ea,e))&&(!(n||!Fs(this,e)||!Fs(Oa,e)||Fs(this,da)&&this[da][e])||n)},Ya=function(t,e){var n=zs(t),i=Hs(e);if(n!==ga||!Fs(Oa,i)||Fs(Ea,i)){var r=xa(n,i);return!r||!Fs(Oa,i)||Fs(n,da)&&n[da][i]||(r.enumerable=!0),r}},za=function(t){var e=Da(zs(t)),n=[];return ha(e,(function(t){Fs(Oa,t)||Fs(ia,t)||Ca(n,t)})),n},Ha=function(t){var e=t===ga,n=Da(e?Ea:zs(t)),i=[];return ha(n,(function(t){!Fs(Oa,t)||e&&!Fs(ga,t)||Ca(i,Oa[t])})),i};js||(ya=function(){if(Ls(ba,this))throw new _a("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?Gs(arguments[0]):void 0,e=ra(t),n=function(t){var i=void 0===this?Ps:this;i===ga&&As(n,Ea,t),Fs(i,da)&&Fs(i[da],e)&&(i[da][e]=!1);var r=Bs(1,t);try{Ia(i,e,r)}catch(t){if(!(t instanceof wa))throw t;Aa(i,e,r)}};return Ns&&Pa&&Ia(ga,e,{configurable:!0,set:n}),Na(e,t)},Js(ba=ya[fa],"toString",(function(){return va(this).tag})),Js(ya,"withoutSetter",(function(t){return Na(ra(t),t)})),Zs.f=La,Ks.f=ja,Qs.f=Ra,$s.f=Ya,Us.f=qs.f=za,Xs.f=Ha,sa.f=function(t){return Na(oa(t),t)},Ns&&ta(ba,"description",{configurable:!0,get:function(){return va(this).description}})),Ms({global:!0,constructor:!0,wrap:!0,forced:!js,sham:!js},{Symbol:ya}),ha(Vs(Ma),(function(t){aa(t)})),Ms({target:pa,stat:!0,forced:!js},{useSetter:function(){Pa=!0},useSimple:function(){Pa=!1}}),Ms({target:"Object",stat:!0,forced:!js,sham:!Ns},{create:Fa,defineProperty:ja,defineProperties:Ra,getOwnPropertyDescriptor:Ya}),Ms({target:"Object",stat:!0,forced:!js},{getOwnPropertyNames:za}),la(),ua(ya,pa),ia[da]=!0;var Ga=Dt&&!!Symbol.for&&!!Symbol.keyFor,Ba=Yn,Wa=dt,Va=se,Ua=mr,qa=te,Xa=Ga,$a=qa("string-to-symbol-registry"),Ka=qa("symbol-to-string-registry");Ba({target:"Symbol",stat:!0,forced:!Xa},{for:function(t){var e=Ua(t);if(Va($a,e))return $a[e];var n=Wa("Symbol")(e);return $a[e]=n,Ka[n]=e,n}});var Qa=Yn,Za=se,Ja=Pt,tl=It,el=Ga,nl=te("symbol-to-string-registry");Qa({target:"Symbol",stat:!0,forced:!el},{keyFor:function(t){if(!Ja(t))throw new TypeError(tl(t)+" is not a symbol");if(Za(nl,t))return nl[t]}});var il=b([].slice),rl=$n,ol=A,sl=x,al=mr,ll=b([].push),ul=Yn,cl=dt,hl=f,dl=F,pl=b,fl=l,ml=A,vl=Pt,gl=il,yl=function(t){if(ol(t))return t;if(rl(t)){for(var e=t.length,n=[],i=0;i<e;i++){var r=t[i];"string"==typeof r?ll(n,r):"number"!=typeof r&&"Number"!==sl(r)&&"String"!==sl(r)||ll(n,al(r))}var o=n.length,s=!0;return function(t,e){if(s)return s=!1,e;if(rl(this))return e;for(var i=0;i<o;i++)if(n[i]===t)return e}}},bl=Dt,wl=String,_l=cl("JSON","stringify"),kl=pl(/./.exec),xl=pl("".charAt),Sl=pl("".charCodeAt),Dl=pl("".replace),Tl=pl(1..toString),Cl=/[\uD800-\uDFFF]/g,Ol=/^[\uD800-\uDBFF]$/,El=/^[\uDC00-\uDFFF]$/,Ml=!bl||fl((function(){var t=cl("Symbol")("stringify detection");return"[null]"!==_l([t])||"{}"!==_l({a:t})||"{}"!==_l(Object(t))})),Pl=fl((function(){return'"\\udf06\\ud834"'!==_l("\udf06\ud834")||'"\\udead"'!==_l("\udead")})),Al=function(t,e){var n=gl(arguments),i=yl(e);if(ml(i)||void 0!==t&&!vl(t))return n[1]=function(t,e){if(ml(i)&&(e=dl(i,this,wl(t),e)),!vl(e))return e},hl(_l,null,n)},Il=function(t,e,n){var i=xl(n,e-1),r=xl(n,e+1);return kl(Ol,t)&&!kl(El,r)||kl(El,t)&&!kl(Ol,i)?"\\u"+Tl(Sl(t,0),16):t};_l&&ul({target:"JSON",stat:!0,arity:3,forced:Ml||Pl},{stringify:function(t,e,n){var i=gl(arguments),r=hl(Ml?Al:_l,null,i);return Pl&&"string"==typeof r?Dl(r,Cl,Il):r}});var Nl=Yn,jl=l,Rl=Eo,Fl=ie,Ll=!Dt||jl((function(){Rl.f(1)}));Nl({target:"Object",stat:!0,forced:Ll},{getOwnPropertySymbols:function(t){var e=Rl.f;return e?e(Fl(t)):[]}}),Bo("asyncIterator"),Bo("hasInstance"),Bo("isConcatSpreadable"),Bo("iterator"),Bo("match"),Bo("matchAll"),Bo("replace"),Bo("search"),Bo("species"),Bo("split");var Yl=Xo;Bo("toPrimitive"),Yl();var zl=dt,Hl=is;Bo("toStringTag"),Hl(zl("Symbol"),"Symbol"),Bo("unscopables"),is(a.JSON,"JSON",!0);var Gl,Bl,Wl,Vl=at.Symbol,Ul={},ql=N,Xl=se,$l=Function.prototype,Kl=ql&&Object.getOwnPropertyDescriptor,Ql=Xl($l,"name"),Zl=Ql&&"something"===function(){}.name,Jl=Ql&&(!ql||ql&&Kl($l,"name").configurable),tu={EXISTS:Ql,PROPER:Zl,CONFIGURABLE:Jl},eu=!l((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),nu=se,iu=A,ru=ie,ou=eu,su=Xr("IE_PROTO"),au=Object,lu=au.prototype,uu=ou?au.getPrototypeOf:function(t){var e=ru(t);if(nu(e,su))return e[su];var n=e.constructor;return iu(n)&&e instanceof n?n.prototype:e instanceof au?lu:null},cu=l,hu=A,du=st,pu=ho,fu=uu,mu=Po,vu=we("iterator"),gu=!1;[].keys&&("next"in(Wl=[].keys())?(Bl=fu(fu(Wl)))!==Object.prototype&&(Gl=Bl):gu=!0),Gl=!du(Gl)||cu((function(){var t={};return Gl[vu].call(t)!==t}))?{}:pu(Gl),hu(Gl[vu])||mu(Gl,vu,(function(){return this}));var yu={IteratorPrototype:Gl,BUGGY_SAFARI_ITERATORS:gu},bu=yu.IteratorPrototype,wu=ho,_u=W,ku=is,xu=Ul,Su=function(){return this},Du=function(t,e,n,i){var r=e+" Iterator";return t.prototype=wu(bu,{next:_u(+!i,n)}),ku(t,r,!1,!0),xu[r]=Su,t},Tu=b,Cu=Ft,Ou=A,Eu=String,Mu=TypeError,Pu=function(t,e,n){try{return Tu(Cu(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}},Au=pn,Iu=function(t){if("object"==typeof t||Ou(t))return t;throw new Mu("Can't set "+Eu(t)+" as a prototype")},Nu=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Pu(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array}catch(t){}return function(n,i){return Au(n),Iu(i),e?t(n,i):n.__proto__=i,n}}():void 0),ju=Yn,Ru=F,Fu=Du,Lu=uu,Yu=is,zu=Po,Hu=we,Gu=Ul,Bu=yu,Wu=tu.PROPER,Vu=Bu.BUGGY_SAFARI_ITERATORS,Uu=Hu("iterator"),qu="keys",Xu="values",$u="entries",Ku=function(){return this},Qu=function(t,e,n,i,r,o,s){Fu(n,e,i);var a,l,u,c=function(t){if(t===r&&m)return m;if(!Vu&&t&&t in p)return p[t];switch(t){case qu:case Xu:case $u:return function(){return new n(this,t)}}return function(){return new n(this)}},h=e+" Iterator",d=!1,p=t.prototype,f=p[Uu]||p["@@iterator"]||r&&p[r],m=!Vu&&f||c(r),v="Array"===e&&p.entries||f;if(v&&(a=Lu(v.call(new t)))!==Object.prototype&&a.next&&(Yu(a,h,!0,!0),Gu[h]=Ku),Wu&&r===Xu&&f&&f.name!==Xu&&(d=!0,m=function(){return Ru(f,this)}),r)if(l={values:c(Xu),keys:o?m:c(qu),entries:c($u)},s)for(u in l)(Vu||d||!(u in p))&&zu(p,u,l[u]);else ju({target:e,proto:!0,forced:Vu||d},l);return s&&p[Uu]!==m&&zu(p,Uu,m,{name:r}),Gu[e]=m,l},Zu=function(t,e){return{value:t,done:e}},Ju=nt,tc=Ul,ec=_s;an.f;var nc=Qu,ic=Zu,rc="Array Iterator",oc=ec.set,sc=ec.getterFor(rc);nc(Array,"Array",(function(t,e){oc(this,{type:rc,target:Ju(t),index:0,kind:e})}),(function(){var t=sc(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=void 0,ic(void 0,!0);switch(t.kind){case"keys":return ic(n,!1);case"values":return ic(e[n],!1)}return ic([n,e[n]],!1)}),"values"),tc.Arguments=tc.Array;var ac={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},lc=a,uc=ki,cc=Cn,hc=Ul,dc=we("toStringTag");for(var pc in ac){var fc=lc[pc],mc=fc&&fc.prototype;mc&&uc(mc)!==dc&&cc(mc,dc,pc),hc[pc]=hc.Array}var vc=Vl,gc=we,yc=an.f,bc=gc("metadata"),wc=Function.prototype;void 0===wc[bc]&&yc(wc,bc,{value:null}),Bo("asyncDispose"),Bo("dispose"),Bo("metadata");var _c=vc,kc=b,xc=dt("Symbol"),Sc=xc.keyFor,Dc=kc(xc.prototype.valueOf),Tc=xc.isRegisteredSymbol||function(t){try{return void 0!==Sc(Dc(t))}catch(t){return!1}};Yn({target:"Symbol",stat:!0},{isRegisteredSymbol:Tc});for(var Cc=te,Oc=dt,Ec=b,Mc=Pt,Pc=we,Ac=Oc("Symbol"),Ic=Ac.isWellKnownSymbol,Nc=Oc("Object","getOwnPropertyNames"),jc=Ec(Ac.prototype.valueOf),Rc=Cc("wks"),Fc=0,Lc=Nc(Ac),Yc=Lc.length;Fc<Yc;Fc++)try{var zc=Lc[Fc];Mc(Ac[zc])&&Pc(zc)}catch(t){}var Hc=function(t){if(Ic&&Ic(t))return!0;try{for(var e=jc(t),n=0,i=Nc(Rc),r=i.length;n<r;n++)if(Rc[i[n]]==e)return!0}catch(t){}return!1};Yn({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:Hc}),Bo("matcher"),Bo("observable"),Yn({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:Tc}),Yn({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:Hc}),Bo("metadataKey"),Bo("patternMatch"),Bo("replaceAll");var Gc=_c,Bc=r(Gc),Wc=b,Vc=ti,Uc=mr,qc=J,Xc=Wc("".charAt),$c=Wc("".charCodeAt),Kc=Wc("".slice),Qc=function(t){return function(e,n){var i,r,o=Uc(qc(e)),s=Vc(n),a=o.length;return s<0||s>=a?t?"":void 0:(i=$c(o,s))<55296||i>56319||s+1===a||(r=$c(o,s+1))<56320||r>57343?t?Xc(o,s):i:t?Kc(o,s,s+2):r-56320+(i-55296<<10)+65536}},Zc=(Qc(!1),Qc(!0)),Jc=mr,th=_s,eh=Qu,nh=Zu,ih="String Iterator",rh=th.set,oh=th.getterFor(ih);eh(String,"String",(function(t){rh(this,{type:ih,string:Jc(t),index:0})}),(function(){var t,e=oh(this),n=e.string,i=e.index;return i>=n.length?nh(void 0,!0):(t=Zc(n,i),e.index+=t.length,nh(t,!1))}));var sh=No.f("iterator"),ah=sh,lh=r(ah);function uh(t){return uh="function"==typeof Bc&&"symbol"==typeof lh?function(t){return typeof t}:function(t){return t&&"function"==typeof Bc&&t.constructor===Bc&&t!==Bc.prototype?"symbol":typeof t},uh(t)}var ch=r(No.f("toPrimitive"));function hh(t,e){if("object"!==uh(t)||null===t)return t;var n=t[ch];if(void 0!==n){var i=n.call(t,e||"default");if("object"!==uh(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function dh(t){var e=hh(t,"string");return"symbol"===uh(e)?e:String(e)}function ph(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),qn(t,dh(i.key),i)}}function fh(t,e,n){return e&&ph(t.prototype,e),n&&ph(t,n),qn(t,"prototype",{writable:!1}),t}function mh(t,e,n){return(e=dh(e))in t?qn(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var vh=b,gh=Ft,yh=st,bh=se,wh=il,_h=u,kh=Function,xh=vh([].concat),Sh=vh([].join),Dh={},Th=function(t,e,n){if(!bh(Dh,e)){for(var i=[],r=0;r<e;r++)i[r]="a["+r+"]";Dh[e]=kh("C,a","return new C("+Sh(i,",")+")")}return Dh[e](t,n)},Ch=_h?kh.bind:function(t){var e=gh(this),n=e.prototype,i=wh(arguments,1),r=function(){var n=xh(i,wh(arguments));return this instanceof r?Th(e,n.length,n):e.apply(t,n)};return yh(n)&&(r.prototype=n),r},Oh=Ch;Yn({target:"Function",proto:!0,forced:Function.bind!==Oh},{bind:Oh});var Eh=a,Mh=at,Ph=function(t,e){var n=Mh[t+"Prototype"],i=n&&n[e];if(i)return i;var r=Eh[t],o=r&&r.prototype;return o&&o[e]},Ah=Ph("Function","bind"),Ih=pt,Nh=Ah,jh=Function.prototype,Rh=function(t){var e=t.bind;return t===jh||Ih(jh,t)&&e===jh.bind?Nh:e},Fh=r(Rh),Lh=Ft,Yh=ie,zh=$,Hh=ri,Gh=TypeError,Bh=function(t){return function(e,n,i,r){Lh(n);var o=Yh(e),s=zh(o),a=Hh(o),l=t?a-1:0,u=t?-1:1;if(i<2)for(;;){if(l in s){r=s[l],l+=u;break}if(l+=u,t?l<0:a<=l)throw new Gh("Reduce of empty array with no initial value")}for(;t?l>=0:a>l;l+=u)l in s&&(r=n(r,s[l],l,o));return r}},Wh={left:Bh(!1),right:Bh(!0)},Vh=l,Uh=function(t,e){var n=[][t];return!!n&&Vh((function(){n.call(null,e||function(){return 1},1)}))},qh="process"===x(a.process),Xh=Yn,$h=Wh.left,Kh=Uh,Qh=_t,Zh=!qh&&Qh>79&&Qh<83||!Kh("reduce");Xh({target:"Array",proto:!0,forced:Zh},{reduce:function(t){var e=arguments.length;return $h(this,t,e,e>1?arguments[1]:void 0)}});var Jh=Ph("Array","reduce"),td=pt,ed=Jh,nd=Array.prototype,id=r((function(t){var e=t.reduce;return t===nd||td(nd,t)&&e===nd.reduce?ed:e})),rd=Yn,od=Es.filter,sd=Qi("filter");rd({target:"Array",proto:!0,forced:!sd},{filter:function(t){return od(this,t,arguments.length>1?arguments[1]:void 0)}});var ad=Ph("Array","filter"),ld=pt,ud=ad,cd=Array.prototype,hd=r((function(t){var e=t.filter;return t===cd||ld(cd,t)&&e===cd.filter?ud:e})),dd=Yn,pd=Es.map,fd=Qi("map");dd({target:"Array",proto:!0,forced:!fd},{map:function(t){return pd(this,t,arguments.length>1?arguments[1]:void 0)}});var md=Ph("Array","map"),vd=pt,gd=md,yd=Array.prototype,bd=r((function(t){var e=t.map;return t===yd||vd(yd,t)&&e===yd.map?gd:e})),wd=$n,_d=ri,kd=ai,xd=sn,Sd=function(t,e,n,i,r,o,s,a){for(var l,u,c=r,h=0,d=!!s&&xd(s,a);h<i;)h in n&&(l=d?d(n[h],h,e):n[h],o>0&&wd(l)?(u=_d(l),c=Sd(t,e,l,u,c,o-1)-1):(kd(c+1),t[c]=l),c++),h++;return c},Dd=Sd,Td=Ft,Cd=ie,Od=ri,Ed=qi;Yn({target:"Array",proto:!0},{flatMap:function(t){var e,n=Cd(this),i=Od(n);return Td(t),(e=Ed(n,0)).length=Dd(e,n,n,i,0,1,t,arguments.length>1?arguments[1]:void 0),e}});var Md=Ph("Array","flatMap"),Pd=pt,Ad=Md,Id=Array.prototype,Nd=r((function(t){var e=t.flatMap;return t===Id||Pd(Id,t)&&e===Id.flatMap?Ad:e}));function jd(t){return new Fd(t)}var Rd=function(){function t(e,i,r){var o,s,a;n(this,t),mh(this,"_listeners",{add:Fh(o=this._add).call(o,this),remove:Fh(s=this._remove).call(s,this),update:Fh(a=this._update).call(a,this)}),this._source=e,this._transformers=i,this._target=r}return fh(t,[{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(t){var e;return id(e=this._transformers).call(e,(function(t,e){return e(t)}),t)}},{key:"_add",value:function(t,e){null!=e&&this._target.add(this._transformItems(this._source.get(e.items)))}},{key:"_update",value:function(t,e){null!=e&&this._target.update(this._transformItems(this._source.get(e.items)))}},{key:"_remove",value:function(t,e){null!=e&&this._target.remove(this._transformItems(e.oldData))}}]),t}(),Fd=function(){function t(e){n(this,t),mh(this,"_transformers",[]),this._source=e}return fh(t,[{key:"filter",value:function(t){return this._transformers.push((function(e){return hd(e).call(e,t)})),this}},{key:"map",value:function(t){return this._transformers.push((function(e){return bd(e).call(e,t)})),this}},{key:"flatMap",value:function(t){return this._transformers.push((function(e){return Nd(e).call(e,t)})),this}},{key:"to",value:function(t){return new Rd(this._source,this._transformers,t)}}]),t}(),Ld=F,Yd=pn,zd=zt,Hd=function(t,e,n){var i,r;Yd(t);try{if(!(i=zd(t,"return"))){if("throw"===e)throw n;return n}i=Ld(i,t)}catch(t){r=!0,i=t}if("throw"===e)throw n;if(r)throw i;return Yd(i),n},Gd=pn,Bd=Hd,Wd=function(t,e,n,i){try{return i?e(Gd(n)[0],n[1]):e(n)}catch(e){Bd(t,"throw",e)}},Vd=Ul,Ud=we("iterator"),qd=Array.prototype,Xd=function(t){return void 0!==t&&(Vd.Array===t||qd[Ud]===t)},$d=ki,Kd=zt,Qd=K,Zd=Ul,Jd=we("iterator"),tp=function(t){if(!Qd(t))return Kd(t,Jd)||Kd(t,"@@iterator")||Zd[$d(t)]},ep=F,np=Ft,ip=pn,rp=It,op=tp,sp=TypeError,ap=function(t,e){var n=arguments.length<2?op(t):e;if(np(n))return ip(ep(n,t));throw new sp(rp(t)+" is not iterable")},lp=sn,up=F,cp=ie,hp=Wd,dp=Xd,pp=zi,fp=ri,mp=hi,vp=ap,gp=tp,yp=Array,bp=function(t){var e=cp(t),n=pp(this),i=arguments.length,r=i>1?arguments[1]:void 0,o=void 0!==r;o&&(r=lp(r,i>2?arguments[2]:void 0));var s,a,l,u,c,h,d=gp(e),p=0;if(!d||this===yp&&dp(d))for(s=fp(e),a=n?new this(s):yp(s);s>p;p++)h=o?r(e[p],p):e[p],mp(a,p,h);else for(c=(u=vp(e,d)).next,a=n?new this:[];!(l=up(c,u)).done;p++)h=o?hp(u,r,[l.value,p],!0):l.value,mp(a,p,h);return a.length=p,a},wp=we("iterator"),_p=!1;try{var kp=0,xp={next:function(){return{done:!!kp++}},return:function(){_p=!0}};xp[wp]=function(){return this},Array.from(xp,(function(){throw 2}))}catch(t){}var Sp=function(t,e){try{if(!e&&!_p)return!1}catch(t){return!1}var n=!1;try{var i={};i[wp]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n},Dp=Yn,Tp=bp,Cp=!Sp((function(t){Array.from(t)}));Dp({target:"Array",stat:!0,forced:Cp},{from:Tp});var Op=at.Array.from,Ep=r(Op),Mp=tp,Pp=r(Mp),Ap=r(Mp);Yn({target:"Array",stat:!0},{isArray:$n});var Ip=at.Array.isArray,Np=r(Ip);function jp(t){if(Np(t))return t}var Rp=N,Fp=$n,Lp=TypeError,Yp=Object.getOwnPropertyDescriptor,zp=Rp&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}()?function(t,e){if(Fp(t)&&!Yp(t,"length").writable)throw new Lp("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},Hp=Yn,Gp=ie,Bp=ri,Wp=zp,Vp=ai,Up=l((function(){return 4294967297!==[].push.call({length:4294967296},1)})),qp=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},Xp=Up||!qp();Hp({target:"Array",proto:!0,arity:1,forced:Xp},{push:function(t){var e=Gp(this),n=Bp(e),i=arguments.length;Vp(n+i);for(var r=0;r<i;r++)e[n]=arguments[r],n++;return Wp(e,n),n}});var $p=Ph("Array","push"),Kp=pt,Qp=$p,Zp=Array.prototype,Jp=function(t){var e=t.push;return t===Zp||Kp(Zp,t)&&e===Zp.push?Qp:e},tf=r(Jp);function ef(t,e){var n=null==t?null:void 0!==Bc&&Pp(t)||t["@@iterator"];if(null!=n){var i,r,o,s,a=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(tf(a).call(a,i.value),a.length!==e);l=!0);}catch(t){u=!0,r=t}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw r}}return a}}var nf=Yn,rf=$n,of=zi,sf=st,af=wr,lf=ri,uf=nt,cf=hi,hf=we,df=il,pf=Qi("slice"),ff=hf("species"),mf=Array,vf=Math.max;nf({target:"Array",proto:!0,forced:!pf},{slice:function(t,e){var n,i,r,o=uf(this),s=lf(o),a=af(t,s),l=af(void 0===e?s:e,s);if(rf(o)&&(n=o.constructor,(of(n)&&(n===mf||rf(n.prototype))||sf(n)&&null===(n=n[ff]))&&(n=void 0),n===mf||void 0===n))return df(o,a,l);for(i=new(void 0===n?mf:n)(vf(l-a,0)),r=0;a<l;a++,r++)a in o&&cf(i,r,o[a]);return i.length=r,i}});var gf=Ph("Array","slice"),yf=pt,bf=gf,wf=Array.prototype,_f=function(t){var e=t.slice;return t===wf||yf(wf,t)&&e===wf.slice?bf:e},kf=_f,xf=r(kf),Sf=r(Op);function Df(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Tf(t,e){var n;if(t){if("string"==typeof t)return Df(t,e);var i=xf(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Sf(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Df(t,e):void 0}}function Cf(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Of(t,e){return jp(t)||ef(t,e)||Tf(t,e)||Cf()}function Ef(t){if(Np(t))return Df(t)}function Mf(t){if(void 0!==Bc&&null!=Pp(t)||null!=t["@@iterator"])return Sf(t)}function Pf(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Af(t){return Ef(t)||Mf(t)||Tf(t)||Pf()}var If=r(vc),Nf=Ph("Array","concat"),jf=pt,Rf=Nf,Ff=Array.prototype,Lf=r((function(t){var e=t.concat;return t===Ff||jf(Ff,t)&&e===Ff.concat?Rf:e})),Yf=r(_f),zf=dt,Hf=po,Gf=Eo,Bf=pn,Wf=b([].concat),Vf=zf("Reflect","ownKeys")||function(t){var e=Hf.f(Bf(t)),n=Gf.f;return n?Wf(e,n(t)):e};Yn({target:"Reflect",stat:!0},{ownKeys:Vf});var Uf=r(at.Reflect.ownKeys),qf=r(Ip),Xf=Yn,$f=ie,Kf=Fr,Qf=l((function(){Kf(1)}));Xf({target:"Object",stat:!0,forced:Qf},{keys:function(t){return Kf($f(t))}});var Zf=r(at.Object.keys),Jf=Es.forEach,tm=Uh("forEach")?[].forEach:function(t){return Jf(this,t,arguments.length>1?arguments[1]:void 0)};Yn({target:"Array",proto:!0,forced:[].forEach!==tm},{forEach:tm});var em=Ph("Array","forEach"),nm=ki,im=se,rm=pt,om=em,sm=Array.prototype,am={DOMTokenList:!0,NodeList:!0},lm=function(t){var e=t.forEach;return t===sm||rm(sm,t)&&e===sm.forEach||im(am,nm(t))?om:e},um=r(lm),cm=Yn,hm=$n,dm=b([].reverse),pm=[1,2];cm({target:"Array",proto:!0,forced:String(pm)===String(pm.reverse())},{reverse:function(){return hm(this)&&(this.length=this.length),dm(this)}});var fm=Ph("Array","reverse"),mm=pt,vm=fm,gm=Array.prototype,ym=function(t){var e=t.reverse;return t===gm||mm(gm,t)&&e===gm.reverse?vm:e},bm=r(ym),wm=It,_m=TypeError,km=function(t,e){if(!delete t[e])throw new _m("Cannot delete property "+wm(e)+" of "+wm(t))},xm=Yn,Sm=ie,Dm=wr,Tm=ti,Cm=ri,Om=zp,Em=ai,Mm=qi,Pm=hi,Am=km,Im=Qi("splice"),Nm=Math.max,jm=Math.min;xm({target:"Array",proto:!0,forced:!Im},{splice:function(t,e){var n,i,r,o,s,a,l=Sm(this),u=Cm(l),c=Dm(t,u),h=arguments.length;for(0===h?n=i=0:1===h?(n=0,i=u-c):(n=h-2,i=jm(Nm(Tm(e),0),u-c)),Em(u+n-i),r=Mm(l,i),o=0;o<i;o++)(s=c+o)in l&&Pm(r,o,l[s]);if(r.length=i,n<i){for(o=c;o<u-i;o++)a=o+n,(s=o+i)in l?l[a]=l[s]:Am(l,a);for(o=u;o>u-i+n;o--)Am(l,o-1)}else if(n>i)for(o=u-i;o>c;o--)a=o+n-1,(s=o+i-1)in l?l[a]=l[s]:Am(l,a);for(o=0;o<n;o++)l[o+c]=arguments[o+2];return Om(l,u-i+n),r}});var Rm=Ph("Array","splice"),Fm=pt,Lm=Rm,Ym=Array.prototype,zm=r((function(t){var e=t.splice;return t===Ym||Fm(Ym,t)&&e===Ym.splice?Lm:e})),Hm=N,Gm=b,Bm=F,Wm=l,Vm=Fr,Um=Eo,qm=L,Xm=ie,$m=$,Km=Object.assign,Qm=Object.defineProperty,Zm=Gm([].concat),Jm=!Km||Wm((function(){if(Hm&&1!==Km({b:1},Km(Qm({},"a",{enumerable:!0,get:function(){Qm(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol("assign detection"),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach((function(t){e[t]=t})),7!==Km({},t)[n]||Vm(Km({},e)).join("")!==i}))?function(t,e){for(var n=Xm(t),i=arguments.length,r=1,o=Um.f,s=qm.f;i>r;)for(var a,l=$m(arguments[r++]),u=o?Zm(Vm(l),o(l)):Vm(l),c=u.length,h=0;c>h;)a=u[h++],Hm&&!Bm(s,l,a)||(n[a]=l[a]);return n}:Km,tv=Jm;Yn({target:"Object",stat:!0,arity:2,forced:Object.assign!==tv},{assign:tv});var ev=r(at.Object.assign),nv=Yn,iv=ie,rv=uu,ov=eu,sv=l((function(){rv(1)}));nv({target:"Object",stat:!0,forced:sv,sham:!ov},{getPrototypeOf:function(t){return rv(iv(t))}});var av=at.Object.getPrototypeOf;Yn({target:"Object",stat:!0,sham:!N},{create:ho});var lv=at.Object,uv=function(t,e){return lv.create(t,e)},cv=r(uv),hv=at,dv=f;hv.JSON||(hv.JSON={stringify:JSON.stringify});var pv=function(t,e,n){return dv(hv.JSON.stringify,null,arguments)},fv=r(pv),mv="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,vv=TypeError,gv=function(t,e){if(t<e)throw new vv("Not enough arguments");return t},yv=a,bv=f,wv=A,_v=mv,kv=ft,xv=il,Sv=gv,Dv=yv.Function,Tv=/MSIE .\./.test(kv)||_v&&function(){var t=yv.Bun.version.split(".");return t.length<3||"0"===t[0]&&(t[1]<3||"3"===t[1]&&"0"===t[2])}(),Cv=function(t,e){var n=e?2:1;return Tv?function(i,r){var o=Sv(arguments.length,1)>n,s=wv(i)?i:Dv(i),a=o?xv(arguments,n):[],l=o?function(){bv(s,this,a)}:s;return e?t(l,r):t(l)}:t},Ov=Yn,Ev=a,Mv=Cv(Ev.setInterval,!0);Ov({global:!0,bind:!0,forced:Ev.setInterval!==Mv},{setInterval:Mv});var Pv=Yn,Av=a,Iv=Cv(Av.setTimeout,!0);Pv({global:!0,bind:!0,forced:Av.setTimeout!==Iv},{setTimeout:Iv});var Nv=r(at.setTimeout),jv={exports:{}};!function(t){function e(t){if(t)return n(t);this._callbacks=new Map}function n(t){return Object.assign(t,e.prototype),t._callbacks=new Map,t}e.prototype.on=function(t,e){const n=this._callbacks.get(t)??[];return n.push(e),this._callbacks.set(t,n),this},e.prototype.once=function(t,e){const n=(...i)=>{this.off(t,n),e.apply(this,i)};return n.fn=e,this.on(t,n),this},e.prototype.off=function(t,e){if(void 0===t&&void 0===e)return this._callbacks.clear(),this;if(void 0===e)return this._callbacks.delete(t),this;const n=this._callbacks.get(t);if(n){for(const[t,i]of n.entries())if(i===e||i.fn===e){n.splice(t,1);break}0===n.length?this._callbacks.delete(t):this._callbacks.set(t,n)}return this},e.prototype.emit=function(t,...e){const n=this._callbacks.get(t);if(n){const t=[...n];for(const n of t)n.apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks.get(t)??[]},e.prototype.listenerCount=function(t){if(t)return this.listeners(t).length;let e=0;for(const t of this._callbacks.values())e+=t.length;return e},e.prototype.hasListeners=function(t){return this.listenerCount(t)>0},e.prototype.addEventListener=e.prototype.on,e.prototype.removeListener=e.prototype.off,e.prototype.removeEventListener=e.prototype.off,e.prototype.removeAllListeners=e.prototype.off,t.exports=e}(jv);var Rv,Fv=r(jv.exports);
|
||
/*! 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 */
|
||
function Lv(){return Lv=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Lv.apply(this,arguments)}function Yv(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function zv(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}Rv="function"!=typeof Object.assign?function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var r in i)i.hasOwnProperty(r)&&(e[r]=i[r])}return e}:Object.assign;var Hv,Gv=Rv,Bv=["","webkit","Moz","MS","ms","o"],Wv="undefined"==typeof document?{style:{}}:document.createElement("div"),Vv="function",Uv=Math.round,qv=Math.abs,Xv=Date.now;function $v(t,e){for(var n,i,r=e[0].toUpperCase()+e.slice(1),o=0;o<Bv.length;){if((i=(n=Bv[o])?n+r:e)in t)return i;o++}}Hv="undefined"==typeof window?{}:window;var Kv=$v(Wv.style,"touchAction"),Qv=void 0!==Kv;function Zv(){if(!Qv)return!1;var t={},e=Hv.CSS&&Hv.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){return t[n]=!e||Hv.CSS.supports("touch-action",n)})),t}var Jv="compute",tg="auto",eg="manipulation",ng="none",ig="pan-x",rg="pan-y",og=Zv(),sg=/mobile|tablet|ip(ad|hone|od)|android/i,ag="ontouchstart"in Hv,lg=void 0!==$v(Hv,"PointerEvent"),ug=ag&&sg.test(navigator.userAgent),cg="touch",hg="pen",dg="mouse",pg="kinect",fg=25,mg=1,vg=2,gg=4,yg=8,bg=1,wg=2,_g=4,kg=8,xg=16,Sg=wg|_g,Dg=kg|xg,Tg=Sg|Dg,Cg=["x","y"],Og=["clientX","clientY"];function Eg(t,e,n){var i;if(t)if(t.forEach)t.forEach(e,n);else if(void 0!==t.length)for(i=0;i<t.length;)e.call(n,t[i],i,t),i++;else for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t)}function Mg(t,e){return typeof t===Vv?t.apply(e&&e[0]||void 0,e):t}function Pg(t,e){return t.indexOf(e)>-1}function Ag(t){if(Pg(t,ng))return ng;var e=Pg(t,ig),n=Pg(t,rg);return e&&n?ng:e||n?e?ig:rg:Pg(t,eg)?eg:tg}var Ig=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){t===Jv&&(t=this.compute()),Qv&&this.manager.element.style&&og[t]&&(this.manager.element.style[Kv]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return Eg(this.manager.recognizers,(function(e){Mg(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),Ag(t.join(" "))},e.preventDefaults=function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var i=this.actions,r=Pg(i,ng)&&!og[ng],o=Pg(i,rg)&&!og[rg],s=Pg(i,ig)&&!og[ig];if(r){var a=1===t.pointers.length,l=t.distance<2,u=t.deltaTime<250;if(a&&l&&u)return}if(!s||!o)return r||o&&n&Sg||s&&n&Dg?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function Ng(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function jg(t){var e=t.length;if(1===e)return{x:Uv(t[0].clientX),y:Uv(t[0].clientY)};for(var n=0,i=0,r=0;r<e;)n+=t[r].clientX,i+=t[r].clientY,r++;return{x:Uv(n/e),y:Uv(i/e)}}function Rg(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:Uv(t.pointers[n].clientX),clientY:Uv(t.pointers[n].clientY)},n++;return{timeStamp:Xv(),pointers:e,center:jg(e),deltaX:t.deltaX,deltaY:t.deltaY}}function Fg(t,e,n){n||(n=Cg);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return Math.sqrt(i*i+r*r)}function Lg(t,e,n){n||(n=Cg);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return 180*Math.atan2(r,i)/Math.PI}function Yg(t,e){return t===e?bg:qv(t)>=qv(e)?t<0?wg:_g:e<0?kg:xg}function zg(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},o=t.prevInput||{};e.eventType!==mg&&o.eventType!==gg||(r=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=r.x+(n.x-i.x),e.deltaY=r.y+(n.y-i.y)}function Hg(t,e,n){return{x:e/t||0,y:n/t||0}}function Gg(t,e){return Fg(e[0],e[1],Og)/Fg(t[0],t[1],Og)}function Bg(t,e){return Lg(e[1],e[0],Og)+Lg(t[1],t[0],Og)}function Wg(t,e){var n,i,r,o,s=t.lastInterval||e,a=e.timeStamp-s.timeStamp;if(e.eventType!==yg&&(a>fg||void 0===s.velocity)){var l=e.deltaX-s.deltaX,u=e.deltaY-s.deltaY,c=Hg(a,l,u);i=c.x,r=c.y,n=qv(c.x)>qv(c.y)?c.x:c.y,o=Yg(l,u),t.lastInterval=e}else n=s.velocity,i=s.velocityX,r=s.velocityY,o=s.direction;e.velocity=n,e.velocityX=i,e.velocityY=r,e.direction=o}function Vg(t,e){var n=t.session,i=e.pointers,r=i.length;n.firstInput||(n.firstInput=Rg(e)),r>1&&!n.firstMultiple?n.firstMultiple=Rg(e):1===r&&(n.firstMultiple=!1);var o=n.firstInput,s=n.firstMultiple,a=s?s.center:o.center,l=e.center=jg(i);e.timeStamp=Xv(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=Lg(a,l),e.distance=Fg(a,l),zg(n,e),e.offsetDirection=Yg(e.deltaX,e.deltaY);var u=Hg(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=u.x,e.overallVelocityY=u.y,e.overallVelocity=qv(u.x)>qv(u.y)?u.x:u.y,e.scale=s?Gg(s.pointers,i):1,e.rotation=s?Bg(s.pointers,i):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,Wg(n,e);var c,h=t.element,d=e.srcEvent;Ng(c=d.composedPath?d.composedPath()[0]:d.path?d.path[0]:d.target,h)&&(h=c),e.target=h}function Ug(t,e,n){var i=n.pointers.length,r=n.changedPointers.length,o=e&mg&&i-r==0,s=e&(gg|yg)&&i-r==0;n.isFirst=!!o,n.isFinal=!!s,o&&(t.session={}),n.eventType=e,Vg(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function qg(t){return t.trim().split(/\s+/g)}function Xg(t,e,n){Eg(qg(e),(function(e){t.addEventListener(e,n,!1)}))}function $g(t,e,n){Eg(qg(e),(function(e){t.removeEventListener(e,n,!1)}))}function Kg(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var Qg=function(){function t(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){Mg(t.options.enable,[t])&&n.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&Xg(this.element,this.evEl,this.domHandler),this.evTarget&&Xg(this.target,this.evTarget,this.domHandler),this.evWin&&Xg(Kg(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&$g(this.element,this.evEl,this.domHandler),this.evTarget&&$g(this.target,this.evTarget,this.domHandler),this.evWin&&$g(Kg(this.element),this.evWin,this.domHandler)},t}();function Zg(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;i<t.length;){if(n&&t[i][n]==e||!n&&t[i]===e)return i;i++}return-1}var Jg={pointerdown:mg,pointermove:vg,pointerup:gg,pointercancel:yg,pointerout:yg},ty={2:cg,3:hg,4:dg,5:pg},ey="pointerdown",ny="pointermove pointerup pointercancel";Hv.MSPointerEvent&&!Hv.PointerEvent&&(ey="MSPointerDown",ny="MSPointerMove MSPointerUp MSPointerCancel");var iy=function(t){function e(){var n,i=e.prototype;return i.evEl=ey,i.evWin=ny,(n=t.apply(this,arguments)||this).store=n.manager.session.pointerEvents=[],n}return Yv(e,t),e.prototype.handler=function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),r=Jg[i],o=ty[t.pointerType]||t.pointerType,s=o===cg,a=Zg(e,t.pointerId,"pointerId");r&mg&&(0===t.button||s)?a<0&&(e.push(t),a=e.length-1):r&(gg|yg)&&(n=!0),a<0||(e[a]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(a,1))},e}(Qg);function ry(t){return Array.prototype.slice.call(t,0)}function oy(t,e,n){for(var i=[],r=[],o=0;o<t.length;){var s=e?t[o][e]:t[o];Zg(r,s)<0&&i.push(t[o]),r[o]=s,o++}return n&&(i=e?i.sort((function(t,n){return t[e]>n[e]})):i.sort()),i}var sy={touchstart:mg,touchmove:vg,touchend:gg,touchcancel:yg},ay="touchstart touchmove touchend touchcancel",ly=function(t){function e(){var n;return e.prototype.evTarget=ay,(n=t.apply(this,arguments)||this).targetIds={},n}return Yv(e,t),e.prototype.handler=function(t){var e=sy[t.type],n=uy.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:cg,srcEvent:t})},e}(Qg);function uy(t,e){var n,i,r=ry(t.touches),o=this.targetIds;if(e&(mg|vg)&&1===r.length)return o[r[0].identifier]=!0,[r,r];var s=ry(t.changedTouches),a=[],l=this.target;if(i=r.filter((function(t){return Ng(t.target,l)})),e===mg)for(n=0;n<i.length;)o[i[n].identifier]=!0,n++;for(n=0;n<s.length;)o[s[n].identifier]&&a.push(s[n]),e&(gg|yg)&&delete o[s[n].identifier],n++;return a.length?[oy(i.concat(a),"identifier",!0),a]:void 0}var cy={mousedown:mg,mousemove:vg,mouseup:gg},hy="mousedown",dy="mousemove mouseup",py=function(t){function e(){var n,i=e.prototype;return i.evEl=hy,i.evWin=dy,(n=t.apply(this,arguments)||this).pressed=!1,n}return Yv(e,t),e.prototype.handler=function(t){var e=cy[t.type];e&mg&&0===t.button&&(this.pressed=!0),e&vg&&1!==t.which&&(e=gg),this.pressed&&(e&gg&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:dg,srcEvent:t}))},e}(Qg),fy=2500,my=25;function vy(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY},i=this.lastTouches;this.lastTouches.push(n);var r=function(){var t=i.indexOf(n);t>-1&&i.splice(t,1)};setTimeout(r,fy)}}function gy(t,e){t&mg?(this.primaryTouch=e.changedPointers[0].identifier,vy.call(this,e)):t&(gg|yg)&&vy.call(this,e)}function yy(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var r=this.lastTouches[i],o=Math.abs(e-r.x),s=Math.abs(n-r.y);if(o<=my&&s<=my)return!0}return!1}var by=function(){return function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).handler=function(t,e,n){var r=n.pointerType===cg,o=n.pointerType===dg;if(!(o&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)gy.call(zv(zv(i)),e,n);else if(o&&yy.call(zv(zv(i)),n))return;i.callback(t,e,n)}},i.touch=new ly(i.manager,i.handler),i.mouse=new py(i.manager,i.handler),i.primaryTouch=null,i.lastTouches=[],i}return Yv(e,t),e.prototype.destroy=function(){this.touch.destroy(),this.mouse.destroy()},e}(Qg)}();function wy(t){var e=t.options.inputClass;return new(e||(lg?iy:ug?ly:ag?by:py))(t,Ug)}function _y(t,e,n){return!!Array.isArray(t)&&(Eg(t,n[e],n),!0)}var ky=1,xy=2,Sy=4,Dy=8,Ty=Dy,Cy=16,Oy=32,Ey=1;function My(){return Ey++}function Py(t,e){var n=e.manager;return n?n.get(t):t}function Ay(t){return t&Cy?"cancel":t&Dy?"end":t&Sy?"move":t&xy?"start":""}var Iy=function(){function t(t){void 0===t&&(t={}),this.options=Lv({enable:!0},t),this.id=My(),this.manager=null,this.state=ky,this.simultaneous={},this.requireFail=[]}var e=t.prototype;return e.set=function(t){return Gv(this.options,t),this.manager&&this.manager.touchAction.update(),this},e.recognizeWith=function(t){if(_y(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=Py(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},e.dropRecognizeWith=function(t){return _y(t,"dropRecognizeWith",this)||(t=Py(t,this),delete this.simultaneous[t.id]),this},e.requireFailure=function(t){if(_y(t,"requireFailure",this))return this;var e=this.requireFail;return-1===Zg(e,t=Py(t,this))&&(e.push(t),t.requireFailure(this)),this},e.dropRequireFailure=function(t){if(_y(t,"dropRequireFailure",this))return this;t=Py(t,this);var e=Zg(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},e.hasRequireFailures=function(){return this.requireFail.length>0},e.canRecognizeWith=function(t){return!!this.simultaneous[t.id]},e.emit=function(t){var e=this,n=this.state;function i(n){e.manager.emit(n,t)}n<Dy&&i(e.options.event+Ay(n)),i(e.options.event),t.additionalEvent&&i(t.additionalEvent),n>=Dy&&i(e.options.event+Ay(n))},e.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=Oy},e.canEmit=function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(Oy|ky)))return!1;t++}return!0},e.recognize=function(t){var e=Gv({},t);if(!Mg(this.options.enable,[this,e]))return this.reset(),void(this.state=Oy);this.state&(Ty|Cy|Oy)&&(this.state=ky),this.state=this.process(e),this.state&(xy|Sy|Dy|Cy)&&this.tryEmit(e)},e.process=function(t){},e.getTouchAction=function(){},e.reset=function(){},t}(),Ny=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,Lv({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},e))||this).pTime=!1,n.pCenter=!1,n._timer=null,n._input=null,n.count=0,n}Yv(e,t);var n=e.prototype;return n.getTouchAction=function(){return[eg]},n.process=function(t){var e=this,n=this.options,i=t.pointers.length===n.pointers,r=t.distance<n.threshold,o=t.deltaTime<n.time;if(this.reset(),t.eventType&mg&&0===this.count)return this.failTimeout();if(r&&o&&i){if(t.eventType!==gg)return this.failTimeout();var s=!this.pTime||t.timeStamp-this.pTime<n.interval,a=!this.pCenter||Fg(this.pCenter,t.center)<n.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,a&&s?this.count+=1:this.count=1,this._input=t,0==this.count%n.taps)return this.hasRequireFailures()?(this._timer=setTimeout((function(){e.state=Ty,e.tryEmit()}),n.interval),xy):Ty}return Oy},n.failTimeout=function(){var t=this;return this._timer=setTimeout((function(){t.state=Oy}),this.options.interval),Oy},n.reset=function(){clearTimeout(this._timer)},n.emit=function(){this.state===Ty&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},e}(Iy),jy=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Lv({pointers:1},e))||this}Yv(e,t);var n=e.prototype;return n.attrTest=function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},n.process=function(t){var e=this.state,n=t.eventType,i=e&(xy|Sy),r=this.attrTest(t);return i&&(n&yg||!r)?e|Cy:i||r?n&gg?e|Dy:e&xy?e|Sy:xy:Oy},e}(Iy);function Ry(t){return t===xg?"down":t===kg?"up":t===wg?"left":t===_g?"right":""}var Fy=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,Lv({event:"pan",threshold:10,pointers:1,direction:Tg},e))||this).pX=null,n.pY=null,n}Yv(e,t);var n=e.prototype;return n.getTouchAction=function(){var t=this.options.direction,e=[];return t&Sg&&e.push(rg),t&Dg&&e.push(ig),e},n.directionTest=function(t){var e=this.options,n=!0,i=t.distance,r=t.direction,o=t.deltaX,s=t.deltaY;return r&e.direction||(e.direction&Sg?(r=0===o?bg:o<0?wg:_g,n=o!==this.pX,i=Math.abs(t.deltaX)):(r=0===s?bg:s<0?kg:xg,n=s!==this.pY,i=Math.abs(t.deltaY))),t.direction=r,n&&i>e.threshold&&r&e.direction},n.attrTest=function(t){return jy.prototype.attrTest.call(this,t)&&(this.state&xy||!(this.state&xy)&&this.directionTest(t))},n.emit=function(e){this.pX=e.deltaX,this.pY=e.deltaY;var n=Ry(e.direction);n&&(e.additionalEvent=this.options.event+n),t.prototype.emit.call(this,e)},e}(jy),Ly=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Lv({event:"swipe",threshold:10,velocity:.3,direction:Sg|Dg,pointers:1},e))||this}Yv(e,t);var n=e.prototype;return n.getTouchAction=function(){return Fy.prototype.getTouchAction.call(this)},n.attrTest=function(e){var n,i=this.options.direction;return i&(Sg|Dg)?n=e.overallVelocity:i&Sg?n=e.overallVelocityX:i&Dg&&(n=e.overallVelocityY),t.prototype.attrTest.call(this,e)&&i&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers===this.options.pointers&&qv(n)>this.options.velocity&&e.eventType&gg},n.emit=function(t){var e=Ry(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},e}(jy),Yy=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Lv({event:"pinch",threshold:0,pointers:2},e))||this}Yv(e,t);var n=e.prototype;return n.getTouchAction=function(){return[ng]},n.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||this.state&xy)},n.emit=function(e){if(1!==e.scale){var n=e.scale<1?"in":"out";e.additionalEvent=this.options.event+n}t.prototype.emit.call(this,e)},e}(jy),zy=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Lv({event:"rotate",threshold:0,pointers:2},e))||this}Yv(e,t);var n=e.prototype;return n.getTouchAction=function(){return[ng]},n.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||this.state&xy)},e}(jy),Hy=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,Lv({event:"press",pointers:1,time:251,threshold:9},e))||this)._timer=null,n._input=null,n}Yv(e,t);var n=e.prototype;return n.getTouchAction=function(){return[tg]},n.process=function(t){var e=this,n=this.options,i=t.pointers.length===n.pointers,r=t.distance<n.threshold,o=t.deltaTime>n.time;if(this._input=t,!r||!i||t.eventType&(gg|yg)&&!o)this.reset();else if(t.eventType&mg)this.reset(),this._timer=setTimeout((function(){e.state=Ty,e.tryEmit()}),n.time);else if(t.eventType&gg)return Ty;return Oy},n.reset=function(){clearTimeout(this._timer)},n.emit=function(t){this.state===Ty&&(t&&t.eventType&gg?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=Xv(),this.manager.emit(this.options.event,this._input)))},e}(Iy),Gy={domEvents:!1,touchAction:Jv,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},By=[[zy,{enable:!1}],[Yy,{enable:!1},["rotate"]],[Ly,{direction:Sg}],[Fy,{direction:Sg},["swipe"]],[Ny],[Ny,{event:"doubletap",taps:2},["tap"]],[Hy]],Wy=1,Vy=2;function Uy(t,e){var n,i=t.element;i.style&&(Eg(t.options.cssProps,(function(r,o){n=$v(i.style,o),e?(t.oldCssProps[n]=i.style[n],i.style[n]=r):i.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}function qy(t,e){var n=document.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}var Xy=function(){function t(t,e){var n=this;this.options=Gv({},Gy,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=wy(this),this.touchAction=new Ig(this,this.options.touchAction),Uy(this,!0),Eg(this.options.recognizers,(function(t){var e=n.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}var e=t.prototype;return e.set=function(t){return Gv(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},e.stop=function(t){this.session.stopped=t?Vy:Wy},e.recognize=function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var i=this.recognizers,r=e.curRecognizer;(!r||r&&r.state&Ty)&&(e.curRecognizer=null,r=null);for(var o=0;o<i.length;)n=i[o],e.stopped===Vy||r&&n!==r&&!n.canRecognizeWith(r)?n.reset():n.recognize(t),!r&&n.state&(xy|Sy|Dy)&&(e.curRecognizer=n,r=n),o++}},e.get=function(t){if(t instanceof Iy)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event===t)return e[n];return null},e.add=function(t){if(_y(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},e.remove=function(t){if(_y(t,"remove",this))return this;var e=this.get(t);if(t){var n=this.recognizers,i=Zg(n,e);-1!==i&&(n.splice(i,1),this.touchAction.update())}return this},e.on=function(t,e){if(void 0===t||void 0===e)return this;var n=this.handlers;return Eg(qg(t),(function(t){n[t]=n[t]||[],n[t].push(e)})),this},e.off=function(t,e){if(void 0===t)return this;var n=this.handlers;return Eg(qg(t),(function(t){e?n[t]&&n[t].splice(Zg(n[t],e),1):delete n[t]})),this},e.emit=function(t,e){this.options.domEvents&&qy(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var i=0;i<n.length;)n[i](e),i++}},e.destroy=function(){this.element&&Uy(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},t}(),$y={touchstart:mg,touchmove:vg,touchend:gg,touchcancel:yg},Ky="touchstart",Qy="touchstart touchmove touchend touchcancel",Zy=function(t){function e(){var n,i=e.prototype;return i.evTarget=Ky,i.evWin=Qy,(n=t.apply(this,arguments)||this).started=!1,n}return Yv(e,t),e.prototype.handler=function(t){var e=$y[t.type];if(e===mg&&(this.started=!0),this.started){var n=Jy.call(this,t,e);e&(gg|yg)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:cg,srcEvent:t})}},e}(Qg);function Jy(t,e){var n=ry(t.touches),i=ry(t.changedTouches);return e&(gg|yg)&&(n=oy(n.concat(i),"identifier",!0)),[n,i]}function tb(t,e,n){var i="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",r=window.console&&(window.console.warn||window.console.log);return r&&r.call(window.console,i,n),t.apply(this,arguments)}}var eb=tb((function(t,e,n){for(var i=Object.keys(e),r=0;r<i.length;)(!n||n&&void 0===t[i[r]])&&(t[i[r]]=e[i[r]]),r++;return t}),"extend","Use `assign`."),nb=tb((function(t,e){return eb(t,e,!0)}),"merge","Use `assign`.");function ib(t,e,n){var i,r=e.prototype;(i=t.prototype=Object.create(r)).constructor=t,i._super=r,n&&Gv(i,n)}function rb(t,e){return function(){return t.apply(e,arguments)}}var ob=function(){var t=function(t,e){return void 0===e&&(e={}),new Xy(t,Lv({recognizers:By.concat()},e))};return t.VERSION="2.0.17-rc",t.DIRECTION_ALL=Tg,t.DIRECTION_DOWN=xg,t.DIRECTION_LEFT=wg,t.DIRECTION_RIGHT=_g,t.DIRECTION_UP=kg,t.DIRECTION_HORIZONTAL=Sg,t.DIRECTION_VERTICAL=Dg,t.DIRECTION_NONE=bg,t.DIRECTION_DOWN=xg,t.INPUT_START=mg,t.INPUT_MOVE=vg,t.INPUT_END=gg,t.INPUT_CANCEL=yg,t.STATE_POSSIBLE=ky,t.STATE_BEGAN=xy,t.STATE_CHANGED=Sy,t.STATE_ENDED=Dy,t.STATE_RECOGNIZED=Ty,t.STATE_CANCELLED=Cy,t.STATE_FAILED=Oy,t.Manager=Xy,t.Input=Qg,t.TouchAction=Ig,t.TouchInput=ly,t.MouseInput=py,t.PointerEventInput=iy,t.TouchMouseInput=by,t.SingleTouchInput=Zy,t.Recognizer=Iy,t.AttrRecognizer=jy,t.Tap=Ny,t.Pan=Fy,t.Swipe=Ly,t.Pinch=Yy,t.Rotate=zy,t.Press=Hy,t.on=Xg,t.off=$g,t.each=Eg,t.merge=nb,t.extend=eb,t.bindFn=rb,t.assign=Gv,t.inherit=ib,t.bindFn=rb,t.prefixed=$v,t.toArray=ry,t.inArray=Zg,t.uniqueArray=oy,t.splitStr=qg,t.boolOrFn=Mg,t.hasParent=Ng,t.addEventListeners=Xg,t.removeEventListeners=$g,t.defaults=Gv({},Gy,{preset:By}),t}();function sb(t,e){var n=void 0!==If&&Ap(t)||t["@@iterator"];if(!n){if(qf(t)||(n=ab(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function ab(t,e){var n;if(t){if("string"==typeof t)return lb(t,e);var i=Yf(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Ep(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?lb(t,e):void 0}}function lb(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var ub=If("DELETE");function cb(t){for(var e,n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return hb.apply(void 0,Lf(e=[{},t]).call(e,i))}function hb(){var t=db.apply(void 0,arguments);return fb(t),t}function db(){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 i;if(e.length>2)return db.apply(void 0,Lf(i=[hb(e[0],e[1])]).call(i,Af(Yf(e).call(e,2))));var r=e[0],o=e[1];if(r instanceof Date&&o instanceof Date)return r.setTime(o.getTime()),r;var s,a=sb(Uf(o));try{for(a.s();!(s=a.n()).done;){var l=s.value;Object.prototype.propertyIsEnumerable.call(o,l)&&(o[l]===ub?delete r[l]:null===r[l]||null===o[l]||"object"!=typeof r[l]||"object"!=typeof o[l]||qf(r[l])||qf(o[l])?r[l]=pb(o[l]):r[l]=db(r[l],o[l]))}}catch(t){a.e(t)}finally{a.f()}return r}function pb(t){return qf(t)?bd(t).call(t,(function(t){return pb(t)})):"object"==typeof t&&null!==t?t instanceof Date?new Date(t.getTime()):db({},t):t}function fb(t){for(var e=0,n=Zf(t);e<n.length;e++){var i=n[e];t[i]===ub?delete t[i]:"object"==typeof t[i]&&null!==t[i]&&fb(t[i])}}function mb(){var t=function(){};return{on:t,off:t,destroy:t,emit:t,get:()=>({set:t})}}var vb="undefined"!=typeof window?window.Hammer||ob:function(){return mb()};function gb(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 i=vb(this._dom.overlay);i.on("tap",Fh(e=this._onTapOverlay).call(e,this)),this._cleanupQueue.push((function(){i.destroy()}));var r=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];um(r).call(r,(function(t){i.on(t,(function(t){t.srcEvent.stopPropagation()}))})),document&&document.body&&(this._onClick=function(e){yb(e.target,t)||n.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push((function(){document.body.removeEventListener("click",n._onClick)}))),this._escListener=function(t){("key"in t?"Escape"===t.key:27===t.keyCode)&&n.deactivate()}}function yb(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}Fv(gb.prototype),gb.current=null,gb.prototype.destroy=function(){var t,e;this.deactivate();var n,i=sb(bm(t=zm(e=this._cleanupQueue).call(e,0)).call(t));try{for(i.s();!(n=i.n()).done;)(0,n.value)()}catch(t){i.e(t)}finally{i.f()}},gb.prototype.activate=function(){gb.current&&gb.current.deactivate(),gb.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)},gb.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")},gb.prototype._onTapOverlay=function(t){this.activate(),t.srcEvent.stopPropagation()};var bb=zi,wb=It,_b=TypeError,kb=function(t){if(bb(t))return t;throw new _b(wb(t)+" is not a constructor")},xb=Yn,Sb=f,Db=Ch,Tb=kb,Cb=pn,Ob=st,Eb=ho,Mb=l,Pb=dt("Reflect","construct"),Ab=Object.prototype,Ib=[].push,Nb=Mb((function(){function t(){}return!(Pb((function(){}),[],t)instanceof t)})),jb=!Mb((function(){Pb((function(){}))})),Rb=Nb||jb;xb({target:"Reflect",stat:!0,forced:Rb,sham:Rb},{construct:function(t,e){Tb(t),Cb(e);var n=arguments.length<3?t:Tb(arguments[2]);if(jb&&!Nb)return Pb(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 i=[null];return Sb(Ib,i,e),new(Sb(Db,t,i))}var r=n.prototype,o=Eb(Ob(r)?r:Ab),s=Sb(t,o,e);return Ob(s)?s:o}});var Fb=r(at.Reflect.construct),Lb=r(at.Object.getOwnPropertySymbols),Yb={exports:{}},zb=Yn,Hb=l,Gb=nt,Bb=I.f,Wb=N,Vb=!Wb||Hb((function(){Bb(1)}));zb({target:"Object",stat:!0,forced:Vb,sham:!Wb},{getOwnPropertyDescriptor:function(t,e){return Bb(Gb(t),e)}});var Ub=at.Object,qb=Yb.exports=function(t,e){return Ub.getOwnPropertyDescriptor(t,e)};Ub.getOwnPropertyDescriptor.sham&&(qb.sham=!0);var Xb=r(Yb.exports),$b=Vf,Kb=nt,Qb=I,Zb=hi;Yn({target:"Object",stat:!0,sham:!N},{getOwnPropertyDescriptors:function(t){for(var e,n,i=Kb(t),r=Qb.f,o=$b(i),s={},a=0;o.length>a;)void 0!==(n=r(i,e=o[a++]))&&Zb(s,e,n);return s}});var Jb=r(at.Object.getOwnPropertyDescriptors),tw={exports:{}},ew=Yn,nw=N,iw=vr.f;ew({target:"Object",stat:!0,forced:Object.defineProperties!==iw,sham:!nw},{defineProperties:iw});var rw=at.Object,ow=tw.exports=function(t,e){return rw.defineProperties(t,e)};rw.defineProperties.sham&&(ow.sham=!0);var sw=r(tw.exports),aw=r(Vn);function lw(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var uw=uv,cw=r(uw);Yn({target:"Object",stat:!0},{setPrototypeOf:Nu});var hw=at.Object.setPrototypeOf,dw=r(hw),pw=r(Rh);function fw(t,e){var n;return fw=dw?pw(n=dw).call(n):function(t,e){return t.__proto__=e,t},fw(t,e)}function mw(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=cw(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),qn(t,"prototype",{writable:!1}),e&&fw(t,e)}function vw(t,e){if(e&&("object"===uh(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return lw(t)}var gw=av,yw=r(gw);function bw(t){var e;return bw=dw?pw(e=yw).call(e):function(t){return t.__proto__||yw(t)},bw(t)}var ww={exports:{}},_w={exports:{}};!function(t){var e=Gc,n=ah;function i(r){return t.exports=i="function"==typeof e&&"symbol"==typeof n?function(t){return typeof t}:function(t){return t&&"function"==typeof e&&t.constructor===e&&t!==e.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,i(r)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}(_w);var kw=_w.exports,xw=lm,Sw=se,Dw=Vf,Tw=I,Cw=an,Ow=function(t,e,n){for(var i=Dw(e),r=Cw.f,o=Tw.f,s=0;s<i.length;s++){var a=i[s];Sw(t,a)||n&&Sw(n,a)||r(t,a,o(e,a))}},Ew=st,Mw=Cn,Pw=function(t,e){Ew(e)&&"cause"in e&&Mw(t,"cause",e.cause)},Aw=Error,Iw=b("".replace),Nw=String(new Aw("zxcasd").stack),jw=/\n\s*at [^:]*:[^\n]*/,Rw=jw.test(Nw),Fw=function(t,e){if(Rw&&"string"==typeof t&&!Aw.prepareStackTrace)for(;e--;)t=Iw(t,jw,"");return t},Lw=W,Yw=!l((function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",Lw(1,7)),7!==t.stack)})),zw=Cn,Hw=Fw,Gw=Yw,Bw=Error.captureStackTrace,Ww=function(t,e,n,i){Gw&&(Bw?Bw(t,e):zw(t,"stack",Hw(n,i)))},Vw=sn,Uw=F,qw=pn,Xw=It,$w=Xd,Kw=ri,Qw=pt,Zw=ap,Jw=tp,t_=Hd,e_=TypeError,n_=function(t,e){this.stopped=t,this.result=e},i_=n_.prototype,r_=function(t,e,n){var i,r,o,s,a,l,u,c=n&&n.that,h=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_RECORD),p=!(!n||!n.IS_ITERATOR),f=!(!n||!n.INTERRUPTED),m=Vw(e,c),v=function(t){return i&&t_(i,"normal",t),new n_(!0,t)},g=function(t){return h?(qw(t),f?m(t[0],t[1],v):m(t[0],t[1])):f?m(t,v):m(t)};if(d)i=t.iterator;else if(p)i=t;else{if(!(r=Jw(t)))throw new e_(Xw(t)+" is not iterable");if($w(r)){for(o=0,s=Kw(t);s>o;o++)if((a=g(t[o]))&&Qw(i_,a))return a;return new n_(!1)}i=Zw(t,r)}for(l=d?t.next:i.next;!(u=Uw(l,i)).done;){try{a=g(u.value)}catch(t){t_(i,"throw",t)}if("object"==typeof a&&a&&Qw(i_,a))return a}return new n_(!1)},o_=mr,s_=function(t,e){return void 0===t?arguments.length<2?"":e:o_(t)},a_=Yn,l_=pt,u_=uu,c_=Nu,h_=Ow,d_=ho,p_=Cn,f_=W,m_=Pw,v_=Ww,g_=r_,y_=s_,b_=we("toStringTag"),w_=Error,__=[].push,k_=function(t,e){var n,i=l_(x_,this);c_?n=c_(new w_,i?u_(this):x_):(n=i?this:d_(x_),p_(n,b_,"Error")),void 0!==e&&p_(n,"message",y_(e)),v_(n,k_,n.stack,1),arguments.length>2&&m_(n,arguments[2]);var r=[];return g_(t,__,{that:r}),p_(n,"errors",r),n};c_?c_(k_,w_):h_(k_,w_,{name:!0});var x_=k_.prototype=d_(w_.prototype,{constructor:f_(1,k_),message:f_(1,""),name:f_(1,"AggregateError")});a_({global:!0,constructor:!0,arity:2},{AggregateError:k_});var S_,D_,T_,C_,O_=dt,E_=Io,M_=N,P_=we("species"),A_=function(t){var e=O_(t);M_&&e&&!e[P_]&&E_(e,P_,{configurable:!0,get:function(){return this}})},I_=pt,N_=TypeError,j_=function(t,e){if(I_(e,t))return t;throw new N_("Incorrect invocation")},R_=pn,F_=kb,L_=K,Y_=we("species"),z_=function(t,e){var n,i=R_(t).constructor;return void 0===i||L_(n=R_(i)[Y_])?e:F_(n)},H_=/(?:ipad|iphone|ipod).*applewebkit/i.test(ft),G_=a,B_=f,W_=sn,V_=A,U_=se,q_=l,X_=Vr,$_=il,K_=Ne,Q_=gv,Z_=H_,J_=qh,tk=G_.setImmediate,ek=G_.clearImmediate,nk=G_.process,ik=G_.Dispatch,rk=G_.Function,ok=G_.MessageChannel,sk=G_.String,ak=0,lk={},uk="onreadystatechange";q_((function(){S_=G_.location}));var ck=function(t){if(U_(lk,t)){var e=lk[t];delete lk[t],e()}},hk=function(t){return function(){ck(t)}},dk=function(t){ck(t.data)},pk=function(t){G_.postMessage(sk(t),S_.protocol+"//"+S_.host)};tk&&ek||(tk=function(t){Q_(arguments.length,1);var e=V_(t)?t:rk(t),n=$_(arguments,1);return lk[++ak]=function(){B_(e,void 0,n)},D_(ak),ak},ek=function(t){delete lk[t]},J_?D_=function(t){nk.nextTick(hk(t))}:ik&&ik.now?D_=function(t){ik.now(hk(t))}:ok&&!Z_?(C_=(T_=new ok).port2,T_.port1.onmessage=dk,D_=W_(C_.postMessage,C_)):G_.addEventListener&&V_(G_.postMessage)&&!G_.importScripts&&S_&&"file:"!==S_.protocol&&!q_(pk)?(D_=pk,G_.addEventListener("message",dk,!1)):D_=uk in K_("script")?function(t){X_.appendChild(K_("script"))[uk]=function(){X_.removeChild(this),ck(t)}}:function(t){setTimeout(hk(t),0)});var fk={set:tk,clear:ek},mk=function(){this.head=null,this.tail=null};mk.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var vk,gk,yk,bk,wk,_k=mk,kk=/ipad|iphone|ipod/i.test(ft)&&"undefined"!=typeof Pebble,xk=/web0s(?!.*chrome)/i.test(ft),Sk=a,Dk=sn,Tk=I.f,Ck=fk.set,Ok=_k,Ek=H_,Mk=kk,Pk=xk,Ak=qh,Ik=Sk.MutationObserver||Sk.WebKitMutationObserver,Nk=Sk.document,jk=Sk.process,Rk=Sk.Promise,Fk=Tk(Sk,"queueMicrotask"),Lk=Fk&&Fk.value;if(!Lk){var Yk=new Ok,zk=function(){var t,e;for(Ak&&(t=jk.domain)&&t.exit();e=Yk.get();)try{e()}catch(t){throw Yk.head&&vk(),t}t&&t.enter()};Ek||Ak||Pk||!Ik||!Nk?!Mk&&Rk&&Rk.resolve?((bk=Rk.resolve(void 0)).constructor=Rk,wk=Dk(bk.then,bk),vk=function(){wk(zk)}):Ak?vk=function(){jk.nextTick(zk)}:(Ck=Dk(Ck,Sk),vk=function(){Ck(zk)}):(gk=!0,yk=Nk.createTextNode(""),new Ik(zk).observe(yk,{characterData:!0}),vk=function(){yk.data=gk=!gk}),Lk=function(t){Yk.head||vk(),Yk.add(t)}}var Hk=Lk,Gk=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}},Bk=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Wk=a.Promise,Vk="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Uk=qh,qk=!Vk&&!Uk&&"object"==typeof window&&"object"==typeof document,Xk=a,$k=Wk,Kk=A,Qk=en,Zk=Ti,Jk=we,tx=qk,ex=Vk,nx=_t,ix=$k&&$k.prototype,rx=Jk("species"),ox=!1,sx=Kk(Xk.PromiseRejectionEvent),ax={CONSTRUCTOR:Qk("Promise",(function(){var t=Zk($k),e=t!==String($k);if(!e&&66===nx)return!0;if(!ix.catch||!ix.finally)return!0;if(!nx||nx<51||!/native code/.test(t)){var n=new $k((function(t){t(1)})),i=function(t){t((function(){}),(function(){}))};if((n.constructor={})[rx]=i,!(ox=n.then((function(){}))instanceof i))return!0}return!e&&(tx||ex)&&!sx})),REJECTION_EVENT:sx,SUBCLASSING:ox},lx={},ux=Ft,cx=TypeError,hx=function(t){var e,n;this.promise=new t((function(t,i){if(void 0!==e||void 0!==n)throw new cx("Bad Promise constructor");e=t,n=i})),this.resolve=ux(e),this.reject=ux(n)};lx.f=function(t){return new hx(t)};var dx,px,fx,mx=Yn,vx=qh,gx=a,yx=F,bx=Po,wx=is,_x=A_,kx=Ft,xx=A,Sx=st,Dx=j_,Tx=z_,Cx=fk.set,Ox=Hk,Ex=Gk,Mx=Bk,Px=_k,Ax=_s,Ix=Wk,Nx=ax,jx=lx,Rx="Promise",Fx=Nx.CONSTRUCTOR,Lx=Nx.REJECTION_EVENT,Yx=Ax.getterFor(Rx),zx=Ax.set,Hx=Ix&&Ix.prototype,Gx=Ix,Bx=Hx,Wx=gx.TypeError,Vx=gx.document,Ux=gx.process,qx=jx.f,Xx=qx,$x=!!(Vx&&Vx.createEvent&&gx.dispatchEvent),Kx="unhandledrejection",Qx="rejectionhandled",Zx=0,Jx=1,tS=2,eS=1,nS=2,iS=function(t){var e;return!(!Sx(t)||!xx(e=t.then))&&e},rS=function(t,e){var n,i,r,o=e.value,s=e.state===Jx,a=s?t.ok:t.fail,l=t.resolve,u=t.reject,c=t.domain;try{a?(s||(e.rejection===nS&&uS(e),e.rejection=eS),!0===a?n=o:(c&&c.enter(),n=a(o),c&&(c.exit(),r=!0)),n===t.promise?u(new Wx("Promise-chain cycle")):(i=iS(n))?yx(i,n,l,u):l(n)):u(o)}catch(t){c&&!r&&c.exit(),u(t)}},oS=function(t,e){t.notified||(t.notified=!0,Ox((function(){for(var n,i=t.reactions;n=i.get();)rS(n,t);t.notified=!1,e&&!t.rejection&&aS(t)})))},sS=function(t,e,n){var i,r;$x?((i=Vx.createEvent("Event")).promise=e,i.reason=n,i.initEvent(t,!1,!0),gx.dispatchEvent(i)):i={promise:e,reason:n},!Lx&&(r=gx["on"+t])?r(i):t===Kx&&Ex("Unhandled promise rejection",n)},aS=function(t){yx(Cx,gx,(function(){var e,n=t.facade,i=t.value;if(lS(t)&&(e=Mx((function(){vx?Ux.emit("unhandledRejection",i,n):sS(Kx,n,i)})),t.rejection=vx||lS(t)?nS:eS,e.error))throw e.value}))},lS=function(t){return t.rejection!==eS&&!t.parent},uS=function(t){yx(Cx,gx,(function(){var e=t.facade;vx?Ux.emit("rejectionHandled",e):sS(Qx,e,t.value)}))},cS=function(t,e,n){return function(i){t(e,i,n)}},hS=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=tS,oS(t,!0))},dS=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw new Wx("Promise can't be resolved itself");var i=iS(e);i?Ox((function(){var n={done:!1};try{yx(i,e,cS(dS,n,t),cS(hS,n,t))}catch(e){hS(n,e,t)}})):(t.value=e,t.state=Jx,oS(t,!1))}catch(e){hS({done:!1},e,t)}}};Fx&&(Bx=(Gx=function(t){Dx(this,Bx),kx(t),yx(dx,this);var e=Yx(this);try{t(cS(dS,e),cS(hS,e))}catch(t){hS(e,t)}}).prototype,(dx=function(t){zx(this,{type:Rx,done:!1,notified:!1,parent:!1,reactions:new Px,rejection:!1,state:Zx,value:void 0})}).prototype=bx(Bx,"then",(function(t,e){var n=Yx(this),i=qx(Tx(this,Gx));return n.parent=!0,i.ok=!xx(t)||t,i.fail=xx(e)&&e,i.domain=vx?Ux.domain:void 0,n.state===Zx?n.reactions.add(i):Ox((function(){rS(i,n)})),i.promise})),px=function(){var t=new dx,e=Yx(t);this.promise=t,this.resolve=cS(dS,e),this.reject=cS(hS,e)},jx.f=qx=function(t){return t===Gx||t===fx?new px(t):Xx(t)}),mx({global:!0,constructor:!0,wrap:!0,forced:Fx},{Promise:Gx}),wx(Gx,Rx,!1,!0),_x(Rx);var pS=Wk,fS=Sp,mS=ax.CONSTRUCTOR||!fS((function(t){pS.all(t).then(void 0,(function(){}))})),vS=F,gS=Ft,yS=lx,bS=Bk,wS=r_;Yn({target:"Promise",stat:!0,forced:mS},{all:function(t){var e=this,n=yS.f(e),i=n.resolve,r=n.reject,o=bS((function(){var n=gS(e.resolve),o=[],s=0,a=1;wS(t,(function(t){var l=s++,u=!1;a++,vS(n,e,t).then((function(t){u||(u=!0,o[l]=t,--a||i(o))}),r)})),--a||i(o)}));return o.error&&r(o.value),n.promise}});var _S=Yn,kS=ax.CONSTRUCTOR,xS=Wk;xS&&xS.prototype,_S({target:"Promise",proto:!0,forced:kS,real:!0},{catch:function(t){return this.then(void 0,t)}});var SS=F,DS=Ft,TS=lx,CS=Bk,OS=r_;Yn({target:"Promise",stat:!0,forced:mS},{race:function(t){var e=this,n=TS.f(e),i=n.reject,r=CS((function(){var r=DS(e.resolve);OS(t,(function(t){SS(r,e,t).then(n.resolve,i)}))}));return r.error&&i(r.value),n.promise}});var ES=Yn,MS=F,PS=lx,AS=ax.CONSTRUCTOR;ES({target:"Promise",stat:!0,forced:AS},{reject:function(t){var e=PS.f(this);return MS(e.reject,void 0,t),e.promise}});var IS=pn,NS=st,jS=lx,RS=function(t,e){if(IS(t),NS(e)&&e.constructor===t)return e;var n=jS.f(t);return(0,n.resolve)(e),n.promise},FS=Yn,LS=dt,YS=qt,zS=Wk,HS=ax.CONSTRUCTOR,GS=RS,BS=LS("Promise"),WS=!HS;FS({target:"Promise",stat:!0,forced:YS},{resolve:function(t){return GS(WS&&this===BS?zS:this,t)}});var VS=F,US=Ft,qS=lx,XS=Bk,$S=r_;Yn({target:"Promise",stat:!0,forced:mS},{allSettled:function(t){var e=this,n=qS.f(e),i=n.resolve,r=n.reject,o=XS((function(){var n=US(e.resolve),r=[],o=0,s=1;$S(t,(function(t){var a=o++,l=!1;s++,VS(n,e,t).then((function(t){l||(l=!0,r[a]={status:"fulfilled",value:t},--s||i(r))}),(function(t){l||(l=!0,r[a]={status:"rejected",reason:t},--s||i(r))}))})),--s||i(r)}));return o.error&&r(o.value),n.promise}});var KS=F,QS=Ft,ZS=dt,JS=lx,tD=Bk,eD=r_,nD="No one promise resolved";Yn({target:"Promise",stat:!0,forced:mS},{any:function(t){var e=this,n=ZS("AggregateError"),i=JS.f(e),r=i.resolve,o=i.reject,s=tD((function(){var i=QS(e.resolve),s=[],a=0,l=1,u=!1;eD(t,(function(t){var c=a++,h=!1;l++,KS(i,e,t).then((function(t){h||u||(u=!0,r(t))}),(function(t){h||u||(h=!0,s[c]=t,--l||o(new n(s,nD)))}))})),--l||o(new n(s,nD))}));return s.error&&o(s.value),i.promise}});var iD=Yn,rD=Wk,oD=l,sD=dt,aD=A,lD=z_,uD=RS,cD=rD&&rD.prototype,hD=!!rD&&oD((function(){cD.finally.call({then:function(){}},(function(){}))}));iD({target:"Promise",proto:!0,real:!0,forced:hD},{finally:function(t){var e=lD(this,sD("Promise")),n=aD(t);return this.then(n?function(n){return uD(e,t()).then((function(){return n}))}:t,n?function(n){return uD(e,t()).then((function(){throw n}))}:t)}});var dD=at.Promise,pD=lx;Yn({target:"Promise",stat:!0},{withResolvers:function(){var t=pD.f(this);return{promise:t.promise,resolve:t.resolve,reject:t.reject}}});var fD=dD,mD=lx,vD=Bk;Yn({target:"Promise",stat:!0,forced:!0},{try:function(t){var e=mD.f(this),n=vD(t);return(n.error?e.reject:e.resolve)(n.value),e.promise}});var gD=fD,yD=ym;!function(t){var e=kw.default,n=Un,i=Gc,r=uw,o=gw,s=xw,a=Jp,l=hw,u=gD,c=yD,h=kf;function d(){t.exports=d=function(){return f},t.exports.__esModule=!0,t.exports.default=t.exports;var p,f={},m=Object.prototype,v=m.hasOwnProperty,g=n||function(t,e,n){t[e]=n.value},y="function"==typeof i?i:{},b=y.iterator||"@@iterator",w=y.asyncIterator||"@@asyncIterator",_=y.toStringTag||"@@toStringTag";function k(t,e,i){return n(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{k({},"")}catch(p){k=function(t,e,n){return t[e]=n}}function x(t,e,n,i){var o=e&&e.prototype instanceof M?e:M,s=r(o.prototype),a=new G(i||[]);return g(s,"_invoke",{value:L(t,n,a)}),s}function S(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}f.wrap=x;var D="suspendedStart",T="suspendedYield",C="executing",O="completed",E={};function M(){}function P(){}function A(){}var I={};k(I,b,(function(){return this}));var N=o&&o(o(B([])));N&&N!==m&&v.call(N,b)&&(I=N);var j=A.prototype=M.prototype=r(I);function R(t){var e;s(e=["next","throw","return"]).call(e,(function(e){k(t,e,(function(t){return this._invoke(e,t)}))}))}function F(t,n){function i(r,o,s,a){var l=S(t[r],t,o);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==e(c)&&v.call(c,"__await")?n.resolve(c.__await).then((function(t){i("next",t,s,a)}),(function(t){i("throw",t,s,a)})):n.resolve(c).then((function(t){u.value=t,s(u)}),(function(t){return i("throw",t,s,a)}))}a(l.arg)}var r;g(this,"_invoke",{value:function(t,e){function o(){return new n((function(n,r){i(t,e,n,r)}))}return r=r?r.then(o,o):o()}})}function L(t,e,n){var i=D;return function(r,o){if(i===C)throw new Error("Generator is already running");if(i===O){if("throw"===r)throw o;return{value:p,done:!0}}for(n.method=r,n.arg=o;;){var s=n.delegate;if(s){var a=Y(s,n);if(a){if(a===E)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===D)throw i=O,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=C;var l=S(t,e,n);if("normal"===l.type){if(i=n.done?O:T,l.arg===E)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=O,n.method="throw",n.arg=l.arg)}}}function Y(t,e){var n=e.method,i=t.iterator[n];if(i===p)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=p,Y(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),E;var r=S(i,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,E;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=p),e.delegate=null,E):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,E)}function z(t){var e,n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),a(e=this.tryEntries).call(e,n)}function H(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function G(t){this.tryEntries=[{tryLoc:"root"}],s(t).call(t,z,this),this.reset(!0)}function B(t){if(t||""===t){var n=t[b];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,r=function e(){for(;++i<t.length;)if(v.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=p,e.done=!0,e};return r.next=r}}throw new TypeError(e(t)+" is not iterable")}return P.prototype=A,g(j,"constructor",{value:A,configurable:!0}),g(A,"constructor",{value:P,configurable:!0}),P.displayName=k(A,_,"GeneratorFunction"),f.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===P||"GeneratorFunction"===(e.displayName||e.name))},f.mark=function(t){return l?l(t,A):(t.__proto__=A,k(t,_,"GeneratorFunction")),t.prototype=r(j),t},f.awrap=function(t){return{__await:t}},R(F.prototype),k(F.prototype,w,(function(){return this})),f.AsyncIterator=F,f.async=function(t,e,n,i,r){void 0===r&&(r=u);var o=new F(x(t,e,n,i),r);return f.isGeneratorFunction(e)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},R(j),k(j,_,"Generator"),k(j,b,(function(){return this})),k(j,"toString",(function(){return"[object Generator]"})),f.keys=function(t){var e=Object(t),n=[];for(var i in e)a(n).call(n,i);return c(n).call(n),function t(){for(;n.length;){var i=n.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},f.values=B,G.prototype={constructor:G,reset:function(t){var e;if(this.prev=0,this.next=0,this.sent=this._sent=p,this.done=!1,this.delegate=null,this.method="next",this.arg=p,s(e=this.tryEntries).call(e,H),!t)for(var n in this)"t"===n.charAt(0)&&v.call(this,n)&&!isNaN(+h(n).call(n,1))&&(this[n]=p)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,i){return o.type="throw",o.arg=t,e.next=n,i&&(e.method="next",e.arg=p),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i],o=r.completion;if("root"===r.tryLoc)return n("end");if(r.tryLoc<=this.prev){var s=v.call(r,"catchLoc"),a=v.call(r,"finallyLoc");if(s&&a){if(this.prev<r.catchLoc)return n(r.catchLoc,!0);if(this.prev<r.finallyLoc)return n(r.finallyLoc)}else if(s){if(this.prev<r.catchLoc)return n(r.catchLoc,!0)}else{if(!a)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return n(r.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&v.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=t,o.arg=e,r?(this.method="next",this.next=r.finallyLoc,E):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),E},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),H(n),E}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;H(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:B(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=p),E}},f}t.exports=d,t.exports.__esModule=!0,t.exports.default=t.exports}(ww);var bD=(0,ww.exports)(),wD=bD;try{regeneratorRuntime=bD}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=bD:Function("r","regeneratorRuntime = r")(bD)}var _D=r(wD),kD={exports:{}},xD=l((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),SD=l,DD=st,TD=x,CD=xD,OD=Object.isExtensible,ED=SD((function(){OD(1)}))||CD?function(t){return!!DD(t)&&(!CD||"ArrayBuffer"!==TD(t))&&(!OD||OD(t))}:OD,MD=!l((function(){return Object.isExtensible(Object.preventExtensions({}))})),PD=Yn,AD=b,ID=Tr,ND=st,jD=se,RD=an.f,FD=po,LD=vo,YD=ED,zD=MD,HD=!1,GD=he("meta"),BD=0,WD=function(t){RD(t,GD,{value:{objectID:"O"+BD++,weakData:{}}})},VD=function(t,e){if(!ND(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!jD(t,GD)){if(!YD(t))return"F";if(!e)return"E";WD(t)}return t[GD].objectID},UD=function(t,e){if(!jD(t,GD)){if(!YD(t))return!0;if(!e)return!1;WD(t)}return t[GD].weakData},qD=function(t){return zD&&HD&&YD(t)&&!jD(t,GD)&&WD(t),t},XD=function(){$D.enable=function(){},HD=!0;var t=FD.f,e=AD([].splice),n={};n[GD]=1,t(n).length&&(FD.f=function(n){for(var i=t(n),r=0,o=i.length;r<o;r++)if(i[r]===GD){e(i,r,1);break}return i},PD({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:LD.f}))},$D=kD.exports={enable:XD,fastKey:VD,getWeakData:UD,onFreeze:qD};ID[GD]=!0;var KD=kD.exports,QD=Yn,ZD=a,JD=KD,tT=l,eT=Cn,nT=r_,iT=j_,rT=A,oT=st,sT=K,aT=is,lT=an.f,uT=Es.forEach,cT=N,hT=_s,dT=hT.set,pT=hT.getterFor,fT=function(t,e,n){var i,r=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),s=r?"set":"add",a=ZD[t],l=a&&a.prototype,u={};if(cT&&rT(a)&&(o||l.forEach&&!tT((function(){(new a).entries().next()})))){var c=(i=e((function(e,n){dT(iT(e,c),{type:t,collection:new a}),sT(n)||nT(n,e[s],{that:e,AS_ENTRIES:r})}))).prototype,h=pT(t);uT(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var e="add"===t||"set"===t;!(t in l)||o&&"clear"===t||eT(c,t,(function(n,i){var r=h(this).collection;if(!e&&o&&!oT(n))return"get"===t&&void 0;var s=r[t](0===n?0:n,i);return e?this:s}))})),o||lT(c,"size",{configurable:!0,get:function(){return h(this).collection.size}})}else i=n.getConstructor(e,t,r,s),JD.enable();return aT(i,t,!1,!0),u[t]=i,QD({global:!0,forced:!0},u),o||n.setStrong(i,t,r),i},mT=Po,vT=ho,gT=Io,yT=function(t,e,n){for(var i in e)n&&n.unsafe&&t[i]?t[i]=e[i]:mT(t,i,e[i],n);return t},bT=sn,wT=j_,_T=K,kT=r_,xT=Qu,ST=Zu,DT=A_,TT=N,CT=KD.fastKey,OT=_s,ET=OT.set,MT=OT.getterFor,PT={getConstructor:function(t,e,n,i){var r=t((function(t,r){wT(t,o),ET(t,{type:e,index:vT(null),first:void 0,last:void 0,size:0}),TT||(t.size=0),_T(r)||kT(r,t[i],{that:t,AS_ENTRIES:n})})),o=r.prototype,s=MT(e),a=function(t,e,n){var i,r,o=s(t),a=l(t,e);return a?a.value=n:(o.last=a={index:r=CT(e,!0),key:e,value:n,previous:i=o.last,next:void 0,removed:!1},o.first||(o.first=a),i&&(i.next=a),TT?o.size++:t.size++,"F"!==r&&(o.index[r]=a)),t},l=function(t,e){var n,i=s(t),r=CT(e);if("F"!==r)return i.index[r];for(n=i.first;n;n=n.next)if(n.key===e)return n};return yT(o,{clear:function(){for(var t=this,e=s(t),n=e.index,i=e.first;i;)i.removed=!0,i.previous&&(i.previous=i.previous.next=void 0),delete n[i.index],i=i.next;e.first=e.last=void 0,TT?e.size=0:t.size=0},delete:function(t){var e=this,n=s(e),i=l(e,t);if(i){var r=i.next,o=i.previous;delete n.index[i.index],i.removed=!0,o&&(o.next=r),r&&(r.previous=o),n.first===i&&(n.first=r),n.last===i&&(n.last=o),TT?n.size--:e.size--}return!!i},forEach:function(t){for(var e,n=s(this),i=bT(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:n.first;)for(i(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!l(this,t)}}),yT(o,n?{get:function(t){var e=l(this,t);return e&&e.value},set:function(t,e){return a(this,0===t?0:t,e)}}:{add:function(t){return a(this,t=0===t?0:t,t)}}),TT&&gT(o,"size",{configurable:!0,get:function(){return s(this).size}}),r},setStrong:function(t,e,n){var i=e+" Iterator",r=MT(e),o=MT(i);xT(t,e,(function(t,e){ET(this,{type:i,target:t,state:r(t),kind:e,last:void 0})}),(function(){for(var t=o(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?ST("keys"===e?n.key:"values"===e?n.value:[n.key,n.value],!1):(t.target=void 0,ST(void 0,!0))}),n?"entries":"values",!n,!0),DT(e)}};fT("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),PT);var AT=r(at.Map),IT=Yn,NT=Es.some,jT=Uh("some");IT({target:"Array",proto:!0,forced:!jT},{some:function(t){return NT(this,t,arguments.length>1?arguments[1]:void 0)}});var RT=Ph("Array","some"),FT=pt,LT=RT,YT=Array.prototype,zT=r((function(t){var e=t.some;return t===YT||FT(YT,t)&&e===YT.some?LT:e})),HT=Ph("Array","keys"),GT=ki,BT=se,WT=pt,VT=HT,UT=Array.prototype,qT={DOMTokenList:!0,NodeList:!0},XT=r((function(t){var e=t.keys;return t===UT||WT(UT,t)&&e===UT.keys||BT(qT,GT(t))?VT:e})),$T=ko,KT=Math.floor,QT=function(t,e){var n=t.length,i=KT(n/2);return n<8?ZT(t,e):JT(t,QT($T(t,0,i),e),QT($T(t,i),e),e)},ZT=function(t,e){for(var n,i,r=t.length,o=1;o<r;){for(i=o,n=t[o];i&&e(t[i-1],n)>0;)t[i]=t[--i];i!==o++&&(t[i]=n)}return t},JT=function(t,e,n,i){for(var r=e.length,o=n.length,s=0,a=0;s<r||a<o;)t[s+a]=s<r&&a<o?i(e[s],n[a])<=0?e[s++]:n[a++]:s<r?e[s++]:n[a++];return t},tC=QT,eC=ft.match(/firefox\/(\d+)/i),nC=!!eC&&+eC[1],iC=/MSIE|Trident/.test(ft),rC=ft.match(/AppleWebKit\/(\d+)\./),oC=!!rC&&+rC[1],sC=Yn,aC=b,lC=Ft,uC=ie,cC=ri,hC=km,dC=mr,pC=l,fC=tC,mC=Uh,vC=nC,gC=iC,yC=_t,bC=oC,wC=[],_C=aC(wC.sort),kC=aC(wC.push),xC=pC((function(){wC.sort(void 0)})),SC=pC((function(){wC.sort(null)})),DC=mC("sort"),TC=!pC((function(){if(yC)return yC<70;if(!(vC&&vC>3)){if(gC)return!0;if(bC)return bC<603;var t,e,n,i,r="";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(i=0;i<47;i++)wC.push({k:e+i,v:n})}for(wC.sort((function(t,e){return e.v-t.v})),i=0;i<wC.length;i++)e=wC[i].k.charAt(0),r.charAt(r.length-1)!==e&&(r+=e);return"DGBEFHACIJK"!==r}})),CC=function(t){return function(e,n){return void 0===n?-1:void 0===e?1:void 0!==t?+t(e,n)||0:dC(e)>dC(n)?1:-1}};sC({target:"Array",proto:!0,forced:xC||!SC||!DC||!TC},{sort:function(t){void 0!==t&&lC(t);var e=uC(this);if(TC)return void 0===t?_C(e):_C(e,t);var n,i,r=[],o=cC(e);for(i=0;i<o;i++)i in e&&kC(r,e[i]);for(fC(r,CC(t)),n=cC(r),i=0;i<n;)e[i]=r[i++];for(;i<o;)hC(e,i++);return e}});var OC=Ph("Array","sort"),EC=pt,MC=OC,PC=Array.prototype,AC=r((function(t){var e=t.sort;return t===PC||EC(PC,t)&&e===PC.sort?MC:e})),IC=Ph("Array","values"),NC=ki,jC=se,RC=pt,FC=IC,LC=Array.prototype,YC={DOMTokenList:!0,NodeList:!0},zC=r((function(t){var e=t.values;return t===LC||RC(LC,t)&&e===LC.values||jC(YC,NC(t))?FC:e})),HC=r(sh),GC=Ph("Array","entries"),BC=ki,WC=se,VC=pt,UC=GC,qC=Array.prototype,XC={DOMTokenList:!0,NodeList:!0},$C=r((function(t){var e=t.entries;return t===qC||VC(qC,t)&&e===qC.entries||WC(XC,BC(t))?UC:e}));let KC;const QC=new Uint8Array(16);function ZC(){if(!KC&&(KC="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!KC))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return KC(QC)}const JC=[];for(let t=0;t<256;++t)JC.push((t+256).toString(16).slice(1));function tO(t,e=0){return JC[t[e+0]]+JC[t[e+1]]+JC[t[e+2]]+JC[t[e+3]]+"-"+JC[t[e+4]]+JC[t[e+5]]+"-"+JC[t[e+6]]+JC[t[e+7]]+"-"+JC[t[e+8]]+JC[t[e+9]]+"-"+JC[t[e+10]]+JC[t[e+11]]+JC[t[e+12]]+JC[t[e+13]]+JC[t[e+14]]+JC[t[e+15]]}var eO={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function nO(t,e,n){if(eO.randomUUID&&!e&&!t)return eO.randomUUID();const i=(t=t||{}).random||(t.rng||ZC)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,e){n=n||0;for(let t=0;t<16;++t)e[n+t]=i[t];return e}return tO(i)}function iO(t){return"string"==typeof t||"number"==typeof t}var rO=function(){function t(e){n(this,t),mh(this,"_queue",[]),mh(this,"_timeout",null),mh(this,"_extended",null),this.delay=null,this.max=1/0,this.setOptions(e)}return fh(t,[{key:"setOptions",value:function(t){t&&void 0!==t.delay&&(this.delay=t.delay),t&&void 0!==t.max&&(this.max=t.max),this._flushIfNeeded()}},{key:"destroy",value:function(){if(this.flush(),this._extended){for(var t=this._extended.object,e=this._extended.methods,n=0;n<e.length;n++){var i=e[n];i.original?t[i.name]=i.original:delete t[i.name]}this._extended=null}}},{key:"replace",value:function(t,e){var n=this,i=t[e];if(!i)throw new Error("Method "+e+" undefined");t[e]=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];n.queue({args:e,fn:i,context:this})}}},{key:"queue",value:function(t){"function"==typeof t?this._queue.push({fn:t}):this._queue.push(t),this._flushIfNeeded()}},{key:"_flushIfNeeded",value:function(){var t=this;this._queue.length>this.max&&this.flush(),null!=this._timeout&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&"number"==typeof this.delay&&(this._timeout=Nv((function(){t.flush()}),this.delay))}},{key:"flush",value:function(){var t,e;um(t=zm(e=this._queue).call(e,0)).call(t,(function(t){t.fn.apply(t.context||t.fn,t.args||[])}))}}],[{key:"extend",value:function(e,n){var i=new t(n);if(void 0!==e.flush)throw new Error("Target object already has a property flush");e.flush=function(){i.flush()};var r=[{name:"flush",original:void 0}];if(n&&n.replace)for(var o=0;o<n.replace.length;o++){var s=n.replace[o];r.push({name:s,original:e[s]}),i.replace(e,s)}return i._extended={object:e,methods:r},i}}]),t}(),oO=function(){function t(){n(this,t),mh(this,"_subscribers",{"*":[],add:[],remove:[],update:[]}),mh(this,"subscribe",t.prototype.on),mh(this,"unsubscribe",t.prototype.off)}return fh(t,[{key:"_trigger",value:function(t,e,n){var i,r;if("*"===t)throw new Error("Cannot trigger event *");um(i=Lf(r=[]).call(r,Af(this._subscribers[t]),Af(this._subscribers["*"]))).call(i,(function(i){i(t,e,null!=n?n:null)}))}},{key:"on",value:function(t,e){"function"==typeof e&&this._subscribers[t].push(e)}},{key:"off",value:function(t,e){var n;this._subscribers[t]=hd(n=this._subscribers[t]).call(n,(function(t){return t!==e}))}}]),t}();fT("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),PT);var sO=r(at.Set),aO=r(ap);function lO(t,e){var n=void 0!==If&&Ap(t)||t["@@iterator"];if(!n){if(qf(t)||(n=uO(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function uO(t,e){var n;if(t){if("string"==typeof t)return cO(t,e);var i=Yf(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Ep(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?cO(t,e):void 0}}function cO(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var hO=function(t){function e(t){n(this,e),this._pairs=t}return fh(e,[{key:t,value:_D.mark((function t(){var e,n,i,r,o;return _D.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=lO(this._pairs),t.prev=1,e.s();case 3:if((n=e.n()).done){t.next=9;break}return i=Of(n.value,2),r=i[0],o=i[1],t.next=7,[r,o];case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"entries",value:_D.mark((function t(){var e,n,i,r,o;return _D.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=lO(this._pairs),t.prev=1,e.s();case 3:if((n=e.n()).done){t.next=9;break}return i=Of(n.value,2),r=i[0],o=i[1],t.next=7,[r,o];case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"keys",value:_D.mark((function t(){var e,n,i,r;return _D.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=lO(this._pairs),t.prev=1,e.s();case 3:if((n=e.n()).done){t.next=9;break}return i=Of(n.value,1),r=i[0],t.next=7,r;case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"values",value:_D.mark((function t(){var e,n,i,r;return _D.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=lO(this._pairs),t.prev=1,e.s();case 3:if((n=e.n()).done){t.next=9;break}return i=Of(n.value,2),r=i[1],t.next=7,r;case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"toIdArray",value:function(){var t;return bd(t=Af(this._pairs)).call(t,(function(t){return t[0]}))}},{key:"toItemArray",value:function(){var t;return bd(t=Af(this._pairs)).call(t,(function(t){return t[1]}))}},{key:"toEntryArray",value:function(){return Af(this._pairs)}},{key:"toObjectMap",value:function(){var t,e=cv(null),n=lO(this._pairs);try{for(n.s();!(t=n.n()).done;){var i=Of(t.value,2),r=i[0],o=i[1];e[r]=o}}catch(t){n.e(t)}finally{n.f()}return e}},{key:"toMap",value:function(){return new AT(this._pairs)}},{key:"toIdSet",value:function(){return new sO(this.toIdArray())}},{key:"toItemSet",value:function(){return new sO(this.toItemArray())}},{key:"cache",value:function(){return new e(Af(this._pairs))}},{key:"distinct",value:function(t){var e,n=new sO,i=lO(this._pairs);try{for(i.s();!(e=i.n()).done;){var r=Of(e.value,2),o=r[0],s=r[1];n.add(t(s,o))}}catch(t){i.e(t)}finally{i.f()}return n}},{key:"filter",value:function(t){var n=this._pairs;return new e({[HC]:()=>_D.mark((function e(){var i,r,o,s,a;return _D.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=lO(n),e.prev=1,i.s();case 3:if((r=i.n()).done){e.next=10;break}if(o=Of(r.value,2),s=o[0],a=o[1],!t(a,s)){e.next=8;break}return e.next=8,[s,a];case 8:e.next=3;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(1),i.e(e.t0);case 15:return e.prev=15,i.f(),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[1,12,15,18]])}))()})}},{key:"forEach",value:function(t){var e,n=lO(this._pairs);try{for(n.s();!(e=n.n()).done;){var i=Of(e.value,2),r=i[0];t(i[1],r)}}catch(t){n.e(t)}finally{n.f()}}},{key:"map",value:function(t){var n=this._pairs;return new e({[HC]:()=>_D.mark((function e(){var i,r,o,s,a;return _D.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=lO(n),e.prev=1,i.s();case 3:if((r=i.n()).done){e.next=9;break}return o=Of(r.value,2),s=o[0],a=o[1],e.next=7,[s,t(a,s)];case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),i.e(e.t0);case 14:return e.prev=14,i.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[1,11,14,17]])}))()})}},{key:"max",value:function(t){var e=aO(this._pairs),n=e.next();if(n.done)return null;for(var i=n.value[1],r=t(n.value[1],n.value[0]);!(n=e.next()).done;){var o=Of(n.value,2),s=o[0],a=o[1],l=t(a,s);l>r&&(r=l,i=a)}return i}},{key:"min",value:function(t){var e=aO(this._pairs),n=e.next();if(n.done)return null;for(var i=n.value[1],r=t(n.value[1],n.value[0]);!(n=e.next()).done;){var o=Of(n.value,2),s=o[0],a=o[1],l=t(a,s);l<r&&(r=l,i=a)}return i}},{key:"reduce",value:function(t,e){var n,i=lO(this._pairs);try{for(i.s();!(n=i.n()).done;){var r=Of(n.value,2),o=r[0];e=t(e,r[1],o)}}catch(t){i.e(t)}finally{i.f()}return e}},{key:"sort",value:function(t){var n=this;return new e({[HC]:function(){var e;return aO(AC(e=Af(n._pairs)).call(e,(function(e,n){var i=Of(e,2),r=i[0],o=i[1],s=Of(n,2),a=s[0],l=s[1];return t(o,l,r,a)})))}})}}]),e}(HC);function dO(t,e){var n=Zf(t);if(Lb){var i=Lb(t);e&&(i=hd(i).call(i,(function(e){return Xb(t,e).enumerable}))),n.push.apply(n,i)}return n}function pO(t){for(var e=1;e<arguments.length;e++){var n,i,r=null!=arguments[e]?arguments[e]:{};e%2?um(n=dO(Object(r),!0)).call(n,(function(e){mh(t,e,r[e])})):Jb?sw(t,Jb(r)):um(i=dO(Object(r))).call(i,(function(e){aw(t,e,Xb(r,e))}))}return t}function fO(t,e){var n=void 0!==If&&Ap(t)||t["@@iterator"];if(!n){if(qf(t)||(n=mO(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function mO(t,e){var n;if(t){if("string"==typeof t)return vO(t,e);var i=Yf(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Ep(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?vO(t,e):void 0}}function vO(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function gO(t){var e=yO();return function(){var n,i=bw(t);if(e){var r=bw(this).constructor;n=Fb(i,arguments,r)}else n=i.apply(this,arguments);return vw(this,n)}}function yO(){if("undefined"==typeof Reflect||!Fb)return!1;if(Fb.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Fb(Boolean,[],(function(){}))),!0}catch(t){return!1}}function bO(t,e){return null==t[e]&&(t[e]=nO()),t}var wO=function(t){mw(i,t);var e=gO(i);function i(t,r){var o;return n(this,i),mh(lw(o=e.call(this)),"_queue",null),t&&!qf(t)&&(r=t,t=[]),o._options=r||{},o._data=new AT,o.length=0,o._idProp=o._options.fieldId||"id",t&&t.length&&o.add(t),o.setOptions(r),o}return fh(i,[{key:"idProp",get:function(){return this._idProp}},{key:"setOptions",value:function(t){t&&void 0!==t.queue&&(!1===t.queue?this._queue&&(this._queue.destroy(),this._queue=null):(this._queue||(this._queue=rO.extend(this,{replace:["add","update","remove"]})),t.queue&&"object"==typeof t.queue&&this._queue.setOptions(t.queue)))}},{key:"add",value:function(t,e){var n,i=this,r=[];if(qf(t)){var o=bd(t).call(t,(function(t){return t[i._idProp]}));if(zT(o).call(o,(function(t){return i._data.has(t)})))throw new Error("A duplicate id was found in the parameter array.");for(var s=0,a=t.length;s<a;s++)n=this._addItem(t[s]),r.push(n)}else{if(!t||"object"!=typeof t)throw new Error("Unknown dataType");n=this._addItem(t),r.push(n)}return r.length&&this._trigger("add",{items:r},e),r}},{key:"update",value:function(t,e){var n=this,i=[],r=[],o=[],s=[],a=this._idProp,l=function(t){var e=t[a];if(null!=e&&n._data.has(e)){var l=t,u=ev({},n._data.get(e)),c=n._updateItem(l);r.push(c),s.push(l),o.push(u)}else{var h=n._addItem(t);i.push(h)}};if(qf(t))for(var u=0,c=t.length;u<c;u++)t[u]&&"object"==typeof t[u]?l(t[u]):console.warn("Ignoring input item, which is not an object at index "+u);else{if(!t||"object"!=typeof t)throw new Error("Unknown dataType");l(t)}if(i.length&&this._trigger("add",{items:i},e),r.length){var h={items:r,oldData:o,data:s};this._trigger("update",h,e)}return Lf(i).call(i,r)}},{key:"updateOnly",value:function(t,e){var n,i=this;qf(t)||(t=[t]);var r=bd(n=bd(t).call(t,(function(t){var e=i._data.get(t[i._idProp]);if(null==e)throw new Error("Updating non-existent items is not allowed.");return{oldData:e,update:t}}))).call(n,(function(t){var e=t.oldData,n=t.update,r=e[i._idProp],o=cb(e,n);return i._data.set(r,o),{id:r,oldData:e,updatedData:o}}));if(r.length){var o={items:bd(r).call(r,(function(t){return t.id})),oldData:bd(r).call(r,(function(t){return t.oldData})),data:bd(r).call(r,(function(t){return t.updatedData}))};return this._trigger("update",o,e),o.items}return[]}},{key:"get",value:function(t,e){var n=void 0,i=void 0,r=void 0;iO(t)?(n=t,r=e):qf(t)?(i=t,r=e):r=t;var o,s=r&&"Object"===r.returnType?"Object":"Array",a=r&&hd(r),l=[],u=void 0,c=void 0,h=void 0;if(null!=n)(u=this._data.get(n))&&a&&!a(u)&&(u=void 0);else if(null!=i)for(var d=0,p=i.length;d<p;d++)null==(u=this._data.get(i[d]))||a&&!a(u)||l.push(u);else for(var f,m=0,v=(c=Af(XT(f=this._data).call(f))).length;m<v;m++)h=c[m],null==(u=this._data.get(h))||a&&!a(u)||l.push(u);if(r&&r.order&&null==n&&this._sort(l,r.order),r&&r.fields){var g=r.fields;if(null!=n&&null!=u)u=this._filterFields(u,g);else for(var y=0,b=l.length;y<b;y++)l[y]=this._filterFields(l[y],g)}if("Object"==s){for(var w={},_=0,k=l.length;_<k;_++){var x=l[_];w[x[this._idProp]]=x}return w}return null!=n?null!==(o=u)&&void 0!==o?o:null:l}},{key:"getIds",value:function(t){var e=this._data,n=t&&hd(t),i=t&&t.order,r=Af(XT(e).call(e)),o=[];if(n)if(i){for(var s=[],a=0,l=r.length;a<l;a++){var u=r[a],c=this._data.get(u);null!=c&&n(c)&&s.push(c)}this._sort(s,i);for(var h=0,d=s.length;h<d;h++)o.push(s[h][this._idProp])}else for(var p=0,f=r.length;p<f;p++){var m=r[p],v=this._data.get(m);null!=v&&n(v)&&o.push(v[this._idProp])}else if(i){for(var g=[],y=0,b=r.length;y<b;y++){var w=r[y];g.push(e.get(w))}this._sort(g,i);for(var _=0,k=g.length;_<k;_++)o.push(g[_][this._idProp])}else for(var x=0,S=r.length;x<S;x++){var D=r[x],T=e.get(D);null!=T&&o.push(T[this._idProp])}return o}},{key:"getDataSet",value:function(){return this}},{key:"forEach",value:function(t,e){var n=e&&hd(e),i=this._data,r=Af(XT(i).call(i));if(e&&e.order)for(var o=this.get(e),s=0,a=o.length;s<a;s++){var l=o[s];t(l,l[this._idProp])}else for(var u=0,c=r.length;u<c;u++){var h=r[u],d=this._data.get(h);null==d||n&&!n(d)||t(d,h)}}},{key:"map",value:function(t,e){for(var n=e&&hd(e),i=[],r=this._data,o=Af(XT(r).call(r)),s=0,a=o.length;s<a;s++){var l=o[s],u=this._data.get(l);null==u||n&&!n(u)||i.push(t(u,l))}return e&&e.order&&this._sort(i,e.order),i}},{key:"_filterFields",value:function(t,e){var n;return t?id(n=qf(e)?e:Zf(e)).call(n,(function(e,n){return e[n]=t[n],e}),{}):t}},{key:"_sort",value:function(t,e){if("string"==typeof e){var n=e;AC(t).call(t,(function(t,e){var i=t[n],r=e[n];return i>r?1:i<r?-1:0}))}else{if("function"!=typeof e)throw new TypeError("Order must be a function or a string");AC(t).call(t,e)}}},{key:"remove",value:function(t,e){for(var n=[],i=[],r=qf(t)?t:[t],o=0,s=r.length;o<s;o++){var a=this._remove(r[o]);if(a){var l=a[this._idProp];null!=l&&(n.push(l),i.push(a))}}return n.length&&this._trigger("remove",{items:n,oldData:i},e),n}},{key:"_remove",value:function(t){var e;if(iO(t)?e=t:t&&"object"==typeof t&&(e=t[this._idProp]),null!=e&&this._data.has(e)){var n=this._data.get(e)||null;return this._data.delete(e),--this.length,n}return null}},{key:"clear",value:function(t){for(var e,n=Af(XT(e=this._data).call(e)),i=[],r=0,o=n.length;r<o;r++)i.push(this._data.get(n[r]));return this._data.clear(),this.length=0,this._trigger("remove",{items:n,oldData:i},t),n}},{key:"max",value:function(t){var e,n,i=null,r=null,o=fO(zC(e=this._data).call(e));try{for(o.s();!(n=o.n()).done;){var s=n.value,a=s[t];"number"==typeof a&&(null==r||a>r)&&(i=s,r=a)}}catch(t){o.e(t)}finally{o.f()}return i||null}},{key:"min",value:function(t){var e,n,i=null,r=null,o=fO(zC(e=this._data).call(e));try{for(o.s();!(n=o.n()).done;){var s=n.value,a=s[t];"number"==typeof a&&(null==r||a<r)&&(i=s,r=a)}}catch(t){o.e(t)}finally{o.f()}return i||null}},{key:"distinct",value:function(t){for(var e=this._data,n=Af(XT(e).call(e)),i=[],r=0,o=0,s=n.length;o<s;o++){for(var a=n[o],l=e.get(a)[t],u=!1,c=0;c<r;c++)if(i[c]==l){u=!0;break}u||void 0===l||(i[r]=l,r++)}return i}},{key:"_addItem",value:function(t){var e=bO(t,this._idProp),n=e[this._idProp];if(this._data.has(n))throw new Error("Cannot add item: item with id "+n+" already exists");return this._data.set(n,e),++this.length,n}},{key:"_updateItem",value:function(t){var e=t[this._idProp];if(null==e)throw new Error("Cannot update item: item has no id (item: "+fv(t)+")");var n=this._data.get(e);if(!n)throw new Error("Cannot update item: no item with id "+e+" found");return this._data.set(e,pO(pO({},n),t)),e}},{key:"stream",value:function(t){if(t){var e=this._data;return new hO({[HC]:()=>_D.mark((function n(){var i,r,o,s;return _D.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:i=fO(t),n.prev=1,i.s();case 3:if((r=i.n()).done){n.next=11;break}if(o=r.value,null==(s=e.get(o))){n.next=9;break}return n.next=9,[o,s];case 9:n.next=3;break;case 11:n.next=16;break;case 13:n.prev=13,n.t0=n.catch(1),i.e(n.t0);case 16:return n.prev=16,i.f(),n.finish(16);case 19:case"end":return n.stop()}}),n,null,[[1,13,16,19]])}))()})}var n;return new hO({[HC]:Fh(n=$C(this._data)).call(n,this._data)})}}]),i}(oO);function _O(t,e){var n=void 0!==If&&Ap(t)||t["@@iterator"];if(!n){if(qf(t)||(n=kO(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function kO(t,e){var n;if(t){if("string"==typeof t)return xO(t,e);var i=Yf(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Ep(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?xO(t,e):void 0}}function xO(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function SO(t){var e=DO();return function(){var n,i=bw(t);if(e){var r=bw(this).constructor;n=Fb(i,arguments,r)}else n=i.apply(this,arguments);return vw(this,n)}}function DO(){if("undefined"==typeof Reflect||!Fb)return!1;if(Fb.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Fb(Boolean,[],(function(){}))),!0}catch(t){return!1}}var TO=function(t){mw(i,t);var e=SO(i);function i(t,r){var o,s;return n(this,i),mh(lw(s=e.call(this)),"length",0),mh(lw(s),"_ids",new sO),s._options=r||{},s._listener=Fh(o=s._onEvent).call(o,lw(s)),s.setData(t),s}return fh(i,[{key:"idProp",get:function(){return this.getDataSet().idProp}},{key:"setData",value:function(t){if(this._data){this._data.off&&this._data.off("*",this._listener);var e=this._data.getIds({filter:hd(this._options)}),n=this._data.get(e);this._ids.clear(),this.length=0,this._trigger("remove",{items:e,oldData:n})}if(null!=t){this._data=t;for(var i=this._data.getIds({filter:hd(this._options)}),r=0,o=i.length;r<o;r++){var s=i[r];this._ids.add(s)}this.length=i.length,this._trigger("add",{items:i})}else this._data=new wO;this._data.on&&this._data.on("*",this._listener)}},{key:"refresh",value:function(){for(var t=this._data.getIds({filter:hd(this._options)}),e=Af(this._ids),n={},i=[],r=[],o=[],s=0,a=t.length;s<a;s++){var l=t[s];n[l]=!0,this._ids.has(l)||(i.push(l),this._ids.add(l))}for(var u=0,c=e.length;u<c;u++){var h=e[u],d=this._data.get(h);null==d?console.error("If you see this, report it please."):n[h]||(r.push(h),o.push(d),this._ids.delete(h))}this.length+=i.length-r.length,i.length&&this._trigger("add",{items:i}),r.length&&this._trigger("remove",{items:r,oldData:o})}},{key:"get",value:function(t,e){if(null==this._data)return null;var n,i=null;iO(t)||qf(t)?(i=t,n=e):n=t;var r=ev({},this._options,n),o=hd(this._options),s=n&&hd(n);return o&&s&&(r.filter=function(t){return o(t)&&s(t)}),null==i?this._data.get(r):this._data.get(i,r)}},{key:"getIds",value:function(t){if(this._data.length){var e,n=hd(this._options),i=null!=t?hd(t):null;return e=i?n?function(t){return n(t)&&i(t)}:i:n,this._data.getIds({filter:e,order:t&&t.order})}return[]}},{key:"forEach",value:function(t,e){if(this._data){var n,i,r=hd(this._options),o=e&&hd(e);i=o?r?function(t){return r(t)&&o(t)}:o:r,um(n=this._data).call(n,t,{filter:i,order:e&&e.order})}}},{key:"map",value:function(t,e){if(this._data){var n,i,r=hd(this._options),o=e&&hd(e);return i=o?r?function(t){return r(t)&&o(t)}:o:r,bd(n=this._data).call(n,t,{filter:i,order:e&&e.order})}return[]}},{key:"getDataSet",value:function(){return this._data.getDataSet()}},{key:"stream",value:function(t){var e;return this._data.stream(t||{[HC]:Fh(e=XT(this._ids)).call(e,this._ids)})}},{key:"dispose",value:function(){var t;null!==(t=this._data)&&void 0!==t&&t.off&&this._data.off("*",this._listener);var e,n="This data view has already been disposed of.",r={get:function(){throw new Error(n)},set:function(){throw new Error(n)},configurable:!1},o=_O(Uf(i.prototype));try{for(o.s();!(e=o.n()).done;){var s=e.value;aw(this,s,r)}}catch(t){o.e(t)}finally{o.f()}}},{key:"_onEvent",value:function(t,e,n){if(e&&e.items&&this._data){var i=e.items,r=[],o=[],s=[],a=[],l=[],u=[];switch(t){case"add":for(var c=0,h=i.length;c<h;c++){var d=i[c];this.get(d)&&(this._ids.add(d),r.push(d))}break;case"update":for(var p=0,f=i.length;p<f;p++){var m=i[p];this.get(m)?this._ids.has(m)?(o.push(m),l.push(e.data[p]),a.push(e.oldData[p])):(this._ids.add(m),r.push(m)):this._ids.has(m)&&(this._ids.delete(m),s.push(m),u.push(e.oldData[p]))}break;case"remove":for(var v=0,g=i.length;v<g;v++){var y=i[v];this._ids.has(y)&&(this._ids.delete(y),s.push(y),u.push(e.oldData[v]))}}this.length+=r.length-s.length,r.length&&this._trigger("add",{items:r},n),o.length&&this._trigger("update",{items:o,oldData:a,data:l},n),s.length&&this._trigger("remove",{items:s,oldData:u},n)}}}]),i}(oO);function CO(t,e){return"object"==typeof e&&null!==e&&t===e.idProp&&"function"==typeof e.add&&"function"==typeof e.clear&&"function"==typeof e.distinct&&"function"==typeof um(e)&&"function"==typeof e.get&&"function"==typeof e.getDataSet&&"function"==typeof e.getIds&&"number"==typeof e.length&&"function"==typeof bd(e)&&"function"==typeof e.max&&"function"==typeof e.min&&"function"==typeof e.off&&"function"==typeof e.on&&"function"==typeof e.remove&&"function"==typeof e.setOptions&&"function"==typeof e.stream&&"function"==typeof e.update&&"function"==typeof e.updateOnly}function OO(t,e){return"object"==typeof e&&null!==e&&t===e.idProp&&"function"==typeof um(e)&&"function"==typeof e.get&&"function"==typeof e.getDataSet&&"function"==typeof e.getIds&&"number"==typeof e.length&&"function"==typeof bd(e)&&"function"==typeof e.off&&"function"==typeof e.on&&"function"==typeof e.stream&&CO(t,e.getDataSet())}t.DELETE=ub,t.DataSet=wO,t.DataStream=hO,t.DataView=TO,t.Queue=rO,t.createNewDataPipeFrom=jd,t.isDataSetLike=CO,t.isDataViewLike=OO}(Q.exports)),Q.exports}
|
||
/**
|
||
* vis-timeline and vis-graph2d
|
||
* https://visjs.github.io/vis-timeline/
|
||
*
|
||
* Create a fully customizable, interactive timeline with items and ranges.
|
||
*
|
||
* @version 7.7.3
|
||
* @date 2023-10-27T17:57:57.604Z
|
||
*
|
||
* @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.
|
||
*/!function(t,n,r){var o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function s(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var a=function(t){return t&&t.Math===Math&&t},l=a("object"==typeof globalThis&&globalThis)||a("object"==typeof window&&window)||a("object"==typeof self&&self)||a("object"==typeof o&&o)||function(){return this}()||o||Function("return this")(),u=function(t){try{return!!t()}catch(t){return!0}},c=!u((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),h=c,d=Function.prototype,p=d.apply,f=d.call,m="object"==typeof Reflect&&Reflect.apply||(h?f.bind(p):function(){return f.apply(p,arguments)}),v=c,g=Function.prototype,y=g.call,b=v&&g.bind.bind(y,y),w=v?b:function(t){return function(){return y.apply(t,arguments)}},_=w,k=_({}.toString),x=_("".slice),S=function(t){return x(k(t),8,-1)},D=S,T=w,C=function(t){if("Function"===D(t))return T(t)},O="object"==typeof document&&document.all,E={all:O,IS_HTMLDDA:void 0===O&&void 0!==O},M=E.all,P=E.IS_HTMLDDA?function(t){return"function"==typeof t||t===M}:function(t){return"function"==typeof t},A={},I=!u((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),N=c,j=Function.prototype.call,R=N?j.bind(j):function(){return j.apply(j,arguments)},F={},L={}.propertyIsEnumerable,Y=Object.getOwnPropertyDescriptor,z=Y&&!L.call({1:2},1);F.f=z?function(t){var e=Y(this,t);return!!e&&e.enumerable}:L;var H,G,B=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},W=u,V=S,U=Object,q=w("".split),X=W((function(){return!U("z").propertyIsEnumerable(0)}))?function(t){return"String"===V(t)?q(t,""):U(t)}:U,$=function(t){return null==t},K=$,Q=TypeError,Z=function(t){if(K(t))throw new Q("Can't call method on "+t);return t},J=X,tt=Z,et=function(t){return J(tt(t))},nt=P,it=E.all,rt=E.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:nt(t)||t===it}:function(t){return"object"==typeof t?null!==t:nt(t)},ot={},st=ot,at=l,lt=P,ut=function(t){return lt(t)?t:void 0},ct=function(t,e){return arguments.length<2?ut(st[t])||ut(at[t]):st[t]&&st[t][e]||at[t]&&at[t][e]},ht=w({}.isPrototypeOf),dt="undefined"!=typeof navigator&&String(navigator.userAgent)||"",pt=l,ft=dt,mt=pt.process,vt=pt.Deno,gt=mt&&mt.versions||vt&&vt.version,yt=gt&>.v8;yt&&(G=(H=yt.split("."))[0]>0&&H[0]<4?1:+(H[0]+H[1])),!G&&ft&&(!(H=ft.match(/Edge\/(\d+)/))||H[1]>=74)&&(H=ft.match(/Chrome\/(\d+)/))&&(G=+H[1]);var bt=G,wt=bt,_t=u,kt=l.String,xt=!!Object.getOwnPropertySymbols&&!_t((function(){var t=Symbol("symbol detection");return!kt(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&wt&&wt<41})),St=xt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Dt=ct,Tt=P,Ct=ht,Ot=Object,Et=St?function(t){return"symbol"==typeof t}:function(t){var e=Dt("Symbol");return Tt(e)&&Ct(e.prototype,Ot(t))},Mt=String,Pt=function(t){try{return Mt(t)}catch(t){return"Object"}},At=P,It=Pt,Nt=TypeError,jt=function(t){if(At(t))return t;throw new Nt(It(t)+" is not a function")},Rt=jt,Ft=$,Lt=function(t,e){var n=t[e];return Ft(n)?void 0:Rt(n)},Yt=R,zt=P,Ht=rt,Gt=TypeError,Bt={exports:{}},Wt=l,Vt=Object.defineProperty,Ut=function(t,e){try{Vt(Wt,t,{value:e,configurable:!0,writable:!0})}catch(n){Wt[t]=e}return e},qt="__core-js_shared__",Xt=l[qt]||Ut(qt,{}),$t=Xt;(Bt.exports=function(t,e){return $t[t]||($t[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.33.0",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Kt=Bt.exports,Qt=Z,Zt=Object,Jt=function(t){return Zt(Qt(t))},te=Jt,ee=w({}.hasOwnProperty),ne=Object.hasOwn||function(t,e){return ee(te(t),e)},ie=w,re=0,oe=Math.random(),se=ie(1..toString),ae=function(t){return"Symbol("+(void 0===t?"":t)+")_"+se(++re+oe,36)},le=Kt,ue=ne,ce=ae,he=xt,de=St,pe=l.Symbol,fe=le("wks"),me=de?pe.for||pe:pe&&pe.withoutSetter||ce,ve=function(t){return ue(fe,t)||(fe[t]=he&&ue(pe,t)?pe[t]:me("Symbol."+t)),fe[t]},ge=R,ye=rt,be=Et,we=Lt,_e=function(t,e){var n,i;if("string"===e&&zt(n=t.toString)&&!Ht(i=Yt(n,t)))return i;if(zt(n=t.valueOf)&&!Ht(i=Yt(n,t)))return i;if("string"!==e&&zt(n=t.toString)&&!Ht(i=Yt(n,t)))return i;throw new Gt("Can't convert object to primitive value")},ke=TypeError,xe=ve("toPrimitive"),Se=function(t,e){if(!ye(t)||be(t))return t;var n,i=we(t,xe);if(i){if(void 0===e&&(e="default"),n=ge(i,t,e),!ye(n)||be(n))return n;throw new ke("Can't convert object to primitive value")}return void 0===e&&(e="number"),_e(t,e)},De=Et,Te=function(t){var e=Se(t,"string");return De(e)?e:e+""},Ce=rt,Oe=l.document,Ee=Ce(Oe)&&Ce(Oe.createElement),Me=function(t){return Ee?Oe.createElement(t):{}},Pe=Me,Ae=!I&&!u((function(){return 7!==Object.defineProperty(Pe("div"),"a",{get:function(){return 7}}).a})),Ie=I,Ne=R,je=F,Re=B,Fe=et,Le=Te,Ye=ne,ze=Ae,He=Object.getOwnPropertyDescriptor;A.f=Ie?He:function(t,e){if(t=Fe(t),e=Le(e),ze)try{return He(t,e)}catch(t){}if(Ye(t,e))return Re(!Ne(je.f,t,e),t[e])};var Ge=u,Be=P,We=/#|\.prototype\./,Ve=function(t,e){var n=qe[Ue(t)];return n===$e||n!==Xe&&(Be(e)?Ge(e):!!e)},Ue=Ve.normalize=function(t){return String(t).replace(We,".").toLowerCase()},qe=Ve.data={},Xe=Ve.NATIVE="N",$e=Ve.POLYFILL="P",Ke=Ve,Qe=jt,Ze=c,Je=C(C.bind),tn=function(t,e){return Qe(t),void 0===e?t:Ze?Je(t,e):function(){return t.apply(e,arguments)}},en={},nn=I&&u((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),rn=rt,on=String,sn=TypeError,an=function(t){if(rn(t))return t;throw new sn(on(t)+" is not an object")},ln=I,un=Ae,cn=nn,hn=an,dn=Te,pn=TypeError,fn=Object.defineProperty,mn=Object.getOwnPropertyDescriptor,vn="enumerable",gn="configurable",yn="writable";en.f=ln?cn?function(t,e,n){if(hn(t),e=dn(e),hn(n),"function"==typeof t&&"prototype"===e&&"value"in n&&yn in n&&!n[yn]){var i=mn(t,e);i&&i[yn]&&(t[e]=n.value,n={configurable:gn in n?n[gn]:i[gn],enumerable:vn in n?n[vn]:i[vn],writable:!1})}return fn(t,e,n)}:fn:function(t,e,n){if(hn(t),e=dn(e),hn(n),un)try{return fn(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new pn("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var bn=en,wn=B,_n=I?function(t,e,n){return bn.f(t,e,wn(1,n))}:function(t,e,n){return t[e]=n,t},kn=l,xn=m,Sn=C,Dn=P,Tn=A.f,Cn=Ke,On=ot,En=tn,Mn=_n,Pn=ne,An=function(t){var e=function(n,i,r){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,i)}return new t(n,i,r)}return xn(t,this,arguments)};return e.prototype=t.prototype,e},In=function(t,e){var n,i,r,o,s,a,l,u,c,h=t.target,d=t.global,p=t.stat,f=t.proto,m=d?kn:p?kn[h]:(kn[h]||{}).prototype,v=d?On:On[h]||Mn(On,h,{})[h],g=v.prototype;for(o in e)i=!(n=Cn(d?o:h+(p?".":"#")+o,t.forced))&&m&&Pn(m,o),a=v[o],i&&(l=t.dontCallGetSet?(c=Tn(m,o))&&c.value:m[o]),s=i&&l?l:e[o],i&&typeof a==typeof s||(u=t.bind&&i?En(s,kn):t.wrap&&i?An(s):f&&Dn(s)?Sn(s):s,(t.sham||s&&s.sham||a&&a.sham)&&Mn(u,"sham",!0),Mn(v,o,u),f&&(Pn(On,r=h+"Prototype")||Mn(On,r,{}),Mn(On[r],o,s),t.real&&g&&(n||!g[o])&&Mn(g,o,s)))},Nn=w([].slice),jn=w,Rn=jt,Fn=rt,Ln=ne,Yn=Nn,zn=c,Hn=Function,Gn=jn([].concat),Bn=jn([].join),Wn={},Vn=zn?Hn.bind:function(t){var e=Rn(this),n=e.prototype,i=Yn(arguments,1),r=function(){var n=Gn(i,Yn(arguments));return this instanceof r?function(t,e,n){if(!Ln(Wn,e)){for(var i=[],r=0;r<e;r++)i[r]="a["+r+"]";Wn[e]=Hn("C,a","return new C("+Bn(i,",")+")")}return Wn[e](t,n)}(e,n.length,n):e.apply(t,n)};return Fn(n)&&(r.prototype=n),r},Un={};Un[ve("toStringTag")]="z";var qn="[object z]"===String(Un),Xn=qn,$n=P,Kn=S,Qn=ve("toStringTag"),Zn=Object,Jn="Arguments"===Kn(function(){return arguments}()),ti=Xn?Kn:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Zn(t),Qn))?n:Jn?Kn(e):"Object"===(i=Kn(e))&&$n(e.callee)?"Arguments":i},ei=P,ni=Xt,ii=w(Function.toString);ei(ni.inspectSource)||(ni.inspectSource=function(t){return ii(t)});var ri=ni.inspectSource,oi=w,si=u,ai=P,li=ti,ui=ri,ci=function(){},hi=[],di=ct("Reflect","construct"),pi=/^\s*(?:class|function)\b/,fi=oi(pi.exec),mi=!pi.test(ci),vi=function(t){if(!ai(t))return!1;try{return di(ci,hi,t),!0}catch(t){return!1}},gi=function(t){if(!ai(t))return!1;switch(li(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return mi||!!fi(pi,ui(t))}catch(t){return!0}};gi.sham=!0;var yi=!di||si((function(){var t;return vi(vi.call)||!vi(Object)||!vi((function(){t=!0}))||t}))?gi:vi,bi=yi,wi=Pt,_i=TypeError,ki={},xi=Math.ceil,Si=Math.floor,Di=Math.trunc||function(t){var e=+t;return(e>0?Si:xi)(e)},Ti=function(t){var e=+t;return e!=e||0===e?0:Di(e)},Ci=Ti,Oi=Math.max,Ei=Math.min,Mi=function(t,e){var n=Ci(t);return n<0?Oi(n+e,0):Ei(n,e)},Pi=Ti,Ai=Math.min,Ii=function(t){return t>0?Ai(Pi(t),9007199254740991):0},Ni=function(t){return Ii(t.length)},ji=et,Ri=Mi,Fi=Ni,Li=function(t){return function(e,n,i){var r,o=ji(e),s=Fi(o),a=Ri(i,s);if(t&&n!=n){for(;s>a;)if((r=o[a++])!=r)return!0}else for(;s>a;a++)if((t||a in o)&&o[a]===n)return t||a||0;return!t&&-1}},Yi={includes:Li(!0),indexOf:Li(!1)},zi={},Hi=ne,Gi=et,Bi=Yi.indexOf,Wi=zi,Vi=w([].push),Ui=function(t,e){var n,i=Gi(t),r=0,o=[];for(n in i)!Hi(Wi,n)&&Hi(i,n)&&Vi(o,n);for(;e.length>r;)Hi(i,n=e[r++])&&(~Bi(o,n)||Vi(o,n));return o},qi=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Xi=Ui,$i=qi,Ki=Object.keys||function(t){return Xi(t,$i)},Qi=I,Zi=nn,Ji=en,tr=an,er=et,nr=Ki;ki.f=Qi&&!Zi?Object.defineProperties:function(t,e){tr(t);for(var n,i=er(e),r=nr(e),o=r.length,s=0;o>s;)Ji.f(t,n=r[s++],i[n]);return t};var ir,rr=ct("document","documentElement"),or=ae,sr=Kt("keys"),ar=function(t){return sr[t]||(sr[t]=or(t))},lr=an,ur=ki,cr=qi,hr=zi,dr=rr,pr=Me,fr="prototype",mr="script",vr=ar("IE_PROTO"),gr=function(){},yr=function(t){return"<"+mr+">"+t+"</"+mr+">"},br=function(t){t.write(yr("")),t.close();var e=t.parentWindow.Object;return t=null,e},wr=function(){try{ir=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;wr="undefined"!=typeof document?document.domain&&ir?br(ir):(e=pr("iframe"),n="java"+mr+":",e.style.display="none",dr.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(yr("document.F=Object")),t.close(),t.F):br(ir);for(var i=cr.length;i--;)delete wr[fr][cr[i]];return wr()};hr[vr]=!0;var _r=Object.create||function(t,e){var n;return null!==t?(gr[fr]=lr(t),n=new gr,gr[fr]=null,n[vr]=t):n=wr(),void 0===e?n:ur.f(n,e)},kr=In,xr=m,Sr=Vn,Dr=function(t){if(bi(t))return t;throw new _i(wi(t)+" is not a constructor")},Tr=an,Cr=rt,Or=_r,Er=u,Mr=ct("Reflect","construct"),Pr=Object.prototype,Ar=[].push,Ir=Er((function(){function t(){}return!(Mr((function(){}),[],t)instanceof t)})),Nr=!Er((function(){Mr((function(){}))})),jr=Ir||Nr;kr({target:"Reflect",stat:!0,forced:jr,sham:jr},{construct:function(t,e){Dr(t),Tr(e);var n=arguments.length<3?t:Dr(arguments[2]);if(Nr&&!Ir)return Mr(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 i=[null];return xr(Ar,i,e),new(xr(Sr,t,i))}var r=n.prototype,o=Or(Cr(r)?r:Pr),s=xr(t,o,e);return Cr(s)?s:o}});var Rr=s(ot.Reflect.construct);function Fr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Lr={exports:{}},Yr=In,zr=I,Hr=en.f;Yr({target:"Object",stat:!0,forced:Object.defineProperty!==Hr,sham:!zr},{defineProperty:Hr});var Gr=ot.Object,Br=Lr.exports=function(t,e,n){return Gr.defineProperty(t,e,n)};Gr.defineProperty.sham&&(Br.sham=!0);var Wr=Lr.exports,Vr=s(Wr),Ur=S,qr=Array.isArray||function(t){return"Array"===Ur(t)},Xr=TypeError,$r=function(t){if(t>9007199254740991)throw Xr("Maximum allowed index exceeded");return t},Kr=Te,Qr=en,Zr=B,Jr=function(t,e,n){var i=Kr(e);i in t?Qr.f(t,i,Zr(0,n)):t[i]=n},to=qr,eo=yi,no=rt,io=ve("species"),ro=Array,oo=function(t){var e;return to(t)&&(e=t.constructor,(eo(e)&&(e===ro||to(e.prototype))||no(e)&&null===(e=e[io]))&&(e=void 0)),void 0===e?ro:e},so=function(t,e){return new(oo(t))(0===e?0:e)},ao=u,lo=bt,uo=ve("species"),co=function(t){return lo>=51||!ao((function(){var e=[];return(e.constructor={})[uo]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},ho=In,po=u,fo=qr,mo=rt,vo=Jt,go=Ni,yo=$r,bo=Jr,wo=so,_o=co,ko=bt,xo=ve("isConcatSpreadable"),So=ko>=51||!po((function(){var t=[];return t[xo]=!1,t.concat()[0]!==t})),Do=function(t){if(!mo(t))return!1;var e=t[xo];return void 0!==e?!!e:fo(t)};ho({target:"Array",proto:!0,arity:1,forced:!So||!_o("concat")},{concat:function(t){var e,n,i,r,o,s=vo(this),a=wo(s,0),l=0;for(e=-1,i=arguments.length;e<i;e++)if(Do(o=-1===e?s:arguments[e]))for(r=go(o),yo(l+r),n=0;n<r;n++,l++)n in o&&bo(a,l,o[n]);else yo(l+1),bo(a,l++,o);return a.length=l,a}});var To=ti,Co=String,Oo=function(t){if("Symbol"===To(t))throw new TypeError("Cannot convert a Symbol value to a string");return Co(t)},Eo={},Mo=Ui,Po=qi.concat("length","prototype");Eo.f=Object.getOwnPropertyNames||function(t){return Mo(t,Po)};var Ao={},Io=Mi,No=Ni,jo=Jr,Ro=Array,Fo=Math.max,Lo=function(t,e,n){for(var i=No(t),r=Io(e,i),o=Io(void 0===n?i:n,i),s=Ro(Fo(o-r,0)),a=0;r<o;r++,a++)jo(s,a,t[r]);return s.length=a,s},Yo=S,zo=et,Ho=Eo.f,Go=Lo,Bo="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Ao.f=function(t){return Bo&&"Window"===Yo(t)?function(t){try{return Ho(t)}catch(t){return Go(Bo)}}(t):Ho(zo(t))};var Wo={};Wo.f=Object.getOwnPropertySymbols;var Vo=_n,Uo=function(t,e,n,i){return i&&i.enumerable?t[e]=n:Vo(t,e,n),t},qo=en,Xo=function(t,e,n){return qo.f(t,e,n)},$o={},Ko=ve;$o.f=Ko;var Qo,Zo,Jo,ts=ot,es=ne,ns=$o,is=en.f,rs=function(t){var e=ts.Symbol||(ts.Symbol={});es(e,t)||is(e,t,{value:ns.f(t)})},os=R,ss=ct,as=ve,ls=Uo,us=function(){var t=ss("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,i=as("toPrimitive");e&&!e[i]&&ls(e,i,(function(t){return os(n,this)}),{arity:1})},cs=ti,hs=qn?{}.toString:function(){return"[object "+cs(this)+"]"},ds=qn,ps=en.f,fs=_n,ms=ne,vs=hs,gs=ve("toStringTag"),ys=function(t,e,n,i){if(t){var r=n?t:t.prototype;ms(r,gs)||ps(r,gs,{configurable:!0,value:e}),i&&!ds&&fs(r,"toString",vs)}},bs=P,ws=l.WeakMap,_s=bs(ws)&&/native code/.test(String(ws)),ks=l,xs=rt,Ss=_n,Ds=ne,Ts=Xt,Cs=ar,Os=zi,Es="Object already initialized",Ms=ks.TypeError,Ps=ks.WeakMap;if(_s||Ts.state){var As=Ts.state||(Ts.state=new Ps);As.get=As.get,As.has=As.has,As.set=As.set,Qo=function(t,e){if(As.has(t))throw new Ms(Es);return e.facade=t,As.set(t,e),e},Zo=function(t){return As.get(t)||{}},Jo=function(t){return As.has(t)}}else{var Is=Cs("state");Os[Is]=!0,Qo=function(t,e){if(Ds(t,Is))throw new Ms(Es);return e.facade=t,Ss(t,Is,e),e},Zo=function(t){return Ds(t,Is)?t[Is]:{}},Jo=function(t){return Ds(t,Is)}}var Ns={set:Qo,get:Zo,has:Jo,enforce:function(t){return Jo(t)?Zo(t):Qo(t,{})},getterFor:function(t){return function(e){var n;if(!xs(e)||(n=Zo(e)).type!==t)throw new Ms("Incompatible receiver, "+t+" required");return n}}},js=tn,Rs=X,Fs=Jt,Ls=Ni,Ys=so,zs=w([].push),Hs=function(t){var e=1===t,n=2===t,i=3===t,r=4===t,o=6===t,s=7===t,a=5===t||o;return function(l,u,c,h){for(var d,p,f=Fs(l),m=Rs(f),v=js(u,c),g=Ls(m),y=0,b=h||Ys,w=e?b(l,g):n||s?b(l,0):void 0;g>y;y++)if((a||y in m)&&(p=v(d=m[y],y,f),t))if(e)w[y]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return y;case 2:zs(w,d)}else switch(t){case 4:return!1;case 7:zs(w,d)}return o?-1:i||r?r:w}},Gs={forEach:Hs(0),map:Hs(1),filter:Hs(2),some:Hs(3),every:Hs(4),find:Hs(5),findIndex:Hs(6),filterReject:Hs(7)},Bs=In,Ws=l,Vs=R,Us=w,qs=I,Xs=xt,$s=u,Ks=ne,Qs=ht,Zs=an,Js=et,ta=Te,ea=Oo,na=B,ia=_r,ra=Ki,oa=Eo,sa=Ao,aa=Wo,la=A,ua=en,ca=ki,ha=F,da=Uo,pa=Xo,fa=Kt,ma=zi,va=ae,ga=ve,ya=$o,ba=rs,wa=us,_a=ys,ka=Ns,xa=Gs.forEach,Sa=ar("hidden"),Da="Symbol",Ta="prototype",Ca=ka.set,Oa=ka.getterFor(Da),Ea=Object[Ta],Ma=Ws.Symbol,Pa=Ma&&Ma[Ta],Aa=Ws.RangeError,Ia=Ws.TypeError,Na=Ws.QObject,ja=la.f,Ra=ua.f,Fa=sa.f,La=ha.f,Ya=Us([].push),za=fa("symbols"),Ha=fa("op-symbols"),Ga=fa("wks"),Ba=!Na||!Na[Ta]||!Na[Ta].findChild,Wa=function(t,e,n){var i=ja(Ea,e);i&&delete Ea[e],Ra(t,e,n),i&&t!==Ea&&Ra(Ea,e,i)},Va=qs&&$s((function(){return 7!==ia(Ra({},"a",{get:function(){return Ra(this,"a",{value:7}).a}})).a}))?Wa:Ra,Ua=function(t,e){var n=za[t]=ia(Pa);return Ca(n,{type:Da,tag:t,description:e}),qs||(n.description=e),n},qa=function(t,e,n){t===Ea&&qa(Ha,e,n),Zs(t);var i=ta(e);return Zs(n),Ks(za,i)?(n.enumerable?(Ks(t,Sa)&&t[Sa][i]&&(t[Sa][i]=!1),n=ia(n,{enumerable:na(0,!1)})):(Ks(t,Sa)||Ra(t,Sa,na(1,{})),t[Sa][i]=!0),Va(t,i,n)):Ra(t,i,n)},Xa=function(t,e){Zs(t);var n=Js(e),i=ra(n).concat(Za(n));return xa(i,(function(e){qs&&!Vs($a,n,e)||qa(t,e,n[e])})),t},$a=function(t){var e=ta(t),n=Vs(La,this,e);return!(this===Ea&&Ks(za,e)&&!Ks(Ha,e))&&(!(n||!Ks(this,e)||!Ks(za,e)||Ks(this,Sa)&&this[Sa][e])||n)},Ka=function(t,e){var n=Js(t),i=ta(e);if(n!==Ea||!Ks(za,i)||Ks(Ha,i)){var r=ja(n,i);return!r||!Ks(za,i)||Ks(n,Sa)&&n[Sa][i]||(r.enumerable=!0),r}},Qa=function(t){var e=Fa(Js(t)),n=[];return xa(e,(function(t){Ks(za,t)||Ks(ma,t)||Ya(n,t)})),n},Za=function(t){var e=t===Ea,n=Fa(e?Ha:Js(t)),i=[];return xa(n,(function(t){!Ks(za,t)||e&&!Ks(Ea,t)||Ya(i,za[t])})),i};Xs||(Ma=function(){if(Qs(Pa,this))throw new Ia("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?ea(arguments[0]):void 0,e=va(t),n=function(t){this===Ea&&Vs(n,Ha,t),Ks(this,Sa)&&Ks(this[Sa],e)&&(this[Sa][e]=!1);var i=na(1,t);try{Va(this,e,i)}catch(t){if(!(t instanceof Aa))throw t;Wa(this,e,i)}};return qs&&Ba&&Va(Ea,e,{configurable:!0,set:n}),Ua(e,t)},da(Pa=Ma[Ta],"toString",(function(){return Oa(this).tag})),da(Ma,"withoutSetter",(function(t){return Ua(va(t),t)})),ha.f=$a,ua.f=qa,ca.f=Xa,la.f=Ka,oa.f=sa.f=Qa,aa.f=Za,ya.f=function(t){return Ua(ga(t),t)},qs&&pa(Pa,"description",{configurable:!0,get:function(){return Oa(this).description}})),Bs({global:!0,constructor:!0,wrap:!0,forced:!Xs,sham:!Xs},{Symbol:Ma}),xa(ra(Ga),(function(t){ba(t)})),Bs({target:Da,stat:!0,forced:!Xs},{useSetter:function(){Ba=!0},useSimple:function(){Ba=!1}}),Bs({target:"Object",stat:!0,forced:!Xs,sham:!qs},{create:function(t,e){return void 0===e?ia(t):Xa(ia(t),e)},defineProperty:qa,defineProperties:Xa,getOwnPropertyDescriptor:Ka}),Bs({target:"Object",stat:!0,forced:!Xs},{getOwnPropertyNames:Qa}),wa(),_a(Ma,Da),ma[Sa]=!0;var Ja=xt&&!!Symbol.for&&!!Symbol.keyFor,tl=In,el=ct,nl=ne,il=Oo,rl=Kt,ol=Ja,sl=rl("string-to-symbol-registry"),al=rl("symbol-to-string-registry");tl({target:"Symbol",stat:!0,forced:!ol},{for:function(t){var e=il(t);if(nl(sl,e))return sl[e];var n=el("Symbol")(e);return sl[e]=n,al[n]=e,n}});var ll=In,ul=ne,cl=Et,hl=Pt,dl=Ja,pl=Kt("symbol-to-string-registry");ll({target:"Symbol",stat:!0,forced:!dl},{keyFor:function(t){if(!cl(t))throw new TypeError(hl(t)+" is not a symbol");if(ul(pl,t))return pl[t]}});var fl=qr,ml=P,vl=S,gl=Oo,yl=w([].push),bl=In,wl=ct,_l=m,kl=R,xl=w,Sl=u,Dl=P,Tl=Et,Cl=Nn,Ol=function(t){if(ml(t))return t;if(fl(t)){for(var e=t.length,n=[],i=0;i<e;i++){var r=t[i];"string"==typeof r?yl(n,r):"number"!=typeof r&&"Number"!==vl(r)&&"String"!==vl(r)||yl(n,gl(r))}var o=n.length,s=!0;return function(t,e){if(s)return s=!1,e;if(fl(this))return e;for(var i=0;i<o;i++)if(n[i]===t)return e}}},El=xt,Ml=String,Pl=wl("JSON","stringify"),Al=xl(/./.exec),Il=xl("".charAt),Nl=xl("".charCodeAt),jl=xl("".replace),Rl=xl(1..toString),Fl=/[\uD800-\uDFFF]/g,Ll=/^[\uD800-\uDBFF]$/,Yl=/^[\uDC00-\uDFFF]$/,zl=!El||Sl((function(){var t=wl("Symbol")("stringify detection");return"[null]"!==Pl([t])||"{}"!==Pl({a:t})||"{}"!==Pl(Object(t))})),Hl=Sl((function(){return'"\\udf06\\ud834"'!==Pl("\udf06\ud834")||'"\\udead"'!==Pl("\udead")})),Gl=function(t,e){var n=Cl(arguments),i=Ol(e);if(Dl(i)||void 0!==t&&!Tl(t))return n[1]=function(t,e){if(Dl(i)&&(e=kl(i,this,Ml(t),e)),!Tl(e))return e},_l(Pl,null,n)},Bl=function(t,e,n){var i=Il(n,e-1),r=Il(n,e+1);return Al(Ll,t)&&!Al(Yl,r)||Al(Yl,t)&&!Al(Ll,i)?"\\u"+Rl(Nl(t,0),16):t};Pl&&bl({target:"JSON",stat:!0,arity:3,forced:zl||Hl},{stringify:function(t,e,n){var i=Cl(arguments),r=_l(zl?Gl:Pl,null,i);return Hl&&"string"==typeof r?jl(r,Fl,Bl):r}});var Wl=Wo,Vl=Jt;In({target:"Object",stat:!0,forced:!xt||u((function(){Wl.f(1)}))},{getOwnPropertySymbols:function(t){var e=Wl.f;return e?e(Vl(t)):[]}}),rs("asyncIterator"),rs("hasInstance"),rs("isConcatSpreadable"),rs("iterator"),rs("match"),rs("matchAll"),rs("replace"),rs("search"),rs("species"),rs("split");var Ul=us;rs("toPrimitive"),Ul();var ql=ct,Xl=ys;rs("toStringTag"),Xl(ql("Symbol"),"Symbol"),rs("unscopables"),ys(l.JSON,"JSON",!0);var $l,Kl,Ql,Zl=ot.Symbol,Jl={},tu=I,eu=ne,nu=Function.prototype,iu=tu&&Object.getOwnPropertyDescriptor,ru=eu(nu,"name"),ou={EXISTS:ru,PROPER:ru&&"something"===function(){}.name,CONFIGURABLE:ru&&(!tu||tu&&iu(nu,"name").configurable)},su=!u((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),au=ne,lu=P,uu=Jt,cu=su,hu=ar("IE_PROTO"),du=Object,pu=du.prototype,fu=cu?du.getPrototypeOf:function(t){var e=uu(t);if(au(e,hu))return e[hu];var n=e.constructor;return lu(n)&&e instanceof n?n.prototype:e instanceof du?pu:null},mu=u,vu=P,gu=rt,yu=_r,bu=fu,wu=Uo,_u=ve("iterator"),ku=!1;[].keys&&("next"in(Ql=[].keys())?(Kl=bu(bu(Ql)))!==Object.prototype&&($l=Kl):ku=!0);var xu=!gu($l)||mu((function(){var t={};return $l[_u].call(t)!==t}));vu(($l=xu?{}:yu($l))[_u])||wu($l,_u,(function(){return this}));var Su={IteratorPrototype:$l,BUGGY_SAFARI_ITERATORS:ku},Du=Su.IteratorPrototype,Tu=_r,Cu=B,Ou=ys,Eu=Jl,Mu=function(){return this},Pu=w,Au=jt,Iu=P,Nu=String,ju=TypeError,Ru=function(t,e,n){try{return Pu(Au(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}},Fu=an,Lu=function(t){if("object"==typeof t||Iu(t))return t;throw new ju("Can't set "+Nu(t)+" as a prototype")},Yu=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Ru(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array}catch(t){}return function(n,i){return Fu(n),Lu(i),e?t(n,i):n.__proto__=i,n}}():void 0),zu=In,Hu=R,Gu=function(t,e,n,i){var r=e+" Iterator";return t.prototype=Tu(Du,{next:Cu(+!i,n)}),Ou(t,r,!1,!0),Eu[r]=Mu,t},Bu=fu,Wu=ys,Vu=Uo,Uu=Jl,qu=Su,Xu=ou.PROPER,$u=qu.BUGGY_SAFARI_ITERATORS,Ku=ve("iterator"),Qu="keys",Zu="values",Ju="entries",tc=function(){return this},ec=function(t,e,n,i,r,o,s){Gu(n,e,i);var a,l,u,c=function(t){if(t===r&&m)return m;if(!$u&&t&&t in p)return p[t];switch(t){case Qu:case Zu:case Ju:return function(){return new n(this,t)}}return function(){return new n(this)}},h=e+" Iterator",d=!1,p=t.prototype,f=p[Ku]||p["@@iterator"]||r&&p[r],m=!$u&&f||c(r),v="Array"===e&&p.entries||f;if(v&&(a=Bu(v.call(new t)))!==Object.prototype&&a.next&&(Wu(a,h,!0,!0),Uu[h]=tc),Xu&&r===Zu&&f&&f.name!==Zu&&(d=!0,m=function(){return Hu(f,this)}),r)if(l={values:c(Zu),keys:o?m:c(Qu),entries:c(Ju)},s)for(u in l)($u||d||!(u in p))&&Vu(p,u,l[u]);else zu({target:e,proto:!0,forced:$u||d},l);return s&&p[Ku]!==m&&Vu(p,Ku,m,{name:r}),Uu[e]=m,l},nc=function(t,e){return{value:t,done:e}},ic=et,rc=Jl,oc=Ns;en.f;var sc=ec,ac=nc,lc="Array Iterator",uc=oc.set,cc=oc.getterFor(lc);sc(Array,"Array",(function(t,e){uc(this,{type:lc,target:ic(t),index:0,kind:e})}),(function(){var t=cc(this),e=t.target,n=t.kind,i=t.index++;if(!e||i>=e.length)return t.target=void 0,ac(void 0,!0);switch(n){case"keys":return ac(i,!1);case"values":return ac(e[i],!1)}return ac([i,e[i]],!1)}),"values"),rc.Arguments=rc.Array;var hc={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},dc=l,pc=ti,fc=_n,mc=Jl,vc=ve("toStringTag");for(var gc in hc){var yc=dc[gc],bc=yc&&yc.prototype;bc&&pc(bc)!==vc&&fc(bc,vc,gc),mc[gc]=mc.Array}var wc=Zl,_c=ve,kc=en.f,xc=_c("metadata"),Sc=Function.prototype;void 0===Sc[xc]&&kc(Sc,xc,{value:null}),rs("asyncDispose"),rs("dispose"),rs("metadata");var Dc=wc,Tc=w,Cc=ct("Symbol"),Oc=Cc.keyFor,Ec=Tc(Cc.prototype.valueOf),Mc=Cc.isRegisteredSymbol||function(t){try{return void 0!==Oc(Ec(t))}catch(t){return!1}};In({target:"Symbol",stat:!0},{isRegisteredSymbol:Mc});for(var Pc=Kt,Ac=ct,Ic=w,Nc=Et,jc=ve,Rc=Ac("Symbol"),Fc=Rc.isWellKnownSymbol,Lc=Ac("Object","getOwnPropertyNames"),Yc=Ic(Rc.prototype.valueOf),zc=Pc("wks"),Hc=0,Gc=Lc(Rc),Bc=Gc.length;Hc<Bc;Hc++)try{var Wc=Gc[Hc];Nc(Rc[Wc])&&jc(Wc)}catch(t){}var Vc=function(t){if(Fc&&Fc(t))return!0;try{for(var e=Yc(t),n=0,i=Lc(zc),r=i.length;n<r;n++)if(zc[i[n]]==e)return!0}catch(t){}return!1};In({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:Vc}),rs("matcher"),rs("observable"),In({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:Mc}),In({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:Vc}),rs("metadataKey"),rs("patternMatch"),rs("replaceAll");var Uc=s(Dc),qc=w,Xc=Ti,$c=Oo,Kc=Z,Qc=qc("".charAt),Zc=qc("".charCodeAt),Jc=qc("".slice),th=function(t){return function(e,n){var i,r,o=$c(Kc(e)),s=Xc(n),a=o.length;return s<0||s>=a?t?"":void 0:(i=Zc(o,s))<55296||i>56319||s+1===a||(r=Zc(o,s+1))<56320||r>57343?t?Qc(o,s):i:t?Jc(o,s,s+2):r-56320+(i-55296<<10)+65536}},eh=(th(!1),th(!0)),nh=Oo,ih=Ns,rh=ec,oh=nc,sh="String Iterator",ah=ih.set,lh=ih.getterFor(sh);rh(String,"String",(function(t){ah(this,{type:sh,string:nh(t),index:0})}),(function(){var t,e=lh(this),n=e.string,i=e.index;return i>=n.length?oh(void 0,!0):(t=eh(n,i),e.index+=t.length,oh(t,!1))}));var uh=s($o.f("iterator"));function ch(t){return ch="function"==typeof Uc&&"symbol"==typeof uh?function(t){return typeof t}:function(t){return t&&"function"==typeof Uc&&t.constructor===Uc&&t!==Uc.prototype?"symbol":typeof t},ch(t)}var hh=s($o.f("toPrimitive"));function dh(t){var e=function(t,e){if("object"!==ch(t)||null===t)return t;var n=t[hh];if(void 0!==n){var i=n.call(t,e||"default");if("object"!==ch(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ch(e)?e:String(e)}function ph(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Vr(t,dh(i.key),i)}}function fh(t,e,n){return e&&ph(t.prototype,e),n&&ph(t,n),Vr(t,"prototype",{writable:!1}),t}function mh(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}In({target:"Object",stat:!0,sham:!I},{create:_r});var vh=ot.Object,gh=function(t,e){return vh.create(t,e)},yh=s(gh);In({target:"Object",stat:!0},{setPrototypeOf:Yu});var bh=s(ot.Object.setPrototypeOf),wh=Vn;In({target:"Function",proto:!0,forced:Function.bind!==wh},{bind:wh});var _h=ot,kh=function(t){return _h[t+"Prototype"]},xh=kh("Function").bind,Sh=ht,Dh=xh,Th=Function.prototype,Ch=function(t){var e=t.bind;return t===Th||Sh(Th,t)&&e===Th.bind?Dh:e},Oh=Ch,Eh=s(Oh);function Mh(t,e){var n;return Mh=bh?Eh(n=bh).call(n):function(t,e){return t.__proto__=e,t},Mh(t,e)}function Ph(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=yh(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Vr(t,"prototype",{writable:!1}),e&&Mh(t,e)}function Ah(t,e){if(e&&("object"===ch(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return mh(t)}var Ih=Jt,Nh=fu,jh=su;In({target:"Object",stat:!0,forced:u((function(){Nh(1)})),sham:!jh},{getPrototypeOf:function(t){return Nh(Ih(t))}});var Rh=ot.Object.getPrototypeOf,Fh=s(Rh);function Lh(t){var e;return Lh=bh?Eh(e=Fh).call(e):function(t){return t.__proto__||Fh(t)},Lh(t)}In({target:"Array",stat:!0},{isArray:qr});var Yh=ot.Array.isArray,zh=s(Yh),Hh=s(Oh),Gh="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,Bh=TypeError,Wh=l,Vh=m,Uh=P,qh=Gh,Xh=dt,$h=Nn,Kh=function(t,e){if(t<e)throw new Bh("Not enough arguments");return t},Qh=Wh.Function,Zh=/MSIE .\./.test(Xh)||qh&&function(){var t=Wh.Bun.version.split(".");return t.length<3||"0"===t[0]&&(t[1]<3||"3"===t[1]&&"0"===t[2])}(),Jh=function(t,e){var n=e?2:1;return Zh?function(i,r){var o=Kh(arguments.length,1)>n,s=Uh(i)?i:Qh(i),a=o?$h(arguments,n):[],l=o?function(){Vh(s,this,a)}:s;return e?t(l,r):t(l)}:t},td=In,ed=l,nd=Jh(ed.setInterval,!0);td({global:!0,bind:!0,forced:ed.setInterval!==nd},{setInterval:nd});var id=In,rd=l,od=Jh(rd.setTimeout,!0);id({global:!0,bind:!0,forced:rd.setTimeout!==od},{setTimeout:od});var sd=s(ot.setTimeout),ad=u,ld=function(t,e){var n=[][t];return!!n&&ad((function(){n.call(null,e||function(){return 1},1)}))},ud=Gs.forEach,cd=ld("forEach")?[].forEach:function(t){return ud(this,t,arguments.length>1?arguments[1]:void 0)};In({target:"Array",proto:!0,forced:[].forEach!==cd},{forEach:cd});var hd=kh("Array").forEach,dd=ti,pd=ne,fd=ht,md=hd,vd=Array.prototype,gd={DOMTokenList:!0,NodeList:!0},yd=function(t){var e=t.forEach;return t===vd||fd(vd,t)&&e===vd.forEach||pd(gd,dd(t))?md:e},bd=s(yd),wd=s("undefined"!=typeof window&&window.moment||n),_d=s(ot.Object.getOwnPropertySymbols),kd=Gs.filter;In({target:"Array",proto:!0,forced:!co("filter")},{filter:function(t){return kd(this,t,arguments.length>1?arguments[1]:void 0)}});var xd=kh("Array").filter,Sd=ht,Dd=xd,Td=Array.prototype,Cd=function(t){var e=t.filter;return t===Td||Sd(Td,t)&&e===Td.filter?Dd:e},Od=s(Cd),Ed={exports:{}},Md=In,Pd=u,Ad=et,Id=A.f,Nd=I;Md({target:"Object",stat:!0,forced:!Nd||Pd((function(){Id(1)})),sham:!Nd},{getOwnPropertyDescriptor:function(t,e){return Id(Ad(t),e)}});var jd=ot.Object,Rd=Ed.exports=function(t,e){return jd.getOwnPropertyDescriptor(t,e)};jd.getOwnPropertyDescriptor.sham&&(Rd.sham=!0);var Fd=s(Ed.exports),Ld=ct,Yd=Eo,zd=Wo,Hd=an,Gd=w([].concat),Bd=Ld("Reflect","ownKeys")||function(t){var e=Yd.f(Hd(t)),n=zd.f;return n?Gd(e,n(t)):e},Wd=Bd,Vd=et,Ud=A,qd=Jr;In({target:"Object",stat:!0,sham:!I},{getOwnPropertyDescriptors:function(t){for(var e,n,i=Vd(t),r=Ud.f,o=Wd(i),s={},a=0;o.length>a;)void 0!==(n=r(i,e=o[a++]))&&qd(s,e,n);return s}});var Xd=s(ot.Object.getOwnPropertyDescriptors),$d={exports:{}},Kd=In,Qd=I,Zd=ki.f;Kd({target:"Object",stat:!0,forced:Object.defineProperties!==Zd,sham:!Qd},{defineProperties:Zd});var Jd=ot.Object,tp=$d.exports=function(t,e){return Jd.defineProperties(t,e)};Jd.defineProperties.sham&&(tp.sham=!0);var ep=s($d.exports),np=Gs.map;In({target:"Array",proto:!0,forced:!co("map")},{map:function(t){return np(this,t,arguments.length>1?arguments[1]:void 0)}});var ip=kh("Array").map,rp=ht,op=ip,sp=Array.prototype,ap=function(t){var e=t.map;return t===sp||rp(sp,t)&&e===sp.map?op:e},lp=s(ap),up=jt,cp=Jt,hp=X,dp=Ni,pp=TypeError,fp=function(t){return function(e,n,i,r){up(n);var o=cp(e),s=hp(o),a=dp(o),l=t?a-1:0,u=t?-1:1;if(i<2)for(;;){if(l in s){r=s[l],l+=u;break}if(l+=u,t?l<0:a<=l)throw new pp("Reduce of empty array with no initial value")}for(;t?l>=0:a>l;l+=u)l in s&&(r=n(r,s[l],l,o));return r}},mp={left:fp(!1),right:fp(!0)},vp="process"===S(l.process),gp=mp.left;In({target:"Array",proto:!0,forced:!vp&&bt>79&&bt<83||!ld("reduce")},{reduce:function(t){var e=arguments.length;return gp(this,t,e,e>1?arguments[1]:void 0)}});var yp=kh("Array").reduce,bp=ht,wp=yp,_p=Array.prototype,kp=function(t){var e=t.reduce;return t===_p||bp(_p,t)&&e===_p.reduce?wp:e},xp=s(kp),Sp=Jt,Dp=Ki;In({target:"Object",stat:!0,forced:u((function(){Dp(1)}))},{keys:function(t){return Dp(Sp(t))}});var Tp=s(ot.Object.keys),Cp=s(Wr),Op=R,Ep=an,Mp=Lt,Pp=function(t,e,n){var i,r;Ep(t);try{if(!(i=Mp(t,"return"))){if("throw"===e)throw n;return n}i=Op(i,t)}catch(t){r=!0,i=t}if("throw"===e)throw n;if(r)throw i;return Ep(i),n},Ap=an,Ip=Pp,Np=Jl,jp=ve("iterator"),Rp=Array.prototype,Fp=function(t){return void 0!==t&&(Np.Array===t||Rp[jp]===t)},Lp=ti,Yp=Lt,zp=$,Hp=Jl,Gp=ve("iterator"),Bp=function(t){if(!zp(t))return Yp(t,Gp)||Yp(t,"@@iterator")||Hp[Lp(t)]},Wp=R,Vp=jt,Up=an,qp=Pt,Xp=Bp,$p=TypeError,Kp=function(t,e){var n=arguments.length<2?Xp(t):e;if(Vp(n))return Up(Wp(n,t));throw new $p(qp(t)+" is not iterable")},Qp=tn,Zp=R,Jp=Jt,tf=function(t,e,n,i){try{return i?e(Ap(n)[0],n[1]):e(n)}catch(e){Ip(t,"throw",e)}},ef=Fp,nf=yi,rf=Ni,of=Jr,sf=Kp,af=Bp,lf=Array,uf=ve("iterator"),cf=!1;try{var hf=0,df={next:function(){return{done:!!hf++}},return:function(){cf=!0}};df[uf]=function(){return this},Array.from(df,(function(){throw 2}))}catch(t){}var pf=function(t){var e=Jp(t),n=nf(this),i=arguments.length,r=i>1?arguments[1]:void 0,o=void 0!==r;o&&(r=Qp(r,i>2?arguments[2]:void 0));var s,a,l,u,c,h,d=af(e),p=0;if(!d||this===lf&&ef(d))for(s=rf(e),a=n?new this(s):lf(s);s>p;p++)h=o?r(e[p],p):e[p],of(a,p,h);else for(c=(u=sf(e,d)).next,a=n?new this:[];!(l=Zp(c,u)).done;p++)h=o?tf(u,r,[l.value,p],!0):l.value,of(a,p,h);return a.length=p,a},ff=function(t,e){try{if(!e&&!cf)return!1}catch(t){return!1}var n=!1;try{var i={};i[uf]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n};In({target:"Array",stat:!0,forced:!ff((function(t){Array.from(t)}))},{from:pf});var mf=ot.Array.from,vf=s(mf),gf=Bp,yf=s(gf),bf=s(gf),wf=s(Yh),_f=I,kf=qr,xf=TypeError,Sf=Object.getOwnPropertyDescriptor,Df=_f&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}()?function(t,e){if(kf(t)&&!Sf(t,"length").writable)throw new xf("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},Tf=Jt,Cf=Ni,Of=Df,Ef=$r;In({target:"Array",proto:!0,arity:1,forced:u((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=Tf(this),n=Cf(e),i=arguments.length;Ef(n+i);for(var r=0;r<i;r++)e[n]=arguments[r],n++;return Of(e,n),n}});var Mf=kh("Array").push,Pf=ht,Af=Mf,If=Array.prototype,Nf=function(t){var e=t.push;return t===If||Pf(If,t)&&e===If.push?Af:e},jf=s(Nf),Rf=In,Ff=qr,Lf=yi,Yf=rt,zf=Mi,Hf=Ni,Gf=et,Bf=Jr,Wf=ve,Vf=Nn,Uf=co("slice"),qf=Wf("species"),Xf=Array,$f=Math.max;Rf({target:"Array",proto:!0,forced:!Uf},{slice:function(t,e){var n,i,r,o=Gf(this),s=Hf(o),a=zf(t,s),l=zf(void 0===e?s:e,s);if(Ff(o)&&(n=o.constructor,(Lf(n)&&(n===Xf||Ff(n.prototype))||Yf(n)&&null===(n=n[qf]))&&(n=void 0),n===Xf||void 0===n))return Vf(o,a,l);for(i=new(void 0===n?Xf:n)($f(l-a,0)),r=0;a<l;a++,r++)a in o&&Bf(i,r,o[a]);return i.length=r,i}});var Kf=kh("Array").slice,Qf=ht,Zf=Kf,Jf=Array.prototype,tm=function(t){var e=t.slice;return t===Jf||Qf(Jf,t)&&e===Jf.slice?Zf:e},em=tm,nm=s(em),im=s(mf);function rm(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function om(t,e){var n;if(t){if("string"==typeof t)return rm(t,e);var i=nm(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?im(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?rm(t,e):void 0}}function sm(t,e){return function(t){if(wf(t))return t}(t)||function(t,e){var n=null==t?null:void 0!==Uc&&yf(t)||t["@@iterator"];if(null!=n){var i,r,o,s,a=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(jf(a).call(a,i.value),a.length!==e);l=!0);}catch(t){u=!0,r=t}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw r}}return a}}(t,e)||om(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function am(t){return function(t){if(wf(t))return rm(t)}(t)||function(t){if(void 0!==Uc&&null!=yf(t)||null!=t["@@iterator"])return im(t)}(t)||om(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var lm=s(wc),um=kh("Array").concat,cm=ht,hm=um,dm=Array.prototype,pm=function(t){var e=t.concat;return t===dm||cm(dm,t)&&e===dm.concat?hm:e},fm=s(pm),mm=s(em);In({target:"Reflect",stat:!0},{ownKeys:Bd});var vm=s(ot.Reflect.ownKeys),gm=In,ym=Date,bm=w(ym.prototype.getTime);gm({target:"Date",stat:!0},{now:function(){return bm(new ym)}});var wm=s(ot.Date.now),_m=In,km=qr,xm=w([].reverse),Sm=[1,2];_m({target:"Array",proto:!0,forced:String(Sm)===String(Sm.reverse())},{reverse:function(){return km(this)&&(this.length=this.length),xm(this)}});var Dm=kh("Array").reverse,Tm=ht,Cm=Dm,Om=Array.prototype,Em=function(t){var e=t.reverse;return t===Om||Tm(Om,t)&&e===Om.reverse?Cm:e},Mm=s(Em),Pm=Pt,Am=TypeError,Im=function(t,e){if(!delete t[e])throw new Am("Cannot delete property "+Pm(e)+" of "+Pm(t))},Nm=In,jm=Jt,Rm=Mi,Fm=Ti,Lm=Ni,Ym=Df,zm=$r,Hm=so,Gm=Jr,Bm=Im,Wm=co("splice"),Vm=Math.max,Um=Math.min;Nm({target:"Array",proto:!0,forced:!Wm},{splice:function(t,e){var n,i,r,o,s,a,l=jm(this),u=Lm(l),c=Rm(t,u),h=arguments.length;for(0===h?n=i=0:1===h?(n=0,i=u-c):(n=h-2,i=Um(Vm(Fm(e),0),u-c)),zm(u+n-i),r=Hm(l,i),o=0;o<i;o++)(s=c+o)in l&&Gm(r,o,l[s]);if(r.length=i,n<i){for(o=c;o<u-i;o++)a=o+n,(s=o+i)in l?l[a]=l[s]:Bm(l,a);for(o=u;o>u-i+n;o--)Bm(l,o-1)}else if(n>i)for(o=u-i;o>c;o--)a=o+n-1,(s=o+i-1)in l?l[a]=l[s]:Bm(l,a);for(o=0;o<n;o++)l[o+c]=arguments[o+2];return Ym(l,u-i+n),r}});var qm=kh("Array").splice,Xm=ht,$m=qm,Km=Array.prototype,Qm=function(t){var e=t.splice;return t===Km||Xm(Km,t)&&e===Km.splice?$m:e},Zm=s(Qm),Jm=I,tv=w,ev=R,nv=u,iv=Ki,rv=Wo,ov=F,sv=Jt,av=X,lv=Object.assign,uv=Object.defineProperty,cv=tv([].concat),hv=!lv||nv((function(){if(Jm&&1!==lv({b:1},lv(uv({},"a",{enumerable:!0,get:function(){uv(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol("assign detection"),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach((function(t){e[t]=t})),7!==lv({},t)[n]||iv(lv({},e)).join("")!==i}))?function(t,e){for(var n=sv(t),i=arguments.length,r=1,o=rv.f,s=ov.f;i>r;)for(var a,l=av(arguments[r++]),u=o?cv(iv(l),o(l)):iv(l),c=u.length,h=0;c>h;)a=u[h++],Jm&&!ev(s,l,a)||(n[a]=l[a]);return n}:lv,dv=hv;In({target:"Object",stat:!0,arity:2,forced:Object.assign!==dv},{assign:dv});var pv=s(ot.Object.assign),fv=Yi.includes;In({target:"Array",proto:!0,forced:u((function(){return!Array(1).includes()}))},{includes:function(t){return fv(this,t,arguments.length>1?arguments[1]:void 0)}});var mv=kh("Array").includes,vv=rt,gv=S,yv=ve("match"),bv=function(t){var e;return vv(t)&&(void 0!==(e=t[yv])?!!e:"RegExp"===gv(t))},wv=TypeError,_v=ve("match"),kv=In,xv=function(t){if(bv(t))throw new wv("The method doesn't accept regular expressions");return t},Sv=Z,Dv=Oo,Tv=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[_v]=!1,"/./"[t](e)}catch(t){}}return!1},Cv=w("".indexOf);kv({target:"String",proto:!0,forced:!Tv("includes")},{includes:function(t){return!!~Cv(Dv(Sv(this)),Dv(xv(t)),arguments.length>1?arguments[1]:void 0)}});var Ov=kh("String").includes,Ev=ht,Mv=mv,Pv=Ov,Av=Array.prototype,Iv=String.prototype,Nv=function(t){var e=t.includes;return t===Av||Ev(Av,t)&&e===Av.includes?Mv:"string"==typeof t||t===Iv||Ev(Iv,t)&&e===Iv.includes?Pv:e},jv=s(Nv),Rv=s(Rh),Fv=I,Lv=u,Yv=w,zv=fu,Hv=Ki,Gv=et,Bv=Yv(F.f),Wv=Yv([].push),Vv=Fv&&Lv((function(){var t=Object.create(null);return t[2]=2,!Bv(t,2)})),Uv=function(t){return function(e){for(var n,i=Gv(e),r=Hv(i),o=Vv&&null===zv(i),s=r.length,a=0,l=[];s>a;)n=r[a++],Fv&&!(o?n in i:Bv(i,n))||Wv(l,t?[n,i[n]]:i[n]);return l}},qv={entries:Uv(!0),values:Uv(!1)},Xv=qv.values;In({target:"Object",stat:!0},{values:function(t){return Xv(t)}});var $v=s(ot.Object.values),Kv="\t\n\v\f\r \u2028\u2029\ufeff",Qv=Z,Zv=Oo,Jv=Kv,tg=w("".replace),eg=RegExp("^["+Jv+"]+"),ng=RegExp("(^|[^"+Jv+"])["+Jv+"]+$"),ig=function(t){return function(e){var n=Zv(Qv(e));return 1&t&&(n=tg(n,eg,"")),2&t&&(n=tg(n,ng,"$1")),n}},rg={start:ig(1),end:ig(2),trim:ig(3)},og=l,sg=u,ag=w,lg=Oo,ug=rg.trim,cg=Kv,hg=og.parseInt,dg=og.Symbol,pg=dg&&dg.iterator,fg=/^[+-]?0x/i,mg=ag(fg.exec),vg=8!==hg(cg+"08")||22!==hg(cg+"0x16")||pg&&!sg((function(){hg(Object(pg))}))?function(t,e){var n=ug(lg(t));return hg(n,e>>>0||(mg(fg,n)?16:10))}:hg;In({global:!0,forced:parseInt!==vg},{parseInt:vg});var gg=s(ot.parseInt),yg=In,bg=Yi.indexOf,wg=ld,_g=C([].indexOf),kg=!!_g&&1/_g([1],1,-0)<0;yg({target:"Array",proto:!0,forced:kg||!wg("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return kg?_g(this,t,e)||0:bg(this,t,e)}});var xg=kh("Array").indexOf,Sg=ht,Dg=xg,Tg=Array.prototype,Cg=function(t){var e=t.indexOf;return t===Tg||Sg(Tg,t)&&e===Tg.indexOf?Dg:e},Og=s(Cg),Eg=qv.entries;In({target:"Object",stat:!0},{entries:function(t){return Eg(t)}});var Mg=s(ot.Object.entries),Pg=s(gh),Ag=ot,Ig=m;Ag.JSON||(Ag.JSON={stringify:JSON.stringify});var Ng=function(t,e,n){return Ig(Ag.JSON.stringify,null,arguments)},jg=s(Ng),Rg=Jt,Fg=Mi,Lg=Ni,Yg=function(t){for(var e=Rg(this),n=Lg(e),i=arguments.length,r=Fg(i>1?arguments[1]:void 0,n),o=i>2?arguments[2]:void 0,s=void 0===o?n:Fg(o,n);s>r;)e[r++]=t;return e};In({target:"Array",proto:!0},{fill:Yg});var zg=kh("Array").fill,Hg=ht,Gg=zg,Bg=Array.prototype,Wg=function(t){var e=t.fill;return t===Bg||Hg(Bg,t)&&e===Bg.fill?Gg:e},Vg=s(Wg),Ug={exports:{}};!function(t){function e(t){if(t)return function(t){for(var n in e.prototype)t[n]=e.prototype[n];return t}(t)}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,i=this._callbacks["$"+t];if(!i)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var r=0;r<i.length;r++)if((n=i[r])===e||n.fn===e){i.splice(r,1);break}return 0===i.length&&delete this._callbacks["$"+t],this},e.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),n=this._callbacks["$"+t],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(n){i=0;for(var r=(n=n.slice(0)).length;i<r;++i)n[i].apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},e.prototype.hasListeners=function(t){return!!this.listeners(t).length}}(Ug);var qg,Xg=s(Ug.exports);
|
||
/*! 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 */function $g(){return $g=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},$g.apply(this,arguments)}function Kg(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function Qg(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}qg="function"!=typeof Object.assign?function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var r in i)i.hasOwnProperty(r)&&(e[r]=i[r])}return e}:Object.assign;var Zg,Jg=qg,ty=["","webkit","Moz","MS","ms","o"],ey="undefined"==typeof document?{style:{}}:document.createElement("div"),ny=Math.round,iy=Math.abs,ry=Date.now;function oy(t,e){for(var n,i,r=e[0].toUpperCase()+e.slice(1),o=0;o<ty.length;){if((i=(n=ty[o])?n+r:e)in t)return i;o++}}Zg="undefined"==typeof window?{}:window;var sy=oy(ey.style,"touchAction"),ay=void 0!==sy,ly="compute",uy="auto",cy="manipulation",hy="none",dy="pan-x",py="pan-y",fy=function(){if(!ay)return!1;var t={},e=Zg.CSS&&Zg.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){return t[n]=!e||Zg.CSS.supports("touch-action",n)})),t}(),my="ontouchstart"in Zg,vy=void 0!==oy(Zg,"PointerEvent"),gy=my&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),yy="touch",by="mouse",wy=25,_y=1,ky=4,xy=8,Sy=1,Dy=2,Ty=4,Cy=8,Oy=16,Ey=Dy|Ty,My=Cy|Oy,Py=Ey|My,Ay=["x","y"],Iy=["clientX","clientY"];function Ny(t,e,n){var i;if(t)if(t.forEach)t.forEach(e,n);else if(void 0!==t.length)for(i=0;i<t.length;)e.call(n,t[i],i,t),i++;else for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t)}function jy(t,e){return"function"==typeof t?t.apply(e&&e[0]||void 0,e):t}function Ry(t,e){return t.indexOf(e)>-1}var Fy=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){t===ly&&(t=this.compute()),ay&&this.manager.element.style&&fy[t]&&(this.manager.element.style[sy]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return Ny(this.manager.recognizers,(function(e){jy(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(Ry(t,hy))return hy;var e=Ry(t,dy),n=Ry(t,py);return e&&n?hy:e||n?e?dy:py:Ry(t,cy)?cy:uy}(t.join(" "))},e.preventDefaults=function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var i=this.actions,r=Ry(i,hy)&&!fy[hy],o=Ry(i,py)&&!fy[py],s=Ry(i,dy)&&!fy[dy];if(r){var a=1===t.pointers.length,l=t.distance<2,u=t.deltaTime<250;if(a&&l&&u)return}if(!s||!o)return r||o&&n&Ey||s&&n&My?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function Ly(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function Yy(t){var e=t.length;if(1===e)return{x:ny(t[0].clientX),y:ny(t[0].clientY)};for(var n=0,i=0,r=0;r<e;)n+=t[r].clientX,i+=t[r].clientY,r++;return{x:ny(n/e),y:ny(i/e)}}function zy(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:ny(t.pointers[n].clientX),clientY:ny(t.pointers[n].clientY)},n++;return{timeStamp:ry(),pointers:e,center:Yy(e),deltaX:t.deltaX,deltaY:t.deltaY}}function Hy(t,e,n){n||(n=Ay);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return Math.sqrt(i*i+r*r)}function Gy(t,e,n){n||(n=Ay);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return 180*Math.atan2(r,i)/Math.PI}function By(t,e){return t===e?Sy:iy(t)>=iy(e)?t<0?Dy:Ty:e<0?Cy:Oy}function Wy(t,e,n){return{x:e/t||0,y:n/t||0}}function Vy(t,e){var n=t.session,i=e.pointers,r=i.length;n.firstInput||(n.firstInput=zy(e)),r>1&&!n.firstMultiple?n.firstMultiple=zy(e):1===r&&(n.firstMultiple=!1);var o=n.firstInput,s=n.firstMultiple,a=s?s.center:o.center,l=e.center=Yy(i);e.timeStamp=ry(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=Gy(a,l),e.distance=Hy(a,l),function(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},o=t.prevInput||{};e.eventType!==_y&&o.eventType!==ky||(r=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=r.x+(n.x-i.x),e.deltaY=r.y+(n.y-i.y)}(n,e),e.offsetDirection=By(e.deltaX,e.deltaY);var u,c,h=Wy(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=h.x,e.overallVelocityY=h.y,e.overallVelocity=iy(h.x)>iy(h.y)?h.x:h.y,e.scale=s?(u=s.pointers,Hy((c=i)[0],c[1],Iy)/Hy(u[0],u[1],Iy)):1,e.rotation=s?function(t,e){return Gy(e[1],e[0],Iy)+Gy(t[1],t[0],Iy)}(s.pointers,i):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,i,r,o,s=t.lastInterval||e,a=e.timeStamp-s.timeStamp;if(e.eventType!==xy&&(a>wy||void 0===s.velocity)){var l=e.deltaX-s.deltaX,u=e.deltaY-s.deltaY,c=Wy(a,l,u);i=c.x,r=c.y,n=iy(c.x)>iy(c.y)?c.x:c.y,o=By(l,u),t.lastInterval=e}else n=s.velocity,i=s.velocityX,r=s.velocityY,o=s.direction;e.velocity=n,e.velocityX=i,e.velocityY=r,e.direction=o}(n,e);var d,p=t.element,f=e.srcEvent;Ly(d=f.composedPath?f.composedPath()[0]:f.path?f.path[0]:f.target,p)&&(p=d),e.target=p}function Uy(t,e,n){var i=n.pointers.length,r=n.changedPointers.length,o=e&_y&&i-r==0,s=e&(ky|xy)&&i-r==0;n.isFirst=!!o,n.isFinal=!!s,o&&(t.session={}),n.eventType=e,Vy(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function qy(t){return t.trim().split(/\s+/g)}function Xy(t,e,n){Ny(qy(e),(function(e){t.addEventListener(e,n,!1)}))}function $y(t,e,n){Ny(qy(e),(function(e){t.removeEventListener(e,n,!1)}))}function Ky(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var Qy=function(){function t(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){jy(t.options.enable,[t])&&n.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&Xy(this.element,this.evEl,this.domHandler),this.evTarget&&Xy(this.target,this.evTarget,this.domHandler),this.evWin&&Xy(Ky(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&$y(this.element,this.evEl,this.domHandler),this.evTarget&&$y(this.target,this.evTarget,this.domHandler),this.evWin&&$y(Ky(this.element),this.evWin,this.domHandler)},t}();function Zy(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;i<t.length;){if(n&&t[i][n]==e||!n&&t[i]===e)return i;i++}return-1}var Jy={pointerdown:_y,pointermove:2,pointerup:ky,pointercancel:xy,pointerout:xy},tb={2:yy,3:"pen",4:by,5:"kinect"},eb="pointerdown",nb="pointermove pointerup pointercancel";Zg.MSPointerEvent&&!Zg.PointerEvent&&(eb="MSPointerDown",nb="MSPointerMove MSPointerUp MSPointerCancel");var ib=function(t){function e(){var n,i=e.prototype;return i.evEl=eb,i.evWin=nb,(n=t.apply(this,arguments)||this).store=n.manager.session.pointerEvents=[],n}return Kg(e,t),e.prototype.handler=function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),r=Jy[i],o=tb[t.pointerType]||t.pointerType,s=o===yy,a=Zy(e,t.pointerId,"pointerId");r&_y&&(0===t.button||s)?a<0&&(e.push(t),a=e.length-1):r&(ky|xy)&&(n=!0),a<0||(e[a]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(a,1))},e}(Qy);function rb(t){return Array.prototype.slice.call(t,0)}function ob(t,e,n){for(var i=[],r=[],o=0;o<t.length;){var s=e?t[o][e]:t[o];Zy(r,s)<0&&i.push(t[o]),r[o]=s,o++}return n&&(i=e?i.sort((function(t,n){return t[e]>n[e]})):i.sort()),i}var sb={touchstart:_y,touchmove:2,touchend:ky,touchcancel:xy},ab=function(t){function e(){var n;return e.prototype.evTarget="touchstart touchmove touchend touchcancel",(n=t.apply(this,arguments)||this).targetIds={},n}return Kg(e,t),e.prototype.handler=function(t){var e=sb[t.type],n=lb.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:yy,srcEvent:t})},e}(Qy);function lb(t,e){var n,i,r=rb(t.touches),o=this.targetIds;if(e&(2|_y)&&1===r.length)return o[r[0].identifier]=!0,[r,r];var s=rb(t.changedTouches),a=[],l=this.target;if(i=r.filter((function(t){return Ly(t.target,l)})),e===_y)for(n=0;n<i.length;)o[i[n].identifier]=!0,n++;for(n=0;n<s.length;)o[s[n].identifier]&&a.push(s[n]),e&(ky|xy)&&delete o[s[n].identifier],n++;return a.length?[ob(i.concat(a),"identifier",!0),a]:void 0}var ub={mousedown:_y,mousemove:2,mouseup:ky},cb=function(t){function e(){var n,i=e.prototype;return i.evEl="mousedown",i.evWin="mousemove mouseup",(n=t.apply(this,arguments)||this).pressed=!1,n}return Kg(e,t),e.prototype.handler=function(t){var e=ub[t.type];e&_y&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=ky),this.pressed&&(e&ky&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:by,srcEvent:t}))},e}(Qy),hb=2500;function db(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY},i=this.lastTouches;this.lastTouches.push(n),setTimeout((function(){var t=i.indexOf(n);t>-1&&i.splice(t,1)}),hb)}}function pb(t,e){t&_y?(this.primaryTouch=e.changedPointers[0].identifier,db.call(this,e)):t&(ky|xy)&&db.call(this,e)}function fb(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var r=this.lastTouches[i],o=Math.abs(e-r.x),s=Math.abs(n-r.y);if(o<=25&&s<=25)return!0}return!1}var mb=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).handler=function(t,e,n){var r=n.pointerType===yy,o=n.pointerType===by;if(!(o&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)pb.call(Qg(Qg(i)),e,n);else if(o&&fb.call(Qg(Qg(i)),n))return;i.callback(t,e,n)}},i.touch=new ab(i.manager,i.handler),i.mouse=new cb(i.manager,i.handler),i.primaryTouch=null,i.lastTouches=[],i}return Kg(e,t),e.prototype.destroy=function(){this.touch.destroy(),this.mouse.destroy()},e}(Qy);function vb(t,e,n){return!!Array.isArray(t)&&(Ny(t,n[e],n),!0)}var gb=32,yb=1;function bb(t,e){var n=e.manager;return n?n.get(t):t}function wb(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}var _b=function(){function t(t){void 0===t&&(t={}),this.options=$g({enable:!0},t),this.id=yb++,this.manager=null,this.state=1,this.simultaneous={},this.requireFail=[]}var e=t.prototype;return e.set=function(t){return Jg(this.options,t),this.manager&&this.manager.touchAction.update(),this},e.recognizeWith=function(t){if(vb(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=bb(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},e.dropRecognizeWith=function(t){return vb(t,"dropRecognizeWith",this)||(t=bb(t,this),delete this.simultaneous[t.id]),this},e.requireFailure=function(t){if(vb(t,"requireFailure",this))return this;var e=this.requireFail;return-1===Zy(e,t=bb(t,this))&&(e.push(t),t.requireFailure(this)),this},e.dropRequireFailure=function(t){if(vb(t,"dropRequireFailure",this))return this;t=bb(t,this);var e=Zy(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},e.hasRequireFailures=function(){return this.requireFail.length>0},e.canRecognizeWith=function(t){return!!this.simultaneous[t.id]},e.emit=function(t){var e=this,n=this.state;function i(n){e.manager.emit(n,t)}n<8&&i(e.options.event+wb(n)),i(e.options.event),t.additionalEvent&&i(t.additionalEvent),n>=8&&i(e.options.event+wb(n))},e.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=gb},e.canEmit=function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},e.recognize=function(t){var e=Jg({},t);if(!jy(this.options.enable,[this,e]))return this.reset(),void(this.state=gb);56&this.state&&(this.state=1),this.state=this.process(e),30&this.state&&this.tryEmit(e)},e.process=function(t){},e.getTouchAction=function(){},e.reset=function(){},t}(),kb=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,$g({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},e))||this).pTime=!1,n.pCenter=!1,n._timer=null,n._input=null,n.count=0,n}Kg(e,t);var n=e.prototype;return n.getTouchAction=function(){return[cy]},n.process=function(t){var e=this,n=this.options,i=t.pointers.length===n.pointers,r=t.distance<n.threshold,o=t.deltaTime<n.time;if(this.reset(),t.eventType&_y&&0===this.count)return this.failTimeout();if(r&&o&&i){if(t.eventType!==ky)return this.failTimeout();var s=!this.pTime||t.timeStamp-this.pTime<n.interval,a=!this.pCenter||Hy(this.pCenter,t.center)<n.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,a&&s?this.count+=1:this.count=1,this._input=t,0==this.count%n.taps)return this.hasRequireFailures()?(this._timer=setTimeout((function(){e.state=8,e.tryEmit()}),n.interval),2):8}return gb},n.failTimeout=function(){var t=this;return this._timer=setTimeout((function(){t.state=gb}),this.options.interval),gb},n.reset=function(){clearTimeout(this._timer)},n.emit=function(){8===this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},e}(_b),xb=function(t){function e(e){return void 0===e&&(e={}),t.call(this,$g({pointers:1},e))||this}Kg(e,t);var n=e.prototype;return n.attrTest=function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},n.process=function(t){var e=this.state,n=t.eventType,i=6&e,r=this.attrTest(t);return i&&(n&xy||!r)?16|e:i||r?n&ky?8|e:2&e?4|e:2:gb},e}(_b);function Sb(t){return t===Oy?"down":t===Cy?"up":t===Dy?"left":t===Ty?"right":""}var Db=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,$g({event:"pan",threshold:10,pointers:1,direction:Py},e))||this).pX=null,n.pY=null,n}Kg(e,t);var n=e.prototype;return n.getTouchAction=function(){var t=this.options.direction,e=[];return t&Ey&&e.push(py),t&My&&e.push(dy),e},n.directionTest=function(t){var e=this.options,n=!0,i=t.distance,r=t.direction,o=t.deltaX,s=t.deltaY;return r&e.direction||(e.direction&Ey?(r=0===o?Sy:o<0?Dy:Ty,n=o!==this.pX,i=Math.abs(t.deltaX)):(r=0===s?Sy:s<0?Cy:Oy,n=s!==this.pY,i=Math.abs(t.deltaY))),t.direction=r,n&&i>e.threshold&&r&e.direction},n.attrTest=function(t){return xb.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},n.emit=function(e){this.pX=e.deltaX,this.pY=e.deltaY;var n=Sb(e.direction);n&&(e.additionalEvent=this.options.event+n),t.prototype.emit.call(this,e)},e}(xb),Tb=function(t){function e(e){return void 0===e&&(e={}),t.call(this,$g({event:"swipe",threshold:10,velocity:.3,direction:Ey|My,pointers:1},e))||this}Kg(e,t);var n=e.prototype;return n.getTouchAction=function(){return Db.prototype.getTouchAction.call(this)},n.attrTest=function(e){var n,i=this.options.direction;return i&(Ey|My)?n=e.overallVelocity:i&Ey?n=e.overallVelocityX:i&My&&(n=e.overallVelocityY),t.prototype.attrTest.call(this,e)&&i&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers===this.options.pointers&&iy(n)>this.options.velocity&&e.eventType&ky},n.emit=function(t){var e=Sb(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},e}(xb),Cb=function(t){function e(e){return void 0===e&&(e={}),t.call(this,$g({event:"pinch",threshold:0,pointers:2},e))||this}Kg(e,t);var n=e.prototype;return n.getTouchAction=function(){return[hy]},n.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},n.emit=function(e){if(1!==e.scale){var n=e.scale<1?"in":"out";e.additionalEvent=this.options.event+n}t.prototype.emit.call(this,e)},e}(xb),Ob=function(t){function e(e){return void 0===e&&(e={}),t.call(this,$g({event:"rotate",threshold:0,pointers:2},e))||this}Kg(e,t);var n=e.prototype;return n.getTouchAction=function(){return[hy]},n.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)},e}(xb),Eb=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,$g({event:"press",pointers:1,time:251,threshold:9},e))||this)._timer=null,n._input=null,n}Kg(e,t);var n=e.prototype;return n.getTouchAction=function(){return[uy]},n.process=function(t){var e=this,n=this.options,i=t.pointers.length===n.pointers,r=t.distance<n.threshold,o=t.deltaTime>n.time;if(this._input=t,!r||!i||t.eventType&(ky|xy)&&!o)this.reset();else if(t.eventType&_y)this.reset(),this._timer=setTimeout((function(){e.state=8,e.tryEmit()}),n.time);else if(t.eventType&ky)return 8;return gb},n.reset=function(){clearTimeout(this._timer)},n.emit=function(t){8===this.state&&(t&&t.eventType&ky?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=ry(),this.manager.emit(this.options.event,this._input)))},e}(_b),Mb={domEvents:!1,touchAction:ly,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Pb=[[Ob,{enable:!1}],[Cb,{enable:!1},["rotate"]],[Tb,{direction:Ey}],[Db,{direction:Ey},["swipe"]],[kb],[kb,{event:"doubletap",taps:2},["tap"]],[Eb]];function Ab(t,e){var n,i=t.element;i.style&&(Ny(t.options.cssProps,(function(r,o){n=oy(i.style,o),e?(t.oldCssProps[n]=i.style[n],i.style[n]=r):i.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}var Ib=function(){function t(t,e){var n,i=this;this.options=Jg({},Mb,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((n=this).options.inputClass||(vy?ib:gy?ab:my?mb:cb))(n,Uy),this.touchAction=new Fy(this,this.options.touchAction),Ab(this,!0),Ny(this.options.recognizers,(function(t){var e=i.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}var e=t.prototype;return e.set=function(t){return Jg(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},e.stop=function(t){this.session.stopped=t?2:1},e.recognize=function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var i=this.recognizers,r=e.curRecognizer;(!r||r&&8&r.state)&&(e.curRecognizer=null,r=null);for(var o=0;o<i.length;)n=i[o],2===e.stopped||r&&n!==r&&!n.canRecognizeWith(r)?n.reset():n.recognize(t),!r&&14&n.state&&(e.curRecognizer=n,r=n),o++}},e.get=function(t){if(t instanceof _b)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event===t)return e[n];return null},e.add=function(t){if(vb(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},e.remove=function(t){if(vb(t,"remove",this))return this;var e=this.get(t);if(t){var n=this.recognizers,i=Zy(n,e);-1!==i&&(n.splice(i,1),this.touchAction.update())}return this},e.on=function(t,e){if(void 0===t||void 0===e)return this;var n=this.handlers;return Ny(qy(t),(function(t){n[t]=n[t]||[],n[t].push(e)})),this},e.off=function(t,e){if(void 0===t)return this;var n=this.handlers;return Ny(qy(t),(function(t){e?n[t]&&n[t].splice(Zy(n[t],e),1):delete n[t]})),this},e.emit=function(t,e){this.options.domEvents&&function(t,e){var n=document.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var i=0;i<n.length;)n[i](e),i++}},e.destroy=function(){this.element&&Ab(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},t}(),Nb={touchstart:_y,touchmove:2,touchend:ky,touchcancel:xy},jb=function(t){function e(){var n,i=e.prototype;return i.evTarget="touchstart",i.evWin="touchstart touchmove touchend touchcancel",(n=t.apply(this,arguments)||this).started=!1,n}return Kg(e,t),e.prototype.handler=function(t){var e=Nb[t.type];if(e===_y&&(this.started=!0),this.started){var n=Rb.call(this,t,e);e&(ky|xy)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:yy,srcEvent:t})}},e}(Qy);function Rb(t,e){var n=rb(t.touches),i=rb(t.changedTouches);return e&(ky|xy)&&(n=ob(n.concat(i),"identifier",!0)),[n,i]}function Fb(t,e,n){var i="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",r=window.console&&(window.console.warn||window.console.log);return r&&r.call(window.console,i,n),t.apply(this,arguments)}}var Lb=Fb((function(t,e,n){for(var i=Object.keys(e),r=0;r<i.length;)(!n||n&&void 0===t[i[r]])&&(t[i[r]]=e[i[r]]),r++;return t}),"extend","Use `assign`."),Yb=Fb((function(t,e){return Lb(t,e,!0)}),"merge","Use `assign`.");function zb(t,e,n){var i,r=e.prototype;(i=t.prototype=Object.create(r)).constructor=t,i._super=r,n&&Jg(i,n)}function Hb(t,e){return function(){return t.apply(e,arguments)}}var Gb=function(){var t=function(t,e){return void 0===e&&(e={}),new Ib(t,$g({recognizers:Pb.concat()},e))};return t.VERSION="2.0.17-rc",t.DIRECTION_ALL=Py,t.DIRECTION_DOWN=Oy,t.DIRECTION_LEFT=Dy,t.DIRECTION_RIGHT=Ty,t.DIRECTION_UP=Cy,t.DIRECTION_HORIZONTAL=Ey,t.DIRECTION_VERTICAL=My,t.DIRECTION_NONE=Sy,t.DIRECTION_DOWN=Oy,t.INPUT_START=_y,t.INPUT_MOVE=2,t.INPUT_END=ky,t.INPUT_CANCEL=xy,t.STATE_POSSIBLE=1,t.STATE_BEGAN=2,t.STATE_CHANGED=4,t.STATE_ENDED=8,t.STATE_RECOGNIZED=8,t.STATE_CANCELLED=16,t.STATE_FAILED=gb,t.Manager=Ib,t.Input=Qy,t.TouchAction=Fy,t.TouchInput=ab,t.MouseInput=cb,t.PointerEventInput=ib,t.TouchMouseInput=mb,t.SingleTouchInput=jb,t.Recognizer=_b,t.AttrRecognizer=xb,t.Tap=kb,t.Pan=Db,t.Swipe=Tb,t.Pinch=Cb,t.Rotate=Ob,t.Press=Eb,t.on=Xy,t.off=$y,t.each=Ny,t.merge=Yb,t.extend=Lb,t.bindFn=Hb,t.assign=Jg,t.inherit=zb,t.bindFn=Hb,t.prefixed=oy,t.toArray=rb,t.inArray=Zy,t.uniqueArray=ob,t.splitStr=qy,t.boolOrFn=jy,t.hasParent=Ly,t.addEventListeners=Xy,t.removeEventListeners=$y,t.defaults=Jg({},Mb,{preset:Pb}),t}();Gb.defaults;var Bb=Gb;function Wb(t,e){var n=void 0!==lm&&bf(t)||t["@@iterator"];if(!n){if(zh(t)||(n=function(t,e){var n;if(t){if("string"==typeof t)return Vb(t,e);var i=mm(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?vf(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Vb(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function Vb(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var Ub=lm("DELETE");function qb(){var t=Xb.apply(void 0,arguments);return Kb(t),t}function Xb(){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 i;if(e.length>2)return Xb.apply(void 0,fm(i=[qb(e[0],e[1])]).call(i,am(mm(e).call(e,2))));var r=e[0],o=e[1];if(r instanceof Date&&o instanceof Date)return r.setTime(o.getTime()),r;var s,a=Wb(vm(o));try{for(a.s();!(s=a.n()).done;){var l=s.value;Object.prototype.propertyIsEnumerable.call(o,l)&&(o[l]===Ub?delete r[l]:null===r[l]||null===o[l]||"object"!==ch(r[l])||"object"!==ch(o[l])||zh(r[l])||zh(o[l])?r[l]=$b(o[l]):r[l]=Xb(r[l],o[l]))}}catch(t){a.e(t)}finally{a.f()}return r}function $b(t){return zh(t)?lp(t).call(t,(function(t){return $b(t)})):"object"===ch(t)&&null!==t?t instanceof Date?new Date(t.getTime()):Xb({},t):t}function Kb(t){for(var e=0,n=Tp(t);e<n.length;e++){var i=n[e];t[i]===Ub?delete t[i]:"object"===ch(t[i])&&null!==t[i]&&Kb(t[i])}}var Qb="undefined"!=typeof window?window.Hammer||Bb:function(){return function(){var t=function(){};return{on:t,off:t,destroy:t,emit:t,get:function(){return{set:t}}}}()};function Zb(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 i=Qb(this._dom.overlay);i.on("tap",Hh(e=this._onTapOverlay).call(e,this)),this._cleanupQueue.push((function(){i.destroy()}));var r=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];bd(r).call(r,(function(t){i.on(t,(function(t){t.srcEvent.stopPropagation()}))})),document&&document.body&&(this._onClick=function(e){(function(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1})(e.target,t)||n.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push((function(){document.body.removeEventListener("click",n._onClick)}))),this._escListener=function(t){("key"in t?"Escape"===t.key:27===t.keyCode)&&n.deactivate()}}Xg(Zb.prototype),Zb.current=null,Zb.prototype.destroy=function(){var t,e;this.deactivate();var n,i=Wb(Mm(t=Zm(e=this._cleanupQueue).call(e,0)).call(t));try{for(i.s();!(n=i.n()).done;)(0,n.value)()}catch(t){i.e(t)}finally{i.f()}},Zb.prototype.activate=function(){Zb.current&&Zb.current.deactivate(),Zb.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)},Zb.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")},Zb.prototype._onTapOverlay=function(t){this.activate(),t.srcEvent.stopPropagation()};var Jb=/^\/?Date\((-?\d+)/i,tw=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,ew=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,nw=/^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,iw=/^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 rw(t){return t instanceof Number||"number"==typeof t}function ow(t){return t instanceof String||"string"==typeof t}function sw(t){return"object"===ch(t)&&null!==t}function aw(t,e,n,i){var r=!1;!0===i&&(r=null===e[n]&&void 0!==t[n]),r?delete t[n]:t[n]=e[n]}var lw=pv;function uw(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)||!0===n)if("object"===ch(e[r])&&null!==e[r]&&Rv(e[r])===Object.prototype)void 0===t[r]?t[r]=uw({},e[r],n):"object"===ch(t[r])&&null!==t[r]&&Rv(t[r])===Object.prototype?uw(t[r],e[r],n):aw(t,e,r,i);else if(zh(e[r])){var o;t[r]=mm(o=e[r]).call(o)}else aw(t,e,r,i);return t}function cw(t){var e=ch(t);return"object"===e?null===t?"null":t instanceof Boolean?"Boolean":t instanceof Number?"Number":t instanceof String?"String":zh(t)?"Array":t instanceof Date?"Date":"Object":"number"===e?"Number":"boolean"===e?"Boolean":"string"===e?"String":void 0===e?"undefined":e}function hw(t,e){var n;return fm(n=[]).call(n,am(t),[e])}function dw(t){return mm(t).call(t)}var pw=$v,fw={asBoolean:function(t,e){return"function"==typeof t&&(t=t()),null!=t?0!=t:e||null},asNumber:function(t,e){return"function"==typeof t&&(t=t()),null!=t?Number(t)||e||null:e||null},asString:function(t,e){return"function"==typeof t&&(t=t()),null!=t?String(t):e||null},asSize:function(t,e){return"function"==typeof t&&(t=t()),ow(t)?t:rw(t)?t+"px":e||null},asElement:function(t,e){return"function"==typeof t&&(t=t()),t||e||null}};function mw(t){var e;switch(t.length){case 3:case 4:return(e=ew.exec(t))?{r:gg(e[1]+e[1],16),g:gg(e[2]+e[2],16),b:gg(e[3]+e[3],16)}:null;case 6:case 7:return(e=tw.exec(t))?{r:gg(e[1],16),g:gg(e[2],16),b:gg(e[3],16)}:null;default:return null}}function vw(t,e,n){var i;return"#"+mm(i=((1<<24)+(t<<16)+(e<<8)+n).toString(16)).call(i,1)}function gw(t,e,n){t/=255,e/=255,n/=255;var i=Math.min(t,Math.min(e,n)),r=Math.max(t,Math.max(e,n));return i===r?{h:0,s:0,v:i}:{h:60*((t===i?3:n===i?1:5)-(t===i?e-n:n===i?t-e:n-t)/(r-i))/360,s:(r-i)/r,v:r}}function yw(t){var e=document.createElement("div"),n={};e.style.cssText=t;for(var i=0;i<e.style.length;++i)n[e.style[i]]=e.style.getPropertyValue(e.style[i]);return n}function bw(t,e,n){var i,r,o,s=Math.floor(6*t),a=6*t-s,l=n*(1-e),u=n*(1-a*e),c=n*(1-(1-a)*e);switch(s%6){case 0:i=n,r=c,o=l;break;case 1:i=u,r=n,o=l;break;case 2:i=l,r=n,o=c;break;case 3:i=l,r=u,o=n;break;case 4:i=c,r=l,o=n;break;case 5:i=n,r=l,o=u}return{r:Math.floor(255*i),g:Math.floor(255*r),b:Math.floor(255*o)}}function ww(t,e,n){var i=bw(t,e,n);return vw(i.r,i.g,i.b)}function _w(t){var e=mw(t);if(!e)throw new TypeError("'".concat(t,"' is not a valid color."));return gw(e.r,e.g,e.b)}function kw(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)}function xw(t){return nw.test(t)}function Sw(t){return iw.test(t)}function Dw(t){if(null===t||"object"!==ch(t))return null;if(t instanceof Element)return t;var e=Pg(t);for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&"object"==ch(t[n])&&(e[n]=Dw(t[n]));return e}var Tw={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"},Cw=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;Fr(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 fh(t,[{key:"insertTo",value:function(t){void 0!==this.hammer&&(this.hammer.destroy(),this.hammer=void 0),this.container=t,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker update callback is not a function.");this.updateCallback=t}},{key:"setCloseCallback",value:function(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker closing callback is not a function.");this.closeCallback=t}},{key:"_isColorString",value:function(t){if("string"==typeof t)return Tw[t]}},{key:"setColor",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("none"!==t){var n,i=this._isColorString(t);if(void 0!==i&&(t=i),!0===ow(t)){if(!0===xw(t)){var r=t.substr(4).substr(0,t.length-5).split(",");n={r:r[0],g:r[1],b:r[2],a:1}}else if(!0===Sw(t)){var o=t.substr(5).substr(0,t.length-6).split(",");n={r:o[0],g:o[1],b:o[2],a:o[3]}}else if(!0===kw(t)){var s=mw(t);n={r:s.r,g:s.g,b:s.b,a:1}}}else if(t instanceof Object&&void 0!==t.r&&void 0!==t.g&&void 0!==t.b){var a=void 0!==t.a?t.a:"1.0";n={r:t.r,g:t.g,b:t.b,a:a}}if(void 0===n)throw new Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+jg(t));this._setColor(n,e)}}},{key:"show",value:function(){void 0!==this.closeCallback&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var t=this;!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&(this.previousColor=pv({},this.color)),!0===this.applied&&this.updateCallback(this.initialColor),this.frame.style.display="none",sd((function(){void 0!==t.closeCallback&&(t.closeCallback(),t.closeCallback=void 0)}),0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){void 0!==this.previousColor?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(t){!0===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(this.initialColor=pv({},t)),this.color=t;var e=gw(t.r,t.g,t.b),n=2*Math.PI,i=this.r*e.s,r=this.centerCoordinates.x+i*Math.sin(n*e.h),o=this.centerCoordinates.y+i*Math.cos(n*e.h);this.colorPickerSelector.style.left=r-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=o-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(t)}},{key:"_setOpacity",value:function(t){this.color.a=t/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(t){var e=gw(this.color.r,this.color.g,this.color.b);e.v=t/100;var n=bw(e.h,e.s,e.v);n.a=this.color.a,this.color=n,this._updatePicker()}},{key:"_updatePicker",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.color,e=gw(t.r,t.g,t.b),n=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(n.webkitBackingStorePixelRatio||n.mozBackingStorePixelRatio||n.msBackingStorePixelRatio||n.oBackingStorePixelRatio||n.backingStorePixelRatio||1)),n.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var i=this.colorPickerCanvas.clientWidth,r=this.colorPickerCanvas.clientHeight;n.clearRect(0,0,i,r),n.putImageData(this.hueCircle,0,0),n.fillStyle="rgba(0,0,0,"+(1-e.v)+")",n.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),Vg(n).call(n),this.brightnessRange.value=100*e.v,this.opacityRange.value=100*t.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){var t,e,n,i;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 r=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(r.webkitBackingStorePixelRatio||r.mozBackingStorePixelRatio||r.msBackingStorePixelRatio||r.oBackingStorePixelRatio||r.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var o=document.createElement("DIV");o.style.color="red",o.style.fontWeight="bold",o.style.padding="10px",o.innerText="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(o)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch(t){}this.opacityRange.value="100",this.opacityRange.className="vis-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch(t){}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var s=this;this.opacityRange.onchange=function(){s._setOpacity(this.value)},this.opacityRange.oninput=function(){s._setOpacity(this.value)},this.brightnessRange.onchange=function(){s._setBrightness(this.value)},this.brightnessRange.oninput=function(){s._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.innerText="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerText="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerText="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerText="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerText="cancel",this.cancelButton.onclick=Hh(t=this._hide).call(t,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerText="apply",this.applyButton.onclick=Hh(e=this._apply).call(e,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerText="save",this.saveButton.onclick=Hh(n=this._save).call(n,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerText="load last",this.loadButton.onclick=Hh(i=this._loadLast).call(i,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:"_bindHammer",value:function(){var t=this;this.drag={},this.pinch={},this.hammer=new Qb(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("hammer.input",(function(e){e.isFirst&&t._moveSelector(e)})),this.hammer.on("tap",(function(e){t._moveSelector(e)})),this.hammer.on("panstart",(function(e){t._moveSelector(e)})),this.hammer.on("panmove",(function(e){t._moveSelector(e)})),this.hammer.on("panend",(function(e){t._moveSelector(e)}))}},{key:"_generateHueCircle",value:function(){if(!1===this.generated){var t=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)),t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var e,n,i,r,o=this.colorPickerCanvas.clientWidth,s=this.colorPickerCanvas.clientHeight;t.clearRect(0,0,o,s),this.centerCoordinates={x:.5*o,y:.5*s},this.r=.49*o;var a,l=2*Math.PI/360,u=1/this.r;for(i=0;i<360;i++)for(r=0;r<this.r;r++)e=this.centerCoordinates.x+r*Math.sin(l*i),n=this.centerCoordinates.y+r*Math.cos(l*i),a=bw(.002777777777777778*i,r*u,1),t.fillStyle="rgb("+a.r+","+a.g+","+a.b+")",t.fillRect(e-.5,n-.5,2,2);t.strokeStyle="rgba(0,0,0,1)",t.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),t.stroke(),this.hueCircle=t.getImageData(0,0,o,s)}this.generated=!0}},{key:"_moveSelector",value:function(t){var e=this.colorPickerDiv.getBoundingClientRect(),n=t.center.x-e.left,i=t.center.y-e.top,r=.5*this.colorPickerDiv.clientHeight,o=.5*this.colorPickerDiv.clientWidth,s=n-o,a=i-r,l=Math.atan2(s,a),u=.98*Math.min(Math.sqrt(s*s+a*a),o),c=Math.cos(l)*u+r,h=Math.sin(l)*u+o;this.colorPickerSelector.style.top=c-.5*this.colorPickerSelector.clientHeight+"px",this.colorPickerSelector.style.left=h-.5*this.colorPickerSelector.clientWidth+"px";var d=l/(2*Math.PI);d=d<0?d+1:d;var p=u/this.r,f=gw(this.color.r,this.color.g,this.color.b);f.h=d,f.s=p;var m=bw(f.h,f.s,f.v);m.a=this.color.a,this.color=m,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}}]),t}();function Ow(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(e.length<1)throw new TypeError("Invalid arguments.");if(1===e.length)return document.createTextNode(e[0]);var i=document.createElement(e[0]);return i.appendChild(Ow.apply(void 0,am(mm(e).call(e,1)))),i}var Ew,Mw=function(){function t(e,n,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return!1};Fr(this,t),this.parent=e,this.changedOptions=[],this.container=n,this.allowCreation=!1,this.hideOption=o,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},pv(this.options,this.defaultOptions),this.configureOptions=i,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new Cw(r),this.wrapper=void 0}return fh(t,[{key:"setOptions",value:function(t){if(void 0!==t){this.popupHistory={},this._removePopup();var e=!0;if("string"==typeof t)this.options.filter=t;else if(zh(t))this.options.filter=t.join();else if("object"===ch(t)){if(null==t)throw new TypeError("options cannot be null");void 0!==t.container&&(this.options.container=t.container),void 0!==Od(t)&&(this.options.filter=Od(t)),void 0!==t.showButton&&(this.options.showButton=t.showButton),void 0!==t.enabled&&(e=t.enabled)}else"boolean"==typeof t?(this.options.filter=!0,e=t):"function"==typeof t&&(this.options.filter=t,e=!0);!1===Od(this.options)&&(e=!1),this.options.enabled=e}this._clean()}},{key:"setModuleOptions",value:function(t){this.moduleOptions=t,!0===this.options.enabled&&(this._clean(),void 0!==this.options.container&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var t=Od(this.options),e=0,n=!1;for(var i in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,i)&&(this.allowCreation=!1,n=!1,"function"==typeof t?n=(n=t(i,[]))||this._handleObject(this.configureOptions[i],[i],!0):!0!==t&&-1===Og(t).call(t,i)||(n=!0),!1!==n&&(this.allowCreation=!0,e>0&&this._makeItem([]),this._makeHeader(i),this._handleObject(this.configureOptions[i],[i])),e++);this._makeButton(),this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var t=0;t<this.domElements.length;t++)this.wrapper.appendChild(this.domElements[t]);this._showPopupIfNeeded()}},{key:"_clean",value:function(){for(var t=0;t<this.domElements.length;t++)this.wrapper.removeChild(this.domElements[t]);void 0!==this.wrapper&&(this.container.removeChild(this.wrapper),this.wrapper=void 0),this.domElements=[],this._removePopup()}},{key:"_getValue",value:function(t){for(var e=this.moduleOptions,n=0;n<t.length;n++){if(void 0===e[t[n]]){e=void 0;break}e=e[t[n]]}return e}},{key:"_makeItem",value:function(t){if(!0===this.allowCreation){var e=document.createElement("div");e.className="vis-configuration vis-config-item vis-config-s"+t.length;for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return bd(i).call(i,(function(t){e.appendChild(t)})),this.domElements.push(e),this.domElements.length}return 0}},{key:"_makeHeader",value:function(t){var e=document.createElement("div");e.className="vis-configuration vis-config-header",e.innerText=t,this._makeItem([],e)}},{key:"_makeLabel",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=document.createElement("div");if(i.className="vis-configuration vis-config-label vis-config-s"+e.length,!0===n){for(;i.firstChild;)i.removeChild(i.firstChild);i.appendChild(Ow("i","b",t))}else i.innerText=t+":";return i}},{key:"_makeDropdown",value:function(t,e,n){var i=document.createElement("select");i.className="vis-configuration vis-config-select";var r=0;void 0!==e&&-1!==Og(t).call(t,e)&&(r=Og(t).call(t,e));for(var o=0;o<t.length;o++){var s=document.createElement("option");s.value=t[o],o===r&&(s.selected="selected"),s.innerText=t[o],i.appendChild(s)}var a=this;i.onchange=function(){a._update(this.value,n)};var l=this._makeLabel(n[n.length-1],n);this._makeItem(n,l,i)}},{key:"_makeRange",value:function(t,e,n){var i=t[0],r=t[1],o=t[2],s=t[3],a=document.createElement("input");a.className="vis-configuration vis-config-range";try{a.type="range",a.min=r,a.max=o}catch(t){}a.step=s;var l="",u=0;if(void 0!==e){var c=1.2;e<0&&e*c<r?(a.min=Math.ceil(e*c),u=a.min,l="range increased"):e/c<r&&(a.min=Math.ceil(e/c),u=a.min,l="range increased"),e*c>o&&1!==o&&(a.max=Math.ceil(e*c),u=a.max,l="range increased"),a.value=e}else a.value=i;var h=document.createElement("input");h.className="vis-configuration vis-config-rangeinput",h.value=a.value;var d=this;a.onchange=function(){h.value=this.value,d._update(Number(this.value),n)},a.oninput=function(){h.value=this.value};var p=this._makeLabel(n[n.length-1],n),f=this._makeItem(n,p,a,h);""!==l&&this.popupHistory[f]!==u&&(this.popupHistory[f]=u,this._setupPopup(l,f))}},{key:"_makeButton",value:function(){var t=this;if(!0===this.options.showButton){var e=document.createElement("div");e.className="vis-configuration vis-config-button",e.innerText="generate options",e.onclick=function(){t._printOptions()},e.onmouseover=function(){e.className="vis-configuration vis-config-button hover"},e.onmouseout=function(){e.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(e)}}},{key:"_setupPopup",value:function(t,e){var n=this;if(!0===this.initialized&&!0===this.allowCreation&&this.popupCounter<this.popupLimit){var i=document.createElement("div");i.id="vis-configuration-popup",i.className="vis-configuration-popup",i.innerText=t,i.onclick=function(){n._removePopup()},this.popupCounter+=1,this.popupDiv={html:i,index:e}}}},{key:"_removePopup",value:function(){void 0!==this.popupDiv.html&&(this.popupDiv.html.parentNode.removeChild(this.popupDiv.html),clearTimeout(this.popupDiv.hideTimeout),clearTimeout(this.popupDiv.deleteTimeout),this.popupDiv={})}},{key:"_showPopupIfNeeded",value:function(){var t=this;if(void 0!==this.popupDiv.html){var e=this.domElements[this.popupDiv.index].getBoundingClientRect();this.popupDiv.html.style.left=e.left+"px",this.popupDiv.html.style.top=e.top-30+"px",document.body.appendChild(this.popupDiv.html),this.popupDiv.hideTimeout=sd((function(){t.popupDiv.html.style.opacity=0}),1500),this.popupDiv.deleteTimeout=sd((function(){t._removePopup()}),1800)}}},{key:"_makeCheckbox",value:function(t,e,n){var i=document.createElement("input");i.type="checkbox",i.className="vis-configuration vis-config-checkbox",i.checked=t,void 0!==e&&(i.checked=e,e!==t&&("object"===ch(t)?e!==t.enabled&&this.changedOptions.push({path:n,value:e}):this.changedOptions.push({path:n,value:e})));var r=this;i.onchange=function(){r._update(this.checked,n)};var o=this._makeLabel(n[n.length-1],n);this._makeItem(n,o,i)}},{key:"_makeTextInput",value:function(t,e,n){var i=document.createElement("input");i.type="text",i.className="vis-configuration vis-config-text",i.value=e,e!==t&&this.changedOptions.push({path:n,value:e});var r=this;i.onchange=function(){r._update(this.value,n)};var o=this._makeLabel(n[n.length-1],n);this._makeItem(n,o,i)}},{key:"_makeColorField",value:function(t,e,n){var i=this,r=t[1],o=document.createElement("div");"none"!==(e=void 0===e?r:e)?(o.className="vis-configuration vis-config-colorBlock",o.style.backgroundColor=e):o.className="vis-configuration vis-config-colorBlock none",e=void 0===e?r:e,o.onclick=function(){i._showColorPicker(e,o,n)};var s=this._makeLabel(n[n.length-1],n);this._makeItem(n,s,o)}},{key:"_showColorPicker",value:function(t,e,n){var i=this;e.onclick=function(){},this.colorPicker.insertTo(e),this.colorPicker.show(),this.colorPicker.setColor(t),this.colorPicker.setUpdateCallback((function(t){var r="rgba("+t.r+","+t.g+","+t.b+","+t.a+")";e.style.backgroundColor=r,i._update(r,n)})),this.colorPicker.setCloseCallback((function(){e.onclick=function(){i._showColorPicker(t,e,n)}}))}},{key:"_handleObject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=!1,r=Od(this.options),o=!1;for(var s in t)if(Object.prototype.hasOwnProperty.call(t,s)){i=!0;var a=t[s],l=hw(e,s);if("function"==typeof r&&!1===(i=r(s,e))&&!zh(a)&&"string"!=typeof a&&"boolean"!=typeof a&&a instanceof Object&&(this.allowCreation=!1,i=this._handleObject(a,l,!0),this.allowCreation=!1===n),!1!==i){o=!0;var u=this._getValue(l);if(zh(a))this._handleArray(a,u,l);else if("string"==typeof a)this._makeTextInput(a,u,l);else if("boolean"==typeof a)this._makeCheckbox(a,u,l);else if(a instanceof Object){if(!this.hideOption(e,s,this.moduleOptions))if(void 0!==a.enabled){var c=hw(l,"enabled"),h=this._getValue(c);if(!0===h){var d=this._makeLabel(s,l,!0);this._makeItem(l,d),o=this._handleObject(a,l)||o}else this._makeCheckbox(a,h,l)}else{var p=this._makeLabel(s,l,!0);this._makeItem(l,p),o=this._handleObject(a,l)||o}}else console.error("dont know how to handle",a,s,l)}}return o}},{key:"_handleArray",value:function(t,e,n){"string"==typeof t[0]&&"color"===t[0]?(this._makeColorField(t,e,n),t[1]!==e&&this.changedOptions.push({path:n,value:e})):"string"==typeof t[0]?(this._makeDropdown(t,e,n),t[0]!==e&&this.changedOptions.push({path:n,value:e})):"number"==typeof t[0]&&(this._makeRange(t,e,n),t[0]!==e&&this.changedOptions.push({path:n,value:Number(e)}))}},{key:"_update",value:function(t,e){var n=this._constructOptions(t,e);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",n),this.initialized=!0,this.parent.setOptions(n)}},{key:"_constructOptions",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n;t="false"!==(t="true"===t||t)&&t;for(var r=0;r<e.length;r++)"global"!==e[r]&&(void 0===i[e[r]]&&(i[e[r]]={}),r!==e.length-1?i=i[e[r]]:i[e[r]]=t);return n}},{key:"_printOptions",value:function(){for(var t=this.getOptions();this.optionsContainer.firstChild;)this.optionsContainer.removeChild(this.optionsContainer.firstChild);this.optionsContainer.appendChild(Ow("pre","const options = "+jg(t,null,2)))}},{key:"getOptions",value:function(){for(var t={},e=0;e<this.changedOptions.length;e++)this._constructOptions(this.changedOptions[e].value,this.changedOptions[e].path,t);return t}}]),t}(),Pw=function(){function t(e,n){Fr(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 fh(t,[{key:"setPosition",value:function(t,e){this.x=gg(t),this.y=gg(e)}},{key:"setText",value:function(t){if(t instanceof Element){for(;this.frame.firstChild;)this.frame.removeChild(this.frame.firstChild);this.frame.appendChild(t)}else this.frame.innerText=t}},{key:"show",value:function(t){if(void 0===t&&(t=!0),!0===t){var e=this.frame.clientHeight,n=this.frame.clientWidth,i=this.frame.parentNode.clientHeight,r=this.frame.parentNode.clientWidth,o=0,s=0;if("flip"==this.overflowMethod){var a=!1,l=!0;this.y-e<this.padding&&(l=!1),this.x+n>r-this.padding&&(a=!0),o=a?this.x-n:this.x,s=l?this.y-e:this.y}else(s=this.y-e)+e+this.padding>i&&(s=i-e-this.padding),s<this.padding&&(s=this.padding),(o=this.x)+n+this.padding>r&&(o=r-n-this.padding),o<this.padding&&(o=this.padding);this.frame.style.left=o+"px",this.frame.style.top=s+"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}(),Aw=!1,Iw="background: #FFeeee; color: #dd0000",Nw=function(){function t(){Fr(this,t)}return fh(t,null,[{key:"validate",value:function(e,n,i){Aw=!1,Ew=n;var r=n;return void 0!==i&&(r=n[i]),t.parse(e,r,[]),Aw}},{key:"parse",value:function(e,n,i){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.check(r,e,n,i)}},{key:"check",value:function(e,n,i,r){if(void 0!==i[e]||void 0!==i.__any__){var o=e,s=!0;void 0===i[e]&&void 0!==i.__any__&&(o="__any__",s="object"===t.getType(n[e]));var a=i[o];s&&void 0!==a.__type__&&(a=a.__type__),t.checkFields(e,n,i,o,a,r)}else t.getSuggestion(e,i,r)}},{key:"checkFields",value:function(e,n,i,r,o,s){var a=function(n){console.error("%c"+n+t.printLocation(s,e),Iw)},l=t.getType(n[e]),u=o[l];void 0!==u?"array"===t.getType(u)&&-1===Og(u).call(u,n[e])?(a('Invalid option detected in "'+e+'". Allowed values are:'+t.print(u)+' not "'+n[e]+'". '),Aw=!0):"object"===l&&"__any__"!==r&&(s=hw(s,e),t.parse(n[e],i[r],s)):void 0===o.any&&(a('Invalid type received for "'+e+'". Expected: '+t.print(Tp(o))+". Received ["+l+'] "'+n[e]+'"'),Aw=!0)}},{key:"getType",value:function(t){var e=ch(t);return"object"===e?null===t?"null":t instanceof Boolean?"boolean":t instanceof Number?"number":t instanceof String?"string":zh(t)?"array":t instanceof Date?"date":void 0!==t.nodeType?"dom":!0===t._isAMomentObject?"moment":"object":"number"===e?"number":"boolean"===e?"boolean":"string"===e?"string":void 0===e?"undefined":e}},{key:"getSuggestion",value:function(e,n,i){var r,o=t.findInOptions(e,n,i,!1),s=t.findInOptions(e,Ew,[],!0);r=void 0!==o.indexMatch?" in "+t.printLocation(o.path,e,"")+'Perhaps it was incomplete? Did you mean: "'+o.indexMatch+'"?\n\n':s.distance<=4&&o.distance>s.distance?" in "+t.printLocation(o.path,e,"")+"Perhaps it was misplaced? Matching option found at: "+t.printLocation(s.path,s.closestMatch,""):o.distance<=8?'. Did you mean "'+o.closestMatch+'"?'+t.printLocation(o.path,e):". Did you mean one of these: "+t.print(Tp(n))+t.printLocation(i,e),console.error('%cUnknown option detected: "'+e+'"'+r,Iw),Aw=!0}},{key:"findInOptions",value:function(e,n,i){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=1e9,s="",a=[],l=e.toLowerCase(),u=void 0;for(var c in n){var h=void 0;if(void 0!==n[c].__type__&&!0===r){var d=t.findInOptions(e,n[c],hw(i,c));o>d.distance&&(s=d.closestMatch,a=d.path,o=d.distance,u=d.indexMatch)}else{var p;-1!==Og(p=c.toLowerCase()).call(p,l)&&(u=c),o>(h=t.levenshteinDistance(e,c))&&(s=c,a=dw(i),o=h)}}return{closestMatch:s,path:a,distance:o,indexMatch:u}}},{key:"printLocation",value:function(t,e){for(var n="\n\n"+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Problem value found at: \n")+"options = {\n",i=0;i<t.length;i++){for(var r=0;r<i+1;r++)n+=" ";n+=t[i]+": {\n"}for(var o=0;o<t.length+1;o++)n+=" ";n+=e+"\n";for(var s=0;s<t.length+1;s++){for(var a=0;a<t.length-s;a++)n+=" ";n+="}\n"}return n+"\n\n"}},{key:"print",value:function(t){return jg(t).replace(/(")|(\[)|(\])|(,"__type__")/g,"").replace(/(,)/g,", ")}},{key:"levenshteinDistance",value:function(t,e){if(0===t.length)return e.length;if(0===e.length)return t.length;var n,i,r=[];for(n=0;n<=e.length;n++)r[n]=[n];for(i=0;i<=t.length;i++)r[0][i]=i;for(n=1;n<=e.length;n++)for(i=1;i<=t.length;i++)e.charAt(n-1)==t.charAt(i-1)?r[n][i]=r[n-1][i-1]:r[n][i]=Math.min(r[n-1][i-1]+1,Math.min(r[n][i-1]+1,r[n-1][i]+1));return r[e.length][t.length]}}]),t}(),jw=Zb,Rw=Cw,Fw=Mw,Lw=Qb,Yw=Pw,zw=Iw,Hw=Nw,Gw=Object.freeze({__proto__:null,Activator:jw,Alea:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){var e=function(){for(var t=function(){var t=4022871197;return function(e){for(var n=e.toString(),i=0;i<n.length;i++){var r=.02519603282416938*(t+=n.charCodeAt(i));r-=t=r>>>0,t=(r*=t)>>>0,t+=4294967296*(r-=t)}return 2.3283064365386963e-10*(t>>>0)}}(),e=t(" "),n=t(" "),i=t(" "),r=0;r<arguments.length;r++)(e-=t(r<0||arguments.length<=r?void 0:arguments[r]))<0&&(e+=1),(n-=t(r<0||arguments.length<=r?void 0:arguments[r]))<0&&(n+=1),(i-=t(r<0||arguments.length<=r?void 0:arguments[r]))<0&&(i+=1);return[e,n,i]}(t),n=sm(e,3),i=n[0],r=n[1],o=n[2],s=1,a=function(){var t=2091639*i+2.3283064365386963e-10*s;return i=r,r=o,o=t-(s=0|t)};return a.uint32=function(){return 4294967296*a()},a.fract53=function(){return a()+11102230246251565e-32*(2097152*a()|0)},a.algorithm="Alea",a.seed=t,a.version="0.9",a}(e.length?e:[wm()])},ColorPicker:Rw,Configurator:Fw,DELETE:Ub,HSVToHex:ww,HSVToRGB:bw,Hammer:Lw,Popup:Yw,RGBToHSV:gw,RGBToHex:vw,VALIDATOR_PRINT_STYLE:zw,Validator:Hw,addClassName:function(t,e){var n=t.className.split(" "),i=e.split(" ");n=fm(n).call(n,Od(i).call(i,(function(t){return!jv(n).call(n,t)}))),t.className=n.join(" ")},addCssText:function(t,e){for(var n=yw(e),i=0,r=Mg(n);i<r.length;i++){var o=sm(r[i],2),s=o[0],a=o[1];t.style.setProperty(s,a)}},addEventListener:function(t,e,n,i){var r;t.addEventListener?(void 0===i&&(i=!1),"mousewheel"===e&&jv(r=navigator.userAgent).call(r,"Firefox")&&(e="DOMMouseScroll"),t.addEventListener(e,n,i)):t.attachEvent("on"+e,n)},binarySearchCustom:function(t,e,n,i){for(var r=0,o=0,s=t.length-1;o<=s&&r<1e4;){var a=Math.floor((o+s)/2),l=t[a],u=e(void 0===i?l[n]:l[n][i]);if(0==u)return a;-1==u?o=a+1:s=a-1,r++}return-1},binarySearchValue:function(t,e,n,i,r){var o,s,a,l,u=0,c=0,h=t.length-1;for(r=null!=r?r:function(t,e){return t==e?0:t<e?-1:1};c<=h&&u<1e4;){if(l=Math.floor(.5*(h+c)),o=t[Math.max(0,l-1)][n],s=t[l][n],a=t[Math.min(t.length-1,l+1)][n],0==r(s,e))return l;if(r(o,e)<0&&r(s,e)>0)return"before"==i?Math.max(0,l-1):l;if(r(s,e)<0&&r(a,e)>0)return"before"==i?l:Math.min(t.length-1,l+1);r(s,e)<0?c=l+1:h=l-1,u++}return-1},bridgeObject:Dw,copyAndExtendArray:hw,copyArray:dw,deepExtend:uw,deepObjectAssign:qb,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,i=t.length;n<i;n++)if(t[n]!=e[n])return!1;return!0},extend:lw,fillIfDefined:function t(e,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var r in e)if(void 0!==n[r])if(null===n[r]||"object"!==ch(n[r]))aw(e,n,r,i);else{var o=e[r],s=n[r];sw(o)&&sw(s)&&t(o,s,i)}},forEach:function(t,e){if(zh(t))for(var n=t.length,i=0;i<n;i++)e(t[i],i,t);else for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e(t[r],r,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 i=t.offsetWidth;return n==i&&(i=e.clientWidth),document.body.removeChild(e),n-i},getTarget:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.event,e=null;return t&&(t.target?e=t.target:t.srcElement&&(e=t.srcElement)),e instanceof Element&&(null==e.nodeType||3!=e.nodeType||(e=e.parentNode)instanceof Element)?e:null},getType:cw,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:_w,hexToRGB:mw,insertSort:function(t,e){for(var n=0;n<t.length;n++){var i=t[n],r=void 0;for(r=n;r>0&&e(i,t[r-1])<0;r--)t[r]=t[r-1];t[r]=i}return t},isDate:function(t){if(t instanceof Date)return!0;if(ow(t)){if(Jb.exec(t))return!0;if(!isNaN(Date.parse(t)))return!0}return!1},isNumber:rw,isObject:sw,isString:ow,isValidHex:kw,isValidRGB:xw,isValidRGBA:Sw,mergeOptions:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=function(t){return null!=t},o=function(t){return null!==t&&"object"===ch(t)};if(!o(t))throw new Error("Parameter mergeTarget must be an object");if(!o(e))throw new Error("Parameter options must be an object");if(!r(n))throw new Error("Parameter option must have a value");if(!o(i))throw new Error("Parameter globalOptions must be an object");var s=e[n],a=o(i)&&!function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}(i)?i[n]:void 0,l=a?a.enabled:void 0;if(void 0!==s){if("boolean"==typeof s)return o(t[n])||(t[n]={}),void(t[n].enabled=s);if(null===s&&!o(t[n])){if(!r(a))return;t[n]=Pg(a)}if(o(s)){var u=!0;void 0!==s.enabled?u=s.enabled:void 0!==l&&(u=a.enabled),function(t,e,n){o(t[n])||(t[n]={});var i=e[n],r=t[n];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])}(t,e,n),t[n].enabled=u}}},option:fw,overrideOpacity:function(t,e){if(jv(t).call(t,"rgba"))return t;if(jv(t).call(t,"rgb")){var n=t.substr(Og(t).call(t,"(")+1).replace(")","").split(",");return"rgba("+n[0]+","+n[1]+","+n[2]+","+e+")"}var i=mw(t);return null==i?t:"rgba("+i.r+","+i.g+","+i.b+","+e+")"},parseColor:function(t,e){if(ow(t)){var n=t;if(xw(n)){var i,r=lp(i=n.substr(4).substr(0,n.length-5).split(",")).call(i,(function(t){return gg(t)}));n=vw(r[0],r[1],r[2])}if(!0===kw(n)){var o=_w(n),s={h:o.h,s:.8*o.s,v:Math.min(1,1.02*o.v)},a={h:o.h,s:Math.min(1,1.25*o.s),v:.8*o.v},l=ww(a.h,a.s,a.v),u=ww(s.h,s.s,s.v);return{background:n,border:l,highlight:{background:u,border:l},hover:{background:u,border:l}}}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:ow(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:ow(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:ow(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:ow(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,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return qb.apply(void 0,fm(e=[{},t]).call(e,i))},recursiveDOMDelete:function t(e){if(e)for(;!0===e.hasChildNodes();){var n=e.firstChild;n&&(t(n),e.removeChild(n))}},removeClassName:function(t,e){var n=t.className.split(" "),i=e.split(" ");n=Od(n).call(n,(function(t){return!jv(i).call(i,t)})),t.className=n.join(" ")},removeCssText:function(t,e){for(var n=yw(e),i=0,r=Tp(n);i<r.length;i++){var o=r[i];t.style.removeProperty(o)}},removeEventListener:function(t,e,n,i){var r;t.removeEventListener?(void 0===i&&(i=!1),"mousewheel"===e&&jv(r=navigator.userAgent).call(r,"Firefox")&&(e="DOMMouseScroll"),t.removeEventListener(e,n,i)):t.detachEvent("on"+e,n)},selectiveBridgeObject:function(t,e){if(null!==e&&"object"===ch(e)){for(var n=Pg(e),i=0;i<t.length;i++)Object.prototype.hasOwnProperty.call(e,t[i])&&"object"==ch(e[t[i]])&&(n[t[i]]=Dw(e[t[i]]));return n}return null},selectiveDeepExtend:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(zh(n))throw new TypeError("Arrays are not supported by deepExtend");for(var r=0;r<t.length;r++){var o=t[r];if(Object.prototype.hasOwnProperty.call(n,o))if(n[o]&&n[o].constructor===Object)void 0===e[o]&&(e[o]={}),e[o].constructor===Object?uw(e[o],n[o],!1,i):aw(e,n,o,i);else{if(zh(n[o]))throw new TypeError("Arrays are not supported by deepExtend");aw(e,n,o,i)}}return e},selectiveExtend:function(t,e){if(!zh(t))throw new Error("Array with property names expected as first argument");for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];for(var o=0,s=i;o<s.length;o++)for(var a=s[o],l=0;l<t.length;l++){var u=t[l];a&&Object.prototype.hasOwnProperty.call(a,u)&&(e[u]=a[u])}return e},selectiveNotDeepExtend:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(zh(n))throw new TypeError("Arrays are not supported by deepExtend");for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)&&!jv(t).call(t,r))if(n[r]&&n[r].constructor===Object)void 0===e[r]&&(e[r]={}),e[r].constructor===Object?uw(e[r],n[r]):aw(e,n,r,i);else if(zh(n[r])){e[r]=[];for(var o=0;o<n[r].length;o++)e[r].push(n[r][o])}else aw(e,n,r,i);return e},throttle:function(t){var e=!1;return function(){e||(e=!0,requestAnimationFrame((function(){e=!1,t()})))}},toArray:pw,topMost:function(t,e){var n;zh(e)||(e=[e]);var i,r=Wb(t);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o){n=o[e[0]];for(var s=1;s<e.length;s++)n&&(n=n[e[s]]);if(void 0!==n)break}}}catch(t){r.e(t)}finally{r.f()}return n},updateProperty:function(t,e,n){return t[e]!==n&&(t[e]=n,!0)}}),Bw={exports:{}},Ww={},Vw={exports:{}},Uw={};function qw(){return{"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}}var Xw=/javascript\s*\:/gim;Uw.whiteList=qw(),Uw.getDefaultWhiteList=qw,Uw.onAttr=function(t,e,n){},Uw.onIgnoreAttr=function(t,e,n){},Uw.safeAttrValue=function(t,e){return Xw.test(e)?"":e};var $w={indexOf:function(t,e){var n,i;if(Array.prototype.indexOf)return t.indexOf(e);for(n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},forEach:function(t,e,n){var i,r;if(Array.prototype.forEach)return t.forEach(e,n);for(i=0,r=t.length;i<r;i++)e.call(n,t[i],i,t)},trim:function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(t){return String.prototype.trimRight?t.trimRight():t.replace(/(\s*$)/g,"")}},Kw=function(t,e){";"!==(t=$w.trimRight(t))[t.length-1]&&(t+=";");var n=t.length,i=!1,r=0,o=0,s="";function a(){if(!i){var n=$w.trim(t.slice(r,o)),a=n.indexOf(":");if(-1!==a){var l=$w.trim(n.slice(0,a)),u=$w.trim(n.slice(a+1));if(l){var c=e(r,s.length,l,u,n);c&&(s+=c+"; ")}}}r=o+1}for(;o<n;o++){var l=t[o];if("/"===l&&"*"===t[o+1]){var u=t.indexOf("*/",o+2);if(-1===u)break;r=(o=u+1)+1,i=!1}else"("===l?i=!0:")"===l?i=!1:";"===l?i||a():"\n"===l&&a()}return $w.trim(s)},Qw=Uw,Zw=Kw;function Jw(t){return null==t}function t_(t){(t=function(t){var e={};for(var n in t)e[n]=t[n];return e}(t||{})).whiteList=t.whiteList||Qw.whiteList,t.onAttr=t.onAttr||Qw.onAttr,t.onIgnoreAttr=t.onIgnoreAttr||Qw.onIgnoreAttr,t.safeAttrValue=t.safeAttrValue||Qw.safeAttrValue,this.options=t}t_.prototype.process=function(t){if(!(t=(t=t||"").toString()))return"";var e=this.options,n=e.whiteList,i=e.onAttr,r=e.onIgnoreAttr,o=e.safeAttrValue,s=Zw(t,(function(t,e,s,a,l){var u=n[s],c=!1;if(!0===u?c=u:"function"==typeof u?c=u(a):u instanceof RegExp&&(c=u.test(a)),!0!==c&&(c=!1),a=o(s,a)){var h,d={position:e,sourcePosition:t,source:l,isWhite:c};return c?Jw(h=i(s,a,d))?s+":"+a:h:Jw(h=r(s,a,d))?void 0:h}}));return s};var e_=t_;!function(t,e){var n=Uw,i=e_;for(var r in(e=t.exports=function(t,e){return new i(e).process(t)}).FilterCSS=i,n)e[r]=n[r];"undefined"!=typeof window&&(window.filterCSS=t.exports)}(Vw,Vw.exports);var n_=Vw.exports,i_={indexOf:function(t,e){var n,i;if(Array.prototype.indexOf)return t.indexOf(e);for(n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},forEach:function(t,e,n){var i,r;if(Array.prototype.forEach)return t.forEach(e,n);for(i=0,r=t.length;i<r;i++)e.call(n,t[i],i,t)},trim:function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(t){var e=/\s|\n|\t/.exec(t);return e?e.index:-1}},r_=n_.FilterCSS,o_=n_.getDefaultWhiteList,s_=i_;function a_(){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 l_=new r_;function u_(t){return t.replace(c_,"<").replace(h_,">")}var c_=/</g,h_=/>/g,d_=/"/g,p_=/"/g,f_=/&#([a-zA-Z0-9]*);?/gim,m_=/:?/gim,v_=/&newline;?/gim,g_=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,y_=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,b_=/u\s*r\s*l\s*\(.*/gi;function w_(t){return t.replace(d_,""")}function __(t){return t.replace(p_,'"')}function k_(t){return t.replace(f_,(function(t,e){return"x"===e[0]||"X"===e[0]?String.fromCharCode(parseInt(e.substr(1),16)):String.fromCharCode(parseInt(e,10))}))}function x_(t){return t.replace(m_,":").replace(v_," ")}function S_(t){for(var e="",n=0,i=t.length;n<i;n++)e+=t.charCodeAt(n)<32?" ":t.charAt(n);return s_.trim(e)}function D_(t){return S_(t=x_(t=k_(t=__(t))))}function T_(t){return u_(t=w_(t))}Ww.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"]},Ww.getDefaultWhiteList=a_,Ww.onTag=function(t,e,n){},Ww.onIgnoreTag=function(t,e,n){},Ww.onTagAttr=function(t,e,n){},Ww.onIgnoreTagAttr=function(t,e,n){},Ww.safeAttrValue=function(t,e,n,i){if(n=D_(n),"href"===e||"src"===e){if("#"===(n=s_.trim(n)))return"#";if("http://"!==n.substr(0,7)&&"https://"!==n.substr(0,8)&&"mailto:"!==n.substr(0,7)&&"tel:"!==n.substr(0,4)&&"data:image/"!==n.substr(0,11)&&"ftp://"!==n.substr(0,6)&&"./"!==n.substr(0,2)&&"../"!==n.substr(0,3)&&"#"!==n[0]&&"/"!==n[0])return""}else if("background"===e){if(g_.lastIndex=0,g_.test(n))return""}else if("style"===e){if(y_.lastIndex=0,y_.test(n))return"";if(b_.lastIndex=0,b_.test(n)&&(g_.lastIndex=0,g_.test(n)))return"";!1!==i&&(n=(i=i||l_).process(n))}return T_(n)},Ww.escapeHtml=u_,Ww.escapeQuote=w_,Ww.unescapeQuote=__,Ww.escapeHtmlEntities=k_,Ww.escapeDangerHtml5Entities=x_,Ww.clearNonPrintableCharacter=S_,Ww.friendlyAttrValue=D_,Ww.escapeAttrValue=T_,Ww.onIgnoreTagStripAll=function(){return""},Ww.StripTagBody=function(t,e){"function"!=typeof e&&(e=function(){});var n=!Array.isArray(t),i=[],r=!1;return{onIgnoreTag:function(o,s,a){if(function(e){return!!n||-1!==s_.indexOf(t,e)}(o)){if(a.isClosing){var l="[/removed]",u=a.position+10;return i.push([!1!==r?r:a.position,u]),r=!1,l}return r||(r=a.position),"[removed]"}return e(o,s,a)},remove:function(t){var e="",n=0;return s_.forEach(i,(function(i){e+=t.slice(n,i[0]),n=i[1]})),e+=t.slice(n)}}},Ww.stripCommentTag=function(t){for(var e="",n=0;n<t.length;){var i=t.indexOf("\x3c!--",n);if(-1===i){e+=t.slice(n);break}e+=t.slice(n,i);var r=t.indexOf("--\x3e",i);if(-1===r)break;n=r+3}return e},Ww.stripBlankChar=function(t){var e=t.split("");return(e=e.filter((function(t){var e=t.charCodeAt(0);return!(127===e||e<=31&&10!==e&&13!==e)}))).join("")},Ww.cssFilter=l_,Ww.getDefaultCSSWhiteList=o_;var C_={},O_=i_;function E_(t){var e,n=O_.spaceIndex(t);return e=-1===n?t.slice(1,-1):t.slice(1,n+1),"/"===(e=O_.trim(e).toLowerCase()).slice(0,1)&&(e=e.slice(1)),"/"===e.slice(-1)&&(e=e.slice(0,-1)),e}function M_(t){return"</"===t.slice(0,2)}var P_=/[^a-zA-Z0-9\\_:.-]/gim;function A_(t,e){for(;e<t.length;e++){var n=t[e];if(" "!==n)return"="===n?e:-1}}function I_(t,e){for(;e<t.length;e++){var n=t[e];if(" "!==n)return"'"===n||'"'===n?e:-1}}function N_(t,e){for(;e>0;e--){var n=t[e];if(" "!==n)return"="===n?e:-1}}function j_(t){return function(t){return'"'===t[0]&&'"'===t[t.length-1]||"'"===t[0]&&"'"===t[t.length-1]}(t)?t.substr(1,t.length-2):t}C_.parseTag=function(t,e,n){var i="",r=0,o=!1,s=!1,a=0,l=t.length,u="",c="";t:for(a=0;a<l;a++){var h=t.charAt(a);if(!1===o){if("<"===h){o=a;continue}}else if(!1===s){if("<"===h){i+=n(t.slice(r,a)),o=a,r=a;continue}if(">"===h||a===l-1){i+=n(t.slice(r,o)),u=E_(c=t.slice(o,a+1)),i+=e(o,i.length,u,c,M_(c)),r=a+1,o=!1;continue}if('"'===h||"'"===h)for(var d=1,p=t.charAt(a-d);""===p.trim()||"="===p;){if("="===p){s=h;continue t}p=t.charAt(a-++d)}}else if(h===s){s=!1;continue}}return r<l&&(i+=n(t.substr(r))),i},C_.parseAttr=function(t,e){var n=0,i=0,r=[],o=!1,s=t.length;function a(t,n){if(!((t=(t=O_.trim(t)).replace(P_,"").toLowerCase()).length<1)){var i=e(t,n||"");i&&r.push(i)}}for(var l=0;l<s;l++){var u,c=t.charAt(l);if(!1!==o||"="!==c)if(!1===o||l!==i){if(/\s|\n|\t/.test(c)){if(t=t.replace(/\s|\n|\t/g," "),!1===o){if(-1===(u=A_(t,l))){a(O_.trim(t.slice(n,l))),o=!1,n=l+1;continue}l=u-1;continue}if(-1===(u=N_(t,l-1))){a(o,j_(O_.trim(t.slice(n,l)))),o=!1,n=l+1;continue}}}else{if(-1===(u=t.indexOf(c,l+1)))break;a(o,O_.trim(t.slice(i+1,u))),o=!1,n=(l=u)+1}else o=t.slice(n,l),n=l+1,i='"'===t.charAt(n)||"'"===t.charAt(n)?n:I_(t,l+1)}return n<t.length&&(!1===o?a(t.slice(n)):a(o,j_(O_.trim(t.slice(n))))),O_.trim(r.join(" "))};var R_=n_.FilterCSS,F_=Ww,L_=C_,Y_=L_.parseTag,z_=L_.parseAttr,H_=i_;function G_(t){return null==t}function B_(t){(t=function(t){var e={};for(var n in t)e[n]=t[n];return e}(t||{})).stripIgnoreTag&&(t.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),t.onIgnoreTag=F_.onIgnoreTagStripAll),t.whiteList||t.allowList?t.whiteList=function(t){var e={};for(var n in t)Array.isArray(t[n])?e[n.toLowerCase()]=t[n].map((function(t){return t.toLowerCase()})):e[n.toLowerCase()]=t[n];return e}(t.whiteList||t.allowList):t.whiteList=F_.whiteList,t.onTag=t.onTag||F_.onTag,t.onTagAttr=t.onTagAttr||F_.onTagAttr,t.onIgnoreTag=t.onIgnoreTag||F_.onIgnoreTag,t.onIgnoreTagAttr=t.onIgnoreTagAttr||F_.onIgnoreTagAttr,t.safeAttrValue=t.safeAttrValue||F_.safeAttrValue,t.escapeHtml=t.escapeHtml||F_.escapeHtml,this.options=t,!1===t.css?this.cssFilter=!1:(t.css=t.css||{},this.cssFilter=new R_(t.css))}B_.prototype.process=function(t){if(!(t=(t=t||"").toString()))return"";var e=this.options,n=e.whiteList,i=e.onTag,r=e.onIgnoreTag,o=e.onTagAttr,s=e.onIgnoreTagAttr,a=e.safeAttrValue,l=e.escapeHtml,u=this.cssFilter;e.stripBlankChar&&(t=F_.stripBlankChar(t)),e.allowCommentTag||(t=F_.stripCommentTag(t));var c=!1;e.stripIgnoreTagBody&&(c=F_.StripTagBody(e.stripIgnoreTagBody,r),r=c.onIgnoreTag);var h=Y_(t,(function(t,e,c,h,d){var p={sourcePosition:t,position:e,isClosing:d,isWhite:Object.prototype.hasOwnProperty.call(n,c)},f=i(c,h,p);if(!G_(f))return f;if(p.isWhite){if(p.isClosing)return"</"+c+">";var m=function(t){var e=H_.spaceIndex(t);if(-1===e)return{html:"",closing:"/"===t[t.length-2]};var n="/"===(t=H_.trim(t.slice(e+1,-1)))[t.length-1];return n&&(t=H_.trim(t.slice(0,-1))),{html:t,closing:n}}(h),v=n[c],g=z_(m.html,(function(t,e){var n=-1!==H_.indexOf(v,t),i=o(c,t,e,n);return G_(i)?n?(e=a(c,t,e,u))?t+'="'+e+'"':t:G_(i=s(c,t,e,n))?void 0:i:i}));return h="<"+c,g&&(h+=" "+g),m.closing&&(h+=" /"),h+">"}return G_(f=r(c,h,p))?l(h):f}),l);return c&&(h=c.remove(h)),h};var W_=B_;!function(t,e){var n=Ww,i=C_,r=W_;function o(t,e){return new r(e).process(t)}(e=t.exports=o).filterXSS=o,e.FilterXSS=r,function(){for(var t in n)e[t]=n[t];for(var r in i)e[r]=i[r]}(),"undefined"!=typeof window&&(window.filterXSS=t.exports),"undefined"!=typeof self&&"undefined"!=typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=t.exports)}(Bw,Bw.exports);var V_=s(Bw.exports);let U_;const q_=new Uint8Array(16);function X_(){if(!U_&&(U_="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!U_))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return U_(q_)}const $_=[];for(let t=0;t<256;++t)$_.push((t+256).toString(16).slice(1));var K_={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Q_(t,e,n){if(K_.randomUUID&&!e&&!t)return K_.randomUUID();const i=(t=t||{}).random||(t.rng||X_)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,e){n=n||0;for(let t=0;t<16;++t)e[n+t]=i[t];return e}return function(t,e=0){return $_[t[e+0]]+$_[t[e+1]]+$_[t[e+2]]+$_[t[e+3]]+"-"+$_[t[e+4]]+$_[t[e+5]]+"-"+$_[t[e+6]]+$_[t[e+7]]+"-"+$_[t[e+8]]+$_[t[e+9]]+"-"+$_[t[e+10]]+$_[t[e+11]]+$_[t[e+12]]+$_[t[e+13]]+$_[t[e+14]]+$_[t[e+15]]}(i)}function Z_(t,e){var n=Tp(t);if(_d){var i=_d(t);e&&(i=Od(i).call(i,(function(e){return Fd(t,e).enumerable}))),n.push.apply(n,i)}return n}function J_(t){for(var e=1;e<arguments.length;e++){var n,i,r=null!=arguments[e]?arguments[e]:{};e%2?bd(n=Z_(Object(r),!0)).call(n,(function(e){var n,i,o;n=t,i=e,o=r[e],(i=dh(i))in n?Vr(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o})):Xd?ep(t,Xd(r)):bd(i=Z_(Object(r))).call(i,(function(e){Cp(t,e,Fd(r,e))}))}return t}function tk(t){var e;if(!t)return!1;var n=null!==(e=t.idProp)&&void 0!==e?e:t._idProp;return!!n&&r.isDataViewLike(n,t)}var ek=/^\/?Date\((-?\d+)/i,nk=/^\d+$/;function ik(t,e){var i;if(void 0!==t){if(null===t)return null;if(!e)return t;if("string"!=typeof e&&!(e instanceof String))throw new Error("Type must be a string");switch(e){case"boolean":case"Boolean":return Boolean(t);case"number":case"Number":return ow(t)&&!isNaN(Date.parse(t))?n(t).valueOf():Number(t.valueOf());case"string":case"String":return String(t);case"Date":try{return ik(t,"Moment").toDate()}catch(n){throw n instanceof TypeError?new TypeError("Cannot convert object of type "+cw(t)+" to type "+e):n}case"Moment":if(rw(t))return n(t);if(t instanceof Date)return n(t.valueOf());if(n.isMoment(t))return n(t);if(ow(t))return(i=ek.exec(t))?n(Number(i[1])):(i=nk.exec(t),n(i?Number(t):t));throw new TypeError("Cannot convert object of type "+cw(t)+" to type "+e);case"ISODate":if(rw(t))return new Date(t);if(t instanceof Date)return t.toISOString();if(n.isMoment(t))return t.toDate().toISOString();if(ow(t))return(i=ek.exec(t))?new Date(Number(i[1])).toISOString():n(t).format();throw new Error("Cannot convert object of type "+cw(t)+" to type ISODate");case"ASPDate":if(rw(t))return"/Date("+t+")/";if(t instanceof Date||n.isMoment(t))return"/Date("+t.valueOf()+")/";if(ow(t))return"/Date("+((i=ek.exec(t))?new Date(Number(i[1])).valueOf():new Date(t).valueOf())+")/";throw new Error("Cannot convert object of type "+cw(t)+" to type ASPDate");default:throw new Error("Unknown type ".concat(e))}}}function rk(t){var e,n,i,o,s,a,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{start:"Date",end:"Date"},u=t._idProp,c=new r.DataSet({fieldId:u}),h=lp(e=r.createNewDataPipeFrom(t)).call(e,(function(t){var e;return xp(e=Tp(t)).call(e,(function(e,n){return e[n]=ik(t[n],l[n]),e}),{})})).to(c);return h.all().start(),{add:function(){var e;return(e=t.getDataSet()).add.apply(e,arguments)},remove:function(){var e;return(e=t.getDataSet()).remove.apply(e,arguments)},update:function(){var e;return(e=t.getDataSet()).update.apply(e,arguments)},updateOnly:function(){var e;return(e=t.getDataSet()).updateOnly.apply(e,arguments)},clear:function(){var e;return(e=t.getDataSet()).clear.apply(e,arguments)},forEach:Hh(n=bd(c)).call(n,c),get:Hh(i=c.get).call(i,c),getIds:Hh(o=c.getIds).call(o,c),off:Hh(s=c.off).call(s,c),on:Hh(a=c.on).call(a,c),get length(){return c.length},idProp:u,type:l,rawDS:t,coercedDS:c,dispose:function(){return h.stop()}}}var ok=function(t){var e=new V_.FilterXSS(t);return function(t){return e.process(t)}},sk=function(t){return t},ak=ok(),lk=J_(J_({},Gw),{},{convert:ik,setupXSSProtection:function(t){t&&(!0===t.disabled?(ak=sk,console.warn("You disabled XSS protection for vis-Timeline. I sure hope you know what you're doing!")):t.filterOptions&&(ak=ok(t.filterOptions)))}});Cp(lk,"xss",{get:function(){return ak}});var uk=l,ck=u,hk=Oo,dk=rg.trim,pk=Kv,fk=w("".charAt),mk=uk.parseFloat,vk=uk.Symbol,gk=vk&&vk.iterator,yk=1/mk(pk+"-0")!=-1/0||gk&&!ck((function(){mk(Object(gk))}))?function(t){var e=dk(hk(t)),n=mk(e);return 0===n&&"-"===fk(e,0)?-0:n}:mk;In({global:!0,forced:parseFloat!==yk},{parseFloat:yk});var bk=s(ot.parseFloat),wk=function(){function t(e,n){Fr(this,t),this.options=null,this.props=null}return fh(t,[{key:"setOptions",value:function(t){t&&lk.extend(this.options,t)}},{key:"redraw",value:function(){return!1}},{key:"destroy",value:function(){}},{key:"_isResized",value:function(){var t=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,t}}]),t}(),_k=Ti,kk=Oo,xk=Z,Sk=RangeError;In({target:"String",proto:!0},{repeat:function(t){var e=kk(xk(this)),n="",i=_k(t);if(i<0||i===1/0)throw new Sk("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(e+=e))1&i&&(n+=e);return n}});var Dk=kh("String").repeat,Tk=ht,Ck=Dk,Ok=String.prototype,Ek=function(t){var e=t.repeat;return"string"==typeof t||t===Ok||Tk(Ok,t)&&e===Ok.repeat?Ck:e},Mk=s(Ek),Pk=Lo,Ak=Math.floor,Ik=function(t,e){var n=t.length,i=Ak(n/2);return n<8?Nk(t,e):jk(t,Ik(Pk(t,0,i),e),Ik(Pk(t,i),e),e)},Nk=function(t,e){for(var n,i,r=t.length,o=1;o<r;){for(i=o,n=t[o];i&&e(t[i-1],n)>0;)t[i]=t[--i];i!==o++&&(t[i]=n)}return t},jk=function(t,e,n,i){for(var r=e.length,o=n.length,s=0,a=0;s<r||a<o;)t[s+a]=s<r&&a<o?i(e[s],n[a])<=0?e[s++]:n[a++]:s<r?e[s++]:n[a++];return t},Rk=Ik,Fk=dt.match(/firefox\/(\d+)/i),Lk=!!Fk&&+Fk[1],Yk=/MSIE|Trident/.test(dt),zk=dt.match(/AppleWebKit\/(\d+)\./),Hk=!!zk&&+zk[1],Gk=In,Bk=w,Wk=jt,Vk=Jt,Uk=Ni,qk=Im,Xk=Oo,$k=u,Kk=Rk,Qk=ld,Zk=Lk,Jk=Yk,tx=bt,ex=Hk,nx=[],ix=Bk(nx.sort),rx=Bk(nx.push),ox=$k((function(){nx.sort(void 0)})),sx=$k((function(){nx.sort(null)})),ax=Qk("sort"),lx=!$k((function(){if(tx)return tx<70;if(!(Zk&&Zk>3)){if(Jk)return!0;if(ex)return ex<603;var t,e,n,i,r="";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(i=0;i<47;i++)nx.push({k:e+i,v:n})}for(nx.sort((function(t,e){return e.v-t.v})),i=0;i<nx.length;i++)e=nx[i].k.charAt(0),r.charAt(r.length-1)!==e&&(r+=e);return"DGBEFHACIJK"!==r}}));Gk({target:"Array",proto:!0,forced:ox||!sx||!ax||!lx},{sort:function(t){void 0!==t&&Wk(t);var e=Vk(this);if(lx)return void 0===t?ix(e):ix(e,t);var n,i,r=[],o=Uk(e);for(i=0;i<o;i++)i in e&&rx(r,e[i]);for(Kk(r,function(t){return function(e,n){return void 0===n?-1:void 0===e?1:void 0!==t?+t(e,n)||0:Xk(e)>Xk(n)?1:-1}}(t)),n=Uk(r),i=0;i<n;)e[i]=r[i++];for(;i<o;)qk(e,i++);return e}});var ux=kh("Array").sort,cx=ht,hx=ux,dx=Array.prototype,px=function(t){var e=t.sort;return t===dx||cx(dx,t)&&e===dx.sort?hx:e},fx=s(px);function mx(t,e,n){if(n&&!zh(n))return mx(t,e,[n]);if(e.hiddenDates=[],n&&1==zh(n)){for(var i,r=0;r<n.length;r++)if(void 0===Mk(n[r])){var o={};o.start=t(n[r].start).toDate().valueOf(),o.end=t(n[r].end).toDate().valueOf(),e.hiddenDates.push(o)}fx(i=e.hiddenDates).call(i,(function(t,e){return t.start-e.start}))}}function vx(t,e,n){if(n&&!zh(n))return vx(t,e,[n]);if(n&&void 0!==e.domProps.centerContainer.width){mx(t,e,n);for(var i=t(e.range.start),r=t(e.range.end),o=(e.range.end-e.range.start)/e.domProps.centerContainer.width,s=0;s<n.length;s++)if(void 0!==Mk(n[s])){var a=t(n[s].start),l=t(n[s].end);if("Invalid Date"==a._d)throw new Error("Supplied start date is not valid: ".concat(n[s].start));if("Invalid Date"==l._d)throw new Error("Supplied end date is not valid: ".concat(n[s].end));if(l-a>=4*o){var u=0,c=r.clone();switch(Mk(n[s])){case"daily":a.day()!=l.day()&&(u=1),a.dayOfYear(i.dayOfYear()),a.year(i.year()),a.subtract(7,"days"),l.dayOfYear(i.dayOfYear()),l.year(i.year()),l.subtract(7-u,"days"),c.add(1,"weeks");break;case"weekly":var h=l.diff(a,"days"),d=a.day();a.date(i.date()),a.month(i.month()),a.year(i.year()),l=a.clone(),a.day(d),l.day(d),l.add(h,"days"),a.subtract(1,"weeks"),l.subtract(1,"weeks"),c.add(1,"weeks");break;case"monthly":a.month()!=l.month()&&(u=1),a.month(i.month()),a.year(i.year()),a.subtract(1,"months"),l.month(i.month()),l.year(i.year()),l.subtract(1,"months"),l.add(u,"months"),c.add(1,"months");break;case"yearly":a.year()!=l.year()&&(u=1),a.year(i.year()),a.subtract(1,"years"),l.year(i.year()),l.subtract(1,"years"),l.add(u,"years"),c.add(1,"years");break;default:return void console.log("Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:",Mk(n[s]))}for(;a<c;)switch(e.hiddenDates.push({start:a.valueOf(),end:l.valueOf()}),Mk(n[s])){case"daily":a.add(1,"days"),l.add(1,"days");break;case"weekly":a.add(1,"weeks"),l.add(1,"weeks");break;case"monthly":a.add(1,"months"),l.add(1,"months");break;case"yearly":a.add(1,"y"),l.add(1,"y");break;default:return void console.log("Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:",Mk(n[s]))}e.hiddenDates.push({start:a.valueOf(),end:l.valueOf()})}}gx(e);var p=Cx(e.range.start,e.hiddenDates),f=Cx(e.range.end,e.hiddenDates),m=e.range.start,v=e.range.end;1==p.hidden&&(m=1==e.range.startToFront?p.startDate-1:p.endDate+1),1==f.hidden&&(v=1==e.range.endToFront?f.startDate-1:f.endDate+1),1!=p.hidden&&1!=f.hidden||e.range._applyRange(m,v)}}function gx(t){for(var e,n=t.hiddenDates,i=[],r=0;r<n.length;r++)for(var o=0;o<n.length;o++)r!=o&&1!=n[o].remove&&1!=n[r].remove&&(n[o].start>=n[r].start&&n[o].end<=n[r].end?n[o].remove=!0:n[o].start>=n[r].start&&n[o].start<=n[r].end?(n[r].end=n[o].end,n[o].remove=!0):n[o].end>=n[r].start&&n[o].end<=n[r].end&&(n[r].start=n[o].start,n[o].remove=!0));for(r=0;r<n.length;r++)!0!==n[r].remove&&i.push(n[r]);t.hiddenDates=i,fx(e=t.hiddenDates).call(e,(function(t,e){return t.start-e.start}))}function yx(t,e,n){for(var i=!1,r=e.current.valueOf(),o=0;o<e.hiddenDates.length;o++){var s=e.hiddenDates[o].start,a=e.hiddenDates[o].end;if(r>=s&&r<a){i=!0;break}}if(1==i&&r<e._end.valueOf()&&r!=n){var l=t(n),u=t(a);l.year()!=u.year()?e.switchedYear=!0:l.month()!=u.month()?e.switchedMonth=!0:l.dayOfYear()!=u.dayOfYear()&&(e.switchedDay=!0),e.current=u}}function bx(t,e,n){var i;if(0==t.body.hiddenDates.length)return i=t.range.conversion(n),(e.valueOf()-i.offset)*i.scale;var r=Cx(e,t.body.hiddenDates);1==r.hidden&&(e=r.startDate);var o=_x(t.body.hiddenDates,t.range.start,t.range.end);if(e<t.range.start){i=t.range.conversion(n,o);var s=kx(t.body.hiddenDates,e,i.offset);return e=t.options.moment(e).toDate().valueOf(),e+=s,-(i.offset-e.valueOf())*i.scale}if(e>t.range.end){var a={start:t.range.start,end:e};return e=xx(t.options.moment,t.body.hiddenDates,a,e),i=t.range.conversion(n,o),(e.valueOf()-i.offset)*i.scale}return e=xx(t.options.moment,t.body.hiddenDates,t.range,e),i=t.range.conversion(n,o),(e.valueOf()-i.offset)*i.scale}function wx(t,e,n){if(0==t.body.hiddenDates.length){var i=t.range.conversion(n);return new Date(e/i.scale+i.offset)}var r=_x(t.body.hiddenDates,t.range.start,t.range.end),o=(t.range.end-t.range.start-r)*e/n,s=Dx(t.body.hiddenDates,t.range,o);return new Date(s+o+t.range.start)}function _x(t,e,n){for(var i=0,r=0;r<t.length;r++){var o=t[r].start,s=t[r].end;o>=e&&s<n&&(i+=s-o)}return i}function kx(t,e,n){for(var i=0,r=0;r<t.length;r++){var o=t[r].start,s=t[r].end;o>=e&&s<=n&&(i+=s-o)}return i}function xx(t,e,n,i){return(i=t(i).toDate().valueOf())-Sx(t,e,n,i)}function Sx(t,e,n,i){var r=0;i=t(i).toDate().valueOf();for(var o=0;o<e.length;o++){var s=e[o].start,a=e[o].end;s>=n.start&&a<n.end&&i>=a&&(r+=a-s)}return r}function Dx(t,e,n){for(var i=0,r=0,o=e.start,s=0;s<t.length;s++){var a=t[s].start,l=t[s].end;if(a>=e.start&&l<e.end){if(r+=a-o,o=l,r>=n)break;i+=l-a}}return i}function Tx(t,e,n,i){var r=Cx(e,t);return 1==r.hidden?n<0?1==i?r.startDate-(r.endDate-e)-1:r.startDate-1:1==i?r.endDate+(e-r.startDate)+1:r.endDate+1:e}function Cx(t,e){for(var n=0;n<e.length;n++){var i=e[n].start,r=e[n].end;if(t>=i&&t<r)return{hidden:!0,startDate:i,endDate:r}}return{hidden:!1,startDate:i,endDate:r}}var Ox=Object.freeze({__proto__:null,convertHiddenOptions:mx,correctTimeForHidden:xx,getAccumulatedHiddenDuration:Dx,getHiddenDurationBefore:Sx,getHiddenDurationBeforeStart:kx,getHiddenDurationBetween:_x,getIsHidden:Cx,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:gx,snapAwayFromHidden:Tx,stepOverHiddenDates:yx,toScreen:bx,toTime:wx,updateHiddenDates:vx});function Ex(t){var e=function(){if("undefined"==typeof Reflect||!Rr)return!1;if(Rr.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Rr(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=Lh(t);if(e){var r=Lh(this).constructor;n=Rr(i,arguments,r)}else n=i.apply(this,arguments);return Ah(this,n)}}var Mx=function(t){Ph(n,t);var e=Ex(n);function n(t,i){var r,o,s,a,l,u,c,h;Fr(this,n),h=e.call(this);var d=wd().hours(0).minutes(0).seconds(0).milliseconds(0),p=d.clone().add(-3,"days").valueOf(),f=d.clone().add(3,"days").valueOf();return h.millisecondsPerPixelCache=void 0,void 0===i?(h.start=p,h.end=f):(h.start=i.start||p,h.end=i.end||f),h.rolling=!1,h.body=t,h.deltaDifference=0,h.scaleOffset=0,h.startToFront=!1,h.endToFront=!0,h.defaultOptions={rtl:!1,start:null,end:null,moment:wd,direction:"horizontal",moveable:!0,zoomable:!0,min:null,max:null,zoomMin:10,zoomMax:31536e10,rollingMode:{follow:!1,offset:.5}},h.options=lk.extend({},h.defaultOptions),h.props={touch:{}},h.animationTimer=null,h.body.emitter.on("panstart",Hh(r=h._onDragStart).call(r,mh(h))),h.body.emitter.on("panmove",Hh(o=h._onDrag).call(o,mh(h))),h.body.emitter.on("panend",Hh(s=h._onDragEnd).call(s,mh(h))),h.body.emitter.on("mousewheel",Hh(a=h._onMouseWheel).call(a,mh(h))),h.body.emitter.on("touch",Hh(l=h._onTouch).call(l,mh(h))),h.body.emitter.on("pinch",Hh(u=h._onPinch).call(u,mh(h))),h.body.dom.rollingModeBtn.addEventListener("click",Hh(c=h.startRolling).call(c,mh(h))),h.setOptions(i),h}return fh(n,[{key:"setOptions",value:function(t){t&&(lk.selectiveExtend(["animation","direction","min","max","zoomMin","zoomMax","moveable","zoomable","moment","activate","hiddenDates","zoomKey","zoomFriction","rtl","showCurrentTime","rollingMode","horizontalScroll"],this.options,t),t.rollingMode&&t.rollingMode.follow&&this.startRolling(),("start"in t||"end"in t)&&this.setRange(t.start,t.end))}},{key:"startRolling",value:function(){var t=this;!function e(){t.stopRolling(),t.rolling=!0;var n=t.end-t.start,i=lk.convert(new Date,"Date").valueOf(),r=t.options.rollingMode&&t.options.rollingMode.offset||.5,o=i-n*r,s=i+n*(1-r);t.setRange(o,s,{animation:!1}),(n=1/t.conversion(t.body.domProps.center.width).scale/10)<30&&(n=30),n>1e3&&(n=1e3),t.body.dom.rollingModeBtn.style.visibility="hidden",t.currentTimeTimer=sd(e,n)}()}},{key:"stopRolling",value:function(){void 0!==this.currentTimeTimer&&(clearTimeout(this.currentTimeTimer),this.rolling=!1,this.body.dom.rollingModeBtn.style.visibility="visible")}},{key:"setRange",value:function(t,e,n,i,r){n||(n={}),!0!==n.byUser&&(n.byUser=!1);var o=this,s=null!=t?lk.convert(t,"Date").valueOf():null,a=null!=e?lk.convert(e,"Date").valueOf():null;if(this._cancelAnimation(),this.millisecondsPerPixelCache=void 0,n.animation){var l,u=this.start,c=this.end,h="object"===ch(n.animation)&&"duration"in n.animation?n.animation.duration:500,d="object"===ch(n.animation)&&"easingFunction"in n.animation?n.animation.easingFunction:"easeInOutQuad",p=lk.easingFunctions[d];if(!p)throw new Error(fm(l="Unknown easing function ".concat(jg(d),". Choose from: ")).call(l,Tp(lk.easingFunctions).join(", ")));var f=wm(),m=!1;return function t(){if(!o.props.touch.dragging){var e=wm()-f,l=p(e/h),d=e>h,g=d||null===s?s:u+(s-u)*l,y=d||null===a?a:c+(a-c)*l;v=o._applyRange(g,y),vx(o.options.moment,o.body,o.options.hiddenDates),m=m||v;var b={start:new Date(o.start),end:new Date(o.end),byUser:n.byUser,event:n.event};if(r&&r(l,v,d),v&&o.body.emitter.emit("rangechange",b),d){if(m&&(o.body.emitter.emit("rangechanged",b),i))return i()}else o.animationTimer=sd(t,20)}}()}var v=this._applyRange(s,a);if(vx(this.options.moment,this.body,this.options.hiddenDates),v){var g={start:new Date(this.start),end:new Date(this.end),byUser:n.byUser,event:n.event};if(this.body.emitter.emit("rangechange",g),clearTimeout(o.timeoutID),o.timeoutID=sd((function(){o.body.emitter.emit("rangechanged",g)}),200),i)return i()}}},{key:"getMillisecondsPerPixel",value:function(){return void 0===this.millisecondsPerPixelCache&&(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(t,e){var n,i=null!=t?lk.convert(t,"Date").valueOf():this.start,r=null!=e?lk.convert(e,"Date").valueOf():this.end,o=null!=this.options.max?lk.convert(this.options.max,"Date").valueOf():null,s=null!=this.options.min?lk.convert(this.options.min,"Date").valueOf():null;if(isNaN(i)||null===i)throw new Error('Invalid start "'.concat(t,'"'));if(isNaN(r)||null===r)throw new Error('Invalid end "'.concat(e,'"'));if(r<i&&(r=i),null!==s&&i<s&&(i+=n=s-i,r+=n,null!=o&&r>o&&(r=o)),null!==o&&r>o&&(i-=n=r-o,r-=n,null!=s&&i<s&&(i=s)),null!==this.options.zoomMin){var a=bk(this.options.zoomMin);a<0&&(a=0),r-i<a&&(this.end-this.start===a&&i>=this.start-.5&&r<=this.end?(i=this.start,r=this.end):(i-=(n=a-(r-i))/2,r+=n/2))}if(null!==this.options.zoomMax){var l=bk(this.options.zoomMax);l<0&&(l=0),r-i>l&&(this.end-this.start===l&&i<this.start&&r>this.end?(i=this.start,r=this.end):(i+=(n=r-i-l)/2,r-=n/2))}var u=this.start!=i||this.end!=r;return i>=this.start&&i<=this.end||r>=this.start&&r<=this.end||this.start>=i&&this.start<=r||this.end>=i&&this.end<=r||this.body.emitter.emit("checkRangedItems"),this.start=i,this.end=r,u}},{key:"getRange",value:function(){return{start:this.start,end:this.end}}},{key:"conversion",value:function(t,e){return n.conversion(this.start,this.end,t,e)}},{key:"_onDragStart",value:function(t){this.deltaDifference=0,this.previousDelta=0,this.options.moveable&&this._isInsideRange(t)&&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(t){if(t&&this.props.touch.dragging&&this.options.moveable&&this.props.touch.allowDragging){var e=this.options.direction;Px(e);var n="horizontal"==e?t.deltaX:t.deltaY;n-=this.deltaDifference;var i=this.props.touch.end-this.props.touch.start;i-=_x(this.body.hiddenDates,this.start,this.end);var r,o="horizontal"==e?this.body.domProps.center.width:this.body.domProps.center.height;r=this.options.rtl?n/o*i:-n/o*i;var s=this.props.touch.start+r,a=this.props.touch.end+r,l=Tx(this.body.hiddenDates,s,this.previousDelta-n,!0),u=Tx(this.body.hiddenDates,a,this.previousDelta-n,!0);if(l!=s||u!=a)return this.deltaDifference+=n,this.props.touch.start=l,this.props.touch.end=u,void this._onDrag(t);this.previousDelta=n,this._applyRange(s,a);var c=new Date(this.start),h=new Date(this.end);this.body.emitter.emit("rangechange",{start:c,end:h,byUser:!0,event:t}),this.body.emitter.emit("panmove")}}},{key:"_onDragEnd",value:function(t){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:t}))}},{key:"_onMouseWheel",value:function(t){var e=0;if(t.wheelDelta?e=t.wheelDelta/120:t.detail?e=-t.detail/3:t.deltaY&&(e=-t.deltaY/3),!(this.options.zoomKey&&!t[this.options.zoomKey]&&this.options.zoomable||!this.options.zoomable&&this.options.moveable)&&this.options.zoomable&&this.options.moveable&&this._isInsideRange(t)&&e){var n,i,r=this.options.zoomFriction||5;if(n=e<0?1-e/r:1/(1+e/r),this.rolling){var o=this.options.rollingMode&&this.options.rollingMode.offset||.5;i=this.start+(this.end-this.start)*o}else{var s=this.getPointer({x:t.clientX,y:t.clientY},this.body.dom.center);i=this._pointerToDate(s)}this.zoom(n,i,e,t),t.preventDefault()}}},{key:"_onTouch",value:function(t){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,lk.preventDefault(t)}},{key:"_onPinch",value:function(t){if(this.options.zoomable&&this.options.moveable){lk.preventDefault(t),this.props.touch.allowDragging=!1,this.props.touch.center||(this.props.touch.center=this.getPointer(t.center,this.body.dom.center),this.props.touch.centerDate=this._pointerToDate(this.props.touch.center)),this.stopRolling();var e=1/(t.scale+this.scaleOffset),n=this.props.touch.centerDate,i=_x(this.body.hiddenDates,this.start,this.end),r=Sx(this.options.moment,this.body.hiddenDates,this,n),o=i-r,s=n-r+(this.props.touch.start-(n-r))*e,a=n+o+(this.props.touch.end-(n+o))*e;this.startToFront=1-e<=0,this.endToFront=e-1<=0;var l=Tx(this.body.hiddenDates,s,1-e,!0),u=Tx(this.body.hiddenDates,a,e-1,!0);l==s&&u==a||(this.props.touch.start=l,this.props.touch.end=u,this.scaleOffset=1-t.scale,s=l,a=u);var c={animation:!1,byUser:!0,event:t};this.setRange(s,a,c),this.startToFront=!1,this.endToFront=!0}}},{key:"_isInsideRange",value:function(t){var e=t.center?t.center.x:t.clientX,n=this.body.dom.centerContainer.getBoundingClientRect(),i=this.options.rtl?e-n.left:n.right-e,r=this.body.util.toTime(i);return r>=this.start&&r<=this.end}},{key:"_pointerToDate",value:function(t){var e,n=this.options.direction;if(Px(n),"horizontal"==n)return this.body.util.toTime(t.x).valueOf();var i=this.body.domProps.center.height;return e=this.conversion(i),t.y/e.scale+e.offset}},{key:"getPointer",value:function(t,e){var n=e.getBoundingClientRect();return this.options.rtl?{x:n.right-t.x,y:t.y-n.top}:{x:t.x-n.left,y:t.y-n.top}}},{key:"zoom",value:function(t,e,n,i){null==e&&(e=(this.start+this.end)/2);var r=_x(this.body.hiddenDates,this.start,this.end),o=Sx(this.options.moment,this.body.hiddenDates,this,e),s=r-o,a=e-o+(this.start-(e-o))*t,l=e+s+(this.end-(e+s))*t;this.startToFront=!(n>0),this.endToFront=!(-n>0);var u=Tx(this.body.hiddenDates,a,n,!0),c=Tx(this.body.hiddenDates,l,-n,!0);u==a&&c==l||(a=u,l=c);var h={animation:!1,byUser:!0,event:i};this.setRange(a,l,h),this.startToFront=!1,this.endToFront=!0}},{key:"move",value:function(t){var e=this.end-this.start,n=this.start+e*t,i=this.end+e*t;this.start=n,this.end=i}},{key:"moveTo",value:function(t){var e=(this.start+this.end)/2-t,n=this.start-e,i=this.end-e;this.setRange(n,i,{animation:!1,byUser:!0,event:null})}},{key:"destroy",value:function(){this.stopRolling()}}],[{key:"conversion",value:function(t,e,n,i){return void 0===i&&(i=0),0!=n&&e-t!=0?{offset:t,scale:n/(e-t-i)}:{offset:0,scale:1}}}]),n}(wk);function Px(t){if("horizontal"!=t&&"vertical"!=t)throw new TypeError('Unknown direction "'.concat(t,'". Choose "horizontal" or "vertical".'))}var Ax=Gs.some;In({target:"Array",proto:!0,forced:!ld("some")},{some:function(t){return Ax(this,t,arguments.length>1?arguments[1]:void 0)}});var Ix,Nx=kh("Array").some,jx=ht,Rx=Nx,Fx=Array.prototype,Lx=function(t){var e=t.some;return t===Fx||jx(Fx,t)&&e===Fx.some?Rx:e},Yx=s(Lx),zx=s(ot.setInterval),Hx=null;Ix="undefined"!=typeof window?function t(e,n){var i=n||{preventDefault:!1};if(e.Manager){var r=e,o=function(e,n){var o=Object.create(i);return n&&r.assign(o,n),t(new r(e,o),o)};return r.assign(o,r),o.Manager=function(e,n){var o=Object.create(i);return n&&r.assign(o,n),t(new r.Manager(e,o),o)},o}var s=Object.create(e),a=e.element;function l(t){return t.match(/[^ ]+/g)}function u(t){if("hammer.input"!==t.type){if(t.srcEvent._handled||(t.srcEvent._handled={}),t.srcEvent._handled[t.type])return;t.srcEvent._handled[t.type]=!0}var e=!1;t.stopPropagation=function(){e=!0};var n=t.srcEvent.stopPropagation.bind(t.srcEvent);"function"==typeof n&&(t.srcEvent.stopPropagation=function(){n(),t.stopPropagation()}),t.firstTarget=Hx;for(var i=Hx;i&&!e;){var r=i.hammer;if(r)for(var o,s=0;s<r.length;s++)if(o=r[s]._handlers[t.type])for(var a=0;a<o.length&&!e;a++)o[a](t);i=i.parentNode}}return a.hammer||(a.hammer=[]),a.hammer.push(s),e.on("hammer.input",(function(t){!0!==i.preventDefault&&i.preventDefault!==t.pointerType||t.preventDefault(),t.isFirst&&(Hx=t.target)})),s._handlers={},s.on=function(t,n){return l(t).forEach((function(t){var i=s._handlers[t];i||(s._handlers[t]=i=[],e.on(t,u)),i.push(n)})),s},s.off=function(t,n){return l(t).forEach((function(t){var i=s._handlers[t];i&&((i=n?i.filter((function(t){return t!==n})):[]).length>0?s._handlers[t]=i:(e.off(t,u),delete s._handlers[t]))})),s},s.emit=function(t,n){Hx=n.target,e.emit(t,n)},s.destroy=function(){var t=e.element.hammer,n=t.indexOf(s);-1!==n&&t.splice(n,1),t.length||delete e.element.hammer,s._handlers={},e.destroy()},s}(window.Hammer||Bb,{preventDefault:"mouse"}):function(){return function(){var t=function(){};return{on:t,off:t,destroy:t,emit:t,get:function(e){return{set:t}}}}()};var Gx=Ix;function Bx(t,e){e.inputHandler=function(t){t.isFirst&&e(t)},t.on("hammer.input",e.inputHandler)}var Wx=function(){function t(e,n,i,r,o){Fr(this,t),this.moment=o&&o.moment||wd,this.options=o||{},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,i),this.switchedDay=!1,this.switchedMonth=!1,this.switchedYear=!1,zh(r)?this.hiddenDates=r:this.hiddenDates=null!=r?[r]:[],this.format=t.FORMAT}return fh(t,[{key:"setMoment",value:function(t){this.moment=t,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=lk.deepExtend({},t.FORMAT);this.format=lk.deepExtend(n,e)}},{key:"setRange",value:function(t,e,n){if(!(t instanceof Date&&e instanceof Date))throw"No legal start or end date in method setRange";this._start=null!=t?this.moment(t.valueOf()):wm(),this._end=null!=e?this.moment(e.valueOf()):wm(),this.autoScale&&this.setMinimumStep(n)}},{key:"start",value:function(){this.current=this._start.clone(),this.roundToMinor()}},{key:"roundToMinor",value:function(){switch("week"==this.scale&&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(1!=this.step){var t=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")}t.isSame(this.current)||(this.current=this.moment(Tx(this.hiddenDates,this.current.valueOf(),-1,!0)))}}},{key:"hasNext",value:function(){return this.current.valueOf()<=this._end.valueOf()}},{key:"next",value:function(){var t=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(0!==this.current.weekday())this.current.weekday(0),this.current.add(this.step,"week");else if(!1===this.options.showMajorLabels)this.current.add(this.step,"week");else{var e=this.current.clone();e.add(1,"week"),e.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(1!=this.step)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()==t&&(this.current=this._end.clone()),this.switchedDay=!1,this.switchedMonth=!1,this.switchedYear=!1,yx(this.moment,this,t)}},{key:"getCurrent",value:function(){return this.current.clone()}},{key:"setScale",value:function(t){t&&"string"==typeof t.scale&&(this.scale=t.scale,this.step=t.step>0?t.step:1,this.autoScale=!1)}},{key:"setAutoScale",value:function(t){this.autoScale=t}},{key:"setMinimumStep",value:function(t){if(null!=t){var e=31104e6,n=2592e6,i=864e5,r=36e5,o=6e4,s=1e3;1e3*e>t&&(this.scale="year",this.step=1e3),500*e>t&&(this.scale="year",this.step=500),100*e>t&&(this.scale="year",this.step=100),50*e>t&&(this.scale="year",this.step=50),10*e>t&&(this.scale="year",this.step=10),5*e>t&&(this.scale="year",this.step=5),e>t&&(this.scale="year",this.step=1),7776e6>t&&(this.scale="month",this.step=3),n>t&&(this.scale="month",this.step=1),6048e5>t&&this.options.showWeekScale&&(this.scale="week",this.step=1),1728e5>t&&(this.scale="day",this.step=2),i>t&&(this.scale="day",this.step=1),432e5>t&&(this.scale="weekday",this.step=1),144e5>t&&(this.scale="hour",this.step=4),r>t&&(this.scale="hour",this.step=1),9e5>t&&(this.scale="minute",this.step=15),6e5>t&&(this.scale="minute",this.step=10),3e5>t&&(this.scale="minute",this.step=5),o>t&&(this.scale="minute",this.step=1),15e3>t&&(this.scale="second",this.step=15),1e4>t&&(this.scale="second",this.step=10),5e3>t&&(this.scale="second",this.step=5),s>t&&(this.scale="second",this.step=1),200>t&&(this.scale="millisecond",this.step=200),100>t&&(this.scale="millisecond",this.step=100),50>t&&(this.scale="millisecond",this.step=50),10>t&&(this.scale="millisecond",this.step=10),5>t&&(this.scale="millisecond",this.step=5),1>t&&(this.scale="millisecond",this.step=1)}}},{key:"isMajor",value:function(){if(1==this.switchedYear)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(1==this.switchedMonth)switch(this.scale){case"week":case"weekday":case"day":case"hour":case"minute":case"second":case"millisecond":return!0;default:return!1}else if(1==this.switchedDay)switch(this.scale){case"millisecond":case"second":case"minute":case"hour":return!0;default:return!1}var t=this.moment(this.current);switch(this.scale){case"millisecond":return 0==t.milliseconds();case"second":return 0==t.seconds();case"minute":return 0==t.hours()&&0==t.minutes();case"hour":return 0==t.hours();case"weekday":case"day":return this.options.showWeekScale?1==t.isoWeekday():1==t.date();case"week":return 1==t.date();case"month":return 0==t.month();default:return!1}}},{key:"getLabelMinor",value:function(t){if(null==t&&(t=this.current),t instanceof Date&&(t=this.moment(t)),"function"==typeof this.format.minorLabels)return this.format.minorLabels(t,this.scale,this.step);var e=this.format.minorLabels[this.scale];return"week"===this.scale&&1===t.date()&&0!==t.weekday()?"":e&&e.length>0?this.moment(t).format(e):""}},{key:"getLabelMajor",value:function(t){if(null==t&&(t=this.current),t instanceof Date&&(t=this.moment(t)),"function"==typeof this.format.majorLabels)return this.format.majorLabels(t,this.scale,this.step);var e=this.format.majorLabels[this.scale];return e&&e.length>0?this.moment(t).format(e):""}},{key:"getClassName",value:function(){var t,e=this.moment,n=this.moment(this.current),i=n.locale?n.locale("en"):n.lang("en"),r=this.step,o=[];function s(t){return t/r%2==0?" vis-even":" vis-odd"}function a(t){return t.isSame(wm(),"day")?" vis-today":t.isSame(e().add(1,"day"),"day")?" vis-tomorrow":t.isSame(e().add(-1,"day"),"day")?" vis-yesterday":""}function l(t){return t.isSame(wm(),"week")?" vis-current-week":""}function u(t){return t.isSame(wm(),"month")?" vis-current-month":""}switch(this.scale){case"millisecond":o.push(a(i)),o.push(s(i.milliseconds()));break;case"second":o.push(a(i)),o.push(s(i.seconds()));break;case"minute":o.push(a(i)),o.push(s(i.minutes()));break;case"hour":o.push(fm(t="vis-h".concat(i.hours())).call(t,4==this.step?"-h"+(i.hours()+4):"")),o.push(a(i)),o.push(s(i.hours()));break;case"weekday":o.push("vis-".concat(i.format("dddd").toLowerCase())),o.push(a(i)),o.push(l(i)),o.push(s(i.date()));break;case"day":o.push("vis-day".concat(i.date())),o.push("vis-".concat(i.format("MMMM").toLowerCase())),o.push(a(i)),o.push(u(i)),o.push(this.step<=2?a(i):""),o.push(this.step<=2?"vis-".concat(i.format("dddd").toLowerCase()):""),o.push(s(i.date()-1));break;case"week":o.push("vis-week".concat(i.format("w"))),o.push(l(i)),o.push(s(i.week()));break;case"month":o.push("vis-".concat(i.format("MMMM").toLowerCase())),o.push(u(i)),o.push(s(i.month()));break;case"year":o.push("vis-year".concat(i.year())),o.push(function(t){return t.isSame(wm(),"year")?" vis-current-year":""}(i)),o.push(s(i.year()))}return Od(o).call(o,String).join(" ")}}],[{key:"snap",value:function(t,e,n){var i=wd(t);if("year"==e){var r=i.year()+Math.round(i.month()/12);i.year(Math.round(r/n)*n),i.month(0),i.date(0),i.hours(0),i.minutes(0),i.seconds(0),i.milliseconds(0)}else if("month"==e)i.date()>15?(i.date(1),i.add(1,"month")):i.date(1),i.hours(0),i.minutes(0),i.seconds(0),i.milliseconds(0);else if("week"==e)i.weekday()>2?(i.weekday(0),i.add(1,"week")):i.weekday(0),i.hours(0),i.minutes(0),i.seconds(0),i.milliseconds(0);else if("day"==e){switch(n){case 5:case 2:i.hours(24*Math.round(i.hours()/24));break;default:i.hours(12*Math.round(i.hours()/12))}i.minutes(0),i.seconds(0),i.milliseconds(0)}else if("weekday"==e){switch(n){case 5:case 2:i.hours(12*Math.round(i.hours()/12));break;default:i.hours(6*Math.round(i.hours()/6))}i.minutes(0),i.seconds(0),i.milliseconds(0)}else if("hour"==e)4===n?i.minutes(60*Math.round(i.minutes()/60)):i.minutes(30*Math.round(i.minutes()/30)),i.seconds(0),i.milliseconds(0);else if("minute"==e){switch(n){case 15:case 10:i.minutes(5*Math.round(i.minutes()/5)),i.seconds(0);break;case 5:i.seconds(60*Math.round(i.seconds()/60));break;default:i.seconds(30*Math.round(i.seconds()/30))}i.milliseconds(0)}else if("second"==e)switch(n){case 15:case 10:i.seconds(5*Math.round(i.seconds()/5)),i.milliseconds(0);break;case 5:i.milliseconds(1e3*Math.round(i.milliseconds()/1e3));break;default:i.milliseconds(500*Math.round(i.milliseconds()/500))}else if("millisecond"==e){var o=n>5?n/2:1;i.milliseconds(Math.round(i.milliseconds()/o)*o)}return i}}]),t}();function Vx(t){var e=function(){if("undefined"==typeof Reflect||!Rr)return!1;if(Rr.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Rr(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=Lh(t);if(e){var r=Lh(this).constructor;n=Rr(i,arguments,r)}else n=i.apply(this,arguments);return Ah(this,n)}}Wx.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 Ux=function(t){Ph(n,t);var e=Vx(n);function n(t,i){var r;return Fr(this,n),(r=e.call(this)).dom={foreground:null,lines:[],majorTexts:[],minorTexts:[],redundant:{lines:[],majorTexts:[],minorTexts:[]}},r.props={range:{start:0,end:0,minimumStep:0},lineTop:0},r.defaultOptions={orientation:{axis:"bottom"},showMinorLabels:!0,showMajorLabels:!0,showWeekScale:!1,maxMinorChars:7,format:lk.extend({},Wx.FORMAT),moment:wd,timeAxis:null},r.options=lk.extend({},r.defaultOptions),r.body=t,r._create(),r.setOptions(i),r}return fh(n,[{key:"setOptions",value:function(t){t&&(lk.selectiveExtend(["showMinorLabels","showMajorLabels","showWeekScale","maxMinorChars","hiddenDates","timeAxis","moment","rtl"],this.options,t),lk.selectiveDeepExtend(["format"],this.options,t),"orientation"in t&&("string"==typeof t.orientation?this.options.orientation.axis=t.orientation:"object"===ch(t.orientation)&&"axis"in t.orientation&&(this.options.orientation.axis=t.orientation.axis)),"locale"in t&&("function"==typeof wd.locale?wd.locale(t.locale):wd.lang(t.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 t=this.props,e=this.dom.foreground,n=this.dom.background,i="top"==this.options.orientation.axis?this.body.dom.top:this.body.dom.bottom,r=e.parentNode!==i;this._calculateCharSize();var o=this.options.showMinorLabels&&"none"!==this.options.orientation.axis,s=this.options.showMajorLabels&&"none"!==this.options.orientation.axis;t.minorLabelHeight=o?t.minorCharHeight:0,t.majorLabelHeight=s?t.majorCharHeight:0,t.height=t.minorLabelHeight+t.majorLabelHeight,t.width=e.offsetWidth,t.minorLineHeight=this.body.domProps.root.height-t.majorLabelHeight-("top"==this.options.orientation.axis?this.body.domProps.bottom.height:this.body.domProps.top.height),t.minorLineWidth=1,t.majorLineHeight=t.minorLineHeight+t.majorLabelHeight,t.majorLineWidth=1;var a=e.nextSibling,l=n.nextSibling;return e.parentNode&&e.parentNode.removeChild(e),n.parentNode&&n.parentNode.removeChild(n),e.style.height="".concat(this.props.height,"px"),this._repaintLabels(),a?i.insertBefore(e,a):i.appendChild(e),l?this.body.dom.backgroundVertical.insertBefore(n,l):this.body.dom.backgroundVertical.appendChild(n),this._isResized()||r}},{key:"_repaintLabels",value:function(){var t=this.options.orientation.axis,e=lk.convert(this.body.range.start,"Number"),n=lk.convert(this.body.range.end,"Number"),i=this.body.util.toTime((this.props.minorCharWidth||10)*this.options.maxMinorChars).valueOf(),r=i-Sx(this.options.moment,this.body.hiddenDates,this.body.range,i);r-=this.body.util.toTime(0).valueOf();var o=new Wx(new Date(e),new Date(n),r,this.body.hiddenDates,this.options);o.setMoment(this.options.moment),this.options.format&&o.setFormat(this.options.format),this.options.timeAxis&&o.setScale(this.options.timeAxis),this.step=o;var s,a,l,u,c,h,d=this.dom;d.redundant.lines=d.lines,d.redundant.majorTexts=d.majorTexts,d.redundant.minorTexts=d.minorTexts,d.lines=[],d.majorTexts=[],d.minorTexts=[];var p,f,m,v=0,g=void 0,y=0,b=1e3;for(o.start(),a=o.getCurrent(),u=this.body.util.toScreen(a);o.hasNext()&&y<b;){if(y++,c=o.isMajor(),m=o.getClassName(),s=a,l=u,o.next(),a=o.getCurrent(),p=v,v=(u=this.body.util.toScreen(a))-l,h="week"===o.scale||v>=.4*p,this.options.showMinorLabels&&h){var w=this._repaintMinorText(l,o.getLabelMinor(s),t,m);w.style.width="".concat(v,"px")}c&&this.options.showMajorLabels?(l>0&&(null==g&&(g=l),w=this._repaintMajorText(l,o.getLabelMajor(s),t,m)),f=this._repaintMajorLine(l,v,t,m)):h?f=this._repaintMinorLine(l,v,t,m):f&&(f.style.width="".concat(gg(f.style.width)+v,"px"))}if(y!==b||qx||(console.warn("Something is wrong with the Timeline scale. Limited drawing of grid lines to ".concat(b," lines.")),qx=!0),this.options.showMajorLabels){var _=this.body.util.toTime(0),k=o.getLabelMajor(_),x=k.length*(this.props.majorCharWidth||10)+10;(null==g||x<g)&&this._repaintMajorText(0,k,t,m)}bd(lk).call(lk,this.dom.redundant,(function(t){for(;t.length;){var e=t.pop();e&&e.parentNode&&e.parentNode.removeChild(e)}}))}},{key:"_repaintMinorText",value:function(t,e,n,i){var r=this.dom.redundant.minorTexts.shift();if(!r){var o=document.createTextNode("");(r=document.createElement("div")).appendChild(o),this.dom.foreground.appendChild(r)}this.dom.minorTexts.push(r),r.innerHTML=lk.xss(e);var s="top"==n?this.props.majorLabelHeight:0;return this._setXY(r,t,s),r.className="vis-text vis-minor ".concat(i),r}},{key:"_repaintMajorText",value:function(t,e,n,i){var r=this.dom.redundant.majorTexts.shift();if(!r){var o=document.createElement("div");(r=document.createElement("div")).appendChild(o),this.dom.foreground.appendChild(r)}r.childNodes[0].innerHTML=lk.xss(e),r.className="vis-text vis-major ".concat(i);var s="top"==n?0:this.props.minorLabelHeight;return this._setXY(r,t,s),this.dom.majorTexts.push(r),r}},{key:"_setXY",value:function(t,e,n){var i,r=this.options.rtl?-1*e:e;t.style.transform=fm(i="translate(".concat(r,"px, ")).call(i,n,"px)")}},{key:"_repaintMinorLine",value:function(t,e,n,i){var r,o=this.dom.redundant.lines.shift();o||(o=document.createElement("div"),this.dom.background.appendChild(o)),this.dom.lines.push(o);var s=this.props;o.style.width="".concat(e,"px"),o.style.height="".concat(s.minorLineHeight,"px");var a="top"==n?s.majorLabelHeight:this.body.domProps.top.height,l=t-s.minorLineWidth/2;return this._setXY(o,l,a),o.className=fm(r="vis-grid ".concat(this.options.rtl?"vis-vertical-rtl":"vis-vertical"," vis-minor ")).call(r,i),o}},{key:"_repaintMajorLine",value:function(t,e,n,i){var r,o=this.dom.redundant.lines.shift();o||(o=document.createElement("div"),this.dom.background.appendChild(o)),this.dom.lines.push(o);var s=this.props;o.style.width="".concat(e,"px"),o.style.height="".concat(s.majorLineHeight,"px");var a="top"==n?0:this.body.domProps.top.height,l=t-s.majorLineWidth/2;return this._setXY(o,l,a),o.className=fm(r="vis-grid ".concat(this.options.rtl?"vis-vertical-rtl":"vis-vertical"," vis-major ")).call(r,i),o}},{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}(wk),qx=!1;function Xx(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=Gx(this.dom.overlay),this.hammer.on("tap",Hh(e=this._onTapOverlay).call(e,this));var i=this,r=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];bd(r).call(r,(function(t){i.hammer.on(t,(function(t){t.stopPropagation()}))})),document&&document.body&&(this.onClick=function(e){(function(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1})(e.target,t)||i.deactivate()},document.body.addEventListener("click",this.onClick)),void 0!==this.keycharm&&this.keycharm.destroy(),this.keycharm=function(t){var e,n=t&&t.preventDefault||!1,i=t&&t.container||window,r={},o={keydown:{},keyup:{}},s={};for(e=97;e<=122;e++)s[String.fromCharCode(e)]={code:e-97+65,shift:!1};for(e=65;e<=90;e++)s[String.fromCharCode(e)]={code:e,shift:!0};for(e=0;e<=9;e++)s[""+e]={code:48+e,shift:!1};for(e=1;e<=12;e++)s["F"+e]={code:111+e,shift:!1};for(e=0;e<=9;e++)s["num"+e]={code:96+e,shift:!1};s["num*"]={code:106,shift:!1},s["num+"]={code:107,shift:!1},s["num-"]={code:109,shift:!1},s["num/"]={code:111,shift:!1},s["num."]={code:110,shift:!1},s.left={code:37,shift:!1},s.up={code:38,shift:!1},s.right={code:39,shift:!1},s.down={code:40,shift:!1},s.space={code:32,shift:!1},s.enter={code:13,shift:!1},s.shift={code:16,shift:void 0},s.esc={code:27,shift:!1},s.backspace={code:8,shift:!1},s.tab={code:9,shift:!1},s.ctrl={code:17,shift:!1},s.alt={code:18,shift:!1},s.delete={code:46,shift:!1},s.pageup={code:33,shift:!1},s.pagedown={code:34,shift:!1},s["="]={code:187,shift:!1},s["-"]={code:189,shift:!1},s["]"]={code:221,shift:!1},s["["]={code:219,shift:!1};var a=function(t){u(t,"keydown")},l=function(t){u(t,"keyup")},u=function(t,e){if(void 0!==o[e][t.keyCode]){for(var i=o[e][t.keyCode],r=0;r<i.length;r++)(void 0===i[r].shift||1==i[r].shift&&1==t.shiftKey||0==i[r].shift&&0==t.shiftKey)&&i[r].fn(t);1==n&&t.preventDefault()}};return r.bind=function(t,e,n){if(void 0===n&&(n="keydown"),void 0===s[t])throw new Error("unsupported key: "+t);void 0===o[n][s[t].code]&&(o[n][s[t].code]=[]),o[n][s[t].code].push({fn:e,shift:s[t].shift})},r.bindAll=function(t,e){for(var n in void 0===e&&(e="keydown"),s)s.hasOwnProperty(n)&&r.bind(n,t,e)},r.getKey=function(t){for(var e in s)if(s.hasOwnProperty(e)){if(1==t.shiftKey&&1==s[e].shift&&t.keyCode==s[e].code)return e;if(0==t.shiftKey&&0==s[e].shift&&t.keyCode==s[e].code)return e;if(t.keyCode==s[e].code&&"shift"==e)return e}return"unknown key, currently not supported"},r.unbind=function(t,e,n){if(void 0===n&&(n="keydown"),void 0===s[t])throw new Error("unsupported key: "+t);if(void 0!==e){var i=[],r=o[n][s[t].code];if(void 0!==r)for(var a=0;a<r.length;a++)r[a].fn==e&&r[a].shift==s[t].shift||i.push(o[n][s[t].code][a]);o[n][s[t].code]=i}else o[n][s[t].code]=[]},r.reset=function(){o={keydown:{},keyup:{}}},r.destroy=function(){o={keydown:{},keyup:{}},i.removeEventListener("keydown",a,!0),i.removeEventListener("keyup",l,!0)},i.addEventListener("keydown",a,!0),i.addEventListener("keyup",l,!0),r}(),this.escListener=Hh(n=this.deactivate).call(n,this)}Xg(Xx.prototype),Xx.current=null,Xx.prototype.destroy=function(){this.deactivate(),this.dom.overlay.parentNode.removeChild(this.dom.overlay),this.onClick&&document.body.removeEventListener("click",this.onClick),void 0!==this.keycharm&&this.keycharm.destroy(),this.keycharm=null,this.hammer.destroy(),this.hammer=null},Xx.prototype.activate=function(){var t;Xx.current&&Xx.current.deactivate(),Xx.current=this,this.active=!0,this.dom.overlay.style.display="none",lk.addClassName(this.dom.container,"vis-active"),this.emit("change"),this.emit("activate"),Hh(t=this.keycharm).call(t,"esc",this.escListener)},Xx.prototype.deactivate=function(){Xx.current===this&&(Xx.current=null),this.active=!1,this.dom.overlay.style.display="",lk.removeClassName(this.dom.container,"vis-active"),this.keycharm.unbind("esc",this.escListener),this.emit("change"),this.emit("deactivate")},Xx.prototype._onTapOverlay=function(t){this.activate(),t.stopPropagation()};var $x={current:"current",time:"time",deleteSelected:"Delete selected"},Kx={current:"attuale",time:"tempo",deleteSelected:"Cancella la selezione"},Qx={current:"huidige",time:"tijd",deleteSelected:"Selectie verwijderen"},Zx={current:"Aktuelle",time:"Zeit",deleteSelected:"Lösche Auswahl"},Jx={current:"actuel",time:"heure",deleteSelected:"Effacer la selection"},tS={current:"corriente",time:"hora",deleteSelected:"Eliminar selección"},eS={current:"поточний",time:"час",deleteSelected:"Видалити обране"},nS={current:"текущее",time:"время",deleteSelected:"Удалить выбранное"},iS={current:"aktualny",time:"czas",deleteSelected:"Usuń wybrane"},rS={current:"atual",time:"data",deleteSelected:"Apagar selecionado"},oS={current:"現在",time:"時刻",deleteSelected:"選択されたものを削除"},sS={current:"nuvarande",time:"tid",deleteSelected:"Radera valda"},aS={current:"nåværende",time:"tid",deleteSelected:"Slett valgte"},lS={current:"einamas",time:"laikas",deleteSelected:"Pašalinti pasirinktą"},uS={en:$x,en_EN:$x,en_US:$x,it:Kx,it_IT:Kx,it_CH:Kx,nl:Qx,nl_NL:Qx,nl_BE:Qx,de:Zx,de_DE:Zx,fr:Jx,fr_FR:Jx,fr_CA:Jx,fr_BE:Jx,es:tS,es_ES:tS,uk:eS,uk_UA:eS,ru:nS,ru_RU:nS,pl:iS,pl_PL:iS,pt:rS,pt_BR:rS,pt_PT:rS,ja:oS,ja_JP:oS,lt:lS,lt_LT:lS,sv:sS,sv_SE:sS,nb:aS,nn:aS,nb_NO:aS,nn_NO:aS};function cS(t){var e=function(){if("undefined"==typeof Reflect||!Rr)return!1;if(Rr.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Rr(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=Lh(t);if(e){var r=Lh(this).constructor;n=Rr(i,arguments,r)}else n=i.apply(this,arguments);return Ah(this,n)}}var hS=function(t){Ph(n,t);var e=cS(n);function n(t,i){var r,o;Fr(this,n),(o=e.call(this)).body=t,o.defaultOptions={moment:wd,locales:uS,locale:"en",id:void 0,title:void 0},o.options=lk.extend({},o.defaultOptions),o.setOptions(i),o.options.locales=lk.extend({},uS,o.options.locales);var s=o.defaultOptions.locales[o.defaultOptions.locale];return bd(r=Tp(o.options.locales)).call(r,(function(t){o.options.locales[t]=lk.extend({},s,o.options.locales[t])})),i&&null!=i.time?o.customTime=i.time:o.customTime=new Date,o.eventParams={},o._create(),o}return fh(n,[{key:"setOptions",value:function(t){t&&lk.selectiveExtend(["moment","locale","locales","id","title","rtl","snap"],this.options,t)}},{key:"_create",value:function(){var t,e,n,i=document.createElement("div");i["custom-time"]=this,i.className="vis-custom-time ".concat(this.options.id||""),i.style.position="absolute",i.style.top="0px",i.style.height="100%",this.bar=i;var r=document.createElement("div");function o(t){this.body.range._onMouseWheel(t)}r.style.position="relative",r.style.top="0px",this.options.rtl?r.style.right="-10px":r.style.left="-10px",r.style.height="100%",r.style.width="20px",r.addEventListener?(r.addEventListener("mousewheel",Hh(o).call(o,this),!1),r.addEventListener("DOMMouseScroll",Hh(o).call(o,this),!1)):r.attachEvent("onmousewheel",Hh(o).call(o,this)),i.appendChild(r),this.hammer=new Gx(r),this.hammer.on("panstart",Hh(t=this._onDragStart).call(t,this)),this.hammer.on("panmove",Hh(e=this._onDrag).call(e,this)),this.hammer.on("panend",Hh(n=this._onDragEnd).call(n,this)),this.hammer.get("pan").set({threshold:5,direction:Gx.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 t=this.body.dom.backgroundVertical;this.bar.parentNode!=t&&(this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),t.appendChild(this.bar));var e=this.body.util.toScreen(this.customTime),n=this.options.locales[this.options.locale];n||(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),n=this.options.locales.en);var i,r=this.options.title;return void 0===r?r=(r=fm(i="".concat(n.time,": ")).call(i,this.options.moment(this.customTime).format("dddd, MMMM Do YYYY, H:mm:ss"))).charAt(0).toUpperCase()+r.substring(1):"function"==typeof r&&(r=r.call(this,this.customTime)),this.options.rtl?this.bar.style.right="".concat(e,"px"):this.bar.style.left="".concat(e,"px"),this.bar.title=r,!1}},{key:"hide",value:function(){this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar)}},{key:"setCustomTime",value:function(t){this.customTime=lk.convert(t,"Date"),this.redraw()}},{key:"getCustomTime",value:function(){return new Date(this.customTime.valueOf())}},{key:"setCustomMarker",value:function(t,e){var n,i;this.marker&&this.bar.removeChild(this.marker),this.marker=document.createElement("div"),this.marker.className="vis-custom-time-marker",this.marker.innerHTML=lk.xss(t),this.marker.style.position="absolute",e&&(this.marker.setAttribute("contenteditable","true"),this.marker.addEventListener("pointerdown",(function(){this.marker.focus()})),this.marker.addEventListener("input",Hh(n=this._onMarkerChange).call(n,this)),this.marker.title=t,this.marker.addEventListener("blur",Hh(i=function(t){this.title!=t.target.innerHTML&&(this._onMarkerChanged(t),this.title=t.target.innerHTML)}).call(i,this))),this.bar.appendChild(this.marker)}},{key:"setCustomTitle",value:function(t){this.options.title=t}},{key:"_onDragStart",value:function(t){this.eventParams.dragging=!0,this.eventParams.customTime=this.customTime,t.stopPropagation()}},{key:"_onDrag",value:function(t){if(this.eventParams.dragging){var e=this.options.rtl?-1*t.deltaX:t.deltaX,n=this.body.util.toScreen(this.eventParams.customTime)+e,i=this.body.util.toTime(n),r=this.body.util.getScale(),o=this.body.util.getStep(),s=this.options.snap,a=s?s(i,r,o):i;this.setCustomTime(a),this.body.emitter.emit("timechange",{id:this.options.id,time:new Date(this.customTime.valueOf()),event:t}),t.stopPropagation()}}},{key:"_onDragEnd",value:function(t){this.eventParams.dragging&&(this.body.emitter.emit("timechanged",{id:this.options.id,time:new Date(this.customTime.valueOf()),event:t}),t.stopPropagation())}},{key:"_onMarkerChange",value:function(t){this.body.emitter.emit("markerchange",{id:this.options.id,title:t.target.innerHTML,event:t}),t.stopPropagation()}},{key:"_onMarkerChanged",value:function(t){this.body.emitter.emit("markerchanged",{id:this.options.id,title:t.target.innerHTML,event:t}),t.stopPropagation()}}],[{key:"customTimeFromTarget",value:function(t){for(var e=t.target;e;){if(e.hasOwnProperty("custom-time"))return e["custom-time"];e=e.parentNode}return null}}]),n}(wk),dS=function(){function t(){Fr(this,t)}return fh(t,[{key:"_create",value:function(t){var e,n,i,r=this;this.dom={},this.dom.container=t,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(){!0===r.initialDrawDone&&r._redraw()})),this.on("rangechanged",(function(){r.initialRangeChangeDone||(r.initialRangeChangeDone=!0)})),this.on("touch",Hh(e=this._onTouch).call(e,this)),this.on("panmove",Hh(n=this._onDrag).call(n,this));var o=this;this._origRedraw=Hh(i=this._redraw).call(i,this),this._redraw=lk.throttle(this._origRedraw),this.on("_change",(function(t){o.itemSet&&o.itemSet.initialItemSetDrawn&&t&&1==t.queue?o._redraw():o._origRedraw()})),this.hammer=new Gx(this.dom.root);var s=this.hammer.get("pinch").set({enable:!0});s&&function(t){t.getTouchAction=function(){return["pan-y"]}}(s),this.hammer.get("pan").set({threshold:5,direction:Gx.DIRECTION_ALL}),this.timelineListeners={};var a,l,u=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];function c(t){this.isActive()&&this.emit("mousewheel",t);var e=0,n=0;if("detail"in t&&(n=-1*t.detail),"wheelDelta"in t&&(n=t.wheelDelta),"wheelDeltaY"in t&&(n=t.wheelDeltaY),"wheelDeltaX"in t&&(e=-1*t.wheelDeltaX),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=-1*n,n=0),"deltaY"in t&&(n=-1*t.deltaY),"deltaX"in t&&(e=t.deltaX),t.deltaMode&&(1===t.deltaMode?(e*=40,n*=40):(e*=40,n*=800)),this.options.preferZoom){if(!this.options.zoomKey||t[this.options.zoomKey])return}else if(this.options.zoomKey&&t[this.options.zoomKey])return;if(this.options.verticalScroll||this.options.horizontalScroll)if(this.options.verticalScroll&&Math.abs(n)>=Math.abs(e)){var i=this.props.scrollTop,r=i+n;this.isActive()&&this._setScrollTop(r)!==i&&(this._redraw(),this.emit("scroll",t),t.preventDefault())}else if(this.options.horizontalScroll){var o=(Math.abs(e)>=Math.abs(n)?e:n)/120*(this.range.end-this.range.start)/20,s=this.range.start+o,a=this.range.end+o,l={animation:!1,byUser:!0,event:t};this.range.setRange(s,a,l),t.preventDefault()}}bd(u).call(u,(function(t){var e=function(e){o.isActive()&&o.emit(t,e)};o.hammer.on(t,e),o.timelineListeners[t]=e})),Bx(this.hammer,(function(t){o.emit("touch",t)})),a=this.hammer,(l=function(t){o.emit("release",t)}).inputHandler=function(t){t.isFinal&&l(t)},a.on("hammer.input",l.inputHandler);var h="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":this.dom.centerContainer.addEventListener?"DOMMouseScroll":"onmousewheel";function d(t){if(o.options.verticalScroll&&(t.preventDefault(),o.isActive())){var e=-t.target.scrollTop;o._setScrollTop(e),o._redraw(),o.emit("scrollSide",t)}}this.dom.top.addEventListener,this.dom.bottom.addEventListener,this.dom.centerContainer.addEventListener(h,Hh(c).call(c,this),!1),this.dom.top.addEventListener(h,Hh(c).call(c,this),!1),this.dom.bottom.addEventListener(h,Hh(c).call(c,this),!1),this.dom.left.parentNode.addEventListener("scroll",Hh(d).call(d,this)),this.dom.right.parentNode.addEventListener("scroll",Hh(d).call(d,this));var p=!1;function f(t){var e;if(t.preventDefault&&(o.emit("dragover",o.getEventProperties(t)),t.preventDefault()),Og(e=t.target.className).call(e,"timeline")>-1&&!p)return t.dataTransfer.dropEffect="move",p=!0,!1}function m(t){t.preventDefault&&t.preventDefault(),t.stopPropagation&&t.stopPropagation();try{var e=JSON.parse(t.dataTransfer.getData("text"));if(!e||!e.content)return}catch(t){return!1}return p=!1,t.center={x:t.clientX,y:t.clientY},"item"!==e.target?o.itemSet._onAddItem(t):o.itemSet._onDropObjectOnItem(t),o.emit("drop",o.getEventProperties(t)),!1}if(this.dom.center.addEventListener("dragover",Hh(f).call(f,this),!1),this.dom.center.addEventListener("drop",Hh(m).call(m,this),!1),this.customTimes=[],this.touch={},this.redrawCount=0,this.initialDrawDone=!1,this.initialRangeChangeDone=!1,!t)throw new Error("No container provided");t.appendChild(this.dom.root),t.appendChild(this.dom.loadingScreen)}},{key:"setOptions",value:function(t){var e;if(t){if(lk.selectiveExtend(["width","height","minHeight","maxHeight","autoResize","start","end","clickToUse","dataAttributes","hiddenDates","locale","locales","moment","preferZoom","rtl","zoomKey","horizontalScroll","verticalScroll","longSelectPressTime","snap"],this.options,t),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"),"object"!==ch(this.options.orientation)&&(this.options.orientation={item:void 0,axis:void 0}),"orientation"in t&&("string"==typeof t.orientation?this.options.orientation={item:t.orientation,axis:t.orientation}:"object"===ch(t.orientation)&&("item"in t.orientation&&(this.options.orientation.item=t.orientation.item),"axis"in t.orientation&&(this.options.orientation.axis=t.orientation.axis))),"both"===this.options.orientation.axis){if(!this.timeAxis2){var n=this.timeAxis2=new Ux(this.body,this.options);n.setOptions=function(t){var e=t?lk.extend({},t):{};e.orientation="top",Ux.prototype.setOptions.call(n,e)},this.components.push(n)}}else if(this.timeAxis2){var i,r,o=Og(i=this.components).call(i,this.timeAxis2);-1!==o&&Zm(r=this.components).call(r,o,1),this.timeAxis2.destroy(),this.timeAxis2=null}"function"==typeof t.drawPoints&&(t.drawPoints={onRender:t.drawPoints}),"hiddenDates"in this.options&&mx(this.options.moment,this.body,this.options.hiddenDates),"clickToUse"in t&&(t.clickToUse?this.activator||(this.activator=new Xx(this.dom.root)):this.activator&&(this.activator.destroy(),delete this.activator)),this._initAutoResize()}if(bd(e=this.components).call(e,(function(e){return e.setOptions(t)})),"configure"in t){var s;this.configurator||(this.configurator=this._createConfigurator()),this.configurator.setOptions(t.configure);var a=lk.deepExtend({},this.options);bd(s=this.components).call(s,(function(t){lk.deepExtend(a,t.options)})),this.configurator.setModuleOptions({global:a})}this._redraw()}},{key:"isActive",value:function(){return!this.activator||this.activator.active}},{key:"destroy",value:function(){var t;for(var e 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(e)&&delete this.timelineListeners[e];this.timelineListeners=null,this.hammer&&this.hammer.destroy(),this.hammer=null,bd(t=this.components).call(t,(function(t){return t.destroy()})),this.body=null}},{key:"setCustomTime",value:function(t,e){var n,i=Od(n=this.customTimes).call(n,(function(t){return e===t.options.id}));if(0===i.length)throw new Error("No custom time bar found with id ".concat(jg(e)));i.length>0&&i[0].setCustomTime(t)}},{key:"getCustomTime",value:function(t){var e,n=Od(e=this.customTimes).call(e,(function(e){return e.options.id===t}));if(0===n.length)throw new Error("No custom time bar found with id ".concat(jg(t)));return n[0].getCustomTime()}},{key:"setCustomTimeMarker",value:function(t,e,n){var i,r=Od(i=this.customTimes).call(i,(function(t){return t.options.id===e}));if(0===r.length)throw new Error("No custom time bar found with id ".concat(jg(e)));r.length>0&&r[0].setCustomMarker(t,n)}},{key:"setCustomTimeTitle",value:function(t,e){var n,i=Od(n=this.customTimes).call(n,(function(t){return t.options.id===e}));if(0===i.length)throw new Error("No custom time bar found with id ".concat(jg(e)));if(i.length>0)return i[0].setCustomTitle(t)}},{key:"getEventProperties",value:function(t){return{event:t}}},{key:"addCustomTime",value:function(t,e){var n,i=void 0!==t?lk.convert(t,"Date"):new Date,r=Yx(n=this.customTimes).call(n,(function(t){return t.options.id===e}));if(r)throw new Error("A custom time with id ".concat(jg(e)," already exists"));var o=new hS(this.body,lk.extend({},this.options,{time:i,id:e,snap:this.itemSet?this.itemSet.options.snap:this.options.snap}));return this.customTimes.push(o),this.components.push(o),this._redraw(),e}},{key:"removeCustomTime",value:function(t){var e,n=this,i=Od(e=this.customTimes).call(e,(function(e){return e.options.id===t}));if(0===i.length)throw new Error("No custom time bar found with id ".concat(jg(t)));bd(i).call(i,(function(t){var e,i,r,o;Zm(e=n.customTimes).call(e,Og(i=n.customTimes).call(i,t),1),Zm(r=n.components).call(r,Og(o=n.components).call(o,t),1),t.destroy()}))}},{key:"getVisibleItems",value:function(){return this.itemSet&&this.itemSet.getVisibleItems()||[]}},{key:"getItemsAtCurrentTime",value:function(t){return this.time=t,this.itemSet&&this.itemSet.getItemsAtCurrentTime(this.time)||[]}},{key:"getVisibleGroups",value:function(){return this.itemSet&&this.itemSet.getVisibleGroups()||[]}},{key:"fit",value:function(t,e){var n=this.getDataRange();if(null!==n.min||null!==n.max){var i=n.max-n.min,r=new Date(n.min.valueOf()-.01*i),o=new Date(n.max.valueOf()+.01*i),s=!t||void 0===t.animation||t.animation;this.range.setRange(r,o,{animation:s},e)}}},{key:"getDataRange",value:function(){throw new Error("Cannot invoke abstract method getDataRange")}},{key:"setWindow",value:function(t,e,n,i){var r,o;"function"==typeof arguments[2]&&(i=arguments[2],n={}),1==arguments.length?(r=void 0===(o=arguments[0]).animation||o.animation,this.range.setRange(o.start,o.end,{animation:r})):2==arguments.length&&"function"==typeof arguments[1]?(i=arguments[1],r=void 0===(o=arguments[0]).animation||o.animation,this.range.setRange(o.start,o.end,{animation:r},i)):(r=!n||void 0===n.animation||n.animation,this.range.setRange(t,e,{animation:r},i))}},{key:"moveTo",value:function(t,e,n){"function"==typeof arguments[1]&&(n=arguments[1],e={});var i=this.range.end-this.range.start,r=lk.convert(t,"Date").valueOf(),o=r-i/2,s=r+i/2,a=!e||void 0===e.animation||e.animation;this.range.setRange(o,s,{animation:a},n)}},{key:"getWindow",value:function(){var t=this.range.getRange();return{start:new Date(t.start),end:new Date(t.end)}}},{key:"zoomIn",value:function(t,e,n){if(!(!t||t<0||t>1)){"function"==typeof arguments[1]&&(n=arguments[1],e={});var i=this.getWindow(),r=i.start.valueOf(),o=i.end.valueOf(),s=o-r,a=(s-s/(1+t))/2,l=r+a,u=o-a;this.setWindow(l,u,e,n)}}},{key:"zoomOut",value:function(t,e,n){if(!(!t||t<0||t>1)){"function"==typeof arguments[1]&&(n=arguments[1],e={});var i=this.getWindow(),r=i.start.valueOf(),o=i.end.valueOf(),s=o-r,a=r-s*t/2,l=o+s*t/2;this.setWindow(a,l,e,n)}}},{key:"redraw",value:function(){this._redraw()}},{key:"_redraw",value:function(){var t;this.redrawCount++;var e=this.dom;if(e&&e.container&&0!=e.root.offsetWidth){var n=!1,i=this.options,r=this.props;vx(this.options.moment,this.body,this.options.hiddenDates),"top"==i.orientation?(lk.addClassName(e.root,"vis-top"),lk.removeClassName(e.root,"vis-bottom")):(lk.removeClassName(e.root,"vis-top"),lk.addClassName(e.root,"vis-bottom")),i.rtl?(lk.addClassName(e.root,"vis-rtl"),lk.removeClassName(e.root,"vis-ltr")):(lk.addClassName(e.root,"vis-ltr"),lk.removeClassName(e.root,"vis-rtl")),e.root.style.maxHeight=lk.option.asSize(i.maxHeight,""),e.root.style.minHeight=lk.option.asSize(i.minHeight,""),e.root.style.width=lk.option.asSize(i.width,"");var o=e.root.offsetWidth;r.border.left=1,r.border.right=1,r.border.top=1,r.border.bottom=1,r.center.height=e.center.offsetHeight,r.left.height=e.left.offsetHeight,r.right.height=e.right.offsetHeight,r.top.height=e.top.clientHeight||-r.border.top,r.bottom.height=Math.round(e.bottom.getBoundingClientRect().height)||e.bottom.clientHeight||-r.border.bottom;var s=Math.max(r.left.height,r.center.height,r.right.height),a=r.top.height+s+r.bottom.height+r.border.top+r.border.bottom;e.root.style.height=lk.option.asSize(i.height,"".concat(a,"px")),r.root.height=e.root.offsetHeight,r.background.height=r.root.height;var l=r.root.height-r.top.height-r.bottom.height;r.centerContainer.height=l,r.leftContainer.height=l,r.rightContainer.height=r.leftContainer.height,r.root.width=o,r.background.width=r.root.width,this.initialDrawDone||(r.scrollbarWidth=lk.getScrollBarWidth());var u=e.leftContainer.clientWidth,c=e.rightContainer.clientWidth;i.verticalScroll?i.rtl?(r.left.width=u||-r.border.left,r.right.width=c+r.scrollbarWidth||-r.border.right):(r.left.width=u+r.scrollbarWidth||-r.border.left,r.right.width=c||-r.border.right):(r.left.width=u||-r.border.left,r.right.width=c||-r.border.right),this._setDOM();var h=this._updateScrollTop();"top"!=i.orientation.item&&(h+=Math.max(r.centerContainer.height-r.center.height-r.border.top-r.border.bottom,0)),e.center.style.transform="translateY(".concat(h,"px)");var d=0==r.scrollTop?"hidden":"",p=r.scrollTop==r.scrollTopMin?"hidden":"";e.shadowTop.style.visibility=d,e.shadowBottom.style.visibility=p,e.shadowTopLeft.style.visibility=d,e.shadowBottomLeft.style.visibility=p,e.shadowTopRight.style.visibility=d,e.shadowBottomRight.style.visibility=p,i.verticalScroll&&(e.rightContainer.className="vis-panel vis-right vis-vertical-scroll",e.leftContainer.className="vis-panel vis-left vis-vertical-scroll",e.shadowTopRight.style.visibility="hidden",e.shadowBottomRight.style.visibility="hidden",e.shadowTopLeft.style.visibility="hidden",e.shadowBottomLeft.style.visibility="hidden",e.left.style.top="0px",e.right.style.top="0px"),(!i.verticalScroll||r.center.height<r.centerContainer.height)&&(e.left.style.top="".concat(h,"px"),e.right.style.top="".concat(h,"px"),e.rightContainer.className=e.rightContainer.className.replace(new RegExp("(?:^|\\s)vis-vertical-scroll(?:\\s|$)")," "),e.leftContainer.className=e.leftContainer.className.replace(new RegExp("(?:^|\\s)vis-vertical-scroll(?:\\s|$)")," "),r.left.width=u||-r.border.left,r.right.width=c||-r.border.right,this._setDOM());var f=r.center.height>r.centerContainer.height;if(this.hammer.get("pan").set({direction:f?Gx.DIRECTION_ALL:Gx.DIRECTION_HORIZONTAL}),this.hammer.get("press").set({time:this.options.longSelectPressTime}),bd(t=this.components).call(t,(function(t){n=t.redraw()||n})),n){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 t=this.props,e=this.dom;t.leftContainer.width=t.left.width,t.rightContainer.width=t.right.width;var n=t.root.width-t.left.width-t.right.width;t.center.width=n,t.centerContainer.width=n,t.top.width=n,t.bottom.width=n,e.background.style.height="".concat(t.background.height,"px"),e.backgroundVertical.style.height="".concat(t.background.height,"px"),e.backgroundHorizontal.style.height="".concat(t.centerContainer.height,"px"),e.centerContainer.style.height="".concat(t.centerContainer.height,"px"),e.leftContainer.style.height="".concat(t.leftContainer.height,"px"),e.rightContainer.style.height="".concat(t.rightContainer.height,"px"),e.background.style.width="".concat(t.background.width,"px"),e.backgroundVertical.style.width="".concat(t.centerContainer.width,"px"),e.backgroundHorizontal.style.width="".concat(t.background.width,"px"),e.centerContainer.style.width="".concat(t.center.width,"px"),e.top.style.width="".concat(t.top.width,"px"),e.bottom.style.width="".concat(t.bottom.width,"px"),e.background.style.left="0",e.background.style.top="0",e.backgroundVertical.style.left="".concat(t.left.width+t.border.left,"px"),e.backgroundVertical.style.top="0",e.backgroundHorizontal.style.left="0",e.backgroundHorizontal.style.top="".concat(t.top.height,"px"),e.centerContainer.style.left="".concat(t.left.width,"px"),e.centerContainer.style.top="".concat(t.top.height,"px"),e.leftContainer.style.left="0",e.leftContainer.style.top="".concat(t.top.height,"px"),e.rightContainer.style.left="".concat(t.left.width+t.center.width,"px"),e.rightContainer.style.top="".concat(t.top.height,"px"),e.top.style.left="".concat(t.left.width,"px"),e.top.style.top="0",e.bottom.style.left="".concat(t.left.width,"px"),e.bottom.style.top="".concat(t.top.height+t.centerContainer.height,"px"),e.center.style.left="0",e.left.style.left="0",e.right.style.left="0"}},{key:"setCurrentTime",value:function(t){if(!this.currentTime)throw new Error("Option showCurrentTime must be true");this.currentTime.setCurrentTime(t)}},{key:"getCurrentTime",value:function(){if(!this.currentTime)throw new Error("Option showCurrentTime must be true");return this.currentTime.getCurrentTime()}},{key:"_toTime",value:function(t){return wx(this,t,this.props.center.width)}},{key:"_toGlobalTime",value:function(t){return wx(this,t,this.props.root.width)}},{key:"_toScreen",value:function(t){return bx(this,t,this.props.center.width)}},{key:"_toGlobalScreen",value:function(t){return bx(this,t,this.props.root.width)}},{key:"_initAutoResize",value:function(){1==this.options.autoResize?this._startAutoResize():this._stopAutoResize()}},{key:"_startAutoResize",value:function(){var t=this;this._stopAutoResize(),this._onResize=function(){if(1==t.options.autoResize){if(t.dom.root){var e=t.dom.root.offsetHeight,n=t.dom.root.offsetWidth;n==t.props.lastWidth&&e==t.props.lastHeight||(t.props.lastWidth=n,t.props.lastHeight=e,t.props.scrollbarWidth=lk.getScrollBarWidth(),t.body.emitter.emit("_change"))}}else t._stopAutoResize()},window.addEventListener("resize",this._onResize),t.dom.root&&(t.props.lastWidth=t.dom.root.offsetWidth,t.props.lastHeight=t.dom.root.offsetHeight),this.watchTimer=zx(this._onResize,1e3)}},{key:"_stopAutoResize",value:function(){this.watchTimer&&(clearInterval(this.watchTimer),this.watchTimer=void 0),this._onResize&&(window.removeEventListener("resize",this._onResize),this._onResize=null)}},{key:"_onTouch",value:function(t){this.touch.allowDragging=!0,this.touch.initialScrollTop=this.props.scrollTop}},{key:"_onPinch",value:function(t){this.touch.allowDragging=!1}},{key:"_onDrag",value:function(t){if(t&&this.touch.allowDragging){var e=t.deltaY,n=this._getScrollTop(),i=this._setScrollTop(this.touch.initialScrollTop+e);this.options.verticalScroll&&(this.dom.left.parentNode.scrollTop=-this.props.scrollTop,this.dom.right.parentNode.scrollTop=-this.props.scrollTop),i!=n&&this.emit("verticalDrag")}}},{key:"_setScrollTop",value:function(t){return this.props.scrollTop=t,this._updateScrollTop(),this.props.scrollTop}},{key:"_updateScrollTop",value:function(){var t=Math.min(this.props.centerContainer.height-this.props.border.top-this.props.border.bottom-this.props.center.height,0);return t!=this.props.scrollTopMin&&("top"!=this.options.orientation.item&&(this.props.scrollTop+=t-this.props.scrollTopMin),this.props.scrollTopMin=t),this.props.scrollTop>0&&(this.props.scrollTop=0),this.props.scrollTop<t&&(this.props.scrollTop=t),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 pS(t){var e=function(){if("undefined"==typeof Reflect||!Rr)return!1;if(Rr.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Rr(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=Lh(t);if(e){var r=Lh(this).constructor;n=Rr(i,arguments,r)}else n=i.apply(this,arguments);return Ah(this,n)}}Xg(dS.prototype);var fS=function(t){Ph(n,t);var e=pS(n);function n(t,i){var r,o;Fr(this,n),(o=e.call(this)).body=t,o.defaultOptions={rtl:!1,showCurrentTime:!0,alignCurrentTime:void 0,moment:wd,locales:uS,locale:"en"},o.options=lk.extend({},o.defaultOptions),o.setOptions(i),o.options.locales=lk.extend({},uS,o.options.locales);var s=o.defaultOptions.locales[o.defaultOptions.locale];return bd(r=Tp(o.options.locales)).call(r,(function(t){o.options.locales[t]=lk.extend({},s,o.options.locales[t])})),o.offset=0,o._create(),o}return fh(n,[{key:"_create",value:function(){var t=document.createElement("div");t.className="vis-current-time",t.style.position="absolute",t.style.top="0px",t.style.height="100%",this.bar=t}},{key:"destroy",value:function(){this.options.showCurrentTime=!1,this.redraw(),this.body=null}},{key:"setOptions",value:function(t){t&&lk.selectiveExtend(["rtl","showCurrentTime","alignCurrentTime","moment","locale","locales"],this.options,t)}},{key:"redraw",value:function(){if(this.options.showCurrentTime){var t,e,n=this.body.dom.backgroundVertical;this.bar.parentNode!=n&&(this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),n.appendChild(this.bar),this.start());var i=this.options.moment(wm()+this.offset);this.options.alignCurrentTime&&(i=i.startOf(this.options.alignCurrentTime));var r=this.body.util.toScreen(i),o=this.options.locales[this.options.locale];o||(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),o=this.options.locales.en);var s=fm(t=fm(e="".concat(o.current," ")).call(e,o.time,": ")).call(t,i.format("dddd, MMMM Do YYYY, H:mm:ss"));s=s.charAt(0).toUpperCase()+s.substring(1),this.options.rtl?this.bar.style.transform="translateX(".concat(-1*r,"px)"):this.bar.style.transform="translateX(".concat(r,"px)"),this.bar.title=s}else this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),this.stop();return!1}},{key:"start",value:function(){var t=this;!function e(){t.stop();var n=1/t.body.range.conversion(t.body.domProps.center.width).scale/10;n<30&&(n=30),n>1e3&&(n=1e3),t.redraw(),t.body.emitter.emit("currentTimeTick"),t.currentTimeTimer=sd(e,n)}()}},{key:"stop",value:function(){void 0!==this.currentTimeTimer&&(clearTimeout(this.currentTimeTimer),delete this.currentTimeTimer)}},{key:"setCurrentTime",value:function(t){var e=lk.convert(t,"Date").valueOf(),n=wm();this.offset=e-n,this.redraw()}},{key:"getCurrentTime",value:function(){return new Date(wm()+this.offset)}}]),n}(wk),mS=In,vS=Gs.find,gS="find",yS=!0;gS in[]&&Array(1)[gS]((function(){yS=!1})),mS({target:"Array",proto:!0,forced:yS},{find:function(t){return vS(this,t,arguments.length>1?arguments[1]:void 0)}});var bS=kh("Array").find,wS=ht,_S=bS,kS=Array.prototype,xS=function(t){var e=t.find;return t===kS||wS(kS,t)&&e===kS.find?_S:e},SS=s(xS),DS={exports:{}},TS=u((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),CS=u,OS=rt,ES=S,MS=TS,PS=Object.isExtensible,AS=CS((function(){PS(1)}))||MS?function(t){return!!OS(t)&&(!MS||"ArrayBuffer"!==ES(t))&&(!PS||PS(t))}:PS,IS=!u((function(){return Object.isExtensible(Object.preventExtensions({}))})),NS=In,jS=w,RS=zi,FS=rt,LS=ne,YS=en.f,zS=Eo,HS=Ao,GS=AS,BS=IS,WS=!1,VS=ae("meta"),US=0,qS=function(t){YS(t,VS,{value:{objectID:"O"+US++,weakData:{}}})},XS=DS.exports={enable:function(){XS.enable=function(){},WS=!0;var t=zS.f,e=jS([].splice),n={};n[VS]=1,t(n).length&&(zS.f=function(n){for(var i=t(n),r=0,o=i.length;r<o;r++)if(i[r]===VS){e(i,r,1);break}return i},NS({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:HS.f}))},fastKey:function(t,e){if(!FS(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!LS(t,VS)){if(!GS(t))return"F";if(!e)return"E";qS(t)}return t[VS].objectID},getWeakData:function(t,e){if(!LS(t,VS)){if(!GS(t))return!0;if(!e)return!1;qS(t)}return t[VS].weakData},onFreeze:function(t){return BS&&WS&&GS(t)&&!LS(t,VS)&&qS(t),t}};RS[VS]=!0;var $S=DS.exports,KS=tn,QS=R,ZS=an,JS=Pt,tD=Fp,eD=Ni,nD=ht,iD=Kp,rD=Bp,oD=Pp,sD=TypeError,aD=function(t,e){this.stopped=t,this.result=e},lD=aD.prototype,uD=function(t,e,n){var i,r,o,s,a,l,u,c=n&&n.that,h=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_RECORD),p=!(!n||!n.IS_ITERATOR),f=!(!n||!n.INTERRUPTED),m=KS(e,c),v=function(t){return i&&oD(i,"normal",t),new aD(!0,t)},g=function(t){return h?(ZS(t),f?m(t[0],t[1],v):m(t[0],t[1])):f?m(t,v):m(t)};if(d)i=t.iterator;else if(p)i=t;else{if(!(r=rD(t)))throw new sD(JS(t)+" is not iterable");if(tD(r)){for(o=0,s=eD(t);s>o;o++)if((a=g(t[o]))&&nD(lD,a))return a;return new aD(!1)}i=iD(t,r)}for(l=d?t.next:i.next;!(u=QS(l,i)).done;){try{a=g(u.value)}catch(t){oD(i,"throw",t)}if("object"==typeof a&&a&&nD(lD,a))return a}return new aD(!1)},cD=ht,hD=TypeError,dD=function(t,e){if(cD(e,t))return t;throw new hD("Incorrect invocation")},pD=In,fD=l,mD=$S,vD=u,gD=_n,yD=uD,bD=dD,wD=P,_D=rt,kD=$,xD=ys,SD=en.f,DD=Gs.forEach,TD=I,CD=Ns.set,OD=Ns.getterFor,ED=Uo,MD=ct,PD=Xo,AD=I,ID=ve("species"),ND=_r,jD=Xo,RD=function(t,e,n){for(var i in e)n&&n.unsafe&&t[i]?t[i]=e[i]:ED(t,i,e[i],n);return t},FD=tn,LD=dD,YD=$,zD=uD,HD=ec,GD=nc,BD=function(t){var e=MD(t);AD&&e&&!e[ID]&&PD(e,ID,{configurable:!0,get:function(){return this}})},WD=I,VD=$S.fastKey,UD=Ns.set,qD=Ns.getterFor,XD={getConstructor:function(t,e,n,i){var r=t((function(t,r){LD(t,o),UD(t,{type:e,index:ND(null),first:void 0,last:void 0,size:0}),WD||(t.size=0),YD(r)||zD(r,t[i],{that:t,AS_ENTRIES:n})})),o=r.prototype,s=qD(e),a=function(t,e,n){var i,r,o=s(t),a=l(t,e);return a?a.value=n:(o.last=a={index:r=VD(e,!0),key:e,value:n,previous:i=o.last,next:void 0,removed:!1},o.first||(o.first=a),i&&(i.next=a),WD?o.size++:t.size++,"F"!==r&&(o.index[r]=a)),t},l=function(t,e){var n,i=s(t),r=VD(e);if("F"!==r)return i.index[r];for(n=i.first;n;n=n.next)if(n.key===e)return n};return RD(o,{clear:function(){for(var t=s(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,WD?t.size=0:this.size=0},delete:function(t){var e=this,n=s(e),i=l(e,t);if(i){var r=i.next,o=i.previous;delete n.index[i.index],i.removed=!0,o&&(o.next=r),r&&(r.previous=o),n.first===i&&(n.first=r),n.last===i&&(n.last=o),WD?n.size--:e.size--}return!!i},forEach:function(t){for(var e,n=s(this),i=FD(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:n.first;)for(i(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!l(this,t)}}),RD(o,n?{get:function(t){var e=l(this,t);return e&&e.value},set:function(t,e){return a(this,0===t?0:t,e)}}:{add:function(t){return a(this,t=0===t?0:t,t)}}),WD&&jD(o,"size",{configurable:!0,get:function(){return s(this).size}}),r},setStrong:function(t,e,n){var i=e+" Iterator",r=qD(e),o=qD(i);HD(t,e,(function(t,e){UD(this,{type:i,target:t,state:r(t),kind:e,last:void 0})}),(function(){for(var t=o(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?GD("keys"===e?n.key:"values"===e?n.value:[n.key,n.value],!1):(t.target=void 0,GD(void 0,!0))}),n?"entries":"values",!n,!0),BD(e)}},$D=function(t,e,n){var i,r=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),s=r?"set":"add",a=fD[t],l=a&&a.prototype,u={};if(TD&&wD(a)&&(o||l.forEach&&!vD((function(){(new a).entries().next()})))){var c=(i=e((function(e,n){CD(bD(e,c),{type:t,collection:new a}),kD(n)||yD(n,e[s],{that:e,AS_ENTRIES:r})}))).prototype,h=OD(t);DD(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var e="add"===t||"set"===t;!(t in l)||o&&"clear"===t||gD(c,t,(function(n,i){var r=h(this).collection;if(!e&&o&&!_D(n))return"get"===t&&void 0;var s=r[t](0===n?0:n,i);return e?this:s}))})),o||SD(c,"size",{configurable:!0,get:function(){return h(this).collection.size}})}else i=n.getConstructor(e,t,r,s),mD.enable();return xD(i,t,!1,!0),u[t]=i,pD({global:!0,forced:!0},u),o||n.setStrong(i,t,r),i};$D("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),XD);var KD=s(ot.Set),QD=In,ZD=Gs.findIndex,JD="findIndex",tT=!0;JD in[]&&Array(1)[JD]((function(){tT=!1})),QD({target:"Array",proto:!0,forced:tT},{findIndex:function(t){return ZD(this,t,arguments.length>1?arguments[1]:void 0)}});var eT=kh("Array").findIndex,nT=ht,iT=eT,rT=Array.prototype,oT=function(t){var e=t.findIndex;return t===rT||nT(rT,t)&&e===rT.findIndex?iT:e},sT=s(oT);function aT(t,e){var n=void 0!==lm&&bf(t)||t["@@iterator"];if(!n){if(zh(t)||(n=function(t,e){var n;if(t){if("string"==typeof t)return lT(t,e);var i=mm(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?vf(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?lT(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function lT(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var uT=.001;function cT(t){fx(t).call(t,(function(t,e){return t.data.start-e.data.start}))}function hT(t){fx(t).call(t,(function(t,e){return("end"in t.data?t.data.end:t.data.start)-("end"in e.data?e.data.end:e.data.start)}))}function dT(t,e,n,i){return null===gT(t,e.item,!1,(function(t){return t.stack&&(n||null===t.top)}),(function(t){return t.stack}),(function(t){return e.axis}),i)}function pT(t,e,n){var i=gT(t,e.item,!1,(function(t){return t.stack}),(function(t){return!0}),(function(t){return t.baseTop}));n.height=i-n.top+.5*e.item.vertical}function fT(t,e,n,i){for(var r=0;r<t.length;r++)if(null==t[r].data.subgroup)t[r].top=e.item.vertical;else if(void 0!==t[r].data.subgroup&&i){var o=0;for(var s in n)n.hasOwnProperty(s)&&1==n[s].visible&&n[s].index<n[t[r].data.subgroup].index&&(o+=n[s].height,n[t[r].data.subgroup].top=o);t[r].top=o+.5*e.item.vertical}i||mT(t,e,n)}function mT(t,e,n){var i;gT(fx(i=$v(n)).call(i,(function(t,e){return t.index>e.index?1:t.index<e.index?-1:0})),{vertical:0},!0,(function(t){return!0}),(function(t){return!0}),(function(t){return 0}));for(var r=0;r<t.length;r++)void 0!==t[r].data.subgroup&&(t[r].top=n[t[r].data.subgroup].top+.5*e.item.vertical)}function vT(t,e,n){var i=!1,r=[];for(var o in n)n[o].hasOwnProperty("index")?r[n[o].index]=o:r.push(o);for(var s=0;s<r.length;s++)if(o=r[s],n.hasOwnProperty(o)){for(var a in i=i||n[o].stack,n[o].top=0,n)n[a].visible&&n[o].index>n[a].index&&(n[o].top+=n[a].height);for(var l=t[o],u=0;u<l.length;u++)void 0!==l[u].data.subgroup&&(l[u].top=n[l[u].data.subgroup].top+.5*e.item.vertical,n[o].stack&&(l[u].baseTop=l[u].top));i&&n[o].stack&&pT(t[o],e,n[o])}}function gT(t,e,n,r,o,s,a){var l=function(t){return t.start},u=function(t){return t.end};if(!n){var c=!(!t[0]||!t[0].options.rtl);l=c?function(t){return t.right}:function(t){return t.left},u=function(t){return l(t)+t.width+e.horizontal}}var h,d=[],p=[],f=null,m=0,v=aT(t);try{var g=function(){var t=h.value;if(r(t))d.push(t);else if(o(t)){var e=l(t);null!==f&&e<f-uT&&(m=0),f=e,m=yT(p,(function(t){return l(t)-uT>e}),m),Zm(p).call(p,m,0,t),m++}};for(v.s();!(h=v.n()).done;)g()}catch(t){v.e(t)}finally{v.f()}f=null;var y=null;m=0;for(var b,w=0,_=0,k=0,x=function(){var t,n,r=d.shift();r.top=s(r);var c=l(r),h=u(r);null!==f&&c<f-uT&&(w=0,_=0,m=0,y=null),f=c,w=yT(p,(function(t){return c<u(t)-uT}),w),(null===y||y<h-uT)&&(_=yT(p,(function(t){return h<l(t)-uT}),Math.max(w,_))),null!==y&&y-uT>h&&(_=function(t,e,n,r){for(n||(n=0),r||(r=t.length),i=r-1;i>=n;i--)if(e(t[i]))return i;return n-1}(p,(function(t){return h+uT>=l(t)}),w,_)+1);for(var v,g,b,x=fx(t=Od(n=mm(p).call(p,w,_)).call(n,(function(t){return c<u(t)-uT&&h-uT>l(t)}))).call(t,(function(t,e){return t.top-e.top})),S=0;S<x.length;S++){var D=x[S];g=D,b=e,(v=r).top-b.vertical+uT<g.top+g.height&&v.top+v.height+b.vertical-uT>g.top&&(r.top=D.top+D.height+e.vertical)}o(r)&&(m=yT(p,(function(t){return l(t)-uT>c}),m),Zm(p).call(p,m,0,r),m++);var T=r.top+r.height;if(T>k&&(k=T),a&&a())return{v:null}};d.length>0;)if(b=x())return b.v;return k}function yT(t,e,n){var i;n||(n=0);var r=sT(i=mm(t).call(t,n)).call(i,e);return-1===r?t.length:r+n}var bT=Object.freeze({__proto__:null,nostack:fT,orderByEnd:hT,orderByStart:cT,stack:dT,stackSubgroups:mT,stackSubgroupsWithInnerStack:vT,substack:pT}),wT="__background__",_T=function(){function t(e,n,i){var r=this;if(Fr(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=i,this.isVisible=null,this.stackDirty=!0,this._disposeCallbacks=[],n&&n.nestedGroups&&(this.nestedGroups=n.nestedGroups,0==n.showNested?this.showNested=!1:this.showNested=!0),n&&n.subgroupStack)if("boolean"==typeof n.subgroupStack)this.doInnerStack=n.subgroupStack,this.subgroupStackAll=n.subgroupStack;else for(var o in n.subgroupStack)this.subgroupStack[o]=n.subgroupStack[o],this.doInnerStack=this.doInnerStack||n.subgroupStack[o];n&&n.heightMode?this.heightMode=n.heightMode:this.heightMode=i.options.groupHeightMode,this.nestedInGroup=null,this.dom={},this.props={label:{width:0,height:0}},this.className=null,this.items={},this.visibleItems=[],this.itemsInRange=[],this.orderedItems={byStart:[],byEnd:[]},this.checkRangedItems=!1;var s=function(){r.checkRangedItems=!0};this.itemSet.body.emitter.on("checkRangedItems",s),this._disposeCallbacks.push((function(){r.itemSet.body.emitter.off("checkRangedItems",s)})),this._create(),this.setData(n)}return fh(t,[{key:"_create",value:function(){var t=document.createElement("div");this.itemSet.options.groupEditable.order?t.className="vis-label draggable":t.className="vis-label",this.dom.label=t;var e=document.createElement("div");e.className="vis-inner",t.appendChild(e),this.dom.inner=e;var n=document.createElement("div");n.className="vis-group",n["vis-group"]=this,this.dom.foreground=n,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(t){if(!this.itemSet.groupTouchParams.isDragging){var e,n,i;if(t&&t.subgroupVisibility)for(var r in t.subgroupVisibility)this.subgroupVisibility[r]=t.subgroupVisibility[r];if((e=this.itemSet.options&&this.itemSet.options.groupTemplate?(n=Hh(i=this.itemSet.options.groupTemplate).call(i,this))(t,this.dom.inner):t&&t.content)instanceof Element){for(;this.dom.inner.firstChild;)this.dom.inner.removeChild(this.dom.inner.firstChild);this.dom.inner.appendChild(e)}else e instanceof Object&&e.isReactComponent||(e instanceof Object?n(t,this.dom.inner):this.dom.inner.innerHTML=null!=e?lk.xss(e):lk.xss(this.groupId||""));this.dom.label.title=t&&t.title||"",this.dom.inner.firstChild?lk.removeClassName(this.dom.inner,"vis-hidden"):lk.addClassName(this.dom.inner,"vis-hidden"),t&&t.nestedGroups?(this.nestedGroups&&this.nestedGroups==t.nestedGroups||(this.nestedGroups=t.nestedGroups),void 0===t.showNested&&void 0!==this.showNested||(0==t.showNested?this.showNested=!1:this.showNested=!0),lk.addClassName(this.dom.label,"vis-nesting-group"),this.showNested?(lk.removeClassName(this.dom.label,"collapsed"),lk.addClassName(this.dom.label,"expanded")):(lk.removeClassName(this.dom.label,"expanded"),lk.addClassName(this.dom.label,"collapsed"))):this.nestedGroups&&(this.nestedGroups=null,lk.removeClassName(this.dom.label,"collapsed"),lk.removeClassName(this.dom.label,"expanded"),lk.removeClassName(this.dom.label,"vis-nesting-group")),t&&(t.treeLevel||t.nestedInGroup)?(lk.addClassName(this.dom.label,"vis-nested-group"),t.treeLevel?lk.addClassName(this.dom.label,"vis-group-level-"+t.treeLevel):lk.addClassName(this.dom.label,"vis-group-level-unknown-but-gte1")):lk.addClassName(this.dom.label,"vis-group-level-0");var o=t&&t.className||null;o!=this.className&&(this.className&&(lk.removeClassName(this.dom.label,this.className),lk.removeClassName(this.dom.foreground,this.className),lk.removeClassName(this.dom.background,this.className),lk.removeClassName(this.dom.axis,this.className)),lk.addClassName(this.dom.label,o),lk.addClassName(this.dom.foreground,o),lk.addClassName(this.dom.background,o),lk.addClassName(this.dom.axis,o),this.className=o),this.style&&(lk.removeCssText(this.dom.label,this.style),this.style=null),t&&t.style&&(lk.addCssText(this.dom.label,t.style),this.style=t.style)}}},{key:"getLabelWidth",value:function(){return this.props.label.width}},{key:"_didMarkerHeightChange",value:function(){var t=this.dom.marker.clientHeight;if(t!=this.lastMarkerHeight){this.lastMarkerHeight=t;var e={},n=0;if(bd(lk).call(lk,this.items,(function(t,i){t.dirty=!0,t.displayed&&(e[i]=t.redraw(!0),n=e[i].length)})),n>0)for(var i=function(t){bd(lk).call(lk,e,(function(e){e[t]()}))},r=0;r<n;r++)i(r);return!0}return!1}},{key:"_calculateGroupSizeAndPosition",value:function(){var t=this.dom.foreground,e=t.offsetTop,n=t.offsetLeft,i=t.offsetWidth;this.top=e,this.right=n,this.width=i}},{key:"_shouldBailItemsRedraw",value:function(){var t=this,e=this.itemSet.options.onTimeout,n={relativeBailingTime:this.itemSet.itemsSettingTime,bailTimeMs:e&&e.timeoutMs,userBailFunction:e&&e.callback,shouldBailStackItems:this.shouldBailStackItems},i=null;if(!this.itemSet.initialDrawDone){if(n.shouldBailStackItems)return!0;Math.abs(wm()-new Date(n.relativeBailingTime))>n.bailTimeMs&&(n.userBailFunction&&null==this.itemSet.userContinueNotBail?n.userBailFunction((function(e){t.itemSet.userContinueNotBail=e,i=!e})):i=0==t.itemSet.userContinueNotBail)}return i}},{key:"_redrawItems",value:function(t,e,n,i){var r=this;if(t||this.stackDirty||this.isVisible&&!e){var o,s,a,l,u,c,h={byEnd:Od(o=this.orderedItems.byEnd).call(o,(function(t){return!t.isCluster})),byStart:Od(s=this.orderedItems.byStart).call(s,(function(t){return!t.isCluster}))},d={byEnd:am(new KD(Od(a=lp(l=this.orderedItems.byEnd).call(l,(function(t){return t.cluster}))).call(a,(function(t){return!!t})))),byStart:am(new KD(Od(u=lp(c=this.orderedItems.byStart).call(c,(function(t){return t.cluster}))).call(u,(function(t){return!!t}))))},p=function(){var t,e,n,o=r._updateItemsInRange(h,Od(t=r.visibleItems).call(t,(function(t){return!t.isCluster})),i),s=r._updateClustersInRange(d,Od(e=r.visibleItems).call(e,(function(t){return t.isCluster})),i);return fm(n=[]).call(n,am(o),am(s))},f=function(t){var e={},n=function(n){var i,o=Od(i=r.visibleItems).call(i,(function(t){return t.data.subgroup===n}));e[n]=t?fx(o).call(o,(function(e,n){return t(e.data,n.data)})):o};for(var i in r.subgroups)n(i);return e};if("function"==typeof this.itemSet.options.order){var m=this;if(this.doInnerStack&&this.itemSet.options.stackSubgroups)vT(f(this.itemSet.options.order),n,this.subgroups),this.visibleItems=p(),this._updateSubGroupHeights(n);else{var v,g,y,b;this.visibleItems=p(),this._updateSubGroupHeights(n);var w=fx(v=Od(g=mm(y=this.visibleItems).call(y)).call(g,(function(t){return t.isCluster||!t.isCluster&&!t.cluster}))).call(v,(function(t,e){return m.itemSet.options.order(t.data,e.data)}));this.shouldBailStackItems=dT(w,n,!0,Hh(b=this._shouldBailItemsRedraw).call(b,this))}}else{var _;this.visibleItems=p(),this._updateSubGroupHeights(n),this.itemSet.options.stack?this.doInnerStack&&this.itemSet.options.stackSubgroups?vT(f(),n,this.subgroups):this.shouldBailStackItems=dT(this.visibleItems,n,!0,Hh(_=this._shouldBailItemsRedraw).call(_,this)):fT(this.visibleItems,n,this.subgroups,this.itemSet.options.stackSubgroups)}for(var k=0;k<this.visibleItems.length;k++)this.visibleItems[k].repositionX(),void 0!==this.subgroupVisibility[this.visibleItems[k].data.subgroup]&&(this.subgroupVisibility[this.visibleItems[k].data.subgroup]||this.visibleItems[k].hide());this.itemSet.options.cluster&&bd(lk).call(lk,this.items,(function(t){t.cluster&&t.displayed&&t.hide()})),this.shouldBailStackItems&&this.itemSet.body.emitter.emit("destroyTimeline"),this.stackDirty=!1}}},{key:"_didResize",value:function(t,e){t=lk.updateProperty(this,"height",e)||t;var n=this.dom.inner.clientWidth,i=this.dom.inner.clientHeight;return t=lk.updateProperty(this.props.label,"width",n)||t,lk.updateProperty(this.props.label,"height",i)||t}},{key:"_applyGroupHeight",value:function(t){this.dom.background.style.height="".concat(t,"px"),this.dom.foreground.style.height="".concat(t,"px"),this.dom.label.style.height="".concat(t,"px")}},{key:"_updateItemsVerticalPosition",value:function(t){for(var e=0,n=this.visibleItems.length;e<n;e++){var i=this.visibleItems[e];i.repositionY(t),this.isVisible||this.groupId==wT||i.displayed&&i.hide()}}},{key:"redraw",value:function(t,e,n,i){var r,o,s,a,l,u,c,h=this,d=!1,p=this.isVisible,f=[function(){n=h._didMarkerHeightChange.call(h)||n},Hh(r=this._updateSubGroupHeights).call(r,this,e),Hh(o=this._calculateGroupSizeAndPosition).call(o,this),function(){var n;h.isVisible=Hh(n=h._isGroupVisible).call(n,h)(t,e)},function(){var i;Hh(i=h._redrawItems).call(i,h)(n,p,e,t)},Hh(s=this._updateSubgroupsSizes).call(s,this),function(){var t;u=Hh(t=h._calculateHeight).call(t,h)(e)},Hh(a=this._calculateGroupSizeAndPosition).call(a,this),function(){var t;d=Hh(t=h._didResize).call(t,h)(d,u)},function(){var t;Hh(t=h._applyGroupHeight).call(t,h)(u)},function(){var t;Hh(t=h._updateItemsVerticalPosition).call(t,h)(e)},Hh(l=function(){return!h.isVisible&&h.height&&(d=!1),d}).call(l,this)];return i?f:(bd(f).call(f,(function(t){c=t()})),c)}},{key:"_updateSubGroupHeights",value:function(t){var e=this;if(Tp(this.subgroups).length>0){var n=this;this._resetSubgroups(),bd(lk).call(lk,this.visibleItems,(function(i){void 0!==i.data.subgroup&&(n.subgroups[i.data.subgroup].height=Math.max(n.subgroups[i.data.subgroup].height,i.height+t.item.vertical),n.subgroups[i.data.subgroup].visible=void 0===e.subgroupVisibility[i.data.subgroup]||Boolean(e.subgroupVisibility[i.data.subgroup]))}))}}},{key:"_isGroupVisible",value:function(t,e){return this.top<=t.body.domProps.centerContainer.height-t.body.domProps.scrollTop+e.axis&&this.top+this.height+e.axis>=-t.body.domProps.scrollTop}},{key:"_calculateHeight",value:function(t){var e,n;if((n="fixed"===this.heightMode?lk.toArray(this.items):this.visibleItems).length>0){var i=n[0].top,r=n[0].top+n[0].height;if(bd(lk).call(lk,n,(function(t){i=Math.min(i,t.top),r=Math.max(r,t.top+t.height)})),i>t.axis){var o=i-t.axis;r-=o,bd(lk).call(lk,n,(function(t){t.top-=o}))}e=Math.ceil(r+t.item.vertical/2),"fitItems"!==this.heightMode&&(e=Math.max(e,this.props.label.height))}else e=this.props.label.height;return e}},{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 t=this.dom.label;t.parentNode&&t.parentNode.removeChild(t);var e=this.dom.foreground;e.parentNode&&e.parentNode.removeChild(e);var n=this.dom.background;n.parentNode&&n.parentNode.removeChild(n);var i=this.dom.axis;i.parentNode&&i.parentNode.removeChild(i)}},{key:"add",value:function(t){var e;if(this.items[t.id]=t,t.setParent(this),this.stackDirty=!0,void 0!==t.data.subgroup&&(this._addToSubgroup(t),this.orderSubgroups()),!jv(e=this.visibleItems).call(e,t)){var n=this.itemSet.body.range;this._checkIfVisible(t,this.visibleItems,n)}}},{key:"_addToSubgroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.data.subgroup;null!=e&&void 0===this.subgroups[e]&&(this.subgroups[e]={height:0,top:0,start:t.data.start,end:t.data.end||t.data.start,visible:!1,index:this.subgroupIndex,items:[],stack:this.subgroupStackAll||this.subgroupStack[e]||!1},this.subgroupIndex++),new Date(t.data.start)<new Date(this.subgroups[e].start)&&(this.subgroups[e].start=t.data.start);var n=t.data.end||t.data.start;new Date(n)>new Date(this.subgroups[e].end)&&(this.subgroups[e].end=n),this.subgroups[e].items.push(t)}},{key:"_updateSubgroupsSizes",value:function(){var t=this;if(t.subgroups){var e=function(){var e,i=t.subgroups[n].items[0].data.end||t.subgroups[n].items[0].data.start,r=t.subgroups[n].items[0].data.start,o=i-1;bd(e=t.subgroups[n].items).call(e,(function(t){new Date(t.data.start)<new Date(r)&&(r=t.data.start);var e=t.data.end||t.data.start;new Date(e)>new Date(o)&&(o=e)})),t.subgroups[n].start=r,t.subgroups[n].end=new Date(o-1)};for(var n in t.subgroups)e()}}},{key:"orderSubgroups",value:function(){if(void 0!==this.subgroupOrderer){var t=[];if("string"==typeof this.subgroupOrderer){for(var e in this.subgroups)t.push({subgroup:e,sortField:this.subgroups[e].items[0].data[this.subgroupOrderer]});fx(t).call(t,(function(t,e){return t.sortField-e.sortField}))}else if("function"==typeof this.subgroupOrderer){for(var n in this.subgroups)t.push(this.subgroups[n].items[0].data);fx(t).call(t,this.subgroupOrderer)}if(t.length>0)for(var i=0;i<t.length;i++)this.subgroups[t[i].subgroup].index=i}}},{key:"_resetSubgroups",value:function(){for(var t in this.subgroups)this.subgroups.hasOwnProperty(t)&&(this.subgroups[t].visible=!1,this.subgroups[t].height=0)}},{key:"remove",value:function(t){var e,n;delete this.items[t.id],t.setParent(null),this.stackDirty=!0;var i=Og(e=this.visibleItems).call(e,t);-1!=i&&Zm(n=this.visibleItems).call(n,i,1),void 0!==t.data.subgroup&&(this._removeFromSubgroup(t),this.orderSubgroups())}},{key:"_removeFromSubgroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.data.subgroup;if(null!=e){var n=this.subgroups[e];if(n){var i,r,o=Og(i=n.items).call(i,t);o>=0&&(Zm(r=n.items).call(r,o,1),n.items.length?this._updateSubgroupsSizes():delete this.subgroups[e])}}}},{key:"removeFromDataSet",value:function(t){this.itemSet.removeItem(t.id)}},{key:"order",value:function(){for(var t=lk.toArray(this.items),e=[],n=[],i=0;i<t.length;i++)void 0!==t[i].data.end&&n.push(t[i]),e.push(t[i]);this.orderedItems={byStart:e,byEnd:n},cT(this.orderedItems.byStart),hT(this.orderedItems.byEnd)}},{key:"_updateItemsInRange",value:function(t,e,n){var i=[],r={};if(!this.isVisible&&void 0!==this.height&&this.groupId!=wT){for(var o=0;o<e.length;o++){var s=e[o];s.displayed&&s.hide()}return i}var a=(n.end-n.start)/4,l=n.start-a,u=n.end+a;if(e.length>0)for(var c=0;c<e.length;c++)this._checkIfVisibleWithReference(e[c],i,r,n);var h=lk.binarySearchCustom(t.byStart,(function(t){return t<l?-1:t<=u?0:1}),"data","start");if(this._traceVisible(h,t.byStart,i,r,(function(t){return t.data.start<l||t.data.start>u})),1==this.checkRangedItems){this.checkRangedItems=!1;for(var d=0;d<t.byEnd.length;d++)this._checkIfVisibleWithReference(t.byEnd[d],i,r,n)}else{var p=lk.binarySearchCustom(t.byEnd,(function(t){var e=t.start;return t.end<l?-1:e<=u?0:1}),"data");this._traceVisible(p,t.byEnd,i,r,(function(t){return t.data.end<l||t.data.start>u}))}for(var f={},m=0,v=0;v<i.length;v++){var g=i[v];g.displayed||(f[v]=g.redraw(!0),m=f[v].length)}if(m>0)for(var y=function(t){bd(lk).call(lk,f,(function(e){e[t]()}))},b=0;b<m;b++)y(b);for(var w=0;w<i.length;w++)i[w].repositionX();return i}},{key:"_traceVisible",value:function(t,e,n,i,r){if(-1!=t){for(var o=t;o>=0;o--){var s=e[o];if(r(s))break;s.isCluster&&!s.hasItems()||s.cluster||void 0===i[s.id]&&(i[s.id]=!0,n.push(s))}for(var a=t+1;a<e.length;a++){var l=e[a];if(r(l))break;l.isCluster&&!l.hasItems()||l.cluster||void 0===i[l.id]&&(i[l.id]=!0,n.push(l))}}}},{key:"_checkIfVisible",value:function(t,e,n){t.isVisible(n)?(t.displayed||t.show(),t.repositionX(),e.push(t)):t.displayed&&t.hide()}},{key:"_checkIfVisibleWithReference",value:function(t,e,n,i){t.isVisible(i)?void 0===n[t.id]&&(n[t.id]=!0,e.push(t)):t.displayed&&t.hide()}},{key:"_updateClustersInRange",value:function(t,e,n){var i=[],r={};if(e.length>0)for(var o=0;o<e.length;o++)this._checkIfVisibleWithReference(e[o],i,r,n);for(var s=0;s<t.byStart.length;s++)this._checkIfVisibleWithReference(t.byStart[s],i,r,n);for(var a=0;a<t.byEnd.length;a++)this._checkIfVisibleWithReference(t.byEnd[a],i,r,n);for(var l={},u=0,c=0;c<i.length;c++){var h=i[c];h.displayed||(l[c]=h.redraw(!0),u=l[c].length)}if(u>0)for(var d=0;d<u;d++)bd(lk).call(lk,l,(function(t){t[d]()}));for(var p=0;p<i.length;p++)i[p].repositionX();return i}},{key:"changeSubgroup",value:function(t,e,n){this._removeFromSubgroup(t,e),this._addToSubgroup(t,n),this.orderSubgroups()}},{key:"dispose",value:function(){var t;for(this.hide();t=this._disposeCallbacks.pop();)t()}}]),t}();function kT(t){var e=function(){if("undefined"==typeof Reflect||!Rr)return!1;if(Rr.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Rr(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=Lh(t);if(e){var r=Lh(this).constructor;n=Rr(i,arguments,r)}else n=i.apply(this,arguments);return Ah(this,n)}}var xT=function(t){Ph(n,t);var e=kT(n);function n(t,i,r){var o;return Fr(this,n),(o=e.call(this,t,i,r)).width=0,o.height=0,o.top=0,o.left=0,o}return fh(n,[{key:"redraw",value:function(t,e,n){this.visibleItems=this._updateItemsInRange(this.orderedItems,this.visibleItems,t),this.width=this.dom.background.offsetWidth,this.dom.background.style.height="0";for(var i=0,r=this.visibleItems.length;i<r;i++)this.visibleItems[i].repositionY(e);return!1}},{key:"show",value:function(){this.dom.background.parentNode||this.itemSet.dom.background.appendChild(this.dom.background)}}]),n}(_T);function ST(t,e){var n=void 0!==lm&&bf(t)||t["@@iterator"];if(!n){if(zh(t)||(n=function(t,e){var n;if(t){if("string"==typeof t)return DT(t,e);var i=mm(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?vf(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?DT(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function DT(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var TT=function(){function t(e,n,i){var r,o=this;Fr(this,t),this.id=null,this.parent=null,this.data=e,this.dom=null,this.conversion=n||{},this.defaultOptions={locales:uS,locale:"en"},this.options=lk.extend({},this.defaultOptions,i),this.options.locales=lk.extend({},uS,this.options.locales);var s=this.defaultOptions.locales[this.defaultOptions.locale];bd(r=Tp(this.options.locales)).call(r,(function(t){o.options.locales[t]=lk.extend({},s,o.options.locales[t])})),this.selected=!1,this.displayed=!1,this.groupShowing=!0,this.selectable=i&&i.selectable||!1,this.dirty=!0,this.top=null,this.right=null,this.left=null,this.width=null,this.height=null,this.setSelectability(e),this.editable=null,this._updateEditStatus()}return fh(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(t){null!=t.group&&this.data.group!=t.group&&null!=this.parent&&this.parent.itemSet._moveToGroup(this,t.group),this.setSelectability(t),this.parent&&(this.parent.stackDirty=!0),null!=t.subgroup&&this.data.subgroup!=t.subgroup&&null!=this.parent&&this.parent.changeSubgroup(this,this.data.subgroup,t.subgroup),this.data=t,this._updateEditStatus(),this.dirty=!0,this.displayed&&this.redraw()}},{key:"setSelectability",value:function(t){t&&(this.selectable=void 0===t.selectable||Boolean(t.selectable))}},{key:"setParent",value:function(t){this.displayed?(this.hide(),this.parent=t,this.parent&&this.show()):this.parent=t}},{key:"isVisible",value:function(t){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 t,e,n=this,i=document.createElement("div");i.className="vis-drag-center",i.dragCenterItem=this,this.hammerDragCenter=new Gx(i),this.hammerDragCenter.on("tap",(function(t){n.parent.itemSet.body.emitter.emit("click",{event:t,item:n.id})})),this.hammerDragCenter.on("doubletap",(function(t){t.stopPropagation(),n.parent.itemSet._onUpdateItem(n),n.parent.itemSet.body.emitter.emit("doubleClick",{event:t,item:n.id})})),this.hammerDragCenter.on("panstart",(function(t){t.stopPropagation(),n.parent.itemSet._onDragStart(t)})),this.hammerDragCenter.on("panmove",Hh(t=n.parent.itemSet._onDrag).call(t,n.parent.itemSet)),this.hammerDragCenter.on("panend",Hh(e=n.parent.itemSet._onDragEnd).call(e,n.parent.itemSet)),this.hammerDragCenter.get("press").set({time:1e4}),this.dom.box?this.dom.dragLeft?this.dom.box.insertBefore(i,this.dom.dragLeft):this.dom.box.appendChild(i):this.dom.point&&this.dom.point.appendChild(i),this.dom.dragCenter=i}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(t){var e=(this.options.editable.overrideItems||null==this.editable)&&this.options.editable.remove||!this.options.editable.overrideItems&&null!=this.editable&&this.editable.remove;if(this.selected&&e&&!this.dom.deleteButton){var n=this,i=document.createElement("div");this.options.rtl?i.className="vis-delete-rtl":i.className="vis-delete";var r=this.options.locales[this.options.locale];r||(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),r=this.options.locales.en),i.title=r.deleteSelected,this.hammerDeleteButton=new Gx(i).on("tap",(function(t){t.stopPropagation(),n.parent.removeFromDataSet(n)})),t.appendChild(i),this.dom.deleteButton=i}else this.selected&&e||!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(t){if(this.options.tooltipOnItemUpdateTime){var e=(this.options.editable.updateTime||!0===this.data.editable)&&!1!==this.data.editable;if(this.selected&&e&&!this.dom.onItemUpdateTimeTooltip){var n=document.createElement("div");n.className="vis-onUpdateTime-tooltip",t.appendChild(n),this.dom.onItemUpdateTimeTooltip=n}else!this.selected&&this.dom.onItemUpdateTimeTooltip&&(this.dom.onItemUpdateTimeTooltip.parentNode&&this.dom.onItemUpdateTimeTooltip.parentNode.removeChild(this.dom.onItemUpdateTimeTooltip),this.dom.onItemUpdateTimeTooltip=null);if(this.dom.onItemUpdateTimeTooltip){this.dom.onItemUpdateTimeTooltip.style.visibility=this.parent.itemSet.touchParams.itemIsDragging?"visible":"hidden",this.dom.onItemUpdateTimeTooltip.style.transform="translateX(-50%)",this.dom.onItemUpdateTimeTooltip.style.left="50%";var i,r,o=this.parent.itemSet.body.domProps.scrollTop;("top"==this.options.orientation.item?this.top:this.parent.height-this.top-this.height)+this.parent.top-50<-o?(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?i=Hh(r=this.options.tooltipOnItemUpdateTime.template).call(r,this)(this.data):(i="start: ".concat(wd(this.data.start).format("MM/DD/YYYY hh:mm")),this.data.end&&(i+="<br> end: ".concat(wd(this.data.end).format("MM/DD/YYYY hh:mm")))),this.dom.onItemUpdateTimeTooltip.innerHTML=lk.xss(i)}}}},{key:"_getItemData",value:function(){return this.parent.itemSet.itemsData.get(this.id)}},{key:"_updateContents",value:function(t){var e,n,i,r,o,s,a=this._getItemData(),l=(this.dom.box||this.dom.point).getElementsByClassName("vis-item-visible-frame")[0];if(this.options.visibleFrameTemplate?(r=Hh(o=this.options.visibleFrameTemplate).call(o,this),i=lk.xss(r(a,l))):i="",l)if(i instanceof Object&&!(i instanceof Element))r(a,l);else if(this._contentToString(this.itemVisibleFrameContent)!==this._contentToString(i)){if(i instanceof Element)l.innerHTML="",l.appendChild(i);else if(null!=i)l.innerHTML=lk.xss(i);else if("background"!=this.data.type||void 0!==this.data.content)throw new Error('Property "content" missing in item '.concat(this.id));this.itemVisibleFrameContent=i}if((e=this.options.template?(n=Hh(s=this.options.template).call(s,this))(a,t,this.data):this.data.content)instanceof Object&&!(e instanceof Element))n(a,t);else if(this._contentToString(this.content)!==this._contentToString(e)){if(e instanceof Element)t.innerHTML="",t.appendChild(e);else if(null!=e)t.innerHTML=lk.xss(e);else if("background"!=this.data.type||void 0!==this.data.content)throw new Error('Property "content" missing in item '.concat(this.id));this.content=e}}},{key:"_updateDataAttributes",value:function(t){if(this.options.dataAttributes&&this.options.dataAttributes.length>0){var e=[];if(zh(this.options.dataAttributes))e=this.options.dataAttributes;else{if("all"!=this.options.dataAttributes)return;e=Tp(this.data)}var n,i=ST(e);try{for(i.s();!(n=i.n()).done;){var r=n.value,o=this.data[r];null!=o?t.setAttribute("data-".concat(r),o):t.removeAttribute("data-".concat(r))}}catch(t){i.e(t)}finally{i.f()}}}},{key:"_updateStyle",value:function(t){this.style&&(lk.removeCssText(t,this.style),this.style=null),this.data.style&&(lk.addCssText(t,this.data.style),this.style=this.data.style)}},{key:"_contentToString",value:function(t){return"string"==typeof t?t:t&&"outerHTML"in t?t.outerHTML:t}},{key:"_updateEditStatus",value:function(){this.options&&("boolean"==typeof this.options.editable?this.editable={updateTime:this.options.editable,updateGroup:this.options.editable,remove:this.options.editable}:"object"===ch(this.options.editable)&&(this.editable={},lk.selectiveExtend(["updateTime","updateGroup","remove"],this.editable,this.options.editable))),this.options&&this.options.editable&&!0===this.options.editable.overrideItems||this.data&&("boolean"==typeof this.data.editable?this.editable={updateTime:this.data.editable,updateGroup:this.data.editable,remove:this.data.editable}:"object"===ch(this.data.editable)&&(this.editable={},lk.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 t;return this.options.tooltip&&this.options.tooltip.template?Hh(t=this.options.tooltip.template).call(t,this)(this._getItemData(),this.data):this.data.title}}]),t}();function CT(t){var e=function(){if("undefined"==typeof Reflect||!Rr)return!1;if(Rr.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Rr(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=Lh(t);if(e){var r=Lh(this).constructor;n=Rr(i,arguments,r)}else n=i.apply(this,arguments);return Ah(this,n)}}TT.prototype.stack=!0;var OT=function(t){Ph(n,t);var e=CT(n);function n(t,i,r){var o;if(Fr(this,n),(o=e.call(this,t,i,r)).props={dot:{width:0,height:0},line:{width:0,height:0}},t&&null==t.start)throw new Error('Property "start" missing in item '.concat(t));return o}return fh(n,[{key:"isVisible",value:function(t){if(this.cluster)return!1;var e=this.data.align||this.options.align,n=this.width*t.getMillisecondsPerPixel();return"right"==e?this.data.start.getTime()>t.start&&this.data.start.getTime()-n<t.end:"left"==e?this.data.start.getTime()+n>t.start&&this.data.start.getTime()<t.end:this.data.start.getTime()+n/2>t.start&&this.data.start.getTime()-n/2<t.end}},{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 t=this.parent.dom.foreground;if(!t)throw new Error("Cannot redraw item: parent has no foreground container element");t.appendChild(this.dom.box)}if(!this.dom.line.parentNode){var e=this.parent.dom.background;if(!e)throw new Error("Cannot redraw item: parent has no background container element");e.appendChild(this.dom.line)}if(!this.dom.dot.parentNode){var n=this.parent.dom.axis;if(!e)throw new Error("Cannot redraw item: parent has no axis container element");n.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 t=this.editable.updateTime||this.editable.updateGroup,e=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+(t?" vis-editable":" vis-readonly");this.dom.box.className="vis-item vis-box".concat(e),this.dom.line.className="vis-item vis-line".concat(e),this.dom.dot.className="vis-item vis-dot".concat(e)}}},{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(t){this.options.rtl?this.dom.box.style.right="0px":this.dom.box.style.left="0px",this.props.dot.height=t.dot.height,this.props.dot.width=t.dot.width,this.props.line.width=t.line.width,this.width=t.box.width,this.height=t.box.height,this.options.rtl?this.dom.box.style.right=t.previous.right:this.dom.box.style.left=t.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(t){var e,n,i,r,o,s,a=this,l=[Hh(e=this._createDomElement).call(e,this),Hh(n=this._appendDomElement).call(n,this),Hh(i=this._updateDirtyDomComponents).call(i,this),function(){a.dirty&&(o=a._getDomComponentsSizes())},function(){var t;a.dirty&&Hh(t=a._updateDomComponentsSizes).call(t,a)(o)},Hh(r=this._repaintDomAdditionals).call(r,this)];return t?l:(bd(l).call(l,(function(t){s=t()})),s)}},{key:"show",value:function(t){if(!this.displayed)return this.redraw(t)}},{key:"hide",value:function(){if(this.displayed){var t=this.dom;t.box.remove?t.box.remove():t.box.parentNode&&t.box.parentNode.removeChild(t.box),t.line.remove?t.line.remove():t.line.parentNode&&t.line.parentNode.removeChild(t.line),t.dot.remove?t.dot.remove():t.dot.parentNode&&t.dot.parentNode.removeChild(t.dot),this.displayed=!1}}},{key:"repositionXY",value:function(){var t=this.options.rtl,e=function(t,e,n){var i;if(void 0!==e||void 0!==n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3]?-1*e:e;t.style.transform=void 0!==n?void 0!==e?fm(i="translate(".concat(r,"px, ")).call(i,n,"px)"):"translateY(".concat(n,"px)"):"translateX(".concat(r,"px)")}};e(this.dom.box,this.boxX,this.boxY,t),e(this.dom.dot,this.dotX,this.dotY,t),e(this.dom.line,this.lineX,this.lineY,t)}},{key:"repositionX",value:function(){var t=this.conversion.toScreen(this.data.start),e=void 0===this.data.align?this.options.align:this.data.align,n=this.props.line.width,i=this.props.dot.width;"right"==e?(this.boxX=t-this.width,this.lineX=t-n,this.dotX=t-n/2-i/2):"left"==e?(this.boxX=t,this.lineX=t,this.dotX=t+n/2-i/2):(this.boxX=t-this.width/2,this.lineX=this.options.rtl?t-n:t-n/2,this.dotX=t-i/2),this.options.rtl?this.right=this.boxX:this.left=this.boxX,this.repositionXY()}},{key:"repositionY",value:function(){var t=this.options.orientation.item,e=this.dom.line.style;if("top"==t){var n=this.parent.top+this.top+1;this.boxY=this.top||0,e.height="".concat(n,"px"),e.bottom="",e.top="0"}else{var i=this.parent.itemSet.props.height-this.parent.top-this.parent.height+this.top;this.boxY=this.parent.height-this.top-(this.height||0),e.height="".concat(i,"px"),e.top="",e.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}(TT);function ET(t){var e=function(){if("undefined"==typeof Reflect||!Rr)return!1;if(Rr.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Rr(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=Lh(t);if(e){var r=Lh(this).constructor;n=Rr(i,arguments,r)}else n=i.apply(this,arguments);return Ah(this,n)}}var MT=function(t){Ph(n,t);var e=ET(n);function n(t,i,r){var o;if(Fr(this,n),(o=e.call(this,t,i,r)).props={dot:{top:0,width:0,height:0},content:{height:0,marginLeft:0,marginRight:0}},t&&null==t.start)throw new Error('Property "start" missing in item '.concat(t));return o}return fh(n,[{key:"isVisible",value:function(t){if(this.cluster)return!1;var e=this.width*t.getMillisecondsPerPixel();return this.data.start.getTime()+e>t.start&&this.data.start<t.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 t=this.parent.dom.foreground;if(!t)throw new Error("Cannot redraw item: parent has no foreground container element");t.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 t=this.editable.updateTime||this.editable.updateGroup,e=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+(t?" vis-editable":" vis-readonly");this.dom.point.className="vis-item vis-point".concat(e),this.dom.dot.className="vis-item vis-dot".concat(e)}}},{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(t){this.props.dot.width=t.dot.width,this.props.dot.height=t.dot.height,this.props.content.height=t.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=t.point.width,this.height=t.point.height,this.dom.dot.style.top="".concat((this.height-this.props.dot.height)/2,"px");var e=this.props.dot.width,n=this.options.rtl?e/2:e/2*-1;this.dom.dot.style.transform="translateX(".concat(n,"px"),this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.point),this._repaintDragCenter(),this._repaintDeleteButton(this.dom.point)}},{key:"redraw",value:function(t){var e,n,i,r,o,s,a=this,l=[Hh(e=this._createDomElement).call(e,this),Hh(n=this._appendDomElement).call(n,this),Hh(i=this._updateDirtyDomComponents).call(i,this),function(){a.dirty&&(o=a._getDomComponentsSizes())},function(){var t;a.dirty&&Hh(t=a._updateDomComponentsSizes).call(t,a)(o)},Hh(r=this._repaintDomAdditionals).call(r,this)];return t?l:(bd(l).call(l,(function(t){s=t()})),s)}},{key:"repositionXY",value:function(){var t=this.options.rtl,e=function(t,e,n){var i;if(void 0!==e||void 0!==n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3]?-1*e:e;t.style.transform=void 0!==n?void 0!==e?fm(i="translate(".concat(r,"px, ")).call(i,n,"px)"):"translateY(".concat(n,"px)"):"translateX(".concat(r,"px)")}};e(this.dom.point,this.pointX,this.pointY,t)}},{key:"show",value:function(t){if(!this.displayed)return this.redraw(t)}},{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 t=this.conversion.toScreen(this.data.start);this.pointX=t,this.options.rtl?this.right=t-this.props.dot.width:this.left=t-this.props.dot.width,this.repositionXY()}},{key:"repositionY",value:function(){var t=this.options.orientation.item;this.pointY="top"==t?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}(TT);function PT(t){var e=function(){if("undefined"==typeof Reflect||!Rr)return!1;if(Rr.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Rr(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=Lh(t);if(e){var r=Lh(this).constructor;n=Rr(i,arguments,r)}else n=i.apply(this,arguments);return Ah(this,n)}}var AT=function(t){Ph(n,t);var e=PT(n);function n(t,i,r){var o;if(Fr(this,n),(o=e.call(this,t,i,r)).props={content:{width:0}},o.overflow=!1,t){if(null==t.start)throw new Error('Property "start" missing in item '.concat(t.id));if(null==t.end)throw new Error('Property "end" missing in item '.concat(t.id))}return o}return fh(n,[{key:"isVisible",value:function(t){return!this.cluster&&this.data.start<t.end&&this.data.end>t.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 t=this.parent.dom.foreground;if(!t)throw new Error("Cannot redraw item: parent has no foreground container element");t.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 t=this.editable.updateTime||this.editable.updateGroup,e=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+(t?" vis-editable":" vis-readonly");this.dom.box.className=this.baseClassName+e,this.dom.content.style.maxWidth="none"}}},{key:"_getDomComponentsSizes",value:function(){return this.overflow="hidden"!==window.getComputedStyle(this.dom.frame).overflow,this.whiteSpace="nowrap"!==window.getComputedStyle(this.dom.content).whiteSpace,{content:{width:this.dom.content.offsetWidth},box:{height:this.dom.box.offsetHeight}}}},{key:"_updateDomComponentsSizes",value:function(t){this.props.content.width=t.content.width,this.height=t.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(t){var e,n,i,r,o,s,a=this,l=[Hh(e=this._createDomElement).call(e,this),Hh(n=this._appendDomElement).call(n,this),Hh(i=this._updateDirtyDomComponents).call(i,this),function(){var t;a.dirty&&(o=Hh(t=a._getDomComponentsSizes).call(t,a)())},function(){var t;a.dirty&&Hh(t=a._updateDomComponentsSizes).call(t,a)(o)},Hh(r=this._repaintDomAdditionals).call(r,this)];return t?l:(bd(l).call(l,(function(t){s=t()})),s)}},{key:"show",value:function(t){if(!this.displayed)return this.redraw(t)}},{key:"hide",value:function(){if(this.displayed){var t=this.dom.box;t.parentNode&&t.parentNode.removeChild(t),this.displayed=!1}}},{key:"repositionX",value:function(t){var e,n,i=this.parent.width,r=this.conversion.toScreen(this.data.start),o=this.conversion.toScreen(this.data.end),s=void 0===this.data.align?this.options.align:this.data.align;!1===this.data.limitSize||void 0!==t&&!0!==t||(r<-i&&(r=-i),o>2*i&&(o=2*i));var a=Math.max(Math.round(1e3*(o-r))/1e3,1);switch(this.overflow?(this.options.rtl?this.right=r:this.left=r,this.width=a+this.props.content.width,n=this.props.content.width):(this.options.rtl?this.right=r:this.left=r,this.width=a,n=Math.min(o-r,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(a,"px"),this.whiteSpace&&(this.height=this.dom.box.offsetHeight),s){case"left":this.dom.content.style.transform="translateX(0)";break;case"right":if(this.options.rtl){var l=-1*Math.max(a-n,0);this.dom.content.style.transform="translateX(".concat(l,"px)")}else this.dom.content.style.transform="translateX(".concat(Math.max(a-n,0),"px)");break;case"center":if(this.options.rtl){var u=-1*Math.max((a-n)/2,0);this.dom.content.style.transform="translateX(".concat(u,"px)")}else this.dom.content.style.transform="translateX(".concat(Math.max((a-n)/2,0),"px)");break;default:if(e=this.overflow?o>0?Math.max(-r,0):-n:r<0?-r:0,this.options.rtl){var c=-1*e;this.dom.content.style.transform="translateX(".concat(c,"px)")}else this.dom.content.style.transform="translateX(".concat(e,"px)")}}},{key:"repositionY",value:function(){var t=this.options.orientation.item;this.dom.box.style.top="".concat("top"==t?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 t=document.createElement("div");t.className="vis-drag-left",t.dragLeftItem=this,this.dom.box.appendChild(t),this.dom.dragLeft=t}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 t=document.createElement("div");t.className="vis-drag-right",t.dragRightItem=this,this.dom.box.appendChild(t),this.dom.dragRight=t}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}(TT);function IT(t){var e=function(){if("undefined"==typeof Reflect||!Rr)return!1;if(Rr.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Rr(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=Lh(t);if(e){var r=Lh(this).constructor;n=Rr(i,arguments,r)}else n=i.apply(this,arguments);return Ah(this,n)}}AT.prototype.baseClassName="vis-item vis-range";var NT=function(t){Ph(n,t);var e=IT(n);function n(t,i,r){var o;if(Fr(this,n),(o=e.call(this,t,i,r)).props={content:{width:0}},o.overflow=!1,t){if(null==t.start)throw new Error('Property "start" missing in item '.concat(t.id));if(null==t.end)throw new Error('Property "end" missing in item '.concat(t.id))}return o}return fh(n,[{key:"isVisible",value:function(t){return this.data.start<t.end&&this.data.end>t.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 t=this.parent.dom.background;if(!t)throw new Error("Cannot redraw item: parent has no background container element");t.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 t=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"");this.dom.box.className=this.baseClassName+t}}},{key:"_getDomComponentsSizes",value:function(){return this.overflow="hidden"!==window.getComputedStyle(this.dom.content).overflow,{content:{width:this.dom.content.offsetWidth}}}},{key:"_updateDomComponentsSizes",value:function(t){this.props.content.width=t.content.width,this.height=0,this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){}},{key:"redraw",value:function(t){var e,n,i,r,o,s,a=this,l=[Hh(e=this._createDomElement).call(e,this),Hh(n=this._appendDomElement).call(n,this),Hh(i=this._updateDirtyDomComponents).call(i,this),function(){var t;a.dirty&&(o=Hh(t=a._getDomComponentsSizes).call(t,a)())},function(){var t;a.dirty&&Hh(t=a._updateDomComponentsSizes).call(t,a)(o)},Hh(r=this._repaintDomAdditionals).call(r,this)];return t?l:(bd(l).call(l,(function(t){s=t()})),s)}},{key:"repositionY",value:function(t){var e,n=this.options.orientation.item;if(void 0!==this.data.subgroup){var i=this.data.subgroup;this.dom.box.style.height="".concat(this.parent.subgroups[i].height,"px"),this.dom.box.style.top="".concat("top"==n?this.parent.top+this.parent.subgroups[i].top:this.parent.top+this.parent.height-this.parent.subgroups[i].top-this.parent.subgroups[i].height,"px"),this.dom.box.style.bottom=""}else this.parent instanceof xT?(e=Math.max(this.parent.height,this.parent.itemSet.body.domProps.center.height,this.parent.itemSet.body.domProps.centerContainer.height),this.dom.box.style.bottom="bottom"==n?"0":"",this.dom.box.style.top="top"==n?"0":""):(e=this.parent.height,this.dom.box.style.top="".concat(this.parent.top,"px"),this.dom.box.style.bottom="");this.dom.box.style.height="".concat(e,"px")}}]),n}(TT);NT.prototype.baseClassName="vis-item vis-background",NT.prototype.stack=!1,NT.prototype.show=AT.prototype.show,NT.prototype.hide=AT.prototype.hide,NT.prototype.repositionX=AT.prototype.repositionX;var jT=function(){function t(e,n){Fr(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 fh(t,[{key:"setPosition",value:function(t,e){this.x=gg(t),this.y=gg(e)}},{key:"setText",value:function(t){t instanceof Element?(this.frame.innerHTML="",this.frame.appendChild(t)):this.frame.innerHTML=lk.xss(t)}},{key:"show",value:function(t){if(void 0===t&&(t=!0),!0===t){var e=this.frame.clientHeight,n=this.frame.clientWidth,i=this.frame.parentNode.clientHeight,r=this.frame.parentNode.clientWidth,o=0,s=0;if("flip"==this.overflowMethod||"none"==this.overflowMethod){var a=!1,l=!0;"flip"==this.overflowMethod&&(this.y-e<this.padding&&(l=!1),this.x+n>r-this.padding&&(a=!0)),o=a?this.x-n:this.x,s=l?this.y-e:this.y}else(s=this.y-e)+e+this.padding>i&&(s=i-e-this.padding),s<this.padding&&(s=this.padding),(o=this.x)+n+this.padding>r&&(o=r-n-this.padding),o<this.padding&&(o=this.padding);this.frame.style.left=o+"px",this.frame.style.top=s+"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}(),RT=Gs.every;In({target:"Array",proto:!0,forced:!ld("every")},{every:function(t){return RT(this,t,arguments.length>1?arguments[1]:void 0)}});var FT=kh("Array").every,LT=ht,YT=FT,zT=Array.prototype,HT=function(t){var e=t.every;return t===zT||LT(zT,t)&&e===zT.every?YT:e},GT=s(HT);function BT(t,e){var n=void 0!==lm&&bf(t)||t["@@iterator"];if(!n){if(zh(t)||(n=function(t,e){var n;if(t){if("string"==typeof t)return WT(t,e);var i=mm(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?vf(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?WT(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function WT(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function VT(t){var e=function(){if("undefined"==typeof Reflect||!Rr)return!1;if(Rr.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Rr(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=Lh(t);if(e){var r=Lh(this).constructor;n=Rr(i,arguments,r)}else n=i.apply(this,arguments);return Ah(this,n)}}var UT=function(t){Ph(n,t);var e=VT(n);function n(t,i,r){var o;Fr(this,n);var s=pv({},{fitOnDoubleClick:!0},r,{editable:!1});if((o=e.call(this,t,i,s)).props={content:{width:0,height:0}},!t||null==t.uiItems)throw new Error('Property "uiItems" missing in item '+t.id);return o.id=Q_(),o.group=t.group,o._setupRange(),o.emitter=o.data.eventEmitter,o.range=o.data.range,o.attached=!1,o.isCluster=!0,o.data.isCluster=!0,o}return fh(n,[{key:"hasItems",value:function(){return this.data.uiItems&&this.data.uiItems.length&&this.attached}},{key:"setUiItems",value:function(t){this.detach(),this.data.uiItems=t,this._setupRange(),this.attach()}},{key:"isVisible",value:function(t){var e=this.data.end?this.data.end-this.data.start:0,n=this.width*t.getMillisecondsPerPixel(),i=Math.max(this.data.start.getTime()+e,this.data.start.getTime()+n);return this.data.start<t.end&&i>t.start&&this.hasItems()}},{key:"getData",value:function(){return{isCluster:!0,id:this.id,items:this.data.items||[],data:this.data}}},{key:"redraw",value:function(t){var e,n,i,r,o,s,a,l,u=[Hh(e=this._createDomElement).call(e,this),Hh(n=this._appendDomElement).call(n,this),Hh(i=this._updateDirtyDomComponents).call(i,this),Hh(r=function(){this.dirty&&(a=this._getDomComponentsSizes())}).call(r,this),Hh(o=function(){var t;this.dirty&&Hh(t=this._updateDomComponentsSizes).call(t,this)(a)}).call(o,this),Hh(s=this._repaintDomAdditionals).call(s,this)];return t?u:(bd(u).call(u,(function(t){l=t()})),l)}},{key:"show",value:function(){this.displayed||this.redraw()}},{key:"hide",value:function(){if(this.displayed){var t=this.dom;t.box.parentNode&&t.box.parentNode.removeChild(t.box),this.options.showStipes&&(t.line.parentNode&&t.line.parentNode.removeChild(t.line),t.dot.parentNode&&t.dot.parentNode.removeChild(t.dot)),this.displayed=!1}}},{key:"repositionX",value:function(){var t=this.conversion.toScreen(this.data.start),e=this.data.end?this.conversion.toScreen(this.data.end):0;if(e)this.repositionXWithRanges(t,e);else{var n=void 0===this.data.align?this.options.align:this.data.align;this.repositionXWithoutRanges(t,n)}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(t,e))}},{key:"repositionStype",value:function(t,e){this.dom.line.style.display="block",this.dom.dot.style.display="block";var n=this.dom.line.offsetWidth,i=this.dom.dot.offsetWidth;if(e){var r=n+t+(e-t)/2,o=r-i/2,s=this.options.rtl?-1*r:r,a=this.options.rtl?-1*o:o;this.dom.line.style.transform="translateX(".concat(s,"px)"),this.dom.dot.style.transform="translateX(".concat(a,"px)")}else{var l=this.options.rtl?-1*t:t,u=this.options.rtl?-1*(t-i/2):t-i/2;this.dom.line.style.transform="translateX(".concat(l,"px)"),this.dom.dot.style.transform="translateX(".concat(u,"px)")}}},{key:"repositionXWithoutRanges",value:function(t,e){"right"==e?this.options.rtl?(this.right=t-this.width,this.dom.box.style.right=this.right+"px"):(this.left=t-this.width,this.dom.box.style.left=this.left+"px"):"left"==e?this.options.rtl?(this.right=t,this.dom.box.style.right=this.right+"px"):(this.left=t,this.dom.box.style.left=this.left+"px"):this.options.rtl?(this.right=t-this.width/2,this.dom.box.style.right=this.right+"px"):(this.left=t-this.width/2,this.dom.box.style.left=this.left+"px")}},{key:"repositionXWithRanges",value:function(t,e){var n=Math.round(Math.max(e-t+.5,1));this.options.rtl?this.right=t:this.left=t,this.width=Math.max(n,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=n+"px"}},{key:"repositionY",value:function(){var t=this.options.orientation.item;if(this.dom.box.style.top="top"==t?(this.top||0)+"px":(this.parent.height-this.top-this.height||0)+"px",this.options.showStipes){if("top"==t)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 e=this.parent.itemSet.props.height,n=e-this.parent.top-this.parent.height+this.top;this.dom.line.style.top=e-n+"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 t,e,n=BT(this.data.uiItems);try{for(n.s();!(e=n.n()).done;)e.value.cluster=this}catch(t){n.e(t)}finally{n.f()}this.data.items=lp(t=this.data.uiItems).call(t,(function(t){return t.data})),this.attached=!0,this.dirty=!0}},{key:"detach",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.hasItems()){var e,n=BT(this.data.uiItems);try{for(n.s();!(e=n.n()).done;)delete e.value.cluster}catch(t){n.e(t)}finally{n.f()}this.attached=!1,t&&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 t,e,n,i=lp(t=this.data.uiItems).call(t,(function(t){return{start:t.data.start.valueOf(),end:t.data.end?t.data.end.valueOf():t.data.start.valueOf()}}));this.data.min=Math.min.apply(Math,am(lp(i).call(i,(function(t){return Math.min(t.start,t.end||t.start)})))),this.data.max=Math.max.apply(Math,am(lp(i).call(i,(function(t){return Math.max(t.start,t.end||t.start)}))));var r=lp(e=this.data.uiItems).call(e,(function(t){return t.center})),o=xp(r).call(r,(function(t,e){return t+e}),0)/this.data.uiItems.length;Yx(n=this.data.uiItems).call(n,(function(t){return t.data.end}))?(this.data.start=new Date(this.data.min),this.data.end=new Date(this.data.max)):(this.data.start=new Date(o),this.data.end=null)}},{key:"_getUiItems",value:function(){var t,e=this;return this.data.uiItems&&this.data.uiItems.length?Od(t=this.data.uiItems).call(t,(function(t){return t.cluster===e})):[]}},{key:"_createDomElement",value:function(){var t;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.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=Hh(t=n.prototype._onDoubleClick).call(t,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 t=this.parent.dom.foreground;if(!t)throw new Error("Cannot redraw item: parent has no foreground container element");t.appendChild(this.dom.box)}var e=this.parent.dom.background;if(this.options.showStipes){if(!this.dom.line.parentNode){if(!e)throw new Error("Cannot redraw item: parent has no background container element");e.appendChild(this.dom.line)}if(!this.dom.dot.parentNode){var n=this.parent.dom.axis;if(!e)throw new Error("Cannot redraw item: parent has no axis container element");n.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 t=this.baseClassName+" "+(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+" vis-readonly";this.dom.box.className="vis-item "+t,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 t={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&&(t.dot={height:this.dom.dot.offsetHeight,width:this.dom.dot.offsetWidth},t.line={width:this.dom.line.offsetWidth}),t}},{key:"_updateDomComponentsSizes",value:function(t){this.options.rtl?this.dom.box.style.right="0px":this.dom.box.style.left="0px",this.data.end?this.minWidth=t.box.width:this.width=t.box.width,this.height=t.box.height,this.options.rtl?this.dom.box.style.right=t.previous.right:this.dom.box.style.left=t.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 t=.05*(this.data.max-this.data.min)/2;return{fitStart:this.data.min-t,fitEnd:this.data.max+t}}},{key:"_fit",value:function(){if(this.emitter){var t=this._getFitRange(),e=t.fitStart,n=t.fitEnd,i={start:new Date(e),end:new Date(n),animation:!0};this.emitter.emit("fit",i)}}},{key:"_getItemData",value:function(){return this.data}}]),n}(TT);function qT(t,e){var n=void 0!==lm&&bf(t)||t["@@iterator"];if(!n){if(zh(t)||(n=function(t,e){var n;if(t){if("string"==typeof t)return XT(t,e);var i=mm(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?vf(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?XT(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function XT(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}UT.prototype.baseClassName="vis-item vis-range vis-cluster";var $T="__ungrouped__",KT=function(){function t(e){Fr(this,t),this.itemSet=e,this.groups={},this.cache={},this.cache[-1]=[]}return fh(t,[{key:"createClusterItem",value:function(t,e,n){return new UT(t,e,n)}},{key:"setItems",value:function(t,e){this.items=t||[],this.dataChanged=!0,this.applyOnChangedLevel=!1,e&&e.applyOnChangedLevel&&(this.applyOnChangedLevel=e.applyOnChangedLevel)}},{key:"updateData",value:function(){this.dataChanged=!0,this.applyOnChangedLevel=!1}},{key:"getClusters",value:function(t,e,n){var i="boolean"==typeof n?{}:n,r=i.maxItems,o=i.clusterCriteria;o||(o=function(){return!0}),r=r||1;var s=-1,a=0;if(e>0){if(e>=1)return[];s=Math.abs(Math.round(Math.log(100/e)/Math.log(2))),a=Math.abs(Math.pow(2,s))}if(this.dataChanged){var l=s!=this.cacheLevel;(!this.applyOnChangedLevel||l)&&(this._dropLevelsCache(),this._filterData())}this.cacheLevel=s;var u=this.cache[s];if(!u){for(var c in u=[],this.groups)if(this.groups.hasOwnProperty(c))for(var h=this.groups[c],d=h.length,p=0;p<d;){for(var f=h[p],m=1,v=p-1;v>=0&&f.center-h[v].center<a/2;)!h[v].cluster&&o(f.data,h[v].data)&&m++,v--;for(var g=p+1;g<h.length&&h[g].center-f.center<a/2;)o(f.data,h[g].data)&&m++,g++;for(var y=u.length-1;y>=0&&f.center-u[y].center<a;)f.group==u[y].group&&o(f.data,u[y].data)&&m++,y--;if(m>r){for(var b=m-r+1,w=[],_=p;w.length<b&&_<h.length;)o(h[p].data,h[_].data)&&w.push(h[_]),_++;var k=this.itemSet.getGroupId(f.data),x=this.itemSet.groups[k]||this.itemSet.groups[$T],S=this._getClusterForItems(w,x,t,n);u.push(S),p+=b}else delete f.cluster,p+=1}this.cache[s]=u}return u}},{key:"_filterData",value:function(){var t={};this.groups=t;for(var e=0,n=$v(this.items);e<n.length;e++){var i=n[e],r=i.parent?i.parent.groupId:"",o=t[r];o||(o=[],t[r]=o),o.push(i),i.data.start&&(i.data.end?i.center=(i.data.start.valueOf()+i.data.end.valueOf())/2:i.center=i.data.start.valueOf())}for(var s in t){var a;t.hasOwnProperty(s)&&fx(a=t[s]).call(a,(function(t,e){return t.center-e.center}))}this.dataChanged=!1}},{key:"_getClusterForItems",value:function(t,e,n,i){var r,o,s=lp(r=n||[]).call(r,(function(t){var e;return{cluster:t,itemsIds:new KD(lp(e=t.data.uiItems).call(e,(function(t){return t.id})))}}));if(s.length){var a,l=qT(s);try{var u=function(){var e=a.value;if(e.itemsIds.size===t.length&>(t).call(t,(function(t){return e.itemsIds.has(t.id)})))return o=e.cluster,1};for(l.s();!(a=l.n()).done&&!u(););}catch(t){l.e(t)}finally{l.f()}}if(o)return o.setUiItems(t),o.group!==e&&(o.group&&o.group.remove(o),e&&(e.add(o),o.group=e)),o;var c=i.titleTemplate||"",h={toScreen:this.itemSet.body.util.toScreen,toTime:this.itemSet.body.util.toTime},d=c.replace(/{count}/,t.length),p='<div title="'+d+'">'+t.length+"</div>",f=pv({},i,this.itemSet.options),m={content:p,title:d,group:e,uiItems:t,eventEmitter:this.itemSet.body.emitter,range:this.itemSet.body.range};return o=this.createClusterItem(m,h,f),e&&(e.add(o),o.group=e),o.attach(),o}},{key:"_dropLevelsCache",value:function(){this.cache={},this.cacheLevel=-1,this.cache[this.cacheLevel]=[]}}]),t}();function QT(t,e){var n=void 0!==lm&&bf(t)||t["@@iterator"];if(!n){if(zh(t)||(n=function(t,e){var n;if(t){if("string"==typeof t)return ZT(t,e);var i=mm(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?vf(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?ZT(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function ZT(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function JT(t){var e=function(){if("undefined"==typeof Reflect||!Rr)return!1;if(Rr.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Rr(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=Lh(t);if(e){var r=Lh(this).constructor;n=Rr(i,arguments,r)}else n=i.apply(this,arguments);return Ah(this,n)}}var tC="__ungrouped__",eC="__background__",nC=function(t){Ph(n,t);var e=JT(n);function n(t,i){var r;Fr(this,n),(r=e.call(this)).body=t,r.defaultOptions={type:null,orientation:{item:"bottom"},align:"auto",stack:!0,stackSubgroups:!0,groupOrderSwap:function(t,e,n){var i=e.order;e.order=t.order,t.order=i},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:Wx.snap,onDropObjectOnItem:function(t,e,n){n(e)},onAdd:function(t,e){e(t)},onUpdate:function(t,e){e(t)},onMove:function(t,e){e(t)},onRemove:function(t,e){e(t)},onMoving:function(t,e){e(t)},onAddGroup:function(t,e){e(t)},onMoveGroup:function(t,e){e(t)},onRemoveGroup:function(t,e){e(t)},margin:{item:{horizontal:10,vertical:10},axis:20},showTooltips:!0,tooltip:{followMouse:!1,overflowMethod:"flip",delay:500},tooltipOnItemUpdateTime:!1},r.options=lk.extend({},r.defaultOptions),r.options.rtl=i.rtl,r.options.onTimeout=i.onTimeout,r.conversion={toScreen:t.util.toScreen,toTime:t.util.toTime},r.dom={},r.props={},r.hammer=null;var o=mh(r);return r.itemsData=null,r.groupsData=null,r.itemsSettingTime=null,r.initialItemSetDrawn=!1,r.userContinueNotBail=null,r.sequentialSelection=!1,r.itemListeners={add:function(t,e,n){o._onAdd(e.items),o.options.cluster&&o.clusterGenerator.setItems(o.items,{applyOnChangedLevel:!1}),o.redraw()},update:function(t,e,n){o._onUpdate(e.items),o.options.cluster&&o.clusterGenerator.setItems(o.items,{applyOnChangedLevel:!1}),o.redraw()},remove:function(t,e,n){o._onRemove(e.items),o.options.cluster&&o.clusterGenerator.setItems(o.items,{applyOnChangedLevel:!1}),o.redraw()}},r.groupListeners={add:function(t,e,n){if(o._onAddGroups(e.items),o.groupsData&&o.groupsData.length>0){var i,r=o.groupsData.getDataSet();bd(i=r.get()).call(i,(function(t){if(t.nestedGroups){var e;0!=t.showNested&&(t.showNested=!0);var i=[];bd(e=t.nestedGroups).call(e,(function(e){var n=r.get(e);n&&(n.nestedInGroup=t.id,0==t.showNested&&(n.visible=!1),i=fm(i).call(i,n))})),r.update(i,n)}}))}},update:function(t,e,n){o._onUpdateGroups(e.items)},remove:function(t,e,n){o._onRemoveGroups(e.items)}},r.items={},r.groups={},r.groupIds=[],r.selection=[],r.popup=null,r.popupTimer=null,r.touchParams={},r.groupTouchParams={group:null,isDragging:!1},r._create(),r.setOptions(i),r.clusters=[],r}return fh(n,[{key:"_create",value:function(){var t,e,n,i,r,o,s,a,l,u,c,h,d,p,f,m=this,v=document.createElement("div");v.className="vis-itemset",v["vis-itemset"]=this,this.dom.frame=v;var g=document.createElement("div");g.className="vis-background",v.appendChild(g),this.dom.background=g;var y=document.createElement("div");y.className="vis-foreground",v.appendChild(y),this.dom.foreground=y;var b=document.createElement("div");b.className="vis-axis",this.dom.axis=b;var w=document.createElement("div");w.className="vis-labelset",this.dom.labelSet=w,this._updateUngrouped();var _=new xT(eC,null,this);_.show(),this.groups[eC]=_,this.hammer=new Gx(this.body.dom.centerContainer),this.hammer.on("hammer.input",(function(t){t.isFirst&&m._onTouch(t)})),this.hammer.on("panstart",Hh(t=this._onDragStart).call(t,this)),this.hammer.on("panmove",Hh(e=this._onDrag).call(e,this)),this.hammer.on("panend",Hh(n=this._onDragEnd).call(n,this)),this.hammer.get("pan").set({threshold:5,direction:Gx.ALL}),this.hammer.get("press").set({time:1e4}),this.hammer.on("tap",Hh(i=this._onSelectItem).call(i,this)),this.hammer.on("press",Hh(r=this._onMultiSelectItem).call(r,this)),this.hammer.get("press").set({time:1e4}),this.hammer.on("doubletap",Hh(o=this._onAddItem).call(o,this)),this.options.rtl?this.groupHammer=new Gx(this.body.dom.rightContainer):this.groupHammer=new Gx(this.body.dom.leftContainer),this.groupHammer.on("tap",Hh(s=this._onGroupClick).call(s,this)),this.groupHammer.on("panstart",Hh(a=this._onGroupDragStart).call(a,this)),this.groupHammer.on("panmove",Hh(l=this._onGroupDrag).call(l,this)),this.groupHammer.on("panend",Hh(u=this._onGroupDragEnd).call(u,this)),this.groupHammer.get("pan").set({threshold:5,direction:Gx.DIRECTION_VERTICAL}),this.body.dom.centerContainer.addEventListener("mouseover",Hh(c=this._onMouseOver).call(c,this)),this.body.dom.centerContainer.addEventListener("mouseout",Hh(h=this._onMouseOut).call(h,this)),this.body.dom.centerContainer.addEventListener("mousemove",Hh(d=this._onMouseMove).call(d,this)),this.body.dom.centerContainer.addEventListener("contextmenu",Hh(p=this._onDragEnd).call(p,this)),this.body.dom.centerContainer.addEventListener("mousewheel",Hh(f=this._onMouseWheel).call(f,this)),this.show()}},{key:"setOptions",value:function(t){var e,n,i=this;t&&(lk.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,t),"itemsAlwaysDraggable"in t&&("boolean"==typeof t.itemsAlwaysDraggable?(this.options.itemsAlwaysDraggable.item=t.itemsAlwaysDraggable,this.options.itemsAlwaysDraggable.range=!1):"object"===ch(t.itemsAlwaysDraggable)&&(lk.selectiveExtend(["item","range"],this.options.itemsAlwaysDraggable,t.itemsAlwaysDraggable),this.options.itemsAlwaysDraggable.item||(this.options.itemsAlwaysDraggable.range=!1))),"sequentialSelection"in t&&"boolean"==typeof t.sequentialSelection&&(this.options.sequentialSelection=t.sequentialSelection),"orientation"in t&&("string"==typeof t.orientation?this.options.orientation.item="top"===t.orientation?"top":"bottom":"object"===ch(t.orientation)&&"item"in t.orientation&&(this.options.orientation.item=t.orientation.item)),"margin"in t&&("number"==typeof t.margin?(this.options.margin.axis=t.margin,this.options.margin.item.horizontal=t.margin,this.options.margin.item.vertical=t.margin):"object"===ch(t.margin)&&(lk.selectiveExtend(["axis"],this.options.margin,t.margin),"item"in t.margin&&("number"==typeof t.margin.item?(this.options.margin.item.horizontal=t.margin.item,this.options.margin.item.vertical=t.margin.item):"object"===ch(t.margin.item)&&lk.selectiveExtend(["horizontal","vertical"],this.options.margin.item,t.margin.item)))),bd(e=["locale","locales"]).call(e,(function(e){e in t&&(i.options[e]=t[e])})),"editable"in t&&("boolean"==typeof t.editable?(this.options.editable.updateTime=t.editable,this.options.editable.updateGroup=t.editable,this.options.editable.add=t.editable,this.options.editable.remove=t.editable,this.options.editable.overrideItems=!1):"object"===ch(t.editable)&&lk.selectiveExtend(["updateTime","updateGroup","add","remove","overrideItems"],this.options.editable,t.editable)),"groupEditable"in t&&("boolean"==typeof t.groupEditable?(this.options.groupEditable.order=t.groupEditable,this.options.groupEditable.add=t.groupEditable,this.options.groupEditable.remove=t.groupEditable):"object"===ch(t.groupEditable)&&lk.selectiveExtend(["order","add","remove"],this.options.groupEditable,t.groupEditable)),bd(n=["onDropObjectOnItem","onAdd","onUpdate","onRemove","onMove","onMoving","onAddGroup","onMoveGroup","onRemoveGroup"]).call(n,(function(e){var n=t[e];if(n){var r;if("function"!=typeof n)throw new Error(fm(r="option ".concat(e," must be a function ")).call(r,e,"(item, callback)"));i.options[e]=n}})),t.cluster?(pv(this.options,{cluster:t.cluster}),this.clusterGenerator||(this.clusterGenerator=new KT(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(t){this.groupIds=[],t&&(t.refreshItems&&bd(lk).call(lk,this.items,(function(t){t.dirty=!0,t.displayed&&t.redraw()})),t.restackGroups&&bd(lk).call(lk,this.groups,(function(t,e){e!==eC&&(t.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(t){if(this.clearPopupTimer(),t){var e=this.options.tooltip.delay||"number"==typeof this.options.tooltip.delay?this.options.tooltip.delay:500;this.popupTimer=sd((function(){t.show()}),e)}}},{key:"clearPopupTimer",value:function(){null!=this.popupTimer&&(clearTimeout(this.popupTimer),this.popupTimer=null)}},{key:"setSelection",value:function(t){var e;null==t&&(t=[]),zh(t)||(t=[t]);var n,i=QT(Od(e=this.selection).call(e,(function(e){return-1===Og(t).call(t,e)})));try{for(i.s();!(n=i.n()).done;){var r=n.value,o=this.getItemById(r);o&&o.unselect()}}catch(t){i.e(t)}finally{i.f()}this.selection=am(t);var s,a=QT(t);try{for(a.s();!(s=a.n()).done;){var l=s.value,u=this.getItemById(l);u&&u.select()}}catch(t){a.e(t)}finally{a.f()}}},{key:"getSelection",value:function(){var t;return fm(t=this.selection).call(t,[])}},{key:"getVisibleItems",value:function(){var t,e,n=this.body.range.getRange();this.options.rtl?(t=this.body.util.toScreen(n.start),e=this.body.util.toScreen(n.end)):(e=this.body.util.toScreen(n.start),t=this.body.util.toScreen(n.end));var i=[];for(var r in this.groups)if(this.groups.hasOwnProperty(r)){var o,s=this.groups[r],a=QT(s.isVisible?s.visibleItems:[]);try{for(a.s();!(o=a.n()).done;){var l=o.value;this.options.rtl?l.right<e&&l.right+l.width>t&&i.push(l.id):l.left<t&&l.left+l.width>e&&i.push(l.id)}}catch(t){a.e(t)}finally{a.f()}}return i}},{key:"getItemsAtCurrentTime",value:function(t){var e,n;this.options.rtl?(e=this.body.util.toScreen(t),n=this.body.util.toScreen(t)):(n=this.body.util.toScreen(t),e=this.body.util.toScreen(t));var i=[];for(var r in this.groups)if(this.groups.hasOwnProperty(r)){var o,s=this.groups[r],a=QT(s.isVisible?s.visibleItems:[]);try{for(a.s();!(o=a.n()).done;){var l=o.value;this.options.rtl?l.right<n&&l.right+l.width>e&&i.push(l.id):l.left<e&&l.left+l.width>n&&i.push(l.id)}}catch(t){a.e(t)}finally{a.f()}}return i}},{key:"getVisibleGroups",value:function(){var t=[];for(var e in this.groups)this.groups.hasOwnProperty(e)&&this.groups[e].isVisible&&t.push(e);return t}},{key:"getItemById",value:function(t){var e;return this.items[t]||SS(e=this.clusters).call(e,(function(e){return e.id===t}))}},{key:"_deselect",value:function(t){for(var e=this.selection,n=0,i=e.length;n<i;n++)if(e[n]==t){Zm(e).call(e,n,1);break}}},{key:"redraw",value:function(){var t=this.options.margin,e=this.body.range,n=lk.option.asSize,i=this.options,r=i.orientation.item,o=!1,s=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,s.className="vis-itemset",this.options.cluster&&this._clusterItems(),o=this._orderGroups()||o;var a=e.end-e.start,l=a!=this.lastVisibleInterval||this.props.width!=this.props.lastWidth,u=e.start!=this.lastRangeStart,c=i.stack!=this.lastStack,h=i.stackSubgroups!=this.lastStackSubgroups,d=l||u||c||h;this.lastVisibleInterval=a,this.lastRangeStart=e.start,this.lastStack=i.stack,this.lastStackSubgroups=i.stackSubgroups,this.props.lastWidth=this.props.width;var p=this._firstGroup(),f={item:t.item,axis:t.axis},m={item:t.item,axis:t.item.vertical/2},v=0,g=t.axis+t.item.vertical;this.groups[eC].redraw(e,m,d);var y={},b=0;if(bd(lk).call(lk,this.groups,(function(t,n){if(n!==eC){var i=t==p?f:m;y[n]=t.redraw(e,i,d,!0),b=y[n].length}})),b>0){for(var w={},_=function(t){bd(lk).call(lk,y,(function(e,n){w[n]=e[t]()}))},k=0;k<b;k++)_(k);bd(lk).call(lk,this.groups,(function(t,e){if(e!==eC){var n=w[e];o=n||o,v+=t.height}})),v=Math.max(v,g)}return v=Math.max(v,g),s.style.height=n(v),this.props.width=s.offsetWidth,this.props.height=v,this.dom.axis.style.top=n("top"==r?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,o=this._isResized()||o}},{key:"_firstGroup",value:function(){var t="top"==this.options.orientation.item?0:this.groupIds.length-1,e=this.groupIds[t];return this.groups[e]||this.groups[tC]||null}},{key:"_updateUngrouped",value:function(){var t,e,n=this.groups[tC];if(this.groupsData){if(n)for(e in n.dispose(),delete this.groups[tC],this.items)if(this.items.hasOwnProperty(e)){(t=this.items[e]).parent&&t.parent.remove(t);var i=this.getGroupId(t.data),r=this.groups[i];r&&r.add(t)||t.hide()}}else if(!n){for(e in n=new _T(null,null,this),this.groups[tC]=n,this.items)this.items.hasOwnProperty(e)&&(t=this.items[e],n.add(t));n.show()}}},{key:"getLabelSet",value:function(){return this.dom.labelSet}},{key:"setItems",value:function(t){this.itemsSettingTime=new Date;var e,n=this,i=this.itemsData;if(t){if(!tk(t))throw new TypeError("Data must implement the interface of DataSet or DataView");this.itemsData=rk(t)}else this.itemsData=null;if(i&&(bd(lk).call(lk,this.itemListeners,(function(t,e){i.off(e,t)})),i.dispose(),e=i.getIds(),this._onRemove(e)),this.itemsData){var r=this.id;bd(lk).call(lk,this.itemListeners,(function(t,e){n.itemsData.on(e,t,r)})),e=this.itemsData.getIds(),this._onAdd(e),this._updateUngrouped()}this.body.emitter.emit("_change",{queue:!0})}},{key:"getItems",value:function(){return null!=this.itemsData?this.itemsData.rawDS:null}},{key:"setGroups",value:function(t){var e,n=this;if(this.groupsData&&(bd(lk).call(lk,this.groupListeners,(function(t,e){n.groupsData.off(e,t)})),e=this.groupsData.getIds(),this.groupsData=null,this._onRemoveGroups(e)),t){if(!tk(t))throw new TypeError("Data must implement the interface of DataSet or DataView");this.groupsData=t}else this.groupsData=null;if(this.groupsData){var i,r=this.groupsData.getDataSet();bd(i=r.get()).call(i,(function(t){var e;t.nestedGroups&&bd(e=t.nestedGroups).call(e,(function(e){var n=r.get(e);n.nestedInGroup=t.id,0==t.showNested&&(n.visible=!1),r.update(n)}))}));var o=this.id;bd(lk).call(lk,this.groupListeners,(function(t,e){n.groupsData.on(e,t,o)})),e=this.groupsData.getIds(),this._onAddGroups(e)}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(t){var e=this,n=this.itemsData.get(t);n&&this.options.onRemove(n,(function(n){n&&e.itemsData.remove(t)}))}},{key:"_getType",value:function(t){return t.type||this.options.type||(t.end?"range":"box")}},{key:"getGroupId",value:function(t){return"background"==this._getType(t)&&null==t.group?eC:this.groupsData?t.group:tC}},{key:"_onUpdate",value:function(t){var e=this,i=this;bd(t).call(t,(function(t){var r,o=i.itemsData.get(t),s=i.items[t],a=o?i._getType(o):null,l=n.types[a];if(s&&(l&&s instanceof l?i._updateItem(s,o):(r=s.selected,i._removeItem(s),s=null)),!s&&o){if(!l)throw new TypeError('Unknown item type "'.concat(a,'"'));(s=new l(o,i.conversion,i.options)).id=t,i._addItem(s),r&&(e.selection.push(t),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(t){var e=0,n=this;bd(t).call(t,(function(t){var i=n.items[t];i&&(e++,n._removeItem(i))})),e&&(this._order(),this.body.emitter.emit("_change",{queue:!0}))}},{key:"_order",value:function(){bd(lk).call(lk,this.groups,(function(t){t.order()}))}},{key:"_onUpdateGroups",value:function(t){this._onAddGroups(t)}},{key:"_onAddGroups",value:function(t){var e=this;bd(t).call(t,(function(t){var n=e.groupsData.get(t),i=e.groups[t];if(i)i.setData(n);else{if(t==tC||t==eC)throw new Error("Illegal group id. ".concat(t," is a reserved id."));var r=Pg(e.options);for(var o in lk.extend(r,{height:null}),i=new _T(t,n,e),e.groups[t]=i,e.items)if(e.items.hasOwnProperty(o)){var s=e.items[o];s.data.group==t&&i.add(s)}i.order(),i.show()}})),this.body.emitter.emit("_change",{queue:!0})}},{key:"_onRemoveGroups",value:function(t){var e=this;bd(t).call(t,(function(t){var n=e.groups[t];n&&(n.dispose(),delete e.groups[t])})),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 t=this.groupsData.getIds({order:this.options.groupOrder});t=this._orderNestedGroups(t);var e=!lk.equalArray(t,this.groupIds);if(e){var n=this.groups;bd(t).call(t,(function(t){n[t].hide()})),bd(t).call(t,(function(t){n[t].show()})),this.groupIds=t}return e}return!1}},{key:"_orderNestedGroups",value:function(t){var e=this;return function t(e,n){var i=[];return bd(n).call(n,(function(n){if(i.push(n),e.groupsData.get(n).nestedGroups){var r,o=lp(r=e.groupsData.get({filter:function(t){return t.nestedInGroup==n},order:e.options.groupOrder})).call(r,(function(t){return t.id}));i=fm(i).call(i,t(e,o))}})),i}(this,Od(t).call(t,(function(t){return!e.groupsData.get(t).nestedInGroup})))}},{key:"_addItem",value:function(t){this.items[t.id]=t;var e=this.getGroupId(t.data),n=this.groups[e];n?n&&n.data&&n.data.showNested&&(t.groupShowing=!0):t.groupShowing=!1,n&&n.add(t)}},{key:"_updateItem",value:function(t,e){t.setData(e);var n=this.getGroupId(t.data),i=this.groups[n];i?i&&i.data&&i.data.showNested&&(t.groupShowing=!0):t.groupShowing=!1}},{key:"_removeItem",value:function(t){var e,n;t.hide(),delete this.items[t.id];var i=Og(e=this.selection).call(e,t.id);-1!=i&&Zm(n=this.selection).call(n,i,1),t.parent&&t.parent.remove(t),null!=this.popup&&this.popup.hide()}},{key:"_constructByEndArray",value:function(t){for(var e=[],n=0;n<t.length;n++)t[n]instanceof AT&&e.push(t[n]);return e}},{key:"_onTouch",value:function(t){this.touchParams.item=this.itemFromTarget(t),this.touchParams.dragLeftItem=t.target.dragLeftItem||!1,this.touchParams.dragRightItem=t.target.dragRightItem||!1,this.touchParams.itemProps=null}},{key:"_getGroupIndex",value:function(t){for(var e=0;e<this.groupIds.length;e++)if(t==this.groupIds[e])return e}},{key:"_onDragStart",value:function(t){var e=this;if(!this.touchParams.itemIsDragging){var n,i=this.touchParams.item||null,r=this;if(i&&(i.selected||this.options.itemsAlwaysDraggable.item)){if(this.options.editable.overrideItems&&!this.options.editable.updateTime&&!this.options.editable.updateGroup)return;if(null!=i.editable&&!i.editable.updateTime&&!i.editable.updateGroup&&!this.options.editable.overrideItems)return;var o=this.touchParams.dragLeftItem,s=this.touchParams.dragRightItem;if(this.touchParams.itemIsDragging=!0,this.touchParams.selectedItem=i,o)n={item:o,initialX:t.center.x,dragLeft:!0,data:this._cloneItemData(i.data)},this.touchParams.itemProps=[n];else if(s)n={item:s,initialX:t.center.x,dragRight:!0,data:this._cloneItemData(i.data)},this.touchParams.itemProps=[n];else if(this.options.editable.add&&(t.srcEvent.ctrlKey||t.srcEvent.metaKey))this._onDragStartAddItem(t);else{this.groupIds.length<1&&this.redraw();var a=this._getGroupIndex(i.data.group),l=this.options.itemsAlwaysDraggable.item&&!i.selected?[i.id]:this.getSelection();this.touchParams.itemProps=lp(l).call(l,(function(n){var i=r.items[n],o=r._getGroupIndex(i.data.group);return{item:i,initialX:t.center.x,groupOffset:a-o,data:e._cloneItemData(i.data)}}))}t.stopPropagation()}else this.options.editable.add&&(t.srcEvent.ctrlKey||t.srcEvent.metaKey)&&this._onDragStartAddItem(t)}}},{key:"_onDragStartAddItem",value:function(t){var e=this.options.snap||null,n=this.dom.frame.getBoundingClientRect(),i=this.options.rtl?n.right-t.center.x+10:t.center.x-n.left-10,r=this.body.util.toTime(i),o=this.body.util.getScale(),s=this.body.util.getStep(),a=e?e(r,o,s):r,l={type:"range",start:a,end:a,content:"new item"},u=Q_();l[this.itemsData.idProp]=u;var c=this.groupFromTarget(t);c&&(l.group=c.groupId);var h=new AT(l,this.conversion,this.options);h.id=u,h.data=this._cloneItemData(l),this._addItem(h),this.touchParams.selectedItem=h;var d={item:h,initialX:t.center.x,data:h.data};this.options.rtl?d.dragLeft=!0:d.dragRight=!0,this.touchParams.itemProps=[d],t.stopPropagation()}},{key:"_onDrag",value:function(t){var e=this;if(null!=this.popup&&this.options.showTooltips&&!this.popup.hidden){var n=this.body.dom.centerContainer,i=n.getBoundingClientRect();this.popup.setPosition(t.center.x-i.left+n.offsetLeft,t.center.y-i.top+n.offsetTop),this.popup.show()}if(this.touchParams.itemProps){var r;t.stopPropagation();var o=this,s=this.options.snap||null,a=this.body.dom.root.offsetLeft,l=this.options.rtl?a+this.body.domProps.right.width:a+this.body.domProps.left.width,u=this.body.util.getScale(),c=this.body.util.getStep(),h=this.touchParams.selectedItem,d=(this.options.editable.overrideItems||null==h.editable)&&this.options.editable.updateGroup||!this.options.editable.overrideItems&&null!=h.editable&&h.editable.updateGroup,p=null;if(d&&h&&null!=h.data.group){var f=o.groupFromTarget(t);f&&(p=this._getGroupIndex(f.groupId))}bd(r=this.touchParams.itemProps).call(r,(function(n){var i,r,a,f,m,v=o.body.util.toTime(t.center.x-l),g=o.body.util.toTime(n.initialX-l);i=e.options.rtl?-(v-g):v-g;var y=e._cloneItemData(n.item.data);if(null==n.item.editable||n.item.editable.updateTime||n.item.editable.updateGroup||o.options.editable.overrideItems){if((e.options.editable.overrideItems||null==h.editable)&&e.options.editable.updateTime||!e.options.editable.overrideItems&&null!=h.editable&&h.editable.updateTime)if(n.dragLeft)e.options.rtl?null!=y.end&&(a=lk.convert(n.data.end,"Date"),m=new Date(a.valueOf()+i),y.end=s?s(m,u,c):m):null!=y.start&&(r=lk.convert(n.data.start,"Date"),f=new Date(r.valueOf()+i),y.start=s?s(f,u,c):f);else if(n.dragRight)e.options.rtl?null!=y.start&&(r=lk.convert(n.data.start,"Date"),f=new Date(r.valueOf()+i),y.start=s?s(f,u,c):f):null!=y.end&&(a=lk.convert(n.data.end,"Date"),m=new Date(a.valueOf()+i),y.end=s?s(m,u,c):m);else if(null!=y.start)if(r=lk.convert(n.data.start,"Date").valueOf(),f=new Date(r+i),null!=y.end){var b=(a=lk.convert(n.data.end,"Date")).valueOf()-r.valueOf();y.start=s?s(f,u,c):f,y.end=new Date(y.start.valueOf()+b)}else y.start=s?s(f,u,c):f;if(d&&!n.dragLeft&&!n.dragRight&&null!=p&&null!=y.group){var w=p-n.groupOffset;w=Math.max(0,w),w=Math.min(o.groupIds.length-1,w),y.group=o.groupIds[w]}y=e._cloneItemData(y),o.options.onMoving(y,(function(t){t&&n.item.setData(e._cloneItemData(t,"Date"))}))}})),this.body.emitter.emit("_change")}}},{key:"_moveToGroup",value:function(t,e){var n=this.groups[e];if(n&&n.groupId!=t.data.group){var i=t.parent;i.remove(t),i.order(),t.data.group=n.groupId,n.add(t),n.order()}}},{key:"_onDragEnd",value:function(t){var e=this;if(this.touchParams.itemIsDragging=!1,this.touchParams.itemProps){t.stopPropagation();var n=this,i=this.touchParams.itemProps;this.touchParams.itemProps=null,bd(i).call(i,(function(t){var i=t.item.id;if(null!=n.itemsData.get(i)){var r=e._cloneItemData(t.item.data);n.options.onMove(r,(function(r){r?(r[e.itemsData.idProp]=i,e.itemsData.update(r)):(t.item.setData(t.data),n.body.emitter.emit("_change"))}))}else n.options.onAdd(t.item.data,(function(e){n._removeItem(t.item),e&&n.itemsData.add(e),n.body.emitter.emit("_change")}))}))}}},{key:"_onGroupClick",value:function(t){var e=this,n=this.groupFromTarget(t);sd((function(){e.toggleGroupShowNested(n)}),1)}},{key:"toggleGroupShowNested",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(t&&t.nestedGroups){var n=this.groupsData.getDataSet();t.showNested=null!=e?!!e:!t.showNested;var i=n.get(t.groupId);i.showNested=t.showNested;for(var r,o=t.nestedGroups,s=o;s.length>0;){var a=s;s=[];for(var l=0;l<a.length;l++){var u=n.get(a[l]);u.nestedGroups&&(s=fm(s).call(s,u.nestedGroups))}s.length>0&&(o=fm(o).call(o,s))}if(i.showNested){for(var c=n.get(i.nestedGroups),h=0;h<c.length;h++){var d=c[h];d.nestedGroups&&d.nestedGroups.length>0&&(null==d.showNested||1==d.showNested)&&c.push.apply(c,am(n.get(d.nestedGroups)))}r=lp(c).call(c,(function(t){return null==t.visible&&(t.visible=!0),t.visible=!!i.showNested,t}))}else{var p;r=lp(p=n.get(o)).call(p,(function(t){return null==t.visible&&(t.visible=!0),t.visible=!!i.showNested,t}))}n.update(fm(r).call(r,i)),i.showNested?(lk.removeClassName(t.dom.label,"collapsed"),lk.addClassName(t.dom.label,"expanded")):(lk.removeClassName(t.dom.label,"expanded"),lk.addClassName(t.dom.label,"collapsed"))}}},{key:"toggleGroupDragClassName",value:function(t){t.dom.label.classList.toggle("vis-group-is-dragging"),t.dom.foreground.classList.toggle("vis-group-is-dragging")}},{key:"_onGroupDragStart",value:function(t){this.groupTouchParams.isDragging||this.options.groupEditable.order&&(this.groupTouchParams.group=this.groupFromTarget(t),this.groupTouchParams.group&&(t.stopPropagation(),this.groupTouchParams.isDragging=!0,this.toggleGroupDragClassName(this.groupTouchParams.group),this.groupTouchParams.originalOrder=this.groupsData.getIds({order:this.options.groupOrder})))}},{key:"_onGroupDrag",value:function(t){if(this.options.groupEditable.order&&this.groupTouchParams.group){t.stopPropagation();var e=this.groupsData.getDataSet(),n=this.groupFromTarget(t);if(n&&n.height!=this.groupTouchParams.group.height){var i=n.top<this.groupTouchParams.group.top,r=t.center?t.center.y:t.clientY,o=n.dom.foreground.getBoundingClientRect(),s=this.groupTouchParams.group.height;if(i){if(o.top+s<r)return}else{var a=n.height;if(o.top+a-s>r)return}}if(n&&n!=this.groupTouchParams.group){var l=e.get(n.groupId),u=e.get(this.groupTouchParams.group.groupId);u&&l&&(this.options.groupOrderSwap(u,l,e),e.update(u),e.update(l));var c=e.getIds({order:this.options.groupOrder});if(!lk.equalArray(c,this.groupTouchParams.originalOrder))for(var h=this.groupTouchParams.originalOrder,d=this.groupTouchParams.group.groupId,p=Math.min(h.length,c.length),f=0,m=0,v=0;f<p;){for(;f+m<p&&f+v<p&&c[f+m]==h[f+v];)f++;if(f+m>=p)break;if(c[f+m]==d)m=1;else if(h[f+v]==d)v=1;else{var g=Og(c).call(c,h[f+v]),y=e.get(c[f+m]),b=e.get(h[f+v]);this.options.groupOrderSwap(y,b,e),e.update(y),e.update(b);var w=c[f+m];c[f+m]=h[f+v],c[g]=w,f++}}}}}},{key:"_onGroupDragEnd",value:function(t){if(this.groupTouchParams.isDragging=!1,this.options.groupEditable.order&&this.groupTouchParams.group){t.stopPropagation();var e=this,n=e.groupTouchParams.group.groupId,i=e.groupsData.getDataSet(),r=lk.extend({},i.get(n));e.options.onMoveGroup(r,(function(t){if(t)t[i._idProp]=n,i.update(t);else{var r=i.getIds({order:e.options.groupOrder});if(!lk.equalArray(r,e.groupTouchParams.originalOrder))for(var o=e.groupTouchParams.originalOrder,s=Math.min(o.length,r.length),a=0;a<s;){for(;a<s&&r[a]==o[a];)a++;if(a>=s)break;var l=Og(r).call(r,o[a]),u=i.get(r[a]),c=i.get(o[a]);e.options.groupOrderSwap(u,c,i),i.update(u),i.update(c);var h=r[a];r[a]=o[a],r[l]=h,a++}}})),e.body.emitter.emit("groupDragged",{groupId:n}),this.toggleGroupDragClassName(this.groupTouchParams.group),this.groupTouchParams.group=null}}},{key:"_onSelectItem",value:function(t){if(this.options.selectable){var e=t.srcEvent&&(t.srcEvent.ctrlKey||t.srcEvent.metaKey),n=t.srcEvent&&t.srcEvent.shiftKey;if(e||n)this._onMultiSelectItem(t);else{var i=this.getSelection(),r=this.itemFromTarget(t),o=r&&r.selectable?[r.id]:[];this.setSelection(o);var s=this.getSelection();(s.length>0||i.length>0)&&this.body.emitter.emit("select",{items:s,event:t})}}}},{key:"_onMouseOver",value:function(t){var e=this.itemFromTarget(t);if(e&&e!==this.itemFromRelatedTarget(t)){var n=e.getTitle();if(this.options.showTooltips&&n){null==this.popup&&(this.popup=new jT(this.body.dom.root,this.options.tooltip.overflowMethod||"flip")),this.popup.setText(n);var i=this.body.dom.centerContainer,r=i.getBoundingClientRect();this.popup.setPosition(t.clientX-r.left+i.offsetLeft,t.clientY-r.top+i.offsetTop),this.setPopupTimer(this.popup)}else this.clearPopupTimer(),null!=this.popup&&this.popup.hide();this.body.emitter.emit("itemover",{item:e.id,event:t})}}},{key:"_onMouseOut",value:function(t){var e=this.itemFromTarget(t);e&&e!==this.itemFromRelatedTarget(t)&&(this.clearPopupTimer(),null!=this.popup&&this.popup.hide(),this.body.emitter.emit("itemout",{item:e.id,event:t}))}},{key:"_onMouseMove",value:function(t){if(this.itemFromTarget(t)&&(null!=this.popupTimer&&this.setPopupTimer(this.popup),this.options.showTooltips&&this.options.tooltip.followMouse&&this.popup&&!this.popup.hidden)){var e=this.body.dom.centerContainer,n=e.getBoundingClientRect();this.popup.setPosition(t.clientX-n.left+e.offsetLeft,t.clientY-n.top+e.offsetTop),this.popup.show()}}},{key:"_onMouseWheel",value:function(t){this.touchParams.itemIsDragging&&this._onDragEnd(t)}},{key:"_onUpdateItem",value:function(t){if(this.options.selectable&&(this.options.editable.updateTime||this.options.editable.updateGroup)){var e=this;if(t){var n=e.itemsData.get(t.id);this.options.onUpdate(n,(function(t){t&&e.itemsData.update(t)}))}}}},{key:"_onDropObjectOnItem",value:function(t){var e=this.itemFromTarget(t),n=JSON.parse(t.dataTransfer.getData("text"));this.options.onDropObjectOnItem(n,e)}},{key:"_onAddItem",value:function(t){if(this.options.selectable&&this.options.editable.add){var e,n,i=this,r=this.options.snap||null,o=this.dom.frame.getBoundingClientRect(),s=this.options.rtl?o.right-t.center.x:t.center.x-o.left,a=this.body.util.toTime(s),l=this.body.util.getScale(),u=this.body.util.getStep();"drop"==t.type?((n=JSON.parse(t.dataTransfer.getData("text"))).content=n.content?n.content:"new item",n.start=n.start?n.start:r?r(a,l,u):a,n.type=n.type||"box",n[this.itemsData.idProp]=n.id||Q_(),"range"!=n.type||n.end||(e=this.body.util.toTime(s+this.props.width/5),n.end=r?r(e,l,u):e)):((n={start:r?r(a,l,u):a,content:"new item"})[this.itemsData.idProp]=Q_(),"range"===this.options.type&&(e=this.body.util.toTime(s+this.props.width/5),n.end=r?r(e,l,u):e));var c=this.groupFromTarget(t);c&&(n.group=c.groupId),n=this._cloneItemData(n),this.options.onAdd(n,(function(e){e&&(i.itemsData.add(e),"drop"==t.type&&i.setSelection([e.id]))}))}}},{key:"_onMultiSelectItem",value:function(t){var e=this;if(this.options.selectable){var i=this.itemFromTarget(t);if(i){var r=this.options.multiselect?this.getSelection():[];if((t.srcEvent&&t.srcEvent.shiftKey||this.options.sequentialSelection)&&this.options.multiselect){var o=this.itemsData.get(i.id).group,s=void 0;this.options.multiselectPerGroup&&r.length>0&&(s=this.itemsData.get(r[0]).group),this.options.multiselectPerGroup&&null!=s&&s!=o||r.push(i.id);var a=n._getItemRange(this.itemsData.get(r));if(!this.options.multiselectPerGroup||s==o)for(var l in r=[],this.items)if(this.items.hasOwnProperty(l)){var u=this.items[l],c=u.data.start,h=void 0!==u.data.end?u.data.end:c;!(c>=a.min&&h<=a.max)||this.options.multiselectPerGroup&&s!=this.itemsData.get(u.id).group||u instanceof NT||r.push(u.id)}}else{var d=Og(r).call(r,i.id);-1==d?r.push(i.id):Zm(r).call(r,d,1)}var p=Od(r).call(r,(function(t){return e.getItemById(t).selectable}));this.setSelection(p),this.body.emitter.emit("select",{items:this.getSelection(),event:t})}}}},{key:"itemFromElement",value:function(t){for(var e=t;e;){if(e.hasOwnProperty("vis-item"))return e["vis-item"];e=e.parentNode}return null}},{key:"itemFromTarget",value:function(t){return this.itemFromElement(t.target)}},{key:"itemFromRelatedTarget",value:function(t){return this.itemFromElement(t.relatedTarget)}},{key:"groupFromTarget",value:function(t){var e=t.center?t.center.y:t.clientY,n=this.groupIds;n.length<=0&&this.groupsData&&(n=this.groupsData.getIds({order:this.options.groupOrder}));for(var i=0;i<n.length;i++){var r=n[i],o=this.groups[r],s=o.dom.foreground,a=s.getBoundingClientRect();if(e>=a.top&&e<a.top+s.offsetHeight)return o;if("top"===this.options.orientation.item){if(i===this.groupIds.length-1&&e>a.top)return o}else if(0===i&&e<a.top+s.offset)return o}return null}},{key:"_cloneItemData",value:function(t,e){var n=lk.extend({},t);return e||(e=this.itemsData.type),null!=n.start&&(n.start=lk.convert(n.start,e&&e.start||"Date")),null!=n.end&&(n.end=lk.convert(n.end,e&&e.end||"Date")),n}},{key:"_clusterItems",value:function(){if(this.options.cluster){var t=this.body.range.conversion(this.body.domProps.center.width).scale,e=this.clusterGenerator.getClusters(this.clusters,t,this.options.cluster);if(this.clusters!=e){if(this._detachAllClusters(),e){var n,i=QT(e);try{for(i.s();!(n=i.n()).done;)n.value.attach()}catch(t){i.e(t)}finally{i.f()}this.clusters=e}this._updateClusters(e)}}}},{key:"_detachAllClusters",value:function(){if(this.options.cluster&&this.clusters&&this.clusters.length){var t,e=QT(this.clusters);try{for(e.s();!(t=e.n()).done;)t.value.detach()}catch(t){e.e(t)}finally{e.f()}}}},{key:"_updateClusters",value:function(t){if(this.clusters&&this.clusters.length){var e,n,i=new KD(lp(t).call(t,(function(t){return t.id}))),r=Od(e=this.clusters).call(e,(function(t){return!i.has(t.id)})),o=!1,s=QT(r);try{for(s.s();!(n=s.n()).done;){var a,l,u=n.value,c=Og(a=this.selection).call(a,u.id);-1!==c&&(u.unselect(),Zm(l=this.selection).call(l,c,1),o=!0)}}catch(t){s.e(t)}finally{s.f()}if(o){var h=this.getSelection();this.body.emitter.emit("select",{items:h,event:event})}}this.clusters=t||[]}}],[{key:"_getItemRange",value:function(t){var e=null,n=null;return bd(t).call(t,(function(t){(null==n||t.start<n)&&(n=t.start),null!=t.end?(null==e||t.end>e)&&(e=t.end):(null==e||t.start>e)&&(e=t.start)})),{min:n,max:e}}},{key:"itemSetFromTarget",value:function(t){for(var e=t.target;e;){if(e.hasOwnProperty("vis-itemset"))return e["vis-itemset"];e=e.parentNode}return null}}]),n}(wk);nC.types={background:NT,box:OT,range:AT,point:MT},nC.prototype._onAdd=nC.prototype._onUpdate;var iC,rC=!1,oC="background: #FFeeee; color: #dd0000",sC=function(){function t(){Fr(this,t)}return fh(t,null,[{key:"validate",value:function(e,n,i){rC=!1,iC=n;var r=n;return void 0!==i&&(r=n[i]),t.parse(e,r,[]),rC}},{key:"parse",value:function(e,n,i){for(var r in e)e.hasOwnProperty(r)&&t.check(r,e,n,i)}},{key:"check",value:function(e,n,i,r){if(void 0!==i[e]||void 0!==i.__any__){var o=e,s=!0;void 0===i[e]&&void 0!==i.__any__&&(o="__any__",s="object"===t.getType(n[e]));var a=i[o];s&&void 0!==a.__type__&&(a=a.__type__),t.checkFields(e,n,i,o,a,r)}else t.getSuggestion(e,i,r)}},{key:"checkFields",value:function(e,n,i,r,o,s){var a=function(n){console.log("%c"+n+t.printLocation(s,e),oC)},l=t.getType(n[e]),u=o[l];void 0!==u?"array"===t.getType(u)&&-1===Og(u).call(u,n[e])?(a('Invalid option detected in "'+e+'". Allowed values are:'+t.print(u)+' not "'+n[e]+'". '),rC=!0):"object"===l&&"__any__"!==r&&(s=lk.copyAndExtendArray(s,e),t.parse(n[e],i[r],s)):void 0===o.any&&(a('Invalid type received for "'+e+'". Expected: '+t.print(Tp(o))+". Received ["+l+'] "'+n[e]+'"'),rC=!0)}},{key:"getType",value:function(t){var e=ch(t);return"object"===e?null===t?"null":t instanceof Boolean?"boolean":t instanceof Number?"number":t instanceof String?"string":zh(t)?"array":t instanceof Date?"date":void 0!==t.nodeType?"dom":!0===t._isAMomentObject?"moment":"object":"number"===e?"number":"boolean"===e?"boolean":"string"===e?"string":void 0===e?"undefined":e}},{key:"getSuggestion",value:function(e,n,i){var r,o=t.findInOptions(e,n,i,!1),s=t.findInOptions(e,iC,[],!0);r=void 0!==o.indexMatch?" in "+t.printLocation(o.path,e,"")+'Perhaps it was incomplete? Did you mean: "'+o.indexMatch+'"?\n\n':s.distance<=4&&o.distance>s.distance?" in "+t.printLocation(o.path,e,"")+"Perhaps it was misplaced? Matching option found at: "+t.printLocation(s.path,s.closestMatch,""):o.distance<=8?'. Did you mean "'+o.closestMatch+'"?'+t.printLocation(o.path,e):". Did you mean one of these: "+t.print(Tp(n))+t.printLocation(i,e),console.log('%cUnknown option detected: "'+e+'"'+r,oC),rC=!0}},{key:"findInOptions",value:function(e,n,i){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=1e9,s="",a=[],l=e.toLowerCase(),u=void 0;for(var c in n){var h=void 0;if(void 0!==n[c].__type__&&!0===r){var d=t.findInOptions(e,n[c],lk.copyAndExtendArray(i,c));o>d.distance&&(s=d.closestMatch,a=d.path,o=d.distance,u=d.indexMatch)}else{var p;-1!==Og(p=c.toLowerCase()).call(p,l)&&(u=c),o>(h=t.levenshteinDistance(e,c))&&(s=c,a=lk.copyArray(i),o=h)}}return{closestMatch:s,path:a,distance:o,indexMatch:u}}},{key:"printLocation",value:function(t,e){for(var n="\n\n"+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Problem value found at: \n")+"options = {\n",i=0;i<t.length;i++){for(var r=0;r<i+1;r++)n+=" ";n+=t[i]+": {\n"}for(var o=0;o<t.length+1;o++)n+=" ";n+=e+"\n";for(var s=0;s<t.length+1;s++){for(var a=0;a<t.length-s;a++)n+=" ";n+="}\n"}return n+"\n\n"}},{key:"print",value:function(t){return jg(t).replace(/(\")|(\[)|(\])|(,"__type__")/g,"").replace(/(\,)/g,", ")}},{key:"levenshteinDistance",value:function(t,e){if(0===t.length)return e.length;if(0===e.length)return t.length;var n,i,r=[];for(n=0;n<=e.length;n++)r[n]=[n];for(i=0;i<=t.length;i++)r[0][i]=i;for(n=1;n<=e.length;n++)for(i=1;i<=t.length;i++)e.charAt(n-1)==t.charAt(i-1)?r[n][i]=r[n-1][i-1]:r[n][i]=Math.min(r[n-1][i-1]+1,Math.min(r[n][i-1]+1,r[n-1][i]+1));return r[e.length][t.length]}}]),t}(),aC="string",lC="boolean",uC="number",cC="array",hC="date",dC="object",pC="moment",fC={configure:{enabled:{boolean:lC},filter:{boolean:lC,function:"function"},container:{dom:"dom"},__type__:{object:dC,boolean:lC,function:"function"}},align:{string:aC},alignCurrentTime:{string:aC,undefined:"undefined"},rtl:{boolean:lC,undefined:"undefined"},rollingMode:{follow:{boolean:lC},offset:{number:uC,undefined:"undefined"},__type__:{object:dC}},onTimeout:{timeoutMs:{number:uC},callback:{function:"function"},__type__:{object:dC}},verticalScroll:{boolean:lC,undefined:"undefined"},horizontalScroll:{boolean:lC,undefined:"undefined"},autoResize:{boolean:lC},throttleRedraw:{number:uC},clickToUse:{boolean:lC},dataAttributes:{string:aC,array:cC},editable:{add:{boolean:lC,undefined:"undefined"},remove:{boolean:lC,undefined:"undefined"},updateGroup:{boolean:lC,undefined:"undefined"},updateTime:{boolean:lC,undefined:"undefined"},overrideItems:{boolean:lC,undefined:"undefined"},__type__:{boolean:lC,object:dC}},end:{number:uC,date:hC,string:aC,moment:pC},format:{minorLabels:{millisecond:{string:aC,undefined:"undefined"},second:{string:aC,undefined:"undefined"},minute:{string:aC,undefined:"undefined"},hour:{string:aC,undefined:"undefined"},weekday:{string:aC,undefined:"undefined"},day:{string:aC,undefined:"undefined"},week:{string:aC,undefined:"undefined"},month:{string:aC,undefined:"undefined"},year:{string:aC,undefined:"undefined"},__type__:{object:dC,function:"function"}},majorLabels:{millisecond:{string:aC,undefined:"undefined"},second:{string:aC,undefined:"undefined"},minute:{string:aC,undefined:"undefined"},hour:{string:aC,undefined:"undefined"},weekday:{string:aC,undefined:"undefined"},day:{string:aC,undefined:"undefined"},week:{string:aC,undefined:"undefined"},month:{string:aC,undefined:"undefined"},year:{string:aC,undefined:"undefined"},__type__:{object:dC,function:"function"}},__type__:{object:dC}},moment:{function:"function"},groupHeightMode:{string:aC},groupOrder:{string:aC,function:"function"},groupEditable:{add:{boolean:lC,undefined:"undefined"},remove:{boolean:lC,undefined:"undefined"},order:{boolean:lC,undefined:"undefined"},__type__:{boolean:lC,object:dC}},groupOrderSwap:{function:"function"},height:{string:aC,number:uC},hiddenDates:{start:{date:hC,number:uC,string:aC,moment:pC},end:{date:hC,number:uC,string:aC,moment:pC},repeat:{string:aC},__type__:{object:dC,array:cC}},itemsAlwaysDraggable:{item:{boolean:lC,undefined:"undefined"},range:{boolean:lC,undefined:"undefined"},__type__:{boolean:lC,object:dC}},limitSize:{boolean:lC},locale:{string:aC},locales:{__any__:{any:"any"},__type__:{object:dC}},longSelectPressTime:{number:uC},margin:{axis:{number:uC},item:{horizontal:{number:uC,undefined:"undefined"},vertical:{number:uC,undefined:"undefined"},__type__:{object:dC,number:uC}},__type__:{object:dC,number:uC}},max:{date:hC,number:uC,string:aC,moment:pC},maxHeight:{number:uC,string:aC},maxMinorChars:{number:uC},min:{date:hC,number:uC,string:aC,moment:pC},minHeight:{number:uC,string:aC},moveable:{boolean:lC},multiselect:{boolean:lC},multiselectPerGroup:{boolean:lC},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:aC,undefined:"undefined"},item:{string:aC,undefined:"undefined"},__type__:{string:aC,object:dC}},selectable:{boolean:lC},sequentialSelection:{boolean:lC},showCurrentTime:{boolean:lC},showMajorLabels:{boolean:lC},showMinorLabels:{boolean:lC},showWeekScale:{boolean:lC},stack:{boolean:lC},stackSubgroups:{boolean:lC},cluster:{maxItems:{number:uC,undefined:"undefined"},titleTemplate:{string:aC,undefined:"undefined"},clusterCriteria:{function:"function",undefined:"undefined"},showStipes:{boolean:lC,undefined:"undefined"},fitOnDoubleClick:{boolean:lC,undefined:"undefined"},__type__:{boolean:lC,object:dC}},snap:{function:"function",null:"null"},start:{date:hC,number:uC,string:aC,moment:pC},template:{function:"function"},loadingScreenTemplate:{function:"function"},groupTemplate:{function:"function"},visibleFrameTemplate:{string:aC,function:"function"},showTooltips:{boolean:lC},tooltip:{followMouse:{boolean:lC},overflowMethod:{string:["cap","flip","none"]},delay:{number:uC},template:{function:"function"},__type__:{object:dC}},tooltipOnItemUpdateTime:{template:{function:"function"},__type__:{boolean:lC,object:dC}},timeAxis:{scale:{string:aC,undefined:"undefined"},step:{number:uC,undefined:"undefined"},__type__:{object:dC}},type:{string:aC},width:{string:aC,number:uC},preferZoom:{boolean:lC},zoomable:{boolean:lC},zoomKey:{string:["ctrlKey","altKey","shiftKey","metaKey",""]},zoomFriction:{number:uC},zoomMax:{number:uC},zoomMin:{number:uC},xss:{disabled:{boolean:lC},filterOptions:{__any__:{any:"any"},__type__:{object:dC}},__type__:{object:dC}},__type__:{object:dC}},mC={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}}},vC={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"},gC=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;Fr(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 fh(t,[{key:"insertTo",value:function(t){void 0!==this.hammer&&(this.hammer.destroy(),this.hammer=void 0),this.container=t,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker update callback is not a function.");this.updateCallback=t}},{key:"setCloseCallback",value:function(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker closing callback is not a function.");this.closeCallback=t}},{key:"_isColorString",value:function(t){if("string"==typeof t)return vC[t]}},{key:"setColor",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("none"!==t){var n,i=this._isColorString(t);if(void 0!==i&&(t=i),!0===lk.isString(t)){if(!0===lk.isValidRGB(t)){var r=t.substr(4).substr(0,t.length-5).split(",");n={r:r[0],g:r[1],b:r[2],a:1}}else if(!0===lk.isValidRGBA(t)){var o=t.substr(5).substr(0,t.length-6).split(",");n={r:o[0],g:o[1],b:o[2],a:o[3]}}else if(!0===lk.isValidHex(t)){var s=lk.hexToRGB(t);n={r:s.r,g:s.g,b:s.b,a:1}}}else if(t instanceof Object&&void 0!==t.r&&void 0!==t.g&&void 0!==t.b){var a=void 0!==t.a?t.a:"1.0";n={r:t.r,g:t.g,b:t.b,a:a}}if(void 0===n)throw new Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+jg(t));this._setColor(n,e)}}},{key:"show",value:function(){void 0!==this.closeCallback&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var t=this;!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&(this.previousColor=lk.extend({},this.color)),!0===this.applied&&this.updateCallback(this.initialColor),this.frame.style.display="none",sd((function(){void 0!==t.closeCallback&&(t.closeCallback(),t.closeCallback=void 0)}),0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){void 0!==this.previousColor?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(t){!0===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(this.initialColor=lk.extend({},t)),this.color=t;var e=lk.RGBToHSV(t.r,t.g,t.b),n=2*Math.PI,i=this.r*e.s,r=this.centerCoordinates.x+i*Math.sin(n*e.h),o=this.centerCoordinates.y+i*Math.cos(n*e.h);this.colorPickerSelector.style.left=r-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=o-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(t)}},{key:"_setOpacity",value:function(t){this.color.a=t/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(t){var e=lk.RGBToHSV(this.color.r,this.color.g,this.color.b);e.v=t/100;var n=lk.HSVToRGB(e.h,e.s,e.v);n.a=this.color.a,this.color=n,this._updatePicker()}},{key:"_updatePicker",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.color,e=lk.RGBToHSV(t.r,t.g,t.b),n=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(n.webkitBackingStorePixelRatio||n.mozBackingStorePixelRatio||n.msBackingStorePixelRatio||n.oBackingStorePixelRatio||n.backingStorePixelRatio||1)),n.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var i=this.colorPickerCanvas.clientWidth,r=this.colorPickerCanvas.clientHeight;n.clearRect(0,0,i,r),n.putImageData(this.hueCircle,0,0),n.fillStyle="rgba(0,0,0,"+(1-e.v)+")",n.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),Vg(n).call(n),this.brightnessRange.value=100*e.v,this.opacityRange.value=100*t.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){var t,e,n,i;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 r=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(r.webkitBackingStorePixelRatio||r.mozBackingStorePixelRatio||r.msBackingStorePixelRatio||r.oBackingStorePixelRatio||r.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var o=document.createElement("DIV");o.style.color="red",o.style.fontWeight="bold",o.style.padding="10px",o.innerHTML="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(o)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch(t){}this.opacityRange.value="100",this.opacityRange.className="vis-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch(t){}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var s=this;this.opacityRange.onchange=function(){s._setOpacity(this.value)},this.opacityRange.oninput=function(){s._setOpacity(this.value)},this.brightnessRange.onchange=function(){s._setBrightness(this.value)},this.brightnessRange.oninput=function(){s._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.innerHTML="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerHTML="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerHTML="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerHTML="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerHTML="cancel",this.cancelButton.onclick=Hh(t=this._hide).call(t,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerHTML="apply",this.applyButton.onclick=Hh(e=this._apply).call(e,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerHTML="save",this.saveButton.onclick=Hh(n=this._save).call(n,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerHTML="load last",this.loadButton.onclick=Hh(i=this._loadLast).call(i,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:"_bindHammer",value:function(){var t=this;this.drag={},this.pinch={},this.hammer=new Gx(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),Bx(this.hammer,(function(e){t._moveSelector(e)})),this.hammer.on("tap",(function(e){t._moveSelector(e)})),this.hammer.on("panstart",(function(e){t._moveSelector(e)})),this.hammer.on("panmove",(function(e){t._moveSelector(e)})),this.hammer.on("panend",(function(e){t._moveSelector(e)}))}},{key:"_generateHueCircle",value:function(){if(!1===this.generated){var t=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)),t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var e,n,i,r,o=this.colorPickerCanvas.clientWidth,s=this.colorPickerCanvas.clientHeight;t.clearRect(0,0,o,s),this.centerCoordinates={x:.5*o,y:.5*s},this.r=.49*o;var a,l=2*Math.PI/360,u=1/this.r;for(i=0;i<360;i++)for(r=0;r<this.r;r++)e=this.centerCoordinates.x+r*Math.sin(l*i),n=this.centerCoordinates.y+r*Math.cos(l*i),a=lk.HSVToRGB(.002777777777777778*i,r*u,1),t.fillStyle="rgb("+a.r+","+a.g+","+a.b+")",t.fillRect(e-.5,n-.5,2,2);t.strokeStyle="rgba(0,0,0,1)",t.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),t.stroke(),this.hueCircle=t.getImageData(0,0,o,s)}this.generated=!0}},{key:"_moveSelector",value:function(t){var e=this.colorPickerDiv.getBoundingClientRect(),n=t.center.x-e.left,i=t.center.y-e.top,r=.5*this.colorPickerDiv.clientHeight,o=.5*this.colorPickerDiv.clientWidth,s=n-o,a=i-r,l=Math.atan2(s,a),u=.98*Math.min(Math.sqrt(s*s+a*a),o),c=Math.cos(l)*u+r,h=Math.sin(l)*u+o;this.colorPickerSelector.style.top=c-.5*this.colorPickerSelector.clientHeight+"px",this.colorPickerSelector.style.left=h-.5*this.colorPickerSelector.clientWidth+"px";var d=l/(2*Math.PI);d=d<0?d+1:d;var p=u/this.r,f=lk.RGBToHSV(this.color.r,this.color.g,this.color.b);f.h=d,f.s=p;var m=lk.HSVToRGB(f.h,f.s,f.v);m.a=this.color.a,this.color=m,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}}]),t}(),yC=function(){function t(e,n,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;Fr(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},lk.extend(this.options,this.defaultOptions),this.configureOptions=i,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new gC(r),this.wrapper=void 0}return fh(t,[{key:"setOptions",value:function(t){if(void 0!==t){this.popupHistory={},this._removePopup();var e=!0;if("string"==typeof t)this.options.filter=t;else if(zh(t))this.options.filter=t.join();else if("object"===ch(t)){if(null==t)throw new TypeError("options cannot be null");void 0!==t.container&&(this.options.container=t.container),void 0!==Od(t)&&(this.options.filter=Od(t)),void 0!==t.showButton&&(this.options.showButton=t.showButton),void 0!==t.enabled&&(e=t.enabled)}else"boolean"==typeof t?(this.options.filter=!0,e=t):"function"==typeof t&&(this.options.filter=t,e=!0);!1===Od(this.options)&&(e=!1),this.options.enabled=e}this._clean()}},{key:"setModuleOptions",value:function(t){this.moduleOptions=t,!0===this.options.enabled&&(this._clean(),void 0!==this.options.container&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var t=Od(this.options),e=0,n=!1;for(var i in this.configureOptions)this.configureOptions.hasOwnProperty(i)&&(this.allowCreation=!1,n=!1,"function"==typeof t?n=(n=t(i,[]))||this._handleObject(this.configureOptions[i],[i],!0):!0!==t&&-1===Og(t).call(t,i)||(n=!0),!1!==n&&(this.allowCreation=!0,e>0&&this._makeItem([]),this._makeHeader(i),this._handleObject(this.configureOptions[i],[i])),e++);this._makeButton(),this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var t=0;t<this.domElements.length;t++)this.wrapper.appendChild(this.domElements[t]);this._showPopupIfNeeded()}},{key:"_clean",value:function(){for(var t=0;t<this.domElements.length;t++)this.wrapper.removeChild(this.domElements[t]);void 0!==this.wrapper&&(this.container.removeChild(this.wrapper),this.wrapper=void 0),this.domElements=[],this._removePopup()}},{key:"_getValue",value:function(t){for(var e=this.moduleOptions,n=0;n<t.length;n++){if(void 0===e[t[n]]){e=void 0;break}e=e[t[n]]}return e}},{key:"_makeItem",value:function(t){if(!0===this.allowCreation){var e=document.createElement("div");e.className="vis-configuration vis-config-item vis-config-s"+t.length;for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return bd(i).call(i,(function(t){e.appendChild(t)})),this.domElements.push(e),this.domElements.length}return 0}},{key:"_makeHeader",value:function(t){var e=document.createElement("div");e.className="vis-configuration vis-config-header",e.innerHTML=lk.xss(t),this._makeItem([],e)}},{key:"_makeLabel",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=document.createElement("div");return i.className="vis-configuration vis-config-label vis-config-s"+e.length,i.innerHTML=!0===n?lk.xss("<i><b>"+t+":</b></i>"):lk.xss(t+":"),i}},{key:"_makeDropdown",value:function(t,e,n){var i=document.createElement("select");i.className="vis-configuration vis-config-select";var r=0;void 0!==e&&-1!==Og(t).call(t,e)&&(r=Og(t).call(t,e));for(var o=0;o<t.length;o++){var s=document.createElement("option");s.value=t[o],o===r&&(s.selected="selected"),s.innerHTML=t[o],i.appendChild(s)}var a=this;i.onchange=function(){a._update(this.value,n)};var l=this._makeLabel(n[n.length-1],n);this._makeItem(n,l,i)}},{key:"_makeRange",value:function(t,e,n){var i=t[0],r=t[1],o=t[2],s=t[3],a=document.createElement("input");a.className="vis-configuration vis-config-range";try{a.type="range",a.min=r,a.max=o}catch(t){}a.step=s;var l="",u=0;if(void 0!==e){var c=1.2;e<0&&e*c<r?(a.min=Math.ceil(e*c),u=a.min,l="range increased"):e/c<r&&(a.min=Math.ceil(e/c),u=a.min,l="range increased"),e*c>o&&1!==o&&(a.max=Math.ceil(e*c),u=a.max,l="range increased"),a.value=e}else a.value=i;var h=document.createElement("input");h.className="vis-configuration vis-config-rangeinput",h.value=Number(a.value);var d=this;a.onchange=function(){h.value=this.value,d._update(Number(this.value),n)},a.oninput=function(){h.value=this.value};var p=this._makeLabel(n[n.length-1],n),f=this._makeItem(n,p,a,h);""!==l&&this.popupHistory[f]!==u&&(this.popupHistory[f]=u,this._setupPopup(l,f))}},{key:"_makeButton",value:function(){var t=this;if(!0===this.options.showButton){var e=document.createElement("div");e.className="vis-configuration vis-config-button",e.innerHTML="generate options",e.onclick=function(){t._printOptions()},e.onmouseover=function(){e.className="vis-configuration vis-config-button hover"},e.onmouseout=function(){e.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(e)}}},{key:"_setupPopup",value:function(t,e){var n=this;if(!0===this.initialized&&!0===this.allowCreation&&this.popupCounter<this.popupLimit){var i=document.createElement("div");i.id="vis-configuration-popup",i.className="vis-configuration-popup",i.innerHTML=lk.xss(t),i.onclick=function(){n._removePopup()},this.popupCounter+=1,this.popupDiv={html:i,index:e}}}},{key:"_removePopup",value:function(){void 0!==this.popupDiv.html&&(this.popupDiv.html.parentNode.removeChild(this.popupDiv.html),clearTimeout(this.popupDiv.hideTimeout),clearTimeout(this.popupDiv.deleteTimeout),this.popupDiv={})}},{key:"_showPopupIfNeeded",value:function(){var t=this;if(void 0!==this.popupDiv.html){var e=this.domElements[this.popupDiv.index].getBoundingClientRect();this.popupDiv.html.style.left=e.left+"px",this.popupDiv.html.style.top=e.top-30+"px",document.body.appendChild(this.popupDiv.html),this.popupDiv.hideTimeout=sd((function(){t.popupDiv.html.style.opacity=0}),1500),this.popupDiv.deleteTimeout=sd((function(){t._removePopup()}),1800)}}},{key:"_makeCheckbox",value:function(t,e,n){var i=document.createElement("input");i.type="checkbox",i.className="vis-configuration vis-config-checkbox",i.checked=t,void 0!==e&&(i.checked=e,e!==t&&("object"===ch(t)?e!==t.enabled&&this.changedOptions.push({path:n,value:e}):this.changedOptions.push({path:n,value:e})));var r=this;i.onchange=function(){r._update(this.checked,n)};var o=this._makeLabel(n[n.length-1],n);this._makeItem(n,o,i)}},{key:"_makeTextInput",value:function(t,e,n){var i=document.createElement("input");i.type="text",i.className="vis-configuration vis-config-text",i.value=e,e!==t&&this.changedOptions.push({path:n,value:e});var r=this;i.onchange=function(){r._update(this.value,n)};var o=this._makeLabel(n[n.length-1],n);this._makeItem(n,o,i)}},{key:"_makeColorField",value:function(t,e,n){var i=this,r=t[1],o=document.createElement("div");"none"!==(e=void 0===e?r:e)?(o.className="vis-configuration vis-config-colorBlock",o.style.backgroundColor=e):o.className="vis-configuration vis-config-colorBlock none",e=void 0===e?r:e,o.onclick=function(){i._showColorPicker(e,o,n)};var s=this._makeLabel(n[n.length-1],n);this._makeItem(n,s,o)}},{key:"_showColorPicker",value:function(t,e,n){var i=this;e.onclick=function(){},this.colorPicker.insertTo(e),this.colorPicker.show(),this.colorPicker.setColor(t),this.colorPicker.setUpdateCallback((function(t){var r="rgba("+t.r+","+t.g+","+t.b+","+t.a+")";e.style.backgroundColor=r,i._update(r,n)})),this.colorPicker.setCloseCallback((function(){e.onclick=function(){i._showColorPicker(t,e,n)}}))}},{key:"_handleObject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=!1,r=Od(this.options),o=!1;for(var s in t)if(t.hasOwnProperty(s)){i=!0;var a=t[s],l=lk.copyAndExtendArray(e,s);if("function"==typeof r&&!1===(i=r(s,e))&&!zh(a)&&"string"!=typeof a&&"boolean"!=typeof a&&a instanceof Object&&(this.allowCreation=!1,i=this._handleObject(a,l,!0),this.allowCreation=!1===n),!1!==i){o=!0;var u=this._getValue(l);if(zh(a))this._handleArray(a,u,l);else if("string"==typeof a)this._makeTextInput(a,u,l);else if("boolean"==typeof a)this._makeCheckbox(a,u,l);else if(a instanceof Object){var c=!0;if(-1!==Og(e).call(e,"physics")&&this.moduleOptions.physics.solver!==s&&(c=!1),!0===c)if(void 0!==a.enabled){var h=lk.copyAndExtendArray(l,"enabled"),d=this._getValue(h);if(!0===d){var p=this._makeLabel(s,l,!0);this._makeItem(l,p),o=this._handleObject(a,l)||o}else this._makeCheckbox(a,d,l)}else{var f=this._makeLabel(s,l,!0);this._makeItem(l,f),o=this._handleObject(a,l)||o}}else console.error("dont know how to handle",a,s,l)}}return o}},{key:"_handleArray",value:function(t,e,n){"string"==typeof t[0]&&"color"===t[0]?(this._makeColorField(t,e,n),t[1]!==e&&this.changedOptions.push({path:n,value:e})):"string"==typeof t[0]?(this._makeDropdown(t,e,n),t[0]!==e&&this.changedOptions.push({path:n,value:e})):"number"==typeof t[0]&&(this._makeRange(t,e,n),t[0]!==e&&this.changedOptions.push({path:n,value:Number(e)}))}},{key:"_update",value:function(t,e){var n=this._constructOptions(t,e);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",n),this.initialized=!0,this.parent.setOptions(n)}},{key:"_constructOptions",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n;t="false"!==(t="true"===t||t)&&t;for(var r=0;r<e.length;r++)"global"!==e[r]&&(void 0===i[e[r]]&&(i[e[r]]={}),r!==e.length-1?i=i[e[r]]:i[e[r]]=t);return n}},{key:"_printOptions",value:function(){var t=this.getOptions();this.optionsContainer.innerHTML="<pre>var options = "+jg(t,null,2)+"</pre>"}},{key:"getOptions",value:function(){for(var t={},e=0;e<this.changedOptions.length;e++)this._constructOptions(this.changedOptions[e].value,this.changedOptions[e].path,t);return t}}]),t}();function bC(t){var e=function(){if("undefined"==typeof Reflect||!Rr)return!1;if(Rr.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Rr(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=Lh(t);if(e){var r=Lh(this).constructor;n=Rr(i,arguments,r)}else n=i.apply(this,arguments);return Ah(this,n)}}var wC=function(t){Ph(n,t);var e=bC(n);function n(t,i,r,o){var s,a,l,u,c,h,d,p;if(Fr(this,n),(p=e.call(this)).initTime=new Date,p.itemsDone=!1,!(mh(p)instanceof n))throw new SyntaxError("Constructor must be called with the new operator");if(!zh(r)&&!tk(r)&&r instanceof Object){var f=o;o=r,r=f}o&&o.throttleRedraw&&console.warn('Timeline option "throttleRedraw" is DEPRICATED and no longer supported. It will be removed in the next MAJOR release.');var m=mh(p);if(p.defaultOptions={autoResize:!0,longSelectPressTime:251,orientation:{axis:"bottom",item:"bottom"},moment:wd},p.options=lk.deepExtend({},p.defaultOptions),o&&lk.setupXSSProtection(o.xss),p._create(t),!o||o&&void 0===o.rtl){var v;p.dom.root.style.visibility="hidden";for(var g=p.dom.root;!v&&g;)v=window.getComputedStyle(g,null).direction,g=g.parentElement;p.options.rtl=v&&"rtl"==v.toLowerCase()}else p.options.rtl=o.rtl;o&&(o.rollingMode&&(p.options.rollingMode=o.rollingMode),o.onInitialDrawComplete&&(p.options.onInitialDrawComplete=o.onInitialDrawComplete),o.onTimeout&&(p.options.onTimeout=o.onTimeout),o.loadingScreenTemplate&&(p.options.loadingScreenTemplate=o.loadingScreenTemplate));var y=document.createElement("div");if(p.options.loadingScreenTemplate){var b,w=Hh(b=p.options.loadingScreenTemplate).call(b,mh(p)),_=w(p.dom.loadingScreen);_ instanceof Object&&!(_ instanceof Element)?w(y):_ instanceof Element?(y.innerHTML="",y.appendChild(_)):null!=_&&(y.innerHTML=lk.xss(_))}function k(t,e){m.hasListeners(t)&&m.emit(t,m.getEventProperties(e))}return p.dom.loadingScreen.appendChild(y),p.components=[],p.body={dom:p.dom,domProps:p.props,emitter:{on:Hh(s=p.on).call(s,mh(p)),off:Hh(a=p.off).call(a,mh(p)),emit:Hh(l=p.emit).call(l,mh(p))},hiddenDates:[],util:{getScale:function(){return m.timeAxis.step.scale},getStep:function(){return m.timeAxis.step.step},toScreen:Hh(u=m._toScreen).call(u,m),toGlobalScreen:Hh(c=m._toGlobalScreen).call(c,m),toTime:Hh(h=m._toTime).call(h,m),toGlobalTime:Hh(d=m._toGlobalTime).call(d,m)}},p.range=new Mx(p.body,p.options),p.components.push(p.range),p.body.range=p.range,p.timeAxis=new Ux(p.body,p.options),p.timeAxis2=null,p.components.push(p.timeAxis),p.currentTime=new fS(p.body,p.options),p.components.push(p.currentTime),p.itemSet=new nC(p.body,p.options),p.components.push(p.itemSet),p.itemsData=null,p.groupsData=null,p.dom.root.onclick=function(t){k("click",t)},p.dom.root.ondblclick=function(t){k("doubleClick",t)},p.dom.root.oncontextmenu=function(t){k("contextmenu",t)},p.dom.root.onmouseover=function(t){k("mouseOver",t)},window.PointerEvent?(p.dom.root.onpointerdown=function(t){k("mouseDown",t)},p.dom.root.onpointermove=function(t){k("mouseMove",t)},p.dom.root.onpointerup=function(t){k("mouseUp",t)}):(p.dom.root.onmousemove=function(t){k("mouseMove",t)},p.dom.root.onmousedown=function(t){k("mouseDown",t)},p.dom.root.onmouseup=function(t){k("mouseUp",t)}),p.initialFitDone=!1,p.on("changed",(function(){if(null!=m.itemsData){if(!m.initialFitDone&&!m.options.rollingMode)if(m.initialFitDone=!0,null!=m.options.start||null!=m.options.end){if(null==m.options.start||null==m.options.end)var t=m.getItemRange();var e=null!=m.options.start?m.options.start:t.min,n=null!=m.options.end?m.options.end:t.max;m.setWindow(e,n,{animation:!1})}else m.fit({animation:!1});m.initialDrawDone||!m.initialRangeChangeDone&&(m.options.start||m.options.end)&&!m.options.rollingMode||(m.initialDrawDone=!0,m.itemSet.initialDrawDone=!0,m.dom.root.style.visibility="visible",m.dom.loadingScreen.parentNode.removeChild(m.dom.loadingScreen),m.options.onInitialDrawComplete&&sd((function(){return m.options.onInitialDrawComplete()}),0))}})),p.on("destroyTimeline",(function(){m.destroy()})),o&&p.setOptions(o),p.body.emitter.on("fit",(function(t){p._onFit(t),p.redraw()})),r&&p.setGroups(r),i&&p.setItems(i),p._redraw(),p}return fh(n,[{key:"_createConfigurator",value:function(){return new yC(this,this.dom.container,mC)}},{key:"redraw",value:function(){this.itemSet&&this.itemSet.markDirty({refreshItems:!0}),this._redraw()}},{key:"setOptions",value:function(t){if(!0===sC.validate(t,fC)&&console.log("%cErrors have been found in the supplied options object.",oC),dS.prototype.setOptions.call(this,t),"type"in t&&t.type!==this.options.type){this.options.type=t.type;var e=this.itemsData;if(e){var n=this.getSelection();this.setItems(null),this.setItems(e.rawDS),this.setSelection(n)}}}},{key:"setItems",value:function(t){var e;this.itemsDone=!1,e=t?tk(t)?rk(t):rk(new r.DataSet(t)):null,this.itemsData&&this.itemsData.dispose(),this.itemsData=e,this.itemSet&&this.itemSet.setItems(null!=e?e.rawDS:null)}},{key:"setGroups",value:function(t){var e;t?(zh(t)&&(t=new r.DataSet(t)),e=new r.DataView(t,{filter:function(t){return!1!==t.visible}})):e=null,null!=this.groupsData&&"function"==typeof this.groupsData.setData&&this.groupsData.setData(null),this.groupsData=e,this.itemSet.setGroups(e)}},{key:"setData",value:function(t){t&&t.groups&&this.setGroups(t.groups),t&&t.items&&this.setItems(t.items)}},{key:"setSelection",value:function(t,e){this.itemSet&&this.itemSet.setSelection(t),e&&e.focus&&this.focus(t,e)}},{key:"getSelection",value:function(){return this.itemSet&&this.itemSet.getSelection()||[]}},{key:"focus",value:function(t,e){if(this.itemsData&&null!=t){var n=zh(t)?t:[t],i=this.itemsData.get(n),r=null,o=null;if(bd(i).call(i,(function(t){var e=t.start.valueOf(),n="end"in t?t.end.valueOf():t.start.valueOf();(null===r||e<r)&&(r=e),(null===o||n>o)&&(o=n)})),null!==r&&null!==o){var s=this,a=this.itemSet.items[n[0]],l=-1*this._getScrollTop(),u=null,c=function(){var t=xC(s,a);t.shouldScroll&&t.itemTop!=u.itemTop&&(s._setScrollTop(-t.scrollOffset),s._redraw())},h=!e||void 0===e.zoom||e.zoom,d=(r+o)/2,p=h?1.1*(o-r):Math.max(this.range.end-this.range.start,1.1*(o-r)),f=!e||void 0===e.animation||e.animation;f||(u={shouldScroll:!1,scrollOffset:-1,itemTop:-1}),this.range.setRange(d-p/2,d+p/2,{animation:f},(function(){c(),sd(c,100)}),(function(t,e,n){var i=xC(s,a);if(!1!==i&&(u||(u=i),u.itemTop!=i.itemTop||u.shouldScroll)){u.itemTop!=i.itemTop&&i.shouldScroll&&(u=i,l=-1*s._getScrollTop());var r=l,o=u.scrollOffset,c=n?o:r+(o-r)*t;s._setScrollTop(-c),e||s._redraw()}}))}}}},{key:"fit",value:function(t,e){var n,i=!t||void 0===t.animation||t.animation;1===this.itemsData.length&&void 0===this.itemsData.get()[0].end?(n=this.getDataRange(),this.moveTo(n.min.valueOf(),{animation:i},e)):(n=this.getItemRange(),this.range.setRange(n.min,n.max,{animation:i},e))}},{key:"getItemRange",value:function(){var t=this,e=this.getDataRange(),n=null!==e.min?e.min.valueOf():null,i=null!==e.max?e.max.valueOf():null,r=null,o=null;if(null!=n&&null!=i){var s=i-n;s<=0&&(s=10);var a=s/this.props.center.width,l={},u=0;if(bd(lk).call(lk,this.itemSet.items,(function(t,e){t.groupShowing&&(l[e]=t.redraw(!0),u=l[e].length)})),u>0)for(var c=function(t){bd(lk).call(lk,l,(function(e){e[t]()}))},h=0;h<u;h++)c(h);if(bd(lk).call(lk,this.itemSet.items,(function(e){var s,l,u=_C(e),c=kC(e);t.options.rtl?(s=u-(e.getWidthRight()+10)*a,l=c+(e.getWidthLeft()+10)*a):(s=u-(e.getWidthLeft()+10)*a,l=c+(e.getWidthRight()+10)*a),s<n&&(n=s,r=e),l>i&&(i=l,o=e)})),r&&o){var d=r.getWidthLeft()+10,p=o.getWidthRight()+10,f=this.props.center.width-d-p;f>0&&(this.options.rtl?(n=_C(r)-p*s/f,i=kC(o)+d*s/f):(n=_C(r)-d*s/f,i=kC(o)+p*s/f))}}return{min:null!=n?new Date(n):null,max:null!=i?new Date(i):null}}},{key:"getDataRange",value:function(){var t,e=null,n=null;return this.itemsData&&bd(t=this.itemsData).call(t,(function(t){var i=lk.convert(t.start,"Date").valueOf(),r=lk.convert(null!=t.end?t.end:t.start,"Date").valueOf();(null===e||i<e)&&(e=i),(null===n||r>n)&&(n=r)})),{min:null!=e?new Date(e):null,max:null!=n?new Date(n):null}}},{key:"getEventProperties",value:function(t){var e=t.center?t.center.x:t.clientX,n=t.center?t.center.y:t.clientY,i=this.dom.centerContainer.getBoundingClientRect(),r=this.options.rtl?i.right-e:e-i.left,o=n-i.top,s=this.itemSet.itemFromTarget(t),a=this.itemSet.groupFromTarget(t),l=hS.customTimeFromTarget(t),u=this.itemSet.options.snap||null,c=this.body.util.getScale(),h=this.body.util.getStep(),d=this._toTime(r),p=u?u(d,c,h):d,f=lk.getTarget(t),m=null;return null!=s?m="item":null!=l?m="custom-time":lk.hasParent(f,this.timeAxis.dom.foreground)||this.timeAxis2&&lk.hasParent(f,this.timeAxis2.dom.foreground)?m="axis":lk.hasParent(f,this.itemSet.dom.labelSet)?m="group-label":lk.hasParent(f,this.currentTime.bar)?m="current-time":lk.hasParent(f,this.dom.center)&&(m="background"),{event:t,item:s?s.id:null,isCluster:!!s&&!!s.isCluster,items:s?s.items||[]:null,group:a?a.groupId:null,customTime:l?l.options.id:null,what:m,pageX:t.srcEvent?t.srcEvent.pageX:t.pageX,pageY:t.srcEvent?t.srcEvent.pageY:t.pageY,x:r,y:o,time:d,snappedTime:p}}},{key:"toggleRollingMode",value:function(){this.range.rolling?this.range.stopRolling():(null==this.options.rollingMode&&this.setOptions(this.options),this.range.startRolling())}},{key:"_redraw",value:function(){dS.prototype._redraw.call(this)}},{key:"_onFit",value:function(t){var e=t.start,n=t.end,i=t.animation;n?this.range.setRange(e,n,{animation:i}):this.moveTo(e.valueOf(),{animation:i})}}]),n}(dS);function _C(t){return lk.convert(t.data.start,"Date").valueOf()}function kC(t){var e=null!=t.data.end?t.data.end:t.data.start;return lk.convert(e,"Date").valueOf()}function xC(t,e){if(!e.parent)return!1;var n=t.options.rtl?t.props.rightContainer.height:t.props.leftContainer.height,i=t.props.center.height,r=e.parent,o=r.top,s=!0,a=t.timeAxis.options.orientation.axis,l=function(){return"bottom"==a?r.height-e.top-e.height:e.top},u=-1*t._getScrollTop(),c=o+l(),h=e.height;return c<u?o+n<=o+l()+h&&(o+=l()-t.itemSet.options.margin.item.vertical):c+h>u+n?o+=l()+h-n+t.itemSet.options.margin.item.vertical:s=!1,{shouldScroll:s,scrollOffset:o=Math.min(o,i-n),itemTop:c}}function SC(t){for(var e in t)t.hasOwnProperty(e)&&(t[e].redundant=t[e].used,t[e].used=[])}function DC(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 TC(t,e,n){var i;return e.hasOwnProperty(t)?e[t].redundant.length>0?(i=e[t].redundant[0],e[t].redundant.shift()):(i=document.createElementNS("http://www.w3.org/2000/svg",t),n.appendChild(i)):(i=document.createElementNS("http://www.w3.org/2000/svg",t),e[t]={used:[],redundant:[]},n.appendChild(i)),e[t].used.push(i),i}function CC(t,e,n,i){var r;return e.hasOwnProperty(t)?e[t].redundant.length>0?(r=e[t].redundant[0],e[t].redundant.shift()):(r=document.createElement(t),void 0!==i?n.insertBefore(r,i):n.appendChild(r)):(r=document.createElement(t),e[t]={used:[],redundant:[]},void 0!==i?n.insertBefore(r,i):n.appendChild(r)),e[t].used.push(r),r}function OC(t,e,n,i,r,o){var s;if("circle"==n.style?((s=TC("circle",i,r)).setAttributeNS(null,"cx",t),s.setAttributeNS(null,"cy",e),s.setAttributeNS(null,"r",.5*n.size)):((s=TC("rect",i,r)).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)),void 0!==n.styles&&s.setAttributeNS(null,"style",n.styles),s.setAttributeNS(null,"class",n.className+" vis-point"),o){var a=TC("text",i,r);o.xOffset&&(t+=o.xOffset),o.yOffset&&(e+=o.yOffset),o.content&&(a.textContent=o.content),o.className&&a.setAttributeNS(null,"class",o.className+" vis-label"),a.setAttributeNS(null,"x",t),a.setAttributeNS(null,"y",e)}return s}function EC(t,e,n,i,r,o,s,a){if(0!=i){i<0&&(e-=i*=-1);var l=TC("rect",o,s);l.setAttributeNS(null,"x",t-.5*n),l.setAttributeNS(null,"y",e),l.setAttributeNS(null,"width",n),l.setAttributeNS(null,"height",i),l.setAttributeNS(null,"class",r),a&&l.setAttributeNS(null,"style",a)}}var MC=function(){function t(e,n,i,r,o,s){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],l=arguments.length>7&&void 0!==arguments[7]&&arguments[7];if(Fr(this,t),this.majorSteps=[1,2,5,10],this.minorSteps=[.25,.5,1,2],this.customLines=null,this.containerHeight=o,this.majorCharHeight=s,this._start=e,this._end=n,this.scale=1,this.minorStepIdx=-1,this.magnitudefactor=1,this.determineScale(),this.zeroAlign=a,this.autoScaleStart=i,this.autoScaleEnd=r,this.formattingFunction=l,i||r){var u=this,c=function(t){var e=t-t%(u.magnitudefactor*u.minorSteps[u.minorStepIdx]);return t%(u.magnitudefactor*u.minorSteps[u.minorStepIdx])>u.magnitudefactor*u.minorSteps[u.minorStepIdx]*.5?e+u.magnitudefactor*u.minorSteps[u.minorStepIdx]:e};i&&(this._start-=2*this.magnitudefactor*this.minorSteps[this.minorStepIdx],this._start=c(this._start)),r&&(this._end+=this.magnitudefactor*this.minorSteps[this.minorStepIdx],this._end=c(this._end)),this.determineScale()}}return fh(t,[{key:"setCharHeight",value:function(t){this.majorCharHeight=t}},{key:"setHeight",value:function(t){this.containerHeight=t}},{key:"determineScale",value:function(){var t=this._end-this._start;this.scale=this.containerHeight/t;var e=this.majorCharHeight/this.scale,n=t>0?Math.round(Math.log(t)/Math.LN10):0;this.minorStepIdx=-1,this.magnitudefactor=Math.pow(10,n);var i=0;n<0&&(i=n);for(var r=!1,o=i;Math.abs(o)<=Math.abs(n);o++){this.magnitudefactor=Math.pow(10,o);for(var s=0;s<this.minorSteps.length;s++)if(this.magnitudefactor*this.minorSteps[s]>=e){r=!0,this.minorStepIdx=s;break}if(!0===r)break}}},{key:"is_major",value:function(t){return t%(this.magnitudefactor*this.majorSteps[this.minorStepIdx])==0}},{key:"getStep",value:function(){return this.magnitudefactor*this.minorSteps[this.minorStepIdx]}},{key:"getFirstMajor",value:function(){var t=this.magnitudefactor*this.majorSteps[this.minorStepIdx];return this.convertValue(this._start+(t-this._start%t)%t)}},{key:"formatValue",value:function(t){var e=t.toPrecision(5);return"function"==typeof this.formattingFunction&&(e=this.formattingFunction(t)),"number"==typeof e?"".concat(e):"string"==typeof e?e:t.toPrecision(5)}},{key:"getLines",value:function(){for(var t=[],e=this.getStep(),n=(e-this._start%e)%e,i=this._start+n;this._end-i>1e-5;i+=e)i!=this._start&&t.push({major:this.is_major(i),y:this.convertValue(i),val:this.formatValue(i)});return t}},{key:"followScale",value:function(t){var e=this.minorStepIdx,n=this._start,i=this._end,r=this,o=function(){r.magnitudefactor*=2},s=function(){r.magnitudefactor/=2};t.minorStepIdx<=1&&this.minorStepIdx<=1||t.minorStepIdx>1&&this.minorStepIdx>1||(t.minorStepIdx<this.minorStepIdx?(this.minorStepIdx=1,2==e||o(),o()):(this.minorStepIdx=2,1==e||s(),s()));for(var a=t.convertValue(0),l=t.getStep()*t.scale,u=!1,c=0;!u&&c++<5;){this.scale=l/(this.minorSteps[this.minorStepIdx]*this.magnitudefactor);var h=this.containerHeight/this.scale;this._start=n,this._end=this._start+h;var d=this._end*this.scale,p=this.magnitudefactor*this.majorSteps[this.minorStepIdx],f=this.getFirstMajor()-t.getFirstMajor();if(this.zeroAlign){var m=a-d;this._end+=m/this.scale,this._start=this._end-h}else this.autoScaleStart?(this._start-=f/this.scale,this._end=this._start+h):(this._start+=p-f/this.scale,this._end=this._start+h);if(!this.autoScaleEnd&&this._end>i+1e-5)s(),u=!1;else{if(!this.autoScaleStart&&this._start<n-1e-5){if(!(this.zeroAlign&&n>=0)){s(),u=!1;continue}console.warn("Can't adhere to given 'min' range, due to zeroalign")}this.autoScaleStart&&this.autoScaleEnd&&h<i-n?(o(),u=!1):u=!0}}}},{key:"convertValue",value:function(t){return this.containerHeight-(t-this._start)*this.scale}},{key:"screenToValue",value:function(t){return(this.containerHeight-t)/this.scale+this._start}}]),t}();function PC(t,e){var n=void 0!==lm&&bf(t)||t["@@iterator"];if(!n){if(zh(t)||(n=function(t,e){var n;if(t){if("string"==typeof t)return AC(t,e);var i=mm(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?vf(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?AC(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function AC(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function IC(t){var e=function(){if("undefined"==typeof Reflect||!Rr)return!1;if(Rr.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Rr(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=Lh(t);if(e){var r=Lh(this).constructor;n=Rr(i,arguments,r)}else n=i.apply(this,arguments);return Ah(this,n)}}var NC=function(t){Ph(n,t);var e=IC(n);function n(t,i,r,o){var s;Fr(this,n),(s=e.call(this)).id=Q_(),s.body=t,s.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(t){return"".concat(bk(t.toPrecision(3)))},title:{text:void 0,style:void 0}},right:{range:{min:void 0,max:void 0},format:function(t){return"".concat(bk(t.toPrecision(3)))},title:{text:void 0,style:void 0}}},s.linegraphOptions=o,s.linegraphSVG=r,s.props={},s.DOMelements={lines:{},labels:{},title:{}},s.dom={},s.scale=void 0,s.range={start:0,end:0},s.options=lk.extend({},s.defaultOptions),s.conversionFactor=1,s.setOptions(i),s.width=Number("".concat(s.options.width).replace("px","")),s.minWidth=s.width,s.height=s.linegraphSVG.getBoundingClientRect().height,s.hidden=!1,s.stepPixels=25,s.zeroCrossing=-1,s.amountOfSteps=-1,s.lineOffset=0,s.master=!0,s.masterAxis=null,s.svgElements={},s.iconsRemoved=!1,s.groups={},s.amountOfGroups=0,s._create(),null==s.scale&&s._redrawLabels(),s.framework={svg:s.svg,svgElements:s.svgElements,options:s.options,groups:s.groups};var a=mh(s);return s.body.emitter.on("verticalDrag",(function(){a.dom.lineContainer.style.top="".concat(a.body.domProps.scrollTop,"px")})),s}return fh(n,[{key:"addGroup",value:function(t,e){this.groups.hasOwnProperty(t)||(this.groups[t]=e),this.amountOfGroups+=1}},{key:"updateGroup",value:function(t,e){this.groups.hasOwnProperty(t)||(this.amountOfGroups+=1),this.groups[t]=e}},{key:"removeGroup",value:function(t){this.groups.hasOwnProperty(t)&&(delete this.groups[t],this.amountOfGroups-=1)}},{key:"setOptions",value:function(t){if(t){var e=!1;this.options.orientation!=t.orientation&&void 0!==t.orientation&&(e=!0),lk.selectiveDeepExtend(["orientation","showMinorLabels","showMajorLabels","icons","majorLinesOffset","minorLinesOffset","labelOffsetX","labelOffsetY","iconWidth","width","visible","left","right","alignZeros"],this.options,t),this.minWidth=Number("".concat(this.options.width).replace("px","")),!0===e&&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 t;SC(this.svgElements);var e=this.options.iconWidth,n=11.5;t="left"===this.options.orientation?4:this.width-e-4;var i=Tp(this.groups);fx(i).call(i,(function(t,e){return t<e?-1:1}));var r,o=PC(i);try{for(o.s();!(r=o.n()).done;){var s=r.value;!0!==this.groups[s].visible||void 0!==this.linegraphOptions.visibility[s]&&!0!==this.linegraphOptions.visibility[s]||(this.groups[s].getLegend(e,15,this.framework,t,n),n+=19)}}catch(t){o.e(t)}finally{o.f()}DC(this.svgElements),this.iconsRemoved=!1}},{key:"_cleanupIcons",value:function(){!1===this.iconsRemoved&&(SC(this.svgElements),DC(this.svgElements),this.iconsRemoved=!0)}},{key:"show",value:function(){this.hidden=!1,this.dom.frame.parentNode||("left"===this.options.orientation?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(t,e){this.range.start=t,this.range.end=e}},{key:"redraw",value:function(){var t=!1,e=0;for(var n in this.dom.lineContainer.style.top="".concat(this.body.domProps.scrollTop,"px"),this.groups)this.groups.hasOwnProperty(n)&&(!0!==this.groups[n].visible||void 0!==this.linegraphOptions.visibility[n]&&!0!==this.linegraphOptions.visibility[n]||e++);if(0===this.amountOfGroups||0===e)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=!0===this.options.visible?Number("".concat(this.options.width).replace("px","")):0;var i=this.props,r=this.dom.frame;r.className="vis-data-axis",this._calculateCharSize();var o=this.options.orientation,s=this.options.showMinorLabels,a=this.options.showMajorLabels,l=this.body.dom.backgroundHorizontal.offsetWidth;i.minorLabelHeight=s?i.minorCharHeight:0,i.majorLabelHeight=a?i.majorCharHeight:0,i.minorLineWidth=l-this.lineOffset-this.width+2*this.options.minorLinesOffset,i.minorLineHeight=1,i.majorLineWidth=l-this.lineOffset-this.width+2*this.options.majorLinesOffset,i.majorLineHeight=1,"left"===o?(r.style.top="0",r.style.left="0",r.style.bottom="",r.style.width="".concat(this.width,"px"),r.style.height="".concat(this.height,"px"),this.props.width=this.body.domProps.left.width,this.props.height=this.body.domProps.left.height):(r.style.top="",r.style.bottom="0",r.style.left="0",r.style.width="".concat(this.width,"px"),r.style.height="".concat(this.height,"px"),this.props.width=this.body.domProps.right.width,this.props.height=this.body.domProps.right.height),t=this._redrawLabels(),t=this._isResized()||t,!0===this.options.icons?this._redrawGroupIcons():this._cleanupIcons(),this._redrawTitle(o)}return t}},{key:"_redrawLabels",value:function(){var t=this,e=!1;SC(this.DOMelements.lines),SC(this.DOMelements.labels);var n=this.options.orientation,i=null!=this.options[n].range?this.options[n].range:{},r=!0;null!=i.max&&(this.range.end=i.max,r=!1);var o=!0;null!=i.min&&(this.range.start=i.min,o=!1),this.scale=new MC(this.range.start,this.range.end,o,r,this.dom.frame.offsetHeight,this.props.majorCharHeight,this.options.alignZeros,this.options[n].format),!1===this.master&&null!=this.masterAxis?(this.scale.followScale(this.masterAxis.scale),this.dom.lineContainer.style.display="none"):this.dom.lineContainer.style.display="block",this.maxLabelSize=0;var s=this.scale.getLines();bd(s).call(s,(function(e){var i=e.y,r=e.major;t.options.showMinorLabels&&!1===r&&t._redrawLabel(i-2,e.val,n,"vis-y-axis vis-minor",t.props.minorCharHeight),r&&i>=0&&t._redrawLabel(i-2,e.val,n,"vis-y-axis vis-major",t.props.majorCharHeight),!0===t.master&&(r?t._redrawLine(i,n,"vis-grid vis-horizontal vis-major",t.options.majorLinesOffset,t.props.majorLineWidth):t._redrawLine(i,n,"vis-grid vis-horizontal vis-minor",t.options.minorLinesOffset,t.props.minorLineWidth))}));var a=0;void 0!==this.options[n].title&&void 0!==this.options[n].title.text&&(a=this.props.titleCharHeight);var l=!0===this.options.icons?Math.max(this.options.iconWidth,a)+this.options.labelOffsetX+15:a+this.options.labelOffsetX+15;return this.maxLabelSize>this.width-l&&!0===this.options.visible?(this.width=this.maxLabelSize+l,this.options.width="".concat(this.width,"px"),DC(this.DOMelements.lines),DC(this.DOMelements.labels),this.redraw(),e=!0):this.maxLabelSize<this.width-l&&!0===this.options.visible&&this.width>this.minWidth?(this.width=Math.max(this.minWidth,this.maxLabelSize+l),this.options.width="".concat(this.width,"px"),DC(this.DOMelements.lines),DC(this.DOMelements.labels),this.redraw(),e=!0):(DC(this.DOMelements.lines),DC(this.DOMelements.labels),e=!1),e}},{key:"convertValue",value:function(t){return this.scale.convertValue(t)}},{key:"screenToValue",value:function(t){return this.scale.screenToValue(t)}},{key:"_redrawLabel",value:function(t,e,n,i,r){var o=CC("div",this.DOMelements.labels,this.dom.frame);o.className=i,o.innerHTML=lk.xss(e),"left"===n?(o.style.left="-".concat(this.options.labelOffsetX,"px"),o.style.textAlign="right"):(o.style.right="-".concat(this.options.labelOffsetX,"px"),o.style.textAlign="left"),o.style.top="".concat(t-.5*r+this.options.labelOffsetY,"px"),e+="";var s=Math.max(this.props.majorCharWidth,this.props.minorCharWidth);this.maxLabelSize<e.length*s&&(this.maxLabelSize=e.length*s)}},{key:"_redrawLine",value:function(t,e,n,i,r){if(!0===this.master){var o=CC("div",this.DOMelements.lines,this.dom.lineContainer);o.className=n,o.innerHTML="","left"===e?o.style.left="".concat(this.width-i,"px"):o.style.right="".concat(this.width-i,"px"),o.style.width="".concat(r,"px"),o.style.top="".concat(t,"px")}}},{key:"_redrawTitle",value:function(t){if(SC(this.DOMelements.title),void 0!==this.options[t].title&&void 0!==this.options[t].title.text){var e=CC("div",this.DOMelements.title,this.dom.frame);e.className="vis-y-axis vis-title vis-".concat(t),e.innerHTML=lk.xss(this.options[t].title.text),void 0!==this.options[t].title.style&&lk.addCssText(e,this.options[t].title.style),"left"===t?e.style.left="".concat(this.props.titleCharHeight,"px"):e.style.right="".concat(this.props.titleCharHeight,"px"),e.style.width="".concat(this.height,"px")}DC(this.DOMelements.title)}},{key:"_calculateCharSize",value:function(){if(!("minorCharHeight"in this.props)){var t=document.createTextNode("0"),e=document.createElement("div");e.className="vis-y-axis vis-minor vis-measure",e.appendChild(t),this.dom.frame.appendChild(e),this.props.minorCharHeight=e.clientHeight,this.props.minorCharWidth=e.clientWidth,this.dom.frame.removeChild(e)}if(!("majorCharHeight"in this.props)){var n=document.createTextNode("0"),i=document.createElement("div");i.className="vis-y-axis vis-major vis-measure",i.appendChild(n),this.dom.frame.appendChild(i),this.props.majorCharHeight=i.clientHeight,this.props.majorCharWidth=i.clientWidth,this.dom.frame.removeChild(i)}if(!("titleCharHeight"in this.props)){var r=document.createTextNode("0"),o=document.createElement("div");o.className="vis-y-axis vis-title vis-measure",o.appendChild(r),this.dom.frame.appendChild(o),this.props.titleCharHeight=o.clientHeight,this.props.titleCharWidth=o.clientWidth,this.dom.frame.removeChild(o)}}}]),n}(wk);function jC(t,e){}function RC(t,e){return{style:(e=void 0===e?{}: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 FC(t,e){}function LC(t,e){}function YC(t,e,n,i){this.id=e,this.options=lk.selectiveBridgeObject(["sampling","style","sort","yAxisOrientation","barChart","drawPoints","shaded","interpolation","zIndex","excludeFromStacking","excludeFromLegend"],n),this.usingDefaultStyle=void 0===t.className,this.groupsUsingDefaultStyles=i,this.zeroPosition=0,this.update(t),1==this.usingDefaultStyle&&(this.groupsUsingDefaultStyles[0]+=1),this.itemsData=[],this.visible=void 0===t.visible||t.visible}function zC(t,e,n,i){this.body=t,this.defaultOptions={enabled:!1,icons:!0,iconSize:20,iconSpacing:6,left:{visible:!0,position:"top-left"},right:{visible:!0,position:"top-right"}},this.side=n,this.options=lk.extend({},this.defaultOptions),this.linegraphOptions=i,this.svgElements={},this.dom={},this.groups={},this.amountOfGroups=0,this._create(),this.framework={svg:this.svg,svgElements:this.svgElements,options:this.options,groups:this.groups},this.setOptions(e)}jC.draw=function(t,e,n,i){i=i||0;for(var r=function(t,e){var n=void 0;return t.options&&t.options.drawPoints&&t.options.drawPoints.onRender&&"function"==typeof t.options.drawPoints.onRender&&(n=t.options.drawPoints.onRender),e.group.options&&e.group.options.drawPoints&&e.group.options.drawPoints.onRender&&"function"==typeof e.group.options.drawPoints.onRender&&(n=e.group.options.drawPoints.onRender),n}(n,e),o=0;o<t.length;o++)if(r){var s=r(t[o],e);!0!==s&&"object"!==ch(s)||OC(t[o].screen_x+i,t[o].screen_y,RC(e,s),n.svgElements,n.svg,t[o].label)}else OC(t[o].screen_x+i,t[o].screen_y,RC(e),n.svgElements,n.svg,t[o].label)},jC.drawIcon=function(t,e,n,i,r,o){var s=.5*r,a=TC("rect",o.svgElements,o.svg);a.setAttributeNS(null,"x",e),a.setAttributeNS(null,"y",n-s),a.setAttributeNS(null,"width",i),a.setAttributeNS(null,"height",2*s),a.setAttributeNS(null,"class","vis-outline"),OC(e+.5*i,n,RC(t),o.svgElements,o.svg)},FC.drawIcon=function(t,e,n,i,r,o){var s=.5*r,a=TC("rect",o.svgElements,o.svg);a.setAttributeNS(null,"x",e),a.setAttributeNS(null,"y",n-s),a.setAttributeNS(null,"width",i),a.setAttributeNS(null,"height",2*s),a.setAttributeNS(null,"class","vis-outline");var l=Math.round(.3*i),u=t.options.barChart.width/l,c=Math.round(.4*r),h=Math.round(.75*r),d=Math.round((i-2*l)/3);if(EC(e+.5*l+d,n+s-c-1,l,c,t.className+" vis-bar",o.svgElements,o.svg,t.style),EC(e+1.5*l+d+2,n+s-h-1,l,h,t.className+" vis-bar",o.svgElements,o.svg,t.style),1==t.options.drawPoints.enabled){var p={style:t.options.drawPoints.style,styles:t.options.drawPoints.styles,size:t.options.drawPoints.size/u,className:t.className};OC(e+.5*l+d,n+s-c-1,p,o.svgElements,o.svg),OC(e+1.5*l+d+2,n+s-h-1,p,o.svgElements,o.svg)}},FC.draw=function(t,e,n){var i,r,o,s,a,l,u=[],c={},h=0;for(a=0;a<t.length;a++)if("bar"===(s=n.groups[t[a]]).options.style&&!0===s.visible&&(void 0===n.options.groups.visibility[t[a]]||!0===n.options.groups.visibility[t[a]]))for(l=0;l<e[t[a]].length;l++)u.push({screen_x:e[t[a]][l].screen_x,screen_end:e[t[a]][l].screen_end,screen_y:e[t[a]][l].screen_y,x:e[t[a]][l].x,end:e[t[a]][l].end,y:e[t[a]][l].y,groupId:t[a],label:e[t[a]][l].label}),h+=1;if(0!==h)for(fx(u).call(u,(function(t,e){return t.screen_x===e.screen_x?t.groupId<e.groupId?-1:1:t.screen_x-e.screen_x})),FC._getDataIntersections(c,u),a=0;a<u.length;a++){var d=null!=(s=n.groups[u[a].groupId]).options.barChart.minWidth?s.options.barChart.minWidth:.1*s.options.barChart.width,p=0;if(void 0===c[r=u[a].screen_x])a+1<u.length&&(i=Math.abs(u[a+1].screen_x-r)),o=FC._getSafeDrawData(i,s,d);else{var f=a+(c[r].amount-c[r].resolved);f<u.length&&(i=Math.abs(u[f].screen_x-r)),o=FC._getSafeDrawData(i,s,d),c[r].resolved+=1,!0===s.options.stack&&!0!==s.options.excludeFromStacking?u[a].screen_y<s.zeroPosition?(p=c[r].accumulatedNegative,c[r].accumulatedNegative+=s.zeroPosition-u[a].screen_y):(p=c[r].accumulatedPositive,c[r].accumulatedPositive+=s.zeroPosition-u[a].screen_y):!0===s.options.barChart.sideBySide&&(o.width=o.width/c[r].amount,o.offset+=c[r].resolved*o.width-.5*o.width*(c[r].amount+1))}var m=o.width,v=u[a].screen_x;if(null!=u[a].screen_end?v+=.5*(m=u[a].screen_end-u[a].screen_x):v+=o.offset,EC(v,u[a].screen_y-p,m,s.zeroPosition-u[a].screen_y,s.className+" vis-bar",n.svgElements,n.svg,s.style),!0===s.options.drawPoints.enabled){var g={screen_x:u[a].screen_x,screen_y:u[a].screen_y-p,x:u[a].x,y:u[a].y,groupId:u[a].groupId,label:u[a].label};jC.draw([g],s,n,o.offset)}}},FC._getDataIntersections=function(t,e){for(var n,i=0;i<e.length;i++)i+1<e.length&&(n=Math.abs(e[i+1].screen_x-e[i].screen_x)),i>0&&(n=Math.min(n,Math.abs(e[i-1].screen_x-e[i].screen_x))),0===n&&(void 0===t[e[i].screen_x]&&(t[e[i].screen_x]={amount:0,resolved:0,accumulatedPositive:0,accumulatedNegative:0}),t[e[i].screen_x].amount+=1)},FC._getSafeDrawData=function(t,e,n){var i,r;return t<e.options.barChart.width&&t>0?(i=t<n?n:t,r=0,"left"===e.options.barChart.align?r-=.5*t:"right"===e.options.barChart.align&&(r+=.5*t)):(i=e.options.barChart.width,r=0,"left"===e.options.barChart.align?r-=.5*e.options.barChart.width:"right"===e.options.barChart.align&&(r+=.5*e.options.barChart.width)),{width:i,offset:r}},FC.getStackedYRange=function(t,e,n,i,r){if(t.length>0){fx(t).call(t,(function(t,e){return t.screen_x===e.screen_x?t.groupId<e.groupId?-1:1:t.screen_x-e.screen_x}));var o={};FC._getDataIntersections(o,t),e[i]=FC._getStackedYRange(o,t),e[i].yAxisOrientation=r,n.push(i)}},FC._getStackedYRange=function(t,e){for(var n,i=e[0].screen_y,r=e[0].screen_y,o=0;o<e.length;o++)void 0===t[n=e[o].screen_x]?(i=i>e[o].screen_y?e[o].screen_y:i,r=r<e[o].screen_y?e[o].screen_y:r):e[o].screen_y<0?t[n].accumulatedNegative+=e[o].screen_y:t[n].accumulatedPositive+=e[o].screen_y;for(var s in t)t.hasOwnProperty(s)&&(i=(i=i>t[s].accumulatedNegative?t[s].accumulatedNegative:i)>t[s].accumulatedPositive?t[s].accumulatedPositive:i,r=(r=r<t[s].accumulatedNegative?t[s].accumulatedNegative:r)<t[s].accumulatedPositive?t[s].accumulatedPositive:r);return{min:i,max:r}},LC.calcPath=function(t,e){if(null!=t&&t.length>0)return 1==e.options.interpolation.enabled?LC._catmullRom(t,e):LC._linear(t)},LC.drawIcon=function(t,e,n,i,r,o){var s,a,l=.5*r,u=TC("rect",o.svgElements,o.svg);u.setAttributeNS(null,"x",e),u.setAttributeNS(null,"y",n-l),u.setAttributeNS(null,"width",i),u.setAttributeNS(null,"height",2*l),u.setAttributeNS(null,"class","vis-outline"),(s=TC("path",o.svgElements,o.svg)).setAttributeNS(null,"class",t.className),void 0!==t.style&&s.setAttributeNS(null,"style",t.style),s.setAttributeNS(null,"d","M"+e+","+n+" L"+(e+i)+","+n),1==t.options.shaded.enabled&&(a=TC("path",o.svgElements,o.svg),"top"==t.options.shaded.orientation?a.setAttributeNS(null,"d","M"+e+", "+(n-l)+"L"+e+","+n+" L"+(e+i)+","+n+" L"+(e+i)+","+(n-l)):a.setAttributeNS(null,"d","M"+e+","+n+" L"+e+","+(n+l)+" L"+(e+i)+","+(n+l)+"L"+(e+i)+","+n),a.setAttributeNS(null,"class",t.className+" vis-icon-fill"),void 0!==t.options.shaded.style&&""!==t.options.shaded.style&&a.setAttributeNS(null,"style",t.options.shaded.style)),1==t.options.drawPoints.enabled&&OC(e+.5*i,n,{style:t.options.drawPoints.style,styles:t.options.drawPoints.styles,size:t.options.drawPoints.size,className:t.className},o.svgElements,o.svg)},LC.drawShading=function(t,e,n,i){if(1==e.options.shaded.enabled){var r,o=Number(i.svg.style.height.replace("px","")),s=TC("path",i.svgElements,i.svg),a="L";1==e.options.interpolation.enabled&&(a="C");var l=0;l="top"==e.options.shaded.orientation?0:"bottom"==e.options.shaded.orientation?o:Math.min(Math.max(0,e.zeroPosition),o),r="group"==e.options.shaded.orientation&&null!=n&&null!=n?"M"+t[0][0]+","+t[0][1]+" "+this.serializePath(t,a,!1)+" L"+n[n.length-1][0]+","+n[n.length-1][1]+" "+this.serializePath(n,a,!0)+n[0][0]+","+n[0][1]+" Z":"M"+t[0][0]+","+t[0][1]+" "+this.serializePath(t,a,!1)+" V"+l+" H"+t[0][0]+" Z",s.setAttributeNS(null,"class",e.className+" vis-fill"),void 0!==e.options.shaded.style&&s.setAttributeNS(null,"style",e.options.shaded.style),s.setAttributeNS(null,"d",r)}},LC.draw=function(t,e,n){if(null!=t&&null!=t){var i=TC("path",n.svgElements,n.svg);i.setAttributeNS(null,"class",e.className),void 0!==e.style&&i.setAttributeNS(null,"style",e.style);var r="L";1==e.options.interpolation.enabled&&(r="C"),i.setAttributeNS(null,"d","M"+t[0][0]+","+t[0][1]+" "+this.serializePath(t,r,!1))}},LC.serializePath=function(t,e,n){if(t.length<2)return"";var i,r=e;if(n)for(i=t.length-2;i>0;i--)r+=t[i][0]+","+t[i][1]+" ";else for(i=1;i<t.length;i++)r+=t[i][0]+","+t[i][1]+" ";return r},LC._catmullRomUniform=function(t){var e,n,i,r,o,s,a=[];a.push([Math.round(t[0].screen_x),Math.round(t[0].screen_y)]);for(var l=1/6,u=t.length,c=0;c<u-1;c++)e=0==c?t[0]:t[c-1],n=t[c],i=t[c+1],r=c+2<u?t[c+2]:i,o={screen_x:(-e.screen_x+6*n.screen_x+i.screen_x)*l,screen_y:(-e.screen_y+6*n.screen_y+i.screen_y)*l},s={screen_x:(n.screen_x+6*i.screen_x-r.screen_x)*l,screen_y:(n.screen_y+6*i.screen_y-r.screen_y)*l},a.push([o.screen_x,o.screen_y]),a.push([s.screen_x,s.screen_y]),a.push([i.screen_x,i.screen_y]);return a},LC._catmullRom=function(t,e){var n=e.options.interpolation.alpha;if(0==n||void 0===n)return this._catmullRomUniform(t);var i,r,o,s,a,l,u,c,h,d,p,f,m,v,g,y,b,w,_,k=[];k.push([Math.round(t[0].screen_x),Math.round(t[0].screen_y)]);for(var x=t.length,S=0;S<x-1;S++)i=0==S?t[0]:t[S-1],r=t[S],o=t[S+1],s=S+2<x?t[S+2]:o,u=Math.sqrt(Math.pow(i.screen_x-r.screen_x,2)+Math.pow(i.screen_y-r.screen_y,2)),c=Math.sqrt(Math.pow(r.screen_x-o.screen_x,2)+Math.pow(r.screen_y-o.screen_y,2)),h=Math.sqrt(Math.pow(o.screen_x-s.screen_x,2)+Math.pow(o.screen_y-s.screen_y,2)),v=Math.pow(h,n),y=Math.pow(h,2*n),g=Math.pow(c,n),b=Math.pow(c,2*n),_=Math.pow(u,n),d=2*(w=Math.pow(u,2*n))+3*_*g+b,p=2*y+3*v*g+b,(f=3*_*(_+g))>0&&(f=1/f),(m=3*v*(v+g))>0&&(m=1/m),a={screen_x:(-b*i.screen_x+d*r.screen_x+w*o.screen_x)*f,screen_y:(-b*i.screen_y+d*r.screen_y+w*o.screen_y)*f},l={screen_x:(y*r.screen_x+p*o.screen_x-b*s.screen_x)*m,screen_y:(y*r.screen_y+p*o.screen_y-b*s.screen_y)*m},0==a.screen_x&&0==a.screen_y&&(a=r),0==l.screen_x&&0==l.screen_y&&(l=o),k.push([a.screen_x,a.screen_y]),k.push([l.screen_x,l.screen_y]),k.push([o.screen_x,o.screen_y]);return k},LC._linear=function(t){for(var e=[],n=0;n<t.length;n++)e.push([t[n].screen_x,t[n].screen_y]);return e},YC.prototype.setItems=function(t){null!=t?(this.itemsData=t,1==fx(this.options)&&lk.insertSort(this.itemsData,(function(t,e){return t.x>e.x?1:-1}))):this.itemsData=[]},YC.prototype.getItems=function(){return this.itemsData},YC.prototype.setZeroPosition=function(t){this.zeroPosition=t},YC.prototype.setOptions=function(t){void 0!==t&&(lk.selectiveDeepExtend(["sampling","style","sort","yAxisOrientation","barChart","zIndex","excludeFromStacking","excludeFromLegend"],this.options,t),"function"==typeof t.drawPoints&&(t.drawPoints={onRender:t.drawPoints}),lk.mergeOptions(this.options,t,"interpolation"),lk.mergeOptions(this.options,t,"drawPoints"),lk.mergeOptions(this.options,t,"shaded"),t.interpolation&&"object"==ch(t.interpolation)&&t.interpolation.parametrization&&("uniform"==t.interpolation.parametrization?this.options.interpolation.alpha=0:"chordal"==t.interpolation.parametrization?this.options.interpolation.alpha=1:(this.options.interpolation.parametrization="centripetal",this.options.interpolation.alpha=.5)))},YC.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=void 0===t.visible||t.visible,this.style=t.style,this.setOptions(t.options)},YC.prototype.getLegend=function(t,e,n,i,r){switch(null!=n&&null!=n||(n={svg:document.createElementNS("http://www.w3.org/2000/svg","svg"),svgElements:{},options:this.options,groups:[this]}),null!=i&&null!=i||(i=0),null!=r&&null!=r||(r=.5*e),this.options.style){case"line":LC.drawIcon(this,i,r,t,e,n);break;case"points":case"point":jC.drawIcon(this,i,r,t,e,n);break;case"bar":FC.drawIcon(this,i,r,t,e,n)}return{icon:n.svg,label:this.content,orientation:this.options.yAxisOrientation}},YC.prototype.getYRange=function(t){for(var e=t[0].y,n=t[0].y,i=0;i<t.length;i++)e=e>t[i].y?t[i].y:e,n=n<t[i].y?t[i].y:n;return{min:e,max:n,yAxisOrientation:this.options.yAxisOrientation}},zC.prototype=new wk,zC.prototype.clear=function(){this.groups={},this.amountOfGroups=0},zC.prototype.addGroup=function(t,e){1!=e.options.excludeFromLegend&&(this.groups.hasOwnProperty(t)||(this.groups[t]=e),this.amountOfGroups+=1)},zC.prototype.updateGroup=function(t,e){this.groups[t]=e},zC.prototype.removeGroup=function(t){this.groups.hasOwnProperty(t)&&(delete this.groups[t],this.amountOfGroups-=1)},zC.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)},zC.prototype.hide=function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame)},zC.prototype.show=function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame)},zC.prototype.setOptions=function(t){lk.selectiveDeepExtend(["enabled","orientation","icons","left","right"],this.options,t)},zC.prototype.redraw=function(){var t=0,e=Tp(this.groups);fx(e).call(e,(function(t,e){return t<e?-1:1}));for(var n=0;n<e.length;n++){var i=e[n];1!=this.groups[i].visible||void 0!==this.linegraphOptions.visibility[i]&&1!=this.linegraphOptions.visibility[i]||t++}if(0==this.options[this.side].visible||0==this.amountOfGroups||0==this.options.enabled||0==t)this.hide();else{if(this.show(),"top-left"==this.options[this.side].position||"bottom-left"==this.options[this.side].position?(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=""),"top-left"==this.options[this.side].position||"top-right"==this.options[this.side].position)this.dom.frame.style.top=4-Number(this.body.dom.center.style.top.replace("px",""))+"px",this.dom.frame.style.bottom="";else{var r=this.body.domProps.center.height-this.body.domProps.centerContainer.height;this.dom.frame.style.bottom=4+r+Number(this.body.dom.center.style.top.replace("px",""))+"px",this.dom.frame.style.top=""}0==this.options.icons?(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 o="";for(n=0;n<e.length;n++)i=e[n],1!=this.groups[i].visible||void 0!==this.linegraphOptions.visibility[i]&&1!=this.linegraphOptions.visibility[i]||(o+=this.groups[i].content+"<br />");this.dom.textArea.innerHTML=lk.xss(o),this.dom.textArea.style.lineHeight=.75*this.options.iconSize+this.options.iconSpacing+"px"}},zC.prototype.drawLegendIcons=function(){if(this.dom.frame.parentNode){var t=Tp(this.groups);fx(t).call(t,(function(t,e){return t<e?-1:1})),SC(u=this.svgElements),DC(u),SC(u);var e=window.getComputedStyle(this.dom.frame).paddingTop,n=Number(e.replace("px","")),i=n,r=this.options.iconSize,o=.75*this.options.iconSize,s=n+.5*o+3;this.svg.style.width=r+5+n+"px";for(var a=0;a<t.length;a++){var l=t[a];1!=this.groups[l].visible||void 0!==this.linegraphOptions.visibility[l]&&1!=this.linegraphOptions.visibility[l]||(this.groups[l].getLegend(r,o,this.framework,i,s),s+=o+this.options.iconSpacing)}}var u};var HC="__ungrouped__";function GC(t,e){this.id=Q_(),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=lk.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(t,e,i){n._onAdd(e.items)},update:function(t,e,i){n._onUpdate(e.items)},remove:function(t,e,i){n._onRemove(e.items)}},this.groupListeners={add:function(t,e,i){n._onAddGroups(e.items)},update:function(t,e,i){n._onUpdateGroups(e.items)},remove:function(t,e,i){n._onRemoveGroups(e.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=lk.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}}GC.prototype=new wk,GC.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 NC(this.body,this.options.dataAxis,this.svg,this.options.groups),this.options.dataAxis.orientation="right",this.yAxisRight=new NC(this.body,this.options.dataAxis,this.svg,this.options.groups),delete this.options.dataAxis.orientation,this.legendLeft=new zC(this.body,this.options.legend,"left",this.options.groups),this.legendRight=new zC(this.body,this.options.legend,"right",this.options.groups),this.show()},GC.prototype.setOptions=function(t){t&&(void 0===t.graphHeight&&void 0!==t.height?(this.updateSVGheight=!0,this.updateSVGheightOnResize=!0):void 0!==this.body.domProps.centerContainer.height&&void 0!==t.graphHeight&&gg((t.graphHeight+"").replace("px",""))<this.body.domProps.centerContainer.height&&(this.updateSVGheight=!0),lk.selectiveDeepExtend(["sampling","defaultGroup","stack","height","graphHeight","yAxisOrientation","style","barChart","dataAxis","sort","groups"],this.options,t),lk.mergeOptions(this.options,t,"interpolation"),lk.mergeOptions(this.options,t,"drawPoints"),lk.mergeOptions(this.options,t,"shaded"),lk.mergeOptions(this.options,t,"legend"),t.interpolation&&"object"==ch(t.interpolation)&&t.interpolation.parametrization&&("uniform"==t.interpolation.parametrization?this.options.interpolation.alpha=0:"chordal"==t.interpolation.parametrization?this.options.interpolation.alpha=1:(this.options.interpolation.parametrization="centripetal",this.options.interpolation.alpha=.5)),this.yAxisLeft&&void 0!==t.dataAxis&&(this.yAxisLeft.setOptions(this.options.dataAxis),this.yAxisRight.setOptions(this.options.dataAxis)),this.legendLeft&&void 0!==t.legend&&(this.legendLeft.setOptions(this.options.legend),this.legendRight.setOptions(this.options.legend)),this.groups.hasOwnProperty(HC)&&this.groups[HC].setOptions(t)),this.dom.frame&&(this.forceGraphUpdate=!0,this.body.emitter.emit("_change",{queue:!0}))},GC.prototype.hide=function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame)},GC.prototype.show=function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame)},GC.prototype.setItems=function(t){var e,n=this,i=this.itemsData;if(t){if(!tk(t))throw new TypeError("Data must implement the interface of DataSet or DataView");this.itemsData=rk(t)}else this.itemsData=null;if(i&&(bd(lk).call(lk,this.itemListeners,(function(t,e){i.off(e,t)})),i.dispose(),e=i.getIds(),this._onRemove(e)),this.itemsData){var r=this.id;bd(lk).call(lk,this.itemListeners,(function(t,e){n.itemsData.on(e,t,r)})),e=this.itemsData.getIds(),this._onAdd(e)}},GC.prototype.setGroups=function(t){var e,n=this;if(this.groupsData){bd(lk).call(lk,this.groupListeners,(function(t,e){n.groupsData.off(e,t)})),e=this.groupsData.getIds(),this.groupsData=null;for(var i=0;i<e.length;i++)this._removeGroup(e[i])}if(t){if(!tk(t))throw new TypeError("Data must implement the interface of DataSet or DataView");this.groupsData=t}else this.groupsData=null;if(this.groupsData){var r=this.id;bd(lk).call(lk,this.groupListeners,(function(t,e){n.groupsData.on(e,t,r)})),e=this.groupsData.getIds(),this._onAddGroups(e)}},GC.prototype._onUpdate=function(t){this._updateAllGroupData(t)},GC.prototype._onAdd=function(t){this._onUpdate(t)},GC.prototype._onRemove=function(t){this._onUpdate(t)},GC.prototype._onUpdateGroups=function(t){this._updateAllGroupData(null,t)},GC.prototype._onAddGroups=function(t){this._onUpdateGroups(t)},GC.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})},GC.prototype._removeGroup=function(t){this.groups.hasOwnProperty(t)&&("right"==this.groups[t].options.yAxisOrientation?(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])},GC.prototype._updateGroup=function(t,e){this.groups.hasOwnProperty(e)?(this.groups[e].update(t),"right"==this.groups[e].options.yAxisOrientation?(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 YC(t,e,this.options,this.groupsUsingDefaultStyles),"right"==this.groups[e].options.yAxisOrientation?(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()},GC.prototype._updateAllGroupData=function(t,e){if(null!=this.itemsData){var n={},i=this.itemsData.get(),r=this.itemsData.idProp,o={};t&&lp(t).call(t,(function(t){o[t]=t}));for(var s={},a=0;a<i.length;a++){var l=i[a],u=l.group;null==u&&(u=HC),s.hasOwnProperty(u)?s[u]++:s[u]=1}var c={};if(!e&&t)for(u in this.groups)if(this.groups.hasOwnProperty(u)){var h=(m=this.groups[u]).getItems();n[u]=Od(h).call(h,(function(t){return c[t[r]]=t[r],t[r]!==o[t[r]]}));var d=s[u];s[u]-=n[u].length,n[u].length<d&&(n[u][d-1]={})}for(a=0;a<i.length;a++)if(null==(u=(l=i[a]).group)&&(u=HC),e||!t||l[r]===o[l[r]]||!c.hasOwnProperty(l[r])){n.hasOwnProperty(u)||(n[u]=new Array(s[u]));var p=lk.bridgeObject(l);p.x=lk.convert(l.x,"Date"),p.end=lk.convert(l.end,"Date"),p.orginalY=l.y,p.y=Number(l.y),p[r]=l[r];var f=n[u].length-s[u]--;n[u][f]=p}for(u in this.groups)this.groups.hasOwnProperty(u)&&(n.hasOwnProperty(u)||(n[u]=new Array(0)));for(u in n)if(n.hasOwnProperty(u))if(0==n[u].length)this.groups.hasOwnProperty(u)&&this._removeGroup(u);else{var m=void 0;null!=this.groupsData&&(m=this.groupsData.get(u)),null==m&&(m={id:u,content:this.options.defaultGroup+u}),this._updateGroup(m,u),this.groups[u].setItems(n[u])}this.forceGraphUpdate=!0,this.body.emitter.emit("_change",{queue:!0})}},GC.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,i=n!=this.lastVisibleInterval;if(this.lastVisibleInterval=n,1==t&&(this.svg.style.width=lk.option.asSize(3*this.props.width),this.svg.style.left=lk.option.asSize(-this.props.width),-1==Og(e=this.options.height+"").call(e,"%")&&1!=this.updateSVGheightOnResize||(this.updateSVGheight=!0)),1==this.updateSVGheight?(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",1==t||1==i||1==this.abortedGraphUpdate||1==this.forceGraphUpdate)t=this._updateGraph()||t,this.forceGraphUpdate=!1,this.lastStart=this.body.range.start,this.svg.style.left=-this.props.width+"px";else if(0!=this.lastStart){var r=this.body.range.start-this.lastStart,o=this.body.range.end-this.body.range.start;if(0!=this.props.width){var s=r*(this.props.width/o);this.svg.style.left=-this.props.width-s+"px"}}return this.legendLeft.redraw(),this.legendRight.redraw(),t},GC.prototype._getSortedGroupIds=function(){var t=[];for(var e in this.groups)if(this.groups.hasOwnProperty(e)){var n=this.groups[e];1!=n.visible||void 0!==this.options.groups.visibility[e]&&1!=this.options.groups.visibility[e]||t.push({id:e,zIndex:n.options.zIndex})}lk.insertSort(t,(function(t,e){var n=t.zIndex,i=e.zIndex;return void 0===n&&(n=0),void 0===i&&(i=0),n==i?0:n<i?-1:1}));for(var i=new Array(t.length),r=0;r<t.length;r++)i[r]=t[r].id;return i},GC.prototype._updateGraph=function(){if(SC(this.svgElements),0!=this.props.width&&null!=this.itemsData){var t,e,n={},i=this.body.util.toGlobalTime(-this.body.domProps.root.width),r=this.body.util.toGlobalTime(2*this.body.domProps.root.width),o=this._getSortedGroupIds();if(o.length>0){var s={};for(this._getRelevantData(o,s,i,r),this._applySampling(o,s),e=0;e<o.length;e++)this._convertXcoordinates(s[o[e]]);if(this._getYRanges(o,s,n),1==this._updateYAxis(o,n))return DC(this.svgElements),this.abortedGraphUpdate=!0,!0;this.abortedGraphUpdate=!1;var a=void 0;for(e=0;e<o.length;e++)t=this.groups[o[e]],!0===this.options.stack&&"line"===this.options.style&&(null!=t.options.excludeFromStacking&&t.options.excludeFromStacking||(null!=a&&(this._stack(s[t.id],s[a.id]),1==t.options.shaded.enabled&&"group"!==t.options.shaded.orientation&&("top"==t.options.shaded.orientation&&"group"!==a.options.shaded.orientation?(a.options.shaded.orientation="group",a.options.shaded.groupId=t.id):(t.options.shaded.orientation="group",t.options.shaded.groupId=a.id))),a=t)),this._convertYcoordinates(s[o[e]],t);var l={};for(e=0;e<o.length;e++)if("line"===(t=this.groups[o[e]]).options.style&&1==t.options.shaded.enabled){var u=s[o[e]];if(null==u||0==u.length)continue;if(l.hasOwnProperty(o[e])||(l[o[e]]=LC.calcPath(u,t)),"group"===t.options.shaded.orientation){var c=t.options.shaded.groupId;if(-1===Og(o).call(o,c)){console.log(t.id+": Unknown shading group target given:"+c);continue}l.hasOwnProperty(c)||(l[c]=LC.calcPath(s[c],this.groups[c])),LC.drawShading(l[o[e]],t,l[c],this.framework)}else LC.drawShading(l[o[e]],t,void 0,this.framework)}for(FC.draw(o,s,this.framework),e=0;e<o.length;e++)if(t=this.groups[o[e]],s[o[e]].length>0)switch(t.options.style){case"line":l.hasOwnProperty(o[e])||(l[o[e]]=LC.calcPath(s[o[e]],t)),LC.draw(l[o[e]],t,this.framework);case"point":case"points":"point"!=t.options.style&&"points"!=t.options.style&&1!=t.options.drawPoints.enabled||jC.draw(s[o[e]],t,this.framework)}}}return DC(this.svgElements),!1},GC.prototype._stack=function(t,e){var n,i,r,o,s;n=0;for(var a=0;a<t.length;a++){o=void 0,s=void 0;for(var l=n;l<e.length;l++){if(e[l].x===t[a].x){o=e[l],s=e[l],n=l;break}if(e[l].x>t[a].x){s=e[l],o=0==l?s:e[l-1],n=l;break}}void 0===s&&(o=e[e.length-1],s=e[e.length-1]),i=s.x-o.x,r=s.y-o.y,t[a].y=0==i?t[a].orginalY+s.y:t[a].orginalY+r/i*(t[a].x-o.x)+o.y}},GC.prototype._getRelevantData=function(t,e,n,i){var r,o,s,a;if(t.length>0)for(o=0;o<t.length;o++){var l=(r=this.groups[t[o]]).getItems();if(1==fx(r.options)){var u=function(t,e){return t.getTime()==e.getTime()?0:t<e?-1:1},c=Math.max(0,lk.binarySearchValue(l,n,"x","before",u)),h=Math.min(l.length,lk.binarySearchValue(l,i,"x","after",u)+1);h<=0&&(h=l.length);var d=new Array(h-c);for(s=c;s<h;s++)a=r.itemsData[s],d[s-c]=a;e[t[o]]=d}else e[t[o]]=r.itemsData}},GC.prototype._applySampling=function(t,e){if(t.length>0)for(var n=0;n<t.length;n++)if(1==this.groups[t[n]].options.sampling){var i=e[t[n]];if(i.length>0){var r,o=i.length,s=o/(this.body.util.toGlobalScreen(i[i.length-1].x)-this.body.util.toGlobalScreen(i[0].x));r=Math.min(Math.ceil(.2*o),Math.max(1,Math.round(s)));for(var a=new Array(o),l=0;l<o;l+=r)a[Math.round(l/r)]=i[l];e[t[n]]=Zm(a).call(a,0,Math.round(o/r))}}},GC.prototype._getYRanges=function(t,e,n){var i,r,o,s,a=[],l=[];if(t.length>0){for(o=0;o<t.length;o++)i=e[t[o]],s=this.groups[t[o]].options,i.length>0&&(r=this.groups[t[o]],!0===s.stack&&"bar"===s.style?"left"===s.yAxisOrientation?a=fm(a).call(a,i):l=fm(l).call(l,i):n[t[o]]=r.getYRange(i,t[o]));FC.getStackedYRange(a,n,t,"__barStackLeft","left"),FC.getStackedYRange(l,n,t,"__barStackRight","right")}},GC.prototype._updateYAxis=function(t,e){var n,i,r=!1,o=!1,s=!1,a=1e9,l=1e9,u=-1e9,c=-1e9;if(t.length>0){for(var h=0;h<t.length;h++){var d=this.groups[t[h]];d&&"right"!=d.options.yAxisOrientation?(o=!0,a=1e9,u=-1e9):d&&d.options.yAxisOrientation&&(s=!0,l=1e9,c=-1e9)}for(h=0;h<t.length;h++)e.hasOwnProperty(t[h])&&!0!==e[t[h]].ignore&&(n=e[t[h]].min,i=e[t[h]].max,"right"!=e[t[h]].yAxisOrientation?(o=!0,a=a>n?n:a,u=u<i?i:u):(s=!0,l=l>n?n:l,c=c<i?i:c));1==o&&this.yAxisLeft.setRange(a,u),1==s&&this.yAxisRight.setRange(l,c)}r=this._toggleAxisVisiblity(o,this.yAxisLeft)||r,r=this._toggleAxisVisiblity(s,this.yAxisRight)||r,1==s&&1==o?(this.yAxisLeft.drawIcons=!0,this.yAxisRight.drawIcons=!0):(this.yAxisLeft.drawIcons=!1,this.yAxisRight.drawIcons=!1),this.yAxisRight.master=!o,this.yAxisRight.masterAxis=this.yAxisLeft,0==this.yAxisRight.master?(this.yAxisLeft.lineOffset=1==s?this.yAxisRight.width:0,r=this.yAxisLeft.redraw()||r,r=this.yAxisRight.redraw()||r):r=this.yAxisRight.redraw()||r;var p=["__barStackLeft","__barStackRight","__lineStackLeft","__lineStackRight"];for(h=0;h<p.length;h++)-1!=Og(t).call(t,p[h])&&Zm(t).call(t,Og(t).call(t,p[h]),1);return r},GC.prototype._toggleAxisVisiblity=function(t,e){var n=!1;return 0==t?e.dom.frame.parentNode&&0==e.hidden&&(e.hide(),n=!0):e.dom.frame.parentNode||1!=e.hidden||(e.show(),n=!0),n},GC.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,null!=t[n].end?t[n].screen_end=e(t[n].end)+this.props.width:t[n].screen_end=void 0},GC.prototype._convertYcoordinates=function(t,e){var n=this.yAxisLeft,i=Number(this.svg.style.height.replace("px",""));"right"==e.options.yAxisOrientation&&(n=this.yAxisRight);for(var r=0;r<t.length;r++)t[r].screen_y=Math.round(n.convertValue(t[r].y));e.setZeroPosition(Math.min(i,n.convertValue(0)))};var BC="string",WC="boolean",VC="number",UC="date",qC="object",XC="moment",$C={configure:{enabled:{boolean:WC},filter:{boolean:WC,function:"function"},container:{dom:"dom"},__type__:{object:qC,boolean:WC,function:"function"}},alignCurrentTime:{string:BC,undefined:"undefined"},yAxisOrientation:{string:["left","right"]},defaultGroup:{string:BC},sort:{boolean:WC},sampling:{boolean:WC},stack:{boolean:WC},graphHeight:{string:BC,number:VC},shaded:{enabled:{boolean:WC},orientation:{string:["bottom","top","zero","group"]},groupId:{object:qC},__type__:{boolean:WC,object:qC}},style:{string:["line","bar","points"]},barChart:{width:{number:VC},minWidth:{number:VC},sideBySide:{boolean:WC},align:{string:["left","center","right"]},__type__:{object:qC}},interpolation:{enabled:{boolean:WC},parametrization:{string:["centripetal","chordal","uniform"]},alpha:{number:VC},__type__:{object:qC,boolean:WC}},drawPoints:{enabled:{boolean:WC},onRender:{function:"function"},size:{number:VC},style:{string:["square","circle"]},__type__:{object:qC,boolean:WC,function:"function"}},dataAxis:{showMinorLabels:{boolean:WC},showMajorLabels:{boolean:WC},showWeekScale:{boolean:WC},icons:{boolean:WC},width:{string:BC,number:VC},visible:{boolean:WC},alignZeros:{boolean:WC},left:{range:{min:{number:VC,undefined:"undefined"},max:{number:VC,undefined:"undefined"},__type__:{object:qC}},format:{function:"function"},title:{text:{string:BC,number:VC,undefined:"undefined"},style:{string:BC,undefined:"undefined"},__type__:{object:qC}},__type__:{object:qC}},right:{range:{min:{number:VC,undefined:"undefined"},max:{number:VC,undefined:"undefined"},__type__:{object:qC}},format:{function:"function"},title:{text:{string:BC,number:VC,undefined:"undefined"},style:{string:BC,undefined:"undefined"},__type__:{object:qC}},__type__:{object:qC}},__type__:{object:qC}},legend:{enabled:{boolean:WC},icons:{boolean:WC},left:{visible:{boolean:WC},position:{string:["top-right","bottom-right","top-left","bottom-left"]},__type__:{object:qC}},right:{visible:{boolean:WC},position:{string:["top-right","bottom-right","top-left","bottom-left"]},__type__:{object:qC}},__type__:{object:qC,boolean:WC}},groups:{visibility:{any:"any"},__type__:{object:qC}},autoResize:{boolean:WC},throttleRedraw:{number:VC},clickToUse:{boolean:WC},end:{number:VC,date:UC,string:BC,moment:XC},format:{minorLabels:{millisecond:{string:BC,undefined:"undefined"},second:{string:BC,undefined:"undefined"},minute:{string:BC,undefined:"undefined"},hour:{string:BC,undefined:"undefined"},weekday:{string:BC,undefined:"undefined"},day:{string:BC,undefined:"undefined"},week:{string:BC,undefined:"undefined"},month:{string:BC,undefined:"undefined"},quarter:{string:BC,undefined:"undefined"},year:{string:BC,undefined:"undefined"},__type__:{object:qC}},majorLabels:{millisecond:{string:BC,undefined:"undefined"},second:{string:BC,undefined:"undefined"},minute:{string:BC,undefined:"undefined"},hour:{string:BC,undefined:"undefined"},weekday:{string:BC,undefined:"undefined"},day:{string:BC,undefined:"undefined"},week:{string:BC,undefined:"undefined"},month:{string:BC,undefined:"undefined"},quarter:{string:BC,undefined:"undefined"},year:{string:BC,undefined:"undefined"},__type__:{object:qC}},__type__:{object:qC}},moment:{function:"function"},height:{string:BC,number:VC},hiddenDates:{start:{date:UC,number:VC,string:BC,moment:XC},end:{date:UC,number:VC,string:BC,moment:XC},repeat:{string:BC},__type__:{object:qC,array:"array"}},locale:{string:BC},locales:{__any__:{any:"any"},__type__:{object:qC}},max:{date:UC,number:VC,string:BC,moment:XC},maxHeight:{number:VC,string:BC},maxMinorChars:{number:VC},min:{date:UC,number:VC,string:BC,moment:XC},minHeight:{number:VC,string:BC},moveable:{boolean:WC},multiselect:{boolean:WC},orientation:{string:BC},showCurrentTime:{boolean:WC},showMajorLabels:{boolean:WC},showMinorLabels:{boolean:WC},showWeekScale:{boolean:WC},snap:{function:"function",null:"null"},start:{date:UC,number:VC,string:BC,moment:XC},timeAxis:{scale:{string:BC,undefined:"undefined"},step:{number:VC,undefined:"undefined"},__type__:{object:qC}},width:{string:BC,number:VC},zoomable:{boolean:WC},zoomKey:{string:["ctrlKey","altKey","metaKey",""]},zoomMax:{number:VC},zoomMin:{number:VC},zIndex:{number:VC},__type__:{object:qC}},KC={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 QC(t,e,n,i){var r,o,s,a,l,u,c;if(!zh(n)&&!tk(n)&&n instanceof Object){var h=i;i=n,n=h}i&&i.throttleRedraw&&console.warn('Graph2d option "throttleRedraw" is DEPRICATED and no longer supported. It will be removed in the next MAJOR release.');var d=this;this.defaultOptions={start:null,end:null,autoResize:!0,orientation:{axis:"bottom",item:"bottom"},moment:wd,width:null,height:null,maxHeight:null,minHeight:null},this.options=lk.deepExtend({},this.defaultOptions),this._create(t),this.components=[],this.body={dom:this.dom,domProps:this.props,emitter:{on:Hh(r=this.on).call(r,this),off:Hh(o=this.off).call(o,this),emit:Hh(s=this.emit).call(s,this)},hiddenDates:[],util:{getScale:function(){return d.timeAxis.step.scale},getStep:function(){return d.timeAxis.step.step},toScreen:Hh(a=d._toScreen).call(a,d),toGlobalScreen:Hh(l=d._toGlobalScreen).call(l,d),toTime:Hh(u=d._toTime).call(u,d),toGlobalTime:Hh(c=d._toGlobalTime).call(c,d)}},this.range=new Mx(this.body),this.components.push(this.range),this.body.range=this.range,this.timeAxis=new Ux(this.body),this.components.push(this.timeAxis),this.currentTime=new fS(this.body),this.components.push(this.currentTime),this.linegraph=new GC(this.body),this.components.push(this.linegraph),this.itemsData=null,this.groupsData=null,this.on("tap",(function(t){d.emit("click",d.getEventProperties(t))})),this.on("doubletap",(function(t){d.emit("doubleClick",d.getEventProperties(t))})),this.dom.root.oncontextmenu=function(t){d.emit("contextmenu",d.getEventProperties(t))},this.initialFitDone=!1,this.on("changed",(function(){if(null!=d.itemsData){if(!d.initialFitDone&&!d.options.rollingMode)if(d.initialFitDone=!0,null!=d.options.start||null!=d.options.end){if(null==d.options.start||null==d.options.end)var t=d.getItemRange();var e=null!=d.options.start?d.options.start:t.min,n=null!=d.options.end?d.options.end:t.max;d.setWindow(e,n,{animation:!1})}else d.fit({animation:!1});d.initialDrawDone||!d.initialRangeChangeDone&&(d.options.start||d.options.end)&&!d.options.rollingMode||(d.initialDrawDone=!0,d.dom.root.style.visibility="visible",d.dom.loadingScreen.parentNode.removeChild(d.dom.loadingScreen),d.options.onInitialDrawComplete&&sd((function(){return d.options.onInitialDrawComplete()}),0))}})),i&&this.setOptions(i),n&&this.setGroups(n),e&&this.setItems(e),this._redraw()}QC.prototype=new dS,QC.prototype.setOptions=function(t){!0===sC.validate(t,$C)&&console.log("%cErrors have been found in the supplied options object.",oC),dS.prototype.setOptions.call(this,t)},QC.prototype.setItems=function(t){var e,n=null==this.itemsData;if(e=t?tk(t)?rk(t):rk(new r.DataSet(t)):null,this.itemsData&&this.itemsData.dispose(),this.itemsData=e,this.linegraph&&this.linegraph.setItems(null!=e?e.rawDS:null),n)if(null!=this.options.start||null!=this.options.end){var i=null!=this.options.start?this.options.start:null,o=null!=this.options.end?this.options.end:null;this.setWindow(i,o,{animation:!1})}else this.fit({animation:!1})},QC.prototype.setGroups=function(t){var e;e=t?tk(t)?t:new r.DataSet(t):null,this.groupsData=e,this.linegraph.setGroups(e)},QC.prototype.getLegend=function(t,e,n){return void 0===e&&(e=15),void 0===n&&(n=15),void 0!==this.linegraph.groups[t]?this.linegraph.groups[t].getLegend(e,n):"cannot find group:'"+t+"'"},QC.prototype.isGroupVisible=function(t){return void 0!==this.linegraph.groups[t]&&this.linegraph.groups[t].visible&&(void 0===this.linegraph.options.groups.visibility[t]||1==this.linegraph.options.groups.visibility[t])},QC.prototype.getDataRange=function(){var t=null,e=null;for(var n in this.linegraph.groups)if(this.linegraph.groups.hasOwnProperty(n)&&1==this.linegraph.groups[n].visible)for(var i=0;i<this.linegraph.groups[n].itemsData.length;i++){var r=this.linegraph.groups[n].itemsData[i],o=lk.convert(r.x,"Date").valueOf();t=null==t||t>o?o:t,e=null==e||e<o?o:e}return{min:null!=t?new Date(t):null,max:null!=e?new Date(e):null}},QC.prototype.getEventProperties=function(t){var e=t.center?t.center.x:t.clientX,n=t.center?t.center.y:t.clientY,i=e-lk.getAbsoluteLeft(this.dom.centerContainer),r=n-lk.getAbsoluteTop(this.dom.centerContainer),o=this._toTime(i),s=hS.customTimeFromTarget(t),a=lk.getTarget(t),l=null;lk.hasParent(a,this.timeAxis.dom.foreground)||this.timeAxis2&&lk.hasParent(a,this.timeAxis2.dom.foreground)?l="axis":lk.hasParent(a,this.linegraph.yAxisLeft.dom.frame)||lk.hasParent(a,this.linegraph.yAxisRight.dom.frame)?l="data-axis":lk.hasParent(a,this.linegraph.legendLeft.dom.frame)||lk.hasParent(a,this.linegraph.legendRight.dom.frame)?l="legend":null!=s?l="custom-time":lk.hasParent(a,this.currentTime.bar)?l="current-time":lk.hasParent(a,this.dom.center)&&(l="background");var u=[],c=this.linegraph.yAxisLeft,h=this.linegraph.yAxisRight;return!c.hidden&&this.itemsData.length>0&&u.push(c.screenToValue(r)),!h.hidden&&this.itemsData.length>0&&u.push(h.screenToValue(r)),{event:t,customTime:s?s.options.id:null,what:l,pageX:t.srcEvent?t.srcEvent.pageX:t.pageX,pageY:t.srcEvent?t.srcEvent.pageY:t.pageY,x:i,y:r,time:o,value:u}},QC.prototype._createConfigurator=function(){return new yC(this,this.dom.container,KC)};var ZC=function(){try{return navigator?navigator.languages&&navigator.languages.length?navigator.languages:navigator.userLanguage||navigator.language||navigator.browserLanguage||"en":"en"}catch(t){return"en"}}();n.locale(ZC);var JC={Core:dS,DateUtil:Ox,Range:Mx,stack:bT,TimeStep:Wx,components:{items:{Item:TT,BackgroundItem:NT,BoxItem:OT,ClusterItem:UT,PointItem:MT,RangeItem:AT},BackgroundGroup:xT,Component:wk,CurrentTime:fS,CustomTime:hS,DataAxis:NC,DataScale:MC,GraphGroup:YC,Group:_T,ItemSet:nC,Legend:zC,LineGraph:GC,TimeAxis:Ux}};t.Graph2d=QC,t.Timeline=wC,t.timeline=JC}(V.exports,$(),Z());var J=V.exports;const tt=t=>{const e=new Date;return t>e?e:t},et=(e,i)=>{let r,o;return(e.end.getTime()-e.start.getTime())/1e3<=3600?(r=G(e.start),o=B(e.end)):(r=n(e.start),o=W(e.end)),i?.endCap&&(o=function(e){const n=t(e);return n.setSeconds(59,999),n}(tt(o))),{start:r,end:o}};var nt={exports:{}};
|
||
/**
|
||
* 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.
|
||
*/!function(t){function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function r(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var o={exports:{}},s=function(t){return t&&t.Math===Math&&t},a=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof i&&i)||function(){return this}()||i||Function("return this")(),l=function(t){try{return!!t()}catch(t){return!0}},u=!l((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),c=u,h=Function.prototype,d=h.apply,p=h.call,f="object"==typeof Reflect&&Reflect.apply||(c?p.bind(d):function(){return p.apply(d,arguments)}),m=u,v=Function.prototype,g=v.call,y=m&&v.bind.bind(g,g),b=m?y:function(t){return function(){return g.apply(t,arguments)}},w=b,_=w({}.toString),k=w("".slice),x=function(t){return k(_(t),8,-1)},S=x,D=b,T=function(t){if("Function"===S(t))return D(t)},C="object"==typeof document&&document.all,O={all:C,IS_HTMLDDA:void 0===C&&void 0!==C},E=O.all,M=O.IS_HTMLDDA?function(t){return"function"==typeof t||t===E}:function(t){return"function"==typeof t},P={},A=!l((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),I=u,N=Function.prototype.call,j=I?N.bind(N):function(){return N.apply(N,arguments)},R={},F={}.propertyIsEnumerable,L=Object.getOwnPropertyDescriptor,Y=L&&!F.call({1:2},1);R.f=Y?function(t){var e=L(this,t);return!!e&&e.enumerable}:F;var z,H,G=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},B=l,W=x,V=Object,U=b("".split),q=B((function(){return!V("z").propertyIsEnumerable(0)}))?function(t){return"String"===W(t)?U(t,""):V(t)}:V,X=function(t){return null==t},$=X,K=TypeError,Q=function(t){if($(t))throw new K("Can't call method on "+t);return t},Z=q,J=Q,tt=function(t){return Z(J(t))},et=M,nt=O.all,it=O.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:et(t)||t===nt}:function(t){return"object"==typeof t?null!==t:et(t)},rt={},ot=rt,st=a,at=M,lt=function(t){return at(t)?t:void 0},ut=function(t,e){return arguments.length<2?lt(ot[t])||lt(st[t]):ot[t]&&ot[t][e]||st[t]&&st[t][e]},ct=b({}.isPrototypeOf),ht="undefined"!=typeof navigator&&String(navigator.userAgent)||"",dt=a,pt=ht,ft=dt.process,mt=dt.Deno,vt=ft&&ft.versions||mt&&mt.version,gt=vt&&vt.v8;gt&&(H=(z=gt.split("."))[0]>0&&z[0]<4?1:+(z[0]+z[1])),!H&&pt&&(!(z=pt.match(/Edge\/(\d+)/))||z[1]>=74)&&(z=pt.match(/Chrome\/(\d+)/))&&(H=+z[1]);var yt=H,bt=yt,wt=l,_t=a.String,kt=!!Object.getOwnPropertySymbols&&!wt((function(){var t=Symbol("symbol detection");return!_t(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&bt&&bt<41})),xt=kt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,St=ut,Dt=M,Tt=ct,Ct=Object,Ot=xt?function(t){return"symbol"==typeof t}:function(t){var e=St("Symbol");return Dt(e)&&Tt(e.prototype,Ct(t))},Et=String,Mt=function(t){try{return Et(t)}catch(t){return"Object"}},Pt=M,At=Mt,It=TypeError,Nt=function(t){if(Pt(t))return t;throw new It(At(t)+" is not a function")},jt=Nt,Rt=X,Ft=function(t,e){var n=t[e];return Rt(n)?void 0:jt(n)},Lt=j,Yt=M,zt=it,Ht=TypeError,Gt={exports:{}},Bt=a,Wt=Object.defineProperty,Vt=function(t,e){try{Wt(Bt,t,{value:e,configurable:!0,writable:!0})}catch(n){Bt[t]=e}return e},Ut="__core-js_shared__",qt=a[Ut]||Vt(Ut,{}),Xt=qt;(Gt.exports=function(t,e){return Xt[t]||(Xt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.33.2",mode:"pure",copyright:"© 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 $t=Gt.exports,Kt=Q,Qt=Object,Zt=function(t){return Qt(Kt(t))},Jt=Zt,te=b({}.hasOwnProperty),ee=Object.hasOwn||function(t,e){return te(Jt(t),e)},ne=b,ie=0,re=Math.random(),oe=ne(1..toString),se=function(t){return"Symbol("+(void 0===t?"":t)+")_"+oe(++ie+re,36)},ae=$t,le=ee,ue=se,ce=kt,he=xt,de=a.Symbol,pe=ae("wks"),fe=he?de.for||de:de&&de.withoutSetter||ue,me=function(t){return le(pe,t)||(pe[t]=ce&&le(de,t)?de[t]:fe("Symbol."+t)),pe[t]},ve=j,ge=it,ye=Ot,be=Ft,we=function(t,e){var n,i;if("string"===e&&Yt(n=t.toString)&&!zt(i=Lt(n,t)))return i;if(Yt(n=t.valueOf)&&!zt(i=Lt(n,t)))return i;if("string"!==e&&Yt(n=t.toString)&&!zt(i=Lt(n,t)))return i;throw new Ht("Can't convert object to primitive value")},_e=TypeError,ke=me("toPrimitive"),xe=function(t,e){if(!ge(t)||ye(t))return t;var n,i=be(t,ke);if(i){if(void 0===e&&(e="default"),n=ve(i,t,e),!ge(n)||ye(n))return n;throw new _e("Can't convert object to primitive value")}return void 0===e&&(e="number"),we(t,e)},Se=Ot,De=function(t){var e=xe(t,"string");return Se(e)?e:e+""},Te=it,Ce=a.document,Oe=Te(Ce)&&Te(Ce.createElement),Ee=function(t){return Oe?Ce.createElement(t):{}},Me=Ee,Pe=!A&&!l((function(){return 7!==Object.defineProperty(Me("div"),"a",{get:function(){return 7}}).a})),Ae=A,Ie=j,Ne=R,je=G,Re=tt,Fe=De,Le=ee,Ye=Pe,ze=Object.getOwnPropertyDescriptor;P.f=Ae?ze:function(t,e){if(t=Re(t),e=Fe(e),Ye)try{return ze(t,e)}catch(t){}if(Le(t,e))return je(!Ie(Ne.f,t,e),t[e])};var He=l,Ge=M,Be=/#|\.prototype\./,We=function(t,e){var n=Ue[Ve(t)];return n===Xe||n!==qe&&(Ge(e)?He(e):!!e)},Ve=We.normalize=function(t){return String(t).replace(Be,".").toLowerCase()},Ue=We.data={},qe=We.NATIVE="N",Xe=We.POLYFILL="P",$e=We,Ke=Nt,Qe=u,Ze=T(T.bind),Je=function(t,e){return Ke(t),void 0===e?t:Qe?Ze(t,e):function(){return t.apply(e,arguments)}},tn={},en=A&&l((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),nn=it,rn=String,on=TypeError,sn=function(t){if(nn(t))return t;throw new on(rn(t)+" is not an object")},an=A,ln=Pe,un=en,cn=sn,hn=De,dn=TypeError,pn=Object.defineProperty,fn=Object.getOwnPropertyDescriptor,mn="enumerable",vn="configurable",gn="writable";tn.f=an?un?function(t,e,n){if(cn(t),e=hn(e),cn(n),"function"==typeof t&&"prototype"===e&&"value"in n&&gn in n&&!n[gn]){var i=fn(t,e);i&&i[gn]&&(t[e]=n.value,n={configurable:vn in n?n[vn]:i[vn],enumerable:mn in n?n[mn]:i[mn],writable:!1})}return pn(t,e,n)}:pn:function(t,e,n){if(cn(t),e=hn(e),cn(n),ln)try{return pn(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new dn("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var yn=tn,bn=G,wn=A?function(t,e,n){return yn.f(t,e,bn(1,n))}:function(t,e,n){return t[e]=n,t},_n=a,kn=f,xn=T,Sn=M,Dn=P.f,Tn=$e,Cn=rt,On=Je,En=wn,Mn=ee,Pn=function(t){var e=function(n,i,r){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,i)}return new t(n,i,r)}return kn(t,this,arguments)};return e.prototype=t.prototype,e},An=function(t,e){var n,i,r,o,s,a,l,u,c,h=t.target,d=t.global,p=t.stat,f=t.proto,m=d?_n:p?_n[h]:(_n[h]||{}).prototype,v=d?Cn:Cn[h]||En(Cn,h,{})[h],g=v.prototype;for(o in e)i=!(n=Tn(d?o:h+(p?".":"#")+o,t.forced))&&m&&Mn(m,o),a=v[o],i&&(l=t.dontCallGetSet?(c=Dn(m,o))&&c.value:m[o]),s=i&&l?l:e[o],i&&typeof a==typeof s||(u=t.bind&&i?On(s,_n):t.wrap&&i?Pn(s):f&&Sn(s)?xn(s):s,(t.sham||s&&s.sham||a&&a.sham)&&En(u,"sham",!0),En(v,o,u),f&&(Mn(Cn,r=h+"Prototype")||En(Cn,r,{}),En(Cn[r],o,s),t.real&&g&&(n||!g[o])&&En(g,o,s)))},In=An,Nn=A,jn=tn.f;In({target:"Object",stat:!0,forced:Object.defineProperty!==jn,sham:!Nn},{defineProperty:jn});var Rn=rt.Object,Fn=o.exports=function(t,e,n){return Rn.defineProperty(t,e,n)};Rn.defineProperty.sham&&(Fn.sham=!0);var Ln=o.exports,Yn=Ln,zn=r(Yn),Hn=x,Gn=Array.isArray||function(t){return"Array"===Hn(t)},Bn=Math.ceil,Wn=Math.floor,Vn=Math.trunc||function(t){var e=+t;return(e>0?Wn:Bn)(e)},Un=function(t){var e=+t;return e!=e||0===e?0:Vn(e)},qn=Un,Xn=Math.min,$n=function(t){return t>0?Xn(qn(t),9007199254740991):0},Kn=function(t){return $n(t.length)},Qn=TypeError,Zn=function(t){if(t>9007199254740991)throw Qn("Maximum allowed index exceeded");return t},Jn=De,ti=tn,ei=G,ni=function(t,e,n){var i=Jn(e);i in t?ti.f(t,i,ei(0,n)):t[i]=n},ii={};ii[me("toStringTag")]="z";var ri="[object z]"===String(ii),oi=ri,si=M,ai=x,li=me("toStringTag"),ui=Object,ci="Arguments"===ai(function(){return arguments}()),hi=oi?ai:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=ui(t),li))?n:ci?ai(e):"Object"===(i=ai(e))&&si(e.callee)?"Arguments":i},di=M,pi=qt,fi=b(Function.toString);di(pi.inspectSource)||(pi.inspectSource=function(t){return fi(t)});var mi=pi.inspectSource,vi=b,gi=l,yi=M,bi=hi,wi=mi,_i=function(){},ki=[],xi=ut("Reflect","construct"),Si=/^\s*(?:class|function)\b/,Di=vi(Si.exec),Ti=!Si.test(_i),Ci=function(t){if(!yi(t))return!1;try{return xi(_i,ki,t),!0}catch(t){return!1}},Oi=function(t){if(!yi(t))return!1;switch(bi(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Ti||!!Di(Si,wi(t))}catch(t){return!0}};Oi.sham=!0;var Ei=!xi||gi((function(){var t;return Ci(Ci.call)||!Ci(Object)||!Ci((function(){t=!0}))||t}))?Oi:Ci,Mi=Gn,Pi=Ei,Ai=it,Ii=me("species"),Ni=Array,ji=function(t){var e;return Mi(t)&&(e=t.constructor,(Pi(e)&&(e===Ni||Mi(e.prototype))||Ai(e)&&null===(e=e[Ii]))&&(e=void 0)),void 0===e?Ni:e},Ri=function(t,e){return new(ji(t))(0===e?0:e)},Fi=l,Li=yt,Yi=me("species"),zi=function(t){return Li>=51||!Fi((function(){var e=[];return(e.constructor={})[Yi]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Hi=An,Gi=l,Bi=Gn,Wi=it,Vi=Zt,Ui=Kn,qi=Zn,Xi=ni,$i=Ri,Ki=zi,Qi=yt,Zi=me("isConcatSpreadable"),Ji=Qi>=51||!Gi((function(){var t=[];return t[Zi]=!1,t.concat()[0]!==t})),tr=function(t){if(!Wi(t))return!1;var e=t[Zi];return void 0!==e?!!e:Bi(t)};Hi({target:"Array",proto:!0,arity:1,forced:!Ji||!Ki("concat")},{concat:function(t){var e,n,i,r,o,s=Vi(this),a=$i(s,0),l=0;for(e=-1,i=arguments.length;e<i;e++)if(tr(o=-1===e?s:arguments[e]))for(r=Ui(o),qi(l+r),n=0;n<r;n++,l++)n in o&&Xi(a,l,o[n]);else qi(l+1),Xi(a,l++,o);return a.length=l,a}});var er=hi,nr=String,ir=function(t){if("Symbol"===er(t))throw new TypeError("Cannot convert a Symbol value to a string");return nr(t)},rr={},or=Un,sr=Math.max,ar=Math.min,lr=function(t,e){var n=or(t);return n<0?sr(n+e,0):ar(n,e)},ur=tt,cr=lr,hr=Kn,dr=function(t){return function(e,n,i){var r,o=ur(e),s=hr(o),a=cr(i,s);if(t&&n!=n){for(;s>a;)if((r=o[a++])!=r)return!0}else for(;s>a;a++)if((t||a in o)&&o[a]===n)return t||a||0;return!t&&-1}},pr={includes:dr(!0),indexOf:dr(!1)},fr={},mr=ee,vr=tt,gr=pr.indexOf,yr=fr,br=b([].push),wr=function(t,e){var n,i=vr(t),r=0,o=[];for(n in i)!mr(yr,n)&&mr(i,n)&&br(o,n);for(;e.length>r;)mr(i,n=e[r++])&&(~gr(o,n)||br(o,n));return o},_r=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],kr=wr,xr=_r,Sr=Object.keys||function(t){return kr(t,xr)},Dr=A,Tr=en,Cr=tn,Or=sn,Er=tt,Mr=Sr;rr.f=Dr&&!Tr?Object.defineProperties:function(t,e){Or(t);for(var n,i=Er(e),r=Mr(e),o=r.length,s=0;o>s;)Cr.f(t,n=r[s++],i[n]);return t};var Pr,Ar=ut("document","documentElement"),Ir=se,Nr=$t("keys"),jr=function(t){return Nr[t]||(Nr[t]=Ir(t))},Rr=sn,Fr=rr,Lr=_r,Yr=fr,zr=Ar,Hr=Ee,Gr="prototype",Br="script",Wr=jr("IE_PROTO"),Vr=function(){},Ur=function(t){return"<"+Br+">"+t+"</"+Br+">"},qr=function(t){t.write(Ur("")),t.close();var e=t.parentWindow.Object;return t=null,e},Xr=function(){try{Pr=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;Xr="undefined"!=typeof document?document.domain&&Pr?qr(Pr):(e=Hr("iframe"),n="java"+Br+":",e.style.display="none",zr.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(Ur("document.F=Object")),t.close(),t.F):qr(Pr);for(var i=Lr.length;i--;)delete Xr[Gr][Lr[i]];return Xr()};Yr[Wr]=!0;var $r=Object.create||function(t,e){var n;return null!==t?(Vr[Gr]=Rr(t),n=new Vr,Vr[Gr]=null,n[Wr]=t):n=Xr(),void 0===e?n:Fr.f(n,e)},Kr={},Qr=wr,Zr=_r.concat("length","prototype");Kr.f=Object.getOwnPropertyNames||function(t){return Qr(t,Zr)};var Jr={},to=lr,eo=Kn,no=ni,io=Array,ro=Math.max,oo=function(t,e,n){for(var i=eo(t),r=to(e,i),o=to(void 0===n?i:n,i),s=io(ro(o-r,0)),a=0;r<o;r++,a++)no(s,a,t[r]);return s.length=a,s},so=x,ao=tt,lo=Kr.f,uo=oo,co="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Jr.f=function(t){return co&&"Window"===so(t)?function(t){try{return lo(t)}catch(t){return uo(co)}}(t):lo(ao(t))};var ho={};ho.f=Object.getOwnPropertySymbols;var po=wn,fo=function(t,e,n,i){return i&&i.enumerable?t[e]=n:po(t,e,n),t},mo=tn,vo=function(t,e,n){return mo.f(t,e,n)},go={},yo=me;go.f=yo;var bo,wo,_o,ko=rt,xo=ee,So=go,Do=tn.f,To=function(t){var e=ko.Symbol||(ko.Symbol={});xo(e,t)||Do(e,t,{value:So.f(t)})},Co=j,Oo=ut,Eo=me,Mo=fo,Po=function(){var t=Oo("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,i=Eo("toPrimitive");e&&!e[i]&&Mo(e,i,(function(t){return Co(n,this)}),{arity:1})},Ao=hi,Io=ri?{}.toString:function(){return"[object "+Ao(this)+"]"},No=ri,jo=tn.f,Ro=wn,Fo=ee,Lo=Io,Yo=me("toStringTag"),zo=function(t,e,n,i){if(t){var r=n?t:t.prototype;Fo(r,Yo)||jo(r,Yo,{configurable:!0,value:e}),i&&!No&&Ro(r,"toString",Lo)}},Ho=M,Go=a.WeakMap,Bo=Ho(Go)&&/native code/.test(String(Go)),Wo=a,Vo=it,Uo=wn,qo=ee,Xo=qt,$o=jr,Ko=fr,Qo="Object already initialized",Zo=Wo.TypeError,Jo=Wo.WeakMap;if(Bo||Xo.state){var ts=Xo.state||(Xo.state=new Jo);ts.get=ts.get,ts.has=ts.has,ts.set=ts.set,bo=function(t,e){if(ts.has(t))throw new Zo(Qo);return e.facade=t,ts.set(t,e),e},wo=function(t){return ts.get(t)||{}},_o=function(t){return ts.has(t)}}else{var es=$o("state");Ko[es]=!0,bo=function(t,e){if(qo(t,es))throw new Zo(Qo);return e.facade=t,Uo(t,es,e),e},wo=function(t){return qo(t,es)?t[es]:{}},_o=function(t){return qo(t,es)}}var ns={set:bo,get:wo,has:_o,enforce:function(t){return _o(t)?wo(t):bo(t,{})},getterFor:function(t){return function(e){var n;if(!Vo(e)||(n=wo(e)).type!==t)throw new Zo("Incompatible receiver, "+t+" required");return n}}},is=Je,rs=q,os=Zt,ss=Kn,as=Ri,ls=b([].push),us=function(t){var e=1===t,n=2===t,i=3===t,r=4===t,o=6===t,s=7===t,a=5===t||o;return function(l,u,c,h){for(var d,p,f=os(l),m=rs(f),v=is(u,c),g=ss(m),y=0,b=h||as,w=e?b(l,g):n||s?b(l,0):void 0;g>y;y++)if((a||y in m)&&(p=v(d=m[y],y,f),t))if(e)w[y]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return y;case 2:ls(w,d)}else switch(t){case 4:return!1;case 7:ls(w,d)}return o?-1:i||r?r:w}},cs={forEach:us(0),map:us(1),filter:us(2),some:us(3),every:us(4),find:us(5),findIndex:us(6),filterReject:us(7)},hs=An,ds=a,ps=j,fs=b,ms=A,vs=kt,gs=l,ys=ee,bs=ct,ws=sn,_s=tt,ks=De,xs=ir,Ss=G,Ds=$r,Ts=Sr,Cs=Kr,Os=Jr,Es=ho,Ms=P,Ps=tn,As=rr,Is=R,Ns=fo,js=vo,Rs=$t,Fs=fr,Ls=se,Ys=me,zs=go,Hs=To,Gs=Po,Bs=zo,Ws=ns,Vs=cs.forEach,Us=jr("hidden"),qs="Symbol",Xs="prototype",$s=Ws.set,Ks=Ws.getterFor(qs),Qs=Object[Xs],Zs=ds.Symbol,Js=Zs&&Zs[Xs],ta=ds.RangeError,ea=ds.TypeError,na=ds.QObject,ia=Ms.f,ra=Ps.f,oa=Os.f,sa=Is.f,aa=fs([].push),la=Rs("symbols"),ua=Rs("op-symbols"),ca=Rs("wks"),ha=!na||!na[Xs]||!na[Xs].findChild,da=function(t,e,n){var i=ia(Qs,e);i&&delete Qs[e],ra(t,e,n),i&&t!==Qs&&ra(Qs,e,i)},pa=ms&&gs((function(){return 7!==Ds(ra({},"a",{get:function(){return ra(this,"a",{value:7}).a}})).a}))?da:ra,fa=function(t,e){var n=la[t]=Ds(Js);return $s(n,{type:qs,tag:t,description:e}),ms||(n.description=e),n},ma=function(t,e,n){t===Qs&&ma(ua,e,n),ws(t);var i=ks(e);return ws(n),ys(la,i)?(n.enumerable?(ys(t,Us)&&t[Us][i]&&(t[Us][i]=!1),n=Ds(n,{enumerable:Ss(0,!1)})):(ys(t,Us)||ra(t,Us,Ss(1,{})),t[Us][i]=!0),pa(t,i,n)):ra(t,i,n)},va=function(t,e){ws(t);var n=_s(e),i=Ts(n).concat(wa(n));return Vs(i,(function(e){ms&&!ps(ga,n,e)||ma(t,e,n[e])})),t},ga=function(t){var e=ks(t),n=ps(sa,this,e);return!(this===Qs&&ys(la,e)&&!ys(ua,e))&&(!(n||!ys(this,e)||!ys(la,e)||ys(this,Us)&&this[Us][e])||n)},ya=function(t,e){var n=_s(t),i=ks(e);if(n!==Qs||!ys(la,i)||ys(ua,i)){var r=ia(n,i);return!r||!ys(la,i)||ys(n,Us)&&n[Us][i]||(r.enumerable=!0),r}},ba=function(t){var e=oa(_s(t)),n=[];return Vs(e,(function(t){ys(la,t)||ys(Fs,t)||aa(n,t)})),n},wa=function(t){var e=t===Qs,n=oa(e?ua:_s(t)),i=[];return Vs(n,(function(t){!ys(la,t)||e&&!ys(Qs,t)||aa(i,la[t])})),i};vs||(Zs=function(){if(bs(Js,this))throw new ea("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?xs(arguments[0]):void 0,e=Ls(t),n=function(t){var i=void 0===this?ds:this;i===Qs&&ps(n,ua,t),ys(i,Us)&&ys(i[Us],e)&&(i[Us][e]=!1);var r=Ss(1,t);try{pa(i,e,r)}catch(t){if(!(t instanceof ta))throw t;da(i,e,r)}};return ms&&ha&&pa(Qs,e,{configurable:!0,set:n}),fa(e,t)},Ns(Js=Zs[Xs],"toString",(function(){return Ks(this).tag})),Ns(Zs,"withoutSetter",(function(t){return fa(Ls(t),t)})),Is.f=ga,Ps.f=ma,As.f=va,Ms.f=ya,Cs.f=Os.f=ba,Es.f=wa,zs.f=function(t){return fa(Ys(t),t)},ms&&js(Js,"description",{configurable:!0,get:function(){return Ks(this).description}})),hs({global:!0,constructor:!0,wrap:!0,forced:!vs,sham:!vs},{Symbol:Zs}),Vs(Ts(ca),(function(t){Hs(t)})),hs({target:qs,stat:!0,forced:!vs},{useSetter:function(){ha=!0},useSimple:function(){ha=!1}}),hs({target:"Object",stat:!0,forced:!vs,sham:!ms},{create:function(t,e){return void 0===e?Ds(t):va(Ds(t),e)},defineProperty:ma,defineProperties:va,getOwnPropertyDescriptor:ya}),hs({target:"Object",stat:!0,forced:!vs},{getOwnPropertyNames:ba}),Gs(),Bs(Zs,qs),Fs[Us]=!0;var _a=kt&&!!Symbol.for&&!!Symbol.keyFor,ka=An,xa=ut,Sa=ee,Da=ir,Ta=$t,Ca=_a,Oa=Ta("string-to-symbol-registry"),Ea=Ta("symbol-to-string-registry");ka({target:"Symbol",stat:!0,forced:!Ca},{for:function(t){var e=Da(t);if(Sa(Oa,e))return Oa[e];var n=xa("Symbol")(e);return Oa[e]=n,Ea[n]=e,n}});var Ma=An,Pa=ee,Aa=Ot,Ia=Mt,Na=_a,ja=$t("symbol-to-string-registry");Ma({target:"Symbol",stat:!0,forced:!Na},{keyFor:function(t){if(!Aa(t))throw new TypeError(Ia(t)+" is not a symbol");if(Pa(ja,t))return ja[t]}});var Ra=b([].slice),Fa=Gn,La=M,Ya=x,za=ir,Ha=b([].push),Ga=An,Ba=ut,Wa=f,Va=j,Ua=b,qa=l,Xa=M,$a=Ot,Ka=Ra,Qa=function(t){if(La(t))return t;if(Fa(t)){for(var e=t.length,n=[],i=0;i<e;i++){var r=t[i];"string"==typeof r?Ha(n,r):"number"!=typeof r&&"Number"!==Ya(r)&&"String"!==Ya(r)||Ha(n,za(r))}var o=n.length,s=!0;return function(t,e){if(s)return s=!1,e;if(Fa(this))return e;for(var i=0;i<o;i++)if(n[i]===t)return e}}},Za=kt,Ja=String,tl=Ba("JSON","stringify"),el=Ua(/./.exec),nl=Ua("".charAt),il=Ua("".charCodeAt),rl=Ua("".replace),ol=Ua(1..toString),sl=/[\uD800-\uDFFF]/g,al=/^[\uD800-\uDBFF]$/,ll=/^[\uDC00-\uDFFF]$/,ul=!Za||qa((function(){var t=Ba("Symbol")("stringify detection");return"[null]"!==tl([t])||"{}"!==tl({a:t})||"{}"!==tl(Object(t))})),cl=qa((function(){return'"\\udf06\\ud834"'!==tl("\udf06\ud834")||'"\\udead"'!==tl("\udead")})),hl=function(t,e){var n=Ka(arguments),i=Qa(e);if(Xa(i)||void 0!==t&&!$a(t))return n[1]=function(t,e){if(Xa(i)&&(e=Va(i,this,Ja(t),e)),!$a(e))return e},Wa(tl,null,n)},dl=function(t,e,n){var i=nl(n,e-1),r=nl(n,e+1);return el(al,t)&&!el(ll,r)||el(ll,t)&&!el(al,i)?"\\u"+ol(il(t,0),16):t};tl&&Ga({target:"JSON",stat:!0,arity:3,forced:ul||cl},{stringify:function(t,e,n){var i=Ka(arguments),r=Wa(ul?hl:tl,null,i);return cl&&"string"==typeof r?rl(r,sl,dl):r}});var pl=ho,fl=Zt;An({target:"Object",stat:!0,forced:!kt||l((function(){pl.f(1)}))},{getOwnPropertySymbols:function(t){var e=pl.f;return e?e(fl(t)):[]}}),To("asyncIterator"),To("hasInstance"),To("isConcatSpreadable"),To("iterator"),To("match"),To("matchAll"),To("replace"),To("search"),To("species"),To("split");var ml=Po;To("toPrimitive"),ml();var vl=ut,gl=zo;To("toStringTag"),gl(vl("Symbol"),"Symbol"),To("unscopables"),zo(a.JSON,"JSON",!0);var yl,bl,wl,_l=rt.Symbol,kl={},xl=A,Sl=ee,Dl=Function.prototype,Tl=xl&&Object.getOwnPropertyDescriptor,Cl=Sl(Dl,"name"),Ol={EXISTS:Cl,PROPER:Cl&&"something"===function(){}.name,CONFIGURABLE:Cl&&(!xl||xl&&Tl(Dl,"name").configurable)},El=!l((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Ml=ee,Pl=M,Al=Zt,Il=El,Nl=jr("IE_PROTO"),jl=Object,Rl=jl.prototype,Fl=Il?jl.getPrototypeOf:function(t){var e=Al(t);if(Ml(e,Nl))return e[Nl];var n=e.constructor;return Pl(n)&&e instanceof n?n.prototype:e instanceof jl?Rl:null},Ll=l,Yl=M,zl=it,Hl=$r,Gl=Fl,Bl=fo,Wl=me("iterator"),Vl=!1;[].keys&&("next"in(wl=[].keys())?(bl=Gl(Gl(wl)))!==Object.prototype&&(yl=bl):Vl=!0);var Ul=!zl(yl)||Ll((function(){var t={};return yl[Wl].call(t)!==t}));Yl((yl=Ul?{}:Hl(yl))[Wl])||Bl(yl,Wl,(function(){return this}));var ql={IteratorPrototype:yl,BUGGY_SAFARI_ITERATORS:Vl},Xl=ql.IteratorPrototype,$l=$r,Kl=G,Ql=zo,Zl=kl,Jl=function(){return this},tu=b,eu=Nt,nu=M,iu=String,ru=TypeError,ou=function(t,e,n){try{return tu(eu(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}},su=sn,au=function(t){if("object"==typeof t||nu(t))return t;throw new ru("Can't set "+iu(t)+" as a prototype")},lu=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=ou(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array}catch(t){}return function(n,i){return su(n),au(i),e?t(n,i):n.__proto__=i,n}}():void 0),uu=An,cu=j,hu=function(t,e,n,i){var r=e+" Iterator";return t.prototype=$l(Xl,{next:Kl(+!i,n)}),Ql(t,r,!1,!0),Zl[r]=Jl,t},du=Fl,pu=zo,fu=fo,mu=kl,vu=ql,gu=Ol.PROPER,yu=vu.BUGGY_SAFARI_ITERATORS,bu=me("iterator"),wu="keys",_u="values",ku="entries",xu=function(){return this},Su=function(t,e,n,i,r,o,s){hu(n,e,i);var a,l,u,c=function(t){if(t===r&&m)return m;if(!yu&&t&&t in p)return p[t];switch(t){case wu:case _u:case ku:return function(){return new n(this,t)}}return function(){return new n(this)}},h=e+" Iterator",d=!1,p=t.prototype,f=p[bu]||p["@@iterator"]||r&&p[r],m=!yu&&f||c(r),v="Array"===e&&p.entries||f;if(v&&(a=du(v.call(new t)))!==Object.prototype&&a.next&&(pu(a,h,!0,!0),mu[h]=xu),gu&&r===_u&&f&&f.name!==_u&&(d=!0,m=function(){return cu(f,this)}),r)if(l={values:c(_u),keys:o?m:c(wu),entries:c(ku)},s)for(u in l)(yu||d||!(u in p))&&fu(p,u,l[u]);else uu({target:e,proto:!0,forced:yu||d},l);return s&&p[bu]!==m&&fu(p,bu,m,{name:r}),mu[e]=m,l},Du=function(t,e){return{value:t,done:e}},Tu=tt,Cu=kl,Ou=ns;tn.f;var Eu=Su,Mu=Du,Pu="Array Iterator",Au=Ou.set,Iu=Ou.getterFor(Pu);Eu(Array,"Array",(function(t,e){Au(this,{type:Pu,target:Tu(t),index:0,kind:e})}),(function(){var t=Iu(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=void 0,Mu(void 0,!0);switch(t.kind){case"keys":return Mu(n,!1);case"values":return Mu(e[n],!1)}return Mu([n,e[n]],!1)}),"values"),Cu.Arguments=Cu.Array;var Nu={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},ju=a,Ru=hi,Fu=wn,Lu=kl,Yu=me("toStringTag");for(var zu in Nu){var Hu=ju[zu],Gu=Hu&&Hu.prototype;Gu&&Ru(Gu)!==Yu&&Fu(Gu,Yu,zu),Lu[zu]=Lu.Array}var Bu=_l,Wu=me,Vu=tn.f,Uu=Wu("metadata"),qu=Function.prototype;void 0===qu[Uu]&&Vu(qu,Uu,{value:null}),To("asyncDispose"),To("dispose"),To("metadata");var Xu=Bu,$u=b,Ku=ut("Symbol"),Qu=Ku.keyFor,Zu=$u(Ku.prototype.valueOf),Ju=Ku.isRegisteredSymbol||function(t){try{return void 0!==Qu(Zu(t))}catch(t){return!1}};An({target:"Symbol",stat:!0},{isRegisteredSymbol:Ju});for(var tc=$t,ec=ut,nc=b,ic=Ot,rc=me,oc=ec("Symbol"),sc=oc.isWellKnownSymbol,ac=ec("Object","getOwnPropertyNames"),lc=nc(oc.prototype.valueOf),uc=tc("wks"),cc=0,hc=ac(oc),dc=hc.length;cc<dc;cc++)try{var pc=hc[cc];ic(oc[pc])&&rc(pc)}catch(t){}var fc=function(t){if(sc&&sc(t))return!0;try{for(var e=lc(t),n=0,i=ac(uc),r=i.length;n<r;n++)if(uc[i[n]]==e)return!0}catch(t){}return!1};An({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:fc}),To("matcher"),To("observable"),An({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:Ju}),An({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:fc}),To("metadataKey"),To("patternMatch"),To("replaceAll");var mc=Xu,vc=r(mc),gc=b,yc=Un,bc=ir,wc=Q,_c=gc("".charAt),kc=gc("".charCodeAt),xc=gc("".slice),Sc=function(t){return function(e,n){var i,r,o=bc(wc(e)),s=yc(n),a=o.length;return s<0||s>=a?t?"":void 0:(i=kc(o,s))<55296||i>56319||s+1===a||(r=kc(o,s+1))<56320||r>57343?t?_c(o,s):i:t?xc(o,s,s+2):r-56320+(i-55296<<10)+65536}},Dc=(Sc(!1),Sc(!0)),Tc=ir,Cc=ns,Oc=Su,Ec=Du,Mc="String Iterator",Pc=Cc.set,Ac=Cc.getterFor(Mc);Oc(String,"String",(function(t){Pc(this,{type:Mc,string:Tc(t),index:0})}),(function(){var t,e=Ac(this),n=e.string,i=e.index;return i>=n.length?Ec(void 0,!0):(t=Dc(n,i),e.index+=t.length,Ec(t,!1))}));var Ic=go.f("iterator"),Nc=Ic,jc=r(Nc);function Rc(t){return Rc="function"==typeof vc&&"symbol"==typeof jc?function(t){return typeof t}:function(t){return t&&"function"==typeof vc&&t.constructor===vc&&t!==vc.prototype?"symbol":typeof t},Rc(t)}var Fc=r(go.f("toPrimitive"));function Lc(t){var e=function(t,e){if("object"!==Rc(t)||null===t)return t;var n=t[Fc];if(void 0!==n){var i=n.call(t,e||"default");if("object"!==Rc(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Rc(e)?e:String(e)}function Yc(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),zn(t,Lc(i.key),i)}}function zc(t,e,n){return e&&Yc(t.prototype,e),n&&Yc(t,n),zn(t,"prototype",{writable:!1}),t}function Hc(t,e,n){return(e=Lc(e))in t?zn(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Gc=b,Bc=Nt,Wc=it,Vc=ee,Uc=Ra,qc=u,Xc=Function,$c=Gc([].concat),Kc=Gc([].join),Qc={},Zc=qc?Xc.bind:function(t){var e=Bc(this),n=e.prototype,i=Uc(arguments,1),r=function(){var n=$c(i,Uc(arguments));return this instanceof r?function(t,e,n){if(!Vc(Qc,e)){for(var i=[],r=0;r<e;r++)i[r]="a["+r+"]";Qc[e]=Xc("C,a","return new C("+Kc(i,",")+")")}return Qc[e](t,n)}(e,n.length,n):e.apply(t,n)};return Wc(n)&&(r.prototype=n),r},Jc=Zc;An({target:"Function",proto:!0,forced:Function.bind!==Jc},{bind:Jc});var th=a,eh=rt,nh=function(t,e){var n=eh[t+"Prototype"],i=n&&n[e];if(i)return i;var r=th[t],o=r&&r.prototype;return o&&o[e]},ih=nh("Function","bind"),rh=ct,oh=ih,sh=Function.prototype,ah=function(t){var e=t.bind;return t===sh||rh(sh,t)&&e===sh.bind?oh:e},lh=r(ah),uh=Nt,ch=Zt,hh=q,dh=Kn,ph=TypeError,fh=function(t){return function(e,n,i,r){uh(n);var o=ch(e),s=hh(o),a=dh(o),l=t?a-1:0,u=t?-1:1;if(i<2)for(;;){if(l in s){r=s[l],l+=u;break}if(l+=u,t?l<0:a<=l)throw new ph("Reduce of empty array with no initial value")}for(;t?l>=0:a>l;l+=u)l in s&&(r=n(r,s[l],l,o));return r}},mh={left:fh(!1),right:fh(!0)},vh=l,gh=function(t,e){var n=[][t];return!!n&&vh((function(){n.call(null,e||function(){return 1},1)}))},yh="process"===x(a.process),bh=mh.left;An({target:"Array",proto:!0,forced:!yh&&yt>79&&yt<83||!gh("reduce")},{reduce:function(t){var e=arguments.length;return bh(this,t,e,e>1?arguments[1]:void 0)}});var wh=nh("Array","reduce"),_h=ct,kh=wh,xh=Array.prototype,Sh=r((function(t){var e=t.reduce;return t===xh||_h(xh,t)&&e===xh.reduce?kh:e})),Dh=cs.filter;An({target:"Array",proto:!0,forced:!zi("filter")},{filter:function(t){return Dh(this,t,arguments.length>1?arguments[1]:void 0)}});var Th=nh("Array","filter"),Ch=ct,Oh=Th,Eh=Array.prototype,Mh=r((function(t){var e=t.filter;return t===Eh||Ch(Eh,t)&&e===Eh.filter?Oh:e})),Ph=cs.map;An({target:"Array",proto:!0,forced:!zi("map")},{map:function(t){return Ph(this,t,arguments.length>1?arguments[1]:void 0)}});var Ah=nh("Array","map"),Ih=ct,Nh=Ah,jh=Array.prototype,Rh=r((function(t){var e=t.map;return t===jh||Ih(jh,t)&&e===jh.map?Nh:e})),Fh=Gn,Lh=Kn,Yh=Zn,zh=Je,Hh=function(t,e,n,i,r,o,s,a){for(var l,u,c=r,h=0,d=!!s&&zh(s,a);h<i;)h in n&&(l=d?d(n[h],h,e):n[h],o>0&&Fh(l)?(u=Lh(l),c=Hh(t,e,l,u,c,o-1)-1):(Yh(c+1),t[c]=l),c++),h++;return c},Gh=Hh,Bh=Nt,Wh=Zt,Vh=Kn,Uh=Ri;An({target:"Array",proto:!0},{flatMap:function(t){var e,n=Wh(this),i=Vh(n);return Bh(t),(e=Uh(n,0)).length=Gh(e,n,n,i,0,1,t,arguments.length>1?arguments[1]:void 0),e}});var qh=nh("Array","flatMap"),Xh=ct,$h=qh,Kh=Array.prototype,Qh=r((function(t){var e=t.flatMap;return t===Kh||Xh(Kh,t)&&e===Kh.flatMap?$h:e})),Zh=function(){function t(e,i,r){var o,s,a;n(this,t),Hc(this,"_listeners",{add:lh(o=this._add).call(o,this),remove:lh(s=this._remove).call(s,this),update:lh(a=this._update).call(a,this)}),this._source=e,this._transformers=i,this._target=r}return zc(t,[{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(t){var e;return Sh(e=this._transformers).call(e,(function(t,e){return e(t)}),t)}},{key:"_add",value:function(t,e){null!=e&&this._target.add(this._transformItems(this._source.get(e.items)))}},{key:"_update",value:function(t,e){null!=e&&this._target.update(this._transformItems(this._source.get(e.items)))}},{key:"_remove",value:function(t,e){null!=e&&this._target.remove(this._transformItems(e.oldData))}}]),t}(),Jh=function(){function t(e){n(this,t),Hc(this,"_transformers",[]),this._source=e}return zc(t,[{key:"filter",value:function(t){return this._transformers.push((function(e){return Mh(e).call(e,t)})),this}},{key:"map",value:function(t){return this._transformers.push((function(e){return Rh(e).call(e,t)})),this}},{key:"flatMap",value:function(t){return this._transformers.push((function(e){return Qh(e).call(e,t)})),this}},{key:"to",value:function(t){return new Zh(this._source,this._transformers,t)}}]),t}(),td=j,ed=sn,nd=Ft,id=function(t,e,n){var i,r;ed(t);try{if(!(i=nd(t,"return"))){if("throw"===e)throw n;return n}i=td(i,t)}catch(t){r=!0,i=t}if("throw"===e)throw n;if(r)throw i;return ed(i),n},rd=sn,od=id,sd=kl,ad=me("iterator"),ld=Array.prototype,ud=function(t){return void 0!==t&&(sd.Array===t||ld[ad]===t)},cd=hi,hd=Ft,dd=X,pd=kl,fd=me("iterator"),md=function(t){if(!dd(t))return hd(t,fd)||hd(t,"@@iterator")||pd[cd(t)]},vd=j,gd=Nt,yd=sn,bd=Mt,wd=md,_d=TypeError,kd=function(t,e){var n=arguments.length<2?wd(t):e;if(gd(n))return yd(vd(n,t));throw new _d(bd(t)+" is not iterable")},xd=Je,Sd=j,Dd=Zt,Td=function(t,e,n,i){try{return i?e(rd(n)[0],n[1]):e(n)}catch(e){od(t,"throw",e)}},Cd=ud,Od=Ei,Ed=Kn,Md=ni,Pd=kd,Ad=md,Id=Array,Nd=me("iterator"),jd=!1;try{var Rd=0,Fd={next:function(){return{done:!!Rd++}},return:function(){jd=!0}};Fd[Nd]=function(){return this},Array.from(Fd,(function(){throw 2}))}catch(t){}var Ld=function(t,e){try{if(!e&&!jd)return!1}catch(t){return!1}var n=!1;try{var i={};i[Nd]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n},Yd=function(t){var e=Dd(t),n=Od(this),i=arguments.length,r=i>1?arguments[1]:void 0,o=void 0!==r;o&&(r=xd(r,i>2?arguments[2]:void 0));var s,a,l,u,c,h,d=Ad(e),p=0;if(!d||this===Id&&Cd(d))for(s=Ed(e),a=n?new this(s):Id(s);s>p;p++)h=o?r(e[p],p):e[p],Md(a,p,h);else for(c=(u=Pd(e,d)).next,a=n?new this:[];!(l=Sd(c,u)).done;p++)h=o?Td(u,r,[l.value,p],!0):l.value,Md(a,p,h);return a.length=p,a};An({target:"Array",stat:!0,forced:!Ld((function(t){Array.from(t)}))},{from:Yd});var zd=rt.Array.from,Hd=r(zd),Gd=md,Bd=r(Gd),Wd=r(Gd);An({target:"Array",stat:!0},{isArray:Gn});var Vd=rt.Array.isArray,Ud=r(Vd),qd=A,Xd=Gn,$d=TypeError,Kd=Object.getOwnPropertyDescriptor,Qd=qd&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}()?function(t,e){if(Xd(t)&&!Kd(t,"length").writable)throw new $d("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},Zd=Zt,Jd=Kn,tp=Qd,ep=Zn;An({target:"Array",proto:!0,arity:1,forced:l((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=Zd(this),n=Jd(e),i=arguments.length;ep(n+i);for(var r=0;r<i;r++)e[n]=arguments[r],n++;return tp(e,n),n}});var np=nh("Array","push"),ip=ct,rp=np,op=Array.prototype,sp=function(t){var e=t.push;return t===op||ip(op,t)&&e===op.push?rp:e},ap=r(sp),lp=An,up=Gn,cp=Ei,hp=it,dp=lr,pp=Kn,fp=tt,mp=ni,vp=me,gp=Ra,yp=zi("slice"),bp=vp("species"),wp=Array,_p=Math.max;lp({target:"Array",proto:!0,forced:!yp},{slice:function(t,e){var n,i,r,o=fp(this),s=pp(o),a=dp(t,s),l=dp(void 0===e?s:e,s);if(up(o)&&(n=o.constructor,(cp(n)&&(n===wp||up(n.prototype))||hp(n)&&null===(n=n[bp]))&&(n=void 0),n===wp||void 0===n))return gp(o,a,l);for(i=new(void 0===n?wp:n)(_p(l-a,0)),r=0;a<l;a++,r++)a in o&&mp(i,r,o[a]);return i.length=r,i}});var kp=nh("Array","slice"),xp=ct,Sp=kp,Dp=Array.prototype,Tp=function(t){var e=t.slice;return t===Dp||xp(Dp,t)&&e===Dp.slice?Sp:e},Cp=Tp,Op=r(Cp),Ep=r(zd);function Mp(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Pp(t,e){var n;if(t){if("string"==typeof t)return Mp(t,e);var i=Op(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Ep(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Mp(t,e):void 0}}function Ap(t,e){return function(t){if(Ud(t))return t}(t)||function(t,e){var n=null==t?null:void 0!==vc&&Bd(t)||t["@@iterator"];if(null!=n){var i,r,o,s,a=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(ap(a).call(a,i.value),a.length!==e);l=!0);}catch(t){u=!0,r=t}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw r}}return a}}(t,e)||Pp(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ip(t){return function(t){if(Ud(t))return Mp(t)}(t)||function(t){if(void 0!==vc&&null!=Bd(t)||null!=t["@@iterator"])return Ep(t)}(t)||Pp(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Np=r(Bu),jp=nh("Array","concat"),Rp=ct,Fp=jp,Lp=Array.prototype,Yp=r((function(t){var e=t.concat;return t===Lp||Rp(Lp,t)&&e===Lp.concat?Fp:e})),zp=r(Tp),Hp=ut,Gp=Kr,Bp=ho,Wp=sn,Vp=b([].concat),Up=Hp("Reflect","ownKeys")||function(t){var e=Gp.f(Wp(t)),n=Bp.f;return n?Vp(e,n(t)):e};An({target:"Reflect",stat:!0},{ownKeys:Up});var qp=r(rt.Reflect.ownKeys),Xp=r(Vd),$p=Zt,Kp=Sr;An({target:"Object",stat:!0,forced:l((function(){Kp(1)}))},{keys:function(t){return Kp($p(t))}});var Qp=r(rt.Object.keys),Zp=cs.forEach,Jp=gh("forEach")?[].forEach:function(t){return Zp(this,t,arguments.length>1?arguments[1]:void 0)};An({target:"Array",proto:!0,forced:[].forEach!==Jp},{forEach:Jp});var tf=nh("Array","forEach"),ef=hi,nf=ee,rf=ct,of=tf,sf=Array.prototype,af={DOMTokenList:!0,NodeList:!0},lf=function(t){var e=t.forEach;return t===sf||rf(sf,t)&&e===sf.forEach||nf(af,ef(t))?of:e},uf=r(lf),cf=An,hf=Gn,df=b([].reverse),pf=[1,2];cf({target:"Array",proto:!0,forced:String(pf)===String(pf.reverse())},{reverse:function(){return hf(this)&&(this.length=this.length),df(this)}});var ff=nh("Array","reverse"),mf=ct,vf=ff,gf=Array.prototype,yf=function(t){var e=t.reverse;return t===gf||mf(gf,t)&&e===gf.reverse?vf:e},bf=r(yf),wf=Mt,_f=TypeError,kf=function(t,e){if(!delete t[e])throw new _f("Cannot delete property "+wf(e)+" of "+wf(t))},xf=An,Sf=Zt,Df=lr,Tf=Un,Cf=Kn,Of=Qd,Ef=Zn,Mf=Ri,Pf=ni,Af=kf,If=zi("splice"),Nf=Math.max,jf=Math.min;xf({target:"Array",proto:!0,forced:!If},{splice:function(t,e){var n,i,r,o,s,a,l=Sf(this),u=Cf(l),c=Df(t,u),h=arguments.length;for(0===h?n=i=0:1===h?(n=0,i=u-c):(n=h-2,i=jf(Nf(Tf(e),0),u-c)),Ef(u+n-i),r=Mf(l,i),o=0;o<i;o++)(s=c+o)in l&&Pf(r,o,l[s]);if(r.length=i,n<i){for(o=c;o<u-i;o++)a=o+n,(s=o+i)in l?l[a]=l[s]:Af(l,a);for(o=u;o>u-i+n;o--)Af(l,o-1)}else if(n>i)for(o=u-i;o>c;o--)a=o+n-1,(s=o+i-1)in l?l[a]=l[s]:Af(l,a);for(o=0;o<n;o++)l[o+c]=arguments[o+2];return Of(l,u-i+n),r}});var Rf=nh("Array","splice"),Ff=ct,Lf=Rf,Yf=Array.prototype,zf=r((function(t){var e=t.splice;return t===Yf||Ff(Yf,t)&&e===Yf.splice?Lf:e})),Hf=A,Gf=b,Bf=j,Wf=l,Vf=Sr,Uf=ho,qf=R,Xf=Zt,$f=q,Kf=Object.assign,Qf=Object.defineProperty,Zf=Gf([].concat),Jf=!Kf||Wf((function(){if(Hf&&1!==Kf({b:1},Kf(Qf({},"a",{enumerable:!0,get:function(){Qf(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol("assign detection"),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach((function(t){e[t]=t})),7!==Kf({},t)[n]||Vf(Kf({},e)).join("")!==i}))?function(t,e){for(var n=Xf(t),i=arguments.length,r=1,o=Uf.f,s=qf.f;i>r;)for(var a,l=$f(arguments[r++]),u=o?Zf(Vf(l),o(l)):Vf(l),c=u.length,h=0;c>h;)a=u[h++],Hf&&!Bf(s,l,a)||(n[a]=l[a]);return n}:Kf,tm=Jf;An({target:"Object",stat:!0,arity:2,forced:Object.assign!==tm},{assign:tm});var em=r(rt.Object.assign),nm=Zt,im=Fl,rm=El;An({target:"Object",stat:!0,forced:l((function(){im(1)})),sham:!rm},{getPrototypeOf:function(t){return im(nm(t))}});var om=rt.Object.getPrototypeOf;An({target:"Object",stat:!0,sham:!A},{create:$r});var sm=rt.Object,am=function(t,e){return sm.create(t,e)},lm=r(am),um=rt,cm=f;um.JSON||(um.JSON={stringify:JSON.stringify});var hm=function(t,e,n){return cm(um.JSON.stringify,null,arguments)},dm=r(hm),pm="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,fm=TypeError,mm=function(t,e){if(t<e)throw new fm("Not enough arguments");return t},vm=a,gm=f,ym=M,bm=pm,wm=ht,_m=Ra,km=mm,xm=vm.Function,Sm=/MSIE .\./.test(wm)||bm&&function(){var t=vm.Bun.version.split(".");return t.length<3||"0"===t[0]&&(t[1]<3||"3"===t[1]&&"0"===t[2])}(),Dm=function(t,e){var n=e?2:1;return Sm?function(i,r){var o=km(arguments.length,1)>n,s=ym(i)?i:xm(i),a=o?_m(arguments,n):[],l=o?function(){gm(s,this,a)}:s;return e?t(l,r):t(l)}:t},Tm=An,Cm=a,Om=Dm(Cm.setInterval,!0);Tm({global:!0,bind:!0,forced:Cm.setInterval!==Om},{setInterval:Om});var Em=An,Mm=a,Pm=Dm(Mm.setTimeout,!0);Em({global:!0,bind:!0,forced:Mm.setTimeout!==Pm},{setTimeout:Pm});var Am=r(rt.setTimeout),Im={exports:{}};!function(t){function e(t){if(t)return function(t){return Object.assign(t,e.prototype),t._callbacks=new Map,t}(t);this._callbacks=new Map}e.prototype.on=function(t,e){const n=this._callbacks.get(t)??[];return n.push(e),this._callbacks.set(t,n),this},e.prototype.once=function(t,e){const n=(...i)=>{this.off(t,n),e.apply(this,i)};return n.fn=e,this.on(t,n),this},e.prototype.off=function(t,e){if(void 0===t&&void 0===e)return this._callbacks.clear(),this;if(void 0===e)return this._callbacks.delete(t),this;const n=this._callbacks.get(t);if(n){for(const[t,i]of n.entries())if(i===e||i.fn===e){n.splice(t,1);break}0===n.length?this._callbacks.delete(t):this._callbacks.set(t,n)}return this},e.prototype.emit=function(t,...e){const n=this._callbacks.get(t);if(n){const t=[...n];for(const n of t)n.apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks.get(t)??[]},e.prototype.listenerCount=function(t){if(t)return this.listeners(t).length;let e=0;for(const t of this._callbacks.values())e+=t.length;return e},e.prototype.hasListeners=function(t){return this.listenerCount(t)>0},e.prototype.addEventListener=e.prototype.on,e.prototype.removeListener=e.prototype.off,e.prototype.removeEventListener=e.prototype.off,e.prototype.removeAllListeners=e.prototype.off,t.exports=e}(Im);var Nm,jm=r(Im.exports);
|
||
/*! 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 */function Rm(){return Rm=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Rm.apply(this,arguments)}function Fm(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function Lm(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}Nm="function"!=typeof Object.assign?function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var r in i)i.hasOwnProperty(r)&&(e[r]=i[r])}return e}:Object.assign;var Ym,zm=Nm,Hm=["","webkit","Moz","MS","ms","o"],Gm="undefined"==typeof document?{style:{}}:document.createElement("div"),Bm=Math.round,Wm=Math.abs,Vm=Date.now;function Um(t,e){for(var n,i,r=e[0].toUpperCase()+e.slice(1),o=0;o<Hm.length;){if((i=(n=Hm[o])?n+r:e)in t)return i;o++}}Ym="undefined"==typeof window?{}:window;var qm=Um(Gm.style,"touchAction"),Xm=void 0!==qm,$m="compute",Km="auto",Qm="manipulation",Zm="none",Jm="pan-x",tv="pan-y",ev=function(){if(!Xm)return!1;var t={},e=Ym.CSS&&Ym.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){return t[n]=!e||Ym.CSS.supports("touch-action",n)})),t}(),nv="ontouchstart"in Ym,iv=void 0!==Um(Ym,"PointerEvent"),rv=nv&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),ov="touch",sv="mouse",av=25,lv=1,uv=4,cv=8,hv=1,dv=2,pv=4,fv=8,mv=16,vv=dv|pv,gv=fv|mv,yv=vv|gv,bv=["x","y"],wv=["clientX","clientY"];function _v(t,e,n){var i;if(t)if(t.forEach)t.forEach(e,n);else if(void 0!==t.length)for(i=0;i<t.length;)e.call(n,t[i],i,t),i++;else for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t)}function kv(t,e){return"function"==typeof t?t.apply(e&&e[0]||void 0,e):t}function xv(t,e){return t.indexOf(e)>-1}var Sv=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){t===$m&&(t=this.compute()),Xm&&this.manager.element.style&&ev[t]&&(this.manager.element.style[qm]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return _v(this.manager.recognizers,(function(e){kv(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(xv(t,Zm))return Zm;var e=xv(t,Jm),n=xv(t,tv);return e&&n?Zm:e||n?e?Jm:tv:xv(t,Qm)?Qm:Km}(t.join(" "))},e.preventDefaults=function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var i=this.actions,r=xv(i,Zm)&&!ev[Zm],o=xv(i,tv)&&!ev[tv],s=xv(i,Jm)&&!ev[Jm];if(r){var a=1===t.pointers.length,l=t.distance<2,u=t.deltaTime<250;if(a&&l&&u)return}if(!s||!o)return r||o&&n&vv||s&&n&gv?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function Dv(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function Tv(t){var e=t.length;if(1===e)return{x:Bm(t[0].clientX),y:Bm(t[0].clientY)};for(var n=0,i=0,r=0;r<e;)n+=t[r].clientX,i+=t[r].clientY,r++;return{x:Bm(n/e),y:Bm(i/e)}}function Cv(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:Bm(t.pointers[n].clientX),clientY:Bm(t.pointers[n].clientY)},n++;return{timeStamp:Vm(),pointers:e,center:Tv(e),deltaX:t.deltaX,deltaY:t.deltaY}}function Ov(t,e,n){n||(n=bv);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return Math.sqrt(i*i+r*r)}function Ev(t,e,n){n||(n=bv);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return 180*Math.atan2(r,i)/Math.PI}function Mv(t,e){return t===e?hv:Wm(t)>=Wm(e)?t<0?dv:pv:e<0?fv:mv}function Pv(t,e,n){return{x:e/t||0,y:n/t||0}}function Av(t,e){var n=t.session,i=e.pointers,r=i.length;n.firstInput||(n.firstInput=Cv(e)),r>1&&!n.firstMultiple?n.firstMultiple=Cv(e):1===r&&(n.firstMultiple=!1);var o=n.firstInput,s=n.firstMultiple,a=s?s.center:o.center,l=e.center=Tv(i);e.timeStamp=Vm(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=Ev(a,l),e.distance=Ov(a,l),function(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},o=t.prevInput||{};e.eventType!==lv&&o.eventType!==uv||(r=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=r.x+(n.x-i.x),e.deltaY=r.y+(n.y-i.y)}(n,e),e.offsetDirection=Mv(e.deltaX,e.deltaY);var u,c,h=Pv(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=h.x,e.overallVelocityY=h.y,e.overallVelocity=Wm(h.x)>Wm(h.y)?h.x:h.y,e.scale=s?(u=s.pointers,Ov((c=i)[0],c[1],wv)/Ov(u[0],u[1],wv)):1,e.rotation=s?function(t,e){return Ev(e[1],e[0],wv)+Ev(t[1],t[0],wv)}(s.pointers,i):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,i,r,o,s=t.lastInterval||e,a=e.timeStamp-s.timeStamp;if(e.eventType!==cv&&(a>av||void 0===s.velocity)){var l=e.deltaX-s.deltaX,u=e.deltaY-s.deltaY,c=Pv(a,l,u);i=c.x,r=c.y,n=Wm(c.x)>Wm(c.y)?c.x:c.y,o=Mv(l,u),t.lastInterval=e}else n=s.velocity,i=s.velocityX,r=s.velocityY,o=s.direction;e.velocity=n,e.velocityX=i,e.velocityY=r,e.direction=o}(n,e);var d,p=t.element,f=e.srcEvent;Dv(d=f.composedPath?f.composedPath()[0]:f.path?f.path[0]:f.target,p)&&(p=d),e.target=p}function Iv(t,e,n){var i=n.pointers.length,r=n.changedPointers.length,o=e&lv&&i-r==0,s=e&(uv|cv)&&i-r==0;n.isFirst=!!o,n.isFinal=!!s,o&&(t.session={}),n.eventType=e,Av(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function Nv(t){return t.trim().split(/\s+/g)}function jv(t,e,n){_v(Nv(e),(function(e){t.addEventListener(e,n,!1)}))}function Rv(t,e,n){_v(Nv(e),(function(e){t.removeEventListener(e,n,!1)}))}function Fv(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var Lv=function(){function t(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){kv(t.options.enable,[t])&&n.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&jv(this.element,this.evEl,this.domHandler),this.evTarget&&jv(this.target,this.evTarget,this.domHandler),this.evWin&&jv(Fv(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&Rv(this.element,this.evEl,this.domHandler),this.evTarget&&Rv(this.target,this.evTarget,this.domHandler),this.evWin&&Rv(Fv(this.element),this.evWin,this.domHandler)},t}();function Yv(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;i<t.length;){if(n&&t[i][n]==e||!n&&t[i]===e)return i;i++}return-1}var zv={pointerdown:lv,pointermove:2,pointerup:uv,pointercancel:cv,pointerout:cv},Hv={2:ov,3:"pen",4:sv,5:"kinect"},Gv="pointerdown",Bv="pointermove pointerup pointercancel";Ym.MSPointerEvent&&!Ym.PointerEvent&&(Gv="MSPointerDown",Bv="MSPointerMove MSPointerUp MSPointerCancel");var Wv=function(t){function e(){var n,i=e.prototype;return i.evEl=Gv,i.evWin=Bv,(n=t.apply(this,arguments)||this).store=n.manager.session.pointerEvents=[],n}return Fm(e,t),e.prototype.handler=function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),r=zv[i],o=Hv[t.pointerType]||t.pointerType,s=o===ov,a=Yv(e,t.pointerId,"pointerId");r&lv&&(0===t.button||s)?a<0&&(e.push(t),a=e.length-1):r&(uv|cv)&&(n=!0),a<0||(e[a]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(a,1))},e}(Lv);function Vv(t){return Array.prototype.slice.call(t,0)}function Uv(t,e,n){for(var i=[],r=[],o=0;o<t.length;){var s=e?t[o][e]:t[o];Yv(r,s)<0&&i.push(t[o]),r[o]=s,o++}return n&&(i=e?i.sort((function(t,n){return t[e]>n[e]})):i.sort()),i}var qv={touchstart:lv,touchmove:2,touchend:uv,touchcancel:cv},Xv=function(t){function e(){var n;return e.prototype.evTarget="touchstart touchmove touchend touchcancel",(n=t.apply(this,arguments)||this).targetIds={},n}return Fm(e,t),e.prototype.handler=function(t){var e=qv[t.type],n=$v.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:ov,srcEvent:t})},e}(Lv);function $v(t,e){var n,i,r=Vv(t.touches),o=this.targetIds;if(e&(2|lv)&&1===r.length)return o[r[0].identifier]=!0,[r,r];var s=Vv(t.changedTouches),a=[],l=this.target;if(i=r.filter((function(t){return Dv(t.target,l)})),e===lv)for(n=0;n<i.length;)o[i[n].identifier]=!0,n++;for(n=0;n<s.length;)o[s[n].identifier]&&a.push(s[n]),e&(uv|cv)&&delete o[s[n].identifier],n++;return a.length?[Uv(i.concat(a),"identifier",!0),a]:void 0}var Kv={mousedown:lv,mousemove:2,mouseup:uv},Qv=function(t){function e(){var n,i=e.prototype;return i.evEl="mousedown",i.evWin="mousemove mouseup",(n=t.apply(this,arguments)||this).pressed=!1,n}return Fm(e,t),e.prototype.handler=function(t){var e=Kv[t.type];e&lv&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=uv),this.pressed&&(e&uv&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:sv,srcEvent:t}))},e}(Lv),Zv=2500;function Jv(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY},i=this.lastTouches;this.lastTouches.push(n),setTimeout((function(){var t=i.indexOf(n);t>-1&&i.splice(t,1)}),Zv)}}function tg(t,e){t&lv?(this.primaryTouch=e.changedPointers[0].identifier,Jv.call(this,e)):t&(uv|cv)&&Jv.call(this,e)}function eg(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var r=this.lastTouches[i],o=Math.abs(e-r.x),s=Math.abs(n-r.y);if(o<=25&&s<=25)return!0}return!1}var ng=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).handler=function(t,e,n){var r=n.pointerType===ov,o=n.pointerType===sv;if(!(o&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)tg.call(Lm(Lm(i)),e,n);else if(o&&eg.call(Lm(Lm(i)),n))return;i.callback(t,e,n)}},i.touch=new Xv(i.manager,i.handler),i.mouse=new Qv(i.manager,i.handler),i.primaryTouch=null,i.lastTouches=[],i}return Fm(e,t),e.prototype.destroy=function(){this.touch.destroy(),this.mouse.destroy()},e}(Lv);function ig(t,e,n){return!!Array.isArray(t)&&(_v(t,n[e],n),!0)}var rg=32,og=1;function sg(t,e){var n=e.manager;return n?n.get(t):t}function ag(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}var lg=function(){function t(t){void 0===t&&(t={}),this.options=Rm({enable:!0},t),this.id=og++,this.manager=null,this.state=1,this.simultaneous={},this.requireFail=[]}var e=t.prototype;return e.set=function(t){return zm(this.options,t),this.manager&&this.manager.touchAction.update(),this},e.recognizeWith=function(t){if(ig(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=sg(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},e.dropRecognizeWith=function(t){return ig(t,"dropRecognizeWith",this)||(t=sg(t,this),delete this.simultaneous[t.id]),this},e.requireFailure=function(t){if(ig(t,"requireFailure",this))return this;var e=this.requireFail;return-1===Yv(e,t=sg(t,this))&&(e.push(t),t.requireFailure(this)),this},e.dropRequireFailure=function(t){if(ig(t,"dropRequireFailure",this))return this;t=sg(t,this);var e=Yv(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},e.hasRequireFailures=function(){return this.requireFail.length>0},e.canRecognizeWith=function(t){return!!this.simultaneous[t.id]},e.emit=function(t){var e=this,n=this.state;function i(n){e.manager.emit(n,t)}n<8&&i(e.options.event+ag(n)),i(e.options.event),t.additionalEvent&&i(t.additionalEvent),n>=8&&i(e.options.event+ag(n))},e.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=rg},e.canEmit=function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},e.recognize=function(t){var e=zm({},t);if(!kv(this.options.enable,[this,e]))return this.reset(),void(this.state=rg);56&this.state&&(this.state=1),this.state=this.process(e),30&this.state&&this.tryEmit(e)},e.process=function(t){},e.getTouchAction=function(){},e.reset=function(){},t}(),ug=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,Rm({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},e))||this).pTime=!1,n.pCenter=!1,n._timer=null,n._input=null,n.count=0,n}Fm(e,t);var n=e.prototype;return n.getTouchAction=function(){return[Qm]},n.process=function(t){var e=this,n=this.options,i=t.pointers.length===n.pointers,r=t.distance<n.threshold,o=t.deltaTime<n.time;if(this.reset(),t.eventType&lv&&0===this.count)return this.failTimeout();if(r&&o&&i){if(t.eventType!==uv)return this.failTimeout();var s=!this.pTime||t.timeStamp-this.pTime<n.interval,a=!this.pCenter||Ov(this.pCenter,t.center)<n.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,a&&s?this.count+=1:this.count=1,this._input=t,0==this.count%n.taps)return this.hasRequireFailures()?(this._timer=setTimeout((function(){e.state=8,e.tryEmit()}),n.interval),2):8}return rg},n.failTimeout=function(){var t=this;return this._timer=setTimeout((function(){t.state=rg}),this.options.interval),rg},n.reset=function(){clearTimeout(this._timer)},n.emit=function(){8===this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},e}(lg),cg=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Rm({pointers:1},e))||this}Fm(e,t);var n=e.prototype;return n.attrTest=function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},n.process=function(t){var e=this.state,n=t.eventType,i=6&e,r=this.attrTest(t);return i&&(n&cv||!r)?16|e:i||r?n&uv?8|e:2&e?4|e:2:rg},e}(lg);function hg(t){return t===mv?"down":t===fv?"up":t===dv?"left":t===pv?"right":""}var dg=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,Rm({event:"pan",threshold:10,pointers:1,direction:yv},e))||this).pX=null,n.pY=null,n}Fm(e,t);var n=e.prototype;return n.getTouchAction=function(){var t=this.options.direction,e=[];return t&vv&&e.push(tv),t&gv&&e.push(Jm),e},n.directionTest=function(t){var e=this.options,n=!0,i=t.distance,r=t.direction,o=t.deltaX,s=t.deltaY;return r&e.direction||(e.direction&vv?(r=0===o?hv:o<0?dv:pv,n=o!==this.pX,i=Math.abs(t.deltaX)):(r=0===s?hv:s<0?fv:mv,n=s!==this.pY,i=Math.abs(t.deltaY))),t.direction=r,n&&i>e.threshold&&r&e.direction},n.attrTest=function(t){return cg.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},n.emit=function(e){this.pX=e.deltaX,this.pY=e.deltaY;var n=hg(e.direction);n&&(e.additionalEvent=this.options.event+n),t.prototype.emit.call(this,e)},e}(cg),pg=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Rm({event:"swipe",threshold:10,velocity:.3,direction:vv|gv,pointers:1},e))||this}Fm(e,t);var n=e.prototype;return n.getTouchAction=function(){return dg.prototype.getTouchAction.call(this)},n.attrTest=function(e){var n,i=this.options.direction;return i&(vv|gv)?n=e.overallVelocity:i&vv?n=e.overallVelocityX:i&gv&&(n=e.overallVelocityY),t.prototype.attrTest.call(this,e)&&i&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers===this.options.pointers&&Wm(n)>this.options.velocity&&e.eventType&uv},n.emit=function(t){var e=hg(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},e}(cg),fg=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Rm({event:"pinch",threshold:0,pointers:2},e))||this}Fm(e,t);var n=e.prototype;return n.getTouchAction=function(){return[Zm]},n.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},n.emit=function(e){if(1!==e.scale){var n=e.scale<1?"in":"out";e.additionalEvent=this.options.event+n}t.prototype.emit.call(this,e)},e}(cg),mg=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Rm({event:"rotate",threshold:0,pointers:2},e))||this}Fm(e,t);var n=e.prototype;return n.getTouchAction=function(){return[Zm]},n.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)},e}(cg),vg=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,Rm({event:"press",pointers:1,time:251,threshold:9},e))||this)._timer=null,n._input=null,n}Fm(e,t);var n=e.prototype;return n.getTouchAction=function(){return[Km]},n.process=function(t){var e=this,n=this.options,i=t.pointers.length===n.pointers,r=t.distance<n.threshold,o=t.deltaTime>n.time;if(this._input=t,!r||!i||t.eventType&(uv|cv)&&!o)this.reset();else if(t.eventType&lv)this.reset(),this._timer=setTimeout((function(){e.state=8,e.tryEmit()}),n.time);else if(t.eventType&uv)return 8;return rg},n.reset=function(){clearTimeout(this._timer)},n.emit=function(t){8===this.state&&(t&&t.eventType&uv?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=Vm(),this.manager.emit(this.options.event,this._input)))},e}(lg),gg={domEvents:!1,touchAction:$m,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},yg=[[mg,{enable:!1}],[fg,{enable:!1},["rotate"]],[pg,{direction:vv}],[dg,{direction:vv},["swipe"]],[ug],[ug,{event:"doubletap",taps:2},["tap"]],[vg]];function bg(t,e){var n,i=t.element;i.style&&(_v(t.options.cssProps,(function(r,o){n=Um(i.style,o),e?(t.oldCssProps[n]=i.style[n],i.style[n]=r):i.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}var wg=function(){function t(t,e){var n,i=this;this.options=zm({},gg,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((n=this).options.inputClass||(iv?Wv:rv?Xv:nv?ng:Qv))(n,Iv),this.touchAction=new Sv(this,this.options.touchAction),bg(this,!0),_v(this.options.recognizers,(function(t){var e=i.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}var e=t.prototype;return e.set=function(t){return zm(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},e.stop=function(t){this.session.stopped=t?2:1},e.recognize=function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var i=this.recognizers,r=e.curRecognizer;(!r||r&&8&r.state)&&(e.curRecognizer=null,r=null);for(var o=0;o<i.length;)n=i[o],2===e.stopped||r&&n!==r&&!n.canRecognizeWith(r)?n.reset():n.recognize(t),!r&&14&n.state&&(e.curRecognizer=n,r=n),o++}},e.get=function(t){if(t instanceof lg)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event===t)return e[n];return null},e.add=function(t){if(ig(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},e.remove=function(t){if(ig(t,"remove",this))return this;var e=this.get(t);if(t){var n=this.recognizers,i=Yv(n,e);-1!==i&&(n.splice(i,1),this.touchAction.update())}return this},e.on=function(t,e){if(void 0===t||void 0===e)return this;var n=this.handlers;return _v(Nv(t),(function(t){n[t]=n[t]||[],n[t].push(e)})),this},e.off=function(t,e){if(void 0===t)return this;var n=this.handlers;return _v(Nv(t),(function(t){e?n[t]&&n[t].splice(Yv(n[t],e),1):delete n[t]})),this},e.emit=function(t,e){this.options.domEvents&&function(t,e){var n=document.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var i=0;i<n.length;)n[i](e),i++}},e.destroy=function(){this.element&&bg(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},t}(),_g={touchstart:lv,touchmove:2,touchend:uv,touchcancel:cv},kg=function(t){function e(){var n,i=e.prototype;return i.evTarget="touchstart",i.evWin="touchstart touchmove touchend touchcancel",(n=t.apply(this,arguments)||this).started=!1,n}return Fm(e,t),e.prototype.handler=function(t){var e=_g[t.type];if(e===lv&&(this.started=!0),this.started){var n=xg.call(this,t,e);e&(uv|cv)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:ov,srcEvent:t})}},e}(Lv);function xg(t,e){var n=Vv(t.touches),i=Vv(t.changedTouches);return e&(uv|cv)&&(n=Uv(n.concat(i),"identifier",!0)),[n,i]}function Sg(t,e,n){var i="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",r=window.console&&(window.console.warn||window.console.log);return r&&r.call(window.console,i,n),t.apply(this,arguments)}}var Dg=Sg((function(t,e,n){for(var i=Object.keys(e),r=0;r<i.length;)(!n||n&&void 0===t[i[r]])&&(t[i[r]]=e[i[r]]),r++;return t}),"extend","Use `assign`."),Tg=Sg((function(t,e){return Dg(t,e,!0)}),"merge","Use `assign`.");function Cg(t,e,n){var i,r=e.prototype;(i=t.prototype=Object.create(r)).constructor=t,i._super=r,n&&zm(i,n)}function Og(t,e){return function(){return t.apply(e,arguments)}}var Eg=function(){var t=function(t,e){return void 0===e&&(e={}),new wg(t,Rm({recognizers:yg.concat()},e))};return t.VERSION="2.0.17-rc",t.DIRECTION_ALL=yv,t.DIRECTION_DOWN=mv,t.DIRECTION_LEFT=dv,t.DIRECTION_RIGHT=pv,t.DIRECTION_UP=fv,t.DIRECTION_HORIZONTAL=vv,t.DIRECTION_VERTICAL=gv,t.DIRECTION_NONE=hv,t.DIRECTION_DOWN=mv,t.INPUT_START=lv,t.INPUT_MOVE=2,t.INPUT_END=uv,t.INPUT_CANCEL=cv,t.STATE_POSSIBLE=1,t.STATE_BEGAN=2,t.STATE_CHANGED=4,t.STATE_ENDED=8,t.STATE_RECOGNIZED=8,t.STATE_CANCELLED=16,t.STATE_FAILED=rg,t.Manager=wg,t.Input=Lv,t.TouchAction=Sv,t.TouchInput=Xv,t.MouseInput=Qv,t.PointerEventInput=Wv,t.TouchMouseInput=ng,t.SingleTouchInput=kg,t.Recognizer=lg,t.AttrRecognizer=cg,t.Tap=ug,t.Pan=dg,t.Swipe=pg,t.Pinch=fg,t.Rotate=mg,t.Press=vg,t.on=jv,t.off=Rv,t.each=_v,t.merge=Tg,t.extend=Dg,t.bindFn=Og,t.assign=zm,t.inherit=Cg,t.bindFn=Og,t.prefixed=Um,t.toArray=Vv,t.inArray=Yv,t.uniqueArray=Uv,t.splitStr=Nv,t.boolOrFn=kv,t.hasParent=Dv,t.addEventListeners=jv,t.removeEventListeners=Rv,t.defaults=zm({},gg,{preset:yg}),t}();function Mg(t,e){var n=void 0!==Np&&Wd(t)||t["@@iterator"];if(!n){if(Xp(t)||(n=function(t,e){var n;if(t){if("string"==typeof t)return Pg(t,e);var i=zp(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Hd(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Pg(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function Pg(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var Ag=Np("DELETE");function Ig(){var t=Ng.apply(void 0,arguments);return Rg(t),t}function Ng(){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 i;if(e.length>2)return Ng.apply(void 0,Yp(i=[Ig(e[0],e[1])]).call(i,Ip(zp(e).call(e,2))));var r=e[0],o=e[1];if(r instanceof Date&&o instanceof Date)return r.setTime(o.getTime()),r;var s,a=Mg(qp(o));try{for(a.s();!(s=a.n()).done;){var l=s.value;Object.prototype.propertyIsEnumerable.call(o,l)&&(o[l]===Ag?delete r[l]:null===r[l]||null===o[l]||"object"!=typeof r[l]||"object"!=typeof o[l]||Xp(r[l])||Xp(o[l])?r[l]=jg(o[l]):r[l]=Ng(r[l],o[l]))}}catch(t){a.e(t)}finally{a.f()}return r}function jg(t){return Xp(t)?Rh(t).call(t,(function(t){return jg(t)})):"object"==typeof t&&null!==t?t instanceof Date?new Date(t.getTime()):Ng({},t):t}function Rg(t){for(var e=0,n=Qp(t);e<n.length;e++){var i=n[e];t[i]===Ag?delete t[i]:"object"==typeof t[i]&&null!==t[i]&&Rg(t[i])}}var Fg="undefined"!=typeof window?window.Hammer||Eg:function(){return function(){var t=function(){};return{on:t,off:t,destroy:t,emit:t,get:()=>({set:t})}}()};function Lg(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 i=Fg(this._dom.overlay);i.on("tap",lh(e=this._onTapOverlay).call(e,this)),this._cleanupQueue.push((function(){i.destroy()}));var r=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];uf(r).call(r,(function(t){i.on(t,(function(t){t.srcEvent.stopPropagation()}))})),document&&document.body&&(this._onClick=function(e){(function(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1})(e.target,t)||n.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push((function(){document.body.removeEventListener("click",n._onClick)}))),this._escListener=function(t){("key"in t?"Escape"===t.key:27===t.keyCode)&&n.deactivate()}}jm(Lg.prototype),Lg.current=null,Lg.prototype.destroy=function(){var t,e;this.deactivate();var n,i=Mg(bf(t=zf(e=this._cleanupQueue).call(e,0)).call(t));try{for(i.s();!(n=i.n()).done;)(0,n.value)()}catch(t){i.e(t)}finally{i.f()}},Lg.prototype.activate=function(){Lg.current&&Lg.current.deactivate(),Lg.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)},Lg.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")},Lg.prototype._onTapOverlay=function(t){this.activate(),t.srcEvent.stopPropagation()};var Yg=Ei,zg=Mt,Hg=TypeError,Gg=function(t){if(Yg(t))return t;throw new Hg(zg(t)+" is not a constructor")},Bg=An,Wg=f,Vg=Zc,Ug=Gg,qg=sn,Xg=it,$g=$r,Kg=l,Qg=ut("Reflect","construct"),Zg=Object.prototype,Jg=[].push,ty=Kg((function(){function t(){}return!(Qg((function(){}),[],t)instanceof t)})),ey=!Kg((function(){Qg((function(){}))})),ny=ty||ey;Bg({target:"Reflect",stat:!0,forced:ny,sham:ny},{construct:function(t,e){Ug(t),qg(e);var n=arguments.length<3?t:Ug(arguments[2]);if(ey&&!ty)return Qg(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 i=[null];return Wg(Jg,i,e),new(Wg(Vg,t,i))}var r=n.prototype,o=$g(Xg(r)?r:Zg),s=Wg(t,o,e);return Xg(s)?s:o}});var iy=r(rt.Reflect.construct),ry=r(rt.Object.getOwnPropertySymbols),oy={exports:{}},sy=An,ay=l,ly=tt,uy=P.f,cy=A;sy({target:"Object",stat:!0,forced:!cy||ay((function(){uy(1)})),sham:!cy},{getOwnPropertyDescriptor:function(t,e){return uy(ly(t),e)}});var hy=rt.Object,dy=oy.exports=function(t,e){return hy.getOwnPropertyDescriptor(t,e)};hy.getOwnPropertyDescriptor.sham&&(dy.sham=!0);var py=r(oy.exports),fy=Up,my=tt,vy=P,gy=ni;An({target:"Object",stat:!0,sham:!A},{getOwnPropertyDescriptors:function(t){for(var e,n,i=my(t),r=vy.f,o=fy(i),s={},a=0;o.length>a;)void 0!==(n=r(i,e=o[a++]))&&gy(s,e,n);return s}});var yy=r(rt.Object.getOwnPropertyDescriptors),by={exports:{}},wy=An,_y=A,ky=rr.f;wy({target:"Object",stat:!0,forced:Object.defineProperties!==ky,sham:!_y},{defineProperties:ky});var xy=rt.Object,Sy=by.exports=function(t,e){return xy.defineProperties(t,e)};xy.defineProperties.sham&&(Sy.sham=!0);var Dy=r(by.exports),Ty=r(Ln);function Cy(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var Oy=am,Ey=r(Oy);An({target:"Object",stat:!0},{setPrototypeOf:lu});var My=rt.Object.setPrototypeOf,Py=r(My),Ay=r(ah);function Iy(t,e){var n;return Iy=Py?Ay(n=Py).call(n):function(t,e){return t.__proto__=e,t},Iy(t,e)}function Ny(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Ey(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),zn(t,"prototype",{writable:!1}),e&&Iy(t,e)}function jy(t,e){if(e&&("object"===Rc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Cy(t)}var Ry=om,Fy=r(Ry);function Ly(t){var e;return Ly=Py?Ay(e=Fy).call(e):function(t){return t.__proto__||Fy(t)},Ly(t)}var Yy={exports:{}},zy={exports:{}};!function(t){var e=mc,n=Nc;function i(r){return t.exports=i="function"==typeof e&&"symbol"==typeof n?function(t){return typeof t}:function(t){return t&&"function"==typeof e&&t.constructor===e&&t!==e.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,i(r)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}(zy);var Hy=zy.exports,Gy=lf,By=ee,Wy=Up,Vy=P,Uy=tn,qy=it,Xy=wn,$y=Error,Ky=b("".replace),Qy=String(new $y("zxcasd").stack),Zy=/\n\s*at [^:]*:[^\n]*/,Jy=Zy.test(Qy),tb=G,eb=!l((function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",tb(1,7)),7!==t.stack)})),nb=wn,ib=function(t,e){if(Jy&&"string"==typeof t&&!$y.prepareStackTrace)for(;e--;)t=Ky(t,Zy,"");return t},rb=eb,ob=Error.captureStackTrace,sb=Je,ab=j,lb=sn,ub=Mt,cb=ud,hb=Kn,db=ct,pb=kd,fb=md,mb=id,vb=TypeError,gb=function(t,e){this.stopped=t,this.result=e},yb=gb.prototype,bb=function(t,e,n){var i,r,o,s,a,l,u,c=n&&n.that,h=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_RECORD),p=!(!n||!n.IS_ITERATOR),f=!(!n||!n.INTERRUPTED),m=sb(e,c),v=function(t){return i&&mb(i,"normal",t),new gb(!0,t)},g=function(t){return h?(lb(t),f?m(t[0],t[1],v):m(t[0],t[1])):f?m(t,v):m(t)};if(d)i=t.iterator;else if(p)i=t;else{if(!(r=fb(t)))throw new vb(ub(t)+" is not iterable");if(cb(r)){for(o=0,s=hb(t);s>o;o++)if((a=g(t[o]))&&db(yb,a))return a;return new gb(!1)}i=pb(t,r)}for(l=d?t.next:i.next;!(u=ab(l,i)).done;){try{a=g(u.value)}catch(t){mb(i,"throw",t)}if("object"==typeof a&&a&&db(yb,a))return a}return new gb(!1)},wb=ir,_b=An,kb=ct,xb=Fl,Sb=lu,Db=function(t,e,n){for(var i=Wy(e),r=Uy.f,o=Vy.f,s=0;s<i.length;s++){var a=i[s];By(t,a)||n&&By(n,a)||r(t,a,o(e,a))}},Tb=$r,Cb=wn,Ob=G,Eb=function(t,e){qy(e)&&"cause"in e&&Xy(t,"cause",e.cause)},Mb=function(t,e,n,i){rb&&(ob?ob(t,e):nb(t,"stack",ib(n,i)))},Pb=bb,Ab=function(t,e){return void 0===t?arguments.length<2?"":e:wb(t)},Ib=me("toStringTag"),Nb=Error,jb=[].push,Rb=function(t,e){var n,i=kb(Fb,this);Sb?n=Sb(new Nb,i?xb(this):Fb):(n=i?this:Tb(Fb),Cb(n,Ib,"Error")),void 0!==e&&Cb(n,"message",Ab(e)),Mb(n,Rb,n.stack,1),arguments.length>2&&Eb(n,arguments[2]);var r=[];return Pb(t,jb,{that:r}),Cb(n,"errors",r),n};Sb?Sb(Rb,Nb):Db(Rb,Nb,{name:!0});var Fb=Rb.prototype=Tb(Nb.prototype,{constructor:Ob(1,Rb),message:Ob(1,""),name:Ob(1,"AggregateError")});_b({global:!0,constructor:!0,arity:2},{AggregateError:Rb});var Lb,Yb,zb,Hb,Gb=ut,Bb=vo,Wb=A,Vb=me("species"),Ub=function(t){var e=Gb(t);Wb&&e&&!e[Vb]&&Bb(e,Vb,{configurable:!0,get:function(){return this}})},qb=ct,Xb=TypeError,$b=function(t,e){if(qb(e,t))return t;throw new Xb("Incorrect invocation")},Kb=sn,Qb=Gg,Zb=X,Jb=me("species"),tw=function(t,e){var n,i=Kb(t).constructor;return void 0===i||Zb(n=Kb(i)[Jb])?e:Qb(n)},ew=/(?:ipad|iphone|ipod).*applewebkit/i.test(ht),nw=a,iw=f,rw=Je,ow=M,sw=ee,aw=l,lw=Ar,uw=Ra,cw=Ee,hw=mm,dw=ew,pw=yh,fw=nw.setImmediate,mw=nw.clearImmediate,vw=nw.process,gw=nw.Dispatch,yw=nw.Function,bw=nw.MessageChannel,ww=nw.String,_w=0,kw={},xw="onreadystatechange";aw((function(){Lb=nw.location}));var Sw=function(t){if(sw(kw,t)){var e=kw[t];delete kw[t],e()}},Dw=function(t){return function(){Sw(t)}},Tw=function(t){Sw(t.data)},Cw=function(t){nw.postMessage(ww(t),Lb.protocol+"//"+Lb.host)};fw&&mw||(fw=function(t){hw(arguments.length,1);var e=ow(t)?t:yw(t),n=uw(arguments,1);return kw[++_w]=function(){iw(e,void 0,n)},Yb(_w),_w},mw=function(t){delete kw[t]},pw?Yb=function(t){vw.nextTick(Dw(t))}:gw&&gw.now?Yb=function(t){gw.now(Dw(t))}:bw&&!dw?(Hb=(zb=new bw).port2,zb.port1.onmessage=Tw,Yb=rw(Hb.postMessage,Hb)):nw.addEventListener&&ow(nw.postMessage)&&!nw.importScripts&&Lb&&"file:"!==Lb.protocol&&!aw(Cw)?(Yb=Cw,nw.addEventListener("message",Tw,!1)):Yb=xw in cw("script")?function(t){lw.appendChild(cw("script"))[xw]=function(){lw.removeChild(this),Sw(t)}}:function(t){setTimeout(Dw(t),0)});var Ow={set:fw,clear:mw},Ew=function(){this.head=null,this.tail=null};Ew.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var Mw,Pw,Aw,Iw,Nw,jw=Ew,Rw=/ipad|iphone|ipod/i.test(ht)&&"undefined"!=typeof Pebble,Fw=/web0s(?!.*chrome)/i.test(ht),Lw=a,Yw=Je,zw=P.f,Hw=Ow.set,Gw=jw,Bw=ew,Ww=Rw,Vw=Fw,Uw=yh,qw=Lw.MutationObserver||Lw.WebKitMutationObserver,Xw=Lw.document,$w=Lw.process,Kw=Lw.Promise,Qw=zw(Lw,"queueMicrotask"),Zw=Qw&&Qw.value;if(!Zw){var Jw=new Gw,t_=function(){var t,e;for(Uw&&(t=$w.domain)&&t.exit();e=Jw.get();)try{e()}catch(t){throw Jw.head&&Mw(),t}t&&t.enter()};Bw||Uw||Vw||!qw||!Xw?!Ww&&Kw&&Kw.resolve?((Iw=Kw.resolve(void 0)).constructor=Kw,Nw=Yw(Iw.then,Iw),Mw=function(){Nw(t_)}):Uw?Mw=function(){$w.nextTick(t_)}:(Hw=Yw(Hw,Lw),Mw=function(){Hw(t_)}):(Pw=!0,Aw=Xw.createTextNode(""),new qw(t_).observe(Aw,{characterData:!0}),Mw=function(){Aw.data=Pw=!Pw}),Zw=function(t){Jw.head||Mw(),Jw.add(t)}}var e_=Zw,n_=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},i_=a.Promise,r_="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,o_=!r_&&!yh&&"object"==typeof window&&"object"==typeof document,s_=a,a_=i_,l_=M,u_=$e,c_=mi,h_=me,d_=o_,p_=r_,f_=yt,m_=a_&&a_.prototype,v_=h_("species"),g_=!1,y_=l_(s_.PromiseRejectionEvent),b_=u_("Promise",(function(){var t=c_(a_),e=t!==String(a_);if(!e&&66===f_)return!0;if(!m_.catch||!m_.finally)return!0;if(!f_||f_<51||!/native code/.test(t)){var n=new a_((function(t){t(1)})),i=function(t){t((function(){}),(function(){}))};if((n.constructor={})[v_]=i,!(g_=n.then((function(){}))instanceof i))return!0}return!e&&(d_||p_)&&!y_})),w_={CONSTRUCTOR:b_,REJECTION_EVENT:y_,SUBCLASSING:g_},__={},k_=Nt,x_=TypeError,S_=function(t){var e,n;this.promise=new t((function(t,i){if(void 0!==e||void 0!==n)throw new x_("Bad Promise constructor");e=t,n=i})),this.resolve=k_(e),this.reject=k_(n)};__.f=function(t){return new S_(t)};var D_,T_,C_=An,O_=yh,E_=a,M_=j,P_=fo,A_=zo,I_=Ub,N_=Nt,j_=M,R_=it,F_=$b,L_=tw,Y_=Ow.set,z_=e_,H_=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}},G_=n_,B_=jw,W_=ns,V_=i_,U_=w_,q_=__,X_="Promise",$_=U_.CONSTRUCTOR,K_=U_.REJECTION_EVENT,Q_=W_.getterFor(X_),Z_=W_.set,J_=V_&&V_.prototype,tk=V_,ek=J_,nk=E_.TypeError,ik=E_.document,rk=E_.process,ok=q_.f,sk=ok,ak=!!(ik&&ik.createEvent&&E_.dispatchEvent),lk="unhandledrejection",uk=function(t){var e;return!(!R_(t)||!j_(e=t.then))&&e},ck=function(t,e){var n,i,r,o=e.value,s=1===e.state,a=s?t.ok:t.fail,l=t.resolve,u=t.reject,c=t.domain;try{a?(s||(2===e.rejection&&mk(e),e.rejection=1),!0===a?n=o:(c&&c.enter(),n=a(o),c&&(c.exit(),r=!0)),n===t.promise?u(new nk("Promise-chain cycle")):(i=uk(n))?M_(i,n,l,u):l(n)):u(o)}catch(t){c&&!r&&c.exit(),u(t)}},hk=function(t,e){t.notified||(t.notified=!0,z_((function(){for(var n,i=t.reactions;n=i.get();)ck(n,t);t.notified=!1,e&&!t.rejection&&pk(t)})))},dk=function(t,e,n){var i,r;ak?((i=ik.createEvent("Event")).promise=e,i.reason=n,i.initEvent(t,!1,!0),E_.dispatchEvent(i)):i={promise:e,reason:n},!K_&&(r=E_["on"+t])?r(i):t===lk&&H_("Unhandled promise rejection",n)},pk=function(t){M_(Y_,E_,(function(){var e,n=t.facade,i=t.value;if(fk(t)&&(e=G_((function(){O_?rk.emit("unhandledRejection",i,n):dk(lk,n,i)})),t.rejection=O_||fk(t)?2:1,e.error))throw e.value}))},fk=function(t){return 1!==t.rejection&&!t.parent},mk=function(t){M_(Y_,E_,(function(){var e=t.facade;O_?rk.emit("rejectionHandled",e):dk("rejectionhandled",e,t.value)}))},vk=function(t,e,n){return function(i){t(e,i,n)}},gk=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,hk(t,!0))},yk=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw new nk("Promise can't be resolved itself");var i=uk(e);i?z_((function(){var n={done:!1};try{M_(i,e,vk(yk,n,t),vk(gk,n,t))}catch(e){gk(n,e,t)}})):(t.value=e,t.state=1,hk(t,!1))}catch(e){gk({done:!1},e,t)}}};$_&&(ek=(tk=function(t){F_(this,ek),N_(t),M_(D_,this);var e=Q_(this);try{t(vk(yk,e),vk(gk,e))}catch(t){gk(e,t)}}).prototype,(D_=function(t){Z_(this,{type:X_,done:!1,notified:!1,parent:!1,reactions:new B_,rejection:!1,state:0,value:void 0})}).prototype=P_(ek,"then",(function(t,e){var n=Q_(this),i=ok(L_(this,tk));return n.parent=!0,i.ok=!j_(t)||t,i.fail=j_(e)&&e,i.domain=O_?rk.domain:void 0,0===n.state?n.reactions.add(i):z_((function(){ck(i,n)})),i.promise})),T_=function(){var t=new D_,e=Q_(t);this.promise=t,this.resolve=vk(yk,e),this.reject=vk(gk,e)},q_.f=ok=function(t){return t===tk||void 0===t?new T_(t):sk(t)}),C_({global:!0,constructor:!0,wrap:!0,forced:$_},{Promise:tk}),A_(tk,X_,!1,!0),I_(X_);var bk=i_,wk=w_.CONSTRUCTOR||!Ld((function(t){bk.all(t).then(void 0,(function(){}))})),_k=j,kk=Nt,xk=__,Sk=n_,Dk=bb;An({target:"Promise",stat:!0,forced:wk},{all:function(t){var e=this,n=xk.f(e),i=n.resolve,r=n.reject,o=Sk((function(){var n=kk(e.resolve),o=[],s=0,a=1;Dk(t,(function(t){var l=s++,u=!1;a++,_k(n,e,t).then((function(t){u||(u=!0,o[l]=t,--a||i(o))}),r)})),--a||i(o)}));return o.error&&r(o.value),n.promise}});var Tk=An,Ck=w_.CONSTRUCTOR;i_&&i_.prototype,Tk({target:"Promise",proto:!0,forced:Ck,real:!0},{catch:function(t){return this.then(void 0,t)}});var Ok=j,Ek=Nt,Mk=__,Pk=n_,Ak=bb;An({target:"Promise",stat:!0,forced:wk},{race:function(t){var e=this,n=Mk.f(e),i=n.reject,r=Pk((function(){var r=Ek(e.resolve);Ak(t,(function(t){Ok(r,e,t).then(n.resolve,i)}))}));return r.error&&i(r.value),n.promise}});var Ik=j,Nk=__;An({target:"Promise",stat:!0,forced:w_.CONSTRUCTOR},{reject:function(t){var e=Nk.f(this);return Ik(e.reject,void 0,t),e.promise}});var jk=sn,Rk=it,Fk=__,Lk=function(t,e){if(jk(t),Rk(e)&&e.constructor===t)return e;var n=Fk.f(t);return(0,n.resolve)(e),n.promise},Yk=An,zk=i_,Hk=w_.CONSTRUCTOR,Gk=Lk,Bk=ut("Promise"),Wk=!Hk;Yk({target:"Promise",stat:!0,forced:!0},{resolve:function(t){return Gk(Wk&&this===Bk?zk:this,t)}});var Vk=j,Uk=Nt,qk=__,Xk=n_,$k=bb;An({target:"Promise",stat:!0,forced:wk},{allSettled:function(t){var e=this,n=qk.f(e),i=n.resolve,r=n.reject,o=Xk((function(){var n=Uk(e.resolve),r=[],o=0,s=1;$k(t,(function(t){var a=o++,l=!1;s++,Vk(n,e,t).then((function(t){l||(l=!0,r[a]={status:"fulfilled",value:t},--s||i(r))}),(function(t){l||(l=!0,r[a]={status:"rejected",reason:t},--s||i(r))}))})),--s||i(r)}));return o.error&&r(o.value),n.promise}});var Kk=j,Qk=Nt,Zk=ut,Jk=__,tx=n_,ex=bb,nx="No one promise resolved";An({target:"Promise",stat:!0,forced:wk},{any:function(t){var e=this,n=Zk("AggregateError"),i=Jk.f(e),r=i.resolve,o=i.reject,s=tx((function(){var i=Qk(e.resolve),s=[],a=0,l=1,u=!1;ex(t,(function(t){var c=a++,h=!1;l++,Kk(i,e,t).then((function(t){h||u||(u=!0,r(t))}),(function(t){h||u||(h=!0,s[c]=t,--l||o(new n(s,nx)))}))})),--l||o(new n(s,nx))}));return s.error&&o(s.value),i.promise}});var ix=An,rx=i_,ox=l,sx=ut,ax=M,lx=tw,ux=Lk,cx=rx&&rx.prototype;ix({target:"Promise",proto:!0,real:!0,forced:!!rx&&ox((function(){cx.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=lx(this,sx("Promise")),n=ax(t);return this.then(n?function(n){return ux(e,t()).then((function(){return n}))}:t,n?function(n){return ux(e,t()).then((function(){throw n}))}:t)}});var hx=rt.Promise,dx=__;An({target:"Promise",stat:!0},{withResolvers:function(){var t=dx.f(this);return{promise:t.promise,resolve:t.resolve,reject:t.reject}}});var px=hx,fx=__,mx=n_;An({target:"Promise",stat:!0,forced:!0},{try:function(t){var e=fx.f(this),n=mx(t);return(n.error?e.reject:e.resolve)(n.value),e.promise}});var vx=px,gx=yf;!function(t){var e=Hy.default,n=Yn,i=mc,r=Oy,o=Ry,s=Gy,a=sp,l=My,u=vx,c=gx,h=Cp;function d(){t.exports=d=function(){return f},t.exports.__esModule=!0,t.exports.default=t.exports;var p,f={},m=Object.prototype,v=m.hasOwnProperty,g=n||function(t,e,n){t[e]=n.value},y="function"==typeof i?i:{},b=y.iterator||"@@iterator",w=y.asyncIterator||"@@asyncIterator",_=y.toStringTag||"@@toStringTag";function k(t,e,i){return n(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{k({},"")}catch(p){k=function(t,e,n){return t[e]=n}}function x(t,e,n,i){var o=e&&e.prototype instanceof M?e:M,s=r(o.prototype),a=new G(i||[]);return g(s,"_invoke",{value:L(t,n,a)}),s}function S(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}f.wrap=x;var D="suspendedStart",T="suspendedYield",C="executing",O="completed",E={};function M(){}function P(){}function A(){}var I={};k(I,b,(function(){return this}));var N=o&&o(o(B([])));N&&N!==m&&v.call(N,b)&&(I=N);var j=A.prototype=M.prototype=r(I);function R(t){var e;s(e=["next","throw","return"]).call(e,(function(e){k(t,e,(function(t){return this._invoke(e,t)}))}))}function F(t,n){function i(r,o,s,a){var l=S(t[r],t,o);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==e(c)&&v.call(c,"__await")?n.resolve(c.__await).then((function(t){i("next",t,s,a)}),(function(t){i("throw",t,s,a)})):n.resolve(c).then((function(t){u.value=t,s(u)}),(function(t){return i("throw",t,s,a)}))}a(l.arg)}var r;g(this,"_invoke",{value:function(t,e){function o(){return new n((function(n,r){i(t,e,n,r)}))}return r=r?r.then(o,o):o()}})}function L(t,e,n){var i=D;return function(r,o){if(i===C)throw new Error("Generator is already running");if(i===O){if("throw"===r)throw o;return{value:p,done:!0}}for(n.method=r,n.arg=o;;){var s=n.delegate;if(s){var a=Y(s,n);if(a){if(a===E)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===D)throw i=O,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=C;var l=S(t,e,n);if("normal"===l.type){if(i=n.done?O:T,l.arg===E)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=O,n.method="throw",n.arg=l.arg)}}}function Y(t,e){var n=e.method,i=t.iterator[n];if(i===p)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=p,Y(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),E;var r=S(i,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,E;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=p),e.delegate=null,E):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,E)}function z(t){var e,n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),a(e=this.tryEntries).call(e,n)}function H(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function G(t){this.tryEntries=[{tryLoc:"root"}],s(t).call(t,z,this),this.reset(!0)}function B(t){if(t||""===t){var n=t[b];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,r=function e(){for(;++i<t.length;)if(v.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=p,e.done=!0,e};return r.next=r}}throw new TypeError(e(t)+" is not iterable")}return P.prototype=A,g(j,"constructor",{value:A,configurable:!0}),g(A,"constructor",{value:P,configurable:!0}),P.displayName=k(A,_,"GeneratorFunction"),f.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===P||"GeneratorFunction"===(e.displayName||e.name))},f.mark=function(t){return l?l(t,A):(t.__proto__=A,k(t,_,"GeneratorFunction")),t.prototype=r(j),t},f.awrap=function(t){return{__await:t}},R(F.prototype),k(F.prototype,w,(function(){return this})),f.AsyncIterator=F,f.async=function(t,e,n,i,r){void 0===r&&(r=u);var o=new F(x(t,e,n,i),r);return f.isGeneratorFunction(e)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},R(j),k(j,_,"Generator"),k(j,b,(function(){return this})),k(j,"toString",(function(){return"[object Generator]"})),f.keys=function(t){var e=Object(t),n=[];for(var i in e)a(n).call(n,i);return c(n).call(n),function t(){for(;n.length;){var i=n.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},f.values=B,G.prototype={constructor:G,reset:function(t){var e;if(this.prev=0,this.next=0,this.sent=this._sent=p,this.done=!1,this.delegate=null,this.method="next",this.arg=p,s(e=this.tryEntries).call(e,H),!t)for(var n in this)"t"===n.charAt(0)&&v.call(this,n)&&!isNaN(+h(n).call(n,1))&&(this[n]=p)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,i){return o.type="throw",o.arg=t,e.next=n,i&&(e.method="next",e.arg=p),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i],o=r.completion;if("root"===r.tryLoc)return n("end");if(r.tryLoc<=this.prev){var s=v.call(r,"catchLoc"),a=v.call(r,"finallyLoc");if(s&&a){if(this.prev<r.catchLoc)return n(r.catchLoc,!0);if(this.prev<r.finallyLoc)return n(r.finallyLoc)}else if(s){if(this.prev<r.catchLoc)return n(r.catchLoc,!0)}else{if(!a)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return n(r.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&v.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=t,o.arg=e,r?(this.method="next",this.next=r.finallyLoc,E):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),E},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),H(n),E}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;H(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:B(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=p),E}},f}t.exports=d,t.exports.__esModule=!0,t.exports.default=t.exports}(Yy);var yx=(0,Yy.exports)(),bx=yx;try{regeneratorRuntime=yx}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=yx:Function("r","regeneratorRuntime = r")(yx)}var wx=r(bx),_x={exports:{}},kx=l((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),xx=l,Sx=it,Dx=x,Tx=kx,Cx=Object.isExtensible,Ox=xx((function(){Cx(1)}))||Tx?function(t){return!!Sx(t)&&(!Tx||"ArrayBuffer"!==Dx(t))&&(!Cx||Cx(t))}:Cx,Ex=!l((function(){return Object.isExtensible(Object.preventExtensions({}))})),Mx=An,Px=b,Ax=fr,Ix=it,Nx=ee,jx=tn.f,Rx=Kr,Fx=Jr,Lx=Ox,Yx=Ex,zx=!1,Hx=se("meta"),Gx=0,Bx=function(t){jx(t,Hx,{value:{objectID:"O"+Gx++,weakData:{}}})},Wx=_x.exports={enable:function(){Wx.enable=function(){},zx=!0;var t=Rx.f,e=Px([].splice),n={};n[Hx]=1,t(n).length&&(Rx.f=function(n){for(var i=t(n),r=0,o=i.length;r<o;r++)if(i[r]===Hx){e(i,r,1);break}return i},Mx({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Fx.f}))},fastKey:function(t,e){if(!Ix(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!Nx(t,Hx)){if(!Lx(t))return"F";if(!e)return"E";Bx(t)}return t[Hx].objectID},getWeakData:function(t,e){if(!Nx(t,Hx)){if(!Lx(t))return!0;if(!e)return!1;Bx(t)}return t[Hx].weakData},onFreeze:function(t){return Yx&&zx&&Lx(t)&&!Nx(t,Hx)&&Bx(t),t}};Ax[Hx]=!0;var Vx=_x.exports,Ux=An,qx=a,Xx=Vx,$x=l,Kx=wn,Qx=bb,Zx=$b,Jx=M,tS=it,eS=X,nS=zo,iS=tn.f,rS=cs.forEach,oS=A,sS=ns.set,aS=ns.getterFor,lS=function(t,e,n){var i,r=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),s=r?"set":"add",a=qx[t],l=a&&a.prototype,u={};if(oS&&Jx(a)&&(o||l.forEach&&!$x((function(){(new a).entries().next()})))){var c=(i=e((function(e,n){sS(Zx(e,c),{type:t,collection:new a}),eS(n)||Qx(n,e[s],{that:e,AS_ENTRIES:r})}))).prototype,h=aS(t);rS(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var e="add"===t||"set"===t;!(t in l)||o&&"clear"===t||Kx(c,t,(function(n,i){var r=h(this).collection;if(!e&&o&&!tS(n))return"get"===t&&void 0;var s=r[t](0===n?0:n,i);return e?this:s}))})),o||iS(c,"size",{configurable:!0,get:function(){return h(this).collection.size}})}else i=n.getConstructor(e,t,r,s),Xx.enable();return nS(i,t,!1,!0),u[t]=i,Ux({global:!0,forced:!0},u),o||n.setStrong(i,t,r),i},uS=fo,cS=$r,hS=vo,dS=function(t,e,n){for(var i in e)n&&n.unsafe&&t[i]?t[i]=e[i]:uS(t,i,e[i],n);return t},pS=Je,fS=$b,mS=X,vS=bb,gS=Su,yS=Du,bS=Ub,wS=A,_S=Vx.fastKey,kS=ns.set,xS=ns.getterFor,SS={getConstructor:function(t,e,n,i){var r=t((function(t,r){fS(t,o),kS(t,{type:e,index:cS(null),first:void 0,last:void 0,size:0}),wS||(t.size=0),mS(r)||vS(r,t[i],{that:t,AS_ENTRIES:n})})),o=r.prototype,s=xS(e),a=function(t,e,n){var i,r,o=s(t),a=l(t,e);return a?a.value=n:(o.last=a={index:r=_S(e,!0),key:e,value:n,previous:i=o.last,next:void 0,removed:!1},o.first||(o.first=a),i&&(i.next=a),wS?o.size++:t.size++,"F"!==r&&(o.index[r]=a)),t},l=function(t,e){var n,i=s(t),r=_S(e);if("F"!==r)return i.index[r];for(n=i.first;n;n=n.next)if(n.key===e)return n};return dS(o,{clear:function(){for(var t=s(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,wS?t.size=0:this.size=0},delete:function(t){var e=this,n=s(e),i=l(e,t);if(i){var r=i.next,o=i.previous;delete n.index[i.index],i.removed=!0,o&&(o.next=r),r&&(r.previous=o),n.first===i&&(n.first=r),n.last===i&&(n.last=o),wS?n.size--:e.size--}return!!i},forEach:function(t){for(var e,n=s(this),i=pS(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:n.first;)for(i(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!l(this,t)}}),dS(o,n?{get:function(t){var e=l(this,t);return e&&e.value},set:function(t,e){return a(this,0===t?0:t,e)}}:{add:function(t){return a(this,t=0===t?0:t,t)}}),wS&&hS(o,"size",{configurable:!0,get:function(){return s(this).size}}),r},setStrong:function(t,e,n){var i=e+" Iterator",r=xS(e),o=xS(i);gS(t,e,(function(t,e){kS(this,{type:i,target:t,state:r(t),kind:e,last:void 0})}),(function(){for(var t=o(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?yS("keys"===e?n.key:"values"===e?n.value:[n.key,n.value],!1):(t.target=void 0,yS(void 0,!0))}),n?"entries":"values",!n,!0),bS(e)}};lS("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),SS);var DS=r(rt.Map),TS=cs.some;An({target:"Array",proto:!0,forced:!gh("some")},{some:function(t){return TS(this,t,arguments.length>1?arguments[1]:void 0)}});var CS=nh("Array","some"),OS=ct,ES=CS,MS=Array.prototype,PS=r((function(t){var e=t.some;return t===MS||OS(MS,t)&&e===MS.some?ES:e})),AS=nh("Array","keys"),IS=hi,NS=ee,jS=ct,RS=AS,FS=Array.prototype,LS={DOMTokenList:!0,NodeList:!0},YS=r((function(t){var e=t.keys;return t===FS||jS(FS,t)&&e===FS.keys||NS(LS,IS(t))?RS:e})),zS=oo,HS=Math.floor,GS=function(t,e){var n=t.length,i=HS(n/2);return n<8?BS(t,e):WS(t,GS(zS(t,0,i),e),GS(zS(t,i),e),e)},BS=function(t,e){for(var n,i,r=t.length,o=1;o<r;){for(i=o,n=t[o];i&&e(t[i-1],n)>0;)t[i]=t[--i];i!==o++&&(t[i]=n)}return t},WS=function(t,e,n,i){for(var r=e.length,o=n.length,s=0,a=0;s<r||a<o;)t[s+a]=s<r&&a<o?i(e[s],n[a])<=0?e[s++]:n[a++]:s<r?e[s++]:n[a++];return t},VS=GS,US=ht.match(/firefox\/(\d+)/i),qS=!!US&&+US[1],XS=/MSIE|Trident/.test(ht),$S=ht.match(/AppleWebKit\/(\d+)\./),KS=!!$S&&+$S[1],QS=An,ZS=b,JS=Nt,tD=Zt,eD=Kn,nD=kf,iD=ir,rD=l,oD=VS,sD=gh,aD=qS,lD=XS,uD=yt,cD=KS,hD=[],dD=ZS(hD.sort),pD=ZS(hD.push),fD=rD((function(){hD.sort(void 0)})),mD=rD((function(){hD.sort(null)})),vD=sD("sort"),gD=!rD((function(){if(uD)return uD<70;if(!(aD&&aD>3)){if(lD)return!0;if(cD)return cD<603;var t,e,n,i,r="";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(i=0;i<47;i++)hD.push({k:e+i,v:n})}for(hD.sort((function(t,e){return e.v-t.v})),i=0;i<hD.length;i++)e=hD[i].k.charAt(0),r.charAt(r.length-1)!==e&&(r+=e);return"DGBEFHACIJK"!==r}}));QS({target:"Array",proto:!0,forced:fD||!mD||!vD||!gD},{sort:function(t){void 0!==t&&JS(t);var e=tD(this);if(gD)return void 0===t?dD(e):dD(e,t);var n,i,r=[],o=eD(e);for(i=0;i<o;i++)i in e&&pD(r,e[i]);for(oD(r,function(t){return function(e,n){return void 0===n?-1:void 0===e?1:void 0!==t?+t(e,n)||0:iD(e)>iD(n)?1:-1}}(t)),n=eD(r),i=0;i<n;)e[i]=r[i++];for(;i<o;)nD(e,i++);return e}});var yD=nh("Array","sort"),bD=ct,wD=yD,_D=Array.prototype,kD=r((function(t){var e=t.sort;return t===_D||bD(_D,t)&&e===_D.sort?wD:e})),xD=nh("Array","values"),SD=hi,DD=ee,TD=ct,CD=xD,OD=Array.prototype,ED={DOMTokenList:!0,NodeList:!0},MD=r((function(t){var e=t.values;return t===OD||TD(OD,t)&&e===OD.values||DD(ED,SD(t))?CD:e})),PD=r(Ic),AD=nh("Array","entries"),ID=hi,ND=ee,jD=ct,RD=AD,FD=Array.prototype,LD={DOMTokenList:!0,NodeList:!0},YD=r((function(t){var e=t.entries;return t===FD||jD(FD,t)&&e===FD.entries||ND(LD,ID(t))?RD:e}));let zD;const HD=new Uint8Array(16);function GD(){if(!zD&&(zD="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!zD))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return zD(HD)}const BD=[];for(let t=0;t<256;++t)BD.push((t+256).toString(16).slice(1));var WD={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function VD(t,e,n){if(WD.randomUUID&&!e&&!t)return WD.randomUUID();const i=(t=t||{}).random||(t.rng||GD)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,e){n=n||0;for(let t=0;t<16;++t)e[n+t]=i[t];return e}return function(t,e=0){return BD[t[e+0]]+BD[t[e+1]]+BD[t[e+2]]+BD[t[e+3]]+"-"+BD[t[e+4]]+BD[t[e+5]]+"-"+BD[t[e+6]]+BD[t[e+7]]+"-"+BD[t[e+8]]+BD[t[e+9]]+"-"+BD[t[e+10]]+BD[t[e+11]]+BD[t[e+12]]+BD[t[e+13]]+BD[t[e+14]]+BD[t[e+15]]}(i)}function UD(t){return"string"==typeof t||"number"==typeof t}var qD=function(){function t(e){n(this,t),Hc(this,"_queue",[]),Hc(this,"_timeout",null),Hc(this,"_extended",null),this.delay=null,this.max=1/0,this.setOptions(e)}return zc(t,[{key:"setOptions",value:function(t){t&&void 0!==t.delay&&(this.delay=t.delay),t&&void 0!==t.max&&(this.max=t.max),this._flushIfNeeded()}},{key:"destroy",value:function(){if(this.flush(),this._extended){for(var t=this._extended.object,e=this._extended.methods,n=0;n<e.length;n++){var i=e[n];i.original?t[i.name]=i.original:delete t[i.name]}this._extended=null}}},{key:"replace",value:function(t,e){var n=this,i=t[e];if(!i)throw new Error("Method "+e+" undefined");t[e]=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];n.queue({args:e,fn:i,context:this})}}},{key:"queue",value:function(t){"function"==typeof t?this._queue.push({fn:t}):this._queue.push(t),this._flushIfNeeded()}},{key:"_flushIfNeeded",value:function(){var t=this;this._queue.length>this.max&&this.flush(),null!=this._timeout&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&"number"==typeof this.delay&&(this._timeout=Am((function(){t.flush()}),this.delay))}},{key:"flush",value:function(){var t,e;uf(t=zf(e=this._queue).call(e,0)).call(t,(function(t){t.fn.apply(t.context||t.fn,t.args||[])}))}}],[{key:"extend",value:function(e,n){var i=new t(n);if(void 0!==e.flush)throw new Error("Target object already has a property flush");e.flush=function(){i.flush()};var r=[{name:"flush",original:void 0}];if(n&&n.replace)for(var o=0;o<n.replace.length;o++){var s=n.replace[o];r.push({name:s,original:e[s]}),i.replace(e,s)}return i._extended={object:e,methods:r},i}}]),t}(),XD=function(){function t(){n(this,t),Hc(this,"_subscribers",{"*":[],add:[],remove:[],update:[]}),Hc(this,"subscribe",t.prototype.on),Hc(this,"unsubscribe",t.prototype.off)}return zc(t,[{key:"_trigger",value:function(t,e,n){var i,r;if("*"===t)throw new Error("Cannot trigger event *");uf(i=Yp(r=[]).call(r,Ip(this._subscribers[t]),Ip(this._subscribers["*"]))).call(i,(function(i){i(t,e,null!=n?n:null)}))}},{key:"on",value:function(t,e){"function"==typeof e&&this._subscribers[t].push(e)}},{key:"off",value:function(t,e){var n;this._subscribers[t]=Mh(n=this._subscribers[t]).call(n,(function(t){return t!==e}))}}]),t}();lS("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),SS);var $D=r(rt.Set),KD=r(kd);function QD(t,e){var n=void 0!==Np&&Wd(t)||t["@@iterator"];if(!n){if(Xp(t)||(n=function(t,e){var n;if(t){if("string"==typeof t)return ZD(t,e);var i=zp(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Hd(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?ZD(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function ZD(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var JD=function(t){function e(t){n(this,e),this._pairs=t}return zc(e,[{key:t,value:wx.mark((function t(){var e,n,i,r,o;return wx.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=QD(this._pairs),t.prev=1,e.s();case 3:if((n=e.n()).done){t.next=9;break}return i=Ap(n.value,2),r=i[0],o=i[1],t.next=7,[r,o];case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"entries",value:wx.mark((function t(){var e,n,i,r,o;return wx.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=QD(this._pairs),t.prev=1,e.s();case 3:if((n=e.n()).done){t.next=9;break}return i=Ap(n.value,2),r=i[0],o=i[1],t.next=7,[r,o];case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"keys",value:wx.mark((function t(){var e,n,i,r;return wx.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=QD(this._pairs),t.prev=1,e.s();case 3:if((n=e.n()).done){t.next=9;break}return i=Ap(n.value,1),r=i[0],t.next=7,r;case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"values",value:wx.mark((function t(){var e,n,i,r;return wx.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=QD(this._pairs),t.prev=1,e.s();case 3:if((n=e.n()).done){t.next=9;break}return i=Ap(n.value,2),r=i[1],t.next=7,r;case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"toIdArray",value:function(){var t;return Rh(t=Ip(this._pairs)).call(t,(function(t){return t[0]}))}},{key:"toItemArray",value:function(){var t;return Rh(t=Ip(this._pairs)).call(t,(function(t){return t[1]}))}},{key:"toEntryArray",value:function(){return Ip(this._pairs)}},{key:"toObjectMap",value:function(){var t,e=lm(null),n=QD(this._pairs);try{for(n.s();!(t=n.n()).done;){var i=Ap(t.value,2),r=i[0],o=i[1];e[r]=o}}catch(t){n.e(t)}finally{n.f()}return e}},{key:"toMap",value:function(){return new DS(this._pairs)}},{key:"toIdSet",value:function(){return new $D(this.toIdArray())}},{key:"toItemSet",value:function(){return new $D(this.toItemArray())}},{key:"cache",value:function(){return new e(Ip(this._pairs))}},{key:"distinct",value:function(t){var e,n=new $D,i=QD(this._pairs);try{for(i.s();!(e=i.n()).done;){var r=Ap(e.value,2),o=r[0],s=r[1];n.add(t(s,o))}}catch(t){i.e(t)}finally{i.f()}return n}},{key:"filter",value:function(t){var n=this._pairs;return new e({[PD]:()=>wx.mark((function e(){var i,r,o,s,a;return wx.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=QD(n),e.prev=1,i.s();case 3:if((r=i.n()).done){e.next=10;break}if(o=Ap(r.value,2),s=o[0],a=o[1],!t(a,s)){e.next=8;break}return e.next=8,[s,a];case 8:e.next=3;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(1),i.e(e.t0);case 15:return e.prev=15,i.f(),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[1,12,15,18]])}))()})}},{key:"forEach",value:function(t){var e,n=QD(this._pairs);try{for(n.s();!(e=n.n()).done;){var i=Ap(e.value,2),r=i[0];t(i[1],r)}}catch(t){n.e(t)}finally{n.f()}}},{key:"map",value:function(t){var n=this._pairs;return new e({[PD]:()=>wx.mark((function e(){var i,r,o,s,a;return wx.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=QD(n),e.prev=1,i.s();case 3:if((r=i.n()).done){e.next=9;break}return o=Ap(r.value,2),s=o[0],a=o[1],e.next=7,[s,t(a,s)];case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),i.e(e.t0);case 14:return e.prev=14,i.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[1,11,14,17]])}))()})}},{key:"max",value:function(t){var e=KD(this._pairs),n=e.next();if(n.done)return null;for(var i=n.value[1],r=t(n.value[1],n.value[0]);!(n=e.next()).done;){var o=Ap(n.value,2),s=o[0],a=o[1],l=t(a,s);l>r&&(r=l,i=a)}return i}},{key:"min",value:function(t){var e=KD(this._pairs),n=e.next();if(n.done)return null;for(var i=n.value[1],r=t(n.value[1],n.value[0]);!(n=e.next()).done;){var o=Ap(n.value,2),s=o[0],a=o[1],l=t(a,s);l<r&&(r=l,i=a)}return i}},{key:"reduce",value:function(t,e){var n,i=QD(this._pairs);try{for(i.s();!(n=i.n()).done;){var r=Ap(n.value,2),o=r[0];e=t(e,r[1],o)}}catch(t){i.e(t)}finally{i.f()}return e}},{key:"sort",value:function(t){var n=this;return new e({[PD]:function(){var e;return KD(kD(e=Ip(n._pairs)).call(e,(function(e,n){var i=Ap(e,2),r=i[0],o=i[1],s=Ap(n,2),a=s[0],l=s[1];return t(o,l,r,a)})))}})}}]),e}(PD);function tT(t,e){var n=Qp(t);if(ry){var i=ry(t);e&&(i=Mh(i).call(i,(function(e){return py(t,e).enumerable}))),n.push.apply(n,i)}return n}function eT(t){for(var e=1;e<arguments.length;e++){var n,i,r=null!=arguments[e]?arguments[e]:{};e%2?uf(n=tT(Object(r),!0)).call(n,(function(e){Hc(t,e,r[e])})):yy?Dy(t,yy(r)):uf(i=tT(Object(r))).call(i,(function(e){Ty(t,e,py(r,e))}))}return t}function nT(t,e){var n=void 0!==Np&&Wd(t)||t["@@iterator"];if(!n){if(Xp(t)||(n=function(t,e){var n;if(t){if("string"==typeof t)return iT(t,e);var i=zp(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Hd(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?iT(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function iT(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function rT(t){var e=function(){if("undefined"==typeof Reflect||!iy)return!1;if(iy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(iy(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=Ly(t);if(e){var r=Ly(this).constructor;n=iy(i,arguments,r)}else n=i.apply(this,arguments);return jy(this,n)}}var oT=function(t){Ny(i,t);var e=rT(i);function i(t,r){var o;return n(this,i),Hc(Cy(o=e.call(this)),"_queue",null),t&&!Xp(t)&&(r=t,t=[]),o._options=r||{},o._data=new DS,o.length=0,o._idProp=o._options.fieldId||"id",t&&t.length&&o.add(t),o.setOptions(r),o}return zc(i,[{key:"idProp",get:function(){return this._idProp}},{key:"setOptions",value:function(t){t&&void 0!==t.queue&&(!1===t.queue?this._queue&&(this._queue.destroy(),this._queue=null):(this._queue||(this._queue=qD.extend(this,{replace:["add","update","remove"]})),t.queue&&"object"==typeof t.queue&&this._queue.setOptions(t.queue)))}},{key:"add",value:function(t,e){var n,i=this,r=[];if(Xp(t)){var o=Rh(t).call(t,(function(t){return t[i._idProp]}));if(PS(o).call(o,(function(t){return i._data.has(t)})))throw new Error("A duplicate id was found in the parameter array.");for(var s=0,a=t.length;s<a;s++)n=this._addItem(t[s]),r.push(n)}else{if(!t||"object"!=typeof t)throw new Error("Unknown dataType");n=this._addItem(t),r.push(n)}return r.length&&this._trigger("add",{items:r},e),r}},{key:"update",value:function(t,e){var n=this,i=[],r=[],o=[],s=[],a=this._idProp,l=function(t){var e=t[a];if(null!=e&&n._data.has(e)){var l=t,u=em({},n._data.get(e)),c=n._updateItem(l);r.push(c),s.push(l),o.push(u)}else{var h=n._addItem(t);i.push(h)}};if(Xp(t))for(var u=0,c=t.length;u<c;u++)t[u]&&"object"==typeof t[u]?l(t[u]):console.warn("Ignoring input item, which is not an object at index "+u);else{if(!t||"object"!=typeof t)throw new Error("Unknown dataType");l(t)}if(i.length&&this._trigger("add",{items:i},e),r.length){var h={items:r,oldData:o,data:s};this._trigger("update",h,e)}return Yp(i).call(i,r)}},{key:"updateOnly",value:function(t,e){var n,i=this;Xp(t)||(t=[t]);var r=Rh(n=Rh(t).call(t,(function(t){var e=i._data.get(t[i._idProp]);if(null==e)throw new Error("Updating non-existent items is not allowed.");return{oldData:e,update:t}}))).call(n,(function(t){var e=t.oldData,n=t.update,r=e[i._idProp],o=function(t){for(var e,n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return Ig.apply(void 0,Yp(e=[{},t]).call(e,i))}(e,n);return i._data.set(r,o),{id:r,oldData:e,updatedData:o}}));if(r.length){var o={items:Rh(r).call(r,(function(t){return t.id})),oldData:Rh(r).call(r,(function(t){return t.oldData})),data:Rh(r).call(r,(function(t){return t.updatedData}))};return this._trigger("update",o,e),o.items}return[]}},{key:"get",value:function(t,e){var n=void 0,i=void 0,r=void 0;UD(t)?(n=t,r=e):Xp(t)?(i=t,r=e):r=t;var o,s=r&&"Object"===r.returnType?"Object":"Array",a=r&&Mh(r),l=[],u=void 0,c=void 0,h=void 0;if(null!=n)(u=this._data.get(n))&&a&&!a(u)&&(u=void 0);else if(null!=i)for(var d=0,p=i.length;d<p;d++)null==(u=this._data.get(i[d]))||a&&!a(u)||l.push(u);else for(var f,m=0,v=(c=Ip(YS(f=this._data).call(f))).length;m<v;m++)h=c[m],null==(u=this._data.get(h))||a&&!a(u)||l.push(u);if(r&&r.order&&null==n&&this._sort(l,r.order),r&&r.fields){var g=r.fields;if(null!=n&&null!=u)u=this._filterFields(u,g);else for(var y=0,b=l.length;y<b;y++)l[y]=this._filterFields(l[y],g)}if("Object"==s){for(var w={},_=0,k=l.length;_<k;_++){var x=l[_];w[x[this._idProp]]=x}return w}return null!=n?null!==(o=u)&&void 0!==o?o:null:l}},{key:"getIds",value:function(t){var e=this._data,n=t&&Mh(t),i=t&&t.order,r=Ip(YS(e).call(e)),o=[];if(n)if(i){for(var s=[],a=0,l=r.length;a<l;a++){var u=r[a],c=this._data.get(u);null!=c&&n(c)&&s.push(c)}this._sort(s,i);for(var h=0,d=s.length;h<d;h++)o.push(s[h][this._idProp])}else for(var p=0,f=r.length;p<f;p++){var m=r[p],v=this._data.get(m);null!=v&&n(v)&&o.push(v[this._idProp])}else if(i){for(var g=[],y=0,b=r.length;y<b;y++){var w=r[y];g.push(e.get(w))}this._sort(g,i);for(var _=0,k=g.length;_<k;_++)o.push(g[_][this._idProp])}else for(var x=0,S=r.length;x<S;x++){var D=r[x],T=e.get(D);null!=T&&o.push(T[this._idProp])}return o}},{key:"getDataSet",value:function(){return this}},{key:"forEach",value:function(t,e){var n=e&&Mh(e),i=this._data,r=Ip(YS(i).call(i));if(e&&e.order)for(var o=this.get(e),s=0,a=o.length;s<a;s++){var l=o[s];t(l,l[this._idProp])}else for(var u=0,c=r.length;u<c;u++){var h=r[u],d=this._data.get(h);null==d||n&&!n(d)||t(d,h)}}},{key:"map",value:function(t,e){for(var n=e&&Mh(e),i=[],r=this._data,o=Ip(YS(r).call(r)),s=0,a=o.length;s<a;s++){var l=o[s],u=this._data.get(l);null==u||n&&!n(u)||i.push(t(u,l))}return e&&e.order&&this._sort(i,e.order),i}},{key:"_filterFields",value:function(t,e){var n;return t?Sh(n=Xp(e)?e:Qp(e)).call(n,(function(e,n){return e[n]=t[n],e}),{}):t}},{key:"_sort",value:function(t,e){if("string"==typeof e){var n=e;kD(t).call(t,(function(t,e){var i=t[n],r=e[n];return i>r?1:i<r?-1:0}))}else{if("function"!=typeof e)throw new TypeError("Order must be a function or a string");kD(t).call(t,e)}}},{key:"remove",value:function(t,e){for(var n=[],i=[],r=Xp(t)?t:[t],o=0,s=r.length;o<s;o++){var a=this._remove(r[o]);if(a){var l=a[this._idProp];null!=l&&(n.push(l),i.push(a))}}return n.length&&this._trigger("remove",{items:n,oldData:i},e),n}},{key:"_remove",value:function(t){var e;if(UD(t)?e=t:t&&"object"==typeof t&&(e=t[this._idProp]),null!=e&&this._data.has(e)){var n=this._data.get(e)||null;return this._data.delete(e),--this.length,n}return null}},{key:"clear",value:function(t){for(var e,n=Ip(YS(e=this._data).call(e)),i=[],r=0,o=n.length;r<o;r++)i.push(this._data.get(n[r]));return this._data.clear(),this.length=0,this._trigger("remove",{items:n,oldData:i},t),n}},{key:"max",value:function(t){var e,n,i=null,r=null,o=nT(MD(e=this._data).call(e));try{for(o.s();!(n=o.n()).done;){var s=n.value,a=s[t];"number"==typeof a&&(null==r||a>r)&&(i=s,r=a)}}catch(t){o.e(t)}finally{o.f()}return i||null}},{key:"min",value:function(t){var e,n,i=null,r=null,o=nT(MD(e=this._data).call(e));try{for(o.s();!(n=o.n()).done;){var s=n.value,a=s[t];"number"==typeof a&&(null==r||a<r)&&(i=s,r=a)}}catch(t){o.e(t)}finally{o.f()}return i||null}},{key:"distinct",value:function(t){for(var e=this._data,n=Ip(YS(e).call(e)),i=[],r=0,o=0,s=n.length;o<s;o++){for(var a=n[o],l=e.get(a)[t],u=!1,c=0;c<r;c++)if(i[c]==l){u=!0;break}u||void 0===l||(i[r]=l,r++)}return i}},{key:"_addItem",value:function(t){var e=function(t,e){return null==t[e]&&(t[e]=VD()),t}(t,this._idProp),n=e[this._idProp];if(this._data.has(n))throw new Error("Cannot add item: item with id "+n+" already exists");return this._data.set(n,e),++this.length,n}},{key:"_updateItem",value:function(t){var e=t[this._idProp];if(null==e)throw new Error("Cannot update item: item has no id (item: "+dm(t)+")");var n=this._data.get(e);if(!n)throw new Error("Cannot update item: no item with id "+e+" found");return this._data.set(e,eT(eT({},n),t)),e}},{key:"stream",value:function(t){if(t){var e=this._data;return new JD({[PD]:()=>wx.mark((function n(){var i,r,o,s;return wx.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:i=nT(t),n.prev=1,i.s();case 3:if((r=i.n()).done){n.next=11;break}if(o=r.value,null==(s=e.get(o))){n.next=9;break}return n.next=9,[o,s];case 9:n.next=3;break;case 11:n.next=16;break;case 13:n.prev=13,n.t0=n.catch(1),i.e(n.t0);case 16:return n.prev=16,i.f(),n.finish(16);case 19:case"end":return n.stop()}}),n,null,[[1,13,16,19]])}))()})}var n;return new JD({[PD]:lh(n=YD(this._data)).call(n,this._data)})}}]),i}(XD);function sT(t,e){var n=void 0!==Np&&Wd(t)||t["@@iterator"];if(!n){if(Xp(t)||(n=function(t,e){var n;if(t){if("string"==typeof t)return aT(t,e);var i=zp(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Hd(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?aT(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function aT(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function lT(t){var e=function(){if("undefined"==typeof Reflect||!iy)return!1;if(iy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(iy(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=Ly(t);if(e){var r=Ly(this).constructor;n=iy(i,arguments,r)}else n=i.apply(this,arguments);return jy(this,n)}}var uT=function(t){Ny(i,t);var e=lT(i);function i(t,r){var o,s;return n(this,i),Hc(Cy(s=e.call(this)),"length",0),Hc(Cy(s),"_ids",new $D),s._options=r||{},s._listener=lh(o=s._onEvent).call(o,Cy(s)),s.setData(t),s}return zc(i,[{key:"idProp",get:function(){return this.getDataSet().idProp}},{key:"setData",value:function(t){if(this._data){this._data.off&&this._data.off("*",this._listener);var e=this._data.getIds({filter:Mh(this._options)}),n=this._data.get(e);this._ids.clear(),this.length=0,this._trigger("remove",{items:e,oldData:n})}if(null!=t){this._data=t;for(var i=this._data.getIds({filter:Mh(this._options)}),r=0,o=i.length;r<o;r++){var s=i[r];this._ids.add(s)}this.length=i.length,this._trigger("add",{items:i})}else this._data=new oT;this._data.on&&this._data.on("*",this._listener)}},{key:"refresh",value:function(){for(var t=this._data.getIds({filter:Mh(this._options)}),e=Ip(this._ids),n={},i=[],r=[],o=[],s=0,a=t.length;s<a;s++){var l=t[s];n[l]=!0,this._ids.has(l)||(i.push(l),this._ids.add(l))}for(var u=0,c=e.length;u<c;u++){var h=e[u],d=this._data.get(h);null==d?console.error("If you see this, report it please."):n[h]||(r.push(h),o.push(d),this._ids.delete(h))}this.length+=i.length-r.length,i.length&&this._trigger("add",{items:i}),r.length&&this._trigger("remove",{items:r,oldData:o})}},{key:"get",value:function(t,e){if(null==this._data)return null;var n,i=null;UD(t)||Xp(t)?(i=t,n=e):n=t;var r=em({},this._options,n),o=Mh(this._options),s=n&&Mh(n);return o&&s&&(r.filter=function(t){return o(t)&&s(t)}),null==i?this._data.get(r):this._data.get(i,r)}},{key:"getIds",value:function(t){if(this._data.length){var e,n=Mh(this._options),i=null!=t?Mh(t):null;return e=i?n?function(t){return n(t)&&i(t)}:i:n,this._data.getIds({filter:e,order:t&&t.order})}return[]}},{key:"forEach",value:function(t,e){if(this._data){var n,i,r=Mh(this._options),o=e&&Mh(e);i=o?r?function(t){return r(t)&&o(t)}:o:r,uf(n=this._data).call(n,t,{filter:i,order:e&&e.order})}}},{key:"map",value:function(t,e){if(this._data){var n,i,r=Mh(this._options),o=e&&Mh(e);return i=o?r?function(t){return r(t)&&o(t)}:o:r,Rh(n=this._data).call(n,t,{filter:i,order:e&&e.order})}return[]}},{key:"getDataSet",value:function(){return this._data.getDataSet()}},{key:"stream",value:function(t){var e;return this._data.stream(t||{[PD]:lh(e=YS(this._ids)).call(e,this._ids)})}},{key:"dispose",value:function(){var t;null!==(t=this._data)&&void 0!==t&&t.off&&this._data.off("*",this._listener);var e,n="This data view has already been disposed of.",r={get:function(){throw new Error(n)},set:function(){throw new Error(n)},configurable:!1},o=sT(qp(i.prototype));try{for(o.s();!(e=o.n()).done;){var s=e.value;Ty(this,s,r)}}catch(t){o.e(t)}finally{o.f()}}},{key:"_onEvent",value:function(t,e,n){if(e&&e.items&&this._data){var i=e.items,r=[],o=[],s=[],a=[],l=[],u=[];switch(t){case"add":for(var c=0,h=i.length;c<h;c++){var d=i[c];this.get(d)&&(this._ids.add(d),r.push(d))}break;case"update":for(var p=0,f=i.length;p<f;p++){var m=i[p];this.get(m)?this._ids.has(m)?(o.push(m),l.push(e.data[p]),a.push(e.oldData[p])):(this._ids.add(m),r.push(m)):this._ids.has(m)&&(this._ids.delete(m),s.push(m),u.push(e.oldData[p]))}break;case"remove":for(var v=0,g=i.length;v<g;v++){var y=i[v];this._ids.has(y)&&(this._ids.delete(y),s.push(y),u.push(e.oldData[v]))}}this.length+=r.length-s.length,r.length&&this._trigger("add",{items:r},n),o.length&&this._trigger("update",{items:o,oldData:a,data:l},n),s.length&&this._trigger("remove",{items:s,oldData:u},n)}}}]),i}(XD);function cT(t,e){return"object"==typeof e&&null!==e&&t===e.idProp&&"function"==typeof e.add&&"function"==typeof e.clear&&"function"==typeof e.distinct&&"function"==typeof uf(e)&&"function"==typeof e.get&&"function"==typeof e.getDataSet&&"function"==typeof e.getIds&&"number"==typeof e.length&&"function"==typeof Rh(e)&&"function"==typeof e.max&&"function"==typeof e.min&&"function"==typeof e.off&&"function"==typeof e.on&&"function"==typeof e.remove&&"function"==typeof e.setOptions&&"function"==typeof e.stream&&"function"==typeof e.update&&"function"==typeof e.updateOnly}t.DELETE=Ag,t.DataSet=oT,t.DataStream=JD,t.DataView=uT,t.Queue=qD,t.createNewDataPipeFrom=function(t){return new Jh(t)},t.isDataSetLike=cT,t.isDataViewLike=function(t,e){return"object"==typeof e&&null!==e&&t===e.idProp&&"function"==typeof uf(e)&&"function"==typeof e.get&&"function"==typeof e.getDataSet&&"function"==typeof e.getIds&&"number"==typeof e.length&&"function"==typeof Rh(e)&&"function"==typeof e.off&&"function"==typeof e.on&&"function"==typeof e.stream&&cT(t,e.getDataSet())}}(nt.exports);var it=nt.exports;class rt{constructor(t,e,n,i,a,l){this._dataset=new it.DataSet,this._recordingRanges=new r,this._eventRanges=new o,this._folderCache=new s,this._cameraManager=t,this._foldersManager=e,this._conditionStateManager=n,this._keys=i,this._groups=this._generateGroups(i),this._eventsMediaType=a,this._showRecordings=l}get dataset(){return this._dataset}get groups(){return this._groups}getKeyType(){return this._keys.type}_getGroupIDForCamera(t){return`camera/${t}`}_getGroupIDForFolder(t){return t.id}_generateGroups(t){const e=[];
|
||
/* istanbul ignore else: the else path cannot be reached -- @preserve */if("camera"===t.type)t.cameraIDs?.forEach((t=>{const n=this._cameraManager.getCameraMetadata(t);e.push({id:this._getGroupIDForCamera(t),content:n?.title??t})}));else if("folder"===t.type){const n=this._getGroupIDForFolder(t.folder);e.push({id:n,content:t.folder?.title??n})}return new it.DataSet(e)}rewriteEvent(t){const e=this._dataset.get(t);e&&(this._dataset.remove(t),this._dataset.add(e))}addEventMediaToDataset(t,e){const n=[];for(const i of t??[]){if(!a.isEvent(i))continue;const t=i.getStartTime(),r=i.getID(),o=i.getFolder(),s=i.getCameraID(),l=o?this._getGroupIDForFolder(o):s?this._getGroupIDForCamera(s):null;r&&t&&l&&n.push({id:r,group:l,content:"",media:i,start:t.getTime(),type:"range",end:i.getUsableEndTime()?.getTime(),...e&&{query:e}})}this._dataset.update(n)}async _refreshEvents(t,e){await this._refreshEventsFromCamera(t,e),await this._refreshEventsFromFolder()}async _refreshEventsFromCamera(t,e){if("camera"!==this._keys.type)return;if(this._eventRanges.hasCoverage({start:t.start,end:l(tt(t.end),{seconds:30})}))return;const n=et(t),i=this.getTimelineEventQueries(n);i&&(this.addEventMediaToDataset(await this._cameraManager.executeMediaQueries(i)),this._eventRanges.add({...n,expires:u(new Date,{seconds:30})}))}async _refreshEventsFromFolder(){if("folder"!==this._keys.type)return;const t=this.getTimelineFolderQuery();if(!t)return;const e=this._folderCache.get(t),n=new Date;e&&e>=l(n,{seconds:30})||(this.addEventMediaToDataset(await this._foldersManager.expandFolder(t,this._conditionStateManager.getState()),new c(t)),this._folderCache.set(t,n))}async refresh(t,e){try{await Promise.all([this._refreshEvents(t,e),...this._showRecordings?[this._refreshRecordings(t)]:[]])}catch(t){h(t)}}getTimelineEventQueries(t){return"camera"===this._keys.type&&this._keys.cameraIDs.size?this._cameraManager.generateDefaultEventQueries(this._keys.cameraIDs,{start:t.start,end:t.end,..."clips"===this._eventsMediaType&&{hasClip:!0},..."snapshots"===this._eventsMediaType&&{hasSnapshot:!0}}):null}getTimelineRecordingQueries(t){return"camera"===this._keys.type&&this._keys.cameraIDs.size?this._cameraManager.generateDefaultRecordingQueries(this._keys.cameraIDs,{start:t.start,end:t.end}):null}getTimelineFolderQuery(){return"folder"!==this._keys.type?null:this._foldersManager.generateDefaultFolderQuery(this._keys.folder)}async _refreshRecordings(t){const e="camera"===this._keys.type?this._keys.cameraIDs:null;if(!e?.size)return;const n=(t,e)=>({id:`recording-${t}-${e.id}`,group:this._getGroupIDForCamera(t),start:1e3*e.start_time,end:1e3*e.end_time,content:"",type:"background"}),i=t=>{const e=this._getGroupIDForCamera(t);return this._dataset.get({filter:t=>"background"===t.type&&t.group===e&&void 0!==t.end})},r=t=>{const e=this._getGroupIDForCamera(t);this._dataset.remove(this._dataset.get({filter:t=>"background"===t.type&&t.group===e}))},o=t=>{this._dataset.add(t)};if(this._recordingRanges.hasCoverage({start:t.start,end:l(tt(t.end),{seconds:30})}))return;const s=et(t),a=this._cameraManager.generateDefaultRecordingSegmentsQueries(e,{start:s.start,end:s.end});if(!a)return;const u=await this._cameraManager.getRecordingSegments(a),c=new Map;for(const[t,e]of u)for(const n of t.cameraIDs){let t=c.get(n);t||(t=[],c.set(n,t)),e.segments.forEach((e=>t?.push(e)))}for(const[t,e]of c.entries()){const s=i(t).concat(e.map((e=>n(t,e)))),a=d(s,60);r(t),o(a)}this._recordingRanges.add({start:s.start,end:s.end})}}const ot="target_bar";class st{constructor(t){this._timelineElement=null,this._source=null,this._timeline=null,this._hass=null,this._cameraManager=null,this._viewItemManager=null,this._viewManagerEpoch=null,this._timelineConfig=null,this._mini=!1,this._panMode=null,this._targetBarVisible=!1,this._itemClickAction="play",this._thumbnailConfig=null,this._isHoverableDevice=p(),this._throttledSetViewDuringRangeChange=f(this._setViewDuringRangeChange.bind(this),100),this._pointerHeld=null,this._ignoreClick=!1,this.handleThumbnailDataRequest=t=>{const e=t.detail.item,n=this._source?.dataset.get(e)?.media,i=n?this._cameraManager?.getStore().getCameraConfigForMedia(n)??void 0:void 0;t.detail.hass=this._hass??void 0,t.detail.cameraConfig=i,t.detail.cameraManager=this._cameraManager??void 0,t.detail.viewItemManager=this._viewItemManager??void 0,t.detail.media=n,t.detail.viewManagerEpoch=this._viewManagerEpoch??void 0},this._timelineRangeChangedHandler=async t=>{this._removeTargetBar();const e=this._viewManagerEpoch?.manager.getView();if(!this._timeline||!e||this._mini&&!t.byUser)return;await(this._source?.refresh(this._getPrefetchWindow(t),{view:e}));const n=m.getQueryType(e.query);if(!n)return;const i=this._createQuery(n);i&&!this._alreadyHasAcceptableMediaQuery(i)&&await(this._viewManagerEpoch?.manager.setViewByParametersWithExistingQuery({params:{query:i},queryExecutorOptions:{selectResult:{id:this._viewManagerEpoch?.manager.getView()?.queryResults?.getSelectedResult()?.getID()??void 0}},modifiers:[new v(this._getTimelineContext())]}))},this._host=t}setHass(t){this._hass=t}destroyTimeline(){this._timeline?.destroy(),this._timeline=null,this._targetBarVisible=!1,this._pointerHeld=null}setOptions(t){this.destroyTimeline(),t.keys&&t.cameraManager&&t.foldersManager&&t.conditionStateManager&&t.timelineConfig?this._source=new rt(t.cameraManager,t.foldersManager,t.conditionStateManager,t.keys,t.timelineConfig.events_media_type,t.timelineConfig.show_recordings):this._source=null,this._thumbnailConfig!==(t.thumbnailConfig??null)&&(t.thumbnailConfig?this._host.style.setProperty("--advanced-camera-card-thumbnail-size",`${t?.thumbnailConfig.size}px`):this._host.style.removeProperty("--advanced-camera-card-thumbnail-size")),this._timelineConfig!==(t.timelineConfig??null)&&(this._timelineConfig=t?.timelineConfig??null,g(this._host,!!this._timelineConfig?.show_recordings,"recordings"),g(this._host,"ribbon"===this._timelineConfig?.style,"ribbon"),g(this._host,"stack"===this._timelineConfig?.style,"stack")),this._thumbnailConfig=t?.thumbnailConfig??null,this._cameraManager=t?.cameraManager??null,this._viewItemManager=t?.viewItemManager??null,this._timelineConfig=t?.timelineConfig??null,this._mini=t?.mini??!1,g(this._host,this._shouldShowGroups(),"groups")}async setView(t){this._viewManagerEpoch!==t&&(this._viewManagerEpoch=t??null,await this._updateTimelineFromView())}getEffectivePanMode(){return this._panMode??this._timelineConfig?.pan_mode??"pan"}cyclePanMode(){const t=this.getEffectivePanMode();this._panMode="pan"===t?"seek":"seek"===t?"seek-in-media":"seek-in-media"===t?"seek-in-camera":"pan",this._host.requestUpdate()}setTimelineDate(t){this._timeline?.moveTo(t)}shouldSupportSeeking(){return this._mini}setTimelineElement(t){if(!this._source||!this._timelineConfig||this._timeline&&this._timelineElement===(t??null))return!1;if(this.destroyTimeline(),this._timelineElement=t??null,!this._timelineElement)return!1;const e=this._getOptions();return!!e&&(this._shouldShowGroups()?this._timeline=new J.Timeline(this._timelineElement,this._source.dataset,e):this._timeline=new J.Timeline(this._timelineElement,this._source.dataset,this._source.groups,e),this._timeline.on("rangechanged",this._timelineRangeChangedHandler.bind(this)),this._timeline.on("click",this._timelineClickHandler.bind(this)),this._timeline.on("rangechange",this._timelineRangeChangeHandler.bind(this)),this._timeline.on("mouseDown",(t=>{const e=this._timeline?.getWindow();this._pointerHeld={...t,...e&&{window:e}},this._ignoreClick=!1})),this._timeline.on("mouseUp",(()=>{this._pointerHeld=null,this._removeTargetBar()})),!0)}_shouldShowGroups(){return!this._mini||(this._source?.groups.length??0)>1}_setTargetBarAppropriately(t){if(!this._timeline)return;this._viewManagerEpoch?.manager.getView();const e=this.getEffectivePanMode();if(this.shouldSupportSeeking()&&("seek"===e||("seek-in-camera"===e||"seek-in-media"===e)&&this._timeline.getSelection().some((n=>{const i=this._source?.dataset?.get(n);return"seek-in-camera"!==e||i?.media?.getCameraID(),i&&i.start&&i.end&&t.getTime()>=i.start&&t.getTime()<=i.end})))){this._targetBarVisible?this._timeline?.setCustomTime(t,ot):(this._timeline?.addCustomTime(t,ot),this._targetBarVisible=!0);const e=this._timeline.getWindow(),n=(t.getTime()-e.start.getTime())/(e.end.getTime()-e.start.getTime());this._host.setAttribute("target-bar-marker-direction",n<.25?"right":n>.75?"left":"center"),this._timeline?.setCustomTimeMarker?.(y(t,!0),ot)}else this._removeTargetBar()}_removeTargetBar(){this._host.removeAttribute("target-bar-direction"),this._targetBarVisible&&(this._timeline?.removeCustomTime(ot),this._targetBarVisible=!1)}_timelineRangeChangeHandler(t){if(this._pointerHeld&&(this._ignoreClick=!0),this.shouldSupportSeeking()&&this._timeline&&t.byUser&&"wheel"!==t.event.type&&"pinchin"!==t.event.additionalEvent&&"pinchout"!==t.event.additionalEvent){const e=this._pointerHeld?.window?u(t.start,{seconds:(this._pointerHeld.time.getTime()-this._pointerHeld.window.start.getTime())/1e3}):t.end;this._pointerHeld&&this._setTargetBarAppropriately(e),this._throttledSetViewDuringRangeChange(e,t)}}async _setViewDuringRangeChange(t,e){const n=this._viewManagerEpoch?.manager.getView(),i=n?.queryResults,r=i?.getResults(),o=this.getEffectivePanMode();if(!(r&&i&&this._timeline&&n&&this._hass&&this._cameraManager&&"pan"!==o))return;const s=this.shouldSupportSeeking();let l=null;"seek"===o?l=i.clone().selectBestResult((e=>b(e,t,n?.camera)),{allCameras:!0,main:!0}):"seek-in-camera"===o?l=i.clone().selectBestResult((e=>b(e,t)),{cameraID:n.camera}).promoteCameraSelectionToMainSelection(n.camera):"seek-in-media"===o&&(l=i);const u=this._mini?t>=new Date?"live":"media":n.view,c=l?.getSelectedResult(),h=a.isMedia(c)?c.getCameraID():null;this._viewManagerEpoch?.manager.setViewByParameters({params:{...h&&{camera:h},view:u,queryResults:l},modifiers:[new v({...s&&{mediaViewer:{seek:t}},...this._getTimelineContext({start:e.start,end:e.end})})]})}_getTimelineContext(t){const e=this._viewManagerEpoch?.manager.getView(),n=t??this._timeline?.getWindow();return{timeline:{...e?.context?.timeline,...n&&{window:n}}}}async _timelineClickHandler(t){(this._ignoreClick||t.what&&["item","background","group-label","axis"].includes(t.what))&&w(t.event);const e=this._viewManagerEpoch?.manager.getView(),n=String(t.item),i=this._source?.dataset.get(n)??null;if(this._ignoreClick||!e||!this._viewManagerEpoch||!this._source||!t.what||!i)return;let r="close";if(this._timelineConfig?.show_recordings&&t.time&&["background","axis"].includes(t.what)){const n=this._createQuery("recording");n&&await(this._viewManagerEpoch?.manager.setViewByParametersWithExistingQuery({baseView:e,params:{view:"recording",query:n},queryExecutorOptions:{selectResult:{time:{time:t.time}}}}))}else if(t.item&&"item"===t.what){const o=String(t.group),s={main:!0,...o&&e.isGrid()&&{cameraID:o}},l=e.queryResults?.clone().resetSelectedResult().selectResultIfFound((t=>t.getID()===n),s),u=l?.getSelectedResult(),c=_(this._getTimelineContext(),{...a.isEvent(u)&&u.getEndTime()&&{mediaViewer:{seek:t.time}}});if(l&&l.hasSelectedResult())this._viewManagerEpoch.manager.setViewByParameters({params:{queryResults:l,view:"play"===this._itemClickAction?"media":e.view},modifiers:[new v(c)]});else if(i.query){const t=this._source.dataset.get({filter:t=>i.query===t.query}).map((t=>t.media)).filter(k),e=t.findIndex((t=>t.getID()===n));if(e>=0){const n=new x({results:t,selectedIndex:e});this._viewManagerEpoch?.manager.setViewByParameters({params:{view:"media",query:i.query,queryResults:n},modifiers:[new v(c)]})}}else{const t=m.getQueryType(e.query)??"camera"===this._source.getKeyType()?"event":"folder"===this._source.getKeyType()?"folder":null,i=t?this._createQuery(t):null;i&&await(this._viewManagerEpoch?.manager.setViewByParametersWithExistingQuery({params:{view:"media",query:i},queryExecutorOptions:{selectResult:{id:n},rejectResults:t=>!t.hasResults()},modifiers:[new v(c)]}))}"select"===this._itemClickAction&&(r="open")}S(this._host,`thumbnails:${r}`),this._ignoreClick=!1}_getPrefetchWindow(t){const e=D(t.end,t.start);return{start:l(t.start,{seconds:e}),end:u(t.end,{seconds:e})}}_createQuery(t,e){if(!this._timeline||!this._source)return null;const n=et(this._getPrefetchWindow(e?.window??this._timeline.getWindow()));if("event"===t){const t=this._source.getTimelineEventQueries(n);return t?new T(t):null}if("recording"===t){const t=this._source.getTimelineRecordingQueries(n);return t?new C(t):null}if("folder"===t){const t=this._source.getTimelineFolderQuery();return t?new c(t):null}return null}_alreadyHasAcceptableMediaQuery(t){const e=this._viewManagerEpoch?.manager.getView(),n=e?.query;if(!this._cameraManager||!n)return!1;const i=e?.queryResults?.getResultsTimestamp();return!!n?.getQuery()&&!!i&&(m.isFolderQuery(n)&&n.isEqual(t)||m.isMediaQuery(n)&&m.isMediaQuery(t)&&n.isSupersetOf(t)&&this._cameraManager.areMediaQueriesResultsFresh(i,n.getQuery()))}async _updateTimelineFromView(){const t=this._viewManagerEpoch?.manager.getView();if(!(t&&this._timelineConfig&&this._source&&this._timeline))return;const e=this._timeline.getWindow();let n=e;const i=t.queryResults?.getSelectedResult(),r=i&&a.isMedia(i)?i:null,o=r?.getStartTime()??null,s=r?.getEndTime()??null,l=!!r&&a.isEvent(r),u=r&&o?{start:o,end:s??o}:null,c=t.context?.timeline;if(c&&c.window)n=c.window;else if(u&&!O(u,e)){const t=this._getPerfectWindowFromMediaStartAndEndTime(l,o,s);t&&(n=t)}const h=this._getPrefetchWindow(n);this._pointerHeld||(await(this._source?.refresh(h,{view:t})),this._source.addEventMediaToDataset(t.queryResults?.getResults(),t.query));const d=this._timeline.getSelection(),p=this._getAllSelectedMediaIDsFromView();if(p.some((t=>!d.includes(t)))){if(this._isClustering())for(const t of p)this._source?.rewriteEvent(t);this._timeline?.setSelection(p,{focus:!1,animation:{animation:!1,zoom:!1}})}this._pointerHeld||E(n,e)||this._timeline.setWindow(n.start,n.end);const f=m.getQueryType(t.query);if(!f)return;const g=this._createQuery(f,{window:n});if(!this._mini&&g&&!this._alreadyHasAcceptableMediaQuery(g)){const t=this._viewManagerEpoch?.manager.getView()?.queryResults?.getSelectedResult();await(this._viewManagerEpoch?.manager.setViewByParametersWithExistingQuery({params:{query:g},queryExecutorOptions:{selectResult:{id:t?.getID()??void 0}},modifiers:[new v(this._getTimelineContext(n))]}))}}_getAllSelectedMediaIDsFromView(){const t=this._viewManagerEpoch?.manager.getView();return(t?.queryResults?.getMultipleSelectedResults({main:!0,...t.isGrid()&&{allCameras:!0}})??[]).filter((t=>a.isEvent(t))).map((t=>t.getID())).filter(k)}_isClustering(){return"stack"===this._timelineConfig?.style&&!!this._timelineConfig?.clustering_threshold&&this._timelineConfig.clustering_threshold>0}_getPerfectWindowFromMediaStartAndEndTime(t,e,n){if(t){const t=this._getConfiguredWindowSeconds();if(e&&n){if(n.getTime()-e.getTime()>1e3*t)return{start:l(n,{seconds:t}),end:n};{const i=t-(n.getTime()-e.getTime())/1e3;return{start:l(e,{seconds:i/2}),end:u(n,{seconds:i/2})}}}if(e)return{start:l(e,{seconds:t/2}),end:u(e,{seconds:t/2})}}else if(e&&n)return{start:e,end:n};return null}_getConfiguredWindowSeconds(){return this._timelineConfig?.window_seconds??M.timeline.window_seconds}_getDefaultStartEnd(){const t=new Date;return{start:l(t,{seconds:this._getConfiguredWindowSeconds()}),end:t}}_getDateTimeFormat(){const t=!!this._timelineConfig?.format?.["24h"];return{minorLabels:{minute:t?"HH:mm":"h:mm A",hour:t?"HH:mm":"h:mm A"},majorLabels:{millisecond:t?"HH:mm:ss":"h:mm:ss A",second:t?"D MMMM HH:mm":"D MMMM h:mm A"}}}_getOptions(){if(!this._timelineConfig)return null;const t=this._getDefaultStartEnd(),e="stack"===this._timelineConfig.style;return{cluster:!!this._isClustering()&&{maxItems:this._timelineConfig.clustering_threshold,clusterCriteria:(t,e)=>{const n=this._getAllSelectedMediaIDsFromView(),i=t.media,r=e.media;return"background"!==t.type&&t.type===e.type&&!n.includes(t.id)&&!n.includes(e.id)&&!!i&&!!r&&a.isEvent(i)&&a.isEvent(r)&&i.isGroupableWith(r)}},minHeight:"100%",maxHeight:"100%",zoomMax:864e5,zoomMin:1e3,margin:{item:{vertical:e?10:24}},selectable:!0,stack:e,start:t.start,end:t.end,groupHeightMode:"auto",tooltip:{followMouse:!0,overflowMethod:"cap",template:this._getTooltip.bind(this)},format:this._getDateTimeFormat(),xss:{disabled:!1,filterOptions:{whiteList:{"advanced-camera-card-timeline-thumbnail":["details","item"],div:["title"],span:["style"]}}}}}_getTooltip(t){return this._isHoverableDevice?`\n <advanced-camera-card-timeline-thumbnail\n item='${t.id}'\n ${this._thumbnailConfig?.show_details?"details":""}\n >\n </advanced-camera-card-timeline-thumbnail>`:""}}class at extends CustomEvent{}let lt=class extends j{constructor(){super(...arguments),this.details=!1}render(){if(!this.item)return R``;const t={item:this.item};return this.dispatchEvent(new at("advanced-camera-card:timeline:thumbnail-data-request",{composed:!0,bubbles:!0,detail:t})),t.hass&&t.cameraManager&&t.cameraConfig&&t.viewItemManager&&t.media&&t.viewManagerEpoch?R` <advanced-camera-card-thumbnail
|
||
.hass=${t.hass}
|
||
.cameraManager=${t.cameraManager}
|
||
.viewItemManager=${t.viewItemManager}
|
||
.item=${t.media}
|
||
.viewManagerEpoch=${t.viewManagerEpoch}
|
||
?details=${this.details}
|
||
>
|
||
</advanced-camera-card-thumbnail>`:R``}};P([A({attribute:!0})],lt.prototype,"item",void 0),P([A({attribute:!0,type:Boolean})],lt.prototype,"details",void 0),lt=P([I("advanced-camera-card-timeline-thumbnail")],lt);let ut=class extends j{constructor(){super(...arguments),this.mini=!1,this._refDatePicker=F(),this._refTimeline=F(),this._controller=new st(this)}render(){if(!this.hass||!this.timelineConfig)return;if(!this.keys)return this.mini?void 0:L({message:Y("error.no_camera_or_media_for_timeline"),icon:"mdi:chart-gantt",type:"info"});const t=this._controller.getEffectivePanMode(),e=Y("pan"===t?"config.common.controls.timeline.pan_modes.pan":"seek"===t?"config.common.controls.timeline.pan_modes.seek":"seek-in-media"===t?"config.common.controls.timeline.pan_modes.seek-in-media":"config.common.controls.timeline.pan_modes.seek-in-camera"),n="pan"===t?"mdi:pan-horizontal":"seek"===t?"mdi:filmstrip-box-multiple":"seek-in-media"===t?"mdi:play-box-lock":"mdi:camera-lock";return R` <div
|
||
@advanced-camera-card:timeline:thumbnail-data-request=${this._controller.handleThumbnailDataRequest}
|
||
class="timeline"
|
||
${z(this._refTimeline)}
|
||
>
|
||
<div class="timeline-tools">
|
||
${this._controller.shouldSupportSeeking()?R` <advanced-camera-card-icon
|
||
.icon=${{icon:n}}
|
||
@click=${()=>this._controller.cyclePanMode()}
|
||
aria-label="${e}"
|
||
title="${e}"
|
||
>
|
||
</advanced-camera-card-icon>`:""}
|
||
<advanced-camera-card-date-picker
|
||
${z(this._refDatePicker)}
|
||
@advanced-camera-card:date-picker:change=${t=>{t.detail.date&&this._controller.setTimelineDate(t.detail.date)}}
|
||
>
|
||
</advanced-camera-card-date-picker>
|
||
</div>
|
||
</div>`}shouldUpdate(t){return!!this.hass&&!!this.cameraManager}willUpdate(t){t.has("hass")&&this._controller.setHass(this.hass??null),["cameraManager","viewItemManager","timelineConfig","mini","thumbnailConfig","keys","conditionStateManager"].some((e=>t.has(e)))&&this._controller.setOptions({cameraManager:this.cameraManager,foldersManager:this.foldersManager,viewItemManager:this.viewItemManager,conditionStateManager:this.conditionStateManager,timelineConfig:this.timelineConfig,mini:this.mini,thumbnailConfig:this.thumbnailConfig,keys:this.keys})}updated(t){super.updated(t),this._controller.setTimelineElement(this._refTimeline.value)?window.requestAnimationFrame((()=>this._controller.setView(this.viewManagerEpoch??null))):this._controller.setView(this.viewManagerEpoch??null)}static get styles(){return H('@charset "UTF-8";\n/* override some bootstrap styles screwing up the timelines css */\n.vis [class*=span] {\n min-height: 0;\n width: auto;\n}\n\n.vis-current-time {\n background-color: #FF7F6E;\n width: 2px;\n z-index: 1;\n pointer-events: none;\n}\n\n.vis-rolling-mode-btn {\n height: 40px;\n width: 40px;\n position: absolute;\n top: 7px;\n right: 20px;\n border-radius: 50%;\n font-size: 28px;\n cursor: pointer;\n opacity: 0.8;\n color: white;\n font-weight: bold;\n text-align: center;\n background: #3876c2;\n}\n\n.vis-rolling-mode-btn:before {\n content: "⛶";\n}\n\n.vis-rolling-mode-btn:hover {\n opacity: 1;\n}\n\n.vis-timeline {\n position: relative;\n border: 1px solid #bfbfbf;\n overflow: hidden;\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n\n.vis-loading-screen {\n width: 100%;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n}\n\n.vis-panel {\n position: absolute;\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n\n.vis-panel.vis-center,\n.vis-panel.vis-left,\n.vis-panel.vis-right,\n.vis-panel.vis-top,\n.vis-panel.vis-bottom {\n border: 1px #bfbfbf;\n}\n\n.vis-panel.vis-center,\n.vis-panel.vis-left,\n.vis-panel.vis-right {\n border-top-style: solid;\n border-bottom-style: solid;\n overflow: hidden;\n}\n\n.vis-left.vis-panel.vis-vertical-scroll, .vis-right.vis-panel.vis-vertical-scroll {\n height: 100%;\n overflow-x: hidden;\n overflow-y: scroll;\n}\n\n.vis-left.vis-panel.vis-vertical-scroll {\n direction: rtl;\n}\n\n.vis-left.vis-panel.vis-vertical-scroll .vis-content {\n direction: ltr;\n}\n\n.vis-right.vis-panel.vis-vertical-scroll {\n direction: ltr;\n}\n\n.vis-right.vis-panel.vis-vertical-scroll .vis-content {\n direction: rtl;\n}\n\n.vis-panel.vis-center,\n.vis-panel.vis-top,\n.vis-panel.vis-bottom {\n border-left-style: solid;\n border-right-style: solid;\n}\n\n.vis-background {\n overflow: hidden;\n}\n\n.vis-panel > .vis-content {\n position: relative;\n}\n\n.vis-panel .vis-shadow {\n position: absolute;\n width: 100%;\n height: 1px;\n box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);\n /* TODO: find a nice way to ensure vis-shadows are drawn on top of items\n z-index: 1;\n */\n}\n\n.vis-panel .vis-shadow.vis-top {\n top: -1px;\n left: 0;\n}\n\n.vis-panel .vis-shadow.vis-bottom {\n bottom: -1px;\n left: 0;\n}\n\n.vis-graph-group0 {\n fill: #4f81bd;\n fill-opacity: 0;\n stroke-width: 2px;\n stroke: #4f81bd;\n}\n\n.vis-graph-group1 {\n fill: #f79646;\n fill-opacity: 0;\n stroke-width: 2px;\n stroke: #f79646;\n}\n\n.vis-graph-group2 {\n fill: #8c51cf;\n fill-opacity: 0;\n stroke-width: 2px;\n stroke: #8c51cf;\n}\n\n.vis-graph-group3 {\n fill: #75c841;\n fill-opacity: 0;\n stroke-width: 2px;\n stroke: #75c841;\n}\n\n.vis-graph-group4 {\n fill: #ff0100;\n fill-opacity: 0;\n stroke-width: 2px;\n stroke: #ff0100;\n}\n\n.vis-graph-group5 {\n fill: #37d8e6;\n fill-opacity: 0;\n stroke-width: 2px;\n stroke: #37d8e6;\n}\n\n.vis-graph-group6 {\n fill: #042662;\n fill-opacity: 0;\n stroke-width: 2px;\n stroke: #042662;\n}\n\n.vis-graph-group7 {\n fill: #00ff26;\n fill-opacity: 0;\n stroke-width: 2px;\n stroke: #00ff26;\n}\n\n.vis-graph-group8 {\n fill: #ff00ff;\n fill-opacity: 0;\n stroke-width: 2px;\n stroke: #ff00ff;\n}\n\n.vis-graph-group9 {\n fill: #8f3938;\n fill-opacity: 0;\n stroke-width: 2px;\n stroke: #8f3938;\n}\n\n.vis-timeline .vis-fill {\n fill-opacity: 0.1;\n stroke: none;\n}\n\n.vis-timeline .vis-bar {\n fill-opacity: 0.5;\n stroke-width: 1px;\n}\n\n.vis-timeline .vis-point {\n stroke-width: 2px;\n fill-opacity: 1;\n}\n\n.vis-timeline .vis-legend-background {\n stroke-width: 1px;\n fill-opacity: 0.9;\n fill: #ffffff;\n stroke: #c2c2c2;\n}\n\n.vis-timeline .vis-outline {\n stroke-width: 1px;\n fill-opacity: 1;\n fill: #ffffff;\n stroke: #e5e5e5;\n}\n\n.vis-timeline .vis-icon-fill {\n fill-opacity: 0.3;\n stroke: none;\n}\n\n.vis-timeline {\n /*\n -webkit-transition: height .4s ease-in-out;\n transition: height .4s ease-in-out;\n */\n}\n\n.vis-panel {\n /*\n -webkit-transition: height .4s ease-in-out, top .4s ease-in-out;\n transition: height .4s ease-in-out, top .4s ease-in-out;\n */\n}\n\n.vis-axis {\n /*\n -webkit-transition: top .4s ease-in-out;\n transition: top .4s ease-in-out;\n */\n}\n\n/* TODO: get animation working nicely\n\n.vis-item {\n -webkit-transition: top .4s ease-in-out;\n transition: top .4s ease-in-out;\n}\n\n.vis-item.line {\n -webkit-transition: height .4s ease-in-out, top .4s ease-in-out;\n transition: height .4s ease-in-out, top .4s ease-in-out;\n}\n/**/\n.vis-panel.vis-background.vis-horizontal .vis-grid.vis-horizontal {\n position: absolute;\n width: 100%;\n height: 0;\n border-bottom: 1px solid;\n}\n\n.vis-panel.vis-background.vis-horizontal .vis-grid.vis-minor {\n border-color: #e5e5e5;\n}\n\n.vis-panel.vis-background.vis-horizontal .vis-grid.vis-major {\n border-color: #bfbfbf;\n}\n\n.vis-data-axis .vis-y-axis.vis-major {\n width: 100%;\n position: absolute;\n color: #4d4d4d;\n white-space: nowrap;\n}\n\n.vis-data-axis .vis-y-axis.vis-major.vis-measure {\n padding: 0;\n margin: 0;\n border: 0;\n visibility: hidden;\n width: auto;\n}\n\n.vis-data-axis .vis-y-axis.vis-minor {\n position: absolute;\n width: 100%;\n color: #bebebe;\n white-space: nowrap;\n}\n\n.vis-data-axis .vis-y-axis.vis-minor.vis-measure {\n padding: 0;\n margin: 0;\n border: 0;\n visibility: hidden;\n width: auto;\n}\n\n.vis-data-axis .vis-y-axis.vis-title {\n position: absolute;\n color: #4d4d4d;\n white-space: nowrap;\n bottom: 20px;\n text-align: center;\n}\n\n.vis-data-axis .vis-y-axis.vis-title.vis-measure {\n padding: 0;\n margin: 0;\n visibility: hidden;\n width: auto;\n}\n\n.vis-data-axis .vis-y-axis.vis-title.vis-left {\n bottom: 0;\n -webkit-transform-origin: left top;\n -moz-transform-origin: left top;\n -ms-transform-origin: left top;\n -o-transform-origin: left top;\n transform-origin: left bottom;\n -webkit-transform: rotate(-90deg);\n -moz-transform: rotate(-90deg);\n -ms-transform: rotate(-90deg);\n -o-transform: rotate(-90deg);\n transform: rotate(-90deg);\n}\n\n.vis-data-axis .vis-y-axis.vis-title.vis-right {\n bottom: 0;\n -webkit-transform-origin: right bottom;\n -moz-transform-origin: right bottom;\n -ms-transform-origin: right bottom;\n -o-transform-origin: right bottom;\n transform-origin: right bottom;\n -webkit-transform: rotate(90deg);\n -moz-transform: rotate(90deg);\n -ms-transform: rotate(90deg);\n -o-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.vis-legend {\n background-color: rgba(247, 252, 255, 0.65);\n padding: 5px;\n border: 1px solid #b3b3b3;\n box-shadow: 2px 2px 10px rgba(154, 154, 154, 0.55);\n}\n\n.vis-legend-text {\n /*font-size: 10px;*/\n white-space: nowrap;\n display: inline-block;\n}\n\n.vis-itemset {\n position: relative;\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n\n.vis-itemset .vis-background,\n.vis-itemset .vis-foreground {\n position: absolute;\n width: 100%;\n height: 100%;\n overflow: visible;\n}\n\n.vis-axis {\n position: absolute;\n width: 100%;\n height: 0;\n left: 0;\n z-index: 1;\n}\n\n.vis-foreground .vis-group {\n position: relative;\n box-sizing: border-box;\n border-bottom: 1px solid #bfbfbf;\n}\n\n.vis-foreground .vis-group:last-child {\n border-bottom: none;\n}\n\n.vis-nesting-group {\n cursor: pointer;\n}\n\n.vis-label.vis-nested-group.vis-group-level-unknown-but-gte1 {\n background: #f5f5f5;\n}\n\n.vis-label.vis-nested-group.vis-group-level-0 {\n background-color: #ffffff;\n}\n\n.vis-ltr .vis-label.vis-nested-group.vis-group-level-0 .vis-inner {\n padding-left: 0;\n}\n\n.vis-rtl .vis-label.vis-nested-group.vis-group-level-0 .vis-inner {\n padding-right: 0;\n}\n\n.vis-label.vis-nested-group.vis-group-level-1 {\n background-color: rgba(0, 0, 0, 0.05);\n}\n\n.vis-ltr .vis-label.vis-nested-group.vis-group-level-1 .vis-inner {\n padding-left: 15px;\n}\n\n.vis-rtl .vis-label.vis-nested-group.vis-group-level-1 .vis-inner {\n padding-right: 15px;\n}\n\n.vis-label.vis-nested-group.vis-group-level-2 {\n background-color: rgba(0, 0, 0, 0.1);\n}\n\n.vis-ltr .vis-label.vis-nested-group.vis-group-level-2 .vis-inner {\n padding-left: 30px;\n}\n\n.vis-rtl .vis-label.vis-nested-group.vis-group-level-2 .vis-inner {\n padding-right: 30px;\n}\n\n.vis-label.vis-nested-group.vis-group-level-3 {\n background-color: rgba(0, 0, 0, 0.15);\n}\n\n.vis-ltr .vis-label.vis-nested-group.vis-group-level-3 .vis-inner {\n padding-left: 45px;\n}\n\n.vis-rtl .vis-label.vis-nested-group.vis-group-level-3 .vis-inner {\n padding-right: 45px;\n}\n\n.vis-label.vis-nested-group.vis-group-level-4 {\n background-color: rgba(0, 0, 0, 0.2);\n}\n\n.vis-ltr .vis-label.vis-nested-group.vis-group-level-4 .vis-inner {\n padding-left: 60px;\n}\n\n.vis-rtl .vis-label.vis-nested-group.vis-group-level-4 .vis-inner {\n padding-right: 60px;\n}\n\n.vis-label.vis-nested-group.vis-group-level-5 {\n background-color: rgba(0, 0, 0, 0.25);\n}\n\n.vis-ltr .vis-label.vis-nested-group.vis-group-level-5 .vis-inner {\n padding-left: 75px;\n}\n\n.vis-rtl .vis-label.vis-nested-group.vis-group-level-5 .vis-inner {\n padding-right: 75px;\n}\n\n.vis-label.vis-nested-group.vis-group-level-6 {\n background-color: rgba(0, 0, 0, 0.3);\n}\n\n.vis-ltr .vis-label.vis-nested-group.vis-group-level-6 .vis-inner {\n padding-left: 90px;\n}\n\n.vis-rtl .vis-label.vis-nested-group.vis-group-level-6 .vis-inner {\n padding-right: 90px;\n}\n\n.vis-label.vis-nested-group.vis-group-level-7 {\n background-color: rgba(0, 0, 0, 0.35);\n}\n\n.vis-ltr .vis-label.vis-nested-group.vis-group-level-7 .vis-inner {\n padding-left: 105px;\n}\n\n.vis-rtl .vis-label.vis-nested-group.vis-group-level-7 .vis-inner {\n padding-right: 105px;\n}\n\n.vis-label.vis-nested-group.vis-group-level-8 {\n background-color: rgba(0, 0, 0, 0.4);\n}\n\n.vis-ltr .vis-label.vis-nested-group.vis-group-level-8 .vis-inner {\n padding-left: 120px;\n}\n\n.vis-rtl .vis-label.vis-nested-group.vis-group-level-8 .vis-inner {\n padding-right: 120px;\n}\n\n.vis-label.vis-nested-group.vis-group-level-9 {\n background-color: rgba(0, 0, 0, 0.45);\n}\n\n.vis-ltr .vis-label.vis-nested-group.vis-group-level-9 .vis-inner {\n padding-left: 135px;\n}\n\n.vis-rtl .vis-label.vis-nested-group.vis-group-level-9 .vis-inner {\n padding-right: 135px;\n}\n\n/* default takes over beginning with level-10 (thats why we add .vis-nested-group\n to the selectors above, to have higher specifity than these rules for the defaults) */\n.vis-label.vis-nested-group {\n background-color: rgba(0, 0, 0, 0.5);\n}\n\n.vis-ltr .vis-label.vis-nested-group .vis-inner {\n padding-left: 150px;\n}\n\n.vis-rtl .vis-label.vis-nested-group .vis-inner {\n padding-right: 150px;\n}\n\n.vis-group-level-unknown-but-gte1 {\n border: 1px solid red;\n}\n\n/* expanded/collapsed indicators */\n.vis-label.vis-nesting-group:before,\n.vis-label.vis-nesting-group:before {\n display: inline-block;\n width: 15px;\n}\n\n.vis-label.vis-nesting-group.expanded:before {\n content: "▼";\n}\n\n.vis-label.vis-nesting-group.collapsed:before {\n content: "▶";\n}\n\n.vis-rtl .vis-label.vis-nesting-group.collapsed:before {\n content: "◀";\n}\n\n/* compensate missing expanded/collapsed indicator, but only at levels > 0 */\n.vis-ltr .vis-label:not(.vis-nesting-group):not(.vis-group-level-0) {\n padding-left: 15px;\n}\n\n.vis-rtl .vis-label:not(.vis-nesting-group):not(.vis-group-level-0) {\n padding-right: 15px;\n}\n\n.vis-overlay {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 10;\n}\n\n.vis-labelset {\n position: relative;\n overflow: hidden;\n box-sizing: border-box;\n}\n\n.vis-labelset .vis-label {\n position: relative;\n left: 0;\n top: 0;\n width: 100%;\n color: #4d4d4d;\n box-sizing: border-box;\n}\n\n.vis-labelset .vis-label {\n border-bottom: 1px solid #bfbfbf;\n}\n\n.vis-labelset .vis-label.draggable {\n cursor: pointer;\n}\n\n.vis-group-is-dragging {\n background: rgba(0, 0, 0, 0.1);\n}\n\n.vis-labelset .vis-label:last-child {\n border-bottom: none;\n}\n\n.vis-labelset .vis-label .vis-inner {\n display: inline-block;\n padding: 5px;\n}\n\n.vis-labelset .vis-label .vis-inner.vis-hidden {\n padding: 0;\n}\n\n.vis-time-axis {\n position: relative;\n overflow: hidden;\n}\n\n.vis-time-axis.vis-foreground {\n top: 0;\n left: 0;\n width: 100%;\n}\n\n.vis-time-axis.vis-background {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n\n.vis-time-axis .vis-text {\n position: absolute;\n color: #4d4d4d;\n padding: 3px;\n overflow: hidden;\n box-sizing: border-box;\n white-space: nowrap;\n}\n\n.vis-time-axis .vis-text.vis-measure {\n position: absolute;\n padding-left: 0;\n padding-right: 0;\n margin-left: 0;\n margin-right: 0;\n visibility: hidden;\n}\n\n.vis-time-axis .vis-grid.vis-vertical {\n position: absolute;\n border-left: 1px solid;\n}\n\n.vis-time-axis .vis-grid.vis-vertical-rtl {\n position: absolute;\n border-right: 1px solid;\n}\n\n.vis-time-axis .vis-grid.vis-minor {\n border-color: #e5e5e5;\n}\n\n.vis-time-axis .vis-grid.vis-major {\n border-color: #bfbfbf;\n}\n\n.vis-custom-time {\n background-color: #6E94FF;\n width: 2px;\n cursor: move;\n z-index: 1;\n}\n\n.vis-custom-time > .vis-custom-time-marker {\n background-color: inherit;\n color: white;\n font-size: 12px;\n white-space: nowrap;\n padding: 3px 5px;\n top: 0px;\n cursor: initial;\n z-index: inherit;\n}\n\n.vis-item {\n position: absolute;\n color: #1A1A1A;\n border-color: #97B0F8;\n border-width: 1px;\n background-color: #D5DDF6;\n display: inline-block;\n z-index: 1;\n /*overflow: hidden;*/\n}\n\n.vis-item.vis-selected {\n border-color: #FFC200;\n background-color: #FFF785;\n /* z-index must be higher than the z-index of custom time bar and current time bar */\n z-index: 2;\n}\n\n.vis-editable.vis-selected {\n cursor: move;\n}\n\n.vis-item.vis-point.vis-selected {\n background-color: #FFF785;\n}\n\n.vis-item.vis-box {\n text-align: center;\n border-style: solid;\n border-radius: 2px;\n}\n\n.vis-item.vis-point {\n background: none;\n}\n\n.vis-item.vis-dot {\n position: absolute;\n padding: 0;\n border-width: 4px;\n border-style: solid;\n border-radius: 4px;\n}\n\n.vis-item.vis-range {\n border-style: solid;\n border-radius: 2px;\n box-sizing: border-box;\n}\n\n.vis-item.vis-background {\n border: none;\n background-color: rgba(213, 221, 246, 0.4);\n box-sizing: border-box;\n padding: 0;\n margin: 0;\n}\n\n.vis-item .vis-item-overflow {\n position: relative;\n width: 100%;\n height: 100%;\n padding: 0;\n margin: 0;\n overflow: hidden;\n}\n\n.vis-item-visible-frame {\n white-space: nowrap;\n}\n\n.vis-item.vis-range .vis-item-content {\n position: relative;\n display: inline-block;\n}\n\n.vis-item.vis-background .vis-item-content {\n position: absolute;\n display: inline-block;\n}\n\n.vis-item.vis-line {\n padding: 0;\n position: absolute;\n width: 0;\n border-left-width: 1px;\n border-left-style: solid;\n}\n\n.vis-item .vis-item-content {\n white-space: nowrap;\n box-sizing: border-box;\n padding: 5px;\n}\n\n.vis-item .vis-onUpdateTime-tooltip {\n position: absolute;\n background: #4f81bd;\n color: white;\n width: 200px;\n text-align: center;\n white-space: nowrap;\n padding: 5px;\n border-radius: 1px;\n transition: 0.4s;\n -o-transition: 0.4s;\n -moz-transition: 0.4s;\n -webkit-transition: 0.4s;\n}\n\n.vis-item .vis-delete, .vis-item .vis-delete-rtl {\n position: absolute;\n top: 0px;\n width: 24px;\n height: 24px;\n box-sizing: border-box;\n padding: 0px 5px;\n cursor: pointer;\n -webkit-transition: background 0.2s linear;\n -moz-transition: background 0.2s linear;\n -ms-transition: background 0.2s linear;\n -o-transition: background 0.2s linear;\n transition: background 0.2s linear;\n}\n\n.vis-item .vis-delete {\n right: -24px;\n}\n\n.vis-item .vis-delete-rtl {\n left: -24px;\n}\n\n.vis-item .vis-delete:after, .vis-item .vis-delete-rtl:after {\n content: "×"; /* MULTIPLICATION SIGN */\n color: red;\n font-family: arial, sans-serif;\n font-size: 22px;\n font-weight: bold;\n -webkit-transition: color 0.2s linear;\n -moz-transition: color 0.2s linear;\n -ms-transition: color 0.2s linear;\n -o-transition: color 0.2s linear;\n transition: color 0.2s linear;\n}\n\n.vis-item .vis-delete:hover, .vis-item .vis-delete-rtl:hover {\n background: red;\n}\n\n.vis-item .vis-delete:hover:after, .vis-item .vis-delete-rtl:hover:after {\n color: white;\n}\n\n.vis-item .vis-drag-center {\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0px;\n cursor: move;\n}\n\n.vis-item.vis-range .vis-drag-left {\n position: absolute;\n width: 24px;\n max-width: 20%;\n min-width: 2px;\n height: 100%;\n top: 0;\n left: -4px;\n cursor: w-resize;\n}\n\n.vis-item.vis-range .vis-drag-right {\n position: absolute;\n width: 24px;\n max-width: 20%;\n min-width: 2px;\n height: 100%;\n top: 0;\n right: -4px;\n cursor: e-resize;\n}\n\n.vis-range.vis-item.vis-readonly .vis-drag-left,\n.vis-range.vis-item.vis-readonly .vis-drag-right {\n cursor: auto;\n}\n\n.vis-item.vis-cluster {\n vertical-align: center;\n text-align: center;\n border-style: solid;\n border-radius: 2px;\n}\n\n.vis-item.vis-cluster-line {\n padding: 0;\n position: absolute;\n width: 0;\n border-left-width: 1px;\n border-left-style: solid;\n}\n\n.vis-item.vis-cluster-dot {\n position: absolute;\n padding: 0;\n border-width: 4px;\n border-style: solid;\n border-radius: 4px;\n}\n\n.vis .overlay {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n /* Must be displayed above for example selected Timeline items */\n z-index: 10;\n}\n\n.vis-active {\n box-shadow: 0 0 10px #86d5f8;\n}\n\ndiv.vis-configuration {\n position: relative;\n display: block;\n float: left;\n font-size: 12px;\n}\n\ndiv.vis-configuration-wrapper {\n display: block;\n width: 700px;\n}\n\ndiv.vis-configuration-wrapper::after {\n clear: both;\n content: "";\n display: block;\n}\n\ndiv.vis-configuration.vis-config-option-container {\n display: block;\n width: 495px;\n background-color: #ffffff;\n border: 2px solid #f7f8fa;\n border-radius: 4px;\n margin-top: 20px;\n left: 10px;\n padding-left: 5px;\n}\n\ndiv.vis-configuration.vis-config-button {\n display: block;\n width: 495px;\n height: 25px;\n vertical-align: middle;\n line-height: 25px;\n background-color: #f7f8fa;\n border: 2px solid #ceced0;\n border-radius: 4px;\n margin-top: 20px;\n left: 10px;\n padding-left: 5px;\n cursor: pointer;\n margin-bottom: 30px;\n}\n\ndiv.vis-configuration.vis-config-button.hover {\n background-color: #4588e6;\n border: 2px solid #214373;\n color: #ffffff;\n}\n\ndiv.vis-configuration.vis-config-item {\n display: block;\n float: left;\n width: 495px;\n height: 25px;\n vertical-align: middle;\n line-height: 25px;\n}\n\ndiv.vis-configuration.vis-config-item.vis-config-s2 {\n left: 10px;\n background-color: #f7f8fa;\n padding-left: 5px;\n border-radius: 3px;\n}\n\ndiv.vis-configuration.vis-config-item.vis-config-s3 {\n left: 20px;\n background-color: #e4e9f0;\n padding-left: 5px;\n border-radius: 3px;\n}\n\ndiv.vis-configuration.vis-config-item.vis-config-s4 {\n left: 30px;\n background-color: #cfd8e6;\n padding-left: 5px;\n border-radius: 3px;\n}\n\ndiv.vis-configuration.vis-config-header {\n font-size: 18px;\n font-weight: bold;\n}\n\ndiv.vis-configuration.vis-config-label {\n width: 120px;\n height: 25px;\n line-height: 25px;\n}\n\ndiv.vis-configuration.vis-config-label.vis-config-s3 {\n width: 110px;\n}\n\ndiv.vis-configuration.vis-config-label.vis-config-s4 {\n width: 100px;\n}\n\ndiv.vis-configuration.vis-config-colorBlock {\n top: 1px;\n width: 30px;\n height: 19px;\n border: 1px solid #444444;\n border-radius: 2px;\n padding: 0px;\n margin: 0px;\n cursor: pointer;\n}\n\ninput.vis-configuration.vis-config-checkbox {\n left: -5px;\n}\n\ninput.vis-configuration.vis-config-rangeinput {\n position: relative;\n top: -5px;\n width: 60px;\n /*height:13px;*/\n padding: 1px;\n margin: 0;\n pointer-events: none;\n}\n\ninput.vis-configuration.vis-config-range {\n /*removes default webkit styles*/\n -webkit-appearance: none;\n /*fix for FF unable to apply focus style bug */\n border: 0px solid white;\n background-color: rgba(0, 0, 0, 0);\n /*required for proper track sizing in FF*/\n width: 300px;\n height: 20px;\n}\n\ninput.vis-configuration.vis-config-range::-webkit-slider-runnable-track {\n width: 300px;\n height: 5px;\n background: #dedede; /* Old browsers */\n background: -moz-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* FF3.6+ */\n background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #dedede), color-stop(99%, #c8c8c8)); /* Chrome,Safari4+ */\n background: -webkit-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* Chrome10+,Safari5.1+ */\n background: -o-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* Opera 11.10+ */\n background: -ms-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* IE10+ */\n background: linear-gradient(to bottom, #dedede 0%, #c8c8c8 99%); /* W3C */\n filter: progid:DXImageTransform.Microsoft.gradient( startColorstr="#dedede", endColorstr="#c8c8c8",GradientType=0 ); /* IE6-9 */\n border: 1px solid #999999;\n box-shadow: #aaaaaa 0px 0px 3px 0px;\n border-radius: 3px;\n}\n\ninput.vis-configuration.vis-config-range::-webkit-slider-thumb {\n -webkit-appearance: none;\n border: 1px solid #14334b;\n height: 17px;\n width: 17px;\n border-radius: 50%;\n background: #3876c2; /* Old browsers */\n background: -moz-linear-gradient(top, #3876c2 0%, #385380 100%); /* FF3.6+ */\n background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #3876c2), color-stop(100%, #385380)); /* Chrome,Safari4+ */\n background: -webkit-linear-gradient(top, #3876c2 0%, #385380 100%); /* Chrome10+,Safari5.1+ */\n background: -o-linear-gradient(top, #3876c2 0%, #385380 100%); /* Opera 11.10+ */\n background: -ms-linear-gradient(top, #3876c2 0%, #385380 100%); /* IE10+ */\n background: linear-gradient(to bottom, #3876c2 0%, #385380 100%); /* W3C */\n filter: progid:DXImageTransform.Microsoft.gradient( startColorstr="#3876c2", endColorstr="#385380",GradientType=0 ); /* IE6-9 */\n box-shadow: #111927 0px 0px 1px 0px;\n margin-top: -7px;\n}\n\ninput.vis-configuration.vis-config-range:focus {\n outline: none;\n}\n\ninput.vis-configuration.vis-config-range:focus::-webkit-slider-runnable-track {\n background: #9d9d9d; /* Old browsers */\n background: -moz-linear-gradient(top, #9d9d9d 0%, #c8c8c8 99%); /* FF3.6+ */\n background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #9d9d9d), color-stop(99%, #c8c8c8)); /* Chrome,Safari4+ */\n background: -webkit-linear-gradient(top, #9d9d9d 0%, #c8c8c8 99%); /* Chrome10+,Safari5.1+ */\n background: -o-linear-gradient(top, #9d9d9d 0%, #c8c8c8 99%); /* Opera 11.10+ */\n background: -ms-linear-gradient(top, #9d9d9d 0%, #c8c8c8 99%); /* IE10+ */\n background: linear-gradient(to bottom, #9d9d9d 0%, #c8c8c8 99%); /* W3C */\n filter: progid:DXImageTransform.Microsoft.gradient( startColorstr="#9d9d9d", endColorstr="#c8c8c8",GradientType=0 ); /* IE6-9 */\n}\n\ninput.vis-configuration.vis-config-range::-moz-range-track {\n width: 300px;\n height: 10px;\n background: #dedede; /* Old browsers */\n background: -moz-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* FF3.6+ */\n background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #dedede), color-stop(99%, #c8c8c8)); /* Chrome,Safari4+ */\n background: -webkit-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* Chrome10+,Safari5.1+ */\n background: -o-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* Opera 11.10+ */\n background: -ms-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* IE10+ */\n background: linear-gradient(to bottom, #dedede 0%, #c8c8c8 99%); /* W3C */\n filter: progid:DXImageTransform.Microsoft.gradient( startColorstr="#dedede", endColorstr="#c8c8c8",GradientType=0 ); /* IE6-9 */\n border: 1px solid #999999;\n box-shadow: #aaaaaa 0px 0px 3px 0px;\n border-radius: 3px;\n}\n\ninput.vis-configuration.vis-config-range::-moz-range-thumb {\n border: none;\n height: 16px;\n width: 16px;\n border-radius: 50%;\n background: #385380;\n}\n\n/*hide the outline behind the border*/\ninput.vis-configuration.vis-config-range:-moz-focusring {\n outline: 1px solid white;\n outline-offset: -1px;\n}\n\ninput.vis-configuration.vis-config-range::-ms-track {\n width: 300px;\n height: 5px;\n /*remove bg colour from the track, we\'ll use ms-fill-lower and ms-fill-upper instead */\n background: transparent;\n /*leave room for the larger thumb to overflow with a transparent border */\n border-color: transparent;\n border-width: 6px 0;\n /*remove default tick marks*/\n color: transparent;\n}\n\ninput.vis-configuration.vis-config-range::-ms-fill-lower {\n background: #777;\n border-radius: 10px;\n}\n\ninput.vis-configuration.vis-config-range::-ms-fill-upper {\n background: #ddd;\n border-radius: 10px;\n}\n\ninput.vis-configuration.vis-config-range::-ms-thumb {\n border: none;\n height: 16px;\n width: 16px;\n border-radius: 50%;\n background: #385380;\n}\n\ninput.vis-configuration.vis-config-range:focus::-ms-fill-lower {\n background: #888;\n}\n\ninput.vis-configuration.vis-config-range:focus::-ms-fill-upper {\n background: #ccc;\n}\n\n.vis-configuration-popup {\n position: absolute;\n background: rgba(57, 76, 89, 0.85);\n border: 2px solid #f2faff;\n line-height: 30px;\n height: 30px;\n width: 150px;\n text-align: center;\n color: #ffffff;\n font-size: 14px;\n border-radius: 4px;\n -webkit-transition: opacity 0.3s ease-in-out;\n -moz-transition: opacity 0.3s ease-in-out;\n transition: opacity 0.3s ease-in-out;\n}\n\n.vis-configuration-popup:after, .vis-configuration-popup:before {\n left: 100%;\n top: 50%;\n border: solid transparent;\n content: " ";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n}\n\n.vis-configuration-popup:after {\n border-color: rgba(136, 183, 213, 0);\n border-left-color: rgba(57, 76, 89, 0.85);\n border-width: 8px;\n margin-top: -8px;\n}\n\n.vis-configuration-popup:before {\n border-color: rgba(194, 225, 245, 0);\n border-left-color: #f2faff;\n border-width: 12px;\n margin-top: -12px;\n}\n\ndiv.vis-tooltip {\n position: absolute;\n visibility: hidden;\n padding: 5px;\n white-space: nowrap;\n font-family: verdana;\n font-size: 14px;\n color: #000000;\n background-color: #f5f4ed;\n -moz-border-radius: 3px;\n -webkit-border-radius: 3px;\n border-radius: 3px;\n border: 1px solid #808074;\n box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);\n pointer-events: none;\n z-index: 5;\n}\n\nside-drawer {\n background-color: var(--card-background-color);\n}\n\ndiv.control-surround {\n position: absolute;\n bottom: 50%;\n transform: translateY(50%);\n padding-top: 20px;\n padding-bottom: 20px;\n}\n\n:host([location=left]) div.control-surround {\n padding-right: 12px;\n left: 100%;\n}\n\n:host([location=right]) div.control-surround {\n padding-left: 12px;\n right: 100%;\n}\n\n:host([empty]),\n:host([empty]) > * {\n visibility: hidden;\n}\n\n:host(:not([empty])),\n:host(:not([empty])) > * {\n visibility: visible;\n}\n\nadvanced-camera-card-icon.control {\n color: var(--advanced-camera-card-button-color);\n background-color: var(--advanced-camera-card-button-background);\n pointer-events: all;\n --mdc-icon-size: 20px;\n padding-top: 20px;\n padding-bottom: 20px;\n transition: opacity 0.5s ease;\n}\n\n:host([location=left]) advanced-camera-card-icon.control {\n border-top-right-radius: 20px;\n border-bottom-right-radius: 20px;\n}\n\n:host([location=right]) advanced-camera-card-icon.control {\n border-top-left-radius: 20px;\n border-bottom-left-radius: 20px;\n}\n\n:host {\n --advanced-camera-card-thumbnail-size-max: 300px;\n --advanced-camera-card-thumbnail-details-width: calc(\n var(--advanced-camera-card-thumbnail-size) + 200px\n );\n}\n\n:host {\n width: 100%;\n display: flex;\n flex-direction: column;\n position: relative;\n background-color: var(--advanced-camera-card-timeline-background);\n}\n\n:host(:not([mini])) {\n height: 100%;\n}\n\nadvanced-camera-card-thumbnail {\n height: var(--advanced-camera-card-thumbnail-size);\n width: var(--advanced-camera-card-thumbnail-size);\n}\n\nadvanced-camera-card-thumbnail[details] {\n width: var(--advanced-camera-card-thumbnail-details-width);\n}\n\ndiv.timeline {\n flex: 1;\n}\n\n.vis-text {\n color: var(--advanced-camera-card-timeline-text-color) !important;\n}\n\n.vis-timeline {\n border: none;\n}\n\n.vis-labelset .vis-label {\n color: var(--advanced-camera-card-timeline-text-color);\n}\n\n:host([ribbon]:not([groups])) .vis-item:not(.vis-background) {\n margin-top: 7px;\n}\n\n:host([ribbon]) .vis-item:not(.vis-background) {\n height: 6px;\n}\n\n.vis-item {\n border-color: var(--advanced-camera-card-timeline-item-color);\n background: none;\n color: var(--advanced-camera-card-timeline-text-color);\n background-color: var(--advanced-camera-card-timeline-item-color);\n transition: background-color ease-in-out 1s, border-color ease-in-out 1s, box-shadow ease-in-out 1s;\n}\n\n.vis-item.vis-selected {\n border-color: var(--advanced-camera-card-active-color);\n background-color: var(--advanced-camera-card-active-color);\n box-shadow: var(--advanced-camera-card-box-shadow-override, 0px 0px 5px 1px var(--advanced-camera-card-active-color));\n}\n\n.vis-item.vis-background {\n background-color: var(--advanced-camera-card-timeline-background-item-color);\n}\n\n:host(:not([groups])) .vis-item.vis-background {\n min-height: 100%;\n}\n\n.vis-item:not(.vis-background) {\n cursor: pointer;\n}\n\n:host([recordings]) .vis-item.vis-background,\n:host([recordings]) .vis-time-axis {\n cursor: crosshair;\n}\n\n.vis-item:active {\n cursor: unset;\n}\n\n.vis-item.vis-box {\n border: none;\n}\n\n.vis-item .vis-item-content {\n padding: 0px;\n}\n\n.vis-item.vis-cluster {\n border-style: dotted;\n color: var(--advanced-camera-card-timeline-text-color);\n background-color: var(--advanced-camera-card-timeline-background);\n box-shadow: var(--advanced-camera-card-box-shadow-override, 0px 0px 5px 1px var(--advanced-camera-card-timeline-item-color));\n}\n\n.vis-item.vis-range {\n border-radius: var(--advanced-camera-card-border-radius-final);\n}\n\n.vis-time-axis .vis-grid.vis-minor {\n border-color: var(--advanced-camera-card-timeline-divider-color);\n}\n\n.vis-text.vis-minor,\n.vis-label {\n transition: background-color 0.5s ease-out;\n}\n\n:host([recordings]) .vis-text.vis-minor:hover {\n background-color: color-mix(in oklab, var(--advanced-camera-card-timeline-text-color), transparent 80%);\n}\n\n.vis-time-axis .vis-grid.vis-major {\n border-color: var(--advanced-camera-card-timeline-divider-color);\n}\n\n.vis-label {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\ndiv.vis-tooltip {\n padding: 0px;\n background-color: unset;\n border: none;\n font-family: unset;\n z-index: 30;\n}\n\n.target_bar {\n background-color: var(--advanced-camera-card-timeline-target-bar-color);\n width: 2px;\n z-index: 20;\n pointer-events: none;\n}\n\n.target_bar .vis-custom-time-marker {\n background-color: var(--advanced-camera-card-timeline-background);\n color: var(--advanced-camera-card-timeline-text-color);\n bottom: 0px;\n top: unset;\n}\n\n:host([target-bar-marker-direction=right]) .target_bar .vis-custom-time-marker {\n left: 2px;\n}\n\n:host([target-bar-marker-direction=left]) .target_bar .vis-custom-time-marker {\n right: 2px;\n}\n\n:host([target-bar-marker-direction=center]) .target_bar .vis-custom-time-marker {\n left: 0px;\n transform: translateX(-50%);\n}\n\n.timeline-tools {\n display: inline-flex;\n position: absolute;\n right: 0px;\n bottom: 0px;\n color: var(--advanced-camera-card-timeline-tool-color);\n z-index: 10;\n}\n\n.timeline-tools * {\n margin: 2px 5px;\n cursor: pointer;\n}\n\n.timeline-tools *:last-child {\n margin-right: 10px;\n}')}};P([A({attribute:!1})],ut.prototype,"hass",void 0),P([A({attribute:!1})],ut.prototype,"viewManagerEpoch",void 0),P([A({attribute:!1,hasChanged:N})],ut.prototype,"timelineConfig",void 0),P([A({attribute:!1})],ut.prototype,"thumbnailConfig",void 0),P([A({attribute:!0,type:Boolean,reflect:!0})],ut.prototype,"mini",void 0),P([A({attribute:!1,hasChanged:N})],ut.prototype,"keys",void 0),P([A({attribute:!1})],ut.prototype,"cameraManager",void 0),P([A({attribute:!1})],ut.prototype,"foldersManager",void 0),P([A({attribute:!1})],ut.prototype,"conditionStateManager",void 0),P([A({attribute:!1})],ut.prototype,"viewItemManager",void 0),P([A({attribute:!1})],ut.prototype,"cardWideConfig",void 0),P([A({attribute:!1})],ut.prototype,"itemClickAction",void 0),ut=P([I("advanced-camera-card-timeline-core")],ut);export{ut as AdvancedCameraCardTimelineCore,lt as AdvancedCameraCardTimelineThumbnail};
|