pub const VIS_JS: &str = "/**\n * vis-timeline and vis-graph2d\n * https://visjs.github.io/vis-timeline/\n *\n * Create a fully customizable, interactive timeline with items and ranges.\n *\n * @version 0.0.0-no-version\n * @date    2021-03-31T12:32:18.227Z\n *\n * @copyright (c) 2011-2017 Almende B.V, http://almende.com\n * @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs\n *\n * @license\n * vis.js is dual licensed under both\n *\n *   1. The Apache 2.0 License\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n *   and\n *\n *   2. The MIT License\n *      http://opensource.org/licenses/MIT\n *\n * vis.js may be distributed under either license.\n */\n!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?e(exports):\"function\"==typeof define&&define.amd?define([\"exports\"],e):e((t=\"undefined\"!=typeof globalThis?globalThis:t||self).vis=t.vis||{})}(this,(function(t){var e=\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:{};function i(t){var e={exports:{}};return t(e,e.exports),e.exports}function n(t){throw new Error(\'Could not dynamically require \"\'+t+\'\". Please configure the dynamicRequireTargets option of @rollup/plugin-commonjs appropriately for this require call to behave properly.\')}var o=i((function(t,e){t.exports=function(){var e,i;function o(){return e.apply(null,arguments)}function r(t){e=t}function s(t){return t instanceof Array||\"[object Array]\"===Object.prototype.toString.call(t)}function a(t){return null!=t&&\"[object Object]\"===Object.prototype.toString.call(t)}function l(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function h(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(l(t,e))return!1;return!0}function u(t){return void 0===t}function d(t){return\"number\"==typeof t||\"[object Number]\"===Object.prototype.toString.call(t)}function c(t){return t instanceof Date||\"[object Date]\"===Object.prototype.toString.call(t)}function p(t,e){var i,n=[];for(i=0;i<t.length;++i)n.push(e(t[i],i));return n}function f(t,e){for(var i in e)l(e,i)&&(t[i]=e[i]);return l(e,\"toString\")&&(t.toString=e.toString),l(e,\"valueOf\")&&(t.valueOf=e.valueOf),t}function m(t,e,i,n){return Xi(t,e,i,n,!0).utc()}function v(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function g(t){return null==t._pf&&(t._pf=v()),t._pf}function y(t){if(null==t._isValid){var e=g(t),n=i.call(e.parsedDateParts,(function(t){return null!=t})),o=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(o=o&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return o;t._isValid=o}return t._isValid}function b(t){var e=m(NaN);return null!=t?f(g(e),t):g(e).userInvalidated=!0,e}i=Array.prototype.some?Array.prototype.some:function(t){var e,i=Object(this),n=i.length>>>0;for(e=0;e<n;e++)if(e in i&&t.call(this,i[e],e,i))return!0;return!1};var _=o.momentProperties=[],w=!1;function k(t,e){var i,n,o;if(u(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),u(e._i)||(t._i=e._i),u(e._f)||(t._f=e._f),u(e._l)||(t._l=e._l),u(e._strict)||(t._strict=e._strict),u(e._tzm)||(t._tzm=e._tzm),u(e._isUTC)||(t._isUTC=e._isUTC),u(e._offset)||(t._offset=e._offset),u(e._pf)||(t._pf=g(e)),u(e._locale)||(t._locale=e._locale),_.length>0)for(i=0;i<_.length;i++)u(o=e[n=_[i]])||(t[n]=o);return t}function x(t){k(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===w&&(w=!0,o.updateOffset(this),w=!1)}function D(t){return t instanceof x||null!=t&&null!=t._isAMomentObject}function S(t){!1===o.suppressDeprecationWarnings&&\"undefined\"!=typeof console&&console.warn&&console.warn(\"Deprecation warning: \"+t)}function C(t,e){var i=!0;return f((function(){if(null!=o.deprecationHandler&&o.deprecationHandler(null,t),i){var n,r,s,a=[];for(r=0;r<arguments.length;r++){if(n=\"\",\"object\"==typeof arguments[r]){for(s in n+=\"\\n[\"+r+\"] \",arguments[0])l(arguments[0],s)&&(n+=s+\": \"+arguments[0][s]+\", \");n=n.slice(0,-2)}else n=arguments[r];a.push(n)}S(t+\"\\nArguments: \"+Array.prototype.slice.call(a).join(\"\")+\"\\n\"+(new Error).stack),i=!1}return e.apply(this,arguments)}),e)}var T,M={};function O(t,e){null!=o.deprecationHandler&&o.deprecationHandler(t,e),M[t]||(S(e),M[t]=!0)}function E(t){return\"undefined\"!=typeof Function&&t instanceof Function||\"[object Function]\"===Object.prototype.toString.call(t)}function P(t){var e,i;for(i in t)l(t,i)&&(E(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)}function A(t,e){var i,n=f({},t);for(i in e)l(e,i)&&(a(t[i])&&a(e[i])?(n[i]={},f(n[i],t[i]),f(n[i],e[i])):null!=e[i]?n[i]=e[i]:delete n[i]);for(i in t)l(t,i)&&!l(e,i)&&a(t[i])&&(n[i]=f({},n[i]));return n}function L(t){null!=t&&this.set(t)}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null,T=Object.keys?Object.keys:function(t){var e,i=[];for(e in t)l(t,e)&&i.push(e);return i};var I={sameDay:\"[Today at] LT\",nextDay:\"[Tomorrow at] LT\",nextWeek:\"dddd [at] LT\",lastDay:\"[Yesterday at] LT\",lastWeek:\"[Last] dddd [at] LT\",sameElse:\"L\"};function N(t,e,i){var n=this._calendar[t]||this._calendar.sameElse;return E(n)?n.call(e,i):n}function F(t,e,i){var n=\"\"+Math.abs(t),o=e-n.length;return(t>=0?i?\"+\":\"\":\"-\")+Math.pow(10,Math.max(0,o)).toString().substr(1)+n}var R=/(\\[[^\\[]*\\])|(\\\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Y=/(\\[[^\\[]*\\])|(\\\\)?(LTS|LT|LL?L?L?|l{1,4})/g,j={},H={};function z(t,e,i,n){var o=n;\"string\"==typeof n&&(o=function(){return this[n]()}),t&&(H[t]=o),e&&(H[e[0]]=function(){return F(o.apply(this,arguments),e[1],e[2])}),i&&(H[i]=function(){return this.localeData().ordinal(o.apply(this,arguments),t)})}function G(t){return t.match(/\\[[\\s\\S]/)?t.replace(/^\\[|\\]$/g,\"\"):t.replace(/\\\\/g,\"\")}function B(t){var e,i,n=t.match(R);for(e=0,i=n.length;e<i;e++)H[n[e]]?n[e]=H[n[e]]:n[e]=G(n[e]);return function(e){var o,r=\"\";for(o=0;o<i;o++)r+=E(n[o])?n[o].call(e,t):n[o];return r}}function W(t,e){return t.isValid()?(e=V(e,t.localeData()),j[e]=j[e]||B(e),j[e](t)):t.localeData().invalidDate()}function V(t,e){var i=5;function n(t){return e.longDateFormat(t)||t}for(Y.lastIndex=0;i>=0&&Y.test(t);)t=t.replace(Y,n),Y.lastIndex=0,i-=1;return t}var U={LTS:\"h:mm:ss A\",LT:\"h:mm A\",L:\"MM/DD/YYYY\",LL:\"MMMM D, YYYY\",LLL:\"MMMM D, YYYY h:mm A\",LLLL:\"dddd, MMMM D, YYYY h:mm A\"};function X(t){var e=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return e||!i?e:(this._longDateFormat[t]=i.match(R).map((function(t){return\"MMMM\"===t||\"MM\"===t||\"DD\"===t||\"dddd\"===t?t.slice(1):t})).join(\"\"),this._longDateFormat[t])}var q=\"Invalid date\";function Z(){return this._invalidDate}var $=\"%d\",K=/\\d{1,2}/;function J(t){return this._ordinal.replace(\"%d\",t)}var Q={future:\"in %s\",past:\"%s ago\",s:\"a few seconds\",ss:\"%d seconds\",m:\"a minute\",mm:\"%d minutes\",h:\"an hour\",hh:\"%d hours\",d:\"a day\",dd:\"%d days\",w:\"a week\",ww:\"%d weeks\",M:\"a month\",MM:\"%d months\",y:\"a year\",yy:\"%d years\"};function tt(t,e,i,n){var o=this._relativeTime[i];return E(o)?o(t,e,i,n):o.replace(/%d/i,t)}function et(t,e){var i=this._relativeTime[t>0?\"future\":\"past\"];return E(i)?i(e):i.replace(/%s/i,e)}var it={};function nt(t,e){var i=t.toLowerCase();it[i]=it[i+\"s\"]=it[e]=t}function ot(t){return\"string\"==typeof t?it[t]||it[t.toLowerCase()]:void 0}function rt(t){var e,i,n={};for(i in t)l(t,i)&&(e=ot(i))&&(n[e]=t[i]);return n}var st={};function at(t,e){st[t]=e}function lt(t){var e,i=[];for(e in t)l(t,e)&&i.push({unit:e,priority:st[e]});return i.sort((function(t,e){return t.priority-e.priority})),i}function ht(t){return t%4==0&&t%100!=0||t%400==0}function ut(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function dt(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=ut(e)),i}function ct(t,e){return function(i){return null!=i?(ft(this,t,i),o.updateOffset(this,e),this):pt(this,t)}}function pt(t,e){return t.isValid()?t._d[\"get\"+(t._isUTC?\"UTC\":\"\")+e]():NaN}function ft(t,e,i){t.isValid()&&!isNaN(i)&&(\"FullYear\"===e&&ht(t.year())&&1===t.month()&&29===t.date()?(i=dt(i),t._d[\"set\"+(t._isUTC?\"UTC\":\"\")+e](i,t.month(),te(i,t.month()))):t._d[\"set\"+(t._isUTC?\"UTC\":\"\")+e](i))}function mt(t){return E(this[t=ot(t)])?this[t]():this}function vt(t,e){if(\"object\"==typeof t){var i,n=lt(t=rt(t));for(i=0;i<n.length;i++)this[n[i].unit](t[n[i].unit])}else if(E(this[t=ot(t)]))return this[t](e);return this}var gt,yt=/\\d/,bt=/\\d\\d/,_t=/\\d{3}/,wt=/\\d{4}/,kt=/[+-]?\\d{6}/,xt=/\\d\\d?/,Dt=/\\d\\d\\d\\d?/,St=/\\d\\d\\d\\d\\d\\d?/,Ct=/\\d{1,3}/,Tt=/\\d{1,4}/,Mt=/[+-]?\\d{1,6}/,Ot=/\\d+/,Et=/[+-]?\\d+/,Pt=/Z|[+-]\\d\\d:?\\d\\d/gi,At=/Z|[+-]\\d\\d(?::?\\d\\d)?/gi,Lt=/[+-]?\\d+(\\.\\d{1,3})?/,It=/[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;function Nt(t,e,i){gt[t]=E(e)?e:function(t,n){return t&&i?i:e}}function Ft(t,e){return l(gt,t)?gt[t](e._strict,e._locale):new RegExp(Rt(t))}function Rt(t){return Yt(t.replace(\"\\\\\",\"\").replace(/\\\\(\\[)|\\\\(\\])|\\[([^\\]\\[]*)\\]|\\\\(.)/g,(function(t,e,i,n,o){return e||i||n||o})))}function Yt(t){return t.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g,\"\\\\$&\")}gt={};var jt={};function Ht(t,e){var i,n=e;for(\"string\"==typeof t&&(t=[t]),d(e)&&(n=function(t,i){i[e]=dt(t)}),i=0;i<t.length;i++)jt[t[i]]=n}function zt(t,e){Ht(t,(function(t,i,n,o){n._w=n._w||{},e(t,n._w,n,o)}))}function Gt(t,e,i){null!=e&&l(jt,t)&&jt[t](e,i._a,i,t)}var Bt,Wt=0,Vt=1,Ut=2,Xt=3,qt=4,Zt=5,$t=6,Kt=7,Jt=8;function Qt(t,e){return(t%e+e)%e}function te(t,e){if(isNaN(t)||isNaN(e))return NaN;var i=Qt(e,12);return t+=(e-i)/12,1===i?ht(t)?29:28:31-i%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},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)})),nt(\"month\",\"M\"),at(\"month\",8),Nt(\"M\",xt),Nt(\"MM\",xt,bt),Nt(\"MMM\",(function(t,e){return e.monthsShortRegex(t)})),Nt(\"MMMM\",(function(t,e){return e.monthsRegex(t)})),Ht([\"M\",\"MM\"],(function(t,e){e[Vt]=dt(t)-1})),Ht([\"MMM\",\"MMMM\"],(function(t,e,i,n){var o=i._locale.monthsParse(t,n,i._strict);null!=o?e[Vt]=o:g(i).invalidMonth=t}));var ee=\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),ie=\"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec\".split(\"_\"),ne=/D[oD]?(\\[[^\\[\\]]*\\]|\\s)+MMMM?/,oe=It,re=It;function se(t,e){return t?s(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||ne).test(e)?\"format\":\"standalone\"][t.month()]:s(this._months)?this._months:this._months.standalone}function ae(t,e){return t?s(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[ne.test(e)?\"format\":\"standalone\"][t.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function le(t,e,i){var n,o,r,s=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)r=m([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(r,\"\").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(r,\"\").toLocaleLowerCase();return i?\"MMM\"===e?-1!==(o=Bt.call(this._shortMonthsParse,s))?o:null:-1!==(o=Bt.call(this._longMonthsParse,s))?o:null:\"MMM\"===e?-1!==(o=Bt.call(this._shortMonthsParse,s))||-1!==(o=Bt.call(this._longMonthsParse,s))?o:null:-1!==(o=Bt.call(this._longMonthsParse,s))||-1!==(o=Bt.call(this._shortMonthsParse,s))?o:null}function he(t,e,i){var n,o,r;if(this._monthsParseExact)return le.call(this,t,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(o=m([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp(\"^\"+this.months(o,\"\").replace(\".\",\"\")+\"$\",\"i\"),this._shortMonthsParse[n]=new RegExp(\"^\"+this.monthsShort(o,\"\").replace(\".\",\"\")+\"$\",\"i\")),i||this._monthsParse[n]||(r=\"^\"+this.months(o,\"\")+\"|^\"+this.monthsShort(o,\"\"),this._monthsParse[n]=new RegExp(r.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}}function ue(t,e){var i;if(!t.isValid())return t;if(\"string\"==typeof e)if(/^\\d+$/.test(e))e=dt(e);else if(!d(e=t.localeData().monthsParse(e)))return t;return i=Math.min(t.date(),te(t.year(),e)),t._d[\"set\"+(t._isUTC?\"UTC\":\"\")+\"Month\"](e,i),t}function de(t){return null!=t?(ue(this,t),o.updateOffset(this,!0),this):pt(this,\"Month\")}function ce(){return te(this.year(),this.month())}function pe(t){return this._monthsParseExact?(l(this,\"_monthsRegex\")||me.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,\"_monthsShortRegex\")||(this._monthsShortRegex=oe),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function fe(t){return this._monthsParseExact?(l(this,\"_monthsRegex\")||me.call(this),t?this._monthsStrictRegex:this._monthsRegex):(l(this,\"_monthsRegex\")||(this._monthsRegex=re),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function me(){function t(t,e){return e.length-t.length}var e,i,n=[],o=[],r=[];for(e=0;e<12;e++)i=m([2e3,e]),n.push(this.monthsShort(i,\"\")),o.push(this.months(i,\"\")),r.push(this.months(i,\"\")),r.push(this.monthsShort(i,\"\"));for(n.sort(t),o.sort(t),r.sort(t),e=0;e<12;e++)n[e]=Yt(n[e]),o[e]=Yt(o[e]);for(e=0;e<24;e++)r[e]=Yt(r[e]);this._monthsRegex=new RegExp(\"^(\"+r.join(\"|\")+\")\",\"i\"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp(\"^(\"+o.join(\"|\")+\")\",\"i\"),this._monthsShortStrictRegex=new RegExp(\"^(\"+n.join(\"|\")+\")\",\"i\")}function ve(t){return ht(t)?366:365}z(\"Y\",0,0,(function(){var t=this.year();return t<=9999?F(t,4):\"+\"+t})),z(0,[\"YY\",2],0,(function(){return this.year()%100})),z(0,[\"YYYY\",4],0,\"year\"),z(0,[\"YYYYY\",5],0,\"year\"),z(0,[\"YYYYYY\",6,!0],0,\"year\"),nt(\"year\",\"y\"),at(\"year\",1),Nt(\"Y\",Et),Nt(\"YY\",xt,bt),Nt(\"YYYY\",Tt,wt),Nt(\"YYYYY\",Mt,kt),Nt(\"YYYYYY\",Mt,kt),Ht([\"YYYYY\",\"YYYYYY\"],Wt),Ht(\"YYYY\",(function(t,e){e[Wt]=2===t.length?o.parseTwoDigitYear(t):dt(t)})),Ht(\"YY\",(function(t,e){e[Wt]=o.parseTwoDigitYear(t)})),Ht(\"Y\",(function(t,e){e[Wt]=parseInt(t,10)})),o.parseTwoDigitYear=function(t){return dt(t)+(dt(t)>68?1900:2e3)};var ge=ct(\"FullYear\",!0);function ye(){return ht(this.year())}function be(t,e,i,n,o,r,s){var a;return t<100&&t>=0?(a=new Date(t+400,e,i,n,o,r,s),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,e,i,n,o,r,s),a}function _e(t){var e,i;return t<100&&t>=0?((i=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,i)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function we(t,e,i){var n=7+e-i;return-(7+_e(t,0,n).getUTCDay()-e)%7+n-1}function ke(t,e,i,n,o){var r,s,a=1+7*(e-1)+(7+i-n)%7+we(t,n,o);return a<=0?s=ve(r=t-1)+a:a>ve(t)?(r=t+1,s=a-ve(t)):(r=t,s=a),{year:r,dayOfYear:s}}function xe(t,e,i){var n,o,r=we(t.year(),e,i),s=Math.floor((t.dayOfYear()-r-1)/7)+1;return s<1?n=s+De(o=t.year()-1,e,i):s>De(t.year(),e,i)?(n=s-De(t.year(),e,i),o=t.year()+1):(o=t.year(),n=s),{week:n,year:o}}function De(t,e,i){var n=we(t,e,i),o=we(t+1,e,i);return(ve(t)-n+o)/7}function Se(t){return xe(t,this._week.dow,this._week.doy).week}z(\"w\",[\"ww\",2],\"wo\",\"week\"),z(\"W\",[\"WW\",2],\"Wo\",\"isoWeek\"),nt(\"week\",\"w\"),nt(\"isoWeek\",\"W\"),at(\"week\",5),at(\"isoWeek\",5),Nt(\"w\",xt),Nt(\"ww\",xt,bt),Nt(\"W\",xt),Nt(\"WW\",xt,bt),zt([\"w\",\"ww\",\"W\",\"WW\"],(function(t,e,i,n){e[n.substr(0,1)]=dt(t)}));var Ce={dow:0,doy:6};function Te(){return this._week.dow}function Me(){return this._week.doy}function Oe(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),\"d\")}function Ee(t){var e=xe(this,1,4).week;return null==t?e:this.add(7*(t-e),\"d\")}function Pe(t,e){return\"string\"!=typeof t?t:isNaN(t)?\"number\"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}function Ae(t,e){return\"string\"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Le(t,e){return t.slice(e,7).concat(t.slice(0,e))}z(\"d\",0,\"do\",\"day\"),z(\"dd\",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),z(\"ddd\",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),z(\"dddd\",0,0,(function(t){return this.localeData().weekdays(this,t)})),z(\"e\",0,0,\"weekday\"),z(\"E\",0,0,\"isoWeekday\"),nt(\"day\",\"d\"),nt(\"weekday\",\"e\"),nt(\"isoWeekday\",\"E\"),at(\"day\",11),at(\"weekday\",11),at(\"isoWeekday\",11),Nt(\"d\",xt),Nt(\"e\",xt),Nt(\"E\",xt),Nt(\"dd\",(function(t,e){return e.weekdaysMinRegex(t)})),Nt(\"ddd\",(function(t,e){return e.weekdaysShortRegex(t)})),Nt(\"dddd\",(function(t,e){return e.weekdaysRegex(t)})),zt([\"dd\",\"ddd\",\"dddd\"],(function(t,e,i,n){var o=i._locale.weekdaysParse(t,n,i._strict);null!=o?e.d=o:g(i).invalidWeekday=t})),zt([\"d\",\"e\",\"E\"],(function(t,e,i,n){e[n]=dt(t)}));var Ie=\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),Ne=\"Sun_Mon_Tue_Wed_Thu_Fri_Sat\".split(\"_\"),Fe=\"Su_Mo_Tu_We_Th_Fr_Sa\".split(\"_\"),Re=It,Ye=It,je=It;function He(t,e){var i=s(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?\"format\":\"standalone\"];return!0===t?Le(i,this._week.dow):t?i[t.day()]:i}function ze(t){return!0===t?Le(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function Ge(t){return!0===t?Le(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function Be(t,e,i){var n,o,r,s=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)r=m([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(r,\"\").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(r,\"\").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(r,\"\").toLocaleLowerCase();return i?\"dddd\"===e?-1!==(o=Bt.call(this._weekdaysParse,s))?o:null:\"ddd\"===e?-1!==(o=Bt.call(this._shortWeekdaysParse,s))?o:null:-1!==(o=Bt.call(this._minWeekdaysParse,s))?o:null:\"dddd\"===e?-1!==(o=Bt.call(this._weekdaysParse,s))||-1!==(o=Bt.call(this._shortWeekdaysParse,s))||-1!==(o=Bt.call(this._minWeekdaysParse,s))?o:null:\"ddd\"===e?-1!==(o=Bt.call(this._shortWeekdaysParse,s))||-1!==(o=Bt.call(this._weekdaysParse,s))||-1!==(o=Bt.call(this._minWeekdaysParse,s))?o:null:-1!==(o=Bt.call(this._minWeekdaysParse,s))||-1!==(o=Bt.call(this._weekdaysParse,s))||-1!==(o=Bt.call(this._shortWeekdaysParse,s))?o:null}function We(t,e,i){var n,o,r;if(this._weekdaysParseExact)return Be.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(o=m([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp(\"^\"+this.weekdays(o,\"\").replace(\".\",\"\\\\.?\")+\"$\",\"i\"),this._shortWeekdaysParse[n]=new RegExp(\"^\"+this.weekdaysShort(o,\"\").replace(\".\",\"\\\\.?\")+\"$\",\"i\"),this._minWeekdaysParse[n]=new RegExp(\"^\"+this.weekdaysMin(o,\"\").replace(\".\",\"\\\\.?\")+\"$\",\"i\")),this._weekdaysParse[n]||(r=\"^\"+this.weekdays(o,\"\")+\"|^\"+this.weekdaysShort(o,\"\")+\"|^\"+this.weekdaysMin(o,\"\"),this._weekdaysParse[n]=new RegExp(r.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}}function Ve(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Pe(t,this.localeData()),this.add(t-e,\"d\")):e}function Ue(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,\"d\")}function Xe(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Ae(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function qe(t){return this._weekdaysParseExact?(l(this,\"_weekdaysRegex\")||Ke.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,\"_weekdaysRegex\")||(this._weekdaysRegex=Re),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ze(t){return this._weekdaysParseExact?(l(this,\"_weekdaysRegex\")||Ke.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,\"_weekdaysShortRegex\")||(this._weekdaysShortRegex=Ye),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function $e(t){return this._weekdaysParseExact?(l(this,\"_weekdaysRegex\")||Ke.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,\"_weekdaysMinRegex\")||(this._weekdaysMinRegex=je),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ke(){function t(t,e){return e.length-t.length}var e,i,n,o,r,s=[],a=[],l=[],h=[];for(e=0;e<7;e++)i=m([2e3,1]).day(e),n=Yt(this.weekdaysMin(i,\"\")),o=Yt(this.weekdaysShort(i,\"\")),r=Yt(this.weekdays(i,\"\")),s.push(n),a.push(o),l.push(r),h.push(n),h.push(o),h.push(r);s.sort(t),a.sort(t),l.sort(t),h.sort(t),this._weekdaysRegex=new RegExp(\"^(\"+h.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 Je(){return this.hours()%12||12}function Qe(){return this.hours()||24}function ti(t,e){z(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function ei(t,e){return e._meridiemParse}function ii(t){return\"p\"===(t+\"\").toLowerCase().charAt(0)}z(\"H\",[\"HH\",2],0,\"hour\"),z(\"h\",[\"hh\",2],0,Je),z(\"k\",[\"kk\",2],0,Qe),z(\"hmm\",0,0,(function(){return\"\"+Je.apply(this)+F(this.minutes(),2)})),z(\"hmmss\",0,0,(function(){return\"\"+Je.apply(this)+F(this.minutes(),2)+F(this.seconds(),2)})),z(\"Hmm\",0,0,(function(){return\"\"+this.hours()+F(this.minutes(),2)})),z(\"Hmmss\",0,0,(function(){return\"\"+this.hours()+F(this.minutes(),2)+F(this.seconds(),2)})),ti(\"a\",!0),ti(\"A\",!1),nt(\"hour\",\"h\"),at(\"hour\",13),Nt(\"a\",ei),Nt(\"A\",ei),Nt(\"H\",xt),Nt(\"h\",xt),Nt(\"k\",xt),Nt(\"HH\",xt,bt),Nt(\"hh\",xt,bt),Nt(\"kk\",xt,bt),Nt(\"hmm\",Dt),Nt(\"hmmss\",St),Nt(\"Hmm\",Dt),Nt(\"Hmmss\",St),Ht([\"H\",\"HH\"],Xt),Ht([\"k\",\"kk\"],(function(t,e,i){var n=dt(t);e[Xt]=24===n?0:n})),Ht([\"a\",\"A\"],(function(t,e,i){i._isPm=i._locale.isPM(t),i._meridiem=t})),Ht([\"h\",\"hh\"],(function(t,e,i){e[Xt]=dt(t),g(i).bigHour=!0})),Ht(\"hmm\",(function(t,e,i){var n=t.length-2;e[Xt]=dt(t.substr(0,n)),e[qt]=dt(t.substr(n)),g(i).bigHour=!0})),Ht(\"hmmss\",(function(t,e,i){var n=t.length-4,o=t.length-2;e[Xt]=dt(t.substr(0,n)),e[qt]=dt(t.substr(n,2)),e[Zt]=dt(t.substr(o)),g(i).bigHour=!0})),Ht(\"Hmm\",(function(t,e,i){var n=t.length-2;e[Xt]=dt(t.substr(0,n)),e[qt]=dt(t.substr(n))})),Ht(\"Hmmss\",(function(t,e,i){var n=t.length-4,o=t.length-2;e[Xt]=dt(t.substr(0,n)),e[qt]=dt(t.substr(n,2)),e[Zt]=dt(t.substr(o))}));var ni=/[ap]\\.?m?\\.?/i,oi=ct(\"Hours\",!0);function ri(t,e,i){return t>11?i?\"pm\":\"PM\":i?\"am\":\"AM\"}var si,ai={calendar:I,longDateFormat:U,invalidDate:q,ordinal:$,dayOfMonthOrdinalParse:K,relativeTime:Q,months:ee,monthsShort:ie,week:Ce,weekdays:Ie,weekdaysMin:Fe,weekdaysShort:Ne,meridiemParse:ni},li={},hi={};function ui(t,e){var i,n=Math.min(t.length,e.length);for(i=0;i<n;i+=1)if(t[i]!==e[i])return i;return n}function di(t){return t?t.toLowerCase().replace(\"_\",\"-\"):t}function ci(t){for(var e,i,n,o,r=0;r<t.length;){for(e=(o=di(t[r]).split(\"-\")).length,i=(i=di(t[r+1]))?i.split(\"-\"):null;e>0;){if(n=pi(o.slice(0,e).join(\"-\")))return n;if(i&&i.length>=e&&ui(o,i)>=e-1)break;e--}r++}return si}function pi(e){var i=null;if(void 0===li[e]&&t&&t.exports)try{i=si._abbr,n(\"./locale/\"+e),fi(i)}catch(t){li[e]=null}return li[e]}function fi(t,e){var i;return t&&((i=u(e)?gi(t):mi(t,e))?si=i:\"undefined\"!=typeof console&&console.warn&&console.warn(\"Locale \"+t+\" not found. Did you forget to load it?\")),si._abbr}function mi(t,e){if(null!==e){var i,n=ai;if(e.abbr=t,null!=li[t])O(\"defineLocaleOverride\",\"use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info.\"),n=li[t]._config;else if(null!=e.parentLocale)if(null!=li[e.parentLocale])n=li[e.parentLocale]._config;else{if(null==(i=pi(e.parentLocale)))return hi[e.parentLocale]||(hi[e.parentLocale]=[]),hi[e.parentLocale].push({name:t,config:e}),null;n=i._config}return li[t]=new L(A(n,e)),hi[t]&&hi[t].forEach((function(t){mi(t.name,t.config)})),fi(t),li[t]}return delete li[t],null}function vi(t,e){if(null!=e){var i,n,o=ai;null!=li[t]&&null!=li[t].parentLocale?li[t].set(A(li[t]._config,e)):(null!=(n=pi(t))&&(o=n._config),e=A(o,e),null==n&&(e.abbr=t),(i=new L(e)).parentLocale=li[t],li[t]=i),fi(t)}else null!=li[t]&&(null!=li[t].parentLocale?(li[t]=li[t].parentLocale,t===fi()&&fi(t)):null!=li[t]&&delete li[t]);return li[t]}function gi(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return si;if(!s(t)){if(e=pi(t))return e;t=[t]}return ci(t)}function yi(){return T(li)}function bi(t){var e,i=t._a;return i&&-2===g(t).overflow&&(e=i[Vt]<0||i[Vt]>11?Vt:i[Ut]<1||i[Ut]>te(i[Wt],i[Vt])?Ut:i[Xt]<0||i[Xt]>24||24===i[Xt]&&(0!==i[qt]||0!==i[Zt]||0!==i[$t])?Xt:i[qt]<0||i[qt]>59?qt:i[Zt]<0||i[Zt]>59?Zt:i[$t]<0||i[$t]>999?$t:-1,g(t)._overflowDayOfYear&&(e<Wt||e>Ut)&&(e=Ut),g(t)._overflowWeeks&&-1===e&&(e=Kt),g(t)._overflowWeekday&&-1===e&&(e=Jt),g(t).overflow=e),t}var _i=/^\\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)?)?$/,wi=/^\\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)?)?$/,ki=/Z|[+-]\\d\\d(?::?\\d\\d)?/,xi=[[\"YYYYYY-MM-DD\",/[+-]\\d{6}-\\d\\d-\\d\\d/],[\"YYYY-MM-DD\",/\\d{4}-\\d\\d-\\d\\d/],[\"GGGG-[W]WW-E\",/\\d{4}-W\\d\\d-\\d/],[\"GGGG-[W]WW\",/\\d{4}-W\\d\\d/,!1],[\"YYYY-DDD\",/\\d{4}-\\d{3}/],[\"YYYY-MM\",/\\d{4}-\\d\\d/,!1],[\"YYYYYYMMDD\",/[+-]\\d{10}/],[\"YYYYMMDD\",/\\d{8}/],[\"GGGG[W]WWE\",/\\d{4}W\\d{3}/],[\"GGGG[W]WW\",/\\d{4}W\\d{2}/,!1],[\"YYYYDDD\",/\\d{7}/],[\"YYYYMM\",/\\d{6}/,!1],[\"YYYY\",/\\d{4}/,!1]],Di=[[\"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/]],Si=/^\\/?Date\\((-?\\d+)/i,Ci=/^(?:(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}))$/,Ti={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Mi(t){var e,i,n,o,r,s,a=t._i,l=_i.exec(a)||wi.exec(a);if(l){for(g(t).iso=!0,e=0,i=xi.length;e<i;e++)if(xi[e][1].exec(l[1])){o=xi[e][0],n=!1!==xi[e][2];break}if(null==o)return void(t._isValid=!1);if(l[3]){for(e=0,i=Di.length;e<i;e++)if(Di[e][1].exec(l[3])){r=(l[2]||\" \")+Di[e][0];break}if(null==r)return void(t._isValid=!1)}if(!n&&null!=r)return void(t._isValid=!1);if(l[4]){if(!ki.exec(l[4]))return void(t._isValid=!1);s=\"Z\"}t._f=o+(r||\"\")+(s||\"\"),Hi(t)}else t._isValid=!1}function Oi(t,e,i,n,o,r){var s=[Ei(t),ie.indexOf(e),parseInt(i,10),parseInt(n,10),parseInt(o,10)];return r&&s.push(parseInt(r,10)),s}function Ei(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function Pi(t){return t.replace(/\\([^)]*\\)|[\\n\\t]/g,\" \").replace(/(\\s\\s+)/g,\" \").replace(/^\\s\\s*/,\"\").replace(/\\s\\s*$/,\"\")}function Ai(t,e,i){return!t||Ne.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(g(i).weekdayMismatch=!0,i._isValid=!1,!1)}function Li(t,e,i){if(t)return Ti[t];if(e)return 0;var n=parseInt(i,10),o=n%100;return(n-o)/100*60+o}function Ii(t){var e,i=Ci.exec(Pi(t._i));if(i){if(e=Oi(i[4],i[3],i[2],i[5],i[6],i[7]),!Ai(i[1],e,t))return;t._a=e,t._tzm=Li(i[8],i[9],i[10]),t._d=_e.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),g(t).rfc2822=!0}else t._isValid=!1}function Ni(t){var e=Si.exec(t._i);null===e?(Mi(t),!1===t._isValid&&(delete t._isValid,Ii(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:o.createFromInputFallback(t)))):t._d=new Date(+e[1])}function Fi(t,e,i){return null!=t?t:null!=e?e:i}function Ri(t){var e=new Date(o.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function Yi(t){var e,i,n,o,r,s=[];if(!t._d){for(n=Ri(t),t._w&&null==t._a[Ut]&&null==t._a[Vt]&&ji(t),null!=t._dayOfYear&&(r=Fi(t._a[Wt],n[Wt]),(t._dayOfYear>ve(r)||0===t._dayOfYear)&&(g(t)._overflowDayOfYear=!0),i=_e(r,0,t._dayOfYear),t._a[Vt]=i.getUTCMonth(),t._a[Ut]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=s[e]=n[e];for(;e<7;e++)t._a[e]=s[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[Xt]&&0===t._a[qt]&&0===t._a[Zt]&&0===t._a[$t]&&(t._nextDay=!0,t._a[Xt]=0),t._d=(t._useUTC?_e:be).apply(null,s),o=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Xt]=24),t._w&&void 0!==t._w.d&&t._w.d!==o&&(g(t).weekdayMismatch=!0)}}function ji(t){var e,i,n,o,r,s,a,l,h;null!=(e=t._w).GG||null!=e.W||null!=e.E?(r=1,s=4,i=Fi(e.GG,t._a[Wt],xe(qi(),1,4).year),n=Fi(e.W,1),((o=Fi(e.E,1))<1||o>7)&&(l=!0)):(r=t._locale._week.dow,s=t._locale._week.doy,h=xe(qi(),r,s),i=Fi(e.gg,t._a[Wt],h.year),n=Fi(e.w,h.week),null!=e.d?((o=e.d)<0||o>6)&&(l=!0):null!=e.e?(o=e.e+r,(e.e<0||e.e>6)&&(l=!0)):o=r),n<1||n>De(i,r,s)?g(t)._overflowWeeks=!0:null!=l?g(t)._overflowWeekday=!0:(a=ke(i,n,o,r,s),t._a[Wt]=a.year,t._dayOfYear=a.dayOfYear)}function Hi(t){if(t._f!==o.ISO_8601)if(t._f!==o.RFC_2822){t._a=[],g(t).empty=!0;var e,i,n,r,s,a,l=\"\"+t._i,h=l.length,u=0;for(n=V(t._f,t._locale).match(R)||[],e=0;e<n.length;e++)r=n[e],(i=(l.match(Ft(r,t))||[])[0])&&((s=l.substr(0,l.indexOf(i))).length>0&&g(t).unusedInput.push(s),l=l.slice(l.indexOf(i)+i.length),u+=i.length),H[r]?(i?g(t).empty=!1:g(t).unusedTokens.push(r),Gt(r,i,t)):t._strict&&!i&&g(t).unusedTokens.push(r);g(t).charsLeftOver=h-u,l.length>0&&g(t).unusedInput.push(l),t._a[Xt]<=12&&!0===g(t).bigHour&&t._a[Xt]>0&&(g(t).bigHour=void 0),g(t).parsedDateParts=t._a.slice(0),g(t).meridiem=t._meridiem,t._a[Xt]=zi(t._locale,t._a[Xt],t._meridiem),null!==(a=g(t).era)&&(t._a[Wt]=t._locale.erasConvertYear(a,t._a[Wt])),Yi(t),bi(t)}else Ii(t);else Mi(t)}function zi(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}function Gi(t){var e,i,n,o,r,s,a=!1;if(0===t._f.length)return g(t).invalidFormat=!0,void(t._d=new Date(NaN));for(o=0;o<t._f.length;o++)r=0,s=!1,e=k({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[o],Hi(e),y(e)&&(s=!0),r+=g(e).charsLeftOver,r+=10*g(e).unusedTokens.length,g(e).score=r,a?r<n&&(n=r,i=e):(null==n||r<n||s)&&(n=r,i=e,s&&(a=!0));f(t,i||e)}function Bi(t){if(!t._d){var e=rt(t._i),i=void 0===e.day?e.date:e.day;t._a=p([e.year,e.month,i,e.hour,e.minute,e.second,e.millisecond],(function(t){return t&&parseInt(t,10)})),Yi(t)}}function Wi(t){var e=new x(bi(Vi(t)));return e._nextDay&&(e.add(1,\"d\"),e._nextDay=void 0),e}function Vi(t){var e=t._i,i=t._f;return t._locale=t._locale||gi(t._l),null===e||void 0===i&&\"\"===e?b({nullInput:!0}):(\"string\"==typeof e&&(t._i=e=t._locale.preparse(e)),D(e)?new x(bi(e)):(c(e)?t._d=e:s(i)?Gi(t):i?Hi(t):Ui(t),y(t)||(t._d=null),t))}function Ui(t){var e=t._i;u(e)?t._d=new Date(o.now()):c(e)?t._d=new Date(e.valueOf()):\"string\"==typeof e?Ni(t):s(e)?(t._a=p(e.slice(0),(function(t){return parseInt(t,10)})),Yi(t)):a(e)?Bi(t):d(e)?t._d=new Date(e):o.createFromInputFallback(t)}function Xi(t,e,i,n,o){var r={};return!0!==e&&!1!==e||(n=e,e=void 0),!0!==i&&!1!==i||(n=i,i=void 0),(a(t)&&h(t)||s(t)&&0===t.length)&&(t=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=o,r._l=i,r._i=t,r._f=e,r._strict=n,Wi(r)}function qi(t,e,i,n){return Xi(t,e,i,n,!1)}o.createFromInputFallback=C(\"value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.\",(function(t){t._d=new Date(t._i+(t._useUTC?\" UTC\":\"\"))})),o.ISO_8601=function(){},o.RFC_2822=function(){};var Zi=C(\"moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/\",(function(){var t=qi.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:b()})),$i=C(\"moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/\",(function(){var t=qi.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:b()}));function Ki(t,e){var i,n;if(1===e.length&&s(e[0])&&(e=e[0]),!e.length)return qi();for(i=e[0],n=1;n<e.length;++n)e[n].isValid()&&!e[n][t](i)||(i=e[n]);return i}function Ji(){return Ki(\"isBefore\",[].slice.call(arguments,0))}function Qi(){return Ki(\"isAfter\",[].slice.call(arguments,0))}var tn=function(){return Date.now?Date.now():+new Date},en=[\"year\",\"quarter\",\"month\",\"week\",\"day\",\"hour\",\"minute\",\"second\",\"millisecond\"];function nn(t){var e,i,n=!1;for(e in t)if(l(t,e)&&(-1===Bt.call(en,e)||null!=t[e]&&isNaN(t[e])))return!1;for(i=0;i<en.length;++i)if(t[en[i]]){if(n)return!1;parseFloat(t[en[i]])!==dt(t[en[i]])&&(n=!0)}return!0}function on(){return this._isValid}function rn(){return Mn(NaN)}function sn(t){var e=rt(t),i=e.year||0,n=e.quarter||0,o=e.month||0,r=e.week||e.isoWeek||0,s=e.day||0,a=e.hour||0,l=e.minute||0,h=e.second||0,u=e.millisecond||0;this._isValid=nn(e),this._milliseconds=+u+1e3*h+6e4*l+1e3*a*60*60,this._days=+s+7*r,this._months=+o+3*n+12*i,this._data={},this._locale=gi(),this._bubble()}function an(t){return t instanceof sn}function ln(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function hn(t,e,i){var n,o=Math.min(t.length,e.length),r=Math.abs(t.length-e.length),s=0;for(n=0;n<o;n++)(i&&t[n]!==e[n]||!i&&dt(t[n])!==dt(e[n]))&&s++;return s+r}function un(t,e){z(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)}))}un(\"Z\",\":\"),un(\"ZZ\",\"\"),Nt(\"Z\",At),Nt(\"ZZ\",At),Ht([\"Z\",\"ZZ\"],(function(t,e,i){i._useUTC=!0,i._tzm=cn(At,t)}));var dn=/([\\+\\-]|\\d\\d)/gi;function cn(t,e){var i,n,o=(e||\"\").match(t);return null===o?null:0===(n=60*(i=((o[o.length-1]||[])+\"\").match(dn)||[\"-\",0,0])[1]+dt(i[2]))?0:\"+\"===i[0]?n:-n}function pn(t,e){var i,n;return e._isUTC?(i=e.clone(),n=(D(t)||c(t)?t.valueOf():qi(t).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+n),o.updateOffset(i,!1),i):qi(t).local()}function fn(t){return-Math.round(t._d.getTimezoneOffset())}function mn(t,e,i){var n,r=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if(\"string\"==typeof t){if(null===(t=cn(At,t)))return this}else Math.abs(t)<16&&!i&&(t*=60);return!this._isUTC&&e&&(n=fn(this)),this._offset=t,this._isUTC=!0,null!=n&&this.add(n,\"m\"),r!==t&&(!e||this._changeInProgress?Ln(this,Mn(t-r,\"m\"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:fn(this)}function vn(t,e){return null!=t?(\"string\"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function gn(t){return this.utcOffset(0,t)}function yn(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(fn(this),\"m\")),this}function bn(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if(\"string\"==typeof this._i){var t=cn(Pt,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this}function _n(t){return!!this.isValid()&&(t=t?qi(t).utcOffset():0,(this.utcOffset()-t)%60==0)}function wn(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function kn(){if(!u(this._isDSTShifted))return this._isDSTShifted;var t,e={};return k(e,this),(e=Vi(e))._a?(t=e._isUTC?m(e._a):qi(e._a),this._isDSTShifted=this.isValid()&&hn(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function xn(){return!!this.isValid()&&!this._isUTC}function Dn(){return!!this.isValid()&&this._isUTC}function Sn(){return!!this.isValid()&&this._isUTC&&0===this._offset}o.updateOffset=function(){};var Cn=/^(-|\\+)?(?:(\\d*)[. ])?(\\d+):(\\d+)(?::(\\d+)(\\.\\d*)?)?$/,Tn=/^(-|\\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Mn(t,e){var i,n,o,r=t,s=null;return an(t)?r={ms:t._milliseconds,d:t._days,M:t._months}:d(t)||!isNaN(+t)?(r={},e?r[e]=+t:r.milliseconds=+t):(s=Cn.exec(t))?(i=\"-\"===s[1]?-1:1,r={y:0,d:dt(s[Ut])*i,h:dt(s[Xt])*i,m:dt(s[qt])*i,s:dt(s[Zt])*i,ms:dt(ln(1e3*s[$t]))*i}):(s=Tn.exec(t))?(i=\"-\"===s[1]?-1:1,r={y:On(s[2],i),M:On(s[3],i),w:On(s[4],i),d:On(s[5],i),h:On(s[6],i),m:On(s[7],i),s:On(s[8],i)}):null==r?r={}:\"object\"==typeof r&&(\"from\"in r||\"to\"in r)&&(o=Pn(qi(r.from),qi(r.to)),(r={}).ms=o.milliseconds,r.M=o.months),n=new sn(r),an(t)&&l(t,\"_locale\")&&(n._locale=t._locale),an(t)&&l(t,\"_isValid\")&&(n._isValid=t._isValid),n}function On(t,e){var i=t&&parseFloat(t.replace(\",\",\".\"));return(isNaN(i)?0:i)*e}function En(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 Pn(t,e){var i;return t.isValid()&&e.isValid()?(e=pn(e,t),t.isBefore(e)?i=En(t,e):((i=En(e,t)).milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}function An(t,e){return function(i,n){var o;return null===n||isNaN(+n)||(O(e,\"moment().\"+e+\"(period, number) is deprecated. Please use moment().\"+e+\"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.\"),o=i,i=n,n=o),Ln(this,Mn(i,n),t),this}}function Ln(t,e,i,n){var r=e._milliseconds,s=ln(e._days),a=ln(e._months);t.isValid()&&(n=null==n||n,a&&ue(t,pt(t,\"Month\")+a*i),s&&ft(t,\"Date\",pt(t,\"Date\")+s*i),r&&t._d.setTime(t._d.valueOf()+r*i),n&&o.updateOffset(t,s||a))}Mn.fn=sn.prototype,Mn.invalid=rn;var In=An(1,\"add\"),Nn=An(-1,\"subtract\");function Fn(t){return\"string\"==typeof t||t instanceof String}function Rn(t){return D(t)||c(t)||Fn(t)||d(t)||jn(t)||Yn(t)||null==t}function Yn(t){var e,i,n=a(t)&&!h(t),o=!1,r=[\"years\",\"year\",\"y\",\"months\",\"month\",\"M\",\"days\",\"day\",\"d\",\"dates\",\"date\",\"D\",\"hours\",\"hour\",\"h\",\"minutes\",\"minute\",\"m\",\"seconds\",\"second\",\"s\",\"milliseconds\",\"millisecond\",\"ms\"];for(e=0;e<r.length;e+=1)i=r[e],o=o||l(t,i);return n&&o}function jn(t){var e=s(t),i=!1;return e&&(i=0===t.filter((function(e){return!d(e)&&Fn(t)})).length),e&&i}function Hn(t){var e,i,n=a(t)&&!h(t),o=!1,r=[\"sameDay\",\"nextDay\",\"lastDay\",\"nextWeek\",\"lastWeek\",\"sameElse\"];for(e=0;e<r.length;e+=1)i=r[e],o=o||l(t,i);return n&&o}function zn(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\"}function Gn(t,e){1===arguments.length&&(arguments[0]?Rn(arguments[0])?(t=arguments[0],e=void 0):Hn(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var i=t||qi(),n=pn(i,this).startOf(\"day\"),r=o.calendarFormat(this,n)||\"sameElse\",s=e&&(E(e[r])?e[r].call(this,i):e[r]);return this.format(s||this.localeData().calendar(r,this,qi(i)))}function Bn(){return new x(this)}function Wn(t,e){var i=D(t)?t:qi(t);return!(!this.isValid()||!i.isValid())&&(\"millisecond\"===(e=ot(e)||\"millisecond\")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(e).valueOf())}function Vn(t,e){var i=D(t)?t:qi(t);return!(!this.isValid()||!i.isValid())&&(\"millisecond\"===(e=ot(e)||\"millisecond\")?this.valueOf()<i.valueOf():this.clone().endOf(e).valueOf()<i.valueOf())}function Un(t,e,i,n){var o=D(t)?t:qi(t),r=D(e)?e:qi(e);return!!(this.isValid()&&o.isValid()&&r.isValid())&&(\"(\"===(n=n||\"()\")[0]?this.isAfter(o,i):!this.isBefore(o,i))&&(\")\"===n[1]?this.isBefore(r,i):!this.isAfter(r,i))}function Xn(t,e){var i,n=D(t)?t:qi(t);return!(!this.isValid()||!n.isValid())&&(\"millisecond\"===(e=ot(e)||\"millisecond\")?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(e).valueOf()<=i&&i<=this.clone().endOf(e).valueOf()))}function qn(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function Zn(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function $n(t,e,i){var n,o,r;if(!this.isValid())return NaN;if(!(n=pn(t,this)).isValid())return NaN;switch(o=6e4*(n.utcOffset()-this.utcOffset()),e=ot(e)){case\"year\":r=Kn(this,n)/12;break;case\"month\":r=Kn(this,n);break;case\"quarter\":r=Kn(this,n)/3;break;case\"second\":r=(this-n)/1e3;break;case\"minute\":r=(this-n)/6e4;break;case\"hour\":r=(this-n)/36e5;break;case\"day\":r=(this-n-o)/864e5;break;case\"week\":r=(this-n-o)/6048e5;break;default:r=this-n}return i?r:ut(r)}function Kn(t,e){if(t.date()<e.date())return-Kn(e,t);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 Jn(){return this.clone().locale(\"en\").format(\"ddd MMM DD YYYY HH:mm:ss [GMT]ZZ\")}function Qn(t){if(!this.isValid())return null;var e=!0!==t,i=e?this.clone().utc():this;return i.year()<0||i.year()>9999?W(i,e?\"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]\":\"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ\"):E(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace(\"Z\",W(i,\"Z\")):W(i,e?\"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]\":\"YYYY-MM-DD[T]HH:mm:ss.SSSZ\")}function to(){if(!this.isValid())return\"moment.invalid(/* \"+this._i+\" */)\";var t,e,i,n,o=\"moment\",r=\"\";return this.isLocal()||(o=0===this.utcOffset()?\"moment.utc\":\"moment.parseZone\",r=\"Z\"),t=\"[\"+o+\'(\"]\',e=0<=this.year()&&this.year()<=9999?\"YYYY\":\"YYYYYY\",i=\"-MM-DD[T]HH:mm:ss.SSS\",n=r+\'[\")]\',this.format(t+e+i+n)}function eo(t){t||(t=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var e=W(this,t);return this.localeData().postformat(e)}function io(t,e){return this.isValid()&&(D(t)&&t.isValid()||qi(t).isValid())?Mn({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function no(t){return this.from(qi(),t)}function oo(t,e){return this.isValid()&&(D(t)&&t.isValid()||qi(t).isValid())?Mn({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function ro(t){return this.to(qi(),t)}function so(t){var e;return void 0===t?this._locale._abbr:(null!=(e=gi(t))&&(this._locale=e),this)}o.defaultFormat=\"YYYY-MM-DDTHH:mm:ssZ\",o.defaultFormatUtc=\"YYYY-MM-DDTHH:mm:ss[Z]\";var ao=C(\"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 lo(){return this._locale}var ho=1e3,uo=60*ho,co=60*uo,po=3506328*co;function fo(t,e){return(t%e+e)%e}function mo(t,e,i){return t<100&&t>=0?new Date(t+400,e,i)-po:new Date(t,e,i).valueOf()}function vo(t,e,i){return t<100&&t>=0?Date.UTC(t+400,e,i)-po:Date.UTC(t,e,i)}function go(t){var e,i;if(void 0===(t=ot(t))||\"millisecond\"===t||!this.isValid())return this;switch(i=this._isUTC?vo:mo,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-=fo(e+(this._isUTC?0:this.utcOffset()*uo),co);break;case\"minute\":e=this._d.valueOf(),e-=fo(e,uo);break;case\"second\":e=this._d.valueOf(),e-=fo(e,ho)}return this._d.setTime(e),o.updateOffset(this,!0),this}function yo(t){var e,i;if(void 0===(t=ot(t))||\"millisecond\"===t||!this.isValid())return this;switch(i=this._isUTC?vo:mo,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+=co-fo(e+(this._isUTC?0:this.utcOffset()*uo),co)-1;break;case\"minute\":e=this._d.valueOf(),e+=uo-fo(e,uo)-1;break;case\"second\":e=this._d.valueOf(),e+=ho-fo(e,ho)-1}return this._d.setTime(e),o.updateOffset(this,!0),this}function bo(){return this._d.valueOf()-6e4*(this._offset||0)}function _o(){return Math.floor(this.valueOf()/1e3)}function wo(){return new Date(this.valueOf())}function ko(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function xo(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function Do(){return this.isValid()?this.toISOString():null}function So(){return y(this)}function Co(){return f({},g(this))}function To(){return g(this).overflow}function Mo(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Oo(t,e){var i,n,r,s=this._eras||gi(\"en\")._eras;for(i=0,n=s.length;i<n;++i){switch(typeof s[i].since){case\"string\":r=o(s[i].since).startOf(\"day\"),s[i].since=r.valueOf()}switch(typeof s[i].until){case\"undefined\":s[i].until=1/0;break;case\"string\":r=o(s[i].until).startOf(\"day\").valueOf(),s[i].until=r.valueOf()}}return s}function Eo(t,e,i){var n,o,r,s,a,l=this.eras();for(t=t.toUpperCase(),n=0,o=l.length;n<o;++n)if(r=l[n].name.toUpperCase(),s=l[n].abbr.toUpperCase(),a=l[n].narrow.toUpperCase(),i)switch(e){case\"N\":case\"NN\":case\"NNN\":if(s===t)return l[n];break;case\"NNNN\":if(r===t)return l[n];break;case\"NNNNN\":if(a===t)return l[n]}else if([r,s,a].indexOf(t)>=0)return l[n]}function Po(t,e){var i=t.since<=t.until?1:-1;return void 0===e?o(t.since).year():o(t.since).year()+(e-t.offset)*i}function Ao(){var t,e,i,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t){if(i=this.clone().startOf(\"day\").valueOf(),n[t].since<=i&&i<=n[t].until)return n[t].name;if(n[t].until<=i&&i<=n[t].since)return n[t].name}return\"\"}function Lo(){var t,e,i,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t){if(i=this.clone().startOf(\"day\").valueOf(),n[t].since<=i&&i<=n[t].until)return n[t].narrow;if(n[t].until<=i&&i<=n[t].since)return n[t].narrow}return\"\"}function Io(){var t,e,i,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t){if(i=this.clone().startOf(\"day\").valueOf(),n[t].since<=i&&i<=n[t].until)return n[t].abbr;if(n[t].until<=i&&i<=n[t].since)return n[t].abbr}return\"\"}function No(){var t,e,i,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t)if(i=r[t].since<=r[t].until?1:-1,n=this.clone().startOf(\"day\").valueOf(),r[t].since<=n&&n<=r[t].until||r[t].until<=n&&n<=r[t].since)return(this.year()-o(r[t].since).year())*i+r[t].offset;return this.year()}function Fo(t){return l(this,\"_erasNameRegex\")||Bo.call(this),t?this._erasNameRegex:this._erasRegex}function Ro(t){return l(this,\"_erasAbbrRegex\")||Bo.call(this),t?this._erasAbbrRegex:this._erasRegex}function Yo(t){return l(this,\"_erasNarrowRegex\")||Bo.call(this),t?this._erasNarrowRegex:this._erasRegex}function jo(t,e){return e.erasAbbrRegex(t)}function Ho(t,e){return e.erasNameRegex(t)}function zo(t,e){return e.erasNarrowRegex(t)}function Go(t,e){return e._eraYearOrdinalRegex||Ot}function Bo(){var t,e,i=[],n=[],o=[],r=[],s=this.eras();for(t=0,e=s.length;t<e;++t)n.push(Yt(s[t].name)),i.push(Yt(s[t].abbr)),o.push(Yt(s[t].narrow)),r.push(Yt(s[t].name)),r.push(Yt(s[t].abbr)),r.push(Yt(s[t].narrow));this._erasRegex=new RegExp(\"^(\"+r.join(\"|\")+\")\",\"i\"),this._erasNameRegex=new RegExp(\"^(\"+n.join(\"|\")+\")\",\"i\"),this._erasAbbrRegex=new RegExp(\"^(\"+i.join(\"|\")+\")\",\"i\"),this._erasNarrowRegex=new RegExp(\"^(\"+o.join(\"|\")+\")\",\"i\")}function Wo(t,e){z(0,[t,t.length],0,e)}function Vo(t){return Ko.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Uo(t){return Ko.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Xo(){return De(this.year(),1,4)}function qo(){return De(this.isoWeekYear(),1,4)}function Zo(){var t=this.localeData()._week;return De(this.year(),t.dow,t.doy)}function $o(){var t=this.localeData()._week;return De(this.weekYear(),t.dow,t.doy)}function Ko(t,e,i,n,o){var r;return null==t?xe(this,n,o).year:(e>(r=De(t,n,o))&&(e=r),Jo.call(this,t,e,i,n,o))}function Jo(t,e,i,n,o){var r=ke(t,e,i,n,o),s=_e(r.year,0,r.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}function Qo(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}z(\"N\",0,0,\"eraAbbr\"),z(\"NN\",0,0,\"eraAbbr\"),z(\"NNN\",0,0,\"eraAbbr\"),z(\"NNNN\",0,0,\"eraName\"),z(\"NNNNN\",0,0,\"eraNarrow\"),z(\"y\",[\"y\",1],\"yo\",\"eraYear\"),z(\"y\",[\"yy\",2],0,\"eraYear\"),z(\"y\",[\"yyy\",3],0,\"eraYear\"),z(\"y\",[\"yyyy\",4],0,\"eraYear\"),Nt(\"N\",jo),Nt(\"NN\",jo),Nt(\"NNN\",jo),Nt(\"NNNN\",Ho),Nt(\"NNNNN\",zo),Ht([\"N\",\"NN\",\"NNN\",\"NNNN\",\"NNNNN\"],(function(t,e,i,n){var o=i._locale.erasParse(t,n,i._strict);o?g(i).era=o:g(i).invalidEra=t})),Nt(\"y\",Ot),Nt(\"yy\",Ot),Nt(\"yyy\",Ot),Nt(\"yyyy\",Ot),Nt(\"yo\",Go),Ht([\"y\",\"yy\",\"yyy\",\"yyyy\"],Wt),Ht([\"yo\"],(function(t,e,i,n){var o;i._locale._eraYearOrdinalRegex&&(o=t.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?e[Wt]=i._locale.eraYearOrdinalParse(t,o):e[Wt]=parseInt(t,10)})),z(0,[\"gg\",2],0,(function(){return this.weekYear()%100})),z(0,[\"GG\",2],0,(function(){return this.isoWeekYear()%100})),Wo(\"gggg\",\"weekYear\"),Wo(\"ggggg\",\"weekYear\"),Wo(\"GGGG\",\"isoWeekYear\"),Wo(\"GGGGG\",\"isoWeekYear\"),nt(\"weekYear\",\"gg\"),nt(\"isoWeekYear\",\"GG\"),at(\"weekYear\",1),at(\"isoWeekYear\",1),Nt(\"G\",Et),Nt(\"g\",Et),Nt(\"GG\",xt,bt),Nt(\"gg\",xt,bt),Nt(\"GGGG\",Tt,wt),Nt(\"gggg\",Tt,wt),Nt(\"GGGGG\",Mt,kt),Nt(\"ggggg\",Mt,kt),zt([\"gggg\",\"ggggg\",\"GGGG\",\"GGGGG\"],(function(t,e,i,n){e[n.substr(0,2)]=dt(t)})),zt([\"gg\",\"GG\"],(function(t,e,i,n){e[n]=o.parseTwoDigitYear(t)})),z(\"Q\",0,\"Qo\",\"quarter\"),nt(\"quarter\",\"Q\"),at(\"quarter\",7),Nt(\"Q\",yt),Ht(\"Q\",(function(t,e){e[Vt]=3*(dt(t)-1)})),z(\"D\",[\"DD\",2],\"Do\",\"date\"),nt(\"date\",\"D\"),at(\"date\",9),Nt(\"D\",xt),Nt(\"DD\",xt,bt),Nt(\"Do\",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),Ht([\"D\",\"DD\"],Ut),Ht(\"Do\",(function(t,e){e[Ut]=dt(t.match(xt)[0])}));var tr=ct(\"Date\",!0);function er(t){var e=Math.round((this.clone().startOf(\"day\")-this.clone().startOf(\"year\"))/864e5)+1;return null==t?e:this.add(t-e,\"d\")}z(\"DDD\",[\"DDDD\",3],\"DDDo\",\"dayOfYear\"),nt(\"dayOfYear\",\"DDD\"),at(\"dayOfYear\",4),Nt(\"DDD\",Ct),Nt(\"DDDD\",_t),Ht([\"DDD\",\"DDDD\"],(function(t,e,i){i._dayOfYear=dt(t)})),z(\"m\",[\"mm\",2],0,\"minute\"),nt(\"minute\",\"m\"),at(\"minute\",14),Nt(\"m\",xt),Nt(\"mm\",xt,bt),Ht([\"m\",\"mm\"],qt);var ir=ct(\"Minutes\",!1);z(\"s\",[\"ss\",2],0,\"second\"),nt(\"second\",\"s\"),at(\"second\",15),Nt(\"s\",xt),Nt(\"ss\",xt,bt),Ht([\"s\",\"ss\"],Zt);var nr,or,rr=ct(\"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()})),nt(\"millisecond\",\"ms\"),at(\"millisecond\",16),Nt(\"S\",Ct,yt),Nt(\"SS\",Ct,bt),Nt(\"SSS\",Ct,_t),nr=\"SSSS\";nr.length<=9;nr+=\"S\")Nt(nr,Ot);function sr(t,e){e[$t]=dt(1e3*(\"0.\"+t))}for(nr=\"S\";nr.length<=9;nr+=\"S\")Ht(nr,sr);function ar(){return this._isUTC?\"UTC\":\"\"}function lr(){return this._isUTC?\"Coordinated Universal Time\":\"\"}or=ct(\"Milliseconds\",!1),z(\"z\",0,0,\"zoneAbbr\"),z(\"zz\",0,0,\"zoneName\");var hr=x.prototype;function ur(t){return qi(1e3*t)}function dr(){return qi.apply(null,arguments).parseZone()}function cr(t){return t}hr.add=In,hr.calendar=Gn,hr.clone=Bn,hr.diff=$n,hr.endOf=yo,hr.format=eo,hr.from=io,hr.fromNow=no,hr.to=oo,hr.toNow=ro,hr.get=mt,hr.invalidAt=To,hr.isAfter=Wn,hr.isBefore=Vn,hr.isBetween=Un,hr.isSame=Xn,hr.isSameOrAfter=qn,hr.isSameOrBefore=Zn,hr.isValid=So,hr.lang=ao,hr.locale=so,hr.localeData=lo,hr.max=$i,hr.min=Zi,hr.parsingFlags=Co,hr.set=vt,hr.startOf=go,hr.subtract=Nn,hr.toArray=ko,hr.toObject=xo,hr.toDate=wo,hr.toISOString=Qn,hr.inspect=to,\"undefined\"!=typeof Symbol&&null!=Symbol.for&&(hr[Symbol.for(\"nodejs.util.inspect.custom\")]=function(){return\"Moment<\"+this.format()+\">\"}),hr.toJSON=Do,hr.toString=Jn,hr.unix=_o,hr.valueOf=bo,hr.creationData=Mo,hr.eraName=Ao,hr.eraNarrow=Lo,hr.eraAbbr=Io,hr.eraYear=No,hr.year=ge,hr.isLeapYear=ye,hr.weekYear=Vo,hr.isoWeekYear=Uo,hr.quarter=hr.quarters=Qo,hr.month=de,hr.daysInMonth=ce,hr.week=hr.weeks=Oe,hr.isoWeek=hr.isoWeeks=Ee,hr.weeksInYear=Zo,hr.weeksInWeekYear=$o,hr.isoWeeksInYear=Xo,hr.isoWeeksInISOWeekYear=qo,hr.date=tr,hr.day=hr.days=Ve,hr.weekday=Ue,hr.isoWeekday=Xe,hr.dayOfYear=er,hr.hour=hr.hours=oi,hr.minute=hr.minutes=ir,hr.second=hr.seconds=rr,hr.millisecond=hr.milliseconds=or,hr.utcOffset=mn,hr.utc=gn,hr.local=yn,hr.parseZone=bn,hr.hasAlignedHourOffset=_n,hr.isDST=wn,hr.isLocal=xn,hr.isUtcOffset=Dn,hr.isUtc=Sn,hr.isUTC=Sn,hr.zoneAbbr=ar,hr.zoneName=lr,hr.dates=C(\"dates accessor is deprecated. Use date instead.\",tr),hr.months=C(\"months accessor is deprecated. Use month instead\",de),hr.years=C(\"years accessor is deprecated. Use year instead\",ge),hr.zone=C(\"moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/\",vn),hr.isDSTShifted=C(\"isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information\",kn);var pr=L.prototype;function fr(t,e,i,n){var o=gi(),r=m().set(n,e);return o[i](r,t)}function mr(t,e,i){if(d(t)&&(e=t,t=void 0),t=t||\"\",null!=e)return fr(t,e,i,\"month\");var n,o=[];for(n=0;n<12;n++)o[n]=fr(t,n,i,\"month\");return o}function vr(t,e,i,n){\"boolean\"==typeof t?(d(e)&&(i=e,e=void 0),e=e||\"\"):(i=e=t,t=!1,d(e)&&(i=e,e=void 0),e=e||\"\");var o,r=gi(),s=t?r._week.dow:0,a=[];if(null!=i)return fr(e,(i+s)%7,n,\"day\");for(o=0;o<7;o++)a[o]=fr(e,(o+s)%7,n,\"day\");return a}function gr(t,e){return mr(t,e,\"months\")}function yr(t,e){return mr(t,e,\"monthsShort\")}function br(t,e,i){return vr(t,e,i,\"weekdays\")}function _r(t,e,i){return vr(t,e,i,\"weekdaysShort\")}function wr(t,e,i){return vr(t,e,i,\"weekdaysMin\")}pr.calendar=N,pr.longDateFormat=X,pr.invalidDate=Z,pr.ordinal=J,pr.preparse=cr,pr.postformat=cr,pr.relativeTime=tt,pr.pastFuture=et,pr.set=P,pr.eras=Oo,pr.erasParse=Eo,pr.erasConvertYear=Po,pr.erasAbbrRegex=Ro,pr.erasNameRegex=Fo,pr.erasNarrowRegex=Yo,pr.months=se,pr.monthsShort=ae,pr.monthsParse=he,pr.monthsRegex=fe,pr.monthsShortRegex=pe,pr.week=Se,pr.firstDayOfYear=Me,pr.firstDayOfWeek=Te,pr.weekdays=He,pr.weekdaysMin=Ge,pr.weekdaysShort=ze,pr.weekdaysParse=We,pr.weekdaysRegex=qe,pr.weekdaysShortRegex=Ze,pr.weekdaysMinRegex=$e,pr.isPM=ii,pr.meridiem=ri,fi(\"en\",{eras:[{since:\"0001-01-01\",until:1/0,offset:1,name:\"Anno Domini\",narrow:\"AD\",abbr:\"AD\"},{since:\"0000-12-31\",until:-1/0,offset:1,name:\"Before Christ\",narrow:\"BC\",abbr:\"BC\"}],dayOfMonthOrdinalParse:/\\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===dt(t%100/10)?\"th\":1===e?\"st\":2===e?\"nd\":3===e?\"rd\":\"th\")}}),o.lang=C(\"moment.lang is deprecated. Use moment.locale instead.\",fi),o.langData=C(\"moment.langData is deprecated. Use moment.localeData instead.\",gi);var kr=Math.abs;function xr(){var t=this._data;return this._milliseconds=kr(this._milliseconds),this._days=kr(this._days),this._months=kr(this._months),t.milliseconds=kr(t.milliseconds),t.seconds=kr(t.seconds),t.minutes=kr(t.minutes),t.hours=kr(t.hours),t.months=kr(t.months),t.years=kr(t.years),this}function Dr(t,e,i,n){var o=Mn(e,i);return t._milliseconds+=n*o._milliseconds,t._days+=n*o._days,t._months+=n*o._months,t._bubble()}function Sr(t,e){return Dr(this,t,e,1)}function Cr(t,e){return Dr(this,t,e,-1)}function Tr(t){return t<0?Math.floor(t):Math.ceil(t)}function Mr(){var t,e,i,n,o,r=this._milliseconds,s=this._days,a=this._months,l=this._data;return r>=0&&s>=0&&a>=0||r<=0&&s<=0&&a<=0||(r+=864e5*Tr(Er(a)+s),s=0,a=0),l.milliseconds=r%1e3,t=ut(r/1e3),l.seconds=t%60,e=ut(t/60),l.minutes=e%60,i=ut(e/60),l.hours=i%24,s+=ut(i/24),a+=o=ut(Or(s)),s-=Tr(Er(o)),n=ut(a/12),a%=12,l.days=s,l.months=a,l.years=n,this}function Or(t){return 4800*t/146097}function Er(t){return 146097*t/4800}function Pr(t){if(!this.isValid())return NaN;var e,i,n=this._milliseconds;if(\"month\"===(t=ot(t))||\"quarter\"===t||\"year\"===t)switch(e=this._days+n/864e5,i=this._months+Or(e),t){case\"month\":return i;case\"quarter\":return i/3;case\"year\":return i/12}else switch(e=this._days+Math.round(Er(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)}}function Ar(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*dt(this._months/12):NaN}function Lr(t){return function(){return this.as(t)}}var Ir=Lr(\"ms\"),Nr=Lr(\"s\"),Fr=Lr(\"m\"),Rr=Lr(\"h\"),Yr=Lr(\"d\"),jr=Lr(\"w\"),Hr=Lr(\"M\"),zr=Lr(\"Q\"),Gr=Lr(\"y\");function Br(){return Mn(this)}function Wr(t){return t=ot(t),this.isValid()?this[t+\"s\"]():NaN}function Vr(t){return function(){return this.isValid()?this._data[t]:NaN}}var Ur=Vr(\"milliseconds\"),Xr=Vr(\"seconds\"),qr=Vr(\"minutes\"),Zr=Vr(\"hours\"),$r=Vr(\"days\"),Kr=Vr(\"months\"),Jr=Vr(\"years\");function Qr(){return ut(this.days()/7)}var ts=Math.round,es={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function is(t,e,i,n,o){return o.relativeTime(e||1,!!i,t,n)}function ns(t,e,i,n){var o=Mn(t).abs(),r=ts(o.as(\"s\")),s=ts(o.as(\"m\")),a=ts(o.as(\"h\")),l=ts(o.as(\"d\")),h=ts(o.as(\"M\")),u=ts(o.as(\"w\")),d=ts(o.as(\"y\")),c=r<=i.ss&&[\"s\",r]||r<i.s&&[\"ss\",r]||s<=1&&[\"m\"]||s<i.m&&[\"mm\",s]||a<=1&&[\"h\"]||a<i.h&&[\"hh\",a]||l<=1&&[\"d\"]||l<i.d&&[\"dd\",l];return null!=i.w&&(c=c||u<=1&&[\"w\"]||u<i.w&&[\"ww\",u]),(c=c||h<=1&&[\"M\"]||h<i.M&&[\"MM\",h]||d<=1&&[\"y\"]||[\"yy\",d])[2]=e,c[3]=+t>0,c[4]=n,is.apply(null,c)}function os(t){return void 0===t?ts:\"function\"==typeof t&&(ts=t,!0)}function rs(t,e){return void 0!==es[t]&&(void 0===e?es[t]:(es[t]=e,\"s\"===t&&(es.ss=e-1),!0))}function ss(t,e){if(!this.isValid())return this.localeData().invalidDate();var i,n,o=!1,r=es;return\"object\"==typeof t&&(e=t,t=!1),\"boolean\"==typeof t&&(o=t),\"object\"==typeof e&&(r=Object.assign({},es,e),null!=e.s&&null==e.ss&&(r.ss=e.s-1)),n=ns(this,!o,r,i=this.localeData()),o&&(n=i.pastFuture(+this,n)),i.postformat(n)}var as=Math.abs;function ls(t){return(t>0)-(t<0)||+t}function hs(){if(!this.isValid())return this.localeData().invalidDate();var t,e,i,n,o,r,s,a,l=as(this._milliseconds)/1e3,h=as(this._days),u=as(this._months),d=this.asSeconds();return d?(t=ut(l/60),e=ut(t/60),l%=60,t%=60,i=ut(u/12),u%=12,n=l?l.toFixed(3).replace(/\\.?0+$/,\"\"):\"\",o=d<0?\"-\":\"\",r=ls(this._months)!==ls(d)?\"-\":\"\",s=ls(this._days)!==ls(d)?\"-\":\"\",a=ls(this._milliseconds)!==ls(d)?\"-\":\"\",o+\"P\"+(i?r+i+\"Y\":\"\")+(u?r+u+\"M\":\"\")+(h?s+h+\"D\":\"\")+(e||t||l?\"T\":\"\")+(e?a+e+\"H\":\"\")+(t?a+t+\"M\":\"\")+(l?a+n+\"S\":\"\")):\"P0D\"}var us=sn.prototype;return us.isValid=on,us.abs=xr,us.add=Sr,us.subtract=Cr,us.as=Pr,us.asMilliseconds=Ir,us.asSeconds=Nr,us.asMinutes=Fr,us.asHours=Rr,us.asDays=Yr,us.asWeeks=jr,us.asMonths=Hr,us.asQuarters=zr,us.asYears=Gr,us.valueOf=Ar,us._bubble=Mr,us.clone=Br,us.get=Wr,us.milliseconds=Ur,us.seconds=Xr,us.minutes=qr,us.hours=Zr,us.days=$r,us.weeks=Qr,us.months=Kr,us.years=Jr,us.humanize=ss,us.toISOString=hs,us.toString=hs,us.toJSON=hs,us.locale=so,us.localeData=lo,us.toIsoString=C(\"toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)\",hs),us.lang=ao,z(\"X\",0,0,\"unix\"),z(\"x\",0,0,\"valueOf\"),Nt(\"x\",Et),Nt(\"X\",Lt),Ht(\"X\",(function(t,e,i){i._d=new Date(1e3*parseFloat(t))})),Ht(\"x\",(function(t,e,i){i._d=new Date(dt(t))})),//! moment.js\no.version=\"2.29.1\",r(qi),o.fn=hr,o.min=Ji,o.max=Qi,o.now=tn,o.utc=m,o.unix=ur,o.months=gr,o.isDate=c,o.locale=fi,o.invalid=b,o.duration=Mn,o.isMoment=D,o.weekdays=br,o.parseZone=dr,o.localeData=gi,o.isDuration=an,o.monthsShort=yr,o.weekdaysMin=wr,o.defineLocale=mi,o.updateLocale=vi,o.locales=yi,o.weekdaysShort=_r,o.normalizeUnits=ot,o.relativeTimeRounding=os,o.relativeTimeThreshold=rs,o.calendarFormat=zn,o.prototype=hr,o.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\"},o}()}));i((function(t,e){(function(t){function e(t,e,i,n){var o={m:[\"eine Minute\",\"einer Minute\"],h:[\"eine Stunde\",\"einer Stunde\"],d:[\"ein Tag\",\"einem Tag\"],dd:[t+\" Tage\",t+\" Tagen\"],w:[\"eine Woche\",\"einer Woche\"],M:[\"ein Monat\",\"einem Monat\"],MM:[t+\" Monate\",t+\" Monaten\"],y:[\"ein Jahr\",\"einem Jahr\"],yy:[t+\" Jahre\",t+\" Jahren\"]};return e?o[i][0]:o[i][1]}t.defineLocale(\"de\",{months:\"Januar_Februar_M\u{e4}rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember\".split(\"_\"),monthsShort:\"Jan._Feb._M\u{e4}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,w:e,ww:\"%d Wochen\",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\\d{1,2}\\./,ordinal:\"%d.\",week:{dow:1,doy:4}})})(o)})),i((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],o=/^(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:o,monthsShortRegex:o,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\u{e9}rcoles_jueves_viernes_s\u{e1}bado\".split(\"_\"),weekdaysShort:\"dom._lun._mar._mi\u{e9}._jue._vie._s\u{e1}b.\".split(\"_\"),weekdaysMin:\"do_lu_ma_mi_ju_vi_s\u{e1}\".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\u{f1}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\u{ed}a\",dd:\"%d d\u{ed}as\",w:\"una semana\",ww:\"%d semanas\",M:\"un mes\",MM:\"%d meses\",y:\"un a\u{f1}o\",yy:\"%d a\u{f1}os\"},dayOfMonthOrdinalParse:/\\d{1,2}\u{ba}/,ordinal:\"%d\u{ba}\",week:{dow:1,doy:4},invalidDate:\"Fecha inv\u{e1}lida\"})})(o)})),i((function(t,e){(function(t){var e=/(janv\\.?|f\u{e9}vr\\.?|mars|avr\\.?|mai|juin|juil\\.?|ao\u{fb}t|sept\\.?|oct\\.?|nov\\.?|d\u{e9}c\\.?|janvier|f\u{e9}vrier|mars|avril|mai|juin|juillet|ao\u{fb}t|septembre|octobre|novembre|d\u{e9}cembre)/i,i=[/^janv/i,/^f\u{e9}vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\u{fb}t/i,/^sept/i,/^oct/i,/^nov/i,/^d\u{e9}c/i];t.defineLocale(\"fr\",{months:\"janvier_f\u{e9}vrier_mars_avril_mai_juin_juillet_ao\u{fb}t_septembre_octobre_novembre_d\u{e9}cembre\".split(\"_\"),monthsShort:\"janv._f\u{e9}vr._mars_avr._mai_juin_juil._ao\u{fb}t_sept._oct._nov._d\u{e9}c.\".split(\"_\"),monthsRegex:e,monthsShortRegex:e,monthsStrictRegex:/^(janvier|f\u{e9}vrier|mars|avril|mai|juin|juillet|ao\u{fb}t|septembre|octobre|novembre|d\u{e9}cembre)/i,monthsShortStrictRegex:/(janv\\.?|f\u{e9}vr\\.?|mars|avr\\.?|mai|juin|juil\\.?|ao\u{fb}t|sept\\.?|oct\\.?|nov\\.?|d\u{e9}c\\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,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\u{2019}hui \u{e0}] LT\",nextDay:\"[Demain \u{e0}] LT\",nextWeek:\"dddd [\u{e0}] LT\",lastDay:\"[Hier \u{e0}] LT\",lastWeek:\"dddd [dernier \u{e0}] 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\",w:\"une semaine\",ww:\"%d semaines\",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}})})(o)})),i((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\u{ec}_marted\u{ec}_mercoled\u{ec}_gioved\u{ec}_venerd\u{ec}_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:function(){return\"[Oggi a\"+(this.hours()>1?\"lle \":0===this.hours()?\" \":\"ll\'\")+\"]LT\"},nextDay:function(){return\"[Domani a\"+(this.hours()>1?\"lle \":0===this.hours()?\" \":\"ll\'\")+\"]LT\"},nextWeek:function(){return\"dddd [a\"+(this.hours()>1?\"lle \":0===this.hours()?\" \":\"ll\'\")+\"]LT\"},lastDay:function(){return\"[Ieri a\"+(this.hours()>1?\"lle \":0===this.hours()?\" \":\"ll\'\")+\"]LT\"},lastWeek:function(){switch(this.day()){case 0:return\"[La scorsa] dddd [a\"+(this.hours()>1?\"lle \":0===this.hours()?\" \":\"ll\'\")+\"]LT\";default:return\"[Lo scorso] dddd [a\"+(this.hours()>1?\"lle \":0===this.hours()?\" \":\"ll\'\")+\"]LT\"}},sameElse:\"L\"},relativeTime:{future:\"tra %s\",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\",w:\"una settimana\",ww:\"%d settimane\",M:\"un mese\",MM:\"%d mesi\",y:\"un anno\",yy:\"%d anni\"},dayOfMonthOrdinalParse:/\\d{1,2}\u{ba}/,ordinal:\"%d\u{ba}\",week:{dow:1,doy:4}})})(o)})),i((function(t,e){(function(t){t.defineLocale(\"ja\",{eras:[{since:\"2019-05-01\",offset:1,name:\"\u{4ee4}\u{548c}\",narrow:\"\u{32ff}\",abbr:\"R\"},{since:\"1989-01-08\",until:\"2019-04-30\",offset:1,name:\"\u{5e73}\u{6210}\",narrow:\"\u{337b}\",abbr:\"H\"},{since:\"1926-12-25\",until:\"1989-01-07\",offset:1,name:\"\u{662d}\u{548c}\",narrow:\"\u{337c}\",abbr:\"S\"},{since:\"1912-07-30\",until:\"1926-12-24\",offset:1,name:\"\u{5927}\u{6b63}\",narrow:\"\u{337d}\",abbr:\"T\"},{since:\"1873-01-01\",until:\"1912-07-29\",offset:6,name:\"\u{660e}\u{6cbb}\",narrow:\"\u{337e}\",abbr:\"M\"},{since:\"0001-01-01\",until:\"1873-12-31\",offset:1,name:\"\u{897f}\u{66a6}\",narrow:\"AD\",abbr:\"AD\"},{since:\"0000-12-31\",until:-1/0,offset:1,name:\"\u{7d00}\u{5143}\u{524d}\",narrow:\"BC\",abbr:\"BC\"}],eraYearOrdinalRegex:/(\u{5143}|\\d+)\u{5e74}/,eraYearOrdinalParse:function(t,e){return\"\u{5143}\"===e[1]?1:parseInt(e[1]||t,10)},months:\"1\u{6708}_2\u{6708}_3\u{6708}_4\u{6708}_5\u{6708}_6\u{6708}_7\u{6708}_8\u{6708}_9\u{6708}_10\u{6708}_11\u{6708}_12\u{6708}\".split(\"_\"),monthsShort:\"1\u{6708}_2\u{6708}_3\u{6708}_4\u{6708}_5\u{6708}_6\u{6708}_7\u{6708}_8\u{6708}_9\u{6708}_10\u{6708}_11\u{6708}_12\u{6708}\".split(\"_\"),weekdays:\"\u{65e5}\u{66dc}\u{65e5}_\u{6708}\u{66dc}\u{65e5}_\u{706b}\u{66dc}\u{65e5}_\u{6c34}\u{66dc}\u{65e5}_\u{6728}\u{66dc}\u{65e5}_\u{91d1}\u{66dc}\u{65e5}_\u{571f}\u{66dc}\u{65e5}\".split(\"_\"),weekdaysShort:\"\u{65e5}_\u{6708}_\u{706b}_\u{6c34}_\u{6728}_\u{91d1}_\u{571f}\".split(\"_\"),weekdaysMin:\"\u{65e5}_\u{6708}_\u{706b}_\u{6c34}_\u{6728}_\u{91d1}_\u{571f}\".split(\"_\"),longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"YYYY/MM/DD\",LL:\"YYYY\u{5e74}M\u{6708}D\u{65e5}\",LLL:\"YYYY\u{5e74}M\u{6708}D\u{65e5} HH:mm\",LLLL:\"YYYY\u{5e74}M\u{6708}D\u{65e5} dddd HH:mm\",l:\"YYYY/MM/DD\",ll:\"YYYY\u{5e74}M\u{6708}D\u{65e5}\",lll:\"YYYY\u{5e74}M\u{6708}D\u{65e5} HH:mm\",llll:\"YYYY\u{5e74}M\u{6708}D\u{65e5}(ddd) HH:mm\"},meridiemParse:/\u{5348}\u{524d}|\u{5348}\u{5f8c}/i,isPM:function(t){return\"\u{5348}\u{5f8c}\"===t},meridiem:function(t,e,i){return t<12?\"\u{5348}\u{524d}\":\"\u{5348}\u{5f8c}\"},calendar:{sameDay:\"[\u{4eca}\u{65e5}] LT\",nextDay:\"[\u{660e}\u{65e5}] LT\",nextWeek:function(t){return t.week()!==this.week()?\"[\u{6765}\u{9031}]dddd LT\":\"dddd LT\"},lastDay:\"[\u{6628}\u{65e5}] LT\",lastWeek:function(t){return this.week()!==t.week()?\"[\u{5148}\u{9031}]dddd LT\":\"dddd LT\"},sameElse:\"L\"},dayOfMonthOrdinalParse:/\\d{1,2}\u{65e5}/,ordinal:function(t,e){switch(e){case\"y\":return 1===t?\"\u{5143}\u{5e74}\":t+\"\u{5e74}\";case\"d\":case\"D\":case\"DDD\":return t+\"\u{65e5}\";default:return t}},relativeTime:{future:\"%s\u{5f8c}\",past:\"%s\u{524d}\",s:\"\u{6570}\u{79d2}\",ss:\"%d\u{79d2}\",m:\"1\u{5206}\",mm:\"%d\u{5206}\",h:\"1\u{6642}\u{9593}\",hh:\"%d\u{6642}\u{9593}\",d:\"1\u{65e5}\",dd:\"%d\u{65e5}\",M:\"1\u{30f6}\u{6708}\",MM:\"%d\u{30f6}\u{6708}\",y:\"1\u{5e74}\",yy:\"%d\u{5e74}\"}})})(o)})),i((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],o=/^(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:o,monthsShortRegex:o,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:\"\u{e9}\u{e9}n minuut\",mm:\"%d minuten\",h:\"\u{e9}\u{e9}n uur\",hh:\"%d uur\",d:\"\u{e9}\u{e9}n dag\",dd:\"%d dagen\",w:\"\u{e9}\u{e9}n week\",ww:\"%d weken\",M:\"\u{e9}\u{e9}n maand\",MM:\"%d maanden\",y:\"\u{e9}\u{e9}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}})})(o)})),i((function(t,e){(function(t){var e=\"stycze\u{144}_luty_marzec_kwiecie\u{144}_maj_czerwiec_lipiec_sierpie\u{144}_wrzesie\u{144}_pa\u{17a}dziernik_listopad_grudzie\u{144}\".split(\"_\"),i=\"stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u{15b}nia_pa\u{17a}dziernika_listopada_grudnia\".split(\"_\"),n=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^pa\u{17a}/i,/^lis/i,/^gru/i];function o(t){return t%10<5&&t%10>1&&~~(t/10)%10!=1}function r(t,e,i){var n=t+\" \";switch(i){case\"ss\":return n+(o(t)?\"sekundy\":\"sekund\");case\"m\":return e?\"minuta\":\"minut\u{119}\";case\"mm\":return n+(o(t)?\"minuty\":\"minut\");case\"h\":return e?\"godzina\":\"godzin\u{119}\";case\"hh\":return n+(o(t)?\"godziny\":\"godzin\");case\"ww\":return n+(o(t)?\"tygodnie\":\"tygodni\");case\"MM\":return n+(o(t)?\"miesi\u{105}ce\":\"miesi\u{119}cy\");case\"yy\":return n+(o(t)?\"lata\":\"lat\")}}t.defineLocale(\"pl\",{months:function(t,n){return t?/D MMMM/.test(n)?i[t.month()]:e[t.month()]:e},monthsShort:\"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u{17a}_lis_gru\".split(\"_\"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:\"niedziela_poniedzia\u{142}ek_wtorek_\u{15b}roda_czwartek_pi\u{105}tek_sobota\".split(\"_\"),weekdaysShort:\"ndz_pon_wt_\u{15b}r_czw_pt_sob\".split(\"_\"),weekdaysMin:\"Nd_Pn_Wt_\u{15a}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\u{15b} o] LT\",nextDay:\"[Jutro o] LT\",nextWeek:function(){switch(this.day()){case 0:return\"[W niedziel\u{119} o] LT\";case 2:return\"[We wtorek o] LT\";case 3:return\"[W \u{15b}rod\u{119} o] LT\";case 6:return\"[W sobot\u{119} o] LT\";default:return\"[W] dddd [o] LT\"}},lastDay:\"[Wczoraj o] LT\",lastWeek:function(){switch(this.day()){case 0:return\"[W zesz\u{142}\u{105} niedziel\u{119} o] LT\";case 3:return\"[W zesz\u{142}\u{105} \u{15b}rod\u{119} o] LT\";case 6:return\"[W zesz\u{142}\u{105} sobot\u{119} o] LT\";default:return\"[W zesz\u{142}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\u{144}\",dd:\"%d dni\",w:\"tydzie\u{144}\",ww:r,M:\"miesi\u{105}c\",MM:r,y:\"rok\",yy:r},dayOfMonthOrdinalParse:/\\d{1,2}\\./,ordinal:\"%d.\",week:{dow:1,doy:4}})})(o)})),i((function(t,e){(function(t){function e(t,e,i){var n,o;return\"m\"===i?e?\"\u{43c}\u{438}\u{43d}\u{443}\u{442}\u{430}\":\"\u{43c}\u{438}\u{43d}\u{443}\u{442}\u{443}\":t+\" \"+(n=+t,o={ss:e?\"\u{441}\u{435}\u{43a}\u{443}\u{43d}\u{434}\u{430}_\u{441}\u{435}\u{43a}\u{443}\u{43d}\u{434}\u{44b}_\u{441}\u{435}\u{43a}\u{443}\u{43d}\u{434}\":\"\u{441}\u{435}\u{43a}\u{443}\u{43d}\u{434}\u{443}_\u{441}\u{435}\u{43a}\u{443}\u{43d}\u{434}\u{44b}_\u{441}\u{435}\u{43a}\u{443}\u{43d}\u{434}\",mm:e?\"\u{43c}\u{438}\u{43d}\u{443}\u{442}\u{430}_\u{43c}\u{438}\u{43d}\u{443}\u{442}\u{44b}_\u{43c}\u{438}\u{43d}\u{443}\u{442}\":\"\u{43c}\u{438}\u{43d}\u{443}\u{442}\u{443}_\u{43c}\u{438}\u{43d}\u{443}\u{442}\u{44b}_\u{43c}\u{438}\u{43d}\u{443}\u{442}\",hh:\"\u{447}\u{430}\u{441}_\u{447}\u{430}\u{441}\u{430}_\u{447}\u{430}\u{441}\u{43e}\u{432}\",dd:\"\u{434}\u{435}\u{43d}\u{44c}_\u{434}\u{43d}\u{44f}_\u{434}\u{43d}\u{435}\u{439}\",ww:\"\u{43d}\u{435}\u{434}\u{435}\u{43b}\u{44f}_\u{43d}\u{435}\u{434}\u{435}\u{43b}\u{438}_\u{43d}\u{435}\u{434}\u{435}\u{43b}\u{44c}\",MM:\"\u{43c}\u{435}\u{441}\u{44f}\u{446}_\u{43c}\u{435}\u{441}\u{44f}\u{446}\u{430}_\u{43c}\u{435}\u{441}\u{44f}\u{446}\u{435}\u{432}\",yy:\"\u{433}\u{43e}\u{434}_\u{433}\u{43e}\u{434}\u{430}_\u{43b}\u{435}\u{442}\"}[i].split(\"_\"),n%10==1&&n%100!=11?o[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?o[1]:o[2])}var i=[/^\u{44f}\u{43d}\u{432}/i,/^\u{444}\u{435}\u{432}/i,/^\u{43c}\u{430}\u{440}/i,/^\u{430}\u{43f}\u{440}/i,/^\u{43c}\u{430}[\u{439}\u{44f}]/i,/^\u{438}\u{44e}\u{43d}/i,/^\u{438}\u{44e}\u{43b}/i,/^\u{430}\u{432}\u{433}/i,/^\u{441}\u{435}\u{43d}/i,/^\u{43e}\u{43a}\u{442}/i,/^\u{43d}\u{43e}\u{44f}/i,/^\u{434}\u{435}\u{43a}/i];t.defineLocale(\"ru\",{months:{format:\"\u{44f}\u{43d}\u{432}\u{430}\u{440}\u{44f}_\u{444}\u{435}\u{432}\u{440}\u{430}\u{43b}\u{44f}_\u{43c}\u{430}\u{440}\u{442}\u{430}_\u{430}\u{43f}\u{440}\u{435}\u{43b}\u{44f}_\u{43c}\u{430}\u{44f}_\u{438}\u{44e}\u{43d}\u{44f}_\u{438}\u{44e}\u{43b}\u{44f}_\u{430}\u{432}\u{433}\u{443}\u{441}\u{442}\u{430}_\u{441}\u{435}\u{43d}\u{442}\u{44f}\u{431}\u{440}\u{44f}_\u{43e}\u{43a}\u{442}\u{44f}\u{431}\u{440}\u{44f}_\u{43d}\u{43e}\u{44f}\u{431}\u{440}\u{44f}_\u{434}\u{435}\u{43a}\u{430}\u{431}\u{440}\u{44f}\".split(\"_\"),standalone:\"\u{44f}\u{43d}\u{432}\u{430}\u{440}\u{44c}_\u{444}\u{435}\u{432}\u{440}\u{430}\u{43b}\u{44c}_\u{43c}\u{430}\u{440}\u{442}_\u{430}\u{43f}\u{440}\u{435}\u{43b}\u{44c}_\u{43c}\u{430}\u{439}_\u{438}\u{44e}\u{43d}\u{44c}_\u{438}\u{44e}\u{43b}\u{44c}_\u{430}\u{432}\u{433}\u{443}\u{441}\u{442}_\u{441}\u{435}\u{43d}\u{442}\u{44f}\u{431}\u{440}\u{44c}_\u{43e}\u{43a}\u{442}\u{44f}\u{431}\u{440}\u{44c}_\u{43d}\u{43e}\u{44f}\u{431}\u{440}\u{44c}_\u{434}\u{435}\u{43a}\u{430}\u{431}\u{440}\u{44c}\".split(\"_\")},monthsShort:{format:\"\u{44f}\u{43d}\u{432}._\u{444}\u{435}\u{432}\u{440}._\u{43c}\u{430}\u{440}._\u{430}\u{43f}\u{440}._\u{43c}\u{430}\u{44f}_\u{438}\u{44e}\u{43d}\u{44f}_\u{438}\u{44e}\u{43b}\u{44f}_\u{430}\u{432}\u{433}._\u{441}\u{435}\u{43d}\u{442}._\u{43e}\u{43a}\u{442}._\u{43d}\u{43e}\u{44f}\u{431}._\u{434}\u{435}\u{43a}.\".split(\"_\"),standalone:\"\u{44f}\u{43d}\u{432}._\u{444}\u{435}\u{432}\u{440}._\u{43c}\u{430}\u{440}\u{442}_\u{430}\u{43f}\u{440}._\u{43c}\u{430}\u{439}_\u{438}\u{44e}\u{43d}\u{44c}_\u{438}\u{44e}\u{43b}\u{44c}_\u{430}\u{432}\u{433}._\u{441}\u{435}\u{43d}\u{442}._\u{43e}\u{43a}\u{442}._\u{43d}\u{43e}\u{44f}\u{431}._\u{434}\u{435}\u{43a}.\".split(\"_\")},weekdays:{standalone:\"\u{432}\u{43e}\u{441}\u{43a}\u{440}\u{435}\u{441}\u{435}\u{43d}\u{44c}\u{435}_\u{43f}\u{43e}\u{43d}\u{435}\u{434}\u{435}\u{43b}\u{44c}\u{43d}\u{438}\u{43a}_\u{432}\u{442}\u{43e}\u{440}\u{43d}\u{438}\u{43a}_\u{441}\u{440}\u{435}\u{434}\u{430}_\u{447}\u{435}\u{442}\u{432}\u{435}\u{440}\u{433}_\u{43f}\u{44f}\u{442}\u{43d}\u{438}\u{446}\u{430}_\u{441}\u{443}\u{431}\u{431}\u{43e}\u{442}\u{430}\".split(\"_\"),format:\"\u{432}\u{43e}\u{441}\u{43a}\u{440}\u{435}\u{441}\u{435}\u{43d}\u{44c}\u{435}_\u{43f}\u{43e}\u{43d}\u{435}\u{434}\u{435}\u{43b}\u{44c}\u{43d}\u{438}\u{43a}_\u{432}\u{442}\u{43e}\u{440}\u{43d}\u{438}\u{43a}_\u{441}\u{440}\u{435}\u{434}\u{443}_\u{447}\u{435}\u{442}\u{432}\u{435}\u{440}\u{433}_\u{43f}\u{44f}\u{442}\u{43d}\u{438}\u{446}\u{443}_\u{441}\u{443}\u{431}\u{431}\u{43e}\u{442}\u{443}\".split(\"_\"),isFormat:/\\[ ?[\u{412}\u{432}] ?(?:\u{43f}\u{440}\u{43e}\u{448}\u{43b}\u{443}\u{44e}|\u{441}\u{43b}\u{435}\u{434}\u{443}\u{44e}\u{449}\u{443}\u{44e}|\u{44d}\u{442}\u{443})? ?] ?dddd/},weekdaysShort:\"\u{432}\u{441}_\u{43f}\u{43d}_\u{432}\u{442}_\u{441}\u{440}_\u{447}\u{442}_\u{43f}\u{442}_\u{441}\u{431}\".split(\"_\"),weekdaysMin:\"\u{432}\u{441}_\u{43f}\u{43d}_\u{432}\u{442}_\u{441}\u{440}_\u{447}\u{442}_\u{43f}\u{442}_\u{441}\u{431}\".split(\"_\"),monthsParse:i,longMonthsParse:i,shortMonthsParse:i,monthsRegex:/^(\u{44f}\u{43d}\u{432}\u{430}\u{440}[\u{44c}\u{44f}]|\u{44f}\u{43d}\u{432}\\.?|\u{444}\u{435}\u{432}\u{440}\u{430}\u{43b}[\u{44c}\u{44f}]|\u{444}\u{435}\u{432}\u{440}?\\.?|\u{43c}\u{430}\u{440}\u{442}\u{430}?|\u{43c}\u{430}\u{440}\\.?|\u{430}\u{43f}\u{440}\u{435}\u{43b}[\u{44c}\u{44f}]|\u{430}\u{43f}\u{440}\\.?|\u{43c}\u{430}[\u{439}\u{44f}]|\u{438}\u{44e}\u{43d}[\u{44c}\u{44f}]|\u{438}\u{44e}\u{43d}\\.?|\u{438}\u{44e}\u{43b}[\u{44c}\u{44f}]|\u{438}\u{44e}\u{43b}\\.?|\u{430}\u{432}\u{433}\u{443}\u{441}\u{442}\u{430}?|\u{430}\u{432}\u{433}\\.?|\u{441}\u{435}\u{43d}\u{442}\u{44f}\u{431}\u{440}[\u{44c}\u{44f}]|\u{441}\u{435}\u{43d}\u{442}?\\.?|\u{43e}\u{43a}\u{442}\u{44f}\u{431}\u{440}[\u{44c}\u{44f}]|\u{43e}\u{43a}\u{442}\\.?|\u{43d}\u{43e}\u{44f}\u{431}\u{440}[\u{44c}\u{44f}]|\u{43d}\u{43e}\u{44f}\u{431}?\\.?|\u{434}\u{435}\u{43a}\u{430}\u{431}\u{440}[\u{44c}\u{44f}]|\u{434}\u{435}\u{43a}\\.?)/i,monthsShortRegex:/^(\u{44f}\u{43d}\u{432}\u{430}\u{440}[\u{44c}\u{44f}]|\u{44f}\u{43d}\u{432}\\.?|\u{444}\u{435}\u{432}\u{440}\u{430}\u{43b}[\u{44c}\u{44f}]|\u{444}\u{435}\u{432}\u{440}?\\.?|\u{43c}\u{430}\u{440}\u{442}\u{430}?|\u{43c}\u{430}\u{440}\\.?|\u{430}\u{43f}\u{440}\u{435}\u{43b}[\u{44c}\u{44f}]|\u{430}\u{43f}\u{440}\\.?|\u{43c}\u{430}[\u{439}\u{44f}]|\u{438}\u{44e}\u{43d}[\u{44c}\u{44f}]|\u{438}\u{44e}\u{43d}\\.?|\u{438}\u{44e}\u{43b}[\u{44c}\u{44f}]|\u{438}\u{44e}\u{43b}\\.?|\u{430}\u{432}\u{433}\u{443}\u{441}\u{442}\u{430}?|\u{430}\u{432}\u{433}\\.?|\u{441}\u{435}\u{43d}\u{442}\u{44f}\u{431}\u{440}[\u{44c}\u{44f}]|\u{441}\u{435}\u{43d}\u{442}?\\.?|\u{43e}\u{43a}\u{442}\u{44f}\u{431}\u{440}[\u{44c}\u{44f}]|\u{43e}\u{43a}\u{442}\\.?|\u{43d}\u{43e}\u{44f}\u{431}\u{440}[\u{44c}\u{44f}]|\u{43d}\u{43e}\u{44f}\u{431}?\\.?|\u{434}\u{435}\u{43a}\u{430}\u{431}\u{440}[\u{44c}\u{44f}]|\u{434}\u{435}\u{43a}\\.?)/i,monthsStrictRegex:/^(\u{44f}\u{43d}\u{432}\u{430}\u{440}[\u{44f}\u{44c}]|\u{444}\u{435}\u{432}\u{440}\u{430}\u{43b}[\u{44f}\u{44c}]|\u{43c}\u{430}\u{440}\u{442}\u{430}?|\u{430}\u{43f}\u{440}\u{435}\u{43b}[\u{44f}\u{44c}]|\u{43c}\u{430}[\u{44f}\u{439}]|\u{438}\u{44e}\u{43d}[\u{44f}\u{44c}]|\u{438}\u{44e}\u{43b}[\u{44f}\u{44c}]|\u{430}\u{432}\u{433}\u{443}\u{441}\u{442}\u{430}?|\u{441}\u{435}\u{43d}\u{442}\u{44f}\u{431}\u{440}[\u{44f}\u{44c}]|\u{43e}\u{43a}\u{442}\u{44f}\u{431}\u{440}[\u{44f}\u{44c}]|\u{43d}\u{43e}\u{44f}\u{431}\u{440}[\u{44f}\u{44c}]|\u{434}\u{435}\u{43a}\u{430}\u{431}\u{440}[\u{44f}\u{44c}])/i,monthsShortStrictRegex:/^(\u{44f}\u{43d}\u{432}\\.|\u{444}\u{435}\u{432}\u{440}?\\.|\u{43c}\u{430}\u{440}[\u{442}.]|\u{430}\u{43f}\u{440}\\.|\u{43c}\u{430}[\u{44f}\u{439}]|\u{438}\u{44e}\u{43d}[\u{44c}\u{44f}.]|\u{438}\u{44e}\u{43b}[\u{44c}\u{44f}.]|\u{430}\u{432}\u{433}\\.|\u{441}\u{435}\u{43d}\u{442}?\\.|\u{43e}\u{43a}\u{442}\\.|\u{43d}\u{43e}\u{44f}\u{431}?\\.|\u{434}\u{435}\u{43a}\\.)/i,longDateFormat:{LT:\"H:mm\",LTS:\"H:mm:ss\",L:\"DD.MM.YYYY\",LL:\"D MMMM YYYY \u{433}.\",LLL:\"D MMMM YYYY \u{433}., H:mm\",LLLL:\"dddd, D MMMM YYYY \u{433}., H:mm\"},calendar:{sameDay:\"[\u{421}\u{435}\u{433}\u{43e}\u{434}\u{43d}\u{44f}, \u{432}] LT\",nextDay:\"[\u{417}\u{430}\u{432}\u{442}\u{440}\u{430}, \u{432}] LT\",lastDay:\"[\u{412}\u{447}\u{435}\u{440}\u{430}, \u{432}] LT\",nextWeek:function(t){if(t.week()===this.week())return 2===this.day()?\"[\u{412}\u{43e}] dddd, [\u{432}] LT\":\"[\u{412}] dddd, [\u{432}] LT\";switch(this.day()){case 0:return\"[\u{412} \u{441}\u{43b}\u{435}\u{434}\u{443}\u{44e}\u{449}\u{435}\u{435}] dddd, [\u{432}] LT\";case 1:case 2:case 4:return\"[\u{412} \u{441}\u{43b}\u{435}\u{434}\u{443}\u{44e}\u{449}\u{438}\u{439}] dddd, [\u{432}] LT\";case 3:case 5:case 6:return\"[\u{412} \u{441}\u{43b}\u{435}\u{434}\u{443}\u{44e}\u{449}\u{443}\u{44e}] dddd, [\u{432}] LT\"}},lastWeek:function(t){if(t.week()===this.week())return 2===this.day()?\"[\u{412}\u{43e}] dddd, [\u{432}] LT\":\"[\u{412}] dddd, [\u{432}] LT\";switch(this.day()){case 0:return\"[\u{412} \u{43f}\u{440}\u{43e}\u{448}\u{43b}\u{43e}\u{435}] dddd, [\u{432}] LT\";case 1:case 2:case 4:return\"[\u{412} \u{43f}\u{440}\u{43e}\u{448}\u{43b}\u{44b}\u{439}] dddd, [\u{432}] LT\";case 3:case 5:case 6:return\"[\u{412} \u{43f}\u{440}\u{43e}\u{448}\u{43b}\u{443}\u{44e}] dddd, [\u{432}] LT\"}},sameElse:\"L\"},relativeTime:{future:\"\u{447}\u{435}\u{440}\u{435}\u{437} %s\",past:\"%s \u{43d}\u{430}\u{437}\u{430}\u{434}\",s:\"\u{43d}\u{435}\u{441}\u{43a}\u{43e}\u{43b}\u{44c}\u{43a}\u{43e} \u{441}\u{435}\u{43a}\u{443}\u{43d}\u{434}\",ss:e,m:e,mm:e,h:\"\u{447}\u{430}\u{441}\",hh:e,d:\"\u{434}\u{435}\u{43d}\u{44c}\",dd:e,w:\"\u{43d}\u{435}\u{434}\u{435}\u{43b}\u{44f}\",ww:e,M:\"\u{43c}\u{435}\u{441}\u{44f}\u{446}\",MM:e,y:\"\u{433}\u{43e}\u{434}\",yy:e},meridiemParse:/\u{43d}\u{43e}\u{447}\u{438}|\u{443}\u{442}\u{440}\u{430}|\u{434}\u{43d}\u{44f}|\u{432}\u{435}\u{447}\u{435}\u{440}\u{430}/i,isPM:function(t){return/^(\u{434}\u{43d}\u{44f}|\u{432}\u{435}\u{447}\u{435}\u{440}\u{430})$/.test(t)},meridiem:function(t,e,i){return t<4?\"\u{43d}\u{43e}\u{447}\u{438}\":t<12?\"\u{443}\u{442}\u{440}\u{430}\":t<17?\"\u{434}\u{43d}\u{44f}\":\"\u{432}\u{435}\u{447}\u{435}\u{440}\u{430}\"},dayOfMonthOrdinalParse:/\\d{1,2}-(\u{439}|\u{433}\u{43e}|\u{44f})/,ordinal:function(t,e){switch(e){case\"M\":case\"d\":case\"DDD\":return t+\"-\u{439}\";case\"D\":return t+\"-\u{433}\u{43e}\";case\"w\":case\"W\":return t+\"-\u{44f}\";default:return t}},week:{dow:1,doy:4}})})(o)})),i((function(t,e){(function(t){function e(t,e,i){var n,o;return\"m\"===i?e?\"\u{445}\u{432}\u{438}\u{43b}\u{438}\u{43d}\u{430}\":\"\u{445}\u{432}\u{438}\u{43b}\u{438}\u{43d}\u{443}\":\"h\"===i?e?\"\u{433}\u{43e}\u{434}\u{438}\u{43d}\u{430}\":\"\u{433}\u{43e}\u{434}\u{438}\u{43d}\u{443}\":t+\" \"+(n=+t,o={ss:e?\"\u{441}\u{435}\u{43a}\u{443}\u{43d}\u{434}\u{430}_\u{441}\u{435}\u{43a}\u{443}\u{43d}\u{434}\u{438}_\u{441}\u{435}\u{43a}\u{443}\u{43d}\u{434}\":\"\u{441}\u{435}\u{43a}\u{443}\u{43d}\u{434}\u{443}_\u{441}\u{435}\u{43a}\u{443}\u{43d}\u{434}\u{438}_\u{441}\u{435}\u{43a}\u{443}\u{43d}\u{434}\",mm:e?\"\u{445}\u{432}\u{438}\u{43b}\u{438}\u{43d}\u{430}_\u{445}\u{432}\u{438}\u{43b}\u{438}\u{43d}\u{438}_\u{445}\u{432}\u{438}\u{43b}\u{438}\u{43d}\":\"\u{445}\u{432}\u{438}\u{43b}\u{438}\u{43d}\u{443}_\u{445}\u{432}\u{438}\u{43b}\u{438}\u{43d}\u{438}_\u{445}\u{432}\u{438}\u{43b}\u{438}\u{43d}\",hh:e?\"\u{433}\u{43e}\u{434}\u{438}\u{43d}\u{430}_\u{433}\u{43e}\u{434}\u{438}\u{43d}\u{438}_\u{433}\u{43e}\u{434}\u{438}\u{43d}\":\"\u{433}\u{43e}\u{434}\u{438}\u{43d}\u{443}_\u{433}\u{43e}\u{434}\u{438}\u{43d}\u{438}_\u{433}\u{43e}\u{434}\u{438}\u{43d}\",dd:\"\u{434}\u{435}\u{43d}\u{44c}_\u{434}\u{43d}\u{456}_\u{434}\u{43d}\u{456}\u{432}\",MM:\"\u{43c}\u{456}\u{441}\u{44f}\u{446}\u{44c}_\u{43c}\u{456}\u{441}\u{44f}\u{446}\u{456}_\u{43c}\u{456}\u{441}\u{44f}\u{446}\u{456}\u{432}\",yy:\"\u{440}\u{456}\u{43a}_\u{440}\u{43e}\u{43a}\u{438}_\u{440}\u{43e}\u{43a}\u{456}\u{432}\"}[i].split(\"_\"),n%10==1&&n%100!=11?o[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?o[1]:o[2])}function i(t){return function(){return t+\"\u{43e}\"+(11===this.hours()?\"\u{431}\":\"\")+\"] LT\"}}t.defineLocale(\"uk\",{months:{format:\"\u{441}\u{456}\u{447}\u{43d}\u{44f}_\u{43b}\u{44e}\u{442}\u{43e}\u{433}\u{43e}_\u{431}\u{435}\u{440}\u{435}\u{437}\u{43d}\u{44f}_\u{43a}\u{432}\u{456}\u{442}\u{43d}\u{44f}_\u{442}\u{440}\u{430}\u{432}\u{43d}\u{44f}_\u{447}\u{435}\u{440}\u{432}\u{43d}\u{44f}_\u{43b}\u{438}\u{43f}\u{43d}\u{44f}_\u{441}\u{435}\u{440}\u{43f}\u{43d}\u{44f}_\u{432}\u{435}\u{440}\u{435}\u{441}\u{43d}\u{44f}_\u{436}\u{43e}\u{432}\u{442}\u{43d}\u{44f}_\u{43b}\u{438}\u{441}\u{442}\u{43e}\u{43f}\u{430}\u{434}\u{430}_\u{433}\u{440}\u{443}\u{434}\u{43d}\u{44f}\".split(\"_\"),standalone:\"\u{441}\u{456}\u{447}\u{435}\u{43d}\u{44c}_\u{43b}\u{44e}\u{442}\u{438}\u{439}_\u{431}\u{435}\u{440}\u{435}\u{437}\u{435}\u{43d}\u{44c}_\u{43a}\u{432}\u{456}\u{442}\u{435}\u{43d}\u{44c}_\u{442}\u{440}\u{430}\u{432}\u{435}\u{43d}\u{44c}_\u{447}\u{435}\u{440}\u{432}\u{435}\u{43d}\u{44c}_\u{43b}\u{438}\u{43f}\u{435}\u{43d}\u{44c}_\u{441}\u{435}\u{440}\u{43f}\u{435}\u{43d}\u{44c}_\u{432}\u{435}\u{440}\u{435}\u{441}\u{435}\u{43d}\u{44c}_\u{436}\u{43e}\u{432}\u{442}\u{435}\u{43d}\u{44c}_\u{43b}\u{438}\u{441}\u{442}\u{43e}\u{43f}\u{430}\u{434}_\u{433}\u{440}\u{443}\u{434}\u{435}\u{43d}\u{44c}\".split(\"_\")},monthsShort:\"\u{441}\u{456}\u{447}_\u{43b}\u{44e}\u{442}_\u{431}\u{435}\u{440}_\u{43a}\u{432}\u{456}\u{442}_\u{442}\u{440}\u{430}\u{432}_\u{447}\u{435}\u{440}\u{432}_\u{43b}\u{438}\u{43f}_\u{441}\u{435}\u{440}\u{43f}_\u{432}\u{435}\u{440}_\u{436}\u{43e}\u{432}\u{442}_\u{43b}\u{438}\u{441}\u{442}_\u{433}\u{440}\u{443}\u{434}\".split(\"_\"),weekdays:function(t,e){var i={nominative:\"\u{43d}\u{435}\u{434}\u{456}\u{43b}\u{44f}_\u{43f}\u{43e}\u{43d}\u{435}\u{434}\u{456}\u{43b}\u{43e}\u{43a}_\u{432}\u{456}\u{432}\u{442}\u{43e}\u{440}\u{43e}\u{43a}_\u{441}\u{435}\u{440}\u{435}\u{434}\u{430}_\u{447}\u{435}\u{442}\u{432}\u{435}\u{440}_\u{43f}\u{2019}\u{44f}\u{442}\u{43d}\u{438}\u{446}\u{44f}_\u{441}\u{443}\u{431}\u{43e}\u{442}\u{430}\".split(\"_\"),accusative:\"\u{43d}\u{435}\u{434}\u{456}\u{43b}\u{44e}_\u{43f}\u{43e}\u{43d}\u{435}\u{434}\u{456}\u{43b}\u{43e}\u{43a}_\u{432}\u{456}\u{432}\u{442}\u{43e}\u{440}\u{43e}\u{43a}_\u{441}\u{435}\u{440}\u{435}\u{434}\u{443}_\u{447}\u{435}\u{442}\u{432}\u{435}\u{440}_\u{43f}\u{2019}\u{44f}\u{442}\u{43d}\u{438}\u{446}\u{44e}_\u{441}\u{443}\u{431}\u{43e}\u{442}\u{443}\".split(\"_\"),genitive:\"\u{43d}\u{435}\u{434}\u{456}\u{43b}\u{456}_\u{43f}\u{43e}\u{43d}\u{435}\u{434}\u{456}\u{43b}\u{43a}\u{430}_\u{432}\u{456}\u{432}\u{442}\u{43e}\u{440}\u{43a}\u{430}_\u{441}\u{435}\u{440}\u{435}\u{434}\u{438}_\u{447}\u{435}\u{442}\u{432}\u{435}\u{440}\u{433}\u{430}_\u{43f}\u{2019}\u{44f}\u{442}\u{43d}\u{438}\u{446}\u{456}_\u{441}\u{443}\u{431}\u{43e}\u{442}\u{438}\".split(\"_\")};return!0===t?i.nominative.slice(1,7).concat(i.nominative.slice(0,1)):t?i[/(\\[[\u{412}\u{432}\u{423}\u{443}]\\]) ?dddd/.test(e)?\"accusative\":/\\[?(?:\u{43c}\u{438}\u{43d}\u{443}\u{43b}\u{43e}\u{457}|\u{43d}\u{430}\u{441}\u{442}\u{443}\u{43f}\u{43d}\u{43e}\u{457})? ?\\] ?dddd/.test(e)?\"genitive\":\"nominative\"][t.day()]:i.nominative},weekdaysShort:\"\u{43d}\u{434}_\u{43f}\u{43d}_\u{432}\u{442}_\u{441}\u{440}_\u{447}\u{442}_\u{43f}\u{442}_\u{441}\u{431}\".split(\"_\"),weekdaysMin:\"\u{43d}\u{434}_\u{43f}\u{43d}_\u{432}\u{442}_\u{441}\u{440}_\u{447}\u{442}_\u{43f}\u{442}_\u{441}\u{431}\".split(\"_\"),longDateFormat:{LT:\"HH:mm\",LTS:\"HH:mm:ss\",L:\"DD.MM.YYYY\",LL:\"D MMMM YYYY \u{440}.\",LLL:\"D MMMM YYYY \u{440}., HH:mm\",LLLL:\"dddd, D MMMM YYYY \u{440}., HH:mm\"},calendar:{sameDay:i(\"[\u{421}\u{44c}\u{43e}\u{433}\u{43e}\u{434}\u{43d}\u{456} \"),nextDay:i(\"[\u{417}\u{430}\u{432}\u{442}\u{440}\u{430} \"),lastDay:i(\"[\u{412}\u{447}\u{43e}\u{440}\u{430} \"),nextWeek:i(\"[\u{423}] dddd [\"),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return i(\"[\u{41c}\u{438}\u{43d}\u{443}\u{43b}\u{43e}\u{457}] dddd [\").call(this);case 1:case 2:case 4:return i(\"[\u{41c}\u{438}\u{43d}\u{443}\u{43b}\u{43e}\u{433}\u{43e}] dddd [\").call(this)}},sameElse:\"L\"},relativeTime:{future:\"\u{437}\u{430} %s\",past:\"%s \u{442}\u{43e}\u{43c}\u{443}\",s:\"\u{434}\u{435}\u{43a}\u{456}\u{43b}\u{44c}\u{43a}\u{430} \u{441}\u{435}\u{43a}\u{443}\u{43d}\u{434}\",ss:e,m:e,mm:e,h:\"\u{433}\u{43e}\u{434}\u{438}\u{43d}\u{443}\",hh:e,d:\"\u{434}\u{435}\u{43d}\u{44c}\",dd:e,M:\"\u{43c}\u{456}\u{441}\u{44f}\u{446}\u{44c}\",MM:e,y:\"\u{440}\u{456}\u{43a}\",yy:e},meridiemParse:/\u{43d}\u{43e}\u{447}\u{456}|\u{440}\u{430}\u{43d}\u{43a}\u{443}|\u{434}\u{43d}\u{44f}|\u{432}\u{435}\u{447}\u{43e}\u{440}\u{430}/,isPM:function(t){return/^(\u{434}\u{43d}\u{44f}|\u{432}\u{435}\u{447}\u{43e}\u{440}\u{430})$/.test(t)},meridiem:function(t,e,i){return t<4?\"\u{43d}\u{43e}\u{447}\u{456}\":t<12?\"\u{440}\u{430}\u{43d}\u{43a}\u{443}\":t<17?\"\u{434}\u{43d}\u{44f}\":\"\u{432}\u{435}\u{447}\u{43e}\u{440}\u{430}\"},dayOfMonthOrdinalParse:/\\d{1,2}-(\u{439}|\u{433}\u{43e})/,ordinal:function(t,e){switch(e){case\"M\":case\"d\":case\"DDD\":case\"w\":case\"W\":return t+\"-\u{439}\";case\"D\":return t+\"-\u{433}\u{43e}\";default:return t}},week:{dow:1,doy:7}})})(o)}));var r=Math.ceil,s=Math.floor,a=function(t){return isNaN(t=+t)?0:(t>0?s:r)(t)},l=function(t){if(null==t)throw TypeError(\"Can\'t call method on \"+t);return t},h=function(t){return function(e,i){var n,o,r=String(l(e)),s=a(i),h=r.length;return s<0||s>=h?t?\"\":void 0:(n=r.charCodeAt(s))<55296||n>56319||s+1===h||(o=r.charCodeAt(s+1))<56320||o>57343?t?r.charAt(s):n:t?r.slice(s,s+2):o-56320+(n-55296<<10)+65536}},u={codeAt:h(!1),charAt:h(!0)},d=function(t){return t&&t.Math==Math&&t},c=d(\"object\"==typeof globalThis&&globalThis)||d(\"object\"==typeof window&&window)||d(\"object\"==typeof self&&self)||d(\"object\"==typeof e&&e)||function(){return this}()||Function(\"return this\")(),p=function(t){try{return!!t()}catch(t){return!0}},f=!p((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),m=function(t){return\"object\"==typeof t?null!==t:\"function\"==typeof t},v=c.document,g=m(v)&&m(v.createElement),y=function(t){return g?v.createElement(t):{}},b=!f&&!p((function(){return 7!=Object.defineProperty(y(\"div\"),\"a\",{get:function(){return 7}}).a})),_=function(t){if(!m(t))throw TypeError(String(t)+\" is not an object\");return t},w=function(t,e){if(!m(t))return t;var i,n;if(e&&\"function\"==typeof(i=t.toString)&&!m(n=i.call(t)))return n;if(\"function\"==typeof(i=t.valueOf)&&!m(n=i.call(t)))return n;if(!e&&\"function\"==typeof(i=t.toString)&&!m(n=i.call(t)))return n;throw TypeError(\"Can\'t convert object to primitive value\")},k=Object.defineProperty,x={f:f?k:function(t,e,i){if(_(t),e=w(e,!0),_(i),b)try{return k(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}},D=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},S=f?function(t,e,i){return x.f(t,e,D(1,i))}:function(t,e,i){return t[e]=i,t},C=\"__core-js_shared__\",T=c[C]||function(t,e){try{S(c,t,e)}catch(i){c[t]=e}return e}(C,{}),M=Function.toString;\"function\"!=typeof T.inspectSource&&(T.inspectSource=function(t){return M.call(t)});var O,E,P,A=T.inspectSource,L=c.WeakMap,I=\"function\"==typeof L&&/native code/.test(A(L)),N={}.hasOwnProperty,F=function(t,e){return N.call(t,e)},R=i((function(t){(t.exports=function(t,e){return T[t]||(T[t]=void 0!==e?e:{})})(\"versions\",[]).push({version:\"3.10.0\",mode:\"pure\",copyright:\"\u{a9} 2021 Denis Pushkarev (zloirock.ru)\"})})),Y=0,j=Math.random(),H=function(t){return\"Symbol(\"+String(void 0===t?\"\":t)+\")_\"+(++Y+j).toString(36)},z=R(\"keys\"),G=function(t){return z[t]||(z[t]=H(t))},B={},W=c.WeakMap;if(I){var V=T.state||(T.state=new W),U=V.get,X=V.has,q=V.set;O=function(t,e){return e.facade=t,q.call(V,t,e),e},E=function(t){return U.call(V,t)||{}},P=function(t){return X.call(V,t)}}else{var Z=G(\"state\");B[Z]=!0,O=function(t,e){return e.facade=t,S(t,Z,e),e},E=function(t){return F(t,Z)?t[Z]:{}},P=function(t){return F(t,Z)}}var $,K,J={set:O,get:E,has:P,enforce:function(t){return P(t)?E(t):O(t,{})},getterFor:function(t){return function(e){var i;if(!m(e)||(i=E(e)).type!==t)throw TypeError(\"Incompatible receiver, \"+t+\" required\");return i}}},Q={}.propertyIsEnumerable,tt=Object.getOwnPropertyDescriptor,et={f:tt&&!Q.call({1:2},1)?function(t){var e=tt(this,t);return!!e&&e.enumerable}:Q},it={}.toString,nt=function(t){return it.call(t).slice(8,-1)},ot=\"\".split,rt=p((function(){return!Object(\"z\").propertyIsEnumerable(0)}))?function(t){return\"String\"==nt(t)?ot.call(t,\"\"):Object(t)}:Object,st=function(t){return rt(l(t))},at=Object.getOwnPropertyDescriptor,lt={f:f?at:function(t,e){if(t=st(t),e=w(e,!0),b)try{return at(t,e)}catch(t){}if(F(t,e))return D(!et.f.call(t,e),t[e])}},ht=/#|\\.prototype\\./,ut=function(t,e){var i=ct[dt(t)];return i==ft||i!=pt&&(\"function\"==typeof e?p(e):!!e)},dt=ut.normalize=function(t){return String(t).replace(ht,\".\").toLowerCase()},ct=ut.data={},pt=ut.NATIVE=\"N\",ft=ut.POLYFILL=\"P\",mt=ut,vt={},gt=function(t){if(\"function\"!=typeof t)throw TypeError(String(t)+\" is not a function\");return t},yt=function(t,e,i){if(gt(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,o){return t.call(e,i,n,o)}}return function(){return t.apply(e,arguments)}},bt=lt.f,_t=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},wt=function(t,e){var i,n,o,r,s,a,l,h,u=t.target,d=t.global,p=t.stat,f=t.proto,m=d?c:p?c[u]:(c[u]||{}).prototype,v=d?vt:vt[u]||(vt[u]={}),g=v.prototype;for(o in e)i=!mt(d?o:u+(p?\".\":\"#\")+o,t.forced)&&m&&F(m,o),s=v[o],i&&(a=t.noTargetGet?(h=bt(m,o))&&h.value:m[o]),r=i&&a?a:e[o],i&&typeof s==typeof r||(l=t.bind&&i?yt(r,c):t.wrap&&i?_t(r):f&&\"function\"==typeof r?yt(Function.call,r):r,(t.sham||r&&r.sham||s&&s.sham)&&S(l,\"sham\",!0),v[o]=l,f&&(F(vt,n=u+\"Prototype\")||S(vt,n,{}),vt[n][o]=r,t.real&&g&&!g[o]&&S(g,o,r)))},kt=function(t){return Object(l(t))},xt=!p((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Dt=G(\"IE_PROTO\"),St=Object.prototype,Ct=xt?Object.getPrototypeOf:function(t){return t=kt(t),F(t,Dt)?t[Dt]:\"function\"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?St:null},Tt=\"process\"==nt(c.process),Mt=function(t){return\"function\"==typeof t?t:void 0},Ot=function(t,e){return arguments.length<2?Mt(vt[t])||Mt(c[t]):vt[t]&&vt[t][e]||c[t]&&c[t][e]},Et=Ot(\"navigator\",\"userAgent\")||\"\",Pt=c.process,At=Pt&&Pt.versions,Lt=At&&At.v8;Lt?K=($=Lt.split(\".\"))[0]+$[1]:Et&&(!($=Et.match(/Edge\\/(\\d+)/))||$[1]>=74)&&($=Et.match(/Chrome\\/(\\d+)/))&&(K=$[1]);var It,Nt,Ft,Rt=K&&+K,Yt=!!Object.getOwnPropertySymbols&&!p((function(){return!Symbol.sham&&(Tt?38===Rt:Rt>37&&Rt<41)})),jt=Yt&&!Symbol.sham&&\"symbol\"==typeof Symbol.iterator,Ht=R(\"wks\"),zt=c.Symbol,Gt=jt?zt:zt&&zt.withoutSetter||H,Bt=function(t){return F(Ht,t)&&(Yt||\"string\"==typeof Ht[t])||(Yt&&F(zt,t)?Ht[t]=zt[t]:Ht[t]=Gt(\"Symbol.\"+t)),Ht[t]},Wt=Bt(\"iterator\"),Vt=!1;[].keys&&(\"next\"in(Ft=[].keys())?(Nt=Ct(Ct(Ft)))!==Object.prototype&&(It=Nt):Vt=!0);var Ut=null==It||p((function(){var t={};return It[Wt].call(t)!==t}));Ut&&(It={}),Ut&&!F(It,Wt)&&S(It,Wt,(function(){return this}));var Xt,qt={IteratorPrototype:It,BUGGY_SAFARI_ITERATORS:Vt},Zt=Math.min,$t=function(t){return t>0?Zt(a(t),9007199254740991):0},Kt=Math.max,Jt=Math.min,Qt=function(t,e){var i=a(t);return i<0?Kt(i+e,0):Jt(i,e)},te=function(t){return function(e,i,n){var o,r=st(e),s=$t(r.length),a=Qt(n,s);if(t&&i!=i){for(;s>a;)if((o=r[a++])!=o)return!0}else for(;s>a;a++)if((t||a in r)&&r[a]===i)return t||a||0;return!t&&-1}},ee={includes:te(!0),indexOf:te(!1)},ie=ee.indexOf,ne=function(t,e){var i,n=st(t),o=0,r=[];for(i in n)!F(B,i)&&F(n,i)&&r.push(i);for(;e.length>o;)F(n,i=e[o++])&&(~ie(r,i)||r.push(i));return r},oe=[\"constructor\",\"hasOwnProperty\",\"isPrototypeOf\",\"propertyIsEnumerable\",\"toLocaleString\",\"toString\",\"valueOf\"],re=Object.keys||function(t){return ne(t,oe)},se=f?Object.defineProperties:function(t,e){_(t);for(var i,n=re(e),o=n.length,r=0;o>r;)x.f(t,i=n[r++],e[i]);return t},ae=Ot(\"document\",\"documentElement\"),le=G(\"IE_PROTO\"),he=function(){},ue=function(t){return\"<script>\"+t+\"</\"+\"script>\"},de=function(){try{Xt=document.domain&&new ActiveXObject(\"htmlfile\")}catch(t){}var t,e;de=Xt?function(t){t.write(ue(\"\")),t.close();var e=t.parentWindow.Object;return t=null,e}(Xt):((e=y(\"iframe\")).style.display=\"none\",ae.appendChild(e),e.src=String(\"javascript:\"),(t=e.contentWindow.document).open(),t.write(ue(\"document.F=Object\")),t.close(),t.F);for(var i=oe.length;i--;)delete de.prototype[oe[i]];return de()};B[le]=!0;var ce=Object.create||function(t,e){var i;return null!==t?(he.prototype=_(t),i=new he,he.prototype=null,i[le]=t):i=de(),void 0===e?i:se(i,e)},pe={};pe[Bt(\"toStringTag\")]=\"z\";var fe=\"[object z]\"===String(pe),me=Bt(\"toStringTag\"),ve=\"Arguments\"==nt(function(){return arguments}()),ge=fe?nt: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),me))?i:ve?nt(e):\"Object\"==(n=nt(e))&&\"function\"==typeof e.callee?\"Arguments\":n},ye=fe?{}.toString:function(){return\"[object \"+ge(this)+\"]\"},be=x.f,_e=Bt(\"toStringTag\"),we=function(t,e,i,n){if(t){var o=i?t:t.prototype;F(o,_e)||be(o,_e,{configurable:!0,value:e}),n&&!fe&&S(o,\"toString\",ye)}},ke={},xe=qt.IteratorPrototype,De=function(){return this},Se=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 _(i),function(t){if(!m(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),Ce=function(t,e,i,n){n&&n.enumerable?t[e]=i:S(t,e,i)},Te=qt.IteratorPrototype,Me=qt.BUGGY_SAFARI_ITERATORS,Oe=Bt(\"iterator\"),Ee=\"keys\",Pe=\"values\",Ae=\"entries\",Le=function(){return this},Ie=function(t,e,i,n,o,r,s){!function(t,e,i){var n=e+\" Iterator\";t.prototype=ce(xe,{next:D(1,i)}),we(t,n,!1,!0),ke[n]=De}(i,e,n);var a,l,h,u=function(t){if(t===o&&m)return m;if(!Me&&t in p)return p[t];switch(t){case Ee:case Pe:case Ae:return function(){return new i(this,t)}}return function(){return new i(this)}},d=e+\" Iterator\",c=!1,p=t.prototype,f=p[Oe]||p[\"@@iterator\"]||o&&p[o],m=!Me&&f||u(o),v=\"Array\"==e&&p.entries||f;if(v&&(a=Ct(v.call(new t)),Te!==Object.prototype&&a.next&&(we(a,d,!0,!0),ke[d]=Le)),o==Pe&&f&&f.name!==Pe&&(c=!0,m=function(){return f.call(this)}),s&&p[Oe]!==m&&S(p,Oe,m),ke[e]=m,o)if(l={values:u(Pe),keys:r?m:u(Ee),entries:u(Ae)},s)for(h in l)(Me||c||!(h in p))&&Ce(p,h,l[h]);else wt({target:e,proto:!0,forced:Me||c},l);return l},Ne=u.charAt,Fe=\"String Iterator\",Re=J.set,Ye=J.getterFor(Fe);Ie(String,\"String\",(function(t){Re(this,{type:Fe,string:String(t),index:0})}),(function(){var t,e=Ye(this),i=e.string,n=e.index;return n>=i.length?{value:void 0,done:!0}:(t=Ne(i,n),e.index+=t.length,{value:t,done:!1})}));var je=function(t){var e=t.return;if(void 0!==e)return _(e.call(t)).value},He=function(t,e,i,n){try{return n?e(_(i)[0],i[1]):e(i)}catch(e){throw je(t),e}},ze=Bt(\"iterator\"),Ge=Array.prototype,Be=function(t){return void 0!==t&&(ke.Array===t||Ge[ze]===t)},We=function(t,e,i){var n=w(e);n in t?x.f(t,n,D(0,i)):t[n]=i},Ve=Bt(\"iterator\"),Ue=function(t){if(null!=t)return t[Ve]||t[\"@@iterator\"]||ke[ge(t)]},Xe=Bt(\"iterator\"),qe=!1;try{var Ze=0,$e={next:function(){return{done:!!Ze++}},return:function(){qe=!0}};$e[Xe]=function(){return this},Array.from($e,(function(){throw 2}))}catch(t){}var Ke=!function(t,e){if(!e&&!qe)return!1;var i=!1;try{var n={};n[Xe]=function(){return{next:function(){return{done:i=!0}}}},t(n)}catch(t){}return i}((function(t){Array.from(t)}));wt({target:\"Array\",stat:!0,forced:Ke},{from:function(t){var e,i,n,o,r,s,a=kt(t),l=\"function\"==typeof this?this:Array,h=arguments.length,u=h>1?arguments[1]:void 0,d=void 0!==u,c=Ue(a),p=0;if(d&&(u=yt(u,h>2?arguments[2]:void 0,2)),null==c||l==Array&&Be(c))for(i=new l(e=$t(a.length));e>p;p++)s=d?u(a[p],p):a[p],We(i,p,s);else for(r=(o=c.call(a)).next,i=new l;!(n=r.call(o)).done;p++)s=d?He(o,u,[n.value,p],!0):n.value,We(i,p,s);return i.length=p,i}});var Je=vt.Array.from,Qe=Je,ti=\"Array Iterator\",ei=J.set,ii=J.getterFor(ti);Ie(Array,\"Array\",(function(t,e){ei(this,{type:ti,target:st(t),index:0,kind:e})}),(function(){var t=ii(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\"),ke.Arguments=ke.Array;var ni=Bt(\"toStringTag\");for(var oi 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 ri=c[oi],si=ri&&ri.prototype;si&&ge(si)!==ni&&S(si,ni,oi),ke[oi]=ke.Array}var ai=Ue,li=function(t){var e=Ue(t);if(\"function\"!=typeof e)throw TypeError(String(t)+\" is not iterable\");return _(e.call(t))},hi=Array.isArray||function(t){return\"Array\"==nt(t)},ui=oe.concat(\"length\",\"prototype\"),di={f:Object.getOwnPropertyNames||function(t){return ne(t,ui)}},ci=di.f,pi={}.toString,fi=\"object\"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],mi={f:function(t){return fi&&\"[object Window]\"==pi.call(t)?function(t){try{return ci(t)}catch(t){return fi.slice()}}(t):ci(st(t))}},vi={f:Object.getOwnPropertySymbols},gi={f:Bt},yi=x.f,bi=function(t){var e=vt.Symbol||(vt.Symbol={});F(e,t)||yi(e,t,{value:gi.f(t)})},_i=Bt(\"species\"),wi=function(t,e){var i;return hi(t)&&(\"function\"!=typeof(i=t.constructor)||i!==Array&&!hi(i.prototype)?m(i)&&null===(i=i[_i])&&(i=void 0):i=void 0),new(void 0===i?Array:i)(0===e?0:e)},ki=[].push,xi=function(t){var e=1==t,i=2==t,n=3==t,o=4==t,r=6==t,s=7==t,a=5==t||r;return function(l,h,u,d){for(var c,p,f=kt(l),m=rt(f),v=yt(h,u,3),g=$t(m.length),y=0,b=d||wi,_=e?b(l,g):i||s?b(l,0):void 0;g>y;y++)if((a||y in m)&&(p=v(c=m[y],y,f),t))if(e)_[y]=p;else if(p)switch(t){case 3:return!0;case 5:return c;case 6:return y;case 2:ki.call(_,c)}else switch(t){case 4:return!1;case 7:ki.call(_,c)}return r?-1:n||o?o:_}},Di={forEach:xi(0),map:xi(1),filter:xi(2),some:xi(3),every:xi(4),find:xi(5),findIndex:xi(6),filterOut:xi(7)},Si=Di.forEach,Ci=G(\"hidden\"),Ti=\"Symbol\",Mi=Bt(\"toPrimitive\"),Oi=J.set,Ei=J.getterFor(Ti),Pi=Object.prototype,Ai=c.Symbol,Li=Ot(\"JSON\",\"stringify\"),Ii=lt.f,Ni=x.f,Fi=mi.f,Ri=et.f,Yi=R(\"symbols\"),ji=R(\"op-symbols\"),Hi=R(\"string-to-symbol-registry\"),zi=R(\"symbol-to-string-registry\"),Gi=R(\"wks\"),Bi=c.QObject,Wi=!Bi||!Bi.prototype||!Bi.prototype.findChild,Vi=f&&p((function(){return 7!=ce(Ni({},\"a\",{get:function(){return Ni(this,\"a\",{value:7}).a}})).a}))?function(t,e,i){var n=Ii(Pi,e);n&&delete Pi[e],Ni(t,e,i),n&&t!==Pi&&Ni(Pi,e,n)}:Ni,Ui=function(t,e){var i=Yi[t]=ce(Ai.prototype);return Oi(i,{type:Ti,tag:t,description:e}),f||(i.description=e),i},Xi=jt?function(t){return\"symbol\"==typeof t}:function(t){return Object(t)instanceof Ai},qi=function(t,e,i){t===Pi&&qi(ji,e,i),_(t);var n=w(e,!0);return _(i),F(Yi,n)?(i.enumerable?(F(t,Ci)&&t[Ci][n]&&(t[Ci][n]=!1),i=ce(i,{enumerable:D(0,!1)})):(F(t,Ci)||Ni(t,Ci,D(1,{})),t[Ci][n]=!0),Vi(t,n,i)):Ni(t,n,i)},Zi=function(t,e){_(t);var i=st(e),n=re(i).concat(Qi(i));return Si(n,(function(e){f&&!$i.call(i,e)||qi(t,e,i[e])})),t},$i=function(t){var e=w(t,!0),i=Ri.call(this,e);return!(this===Pi&&F(Yi,e)&&!F(ji,e))&&(!(i||!F(this,e)||!F(Yi,e)||F(this,Ci)&&this[Ci][e])||i)},Ki=function(t,e){var i=st(t),n=w(e,!0);if(i!==Pi||!F(Yi,n)||F(ji,n)){var o=Ii(i,n);return!o||!F(Yi,n)||F(i,Ci)&&i[Ci][n]||(o.enumerable=!0),o}},Ji=function(t){var e=Fi(st(t)),i=[];return Si(e,(function(t){F(Yi,t)||F(B,t)||i.push(t)})),i},Qi=function(t){var e=t===Pi,i=Fi(e?ji:st(t)),n=[];return Si(i,(function(t){!F(Yi,t)||e&&!F(Pi,t)||n.push(Yi[t])})),n};if(Yt||(Ce((Ai=function(){if(this instanceof Ai)throw TypeError(\"Symbol is not a constructor\");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=H(t),i=function(t){this===Pi&&i.call(ji,t),F(this,Ci)&&F(this[Ci],e)&&(this[Ci][e]=!1),Vi(this,e,D(1,t))};return f&&Wi&&Vi(Pi,e,{configurable:!0,set:i}),Ui(e,t)}).prototype,\"toString\",(function(){return Ei(this).tag})),Ce(Ai,\"withoutSetter\",(function(t){return Ui(H(t),t)})),et.f=$i,x.f=qi,lt.f=Ki,di.f=mi.f=Ji,vi.f=Qi,gi.f=function(t){return Ui(Bt(t),t)},f&&Ni(Ai.prototype,\"description\",{configurable:!0,get:function(){return Ei(this).description}})),wt({global:!0,wrap:!0,forced:!Yt,sham:!Yt},{Symbol:Ai}),Si(re(Gi),(function(t){bi(t)})),wt({target:Ti,stat:!0,forced:!Yt},{for:function(t){var e=String(t);if(F(Hi,e))return Hi[e];var i=Ai(e);return Hi[e]=i,zi[i]=e,i},keyFor:function(t){if(!Xi(t))throw TypeError(t+\" is not a symbol\");if(F(zi,t))return zi[t]},useSetter:function(){Wi=!0},useSimple:function(){Wi=!1}}),wt({target:\"Object\",stat:!0,forced:!Yt,sham:!f},{create:function(t,e){return void 0===e?ce(t):Zi(ce(t),e)},defineProperty:qi,defineProperties:Zi,getOwnPropertyDescriptor:Ki}),wt({target:\"Object\",stat:!0,forced:!Yt},{getOwnPropertyNames:Ji,getOwnPropertySymbols:Qi}),wt({target:\"Object\",stat:!0,forced:p((function(){vi.f(1)}))},{getOwnPropertySymbols:function(t){return vi.f(kt(t))}}),Li){var tn=!Yt||p((function(){var t=Ai();return\"[null]\"!=Li([t])||\"{}\"!=Li({a:t})||\"{}\"!=Li(Object(t))}));wt({target:\"JSON\",stat:!0,forced:tn},{stringify:function(t,e,i){for(var n,o=[t],r=1;arguments.length>r;)o.push(arguments[r++]);if(n=e,(m(e)||void 0!==t)&&!Xi(t))return hi(e)||(e=function(t,e){if(\"function\"==typeof n&&(e=n.call(this,t,e)),!Xi(e))return e}),o[1]=e,Li.apply(null,o)}})}Ai.prototype[Mi]||S(Ai.prototype,Mi,Ai.prototype.valueOf),we(Ai,Ti),B[Ci]=!0;var en=vt.Object.getOwnPropertySymbols,nn=lt.f,on=p((function(){nn(1)}));wt({target:\"Object\",stat:!0,forced:!f||on,sham:!f},{getOwnPropertyDescriptor:function(t,e){return nn(st(t),e)}});var rn=i((function(t){var e=vt.Object,i=t.exports=function(t,i){return e.getOwnPropertyDescriptor(t,i)};e.getOwnPropertyDescriptor.sham&&(i.sham=!0)})),sn=Ot(\"Reflect\",\"ownKeys\")||function(t){var e=di.f(_(t)),i=vi.f;return i?e.concat(i(t)):e};wt({target:\"Object\",stat:!0,sham:!f},{getOwnPropertyDescriptors:function(t){for(var e,i,n=st(t),o=lt.f,r=sn(n),s={},a=0;r.length>a;)void 0!==(i=o(n,e=r[a++]))&&We(s,e,i);return s}});var an=vt.Object.getOwnPropertyDescriptors;wt({target:\"Object\",stat:!0,forced:!f,sham:!f},{defineProperties:se});var ln=i((function(t){var e=vt.Object,i=t.exports=function(t,i){return e.defineProperties(t,i)};e.defineProperties.sham&&(i.sham=!0)}));wt({target:\"Object\",stat:!0,forced:!f,sham:!f},{defineProperty:x.f});var hn=i((function(t){var e=vt.Object,i=t.exports=function(t,i,n){return e.defineProperty(t,i,n)};e.defineProperty.sham&&(i.sham=!0)})),un=hn;function dn(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}var cn=hn;function pn(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),cn(t,n.key,n)}}function fn(t,e,i){return e&&pn(t.prototype,e),i&&pn(t,i),t}function mn(t,e,i){return e in t?cn(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}wt({target:\"Array\",stat:!0},{isArray:hi});var vn=vt.Array.isArray,gn=vn;var yn=Bt(\"species\"),bn=function(t){return Rt>=51||!p((function(){var e=[];return(e.constructor={})[yn]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},_n=Bt(\"isConcatSpreadable\"),wn=9007199254740991,kn=\"Maximum allowed index exceeded\",xn=Rt>=51||!p((function(){var t=[];return t[_n]=!1,t.concat()[0]!==t})),Dn=bn(\"concat\"),Sn=function(t){if(!m(t))return!1;var e=t[_n];return void 0!==e?!!e:hi(t)};wt({target:\"Array\",proto:!0,forced:!xn||!Dn},{concat:function(t){var e,i,n,o,r,s=kt(this),a=wi(s,0),l=0;for(e=-1,n=arguments.length;e<n;e++)if(Sn(r=-1===e?s:arguments[e])){if(l+(o=$t(r.length))>wn)throw TypeError(kn);for(i=0;i<o;i++,l++)i in r&&We(a,l,r[i])}else{if(l>=wn)throw TypeError(kn);We(a,l++,r)}return a.length=l,a}}),bi(\"asyncIterator\"),bi(\"hasInstance\"),bi(\"isConcatSpreadable\"),bi(\"iterator\"),bi(\"match\"),bi(\"matchAll\"),bi(\"replace\"),bi(\"search\"),bi(\"species\"),bi(\"split\"),bi(\"toPrimitive\"),bi(\"toStringTag\"),bi(\"unscopables\"),we(c.JSON,\"JSON\",!0);var Cn=vt.Symbol;bi(\"asyncDispose\"),bi(\"dispose\"),bi(\"observable\"),bi(\"patternMatch\"),bi(\"replaceAll\");var Tn=Cn,Mn=Bt(\"iterator\"),On=function(t){var e=Object(t);return void 0!==e[Mn]||\"@@iterator\"in e||ke.hasOwnProperty(ge(e))};var En=bn(\"slice\"),Pn=Bt(\"species\"),An=[].slice,Ln=Math.max;wt({target:\"Array\",proto:!0,forced:!En},{slice:function(t,e){var i,n,o,r=st(this),s=$t(r.length),a=Qt(t,s),l=Qt(void 0===e?s:e,s);if(hi(r)&&(\"function\"!=typeof(i=r.constructor)||i!==Array&&!hi(i.prototype)?m(i)&&null===(i=i[Pn])&&(i=void 0):i=void 0,i===Array||void 0===i))return An.call(r,a,l);for(n=new(void 0===i?Array:i)(Ln(l-a,0)),o=0;a<l;a++,o++)a in r&&We(n,o,r[a]);return n.length=o,n}});var In=function(t){return vt[t+\"Prototype\"]},Nn=In(\"Array\").slice,Fn=Array.prototype,Rn=function(t){var e=t.slice;return t===Fn||t instanceof Array&&e===Fn.slice?Nn:e},Yn=Rn,jn=Je;function Hn(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function zn(t,e){var i;if(t){if(\"string\"==typeof t)return Hn(t,e);var n=Yn(i=Object.prototype.toString.call(t)).call(i,8,-1);return\"Object\"===n&&t.constructor&&(n=t.constructor.name),\"Map\"===n||\"Set\"===n?jn(t):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Hn(t,e):void 0}}function Gn(t,e){return function(t){if(gn(t))return t}(t)||function(t,e){if(void 0!==Tn&&On(Object(t))){var i=[],n=!0,o=!1,r=void 0;try{for(var s,a=li(t);!(n=(s=a.next()).done)&&(i.push(s.value),!e||i.length!==e);n=!0);}catch(t){o=!0,r=t}finally{try{n||null==a.return||a.return()}finally{if(o)throw r}}return i}}(t,e)||zn(t,e)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}var Bn=gi.f(\"iterator\"),Wn=Bn;function Vn(t){return(Vn=\"function\"==typeof Tn&&\"symbol\"==typeof Wn?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Tn&&t.constructor===Tn&&t!==Tn.prototype?\"symbol\":typeof t})(t)}function Un(t){return function(t){if(gn(t))return Hn(t)}(t)||function(t){if(void 0!==Tn&&On(Object(t)))return jn(t)}(t)||zn(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}var Xn=Cn,qn=In(\"Array\").concat,Zn=Array.prototype,$n=function(t){var e=t.concat;return t===Zn||t instanceof Array&&e===Zn.concat?qn:e},Kn=Rn;wt({target:\"Reflect\",stat:!0},{ownKeys:sn});var Jn=vt.Reflect.ownKeys,Qn=vn,to=Di.map,eo=bn(\"map\");wt({target:\"Array\",proto:!0,forced:!eo},{map:function(t){return to(this,t,arguments.length>1?arguments[1]:void 0)}});var io=In(\"Array\").map,no=Array.prototype,oo=function(t){var e=t.map;return t===no||t instanceof Array&&e===no.map?io:e},ro=p((function(){re(1)}));wt({target:\"Object\",stat:!0,forced:ro},{keys:function(t){return re(kt(t))}});var so=vt.Object.keys;wt({target:\"Date\",stat:!0},{now:function(){return(new Date).getTime()}});var ao=vt.Date.now,lo=[].slice,ho={},uo=function(t,e,i){if(!(e in ho)){for(var n=[],o=0;o<e;o++)n[o]=\"a[\"+o+\"]\";ho[e]=Function(\"C,a\",\"return new C(\"+n.join(\",\")+\")\")}return ho[e](t,i)},co=Function.bind||function(t){var e=gt(this),i=lo.call(arguments,1),n=function(){var o=i.concat(lo.call(arguments));return this instanceof n?uo(e,o.length,o):e.apply(t,o)};return m(e.prototype)&&(n.prototype=e.prototype),n};wt({target:\"Function\",proto:!0},{bind:co});var po=In(\"Function\").bind,fo=Function.prototype,mo=function(t){var e=t.bind;return t===fo||t instanceof Function&&e===fo.bind?po:e},vo=function(t,e){var i=[][t];return!!i&&p((function(){i.call(null,e||function(){throw 1},1)}))},go=Di.forEach,yo=vo(\"forEach\")?[].forEach:function(t){return go(this,t,arguments.length>1?arguments[1]:void 0)};wt({target:\"Array\",proto:!0,forced:[].forEach!=yo},{forEach:yo});var bo=In(\"Array\").forEach,_o=Array.prototype,wo={DOMTokenList:!0,NodeList:!0},ko=function(t){var e=t.forEach;return t===_o||t instanceof Array&&e===_o.forEach||wo.hasOwnProperty(ge(t))?bo:e},xo=[].reverse,Do=[1,2];wt({target:\"Array\",proto:!0,forced:String(Do)===String(Do.reverse())},{reverse:function(){return hi(this)&&(this.length=this.length),xo.call(this)}});var So=In(\"Array\").reverse,Co=Array.prototype,To=function(t){var e=t.reverse;return t===Co||t instanceof Array&&e===Co.reverse?So:e},Mo=bn(\"splice\"),Oo=Math.max,Eo=Math.min,Po=9007199254740991,Ao=\"Maximum allowed length exceeded\";wt({target:\"Array\",proto:!0,forced:!Mo},{splice:function(t,e){var i,n,o,r,s,l,h=kt(this),u=$t(h.length),d=Qt(t,u),c=arguments.length;if(0===c?i=n=0:1===c?(i=0,n=u-d):(i=c-2,n=Eo(Oo(a(e),0),u-d)),u+i-n>Po)throw TypeError(Ao);for(o=wi(h,n),r=0;r<n;r++)(s=d+r)in h&&We(o,r,h[s]);if(o.length=n,i<n){for(r=d;r<u-n;r++)l=r+i,(s=r+n)in h?h[l]=h[s]:delete h[l];for(r=u;r>u-n+i;r--)delete h[r-1]}else if(i>n)for(r=u-n;r>d;r--)l=r+i-1,(s=r+n-1)in h?h[l]=h[s]:delete h[l];for(r=0;r<i;r++)h[r+d]=arguments[r+2];return h.length=u-n+i,o}});var Lo=In(\"Array\").splice,Io=Array.prototype,No=function(t){var e=t.splice;return t===Io||t instanceof Array&&e===Io.splice?Lo:e},Fo=Object.assign,Ro=Object.defineProperty,Yo=!Fo||p((function(){if(f&&1!==Fo({b:1},Fo(Ro({},\"a\",{enumerable:!0,get:function(){Ro(this,\"b\",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},i=Symbol(),n=\"abcdefghijklmnopqrst\";return t[i]=7,n.split(\"\").forEach((function(t){e[t]=t})),7!=Fo({},t)[i]||re(Fo({},e)).join(\"\")!=n}))?function(t,e){for(var i=kt(t),n=arguments.length,o=1,r=vi.f,s=et.f;n>o;)for(var a,l=rt(arguments[o++]),h=r?re(l).concat(r(l)):re(l),u=h.length,d=0;u>d;)a=h[d++],f&&!s.call(l,a)||(i[a]=l[a]);return i}:Fo;wt({target:\"Object\",stat:!0,forced:Object.assign!==Yo},{assign:Yo});var jo=vt.Object.assign,Ho=ee.includes;wt({target:\"Array\",proto:!0},{includes:function(t){return Ho(this,t,arguments.length>1?arguments[1]:void 0)}});var zo=In(\"Array\").includes,Go=Bt(\"match\"),Bo=function(t){if(function(t){var e;return m(t)&&(void 0!==(e=t[Go])?!!e:\"RegExp\"==nt(t))}(t))throw TypeError(\"The method doesn\'t accept regular expressions\");return t},Wo=Bt(\"match\");wt({target:\"String\",proto:!0,forced:!function(t){var e=/./;try{\"/./\"[t](e)}catch(i){try{return e[Wo]=!1,\"/./\"[t](e)}catch(t){}}return!1}(\"includes\")},{includes:function(t){return!!~String(l(this)).indexOf(Bo(t),arguments.length>1?arguments[1]:void 0)}});var Vo=In(\"String\").includes,Uo=Array.prototype,Xo=String.prototype,qo=function(t){var e=t.includes;return t===Uo||t instanceof Array&&e===Uo.includes?zo:\"string\"==typeof t||t===Xo||t instanceof String&&e===Xo.includes?Vo:e},Zo=p((function(){Ct(1)}));wt({target:\"Object\",stat:!0,forced:Zo,sham:!xt},{getPrototypeOf:function(t){return Ct(kt(t))}});var $o=vt.Object.getPrototypeOf,Ko=$o,Jo=Di.filter,Qo=bn(\"filter\");wt({target:\"Array\",proto:!0,forced:!Qo},{filter:function(t){return Jo(this,t,arguments.length>1?arguments[1]:void 0)}});var tr=In(\"Array\").filter,er=Array.prototype,ir=function(t){var e=t.filter;return t===er||t instanceof Array&&e===er.filter?tr:e},nr=et.f,or=function(t){return function(e){for(var i,n=st(e),o=re(n),r=o.length,s=0,a=[];r>s;)i=o[s++],f&&!nr.call(n,i)||a.push(t?[i,n[i]]:n[i]);return a}},rr={entries:or(!0),values:or(!1)}.values;wt({target:\"Object\",stat:!0},{values:function(t){return rr(t)}});var sr=vt.Object.values,ar=\"\\t\\n\\v\\f\\r \u{a0}\u{1680}\u{2000}\u{2001}\u{2002}\u{2003}\u{2004}\u{2005}\u{2006}\u{2007}\u{2008}\u{2009}\u{200a}\u{202f}\u{205f}\u{3000}\\u2028\\u2029\\ufeff\",lr=\"[\"+ar+\"]\",hr=RegExp(\"^\"+lr+lr+\"*\"),ur=RegExp(lr+lr+\"*$\"),dr=function(t){return function(e){var i=String(l(e));return 1&t&&(i=i.replace(hr,\"\")),2&t&&(i=i.replace(ur,\"\")),i}},cr={start:dr(1),end:dr(2),trim:dr(3)},pr=cr.trim,fr=c.parseInt,mr=/^[+-]?0[Xx]/,vr=8!==fr(ar+\"08\")||22!==fr(ar+\"0x16\")?function(t,e){var i=pr(String(t));return fr(i,e>>>0||(mr.test(i)?16:10))}:fr;wt({global:!0,forced:parseInt!=vr},{parseInt:vr});var gr=vt.parseInt,yr=ee.indexOf,br=[].indexOf,_r=!!br&&1/[1].indexOf(1,-0)<0,wr=vo(\"indexOf\");wt({target:\"Array\",proto:!0,forced:_r||!wr},{indexOf:function(t){return _r?br.apply(this,arguments)||0:yr(this,t,arguments.length>1?arguments[1]:void 0)}});var kr,xr=In(\"Array\").indexOf,Dr=Array.prototype,Sr=function(t){var e=t.indexOf;return t===Dr||t instanceof Array&&e===Dr.indexOf?xr:e},Cr=cr.trim;wt({target:\"String\",proto:!0,forced:(kr=\"trim\",p((function(){return!!ar[kr]()||\"\u{200b}\u{85}\u{180e}\"!=\"\u{200b}\u{85}\u{180e}\"[kr]()||ar[kr].name!==kr})))},{trim:function(){return Cr(this)}});var Tr=In(\"String\").trim,Mr=String.prototype,Or=function(t){var e=t.trim;return\"string\"==typeof t||t===Mr||t instanceof String&&e===Mr.trim?Tr:e};wt({target:\"Object\",stat:!0,sham:!f},{create:ce});var Er=vt.Object,Pr=function(t,e){return Er.create(t,e)},Ar=Pr,Lr=Ot(\"JSON\",\"stringify\"),Ir=/[\\uD800-\\uDFFF]/g,Nr=/^[\\uD800-\\uDBFF]$/,Fr=/^[\\uDC00-\\uDFFF]$/,Rr=function(t,e,i){var n=i.charAt(e-1),o=i.charAt(e+1);return Nr.test(t)&&!Fr.test(o)||Fr.test(t)&&!Nr.test(n)?\"\\\\u\"+t.charCodeAt(0).toString(16):t},Yr=p((function(){return\'\"\\\\udf06\\\\ud834\"\'!==Lr(\"\\udf06\\ud834\")||\'\"\\\\udead\"\'!==Lr(\"\\udead\")}));Lr&&wt({target:\"JSON\",stat:!0,forced:Yr},{stringify:function(t,e,i){var n=Lr.apply(null,arguments);return\"string\"==typeof n?n.replace(Ir,Rr):n}}),vt.JSON||(vt.JSON={stringify:JSON.stringify});var jr=function(t,e,i){return vt.JSON.stringify.apply(null,arguments)},Hr=[].slice,zr=/MSIE .\\./.test(Et),Gr=function(t){return function(e,i){var n=arguments.length>2,o=n?Hr.call(arguments,2):void 0;return t(n?function(){(\"function\"==typeof e?e:Function(e)).apply(this,o)}:e,i)}};wt({global:!0,bind:!0,forced:zr},{setTimeout:Gr(c.setTimeout),setInterval:Gr(c.setInterval)});var Br=vt.setTimeout;wt({target:\"Array\",proto:!0},{fill:function(t){for(var e=kt(this),i=$t(e.length),n=arguments.length,o=Qt(n>1?arguments[1]:void 0,i),r=n>2?arguments[2]:void 0,s=void 0===r?i:Qt(r,i);s>o;)e[o++]=t;return e}});var Wr=In(\"Array\").fill,Vr=Array.prototype,Ur=function(t){var e=t.fill;return t===Vr||t instanceof Array&&e===Vr.fill?Wr:e},Xr=i((function(t){function e(t){if(t)return function(t){for(var i in e.prototype)t[i]=e.prototype[i];return t}(t)}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks[\"$\"+t]=this._callbacks[\"$\"+t]||[]).push(e),this},e.prototype.once=function(t,e){function i(){this.off(t,i),e.apply(this,arguments)}return i.fn=e,this.on(t,i),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var i,n=this._callbacks[\"$\"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks[\"$\"+t],this;for(var o=0;o<n.length;o++)if((i=n[o])===e||i.fn===e){n.splice(o,1);break}return 0===n.length&&delete this._callbacks[\"$\"+t],this},e.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),i=this._callbacks[\"$\"+t],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(i){n=0;for(var o=(i=i.slice(0)).length;n<o;++n)i[n].apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks[\"$\"+t]||[]},e.prototype.hasListeners=function(t){return!!this.listeners(t).length}}));\n/*! Hammer.JS - v2.0.17-rc - 2019-12-16\n\t * http://naver.github.io/egjs\n\t *\n\t * Forked By Naver egjs\n\t * Copyright (c) hammerjs\n\t * Licensed under the MIT license */\nfunction qr(){return(qr=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 Zr(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function $r(t){if(void 0===t)throw new ReferenceError(\"this hasn\'t been initialised - super() hasn\'t been called\");return t}var Kr,Jr=\"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 o in n)n.hasOwnProperty(o)&&(e[o]=n[o])}return e}:Object.assign,Qr=[\"\",\"webkit\",\"Moz\",\"MS\",\"ms\",\"o\"],ts=\"undefined\"==typeof document?{style:{}}:document.createElement(\"div\"),es=Math.round,is=Math.abs,ns=Date.now;function os(t,e){for(var i,n,o=e[0].toUpperCase()+e.slice(1),r=0;r<Qr.length;){if((n=(i=Qr[r])?i+o:e)in t)return n;r++}}Kr=\"undefined\"==typeof window?{}:window;var rs=os(ts.style,\"touchAction\"),ss=void 0!==rs;var as=\"compute\",ls=\"auto\",hs=\"manipulation\",us=\"none\",ds=\"pan-x\",cs=\"pan-y\",ps=function(){if(!ss)return!1;var t={},e=Kr.CSS&&Kr.CSS.supports;return[\"auto\",\"manipulation\",\"pan-y\",\"pan-x\",\"pan-x pan-y\",\"none\"].forEach((function(i){return t[i]=!e||Kr.CSS.supports(\"touch-action\",i)})),t}(),fs=\"ontouchstart\"in Kr,ms=void 0!==os(Kr,\"PointerEvent\"),vs=fs&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),gs=\"touch\",ys=\"mouse\",bs=16,_s=24,ws=[\"x\",\"y\"],ks=[\"clientX\",\"clientY\"];function xs(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 Ds(t,e){return\"function\"==typeof t?t.apply(e&&e[0]||void 0,e):t}function Ss(t,e){return t.indexOf(e)>-1}var Cs=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){t===as&&(t=this.compute()),ss&&this.manager.element.style&&ps[t]&&(this.manager.element.style[rs]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return xs(this.manager.recognizers,(function(e){Ds(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(Ss(t,us))return us;var e=Ss(t,ds),i=Ss(t,cs);return e&&i?us:e||i?e?ds:cs:Ss(t,hs)?hs:ls}(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,o=Ss(n,us)&&!ps.none,r=Ss(n,cs)&&!ps[\"pan-y\"],s=Ss(n,ds)&&!ps[\"pan-x\"];if(o){var a=1===t.pointers.length,l=t.distance<2,h=t.deltaTime<250;if(a&&l&&h)return}if(!s||!r)return o||r&&6&i||s&&i&_s?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function Ts(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function Ms(t){var e=t.length;if(1===e)return{x:es(t[0].clientX),y:es(t[0].clientY)};for(var i=0,n=0,o=0;o<e;)i+=t[o].clientX,n+=t[o].clientY,o++;return{x:es(i/e),y:es(n/e)}}function Os(t){for(var e=[],i=0;i<t.pointers.length;)e[i]={clientX:es(t.pointers[i].clientX),clientY:es(t.pointers[i].clientY)},i++;return{timeStamp:ns(),pointers:e,center:Ms(e),deltaX:t.deltaX,deltaY:t.deltaY}}function Es(t,e,i){i||(i=ws);var n=e[i[0]]-t[i[0]],o=e[i[1]]-t[i[1]];return Math.sqrt(n*n+o*o)}function Ps(t,e,i){i||(i=ws);var n=e[i[0]]-t[i[0]],o=e[i[1]]-t[i[1]];return 180*Math.atan2(o,n)/Math.PI}function As(t,e){return t===e?1:is(t)>=is(e)?t<0?2:4:e<0?8:bs}function Ls(t,e,i){return{x:e/t||0,y:i/t||0}}function Is(t,e){var i=t.session,n=e.pointers,o=n.length;i.firstInput||(i.firstInput=Os(e)),o>1&&!i.firstMultiple?i.firstMultiple=Os(e):1===o&&(i.firstMultiple=!1);var r=i.firstInput,s=i.firstMultiple,a=s?s.center:r.center,l=e.center=Ms(n);e.timeStamp=ns(),e.deltaTime=e.timeStamp-r.timeStamp,e.angle=Ps(a,l),e.distance=Es(a,l),function(t,e){var i=e.center,n=t.offsetDelta||{},o=t.prevDelta||{},r=t.prevInput||{};1!==e.eventType&&4!==r.eventType||(o=t.prevDelta={x:r.deltaX||0,y:r.deltaY||0},n=t.offsetDelta={x:i.x,y:i.y}),e.deltaX=o.x+(i.x-n.x),e.deltaY=o.y+(i.y-n.y)}(i,e),e.offsetDirection=As(e.deltaX,e.deltaY);var h,u,d=Ls(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=d.x,e.overallVelocityY=d.y,e.overallVelocity=is(d.x)>is(d.y)?d.x:d.y,e.scale=s?(h=s.pointers,Es((u=n)[0],u[1],ks)/Es(h[0],h[1],ks)):1,e.rotation=s?function(t,e){return Ps(e[1],e[0],ks)+Ps(t[1],t[0],ks)}(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,o,r,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,h=e.deltaY-s.deltaY,u=Ls(a,l,h);n=u.x,o=u.y,i=is(u.x)>is(u.y)?u.x:u.y,r=As(l,h),t.lastInterval=e}else i=s.velocity,n=s.velocityX,o=s.velocityY,r=s.direction;e.velocity=i,e.velocityX=n,e.velocityY=o,e.direction=r}(i,e);var c,p=t.element,f=e.srcEvent;Ts(c=f.composedPath?f.composedPath()[0]:f.path?f.path[0]:f.target,p)&&(p=c),e.target=p}function Ns(t,e,i){var n=i.pointers.length,o=i.changedPointers.length,r=1&e&&n-o==0,s=12&e&&n-o==0;i.isFirst=!!r,i.isFinal=!!s,r&&(t.session={}),i.eventType=e,Is(t,i),t.emit(\"hammer.input\",i),t.recognize(i),t.session.prevInput=i}function Fs(t){return t.trim().split(/\\s+/g)}function Rs(t,e,i){xs(Fs(e),(function(e){t.addEventListener(e,i,!1)}))}function Ys(t,e,i){xs(Fs(e),(function(e){t.removeEventListener(e,i,!1)}))}function js(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var Hs=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){Ds(t.options.enable,[t])&&i.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&Rs(this.element,this.evEl,this.domHandler),this.evTarget&&Rs(this.target,this.evTarget,this.domHandler),this.evWin&&Rs(js(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&Ys(this.element,this.evEl,this.domHandler),this.evTarget&&Ys(this.target,this.evTarget,this.domHandler),this.evWin&&Ys(js(this.element),this.evWin,this.domHandler)},t}();function zs(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 Gs={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Bs={2:gs,3:\"pen\",4:ys,5:\"kinect\"},Ws=\"pointerdown\",Vs=\"pointermove pointerup pointercancel\";Kr.MSPointerEvent&&!Kr.PointerEvent&&(Ws=\"MSPointerDown\",Vs=\"MSPointerMove MSPointerUp MSPointerCancel\");var Us=function(t){function e(){var i,n=e.prototype;return n.evEl=Ws,n.evWin=Vs,(i=t.apply(this,arguments)||this).store=i.manager.session.pointerEvents=[],i}return Zr(e,t),e.prototype.handler=function(t){var e=this.store,i=!1,n=t.type.toLowerCase().replace(\"ms\",\"\"),o=Gs[n],r=Bs[t.pointerType]||t.pointerType,s=r===gs,a=zs(e,t.pointerId,\"pointerId\");1&o&&(0===t.button||s)?a<0&&(e.push(t),a=e.length-1):12&o&&(i=!0),a<0||(e[a]=t,this.callback(this.manager,o,{pointers:e,changedPointers:[t],pointerType:r,srcEvent:t}),i&&e.splice(a,1))},e}(Hs);function Xs(t){return Array.prototype.slice.call(t,0)}function qs(t,e,i){for(var n=[],o=[],r=0;r<t.length;){var s=e?t[r][e]:t[r];zs(o,s)<0&&n.push(t[r]),o[r]=s,r++}return i&&(n=e?n.sort((function(t,i){return t[e]>i[e]})):n.sort()),n}var Zs={touchstart:1,touchmove:2,touchend:4,touchcancel:8},$s=\"touchstart touchmove touchend touchcancel\",Ks=function(t){function e(){var i;return e.prototype.evTarget=$s,(i=t.apply(this,arguments)||this).targetIds={},i}return Zr(e,t),e.prototype.handler=function(t){var e=Zs[t.type],i=Js.call(this,t,e);i&&this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:gs,srcEvent:t})},e}(Hs);function Js(t,e){var i,n,o=Xs(t.touches),r=this.targetIds;if(3&e&&1===o.length)return r[o[0].identifier]=!0,[o,o];var s=Xs(t.changedTouches),a=[],l=this.target;if(n=o.filter((function(t){return Ts(t.target,l)})),1===e)for(i=0;i<n.length;)r[n[i].identifier]=!0,i++;for(i=0;i<s.length;)r[s[i].identifier]&&a.push(s[i]),12&e&&delete r[s[i].identifier],i++;return a.length?[qs(n.concat(a),\"identifier\",!0),a]:void 0}var Qs={mousedown:1,mousemove:2,mouseup:4},ta=\"mousedown\",ea=\"mousemove mouseup\",ia=function(t){function e(){var i,n=e.prototype;return n.evEl=ta,n.evWin=ea,(i=t.apply(this,arguments)||this).pressed=!1,i}return Zr(e,t),e.prototype.handler=function(t){var e=Qs[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:ys,srcEvent:t}))},e}(Hs);function na(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 oa(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,na.call(this,e)):12&t&&na.call(this,e)}function ra(t){for(var e=t.srcEvent.clientX,i=t.srcEvent.clientY,n=0;n<this.lastTouches.length;n++){var o=this.lastTouches[n],r=Math.abs(e-o.x),s=Math.abs(i-o.y);if(r<=25&&s<=25)return!0}return!1}var sa=function(){return function(t){function e(e,i){var n;return(n=t.call(this,e,i)||this).handler=function(t,e,i){var o=i.pointerType===gs,r=i.pointerType===ys;if(!(r&&i.sourceCapabilities&&i.sourceCapabilities.firesTouchEvents)){if(o)oa.call($r($r(n)),e,i);else if(r&&ra.call($r($r(n)),i))return;n.callback(t,e,i)}},n.touch=new Ks(n.manager,n.handler),n.mouse=new ia(n.manager,n.handler),n.primaryTouch=null,n.lastTouches=[],n}return Zr(e,t),e.prototype.destroy=function(){this.touch.destroy(),this.mouse.destroy()},e}(Hs)}();function aa(t,e,i){return!!Array.isArray(t)&&(xs(t,i[e],i),!0)}var la=32,ha=1;function ua(t,e){var i=e.manager;return i?i.get(t):t}function da(t){return 16&t?\"cancel\":8&t?\"end\":4&t?\"move\":2&t?\"start\":\"\"}var ca=function(){function t(t){void 0===t&&(t={}),this.options=qr({enable:!0},t),this.id=ha++,this.manager=null,this.state=1,this.simultaneous={},this.requireFail=[]}var e=t.prototype;return e.set=function(t){return Jr(this.options,t),this.manager&&this.manager.touchAction.update(),this},e.recognizeWith=function(t){if(aa(t,\"recognizeWith\",this))return this;var e=this.simultaneous;return e[(t=ua(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},e.dropRecognizeWith=function(t){return aa(t,\"dropRecognizeWith\",this)||(t=ua(t,this),delete this.simultaneous[t.id]),this},e.requireFailure=function(t){if(aa(t,\"requireFailure\",this))return this;var e=this.requireFail;return-1===zs(e,t=ua(t,this))&&(e.push(t),t.requireFailure(this)),this},e.dropRequireFailure=function(t){if(aa(t,\"dropRequireFailure\",this))return this;t=ua(t,this);var e=zs(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+da(i)),n(e.options.event),t.additionalEvent&&n(t.additionalEvent),i>=8&&n(e.options.event+da(i))},e.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=la},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=Jr({},t);if(!Ds(this.options.enable,[this,e]))return this.reset(),void(this.state=la);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}(),pa=function(t){function e(e){var i;return void 0===e&&(e={}),(i=t.call(this,qr({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}Zr(e,t);var i=e.prototype;return i.getTouchAction=function(){return[hs]},i.process=function(t){var e=this,i=this.options,n=t.pointers.length===i.pointers,o=t.distance<i.threshold,r=t.deltaTime<i.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(o&&r&&n){if(4!==t.eventType)return this.failTimeout();var s=!this.pTime||t.timeStamp-this.pTime<i.interval,a=!this.pCenter||Es(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 la},i.failTimeout=function(){var t=this;return this._timer=setTimeout((function(){t.state=la}),this.options.interval),la},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}(ca),fa=function(t){function e(e){return void 0===e&&(e={}),t.call(this,qr({pointers:1},e))||this}Zr(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,o=this.attrTest(t);return n&&(8&i||!o)?16|e:n||o?4&i?8|e:2&e?4|e:2:la},e}(ca);function ma(t){return t===bs?\"down\":8===t?\"up\":2===t?\"left\":4===t?\"right\":\"\"}var va=function(t){function e(e){var i;return void 0===e&&(e={}),(i=t.call(this,qr({event:\"pan\",threshold:10,pointers:1,direction:30},e))||this).pX=null,i.pY=null,i}Zr(e,t);var i=e.prototype;return i.getTouchAction=function(){var t=this.options.direction,e=[];return 6&t&&e.push(cs),t&_s&&e.push(ds),e},i.directionTest=function(t){var e=this.options,i=!0,n=t.distance,o=t.direction,r=t.deltaX,s=t.deltaY;return o&e.direction||(6&e.direction?(o=0===r?1:r<0?2:4,i=r!==this.pX,n=Math.abs(t.deltaX)):(o=0===s?1:s<0?8:bs,i=s!==this.pY,n=Math.abs(t.deltaY))),t.direction=o,i&&n>e.threshold&&o&e.direction},i.attrTest=function(t){return fa.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=ma(e.direction);i&&(e.additionalEvent=this.options.event+i),t.prototype.emit.call(this,e)},e}(fa),ga=function(t){function e(e){return void 0===e&&(e={}),t.call(this,qr({event:\"swipe\",threshold:10,velocity:.3,direction:30,pointers:1},e))||this}Zr(e,t);var i=e.prototype;return i.getTouchAction=function(){return va.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:n&_s&&(i=e.overallVelocityY),t.prototype.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers===this.options.pointers&&is(i)>this.options.velocity&&4&e.eventType},i.emit=function(t){var e=ma(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},e}(fa),ya=function(t){function e(e){return void 0===e&&(e={}),t.call(this,qr({event:\"pinch\",threshold:0,pointers:2},e))||this}Zr(e,t);var i=e.prototype;return i.getTouchAction=function(){return[us]},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}(fa),ba=function(t){function e(e){return void 0===e&&(e={}),t.call(this,qr({event:\"rotate\",threshold:0,pointers:2},e))||this}Zr(e,t);var i=e.prototype;return i.getTouchAction=function(){return[us]},i.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)},e}(fa),_a=function(t){function e(e){var i;return void 0===e&&(e={}),(i=t.call(this,qr({event:\"press\",pointers:1,time:251,threshold:9},e))||this)._timer=null,i._input=null,i}Zr(e,t);var i=e.prototype;return i.getTouchAction=function(){return[ls]},i.process=function(t){var e=this,i=this.options,n=t.pointers.length===i.pointers,o=t.distance<i.threshold,r=t.deltaTime>i.time;if(this._input=t,!o||!n||12&t.eventType&&!r)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 la},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=ns(),this.manager.emit(this.options.event,this._input)))},e}(ca),wa={domEvents:!1,touchAction:as,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:\"none\",touchSelect:\"none\",touchCallout:\"none\",contentZooming:\"none\",userDrag:\"none\",tapHighlightColor:\"rgba(0,0,0,0)\"}},ka=[[ba,{enable:!1}],[ya,{enable:!1},[\"rotate\"]],[ga,{direction:6}],[va,{direction:6},[\"swipe\"]],[pa],[pa,{event:\"doubletap\",taps:2},[\"tap\"]],[_a]];function xa(t,e){var i,n=t.element;n.style&&(xs(t.options.cssProps,(function(o,r){i=os(n.style,r),e?(t.oldCssProps[i]=n.style[i],n.style[i]=o):n.style[i]=t.oldCssProps[i]||\"\"})),e||(t.oldCssProps={}))}var Da=function(){function t(t,e){var i,n=this;this.options=Jr({},wa,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||(ms?Us:vs?Ks:fs?sa:ia))(i,Ns),this.touchAction=new Cs(this,this.options.touchAction),xa(this,!0),xs(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 Jr(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,o=e.curRecognizer;(!o||o&&8&o.state)&&(e.curRecognizer=null,o=null);for(var r=0;r<n.length;)i=n[r],2===e.stopped||o&&i!==o&&!i.canRecognizeWith(o)?i.reset():i.recognize(t),!o&&14&i.state&&(e.curRecognizer=i,o=i),r++}},e.get=function(t){if(t instanceof ca)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(aa(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(aa(t,\"remove\",this))return this;var e=this.get(t);if(t){var i=this.recognizers,n=zs(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 xs(Fs(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 xs(Fs(t),(function(t){e?i[t]&&i[t].splice(zs(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&&xa(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},t}(),Sa={touchstart:1,touchmove:2,touchend:4,touchcancel:8},Ca=\"touchstart\",Ta=\"touchstart touchmove touchend touchcancel\",Ma=function(t){function e(){var i,n=e.prototype;return n.evTarget=Ca,n.evWin=Ta,(i=t.apply(this,arguments)||this).started=!1,i}return Zr(e,t),e.prototype.handler=function(t){var e=Sa[t.type];if(1===e&&(this.started=!0),this.started){var i=Oa.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:gs,srcEvent:t})}},e}(Hs);function Oa(t,e){var i=Xs(t.touches),n=Xs(t.changedTouches);return 12&e&&(i=qs(i.concat(n),\"identifier\",!0)),[i,n]}function Ea(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\",o=window.console&&(window.console.warn||window.console.log);return o&&o.call(window.console,n,i),t.apply(this,arguments)}}var Pa=Ea((function(t,e,i){for(var n=Object.keys(e),o=0;o<n.length;)(!i||i&&void 0===t[n[o]])&&(t[n[o]]=e[n[o]]),o++;return t}),\"extend\",\"Use `assign`.\"),Aa=Ea((function(t,e){return Pa(t,e,!0)}),\"merge\",\"Use `assign`.\");function La(t,e,i){var n,o=e.prototype;(n=t.prototype=Object.create(o)).constructor=t,n._super=o,i&&Jr(n,i)}function Ia(t,e){return function(){return t.apply(e,arguments)}}var Na=function(){var t=function(t,e){return void 0===e&&(e={}),new Da(t,qr({recognizers:ka.concat()},e))};return t.VERSION=\"2.0.17-rc\",t.DIRECTION_ALL=30,t.DIRECTION_DOWN=bs,t.DIRECTION_LEFT=2,t.DIRECTION_RIGHT=4,t.DIRECTION_UP=8,t.DIRECTION_HORIZONTAL=6,t.DIRECTION_VERTICAL=_s,t.DIRECTION_NONE=1,t.DIRECTION_DOWN=bs,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=la,t.Manager=Da,t.Input=Hs,t.TouchAction=Cs,t.TouchInput=Ks,t.MouseInput=ia,t.PointerEventInput=Us,t.TouchMouseInput=sa,t.SingleTouchInput=Ma,t.Recognizer=ca,t.AttrRecognizer=fa,t.Tap=pa,t.Pan=va,t.Swipe=ga,t.Pinch=ya,t.Rotate=ba,t.Press=_a,t.on=Rs,t.off=Ys,t.each=xs,t.merge=Aa,t.extend=Pa,t.bindFn=Ia,t.assign=Jr,t.inherit=La,t.bindFn=Ia,t.prefixed=os,t.toArray=Xs,t.inArray=zs,t.uniqueArray=qs,t.splitStr=Fs,t.boolOrFn=Ds,t.hasParent=Ts,t.addEventListeners=Rs,t.removeEventListeners=Ys,t.defaults=Jr({},wa,{preset:ka}),t}();function Fa(t,e){var i=so(t);if(en){var n=en(t);e&&(n=ir(n).call(n,(function(e){return rn(t,e).enumerable}))),i.push.apply(i,n)}return i}function Ra(t){for(var e=1;e<arguments.length;e++){var i,n=null!=arguments[e]?arguments[e]:{};if(e%2)ko(i=Fa(Object(n),!0)).call(i,(function(e){mn(t,e,n[e])}));else if(an)ln(t,an(n));else{var o;ko(o=Fa(Object(n))).call(o,(function(e){un(t,e,rn(n,e))}))}}return t}function Ya(t,e){var i;if(void 0===Xn||null==ai(t)){if(Qn(t)||(i=function(t,e){var i;if(!t)return;if(\"string\"==typeof t)return ja(t,e);var n=Kn(i=Object.prototype.toString.call(t)).call(i,8,-1);\"Object\"===n&&t.constructor&&(n=t.constructor.name);if(\"Map\"===n||\"Set\"===n)return Qe(t);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ja(t,e)}(t))||e&&t&&\"number\"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var r,s=!0,a=!1;return{s:function(){i=li(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){a=!0,r=t},f:function(){try{s||null==i.return||i.return()}finally{if(a)throw r}}}}function ja(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var Ha=Xn(\"DELETE\");function za(t){for(var e,i=arguments.length,n=new Array(i>1?i-1:0),o=1;o<i;o++)n[o-1]=arguments[o];return Ga.apply(void 0,$n(e=[{},t]).call(e,n))}function Ga(){var t=Ba.apply(void 0,arguments);return Va(t),t}function Ba(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];if(e.length<2)return e[0];var n;if(e.length>2)return Ba.apply(void 0,$n(n=[Ga(e[0],e[1])]).call(n,Un(Kn(e).call(e,2))));var o,r=e[0],s=e[1],a=Ya(Jn(s));try{for(a.s();!(o=a.n()).done;){var l=o.value;Object.prototype.propertyIsEnumerable.call(s,l)&&(s[l]===Ha?delete r[l]:null===r[l]||null===s[l]||\"object\"!==Vn(r[l])||\"object\"!==Vn(s[l])||Qn(r[l])||Qn(s[l])?r[l]=Wa(s[l]):r[l]=Ba(r[l],s[l]))}}catch(t){a.e(t)}finally{a.f()}return r}function Wa(t){return Qn(t)?oo(t).call(t,(function(t){return Wa(t)})):\"object\"===Vn(t)&&null!==t?Ba({},t):t}function Va(t){for(var e=0,i=so(t);e<i.length;e++){var n=i[e];t[n]===Ha?delete t[n]:\"object\"===Vn(t[n])&&null!==t[n]&&Va(t[n])}}function Ua(t){var e=Gn(function(){for(var t=Xa(),e=t(\" \"),i=t(\" \"),n=t(\" \"),o=0;o<arguments.length;o++)(e-=t(o<0||arguments.length<=o?void 0:arguments[o]))<0&&(e+=1),(i-=t(o<0||arguments.length<=o?void 0:arguments[o]))<0&&(i+=1),(n-=t(o<0||arguments.length<=o?void 0:arguments[o]))<0&&(n+=1);return[e,i,n]}(t),3),i=e[0],n=e[1],o=e[2],r=1,s=function(){var t=2091639*i+2.3283064365386963e-10*r;return i=n,n=o,o=t-(r=0|t)};return s.uint32=function(){return 4294967296*s()},s.fract53=function(){return s()+11102230246251565e-32*(2097152*s()|0)},s.algorithm=\"Alea\",s.seed=t,s.version=\"0.9\",s}function Xa(){var t=4022871197;return function(e){for(var i=e.toString(),n=0;n<i.length;n++){var o=.02519603282416938*(t+=i.charCodeAt(n));o-=t=o>>>0,t=(o*=t)>>>0,t+=4294967296*(o-=t)}return 2.3283064365386963e-10*(t>>>0)}}var qa=\"undefined\"!=typeof window?window.Hammer||Na:function(){return{on:t=function(){},off:t,destroy:t,emit:t,get:function(){return{set:t}}};var t};function Za(t){var e,i=this;this._cleanupQueue=[],this.active=!1,this._dom={container:t,overlay:document.createElement(\"div\")},this._dom.overlay.classList.add(\"vis-overlay\"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push((function(){i._dom.overlay.parentNode.removeChild(i._dom.overlay)}));var n=qa(this._dom.overlay);n.on(\"tap\",mo(e=this._onTapOverlay).call(e,this)),this._cleanupQueue.push((function(){n.destroy()}));var o=[\"tap\",\"doubletap\",\"press\",\"pinch\",\"pan\",\"panstart\",\"panmove\",\"panend\"];ko(o).call(o,(function(t){n.on(t,(function(t){t.srcEvent.stopPropagation()}))})),document&&document.body&&(this._onClick=function(e){(function(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1})(e.target,t)||i.deactivate()},document.body.addEventListener(\"click\",this._onClick),this._cleanupQueue.push((function(){document.body.removeEventListener(\"click\",i._onClick)}))),this._escListener=function(t){(\"key\"in t?\"Escape\"===t.key:27===t.keyCode)&&i.deactivate()}}Xr(Za.prototype),Za.current=null,Za.prototype.destroy=function(){var t,e;this.deactivate();var i,n=Ya(To(t=No(e=this._cleanupQueue).call(e,0)).call(t));try{for(n.s();!(i=n.n()).done;){(0,i.value)()}}catch(t){n.e(t)}finally{n.f()}},Za.prototype.activate=function(){Za.current&&Za.current.deactivate(),Za.current=this,this.active=!0,this._dom.overlay.style.display=\"none\",this._dom.container.classList.add(\"vis-active\"),this.emit(\"change\"),this.emit(\"activate\"),document.body.addEventListener(\"keydown\",this._escListener)},Za.prototype.deactivate=function(){this.active=!1,this._dom.overlay.style.display=\"block\",this._dom.container.classList.remove(\"vis-active\"),document.body.removeEventListener(\"keydown\",this._escListener),this.emit(\"change\"),this.emit(\"deactivate\")},Za.prototype._onTapOverlay=function(t){this.activate(),t.srcEvent.stopPropagation()};var $a=/^\\/?Date\\((-?\\d+)/i,Ka=/^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i,Ja=/^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i,Qa=/^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,tl=/^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 el(t){return t instanceof Number||\"number\"==typeof t}function il(t){return t instanceof String||\"string\"==typeof t}function nl(t){return\"object\"===Vn(t)&&null!==t}function ol(t,e,i,n){var o=!1;!0===n&&(o=null===e[i]&&void 0!==t[i]),o?delete t[i]:t[i]=e[i]}var rl=jo;function sl(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 o in e)if(Object.prototype.hasOwnProperty.call(e,o)||!0===i)if(\"object\"===Vn(e[o])&&null!==e[o]&&Ko(e[o])===Object.prototype)void 0===t[o]?t[o]=sl({},e[o],i):\"object\"===Vn(t[o])&&null!==t[o]&&Ko(t[o])===Object.prototype?sl(t[o],e[o],i):ol(t,e,o,n);else if(Qn(e[o])){var r;t[o]=Kn(r=e[o]).call(r)}else ol(t,e,o,n);return t}function al(t){var e=Vn(t);return\"object\"===e?null===t?\"null\":t instanceof Boolean?\"Boolean\":t instanceof Number?\"Number\":t instanceof String?\"String\":Qn(t)?\"Array\":t instanceof Date?\"Date\":\"Object\":\"number\"===e?\"Number\":\"boolean\"===e?\"Boolean\":\"string\"===e?\"String\":void 0===e?\"undefined\":e}function ll(t,e){var i;return $n(i=[]).call(i,Un(t),[e])}function hl(t){return Kn(t).call(t)}var ul=sr;var dl={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()),il(t)?t:el(t)?t+\"px\":e||null},asElement:function(t,e){return\"function\"==typeof t&&(t=t()),t||e||null}};function cl(t){var e;switch(t.length){case 3:case 4:return(e=Ja.exec(t))?{r:gr(e[1]+e[1],16),g:gr(e[2]+e[2],16),b:gr(e[3]+e[3],16)}:null;case 6:case 7:return(e=Ka.exec(t))?{r:gr(e[1],16),g:gr(e[2],16),b:gr(e[3],16)}:null;default:return null}}function pl(t,e,i){var n;return\"#\"+Kn(n=((1<<24)+(t<<16)+(e<<8)+i).toString(16)).call(n,1)}function fl(t,e,i){t/=255,e/=255,i/=255;var n=Math.min(t,Math.min(e,i)),o=Math.max(t,Math.max(e,i));return n===o?{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)/(o-n))/360,s:(o-n)/o,v:o}}var ml=function(t){var e,i={};return ko(e=t.split(\";\")).call(e,(function(t){if(\"\"!=Or(t).call(t)){var e,n,o=t.split(\":\"),r=Or(e=o[0]).call(e),s=Or(n=o[1]).call(n);i[r]=s}})),i},vl=function(t){var e;return oo(e=so(t)).call(e,(function(e){return e+\": \"+t[e]})).join(\"; \")};function gl(t,e,i){var n,o,r,s=Math.floor(6*t),a=6*t-s,l=i*(1-e),h=i*(1-a*e),u=i*(1-(1-a)*e);switch(s%6){case 0:n=i,o=u,r=l;break;case 1:n=h,o=i,r=l;break;case 2:n=l,o=i,r=u;break;case 3:n=l,o=h,r=i;break;case 4:n=u,o=l,r=i;break;case 5:n=i,o=l,r=h}return{r:Math.floor(255*n),g:Math.floor(255*o),b:Math.floor(255*r)}}function yl(t,e,i){var n=gl(t,e,i);return pl(n.r,n.g,n.b)}function bl(t){var e=cl(t);if(!e)throw new TypeError(\"\'\".concat(t,\"\' is not a valid color.\"));return fl(e.r,e.g,e.b)}function _l(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)}function wl(t){return Qa.test(t)}function kl(t){return tl.test(t)}function xl(t){if(null===t||\"object\"!==Vn(t))return null;if(t instanceof Element)return t;var e=Ar(t);for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&\"object\"==Vn(t[i])&&(e[i]=xl(t[i]));return e}var Dl={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\"},Sl=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;dn(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 fn(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 Dl[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===il(t)){if(!0===wl(t)){var o=t.substr(4).substr(0,t.length-5).split(\",\");i={r:o[0],g:o[1],b:o[2],a:1}}else if(!0===kl(t)){var r=t.substr(5).substr(0,t.length-6).split(\",\");i={r:r[0],g:r[1],b:r[2],a:r[3]}}else if(!0===_l(t)){var s=cl(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: \"+jr(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=jo({},this.color)),!0===this.applied&&this.updateCallback(this.initialColor),this.frame.style.display=\"none\",Br((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=jo({},t)),this.color=t;var i=fl(t.r,t.g,t.b),n=2*Math.PI,o=this.r*i.s,r=this.centerCoordinates.x+o*Math.sin(n*i.h),s=this.centerCoordinates.y+o*Math.cos(n*i.h);this.colorPickerSelector.style.left=r-.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=fl(this.color.r,this.color.g,this.color.b);e.v=t/100;var i=gl(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=fl(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,o=this.colorPickerCanvas.clientHeight;i.clearRect(0,0,n,o),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),Ur(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 o=this.colorPickerCanvas.getContext(\"2d\");this.pixelRatio=(window.devicePixelRatio||1)/(o.webkitBackingStorePixelRatio||o.mozBackingStorePixelRatio||o.msBackingStorePixelRatio||o.oBackingStorePixelRatio||o.backingStorePixelRatio||1),this.colorPickerCanvas.getContext(\"2d\").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var r=document.createElement(\"DIV\");r.style.color=\"red\",r.style.fontWeight=\"bold\",r.style.padding=\"10px\",r.innerText=\"Error: your browser does not support HTML canvas\",this.colorPickerCanvas.appendChild(r)}this.colorPickerDiv.className=\"vis-color\",this.opacityDiv=document.createElement(\"div\"),this.opacityDiv.className=\"vis-opacity\",this.brightnessDiv=document.createElement(\"div\"),this.brightnessDiv.className=\"vis-brightness\",this.arrowDiv=document.createElement(\"div\"),this.arrowDiv.className=\"vis-arrow\",this.opacityRange=document.createElement(\"input\");try{this.opacityRange.type=\"range\",this.opacityRange.min=\"0\",this.opacityRange.max=\"100\"}catch(t){}this.opacityRange.value=\"100\",this.opacityRange.className=\"vis-range\",this.brightnessRange=document.createElement(\"input\");try{this.brightnessRange.type=\"range\",this.brightnessRange.min=\"0\",this.brightnessRange.max=\"100\"}catch(t){}this.brightnessRange.value=\"100\",this.brightnessRange.className=\"vis-range\",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var s=this;this.opacityRange.onchange=function(){s._setOpacity(this.value)},this.opacityRange.oninput=function(){s._setOpacity(this.value)},this.brightnessRange.onchange=function(){s._setBrightness(this.value)},this.brightnessRange.oninput=function(){s._setBrightness(this.value)},this.brightnessLabel=document.createElement(\"div\"),this.brightnessLabel.className=\"vis-label vis-brightness\",this.brightnessLabel.innerText=\"brightness:\",this.opacityLabel=document.createElement(\"div\"),this.opacityLabel.className=\"vis-label vis-opacity\",this.opacityLabel.innerText=\"opacity:\",this.newColorDiv=document.createElement(\"div\"),this.newColorDiv.className=\"vis-new-color\",this.newColorDiv.innerText=\"new\",this.initialColorDiv=document.createElement(\"div\"),this.initialColorDiv.className=\"vis-initial-color\",this.initialColorDiv.innerText=\"initial\",this.cancelButton=document.createElement(\"div\"),this.cancelButton.className=\"vis-button vis-cancel\",this.cancelButton.innerText=\"cancel\",this.cancelButton.onclick=mo(t=this._hide).call(t,this,!1),this.applyButton=document.createElement(\"div\"),this.applyButton.className=\"vis-button vis-apply\",this.applyButton.innerText=\"apply\",this.applyButton.onclick=mo(e=this._apply).call(e,this),this.saveButton=document.createElement(\"div\"),this.saveButton.className=\"vis-button vis-save\",this.saveButton.innerText=\"save\",this.saveButton.onclick=mo(i=this._save).call(i,this),this.loadButton=document.createElement(\"div\"),this.loadButton.className=\"vis-button vis-load\",this.loadButton.innerText=\"load last\",this.loadButton.onclick=mo(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 qa(this.colorPickerCanvas),this.hammer.get(\"pinch\").set({enable:!0}),this.hammer.on(\"hammer.input\",(function(e){e.isFirst&&t._moveSelector(e)})),this.hammer.on(\"tap\",(function(e){t._moveSelector(e)})),this.hammer.on(\"panstart\",(function(e){t._moveSelector(e)})),this.hammer.on(\"panmove\",(function(e){t._moveSelector(e)})),this.hammer.on(\"panend\",(function(e){t._moveSelector(e)}))}},{key:\"_generateHueCircle\",value:function(){if(!1===this.generated){var t=this.colorPickerCanvas.getContext(\"2d\");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)),t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var e,i,n,o,r=this.colorPickerCanvas.clientWidth,s=this.colorPickerCanvas.clientHeight;t.clearRect(0,0,r,s),this.centerCoordinates={x:.5*r,y:.5*s},this.r=.49*r;var a,l=2*Math.PI/360,h=1/this.r;for(n=0;n<360;n++)for(o=0;o<this.r;o++)e=this.centerCoordinates.x+o*Math.sin(l*n),i=this.centerCoordinates.y+o*Math.cos(l*n),a=gl(.002777777777777778*n,o*h,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,r,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,o=.5*this.colorPickerDiv.clientHeight,r=.5*this.colorPickerDiv.clientWidth,s=i-r,a=n-o,l=Math.atan2(s,a),h=.98*Math.min(Math.sqrt(s*s+a*a),r),u=Math.cos(l)*h+o,d=Math.sin(l)*h+r;this.colorPickerSelector.style.top=u-.5*this.colorPickerSelector.clientHeight+\"px\",this.colorPickerSelector.style.left=d-.5*this.colorPickerSelector.clientWidth+\"px\";var c=l/(2*Math.PI);c=c<0?c+1:c;var p=h/this.r,f=fl(this.color.r,this.color.g,this.color.b);f.h=c,f.s=p;var m=gl(f.h,f.s,f.v);m.a=this.color.a,this.color=m,this.initialColorDiv.style.backgroundColor=\"rgba(\"+this.initialColor.r+\",\"+this.initialColor.g+\",\"+this.initialColor.b+\",\"+this.initialColor.a+\")\",this.newColorDiv.style.backgroundColor=\"rgba(\"+this.color.r+\",\"+this.color.g+\",\"+this.color.b+\",\"+this.color.a+\")\"}}]),t}();function Cl(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];if(e.length<1)throw new TypeError(\"Invalid arguments.\");if(1===e.length)return document.createTextNode(e[0]);var n=document.createElement(e[0]);return n.appendChild(Cl.apply(void 0,Un(Kn(e).call(e,1)))),n}var Tl,Ml=function(){function t(e,i,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return!1};dn(this,t),this.parent=e,this.changedOptions=[],this.container=i,this.allowCreation=!1,this.hideOption=r,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},jo(this.options,this.defaultOptions),this.configureOptions=n,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new Sl(o),this.wrapper=void 0}return fn(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(Qn(t))this.options.filter=t.join();else if(\"object\"===Vn(t)){if(null==t)throw new TypeError(\"options cannot be null\");void 0!==t.container&&(this.options.container=t.container),void 0!==ir(t)&&(this.options.filter=ir(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===ir(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=ir(this.options),e=0,i=!1;for(var n in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,n)&&(this.allowCreation=!1,i=!1,\"function\"==typeof t?i=(i=t(n,[]))||this._handleObject(this.configureOptions[n],[n],!0):!0!==t&&-1===Sr(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),o=1;o<i;o++)n[o-1]=arguments[o];return ko(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.innerText=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\");if(n.className=\"vis-configuration vis-config-label vis-config-s\"+e.length,!0===i){for(;n.firstChild;)n.removeChild(n.firstChild);n.appendChild(Cl(\"i\",\"b\",t))}else n.innerText=t+\":\";return n}},{key:\"_makeDropdown\",value:function(t,e,i){var n=document.createElement(\"select\");n.className=\"vis-configuration vis-config-select\";var o=0;void 0!==e&&-1!==Sr(t).call(t,e)&&(o=Sr(t).call(t,e));for(var r=0;r<t.length;r++){var s=document.createElement(\"option\");s.value=t[r],r===o&&(s.selected=\"selected\"),s.innerText=t[r],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],o=t[1],r=t[2],s=t[3],a=document.createElement(\"input\");a.className=\"vis-configuration vis-config-range\";try{a.type=\"range\",a.min=o,a.max=r}catch(t){}a.step=s;var l=\"\",h=0;if(void 0!==e){var u=1.2;e<0&&e*u<o?(a.min=Math.ceil(e*u),h=a.min,l=\"range increased\"):e/u<o&&(a.min=Math.ceil(e/u),h=a.min,l=\"range increased\"),e*u>r&&1!==r&&(a.max=Math.ceil(e*u),h=a.max,l=\"range increased\"),a.value=e}else a.value=n;var d=document.createElement(\"input\");d.className=\"vis-configuration vis-config-rangeinput\",d.value=a.value;var c=this;a.onchange=function(){d.value=this.value,c._update(Number(this.value),i)},a.oninput=function(){d.value=this.value};var p=this._makeLabel(i[i.length-1],i),f=this._makeItem(i,p,a,d);\"\"!==l&&this.popupHistory[f]!==h&&(this.popupHistory[f]=h,this._setupPopup(l,f))}},{key:\"_makeButton\",value:function(){var t=this;if(!0===this.options.showButton){var e=document.createElement(\"div\");e.className=\"vis-configuration vis-config-button\",e.innerText=\"generate options\",e.onclick=function(){t._printOptions()},e.onmouseover=function(){e.className=\"vis-configuration vis-config-button hover\"},e.onmouseout=function(){e.className=\"vis-configuration vis-config-button\"},this.optionsContainer=document.createElement(\"div\"),this.optionsContainer.className=\"vis-configuration vis-config-option-container\",this.domElements.push(this.optionsContainer),this.domElements.push(e)}}},{key:\"_setupPopup\",value:function(t,e){var 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.innerText=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=Br((function(){t.popupDiv.html.style.opacity=0}),1500),this.popupDiv.deleteTimeout=Br((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\"===Vn(t)?e!==t.enabled&&this.changedOptions.push({path:i,value:e}):this.changedOptions.push({path:i,value:e})));var o=this;n.onchange=function(){o._update(this.checked,i)};var r=this._makeLabel(i[i.length-1],i);this._makeItem(i,r,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 o=this;n.onchange=function(){o._update(this.value,i)};var r=this._makeLabel(i[i.length-1],i);this._makeItem(i,r,n)}},{key:\"_makeColorField\",value:function(t,e,i){var n=this,o=t[1],r=document.createElement(\"div\");\"none\"!==(e=void 0===e?o:e)?(r.className=\"vis-configuration vis-config-colorBlock\",r.style.backgroundColor=e):r.className=\"vis-configuration vis-config-colorBlock none\",e=void 0===e?o:e,r.onclick=function(){n._showColorPicker(e,r,i)};var s=this._makeLabel(i[i.length-1],i);this._makeItem(i,s,r)}},{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 o=\"rgba(\"+t.r+\",\"+t.g+\",\"+t.b+\",\"+t.a+\")\";e.style.backgroundColor=o,n._update(o,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,o=ir(this.options),r=!1;for(var s in t)if(Object.prototype.hasOwnProperty.call(t,s)){n=!0;var a=t[s],l=ll(e,s);if(\"function\"==typeof o&&!1===(n=o(s,e))&&!Qn(a)&&\"string\"!=typeof a&&\"boolean\"!=typeof a&&a instanceof Object&&(this.allowCreation=!1,n=this._handleObject(a,l,!0),this.allowCreation=!1===i),!1!==n){r=!0;var h=this._getValue(l);if(Qn(a))this._handleArray(a,h,l);else if(\"string\"==typeof a)this._makeTextInput(a,h,l);else if(\"boolean\"==typeof a)this._makeCheckbox(a,h,l);else if(a instanceof Object){if(!this.hideOption(e,s,this.moduleOptions))if(void 0!==a.enabled){var u=ll(l,\"enabled\"),d=this._getValue(u);if(!0===d){var c=this._makeLabel(s,l,!0);this._makeItem(l,c),r=this._handleObject(a,l)||r}else this._makeCheckbox(a,d,l)}else{var p=this._makeLabel(s,l,!0);this._makeItem(l,p),r=this._handleObject(a,l)||r}}else console.error(\"dont know how to handle\",a,s,l)}}return r}},{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 o=0;o<e.length;o++)\"global\"!==e[o]&&(void 0===n[e[o]]&&(n[e[o]]={}),o!==e.length-1?n=n[e[o]]:n[e[o]]=t);return i}},{key:\"_printOptions\",value:function(){for(var t=this.getOptions();this.optionsContainer.firstChild;)this.optionsContainer.removeChild(this.optionsContainer.firstChild);this.optionsContainer.appendChild(Cl(\"pre\",\"const options = \"+jr(t,null,2)))}},{key:\"getOptions\",value:function(){for(var t={},e=0;e<this.changedOptions.length;e++)this._constructOptions(this.changedOptions[e].value,this.changedOptions[e].path,t);return t}}]),t}(),Ol=!1,El=\"background: #FFeeee; color: #dd0000\",Pl=Za,Al=Sl,Ll=Ml,Il=qa,Nl=function(){function t(e,i){dn(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 fn(t,[{key:\"setPosition\",value:function(t,e){this.x=gr(t),this.y=gr(e)}},{key:\"setText\",value:function(t){if(t instanceof Element){for(;this.frame.firstChild;)this.frame.removeChild(this.frame.firstChild);this.frame.appendChild(t)}else this.frame.innerText=t}},{key:\"show\",value:function(t){if(void 0===t&&(t=!0),!0===t){var e=this.frame.clientHeight,i=this.frame.clientWidth,n=this.frame.parentNode.clientHeight,o=this.frame.parentNode.clientWidth,r=0,s=0;if(\"flip\"==this.overflowMethod){var a=!1,l=!0;this.y-e<this.padding&&(l=!1),this.x+i>o-this.padding&&(a=!0),r=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),(r=this.x)+i+this.padding>o&&(r=o-i-this.padding),r<this.padding&&(r=this.padding);this.frame.style.left=r+\"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}(),Fl=function(){function t(){dn(this,t)}return fn(t,null,[{key:\"validate\",value:function(e,i,n){Ol=!1,Tl=i;var o=i;return void 0!==n&&(o=i[n]),t.parse(e,o,[]),Ol}},{key:\"parse\",value:function(e,i,n){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.check(o,e,i,n)}},{key:\"check\",value:function(e,i,n,o){if(void 0!==n[e]||void 0!==n.__any__){var r=e,s=!0;void 0===n[e]&&void 0!==n.__any__&&(r=\"__any__\",s=\"object\"===t.getType(i[e]));var a=n[r];s&&void 0!==a.__type__&&(a=a.__type__),t.checkFields(e,i,n,r,a,o)}else t.getSuggestion(e,n,o)}},{key:\"checkFields\",value:function(e,i,n,o,r,s){var a=function(i){console.error(\"%c\"+i+t.printLocation(s,e),El)},l=t.getType(i[e]),h=r[l];void 0!==h?\"array\"===t.getType(h)&&-1===Sr(h).call(h,i[e])?(a(\'Invalid option detected in \"\'+e+\'\". Allowed values are:\'+t.print(h)+\' not \"\'+i[e]+\'\". \'),Ol=!0):\"object\"===l&&\"__any__\"!==o&&(s=ll(s,e),t.parse(i[e],n[o],s)):void 0===r.any&&(a(\'Invalid type received for \"\'+e+\'\". Expected: \'+t.print(so(r))+\". Received [\"+l+\'] \"\'+i[e]+\'\"\'),Ol=!0)}},{key:\"getType\",value:function(t){var e=Vn(t);return\"object\"===e?null===t?\"null\":t instanceof Boolean?\"boolean\":t instanceof Number?\"number\":t instanceof String?\"string\":Qn(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 o,r=t.findInOptions(e,i,n,!1),s=t.findInOptions(e,Tl,[],!0);o=void 0!==r.indexMatch?\" in \"+t.printLocation(r.path,e,\"\")+\'Perhaps it was incomplete? Did you mean: \"\'+r.indexMatch+\'\"?\\n\\n\':s.distance<=4&&r.distance>s.distance?\" in \"+t.printLocation(r.path,e,\"\")+\"Perhaps it was misplaced? Matching option found at: \"+t.printLocation(s.path,s.closestMatch,\"\"):r.distance<=8?\'. Did you mean \"\'+r.closestMatch+\'\"?\'+t.printLocation(r.path,e):\". Did you mean one of these: \"+t.print(so(i))+t.printLocation(n,e),console.error(\'%cUnknown option detected: \"\'+e+\'\"\'+o,El),Ol=!0}},{key:\"findInOptions\",value:function(e,i,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=1e9,s=\"\",a=[],l=e.toLowerCase(),h=void 0;for(var u in i){var d=void 0;if(void 0!==i[u].__type__&&!0===o){var c=t.findInOptions(e,i[u],ll(n,u));r>c.distance&&(s=c.closestMatch,a=c.path,r=c.distance,h=c.indexMatch)}else{var p;-1!==Sr(p=u.toLowerCase()).call(p,l)&&(h=u),r>(d=t.levenshteinDistance(e,u))&&(s=u,a=hl(n),r=d)}}return{closestMatch:s,path:a,distance:r,indexMatch:h}}},{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\",o=0;o<t.length;o++){for(var r=0;r<o+1;r++)n+=\"  \";n+=t[o]+\": {\\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 jr(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,o=[];for(i=0;i<=e.length;i++)o[i]=[i];for(n=0;n<=t.length;n++)o[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)?o[i][n]=o[i-1][n-1]:o[i][n]=Math.min(o[i-1][n-1]+1,Math.min(o[i][n-1]+1,o[i-1][n]+1));return o[e.length][t.length]}}]),t}(),Rl=Object.freeze({__proto__:null,Activator:Pl,Alea:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return Ua(e.length?e:[ao()])},ColorPicker:Al,Configurator:Ll,DELETE:Ha,HSVToHex:yl,HSVToRGB:gl,Hammer:Il,Popup:Nl,RGBToHSV:fl,RGBToHex:pl,VALIDATOR_PRINT_STYLE:\"background: #FFeeee; color: #dd0000\",Validator:Fl,addClassName:function(t,e){var i=t.className.split(\" \"),n=e.split(\" \");i=$n(i).call(i,ir(n).call(n,(function(t){return!qo(i).call(i,t)}))),t.className=i.join(\" \")},addCssText:function(t,e){var i=ml(t.style.cssText),n=ml(e),o=Ra(Ra({},i),n);t.style.cssText=vl(o)},addEventListener:function(t,e,i,n){var o;t.addEventListener?(void 0===n&&(n=!1),\"mousewheel\"===e&&qo(o=navigator.userAgent).call(o,\"Firefox\")&&(e=\"DOMMouseScroll\"),t.addEventListener(e,i,n)):t.attachEvent(\"on\"+e,i)},binarySearchCustom:function(t,e,i,n){for(var o=0,r=0,s=t.length-1;r<=s&&o<1e4;){var a=Math.floor((r+s)/2),l=t[a],h=e(void 0===n?l[i]:l[i][n]);if(0==h)return a;-1==h?r=a+1:s=a-1,o++}return-1},binarySearchValue:function(t,e,i,n,o){var r,s,a,l,h=0,u=0,d=t.length-1;for(o=null!=o?o:function(t,e){return t==e?0:t<e?-1:1};u<=d&&h<1e4;){if(l=Math.floor(.5*(d+u)),r=t[Math.max(0,l-1)][i],s=t[l][i],a=t[Math.min(t.length-1,l+1)][i],0==o(s,e))return l;if(o(r,e)<0&&o(s,e)>0)return\"before\"==n?Math.max(0,l-1):l;if(o(s,e)<0&&o(a,e)>0)return\"before\"==n?l:Math.min(t.length-1,l+1);o(s,e)<0?u=l+1:d=l-1,h++}return-1},bridgeObject:xl,copyAndExtendArray:ll,copyArray:hl,deepExtend:sl,deepObjectAssign:Ga,easingFunctions:{linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return t*(2-t)},easeInOutQuad:function(t){return t<.5?2*t*t:(4-2*t)*t-1},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return--t*t*t+1},easeInOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1- --t*t*t*t},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1+--t*t*t*t*t},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}},equalArray:function(t,e){if(t.length!==e.length)return!1;for(var i=0,n=t.length;i<n;i++)if(t[i]!=e[i])return!1;return!0},extend:rl,fillIfDefined:function t(e,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var o in e)if(void 0!==i[o])if(null===i[o]||\"object\"!==Vn(i[o]))ol(e,i,o,n);else{var r=e[o],s=i[o];nl(r)&&nl(s)&&t(r,s,n)}},forEach:function(t,e){if(Qn(t))for(var i=t.length,n=0;n<i;n++)e(t[n],n,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e(t[o],o,t)},getAbsoluteLeft:function(t){return t.getBoundingClientRect().left},getAbsoluteRight:function(t){return t.getBoundingClientRect().right},getAbsoluteTop:function(t){return t.getBoundingClientRect().top},getScrollBarWidth:function(){var t=document.createElement(\"p\");t.style.width=\"100%\",t.style.height=\"200px\";var e=document.createElement(\"div\");e.style.position=\"absolute\",e.style.top=\"0px\",e.style.left=\"0px\",e.style.visibility=\"hidden\",e.style.width=\"200px\",e.style.height=\"150px\",e.style.overflow=\"hidden\",e.appendChild(t),document.body.appendChild(e);var i=t.offsetWidth;e.style.overflow=\"scroll\";var n=t.offsetWidth;return i==n&&(n=e.clientWidth),document.body.removeChild(e),i-n},getTarget:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.event,e=null;return t&&(t.target?e=t.target:t.srcElement&&(e=t.srcElement)),e instanceof Element&&(null==e.nodeType||3!=e.nodeType||(e=e.parentNode)instanceof Element)?e:null},getType:al,hasParent:function(t,e){for(var i=t;i;){if(i===e)return!0;if(!i.parentNode)return!1;i=i.parentNode}return!1},hexToHSV:bl,hexToRGB:cl,insertSort:function(t,e){for(var i=0;i<t.length;i++){var n=t[i],o=void 0;for(o=i;o>0&&e(n,t[o-1])<0;o--)t[o]=t[o-1];t[o]=n}return t},isDate:function(t){if(t instanceof Date)return!0;if(il(t)){if($a.exec(t))return!0;if(!isNaN(Date.parse(t)))return!0}return!1},isNumber:el,isObject:nl,isString:il,isValidHex:_l,isValidRGB:wl,isValidRGBA:kl,mergeOptions:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=function(t){return null!=t},r=function(t){return null!==t&&\"object\"===Vn(t)},s=function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0};if(!r(t))throw new Error(\"Parameter mergeTarget must be an object\");if(!r(e))throw new Error(\"Parameter options must be an object\");if(!o(i))throw new Error(\"Parameter option must have a value\");if(!r(n))throw new Error(\"Parameter globalOptions must be an object\");var a=function(t,e,i){r(t[i])||(t[i]={});var n=e[i],o=t[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(o[s]=n[s])},l=e[i],h=r(n)&&!s(n),u=h?n[i]:void 0,d=u?u.enabled:void 0;if(void 0!==l){if(\"boolean\"==typeof l)return r(t[i])||(t[i]={}),void(t[i].enabled=l);if(null===l&&!r(t[i])){if(!o(u))return;t[i]=Ar(u)}if(r(l)){var c=!0;void 0!==l.enabled?c=l.enabled:void 0!==d&&(c=u.enabled),a(t,e,i),t[i].enabled=c}}},option:dl,overrideOpacity:function(t,e){if(qo(t).call(t,\"rgba\"))return t;if(qo(t).call(t,\"rgb\")){var i=t.substr(Sr(t).call(t,\"(\")+1).replace(\")\",\"\").split(\",\");return\"rgba(\"+i[0]+\",\"+i[1]+\",\"+i[2]+\",\"+e+\")\"}var n=cl(t);return null==n?t:\"rgba(\"+n.r+\",\"+n.g+\",\"+n.b+\",\"+e+\")\"},parseColor:function(t,e){if(il(t)){var i=t;if(wl(i)){var n,o=oo(n=i.substr(4).substr(0,i.length-5).split(\",\")).call(n,(function(t){return gr(t)}));i=pl(o[0],o[1],o[2])}if(!0===_l(i)){var r=bl(i),s={h:r.h,s:.8*r.s,v:Math.min(1,1.02*r.v)},a={h:r.h,s:Math.min(1,1.25*r.s),v:.8*r.v},l=yl(a.h,a.s,a.v),h=yl(s.h,s.s,s.v);return{background:i,border:l,highlight:{background:h,border:l},hover:{background:h,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:il(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:il(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:il(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:il(t.hover)?{border:t.hover,background:t.hover}:{border:t.hover&&t.hover.border||void 0,background:t.hover&&t.hover.background||void 0}}},preventDefault:function(t){t||(t=window.event),t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},pureDeepObjectAssign:za,recursiveDOMDelete:function t(e){if(e)for(;!0===e.hasChildNodes();){var i=e.firstChild;i&&(t(i),e.removeChild(i))}},removeClassName:function(t,e){var i=t.className.split(\" \"),n=e.split(\" \");i=ir(i).call(i,(function(t){return!qo(n).call(n,t)})),t.className=i.join(\" \")},removeCssText:function(t,e){var i=ml(t.style.cssText),n=ml(e);for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&delete i[o];t.style.cssText=vl(i)},removeEventListener:function(t,e,i,n){var o;t.removeEventListener?(void 0===n&&(n=!1),\"mousewheel\"===e&&qo(o=navigator.userAgent).call(o,\"Firefox\")&&(e=\"DOMMouseScroll\"),t.removeEventListener(e,i,n)):t.detachEvent(\"on\"+e,i)},selectiveBridgeObject:function(t,e){if(null!==e&&\"object\"===Vn(e)){for(var i=Ar(e),n=0;n<t.length;n++)Object.prototype.hasOwnProperty.call(e,t[n])&&\"object\"==Vn(e[t[n]])&&(i[t[n]]=xl(e[t[n]]));return i}return null},selectiveDeepExtend:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(Qn(i))throw new TypeError(\"Arrays are not supported by deepExtend\");for(var o=0;o<t.length;o++){var r=t[o];if(Object.prototype.hasOwnProperty.call(i,r))if(i[r]&&i[r].constructor===Object)void 0===e[r]&&(e[r]={}),e[r].constructor===Object?sl(e[r],i[r],!1,n):ol(e,i,r,n);else{if(Qn(i[r]))throw new TypeError(\"Arrays are not supported by deepExtend\");ol(e,i,r,n)}}return e},selectiveExtend:function(t,e){if(!Qn(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),o=2;o<i;o++)n[o-2]=arguments[o];for(var r=0,s=n;r<s.length;r++)for(var a=s[r],l=0;l<t.length;l++){var h=t[l];a&&Object.prototype.hasOwnProperty.call(a,h)&&(e[h]=a[h])}return e},selectiveNotDeepExtend:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(Qn(i))throw new TypeError(\"Arrays are not supported by deepExtend\");for(var o in i)if(Object.prototype.hasOwnProperty.call(i,o)&&!qo(t).call(t,o))if(i[o]&&i[o].constructor===Object)void 0===e[o]&&(e[o]={}),e[o].constructor===Object?sl(e[o],i[o]):ol(e,i,o,n);else if(Qn(i[o])){e[o]=[];for(var r=0;r<i[o].length;r++)e[o].push(i[o][r])}else ol(e,i,o,n);return e},throttle:function(t){var e=!1;return function(){e||(e=!0,requestAnimationFrame((function(){e=!1,t()})))}},toArray:ul,topMost:function(t,e){var i;Qn(e)||(e=[e]);var n,o=Ya(t);try{for(o.s();!(n=o.n()).done;){var r=n.value;if(r){i=r[e[0]];for(var s=1;s<e.length;s++)i&&(i=i[e[s]]);if(void 0!==i)break}}}catch(t){o.e(t)}finally{o.f()}return i},updateProperty:function(t,e,i){return t[e]!==i&&(t[e]=i,!0)}});function Yl(t){for(var e in t)t.hasOwnProperty(e)&&(t[e].redundant=t[e].used,t[e].used=[])}function jl(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 Hl(t){Yl(t),jl(t),Yl(t)}function zl(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 Gl(t,e,i,n){var o;return e.hasOwnProperty(t)?e[t].redundant.length>0?(o=e[t].redundant[0],e[t].redundant.shift()):(o=document.createElement(t),void 0!==n?i.insertBefore(o,n):i.appendChild(o)):(o=document.createElement(t),e[t]={used:[],redundant:[]},void 0!==n?i.insertBefore(o,n):i.appendChild(o)),e[t].used.push(o),o}function Bl(t,e,i,n,o,r){var s;if(\"circle\"==i.style?((s=zl(\"circle\",n,o)).setAttributeNS(null,\"cx\",t),s.setAttributeNS(null,\"cy\",e),s.setAttributeNS(null,\"r\",.5*i.size)):((s=zl(\"rect\",n,o)).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\"),r){var a=zl(\"text\",n,o);r.xOffset&&(t+=r.xOffset),r.yOffset&&(e+=r.yOffset),r.content&&(a.textContent=r.content),r.className&&a.setAttributeNS(null,\"class\",r.className+\" vis-label\"),a.setAttributeNS(null,\"x\",t),a.setAttributeNS(null,\"y\",e)}return s}function Wl(t,e,i,n,o,r,s,a){if(0!=n){n<0&&(e-=n*=-1);var l=zl(\"rect\",r,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\",o),a&&l.setAttributeNS(null,\"style\",a)}}function Vl(){try{return navigator?navigator.languages&&navigator.languages.length?navigator.languages:navigator.userLanguage||navigator.language||navigator.browserLanguage||\"en\":\"en\"}catch(t){return\"en\"}}var Ul=Object.freeze({__proto__:null,prepareElements:Yl,cleanupElements:jl,resetElements:Hl,getSVGElement:zl,getDOMElement:Gl,drawPoint:Bl,drawBar:Wl,getNavigatorLanguage:Vl}),Xl=Ot(\"Reflect\",\"construct\"),ql=p((function(){function t(){}return!(Xl((function(){}),[],t)instanceof t)})),Zl=!p((function(){Xl((function(){}))})),$l=ql||Zl;wt({target:\"Reflect\",stat:!0,forced:$l,sham:$l},{construct:function(t,e){gt(t),_(e);var i=arguments.length<3?t:gt(arguments[2]);if(Zl&&!ql)return Xl(t,e,i);if(t==i){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(co.apply(t,n))}var o=i.prototype,r=ce(m(o)?o:Object.prototype),s=Function.apply.call(t,r,e);return m(s)?s:r}});var Kl=vt.Reflect.construct;function Jl(t){if(void 0===t)throw new ReferenceError(\"this hasn\'t been initialised - super() hasn\'t been called\");return t}var Ql=Pr;wt({target:\"Object\",stat:!0},{setPrototypeOf:Se});var th=vt.Object.setPrototypeOf;function eh(t,e){return(eh=th||function(t,e){return t.__proto__=e,t})(t,e)}function ih(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Ql(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&eh(t,e)}function nh(t,e){return!e||\"object\"!==Vn(e)&&\"function\"!=typeof e?Jl(t):e}var oh=$o;function rh(t){return(rh=th?oh:function(t){return t.__proto__||oh(t)})(t)}var sh=i((function(t){var e=function(t){var e,i=Object.prototype,n=i.hasOwnProperty,o=\"function\"==typeof Symbol?Symbol:{},r=o.iterator||\"@@iterator\",s=o.asyncIterator||\"@@asyncIterator\",a=o.toStringTag||\"@@toStringTag\";function l(t,e,i){return Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},\"\")}catch(t){l=function(t,e,i){return t[e]=i}}function h(t,e,i,n){var o=e&&e.prototype instanceof v?e:v,r=Object.create(o.prototype),s=new M(n||[]);return r._invoke=function(t,e,i){var n=d;return function(o,r){if(n===p)throw new Error(\"Generator is already running\");if(n===f){if(\"throw\"===o)throw r;return E()}for(i.method=o,i.arg=r;;){var s=i.delegate;if(s){var a=S(s,i);if(a){if(a===m)continue;return a}}if(\"next\"===i.method)i.sent=i._sent=i.arg;else if(\"throw\"===i.method){if(n===d)throw n=f,i.arg;i.dispatchException(i.arg)}else\"return\"===i.method&&i.abrupt(\"return\",i.arg);n=p;var l=u(t,e,i);if(\"normal\"===l.type){if(n=i.done?f:c,l.arg===m)continue;return{value:l.arg,done:i.done}}\"throw\"===l.type&&(n=f,i.method=\"throw\",i.arg=l.arg)}}}(t,i,s),r}function u(t,e,i){try{return{type:\"normal\",arg:t.call(e,i)}}catch(t){return{type:\"throw\",arg:t}}}t.wrap=h;var d=\"suspendedStart\",c=\"suspendedYield\",p=\"executing\",f=\"completed\",m={};function v(){}function g(){}function y(){}var b={};b[r]=function(){return this};var _=Object.getPrototypeOf,w=_&&_(_(O([])));w&&w!==i&&n.call(w,r)&&(b=w);var k=y.prototype=v.prototype=Object.create(b);function x(t){[\"next\",\"throw\",\"return\"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function D(t,e){var i;this._invoke=function(o,r){function s(){return new e((function(i,s){!function i(o,r,s,a){var l=u(t[o],t,r);if(\"throw\"!==l.type){var h=l.arg,d=h.value;return d&&\"object\"==typeof d&&n.call(d,\"__await\")?e.resolve(d.__await).then((function(t){i(\"next\",t,s,a)}),(function(t){i(\"throw\",t,s,a)})):e.resolve(d).then((function(t){h.value=t,s(h)}),(function(t){return i(\"throw\",t,s,a)}))}a(l.arg)}(o,r,i,s)}))}return i=i?i.then(s,s):s()}}function S(t,i){var n=t.iterator[i.method];if(n===e){if(i.delegate=null,\"throw\"===i.method){if(t.iterator.return&&(i.method=\"return\",i.arg=e,S(t,i),\"throw\"===i.method))return m;i.method=\"throw\",i.arg=new TypeError(\"The iterator does not provide a \'throw\' method\")}return m}var o=u(n,t.iterator,i.arg);if(\"throw\"===o.type)return i.method=\"throw\",i.arg=o.arg,i.delegate=null,m;var r=o.arg;return r?r.done?(i[t.resultName]=r.value,i.next=t.nextLoc,\"return\"!==i.method&&(i.method=\"next\",i.arg=e),i.delegate=null,m):r:(i.method=\"throw\",i.arg=new TypeError(\"iterator result is not an object\"),i.delegate=null,m)}function C(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 T(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(C,this),this.reset(!0)}function O(t){if(t){var i=t[r];if(i)return i.call(t);if(\"function\"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,s=function i(){for(;++o<t.length;)if(n.call(t,o))return i.value=t[o],i.done=!1,i;return i.value=e,i.done=!0,i};return s.next=s}}return{next:E}}function E(){return{value:e,done:!0}}return g.prototype=k.constructor=y,y.constructor=g,g.displayName=l(y,a,\"GeneratorFunction\"),t.isGeneratorFunction=function(t){var e=\"function\"==typeof t&&t.constructor;return!!e&&(e===g||\"GeneratorFunction\"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,a,\"GeneratorFunction\")),t.prototype=Object.create(k),t},t.awrap=function(t){return{__await:t}},x(D.prototype),D.prototype[s]=function(){return this},t.AsyncIterator=D,t.async=function(e,i,n,o,r){void 0===r&&(r=Promise);var s=new D(h(e,i,n,o),r);return t.isGeneratorFunction(i)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},x(k),l(k,a,\"Generator\"),k[r]=function(){return this},k.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=O,M.prototype={constructor:M,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=e,this.tryEntries.forEach(T),!t)for(var i in this)\"t\"===i.charAt(0)&&n.call(this,i)&&!isNaN(+i.slice(1))&&(this[i]=e)},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 i=this;function o(n,o){return a.type=\"throw\",a.arg=t,i.next=n,o&&(i.method=\"next\",i.arg=e),!!o}for(var r=this.tryEntries.length-1;r>=0;--r){var s=this.tryEntries[r],a=s.completion;if(\"root\"===s.tryLoc)return o(\"end\");if(s.tryLoc<=this.prev){var l=n.call(s,\"catchLoc\"),h=n.call(s,\"finallyLoc\");if(l&&h){if(this.prev<s.catchLoc)return o(s.catchLoc,!0);if(this.prev<s.finallyLoc)return o(s.finallyLoc)}else if(l){if(this.prev<s.catchLoc)return o(s.catchLoc,!0)}else{if(!h)throw new Error(\"try statement without catch or finally\");if(this.prev<s.finallyLoc)return o(s.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i];if(o.tryLoc<=this.prev&&n.call(o,\"finallyLoc\")&&this.prev<o.finallyLoc){var r=o;break}}r&&(\"break\"===t||\"continue\"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var s=r?r.completion:{};return s.type=t,s.arg=e,r?(this.method=\"next\",this.next=r.finallyLoc,m):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),m},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),T(i),m}},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 o=n.arg;T(i)}return o}}throw new Error(\"illegal catch attempt\")},delegateYield:function(t,i,n){return this.delegate={iterator:O(t),resultName:i,nextLoc:n},\"next\"===this.method&&(this.arg=e),m}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function(\"r\",\"regeneratorRuntime = r\")(e)}})),ah=function(t){return function(e,i,n,o){gt(i);var r=kt(e),s=rt(r),a=$t(r.length),l=t?a-1:0,h=t?-1:1;if(n<2)for(;;){if(l in s){o=s[l],l+=h;break}if(l+=h,t?l<0:a<=l)throw TypeError(\"Reduce of empty array with no initial value\")}for(;t?l>=0:a>l;l+=h)l in s&&(o=i(o,s[l],l,r));return o}},lh={left:ah(!1),right:ah(!0)}.left,hh=vo(\"reduce\");wt({target:\"Array\",proto:!0,forced:!hh||!Tt&&Rt>79&&Rt<83},{reduce:function(t){return lh(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}});var uh=In(\"Array\").reduce,dh=Array.prototype,ch=function(t){var e=t.reduce;return t===dh||t instanceof Array&&e===dh.reduce?uh:e},ph=function(t,e,i,n,o,r,s,a){for(var l,h=o,u=0,d=!!s&&yt(s,a,3);u<n;){if(u in i){if(l=d?d(i[u],u,e):i[u],r>0&&hi(l))h=ph(t,e,l,$t(l.length),h,r-1)-1;else{if(h>=9007199254740991)throw TypeError(\"Exceed the acceptable array length\");t[h]=l}h++}u++}return h},fh=ph;wt({target:\"Array\",proto:!0},{flatMap:function(t){var e,i=kt(this),n=$t(i.length);return gt(t),(e=wi(i,0)).length=fh(e,i,i,n,0,1,t,arguments.length>1?arguments[1]:void 0),e}});var mh=In(\"Array\").flatMap,vh=Array.prototype,gh=function(t){var e=t.flatMap;return t===vh||t instanceof Array&&e===vh.flatMap?mh:e},yh=Bn,bh=!p((function(){return Object.isExtensible(Object.preventExtensions({}))})),_h=i((function(t){var e=x.f,i=H(\"meta\"),n=0,o=Object.isExtensible||function(){return!0},r=function(t){e(t,i,{value:{objectID:\"O\"+ ++n,weakData:{}}})},s=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!m(t))return\"symbol\"==typeof t?t:(\"string\"==typeof t?\"S\":\"P\")+t;if(!F(t,i)){if(!o(t))return\"F\";if(!e)return\"E\";r(t)}return t[i].objectID},getWeakData:function(t,e){if(!F(t,i)){if(!o(t))return!0;if(!e)return!1;r(t)}return t[i].weakData},onFreeze:function(t){return bh&&s.REQUIRED&&o(t)&&!F(t,i)&&r(t),t}};B[i]=!0})),wh=function(t,e){this.stopped=t,this.result=e},kh=function(t,e,i){var n,o,r,s,a,l,h,u=i&&i.that,d=!(!i||!i.AS_ENTRIES),c=!(!i||!i.IS_ITERATOR),p=!(!i||!i.INTERRUPTED),f=yt(e,u,1+d+p),m=function(t){return n&&je(n),new wh(!0,t)},v=function(t){return d?(_(t),p?f(t[0],t[1],m):f(t[0],t[1])):p?f(t,m):f(t)};if(c)n=t;else{if(\"function\"!=typeof(o=Ue(t)))throw TypeError(\"Target is not iterable\");if(Be(o)){for(r=0,s=$t(t.length);s>r;r++)if((a=v(t[r]))&&a instanceof wh)return a;return new wh(!1)}n=o.call(t)}for(l=n.next;!(h=l.call(n)).done;){try{a=v(h.value)}catch(t){throw je(n),t}if(\"object\"==typeof a&&a&&a instanceof wh)return a}return new wh(!1)},xh=function(t,e,i){if(!(t instanceof e))throw TypeError(\"Incorrect \"+(i?i+\" \":\"\")+\"invocation\");return t},Dh=x.f,Sh=Di.forEach,Ch=J.set,Th=J.getterFor,Mh=function(t,e,i){var n,o=-1!==t.indexOf(\"Map\"),r=-1!==t.indexOf(\"Weak\"),s=o?\"set\":\"add\",a=c[t],l=a&&a.prototype,h={};if(f&&\"function\"==typeof a&&(r||l.forEach&&!p((function(){(new a).entries().next()})))){n=e((function(e,i){Ch(xh(e,n,t),{type:t,collection:new a}),null!=i&&kh(i,e[s],{that:e,AS_ENTRIES:o})}));var u=Th(t);Sh([\"add\",\"clear\",\"delete\",\"forEach\",\"get\",\"has\",\"set\",\"keys\",\"values\",\"entries\"],(function(t){var e=\"add\"==t||\"set\"==t;!(t in l)||r&&\"clear\"==t||S(n.prototype,t,(function(i,n){var o=u(this).collection;if(!e&&r&&!m(i))return\"get\"==t&&void 0;var s=o[t](0===i?0:i,n);return e?this:s}))})),r||Dh(n.prototype,\"size\",{configurable:!0,get:function(){return u(this).collection.size}})}else n=i.getConstructor(e,t,o,s),_h.REQUIRED=!0;return we(n,t,!1,!0),h[t]=n,wt({global:!0,forced:!0},h),r||i.setStrong(n,t,o),n},Oh=function(t,e,i){for(var n in e)i&&i.unsafe&&t[n]?t[n]=e[n]:Ce(t,n,e[n],i);return t},Eh=Bt(\"species\"),Ph=x.f,Ah=_h.fastKey,Lh=J.set,Ih=J.getterFor,Nh={getConstructor:function(t,e,i,n){var o=t((function(t,r){xh(t,o,e),Lh(t,{type:e,index:ce(null),first:void 0,last:void 0,size:0}),f||(t.size=0),null!=r&&kh(r,t[n],{that:t,AS_ENTRIES:i})})),r=Ih(e),s=function(t,e,i){var n,o,s=r(t),l=a(t,e);return l?l.value=i:(s.last=l={index:o=Ah(e,!0),key:e,value:i,previous:n=s.last,next:void 0,removed:!1},s.first||(s.first=l),n&&(n.next=l),f?s.size++:t.size++,\"F\"!==o&&(s.index[o]=l)),t},a=function(t,e){var i,n=r(t),o=Ah(e);if(\"F\"!==o)return n.index[o];for(i=n.first;i;i=i.next)if(i.key==e)return i};return Oh(o.prototype,{clear:function(){for(var t=r(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,f?t.size=0:this.size=0},delete:function(t){var e=this,i=r(e),n=a(e,t);if(n){var o=n.next,s=n.previous;delete i.index[n.index],n.removed=!0,s&&(s.next=o),o&&(o.previous=s),i.first==n&&(i.first=o),i.last==n&&(i.last=s),f?i.size--:e.size--}return!!n},forEach:function(t){for(var e,i=r(this),n=yt(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)}}),Oh(o.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)}}),f&&Ph(o.prototype,\"size\",{get:function(){return r(this).size}}),o},setStrong:function(t,e,i){var n=e+\" Iterator\",o=Ih(e),r=Ih(n);Ie(t,e,(function(t,e){Lh(this,{type:n,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=r(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=Ot(t),i=x.f;f&&e&&!e[Eh]&&i(e,Eh,{configurable:!0,get:function(){return this}})}(e)}};Mh(\"Map\",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Nh);var Fh=vt.Map;Mh(\"Set\",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Nh);var Rh=vt.Set,Yh=[],jh=Yh.sort,Hh=p((function(){Yh.sort(void 0)})),zh=p((function(){Yh.sort(null)})),Gh=vo(\"sort\");wt({target:\"Array\",proto:!0,forced:Hh||!zh||!Gh},{sort:function(t){return void 0===t?jh.call(kt(this)):jh.call(kt(this),gt(t))}});var Bh=In(\"Array\").sort,Wh=Array.prototype,Vh=function(t){var e=t.sort;return t===Wh||t instanceof Array&&e===Wh.sort?Bh:e},Uh=Di.some,Xh=vo(\"some\");wt({target:\"Array\",proto:!0,forced:!Xh},{some:function(t){return Uh(this,t,arguments.length>1?arguments[1]:void 0)}});var qh=In(\"Array\").some,Zh=Array.prototype,$h=function(t){var e=t.some;return t===Zh||t instanceof Array&&e===Zh.some?qh:e},Kh=In(\"Array\").keys,Jh=Array.prototype,Qh={DOMTokenList:!0,NodeList:!0},tu=function(t){var e=t.keys;return t===Jh||t instanceof Array&&e===Jh.keys||Qh.hasOwnProperty(ge(t))?Kh:e},eu=In(\"Array\").values,iu=Array.prototype,nu={DOMTokenList:!0,NodeList:!0},ou=function(t){var e=t.values;return t===iu||t instanceof Array&&e===iu.values||nu.hasOwnProperty(ge(t))?eu:e},ru=In(\"Array\").entries,su=Array.prototype,au={DOMTokenList:!0,NodeList:!0},lu=function(t){var e=t.entries;return t===su||t instanceof Array&&e===su.entries||au.hasOwnProperty(ge(t))?ru:e},hu=\"undefined\"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||\"undefined\"!=typeof msCrypto&&\"function\"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),uu=new Uint8Array(16);function du(){if(!hu)throw new Error(\"crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported\");return hu(uu)}for(var cu=[],pu=0;pu<256;++pu)cu[pu]=(pu+256).toString(16).substr(1);function fu(t,e,i){var n=e&&i||0;\"string\"==typeof t&&(e=\"binary\"===t?new Array(16):null,t=null);var o=(t=t||{}).random||(t.rng||du)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e)for(var r=0;r<16;++r)e[n+r]=o[r];return e||function(t,e){var i=e||0,n=cu;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(\"\")}(o)}function mu(t,e){var i=so(t);if(en){var n=en(t);e&&(n=ir(n).call(n,(function(e){return rn(t,e).enumerable}))),i.push.apply(i,n)}return i}function vu(t){for(var e=1;e<arguments.length;e++){var i,n=null!=arguments[e]?arguments[e]:{};if(e%2)ko(i=mu(Object(n),!0)).call(i,(function(e){mn(t,e,n[e])}));else if(an)ln(t,an(n));else{var o;ko(o=mu(Object(n))).call(o,(function(e){un(t,e,rn(n,e))}))}}return t}function gu(t){var e=function(){if(\"undefined\"==typeof Reflect||!Kl)return!1;if(Kl.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Kl(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=rh(t);if(e){var o=rh(this).constructor;i=Kl(n,arguments,o)}else i=n.apply(this,arguments);return nh(this,i)}}function yu(t,e){var i;if(void 0===Xn||null==ai(t)){if(Qn(t)||(i=function(t,e){var i;if(!t)return;if(\"string\"==typeof t)return bu(t,e);var n=Kn(i=Object.prototype.toString.call(t)).call(i,8,-1);\"Object\"===n&&t.constructor&&(n=t.constructor.name);if(\"Map\"===n||\"Set\"===n)return Qe(t);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bu(t,e)}(t))||e&&t&&\"number\"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var r,s=!0,a=!1;return{s:function(){i=li(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){a=!0,r=t},f:function(){try{s||null==i.return||i.return()}finally{if(a)throw r}}}}function bu(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function _u(t){return new ku(t)}var wu=function(){function t(e,i,n){var o,r,s;dn(this,t),this._source=e,this._transformers=i,this._target=n,this._listeners={add:mo(o=this._add).call(o,this),remove:mo(r=this._remove).call(r,this),update:mo(s=this._update).call(s,this)}}return fn(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 ch(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}(),ku=function(){function t(e){dn(this,t),this._source=e,this._transformers=[]}return fn(t,[{key:\"filter\",value:function(t){return this._transformers.push((function(e){return ir(e).call(e,t)})),this}},{key:\"map\",value:function(t){return this._transformers.push((function(e){return oo(e).call(e,t)})),this}},{key:\"flatMap\",value:function(t){return this._transformers.push((function(e){return gh(e).call(e,t)})),this}},{key:\"to\",value:function(t){return new wu(this._source,this._transformers,t)}}]),t}();function xu(t){return\"string\"==typeof t||\"number\"==typeof t}var Du=function(){function t(e){dn(this,t),this._queue=[],this._timeout=null,this._extended=null,this.delay=null,this.max=1/0,this.setOptions(e)}return fn(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),o=0;o<t;o++)e[o]=arguments[o];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=Br((function(){t.flush()}),this.delay))}},{key:\"flush\",value:function(){var t,e;ko(t=No(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 o=[{name:\"flush\",original:void 0}];if(i&&i.replace)for(var r=0;r<i.replace.length;r++){var s=i.replace[r];o.push({name:s,original:e[s]}),n.replace(e,s)}return n._extended={object:e,methods:o},n}}]),t}(),Su=function(){function t(){dn(this,t),this._subscribers={\"*\":[],add:[],remove:[],update:[]},this.subscribe=t.prototype.on,this.unsubscribe=t.prototype.off}return fn(t,[{key:\"_trigger\",value:function(t,e,i){var n,o;if(\"*\"===t)throw new Error(\"Cannot trigger event *\");ko(n=$n(o=[]).call(o,Un(this._subscribers[t]),Un(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]=ir(i=this._subscribers[t]).call(i,(function(t){return t!==e}))}}]),t}(),Cu=function(){function t(e){dn(this,t),this._pairs=e}return fn(t,[{key:yh,value:sh.mark((function t(){var e,i,n,o,r;return sh.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=yu(this._pairs),t.prev=1,e.s();case 3:if((i=e.n()).done){t.next=9;break}return n=Gn(i.value,2),o=n[0],r=n[1],t.next=7,[o,r];case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case\"end\":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:\"entries\",value:sh.mark((function t(){var e,i,n,o,r;return sh.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=yu(this._pairs),t.prev=1,e.s();case 3:if((i=e.n()).done){t.next=9;break}return n=Gn(i.value,2),o=n[0],r=n[1],t.next=7,[o,r];case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case\"end\":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:\"keys\",value:sh.mark((function t(){var e,i,n,o;return sh.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=yu(this._pairs),t.prev=1,e.s();case 3:if((i=e.n()).done){t.next=9;break}return n=Gn(i.value,1),o=n[0],t.next=7,o;case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case\"end\":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:\"values\",value:sh.mark((function t(){var e,i,n,o;return sh.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=yu(this._pairs),t.prev=1,e.s();case 3:if((i=e.n()).done){t.next=9;break}return n=Gn(i.value,2),o=n[1],t.next=7,o;case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case\"end\":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:\"toIdArray\",value:function(){var t;return oo(t=Un(this._pairs)).call(t,(function(t){return t[0]}))}},{key:\"toItemArray\",value:function(){var t;return oo(t=Un(this._pairs)).call(t,(function(t){return t[1]}))}},{key:\"toEntryArray\",value:function(){return Un(this._pairs)}},{key:\"toObjectMap\",value:function(){var t,e=Ar(null),i=yu(this._pairs);try{for(i.s();!(t=i.n()).done;){var n=Gn(t.value,2),o=n[0],r=n[1];e[o]=r}}catch(t){i.e(t)}finally{i.f()}return e}},{key:\"toMap\",value:function(){return new Fh(this._pairs)}},{key:\"toIdSet\",value:function(){return new Rh(this.toIdArray())}},{key:\"toItemSet\",value:function(){return new Rh(this.toItemArray())}},{key:\"cache\",value:function(){return new t(Un(this._pairs))}},{key:\"distinct\",value:function(t){var e,i=new Rh,n=yu(this._pairs);try{for(n.s();!(e=n.n()).done;){var o=Gn(e.value,2),r=o[0],s=o[1];i.add(t(s,r))}}catch(t){n.e(t)}finally{n.f()}return i}},{key:\"filter\",value:function(e){var i=this._pairs;return new t(mn({},yh,sh.mark((function t(){var n,o,r,s,a;return sh.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=yu(i),t.prev=1,n.s();case 3:if((o=n.n()).done){t.next=10;break}if(r=Gn(o.value,2),s=r[0],a=r[1],!e(a,s)){t.next=8;break}return t.next=8,[s,a];case 8:t.next=3;break;case 10:t.next=15;break;case 12:t.prev=12,t.t0=t.catch(1),n.e(t.t0);case 15:return t.prev=15,n.f(),t.finish(15);case 18:case\"end\":return t.stop()}}),t,null,[[1,12,15,18]])}))))}},{key:\"forEach\",value:function(t){var e,i=yu(this._pairs);try{for(i.s();!(e=i.n()).done;){var n=Gn(e.value,2),o=n[0];t(n[1],o)}}catch(t){i.e(t)}finally{i.f()}}},{key:\"map\",value:function(e){var i=this._pairs;return new t(mn({},yh,sh.mark((function t(){var n,o,r,s,a;return sh.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=yu(i),t.prev=1,n.s();case 3:if((o=n.n()).done){t.next=9;break}return r=Gn(o.value,2),s=r[0],a=r[1],t.next=7,[s,e(a,s)];case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),n.e(t.t0);case 14:return t.prev=14,n.f(),t.finish(14);case 17:case\"end\":return t.stop()}}),t,null,[[1,11,14,17]])}))))}},{key:\"max\",value:function(t){var e=li(this._pairs),i=e.next();if(i.done)return null;for(var n=i.value[1],o=t(i.value[1],i.value[0]);!(i=e.next()).done;){var r=Gn(i.value,2),s=r[0],a=r[1],l=t(a,s);l>o&&(o=l,n=a)}return n}},{key:\"min\",value:function(t){var e=li(this._pairs),i=e.next();if(i.done)return null;for(var n=i.value[1],o=t(i.value[1],i.value[0]);!(i=e.next()).done;){var r=Gn(i.value,2),s=r[0],a=r[1],l=t(a,s);l<o&&(o=l,n=a)}return n}},{key:\"reduce\",value:function(t,e){var i,n=yu(this._pairs);try{for(n.s();!(i=n.n()).done;){var o=Gn(i.value,2),r=o[0];e=t(e,o[1],r)}}catch(t){n.e(t)}finally{n.f()}return e}},{key:\"sort\",value:function(e){var i=this;return new t(mn({},yh,(function(){var t;return li(Vh(t=Un(i._pairs)).call(t,(function(t,i){var n=Gn(t,2),o=n[0],r=n[1],s=Gn(i,2),a=s[0],l=s[1];return e(r,l,o,a)})))})))}}]),t}();var Tu=function(t){ih(i,t);var e=gu(i);function i(t,n){var o;return dn(this,i),(o=e.call(this))._queue=null,t&&!Qn(t)&&(n=t,t=[]),o._options=n||{},o._data=new Fh,o.length=0,o._idProp=o._options.fieldId||\"id\",t&&t.length&&o.add(t),o.setOptions(n),o}return fn(i,[{key:\"idProp\",get:function(){return this._idProp}},{key:\"setOptions\",value:function(t){t&&void 0!==t.queue&&(!1===t.queue?this._queue&&(this._queue.destroy(),this._queue=null):(this._queue||(this._queue=Du.extend(this,{replace:[\"add\",\"update\",\"remove\"]})),t.queue&&\"object\"===Vn(t.queue)&&this._queue.setOptions(t.queue)))}},{key:\"add\",value:function(t,e){var i,n=this,o=[];if(Qn(t)){var r=oo(t).call(t,(function(t){return t[n._idProp]}));if($h(r).call(r,(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]),o.push(i)}else{if(!t||\"object\"!==Vn(t))throw new Error(\"Unknown dataType\");i=this._addItem(t),o.push(i)}return o.length&&this._trigger(\"add\",{items:o},e),o}},{key:\"update\",value:function(t,e){var i=this,n=[],o=[],r=[],s=[],a=this._idProp,l=function(t){var e=t[a];if(null!=e&&i._data.has(e)){var l=t,h=jo({},i._data.get(e)),u=i._updateItem(l);o.push(u),s.push(l),r.push(h)}else{var d=i._addItem(t);n.push(d)}};if(Qn(t))for(var h=0,u=t.length;h<u;h++)t[h]&&\"object\"===Vn(t[h])?l(t[h]):console.warn(\"Ignoring input item, which is not an object at index \"+h);else{if(!t||\"object\"!==Vn(t))throw new Error(\"Unknown dataType\");l(t)}if(n.length&&this._trigger(\"add\",{items:n},e),o.length){var d={items:o,oldData:r,data:s};this._trigger(\"update\",d,e)}return $n(n).call(n,o)}},{key:\"updateOnly\",value:function(t,e){var i,n=this;Qn(t)||(t=[t]);var o=oo(i=oo(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,o=e[n._idProp],r=za(e,i);return n._data.set(o,r),{id:o,oldData:e,updatedData:r}}));if(o.length){var r={items:oo(o).call(o,(function(t){return t.id})),oldData:oo(o).call(o,(function(t){return t.oldData})),data:oo(o).call(o,(function(t){return t.updatedData}))};return this._trigger(\"update\",r,e),r.items}return[]}},{key:\"get\",value:function(t,e){var i=void 0,n=void 0,o=void 0;xu(t)?(i=t,o=e):Qn(t)?(n=t,o=e):o=t;var r,s=o&&\"Object\"===o.returnType?\"Object\":\"Array\",a=o&&ir(o),l=[],h=void 0,u=void 0,d=void 0;if(null!=i)(h=this._data.get(i))&&a&&!a(h)&&(h=void 0);else if(null!=n)for(var c=0,p=n.length;c<p;c++)null==(h=this._data.get(n[c]))||a&&!a(h)||l.push(h);else for(var f,m=0,v=(u=Un(tu(f=this._data).call(f))).length;m<v;m++)d=u[m],null==(h=this._data.get(d))||a&&!a(h)||l.push(h);if(o&&o.order&&null==i&&this._sort(l,o.order),o&&o.fields){var g=o.fields;if(null!=i&&null!=h)h=this._filterFields(h,g);else for(var y=0,b=l.length;y<b;y++)l[y]=this._filterFields(l[y],g)}if(\"Object\"==s){for(var _={},w=0,k=l.length;w<k;w++){var x=l[w];_[x[this._idProp]]=x}return _}return null!=i?null!==(r=h)&&void 0!==r?r:null:l}},{key:\"getIds\",value:function(t){var e=this._data,i=t&&ir(t),n=t&&t.order,o=Un(tu(e).call(e)),r=[];if(i)if(n){for(var s=[],a=0,l=o.length;a<l;a++){var h=o[a],u=this._data.get(h);null!=u&&i(u)&&s.push(u)}this._sort(s,n);for(var d=0,c=s.length;d<c;d++)r.push(s[d][this._idProp])}else for(var p=0,f=o.length;p<f;p++){var m=o[p],v=this._data.get(m);null!=v&&i(v)&&r.push(v[this._idProp])}else if(n){for(var g=[],y=0,b=o.length;y<b;y++){var _=o[y];g.push(e.get(_))}this._sort(g,n);for(var w=0,k=g.length;w<k;w++)r.push(g[w][this._idProp])}else for(var x=0,D=o.length;x<D;x++){var S=o[x],C=e.get(S);null!=C&&r.push(C[this._idProp])}return r}},{key:\"getDataSet\",value:function(){return this}},{key:\"forEach\",value:function(t,e){var i=e&&ir(e),n=this._data,o=Un(tu(n).call(n));if(e&&e.order)for(var r=this.get(e),s=0,a=r.length;s<a;s++){var l=r[s];t(l,l[this._idProp])}else for(var h=0,u=o.length;h<u;h++){var d=o[h],c=this._data.get(d);null==c||i&&!i(c)||t(c,d)}}},{key:\"map\",value:function(t,e){for(var i=e&&ir(e),n=[],o=this._data,r=Un(tu(o).call(o)),s=0,a=r.length;s<a;s++){var l=r[s],h=this._data.get(l);null==h||i&&!i(h)||n.push(t(h,l))}return e&&e.order&&this._sort(n,e.order),n}},{key:\"_filterFields\",value:function(t,e){var i;return t?ch(i=Qn(e)?e:so(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;Vh(t).call(t,(function(t,e){var n=t[i],o=e[i];return n>o?1:n<o?-1:0}))}else{if(\"function\"!=typeof e)throw new TypeError(\"Order must be a function or a string\");Vh(t).call(t,e)}}},{key:\"remove\",value:function(t,e){for(var i=[],n=[],o=Qn(t)?t:[t],r=0,s=o.length;r<s;r++){var a=this._remove(o[r]);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(xu(t)?e=t:t&&\"object\"===Vn(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=Un(tu(e=this._data).call(e)),n=[],o=0,r=i.length;o<r;o++)n.push(this._data.get(i[o]));return this._data.clear(),this.length=0,this._trigger(\"remove\",{items:i,oldData:n},t),i}},{key:\"max\",value:function(t){var e,i,n=null,o=null,r=yu(ou(e=this._data).call(e));try{for(r.s();!(i=r.n()).done;){var s=i.value,a=s[t];\"number\"==typeof a&&(null==o||a>o)&&(n=s,o=a)}}catch(t){r.e(t)}finally{r.f()}return n||null}},{key:\"min\",value:function(t){var e,i,n=null,o=null,r=yu(ou(e=this._data).call(e));try{for(r.s();!(i=r.n()).done;){var s=i.value,a=s[t];\"number\"==typeof a&&(null==o||a<o)&&(n=s,o=a)}}catch(t){r.e(t)}finally{r.f()}return n||null}},{key:\"distinct\",value:function(t){for(var e=this._data,i=Un(tu(e).call(e)),n=[],o=0,r=0,s=i.length;r<s;r++){for(var a=i[r],l=e.get(a)[t],h=!1,u=0;u<o;u++)if(n[u]==l){h=!0;break}h||void 0===l||(n[o]=l,o++)}return n}},{key:\"_addItem\",value:function(t){var e=function(t,e){return null==t[e]&&(t[e]=fu()),t}(t,this._idProp),i=e[this._idProp];if(this._data.has(i))throw new Error(\"Cannot add item: item with id \"+i+\" already exists\");return this._data.set(i,e),++this.length,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: \"+jr(t)+\")\");var i=this._data.get(e);if(!i)throw new Error(\"Cannot update item: no item with id \"+e+\" found\");return this._data.set(e,vu(vu({},i),t)),e}},{key:\"stream\",value:function(t){if(t){var e=this._data;return new Cu(mn({},yh,sh.mark((function i(){var n,o,r,s;return sh.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:n=yu(t),i.prev=1,n.s();case 3:if((o=n.n()).done){i.next=11;break}if(r=o.value,null==(s=e.get(r))){i.next=9;break}return i.next=9,[r,s];case 9:i.next=3;break;case 11:i.next=16;break;case 13:i.prev=13,i.t0=i.catch(1),n.e(i.t0);case 16:return i.prev=16,n.f(),i.finish(16);case 19:case\"end\":return i.stop()}}),i,null,[[1,13,16,19]])}))))}var i;return new Cu(mn({},yh,mo(i=lu(this._data)).call(i,this._data)))}}]),i}(Su),Mu=function(t){ih(i,t);var e=gu(i);function i(t,n){var o,r;return dn(this,i),(r=e.call(this)).length=0,r._ids=new Rh,r._options=n||{},r._listener=mo(o=r._onEvent).call(o,Jl(r)),r.setData(t),r}return fn(i,[{key:\"idProp\",get:function(){return this.getDataSet().idProp}},{key:\"setData\",value:function(t){if(this._data){this._data.off&&this._data.off(\"*\",this._listener);var e=this._data.getIds({filter:ir(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:ir(this._options)}),o=0,r=n.length;o<r;o++){var s=n[o];this._ids.add(s)}this.length=n.length,this._trigger(\"add\",{items:n})}else this._data=new Tu;this._data.on&&this._data.on(\"*\",this._listener)}},{key:\"refresh\",value:function(){for(var t=this._data.getIds({filter:ir(this._options)}),e=Un(this._ids),i={},n=[],o=[],r=[],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 h=0,u=e.length;h<u;h++){var d=e[h],c=this._data.get(d);null==c?console.error(\"If you see this, report it please.\"):i[d]||(o.push(d),r.push(c),this._ids.delete(d))}this.length+=n.length-o.length,n.length&&this._trigger(\"add\",{items:n}),o.length&&this._trigger(\"remove\",{items:o,oldData:r})}},{key:\"get\",value:function(t,e){if(null==this._data)return null;var i,n=null;xu(t)||Qn(t)?(n=t,i=e):i=t;var o=jo({},this._options,i),r=ir(this._options),s=i&&ir(i);return r&&s&&(o.filter=function(t){return r(t)&&s(t)}),null==n?this._data.get(o):this._data.get(n,o)}},{key:\"getIds\",value:function(t){if(this._data.length){var e,i=ir(this._options),n=null!=t?ir(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,o=ir(this._options),r=e&&ir(e);n=r?o?function(t){return o(t)&&r(t)}:r:o,ko(i=this._data).call(i,t,{filter:n,order:e&&e.order})}}},{key:\"map\",value:function(t,e){if(this._data){var i,n,o=ir(this._options),r=e&&ir(e);return n=r?o?function(t){return o(t)&&r(t)}:r:o,oo(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||mn({},yh,mo(e=tu(this._ids)).call(e,this._ids)))}},{key:\"dispose\",value:function(){var t;null!==(t=this._data)&&void 0!==t&&t.off&&this._data.off(\"*\",this._listener);var e,n=\"This data view has already been disposed of.\",o={get:function(){throw new Error(n)},set:function(){throw new Error(n)},configurable:!1},r=yu(Jn(i.prototype));try{for(r.s();!(e=r.n()).done;){var s=e.value;un(this,s,o)}}catch(t){r.e(t)}finally{r.f()}}},{key:\"_onEvent\",value:function(t,e,i){if(e&&e.items&&this._data){var n=e.items,o=[],r=[],s=[],a=[],l=[],h=[];switch(t){case\"add\":for(var u=0,d=n.length;u<d;u++){var c=n[u];this.get(c)&&(this._ids.add(c),o.push(c))}break;case\"update\":for(var p=0,f=n.length;p<f;p++){var m=n[p];this.get(m)?this._ids.has(m)?(r.push(m),l.push(e.data[p]),a.push(e.oldData[p])):(this._ids.add(m),o.push(m)):this._ids.has(m)&&(this._ids.delete(m),s.push(m),h.push(e.oldData[p]))}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),h.push(e.oldData[v]))}}this.length+=o.length-s.length,o.length&&this._trigger(\"add\",{items:o},i),r.length&&this._trigger(\"update\",{items:r,oldData:a,data:l},i),s.length&&this._trigger(\"remove\",{items:s,oldData:h},i)}}}]),i}(Su);function Ou(t,e){return\"object\"===Vn(e)&&null!==e&&t===e.idProp&&\"function\"==typeof ko(e)&&\"function\"==typeof e.get&&\"function\"==typeof e.getDataSet&&\"function\"==typeof e.getIds&&\"number\"==typeof e.length&&\"function\"==typeof oo(e)&&\"function\"==typeof e.off&&\"function\"==typeof e.on&&\"function\"==typeof e.stream&&function(t,e){return\"object\"===Vn(e)&&null!==e&&t===e.idProp&&\"function\"==typeof e.add&&\"function\"==typeof e.clear&&\"function\"==typeof e.distinct&&\"function\"==typeof ko(e)&&\"function\"==typeof e.get&&\"function\"==typeof e.getDataSet&&\"function\"==typeof e.getIds&&\"number\"==typeof e.length&&\"function\"==typeof oo(e)&&\"function\"==typeof e.max&&\"function\"==typeof e.min&&\"function\"==typeof e.off&&\"function\"==typeof e.on&&\"function\"==typeof e.remove&&\"function\"==typeof e.setOptions&&\"function\"==typeof e.stream&&\"function\"==typeof e.update&&\"function\"==typeof e.updateOnly}(t,e.getDataSet())}var Eu=\"undefined\"!=typeof window&&window.moment||o;function Pu(){var t={\"align-content\":!1,\"align-items\":!1,\"align-self\":!1,\"alignment-adjust\":!1,\"alignment-baseline\":!1,all:!1,\"anchor-point\":!1,animation:!1,\"animation-delay\":!1,\"animation-direction\":!1,\"animation-duration\":!1,\"animation-fill-mode\":!1,\"animation-iteration-count\":!1,\"animation-name\":!1,\"animation-play-state\":!1,\"animation-timing-function\":!1,azimuth:!1,\"backface-visibility\":!1,background:!0,\"background-attachment\":!0,\"background-clip\":!0,\"background-color\":!0,\"background-image\":!0,\"background-origin\":!0,\"background-position\":!0,\"background-repeat\":!0,\"background-size\":!0,\"baseline-shift\":!1,binding:!1,bleed:!1,\"bookmark-label\":!1,\"bookmark-level\":!1,\"bookmark-state\":!1,border:!0,\"border-bottom\":!0,\"border-bottom-color\":!0,\"border-bottom-left-radius\":!0,\"border-bottom-right-radius\":!0,\"border-bottom-style\":!0,\"border-bottom-width\":!0,\"border-collapse\":!0,\"border-color\":!0,\"border-image\":!0,\"border-image-outset\":!0,\"border-image-repeat\":!0,\"border-image-slice\":!0,\"border-image-source\":!0,\"border-image-width\":!0,\"border-left\":!0,\"border-left-color\":!0,\"border-left-style\":!0,\"border-left-width\":!0,\"border-radius\":!0,\"border-right\":!0,\"border-right-color\":!0,\"border-right-style\":!0,\"border-right-width\":!0,\"border-spacing\":!0,\"border-style\":!0,\"border-top\":!0,\"border-top-color\":!0,\"border-top-left-radius\":!0,\"border-top-right-radius\":!0,\"border-top-style\":!0,\"border-top-width\":!0,\"border-width\":!0,bottom:!1,\"box-decoration-break\":!0,\"box-shadow\":!0,\"box-sizing\":!0,\"box-snap\":!0,\"box-suppress\":!0,\"break-after\":!0,\"break-before\":!0,\"break-inside\":!0,\"caption-side\":!1,chains:!1,clear:!0,clip:!1,\"clip-path\":!1,\"clip-rule\":!1,color:!0,\"color-interpolation-filters\":!0,\"column-count\":!1,\"column-fill\":!1,\"column-gap\":!1,\"column-rule\":!1,\"column-rule-color\":!1,\"column-rule-style\":!1,\"column-rule-width\":!1,\"column-span\":!1,\"column-width\":!1,columns:!1,contain:!1,content:!1,\"counter-increment\":!1,\"counter-reset\":!1,\"counter-set\":!1,crop:!1,cue:!1,\"cue-after\":!1,\"cue-before\":!1,cursor:!1,direction:!1,display:!0,\"display-inside\":!0,\"display-list\":!0,\"display-outside\":!0,\"dominant-baseline\":!1,elevation:!1,\"empty-cells\":!1,filter:!1,flex:!1,\"flex-basis\":!1,\"flex-direction\":!1,\"flex-flow\":!1,\"flex-grow\":!1,\"flex-shrink\":!1,\"flex-wrap\":!1,float:!1,\"float-offset\":!1,\"flood-color\":!1,\"flood-opacity\":!1,\"flow-from\":!1,\"flow-into\":!1,font:!0,\"font-family\":!0,\"font-feature-settings\":!0,\"font-kerning\":!0,\"font-language-override\":!0,\"font-size\":!0,\"font-size-adjust\":!0,\"font-stretch\":!0,\"font-style\":!0,\"font-synthesis\":!0,\"font-variant\":!0,\"font-variant-alternates\":!0,\"font-variant-caps\":!0,\"font-variant-east-asian\":!0,\"font-variant-ligatures\":!0,\"font-variant-numeric\":!0,\"font-variant-position\":!0,\"font-weight\":!0,grid:!1,\"grid-area\":!1,\"grid-auto-columns\":!1,\"grid-auto-flow\":!1,\"grid-auto-rows\":!1,\"grid-column\":!1,\"grid-column-end\":!1,\"grid-column-start\":!1,\"grid-row\":!1,\"grid-row-end\":!1,\"grid-row-start\":!1,\"grid-template\":!1,\"grid-template-areas\":!1,\"grid-template-columns\":!1,\"grid-template-rows\":!1,\"hanging-punctuation\":!1,height:!0,hyphens:!1,icon:!1,\"image-orientation\":!1,\"image-resolution\":!1,\"ime-mode\":!1,\"initial-letters\":!1,\"inline-box-align\":!1,\"justify-content\":!1,\"justify-items\":!1,\"justify-self\":!1,left:!1,\"letter-spacing\":!0,\"lighting-color\":!0,\"line-box-contain\":!1,\"line-break\":!1,\"line-grid\":!1,\"line-height\":!1,\"line-snap\":!1,\"line-stacking\":!1,\"line-stacking-ruby\":!1,\"line-stacking-shift\":!1,\"line-stacking-strategy\":!1,\"list-style\":!0,\"list-style-image\":!0,\"list-style-position\":!0,\"list-style-type\":!0,margin:!0,\"margin-bottom\":!0,\"margin-left\":!0,\"margin-right\":!0,\"margin-top\":!0,\"marker-offset\":!1,\"marker-side\":!1,marks:!1,mask:!1,\"mask-box\":!1,\"mask-box-outset\":!1,\"mask-box-repeat\":!1,\"mask-box-slice\":!1,\"mask-box-source\":!1,\"mask-box-width\":!1,\"mask-clip\":!1,\"mask-image\":!1,\"mask-origin\":!1,\"mask-position\":!1,\"mask-repeat\":!1,\"mask-size\":!1,\"mask-source-type\":!1,\"mask-type\":!1,\"max-height\":!0,\"max-lines\":!1,\"max-width\":!0,\"min-height\":!0,\"min-width\":!0,\"move-to\":!1,\"nav-down\":!1,\"nav-index\":!1,\"nav-left\":!1,\"nav-right\":!1,\"nav-up\":!1,\"object-fit\":!1,\"object-position\":!1,opacity:!1,order:!1,orphans:!1,outline:!1,\"outline-color\":!1,\"outline-offset\":!1,\"outline-style\":!1,\"outline-width\":!1,overflow:!1,\"overflow-wrap\":!1,\"overflow-x\":!1,\"overflow-y\":!1,padding:!0,\"padding-bottom\":!0,\"padding-left\":!0,\"padding-right\":!0,\"padding-top\":!0,page:!1,\"page-break-after\":!1,\"page-break-before\":!1,\"page-break-inside\":!1,\"page-policy\":!1,pause:!1,\"pause-after\":!1,\"pause-before\":!1,perspective:!1,\"perspective-origin\":!1,pitch:!1,\"pitch-range\":!1,\"play-during\":!1,position:!1,\"presentation-level\":!1,quotes:!1,\"region-fragment\":!1,resize:!1,rest:!1,\"rest-after\":!1,\"rest-before\":!1,richness:!1,right:!1,rotation:!1,\"rotation-point\":!1,\"ruby-align\":!1,\"ruby-merge\":!1,\"ruby-position\":!1,\"shape-image-threshold\":!1,\"shape-outside\":!1,\"shape-margin\":!1,size:!1,speak:!1,\"speak-as\":!1,\"speak-header\":!1,\"speak-numeral\":!1,\"speak-punctuation\":!1,\"speech-rate\":!1,stress:!1,\"string-set\":!1,\"tab-size\":!1,\"table-layout\":!1,\"text-align\":!0,\"text-align-last\":!0,\"text-combine-upright\":!0,\"text-decoration\":!0,\"text-decoration-color\":!0,\"text-decoration-line\":!0,\"text-decoration-skip\":!0,\"text-decoration-style\":!0,\"text-emphasis\":!0,\"text-emphasis-color\":!0,\"text-emphasis-position\":!0,\"text-emphasis-style\":!0,\"text-height\":!0,\"text-indent\":!0,\"text-justify\":!0,\"text-orientation\":!0,\"text-overflow\":!0,\"text-shadow\":!0,\"text-space-collapse\":!0,\"text-transform\":!0,\"text-underline-position\":!0,\"text-wrap\":!0,top:!1,transform:!1,\"transform-origin\":!1,\"transform-style\":!1,transition:!1,\"transition-delay\":!1,\"transition-duration\":!1,\"transition-property\":!1,\"transition-timing-function\":!1,\"unicode-bidi\":!1,\"vertical-align\":!1,visibility:!1,\"voice-balance\":!1,\"voice-duration\":!1,\"voice-family\":!1,\"voice-pitch\":!1,\"voice-range\":!1,\"voice-rate\":!1,\"voice-stress\":!1,\"voice-volume\":!1,volume:!1,\"white-space\":!1,widows:!1,width:!0,\"will-change\":!1,\"word-break\":!0,\"word-spacing\":!0,\"word-wrap\":!0,\"wrap-flow\":!1,\"wrap-through\":!1,\"writing-mode\":!1,\"z-index\":!1};return t}var Au=/javascript\\s*\\:/gim;var Lu={whiteList:Pu(),getDefaultWhiteList:Pu,onAttr:function(t,e,i){},onIgnoreAttr:function(t,e,i){},safeAttrValue:function(t,e){return Au.test(e)?\"\":e}},Iu=function(t){return String.prototype.trim?t.trim():t.replace(/(^\\s*)|(\\s*$)/g,\"\")},Nu=function(t){return String.prototype.trimRight?t.trimRight():t.replace(/(\\s*$)/g,\"\")};var Fu=function(t,e){\";\"!==(t=Nu(t))[t.length-1]&&(t+=\";\");var i=t.length,n=!1,o=0,r=0,s=\"\";function a(){if(!n){var i=Iu(t.slice(o,r)),a=i.indexOf(\":\");if(-1!==a){var l=Iu(i.slice(0,a)),h=Iu(i.slice(a+1));if(l){var u=e(o,s.length,l,h,i);u&&(s+=u+\"; \")}}}o=r+1}for(;r<i;r++){var l=t[r];if(\"/\"===l&&\"*\"===t[r+1]){var h=t.indexOf(\"*/\",r+2);if(-1===h)break;o=(r=h+1)+1,n=!1}else\"(\"===l?n=!0:\")\"===l?n=!1:\";\"===l?n||a():\"\\n\"===l&&a()}return Iu(s)};function Ru(t){return null==t}function Yu(t){(t=function(t){var e={};for(var i in t)e[i]=t[i];return e}(t||{})).whiteList=t.whiteList||Lu.whiteList,t.onAttr=t.onAttr||Lu.onAttr,t.onIgnoreAttr=t.onIgnoreAttr||Lu.onIgnoreAttr,t.safeAttrValue=t.safeAttrValue||Lu.safeAttrValue,this.options=t}Yu.prototype.process=function(t){if(!(t=(t=t||\"\").toString()))return\"\";var e=this.options,i=e.whiteList,n=e.onAttr,o=e.onIgnoreAttr,r=e.safeAttrValue;return Fu(t,(function(t,e,s,a,l){var h=i[s],u=!1;if(!0===h?u=h:\"function\"==typeof h?u=h(a):h instanceof RegExp&&(u=h.test(a)),!0!==u&&(u=!1),a=r(s,a)){var d,c={position:e,sourcePosition:t,source:l,isWhite:u};return u?Ru(d=n(s,a,c))?s+\":\"+a:d:Ru(d=o(s,a,c))?void 0:d}}))};var ju=Yu,Hu=i((function(t,e){for(var i in(e=t.exports=function(t,e){return new ju(e).process(t)}).FilterCSS=ju,Lu)e[i]=Lu[i];\"undefined\"!=typeof window&&(window.filterCSS=t.exports)})),zu=function(t,e){var i,n;if(Array.prototype.indexOf)return t.indexOf(e);for(i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1},Gu=function(t,e,i){var n,o;if(Array.prototype.forEach)return t.forEach(e,i);for(n=0,o=t.length;n<o;n++)e.call(i,t[n],n,t)},Bu=function(t){return String.prototype.trim?t.trim():t.replace(/(^\\s*)|(\\s*$)/g,\"\")},Wu=function(t){var e=/\\s|\\n|\\t/.exec(t);return e?e.index:-1},Vu=Hu.FilterCSS,Uu=Hu.getDefaultWhiteList;function Xu(){return{a:[\"target\",\"href\",\"title\"],abbr:[\"title\"],address:[],area:[\"shape\",\"coords\",\"href\",\"alt\"],article:[],aside:[],audio:[\"autoplay\",\"controls\",\"loop\",\"preload\",\"src\"],b:[],bdi:[\"dir\"],bdo:[\"dir\"],big:[],blockquote:[\"cite\"],br:[],caption:[],center:[],cite:[],code:[],col:[\"align\",\"valign\",\"span\",\"width\"],colgroup:[\"align\",\"valign\",\"span\",\"width\"],dd:[],del:[\"datetime\"],details:[\"open\"],div:[],dl:[],dt:[],em:[],font:[\"color\",\"size\",\"face\"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:[\"src\",\"alt\",\"title\",\"width\",\"height\"],ins:[\"datetime\"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],sup:[],strong:[],table:[\"width\",\"border\",\"align\",\"valign\"],tbody:[\"align\",\"valign\"],td:[\"width\",\"rowspan\",\"colspan\",\"align\",\"valign\"],tfoot:[\"align\",\"valign\"],th:[\"width\",\"rowspan\",\"colspan\",\"align\",\"valign\"],thead:[\"align\",\"valign\"],tr:[\"rowspan\",\"align\",\"valign\"],tt:[],u:[],ul:[],video:[\"autoplay\",\"controls\",\"loop\",\"preload\",\"src\",\"height\",\"width\"]}}var qu=new Vu;function Zu(t){return t.replace($u,\"&lt;\").replace(Ku,\"&gt;\")}var $u=/</g,Ku=/>/g,Ju=/\"/g,Qu=/&quot;/g,td=/&#([a-zA-Z0-9]*);?/gim,ed=/&colon;?/gim,id=/&newline;?/gim,nd=/((j\\s*a\\s*v\\s*a|v\\s*b|l\\s*i\\s*v\\s*e)\\s*s\\s*c\\s*r\\s*i\\s*p\\s*t\\s*|m\\s*o\\s*c\\s*h\\s*a)\\:/gi,od=/e\\s*x\\s*p\\s*r\\s*e\\s*s\\s*s\\s*i\\s*o\\s*n\\s*\\(.*/gi,rd=/u\\s*r\\s*l\\s*\\(.*/gi;function sd(t){return t.replace(Ju,\"&quot;\")}function ad(t){return t.replace(Qu,\'\"\')}function ld(t){return t.replace(td,(function(t,e){return\"x\"===e[0]||\"X\"===e[0]?String.fromCharCode(parseInt(e.substr(1),16)):String.fromCharCode(parseInt(e,10))}))}function hd(t){return t.replace(ed,\":\").replace(id,\" \")}function ud(t){for(var e=\"\",i=0,n=t.length;i<n;i++)e+=t.charCodeAt(i)<32?\" \":t.charAt(i);return Bu(e)}function dd(t){return t=ud(t=hd(t=ld(t=ad(t))))}function cd(t){return t=Zu(t=sd(t))}var pd=/<!--[\\s\\S]*?-->/g;var fd={whiteList:{a:[\"target\",\"href\",\"title\"],abbr:[\"title\"],address:[],area:[\"shape\",\"coords\",\"href\",\"alt\"],article:[],aside:[],audio:[\"autoplay\",\"controls\",\"loop\",\"preload\",\"src\"],b:[],bdi:[\"dir\"],bdo:[\"dir\"],big:[],blockquote:[\"cite\"],br:[],caption:[],center:[],cite:[],code:[],col:[\"align\",\"valign\",\"span\",\"width\"],colgroup:[\"align\",\"valign\",\"span\",\"width\"],dd:[],del:[\"datetime\"],details:[\"open\"],div:[],dl:[],dt:[],em:[],font:[\"color\",\"size\",\"face\"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:[\"src\",\"alt\",\"title\",\"width\",\"height\"],ins:[\"datetime\"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],sup:[],strong:[],table:[\"width\",\"border\",\"align\",\"valign\"],tbody:[\"align\",\"valign\"],td:[\"width\",\"rowspan\",\"colspan\",\"align\",\"valign\"],tfoot:[\"align\",\"valign\"],th:[\"width\",\"rowspan\",\"colspan\",\"align\",\"valign\"],thead:[\"align\",\"valign\"],tr:[\"rowspan\",\"align\",\"valign\"],tt:[],u:[],ul:[],video:[\"autoplay\",\"controls\",\"loop\",\"preload\",\"src\",\"height\",\"width\"]},getDefaultWhiteList:Xu,onTag:function(t,e,i){},onIgnoreTag:function(t,e,i){},onTagAttr:function(t,e,i){},onIgnoreTagAttr:function(t,e,i){},safeAttrValue:function(t,e,i,n){if(i=dd(i),\"href\"===e||\"src\"===e){if(\"#\"===(i=Bu(i)))return\"#\";if(\"http://\"!==i.substr(0,7)&&\"https://\"!==i.substr(0,8)&&\"mailto:\"!==i.substr(0,7)&&\"tel:\"!==i.substr(0,4)&&\"data:image/\"!==i.substr(0,11)&&\"ftp://\"!==i.substr(0,6)&&\"./\"!==i.substr(0,2)&&\"../\"!==i.substr(0,3)&&\"#\"!==i[0]&&\"/\"!==i[0])return\"\"}else if(\"background\"===e){if(nd.lastIndex=0,nd.test(i))return\"\"}else if(\"style\"===e){if(od.lastIndex=0,od.test(i))return\"\";if(rd.lastIndex=0,rd.test(i)&&(nd.lastIndex=0,nd.test(i)))return\"\";!1!==n&&(i=(n=n||qu).process(i))}return i=cd(i)},escapeHtml:Zu,escapeQuote:sd,unescapeQuote:ad,escapeHtmlEntities:ld,escapeDangerHtml5Entities:hd,clearNonPrintableCharacter:ud,friendlyAttrValue:dd,escapeAttrValue:cd,onIgnoreTagStripAll:function(){return\"\"},StripTagBody:function(t,e){\"function\"!=typeof e&&(e=function(){});var i=!Array.isArray(t),n=[],o=!1;return{onIgnoreTag:function(r,s,a){if(function(e){return!!i||-1!==zu(t,e)}(r)){if(a.isClosing){var l=\"[/removed]\",h=a.position+l.length;return n.push([!1!==o?o:a.position,h]),o=!1,l}return o||(o=a.position),\"[removed]\"}return e(r,s,a)},remove:function(t){var e=\"\",i=0;return Gu(n,(function(n){e+=t.slice(i,n[0]),i=n[1]})),e+=t.slice(i)}}},stripCommentTag:function(t){return t.replace(pd,\"\")},stripBlankChar:function(t){var e=t.split(\"\");return(e=e.filter((function(t){var e=t.charCodeAt(0);return 127!==e&&(!(e<=31)||(10===e||13===e))}))).join(\"\")},cssFilter:qu,getDefaultCSSWhiteList:Uu};function md(t){var e=Wu(t);if(-1===e)var i=t.slice(1,-1);else i=t.slice(1,e+1);return\"/\"===(i=Bu(i).toLowerCase()).slice(0,1)&&(i=i.slice(1)),\"/\"===i.slice(-1)&&(i=i.slice(0,-1)),i}function vd(t){return\"</\"===t.slice(0,2)}var gd=/[^a-zA-Z0-9_:\\.\\-]/gim;function yd(t,e){for(;e<t.length;e++){var i=t[e];if(\" \"!==i)return\"=\"===i?e:-1}}function bd(t,e){for(;e>0;e--){var i=t[e];if(\" \"!==i)return\"=\"===i?e:-1}}function _d(t){return function(t){return\'\"\'===t[0]&&\'\"\'===t[t.length-1]||\"\'\"===t[0]&&\"\'\"===t[t.length-1]}(t)?t.substr(1,t.length-2):t}var wd={parseTag:function(t,e,i){var n=\"\",o=0,r=!1,s=!1,a=0,l=t.length,h=\"\",u=\"\";t:for(a=0;a<l;a++){var d=t.charAt(a);if(!1===r){if(\"<\"===d){r=a;continue}}else if(!1===s){if(\"<\"===d){n+=i(t.slice(o,a)),r=a,o=a;continue}if(\">\"===d){n+=i(t.slice(o,r)),h=md(u=t.slice(r,a+1)),n+=e(r,n.length,h,u,vd(u)),o=a+1,r=!1;continue}if(\'\"\'===d||\"\'\"===d)for(var c=1,p=t.charAt(a-c);\" \"===p||\"=\"===p;){if(\"=\"===p){s=d;continue t}p=t.charAt(a-++c)}}else if(d===s){s=!1;continue}}return o<t.length&&(n+=i(t.substr(o))),n},parseAttr:function(t,e){var i=0,n=[],o=!1,r=t.length;function s(t,i){if(!((t=(t=Bu(t)).replace(gd,\"\").toLowerCase()).length<1)){var o=e(t,i||\"\");o&&n.push(o)}}for(var a=0;a<r;a++){var l,h=t.charAt(a);if(!1!==o||\"=\"!==h)if(!1===o||a!==i||\'\"\'!==h&&\"\'\"!==h||\"=\"!==t.charAt(a-1))if(/\\s|\\n|\\t/.test(h)){if(t=t.replace(/\\s|\\n|\\t/g,\" \"),!1===o){if(-1===(l=yd(t,a))){s(Bu(t.slice(i,a))),o=!1,i=a+1;continue}a=l-1;continue}if(-1===(l=bd(t,a-1))){s(o,_d(Bu(t.slice(i,a)))),o=!1,i=a+1;continue}}else;else{if(-1===(l=t.indexOf(h,a+1)))break;s(o,Bu(t.slice(i+1,l))),o=!1,i=(a=l)+1}else o=t.slice(i,a),i=a+1}return i<t.length&&(!1===o?s(t.slice(i)):s(o,_d(Bu(t.slice(i))))),Bu(n.join(\" \"))}},kd=Hu.FilterCSS,xd=wd.parseTag,Dd=wd.parseAttr;function Sd(t){return null==t}function Cd(t){(t=function(t){var e={};for(var i in t)e[i]=t[i];return e}(t||{})).stripIgnoreTag&&(t.onIgnoreTag&&console.error(\'Notes: cannot use these two options \"stripIgnoreTag\" and \"onIgnoreTag\" at the same time\'),t.onIgnoreTag=fd.onIgnoreTagStripAll),t.whiteList=t.whiteList||fd.whiteList,t.onTag=t.onTag||fd.onTag,t.onTagAttr=t.onTagAttr||fd.onTagAttr,t.onIgnoreTag=t.onIgnoreTag||fd.onIgnoreTag,t.onIgnoreTagAttr=t.onIgnoreTagAttr||fd.onIgnoreTagAttr,t.safeAttrValue=t.safeAttrValue||fd.safeAttrValue,t.escapeHtml=t.escapeHtml||fd.escapeHtml,this.options=t,!1===t.css?this.cssFilter=!1:(t.css=t.css||{},this.cssFilter=new kd(t.css))}Cd.prototype.process=function(t){if(!(t=(t=t||\"\").toString()))return\"\";var e=this.options,i=e.whiteList,n=e.onTag,o=e.onIgnoreTag,r=e.onTagAttr,s=e.onIgnoreTagAttr,a=e.safeAttrValue,l=e.escapeHtml,h=this.cssFilter;e.stripBlankChar&&(t=fd.stripBlankChar(t)),e.allowCommentTag||(t=fd.stripCommentTag(t));var u=!1;if(e.stripIgnoreTagBody){u=fd.StripTagBody(e.stripIgnoreTagBody,o);o=u.onIgnoreTag}var d=xd(t,(function(t,e,u,d,c){var p,f={sourcePosition:t,position:e,isClosing:c,isWhite:i.hasOwnProperty(u)};if(!Sd(p=n(u,d,f)))return p;if(f.isWhite){if(f.isClosing)return\"</\"+u+\">\";var m=function(t){var e=Wu(t);if(-1===e)return{html:\"\",closing:\"/\"===t[t.length-2]};var i=\"/\"===(t=Bu(t.slice(e+1,-1)))[t.length-1];return i&&(t=Bu(t.slice(0,-1))),{html:t,closing:i}}(d),v=i[u],g=Dd(m.html,(function(t,e){var i,n=-1!==zu(v,t);return Sd(i=r(u,t,e,n))?n?(e=a(u,t,e,h))?t+\'=\"\'+e+\'\"\':t:Sd(i=s(u,t,e,n))?void 0:i:i}));d=\"<\"+u;return g&&(d+=\" \"+g),m.closing&&(d+=\" /\"),d+=\">\"}return Sd(p=o(u,d,f))?l(d):p}),l);return u&&(d=u.remove(d)),d};var Td=Cd,Md=i((function(t,e){function i(t,e){return new Td(e).process(t)}for(var n in(e=t.exports=i).filterXSS=i,e.FilterXSS=Td,fd)e[n]=fd[n];for(var n in wd)e[n]=wd[n];\"undefined\"!=typeof window&&(window.filterXSS=t.exports),\"undefined\"!=typeof self&&\"undefined\"!=typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=t.exports)}));function Od(t,e){var i=so(t);if(en){var n=en(t);e&&(n=ir(n).call(n,(function(e){return rn(t,e).enumerable}))),i.push.apply(i,n)}return i}function Ed(t){for(var e=1;e<arguments.length;e++){var i,n=null!=arguments[e]?arguments[e]:{};if(e%2)ko(i=Od(Object(n),!0)).call(i,(function(e){mn(t,e,n[e])}));else if(an)ln(t,an(n));else{var o;ko(o=Od(Object(n))).call(o,(function(e){un(t,e,rn(n,e))}))}}return t}var Pd=/^\\/?Date\\((-?\\d+)/i,Ad=/^\\d+$/;function Ld(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 il(t)&&!isNaN(Date.parse(t))?o(t).valueOf():Number(t.valueOf());case\"string\":case\"String\":return String(t);case\"Date\":try{return Ld(t,\"Moment\").toDate()}catch(i){throw i instanceof TypeError?new TypeError(\"Cannot convert object of type \"+al(t)+\" to type \"+e):i}case\"Moment\":if(el(t))return o(t);if(t instanceof Date)return o(t.valueOf());if(o.isMoment(t))return o(t);if(il(t))return(i=Pd.exec(t))?o(Number(i[1])):(i=Ad.exec(t),o(i?Number(t):t));throw new TypeError(\"Cannot convert object of type \"+al(t)+\" to type \"+e);case\"ISODate\":if(el(t))return new Date(t);if(t instanceof Date)return t.toISOString();if(o.isMoment(t))return t.toDate().toISOString();if(il(t))return(i=Pd.exec(t))?new Date(Number(i[1])).toISOString():o(t).format();throw new Error(\"Cannot convert object of type \"+al(t)+\" to type ISODate\");case\"ASPDate\":if(el(t))return\"/Date(\"+t+\")/\";if(t instanceof Date||o.isMoment(t))return\"/Date(\"+t.valueOf()+\")/\";if(il(t))return\"/Date(\"+((i=Pd.exec(t))?new Date(Number(i[1])).valueOf():new Date(t).valueOf())+\")/\";throw new Error(\"Cannot convert object of type \"+al(t)+\" to type ASPDate\");default:throw new Error(\"Unknown type \".concat(e))}}}function Id(t){var e,i,n,o,r,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{start:\"Date\",end:\"Date\"},l=t._idProp,h=new Tu({fieldId:l}),u=oo(e=_u(t)).call(e,(function(t){var e;return ch(e=so(t)).call(e,(function(e,i){return e[i]=Ld(t[i],a[i]),e}),{})})).to(h);return u.all().start(),{add:function(){var e;return(e=t.getDataSet()).add.apply(e,arguments)},remove:function(){var e;return(e=t.getDataSet()).remove.apply(e,arguments)},update:function(){var e;return(e=t.getDataSet()).update.apply(e,arguments)},updateOnly:function(){var e;return(e=t.getDataSet()).updateOnly.apply(e,arguments)},clear:function(){var e;return(e=t.getDataSet()).clear.apply(e,arguments)},forEach:mo(i=ko(h)).call(i,h),get:mo(n=h.get).call(n,h),getIds:mo(o=h.getIds).call(o,h),off:mo(r=h.off).call(r,h),on:mo(s=h.on).call(s,h),get length(){return h.length},idProp:l,type:a,rawDS:t,coercedDS:h,dispose:function(){return u.stop()}}}var Nd=Ed(Ed({},Rl),{},{convert:Ld,xss:Md}),Fd=cr.trim,Rd=c.parseFloat,Yd=1/Rd(ar+\"-0\")!=-1/0?function(t){var e=Fd(String(t)),i=Rd(e);return 0===i&&\"-\"==e.charAt(0)?-0:i}:Rd;wt({global:!0,forced:parseFloat!=Yd},{parseFloat:Yd});var jd=vt.parseFloat,Hd=function(){function t(e,i){dn(this,t),this.options=null,this.props=null}return fn(t,[{key:\"setOptions\",value:function(t){t&&Nd.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}();wt({target:\"String\",proto:!0},{repeat:function(t){var e=String(l(this)),i=\"\",n=a(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 zd=In(\"String\").repeat,Gd=String.prototype,Bd=function(t){var e=t.repeat;return\"string\"==typeof t||t===Gd||t instanceof String&&e===Gd.repeat?zd:e};function Wd(t,e,i){if(i&&!Qn(i))return Wd(t,e,[i]);if(e.hiddenDates=[],i&&1==Qn(i)){for(var n,o=0;o<i.length;o++)if(void 0===Bd(i[o])){var r={};r.start=t(i[o].start).toDate().valueOf(),r.end=t(i[o].end).toDate().valueOf(),e.hiddenDates.push(r)}Vh(n=e.hiddenDates).call(n,(function(t,e){return t.start-e.start}))}}function Vd(t,e,i){if(i&&!Qn(i))return Vd(t,e,[i]);if(i&&void 0!==e.domProps.centerContainer.width){Wd(t,e,i);for(var n=t(e.range.start),o=t(e.range.end),r=(e.range.end-e.range.start)/e.domProps.centerContainer.width,s=0;s<i.length;s++)if(void 0!==Bd(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*r){var h=0,u=o.clone();switch(Bd(i[s])){case\"daily\":a.day()!=l.day()&&(h=1),a.dayOfYear(n.dayOfYear()),a.year(n.year()),a.subtract(7,\"days\"),l.dayOfYear(n.dayOfYear()),l.year(n.year()),l.subtract(7-h,\"days\"),u.add(1,\"weeks\");break;case\"weekly\":var d=l.diff(a,\"days\"),c=a.day();a.date(n.date()),a.month(n.month()),a.year(n.year()),l=a.clone(),a.day(c),l.day(c),l.add(d,\"days\"),a.subtract(1,\"weeks\"),l.subtract(1,\"weeks\"),u.add(1,\"weeks\");break;case\"monthly\":a.month()!=l.month()&&(h=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(h,\"months\"),u.add(1,\"months\");break;case\"yearly\":a.year()!=l.year()&&(h=1),a.year(n.year()),a.subtract(1,\"years\"),l.year(n.year()),l.subtract(1,\"years\"),l.add(h,\"years\"),u.add(1,\"years\");break;default:return void console.log(\"Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:\",Bd(i[s]))}for(;a<u;)switch(e.hiddenDates.push({start:a.valueOf(),end:l.valueOf()}),Bd(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:\",Bd(i[s]))}e.hiddenDates.push({start:a.valueOf(),end:l.valueOf()})}}Ud(e);var p=ic(e.range.start,e.hiddenDates),f=ic(e.range.end,e.hiddenDates),m=e.range.start,v=e.range.end;1==p.hidden&&(m=1==e.range.startToFront?p.startDate-1:p.endDate+1),1==f.hidden&&(v=1==e.range.endToFront?f.startDate-1:f.endDate+1),1!=p.hidden&&1!=f.hidden||e.range._applyRange(m,v)}}function Ud(t){for(var e,i=t.hiddenDates,n=[],o=0;o<i.length;o++)for(var r=0;r<i.length;r++)o!=r&&1!=i[r].remove&&1!=i[o].remove&&(i[r].start>=i[o].start&&i[r].end<=i[o].end?i[r].remove=!0:i[r].start>=i[o].start&&i[r].start<=i[o].end?(i[o].end=i[r].end,i[r].remove=!0):i[r].end>=i[o].start&&i[r].end<=i[o].end&&(i[o].start=i[r].start,i[r].remove=!0));for(o=0;o<i.length;o++)!0!==i[o].remove&&n.push(i[o]);t.hiddenDates=n,Vh(e=t.hiddenDates).call(e,(function(t,e){return t.start-e.start}))}function Xd(t,e,i){for(var n=!1,o=e.current.valueOf(),r=0;r<e.hiddenDates.length;r++){var s=e.hiddenDates[r].start,a=e.hiddenDates[r].end;if(o>=s&&o<a){n=!0;break}}if(1==n&&o<e._end.valueOf()&&o!=i){var l=t(i),h=t(a);l.year()!=h.year()?e.switchedYear=!0:l.month()!=h.month()?e.switchedMonth=!0:l.dayOfYear()!=h.dayOfYear()&&(e.switchedDay=!0),e.current=h}}function qd(t,e,i){var n;if(0==t.body.hiddenDates.length)return n=t.range.conversion(i),(e.valueOf()-n.offset)*n.scale;var o=ic(e,t.body.hiddenDates);1==o.hidden&&(e=o.startDate);var r=$d(t.body.hiddenDates,t.range.start,t.range.end);if(e<t.range.start){n=t.range.conversion(i,r);var s=Kd(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=Jd(t.options.moment,t.body.hiddenDates,a,e),n=t.range.conversion(i,r),(e.valueOf()-n.offset)*n.scale}return e=Jd(t.options.moment,t.body.hiddenDates,t.range,e),n=t.range.conversion(i,r),(e.valueOf()-n.offset)*n.scale}function Zd(t,e,i){if(0==t.body.hiddenDates.length){var n=t.range.conversion(i);return new Date(e/n.scale+n.offset)}var o=$d(t.body.hiddenDates,t.range.start,t.range.end),r=(t.range.end-t.range.start-o)*e/i,s=tc(t.body.hiddenDates,t.range,r);return new Date(s+r+t.range.start)}function $d(t,e,i){for(var n=0,o=0;o<t.length;o++){var r=t[o].start,s=t[o].end;r>=e&&s<i&&(n+=s-r)}return n}function Kd(t,e,i){for(var n=0,o=0;o<t.length;o++){var r=t[o].start,s=t[o].end;r>=e&&s<=i&&(n+=s-r)}return n}function Jd(t,e,i,n){return n=t(n).toDate().valueOf(),n-=Qd(t,e,i,n)}function Qd(t,e,i,n){var o=0;n=t(n).toDate().valueOf();for(var r=0;r<e.length;r++){var s=e[r].start,a=e[r].end;s>=i.start&&a<i.end&&n>=a&&(o+=a-s)}return o}function tc(t,e,i){for(var n=0,o=0,r=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(o+=a-r,r=l,o>=i)break;n+=l-a}}return n}function ec(t,e,i,n){var o=ic(e,t);return 1==o.hidden?i<0?1==n?o.startDate-(o.endDate-e)-1:o.startDate-1:1==n?o.endDate+(e-o.startDate)+1:o.endDate+1:e}function ic(t,e){for(var i=0;i<e.length;i++){var n=e[i].start,o=e[i].end;if(t>=n&&t<o)return{hidden:!0,startDate:n,endDate:o}}return{hidden:!1,startDate:n,endDate:o}}var nc=Object.freeze({__proto__:null,convertHiddenOptions:Wd,updateHiddenDates:Vd,removeDuplicates:Ud,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:Xd,toScreen:qd,toTime:Zd,getHiddenDurationBetween:$d,getHiddenDurationBeforeStart:Kd,correctTimeForHidden:Jd,getHiddenDurationBefore:Qd,getAccumulatedHiddenDuration:tc,snapAwayFromHidden:ec,getIsHidden:ic});function oc(t){var e=function(){if(\"undefined\"==typeof Reflect||!Kl)return!1;if(Kl.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Kl(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=rh(t);if(e){var o=rh(this).constructor;i=Kl(n,arguments,o)}else i=n.apply(this,arguments);return nh(this,i)}}var rc=function(t){ih(i,t);var e=oc(i);function i(t,n){var o,r,s,a,l,h,u,d;dn(this,i),d=e.call(this);var c=Eu().hours(0).minutes(0).seconds(0).milliseconds(0),p=c.clone().add(-3,\"days\").valueOf(),f=c.clone().add(3,\"days\").valueOf();return d.millisecondsPerPixelCache=void 0,void 0===n?(d.start=p,d.end=f):(d.start=n.start||p,d.end=n.end||f),d.rolling=!1,d.body=t,d.deltaDifference=0,d.scaleOffset=0,d.startToFront=!1,d.endToFront=!0,d.defaultOptions={rtl:!1,start:null,end:null,moment:Eu,direction:\"horizontal\",moveable:!0,zoomable:!0,min:null,max:null,zoomMin:10,zoomMax:31536e10,rollingMode:{follow:!1,offset:.5}},d.options=Nd.extend({},d.defaultOptions),d.props={touch:{}},d.animationTimer=null,d.body.emitter.on(\"panstart\",mo(o=d._onDragStart).call(o,Jl(d))),d.body.emitter.on(\"panmove\",mo(r=d._onDrag).call(r,Jl(d))),d.body.emitter.on(\"panend\",mo(s=d._onDragEnd).call(s,Jl(d))),d.body.emitter.on(\"mousewheel\",mo(a=d._onMouseWheel).call(a,Jl(d))),d.body.emitter.on(\"touch\",mo(l=d._onTouch).call(l,Jl(d))),d.body.emitter.on(\"pinch\",mo(h=d._onPinch).call(h,Jl(d))),d.body.dom.rollingModeBtn.addEventListener(\"click\",mo(u=d.startRolling).call(u,Jl(d))),d.setOptions(n),d}return fn(i,[{key:\"setOptions\",value:function(t){if(t){Nd.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=Nd.convert(new Date,\"Date\").valueOf(),o=t.options.rollingMode&&t.options.rollingMode.offset||.5,r=n-i*o,s=n+i*(1-o);t.setRange(r,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=Br(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,o){i||(i={}),!0!==i.byUser&&(i.byUser=!1);var r=this,s=null!=t?Nd.convert(t,\"Date\").valueOf():null,a=null!=e?Nd.convert(e,\"Date\").valueOf():null;if(this._cancelAnimation(),this.millisecondsPerPixelCache=void 0,i.animation){var l,h=this.start,u=this.end,d=\"object\"===Vn(i.animation)&&\"duration\"in i.animation?i.animation.duration:500,c=\"object\"===Vn(i.animation)&&\"easingFunction\"in i.animation?i.animation.easingFunction:\"easeInOutQuad\",p=Nd.easingFunctions[c];if(!p)throw new Error($n(l=\"Unknown easing function \".concat(jr(c),\". Choose from: \")).call(l,so(Nd.easingFunctions).join(\", \")));var f=ao(),m=!1;return function t(){if(!r.props.touch.dragging){var e=ao()-f,l=p(e/d),c=e>d,g=c||null===s?s:h+(s-h)*l,y=c||null===a?a:u+(a-u)*l;v=r._applyRange(g,y),Vd(r.options.moment,r.body,r.options.hiddenDates),m=m||v;var b={start:new Date(r.start),end:new Date(r.end),byUser:i.byUser,event:i.event};if(o&&o(l,v,c),v&&r.body.emitter.emit(\"rangechange\",b),c){if(m&&(r.body.emitter.emit(\"rangechanged\",b),n))return n()}else r.animationTimer=Br(t,20)}}()}var v=this._applyRange(s,a);if(Vd(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(r.timeoutID),r.timeoutID=Br((function(){r.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?Nd.convert(t,\"Date\").valueOf():this.start,o=null!=e?Nd.convert(e,\"Date\").valueOf():this.end,r=null!=this.options.max?Nd.convert(this.options.max,\"Date\").valueOf():null,s=null!=this.options.min?Nd.convert(this.options.min,\"Date\").valueOf():null;if(isNaN(n)||null===n)throw new Error(\'Invalid start \"\'.concat(t,\'\"\'));if(isNaN(o)||null===o)throw new Error(\'Invalid end \"\'.concat(e,\'\"\'));if(o<n&&(o=n),null!==s&&n<s&&(n+=i=s-n,o+=i,null!=r&&o>r&&(o=r)),null!==r&&o>r&&(n-=i=o-r,o-=i,null!=s&&n<s&&(n=s)),null!==this.options.zoomMin){var a=jd(this.options.zoomMin);if(a<0&&(a=0),o-n<a){this.end-this.start===a&&n>=this.start-.5&&o<=this.end?(n=this.start,o=this.end):(n-=(i=a-(o-n))/2,o+=i/2)}}if(null!==this.options.zoomMax){var l=jd(this.options.zoomMax);l<0&&(l=0),o-n>l&&(this.end-this.start===l&&n<this.start&&o>this.end?(n=this.start,o=this.end):(n+=(i=o-n-l)/2,o-=i/2))}var h=this.start!=n||this.end!=o;return n>=this.start&&n<=this.end||o>=this.start&&o<=this.end||this.start>=n&&this.start<=o||this.end>=n&&this.end<=o||this.body.emitter.emit(\"checkRangedItems\"),this.start=n,this.end=o,h}},{key:\"getRange\",value:function(){return{start:this.start,end:this.end}}},{key:\"conversion\",value:function(t,e){return i.conversion(this.start,this.end,t,e)}},{key:\"_onDragStart\",value:function(t){this.deltaDifference=0,this.previousDelta=0,this.options.moveable&&this._isInsideRange(t)&&this.props.touch.allowDragging&&(this.stopRolling(),this.props.touch.start=this.start,this.props.touch.end=this.end,this.props.touch.dragging=!0,this.body.dom.root&&(this.body.dom.root.style.cursor=\"move\"))}},{key:\"_onDrag\",value:function(t){if(t&&this.props.touch.dragging&&this.options.moveable&&this.props.touch.allowDragging){var e=this.options.direction;sc(e);var i=\"horizontal\"==e?t.deltaX:t.deltaY;i-=this.deltaDifference;var n=this.props.touch.end-this.props.touch.start;n-=$d(this.body.hiddenDates,this.start,this.end);var o,r=\"horizontal\"==e?this.body.domProps.center.width:this.body.domProps.center.height;o=this.options.rtl?i/r*n:-i/r*n;var s=this.props.touch.start+o,a=this.props.touch.end+o,l=ec(this.body.hiddenDates,s,this.previousDelta-i,!0),h=ec(this.body.hiddenDates,a,this.previousDelta-i,!0);if(l!=s||h!=a)return this.deltaDifference+=i,this.props.touch.start=l,this.props.touch.end=h,void this._onDrag(t);this.previousDelta=i,this._applyRange(s,a);var u=new Date(this.start),d=new Date(this.end);this.body.emitter.emit(\"rangechange\",{start:u,end:d,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,o=this.options.zoomFriction||5;if(i=e<0?1-e/o:1/(1+e/o),this.rolling){var r=this.options.rollingMode&&this.options.rollingMode.offset||.5;n=this.start+(this.end-this.start)*r}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,Nd.preventDefault(t)}},{key:\"_onPinch\",value:function(t){if(this.options.zoomable&&this.options.moveable){Nd.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=$d(this.body.hiddenDates,this.start,this.end),o=Qd(this.options.moment,this.body.hiddenDates,this,i),r=n-o,s=i-o+(this.props.touch.start-(i-o))*e,a=i+r+(this.props.touch.end-(i+r))*e;this.startToFront=1-e<=0,this.endToFront=e-1<=0;var l=ec(this.body.hiddenDates,s,1-e,!0),h=ec(this.body.hiddenDates,a,e-1,!0);l==s&&h==a||(this.props.touch.start=l,this.props.touch.end=h,this.scaleOffset=1-t.scale,s=l,a=h);var u={animation:!1,byUser:!0,event:t};this.setRange(s,a,u),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,o=this.body.util.toTime(n);return o>=this.start&&o<=this.end}},{key:\"_pointerToDate\",value:function(t){var e,i=this.options.direction;if(sc(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 o=$d(this.body.hiddenDates,this.start,this.end),r=Qd(this.options.moment,this.body.hiddenDates,this,e),s=o-r,a=e-r+(this.start-(e-r))*t,l=e+s+(this.end-(e+s))*t;this.startToFront=!(i>0),this.endToFront=!(-i>0);var h=ec(this.body.hiddenDates,a,i,!0),u=ec(this.body.hiddenDates,l,-i,!0);h==a&&u==l||(a=h,l=u);var d={animation:!1,byUser:!0,event:n};this.setRange(a,l,d),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}}}]),i}(Hd);function sc(t){if(\"horizontal\"!=t&&\"vertical\"!=t)throw new TypeError(\'Unknown direction \"\'.concat(t,\'\". Choose \"horizontal\" or \"vertical\".\'))}var ac,lc=vt.setInterval,hc=null;\"undefined\"!=typeof window?ac=function t(e,i){var n=i||{preventDefault:!1};if(e.Manager){var o=e,r=function(e,i){var r=Object.create(n);return i&&o.assign(r,i),t(new o(e,r),r)};return o.assign(r,o),r.Manager=function(e,i){var r=Object.create(n);return i&&o.assign(r,i),t(new o.Manager(e,r),r)},r}var s=Object.create(e),a=e.element;function l(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 i=t.srcEvent.stopPropagation.bind(t.srcEvent);\"function\"==typeof i&&(t.srcEvent.stopPropagation=function(){i(),t.stopPropagation()}),t.firstTarget=hc;for(var n=hc;n&&!e;){var o=n.hammer;if(o)for(var r,s=0;s<o.length;s++)if(r=o[s]._handlers[t.type])for(var a=0;a<r.length&&!e;a++)r[a](t);n=n.parentNode}}return a.hammer||(a.hammer=[]),a.hammer.push(s),e.on(\"hammer.input\",(function(t){!0!==n.preventDefault&&n.preventDefault!==t.pointerType||t.preventDefault(),t.isFirst&&(hc=t.target)})),s._handlers={},s.on=function(t,i){return l(t).forEach((function(t){var n=s._handlers[t];n||(s._handlers[t]=n=[],e.on(t,h)),n.push(i)})),s},s.off=function(t,i){return l(t).forEach((function(t){var n=s._handlers[t];n&&((n=i?n.filter((function(t){return t!==i})):[]).length>0?s._handlers[t]=n:(e.off(t,h),delete s._handlers[t]))})),s},s.emit=function(t,i){hc=i.target,e.emit(t,i)},s.destroy=function(){var t=e.element.hammer,i=t.indexOf(s);-1!==i&&t.splice(i,1),t.length||delete e.element.hammer,s._handlers={},e.destroy()},s}(window.Hammer||Na,{preventDefault:\"mouse\"}):ac=function(){return{on:t=function(){},off:t,destroy:t,emit:t,get:function(e){return{set:t}}};var t};var uc=ac;function dc(t,e){e.inputHandler=function(t){t.isFirst&&e(t)},t.on(\"hammer.input\",e.inputHandler)}var cc=function(){function t(e,i,n,o,r){dn(this,t),this.moment=r&&r.moment||Eu,this.options=r||{},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,Qn(o)?this.hiddenDates=o:this.hiddenDates=null!=o?[o]:[],this.format=t.FORMAT}return fn(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=Nd.deepExtend({},t.FORMAT);this.format=Nd.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()):ao(),this._end=null!=e?this.moment(e.valueOf()):ao(),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(ec(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,Xd(this.moment,this,t)}},{key:\"getCurrent\",value:function(){return this.current.clone()}},{key:\"setScale\",value:function(t){t&&\"string\"==typeof t.scale&&(this.scale=t.scale,this.step=t.step>0?t.step:1,this.autoScale=!1)}},{key:\"setAutoScale\",value:function(t){this.autoScale=t}},{key:\"setMinimumStep\",value:function(t){if(null!=t){var e=31104e6,i=2592e6,n=864e5,o=36e5,r=6e4,s=1e3;1e3*e>t&&(this.scale=\"year\",this.step=1e3),500*e>t&&(this.scale=\"year\",this.step=500),100*e>t&&(this.scale=\"year\",this.step=100),50*e>t&&(this.scale=\"year\",this.step=50),10*e>t&&(this.scale=\"year\",this.step=10),5*e>t&&(this.scale=\"year\",this.step=5),e>t&&(this.scale=\"year\",this.step=1),7776e6>t&&(this.scale=\"month\",this.step=3),i>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),n>t&&(this.scale=\"day\",this.step=1),432e5>t&&(this.scale=\"weekday\",this.step=1),144e5>t&&(this.scale=\"hour\",this.step=4),o>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),r>t&&(this.scale=\"minute\",this.step=1),15e3>t&&(this.scale=\"second\",this.step=15),1e4>t&&(this.scale=\"second\",this.step=10),5e3>t&&(this.scale=\"second\",this.step=5),s>t&&(this.scale=\"second\",this.step=1),200>t&&(this.scale=\"millisecond\",this.step=200),100>t&&(this.scale=\"millisecond\",this.step=100),50>t&&(this.scale=\"millisecond\",this.step=50),10>t&&(this.scale=\"millisecond\",this.step=10),5>t&&(this.scale=\"millisecond\",this.step=5),1>t&&(this.scale=\"millisecond\",this.step=1)}}},{key:\"isMajor\",value:function(){if(1==this.switchedYear)switch(this.scale){case\"year\":case\"month\":case\"week\":case\"weekday\":case\"day\":case\"hour\":case\"minute\":case\"second\":case\"millisecond\":return!0;default:return!1}else if(1==this.switchedMonth)switch(this.scale){case\"week\":case\"weekday\":case\"day\":case\"hour\":case\"minute\":case\"second\":case\"millisecond\":return!0;default:return!1}else if(1==this.switchedDay)switch(this.scale){case\"millisecond\":case\"second\":case\"minute\":case\"hour\":return!0;default:return!1}var t=this.moment(this.current);switch(this.scale){case\"millisecond\":return 0==t.milliseconds();case\"second\":return 0==t.seconds();case\"minute\":return 0==t.hours()&&0==t.minutes();case\"hour\":return 0==t.hours();case\"weekday\":case\"day\":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\"),o=this.step,r=[];function s(t){return t/o%2==0?\" vis-even\":\" vis-odd\"}function a(t){return t.isSame(ao(),\"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(ao(),\"week\")?\" vis-current-week\":\"\"}function h(t){return t.isSame(ao(),\"month\")?\" vis-current-month\":\"\"}switch(this.scale){case\"millisecond\":r.push(a(n)),r.push(s(n.milliseconds()));break;case\"second\":r.push(a(n)),r.push(s(n.seconds()));break;case\"minute\":r.push(a(n)),r.push(s(n.minutes()));break;case\"hour\":r.push($n(t=\"vis-h\".concat(n.hours())).call(t,4==this.step?\"-h\"+(n.hours()+4):\"\")),r.push(a(n)),r.push(s(n.hours()));break;case\"weekday\":r.push(\"vis-\".concat(n.format(\"dddd\").toLowerCase())),r.push(a(n)),r.push(l(n)),r.push(s(n.date()));break;case\"day\":r.push(\"vis-day\".concat(n.date())),r.push(\"vis-\".concat(n.format(\"MMMM\").toLowerCase())),r.push(a(n)),r.push(h(n)),r.push(this.step<=2?a(n):\"\"),r.push(this.step<=2?\"vis-\".concat(n.format(\"dddd\").toLowerCase()):\"\"),r.push(s(n.date()-1));break;case\"week\":r.push(\"vis-week\".concat(n.format(\"w\"))),r.push(l(n)),r.push(s(n.week()));break;case\"month\":r.push(\"vis-\".concat(n.format(\"MMMM\").toLowerCase())),r.push(h(n)),r.push(s(n.month()));break;case\"year\":r.push(\"vis-year\".concat(n.year())),r.push(function(t){return t.isSame(ao(),\"year\")?\" vis-current-year\":\"\"}(n)),r.push(s(n.year()))}return ir(r).call(r,String).join(\" \")}}],[{key:\"snap\",value:function(t,e,i){var n=Eu(t);if(\"year\"==e){var o=n.year()+Math.round(n.month()/12);n.year(Math.round(o/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 r=i>5?i/2:1;n.milliseconds(Math.round(n.milliseconds()/r)*r)}return n}}]),t}();function pc(t,e){void 0===e&&(e={});var i=e.insertAt;if(t&&\"undefined\"!=typeof document){var n=document.head||document.getElementsByTagName(\"head\")[0],o=document.createElement(\"style\");o.type=\"text/css\",\"top\"===i&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}cc.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:\"\"}};function fc(t){var e=function(){if(\"undefined\"==typeof Reflect||!Kl)return!1;if(Kl.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Kl(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=rh(t);if(e){var o=rh(this).constructor;i=Kl(n,arguments,o)}else i=n.apply(this,arguments);return nh(this,i)}}pc(\".vis-time-axis{position:relative;overflow:hidden}.vis-time-axis.vis-foreground{top:0;left:0;width:100%}.vis-time-axis.vis-background{position:absolute;top:0;left:0;width:100%;height:100%}.vis-time-axis .vis-text{position:absolute;color:#4d4d4d;padding:3px;overflow:hidden;box-sizing:border-box;white-space:nowrap}.vis-time-axis .vis-text.vis-measure{position:absolute;padding-left:0;padding-right:0;margin-left:0;margin-right:0;visibility:hidden}.vis-time-axis .vis-grid.vis-vertical{position:absolute;border-left:1px solid}.vis-time-axis .vis-grid.vis-vertical-rtl{position:absolute;border-right:1px solid}.vis-time-axis .vis-grid.vis-minor{border-color:#e5e5e5}.vis-time-axis .vis-grid.vis-major{border-color:#bfbfbf}\");var mc=function(t){ih(i,t);var e=fc(i);function i(t,n){var o;return dn(this,i),(o=e.call(this)).dom={foreground:null,lines:[],majorTexts:[],minorTexts:[],redundant:{lines:[],majorTexts:[],minorTexts:[]}},o.props={range:{start:0,end:0,minimumStep:0},lineTop:0},o.defaultOptions={orientation:{axis:\"bottom\"},showMinorLabels:!0,showMajorLabels:!0,showWeekScale:!1,maxMinorChars:7,format:Nd.extend({},cc.FORMAT),moment:Eu,timeAxis:null},o.options=Nd.extend({},o.defaultOptions),o.body=t,o._create(),o.setOptions(n),o}return fn(i,[{key:\"setOptions\",value:function(t){t&&(Nd.selectiveExtend([\"showMinorLabels\",\"showMajorLabels\",\"showWeekScale\",\"maxMinorChars\",\"hiddenDates\",\"timeAxis\",\"moment\",\"rtl\"],this.options,t),Nd.selectiveDeepExtend([\"format\"],this.options,t),\"orientation\"in t&&(\"string\"==typeof t.orientation?this.options.orientation.axis=t.orientation:\"object\"===Vn(t.orientation)&&\"axis\"in t.orientation&&(this.options.orientation.axis=t.orientation.axis)),\"locale\"in t&&(\"function\"==typeof Eu.locale?Eu.locale(t.locale):Eu.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,o=e.parentNode!==n;this._calculateCharSize();var r=this.options.showMinorLabels&&\"none\"!==this.options.orientation.axis,s=this.options.showMajorLabels&&\"none\"!==this.options.orientation.axis;t.minorLabelHeight=r?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()||o}},{key:\"_repaintLabels\",value:function(){var t=this.options.orientation.axis,e=Nd.convert(this.body.range.start,\"Number\"),i=Nd.convert(this.body.range.end,\"Number\"),n=this.body.util.toTime((this.props.minorCharWidth||10)*this.options.maxMinorChars).valueOf(),o=n-Qd(this.options.moment,this.body.hiddenDates,this.body.range,n);o-=this.body.util.toTime(0).valueOf();var r=new cc(new Date(e),new Date(i),o,this.body.hiddenDates,this.options);r.setMoment(this.options.moment),this.options.format&&r.setFormat(this.options.format),this.options.timeAxis&&r.setScale(this.options.timeAxis),this.step=r;var s,a,l,h,u,d,c=this.dom;c.redundant.lines=c.lines,c.redundant.majorTexts=c.majorTexts,c.redundant.minorTexts=c.minorTexts,c.lines=[],c.majorTexts=[],c.minorTexts=[];var p,f,m,v=0,g=void 0,y=0,b=1e3;for(r.start(),a=r.getCurrent(),h=this.body.util.toScreen(a);r.hasNext()&&y<b;){switch(y++,u=r.isMajor(),m=r.getClassName(),s=a,l=h,r.next(),a=r.getCurrent(),p=v,v=(h=this.body.util.toScreen(a))-l,r.scale){case\"week\":d=!0;break;default:d=v>=.4*p}if(this.options.showMinorLabels&&d){var _=this._repaintMinorText(l,r.getLabelMinor(s),t,m);_.style.width=\"\".concat(v,\"px\")}u&&this.options.showMajorLabels?(l>0&&(null==g&&(g=l),_=this._repaintMajorText(l,r.getLabelMajor(s),t,m)),f=this._repaintMajorLine(l,v,t,m)):d?f=this._repaintMinorLine(l,v,t,m):f&&(f.style.width=\"\".concat(gr(f.style.width)+v,\"px\"))}if(y!==b||vc||(console.warn(\"Something is wrong with the Timeline scale. Limited drawing of grid lines to \".concat(b,\" lines.\")),vc=!0),this.options.showMajorLabels){var w=this.body.util.toTime(0),k=r.getLabelMajor(w),x=k.length*(this.props.majorCharWidth||10)+10;(null==g||x<g)&&this._repaintMajorText(0,k,t,m)}ko(Nd).call(Nd,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 o=this.dom.redundant.minorTexts.shift();if(!o){var r=document.createTextNode(\"\");(o=document.createElement(\"div\")).appendChild(r),this.dom.foreground.appendChild(o)}this.dom.minorTexts.push(o),o.innerHTML=Nd.xss(e);var s=\"top\"==i?this.props.majorLabelHeight:0;return this._setXY(o,t,s),o.className=\"vis-text vis-minor \".concat(n),o}},{key:\"_repaintMajorText\",value:function(t,e,i,n){var o=this.dom.redundant.majorTexts.shift();if(!o){var r=document.createElement(\"div\");(o=document.createElement(\"div\")).appendChild(r),this.dom.foreground.appendChild(o)}o.childNodes[0].innerHTML=Nd.xss(e),o.className=\"vis-text vis-major \".concat(n);var s=\"top\"==i?0:this.props.minorLabelHeight;return this._setXY(o,t,s),this.dom.majorTexts.push(o),o}},{key:\"_setXY\",value:function(t,e,i){var n,o=this.options.rtl?-1*e:e;t.style.transform=$n(n=\"translate(\".concat(o,\"px, \")).call(n,i,\"px)\")}},{key:\"_repaintMinorLine\",value:function(t,e,i,n){var o,r=this.dom.redundant.lines.shift();r||(r=document.createElement(\"div\"),this.dom.background.appendChild(r)),this.dom.lines.push(r);var s=this.props;r.style.width=\"\".concat(e,\"px\"),r.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(r,l,a),r.className=$n(o=\"vis-grid \".concat(this.options.rtl?\"vis-vertical-rtl\":\"vis-vertical\",\" vis-minor \")).call(o,n),r}},{key:\"_repaintMajorLine\",value:function(t,e,i,n){var o,r=this.dom.redundant.lines.shift();r||(r=document.createElement(\"div\"),this.dom.background.appendChild(r)),this.dom.lines.push(r);var s=this.props;r.style.width=\"\".concat(e,\"px\"),r.style.height=\"\".concat(s.majorLineHeight,\"px\");var a=\"top\"==i?0:this.body.domProps.top.height,l=t-s.majorLineWidth/2;return this._setXY(r,l,a),r.className=$n(o=\"vis-grid \".concat(this.options.rtl?\"vis-vertical-rtl\":\"vis-vertical\",\" vis-major \")).call(o,n),r}},{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}}]),i}(Hd),vc=!1;function gc(t){var e,i=t&&t.preventDefault||!1,n=t&&t.container||window,o={},r={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){h(t,\"keydown\")},l=function(t){h(t,\"keyup\")},h=function(t,e){if(void 0!==r[e][t.keyCode]){for(var n=r[e][t.keyCode],o=0;o<n.length;o++)(void 0===n[o].shift||1==n[o].shift&&1==t.shiftKey||0==n[o].shift&&0==t.shiftKey)&&n[o].fn(t);1==i&&t.preventDefault()}};return o.bind=function(t,e,i){if(void 0===i&&(i=\"keydown\"),void 0===s[t])throw new Error(\"unsupported key: \"+t);void 0===r[i][s[t].code]&&(r[i][s[t].code]=[]),r[i][s[t].code].push({fn:e,shift:s[t].shift})},o.bindAll=function(t,e){for(var i in void 0===e&&(e=\"keydown\"),s)s.hasOwnProperty(i)&&o.bind(i,t,e)},o.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\"},o.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=[],o=r[i][s[t].code];if(void 0!==o)for(var a=0;a<o.length;a++)o[a].fn==e&&o[a].shift==s[t].shift||n.push(r[i][s[t].code][a]);r[i][s[t].code]=n}else r[i][s[t].code]=[]},o.reset=function(){r={keydown:{},keyup:{}}},o.destroy=function(){r={keydown:{},keyup:{}},n.removeEventListener(\"keydown\",a,!0),n.removeEventListener(\"keyup\",l,!0)},n.addEventListener(\"keydown\",a,!0),n.addEventListener(\"keyup\",l,!0),o}function yc(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=uc(this.dom.overlay),this.hammer.on(\"tap\",mo(e=this._onTapOverlay).call(e,this));var n=this,o=[\"tap\",\"doubletap\",\"press\",\"pinch\",\"pan\",\"panstart\",\"panmove\",\"panend\"];ko(o).call(o,(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=gc(),this.escListener=mo(i=this.deactivate).call(i,this)}pc(\".vis .overlay{position:absolute;top:0;left:0;width:100%;height:100%;z-index:10}.vis-active{box-shadow:0 0 10px #86d5f8}\"),Xr(yc.prototype),yc.current=null,yc.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},yc.prototype.activate=function(){var t;yc.current&&yc.current.deactivate(),yc.current=this,this.active=!0,this.dom.overlay.style.display=\"none\",Nd.addClassName(this.dom.container,\"vis-active\"),this.emit(\"change\"),this.emit(\"activate\"),mo(t=this.keycharm).call(t,\"esc\",this.escListener)},yc.prototype.deactivate=function(){yc.current===this&&(yc.current=null),this.active=!1,this.dom.overlay.style.display=\"\",Nd.removeClassName(this.dom.container,\"vis-active\"),this.keycharm.unbind(\"esc\",this.escListener),this.emit(\"change\"),this.emit(\"deactivate\")},yc.prototype._onTapOverlay=function(t){this.activate(),t.stopPropagation()};var bc={current:\"current\",time:\"time\",deleteSelected:\"Delete selected\"},_c={current:\"attuale\",time:\"tempo\",deleteSelected:\"Cancella la selezione\"},wc={current:\"huidige\",time:\"tijd\",deleteSelected:\"Selectie verwijderen\"},kc={current:\"Aktuelle\",time:\"Zeit\",deleteSelected:\"L\u{f6}sche Auswahl\"},xc={current:\"actuel\",time:\"heure\",deleteSelected:\"Effacer la selection\"},Dc={current:\"corriente\",time:\"hora\",deleteSelected:\"Eliminar selecci\u{f3}n\"},Sc={current:\"\u{43f}\u{43e}\u{442}\u{43e}\u{447}\u{43d}\u{438}\u{439}\",time:\"\u{447}\u{430}\u{441}\",deleteSelected:\"\u{412}\u{438}\u{434}\u{430}\u{43b}\u{438}\u{442}\u{438} \u{43e}\u{431}\u{440}\u{430}\u{43d}\u{435}\"},Cc={current:\"\u{442}\u{435}\u{43a}\u{443}\u{449}\u{435}\u{435}\",time:\"\u{432}\u{440}\u{435}\u{43c}\u{44f}\",deleteSelected:\"\u{423}\u{434}\u{430}\u{43b}\u{438}\u{442}\u{44c} \u{432}\u{44b}\u{431}\u{440}\u{430}\u{43d}\u{43d}\u{43e}\u{435}\"},Tc={current:\"aktualny\",time:\"czas\",deleteSelected:\"Usu\u{144} wybrane\"},Mc={current:\"atual\",time:\"data\",deleteSelected:\"Apagar selecionado\"},Oc={current:\"\u{73fe}\u{5728}\",time:\"\u{6642}\u{523b}\",deleteSelected:\"\u{9078}\u{629e}\u{3055}\u{308c}\u{305f}\u{3082}\u{306e}\u{3092}\u{524a}\u{9664}\"},Ec={current:\"nuvarande\",time:\"tid\",deleteSelected:\"Radera valda\"},Pc={current:\"n\u{e5}v\u{e6}rende\",time:\"tid\",deleteSelected:\"Slett valgte\"},Ac={en:bc,en_EN:bc,en_US:bc,it:_c,it_IT:_c,it_CH:_c,nl:wc,nl_NL:wc,nl_BE:wc,de:kc,de_DE:kc,fr:xc,fr_FR:xc,fr_CA:xc,fr_BE:xc,es:Dc,es_ES:Dc,uk:Sc,uk_UA:Sc,ru:Cc,ru_RU:Cc,pl:Tc,pl_PL:Tc,pt:Mc,pt_BR:Mc,pt_PT:Mc,ja:Oc,ja_JP:Oc,sv:Ec,sv_SE:Ec,nb:Pc,nn:Pc,nb_NO:Pc,nn_NO:Pc};function Lc(t){var e=function(){if(\"undefined\"==typeof Reflect||!Kl)return!1;if(Kl.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Kl(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=rh(t);if(e){var o=rh(this).constructor;i=Kl(n,arguments,o)}else i=n.apply(this,arguments);return nh(this,i)}}pc(\".vis-custom-time{background-color:#6e94ff;width:2px;cursor:move;z-index:1}.vis-custom-time>.vis-custom-time-marker{background-color:inherit;color:#fff;font-size:12px;white-space:nowrap;padding:3px 5px;top:0;cursor:auto;z-index:inherit}\");var Ic=function(t){ih(i,t);var e=Lc(i);function i(t,n){var o,r;dn(this,i),(r=e.call(this)).body=t,r.defaultOptions={moment:Eu,locales:Ac,locale:\"en\",id:void 0,title:void 0},r.options=Nd.extend({},r.defaultOptions),r.setOptions(n),r.options.locales=Nd.extend({},Ac,r.options.locales);var s=r.defaultOptions.locales[r.defaultOptions.locale];return ko(o=so(r.options.locales)).call(o,(function(t){r.options.locales[t]=Nd.extend({},s,r.options.locales[t])})),n&&null!=n.time?r.customTime=n.time:r.customTime=new Date,r.eventParams={},r._create(),r}return fn(i,[{key:\"setOptions\",value:function(t){t&&Nd.selectiveExtend([\"moment\",\"locale\",\"locales\",\"id\",\"title\",\"rtl\",\"snap\"],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 o=document.createElement(\"div\");function r(t){this.body.range._onMouseWheel(t)}o.style.position=\"relative\",o.style.top=\"0px\",this.options.rtl?o.style.right=\"-10px\":o.style.left=\"-10px\",o.style.height=\"100%\",o.style.width=\"20px\",o.addEventListener?(o.addEventListener(\"mousewheel\",mo(r).call(r,this),!1),o.addEventListener(\"DOMMouseScroll\",mo(r).call(r,this),!1)):o.attachEvent(\"onmousewheel\",mo(r).call(r,this)),n.appendChild(o),this.hammer=new uc(o),this.hammer.on(\"panstart\",mo(t=this._onDragStart).call(t,this)),this.hammer.on(\"panmove\",mo(e=this._onDrag).call(e,this)),this.hammer.on(\"panend\",mo(i=this._onDragEnd).call(i,this)),this.hammer.get(\"pan\").set({threshold:5,direction:uc.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,o=this.options.title;void 0===o?o=(o=$n(n=\"\".concat(i.time,\": \")).call(n,this.options.moment(this.customTime).format(\"dddd, MMMM Do YYYY, H:mm:ss\"))).charAt(0).toUpperCase()+o.substring(1):\"function\"==typeof o&&(o=o.call(this,this.customTime));return this.options.rtl?this.bar.style.right=\"\".concat(e,\"px\"):this.bar.style.left=\"\".concat(e,\"px\"),this.bar.title=o,!1}},{key:\"hide\",value:function(){this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar)}},{key:\"setCustomTime\",value:function(t){this.customTime=Nd.convert(t,\"Date\"),this.redraw()}},{key:\"getCustomTime\",value:function(){return new Date(this.customTime.valueOf())}},{key:\"setCustomMarker\",value:function(t,e){var i,n,o=document.createElement(\"div\");(o.className=\"vis-custom-time-marker\",o.innerHTML=Nd.xss(t),o.style.position=\"absolute\",e)&&(o.setAttribute(\"contenteditable\",\"true\"),o.addEventListener(\"pointerdown\",(function(){o.focus()})),o.addEventListener(\"input\",mo(i=this._onMarkerChange).call(i,this)),o.title=t,o.addEventListener(\"blur\",mo(n=function(t){this.title!=t.target.innerHTML&&(this._onMarkerChanged(t),this.title=t.target.innerHTML)}).call(n,this)));this.bar.appendChild(o)}},{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),o=this.body.util.getScale(),r=this.body.util.getStep(),s=this.options.snap,a=s?s(n,o,r):n;this.setCustomTime(a),this.body.emitter.emit(\"timechange\",{id:this.options.id,time:new Date(this.customTime.valueOf()),event:t}),t.stopPropagation()}}},{key:\"_onDragEnd\",value:function(t){this.eventParams.dragging&&(this.body.emitter.emit(\"timechanged\",{id:this.options.id,time:new Date(this.customTime.valueOf()),event:t}),t.stopPropagation())}},{key:\"_onMarkerChange\",value:function(t){this.body.emitter.emit(\"markerchange\",{id:this.options.id,title:t.target.innerHTML,event:t}),t.stopPropagation()}},{key:\"_onMarkerChanged\",value:function(t){this.body.emitter.emit(\"markerchanged\",{id:this.options.id,title:t.target.innerHTML,event:t}),t.stopPropagation()}}],[{key:\"customTimeFromTarget\",value:function(t){for(var e=t.target;e;){if(e.hasOwnProperty(\"custom-time\"))return e[\"custom-time\"];e=e.parentNode}return null}}]),i}(Hd);pc(\"\");pc(\'.vis-current-time{background-color:#ff7f6e;width:2px;z-index:1;pointer-events:none}.vis-rolling-mode-btn{height:40px;width:40px;position:absolute;top:7px;right:20px;border-radius:50%;font-size:28px;cursor:pointer;opacity:.8;color:#fff;font-weight:700;text-align:center;background:#3876c2}.vis-rolling-mode-btn:before{content:\"\\\\26F6\"}.vis-rolling-mode-btn:hover{opacity:1}\');pc(\".vis-panel{position:absolute;padding:0;margin:0;box-sizing:border-box}.vis-panel.vis-bottom,.vis-panel.vis-center,.vis-panel.vis-left,.vis-panel.vis-right,.vis-panel.vis-top{border:1px #bfbfbf}.vis-panel.vis-center,.vis-panel.vis-left,.vis-panel.vis-right{border-top-style:solid;border-bottom-style:solid;overflow:hidden}.vis-left.vis-panel.vis-vertical-scroll,.vis-right.vis-panel.vis-vertical-scroll{height:100%;overflow-x:hidden;overflow-y:scroll}.vis-left.vis-panel.vis-vertical-scroll{direction:rtl}.vis-left.vis-panel.vis-vertical-scroll .vis-content,.vis-right.vis-panel.vis-vertical-scroll{direction:ltr}.vis-right.vis-panel.vis-vertical-scroll .vis-content{direction:rtl}.vis-panel.vis-bottom,.vis-panel.vis-center,.vis-panel.vis-top{border-left-style:solid;border-right-style:solid}.vis-background{overflow:hidden}.vis-panel>.vis-content{position:relative}.vis-panel .vis-shadow{position:absolute;width:100%;height:1px;box-shadow:0 0 10px rgba(0,0,0,.8)}.vis-panel .vis-shadow.vis-top{top:-1px;left:0}.vis-panel .vis-shadow.vis-bottom{bottom:-1px;left:0}\");pc(\".vis-graph-group0{fill:#4f81bd;fill-opacity:0;stroke-width:2px;stroke:#4f81bd}.vis-graph-group1{fill:#f79646;fill-opacity:0;stroke-width:2px;stroke:#f79646}.vis-graph-group2{fill:#8c51cf;fill-opacity:0;stroke-width:2px;stroke:#8c51cf}.vis-graph-group3{fill:#75c841;fill-opacity:0;stroke-width:2px;stroke:#75c841}.vis-graph-group4{fill:#ff0100;fill-opacity:0;stroke-width:2px;stroke:#ff0100}.vis-graph-group5{fill:#37d8e6;fill-opacity:0;stroke-width:2px;stroke:#37d8e6}.vis-graph-group6{fill:#042662;fill-opacity:0;stroke-width:2px;stroke:#042662}.vis-graph-group7{fill:#00ff26;fill-opacity:0;stroke-width:2px;stroke:#00ff26}.vis-graph-group8{fill:#f0f;fill-opacity:0;stroke-width:2px;stroke:#f0f}.vis-graph-group9{fill:#8f3938;fill-opacity:0;stroke-width:2px;stroke:#8f3938}.vis-timeline .vis-fill{fill-opacity:.1;stroke:none}.vis-timeline .vis-bar{fill-opacity:.5;stroke-width:1px}.vis-timeline .vis-point{stroke-width:2px;fill-opacity:1}.vis-timeline .vis-legend-background{stroke-width:1px;fill-opacity:.9;fill:#fff;stroke:#c2c2c2}.vis-timeline .vis-outline{stroke-width:1px;fill-opacity:1;fill:#fff;stroke:#e5e5e5}.vis-timeline .vis-icon-fill{fill-opacity:.3;stroke:none}\");pc(\".vis-timeline{position:relative;border:1px solid #bfbfbf;overflow:hidden;padding:0;margin:0;box-sizing:border-box}.vis-loading-screen{width:100%;height:100%;position:absolute;top:0;left:0}\");pc(\".vis [class*=span]{min-height:0;width:auto}\");var Nc=function(){function t(){dn(this,t)}return fn(t,[{key:\"_create\",value:function(t){var e,i,n,o=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===o.initialDrawDone&&o._redraw()})),this.on(\"rangechanged\",(function(){o.initialRangeChangeDone||(o.initialRangeChangeDone=!0)})),this.on(\"touch\",mo(e=this._onTouch).call(e,this)),this.on(\"panmove\",mo(i=this._onDrag).call(i,this));var r=this;this._origRedraw=mo(n=this._redraw).call(n,this),this._redraw=Nd.throttle(this._origRedraw),this.on(\"_change\",(function(t){r.itemSet&&r.itemSet.initialItemSetDrawn&&t&&1==t.queue?r._redraw():r._origRedraw()})),this.hammer=new uc(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:uc.DIRECTION_ALL}),this.timelineListeners={};var a,l,h=[\"tap\",\"doubletap\",\"press\",\"pinch\",\"pan\",\"panstart\",\"panmove\",\"panend\"];function u(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,o=n+i;if(this.isActive())this._setScrollTop(o)!==n&&(this._redraw(),this.emit(\"scroll\",t),t.preventDefault())}else if(this.options.horizontalScroll){var r=(Math.abs(e)>=Math.abs(i)?e:i)/120*(this.range.end-this.range.start)/20,s=this.range.start+r,a=this.range.end+r,l={animation:!1,byUser:!0,event:t};this.range.setRange(s,a,l),t.preventDefault()}}ko(h).call(h,(function(t){var e=function(e){r.isActive()&&r.emit(t,e)};r.hammer.on(t,e),r.timelineListeners[t]=e})),dc(this.hammer,(function(t){r.emit(\"touch\",t)})),a=this.hammer,(l=function(t){r.emit(\"release\",t)}).inputHandler=function(t){t.isFinal&&l(t)},a.on(\"hammer.input\",l.inputHandler);var d=\"onwheel\"in document.createElement(\"div\")?\"wheel\":void 0!==document.onmousewheel?\"mousewheel\":this.dom.centerContainer.addEventListener?\"DOMMouseScroll\":\"onmousewheel\";function c(t){if(r.options.verticalScroll&&(t.preventDefault(),r.isActive())){var e=-t.target.scrollTop;r._setScrollTop(e),r._redraw(),r.emit(\"scrollSide\",t)}}this.dom.top.addEventListener,this.dom.bottom.addEventListener,this.dom.centerContainer.addEventListener(d,mo(u).call(u,this),!1),this.dom.top.addEventListener(d,mo(u).call(u,this),!1),this.dom.bottom.addEventListener(d,mo(u).call(u,this),!1),this.dom.left.parentNode.addEventListener(\"scroll\",mo(c).call(c,this)),this.dom.right.parentNode.addEventListener(\"scroll\",mo(c).call(c,this));var p=!1;function f(t){var e;if(t.preventDefault&&(r.emit(\"dragover\",r.getEventProperties(t)),t.preventDefault()),Sr(e=t.target.className).call(e,\"timeline\")>-1&&!p)return t.dataTransfer.dropEffect=\"move\",p=!0,!1}function m(t){t.preventDefault&&t.preventDefault(),t.stopPropagation&&t.stopPropagation();try{var e=JSON.parse(t.dataTransfer.getData(\"text\"));if(!e||!e.content)return}catch(t){return!1}return p=!1,t.center={x:t.clientX,y:t.clientY},\"item\"!==e.target?r.itemSet._onAddItem(t):r.itemSet._onDropObjectOnItem(t),r.emit(\"drop\",r.getEventProperties(t)),!1}if(this.dom.center.addEventListener(\"dragover\",mo(f).call(f,this),!1),this.dom.center.addEventListener(\"drop\",mo(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(Nd.selectiveExtend([\"width\",\"height\",\"minHeight\",\"maxHeight\",\"autoResize\",\"start\",\"end\",\"clickToUse\",\"dataAttributes\",\"hiddenDates\",\"locale\",\"locales\",\"moment\",\"preferZoom\",\"rtl\",\"zoomKey\",\"horizontalScroll\",\"verticalScroll\",\"longSelectPressTime\",\"snap\"],this.options,t),this.dom.rollingModeBtn.style.visibility=\"hidden\",this.options.rtl&&(this.dom.container.style.direction=\"rtl\",this.dom.backgroundVertical.className=\"vis-panel vis-background vis-vertical-rtl\"),this.options.verticalScroll&&(this.options.rtl?this.dom.rightContainer.className=\"vis-panel vis-right vis-vertical-scroll\":this.dom.leftContainer.className=\"vis-panel vis-left vis-vertical-scroll\"),\"object\"!==Vn(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\"===Vn(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 mc(this.body);i.setOptions=function(t){var e=t?Nd.extend({},t):{};e.orientation=\"top\",mc.prototype.setOptions.call(i,e)},this.components.push(i)}}else if(this.timeAxis2){var n,o,r=Sr(n=this.components).call(n,this.timeAxis2);if(-1!==r)No(o=this.components).call(o,r,1);this.timeAxis2.destroy(),this.timeAxis2=null}\"function\"==typeof t.drawPoints&&(t.drawPoints={onRender:t.drawPoints}),\"hiddenDates\"in this.options&&Wd(this.options.moment,this.body,this.options.hiddenDates),\"clickToUse\"in t&&(t.clickToUse?this.activator||(this.activator=new yc(this.dom.root)):this.activator&&(this.activator.destroy(),delete this.activator)),this._initAutoResize()}if(ko(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=Nd.deepExtend({},this.options);ko(s=this.components).call(s,(function(t){Nd.deepExtend(a,t.options)})),this.configurator.setModuleOptions({global:a})}this._redraw()}},{key:\"isActive\",value:function(){return!this.activator||this.activator.active}},{key:\"destroy\",value:function(){var t;for(var e in this.setItems(null),this.setGroups(null),this.off(),this._stopAutoResize(),this.dom.root.parentNode&&this.dom.root.parentNode.removeChild(this.dom.root),this.dom=null,this.activator&&(this.activator.destroy(),delete this.activator),this.timelineListeners)this.timelineListeners.hasOwnProperty(e)&&delete this.timelineListeners[e];this.timelineListeners=null,this.hammer&&this.hammer.destroy(),this.hammer=null,ko(t=this.components).call(t,(function(t){return t.destroy()})),this.body=null}},{key:\"setCustomTime\",value:function(t,e){var i,n=ir(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(jr(e)));n.length>0&&n[0].setCustomTime(t)}},{key:\"getCustomTime\",value:function(t){var e,i=ir(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(jr(t)));return i[0].getCustomTime()}},{key:\"setCustomTimeMarker\",value:function(t,e,i){var n,o=ir(n=this.customTimes).call(n,(function(t){return t.options.id===e}));if(0===o.length)throw new Error(\"No custom time bar found with id \".concat(jr(e)));o.length>0&&o[0].setCustomMarker(t,i)}},{key:\"setCustomTimeTitle\",value:function(t,e){var i,n=ir(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(jr(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?Nd.convert(t,\"Date\"):new Date;if($h(i=this.customTimes).call(i,(function(t){return t.options.id===e})))throw new Error(\"A custom time with id \".concat(jr(e),\" already exists\"));var o=new Ic(this.body,Nd.extend({},this.options,{time:n,id:e,snap:this.itemSet?this.itemSet.options.snap:this.options.snap}));return this.customTimes.push(o),this.components.push(o),this._redraw(),e}},{key:\"removeCustomTime\",value:function(t){var e,i=this,n=ir(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(jr(t)));ko(n).call(n,(function(t){var e,n,o,r;No(e=i.customTimes).call(e,Sr(n=i.customTimes).call(n,t),1),No(o=i.components).call(o,Sr(r=i.components).call(r,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,o=new Date(i.min.valueOf()-.01*n),r=new Date(i.max.valueOf()+.01*n),s=!t||void 0===t.animation||t.animation;this.range.setRange(o,r,{animation:s},e)}}},{key:\"getDataRange\",value:function(){throw new Error(\"Cannot invoke abstract method getDataRange\")}},{key:\"setWindow\",value:function(t,e,i,n){var o,r;\"function\"==typeof arguments[2]&&(n=arguments[2],i={}),1==arguments.length?(o=void 0===(r=arguments[0]).animation||r.animation,this.range.setRange(r.start,r.end,{animation:o})):2==arguments.length&&\"function\"==typeof arguments[1]?(n=arguments[1],o=void 0===(r=arguments[0]).animation||r.animation,this.range.setRange(r.start,r.end,{animation:o},n)):(o=!i||void 0===i.animation||i.animation,this.range.setRange(t,e,{animation:o},n))}},{key:\"moveTo\",value:function(t,e,i){\"function\"==typeof arguments[1]&&(i=arguments[1],e={});var n=this.range.end-this.range.start,o=Nd.convert(t,\"Date\").valueOf(),r=o-n/2,s=o+n/2,a=!e||void 0===e.animation||e.animation;this.range.setRange(r,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(),o=n.start.valueOf(),r=n.end.valueOf(),s=r-o,a=s/(1+t),l=(s-a)/2,h=o+l,u=r-l;this.setWindow(h,u,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(),o=n.start.valueOf(),r=n.end.valueOf(),s=r-o,a=o-s*t/2,l=r+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,o=this.props;Vd(this.options.moment,this.body,this.options.hiddenDates),\"top\"==n.orientation?(Nd.addClassName(e.root,\"vis-top\"),Nd.removeClassName(e.root,\"vis-bottom\")):(Nd.removeClassName(e.root,\"vis-top\"),Nd.addClassName(e.root,\"vis-bottom\")),n.rtl?(Nd.addClassName(e.root,\"vis-rtl\"),Nd.removeClassName(e.root,\"vis-ltr\")):(Nd.addClassName(e.root,\"vis-ltr\"),Nd.removeClassName(e.root,\"vis-rtl\")),e.root.style.maxHeight=Nd.option.asSize(n.maxHeight,\"\"),e.root.style.minHeight=Nd.option.asSize(n.minHeight,\"\"),e.root.style.width=Nd.option.asSize(n.width,\"\");var r=e.root.offsetWidth;o.border.left=1,o.border.right=1,o.border.top=1,o.border.bottom=1,o.center.height=e.center.offsetHeight,o.left.height=e.left.offsetHeight,o.right.height=e.right.offsetHeight,o.top.height=e.top.clientHeight||-o.border.top,o.bottom.height=Math.round(e.bottom.getBoundingClientRect().height)||e.bottom.clientHeight||-o.border.bottom;var s=Math.max(o.left.height,o.center.height,o.right.height),a=o.top.height+s+o.bottom.height+o.border.top+o.border.bottom;e.root.style.height=Nd.option.asSize(n.height,\"\".concat(a,\"px\")),o.root.height=e.root.offsetHeight,o.background.height=o.root.height;var l=o.root.height-o.top.height-o.bottom.height;o.centerContainer.height=l,o.leftContainer.height=l,o.rightContainer.height=o.leftContainer.height,o.root.width=r,o.background.width=o.root.width,this.initialDrawDone||(o.scrollbarWidth=Nd.getScrollBarWidth());var h=e.leftContainer.clientWidth,u=e.rightContainer.clientWidth;n.verticalScroll?n.rtl?(o.left.width=h||-o.border.left,o.right.width=u+o.scrollbarWidth||-o.border.right):(o.left.width=h+o.scrollbarWidth||-o.border.left,o.right.width=u||-o.border.right):(o.left.width=h||-o.border.left,o.right.width=u||-o.border.right),this._setDOM();var d=this._updateScrollTop();\"top\"!=n.orientation.item&&(d+=Math.max(o.centerContainer.height-o.center.height-o.border.top-o.border.bottom,0)),e.center.style.transform=\"translateY(\".concat(d,\"px)\");var c=0==o.scrollTop?\"hidden\":\"\",p=o.scrollTop==o.scrollTopMin?\"hidden\":\"\";e.shadowTop.style.visibility=c,e.shadowBottom.style.visibility=p,e.shadowTopLeft.style.visibility=c,e.shadowBottomLeft.style.visibility=p,e.shadowTopRight.style.visibility=c,e.shadowBottomRight.style.visibility=p,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||o.center.height<o.centerContainer.height)&&(e.left.style.top=\"\".concat(d,\"px\"),e.right.style.top=\"\".concat(d,\"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|$)\"),\" \"),o.left.width=h||-o.border.left,o.right.width=u||-o.border.right,this._setDOM());var f=o.center.height>o.centerContainer.height;this.hammer.get(\"pan\").set({direction:f?uc.DIRECTION_ALL:uc.DIRECTION_HORIZONTAL}),this.hammer.get(\"press\").set({time:this.options.longSelectPressTime}),ko(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 Zd(this,t,this.props.center.width)}},{key:\"_toGlobalTime\",value:function(t){return Zd(this,t,this.props.root.width)}},{key:\"_toScreen\",value:function(t){return qd(this,t,this.props.center.width)}},{key:\"_toGlobalScreen\",value:function(t){return qd(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=Nd.getScrollBarWidth(),t.body.emitter.emit(\"_change\"))}}else t._stopAutoResize()},Nd.addEventListener(window,\"resize\",this._onResize),t.dom.root&&(t.props.lastWidth=t.dom.root.offsetWidth,t.props.lastHeight=t.dom.root.offsetHeight),this.watchTimer=lc(this._onResize,1e3)}},{key:\"_stopAutoResize\",value:function(){this.watchTimer&&(clearInterval(this.watchTimer),this.watchTimer=void 0),this._onResize&&(Nd.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.border.top-this.props.border.bottom-this.props.center.height,0);return t!=this.props.scrollTopMin&&(\"top\"!=this.options.orientation.item&&(this.props.scrollTop+=t-this.props.scrollTopMin),this.props.scrollTopMin=t),this.props.scrollTop>0&&(this.props.scrollTop=0),this.props.scrollTop<t&&(this.props.scrollTop=t),this.options.verticalScroll&&(this.dom.left.parentNode.scrollTop=-this.props.scrollTop,this.dom.right.parentNode.scrollTop=-this.props.scrollTop),this.props.scrollTop}},{key:\"_getScrollTop\",value:function(){return this.props.scrollTop}},{key:\"_createConfigurator\",value:function(){throw new Error(\"Cannot invoke abstract method _createConfigurator\")}}]),t}();function Fc(t){var e=function(){if(\"undefined\"==typeof Reflect||!Kl)return!1;if(Kl.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Kl(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=rh(t);if(e){var o=rh(this).constructor;i=Kl(n,arguments,o)}else i=n.apply(this,arguments);return nh(this,i)}}Xr(Nc.prototype);var Rc=function(t){ih(i,t);var e=Fc(i);function i(t,n){var o,r;dn(this,i),(r=e.call(this)).body=t,r.defaultOptions={rtl:!1,showCurrentTime:!0,alignCurrentTime:void 0,moment:Eu,locales:Ac,locale:\"en\"},r.options=Nd.extend({},r.defaultOptions),r.setOptions(n),r.options.locales=Nd.extend({},Ac,r.options.locales);var s=r.defaultOptions.locales[r.defaultOptions.locale];return ko(o=so(r.options.locales)).call(o,(function(t){r.options.locales[t]=Nd.extend({},s,r.options.locales[t])})),r.offset=0,r._create(),r}return fn(i,[{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&&Nd.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(ao()+this.offset);this.options.alignCurrentTime&&(n=n.startOf(this.options.alignCurrentTime));var o=this.body.util.toScreen(n),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);var s=$n(t=$n(e=\"\".concat(r.current,\" \")).call(e,r.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*o,\"px)\"):this.bar.style.transform=\"translateX(\".concat(o,\"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=Br(e,i)}()}},{key:\"stop\",value:function(){void 0!==this.currentTimeTimer&&(clearTimeout(this.currentTimeTimer),delete this.currentTimeTimer)}},{key:\"setCurrentTime\",value:function(t){var e=Nd.convert(t,\"Date\").valueOf(),i=ao();this.offset=e-i,this.redraw()}},{key:\"getCurrentTime\",value:function(){return new Date(ao()+this.offset)}}]),i}(Hd),Yc=Di.find,jc=\"find\",Hc=!0;jc in[]&&Array(1).find((function(){Hc=!1})),wt({target:\"Array\",proto:!0,forced:Hc},{find:function(t){return Yc(this,t,arguments.length>1?arguments[1]:void 0)}});var zc=In(\"Array\").find,Gc=Array.prototype,Bc=function(t){var e=t.find;return t===Gc||t instanceof Array&&e===Gc.find?zc:e},Wc=.001;function Vc(t){Vh(t).call(t,(function(t,e){return t.data.start-e.data.start}))}function Uc(t){Vh(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 Xc(t,e,i,n){if(i)for(var o=0;o<t.length;o++)t[o].top=null;for(o=0;o<t.length;o++){var r=t[o];if(r.stack&&null===r.top){r.top=e.axis;var s=!1;do{for(var a=null,l=0,h=t.length;l<h;l++){var u=t[l];if(s=n()||!1)return!0;if(null!==u.top&&u!==r&&u.stack&&Jc(r,u,e.item,u.options.rtl)){a=u;break}}null!=a&&(r.top=a.top+a.height+e.item.vertical)}while(a)}}return s}function qc(t,e,i){for(var n=0;n<t.length;n++)t[n].top=null;var o=i.height;for(n=0;n<t.length;n++){var r=t[n];if(r.stack&&null===r.top){r.top=r.baseTop;do{for(var s=null,a=0,l=t.length;a<l;a++){var h=t[a];if(null!==h.top&&h!==r&&Jc(r,h,e.item,h.options.rtl)){s=h;break}}null!=s&&(r.top=s.top+s.height+e.item.vertical),r.top+r.height>o&&(o=r.top+r.height)}while(s)}}i.height=o-i.top+.5*e.item.vertical}function Zc(t,e,i,n){for(var o=0;o<t.length;o++)if(null==t[o].data.subgroup)t[o].top=e.item.vertical;else if(void 0!==t[o].data.subgroup&&n){var r=0;for(var s in i)i.hasOwnProperty(s)&&1==i[s].visible&&i[s].index<i[t[o].data.subgroup].index&&(r+=i[s].height,i[t[o].data.subgroup].top=r);t[o].top=r+.5*e.item.vertical}n||$c(t,e,i)}function $c(t,e,i){for(var n in i)if(i.hasOwnProperty(n)){i[n].top=0;do{var o=null;for(var r in i)if(null!==i[r].top&&r!==n&&i[n].index>i[r].index&&Qc(i[n],i[r])){o=i[r];break}null!=o&&(i[n].top=o.top+o.height)}while(o)}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 Kc(t,e,i){var n=!1,o=[];for(var r in i)i[r].hasOwnProperty(\"index\")?o[i[r].index]=r:o.push(r);for(var s=0;s<o.length;s++)if(r=o[s],i.hasOwnProperty(r)){for(var a in n=n||i[r].stack,i[r].top=0,i)i[a].visible&&i[r].index>i[a].index&&(i[r].top+=i[a].height);for(var l=t[r],h=0;h<l.length;h++)void 0!==l[h].data.subgroup&&(l[h].top=i[l[h].data.subgroup].top+.5*e.item.vertical,i[r].stack&&(l[h].baseTop=l[h].top));n&&i[r].stack&&qc(t[r],e,i[r])}}function Jc(t,e,i,n){return n?t.right-i.horizontal+Wc<e.right+e.width&&t.right+t.width+i.horizontal-Wc>e.right&&t.top-i.vertical+Wc<e.top+e.height&&t.top+t.height+i.vertical-Wc>e.top:t.left-i.horizontal+Wc<e.left+e.width&&t.left+t.width+i.horizontal-Wc>e.left&&t.top-i.vertical+Wc<e.top+e.height&&t.top+t.height+i.vertical-Wc>e.top}function Qc(t,e){var i=t.start<e.end&&t.end>e.start,n=t.top<e.top+e.height&&t.top+t.height>e.top;return i&&n}var tp=Object.freeze({__proto__:null,orderByStart:Vc,orderByEnd:Uc,stack:Xc,substack:qc,nostack:Zc,stackSubgroups:$c,stackSubgroupsWithInnerStack:Kc,collision:Jc,collisionByTimes:Qc}),ep=\"__background__\",ip=function(){function t(e,i,n){var o=this;if(dn(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 r in i.subgroupStack)this.subgroupStack[r]=i.subgroupStack[r],this.doInnerStack=this.doInnerStack||i.subgroupStack[r];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(){o.checkRangedItems=!0};this.itemSet.body.emitter.on(\"checkRangedItems\",s),this._disposeCallbacks.push((function(){o.itemSet.body.emitter.off(\"checkRangedItems\",s)})),this._create(),this.setData(i)}return fn(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 o in t.subgroupVisibility)this.subgroupVisibility[o]=t.subgroupVisibility[o];if(this.itemSet.options&&this.itemSet.options.groupTemplate)e=(i=mo(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?Nd.xss(e):Nd.xss(this.groupId||\"\"));this.dom.label.title=t&&t.title||\"\",this.dom.inner.firstChild?Nd.removeClassName(this.dom.inner,\"vis-hidden\"):Nd.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),Nd.addClassName(this.dom.label,\"vis-nesting-group\"),this.showNested?(Nd.removeClassName(this.dom.label,\"collapsed\"),Nd.addClassName(this.dom.label,\"expanded\")):(Nd.removeClassName(this.dom.label,\"expanded\"),Nd.addClassName(this.dom.label,\"collapsed\"))):this.nestedGroups&&(this.nestedGroups=null,Nd.removeClassName(this.dom.label,\"collapsed\"),Nd.removeClassName(this.dom.label,\"expanded\"),Nd.removeClassName(this.dom.label,\"vis-nesting-group\")),t&&(t.treeLevel||t.nestedInGroup)?(Nd.addClassName(this.dom.label,\"vis-nested-group\"),t.treeLevel?Nd.addClassName(this.dom.label,\"vis-group-level-\"+t.treeLevel):Nd.addClassName(this.dom.label,\"vis-group-level-unknown-but-gte1\")):Nd.addClassName(this.dom.label,\"vis-group-level-0\");var r=t&&t.className||null;r!=this.className&&(this.className&&(Nd.removeClassName(this.dom.label,this.className),Nd.removeClassName(this.dom.foreground,this.className),Nd.removeClassName(this.dom.background,this.className),Nd.removeClassName(this.dom.axis,this.className)),Nd.addClassName(this.dom.label,r),Nd.addClassName(this.dom.foreground,r),Nd.addClassName(this.dom.background,r),Nd.addClassName(this.dom.axis,r),this.className=r),this.style&&(Nd.removeCssText(this.dom.label,this.style),this.style=null),t&&t.style&&(Nd.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(ko(Nd).call(Nd,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){ko(Nd).call(Nd,e,(function(e){e[t]()}))},o=0;o<i;o++)n(o);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(ao()-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 o=this;if(t||this.stackDirty||this.isVisible&&!e){var r,s,a,l,h,u,d={byEnd:ir(r=this.orderedItems.byEnd).call(r,(function(t){return!t.isCluster})),byStart:ir(s=this.orderedItems.byStart).call(s,(function(t){return!t.isCluster}))},c={byEnd:Un(new Rh(ir(a=oo(l=this.orderedItems.byEnd).call(l,(function(t){return t.cluster}))).call(a,(function(t){return!!t})))),byStart:Un(new Rh(ir(h=oo(u=this.orderedItems.byStart).call(u,(function(t){return t.cluster}))).call(h,(function(t){return!!t}))))},p=function(){var t,e,i,r=o._updateItemsInRange(d,ir(t=o.visibleItems).call(t,(function(t){return!t.isCluster})),n),s=o._updateClustersInRange(c,ir(e=o.visibleItems).call(e,(function(t){return t.isCluster})),n);return $n(i=[]).call(i,Un(r),Un(s))},f=function(t){var e={},i=function(i){var n,r=ir(n=o.visibleItems).call(n,(function(t){return t.data.subgroup===i}));e[i]=t?Vh(r).call(r,(function(e,i){return t(e.data,i.data)})):r};for(var n in o.subgroups)i(n);return e};if(\"function\"==typeof this.itemSet.options.order){var m=this;if(this.doInnerStack&&this.itemSet.options.stackSubgroups){Kc(f(this.itemSet.options.order),i,this.subgroups),this.visibleItems=p(),this._updateSubGroupHeights(i)}else{var v,g,y,b;this.visibleItems=p(),this._updateSubGroupHeights(i);var _=Vh(v=ir(g=Kn(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=Xc(_,i,!0,mo(b=this._shouldBailItemsRedraw).call(b,this))}}else{var w;if(this.visibleItems=p(),this._updateSubGroupHeights(i),this.itemSet.options.stack)if(this.doInnerStack&&this.itemSet.options.stackSubgroups)Kc(f(),i,this.subgroups);else this.shouldBailStackItems=Xc(this.visibleItems,i,!0,mo(w=this._shouldBailItemsRedraw).call(w,this));else Zc(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&&ko(Nd).call(Nd,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=Nd.updateProperty(this,\"height\",e)||t;var i=this.dom.inner.clientWidth,n=this.dom.inner.clientHeight;return t=Nd.updateProperty(this.props.label,\"width\",i)||t,t=Nd.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==ep||n.displayed&&n.hide()}}},{key:\"redraw\",value:function(t,e,i,n){var o,r,s,a,l,h,u,d=this,c=!1,p=this.isVisible,f=[function(){i=d._didMarkerHeightChange.call(d)||i},mo(o=this._updateSubGroupHeights).call(o,this,e),mo(r=this._calculateGroupSizeAndPosition).call(r,this),function(){var i;d.isVisible=mo(i=d._isGroupVisible).call(i,d)(t,e)},function(){var n;mo(n=d._redrawItems).call(n,d)(i,p,e,t)},mo(s=this._updateSubgroupsSizes).call(s,this),function(){var t;h=mo(t=d._calculateHeight).call(t,d)(e)},mo(a=this._calculateGroupSizeAndPosition).call(a,this),function(){var t;c=mo(t=d._didResize).call(t,d)(c,h)},function(){var t;mo(t=d._applyGroupHeight).call(t,d)(h)},function(){var t;mo(t=d._updateItemsVerticalPosition).call(t,d)(e)},mo(l=function(){return!d.isVisible&&d.height&&(c=!1),c}).call(l,this)];return n?f:(ko(f).call(f,(function(t){u=t()})),u)}},{key:\"_updateSubGroupHeights\",value:function(t){var e=this;if(so(this.subgroups).length>0){var i=this;this._resetSubgroups(),ko(Nd).call(Nd,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?Nd.toArray(this.items):this.visibleItems).length>0){var n=i[0].top,o=i[0].top+i[0].height;if(ko(Nd).call(Nd,i,(function(t){n=Math.min(n,t.top),o=Math.max(o,t.top+t.height)})),n>t.axis){var r=n-t.axis;o-=r,ko(Nd).call(Nd,i,(function(t){t.top-=r}))}e=Math.ceil(o+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()),!qo(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,o=t.subgroups[e].items[0].data.start,r=n-1;ko(i=t.subgroups[e].items).call(i,(function(t){new Date(t.data.start)<new Date(o)&&(o=t.data.start);var e=t.data.end||t.data.start;new Date(e)>new Date(r)&&(r=e)})),t.subgroups[e].start=o,t.subgroups[e].end=new Date(r-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]});Vh(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);Vh(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=Sr(e=this.visibleItems).call(e,t);-1!=n&&No(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,o,r=Sr(n=i.items).call(n,t);if(r>=0)No(o=i.items).call(o,r,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=Nd.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},Vc(this.orderedItems.byStart),Uc(this.orderedItems.byEnd)}},{key:\"_updateItemsInRange\",value:function(t,e,i){var n=[],o={};if(!this.isVisible&&this.groupId!=ep){for(var r=0;r<e.length;r++){var s=e[r];s.displayed&&s.hide()}return n}var a=(i.end-i.start)/4,l=i.start-a,h=i.end+a;if(e.length>0)for(var u=0;u<e.length;u++)this._checkIfVisibleWithReference(e[u],n,o,i);var d=Nd.binarySearchCustom(t.byStart,(function(t){return t<l?-1:t<=h?0:1}),\"data\",\"start\");if(this._traceVisible(d,t.byStart,n,o,(function(t){return t.data.start<l||t.data.start>h})),1==this.checkRangedItems){this.checkRangedItems=!1;for(var c=0;c<t.byEnd.length;c++)this._checkIfVisibleWithReference(t.byEnd[c],n,o,i)}else{var p=Nd.binarySearchCustom(t.byEnd,(function(t){var e=t.start;return t.end<l?-1:e<=h?0:1}),\"data\");this._traceVisible(p,t.byEnd,n,o,(function(t){return t.data.end<l||t.data.start>h}))}for(var f={},m=0,v=0;v<n.length;v++){var g=n[v];if(!g.displayed){f[v]=g.redraw(!0),m=f[v].length}}if(m>0)for(var y=function(t){ko(Nd).call(Nd,f,(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,o){if(-1!=t){for(var r=t;r>=0;r--){var s=e[r];if(o(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(o(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=[],o={};if(e.length>0)for(var r=0;r<e.length;r++)this._checkIfVisibleWithReference(e[r],n,o,i);for(var s=0;s<t.byStart.length;s++)this._checkIfVisibleWithReference(t.byStart[s],n,o,i);for(var a=0;a<t.byEnd.length;a++)this._checkIfVisibleWithReference(t.byEnd[a],n,o,i);for(var l={},h=0,u=0;u<n.length;u++){var d=n[u];if(!d.displayed){l[u]=d.redraw(!0),h=l[u].length}}if(h>0)for(var c=0;c<h;c++)ko(Nd).call(Nd,l,(function(t){t[c]()}));for(var p=0;p<n.length;p++)n[p].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}();function np(t){var e=function(){if(\"undefined\"==typeof Reflect||!Kl)return!1;if(Kl.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Kl(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=rh(t);if(e){var o=rh(this).constructor;i=Kl(n,arguments,o)}else i=n.apply(this,arguments);return nh(this,i)}}var op=function(t){ih(i,t);var e=np(i);function i(t,n,o){var r;return dn(this,i),(r=e.call(this,t,n,o)).width=0,r.height=0,r.top=0,r.left=0,r}return fn(i,[{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,o=this.visibleItems.length;n<o;n++){this.visibleItems[n].repositionY(e)}return!1}},{key:\"show\",value:function(){this.dom.background.parentNode||this.itemSet.dom.background.appendChild(this.dom.background)}}]),i}(ip);function rp(t,e){var i;if(void 0===Xn||null==ai(t)){if(Qn(t)||(i=function(t,e){var i;if(!t)return;if(\"string\"==typeof t)return sp(t,e);var n=Kn(i=Object.prototype.toString.call(t)).call(i,8,-1);\"Object\"===n&&t.constructor&&(n=t.constructor.name);if(\"Map\"===n||\"Set\"===n)return Qe(t);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sp(t,e)}(t))||e&&t&&\"number\"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var r,s=!0,a=!1;return{s:function(){i=li(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){a=!0,r=t},f:function(){try{s||null==i.return||i.return()}finally{if(a)throw r}}}}function sp(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}pc(\'.vis-item{position:absolute;color:#1a1a1a;border-color:#97b0f8;border-width:1px;background-color:#d5ddf6;display:inline-block;z-index:1}.vis-item.vis-selected{border-color:#ffc200;background-color:#fff785;z-index:2}.vis-editable.vis-selected{cursor:move}.vis-item.vis-point.vis-selected{background-color:#fff785}.vis-item.vis-box{text-align:center;border-style:solid;border-radius:2px}.vis-item.vis-point{background:none}.vis-item.vis-dot{position:absolute;padding:0;border-width:4px;border-style:solid;border-radius:4px}.vis-item.vis-range{border-style:solid;border-radius:2px;box-sizing:border-box}.vis-item.vis-background{border:none;background-color:rgba(213,221,246,.4);box-sizing:border-box;padding:0;margin:0}.vis-item .vis-item-overflow{position:relative;width:100%;height:100%;padding:0;margin:0;overflow:hidden}.vis-item-visible-frame{white-space:nowrap}.vis-item.vis-range .vis-item-content{position:relative;display:inline-block}.vis-item.vis-background .vis-item-content{position:absolute;display:inline-block}.vis-item.vis-line{padding:0;position:absolute;width:0;border-left-width:1px;border-left-style:solid}.vis-item .vis-item-content{white-space:nowrap;box-sizing:border-box;padding:5px}.vis-item .vis-onUpdateTime-tooltip{position:absolute;background:#4f81bd;color:#fff;width:200px;text-align:center;white-space:nowrap;padding:5px;border-radius:1px;transition:.4s;-o-transition:.4s;-moz-transition:.4s;-webkit-transition:.4s}.vis-item .vis-delete,.vis-item .vis-delete-rtl{position:absolute;top:0;width:24px;height:24px;box-sizing:border-box;padding:0 5px;cursor:pointer;-webkit-transition:background .2s linear;-moz-transition:background .2s linear;-ms-transition:background .2s linear;-o-transition:background .2s linear;transition:background .2s linear}.vis-item .vis-delete{right:-24px}.vis-item .vis-delete-rtl{left:-24px}.vis-item .vis-delete-rtl:after,.vis-item .vis-delete:after{content:\"\\\\00D7\";color:red;font-family:arial,sans-serif;font-size:22px;font-weight:700;-webkit-transition:color .2s linear;-moz-transition:color .2s linear;-ms-transition:color .2s linear;-o-transition:color .2s linear;transition:color .2s linear}.vis-item .vis-delete-rtl:hover,.vis-item .vis-delete:hover{background:red}.vis-item .vis-delete-rtl:hover:after,.vis-item .vis-delete:hover:after{color:#fff}.vis-item .vis-drag-center{position:absolute;width:100%;height:100%;top:0;left:0;cursor:move}.vis-item.vis-range .vis-drag-left{left:-4px;cursor:w-resize}.vis-item.vis-range .vis-drag-left,.vis-item.vis-range .vis-drag-right{position:absolute;width:24px;max-width:20%;min-width:2px;height:100%;top:0}.vis-item.vis-range .vis-drag-right{right:-4px;cursor:e-resize}.vis-range.vis-item.vis-readonly .vis-drag-left,.vis-range.vis-item.vis-readonly .vis-drag-right{cursor:auto}.vis-item.vis-cluster{vertical-align:center;text-align:center;border-style:solid;border-radius:2px}.vis-item.vis-cluster-line{padding:0;position:absolute;width:0;border-left-width:1px;border-left-style:solid}.vis-item.vis-cluster-dot{position:absolute;padding:0;border-width:4px;border-style:solid;border-radius:4px}\');var ap=function(){function t(e,i,n){var o,r=this;dn(this,t),this.id=null,this.parent=null,this.data=e,this.dom=null,this.conversion=i||{},this.defaultOptions={locales:Ac,locale:\"en\"},this.options=Nd.extend({},this.defaultOptions,n),this.options.locales=Nd.extend({},Ac,this.options.locales);var s=this.defaultOptions.locales[this.defaultOptions.locale];ko(o=so(this.options.locales)).call(o,(function(t){r.options.locales[t]=Nd.extend({},s,r.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 fn(t,[{key:\"select\",value:function(){this.selectable&&(this.selected=!0,this.dirty=!0,this.displayed&&this.redraw())}},{key:\"unselect\",value:function(){this.selected=!1,this.dirty=!0,this.displayed&&this.redraw()}},{key:\"setData\",value:function(t){null!=t.group&&this.data.group!=t.group&&null!=this.parent&&this.parent.itemSet._moveToGroup(this,t.group),this.setSelectability(t),this.parent&&(this.parent.stackDirty=!0),null!=t.subgroup&&this.data.subgroup!=t.subgroup&&null!=this.parent&&this.parent.changeSubgroup(this,this.data.subgroup,t.subgroup),this.data=t,this._updateEditStatus(),this.dirty=!0,this.displayed&&this.redraw()}},{key:\"setSelectability\",value:function(t){t&&(this.selectable=void 0===t.selectable||Boolean(t.selectable))}},{key:\"setParent\",value:function(t){this.displayed?(this.hide(),this.parent=t,this.parent&&this.show()):this.parent=t}},{key:\"isVisible\",value:function(t){return!1}},{key:\"show\",value:function(){return!1}},{key:\"hide\",value:function(){return!1}},{key:\"redraw\",value:function(){}},{key:\"repositionX\",value:function(){}},{key:\"repositionY\",value:function(){}},{key:\"_repaintDragCenter\",value:function(){if(this.selected&&this.editable.updateTime&&!this.dom.dragCenter){var t,e,i=this,n=document.createElement(\"div\");n.className=\"vis-drag-center\",n.dragCenterItem=this,this.hammerDragCenter=new uc(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\",mo(t=i.parent.itemSet._onDrag).call(t,i.parent.itemSet)),this.hammerDragCenter.on(\"panend\",mo(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 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),n.title=o.deleteSelected,this.hammerDeleteButton=new uc(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,o,r=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<-r?(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=mo(o=this.options.tooltipOnItemUpdateTime.template).call(o,this)(this.data);else n=\"start: \".concat(Eu(this.data.start).format(\"MM/DD/YYYY hh:mm\")),this.data.end&&(n+=\"<br> end: \".concat(Eu(this.data.end).format(\"MM/DD/YYYY hh:mm\")));this.dom.onItemUpdateTimeTooltip.innerHTML=Nd.xss(n)}}}},{key:\"_getItemData\",value:function(){return this.parent.itemSet.itemsData.get(this.id)}},{key:\"_updateContents\",value:function(t){var e,i,n,o,r,s,a=this._getItemData(),l=(this.dom.box||this.dom.point).getElementsByClassName(\"vis-item-visible-frame\")[0];this.options.visibleFrameTemplate?(o=mo(r=this.options.visibleFrameTemplate).call(r,this),n=Nd.xss(o(a,l))):n=\"\";if(l)if(n instanceof Object&&!(n instanceof Element))o(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=Nd.xss(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=mo(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=Nd.xss(e);else if(\"background\"!=this.data.type||void 0!==this.data.content)throw new Error(\'Property \"content\" missing in item \'.concat(this.id));this.content=e}}},{key:\"_updateDataAttributes\",value:function(t){if(this.options.dataAttributes&&this.options.dataAttributes.length>0){var e=[];if(Qn(this.options.dataAttributes))e=this.options.dataAttributes;else{if(\"all\"!=this.options.dataAttributes)return;e=so(this.data)}var i,n=rp(e);try{for(n.s();!(i=n.n()).done;){var o=i.value,r=this.data[o];null!=r?t.setAttribute(\"data-\".concat(o),r):t.removeAttribute(\"data-\".concat(o))}}catch(t){n.e(t)}finally{n.f()}}}},{key:\"_updateStyle\",value:function(t){this.style&&(Nd.removeCssText(t,this.style),this.style=null),this.data.style&&(Nd.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\"===Vn(this.options.editable)&&(this.editable={},Nd.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\"===Vn(this.data.editable)&&(this.editable={},Nd.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?mo(t=this.options.tooltip.template).call(t,this)(this._getItemData(),this.data):this.data.title}}]),t}();function lp(t){var e=function(){if(\"undefined\"==typeof Reflect||!Kl)return!1;if(Kl.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Kl(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=rh(t);if(e){var o=rh(this).constructor;i=Kl(n,arguments,o)}else i=n.apply(this,arguments);return nh(this,i)}}ap.prototype.stack=!0;var hp=function(t){ih(i,t);var e=lp(i);function i(t,n,o){var r;if(dn(this,i),(r=e.call(this,t,n,o)).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 fn(i,[{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,o,r,s,a=this,l=[mo(e=this._createDomElement).call(e,this),mo(i=this._appendDomElement).call(i,this),mo(n=this._updateDirtyDomComponents).call(n,this),function(){a.dirty&&(r=a._getDomComponentsSizes())},function(){var t;a.dirty&&mo(t=a._updateDomComponentsSizes).call(t,a)(r)},mo(o=this._repaintDomAdditionals).call(o,this)];return t?l:(ko(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,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(void 0!==e||void 0!==i){var r=o?-1*e:e;t.style.transform=void 0!==i?void 0!==e?$n(n=\"translate(\".concat(r,\"px, \")).call(n,i,\"px)\"):\"translateY(\".concat(i,\"px)\"):\"translateX(\".concat(r,\"px)\")}};e(this.dom.box,this.boxX,this.boxY,t),e(this.dom.dot,this.dotX,this.dotY,t),e(this.dom.line,this.lineX,this.lineY,t)}},{key:\"repositionX\",value:function(){var t=this.conversion.toScreen(this.data.start),e=void 0===this.data.align?this.options.align:this.data.align,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}}]),i}(ap);function up(t){var e=function(){if(\"undefined\"==typeof Reflect||!Kl)return!1;if(Kl.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Kl(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=rh(t);if(e){var o=rh(this).constructor;i=Kl(n,arguments,o)}else i=n.apply(this,arguments);return nh(this,i)}}var dp=function(t){ih(i,t);var e=up(i);function i(t,n,o){var r;if(dn(this,i),(r=e.call(this,t,n,o)).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 fn(i,[{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,o,r,s,a=this,l=[mo(e=this._createDomElement).call(e,this),mo(i=this._appendDomElement).call(i,this),mo(n=this._updateDirtyDomComponents).call(n,this),function(){a.dirty&&(r=a._getDomComponentsSizes())},function(){var t;a.dirty&&mo(t=a._updateDomComponentsSizes).call(t,a)(r)},mo(o=this._repaintDomAdditionals).call(o,this)];return t?l:(ko(l).call(l,(function(t){s=t()})),s)}},{key:\"repositionXY\",value:function(){var t=this.options.rtl,e=function(t,e,i){var n,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(void 0!==e||void 0!==i){var r=o?-1*e:e;t.style.transform=void 0!==i?void 0!==e?$n(n=\"translate(\".concat(r,\"px, \")).call(n,i,\"px)\"):\"translateY(\".concat(i,\"px)\"):\"translateX(\".concat(r,\"px)\")}};e(this.dom.point,this.pointX,this.pointY,t)}},{key:\"show\",value:function(t){if(!this.displayed)return this.redraw(t)}},{key:\"hide\",value:function(){this.displayed&&(this.dom.point.parentNode&&this.dom.point.parentNode.removeChild(this.dom.point),this.displayed=!1)}},{key:\"repositionX\",value:function(){var t=this.conversion.toScreen(this.data.start);this.pointX=t,this.options.rtl?this.right=t-this.props.dot.width:this.left=t-this.props.dot.width,this.repositionXY()}},{key:\"repositionY\",value:function(){var t=this.options.orientation.item;this.pointY=\"top\"==t?this.top:this.parent.height-this.top-this.height,this.repositionXY()}},{key:\"getWidthLeft\",value:function(){return this.props.dot.width}},{key:\"getWidthRight\",value:function(){return this.props.dot.width}}]),i}(ap);function cp(t){var e=function(){if(\"undefined\"==typeof Reflect||!Kl)return!1;if(Kl.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Kl(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=rh(t);if(e){var o=rh(this).constructor;i=Kl(n,arguments,o)}else i=n.apply(this,arguments);return nh(this,i)}}var pp=function(t){ih(i,t);var e=cp(i);function i(t,n,o){var r;if(dn(this,i),(r=e.call(this,t,n,o)).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 fn(i,[{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,o,r,s,a=this,l=[mo(e=this._createDomElement).call(e,this),mo(i=this._appendDomElement).call(i,this),mo(n=this._updateDirtyDomComponents).call(n,this),function(){var t;a.dirty&&(r=mo(t=a._getDomComponentsSizes).call(t,a)())},function(){var t;a.dirty&&mo(t=a._updateDomComponentsSizes).call(t,a)(r)},mo(o=this._repaintDomAdditionals).call(o,this)];return t?l:(ko(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,o=this.conversion.toScreen(this.data.start),r=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||(o<-n&&(o=-n),r>2*n&&(r=2*n));var a=Math.max(Math.round(1e3*(r-o))/1e3,1);switch(this.overflow?(this.options.rtl?this.right=o:this.left=o,this.width=a+this.props.content.width,i=this.props.content.width):(this.options.rtl?this.right=o:this.left=o,this.width=a,i=Math.min(r-o,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 h=-1*Math.max((a-i)/2,0);this.dom.content.style.transform=\"translateX(\".concat(h,\"px)\")}else this.dom.content.style.transform=\"translateX(\".concat(Math.max((a-i)/2,0),\"px)\");break;default:if(e=this.overflow?r>0?Math.max(-o,0):-i:o<0?-o:0,this.options.rtl){var u=-1*e;this.dom.content.style.transform=\"translateX(\".concat(u,\"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.editable.updateTime&&!this.dom.dragLeft){var t=document.createElement(\"div\");t.className=\"vis-drag-left\",t.dragLeftItem=this,this.dom.box.appendChild(t),this.dom.dragLeft=t}else this.selected||this.options.itemsAlwaysDraggable.range||!this.dom.dragLeft||(this.dom.dragLeft.parentNode&&this.dom.dragLeft.parentNode.removeChild(this.dom.dragLeft),this.dom.dragLeft=null)}},{key:\"_repaintDragRight\",value:function(){if((this.selected||this.options.itemsAlwaysDraggable.range)&&this.editable.updateTime&&!this.dom.dragRight){var t=document.createElement(\"div\");t.className=\"vis-drag-right\",t.dragRightItem=this,this.dom.box.appendChild(t),this.dom.dragRight=t}else this.selected||this.options.itemsAlwaysDraggable.range||!this.dom.dragRight||(this.dom.dragRight.parentNode&&this.dom.dragRight.parentNode.removeChild(this.dom.dragRight),this.dom.dragRight=null)}}]),i}(ap);function fp(t){var e=function(){if(\"undefined\"==typeof Reflect||!Kl)return!1;if(Kl.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Kl(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=rh(t);if(e){var o=rh(this).constructor;i=Kl(n,arguments,o)}else i=n.apply(this,arguments);return nh(this,i)}}pp.prototype.baseClassName=\"vis-item vis-range\";var mp=function(t){ih(i,t);var e=fp(i);function i(t,n,o){var r;if(dn(this,i),(r=e.call(this,t,n,o)).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 fn(i,[{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,o,r,s,a=this,l=[mo(e=this._createDomElement).call(e,this),mo(i=this._appendDomElement).call(i,this),mo(n=this._updateDirtyDomComponents).call(n,this),function(){var t;a.dirty&&(r=mo(t=a._getDomComponentsSizes).call(t,a)())},function(){var t;a.dirty&&mo(t=a._updateDomComponentsSizes).call(t,a)(r)},mo(o=this._repaintDomAdditionals).call(o,this)];return t?l:(ko(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 op?(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\")}}]),i}(ap);mp.prototype.baseClassName=\"vis-item vis-background\",mp.prototype.stack=!1,mp.prototype.show=pp.prototype.show,mp.prototype.hide=pp.prototype.hide,mp.prototype.repositionX=pp.prototype.repositionX;pc(\"div.vis-tooltip{position:absolute;visibility:hidden;padding:5px;white-space:nowrap;font-family:verdana;font-size:14px;color:#000;background-color:#f5f4ed;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;border:1px solid #808074;box-shadow:3px 3px 10px rgba(0,0,0,.2);pointer-events:none;z-index:5}\");var vp=function(){function t(e,i){dn(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 fn(t,[{key:\"setPosition\",value:function(t,e){this.x=gr(t),this.y=gr(e)}},{key:\"setText\",value:function(t){t instanceof Element?(this.frame.innerHTML=\"\",this.frame.appendChild(t)):this.frame.innerHTML=Nd.xss(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,o=this.frame.parentNode.clientWidth,r=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>o-this.padding&&(a=!0)),r=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),(r=this.x)+i+this.padding>o&&(r=o-i-this.padding),r<this.padding&&(r=this.padding);this.frame.style.left=r+\"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}(),gp=Di.every,yp=vo(\"every\");wt({target:\"Array\",proto:!0,forced:!yp},{every:function(t){return gp(this,t,arguments.length>1?arguments[1]:void 0)}});var bp=In(\"Array\").every,_p=Array.prototype,wp=function(t){var e=t.every;return t===_p||t instanceof Array&&e===_p.every?bp:e};function kp(t,e){var i;if(void 0===Xn||null==ai(t)){if(Qn(t)||(i=function(t,e){var i;if(!t)return;if(\"string\"==typeof t)return xp(t,e);var n=Kn(i=Object.prototype.toString.call(t)).call(i,8,-1);\"Object\"===n&&t.constructor&&(n=t.constructor.name);if(\"Map\"===n||\"Set\"===n)return Qe(t);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xp(t,e)}(t))||e&&t&&\"number\"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var r,s=!0,a=!1;return{s:function(){i=li(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){a=!0,r=t},f:function(){try{s||null==i.return||i.return()}finally{if(a)throw r}}}}function xp(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function Dp(t){var e=function(){if(\"undefined\"==typeof Reflect||!Kl)return!1;if(Kl.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Kl(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=rh(t);if(e){var o=rh(this).constructor;i=Kl(n,arguments,o)}else i=n.apply(this,arguments);return nh(this,i)}}var Sp=function(t){ih(i,t);var e=Dp(i);function i(t,n,o){var r;dn(this,i);var s=jo({},{fitOnDoubleClick:!0},o,{editable:!1});if((r=e.call(this,t,n,s)).props={content:{width:0,height:0}},!t||null==t.uiItems)throw new Error(\'Property \"uiItems\" missing in item \'+t.id);return r.id=fu(),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 fn(i,[{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(this.data.start.getTime()+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,o,r,s,a,l,h=[mo(e=this._createDomElement).call(e,this),mo(i=this._appendDomElement).call(i,this),mo(n=this._updateDirtyDomComponents).call(n,this),mo(o=function(){this.dirty&&(a=this._getDomComponentsSizes())}).call(o,this),mo(r=function(){var t;this.dirty&&mo(t=this._updateDomComponentsSizes).call(t,this)(a)}).call(r,this),mo(s=this._repaintDomAdditionals).call(s,this)];return t?h:(ko(h).call(h,(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 o=i+t+(e-t)/2,r=o-n/2,s=this.options.rtl?-1*o:o,a=this.options.rtl?-1*r:r;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,h=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(h,\"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,i=kp(this.data.uiItems);try{for(i.s();!(e=i.n()).done;){e.value.cluster=this}}catch(t){i.e(t)}finally{i.f()}this.data.items=oo(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,i=kp(this.data.uiItems);try{for(i.s();!(e=i.n()).done;){var n=e.value;delete n.cluster}}catch(t){i.e(t)}finally{i.f()}this.attached=!1,t&&this.group&&(this.group.remove(this),this.group=null),this.data.items=[],this.dirty=!0}}},{key:\"_onDoubleClick\",value:function(){this._fit()}},{key:\"_setupRange\",value:function(){var t,e,i,n=oo(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,Un(oo(n).call(n,(function(t){return Math.min(t.start,t.end||t.start)})))),this.data.max=Math.max.apply(Math,Un(oo(n).call(n,(function(t){return Math.max(t.start,t.end||t.start)}))));var o=oo(e=this.data.uiItems).call(e,(function(t){return t.center})),r=ch(o).call(o,(function(t,e){return t+e}),0)/this.data.uiItems.length;$h(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(r),this.data.end=null)}},{key:\"_getUiItems\",value:function(){var t,e=this;return this.data.uiItems&&this.data.uiItems.length?ir(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=mo(t=i.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(){var t={previous:{right:this.dom.box.style.right,left:this.dom.box.style.left},box:{width:this.dom.box.offsetWidth,height:this.dom.box.offsetHeight}};return this.options.showStipes&&(t.dot={height:this.dom.dot.offsetHeight,width:this.dom.dot.offsetWidth},t.line={width:this.dom.line.offsetWidth}),t}},{key:\"_updateDomComponentsSizes\",value:function(t){this.options.rtl?this.dom.box.style.right=\"0px\":this.dom.box.style.left=\"0px\",this.data.end?this.minWidth=t.box.width:this.width=t.box.width,this.height=t.box.height,this.options.rtl?this.dom.box.style.right=t.previous.right:this.dom.box.style.left=t.previous.left,this.dirty=!1}},{key:\"_repaintDomAdditionals\",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.box)}},{key:\"_isStipeVisible\",value:function(){return this.minWidth>=this.width||!this.data.end}},{key:\"_getFitRange\",value:function(){var t=.05*(this.data.max-this.data.min)/2;return{fitStart:this.data.min-t,fitEnd:this.data.max+t}}},{key:\"_fit\",value:function(){if(this.emitter){var t=this._getFitRange(),e=t.fitStart,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}}]),i}(ap);function Cp(t,e){var i;if(void 0===Xn||null==ai(t)){if(Qn(t)||(i=function(t,e){var i;if(!t)return;if(\"string\"==typeof t)return Tp(t,e);var n=Kn(i=Object.prototype.toString.call(t)).call(i,8,-1);\"Object\"===n&&t.constructor&&(n=t.constructor.name);if(\"Map\"===n||\"Set\"===n)return Qe(t);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Tp(t,e)}(t))||e&&t&&\"number\"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var r,s=!0,a=!1;return{s:function(){i=li(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){a=!0,r=t},f:function(){try{s||null==i.return||i.return()}finally{if(a)throw r}}}}function Tp(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}Sp.prototype.baseClassName=\"vis-item vis-range vis-cluster\";var Mp=\"__ungrouped__\",Op=function(){function t(e){dn(this,t),this.itemSet=e,this.groups={},this.cache={},this.cache[-1]=[]}return fn(t,[{key:\"createClusterItem\",value:function(t,e,i){return new Sp(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,o=n.maxItems,r=n.clusterCriteria;r||(r=function(){return!0}),o=o||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 h=this.cache[s];if(!h){for(var u in h=[],this.groups)if(this.groups.hasOwnProperty(u))for(var d=this.groups[u],c=d.length,p=0;p<c;){for(var f=d[p],m=1,v=p-1;v>=0&&f.center-d[v].center<a/2;)!d[v].cluster&&r(f.data,d[v].data)&&m++,v--;for(var g=p+1;g<d.length&&d[g].center-f.center<a/2;)r(f.data,d[g].data)&&m++,g++;for(var y=h.length-1;y>=0&&f.center-h[y].center<a;)f.group==h[y].group&&r(f.data,h[y].data)&&m++,y--;if(m>o){for(var b=m-o+1,_=[],w=p;_.length<b&&w<d.length;)r(d[p].data,d[w].data)&&_.push(d[w]),w++;var k=this.itemSet.getGroupId(f.data),x=this.itemSet.groups[k]||this.itemSet.groups[Mp],D=this._getClusterForItems(_,x,t,i);h.push(D),p+=b}else delete f.cluster,p+=1}this.cache[s]=h}return h}},{key:\"_filterData\",value:function(){var t={};this.groups=t;for(var e=0,i=sr(this.items);e<i.length;e++){var n=i[e],o=n.parent?n.parent.groupId:\"\",r=t[o];r||(r=[],t[o]=r),r.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))Vh(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 o,r,s=oo(o=i||[]).call(o,(function(t){var e;return{cluster:t,itemsIds:new Rh(oo(e=t.data.uiItems).call(e,(function(t){return t.id})))}}));if(s.length){var a,l=Cp(s);try{var h=function(){var e=a.value;if(e.itemsIds.size===t.length&&wp(t).call(t,(function(t){return e.itemsIds.has(t.id)})))return r=e.cluster,\"break\"};for(l.s();!(a=l.n()).done;){if(\"break\"===h())break}}catch(t){l.e(t)}finally{l.f()}}if(r)return r.setUiItems(t),r.group!==e&&(r.group&&r.group.remove(r),e&&(e.add(r),r.group=e)),r;var u=n.titleTemplate||\"\",d={toScreen:this.itemSet.body.util.toScreen,toTime:this.itemSet.body.util.toTime},c=u.replace(/{count}/,t.length),p=\'<div title=\"\'+c+\'\">\'+t.length+\"</div>\",f=jo({},n,this.itemSet.options),m={content:p,title:c,group:e,uiItems:t,eventEmitter:this.itemSet.body.emitter,range:this.itemSet.body.range};return r=this.createClusterItem(m,d,f),e&&(e.add(r),r.group=e),r.attach(),r}},{key:\"_dropLevelsCache\",value:function(){this.cache={},this.cacheLevel=-1,this.cache[this.cacheLevel]=[]}}]),t}();pc(\'.vis-itemset{position:relative;padding:0;margin:0;box-sizing:border-box}.vis-itemset .vis-background,.vis-itemset .vis-foreground{position:absolute;width:100%;height:100%;overflow:visible}.vis-axis{position:absolute;width:100%;height:0;left:0;z-index:1}.vis-foreground .vis-group{position:relative;box-sizing:border-box;border-bottom:1px solid #bfbfbf}.vis-foreground .vis-group:last-child{border-bottom:none}.vis-nesting-group{cursor:pointer}.vis-label.vis-nested-group.vis-group-level-unknown-but-gte1{background:#f5f5f5}.vis-label.vis-nested-group.vis-group-level-0{background-color:#fff}.vis-ltr .vis-label.vis-nested-group.vis-group-level-0 .vis-inner{padding-left:0}.vis-rtl .vis-label.vis-nested-group.vis-group-level-0 .vis-inner{padding-right:0}.vis-label.vis-nested-group.vis-group-level-1{background-color:rgba(0,0,0,.05)}.vis-ltr .vis-label.vis-nested-group.vis-group-level-1 .vis-inner{padding-left:15px}.vis-rtl .vis-label.vis-nested-group.vis-group-level-1 .vis-inner{padding-right:15px}.vis-label.vis-nested-group.vis-group-level-2{background-color:rgba(0,0,0,.1)}.vis-ltr .vis-label.vis-nested-group.vis-group-level-2 .vis-inner{padding-left:30px}.vis-rtl .vis-label.vis-nested-group.vis-group-level-2 .vis-inner{padding-right:30px}.vis-label.vis-nested-group.vis-group-level-3{background-color:rgba(0,0,0,.15)}.vis-ltr .vis-label.vis-nested-group.vis-group-level-3 .vis-inner{padding-left:45px}.vis-rtl .vis-label.vis-nested-group.vis-group-level-3 .vis-inner{padding-right:45px}.vis-label.vis-nested-group.vis-group-level-4{background-color:rgba(0,0,0,.2)}.vis-ltr .vis-label.vis-nested-group.vis-group-level-4 .vis-inner{padding-left:60px}.vis-rtl .vis-label.vis-nested-group.vis-group-level-4 .vis-inner{padding-right:60px}.vis-label.vis-nested-group.vis-group-level-5{background-color:rgba(0,0,0,.25)}.vis-ltr .vis-label.vis-nested-group.vis-group-level-5 .vis-inner{padding-left:75px}.vis-rtl .vis-label.vis-nested-group.vis-group-level-5 .vis-inner{padding-right:75px}.vis-label.vis-nested-group.vis-group-level-6{background-color:rgba(0,0,0,.3)}.vis-ltr .vis-label.vis-nested-group.vis-group-level-6 .vis-inner{padding-left:90px}.vis-rtl .vis-label.vis-nested-group.vis-group-level-6 .vis-inner{padding-right:90px}.vis-label.vis-nested-group.vis-group-level-7{background-color:rgba(0,0,0,.35)}.vis-ltr .vis-label.vis-nested-group.vis-group-level-7 .vis-inner{padding-left:105px}.vis-rtl .vis-label.vis-nested-group.vis-group-level-7 .vis-inner{padding-right:105px}.vis-label.vis-nested-group.vis-group-level-8{background-color:rgba(0,0,0,.4)}.vis-ltr .vis-label.vis-nested-group.vis-group-level-8 .vis-inner{padding-left:120px}.vis-rtl .vis-label.vis-nested-group.vis-group-level-8 .vis-inner{padding-right:120px}.vis-label.vis-nested-group.vis-group-level-9{background-color:rgba(0,0,0,.45)}.vis-ltr .vis-label.vis-nested-group.vis-group-level-9 .vis-inner{padding-left:135px}.vis-rtl .vis-label.vis-nested-group.vis-group-level-9 .vis-inner{padding-right:135px}.vis-label.vis-nested-group{background-color:rgba(0,0,0,.5)}.vis-ltr .vis-label.vis-nested-group .vis-inner{padding-left:150px}.vis-rtl .vis-label.vis-nested-group .vis-inner{padding-right:150px}.vis-group-level-unknown-but-gte1{border:1px solid red}.vis-label.vis-nesting-group:before{display:inline-block;width:15px}.vis-label.vis-nesting-group.expanded:before{content:\"\\\\25BC\"}.vis-label.vis-nesting-group.collapsed:before{content:\"\\\\25B6\"}.vis-rtl .vis-label.vis-nesting-group.collapsed:before{content:\"\\\\25C0\"}.vis-ltr .vis-label:not(.vis-nesting-group):not(.vis-group-level-0){padding-left:15px}.vis-rtl .vis-label:not(.vis-nesting-group):not(.vis-group-level-0){padding-right:15px}.vis-overlay{position:absolute;top:0;left:0;width:100%;height:100%;z-index:10}\');function Ep(t,e){var i;if(void 0===Xn||null==ai(t)){if(Qn(t)||(i=function(t,e){var i;if(!t)return;if(\"string\"==typeof t)return Pp(t,e);var n=Kn(i=Object.prototype.toString.call(t)).call(i,8,-1);\"Object\"===n&&t.constructor&&(n=t.constructor.name);if(\"Map\"===n||\"Set\"===n)return Qe(t);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pp(t,e)}(t))||e&&t&&\"number\"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var r,s=!0,a=!1;return{s:function(){i=li(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){a=!0,r=t},f:function(){try{s||null==i.return||i.return()}finally{if(a)throw r}}}}function Pp(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function Ap(t){var e=function(){if(\"undefined\"==typeof Reflect||!Kl)return!1;if(Kl.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Kl(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=rh(t);if(e){var o=rh(this).constructor;i=Kl(n,arguments,o)}else i=n.apply(this,arguments);return nh(this,i)}}pc(\".vis-labelset{overflow:hidden}.vis-labelset,.vis-labelset .vis-label{position:relative;box-sizing:border-box}.vis-labelset .vis-label{left:0;top:0;width:100%;color:#4d4d4d;border-bottom:1px solid #bfbfbf}.vis-labelset .vis-label.draggable{cursor:pointer}.vis-group-is-dragging{background:rgba(0,0,0,.1)}.vis-labelset .vis-label:last-child{border-bottom:none}.vis-labelset .vis-label .vis-inner{display:inline-block;padding:5px}.vis-labelset .vis-label .vis-inner.vis-hidden{padding:0}\");var Lp=\"__ungrouped__\",Ip=\"__background__\",Np=function(t){ih(i,t);var e=Ap(i);function i(t,n){var o;dn(this,i),(o=e.call(this)).body=t,o.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:cc.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},o.options=Nd.extend({},o.defaultOptions),o.options.rtl=n.rtl,o.options.onTimeout=n.onTimeout,o.conversion={toScreen:t.util.toScreen,toTime:t.util.toTime},o.dom={},o.props={},o.hammer=null;var r=Jl(o);return o.itemsData=null,o.groupsData=null,o.itemsSettingTime=null,o.initialItemSetDrawn=!1,o.userContinueNotBail=null,o.sequentialSelection=!1,o.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()}},o.groupListeners={add:function(t,e,i){if(r._onAddGroups(e.items),r.groupsData&&r.groupsData.length>0){var n,o=r.groupsData.getDataSet();ko(n=o.get()).call(n,(function(t){if(t.nestedGroups){var e;0!=t.showNested&&(t.showNested=!0);var n=[];ko(e=t.nestedGroups).call(e,(function(e){var i=o.get(e);i&&(i.nestedInGroup=t.id,0==t.showNested&&(i.visible=!1),n=$n(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)}},o.items={},o.groups={},o.groupIds=[],o.selection=[],o.popup=null,o.popupTimer=null,o.touchParams={},o.groupTouchParams={group:null,isDragging:!1},o._create(),o.setOptions(n),o.clusters=[],o}return fn(i,[{key:\"_create\",value:function(){var t,e,i,n,o,r,s,a,l,h,u,d,c,p,f,m=this,v=document.createElement(\"div\");v.className=\"vis-itemset\",v[\"vis-itemset\"]=this,this.dom.frame=v;var g=document.createElement(\"div\");g.className=\"vis-background\",v.appendChild(g),this.dom.background=g;var y=document.createElement(\"div\");y.className=\"vis-foreground\",v.appendChild(y),this.dom.foreground=y;var b=document.createElement(\"div\");b.className=\"vis-axis\",this.dom.axis=b;var _=document.createElement(\"div\");_.className=\"vis-labelset\",this.dom.labelSet=_,this._updateUngrouped();var w=new op(Ip,null,this);w.show(),this.groups[Ip]=w,this.hammer=new uc(this.body.dom.centerContainer),this.hammer.on(\"hammer.input\",(function(t){t.isFirst&&m._onTouch(t)})),this.hammer.on(\"panstart\",mo(t=this._onDragStart).call(t,this)),this.hammer.on(\"panmove\",mo(e=this._onDrag).call(e,this)),this.hammer.on(\"panend\",mo(i=this._onDragEnd).call(i,this)),this.hammer.get(\"pan\").set({threshold:5,direction:uc.ALL}),this.hammer.on(\"tap\",mo(n=this._onSelectItem).call(n,this)),this.hammer.on(\"press\",mo(o=this._onMultiSelectItem).call(o,this)),this.hammer.on(\"doubletap\",mo(r=this._onAddItem).call(r,this)),this.options.rtl?this.groupHammer=new uc(this.body.dom.rightContainer):this.groupHammer=new uc(this.body.dom.leftContainer),this.groupHammer.on(\"tap\",mo(s=this._onGroupClick).call(s,this)),this.groupHammer.on(\"panstart\",mo(a=this._onGroupDragStart).call(a,this)),this.groupHammer.on(\"panmove\",mo(l=this._onGroupDrag).call(l,this)),this.groupHammer.on(\"panend\",mo(h=this._onGroupDragEnd).call(h,this)),this.groupHammer.get(\"pan\").set({threshold:5,direction:uc.DIRECTION_VERTICAL}),this.body.dom.centerContainer.addEventListener(\"mouseover\",mo(u=this._onMouseOver).call(u,this)),this.body.dom.centerContainer.addEventListener(\"mouseout\",mo(d=this._onMouseOut).call(d,this)),this.body.dom.centerContainer.addEventListener(\"mousemove\",mo(c=this._onMouseMove).call(c,this)),this.body.dom.centerContainer.addEventListener(\"contextmenu\",mo(p=this._onDragEnd).call(p,this)),this.body.dom.centerContainer.addEventListener(\"mousewheel\",mo(f=this._onMouseWheel).call(f,this)),this.show()}},{key:\"setOptions\",value:function(t){var e=this;if(t){var i,n;Nd.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\"===Vn(t.itemsAlwaysDraggable)&&(Nd.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\"===Vn(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\"===Vn(t.margin)&&(Nd.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\"===Vn(t.margin.item)&&Nd.selectiveExtend([\"horizontal\",\"vertical\"],this.options.margin.item,t.margin.item)))),ko(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\"===Vn(t.editable)&&Nd.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\"===Vn(t.groupEditable)&&Nd.selectiveExtend([\"order\",\"add\",\"remove\"],this.options.groupEditable,t.groupEditable));ko(n=[\"onDropObjectOnItem\",\"onAdd\",\"onUpdate\",\"onRemove\",\"onMove\",\"onMoving\",\"onAddGroup\",\"onMoveGroup\",\"onRemoveGroup\"]).call(n,(function(i){var n=t[i];if(n){var o;if(\"function\"!=typeof n)throw new Error($n(o=\"option \".concat(i,\" must be a function \")).call(o,i,\"(item, callback)\"));e.options[i]=n}})),t.cluster?(jo(this.options,{cluster:t.cluster}),this.clusterGenerator||(this.clusterGenerator=new Op(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&&ko(Nd).call(Nd,this.items,(function(t){t.dirty=!0,t.displayed&&t.redraw()})),t.restackGroups&&ko(Nd).call(Nd,this.groups,(function(t,e){e!==Ip&&(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=Br((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=[]),Qn(t)||(t=[t]);var i,n=Ep(ir(e=this.selection).call(e,(function(e){return-1===Sr(t).call(t,e)})));try{for(n.s();!(i=n.n()).done;){var o=i.value,r=this.getItemById(o);r&&r.unselect()}}catch(t){n.e(t)}finally{n.f()}this.selection=Un(t);var s,a=Ep(t);try{for(a.s();!(s=a.n()).done;){var l=s.value,h=this.getItemById(l);h&&h.select()}}catch(t){a.e(t)}finally{a.f()}}},{key:\"getSelection\",value:function(){var t;return $n(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 o in this.groups)if(this.groups.hasOwnProperty(o)){var r,s=this.groups[o],a=Ep(s.isVisible?s.visibleItems:[]);try{for(a.s();!(r=a.n()).done;){var l=r.value;this.options.rtl?l.right<e&&l.right+l.width>t&&n.push(l.id):l.left<t&&l.left+l.width>e&&n.push(l.id)}}catch(t){a.e(t)}finally{a.f()}}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]||Bc(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){No(e).call(e,i,1);break}}},{key:\"redraw\",value:function(){var t=this,e=this.options.margin,i=this.body.range,n=Nd.option.asSize,o=this.options,r=o.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,h=l!=this.lastVisibleInterval||this.props.width!=this.props.lastWidth,u=i.start!=this.lastRangeStart,d=o.stack!=this.lastStack,c=o.stackSubgroups!=this.lastStackSubgroups,p=h||u||d||c;this.lastVisibleInterval=l,this.lastRangeStart=i.start,this.lastStack=o.stack,this.lastStackSubgroups=o.stackSubgroups,this.props.lastWidth=this.props.width;var f=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[Ip].redraw(i,v,p);var b={},_=0;return ko(Nd).call(Nd,this.groups,(function(t,e){if(e!==Ip){var n=t==f?m:v;b[e]=t.redraw(i,n,p,!0),_=b[e].length}})),_>0&&function(){for(var e={},i=function(t){ko(Nd).call(Nd,b,(function(i,n){e[n]=i[t]()}))},n=0;n<_;n++)i(n);ko(Nd).call(Nd,t.groups,(function(t,i){if(i!==Ip){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\"==r?this.body.domProps.top.height+this.body.domProps.border.top:this.body.domProps.top.height+this.body.domProps.centerContainer.height),this.options.rtl?this.dom.axis.style.right=\"0\":this.dom.axis.style.left=\"0\",this.hammer.get(\"press\").set({time:this.options.longSelectPressTime}),this.initialItemSetDrawn=!0,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[Lp]||null}},{key:\"_updateUngrouped\",value:function(){var t,e,i=this.groups[Lp];if(this.groupsData){if(i)for(e in i.dispose(),delete this.groups[Lp],this.items)if(this.items.hasOwnProperty(e)){(t=this.items[e]).parent&&t.parent.remove(t);var n=this.getGroupId(t.data),o=this.groups[n];o&&o.add(t)||t.hide()}}else if(!i){for(e in i=new ip(null,null,this),this.groups[Lp]=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(!Ou(\"id\",t))throw new TypeError(\"Data must implement the interface of DataSet or DataView\");this.itemsData=Id(t)}else this.itemsData=null;if(n&&(ko(Nd).call(Nd,this.itemListeners,(function(t,e){n.off(e,t)})),n.dispose(),e=n.getIds(),this._onRemove(e)),this.itemsData){var o=this.id;ko(Nd).call(Nd,this.itemListeners,(function(t,e){i.itemsData.on(e,t,o)})),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&&(ko(Nd).call(Nd,this.groupListeners,(function(t,e){i.groupsData.off(e,t)})),e=this.groupsData.getIds(),this.groupsData=null,this._onRemoveGroups(e)),t){if(!Ou(\"id\",t))throw new TypeError(\"Data must implement the interface of DataSet or DataView\");this.groupsData=t}else this.groupsData=null;if(this.groupsData){var n,o=this.groupsData.getDataSet();ko(n=o.get()).call(n,(function(t){var e;t.nestedGroups&&ko(e=t.nestedGroups).call(e,(function(e){var i=o.get(e);i.nestedInGroup=t.id,0==t.showNested&&(i.visible=!1),o.update(i)}))}));var r=this.id;ko(Nd).call(Nd,this.groupListeners,(function(t,e){i.groupsData.on(e,t,r)})),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?Ip:this.groupsData?t.group:Lp}},{key:\"_onUpdate\",value:function(t){var e=this,n=this;ko(t).call(t,(function(t){var o,r=n.itemsData.get(t),s=n.items[t],a=r?n._getType(r):null,l=i.types[a];if(s&&(l&&s instanceof l?n._updateItem(s,r):(o=s.selected,n._removeItem(s),s=null)),!s&&r){if(!l)throw new TypeError(\'Unknown item type \"\'.concat(a,\'\"\'));(s=new l(r,n.conversion,n.options)).id=t,n._addItem(s),o&&(e.selection.push(t),s.select())}})),this._order(),this.options.cluster&&(this.clusterGenerator.setItems(this.items,{applyOnChangedLevel:!1}),this._clusterItems()),this.body.emitter.emit(\"_change\",{queue:!0})}},{key:\"_onRemove\",value:function(t){var e=0,i=this;ko(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(){ko(Nd).call(Nd,this.groups,(function(t){t.order()}))}},{key:\"_onUpdateGroups\",value:function(t){this._onAddGroups(t)}},{key:\"_onAddGroups\",value:function(t){var e=this;ko(t).call(t,(function(t){var i=e.groupsData.get(t),n=e.groups[t];if(n)n.setData(i);else{if(t==Lp||t==Ip)throw new Error(\"Illegal group id. \".concat(t,\" is a reserved id.\"));var o=Ar(e.options);for(var r in Nd.extend(o,{height:null}),n=new ip(t,i,e),e.groups[t]=n,e.items)if(e.items.hasOwnProperty(r)){var s=e.items[r];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;ko(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=!Nd.equalArray(t,this.groupIds);if(e){var i=this.groups;ko(t).call(t,(function(t){i[t].hide()})),ko(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 ko(i).call(i,(function(i){if(n.push(i),e.groupsData.get(i).nestedGroups){var o,r=oo(o=e.groupsData.get({filter:function(t){return t.nestedInGroup==i},order:e.options.groupOrder})).call(o,(function(t){return t.id}));n=$n(n).call(n,t(e,r))}})),n}(this,ir(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=Sr(e=this.selection).call(e,t.id);-1!=n&&No(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 pp&&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,o=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 r=this.touchParams.dragLeftItem,s=this.touchParams.dragRightItem;if(this.touchParams.itemIsDragging=!0,this.touchParams.selectedItem=n,r)i={item:r,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=oo(l).call(l,(function(i){var n=o.items[i],r=o._getGroupIndex(n.data.group);return{item:n,initialX:t.center.x,groupOffset:a-r,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,o=this.body.util.toTime(n),r=this.body.util.getScale(),s=this.body.util.getStep(),a=e?e(o,r,s):o,l={type:\"range\",start:a,end:a,content:\"new item\"},h=fu();l[this.itemsData.idProp]=h;var u=this.groupFromTarget(t);u&&(l.group=u.groupId);var d=new pp(l,this.conversion,this.options);d.id=h,d.data=this._cloneItemData(l),this._addItem(d),this.touchParams.selectedItem=d;var c={item:d,initialX:t.center.x,data:d.data};this.options.rtl?c.dragLeft=!0:c.dragRight=!0,this.touchParams.itemProps=[c],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 o;t.stopPropagation();var r=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,h=this.body.util.getScale(),u=this.body.util.getStep(),d=this.touchParams.selectedItem,c=(this.options.editable.overrideItems||null==d.editable)&&this.options.editable.updateGroup||!this.options.editable.overrideItems&&null!=d.editable&&d.editable.updateGroup,p=null;if(c&&d&&null!=d.data.group){var f=r.groupFromTarget(t);f&&(p=this._getGroupIndex(f.groupId))}ko(o=this.touchParams.itemProps).call(o,(function(i){var n,o,a,f,m,v=r.body.util.toTime(t.center.x-l),g=r.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||r.options.editable.overrideItems){if((e.options.editable.overrideItems||null==d.editable)&&e.options.editable.updateTime||!e.options.editable.overrideItems&&null!=d.editable&&d.editable.updateTime)if(i.dragLeft)e.options.rtl?null!=y.end&&(a=Nd.convert(i.data.end,\"Date\"),m=new Date(a.valueOf()+n),y.end=s?s(m,h,u):m):null!=y.start&&(o=Nd.convert(i.data.start,\"Date\"),f=new Date(o.valueOf()+n),y.start=s?s(f,h,u):f);else if(i.dragRight)e.options.rtl?null!=y.start&&(o=Nd.convert(i.data.start,\"Date\"),f=new Date(o.valueOf()+n),y.start=s?s(f,h,u):f):null!=y.end&&(a=Nd.convert(i.data.end,\"Date\"),m=new Date(a.valueOf()+n),y.end=s?s(m,h,u):m);else if(null!=y.start)if(o=Nd.convert(i.data.start,\"Date\").valueOf(),f=new Date(o+n),null!=y.end){var b=(a=Nd.convert(i.data.end,\"Date\")).valueOf()-o.valueOf();y.start=s?s(f,h,u):f,y.end=new Date(y.start.valueOf()+b)}else y.start=s?s(f,h,u):f;if(c&&!i.dragLeft&&!i.dragRight&&null!=p&&null!=y.group){var _=p-i.groupOffset;_=Math.max(0,_),_=Math.min(r.groupIds.length-1,_),y.group=r.groupIds[_]}y=e._cloneItemData(y),r.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,ko(n).call(n,(function(t){var n=t.item.id;if(null!=i.itemsData.get(n)){var o=e._cloneItemData(t.item.data);i.options.onMove(o,(function(o){o?(o[e.itemsData.idProp]=n,e.itemsData.update(o)):(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);Br((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 o=n.get(t.groupId);o.showNested=t.showNested;for(var r=t.nestedGroups,s=r;s.length>0;){var a=s;s=[];for(var l=0;l<a.length;l++){var h=n.get(a[l]);h.nestedGroups&&(s=$n(s).call(s,h.nestedGroups))}s.length>0&&(r=$n(r).call(r,s))}var u=oo(e=n.get(r)).call(e,(function(t){return null==t.visible&&(t.visible=!0),t.visible=!!o.showNested,t}));n.update($n(u).call(u,o)),o.showNested?(Nd.removeClassName(t.dom.label,\"collapsed\"),Nd.addClassName(t.dom.label,\"expanded\")):(Nd.removeClassName(t.dom.label,\"expanded\"),Nd.addClassName(t.dom.label,\"collapsed\"))}}},{key:\"toggleGroupDragClassName\",value:function(t){t.dom.label.classList.toggle(\"vis-group-is-dragging\"),t.dom.foreground.classList.toggle(\"vis-group-is-dragging\")}},{key:\"_onGroupDragStart\",value:function(t){this.groupTouchParams.isDragging||this.options.groupEditable.order&&(this.groupTouchParams.group=this.groupFromTarget(t),this.groupTouchParams.group&&(t.stopPropagation(),this.groupTouchParams.isDragging=!0,this.toggleGroupDragClassName(this.groupTouchParams.group),this.groupTouchParams.originalOrder=this.groupsData.getIds({order:this.options.groupOrder})))}},{key:\"_onGroupDrag\",value:function(t){if(this.options.groupEditable.order&&this.groupTouchParams.group){t.stopPropagation();var e=this.groupsData.getDataSet(),i=this.groupFromTarget(t);if(i&&i.height!=this.groupTouchParams.group.height){var n=i.top<this.groupTouchParams.group.top,o=t.center?t.center.y:t.clientY,r=i.dom.foreground.getBoundingClientRect(),s=this.groupTouchParams.group.height;if(n){if(r.top+s<o)return}else{var a=i.height;if(r.top+a-s>o)return}}if(i&&i!=this.groupTouchParams.group){var l=e.get(i.groupId),h=e.get(this.groupTouchParams.group.groupId);h&&l&&(this.options.groupOrderSwap(h,l,e),e.update(h),e.update(l));var u=e.getIds({order:this.options.groupOrder});if(!Nd.equalArray(u,this.groupTouchParams.originalOrder))for(var d=this.groupTouchParams.originalOrder,c=this.groupTouchParams.group.groupId,p=Math.min(d.length,u.length),f=0,m=0,v=0;f<p;){for(;f+m<p&&f+v<p&&u[f+m]==d[f+v];)f++;if(f+m>=p)break;if(u[f+m]==c)m=1;else if(d[f+v]==c)v=1;else{var g=Sr(u).call(u,d[f+v]),y=e.get(u[f+m]),b=e.get(d[f+v]);this.options.groupOrderSwap(y,b,e),e.update(y),e.update(b);var _=u[f+m];u[f+m]=d[f+v],u[g]=_,f++}}}}}},{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(),o=Nd.extend({},n.get(i));e.options.onMoveGroup(o,(function(t){if(t)t[n._idProp]=i,n.update(t);else{var o=n.getIds({order:e.options.groupOrder});if(!Nd.equalArray(o,e.groupTouchParams.originalOrder))for(var r=e.groupTouchParams.originalOrder,s=Math.min(r.length,o.length),a=0;a<s;){for(;a<s&&o[a]==r[a];)a++;if(a>=s)break;var l=Sr(o).call(o,r[a]),h=n.get(o[a]),u=n.get(r[a]);e.options.groupOrderSwap(h,u,n),n.update(h),n.update(u);var d=o[a];o[a]=r[a],o[l]=d,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(),o=this.itemFromTarget(t),r=o&&o.selectable?[o.id]:[];this.setSelection(r);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 vp(this.body.dom.root,this.options.tooltip.overflowMethod||\"flip\")),this.popup.setText(i);var n=this.body.dom.centerContainer,o=n.getBoundingClientRect();this.popup.setPosition(t.clientX-o.left+n.offsetLeft,t.clientY-o.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,o=this.options.snap||null,r=this.dom.frame.getBoundingClientRect(),s=this.options.rtl?r.right-t.center.x:t.center.x-r.left,a=this.body.util.toTime(s),l=this.body.util.getScale(),h=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:o?o(a,l,h):a,i.type=i.type||\"box\",i[this.itemsData.idProp]=i.id||fu(),\"range\"!=i.type||i.end||(e=this.body.util.toTime(s+this.props.width/5),i.end=o?o(e,l,h):e)):((i={start:o?o(a,l,h):a,content:\"new item\"})[this.itemsData.idProp]=fu(),\"range\"===this.options.type&&(e=this.body.util.toTime(s+this.props.width/5),i.end=o?o(e,l,h):e));var u=this.groupFromTarget(t);u&&(i.group=u.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 e=this;if(this.options.selectable){var n=this.itemFromTarget(t);if(n){var o=this.options.multiselect?this.getSelection():[];if((t.srcEvent&&t.srcEvent.shiftKey||!1||this.options.sequentialSelection)&&this.options.multiselect){var r=this.itemsData.get(n.id).group,s=void 0;this.options.multiselectPerGroup&&o.length>0&&(s=this.itemsData.get(o[0]).group),this.options.multiselectPerGroup&&null!=s&&s!=r||o.push(n.id);var a=i._getItemRange(this.itemsData.get(o));if(!this.options.multiselectPerGroup||s==r)for(var l in o=[],this.items)if(this.items.hasOwnProperty(l)){var h=this.items[l],u=h.data.start,d=void 0!==h.data.end?h.data.end:u;!(u>=a.min&&d<=a.max)||this.options.multiselectPerGroup&&s!=this.itemsData.get(h.id).group||h instanceof mp||o.push(h.id)}}else{var c=Sr(o).call(o,n.id);-1==c?o.push(n.id):No(o).call(o,c,1)}var p=ir(o).call(o,(function(t){return e.getItemById(t).selectable}));this.setSelection(p),this.body.emitter.emit(\"select\",{items:this.getSelection(),event:t})}}}},{key:\"itemFromElement\",value:function(t){for(var e=t;e;){if(e.hasOwnProperty(\"vis-item\"))return e[\"vis-item\"];e=e.parentNode}return null}},{key:\"itemFromTarget\",value:function(t){return this.itemFromElement(t.target)}},{key:\"itemFromRelatedTarget\",value:function(t){return this.itemFromElement(t.relatedTarget)}},{key:\"groupFromTarget\",value:function(t){var e=t.center?t.center.y:t.clientY,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 o=i[n],r=this.groups[o],s=r.dom.foreground,a=s.getBoundingClientRect();if(e>=a.top&&e<a.top+s.offsetHeight)return r;if(\"top\"===this.options.orientation.item){if(n===this.groupIds.length-1&&e>a.top)return r}else if(0===n&&e<a.top+s.offset)return r}return null}},{key:\"_cloneItemData\",value:function(t,e){var i=Nd.extend({},t);return e||(e=this.itemsData.type),null!=i.start&&(i.start=Nd.convert(i.start,e&&e.start||\"Date\")),null!=i.end&&(i.end=Nd.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,n=Ep(e);try{for(n.s();!(i=n.n()).done;){i.value.attach()}}catch(t){n.e(t)}finally{n.f()}this.clusters=e}this._updateClusters(e)}}}},{key:\"_detachAllClusters\",value:function(){if(this.options.cluster&&this.clusters&&this.clusters.length){var t,e=Ep(this.clusters);try{for(e.s();!(t=e.n()).done;){t.value.detach()}}catch(t){e.e(t)}finally{e.f()}}}},{key:\"_updateClusters\",value:function(t){if(this.clusters&&this.clusters.length){var e,i,n=new Rh(oo(t).call(t,(function(t){return t.id}))),o=!1,r=Ep(ir(e=this.clusters).call(e,(function(t){return!n.has(t.id)})));try{for(r.s();!(i=r.n()).done;){var s,a,l=i.value,h=Sr(s=this.selection).call(s,l.id);if(-1!==h)l.unselect(),No(a=this.selection).call(a,h,1),o=!0}}catch(t){r.e(t)}finally{r.f()}if(o){var u=this.getSelection();this.body.emitter.emit(\"select\",{items:u,event:event})}}this.clusters=t||[]}}],[{key:\"_getItemRange\",value:function(t){var e=null,i=null;return ko(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}}]),i}(Hd);Np.types={background:mp,box:hp,range:pp,point:dp},Np.prototype._onAdd=Np.prototype._onUpdate;var Fp,Rp=!1,Yp=\"background: #FFeeee; color: #dd0000\",jp=function(){function t(){dn(this,t)}return fn(t,null,[{key:\"validate\",value:function(e,i,n){Rp=!1,Fp=i;var o=i;return void 0!==n&&(o=i[n]),t.parse(e,o,[]),Rp}},{key:\"parse\",value:function(e,i,n){for(var o in e)e.hasOwnProperty(o)&&t.check(o,e,i,n)}},{key:\"check\",value:function(e,i,n,o){if(void 0!==n[e]||void 0!==n.__any__){var r=e,s=!0;void 0===n[e]&&void 0!==n.__any__&&(r=\"__any__\",s=\"object\"===t.getType(i[e]));var a=n[r];s&&void 0!==a.__type__&&(a=a.__type__),t.checkFields(e,i,n,r,a,o)}else t.getSuggestion(e,n,o)}},{key:\"checkFields\",value:function(e,i,n,o,r,s){var a=function(i){console.log(\"%c\"+i+t.printLocation(s,e),Yp)},l=t.getType(i[e]),h=r[l];void 0!==h?\"array\"===t.getType(h)&&-1===Sr(h).call(h,i[e])?(a(\'Invalid option detected in \"\'+e+\'\". Allowed values are:\'+t.print(h)+\' not \"\'+i[e]+\'\". \'),Rp=!0):\"object\"===l&&\"__any__\"!==o&&(s=Nd.copyAndExtendArray(s,e),t.parse(i[e],n[o],s)):void 0===r.any&&(a(\'Invalid type received for \"\'+e+\'\". Expected: \'+t.print(so(r))+\". Received [\"+l+\'] \"\'+i[e]+\'\"\'),Rp=!0)}},{key:\"getType\",value:function(t){var e=Vn(t);return\"object\"===e?null===t?\"null\":t instanceof Boolean?\"boolean\":t instanceof Number?\"number\":t instanceof String?\"string\":Qn(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 o,r=t.findInOptions(e,i,n,!1),s=t.findInOptions(e,Fp,[],!0);o=void 0!==r.indexMatch?\" in \"+t.printLocation(r.path,e,\"\")+\'Perhaps it was incomplete? Did you mean: \"\'+r.indexMatch+\'\"?\\n\\n\':s.distance<=4&&r.distance>s.distance?\" in \"+t.printLocation(r.path,e,\"\")+\"Perhaps it was misplaced? Matching option found at: \"+t.printLocation(s.path,s.closestMatch,\"\"):r.distance<=8?\'. Did you mean \"\'+r.closestMatch+\'\"?\'+t.printLocation(r.path,e):\". Did you mean one of these: \"+t.print(so(i))+t.printLocation(n,e),console.log(\'%cUnknown option detected: \"\'+e+\'\"\'+o,Yp),Rp=!0}},{key:\"findInOptions\",value:function(e,i,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=1e9,s=\"\",a=[],l=e.toLowerCase(),h=void 0;for(var u in i){var d=void 0;if(void 0!==i[u].__type__&&!0===o){var c=t.findInOptions(e,i[u],Nd.copyAndExtendArray(n,u));r>c.distance&&(s=c.closestMatch,a=c.path,r=c.distance,h=c.indexMatch)}else{var p;-1!==Sr(p=u.toLowerCase()).call(p,l)&&(h=u),r>(d=t.levenshteinDistance(e,u))&&(s=u,a=Nd.copyArray(n),r=d)}}return{closestMatch:s,path:a,distance:r,indexMatch:h}}},{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\",o=0;o<t.length;o++){for(var r=0;r<o+1;r++)n+=\"  \";n+=t[o]+\": {\\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 jr(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,o=[];for(i=0;i<=e.length;i++)o[i]=[i];for(n=0;n<=t.length;n++)o[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)?o[i][n]=o[i-1][n-1]:o[i][n]=Math.min(o[i-1][n-1]+1,Math.min(o[i][n-1]+1,o[i-1][n]+1));return o[e.length][t.length]}}]),t}(),Hp=\"string\",zp=\"boolean\",Gp=\"number\",Bp=\"array\",Wp=\"date\",Vp=\"object\",Up=\"moment\",Xp={configure:{enabled:{boolean:zp},filter:{boolean:zp,function:\"function\"},container:{dom:\"dom\"},__type__:{object:Vp,boolean:zp,function:\"function\"}},align:{string:Hp},alignCurrentTime:{string:Hp,undefined:\"undefined\"},rtl:{boolean:zp,undefined:\"undefined\"},rollingMode:{follow:{boolean:zp},offset:{number:Gp,undefined:\"undefined\"},__type__:{object:Vp}},onTimeout:{timeoutMs:{number:Gp},callback:{function:\"function\"},__type__:{object:Vp}},verticalScroll:{boolean:zp,undefined:\"undefined\"},horizontalScroll:{boolean:zp,undefined:\"undefined\"},autoResize:{boolean:zp},throttleRedraw:{number:Gp},clickToUse:{boolean:zp},dataAttributes:{string:Hp,array:Bp},editable:{add:{boolean:zp,undefined:\"undefined\"},remove:{boolean:zp,undefined:\"undefined\"},updateGroup:{boolean:zp,undefined:\"undefined\"},updateTime:{boolean:zp,undefined:\"undefined\"},overrideItems:{boolean:zp,undefined:\"undefined\"},__type__:{boolean:zp,object:Vp}},end:{number:Gp,date:Wp,string:Hp,moment:Up},format:{minorLabels:{millisecond:{string:Hp,undefined:\"undefined\"},second:{string:Hp,undefined:\"undefined\"},minute:{string:Hp,undefined:\"undefined\"},hour:{string:Hp,undefined:\"undefined\"},weekday:{string:Hp,undefined:\"undefined\"},day:{string:Hp,undefined:\"undefined\"},week:{string:Hp,undefined:\"undefined\"},month:{string:Hp,undefined:\"undefined\"},year:{string:Hp,undefined:\"undefined\"},__type__:{object:Vp,function:\"function\"}},majorLabels:{millisecond:{string:Hp,undefined:\"undefined\"},second:{string:Hp,undefined:\"undefined\"},minute:{string:Hp,undefined:\"undefined\"},hour:{string:Hp,undefined:\"undefined\"},weekday:{string:Hp,undefined:\"undefined\"},day:{string:Hp,undefined:\"undefined\"},week:{string:Hp,undefined:\"undefined\"},month:{string:Hp,undefined:\"undefined\"},year:{string:Hp,undefined:\"undefined\"},__type__:{object:Vp,function:\"function\"}},__type__:{object:Vp}},moment:{function:\"function\"},groupHeightMode:{string:Hp},groupOrder:{string:Hp,function:\"function\"},groupEditable:{add:{boolean:zp,undefined:\"undefined\"},remove:{boolean:zp,undefined:\"undefined\"},order:{boolean:zp,undefined:\"undefined\"},__type__:{boolean:zp,object:Vp}},groupOrderSwap:{function:\"function\"},height:{string:Hp,number:Gp},hiddenDates:{start:{date:Wp,number:Gp,string:Hp,moment:Up},end:{date:Wp,number:Gp,string:Hp,moment:Up},repeat:{string:Hp},__type__:{object:Vp,array:Bp}},itemsAlwaysDraggable:{item:{boolean:zp,undefined:\"undefined\"},range:{boolean:zp,undefined:\"undefined\"},__type__:{boolean:zp,object:Vp}},limitSize:{boolean:zp},locale:{string:Hp},locales:{__any__:{any:\"any\"},__type__:{object:Vp}},longSelectPressTime:{number:Gp},margin:{axis:{number:Gp},item:{horizontal:{number:Gp,undefined:\"undefined\"},vertical:{number:Gp,undefined:\"undefined\"},__type__:{object:Vp,number:Gp}},__type__:{object:Vp,number:Gp}},max:{date:Wp,number:Gp,string:Hp,moment:Up},maxHeight:{number:Gp,string:Hp},maxMinorChars:{number:Gp},min:{date:Wp,number:Gp,string:Hp,moment:Up},minHeight:{number:Gp,string:Hp},moveable:{boolean:zp},multiselect:{boolean:zp},multiselectPerGroup:{boolean:zp},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:Hp,undefined:\"undefined\"},item:{string:Hp,undefined:\"undefined\"},__type__:{string:Hp,object:Vp}},selectable:{boolean:zp},sequentialSelection:{boolean:zp},showCurrentTime:{boolean:zp},showMajorLabels:{boolean:zp},showMinorLabels:{boolean:zp},showWeekScale:{boolean:zp},stack:{boolean:zp},stackSubgroups:{boolean:zp},cluster:{maxItems:{number:Gp,undefined:\"undefined\"},titleTemplate:{string:Hp,undefined:\"undefined\"},clusterCriteria:{function:\"function\",undefined:\"undefined\"},showStipes:{boolean:zp,undefined:\"undefined\"},fitOnDoubleClick:{boolean:zp,undefined:\"undefined\"},__type__:{boolean:zp,object:Vp}},snap:{function:\"function\",null:\"null\"},start:{date:Wp,number:Gp,string:Hp,moment:Up},template:{function:\"function\"},loadingScreenTemplate:{function:\"function\"},groupTemplate:{function:\"function\"},visibleFrameTemplate:{string:Hp,function:\"function\"},showTooltips:{boolean:zp},tooltip:{followMouse:{boolean:zp},overflowMethod:{string:[\"cap\",\"flip\",\"none\"]},delay:{number:Gp},template:{function:\"function\"},__type__:{object:Vp}},tooltipOnItemUpdateTime:{template:{function:\"function\"},__type__:{boolean:zp,object:Vp}},timeAxis:{scale:{string:Hp,undefined:\"undefined\"},step:{number:Gp,undefined:\"undefined\"},__type__:{object:Vp}},type:{string:Hp},width:{string:Hp,number:Gp},preferZoom:{boolean:zp},zoomable:{boolean:zp},zoomKey:{string:[\"ctrlKey\",\"altKey\",\"shiftKey\",\"metaKey\",\"\"]},zoomFriction:{number:Gp},zoomMax:{number:Gp},zoomMin:{number:Gp},__type__:{object:Vp}},qp={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]}},Zp={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\"},$p=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;dn(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 fn(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 Zp[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===Nd.isString(t)){if(!0===Nd.isValidRGB(t)){var o=t.substr(4).substr(0,t.length-5).split(\",\");i={r:o[0],g:o[1],b:o[2],a:1}}else if(!0===Nd.isValidRGBA(t)){var r=t.substr(5).substr(0,t.length-6).split(\",\");i={r:r[0],g:r[1],b:r[2],a:r[3]}}else if(!0===Nd.isValidHex(t)){var s=Nd.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: \"+jr(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=Nd.extend({},this.color)),!0===this.applied&&this.updateCallback(this.initialColor),this.frame.style.display=\"none\",Br((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=Nd.extend({},t)),this.color=t;var i=Nd.RGBToHSV(t.r,t.g,t.b),n=2*Math.PI,o=this.r*i.s,r=this.centerCoordinates.x+o*Math.sin(n*i.h),s=this.centerCoordinates.y+o*Math.cos(n*i.h);this.colorPickerSelector.style.left=r-.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=Nd.RGBToHSV(this.color.r,this.color.g,this.color.b);e.v=t/100;var i=Nd.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=Nd.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,o=this.colorPickerCanvas.clientHeight;i.clearRect(0,0,n,o),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),Ur(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 o=this.colorPickerCanvas.getContext(\"2d\");this.pixelRatio=(window.devicePixelRatio||1)/(o.webkitBackingStorePixelRatio||o.mozBackingStorePixelRatio||o.msBackingStorePixelRatio||o.oBackingStorePixelRatio||o.backingStorePixelRatio||1),this.colorPickerCanvas.getContext(\"2d\").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var r=document.createElement(\"DIV\");r.style.color=\"red\",r.style.fontWeight=\"bold\",r.style.padding=\"10px\",r.innerHTML=\"Error: your browser does not support HTML canvas\",this.colorPickerCanvas.appendChild(r)}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=mo(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=mo(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=mo(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=mo(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 uc(this.colorPickerCanvas),this.hammer.get(\"pinch\").set({enable:!0}),dc(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,o,r=this.colorPickerCanvas.clientWidth,s=this.colorPickerCanvas.clientHeight;t.clearRect(0,0,r,s),this.centerCoordinates={x:.5*r,y:.5*s},this.r=.49*r;var a,l=2*Math.PI/360,h=1/this.r;for(n=0;n<360;n++)for(o=0;o<this.r;o++)e=this.centerCoordinates.x+o*Math.sin(l*n),i=this.centerCoordinates.y+o*Math.cos(l*n),a=Nd.HSVToRGB(.002777777777777778*n,o*h,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,r,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,o=.5*this.colorPickerDiv.clientHeight,r=.5*this.colorPickerDiv.clientWidth,s=i-r,a=n-o,l=Math.atan2(s,a),h=.98*Math.min(Math.sqrt(s*s+a*a),r),u=Math.cos(l)*h+o,d=Math.sin(l)*h+r;this.colorPickerSelector.style.top=u-.5*this.colorPickerSelector.clientHeight+\"px\",this.colorPickerSelector.style.left=d-.5*this.colorPickerSelector.clientWidth+\"px\";var c=l/(2*Math.PI);c=c<0?c+1:c;var p=h/this.r,f=Nd.RGBToHSV(this.color.r,this.color.g,this.color.b);f.h=c,f.s=p;var m=Nd.HSVToRGB(f.h,f.s,f.v);m.a=this.color.a,this.color=m,this.initialColorDiv.style.backgroundColor=\"rgba(\"+this.initialColor.r+\",\"+this.initialColor.g+\",\"+this.initialColor.b+\",\"+this.initialColor.a+\")\",this.newColorDiv.style.backgroundColor=\"rgba(\"+this.color.r+\",\"+this.color.g+\",\"+this.color.b+\",\"+this.color.a+\")\"}}]),t}();pc(\'div.vis-configuration{position:relative;display:block;float:left;font-size:12px}div.vis-configuration-wrapper{display:block;width:700px}div.vis-configuration-wrapper:after{clear:both;content:\"\";display:block}div.vis-configuration.vis-config-option-container{display:block;width:495px;background-color:#fff;border:2px solid #f7f8fa;border-radius:4px;margin-top:20px;left:10px;padding-left:5px}div.vis-configuration.vis-config-button{display:block;width:495px;height:25px;vertical-align:middle;line-height:25px;background-color:#f7f8fa;border:2px solid #ceced0;border-radius:4px;margin-top:20px;left:10px;padding-left:5px;cursor:pointer;margin-bottom:30px}div.vis-configuration.vis-config-button.hover{background-color:#4588e6;border:2px solid #214373;color:#fff}div.vis-configuration.vis-config-item{display:block;float:left;width:495px;height:25px;vertical-align:middle;line-height:25px}div.vis-configuration.vis-config-item.vis-config-s2{left:10px;background-color:#f7f8fa;padding-left:5px;border-radius:3px}div.vis-configuration.vis-config-item.vis-config-s3{left:20px;background-color:#e4e9f0;padding-left:5px;border-radius:3px}div.vis-configuration.vis-config-item.vis-config-s4{left:30px;background-color:#cfd8e6;padding-left:5px;border-radius:3px}div.vis-configuration.vis-config-header{font-size:18px;font-weight:700}div.vis-configuration.vis-config-label{width:120px;height:25px;line-height:25px}div.vis-configuration.vis-config-label.vis-config-s3{width:110px}div.vis-configuration.vis-config-label.vis-config-s4{width:100px}div.vis-configuration.vis-config-colorBlock{top:1px;width:30px;height:19px;border:1px solid #444;border-radius:2px;padding:0;margin:0;cursor:pointer}input.vis-configuration.vis-config-checkbox{left:-5px}input.vis-configuration.vis-config-rangeinput{position:relative;top:-5px;width:60px;padding:1px;margin:0;pointer-events:none}input.vis-configuration.vis-config-range{-webkit-appearance:none;border:0 solid #fff;background-color:transparent;width:300px;height:20px}input.vis-configuration.vis-config-range::-webkit-slider-runnable-track{width:300px;height:5px;background:#dedede;background:-moz-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#dedede),color-stop(99%,#c8c8c8));background:-webkit-linear-gradient(top,#dedede,#c8c8c8 99%);background:-o-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:-ms-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:linear-gradient(180deg,#dedede 0,#c8c8c8 99%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=\"#dedede\",endColorstr=\"#c8c8c8\",GradientType=0);border:1px solid #999;box-shadow:0 0 3px 0 #aaa;border-radius:3px}input.vis-configuration.vis-config-range::-webkit-slider-thumb{-webkit-appearance:none;border:1px solid #14334b;height:17px;width:17px;border-radius:50%;background:#3876c2;background:-moz-linear-gradient(top,#3876c2 0,#385380 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#3876c2),color-stop(100%,#385380));background:-webkit-linear-gradient(top,#3876c2,#385380);background:-o-linear-gradient(top,#3876c2 0,#385380 100%);background:-ms-linear-gradient(top,#3876c2 0,#385380 100%);background:linear-gradient(180deg,#3876c2 0,#385380);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=\"#3876c2\",endColorstr=\"#385380\",GradientType=0);box-shadow:0 0 1px 0 #111927;margin-top:-7px}input.vis-configuration.vis-config-range:focus{outline:none}input.vis-configuration.vis-config-range:focus::-webkit-slider-runnable-track{background:#9d9d9d;background:-moz-linear-gradient(top,#9d9d9d 0,#c8c8c8 99%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#9d9d9d),color-stop(99%,#c8c8c8));background:-webkit-linear-gradient(top,#9d9d9d,#c8c8c8 99%);background:-o-linear-gradient(top,#9d9d9d 0,#c8c8c8 99%);background:-ms-linear-gradient(top,#9d9d9d 0,#c8c8c8 99%);background:linear-gradient(180deg,#9d9d9d 0,#c8c8c8 99%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=\"#9d9d9d\",endColorstr=\"#c8c8c8\",GradientType=0)}input.vis-configuration.vis-config-range::-moz-range-track{width:300px;height:10px;background:#dedede;background:-moz-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#dedede),color-stop(99%,#c8c8c8));background:-webkit-linear-gradient(top,#dedede,#c8c8c8 99%);background:-o-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:-ms-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:linear-gradient(180deg,#dedede 0,#c8c8c8 99%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=\"#dedede\",endColorstr=\"#c8c8c8\",GradientType=0);border:1px solid #999;box-shadow:0 0 3px 0 #aaa;border-radius:3px}input.vis-configuration.vis-config-range::-moz-range-thumb{border:none;height:16px;width:16px;border-radius:50%;background:#385380}input.vis-configuration.vis-config-range:-moz-focusring{outline:1px solid #fff;outline-offset:-1px}input.vis-configuration.vis-config-range::-ms-track{width:300px;height:5px;background:transparent;border-color:transparent;border-width:6px 0;color:transparent}input.vis-configuration.vis-config-range::-ms-fill-lower{background:#777;border-radius:10px}input.vis-configuration.vis-config-range::-ms-fill-upper{background:#ddd;border-radius:10px}input.vis-configuration.vis-config-range::-ms-thumb{border:none;height:16px;width:16px;border-radius:50%;background:#385380}input.vis-configuration.vis-config-range:focus::-ms-fill-lower{background:#888}input.vis-configuration.vis-config-range:focus::-ms-fill-upper{background:#ccc}.vis-configuration-popup{position:absolute;background:rgba(57,76,89,.85);border:2px solid #f2faff;line-height:30px;height:30px;width:150px;text-align:center;color:#fff;font-size:14px;border-radius:4px;-webkit-transition:opacity .3s ease-in-out;-moz-transition:opacity .3s ease-in-out;transition:opacity .3s ease-in-out}.vis-configuration-popup:after,.vis-configuration-popup:before{left:100%;top:50%;border:solid transparent;content:\" \";height:0;width:0;position:absolute;pointer-events:none}.vis-configuration-popup:after{border-color:rgba(136,183,213,0) rgba(136,183,213,0) rgba(136,183,213,0) rgba(57,76,89,.85);border-width:8px;margin-top:-8px}.vis-configuration-popup:before{border-color:rgba(194,225,245,0) rgba(194,225,245,0) rgba(194,225,245,0) #f2faff;border-width:12px;margin-top:-12px}\');var Kp=function(){function t(e,i,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;dn(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},Nd.extend(this.options,this.defaultOptions),this.configureOptions=n,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new $p(o),this.wrapper=void 0}return fn(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(Qn(t))this.options.filter=t.join();else if(\"object\"===Vn(t)){if(null==t)throw new TypeError(\"options cannot be null\");void 0!==t.container&&(this.options.container=t.container),void 0!==ir(t)&&(this.options.filter=ir(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===ir(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=ir(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===Sr(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),o=1;o<i;o++)n[o-1]=arguments[o];return ko(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=Nd.xss(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?Nd.xss(\"<i><b>\"+t+\":</b></i>\"):Nd.xss(t+\":\"),n}},{key:\"_makeDropdown\",value:function(t,e,i){var n=document.createElement(\"select\");n.className=\"vis-configuration vis-config-select\";var o=0;void 0!==e&&-1!==Sr(t).call(t,e)&&(o=Sr(t).call(t,e));for(var r=0;r<t.length;r++){var s=document.createElement(\"option\");s.value=t[r],r===o&&(s.selected=\"selected\"),s.innerHTML=t[r],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],o=t[1],r=t[2],s=t[3],a=document.createElement(\"input\");a.className=\"vis-configuration vis-config-range\";try{a.type=\"range\",a.min=o,a.max=r}catch(t){}a.step=s;var l=\"\",h=0;if(void 0!==e){var u=1.2;e<0&&e*u<o?(a.min=Math.ceil(e*u),h=a.min,l=\"range increased\"):e/u<o&&(a.min=Math.ceil(e/u),h=a.min,l=\"range increased\"),e*u>r&&1!==r&&(a.max=Math.ceil(e*u),h=a.max,l=\"range increased\"),a.value=e}else a.value=n;var d=document.createElement(\"input\");d.className=\"vis-configuration vis-config-rangeinput\",d.value=Number(a.value);var c=this;a.onchange=function(){d.value=this.value,c._update(Number(this.value),i)},a.oninput=function(){d.value=this.value};var p=this._makeLabel(i[i.length-1],i),f=this._makeItem(i,p,a,d);\"\"!==l&&this.popupHistory[f]!==h&&(this.popupHistory[f]=h,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=Nd.xss(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=Br((function(){t.popupDiv.html.style.opacity=0}),1500),this.popupDiv.deleteTimeout=Br((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\"===Vn(t)?e!==t.enabled&&this.changedOptions.push({path:i,value:e}):this.changedOptions.push({path:i,value:e})));var o=this;n.onchange=function(){o._update(this.checked,i)};var r=this._makeLabel(i[i.length-1],i);this._makeItem(i,r,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 o=this;n.onchange=function(){o._update(this.value,i)};var r=this._makeLabel(i[i.length-1],i);this._makeItem(i,r,n)}},{key:\"_makeColorField\",value:function(t,e,i){var n=this,o=t[1],r=document.createElement(\"div\");\"none\"!==(e=void 0===e?o:e)?(r.className=\"vis-configuration vis-config-colorBlock\",r.style.backgroundColor=e):r.className=\"vis-configuration vis-config-colorBlock none\",e=void 0===e?o:e,r.onclick=function(){n._showColorPicker(e,r,i)};var s=this._makeLabel(i[i.length-1],i);this._makeItem(i,s,r)}},{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 o=\"rgba(\"+t.r+\",\"+t.g+\",\"+t.b+\",\"+t.a+\")\";e.style.backgroundColor=o,n._update(o,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,o=ir(this.options),r=!1;for(var s in t)if(t.hasOwnProperty(s)){n=!0;var a=t[s],l=Nd.copyAndExtendArray(e,s);if(\"function\"==typeof o&&!1===(n=o(s,e))&&!Qn(a)&&\"string\"!=typeof a&&\"boolean\"!=typeof a&&a instanceof Object&&(this.allowCreation=!1,n=this._handleObject(a,l,!0),this.allowCreation=!1===i),!1!==n){r=!0;var h=this._getValue(l);if(Qn(a))this._handleArray(a,h,l);else if(\"string\"==typeof a)this._makeTextInput(a,h,l);else if(\"boolean\"==typeof a)this._makeCheckbox(a,h,l);else if(a instanceof Object){var u=!0;if(-1!==Sr(e).call(e,\"physics\")&&this.moduleOptions.physics.solver!==s&&(u=!1),!0===u)if(void 0!==a.enabled){var d=Nd.copyAndExtendArray(l,\"enabled\"),c=this._getValue(d);if(!0===c){var p=this._makeLabel(s,l,!0);this._makeItem(l,p),r=this._handleObject(a,l)||r}else this._makeCheckbox(a,c,l)}else{var f=this._makeLabel(s,l,!0);this._makeItem(l,f),r=this._handleObject(a,l)||r}}else console.error(\"dont know how to handle\",a,s,l)}}return r}},{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 o=0;o<e.length;o++)\"global\"!==e[o]&&(void 0===n[e[o]]&&(n[e[o]]={}),o!==e.length-1?n=n[e[o]]:n[e[o]]=t);return i}},{key:\"_printOptions\",value:function(){var t=this.getOptions();this.optionsContainer.innerHTML=\"<pre>var options = \"+jr(t,null,2)+\"</pre>\"}},{key:\"getOptions\",value:function(){for(var t={},e=0;e<this.changedOptions.length;e++)this._constructOptions(this.changedOptions[e].value,this.changedOptions[e].path,t);return t}}]),t}();function Jp(t){var e=function(){if(\"undefined\"==typeof Reflect||!Kl)return!1;if(Kl.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Kl(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=rh(t);if(e){var o=rh(this).constructor;i=Kl(n,arguments,o)}else i=n.apply(this,arguments);return nh(this,i)}}var Qp=function(t){ih(i,t);var e=Jp(i);function i(t,n,o,r){var s,a,l,h,u,d,c,p;if(dn(this,i),(p=e.call(this)).initTime=new Date,p.itemsDone=!1,!(Jl(p)instanceof i))throw new SyntaxError(\"Constructor must be called with the new operator\");if(!Qn(o)&&!Ou(\"id\",o)&&o instanceof Object){var f=r;r=o,o=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 m=Jl(p);if(p.defaultOptions={autoResize:!0,longSelectPressTime:251,orientation:{axis:\"bottom\",item:\"bottom\"},moment:Eu},p.options=Nd.deepExtend({},p.defaultOptions),p._create(t),!r||r&&void 0===r.rtl){var v;p.dom.root.style.visibility=\"hidden\";for(var g=p.dom.root;!v&&g;)v=window.getComputedStyle(g,null).direction,g=g.parentElement;p.options.rtl=v&&\"rtl\"==v.toLowerCase()}else p.options.rtl=r.rtl;r&&(r.rollingMode&&(p.options.rollingMode=r.rollingMode),r.onInitialDrawComplete&&(p.options.onInitialDrawComplete=r.onInitialDrawComplete),r.onTimeout&&(p.options.onTimeout=r.onTimeout),r.loadingScreenTemplate&&(p.options.loadingScreenTemplate=r.loadingScreenTemplate));var y=document.createElement(\"div\");if(p.options.loadingScreenTemplate){var b,_=mo(b=p.options.loadingScreenTemplate).call(b,Jl(p)),w=_(p.dom.loadingScreen);w instanceof Object&&!(w instanceof Element)?_(y):w instanceof Element?(y.innerHTML=\"\",y.appendChild(w)):null!=w&&(y.innerHTML=Nd.xss(w))}function k(t,e){m.hasListeners(t)&&m.emit(t,m.getEventProperties(e))}return p.dom.loadingScreen.appendChild(y),p.components=[],p.body={dom:p.dom,domProps:p.props,emitter:{on:mo(s=p.on).call(s,Jl(p)),off:mo(a=p.off).call(a,Jl(p)),emit:mo(l=p.emit).call(l,Jl(p))},hiddenDates:[],util:{getScale:function(){return m.timeAxis.step.scale},getStep:function(){return m.timeAxis.step.step},toScreen:mo(h=m._toScreen).call(h,m),toGlobalScreen:mo(u=m._toGlobalScreen).call(u,m),toTime:mo(d=m._toTime).call(d,m),toGlobalTime:mo(c=m._toGlobalTime).call(c,m)}},p.range=new rc(p.body,p.options),p.components.push(p.range),p.body.range=p.range,p.timeAxis=new mc(p.body,p.options),p.timeAxis2=null,p.components.push(p.timeAxis),p.currentTime=new Rc(p.body,p.options),p.components.push(p.currentTime),p.itemSet=new Np(p.body,p.options),p.components.push(p.itemSet),p.itemsData=null,p.groupsData=null,p.dom.root.onclick=function(t){k(\"click\",t)},p.dom.root.ondblclick=function(t){k(\"doubleClick\",t)},p.dom.root.oncontextmenu=function(t){k(\"contextmenu\",t)},p.dom.root.onmouseover=function(t){k(\"mouseOver\",t)},window.PointerEvent?(p.dom.root.onpointerdown=function(t){k(\"mouseDown\",t)},p.dom.root.onpointermove=function(t){k(\"mouseMove\",t)},p.dom.root.onpointerup=function(t){k(\"mouseUp\",t)}):(p.dom.root.onmousemove=function(t){k(\"mouseMove\",t)},p.dom.root.onmousedown=function(t){k(\"mouseDown\",t)},p.dom.root.onmouseup=function(t){k(\"mouseUp\",t)}),p.initialFitDone=!1,p.on(\"changed\",(function(){if(null!=m.itemsData){if(!m.initialFitDone&&!m.options.rollingMode)if(m.initialFitDone=!0,null!=m.options.start||null!=m.options.end){if(null==m.options.start||null==m.options.end)var t=m.getItemRange();var e=null!=m.options.start?m.options.start:t.min,i=null!=m.options.end?m.options.end:t.max;m.setWindow(e,i,{animation:!1})}else m.fit({animation:!1});m.initialDrawDone||!m.initialRangeChangeDone&&(m.options.start||m.options.end)&&!m.options.rollingMode||(m.initialDrawDone=!0,m.itemSet.initialDrawDone=!0,m.dom.root.style.visibility=\"visible\",m.dom.loadingScreen.parentNode.removeChild(m.dom.loadingScreen),m.options.onInitialDrawComplete&&Br((function(){return m.options.onInitialDrawComplete()}),0))}})),p.on(\"destroyTimeline\",(function(){m.destroy()})),r&&p.setOptions(r),p.body.emitter.on(\"fit\",(function(t){p._onFit(t),p.redraw()})),o&&p.setGroups(o),n&&p.setItems(n),p._redraw(),p}return fn(i,[{key:\"_createConfigurator\",value:function(){return new Kp(this,this.dom.container,qp)}},{key:\"redraw\",value:function(){this.itemSet&&this.itemSet.markDirty({refreshItems:!0}),this._redraw()}},{key:\"setOptions\",value:function(t){if(!0===jp.validate(t,Xp)&&console.log(\"%cErrors have been found in the supplied options object.\",Yp),Nc.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?Ou(\"id\",t)?Id(t):Id(new Tu(t)):null,this.itemsData&&this.itemsData.dispose(),this.itemsData=e,this.itemSet&&this.itemSet.setItems(null!=e?e.rawDS:null)}},{key:\"setGroups\",value:function(t){var e;t?(Qn(t)&&(t=new Tu(t)),e=new Mu(t,{filter:function(t){return!1!==t.visible}})):e=null,null!=this.groupsData&&\"function\"==typeof this.groupsData.setData&&this.groupsData.setData(null),this.groupsData=e,this.itemSet.setGroups(e)}},{key:\"setData\",value:function(t){t&&t.groups&&this.setGroups(t.groups),t&&t.items&&this.setItems(t.items)}},{key:\"setSelection\",value:function(t,e){this.itemSet&&this.itemSet.setSelection(t),e&&e.focus&&this.focus(t,e)}},{key:\"getSelection\",value:function(){return this.itemSet&&this.itemSet.getSelection()||[]}},{key:\"focus\",value:function(t,e){if(this.itemsData&&null!=t){var i=Qn(t)?t:[t],n=this.itemsData.get(i),o=null,r=null;if(ko(n).call(n,(function(t){var e=t.start.valueOf(),i=\"end\"in t?t.end.valueOf():t.start.valueOf();(null===o||e<o)&&(o=e),(null===r||i>r)&&(r=i)})),null!==o&&null!==r){var s=this,a=this.itemSet.items[i[0]],l=-1*this._getScrollTop(),h=null,u=function(){var t=nf(s,a);t.shouldScroll&&t.itemTop!=h.itemTop&&(s._setScrollTop(-t.scrollOffset),s._redraw())},d=!e||void 0===e.zoom||e.zoom,c=(o+r)/2,p=d?1.1*(r-o):Math.max(this.range.end-this.range.start,1.1*(r-o)),f=!e||void 0===e.animation||e.animation;f||(h={shouldScroll:!1,scrollOffset:-1,itemTop:-1}),this.range.setRange(c-p/2,c+p/2,{animation:f},(function(){u(),Br(u,100)}),(function(t,e,i){var n=nf(s,a);if(!1!==n&&(h||(h=n),h.itemTop!=n.itemTop||h.shouldScroll)){h.itemTop!=n.itemTop&&n.shouldScroll&&(h=n,l=-1*s._getScrollTop());var o=l,r=h.scrollOffset,u=i?r:o+(r-o)*t;s._setScrollTop(-u),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,o=null,r=null;if(null!=i&&null!=n){var s=n-i;s<=0&&(s=10);var a=s/this.props.center.width,l={},h=0;if(ko(Nd).call(Nd,this.itemSet.items,(function(t,e){if(t.groupShowing){l[e]=t.redraw(!0),h=l[e].length}})),h>0)for(var u=function(t){ko(Nd).call(Nd,l,(function(e){e[t]()}))},d=0;d<h;d++)u(d);if(ko(Nd).call(Nd,this.itemSet.items,(function(e){var s,l,h=tf(e),u=ef(e);t.options.rtl?(s=h-(e.getWidthRight()+10)*a,l=u+(e.getWidthLeft()+10)*a):(s=h-(e.getWidthLeft()+10)*a,l=u+(e.getWidthRight()+10)*a),s<i&&(i=s,o=e),l>n&&(n=l,r=e)})),o&&r){var c=o.getWidthLeft()+10,p=r.getWidthRight()+10,f=this.props.center.width-c-p;f>0&&(this.options.rtl?(i=tf(o)-p*s/f,n=ef(r)+c*s/f):(i=tf(o)-c*s/f,n=ef(r)+p*s/f))}}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&&ko(t=this.itemsData).call(t,(function(t){var n=Nd.convert(t.start,\"Date\").valueOf(),o=Nd.convert(null!=t.end?t.end:t.start,\"Date\").valueOf();(null===e||n<e)&&(e=n),(null===i||o>i)&&(i=o)}));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(),o=this.options.rtl?n.right-e:e-n.left,r=i-n.top,s=this.itemSet.itemFromTarget(t),a=this.itemSet.groupFromTarget(t),l=Ic.customTimeFromTarget(t),h=this.itemSet.options.snap||null,u=this.body.util.getScale(),d=this.body.util.getStep(),c=this._toTime(o),p=h?h(c,u,d):c,f=Nd.getTarget(t),m=null;return null!=s?m=\"item\":null!=l?m=\"custom-time\":Nd.hasParent(f,this.timeAxis.dom.foreground)||this.timeAxis2&&Nd.hasParent(f,this.timeAxis2.dom.foreground)?m=\"axis\":Nd.hasParent(f,this.itemSet.dom.labelSet)?m=\"group-label\":Nd.hasParent(f,this.currentTime.bar)?m=\"current-time\":Nd.hasParent(f,this.dom.center)&&(m=\"background\"),{event:t,item:s?s.id:null,isCluster:!!s&&!!s.isCluster,items:s?s.items||[]:null,group:a?a.groupId:null,customTime:l?l.options.id:null,what:m,pageX:t.srcEvent?t.srcEvent.pageX:t.pageX,pageY:t.srcEvent?t.srcEvent.pageY:t.pageY,x:o,y:r,time:c,snappedTime:p}}},{key:\"toggleRollingMode\",value:function(){this.range.rolling?this.range.stopRolling():(null==this.options.rollingMode&&this.setOptions(this.options),this.range.startRolling())}},{key:\"_redraw\",value:function(){Nc.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})}}]),i}(Nc);function tf(t){return Nd.convert(t.data.start,\"Date\").valueOf()}function ef(t){var e=null!=t.data.end?t.data.end:t.data.start;return Nd.convert(e,\"Date\").valueOf()}function nf(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,o=e.parent,r=o.top,s=!0,a=t.timeAxis.options.orientation.axis,l=function(){return\"bottom\"==a?o.height-e.top-e.height:e.top},h=-1*t._getScrollTop(),u=r+l(),d=e.height;return u<h?r+i<=r+l()+d&&(r+=l()-t.itemSet.options.margin.item.vertical):u+d>h+i?r+=l()+d-i+t.itemSet.options.margin.item.vertical:s=!1,{shouldScroll:s,scrollOffset:r=Math.min(r,n-i),itemTop:u}}var of=function(){function t(e,i,n,o,r,s){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],l=arguments.length>7&&void 0!==arguments[7]&&arguments[7];if(dn(this,t),this.majorSteps=[1,2,5,10],this.minorSteps=[.25,.5,1,2],this.customLines=null,this.containerHeight=r,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=o,this.formattingFunction=l,n||o){var h=this,u=function(t){var e=t-t%(h.magnitudefactor*h.minorSteps[h.minorStepIdx]);return t%(h.magnitudefactor*h.minorSteps[h.minorStepIdx])>h.magnitudefactor*h.minorSteps[h.minorStepIdx]*.5?e+h.magnitudefactor*h.minorSteps[h.minorStepIdx]:e};n&&(this._start-=2*this.magnitudefactor*this.minorSteps[this.minorStepIdx],this._start=u(this._start)),o&&(this._end+=this.magnitudefactor*this.minorSteps[this.minorStepIdx],this._end=u(this._end)),this.determineScale()}}return fn(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 o=!1,r=n;Math.abs(r)<=Math.abs(i);r++){this.magnitudefactor=Math.pow(10,r);for(var s=0;s<this.minorSteps.length;s++){if(this.magnitudefactor*this.minorSteps[s]>=e){o=!0,this.minorStepIdx=s;break}}if(!0===o)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,o=this,r=function(){o.magnitudefactor*=2},s=function(){o.magnitudefactor/=2};t.minorStepIdx<=1&&this.minorStepIdx<=1||t.minorStepIdx>1&&this.minorStepIdx>1||(t.minorStepIdx<this.minorStepIdx?(this.minorStepIdx=1,2==e||r(),r()):(this.minorStepIdx=2,1==e||s(),s()));for(var a=t.convertValue(0),l=t.getStep()*t.scale,h=!1,u=0;!h&&u++<5;){this.scale=l/(this.minorSteps[this.minorStepIdx]*this.magnitudefactor);var d=this.containerHeight/this.scale;this._start=i,this._end=this._start+d;var c=this._end*this.scale,p=this.magnitudefactor*this.majorSteps[this.minorStepIdx],f=this.getFirstMajor()-t.getFirstMajor();if(this.zeroAlign){var m=a-c;this._end+=m/this.scale,this._start=this._end-d}else this.autoScaleStart?(this._start-=f/this.scale,this._end=this._start+d):(this._start+=p-f/this.scale,this._end=this._start+d);if(!this.autoScaleEnd&&this._end>n+1e-5)s(),h=!1;else{if(!this.autoScaleStart&&this._start<i-1e-5){if(!(this.zeroAlign&&i>=0)){s(),h=!1;continue}console.warn(\"Can\'t adhere to given \'min\' range, due to zeroalign\")}this.autoScaleStart&&this.autoScaleEnd&&d<n-i?(r(),h=!1):h=!0}}}},{key:\"convertValue\",value:function(t){return this.containerHeight-(t-this._start)*this.scale}},{key:\"screenToValue\",value:function(t){return(this.containerHeight-t)/this.scale+this._start}}]),t}();function rf(t,e){var i;if(void 0===Xn||null==ai(t)){if(Qn(t)||(i=function(t,e){var i;if(!t)return;if(\"string\"==typeof t)return sf(t,e);var n=Kn(i=Object.prototype.toString.call(t)).call(i,8,-1);\"Object\"===n&&t.constructor&&(n=t.constructor.name);if(\"Map\"===n||\"Set\"===n)return Qe(t);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sf(t,e)}(t))||e&&t&&\"number\"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var r,s=!0,a=!1;return{s:function(){i=li(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){a=!0,r=t},f:function(){try{s||null==i.return||i.return()}finally{if(a)throw r}}}}function sf(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function af(t){var e=function(){if(\"undefined\"==typeof Reflect||!Kl)return!1;if(Kl.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Kl(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=rh(t);if(e){var o=rh(this).constructor;i=Kl(n,arguments,o)}else i=n.apply(this,arguments);return nh(this,i)}}pc(\".vis-panel.vis-background.vis-horizontal .vis-grid.vis-horizontal{position:absolute;width:100%;height:0;border-bottom:1px solid}.vis-panel.vis-background.vis-horizontal .vis-grid.vis-minor{border-color:#e5e5e5}.vis-panel.vis-background.vis-horizontal .vis-grid.vis-major{border-color:#bfbfbf}.vis-data-axis .vis-y-axis.vis-major{width:100%;position:absolute;color:#4d4d4d;white-space:nowrap}.vis-data-axis .vis-y-axis.vis-major.vis-measure{padding:0;margin:0;border:0;visibility:hidden;width:auto}.vis-data-axis .vis-y-axis.vis-minor{position:absolute;width:100%;color:#bebebe;white-space:nowrap}.vis-data-axis .vis-y-axis.vis-minor.vis-measure{padding:0;margin:0;border:0;visibility:hidden;width:auto}.vis-data-axis .vis-y-axis.vis-title{position:absolute;color:#4d4d4d;white-space:nowrap;bottom:20px;text-align:center}.vis-data-axis .vis-y-axis.vis-title.vis-measure{padding:0;margin:0;visibility:hidden;width:auto}.vis-data-axis .vis-y-axis.vis-title.vis-left{bottom:0;-webkit-transform-origin:left top;-moz-transform-origin:left top;-ms-transform-origin:left top;-o-transform-origin:left top;transform-origin:left bottom;-webkit-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-ms-transform:rotate(-90deg);-o-transform:rotate(-90deg);transform:rotate(-90deg)}.vis-data-axis .vis-y-axis.vis-title.vis-right{bottom:0;-webkit-transform-origin:right bottom;-moz-transform-origin:right bottom;-ms-transform-origin:right bottom;-o-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg);-ms-transform:rotate(90deg);-o-transform:rotate(90deg);transform:rotate(90deg)}.vis-legend{background-color:rgba(247,252,255,.65);padding:5px;border:1px solid #b3b3b3;box-shadow:2px 2px 10px hsla(0,0%,60.4%,.55)}.vis-legend-text{white-space:nowrap;display:inline-block}\");var lf=function(t){ih(i,t);var e=af(i);function i(t,n,o,r){var s;dn(this,i),(s=e.call(this)).id=fu(),s.body=t,s.defaultOptions={orientation:\"left\",showMinorLabels:!0,showMajorLabels:!0,showWeekScale:!1,icons:!1,majorLinesOffset:7,minorLinesOffset:4,labelOffsetX:10,labelOffsetY:2,iconWidth:20,width:\"40px\",visible:!0,alignZeros:!0,left:{range:{min:void 0,max:void 0},format:function(t){return\"\".concat(jd(t.toPrecision(3)))},title:{text:void 0,style:void 0}},right:{range:{min:void 0,max:void 0},format:function(t){return\"\".concat(jd(t.toPrecision(3)))},title:{text:void 0,style:void 0}}},s.linegraphOptions=r,s.linegraphSVG=o,s.props={},s.DOMelements={lines:{},labels:{},title:{}},s.dom={},s.scale=void 0,s.range={start:0,end:0},s.options=Nd.extend({},s.defaultOptions),s.conversionFactor=1,s.setOptions(n),s.width=Number(\"\".concat(s.options.width).replace(\"px\",\"\")),s.minWidth=s.width,s.height=s.linegraphSVG.getBoundingClientRect().height,s.hidden=!1,s.stepPixels=25,s.zeroCrossing=-1,s.amountOfSteps=-1,s.lineOffset=0,s.master=!0,s.masterAxis=null,s.svgElements={},s.iconsRemoved=!1,s.groups={},s.amountOfGroups=0,s._create(),null==s.scale&&s._redrawLabels(),s.framework={svg:s.svg,svgElements:s.svgElements,options:s.options,groups:s.groups};var a=Jl(s);return s.body.emitter.on(\"verticalDrag\",(function(){a.dom.lineContainer.style.top=\"\".concat(a.body.domProps.scrollTop,\"px\")})),s}return fn(i,[{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);Nd.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;Yl(this.svgElements);var e=this.options.iconWidth,i=11.5;t=\"left\"===this.options.orientation?4:this.width-e-4;var n=so(this.groups);Vh(n).call(n,(function(t,e){return t<e?-1:1}));var o,r=rf(n);try{for(r.s();!(o=r.n()).done;){var s=o.value;!0!==this.groups[s].visible||void 0!==this.linegraphOptions.visibility[s]&&!0!==this.linegraphOptions.visibility[s]||(this.groups[s].getLegend(e,15,this.framework,t,i),i+=19)}}catch(t){r.e(t)}finally{r.f()}jl(this.svgElements),this.iconsRemoved=!1}},{key:\"_cleanupIcons\",value:function(){!1===this.iconsRemoved&&(Yl(this.svgElements),jl(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,o=this.dom.frame;o.className=\"vis-data-axis\",this._calculateCharSize();var r=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\"===r?(o.style.top=\"0\",o.style.left=\"0\",o.style.bottom=\"\",o.style.width=\"\".concat(this.width,\"px\"),o.style.height=\"\".concat(this.height,\"px\"),this.props.width=this.body.domProps.left.width,this.props.height=this.body.domProps.left.height):(o.style.top=\"\",o.style.bottom=\"0\",o.style.left=\"0\",o.style.width=\"\".concat(this.width,\"px\"),o.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(r)}return t}},{key:\"_redrawLabels\",value:function(){var t=this,e=!1;Yl(this.DOMelements.lines),Yl(this.DOMelements.labels);var i=this.options.orientation,n=null!=this.options[i].range?this.options[i].range:{},o=!0;null!=n.max&&(this.range.end=n.max,o=!1);var r=!0;null!=n.min&&(this.range.start=n.min,r=!1),this.scale=new of(this.range.start,this.range.end,r,o,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();ko(s).call(s,(function(e){var n=e.y,o=e.major;t.options.showMinorLabels&&!1===o&&t._redrawLabel(n-2,e.val,i,\"vis-y-axis vis-minor\",t.props.minorCharHeight),o&&n>=0&&t._redrawLabel(n-2,e.val,i,\"vis-y-axis vis-major\",t.props.majorCharHeight),!0===t.master&&(o?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\"),jl(this.DOMelements.lines),jl(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\"),jl(this.DOMelements.lines),jl(this.DOMelements.labels),this.redraw(),e=!0):(jl(this.DOMelements.lines),jl(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,o){var r=Gl(\"div\",this.DOMelements.labels,this.dom.frame);r.className=n,r.innerHTML=Nd.xss(e),\"left\"===i?(r.style.left=\"-\".concat(this.options.labelOffsetX,\"px\"),r.style.textAlign=\"right\"):(r.style.right=\"-\".concat(this.options.labelOffsetX,\"px\"),r.style.textAlign=\"left\"),r.style.top=\"\".concat(t-.5*o+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,o){if(!0===this.master){var r=Gl(\"div\",this.DOMelements.lines,this.dom.lineContainer);r.className=i,r.innerHTML=\"\",\"left\"===e?r.style.left=\"\".concat(this.width-n,\"px\"):r.style.right=\"\".concat(this.width-n,\"px\"),r.style.width=\"\".concat(o,\"px\"),r.style.top=\"\".concat(t,\"px\")}}},{key:\"_redrawTitle\",value:function(t){if(Yl(this.DOMelements.title),void 0!==this.options[t].title&&void 0!==this.options[t].title.text){var e=Gl(\"div\",this.DOMelements.title,this.dom.frame);e.className=\"vis-y-axis vis-title vis-\".concat(t),e.innerHTML=Nd.xss(this.options[t].title.text),void 0!==this.options[t].title.style&&Nd.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\")}jl(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 o=document.createTextNode(\"0\"),r=document.createElement(\"div\");r.className=\"vis-y-axis vis-title vis-measure\",r.appendChild(o),this.dom.frame.appendChild(r),this.props.titleCharHeight=r.clientHeight,this.props.titleCharWidth=r.clientWidth,this.dom.frame.removeChild(r)}}}]),i}(Hd);function hf(t,e){}function uf(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 df(t,e){}function cf(t,e){}function pf(t,e,i,n){this.id=e;this.options=Nd.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 ff(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=Nd.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)}hf.draw=function(t,e,i,n){n=n||0;for(var o=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),r=0;r<t.length;r++)if(o){var s=o(t[r],e);!0!==s&&\"object\"!==Vn(s)||Bl(t[r].screen_x+n,t[r].screen_y,uf(e,s),i.svgElements,i.svg,t[r].label)}else Bl(t[r].screen_x+n,t[r].screen_y,uf(e),i.svgElements,i.svg,t[r].label)},hf.drawIcon=function(t,e,i,n,o,r){var s=.5*o,a=zl(\"rect\",r.svgElements,r.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\"),Bl(e+.5*n,i,uf(t),r.svgElements,r.svg)},df.drawIcon=function(t,e,i,n,o,r){var s=.5*o,a=zl(\"rect\",r.svgElements,r.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),h=t.options.barChart.width/l,u=Math.round(.4*o),d=Math.round(.75*o),c=Math.round((n-2*l)/3);if(Wl(e+.5*l+c,i+s-u-1,l,u,t.className+\" vis-bar\",r.svgElements,r.svg,t.style),Wl(e+1.5*l+c+2,i+s-d-1,l,d,t.className+\" vis-bar\",r.svgElements,r.svg,t.style),1==t.options.drawPoints.enabled){var p={style:t.options.drawPoints.style,styles:t.options.drawPoints.styles,size:t.options.drawPoints.size/h,className:t.className};Bl(e+.5*l+c,i+s-u-1,p,r.svgElements,r.svg),Bl(e+1.5*l+c+2,i+s-d-1,p,r.svgElements,r.svg)}},df.draw=function(t,e,i){var n,o,r,s,a,l,h=[],u={},d=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++)h.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}),d+=1;if(0!==d)for(Vh(h).call(h,(function(t,e){return t.screen_x===e.screen_x?t.groupId<e.groupId?-1:1:t.screen_x-e.screen_x})),df._getDataIntersections(u,h),a=0;a<h.length;a++){var c=null!=(s=i.groups[h[a].groupId]).options.barChart.minWidth?s.options.barChart.minWidth:.1*s.options.barChart.width,p=0;if(void 0===u[o=h[a].screen_x])a+1<h.length&&(n=Math.abs(h[a+1].screen_x-o)),r=df._getSafeDrawData(n,s,c);else{var f=a+(u[o].amount-u[o].resolved);f<h.length&&(n=Math.abs(h[f].screen_x-o)),r=df._getSafeDrawData(n,s,c),u[o].resolved+=1,!0===s.options.stack&&!0!==s.options.excludeFromStacking?h[a].screen_y<s.zeroPosition?(p=u[o].accumulatedNegative,u[o].accumulatedNegative+=s.zeroPosition-h[a].screen_y):(p=u[o].accumulatedPositive,u[o].accumulatedPositive+=s.zeroPosition-h[a].screen_y):!0===s.options.barChart.sideBySide&&(r.width=r.width/u[o].amount,r.offset+=u[o].resolved*r.width-.5*r.width*(u[o].amount+1))}var m=r.width,v=h[a].screen_x;if(null!=h[a].screen_end?v+=.5*(m=h[a].screen_end-h[a].screen_x):v+=r.offset,Wl(v,h[a].screen_y-p,m,s.zeroPosition-h[a].screen_y,s.className+\" vis-bar\",i.svgElements,i.svg,s.style),!0===s.options.drawPoints.enabled){var g={screen_x:h[a].screen_x,screen_y:h[a].screen_y-p,x:h[a].x,y:h[a].y,groupId:h[a].groupId,label:h[a].label};hf.draw([g],s,i,r.offset)}}},df._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)},df._getSafeDrawData=function(t,e,i){var n,o;return t<e.options.barChart.width&&t>0?(n=t<i?i:t,o=0,\"left\"===e.options.barChart.align?o-=.5*t:\"right\"===e.options.barChart.align&&(o+=.5*t)):(n=e.options.barChart.width,o=0,\"left\"===e.options.barChart.align?o-=.5*e.options.barChart.width:\"right\"===e.options.barChart.align&&(o+=.5*e.options.barChart.width)),{width:n,offset:o}},df.getStackedYRange=function(t,e,i,n,o){if(t.length>0){Vh(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 r={};df._getDataIntersections(r,t),e[n]=df._getStackedYRange(r,t),e[n].yAxisOrientation=o,i.push(n)}},df._getStackedYRange=function(t,e){for(var i,n=e[0].screen_y,o=e[0].screen_y,r=0;r<e.length;r++)void 0===t[i=e[r].screen_x]?(n=n>e[r].screen_y?e[r].screen_y:n,o=o<e[r].screen_y?e[r].screen_y:o):e[r].screen_y<0?t[i].accumulatedNegative+=e[r].screen_y:t[i].accumulatedPositive+=e[r].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,o=(o=o<t[s].accumulatedNegative?t[s].accumulatedNegative:o)<t[s].accumulatedPositive?t[s].accumulatedPositive:o);return{min:n,max:o}},cf.calcPath=function(t,e){if(null!=t&&t.length>0){return 1==e.options.interpolation.enabled?cf._catmullRom(t,e):cf._linear(t)}},cf.drawIcon=function(t,e,i,n,o,r){var s,a,l=.5*o,h=zl(\"rect\",r.svgElements,r.svg);(h.setAttributeNS(null,\"x\",e),h.setAttributeNS(null,\"y\",i-l),h.setAttributeNS(null,\"width\",n),h.setAttributeNS(null,\"height\",2*l),h.setAttributeNS(null,\"class\",\"vis-outline\"),(s=zl(\"path\",r.svgElements,r.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=zl(\"path\",r.svgElements,r.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)&&Bl(e+.5*n,i,{style:t.options.drawPoints.style,styles:t.options.drawPoints.styles,size:t.options.drawPoints.size,className:t.className},r.svgElements,r.svg)},cf.drawShading=function(t,e,i,n){if(1==e.options.shaded.enabled){var o,r=Number(n.svg.style.height.replace(\"px\",\"\")),s=zl(\"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?r:Math.min(Math.max(0,e.zeroPosition),r),o=\"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\",o)}},cf.draw=function(t,e,i){if(null!=t&&null!=t){var n=zl(\"path\",i.svgElements,i.svg);n.setAttributeNS(null,\"class\",e.className),void 0!==e.style&&n.setAttributeNS(null,\"style\",e.style);var o=\"L\";1==e.options.interpolation.enabled&&(o=\"C\"),n.setAttributeNS(null,\"d\",\"M\"+t[0][0]+\",\"+t[0][1]+\" \"+this.serializePath(t,o,!1))}},cf.serializePath=function(t,e,i){if(t.length<2)return\"\";var n,o=e;if(i)for(n=t.length-2;n>0;n--)o+=t[n][0]+\",\"+t[n][1]+\" \";else for(n=1;n<t.length;n++)o+=t[n][0]+\",\"+t[n][1]+\" \";return o},cf._catmullRomUniform=function(t){var e,i,n,o,r,s,a=[];a.push([Math.round(t[0].screen_x),Math.round(t[0].screen_y)]);for(var l=1/6,h=t.length,u=0;u<h-1;u++)e=0==u?t[0]:t[u-1],i=t[u],n=t[u+1],o=u+2<h?t[u+2]:n,r={screen_x:(-e.screen_x+6*i.screen_x+n.screen_x)*l,screen_y:(-e.screen_y+6*i.screen_y+n.screen_y)*l},s={screen_x:(i.screen_x+6*n.screen_x-o.screen_x)*l,screen_y:(i.screen_y+6*n.screen_y-o.screen_y)*l},a.push([r.screen_x,r.screen_y]),a.push([s.screen_x,s.screen_y]),a.push([n.screen_x,n.screen_y]);return a},cf._catmullRom=function(t,e){var i=e.options.interpolation.alpha;if(0==i||void 0===i)return this._catmullRomUniform(t);var n,o,r,s,a,l,h,u,d,c,p,f,m,v,g,y,b,_,w,k=[];k.push([Math.round(t[0].screen_x),Math.round(t[0].screen_y)]);for(var x=t.length,D=0;D<x-1;D++)n=0==D?t[0]:t[D-1],o=t[D],r=t[D+1],s=D+2<x?t[D+2]:r,h=Math.sqrt(Math.pow(n.screen_x-o.screen_x,2)+Math.pow(n.screen_y-o.screen_y,2)),u=Math.sqrt(Math.pow(o.screen_x-r.screen_x,2)+Math.pow(o.screen_y-r.screen_y,2)),d=Math.sqrt(Math.pow(r.screen_x-s.screen_x,2)+Math.pow(r.screen_y-s.screen_y,2)),v=Math.pow(d,i),y=Math.pow(d,2*i),g=Math.pow(u,i),b=Math.pow(u,2*i),w=Math.pow(h,i),c=2*(_=Math.pow(h,2*i))+3*w*g+b,p=2*y+3*v*g+b,(f=3*w*(w+g))>0&&(f=1/f),(m=3*v*(v+g))>0&&(m=1/m),a={screen_x:(-b*n.screen_x+c*o.screen_x+_*r.screen_x)*f,screen_y:(-b*n.screen_y+c*o.screen_y+_*r.screen_y)*f},l={screen_x:(y*o.screen_x+p*r.screen_x-b*s.screen_x)*m,screen_y:(y*o.screen_y+p*r.screen_y-b*s.screen_y)*m},0==a.screen_x&&0==a.screen_y&&(a=o),0==l.screen_x&&0==l.screen_y&&(l=r),k.push([a.screen_x,a.screen_y]),k.push([l.screen_x,l.screen_y]),k.push([r.screen_x,r.screen_y]);return k},cf._linear=function(t){for(var e=[],i=0;i<t.length;i++)e.push([t[i].screen_x,t[i].screen_y]);return e},pf.prototype.setItems=function(t){null!=t?(this.itemsData=t,1==Vh(this.options)&&Nd.insertSort(this.itemsData,(function(t,e){return t.x>e.x?1:-1}))):this.itemsData=[]},pf.prototype.getItems=function(){return this.itemsData},pf.prototype.setZeroPosition=function(t){this.zeroPosition=t},pf.prototype.setOptions=function(t){if(void 0!==t){Nd.selectiveDeepExtend([\"sampling\",\"style\",\"sort\",\"yAxisOrientation\",\"barChart\",\"zIndex\",\"excludeFromStacking\",\"excludeFromLegend\"],this.options,t),\"function\"==typeof t.drawPoints&&(t.drawPoints={onRender:t.drawPoints}),Nd.mergeOptions(this.options,t,\"interpolation\"),Nd.mergeOptions(this.options,t,\"drawPoints\"),Nd.mergeOptions(this.options,t,\"shaded\"),t.interpolation&&\"object\"==Vn(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))}},pf.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)},pf.prototype.getLegend=function(t,e,i,n,o){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!=o&&null!=o||(o=.5*e),this.options.style){case\"line\":cf.drawIcon(this,n,o,t,e,i);break;case\"points\":case\"point\":hf.drawIcon(this,n,o,t,e,i);break;case\"bar\":df.drawIcon(this,n,o,t,e,i)}return{icon:i.svg,label:this.content,orientation:this.options.yAxisOrientation}},pf.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}},ff.prototype=new Hd,ff.prototype.clear=function(){this.groups={},this.amountOfGroups=0},ff.prototype.addGroup=function(t,e){1!=e.options.excludeFromLegend&&(this.groups.hasOwnProperty(t)||(this.groups[t]=e),this.amountOfGroups+=1)},ff.prototype.updateGroup=function(t,e){this.groups[t]=e},ff.prototype.removeGroup=function(t){this.groups.hasOwnProperty(t)&&(delete this.groups[t],this.amountOfGroups-=1)},ff.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)},ff.prototype.hide=function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame)},ff.prototype.show=function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame)},ff.prototype.setOptions=function(t){Nd.selectiveDeepExtend([\"enabled\",\"orientation\",\"icons\",\"left\",\"right\"],this.options,t)},ff.prototype.redraw=function(){var t=0,e=so(this.groups);Vh(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 o=this.body.domProps.center.height-this.body.domProps.centerContainer.height;this.dom.frame.style.bottom=4+o+Number(this.body.dom.center.style.top.replace(\"px\",\"\"))+\"px\",this.dom.frame.style.top=\"\"}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 r=\"\";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]||(r+=this.groups[n].content+\"<br />\");this.dom.textArea.innerHTML=Nd.xss(r),this.dom.textArea.style.lineHeight=.75*this.options.iconSize+this.options.iconSpacing+\"px\"}},ff.prototype.drawLegendIcons=function(){if(this.dom.frame.parentNode){var t=so(this.groups);Vh(t).call(t,(function(t,e){return t<e?-1:1})),Hl(this.svgElements);var e=window.getComputedStyle(this.dom.frame).paddingTop,i=Number(e.replace(\"px\",\"\")),n=i,o=this.options.iconSize,r=.75*this.options.iconSize,s=i+.5*r+3;this.svg.style.width=o+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(o,r,this.framework,n,s),s+=r+this.options.iconSpacing)}}};var mf=\"__ungrouped__\";function vf(t,e){this.id=fu(),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=Nd.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.svg.style.left=Nd.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}}vf.prototype=new Hd,vf.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 lf(this.body,this.options.dataAxis,this.svg,this.options.groups),this.options.dataAxis.orientation=\"right\",this.yAxisRight=new lf(this.body,this.options.dataAxis,this.svg,this.options.groups),delete this.options.dataAxis.orientation,this.legendLeft=new ff(this.body,this.options.legend,\"left\",this.options.groups),this.legendRight=new ff(this.body,this.options.legend,\"right\",this.options.groups),this.show()},vf.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&&gr((t.graphHeight+\"\").replace(\"px\",\"\"))<this.body.domProps.centerContainer.height&&(this.updateSVGheight=!0),Nd.selectiveDeepExtend([\"sampling\",\"defaultGroup\",\"stack\",\"height\",\"graphHeight\",\"yAxisOrientation\",\"style\",\"barChart\",\"dataAxis\",\"sort\",\"groups\"],this.options,t),Nd.mergeOptions(this.options,t,\"interpolation\"),Nd.mergeOptions(this.options,t,\"drawPoints\"),Nd.mergeOptions(this.options,t,\"shaded\"),Nd.mergeOptions(this.options,t,\"legend\"),t.interpolation&&\"object\"==Vn(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(mf)&&this.groups[mf].setOptions(t)}this.dom.frame&&(this.forceGraphUpdate=!0,this.body.emitter.emit(\"_change\",{queue:!0}))},vf.prototype.hide=function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame)},vf.prototype.show=function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame)},vf.prototype.setItems=function(t){var e,i=this,n=this.itemsData;if(t){if(!Ou(\"id\",t))throw new TypeError(\"Data must implement the interface of DataSet or DataView\");this.itemsData=Id(t)}else this.itemsData=null;if(n&&(ko(Nd).call(Nd,this.itemListeners,(function(t,e){n.off(e,t)})),n.dispose(),e=n.getIds(),this._onRemove(e)),this.itemsData){var o=this.id;ko(Nd).call(Nd,this.itemListeners,(function(t,e){i.itemsData.on(e,t,o)})),e=this.itemsData.getIds(),this._onAdd(e)}},vf.prototype.setGroups=function(t){var e,i=this;if(this.groupsData){ko(Nd).call(Nd,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(!Ou(\"id\",t))throw new TypeError(\"Data must implement the interface of DataSet or DataView\");this.groupsData=t}else this.groupsData=null;if(this.groupsData){var o=this.id;ko(Nd).call(Nd,this.groupListeners,(function(t,e){i.groupsData.on(e,t,o)})),e=this.groupsData.getIds(),this._onAddGroups(e)}},vf.prototype._onUpdate=function(t){this._updateAllGroupData(t)},vf.prototype._onAdd=function(t){this._onUpdate(t)},vf.prototype._onRemove=function(t){this._onUpdate(t)},vf.prototype._onUpdateGroups=function(t){this._updateAllGroupData(null,t)},vf.prototype._onAddGroups=function(t){this._onUpdateGroups(t)},vf.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})},vf.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])},vf.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 pf(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()},vf.prototype._updateAllGroupData=function(t,e){if(null!=this.itemsData){var i={},n=this.itemsData.get(),o=this.itemsData.idProp,r={};t&&oo(t).call(t,(function(t){r[t]=t}));for(var s={},a=0;a<n.length;a++){var l=n[a],h=l.group;null==h&&(h=mf),s.hasOwnProperty(h)?s[h]++:s[h]=1}var u={};if(!e&&t)for(h in this.groups)if(this.groups.hasOwnProperty(h)){var d=(m=this.groups[h]).getItems();i[h]=ir(d).call(d,(function(t){return u[t[o]]=t[o],t[o]!==r[t[o]]}));var c=s[h];s[h]-=i[h].length,i[h].length<c&&(i[h][c-1]={})}for(a=0;a<n.length;a++)if(null==(h=(l=n[a]).group)&&(h=mf),e||!t||l[o]===r[l[o]]||!u.hasOwnProperty(l[o])){i.hasOwnProperty(h)||(i[h]=new Array(s[h]));var p=Nd.bridgeObject(l);p.x=Nd.convert(l.x,\"Date\"),p.end=Nd.convert(l.end,\"Date\"),p.orginalY=l.y,p.y=Number(l.y),p[o]=l[o];var f=i[h].length-s[h]--;i[h][f]=p}for(h in this.groups)this.groups.hasOwnProperty(h)&&(i.hasOwnProperty(h)||(i[h]=new Array(0)));for(h in i)if(i.hasOwnProperty(h))if(0==i[h].length)this.groups.hasOwnProperty(h)&&this._removeGroup(h);else{var m=void 0;null!=this.groupsData&&(m=this.groupsData.get(h)),null==m&&(m={id:h,content:this.options.defaultGroup+h}),this._updateGroup(m,h),this.groups[h].setItems(i[h])}this.forceGraphUpdate=!0,this.body.emitter.emit(\"_change\",{queue:!0})}},vf.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=Nd.option.asSize(3*this.props.width),this.svg.style.left=Nd.option.asSize(-this.props.width),-1==Sr(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,this.lastStart=this.body.range.start,this.svg.style.left=-this.props.width+\"px\";else if(0!=this.lastStart){var o=this.body.range.start-this.lastStart,r=this.body.range.end-this.body.range.start;if(0!=this.props.width){var s=o*(this.props.width/r);this.svg.style.left=-this.props.width-s+\"px\"}}return this.legendLeft.redraw(),this.legendRight.redraw(),t},vf.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})}Nd.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),o=0;o<t.length;o++)n[o]=t[o].id;return n},vf.prototype._updateGraph=function(){if(Yl(this.svgElements),0!=this.props.width&&null!=this.itemsData){var t,e,i={},n=this.body.util.toGlobalTime(-this.body.domProps.root.width),o=this.body.util.toGlobalTime(2*this.body.domProps.root.width),r=this._getSortedGroupIds();if(r.length>0){var s={};for(this._getRelevantData(r,s,n,o),this._applySampling(r,s),e=0;e<r.length;e++)this._convertXcoordinates(s[r[e]]);if(this._getYRanges(r,s,i),1==this._updateYAxis(r,i))return jl(this.svgElements),this.abortedGraphUpdate=!0,!0;this.abortedGraphUpdate=!1;var a=void 0;for(e=0;e<r.length;e++)t=this.groups[r[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[r[e]],t);var l={};for(e=0;e<r.length;e++)if(\"line\"===(t=this.groups[r[e]]).options.style&&1==t.options.shaded.enabled){var h=s[r[e]];if(null==h||0==h.length)continue;if(l.hasOwnProperty(r[e])||(l[r[e]]=cf.calcPath(h,t)),\"group\"===t.options.shaded.orientation){var u=t.options.shaded.groupId;if(-1===Sr(r).call(r,u)){console.log(t.id+\": Unknown shading group target given:\"+u);continue}l.hasOwnProperty(u)||(l[u]=cf.calcPath(s[u],this.groups[u])),cf.drawShading(l[r[e]],t,l[u],this.framework)}else cf.drawShading(l[r[e]],t,void 0,this.framework)}for(df.draw(r,s,this.framework),e=0;e<r.length;e++)if(t=this.groups[r[e]],s[r[e]].length>0)switch(t.options.style){case\"line\":l.hasOwnProperty(r[e])||(l[r[e]]=cf.calcPath(s[r[e]],t)),cf.draw(l[r[e]],t,this.framework);case\"point\":case\"points\":\"point\"!=t.options.style&&\"points\"!=t.options.style&&1!=t.options.drawPoints.enabled||hf.draw(s[r[e]],t,this.framework)}}}return jl(this.svgElements),!1},vf.prototype._stack=function(t,e){var i,n,o,r,s;i=0;for(var a=0;a<t.length;a++){r=void 0,s=void 0;for(var l=i;l<e.length;l++){if(e[l].x===t[a].x){r=e[l],s=e[l],i=l;break}if(e[l].x>t[a].x){s=e[l],r=0==l?s:e[l-1],i=l;break}}void 0===s&&(r=e[e.length-1],s=e[e.length-1]),n=s.x-r.x,o=s.y-r.y,t[a].y=0==n?t[a].orginalY+s.y:t[a].orginalY+o/n*(t[a].x-r.x)+r.y}},vf.prototype._getRelevantData=function(t,e,i,n){var o,r,s,a;if(t.length>0)for(r=0;r<t.length;r++){var l=(o=this.groups[t[r]]).getItems();if(1==Vh(o.options)){var h=function(t,e){return t.getTime()==e.getTime()?0:t<e?-1:1},u=Math.max(0,Nd.binarySearchValue(l,i,\"x\",\"before\",h)),d=Math.min(l.length,Nd.binarySearchValue(l,n,\"x\",\"after\",h)+1);d<=0&&(d=l.length);var c=new Array(d-u);for(s=u;s<d;s++)a=o.itemsData[s],c[s-u]=a;e[t[r]]=c}else e[t[r]]=o.itemsData}},vf.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 o,r=n.length,s=r/(this.body.util.toGlobalScreen(n[n.length-1].x)-this.body.util.toGlobalScreen(n[0].x));o=Math.min(Math.ceil(.2*r),Math.max(1,Math.round(s)));for(var a=new Array(r),l=0;l<r;l+=o){a[Math.round(l/o)]=n[l]}e[t[i]]=No(a).call(a,0,Math.round(r/o))}}},vf.prototype._getYRanges=function(t,e,i){var n,o,r,s,a=[],l=[];if(t.length>0){for(r=0;r<t.length;r++)n=e[t[r]],s=this.groups[t[r]].options,n.length>0&&(o=this.groups[t[r]],!0===s.stack&&\"bar\"===s.style?\"left\"===s.yAxisOrientation?a=$n(a).call(a,n):l=$n(l).call(l,n):i[t[r]]=o.getYRange(n,t[r]));df.getStackedYRange(a,i,t,\"__barStackLeft\",\"left\"),df.getStackedYRange(l,i,t,\"__barStackRight\",\"right\")}},vf.prototype._updateYAxis=function(t,e){var i,n,o=!1,r=!1,s=!1,a=1e9,l=1e9,h=-1e9,u=-1e9;if(t.length>0){for(var d=0;d<t.length;d++){var c=this.groups[t[d]];c&&\"right\"!=c.options.yAxisOrientation?(r=!0,a=1e9,h=-1e9):c&&c.options.yAxisOrientation&&(s=!0,l=1e9,u=-1e9)}for(d=0;d<t.length;d++)e.hasOwnProperty(t[d])&&!0!==e[t[d]].ignore&&(i=e[t[d]].min,n=e[t[d]].max,\"right\"!=e[t[d]].yAxisOrientation?(r=!0,a=a>i?i:a,h=h<n?n:h):(s=!0,l=l>i?i:l,u=u<n?n:u));1==r&&this.yAxisLeft.setRange(a,h),1==s&&this.yAxisRight.setRange(l,u)}o=this._toggleAxisVisiblity(r,this.yAxisLeft)||o,o=this._toggleAxisVisiblity(s,this.yAxisRight)||o,1==s&&1==r?(this.yAxisLeft.drawIcons=!0,this.yAxisRight.drawIcons=!0):(this.yAxisLeft.drawIcons=!1,this.yAxisRight.drawIcons=!1),this.yAxisRight.master=!r,this.yAxisRight.masterAxis=this.yAxisLeft,0==this.yAxisRight.master?(this.yAxisLeft.lineOffset=1==s?this.yAxisRight.width:0,o=this.yAxisLeft.redraw()||o,o=this.yAxisRight.redraw()||o):o=this.yAxisRight.redraw()||o;var p=[\"__barStackLeft\",\"__barStackRight\",\"__lineStackLeft\",\"__lineStackRight\"];for(d=0;d<p.length;d++)-1!=Sr(t).call(t,p[d])&&No(t).call(t,Sr(t).call(t,p[d]),1);return o},vf.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},vf.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},vf.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 o=0;o<t.length;o++)t[o].screen_y=Math.round(i.convertValue(t[o].y));e.setZeroPosition(Math.min(n,i.convertValue(0)))};var gf=\"string\",yf=\"boolean\",bf=\"number\",_f=\"date\",wf=\"object\",kf=\"moment\",xf={configure:{enabled:{boolean:yf},filter:{boolean:yf,function:\"function\"},container:{dom:\"dom\"},__type__:{object:wf,boolean:yf,function:\"function\"}},alignCurrentTime:{string:gf,undefined:\"undefined\"},yAxisOrientation:{string:[\"left\",\"right\"]},defaultGroup:{string:gf},sort:{boolean:yf},sampling:{boolean:yf},stack:{boolean:yf},graphHeight:{string:gf,number:bf},shaded:{enabled:{boolean:yf},orientation:{string:[\"bottom\",\"top\",\"zero\",\"group\"]},groupId:{object:wf},__type__:{boolean:yf,object:wf}},style:{string:[\"line\",\"bar\",\"points\"]},barChart:{width:{number:bf},minWidth:{number:bf},sideBySide:{boolean:yf},align:{string:[\"left\",\"center\",\"right\"]},__type__:{object:wf}},interpolation:{enabled:{boolean:yf},parametrization:{string:[\"centripetal\",\"chordal\",\"uniform\"]},alpha:{number:bf},__type__:{object:wf,boolean:yf}},drawPoints:{enabled:{boolean:yf},onRender:{function:\"function\"},size:{number:bf},style:{string:[\"square\",\"circle\"]},__type__:{object:wf,boolean:yf,function:\"function\"}},dataAxis:{showMinorLabels:{boolean:yf},showMajorLabels:{boolean:yf},showWeekScale:{boolean:yf},icons:{boolean:yf},width:{string:gf,number:bf},visible:{boolean:yf},alignZeros:{boolean:yf},left:{range:{min:{number:bf,undefined:\"undefined\"},max:{number:bf,undefined:\"undefined\"},__type__:{object:wf}},format:{function:\"function\"},title:{text:{string:gf,number:bf,undefined:\"undefined\"},style:{string:gf,undefined:\"undefined\"},__type__:{object:wf}},__type__:{object:wf}},right:{range:{min:{number:bf,undefined:\"undefined\"},max:{number:bf,undefined:\"undefined\"},__type__:{object:wf}},format:{function:\"function\"},title:{text:{string:gf,number:bf,undefined:\"undefined\"},style:{string:gf,undefined:\"undefined\"},__type__:{object:wf}},__type__:{object:wf}},__type__:{object:wf}},legend:{enabled:{boolean:yf},icons:{boolean:yf},left:{visible:{boolean:yf},position:{string:[\"top-right\",\"bottom-right\",\"top-left\",\"bottom-left\"]},__type__:{object:wf}},right:{visible:{boolean:yf},position:{string:[\"top-right\",\"bottom-right\",\"top-left\",\"bottom-left\"]},__type__:{object:wf}},__type__:{object:wf,boolean:yf}},groups:{visibility:{any:\"any\"},__type__:{object:wf}},autoResize:{boolean:yf},throttleRedraw:{number:bf},clickToUse:{boolean:yf},end:{number:bf,date:_f,string:gf,moment:kf},format:{minorLabels:{millisecond:{string:gf,undefined:\"undefined\"},second:{string:gf,undefined:\"undefined\"},minute:{string:gf,undefined:\"undefined\"},hour:{string:gf,undefined:\"undefined\"},weekday:{string:gf,undefined:\"undefined\"},day:{string:gf,undefined:\"undefined\"},week:{string:gf,undefined:\"undefined\"},month:{string:gf,undefined:\"undefined\"},quarter:{string:gf,undefined:\"undefined\"},year:{string:gf,undefined:\"undefined\"},__type__:{object:wf}},majorLabels:{millisecond:{string:gf,undefined:\"undefined\"},second:{string:gf,undefined:\"undefined\"},minute:{string:gf,undefined:\"undefined\"},hour:{string:gf,undefined:\"undefined\"},weekday:{string:gf,undefined:\"undefined\"},day:{string:gf,undefined:\"undefined\"},week:{string:gf,undefined:\"undefined\"},month:{string:gf,undefined:\"undefined\"},quarter:{string:gf,undefined:\"undefined\"},year:{string:gf,undefined:\"undefined\"},__type__:{object:wf}},__type__:{object:wf}},moment:{function:\"function\"},height:{string:gf,number:bf},hiddenDates:{start:{date:_f,number:bf,string:gf,moment:kf},end:{date:_f,number:bf,string:gf,moment:kf},repeat:{string:gf},__type__:{object:wf,array:\"array\"}},locale:{string:gf},locales:{__any__:{any:\"any\"},__type__:{object:wf}},max:{date:_f,number:bf,string:gf,moment:kf},maxHeight:{number:bf,string:gf},maxMinorChars:{number:bf},min:{date:_f,number:bf,string:gf,moment:kf},minHeight:{number:bf,string:gf},moveable:{boolean:yf},multiselect:{boolean:yf},orientation:{string:gf},showCurrentTime:{boolean:yf},showMajorLabels:{boolean:yf},showMinorLabels:{boolean:yf},showWeekScale:{boolean:yf},snap:{function:\"function\",null:\"null\"},start:{date:_f,number:bf,string:gf,moment:kf},timeAxis:{scale:{string:gf,undefined:\"undefined\"},step:{number:bf,undefined:\"undefined\"},__type__:{object:wf}},width:{string:gf,number:bf},zoomable:{boolean:yf},zoomKey:{string:[\"ctrlKey\",\"altKey\",\"metaKey\",\"\"]},zoomMax:{number:bf},zoomMin:{number:bf},zIndex:{number:bf},__type__:{object:wf}},Df={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 Sf(t,e,i,n){var o,r,s,a,l,h,u;if(!Qn(i)&&!Ou(\"id\",i)&&i instanceof Object){var d=n;n=i,i=d}n&&n.throttleRedraw&&console.warn(\'Graph2d option \"throttleRedraw\" is DEPRICATED and no longer supported. It will be removed in the next MAJOR release.\');var c=this;this.defaultOptions={start:null,end:null,autoResize:!0,orientation:{axis:\"bottom\",item:\"bottom\"},moment:Eu,width:null,height:null,maxHeight:null,minHeight:null},this.options=Nd.deepExtend({},this.defaultOptions),this._create(t),this.components=[],this.body={dom:this.dom,domProps:this.props,emitter:{on:mo(o=this.on).call(o,this),off:mo(r=this.off).call(r,this),emit:mo(s=this.emit).call(s,this)},hiddenDates:[],util:{getScale:function(){return c.timeAxis.step.scale},getStep:function(){return c.timeAxis.step.step},toScreen:mo(a=c._toScreen).call(a,c),toGlobalScreen:mo(l=c._toGlobalScreen).call(l,c),toTime:mo(h=c._toTime).call(h,c),toGlobalTime:mo(u=c._toGlobalTime).call(u,c)}},this.range=new rc(this.body),this.components.push(this.range),this.body.range=this.range,this.timeAxis=new mc(this.body),this.components.push(this.timeAxis),this.currentTime=new Rc(this.body),this.components.push(this.currentTime),this.linegraph=new vf(this.body),this.components.push(this.linegraph),this.itemsData=null,this.groupsData=null,this.on(\"tap\",(function(t){c.emit(\"click\",c.getEventProperties(t))})),this.on(\"doubletap\",(function(t){c.emit(\"doubleClick\",c.getEventProperties(t))})),this.dom.root.oncontextmenu=function(t){c.emit(\"contextmenu\",c.getEventProperties(t))},this.initialFitDone=!1,this.on(\"changed\",(function(){if(null!=c.itemsData){if(!c.initialFitDone&&!c.options.rollingMode)if(c.initialFitDone=!0,null!=c.options.start||null!=c.options.end){if(null==c.options.start||null==c.options.end)var t=c.getItemRange();var e=null!=c.options.start?c.options.start:t.min,i=null!=c.options.end?c.options.end:t.max;c.setWindow(e,i,{animation:!1})}else c.fit({animation:!1});c.initialDrawDone||!c.initialRangeChangeDone&&(c.options.start||c.options.end)&&!c.options.rollingMode||(c.initialDrawDone=!0,c.dom.root.style.visibility=\"visible\",c.dom.loadingScreen.parentNode.removeChild(c.dom.loadingScreen),c.options.onInitialDrawComplete&&Br((function(){return c.options.onInitialDrawComplete()}),0))}})),n&&this.setOptions(n),i&&this.setGroups(i),e&&this.setItems(e),this._redraw()}Sf.prototype=new Nc,Sf.prototype.setOptions=function(t){!0===jp.validate(t,xf)&&console.log(\"%cErrors have been found in the supplied options object.\",Yp),Nc.prototype.setOptions.call(this,t)},Sf.prototype.setItems=function(t){var e,i=null==this.itemsData;if(e=t?Ou(\"id\",t)?Id(t):Id(new Tu(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,o=null!=this.options.end?this.options.end:null;this.setWindow(n,o,{animation:!1})}else this.fit({animation:!1})},Sf.prototype.setGroups=function(t){var e;e=t?Ou(\"id\",t)?t:new Tu(t):null,this.groupsData=e,this.linegraph.setGroups(e)},Sf.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+\"\'\"},Sf.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]))},Sf.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 o=this.linegraph.groups[i].itemsData[n],r=Nd.convert(o.x,\"Date\").valueOf();t=null==t||t>r?r:t,e=null==e||e<r?r:e}return{min:null!=t?new Date(t):null,max:null!=e?new Date(e):null}},Sf.prototype.getEventProperties=function(t){var e=t.center?t.center.x:t.clientX,i=t.center?t.center.y:t.clientY,n=e-Nd.getAbsoluteLeft(this.dom.centerContainer),o=i-Nd.getAbsoluteTop(this.dom.centerContainer),r=this._toTime(n),s=Ic.customTimeFromTarget(t),a=Nd.getTarget(t),l=null;Nd.hasParent(a,this.timeAxis.dom.foreground)||this.timeAxis2&&Nd.hasParent(a,this.timeAxis2.dom.foreground)?l=\"axis\":Nd.hasParent(a,this.linegraph.yAxisLeft.dom.frame)||Nd.hasParent(a,this.linegraph.yAxisRight.dom.frame)?l=\"data-axis\":Nd.hasParent(a,this.linegraph.legendLeft.dom.frame)||Nd.hasParent(a,this.linegraph.legendRight.dom.frame)?l=\"legend\":null!=s?l=\"custom-time\":Nd.hasParent(a,this.currentTime.bar)?l=\"current-time\":Nd.hasParent(a,this.dom.center)&&(l=\"background\");var h=[],u=this.linegraph.yAxisLeft,d=this.linegraph.yAxisRight;return!u.hidden&&this.itemsData.length>0&&h.push(u.screenToValue(o)),!d.hidden&&this.itemsData.length>0&&h.push(d.screenToValue(o)),{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:o,time:r,value:h}},Sf.prototype._createConfigurator=function(){return new Kp(this,this.dom.container,Df)};var Cf=Vl();Eu.locale(Cf);var Tf={Core:Nc,DateUtil:nc,Range:rc,stack:tp,TimeStep:cc,components:{items:{Item:ap,BackgroundItem:mp,BoxItem:hp,ClusterItem:Sp,PointItem:dp,RangeItem:pp},BackgroundGroup:op,Component:Hd,CurrentTime:Rc,CustomTime:Ic,DataAxis:lf,DataScale:of,GraphGroup:pf,Group:ip,ItemSet:Np,Legend:ff,LineGraph:vf,TimeAxis:mc}};t.DOMutil=Ul,t.DataSet=Tu,t.DataView=Mu,t.Graph2d=Sf,t.Hammer=uc,t.Queue=Du,t.Timeline=Qp,t.keycharm=gc,t.moment=Eu,t.timeline=Tf,t.util=Rl,Object.defineProperty(t,\"__esModule\",{value:!0})}));\n//# sourceMappingURL=vis-timeline-graph2d.min.js.map\n";