85 lines
578 KiB
JavaScript
Executable File
85 lines
578 KiB
JavaScript
Executable File
/**
|
||
* vis-timeline and vis-graph2d
|
||
* https://visjs.github.io/vis-timeline/
|
||
*
|
||
* Create a fully customizable, interactive timeline with items and ranges.
|
||
*
|
||
* @version 7.1.3
|
||
* @date 2020-02-20T00:08:13.865Z
|
||
*
|
||
* @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,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).vis=t.vis||{})}(this,(function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function n(t,e){return t(e={exports:{}},e.exports),e.exports}var r=n((function(t,e){t.exports=function(){var e,n;function r(){return e.apply(null,arguments)}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){return void 0===t}function l(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function u(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function h(t,e){var i,n=[];for(i=0;i<t.length;++i)n.push(e(t[i],i));return n}function c(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function d(t,e){for(var i in e)c(e,i)&&(t[i]=e[i]);return c(e,"toString")&&(t.toString=e.toString),c(e,"valueOf")&&(t.valueOf=e.valueOf),t}function f(t,e,i,n){return De(t,e,i,n,!0).utc()}function p(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function m(t){if(null==t._isValid){var e=p(t),i=n.call(e.parsedDateParts,(function(t){return null!=t})),r=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&i);if(t._strict&&(r=r&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return r;t._isValid=r}return t._isValid}function v(t){var e=f(NaN);return null!=t?d(p(e),t):p(e).userInvalidated=!0,e}n=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),i=e.length>>>0,n=0;n<i;n++)if(n in e&&t.call(this,e[n],n,e))return!0;return!1};var g=r.momentProperties=[];function y(t,e){var i,n,r;if(a(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),a(e._i)||(t._i=e._i),a(e._f)||(t._f=e._f),a(e._l)||(t._l=e._l),a(e._strict)||(t._strict=e._strict),a(e._tzm)||(t._tzm=e._tzm),a(e._isUTC)||(t._isUTC=e._isUTC),a(e._offset)||(t._offset=e._offset),a(e._pf)||(t._pf=p(e)),a(e._locale)||(t._locale=e._locale),g.length>0)for(i=0;i<g.length;i++)a(r=e[n=g[i]])||(t[n]=r);return t}var b=!1;function _(t){y(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===b&&(b=!0,r.updateOffset(this),b=!1)}function w(t){return t instanceof _||null!=t&&null!=t._isAMomentObject}function k(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function S(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=k(e)),i}function D(t,e,i){var n,r=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),s=0;for(n=0;n<r;n++)(i&&t[n]!==e[n]||!i&&S(t[n])!==S(e[n]))&&s++;return s+o}function x(t){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function O(t,e){var i=!0;return d((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,t),i){for(var n,o=[],s=0;s<arguments.length;s++){if(n="","object"==typeof arguments[s]){for(var a in n+="\n["+s+"] ",arguments[0])n+=a+": "+arguments[0][a]+", ";n=n.slice(0,-2)}else n=arguments[s];o.push(n)}x(t+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),i=!1}return e.apply(this,arguments)}),e)}var M,T={};function C(t,e){null!=r.deprecationHandler&&r.deprecationHandler(t,e),T[t]||(x(e),T[t]=!0)}function P(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function E(t,e){var i,n=d({},t);for(i in e)c(e,i)&&(s(t[i])&&s(e[i])?(n[i]={},d(n[i],t[i]),d(n[i],e[i])):null!=e[i]?n[i]=e[i]:delete n[i]);for(i in t)c(t,i)&&!c(e,i)&&s(t[i])&&(n[i]=d({},n[i]));return n}function A(t){null!=t&&this.set(t)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,M=Object.keys?Object.keys:function(t){var e,i=[];for(e in t)c(t,e)&&i.push(e);return i};var L={};function I(t,e){var i=t.toLowerCase();L[i]=L[i+"s"]=L[e]=t}function j(t){return"string"==typeof t?L[t]||L[t.toLowerCase()]:void 0}function Y(t){var e,i,n={};for(i in t)c(t,i)&&(e=j(i))&&(n[e]=t[i]);return n}var N={};function R(t,e){N[t]=e}function F(t,e,i){var n=""+Math.abs(t),r=e-n.length;return(t>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+n}var H=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,G=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,W={},z={};function V(t,e,i,n){var r=n;"string"==typeof n&&(r=function(){return this[n]()}),t&&(z[t]=r),e&&(z[e[0]]=function(){return F(r.apply(this,arguments),e[1],e[2])}),i&&(z[i]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function U(t,e){return t.isValid()?(e=B(e,t.localeData()),W[e]=W[e]||function(t){var e,i,n,r=t.match(H);for(e=0,i=r.length;e<i;e++)z[r[e]]?r[e]=z[r[e]]:r[e]=(n=r[e]).match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"");return function(e){var n,o="";for(n=0;n<i;n++)o+=P(r[n])?r[n].call(e,t):r[n];return o}}(e),W[e](t)):t.localeData().invalidDate()}function B(t,e){var i=5;function n(t){return e.longDateFormat(t)||t}for(G.lastIndex=0;i>=0&&G.test(t);)t=t.replace(G,n),G.lastIndex=0,i-=1;return t}var X=/\d/,q=/\d\d/,Z=/\d{3}/,J=/\d{4}/,$=/[+-]?\d{6}/,K=/\d\d?/,Q=/\d\d\d\d?/,tt=/\d\d\d\d\d\d?/,et=/\d{1,3}/,it=/\d{1,4}/,nt=/[+-]?\d{1,6}/,rt=/\d+/,ot=/[+-]?\d+/,st=/Z|[+-]\d\d:?\d\d/gi,at=/Z|[+-]\d\d(?::?\d\d)?/gi,lt=/[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,ut={};function ht(t,e,i){ut[t]=P(e)?e:function(t,n){return t&&i?i:e}}function ct(t,e){return c(ut,t)?ut[t](e._strict,e._locale):new RegExp(dt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,i,n,r){return e||i||n||r}))))}function dt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var ft={};function pt(t,e){var i,n=e;for("string"==typeof t&&(t=[t]),l(e)&&(n=function(t,i){i[e]=S(t)}),i=0;i<t.length;i++)ft[t[i]]=n}function mt(t,e){pt(t,(function(t,i,n,r){n._w=n._w||{},e(t,n._w,n,r)}))}function vt(t,e,i){null!=e&&c(ft,t)&&ft[t](e,i._a,i,t)}function gt(t){return yt(t)?366:365}function yt(t){return t%4==0&&t%100!=0||t%400==0}V("Y",0,0,(function(){var t=this.year();return t<=9999?""+t:"+"+t})),V(0,["YY",2],0,(function(){return this.year()%100})),V(0,["YYYY",4],0,"year"),V(0,["YYYYY",5],0,"year"),V(0,["YYYYYY",6,!0],0,"year"),I("year","y"),R("year",1),ht("Y",ot),ht("YY",K,q),ht("YYYY",it,J),ht("YYYYY",nt,$),ht("YYYYYY",nt,$),pt(["YYYYY","YYYYYY"],0),pt("YYYY",(function(t,e){e[0]=2===t.length?r.parseTwoDigitYear(t):S(t)})),pt("YY",(function(t,e){e[0]=r.parseTwoDigitYear(t)})),pt("Y",(function(t,e){e[0]=parseInt(t,10)})),r.parseTwoDigitYear=function(t){return S(t)+(S(t)>68?1900:2e3)};var bt,_t=wt("FullYear",!0);function wt(t,e){return function(i){return null!=i?(St(this,t,i),r.updateOffset(this,e),this):kt(this,t)}}function kt(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function St(t,e,i){t.isValid()&&!isNaN(i)&&("FullYear"===e&&yt(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](i,t.month(),Dt(i,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](i))}function Dt(t,e){if(isNaN(t)||isNaN(e))return NaN;var i,n=(e%(i=12)+i)%i;return t+=(e-n)/12,1===n?yt(t)?29:28:31-n%7%2}bt=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},V("M",["MM",2],"Mo",(function(){return this.month()+1})),V("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),V("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),I("month","M"),R("month",8),ht("M",K),ht("MM",K,q),ht("MMM",(function(t,e){return e.monthsShortRegex(t)})),ht("MMMM",(function(t,e){return e.monthsRegex(t)})),pt(["M","MM"],(function(t,e){e[1]=S(t)-1})),pt(["MMM","MMMM"],(function(t,e,i,n){var r=i._locale.monthsParse(t,n,i._strict);null!=r?e[1]=r:p(i).invalidMonth=t}));var xt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ot="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Mt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Tt(t,e,i){var n,r,o,s=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)o=f([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(o,"").toLocaleLowerCase();return i?"MMM"===e?-1!==(r=bt.call(this._shortMonthsParse,s))?r:null:-1!==(r=bt.call(this._longMonthsParse,s))?r:null:"MMM"===e?-1!==(r=bt.call(this._shortMonthsParse,s))?r:-1!==(r=bt.call(this._longMonthsParse,s))?r:null:-1!==(r=bt.call(this._longMonthsParse,s))?r:-1!==(r=bt.call(this._shortMonthsParse,s))?r:null}function Ct(t,e){var i;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=S(e);else if(!l(e=t.localeData().monthsParse(e)))return t;return i=Math.min(t.date(),Dt(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,i),t}function Pt(t){return null!=t?(Ct(this,t),r.updateOffset(this,!0),this):kt(this,"Month")}var Et=lt,At=lt;function Lt(){function t(t,e){return e.length-t.length}var e,i,n=[],r=[],o=[];for(e=0;e<12;e++)i=f([2e3,e]),n.push(this.monthsShort(i,"")),r.push(this.months(i,"")),o.push(this.months(i,"")),o.push(this.monthsShort(i,""));for(n.sort(t),r.sort(t),o.sort(t),e=0;e<12;e++)n[e]=dt(n[e]),r[e]=dt(r[e]);for(e=0;e<24;e++)o[e]=dt(o[e]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function It(t,e,i,n,r,o,s){var a;return t<100&&t>=0?(a=new Date(t+400,e,i,n,r,o,s),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,e,i,n,r,o,s),a}function jt(t){var e;if(t<100&&t>=0){var i=Array.prototype.slice.call(arguments);i[0]=t+400,e=new Date(Date.UTC.apply(null,i)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)}else e=new Date(Date.UTC.apply(null,arguments));return e}function Yt(t,e,i){var n=7+e-i;return-(7+jt(t,0,n).getUTCDay()-e)%7+n-1}function Nt(t,e,i,n,r){var o,s,a=1+7*(e-1)+(7+i-n)%7+Yt(t,n,r);return a<=0?s=gt(o=t-1)+a:a>gt(t)?(o=t+1,s=a-gt(t)):(o=t,s=a),{year:o,dayOfYear:s}}function Rt(t,e,i){var n,r,o=Yt(t.year(),e,i),s=Math.floor((t.dayOfYear()-o-1)/7)+1;return s<1?n=s+Ft(r=t.year()-1,e,i):s>Ft(t.year(),e,i)?(n=s-Ft(t.year(),e,i),r=t.year()+1):(r=t.year(),n=s),{week:n,year:r}}function Ft(t,e,i){var n=Yt(t,e,i),r=Yt(t+1,e,i);return(gt(t)-n+r)/7}function Ht(t,e){return t.slice(e,7).concat(t.slice(0,e))}V("w",["ww",2],"wo","week"),V("W",["WW",2],"Wo","isoWeek"),I("week","w"),I("isoWeek","W"),R("week",5),R("isoWeek",5),ht("w",K),ht("ww",K,q),ht("W",K),ht("WW",K,q),mt(["w","ww","W","WW"],(function(t,e,i,n){e[n.substr(0,1)]=S(t)})),V("d",0,"do","day"),V("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),V("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),V("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),V("e",0,0,"weekday"),V("E",0,0,"isoWeekday"),I("day","d"),I("weekday","e"),I("isoWeekday","E"),R("day",11),R("weekday",11),R("isoWeekday",11),ht("d",K),ht("e",K),ht("E",K),ht("dd",(function(t,e){return e.weekdaysMinRegex(t)})),ht("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),ht("dddd",(function(t,e){return e.weekdaysRegex(t)})),mt(["dd","ddd","dddd"],(function(t,e,i,n){var r=i._locale.weekdaysParse(t,n,i._strict);null!=r?e.d=r:p(i).invalidWeekday=t})),mt(["d","e","E"],(function(t,e,i,n){e[n]=S(t)}));var Gt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Wt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),zt="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Vt(t,e,i){var n,r,o,s=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)o=f([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(o,"").toLocaleLowerCase();return i?"dddd"===e?-1!==(r=bt.call(this._weekdaysParse,s))?r:null:"ddd"===e?-1!==(r=bt.call(this._shortWeekdaysParse,s))?r:null:-1!==(r=bt.call(this._minWeekdaysParse,s))?r:null:"dddd"===e?-1!==(r=bt.call(this._weekdaysParse,s))?r:-1!==(r=bt.call(this._shortWeekdaysParse,s))?r:-1!==(r=bt.call(this._minWeekdaysParse,s))?r:null:"ddd"===e?-1!==(r=bt.call(this._shortWeekdaysParse,s))?r:-1!==(r=bt.call(this._weekdaysParse,s))?r:-1!==(r=bt.call(this._minWeekdaysParse,s))?r:null:-1!==(r=bt.call(this._minWeekdaysParse,s))?r:-1!==(r=bt.call(this._weekdaysParse,s))?r:-1!==(r=bt.call(this._shortWeekdaysParse,s))?r:null}var Ut=lt,Bt=lt,Xt=lt;function qt(){function t(t,e){return e.length-t.length}var e,i,n,r,o,s=[],a=[],l=[],u=[];for(e=0;e<7;e++)i=f([2e3,1]).day(e),n=this.weekdaysMin(i,""),r=this.weekdaysShort(i,""),o=this.weekdays(i,""),s.push(n),a.push(r),l.push(o),u.push(n),u.push(r),u.push(o);for(s.sort(t),a.sort(t),l.sort(t),u.sort(t),e=0;e<7;e++)a[e]=dt(a[e]),l[e]=dt(l[e]),u[e]=dt(u[e]);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 Zt(){return this.hours()%12||12}function Jt(t,e){V(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function $t(t,e){return e._meridiemParse}V("H",["HH",2],0,"hour"),V("h",["hh",2],0,Zt),V("k",["kk",2],0,(function(){return this.hours()||24})),V("hmm",0,0,(function(){return""+Zt.apply(this)+F(this.minutes(),2)})),V("hmmss",0,0,(function(){return""+Zt.apply(this)+F(this.minutes(),2)+F(this.seconds(),2)})),V("Hmm",0,0,(function(){return""+this.hours()+F(this.minutes(),2)})),V("Hmmss",0,0,(function(){return""+this.hours()+F(this.minutes(),2)+F(this.seconds(),2)})),Jt("a",!0),Jt("A",!1),I("hour","h"),R("hour",13),ht("a",$t),ht("A",$t),ht("H",K),ht("h",K),ht("k",K),ht("HH",K,q),ht("hh",K,q),ht("kk",K,q),ht("hmm",Q),ht("hmmss",tt),ht("Hmm",Q),ht("Hmmss",tt),pt(["H","HH"],3),pt(["k","kk"],(function(t,e,i){var n=S(t);e[3]=24===n?0:n})),pt(["a","A"],(function(t,e,i){i._isPm=i._locale.isPM(t),i._meridiem=t})),pt(["h","hh"],(function(t,e,i){e[3]=S(t),p(i).bigHour=!0})),pt("hmm",(function(t,e,i){var n=t.length-2;e[3]=S(t.substr(0,n)),e[4]=S(t.substr(n)),p(i).bigHour=!0})),pt("hmmss",(function(t,e,i){var n=t.length-4,r=t.length-2;e[3]=S(t.substr(0,n)),e[4]=S(t.substr(n,2)),e[5]=S(t.substr(r)),p(i).bigHour=!0})),pt("Hmm",(function(t,e,i){var n=t.length-2;e[3]=S(t.substr(0,n)),e[4]=S(t.substr(n))})),pt("Hmmss",(function(t,e,i){var n=t.length-4,r=t.length-2;e[3]=S(t.substr(0,n)),e[4]=S(t.substr(n,2)),e[5]=S(t.substr(r))}));var Kt,Qt=wt("Hours",!0),te={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{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"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ot,monthsShort:Mt,week:{dow:0,doy:6},weekdays:Gt,weekdaysMin:zt,weekdaysShort:Wt,meridiemParse:/[ap]\.?m?\.?/i},ee={},ie={};function ne(t){return t?t.toLowerCase().replace("_","-"):t}function re(e){var n=null;if(!ee[e]&&t&&t.exports)try{n=Kt._abbr,i(),oe(n)}catch(t){}return ee[e]}function oe(t,e){var i;return t&&((i=a(e)?ae(t):se(t,e))?Kt=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Kt._abbr}function se(t,e){if(null!==e){var i,n=te;if(e.abbr=t,null!=ee[t])C("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."),n=ee[t]._config;else if(null!=e.parentLocale)if(null!=ee[e.parentLocale])n=ee[e.parentLocale]._config;else{if(null==(i=re(e.parentLocale)))return ie[e.parentLocale]||(ie[e.parentLocale]=[]),ie[e.parentLocale].push({name:t,config:e}),null;n=i._config}return ee[t]=new A(E(n,e)),ie[t]&&ie[t].forEach((function(t){se(t.name,t.config)})),oe(t),ee[t]}return delete ee[t],null}function ae(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Kt;if(!o(t)){if(e=re(t))return e;t=[t]}return function(t){for(var e,i,n,r,o=0;o<t.length;){for(e=(r=ne(t[o]).split("-")).length,i=(i=ne(t[o+1]))?i.split("-"):null;e>0;){if(n=re(r.slice(0,e).join("-")))return n;if(i&&i.length>=e&&D(r,i,!0)>=e-1)break;e--}o++}return Kt}(t)}function le(t){var e,i=t._a;return i&&-2===p(t).overflow&&(e=i[1]<0||i[1]>11?1:i[2]<1||i[2]>Dt(i[0],i[1])?2:i[3]<0||i[3]>24||24===i[3]&&(0!==i[4]||0!==i[5]||0!==i[6])?3:i[4]<0||i[4]>59?4:i[5]<0||i[5]>59?5:i[6]<0||i[6]>999?6:-1,p(t)._overflowDayOfYear&&(e<0||e>2)&&(e=2),p(t)._overflowWeeks&&-1===e&&(e=7),p(t)._overflowWeekday&&-1===e&&(e=8),p(t).overflow=e),t}function ue(t,e,i){return null!=t?t:null!=e?e:i}function he(t){var e,i,n,o,s,a=[];if(!t._d){for(n=function(t){var e=new Date(r.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[2]&&null==t._a[1]&&function(t){var e,i,n,r,o,s,a,l;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)o=1,s=4,i=ue(e.GG,t._a[0],Rt(xe(),1,4).year),n=ue(e.W,1),((r=ue(e.E,1))<1||r>7)&&(l=!0);else{o=t._locale._week.dow,s=t._locale._week.doy;var u=Rt(xe(),o,s);i=ue(e.gg,t._a[0],u.year),n=ue(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}n<1||n>Ft(i,o,s)?p(t)._overflowWeeks=!0:null!=l?p(t)._overflowWeekday=!0:(a=Nt(i,n,r,o,s),t._a[0]=a.year,t._dayOfYear=a.dayOfYear)}(t),null!=t._dayOfYear&&(s=ue(t._a[0],n[0]),(t._dayOfYear>gt(s)||0===t._dayOfYear)&&(p(t)._overflowDayOfYear=!0),i=jt(s,0,t._dayOfYear),t._a[1]=i.getUTCMonth(),t._a[2]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=n[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[3]&&0===t._a[4]&&0===t._a[5]&&0===t._a[6]&&(t._nextDay=!0,t._a[3]=0),t._d=(t._useUTC?jt:It).apply(null,a),o=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[3]=24),t._w&&void 0!==t._w.d&&t._w.d!==o&&(p(t).weekdayMismatch=!0)}}var ce=/^\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)?)?$/,de=/^\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)?)?$/,fe=/Z|[+-]\d\d(?::?\d\d)?/,pe=[["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}/]],me=[["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/]],ve=/^\/?Date\((\-?\d+)/i;function ge(t){var e,i,n,r,o,s,a=t._i,l=ce.exec(a)||de.exec(a);if(l){for(p(t).iso=!0,e=0,i=pe.length;e<i;e++)if(pe[e][1].exec(l[1])){r=pe[e][0],n=!1!==pe[e][2];break}if(null==r)return void(t._isValid=!1);if(l[3]){for(e=0,i=me.length;e<i;e++)if(me[e][1].exec(l[3])){o=(l[2]||" ")+me[e][0];break}if(null==o)return void(t._isValid=!1)}if(!n&&null!=o)return void(t._isValid=!1);if(l[4]){if(!fe.exec(l[4]))return void(t._isValid=!1);s="Z"}t._f=r+(o||"")+(s||""),ke(t)}else t._isValid=!1}var ye=/^(?:(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}))$/;function be(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}var _e={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function we(t){var e,i,n,r,o,s,a,l=ye.exec(t._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(l){var u=(e=l[4],i=l[3],n=l[2],r=l[5],o=l[6],s=l[7],a=[be(e),Mt.indexOf(i),parseInt(n,10),parseInt(r,10),parseInt(o,10)],s&&a.push(parseInt(s,10)),a);if(!function(t,e,i){return!t||Wt.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(p(i).weekdayMismatch=!0,i._isValid=!1,!1)}(l[1],u,t))return;t._a=u,t._tzm=function(t,e,i){if(t)return _e[t];if(e)return 0;var n=parseInt(i,10),r=n%100;return(n-r)/100*60+r}(l[8],l[9],l[10]),t._d=jt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),p(t).rfc2822=!0}else t._isValid=!1}function ke(t){if(t._f!==r.ISO_8601)if(t._f!==r.RFC_2822){t._a=[],p(t).empty=!0;var e,i,n,o,s,a=""+t._i,l=a.length,u=0;for(n=B(t._f,t._locale).match(H)||[],e=0;e<n.length;e++)o=n[e],(i=(a.match(ct(o,t))||[])[0])&&((s=a.substr(0,a.indexOf(i))).length>0&&p(t).unusedInput.push(s),a=a.slice(a.indexOf(i)+i.length),u+=i.length),z[o]?(i?p(t).empty=!1:p(t).unusedTokens.push(o),vt(o,i,t)):t._strict&&!i&&p(t).unusedTokens.push(o);p(t).charsLeftOver=l-u,a.length>0&&p(t).unusedInput.push(a),t._a[3]<=12&&!0===p(t).bigHour&&t._a[3]>0&&(p(t).bigHour=void 0),p(t).parsedDateParts=t._a.slice(0),p(t).meridiem=t._meridiem,t._a[3]=function(t,e,i){var n;return null==i?e:null!=t.meridiemHour?t.meridiemHour(e,i):null!=t.isPM?((n=t.isPM(i))&&e<12&&(e+=12),n||12!==e||(e=0),e):e}(t._locale,t._a[3],t._meridiem),he(t),le(t)}else we(t);else ge(t)}function Se(t){var e=t._i,i=t._f;return t._locale=t._locale||ae(t._l),null===e||void 0===i&&""===e?v({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),w(e)?new _(le(e)):(u(e)?t._d=e:o(i)?function(t){var e,i,n,r,o;if(0===t._f.length)return p(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<t._f.length;r++)o=0,e=y({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],ke(e),m(e)&&(o+=p(e).charsLeftOver,o+=10*p(e).unusedTokens.length,p(e).score=o,(null==n||o<n)&&(n=o,i=e));d(t,i||e)}(t):i?ke(t):function(t){var e=t._i;a(e)?t._d=new Date(r.now()):u(e)?t._d=new Date(e.valueOf()):"string"==typeof e?function(t){var e=ve.exec(t._i);null===e?(ge(t),!1===t._isValid&&(delete t._isValid,we(t),!1===t._isValid&&(delete t._isValid,r.createFromInputFallback(t)))):t._d=new Date(+e[1])}(t):o(e)?(t._a=h(e.slice(0),(function(t){return parseInt(t,10)})),he(t)):s(e)?function(t){if(!t._d){var e=Y(t._i);t._a=h([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],(function(t){return t&&parseInt(t,10)})),he(t)}}(t):l(e)?t._d=new Date(e):r.createFromInputFallback(t)}(t),m(t)||(t._d=null),t))}function De(t,e,i,n,r){var a,l={};return!0!==i&&!1!==i||(n=i,i=void 0),(s(t)&&function(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}(t)||o(t)&&0===t.length)&&(t=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=r,l._l=i,l._i=t,l._f=e,l._strict=n,(a=new _(le(Se(l))))._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function xe(t,e,i,n){return De(t,e,i,n,!1)}r.createFromInputFallback=O("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 and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),r.ISO_8601=function(){},r.RFC_2822=function(){};var Oe=O("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=xe.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:v()})),Me=O("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=xe.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:v()}));function Te(t,e){var i,n;if(1===e.length&&o(e[0])&&(e=e[0]),!e.length)return xe();for(i=e[0],n=1;n<e.length;++n)e[n].isValid()&&!e[n][t](i)||(i=e[n]);return i}var Ce=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Pe(t){var e=Y(t),i=e.year||0,n=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,h=e.millisecond||0;this._isValid=function(t){for(var e in t)if(-1===bt.call(Ce,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var i=!1,n=0;n<Ce.length;++n)if(t[Ce[n]]){if(i)return!1;parseFloat(t[Ce[n]])!==S(t[Ce[n]])&&(i=!0)}return!0}(e),this._milliseconds=+h+1e3*u+6e4*l+1e3*a*60*60,this._days=+s+7*o,this._months=+r+3*n+12*i,this._data={},this._locale=ae(),this._bubble()}function Ee(t){return t instanceof Pe}function Ae(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Le(t,e){V(t,0,0,(function(){var t=this.utcOffset(),i="+";return t<0&&(t=-t,i="-"),i+F(~~(t/60),2)+e+F(~~t%60,2)}))}Le("Z",":"),Le("ZZ",""),ht("Z",at),ht("ZZ",at),pt(["Z","ZZ"],(function(t,e,i){i._useUTC=!0,i._tzm=je(at,t)}));var Ie=/([\+\-]|\d\d)/gi;function je(t,e){var i=(e||"").match(t);if(null===i)return null;var n=((i[i.length-1]||[])+"").match(Ie)||["-",0,0],r=60*n[1]+S(n[2]);return 0===r?0:"+"===n[0]?r:-r}function Ye(t,e){var i,n;return e._isUTC?(i=e.clone(),n=(w(t)||u(t)?t.valueOf():xe(t).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+n),r.updateOffset(i,!1),i):xe(t).local()}function Ne(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Re(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Fe=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,He=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ge(t,e){var i,n,r,o,s,a,u=t,h=null;return Ee(t)?u={ms:t._milliseconds,d:t._days,M:t._months}:l(t)?(u={},e?u[e]=t:u.milliseconds=t):(h=Fe.exec(t))?(i="-"===h[1]?-1:1,u={y:0,d:S(h[2])*i,h:S(h[3])*i,m:S(h[4])*i,s:S(h[5])*i,ms:S(Ae(1e3*h[6]))*i}):(h=He.exec(t))?(i="-"===h[1]?-1:1,u={y:We(h[2],i),M:We(h[3],i),w:We(h[4],i),d:We(h[5],i),h:We(h[6],i),m:We(h[7],i),s:We(h[8],i)}):null==u?u={}:"object"==typeof u&&("from"in u||"to"in u)&&(o=xe(u.from),s=xe(u.to),r=o.isValid()&&s.isValid()?(s=Ye(s,o),o.isBefore(s)?a=ze(o,s):((a=ze(s,o)).milliseconds=-a.milliseconds,a.months=-a.months),a):{milliseconds:0,months:0},(u={}).ms=r.milliseconds,u.M=r.months),n=new Pe(u),Ee(t)&&c(t,"_locale")&&(n._locale=t._locale),n}function We(t,e){var i=t&&parseFloat(t.replace(",","."));return(isNaN(i)?0:i)*e}function ze(t,e){var i={};return i.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(i.months,"M").isAfter(e)&&--i.months,i.milliseconds=+e-+t.clone().add(i.months,"M"),i}function Ve(t,e){return function(i,n){var r;return null===n||isNaN(+n)||(C(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=i,i=n,n=r),Ue(this,Ge(i="string"==typeof i?+i:i,n),t),this}}function Ue(t,e,i,n){var o=e._milliseconds,s=Ae(e._days),a=Ae(e._months);t.isValid()&&(n=null==n||n,a&&Ct(t,kt(t,"Month")+a*i),s&&St(t,"Date",kt(t,"Date")+s*i),o&&t._d.setTime(t._d.valueOf()+o*i),n&&r.updateOffset(t,s||a))}Ge.fn=Pe.prototype,Ge.invalid=function(){return Ge(NaN)};var Be=Ve(1,"add"),Xe=Ve(-1,"subtract");function qe(t,e){var i=12*(e.year()-t.year())+(e.month()-t.month()),n=t.clone().add(i,"months");return-(i+(e-n<0?(e-n)/(n-t.clone().add(i-1,"months")):(e-n)/(t.clone().add(i+1,"months")-n)))||0}function Ze(t){var e;return void 0===t?this._locale._abbr:(null!=(e=ae(t))&&(this._locale=e),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Je=O("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 $e(){return this._locale}function Ke(t,e){return(t%e+e)%e}function Qe(t,e,i){return t<100&&t>=0?new Date(t+400,e,i)-126227808e5:new Date(t,e,i).valueOf()}function ti(t,e,i){return t<100&&t>=0?Date.UTC(t+400,e,i)-126227808e5:Date.UTC(t,e,i)}function ei(t,e){V(0,[t,t.length],0,e)}function ii(t,e,i,n,r){var o;return null==t?Rt(this,n,r).year:(e>(o=Ft(t,n,r))&&(e=o),ni.call(this,t,e,i,n,r))}function ni(t,e,i,n,r){var o=Nt(t,e,i,n,r),s=jt(o.year,0,o.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}V(0,["gg",2],0,(function(){return this.weekYear()%100})),V(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),ei("gggg","weekYear"),ei("ggggg","weekYear"),ei("GGGG","isoWeekYear"),ei("GGGGG","isoWeekYear"),I("weekYear","gg"),I("isoWeekYear","GG"),R("weekYear",1),R("isoWeekYear",1),ht("G",ot),ht("g",ot),ht("GG",K,q),ht("gg",K,q),ht("GGGG",it,J),ht("gggg",it,J),ht("GGGGG",nt,$),ht("ggggg",nt,$),mt(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,i,n){e[n.substr(0,2)]=S(t)})),mt(["gg","GG"],(function(t,e,i,n){e[n]=r.parseTwoDigitYear(t)})),V("Q",0,"Qo","quarter"),I("quarter","Q"),R("quarter",7),ht("Q",X),pt("Q",(function(t,e){e[1]=3*(S(t)-1)})),V("D",["DD",2],"Do","date"),I("date","D"),R("date",9),ht("D",K),ht("DD",K,q),ht("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),pt(["D","DD"],2),pt("Do",(function(t,e){e[2]=S(t.match(K)[0])}));var ri=wt("Date",!0);V("DDD",["DDDD",3],"DDDo","dayOfYear"),I("dayOfYear","DDD"),R("dayOfYear",4),ht("DDD",et),ht("DDDD",Z),pt(["DDD","DDDD"],(function(t,e,i){i._dayOfYear=S(t)})),V("m",["mm",2],0,"minute"),I("minute","m"),R("minute",14),ht("m",K),ht("mm",K,q),pt(["m","mm"],4);var oi=wt("Minutes",!1);V("s",["ss",2],0,"second"),I("second","s"),R("second",15),ht("s",K),ht("ss",K,q),pt(["s","ss"],5);var si,ai=wt("Seconds",!1);for(V("S",0,0,(function(){return~~(this.millisecond()/100)})),V(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),V(0,["SSS",3],0,"millisecond"),V(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),V(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),V(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),V(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),V(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),V(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),I("millisecond","ms"),R("millisecond",16),ht("S",et,X),ht("SS",et,q),ht("SSS",et,Z),si="SSSS";si.length<=9;si+="S")ht(si,rt);function li(t,e){e[6]=S(1e3*("0."+t))}for(si="S";si.length<=9;si+="S")pt(si,li);var ui=wt("Milliseconds",!1);V("z",0,0,"zoneAbbr"),V("zz",0,0,"zoneName");var hi=_.prototype;function ci(t){return t}hi.add=Be,hi.calendar=function(t,e){var i=t||xe(),n=Ye(i,this).startOf("day"),o=r.calendarFormat(this,n)||"sameElse",s=e&&(P(e[o])?e[o].call(this,i):e[o]);return this.format(s||this.localeData().calendar(o,this,xe(i)))},hi.clone=function(){return new _(this)},hi.diff=function(t,e,i){var n,r,o;if(!this.isValid())return NaN;if(!(n=Ye(t,this)).isValid())return NaN;switch(r=6e4*(n.utcOffset()-this.utcOffset()),e=j(e)){case"year":o=qe(this,n)/12;break;case"month":o=qe(this,n);break;case"quarter":o=qe(this,n)/3;break;case"second":o=(this-n)/1e3;break;case"minute":o=(this-n)/6e4;break;case"hour":o=(this-n)/36e5;break;case"day":o=(this-n-r)/864e5;break;case"week":o=(this-n-r)/6048e5;break;default:o=this-n}return i?o:k(o)},hi.endOf=function(t){var e;if(void 0===(t=j(t))||"millisecond"===t||!this.isValid())return this;var i=this._isUTC?ti:Qe;switch(t){case"year":e=i(this.year()+1,0,1)-1;break;case"quarter":e=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=i(this.year(),this.month()+1,1)-1;break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=36e5-Ke(e+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":e=this._d.valueOf(),e+=6e4-Ke(e,6e4)-1;break;case"second":e=this._d.valueOf(),e+=1e3-Ke(e,1e3)-1}return this._d.setTime(e),r.updateOffset(this,!0),this},hi.format=function(t){t||(t=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var e=U(this,t);return this.localeData().postformat(e)},hi.from=function(t,e){return this.isValid()&&(w(t)&&t.isValid()||xe(t).isValid())?Ge({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},hi.fromNow=function(t){return this.from(xe(),t)},hi.to=function(t,e){return this.isValid()&&(w(t)&&t.isValid()||xe(t).isValid())?Ge({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},hi.toNow=function(t){return this.to(xe(),t)},hi.get=function(t){return P(this[t=j(t)])?this[t]():this},hi.invalidAt=function(){return p(this).overflow},hi.isAfter=function(t,e){var i=w(t)?t:xe(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=j(e)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(e).valueOf())},hi.isBefore=function(t,e){var i=w(t)?t:xe(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=j(e)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(e).valueOf()<i.valueOf())},hi.isBetween=function(t,e,i,n){var r=w(t)?t:xe(t),o=w(e)?e:xe(e);return!!(this.isValid()&&r.isValid()&&o.isValid())&&("("===(n=n||"()")[0]?this.isAfter(r,i):!this.isBefore(r,i))&&(")"===n[1]?this.isBefore(o,i):!this.isAfter(o,i))},hi.isSame=function(t,e){var i,n=w(t)?t:xe(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=j(e)||"millisecond")?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(e).valueOf()<=i&&i<=this.clone().endOf(e).valueOf()))},hi.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},hi.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},hi.isValid=function(){return m(this)},hi.lang=Je,hi.locale=Ze,hi.localeData=$e,hi.max=Me,hi.min=Oe,hi.parsingFlags=function(){return d({},p(this))},hi.set=function(t,e){if("object"==typeof t)for(var i=function(t){var e=[];for(var i in t)e.push({unit:i,priority:N[i]});return e.sort((function(t,e){return t.priority-e.priority})),e}(t=Y(t)),n=0;n<i.length;n++)this[i[n].unit](t[i[n].unit]);else if(P(this[t=j(t)]))return this[t](e);return this},hi.startOf=function(t){var e;if(void 0===(t=j(t))||"millisecond"===t||!this.isValid())return this;var i=this._isUTC?ti:Qe;switch(t){case"year":e=i(this.year(),0,1);break;case"quarter":e=i(this.year(),this.month()-this.month()%3,1);break;case"month":e=i(this.year(),this.month(),1);break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=i(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=Ke(e+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":e=this._d.valueOf(),e-=Ke(e,6e4);break;case"second":e=this._d.valueOf(),e-=Ke(e,1e3)}return this._d.setTime(e),r.updateOffset(this,!0),this},hi.subtract=Xe,hi.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},hi.toObject=function(){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()}},hi.toDate=function(){return new Date(this.valueOf())},hi.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,i=e?this.clone().utc():this;return i.year()<0||i.year()>9999?U(i,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):P(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(i,"Z")):U(i,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},hi.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var i="["+t+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r=e+'[")]';return this.format(i+n+"-MM-DD[T]HH:mm:ss.SSS"+r)},hi.toJSON=function(){return this.isValid()?this.toISOString():null},hi.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},hi.unix=function(){return Math.floor(this.valueOf()/1e3)},hi.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},hi.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},hi.year=_t,hi.isLeapYear=function(){return yt(this.year())},hi.weekYear=function(t){return ii.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},hi.isoWeekYear=function(t){return ii.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},hi.quarter=hi.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},hi.month=Pt,hi.daysInMonth=function(){return Dt(this.year(),this.month())},hi.week=hi.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},hi.isoWeek=hi.isoWeeks=function(t){var e=Rt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},hi.weeksInYear=function(){var t=this.localeData()._week;return Ft(this.year(),t.dow,t.doy)},hi.isoWeeksInYear=function(){return Ft(this.year(),1,4)},hi.date=ri,hi.day=hi.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=function(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-e,"d")):e},hi.weekday=function(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")},hi.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=function(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7},hi.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},hi.hour=hi.hours=Qt,hi.minute=hi.minutes=oi,hi.second=hi.seconds=ai,hi.millisecond=hi.milliseconds=ui,hi.utcOffset=function(t,e,i){var n,o=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=je(at,t)))return this}else Math.abs(t)<16&&!i&&(t*=60);return!this._isUTC&&e&&(n=Ne(this)),this._offset=t,this._isUTC=!0,null!=n&&this.add(n,"m"),o!==t&&(!e||this._changeInProgress?Ue(this,Ge(t-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Ne(this)},hi.utc=function(t){return this.utcOffset(0,t)},hi.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Ne(this),"m")),this},hi.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=je(st,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},hi.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?xe(t).utcOffset():0,(this.utcOffset()-t)%60==0)},hi.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},hi.isLocal=function(){return!!this.isValid()&&!this._isUTC},hi.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},hi.isUtc=Re,hi.isUTC=Re,hi.zoneAbbr=function(){return this._isUTC?"UTC":""},hi.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},hi.dates=O("dates accessor is deprecated. Use date instead.",ri),hi.months=O("months accessor is deprecated. Use month instead",Pt),hi.years=O("years accessor is deprecated. Use year instead",_t),hi.zone=O("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()})),hi.isDSTShifted=O("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var t={};if(y(t,this),(t=Se(t))._a){var e=t._isUTC?f(t._a):xe(t._a);this._isDSTShifted=this.isValid()&&D(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}));var di=A.prototype;function fi(t,e,i,n){var r=ae(),o=f().set(n,e);return r[i](o,t)}function pi(t,e,i){if(l(t)&&(e=t,t=void 0),t=t||"",null!=e)return fi(t,e,i,"month");var n,r=[];for(n=0;n<12;n++)r[n]=fi(t,n,i,"month");return r}function mi(t,e,i,n){"boolean"==typeof t?(l(e)&&(i=e,e=void 0),e=e||""):(i=e=t,t=!1,l(e)&&(i=e,e=void 0),e=e||"");var r,o=ae(),s=t?o._week.dow:0;if(null!=i)return fi(e,(i+s)%7,n,"day");var a=[];for(r=0;r<7;r++)a[r]=fi(e,(r+s)%7,n,"day");return a}di.calendar=function(t,e,i){var n=this._calendar[t]||this._calendar.sameElse;return P(n)?n.call(e,i):n},di.longDateFormat=function(t){var e=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return e||!i?e:(this._longDateFormat[t]=i.replace(/MMMM|MM|DD|dddd/g,(function(t){return t.slice(1)})),this._longDateFormat[t])},di.invalidDate=function(){return this._invalidDate},di.ordinal=function(t){return this._ordinal.replace("%d",t)},di.preparse=ci,di.postformat=ci,di.relativeTime=function(t,e,i,n){var r=this._relativeTime[i];return P(r)?r(t,e,i,n):r.replace(/%d/i,t)},di.pastFuture=function(t,e){var i=this._relativeTime[t>0?"future":"past"];return P(i)?i(e):i.replace(/%s/i,e)},di.set=function(t){var e,i;for(i in t)P(e=t[i])?this[i]=e:this["_"+i]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},di.months=function(t,e){return t?o(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||xt).test(e)?"format":"standalone"][t.month()]:o(this._months)?this._months:this._months.standalone},di.monthsShort=function(t,e){return t?o(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[xt.test(e)?"format":"standalone"][t.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},di.monthsParse=function(t,e,i){var n,r,o;if(this._monthsParseExact)return Tt.call(this,t,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(r=f([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[n]=new RegExp(o.replace(".",""),"i")),i&&"MMMM"===e&&this._longMonthsParse[n].test(t))return n;if(i&&"MMM"===e&&this._shortMonthsParse[n].test(t))return n;if(!i&&this._monthsParse[n].test(t))return n}},di.monthsRegex=function(t){return this._monthsParseExact?(c(this,"_monthsRegex")||Lt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=At),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},di.monthsShortRegex=function(t){return this._monthsParseExact?(c(this,"_monthsRegex")||Lt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=Et),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},di.week=function(t){return Rt(t,this._week.dow,this._week.doy).week},di.firstDayOfYear=function(){return this._week.doy},di.firstDayOfWeek=function(){return this._week.dow},di.weekdays=function(t,e){var i=o(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Ht(i,this._week.dow):t?i[t.day()]:i},di.weekdaysMin=function(t){return!0===t?Ht(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},di.weekdaysShort=function(t){return!0===t?Ht(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},di.weekdaysParse=function(t,e,i){var n,r,o;if(this._weekdaysParseExact)return Vt.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(r=f([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[n]=new RegExp(o.replace(".",""),"i")),i&&"dddd"===e&&this._fullWeekdaysParse[n].test(t))return n;if(i&&"ddd"===e&&this._shortWeekdaysParse[n].test(t))return n;if(i&&"dd"===e&&this._minWeekdaysParse[n].test(t))return n;if(!i&&this._weekdaysParse[n].test(t))return n}},di.weekdaysRegex=function(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||qt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=Ut),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},di.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||qt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Bt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},di.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||qt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Xt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},di.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},di.meridiem=function(t,e,i){return t>11?i?"pm":"PM":i?"am":"AM"},oe("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===S(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),r.lang=O("moment.lang is deprecated. Use moment.locale instead.",oe),r.langData=O("moment.langData is deprecated. Use moment.localeData instead.",ae);var vi=Math.abs;function gi(t,e,i,n){var r=Ge(e,i);return t._milliseconds+=n*r._milliseconds,t._days+=n*r._days,t._months+=n*r._months,t._bubble()}function yi(t){return t<0?Math.floor(t):Math.ceil(t)}function bi(t){return 4800*t/146097}function _i(t){return 146097*t/4800}function wi(t){return function(){return this.as(t)}}var ki=wi("ms"),Si=wi("s"),Di=wi("m"),xi=wi("h"),Oi=wi("d"),Mi=wi("w"),Ti=wi("M"),Ci=wi("Q"),Pi=wi("y");function Ei(t){return function(){return this.isValid()?this._data[t]:NaN}}var Ai=Ei("milliseconds"),Li=Ei("seconds"),Ii=Ei("minutes"),ji=Ei("hours"),Yi=Ei("days"),Ni=Ei("months"),Ri=Ei("years"),Fi=Math.round,Hi={ss:44,s:45,m:45,h:22,d:26,M:11};function Gi(t,e,i,n,r){return r.relativeTime(e||1,!!i,t,n)}function Wi(t,e,i){var n=Ge(t).abs(),r=Fi(n.as("s")),o=Fi(n.as("m")),s=Fi(n.as("h")),a=Fi(n.as("d")),l=Fi(n.as("M")),u=Fi(n.as("y")),h=r<=Hi.ss&&["s",r]||r<Hi.s&&["ss",r]||o<=1&&["m"]||o<Hi.m&&["mm",o]||s<=1&&["h"]||s<Hi.h&&["hh",s]||a<=1&&["d"]||a<Hi.d&&["dd",a]||l<=1&&["M"]||l<Hi.M&&["MM",l]||u<=1&&["y"]||["yy",u];return h[2]=e,h[3]=+t>0,h[4]=i,Gi.apply(null,h)}var zi=Math.abs;function Vi(t){return(t>0)-(t<0)||+t}function Ui(){if(!this.isValid())return this.localeData().invalidDate();var t,e,i=zi(this._milliseconds)/1e3,n=zi(this._days),r=zi(this._months);t=k(i/60),e=k(t/60),i%=60,t%=60;var o=k(r/12),s=r%=12,a=n,l=e,u=t,h=i?i.toFixed(3).replace(/\.?0+$/,""):"",c=this.asSeconds();if(!c)return"P0D";var d=c<0?"-":"",f=Vi(this._months)!==Vi(c)?"-":"",p=Vi(this._days)!==Vi(c)?"-":"",m=Vi(this._milliseconds)!==Vi(c)?"-":"";return d+"P"+(o?f+o+"Y":"")+(s?f+s+"M":"")+(a?p+a+"D":"")+(l||u||h?"T":"")+(l?m+l+"H":"")+(u?m+u+"M":"")+(h?m+h+"S":"")}var Bi=Pe.prototype;return Bi.isValid=function(){return this._isValid},Bi.abs=function(){var t=this._data;return this._milliseconds=vi(this._milliseconds),this._days=vi(this._days),this._months=vi(this._months),t.milliseconds=vi(t.milliseconds),t.seconds=vi(t.seconds),t.minutes=vi(t.minutes),t.hours=vi(t.hours),t.months=vi(t.months),t.years=vi(t.years),this},Bi.add=function(t,e){return gi(this,t,e,1)},Bi.subtract=function(t,e){return gi(this,t,e,-1)},Bi.as=function(t){if(!this.isValid())return NaN;var e,i,n=this._milliseconds;if("month"===(t=j(t))||"quarter"===t||"year"===t)switch(e=this._days+n/864e5,i=this._months+bi(e),t){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(e=this._days+Math.round(_i(this._months)),t){case"week":return e/7+n/6048e5;case"day":return e+n/864e5;case"hour":return 24*e+n/36e5;case"minute":return 1440*e+n/6e4;case"second":return 86400*e+n/1e3;case"millisecond":return Math.floor(864e5*e)+n;default:throw new Error("Unknown unit "+t)}},Bi.asMilliseconds=ki,Bi.asSeconds=Si,Bi.asMinutes=Di,Bi.asHours=xi,Bi.asDays=Oi,Bi.asWeeks=Mi,Bi.asMonths=Ti,Bi.asQuarters=Ci,Bi.asYears=Pi,Bi.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*S(this._months/12):NaN},Bi._bubble=function(){var t,e,i,n,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*yi(_i(a)+s),s=0,a=0),l.milliseconds=o%1e3,t=k(o/1e3),l.seconds=t%60,e=k(t/60),l.minutes=e%60,i=k(e/60),l.hours=i%24,s+=k(i/24),r=k(bi(s)),a+=r,s-=yi(_i(r)),n=k(a/12),a%=12,l.days=s,l.months=a,l.years=n,this},Bi.clone=function(){return Ge(this)},Bi.get=function(t){return t=j(t),this.isValid()?this[t+"s"]():NaN},Bi.milliseconds=Ai,Bi.seconds=Li,Bi.minutes=Ii,Bi.hours=ji,Bi.days=Yi,Bi.weeks=function(){return k(this.days()/7)},Bi.months=Ni,Bi.years=Ri,Bi.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),i=Wi(this,!t,e);return t&&(i=e.pastFuture(+this,i)),e.postformat(i)},Bi.toISOString=Ui,Bi.toString=Ui,Bi.toJSON=Ui,Bi.locale=Ze,Bi.localeData=$e,Bi.toIsoString=O("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ui),Bi.lang=Je,V("X",0,0,"unix"),V("x",0,0,"valueOf"),ht("x",ot),ht("X",/[+-]?\d+(\.\d{1,3})?/),pt("X",(function(t,e,i){i._d=new Date(1e3*parseFloat(t,10))})),pt("x",(function(t,e,i){i._d=new Date(S(t))})),r.version="2.24.0",e=xe,r.fn=hi,r.min=function(){var t=[].slice.call(arguments,0);return Te("isBefore",t)},r.max=function(){var t=[].slice.call(arguments,0);return Te("isAfter",t)},r.now=function(){return Date.now?Date.now():+new Date},r.utc=f,r.unix=function(t){return xe(1e3*t)},r.months=function(t,e){return pi(t,e,"months")},r.isDate=u,r.locale=oe,r.invalid=v,r.duration=Ge,r.isMoment=w,r.weekdays=function(t,e,i){return mi(t,e,i,"weekdays")},r.parseZone=function(){return xe.apply(null,arguments).parseZone()},r.localeData=ae,r.isDuration=Ee,r.monthsShort=function(t,e){return pi(t,e,"monthsShort")},r.weekdaysMin=function(t,e,i){return mi(t,e,i,"weekdaysMin")},r.defineLocale=se,r.updateLocale=function(t,e){if(null!=e){var i,n,r=te;null!=(n=re(t))&&(r=n._config),(i=new A(e=E(r,e))).parentLocale=ee[t],ee[t]=i,oe(t)}else null!=ee[t]&&(null!=ee[t].parentLocale?ee[t]=ee[t].parentLocale:null!=ee[t]&&delete ee[t]);return ee[t]},r.locales=function(){return M(ee)},r.weekdaysShort=function(t,e,i){return mi(t,e,i,"weekdaysShort")},r.normalizeUnits=j,r.relativeTimeRounding=function(t){return void 0===t?Fi:"function"==typeof t&&(Fi=t,!0)},r.relativeTimeThreshold=function(t,e){return void 0!==Hi[t]&&(void 0===e?Hi[t]:(Hi[t]=e,"s"===t&&(Hi.ss=e-1),!0))},r.calendarFormat=function(t,e){var i=t.diff(e,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},r.prototype=hi,r.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"},r}()})),o=(n((function(t,e){(function(t){function e(t,e,i,n){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?r[i][0]:r[i][1]}t.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})(r)})),n((function(t,e){(function(t){var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),n=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;t.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})(r)})),n((function(t,e){(function(t){t.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(t,e){switch(e){case"D":return t+(1===t?"er":"");default:case"M":case"Q":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}},week:{dow:1,doy:4}})})(r)})),n((function(t,e){(function(t){t.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(t){return(/^[0-9].+$/.test(t)?"tra":"in")+" "+t},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})(r)})),n((function(t,e){(function(t){t.defineLocale("ja",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(t){return"午後"===t},meridiem:function(t,e,i){return t<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(t){return t.week()<this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(t){return this.week()<t.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";default:return t}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})})(r)})),n((function(t,e){(function(t){var e="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),i="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),n=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],r=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;t.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(t,n){return t?/-MMM-/.test(n)?i[t.month()]:e[t.month()]:e},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})})(r)})),n((function(t,e){(function(t){var e="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),i="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");function n(t){return t%10<5&&t%10>1&&~~(t/10)%10!=1}function r(t,e,i){var r=t+" ";switch(i){case"ss":return r+(n(t)?"sekundy":"sekund");case"m":return e?"minuta":"minutę";case"mm":return r+(n(t)?"minuty":"minut");case"h":return e?"godzina":"godzinę";case"hh":return r+(n(t)?"godziny":"godzin");case"MM":return r+(n(t)?"miesiące":"miesięcy");case"yy":return r+(n(t)?"lata":"lat")}}t.defineLocale("pl",{months:function(t,n){return t?""===n?"("+i[t.month()]+"|"+e[t.month()]+")":/D MMMM/.test(n)?i[t.month()]:e[t.month()]:e},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:r,m:r,mm:r,h:r,hh:r,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:r,y:"rok",yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})(r)})),n((function(t,e){(function(t){function e(t,e,i){var n,r;return"m"===i?e?"минута":"минуту":t+" "+(n=+t,r={ss:e?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:e?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[i].split("_"),n%10==1&&n%100!=11?r[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?r[1]:r[2])}var i=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];t.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:i,longMonthsParse:i,shortMonthsParse:i,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(t){if(t.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(t){if(t.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:e,m:e,mm:e,h:"час",hh:e,d:"день",dd:e,M:"месяц",MM:e,y:"год",yy:e},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(t){return/^(дня|вечера)$/.test(t)},meridiem:function(t,e,i){return t<4?"ночи":t<12?"утра":t<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":return t+"-й";case"D":return t+"-го";case"w":case"W":return t+"-я";default:return t}},week:{dow:1,doy:4}})})(r)})),n((function(t,e){(function(t){function e(t,e,i){var n,r;return"m"===i?e?"хвилина":"хвилину":"h"===i?e?"година":"годину":t+" "+(n=+t,r={ss:e?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:e?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:e?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[i].split("_"),n%10==1&&n%100!=11?r[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?r[1]:r[2])}function i(t){return function(){return t+"о"+(11===this.hours()?"б":"")+"] LT"}}t.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(t,e){var i={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===t?i.nominative.slice(1,7).concat(i.nominative.slice(0,1)):t?i[/(\[[ВвУу]\]) ?dddd/.test(e)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(e)?"genitive":"nominative"][t.day()]:i.nominative},weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:i("[Сьогодні "),nextDay:i("[Завтра "),lastDay:i("[Вчора "),nextWeek:i("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return i("[Минулої] dddd [").call(this);case 1:case 2:case 4:return i("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:e,m:e,mm:e,h:"годину",hh:e,d:"день",dd:e,M:"місяць",MM:e,y:"рік",yy:e},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(t){return/^(дня|вечора)$/.test(t)},meridiem:function(t,e,i){return t<4?"ночі":t<12?"ранку":t<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t+"-й";case"D":return t+"-го";default:return t}},week:{dow:1,doy:7}})})(r)})),"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{});function s(t,e){return t(e={exports:{}},e.exports),e.exports}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")(),u=function(t){try{return!!t()}catch(t){return!0}},h=!u((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),c={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,f={f:d&&!c.call({1:2},1)?function(t){var e=d(this,t);return!!e&&e.enumerable}:c},p=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},m={}.toString,v=function(t){return m.call(t).slice(8,-1)},g="".split,y=u((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==v(t)?g.call(t,""):Object(t)}:Object,b=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},_=function(t){return y(b(t))},w=function(t){return"object"==typeof t?null!==t:"function"==typeof t},k=function(t,e){if(!w(t))return t;var i,n;if(e&&"function"==typeof(i=t.toString)&&!w(n=i.call(t)))return n;if("function"==typeof(i=t.valueOf)&&!w(n=i.call(t)))return n;if(!e&&"function"==typeof(i=t.toString)&&!w(n=i.call(t)))return n;throw TypeError("Can't convert object to primitive value")},S={}.hasOwnProperty,D=function(t,e){return S.call(t,e)},x=l.document,O=w(x)&&w(x.createElement),M=function(t){return O?x.createElement(t):{}},T=!h&&!u((function(){return 7!=Object.defineProperty(M("div"),"a",{get:function(){return 7}}).a})),C=Object.getOwnPropertyDescriptor,P={f:h?C:function(t,e){if(t=_(t),e=k(e,!0),T)try{return C(t,e)}catch(t){}if(D(t,e))return p(!f.f.call(t,e),t[e])}},E=/#|\.prototype\./,A=function(t,e){var i=I[L(t)];return i==Y||i!=j&&("function"==typeof e?u(e):!!e)},L=A.normalize=function(t){return String(t).replace(E,".").toLowerCase()},I=A.data={},j=A.NATIVE="N",Y=A.POLYFILL="P",N=A,R={},F=function(t,e,i){if(function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function")}(t),void 0===e)return t;switch(i){case 0:return function(){return t.call(e)};case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,r){return t.call(e,i,n,r)}}return function(){return t.apply(e,arguments)}},H=function(t){if(!w(t))throw TypeError(String(t)+" is not an object");return t},G=Object.defineProperty,W={f:h?G:function(t,e,i){if(H(t),e=k(e,!0),H(i),T)try{return G(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(t[e]=i.value),t}},z=h?function(t,e,i){return W.f(t,e,p(1,i))}:function(t,e,i){return t[e]=i,t},V=P.f,U=function(t){var e=function(e,i,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,i)}return new t(e,i,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e},B=function(t,e){var i,n,r,o,s,a,u,h,c=t.target,d=t.global,f=t.stat,p=t.proto,m=d?l:f?l[c]:(l[c]||{}).prototype,v=d?R:R[c]||(R[c]={}),g=v.prototype;for(r in e)i=!N(d?r:c+(f?".":"#")+r,t.forced)&&m&&D(m,r),s=v[r],i&&(a=t.noTargetGet?(h=V(m,r))&&h.value:m[r]),o=i&&a?a:e[r],i&&typeof s==typeof o||(u=t.bind&&i?F(o,l):t.wrap&&i?U(o):p&&"function"==typeof o?F(Function.call,o):o,(t.sham||o&&o.sham||s&&s.sham)&&z(u,"sham",!0),v[r]=u,p&&(D(R,n=c+"Prototype")||z(R,n,{}),R[n][r]=o,t.real&&g&&!g[r]&&z(g,r,o)))},X=Array.isArray||function(t){return"Array"==v(t)};B({target:"Array",stat:!0},{isArray:X});var q=R.Array.isArray,Z=q;var J=function(t){if(Z(t))return t},$={},K=l["__core-js_shared__"]||function(t,e){try{z(l,t,e)}catch(i){l[t]=e}return e}("__core-js_shared__",{}),Q=Function.toString;"function"!=typeof K.inspectSource&&(K.inspectSource=function(t){return Q.call(t)});var tt,et,it,nt=K.inspectSource,rt=l.WeakMap,ot="function"==typeof rt&&/native code/.test(nt(rt)),st=s((function(t){(t.exports=function(t,e){return K[t]||(K[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.0",mode:"pure",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),at=0,lt=Math.random(),ut=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++at+lt).toString(36)},ht=st("keys"),ct=function(t){return ht[t]||(ht[t]=ut(t))},dt={},ft=l.WeakMap;if(ot){var pt=new ft,mt=pt.get,vt=pt.has,gt=pt.set;tt=function(t,e){return gt.call(pt,t,e),e},et=function(t){return mt.call(pt,t)||{}},it=function(t){return vt.call(pt,t)}}else{var yt=ct("state");dt[yt]=!0,tt=function(t,e){return z(t,yt,e),e},et=function(t){return D(t,yt)?t[yt]:{}},it=function(t){return D(t,yt)}}var bt,_t,wt,kt={set:tt,get:et,has:it,enforce:function(t){return it(t)?et(t):tt(t,{})},getterFor:function(t){return function(e){var i;if(!w(e)||(i=et(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return i}}},St=function(t){return Object(b(t))},Dt=!u((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),xt=ct("IE_PROTO"),Ot=Object.prototype,Mt=Dt?Object.getPrototypeOf:function(t){return t=St(t),D(t,xt)?t[xt]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Ot:null},Tt=!!Object.getOwnPropertySymbols&&!u((function(){return!String(Symbol())})),Ct=Tt&&!Symbol.sham&&"symbol"==typeof Symbol(),Pt=st("wks"),Et=l.Symbol,At=Ct?Et:ut,Lt=function(t){return D(Pt,t)||(Tt&&D(Et,t)?Pt[t]=Et[t]:Pt[t]=At("Symbol."+t)),Pt[t]},It=(Lt("iterator"),!1);[].keys&&("next"in(wt=[].keys())?(_t=Mt(Mt(wt)))!==Object.prototype&&(bt=_t):It=!0),null==bt&&(bt={});var jt,Yt={IteratorPrototype:bt,BUGGY_SAFARI_ITERATORS:It},Nt=Math.ceil,Rt=Math.floor,Ft=function(t){return isNaN(t=+t)?0:(t>0?Rt:Nt)(t)},Ht=Math.min,Gt=function(t){return t>0?Ht(Ft(t),9007199254740991):0},Wt=Math.max,zt=Math.min,Vt=function(t,e){var i=Ft(t);return i<0?Wt(i+e,0):zt(i,e)},Ut=function(t){return function(e,i,n){var r,o=_(e),s=Gt(o.length),a=Vt(n,s);if(t&&i!=i){for(;s>a;)if((r=o[a++])!=r)return!0}else for(;s>a;a++)if((t||a in o)&&o[a]===i)return t||a||0;return!t&&-1}},Bt={includes:Ut(!0),indexOf:Ut(!1)},Xt=Bt.indexOf,qt=function(t,e){var i,n=_(t),r=0,o=[];for(i in n)!D(dt,i)&&D(n,i)&&o.push(i);for(;e.length>r;)D(n,i=e[r++])&&(~Xt(o,i)||o.push(i));return o},Zt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Jt=Object.keys||function(t){return qt(t,Zt)},$t=h?Object.defineProperties:function(t,e){H(t);for(var i,n=Jt(e),r=n.length,o=0;r>o;)W.f(t,i=n[o++],e[i]);return t},Kt=function(t){return"function"==typeof t?t:void 0},Qt=function(t,e){return arguments.length<2?Kt(R[t])||Kt(l[t]):R[t]&&R[t][e]||l[t]&&l[t][e]},te=Qt("document","documentElement"),ee=ct("IE_PROTO"),ie=function(){},ne=function(t){return"<script>"+t+"<\/script>"},re=function(){try{jt=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;re=jt?function(t){t.write(ne("")),t.close();var e=t.parentWindow.Object;return t=null,e}(jt):((e=M("iframe")).style.display="none",te.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(ne("document.F=Object")),t.close(),t.F);for(var i=Zt.length;i--;)delete re.prototype[Zt[i]];return re()};dt[ee]=!0;var oe=Object.create||function(t,e){var i;return null!==t?(ie.prototype=H(t),i=new ie,ie.prototype=null,i[ee]=t):i=re(),void 0===e?i:$t(i,e)},se={};se[Lt("toStringTag")]="z";var ae="[object z]"===String(se),le=Lt("toStringTag"),ue="Arguments"==v(function(){return arguments}()),he=ae?v:function(t){var e,i,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),le))?i:ue?v(e):"Object"==(n=v(e))&&"function"==typeof e.callee?"Arguments":n},ce=ae?{}.toString:function(){return"[object "+he(this)+"]"},de=W.f,fe=Lt("toStringTag"),pe=function(t,e,i,n){if(t){var r=i?t:t.prototype;D(r,fe)||de(r,fe,{configurable:!0,value:e}),n&&!ae&&z(r,"toString",ce)}},me=Yt.IteratorPrototype,ve=function(){return this},ge=(Object.setPrototypeOf||"__proto__"in{}&&function(){var t,e=!1,i={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(i,[]),e=i instanceof Array}catch(t){}}(),function(t,e,i,n){n&&n.enumerable?t[e]=i:z(t,e,i)}),ye=Yt.IteratorPrototype,be=Yt.BUGGY_SAFARI_ITERATORS,_e=Lt("iterator"),we=function(){return this},ke=function(t,e,i,n,r,o,s){!function(t,e,i){var n=e+" Iterator";t.prototype=oe(me,{next:p(1,i)}),pe(t,n,!1,!0),$[n]=ve}(i,e,n);var a,l,u,h=function(t){if(t===r&&v)return v;if(!be&&t in f)return f[t];switch(t){case"keys":case"values":case"entries":return function(){return new i(this,t)}}return function(){return new i(this)}},c=e+" Iterator",d=!1,f=t.prototype,m=f[_e]||f["@@iterator"]||r&&f[r],v=!be&&m||h(r),g="Array"==e&&f.entries||m;if(g&&(a=Mt(g.call(new t)),ye!==Object.prototype&&a.next&&(pe(a,c,!0,!0),$[c]=we)),"values"==r&&m&&"values"!==m.name&&(d=!0,v=function(){return m.call(this)}),s&&f[_e]!==v&&z(f,_e,v),$[e]=v,r)if(l={values:h("values"),keys:o?v:h("keys"),entries:h("entries")},s)for(u in l)!be&&!d&&u in f||ge(f,u,l[u]);else B({target:e,proto:!0,forced:be||d},l);return l},Se=kt.set,De=kt.getterFor("Array Iterator");ke(Array,"Array",(function(t,e){Se(this,{type:"Array Iterator",target:_(t),index:0,kind:e})}),(function(){var t=De(this),e=t.target,i=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==i?{value:n,done:!1}:"values"==i?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values");$.Arguments=$.Array;var xe=Lt("toStringTag");for(var Oe in{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}){var Me=l[Oe],Te=Me&&Me.prototype;Te&&!Te[xe]&&z(Te,xe,Oe),$[Oe]=$.Array}var Ce=function(t){return function(e,i){var n,r,o=String(b(e)),s=Ft(i),a=o.length;return s<0||s>=a?t?"":void 0:(n=o.charCodeAt(s))<55296||n>56319||s+1===a||(r=o.charCodeAt(s+1))<56320||r>57343?t?o.charAt(s):n:t?o.slice(s,s+2):r-56320+(n-55296<<10)+65536}},Pe={codeAt:Ce(!1),charAt:Ce(!0)}.charAt,Ee=kt.set,Ae=kt.getterFor("String Iterator");ke(String,"String",(function(t){Ee(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=Ae(this),i=e.string,n=e.index;return n>=i.length?{value:void 0,done:!0}:(t=Pe(i,n),e.index+=t.length,{value:t,done:!1})}));var Le=Lt("iterator"),Ie=function(t){if(null!=t)return t[Le]||t["@@iterator"]||$[he(t)]},je=function(t){var e=Ie(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return H(e.call(t))},Ye=Lt("iterator"),Ne=function(t){var e=Object(t);return void 0!==e[Ye]||"@@iterator"in e||$.hasOwnProperty(he(e))};var Re=function(t,e){if(Ne(Object(t))||"[object Arguments]"===Object.prototype.toString.call(t)){var i=[],n=!0,r=!1,o=void 0;try{for(var s,a=je(t);!(n=(s=a.next()).done)&&(i.push(s.value),!e||i.length!==e);n=!0);}catch(t){r=!0,o=t}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}return i}};var Fe=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")};var He=function(t,e){return J(t)||Re(t,e)||Fe()};B({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}});var Ge=R.Date.now;function We(t){var e=function(){for(var t=ze(),e=t(" "),i=t(" "),n=t(" "),r=0;r<arguments.length;r++)(e-=t(r<0||arguments.length<=r?void 0:arguments[r]))<0&&(e+=1),(i-=t(r<0||arguments.length<=r?void 0:arguments[r]))<0&&(i+=1),(n-=t(r<0||arguments.length<=r?void 0:arguments[r]))<0&&(n+=1);return[e,i,n]}(t),i=He(e,3),n=i[0],r=i[1],o=i[2],s=1,a=function(){var t=2091639*n+2.3283064365386963e-10*s;return n=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}function ze(){var t=4022871197;return function(e){for(var i=e.toString(),n=0;n<i.length;n++){var r=.02519603282416938*(t+=i.charCodeAt(n));r-=t=r>>>0,t=(r*=t)>>>0,t+=4294967296*(r-=t)}return 2.3283064365386963e-10*(t>>>0)}}B({target:"Object",stat:!0,forced:!h,sham:!h},{defineProperty:W.f});var Ve=s((function(t){var e=R.Object,i=t.exports=function(t,i,n){return e.defineProperty(t,i,n)};e.defineProperty.sham&&(i.sham=!0)})),Ue=Ve;B({target:"Object",stat:!0,forced:!h,sham:!h},{defineProperties:$t});var Be=s((function(t){var e=R.Object,i=t.exports=function(t,i){return e.defineProperties(t,i)};e.defineProperties.sham&&(i.sham=!0)})),Xe=Zt.concat("length","prototype"),qe={f:Object.getOwnPropertyNames||function(t){return qt(t,Xe)}},Ze={f:Object.getOwnPropertySymbols},Je=Qt("Reflect","ownKeys")||function(t){var e=qe.f(H(t)),i=Ze.f;return i?e.concat(i(t)):e},$e=function(t,e,i){var n=k(e);n in t?W.f(t,n,p(0,i)):t[n]=i};B({target:"Object",stat:!0,sham:!h},{getOwnPropertyDescriptors:function(t){for(var e,i,n=_(t),r=P.f,o=Je(n),s={},a=0;o.length>a;)void 0!==(i=r(n,e=o[a++]))&&$e(s,e,i);return s}});var Ke=R.Object.getOwnPropertyDescriptors,Qe=P.f,ti=u((function(){Qe(1)}));B({target:"Object",stat:!0,forced:!h||ti,sham:!h},{getOwnPropertyDescriptor:function(t,e){return Qe(_(t),e)}});var ei=s((function(t){var e=R.Object,i=t.exports=function(t,i){return e.getOwnPropertyDescriptor(t,i)};e.getOwnPropertyDescriptor.sham&&(i.sham=!0)})),ii=qe.f,ni={}.toString,ri="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],oi={f:function(t){return ri&&"[object Window]"==ni.call(t)?function(t){try{return ii(t)}catch(t){return ri.slice()}}(t):ii(_(t))}},si={f:Lt},ai=W.f,li=function(t){var e=R.Symbol||(R.Symbol={});D(e,t)||ai(e,t,{value:si.f(t)})},ui=Lt("species"),hi=function(t,e){var i;return X(t)&&("function"!=typeof(i=t.constructor)||i!==Array&&!X(i.prototype)?w(i)&&null===(i=i[ui])&&(i=void 0):i=void 0),new(void 0===i?Array:i)(0===e?0:e)},ci=[].push,di=function(t){var e=1==t,i=2==t,n=3==t,r=4==t,o=6==t,s=5==t||o;return function(a,l,u,h){for(var c,d,f=St(a),p=y(f),m=F(l,u,3),v=Gt(p.length),g=0,b=h||hi,_=e?b(a,v):i?b(a,0):void 0;v>g;g++)if((s||g in p)&&(d=m(c=p[g],g,f),t))if(e)_[g]=d;else if(d)switch(t){case 3:return!0;case 5:return c;case 6:return g;case 2:ci.call(_,c)}else if(r)return!1;return o?-1:n||r?r:_}},fi={forEach:di(0),map:di(1),filter:di(2),some:di(3),every:di(4),find:di(5),findIndex:di(6)},pi=fi.forEach,mi=ct("hidden"),vi=Lt("toPrimitive"),gi=kt.set,yi=kt.getterFor("Symbol"),bi=Object.prototype,_i=l.Symbol,wi=Qt("JSON","stringify"),ki=P.f,Si=W.f,Di=oi.f,xi=f.f,Oi=st("symbols"),Mi=st("op-symbols"),Ti=st("string-to-symbol-registry"),Ci=st("symbol-to-string-registry"),Pi=st("wks"),Ei=l.QObject,Ai=!Ei||!Ei.prototype||!Ei.prototype.findChild,Li=h&&u((function(){return 7!=oe(Si({},"a",{get:function(){return Si(this,"a",{value:7}).a}})).a}))?function(t,e,i){var n=ki(bi,e);n&&delete bi[e],Si(t,e,i),n&&t!==bi&&Si(bi,e,n)}:Si,Ii=function(t,e){var i=Oi[t]=oe(_i.prototype);return gi(i,{type:"Symbol",tag:t,description:e}),h||(i.description=e),i},ji=Tt&&"symbol"==typeof _i.iterator?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof _i},Yi=function(t,e,i){t===bi&&Yi(Mi,e,i),H(t);var n=k(e,!0);return H(i),D(Oi,n)?(i.enumerable?(D(t,mi)&&t[mi][n]&&(t[mi][n]=!1),i=oe(i,{enumerable:p(0,!1)})):(D(t,mi)||Si(t,mi,p(1,{})),t[mi][n]=!0),Li(t,n,i)):Si(t,n,i)},Ni=function(t,e){H(t);var i=_(e),n=Jt(i).concat(Gi(i));return pi(n,(function(e){h&&!Ri.call(i,e)||Yi(t,e,i[e])})),t},Ri=function(t){var e=k(t,!0),i=xi.call(this,e);return!(this===bi&&D(Oi,e)&&!D(Mi,e))&&(!(i||!D(this,e)||!D(Oi,e)||D(this,mi)&&this[mi][e])||i)},Fi=function(t,e){var i=_(t),n=k(e,!0);if(i!==bi||!D(Oi,n)||D(Mi,n)){var r=ki(i,n);return!r||!D(Oi,n)||D(i,mi)&&i[mi][n]||(r.enumerable=!0),r}},Hi=function(t){var e=Di(_(t)),i=[];return pi(e,(function(t){D(Oi,t)||D(dt,t)||i.push(t)})),i},Gi=function(t){var e=t===bi,i=Di(e?Mi:_(t)),n=[];return pi(i,(function(t){!D(Oi,t)||e&&!D(bi,t)||n.push(Oi[t])})),n};if(Tt||(ge((_i=function(){if(this instanceof _i)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=ut(t),i=function(t){this===bi&&i.call(Mi,t),D(this,mi)&&D(this[mi],e)&&(this[mi][e]=!1),Li(this,e,p(1,t))};return h&&Ai&&Li(bi,e,{configurable:!0,set:i}),Ii(e,t)}).prototype,"toString",(function(){return yi(this).tag})),f.f=Ri,W.f=Yi,P.f=Fi,qe.f=oi.f=Hi,Ze.f=Gi,h&&Si(_i.prototype,"description",{configurable:!0,get:function(){return yi(this).description}})),Ct||(si.f=function(t){return Ii(Lt(t),t)}),B({global:!0,wrap:!0,forced:!Tt,sham:!Tt},{Symbol:_i}),pi(Jt(Pi),(function(t){li(t)})),B({target:"Symbol",stat:!0,forced:!Tt},{for:function(t){var e=String(t);if(D(Ti,e))return Ti[e];var i=_i(e);return Ti[e]=i,Ci[i]=e,i},keyFor:function(t){if(!ji(t))throw TypeError(t+" is not a symbol");if(D(Ci,t))return Ci[t]},useSetter:function(){Ai=!0},useSimple:function(){Ai=!1}}),B({target:"Object",stat:!0,forced:!Tt,sham:!h},{create:function(t,e){return void 0===e?oe(t):Ni(oe(t),e)},defineProperty:Yi,defineProperties:Ni,getOwnPropertyDescriptor:Fi}),B({target:"Object",stat:!0,forced:!Tt},{getOwnPropertyNames:Hi,getOwnPropertySymbols:Gi}),B({target:"Object",stat:!0,forced:u((function(){Ze.f(1)}))},{getOwnPropertySymbols:function(t){return Ze.f(St(t))}}),wi){var Wi=!Tt||u((function(){var t=_i();return"[null]"!=wi([t])||"{}"!=wi({a:t})||"{}"!=wi(Object(t))}));B({target:"JSON",stat:!0,forced:Wi},{stringify:function(t,e,i){for(var n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e,(w(e)||void 0!==t)&&!ji(t))return X(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!ji(e))return e}),r[1]=e,wi.apply(null,r)}})}_i.prototype[vi]||z(_i.prototype,vi,_i.prototype.valueOf),pe(_i,"Symbol"),dt[mi]=!0;var zi=R.Object.getOwnPropertySymbols;B({target:"Object",stat:!0,sham:!h},{create:oe});var Vi=R.Object,Ui=function(t,e){return Vi.create(t,e)},Bi=Ve;var Xi=function(t,e,i){return e in t?Bi(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t},qi=u((function(){Jt(1)}));B({target:"Object",stat:!0,forced:qi},{keys:function(t){return Jt(St(t))}});var Zi,Ji=R.Object.keys,$i="\t\n\v\f\r \u2028\u2029\ufeff",Ki="["+$i+"]",Qi=RegExp("^"+Ki+Ki+"*"),tn=RegExp(Ki+Ki+"*$"),en=function(t){return function(e){var i=String(b(e));return 1&t&&(i=i.replace(Qi,"")),2&t&&(i=i.replace(tn,"")),i}},nn={start:en(1),end:en(2),trim:en(3)},rn=nn.trim;B({target:"String",proto:!0,forced:(Zi="trim",u((function(){return!!$i[Zi]()||"
"!="
"[Zi]()||$i[Zi].name!==Zi})))},{trim:function(){return rn(this)}});var on=function(t){return R[t+"Prototype"]},sn=on("String").trim,an=String.prototype,ln=function(t){var e=t.trim;return"string"==typeof t||t===an||t instanceof String&&e===an.trim?sn:e},un=function(t,e){var i=[][t];return!i||!u((function(){i.call(null,e||function(){throw 1},1)}))},hn=fi.forEach,cn=un("forEach")?function(t){return hn(this,t,arguments.length>1?arguments[1]:void 0)}:[].forEach;B({target:"Array",proto:!0,forced:[].forEach!=cn},{forEach:cn});var dn,fn,pn=on("Array").forEach,mn=Array.prototype,vn={DOMTokenList:!0,NodeList:!0},gn=function(t){var e=t.forEach;return t===mn||t instanceof Array&&e===mn.forEach||vn.hasOwnProperty(he(t))?pn:e},yn=Qt("navigator","userAgent")||"",bn=l.process,_n=bn&&bn.versions,wn=_n&&_n.v8;wn?fn=(dn=wn.split("."))[0]+dn[1]:yn&&(!(dn=yn.match(/Edge\/(\d+)/))||dn[1]>=74)&&(dn=yn.match(/Chrome\/(\d+)/))&&(fn=dn[1]);var kn=fn&&+fn,Sn=Lt("species"),Dn=function(t){return kn>=51||!u((function(){var e=[];return(e.constructor={})[Sn]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},xn=fi.map,On=Dn("map"),Mn=On&&!u((function(){[].map.call({length:-1,0:1},(function(t){throw t}))}));B({target:"Array",proto:!0,forced:!On||!Mn},{map:function(t){return xn(this,t,arguments.length>1?arguments[1]:void 0)}});var Tn=on("Array").map,Cn=Array.prototype,Pn=function(t){var e=t.map;return t===Cn||t instanceof Array&&e===Cn.map?Tn:e},En=nn.trim,An=l.parseInt,Ln=/^[+-]?0[Xx]/,In=8!==An($i+"08")||22!==An($i+"0x16")?function(t,e){var i=En(String(t));return An(i,e>>>0||(Ln.test(i)?16:10))}:An;B({global:!0,forced:parseInt!=In},{parseInt:In});var jn=R.parseInt,Yn=f.f,Nn=function(t){return function(e){for(var i,n=_(e),r=Jt(n),o=r.length,s=0,a=[];o>s;)i=r[s++],h&&!Yn.call(n,i)||a.push(t?[i,n[i]]:n[i]);return a}},Rn={entries:Nn(!0),values:Nn(!1)}.values;B({target:"Object",stat:!0},{values:function(t){return Rn(t)}});var Fn=R.Object.values,Hn=fi.filter,Gn=Dn("filter"),Wn=Gn&&!u((function(){[].filter.call({length:-1,0:1},(function(t){throw t}))}));B({target:"Array",proto:!0,forced:!Gn||!Wn},{filter:function(t){return Hn(this,t,arguments.length>1?arguments[1]:void 0)}});var zn=on("Array").filter,Vn=Array.prototype,Un=function(t){var e=t.filter;return t===Vn||t instanceof Array&&e===Vn.filter?zn:e},Bn=Lt("isConcatSpreadable"),Xn=kn>=51||!u((function(){var t=[];return t[Bn]=!1,t.concat()[0]!==t})),qn=Dn("concat"),Zn=function(t){if(!w(t))return!1;var e=t[Bn];return void 0!==e?!!e:X(t)};B({target:"Array",proto:!0,forced:!Xn||!qn},{concat:function(t){var e,i,n,r,o,s=St(this),a=hi(s,0),l=0;for(e=-1,n=arguments.length;e<n;e++)if(o=-1===e?s:arguments[e],Zn(o)){if(l+(r=Gt(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(i=0;i<r;i++,l++)i in o&&$e(a,l,o[i])}else{if(l>=9007199254740991)throw TypeError("Maximum allowed index exceeded");$e(a,l++,o)}return a.length=l,a}});var Jn=on("Array").concat,$n=Array.prototype,Kn=function(t){var e=t.concat;return t===$n||t instanceof Array&&e===$n.concat?Jn:e};var Qn=function(t){if(Z(t)){for(var e=0,i=new Array(t.length);e<t.length;e++)i[e]=t[e];return i}},tr=function(t,e,i,n){try{return n?e(H(i)[0],i[1]):e(i)}catch(e){var r=t.return;throw void 0!==r&&H(r.call(t)),e}},er=Lt("iterator"),ir=Array.prototype,nr=function(t){return void 0!==t&&($.Array===t||ir[er]===t)},rr=Lt("iterator"),or=!1;try{var sr=0,ar={next:function(){return{done:!!sr++}},return:function(){or=!0}};ar[rr]=function(){return this},Array.from(ar,(function(){throw 2}))}catch(t){}var lr=!function(t,e){if(!e&&!or)return!1;var i=!1;try{var n={};n[rr]=function(){return{next:function(){return{done:i=!0}}}},t(n)}catch(t){}return i}((function(t){Array.from(t)}));B({target:"Array",stat:!0,forced:lr},{from:function(t){var e,i,n,r,o,s=St(t),a="function"==typeof this?this:Array,l=arguments.length,u=l>1?arguments[1]:void 0,h=void 0!==u,c=0,d=Ie(s);if(h&&(u=F(u,l>2?arguments[2]:void 0,2)),null==d||a==Array&&nr(d))for(i=new a(e=Gt(s.length));e>c;c++)$e(i,c,h?u(s[c],c):s[c]);else for(o=(r=d.call(s)).next,i=new a;!(n=o.call(r)).done;c++)$e(i,c,h?tr(r,u,[n.value,c],!0):n.value);return i.length=c,i}});var ur=R.Array.from;var hr=function(t){if(Ne(Object(t))||"[object Arguments]"===Object.prototype.toString.call(t))return ur(t)};var cr=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")};var dr=function(t){return Qn(t)||hr(t)||cr()},fr=Lt("species"),pr=[].slice,mr=Math.max;B({target:"Array",proto:!0,forced:!Dn("slice")},{slice:function(t,e){var i,n,r,o=_(this),s=Gt(o.length),a=Vt(t,s),l=Vt(void 0===e?s:e,s);if(X(o)&&("function"!=typeof(i=o.constructor)||i!==Array&&!X(i.prototype)?w(i)&&null===(i=i[fr])&&(i=void 0):i=void 0,i===Array||void 0===i))return pr.call(o,a,l);for(n=new(void 0===i?Array:i)(mr(l-a,0)),r=0;a<l;a++,r++)a in o&&$e(n,r,o[a]);return n.length=r,n}});var vr=on("Array").slice,gr=Array.prototype,yr=function(t){var e=t.slice;return t===gr||t instanceof Array&&e===gr.slice?vr:e},br=u((function(){Mt(1)}));B({target:"Object",stat:!0,forced:br,sham:!Dt},{getPrototypeOf:function(t){return Mt(St(t))}});var _r=R.Object.getPrototypeOf,wr=Bt.indexOf,kr=[].indexOf,Sr=!!kr&&1/[1].indexOf(1,-0)<0,Dr=un("indexOf");B({target:"Array",proto:!0,forced:Sr||Dr},{indexOf:function(t){return Sr?kr.apply(this,arguments)||0:wr(this,t,arguments.length>1?arguments[1]:void 0)}});var xr=on("Array").indexOf,Or=Array.prototype,Mr=function(t){var e=t.indexOf;return t===Or||t instanceof Array&&e===Or.indexOf?xr:e},Tr=q,Cr=Object.assign,Pr=Object.defineProperty,Er=!Cr||u((function(){if(h&&1!==Cr({b:1},Cr(Pr({},"a",{enumerable:!0,get:function(){Pr(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},i=Symbol();return t[i]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=Cr({},t)[i]||"abcdefghijklmnopqrst"!=Jt(Cr({},e)).join("")}))?function(t,e){for(var i=St(t),n=arguments.length,r=1,o=Ze.f,s=f.f;n>r;)for(var a,l=y(arguments[r++]),u=o?Jt(l).concat(o(l)):Jt(l),c=u.length,d=0;c>d;)a=u[d++],h&&!s.call(l,a)||(i[a]=l[a]);return i}:Cr;B({target:"Object",stat:!0,forced:Object.assign!==Er},{assign:Er});var Ar=R.Object.assign;li("iterator");var Lr=si.f("iterator");li("asyncIterator"),li("hasInstance"),li("isConcatSpreadable"),li("match"),li("matchAll"),li("replace"),li("search"),li("species"),li("split"),li("toPrimitive"),li("toStringTag"),li("unscopables"),pe(Math,"Math",!0),pe(l.JSON,"JSON",!0);var Ir=R.Symbol;li("asyncDispose"),li("dispose"),li("observable"),li("patternMatch"),li("replaceAll");for(var jr=Ir,Yr=s((function(t){function e(i){return t.exports=e="function"==typeof jr&&"symbol"==typeof Lr?function(t){return typeof t}:function(t){return t&&"function"==typeof jr&&t.constructor===jr&&t!==jr.prototype?"symbol":typeof t},e(i)}t.exports=e})),Nr=[],Rr=0;Rr<256;Rr++)Nr[Rr]=(Rr+256).toString(16).substr(1);function Fr(t,e){var i=e||0,n=Nr;return n[t[i++]]+n[t[i++]]+n[t[i++]]+n[t[i++]]+"-"+n[t[i++]]+n[t[i++]]+"-"+n[t[i++]]+n[t[i++]]+"-"+n[t[i++]]+n[t[i++]]+"-"+n[t[i++]]+n[t[i++]]+n[t[i++]]+n[t[i++]]+n[t[i++]]+n[t[i++]]}for(var Hr=function(){if("undefined"!=typeof crypto&&crypto.getRandomValues){var t=new Uint8Array(16);return function(){return crypto.getRandomValues(t),t}}var e=new Array(16);return function(){for(var t,i=0;i<16;i++)0==(3&i)&&(t=4294967296*Math.random()),e[i]=t>>>((3&i)<<3)&255;return e}}(),Gr=[],Wr=0;Wr<256;Wr++)Gr[Wr]=(Wr+256).toString(16).substr(1);var zr=Hr();zr[0],zr[1],zr[2],zr[3],zr[4],zr[5],zr[6],zr[7];function Vr(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,n=e&&i||0;"string"==typeof t&&(e="binary"===t?new Array(16):void 0,t={});var r=t.random||(t.rng||Hr)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e)for(var o=0;o<16;o++)e[n+o]=r[o];return e||Fr(r)}function Ur(t,e){var i=Ji(t);if(zi){var n=zi(t);e&&(n=Un(n).call(n,(function(e){return ei(t,e).enumerable}))),i.push.apply(i,n)}return i}var Br=/^\/?Date\((-?\d+)/i,Xr=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,qr=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,Zr=/^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,Jr=/^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 $r(t){return t instanceof Number||"number"==typeof t}function Kr(t){if(t)for(;!0===t.hasChildNodes();){var e=t.firstChild;e&&(Kr(e),t.removeChild(e))}}function Qr(t){return t instanceof String||"string"==typeof t}function to(t){return"object"===Yr(t)&&null!==t}function eo(t){if(t instanceof Date)return!0;if(Qr(t)){if(Br.exec(t))return!0;if(!isNaN(Date.parse(t)))return!0}return!1}function io(t,e,i,n){var r=!1;!0===n&&(r=null===e[i]&&void 0!==t[i]),r?delete t[i]:t[i]=e[i]}function no(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var n in t)if(void 0!==e[n])if(null===e[n]||"object"!==Yr(e[n]))io(t,e,n,i);else{var r=t[n],o=e[n];to(r)&&to(o)&&no(r,o,i)}}var ro=Ar;function oo(t,e){if(!Tr(t))throw new Error("Array with property names expected as first argument");for(var i=arguments.length,n=new Array(i>2?i-2:0),r=2;r<i;r++)n[r-2]=arguments[r];for(var o=0,s=n;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}function so(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(Tr(i))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(i,o))if(i[o]&&i[o].constructor===Object)void 0===e[o]&&(e[o]={}),e[o].constructor===Object?lo(e[o],i[o],!1,n):io(e,i,o,n);else{if(Tr(i[o]))throw new TypeError("Arrays are not supported by deepExtend");io(e,i,o,n)}}return e}function ao(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(Tr(i))throw new TypeError("Arrays are not supported by deepExtend");for(var r in i)if(Object.prototype.hasOwnProperty.call(i,r)&&-1===Mr(t).call(t,r))if(i[r]&&i[r].constructor===Object)void 0===e[r]&&(e[r]={}),e[r].constructor===Object?lo(e[r],i[r]):io(e,i,r,n);else if(Tr(i[r])){e[r]=[];for(var o=0;o<i[r].length;o++)e[r].push(i[r][o])}else io(e,i,r,n);return e}function lo(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)||!0===i)if("object"===Yr(e[r])&&null!==e[r]&&_r(e[r])===Object.prototype)void 0===t[r]?t[r]=lo({},e[r],i):"object"===Yr(t[r])&&null!==t[r]&&_r(t[r])===Object.prototype?lo(t[r],e[r],i):io(t,e,r,n);else if(Tr(e[r])){var o;t[r]=yr(o=e[r]).call(o)}else io(t,e,r,n);return t}function uo(t,e){if(t.length!==e.length)return!1;for(var i=0,n=t.length;i<n;i++)if(t[i]!=e[i])return!1;return!0}function ho(t){var e=Yr(t);return"object"===e?null===t?"null":t instanceof Boolean?"Boolean":t instanceof Number?"Number":t instanceof String?"String":Tr(t)?"Array":t instanceof Date?"Date":"Object":"number"===e?"Number":"boolean"===e?"Boolean":"string"===e?"String":void 0===e?"undefined":e}function co(t,e){var i;return Kn(i=[]).call(i,dr(t),[e])}function fo(t){return yr(t).call(t)}function po(t){return t.getBoundingClientRect().left}function mo(t){return t.getBoundingClientRect().right}function vo(t){return t.getBoundingClientRect().top}function go(t,e){var i=t.className.split(" "),n=e.split(" ");i=Kn(i).call(i,Un(n).call(n,(function(t){return Mr(i).call(i,t)<0}))),t.className=i.join(" ")}function yo(t,e){var i=t.className.split(" "),n=e.split(" ");i=Un(i).call(i,(function(t){return Mr(n).call(n,t)<0})),t.className=i.join(" ")}function bo(t,e){if(Tr(t))for(var i=t.length,n=0;n<i;n++)e(t[n],n,t);else for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e(t[r],r,t)}var _o=Fn;function wo(t,e,i){return t[e]!==i&&(t[e]=i,!0)}function ko(t){var e=!1;return function(){e||(e=!0,requestAnimationFrame((function(){e=!1,t()})))}}function So(t,e,i,n){var r;t.addEventListener?(void 0===n&&(n=!1),"mousewheel"===e&&Mr(r=navigator.userAgent).call(r,"Firefox")>=0&&(e="DOMMouseScroll"),t.addEventListener(e,i,n)):t.attachEvent("on"+e,i)}function Do(t,e,i,n){var r;t.removeEventListener?(void 0===n&&(n=!1),"mousewheel"===e&&Mr(r=navigator.userAgent).call(r,"Firefox")>=0&&(e="DOMMouseScroll"),t.removeEventListener(e,i,n)):t.detachEvent("on"+e,i)}function xo(t){t||(t=window.event),t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)}function Oo(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.event,e=null;return t&&(t.target?e=t.target:t.srcElement&&(e=t.srcElement)),e instanceof Element&&(null==e.nodeType||3!=e.nodeType||(e=e.parentNode)instanceof Element)?e:null}function Mo(t,e){for(var i=t;i;){if(i===e)return!0;if(!i.parentNode)return!1;i=i.parentNode}return!1}var To={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()),Qr(t)?t:$r(t)?t+"px":e||null},asElement:function(t,e){return"function"==typeof t&&(t=t()),t||e||null}};function Co(t){var e;switch(t.length){case 3:case 4:return(e=qr.exec(t))?{r:jn(e[1]+e[1],16),g:jn(e[2]+e[2],16),b:jn(e[3]+e[3],16)}:null;case 6:case 7:return(e=Xr.exec(t))?{r:jn(e[1],16),g:jn(e[2],16),b:jn(e[3],16)}:null;default:return null}}function Po(t,e){if(-1!==Mr(t).call(t,"rgba"))return t;if(-1!==Mr(t).call(t,"rgb")){var i=t.substr(Mr(t).call(t,"(")+1).replace(")","").split(",");return"rgba("+i[0]+","+i[1]+","+i[2]+","+e+")"}var n=Co(t);return null==n?t:"rgba("+n.r+","+n.g+","+n.b+","+e+")"}function Eo(t,e,i){var n;return"#"+yr(n=((1<<24)+(t<<16)+(e<<8)+i).toString(16)).call(n,1)}function Ao(t,e){if(Qr(t)){var i=t;if(Wo(i)){var n,r=Pn(n=i.substr(4).substr(0,i.length-5).split(",")).call(n,(function(t){return jn(t)}));i=Eo(r[0],r[1],r[2])}if(!0===Go(i)){var o=Ho(i),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=Fo(a.h,a.s,a.v),u=Fo(s.h,s.s,s.v);return{background:i,border:l,highlight:{background:u,border:l},hover:{background:u,border:l}}}return{background:i,border:i,highlight:{background:i,border:i},hover:{background:i,border:i}}}return e?{background:t.background||e.background,border:t.border||e.border,highlight:Qr(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:Qr(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:Qr(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:Qr(t.hover)?{border:t.hover,background:t.hover}:{border:t.hover&&t.hover.border||void 0,background:t.hover&&t.hover.background||void 0}}}function Lo(t,e,i){t/=255,e/=255,i/=255;var n=Math.min(t,Math.min(e,i)),r=Math.max(t,Math.max(e,i));return n===r?{h:0,s:0,v:n}:{h:60*((t===n?3:i===n?1:5)-(t===n?e-i:i===n?t-e:i-t)/(r-n))/360,s:(r-n)/r,v:r}}var Io=function(t){var e,i={};return gn(e=t.split(";")).call(e,(function(t){if(""!=ln(t).call(t)){var e,n,r=t.split(":"),o=ln(e=r[0]).call(e),s=ln(n=r[1]).call(n);i[o]=s}})),i},jo=function(t){var e;return Pn(e=Ji(t)).call(e,(function(e){return e+": "+t[e]})).join("; ")};function Yo(t,e){var i=function(t){for(var e=1;e<arguments.length;e++){var i,n=null!=arguments[e]?arguments[e]:{};if(e%2)gn(i=Ur(Object(n),!0)).call(i,(function(e){Xi(t,e,n[e])}));else if(Ke)Be(t,Ke(n));else{var r;gn(r=Ur(Object(n))).call(r,(function(e){Ue(t,e,ei(n,e))}))}}return t}({},Io(t.style.cssText),{},Io(e));t.style.cssText=jo(i)}function No(t,e){var i=Io(t.style.cssText),n=Io(e);for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&delete i[r];t.style.cssText=jo(i)}function Ro(t,e,i){var n,r,o,s=Math.floor(6*t),a=6*t-s,l=i*(1-e),u=i*(1-a*e),h=i*(1-(1-a)*e);switch(s%6){case 0:n=i,r=h,o=l;break;case 1:n=u,r=i,o=l;break;case 2:n=l,r=i,o=h;break;case 3:n=l,r=u,o=i;break;case 4:n=h,r=l,o=i;break;case 5:n=i,r=l,o=u}return{r:Math.floor(255*n),g:Math.floor(255*r),b:Math.floor(255*o)}}function Fo(t,e,i){var n=Ro(t,e,i);return Eo(n.r,n.g,n.b)}function Ho(t){var e=Co(t);if(!e)throw new TypeError("'".concat(t,"' is not a valid color."));return Lo(e.r,e.g,e.b)}function Go(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)}function Wo(t){return Zr.test(t)}function zo(t){return Jr.test(t)}function Vo(t,e){if(null!==e&&"object"===Yr(e)){for(var i=Ui(e),n=0;n<t.length;n++)Object.prototype.hasOwnProperty.call(e,t[n])&&"object"==Yr(e[t[n]])&&(i[t[n]]=Uo(e[t[n]]));return i}return null}function Uo(t){if(null===t||"object"!==Yr(t))return null;if(t instanceof Element)return t;var e=Ui(t);for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&"object"==Yr(t[i])&&(e[i]=Uo(t[i]));return e}function Bo(t,e){for(var i=0;i<t.length;i++){var n=t[i],r=void 0;for(r=i;r>0&&e(n,t[r-1])<0;r--)t[r]=t[r-1];t[r]=n}return t}function Xo(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=function(t){return null!=t},o=function(t){return null!==t&&"object"===Yr(t)},s=function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0};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(i))throw new Error("Parameter option must have a value");if(!o(n))throw new Error("Parameter globalOptions must be an object");var a=function(t,e,i){o(t[i])||(t[i]={});var n=e[i],r=t[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])},l=e[i],u=o(n)&&!s(n),h=u?n[i]:void 0,c=h?h.enabled:void 0;if(void 0!==l){if("boolean"==typeof l)return o(t[i])||(t[i]={}),void(t[i].enabled=l);if(null===l&&!o(t[i])){if(!r(h))return;t[i]=Ui(h)}if(o(l)){var d=!0;void 0!==l.enabled?d=l.enabled:void 0!==c&&(d=h.enabled),a(t,e,i),t[i].enabled=d}}}function qo(t,e,i,n){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===n?l[i]:l[i][n]);if(0==u)return a;-1==u?o=a+1:s=a-1,r++}return-1}function Zo(t,e,i,n,r){var o,s,a,l,u=0,h=0,c=t.length-1;for(r=null!=r?r:function(t,e){return t==e?0:t<e?-1:1};h<=c&&u<1e4;){if(l=Math.floor(.5*(c+h)),o=t[Math.max(0,l-1)][i],s=t[l][i],a=t[Math.min(t.length-1,l+1)][i],0==r(s,e))return l;if(r(o,e)<0&&r(s,e)>0)return"before"==n?Math.max(0,l-1):l;if(r(s,e)<0&&r(a,e)>0)return"before"==n?l:Math.min(t.length-1,l+1);r(s,e)<0?h=l+1:c=l-1,u++}return-1}var Jo={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return t*(2-t)},easeInOutQuad:function(t){return t<.5?2*t*t:(4-2*t)*t-1},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return--t*t*t+1},easeInOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1- --t*t*t*t},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1+--t*t*t*t*t},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}};function $o(){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 i=t.offsetWidth;e.style.overflow="scroll";var n=t.offsetWidth;return i==n&&(n=e.clientWidth),document.body.removeChild(e),i-n}function Ko(t,e){var i;Tr(e)||(e=[e]);var n=!0,r=!1,o=void 0;try{for(var s,a=je(t);!(n=(s=a.next()).done);n=!0){var l=s.value;if(l){i=l[e[0]];for(var u=1;u<e.length;u++)i&&(i=i[e[u]]);if(void 0!==i)break}}}catch(t){r=!0,o=t}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}return i}var Qo=Object.freeze({__proto__:null,isNumber:$r,recursiveDOMDelete:Kr,isString:Qr,isObject:to,isDate:eo,fillIfDefined:no,extend:ro,selectiveExtend:oo,selectiveDeepExtend:so,selectiveNotDeepExtend:ao,deepExtend:lo,equalArray:uo,getType:ho,copyAndExtendArray:co,copyArray:fo,getAbsoluteLeft:po,getAbsoluteRight:mo,getAbsoluteTop:vo,addClassName:go,removeClassName:yo,forEach:bo,toArray:_o,updateProperty:wo,throttle:ko,addEventListener:So,removeEventListener:Do,preventDefault:xo,getTarget:Oo,hasParent:Mo,option:To,hexToRGB:Co,overrideOpacity:Po,RGBToHex:Eo,parseColor:Ao,RGBToHSV:Lo,addCssText:Yo,removeCssText:No,HSVToRGB:Ro,HSVToHex:Fo,hexToHSV:Ho,isValidHex:Go,isValidRGB:Wo,isValidRGBA:zo,selectiveBridgeObject:Vo,bridgeObject:Uo,insertSort:Bo,mergeOptions:Xo,binarySearchCustom:qo,binarySearchValue:Zo,easingFunctions:Jo,getScrollBarWidth:$o,topMost:Ko,randomUUID:Vr}),ts=Object.freeze({__proto__:null,default:Qo,Alea:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return We(e.length?e:[Ge()])},HSVToHex:Fo,HSVToRGB:Ro,RGBToHSV:Lo,RGBToHex:Eo,addClassName:go,addCssText:Yo,addEventListener:So,binarySearchCustom:qo,binarySearchValue:Zo,bridgeObject:Uo,copyAndExtendArray:co,copyArray:fo,deepExtend:lo,easingFunctions:Jo,equalArray:uo,extend:ro,fillIfDefined:no,forEach:bo,getAbsoluteLeft:po,getAbsoluteRight:mo,getAbsoluteTop:vo,getScrollBarWidth:$o,getTarget:Oo,getType:ho,hasParent:Mo,hexToHSV:Ho,hexToRGB:Co,insertSort:Bo,isDate:eo,isNumber:$r,isObject:to,isString:Qr,isValidHex:Go,isValidRGB:Wo,isValidRGBA:zo,mergeOptions:Xo,option:To,overrideOpacity:Po,parseColor:Ao,preventDefault:xo,randomUUID:Vr,recursiveDOMDelete:Kr,removeClassName:yo,removeCssText:No,removeEventListener:Do,selectiveBridgeObject:Vo,selectiveDeepExtend:so,selectiveExtend:oo,selectiveNotDeepExtend:ao,throttle:ko,toArray:_o,topMost:Ko,updateProperty:wo});function es(t){for(var e in t)t.hasOwnProperty(e)&&(t[e].redundant=t[e].used,t[e].used=[])}function is(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e].redundant){for(var i=0;i<t[e].redundant.length;i++)t[e].redundant[i].parentNode.removeChild(t[e].redundant[i]);t[e].redundant=[]}}function ns(t){es(t),is(t),es(t)}function rs(t,e,i){var n;return e.hasOwnProperty(t)?e[t].redundant.length>0?(n=e[t].redundant[0],e[t].redundant.shift()):(n=document.createElementNS("http://www.w3.org/2000/svg",t),i.appendChild(n)):(n=document.createElementNS("http://www.w3.org/2000/svg",t),e[t]={used:[],redundant:[]},i.appendChild(n)),e[t].used.push(n),n}function os(t,e,i,n){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!==n?i.insertBefore(r,n):i.appendChild(r)):(r=document.createElement(t),e[t]={used:[],redundant:[]},void 0!==n?i.insertBefore(r,n):i.appendChild(r)),e[t].used.push(r),r}function ss(t,e,i,n,r,o){var s;if("circle"==i.style?((s=rs("circle",n,r)).setAttributeNS(null,"cx",t),s.setAttributeNS(null,"cy",e),s.setAttributeNS(null,"r",.5*i.size)):((s=rs("rect",n,r)).setAttributeNS(null,"x",t-.5*i.size),s.setAttributeNS(null,"y",e-.5*i.size),s.setAttributeNS(null,"width",i.size),s.setAttributeNS(null,"height",i.size)),void 0!==i.styles&&s.setAttributeNS(null,"style",i.styles),s.setAttributeNS(null,"class",i.className+" vis-point"),o){var a=rs("text",n,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 as(t,e,i,n,r,o,s,a){if(0!=n){n<0&&(e-=n*=-1);var l=rs("rect",o,s);l.setAttributeNS(null,"x",t-.5*i),l.setAttributeNS(null,"y",e),l.setAttributeNS(null,"width",i),l.setAttributeNS(null,"height",n),l.setAttributeNS(null,"class",r),a&&l.setAttributeNS(null,"style",a)}}function ls(){try{return navigator?navigator.languages&&navigator.languages.length?navigator.languages:navigator.userLanguage||navigator.language||navigator.browserLanguage||"en":"en"}catch(t){return"en"}}var us=Object.freeze({__proto__:null,prepareElements:es,cleanupElements:is,resetElements:ns,getSVGElement:rs,getDOMElement:os,drawPoint:ss,drawBar:as,getNavigatorLanguage:ls}),hs="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};
|
||
/**
|
||
* vis-data
|
||
* http://visjs.org/
|
||
*
|
||
* Manage unstructured data using DataSet. Add, update, and remove data, and listen for changes in the data.
|
||
*
|
||
* @version 6.4.0
|
||
* @date 2020-02-17T20:51:47.321Z
|
||
*
|
||
* @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 cs(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function ds(t,e){return t(e={exports:{}},e.exports),e.exports}var fs=function(t){return t&&t.Math==Math&&t},ps=fs("object"==typeof globalThis&&globalThis)||fs("object"==typeof window&&window)||fs("object"==typeof self&&self)||fs("object"==typeof hs&&hs)||Function("return this")(),ms=function(t){try{return!!t()}catch(t){return!0}},vs=!ms((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),gs={}.propertyIsEnumerable,ys=Object.getOwnPropertyDescriptor,bs={f:ys&&!gs.call({1:2},1)?function(t){var e=ys(this,t);return!!e&&e.enumerable}:gs},_s=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},ws={}.toString,ks=function(t){return ws.call(t).slice(8,-1)},Ss="".split,Ds=ms((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==ks(t)?Ss.call(t,""):Object(t)}:Object,xs=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},Os=function(t){return Ds(xs(t))},Ms=function(t){return"object"==typeof t?null!==t:"function"==typeof t},Ts=function(t,e){if(!Ms(t))return t;var i,n;if(e&&"function"==typeof(i=t.toString)&&!Ms(n=i.call(t)))return n;if("function"==typeof(i=t.valueOf)&&!Ms(n=i.call(t)))return n;if(!e&&"function"==typeof(i=t.toString)&&!Ms(n=i.call(t)))return n;throw TypeError("Can't convert object to primitive value")},Cs={}.hasOwnProperty,Ps=function(t,e){return Cs.call(t,e)},Es=ps.document,As=Ms(Es)&&Ms(Es.createElement),Ls=function(t){return As?Es.createElement(t):{}},Is=!vs&&!ms((function(){return 7!=Object.defineProperty(Ls("div"),"a",{get:function(){return 7}}).a})),js=Object.getOwnPropertyDescriptor,Ys={f:vs?js:function(t,e){if(t=Os(t),e=Ts(e,!0),Is)try{return js(t,e)}catch(t){}if(Ps(t,e))return _s(!bs.f.call(t,e),t[e])}},Ns=/#|\.prototype\./,Rs=function(t,e){var i=Hs[Fs(t)];return i==Ws||i!=Gs&&("function"==typeof e?ms(e):!!e)},Fs=Rs.normalize=function(t){return String(t).replace(Ns,".").toLowerCase()},Hs=Rs.data={},Gs=Rs.NATIVE="N",Ws=Rs.POLYFILL="P",zs=Rs,Vs={},Us=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},Bs=function(t,e,i){if(Us(t),void 0===e)return t;switch(i){case 0:return function(){return t.call(e)};case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,r){return t.call(e,i,n,r)}}return function(){return t.apply(e,arguments)}},Xs=function(t){if(!Ms(t))throw TypeError(String(t)+" is not an object");return t},qs=Object.defineProperty,Zs={f:vs?qs:function(t,e,i){if(Xs(t),e=Ts(e,!0),Xs(i),Is)try{return qs(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(t[e]=i.value),t}},Js=vs?function(t,e,i){return Zs.f(t,e,_s(1,i))}:function(t,e,i){return t[e]=i,t},$s=Ys.f,Ks=function(t){var e=function(e,i,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,i)}return new t(e,i,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e},Qs=function(t,e){var i,n,r,o,s,a,l,u,h=t.target,c=t.global,d=t.stat,f=t.proto,p=c?ps:d?ps[h]:(ps[h]||{}).prototype,m=c?Vs:Vs[h]||(Vs[h]={}),v=m.prototype;for(r in e)i=!zs(c?r:h+(d?".":"#")+r,t.forced)&&p&&Ps(p,r),s=m[r],i&&(a=t.noTargetGet?(u=$s(p,r))&&u.value:p[r]),o=i&&a?a:e[r],i&&typeof s==typeof o||(l=t.bind&&i?Bs(o,ps):t.wrap&&i?Ks(o):f&&"function"==typeof o?Bs(Function.call,o):o,(t.sham||o&&o.sham||s&&s.sham)&&Js(l,"sham",!0),m[r]=l,f&&(Ps(Vs,n=h+"Prototype")||Js(Vs,n,{}),Vs[n][r]=o,t.real&&v&&!v[r]&&Js(v,r,o)))},ta=Array.isArray||function(t){return"Array"==ks(t)},ea=Math.ceil,ia=Math.floor,na=function(t){return isNaN(t=+t)?0:(t>0?ia:ea)(t)},ra=Math.min,oa=function(t){return t>0?ra(na(t),9007199254740991):0},sa=function(t,e,i,n,r,o,s,a){for(var l,u=r,h=0,c=!!s&&Bs(s,a,3);h<n;){if(h in i){if(l=c?c(i[h],h,e):i[h],o>0&&ta(l))u=sa(t,e,l,oa(l.length),u,o-1)-1;else{if(u>=9007199254740991)throw TypeError("Exceed the acceptable array length");t[u]=l}u++}h++}return u},aa=sa,la=function(t){return Object(xs(t))},ua=ps["__core-js_shared__"]||function(t,e){try{Js(ps,t,e)}catch(i){ps[t]=e}return e}("__core-js_shared__",{}),ha=ds((function(t){(t.exports=function(t,e){return ua[t]||(ua[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.4",mode:"pure",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),ca=0,da=Math.random(),fa=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++ca+da).toString(36)},pa=!!Object.getOwnPropertySymbols&&!ms((function(){return!String(Symbol())})),ma=pa&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,va=ha("wks"),ga=ps.Symbol,ya=ma?ga:ga&&ga.withoutSetter||fa,ba=function(t){return Ps(va,t)||(pa&&Ps(ga,t)?va[t]=ga[t]:va[t]=ya("Symbol."+t)),va[t]},_a=ba("species"),wa=function(t,e){var i;return ta(t)&&("function"!=typeof(i=t.constructor)||i!==Array&&!ta(i.prototype)?Ms(i)&&null===(i=i[_a])&&(i=void 0):i=void 0),new(void 0===i?Array:i)(0===e?0:e)};Qs({target:"Array",proto:!0},{flatMap:function(t){var e,i=la(this),n=oa(i.length);return Us(t),(e=wa(i,0)).length=aa(e,i,i,n,0,1,t,arguments.length>1?arguments[1]:void 0),e}});var ka,Sa,Da=function(t){return Vs[t+"Prototype"]},xa=Da("Array").flatMap,Oa=Array.prototype,Ma=function(t){var e=t.flatMap;return t===Oa||t instanceof Array&&e===Oa.flatMap?xa:e},Ta=[].push,Ca=function(t){var e=1==t,i=2==t,n=3==t,r=4==t,o=6==t,s=5==t||o;return function(a,l,u,h){for(var c,d,f=la(a),p=Ds(f),m=Bs(l,u,3),v=oa(p.length),g=0,y=h||wa,b=e?y(a,v):i?y(a,0):void 0;v>g;g++)if((s||g in p)&&(d=m(c=p[g],g,f),t))if(e)b[g]=d;else if(d)switch(t){case 3:return!0;case 5:return c;case 6:return g;case 2:Ta.call(b,c)}else if(r)return!1;return o?-1:n||r?r:b}},Pa={forEach:Ca(0),map:Ca(1),filter:Ca(2),some:Ca(3),every:Ca(4),find:Ca(5),findIndex:Ca(6)},Ea=function(t){return"function"==typeof t?t:void 0},Aa=function(t,e){return arguments.length<2?Ea(Vs[t])||Ea(ps[t]):Vs[t]&&Vs[t][e]||ps[t]&&ps[t][e]},La=Aa("navigator","userAgent")||"",Ia=ps.process,ja=Ia&&Ia.versions,Ya=ja&&ja.v8;Ya?Sa=(ka=Ya.split("."))[0]+ka[1]:La&&(!(ka=La.match(/Edge\/(\d+)/))||ka[1]>=74)&&(ka=La.match(/Chrome\/(\d+)/))&&(Sa=ka[1]);var Na=Sa&&+Sa,Ra=ba("species"),Fa=function(t){return Na>=51||!ms((function(){var e=[];return(e.constructor={})[Ra]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Ha=Object.defineProperty,Ga={},Wa=function(t){throw t},za=function(t,e){if(Ps(Ga,t))return Ga[t];e||(e={});var i=[][t],n=!!Ps(e,"ACCESSORS")&&e.ACCESSORS,r=Ps(e,0)?e[0]:Wa,o=Ps(e,1)?e[1]:void 0;return Ga[t]=!!i&&!ms((function(){if(n&&!vs)return!0;var t={length:-1};n?Ha(t,1,{enumerable:!0,get:Wa}):t[1]=1,i.call(t,r,o)}))},Va=Pa.map,Ua=Fa("map"),Ba=za("map");Qs({target:"Array",proto:!0,forced:!Ua||!Ba},{map:function(t){return Va(this,t,arguments.length>1?arguments[1]:void 0)}});var Xa=Da("Array").map,qa=Array.prototype,Za=function(t){var e=t.map;return t===qa||t instanceof Array&&e===qa.map?Xa:e},Ja=Pa.filter,$a=Fa("filter"),Ka=za("filter");Qs({target:"Array",proto:!0,forced:!$a||!Ka},{filter:function(t){return Ja(this,t,arguments.length>1?arguments[1]:void 0)}});var Qa=Da("Array").filter,tl=Array.prototype,el=function(t){var e=t.filter;return t===tl||t instanceof Array&&e===tl.filter?Qa:e},il=function(t){return function(e,i,n,r){Us(i);var o=la(e),s=Ds(o),a=oa(o.length),l=t?a-1:0,u=t?-1:1;if(n<2)for(;;){if(l in s){r=s[l],l+=u;break}if(l+=u,t?l<0:a<=l)throw TypeError("Reduce of empty array with no initial value")}for(;t?l>=0:a>l;l+=u)l in s&&(r=i(r,s[l],l,o));return r}},nl=function(t,e){var i=[][t];return!!i&&ms((function(){i.call(null,e||function(){throw 1},1)}))},rl={left:il(!1),right:il(!0)}.left,ol=nl("reduce"),sl=za("reduce",{1:0});Qs({target:"Array",proto:!0,forced:!ol||!sl},{reduce:function(t){return rl(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}});var al=Da("Array").reduce,ll=Array.prototype,ul=function(t){var e=t.reduce;return t===ll||t instanceof Array&&e===ll.reduce?al:e},hl=[].slice,cl={},dl=function(t,e,i){if(!(e in cl)){for(var n=[],r=0;r<e;r++)n[r]="a["+r+"]";cl[e]=Function("C,a","return new C("+n.join(",")+")")}return cl[e](t,i)},fl=Function.bind||function(t){var e=Us(this),i=hl.call(arguments,1),n=function(){var r=i.concat(hl.call(arguments));return this instanceof n?dl(e,r.length,r):e.apply(t,r)};return Ms(e.prototype)&&(n.prototype=e.prototype),n};Qs({target:"Function",proto:!0},{bind:fl});var pl=Da("Function").bind,ml=Function.prototype,vl=function(t){var e=t.bind;return t===ml||t instanceof Function&&e===ml.bind?pl:e};var gl=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};Qs({target:"Object",stat:!0,forced:!vs,sham:!vs},{defineProperty:Zs.f});var yl=ds((function(t){var e=Vs.Object,i=t.exports=function(t,i,n){return e.defineProperty(t,i,n)};e.defineProperty.sham&&(i.sham=!0)})),bl=yl;function _l(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),bl(t,n.key,n)}}var wl=function(t,e,i){return e&&_l(t.prototype,e),i&&_l(t,i),t};function kl(t){return new Dl(t)}var Sl=function(){function t(e,i,n){var r,o,s;gl(this,t),this._source=e,this._transformers=i,this._target=n,this._listeners={add:vl(r=this._add).call(r,this),remove:vl(o=this._remove).call(o,this),update:vl(s=this._update).call(s,this)}}return wl(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 ul(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}(),Dl=function(){function t(e){gl(this,t),this._source=e,this._transformers=[]}return wl(t,[{key:"filter",value:function(t){return this._transformers.push((function(e){return el(e).call(e,t)})),this}},{key:"map",value:function(t){return this._transformers.push((function(e){return Za(e).call(e,t)})),this}},{key:"flatMap",value:function(t){return this._transformers.push((function(e){return Ma(e).call(e,t)})),this}},{key:"to",value:function(t){return new Sl(this._source,this._transformers,t)}}]),t}(),xl=yl,Ol=Math.max,Ml=Math.min,Tl=function(t,e){var i=na(t);return i<0?Ol(i+e,0):Ml(i,e)},Cl=function(t){return function(e,i,n){var r,o=Os(e),s=oa(o.length),a=Tl(n,s);if(t&&i!=i){for(;s>a;)if((r=o[a++])!=r)return!0}else for(;s>a;a++)if((t||a in o)&&o[a]===i)return t||a||0;return!t&&-1}},Pl={includes:Cl(!0),indexOf:Cl(!1)},El={},Al=Pl.indexOf,Ll=function(t,e){var i,n=Os(t),r=0,o=[];for(i in n)!Ps(El,i)&&Ps(n,i)&&o.push(i);for(;e.length>r;)Ps(n,i=e[r++])&&(~Al(o,i)||o.push(i));return o},Il=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],jl=Object.keys||function(t){return Ll(t,Il)},Yl=vs?Object.defineProperties:function(t,e){Xs(t);for(var i,n=jl(e),r=n.length,o=0;r>o;)Zs.f(t,i=n[o++],e[i]);return t};Qs({target:"Object",stat:!0,forced:!vs,sham:!vs},{defineProperties:Yl});var Nl=ds((function(t){var e=Vs.Object,i=t.exports=function(t,i){return e.defineProperties(t,i)};e.defineProperties.sham&&(i.sham=!0)})),Rl=Il.concat("length","prototype"),Fl={f:Object.getOwnPropertyNames||function(t){return Ll(t,Rl)}},Hl={f:Object.getOwnPropertySymbols},Gl=Aa("Reflect","ownKeys")||function(t){var e=Fl.f(Xs(t)),i=Hl.f;return i?e.concat(i(t)):e},Wl=function(t,e,i){var n=Ts(e);n in t?Zs.f(t,n,_s(0,i)):t[n]=i};Qs({target:"Object",stat:!0,sham:!vs},{getOwnPropertyDescriptors:function(t){for(var e,i,n=Os(t),r=Ys.f,o=Gl(n),s={},a=0;o.length>a;)void 0!==(i=r(n,e=o[a++]))&&Wl(s,e,i);return s}});var zl=Vs.Object.getOwnPropertyDescriptors,Vl={},Ul=Function.toString;"function"!=typeof ua.inspectSource&&(ua.inspectSource=function(t){return Ul.call(t)});var Bl,Xl,ql,Zl=ua.inspectSource,Jl=ps.WeakMap,$l="function"==typeof Jl&&/native code/.test(Zl(Jl)),Kl=ha("keys"),Ql=function(t){return Kl[t]||(Kl[t]=fa(t))},tu=ps.WeakMap;if($l){var eu=new tu,iu=eu.get,nu=eu.has,ru=eu.set;Bl=function(t,e){return ru.call(eu,t,e),e},Xl=function(t){return iu.call(eu,t)||{}},ql=function(t){return nu.call(eu,t)}}else{var ou=Ql("state");El[ou]=!0,Bl=function(t,e){return Js(t,ou,e),e},Xl=function(t){return Ps(t,ou)?t[ou]:{}},ql=function(t){return Ps(t,ou)}}var su,au,lu,uu={set:Bl,get:Xl,has:ql,enforce:function(t){return ql(t)?Xl(t):Bl(t,{})},getterFor:function(t){return function(e){var i;if(!Ms(e)||(i=Xl(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return i}}},hu=!ms((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),cu=Ql("IE_PROTO"),du=Object.prototype,fu=hu?Object.getPrototypeOf:function(t){return t=la(t),Ps(t,cu)?t[cu]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?du:null},pu=(ba("iterator"),!1);[].keys&&("next"in(lu=[].keys())?(au=fu(fu(lu)))!==Object.prototype&&(su=au):pu=!0),null==su&&(su={});var mu,vu={IteratorPrototype:su,BUGGY_SAFARI_ITERATORS:pu},gu=Aa("document","documentElement"),yu=Ql("IE_PROTO"),bu=function(){},_u=function(t){return"<script>"+t+"<\/script>"},wu=function(){try{mu=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;wu=mu?function(t){t.write(_u("")),t.close();var e=t.parentWindow.Object;return t=null,e}(mu):((e=Ls("iframe")).style.display="none",gu.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(_u("document.F=Object")),t.close(),t.F);for(var i=Il.length;i--;)delete wu.prototype[Il[i]];return wu()};El[yu]=!0;var ku=Object.create||function(t,e){var i;return null!==t?(bu.prototype=Xs(t),i=new bu,bu.prototype=null,i[yu]=t):i=wu(),void 0===e?i:Yl(i,e)},Su={};Su[ba("toStringTag")]="z";var Du="[object z]"===String(Su),xu=ba("toStringTag"),Ou="Arguments"==ks(function(){return arguments}()),Mu=Du?ks:function(t){var e,i,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),xu))?i:Ou?ks(e):"Object"==(n=ks(e))&&"function"==typeof e.callee?"Arguments":n},Tu=Du?{}.toString:function(){return"[object "+Mu(this)+"]"},Cu=Zs.f,Pu=ba("toStringTag"),Eu=function(t,e,i,n){if(t){var r=i?t:t.prototype;Ps(r,Pu)||Cu(r,Pu,{configurable:!0,value:e}),n&&!Du&&Js(r,"toString",Tu)}},Au=vu.IteratorPrototype,Lu=function(){return this},Iu=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,i={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(i,[]),e=i instanceof Array}catch(t){}return function(i,n){return Xs(i),function(t){if(!Ms(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(n),e?t.call(i,n):i.__proto__=n,i}}():void 0),ju=function(t,e,i,n){n&&n.enumerable?t[e]=i:Js(t,e,i)},Yu=vu.IteratorPrototype,Nu=vu.BUGGY_SAFARI_ITERATORS,Ru=ba("iterator"),Fu=function(){return this},Hu=function(t,e,i,n,r,o,s){!function(t,e,i){var n=e+" Iterator";t.prototype=ku(Au,{next:_s(1,i)}),Eu(t,n,!1,!0),Vl[n]=Lu}(i,e,n);var a,l,u,h=function(t){if(t===r&&m)return m;if(!Nu&&t in f)return f[t];switch(t){case"keys":case"values":case"entries":return function(){return new i(this,t)}}return function(){return new i(this)}},c=e+" Iterator",d=!1,f=t.prototype,p=f[Ru]||f["@@iterator"]||r&&f[r],m=!Nu&&p||h(r),v="Array"==e&&f.entries||p;if(v&&(a=fu(v.call(new t)),Yu!==Object.prototype&&a.next&&(Eu(a,c,!0,!0),Vl[c]=Fu)),"values"==r&&p&&"values"!==p.name&&(d=!0,m=function(){return p.call(this)}),s&&f[Ru]!==m&&Js(f,Ru,m),Vl[e]=m,r)if(l={values:h("values"),keys:o?m:h("keys"),entries:h("entries")},s)for(u in l)!Nu&&!d&&u in f||ju(f,u,l[u]);else Qs({target:e,proto:!0,forced:Nu||d},l);return l},Gu=uu.set,Wu=uu.getterFor("Array Iterator");Hu(Array,"Array",(function(t,e){Gu(this,{type:"Array Iterator",target:Os(t),index:0,kind:e})}),(function(){var t=Wu(this),e=t.target,i=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==i?{value:n,done:!1}:"values"==i?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values");Vl.Arguments=Vl.Array;var zu=ba("toStringTag");for(var Vu in{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}){var Uu=ps[Vu],Bu=Uu&&Uu.prototype;Bu&&Mu(Bu)!==zu&&Js(Bu,zu,Vu),Vl[Vu]=Vl.Array}var Xu=Pa.forEach,qu=nl("forEach"),Zu=za("forEach"),Ju=qu&&Zu?[].forEach:function(t){return Xu(this,t,arguments.length>1?arguments[1]:void 0)};Qs({target:"Array",proto:!0,forced:[].forEach!=Ju},{forEach:Ju});var $u=Da("Array").forEach,Ku=Array.prototype,Qu={DOMTokenList:!0,NodeList:!0},th=function(t){var e=t.forEach;return t===Ku||t instanceof Array&&e===Ku.forEach||Qu.hasOwnProperty(Mu(t))?$u:e},eh=Ys.f,ih=ms((function(){eh(1)}));Qs({target:"Object",stat:!0,forced:!vs||ih,sham:!vs},{getOwnPropertyDescriptor:function(t,e){return eh(Os(t),e)}});var nh=ds((function(t){var e=Vs.Object,i=t.exports=function(t,i){return e.getOwnPropertyDescriptor(t,i)};e.getOwnPropertyDescriptor.sham&&(i.sham=!0)})),rh=Fl.f,oh={}.toString,sh="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ah={f:function(t){return sh&&"[object Window]"==oh.call(t)?function(t){try{return rh(t)}catch(t){return sh.slice()}}(t):rh(Os(t))}},lh={f:ba},uh=Zs.f,hh=function(t){var e=Vs.Symbol||(Vs.Symbol={});Ps(e,t)||uh(e,t,{value:lh.f(t)})},ch=Pa.forEach,dh=Ql("hidden"),fh=ba("toPrimitive"),ph=uu.set,mh=uu.getterFor("Symbol"),vh=Object.prototype,gh=ps.Symbol,yh=Aa("JSON","stringify"),bh=Ys.f,_h=Zs.f,wh=ah.f,kh=bs.f,Sh=ha("symbols"),Dh=ha("op-symbols"),xh=ha("string-to-symbol-registry"),Oh=ha("symbol-to-string-registry"),Mh=ha("wks"),Th=ps.QObject,Ch=!Th||!Th.prototype||!Th.prototype.findChild,Ph=vs&&ms((function(){return 7!=ku(_h({},"a",{get:function(){return _h(this,"a",{value:7}).a}})).a}))?function(t,e,i){var n=bh(vh,e);n&&delete vh[e],_h(t,e,i),n&&t!==vh&&_h(vh,e,n)}:_h,Eh=function(t,e){var i=Sh[t]=ku(gh.prototype);return ph(i,{type:"Symbol",tag:t,description:e}),vs||(i.description=e),i},Ah=ma?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof gh},Lh=function(t,e,i){t===vh&&Lh(Dh,e,i),Xs(t);var n=Ts(e,!0);return Xs(i),Ps(Sh,n)?(i.enumerable?(Ps(t,dh)&&t[dh][n]&&(t[dh][n]=!1),i=ku(i,{enumerable:_s(0,!1)})):(Ps(t,dh)||_h(t,dh,_s(1,{})),t[dh][n]=!0),Ph(t,n,i)):_h(t,n,i)},Ih=function(t,e){Xs(t);var i=Os(e),n=jl(i).concat(Rh(i));return ch(n,(function(e){vs&&!jh.call(i,e)||Lh(t,e,i[e])})),t},jh=function(t){var e=Ts(t,!0),i=kh.call(this,e);return!(this===vh&&Ps(Sh,e)&&!Ps(Dh,e))&&(!(i||!Ps(this,e)||!Ps(Sh,e)||Ps(this,dh)&&this[dh][e])||i)},Yh=function(t,e){var i=Os(t),n=Ts(e,!0);if(i!==vh||!Ps(Sh,n)||Ps(Dh,n)){var r=bh(i,n);return!r||!Ps(Sh,n)||Ps(i,dh)&&i[dh][n]||(r.enumerable=!0),r}},Nh=function(t){var e=wh(Os(t)),i=[];return ch(e,(function(t){Ps(Sh,t)||Ps(El,t)||i.push(t)})),i},Rh=function(t){var e=t===vh,i=wh(e?Dh:Os(t)),n=[];return ch(i,(function(t){!Ps(Sh,t)||e&&!Ps(vh,t)||n.push(Sh[t])})),n};if(pa||(ju((gh=function(){if(this instanceof gh)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=fa(t),i=function(t){this===vh&&i.call(Dh,t),Ps(this,dh)&&Ps(this[dh],e)&&(this[dh][e]=!1),Ph(this,e,_s(1,t))};return vs&&Ch&&Ph(vh,e,{configurable:!0,set:i}),Eh(e,t)}).prototype,"toString",(function(){return mh(this).tag})),ju(gh,"withoutSetter",(function(t){return Eh(fa(t),t)})),bs.f=jh,Zs.f=Lh,Ys.f=Yh,Fl.f=ah.f=Nh,Hl.f=Rh,lh.f=function(t){return Eh(ba(t),t)},vs&&_h(gh.prototype,"description",{configurable:!0,get:function(){return mh(this).description}})),Qs({global:!0,wrap:!0,forced:!pa,sham:!pa},{Symbol:gh}),ch(jl(Mh),(function(t){hh(t)})),Qs({target:"Symbol",stat:!0,forced:!pa},{for:function(t){var e=String(t);if(Ps(xh,e))return xh[e];var i=gh(e);return xh[e]=i,Oh[i]=e,i},keyFor:function(t){if(!Ah(t))throw TypeError(t+" is not a symbol");if(Ps(Oh,t))return Oh[t]},useSetter:function(){Ch=!0},useSimple:function(){Ch=!1}}),Qs({target:"Object",stat:!0,forced:!pa,sham:!vs},{create:function(t,e){return void 0===e?ku(t):Ih(ku(t),e)},defineProperty:Lh,defineProperties:Ih,getOwnPropertyDescriptor:Yh}),Qs({target:"Object",stat:!0,forced:!pa},{getOwnPropertyNames:Nh,getOwnPropertySymbols:Rh}),Qs({target:"Object",stat:!0,forced:ms((function(){Hl.f(1)}))},{getOwnPropertySymbols:function(t){return Hl.f(la(t))}}),yh){var Fh=!pa||ms((function(){var t=gh();return"[null]"!=yh([t])||"{}"!=yh({a:t})||"{}"!=yh(Object(t))}));Qs({target:"JSON",stat:!0,forced:Fh},{stringify:function(t,e,i){for(var n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e,(Ms(e)||void 0!==t)&&!Ah(t))return ta(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!Ah(e))return e}),r[1]=e,yh.apply(null,r)}})}gh.prototype[fh]||Js(gh.prototype,fh,gh.prototype.valueOf),Eu(gh,"Symbol"),El[dh]=!0;var Hh=Vs.Object.getOwnPropertySymbols,Gh=Da("Array").entries,Wh=Array.prototype,zh={DOMTokenList:!0,NodeList:!0},Vh=function(t){var e=t.entries;return t===Wh||t instanceof Array&&e===Wh.entries||zh.hasOwnProperty(Mu(t))?Gh:e},Uh=ds((function(t){var e=function(t){var e=Object.prototype,i=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",s=n.toStringTag||"@@toStringTag";function a(t,e,i,n){var r=e&&e.prototype instanceof h?e:h,o=Object.create(r.prototype),s=new k(n||[]);return o._invoke=function(t,e,i){var n="suspendedStart";return function(r,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===r)throw o;return D()}for(i.method=r,i.arg=o;;){var s=i.delegate;if(s){var a=b(s,i);if(a){if(a===u)continue;return a}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===n)throw n="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);n="executing";var h=l(t,e,i);if("normal"===h.type){if(n=i.done?"completed":"suspendedYield",h.arg===u)continue;return{value:h.arg,done:i.done}}"throw"===h.type&&(n="completed",i.method="throw",i.arg=h.arg)}}}(t,i,s),o}function l(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}t.wrap=a;var u={};function h(){}function c(){}function d(){}var f={};f[r]=function(){return this};var p=Object.getPrototypeOf,m=p&&p(p(S([])));m&&m!==e&&i.call(m,r)&&(f=m);var v=d.prototype=h.prototype=Object.create(f);function g(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function y(t){var e;this._invoke=function(n,r){function o(){return new Promise((function(e,o){!function e(n,r,o,s){var a=l(t[n],t,r);if("throw"!==a.type){var u=a.arg,h=u.value;return h&&"object"==typeof h&&i.call(h,"__await")?Promise.resolve(h.__await).then((function(t){e("next",t,o,s)}),(function(t){e("throw",t,o,s)})):Promise.resolve(h).then((function(t){u.value=t,o(u)}),(function(t){return e("throw",t,o,s)}))}s(a.arg)}(n,r,e,o)}))}return e=e?e.then(o,o):o()}}function b(t,e){var i=t.iterator[e.method];if(void 0===i){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return u;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=l(i,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,u;var r=n.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,u):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function S(t){if(t){var e=t[r];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(i.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:D}}function D(){return{value:void 0,done:!0}}return c.prototype=v.constructor=d,d.constructor=c,d[s]=c.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===c||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s in t||(t[s]="GeneratorFunction")),t.prototype=Object.create(v),t},t.awrap=function(t){return{__await:t}},g(y.prototype),y.prototype[o]=function(){return this},t.AsyncIterator=y,t.async=function(e,i,n,r){var o=new y(a(e,i,n,r));return t.isGeneratorFunction(i)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},g(v),v[s]="Generator",v[r]=function(){return this},v.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var i in t)e.push(i);return e.reverse(),function i(){for(;e.length;){var n=e.pop();if(n in t)return i.value=n,i.done=!1,i}return i.done=!0,i}},t.values=S,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},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(i,n){return s.type="throw",s.arg=t,e.next=i,n&&(e.method="next",e.arg=void 0),!!n}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],s=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var a=i.call(o,"catchLoc"),l=i.call(o,"finallyLoc");if(a&&l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=t,s.arg=e,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(s)},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),u},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),w(i),u}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var n=i.completion;if("throw"===n.type){var r=n.arg;w(i)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,i){return this.delegate={iterator:S(t),resultName:e,nextLoc:i},"next"===this.method&&(this.arg=void 0),u}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}}));hh("iterator");var Bh=function(t){return function(e,i){var n,r,o=String(xs(e)),s=na(i),a=o.length;return s<0||s>=a?t?"":void 0:(n=o.charCodeAt(s))<55296||n>56319||s+1===a||(r=o.charCodeAt(s+1))<56320||r>57343?t?o.charAt(s):n:t?o.slice(s,s+2):r-56320+(n-55296<<10)+65536}},Xh={codeAt:Bh(!1),charAt:Bh(!0)}.charAt,qh=uu.set,Zh=uu.getterFor("String Iterator");Hu(String,"String",(function(t){qh(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=Zh(this),i=e.string,n=e.index;return n>=i.length?{value:void 0,done:!0}:(t=Xh(i,n),e.index+=t.length,{value:t,done:!1})}));var Jh=lh.f("iterator"),$h=Jh,Kh=Aa("JSON","stringify"),Qh=/[\uD800-\uDFFF]/g,tc=/^[\uD800-\uDBFF]$/,ec=/^[\uDC00-\uDFFF]$/,ic=function(t,e,i){var n=i.charAt(e-1),r=i.charAt(e+1);return tc.test(t)&&!ec.test(r)||ec.test(t)&&!tc.test(n)?"\\u"+t.charCodeAt(0).toString(16):t},nc=ms((function(){return'"\\udf06\\ud834"'!==Kh("\udf06\ud834")||'"\\udead"'!==Kh("\udead")}));Kh&&Qs({target:"JSON",stat:!0,forced:nc},{stringify:function(t,e,i){var n=Kh.apply(null,arguments);return"string"==typeof n?n.replace(Qh,ic):n}}),Vs.JSON||(Vs.JSON={stringify:JSON.stringify});var rc=function(t,e,i){return Vs.JSON.stringify.apply(null,arguments)};var oc=function(t,e,i){return e in t?bl(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t},sc=Da("Array").values,ac=Array.prototype,lc={DOMTokenList:!0,NodeList:!0},uc=function(t){var e=t.values;return t===ac||t instanceof Array&&e===ac.values||lc.hasOwnProperty(Mu(t))?sc:e},hc=ba("iterator"),cc=function(t){if(null!=t)return t[hc]||t["@@iterator"]||Vl[Mu(t)]},dc=function(t){var e=cc(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return Xs(e.call(t))},fc=[],pc=fc.sort,mc=ms((function(){fc.sort(void 0)})),vc=ms((function(){fc.sort(null)})),gc=nl("sort");Qs({target:"Array",proto:!0,forced:mc||!vc||!gc},{sort:function(t){return void 0===t?pc.call(la(this)):pc.call(la(this),Us(t))}});var yc=Da("Array").sort,bc=Array.prototype,_c=function(t){var e=t.sort;return t===bc||t instanceof Array&&e===bc.sort?yc:e},wc=Da("Array").keys,kc=Array.prototype,Sc={DOMTokenList:!0,NodeList:!0},Dc=function(t){var e=t.keys;return t===kc||t instanceof Array&&e===kc.keys||Sc.hasOwnProperty(Mu(t))?wc:e};Qs({target:"Array",stat:!0},{isArray:ta});var xc=Vs.Array.isArray,Oc=xc;var Mc=function(t){if(Oc(t)){for(var e=0,i=new Array(t.length);e<t.length;e++)i[e]=t[e];return i}},Tc=function(t,e,i,n){try{return n?e(Xs(i)[0],i[1]):e(i)}catch(e){var r=t.return;throw void 0!==r&&Xs(r.call(t)),e}},Cc=ba("iterator"),Pc=Array.prototype,Ec=function(t){return void 0!==t&&(Vl.Array===t||Pc[Cc]===t)},Ac=ba("iterator"),Lc=!1;try{var Ic=0,jc={next:function(){return{done:!!Ic++}},return:function(){Lc=!0}};jc[Ac]=function(){return this},Array.from(jc,(function(){throw 2}))}catch(t){}var Yc=!function(t,e){if(!e&&!Lc)return!1;var i=!1;try{var n={};n[Ac]=function(){return{next:function(){return{done:i=!0}}}},t(n)}catch(t){}return i}((function(t){Array.from(t)}));Qs({target:"Array",stat:!0,forced:Yc},{from:function(t){var e,i,n,r,o,s,a=la(t),l="function"==typeof this?this:Array,u=arguments.length,h=u>1?arguments[1]:void 0,c=void 0!==h,d=cc(a),f=0;if(c&&(h=Bs(h,u>2?arguments[2]:void 0,2)),null==d||l==Array&&Ec(d))for(i=new l(e=oa(a.length));e>f;f++)s=c?h(a[f],f):a[f],Wl(i,f,s);else for(o=(r=d.call(a)).next,i=new l;!(n=o.call(r)).done;f++)s=c?Tc(r,h,[n.value,f],!0):n.value,Wl(i,f,s);return i.length=f,i}});var Nc=Vs.Array.from,Rc=ba("iterator"),Fc=function(t){var e=Object(t);return void 0!==e[Rc]||"@@iterator"in e||Vl.hasOwnProperty(Mu(e))};var Hc=function(t){if(Fc(Object(t))||"[object Arguments]"===Object.prototype.toString.call(t))return Nc(t)};var Gc=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")};var Wc=function(t){return Mc(t)||Hc(t)||Gc()},zc=ba("isConcatSpreadable"),Vc=Na>=51||!ms((function(){var t=[];return t[zc]=!1,t.concat()[0]!==t})),Uc=Fa("concat"),Bc=function(t){if(!Ms(t))return!1;var e=t[zc];return void 0!==e?!!e:ta(t)};Qs({target:"Array",proto:!0,forced:!Vc||!Uc},{concat:function(t){var e,i,n,r,o,s=la(this),a=wa(s,0),l=0;for(e=-1,n=arguments.length;e<n;e++)if(o=-1===e?s:arguments[e],Bc(o)){if(l+(r=oa(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(i=0;i<r;i++,l++)i in o&&Wl(a,l,o[i])}else{if(l>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Wl(a,l++,o)}return a.length=l,a}});var Xc=Da("Array").concat,qc=Array.prototype,Zc=function(t){var e=t.concat;return t===qc||t instanceof Array&&e===qc.concat?Xc:e},Jc=Object.assign,$c=Object.defineProperty,Kc=!Jc||ms((function(){if(vs&&1!==Jc({b:1},Jc($c({},"a",{enumerable:!0,get:function(){$c(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},i=Symbol();return t[i]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=Jc({},t)[i]||"abcdefghijklmnopqrst"!=jl(Jc({},e)).join("")}))?function(t,e){for(var i=la(t),n=arguments.length,r=1,o=Hl.f,s=bs.f;n>r;)for(var a,l=Ds(arguments[r++]),u=o?jl(l).concat(o(l)):jl(l),h=u.length,c=0;h>c;)a=u[c++],vs&&!s.call(l,a)||(i[a]=l[a]);return i}:Jc;Qs({target:"Object",stat:!0,forced:Object.assign!==Kc},{assign:Kc});var Qc=Vs.Object.assign,td=Pa.some,ed=nl("some"),id=za("some");Qs({target:"Array",proto:!0,forced:!ed||!id},{some:function(t){return td(this,t,arguments.length>1?arguments[1]:void 0)}});var nd=Da("Array").some,rd=Array.prototype,od=function(t){var e=t.some;return t===rd||t instanceof Array&&e===rd.some?nd:e},sd=Jh;hh("asyncIterator"),hh("hasInstance"),hh("isConcatSpreadable"),hh("match"),hh("matchAll"),hh("replace"),hh("search"),hh("species"),hh("split"),hh("toPrimitive"),hh("toStringTag"),hh("unscopables"),Eu(Math,"Math",!0),Eu(ps.JSON,"JSON",!0);var ad=Vs.Symbol;hh("asyncDispose"),hh("dispose"),hh("observable"),hh("patternMatch"),hh("replaceAll");var ld=ad,ud=ds((function(t){function e(i){return t.exports=e="function"==typeof ld&&"symbol"==typeof sd?function(t){return typeof t}:function(t){return t&&"function"==typeof ld&&t.constructor===ld&&t!==ld.prototype?"symbol":typeof t},e(i)}t.exports=e})),hd=ms((function(){jl(1)}));Qs({target:"Object",stat:!0,forced:hd},{keys:function(t){return jl(la(t))}});var cd=Vs.Object.keys,dd=!ms((function(){return Object.isExtensible(Object.preventExtensions({}))})),fd=ds((function(t){var e=Zs.f,i=fa("meta"),n=0,r=Object.isExtensible||function(){return!0},o=function(t){e(t,i,{value:{objectID:"O"+ ++n,weakData:{}}})},s=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!Ms(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!Ps(t,i)){if(!r(t))return"F";if(!e)return"E";o(t)}return t[i].objectID},getWeakData:function(t,e){if(!Ps(t,i)){if(!r(t))return!0;if(!e)return!1;o(t)}return t[i].weakData},onFreeze:function(t){return dd&&s.REQUIRED&&r(t)&&!Ps(t,i)&&o(t),t}};El[i]=!0})),pd=(fd.REQUIRED,fd.fastKey,fd.getWeakData,fd.onFreeze,ds((function(t){var e=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,i,n,r,o){var s,a,l,u,h,c,d,f=Bs(i,n,r?2:1);if(o)s=t;else{if("function"!=typeof(a=cc(t)))throw TypeError("Target is not iterable");if(Ec(a)){for(l=0,u=oa(t.length);u>l;l++)if((h=r?f(Xs(d=t[l])[0],d[1]):f(t[l]))&&h instanceof e)return h;return new e(!1)}s=a.call(t)}for(c=s.next;!(d=c.call(s)).done;)if("object"==typeof(h=Tc(s,f,d.value,r))&&h&&h instanceof e)return h;return new e(!1)}).stop=function(t){return new e(!0,t)}}))),md=function(t,e,i){if(!(t instanceof e))throw TypeError("Incorrect "+(i?i+" ":"")+"invocation");return t},vd=Zs.f,gd=Pa.forEach,yd=uu.set,bd=uu.getterFor,_d=function(t,e,i){var n,r=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),s=r?"set":"add",a=ps[t],l=a&&a.prototype,u={};if(vs&&"function"==typeof a&&(o||l.forEach&&!ms((function(){(new a).entries().next()})))){n=e((function(e,i){yd(md(e,n,t),{type:t,collection:new a}),null!=i&&pd(i,e[s],e,r)}));var h=bd(t);gd(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var e="add"==t||"set"==t;t in l&&(!o||"clear"!=t)&&Js(n.prototype,t,(function(i,n){var r=h(this).collection;if(!e&&o&&!Ms(i))return"get"==t&&void 0;var s=r[t](0===i?0:i,n);return e?this:s}))})),o||vd(n.prototype,"size",{configurable:!0,get:function(){return h(this).collection.size}})}else n=i.getConstructor(e,t,r,s),fd.REQUIRED=!0;return Eu(n,t,!1,!0),u[t]=n,Qs({global:!0,forced:!0},u),o||i.setStrong(n,t,r),n},wd=function(t,e,i){for(var n in e)i&&i.unsafe&&t[n]?t[n]=e[n]:ju(t,n,e[n],i);return t},kd=ba("species"),Sd=Zs.f,Dd=fd.fastKey,xd=uu.set,Od=uu.getterFor,Md={getConstructor:function(t,e,i,n){var r=t((function(t,o){md(t,r,e),xd(t,{type:e,index:ku(null),first:void 0,last:void 0,size:0}),vs||(t.size=0),null!=o&&pd(o,t[n],t,i)})),o=Od(e),s=function(t,e,i){var n,r,s=o(t),l=a(t,e);return l?l.value=i:(s.last=l={index:r=Dd(e,!0),key:e,value:i,previous:n=s.last,next:void 0,removed:!1},s.first||(s.first=l),n&&(n.next=l),vs?s.size++:t.size++,"F"!==r&&(s.index[r]=l)),t},a=function(t,e){var i,n=o(t),r=Dd(e);if("F"!==r)return n.index[r];for(i=n.first;i;i=i.next)if(i.key==e)return i};return wd(r.prototype,{clear:function(){for(var t=o(this),e=t.index,i=t.first;i;)i.removed=!0,i.previous&&(i.previous=i.previous.next=void 0),delete e[i.index],i=i.next;t.first=t.last=void 0,vs?t.size=0:this.size=0},delete:function(t){var e=o(this),i=a(this,t);if(i){var n=i.next,r=i.previous;delete e.index[i.index],i.removed=!0,r&&(r.next=n),n&&(n.previous=r),e.first==i&&(e.first=n),e.last==i&&(e.last=r),vs?e.size--:this.size--}return!!i},forEach:function(t){for(var e,i=o(this),n=Bs(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:i.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!a(this,t)}}),wd(r.prototype,i?{get:function(t){var e=a(this,t);return e&&e.value},set:function(t,e){return s(this,0===t?0:t,e)}}:{add:function(t){return s(this,t=0===t?0:t,t)}}),vs&&Sd(r.prototype,"size",{get:function(){return o(this).size}}),r},setStrong:function(t,e,i){var n=e+" Iterator",r=Od(e),o=Od(n);Hu(t,e,(function(t,e){xd(this,{type:n,target:t,state:r(t),kind:e,last:void 0})}),(function(){for(var t=o(this),e=t.kind,i=t.last;i&&i.removed;)i=i.previous;return t.target&&(t.last=i=i?i.next:t.state.first)?"keys"==e?{value:i.key,done:!1}:"values"==e?{value:i.value,done:!1}:{value:[i.key,i.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),i?"entries":"values",!i,!0),function(t){var e=Aa(t),i=Zs.f;vs&&e&&!e[kd]&&i(e,kd,{configurable:!0,get:function(){return this}})}(e)}},Td=(_d("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Md),Vs.Map),Cd=xc;var Pd=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t};var Ed=function(t,e){return!e||"object"!==ud(e)&&"function"!=typeof e?Pd(t):e},Ad=ms((function(){fu(1)}));Qs({target:"Object",stat:!0,forced:Ad,sham:!hu},{getPrototypeOf:function(t){return fu(la(t))}});var Ld=Vs.Object.getPrototypeOf;Qs({target:"Object",stat:!0},{setPrototypeOf:Iu});var Id=Vs.Object.setPrototypeOf,jd=ds((function(t){function e(i){return t.exports=e=Id?Ld:function(t){return t.__proto__||Ld(t)},e(i)}t.exports=e}));Qs({target:"Object",stat:!0,sham:!vs},{create:ku});var Yd=Vs.Object,Nd=function(t,e){return Yd.create(t,e)},Rd=Nd,Fd=ds((function(t){function e(i,n){return t.exports=e=Id||function(t,e){return t.__proto__=e,t},e(i,n)}t.exports=e}));for(var Hd=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Rd(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Fd(t,e)},Gd=[],Wd=0;Wd<256;Wd++)Gd[Wd]=(Wd+256).toString(16).substr(1);function zd(t,e){var i=e||0,n=Gd;return n[t[i++]]+n[t[i++]]+n[t[i++]]+n[t[i++]]+"-"+n[t[i++]]+n[t[i++]]+"-"+n[t[i++]]+n[t[i++]]+"-"+n[t[i++]]+n[t[i++]]+"-"+n[t[i++]]+n[t[i++]]+n[t[i++]]+n[t[i++]]+n[t[i++]]+n[t[i++]]}for(var Vd=function(){if("undefined"!=typeof crypto&&crypto.getRandomValues){var t=new Uint8Array(16);return function(){return crypto.getRandomValues(t),t}}var e=new Array(16);return function(){for(var t,i=0;i<16;i++)0==(3&i)&&(t=4294967296*Math.random()),e[i]=t>>>((3&i)<<3)&255;return e}}(),Ud=[],Bd=0;Bd<256;Bd++)Ud[Bd]=(Bd+256).toString(16).substr(1);var Xd=Vd();Xd[0],Xd[1],Xd[2],Xd[3],Xd[4],Xd[5],Xd[6],Xd[7];
|
||
/**
|
||
* vis-util
|
||
* https://github.com/visjs/vis-util
|
||
*
|
||
* utilitie collection for visjs
|
||
*
|
||
* @version 2.1.0
|
||
* @date 2020-01-12T20:17:27.848Z
|
||
*
|
||
* @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.
|
||
*/
|
||
var qd="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Zd(t,e){return t(e={exports:{}},e.exports),e.exports}var Jd=function(t){return t&&t.Math==Math&&t},$d=Jd("object"==typeof globalThis&&globalThis)||Jd("object"==typeof window&&window)||Jd("object"==typeof self&&self)||Jd("object"==typeof qd&&qd)||Function("return this")(),Kd=function(t){try{return!!t()}catch(t){return!0}},Qd=!Kd((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),tf={}.propertyIsEnumerable,ef=Object.getOwnPropertyDescriptor,nf={f:ef&&!tf.call({1:2},1)?function(t){var e=ef(this,t);return!!e&&e.enumerable}:tf},rf=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},of={}.toString,sf=function(t){return of.call(t).slice(8,-1)},af="".split,lf=Kd((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==sf(t)?af.call(t,""):Object(t)}:Object,uf=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},hf=function(t){return lf(uf(t))},cf=function(t){return"object"==typeof t?null!==t:"function"==typeof t},df=function(t,e){if(!cf(t))return t;var i,n;if(e&&"function"==typeof(i=t.toString)&&!cf(n=i.call(t)))return n;if("function"==typeof(i=t.valueOf)&&!cf(n=i.call(t)))return n;if(!e&&"function"==typeof(i=t.toString)&&!cf(n=i.call(t)))return n;throw TypeError("Can't convert object to primitive value")},ff={}.hasOwnProperty,pf=function(t,e){return ff.call(t,e)},mf=$d.document,vf=cf(mf)&&cf(mf.createElement),gf=function(t){return vf?mf.createElement(t):{}},yf=!Qd&&!Kd((function(){return 7!=Object.defineProperty(gf("div"),"a",{get:function(){return 7}}).a})),bf=Object.getOwnPropertyDescriptor,_f={f:Qd?bf:function(t,e){if(t=hf(t),e=df(e,!0),yf)try{return bf(t,e)}catch(t){}if(pf(t,e))return rf(!nf.f.call(t,e),t[e])}},wf=/#|\.prototype\./,kf=function(t,e){var i=Df[Sf(t)];return i==Of||i!=xf&&("function"==typeof e?Kd(e):!!e)},Sf=kf.normalize=function(t){return String(t).replace(wf,".").toLowerCase()},Df=kf.data={},xf=kf.NATIVE="N",Of=kf.POLYFILL="P",Mf=kf,Tf={},Cf=function(t,e,i){if(function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function")}(t),void 0===e)return t;switch(i){case 0:return function(){return t.call(e)};case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,r){return t.call(e,i,n,r)}}return function(){return t.apply(e,arguments)}},Pf=function(t){if(!cf(t))throw TypeError(String(t)+" is not an object");return t},Ef=Object.defineProperty,Af={f:Qd?Ef:function(t,e,i){if(Pf(t),e=df(e,!0),Pf(i),yf)try{return Ef(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(t[e]=i.value),t}},Lf=Qd?function(t,e,i){return Af.f(t,e,rf(1,i))}:function(t,e,i){return t[e]=i,t},If=_f.f,jf=function(t){var e=function(e,i,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,i)}return new t(e,i,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e},Yf=function(t,e){var i,n,r,o,s,a,l,u,h=t.target,c=t.global,d=t.stat,f=t.proto,p=c?$d:d?$d[h]:($d[h]||{}).prototype,m=c?Tf:Tf[h]||(Tf[h]={}),v=m.prototype;for(r in e)i=!Mf(c?r:h+(d?".":"#")+r,t.forced)&&p&&pf(p,r),s=m[r],i&&(a=t.noTargetGet?(u=If(p,r))&&u.value:p[r]),o=i&&a?a:e[r],i&&typeof s==typeof o||(l=t.bind&&i?Cf(o,$d):t.wrap&&i?jf(o):f&&"function"==typeof o?Cf(Function.call,o):o,(t.sham||o&&o.sham||s&&s.sham)&&Lf(l,"sham",!0),m[r]=l,f&&(pf(Tf,n=h+"Prototype")||Lf(Tf,n,{}),Tf[n][r]=o,t.real&&v&&!v[r]&&Lf(v,r,o)))},Nf=Array.isArray||function(t){return"Array"==sf(t)};Yf({target:"Array",stat:!0},{isArray:Nf});var Rf=Tf.Array.isArray,Ff={},Hf=$d["__core-js_shared__"]||function(t,e){try{Lf($d,t,e)}catch(i){$d[t]=e}return e}("__core-js_shared__",{}),Gf=Function.toString;"function"!=typeof Hf.inspectSource&&(Hf.inspectSource=function(t){return Gf.call(t)});var Wf,zf,Vf,Uf=Hf.inspectSource,Bf=$d.WeakMap,Xf="function"==typeof Bf&&/native code/.test(Uf(Bf)),qf=Zd((function(t){(t.exports=function(t,e){return Hf[t]||(Hf[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.0",mode:"pure",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),Zf=0,Jf=Math.random(),$f=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++Zf+Jf).toString(36)},Kf=qf("keys"),Qf=function(t){return Kf[t]||(Kf[t]=$f(t))},tp={},ep=$d.WeakMap;if(Xf){var ip=new ep,np=ip.get,rp=ip.has,op=ip.set;Wf=function(t,e){return op.call(ip,t,e),e},zf=function(t){return np.call(ip,t)||{}},Vf=function(t){return rp.call(ip,t)}}else{var sp=Qf("state");tp[sp]=!0,Wf=function(t,e){return Lf(t,sp,e),e},zf=function(t){return pf(t,sp)?t[sp]:{}},Vf=function(t){return pf(t,sp)}}var ap,lp,up,hp={set:Wf,get:zf,has:Vf,enforce:function(t){return Vf(t)?zf(t):Wf(t,{})},getterFor:function(t){return function(e){var i;if(!cf(e)||(i=zf(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return i}}},cp=function(t){return Object(uf(t))},dp=!Kd((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),fp=Qf("IE_PROTO"),pp=Object.prototype,mp=dp?Object.getPrototypeOf:function(t){return t=cp(t),pf(t,fp)?t[fp]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?pp:null},vp=!!Object.getOwnPropertySymbols&&!Kd((function(){return!String(Symbol())})),gp=vp&&!Symbol.sham&&"symbol"==typeof Symbol(),yp=qf("wks"),bp=$d.Symbol,_p=gp?bp:$f,wp=function(t){return pf(yp,t)||(vp&&pf(bp,t)?yp[t]=bp[t]:yp[t]=_p("Symbol."+t)),yp[t]},kp=(wp("iterator"),!1);[].keys&&("next"in(up=[].keys())?(lp=mp(mp(up)))!==Object.prototype&&(ap=lp):kp=!0),null==ap&&(ap={});var Sp,Dp={IteratorPrototype:ap,BUGGY_SAFARI_ITERATORS:kp},xp=Math.ceil,Op=Math.floor,Mp=function(t){return isNaN(t=+t)?0:(t>0?Op:xp)(t)},Tp=Math.min,Cp=function(t){return t>0?Tp(Mp(t),9007199254740991):0},Pp=Math.max,Ep=Math.min,Ap=function(t,e){var i=Mp(t);return i<0?Pp(i+e,0):Ep(i,e)},Lp=function(t){return function(e,i,n){var r,o=hf(e),s=Cp(o.length),a=Ap(n,s);if(t&&i!=i){for(;s>a;)if((r=o[a++])!=r)return!0}else for(;s>a;a++)if((t||a in o)&&o[a]===i)return t||a||0;return!t&&-1}},Ip={includes:Lp(!0),indexOf:Lp(!1)},jp=Ip.indexOf,Yp=function(t,e){var i,n=hf(t),r=0,o=[];for(i in n)!pf(tp,i)&&pf(n,i)&&o.push(i);for(;e.length>r;)pf(n,i=e[r++])&&(~jp(o,i)||o.push(i));return o},Np=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Rp=Object.keys||function(t){return Yp(t,Np)},Fp=Qd?Object.defineProperties:function(t,e){Pf(t);for(var i,n=Rp(e),r=n.length,o=0;r>o;)Af.f(t,i=n[o++],e[i]);return t},Hp=function(t){return"function"==typeof t?t:void 0},Gp=function(t,e){return arguments.length<2?Hp(Tf[t])||Hp($d[t]):Tf[t]&&Tf[t][e]||$d[t]&&$d[t][e]},Wp=Gp("document","documentElement"),zp=Qf("IE_PROTO"),Vp=function(){},Up=function(t){return"<script>"+t+"<\/script>"},Bp=function(){try{Sp=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;Bp=Sp?function(t){t.write(Up("")),t.close();var e=t.parentWindow.Object;return t=null,e}(Sp):((e=gf("iframe")).style.display="none",Wp.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Up("document.F=Object")),t.close(),t.F);for(var i=Np.length;i--;)delete Bp.prototype[Np[i]];return Bp()};tp[zp]=!0;var Xp=Object.create||function(t,e){var i;return null!==t?(Vp.prototype=Pf(t),i=new Vp,Vp.prototype=null,i[zp]=t):i=Bp(),void 0===e?i:Fp(i,e)},qp={};qp[wp("toStringTag")]="z";var Zp="[object z]"===String(qp),Jp=wp("toStringTag"),$p="Arguments"==sf(function(){return arguments}()),Kp=Zp?sf:function(t){var e,i,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),Jp))?i:$p?sf(e):"Object"==(n=sf(e))&&"function"==typeof e.callee?"Arguments":n},Qp=Zp?{}.toString:function(){return"[object "+Kp(this)+"]"},tm=Af.f,em=wp("toStringTag"),im=function(t,e,i,n){if(t){var r=i?t:t.prototype;pf(r,em)||tm(r,em,{configurable:!0,value:e}),n&&!Zp&&Lf(r,"toString",Qp)}},nm=Dp.IteratorPrototype,rm=function(){return this},om=(Object.setPrototypeOf||"__proto__"in{}&&function(){var t,e=!1,i={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(i,[]),e=i instanceof Array}catch(t){}}(),function(t,e,i,n){n&&n.enumerable?t[e]=i:Lf(t,e,i)}),sm=Dp.IteratorPrototype,am=Dp.BUGGY_SAFARI_ITERATORS,lm=wp("iterator"),um=function(){return this},hm=function(t,e,i,n,r,o,s){!function(t,e,i){var n=e+" Iterator";t.prototype=Xp(nm,{next:rf(1,i)}),im(t,n,!1,!0),Ff[n]=rm}(i,e,n);var a,l,u,h=function(t){if(t===r&&m)return m;if(!am&&t in f)return f[t];switch(t){case"keys":case"values":case"entries":return function(){return new i(this,t)}}return function(){return new i(this)}},c=e+" Iterator",d=!1,f=t.prototype,p=f[lm]||f["@@iterator"]||r&&f[r],m=!am&&p||h(r),v="Array"==e&&f.entries||p;if(v&&(a=mp(v.call(new t)),sm!==Object.prototype&&a.next&&(im(a,c,!0,!0),Ff[c]=um)),"values"==r&&p&&"values"!==p.name&&(d=!0,m=function(){return p.call(this)}),s&&f[lm]!==m&&Lf(f,lm,m),Ff[e]=m,r)if(l={values:h("values"),keys:o?m:h("keys"),entries:h("entries")},s)for(u in l)!am&&!d&&u in f||om(f,u,l[u]);else Yf({target:e,proto:!0,forced:am||d},l);return l},cm=hp.set,dm=hp.getterFor("Array Iterator");hm(Array,"Array",(function(t,e){cm(this,{type:"Array Iterator",target:hf(t),index:0,kind:e})}),(function(){var t=dm(this),e=t.target,i=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==i?{value:n,done:!1}:"values"==i?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values");Ff.Arguments=Ff.Array;var fm=wp("toStringTag");for(var pm in{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}){var mm=$d[pm],vm=mm&&mm.prototype;vm&&!vm[fm]&&Lf(vm,fm,pm),Ff[pm]=Ff.Array}var gm=function(t){return function(e,i){var n,r,o=String(uf(e)),s=Mp(i),a=o.length;return s<0||s>=a?t?"":void 0:(n=o.charCodeAt(s))<55296||n>56319||s+1===a||(r=o.charCodeAt(s+1))<56320||r>57343?t?o.charAt(s):n:t?o.slice(s,s+2):r-56320+(n-55296<<10)+65536}},ym={codeAt:gm(!1),charAt:gm(!0)}.charAt,bm=hp.set,_m=hp.getterFor("String Iterator");hm(String,"String",(function(t){bm(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=_m(this),i=e.string,n=e.index;return n>=i.length?{value:void 0,done:!0}:(t=ym(i,n),e.index+=t.length,{value:t,done:!1})}));var wm=wp("iterator"),km=function(t){if(null!=t)return t[wm]||t["@@iterator"]||Ff[Kp(t)]};wp("iterator");Yf({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}});Tf.Date.now;Yf({target:"Object",stat:!0,forced:!Qd,sham:!Qd},{defineProperty:Af.f});Zd((function(t){var e=Tf.Object,i=t.exports=function(t,i,n){return e.defineProperty(t,i,n)};e.defineProperty.sham&&(i.sham=!0)}));Yf({target:"Object",stat:!0,forced:!Qd,sham:!Qd},{defineProperties:Fp});Zd((function(t){var e=Tf.Object,i=t.exports=function(t,i){return e.defineProperties(t,i)};e.defineProperties.sham&&(i.sham=!0)}));var Sm=Np.concat("length","prototype"),Dm={f:Object.getOwnPropertyNames||function(t){return Yp(t,Sm)}},xm={f:Object.getOwnPropertySymbols},Om=Gp("Reflect","ownKeys")||function(t){var e=Dm.f(Pf(t)),i=xm.f;return i?e.concat(i(t)):e},Mm=function(t,e,i){var n=df(e);n in t?Af.f(t,n,rf(0,i)):t[n]=i};Yf({target:"Object",stat:!0,sham:!Qd},{getOwnPropertyDescriptors:function(t){for(var e,i,n=hf(t),r=_f.f,o=Om(n),s={},a=0;o.length>a;)void 0!==(i=r(n,e=o[a++]))&&Mm(s,e,i);return s}});Tf.Object.getOwnPropertyDescriptors;var Tm=_f.f,Cm=Kd((function(){Tm(1)}));Yf({target:"Object",stat:!0,forced:!Qd||Cm,sham:!Qd},{getOwnPropertyDescriptor:function(t,e){return Tm(hf(t),e)}});Zd((function(t){var e=Tf.Object,i=t.exports=function(t,i){return e.getOwnPropertyDescriptor(t,i)};e.getOwnPropertyDescriptor.sham&&(i.sham=!0)}));var Pm=Dm.f,Em={}.toString,Am="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Lm={f:function(t){return Am&&"[object Window]"==Em.call(t)?function(t){try{return Pm(t)}catch(t){return Am.slice()}}(t):Pm(hf(t))}},Im={f:wp},jm=Af.f,Ym=function(t){var e=Tf.Symbol||(Tf.Symbol={});pf(e,t)||jm(e,t,{value:Im.f(t)})},Nm=wp("species"),Rm=function(t,e){var i;return Nf(t)&&("function"!=typeof(i=t.constructor)||i!==Array&&!Nf(i.prototype)?cf(i)&&null===(i=i[Nm])&&(i=void 0):i=void 0),new(void 0===i?Array:i)(0===e?0:e)},Fm=[].push,Hm=function(t){var e=1==t,i=2==t,n=3==t,r=4==t,o=6==t,s=5==t||o;return function(a,l,u,h){for(var c,d,f=cp(a),p=lf(f),m=Cf(l,u,3),v=Cp(p.length),g=0,y=h||Rm,b=e?y(a,v):i?y(a,0):void 0;v>g;g++)if((s||g in p)&&(d=m(c=p[g],g,f),t))if(e)b[g]=d;else if(d)switch(t){case 3:return!0;case 5:return c;case 6:return g;case 2:Fm.call(b,c)}else if(r)return!1;return o?-1:n||r?r:b}},Gm={forEach:Hm(0),map:Hm(1),filter:Hm(2),some:Hm(3),every:Hm(4),find:Hm(5),findIndex:Hm(6)},Wm=Gm.forEach,zm=Qf("hidden"),Vm=wp("toPrimitive"),Um=hp.set,Bm=hp.getterFor("Symbol"),Xm=Object.prototype,qm=$d.Symbol,Zm=Gp("JSON","stringify"),Jm=_f.f,$m=Af.f,Km=Lm.f,Qm=nf.f,tv=qf("symbols"),ev=qf("op-symbols"),iv=qf("string-to-symbol-registry"),nv=qf("symbol-to-string-registry"),rv=qf("wks"),ov=$d.QObject,sv=!ov||!ov.prototype||!ov.prototype.findChild,av=Qd&&Kd((function(){return 7!=Xp($m({},"a",{get:function(){return $m(this,"a",{value:7}).a}})).a}))?function(t,e,i){var n=Jm(Xm,e);n&&delete Xm[e],$m(t,e,i),n&&t!==Xm&&$m(Xm,e,n)}:$m,lv=function(t,e){var i=tv[t]=Xp(qm.prototype);return Um(i,{type:"Symbol",tag:t,description:e}),Qd||(i.description=e),i},uv=vp&&"symbol"==typeof qm.iterator?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof qm},hv=function(t,e,i){t===Xm&&hv(ev,e,i),Pf(t);var n=df(e,!0);return Pf(i),pf(tv,n)?(i.enumerable?(pf(t,zm)&&t[zm][n]&&(t[zm][n]=!1),i=Xp(i,{enumerable:rf(0,!1)})):(pf(t,zm)||$m(t,zm,rf(1,{})),t[zm][n]=!0),av(t,n,i)):$m(t,n,i)},cv=function(t,e){Pf(t);var i=hf(e),n=Rp(i).concat(mv(i));return Wm(n,(function(e){Qd&&!dv.call(i,e)||hv(t,e,i[e])})),t},dv=function(t){var e=df(t,!0),i=Qm.call(this,e);return!(this===Xm&&pf(tv,e)&&!pf(ev,e))&&(!(i||!pf(this,e)||!pf(tv,e)||pf(this,zm)&&this[zm][e])||i)},fv=function(t,e){var i=hf(t),n=df(e,!0);if(i!==Xm||!pf(tv,n)||pf(ev,n)){var r=Jm(i,n);return!r||!pf(tv,n)||pf(i,zm)&&i[zm][n]||(r.enumerable=!0),r}},pv=function(t){var e=Km(hf(t)),i=[];return Wm(e,(function(t){pf(tv,t)||pf(tp,t)||i.push(t)})),i},mv=function(t){var e=t===Xm,i=Km(e?ev:hf(t)),n=[];return Wm(i,(function(t){!pf(tv,t)||e&&!pf(Xm,t)||n.push(tv[t])})),n};if(vp||(om((qm=function(){if(this instanceof qm)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=$f(t),i=function(t){this===Xm&&i.call(ev,t),pf(this,zm)&&pf(this[zm],e)&&(this[zm][e]=!1),av(this,e,rf(1,t))};return Qd&&sv&&av(Xm,e,{configurable:!0,set:i}),lv(e,t)}).prototype,"toString",(function(){return Bm(this).tag})),nf.f=dv,Af.f=hv,_f.f=fv,Dm.f=Lm.f=pv,xm.f=mv,Qd&&$m(qm.prototype,"description",{configurable:!0,get:function(){return Bm(this).description}})),gp||(Im.f=function(t){return lv(wp(t),t)}),Yf({global:!0,wrap:!0,forced:!vp,sham:!vp},{Symbol:qm}),Wm(Rp(rv),(function(t){Ym(t)})),Yf({target:"Symbol",stat:!0,forced:!vp},{for:function(t){var e=String(t);if(pf(iv,e))return iv[e];var i=qm(e);return iv[e]=i,nv[i]=e,i},keyFor:function(t){if(!uv(t))throw TypeError(t+" is not a symbol");if(pf(nv,t))return nv[t]},useSetter:function(){sv=!0},useSimple:function(){sv=!1}}),Yf({target:"Object",stat:!0,forced:!vp,sham:!Qd},{create:function(t,e){return void 0===e?Xp(t):cv(Xp(t),e)},defineProperty:hv,defineProperties:cv,getOwnPropertyDescriptor:fv}),Yf({target:"Object",stat:!0,forced:!vp},{getOwnPropertyNames:pv,getOwnPropertySymbols:mv}),Yf({target:"Object",stat:!0,forced:Kd((function(){xm.f(1)}))},{getOwnPropertySymbols:function(t){return xm.f(cp(t))}}),Zm){var vv=!vp||Kd((function(){var t=qm();return"[null]"!=Zm([t])||"{}"!=Zm({a:t})||"{}"!=Zm(Object(t))}));Yf({target:"JSON",stat:!0,forced:vv},{stringify:function(t,e,i){for(var n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e,(cf(e)||void 0!==t)&&!uv(t))return Nf(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!uv(e))return e}),r[1]=e,Zm.apply(null,r)}})}qm.prototype[Vm]||Lf(qm.prototype,Vm,qm.prototype.valueOf),im(qm,"Symbol"),tp[zm]=!0;Tf.Object.getOwnPropertySymbols;Yf({target:"Object",stat:!0,sham:!Qd},{create:Xp});var gv=Kd((function(){Rp(1)}));Yf({target:"Object",stat:!0,forced:gv},{keys:function(t){return Rp(cp(t))}});Tf.Object.keys;var yv="\t\n\v\f\r \u2028\u2029\ufeff",bv="["+yv+"]",_v=RegExp("^"+bv+bv+"*"),wv=RegExp(bv+bv+"*$"),kv=function(t){return function(e){var i=String(uf(e));return 1&t&&(i=i.replace(_v,"")),2&t&&(i=i.replace(wv,"")),i}},Sv={start:kv(1),end:kv(2),trim:kv(3)},Dv=Sv.trim;Yf({target:"String",proto:!0,forced:function(t){return Kd((function(){return!!yv[t]()||"
"!="
"[t]()||yv[t].name!==t}))}("trim")},{trim:function(){return Dv(this)}});var xv=function(t){return Tf[t+"Prototype"]},Ov=(xv("String").trim,function(t,e){var i=[][t];return!i||!Kd((function(){i.call(null,e||function(){throw 1},1)}))}),Mv=Gm.forEach,Tv=Ov("forEach")?function(t){return Mv(this,t,arguments.length>1?arguments[1]:void 0)}:[].forEach;Yf({target:"Array",proto:!0,forced:[].forEach!=Tv},{forEach:Tv});xv("Array").forEach;var Cv,Pv,Ev=Gp("navigator","userAgent")||"",Av=$d.process,Lv=Av&&Av.versions,Iv=Lv&&Lv.v8;Iv?Pv=(Cv=Iv.split("."))[0]+Cv[1]:Ev&&(!(Cv=Ev.match(/Edge\/(\d+)/))||Cv[1]>=74)&&(Cv=Ev.match(/Chrome\/(\d+)/))&&(Pv=Cv[1]);var jv=Pv&&+Pv,Yv=wp("species"),Nv=function(t){return jv>=51||!Kd((function(){var e=[];return(e.constructor={})[Yv]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Rv=Gm.map,Fv=Nv("map"),Hv=Fv&&!Kd((function(){[].map.call({length:-1,0:1},(function(t){throw t}))}));Yf({target:"Array",proto:!0,forced:!Fv||!Hv},{map:function(t){return Rv(this,t,arguments.length>1?arguments[1]:void 0)}});xv("Array").map;var Gv=Sv.trim,Wv=$d.parseInt,zv=/^[+-]?0[Xx]/,Vv=8!==Wv(yv+"08")||22!==Wv(yv+"0x16")?function(t,e){var i=Gv(String(t));return Wv(i,e>>>0||(zv.test(i)?16:10))}:Wv;Yf({global:!0,forced:parseInt!=Vv},{parseInt:Vv});var Uv=nf.f,Bv=function(t){return function(e){for(var i,n=hf(e),r=Rp(n),o=r.length,s=0,a=[];o>s;)i=r[s++],Qd&&!Uv.call(n,i)||a.push(t?[i,n[i]]:n[i]);return a}},Xv={entries:Bv(!0),values:Bv(!1)}.values;Yf({target:"Object",stat:!0},{values:function(t){return Xv(t)}});Tf.Object.values;var qv=Gm.filter,Zv=Nv("filter"),Jv=Zv&&!Kd((function(){[].filter.call({length:-1,0:1},(function(t){throw t}))}));Yf({target:"Array",proto:!0,forced:!Zv||!Jv},{filter:function(t){return qv(this,t,arguments.length>1?arguments[1]:void 0)}});xv("Array").filter;var $v=wp("isConcatSpreadable"),Kv=jv>=51||!Kd((function(){var t=[];return t[$v]=!1,t.concat()[0]!==t})),Qv=Nv("concat"),tg=function(t){if(!cf(t))return!1;var e=t[$v];return void 0!==e?!!e:Nf(t)};Yf({target:"Array",proto:!0,forced:!Kv||!Qv},{concat:function(t){var e,i,n,r,o,s=cp(this),a=Rm(s,0),l=0;for(e=-1,n=arguments.length;e<n;e++)if(o=-1===e?s:arguments[e],tg(o)){if(l+(r=Cp(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(i=0;i<r;i++,l++)i in o&&Mm(a,l,o[i])}else{if(l>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Mm(a,l++,o)}return a.length=l,a}});xv("Array").concat;var eg=function(t,e,i,n){try{return n?e(Pf(i)[0],i[1]):e(i)}catch(e){var r=t.return;throw void 0!==r&&Pf(r.call(t)),e}},ig=wp("iterator"),ng=Array.prototype,rg=function(t){return void 0!==t&&(Ff.Array===t||ng[ig]===t)},og=wp("iterator"),sg=!1;try{var ag=0,lg={next:function(){return{done:!!ag++}},return:function(){sg=!0}};lg[og]=function(){return this},Array.from(lg,(function(){throw 2}))}catch(t){}var ug=!function(t,e){if(!e&&!sg)return!1;var i=!1;try{var n={};n[og]=function(){return{next:function(){return{done:i=!0}}}},t(n)}catch(t){}return i}((function(t){Array.from(t)}));Yf({target:"Array",stat:!0,forced:ug},{from:function(t){var e,i,n,r,o,s=cp(t),a="function"==typeof this?this:Array,l=arguments.length,u=l>1?arguments[1]:void 0,h=void 0!==u,c=0,d=km(s);if(h&&(u=Cf(u,l>2?arguments[2]:void 0,2)),null==d||a==Array&&rg(d))for(i=new a(e=Cp(s.length));e>c;c++)Mm(i,c,h?u(s[c],c):s[c]);else for(o=(r=d.call(s)).next,i=new a;!(n=o.call(r)).done;c++)Mm(i,c,h?eg(r,u,[n.value,c],!0):n.value);return i.length=c,i}});Tf.Array.from;var hg=wp("species"),cg=[].slice,dg=Math.max;Yf({target:"Array",proto:!0,forced:!Nv("slice")},{slice:function(t,e){var i,n,r,o=hf(this),s=Cp(o.length),a=Ap(t,s),l=Ap(void 0===e?s:e,s);if(Nf(o)&&("function"!=typeof(i=o.constructor)||i!==Array&&!Nf(i.prototype)?cf(i)&&null===(i=i[hg])&&(i=void 0):i=void 0,i===Array||void 0===i))return cg.call(o,a,l);for(n=new(void 0===i?Array:i)(dg(l-a,0)),r=0;a<l;a++,r++)a in o&&Mm(n,r,o[a]);return n.length=r,n}});var fg=xv("Array").slice,pg=Array.prototype,mg=function(t){var e=t.slice;return t===pg||t instanceof Array&&e===pg.slice?fg:e},vg=Kd((function(){mp(1)}));Yf({target:"Object",stat:!0,forced:vg,sham:!dp},{getPrototypeOf:function(t){return mp(cp(t))}});var gg=Tf.Object.getPrototypeOf,yg=Ip.indexOf,bg=[].indexOf,_g=!!bg&&1/[1].indexOf(1,-0)<0,wg=Ov("indexOf");Yf({target:"Array",proto:!0,forced:_g||wg},{indexOf:function(t){return _g?bg.apply(this,arguments)||0:yg(this,t,arguments.length>1?arguments[1]:void 0)}});xv("Array").indexOf;var kg=Rf,Sg=Object.assign,Dg=Object.defineProperty,xg=!Sg||Kd((function(){if(Qd&&1!==Sg({b:1},Sg(Dg({},"a",{enumerable:!0,get:function(){Dg(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},i=Symbol();return t[i]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=Sg({},t)[i]||"abcdefghijklmnopqrst"!=Rp(Sg({},e)).join("")}))?function(t,e){for(var i=cp(t),n=arguments.length,r=1,o=xm.f,s=nf.f;n>r;)for(var a,l=lf(arguments[r++]),u=o?Rp(l).concat(o(l)):Rp(l),h=u.length,c=0;h>c;)a=u[c++],Qd&&!s.call(l,a)||(i[a]=l[a]);return i}:Sg;Yf({target:"Object",stat:!0,forced:Object.assign!==xg},{assign:xg});Tf.Object.assign;Ym("iterator");var Og=Im.f("iterator");Ym("asyncIterator"),Ym("hasInstance"),Ym("isConcatSpreadable"),Ym("match"),Ym("matchAll"),Ym("replace"),Ym("search"),Ym("species"),Ym("split"),Ym("toPrimitive"),Ym("toStringTag"),Ym("unscopables"),im(Math,"Math",!0),im($d.JSON,"JSON",!0);var Mg=Tf.Symbol;Ym("asyncDispose"),Ym("dispose"),Ym("observable"),Ym("patternMatch"),Ym("replaceAll");for(var Tg=Mg,Cg=Zd((function(t){function e(i){return t.exports=e="function"==typeof Tg&&"symbol"==typeof Og?function(t){return typeof t}:function(t){return t&&"function"==typeof Tg&&t.constructor===Tg&&t!==Tg.prototype?"symbol":typeof t},e(i)}t.exports=e})),Pg=[],Eg=0;Eg<256;Eg++)Pg[Eg]=(Eg+256).toString(16).substr(1);for(var Ag=function(){if("undefined"!=typeof crypto&&crypto.getRandomValues){var t=new Uint8Array(16);return function(){return crypto.getRandomValues(t),t}}var e=new Array(16);return function(){for(var t,i=0;i<16;i++)0==(3&i)&&(t=4294967296*Math.random()),e[i]=t>>>((3&i)<<3)&255;return e}}(),Lg=[],Ig=0;Ig<256;Ig++)Lg[Ig]=(Ig+256).toString(16).substr(1);var jg=Ag();jg[0],jg[1],jg[2],jg[3],jg[4],jg[5],jg[6],jg[7];function Yg(t){return t instanceof Number||"number"==typeof t}function Ng(t){return t instanceof String||"string"==typeof t}function Rg(t,e,i,n){var r=!1;!0===n&&(r=null===e[i]&&void 0!==t[i]),r?delete t[i]:t[i]=e[i]}function Fg(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)||!0===i)if("object"===Cg(e[r])&&null!==e[r]&&gg(e[r])===Object.prototype)void 0===t[r]?t[r]=Fg({},e[r],i):"object"===Cg(t[r])&&null!==t[r]&&gg(t[r])===Object.prototype?Fg(t[r],e[r],i):Rg(t,e,r,n);else if(kg(e[r])){var o;t[r]=mg(o=e[r]).call(o)}else Rg(t,e,r,n);return t}function Hg(t){var e=Cg(t);return"object"===e?null===t?"null":t instanceof Boolean?"Boolean":t instanceof Number?"Number":t instanceof String?"String":kg(t)?"Array":t instanceof Date?"Date":"Object":"number"===e?"Number":"boolean"===e?"Boolean":"string"===e?"String":void 0===e?"undefined":e}var Gg=ds((function(t,e){t.exports=function(){var e,i;function n(){return e.apply(null,arguments)}function r(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function o(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function s(t){return void 0===t}function a(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function l(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function u(t,e){var i,n=[];for(i=0;i<t.length;++i)n.push(e(t[i],i));return n}function h(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function c(t,e){for(var i in e)h(e,i)&&(t[i]=e[i]);return h(e,"toString")&&(t.toString=e.toString),h(e,"valueOf")&&(t.valueOf=e.valueOf),t}function d(t,e,i,n){return Se(t,e,i,n,!0).utc()}function f(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function p(t){if(null==t._isValid){var e=f(t),n=i.call(e.parsedDateParts,(function(t){return null!=t})),r=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(r=r&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return r;t._isValid=r}return t._isValid}function m(t){var e=d(NaN);return null!=t?c(f(e),t):f(e).userInvalidated=!0,e}i=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),i=e.length>>>0,n=0;n<i;n++)if(n in e&&t.call(this,e[n],n,e))return!0;return!1};var v=n.momentProperties=[];function g(t,e){var i,n,r;if(s(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),s(e._i)||(t._i=e._i),s(e._f)||(t._f=e._f),s(e._l)||(t._l=e._l),s(e._strict)||(t._strict=e._strict),s(e._tzm)||(t._tzm=e._tzm),s(e._isUTC)||(t._isUTC=e._isUTC),s(e._offset)||(t._offset=e._offset),s(e._pf)||(t._pf=f(e)),s(e._locale)||(t._locale=e._locale),v.length>0)for(i=0;i<v.length;i++)s(r=e[n=v[i]])||(t[n]=r);return t}var y=!1;function b(t){g(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,n.updateOffset(this),y=!1)}function _(t){return t instanceof b||null!=t&&null!=t._isAMomentObject}function w(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function k(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=w(e)),i}function S(t,e,i){var n,r=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),s=0;for(n=0;n<r;n++)(i&&t[n]!==e[n]||!i&&k(t[n])!==k(e[n]))&&s++;return s+o}function D(t){!1===n.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function x(t,e){var i=!0;return c((function(){if(null!=n.deprecationHandler&&n.deprecationHandler(null,t),i){for(var r,o=[],s=0;s<arguments.length;s++){if(r="","object"==typeof arguments[s]){for(var a in r+="\n["+s+"] ",arguments[0])r+=a+": "+arguments[0][a]+", ";r=r.slice(0,-2)}else r=arguments[s];o.push(r)}D(t+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),i=!1}return e.apply(this,arguments)}),e)}var O,M={};function T(t,e){null!=n.deprecationHandler&&n.deprecationHandler(t,e),M[t]||(D(e),M[t]=!0)}function C(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function P(t,e){var i,n=c({},t);for(i in e)h(e,i)&&(o(t[i])&&o(e[i])?(n[i]={},c(n[i],t[i]),c(n[i],e[i])):null!=e[i]?n[i]=e[i]:delete n[i]);for(i in t)h(t,i)&&!h(e,i)&&o(t[i])&&(n[i]=c({},n[i]));return n}function E(t){null!=t&&this.set(t)}n.suppressDeprecationWarnings=!1,n.deprecationHandler=null,O=Object.keys?Object.keys:function(t){var e,i=[];for(e in t)h(t,e)&&i.push(e);return i};var A={};function L(t,e){var i=t.toLowerCase();A[i]=A[i+"s"]=A[e]=t}function I(t){return"string"==typeof t?A[t]||A[t.toLowerCase()]:void 0}function j(t){var e,i,n={};for(i in t)h(t,i)&&(e=I(i))&&(n[e]=t[i]);return n}var Y={};function N(t,e){Y[t]=e}function R(t,e,i){var n=""+Math.abs(t),r=e-n.length;return(t>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+n}var F=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,H=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,G={},W={};function z(t,e,i,n){var r=n;"string"==typeof n&&(r=function(){return this[n]()}),t&&(W[t]=r),e&&(W[e[0]]=function(){return R(r.apply(this,arguments),e[1],e[2])}),i&&(W[i]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function V(t,e){return t.isValid()?(e=U(e,t.localeData()),G[e]=G[e]||function(t){var e,i,n,r=t.match(F);for(e=0,i=r.length;e<i;e++)W[r[e]]?r[e]=W[r[e]]:r[e]=(n=r[e]).match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"");return function(e){var n,o="";for(n=0;n<i;n++)o+=C(r[n])?r[n].call(e,t):r[n];return o}}(e),G[e](t)):t.localeData().invalidDate()}function U(t,e){var i=5;function n(t){return e.longDateFormat(t)||t}for(H.lastIndex=0;i>=0&&H.test(t);)t=t.replace(H,n),H.lastIndex=0,i-=1;return t}var B=/\d/,X=/\d\d/,q=/\d{3}/,Z=/\d{4}/,J=/[+-]?\d{6}/,$=/\d\d?/,K=/\d\d\d\d?/,Q=/\d\d\d\d\d\d?/,tt=/\d{1,3}/,et=/\d{1,4}/,it=/[+-]?\d{1,6}/,nt=/\d+/,rt=/[+-]?\d+/,ot=/Z|[+-]\d\d:?\d\d/gi,st=/Z|[+-]\d\d(?::?\d\d)?/gi,at=/[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,lt={};function ut(t,e,i){lt[t]=C(e)?e:function(t,n){return t&&i?i:e}}function ht(t,e){return h(lt,t)?lt[t](e._strict,e._locale):new RegExp(ct(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,i,n,r){return e||i||n||r}))))}function ct(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var dt={};function ft(t,e){var i,n=e;for("string"==typeof t&&(t=[t]),a(e)&&(n=function(t,i){i[e]=k(t)}),i=0;i<t.length;i++)dt[t[i]]=n}function pt(t,e){ft(t,(function(t,i,n,r){n._w=n._w||{},e(t,n._w,n,r)}))}function mt(t,e,i){null!=e&&h(dt,t)&&dt[t](e,i._a,i,t)}function vt(t){return gt(t)?366:365}function gt(t){return t%4==0&&t%100!=0||t%400==0}z("Y",0,0,(function(){var t=this.year();return t<=9999?""+t:"+"+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"),L("year","y"),N("year",1),ut("Y",rt),ut("YY",$,X),ut("YYYY",et,Z),ut("YYYYY",it,J),ut("YYYYYY",it,J),ft(["YYYYY","YYYYYY"],0),ft("YYYY",(function(t,e){e[0]=2===t.length?n.parseTwoDigitYear(t):k(t)})),ft("YY",(function(t,e){e[0]=n.parseTwoDigitYear(t)})),ft("Y",(function(t,e){e[0]=parseInt(t,10)})),n.parseTwoDigitYear=function(t){return k(t)+(k(t)>68?1900:2e3)};var yt,bt=_t("FullYear",!0);function _t(t,e){return function(i){return null!=i?(kt(this,t,i),n.updateOffset(this,e),this):wt(this,t)}}function wt(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function kt(t,e,i){t.isValid()&&!isNaN(i)&&("FullYear"===e&>(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](i,t.month(),St(i,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](i))}function St(t,e){if(isNaN(t)||isNaN(e))return NaN;var i,n=(e%(i=12)+i)%i;return t+=(e-n)/12,1===n?gt(t)?29:28:31-n%7%2}yt=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)})),L("month","M"),N("month",8),ut("M",$),ut("MM",$,X),ut("MMM",(function(t,e){return e.monthsShortRegex(t)})),ut("MMMM",(function(t,e){return e.monthsRegex(t)})),ft(["M","MM"],(function(t,e){e[1]=k(t)-1})),ft(["MMM","MMMM"],(function(t,e,i,n){var r=i._locale.monthsParse(t,n,i._strict);null!=r?e[1]=r:f(i).invalidMonth=t}));var Dt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,xt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ot="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Mt(t,e,i){var n,r,o,s=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)o=d([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(o,"").toLocaleLowerCase();return i?"MMM"===e?-1!==(r=yt.call(this._shortMonthsParse,s))?r:null:-1!==(r=yt.call(this._longMonthsParse,s))?r:null:"MMM"===e?-1!==(r=yt.call(this._shortMonthsParse,s))?r:-1!==(r=yt.call(this._longMonthsParse,s))?r:null:-1!==(r=yt.call(this._longMonthsParse,s))?r:-1!==(r=yt.call(this._shortMonthsParse,s))?r:null}function Tt(t,e){var i;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=k(e);else if(!a(e=t.localeData().monthsParse(e)))return t;return i=Math.min(t.date(),St(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,i),t}function Ct(t){return null!=t?(Tt(this,t),n.updateOffset(this,!0),this):wt(this,"Month")}var Pt=at,Et=at;function At(){function t(t,e){return e.length-t.length}var e,i,n=[],r=[],o=[];for(e=0;e<12;e++)i=d([2e3,e]),n.push(this.monthsShort(i,"")),r.push(this.months(i,"")),o.push(this.months(i,"")),o.push(this.monthsShort(i,""));for(n.sort(t),r.sort(t),o.sort(t),e=0;e<12;e++)n[e]=ct(n[e]),r[e]=ct(r[e]);for(e=0;e<24;e++)o[e]=ct(o[e]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function Lt(t,e,i,n,r,o,s){var a;return t<100&&t>=0?(a=new Date(t+400,e,i,n,r,o,s),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,e,i,n,r,o,s),a}function It(t){var e;if(t<100&&t>=0){var i=Array.prototype.slice.call(arguments);i[0]=t+400,e=new Date(Date.UTC.apply(null,i)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)}else e=new Date(Date.UTC.apply(null,arguments));return e}function jt(t,e,i){var n=7+e-i;return-(7+It(t,0,n).getUTCDay()-e)%7+n-1}function Yt(t,e,i,n,r){var o,s,a=1+7*(e-1)+(7+i-n)%7+jt(t,n,r);return a<=0?s=vt(o=t-1)+a:a>vt(t)?(o=t+1,s=a-vt(t)):(o=t,s=a),{year:o,dayOfYear:s}}function Nt(t,e,i){var n,r,o=jt(t.year(),e,i),s=Math.floor((t.dayOfYear()-o-1)/7)+1;return s<1?n=s+Rt(r=t.year()-1,e,i):s>Rt(t.year(),e,i)?(n=s-Rt(t.year(),e,i),r=t.year()+1):(r=t.year(),n=s),{week:n,year:r}}function Rt(t,e,i){var n=jt(t,e,i),r=jt(t+1,e,i);return(vt(t)-n+r)/7}function Ft(t,e){return t.slice(e,7).concat(t.slice(0,e))}z("w",["ww",2],"wo","week"),z("W",["WW",2],"Wo","isoWeek"),L("week","w"),L("isoWeek","W"),N("week",5),N("isoWeek",5),ut("w",$),ut("ww",$,X),ut("W",$),ut("WW",$,X),pt(["w","ww","W","WW"],(function(t,e,i,n){e[n.substr(0,1)]=k(t)})),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"),L("day","d"),L("weekday","e"),L("isoWeekday","E"),N("day",11),N("weekday",11),N("isoWeekday",11),ut("d",$),ut("e",$),ut("E",$),ut("dd",(function(t,e){return e.weekdaysMinRegex(t)})),ut("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),ut("dddd",(function(t,e){return e.weekdaysRegex(t)})),pt(["dd","ddd","dddd"],(function(t,e,i,n){var r=i._locale.weekdaysParse(t,n,i._strict);null!=r?e.d=r:f(i).invalidWeekday=t})),pt(["d","e","E"],(function(t,e,i,n){e[n]=k(t)}));var Ht="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Gt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Wt="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function zt(t,e,i){var n,r,o,s=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)o=d([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(o,"").toLocaleLowerCase();return i?"dddd"===e?-1!==(r=yt.call(this._weekdaysParse,s))?r:null:"ddd"===e?-1!==(r=yt.call(this._shortWeekdaysParse,s))?r:null:-1!==(r=yt.call(this._minWeekdaysParse,s))?r:null:"dddd"===e?-1!==(r=yt.call(this._weekdaysParse,s))?r:-1!==(r=yt.call(this._shortWeekdaysParse,s))?r:-1!==(r=yt.call(this._minWeekdaysParse,s))?r:null:"ddd"===e?-1!==(r=yt.call(this._shortWeekdaysParse,s))?r:-1!==(r=yt.call(this._weekdaysParse,s))?r:-1!==(r=yt.call(this._minWeekdaysParse,s))?r:null:-1!==(r=yt.call(this._minWeekdaysParse,s))?r:-1!==(r=yt.call(this._weekdaysParse,s))?r:-1!==(r=yt.call(this._shortWeekdaysParse,s))?r:null}var Vt=at,Ut=at,Bt=at;function Xt(){function t(t,e){return e.length-t.length}var e,i,n,r,o,s=[],a=[],l=[],u=[];for(e=0;e<7;e++)i=d([2e3,1]).day(e),n=this.weekdaysMin(i,""),r=this.weekdaysShort(i,""),o=this.weekdays(i,""),s.push(n),a.push(r),l.push(o),u.push(n),u.push(r),u.push(o);for(s.sort(t),a.sort(t),l.sort(t),u.sort(t),e=0;e<7;e++)a[e]=ct(a[e]),l[e]=ct(l[e]),u[e]=ct(u[e]);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 qt(){return this.hours()%12||12}function Zt(t,e){z(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function Jt(t,e){return e._meridiemParse}z("H",["HH",2],0,"hour"),z("h",["hh",2],0,qt),z("k",["kk",2],0,(function(){return this.hours()||24})),z("hmm",0,0,(function(){return""+qt.apply(this)+R(this.minutes(),2)})),z("hmmss",0,0,(function(){return""+qt.apply(this)+R(this.minutes(),2)+R(this.seconds(),2)})),z("Hmm",0,0,(function(){return""+this.hours()+R(this.minutes(),2)})),z("Hmmss",0,0,(function(){return""+this.hours()+R(this.minutes(),2)+R(this.seconds(),2)})),Zt("a",!0),Zt("A",!1),L("hour","h"),N("hour",13),ut("a",Jt),ut("A",Jt),ut("H",$),ut("h",$),ut("k",$),ut("HH",$,X),ut("hh",$,X),ut("kk",$,X),ut("hmm",K),ut("hmmss",Q),ut("Hmm",K),ut("Hmmss",Q),ft(["H","HH"],3),ft(["k","kk"],(function(t,e,i){var n=k(t);e[3]=24===n?0:n})),ft(["a","A"],(function(t,e,i){i._isPm=i._locale.isPM(t),i._meridiem=t})),ft(["h","hh"],(function(t,e,i){e[3]=k(t),f(i).bigHour=!0})),ft("hmm",(function(t,e,i){var n=t.length-2;e[3]=k(t.substr(0,n)),e[4]=k(t.substr(n)),f(i).bigHour=!0})),ft("hmmss",(function(t,e,i){var n=t.length-4,r=t.length-2;e[3]=k(t.substr(0,n)),e[4]=k(t.substr(n,2)),e[5]=k(t.substr(r)),f(i).bigHour=!0})),ft("Hmm",(function(t,e,i){var n=t.length-2;e[3]=k(t.substr(0,n)),e[4]=k(t.substr(n))})),ft("Hmmss",(function(t,e,i){var n=t.length-4,r=t.length-2;e[3]=k(t.substr(0,n)),e[4]=k(t.substr(n,2)),e[5]=k(t.substr(r))}));var $t,Kt=_t("Hours",!0),Qt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{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"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:xt,monthsShort:Ot,week:{dow:0,doy:6},weekdays:Ht,weekdaysMin:Wt,weekdaysShort:Gt,meridiemParse:/[ap]\.?m?\.?/i},te={},ee={};function ie(t){return t?t.toLowerCase().replace("_","-"):t}function ne(e){var i=null;if(!te[e]&&t&&t.exports)try{i=$t._abbr,cs(),re(i)}catch(t){}return te[e]}function re(t,e){var i;return t&&((i=s(e)?se(t):oe(t,e))?$t=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),$t._abbr}function oe(t,e){if(null!==e){var i,n=Qt;if(e.abbr=t,null!=te[t])T("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."),n=te[t]._config;else if(null!=e.parentLocale)if(null!=te[e.parentLocale])n=te[e.parentLocale]._config;else{if(null==(i=ne(e.parentLocale)))return ee[e.parentLocale]||(ee[e.parentLocale]=[]),ee[e.parentLocale].push({name:t,config:e}),null;n=i._config}return te[t]=new E(P(n,e)),ee[t]&&ee[t].forEach((function(t){oe(t.name,t.config)})),re(t),te[t]}return delete te[t],null}function se(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return $t;if(!r(t)){if(e=ne(t))return e;t=[t]}return function(t){for(var e,i,n,r,o=0;o<t.length;){for(e=(r=ie(t[o]).split("-")).length,i=(i=ie(t[o+1]))?i.split("-"):null;e>0;){if(n=ne(r.slice(0,e).join("-")))return n;if(i&&i.length>=e&&S(r,i,!0)>=e-1)break;e--}o++}return $t}(t)}function ae(t){var e,i=t._a;return i&&-2===f(t).overflow&&(e=i[1]<0||i[1]>11?1:i[2]<1||i[2]>St(i[0],i[1])?2:i[3]<0||i[3]>24||24===i[3]&&(0!==i[4]||0!==i[5]||0!==i[6])?3:i[4]<0||i[4]>59?4:i[5]<0||i[5]>59?5:i[6]<0||i[6]>999?6:-1,f(t)._overflowDayOfYear&&(e<0||e>2)&&(e=2),f(t)._overflowWeeks&&-1===e&&(e=7),f(t)._overflowWeekday&&-1===e&&(e=8),f(t).overflow=e),t}function le(t,e,i){return null!=t?t:null!=e?e:i}function ue(t){var e,i,r,o,s,a=[];if(!t._d){for(r=function(t){var e=new Date(n.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[2]&&null==t._a[1]&&function(t){var e,i,n,r,o,s,a,l;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)o=1,s=4,i=le(e.GG,t._a[0],Nt(De(),1,4).year),n=le(e.W,1),((r=le(e.E,1))<1||r>7)&&(l=!0);else{o=t._locale._week.dow,s=t._locale._week.doy;var u=Nt(De(),o,s);i=le(e.gg,t._a[0],u.year),n=le(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}n<1||n>Rt(i,o,s)?f(t)._overflowWeeks=!0:null!=l?f(t)._overflowWeekday=!0:(a=Yt(i,n,r,o,s),t._a[0]=a.year,t._dayOfYear=a.dayOfYear)}(t),null!=t._dayOfYear&&(s=le(t._a[0],r[0]),(t._dayOfYear>vt(s)||0===t._dayOfYear)&&(f(t)._overflowDayOfYear=!0),i=It(s,0,t._dayOfYear),t._a[1]=i.getUTCMonth(),t._a[2]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=r[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[3]&&0===t._a[4]&&0===t._a[5]&&0===t._a[6]&&(t._nextDay=!0,t._a[3]=0),t._d=(t._useUTC?It:Lt).apply(null,a),o=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[3]=24),t._w&&void 0!==t._w.d&&t._w.d!==o&&(f(t).weekdayMismatch=!0)}}var he=/^\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)?)?$/,ce=/^\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)?)?$/,de=/Z|[+-]\d\d(?::?\d\d)?/,fe=[["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}/]],pe=[["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/]],me=/^\/?Date\((\-?\d+)/i;function ve(t){var e,i,n,r,o,s,a=t._i,l=he.exec(a)||ce.exec(a);if(l){for(f(t).iso=!0,e=0,i=fe.length;e<i;e++)if(fe[e][1].exec(l[1])){r=fe[e][0],n=!1!==fe[e][2];break}if(null==r)return void(t._isValid=!1);if(l[3]){for(e=0,i=pe.length;e<i;e++)if(pe[e][1].exec(l[3])){o=(l[2]||" ")+pe[e][0];break}if(null==o)return void(t._isValid=!1)}if(!n&&null!=o)return void(t._isValid=!1);if(l[4]){if(!de.exec(l[4]))return void(t._isValid=!1);s="Z"}t._f=r+(o||"")+(s||""),we(t)}else t._isValid=!1}var ge=/^(?:(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}))$/;function ye(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}var be={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function _e(t){var e,i,n,r,o,s,a,l=ge.exec(t._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(l){var u=(e=l[4],i=l[3],n=l[2],r=l[5],o=l[6],s=l[7],a=[ye(e),Ot.indexOf(i),parseInt(n,10),parseInt(r,10),parseInt(o,10)],s&&a.push(parseInt(s,10)),a);if(!function(t,e,i){return!t||Gt.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(f(i).weekdayMismatch=!0,i._isValid=!1,!1)}(l[1],u,t))return;t._a=u,t._tzm=function(t,e,i){if(t)return be[t];if(e)return 0;var n=parseInt(i,10),r=n%100;return(n-r)/100*60+r}(l[8],l[9],l[10]),t._d=It.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),f(t).rfc2822=!0}else t._isValid=!1}function we(t){if(t._f!==n.ISO_8601)if(t._f!==n.RFC_2822){t._a=[],f(t).empty=!0;var e,i,r,o,s,a=""+t._i,l=a.length,u=0;for(r=U(t._f,t._locale).match(F)||[],e=0;e<r.length;e++)o=r[e],(i=(a.match(ht(o,t))||[])[0])&&((s=a.substr(0,a.indexOf(i))).length>0&&f(t).unusedInput.push(s),a=a.slice(a.indexOf(i)+i.length),u+=i.length),W[o]?(i?f(t).empty=!1:f(t).unusedTokens.push(o),mt(o,i,t)):t._strict&&!i&&f(t).unusedTokens.push(o);f(t).charsLeftOver=l-u,a.length>0&&f(t).unusedInput.push(a),t._a[3]<=12&&!0===f(t).bigHour&&t._a[3]>0&&(f(t).bigHour=void 0),f(t).parsedDateParts=t._a.slice(0),f(t).meridiem=t._meridiem,t._a[3]=function(t,e,i){var n;return null==i?e:null!=t.meridiemHour?t.meridiemHour(e,i):null!=t.isPM?((n=t.isPM(i))&&e<12&&(e+=12),n||12!==e||(e=0),e):e}(t._locale,t._a[3],t._meridiem),ue(t),ae(t)}else _e(t);else ve(t)}function ke(t){var e=t._i,i=t._f;return t._locale=t._locale||se(t._l),null===e||void 0===i&&""===e?m({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),_(e)?new b(ae(e)):(l(e)?t._d=e:r(i)?function(t){var e,i,n,r,o;if(0===t._f.length)return f(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<t._f.length;r++)o=0,e=g({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],we(e),p(e)&&(o+=f(e).charsLeftOver,o+=10*f(e).unusedTokens.length,f(e).score=o,(null==n||o<n)&&(n=o,i=e));c(t,i||e)}(t):i?we(t):function(t){var e=t._i;s(e)?t._d=new Date(n.now()):l(e)?t._d=new Date(e.valueOf()):"string"==typeof e?function(t){var e=me.exec(t._i);null===e?(ve(t),!1===t._isValid&&(delete t._isValid,_e(t),!1===t._isValid&&(delete t._isValid,n.createFromInputFallback(t)))):t._d=new Date(+e[1])}(t):r(e)?(t._a=u(e.slice(0),(function(t){return parseInt(t,10)})),ue(t)):o(e)?function(t){if(!t._d){var e=j(t._i);t._a=u([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],(function(t){return t&&parseInt(t,10)})),ue(t)}}(t):a(e)?t._d=new Date(e):n.createFromInputFallback(t)}(t),p(t)||(t._d=null),t))}function Se(t,e,i,n,s){var a,l={};return!0!==i&&!1!==i||(n=i,i=void 0),(o(t)&&function(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}(t)||r(t)&&0===t.length)&&(t=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=s,l._l=i,l._i=t,l._f=e,l._strict=n,(a=new b(ae(ke(l))))._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function De(t,e,i,n){return Se(t,e,i,n,!1)}n.createFromInputFallback=x("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 and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),n.ISO_8601=function(){},n.RFC_2822=function(){};var xe=x("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=De.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:m()})),Oe=x("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=De.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:m()}));function Me(t,e){var i,n;if(1===e.length&&r(e[0])&&(e=e[0]),!e.length)return De();for(i=e[0],n=1;n<e.length;++n)e[n].isValid()&&!e[n][t](i)||(i=e[n]);return i}var Te=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ce(t){var e=j(t),i=e.year||0,n=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,h=e.millisecond||0;this._isValid=function(t){for(var e in t)if(-1===yt.call(Te,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var i=!1,n=0;n<Te.length;++n)if(t[Te[n]]){if(i)return!1;parseFloat(t[Te[n]])!==k(t[Te[n]])&&(i=!0)}return!0}(e),this._milliseconds=+h+1e3*u+6e4*l+1e3*a*60*60,this._days=+s+7*o,this._months=+r+3*n+12*i,this._data={},this._locale=se(),this._bubble()}function Pe(t){return t instanceof Ce}function Ee(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Ae(t,e){z(t,0,0,(function(){var t=this.utcOffset(),i="+";return t<0&&(t=-t,i="-"),i+R(~~(t/60),2)+e+R(~~t%60,2)}))}Ae("Z",":"),Ae("ZZ",""),ut("Z",st),ut("ZZ",st),ft(["Z","ZZ"],(function(t,e,i){i._useUTC=!0,i._tzm=Ie(st,t)}));var Le=/([\+\-]|\d\d)/gi;function Ie(t,e){var i=(e||"").match(t);if(null===i)return null;var n=((i[i.length-1]||[])+"").match(Le)||["-",0,0],r=60*n[1]+k(n[2]);return 0===r?0:"+"===n[0]?r:-r}function je(t,e){var i,r;return e._isUTC?(i=e.clone(),r=(_(t)||l(t)?t.valueOf():De(t).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+r),n.updateOffset(i,!1),i):De(t).local()}function Ye(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Ne(){return!!this.isValid()&&this._isUTC&&0===this._offset}n.updateOffset=function(){};var Re=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Fe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function He(t,e){var i,n,r,o,s,l,u=t,c=null;return Pe(t)?u={ms:t._milliseconds,d:t._days,M:t._months}:a(t)?(u={},e?u[e]=t:u.milliseconds=t):(c=Re.exec(t))?(i="-"===c[1]?-1:1,u={y:0,d:k(c[2])*i,h:k(c[3])*i,m:k(c[4])*i,s:k(c[5])*i,ms:k(Ee(1e3*c[6]))*i}):(c=Fe.exec(t))?(i="-"===c[1]?-1:1,u={y:Ge(c[2],i),M:Ge(c[3],i),w:Ge(c[4],i),d:Ge(c[5],i),h:Ge(c[6],i),m:Ge(c[7],i),s:Ge(c[8],i)}):null==u?u={}:"object"==typeof u&&("from"in u||"to"in u)&&(o=De(u.from),s=De(u.to),r=o.isValid()&&s.isValid()?(s=je(s,o),o.isBefore(s)?l=We(o,s):((l=We(s,o)).milliseconds=-l.milliseconds,l.months=-l.months),l):{milliseconds:0,months:0},(u={}).ms=r.milliseconds,u.M=r.months),n=new Ce(u),Pe(t)&&h(t,"_locale")&&(n._locale=t._locale),n}function Ge(t,e){var i=t&&parseFloat(t.replace(",","."));return(isNaN(i)?0:i)*e}function We(t,e){var i={};return i.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(i.months,"M").isAfter(e)&&--i.months,i.milliseconds=+e-+t.clone().add(i.months,"M"),i}function ze(t,e){return function(i,n){var r;return null===n||isNaN(+n)||(T(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=i,i=n,n=r),Ve(this,He(i="string"==typeof i?+i:i,n),t),this}}function Ve(t,e,i,r){var o=e._milliseconds,s=Ee(e._days),a=Ee(e._months);t.isValid()&&(r=null==r||r,a&&Tt(t,wt(t,"Month")+a*i),s&&kt(t,"Date",wt(t,"Date")+s*i),o&&t._d.setTime(t._d.valueOf()+o*i),r&&n.updateOffset(t,s||a))}He.fn=Ce.prototype,He.invalid=function(){return He(NaN)};var Ue=ze(1,"add"),Be=ze(-1,"subtract");function Xe(t,e){var i=12*(e.year()-t.year())+(e.month()-t.month()),n=t.clone().add(i,"months");return-(i+(e-n<0?(e-n)/(n-t.clone().add(i-1,"months")):(e-n)/(t.clone().add(i+1,"months")-n)))||0}function qe(t){var e;return void 0===t?this._locale._abbr:(null!=(e=se(t))&&(this._locale=e),this)}n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",n.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Ze=x("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 Je(){return this._locale}function $e(t,e){return(t%e+e)%e}function Ke(t,e,i){return t<100&&t>=0?new Date(t+400,e,i)-126227808e5:new Date(t,e,i).valueOf()}function Qe(t,e,i){return t<100&&t>=0?Date.UTC(t+400,e,i)-126227808e5:Date.UTC(t,e,i)}function ti(t,e){z(0,[t,t.length],0,e)}function ei(t,e,i,n,r){var o;return null==t?Nt(this,n,r).year:(e>(o=Rt(t,n,r))&&(e=o),ii.call(this,t,e,i,n,r))}function ii(t,e,i,n,r){var o=Yt(t,e,i,n,r),s=It(o.year,0,o.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}z(0,["gg",2],0,(function(){return this.weekYear()%100})),z(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),ti("gggg","weekYear"),ti("ggggg","weekYear"),ti("GGGG","isoWeekYear"),ti("GGGGG","isoWeekYear"),L("weekYear","gg"),L("isoWeekYear","GG"),N("weekYear",1),N("isoWeekYear",1),ut("G",rt),ut("g",rt),ut("GG",$,X),ut("gg",$,X),ut("GGGG",et,Z),ut("gggg",et,Z),ut("GGGGG",it,J),ut("ggggg",it,J),pt(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,i,n){e[n.substr(0,2)]=k(t)})),pt(["gg","GG"],(function(t,e,i,r){e[r]=n.parseTwoDigitYear(t)})),z("Q",0,"Qo","quarter"),L("quarter","Q"),N("quarter",7),ut("Q",B),ft("Q",(function(t,e){e[1]=3*(k(t)-1)})),z("D",["DD",2],"Do","date"),L("date","D"),N("date",9),ut("D",$),ut("DD",$,X),ut("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),ft(["D","DD"],2),ft("Do",(function(t,e){e[2]=k(t.match($)[0])}));var ni=_t("Date",!0);z("DDD",["DDDD",3],"DDDo","dayOfYear"),L("dayOfYear","DDD"),N("dayOfYear",4),ut("DDD",tt),ut("DDDD",q),ft(["DDD","DDDD"],(function(t,e,i){i._dayOfYear=k(t)})),z("m",["mm",2],0,"minute"),L("minute","m"),N("minute",14),ut("m",$),ut("mm",$,X),ft(["m","mm"],4);var ri=_t("Minutes",!1);z("s",["ss",2],0,"second"),L("second","s"),N("second",15),ut("s",$),ut("ss",$,X),ft(["s","ss"],5);var oi,si=_t("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()})),L("millisecond","ms"),N("millisecond",16),ut("S",tt,B),ut("SS",tt,X),ut("SSS",tt,q),oi="SSSS";oi.length<=9;oi+="S")ut(oi,nt);function ai(t,e){e[6]=k(1e3*("0."+t))}for(oi="S";oi.length<=9;oi+="S")ft(oi,ai);var li=_t("Milliseconds",!1);z("z",0,0,"zoneAbbr"),z("zz",0,0,"zoneName");var ui=b.prototype;function hi(t){return t}ui.add=Ue,ui.calendar=function(t,e){var i=t||De(),r=je(i,this).startOf("day"),o=n.calendarFormat(this,r)||"sameElse",s=e&&(C(e[o])?e[o].call(this,i):e[o]);return this.format(s||this.localeData().calendar(o,this,De(i)))},ui.clone=function(){return new b(this)},ui.diff=function(t,e,i){var n,r,o;if(!this.isValid())return NaN;if(!(n=je(t,this)).isValid())return NaN;switch(r=6e4*(n.utcOffset()-this.utcOffset()),e=I(e)){case"year":o=Xe(this,n)/12;break;case"month":o=Xe(this,n);break;case"quarter":o=Xe(this,n)/3;break;case"second":o=(this-n)/1e3;break;case"minute":o=(this-n)/6e4;break;case"hour":o=(this-n)/36e5;break;case"day":o=(this-n-r)/864e5;break;case"week":o=(this-n-r)/6048e5;break;default:o=this-n}return i?o:w(o)},ui.endOf=function(t){var e;if(void 0===(t=I(t))||"millisecond"===t||!this.isValid())return this;var i=this._isUTC?Qe:Ke;switch(t){case"year":e=i(this.year()+1,0,1)-1;break;case"quarter":e=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=i(this.year(),this.month()+1,1)-1;break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=36e5-$e(e+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":e=this._d.valueOf(),e+=6e4-$e(e,6e4)-1;break;case"second":e=this._d.valueOf(),e+=1e3-$e(e,1e3)-1}return this._d.setTime(e),n.updateOffset(this,!0),this},ui.format=function(t){t||(t=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var e=V(this,t);return this.localeData().postformat(e)},ui.from=function(t,e){return this.isValid()&&(_(t)&&t.isValid()||De(t).isValid())?He({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},ui.fromNow=function(t){return this.from(De(),t)},ui.to=function(t,e){return this.isValid()&&(_(t)&&t.isValid()||De(t).isValid())?He({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},ui.toNow=function(t){return this.to(De(),t)},ui.get=function(t){return C(this[t=I(t)])?this[t]():this},ui.invalidAt=function(){return f(this).overflow},ui.isAfter=function(t,e){var i=_(t)?t:De(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=I(e)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(e).valueOf())},ui.isBefore=function(t,e){var i=_(t)?t:De(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=I(e)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(e).valueOf()<i.valueOf())},ui.isBetween=function(t,e,i,n){var r=_(t)?t:De(t),o=_(e)?e:De(e);return!!(this.isValid()&&r.isValid()&&o.isValid())&&("("===(n=n||"()")[0]?this.isAfter(r,i):!this.isBefore(r,i))&&(")"===n[1]?this.isBefore(o,i):!this.isAfter(o,i))},ui.isSame=function(t,e){var i,n=_(t)?t:De(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=I(e)||"millisecond")?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(e).valueOf()<=i&&i<=this.clone().endOf(e).valueOf()))},ui.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},ui.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},ui.isValid=function(){return p(this)},ui.lang=Ze,ui.locale=qe,ui.localeData=Je,ui.max=Oe,ui.min=xe,ui.parsingFlags=function(){return c({},f(this))},ui.set=function(t,e){if("object"==typeof t)for(var i=function(t){var e=[];for(var i in t)e.push({unit:i,priority:Y[i]});return e.sort((function(t,e){return t.priority-e.priority})),e}(t=j(t)),n=0;n<i.length;n++)this[i[n].unit](t[i[n].unit]);else if(C(this[t=I(t)]))return this[t](e);return this},ui.startOf=function(t){var e;if(void 0===(t=I(t))||"millisecond"===t||!this.isValid())return this;var i=this._isUTC?Qe:Ke;switch(t){case"year":e=i(this.year(),0,1);break;case"quarter":e=i(this.year(),this.month()-this.month()%3,1);break;case"month":e=i(this.year(),this.month(),1);break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=i(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=$e(e+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":e=this._d.valueOf(),e-=$e(e,6e4);break;case"second":e=this._d.valueOf(),e-=$e(e,1e3)}return this._d.setTime(e),n.updateOffset(this,!0),this},ui.subtract=Be,ui.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},ui.toObject=function(){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()}},ui.toDate=function(){return new Date(this.valueOf())},ui.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,i=e?this.clone().utc():this;return i.year()<0||i.year()>9999?V(i,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):C(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",V(i,"Z")):V(i,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},ui.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var i="["+t+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r=e+'[")]';return this.format(i+n+"-MM-DD[T]HH:mm:ss.SSS"+r)},ui.toJSON=function(){return this.isValid()?this.toISOString():null},ui.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},ui.unix=function(){return Math.floor(this.valueOf()/1e3)},ui.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},ui.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},ui.year=bt,ui.isLeapYear=function(){return gt(this.year())},ui.weekYear=function(t){return ei.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},ui.isoWeekYear=function(t){return ei.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},ui.quarter=ui.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},ui.month=Ct,ui.daysInMonth=function(){return St(this.year(),this.month())},ui.week=ui.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},ui.isoWeek=ui.isoWeeks=function(t){var e=Nt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},ui.weeksInYear=function(){var t=this.localeData()._week;return Rt(this.year(),t.dow,t.doy)},ui.isoWeeksInYear=function(){return Rt(this.year(),1,4)},ui.date=ni,ui.day=ui.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=function(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-e,"d")):e},ui.weekday=function(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")},ui.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=function(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7},ui.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},ui.hour=ui.hours=Kt,ui.minute=ui.minutes=ri,ui.second=ui.seconds=si,ui.millisecond=ui.milliseconds=li,ui.utcOffset=function(t,e,i){var r,o=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=Ie(st,t)))return this}else Math.abs(t)<16&&!i&&(t*=60);return!this._isUTC&&e&&(r=Ye(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==t&&(!e||this._changeInProgress?Ve(this,He(t-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Ye(this)},ui.utc=function(t){return this.utcOffset(0,t)},ui.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Ye(this),"m")),this},ui.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=Ie(ot,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},ui.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?De(t).utcOffset():0,(this.utcOffset()-t)%60==0)},ui.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},ui.isLocal=function(){return!!this.isValid()&&!this._isUTC},ui.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},ui.isUtc=Ne,ui.isUTC=Ne,ui.zoneAbbr=function(){return this._isUTC?"UTC":""},ui.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},ui.dates=x("dates accessor is deprecated. Use date instead.",ni),ui.months=x("months accessor is deprecated. Use month instead",Ct),ui.years=x("years accessor is deprecated. Use year instead",bt),ui.zone=x("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()})),ui.isDSTShifted=x("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var t={};if(g(t,this),(t=ke(t))._a){var e=t._isUTC?d(t._a):De(t._a);this._isDSTShifted=this.isValid()&&S(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}));var ci=E.prototype;function di(t,e,i,n){var r=se(),o=d().set(n,e);return r[i](o,t)}function fi(t,e,i){if(a(t)&&(e=t,t=void 0),t=t||"",null!=e)return di(t,e,i,"month");var n,r=[];for(n=0;n<12;n++)r[n]=di(t,n,i,"month");return r}function pi(t,e,i,n){"boolean"==typeof t?(a(e)&&(i=e,e=void 0),e=e||""):(i=e=t,t=!1,a(e)&&(i=e,e=void 0),e=e||"");var r,o=se(),s=t?o._week.dow:0;if(null!=i)return di(e,(i+s)%7,n,"day");var l=[];for(r=0;r<7;r++)l[r]=di(e,(r+s)%7,n,"day");return l}ci.calendar=function(t,e,i){var n=this._calendar[t]||this._calendar.sameElse;return C(n)?n.call(e,i):n},ci.longDateFormat=function(t){var e=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return e||!i?e:(this._longDateFormat[t]=i.replace(/MMMM|MM|DD|dddd/g,(function(t){return t.slice(1)})),this._longDateFormat[t])},ci.invalidDate=function(){return this._invalidDate},ci.ordinal=function(t){return this._ordinal.replace("%d",t)},ci.preparse=hi,ci.postformat=hi,ci.relativeTime=function(t,e,i,n){var r=this._relativeTime[i];return C(r)?r(t,e,i,n):r.replace(/%d/i,t)},ci.pastFuture=function(t,e){var i=this._relativeTime[t>0?"future":"past"];return C(i)?i(e):i.replace(/%s/i,e)},ci.set=function(t){var e,i;for(i in t)C(e=t[i])?this[i]=e:this["_"+i]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},ci.months=function(t,e){return t?r(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Dt).test(e)?"format":"standalone"][t.month()]:r(this._months)?this._months:this._months.standalone},ci.monthsShort=function(t,e){return t?r(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Dt.test(e)?"format":"standalone"][t.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},ci.monthsParse=function(t,e,i){var n,r,o;if(this._monthsParseExact)return Mt.call(this,t,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(r=d([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[n]=new RegExp(o.replace(".",""),"i")),i&&"MMMM"===e&&this._longMonthsParse[n].test(t))return n;if(i&&"MMM"===e&&this._shortMonthsParse[n].test(t))return n;if(!i&&this._monthsParse[n].test(t))return n}},ci.monthsRegex=function(t){return this._monthsParseExact?(h(this,"_monthsRegex")||At.call(this),t?this._monthsStrictRegex:this._monthsRegex):(h(this,"_monthsRegex")||(this._monthsRegex=Et),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},ci.monthsShortRegex=function(t){return this._monthsParseExact?(h(this,"_monthsRegex")||At.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(h(this,"_monthsShortRegex")||(this._monthsShortRegex=Pt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},ci.week=function(t){return Nt(t,this._week.dow,this._week.doy).week},ci.firstDayOfYear=function(){return this._week.doy},ci.firstDayOfWeek=function(){return this._week.dow},ci.weekdays=function(t,e){var i=r(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Ft(i,this._week.dow):t?i[t.day()]:i},ci.weekdaysMin=function(t){return!0===t?Ft(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},ci.weekdaysShort=function(t){return!0===t?Ft(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},ci.weekdaysParse=function(t,e,i){var n,r,o;if(this._weekdaysParseExact)return zt.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(r=d([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[n]=new RegExp(o.replace(".",""),"i")),i&&"dddd"===e&&this._fullWeekdaysParse[n].test(t))return n;if(i&&"ddd"===e&&this._shortWeekdaysParse[n].test(t))return n;if(i&&"dd"===e&&this._minWeekdaysParse[n].test(t))return n;if(!i&&this._weekdaysParse[n].test(t))return n}},ci.weekdaysRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Xt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(h(this,"_weekdaysRegex")||(this._weekdaysRegex=Vt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},ci.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Xt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(h(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ut),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},ci.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Xt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(h(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Bt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},ci.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},ci.meridiem=function(t,e,i){return t>11?i?"pm":"PM":i?"am":"AM"},re("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===k(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),n.lang=x("moment.lang is deprecated. Use moment.locale instead.",re),n.langData=x("moment.langData is deprecated. Use moment.localeData instead.",se);var mi=Math.abs;function vi(t,e,i,n){var r=He(e,i);return t._milliseconds+=n*r._milliseconds,t._days+=n*r._days,t._months+=n*r._months,t._bubble()}function gi(t){return t<0?Math.floor(t):Math.ceil(t)}function yi(t){return 4800*t/146097}function bi(t){return 146097*t/4800}function _i(t){return function(){return this.as(t)}}var wi=_i("ms"),ki=_i("s"),Si=_i("m"),Di=_i("h"),xi=_i("d"),Oi=_i("w"),Mi=_i("M"),Ti=_i("Q"),Ci=_i("y");function Pi(t){return function(){return this.isValid()?this._data[t]:NaN}}var Ei=Pi("milliseconds"),Ai=Pi("seconds"),Li=Pi("minutes"),Ii=Pi("hours"),ji=Pi("days"),Yi=Pi("months"),Ni=Pi("years"),Ri=Math.round,Fi={ss:44,s:45,m:45,h:22,d:26,M:11};function Hi(t,e,i,n,r){return r.relativeTime(e||1,!!i,t,n)}function Gi(t,e,i){var n=He(t).abs(),r=Ri(n.as("s")),o=Ri(n.as("m")),s=Ri(n.as("h")),a=Ri(n.as("d")),l=Ri(n.as("M")),u=Ri(n.as("y")),h=r<=Fi.ss&&["s",r]||r<Fi.s&&["ss",r]||o<=1&&["m"]||o<Fi.m&&["mm",o]||s<=1&&["h"]||s<Fi.h&&["hh",s]||a<=1&&["d"]||a<Fi.d&&["dd",a]||l<=1&&["M"]||l<Fi.M&&["MM",l]||u<=1&&["y"]||["yy",u];return h[2]=e,h[3]=+t>0,h[4]=i,Hi.apply(null,h)}var Wi=Math.abs;function zi(t){return(t>0)-(t<0)||+t}function Vi(){if(!this.isValid())return this.localeData().invalidDate();var t,e,i=Wi(this._milliseconds)/1e3,n=Wi(this._days),r=Wi(this._months);t=w(i/60),e=w(t/60),i%=60,t%=60;var o=w(r/12),s=r%=12,a=n,l=e,u=t,h=i?i.toFixed(3).replace(/\.?0+$/,""):"",c=this.asSeconds();if(!c)return"P0D";var d=c<0?"-":"",f=zi(this._months)!==zi(c)?"-":"",p=zi(this._days)!==zi(c)?"-":"",m=zi(this._milliseconds)!==zi(c)?"-":"";return d+"P"+(o?f+o+"Y":"")+(s?f+s+"M":"")+(a?p+a+"D":"")+(l||u||h?"T":"")+(l?m+l+"H":"")+(u?m+u+"M":"")+(h?m+h+"S":"")}var Ui=Ce.prototype;return Ui.isValid=function(){return this._isValid},Ui.abs=function(){var t=this._data;return this._milliseconds=mi(this._milliseconds),this._days=mi(this._days),this._months=mi(this._months),t.milliseconds=mi(t.milliseconds),t.seconds=mi(t.seconds),t.minutes=mi(t.minutes),t.hours=mi(t.hours),t.months=mi(t.months),t.years=mi(t.years),this},Ui.add=function(t,e){return vi(this,t,e,1)},Ui.subtract=function(t,e){return vi(this,t,e,-1)},Ui.as=function(t){if(!this.isValid())return NaN;var e,i,n=this._milliseconds;if("month"===(t=I(t))||"quarter"===t||"year"===t)switch(e=this._days+n/864e5,i=this._months+yi(e),t){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(e=this._days+Math.round(bi(this._months)),t){case"week":return e/7+n/6048e5;case"day":return e+n/864e5;case"hour":return 24*e+n/36e5;case"minute":return 1440*e+n/6e4;case"second":return 86400*e+n/1e3;case"millisecond":return Math.floor(864e5*e)+n;default:throw new Error("Unknown unit "+t)}},Ui.asMilliseconds=wi,Ui.asSeconds=ki,Ui.asMinutes=Si,Ui.asHours=Di,Ui.asDays=xi,Ui.asWeeks=Oi,Ui.asMonths=Mi,Ui.asQuarters=Ti,Ui.asYears=Ci,Ui.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*k(this._months/12):NaN},Ui._bubble=function(){var t,e,i,n,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*gi(bi(a)+s),s=0,a=0),l.milliseconds=o%1e3,t=w(o/1e3),l.seconds=t%60,e=w(t/60),l.minutes=e%60,i=w(e/60),l.hours=i%24,s+=w(i/24),r=w(yi(s)),a+=r,s-=gi(bi(r)),n=w(a/12),a%=12,l.days=s,l.months=a,l.years=n,this},Ui.clone=function(){return He(this)},Ui.get=function(t){return t=I(t),this.isValid()?this[t+"s"]():NaN},Ui.milliseconds=Ei,Ui.seconds=Ai,Ui.minutes=Li,Ui.hours=Ii,Ui.days=ji,Ui.weeks=function(){return w(this.days()/7)},Ui.months=Yi,Ui.years=Ni,Ui.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),i=Gi(this,!t,e);return t&&(i=e.pastFuture(+this,i)),e.postformat(i)},Ui.toISOString=Vi,Ui.toString=Vi,Ui.toJSON=Vi,Ui.locale=qe,Ui.localeData=Je,Ui.toIsoString=x("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Vi),Ui.lang=Ze,z("X",0,0,"unix"),z("x",0,0,"valueOf"),ut("x",rt),ut("X",/[+-]?\d+(\.\d{1,3})?/),ft("X",(function(t,e,i){i._d=new Date(1e3*parseFloat(t,10))})),ft("x",(function(t,e,i){i._d=new Date(k(t))})),n.version="2.24.0",e=De,n.fn=ui,n.min=function(){var t=[].slice.call(arguments,0);return Me("isBefore",t)},n.max=function(){var t=[].slice.call(arguments,0);return Me("isAfter",t)},n.now=function(){return Date.now?Date.now():+new Date},n.utc=d,n.unix=function(t){return De(1e3*t)},n.months=function(t,e){return fi(t,e,"months")},n.isDate=l,n.locale=re,n.invalid=m,n.duration=He,n.isMoment=_,n.weekdays=function(t,e,i){return pi(t,e,i,"weekdays")},n.parseZone=function(){return De.apply(null,arguments).parseZone()},n.localeData=se,n.isDuration=Pe,n.monthsShort=function(t,e){return fi(t,e,"monthsShort")},n.weekdaysMin=function(t,e,i){return pi(t,e,i,"weekdaysMin")},n.defineLocale=oe,n.updateLocale=function(t,e){if(null!=e){var i,n,r=Qt;null!=(n=ne(t))&&(r=n._config),(i=new E(e=P(r,e))).parentLocale=te[t],te[t]=i,re(t)}else null!=te[t]&&(null!=te[t].parentLocale?te[t]=te[t].parentLocale:null!=te[t]&&delete te[t]);return te[t]},n.locales=function(){return O(te)},n.weekdaysShort=function(t,e,i){return pi(t,e,i,"weekdaysShort")},n.normalizeUnits=I,n.relativeTimeRounding=function(t){return void 0===t?Ri:"function"==typeof t&&(Ri=t,!0)},n.relativeTimeThreshold=function(t,e){return void 0!==Fi[t]&&(void 0===e?Fi[t]:(Fi[t]=e,"s"===t&&(Fi.ss=e-1),!0))},n.calendarFormat=function(t,e){var i=t.diff(e,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},n.prototype=ui,n.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"},n}()})),Wg=/^\/?Date\((-?\d+)/i;function zg(t){return Gg.isMoment(t)}function Vg(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 Ng(t)&&!isNaN(Date.parse(t))?Gg(t).valueOf():Number(t.valueOf());case"string":case"String":return String(t);case"Date":if(Yg(t))return new Date(t);if(t instanceof Date)return new Date(t.valueOf());if(zg(t))return new Date(t.valueOf());if(Ng(t))return(i=Wg.exec(t))?new Date(Number(i[1])):Gg(new Date(t)).toDate();throw new Error("Cannot convert object of type "+Hg(t)+" to type Date");case"Moment":if(Yg(t))return Gg(t);if(t instanceof Date)return Gg(t.valueOf());if(zg(t))return Gg(t);if(Ng(t))return i=Wg.exec(t),Gg(i?Number(i[1]):t);throw new Error("Cannot convert object of type "+Hg(t)+" to type Date");case"ISODate":if(Yg(t))return new Date(t);if(t instanceof Date)return t.toISOString();if(zg(t))return t.toDate().toISOString();if(Ng(t))return(i=Wg.exec(t))?new Date(Number(i[1])).toISOString():Gg(t).format();throw new Error("Cannot convert object of type "+Hg(t)+" to type ISODate");case"ASPDate":if(Yg(t))return"/Date("+t+")/";if(t instanceof Date||zg(t))return"/Date("+t.valueOf()+")/";if(Ng(t))return"/Date("+((i=Wg.exec(t))?new Date(Number(i[1])).valueOf():new Date(t).valueOf())+")/";throw new Error("Cannot convert object of type "+Hg(t)+" to type ASPDate");default:throw new Error("Unknown type ".concat(e))}}}function Ug(t){return"string"==typeof t||"number"==typeof t}var Bg=Fa("splice"),Xg=za("splice",{ACCESSORS:!0,0:0,1:2}),qg=Math.max,Zg=Math.min;Qs({target:"Array",proto:!0,forced:!Bg||!Xg},{splice:function(t,e){var i,n,r,o,s,a,l=la(this),u=oa(l.length),h=Tl(t,u),c=arguments.length;if(0===c?i=n=0:1===c?(i=0,n=u-h):(i=c-2,n=Zg(qg(na(e),0),u-h)),u+i-n>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(r=wa(l,n),o=0;o<n;o++)(s=h+o)in l&&Wl(r,o,l[s]);if(r.length=n,i<n){for(o=h;o<u-n;o++)a=o+i,(s=o+n)in l?l[a]=l[s]:delete l[a];for(o=u;o>u-n+i;o--)delete l[o-1]}else if(i>n)for(o=u-n;o>h;o--)a=o+i-1,(s=o+n-1)in l?l[a]=l[s]:delete l[a];for(o=0;o<i;o++)l[o+h]=arguments[o+2];return l.length=u-n+i,r}});var Jg=Da("Array").splice,$g=Array.prototype,Kg=function(t){var e=t.splice;return t===$g||t instanceof Array&&e===$g.splice?Jg:e},Qg=[].slice,ty=/MSIE .\./.test(La),ey=function(t){return function(e,i){var n=arguments.length>2,r=n?Qg.call(arguments,2):void 0;return t(n?function(){("function"==typeof e?e:Function(e)).apply(this,r)}:e,i)}};Qs({global:!0,bind:!0,forced:ty},{setTimeout:ey(ps.setTimeout),setInterval:ey(ps.setInterval)});var iy=Vs.setTimeout,ny=function(){function t(e){gl(this,t),this._queue=[],this._timeout=null,this._extended=null,this.delay=null,this.max=1/0,this.setOptions(e)}return wl(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,i=0;i<e.length;i++){var n=e[i];n.original?t[n.name]=n.original:delete t[n.name]}this._extended=null}}},{key:"replace",value:function(t,e){var i=this,n=t[e];if(!n)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];i.queue({args:e,fn:n,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=iy((function(){t.flush()}),this.delay))}},{key:"flush",value:function(){var t,e;th(t=Kg(e=this._queue).call(e,0)).call(t,(function(t){t.fn.apply(t.context||t.fn,t.args||[])}))}}],[{key:"extend",value:function(e,i){var n=new t(i);if(void 0!==e.flush)throw new Error("Target object already has a property flush");e.flush=function(){n.flush()};var r=[{name:"flush",original:void 0}];if(i&&i.replace)for(var o=0;o<i.replace.length;o++){var s=i.replace[o];r.push({name:s,original:e[s]}),n.replace(e,s)}return n._extended={object:e,methods:r},n}}]),t}(),ry=function(){function t(){gl(this,t),this._subscribers={"*":[],add:[],remove:[],update:[]},this.subscribe=t.prototype.on,this.unsubscribe=t.prototype.off}return wl(t,[{key:"_trigger",value:function(t,e,i){var n,r;if("*"===t)throw new Error("Cannot trigger event *");th(n=Zc(r=[]).call(r,Wc(this._subscribers[t]),Wc(this._subscribers["*"]))).call(n,(function(n){n(t,e,null!=i?i:null)}))}},{key:"on",value:function(t,e){"function"==typeof e&&this._subscribers[t].push(e)}},{key:"off",value:function(t,e){var i;this._subscribers[t]=el(i=this._subscribers[t]).call(i,(function(t){return t!==e}))}}]),t}(),oy=(_d("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Md),Vs.Set),sy=Nd;var ay=function(t){if(Oc(t))return t};var ly=function(t,e){if(Fc(Object(t))||"[object Arguments]"===Object.prototype.toString.call(t)){var i=[],n=!0,r=!1,o=void 0;try{for(var s,a=dc(t);!(n=(s=a.next()).done)&&(i.push(s.value),!e||i.length!==e);n=!0);}catch(t){r=!0,o=t}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}return i}};var uy=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")};var hy=function(t,e){return ay(t)||ly(t,e)||uy()},cy=function(){function t(e){gl(this,t),this._pairs=e}return wl(t,[{key:$h,value:Uh.mark((function t(){var e,i,n,r,o,s,a,l;return Uh.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=!0,i=!1,n=void 0,t.prev=3,r=dc(this._pairs);case 5:if(e=(o=r.next()).done){t.next=12;break}return s=hy(o.value,2),a=s[0],l=s[1],t.next=9,[a,l];case 9:e=!0,t.next=5;break;case 12:t.next=18;break;case 14:t.prev=14,t.t0=t.catch(3),i=!0,n=t.t0;case 18:t.prev=18,t.prev=19,e||null==r.return||r.return();case 21:if(t.prev=21,!i){t.next=24;break}throw n;case 24:return t.finish(21);case 25:return t.finish(18);case 26:case"end":return t.stop()}}),t,this,[[3,14,18,26],[19,,21,25]])}))},{key:"entries",value:Uh.mark((function t(){var e,i,n,r,o,s,a,l;return Uh.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=!0,i=!1,n=void 0,t.prev=3,r=dc(this._pairs);case 5:if(e=(o=r.next()).done){t.next=12;break}return s=hy(o.value,2),a=s[0],l=s[1],t.next=9,[a,l];case 9:e=!0,t.next=5;break;case 12:t.next=18;break;case 14:t.prev=14,t.t0=t.catch(3),i=!0,n=t.t0;case 18:t.prev=18,t.prev=19,e||null==r.return||r.return();case 21:if(t.prev=21,!i){t.next=24;break}throw n;case 24:return t.finish(21);case 25:return t.finish(18);case 26:case"end":return t.stop()}}),t,this,[[3,14,18,26],[19,,21,25]])}))},{key:"keys",value:Uh.mark((function t(){var e,i,n,r,o,s,a;return Uh.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=!0,i=!1,n=void 0,t.prev=3,r=dc(this._pairs);case 5:if(e=(o=r.next()).done){t.next=12;break}return s=hy(o.value,1),a=s[0],t.next=9,a;case 9:e=!0,t.next=5;break;case 12:t.next=18;break;case 14:t.prev=14,t.t0=t.catch(3),i=!0,n=t.t0;case 18:t.prev=18,t.prev=19,e||null==r.return||r.return();case 21:if(t.prev=21,!i){t.next=24;break}throw n;case 24:return t.finish(21);case 25:return t.finish(18);case 26:case"end":return t.stop()}}),t,this,[[3,14,18,26],[19,,21,25]])}))},{key:"values",value:Uh.mark((function t(){var e,i,n,r,o,s,a;return Uh.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=!0,i=!1,n=void 0,t.prev=3,r=dc(this._pairs);case 5:if(e=(o=r.next()).done){t.next=12;break}return s=hy(o.value,2),a=s[1],t.next=9,a;case 9:e=!0,t.next=5;break;case 12:t.next=18;break;case 14:t.prev=14,t.t0=t.catch(3),i=!0,n=t.t0;case 18:t.prev=18,t.prev=19,e||null==r.return||r.return();case 21:if(t.prev=21,!i){t.next=24;break}throw n;case 24:return t.finish(21);case 25:return t.finish(18);case 26:case"end":return t.stop()}}),t,this,[[3,14,18,26],[19,,21,25]])}))},{key:"toIdArray",value:function(){var t;return Za(t=Wc(this._pairs)).call(t,(function(t){return t[0]}))}},{key:"toItemArray",value:function(){var t;return Za(t=Wc(this._pairs)).call(t,(function(t){return t[1]}))}},{key:"toEntryArray",value:function(){return Wc(this._pairs)}},{key:"toObjectMap",value:function(){var t=sy(null),e=!0,i=!1,n=void 0;try{for(var r,o=dc(this._pairs);!(e=(r=o.next()).done);e=!0){var s=hy(r.value,2),a=s[0],l=s[1];t[a]=l}}catch(t){i=!0,n=t}finally{try{e||null==o.return||o.return()}finally{if(i)throw n}}return t}},{key:"toMap",value:function(){return new Td(this._pairs)}},{key:"toIdSet",value:function(){return new oy(this.toIdArray())}},{key:"toItemSet",value:function(){return new oy(this.toItemArray())}},{key:"cache",value:function(){return new t(Wc(this._pairs))}},{key:"distinct",value:function(t){var e=new oy,i=!0,n=!1,r=void 0;try{for(var o,s=dc(this._pairs);!(i=(o=s.next()).done);i=!0){var a=hy(o.value,2),l=a[0],u=a[1];e.add(t(u,l))}}catch(t){n=!0,r=t}finally{try{i||null==s.return||s.return()}finally{if(n)throw r}}return e}},{key:"filter",value:function(e){var i=this._pairs;return new t(oc({},$h,Uh.mark((function t(){var n,r,o,s,a,l,u,h;return Uh.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=!0,r=!1,o=void 0,t.prev=3,s=dc(i);case 5:if(n=(a=s.next()).done){t.next=13;break}if(l=hy(a.value,2),u=l[0],h=l[1],!e(h,u)){t.next=10;break}return t.next=10,[u,h];case 10:n=!0,t.next=5;break;case 13:t.next=19;break;case 15:t.prev=15,t.t0=t.catch(3),r=!0,o=t.t0;case 19:t.prev=19,t.prev=20,n||null==s.return||s.return();case 22:if(t.prev=22,!r){t.next=25;break}throw o;case 25:return t.finish(22);case 26:return t.finish(19);case 27:case"end":return t.stop()}}),t,null,[[3,15,19,27],[20,,22,26]])}))))}},{key:"forEach",value:function(t){var e=!0,i=!1,n=void 0;try{for(var r,o=dc(this._pairs);!(e=(r=o.next()).done);e=!0){var s=hy(r.value,2),a=s[0];t(s[1],a)}}catch(t){i=!0,n=t}finally{try{e||null==o.return||o.return()}finally{if(i)throw n}}}},{key:"map",value:function(e){var i=this._pairs;return new t(oc({},$h,Uh.mark((function t(){var n,r,o,s,a,l,u,h;return Uh.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=!0,r=!1,o=void 0,t.prev=3,s=dc(i);case 5:if(n=(a=s.next()).done){t.next=12;break}return l=hy(a.value,2),u=l[0],h=l[1],t.next=9,[u,e(h,u)];case 9:n=!0,t.next=5;break;case 12:t.next=18;break;case 14:t.prev=14,t.t0=t.catch(3),r=!0,o=t.t0;case 18:t.prev=18,t.prev=19,n||null==s.return||s.return();case 21:if(t.prev=21,!r){t.next=24;break}throw o;case 24:return t.finish(21);case 25:return t.finish(18);case 26:case"end":return t.stop()}}),t,null,[[3,14,18,26],[19,,21,25]])}))))}},{key:"max",value:function(t){var e=dc(this._pairs),i=e.next();if(i.done)return null;for(var n=i.value[1],r=t(i.value[1],i.value[0]);!(i=e.next()).done;){var o=hy(i.value,2),s=o[0],a=o[1],l=t(a,s);l>r&&(r=l,n=a)}return n}},{key:"min",value:function(t){var e=dc(this._pairs),i=e.next();if(i.done)return null;for(var n=i.value[1],r=t(i.value[1],i.value[0]);!(i=e.next()).done;){var o=hy(i.value,2),s=o[0],a=o[1],l=t(a,s);l<r&&(r=l,n=a)}return n}},{key:"reduce",value:function(t,e){var i=!0,n=!1,r=void 0;try{for(var o,s=dc(this._pairs);!(i=(o=s.next()).done);i=!0){var a=hy(o.value,2),l=a[0];e=t(e,a[1],l)}}catch(t){n=!0,r=t}finally{try{i||null==s.return||s.return()}finally{if(n)throw r}}return e}},{key:"sort",value:function(e){var i=this;return new t(oc({},$h,(function(){var t;return dc(_c(t=Wc(i._pairs)).call(t,(function(t,i){var n=hy(t,2),r=n[0],o=n[1],s=hy(i,2),a=s[0],l=s[1];return e(o,l,r,a)})))})))}}]),t}();function dy(t,e){var i=cd(t);if(Hh){var n=Hh(t);e&&(n=el(n).call(n,(function(e){return nh(t,e).enumerable}))),i.push.apply(i,n)}return i}var fy=function(){console.warn("Type coercion has been deprecated. Please, use data pipes instead. See https://visjs.github.io/vis-data/data/datapipe.html#TypeCoercion for more details with working migration example.")},py=function(t){function e(t,i){var n;if(gl(this,e),n=Ed(this,jd(e).call(this)),t&&!Cd(t)&&(i=t,t=[]),n._options=i||{},n._data=new Td,n.length=0,n._idProp=n._options.fieldId||"id",n._type={},n._options.type){fy();for(var r=cd(n._options.type),o=0,s=r.length;o<s;o++){var a=r[o],l=n._options.type[a];n._type[a]="Date"==l||"ISODate"==l||"ASPDate"==l?"Date":l}}return t&&t.length&&n.add(t),n.setOptions(i),n}return Hd(e,t),wl(e,[{key:"setOptions",value:function(t){t&&void 0!==t.queue&&(!1===t.queue?this._queue&&(this._queue.destroy(),delete this._queue):(this._queue||(this._queue=ny.extend(this,{replace:["add","update","remove"]})),t.queue&&"object"===ud(t.queue)&&this._queue.setOptions(t.queue)))}},{key:"add",value:function(t,e){var i,n=this,r=[];if(Cd(t)){var o=Za(t).call(t,(function(t){return t[n._idProp]}));if(od(o).call(o,(function(t){return n._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++)i=this._addItem(t[s]),r.push(i)}else{if(!t||"object"!==ud(t))throw new Error("Unknown dataType");i=this._addItem(t),r.push(i)}return r.length&&this._trigger("add",{items:r},e),r}},{key:"update",value:function(t,e){var i=this,n=[],r=[],o=[],s=[],a=this._idProp,l=function(t){var e=t[a];if(null!=e&&i._data.has(e)){var l=t,u=Qc({},i._data.get(e)),h=i._updateItem(l);r.push(h),s.push(l),o.push(u)}else{var c=i._addItem(t);n.push(c)}};if(Cd(t))for(var u=0,h=t.length;u<h;u++)t[u]&&"object"===ud(t[u])?l(t[u]):console.warn("Ignoring input item, which is not an object at index "+u);else{if(!t||"object"!==ud(t))throw new Error("Unknown dataType");l(t)}if(n.length&&this._trigger("add",{items:n},e),r.length){var c={items:r,oldData:o,data:s};this._trigger("update",c,e)}return Zc(n).call(n,r)}},{key:"updateOnly",value:function(t,e){var i,n=this;Cd(t)||(t=[t]);var r=Za(i=Za(t).call(t,(function(t){var e=n._data.get(t[n._idProp]);if(null==e)throw new Error("Updating non-existent items is not allowed.");return{oldData:e,update:t}}))).call(i,(function(t){var e=t.oldData,i=t.update,r=e[n._idProp],o=Fg(Fg({},e),i);return n._data.set(r,o),{id:r,oldData:e,updatedData:o}}));if(r.length){var o={items:Za(r).call(r,(function(t){return t.id})),oldData:Za(r).call(r,(function(t){return t.oldData})),data:Za(r).call(r,(function(t){return t.updatedData}))};return this._trigger("update",o,e),o.items}return[]}},{key:"get",value:function(t,e){var i=void 0,n=void 0,r=void 0;Ug(t)?(i=t,r=e):Cd(t)?(n=t,r=e):r=t;var o=r&&"Object"===r.returnType?"Object":"Array",s=r&&r.type||this._options.type,a=r&&el(r),l=[],u=null,h=null,c=null;if(null!=i)(u=this._getItem(i,s))&&a&&!a(u)&&(u=null);else if(null!=n)for(var d=0,f=n.length;d<f;d++)null==(u=this._getItem(n[d],s))||a&&!a(u)||l.push(u);else for(var p,m=0,v=(h=Wc(Dc(p=this._data).call(p))).length;m<v;m++)c=h[m],null==(u=this._getItem(c,s))||a&&!a(u)||l.push(u);if(r&&r.order&&null==i&&this._sort(l,r.order),r&&r.fields){var g=r.fields;if(null!=i&&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"==o){for(var _={},w=0,k=l.length;w<k;w++){var S=l[w];_[S[this._idProp]]=S}return _}return null!=i?u:l}},{key:"getIds",value:function(t){var e,i,n=this._data,r=t&&el(t),o=t&&t.order,s=t&&t.type||this._options.type,a=Wc(Dc(n).call(n)),l=[];if(r)if(o){i=[];for(var u=0,h=a.length;u<h;u++){var c=a[u];r(e=this._getItem(c,s))&&i.push(e)}this._sort(i,o);for(var d=0,f=i.length;d<f;d++)l.push(i[d][this._idProp])}else for(var p=0,m=a.length;p<m;p++){var v=a[p];r(e=this._getItem(v,s))&&l.push(e[this._idProp])}else if(o){i=[];for(var g=0,y=a.length;g<y;g++){var b=a[g];i.push(n.get(b))}this._sort(i,o);for(var _=0,w=i.length;_<w;_++)l.push(i[_][this._idProp])}else for(var k=0,S=a.length;k<S;k++){var D=a[k];e=n.get(D),l.push(e[this._idProp])}return l}},{key:"getDataSet",value:function(){return this}},{key:"forEach",value:function(t,e){var i=e&&el(e),n=e&&e.type||this._options.type,r=this._data,o=Wc(Dc(r).call(r));if(e&&e.order)for(var s=this.get(e),a=0,l=s.length;a<l;a++){var u=s[a];t(u,u[this._idProp])}else for(var h=0,c=o.length;h<c;h++){var d=o[h],f=this._getItem(d,n);i&&!i(f)||t(f,d)}}},{key:"map",value:function(t,e){for(var i=e&&el(e),n=e&&e.type||this._options.type,r=[],o=this._data,s=Wc(Dc(o).call(o)),a=0,l=s.length;a<l;a++){var u=s[a],h=this._getItem(u,n);i&&!i(h)||r.push(t(h,u))}return e&&e.order&&this._sort(r,e.order),r}},{key:"_filterFields",value:function(t,e){var i;return t?ul(i=Cd(e)?e:cd(e)).call(i,(function(e,i){return e[i]=t[i],e}),{}):t}},{key:"_sort",value:function(t,e){if("string"==typeof e){var i=e;_c(t).call(t,(function(t,e){var n=t[i],r=e[i];return n>r?1:n<r?-1:0}))}else{if("function"!=typeof e)throw new TypeError("Order must be a function or a string");_c(t).call(t,e)}}},{key:"remove",value:function(t,e){for(var i=[],n=[],r=Cd(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&&(i.push(l),n.push(a))}}return i.length&&this._trigger("remove",{items:i,oldData:n},e),i}},{key:"_remove",value:function(t){var e;if(Ug(t)?e=t:t&&"object"===ud(t)&&(e=t[this._idProp]),null!=e&&this._data.has(e)){var i=this._data.get(e)||null;return this._data.delete(e),--this.length,i}return null}},{key:"clear",value:function(t){for(var e,i=Wc(Dc(e=this._data).call(e)),n=[],r=0,o=i.length;r<o;r++)n.push(this._data.get(i[r]));return this._data.clear(),this.length=0,this._trigger("remove",{items:i,oldData:n},t),i}},{key:"max",value:function(t){var e=null,i=null,n=!0,r=!1,o=void 0;try{for(var s,a=dc(uc(l=this._data).call(l));!(n=(s=a.next()).done);n=!0){var l,u=s.value,h=u[t];"number"==typeof h&&(null==i||h>i)&&(e=u,i=h)}}catch(t){r=!0,o=t}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}return e||null}},{key:"min",value:function(t){var e=null,i=null,n=!0,r=!1,o=void 0;try{for(var s,a=dc(uc(l=this._data).call(l));!(n=(s=a.next()).done);n=!0){var l,u=s.value,h=u[t];"number"==typeof h&&(null==i||h<i)&&(e=u,i=h)}}catch(t){r=!0,o=t}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}return e||null}},{key:"distinct",value:function(t){for(var e=this._data,i=Wc(Dc(e).call(e)),n=[],r=this._options.type&&this._options.type[t]||null,o=0,s=0,a=i.length;s<a;s++){for(var l=i[s],u=e.get(l)[t],h=!1,c=0;c<o;c++)if(n[c]==u){h=!0;break}h||void 0===u||(n[o]=u,o++)}if(r)for(var d=0,f=n.length;d<f;d++)n[d]=Vg(n[d],r);return n}},{key:"_addItem",value:function(t){var e=t[this._idProp];if(null!=e){if(this._data.has(e))throw new Error("Cannot add item: item with id "+e+" already exists")}else e=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,n=e&&i||0;"string"==typeof t&&(e="binary"===t?new Array(16):void 0,t={});var r=t.random||(t.rng||Vd)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e)for(var o=0;o<16;o++)e[n+o]=r[o];return e||zd(r)}(),t[this._idProp]=e;for(var i={},n=cd(t),r=0,o=n.length;r<o;r++){var s=n[r],a=this._type[s];i[s]=Vg(t[s],a)}return this._data.set(e,i),++this.length,e}},{key:"_getItem",value:function(t,e){var i,n=this._data.get(t);if(!n)return null;var r=cd(n);if(e){fy(),i={};for(var o=0,s=r.length;o<s;o++){var a=r[o],l=n[a];i[a]=Vg(l,e[a])}}else i=function(t){for(var e=1;e<arguments.length;e++){var i,n=null!=arguments[e]?arguments[e]:{};if(e%2)th(i=dy(Object(n),!0)).call(i,(function(e){oc(t,e,n[e])}));else if(zl)Nl(t,zl(n));else{var r;th(r=dy(Object(n))).call(r,(function(e){xl(t,e,nh(n,e))}))}}return t}({},n);return null==i[this._idProp]&&(i[this._idProp]=n.id),i}},{key:"_updateItem",value:function(t){var e=t[this._idProp];if(null==e)throw new Error("Cannot update item: item has no id (item: "+rc(t)+")");var i=this._data.get(e);if(!i)throw new Error("Cannot update item: no item with id "+e+" found");for(var n=cd(t),r=0,o=n.length;r<o;r++){var s=n[r],a=this._type[s];i[s]=Vg(t[s],a)}return e}},{key:"stream",value:function(t){if(t){var e=this._data;return new cy(oc({},$h,Uh.mark((function i(){var n,r,o,s,a,l,u;return Uh.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:n=!0,r=!1,o=void 0,i.prev=3,s=dc(t);case 5:if(n=(a=s.next()).done){i.next=14;break}if(l=a.value,null==(u=e.get(l))){i.next=11;break}return i.next=11,[l,u];case 11:n=!0,i.next=5;break;case 14:i.next=20;break;case 16:i.prev=16,i.t0=i.catch(3),r=!0,o=i.t0;case 20:i.prev=20,i.prev=21,n||null==s.return||s.return();case 23:if(i.prev=23,!r){i.next=26;break}throw o;case 26:return i.finish(23);case 27:return i.finish(20);case 28:case"end":return i.stop()}}),i,null,[[3,16,20,28],[21,,23,27]])}))))}var i;return new cy(oc({},$h,vl(i=Vh(this._data)).call(i,this._data)))}}]),e}(ry),my=function(t){function e(t,i){var n,r;return gl(this,e),(r=Ed(this,jd(e).call(this))).length=0,r._ids=new oy,r._options=i||{},r._listener=vl(n=r._onEvent).call(n,Pd(r)),r.setData(t),r}return Hd(e,t),wl(e,[{key:"setData",value:function(t){if(this._data){this._data.off&&this._data.off("*",this._listener);var e=this._data.getIds({filter:el(this._options)}),i=this._data.get(e);this._ids.clear(),this.length=0,this._trigger("remove",{items:e,oldData:i})}if(null!=t){this._data=t;for(var n=this._data.getIds({filter:el(this._options)}),r=0,o=n.length;r<o;r++){var s=n[r];this._ids.add(s)}this.length=n.length,this._trigger("add",{items:n})}else this._data=new py;this._data.on&&this._data.on("*",this._listener)}},{key:"refresh",value:function(){for(var t=this._data.getIds({filter:el(this._options)}),e=Wc(this._ids),i={},n=[],r=[],o=[],s=0,a=t.length;s<a;s++){var l=t[s];i[l]=!0,this._ids.has(l)||(n.push(l),this._ids.add(l))}for(var u=0,h=e.length;u<h;u++){var c=e[u],d=this._data.get(c);null==d?console.error("If you see this, report it please."):i[c]||(r.push(c),o.push(d),this._ids.delete(c))}this.length+=n.length-r.length,n.length&&this._trigger("add",{items:n}),r.length&&this._trigger("remove",{items:r,oldData:o})}},{key:"get",value:function(t,e){if(null==this._data)return null;var i,n=null;Ug(t)||Cd(t)?(n=t,i=e):i=t;var r=Qc({},this._options,i),o=el(this._options),s=i&&el(i);return o&&s&&(r.filter=function(t){return o(t)&&s(t)}),null==n?this._data.get(r):this._data.get(n,r)}},{key:"getIds",value:function(t){if(this._data.length){var e,i=el(this._options),n=null!=t?el(t):null;return e=n?i?function(t){return i(t)&&n(t)}:n:i,this._data.getIds({filter:e,order:t&&t.order})}return[]}},{key:"forEach",value:function(t,e){if(this._data){var i,n,r=el(this._options),o=e&&el(e);n=o?r?function(t){return r(t)&&o(t)}:o:r,th(i=this._data).call(i,t,{filter:n,order:e&&e.order})}}},{key:"map",value:function(t,e){if(this._data){var i,n,r=el(this._options),o=e&&el(e);return n=o?r?function(t){return r(t)&&o(t)}:o:r,Za(i=this._data).call(i,t,{filter:n,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||oc({},$h,vl(e=Dc(this._ids)).call(e,this._ids)))}},{key:"dispose",value:function(){var t;(null===(t=this._data)||void 0===t?void 0:t.off)&&this._data.off("*",this._listener);var e="This data view has already been disposed of.";xl(this,"_data",{get:function(){throw new Error(e)},set:function(){throw new Error(e)},configurable:!1})}},{key:"_onEvent",value:function(t,e,i){if(e&&e.items&&this._data){var n=e.items,r=[],o=[],s=[],a=[],l=[],u=[];switch(t){case"add":for(var h=0,c=n.length;h<c;h++){var d=n[h];this.get(d)&&(this._ids.add(d),r.push(d))}break;case"update":for(var f=0,p=n.length;f<p;f++){var m=n[f];this.get(m)?this._ids.has(m)?(o.push(m),l.push(e.data[f]),a.push(e.oldData[f])):(this._ids.add(m),r.push(m)):this._ids.has(m)&&(this._ids.delete(m),s.push(m),u.push(e.oldData[f]))}break;case"remove":for(var v=0,g=n.length;v<g;v++){var y=n[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},i),o.length&&this._trigger("update",{items:o,oldData:a,data:l},i),s.length&&this._trigger("remove",{items:s,oldData:u},i)}}}]),e}(ry),vy=function(t){try{return!!t()}catch(t){return!0}},gy={}.toString,yy=function(t){return gy.call(t).slice(8,-1)},by="".split,_y=vy((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==yy(t)?by.call(t,""):Object(t)}:Object,wy=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},ky=function(t){return _y(wy(t))},Sy={},Dy=function(t){return t&&t.Math==Math&&t},xy=Dy("object"==typeof globalThis&&globalThis)||Dy("object"==typeof window&&window)||Dy("object"==typeof self&&self)||Dy("object"==typeof e&&e)||Function("return this")(),Oy=!vy((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),My=function(t){return"object"==typeof t?null!==t:"function"==typeof t},Ty=xy.document,Cy=My(Ty)&&My(Ty.createElement),Py=function(t){return Cy?Ty.createElement(t):{}},Ey=!Oy&&!vy((function(){return 7!=Object.defineProperty(Py("div"),"a",{get:function(){return 7}}).a})),Ay=function(t){if(!My(t))throw TypeError(String(t)+" is not an object");return t},Ly=function(t,e){if(!My(t))return t;var i,n;if(e&&"function"==typeof(i=t.toString)&&!My(n=i.call(t)))return n;if("function"==typeof(i=t.valueOf)&&!My(n=i.call(t)))return n;if(!e&&"function"==typeof(i=t.toString)&&!My(n=i.call(t)))return n;throw TypeError("Can't convert object to primitive value")},Iy=Object.defineProperty,jy={f:Oy?Iy:function(t,e,i){if(Ay(t),e=Ly(e,!0),Ay(i),Ey)try{return Iy(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(t[e]=i.value),t}},Yy=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Ny=Oy?function(t,e,i){return jy.f(t,e,Yy(1,i))}:function(t,e,i){return t[e]=i,t},Ry=xy["__core-js_shared__"]||function(t,e){try{Ny(xy,t,e)}catch(i){xy[t]=e}return e}("__core-js_shared__",{}),Fy=Function.toString;"function"!=typeof Ry.inspectSource&&(Ry.inspectSource=function(t){return Fy.call(t)});var Hy,Gy,Wy,zy=Ry.inspectSource,Vy=xy.WeakMap,Uy="function"==typeof Vy&&/native code/.test(zy(Vy)),By={}.hasOwnProperty,Xy=function(t,e){return By.call(t,e)},qy=n((function(t){(t.exports=function(t,e){return Ry[t]||(Ry[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.4",mode:"pure",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),Zy=0,Jy=Math.random(),$y=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++Zy+Jy).toString(36)},Ky=qy("keys"),Qy=function(t){return Ky[t]||(Ky[t]=$y(t))},tb={},eb=xy.WeakMap;if(Uy){var ib=new eb,nb=ib.get,rb=ib.has,ob=ib.set;Hy=function(t,e){return ob.call(ib,t,e),e},Gy=function(t){return nb.call(ib,t)||{}},Wy=function(t){return rb.call(ib,t)}}else{var sb=Qy("state");tb[sb]=!0,Hy=function(t,e){return Ny(t,sb,e),e},Gy=function(t){return Xy(t,sb)?t[sb]:{}},Wy=function(t){return Xy(t,sb)}}var ab,lb,ub,hb={set:Hy,get:Gy,has:Wy,enforce:function(t){return Wy(t)?Gy(t):Hy(t,{})},getterFor:function(t){return function(e){var i;if(!My(e)||(i=Gy(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return i}}},cb={}.propertyIsEnumerable,db=Object.getOwnPropertyDescriptor,fb={f:db&&!cb.call({1:2},1)?function(t){var e=db(this,t);return!!e&&e.enumerable}:cb},pb=Object.getOwnPropertyDescriptor,mb={f:Oy?pb:function(t,e){if(t=ky(t),e=Ly(e,!0),Ey)try{return pb(t,e)}catch(t){}if(Xy(t,e))return Yy(!fb.f.call(t,e),t[e])}},vb=/#|\.prototype\./,gb=function(t,e){var i=bb[yb(t)];return i==wb||i!=_b&&("function"==typeof e?vy(e):!!e)},yb=gb.normalize=function(t){return String(t).replace(vb,".").toLowerCase()},bb=gb.data={},_b=gb.NATIVE="N",wb=gb.POLYFILL="P",kb=gb,Sb={},Db=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},xb=function(t,e,i){if(Db(t),void 0===e)return t;switch(i){case 0:return function(){return t.call(e)};case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,r){return t.call(e,i,n,r)}}return function(){return t.apply(e,arguments)}},Ob=mb.f,Mb=function(t){var e=function(e,i,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,i)}return new t(e,i,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e},Tb=function(t,e){var i,n,r,o,s,a,l,u,h=t.target,c=t.global,d=t.stat,f=t.proto,p=c?xy:d?xy[h]:(xy[h]||{}).prototype,m=c?Sb:Sb[h]||(Sb[h]={}),v=m.prototype;for(r in e)i=!kb(c?r:h+(d?".":"#")+r,t.forced)&&p&&Xy(p,r),s=m[r],i&&(a=t.noTargetGet?(u=Ob(p,r))&&u.value:p[r]),o=i&&a?a:e[r],i&&typeof s==typeof o||(l=t.bind&&i?xb(o,xy):t.wrap&&i?Mb(o):f&&"function"==typeof o?xb(Function.call,o):o,(t.sham||o&&o.sham||s&&s.sham)&&Ny(l,"sham",!0),m[r]=l,f&&(Xy(Sb,n=h+"Prototype")||Ny(Sb,n,{}),Sb[n][r]=o,t.real&&v&&!v[r]&&Ny(v,r,o)))},Cb=function(t){return Object(wy(t))},Pb=!vy((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Eb=Qy("IE_PROTO"),Ab=Object.prototype,Lb=Pb?Object.getPrototypeOf:function(t){return t=Cb(t),Xy(t,Eb)?t[Eb]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Ab:null},Ib=!!Object.getOwnPropertySymbols&&!vy((function(){return!String(Symbol())})),jb=Ib&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Yb=qy("wks"),Nb=xy.Symbol,Rb=jb?Nb:Nb&&Nb.withoutSetter||$y,Fb=function(t){return Xy(Yb,t)||(Ib&&Xy(Nb,t)?Yb[t]=Nb[t]:Yb[t]=Rb("Symbol."+t)),Yb[t]},Hb=(Fb("iterator"),!1);[].keys&&("next"in(ub=[].keys())?(lb=Lb(Lb(ub)))!==Object.prototype&&(ab=lb):Hb=!0),null==ab&&(ab={});var Gb,Wb={IteratorPrototype:ab,BUGGY_SAFARI_ITERATORS:Hb},zb=Math.ceil,Vb=Math.floor,Ub=function(t){return isNaN(t=+t)?0:(t>0?Vb:zb)(t)},Bb=Math.min,Xb=function(t){return t>0?Bb(Ub(t),9007199254740991):0},qb=Math.max,Zb=Math.min,Jb=function(t,e){var i=Ub(t);return i<0?qb(i+e,0):Zb(i,e)},$b=function(t){return function(e,i,n){var r,o=ky(e),s=Xb(o.length),a=Jb(n,s);if(t&&i!=i){for(;s>a;)if((r=o[a++])!=r)return!0}else for(;s>a;a++)if((t||a in o)&&o[a]===i)return t||a||0;return!t&&-1}},Kb={includes:$b(!0),indexOf:$b(!1)},Qb=Kb.indexOf,t_=function(t,e){var i,n=ky(t),r=0,o=[];for(i in n)!Xy(tb,i)&&Xy(n,i)&&o.push(i);for(;e.length>r;)Xy(n,i=e[r++])&&(~Qb(o,i)||o.push(i));return o},e_=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],i_=Object.keys||function(t){return t_(t,e_)},n_=Oy?Object.defineProperties:function(t,e){Ay(t);for(var i,n=i_(e),r=n.length,o=0;r>o;)jy.f(t,i=n[o++],e[i]);return t},r_=function(t){return"function"==typeof t?t:void 0},o_=function(t,e){return arguments.length<2?r_(Sb[t])||r_(xy[t]):Sb[t]&&Sb[t][e]||xy[t]&&xy[t][e]},s_=o_("document","documentElement"),a_=Qy("IE_PROTO"),l_=function(){},u_=function(t){return"<script>"+t+"<\/script>"},h_=function(){try{Gb=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;h_=Gb?function(t){t.write(u_("")),t.close();var e=t.parentWindow.Object;return t=null,e}(Gb):((e=Py("iframe")).style.display="none",s_.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(u_("document.F=Object")),t.close(),t.F);for(var i=e_.length;i--;)delete h_.prototype[e_[i]];return h_()};tb[a_]=!0;var c_=Object.create||function(t,e){var i;return null!==t?(l_.prototype=Ay(t),i=new l_,l_.prototype=null,i[a_]=t):i=h_(),void 0===e?i:n_(i,e)},d_={};d_[Fb("toStringTag")]="z";var f_="[object z]"===String(d_),p_=Fb("toStringTag"),m_="Arguments"==yy(function(){return arguments}()),v_=f_?yy:function(t){var e,i,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),p_))?i:m_?yy(e):"Object"==(n=yy(e))&&"function"==typeof e.callee?"Arguments":n},g_=f_?{}.toString:function(){return"[object "+v_(this)+"]"},y_=jy.f,b_=Fb("toStringTag"),__=function(t,e,i,n){if(t){var r=i?t:t.prototype;Xy(r,b_)||y_(r,b_,{configurable:!0,value:e}),n&&!f_&&Ny(r,"toString",g_)}},w_=Wb.IteratorPrototype,k_=function(){return this},S_=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,i={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(i,[]),e=i instanceof Array}catch(t){}return function(i,n){return Ay(i),function(t){if(!My(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(n),e?t.call(i,n):i.__proto__=n,i}}():void 0),D_=function(t,e,i,n){n&&n.enumerable?t[e]=i:Ny(t,e,i)},x_=Wb.IteratorPrototype,O_=Wb.BUGGY_SAFARI_ITERATORS,M_=Fb("iterator"),T_=function(){return this},C_=function(t,e,i,n,r,o,s){!function(t,e,i){var n=e+" Iterator";t.prototype=c_(w_,{next:Yy(1,i)}),__(t,n,!1,!0),Sy[n]=k_}(i,e,n);var a,l,u,h=function(t){if(t===r&&m)return m;if(!O_&&t in f)return f[t];switch(t){case"keys":case"values":case"entries":return function(){return new i(this,t)}}return function(){return new i(this)}},c=e+" Iterator",d=!1,f=t.prototype,p=f[M_]||f["@@iterator"]||r&&f[r],m=!O_&&p||h(r),v="Array"==e&&f.entries||p;if(v&&(a=Lb(v.call(new t)),x_!==Object.prototype&&a.next&&(__(a,c,!0,!0),Sy[c]=T_)),"values"==r&&p&&"values"!==p.name&&(d=!0,m=function(){return p.call(this)}),s&&f[M_]!==m&&Ny(f,M_,m),Sy[e]=m,r)if(l={values:h("values"),keys:o?m:h("keys"),entries:h("entries")},s)for(u in l)!O_&&!d&&u in f||D_(f,u,l[u]);else Tb({target:e,proto:!0,forced:O_||d},l);return l},P_=hb.set,E_=hb.getterFor("Array Iterator");C_(Array,"Array",(function(t,e){P_(this,{type:"Array Iterator",target:ky(t),index:0,kind:e})}),(function(){var t=E_(this),e=t.target,i=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==i?{value:n,done:!1}:"values"==i?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values");Sy.Arguments=Sy.Array;var A_=Fb("toStringTag");for(var L_ in{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}){var I_=xy[L_],j_=I_&&I_.prototype;j_&&v_(j_)!==A_&&Ny(j_,A_,L_),Sy[L_]=Sy.Array}var Y_=Array.isArray||function(t){return"Array"==yy(t)},N_=Fb("species"),R_=function(t,e){var i;return Y_(t)&&("function"!=typeof(i=t.constructor)||i!==Array&&!Y_(i.prototype)?My(i)&&null===(i=i[N_])&&(i=void 0):i=void 0),new(void 0===i?Array:i)(0===e?0:e)},F_=[].push,H_=function(t){var e=1==t,i=2==t,n=3==t,r=4==t,o=6==t,s=5==t||o;return function(a,l,u,h){for(var c,d,f=Cb(a),p=_y(f),m=xb(l,u,3),v=Xb(p.length),g=0,y=h||R_,b=e?y(a,v):i?y(a,0):void 0;v>g;g++)if((s||g in p)&&(d=m(c=p[g],g,f),t))if(e)b[g]=d;else if(d)switch(t){case 3:return!0;case 5:return c;case 6:return g;case 2:F_.call(b,c)}else if(r)return!1;return o?-1:n||r?r:b}},G_={forEach:H_(0),map:H_(1),filter:H_(2),some:H_(3),every:H_(4),find:H_(5),findIndex:H_(6)},W_=function(t,e){var i=[][t];return!!i&&vy((function(){i.call(null,e||function(){throw 1},1)}))},z_=Object.defineProperty,V_={},U_=function(t){throw t},B_=function(t,e){if(Xy(V_,t))return V_[t];e||(e={});var i=[][t],n=!!Xy(e,"ACCESSORS")&&e.ACCESSORS,r=Xy(e,0)?e[0]:U_,o=Xy(e,1)?e[1]:void 0;return V_[t]=!!i&&!vy((function(){if(n&&!Oy)return!0;var t={length:-1};n?z_(t,1,{enumerable:!0,get:U_}):t[1]=1,i.call(t,r,o)}))},X_=G_.forEach,q_=W_("forEach"),Z_=B_("forEach"),J_=q_&&Z_?[].forEach:function(t){return X_(this,t,arguments.length>1?arguments[1]:void 0)};Tb({target:"Array",proto:!0,forced:[].forEach!=J_},{forEach:J_});var $_,K_,Q_=function(t){return Sb[t+"Prototype"]},tw=Q_("Array").forEach,ew=Array.prototype,iw={DOMTokenList:!0,NodeList:!0},nw=function(t){var e=t.forEach;return t===ew||t instanceof Array&&e===ew.forEach||iw.hasOwnProperty(v_(t))?tw:e},rw=o_("navigator","userAgent")||"",ow=xy.process,sw=ow&&ow.versions,aw=sw&&sw.v8;aw?K_=($_=aw.split("."))[0]+$_[1]:rw&&(!($_=rw.match(/Edge\/(\d+)/))||$_[1]>=74)&&($_=rw.match(/Chrome\/(\d+)/))&&(K_=$_[1]);var lw=K_&&+K_,uw=Fb("species"),hw=function(t){return lw>=51||!vy((function(){var e=[];return(e.constructor={})[uw]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},cw=G_.filter,dw=hw("filter"),fw=B_("filter");Tb({target:"Array",proto:!0,forced:!dw||!fw},{filter:function(t){return cw(this,t,arguments.length>1?arguments[1]:void 0)}});var pw=Q_("Array").filter,mw=Array.prototype,vw=function(t){var e=t.filter;return t===mw||t instanceof Array&&e===mw.filter?pw:e},gw=[].slice,yw=/MSIE .\./.test(rw),bw=function(t){return function(e,i){var n=arguments.length>2,r=n?gw.call(arguments,2):void 0;return t(n?function(){("function"==typeof e?e:Function(e)).apply(this,r)}:e,i)}};Tb({global:!0,bind:!0,forced:yw},{setTimeout:bw(xy.setTimeout),setInterval:bw(xy.setInterval)});var _w=Sb.setTimeout,ww=[].slice,kw={},Sw=function(t,e,i){if(!(e in kw)){for(var n=[],r=0;r<e;r++)n[r]="a["+r+"]";kw[e]=Function("C,a","return new C("+n.join(",")+")")}return kw[e](t,i)},Dw=Function.bind||function(t){var e=Db(this),i=ww.call(arguments,1),n=function(){var r=i.concat(ww.call(arguments));return this instanceof n?Sw(e,r.length,r):e.apply(t,r)};return My(e.prototype)&&(n.prototype=e.prototype),n};Tb({target:"Function",proto:!0},{bind:Dw});var xw=Q_("Function").bind,Ow=Function.prototype,Mw=function(t){var e=t.bind;return t===Ow||t instanceof Function&&e===Ow.bind?xw:e};Tb({target:"Array",stat:!0},{isArray:Y_});var Tw=Sb.Array.isArray,Cw=Tw;var Pw=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};Tb({target:"Object",stat:!0,forced:!Oy,sham:!Oy},{defineProperty:jy.f});var Ew=n((function(t){var e=Sb.Object,i=t.exports=function(t,i,n){return e.defineProperty(t,i,n)};e.defineProperty.sham&&(i.sham=!0)})),Aw=Ew;function Lw(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Aw(t,n.key,n)}}var Iw=function(t,e,i){return e&&Lw(t.prototype,e),i&&Lw(t,i),t},jw={f:Fb},Yw=jy.f,Nw=function(t){var e=Sb.Symbol||(Sb.Symbol={});Xy(e,t)||Yw(e,t,{value:jw.f(t)})};Nw("iterator");var Rw=function(t){return function(e,i){var n,r,o=String(wy(e)),s=Ub(i),a=o.length;return s<0||s>=a?t?"":void 0:(n=o.charCodeAt(s))<55296||n>56319||s+1===a||(r=o.charCodeAt(s+1))<56320||r>57343?t?o.charAt(s):n:t?o.slice(s,s+2):r-56320+(n-55296<<10)+65536}},Fw={codeAt:Rw(!1),charAt:Rw(!0)}.charAt,Hw=hb.set,Gw=hb.getterFor("String Iterator");C_(String,"String",(function(t){Hw(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=Gw(this),i=e.string,n=e.index;return n>=i.length?{value:void 0,done:!0}:(t=Fw(i,n),e.index+=t.length,{value:t,done:!1})}));var Ww=jw.f("iterator"),zw=function(t,e,i){var n=Ly(e);n in t?jy.f(t,n,Yy(0,i)):t[n]=i},Vw=Fb("isConcatSpreadable"),Uw=lw>=51||!vy((function(){var t=[];return t[Vw]=!1,t.concat()[0]!==t})),Bw=hw("concat"),Xw=function(t){if(!My(t))return!1;var e=t[Vw];return void 0!==e?!!e:Y_(t)};Tb({target:"Array",proto:!0,forced:!Uw||!Bw},{concat:function(t){var e,i,n,r,o,s=Cb(this),a=R_(s,0),l=0;for(e=-1,n=arguments.length;e<n;e++)if(o=-1===e?s:arguments[e],Xw(o)){if(l+(r=Xb(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(i=0;i<r;i++,l++)i in o&&zw(a,l,o[i])}else{if(l>=9007199254740991)throw TypeError("Maximum allowed index exceeded");zw(a,l++,o)}return a.length=l,a}});var qw=e_.concat("length","prototype"),Zw={f:Object.getOwnPropertyNames||function(t){return t_(t,qw)}},Jw=Zw.f,$w={}.toString,Kw="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Qw={f:function(t){return Kw&&"[object Window]"==$w.call(t)?function(t){try{return Jw(t)}catch(t){return Kw.slice()}}(t):Jw(ky(t))}},tk={f:Object.getOwnPropertySymbols},ek=G_.forEach,ik=Qy("hidden"),nk=Fb("toPrimitive"),rk=hb.set,ok=hb.getterFor("Symbol"),sk=Object.prototype,ak=xy.Symbol,lk=o_("JSON","stringify"),uk=mb.f,hk=jy.f,ck=Qw.f,dk=fb.f,fk=qy("symbols"),pk=qy("op-symbols"),mk=qy("string-to-symbol-registry"),vk=qy("symbol-to-string-registry"),gk=qy("wks"),yk=xy.QObject,bk=!yk||!yk.prototype||!yk.prototype.findChild,_k=Oy&&vy((function(){return 7!=c_(hk({},"a",{get:function(){return hk(this,"a",{value:7}).a}})).a}))?function(t,e,i){var n=uk(sk,e);n&&delete sk[e],hk(t,e,i),n&&t!==sk&&hk(sk,e,n)}:hk,wk=function(t,e){var i=fk[t]=c_(ak.prototype);return rk(i,{type:"Symbol",tag:t,description:e}),Oy||(i.description=e),i},kk=jb?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof ak},Sk=function(t,e,i){t===sk&&Sk(pk,e,i),Ay(t);var n=Ly(e,!0);return Ay(i),Xy(fk,n)?(i.enumerable?(Xy(t,ik)&&t[ik][n]&&(t[ik][n]=!1),i=c_(i,{enumerable:Yy(0,!1)})):(Xy(t,ik)||hk(t,ik,Yy(1,{})),t[ik][n]=!0),_k(t,n,i)):hk(t,n,i)},Dk=function(t,e){Ay(t);var i=ky(e),n=i_(i).concat(Tk(i));return ek(n,(function(e){Oy&&!xk.call(i,e)||Sk(t,e,i[e])})),t},xk=function(t){var e=Ly(t,!0),i=dk.call(this,e);return!(this===sk&&Xy(fk,e)&&!Xy(pk,e))&&(!(i||!Xy(this,e)||!Xy(fk,e)||Xy(this,ik)&&this[ik][e])||i)},Ok=function(t,e){var i=ky(t),n=Ly(e,!0);if(i!==sk||!Xy(fk,n)||Xy(pk,n)){var r=uk(i,n);return!r||!Xy(fk,n)||Xy(i,ik)&&i[ik][n]||(r.enumerable=!0),r}},Mk=function(t){var e=ck(ky(t)),i=[];return ek(e,(function(t){Xy(fk,t)||Xy(tb,t)||i.push(t)})),i},Tk=function(t){var e=t===sk,i=ck(e?pk:ky(t)),n=[];return ek(i,(function(t){!Xy(fk,t)||e&&!Xy(sk,t)||n.push(fk[t])})),n};if(Ib||(D_((ak=function(){if(this instanceof ak)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=$y(t),i=function(t){this===sk&&i.call(pk,t),Xy(this,ik)&&Xy(this[ik],e)&&(this[ik][e]=!1),_k(this,e,Yy(1,t))};return Oy&&bk&&_k(sk,e,{configurable:!0,set:i}),wk(e,t)}).prototype,"toString",(function(){return ok(this).tag})),D_(ak,"withoutSetter",(function(t){return wk($y(t),t)})),fb.f=xk,jy.f=Sk,mb.f=Ok,Zw.f=Qw.f=Mk,tk.f=Tk,jw.f=function(t){return wk(Fb(t),t)},Oy&&hk(ak.prototype,"description",{configurable:!0,get:function(){return ok(this).description}})),Tb({global:!0,wrap:!0,forced:!Ib,sham:!Ib},{Symbol:ak}),ek(i_(gk),(function(t){Nw(t)})),Tb({target:"Symbol",stat:!0,forced:!Ib},{for:function(t){var e=String(t);if(Xy(mk,e))return mk[e];var i=ak(e);return mk[e]=i,vk[i]=e,i},keyFor:function(t){if(!kk(t))throw TypeError(t+" is not a symbol");if(Xy(vk,t))return vk[t]},useSetter:function(){bk=!0},useSimple:function(){bk=!1}}),Tb({target:"Object",stat:!0,forced:!Ib,sham:!Oy},{create:function(t,e){return void 0===e?c_(t):Dk(c_(t),e)},defineProperty:Sk,defineProperties:Dk,getOwnPropertyDescriptor:Ok}),Tb({target:"Object",stat:!0,forced:!Ib},{getOwnPropertyNames:Mk,getOwnPropertySymbols:Tk}),Tb({target:"Object",stat:!0,forced:vy((function(){tk.f(1)}))},{getOwnPropertySymbols:function(t){return tk.f(Cb(t))}}),lk){var Ck=!Ib||vy((function(){var t=ak();return"[null]"!=lk([t])||"{}"!=lk({a:t})||"{}"!=lk(Object(t))}));Tb({target:"JSON",stat:!0,forced:Ck},{stringify:function(t,e,i){for(var n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e,(My(e)||void 0!==t)&&!kk(t))return Y_(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!kk(e))return e}),r[1]=e,lk.apply(null,r)}})}ak.prototype[nk]||Ny(ak.prototype,nk,ak.prototype.valueOf),__(ak,"Symbol"),tb[ik]=!0,Nw("asyncIterator"),Nw("hasInstance"),Nw("isConcatSpreadable"),Nw("match"),Nw("matchAll"),Nw("replace"),Nw("search"),Nw("species"),Nw("split"),Nw("toPrimitive"),Nw("toStringTag"),Nw("unscopables"),__(Math,"Math",!0),__(xy.JSON,"JSON",!0);var Pk=Sb.Symbol;Nw("asyncDispose"),Nw("dispose"),Nw("observable"),Nw("patternMatch"),Nw("replaceAll");var Ek=Pk,Ak=n((function(t){function e(i){return t.exports=e="function"==typeof Ek&&"symbol"==typeof Ww?function(t){return typeof t}:function(t){return t&&"function"==typeof Ek&&t.constructor===Ek&&t!==Ek.prototype?"symbol":typeof t},e(i)}t.exports=e}));var Lk=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t};var Ik=function(t,e){return!e||"object"!==Ak(e)&&"function"!=typeof e?Lk(t):e},jk=vy((function(){Lb(1)}));Tb({target:"Object",stat:!0,forced:jk,sham:!Pb},{getPrototypeOf:function(t){return Lb(Cb(t))}});var Yk=Sb.Object.getPrototypeOf;Tb({target:"Object",stat:!0},{setPrototypeOf:S_});var Nk=Sb.Object.setPrototypeOf,Rk=n((function(t){function e(i){return t.exports=e=Nk?Yk:function(t){return t.__proto__||Yk(t)},e(i)}t.exports=e}));Tb({target:"Object",stat:!0,sham:!Oy},{create:c_});var Fk=Sb.Object,Hk=function(t,e){return Fk.create(t,e)},Gk=Hk,Wk=n((function(t){function e(i,n){return t.exports=e=Nk||function(t,e){return t.__proto__=e,t},e(i,n)}t.exports=e}));var zk=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Gk(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Wk(t,e)},Vk="undefined"!=typeof window&&window.moment||r,Uk=Ew;Tb({target:"Object",stat:!0,forced:!Oy,sham:!Oy},{defineProperties:n_});var Bk=n((function(t){var e=Sb.Object,i=t.exports=function(t,i){return e.defineProperties(t,i)};e.defineProperties.sham&&(i.sham=!0)})),Xk=o_("Reflect","ownKeys")||function(t){var e=Zw.f(Ay(t)),i=tk.f;return i?e.concat(i(t)):e};Tb({target:"Object",stat:!0,sham:!Oy},{getOwnPropertyDescriptors:function(t){for(var e,i,n=ky(t),r=mb.f,o=Xk(n),s={},a=0;o.length>a;)void 0!==(i=r(n,e=o[a++]))&&zw(s,e,i);return s}});var qk=Sb.Object.getOwnPropertyDescriptors,Zk=mb.f,Jk=vy((function(){Zk(1)}));Tb({target:"Object",stat:!0,forced:!Oy||Jk,sham:!Oy},{getOwnPropertyDescriptor:function(t,e){return Zk(ky(t),e)}});var $k=n((function(t){var e=Sb.Object,i=t.exports=function(t,i){return e.getOwnPropertyDescriptor(t,i)};e.getOwnPropertyDescriptor.sham&&(i.sham=!0)})),Kk=Sb.Object.getOwnPropertySymbols;var Qk=function(t,e,i){return e in t?Aw(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t},tS=vy((function(){i_(1)}));Tb({target:"Object",stat:!0,forced:tS},{keys:function(t){return i_(Cb(t))}});var eS=Sb.Object.keys,iS=function(t){return function(e,i,n,r){Db(i);var o=Cb(e),s=_y(o),a=Xb(o.length),l=t?a-1:0,u=t?-1:1;if(n<2)for(;;){if(l in s){r=s[l],l+=u;break}if(l+=u,t?l<0:a<=l)throw TypeError("Reduce of empty array with no initial value")}for(;t?l>=0:a>l;l+=u)l in s&&(r=i(r,s[l],l,o));return r}},nS={left:iS(!1),right:iS(!0)}.left,rS=W_("reduce"),oS=B_("reduce",{1:0});Tb({target:"Array",proto:!0,forced:!rS||!oS},{reduce:function(t){return nS(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}});var sS=Q_("Array").reduce,aS=Array.prototype,lS=function(t){var e=t.reduce;return t===aS||t instanceof Array&&e===aS.reduce?sS:e},uS=G_.map,hS=hw("map"),cS=B_("map");Tb({target:"Array",proto:!0,forced:!hS||!cS},{map:function(t){return uS(this,t,arguments.length>1?arguments[1]:void 0)}});var dS=Q_("Array").map,fS=Array.prototype,pS=function(t){var e=t.map;return t===fS||t instanceof Array&&e===fS.map?dS:e};function mS(t,e){var i=eS(t);if(Kk){var n=Kk(t);e&&(n=vw(n).call(n,(function(e){return $k(t,e).enumerable}))),i.push.apply(i,n)}return i}var vS=/^\/?Date\((-?\d+)/i;function gS(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 Qr(t)&&!isNaN(Date.parse(t))?r(t).valueOf():Number(t.valueOf());case"string":case"String":return String(t);case"Date":if($r(t))return new Date(t);if(t instanceof Date)return new Date(t.valueOf());if(r.isMoment(t))return new Date(t.valueOf());if(Qr(t))return(i=vS.exec(t))?new Date(Number(i[1])):r(new Date(t)).toDate();throw new Error("Cannot convert object of type "+ho(t)+" to type Date");case"Moment":if($r(t))return r(t);if(t instanceof Date)return r(t.valueOf());if(r.isMoment(t))return r(t);if(Qr(t))return i=vS.exec(t),r(i?Number(i[1]):t);throw new Error("Cannot convert object of type "+ho(t)+" to type Date");case"ISODate":if($r(t))return new Date(t);if(t instanceof Date)return t.toISOString();if(r.isMoment(t))return t.toDate().toISOString();if(Qr(t))return(i=vS.exec(t))?new Date(Number(i[1])).toISOString():r(t).format();throw new Error("Cannot convert object of type "+ho(t)+" to type ISODate");case"ASPDate":if($r(t))return"/Date("+t+")/";if(t instanceof Date||r.isMoment(t))return"/Date("+t.valueOf()+")/";if(Qr(t))return"/Date("+((i=vS.exec(t))?new Date(Number(i[1])).valueOf():new Date(t).valueOf())+")/";throw new Error("Cannot convert object of type "+ho(t)+" to type ASPDate");default:throw new Error("Unknown type ".concat(e))}}}function yS(t){var e,i,n,r,o,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{start:"Date",end:"Date"},l=t._idProp,u=new py({fieldId:l}),h=pS(e=kl(t)).call(e,(function(t){var e;return lS(e=eS(t)).call(e,(function(e,i){return e[i]=gS(t[i],a[i]),e}),{})})).to(u);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)},forEach:Mw(i=nw(u)).call(i,u),get:Mw(n=u.get).call(n,u),getIds:Mw(r=u.getIds).call(r,u),off:Mw(o=u.off).call(o,u),on:Mw(s=u.on).call(s,u),get length(){return u.length},idProp:l,type:a,rawDS:t,coercedDS:u,dispose:function(){return h.stop()}}}var bS=function(t){for(var e=1;e<arguments.length;e++){var i,n=null!=arguments[e]?arguments[e]:{};if(e%2)nw(i=mS(Object(n),!0)).call(i,(function(e){Qk(t,e,n[e])}));else if(qk)Bk(t,qk(n));else{var r;nw(r=mS(Object(n))).call(r,(function(e){Uk(t,e,$k(n,e))}))}}return t}({},ts,{convert:gS}),_S="\t\n\v\f\r \u2028\u2029\ufeff",wS="["+_S+"]",kS=RegExp("^"+wS+wS+"*"),SS=RegExp(wS+wS+"*$"),DS=function(t){return function(e){var i=String(wy(e));return 1&t&&(i=i.replace(kS,"")),2&t&&(i=i.replace(SS,"")),i}},xS={start:DS(1),end:DS(2),trim:DS(3)},OS=xS.trim,MS=xy.parseFloat,TS=1/MS(_S+"-0")!=-1/0?function(t){var e=OS(String(t)),i=MS(e);return 0===i&&"-"==e.charAt(0)?-0:i}:MS;Tb({global:!0,forced:parseFloat!=TS},{parseFloat:TS});var CS=Sb.parseFloat;Tb({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}});var PS=Sb.Date.now,ES=o_("JSON","stringify"),AS=/[\uD800-\uDFFF]/g,LS=/^[\uD800-\uDBFF]$/,IS=/^[\uDC00-\uDFFF]$/,jS=function(t,e,i){var n=i.charAt(e-1),r=i.charAt(e+1);return LS.test(t)&&!IS.test(r)||IS.test(t)&&!LS.test(n)?"\\u"+t.charCodeAt(0).toString(16):t},YS=vy((function(){return'"\\udf06\\ud834"'!==ES("\udf06\ud834")||'"\\udead"'!==ES("\udead")}));ES&&Tb({target:"JSON",stat:!0,forced:YS},{stringify:function(t,e,i){var n=ES.apply(null,arguments);return"string"==typeof n?n.replace(AS,jS):n}}),Sb.JSON||(Sb.JSON={stringify:JSON.stringify});var NS=function(t,e,i){return Sb.JSON.stringify.apply(null,arguments)},RS=Q_("Array").concat,FS=Array.prototype,HS=function(t){var e=t.concat;return t===FS||t instanceof Array&&e===FS.concat?RS:e},GS=function(){function t(e,i){Pw(this,t),this.options=null,this.props=null}return Iw(t,[{key:"setOptions",value:function(t){t&&bS.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}(),WS=[],zS=WS.sort,VS=vy((function(){WS.sort(void 0)})),US=vy((function(){WS.sort(null)})),BS=W_("sort");Tb({target:"Array",proto:!0,forced:VS||!US||!BS},{sort:function(t){return void 0===t?zS.call(Cb(this)):zS.call(Cb(this),Db(t))}});var XS=Q_("Array").sort,qS=Array.prototype,ZS=function(t){var e=t.sort;return t===qS||t instanceof Array&&e===qS.sort?XS:e};Tb({target:"String",proto:!0},{repeat:"".repeat||function(t){var e=String(wy(this)),i="",n=Ub(t);if(n<0||n==1/0)throw RangeError("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(e+=e))1&n&&(i+=e);return i}});var JS=Q_("String").repeat,$S=String.prototype,KS=function(t){var e=t.repeat;return"string"==typeof t||t===$S||t instanceof String&&e===$S.repeat?JS:e};function QS(t,e,i){if(i&&!Cw(i))return QS(t,e,[i]);if(e.hiddenDates=[],i&&1==Cw(i)){for(var n,r=0;r<i.length;r++)if(void 0===KS(i[r])){var o={};o.start=t(i[r].start).toDate().valueOf(),o.end=t(i[r].end).toDate().valueOf(),e.hiddenDates.push(o)}ZS(n=e.hiddenDates).call(n,(function(t,e){return t.start-e.start}))}}function tD(t,e,i){if(i&&!Cw(i))return tD(t,e,[i]);if(i&&void 0!==e.domProps.centerContainer.width){QS(t,e,i);for(var n=t(e.range.start),r=t(e.range.end),o=(e.range.end-e.range.start)/e.domProps.centerContainer.width,s=0;s<i.length;s++)if(void 0!==KS(i[s])){var a=t(i[s].start),l=t(i[s].end);if("Invalid Date"==a._d)throw new Error("Supplied start date is not valid: ".concat(i[s].start));if("Invalid Date"==l._d)throw new Error("Supplied end date is not valid: ".concat(i[s].end));if(l-a>=4*o){var u=0,h=r.clone();switch(KS(i[s])){case"daily":a.day()!=l.day()&&(u=1),a.dayOfYear(n.dayOfYear()),a.year(n.year()),a.subtract(7,"days"),l.dayOfYear(n.dayOfYear()),l.year(n.year()),l.subtract(7-u,"days"),h.add(1,"weeks");break;case"weekly":var c=l.diff(a,"days"),d=a.day();a.date(n.date()),a.month(n.month()),a.year(n.year()),l=a.clone(),a.day(d),l.day(d),l.add(c,"days"),a.subtract(1,"weeks"),l.subtract(1,"weeks"),h.add(1,"weeks");break;case"monthly":a.month()!=l.month()&&(u=1),a.month(n.month()),a.year(n.year()),a.subtract(1,"months"),l.month(n.month()),l.year(n.year()),l.subtract(1,"months"),l.add(u,"months"),h.add(1,"months");break;case"yearly":a.year()!=l.year()&&(u=1),a.year(n.year()),a.subtract(1,"years"),l.year(n.year()),l.subtract(1,"years"),l.add(u,"years"),h.add(1,"years");break;default:return void console.log("Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:",KS(i[s]))}for(;a<h;)switch(e.hiddenDates.push({start:a.valueOf(),end:l.valueOf()}),KS(i[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:",KS(i[s]))}e.hiddenDates.push({start:a.valueOf(),end:l.valueOf()})}}eD(e);var f=cD(e.range.start,e.hiddenDates),p=cD(e.range.end,e.hiddenDates),m=e.range.start,v=e.range.end;1==f.hidden&&(m=1==e.range.startToFront?f.startDate-1:f.endDate+1),1==p.hidden&&(v=1==e.range.endToFront?p.startDate-1:p.endDate+1),1!=f.hidden&&1!=p.hidden||e.range._applyRange(m,v)}}function eD(t){for(var e,i=t.hiddenDates,n=[],r=0;r<i.length;r++)for(var o=0;o<i.length;o++)r!=o&&1!=i[o].remove&&1!=i[r].remove&&(i[o].start>=i[r].start&&i[o].end<=i[r].end?i[o].remove=!0:i[o].start>=i[r].start&&i[o].start<=i[r].end?(i[r].end=i[o].end,i[o].remove=!0):i[o].end>=i[r].start&&i[o].end<=i[r].end&&(i[r].start=i[o].start,i[o].remove=!0));for(r=0;r<i.length;r++)!0!==i[r].remove&&n.push(i[r]);t.hiddenDates=n,ZS(e=t.hiddenDates).call(e,(function(t,e){return t.start-e.start}))}function iD(t,e,i){for(var n=!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){n=!0;break}}if(1==n&&r<e._end.valueOf()&&r!=i){var l=t(i),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 nD(t,e,i){var n;if(0==t.body.hiddenDates.length)return n=t.range.conversion(i),(e.valueOf()-n.offset)*n.scale;var r=cD(e,t.body.hiddenDates);1==r.hidden&&(e=r.startDate);var o=oD(t.body.hiddenDates,t.range.start,t.range.end);if(e<t.range.start){n=t.range.conversion(i,o);var s=sD(t.body.hiddenDates,e,n.offset);return e=t.options.moment(e).toDate().valueOf(),e+=s,-(n.offset-e.valueOf())*n.scale}if(e>t.range.end){var a={start:t.range.start,end:e};return e=aD(t.options.moment,t.body.hiddenDates,a,e),n=t.range.conversion(i,o),(e.valueOf()-n.offset)*n.scale}return e=aD(t.options.moment,t.body.hiddenDates,t.range,e),n=t.range.conversion(i,o),(e.valueOf()-n.offset)*n.scale}function rD(t,e,i){if(0==t.body.hiddenDates.length){var n=t.range.conversion(i);return new Date(e/n.scale+n.offset)}var r=oD(t.body.hiddenDates,t.range.start,t.range.end),o=(t.range.end-t.range.start-r)*e/i,s=uD(t.body.hiddenDates,t.range,o);return new Date(s+o+t.range.start)}function oD(t,e,i){for(var n=0,r=0;r<t.length;r++){var o=t[r].start,s=t[r].end;o>=e&&s<i&&(n+=s-o)}return n}function sD(t,e,i){for(var n=0,r=0;r<t.length;r++){var o=t[r].start,s=t[r].end;o>=e&&s<=i&&(n+=s-o)}return n}function aD(t,e,i,n){return n=t(n).toDate().valueOf(),n-=lD(t,e,i,n)}function lD(t,e,i,n){var r=0;n=t(n).toDate().valueOf();for(var o=0;o<e.length;o++){var s=e[o].start,a=e[o].end;s>=i.start&&a<i.end&&n>=a&&(r+=a-s)}return r}function uD(t,e,i){for(var n=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>=i)break;n+=l-a}}return n}function hD(t,e,i,n){var r=cD(e,t);return 1==r.hidden?i<0?1==n?r.startDate-(r.endDate-e)-1:r.startDate-1:1==n?r.endDate+(e-r.startDate)+1:r.endDate+1:e}function cD(t,e){for(var i=0;i<e.length;i++){var n=e[i].start,r=e[i].end;if(t>=n&&t<r)return{hidden:!0,startDate:n,endDate:r}}return{hidden:!1,startDate:n,endDate:r}}var dD=Object.freeze({__proto__:null,convertHiddenOptions:QS,updateHiddenDates:tD,removeDuplicates:eD,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)},stepOverHiddenDates:iD,toScreen:nD,toTime:rD,getHiddenDurationBetween:oD,getHiddenDurationBeforeStart:sD,correctTimeForHidden:aD,getHiddenDurationBefore:lD,getAccumulatedHiddenDuration:uD,snapAwayFromHidden:hD,getIsHidden:cD}),fD=function(t){function e(t,i){var n,r,o,s,a,l,u,h;Pw(this,e),h=Ik(this,Rk(e).call(this));var c=Vk().hours(0).minutes(0).seconds(0).milliseconds(0),d=c.clone().add(-3,"days").valueOf(),f=c.clone().add(3,"days").valueOf();return h.millisecondsPerPixelCache=void 0,void 0===i?(h.start=d,h.end=f):(h.start=i.start||d,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:Vk,direction:"horizontal",moveable:!0,zoomable:!0,min:null,max:null,zoomMin:10,zoomMax:31536e10,rollingMode:{follow:!1,offset:.5}},h.options=bS.extend({},h.defaultOptions),h.props={touch:{}},h.animationTimer=null,h.body.emitter.on("panstart",Mw(n=h._onDragStart).call(n,Lk(h))),h.body.emitter.on("panmove",Mw(r=h._onDrag).call(r,Lk(h))),h.body.emitter.on("panend",Mw(o=h._onDragEnd).call(o,Lk(h))),h.body.emitter.on("mousewheel",Mw(s=h._onMouseWheel).call(s,Lk(h))),h.body.emitter.on("touch",Mw(a=h._onTouch).call(a,Lk(h))),h.body.emitter.on("pinch",Mw(l=h._onPinch).call(l,Lk(h))),h.body.dom.rollingModeBtn.addEventListener("click",Mw(u=h.startRolling).call(u,Lk(h))),h.setOptions(i),h}return zk(e,t),Iw(e,[{key:"setOptions",value:function(t){if(t){bS.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 i=t.end-t.start,n=bS.convert(new Date,"Date").valueOf(),r=t.options.rollingMode&&t.options.rollingMode.offset||.5,o=n-i*r,s=n+i*(1-r);t.setRange(o,s,{animation:!1}),(i=1/t.conversion(t.body.domProps.center.width).scale/10)<30&&(i=30),i>1e3&&(i=1e3),t.body.dom.rollingModeBtn.style.visibility="hidden",t.currentTimeTimer=_w(e,i)}()}},{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,i,n,r){i||(i={}),!0!==i.byUser&&(i.byUser=!1);var o=this,s=null!=t?bS.convert(t,"Date").valueOf():null,a=null!=e?bS.convert(e,"Date").valueOf():null;if(this._cancelAnimation(),this.millisecondsPerPixelCache=void 0,i.animation){var l,u=this.start,h=this.end,c="object"===Ak(i.animation)&&"duration"in i.animation?i.animation.duration:500,d="object"===Ak(i.animation)&&"easingFunction"in i.animation?i.animation.easingFunction:"easeInOutQuad",f=bS.easingFunctions[d];if(!f)throw new Error(HS(l="Unknown easing function ".concat(NS(d),". Choose from: ")).call(l,eS(bS.easingFunctions).join(", ")));var p=PS(),m=!1;return function t(){if(!o.props.touch.dragging){var e=PS()-p,l=f(e/c),d=e>c,g=d||null===s?s:u+(s-u)*l,y=d||null===a?a:h+(a-h)*l;v=o._applyRange(g,y),tD(o.options.moment,o.body,o.options.hiddenDates),m=m||v;var b={start:new Date(o.start),end:new Date(o.end),byUser:i.byUser,event:i.event};if(r&&r(l,v,d),v&&o.body.emitter.emit("rangechange",b),d){if(m&&(o.body.emitter.emit("rangechanged",b),n))return n()}else o.animationTimer=_w(t,20)}}()}var v=this._applyRange(s,a);if(tD(this.options.moment,this.body,this.options.hiddenDates),v){var g={start:new Date(this.start),end:new Date(this.end),byUser:i.byUser,event:i.event};if(this.body.emitter.emit("rangechange",g),clearTimeout(o.timeoutID),o.timeoutID=_w((function(){o.body.emitter.emit("rangechanged",g)}),200),n)return n()}}},{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 i,n=null!=t?bS.convert(t,"Date").valueOf():this.start,r=null!=e?bS.convert(e,"Date").valueOf():this.end,o=null!=this.options.max?bS.convert(this.options.max,"Date").valueOf():null,s=null!=this.options.min?bS.convert(this.options.min,"Date").valueOf():null;if(isNaN(n)||null===n)throw new Error('Invalid start "'.concat(t,'"'));if(isNaN(r)||null===r)throw new Error('Invalid end "'.concat(e,'"'));if(r<n&&(r=n),null!==s&&n<s&&(n+=i=s-n,r+=i,null!=o&&r>o&&(r=o)),null!==o&&r>o&&(n-=i=r-o,r-=i,null!=s&&n<s&&(n=s)),null!==this.options.zoomMin){var a=CS(this.options.zoomMin);if(a<0&&(a=0),r-n<a){this.end-this.start===a&&n>=this.start-.5&&r<=this.end?(n=this.start,r=this.end):(n-=(i=a-(r-n))/2,r+=i/2)}}if(null!==this.options.zoomMax){var l=CS(this.options.zoomMax);l<0&&(l=0),r-n>l&&(this.end-this.start===l&&n<this.start&&r>this.end?(n=this.start,r=this.end):(n+=(i=r-n-l)/2,r-=i/2))}var u=this.start!=n||this.end!=r;return n>=this.start&&n<=this.end||r>=this.start&&r<=this.end||this.start>=n&&this.start<=r||this.end>=n&&this.end<=r||this.body.emitter.emit("checkRangedItems"),this.start=n,this.end=r,u}},{key:"getRange",value:function(){return{start:this.start,end:this.end}}},{key:"conversion",value:function(t,i){return e.conversion(this.start,this.end,t,i)}},{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;pD(e);var i="horizontal"==e?t.deltaX:t.deltaY;i-=this.deltaDifference;var n=this.props.touch.end-this.props.touch.start;n-=oD(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?i/o*n:-i/o*n;var s=this.props.touch.start+r,a=this.props.touch.end+r,l=hD(this.body.hiddenDates,s,this.previousDelta-i,!0),u=hD(this.body.hiddenDates,a,this.previousDelta-i,!0);if(l!=s||u!=a)return this.deltaDifference+=i,this.props.touch.start=l,this.props.touch.end=u,void this._onDrag(t);this.previousDelta=i,this._applyRange(s,a);var h=new Date(this.start),c=new Date(this.end);this.body.emitter.emit("rangechange",{start:h,end:c,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 i,n,r=this.options.zoomFriction||5;if(i=e<0?1-e/r:1/(1+e/r),this.rolling){var o=this.options.rollingMode&&this.options.rollingMode.offset||.5;n=this.start+(this.end-this.start)*o}else{var s=this.getPointer({x:t.clientX,y:t.clientY},this.body.dom.center);n=this._pointerToDate(s)}this.zoom(i,n,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,bS.preventDefault(t)}},{key:"_onPinch",value:function(t){if(this.options.zoomable&&this.options.moveable){bS.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),i=this.props.touch.centerDate,n=oD(this.body.hiddenDates,this.start,this.end),r=lD(this.options.moment,this.body.hiddenDates,this,i),o=n-r,s=i-r+(this.props.touch.start-(i-r))*e,a=i+o+(this.props.touch.end-(i+o))*e;this.startToFront=1-e<=0,this.endToFront=e-1<=0;var l=hD(this.body.hiddenDates,s,1-e,!0),u=hD(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 h={animation:!1,byUser:!0,event:t};this.setRange(s,a,h),this.startToFront=!1,this.endToFront=!0}}},{key:"_isInsideRange",value:function(t){var e=t.center?t.center.x:t.clientX,i=this.body.dom.centerContainer.getBoundingClientRect(),n=this.options.rtl?e-i.left:i.right-e,r=this.body.util.toTime(n);return r>=this.start&&r<=this.end}},{key:"_pointerToDate",value:function(t){var e,i=this.options.direction;if(pD(i),"horizontal"==i)return this.body.util.toTime(t.x).valueOf();var n=this.body.domProps.center.height;return e=this.conversion(n),t.y/e.scale+e.offset}},{key:"getPointer",value:function(t,e){var i=e.getBoundingClientRect();return this.options.rtl?{x:i.right-t.x,y:t.y-i.top}:{x:t.x-i.left,y:t.y-i.top}}},{key:"zoom",value:function(t,e,i,n){null==e&&(e=(this.start+this.end)/2);var r=oD(this.body.hiddenDates,this.start,this.end),o=lD(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=!(i>0),this.endToFront=!(-i>0);var u=hD(this.body.hiddenDates,a,i,!0),h=hD(this.body.hiddenDates,l,-i,!0);u==a&&h==l||(a=u,l=h);var c={animation:!1,byUser:!0,event:n};this.setRange(a,l,c),this.startToFront=!1,this.endToFront=!0}},{key:"move",value:function(t){var e=this.end-this.start,i=this.start+e*t,n=this.end+e*t;this.start=i,this.end=n}},{key:"moveTo",value:function(t){var e=(this.start+this.end)/2-t,i=this.start-e,n=this.end-e;this.setRange(i,n,{animation:!1,byUser:!0,event:null})}}],[{key:"conversion",value:function(t,e,i,n){return void 0===n&&(n=0),0!=i&&e-t!=0?{offset:t,scale:i/(e-t-n)}:{offset:0,scale:1}}}]),e}(GS);function pD(t){if("horizontal"!=t&&"vertical"!=t)throw new TypeError('Unknown direction "'.concat(t,'". Choose "horizontal" or "vertical".'))}var mD=Sb.setInterval,vD=G_.some,gD=W_("some"),yD=B_("some");Tb({target:"Array",proto:!0,forced:!gD||!yD},{some:function(t){return vD(this,t,arguments.length>1?arguments[1]:void 0)}});var bD=Q_("Array").some,_D=Array.prototype,wD=function(t){var e=t.some;return t===_D||t instanceof Array&&e===_D.some?bD:e},kD=hw("splice"),SD=B_("splice",{ACCESSORS:!0,0:0,1:2}),DD=Math.max,xD=Math.min;Tb({target:"Array",proto:!0,forced:!kD||!SD},{splice:function(t,e){var i,n,r,o,s,a,l=Cb(this),u=Xb(l.length),h=Jb(t,u),c=arguments.length;if(0===c?i=n=0:1===c?(i=0,n=u-h):(i=c-2,n=xD(DD(Ub(e),0),u-h)),u+i-n>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(r=R_(l,n),o=0;o<n;o++)(s=h+o)in l&&zw(r,o,l[s]);if(r.length=n,i<n){for(o=h;o<u-n;o++)a=o+i,(s=o+n)in l?l[a]=l[s]:delete l[a];for(o=u;o>u-n+i;o--)delete l[o-1]}else if(i>n)for(o=u-n;o>h;o--)a=o+i-1,(s=o+n-1)in l?l[a]=l[s]:delete l[a];for(o=0;o<i;o++)l[o+h]=arguments[o+2];return l.length=u-n+i,r}});var OD=Q_("Array").splice,MD=Array.prototype,TD=function(t){var e=t.splice;return t===MD||t instanceof Array&&e===MD.splice?OD:e},CD=Kb.indexOf,PD=[].indexOf,ED=!!PD&&1/[1].indexOf(1,-0)<0,AD=W_("indexOf"),LD=B_("indexOf",{ACCESSORS:!0,1:0});Tb({target:"Array",proto:!0,forced:ED||!AD||!LD},{indexOf:function(t){return ED?PD.apply(this,arguments)||0:CD(this,t,arguments.length>1?arguments[1]:void 0)}});var ID=Q_("Array").indexOf,jD=Array.prototype,YD=function(t){var e=t.indexOf;return t===jD||t instanceof Array&&e===jD.indexOf?ID:e},ND=RD;function RD(t){if(t)return function(t){for(var e in RD.prototype)t[e]=RD.prototype[e];return t}(t)}RD.prototype.on=RD.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks[t]=this._callbacks[t]||[]).push(e),this},RD.prototype.once=function(t,e){var i=this;function n(){i.off(t,n),e.apply(this,arguments)}return this._callbacks=this._callbacks||{},n.fn=e,this.on(t,n),this},RD.prototype.off=RD.prototype.removeListener=RD.prototype.removeAllListeners=RD.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var i,n=this._callbacks[t];if(!n)return this;if(1==arguments.length)return delete this._callbacks[t],this;for(var r=0;r<n.length;r++)if((i=n[r])===e||i.fn===e){n.splice(r,1);break}return this},RD.prototype.emit=function(t){this._callbacks=this._callbacks||{};var e=[].slice.call(arguments,1),i=this._callbacks[t];if(i)for(var n=0,r=(i=i.slice(0)).length;n<r;++n)i[n].apply(this,e);return this},RD.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks[t]||[]},RD.prototype.hasListeners=function(t){return!!this.listeners(t).length};var FD=n((function(t,e){var i;t.exports=(i=null,function t(e,n){var r=n||{preventDefault:!1};if(e.Manager){var o=e,s=function(e,i){var n=Object.create(r);return i&&o.assign(n,i),t(new o(e,n),n)};return o.assign(s,o),s.Manager=function(e,i){var n=Object.create(r);return i&&o.assign(n,i),t(new o.Manager(e,n),n)},s}var a=Object.create(e),l=e.element;function u(t){return t.match(/[^ ]+/g)}function h(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=i;for(var r=i;r&&!e;){var o=r.hammer;if(o)for(var s,a=0;a<o.length;a++)if(s=o[a]._handlers[t.type])for(var l=0;l<s.length&&!e;l++)s[l](t);r=r.parentNode}}return l.hammer||(l.hammer=[]),l.hammer.push(a),e.on("hammer.input",(function(t){!0!==r.preventDefault&&r.preventDefault!==t.pointerType||t.preventDefault(),t.isFirst&&(i=t.target)})),a._handlers={},a.on=function(t,i){return u(t).forEach((function(t){var n=a._handlers[t];n||(a._handlers[t]=n=[],e.on(t,h)),n.push(i)})),a},a.off=function(t,i){return u(t).forEach((function(t){var n=a._handlers[t];n&&((n=i?n.filter((function(t){return t!==i})):[]).length>0?a._handlers[t]=n:(e.off(t,h),delete a._handlers[t]))})),a},a.emit=function(t,n){i=n.target,e.emit(t,n)},a.destroy=function(){var t=e.element.hammer,i=t.indexOf(a);-1!==i&&t.splice(i,1),t.length||delete e.element.hammer,a._handlers={},e.destroy()},a})}));
|
||
/*! 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 HD(){return(HD=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(this,arguments)}function GD(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function WD(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var zD,VD="function"!=typeof Object.assign?function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i<arguments.length;i++){var n=arguments[i];if(null!=n)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}:Object.assign,UD=["","webkit","Moz","MS","ms","o"],BD="undefined"==typeof document?{style:{}}:document.createElement("div"),XD=Math.round,qD=Math.abs,ZD=Date.now;function JD(t,e){for(var i,n,r=e[0].toUpperCase()+e.slice(1),o=0;o<UD.length;){if((n=(i=UD[o])?i+r:e)in t)return n;o++}}zD="undefined"==typeof window?{}:window;var $D=JD(BD.style,"touchAction"),KD=void 0!==$D;var QD=function(){if(!KD)return!1;var t={},e=zD.CSS&&zD.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(i){return t[i]=!e||zD.CSS.supports("touch-action",i)})),t}(),tx="ontouchstart"in zD,ex=void 0!==JD(zD,"PointerEvent"),ix=tx&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),nx=["x","y"],rx=["clientX","clientY"];function ox(t,e,i){var n;if(t)if(t.forEach)t.forEach(e,i);else if(void 0!==t.length)for(n=0;n<t.length;)e.call(i,t[n],n,t),n++;else for(n in t)t.hasOwnProperty(n)&&e.call(i,t[n],n,t)}function sx(t,e){return"function"==typeof t?t.apply(e&&e[0]||void 0,e):t}function ax(t,e){return t.indexOf(e)>-1}var lx=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){"compute"===t&&(t=this.compute()),KD&&this.manager.element.style&&QD[t]&&(this.manager.element.style[$D]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return ox(this.manager.recognizers,(function(e){sx(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(ax(t,"none"))return"none";var e=ax(t,"pan-x"),i=ax(t,"pan-y");return e&&i?"none":e||i?e?"pan-x":"pan-y":ax(t,"manipulation")?"manipulation":"auto"}(t.join(" "))},e.preventDefaults=function(t){var e=t.srcEvent,i=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var n=this.actions,r=ax(n,"none")&&!QD.none,o=ax(n,"pan-y")&&!QD["pan-y"],s=ax(n,"pan-x")&&!QD["pan-x"];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&&6&i||s&&24&i?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function ux(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function hx(t){var e=t.length;if(1===e)return{x:XD(t[0].clientX),y:XD(t[0].clientY)};for(var i=0,n=0,r=0;r<e;)i+=t[r].clientX,n+=t[r].clientY,r++;return{x:XD(i/e),y:XD(n/e)}}function cx(t){for(var e=[],i=0;i<t.pointers.length;)e[i]={clientX:XD(t.pointers[i].clientX),clientY:XD(t.pointers[i].clientY)},i++;return{timeStamp:ZD(),pointers:e,center:hx(e),deltaX:t.deltaX,deltaY:t.deltaY}}function dx(t,e,i){i||(i=nx);var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return Math.sqrt(n*n+r*r)}function fx(t,e,i){i||(i=nx);var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return 180*Math.atan2(r,n)/Math.PI}function px(t,e){return t===e?1:qD(t)>=qD(e)?t<0?2:4:e<0?8:16}function mx(t,e,i){return{x:e/t||0,y:i/t||0}}function vx(t,e){var i=t.session,n=e.pointers,r=n.length;i.firstInput||(i.firstInput=cx(e)),r>1&&!i.firstMultiple?i.firstMultiple=cx(e):1===r&&(i.firstMultiple=!1);var o=i.firstInput,s=i.firstMultiple,a=s?s.center:o.center,l=e.center=hx(n);e.timeStamp=ZD(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=fx(a,l),e.distance=dx(a,l),function(t,e){var i=e.center,n=t.offsetDelta||{},r=t.prevDelta||{},o=t.prevInput||{};1!==e.eventType&&4!==o.eventType||(r=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},n=t.offsetDelta={x:i.x,y:i.y}),e.deltaX=r.x+(i.x-n.x),e.deltaY=r.y+(i.y-n.y)}(i,e),e.offsetDirection=px(e.deltaX,e.deltaY);var u,h,c=mx(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=c.x,e.overallVelocityY=c.y,e.overallVelocity=qD(c.x)>qD(c.y)?c.x:c.y,e.scale=s?(u=s.pointers,dx((h=n)[0],h[1],rx)/dx(u[0],u[1],rx)):1,e.rotation=s?function(t,e){return fx(e[1],e[0],rx)+fx(t[1],t[0],rx)}(s.pointers,n):0,e.maxPointers=i.prevInput?e.pointers.length>i.prevInput.maxPointers?e.pointers.length:i.prevInput.maxPointers:e.pointers.length,function(t,e){var i,n,r,o,s=t.lastInterval||e,a=e.timeStamp-s.timeStamp;if(8!==e.eventType&&(a>25||void 0===s.velocity)){var l=e.deltaX-s.deltaX,u=e.deltaY-s.deltaY,h=mx(a,l,u);n=h.x,r=h.y,i=qD(h.x)>qD(h.y)?h.x:h.y,o=px(l,u),t.lastInterval=e}else i=s.velocity,n=s.velocityX,r=s.velocityY,o=s.direction;e.velocity=i,e.velocityX=n,e.velocityY=r,e.direction=o}(i,e);var d,f=t.element,p=e.srcEvent;ux(d=p.composedPath?p.composedPath()[0]:p.path?p.path[0]:p.target,f)&&(f=d),e.target=f}function gx(t,e,i){var n=i.pointers.length,r=i.changedPointers.length,o=1&e&&n-r==0,s=12&e&&n-r==0;i.isFirst=!!o,i.isFinal=!!s,o&&(t.session={}),i.eventType=e,vx(t,i),t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function yx(t){return t.trim().split(/\s+/g)}function bx(t,e,i){ox(yx(e),(function(e){t.addEventListener(e,i,!1)}))}function _x(t,e,i){ox(yx(e),(function(e){t.removeEventListener(e,i,!1)}))}function wx(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var kx=function(){function t(t,e){var i=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){sx(t.options.enable,[t])&&i.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&bx(this.element,this.evEl,this.domHandler),this.evTarget&&bx(this.target,this.evTarget,this.domHandler),this.evWin&&bx(wx(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&_x(this.element,this.evEl,this.domHandler),this.evTarget&&_x(this.target,this.evTarget,this.domHandler),this.evWin&&_x(wx(this.element),this.evWin,this.domHandler)},t}();function Sx(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);for(var n=0;n<t.length;){if(i&&t[n][i]==e||!i&&t[n]===e)return n;n++}return-1}var Dx={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},xx={2:"touch",3:"pen",4:"mouse",5:"kinect"},Ox="pointerdown",Mx="pointermove pointerup pointercancel";zD.MSPointerEvent&&!zD.PointerEvent&&(Ox="MSPointerDown",Mx="MSPointerMove MSPointerUp MSPointerCancel");var Tx=function(t){function e(){var i,n=e.prototype;return n.evEl=Ox,n.evWin=Mx,(i=t.apply(this,arguments)||this).store=i.manager.session.pointerEvents=[],i}return GD(e,t),e.prototype.handler=function(t){var e=this.store,i=!1,n=t.type.toLowerCase().replace("ms",""),r=Dx[n],o=xx[t.pointerType]||t.pointerType,s="touch"===o,a=Sx(e,t.pointerId,"pointerId");1&r&&(0===t.button||s)?a<0&&(e.push(t),a=e.length-1):12&r&&(i=!0),a<0||(e[a]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),i&&e.splice(a,1))},e}(kx);function Cx(t){return Array.prototype.slice.call(t,0)}function Px(t,e,i){for(var n=[],r=[],o=0;o<t.length;){var s=e?t[o][e]:t[o];Sx(r,s)<0&&n.push(t[o]),r[o]=s,o++}return i&&(n=e?n.sort((function(t,i){return t[e]>i[e]})):n.sort()),n}var Ex={touchstart:1,touchmove:2,touchend:4,touchcancel:8},Ax=function(t){function e(){var i;return e.prototype.evTarget="touchstart touchmove touchend touchcancel",(i=t.apply(this,arguments)||this).targetIds={},i}return GD(e,t),e.prototype.handler=function(t){var e=Ex[t.type],i=Lx.call(this,t,e);i&&this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:"touch",srcEvent:t})},e}(kx);function Lx(t,e){var i,n,r=Cx(t.touches),o=this.targetIds;if(3&e&&1===r.length)return o[r[0].identifier]=!0,[r,r];var s=Cx(t.changedTouches),a=[],l=this.target;if(n=r.filter((function(t){return ux(t.target,l)})),1===e)for(i=0;i<n.length;)o[n[i].identifier]=!0,i++;for(i=0;i<s.length;)o[s[i].identifier]&&a.push(s[i]),12&e&&delete o[s[i].identifier],i++;return a.length?[Px(n.concat(a),"identifier",!0),a]:void 0}var Ix={mousedown:1,mousemove:2,mouseup:4},jx=function(t){function e(){var i,n=e.prototype;return n.evEl="mousedown",n.evWin="mousemove mouseup",(i=t.apply(this,arguments)||this).pressed=!1,i}return GD(e,t),e.prototype.handler=function(t){var e=Ix[t.type];1&e&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=4),this.pressed&&(4&e&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))},e}(kx);function Yx(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var i={x:e.clientX,y:e.clientY},n=this.lastTouches;this.lastTouches.push(i);setTimeout((function(){var t=n.indexOf(i);t>-1&&n.splice(t,1)}),2500)}}function Nx(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,Yx.call(this,e)):12&t&&Yx.call(this,e)}function Rx(t){for(var e=t.srcEvent.clientX,i=t.srcEvent.clientY,n=0;n<this.lastTouches.length;n++){var r=this.lastTouches[n],o=Math.abs(e-r.x),s=Math.abs(i-r.y);if(o<=25&&s<=25)return!0}return!1}var Fx=function(){return function(t){function e(e,i){var n;return(n=t.call(this,e,i)||this).handler=function(t,e,i){var r="touch"===i.pointerType,o="mouse"===i.pointerType;if(!(o&&i.sourceCapabilities&&i.sourceCapabilities.firesTouchEvents)){if(r)Nx.call(WD(WD(n)),e,i);else if(o&&Rx.call(WD(WD(n)),i))return;n.callback(t,e,i)}},n.touch=new Ax(n.manager,n.handler),n.mouse=new jx(n.manager,n.handler),n.primaryTouch=null,n.lastTouches=[],n}return GD(e,t),e.prototype.destroy=function(){this.touch.destroy(),this.mouse.destroy()},e}(kx)}();function Hx(t,e,i){return!!Array.isArray(t)&&(ox(t,i[e],i),!0)}var Gx=1;function Wx(t,e){var i=e.manager;return i?i.get(t):t}function zx(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}var Vx=function(){function t(t){void 0===t&&(t={}),this.options=HD({enable:!0},t),this.id=Gx++,this.manager=null,this.state=1,this.simultaneous={},this.requireFail=[]}var e=t.prototype;return e.set=function(t){return VD(this.options,t),this.manager&&this.manager.touchAction.update(),this},e.recognizeWith=function(t){if(Hx(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=Wx(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},e.dropRecognizeWith=function(t){return Hx(t,"dropRecognizeWith",this)?this:(t=Wx(t,this),delete this.simultaneous[t.id],this)},e.requireFailure=function(t){if(Hx(t,"requireFailure",this))return this;var e=this.requireFail;return-1===Sx(e,t=Wx(t,this))&&(e.push(t),t.requireFailure(this)),this},e.dropRequireFailure=function(t){if(Hx(t,"dropRequireFailure",this))return this;t=Wx(t,this);var e=Sx(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,i=this.state;function n(i){e.manager.emit(i,t)}i<8&&n(e.options.event+zx(i)),n(e.options.event),t.additionalEvent&&n(t.additionalEvent),i>=8&&n(e.options.event+zx(i))},e.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=32},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=VD({},t);if(!sx(this.options.enable,[this,e]))return this.reset(),void(this.state=32);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}(),Ux=function(t){function e(e){var i;return void 0===e&&(e={}),(i=t.call(this,HD({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},e))||this).pTime=!1,i.pCenter=!1,i._timer=null,i._input=null,i.count=0,i}GD(e,t);var i=e.prototype;return i.getTouchAction=function(){return["manipulation"]},i.process=function(t){var e=this,i=this.options,n=t.pointers.length===i.pointers,r=t.distance<i.threshold,o=t.deltaTime<i.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(r&&o&&n){if(4!==t.eventType)return this.failTimeout();var s=!this.pTime||t.timeStamp-this.pTime<i.interval,a=!this.pCenter||dx(this.pCenter,t.center)<i.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,a&&s?this.count+=1:this.count=1,this._input=t,0===this.count%i.taps)return this.hasRequireFailures()?(this._timer=setTimeout((function(){e.state=8,e.tryEmit()}),i.interval),2):8}return 32},i.failTimeout=function(){var t=this;return this._timer=setTimeout((function(){t.state=32}),this.options.interval),32},i.reset=function(){clearTimeout(this._timer)},i.emit=function(){8===this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},e}(Vx),Bx=function(t){function e(e){return void 0===e&&(e={}),t.call(this,HD({pointers:1},e))||this}GD(e,t);var i=e.prototype;return i.attrTest=function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},i.process=function(t){var e=this.state,i=t.eventType,n=6&e,r=this.attrTest(t);return n&&(8&i||!r)?16|e:n||r?4&i?8|e:2&e?4|e:2:32},e}(Vx);function Xx(t){return 16===t?"down":8===t?"up":2===t?"left":4===t?"right":""}var qx=function(t){function e(e){var i;return void 0===e&&(e={}),(i=t.call(this,HD({event:"pan",threshold:10,pointers:1,direction:30},e))||this).pX=null,i.pY=null,i}GD(e,t);var i=e.prototype;return i.getTouchAction=function(){var t=this.options.direction,e=[];return 6&t&&e.push("pan-y"),24&t&&e.push("pan-x"),e},i.directionTest=function(t){var e=this.options,i=!0,n=t.distance,r=t.direction,o=t.deltaX,s=t.deltaY;return r&e.direction||(6&e.direction?(r=0===o?1:o<0?2:4,i=o!==this.pX,n=Math.abs(t.deltaX)):(r=0===s?1:s<0?8:16,i=s!==this.pY,n=Math.abs(t.deltaY))),t.direction=r,i&&n>e.threshold&&r&e.direction},i.attrTest=function(t){return Bx.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},i.emit=function(e){this.pX=e.deltaX,this.pY=e.deltaY;var i=Xx(e.direction);i&&(e.additionalEvent=this.options.event+i),t.prototype.emit.call(this,e)},e}(Bx),Zx=function(t){function e(e){return void 0===e&&(e={}),t.call(this,HD({event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},e))||this}GD(e,t);var i=e.prototype;return i.getTouchAction=function(){return qx.prototype.getTouchAction.call(this)},i.attrTest=function(e){var i,n=this.options.direction;return 30&n?i=e.overallVelocity:6&n?i=e.overallVelocityX:24&n&&(i=e.overallVelocityY),t.prototype.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers===this.options.pointers&&qD(i)>this.options.velocity&&4&e.eventType},i.emit=function(t){var e=Xx(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},e}(Bx),Jx=function(t){function e(e){return void 0===e&&(e={}),t.call(this,HD({event:"pinch",threshold:0,pointers:2},e))||this}GD(e,t);var i=e.prototype;return i.getTouchAction=function(){return["none"]},i.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},i.emit=function(e){if(1!==e.scale){var i=e.scale<1?"in":"out";e.additionalEvent=this.options.event+i}t.prototype.emit.call(this,e)},e}(Bx),$x=function(t){function e(e){return void 0===e&&(e={}),t.call(this,HD({event:"rotate",threshold:0,pointers:2},e))||this}GD(e,t);var i=e.prototype;return i.getTouchAction=function(){return["none"]},i.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)},e}(Bx),Kx=function(t){function e(e){var i;return void 0===e&&(e={}),(i=t.call(this,HD({event:"press",pointers:1,time:251,threshold:9},e))||this)._timer=null,i._input=null,i}GD(e,t);var i=e.prototype;return i.getTouchAction=function(){return["auto"]},i.process=function(t){var e=this,i=this.options,n=t.pointers.length===i.pointers,r=t.distance<i.threshold,o=t.deltaTime>i.time;if(this._input=t,!r||!n||12&t.eventType&&!o)this.reset();else if(1&t.eventType)this.reset(),this._timer=setTimeout((function(){e.state=8,e.tryEmit()}),i.time);else if(4&t.eventType)return 8;return 32},i.reset=function(){clearTimeout(this._timer)},i.emit=function(t){8===this.state&&(t&&4&t.eventType?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=ZD(),this.manager.emit(this.options.event,this._input)))},e}(Vx),Qx={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},tO=[[$x,{enable:!1}],[Jx,{enable:!1},["rotate"]],[Zx,{direction:6}],[qx,{direction:6},["swipe"]],[Ux],[Ux,{event:"doubletap",taps:2},["tap"]],[Kx]];function eO(t,e){var i,n=t.element;n.style&&(ox(t.options.cssProps,(function(r,o){i=JD(n.style,o),e?(t.oldCssProps[i]=n.style[i],n.style[i]=r):n.style[i]=t.oldCssProps[i]||""})),e||(t.oldCssProps={}))}var iO=function(){function t(t,e){var i,n=this;this.options=VD({},Qx,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((i=this).options.inputClass||(ex?Tx:ix?Ax:tx?Fx:jx))(i,gx),this.touchAction=new lx(this,this.options.touchAction),eO(this,!0),ox(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 VD(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 i;this.touchAction.preventDefaults(t);var n=this.recognizers,r=e.curRecognizer;(!r||r&&8&r.state)&&(e.curRecognizer=null,r=null);for(var o=0;o<n.length;)i=n[o],2===e.stopped||r&&i!==r&&!i.canRecognizeWith(r)?i.reset():i.recognize(t),!r&&14&i.state&&(e.curRecognizer=i,r=i),o++}},e.get=function(t){if(t instanceof Vx)return t;for(var e=this.recognizers,i=0;i<e.length;i++)if(e[i].options.event===t)return e[i];return null},e.add=function(t){if(Hx(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(Hx(t,"remove",this))return this;var e=this.get(t);if(t){var i=this.recognizers,n=Sx(i,e);-1!==n&&(i.splice(n,1),this.touchAction.update())}return this},e.on=function(t,e){if(void 0===t||void 0===e)return this;var i=this.handlers;return ox(yx(t),(function(t){i[t]=i[t]||[],i[t].push(e)})),this},e.off=function(t,e){if(void 0===t)return this;var i=this.handlers;return ox(yx(t),(function(t){e?i[t]&&i[t].splice(Sx(i[t],e),1):delete i[t]})),this},e.emit=function(t,e){this.options.domEvents&&function(t,e){var i=document.createEvent("Event");i.initEvent(t,!0,!0),i.gesture=e,e.target.dispatchEvent(i)}(t,e);var i=this.handlers[t]&&this.handlers[t].slice();if(i&&i.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var n=0;n<i.length;)i[n](e),n++}},e.destroy=function(){this.element&&eO(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},t}(),nO={touchstart:1,touchmove:2,touchend:4,touchcancel:8},rO=function(t){function e(){var i,n=e.prototype;return n.evTarget="touchstart",n.evWin="touchstart touchmove touchend touchcancel",(i=t.apply(this,arguments)||this).started=!1,i}return GD(e,t),e.prototype.handler=function(t){var e=nO[t.type];if(1===e&&(this.started=!0),this.started){var i=oO.call(this,t,e);12&e&&i[0].length-i[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:"touch",srcEvent:t})}},e}(kx);function oO(t,e){var i=Cx(t.touches),n=Cx(t.changedTouches);return 12&e&&(i=Px(i.concat(n),"identifier",!0)),[i,n]}function sO(t,e,i){var n="DEPRECATED METHOD: "+e+"\n"+i+" AT \n";return function(){var e=new Error("get-stack-trace"),i=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,n,i),t.apply(this,arguments)}}var aO=sO((function(t,e,i){for(var n=Object.keys(e),r=0;r<n.length;)(!i||i&&void 0===t[n[r]])&&(t[n[r]]=e[n[r]]),r++;return t}),"extend","Use `assign`."),lO=sO((function(t,e){return aO(t,e,!0)}),"merge","Use `assign`.");function uO(t,e,i){var n,r=e.prototype;(n=t.prototype=Object.create(r)).constructor=t,n._super=r,i&&VD(n,i)}function hO(t,e){return function(){return t.apply(e,arguments)}}var cO,dO=function(){var t=function(t,e){return void 0===e&&(e={}),new iO(t,HD({recognizers:tO.concat()},e))};return t.VERSION="2.0.17-rc",t.DIRECTION_ALL=30,t.DIRECTION_DOWN=16,t.DIRECTION_LEFT=2,t.DIRECTION_RIGHT=4,t.DIRECTION_UP=8,t.DIRECTION_HORIZONTAL=6,t.DIRECTION_VERTICAL=24,t.DIRECTION_NONE=1,t.DIRECTION_DOWN=16,t.INPUT_START=1,t.INPUT_MOVE=2,t.INPUT_END=4,t.INPUT_CANCEL=8,t.STATE_POSSIBLE=1,t.STATE_BEGAN=2,t.STATE_CHANGED=4,t.STATE_ENDED=8,t.STATE_RECOGNIZED=8,t.STATE_CANCELLED=16,t.STATE_FAILED=32,t.Manager=iO,t.Input=kx,t.TouchAction=lx,t.TouchInput=Ax,t.MouseInput=jx,t.PointerEventInput=Tx,t.TouchMouseInput=Fx,t.SingleTouchInput=rO,t.Recognizer=Vx,t.AttrRecognizer=Bx,t.Tap=Ux,t.Pan=qx,t.Swipe=Zx,t.Pinch=Jx,t.Rotate=$x,t.Press=Kx,t.on=bx,t.off=_x,t.each=ox,t.merge=lO,t.extend=aO,t.bindFn=hO,t.assign=VD,t.inherit=uO,t.bindFn=hO,t.prefixed=JD,t.toArray=Cx,t.inArray=Sx,t.uniqueArray=Px,t.splitStr=yx,t.boolOrFn=sx,t.hasParent=ux,t.addEventListeners=bx,t.removeEventListeners=_x,t.defaults=VD({},Qx,{preset:tO}),t}();"undefined"!=typeof window?cO=FD(window.Hammer||dO,{preventDefault:"mouse"}):cO=function(){return{on:t=function(){},off:t,destroy:t,emit:t,get:function(e){return{set:t}}};var t};var fO=cO;function pO(t,e){e.inputHandler=function(t){t.isFirst&&e(t)},t.on("hammer.input",e.inputHandler)}var mO=xS.trim,vO=xy.parseInt,gO=/^[+-]?0[Xx]/,yO=8!==vO(_S+"08")||22!==vO(_S+"0x16")?function(t,e){var i=mO(String(t));return vO(i,e>>>0||(gO.test(i)?16:10))}:vO;Tb({global:!0,forced:parseInt!=yO},{parseInt:yO});var bO=Sb.parseInt,_O=function(){function t(e,i,n,r,o){Pw(this,t),this.moment=o&&o.moment||Vk,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,i,n),this.switchedDay=!1,this.switchedMonth=!1,this.switchedYear=!1,Cw(r)?this.hiddenDates=r:this.hiddenDates=null!=r?[r]:[],this.format=t.FORMAT}return Iw(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 i=bS.deepExtend({},t.FORMAT);this.format=bS.deepExtend(i,e)}},{key:"setRange",value:function(t,e,i){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()):PS(),this._end=null!=e?this.moment(e.valueOf()):PS(),this.autoScale&&this.setMinimumStep(i)}},{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(hD(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,iD(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){31104e9>t&&(this.scale="year",this.step=1e3),15552e9>t&&(this.scale="year",this.step=500),31104e8>t&&(this.scale="year",this.step=100),15552e8>t&&(this.scale="year",this.step=50),31104e7>t&&(this.scale="year",this.step=10),15552e7>t&&(this.scale="year",this.step=5),31104e6>t&&(this.scale="year",this.step=1),7776e6>t&&(this.scale="month",this.step=3),2592e6>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),864e5>t&&(this.scale="day",this.step=1),432e5>t&&(this.scale="weekday",this.step=1),144e5>t&&(this.scale="hour",this.step=4),36e5>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),6e4>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),1e3>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":case"week":return 1==t.date();case"month":return 0==t.month();case"year":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];switch(this.scale){case"week":if(1===t.date()&&0!==t.weekday())return"";default:return 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,i=this.moment(this.current),n=i.locale?i.locale("en"):i.lang("en"),r=this.step,o=[];function s(t){return t/r%2==0?" vis-even":" vis-odd"}function a(t){return t.isSame(PS(),"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(PS(),"week")?" vis-current-week":""}function u(t){return t.isSame(PS(),"month")?" vis-current-month":""}switch(this.scale){case"millisecond":o.push(a(n)),o.push(s(n.milliseconds()));break;case"second":o.push(a(n)),o.push(s(n.seconds()));break;case"minute":o.push(a(n)),o.push(s(n.minutes()));break;case"hour":o.push(HS(t="vis-h".concat(n.hours())).call(t,4==this.step?"-h"+(n.hours()+4):"")),o.push(a(n)),o.push(s(n.hours()));break;case"weekday":o.push("vis-".concat(n.format("dddd").toLowerCase())),o.push(a(n)),o.push(l(n)),o.push(s(n.date()));break;case"day":o.push("vis-day".concat(n.date())),o.push("vis-".concat(n.format("MMMM").toLowerCase())),o.push(a(n)),o.push(u(n)),o.push(this.step<=2?a(n):""),o.push(this.step<=2?"vis-".concat(n.format("dddd").toLowerCase()):""),o.push(s(n.date()-1));break;case"week":o.push("vis-week".concat(n.format("w"))),o.push(l(n)),o.push(s(n.week()));break;case"month":o.push("vis-".concat(n.format("MMMM").toLowerCase())),o.push(u(n)),o.push(s(n.month()));break;case"year":o.push("vis-year".concat(n.year())),o.push(function(t){return t.isSame(PS(),"year")?" vis-current-year":""}(n)),o.push(s(n.year()))}return vw(o).call(o,String).join(" ")}}],[{key:"snap",value:function(t,e,i){var n=Vk(t);if("year"==e){var r=n.year()+Math.round(n.month()/12);n.year(Math.round(r/i)*i),n.month(0),n.date(0),n.hours(0),n.minutes(0),n.seconds(0),n.milliseconds(0)}else if("month"==e)n.date()>15?(n.date(1),n.add(1,"month")):n.date(1),n.hours(0),n.minutes(0),n.seconds(0),n.milliseconds(0);else if("week"==e)n.weekday()>2?(n.weekday(0),n.add(1,"week")):n.weekday(0),n.hours(0),n.minutes(0),n.seconds(0),n.milliseconds(0);else if("day"==e){switch(i){case 5:case 2:n.hours(24*Math.round(n.hours()/24));break;default:n.hours(12*Math.round(n.hours()/12))}n.minutes(0),n.seconds(0),n.milliseconds(0)}else if("weekday"==e){switch(i){case 5:case 2:n.hours(12*Math.round(n.hours()/12));break;default:n.hours(6*Math.round(n.hours()/6))}n.minutes(0),n.seconds(0),n.milliseconds(0)}else if("hour"==e){switch(i){case 4:n.minutes(60*Math.round(n.minutes()/60));break;default:n.minutes(30*Math.round(n.minutes()/30))}n.seconds(0),n.milliseconds(0)}else if("minute"==e){switch(i){case 15:case 10:n.minutes(5*Math.round(n.minutes()/5)),n.seconds(0);break;case 5:n.seconds(60*Math.round(n.seconds()/60));break;default:n.seconds(30*Math.round(n.seconds()/30))}n.milliseconds(0)}else if("second"==e)switch(i){case 15:case 10:n.seconds(5*Math.round(n.seconds()/5)),n.milliseconds(0);break;case 5:n.milliseconds(1e3*Math.round(n.milliseconds()/1e3));break;default:n.milliseconds(500*Math.round(n.milliseconds()/500))}else if("millisecond"==e){var o=i>5?i/2:1;n.milliseconds(Math.round(n.milliseconds()/o)*o)}return n}}]),t}();_O.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 wO=function(t){function e(t,i){var n;return Pw(this,e),(n=Ik(this,Rk(e).call(this))).dom={foreground:null,lines:[],majorTexts:[],minorTexts:[],redundant:{lines:[],majorTexts:[],minorTexts:[]}},n.props={range:{start:0,end:0,minimumStep:0},lineTop:0},n.defaultOptions={orientation:{axis:"bottom"},showMinorLabels:!0,showMajorLabels:!0,showWeekScale:!1,maxMinorChars:7,format:_O.FORMAT,moment:Vk,timeAxis:null},n.options=bS.extend({},n.defaultOptions),n.body=t,n._create(),n.setOptions(i),n}return zk(e,t),Iw(e,[{key:"setOptions",value:function(t){t&&(bS.selectiveExtend(["showMinorLabels","showMajorLabels","showWeekScale","maxMinorChars","hiddenDates","timeAxis","moment","rtl"],this.options,t),bS.selectiveDeepExtend(["format"],this.options,t),"orientation"in t&&("string"==typeof t.orientation?this.options.orientation.axis=t.orientation:"object"===Ak(t.orientation)&&"axis"in t.orientation&&(this.options.orientation.axis=t.orientation.axis)),"locale"in t&&("function"==typeof Vk.locale?Vk.locale(t.locale):Vk.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,i=this.dom.background,n="top"==this.options.orientation.axis?this.body.dom.top:this.body.dom.bottom,r=e.parentNode!==n;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=i.nextSibling;return e.parentNode&&e.parentNode.removeChild(e),i.parentNode&&i.parentNode.removeChild(i),e.style.height="".concat(this.props.height,"px"),this._repaintLabels(),a?n.insertBefore(e,a):n.appendChild(e),l?this.body.dom.backgroundVertical.insertBefore(i,l):this.body.dom.backgroundVertical.appendChild(i),this._isResized()||r}},{key:"_repaintLabels",value:function(){var t=this.options.orientation.axis,e=bS.convert(this.body.range.start,"Number"),i=bS.convert(this.body.range.end,"Number"),n=this.body.util.toTime((this.props.minorCharWidth||10)*this.options.maxMinorChars).valueOf(),r=n-lD(this.options.moment,this.body.hiddenDates,this.body.range,n);r-=this.body.util.toTime(0).valueOf();var o=new _O(new Date(e),new Date(i),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,h,c,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 f,p,m,v=0,g=void 0,y=0;for(o.start(),a=o.getCurrent(),u=this.body.util.toScreen(a);o.hasNext()&&y<1e3;){switch(y++,h=o.isMajor(),m=o.getClassName(),s=a,l=u,o.next(),a=o.getCurrent(),f=v,v=(u=this.body.util.toScreen(a))-l,o.scale){case"week":c=!0;break;default:c=v>=.4*f}if(this.options.showMinorLabels&&c){var b=this._repaintMinorText(l,o.getLabelMinor(s),t,m);b.style.width="".concat(v,"px")}h&&this.options.showMajorLabels?(l>0&&(null==g&&(g=l),b=this._repaintMajorText(l,o.getLabelMajor(s),t,m)),p=this._repaintMajorLine(l,v,t,m)):c?p=this._repaintMinorLine(l,v,t,m):p&&(p.style.width="".concat(bO(p.style.width)+v,"px"))}if(1e3!==y||kO||(console.warn("Something is wrong with the Timeline scale. Limited drawing of grid lines to ".concat(1e3," lines.")),kO=!0),this.options.showMajorLabels){var _=this.body.util.toTime(0),w=o.getLabelMajor(_),k=w.length*(this.props.majorCharWidth||10)+10;(null==g||k<g)&&this._repaintMajorText(0,w,t,m)}nw(bS).call(bS,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,i,n){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=e;var s="top"==i?this.props.majorLabelHeight:0;return this._setXY(r,t,s),r.className="vis-text vis-minor ".concat(n),r}},{key:"_repaintMajorText",value:function(t,e,i,n){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=e,r.className="vis-text vis-major ".concat(n);var s="top"==i?0:this.props.minorLabelHeight;return this._setXY(r,t,s),this.dom.majorTexts.push(r),r}},{key:"_setXY",value:function(t,e,i){var n,r=this.options.rtl?-1*e:e;t.style.transform=HS(n="translate(".concat(r,"px, ")).call(n,i,"px)")}},{key:"_repaintMinorLine",value:function(t,e,i,n){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"==i?s.majorLabelHeight:this.body.domProps.top.height,l=t-s.minorLineWidth/2;return this._setXY(o,l,a),o.className=HS(r="vis-grid ".concat(this.options.rtl?"vis-vertical-rtl":"vis-vertical"," vis-minor ")).call(r,n),o}},{key:"_repaintMajorLine",value:function(t,e,i,n){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"==i?0:this.body.domProps.top.height,l=t-s.majorLineWidth/2;return this._setXY(o,l,a),o.className=HS(r="vis-grid ".concat(this.options.rtl?"vis-vertical-rtl":"vis-vertical"," vis-major ")).call(r,n),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}}]),e}(GS),kO=!1,SO=n((function(t,e){t.exports=function(t){var e,i=t&&t.preventDefault||!1,n=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 n=o[e][t.keyCode],r=0;r<n.length;r++)void 0===n[r].shift?n[r].fn(t):1==n[r].shift&&1==t.shiftKey?n[r].fn(t):0==n[r].shift&&0==t.shiftKey&&n[r].fn(t);1==i&&t.preventDefault()}};return r.bind=function(t,e,i){if(void 0===i&&(i="keydown"),void 0===s[t])throw new Error("unsupported key: "+t);void 0===o[i][s[t].code]&&(o[i][s[t].code]=[]),o[i][s[t].code].push({fn:e,shift:s[t].shift})},r.bindAll=function(t,e){for(var i in void 0===e&&(e="keydown"),s)s.hasOwnProperty(i)&&r.bind(i,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,i){if(void 0===i&&(i="keydown"),void 0===s[t])throw new Error("unsupported key: "+t);if(void 0!==e){var n=[],r=o[i][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||n.push(o[i][s[t].code][a]);o[i][s[t].code]=n}else o[i][s[t].code]=[]},r.reset=function(){o={keydown:{},keyup:{}}},r.destroy=function(){o={keydown:{},keyup:{}},n.removeEventListener("keydown",a,!0),n.removeEventListener("keyup",l,!0)},n.addEventListener("keydown",a,!0),n.addEventListener("keyup",l,!0),r}}));function DO(t){var e,i;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=fO(this.dom.overlay),this.hammer.on("tap",Mw(e=this._onTapOverlay).call(e,this));var n=this,r=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];nw(r).call(r,(function(t){n.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)||n.deactivate()},document.body.addEventListener("click",this.onClick)),void 0!==this.keycharm&&this.keycharm.destroy(),this.keycharm=SO(),this.escListener=Mw(i=this.deactivate).call(i,this)}ND(DO.prototype),DO.current=null,DO.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},DO.prototype.activate=function(){var t;DO.current&&DO.current.deactivate(),DO.current=this,this.active=!0,this.dom.overlay.style.display="none",bS.addClassName(this.dom.container,"vis-active"),this.emit("change"),this.emit("activate"),Mw(t=this.keycharm).call(t,"esc",this.escListener)},DO.prototype.deactivate=function(){DO.current===this&&(DO.current=null),this.active=!1,this.dom.overlay.style.display="",bS.removeClassName(this.dom.container,"vis-active"),this.keycharm.unbind("esc",this.escListener),this.emit("change"),this.emit("deactivate")},DO.prototype._onTapOverlay=function(t){this.activate(),t.stopPropagation()};var xO={current:"current",time:"time",deleteSelected:"Delete selected"},OO={current:"attuale",time:"tempo",deleteSelected:"Cancella la selezione"},MO={current:"huidige",time:"tijd",deleteSelected:"Selectie verwijderen"},TO={current:"Aktuelle",time:"Zeit",deleteSelected:"Lösche Auswahl"},CO={current:"actuel",time:"heure",deleteSelected:"Effacer la selection"},PO={current:"corriente",time:"hora",deleteSelected:"Eliminar selección"},EO={current:"поточний",time:"час",deleteSelected:"Видалити обране"},AO={current:"текущее",time:"время",deleteSelected:"Удалить выбранное"},LO={current:"aktualny",time:"czas",deleteSelected:"Usuń wybrane"},IO={current:"現在",time:"時刻",deleteSelected:"選択されたものを削除"},jO={en:xO,en_EN:xO,en_US:xO,it:OO,it_IT:OO,it_CH:OO,nl:MO,nl_NL:MO,nl_BE:MO,de:TO,de_DE:TO,fr:CO,fr_FR:CO,fr_CA:CO,fr_BE:CO,es:PO,es_ES:PO,uk:EO,uk_UA:EO,ru:AO,ru_RU:AO,pl:LO,pl_PL:LO,ja:IO,ja_JP:IO},YO=function(t){function e(t,i){var n,r;Pw(this,e),(r=Ik(this,Rk(e).call(this))).body=t,r.defaultOptions={moment:Vk,locales:jO,locale:"en",id:void 0,title:void 0},r.options=bS.extend({},r.defaultOptions),r.setOptions(i),r.options.locales=bS.extend({},jO,r.options.locales);var o=r.defaultOptions.locales[r.defaultOptions.locale];return nw(n=eS(r.options.locales)).call(n,(function(t){r.options.locales[t]=bS.extend({},o,r.options.locales[t])})),i&&i.time?r.customTime=i.time:r.customTime=new Date,r.eventParams={},r._create(),r}return zk(e,t),Iw(e,[{key:"setOptions",value:function(t){t&&bS.selectiveExtend(["moment","locale","locales","id","title","rtl"],this.options,t)}},{key:"_create",value:function(){var t,e,i,n=document.createElement("div");n["custom-time"]=this,n.className="vis-custom-time ".concat(this.options.id||""),n.style.position="absolute",n.style.top="0px",n.style.height="100%",this.bar=n;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",Mw(o).call(o,this),!1),r.addEventListener("DOMMouseScroll",Mw(o).call(o,this),!1)):r.attachEvent("onmousewheel",Mw(o).call(o,this)),n.appendChild(r),this.hammer=new fO(r),this.hammer.on("panstart",Mw(t=this._onDragStart).call(t,this)),this.hammer.on("panmove",Mw(e=this._onDrag).call(e,this)),this.hammer.on("panend",Mw(i=this._onDragEnd).call(i,this)),this.hammer.get("pan").set({threshold:5,direction:fO.DIRECTION_ALL})}},{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),i=this.options.locales[this.options.locale];i||(this.warned||(console.warn("WARNING: options.locales['".concat(this.options.locale,"'] not found. See https://visjs.github.io/vis-timeline/docs/timeline/#Localization")),this.warned=!0),i=this.options.locales.en);var n,r=this.options.title;void 0===r?r=(r=HS(n="".concat(i.time,": ")).call(n,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.customTime));return 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=bS.convert(t,"Date"),this.redraw()}},{key:"getCustomTime",value:function(){return new Date(this.customTime.valueOf())}},{key:"setCustomMarker",value:function(t,e){var i,n,r=document.createElement("div");(r.className="vis-custom-time-marker",r.innerHTML=t,r.style.position="absolute",e)&&(r.setAttribute("contenteditable","true"),r.addEventListener("pointerdown",(function(){r.focus()})),r.addEventListener("input",Mw(i=this._onMarkerChange).call(i,this)),r.title=t,r.addEventListener("blur",Mw(n=function(t){this.title!=t.target.innerHTML&&(this._onMarkerChanged(t),this.title=t.target.innerHTML)}).call(n,this)));this.bar.appendChild(r)}},{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,i=this.body.util.toScreen(this.eventParams.customTime)+e,n=this.body.util.toTime(i);this.setCustomTime(n),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}}]),e}(GS),NO=function(){function t(){Pw(this,t)}return Iw(t,[{key:"_create",value:function(t){var e,i,n,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",Mw(e=this._onTouch).call(e,this)),this.on("panmove",Mw(i=this._onDrag).call(i,this));var o=this;this._origRedraw=Mw(n=this._redraw).call(n,this),this._redraw=bS.throttle(this._origRedraw),this.on("_change",(function(t){o.itemSet&&o.itemSet.initialItemSetDrawn&&t&&1==t.queue?o._redraw():o._origRedraw()})),this.hammer=new fO(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:fO.DIRECTION_ALL}),this.listeners={};var a,l,u=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];function h(t){this.isActive()&&this.emit("mousewheel",t);var e=0,i=0;if("detail"in t&&(i=-1*t.detail),"wheelDelta"in t&&(i=t.wheelDelta),"wheelDeltaY"in t&&(i=t.wheelDeltaY),"wheelDeltaX"in t&&(e=-1*t.wheelDeltaX),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=-1*i,i=0),"deltaY"in t&&(i=-1*t.deltaY),"deltaX"in t&&(e=t.deltaX),t.deltaMode&&(1===t.deltaMode?(e*=40,i*=40):(e*=40,i*=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(i)>=Math.abs(e)){var n=this.props.scrollTop,r=n+i;if(this.isActive())this._setScrollTop(r)!==n&&(this._redraw(),this.emit("scroll",t),t.preventDefault())}else if(this.options.horizontalScroll){var o=(Math.abs(e)>=Math.abs(i)?e:i)/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()}}nw(u).call(u,(function(t){var e=function(e){o.isActive()&&o.emit(t,e)};o.hammer.on(t,e),o.listeners[t]=e})),pO(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 c="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":this.dom.centerContainer.addEventListener?"DOMMouseScroll":"onmousewheel";function d(t){if(o.options.verticalScroll)if(o._isProgramaticallyScrolled)o._isProgramaticallyScrolled=!1;else if(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(c,Mw(h).call(h,this),!1),this.dom.top.addEventListener(c,Mw(h).call(h,this),!1),this.dom.bottom.addEventListener(c,Mw(h).call(h,this),!1),this.dom.left.parentNode.addEventListener("scroll",Mw(d).call(d,this)),this.dom.right.parentNode.addEventListener("scroll",Mw(d).call(d,this));var f=!1;function p(t){var e;if(t.preventDefault&&(o.emit("dragover",o.getEventProperties(t)),t.preventDefault()),YD(e=t.target.className).call(e,"timeline")>-1&&!f)return t.dataTransfer.dropEffect="move",f=!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 f=!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",Mw(p).call(p,this),!1),this.dom.center.addEventListener("drop",Mw(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(bS.selectiveExtend(["width","height","minHeight","maxHeight","autoResize","start","end","clickToUse","dataAttributes","hiddenDates","locale","locales","moment","preferZoom","rtl","zoomKey","horizontalScroll","verticalScroll","longSelectPressTime"],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"!==Ak(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"===Ak(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 i=this.timeAxis2=new wO(this.body);i.setOptions=function(t){var e=t?bS.extend({},t):{};e.orientation="top",wO.prototype.setOptions.call(i,e)},this.components.push(i)}}else if(this.timeAxis2){var n,r,o=YD(n=this.components).call(n,this.timeAxis2);if(-1!==o)TD(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&&QS(this.options.moment,this.body,this.options.hiddenDates),"clickToUse"in t&&(t.clickToUse?this.activator||(this.activator=new DO(this.dom.root)):this.activator&&(this.activator.destroy(),delete this.activator)),this._initAutoResize()}if(nw(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=bS.deepExtend({},this.options);nw(s=this.components).call(s,(function(t){bS.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.listeners)this.listeners.hasOwnProperty(e)&&delete this.listeners[e];this.listeners=null,this.hammer&&this.hammer.destroy(),this.hammer=null,nw(t=this.components).call(t,(function(t){return t.destroy()})),this.body=null}},{key:"setCustomTime",value:function(t,e){var i,n=vw(i=this.customTimes).call(i,(function(t){return e===t.options.id}));if(0===n.length)throw new Error("No custom time bar found with id ".concat(NS(e)));n.length>0&&n[0].setCustomTime(t)}},{key:"getCustomTime",value:function(t){var e,i=vw(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(NS(t)));return i[0].getCustomTime()}},{key:"setCustomTimeMarker",value:function(t,e,i){var n,r=vw(n=this.customTimes).call(n,(function(t){return t.options.id===e}));if(0===r.length)throw new Error("No custom time bar found with id ".concat(NS(e)));r.length>0&&r[0].setCustomMarker(t,i)}},{key:"setCustomTimeTitle",value:function(t,e){var i,n=vw(i=this.customTimes).call(i,(function(t){return t.options.id===e}));if(0===n.length)throw new Error("No custom time bar found with id ".concat(NS(e)));if(n.length>0)return n[0].setCustomTitle(t)}},{key:"getEventProperties",value:function(t){return{event:t}}},{key:"addCustomTime",value:function(t,e){var i,n=void 0!==t?bS.convert(t,"Date").valueOf():new Date;if(wD(i=this.customTimes).call(i,(function(t){return t.options.id===e})))throw new Error("A custom time with id ".concat(NS(e)," already exists"));var r=new YO(this.body,bS.extend({},this.options,{time:n,id:e}));return this.customTimes.push(r),this.components.push(r),this._redraw(),e}},{key:"removeCustomTime",value:function(t){var e,i=this,n=vw(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(NS(t)));nw(n).call(n,(function(t){var e,n,r,o;TD(e=i.customTimes).call(e,YD(n=i.customTimes).call(n,t),1),TD(r=i.components).call(r,YD(o=i.components).call(o,t),1),t.destroy()}))}},{key:"getVisibleItems",value:function(){return this.itemSet&&this.itemSet.getVisibleItems()||[]}},{key:"getVisibleGroups",value:function(){return this.itemSet&&this.itemSet.getVisibleGroups()||[]}},{key:"fit",value:function(t,e){var i=this.getDataRange();if(null!==i.min||null!==i.max){var n=i.max-i.min,r=new Date(i.min.valueOf()-.01*n),o=new Date(i.max.valueOf()+.01*n),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,i,n){var r,o;"function"==typeof arguments[2]&&(n=arguments[2],i={}),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]?(o=arguments[0],n=arguments[1],r=void 0===o.animation||o.animation,this.range.setRange(o.start,o.end,{animation:r},n)):(r=!i||void 0===i.animation||i.animation,this.range.setRange(t,e,{animation:r},n))}},{key:"moveTo",value:function(t,e,i){"function"==typeof arguments[1]&&(i=arguments[1],e={});var n=this.range.end-this.range.start,r=bS.convert(t,"Date").valueOf(),o=r-n/2,s=r+n/2,a=!e||void 0===e.animation||e.animation;this.range.setRange(o,s,{animation:a},i)}},{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,i){if(!(!t||t<0||t>1)){"function"==typeof arguments[1]&&(i=arguments[1],e={});var n=this.getWindow(),r=n.start.valueOf(),o=n.end.valueOf(),s=o-r,a=s/(1+t),l=(s-a)/2,u=r+l,h=o-l;this.setWindow(u,h,e,i)}}},{key:"zoomOut",value:function(t,e,i){if(!(!t||t<0||t>1)){"function"==typeof arguments[1]&&(i=arguments[1],e={});var n=this.getWindow(),r=n.start.valueOf(),o=n.end.valueOf(),s=o-r,a=r-s*t/2,l=o+s*t/2;this.setWindow(a,l,e,i)}}},{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 i=!1,n=this.options,r=this.props;tD(this.options.moment,this.body,this.options.hiddenDates),"top"==n.orientation?(bS.addClassName(e.root,"vis-top"),bS.removeClassName(e.root,"vis-bottom")):(bS.removeClassName(e.root,"vis-top"),bS.addClassName(e.root,"vis-bottom")),n.rtl?(bS.addClassName(e.root,"vis-rtl"),bS.removeClassName(e.root,"vis-ltr")):(bS.addClassName(e.root,"vis-ltr"),bS.removeClassName(e.root,"vis-rtl")),e.root.style.maxHeight=bS.option.asSize(n.maxHeight,""),e.root.style.minHeight=bS.option.asSize(n.minHeight,""),e.root.style.width=bS.option.asSize(n.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=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=bS.option.asSize(n.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=bS.getScrollBarWidth());var u=e.leftContainer.clientWidth,h=e.rightContainer.clientWidth;n.verticalScroll?n.rtl?(r.left.width=u||-r.border.left,r.right.width=h+r.scrollbarWidth||-r.border.right):(r.left.width=u+r.scrollbarWidth||-r.border.left,r.right.width=h||-r.border.right):(r.left.width=u||-r.border.left,r.right.width=h||-r.border.right),this._setDOM();var c=this._updateScrollTop();"top"!=n.orientation.item&&(c+=Math.max(r.centerContainer.height-r.center.height-r.border.top-r.border.bottom,0)),e.center.style.transform="translateY(".concat(c,"px)");var d=0==r.scrollTop?"hidden":"",f=r.scrollTop==r.scrollTopMin?"hidden":"";e.shadowTop.style.visibility=d,e.shadowBottom.style.visibility=f,e.shadowTopLeft.style.visibility=d,e.shadowBottomLeft.style.visibility=f,e.shadowTopRight.style.visibility=d,e.shadowBottomRight.style.visibility=f,n.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"),(!n.verticalScroll||r.center.height<r.centerContainer.height)&&(e.left.style.top="".concat(c,"px"),e.right.style.top="".concat(c,"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=h||-r.border.right,this._setDOM());var p=r.center.height>r.centerContainer.height;this.hammer.get("pan").set({direction:p?fO.DIRECTION_ALL:fO.DIRECTION_HORIZONTAL}),this.hammer.get("press").set({time:this.options.longSelectPressTime}),nw(t=this.components).call(t,(function(t){i=t.redraw()||i}));if(i){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 i=t.root.width-t.left.width-t.right.width;t.center.width=i,t.centerContainer.width=i,t.top.width=i,t.bottom.width=i,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 rD(this,t,this.props.center.width)}},{key:"_toGlobalTime",value:function(t){return rD(this,t,this.props.root.width)}},{key:"_toScreen",value:function(t){return nD(this,t,this.props.center.width)}},{key:"_toGlobalScreen",value:function(t){return nD(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,i=t.dom.root.offsetWidth;i==t.props.lastWidth&&e==t.props.lastHeight||(t.props.lastWidth=i,t.props.lastHeight=e,t.props.scrollbarWidth=bS.getScrollBarWidth(),t.body.emitter.emit("_change"))}}else t._stopAutoResize()},bS.addEventListener(window,"resize",this._onResize),t.dom.root&&(t.props.lastWidth=t.dom.root.offsetWidth,t.props.lastHeight=t.dom.root.offsetHeight),this.watchTimer=mD(this._onResize,1e3)}},{key:"_stopAutoResize",value:function(){this.watchTimer&&(clearInterval(this.watchTimer),this.watchTimer=void 0),this._onResize&&(bS.removeEventListener(window,"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,i=this._getScrollTop(),n=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),n!=i&&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.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._isProgramaticallyScrolled=!0,this.props.scrollTop}},{key:"_getScrollTop",value:function(){return this.props.scrollTop}},{key:"_createConfigurator",value:function(){throw new Error("Cannot invoke abstract method _createConfigurator")}}]),t}();ND(NO.prototype);var RO=function(t){function e(t,i){var n,r;Pw(this,e),(r=Ik(this,Rk(e).call(this))).body=t,r.defaultOptions={rtl:!1,showCurrentTime:!0,alignCurrentTime:void 0,moment:Vk,locales:jO,locale:"en"},r.options=bS.extend({},r.defaultOptions),r.setOptions(i),r.options.locales=bS.extend({},jO,r.options.locales);var o=r.defaultOptions.locales[r.defaultOptions.locale];return nw(n=eS(r.options.locales)).call(n,(function(t){r.options.locales[t]=bS.extend({},o,r.options.locales[t])})),r.offset=0,r._create(),r}return zk(e,t),Iw(e,[{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&&bS.selectiveExtend(["rtl","showCurrentTime","alignCurrentTime","moment","locale","locales"],this.options,t)}},{key:"redraw",value:function(){if(this.options.showCurrentTime){var t,e,i=this.body.dom.backgroundVertical;this.bar.parentNode!=i&&(this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),i.appendChild(this.bar),this.start());var n=this.options.moment(PS()+this.offset);this.options.alignCurrentTime&&(n=n.startOf(this.options.alignCurrentTime));var r=this.body.util.toScreen(n),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=HS(t=HS(e="".concat(o.current," ")).call(e,o.time,": ")).call(t,n.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 i=1/t.body.range.conversion(t.body.domProps.center.width).scale/10;i<30&&(i=30),i>1e3&&(i=1e3),t.redraw(),t.body.emitter.emit("currentTimeTick"),t.currentTimeTimer=_w(e,i)}()}},{key:"stop",value:function(){void 0!==this.currentTimeTimer&&(clearTimeout(this.currentTimeTimer),delete this.currentTimeTimer)}},{key:"setCurrentTime",value:function(t){var e=bS.convert(t,"Date").valueOf(),i=PS();this.offset=e-i,this.redraw()}},{key:"getCurrentTime",value:function(){return new Date(PS()+this.offset)}}]),e}(GS),FO=!vy((function(){return Object.isExtensible(Object.preventExtensions({}))})),HO=n((function(t){var e=jy.f,i=$y("meta"),n=0,r=Object.isExtensible||function(){return!0},o=function(t){e(t,i,{value:{objectID:"O"+ ++n,weakData:{}}})},s=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!My(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!Xy(t,i)){if(!r(t))return"F";if(!e)return"E";o(t)}return t[i].objectID},getWeakData:function(t,e){if(!Xy(t,i)){if(!r(t))return!0;if(!e)return!1;o(t)}return t[i].weakData},onFreeze:function(t){return FO&&s.REQUIRED&&r(t)&&!Xy(t,i)&&o(t),t}};tb[i]=!0})),GO=(HO.REQUIRED,HO.fastKey,HO.getWeakData,HO.onFreeze,Fb("iterator")),WO=Array.prototype,zO=function(t){return void 0!==t&&(Sy.Array===t||WO[GO]===t)},VO=Fb("iterator"),UO=function(t){if(null!=t)return t[VO]||t["@@iterator"]||Sy[v_(t)]},BO=function(t,e,i,n){try{return n?e(Ay(i)[0],i[1]):e(i)}catch(e){var r=t.return;throw void 0!==r&&Ay(r.call(t)),e}},XO=n((function(t){var e=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,i,n,r,o){var s,a,l,u,h,c,d,f=xb(i,n,r?2:1);if(o)s=t;else{if("function"!=typeof(a=UO(t)))throw TypeError("Target is not iterable");if(zO(a)){for(l=0,u=Xb(t.length);u>l;l++)if((h=r?f(Ay(d=t[l])[0],d[1]):f(t[l]))&&h instanceof e)return h;return new e(!1)}s=a.call(t)}for(c=s.next;!(d=c.call(s)).done;)if("object"==typeof(h=BO(s,f,d.value,r))&&h&&h instanceof e)return h;return new e(!1)}).stop=function(t){return new e(!0,t)}})),qO=function(t,e,i){if(!(t instanceof e))throw TypeError("Incorrect "+(i?i+" ":"")+"invocation");return t},ZO=jy.f,JO=G_.forEach,$O=hb.set,KO=hb.getterFor,QO=function(t,e,i){for(var n in e)i&&i.unsafe&&t[n]?t[n]=e[n]:D_(t,n,e[n],i);return t},tM=Fb("species"),eM=jy.f,iM=HO.fastKey,nM=hb.set,rM=hb.getterFor,oM=(function(t,e,i){var n,r=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),s=r?"set":"add",a=xy[t],l=a&&a.prototype,u={};if(Oy&&"function"==typeof a&&(o||l.forEach&&!vy((function(){(new a).entries().next()})))){n=e((function(e,i){$O(qO(e,n,t),{type:t,collection:new a}),null!=i&&XO(i,e[s],e,r)}));var h=KO(t);JO(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var e="add"==t||"set"==t;t in l&&(!o||"clear"!=t)&&Ny(n.prototype,t,(function(i,n){var r=h(this).collection;if(!e&&o&&!My(i))return"get"==t&&void 0;var s=r[t](0===i?0:i,n);return e?this:s}))})),o||ZO(n.prototype,"size",{configurable:!0,get:function(){return h(this).collection.size}})}else n=i.getConstructor(e,t,r,s),HO.REQUIRED=!0;__(n,t,!1,!0),u[t]=n,Tb({global:!0,forced:!0},u),o||i.setStrong(n,t,r)}("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),{getConstructor:function(t,e,i,n){var r=t((function(t,o){qO(t,r,e),nM(t,{type:e,index:c_(null),first:void 0,last:void 0,size:0}),Oy||(t.size=0),null!=o&&XO(o,t[n],t,i)})),o=rM(e),s=function(t,e,i){var n,r,s=o(t),l=a(t,e);return l?l.value=i:(s.last=l={index:r=iM(e,!0),key:e,value:i,previous:n=s.last,next:void 0,removed:!1},s.first||(s.first=l),n&&(n.next=l),Oy?s.size++:t.size++,"F"!==r&&(s.index[r]=l)),t},a=function(t,e){var i,n=o(t),r=iM(e);if("F"!==r)return n.index[r];for(i=n.first;i;i=i.next)if(i.key==e)return i};return QO(r.prototype,{clear:function(){for(var t=o(this),e=t.index,i=t.first;i;)i.removed=!0,i.previous&&(i.previous=i.previous.next=void 0),delete e[i.index],i=i.next;t.first=t.last=void 0,Oy?t.size=0:this.size=0},delete:function(t){var e=o(this),i=a(this,t);if(i){var n=i.next,r=i.previous;delete e.index[i.index],i.removed=!0,r&&(r.next=n),n&&(n.previous=r),e.first==i&&(e.first=n),e.last==i&&(e.last=r),Oy?e.size--:this.size--}return!!i},forEach:function(t){for(var e,i=o(this),n=xb(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:i.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!a(this,t)}}),QO(r.prototype,i?{get:function(t){var e=a(this,t);return e&&e.value},set:function(t,e){return s(this,0===t?0:t,e)}}:{add:function(t){return s(this,t=0===t?0:t,t)}}),Oy&&eM(r.prototype,"size",{get:function(){return o(this).size}}),r},setStrong:function(t,e,i){var n=e+" Iterator",r=rM(e),o=rM(n);C_(t,e,(function(t,e){nM(this,{type:n,target:t,state:r(t),kind:e,last:void 0})}),(function(){for(var t=o(this),e=t.kind,i=t.last;i&&i.removed;)i=i.previous;return t.target&&(t.last=i=i?i.next:t.state.first)?"keys"==e?{value:i.key,done:!1}:"values"==e?{value:i.value,done:!1}:{value:[i.key,i.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),i?"entries":"values",!i,!0),function(t){var e=o_(t),i=jy.f;Oy&&e&&!e[tM]&&i(e,tM,{configurable:!0,get:function(){return this}})}(e)}}),Sb.Set),sM=Hk,aM=G_.find,lM=!0,uM=B_("find");"find"in[]&&Array(1).find((function(){lM=!1})),Tb({target:"Array",proto:!0,forced:lM||!uM},{find:function(t){return aM(this,t,arguments.length>1?arguments[1]:void 0)}});var hM=Q_("Array").find,cM=Array.prototype,dM=function(t){var e=t.find;return t===cM||t instanceof Array&&e===cM.find?hM:e},fM=function(t){var e=UO(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return Ay(e.call(t))},pM=Tw;var mM=function(t){if(pM(t)){for(var e=0,i=new Array(t.length);e<t.length;e++)i[e]=t[e];return i}},vM=Fb("iterator"),gM=!1;try{var yM=0,bM={next:function(){return{done:!!yM++}},return:function(){gM=!0}};bM[vM]=function(){return this},Array.from(bM,(function(){throw 2}))}catch(t){}var _M=!function(t,e){if(!e&&!gM)return!1;var i=!1;try{var n={};n[vM]=function(){return{next:function(){return{done:i=!0}}}},t(n)}catch(t){}return i}((function(t){Array.from(t)}));Tb({target:"Array",stat:!0,forced:_M},{from:function(t){var e,i,n,r,o,s,a=Cb(t),l="function"==typeof this?this:Array,u=arguments.length,h=u>1?arguments[1]:void 0,c=void 0!==h,d=UO(a),f=0;if(c&&(h=xb(h,u>2?arguments[2]:void 0,2)),null==d||l==Array&&zO(d))for(i=new l(e=Xb(a.length));e>f;f++)s=c?h(a[f],f):a[f],zw(i,f,s);else for(o=(r=d.call(a)).next,i=new l;!(n=o.call(r)).done;f++)s=c?BO(r,h,[n.value,f],!0):n.value,zw(i,f,s);return i.length=f,i}});var wM=Sb.Array.from,kM=Fb("iterator"),SM=function(t){var e=Object(t);return void 0!==e[kM]||"@@iterator"in e||Sy.hasOwnProperty(v_(e))};var DM=function(t){if(SM(Object(t))||"[object Arguments]"===Object.prototype.toString.call(t))return wM(t)};var xM=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")};var OM=function(t){return mM(t)||DM(t)||xM()},MM=Object.assign,TM=Object.defineProperty,CM=!MM||vy((function(){if(Oy&&1!==MM({b:1},MM(TM({},"a",{enumerable:!0,get:function(){TM(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},i=Symbol();return t[i]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=MM({},t)[i]||"abcdefghijklmnopqrst"!=i_(MM({},e)).join("")}))?function(t,e){for(var i=Cb(t),n=arguments.length,r=1,o=tk.f,s=fb.f;n>r;)for(var a,l=_y(arguments[r++]),u=o?i_(l).concat(o(l)):i_(l),h=u.length,c=0;h>c;)a=u[c++],Oy&&!s.call(l,a)||(i[a]=l[a]);return i}:MM;Tb({target:"Object",stat:!0,forced:Object.assign!==CM},{assign:CM});for(var PM=Sb.Object.assign,EM=n((function(t){var e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(e){var i=new Uint8Array(16);t.exports=function(){return e(i),i}}else{var n=new Array(16);t.exports=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),n[e]=t>>>((3&e)<<3)&255;return n}}})),AM=[],LM=0;LM<256;++LM)AM[LM]=(LM+256).toString(16).substr(1);var IM=function(t,e){var i=e||0,n=AM;return[n[t[i++]],n[t[i++]],n[t[i++]],n[t[i++]],"-",n[t[i++]],n[t[i++]],"-",n[t[i++]],n[t[i++]],"-",n[t[i++]],n[t[i++]],"-",n[t[i++]],n[t[i++]],n[t[i++]],n[t[i++]],n[t[i++]],n[t[i++]]].join("")};var jM=function(t,e,i){var n=e&&i||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var r=(t=t||{}).random||(t.rng||EM)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e)for(var o=0;o<16;++o)e[n+o]=r[o];return e||IM(r)},YM=Kb.includes,NM=B_("indexOf",{ACCESSORS:!0,1:0});Tb({target:"Array",proto:!0,forced:!NM},{includes:function(t){return YM(this,t,arguments.length>1?arguments[1]:void 0)}});var RM=Q_("Array").includes,FM=Fb("match"),HM=function(t){if(function(t){var e;return My(t)&&(void 0!==(e=t[FM])?!!e:"RegExp"==yy(t))}(t))throw TypeError("The method doesn't accept regular expressions");return t},GM=Fb("match");Tb({target:"String",proto:!0,forced:!function(t){var e=/./;try{"/./"[t](e)}catch(i){try{return e[GM]=!1,"/./"[t](e)}catch(t){}}return!1}("includes")},{includes:function(t){return!!~String(wy(this)).indexOf(HM(t),arguments.length>1?arguments[1]:void 0)}});var WM=Q_("String").includes,zM=Array.prototype,VM=String.prototype,UM=function(t){var e=t.includes;return t===zM||t instanceof Array&&e===zM.includes?RM:"string"==typeof t||t===VM||t instanceof String&&e===VM.includes?WM:e},BM=hw("slice"),XM=B_("slice",{ACCESSORS:!0,0:0,1:2}),qM=Fb("species"),ZM=[].slice,JM=Math.max;Tb({target:"Array",proto:!0,forced:!BM||!XM},{slice:function(t,e){var i,n,r,o=ky(this),s=Xb(o.length),a=Jb(t,s),l=Jb(void 0===e?s:e,s);if(Y_(o)&&("function"!=typeof(i=o.constructor)||i!==Array&&!Y_(i.prototype)?My(i)&&null===(i=i[qM])&&(i=void 0):i=void 0,i===Array||void 0===i))return ZM.call(o,a,l);for(n=new(void 0===i?Array:i)(JM(l-a,0)),r=0;a<l;a++,r++)a in o&&zw(n,r,o[a]);return n.length=r,n}});var $M=Q_("Array").slice,KM=Array.prototype,QM=function(t){var e=t.slice;return t===KM||t instanceof Array&&e===KM.slice?$M:e};function tT(t){ZS(t).call(t,(function(t,e){return t.data.start-e.data.start}))}function eT(t){ZS(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 iT(t,e,i,n){if(i)for(var r=0;r<t.length;r++)t[r].top=null;for(r=0;r<t.length;r++){var o=t[r];if(o.stack&&null===o.top){o.top=e.axis;var s=!1;do{for(var a=null,l=0,u=t.length;l<u;l++){var h=t[l];if(s=n()||!1)return!0;if(null!==h.top&&h!==o&&h.stack&&aT(o,h,e.item,h.options.rtl)){a=h;break}}null!=a&&(o.top=a.top+a.height+e.item.vertical)}while(a)}}return s}function nT(t,e,i){for(var n=0;n<t.length;n++)t[n].top=null;var r=i.height;for(n=0;n<t.length;n++){var o=t[n];if(o.stack&&null===o.top){o.top=o.baseTop;do{for(var s=null,a=0,l=t.length;a<l;a++){var u=t[a];if(null!==u.top&&u!==o&&aT(o,u,e.item,u.options.rtl)){s=u;break}}null!=s&&(o.top=s.top+s.height+e.item.vertical),o.top+o.height>r&&(r=o.top+o.height)}while(s)}}i.height=r-i.top+.5*e.item.vertical}function rT(t,e,i,n){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&&n){var o=0;for(var s in i)i.hasOwnProperty(s)&&1==i[s].visible&&i[s].index<i[t[r].data.subgroup].index&&(o+=i[s].height,i[t[r].data.subgroup].top=o);t[r].top=o+.5*e.item.vertical}n||oT(t,e,i)}function oT(t,e,i){for(var n in i)if(i.hasOwnProperty(n)){i[n].top=0;do{var r=null;for(var o in i)if(null!==i[o].top&&o!==n&&i[n].index>i[o].index&&lT(i[n],i[o])){r=i[o];break}null!=r&&(i[n].top=r.top+r.height)}while(r)}for(var s=0;s<t.length;s++)void 0!==t[s].data.subgroup&&(t[s].top=i[t[s].data.subgroup].top+.5*e.item.vertical)}function sT(t,e,i){var n=!1,r=[];for(var o in i)i[o].hasOwnProperty("index")?r[i[o].index]=o:r.push(o);for(var s=0;s<r.length;s++)if(o=r[s],i.hasOwnProperty(o)){for(var a in n=n||i[o].stack,i[o].top=0,i)i[a].visible&&i[o].index>i[a].index&&(i[o].top+=i[a].height);for(var l=t[o],u=0;u<l.length;u++)void 0!==l[u].data.subgroup&&(l[u].top=i[l[u].data.subgroup].top+.5*e.item.vertical,i[o].stack&&(l[u].baseTop=l[u].top));n&&i[o].stack&&nT(t[o],e,i[o])}}function aT(t,e,i,n){return n?t.right-i.horizontal+.001<e.right+e.width&&t.right+t.width+i.horizontal-.001>e.right&&t.top-i.vertical+.001<e.top+e.height&&t.top+t.height+i.vertical-.001>e.top:t.left-i.horizontal+.001<e.left+e.width&&t.left+t.width+i.horizontal-.001>e.left&&t.top-i.vertical+.001<e.top+e.height&&t.top+t.height+i.vertical-.001>e.top}function lT(t,e){return t.start<=e.start&&t.end>=e.start&&t.top<e.top+e.height&&t.top+t.height>e.top||e.start<=t.start&&e.end>=t.start&&e.top<t.top+t.height&&e.top+e.height>t.top}var uT=Object.freeze({__proto__:null,orderByStart:tT,orderByEnd:eT,stack:iT,substack:nT,nostack:rT,stackSubgroups:oT,stackSubgroupsWithInnerStack:sT,collision:aT,collisionByTimes:lT}),hT="__background__",cT=function(){function t(e,i,n){var r=this;if(Pw(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=i&&i.subgroupOrder,this.itemSet=n,this.isVisible=null,this.stackDirty=!0,this._disposeCallbacks=[],i&&i.nestedGroups&&(this.nestedGroups=i.nestedGroups,0==i.showNested?this.showNested=!1:this.showNested=!0),i&&i.subgroupStack)if("boolean"==typeof i.subgroupStack)this.doInnerStack=i.subgroupStack,this.subgroupStackAll=i.subgroupStack;else for(var o in i.subgroupStack)this.subgroupStack[o]=i.subgroupStack[o],this.doInnerStack=this.doInnerStack||i.subgroupStack[o];i&&i.heightMode?this.heightMode=i.heightMode:this.heightMode=n.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(i)}return Iw(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 i=document.createElement("div");i.className="vis-group",i["vis-group"]=this,this.dom.foreground=i,this.dom.background=document.createElement("div"),this.dom.background.className="vis-group",this.dom.axis=document.createElement("div"),this.dom.axis.className="vis-group",this.dom.marker=document.createElement("div"),this.dom.marker.style.visibility="hidden",this.dom.marker.style.position="absolute",this.dom.marker.innerHTML="",this.dom.background.appendChild(this.dom.marker)}},{key:"setData",value:function(t){if(!this.itemSet.groupTouchParams.isDragging){var e,i,n;if(t&&t.subgroupVisibility)for(var r in t.subgroupVisibility)this.subgroupVisibility[r]=t.subgroupVisibility[r];if(this.itemSet.options&&this.itemSet.options.groupTemplate)e=(i=Mw(n=this.itemSet.options.groupTemplate).call(n,this))(t,this.dom.inner);else e=t&&t.content;if(e 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?i(t,this.dom.inner):this.dom.inner.innerHTML=null!=e?e:this.groupId||"");this.dom.label.title=t&&t.title||"",this.dom.inner.firstChild?bS.removeClassName(this.dom.inner,"vis-hidden"):bS.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),bS.addClassName(this.dom.label,"vis-nesting-group"),this.showNested?(bS.removeClassName(this.dom.label,"collapsed"),bS.addClassName(this.dom.label,"expanded")):(bS.removeClassName(this.dom.label,"expanded"),bS.addClassName(this.dom.label,"collapsed"))):this.nestedGroups&&(this.nestedGroups=null,bS.removeClassName(this.dom.label,"collapsed"),bS.removeClassName(this.dom.label,"expanded"),bS.removeClassName(this.dom.label,"vis-nesting-group")),t&&(t.treeLevel||t.nestedInGroup)?(bS.addClassName(this.dom.label,"vis-nested-group"),t.treeLevel?bS.addClassName(this.dom.label,"vis-group-level-"+t.treeLevel):bS.addClassName(this.dom.label,"vis-group-level-unknown-but-gte1")):bS.addClassName(this.dom.label,"vis-group-level-0");var o=t&&t.className||null;o!=this.className&&(this.className&&(bS.removeClassName(this.dom.label,this.className),bS.removeClassName(this.dom.foreground,this.className),bS.removeClassName(this.dom.background,this.className),bS.removeClassName(this.dom.axis,this.className)),bS.addClassName(this.dom.label,o),bS.addClassName(this.dom.foreground,o),bS.addClassName(this.dom.background,o),bS.addClassName(this.dom.axis,o),this.className=o),this.style&&(bS.removeCssText(this.dom.label,this.style),this.style=null),t&&t.style&&(bS.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={},i=0;if(nw(bS).call(bS,this.items,(function(t,n){if(t.dirty=!0,t.displayed){e[n]=t.redraw(!0),i=e[n].length}})),i>0)for(var n=function(t){nw(bS).call(bS,e,(function(e){e[t]()}))},r=0;r<i;r++)n(r);return!0}return!1}},{key:"_calculateGroupSizeAndPosition",value:function(){var t=this.dom.foreground,e=t.offsetTop,i=t.offsetLeft,n=t.offsetWidth;this.top=e,this.right=i,this.width=n}},{key:"_shouldBailItemsRedraw",value:function(){var t=this,e=this.itemSet.options.onTimeout,i={relativeBailingTime:this.itemSet.itemsSettingTime,bailTimeMs:e&&e.timeoutMs,userBailFunction:e&&e.callback,shouldBailStackItems:this.shouldBailStackItems},n=null;if(!this.itemSet.initialDrawDone){if(i.shouldBailStackItems)return!0;Math.abs(PS()-new Date(i.relativeBailingTime))>i.bailTimeMs&&(i.userBailFunction&&null==this.itemSet.userContinueNotBail?i.userBailFunction((function(e){t.itemSet.userContinueNotBail=e,n=!e})):n=0==t.itemSet.userContinueNotBail)}return n}},{key:"_redrawItems",value:function(t,e,i,n){var r=this;if(t||this.stackDirty||this.isVisible&&!e){var o,s,a,l,u,h,c={byEnd:vw(o=this.orderedItems.byEnd).call(o,(function(t){return!t.isCluster})),byStart:vw(s=this.orderedItems.byStart).call(s,(function(t){return!t.isCluster}))},d={byEnd:OM(new oM(vw(a=pS(l=this.orderedItems.byEnd).call(l,(function(t){return t.cluster}))).call(a,(function(t){return!!t})))),byStart:OM(new oM(vw(u=pS(h=this.orderedItems.byStart).call(h,(function(t){return t.cluster}))).call(u,(function(t){return!!t}))))},f=function(){var t,e,i,o=r._updateItemsInRange(c,vw(t=r.visibleItems).call(t,(function(t){return!t.isCluster})),n),s=r._updateClustersInRange(d,vw(e=r.visibleItems).call(e,(function(t){return t.isCluster})),n);return HS(i=[]).call(i,OM(o),OM(s))},p=function(t){var e={},i=function(i){var n,o=vw(n=r.visibleItems).call(n,(function(t){return t.data.subgroup===i}));e[i]=t?ZS(o).call(o,(function(e,i){return t(e.data,i.data)})):o};for(var n in r.subgroups)i(n);return e};if("function"==typeof this.itemSet.options.order){var m=this;if(this.doInnerStack&&this.itemSet.options.stackSubgroups){sT(p(this.itemSet.options.order),i,this.subgroups),this.visibleItems=f(),this._updateSubGroupHeights(i)}else{var v,g,y,b;this.visibleItems=f(),this._updateSubGroupHeights(i);var _=ZS(v=vw(g=QM(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=iT(_,i,!0,Mw(b=this._shouldBailItemsRedraw).call(b,this))}}else{var w;if(this.visibleItems=f(),this._updateSubGroupHeights(i),this.itemSet.options.stack)if(this.doInnerStack&&this.itemSet.options.stackSubgroups)sT(p(),i,this.subgroups);else this.shouldBailStackItems=iT(this.visibleItems,i,!0,Mw(w=this._shouldBailItemsRedraw).call(w,this));else rT(this.visibleItems,i,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&&nw(bS).call(bS,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=bS.updateProperty(this,"height",e)||t;var i=this.dom.inner.clientWidth,n=this.dom.inner.clientHeight;return t=bS.updateProperty(this.props.label,"width",i)||t,t=bS.updateProperty(this.props.label,"height",n)||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,i=this.visibleItems.length;e<i;e++){var n=this.visibleItems[e];n.repositionY(t),this.isVisible||this.groupId==hT||n.displayed&&n.hide()}}},{key:"redraw",value:function(t,e,i,n){var r,o,s,a,l,u,h,c=this,d=!1,f=this.isVisible,p=[function(){i=c._didMarkerHeightChange.call(c)||i},Mw(r=this._updateSubGroupHeights).call(r,this,e),Mw(o=this._calculateGroupSizeAndPosition).call(o,this),function(){var i;c.isVisible=Mw(i=c._isGroupVisible).call(i,c)(t,e)},function(){var n;Mw(n=c._redrawItems).call(n,c)(i,f,e,t)},Mw(s=this._updateSubgroupsSizes).call(s,this),function(){var t;u=Mw(t=c._calculateHeight).call(t,c)(e)},Mw(a=this._calculateGroupSizeAndPosition).call(a,this),function(){var t;d=Mw(t=c._didResize).call(t,c)(d,u)},function(){var t;Mw(t=c._applyGroupHeight).call(t,c)(u)},function(){var t;Mw(t=c._updateItemsVerticalPosition).call(t,c)(e)},Mw(l=function(){return!c.isVisible&&c.height&&(d=!1),d}).call(l,this)];return n?p:(nw(p).call(p,(function(t){h=t()})),h)}},{key:"_updateSubGroupHeights",value:function(t){var e=this;if(eS(this.subgroups).length>0){var i=this;this._resetSubgroups(),nw(bS).call(bS,this.visibleItems,(function(n){void 0!==n.data.subgroup&&(i.subgroups[n.data.subgroup].height=Math.max(i.subgroups[n.data.subgroup].height,n.height+t.item.vertical),i.subgroups[n.data.subgroup].visible=void 0===e.subgroupVisibility[n.data.subgroup]||Boolean(e.subgroupVisibility[n.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,i;if((i="fixed"===this.heightMode?bS.toArray(this.items):this.visibleItems).length>0){var n=i[0].top,r=i[0].top+i[0].height;if(nw(bS).call(bS,i,(function(t){n=Math.min(n,t.top),r=Math.max(r,t.top+t.height)})),n>t.axis){var o=n-t.axis;r-=o,nw(bS).call(bS,i,(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 i=this.dom.background;i.parentNode&&i.parentNode.removeChild(i);var n=this.dom.axis;n.parentNode&&n.parentNode.removeChild(n)}},{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()),!UM(e=this.visibleItems).call(e,t)){var i=this.itemSet.body.range;this._checkIfVisible(t,this.visibleItems,i)}}},{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 i=t.data.end||t.data.start;new Date(i)>new Date(this.subgroups[e].end)&&(this.subgroups[e].end=i),this.subgroups[e].items.push(t)}},{key:"_updateSubgroupsSizes",value:function(){var t=this;if(t.subgroups){var e=function(e){var i,n=t.subgroups[e].items[0].data.end||t.subgroups[e].items[0].data.start,r=t.subgroups[e].items[0].data.start,o=n-1;nw(i=t.subgroups[e].items).call(i,(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[e].start=r,t.subgroups[e].end=new Date(o-1)};for(var i in t.subgroups)e(i)}}},{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]});ZS(t).call(t,(function(t,e){return t.sortField-e.sortField}))}else if("function"==typeof this.subgroupOrderer){for(var i in this.subgroups)t.push(this.subgroups[i].items[0].data);ZS(t).call(t,this.subgroupOrderer)}if(t.length>0)for(var n=0;n<t.length;n++)this.subgroups[t[n].subgroup].index=n}}},{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,i;delete this.items[t.id],t.setParent(null),this.stackDirty=!0;var n=YD(e=this.visibleItems).call(e,t);-1!=n&&TD(i=this.visibleItems).call(i,n,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 i=this.subgroups[e];if(i){var n,r,o=YD(n=i.items).call(n,t);if(o>=0)TD(r=i.items).call(r,o,1),i.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=bS.toArray(this.items),e=[],i=[],n=0;n<t.length;n++)void 0!==t[n].data.end&&i.push(t[n]),e.push(t[n]);this.orderedItems={byStart:e,byEnd:i},tT(this.orderedItems.byStart),eT(this.orderedItems.byEnd)}},{key:"_updateItemsInRange",value:function(t,e,i){var n=[],r={};if(!this.isVisible&&this.groupId!=hT){for(var o=0;o<e.length;o++){var s=e[o];s.displayed&&s.hide()}return n}var a=(i.end-i.start)/4,l=i.start-a,u=i.end+a;if(e.length>0)for(var h=0;h<e.length;h++)this._checkIfVisibleWithReference(e[h],n,r,i);var c=bS.binarySearchCustom(t.byStart,(function(t){return t<l?-1:t<=u?0:1}),"data","start");if(this._traceVisible(c,t.byStart,n,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],n,r,i)}else{var f=bS.binarySearchCustom(t.byEnd,(function(t){return t<l?-1:0}),"data","end");this._traceVisible(f,t.byEnd,n,r,(function(t){return t.data.end<l||t.data.start>u}))}for(var p={},m=0,v=0;v<n.length;v++){var g=n[v];if(!g.displayed){p[v]=g.redraw(!0),m=p[v].length}}if(m>0)for(var y=function(t){nw(bS).call(bS,p,(function(e){e[t]()}))},b=0;b<m;b++)y(b);for(var _=0;_<n.length;_++)n[_].repositionX();return n}},{key:"_traceVisible",value:function(t,e,i,n,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===n[s.id]&&(n[s.id]=!0,i.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===n[l.id]&&(n[l.id]=!0,i.push(l))}}}},{key:"_checkIfVisible",value:function(t,e,i){t.isVisible(i)?(t.displayed||t.show(),t.repositionX(),e.push(t)):t.displayed&&t.hide()}},{key:"_checkIfVisibleWithReference",value:function(t,e,i,n){t.isVisible(n)?void 0===i[t.id]&&(i[t.id]=!0,e.push(t)):t.displayed&&t.hide()}},{key:"_updateClustersInRange",value:function(t,e,i){var n=[],r={};if(e.length>0)for(var o=0;o<e.length;o++)this._checkIfVisibleWithReference(e[o],n,r,i);for(var s=0;s<t.byStart.length;s++)this._checkIfVisibleWithReference(t.byStart[s],n,r,i);for(var a=0;a<t.byEnd.length;a++)this._checkIfVisibleWithReference(t.byEnd[a],n,r,i);for(var l={},u=0,h=0;h<n.length;h++){var c=n[h];if(!c.displayed){l[h]=c.redraw(!0),u=l[h].length}}if(u>0)for(var d=0;d<u;d++)nw(bS).call(bS,l,(function(t){t[d]()}));for(var f=0;f<n.length;f++)n[f].repositionX();return n}},{key:"changeSubgroup",value:function(t,e,i){this._removeFromSubgroup(t,e),this._addToSubgroup(t,i),this.orderSubgroups()}},{key:"dispose",value:function(){var t;for(this.hide();t=this._disposeCallbacks.pop();)t()}}]),t}(),dT=function(t){function e(t,i,n){var r;return Pw(this,e),(r=Ik(this,Rk(e).call(this,t,i,n))).width=0,r.height=0,r.top=0,r.left=0,r}return zk(e,t),Iw(e,[{key:"redraw",value:function(t,e,i){this.visibleItems=this._updateItemsInRange(this.orderedItems,this.visibleItems,t),this.width=this.dom.background.offsetWidth,this.dom.background.style.height="0";for(var n=0,r=this.visibleItems.length;n<r;n++){this.visibleItems[n].repositionY(e)}return!1}},{key:"show",value:function(){this.dom.background.parentNode||this.itemSet.dom.background.appendChild(this.dom.background)}}]),e}(cT),fT=function(){function t(e,i,n){var r,o=this;Pw(this,t),this.id=null,this.parent=null,this.data=e,this.dom=null,this.conversion=i||{},this.defaultOptions={locales:jO,locale:"en"},this.options=bS.extend({},this.defaultOptions,n),this.options.locales=bS.extend({},jO,this.options.locales);var s=this.defaultOptions.locales[this.defaultOptions.locale];nw(r=eS(this.options.locales)).call(r,(function(t){o.options.locales[t]=bS.extend({},s,o.options.locales[t])})),this.selected=!1,this.displayed=!1,this.groupShowing=!0,this.selectable=n&&n.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 Iw(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.options.editable.updateTime&&!this.dom.dragCenter){var t,e,i=this,n=document.createElement("div");n.className="vis-drag-center",n.dragCenterItem=this,this.hammerDragCenter=new fO(n),this.hammerDragCenter.on("tap",(function(t){i.parent.itemSet.body.emitter.emit("click",{event:t,item:i.id})})),this.hammerDragCenter.on("doubletap",(function(t){t.stopPropagation(),i.parent.itemSet._onUpdateItem(i),i.parent.itemSet.body.emitter.emit("doubleClick",{event:t,item:i.id})})),this.hammerDragCenter.on("panstart",(function(t){t.stopPropagation(),i.parent.itemSet._onDragStart(t)})),this.hammerDragCenter.on("panmove",Mw(t=i.parent.itemSet._onDrag).call(t,i.parent.itemSet)),this.hammerDragCenter.on("panend",Mw(e=i.parent.itemSet._onDragEnd).call(e,i.parent.itemSet)),this.dom.box?this.dom.dragLeft?this.dom.box.insertBefore(n,this.dom.dragLeft):this.dom.box.appendChild(n):this.dom.point&&this.dom.point.appendChild(n),this.dom.dragCenter=n}else!this.selected&&this.dom.dragCenter&&(this.dom.dragCenter.parentNode&&this.dom.dragCenter.parentNode.removeChild(this.dom.dragCenter),this.dom.dragCenter=null,this.hammerDragCenter&&(this.hammerDragCenter.destroy(),this.hammerDragCenter=null))}},{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 i=this,n=document.createElement("div");this.options.rtl?n.className="vis-delete-rtl":n.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),n.title=r.deleteSelected,this.hammerDeleteButton=new fO(n).on("tap",(function(t){t.stopPropagation(),i.parent.removeFromDataSet(i)})),t.appendChild(n),this.dom.deleteButton=n}else!this.selected&&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 i=document.createElement("div");i.className="vis-onUpdateTime-tooltip",t.appendChild(i),this.dom.onItemUpdateTimeTooltip=i}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 n,r,o=this.parent.itemSet.body.domProps.scrollTop;if(("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)n=Mw(r=this.options.tooltipOnItemUpdateTime.template).call(r,this)(this.data);else n="start: ".concat(Vk(this.data.start).format("MM/DD/YYYY hh:mm")),this.data.end&&(n+="<br> end: ".concat(Vk(this.data.end).format("MM/DD/YYYY hh:mm")));this.dom.onItemUpdateTimeTooltip.innerHTML=n}}}},{key:"_getItemData",value:function(){return this.parent.itemSet.itemsData.get(this.id)}},{key:"_updateContents",value:function(t){var e,i,n,r,o,s,a=this._getItemData(),l=(this.dom.box||this.dom.point).getElementsByClassName("vis-item-visible-frame")[0];this.options.visibleFrameTemplate?n=(r=Mw(o=this.options.visibleFrameTemplate).call(o,this))(a,l):n="";if(l)if(n instanceof Object&&!(n instanceof Element))r(a,l);else if(this._contentToString(this.itemVisibleFrameContent)!==this._contentToString(n)){if(n instanceof Element)l.innerHTML="",l.appendChild(n);else if(null!=n)l.innerHTML=n;else if("background"!=this.data.type||void 0!==this.data.content)throw new Error('Property "content" missing in item '.concat(this.id));this.itemVisibleFrameContent=n}this.options.template?e=(i=Mw(s=this.options.template).call(s,this))(a,t,this.data):e=this.data.content;if(e instanceof Object&&!(e instanceof Element))i(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=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(Cw(this.options.dataAttributes))e=this.options.dataAttributes;else{if("all"!=this.options.dataAttributes)return;e=eS(this.data)}var i=!0,n=!1,r=void 0;try{for(var o,s=fM(e);!(i=(o=s.next()).done);i=!0){var a=o.value,l=this.data[a];null!=l?t.setAttribute("data-".concat(a),l):t.removeAttribute("data-".concat(a))}}catch(t){n=!0,r=t}finally{try{i||null==s.return||s.return()}finally{if(n)throw r}}}}},{key:"_updateStyle",value:function(t){this.style&&(bS.removeCssText(t,this.style),this.style=null),this.data.style&&(bS.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"===Ak(this.options.editable)&&(this.editable={},bS.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"===Ak(this.data.editable)&&(this.editable={},bS.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?Mw(t=this.options.tooltip.template).call(t,this)(this._getItemData(),this.data):this.data.title}}]),t}();fT.prototype.stack=!0;var pT=function(t){function e(t,i,n){var r;if(Pw(this,e),(r=Ik(this,Rk(e).call(this,t,i,n))).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 r}return zk(e,t),Iw(e,[{key:"isVisible",value:function(t){if(this.cluster)return!1;var e,i=this.data.align||this.options.align,n=this.width*t.getMillisecondsPerPixel();return e="right"==i?this.data.start.getTime()>t.start&&this.data.start.getTime()-n<t.end:"left"==i?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,e}},{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 i=this.parent.dom.axis;if(!e)throw new Error("Cannot redraw item: parent has no axis container element");i.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,i,n,r,o,s,a=this,l=[Mw(e=this._createDomElement).call(e,this),Mw(i=this._appendDomElement).call(i,this),Mw(n=this._updateDirtyDomComponents).call(n,this),function(){a.dirty&&(o=a._getDomComponentsSizes())},function(){var t;a.dirty&&Mw(t=a._updateDomComponentsSizes).call(t,a)(o)},Mw(r=this._repaintDomAdditionals).call(r,this)];return t?l:(nw(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,i){var n,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(void 0!==e||void 0!==i){var o=r?-1*e:e;t.style.transform=void 0!==i?void 0!==e?HS(n="translate(".concat(o,"px, ")).call(n,i,"px)"):"translateY(".concat(i,"px)"):"translateX(".concat(o,"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,i=this.props.line.width,n=this.props.dot.width;"right"==e?(this.boxX=t-this.width,this.lineX=t-i,this.dotX=t-i/2-n/2):"left"==e?(this.boxX=t,this.lineX=t,this.dotX=t+i/2-n/2):(this.boxX=t-this.width/2,this.lineX=this.options.rtl?t-i:t-i/2,this.dotX=t-n/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 i=this.parent.top+this.top+1;this.boxY=this.top||0,e.height="".concat(i,"px"),e.bottom="",e.top="0"}else{var n=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(n,"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}}]),e}(fT),mT=function(t){function e(t,i,n){var r;if(Pw(this,e),(r=Ik(this,Rk(e).call(this,t,i,n))).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 r}return zk(e,t),Iw(e,[{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(2*this.props.dot.width,"px"):this.dom.content.style.marginLeft="".concat(2*this.props.dot.width,"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,i=this.options.rtl?e/2*-1:e/2;this.dom.dot.style.transform="translateX(".concat(i,"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,i,n,r,o,s,a=this,l=[Mw(e=this._createDomElement).call(e,this),Mw(i=this._appendDomElement).call(i,this),Mw(n=this._updateDirtyDomComponents).call(n,this),function(){a.dirty&&(o=a._getDomComponentsSizes())},function(){var t;a.dirty&&Mw(t=a._updateDomComponentsSizes).call(t,a)(o)},Mw(r=this._repaintDomAdditionals).call(r,this)];return t?l:(nw(l).call(l,(function(t){s=t()})),s)}},{key:"repositionXY",value:function(){var t=this.options.rtl,e=function(t,e,i){var n,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(void 0!==e||void 0!==i){var o=r?-1*e:e;t.style.transform=void 0!==i?void 0!==e?HS(n="translate(".concat(o,"px, ")).call(n,i,"px)"):"translateY(".concat(i,"px)"):"translateX(".concat(o,"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}}]),e}(fT),vT=function(t){function e(t,i,n){var r;if(Pw(this,e),(r=Ik(this,Rk(e).call(this,t,i,n))).props={content:{width:0}},r.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 r}return zk(e,t),Iw(e,[{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,i,n,r,o,s,a=this,l=[Mw(e=this._createDomElement).call(e,this),Mw(i=this._appendDomElement).call(i,this),Mw(n=this._updateDirtyDomComponents).call(n,this),function(){var t;a.dirty&&(o=Mw(t=a._getDomComponentsSizes).call(t,a)())},function(){var t;a.dirty&&Mw(t=a._updateDomComponentsSizes).call(t,a)(o)},Mw(r=this._repaintDomAdditionals).call(r,this)];return t?l:(nw(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,i,n=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<-n&&(r=-n),o>2*n&&(o=2*n));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,i=this.props.content.width):(this.options.rtl?this.right=r:this.left=r,this.width=a,i=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-i,0);this.dom.content.style.transform="translateX(".concat(l,"px)")}else this.dom.content.style.transform="translateX(".concat(Math.max(a-i,0),"px)");break;case"center":if(this.options.rtl){var u=-1*Math.max((a-i)/2,0);this.dom.content.style.transform="translateX(".concat(u,"px)")}else this.dom.content.style.transform="translateX(".concat(Math.max((a-i)/2,0),"px)");break;default:if(e=this.overflow?o>0?Math.max(-r,0):-i:r<0?-r:0,this.options.rtl){var h=-1*e;this.dom.content.style.transform="translateX(".concat(h,"px)")}else this.dom.content.style.transform="translateX(".concat(e,"px)")}}},{key:"repositionY",value:function(){var t=this.options.orientation.item,e=this.dom.box;e.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.options.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.options.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)}}]),e}(fT);vT.prototype.baseClassName="vis-item vis-range";var gT=function(t){function e(t,i,n){var r;if(Pw(this,e),(r=Ik(this,Rk(e).call(this,t,i,n))).props={content:{width:0}},r.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 r}return zk(e,t),Iw(e,[{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,i,n,r,o,s,a=this,l=[Mw(e=this._createDomElement).call(e,this),Mw(i=this._appendDomElement).call(i,this),Mw(n=this._updateDirtyDomComponents).call(n,this),function(){var t;a.dirty&&(o=Mw(t=a._getDomComponentsSizes).call(t,a)())},function(){var t;a.dirty&&Mw(t=a._updateDomComponentsSizes).call(t,a)(o)},Mw(r=this._repaintDomAdditionals).call(r,this)];return t?l:(nw(l).call(l,(function(t){s=t()})),s)}},{key:"repositionY",value:function(t){var e,i=this.options.orientation.item;if(void 0!==this.data.subgroup){var n=this.data.subgroup;this.dom.box.style.height="".concat(this.parent.subgroups[n].height,"px"),this.dom.box.style.top="".concat("top"==i?this.parent.top+this.parent.subgroups[n].top:this.parent.top+this.parent.height-this.parent.subgroups[n].top-this.parent.subgroups[n].height,"px"),this.dom.box.style.bottom=""}else this.parent instanceof dT?(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"==i?"0":"",this.dom.box.style.top="top"==i?"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")}}]),e}(fT);gT.prototype.baseClassName="vis-item vis-background",gT.prototype.stack=!1,gT.prototype.show=vT.prototype.show,gT.prototype.hide=vT.prototype.hide,gT.prototype.repositionX=vT.prototype.repositionX;var yT=function(){function t(e,i){Pw(this,t),this.container=e,this.overflowMethod=i||"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 Iw(t,[{key:"setPosition",value:function(t,e){this.x=bO(t),this.y=bO(e)}},{key:"setText",value:function(t){t instanceof Element?(this.frame.innerHTML="",this.frame.appendChild(t)):this.frame.innerHTML=t}},{key:"show",value:function(t){if(void 0===t&&(t=!0),!0===t){var e=this.frame.clientHeight,i=this.frame.clientWidth,n=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+i>r-this.padding&&(a=!0)),o=a?this.x-i:this.x,s=l?this.y-e:this.y}else(s=this.y-e)+e+this.padding>n&&(s=n-e-this.padding),s<this.padding&&(s=this.padding),(o=this.x)+i+this.padding>r&&(o=r-i-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}(),bT=G_.every,_T=W_("every"),wT=B_("every");Tb({target:"Array",proto:!0,forced:!_T||!wT},{every:function(t){return bT(this,t,arguments.length>1?arguments[1]:void 0)}});var kT=Q_("Array").every,ST=Array.prototype,DT=function(t){var e=t.every;return t===ST||t instanceof Array&&e===ST.every?kT:e},xT=fb.f,OT=function(t){return function(e){for(var i,n=ky(e),r=i_(n),o=r.length,s=0,a=[];o>s;)i=r[s++],Oy&&!xT.call(n,i)||a.push(t?[i,n[i]]:n[i]);return a}},MT={entries:OT(!0),values:OT(!1)}.values;Tb({target:"Object",stat:!0},{values:function(t){return MT(t)}});var TT=Sb.Object.values,CT=function(t){function e(t,i,n){var r;Pw(this,e);var o=PM({},{fitOnDoubleClick:!0},n,{editable:!1});if((r=Ik(this,Rk(e).call(this,t,i,o))).props={content:{width:0,height:0}},!t||null==t.uiItems)throw new Error('Property "uiItems" missing in item '+t.id);return r.id=jM(),r.group=t.group,r._setupRange(),r.emitter=r.data.eventEmitter,r.range=r.data.range,r.attached=!1,r.isCluster=!0,r.data.isCluster=!0,r}return zk(e,t),Iw(e,[{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,i=this.width*t.getMillisecondsPerPixel(),n=Math.max(e,this.data.start.getTime()+i);return this.data.start<t.end&&n>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,i,n,r,o,s,a,l,u=[Mw(e=this._createDomElement).call(e,this),Mw(i=this._appendDomElement).call(i,this),Mw(n=this._updateDirtyDomComponents).call(n,this),Mw(r=function(){this.dirty&&(a=this._getDomComponentsSizes())}).call(r,this),Mw(o=function(){var t;this.dirty&&Mw(t=this._updateDomComponentsSizes).call(t,this)(a)}).call(o,this),Mw(s=this._repaintDomAdditionals).call(s,this)];return t?u:(nw(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 i=void 0===this.data.align?this.options.align:this.data.align;this.repositionXWithoutRanges(t,i)}this.options.showStipes&&(this.dom.line.style.display=this._isStipeVisible()?"block":"none",this.dom.dot.style.display=this._isStipeVisible()?"block":"none",this._isStipeVisible()&&this.repositionStype(t,e))}},{key:"repositionStype",value:function(t,e){this.dom.line.style.display="block",this.dom.dot.style.display="block";var i=this.dom.line.offsetWidth,n=this.dom.dot.offsetWidth;if(e){var r=i+t+(e-t)/2,o=r-n/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-n/2):t-n/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 i=Math.round(Math.max(e-t+.5,1));this.options.rtl?this.right=t:this.left=t,this.width=Math.max(i,this.minWidth||0),this.options.rtl?this.dom.box.style.right=this.right+"px":this.dom.box.style.left=this.left+"px",this.dom.box.style.width=i+"px"}},{key:"repositionY",value:function(){var t=this.options.orientation.item,e=this.dom.box;if(e.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 i=this.parent.itemSet.props.height,n=i-this.parent.top-this.parent.height+this.top;this.dom.line.style.top=i-n+"px",this.dom.line.style.bottom="0"}this.dom.dot.style.top=-this.dom.dot.offsetHeight/2+"px"}}},{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=!0,i=!1,n=void 0;try{for(var r,o=fM(this.data.uiItems);!(e=(r=o.next()).done);e=!0){r.value.cluster=this}}catch(t){i=!0,n=t}finally{try{e||null==o.return||o.return()}finally{if(i)throw n}}this.data.items=pS(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=!0,i=!1,n=void 0;try{for(var r,o=fM(this.data.uiItems);!(e=(r=o.next()).done);e=!0){var s=r.value;delete s.cluster}}catch(t){i=!0,n=t}finally{try{e||null==o.return||o.return()}finally{if(i)throw n}}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,i,n=pS(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,OM(pS(n).call(n,(function(t){return Math.min(t.start,t.end||t.start)})))),this.data.max=Math.max.apply(Math,OM(pS(n).call(n,(function(t){return Math.max(t.start,t.end||t.start)}))));var r=pS(e=this.data.uiItems).call(e,(function(t){return t.center})),o=lS(r).call(r,(function(t,e){return t+e}),0)/this.data.uiItems.length;wD(i=this.data.uiItems).call(i,(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?vw(t=this.data.uiItems).call(t,(function(t){return t.cluster===e})):[]}},{key:"_createDomElement",value:function(){if(!this.dom){var t;if(this.dom={},this.dom.box=document.createElement("DIV"),this.dom.content=document.createElement("DIV"),this.dom.content.className="vis-item-content",this.dom.box.appendChild(this.dom.content),this.options.showStipes&&(this.dom.line=document.createElement("DIV"),this.dom.line.className="vis-cluster-line",this.dom.line.style.display="none",this.dom.dot=document.createElement("DIV"),this.dom.dot.className="vis-cluster-dot",this.dom.dot.style.display="none"),this.options.fitOnDoubleClick)this.dom.box.ondblclick=Mw(t=e.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 i=this.parent.dom.axis;if(!e)throw new Error("Cannot redraw item: parent has no axis container element");i.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(){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.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,i=t.fitEnd,n={start:new Date(e),end:new Date(i),animation:!0};this.emitter.emit("fit",n)}}},{key:"_getItemData",value:function(){return this.data}}]),e}(fT);CT.prototype.baseClassName="vis-item vis-range vis-cluster";var PT="__ungrouped__",ET=function(){function t(e){Pw(this,t),this.itemSet=e,this.groups={},this.cache={},this.cache[-1]=[]}return Iw(t,[{key:"createClusterItem",value:function(t,e,i){return new CT(t,e,i)}},{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,i){var n="boolean"==typeof i?{}:i,r=n.maxItems,o=n.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 h in u=[],this.groups)if(this.groups.hasOwnProperty(h))for(var c=this.groups[h],d=c.length,f=0;f<d;){for(var p=c[f],m=1,v=f-1;v>=0&&p.center-c[v].center<a/2;)!c[v].cluster&&o(p.data,c[v].data)&&m++,v--;for(var g=f+1;g<c.length&&c[g].center-p.center<a/2;)o(p.data,c[g].data)&&m++,g++;for(var y=u.length-1;y>=0&&p.center-u[y].center<a;)p.group==u[y].group&&o(p.data,u[y].data)&&m++,y--;if(m>r){for(var b=m-r+1,_=[],w=f;_.length<b&&w<c.length;)o(c[w].data,c[w].data)&&_.push(c[w]),w++;var k=this.itemSet.getGroupId(p.data),S=this.itemSet.groups[k]||this.itemSet.groups[PT],D=this._getClusterForItems(_,S,t,i);u.push(D),f+=b}else delete p.cluster,f+=1}this.cache[s]=u}return u}},{key:"_filterData",value:function(){var t={};this.groups=t;for(var e=0,i=TT(this.items);e<i.length;e++){var n=i[e],r=n.parent?n.parent.groupId:"",o=t[r];o||(o=[],t[r]=o),o.push(n),n.data.start&&(n.data.end?n.center=(n.data.start.valueOf()+n.data.end.valueOf())/2:n.center=n.data.start.valueOf())}for(var s in t){var a;if(t.hasOwnProperty(s))ZS(a=t[s]).call(a,(function(t,e){return t.center-e.center}))}this.dataChanged=!1}},{key:"_getClusterForItems",value:function(t,e,i,n){var r,o,s=pS(r=i||[]).call(r,(function(t){var e;return{cluster:t,itemsIds:new oM(pS(e=t.data.uiItems).call(e,(function(t){return t.id})))}}));if(s.length){var a=!0,l=!1,u=void 0;try{for(var h,c=function(){var e=h.value;if(e.itemsIds.size===t.length&&DT(t).call(t,(function(t){return e.itemsIds.has(t.id)})))return o=e.cluster,"break"},d=fM(s);!(a=(h=d.next()).done);a=!0){if("break"===c())break}}catch(t){l=!0,u=t}finally{try{a||null==d.return||d.return()}finally{if(l)throw u}}}if(o)return o.setUiItems(t),o.group!==e&&(o.group&&o.group.remove(o),e&&(e.add(o),o.group=e)),o;var f=n.titleTemplate||"",p={toScreen:this.itemSet.body.util.toScreen,toTime:this.itemSet.body.util.toTime},m='<div title="'+v+'">'+t.length+"</div>",v=f.replace(/{count}/,t.length),g=PM({},n,this.itemSet.options),y={content:m,title:v,group:e,uiItems:t,eventEmitter:this.itemSet.body.emitter,range:this.itemSet.body.range};return o=this.createClusterItem(y,p,g),e&&(e.add(o),o.group=e),o.attach(),o}},{key:"_dropLevelsCache",value:function(){this.cache={},this.cacheLevel=-1,this.cache[this.cacheLevel]=[]}}]),t}(),AT="__background__",LT=function(t){function e(t,i){var n;Pw(this,e),(n=Ik(this,Rk(e).call(this))).body=t,n.defaultOptions={type:null,orientation:{item:"bottom"},align:"auto",stack:!0,stackSubgroups:!0,groupOrderSwap:function(t,e,i){var n=e.order;e.order=t.order,t.order=n},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:_O.snap,onDropObjectOnItem:function(t,e,i){i(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},n.options=bS.extend({},n.defaultOptions),n.options.rtl=i.rtl,n.options.onTimeout=i.onTimeout,n.conversion={toScreen:t.util.toScreen,toTime:t.util.toTime},n.dom={},n.props={},n.hammer=null;var r=Lk(n);return n.itemsData=null,n.groupsData=null,n.itemsSettingTime=null,n.initialItemSetDrawn=!1,n.userContinueNotBail=null,n.sequentialSelection=!1,n.itemListeners={add:function(t,e,i){r._onAdd(e.items),r.options.cluster&&r.clusterGenerator.setItems(r.items,{applyOnChangedLevel:!1}),r.redraw()},update:function(t,e,i){r._onUpdate(e.items),r.options.cluster&&r.clusterGenerator.setItems(r.items,{applyOnChangedLevel:!1}),r.redraw()},remove:function(t,e,i){r._onRemove(e.items),r.options.cluster&&r.clusterGenerator.setItems(r.items,{applyOnChangedLevel:!1}),r.redraw()}},n.groupListeners={add:function(t,e,i){if(r._onAddGroups(e.items),r.groupsData&&r.groupsData.length>0){var n,o=r.groupsData.getDataSet();nw(n=o.get()).call(n,(function(t){if(t.nestedGroups){var e;0!=t.showNested&&(t.showNested=!0);var n=[];nw(e=t.nestedGroups).call(e,(function(e){var i=o.get(e);i&&(i.nestedInGroup=t.id,0==t.showNested&&(i.visible=!1),n=HS(n).call(n,i))})),o.update(n,i)}}))}},update:function(t,e,i){r._onUpdateGroups(e.items)},remove:function(t,e,i){r._onRemoveGroups(e.items)}},n.items={},n.groups={},n.groupIds=[],n.selection=[],n.popup=null,n.popupTimer=null,n.touchParams={},n.groupTouchParams={group:null,isDragging:!1},n._create(),n.setOptions(i),n.clusters=[],n}return zk(e,t),Iw(e,[{key:"_create",value:function(){var t,e,i,n,r,o,s,a,l,u,h,c,d,f,p,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 _=document.createElement("div");_.className="vis-labelset",this.dom.labelSet=_,this._updateUngrouped();var w=new dT(AT,null,this);w.show(),this.groups[AT]=w,this.hammer=new fO(this.body.dom.centerContainer),this.hammer.on("hammer.input",(function(t){t.isFirst&&m._onTouch(t)})),this.hammer.on("panstart",Mw(t=this._onDragStart).call(t,this)),this.hammer.on("panmove",Mw(e=this._onDrag).call(e,this)),this.hammer.on("panend",Mw(i=this._onDragEnd).call(i,this)),this.hammer.get("pan").set({threshold:5,direction:fO.ALL}),this.hammer.on("tap",Mw(n=this._onSelectItem).call(n,this)),this.hammer.on("press",Mw(r=this._onMultiSelectItem).call(r,this)),this.hammer.on("doubletap",Mw(o=this._onAddItem).call(o,this)),this.options.rtl?this.groupHammer=new fO(this.body.dom.rightContainer):this.groupHammer=new fO(this.body.dom.leftContainer),this.groupHammer.on("tap",Mw(s=this._onGroupClick).call(s,this)),this.groupHammer.on("panstart",Mw(a=this._onGroupDragStart).call(a,this)),this.groupHammer.on("panmove",Mw(l=this._onGroupDrag).call(l,this)),this.groupHammer.on("panend",Mw(u=this._onGroupDragEnd).call(u,this)),this.groupHammer.get("pan").set({threshold:5,direction:fO.DIRECTION_VERTICAL}),this.body.dom.centerContainer.addEventListener("mouseover",Mw(h=this._onMouseOver).call(h,this)),this.body.dom.centerContainer.addEventListener("mouseout",Mw(c=this._onMouseOut).call(c,this)),this.body.dom.centerContainer.addEventListener("mousemove",Mw(d=this._onMouseMove).call(d,this)),this.body.dom.centerContainer.addEventListener("contextmenu",Mw(f=this._onDragEnd).call(f,this)),this.body.dom.centerContainer.addEventListener("mousewheel",Mw(p=this._onMouseWheel).call(p,this)),this.show()}},{key:"setOptions",value:function(t){var e=this;if(t){var i,n;bS.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"===Ak(t.itemsAlwaysDraggable)&&(bS.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"===Ak(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"===Ak(t.margin)&&(bS.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"===Ak(t.margin.item)&&bS.selectiveExtend(["horizontal","vertical"],this.options.margin.item,t.margin.item)))),nw(i=["locale","locales"]).call(i,(function(i){i in t&&(e.options[i]=t[i])})),"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"===Ak(t.editable)&&bS.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"===Ak(t.groupEditable)&&bS.selectiveExtend(["order","add","remove"],this.options.groupEditable,t.groupEditable));nw(n=["onDropObjectOnItem","onAdd","onUpdate","onRemove","onMove","onMoving","onAddGroup","onMoveGroup","onRemoveGroup"]).call(n,(function(i){var n=t[i];if(n){var r;if("function"!=typeof n)throw new Error(HS(r="option ".concat(i," must be a function ")).call(r,i,"(item, callback)"));e.options[i]=n}})),t.cluster?(PM(this.options,{cluster:t.cluster}),this.clusterGenerator||(this.clusterGenerator=new ET(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&&nw(bS).call(bS,this.items,(function(t){t.dirty=!0,t.displayed&&t.redraw()})),t.restackGroups&&nw(bS).call(bS,this.groups,(function(t,e){e!==AT&&(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=_w((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=[]),Cw(t)||(t=[t]);var i=vw(e=this.selection).call(e,(function(e){return-1===YD(t).call(t,e)})),n=!0,r=!1,o=void 0;try{for(var s,a=fM(i);!(n=(s=a.next()).done);n=!0){var l=s.value,u=this.getItemById(l);u&&u.unselect()}}catch(t){r=!0,o=t}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}this.selection=OM(t);var h=!0,c=!1,d=void 0;try{for(var f,p=fM(t);!(h=(f=p.next()).done);h=!0){var m=f.value,v=this.getItemById(m);v&&v.select()}}catch(t){c=!0,d=t}finally{try{h||null==p.return||p.return()}finally{if(c)throw d}}}},{key:"getSelection",value:function(){var t;return HS(t=this.selection).call(t,[])}},{key:"getVisibleItems",value:function(){var t,e,i=this.body.range.getRange();this.options.rtl?(t=this.body.util.toScreen(i.start),e=this.body.util.toScreen(i.end)):(e=this.body.util.toScreen(i.start),t=this.body.util.toScreen(i.end));var n=[];for(var r in this.groups)if(this.groups.hasOwnProperty(r)){var o=this.groups[r],s=o.isVisible?o.visibleItems:[],a=!0,l=!1,u=void 0;try{for(var h,c=fM(s);!(a=(h=c.next()).done);a=!0){var d=h.value;this.options.rtl?d.right<e&&d.right+d.width>t&&n.push(d.id):d.left<t&&d.left+d.width>e&&n.push(d.id)}}catch(t){l=!0,u=t}finally{try{a||null==c.return||c.return()}finally{if(l)throw u}}}return n}},{key:"getVisibleGroups",value:function(){var t=[];for(var e in this.groups){if(this.groups.hasOwnProperty(e))this.groups[e].isVisible&&t.push(e)}return t}},{key:"getItemById",value:function(t){var e;return this.items[t]||dM(e=this.clusters).call(e,(function(e){return e.id===t}))}},{key:"_deselect",value:function(t){for(var e=this.selection,i=0,n=e.length;i<n;i++)if(e[i]==t){TD(e).call(e,i,1);break}}},{key:"redraw",value:function(){var t=this,e=this.options.margin,i=this.body.range,n=bS.option.asSize,r=this.options,o=r.orientation.item,s=!1,a=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,a.className="vis-itemset",this.options.cluster&&this._clusterItems(),s=this._orderGroups()||s;var l=i.end-i.start,u=l!=this.lastVisibleInterval||this.props.width!=this.props.lastWidth,h=i.start!=this.lastRangeStart,c=r.stack!=this.lastStack,d=r.stackSubgroups!=this.lastStackSubgroups,f=u||h||c||d;this.lastVisibleInterval=l,this.lastRangeStart=i.start,this.lastStack=r.stack,this.lastStackSubgroups=r.stackSubgroups,this.props.lastWidth=this.props.width;var p=this._firstGroup(),m={item:e.item,axis:e.axis},v={item:e.item,axis:e.item.vertical/2},g=0,y=e.axis+e.item.vertical;this.groups[AT].redraw(i,v,f);var b={},_=0;return nw(bS).call(bS,this.groups,(function(t,e){if(e!==AT){var n=t==p?m:v;b[e]=t.redraw(i,n,f,!0),_=b[e].length}})),_>0&&function(){for(var e={},i=function(t){nw(bS).call(bS,b,(function(i,n){e[n]=i[t]()}))},n=0;n<_;n++)i(n);nw(bS).call(bS,t.groups,(function(t,i){if(i!==AT){var n=e[i];s=n||s,g+=t.height}})),g=Math.max(g,y)}(),g=Math.max(g,y),a.style.height=n(g),this.props.width=a.offsetWidth,this.props.height=g,this.dom.axis.style.top=n("top"==o?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,s=this._isResized()||s}},{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.__ungrouped__||null}},{key:"_updateUngrouped",value:function(){var t,e,i=this.groups.__ungrouped__;if(this.groupsData){if(i)for(e in i.dispose(),delete this.groups.__ungrouped__,this.items)if(this.items.hasOwnProperty(e)){(t=this.items[e]).parent&&t.parent.remove(t);var n=this.getGroupId(t.data),r=this.groups[n];r&&r.add(t)||t.hide()}}else if(!i){for(e in i=new cT(null,null,this),this.groups.__ungrouped__=i,this.items)this.items.hasOwnProperty(e)&&(t=this.items[e],i.add(t));i.show()}}},{key:"getLabelSet",value:function(){return this.dom.labelSet}},{key:"setItems",value:function(t){this.itemsSettingTime=new Date;var e,i=this,n=this.itemsData;if(t){if(!(t instanceof py||t instanceof my))throw new TypeError("Data must be an instance of DataSet or DataView");this.itemsData=yS(t)}else this.itemsData=null;if(n&&(nw(bS).call(bS,this.itemListeners,(function(t,e){n.off(e,t)})),n.dispose(),e=n.getIds(),this._onRemove(e)),this.itemsData){var r=this.id;nw(bS).call(bS,this.itemListeners,(function(t,e){i.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,i=this;if(this.groupsData&&(nw(bS).call(bS,this.groupListeners,(function(t,e){i.groupsData.off(e,t)})),e=this.groupsData.getIds(),this.groupsData=null,this._onRemoveGroups(e)),t){if(!(t instanceof py||t instanceof my))throw new TypeError("Data must be an instance of DataSet or DataView");this.groupsData=t}else this.groupsData=null;if(this.groupsData){var n,r=this.groupsData;this.groupsData instanceof my&&(r=this.groupsData.getDataSet()),nw(n=r.get()).call(n,(function(t){var e;t.nestedGroups&&nw(e=t.nestedGroups).call(e,(function(e){var i=r.get(e);i.nestedInGroup=t.id,0==t.showNested&&(i.visible=!1),r.update(i)}))}));var o=this.id;nw(bS).call(bS,this.groupListeners,(function(t,e){i.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,i=this.itemsData.get(t);i&&this.options.onRemove(i,(function(i){i&&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?AT:this.groupsData?t.group:"__ungrouped__"}},{key:"_onUpdate",value:function(t){var i=this,n=this;nw(t).call(t,(function(t){var r,o=n.itemsData.get(t),s=n.items[t],a=o?n._getType(o):null,l=e.types[a];if(s&&(l&&s instanceof l?n._updateItem(s,o):(r=s.selected,n._removeItem(s),s=null)),!s&&o){if(!l)throw new TypeError('Unknown item type "'.concat(a,'"'));(s=new l(o,n.conversion,n.options)).id=t,n._addItem(s),r&&(i.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,i=this;nw(t).call(t,(function(t){var n=i.items[t];n&&(e++,i._removeItem(n))})),e&&(this._order(),this.body.emitter.emit("_change",{queue:!0}))}},{key:"_order",value:function(){nw(bS).call(bS,this.groups,(function(t){t.order()}))}},{key:"_onUpdateGroups",value:function(t){this._onAddGroups(t)}},{key:"_onAddGroups",value:function(t){var e=this;nw(t).call(t,(function(t){var i=e.groupsData.get(t),n=e.groups[t];if(n)n.setData(i);else{if("__ungrouped__"==t||t==AT)throw new Error("Illegal group id. ".concat(t," is a reserved id."));var r=sM(e.options);for(var o in bS.extend(r,{height:null}),n=new cT(t,i,e),e.groups[t]=n,e.items)if(e.items.hasOwnProperty(o)){var s=e.items[o];s.data.group==t&&n.add(s)}n.order(),n.show()}})),this.body.emitter.emit("_change",{queue:!0})}},{key:"_onRemoveGroups",value:function(t){var e=this;nw(t).call(t,(function(t){var i=e.groups[t];i&&(i.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=!bS.equalArray(t,this.groupIds);if(e){var i=this.groups;nw(t).call(t,(function(t){i[t].hide()})),nw(t).call(t,(function(t){i[t].show()})),this.groupIds=t}return e}return!1}},{key:"_orderNestedGroups",value:function(t){var e=this;return function t(e,i){var n=[];return nw(i).call(i,(function(i){if(n.push(i),e.groupsData.get(i).nestedGroups){var r,o=pS(r=e.groupsData.get({filter:function(t){return t.nestedInGroup==i},order:e.options.groupOrder})).call(r,(function(t){return t.id}));n=HS(n).call(n,t(e,o))}})),n}(this,vw(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),i=this.groups[e];i?i&&i.data&&i.data.showNested&&(t.groupShowing=!0):t.groupShowing=!1,i&&i.add(t)}},{key:"_updateItem",value:function(t,e){t.setData(e);var i=this.getGroupId(t.data),n=this.groups[i];n?n&&n.data&&n.data.showNested&&(t.groupShowing=!0):t.groupShowing=!1}},{key:"_removeItem",value:function(t){var e,i;t.hide(),delete this.items[t.id];var n=YD(e=this.selection).call(e,t.id);-1!=n&&TD(i=this.selection).call(i,n,1),t.parent&&t.parent.remove(t),null!=this.popup&&this.popup.hide()}},{key:"_constructByEndArray",value:function(t){for(var e=[],i=0;i<t.length;i++)t[i]instanceof vT&&e.push(t[i]);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 i,n=this.touchParams.item||null,r=this;if(n&&(n.selected||this.options.itemsAlwaysDraggable.item)){if(this.options.editable.overrideItems&&!this.options.editable.updateTime&&!this.options.editable.updateGroup)return;if(null!=n.editable&&!n.editable.updateTime&&!n.editable.updateGroup&&!this.options.editable.overrideItems)return;var o=this.touchParams.dragLeftItem,s=this.touchParams.dragRightItem;if(this.touchParams.itemIsDragging=!0,this.touchParams.selectedItem=n,o)i={item:o,initialX:t.center.x,dragLeft:!0,data:this._cloneItemData(n.data)},this.touchParams.itemProps=[i];else if(s)i={item:s,initialX:t.center.x,dragRight:!0,data:this._cloneItemData(n.data)},this.touchParams.itemProps=[i];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(n.data.group),l=this.options.itemsAlwaysDraggable.item&&!n.selected?[n.id]:this.getSelection();this.touchParams.itemProps=pS(l).call(l,(function(i){var n=r.items[i],o=r._getGroupIndex(n.data.group);return{item:n,initialX:t.center.x,groupOffset:a-o,data:e._cloneItemData(n.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,i=this.dom.frame.getBoundingClientRect(),n=this.options.rtl?i.right-t.center.x+10:t.center.x-i.left-10,r=this.body.util.toTime(n),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=jM();l[this.itemsData.idProp]=u;var h=this.groupFromTarget(t);h&&(l.group=h.groupId);var c=new vT(l,this.conversion,this.options);c.id=u,c.data=this._cloneItemData(l),this._addItem(c),this.touchParams.selectedItem=c;var d={item:c,initialX:t.center.x,data:c.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 i=this.body.dom.centerContainer,n=i.getBoundingClientRect();this.popup.setPosition(t.center.x-n.left+i.offsetLeft,t.center.y-n.top+i.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(),h=this.body.util.getStep(),c=this.touchParams.selectedItem,d=(this.options.editable.overrideItems||null==c.editable)&&this.options.editable.updateGroup||!this.options.editable.overrideItems&&null!=c.editable&&c.editable.updateGroup,f=null;if(d&&c&&null!=c.data.group){var p=o.groupFromTarget(t);p&&(f=this._getGroupIndex(p.groupId))}nw(r=this.touchParams.itemProps).call(r,(function(i){var n,r,a,p,m,v=o.body.util.toTime(t.center.x-l),g=o.body.util.toTime(i.initialX-l);n=e.options.rtl?-(v-g):v-g;var y=e._cloneItemData(i.item.data);if(null==i.item.editable||i.item.editable.updateTime||i.item.editable.updateGroup||o.options.editable.overrideItems){if((e.options.editable.overrideItems||null==c.editable)&&e.options.editable.updateTime||!e.options.editable.overrideItems&&null!=c.editable&&c.editable.updateTime)if(i.dragLeft)e.options.rtl?null!=y.end&&(a=bS.convert(i.data.end,"Date"),m=new Date(a.valueOf()+n),y.end=s?s(m,u,h):m):null!=y.start&&(r=bS.convert(i.data.start,"Date"),p=new Date(r.valueOf()+n),y.start=s?s(p,u,h):p);else if(i.dragRight)e.options.rtl?null!=y.start&&(r=bS.convert(i.data.start,"Date"),p=new Date(r.valueOf()+n),y.start=s?s(p,u,h):p):null!=y.end&&(a=bS.convert(i.data.end,"Date"),m=new Date(a.valueOf()+n),y.end=s?s(m,u,h):m);else if(null!=y.start)if(r=bS.convert(i.data.start,"Date").valueOf(),p=new Date(r+n),null!=y.end){var b=(a=bS.convert(i.data.end,"Date")).valueOf()-r.valueOf();y.start=s?s(p,u,h):p,y.end=new Date(y.start.valueOf()+b)}else y.start=s?s(p,u,h):p;if(d&&!i.dragLeft&&!i.dragRight&&null!=f&&null!=y.group){var _=f-i.groupOffset;_=Math.max(0,_),_=Math.min(o.groupIds.length-1,_),y.group=o.groupIds[_]}y=e._cloneItemData(y),o.options.onMoving(y,(function(t){t&&i.item.setData(e._cloneItemData(t,"Date"))}))}})),this.body.emitter.emit("_change")}}},{key:"_moveToGroup",value:function(t,e){var i=this.groups[e];if(i&&i.groupId!=t.data.group){var n=t.parent;n.remove(t),n.order(),t.data.group=i.groupId,i.add(t),i.order()}}},{key:"_onDragEnd",value:function(t){var e=this;if(this.touchParams.itemIsDragging=!1,this.touchParams.itemProps){t.stopPropagation();var i=this,n=this.touchParams.itemProps;this.touchParams.itemProps=null,nw(n).call(n,(function(t){var n=t.item.id;if(null!=i.itemsData.get(n)){var r=e._cloneItemData(t.item.data);i.options.onMove(r,(function(r){r?(r[e.itemsData.idProp]=n,e.itemsData.update(r)):(t.item.setData(t.data),i.body.emitter.emit("_change"))}))}else i.options.onAdd(t.item.data,(function(e){i._removeItem(t.item),e&&i.itemsData.add(e),i.body.emitter.emit("_change")}))}))}}},{key:"_onGroupClick",value:function(t){var e=this,i=this.groupFromTarget(t);_w((function(){e.toggleGroupShowNested(i)}),1)}},{key:"toggleGroupShowNested",value:function(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(t&&t.nestedGroups){var n=this.groupsData.getDataSet();t.showNested=null!=i?!!i:!t.showNested;var r=n.get(t.groupId);r.showNested=t.showNested;for(var 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=HS(s).call(s,u.nestedGroups))}s.length>0&&(o=HS(o).call(o,s))}var h=pS(e=n.get(o)).call(e,(function(t){return null==t.visible&&(t.visible=!0),t.visible=!!r.showNested,t}));n.update(HS(h).call(h,r)),r.showNested?(bS.removeClassName(t.dom.label,"collapsed"),bS.addClassName(t.dom.label,"expanded")):(bS.removeClassName(t.dom.label,"expanded"),bS.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;this.groupsData instanceof my&&(e=this.groupsData.getDataSet());var i=this.groupFromTarget(t);if(i&&i.height!=this.groupTouchParams.group.height){var n=i.top<this.groupTouchParams.group.top,r=t.center?t.center.y:t.clientY,o=i.dom.foreground.getBoundingClientRect(),s=this.groupTouchParams.group.height;if(n){if(o.top+s<r)return}else{var a=i.height;if(o.top+a-s>r)return}}if(i&&i!=this.groupTouchParams.group){var l=e.get(i.groupId),u=e.get(this.groupTouchParams.group.groupId);u&&l&&(this.options.groupOrderSwap(u,l,e),e.update(u),e.update(l));var h=e.getIds({order:this.options.groupOrder});if(!bS.equalArray(h,this.groupTouchParams.originalOrder))for(var c=this.groupTouchParams.originalOrder,d=this.groupTouchParams.group.groupId,f=Math.min(c.length,h.length),p=0,m=0,v=0;p<f;){for(;p+m<f&&p+v<f&&h[p+m]==c[p+v];)p++;if(p+m>=f)break;if(h[p+m]==d)m=1;else if(c[p+v]==d)v=1;else{var g=YD(h).call(h,c[p+v]),y=e.get(h[p+m]),b=e.get(c[p+v]);this.options.groupOrderSwap(y,b,e),e.update(y),e.update(b);var _=h[p+m];h[p+m]=c[p+v],h[g]=_,p++}}}}}},{key:"_onGroupDragEnd",value:function(t){if(this.groupTouchParams.isDragging=!1,this.options.groupEditable.order&&this.groupTouchParams.group){t.stopPropagation();var e=this,i=e.groupTouchParams.group.groupId,n=e.groupsData.getDataSet(),r=bS.extend({},n.get(i));e.options.onMoveGroup(r,(function(t){if(t)t[n._idProp]=i,n.update(t);else{var r=n.getIds({order:e.options.groupOrder});if(!bS.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=YD(r).call(r,o[a]),u=n.get(r[a]),h=n.get(o[a]);e.options.groupOrderSwap(u,h,n),n.update(u),n.update(h);var c=r[a];r[a]=o[a],r[l]=c,a++}}})),e.body.emitter.emit("groupDragged",{groupId:i}),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),i=t.srcEvent&&t.srcEvent.shiftKey;if(e||i)this._onMultiSelectItem(t);else{var n=this.getSelection(),r=this.itemFromTarget(t),o=r&&r.selectable?[r.id]:[];this.setSelection(o);var s=this.getSelection();(s.length>0||n.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 i=e.getTitle();if(this.options.showTooltips&&i){null==this.popup&&(this.popup=new yT(this.body.dom.root,this.options.tooltip.overflowMethod||"flip")),this.popup.setText(i);var n=this.body.dom.centerContainer,r=n.getBoundingClientRect();this.popup.setPosition(t.clientX-r.left+n.offsetLeft,t.clientY-r.top+n.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,i=e.getBoundingClientRect();this.popup.setPosition(t.clientX-i.left+e.offsetLeft,t.clientY-i.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 i=e.itemsData.get(t.id);this.options.onUpdate(i,(function(t){t&&e.itemsData.update(t)}))}}}},{key:"_onDropObjectOnItem",value:function(t){var e=this.itemFromTarget(t),i=JSON.parse(t.dataTransfer.getData("text"));this.options.onDropObjectOnItem(i,e)}},{key:"_onAddItem",value:function(t){if(this.options.selectable&&this.options.editable.add){var e,i,n=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?((i=JSON.parse(t.dataTransfer.getData("text"))).content=i.content?i.content:"new item",i.start=i.start?i.start:r?r(a,l,u):a,i.type=i.type||"box",i[this.itemsData.idProp]=i.id||jM(),"range"!=i.type||i.end||(e=this.body.util.toTime(s+this.props.width/5),i.end=r?r(e,l,u):e)):((i={start:r?r(a,l,u):a,content:"new item"})[this.itemsData.idProp]=jM(),"range"===this.options.type&&(e=this.body.util.toTime(s+this.props.width/5),i.end=r?r(e,l,u):e));var h=this.groupFromTarget(t);h&&(i.group=h.groupId),i=this._cloneItemData(i),this.options.onAdd(i,(function(e){e&&(n.itemsData.add(e),"drop"==t.type&&n.setSelection([e.id]))}))}}},{key:"_onMultiSelectItem",value:function(t){var i=this;if(this.options.selectable){var n=this.itemFromTarget(t);if(n){var r=this.options.multiselect?this.getSelection():[];if((t.srcEvent&&t.srcEvent.shiftKey||!1||this.options.sequentialSelection)&&this.options.multiselect){var o=this.itemsData.get(n.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(n.id);var a=e._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],h=u.data.start,c=void 0!==u.data.end?u.data.end:h;!(h>=a.min&&c<=a.max)||this.options.multiselectPerGroup&&s!=this.itemsData.get(u.id).group||u instanceof gT||r.push(u.id)}}else{var d=YD(r).call(r,n.id);-1==d?r.push(n.id):TD(r).call(r,d,1)}var f=vw(r).call(r,(function(t){return i.getItemById(t).selectable}));this.setSelection(f),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,i=this.groupIds;i.length<=0&&this.groupsData&&(i=this.groupsData.getIds({order:this.options.groupOrder}));for(var n=0;n<i.length;n++){var r=i[n],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(n===this.groupIds.length-1&&e>a.top)return o}else if(0===n&&e<a.top+s.offset)return o}return null}},{key:"_cloneItemData",value:function(t,e){var i=bS.extend({},t);return e||(e=this.itemsData.type),null!=i.start&&(i.start=bS.convert(i.start,e&&e.start||"Date")),null!=i.end&&(i.end=bS.convert(i.end,e&&e.end||"Date")),i}},{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 i=!0,n=!1,r=void 0;try{for(var o,s=fM(e);!(i=(o=s.next()).done);i=!0){o.value.attach()}}catch(t){n=!0,r=t}finally{try{i||null==s.return||s.return()}finally{if(n)throw r}}this.clusters=e}this._updateClusters(e)}}}},{key:"_detachAllClusters",value:function(){if(this.options.cluster&&this.clusters&&this.clusters.length){var t=!0,e=!1,i=void 0;try{for(var n,r=fM(this.clusters);!(t=(n=r.next()).done);t=!0){n.value.detach()}}catch(t){e=!0,i=t}finally{try{t||null==r.return||r.return()}finally{if(e)throw i}}}}},{key:"_updateClusters",value:function(t){if(this.clusters&&this.clusters.length){var e,i=new oM(pS(t).call(t,(function(t){return t.id}))),n=vw(e=this.clusters).call(e,(function(t){return!i.has(t.id)})),r=!1,o=!0,s=!1,a=void 0;try{for(var l,u=fM(n);!(o=(l=u.next()).done);o=!0){var h,c,d=l.value,f=YD(h=this.selection).call(h,d.id);if(-1!==f)d.unselect(),TD(c=this.selection).call(c,f,1),r=!0}}catch(t){s=!0,a=t}finally{try{o||null==u.return||u.return()}finally{if(s)throw a}}if(r){var p=this.getSelection();this.body.emitter.emit("select",{items:p,event:event})}}this.clusters=t||[]}}],[{key:"_getItemRange",value:function(t){var e=null,i=null;return nw(t).call(t,(function(t){(null==i||t.start<i)&&(i=t.start),null!=t.end?(null==e||t.end>e)&&(e=t.end):(null==e||t.start>e)&&(e=t.start)})),{min:i,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}}]),e}(GS);LT.types={background:gT,box:pT,range:vT,point:mT},LT.prototype._onAdd=LT.prototype._onUpdate;var IT,jT=!1,YT="background: #FFeeee; color: #dd0000",NT=function(){function t(){Pw(this,t)}return Iw(t,null,[{key:"validate",value:function(e,i,n){jT=!1,IT=i;var r=i;return void 0!==n&&(r=i[n]),t.parse(e,r,[]),jT}},{key:"parse",value:function(e,i,n){for(var r in e)e.hasOwnProperty(r)&&t.check(r,e,i,n)}},{key:"check",value:function(e,i,n,r){if(void 0!==n[e]||void 0!==n.__any__){var o=e,s=!0;void 0===n[e]&&void 0!==n.__any__&&(o="__any__",s="object"===t.getType(i[e]));var a=n[o];s&&void 0!==a.__type__&&(a=a.__type__),t.checkFields(e,i,n,o,a,r)}else t.getSuggestion(e,n,r)}},{key:"checkFields",value:function(e,i,n,r,o,s){var a=function(i){console.log("%c"+i+t.printLocation(s,e),YT)},l=t.getType(i[e]),u=o[l];void 0!==u?"array"===t.getType(u)&&-1===YD(u).call(u,i[e])?(a('Invalid option detected in "'+e+'". Allowed values are:'+t.print(u)+' not "'+i[e]+'". '),jT=!0):"object"===l&&"__any__"!==r&&(s=bS.copyAndExtendArray(s,e),t.parse(i[e],n[r],s)):void 0===o.any&&(a('Invalid type received for "'+e+'". Expected: '+t.print(eS(o))+". Received ["+l+'] "'+i[e]+'"'),jT=!0)}},{key:"getType",value:function(t){var e=Ak(t);return"object"===e?null===t?"null":t instanceof Boolean?"boolean":t instanceof Number?"number":t instanceof String?"string":Cw(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,i,n){var r,o=t.findInOptions(e,i,n,!1),s=t.findInOptions(e,IT,[],!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(eS(i))+t.printLocation(n,e),console.log('%cUnknown option detected: "'+e+'"'+r,YT),jT=!0}},{key:"findInOptions",value:function(e,i,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=1e9,s="",a=[],l=e.toLowerCase(),u=void 0;for(var h in i){var c=void 0;if(void 0!==i[h].__type__&&!0===r){var d=t.findInOptions(e,i[h],bS.copyAndExtendArray(n,h));o>d.distance&&(s=d.closestMatch,a=d.path,o=d.distance,u=d.indexMatch)}else{var f;-1!==YD(f=h.toLowerCase()).call(f,l)&&(u=h),o>(c=t.levenshteinDistance(e,h))&&(s=h,a=bS.copyArray(n),o=c)}}return{closestMatch:s,path:a,distance:o,indexMatch:u}}},{key:"printLocation",value:function(t,e){for(var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Problem value found at: \n",n="\n\n"+i+"options = {\n",r=0;r<t.length;r++){for(var o=0;o<r+1;o++)n+=" ";n+=t[r]+": {\n"}for(var s=0;s<t.length+1;s++)n+=" ";n+=e+"\n";for(var a=0;a<t.length+1;a++){for(var l=0;l<t.length-a;l++)n+=" ";n+="}\n"}return n+"\n\n"}},{key:"print",value:function(t){return NS(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 i,n,r=[];for(i=0;i<=e.length;i++)r[i]=[i];for(n=0;n<=t.length;n++)r[0][n]=n;for(i=1;i<=e.length;i++)for(n=1;n<=t.length;n++)e.charAt(i-1)==t.charAt(n-1)?r[i][n]=r[i-1][n-1]:r[i][n]=Math.min(r[i-1][n-1]+1,Math.min(r[i][n-1]+1,r[i-1][n]+1));return r[e.length][t.length]}}]),t}(),RT="string",FT="boolean",HT="number",GT="object",WT={configure:{enabled:{boolean:FT},filter:{boolean:FT,function:"function"},container:{dom:"dom"},__type__:{object:GT,boolean:FT,function:"function"}},align:{string:RT},alignCurrentTime:{string:RT,undefined:"undefined"},rtl:{boolean:FT,undefined:"undefined"},rollingMode:{follow:{boolean:FT},offset:{number:HT,undefined:"undefined"},__type__:{object:GT}},onTimeout:{timeoutMs:{number:HT},callback:{function:"function"},__type__:{object:GT}},verticalScroll:{boolean:FT,undefined:"undefined"},horizontalScroll:{boolean:FT,undefined:"undefined"},autoResize:{boolean:FT},throttleRedraw:{number:HT},clickToUse:{boolean:FT},dataAttributes:{string:RT,array:"array"},editable:{add:{boolean:FT,undefined:"undefined"},remove:{boolean:FT,undefined:"undefined"},updateGroup:{boolean:FT,undefined:"undefined"},updateTime:{boolean:FT,undefined:"undefined"},overrideItems:{boolean:FT,undefined:"undefined"},__type__:{boolean:FT,object:GT}},end:{number:HT,date:"date",string:RT,moment:"moment"},format:{minorLabels:{millisecond:{string:RT,undefined:"undefined"},second:{string:RT,undefined:"undefined"},minute:{string:RT,undefined:"undefined"},hour:{string:RT,undefined:"undefined"},weekday:{string:RT,undefined:"undefined"},day:{string:RT,undefined:"undefined"},week:{string:RT,undefined:"undefined"},month:{string:RT,undefined:"undefined"},year:{string:RT,undefined:"undefined"},__type__:{object:GT,function:"function"}},majorLabels:{millisecond:{string:RT,undefined:"undefined"},second:{string:RT,undefined:"undefined"},minute:{string:RT,undefined:"undefined"},hour:{string:RT,undefined:"undefined"},weekday:{string:RT,undefined:"undefined"},day:{string:RT,undefined:"undefined"},week:{string:RT,undefined:"undefined"},month:{string:RT,undefined:"undefined"},year:{string:RT,undefined:"undefined"},__type__:{object:GT,function:"function"}},__type__:{object:GT}},moment:{function:"function"},groupHeightMode:{string:RT},groupOrder:{string:RT,function:"function"},groupEditable:{add:{boolean:FT,undefined:"undefined"},remove:{boolean:FT,undefined:"undefined"},order:{boolean:FT,undefined:"undefined"},__type__:{boolean:FT,object:GT}},groupOrderSwap:{function:"function"},height:{string:RT,number:HT},hiddenDates:{start:{date:"date",number:HT,string:RT,moment:"moment"},end:{date:"date",number:HT,string:RT,moment:"moment"},repeat:{string:RT},__type__:{object:GT,array:"array"}},itemsAlwaysDraggable:{item:{boolean:FT,undefined:"undefined"},range:{boolean:FT,undefined:"undefined"},__type__:{boolean:FT,object:GT}},limitSize:{boolean:FT},locale:{string:RT},locales:{__any__:{any:"any"},__type__:{object:GT}},longSelectPressTime:{number:HT},margin:{axis:{number:HT},item:{horizontal:{number:HT,undefined:"undefined"},vertical:{number:HT,undefined:"undefined"},__type__:{object:GT,number:HT}},__type__:{object:GT,number:HT}},max:{date:"date",number:HT,string:RT,moment:"moment"},maxHeight:{number:HT,string:RT},maxMinorChars:{number:HT},min:{date:"date",number:HT,string:RT,moment:"moment"},minHeight:{number:HT,string:RT},moveable:{boolean:FT},multiselect:{boolean:FT},multiselectPerGroup:{boolean:FT},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:RT,undefined:"undefined"},item:{string:RT,undefined:"undefined"},__type__:{string:RT,object:GT}},selectable:{boolean:FT},sequentialSelection:{boolean:FT},showCurrentTime:{boolean:FT},showMajorLabels:{boolean:FT},showMinorLabels:{boolean:FT},showWeekScale:{boolean:FT},stack:{boolean:FT},stackSubgroups:{boolean:FT},cluster:{maxItems:{number:HT,undefined:"undefined"},titleTemplate:{string:RT,undefined:"undefined"},clusterCriteria:{function:"function",undefined:"undefined"},showStipes:{boolean:FT,undefined:"undefined"},fitOnDoubleClick:{boolean:FT,undefined:"undefined"},__type__:{boolean:FT,object:GT}},snap:{function:"function",null:"null"},start:{date:"date",number:HT,string:RT,moment:"moment"},template:{function:"function"},loadingScreenTemplate:{function:"function"},groupTemplate:{function:"function"},visibleFrameTemplate:{string:RT,function:"function"},showTooltips:{boolean:FT},tooltip:{followMouse:{boolean:FT},overflowMethod:{string:["cap","flip","none"]},delay:{number:HT},template:{function:"function"},__type__:{object:GT}},tooltipOnItemUpdateTime:{template:{function:"function"},__type__:{boolean:FT,object:GT}},timeAxis:{scale:{string:RT,undefined:"undefined"},step:{number:HT,undefined:"undefined"},__type__:{object:GT}},type:{string:RT},width:{string:RT,number:HT},preferZoom:{boolean:FT},zoomable:{boolean:FT},zoomKey:{string:["ctrlKey","altKey","shiftKey","metaKey",""]},zoomFriction:{number:HT},zoomMax:{number:HT},zoomMin:{number:HT},__type__:{object:GT}},zT={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]}};Tb({target:"Array",proto:!0},{fill:function(t){for(var e=Cb(this),i=Xb(e.length),n=arguments.length,r=Jb(n>1?arguments[1]:void 0,i),o=n>2?arguments[2]:void 0,s=void 0===o?i:Jb(o,i);s>r;)e[r++]=t;return e}});var VT=Q_("Array").fill,UT=Array.prototype,BT=function(t){var e=t.fill;return t===UT||t instanceof Array&&e===UT.fill?VT:e},XT={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"},qT=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;Pw(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 Iw(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 XT[t]}},{key:"setColor",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("none"!==t){var i,n=this._isColorString(t);if(void 0!==n&&(t=n),!0===bS.isString(t)){if(!0===bS.isValidRGB(t)){var r=t.substr(4).substr(0,t.length-5).split(",");i={r:r[0],g:r[1],b:r[2],a:1}}else if(!0===bS.isValidRGBA(t)){var o=t.substr(5).substr(0,t.length-6).split(",");i={r:o[0],g:o[1],b:o[2],a:o[3]}}else if(!0===bS.isValidHex(t)){var s=bS.hexToRGB(t);i={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";i={r:t.r,g:t.g,b:t.b,a:a}}if(void 0===i)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: "+NS(t));this._setColor(i,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,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];!0===e&&(this.previousColor=bS.extend({},this.color)),!0===this.applied&&this.updateCallback(this.initialColor),this.frame.style.display="none",_w((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){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];!0===e&&(this.initialColor=bS.extend({},t)),this.color=t;var i=bS.RGBToHSV(t.r,t.g,t.b),n=2*Math.PI,r=this.r*i.s,o=this.centerCoordinates.x+r*Math.sin(n*i.h),s=this.centerCoordinates.y+r*Math.cos(n*i.h);this.colorPickerSelector.style.left=o-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=s-.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=bS.RGBToHSV(this.color.r,this.color.g,this.color.b);e.v=t/100;var i=bS.HSVToRGB(e.h,e.s,e.v);i.a=this.color.a,this.color=i,this._updatePicker()}},{key:"_updatePicker",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.color,e=bS.RGBToHSV(t.r,t.g,t.b),i=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(i.webkitBackingStorePixelRatio||i.mozBackingStorePixelRatio||i.msBackingStorePixelRatio||i.oBackingStorePixelRatio||i.backingStorePixelRatio||1)),i.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var n=this.colorPickerCanvas.clientWidth,r=this.colorPickerCanvas.clientHeight;i.clearRect(0,0,n,r),i.putImageData(this.hueCircle,0,0),i.fillStyle="rgba(0,0,0,"+(1-e.v)+")",i.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),BT(i).call(i),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,i,n;if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){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=Mw(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=Mw(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=Mw(i=this._save).call(i,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerHTML="load last",this.loadButton.onclick=Mw(n=this._loadLast).call(n,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:"_bindHammer",value:function(){var t=this;this.drag={},this.pinch={},this.hammer=new fO(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),pO(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,i,n,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(n=0;n<360;n++)for(r=0;r<this.r;r++)e=this.centerCoordinates.x+r*Math.sin(l*n),i=this.centerCoordinates.y+r*Math.cos(l*n),a=bS.HSVToRGB(n*(1/360),r*u,1),t.fillStyle="rgb("+a.r+","+a.g+","+a.b+")",t.fillRect(e-.5,i-.5,2,2);t.strokeStyle="rgba(0,0,0,1)",t.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),t.stroke(),this.hueCircle=t.getImageData(0,0,o,s)}this.generated=!0}},{key:"_moveSelector",value:function(t){var e=this.colorPickerDiv.getBoundingClientRect(),i=t.center.x-e.left,n=t.center.y-e.top,r=.5*this.colorPickerDiv.clientHeight,o=.5*this.colorPickerDiv.clientWidth,s=i-o,a=n-r,l=Math.atan2(s,a),u=.98*Math.min(Math.sqrt(s*s+a*a),o),h=Math.cos(l)*u+r,c=Math.sin(l)*u+o;this.colorPickerSelector.style.top=h-.5*this.colorPickerSelector.clientHeight+"px",this.colorPickerSelector.style.left=c-.5*this.colorPickerSelector.clientWidth+"px";var d=l/(2*Math.PI);d=d<0?d+1:d;var f=u/this.r,p=bS.RGBToHSV(this.color.r,this.color.g,this.color.b);p.h=d,p.s=f;var m=bS.HSVToRGB(p.h,p.s,p.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}(),ZT=function(){function t(e,i,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;Pw(this,t),this.parent=e,this.changedOptions=[],this.container=i,this.allowCreation=!1,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},bS.extend(this.options,this.defaultOptions),this.configureOptions=n,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new qT(r),this.wrapper=void 0}return Iw(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(t instanceof Array)this.options.filter=t.join();else if("object"===Ak(t)){if(null==t)throw new TypeError("options cannot be null");void 0!==t.container&&(this.options.container=t.container),void 0!==vw(t)&&(this.options.filter=vw(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===vw(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=vw(this.options),e=0,i=!1;for(var n in this.configureOptions)this.configureOptions.hasOwnProperty(n)&&(this.allowCreation=!1,i=!1,"function"==typeof t?i=(i=t(n,[]))||this._handleObject(this.configureOptions[n],[n],!0):!0!==t&&-1===YD(t).call(t,n)||(i=!0),!1!==i&&(this.allowCreation=!0,e>0&&this._makeItem([]),this._makeHeader(n),this._handleObject(this.configureOptions[n],[n])),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,i=0;i<t.length;i++){if(void 0===e[t[i]]){e=void 0;break}e=e[t[i]]}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 i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];return nw(n).call(n,(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=t,this._makeItem([],e)}},{key:"_makeLabel",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=document.createElement("div");return n.className="vis-configuration vis-config-label vis-config-s"+e.length,n.innerHTML=!0===i?"<i><b>"+t+":</b></i>":t+":",n}},{key:"_makeDropdown",value:function(t,e,i){var n=document.createElement("select");n.className="vis-configuration vis-config-select";var r=0;void 0!==e&&-1!==YD(t).call(t,e)&&(r=YD(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],n.appendChild(s)}var a=this;n.onchange=function(){a._update(this.value,i)};var l=this._makeLabel(i[i.length-1],i);this._makeItem(i,l,n)}},{key:"_makeRange",value:function(t,e,i){var n=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){e<0&&1.2*e<r?(a.min=Math.ceil(1.2*e),u=a.min,l="range increased"):e/1.2<r&&(a.min=Math.ceil(e/1.2),u=a.min,l="range increased"),1.2*e>o&&1!==o&&(a.max=Math.ceil(1.2*e),u=a.max,l="range increased"),a.value=e}else a.value=n;var h=document.createElement("input");h.className="vis-configuration vis-config-rangeinput",h.value=Number(a.value);var c=this;a.onchange=function(){h.value=this.value,c._update(Number(this.value),i)},a.oninput=function(){h.value=this.value};var d=this._makeLabel(i[i.length-1],i),f=this._makeItem(i,d,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 i=this;if(!0===this.initialized&&!0===this.allowCreation&&this.popupCounter<this.popupLimit){var n=document.createElement("div");n.id="vis-configuration-popup",n.className="vis-configuration-popup",n.innerHTML=t,n.onclick=function(){i._removePopup()},this.popupCounter+=1,this.popupDiv={html:n,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=_w((function(){t.popupDiv.html.style.opacity=0}),1500),this.popupDiv.deleteTimeout=_w((function(){t._removePopup()}),1800)}}},{key:"_makeCheckbox",value:function(t,e,i){var n=document.createElement("input");n.type="checkbox",n.className="vis-configuration vis-config-checkbox",n.checked=t,void 0!==e&&(n.checked=e,e!==t&&("object"===Ak(t)?e!==t.enabled&&this.changedOptions.push({path:i,value:e}):this.changedOptions.push({path:i,value:e})));var r=this;n.onchange=function(){r._update(this.checked,i)};var o=this._makeLabel(i[i.length-1],i);this._makeItem(i,o,n)}},{key:"_makeTextInput",value:function(t,e,i){var n=document.createElement("input");n.type="text",n.className="vis-configuration vis-config-text",n.value=e,e!==t&&this.changedOptions.push({path:i,value:e});var r=this;n.onchange=function(){r._update(this.value,i)};var o=this._makeLabel(i[i.length-1],i);this._makeItem(i,o,n)}},{key:"_makeColorField",value:function(t,e,i){var n=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(){n._showColorPicker(e,o,i)};var s=this._makeLabel(i[i.length-1],i);this._makeItem(i,s,o)}},{key:"_showColorPicker",value:function(t,e,i){var n=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,n._update(r,i)})),this.colorPicker.setCloseCallback((function(){e.onclick=function(){n._showColorPicker(t,e,i)}}))}},{key:"_handleObject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=!1,r=vw(this.options),o=!1;for(var s in t)if(t.hasOwnProperty(s)){n=!0;var a=t[s],l=bS.copyAndExtendArray(e,s);if("function"==typeof r&&!1===(n=r(s,e))&&!(a instanceof Array)&&"string"!=typeof a&&"boolean"!=typeof a&&a instanceof Object&&(this.allowCreation=!1,n=this._handleObject(a,l,!0),this.allowCreation=!1===i),!1!==n){o=!0;var u=this._getValue(l);if(a instanceof Array)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 h=!0;if(-1!==YD(e).call(e,"physics")&&this.moduleOptions.physics.solver!==s&&(h=!1),!0===h)if(void 0!==a.enabled){var c=bS.copyAndExtendArray(l,"enabled"),d=this._getValue(c);if(!0===d){var f=this._makeLabel(s,l,!0);this._makeItem(l,f),o=this._handleObject(a,l)||o}else this._makeCheckbox(a,d,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,i){"string"==typeof t[0]&&"color"===t[0]?(this._makeColorField(t,e,i),t[1]!==e&&this.changedOptions.push({path:i,value:e})):"string"==typeof t[0]?(this._makeDropdown(t,e,i),t[0]!==e&&this.changedOptions.push({path:i,value:e})):"number"==typeof t[0]&&(this._makeRange(t,e,i),t[0]!==e&&this.changedOptions.push({path:i,value:Number(e)}))}},{key:"_update",value:function(t,e){var i=this._constructOptions(t,e);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",i),this.initialized=!0,this.parent.setOptions(i)}},{key:"_constructOptions",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=i;t="false"!==(t="true"===t||t)&&t;for(var r=0;r<e.length;r++)"global"!==e[r]&&(void 0===n[e[r]]&&(n[e[r]]={}),r!==e.length-1?n=n[e[r]]:n[e[r]]=t);return i}},{key:"_printOptions",value:function(){var t=this.getOptions();this.optionsContainer.innerHTML="<pre>var options = "+NS(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}(),JT=function(t){function e(t,i,n,r){var o,s,a,l,u,h,c,d;if(Pw(this,e),(d=Ik(this,Rk(e).call(this))).initTime=new Date,d.itemsDone=!1,!(Lk(d)instanceof e))throw new SyntaxError("Constructor must be called with the new operator");if(!(Cw(n)||n instanceof py||n instanceof my)&&n instanceof Object){var f=r;r=n,n=f}r&&r.throttleRedraw&&console.warn('Timeline option "throttleRedraw" is DEPRICATED and no longer supported. It will be removed in the next MAJOR release.');var p=Lk(d);if(d.defaultOptions={autoResize:!0,longSelectPressTime:251,orientation:{axis:"bottom",item:"bottom"},moment:Vk},d.options=bS.deepExtend({},d.defaultOptions),d._create(t),!r||r&&void 0===r.rtl){var m;d.dom.root.style.visibility="hidden";for(var v=d.dom.root;!m&&v;)m=window.getComputedStyle(v,null).direction,v=v.parentElement;d.options.rtl=m&&"rtl"==m.toLowerCase()}else d.options.rtl=r.rtl;r&&(r.rollingMode&&(d.options.rollingMode=r.rollingMode),r.onInitialDrawComplete&&(d.options.onInitialDrawComplete=r.onInitialDrawComplete),r.onTimeout&&(d.options.onTimeout=r.onTimeout),r.loadingScreenTemplate&&(d.options.loadingScreenTemplate=r.loadingScreenTemplate));var g=document.createElement("div");if(d.options.loadingScreenTemplate){var y,b=Mw(y=d.options.loadingScreenTemplate).call(y,Lk(d)),_=b(d.dom.loadingScreen);_ instanceof Object&&!(_ instanceof Element)?b(g):_ instanceof Element?(g.innerHTML="",g.appendChild(_)):null!=_&&(g.innerHTML=_)}return d.dom.loadingScreen.appendChild(g),d.components=[],d.body={dom:d.dom,domProps:d.props,emitter:{on:Mw(o=d.on).call(o,Lk(d)),off:Mw(s=d.off).call(s,Lk(d)),emit:Mw(a=d.emit).call(a,Lk(d))},hiddenDates:[],util:{getScale:function(){return p.timeAxis.step.scale},getStep:function(){return p.timeAxis.step.step},toScreen:Mw(l=p._toScreen).call(l,p),toGlobalScreen:Mw(u=p._toGlobalScreen).call(u,p),toTime:Mw(h=p._toTime).call(h,p),toGlobalTime:Mw(c=p._toGlobalTime).call(c,p)}},d.range=new fD(d.body,d.options),d.components.push(d.range),d.body.range=d.range,d.timeAxis=new wO(d.body,d.options),d.timeAxis2=null,d.components.push(d.timeAxis),d.currentTime=new RO(d.body,d.options),d.components.push(d.currentTime),d.itemSet=new LT(d.body,d.options),d.components.push(d.itemSet),d.itemsData=null,d.groupsData=null,d.dom.root.onclick=function(t){p.emit("click",p.getEventProperties(t))},d.dom.root.ondblclick=function(t){p.emit("doubleClick",p.getEventProperties(t))},d.dom.root.oncontextmenu=function(t){p.emit("contextmenu",p.getEventProperties(t))},d.dom.root.onmouseover=function(t){p.emit("mouseOver",p.getEventProperties(t))},window.PointerEvent?(d.dom.root.onpointerdown=function(t){p.emit("mouseDown",p.getEventProperties(t))},d.dom.root.onpointermove=function(t){p.emit("mouseMove",p.getEventProperties(t))},d.dom.root.onpointerup=function(t){p.emit("mouseUp",p.getEventProperties(t))}):(d.dom.root.onmousemove=function(t){p.emit("mouseMove",p.getEventProperties(t))},d.dom.root.onmousedown=function(t){p.emit("mouseDown",p.getEventProperties(t))},d.dom.root.onmouseup=function(t){p.emit("mouseUp",p.getEventProperties(t))}),d.initialFitDone=!1,d.on("changed",(function(){if(null!=p.itemsData){if(!p.initialFitDone&&!p.options.rollingMode)if(p.initialFitDone=!0,null!=p.options.start||null!=p.options.end){if(null==p.options.start||null==p.options.end)var t=p.getItemRange();var e=null!=p.options.start?p.options.start:t.min,i=null!=p.options.end?p.options.end:t.max;p.setWindow(e,i,{animation:!1})}else p.fit({animation:!1});p.initialDrawDone||!p.initialRangeChangeDone&&(p.options.start||p.options.end)&&!p.options.rollingMode||(p.initialDrawDone=!0,p.itemSet.initialDrawDone=!0,p.dom.root.style.visibility="visible",p.dom.loadingScreen.parentNode.removeChild(p.dom.loadingScreen),p.options.onInitialDrawComplete&&_w((function(){return p.options.onInitialDrawComplete()}),0))}})),d.on("destroyTimeline",(function(){p.destroy()})),r&&d.setOptions(r),d.body.emitter.on("fit",(function(t){d._onFit(t),d.redraw()})),n&&d.setGroups(n),i&&d.setItems(i),d._redraw(),d}return zk(e,t),Iw(e,[{key:"_createConfigurator",value:function(){return new ZT(this,this.dom.container,zT)}},{key:"redraw",value:function(){this.itemSet&&this.itemSet.markDirty({refreshItems:!0}),this._redraw()}},{key:"setOptions",value:function(t){if(!0===NT.validate(t,WT)&&console.log("%cErrors have been found in the supplied options object.",YT),NO.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 i=this.getSelection();this.setItems(null),this.setItems(e.rawDS),this.setSelection(i)}}}},{key:"setItems",value:function(t){var e;this.itemsDone=!1,e=t?yS(t instanceof py||t instanceof my?t:new py(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;if(t){var i=function(t){return!1!==t.visible};e=t instanceof py||t instanceof my?new my(t,{filter:i}):new py(vw(t).call(t,i))}else e=null;this.groupsData instanceof my&&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 i=Cw(t)?t:[t],n=this.itemsData.get(i),r=null,o=null;if(nw(n).call(n,(function(t){var e=t.start.valueOf(),i="end"in t?t.end.valueOf():t.start.valueOf();(null===r||e<r)&&(r=e),(null===o||i>o)&&(o=i)})),null!==r&&null!==o){var s=this,a=this.itemSet.items[i[0]],l=-1*this._getScrollTop(),u=null,h=function(){var t=QT(s,a);t.shouldScroll&&t.itemTop!=u.itemTop&&(s._setScrollTop(-t.scrollOffset),s._redraw())},c=!e||void 0===e.zoom||e.zoom,d=(r+o)/2,f=c?1.1*(o-r):Math.max(this.range.end-this.range.start,1.1*(o-r)),p=!e||void 0===e.animation||e.animation;p||(u={shouldScroll:!1,scrollOffset:-1,itemTop:-1}),this.range.setRange(d-f/2,d+f/2,{animation:p},(function(){h(),_w(h,100)}),(function(t,e,i){var n=QT(s,a);if(!1!==n&&(u||(u=n),u.itemTop!=n.itemTop||u.shouldScroll)){u.itemTop!=n.itemTop&&n.shouldScroll&&(u=n,l=-1*s._getScrollTop());var r=l,o=u.scrollOffset,h=i?o:r+(o-r)*t;s._setScrollTop(-h),e||s._redraw()}}))}}}},{key:"fit",value:function(t,e){var i,n=!t||void 0===t.animation||t.animation;1===this.itemsData.length&&void 0===this.itemsData.get()[0].end?(i=this.getDataRange(),this.moveTo(i.min.valueOf(),{animation:n},e)):(i=this.getItemRange(),this.range.setRange(i.min,i.max,{animation:n},e))}},{key:"getItemRange",value:function(){var t=this,e=this.getDataRange(),i=null!==e.min?e.min.valueOf():null,n=null!==e.max?e.max.valueOf():null,r=null,o=null;if(null!=i&&null!=n){var s=n-i;s<=0&&(s=10);var a=s/this.props.center.width,l={},u=0;if(nw(bS).call(bS,this.itemSet.items,(function(t,e){if(t.groupShowing){l[e]=t.redraw(!0),u=l[e].length}})),u>0)for(var h=function(t){nw(bS).call(bS,l,(function(e){e[t]()}))},c=0;c<u;c++)h(c);if(nw(bS).call(bS,this.itemSet.items,(function(e){var s,l,u=$T(e),h=KT(e);t.options.rtl?(s=u-(e.getWidthRight()+10)*a,l=h+(e.getWidthLeft()+10)*a):(s=u-(e.getWidthLeft()+10)*a,l=h+(e.getWidthRight()+10)*a),s<i&&(i=s,r=e),l>n&&(n=l,o=e)})),r&&o){var d=r.getWidthLeft()+10,f=o.getWidthRight()+10,p=this.props.center.width-d-f;p>0&&(this.options.rtl?(i=$T(r)-f*s/p,n=KT(o)+d*s/p):(i=$T(r)-d*s/p,n=KT(o)+f*s/p))}}return{min:null!=i?new Date(i):null,max:null!=n?new Date(n):null}}},{key:"getDataRange",value:function(){var t,e=null,i=null;this.itemsData&&nw(t=this.itemsData).call(t,(function(t){var n=bS.convert(t.start,"Date").valueOf(),r=bS.convert(null!=t.end?t.end:t.start,"Date").valueOf();(null===e||n<e)&&(e=n),(null===i||r>i)&&(i=r)}));return{min:null!=e?new Date(e):null,max:null!=i?new Date(i):null}}},{key:"getEventProperties",value:function(t){var e=t.center?t.center.x:t.clientX,i=t.center?t.center.y:t.clientY,n=this.dom.centerContainer.getBoundingClientRect(),r=this.options.rtl?n.right-e:e-n.left,o=i-n.top,s=this.itemSet.itemFromTarget(t),a=this.itemSet.groupFromTarget(t),l=YO.customTimeFromTarget(t),u=this.itemSet.options.snap||null,h=this.body.util.getScale(),c=this.body.util.getStep(),d=this._toTime(r),f=u?u(d,h,c):d,p=bS.getTarget(t),m=null;return null!=s?m="item":null!=l?m="custom-time":bS.hasParent(p,this.timeAxis.dom.foreground)?m="axis":this.timeAxis2&&bS.hasParent(p,this.timeAxis2.dom.foreground)?m="axis":bS.hasParent(p,this.itemSet.dom.labelSet)?m="group-label":bS.hasParent(p,this.currentTime.bar)?m="current-time":bS.hasParent(p,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:f}}},{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(){NO.prototype._redraw.call(this)}},{key:"_onFit",value:function(t){var e=t.start,i=t.end,n=t.animation;i?this.range.setRange(e,i,{animation:n}):this.moveTo(e.valueOf(),{animation:n})}}]),e}(NO);function $T(t){return bS.convert(t.data.start,"Date").valueOf()}function KT(t){var e=null!=t.data.end?t.data.end:t.data.start;return bS.convert(e,"Date").valueOf()}function QT(t,e){if(!e.parent)return!1;var i=t.options.rtl?t.props.rightContainer.height:t.props.leftContainer.height,n=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(),h=o+l(),c=e.height;return h<u?o+i<=o+l()+c&&(o+=l()-t.itemSet.options.margin.item.vertical):h+c>u+i?o+=l()+c-i+t.itemSet.options.margin.item.vertical:s=!1,{shouldScroll:s,scrollOffset:o=Math.min(o,n-i),itemTop:h}}var tC=function(){function t(e,i,n,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(Pw(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=i,this.scale=1,this.minorStepIdx=-1,this.magnitudefactor=1,this.determineScale(),this.zeroAlign=a,this.autoScaleStart=n,this.autoScaleEnd=r,this.formattingFunction=l,n||r){var u=this,h=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};n&&(this._start-=2*this.magnitudefactor*this.minorSteps[this.minorStepIdx],this._start=h(this._start)),r&&(this._end+=this.magnitudefactor*this.minorSteps[this.minorStepIdx],this._end=h(this._end)),this.determineScale()}}return Iw(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,i=t>0?Math.round(Math.log(t)/Math.LN10):0;this.minorStepIdx=-1,this.magnitudefactor=Math.pow(10,i);var n=0;i<0&&(n=i);for(var r=!1,o=n;Math.abs(o)<=Math.abs(i);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(),i=(e-this._start%e)%e,n=this._start+i;this._end-n>1e-5;n+=e)n!=this._start&&t.push({major:this.is_major(n),y:this.convertValue(n),val:this.formatValue(n)});return t}},{key:"followScale",value:function(t){var e=this.minorStepIdx,i=this._start,n=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(),o())):(this.minorStepIdx=2,1==e?s():(s(),s())));for(var a=t.convertValue(0),l=t.getStep()*t.scale,u=!1,h=0;!u&&h++<5;){this.scale=l/(this.minorSteps[this.minorStepIdx]*this.magnitudefactor);var c=this.containerHeight/this.scale;this._start=i,this._end=this._start+c;var d=this._end*this.scale,f=this.magnitudefactor*this.majorSteps[this.minorStepIdx],p=this.getFirstMajor()-t.getFirstMajor();if(this.zeroAlign){var m=a-d;this._end+=m/this.scale,this._start=this._end-c}else this.autoScaleStart?(this._start-=p/this.scale,this._end=this._start+c):(this._start+=f-p/this.scale,this._end=this._start+c);if(!this.autoScaleEnd&&this._end>n+1e-5)s(),u=!1;else{if(!this.autoScaleStart&&this._start<i-1e-5){if(!(this.zeroAlign&&i>=0)){s(),u=!1;continue}console.warn("Can't adhere to given 'min' range, due to zeroalign")}this.autoScaleStart&&this.autoScaleEnd&&c<n-i?(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}(),eC=function(t){function e(t,i,n,r){var o;Pw(this,e),(o=Ik(this,Rk(e).call(this))).id=jM(),o.body=t,o.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(CS(t.toPrecision(3)))},title:{text:void 0,style:void 0}},right:{range:{min:void 0,max:void 0},format:function(t){return"".concat(CS(t.toPrecision(3)))},title:{text:void 0,style:void 0}}},o.linegraphOptions=r,o.linegraphSVG=n,o.props={},o.DOMelements={lines:{},labels:{},title:{}},o.dom={},o.scale=void 0,o.range={start:0,end:0},o.options=bS.extend({},o.defaultOptions),o.conversionFactor=1,o.setOptions(i),o.width=Number("".concat(o.options.width).replace("px","")),o.minWidth=o.width,o.height=o.linegraphSVG.getBoundingClientRect().height,o.hidden=!1,o.stepPixels=25,o.zeroCrossing=-1,o.amountOfSteps=-1,o.lineOffset=0,o.master=!0,o.masterAxis=null,o.svgElements={},o.iconsRemoved=!1,o.groups={},o.amountOfGroups=0,o._create(),null==o.scale&&o._redrawLabels(),o.framework={svg:o.svg,svgElements:o.svgElements,options:o.options,groups:o.groups};var s=Lk(o);return o.body.emitter.on("verticalDrag",(function(){s.dom.lineContainer.style.top="".concat(s.body.domProps.scrollTop,"px")})),o}return zk(e,t),Iw(e,[{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);bS.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;es(this.svgElements);var e=this.options.iconWidth,i=11.5;t="left"===this.options.orientation?4:this.width-e-4;var n=eS(this.groups);ZS(n).call(n,(function(t,e){return t<e?-1:1}));var r=!0,o=!1,s=void 0;try{for(var a,l=fM(n);!(r=(a=l.next()).done);r=!0){var u=a.value;!0!==this.groups[u].visible||void 0!==this.linegraphOptions.visibility[u]&&!0!==this.linegraphOptions.visibility[u]||(this.groups[u].getLegend(e,15,this.framework,t,i),i+=19)}}catch(t){o=!0,s=t}finally{try{r||null==l.return||l.return()}finally{if(o)throw s}}is(this.svgElements),this.iconsRemoved=!1}},{key:"_cleanupIcons",value:function(){!1===this.iconsRemoved&&(es(this.svgElements),is(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 i in this.dom.lineContainer.style.top="".concat(this.body.domProps.scrollTop,"px"),this.groups)this.groups.hasOwnProperty(i)&&(!0!==this.groups[i].visible||void 0!==this.linegraphOptions.visibility[i]&&!0!==this.linegraphOptions.visibility[i]||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 n=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;n.minorLabelHeight=s?n.minorCharHeight:0,n.majorLabelHeight=a?n.majorCharHeight:0,n.minorLineWidth=l-this.lineOffset-this.width+2*this.options.minorLinesOffset,n.minorLineHeight=1,n.majorLineWidth=l-this.lineOffset-this.width+2*this.options.majorLinesOffset,n.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;es(this.DOMelements.lines),es(this.DOMelements.labels);var i=this.options.orientation,n=null!=this.options[i].range?this.options[i].range:{},r=!0;null!=n.max&&(this.range.end=n.max,r=!1);var o=!0;null!=n.min&&(this.range.start=n.min,o=!1),this.scale=new tC(this.range.start,this.range.end,o,r,this.dom.frame.offsetHeight,this.props.majorCharHeight,this.options.alignZeros,this.options[i].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();nw(s).call(s,(function(e){var n=e.y,r=e.major;t.options.showMinorLabels&&!1===r&&t._redrawLabel(n-2,e.val,i,"vis-y-axis vis-minor",t.props.minorCharHeight),r&&n>=0&&t._redrawLabel(n-2,e.val,i,"vis-y-axis vis-major",t.props.majorCharHeight),!0===t.master&&(r?t._redrawLine(n,i,"vis-grid vis-horizontal vis-major",t.options.majorLinesOffset,t.props.majorLineWidth):t._redrawLine(n,i,"vis-grid vis-horizontal vis-minor",t.options.minorLinesOffset,t.props.minorLineWidth))}));var a=0;void 0!==this.options[i].title&&void 0!==this.options[i].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"),is(this.DOMelements.lines),is(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"),is(this.DOMelements.lines),is(this.DOMelements.labels),this.redraw(),e=!0):(is(this.DOMelements.lines),is(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,i,n,r){var o=os("div",this.DOMelements.labels,this.dom.frame);o.className=n,o.innerHTML=e,"left"===i?(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,i,n,r){if(!0===this.master){var o=os("div",this.DOMelements.lines,this.dom.lineContainer);o.className=i,o.innerHTML="","left"===e?o.style.left="".concat(this.width-n,"px"):o.style.right="".concat(this.width-n,"px"),o.style.width="".concat(r,"px"),o.style.top="".concat(t,"px")}}},{key:"_redrawTitle",value:function(t){if(es(this.DOMelements.title),void 0!==this.options[t].title&&void 0!==this.options[t].title.text){var e=os("div",this.DOMelements.title,this.dom.frame);e.className="vis-y-axis vis-title vis-".concat(t),e.innerHTML=this.options[t].title.text,void 0!==this.options[t].title.style&&bS.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")}is(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 i=document.createTextNode("0"),n=document.createElement("div");n.className="vis-y-axis vis-major vis-measure",n.appendChild(i),this.dom.frame.appendChild(n),this.props.majorCharHeight=n.clientHeight,this.props.majorCharWidth=n.clientWidth,this.dom.frame.removeChild(n)}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)}}}]),e}(GS);function iC(t,e){}function nC(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 rC(t,e){}function oC(t,e){}function sC(t,e,i,n){this.id=e;this.options=bS.selectiveBridgeObject(["sampling","style","sort","yAxisOrientation","barChart","drawPoints","shaded","interpolation","zIndex","excludeFromStacking","excludeFromLegend"],i),this.usingDefaultStyle=void 0===t.className,this.groupsUsingDefaultStyles=n,this.zeroPosition=0,this.update(t),1==this.usingDefaultStyle&&(this.groupsUsingDefaultStyles[0]+=1),this.itemsData=[],this.visible=void 0===t.visible||t.visible}function aC(t,e,i,n){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=i,this.options=bS.extend({},this.defaultOptions),this.linegraphOptions=n,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)}iC.draw=function(t,e,i,n){n=n||0;for(var r=function(t,e){var i=void 0;t.options&&t.options.drawPoints&&t.options.drawPoints.onRender&&"function"==typeof t.options.drawPoints.onRender&&(i=t.options.drawPoints.onRender);e.group.options&&e.group.options.drawPoints&&e.group.options.drawPoints.onRender&&"function"==typeof e.group.options.drawPoints.onRender&&(i=e.group.options.drawPoints.onRender);return i}(i,e),o=0;o<t.length;o++)if(r){var s=r(t[o],e);!0!==s&&"object"!==Ak(s)||ss(t[o].screen_x+n,t[o].screen_y,nC(e,s),i.svgElements,i.svg,t[o].label)}else ss(t[o].screen_x+n,t[o].screen_y,nC(e),i.svgElements,i.svg,t[o].label)},iC.drawIcon=function(t,e,i,n,r,o){var s=.5*r,a=rs("rect",o.svgElements,o.svg);a.setAttributeNS(null,"x",e),a.setAttributeNS(null,"y",i-s),a.setAttributeNS(null,"width",n),a.setAttributeNS(null,"height",2*s),a.setAttributeNS(null,"class","vis-outline"),ss(e+.5*n,i,nC(t),o.svgElements,o.svg)},rC.drawIcon=function(t,e,i,n,r,o){var s=.5*r,a=rs("rect",o.svgElements,o.svg);a.setAttributeNS(null,"x",e),a.setAttributeNS(null,"y",i-s),a.setAttributeNS(null,"width",n),a.setAttributeNS(null,"height",2*s),a.setAttributeNS(null,"class","vis-outline");var l=Math.round(.3*n),u=t.options.barChart.width/l,h=Math.round(.4*r),c=Math.round(.75*r),d=Math.round((n-2*l)/3);if(as(e+.5*l+d,i+s-h-1,l,h,t.className+" vis-bar",o.svgElements,o.svg,t.style),as(e+1.5*l+d+2,i+s-c-1,l,c,t.className+" vis-bar",o.svgElements,o.svg,t.style),1==t.options.drawPoints.enabled){var f={style:t.options.drawPoints.style,styles:t.options.drawPoints.styles,size:t.options.drawPoints.size/u,className:t.className};ss(e+.5*l+d,i+s-h-1,f,o.svgElements,o.svg),ss(e+1.5*l+d+2,i+s-c-1,f,o.svgElements,o.svg)}},rC.draw=function(t,e,i){var n,r,o,s,a,l,u=[],h={},c=0;for(a=0;a<t.length;a++)if("bar"===(s=i.groups[t[a]]).options.style&&!0===s.visible&&(void 0===i.options.groups.visibility[t[a]]||!0===i.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}),c+=1;if(0!==c)for(ZS(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})),rC._getDataIntersections(h,u),a=0;a<u.length;a++){var d=null!=(s=i.groups[u[a].groupId]).options.barChart.minWidth?s.options.barChart.minWidth:.1*s.options.barChart.width,f=0;if(void 0===h[r=u[a].screen_x])a+1<u.length&&(n=Math.abs(u[a+1].screen_x-r)),o=rC._getSafeDrawData(n,s,d);else{var p=a+(h[r].amount-h[r].resolved);p<u.length&&(n=Math.abs(u[p].screen_x-r)),o=rC._getSafeDrawData(n,s,d),h[r].resolved+=1,!0===s.options.stack&&!0!==s.options.excludeFromStacking?u[a].screen_y<s.zeroPosition?(f=h[r].accumulatedNegative,h[r].accumulatedNegative+=s.zeroPosition-u[a].screen_y):(f=h[r].accumulatedPositive,h[r].accumulatedPositive+=s.zeroPosition-u[a].screen_y):!0===s.options.barChart.sideBySide&&(o.width=o.width/h[r].amount,o.offset+=h[r].resolved*o.width-.5*o.width*(h[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,as(v,u[a].screen_y-f,m,s.zeroPosition-u[a].screen_y,s.className+" vis-bar",i.svgElements,i.svg,s.style),!0===s.options.drawPoints.enabled){var g={screen_x:u[a].screen_x,screen_y:u[a].screen_y-f,x:u[a].x,y:u[a].y,groupId:u[a].groupId,label:u[a].label};iC.draw([g],s,i,o.offset)}}},rC._getDataIntersections=function(t,e){for(var i,n=0;n<e.length;n++)n+1<e.length&&(i=Math.abs(e[n+1].screen_x-e[n].screen_x)),n>0&&(i=Math.min(i,Math.abs(e[n-1].screen_x-e[n].screen_x))),0===i&&(void 0===t[e[n].screen_x]&&(t[e[n].screen_x]={amount:0,resolved:0,accumulatedPositive:0,accumulatedNegative:0}),t[e[n].screen_x].amount+=1)},rC._getSafeDrawData=function(t,e,i){var n,r;return t<e.options.barChart.width&&t>0?(n=t<i?i:t,r=0,"left"===e.options.barChart.align?r-=.5*t:"right"===e.options.barChart.align&&(r+=.5*t)):(n=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:n,offset:r}},rC.getStackedYRange=function(t,e,i,n,r){if(t.length>0){ZS(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={};rC._getDataIntersections(o,t),e[n]=rC._getStackedYRange(o,t),e[n].yAxisOrientation=r,i.push(n)}},rC._getStackedYRange=function(t,e){for(var i,n=e[0].screen_y,r=e[0].screen_y,o=0;o<e.length;o++)void 0===t[i=e[o].screen_x]?(n=n>e[o].screen_y?e[o].screen_y:n,r=r<e[o].screen_y?e[o].screen_y:r):e[o].screen_y<0?t[i].accumulatedNegative+=e[o].screen_y:t[i].accumulatedPositive+=e[o].screen_y;for(var s in t)t.hasOwnProperty(s)&&(n=(n=n>t[s].accumulatedNegative?t[s].accumulatedNegative:n)>t[s].accumulatedPositive?t[s].accumulatedPositive:n,r=(r=r<t[s].accumulatedNegative?t[s].accumulatedNegative:r)<t[s].accumulatedPositive?t[s].accumulatedPositive:r);return{min:n,max:r}},oC.calcPath=function(t,e){if(null!=t&&t.length>0){return 1==e.options.interpolation.enabled?oC._catmullRom(t,e):oC._linear(t)}},oC.drawIcon=function(t,e,i,n,r,o){var s,a,l=.5*r,u=rs("rect",o.svgElements,o.svg);(u.setAttributeNS(null,"x",e),u.setAttributeNS(null,"y",i-l),u.setAttributeNS(null,"width",n),u.setAttributeNS(null,"height",2*l),u.setAttributeNS(null,"class","vis-outline"),(s=rs("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+","+i+" L"+(e+n)+","+i),1==t.options.shaded.enabled&&(a=rs("path",o.svgElements,o.svg),"top"==t.options.shaded.orientation?a.setAttributeNS(null,"d","M"+e+", "+(i-l)+"L"+e+","+i+" L"+(e+n)+","+i+" L"+(e+n)+","+(i-l)):a.setAttributeNS(null,"d","M"+e+","+i+" L"+e+","+(i+l)+" L"+(e+n)+","+(i+l)+"L"+(e+n)+","+i),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)&&ss(e+.5*n,i,{style:t.options.drawPoints.style,styles:t.options.drawPoints.styles,size:t.options.drawPoints.size,className:t.className},o.svgElements,o.svg)},oC.drawShading=function(t,e,i,n){if(1==e.options.shaded.enabled){var r,o=Number(n.svg.style.height.replace("px","")),s=rs("path",n.svgElements,n.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!=i&&null!=i?"M"+t[0][0]+","+t[0][1]+" "+this.serializePath(t,a,!1)+" L"+i[i.length-1][0]+","+i[i.length-1][1]+" "+this.serializePath(i,a,!0)+i[0][0]+","+i[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)}},oC.draw=function(t,e,i){if(null!=t&&null!=t){var n=rs("path",i.svgElements,i.svg);n.setAttributeNS(null,"class",e.className),void 0!==e.style&&n.setAttributeNS(null,"style",e.style);var r="L";1==e.options.interpolation.enabled&&(r="C"),n.setAttributeNS(null,"d","M"+t[0][0]+","+t[0][1]+" "+this.serializePath(t,r,!1))}},oC.serializePath=function(t,e,i){if(t.length<2)return"";var n,r=e;if(i)for(n=t.length-2;n>0;n--)r+=t[n][0]+","+t[n][1]+" ";else for(n=1;n<t.length;n++)r+=t[n][0]+","+t[n][1]+" ";return r},oC._catmullRomUniform=function(t){var e,i,n,r,o,s,a=[];a.push([Math.round(t[0].screen_x),Math.round(t[0].screen_y)]);for(var l=t.length,u=0;u<l-1;u++)e=0==u?t[0]:t[u-1],i=t[u],n=t[u+1],r=u+2<l?t[u+2]:n,o={screen_x:(-e.screen_x+6*i.screen_x+n.screen_x)*(1/6),screen_y:(-e.screen_y+6*i.screen_y+n.screen_y)*(1/6)},s={screen_x:(i.screen_x+6*n.screen_x-r.screen_x)*(1/6),screen_y:(i.screen_y+6*n.screen_y-r.screen_y)*(1/6)},a.push([o.screen_x,o.screen_y]),a.push([s.screen_x,s.screen_y]),a.push([n.screen_x,n.screen_y]);return a},oC._catmullRom=function(t,e){var i=e.options.interpolation.alpha;if(0==i||void 0===i)return this._catmullRomUniform(t);var n,r,o,s,a,l,u,h,c,d,f,p,m,v,g,y,b,_,w,k=[];k.push([Math.round(t[0].screen_x),Math.round(t[0].screen_y)]);for(var S=t.length,D=0;D<S-1;D++)n=0==D?t[0]:t[D-1],r=t[D],o=t[D+1],s=D+2<S?t[D+2]:o,u=Math.sqrt(Math.pow(n.screen_x-r.screen_x,2)+Math.pow(n.screen_y-r.screen_y,2)),h=Math.sqrt(Math.pow(r.screen_x-o.screen_x,2)+Math.pow(r.screen_y-o.screen_y,2)),c=Math.sqrt(Math.pow(o.screen_x-s.screen_x,2)+Math.pow(o.screen_y-s.screen_y,2)),v=Math.pow(c,i),y=Math.pow(c,2*i),g=Math.pow(h,i),b=Math.pow(h,2*i),w=Math.pow(u,i),d=2*(_=Math.pow(u,2*i))+3*w*g+b,f=2*y+3*v*g+b,(p=3*w*(w+g))>0&&(p=1/p),(m=3*v*(v+g))>0&&(m=1/m),a={screen_x:(-b*n.screen_x+d*r.screen_x+_*o.screen_x)*p,screen_y:(-b*n.screen_y+d*r.screen_y+_*o.screen_y)*p},l={screen_x:(y*r.screen_x+f*o.screen_x-b*s.screen_x)*m,screen_y:(y*r.screen_y+f*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},oC._linear=function(t){for(var e=[],i=0;i<t.length;i++)e.push([t[i].screen_x,t[i].screen_y]);return e},sC.prototype.setItems=function(t){null!=t?(this.itemsData=t,1==ZS(this.options)&&bS.insertSort(this.itemsData,(function(t,e){return t.x>e.x?1:-1}))):this.itemsData=[]},sC.prototype.getItems=function(){return this.itemsData},sC.prototype.setZeroPosition=function(t){this.zeroPosition=t},sC.prototype.setOptions=function(t){if(void 0!==t){bS.selectiveDeepExtend(["sampling","style","sort","yAxisOrientation","barChart","zIndex","excludeFromStacking","excludeFromLegend"],this.options,t),"function"==typeof t.drawPoints&&(t.drawPoints={onRender:t.drawPoints}),bS.mergeOptions(this.options,t,"interpolation"),bS.mergeOptions(this.options,t,"drawPoints"),bS.mergeOptions(this.options,t,"shaded"),t.interpolation&&"object"==Ak(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))}},sC.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)},sC.prototype.getLegend=function(t,e,i,n,r){null!=i&&null!=i||(i={svg:document.createElementNS("http://www.w3.org/2000/svg","svg"),svgElements:{},options:this.options,groups:[this]});switch(null!=n&&null!=n||(n=0),null!=r&&null!=r||(r=.5*e),this.options.style){case"line":oC.drawIcon(this,n,r,t,e,i);break;case"points":case"point":iC.drawIcon(this,n,r,t,e,i);break;case"bar":rC.drawIcon(this,n,r,t,e,i)}return{icon:i.svg,label:this.content,orientation:this.options.yAxisOrientation}},sC.prototype.getYRange=function(t){for(var e=t[0].y,i=t[0].y,n=0;n<t.length;n++)e=e>t[n].y?t[n].y:e,i=i<t[n].y?t[n].y:i;return{min:e,max:i,yAxisOrientation:this.options.yAxisOrientation}},aC.prototype=new GS,aC.prototype.clear=function(){this.groups={},this.amountOfGroups=0},aC.prototype.addGroup=function(t,e){1!=e.options.excludeFromLegend&&(this.groups.hasOwnProperty(t)||(this.groups[t]=e),this.amountOfGroups+=1)},aC.prototype.updateGroup=function(t,e){this.groups[t]=e},aC.prototype.removeGroup=function(t){this.groups.hasOwnProperty(t)&&(delete this.groups[t],this.amountOfGroups-=1)},aC.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)},aC.prototype.hide=function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame)},aC.prototype.show=function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame)},aC.prototype.setOptions=function(t){bS.selectiveDeepExtend(["enabled","orientation","icons","left","right"],this.options,t)},aC.prototype.redraw=function(){var t=0,e=eS(this.groups);ZS(e).call(e,(function(t,e){return t<e?-1:1}));for(var i=0;i<e.length;i++){var n=e[i];1!=this.groups[n].visible||void 0!==this.linegraphOptions.visibility[n]&&1!=this.linegraphOptions.visibility[n]||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(i=0;i<e.length;i++)n=e[i],1!=this.groups[n].visible||void 0!==this.linegraphOptions.visibility[n]&&1!=this.linegraphOptions.visibility[n]||(o+=this.groups[n].content+"<br />");this.dom.textArea.innerHTML=o,this.dom.textArea.style.lineHeight=.75*this.options.iconSize+this.options.iconSpacing+"px"}},aC.prototype.drawLegendIcons=function(){if(this.dom.frame.parentNode){var t=eS(this.groups);ZS(t).call(t,(function(t,e){return t<e?-1:1})),ns(this.svgElements);var e=window.getComputedStyle(this.dom.frame).paddingTop,i=Number(e.replace("px","")),n=i,r=this.options.iconSize,o=.75*this.options.iconSize,s=i+.5*o+3;this.svg.style.width=r+5+i+"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,n,s),s+=o+this.options.iconSpacing)}}};function lC(t,e){this.id=jM(),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=bS.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 i=this;this.itemsData=null,this.groupsData=null,this.itemListeners={add:function(t,e,n){i._onAdd(e.items)},update:function(t,e,n){i._onUpdate(e.items)},remove:function(t,e,n){i._onRemove(e.items)}},this.groupListeners={add:function(t,e,n){i._onAddGroups(e.items)},update:function(t,e,n){i._onUpdateGroups(e.items)},remove:function(t,e,n){i._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(){i.lastStart=i.body.range.start,i.svg.style.left=bS.option.asSize(-i.props.width),i.forceGraphUpdate=!0,i.redraw.call(i)})),this._create(),this.framework={svg:this.svg,svgElements:this.svgElements,options:this.options,groups:this.groups}}lC.prototype=new GS,lC.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 eC(this.body,this.options.dataAxis,this.svg,this.options.groups),this.options.dataAxis.orientation="right",this.yAxisRight=new eC(this.body,this.options.dataAxis,this.svg,this.options.groups),delete this.options.dataAxis.orientation,this.legendLeft=new aC(this.body,this.options.legend,"left",this.options.groups),this.legendRight=new aC(this.body,this.options.legend,"right",this.options.groups),this.show()},lC.prototype.setOptions=function(t){if(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&&bO((t.graphHeight+"").replace("px",""))<this.body.domProps.centerContainer.height&&(this.updateSVGheight=!0),bS.selectiveDeepExtend(["sampling","defaultGroup","stack","height","graphHeight","yAxisOrientation","style","barChart","dataAxis","sort","groups"],this.options,t),bS.mergeOptions(this.options,t,"interpolation"),bS.mergeOptions(this.options,t,"drawPoints"),bS.mergeOptions(this.options,t,"shaded"),bS.mergeOptions(this.options,t,"legend"),t.interpolation&&"object"==Ak(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("__ungrouped__")&&this.groups.__ungrouped__.setOptions(t)}this.dom.frame&&(this.forceGraphUpdate=!0,this.body.emitter.emit("_change",{queue:!0}))},lC.prototype.hide=function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame)},lC.prototype.show=function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame)},lC.prototype.setItems=function(t){var e,i=this,n=this.itemsData;if(t){if(!(t instanceof py||t instanceof my))throw new TypeError("Data must be an instance of DataSet or DataView");this.itemsData=yS(t)}else this.itemsData=null;if(n&&(nw(bS).call(bS,this.itemListeners,(function(t,e){n.off(e,t)})),n.dispose(),e=n.getIds(),this._onRemove(e)),this.itemsData){var r=this.id;nw(bS).call(bS,this.itemListeners,(function(t,e){i.itemsData.on(e,t,r)})),e=this.itemsData.getIds(),this._onAdd(e)}},lC.prototype.setGroups=function(t){var e,i=this;if(this.groupsData){nw(bS).call(bS,this.groupListeners,(function(t,e){i.groupsData.off(e,t)})),e=this.groupsData.getIds(),this.groupsData=null;for(var n=0;n<e.length;n++)this._removeGroup(e[n])}if(t){if(!(t instanceof py||t instanceof my))throw new TypeError("Data must be an instance of DataSet or DataView");this.groupsData=t}else this.groupsData=null;if(this.groupsData){var r=this.id;nw(bS).call(bS,this.groupListeners,(function(t,e){i.groupsData.on(e,t,r)})),e=this.groupsData.getIds(),this._onAddGroups(e)}},lC.prototype._onUpdate=function(t){this._updateAllGroupData(t)},lC.prototype._onAdd=function(t){this._onUpdate(t)},lC.prototype._onRemove=function(t){this._onUpdate(t)},lC.prototype._onUpdateGroups=function(t){this._updateAllGroupData(null,t)},lC.prototype._onAddGroups=function(t){this._onUpdateGroups(t)},lC.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})},lC.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])},lC.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 sC(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()},lC.prototype._updateAllGroupData=function(t,e){if(null!=this.itemsData){var i={},n=this.itemsData.get(),r=this.itemsData.idProp,o={};t&&pS(t).call(t,(function(t){o[t]=t}));for(var s={},a=0;a<n.length;a++){var l=n[a],u=l.group;null==u&&(u="__ungrouped__"),s.hasOwnProperty(u)?s[u]++:s[u]=1}var h={};if(!e&&t)for(u in this.groups)if(this.groups.hasOwnProperty(u)){var c=(m=this.groups[u]).getItems();i[u]=vw(c).call(c,(function(t){return h[t[r]]=t[r],t[r]!==o[t[r]]}));var d=s[u];s[u]-=i[u].length,i[u].length<d&&(i[u][d-1]={})}for(a=0;a<n.length;a++)if(null==(u=(l=n[a]).group)&&(u="__ungrouped__"),e||!t||l[r]===o[l[r]]||!h.hasOwnProperty(l[r])){i.hasOwnProperty(u)||(i[u]=new Array(s[u]));var f=bS.bridgeObject(l);f.x=bS.convert(l.x,"Date"),f.end=bS.convert(l.end,"Date"),f.orginalY=l.y,f.y=Number(l.y),f[r]=l[r];var p=i[u].length-s[u]--;i[u][p]=f}for(u in this.groups)this.groups.hasOwnProperty(u)&&(i.hasOwnProperty(u)||(i[u]=new Array(0)));for(u in i)if(i.hasOwnProperty(u))if(0==i[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(i[u])}this.forceGraphUpdate=!0,this.body.emitter.emit("_change",{queue:!0})}},lC.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,i=this.body.range.end-this.body.range.start,n=i!=this.lastVisibleInterval;(this.lastVisibleInterval=i,1==t)&&(this.svg.style.width=bS.option.asSize(3*this.props.width),this.svg.style.left=bS.option.asSize(-this.props.width),-1==YD(e=this.options.height+"").call(e,"%")&&1!=this.updateSVGheightOnResize||(this.updateSVGheight=!0));if(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==n||1==this.abortedGraphUpdate||1==this.forceGraphUpdate)t=this._updateGraph()||t,this.forceGraphUpdate=!1;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},lC.prototype._getSortedGroupIds=function(){var t=[];for(var e in this.groups)if(this.groups.hasOwnProperty(e)){var i=this.groups[e];1!=i.visible||void 0!==this.options.groups.visibility[e]&&1!=this.options.groups.visibility[e]||t.push({id:e,zIndex:i.options.zIndex})}bS.insertSort(t,(function(t,e){var i=t.zIndex,n=e.zIndex;return void 0===i&&(i=0),void 0===n&&(n=0),i==n?0:i<n?-1:1}));for(var n=new Array(t.length),r=0;r<t.length;r++)n[r]=t[r].id;return n},lC.prototype._updateGraph=function(){if(es(this.svgElements),0!=this.props.width&&null!=this.itemsData){var t,e,i={},n=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,n,r),this._applySampling(o,s),e=0;e<o.length;e++)this._convertXcoordinates(s[o[e]]);if(this._getYRanges(o,s,i),1==this._updateYAxis(o,i))return is(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]]=oC.calcPath(u,t)),"group"===t.options.shaded.orientation){var h=t.options.shaded.groupId;if(-1===YD(o).call(o,h)){console.log(t.id+": Unknown shading group target given:"+h);continue}l.hasOwnProperty(h)||(l[h]=oC.calcPath(s[h],this.groups[h])),oC.drawShading(l[o[e]],t,l[h],this.framework)}else oC.drawShading(l[o[e]],t,void 0,this.framework)}for(rC.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]]=oC.calcPath(s[o[e]],t)),oC.draw(l[o[e]],t,this.framework);case"point":case"points":"point"!=t.options.style&&"points"!=t.options.style&&1!=t.options.drawPoints.enabled||iC.draw(s[o[e]],t,this.framework)}}}return is(this.svgElements),!1},lC.prototype._stack=function(t,e){var i,n,r,o,s;i=0;for(var a=0;a<t.length;a++){o=void 0,s=void 0;for(var l=i;l<e.length;l++){if(e[l].x===t[a].x){o=e[l],s=e[l],i=l;break}if(e[l].x>t[a].x){s=e[l],o=0==l?s:e[l-1],i=l;break}}void 0===s&&(o=e[e.length-1],s=e[e.length-1]),n=s.x-o.x,r=s.y-o.y,t[a].y=0==n?t[a].orginalY+s.y:t[a].orginalY+r/n*(t[a].x-o.x)+o.y}},lC.prototype._getRelevantData=function(t,e,i,n){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==ZS(r.options)){var u=function(t,e){return t.getTime()==e.getTime()?0:t<e?-1:1},h=Math.max(0,bS.binarySearchValue(l,i,"x","before",u)),c=Math.min(l.length,bS.binarySearchValue(l,n,"x","after",u)+1);c<=0&&(c=l.length);var d=new Array(c-h);for(s=h;s<c;s++)a=r.itemsData[s],d[s-h]=a;e[t[o]]=d}else e[t[o]]=r.itemsData}},lC.prototype._applySampling=function(t,e){if(t.length>0)for(var i=0;i<t.length;i++)if(1==this.groups[t[i]].options.sampling){var n=e[t[i]];if(n.length>0){var r,o=n.length,s=o/(this.body.util.toGlobalScreen(n[n.length-1].x)-this.body.util.toGlobalScreen(n[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)]=n[l]}e[t[i]]=TD(a).call(a,0,Math.round(o/r))}}},lC.prototype._getYRanges=function(t,e,i){var n,r,o,s,a=[],l=[];if(t.length>0){for(o=0;o<t.length;o++)n=e[t[o]],s=this.groups[t[o]].options,n.length>0&&(r=this.groups[t[o]],!0===s.stack&&"bar"===s.style?"left"===s.yAxisOrientation?a=HS(a).call(a,n):l=HS(l).call(l,n):i[t[o]]=r.getYRange(n,t[o]));rC.getStackedYRange(a,i,t,"__barStackLeft","left"),rC.getStackedYRange(l,i,t,"__barStackRight","right")}},lC.prototype._updateYAxis=function(t,e){var i,n,r=!1,o=!1,s=!1,a=1e9,l=1e9,u=-1e9,h=-1e9;if(t.length>0){for(var c=0;c<t.length;c++){var d=this.groups[t[c]];d&&"right"!=d.options.yAxisOrientation?(o=!0,a=1e9,u=-1e9):d&&d.options.yAxisOrientation&&(s=!0,l=1e9,h=-1e9)}for(c=0;c<t.length;c++)e.hasOwnProperty(t[c])&&!0!==e[t[c]].ignore&&(i=e[t[c]].min,n=e[t[c]].max,"right"!=e[t[c]].yAxisOrientation?(o=!0,a=a>i?i:a,u=u<n?n:u):(s=!0,l=l>i?i:l,h=h<n?n:h));1==o&&this.yAxisLeft.setRange(a,u),1==s&&this.yAxisRight.setRange(l,h)}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 f=["__barStackLeft","__barStackRight","__lineStackLeft","__lineStackRight"];for(c=0;c<f.length;c++)-1!=YD(t).call(t,f[c])&&TD(t).call(t,YD(t).call(t,f[c]),1);return r},lC.prototype._toggleAxisVisiblity=function(t,e){var i=!1;return 0==t?e.dom.frame.parentNode&&0==e.hidden&&(e.hide(),i=!0):e.dom.frame.parentNode||1!=e.hidden||(e.show(),i=!0),i},lC.prototype._convertXcoordinates=function(t){for(var e=this.body.util.toScreen,i=0;i<t.length;i++)t[i].screen_x=e(t[i].x)+this.props.width,t[i].screen_y=t[i].y,null!=t[i].end?t[i].screen_end=e(t[i].end)+this.props.width:t[i].screen_end=void 0},lC.prototype._convertYcoordinates=function(t,e){var i=this.yAxisLeft,n=Number(this.svg.style.height.replace("px",""));"right"==e.options.yAxisOrientation&&(i=this.yAxisRight);for(var r=0;r<t.length;r++)t[r].screen_y=Math.round(i.convertValue(t[r].y));e.setZeroPosition(Math.min(n,i.convertValue(0)))};var uC="boolean",hC={configure:{enabled:{boolean:uC},filter:{boolean:uC,function:"function"},container:{dom:"dom"},__type__:{object:"object",boolean:uC,function:"function"}},alignCurrentTime:{string:"string",undefined:"undefined"},yAxisOrientation:{string:["left","right"]},defaultGroup:{string:"string"},sort:{boolean:uC},sampling:{boolean:uC},stack:{boolean:uC},graphHeight:{string:"string",number:"number"},shaded:{enabled:{boolean:uC},orientation:{string:["bottom","top","zero","group"]},groupId:{object:"object"},__type__:{boolean:uC,object:"object"}},style:{string:["line","bar","points"]},barChart:{width:{number:"number"},minWidth:{number:"number"},sideBySide:{boolean:uC},align:{string:["left","center","right"]},__type__:{object:"object"}},interpolation:{enabled:{boolean:uC},parametrization:{string:["centripetal","chordal","uniform"]},alpha:{number:"number"},__type__:{object:"object",boolean:uC}},drawPoints:{enabled:{boolean:uC},onRender:{function:"function"},size:{number:"number"},style:{string:["square","circle"]},__type__:{object:"object",boolean:uC,function:"function"}},dataAxis:{showMinorLabels:{boolean:uC},showMajorLabels:{boolean:uC},showWeekScale:{boolean:uC},icons:{boolean:uC},width:{string:"string",number:"number"},visible:{boolean:uC},alignZeros:{boolean:uC},left:{range:{min:{number:"number",undefined:"undefined"},max:{number:"number",undefined:"undefined"},__type__:{object:"object"}},format:{function:"function"},title:{text:{string:"string",number:"number",undefined:"undefined"},style:{string:"string",undefined:"undefined"},__type__:{object:"object"}},__type__:{object:"object"}},right:{range:{min:{number:"number",undefined:"undefined"},max:{number:"number",undefined:"undefined"},__type__:{object:"object"}},format:{function:"function"},title:{text:{string:"string",number:"number",undefined:"undefined"},style:{string:"string",undefined:"undefined"},__type__:{object:"object"}},__type__:{object:"object"}},__type__:{object:"object"}},legend:{enabled:{boolean:uC},icons:{boolean:uC},left:{visible:{boolean:uC},position:{string:["top-right","bottom-right","top-left","bottom-left"]},__type__:{object:"object"}},right:{visible:{boolean:uC},position:{string:["top-right","bottom-right","top-left","bottom-left"]},__type__:{object:"object"}},__type__:{object:"object",boolean:uC}},groups:{visibility:{any:"any"},__type__:{object:"object"}},autoResize:{boolean:uC},throttleRedraw:{number:"number"},clickToUse:{boolean:uC},end:{number:"number",date:"date",string:"string",moment:"moment"},format:{minorLabels:{millisecond:{string:"string",undefined:"undefined"},second:{string:"string",undefined:"undefined"},minute:{string:"string",undefined:"undefined"},hour:{string:"string",undefined:"undefined"},weekday:{string:"string",undefined:"undefined"},day:{string:"string",undefined:"undefined"},week:{string:"string",undefined:"undefined"},month:{string:"string",undefined:"undefined"},quarter:{string:"string",undefined:"undefined"},year:{string:"string",undefined:"undefined"},__type__:{object:"object"}},majorLabels:{millisecond:{string:"string",undefined:"undefined"},second:{string:"string",undefined:"undefined"},minute:{string:"string",undefined:"undefined"},hour:{string:"string",undefined:"undefined"},weekday:{string:"string",undefined:"undefined"},day:{string:"string",undefined:"undefined"},week:{string:"string",undefined:"undefined"},month:{string:"string",undefined:"undefined"},quarter:{string:"string",undefined:"undefined"},year:{string:"string",undefined:"undefined"},__type__:{object:"object"}},__type__:{object:"object"}},moment:{function:"function"},height:{string:"string",number:"number"},hiddenDates:{start:{date:"date",number:"number",string:"string",moment:"moment"},end:{date:"date",number:"number",string:"string",moment:"moment"},repeat:{string:"string"},__type__:{object:"object",array:"array"}},locale:{string:"string"},locales:{__any__:{any:"any"},__type__:{object:"object"}},max:{date:"date",number:"number",string:"string",moment:"moment"},maxHeight:{number:"number",string:"string"},maxMinorChars:{number:"number"},min:{date:"date",number:"number",string:"string",moment:"moment"},minHeight:{number:"number",string:"string"},moveable:{boolean:uC},multiselect:{boolean:uC},orientation:{string:"string"},showCurrentTime:{boolean:uC},showMajorLabels:{boolean:uC},showMinorLabels:{boolean:uC},showWeekScale:{boolean:uC},start:{date:"date",number:"number",string:"string",moment:"moment"},timeAxis:{scale:{string:"string",undefined:"undefined"},step:{number:"number",undefined:"undefined"},__type__:{object:"object"}},width:{string:"string",number:"number"},zoomable:{boolean:uC},zoomKey:{string:["ctrlKey","altKey","metaKey",""]},zoomMax:{number:"number"},zoomMin:{number:"number"},zIndex:{number:"number"},__type__:{object:"object"}},cC={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 dC(t,e,i,n){var r,o,s,a,l,u,h;if(!(Cw(i)||i instanceof py||i instanceof my)&&i instanceof Object){var c=n;n=i,i=c}n&&n.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:Vk,width:null,height:null,maxHeight:null,minHeight:null},this.options=bS.deepExtend({},this.defaultOptions),this._create(t),this.components=[],this.body={dom:this.dom,domProps:this.props,emitter:{on:Mw(r=this.on).call(r,this),off:Mw(o=this.off).call(o,this),emit:Mw(s=this.emit).call(s,this)},hiddenDates:[],util:{toScreen:Mw(a=d._toScreen).call(a,d),toGlobalScreen:Mw(l=d._toGlobalScreen).call(l,d),toTime:Mw(u=d._toTime).call(u,d),toGlobalTime:Mw(h=d._toGlobalTime).call(h,d)}},this.range=new fD(this.body),this.components.push(this.range),this.body.range=this.range,this.timeAxis=new wO(this.body),this.components.push(this.timeAxis),this.currentTime=new RO(this.body),this.components.push(this.currentTime),this.linegraph=new lC(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,i=null!=d.options.end?d.options.end:t.max;d.setWindow(e,i,{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&&_w((function(){return d.options.onInitialDrawComplete()}),0))}})),n&&this.setOptions(n),i&&this.setGroups(i),e&&this.setItems(e),this._redraw()}dC.prototype=new NO,dC.prototype.setOptions=function(t){!0===NT.validate(t,hC)&&console.log("%cErrors have been found in the supplied options object.",YT),NO.prototype.setOptions.call(this,t)},dC.prototype.setItems=function(t){var e,i=null==this.itemsData;if(e=t?yS(t instanceof py||t instanceof my?t:new py(t)):null,this.itemsData&&this.itemsData.dispose(),this.itemsData=e,this.linegraph&&this.linegraph.setItems(null!=e?e.rawDS:null),i)if(null!=this.options.start||null!=this.options.end){var n=null!=this.options.start?this.options.start:null,r=null!=this.options.end?this.options.end:null;this.setWindow(n,r,{animation:!1})}else this.fit({animation:!1})},dC.prototype.setGroups=function(t){var e;e=t?t instanceof py||t instanceof my?t:new py(t):null,this.groupsData=e,this.linegraph.setGroups(e)},dC.prototype.getLegend=function(t,e,i){return void 0===e&&(e=15),void 0===i&&(i=15),void 0!==this.linegraph.groups[t]?this.linegraph.groups[t].getLegend(e,i):"cannot find group:'"+t+"'"},dC.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]))},dC.prototype.getDataRange=function(){var t=null,e=null;for(var i in this.linegraph.groups)if(this.linegraph.groups.hasOwnProperty(i)&&1==this.linegraph.groups[i].visible)for(var n=0;n<this.linegraph.groups[i].itemsData.length;n++){var r=this.linegraph.groups[i].itemsData[n],o=bS.convert(r.x,"Date").valueOf();t=null==t?o:t>o?o:t,e=null==e?o:e<o?o:e}return{min:null!=t?new Date(t):null,max:null!=e?new Date(e):null}},dC.prototype.getEventProperties=function(t){var e=t.center?t.center.x:t.clientX,i=t.center?t.center.y:t.clientY,n=e-bS.getAbsoluteLeft(this.dom.centerContainer),r=i-bS.getAbsoluteTop(this.dom.centerContainer),o=this._toTime(n),s=YO.customTimeFromTarget(t),a=bS.getTarget(t),l=null;bS.hasParent(a,this.timeAxis.dom.foreground)?l="axis":this.timeAxis2&&bS.hasParent(a,this.timeAxis2.dom.foreground)?l="axis":bS.hasParent(a,this.linegraph.yAxisLeft.dom.frame)?l="data-axis":bS.hasParent(a,this.linegraph.yAxisRight.dom.frame)?l="data-axis":bS.hasParent(a,this.linegraph.legendLeft.dom.frame)?l="legend":bS.hasParent(a,this.linegraph.legendRight.dom.frame)?l="legend":null!=s?l="custom-time":bS.hasParent(a,this.currentTime.bar)?l="current-time":bS.hasParent(a,this.dom.center)&&(l="background");var u=[],h=this.linegraph.yAxisLeft,c=this.linegraph.yAxisRight;return!h.hidden&&this.itemsData.length>0&&u.push(h.screenToValue(r)),!c.hidden&&this.itemsData.length>0&&u.push(c.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:n,y:r,time:o,value:u}},dC.prototype._createConfigurator=function(){return new ZT(this,this.dom.container,cC)};var fC=ls();Vk.locale(fC);var pC={Core:NO,DateUtil:dD,Range:fD,stack:uT,TimeStep:_O,components:{items:{Item:fT,BackgroundItem:gT,BoxItem:pT,PointItem:mT,RangeItem:vT},BackgroundGroup:dT,Component:GS,CurrentTime:RO,CustomTime:YO,DataAxis:eC,DataScale:tC,GraphGroup:sC,Group:cT,ItemSet:LT,Legend:aC,LineGraph:lC,TimeAxis:wO}};t.DOMutil=us,t.DataSet=py,t.DataView=my,t.Graph2d=dC,t.Hammer=fO,t.Queue=ny,t.Timeline=JT,t.keycharm=SO,t.moment=Vk,t.timeline=pC,t.util=Qo,Object.defineProperty(t,"__esModule",{value:!0})}));
|
||
//# sourceMappingURL=vis-timeline-graph2d.min.js.map
|