iobroker.vis-2
Version:
Next generation graphical user interface for ioBroker.
41 lines • 238 kB
JavaScript
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./visView-uvB8Y3Rn.js","./createStyled-z3JvV772.js","./iobroker_vis__loadShare__react__loadShare__-SQPj3-DC.js","./_commonjsHelpers-Cpj98o6Y.js","./iobroker_vis__mf_v__runtimeInit__mf_v__-D4ESSABP.js","./iobroker_vis__loadShare__prop_mf_2_types__loadShare__-D_-Mm1Nj.js","./iobroker_vis__loadShare___mf_0_mui_mf_1_icons_mf_2_material__loadShare__-kzbpjce9.js","./iobroker_vis__loadShare___mf_0_mui_mf_1_system__loadShare__-DH7sF_c4.js","./Dialog-BICpHMtP.js","./createSvgIcon-CBWBbuVP.js","./useMediaQuery-B_uD09BP.js","./iobroker_vis__loadShare__react_mf_2_dom__loadShare__-BXRMseGM.js","./InsertDriveFile-nksPIy4w.js"])))=>i.map(i=>d[i]);
import{_ as su}from"./preload-helper-Dp1pzeXC.js";import{i as iu,a as ru}from"./iobroker_vis__mf_v__runtimeInit__mf_v__-D4ESSABP.js";import{j as C}from"./createStyled-z3JvV772.js";import{G as nu,d as Ms,e as Os,s as B,g as Qr,i as z,r as Vt,V as Yi,a as Kr,b as au,c as ou,f as lu,h as du,u as uu,j as cu,k as hu,l as fu}from"./visView-uvB8Y3Rn.js";import{i as E,a as lt}from"./iobroker_vis__loadShare___mf_0_mui_mf_1_icons_mf_2_material__loadShare__-kzbpjce9.js";import{R as Xr}from"./iobroker_vis__loadShare__react__loadShare__-SQPj3-DC.js";import{i as _u}from"./iobroker_vis__loadShare___mf_0_mui_mf_1_system__loadShare__-DH7sF_c4.js";import{T as mu}from"./Dialog-BICpHMtP.js";import"./iobroker_vis__loadShare__prop_mf_2_types__loadShare__-D_-Mm1Nj.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./InsertDriveFile-nksPIy4w.js";import"./createSvgIcon-CBWBbuVP.js";import"./useMediaQuery-B_uD09BP.js";import"./iobroker_vis__loadShare__react_mf_2_dom__loadShare__-BXRMseGM.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const l of a)if(l.type==="childList")for(const c of l.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function i(a){const l={};return a.integrity&&(l.integrity=a.integrity),a.referrerPolicy&&(l.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?l.credentials="include":a.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(a){if(a.ep)return;a.ep=!0;const l=i(a);fetch(a.href,l)}})();const{loadShare:gu}=iu,{initPromise:wu}=ru,pu=wu.then(t=>gu("react-dom/client",{customShareInfo:{shareConfig:{singleton:!0,strictVersion:!1,requiredVersion:"*"}}})),yu=await pu.then(t=>t());var vu=yu;function ku(t){return nu({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m12 18 4-5h-3V2h-2v11H8z"},child:[]},{tag:"path",attr:{d:"M19 9h-4v2h4v9H5v-9h4V9H5c-1.103 0-2 .897-2 2v9c0 1.103.897 2 2 2h14c1.103 0 2-.897 2-2v-9c0-1.103-.897-2-2-2z"},child:[]}]})(t)}//! moment.js
//! version : 2.30.1
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
var dn;function S(){return dn.apply(null,arguments)}function Su(t){dn=t}function ke(t){return t instanceof Array||Object.prototype.toString.call(t)==="[object Array]"}function ut(t){return t!=null&&Object.prototype.toString.call(t)==="[object Object]"}function A(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Ni(t){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(t).length===0;var e;for(e in t)if(A(t,e))return!1;return!0}function oe(t){return t===void 0}function Ze(t){return typeof t=="number"||Object.prototype.toString.call(t)==="[object Number]"}function qt(t){return t instanceof Date||Object.prototype.toString.call(t)==="[object Date]"}function un(t,e){var i=[],r,a=t.length;for(r=0;r<a;++r)i.push(e(t[r],r));return i}function tt(t,e){for(var i in e)A(e,i)&&(t[i]=e[i]);return A(e,"toString")&&(t.toString=e.toString),A(e,"valueOf")&&(t.valueOf=e.valueOf),t}function xe(t,e,i,r){return Pn(t,e,i,r,!0).utc()}function Mu(){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 j(t){return t._pf==null&&(t._pf=Mu()),t._pf}var Ti;Array.prototype.some?Ti=Array.prototype.some:Ti=function(t){var e=Object(this),i=e.length>>>0,r;for(r=0;r<i;r++)if(r in e&&t.call(this,e[r],r,e))return!0;return!1};function Wi(t){var e=null,i=!1,r=t._d&&!isNaN(t._d.getTime());if(r&&(e=j(t),i=Ti.call(e.parsedDateParts,function(a){return a!=null}),r=e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&i),t._strict&&(r=r&&e.charsLeftOver===0&&e.unusedTokens.length===0&&e.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(t))t._isValid=r;else return r;return t._isValid}function Ns(t){var e=xe(NaN);return t!=null?tt(j(e),t):j(e).userInvalidated=!0,e}var en=S.momentProperties=[],Si=!1;function Ii(t,e){var i,r,a,l=en.length;if(oe(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),oe(e._i)||(t._i=e._i),oe(e._f)||(t._f=e._f),oe(e._l)||(t._l=e._l),oe(e._strict)||(t._strict=e._strict),oe(e._tzm)||(t._tzm=e._tzm),oe(e._isUTC)||(t._isUTC=e._isUTC),oe(e._offset)||(t._offset=e._offset),oe(e._pf)||(t._pf=j(e)),oe(e._locale)||(t._locale=e._locale),l>0)for(i=0;i<l;i++)r=en[i],a=e[r],oe(a)||(t[r]=a);return t}function Qt(t){Ii(this,t),this._d=new Date(t._d!=null?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Si===!1&&(Si=!0,S.updateOffset(this),Si=!1)}function Se(t){return t instanceof Qt||t!=null&&t._isAMomentObject!=null}function cn(t){S.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+t)}function _e(t,e){var i=!0;return tt(function(){if(S.deprecationHandler!=null&&S.deprecationHandler(null,t),i){var r=[],a,l,c,h=arguments.length;for(l=0;l<h;l++){if(a="",typeof arguments[l]=="object"){a+=`
[`+l+"] ";for(c in arguments[0])A(arguments[0],c)&&(a+=c+": "+arguments[0][c]+", ");a=a.slice(0,-2)}else a=arguments[l];r.push(a)}cn(t+`
Arguments: `+Array.prototype.slice.call(r).join("")+`
`+new Error().stack),i=!1}return e.apply(this,arguments)},e)}var tn={};function hn(t,e){S.deprecationHandler!=null&&S.deprecationHandler(t,e),tn[t]||(cn(e),tn[t]=!0)}S.suppressDeprecationWarnings=!1;S.deprecationHandler=null;function Pe(t){return typeof Function<"u"&&t instanceof Function||Object.prototype.toString.call(t)==="[object Function]"}function Du(t){var e,i;for(i in t)A(t,i)&&(e=t[i],Pe(e)?this[i]=e:this["_"+i]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Oi(t,e){var i=tt({},t),r;for(r in e)A(e,r)&&(ut(t[r])&&ut(e[r])?(i[r]={},tt(i[r],t[r]),tt(i[r],e[r])):e[r]!=null?i[r]=e[r]:delete i[r]);for(r in t)A(t,r)&&!A(e,r)&&ut(t[r])&&(i[r]=tt({},i[r]));return i}function Ri(t){t!=null&&this.set(t)}var Ci;Object.keys?Ci=Object.keys:Ci=function(t){var e,i=[];for(e in t)A(t,e)&&i.push(e);return i};var bu={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Yu(t,e,i){var r=this._calendar[t]||this._calendar.sameElse;return Pe(r)?r.call(e,i):r}function je(t,e,i){var r=""+Math.abs(t),a=e-r.length,l=t>=0;return(l?i?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var Fi=/(\[[^\[]*\])|(\\)?([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,ks=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Mi={},Yt={};function O(t,e,i,r){var a=r;typeof r=="string"&&(a=function(){return this[r]()}),t&&(Yt[t]=a),e&&(Yt[e[0]]=function(){return je(a.apply(this,arguments),e[1],e[2])}),i&&(Yt[i]=function(){return this.localeData().ordinal(a.apply(this,arguments),t)})}function Tu(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function Ou(t){var e=t.match(Fi),i,r;for(i=0,r=e.length;i<r;i++)Yt[e[i]]?e[i]=Yt[e[i]]:e[i]=Tu(e[i]);return function(a){var l="",c;for(c=0;c<r;c++)l+=Pe(e[c])?e[c].call(a,t):e[c];return l}}function Ds(t,e){return t.isValid()?(e=fn(e,t.localeData()),Mi[e]=Mi[e]||Ou(e),Mi[e](t)):t.localeData().invalidDate()}function fn(t,e){var i=5;function r(a){return e.longDateFormat(a)||a}for(ks.lastIndex=0;i>=0&&ks.test(t);)t=t.replace(ks,r),ks.lastIndex=0,i-=1;return t}var Cu={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 Lu(t){var e=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return e||!i?e:(this._longDateFormat[t]=i.match(Fi).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[t])}var ju="Invalid date";function xu(){return this._invalidDate}var Pu="%d",Nu=/\d{1,2}/;function Wu(t){return this._ordinal.replace("%d",t)}var Iu={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 Ru(t,e,i,r){var a=this._relativeTime[i];return Pe(a)?a(t,e,i,r):a.replace(/%d/i,t)}function Fu(t,e){var i=this._relativeTime[t>0?"future":"past"];return Pe(i)?i(e):i.replace(/%s/i,e)}var sn={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function me(t){return typeof t=="string"?sn[t]||sn[t.toLowerCase()]:void 0}function $i(t){var e={},i,r;for(r in t)A(t,r)&&(i=me(r),i&&(e[i]=t[r]));return e}var $u={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Au(t){var e=[],i;for(i in t)A(t,i)&&e.push({unit:i,priority:$u[i]});return e.sort(function(r,a){return r.priority-a.priority}),e}var _n=/\d/,de=/\d\d/,mn=/\d{3}/,Ai=/\d{4}/,Ws=/[+-]?\d{6}/,q=/\d\d?/,gn=/\d\d\d\d?/,wn=/\d\d\d\d\d\d?/,Is=/\d{1,3}/,Ui=/\d{1,4}/,Rs=/[+-]?\d{1,6}/,Ct=/\d+/,Fs=/[+-]?\d+/,Uu=/Z|[+-]\d\d:?\d\d/gi,$s=/Z|[+-]\d\d(?::?\d\d)?/gi,Eu=/[+-]?\d+(\.\d{1,3})?/,Kt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Lt=/^[1-9]\d?/,Ei=/^([1-9]\d|\d)/,Cs;Cs={};function b(t,e,i){Cs[t]=Pe(e)?e:function(r,a){return r&&i?i:e}}function Hu(t,e){return A(Cs,t)?Cs[t](e._strict,e._locale):new RegExp(Vu(t))}function Vu(t){return Je(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,i,r,a,l){return i||r||a||l}))}function Je(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function fe(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function N(t){var e=+t,i=0;return e!==0&&isFinite(e)&&(i=fe(e)),i}var Li={};function V(t,e){var i,r=e,a;for(typeof t=="string"&&(t=[t]),Ze(e)&&(r=function(l,c){c[e]=N(l)}),a=t.length,i=0;i<a;i++)Li[t[i]]=r}function Xt(t,e){V(t,function(i,r,a,l){a._w=a._w||{},e(i,a._w,a,l)})}function zu(t,e,i){e!=null&&A(Li,t)&&Li[t](e,i._a,i,t)}function As(t){return t%4===0&&t%100!==0||t%400===0}var ne=0,ze=1,Le=2,ie=3,ve=4,Ge=5,dt=6,Gu=7,Ju=8;O("Y",0,0,function(){var t=this.year();return t<=9999?je(t,4):"+"+t});O(0,["YY",2],0,function(){return this.year()%100});O(0,["YYYY",4],0,"year");O(0,["YYYYY",5],0,"year");O(0,["YYYYYY",6,!0],0,"year");b("Y",Fs);b("YY",q,de);b("YYYY",Ui,Ai);b("YYYYY",Rs,Ws);b("YYYYYY",Rs,Ws);V(["YYYYY","YYYYYY"],ne);V("YYYY",function(t,e){e[ne]=t.length===2?S.parseTwoDigitYear(t):N(t)});V("YY",function(t,e){e[ne]=S.parseTwoDigitYear(t)});V("Y",function(t,e){e[ne]=parseInt(t,10)});function zt(t){return As(t)?366:365}S.parseTwoDigitYear=function(t){return N(t)+(N(t)>68?1900:2e3)};var pn=jt("FullYear",!0);function Bu(){return As(this.year())}function jt(t,e){return function(i){return i!=null?(yn(this,t,i),S.updateOffset(this,e),this):Gt(this,t)}}function Gt(t,e){if(!t.isValid())return NaN;var i=t._d,r=t._isUTC;switch(e){case"Milliseconds":return r?i.getUTCMilliseconds():i.getMilliseconds();case"Seconds":return r?i.getUTCSeconds():i.getSeconds();case"Minutes":return r?i.getUTCMinutes():i.getMinutes();case"Hours":return r?i.getUTCHours():i.getHours();case"Date":return r?i.getUTCDate():i.getDate();case"Day":return r?i.getUTCDay():i.getDay();case"Month":return r?i.getUTCMonth():i.getMonth();case"FullYear":return r?i.getUTCFullYear():i.getFullYear();default:return NaN}}function yn(t,e,i){var r,a,l,c,h;if(!(!t.isValid()||isNaN(i))){switch(r=t._d,a=t._isUTC,e){case"Milliseconds":return void(a?r.setUTCMilliseconds(i):r.setMilliseconds(i));case"Seconds":return void(a?r.setUTCSeconds(i):r.setSeconds(i));case"Minutes":return void(a?r.setUTCMinutes(i):r.setMinutes(i));case"Hours":return void(a?r.setUTCHours(i):r.setHours(i));case"Date":return void(a?r.setUTCDate(i):r.setDate(i));case"FullYear":break;default:return}l=i,c=t.month(),h=t.date(),h=h===29&&c===1&&!As(l)?28:h,a?r.setUTCFullYear(l,c,h):r.setFullYear(l,c,h)}}function Zu(t){return t=me(t),Pe(this[t])?this[t]():this}function qu(t,e){if(typeof t=="object"){t=$i(t);var i=Au(t),r,a=i.length;for(r=0;r<a;r++)this[i[r].unit](t[i[r].unit])}else if(t=me(t),Pe(this[t]))return this[t](e);return this}function Qu(t,e){return(t%e+e)%e}var te;Array.prototype.indexOf?te=Array.prototype.indexOf:te=function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1};function Hi(t,e){if(isNaN(t)||isNaN(e))return NaN;var i=Qu(e,12);return t+=(e-i)/12,i===1?As(t)?29:28:31-i%7%2}O("M",["MM",2],"Mo",function(){return this.month()+1});O("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)});O("MMMM",0,0,function(t){return this.localeData().months(this,t)});b("M",q,Lt);b("MM",q,de);b("MMM",function(t,e){return e.monthsShortRegex(t)});b("MMMM",function(t,e){return e.monthsRegex(t)});V(["M","MM"],function(t,e){e[ze]=N(t)-1});V(["MMM","MMMM"],function(t,e,i,r){var a=i._locale.monthsParse(t,r,i._strict);a!=null?e[ze]=a:j(i).invalidMonth=t});var Ku="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),vn="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),kn=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Xu=Kt,ec=Kt;function tc(t,e){return t?ke(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||kn).test(e)?"format":"standalone"][t.month()]:ke(this._months)?this._months:this._months.standalone}function sc(t,e){return t?ke(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[kn.test(e)?"format":"standalone"][t.month()]:ke(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ic(t,e,i){var r,a,l,c=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)l=xe([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(l,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(l,"").toLocaleLowerCase();return i?e==="MMM"?(a=te.call(this._shortMonthsParse,c),a!==-1?a:null):(a=te.call(this._longMonthsParse,c),a!==-1?a:null):e==="MMM"?(a=te.call(this._shortMonthsParse,c),a!==-1?a:(a=te.call(this._longMonthsParse,c),a!==-1?a:null)):(a=te.call(this._longMonthsParse,c),a!==-1?a:(a=te.call(this._shortMonthsParse,c),a!==-1?a:null))}function rc(t,e,i){var r,a,l;if(this._monthsParseExact)return ic.call(this,t,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(a=xe([2e3,r]),i&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),!i&&!this._monthsParse[r]&&(l="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[r]=new RegExp(l.replace(".",""),"i")),i&&e==="MMMM"&&this._longMonthsParse[r].test(t))return r;if(i&&e==="MMM"&&this._shortMonthsParse[r].test(t))return r;if(!i&&this._monthsParse[r].test(t))return r}}function Sn(t,e){if(!t.isValid())return t;if(typeof e=="string"){if(/^\d+$/.test(e))e=N(e);else if(e=t.localeData().monthsParse(e),!Ze(e))return t}var i=e,r=t.date();return r=r<29?r:Math.min(r,Hi(t.year(),i)),t._isUTC?t._d.setUTCMonth(i,r):t._d.setMonth(i,r),t}function Mn(t){return t!=null?(Sn(this,t),S.updateOffset(this,!0),this):Gt(this,"Month")}function nc(){return Hi(this.year(),this.month())}function ac(t){return this._monthsParseExact?(A(this,"_monthsRegex")||Dn.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(A(this,"_monthsShortRegex")||(this._monthsShortRegex=Xu),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function oc(t){return this._monthsParseExact?(A(this,"_monthsRegex")||Dn.call(this),t?this._monthsStrictRegex:this._monthsRegex):(A(this,"_monthsRegex")||(this._monthsRegex=ec),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function Dn(){function t(f,_){return _.length-f.length}var e=[],i=[],r=[],a,l,c,h;for(a=0;a<12;a++)l=xe([2e3,a]),c=Je(this.monthsShort(l,"")),h=Je(this.months(l,"")),e.push(c),i.push(h),r.push(h),r.push(c);e.sort(t),i.sort(t),r.sort(t),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+e.join("|")+")","i")}function lc(t,e,i,r,a,l,c){var h;return t<100&&t>=0?(h=new Date(t+400,e,i,r,a,l,c),isFinite(h.getFullYear())&&h.setFullYear(t)):h=new Date(t,e,i,r,a,l,c),h}function Jt(t){var e,i;return t<100&&t>=0?(i=Array.prototype.slice.call(arguments),i[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 Ls(t,e,i){var r=7+e-i,a=(7+Jt(t,0,r).getUTCDay()-e)%7;return-a+r-1}function bn(t,e,i,r,a){var l=(7+i-r)%7,c=Ls(t,r,a),h=1+7*(e-1)+l+c,f,_;return h<=0?(f=t-1,_=zt(f)+h):h>zt(t)?(f=t+1,_=h-zt(t)):(f=t,_=h),{year:f,dayOfYear:_}}function Bt(t,e,i){var r=Ls(t.year(),e,i),a=Math.floor((t.dayOfYear()-r-1)/7)+1,l,c;return a<1?(c=t.year()-1,l=a+Be(c,e,i)):a>Be(t.year(),e,i)?(l=a-Be(t.year(),e,i),c=t.year()+1):(c=t.year(),l=a),{week:l,year:c}}function Be(t,e,i){var r=Ls(t,e,i),a=Ls(t+1,e,i);return(zt(t)-r+a)/7}O("w",["ww",2],"wo","week");O("W",["WW",2],"Wo","isoWeek");b("w",q,Lt);b("ww",q,de);b("W",q,Lt);b("WW",q,de);Xt(["w","ww","W","WW"],function(t,e,i,r){e[r.substr(0,1)]=N(t)});function dc(t){return Bt(t,this._week.dow,this._week.doy).week}var uc={dow:0,doy:6};function cc(){return this._week.dow}function hc(){return this._week.doy}function fc(t){var e=this.localeData().week(this);return t==null?e:this.add((t-e)*7,"d")}function _c(t){var e=Bt(this,1,4).week;return t==null?e:this.add((t-e)*7,"d")}O("d",0,"do","day");O("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)});O("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)});O("dddd",0,0,function(t){return this.localeData().weekdays(this,t)});O("e",0,0,"weekday");O("E",0,0,"isoWeekday");b("d",q);b("e",q);b("E",q);b("dd",function(t,e){return e.weekdaysMinRegex(t)});b("ddd",function(t,e){return e.weekdaysShortRegex(t)});b("dddd",function(t,e){return e.weekdaysRegex(t)});Xt(["dd","ddd","dddd"],function(t,e,i,r){var a=i._locale.weekdaysParse(t,r,i._strict);a!=null?e.d=a:j(i).invalidWeekday=t});Xt(["d","e","E"],function(t,e,i,r){e[r]=N(t)});function mc(t,e){return typeof t!="string"?t:isNaN(t)?(t=e.weekdaysParse(t),typeof t=="number"?t:null):parseInt(t,10)}function gc(t,e){return typeof t=="string"?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Vi(t,e){return t.slice(e,7).concat(t.slice(0,e))}var wc="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Yn="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),pc="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),yc=Kt,vc=Kt,kc=Kt;function Sc(t,e){var i=ke(this._weekdays)?this._weekdays:this._weekdays[t&&t!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return t===!0?Vi(i,this._week.dow):t?i[t.day()]:i}function Mc(t){return t===!0?Vi(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function Dc(t){return t===!0?Vi(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function bc(t,e,i){var r,a,l,c=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)l=xe([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(l,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(l,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(l,"").toLocaleLowerCase();return i?e==="dddd"?(a=te.call(this._weekdaysParse,c),a!==-1?a:null):e==="ddd"?(a=te.call(this._shortWeekdaysParse,c),a!==-1?a:null):(a=te.call(this._minWeekdaysParse,c),a!==-1?a:null):e==="dddd"?(a=te.call(this._weekdaysParse,c),a!==-1||(a=te.call(this._shortWeekdaysParse,c),a!==-1)?a:(a=te.call(this._minWeekdaysParse,c),a!==-1?a:null)):e==="ddd"?(a=te.call(this._shortWeekdaysParse,c),a!==-1||(a=te.call(this._weekdaysParse,c),a!==-1)?a:(a=te.call(this._minWeekdaysParse,c),a!==-1?a:null)):(a=te.call(this._minWeekdaysParse,c),a!==-1||(a=te.call(this._weekdaysParse,c),a!==-1)?a:(a=te.call(this._shortWeekdaysParse,c),a!==-1?a:null))}function Yc(t,e,i){var r,a,l;if(this._weekdaysParseExact)return bc.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=xe([2e3,1]).day(r),i&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(l="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(l.replace(".",""),"i")),i&&e==="dddd"&&this._fullWeekdaysParse[r].test(t))return r;if(i&&e==="ddd"&&this._shortWeekdaysParse[r].test(t))return r;if(i&&e==="dd"&&this._minWeekdaysParse[r].test(t))return r;if(!i&&this._weekdaysParse[r].test(t))return r}}function Tc(t){if(!this.isValid())return t!=null?this:NaN;var e=Gt(this,"Day");return t!=null?(t=mc(t,this.localeData()),this.add(t-e,"d")):e}function Oc(t){if(!this.isValid())return t!=null?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return t==null?e:this.add(t-e,"d")}function Cc(t){if(!this.isValid())return t!=null?this:NaN;if(t!=null){var e=gc(t,this.localeData());return this.day(this.day()%7?e:e-7)}else return this.day()||7}function Lc(t){return this._weekdaysParseExact?(A(this,"_weekdaysRegex")||zi.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(A(this,"_weekdaysRegex")||(this._weekdaysRegex=yc),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function jc(t){return this._weekdaysParseExact?(A(this,"_weekdaysRegex")||zi.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(A(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=vc),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function xc(t){return this._weekdaysParseExact?(A(this,"_weekdaysRegex")||zi.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(A(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=kc),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function zi(){function t(w,g){return g.length-w.length}var e=[],i=[],r=[],a=[],l,c,h,f,_;for(l=0;l<7;l++)c=xe([2e3,1]).day(l),h=Je(this.weekdaysMin(c,"")),f=Je(this.weekdaysShort(c,"")),_=Je(this.weekdays(c,"")),e.push(h),i.push(f),r.push(_),a.push(h),a.push(f),a.push(_);e.sort(t),i.sort(t),r.sort(t),a.sort(t),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function Gi(){return this.hours()%12||12}function Pc(){return this.hours()||24}O("H",["HH",2],0,"hour");O("h",["hh",2],0,Gi);O("k",["kk",2],0,Pc);O("hmm",0,0,function(){return""+Gi.apply(this)+je(this.minutes(),2)});O("hmmss",0,0,function(){return""+Gi.apply(this)+je(this.minutes(),2)+je(this.seconds(),2)});O("Hmm",0,0,function(){return""+this.hours()+je(this.minutes(),2)});O("Hmmss",0,0,function(){return""+this.hours()+je(this.minutes(),2)+je(this.seconds(),2)});function Tn(t,e){O(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}Tn("a",!0);Tn("A",!1);function On(t,e){return e._meridiemParse}b("a",On);b("A",On);b("H",q,Ei);b("h",q,Lt);b("k",q,Lt);b("HH",q,de);b("hh",q,de);b("kk",q,de);b("hmm",gn);b("hmmss",wn);b("Hmm",gn);b("Hmmss",wn);V(["H","HH"],ie);V(["k","kk"],function(t,e,i){var r=N(t);e[ie]=r===24?0:r});V(["a","A"],function(t,e,i){i._isPm=i._locale.isPM(t),i._meridiem=t});V(["h","hh"],function(t,e,i){e[ie]=N(t),j(i).bigHour=!0});V("hmm",function(t,e,i){var r=t.length-2;e[ie]=N(t.substr(0,r)),e[ve]=N(t.substr(r)),j(i).bigHour=!0});V("hmmss",function(t,e,i){var r=t.length-4,a=t.length-2;e[ie]=N(t.substr(0,r)),e[ve]=N(t.substr(r,2)),e[Ge]=N(t.substr(a)),j(i).bigHour=!0});V("Hmm",function(t,e,i){var r=t.length-2;e[ie]=N(t.substr(0,r)),e[ve]=N(t.substr(r))});V("Hmmss",function(t,e,i){var r=t.length-4,a=t.length-2;e[ie]=N(t.substr(0,r)),e[ve]=N(t.substr(r,2)),e[Ge]=N(t.substr(a))});function Nc(t){return(t+"").toLowerCase().charAt(0)==="p"}var Wc=/[ap]\.?m?\.?/i,Ic=jt("Hours",!0);function Rc(t,e,i){return t>11?i?"pm":"PM":i?"am":"AM"}var Cn={calendar:bu,longDateFormat:Cu,invalidDate:ju,ordinal:Pu,dayOfMonthOrdinalParse:Nu,relativeTime:Iu,months:Ku,monthsShort:vn,week:uc,weekdays:wc,weekdaysMin:pc,weekdaysShort:Yn,meridiemParse:Wc},K={},Et={},Zt;function Fc(t,e){var i,r=Math.min(t.length,e.length);for(i=0;i<r;i+=1)if(t[i]!==e[i])return i;return r}function rn(t){return t&&t.toLowerCase().replace("_","-")}function $c(t){for(var e=0,i,r,a,l;e<t.length;){for(l=rn(t[e]).split("-"),i=l.length,r=rn(t[e+1]),r=r?r.split("-"):null;i>0;){if(a=Us(l.slice(0,i).join("-")),a)return a;if(r&&r.length>=i&&Fc(l,r)>=i-1)break;i--}e++}return Zt}function Ac(t){return!!(t&&t.match("^[^/\\\\]*$"))}function Us(t){var e=null,i;if(K[t]===void 0&&typeof module<"u"&&module&&module.exports&&Ac(t))try{e=Zt._abbr,i=require,i("./locale/"+t),it(e)}catch{K[t]=null}return K[t]}function it(t,e){var i;return t&&(oe(e)?i=qe(t):i=Ji(t,e),i?Zt=i:typeof console<"u"&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Zt._abbr}function Ji(t,e){if(e!==null){var i,r=Cn;if(e.abbr=t,K[t]!=null)hn("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."),r=K[t]._config;else if(e.parentLocale!=null)if(K[e.parentLocale]!=null)r=K[e.parentLocale]._config;else if(i=Us(e.parentLocale),i!=null)r=i._config;else return Et[e.parentLocale]||(Et[e.parentLocale]=[]),Et[e.parentLocale].push({name:t,config:e}),null;return K[t]=new Ri(Oi(r,e)),Et[t]&&Et[t].forEach(function(a){Ji(a.name,a.config)}),it(t),K[t]}else return delete K[t],null}function Uc(t,e){if(e!=null){var i,r,a=Cn;K[t]!=null&&K[t].parentLocale!=null?K[t].set(Oi(K[t]._config,e)):(r=Us(t),r!=null&&(a=r._config),e=Oi(a,e),r==null&&(e.abbr=t),i=new Ri(e),i.parentLocale=K[t],K[t]=i),it(t)}else K[t]!=null&&(K[t].parentLocale!=null?(K[t]=K[t].parentLocale,t===it()&&it(t)):K[t]!=null&&delete K[t]);return K[t]}function qe(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Zt;if(!ke(t)){if(e=Us(t),e)return e;t=[t]}return $c(t)}function Ec(){return Ci(K)}function Bi(t){var e,i=t._a;return i&&j(t).overflow===-2&&(e=i[ze]<0||i[ze]>11?ze:i[Le]<1||i[Le]>Hi(i[ne],i[ze])?Le:i[ie]<0||i[ie]>24||i[ie]===24&&(i[ve]!==0||i[Ge]!==0||i[dt]!==0)?ie:i[ve]<0||i[ve]>59?ve:i[Ge]<0||i[Ge]>59?Ge:i[dt]<0||i[dt]>999?dt:-1,j(t)._overflowDayOfYear&&(e<ne||e>Le)&&(e=Le),j(t)._overflowWeeks&&e===-1&&(e=Gu),j(t)._overflowWeekday&&e===-1&&(e=Ju),j(t).overflow=e),t}var Hc=/^\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)?)?$/,Vc=/^\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)?)?$/,zc=/Z|[+-]\d\d(?::?\d\d)?/,Ss=[["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/]],Gc=/^\/?Date\((-?\d+)/i,Jc=/^(?:(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}))$/,Bc={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Ln(t){var e,i,r=t._i,a=Hc.exec(r)||Vc.exec(r),l,c,h,f,_=Ss.length,w=Di.length;if(a){for(j(t).iso=!0,e=0,i=_;e<i;e++)if(Ss[e][1].exec(a[1])){c=Ss[e][0],l=Ss[e][2]!==!1;break}if(c==null){t._isValid=!1;return}if(a[3]){for(e=0,i=w;e<i;e++)if(Di[e][1].exec(a[3])){h=(a[2]||" ")+Di[e][0];break}if(h==null){t._isValid=!1;return}}if(!l&&h!=null){t._isValid=!1;return}if(a[4])if(zc.exec(a[4]))f="Z";else{t._isValid=!1;return}t._f=c+(h||"")+(f||""),qi(t)}else t._isValid=!1}function Zc(t,e,i,r,a,l){var c=[qc(t),vn.indexOf(e),parseInt(i,10),parseInt(r,10),parseInt(a,10)];return l&&c.push(parseInt(l,10)),c}function qc(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function Qc(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Kc(t,e,i){if(t){var r=Yn.indexOf(t),a=new Date(e[0],e[1],e[2]).getDay();if(r!==a)return j(i).weekdayMismatch=!0,i._isValid=!1,!1}return!0}function Xc(t,e,i){if(t)return Bc[t];if(e)return 0;var r=parseInt(i,10),a=r%100,l=(r-a)/100;return l*60+a}function jn(t){var e=Jc.exec(Qc(t._i)),i;if(e){if(i=Zc(e[4],e[3],e[2],e[5],e[6],e[7]),!Kc(e[1],i,t))return;t._a=i,t._tzm=Xc(e[8],e[9],e[10]),t._d=Jt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),j(t).rfc2822=!0}else t._isValid=!1}function eh(t){var e=Gc.exec(t._i);if(e!==null){t._d=new Date(+e[1]);return}if(Ln(t),t._isValid===!1)delete t._isValid;else return;if(jn(t),t._isValid===!1)delete t._isValid;else return;t._strict?t._isValid=!1:S.createFromInputFallback(t)}S.createFromInputFallback=_e("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))});function Mt(t,e,i){return t??e??i}function th(t){var e=new Date(S.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function Zi(t){var e,i,r=[],a,l,c;if(!t._d){for(a=th(t),t._w&&t._a[Le]==null&&t._a[ze]==null&&sh(t),t._dayOfYear!=null&&(c=Mt(t._a[ne],a[ne]),(t._dayOfYear>zt(c)||t._dayOfYear===0)&&(j(t)._overflowDayOfYear=!0),i=Jt(c,0,t._dayOfYear),t._a[ze]=i.getUTCMonth(),t._a[Le]=i.getUTCDate()),e=0;e<3&&t._a[e]==null;++e)t._a[e]=r[e]=a[e];for(;e<7;e++)t._a[e]=r[e]=t._a[e]==null?e===2?1:0:t._a[e];t._a[ie]===24&&t._a[ve]===0&&t._a[Ge]===0&&t._a[dt]===0&&(t._nextDay=!0,t._a[ie]=0),t._d=(t._useUTC?Jt:lc).apply(null,r),l=t._useUTC?t._d.getUTCDay():t._d.getDay(),t._tzm!=null&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[ie]=24),t._w&&typeof t._w.d<"u"&&t._w.d!==l&&(j(t).weekdayMismatch=!0)}}function sh(t){var e,i,r,a,l,c,h,f,_;e=t._w,e.GG!=null||e.W!=null||e.E!=null?(l=1,c=4,i=Mt(e.GG,t._a[ne],Bt(Z(),1,4).year),r=Mt(e.W,1),a=Mt(e.E,1),(a<1||a>7)&&(f=!0)):(l=t._locale._week.dow,c=t._locale._week.doy,_=Bt(Z(),l,c),i=Mt(e.gg,t._a[ne],_.year),r=Mt(e.w,_.week),e.d!=null?(a=e.d,(a<0||a>6)&&(f=!0)):e.e!=null?(a=e.e+l,(e.e<0||e.e>6)&&(f=!0)):a=l),r<1||r>Be(i,l,c)?j(t)._overflowWeeks=!0:f!=null?j(t)._overflowWeekday=!0:(h=bn(i,r,a,l,c),t._a[ne]=h.year,t._dayOfYear=h.dayOfYear)}S.ISO_8601=function(){};S.RFC_2822=function(){};function qi(t){if(t._f===S.ISO_8601){Ln(t);return}if(t._f===S.RFC_2822){jn(t);return}t._a=[],j(t).empty=!0;var e=""+t._i,i,r,a,l,c,h=e.length,f=0,_,w;for(a=fn(t._f,t._locale).match(Fi)||[],w=a.length,i=0;i<w;i++)l=a[i],r=(e.match(Hu(l,t))||[])[0],r&&(c=e.substr(0,e.indexOf(r)),c.length>0&&j(t).unusedInput.push(c),e=e.slice(e.indexOf(r)+r.length),f+=r.length),Yt[l]?(r?j(t).empty=!1:j(t).unusedTokens.push(l),zu(l,r,t)):t._strict&&!r&&j(t).unusedTokens.push(l);j(t).charsLeftOver=h-f,e.length>0&&j(t).unusedInput.push(e),t._a[ie]<=12&&j(t).bigHour===!0&&t._a[ie]>0&&(j(t).bigHour=void 0),j(t).parsedDateParts=t._a.slice(0),j(t).meridiem=t._meridiem,t._a[ie]=ih(t._locale,t._a[ie],t._meridiem),_=j(t).era,_!==null&&(t._a[ne]=t._locale.erasConvertYear(_,t._a[ne])),Zi(t),Bi(t)}function ih(t,e,i){var r;return i==null?e:t.meridiemHour!=null?t.meridiemHour(e,i):(t.isPM!=null&&(r=t.isPM(i),r&&e<12&&(e+=12),!r&&e===12&&(e=0)),e)}function rh(t){var e,i,r,a,l,c,h=!1,f=t._f.length;if(f===0){j(t).invalidFormat=!0,t._d=new Date(NaN);return}for(a=0;a<f;a++)l=0,c=!1,e=Ii({},t),t._useUTC!=null&&(e._useUTC=t._useUTC),e._f=t._f[a],qi(e),Wi(e)&&(c=!0),l+=j(e).charsLeftOver,l+=j(e).unusedTokens.length*10,j(e).score=l,h?l<r&&(r=l,i=e):(r==null||l<r||c)&&(r=l,i=e,c&&(h=!0));tt(t,i||e)}function nh(t){if(!t._d){var e=$i(t._i),i=e.day===void 0?e.date:e.day;t._a=un([e.year,e.month,i,e.hour,e.minute,e.second,e.millisecond],function(r){return r&&parseInt(r,10)}),Zi(t)}}function ah(t){var e=new Qt(Bi(xn(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function xn(t){var e=t._i,i=t._f;return t._locale=t._locale||qe(t._l),e===null||i===void 0&&e===""?Ns({nullInput:!0}):(typeof e=="string"&&(t._i=e=t._locale.preparse(e)),Se(e)?new Qt(Bi(e)):(qt(e)?t._d=e:ke(i)?rh(t):i?qi(t):oh(t),Wi(t)||(t._d=null),t))}function oh(t){var e=t._i;oe(e)?t._d=new Date(S.now()):qt(e)?t._d=new Date(e.valueOf()):typeof e=="string"?eh(t):ke(e)?(t._a=un(e.slice(0),function(i){return parseInt(i,10)}),Zi(t)):ut(e)?nh(t):Ze(e)?t._d=new Date(e):S.createFromInputFallback(t)}function Pn(t,e,i,r,a){var l={};return(e===!0||e===!1)&&(r=e,e=void 0),(i===!0||i===!1)&&(r=i,i=void 0),(ut(t)&&Ni(t)||ke(t)&&t.length===0)&&(t=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=a,l._l=i,l._i=t,l._f=e,l._strict=r,ah(l)}function Z(t,e,i,r){return Pn(t,e,i,r,!1)}var lh=_e("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Z.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:Ns()}),dh=_e("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Z.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:Ns()});function Nn(t,e){var i,r;if(e.length===1&&ke(e[0])&&(e=e[0]),!e.length)return Z();for(i=e[0],r=1;r<e.length;++r)(!e[r].isValid()||e[r][t](i))&&(i=e[r]);return i}function uh(){var t=[].slice.call(arguments,0);return Nn("isBefore",t)}function ch(){var t=[].slice.call(arguments,0);return Nn("isAfter",t)}var hh=function(){return Date.now?Date.now():+new Date},Ht=["year","quarter","month","week","day","hour","minute","second","millisecond"];function fh(t){var e,i=!1,r,a=Ht.length;for(e in t)if(A(t,e)&&!(te.call(Ht,e)!==-1&&(t[e]==null||!isNaN(t[e]))))return!1;for(r=0;r<a;++r)if(t[Ht[r]]){if(i)return!1;parseFloat(t[Ht[r]])!==N(t[Ht[r]])&&(i=!0)}return!0}function _h(){return this._isValid}function mh(){return Me(NaN)}function Es(t){var e=$i(t),i=e.year||0,r=e.quarter||0,a=e.month||0,l=e.week||e.isoWeek||0,c=e.day||0,h=e.hour||0,f=e.minute||0,_=e.second||0,w=e.millisecond||0;this._isValid=fh(e),this._milliseconds=+w+_*1e3+f*6e4+h*1e3*60*60,this._days=+c+l*7,this._months=+a+r*3+i*12,this._data={},this._locale=qe(),this._bubble()}function bs(t){return t instanceof Es}function ji(t){return t<0?Math.round(-1*t)*-1:Math.round(t)}function gh(t,e,i){var r=Math.min(t.length,e.length),a=Math.abs(t.length-e.length),l=0,c;for(c=0;c<r;c++)N(t[c])!==N(e[c])&&l++;return l+a}function Wn(t,e){O(t,0,0,function(){var i=this.utcOffset(),r="+";return i<0&&(i=-i,r="-"),r+je(~~(i/60),2)+e+je(~~i%60,2)})}Wn("Z",":");Wn("ZZ","");b("Z",$s);b("ZZ",$s);V(["Z","ZZ"],function(t,e,i){i._useUTC=!0,i._tzm=Qi($s,t)});var wh=/([\+\-]|\d\d)/gi;function Qi(t,e){var i=(e||"").match(t),r,a,l;return i===null?null:(r=i[i.length-1]||[],a=(r+"").match(wh)||["-",0,0],l=+(a[1]*60)+N(a[2]),l===0?0:a[0]==="+"?l:-l)}function Ki(t,e){var i,r;return e._isUTC?(i=e.clone(),r=(Se(t)||qt(t)?t.valueOf():Z(t).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+r),S.updateOffset(i,!1),i):Z(t).local()}function xi(t){return-Math.round(t._d.getTimezoneOffset())}S.updateOffset=function(){};function ph(t,e,i){var r=this._offset||0,a;if(!this.isValid())return t!=null?this:NaN;if(t!=null){if(typeof t=="string"){if(t=Qi($s,t),t===null)return this}else Math.abs(t)<16&&!i&&(t=t*60);return!this._isUTC&&e&&(a=xi(this)),this._offset=t,this._isUTC=!0,a!=null&&this.add(a,"m"),r!==t&&(!e||this._changeInProgress?Fn(this,Me(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,S.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:xi(this)}function yh(t,e){return t!=null?(typeof t!="string"&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function vh(t){return this.utcOffset(0,t)}function kh(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(xi(this),"m")),this}function Sh(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var t=Qi(Uu,this._i);t!=null?this.utcOffset(t):this.utcOffset(0,!0)}return this}function Mh(t){return this.isValid()?(t=t?Z(t).utcOffset():0,(this.utcOffset()-t)%60===0):!1}function Dh(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function bh(){if(!oe(this._isDSTShifted))return this._isDSTShifted;var t={},e;return Ii(t,this),t=xn(t),t._a?(e=t._isUTC?xe(t._a):Z(t._a),this._isDSTShifted=this.isValid()&&gh(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Yh(){return this.isValid()?!this._isUTC:!1}function Th(){return this.isValid()?this._isUTC:!1}function In(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Oh=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ch=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Me(t,e){var i=t,r=null,a,l,c;return bs(t)?i={ms:t._milliseconds,d:t._days,M:t._months}:Ze(t)||!isNaN(+t)?(i={},e?i[e]=+t:i.milliseconds=+t):(r=Oh.exec(t))?(a=r[1]==="-"?-1:1,i={y:0,d:N(r[Le])*a,h:N(r[ie])*a,m:N(r[ve])*a,s:N(r[Ge])*a,ms:N(ji(r[dt]*1e3))*a}):(r=Ch.exec(t))?(a=r[1]==="-"?-1:1,i={y:ot(r[2],a),M:ot(r[3],a),w:ot(r[4],a),d:ot(r[5],a),h:ot(r[6],a),m:ot(r[7],a),s:ot(r[8],a)}):i==null?i={}:typeof i=="object"&&("from"in i||"to"in i)&&(c=Lh(Z(i.from),Z(i.to)),i={},i.ms=c.milliseconds,i.M=c.months),l=new Es(i),bs(t)&&A(t,"_locale")&&(l._locale=t._locale),bs(t)&&A(t,"_isValid")&&(l._isValid=t._isValid),l}Me.fn=Es.prototype;Me.invalid=mh;function ot(t,e){var i=t&&parseFloat(t.replace(",","."));return(isNaN(i)?0:i)*e}function nn(t,e){var i={};return i.months=e.month()-t.month()+(e.year()-t.year())*12,t.clone().add(i.months,"M").isAfter(e)&&--i.months,i.milliseconds=+e-+t.clone().add(i.months,"M"),i}function Lh(t,e){var i;return t.isValid()&&e.isValid()?(e=Ki(e,t),t.isBefore(e)?i=nn(t,e):(i=nn(e,t),i.milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}function Rn(t,e){return function(i,r){var a,l;return r!==null&&!isNaN(+r)&&(hn(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."),l=i,i=r,r=l),a=Me(i,r),Fn(this,a,t),this}}function Fn(t,e,i,r){var a=e._milliseconds,l=ji(e._days),c=ji(e._months);t.isValid()&&(r=r??!0,c&&Sn(t,Gt(t,"Month")+c*i),l&&yn(t,"Date",Gt(t,"Date")+l*i),a&&t._d.setTime(t._d.valueOf()+a*i),r&&S.updateOffset(t,l||c))}var jh=Rn(1,"add"),xh=Rn(-1,"subtract");function $n(t){return typeof t=="string"||t instanceof String}function Ph(t){return Se(t)||qt(t)||$n(t)||Ze(t)||Wh(t)||Nh(t)||t===null||t===void 0}function Nh(t){var e=ut(t)&&!Ni(t),i=!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"],a,l,c=r.length;for(a=0;a<c;a+=1)l=r[a],i=i||A(t,l);return e&&i}function Wh(t){var e=ke(t),i=!1;return e&&(i=t.filter(function(r){return!Ze(r)&&$n(t)}).length===0),e&&i}function Ih(t){var e=ut(t)&&!Ni(t),i=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],a,l;for(a=0;a<r.length;a+=1)l=r[a],i=i||A(t,l);return e&&i}function Rh(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 Fh(t,e){arguments.length===1&&(arguments[0]?Ph(arguments[0])?(t=arguments[0],e=void 0):Ih(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var i=t||Z(),r=Ki(i,this).startOf("day"),a=S.calendarFormat(this,r)||"sameElse",l=e&&(Pe(e[a])?e[a].call(this,i):e[a]);return this.format(l||this.localeData().calendar(a,this,Z(i)))}function $h(){return new Qt(this)}function Ah(t,e){var i=Se(t)?t:Z(t);return this.isValid()&&i.isValid()?(e=me(e)||"millisecond",e==="millisecond"?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(e).valueOf()):!1}function Uh(t,e){var i=Se(t)?t:Z(t);return this.isValid()&&i.isValid()?(e=me(e)||"millisecond",e==="millisecond"?this.valueOf()<i.valueOf():this.clone().endOf(e).valueOf()<i.valueOf()):!1}function Eh(t,e,i,r){var a=Se(t)?t:Z(t),l=Se(e)?e:Z(e);return this.isValid()&&a.isValid()&&l.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(a,i):!this.isBefore(a,i))&&(r[1]===")"?this.isBefore(l,i):!this.isAfter(l,i))):!1}function Hh(t,e){var i=Se(t)?t:Z(t),r;return this.isValid()&&i.isValid()?(e=me(e)||"millisecond",e==="millisecond"?this.valueOf()===i.valueOf():(r=i.valueOf(),this.clone().startOf(e).valueOf()<=r&&r<=this.clone().endOf(e).valueOf())):!1}function Vh(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function zh(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function Gh(t,e,i){var r,a,l;if(!this.isValid())return NaN;if(r=Ki(t,this),!r.isValid())return NaN;switch(a=(r.utcOffset()-this.utcOffset())*6e4,e=me(e),e){case"year":l=Ys(this,r)/12;break;case"month":l=Ys(this,r);break;case"quarter":l=Ys(this,r)/3;break;case"second":l=(this-r)/1e3;break;case"minute":l=(this-r)/6e4;break;case"hour":l=(this-r)/36e5;break;case"day":l=(this-r-a)/864e5;break;case"week":l=(this-r-a)/6048e5;break;default:l=this-r}return i?l:fe(l)}function Ys(t,e){if(t.date()<e.date())return-Ys(e,t);var i=(e.year()-t.year())*12+(e.month()-t.month()),r=t.clone().add(i,"months"),a,l;return e-r<0?(a=t.clone().add(i-1,"months"),l=(e-r)/(r-a)):(a=t.clone().add(i+1,"months"),l=(e-r)/(a-r)),-(i+l)||0}S.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";S.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Jh(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Bh(t){if(!this.isValid())return null;var e=t!==!0,i=e?this.clone().utc():this;return i.year()<0||i.year()>9999?Ds(i,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Pe(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Ds(i,"Z")):Ds(i,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Zh(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="",i,r,a,l;return this.isLocal()||(t=this.utcOffset()===0?"moment.utc":"moment.parseZone",e="Z"),i="["+t+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",l=e+'[")]',this.format(i+r+a+l)}function qh(t){t||(t=this.isUtc()?S.defaultFormatUtc:S.defaultFormat);var e=Ds(this,t);return this.localeData().postformat(e)}function Qh(t,e){return this.isValid()&&(Se(t)&&t.isValid()||Z(t).isValid())?Me({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function Kh(t){return this.from(Z(),t)}function Xh(t,e){return this.isValid()&&(Se(t)&&t.isValid()||Z(t).isValid())?Me({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function ef(t){return this.to(Z(),t)}function An(t){var e;return t===void 0?this._locale._abbr:(e=qe(t),e!=null&&(this._locale=e),this)}var Un=_e("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return t===void 0?this.localeData():this.locale(t)});function En(){return this._locale}var js=1e3,Tt=60*js,xs=60*Tt,Hn=(365*400+97)*24*xs;function Ot(t,e){return(t%e+e)%e}function Vn(t,e,i){return t<100&&t>=0?new Date(t+400,e,i)-Hn:new Date(t,e,i).valueOf()}function zn(t,e,i){return t<100&&t>=0?Date.UTC(t+400,e,i)-Hn:Date.UTC(t,e,i)}function tf(t){var e,i;if(t=me(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(i=this._isUTC?zn:Vn,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-=Ot(e+(this._isUTC?0:this.utcOffset()*Tt),xs);break;case"minute":e=this._d.valueOf(),e-=Ot(e,Tt);break;case"second":e=this._d.valueOf(),e-=Ot(e,js);break}return this._d.setTime(e),S.updateOffset(this,!0),this}function sf(t){var e,i;if(t=me(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(i=this._isUTC?zn:Vn,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+=xs-Ot(e+(this._isUTC?0:this.utcOffset()*Tt),xs)-1;break;case"minute":e=this._d.valueOf(),e+=Tt-Ot(e,Tt)-1;break;case"second":e=this._d.valueOf(),e+=js-Ot(e,js)-1;break}return this._d.setTime(e),S.updateOffset(this,!0),this}function rf(){return this._d.valueOf()-(this._offset||0)*6e4}function nf(){return Math.floor(this.valueOf()/1e3)}function af(){return new Date(this.valueOf())}function of(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function lf(){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 df(){return this.isValid()?this.toISOString():null}function uf(){return Wi(this)}function cf(){return tt({},j(this))}function hf(){return j(this).overflow}function ff(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}O("N",0,0,"eraAbbr");O("NN",0,0,"eraAbbr");O("NNN",0,0,"eraAbbr");O("NNNN",0,0,"eraName");O("NNNNN",0,0,"eraNarrow");O("y",["y",1],"yo","eraYear");O("y",["yy",2],0,"eraYear");O("y",["yyy",3],0,"eraYear");O("y",["yyyy",4],0,"eraYear");b("N",Xi);b("NN",Xi);b("NNN",Xi);b("NNNN",Df);b("NNNNN",bf);V(["N","NN","NNN","NNNN","NNNNN"],function(t,e,i,r){var a=i._locale.erasParse(t,r,i._strict);a?j(i).era=a:j(i).invalidEra=t});b("y",Ct);b("yy",Ct);b("yyy",Ct);b("yyyy",Ct);b("yo",Yf);V(["y","yy","yyy","yyyy"],ne);V(["yo"],function(t,e,i,r){var a;i._locale._eraYearOrdinalRegex&&(a=t.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?e[ne]=i._locale.eraYearOrdinalParse(t,a):e[ne]=parseInt(t,10)});function _f(t,e){var i,r,a,l=this._eras||qe("en")._eras;for(i=0,r=l.length;i<r;++i){switch(typeof l[i].since){case"string":a=S(l[i].since).startOf("day"),l[i].since=a.valueOf();break}switch(typeof l[i].until){case"undefined":l[i].until=1/0;break;case"string":a=S(l[i].until).startOf("day").valueOf(),l[i].until=a.valueOf();break}}return l}function mf(t,e,i){var r,a,l=this.eras(),c,h,f;for(t=t.toUpperCase(),r=0,a=l.length;r<a;++r)if(c=l[r].name.toUpperCase(),h=l[r].abbr.toUpperCase(),f=l[r].narrow.toUpperCase(),i)switch(e){case"N":case"NN":case"NNN":if(h===t)return l[r];break;case"NNNN":if(c===t)return l[r];break;case"NNNNN":if(f===t)return l[r];break}else if([c,h,f].indexOf(t)>=0)return l[r]}function gf(t,e){var i=t.since<=t.until?1:-1;return e===void 0?S(t.since).year():S(t.since).year()+(e-t.offset)*i}function wf(){var t,e,i,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t)if(i=this.clone().startOf("day").valueOf(),r[t].since<=i&&i<=r[t].until||r[t].until<=i&&i<=r[t].since)return r[t].name;return""}function pf(){var t,e,i,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t)if(i=this.clone().startOf("day").valueOf(),r[t].since<=i&&i<=r[t].until||r[t].until<=i&&i<=r[t].since)return r[t].narrow;return""}function yf(){var t,e,i,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t)if(i=this.clone().startOf("day").valueOf(),r[t].since<=i&&i<=r[t].until||r[t].until<=i&&i<=r[t].since)return r[t].abbr;return""}function vf(){var t,e,i,r,a=this.localeData().eras();for(t=0,e=a.length;t<e;++t)if(i=a[t].since<=a[t].until?1:-1,r=this.clone().startOf("day").valueOf(),a[t].since<=r&&r<=a[t].until||a[t].until<=r&&r<=a[t].since)return(this.year()-S(a[t].since).year())*i+a[t].offset;return this.year()}function kf(t){return A(this,"_erasNameRegex")||er.call(this),t?this._erasNameRegex:this._erasRegex}function Sf(t){return A(this,"_erasAbbrRegex")||er.call(this),t?this._erasAbbrRegex:this._erasRegex}function Mf(t){return A(this,"_erasNarrowRegex")||er.call(this),t?this._erasNarrowRegex:this._erasRegex}function Xi(t,e){return e.erasAbbrRegex(t)}function Df(t,e){return e.erasNameRegex(t)}function bf(t,e){return e.erasNarrowRegex(t)}function Yf(t,e){return e._eraYearOrdinalRegex||Ct}function er(){var t=[],e=[],i=[],r=[],a,l,c,h,f,_=this.eras();for(a=0,l=_.length;a<l;++a)c=Je(_[a].name),h=Je(_[a].abbr),f=Je(_[a].narrow),e.push(c),t.push(h),i.push(f),r.push(c),r.push(h),r.push(f);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+e.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+t.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}O(0,["gg",2],0,function(){return this.weekYear()%100});O(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Hs(t,e){O(0,[t,t.length],0,e)}Hs("gggg","weekYear");Hs("ggggg","weekYear");Hs("GGGG","isoWeekYear");Hs("GGGGG","isoWeekYear");b("G",Fs);b("g",Fs);b("GG",q,de);b("gg",q,de);b("GGGG",Ui,Ai);b("gggg",Ui,Ai);b("GGGGG",Rs,Ws);b("ggggg",Rs,Ws);Xt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,i,r){e[r.substr(0,2)]=N(t)});Xt(["gg","GG"],function(t,e,i,r){e[r]=S.parseTwoDigitYear(t)});function Tf(t){return Gn.call(this,t,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Of(t){return Gn.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Cf(){return Be(this.year(),1,4)}function Lf(){return Be(this.isoWeekYear(),1,4)}function jf(){var t=this.localeData()._week;return Be(this.year(),t.dow,t.doy)}function xf(){var t=this.localeData()._week;return Be(this.weekYear(),t.dow,t.doy)}function Gn(t,e,i,r,a){var l;return t==null?Bt(this,r,a).year:(l=Be(t,r,a),e>l&&(e=l),Pf.call(this,t,e,i,r,a))}function Pf(t,e,i,r,a){var l=bn(t,e,i,r,a),c=Jt(l.year,0,l.dayOfYear);return this.year(c.getUTCFullYear()),this.month(c.getUTCMonth()),this.date(c.getUTCDate()),this}O("Q",0,"Qo","quarter");b("Q",_n);V("Q",function(t,e){e[ze]=(N(t)-1)*3});function Nf(t){return t==null?Math.ceil((this.month()+1)/3):this.month((t-1)*3+this.month()%3)}O("D",["DD",2],"Do","date");b("D",q,Lt);b("DD",q,de);b("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient});V(["D","DD"],Le);V("Do",function(t,e){e[Le]=N(t.match(q)[0])});var Jn=jt("Date",!0);O("DDD",["DDDD",3],"DDDo","dayOfYear");b("DDD",Is);b("DDDD",mn);V(["DDD","DDDD"],function(t,e,i){i._dayOfYear=N(t)});function Wf(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return t==null?e:this.add(t-e,"d")}O("m",["mm",2],0,"minute");b("m",q,Ei);b("mm",q,de);V(["m","mm"],ve);var If=jt("Minutes",!1);O("s",["ss",2],0,"second");b("s",q,Ei);b("ss",q,de);V(["s","ss"],Ge);var Rf=jt("Seconds",!1);O("S",0,0,function(){return~~(this.millisecond()/100)});O(0,["SS",2],0,function(){return~~(this.millisecond()/10)});O(0,["SSS",3],0,"millisecond");O(0,["SSSS",4],0,function(){return this.millisecond()*10});O(0,["SSSSS",5],0,function(){return this.millisecond()*100});O(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});O(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});O(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});O(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});b("S",Is,_n);b("SS",Is,de);b("SSS",Is,mn);var st,Bn;for(st="SSSS";st.length<=9;st+="S")b(st,Ct);function Ff(t,e){e[dt]=N(("0."+t)*1e3)}for(st="S";st.length<=9;st+="S")V(st,Ff);Bn=jt("Milliseconds",!1);O("z",0,0,"zoneAbbr");O("zz",0,0,"zoneName");function $f(){return this._isUTC?"UTC":""}function Af(){return this._isUTC?"Coordinated Universal Time":""}var v=Qt.prototype;v.add=jh;v.calendar=Fh;v.clone=$h;v.diff=Gh;v.endOf=sf;v.format=qh;v.from=Qh;v.fromNow=Kh;v.to=Xh;v.toNow=ef;v.get=Zu;v.invalidAt=hf;v.isAfter=Ah;v.isBefore=Uh;v.isBetween=Eh;v.isSame=Hh;v.isSameOrAfter=Vh;v.isSameOrBefore=zh;v.isValid=uf;v.lang=Un;v.locale=An;v.localeData=En;v.max=dh;v.min=lh;v.parsingFlags=cf;v.set=qu;v.startOf=tf;v.subtract=xh;v.toArray=of;v.toObject=lf;v.toDate=af;v.toISOString=Bh;v.inspect=Zh;typeof Symbol<"u"&&Symbol.for!=null&&(v[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});v.toJSON=df;v.toString=Jh;v.unix=nf;v.valueOf=rf;v.creationData=ff;v.eraName=wf;v.eraNarrow=pf;v.eraAbbr=yf;v.eraYear=vf;v.year=pn;v.isLeapYear=Bu;v.weekYear=Tf;v.isoWeekYear=Of;v.quarter=v.quarters=Nf;v.month=Mn;v.daysInMonth=nc;v.week=v.weeks=fc;v.isoWeek=v.isoWeeks=_c;v.weeksInYear=jf;v.weeksInWeekYear=xf;v.isoWeeksInYear=Cf;v.isoWeeksInISOWeekYear=Lf;v.date=Jn;v.day=v.days=Tc;v.weekday=Oc;v.isoWeekday=Cc;v.dayOfYear=Wf;v.hour=v.hours=Ic;v.minute=v.minutes=If;v.second=v.seconds=Rf;v.millisecond=v.milliseconds=Bn;v.utcOffset=ph;v.utc=vh;v.local=kh;v.parseZone=Sh;v.hasAlignedHourOffset=Mh;v.isDST=Dh;v.isLocal=Yh;v.isUtcOffset=Th;v.isUtc=In;v.isUTC=In;v.zoneAbbr=$f;v.zoneName=Af;v.dates=_e("dates accessor is deprecated. Use date instead.",Jn);v.months=_e("months accessor is deprecated. Use month instead",Mn);v.years=_e("years accessor is deprecated. Use year instead",pn);v.zone=_e("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",yh);v.isDSTShifted=_e("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",bh);function Uf(t){return Z(t*1e3)}function Ef(){return Z.apply(null,arguments).parseZone()}function Zn(t){return t}var U=Ri.prototype;U.calendar=Yu;U.longDateFormat=Lu;U.invalidDate=xu;U.ordinal=Wu;U.preparse=Zn;U.postformat=Zn;U.relativeTime=Ru;U.pastFuture=Fu;U.set=Du;U.eras=_f;U.erasParse=mf;U.erasConvertYear=gf;U.erasAbbrRegex=Sf;U.erasNameRegex=kf;U.erasNarrowRegex=Mf;U.months=tc;U.monthsShort=sc;U.monthsParse=rc;U.monthsRegex=oc;U.monthsShortRegex=ac;U.week=dc;U.firstDayOfYear=hc;U.firstDayOfWeek=cc;U.weekdays=Sc;U.weekdaysMin=Dc;U.weekdaysShort=Mc;U.weekdaysParse=Yc;U.weekdaysRegex=Lc;U.weekdaysShortRegex=jc;U.weekdaysMinRegex=xc;U.isPM=Nc;U.meridiem=Rc;function Ps(t,e,i,r){var a=qe(),l=xe().set(r,e);return a[i](l,t)}function qn(t,e,i){if(Ze(t)&&(e=t,t=void 0),t=t||"",e!=null)return Ps(t,e,i,"month");var r,a=[];for(r=0;r<12;r++)a[r]=Ps(t,r,i,"month");return a}function tr(t,e,i,r){typeof t=="boolean"?(Ze(e)&&(i=e,e=void 0),e=e||""):(e=t,i=e,t=!1,Ze(e)&&(i=e,e=void 0),e=e||"");var a=qe(),l=t?a._week.dow:0,c,h=[];if(i!=null)return Ps(e,(i+l)%7,r,"day");for(c=0;c<7;c++)h[c]=Ps(e,(c+l)%7,r,"day");return h}function Hf(t,e){return qn(t,e,"months")}function Vf(t,e){return qn(t,e,"monthsShort")}function zf(t,e,i){return tr(t,e,i,"weekdays")}function Gf(t,e,i){return tr(t,e,i,"weekdaysShort")}function Jf(t,e,i){return tr(t,e,i,"weekdaysMin")}it("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,i=N(t%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return t+i}});S.lang=_e("moment.lang is deprecated. Use moment.locale instead.",it);S.langData=_e("moment.langData is deprecated. Use moment.localeData instead.",qe);var He=Math.abs;function Bf(){var t=this._data;return this._milliseconds=He(this._milliseconds),this._days=He(this._days),this._months=He(this._months),t.milliseconds=He(t.milliseconds),t.seconds=He(t.seconds),t.minutes=He(t.minutes),t.hours=He(t.hours),t.months=He(t.months),t.years=He(t.years),this}function Qn(t,e,i,r){var a=Me(e,i);return t._milliseconds+=r*a._milliseconds,t._days+=r*a._days,t._months+=r*a._months,t._bubble()}function Zf(t,e){return Qn(this,t,e,1)}function qf(t,e){return Qn(this,t,e,-1)}function an(t){return t<0?Math.floor(t):Math.ceil(t)}function Qf(){var t=this._milliseconds,e=this._days,i=this._months,r=this._data,a,l,c,h,f;return t>=0&&e>=0&&i>=0||t<=0&&e<=0&&i<=0||(t+=an(Pi(i)+e)*864e5,e=0,i=0),r.milliseconds=t%1e3,a=fe(t/1e3),r.seconds=a%60,l=fe(a/60),r.minutes=l%60,c=fe(l/60),r.hours=c%24,e+=fe(c/24),f=fe(Kn(e)),i+=f,e-=an(Pi(f)),h=fe(i/12),i%=12,r.days=e,r.months=i,r.years=h,this}function Kn(t){return t*4800/146097}function Pi(t){return t*146097/4800}function Kf(t){if(!this.isValid())return NaN;var e,i,r=this._milliseconds;if(t=me(t),t==="month"||t==="quarter"||t==="year")switch(e=this._days+r/864e5,i=this._months+Kn(e),t){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(e=this._days+Math.round(Pi(this._months)),t){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return e*24+r/36e5;case"minute":return e*1440+r/6e4;case"second":return e*86400+r/1e3;case"millisecond":return Math.floor(e*864e5)+r;default:throw new Error("Unknown unit "+t)}}function Qe(t){return function(){return this.as(t)}}var Xn=Qe("ms"),Xf=Qe("s"),e_=Qe("m"),t_=Qe("h"),s_=Qe("d"),i_=Qe("w"),r_=Qe("M"),n_=Qe("Q"),a_=Qe("y"),o_=Xn;function l_(){return Me(this)}function d_(t){return t=me(t),this.isValid()?this[t+"s"]():NaN}function ct(t){return function(){return this.isValid()?this._data[t]:NaN}}var u_=ct("milliseconds"),c_=ct("seconds"),h_=ct("minutes"),f_=ct("hours"),__=ct("days"),m_=ct("months"),g_=ct("years");function w_(){return fe(this.days()/7)}var Ve=Math.round,Dt={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function p_(t,e,i,r,a){return a.relativeTime(e||1,!!i,t,r)}function y_(t,e,i,r){var a=Me(t).abs(),l=Ve(a.as("s")),c=Ve(a.as("m")),h=Ve(a.as("h")),f=Ve(a.as("d")),_=Ve(a.as("M")),w=Ve(a.as("w")),g=Ve(a.as("y")),W=l<=i.ss&&["s",l]||l<i.s&&["ss",l]||c<=1&&["m"]||c<i.m&&["mm",c]||h<=1&&["h"]||h<i.h&&["hh",h]||f<=1&&["d"]||f<i.d&&["dd",f];return i.w!=null&&(W=W||w<=1&&["w"]||w<i.w&&["ww",w]),W=W||_<=1&&["M"]||_<i.M&&["MM",_]||g<=1&&["y"]||["yy",g],W[2]=e,W[3]=+t>0,W[4]=r,p_.apply(null,W)}function v_(t){return t===void 0?Ve:typeof t=="function"?(Ve=t,!0):!1}function k_(t,e){return Dt[t]===void 0?!1:e===void 0?Dt[t]:(Dt[t]=e,t==="s"&&(Dt.ss=e-1),!0)}function S_(t,e){if(!this.isValid())return this.localeData().invalidDate();var i=!1,r=Dt,a,l;return typeof t=="object"&&(e=t,t=!1),typeof t=="boolean"&&(i=t),typeof e=="object"&&(r=Object.assign({},Dt,e),e.s!=null&&e.ss==null&&(r.ss=e.s-1)),a=this.localeData(),l=y_(this,!i,r,a),i&&(l=a.pastFuture(+this,l)),a.postformat(l)}var bi=Math.abs;function St(t){return(t>0)-(t<0)||+t}function Vs(){if(!this.isValid())return this.localeData().invalidDate();var t=bi(this._milliseconds)/1e3,e=bi(this._days),i=bi(this._months),r,a,l,c,h=this.asSeconds(),f,_,w,g;return h?(r=fe(t/60),a=fe(r/60),t%=60,r%=60,l=fe(i/12),i%=12,c=t?t.toFixed(3).replace(/\.?0+$/,""):"",f=h<0?"-":"",_=St(this._months)!==St(h)?"-":"",w=St(this._days)!==St(h)?"-":"",g=St(this._milliseconds)!==St(h)?"-":"",f+"P"+(l?_+l+"Y":"")+(i?_+i+"M":"")+(e?w+e+"D":"")+(a||r||t?"T":"")+(a?g+a+"H":"")+(r?g+r+"M":"")+(t?g+c+"S":"")):"P0D"}var F=Es.prototype;F.isValid=_h;F.abs=Bf;F.add=Zf;F.subtract=qf;F.as=Kf;F.asMilliseconds=Xn;F.asSeconds=Xf;F.asMinutes=e_;F.asHours=t_;F.asDays=s_;F.asWeeks=i_;F.asMonths=r_;F.asQuarters=n_;F.asYears=a_;F.valueOf=o_;F._bubble=Qf;F.clone=l_;F.get=d_;F.milliseconds=u_;F.seconds=c_;F.minutes=h_;F.hours=f_;F.days=__;F.weeks=w_;F.months=m_;F.years=g_;F.humanize=S_;F.toISOString=Vs;F.toString=Vs;F.toJSON=Vs;F.locale=An;F.localeData=En;F.toIsoString=_e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Vs);F.lang=Un;O("X",0,0,"unix");O("x",0,0,"valueOf");b("x",Fs);b("X",Eu);V("X",function(t,e,i){i._d=new Date(parseFloat(t)*1e3)});V("x",function(t,e,i){i._d=new Date(N(t))});//! moment.js
S.version="2.30.1";Su(Z);S.fn=v;S.min=uh;S.max=ch;S.now=hh;S.utc=xe;S.unix=Uf;S.months=Hf;S.isDate=qt;S.locale=it;S.invalid=Ns;S.duration=Me;S.isMoment=Se;S.weekdays=zf;S.parseZone=Ef;S.localeData=qe;S.isDuration=bs;S.monthsShort=Vf;S.weekdaysMin=Jf;S.defineLocale=Ji;S.updateLocale=Uc;S.locales=Ec;S.weekdaysShort=Gf;S.normalizeUnits=me;S.relativeTimeRounding=v_;S.relativeTimeThreshold=k_;S.calendarFormat=Rh;S.prototype=v;S.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"};function ge(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var M_={exports:{}},Ts={exports:{}},D_=Ts.exports,on;function De(){return on||(on=1,function(t,e){(function(i,r){t.exports=r()})(D_,function(){var i;function r(){return i.apply(null,arguments)}function a(s){i=s}function l(s){return s instanceof Array||Object.prototype.toString.call(s)==="[object Array]"}function c(s){return s!=null&&Object.prototype.toString.call(s)==="[object Object]"}function h(s,n){return Object.prototype.hasOwnProperty.call(s,n)}function f(s){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(s).length===0;var n;for(n in s)if(h(s,n))return!1;return!0}function _(s){return s===void 0}function w(s){return typeof s=="number"||Object.prototype.toString.call(s)==="[object Number]"}function g(s){return s instanceof Date||Object.prototype.toString.call(s)==="[object Date]"}function W(s,n){var o=[],d,u=s.length;for(d=0;d<u;++d)o.push(n(s[d],d));return o}function k(s,n){for(var o in n)h(n,o)&&(s[o]=n[o]);return h(n,"toString")&&(s.toString=n.toString),h(n,"valueOf")&&(s.valueOf=n.valueOf),s}function x(s,n,o,d){return Or(s,n,o,d,!0).utc()}function be(){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 Y(s){return s._pf==null&&(s._pf=be()),s._pf}var ht;Array.prototype.some?ht=Array.prototype.some:ht=function(s){var n=Object(this),o=n.length>>>0,d;for(d=0;d<o;d++)if(d in n&&s.call(this,n[d],d,n))return!0;return!1};function zs(s){var n=null,o=!1,d=s._d&&!isNaN(s._d.getTime());if(d&&(n=Y(s),o=ht.call(n.parsedDateParts,function(u){return u!=null}),d=n.overflow<0&&!n.empty&&!n.invalidEra&&!n.invalidMonth&&!n.invalidWeekday&&!n.weekdayMismatch&&!n.nullInput&&!n.invalidFormat&&!n.userInvalidated&&(!n.meridiem||n.meridiem&&o),s._strict&&(d=d&&n.charsLeftOver===0&&n.unusedTokens.length===0&&n.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(s))s._isValid=d;else return d;return s._isValid}function es(s){var n=x(NaN);return s!=null?k(Y(n),s):Y(n).userInvalidated=!0,n}var sr=r.momentProperties=[],Gs=!1;function Js(s,n){var o,d,u,m=sr.length;if(_(n._isAMomentObject)||(s._isAMomentObject=n._isAMomentObject),_(n._i)||(s._i=n._i),_(n._f)||(s._f=n._f),_(n._l)||(s._l=n._l),_(n._strict)||(s._strict=n._strict),_(n._tzm)||(s._tzm=n._tzm),_(n._isUTC)||(s._isUTC=n._isUTC),_(n._offset)||(s._offset=n._offset),_(n._pf)||(s._pf=Y(n)),_(n._locale)||(s._locale=n._locale),m>0)for(o=0;o<m;o++)d=sr[o],u=n[d],_(u)||(s[d]=u);return s}function xt(s){Js(this,s),this._d=new Date(s._d!=null?s._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Gs===!1&&(Gs=!0,r.updateOffset(this),Gs=!1)}function we(s){return s instanceof xt||s!=null&&s._isAMomentObject!=null}function ir(s){r.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+s)}function ue(s,n){var o=!0;return k(function(){if(r.deprecationHandler!=null&&r.deprecationHandler(null,s),o){var d=[],u,m,p,M=arguments.length;for(m=0;m<M;m++){if(u="",typeof arguments[m]=="object"){u+=`
[`+m+"] ";for(p in arguments[0])h(arguments[0],p)&&(u+=p+": "+arguments[0][p]+", ");u=u.slice(0,-2)}else u=arguments[m];d.push(u)}ir(s+`
Arguments: `+Array.prototype.slice.call(d).join("")+`
`+new Error().stack),o=!1}return n.apply(this,arguments)},n)}var rr={};function nr(s,n){r.deprecationHandler!=null&&r.deprecationHandler(s,n),rr[s]||(ir(n),rr[s]=!0)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null;function Ye(s){return typeof Function<"u"&&s instanceof Function||Object.prototype.toString.call(s)==="[object Function]"}function ia(s){var n,o;for(o in s)h(s,o)&&(n=s[o],Ye(n)?this[o]=n:this["_"+o]=n);this._config=s,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Bs(s,n){var o=k({},s),d;for(d in n)h(n,d)&&(c(s[d])&&c(n[d])?(o[d]={},k(o[d],s[d]),k(o[d],n[d])):n[d]!=null?o[d]=n[d]:delete o[d]);for(d in s)h(s,d)&&!h(n,d)&&c(s[d])&&(o[d]=k({},o[d]));return o}function Zs(s){s!=null&&this.set(s)}var qs;Object.keys?qs=Object.keys:qs=function(s){var n,o=[];for(n in s)h(s,n)&&o.push(n);return o};var ra={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function na(s,n,o){var d=this._calendar[s]||this._calendar.sameElse;return Ye(d)?d.call(n,o):d}function Te(s,n,o){var d=""+Math.abs(s),u=n-d.length,m=s>=0;return(m?o?"+":"":"-")+Math.pow(10,Math.max(0,u)).toString().substr(1)+d}var Qs=/(\[[^\[]*\])|(\\)?([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,ts=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ks={},ft={};function T(s,n,o,d){var u=d;typeof d=="string"&&(u=function(){return this[d]()}),s&&(ft[s]=u),n&&(ft[n[0]]=function(){return Te(u.apply(this,arguments),n[1],n[2])}),o&&(ft[o]=function(){return this.localeData().ordinal(u.apply(this,arguments),s)})}function aa(s){return s.match(/\[[\s\S]/)?s.replace(/^\[|\]$/g,""):s.replace(/\\/g,"")}function oa(s){var n=s.match(Qs),o,d;for(o=0,d=n.length;o<d;o++)ft[n[o]]?n[o]=ft[n[o]]:n[o]=aa(n[o]);return function(u){var m="",p;for(p=0;p<d;p++)m+=Ye(n[p])?n[p].call(u,s):n[p];return m}}function ss(s,n){return s.isValid()?(n=ar(n,s.localeData()),Ks[n]=Ks[n]||oa(n),Ks[n](s)):s.localeData().invalidDate()}function ar(s,n){var o=5;function d(u){return n.longDateFormat(u)||u}for(ts.lastIndex=0;o>=0&&ts.test(s);)s=s.replace(ts,d),ts.lastIndex=0,o-=1;return s}var la={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 da(s){var n=this._longDateFormat[s],o=this._longDateFormat[s.toUpperCase()];return n||!o?n:(this._longDateFormat[s]=o.match(Qs).map(function(d){return d==="MMMM"||d==="MM"||d==="DD"||d==="dddd"?d.slice(1):d}).join(""),this._longDateFormat[s])}var ua="Invalid date";function ca(){return this._invalidDate}var ha="%d",fa=/\d{1,2}/;function _a(s){return this._ordinal.replace("%d",s)}var ma={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 ga(s,n,o,d){var u=this._relativeTime[o];return Ye(u)?u(s,n,o,d):u.replace(/%d/i,s)}function wa(s,n){var o=this._relativeTime[s>0?"future":"past"];return Ye(o)?o(n):o.replace(/%s/i,n)}var or={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function ce(s){return typeof s=="string"?or[s]||or[s.toLowerCase()]:void 0}function Xs(s){var n={},o,d;for(d in s)h(s,d)&&(o=ce(d),o&&(n[o]=s[d]));return n}var pa={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function ya(s){var n=[],o;for(o in s)h(s,o)&&n.push({unit:o,priority:pa[o]});return n.sort(function(d,u){return d.priority-u.priority}),n}var lr=/\d/,le=/\d\d/,dr=/\d{3}/,ei=/\d{4}/,is=/[+-]?\d{6}/,G=/\d\d?/,ur=/\d\d\d\d?/,cr=/\d\d\d\d\d\d?/,rs=/\d{1,3}/,ti=/\d{1,4}/,ns=/[+-]?\d{1,6}/,_t=/\d+/,as=/[+-]?\d+/,va=/Z|[+-]\d\d:?\d\d/gi,os=/Z|[+-]\d\d(?::?\d\d)?/gi,ka=/[+-]?\d+(\.\d{1,3})?/,Pt=/[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,mt=/^[1-9]\d?/,si=/^([1-9]\d|\d)/,ls;ls={};function D(s,n,o){ls[s]=Ye(n)?n:function(d,u){return d&&o?o:n}}function Sa(s,n){return h(ls,s)?ls[s](n._strict,n._locale):new RegExp(Ma(s))}function Ma(s){return Ne(s.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,o,d,u,m){return o||d||u||m}))}function Ne(s){return s.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function he(s){return s<0?Math.ceil(s)||0:Math.floor(s)}function P(s){var n=+s,o=0;return n!==0&&isFinite(n)&&(o=he(n)),o}var ii={};function H(s,n){var o,d=n,u;for(typeof s=="string"&&(s=[s]),w(n)&&(d=function(m,p){p[n]=P(m)}),u=s.length,o=0;o<u;o++)ii[s[o]]=d}function Nt(s,n){H(s,function(o,d,u,m){u._w=u._w||{},n(o,u._w,u,m)})}function Da(s,n,o){n!=null&&h(ii,s)&&ii[s](n,o._a,o,s)}function ds(s){return s%4===0&&s%100!==0||s%400===0}var re=0,We=1,Oe=2,se=3,pe=4,Ie=5,rt=6,ba=7,Ya=8;T("Y",0,0,function(){var s=this.year();return s<=9999?Te(s,4):"+"+s}),T(0,["YY",2],0,function(){return this.year()%100}),T(0,["YYYY",4],0,"year"),T(0,["YYYYY",5],0,"year"),T(0,["YYYYYY",6,!0],0,"year"),D("Y",as),D("YY",G,le),D("YYYY",ti,ei),D("YYYYY",ns,is),D("YYYYYY",ns,is),H(["YYYYY","YYYYYY"],re),H("YYYY",function(s,n){n[re]=s.length===2?r.parseTwoDigitYear(s):P(s)}),H("YY",function(s,n){n[re]=r.parseTwoDigitYear(s)}),H("Y",function(s,n){n[re]=parseInt(s,10)});function Wt(s){return ds(s)?366:365}r.parseTwoDigitYear=function(s){return P(s)+(P(s)>68?1900:2e3)};var hr=gt("FullYear",!0);function Ta(){return ds(this.year())}function gt(s,n){return function(o){return o!=null?(fr(this,s,o),r.updateOffset(this,n),this):It(this,s)}}function It(s,n){if(!s.isValid())return NaN;var o=s._d,d=s._isUTC;switch(n){case"Milliseconds":return d?o.getUTCMilliseconds():o.getMilliseconds();case"Seconds":return d?o.getUTCSeconds():o.getSeconds();case"Minutes":return d?o.getUTCMinutes():o.getMinutes();case"Hours":return d?o.getUTCHours():o.getHours();case"Date":return d?o.getUTCDate():o.getDate();case"Day":return d?o.getUTCDay():o.getDay();case"Month":return d?o.getUTCMonth():o.getMonth();case"FullYear":return d?o.getUTCFullYear():o.getFullYear();default:return NaN}}function fr(s,n,o){var d,u,m,p,M;if(!(!s.isValid()||isNaN(o))){switch(d=s._d,u=s._isUTC,n){case"Milliseconds":return void(u?d.setUTCMilliseconds(o):d.setMilliseconds(o));case"Seconds":return void(u?d.setUTCSeconds(o):d.setSeconds(o));case"Minutes":return void(u?d.setUTCMinutes(o):d.setMinutes(o));case"Hours":return void(u?d.setUTCHours(o):d.setHours(o));case"Date":return void(u?d.setUTCDate(o):d.setDate(o));case"FullYear":break;default:return}m=o,p=s.month(),M=s.date(),M=M===29&&p===1&&!ds(m)?28:M,u?d.setUTCFullYear(m,p,M):d.setFullYear(m,p,M)}}function Oa(s){return s=ce(s),Ye(this[s])?this[s]():this}function Ca(s,n){if(typeof s=="object"){s=Xs(s);var o=ya(s),d,u=o.length;for(d=0;d<u;d++)this[o[d].unit](s[o[d].unit])}else if(s=ce(s),Ye(this[s]))return this[s](n);return this}function La(s,n){return(s%n+n)%n}var ee;Array.prototype.indexOf?ee=Array.prototype.indexOf:ee=function(s){var n;for(n=0;n<this.length;++n)if(this[n]===s)return n;return-1};function ri(s,n){if(isNaN(s)||isNaN(n))return NaN;var o=La(n,12);return s+=(n-o)/12,o===1?ds(s)?29:28:31-o%7%2}T("M",["MM",2],"Mo",function(){return this.month()+1}),T("MMM",0,0,function(s){return this.localeData().monthsShort(this,s)}),T("MMMM",0,0,function(s){return this.localeData().months(this,s)}),D("M",G,mt),D("MM",G,le),D("MMM",function(s,n){return n.monthsShortRegex(s)}),D("MMMM",function(s,n){return n.monthsRegex(s)}),H(["M","MM"],function(s,n){n[We]=P(s)-1}),H(["MMM","MMMM"],function(s,n,o,d){var u=o._locale.monthsParse(s,d,o._strict);u!=null?n[We]=u:Y(o).invalidMonth=s});var ja="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),_r="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),mr=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,xa=Pt,Pa=Pt;function Na(s,n){return s?l(this._months)?this._months[s.month()]:this._months[(this._months.isFormat||mr).test(n)?"format":"standalone"][s.month()]:l(this._months)?this._months:this._months.standalone}function Wa(s,n){return s?l(this._monthsShort)?this._monthsShort[s.month()]:this._monthsShort[mr.test(n)?"format":"standalone"][s.month()]:l(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Ia(s,n,o){var d,u,m,p=s.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],d=0;d<12;++d)m=x([2e3,d]),this._shortMonthsParse[d]=this.monthsShort(m,"").toLocaleLowerCase(),this._longMonthsParse[d]=this.months(m,"").toLocaleLowerCase();return o?n==="MMM"?(u=ee.call(this._shortMonthsParse,p),u!==-1?u:null):(u=ee.call(this._longMonthsParse,p),u!==-1?u:null):n==="MMM"?(u=ee.call(this._shortMonthsParse,p),u!==-1?u:(u=ee.call(this._longMonthsParse,p),u!==-1?u:null)):(u=ee.call(this._longMonthsParse,p),u!==-1?u:(u=ee.call(this._shortMonthsParse,p),u!==-1?u:null))}function Ra(s,n,o){var d,u,m;if(this._monthsParseExact)return Ia.call(this,s,n,o);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),d=0;d<12;d++){if(u=x([2e3,d]),o&&!this._longMonthsParse[d]&&(this._longMonthsParse[d]=new RegExp("^"+this.months(u,"").replace(".","")+"$","i"),this._shortMonthsParse[d]=new RegExp("^"+this.monthsShort(u,"").replace(".","")+"$","i")),!o&&!this._monthsParse[d]&&(m="^"+this.months(u,"")+"|^"+this.monthsShort(u,""),this._monthsParse[d]=new RegExp(m.replace(".",""),"i")),o&&n==="MMMM"&&this._longMonthsParse[d].test(s))return d;if(o&&n==="MMM"&&this._shortMonthsParse[d].test(s))return d;if(!o&&this._monthsParse[d].test(s))return d}}function gr(s,n){if(!s.isValid())return s;if(typeof n=="string"){if(/^\d+$/.test(n))n=P(n);else if(n=s.localeData().monthsParse(n),!w(n))return s}var o=n,d=s.date();return d=d<29?d:Math.min(d,ri(s.year(),o)),s._isUTC?s._d.setUTCMonth(o,d):s._d.setMonth(o,d),s}function wr(s){return s!=null?(gr(this,s),r.updateOffset(this,!0),this):It(this,"Month")}function Fa(){return ri(this.year(),this.month())}function $a(s){return this._monthsParseExact?(h(this,"_monthsRegex")||pr.call(this),s?this._monthsShortStrictRegex:this._monthsShortRegex):(h(this,"_monthsShortRegex")||(this._monthsShortRegex=xa),this._monthsShortStrictRegex&&s?this._monthsShortStrictRegex:this._monthsShortRegex)}function Aa(s){return this._monthsParseExact?(h(this,"_monthsRegex")||pr.call(this),s?this._monthsStrictRegex:this._monthsRegex):(h(this,"_monthsRegex")||(this._monthsRegex=Pa),this._monthsStrictRegex&&s?this._monthsStrictRegex:this._monthsRegex)}function pr(){function s(L,I){return I.length-L.length}var n=[],o=[],d=[],u,m,p,M;for(u=0;u<12;u++)m=x([2e3,u]),p=Ne(this.monthsShort(m,"")),M=Ne(this.months(m,"")),n.push(p),o.push(M),d.push(M),d.push(p);n.sort(s),o.sort(s),d.sort(s),this._monthsRegex=new RegExp("^("+d.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function Ua(s,n,o,d,u,m,p){var M;return s<100&&s>=0?(M=new Date(s+400,n,o,d,u,m,p),isFinite(M.getFullYear())&&M.setFullYear(s)):M=new Date(s,n,o,d,u,m,p),M}function Rt(s){var n,o;return s<100&&s>=0?(o=Array.prototype.slice.call(arguments),o[0]=s+400,n=new Date(Date.UTC.apply(null,o)),isFinite(n.getUTCFullYear())&&n.setUTCFullYear(s)):n=new Date(Date.UTC.apply(null,arguments)),n}function us(s,n,o){var d=7+n-o,u=(7+Rt(s,0,d).getUTCDay()-n)%7;return-u+d-1}function yr(s,n,o,d,u){var m=(7+o-d)%7,p=us(s,d,u),M=1+7*(n-1)+m+p,L,I;return M<=0?(L=s-1,I=Wt(L)+M):M>Wt(s)?(L=s+1,I=M-Wt(s)):(L=s,I=M),{year:L,dayOfYear:I}}function Ft(s,n,o){var d=us(s.year(),n,o),u=Math.floor((s.dayOfYear()-d-1)/7)+1,m,p;return u<1?(p=s.year()-1,m=u+Re(p,n,o)):u>Re(s.year(),n,o)?(m=u-Re(s.year(),n,o),p=s.year()+1):(p=s.year(),m=u),{week:m,year:p}}function Re(s,n,o){var d=us(s,n,o),u=us(s+1,n,o);return(Wt(s)-d+u)/7}T("w",["ww",2],"wo","week"),T("W",["WW",2],"Wo","isoWeek"),D("w",G,mt),D("ww",G,le),D("W",G,mt),D("WW",G,le),Nt(["w","ww","W","WW"],function(s,n,o,d){n[d.substr(0,1)]=P(s)});function Ea(s){return Ft(s,this._week.dow,this._week.doy).week}var Ha={dow:0,doy:6};function Va(){return this._week.dow}function za(){return this._week.doy}function Ga(s){var n=this.localeData().week(this);return s==null?n:this.add((s-n)*7,"d")}function Ja(s){var n=Ft(this,1,4).week;return s==null?n:this.add((s-n)*7,"d")}T("d",0,"do","day"),T("dd",0,0,function(s){return this.localeData().weekdaysMin(this,s)}),T("ddd",0,0,function(s){return this.localeData().weekdaysShort(this,s)}),T("dddd",0,0,function(s){return this.localeData().weekdays(this,s)}),T("e",0,0,"weekday"),T("E",0,0,"isoWeekday"),D("d",G),D("e",G),D("E",G),D("dd",function(s,n){return n.weekdaysMinRegex(s)}),D("ddd",function(s,n){return n.weekdaysShortRegex(s)}),D("dddd",function(s,n){return n.weekdaysRegex(s)}),Nt(["dd","ddd","dddd"],function(s,n,o,d){var u=o._locale.weekdaysParse(s,d,o._strict);u!=null?n.d=u:Y(o).invalidWeekday=s}),Nt(["d","e","E"],function(s,n,o,d){n[d]=P(s)});function Ba(s,n){return typeof s!="string"?s:isNaN(s)?(s=n.weekdaysParse(s),typeof s=="number"?s:null):parseInt(s,10)}function Za(s,n){return typeof s=="string"?n.weekdaysParse(s)%7||7:isNaN(s)?null:s}function ni(s,n){return s.slice(n,7).concat(s.slice(0,n))}var qa="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),vr="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qa="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ka=Pt,Xa=Pt,eo=Pt;function to(s,n){var o=l(this._weekdays)?this._weekdays:this._weekdays[s&&s!==!0&&this._weekdays.isFormat.test(n)?"format":"standalone"];return s===!0?ni(o,this._week.dow):s?o[s.day()]:o}function so(s){return s===!0?ni(this._weekdaysShort,this._week.dow):s?this._weekdaysShort[s.day()]:this._weekdaysShort}function io(s){return s===!0?ni(this._weekdaysMin,this._week.dow):s?this._weekdaysMin[s.day()]:this._weekdaysMin}function ro(s,n,o){var d,u,m,p=s.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],d=0;d<7;++d)m=x([2e3,1]).day(d),this._minWeekdaysParse[d]=this.weekdaysMin(m,"").toLocaleLowerCase(),this._shortWeekdaysParse[d]=this.weekdaysShort(m,"").toLocaleLowerCase(),this._weekdaysParse[d]=this.weekdays(m,"").toLocaleLowerCase();return o?n==="dddd"?(u=ee.call(this._weekdaysParse,p),u!==-1?u:null):n==="ddd"?(u=ee.call(this._shortWeekdaysParse,p),u!==-1?u:null):(u=ee.call(this._minWeekdaysParse,p),u!==-1?u:null):n==="dddd"?(u=ee.call(this._weekdaysParse,p),u!==-1||(u=ee.call(this._shortWeekdaysParse,p),u!==-1)?u:(u=ee.call(this._minWeekdaysParse,p),u!==-1?u:null)):n==="ddd"?(u=ee.call(this._shortWeekdaysParse,p),u!==-1||(u=ee.call(this._weekdaysParse,p),u!==-1)?u:(u=ee.call(this._minWeekdaysParse,p),u!==-1?u:null)):(u=ee.call(this._minWeekdaysParse,p),u!==-1||(u=ee.call(this._weekdaysParse,p),u!==-1)?u:(u=ee.call(this._shortWeekdaysParse,p),u!==-1?u:null))}function no(s,n,o){var d,u,m;if(this._weekdaysParseExact)return ro.call(this,s,n,o);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),d=0;d<7;d++){if(u=x([2e3,1]).day(d),o&&!this._fullWeekdaysParse[d]&&(this._fullWeekdaysParse[d]=new RegExp("^"+this.weekdays(u,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[d]=new RegExp("^"+this.weekdaysShort(u,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[d]=new RegExp("^"+this.weekdaysMin(u,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[d]||(m="^"+this.weekdays(u,"")+"|^"+this.weekdaysShort(u,"")+"|^"+this.weekdaysMin(u,""),this._weekdaysParse[d]=new RegExp(m.replace(".",""),"i")),o&&n==="dddd"&&this._fullWeekdaysParse[d].test(s))return d;if(o&&n==="ddd"&&this._shortWeekdaysParse[d].test(s))return d;if(o&&n==="dd"&&this._minWeekdaysParse[d].test(s))return d;if(!o&&this._weekdaysParse[d].test(s))return d}}function ao(s){if(!this.isValid())return s!=null?this:NaN;var n=It(this,"Day");return s!=null?(s=Ba(s,this.localeData()),this.add(s-n,"d")):n}function oo(s){if(!this.isValid())return s!=null?this:NaN;var n=(this.day()+7-this.localeData()._week.dow)%7;return s==null?n:this.add(s-n,"d")}function lo(s){if(!this.isValid())return s!=null?this:NaN;if(s!=null){var n=Za(s,this.localeData());return this.day(this.day()%7?n:n-7)}else return this.day()||7}function uo(s){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||ai.call(this),s?this._weekdaysStrictRegex:this._weekdaysRegex):(h(this,"_weekdaysRegex")||(this._weekdaysRegex=Ka),this._weekdaysStrictRegex&&s?this._weekdaysStrictRegex:this._weekdaysRegex)}function co(s){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||ai.call(this),s?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(h(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Xa),this._weekdaysShortStrictRegex&&s?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function ho(s){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||ai.call(this),s?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(h(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=eo),this._weekdaysMinStrictRegex&&s?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ai(){function s(ae,Ee){return Ee.length-ae.length}var n=[],o=[],d=[],u=[],m,p,M,L,I;for(m=0;m<7;m++)p=x([2e3,1]).day(m),M=Ne(this.weekdaysMin(p,"")),L=Ne(this.weekdaysShort(p,"")),I=Ne(this.weekdays(p,"")),n.push(M),o.push(L),d.push(I),u.push(M),u.push(L),u.push(I);n.sort(s),o.sort(s),d.sort(s),u.sort(s),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+n.join("|")+")","i")}function oi(){return this.hours()%12||12}function fo(){return this.hours()||24}T("H",["HH",2],0,"hour"),T("h",["hh",2],0,oi),T("k",["kk",2],0,fo),T("hmm",0,0,function(){return""+oi.apply(this)+Te(this.minutes(),2)}),T("hmmss",0,0,function(){return""+oi.apply(this)+Te(this.minutes(),2)+Te(this.seconds(),2)}),T("Hmm",0,0,function(){return""+this.hours()+Te(this.minutes(),2)}),T("Hmmss",0,0,function(){return""+this.hours()+Te(this.minutes(),2)+Te(this.seconds(),2)});function kr(s,n){T(s,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),n)})}kr("a",!0),kr("A",!1);function Sr(s,n){return n._meridiemParse}D("a",Sr),D("A",Sr),D("H",G,si),D("h",G,mt),D("k",G,mt),D("HH",G,le),D("hh",G,le),D("kk",G,le),D("hmm",ur),D("hmmss",cr),D("Hmm",ur),D("Hmmss",cr),H(["H","HH"],se),H(["k","kk"],function(s,n,o){var d=P(s);n[se]=d===24?0:d}),H(["a","A"],function(s,n,o){o._isPm=o._locale.isPM(s),o._meridiem=s}),H(["h","hh"],function(s,n,o){n[se]=P(s),Y(o).bigHour=!0}),H("hmm",function(s,n,o){var d=s.length-2;n[se]=P(s.substr(0,d)),n[pe]=P(s.substr(d)),Y(o).bigHour=!0}),H("hmmss",function(s,n,o){var d=s.length-4,u=s.length-2;n[se]=P(s.substr(0,d)),n[pe]=P(s.substr(d,2)),n[Ie]=P(s.substr(u)),Y(o).bigHour=!0}),H("Hmm",function(s,n,o){var d=s.length-2;n[se]=P(s.substr(0,d)),n[pe]=P(s.substr(d))}),H("Hmmss",function(s,n,o){var d=s.length-4,u=s.length-2;n[se]=P(s.substr(0,d)),n[pe]=P(s.substr(d,2)),n[Ie]=P(s.substr(u))});function _o(s){return(s+"").toLowerCase().charAt(0)==="p"}var mo=/[ap]\.?m?\.?/i,go=gt("Hours",!0);function wo(s,n,o){return s>11?o?"pm":"PM":o?"am":"AM"}var Mr={calendar:ra,longDateFormat:la,invalidDate:ua,ordinal:ha,dayOfMonthOrdinalParse:fa,relativeTime:ma,months:ja,monthsShort:_r,week:Ha,weekdays:qa,weekdaysMin:Qa,weekdaysShort:vr,meridiemParse:mo},Q={},$t={},At;function po(s,n){var o,d=Math.min(s.length,n.length);for(o=0;o<d;o+=1)if(s[o]!==n[o])return o;return d}function Dr(s){return s&&s.toLowerCase().replace("_","-")}function yo(s){for(var n=0,o,d,u,m;n<s.length;){for(m=Dr(s[n]).split("-"),o=m.length,d=Dr(s[n+1]),d=d?d.split("-"):null;o>0;){if(u=cs(m.slice(0,o).join("-")),u)return u;if(d&&d.length>=o&&po(m,d)>=o-1)break;o--}n++}return At}function vo(s){return!!(s&&s.match("^[^/\\\\]*$"))}function cs(s){var n=null,o;if(Q[s]===void 0&&t&&t.exports&&vo(s))try{n=At._abbr,o=ge,o("./locale/"+s),Ke(n)}catch{Q[s]=null}return Q[s]}function Ke(s,n){var o;return s&&(_(n)?o=Fe(s):o=li(s,n),o?At=o:typeof console<"u"&&console.warn&&console.warn("Locale "+s+" not found. Did you forget to load it?")),At._abbr}function li(s,n){if(n!==null){var o,d=Mr;if(n.abbr=s,Q[s]!=null)nr("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),d=Q[s]._config;else if(n.parentLocale!=null)if(Q[n.parentLocale]!=null)d=Q[n.parentLocale]._config;else if(o=cs(n.parentLocale),o!=null)d=o._config;else return $t[n.parentLocale]||($t[n.parentLocale]=[]),$t[n.parentLocale].push({name:s,config:n}),null;return Q[s]=new Zs(Bs(d,n)),$t[s]&&$t[s].forEach(function(u){li(u.name,u.config)}),Ke(s),Q[s]}else return delete Q[s],null}function ko(s,n){if(n!=null){var o,d,u=Mr;Q[s]!=null&&Q[s].parentLocale!=null?Q[s].set(Bs(Q[s]._config,n)):(d=cs(s),d!=null&&(u=d._config),n=Bs(u,n),d==null&&(n.abbr=s),o=new Zs(n),o.parentLocale=Q[s],Q[s]=o),Ke(s)}else Q[s]!=null&&(Q[s].parentLocale!=null?(Q[s]=Q[s].parentLocale,s===Ke()&&Ke(s)):Q[s]!=null&&delete Q[s]);return Q[s]}function Fe(s){var n;if(s&&s._locale&&s._locale._abbr&&(s=s._locale._abbr),!s)return At;if(!l(s)){if(n=cs(s),n)return n;s=[s]}return yo(s)}function So(){return qs(Q)}function di(s){var n,o=s._a;return o&&Y(s).overflow===-2&&(n=o[We]<0||o[We]>11?We:o[Oe]<1||o[Oe]>ri(o[re],o[We])?Oe:o[se]<0||o[se]>24||o[se]===24&&(o[pe]!==0||o[Ie]!==0||o[rt]!==0)?se:o[pe]<0||o[pe]>59?pe:o[Ie]<0||o[Ie]>59?Ie:o[rt]<0||o[rt]>999?rt:-1,Y(s)._overflowDayOfYear&&(n<re||n>Oe)&&(n=Oe),Y(s)._overflowWeeks&&n===-1&&(n=ba),Y(s)._overflowWeekday&&n===-1&&(n=Ya),Y(s).overflow=n),s}var Mo=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Do=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,bo=/Z|[+-]\d\d(?::?\d\d)?/,hs=[["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]],ui=[["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/]],Yo=/^\/?Date\((-?\d+)/i,To=/^(?:(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}))$/,Oo={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function br(s){var n,o,d=s._i,u=Mo.exec(d)||Do.exec(d),m,p,M,L,I=hs.length,ae=ui.length;if(u){for(Y(s).iso=!0,n=0,o=I;n<o;n++)if(hs[n][1].exec(u[1])){p=hs[n][0],m=hs[n][2]!==!1;break}if(p==null){s._isValid=!1;return}if(u[3]){for(n=0,o=ae;n<o;n++)if(ui[n][1].exec(u[3])){M=(u[2]||" ")+ui[n][0];break}if(M==null){s._isValid=!1;return}}if(!m&&M!=null){s._isValid=!1;return}if(u[4])if(bo.exec(u[4]))L="Z";else{s._isValid=!1;return}s._f=p+(M||"")+(L||""),hi(s)}else s._isValid=!1}function Co(s,n,o,d,u,m){var p=[Lo(s),_r.indexOf(n),parseInt(o,10),parseInt(d,10),parseInt(u,10)];return m&&p.push(parseInt(m,10)),p}function Lo(s){var n=parseInt(s,10);return n<=49?2e3+n:n<=999?1900+n:n}function jo(s){return s.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function xo(s,n,o){if(s){var d=vr.indexOf(s),u=new Date(n[0],n[1],n[2]).getDay();if(d!==u)return Y(o).weekdayMismatch=!0,o._isValid=!1,!1}return!0}function Po(s,n,o){if(s)return Oo[s];if(n)return 0;var d=parseInt(o,10),u=d%100,m=(d-u)/100;return m*60+u}function Yr(s){var n=To.exec(jo(s._i)),o;if(n){if(o=Co(n[4],n[3],n[2],n[5],n[6],n[7]),!xo(n[1],o,s))return;s._a=o,s._tzm=Po(n[8],n[9],n[10]),s._d=Rt.apply(null,s._a),s._d.setUTCMinutes(s._d.getUTCMinutes()-s._tzm),Y(s).rfc2822=!0}else s._isValid=!1}function No(s){var n=Yo.exec(s._i);if(n!==null){s._d=new Date(+n[1]);return}if(br(s),s._isValid===!1)delete s._isValid;else return;if(Yr(s),s._isValid===!1)delete s._isValid;else return;s._strict?s._isValid=!1:r.createFromInputFallback(s)}r.createFromInputFallback=ue("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(s){s._d=new Date(s._i+(s._useUTC?" UTC":""))});function wt(s,n,o){return s??n??o}function Wo(s){var n=new Date(r.now());return s._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function ci(s){var n,o,d=[],u,m,p;if(!s._d){for(u=Wo(s),s._w&&s._a[Oe]==null&&s._a[We]==null&&Io(s),s._dayOfYear!=null&&(p=wt(s._a[re],u[re]),(s._dayOfYear>Wt(p)||s._dayOfYear===0)&&(Y(s)._overflowDayOfYear=!0),o=Rt(p,0,s._dayOfYear),s._a[We]=o.getUTCMonth(),s._a[Oe]=o.getUTCDate()),n=0;n<3&&s._a[n]==null;++n)s._a[n]=d[n]=u[n];for(;n<7;n++)s._a[n]=d[n]=s._a[n]==null?n===2?1:0:s._a[n];s._a[se]===24&&s._a[pe]===0&&s._a[Ie]===0&&s._a[rt]===0&&(s._nextDay=!0,s._a[se]=0),s._d=(s._useUTC?Rt:Ua).apply(null,d),m=s._useUTC?s._d.getUTCDay():s._d.getDay(),s._tzm!=null&&s._d.setUTCMinutes(s._d.getUTCMinutes()-s._tzm),s._nextDay&&(s._a[se]=24),s._w&&typeof s._w.d<"u"&&s._w.d!==m&&(Y(s).weekdayMismatch=!0)}}function Io(s){var n,o,d,u,m,p,M,L,I;n=s._w,n.GG!=null||n.W!=null||n.E!=null?(m=1,p=4,o=wt(n.GG,s._a[re],Ft(J(),1,4).year),d=wt(n.W,1),u=wt(n.E,1),(u<1||u>7)&&(L=!0)):(m=s._locale._week.dow,p=s._locale._week.doy,I=Ft(J(),m,p),o=wt(n.gg,s._a[re],I.year),d=wt(n.w,I.week),n.d!=null?(u=n.d,(u<0||u>6)&&(L=!0)):n.e!=null?(u=n.e+m,(n.e<0||n.e>6)&&(L=!0)):u=m),d<1||d>Re(o,m,p)?Y(s)._overflowWeeks=!0:L!=null?Y(s)._overflowWeekday=!0:(M=yr(o,d,u,m,p),s._a[re]=M.year,s._dayOfYear=M.dayOfYear)}r.ISO_8601=function(){},r.RFC_2822=function(){};function hi(s){if(s._f===r.ISO_8601){br(s);return}if(s._f===r.RFC_2822){Yr(s);return}s._a=[],Y(s).empty=!0;var n=""+s._i,o,d,u,m,p,M=n.length,L=0,I,ae;for(u=ar(s._f,s._locale).match(Qs)||[],ae=u.length,o=0;o<ae;o++)m=u[o],d=(n.match(Sa(m,s))||[])[0],d&&(p=n.substr(0,n.indexOf(d)),p.length>0&&Y(s).unusedInput.push(p),n=n.slice(n.indexOf(d)+d.length),L+=d.length),ft[m]?(d?Y(s).empty=!1:Y(s).unusedTokens.push(m),Da(m,d,s)):s._strict&&!d&&Y(s).unusedTokens.push(m);Y(s).charsLeftOver=M-L,n.length>0&&Y(s).unusedInput.push(n),s._a[se]<=12&&Y(s).bigHour===!0&&s._a[se]>0&&(Y(s).bigHour=void 0),Y(s).parsedDateParts=s._a.slice(0),Y(s).meridiem=s._meridiem,s._a[se]=Ro(s._locale,s._a[se],s._meridiem),I=Y(s).era,I!==null&&(s._a[re]=s._locale.erasConvertYear(I,s._a[re])),ci(s),di(s)}function Ro(s,n,o){var d;return o==null?n:s.meridiemHour!=null?s.meridiemHour(n,o):(s.isPM!=null&&(d=s.isPM(o),d&&n<12&&(n+=12),!d&&n===12&&(n=0)),n)}function Fo(s){var n,o,d,u,m,p,M=!1,L=s._f.length;if(L===0){Y(s).invalidFormat=!0,s._d=new Date(NaN);return}for(u=0;u<L;u++)m=0,p=!1,n=Js({},s),s._useUTC!=null&&(n._useUTC=s._useUTC),n._f=s._f[u],hi(n),zs(n)&&(p=!0),m+=Y(n).charsLeftOver,m+=Y(n).unusedTokens.length*10,Y(n).score=m,M?m<d&&(d=m,o=n):(d==null||m<d||p)&&(d=m,o=n,p&&(M=!0));k(s,o||n)}function $o(s){if(!s._d){var n=Xs(s._i),o=n.day===void 0?n.date:n.day;s._a=W([n.year,n.month,o,n.hour,n.minute,n.second,n.millisecond],function(d){return d&&parseInt(d,10)}),ci(s)}}function Ao(s){var n=new xt(di(Tr(s)));return n._nextDay&&(n.add(1,"d"),n._nextDay=void 0),n}function Tr(s){var n=s._i,o=s._f;return s._locale=s._locale||Fe(s._l),n===null||o===void 0&&n===""?es({nullInput:!0}):(typeof n=="string"&&(s._i=n=s._locale.preparse(n)),we(n)?new xt(di(n)):(g(n)?s._d=n:l(o)?Fo(s):o?hi(s):Uo(s),zs(s)||(s._d=null),s))}function Uo(s){var n=s._i;_(n)?s._d=new Date(r.now()):g(n)?s._d=new Date(n.valueOf()):typeof n=="string"?No(s):l(n)?(s._a=W(n.slice(0),function(o){return parseInt(o,10)}),ci(s)):c(n)?$o(s):w(n)?s._d=new Date(n):r.createFromInputFallback(s)}function Or(s,n,o,d,u){var m={};return(n===!0||n===!1)&&(d=n,n=void 0),(o===!0||o===!1)&&(d=o,o=void 0),(c(s)&&f(s)||l(s)&&s.length===0)&&(s=void 0),m._isAMomentObject=!0,m._useUTC=m._isUTC=u,m._l=o,m._i=s,m._f=n,m._strict=d,Ao(m)}function J(s,n,o,d){return Or(s,n,o,d,!1)}var Eo=ue("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var s=J.apply(null,arguments);return this.isValid()&&s.isValid()?s<this?this:s:es()}),Ho=ue("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var s=J.apply(null,arguments);return this.isValid()&&s.isValid()?s>this?this:s:es()});function Cr(s,n){var o,d;if(n.length===1&&l(n[0])&&(n=n[0]),!n.length)return J();for(o=n[0],d=1;d<n.length;++d)(!n[d].isValid()||n[d][s](o))&&(o=n[d]);return o}function Vo(){var s=[].slice.call(arguments,0);return Cr("isBefore",s)}function zo(){var s=[].slice.call(arguments,0);return Cr("isAfter",s)}var Go=function(){return Date.now?Date.now():+new Date},Ut=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Jo(s){var n,o=!1,d,u=Ut.length;for(n in s)if(h(s,n)&&!(ee.call(Ut,n)!==-1&&(s[n]==null||!isNaN(s[n]))))return!1;for(d=0;d<u;++d)if(s[Ut[d]]){if(o)return!1;parseFloat(s[Ut[d]])!==P(s[Ut[d]])&&(o=!0)}return!0}function Bo(){return this._isValid}function Zo(){return ye(NaN)}function fs(s){var n=Xs(s),o=n.year||0,d=n.quarter||0,u=n.month||0,m=n.week||n.isoWeek||0,p=n.day||0,M=n.hour||0,L=n.minute||0,I=n.second||0,ae=n.millisecond||0;this._isValid=Jo(n),this._milliseconds=+ae+I*1e3+L*6e4+M*1e3*60*60,this._days=+p+m*7,this._months=+u+d*3+o*12,this._data={},this._locale=Fe(),this._bubble()}function _s(s){return s instanceof fs}function fi(s){return s<0?Math.round(-1*s)*-1:Math.round(s)}function qo(s,n,o){var d=Math.min(s.length,n.length),u=Math.abs(s.length-n.length),m=0,p;for(p=0;p<d;p++)P(s[p])!==P(n[p])&&m++;return m+u}function Lr(s,n){T(s,0,0,function(){var o=this.utcOffset(),d="+";return o<0&&(o=-o,d="-"),d+Te(~~(o/60),2)+n+Te(~~o%60,2)})}Lr("Z",":"),Lr("ZZ",""),D("Z",os),D("ZZ",os),H(["Z","ZZ"],function(s,n,o){o._useUTC=!0,o._tzm=_i(os,s)});var Qo=/([\+\-]|\d\d)/gi;function _i(s,n){var o=(n||"").match(s),d,u,m;return o===null?null:(d=o[o.length-1]||[],u=(d+"").match(Qo)||["-",0,0],m=+(u[1]*60)+P(u[2]),m===0?0:u[0]==="+"?m:-m)}function mi(s,n){var o,d;return n._isUTC?(o=n.clone(),d=(we(s)||g(s)?s.valueOf():J(s).valueOf())-o.valueOf(),o._d.setTime(o._d.valueOf()+d),r.updateOffset(o,!1),o):J(s).local()}function gi(s){return-Math.round(s._d.getTimezoneOffset())}r.updateOffset=function(){};function Ko(s,n,o){var d=this._offset||0,u;if(!this.isValid())return s!=null?this:NaN;if(s!=null){if(typeof s=="string"){if(s=_i(os,s),s===null)return this}else Math.abs(s)<16&&!o&&(s=s*60);return!this._isUTC&&n&&(u=gi(this)),this._offset=s,this._isUTC=!0,u!=null&&this.add(u,"m"),d!==s&&(!n||this._changeInProgress?Nr(this,ye(s-d,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?d:gi(this)}function Xo(s,n){return s!=null?(typeof s!="string"&&(s=-s),this.utcOffset(s,n),this):-this.utcOffset()}function el(s){return this.utcOffset(0,s)}function tl(s){return this._isUTC&&(this.utcOffset(0,s),this._isUTC=!1,s&&this.subtract(gi(this),"m")),this}function sl(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var s=_i(va,this._i);s!=null?this.utcOffset(s):this.utcOffset(0,!0)}return this}function il(s){return this.isValid()?(s=s?J(s).utcOffset():0,(this.utcOffset()-s)%60===0):!1}function rl(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function nl(){if(!_(this._isDSTShifted))return this._isDSTShifted;var s={},n;return Js(s,this),s=Tr(s),s._a?(n=s._isUTC?x(s._a):J(s._a),this._isDSTShifted=this.isValid()&&qo(s._a,n.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function al(){return this.isValid()?!this._isUTC:!1}function ol(){return this.isValid()?this._isUTC:!1}function jr(){return this.isValid()?this._isUTC&&this._offset===0:!1}var ll=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,dl=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ye(s,n){var o=s,d=null,u,m,p;return _s(s)?o={ms:s._milliseconds,d:s._days,M:s._months}:w(s)||!isNaN(+s)?(o={},n?o[n]=+s:o.milliseconds=+s):(d=ll.exec(s))?(u=d[1]==="-"?-1:1,o={y:0,d:P(d[Oe])*u,h:P(d[se])*u,m:P(d[pe])*u,s:P(d[Ie])*u,ms:P(fi(d[rt]*1e3))*u}):(d=dl.exec(s))?(u=d[1]==="-"?-1:1,o={y:nt(d[2],u),M:nt(d[3],u),w:nt(d[4],u),d:nt(d[5],u),h:nt(d[6],u),m:nt(d[7],u),s:nt(d[8],u)}):o==null?o={}:typeof o=="object"&&("from"in o||"to"in o)&&(p=ul(J(o.from),J(o.to)),o={},o.ms=p.milliseconds,o.M=p.months),m=new fs(o),_s(s)&&h(s,"_locale")&&(m._locale=s._locale),_s(s)&&h(s,"_isValid")&&(m._isValid=s._isValid),m}ye.fn=fs.prototype,ye.invalid=Zo;function nt(s,n){var o=s&&parseFloat(s.replace(",","."));return(isNaN(o)?0:o)*n}function xr(s,n){var o={};return o.months=n.month()-s.month()+(n.year()-s.year())*12,s.clone().add(o.months,"M").isAfter(n)&&--o.months,o.milliseconds=+n-+s.clone().add(o.months,"M"),o}function ul(s,n){var o;return s.isValid()&&n.isValid()?(n=mi(n,s),s.isBefore(n)?o=xr(s,n):(o=xr(n,s),o.milliseconds=-o.milliseconds,o.months=-o.months),o):{milliseconds:0,months:0}}function Pr(s,n){return function(o,d){var u,m;return d!==null&&!isNaN(+d)&&(nr(n,"moment()."+n+"(period, number) is deprecated. Please use moment()."+n+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),m=o,o=d,d=m),u=ye(o,d),Nr(this,u,s),this}}function Nr(s,n,o,d){var u=n._milliseconds,m=fi(n._days),p=fi(n._months);s.isValid()&&(d=d??!0,p&&gr(s,It(s,"Month")+p*o),m&&fr(s,"Date",It(s,"Date")+m*o),u&&s._d.setTime(s._d.valueOf()+u*o),d&&r.updateOffset(s,m||p))}var cl=Pr(1,"add"),hl=Pr(-1,"subtract");function Wr(s){return typeof s=="string"||s instanceof String}function fl(s){return we(s)||g(s)||Wr(s)||w(s)||ml(s)||_l(s)||s===null||s===void 0}function _l(s){var n=c(s)&&!f(s),o=!1,d=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],u,m,p=d.length;for(u=0;u<p;u+=1)m=d[u],o=o||h(s,m);return n&&o}function ml(s){var n=l(s),o=!1;return n&&(o=s.filter(function(d){return!w(d)&&Wr(s)}).length===0),n&&o}function gl(s){var n=c(s)&&!f(s),o=!1,d=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],u,m;for(u=0;u<d.length;u+=1)m=d[u],o=o||h(s,m);return n&&o}function wl(s,n){var o=s.diff(n,"days",!0);return o<-6?"sameElse":o<-1?"lastWeek":o<0?"lastDay":o<1?"sameDay":o<2?"nextDay":o<7?"nextWeek":"sameElse"}function pl(s,n){arguments.length===1&&(arguments[0]?fl(arguments[0])?(s=arguments[0],n=void 0):gl(arguments[0])&&(n=arguments[0],s=void 0):(s=void 0,n=void 0));var o=s||J(),d=mi(o,this).startOf("day"),u=r.calendarFormat(this,d)||"sameElse",m=n&&(Ye(n[u])?n[u].call(this,o):n[u]);return this.format(m||this.localeData().calendar(u,this,J(o)))}function yl(){return new xt(this)}function vl(s,n){var o=we(s)?s:J(s);return this.isValid()&&o.isValid()?(n=ce(n)||"millisecond",n==="millisecond"?this.valueOf()>o.valueOf():o.valueOf()<this.clone().startOf(n).valueOf()):!1}function kl(s,n){var o=we(s)?s:J(s);return this.isValid()&&o.isValid()?(n=ce(n)||"millisecond",n==="millisecond"?this.valueOf()<o.valueOf():this.clone().endOf(n).valueOf()<o.valueOf()):!1}function Sl(s,n,o,d){var u=we(s)?s:J(s),m=we(n)?n:J(n);return this.isValid()&&u.isValid()&&m.isValid()?(d=d||"()",(d[0]==="("?this.isAfter(u,o):!this.isBefore(u,o))&&(d[1]===")"?this.isBefore(m,o):!this.isAfter(m,o))):!1}function Ml(s,n){var o=we(s)?s:J(s),d;return this.isValid()&&o.isValid()?(n=ce(n)||"millisecond",n==="millisecond"?this.valueOf()===o.valueOf():(d=o.valueOf(),this.clone().startOf(n).valueOf()<=d&&d<=this.clone().endOf(n).valueOf())):!1}function Dl(s,n){return this.isSame(s,n)||this.isAfter(s,n)}function bl(s,n){return this.isSame(s,n)||this.isBefore(s,n)}function Yl(s,n,o){var d,u,m;if(!this.isValid())return NaN;if(d=mi(s,this),!d.isValid())return NaN;switch(u=(d.utcOffset()-this.utcOffset())*6e4,n=ce(n),n){case"year":m=ms(this,d)/12;break;case"month":m=ms(this,d);break;case"quarter":m=ms(this,d)/3;break;case"second":m=(this-d)/1e3;break;case"minute":m=(this-d)/6e4;break;case"hour":m=(this-d)/36e5;break;case"day":m=(this-d-u)/864e5;break;case"week":m=(this-d-u)/6048e5;break;default:m=this-d}return o?m:he(m)}function ms(s,n){if(s.date()<n.date())return-ms(n,s);var o=(n.year()-s.year())*12+(n.month()-s.month()),d=s.clone().add(o,"months"),u,m;return n-d<0?(u=s.clone().add(o-1,"months"),m=(n-d)/(d-u)):(u=s.clone().add(o+1,"months"),m=(n-d)/(u-d)),-(o+m)||0}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Tl(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Ol(s){if(!this.isValid())return null;var n=s!==!0,o=n?this.clone().utc():this;return o.year()<0||o.year()>9999?ss(o,n?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Ye(Date.prototype.toISOString)?n?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",ss(o,"Z")):ss(o,n?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Cl(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var s="moment",n="",o,d,u,m;return this.isLocal()||(s=this.utcOffset()===0?"moment.utc":"moment.parseZone",n="Z"),o="["+s+'("]',d=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",u="-MM-DD[T]HH:mm:ss.SSS",m=n+'[")]',this.format(o+d+u+m)}function Ll(s){s||(s=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var n=ss(this,s);return this.localeData().postformat(n)}function jl(s,n){return this.isValid()&&(we(s)&&s.isValid()||J(s).isValid())?ye({to:this,from:s}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()}function xl(s){return this.from(J(),s)}function Pl(s,n){return this.isValid()&&(we(s)&&s.isValid()||J(s).isValid())?ye({from:this,to:s}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()}function Nl(s){return this.to(J(),s)}function Ir(s){var n;return s===void 0?this._locale._abbr:(n=Fe(s),n!=null&&(this._locale=n),this)}var Rr=ue("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(s){return s===void 0?this.localeData():this.locale(s)});function Fr(){return this._locale}var gs=1e3,pt=60*gs,ws=60*pt,$r=(365*400+97)*24*ws;function yt(s,n){return(s%n+n)%n}function Ar(s,n,o){return s<100&&s>=0?new Date(s+400,n,o)-$r:new Date(s,n,o).valueOf()}function Ur(s,n,o){return s<100&&s>=0?Date.UTC(s+400,n,o)-$r:Date.UTC(s,n,o)}function Wl(s){var n,o;if(s=ce(s),s===void 0||s==="millisecond"||!this.isValid())return this;switch(o=this._isUTC?Ur:Ar,s){case"year":n=o(this.year(),0,1);break;case"quarter":n=o(this.year(),this.month()-this.month()%3,1);break;case"month":n=o(this.year(),this.month(),1);break;case"week":n=o(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":n=o(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":n=o(this.year(),this.month(),this.date());break;case"hour":n=this._d.valueOf(),n-=yt(n+(this._isUTC?0:this.utcOffset()*pt),ws);break;case"minute":n=this._d.valueOf(),n-=yt(n,pt);break;case"second":n=this._d.valueOf(),n-=yt(n,gs);break}return this._d.setTime(n),r.updateOffset(this,!0),this}function Il(s){var n,o;if(s=ce(s),s===void 0||s==="millisecond"||!this.isValid())return this;switch(o=this._isUTC?Ur:Ar,s){case"year":n=o(this.year()+1,0,1)-1;break;case"quarter":n=o(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":n=o(this.year(),this.month()+1,1)-1;break;case"week":n=o(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":n=o(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":n=o(this.year(),this.month(),this.date()+1)-1;break;case"hour":n=this._d.valueOf(),n+=ws-yt(n+(this._isUTC?0:this.utcOffset()*pt),ws)-1;break;case"minute":n=this._d.valueOf(),n+=pt-yt(n,pt)-1;break;case"second":n=this._d.valueOf(),n+=gs-yt(n,gs)-1;break}return this._d.setTime(n),r.updateOffset(this,!0),this}function Rl(){return this._d.valueOf()-(this._offset||0)*6e4}function Fl(){return Math.floor(this.valueOf()/1e3)}function $l(){return new Date(this.valueOf())}function Al(){var s=this;return[s.year(),s.month(),s.date(),s.hour(),s.minute(),s.second(),s.millisecond()]}function Ul(){var s=this;return{years:s.year(),months:s.month(),date:s.date(),hours:s.hours(),minutes:s.minutes(),seconds:s.seconds(),milliseconds:s.milliseconds()}}function El(){return this.isValid()?this.toISOString():null}function Hl(){return zs(this)}function Vl(){return k({},Y(this))}function zl(){return Y(this).overflow}function Gl(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}T("N",0,0,"eraAbbr"),T("NN",0,0,"eraAbbr"),T("NNN",0,0,"eraAbbr"),T("NNNN",0,0,"eraName"),T("NNNNN",0,0,"eraNarrow"),T("y",["y",1],"yo","eraYear"),T("y",["yy",2],0,"eraYear"),T("y",["yyy",3],0,"eraYear"),T("y",["yyyy",4],0,"eraYear"),D("N",wi),D("NN",wi),D("NNN",wi),D("NNNN",id),D("NNNNN",rd),H(["N","NN","NNN","NNNN","NNNNN"],function(s,n,o,d){var u=o._locale.erasParse(s,d,o._strict);u?Y(o).era=u:Y(o).invalidEra=s}),D("y",_t),D("yy",_t),D("yyy",_t),D("yyyy",_t),D("yo",nd),H(["y","yy","yyy","yyyy"],re),H(["yo"],function(s,n,o,d){var u;o._locale._eraYearOrdinalRegex&&(u=s.match(o._locale._eraYearOrdinalRegex)),o._locale.eraYearOrdinalParse?n[re]=o._locale.eraYearOrdinalParse(s,u):n[re]=parseInt(s,10)});function Jl(s,n){var o,d,u,m=this._eras||Fe("en")._eras;for(o=0,d=m.length;o<d;++o){switch(typeof m[o].since){case"string":u=r(m[o].since).startOf("day"),m[o].since=u.valueOf();break}switch(typeof m[o].until){case"undefined":m[o].until=1/0;break;case"string":u=r(m[o].until).startOf("day").valueOf(),m[o].until=u.valueOf();break}}return m}function Bl(s,n,o){var d,u,m=this.eras(),p,M,L;for(s=s.toUpperCase(),d=0,u=m.length;d<u;++d)if(p=m[d].name.toUpperCase(),M=m[d].abbr.toUpperCase(),L=m[d].narrow.toUpperCase(),o)switch(n){case"N":case"NN":case"NNN":if(M===s)return m[d];break;case"NNNN":if(p===s)return m[d];break;case"NNNNN":if(L===s)return m[d];break}else if([p,M,L].indexOf(s)>=0)return m[d]}function Zl(s,n){var o=s.since<=s.until?1:-1;return n===void 0?r(s.since).year():r(s.since).year()+(n-s.offset)*o}function ql(){var s,n,o,d=this.localeData().eras();for(s=0,n=d.length;s<n;++s)if(o=this.clone().startOf("day").valueOf(),d[s].since<=o&&o<=d[s].until||d[s].until<=o&&o<=d[s].since)return d[s].name;return""}function Ql(){var s,n,o,d=this.localeData().eras();for(s=0,n=d.length;s<n;++s)if(o=this.clone().startOf("day").valueOf(),d[s].since<=o&&o<=d[s].until||d[s].until<=o&&o<=d[s].since)return d[s].narrow;return""}function Kl(){var s,n,o,d=this.localeData().eras();for(s=0,n=d.length;s<n;++s)if(o=this.clone().startOf("day").valueOf(),d[s].since<=o&&o<=d[s].until||d[s].until<=o&&o<=d[s].since)return d[s].abbr;return""}function Xl(){var s,n,o,d,u=this.localeData().eras();for(s=0,n=u.length;s<n;++s)if(o=u[s].since<=u[s].until?1:-1,d=this.clone().startOf("day").valueOf(),u[s].since<=d&&d<=u[s].until||u[s].until<=d&&d<=u[s].since)return(this.year()-r(u[s].since).year())*o+u[s].offset;return this.year()}function ed(s){return h(this,"_erasNameRegex")||pi.call(this),s?this._erasNameRegex:this._erasRegex}function td(s){return h(this,"_erasAbbrRegex")||pi.call(this),s?this._erasAbbrRegex:this._erasRegex}function sd(s){return h(this,"_erasNarrowRegex")||pi.call(this),s?this._erasNarrowRegex:this._erasRegex}function wi(s,n){return n.erasAbbrRegex(s)}function id(s,n){return n.erasNameRegex(s)}function rd(s,n){return n.erasNarrowRegex(s)}function nd(s,n){return n._eraYearOrdinalRegex||_t}function pi(){var s=[],n=[],o=[],d=[],u,m,p,M,L,I=this.eras();for(u=0,m=I.length;u<m;++u)p=Ne(I[u].name),M=Ne(I[u].abbr),L=Ne(I[u].narrow),n.push(p),s.push(M),o.push(L),d.push(p),d.push(M),d.push(L);this._erasRegex=new RegExp("^("+d.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+n.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}T(0,["gg",2],0,function(){return this.weekYear()%100}),T(0,["GG",2],0,function(){return this.isoWeekYear()%100});function ps(s,n){T(0,[s,s.length],0,n)}ps("gggg","weekYear"),ps("ggggg","weekYear"),ps("GGGG","isoWeekYear"),ps("GGGGG","isoWeekYear"),D("G",as),D("g",as),D("GG",G,le),D("gg",G,le),D("GGGG",ti,ei),D("gggg",ti,ei),D("GGGGG",ns,is),D("ggggg",ns,is),Nt(["gggg","ggggg","GGGG","GGGGG"],function(s,n,o,d){n[d.substr(0,2)]=P(s)}),Nt(["gg","GG"],function(s,n,o,d){n[d]=r.parseTwoDigitYear(s)});function ad(s){return Er.call(this,s,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function od(s){return Er.call(this,s,this.isoWeek(),this.isoWeekday(),1,4)}function ld(){return Re(this.year(),1,4)}function dd(){return Re(this.isoWeekYear(),1,4)}function ud(){var s=this.localeData()._week;return Re(this.year(),s.dow,s.doy)}function cd(){var s=this.localeData()._week;return Re(this.weekYear(),s.dow,s.doy)}function Er(s,n,o,d,u){var m;return s==null?Ft(this,d,u).year:(m=Re(s,d,u),n>m&&(n=m),hd.call(this,s,n,o,d,u))}function hd(s,n,o,d,u){var m=yr(s,n,o,d,u),p=Rt(m.year,0,m.dayOfYear);return this.year(p.getUTCFullYear()),this.month(p.getUTCMonth()),this.date(p.getUTCDate()),this}T("Q",0,"Qo","quarter"),D("Q",lr),H("Q",function(s,n){n[We]=(P(s)-1)*3});function fd(s){return s==null?Math.ceil((this.month()+1)/3):this.month((s-1)*3+this.month()%3)}T("D",["DD",2],"Do","date"),D("D",G,mt),D("DD",G,le),D("Do",function(s,n){return s?n._dayOfMonthOrdinalParse||n._ordinalParse:n._dayOfMonthOrdinalParseLenient}),H(["D","DD"],Oe),H("Do",function(s,n){n[Oe]=P(s.match(G)[0])});var Hr=gt("Date",!0);T("DDD",["DDDD",3],"DDDo","dayOfYear"),D("DDD",rs),D("DDDD",dr),H(["DDD","DDDD"],function(s,n,o){o._dayOfYear=P(s)});function _d(s){var n=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return s==null?n:this.add(s-n,"d")}T("m",["mm",2],0,"minute"),D("m",G,si),D("mm",G,le),H(["m","mm"],pe);var md=gt("Minutes",!1);T("s",["ss",2],0,"second"),D("s",G,si),D("ss",G,le),H(["s","ss"],Ie);var gd=gt("Seconds",!1);T("S",0,0,function(){return~~(this.millisecond()/100)}),T(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),T(0,["SSS",3],0,"millisecond"),T(0,["SSSS",4],0,function(){return this.millisecond()*10}),T(0,["SSSSS",5],0,function(){return this.millisecond()*100}),T(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),T(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),T(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),T(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),D("S",rs,lr),D("SS",rs,le),D("SSS",rs,dr);var Xe,Vr;for(Xe="SSSS";Xe.length<=9;Xe+="S")D(Xe,_t);function wd(s,n){n[rt]=P(("0."+s)*1e3)}for(Xe="S";Xe.length<=9;Xe+="S")H(Xe,wd);Vr=gt("Milliseconds",!1),T("z",0,0,"zoneAbbr"),T("zz",0,0,"zoneName");function pd(){return this._isUTC?"UTC":""}function yd(){return this._isUTC?"Coordinated Universal Time":""}var y=xt.prototype;y.add=cl,y.calendar=pl,y.clone=yl,y.diff=Yl,y.endOf=Il,y.format=Ll,y.from=jl,y.fromNow=xl,y.to=Pl,y.toNow=Nl,y.get=Oa,y.invalidAt=zl,y.isAfter=vl,y.isBefore=kl,y.isBetween=Sl,y.isSame=Ml,y.isSameOrAfter=Dl,y.isSameOrBefore=bl,y.isValid=Hl,y.lang=Rr,y.locale=Ir,y.localeData=Fr,y.max=Ho,y.min=Eo,y.parsingFlags=Vl,y.set=Ca,y.startOf=Wl,y.subtract=hl,y.toArray=Al,y.toObject=Ul,y.toDate=$l,y.toISOString=Ol,y.inspect=Cl,typeof Symbol<"u"&&Symbol.for!=null&&(y[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),y.toJSON=El,y.toString=Tl,y.unix=Fl,y.valueOf=Rl,y.creationData=Gl,y.eraName=ql,y.eraNarrow=Ql,y.eraAbbr=Kl,y.eraYear=Xl,y.year=hr,y.isLeapYear=Ta,y.weekYear=ad,y.isoWeekYear=od,y.quarter=y.quarters=fd,y.month=wr,y.daysInMonth=Fa,y.week=y.weeks=Ga,y.isoWeek=y.isoWeeks=Ja,y.weeksInYear=ud,y.weeksInWeekYear=cd,y.isoWeeksInYear=ld,y.isoWeeksInISOWeekYear=dd,y.date=Hr,y.day=y.days=ao,y.weekday=oo,y.isoWeekday=lo,y.dayOfYear=_d,y.hour=y.hours=go,y.minute=y.minutes=md,y.second=y.seconds=gd,y.millisecond=y.milliseconds=Vr,y.utcOffset=Ko,y.utc=el,y.local=tl,y.parseZone=sl,y.hasAlignedHourOffset=il,y.isDST=rl,y.isLocal=al,y.isUtcOffset=ol,y.isUtc=jr,y.isUTC=jr,y.zoneAbbr=pd,y.zoneName=yd,y.dates=ue("dates accessor is deprecated. Use date instead.",Hr),y.months=ue("months accessor is deprecated. Use month instead",wr),y.years=ue("years accessor is deprecated. Use year instead",hr),y.zone=ue("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Xo),y.isDSTShifted=ue("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",nl);function vd(s){return J(s*1e3)}function kd(){return J.apply(null,arguments).parseZone()}function zr(s){return s}var $=Zs.prototype;$.calendar=na,$.longDateFormat=da,$.invalidDate=ca,$.ordinal=_a,$.preparse=zr,$.postformat=zr,$.relativeTime=ga,$.pastFuture=wa,$.set=ia,$.eras=Jl,$.erasParse=Bl,$.erasConvertYear=Zl,$.erasAbbrRegex=td,$.erasNameRegex=ed,$.erasNarrowRegex=sd,$.months=Na,$.monthsShort=Wa,$.monthsParse=Ra,$.monthsRegex=Aa,$.monthsShortRegex=$a,$.week=Ea,$.firstDayOfYear=za,$.firstDayOfWeek=Va,$.weekdays=to,$.weekdaysMin=io,$.weekdaysShort=so,$.weekdaysParse=no,$.weekdaysRegex=uo,$.weekdaysShortRegex=co,$.weekdaysMinRegex=ho,$.isPM=_o,$.meridiem=wo;function ys(s,n,o,d){var u=Fe(),m=x().set(d,n);return u[o](m,s)}function Gr(s,n,o){if(w(s)&&(n=s,s=void 0),s=s||"",n!=null)return ys(s,n,o,"month");var d,u=[];for(d=0;d<12;d++)u[d]=ys(s,d,o,"month");return u}function yi(s,n,o,d){typeof s=="boolean"?(w(n)&&(o=n,n=void 0),n=n||""):(n=s,o=n,s=!1,w(n)&&(o=n,n=void 0),n=n||"");var u=Fe(),m=s?u._week.dow:0,p,M=[];if(o!=null)return ys(n,(o+m)%7,d,"day");for(p=0;p<7;p++)M[p]=ys(n,(p+m)%7,d,"day");return M}function Sd(s,n){return Gr(s,n,"months")}function Md(s,n){return Gr(s,n,"monthsShort")}function Dd(s,n,o){return yi(s,n,o,"weekdays")}function bd(s,n,o){return yi(s,n,o,"weekdaysShort")}function Yd(s,n,o){return yi(s,n,o,"weekdaysMin")}Ke("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(s){var n=s%10,o=P(s%100/10)===1?"th":n===1?"st":n===2?"nd":n===3?"rd":"th";return s+o}}),r.lang=ue("moment.lang is deprecated. Use moment.locale instead.",Ke),r.langData=ue("moment.langData is deprecated. Use moment.localeData instead.",Fe);var $e=Math.abs;function Td(){var s=this._data;return this._milliseconds=$e(this._milliseconds),this._days=$e(this._days),this._months=$e(this._months),s.milliseconds=$e(s.milliseconds),s.seconds=$e(s.seconds),s.minutes=$e(s.minutes),s.hours=$e(s.hours),s.months=$e(s.months),s.years=$e(s.years),this}function Jr(s,n,o,d){var u=ye(n,o);return s._milliseconds+=d*u._milliseconds,s._days+=d*u._days,s._months+=d*u._months,s._bubble()}function Od(s,n){return Jr(this,s,n,1)}function Cd(s,n){return Jr(this,s,n,-1)}function Br(s){return s<0?Math.floor(s):Math.ceil(s)}function Ld(){var s=this._milliseconds,n=this._days,o=this._months,d=this._data,u,m,p,M,L;return s>=0&&n>=0&&o>=0||s<=0&&n<=0&&o<=0||(s+=Br(vi(o)+n)*864e5,n=0,o=0),d.milliseconds=s%1e3,u=he(s/1e3),d.seconds=u%60,m=he(u/60),d.minutes=m%60,p=he(m/60),d.hours=p%24,n+=he(p/24),L=he(Zr(n)),o+=L,n-=Br(vi(L)),M=he(o/12),o%=12,d.days=n,d.months=o,d.years=M,this}function Zr(s){return s*4800/146097}function vi(s){return s*146097/4800}function jd(s){if(!this.isValid())return NaN;var n,o,d=this._milliseconds;if(s=ce(s),s==="month"||s==="quarter"||s==="year")switch(n=this._days+d/864e5,o=this._months+Zr(n),s){case"month":return o;case"quarter":return o/3;case"year":return o/12}else switch(n=this._days+Math.round(vi(this._months)),s){case"week":return n/7+d/6048e5;case"day":return n+d/864e5;case"hour":return n*24+d/36e5;case"minute":return n*1440+d/6e4;case"second":return n*86400+d/1e3;case"millisecond":return Math.floor(n*864e5)+d;default:throw new Error("Unknown unit "+s)}}function Ae(s){return function(){return this.as(s)}}var qr=Ae("ms"),xd=Ae("s"),Pd=Ae("m"),Nd=Ae("h"),Wd=Ae("d"),Id=Ae("w"),Rd=Ae("M"),Fd=Ae("Q"),$d=Ae("y"),Ad=qr;function Ud(){return ye(this)}function Ed(s){return s=ce(s),this.isValid()?this[s+"s"]():NaN}function at(s){return function(){return this.isValid()?this._data[s]:NaN}}var Hd=at("milliseconds"),Vd=at("seconds"),zd=at("minutes"),Gd=at("hours"),Jd=at("days"),Bd=at("months"),Zd=at("years");function qd(){return he(this.days()/7)}var Ue=Math.round,vt={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Qd(s,n,o,d,u){return u.relativeTime(n||1,!!o,s,d)}function Kd(s,n,o,d){var u=ye(s).abs(),m=Ue(u.as("s")),p=Ue(u.as("m")),M=Ue(u.as("h")),L=Ue(u.as("d")),I=Ue(u.as("M")),ae=Ue(u.as("w")),Ee=Ue(u.as("y")),et=m<=o.ss&&["s",m]||m<o.s&&["ss",m]||p<=1&&["m"]||p<o.m&&["mm",p]||M<=1&&["h"]||M<o.h&&["hh",M]||L<=1&&["d"]||L<o.d&&["dd",L];return o.w!=null&&(et=et||ae<=1&&["w"]||ae<o.w&&["ww",ae]),et=et||I<=1&&["M"]||I<o.M&&["MM",I]||Ee<=1&&["y"]||["yy",Ee],et[2]=n,et[3]=+s>0,et[4]=d,Qd.apply(null,et)}function Xd(s){return s===void 0?Ue:typeof s=="function"?(Ue=s,!0):!1}function eu(s,n){return vt[s]===void 0?!1:n===void 0?vt[s]:(vt[s]=n,s==="s"&&(vt.ss=n-1),!0)}function tu(s,n){if(!this.isValid())return this.localeData().invalidDate();var o=!1,d=vt,u,m;return typeof s=="object"&&(n=s,s=!1),typeof s=="boolean"&&(o=s),typeof n=="object"&&(d=Object.assign({},vt,n),n.s!=null&&n.ss==null&&(d.ss=n.s-1)),u=this.localeData(),m=Kd(this,!o,d,u),o&&(m=u.pastFuture(+this,m)),u.postformat(m)}var ki=Math.abs;function kt(s){return(s>0)-(s<0)||+s}function vs(){if(!this.isValid())return this.localeData().invalidDate();var s=ki(this._milliseconds)/1e3,n=ki(this._days),o=ki(this._months),d,u,m,p,M=this.asSeconds(),L,I,ae,Ee;return M?(d=he(s/60),u=he(d/60),s%=60,d%=60,m=he(o/12),o%=12,p=s?s.toFixed(3).replace(/\.?0+$/,""):"",L=M<0?"-":"",I=kt(this._months)!==kt(M)?"-":"",ae=kt(this._days)!==kt(M)?"-":"",Ee=kt(this._milliseconds)!==kt(M)?"-":"",L+"P"+(m?I+m+"Y":"")+(o?I+o+"M":"")+(n?ae+n+"D":"")+(u||d||s?"T":"")+(u?Ee+u+"H":"")+(d?Ee+d+"M":"")+(s?Ee+p+"S":"")):"P0D"}var R=fs.prototype;R.isValid=Bo,R.abs=Td,R.add=Od,R.subtract=Cd,R.as=jd,R.asMilliseconds=qr,R.asSeconds=xd,R.asMinutes=Pd,R.asHours=Nd,R.asDays=Wd,R.asWeeks=Id,R.asMonths=Rd,R.asQuarters=Fd,R.asYears=$d,R.valueOf=Ad,R._bubble=Ld,R.clone=Ud,R.get=Ed,R.milliseconds=Hd,R.seconds=Vd,R.minutes=zd,R.hours=Gd,R.days=Jd,R.weeks=qd,R.months=Bd,R.years=Zd,R.humanize=tu,R.toISOString=vs,R.toString=vs,R.toJSON=vs,R.locale=Ir,R.localeData=Fr,R.toIsoString=ue("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",vs),R.lang=Rr,T("X",0,0,"unix"),T("x",0,0,"valueOf"),D("x",as),D("X",ka),H("X",function(s,n,o){o._d=new Date(parseFloat(s)*1e3)}),H("x",function(s,n,o){o._d=new Date(P(s))});//! moment.js
return r.version="2.30.1",a(J),r.fn=y,r.min=Vo,r.max=zo,r.now=Go,r.utc=x,r.unix=vd,r.months=Sd,r.isDate=g,r.locale=Ke,r.invalid=es,r.duration=ye,r.isMoment=we,r.weekdays=Dd,r.parseZone=kd,r.localeData=Fe,r.isDuration=_s,r.monthsShort=Md,r.weekdaysMin=Yd,r.defineLocale=li,r.updateLocale=ko,r.locales=So,r.weekdaysShort=bd,r.normalizeUnits=ce,r.relativeTimeRounding=Xd,r.relativeTimeThreshold=eu,r.calendarFormat=wl,r.prototype=y,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r})}(Ts)),Ts.exports}var b_=M_.exports;(function(t,e){(function(i,r){r(typeof ge=="function"?De():i.moment)})(b_,function(i){//! moment.js locale configuration
function r(l,c,h,f){var _={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[l+" Tage",l+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[l+" Monate",l+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[l+" Jahre",l+" Jahren"]};return c?_[h][0]:_[h][1]}var a=i.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:r,mm:"%d Minuten",h:r,hh:"%d Stunden",d:r,dd:r,w:r,ww:"%d Wochen",M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return a})})();var Y_={exports:{}},T_=Y_.exports;(function(t,e){(function(i,r){r(typeof ge=="function"?De():i.moment)})(T_,function(i){//! moment.js locale configuration
function r(h,f){var _=h.split("_");return f%10===1&&f%100!==11?_[0]:f%10>=2&&f%10<=4&&(f%100<10||f%100>=20)?_[1]:_[2]}function a(h,f,_){var w={ss:f?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:f?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};return _==="m"?f?"минута":"минуту":h+" "+r(w[_],+h)}var l=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i],c=i.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:l,longMonthsParse:l,shortMonthsParse:l,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(h){if(h.week()!==this.week())switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}else return this.day()===2?"[Во] dddd, [в] LT":"[В] dddd, [в] LT"},lastWeek:function(h){if(h.week()!==this.week())switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}else return this.day()===2?"[Во] dddd, [в] LT":"[В] dddd, [в] LT"},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:a,m:a,mm:a,h:"час",hh:a,d:"день",dd:a,w:"неделя",ww:a,M:"месяц",MM:a,y:"год",yy:a},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(h){return/^(дня|вечера)$/.test(h)},meridiem:function(h,f,_){return h<4?"ночи":h<12?"утра":h<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(h,f){switch(f){case"M":case"d":case"DDD":return h+"-й";case"D":return h+"-го";case"w":case"W":return h+"-я";default:return h}},week:{dow:1,doy:4}});return c})})();var O_={exports:{}},C_=O_.exports;(function(t,e){(function(i,r){r(typeof ge=="function"?De():i.moment)})(C_,function(i){//! moment.js locale configuration
var r=i.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_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:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(a){var l=a%10,c=~~(a%100/10)===1?"th":l===1?"st":l===2?"nd":l===3?"rd":"th";return a+c},week:{dow:1,doy:4}});return r})})();var L_={exports:{}},j_=L_.exports;(function(t,e){(function(i,r){r(typeof ge=="function"?De():i.moment)})(j_,function(i){//! moment.js locale configuration
var r=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,a=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,l=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,c=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i],h=i.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:l,monthsShortRegex:l,monthsStrictRegex:r,monthsShortStrictRegex:a,monthsParse:c,longMonthsParse:c,shortMonthsParse:c,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",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(f,_){switch(_){case"D":return f+(f===1?"er":"");default:case"M":case"Q":case"DDD":case"d":return f+(f===1?"er":"e");case"w":case"W":return f+(f===1?"re":"e")}},week:{dow:1,doy:4}});return h})})();var x_={exports:{}},P_=x_.exports;(function(t,e){(function(i,r){r(typeof ge=="function"?De():i.moment)})(P_,function(i){//! moment.js locale configuration
var r=i.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT"},lastWeek:function(){switch(this.day()){case 0:return"[La scorsa] dddd [a"+(this.hours()>1?"lle ":this.hours()===0?" ":"ll'")+"]LT";default:return"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":this.hours()===0?" ":"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}º/,ordinal:"%dº",week:{dow:1,doy:4}});return r})})();var N_={exports:{}},W_=N_.exports;(function(t,e){(function(i,r){r(typeof ge=="function"?De():i.moment)})(W_,function(i){//! moment.js locale configuration
var r="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),a="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),l=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],c=/^(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,h=i.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(f,_){return f?/-MMM-/.test(_)?a[f.month()]:r[f.month()]:r},monthsRegex:c,monthsShortRegex:c,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:l,longMonthsParse:l,shortMonthsParse:l,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(this.hours()!==1?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(this.hours()!==1?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(this.hours()!==1?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(this.hours()!==1?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(this.hours()!==1?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha inválida"});return h})})();var I_={exports:{}},R_=I_.exports;(function(t,e){(function(i,r){r(typeof ge=="function"?De():i.moment)})(R_,function(i){//! moment.js locale configuration
var r="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),a="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),l=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function c(_){return _%10<5&&_%10>1&&~~(_/10)%10!==1}function h(_,w,g){var W=_+" ";switch(g){case"ss":return W+(c(_)?"sekundy":"sekund");case"m":return w?"minuta":"minutę";case"mm":return W+(c(_)?"minuty":"minut");case"h":return w?"godzina":"godzinę";case"hh":return W+(c(_)?"godziny":"godzin");case"ww":return W+(c(_)?"tygodnie":"tygodni");case"MM":return W+(c(_)?"miesiące":"miesięcy");case"yy":return W+(c(_)?"lata":"lat")}}var f=i.defineLocale("pl",{months:function(_,w){return _?/D MMMM/.test(w)?a[_.month()]:r[_.month()]:r},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:l,longMonthsParse:l,shortMonthsParse:l,weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:h,m:h,mm:h,h,hh:h,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:h,M:"miesiąc",MM:h,y:"rok",yy:h},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return f})})();var F_={exports:{}},$_=F_.exports;(function(t,e){(function(i,r){r(typeof ge=="function"?De():i.moment)})($_,function(i){//! moment.js locale configuration
var r="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),a="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),l=[/^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],c=/^(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,h=i.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(f,_){return f?/-MMM-/.test(_)?a[f.month()]:r[f.month()]:r},monthsRegex:c,monthsShortRegex:c,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:l,longMonthsParse:l,shortMonthsParse:l,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",w:"één week",ww:"%d weken",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(f){return f+(f===1||f===8||f>=20?"ste":"de")},week:{dow:1,doy:4}});return h})})();var A_={exports:{}},U_=A_.exports;(function(t,e){(function(i,r){r(typeof ge=="function"?De():i.moment)})(U_,function(i){//! moment.js locale configuration
var r=i.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return this.day()===0||this.day()===6?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return r})})();var E_={exports:{}},H_=E_.exports;(function(t,e){(function(i,r){r(typeof ge=="function"?De():i.moment)})(H_,function(i){//! moment.js locale configuration
function r(f,_){var w=f.split("_");return _%10===1&&_%100!==11?w[0]:_%10>=2&&_%10<=4&&(_%100<10||_%100>=20)?w[1]:w[2]}function a(f,_,w){var g={ss:_?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:_?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:_?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"};return w==="m"?_?"хвилина":"хвилину":w==="h"?_?"година":"годину":f+" "+r(g[w],+f)}function l(f,_){var w={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")},g;return f===!0?w.nominative.slice(1,7).concat(w.nominative.slice(0,1)):f?(g=/(\[[ВвУу]\]) ?dddd/.test(_)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(_)?"genitive":"nominative",w[g][f.day()]):w.nominative}function c(f){return function(){return f+"о"+(this.hours()===11?"б":"")+"] LT"}}var h=i.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:l,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:c("[Сьогодні "),nextDay:c("[Завтра "),lastDay:c("[Вчора "),nextWeek:c("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return c("[Минулої] dddd [").call(this);case 1:case 2:case 4:return c("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:a,m:a,mm:a,h:"годину",hh:a,d:"день",dd:a,M:"місяць",MM:a,y:"рік",yy:a},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(f){return/^(дня|вечора)$/.test(f)},meridiem:function(f,_,w){return f<4?"ночі":f<12?"ранку":f<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(f,_){switch(_){case"M":case"d":case"DDD":case"w":case"W":return f+"-й";case"D":return f+"-го";default:return f}},week:{dow:1,doy:7}});return h})})();var V_={exports:{}},z_=V_.exports;(function(t,e){(function(i,r){r(typeof ge=="function"?De():i.moment)})(z_,function(i){//! moment.js locale configuration
var r=i.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(a,l){return a===12&&(a=0),l==="凌晨"||l==="早上"||l==="上午"?a:l==="下午"||l==="晚上"?a+12:a>=11?a:a+12},meridiem:function(a,l,c){var h=a*100+l;return h<600?"凌晨":h<900?"早上":h<1130?"上午":h<1230?"中午":h<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(a){return a.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(a){return this.week()!==a.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(a,l){switch(l){case"d":case"D":case"DDD":return a+"日";case"M":return a+"月";case"w":case"W":return a+"周";default:return a}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}});return r})})();window.systemDictionary={};window.systemLang="en";function G_(t,e,i){if(!t)return"";if(e=e||window.systemLang||"en",i=i||window.systemDictionary||{},i&&i[t]){let r=i[t][e];if(r||e!=="en"&&(r=i[t].en,r))return r}else typeof t=="string"&&!t.match(/_tooltip$/)||typeof t!="string"&&console.warn(`Trying to translate non-text: ${t}`);return t}window._=(t,e,i,r)=>{t=G_(t);let a=t.indexOf("%s");if(a!==-1)t=t.replace("%s",(e==null?void 0:e.toString())||"");else return t;if(a=t.indexOf("%s"),a!==-1)t=t.replace("%s",(i==null?void 0:i.toString())||"");else return t;return a=t.indexOf("%s"),a!==-1&&(t=t.replace("%s",(r==null?void 0:r.toString())||"")),t};window.addWords=t=>Object.assign(window.systemDictionary||{},t);window.addWords({"No connection to Server":{en:"No connection to Server",de:"Keine Verbindung zum Server",ru:"Нет соединения с сервером",pt:"Nenhuma conexão ao servidor",nl:"Geen verbinding met server",fr:"Pas de connexion au serveur",it:"Nessuna connessione al server",es:"Sin conexión al servidor",pl:"Brak połączenia z serwerem",uk:"Немає з'єднання з сервером","zh-cn":"没有与服务器的连接"},"Loading Views...":{en:"Loading Views...",de:"Lade Views...",ru:"Загрузка пользовательских страниц...",pt:"Carregando páginas ...",nl:"Pagina's laden ...",fr:"Chargement des pages ...",it:"Caricamento pagine ...",es:"Cargando páginas ...",pl:"Ładowanie stron ...",uk:"Завантаження сторінок ...","zh-cn":"加载页面......"},"Connecting to Server...":{en:"Connecting to Server...",de:"Verbinde mit dem Server...",ru:"Соединение с сервером...",pt:"Conectando ao servidor...",nl:"Verbinden met de server...",fr:"Connexion au serveur...",it:"Connessione al server...",es:"Conectando al servidor...",pl:"Łączenie z serwerem...",uk:"З'єднання з сервером...","zh-cn":"连接到服务器..."},"Loading data objects...":{en:"Loading data...",de:"Lade Daten...",ru:"Загрузка данных...",pt:"Carregando dados...",nl:"Data laden...",fr:"Chargement des données...",it:"Caricamento dati...",es:"Cargando datos...",pl:"Ładowanie danych...",uk:"Завантаження даних...","zh-cn":"加载数据中..."},"Loading data values...":{en:"Loading values...",de:"Lade Werte...",ru:"Загрузка значений...",pt:"Carregando valores ...",nl:"Waarden laden ...",fr:"Chargement des valeurs ...",it:"Caricamento valori ...",es:"Cargando valores ...",pl:"Ładowanie wartości ...",uk:"Завантаження значень ...","zh-cn":"载入值..."},"error - View doesn't exist":{en:"View doesn't exist!",de:"View existiert nicht!",ru:"Страница не существует!",pt:"erro - a página não existe",nl:"error - Page bestaat niet",fr:"error - La page n'existe pas",it:"errore - La pagina non esiste",es:"error - la página no existe",pl:"błąd - strona nie istnieje",uk:"помилка - сторінка не існує","zh-cn":"错误 - 页面不存在"},"no views found!":{en:"No views found!",de:"Keine Views gefunden!",ru:"Не найдено страниц!",pt:"Nenhuma página encontrada!",nl:"Geen pagina's gevonden!",fr:"Aucune page trouvée!",it:"Nessuna pagina trovata!",es:"No se encontraron páginas!",pl:"Nie znaleziono stron!",uk:"Не знайдено сторінок!","zh-cn":"找不到页面!"},"No valid license found!":{en:"No valid vis license found! Please check vis settings.",de:"Keine gültige vis Lizenz gefunden! Bitte vis Einstellungen prüfen.",ru:"Действительная лицензия не найдена! Пожалуйста, проверьте настройки.",pt:"Nenhuma licença válida encontrada! Por favor, verifique vis instance.",nl:"Geen geldige licentie gevonden! Controleer de vis-aankondiging.",fr:"Aucune licence valide trouvée ! Veuillez vérifier vis instance.",it:"Nessuna licenza valida trovata! Si prega di controllare di persona.",es:"No se encontró ninguna licencia válida! Por favor, compruebe la instancia de visita.",pl:"Nie znaleziono ważnej licencji! Proszę sprawdzić vis instance.",uk:"Не знайдено дійсної ліцензії! Будь ласка, перевірте налаштування vis.","zh-cn":"找不到有效的许可证!请检查vis实例。"},"No Views found on Server":{en:"No Views found on Server",de:"Keine Views am Server gefunden.",ru:"На сервере не найдено никаких страниц.",pt:"Nenhuma página encontrada no servidor",nl:"Geen pagina's gevonden op server",fr:"Aucune page trouvée sur le serveur",it:"Nessuna pagina trovata sul server",es:"No se encontraron páginas en el servidor",pl:"Nie znaleziono stron na serwerze",uk:"На сервері не знайдено жодних сторінок","zh-cn":"在服务器上找不到页面"},"All changes are saved locally. To reset changes clear the cache.":{en:"All changes are saved locally. To reset changes clear the browser cache.",de:"Alle Änderungen sind lokal gespeichert. Um Änderungen zu löschen, lösche Browsercache.",ru:"Все изменения сохранены локально. Для отмены локальных изменений очистите кеш броузера.",pt:"Todas as alterações são salvas localmente. Para redefinir as alterações, limpe o cache do navegador.",nl:"Alle wijzigingen worden lokaal opgeslagen. Als u de wijzigingen opnieuw wilt instellen, wist u de cache van de browser.",fr:"Toutes les modifications sont enregistrées localement. Pour réinitialiser les modifications, effacez le cache du navigateur.",it:"Tutte le modifiche sono salvate localmente. Per ripristinare le modifiche, cancellare la cache del browser.",es:"Todos los cambios se guardan localmente. Para restablecer los cambios borra el caché del navegador.",pl:"Wszystkie zmiany są zapisywane lokalnie. Aby zresetować zmiany, wyczyść pamięć podręczną przeglądarki.",uk:"Всі зміни зберігаються локально. Щоб скинути зміни, очистіть кеш браузера.","zh-cn":"所有更改都保存在本地。要重置更改,请清除浏览器缓存。"},"please use /vis/edit.html instead of /vis/?edit":{en:"Please use /vis/edit.html instead of /vis/?edit",de:"Bitte geben Sie /vis/edit.html statt /vis/?edit",ru:"Используйте /vis/edit.html вместо /vis/?edit",pt:"Por favor, use /vis/edit.html em vez de /vis/?edit",nl:"Gebruik alsjeblieft /vis/edit.html in plaats van /vis/?edit",fr:"Veuillez utiliser /vis/edit.html au lieu de /vis/?edit",it:"Utilizza /vis/edit.html invece di /vis/?edit",es:"Utilice /vis/edit.html en lugar de /vis/?edit",pl:"Użyj /vis/edit.html zamiast /vis/?edit",uk:"Будь ласка, використовуйте /vis/edit.html замість /vis/?edit","zh-cn":"请使用/vis/edit.html而不是/vis/?edit"},"no views found on server.\nCreate new %s ?":{en:`no views found on server.
Create new %s?`,de:`Keine Views am Server gefunden am.
Erzeugen %s?`,ru:"На сервере не найдено никаких страниц. Создать %s?",pt:`nenhuma vista encontrada no servidor.
Crie novos %s?`,nl:`geen weergaven gevonden op server.
Nieuwe %s maken?`,fr:`aucune vue trouvée sur le serveur.
Créer un nouveau %s?`,it:`nessuna vista trovata sul server.
Crea nuovo %s?`,es:`No se han encontrado vistas en el servidor.
Crear nuevo %s?`,pl:`nie znaleziono widoków na serwerze.
Utwórz nowy %s?`,uk:`на сервері не знайдено жодних сторінок.
Створити новий %s?`,"zh-cn":`在服务器上找不到任何视图
创建新的 %s?`},"Update found, loading new Files...":{en:"Update found.<br/>Loading new Files...",de:"Neue Version gefunden.<br/>Lade neue Dateien...",ru:"Обнаружено Обновление.<br/>Загружаю новые файлы...",pt:"Atualização encontrada. <br/> Carregando novos arquivos ...",nl:"Update gevonden. <br/> Nieuwe bestanden laden ...",fr:"Mise à jour trouvée. <br/> Chargement de nouveaux fichiers ...",it:"Aggiornamento trovato. <br/> Caricamento di nuovi file ...",es:"Actualización encontrada. <br/> Cargando nuevos archivos ...",pl:"Znaleziono aktualizację. <br/> Ładowanie nowych plików ...",uk:"Оновлення знайдено. <br/> Завантаження нових файлів ...","zh-cn":"找到更新。<br/>加载新文件..."},"Loading Widget-Sets...":{en:"Loading Widget-Sets...",de:"Lade Widget-Sätze...",ru:"Загрузка наборов элементов...",pt:"Carregando Conjuntos de Widget ...",nl:"Widgetsets laden ...",fr:"Chargement des ensembles de widgets ...",it:"Caricamento widget-set ...",es:"Cargando conjuntos de widgets ...",pl:"Ładowanie zestawów widgetów ...",uk:"Завантаження наборів віджетів ...","zh-cn":"正在加载Widget-Sets ..."},"error: view not found.":{en:"Error: view not found",de:"Fehler: View wurde nicht gefunden",ru:"Ошибка: Страница не существует",pt:"Erro: página não encontrada",nl:"Fout: pagina niet gevonden",fr:"Erreur: page non trouvée",it:"Errore: pagina non trovata",es:"Error: página no encontrada",pl:"Błąd: strona nie znaleziona",uk:"Помилка: сторінка не знайдена","zh-cn":"错误:找不到页面"},"error: view container recursion.":{en:"Error: view container recursion",de:"Fehler: View ist rekursiv",ru:"Ошибка: Страница вызывет саму себя",pt:"Erro: recursão do contêiner de página",nl:"Fout: paginacontainer-recursie",fr:"Erreur: récursivité du conteneur de page",it:"Errore: ricorsione del contenitore della pagina",es:"Error: página de recursión del contenedor.",pl:"Błąd: rekursja kontenera strony",uk:"Помилка: рекурсія контейнера сторінки","zh-cn":"错误:页面容器递归"},"Cannot execute %s for %s, because of insufficient permissions":{en:"Cannot execute %s for %s, because of insufficient permissions.",de:"Kann das Kommando '%s' für %s nicht ausführen, weil nicht genügend Zugriffsrechte vorhanden sind.",ru:"Не могу выполнить '%s' для %s, так как недостаточно прав.",pt:"Não é possível executar %s para %s, devido a permissões insuficientes.",nl:"Kan %s niet uitvoeren voor %s, vanwege onvoldoende machtigingen.",fr:"Impossible d'exécuter %s pour %s en raison d'autorisations insuffisantes.",it:"Impossibile eseguire %s per %s, a causa di autorizzazioni insufficienti.",es:"No se puede ejecutar %s para %s, debido a permisos insuficientes.",pl:"Nie można wykonać %s dla %s, z powodu niewystarczających uprawnień.",uk:"Неможливо виконати %s для %s через недостатні права.","zh-cn":"由于权限不足,无法为%s执行%s。"},"Insufficient permissions":{en:"Insufficient permissions",de:"Nicht genügend Zugriffsrechte",ru:"Недостаточно прав",pt:"Permissões insuficientes",nl:"Onvoldoende rechten",fr:"Permissions insuffisantes",it:"Permessi insufficienti",es:"Permisos insuficientes",pl:"Niewystarczające uprawnienia",uk:"Недостатньо прав","zh-cn":"权限不足"},"View disabled for user %s":{en:"View disabled for user <b>%s</b>",de:"View ist für Anwender <b>%s</b> deaktiviert",ru:"Страница недоступна для пользователя <b>%s</b>",pt:"Visualização desativada para o usuário <b>%s</b>",nl:"Weergave uitgeschakeld voor gebruiker <b>%s</b>",fr:"Affichage désactivé pour l'utilisateur <b>%s</b>",it:"Visualizza disabilitato per l'utente <b>%s</b>",es:"Vista deshabilitada para el usuario <b>%s</b>",pl:"Widok wyłączony dla użytkownika <b>%s</b>",uk:"Відображення вимкнено для користувача <b>%s</b>","zh-cn":"用户<b>%s</b>的视图已停用"},Today:{en:"Today",de:"Heute",ru:"Cегодня",pt:"Hoje",nl:"Vandaag",fr:"Aujourd'hui",it:"Oggi",es:"Hoy",pl:"Dzisiaj",uk:"Сьогодні","zh-cn":"今天"},Yesterday:{en:"Yesterday",de:"Gestern",ru:"Вчерашний день",pt:"Ontem",nl:"Gisteren",fr:"Hier",it:"Ieri",es:"Ayer",pl:"Wczoraj",uk:"Вчора","zh-cn":"昨天"}});class bt{vis;bindingsCache;constructor(e){this.vis=e.vis,this.bindingsCache={}}static getObjPropValue(e,i){if(!e)return;const r=i.split(".");let a=e;for(const l of r)if(a=a[l],!a)return;return a}getSpecialValues(e,i,r,a){switch(e){case"username.val":return this.vis.user;case"login.val":return this.vis.loginRequired;case"instance.val":return this.vis.instance;case"language.val":return this.vis.language;case"wid.val":return r;case"wname.val":return(a==null?void 0:a.name)||r;case"view.val":return i;default:return}}static formatValue(e,i,r){typeof i!="number"&&(i=2,r=i);const a=r??".,";return typeof e!="number"&&(e=parseFloat(e)),Number.isNaN(e)?"":e.toFixed(i||0).replace(a[0],a[1]).replace(/\B(?=(\d{3})+(?!\d))/g,a[0])}formatMomentDate(e,i,r,a){if(r=typeof r<"u"?r:!1,!e)return"";let l;const c=typeof e;if(c==="string")l=a(e);else if(c!=="object"){const _=parseInt(e,10);_===e?_<946681200?l=a(e):l=_<9466812e5?a(_*1e3):a(_):l=a(e)}const h=i||this.vis.dateFormat||"DD.MM.YYYY";let f;if(r&&l&&a){if(l.isSame(a(),"day")){const _=this.vis._("Today");f=a(l).format(h.replace("dddd",_).replace("ddd",_).replace("dd",_))||""}if(l.isSame(a().subtract(1,"day"),"day")){const _=this.vis._("Yesterday");f=a(l).format(h.replace("dddd",_).replace("ddd",_).replace("dd",_))||""}}else f=a(l).format(h)||"";return f}static _put(e,i,r){let a="";switch(e){case"YYYY":case"JJJJ":case"ГГГГ":case"YY":case"JJ":case"ГГ":a=i.getFullYear(),e.length===2&&(a%=100);break;case"MM":case"M":case"ММ":case"М":a=i.getMonth()+1,a<10&&e.length===2&&(a=`0${a}`);break;case"DD":case"TT":case"D":case"T":case"ДД":case"Д":a=i.getDate(),a<10&&e.length===2&&(a=`0${a}`);break;case"hh":case"SS":case"h":case"S":case"чч":case"ч":a=i.getHours(),a<10&&e.length===2&&(a=`0${a}`);break;case"mm":case"m":case"мм":case"м":a=i.getMinutes(),a<10&&e.length===2&&(a=`0${a}`);break;case"ss":case"s":case"cc":case"c":a=i.getSeconds(),a<10&&e.length===2&&(a=`0${a}`),a=a.toString();break;case"sss":case"ссс":a=i.getMilliseconds(),a<10?a=`00${a}`:a<100&&(a=`0${a}`),a=a.toString();break}return r+=a,r}formatDate(e,i,r){if((typeof i=="string"&&i.toLowerCase()==="duration"||i===!0)&&(i=!0),typeof i!="boolean"&&(r=i,i=!1),!e)return"";let a;const l=typeof e;if(l==="string")a=new Date(e);else if(l!=="object"){const h=parseInt(e,10);h===e?h<946681200?(i=!0,a=new Date(e)):a=h<9466812e5?new Date(h*1e3):new Date(h):a=new Date(e)}let c="";if(a){const h=r||this.vis.dateFormat||"DD.MM.YYYY";i&&a.setMilliseconds(a.getMilliseconds()+a.getTimezoneOffset()*60*1e3);const f="YJГMМDTДhSчmмsс";let _="";for(let w=0;w<h.length;w++)f.includes(h[w])?_+=h[w]:(c=bt._put(_,a,c),_="",c+=h[w]);c=bt._put(_,a,c)}return c}extractBinding(e){if(!e)return null;if(!this.vis.editMode&&this.bindingsCache[e])return Ms(this.bindingsCache[e]);const i=Os(e);return i&&this.bindingsCache&&!this.vis.editMode&&(this.bindingsCache[e]=Ms(i)),i}formatBinding(e){const{view:i,wid:r,widget:a,widgetData:l,moment:c}=e;let{format:h}=e;const f=e.values||this.vis.states,_=this.extractBinding(e.format);for(const w of _){let g;if(w.visOid&&(g=this.getSpecialValues(w.visOid,i,r,l),g==null&&(g=f[w.visOid])),w.operations)for(const W of w.operations)if(W.op==="eval"){let k="";const x=W.arg;for(let Y=0;Y<x.length;Y++)if(x[Y].name)if(g=this.getSpecialValues(x[Y].visOid,i,r,l),g==null&&(g=x[Y].visOid.startsWith("widgetOid.")?f[x[Y].visOid.replace(/^widgetOid\./g,`${a.data.oid}.`)]:f[x[Y].visOid]),g===null)k+=`const ${x[Y].name} = null;`;else if(g===void 0)k+=`const ${x[Y].name} = undefined;`;else{const ht=typeof g;if(ht==="string")try{g=JSON.parse(g),typeof g=="object"?k+=`const ${x[Y].name} = JSON.parse("${JSON.stringify(g).replace(/\x22/g,'\\"')}");`:k+=`const ${x[Y].name} = "${g}";`}catch{k+=`const ${x[Y].name} = "${g}";`}else ht==="object"?k+=`const ${x[Y].name} = ${JSON.stringify(g)};`:k+=`const ${x[Y].name} = ${g.toString()};`}const{formula:be}=W;if(be&&be.includes("widget.")){const Y=Ms(a);Y.data=l,k+=`const widget = ${JSON.stringify(Y)};`}k+=`return ${W.formula};`,k.includes('\\"')&&(k=k.replace(/\\"/g,'"'));try{g=new Function(k)(),g&&typeof g=="object"&&(g=JSON.stringify(g))}catch(Y){console.error(`Error in eval[value]: ${h}`),console.error(`Error in eval[script]: ${k}`),console.error(`Error in eval[error]: ${Y}`),g=0}}else{const k=W.arg;switch(W.op){case"*":k!=null&&(g=parseFloat(g)*k);break;case"/":k!=null&&(g=parseFloat(g)/k);break;case"+":k!=null&&(g=parseFloat(g)+k);break;case"-":k!=null&&(g=parseFloat(g)-k);break;case"%":k!=null&&(g=parseFloat(g)%k);break;case"round":k===void 0?g=Math.round(parseFloat(g)):g=parseFloat(g).toFixed(k);break;case"pow":k===void 0?g=parseFloat(g)*parseFloat(g):g=parseFloat(g)**k;break;case"sqrt":g=Math.sqrt(parseFloat(g));break;case"hex":g=Math.round(parseFloat(g)).toString(16);break;case"hex2":g=Math.round(parseFloat(g)).toString(16),g.length<2&&(g=`0${g}`);break;case"HEX":g=Math.round(parseFloat(g)).toString(16).toUpperCase();break;case"HEX2":g=Math.round(parseFloat(g)).toString(16).toUpperCase(),g.length<2&&(g=`0${g}`);break;case"value":g=bt.formatValue(g,parseInt(k,10));break;case"array":g=k[parseInt(g,10)];break;case"date":g=this.formatDate(g,k);break;case"momentDate":if(k!=null&&typeof k=="string"){const x=k.split(",");x.length===1?g=this.formatMomentDate(g,x[0],!1,c):x.length===2?g=this.formatMomentDate(g,x[0],!!x[1],c):g="error"}break;case"min":g=parseFloat(g),g=g<k?k:g;break;case"max":g=parseFloat(g),g=g>k?k:g;break;case"random":k===void 0?g=Math.random():g=Math.random()*k;break;case"floor":g=Math.floor(parseFloat(g));break;case"ceil":g=Math.ceil(parseFloat(g));break;case"json":if(g&&typeof g=="string")try{g=JSON.parse(g)}catch{console.warn(`Cannot parse JSON string: ${g}`)}g&&typeof g=="object"&&(g=bt.getObjPropValue(g,k));break;default:console.warn(`Unknown operator: ${h}`);break}}h=h.replace(w.token,g)}return h=h.replace(/{{/g,"{").replace(/}}/g,"}"),h}}function ea(t,e,i){if(!t)return"";if(e||=window.systemLang,i||=window.systemDictionary,i[t]){let r=i[t][e];if(r||e!=="en"&&(r=i[t].en,r))return r}else typeof t=="string"&&!t.match(/_tooltip$/)||typeof t!="string"&&console.warn(`Trying to translate non-text: ${t}`);return t}function J_(t,e,i,r){return t=ea(t),!t.includes("%s")||(t=t.replace("%s",e),!t.includes("%s"))||(t=t.replace("%s",i),!t.includes("%s"))?t:t.replace("%s",r)}class X extends Xr.Component{isTouch;debounceInterval;fontNames;ID_CONTROL_INSTANCE;ID_CONTROL_DATA;ID_CONTROL_COMMAND;formatUtils;userName;visCommonCssLoaded;oldTime;systemConfig;_cmdData;_cmdInstance;wakeUpDetectorInterval;lastChangedView;allWidgets;subscribes;scripts;visUserCssLoaded;linkContext;statesDebounce;statesDebounceTime;vis;instance;refSound;lastChange;_authInfo;_authRunning;conn;visContext;widgetChangeHandlers;canStates;viewsActiveFilter;defaultMode;can;refViews;onChangeCallbacks;wakeUpCallbacks;fontTimer;preloadImagesCacheImgs;preloadImagesCacheSrcs;constructor(e){var i,r;super(e),window.jQuery=window.$,window.$=window.jQuery,window.systemLang=e.lang||window.systemLang||"en",this.state={ready:!1,legacyRequestedViews:[],timeInterval:JSON.parse(window.localStorage.getItem("timeInterval"))||"week",timeStart:JSON.parse(window.localStorage.getItem("timeStart"))||null},S.locale(window.systemLang),this.can=window.can,this.scripts=null,this.isTouch="ontouchstart"in document.documentElement,this.debounceInterval=700,this.subscribes={},this.allWidgets={},this.wakeUpCallbacks=[],this.widgetChangeHandlers={},this.refViews={},this.fontNames=["Verdana, Geneva, sans-serif",'Georgia, "Times New Roman", Times, serif','"Courier New", Courier, monospace',"Arial, Helvetica, sans-serif","Tahoma, Geneva, sans-serif",'"Trebuchet MS", Arial, Helvetica, sans-serif','"Arial Black", Gadget, sans-serif','"Times New Roman", Times, serif','"Palatino Linotype", "Book Antiqua", Palatino, serif','"Lucida Sans Unicode", "Lucida Grande", sans-serif','"MS Serif", "New York", serif','"Comic Sans MS", cursive'],this.viewsActiveFilter={},this.statesDebounce={},this.onChangeCallbacks=[],this.ID_CONTROL_INSTANCE=`${this.props.adapterName}.${this.props.instance}.control.instance`,this.ID_CONTROL_DATA=`${this.props.adapterName}.${this.props.instance}.control.data`,this.ID_CONTROL_COMMAND=`${this.props.adapterName}.${this.props.instance}.control.command`,this.linkContext={IDs:[],visibility:{},signals:{},lastChanges:{},bindings:{},unregisterChangeHandler:this.unregisterChangeHandler,registerChangeHandler:this.registerChangeHandler,subscribe:this.subscribe,unsubscribe:this.unsubscribe,getViewRef:this.getViewRef,registerViewRef:this.registerViewRef,unregisterViewRef:this.unregisterViewRef},this.refSound=/^((?!chrome|android).)*safari/i.test(window.navigator.userAgent)?Xr.createRef():null,this.conn=this.createConnection(),this.canStates=this.initCanObjects(),this.vis=this.createLegacyVisObject(),window._=this.vis._,window.vis=this.vis,window.translateWord=ea,window._setTimeout=(a,l,c,h,f,_,w,g)=>setTimeout(()=>a(c,h,f,_,w,g),l),window._setInterval=(a,l,c,h,f,_,w,g)=>setInterval(()=>a(c,h,f,_,w,g),l),this.formatUtils=new bt({vis:this.vis}),this.loadLegacyObjects().then(()=>this.loadEditWords()).then(()=>(this.userName=this.props.currentUser._id.replace("system.user.",""),this.vis.user=this.userName,this.vis.loginRequired=this.props.socket.isSecure,this.props.socket.getSystemConfig())).then(a=>{var l,c;return this.vis.dateFormat=a.common.dateFormat,this.vis.isFloatComma=a.common.isFloatComma,this.vis.language=a.common.language||"en",this.systemConfig=a,this.props.socket.subscribeState(this.ID_CONTROL_INSTANCE,this.onStateChange),this.props.socket.subscribeState(this.ID_CONTROL_DATA,this.onStateChange),this.props.socket.subscribeState(this.ID_CONTROL_COMMAND,this.onStateChange),(c=(l=this.props).setLoadingText)==null||c.call(l,"Load widgets..."),this.loadWidgets()}).then(()=>{var a,l;(l=(a=this.props).setLoadingText)==null||l.call(a,null),this.setState({ready:!0})}),(r=(i=this.props).onFontsUpdate)==null||r.call(i,this.fontNames)}static getCurrentPath(){const e=window.location.hash.replace(/^#/,"").split("/").map(i=>decodeURIComponent(i));return{view:e.shift(),path:e}}static buildPath(e,i){return i&&typeof i=="string"&&(i.includes("/")?i=i.split("/"):i=[i]),Array.isArray(i)&&i.length?`#${encodeURIComponent(e)}/${i.map(r=>encodeURIComponent(r)).join("/")}`:`#${encodeURIComponent(e)}`}setTimeInterval=e=>{this.setState({timeInterval:e}),window.localStorage.setItem("timeInterval",JSON.stringify(e))};setTimeStart=e=>{this.setState({timeStart:e}),window.localStorage.setItem("timeStart",JSON.stringify(e))};detectWakeUp(){this.oldTime=Date.now(),this.wakeUpDetectorInterval=this.wakeUpDetectorInterval||setInterval(()=>{const e=Date.now();e>this.oldTime+1e4?(this.oldTime=e,this.wakeUpCallbacks.forEach(i=>{if(typeof i.cb=="function")try{i.cb(i.wid)}catch(r){console.error(`Cannot wakeup ${i.wid}: ${r}`)}})):this.oldTime=e},2500)}componentDidMount(){window.$.ui.dialog.prototype._appendTo=function(){const e=this.options.wid,i=B.getState().visProject,r=Object.keys(i).find(a=>{var l;return(l=i[a].widgets)==null?void 0:l[e]});return!r&&console.warn(`Cannot find view for widget "${e}"!`),this.document.find(r?`#visview_${r.replace(/\s/g,"_")}`:"body").eq(0)},window.localStorage.getItem("visInstance")||this.vis.generateInstance(),this.detectWakeUp()}componentWillUnmount(){this.wakeUpDetectorInterval&&(clearInterval(this.wakeUpDetectorInterval),this.wakeUpDetectorInterval=null),Object.keys(this.subscribes).forEach(a=>this.props.socket.unsubscribeState(a,this.onStateChange)),this.props.socket.unsubscribeState(this.ID_CONTROL_INSTANCE,this.onStateChange),this.props.socket.unsubscribeState(this.ID_CONTROL_DATA,this.onStateChange),this.props.socket.unsubscribeState(this.ID_CONTROL_COMMAND,this.onStateChange);let e=window.document.getElementById("#vis_user_scripts");e&&(e.remove(),e=null);let i=window.document.getElementById("#vis_common_user");i&&(i.remove(),i=null);let r=window.document.getElementById("#vis_user");r&&(r.remove(),r=null),this.subscribes={}}loadLegacyObjects(){var e,i;return this.props.runtime?Promise.resolve():((i=(e=this.props).setLoadingText)==null||i.call(e,"Loading objects..."),this.conn.getObjects().then(r=>{this.vis.objects=r}))}buildLegacyStructures=()=>{var e,i;this.buildLegacySubscribing(),(i=(e=this.vis.binds.materialdesign)==null?void 0:e.helper)!=null&&i.subscribeStatesAtRuntime&&!this.vis.binds.materialdesign.helper.subscribeStatesAtRuntime.__inited&&(this.vis.binds.materialdesign.helper.subscribeStatesAtRuntime=(r,a,l,c)=>{c&&console.log(`[subscribeStatesAtRuntime] ${a} (${r}) subscribe states at runtime`),l==null||l()},this.vis.binds.materialdesign.helper.subscribeStatesAtRuntime.__inited=!0)};buildLegacySubscribing(){this.vis.subscribing={activeViews:[],byViews:{},active:[],IDs:[]},Object.keys(B.getState().visProject).forEach(e=>{e!=="___settings"&&(this.vis.subscribing.byViews[e]=[],this.vis.subscribing.activeViews.push(e))})}createLegacyVisObject(){return this.props.showLegacyFileSelector&&(window.jQuery.fm=(e,i)=>{this.props.showLegacyFileSelector((r,a)=>i(r,a),e)}),{version:2,states:this.canStates,objects:{},isTouch:this.isTouch,activeWidgets:[],navChangeCallbacks:[],editMode:!!this.props.editMode,binds:{basic:null,table:null,jqplot:null,jqueryui:null,swipe:null},views:B.getState().visProject,activeView:this.props.selectedView,language:this.props.lang,user:"",projectPrefix:this.props.projectName,_:J_,dateFormat:"",instance:(window.localStorage.getItem("visInstance")||"").replace(/^"/,"").replace(/"$/,""),loginRequired:!1,viewsActiveFilter:this.viewsActiveFilter,onChangeCallbacks:this.onChangeCallbacks,subscribing:{activeViews:[],byViews:{},active:[],IDs:[]},conn:this.conn,lastChangedView:null,updateContainers:()=>{const e=this.refViews;Object.keys(e).forEach(i=>e[i].onCommand("updateContainers"))},renderView:(e,i,r,a)=>{if(typeof i=="boolean"&&(a=r,r=void 0,i=e),console.warn("renderView not implemented: ",e,i,r),this.state.legacyRequestedViews.includes(e))a==null||a(e,i);else{const l=[...this.state.legacyRequestedViews];l.push(e),this.setState({legacyRequestedViews:l},()=>setTimeout(()=>a==null?void 0:a(e,i),100))}},updateFilter:e=>{var i;return e||=this.props.activeView,this.refViews[e]&&(i=this.refViews[e])!=null&&i.onCommand?this.refViews[e].onCommand("collectFilters"):[]},destroyUnusedViews:()=>{console.warn("destroyUnusedViews not implemented")},changeFilter:(e,i,r,a,l,c)=>this.changeFilter(e,i,r,a,l,c),detectBounce:(e,i)=>{if(!this.isTouch)return!1;const r=Date.now();if(this.lastChange&&r-this.lastChange<this.debounceInterval)return!0;let a=e.tagName.toLowerCase();for(;a!=="div";)e=e.parentNode,a=e.tagName.toLowerCase();const l=e[`__vis_${i?"lcu":"lc"}`];return l&&r-l<this.debounceInterval?(console.log("click: filtered out"),!0):(e[`__vis_${i?"lcu":"lc"}`]=r,!1)},setValue:this.setValue,subscribe:this.subscribe,unsubscribe:this.unsubscribe,changeView:(e,i,r,a,l,c)=>{typeof i=="object"&&(c=l,l=a,r=a,i=e),!i&&e&&(i=e),typeof r=="function"&&(c=r),typeof a=="function"&&(c=a),typeof l=="function"&&(c=l),this.changeView(i),c==null||c(e,i)},getCurrentPath(){return X.getCurrentPath()},navigateInView(e){const i=X.getCurrentPath(),r=X.buildPath(i.view,e);window.location.hash!==r&&(window.location.hash=r)},onWakeUp:(e,i)=>{typeof e=="string"&&i===void 0&&(i=e,e=null),i||console.warn("No widget ID for onWakeUp callback! Please fix"),console.warn("onWakeUp not implemented"),e?this.wakeUpCallbacks.push({cb:e,wid:i}):this.wakeUpCallbacks=this.wakeUpCallbacks.filter(r=>r.wid!==i)},inspectWidgets:(e,i,r,a,l)=>{console.warn("inspectWidgets not implemented: ",e,i,r,a,l)},showMessage:(e,i,r,a,l)=>this.showMessage(e,i,r,a,l),showWidgetHelper:(e,i,r,a)=>{console.warn("showWidgetHelper not implemented: ",e,i,r,a)},findNearestResolution:(e,i)=>X.findNearestResolution(e,i),addFont:e=>{this.fontNames.includes(e)||(this.fontNames.push(e),this.props.onFontsUpdate&&(this.fontTimer&&clearTimeout(this.fontTimer),this.fontTimer=setTimeout(()=>{this.fontTimer=null,this.props.onFontsUpdate(this.fontNames)})))},registerOnChange:(e,i,r)=>{r||console.warn("No widget ID for registerOnChange callback! Please fix"),this.onChangeCallbacks.find(a=>a.callback===e&&a.arg===i&&(!r||a.wid===r))||this.onChangeCallbacks.push({callback:e,arg:i,wid:r})},unregisterOnChange:(e,i,r)=>{r||console.warn("No widget ID for unregisterOnChange callback! Please fix");const a=this.onChangeCallbacks.findIndex(l=>l.callback===e&&(i==null||l.arg===i)&&(!r||l.wid===r));a>=0&&this.onChangeCallbacks.splice(a,1)},generateInstance:()=>{let e=(Math.random()*4294967296).toString(16);return e=`0000000${e}`,e=e.substring(e.length-8),window.vis.instance=e,window.localStorage.setItem("visInstance",e),this.instance},findByRoles:(e,i)=>{typeof i!="object"?i=[i]:i=Ms(i);const r={},a=e.split(".");a.pop();const l=a.join("."),c=new RegExp(`^${l.replace(/\./g,"\\.")}\\.`);for(const h in this.vis.objects)if(c.test(h)&&this.vis.objects[h].common&&this.vis.objects[h].type==="state"){for(let f=0;f<i.length;f++)if(this.vis.objects[h].common.role===i[f]){r[i[f]]=h,i.splice(f,1);break}else if(!i.length)break}if(i.length){a.pop();const h=a.join("."),f=new RegExp(`^${h.replace(/\./g,"\\.")}\\.`);for(const _ in this.vis.objects)if(f.test(_)&&this.vis.objects[_].common&&this.vis.objects[_].type==="state"){for(let w=0;w<i.length;w++)if(this.vis.objects[_].common.role===i[w]){r[i[w]]=_,i.splice(w,1);break}if(!i.length)break}}return r},findByName:(e,i)=>{const r=e.split(".");r.pop();const l=`${r.join(".")}.${i}`;if(l in this.vis.objects&&this.vis.objects[l].common&&this.vis.objects[l].type==="state")return l;r.pop();const c=r.join("."),h=new RegExp(`^${c.replace(/\./g,"\\.")}\\..*\\.${i}`);for(const f in this.vis.objects)if(h.test(f)&&this.vis.objects[f].common&&this.vis.objects[f].type==="state")return f;return!1},hideShowAttr:e=>console.warn("hideShowAttr is deprecated: ",e),bindingsCache:{},extractBinding:(e,i)=>{if(!i&&this.props.editMode||!e)return null;if(this.vis.bindingsCache[e])return JSON.parse(JSON.stringify(this.vis.bindingsCache[e]));const r=Os(e);return r&&(this.vis.bindingsCache[e]=JSON.parse(JSON.stringify(r))),r},formatBinding:(e,i,r,a,l,c)=>this.formatUtils.formatBinding({format:e,view:i,wid:r,widget:a,widgetData:l,values:c,moment:S}),getViewOfWidget:e=>{var r,a;const i=B.getState().visProject;for(const l in i)if(l!=="___settings"&&(a=(r=i[l])==null?void 0:r.widgets)!=null&&a[e])return l;return null},confirmMessage:(e,i,r,a,l)=>this.props.onConfirmDialog(e,i,r,a,l),config:{},showCode:(e,i,r)=>this.props.onShowCode(e,i,r),findCommonAttributes:()=>{},bindWidgetClick:()=>{},preloadImages:e=>{this.preloadImagesCacheImgs||=[],this.preloadImagesCacheSrcs||=[],Array.isArray(e)||(e=[e]);for(let i=0;i<e.length;i++)if(!this.preloadImagesCacheSrcs.includes(e[i])){const r=new Image;r.src=e[i],this.preloadImagesCacheImgs.push(r),this.preloadImagesCacheSrcs.push(e[i])}},updateStates:e=>{e&&Object.keys(e).forEach(i=>{let r=e[i];if(i.startsWith("local_")){r={val:Qr(i),ts:Date.now(),lc:Date.now(),ack:!1,from:`system.adapter.${this.props.adapterName}.${this.props.instance}`,user:this.props.currentUser?this.props.currentUser._id:"system.user.admin",q:0},this.onStateChange(i,r);return}r&&this.setValue(i,r.val)})},getHistory:(e,i,r)=>{i||={},i.timeout||=2e3;let a=setTimeout(()=>{a=null,r("timeout")},i.timeout);this.props.socket.getHistory(e,i).then(l=>{a&&(clearTimeout(a),a=null),r(null,l)}).catch(l=>{a&&(clearTimeout(a),a=null),r(l)})},getHttp:(e,i)=>this.props.socket.getRawSocket().emit("httpGet",e,r=>i==null?void 0:i(r)),formatDate:(e,i,r)=>this.formatUtils.formatDate(e,i,r),widgets:this.allWidgets,editSelect:this.props.runtime?null:(e,i,r,a,l)=>{console.log("DEPRECATED!!!!! please remove vis.editSelect"),typeof r=="function"&&(l=a,a=r,r=!1);const c={input:`<select type="text" id="inspect_${e}">`};if(l&&(c.onchange=l),a&&(c.init=a),i.length&&i[0]!==void 0)for(let h=0;h<i.length;h++)c.input+=`<option value="${i[h]}">${r?i[h]:window.vis._(i[h])}</option>`;else for(const h in i)c.input+=`<option value="${i[h]}">${h}</option>`;return c.input+="</select>",c},isWidgetHidden:(e,i,r,a)=>{a||=B.getState().visProject[e].widgets[i].data;const l=a["visibility-oid"],c=a["visibility-cond"];if(l){if(r==null&&(r=this.canStates.attr(`${l}.val`)),r==null)return c==="not exist";let h=a["visibility-val"];if(!c||h===void 0||h===null)return c==="not exist";if(r==="null"&&c!=="exist"&&c!=="not exist")return!1;const f=typeof r;switch(f==="boolean"||r==="false"||r==="true"?h=h==="true"||h===!0||h===1||h==="1":f==="number"?h=parseFloat(h):f==="object"&&(r=JSON.stringify(r)),c){case"==":return h=h.toString(),r=r.toString(),r==="1"&&(r="true"),h==="1"&&(h="true"),r==="0"&&(r="false"),h==="0"&&(h="false"),h!==r;case"!=":return h=h.toString(),r=r.toString(),r==="1"&&(r="true"),h==="1"&&(h="true"),r==="0"&&(r="false"),h==="0"&&(h="false"),h===r;case">=":return r<h;case"<=":return r>h;case">":return r<=h;case"<":return r>=h;case"consist":return h=h.toString(),r=r.toString(),!r.toString().includes(h);case"not consist":return h=h.toString(),r=r.toString(),r.toString().includes(h);case"exist":return r==="null";case"not exist":return r!=="null";default:return console.log(`Unknown visibility condition for ${i}: ${c}`),!1}}else return c==="not exist"},getUserGroups:()=>this.props.userGroups}}changeFilter(e,i,r,a,l,c){var h,f;e||=this.props.activeView,(f=(h=this.refViews[e])==null?void 0:h.onCommand)==null||f.call(h,"changeFilter",{filter:i,showEffect:r,showDuration:a,hideEffect:l,hideDuration:c})}onCommand=(e,i,r)=>{var a,l;(l=(a=this.refViews[e])==null?void 0:a.onCommand)==null||l.call(a,i,r)};showMessage(e,i,r,a,l){typeof r=="number"&&(l=a,a=r,r=null),typeof i=="function"?(l=i,i=null):typeof r=="function"?(l=r,r=null):typeof a=="function"&&(l=a,a=null),this.setState({showMessage:{message:e,title:i,icon:r,width:a,callback:l}})}renderMessageDialog(){return this.state.showMessage?C.jsxs(E.Dialog,{open:!0,onClose:()=>{const e=this.state.showMessage.callback;typeof e=="function"&&e(!1),this.setState({showMessage:null})},maxWidth:"md",children:[C.jsx(E.DialogTitle,{children:this.state.showMessage.title||z.I18n.t("Message")}),C.jsxs(E.DialogContent,{children:[this.state.showMessage.icon==="alert"?C.jsx(lt.Warning,{}):null,this.state.showMessage.message]}),C.jsxs(E.DialogActions,{children:[C.jsx(E.Button,{variant:"contained",onClick:()=>{const e=this.state.showMessage.callback;typeof e=="function"&&e(!0),this.setState({showMessage:null})},color:"primary",startIcon:C.jsx(lt.Check,{}),children:z.I18n.t("Ok")}),this.state.showMessage.callback?C.jsx(E.Button,{variant:"contained",color:"grey",onClick:()=>{const e=this.state.showMessage.callback;typeof e=="function"&&e(!1),this.setState({showMessage:null})},startIcon:C.jsx(lt.Close,{}),children:z.I18n.t("Cancel")}):null]})]},"__messageDialog"):null}createConnection(){return{namespace:this.props.adapterId,logError:e=>{console.error(`Error: ${e}`),this.props.socket.log(e,"error")},getIsConnected:()=>this.props.socket.isConnected(),getGroups:(e,i,r)=>(typeof e=="function"&&(r=e,e=null,i=!1),typeof e=="boolean"&&(r=i,i=e,e=null),typeof i=="function"&&(r=i,i=!1),e||="",this.readGroups(e,!i).then(a=>r(a)).catch(a=>r(a))),getConfig:(e,i)=>(typeof e=="function"&&(i=e,e=!1),this.props.socket.getSystemConfig(!e).then(r=>i(null,r.common)).catch(r=>i(r))),getObjects:async e=>{const i=[];return i.push(new Promise((r,a)=>this.props.socket.getRawSocket().emit("getObjects",(l,c)=>{if(l){a(l);return}r(c)}))),i.push(this.props.socket.getEnums(void 0,!e)),i.push(this.props.socket.getObjectViewSystem("instance","system.adapter.","system.adapter.香")),i.push(this.props.socket.getObjectViewSystem("chart","","香")),i.push(this.props.socket.getObjectViewSystem("channel","","香")),i.push(this.props.socket.getObjectViewSystem("device","","香")),Promise.all(i).then(r=>{var c,h;const a=r[0]||{};for(let f=1;f<r.length;f++)r[f]&&Object.assign(a,r[f]);const l=`system.adapter.${this.props.adapterName}.${this.props.instance}`;return(h=(c=a[l])==null?void 0:c.native)!=null&&h.defaultFileMode&&(this.defaultMode=a[l].native.defaultFileMode),a})},getLoggedUser:e=>this.props.socket.getCurrentUser().then(i=>e(this.props.socket.isSecure,i)),subscribe:(e,i)=>{this.subscribe(e),i==null||i()},unsubscribe:(e,i)=>{this.unsubscribe(e),i==null||i()},authenticate:(e,i,r)=>{this._authRunning=!0,e!==void 0&&(this._authInfo={user:e,hash:i+r,salt:r})},getStates:(e,i)=>{if(!(e!=null&&e.length)){i==null||i(null,{});return}this.props.socket.getForeignStates(e).then(r=>i(null,r)).catch(r=>i(r||"Authentication required"))},setState:(e,i,r)=>{if(!e){r==null||r(new Error("No id"));return}this.props.socket.setState(e,i).then(()=>r==null?void 0:r()).catch(a=>r==null?void 0:r(a))},sendTo:(e,i,r,a)=>{this.props.socket.sendTo(e,i,r).then(l=>a==null?void 0:a(l)).catch(l=>a==null?void 0:a(l))},setReloadTimeout:()=>{},setReconnectInterval:()=>{},getUser:()=>this.userName,sendCommand:(e,i,r,a)=>this.props.socket.setState(this.ID_CONTROL_INSTANCE,{val:e||"notdefined",ack:!0}).then(()=>this.props.socket.setState(this.ID_CONTROL_DATA,{val:r,ack:!0})).then(()=>this.props.socket.setState(this.ID_CONTROL_COMMAND,{val:i,ack:a===void 0?!0:a})).catch(l=>console.error(`Cannot set state: ${l}`)),readFile:(e,i)=>{let r=this.conn.namespace;if(e[0]==="/"){const a=e.split("/");r=a[1],a.splice(0,2),e=a.join("/")}return Vt(this.props.socket,r,e,!0).then(a=>{setTimeout(()=>i(null,a.file,e,a.mimeType),0)}).catch(a=>i(a))},getHistory:(e,i,r)=>{i||={},i.timeout||=2e3;let a=setTimeout(()=>{a=null,r(new Error("timeout"))},i.timeout);this.props.socket.getHistory(e,i).then(l=>{a&&(clearTimeout(a),a=null),r(null,l)}).catch(l=>{a&&(clearTimeout(a),a=null),r(l)})},getHttp:(e,i)=>this.props.socket.getRawSocket().emit("httpGet",e,r=>i==null?void 0:i(r)),_socket:{emit:(e,i,r)=>{let a;e==="getObject"?a=this.props.socket.getObject(i):e==="getState"?a=this.props.socket.getState(i):e==="getStates"&&(a=this.props.socket.getStates(i)),a instanceof Promise?a.then(l=>r==null?void 0:r(null,l)).catch(l=>r==null?void 0:r(l)):console.warn(`Unknown command in _socket.emit: ${e}`)}}}}registerViewRef=(e,i,r)=>{this.refViews[e]&&this.refViews[e].ref===i?console.error(`Someone tries to register same ref for view ${e}`):(this.refViews[e]&&console.error(`Someone tries to register new ref for view ${e}`),this.refViews[e]={ref:i,onCommand:r})};unregisterViewRef=(e,i)=>{this.refViews[e]&&this.refViews[e].ref===i?delete this.refViews[e]:this.refViews[e]&&(this.refViews[e]&&console.error(`Someone tries to unregister new ref for view ${e}`),delete this.refViews[e])};getViewRef=e=>{var i;return(i=this.refViews[e])==null?void 0:i.ref};static findNearestResolution(e,i){let r,a;i!=null?(r=e,a=i,e=!1):(r=window.document.body.clientWidth,a=window.document.body.clientHeight);let l=null;const c=[];let h=1e4;const{visProject:f}=B.getState();if(Object.keys(f).forEach(_=>{if(_!=="___settings"&&f[_].settings&&f[_].settings.useAsDefault){const w=parseInt(f[_].settings.sizex,10);Math.abs(w-r)/w<.2&&c.push(_)}}),c.forEach(_=>{if(_!=="___settings"&&f[_].settings){const w=parseInt(f[_].settings.sizey,10);Math.abs(w-a)<h&&(l=_,h=Math.abs(w-a))}}),!l){const _=r/a;h=1e4,Object.keys(f).forEach(w=>{var g;if(w!=="___settings"&&((g=f[w].settings)!=null&&g.useAsDefault)){const W=parseInt(f[w].settings.sizex,10),k=parseInt(f[w].settings.sizey,10);k&&Math.abs(_-W/k)<h&&(l=w,h=Math.abs(_-W/k))}})}return!l&&e&&(l=Object.keys(f).find(_=>{var w;return _!=="___settings"&&((w=f[_].settings)==null?void 0:w.useAsDefault)}),l||=Object.keys(f).find(_=>_!=="___settings")),l}async readGroups(e,i){const r=await this.props.socket.getGroups(!i),a={};if(e){const l=`system.group.${e}`;r.filter(c=>c._id.startsWith(`${l}.`)||c._id===l).forEach(c=>a[c._id]=c)}else r.forEach(l=>a[l._id]=l);return a}initCanObjects(){return new this.can.Map({"nothing_selected.val":null})}_setValue(e,i){const r=this.canStates.attr(`${e}.val`);this.onStateChange(e,{val:i,ack:!1}),!e.startsWith("local_")&&this.props.socket.setState(e,{val:i,ack:!1}).catch(a=>{console.error(`Cannot set ${e} with "${i}: ${a}`),r===void 0?(this.canStates.removeAttr(`${e}.val`),this.canStates.removeAttr(`${e}.q`),this.canStates.removeAttr(`${e}.from`),this.canStates.removeAttr(`${e}.ts`),this.canStates.removeAttr(`${e}.lc`),this.canStates.removeAttr(`${e}.ack`)):this.canStates.attr(`${e}.val`,r)})}setValue=(e,i)=>{if(!e){console.log(`ID is null for val=${JSON.stringify(i)}`);return}this.statesDebounce[e]?this.statesDebounce[e].state=i:(this._setValue(e,i),this.statesDebounce[e]={timeout:setTimeout(()=>{this.statesDebounce[e]&&(this.statesDebounce[e].state!==null&&this.statesDebounce[e].state!==void 0&&this._setValue(e,this.statesDebounce[e].state),delete this.statesDebounce[e])},this.statesDebounceTime,e),state:null})};static async loadScriptsOfOneWidgetSet(e){for(const{oldScript:i,newScript:r}of e)try{r.appendChild(document.createTextNode(i.innerHTML)),i.parentNode.replaceChild(r,i),await new Promise((a,l)=>{r.onerror=l,r.onload=a})}catch(a){console.error(`Cannot load script "${r.src}": ${JSON.stringify(a)}`)}}static loadedSources=[];static async setInnerHTML(e,i,r){var c,h,f;e.innerHTML=i;const a=Array.from(e.querySelectorAll("script")),l={};for(let _=0;_<a.length;_++){const w=a[_],g=w.getAttribute("src");if(g&&X.loadedSources.includes(g))continue;X.loadedSources.push(g);const W=document.createElement("script");let k="default";if(Array.from(w.attributes).forEach(x=>{try{x.name==="data-widgetset"?k=x.value:W.setAttribute(x.name,x.value)}catch(be){console.error(`WTF?? in ${x.ownerElement.id}: ${be}`)}}),!r||k==="default"||r.includes(k))if(g)l[k]||=[],l[k].push({newScript:W,oldScript:w});else{let x=setTimeout(be=>{console.error(`Cannot load ${be}`)},500,((c=w.attributes.id)==null?void 0:c.value)||((h=w.attributes["data-widgetset"])==null?void 0:h.value));try{W.appendChild(document.createTextNode(w.innerHTML)),w.parentNode.replaceChild(W,w),clearTimeout(x),x=null}catch(be){console.error(`Cannot set inner HTML of ${(f=w.text)==null?void 0:f.substring(0,500)}: ${be}`)}}else console.log(`Skip script "${k}" ${g||"inline"}`)}await Promise.all(Object.keys(l).map(_=>X.loadScriptsOfOneWidgetSet(l[_])))}loadEditWords(){return this.props.runtime?Promise.resolve():new Promise(e=>{const i=document.createElement("script");i.setAttribute("src","lib/js/visEditWords.js"),i.onload=e,window.document.head.appendChild(i)})}async loadWidgets(){var e,i;try{const a=await(await fetch("widgets.html")).text(),l=document.createElement("div");document.body.appendChild(l),await X.setInnerHTML(l,a,this.props.runtime&&Yi.getUsedWidgetSets(B.getState().visProject)),(i=(e=this.props).onLoaded)==null||i.call(e)}catch(r){console.error(`Cannot load widgets: ${r}`),console.error(`Cannot load widgets: ${JSON.stringify(r.stack)}`)}}updateWidget(e,i,r,a,l,c){this.widgetChangeHandlers[i]&&this.widgetChangeHandlers[i](r,a,l,c)}registerChangeHandler=(e,i)=>{this.props.editMode&&this.widgetChangeHandlers[e]&&console.error("Someone installs handler without to remove it!"),this.widgetChangeHandlers[e]=i};unregisterChangeHandler=(e,i)=>{this.widgetChangeHandlers[e]===i&&delete this.widgetChangeHandlers[e]};onUserCommand(e,i,r){var l,c;const a=(window.localStorage.getItem("visInstance")||"").replace(/^"/,"").replace(/"$/,"");if(e==null?e="":e=e.toString(),e&&typeof e=="string"&&(e=e.replace(/^"/,"").replace(/"$/,"")),!e||e!==a&&e!=="FFFFFFFF"&&!e.includes("*"))return!1;if(this.props.editMode&&i!=="tts"&&i!=="playSound")return i!=="changedView"&&window.alert(z.I18n.t("Received user command: %s",JSON.stringify({instance:e,command:i,data:r}))),!0;switch(i){case"alert":{const[h,f,_]=r.split(";");this.showMessage(h,f,_);break}case"changedView":return!1;case"changeView":{const h=r.split("/");if(!B.getState().visProject[h[0]]&&h[1]){const f=h.shift();if(f!==this.props.projectName){const w=h.join("/");return window.location.search.includes("runtime=")?document.location.href=`./?${f}&runtime=true#${w}`:document.location.href=`./?${f}#${w}`,!0}const _=h.shift();this.changeView(_,h.join("/"))}else{const f=h.shift();this.changeView(f,h.join("/"))}break}case"refresh":case"reload":setTimeout(()=>window.location.reload(),1);break;case"dialog":case"dialogOpen":{const{visProject:h}=B.getState(),f=window.document.getElementById(r)||window.document.querySelector(`[data-dialog-name="${r}"]`),_=Object.keys(h).find(w=>{var g;return(g=h[w].widgets)==null?void 0:g[r]});_&&((l=this.refViews[_])!=null&&l.onCommand)&&this.refViews[_].onCommand("openDialog",r),f!=null&&f._showDialog?f._showDialog(!0):window.jQuery(`#${r}_dialog`).dialog("open");break}case"dialogClose":{const{visProject:h}=B.getState(),f=window.document.getElementById(r)||window.document.querySelector(`[data-dialog-name="${r}"]`),_=Object.keys(h).find(w=>{var g;return(g=h[w].widgets)==null?void 0:g[r]});_&&((c=this.refViews[_])!=null&&c.onCommand)&&this.refViews[_].onCommand("closeDialog",r),f!=null&&f._showDialog?f._showDialog(!1):window.jQuery(`#${r}_dialog`).dialog("close");break}case"popup":window.open(r);break;case"playSound":setTimeout(()=>{var f;let h;if(r!=null&&r.match(/^http(s)?:\/\//)?h=r:h=`${window.location.protocol}//${window.location.hostname}:${window.location.port}${r}`,h+=`?${Date.now()}`,(f=this.refSound)!=null&&f.current)this.refSound.current.setAttribute("src",h),this.refSound.current.setAttribute("muted",!1),this.refSound.current.play();else if(typeof Audio<"u")new Audio(h).play().catch(w=>console.error(`Cannot play sound: ${w}`));else{let _=window.document.getElementById("external_sound");_||(_=document.createElement("audio"),_.setAttribute("id","external_sound"),window.document.body.appendChild(_)),_.setAttribute("src",h),_.play()}},1);break;case"tts":typeof window.app<"u"&&window.app.tts(r);break;default:this.conn.logError(`unknown external command ${i}`)}return!1}onStateChange=(e,i)=>{var a,l,c,h;if(!e||i===null||typeof i!="object")return;if(e===this.ID_CONTROL_COMMAND){if(i.ack||i.ts&&Date.now()-i.ts>5e3)return;let f;if(i.val&&typeof i.val=="string"&&i.val[0]==="{"&&i.val[i.val.length-1]==="}")try{f=JSON.parse(i.val)}catch{console.warn(`Command seems to be an object, but cannot parse it: ${i.val}`)}f!=null&&f.instance?this.onUserCommand(f.instance,f.command,f.data)&&this.props.socket.setState(e,{val:"",ack:!0}).catch(_=>console.error(`Cannot reset ${e}: ${_}`)):this.onUserCommand(this._cmdInstance,i.val,this._cmdData)&&this.props.socket.setState(e,{val:"",ack:!0}).catch(_=>console.error(`Cannot reset ${e}: ${_}`));return}if(e===this.ID_CONTROL_DATA){if(i.ack||this._cmdData!==void 0&&i.ts&&Date.now()-i.ts>5e3)return;this._cmdData=i.val;return}if(e===this.ID_CONTROL_INSTANCE){if(i.ack||this._cmdInstance!==void 0&&i.ts&&Date.now()-i.ts>5e3)return;this._cmdInstance=i.val;return}const r={};r[`${e}.val`]=i.val,i.ts!==void 0&&(r[`${e}.ts`]=i.ts),i.ack!==void 0&&(r[`${e}.ack`]=i.ack),i.lc!==void 0&&(r[`${e}.lc`]=i.lc),i.q!==void 0&&i.q!==null&&(r[`${e}.q`]=i.q);try{this.canStates.attr(r)}catch(f){this.props.socket.log(`Error: can't create states object for ${e}(${f}): ${JSON.stringify(f.stack)}`,"error")}(a=this.linkContext.visibility[e])==null||a.forEach(f=>this.updateWidget(f.view,f.widget,"visibility",f)),(l=this.linkContext.signals[e])==null||l.forEach(f=>this.updateWidget(f.view,f.widget,"signal",f,e)),(c=this.linkContext.lastChanges[e])==null||c.forEach(f=>this.updateWidget(f.view,f.widget,"lastChange",f,e)),(h=this.linkContext.bindings[e])==null||h.forEach(f=>this.updateWidget(f.view,f.widget,"binding",f,e)),this.onChangeCallbacks.forEach(f=>{try{f.callback(f.arg,e,i.val,i.ack,i.ts)}catch(_){this.props.socket.log(`Error: can't update states object for ${e}(${_}): ${JSON.stringify(_.stack)}`,"error")}})};subscribe=e=>{Array.isArray(e)||(e=[e]),e.forEach(i=>{this.subscribes[i]?this.subscribes[i]++:(this.subscribes[i]=1,console.log(`[${new Date().toISOString()}] +SUBSCRIBE: ${i}`),this.createCanState(i),i.startsWith("local_")||this.props.socket.subscribeState(i,this.onStateChange))})};createCanState(e){const i=`${e}.val`;if(this.canStates[i]===void 0||this.canStates[i]===null){const r=Date.now(),a={};e.startsWith("local_")?a[i]=Qr(e):(a[i]="null",a[`${e}.ts`]=r,a[`${e}.ack`]=!1,a[`${e}.lc`]=r,a[`${e}.q`]=0);try{this.canStates.attr(a)}catch(l){this.props.socket.log(`Error: can't create states object for ${e}(${l}): ${JSON.stringify(l.stack)}`,"error")}}}unsubscribe=e=>{Array.isArray(e)||(e=[e]),e.forEach(i=>{this.subscribes[i]&&(this.subscribes[i]--,this.subscribes[i]||(console.log(`[${new Date().toISOString()}] -UNSUBSCRIBE: ${i}`),i.startsWith("local_")||this.props.socket.unsubscribeState(i,this.onStateChange),delete this.subscribes[i]))})};updateCustomScripts(){const{visProject:e}=B.getState();if(e){if(this.props.editMode){if(this.scripts){this.scripts=null;let i=window.document.getElementById("#vis_user_scripts");i&&(i.remove(),i=null)}}else if(e.___settings&&this.scripts!==(e.___settings.scripts||"")){this.scripts=e.___settings.scripts||"";let i=window.document.getElementById("#vis_user_scripts");if(i)i.innerHTML=this.scripts;else{i=window.document.createElement("script"),i.setAttribute("id","vis_user_scripts"),i.innerHTML=`try {
${this.scripts}
} catch (error) {
console.error('Cannot execute user script: ' + error);
}`;try{window.document.head.appendChild(i)}catch(r){console.error(`Cannot execute user script: ${r}`)}}}}}static applyUserStyles(e,i){let r=window.document.getElementById(e);if(r)r.innerHTML=i;else if(r=window.document.createElement("style"),r.setAttribute("id",e),r.innerHTML=i,e==="vis_common_user"){const a=window.document.getElementById("vis_user");a?window.document.body.insertBefore(r,a):window.document.body.appendChild(r)}else e==="vis_user"&&window.document.body.appendChild(r)}updateCommonCss(){(!this.visCommonCssLoaded||this.props.visCommonCss&&this.visCommonCssLoaded!==this.props.visCommonCss)&&(this.visCommonCssLoaded=this.props.visCommonCss||!0,this.props.visCommonCss?X.applyUserStyles("vis_common_user",this.visCommonCssLoaded||""):Vt(this.props.socket,this.props.adapterId,"vis-common-user.css").then(e=>{this.visCommonCssLoaded=e||!0,X.applyUserStyles("vis_common_user",e||"")}).catch(e=>console.warn(`Common user CSS not found: ${e}`)))}updateUserCss(){(!this.visUserCssLoaded||this.props.visUserCss&&this.visUserCssLoaded!==this.props.visUserCss)&&(this.visUserCssLoaded=this.props.visUserCss||!0,this.props.visUserCss?X.applyUserStyles("vis_user",this.visUserCssLoaded||""):Vt(this.props.socket,`${this.props.adapterName}.${this.props.instance}`,`${this.props.projectName}/vis-user.css`).then(e=>{this.visUserCssLoaded=e||!0,X.applyUserStyles("vis_user",e||"")}).catch(e=>console.warn(`User CSS "${this.props.projectName}/vis-user.css" not found: ${e}`)))}changeView=(e,i)=>{this.props.editMode?window.alert(z.I18n.t("Ignored in edit mode")):window.location.hash=X.buildPath(e,i)};render(){var r;if(!this.state.ready||this.props.widgetsLoaded<2)return this.props.renderAlertDialog&&this.props.runtime?C.jsxs(C.Fragment,{children:[C.jsx(E.LinearProgress,{}),this.props.renderAlertDialog()]}):C.jsx(E.LinearProgress,{});const{visProject:e}=B.getState();this.vis.editMode=this.props.editMode,this.vis.activeView=this.props.activeView,this.vis.views=e,this.updateCustomScripts(),this.updateCommonCss(),this.updateUserCss(),this.lastChangedView!==this.props.activeView&&!this.props.editMode&&(this.lastChangedView=this.props.activeView,window.vis.conn.sendCommand(window.vis.instance,"changedView",this.props.projectName?`${this.props.projectName}/${this.props.activeView}`:this.props.activeView),(r=window.jQuery)==null||r.call(window,window).trigger("viewChanged",this.props.activeView)),this.visContext={$$:window.$$,VisView:Kr,activeView:this.props.activeView,adapterName:this.props.adapterName,allWidgets:this.allWidgets,askAboutInclude:this.props.askAboutInclude,buildLegacyStructures:this.buildLegacyStructures,can:this.can,canStates:this.canStates,changeProject:this.props.changeProject,changeView:this.changeView,dateFormat:this.vis.dateFormat,disableInteraction:this.props.disableInteraction,editModeComponentStyle:this.props.editModeComponentStyle,formatUtils:this.formatUtils,instance:this.props.instance,jQuery:window.jQuery,lang:this.props.lang,linkContext:this.linkContext,lockDragging:this.props.lockDragging,moment:S,onCommand:this.onCommand,onIgnoreMouseEvents:this.props.runtime?null:this.props.onIgnoreMouseEvents,onWidgetsChanged:this.props.runtime?null:this.props.onWidgetsChanged,projectName:this.props.projectName,registerEditorCallback:this.props.runtime?null:this.props.registerEditorCallback,runtime:this.props.runtime,setSelectedGroup:this.props.runtime?null:this.props.setSelectedGroup,setSelectedWidgets:this.props.runtime?null:this.props.setSelectedWidgets,setTimeInterval:this.setTimeInterval,setTimeStart:this.setTimeStart,setValue:this.setValue,showWidgetNames:this.props.showWidgetNames,socket:this.props.socket,systemConfig:this.systemConfig,theme:this.props.theme,themeName:this.props.themeName,themeType:this.props.themeType,timeInterval:this.state.timeInterval,timeStart:this.state.timeStart,toggleTheme:this.props.toggleTheme,user:this.userName,userGroups:this.props.userGroups,views:e,widgetHint:this.props.widgetHint};const i=Object.keys(e).map(a=>{var l;return a!=="___settings"&&(a===this.props.activeView||(l=e[a].settings)!=null&&l.alwaysRender&&!this.props.selectedGroup||!this.props.editMode&&this.state.legacyRequestedViews.includes(a))?C.jsx(Kr,{theme:this.props.theme,context:this.visContext,activeView:this.props.activeView,editMode:this.props.editMode,viewsActiveFilter:this.viewsActiveFilter,selectedGroup:this.props.runtime?null:this.props.selectedGroup,selectedWidgets:this.props.runtime?null:this.props.selectedWidgets,view:a},a):null});return this.refSound&&i.push(C.jsx("audio",{ref:this.refSound,id:"external_sound",autoPlay:!0,muted:!0},"__audio_145")),this.props.renderAlertDialog&&this.props.runtime&&i.push(this.props.renderAlertDialog()),i.push(this.renderMessageDialog()),i}}const B_="Message",Z_="Ok",q_="Cancel",Q_="Use view",K_="Cannot use recursive views",X_="View not defined",em="View in widget",tm="No one project yet exists.",sm={'Unknown widget type "%s"':'Unknown widget type "%s"',Message:B_,Ok:Z_,Cancel:q_,"Received user command: %s":"Received user command: %s",vis_2_widgets_basic_contains_view:Q_,vis_2_widgets_basic_cannot_recursive:K_,vis_2_widgets_basic_view_not_defined:X_,vis_2_widgets_basic_view_in_widget:em,"Create new project":"Create new project","Project name":"Project name",'Project "%s" does not exist':'Project "%s" does not exist',welcome_message:tm,"Select vis-2 project":'Select "vis-2" project','Create or import new "vis-2" project':'Create or import new "vis-2" project',"Load project file...":"Loading project file...","Load widgets...":"Loading widgets...","Loading objects...":"Loading objects..."},im="Stornieren",rm="Nachricht",nm="OK",am="Rekursive Ansichten können nicht verwendet werden",om="Ansicht verwenden",lm="Im Widget anzeigen",dm="Ansicht nicht definiert",um="Es existiert noch kein Projekt.",cm={"Create new project":"Neues Projekt erstellen",Cancel:im,Message:rm,Ok:nm,"Received user command: %s":"Benutzerbefehl erhalten: %s",'Unknown widget type "%s"':"Unbekannter Widget-Typ „%s“",vis_2_widgets_basic_cannot_recursive:am,vis_2_widgets_basic_contains_view:om,vis_2_widgets_basic_view_in_widget:lm,vis_2_widgets_basic_view_not_defined:dm,"Project name":"Projektname",'Project "%s" does not exist':"Projekt „%s“ existiert nicht",welcome_message:um,"Select vis-2 project":"Das Projekt „vis-2“ auswählen",'Create or import new "vis-2" project':"Neues „vis-2“-Projekt erstellen oder importieren","Load project file...":"Projektdatei wird geladen...","Load widgets...":"Widgets werden geladen...","Loading objects...":"Objekte werden geladen..."},hm="Отмена",fm="Сообщение",_m="Хорошо",mm="Невозможно использовать рекурсивные представления",gm="Использовать вид",wm="Посмотреть в виджете",pm="Вид не определен",ym="Ни одного проекта пока не существует.",vm={"Create new project":"Создать новый проект",Cancel:hm,Message:fm,Ok:_m,"Received user command: %s":"Полученная пользовательская команда: %s",'Unknown widget type "%s"':'Неизвестный тип виджета "%s"',vis_2_widgets_basic_cannot_recursive:mm,vis_2_widgets_basic_contains_view:gm,vis_2_widgets_basic_view_in_widget:wm,vis_2_widgets_basic_view_not_defined:pm,"Project name":"Название проекта",'Project "%s" does not exist':'Проект "%s" не существует',welcome_message:ym,"Select vis-2 project":'Выбрать проект "vis-2"','Create or import new "vis-2" project':'Создать или импортировать новый проект "vis-2"',"Load project file...":"Загрузка файла проекта...","Load widgets...":"Загрузка виджетов...","Loading objects...":"Загрузка объектов..."},km="Cancelar",Sm="Mensagem",Mm="OK",Dm="Não é possível usar exibições recursivas",bm="Usar visualização",Ym="Ver no widget",Tm="Visualização não definida",Om="Nenhum projeto ainda existe.",Cm={"Create new project":"Criar novo projeto",Cancel:km,Message:Sm,Ok:Mm,"Received user command: %s":"Comando de usuário recebido: %s",'Unknown widget type "%s"':'Tipo de widget desconhecido "%s"',vis_2_widgets_basic_cannot_recursive:Dm,vis_2_widgets_basic_contains_view:bm,vis_2_widgets_basic_view_in_widget:Ym,vis_2_widgets_basic_view_not_defined:Tm,"Project name":"Nome do Projeto",'Project "%s" does not exist':'O projeto "%s" não existe',welcome_message:Om,"Select vis-2 project":'Selecione o projeto "vis-2"','Create or import new "vis-2" project':'Crie ou importe um novo projeto "vis-2"',"Load project file...":"Carregando arquivo do projeto...","Load widgets...":"Carregando widgets...","Loading objects...":"Carregando objetos..."},Lm="Annuleren",jm="Bericht",xm="OK",Pm="Kan geen recursieve weergaven gebruiken",Nm="Gebruik weergave",Wm="Bekijk in widget",Im="Uitzicht niet gedefinieerd",Rm="Er is nog geen enkel project.",Fm={"Create new project":"Maak een nieuw project aan",Cancel:Lm,Message:jm,Ok:xm,"Received user command: %s":"Gebruikersopdracht ontvangen: %s",'Unknown widget type "%s"':'Onbekend widgettype "%s"',vis_2_widgets_basic_cannot_recursive:Pm,vis_2_widgets_basic_contains_view:Nm,vis_2_widgets_basic_view_in_widget:Wm,vis_2_widgets_basic_view_not_defined:Im,"Project name":"Naam van het project",'Project "%s" does not exist':'Project "%s" bestaat niet',welcome_message:Rm,"Select vis-2 project":'Selecteer het "vis-2"-project','Create or import new "vis-2" project':'Creëer of importeer een nieuw "vis-2" project',"Load project file...":"Projectbestand laden...","Load widgets...":"Widgets laden...","Loading objects...":"Objecten laden..."},$m="Annuler",Am="Message",Um="D'accord",Em="Impossible d'utiliser les vues récursives",Hm="Utiliser la vue",Vm="Afficher dans le widget",zm="Vue non définie",Gm="Aucun projet n'existe encore.",Jm={"Create new project":"Créer un nouveau projet",Cancel:$m,Message:Am,Ok:Um,"Received user command: %s":"Commande utilisateur reçue : %s",'Unknown widget type "%s"':'Type de widget inconnu "%s"',vis_2_widgets_basic_cannot_recursive:Em,vis_2_widgets_basic_contains_view:Hm,vis_2_widgets_basic_view_in_widget:Vm,vis_2_widgets_basic_view_not_defined:zm,"Project name":"Nom du projet",'Project "%s" does not exist':`Le projet "%s" n'existe pas`,welcome_message:Gm,"Select vis-2 project":'Sélectionnez le projet "vis-2"','Create or import new "vis-2" project':'Créer ou importer un nouveau projet "vis-2"',"Load project file...":"Chargement du fichier de projet...","Load widgets...":"Chargement des widgets...","Loading objects...":"Chargement d'objets..."},Bm="Annulla",Zm="Messaggio",qm="OK",Qm="Impossibile utilizzare viste ricorsive",Km="Usa vista",Xm="Visualizza nel widget",eg="Vista non definita",tg="Non esiste ancora un progetto.",sg={"Create new project":"Crea nuovo progetto",Cancel:Bm,Message:Zm,Ok:qm,"Received user command: %s":"Comando utente ricevuto: %s",'Unknown widget type "%s"':'Tipo di widget sconosciuto "%s"',vis_2_widgets_basic_cannot_recursive:Qm,vis_2_widgets_basic_contains_view:Km,vis_2_widgets_basic_view_in_widget:Xm,vis_2_widgets_basic_view_not_defined:eg,"Project name":"Nome del progetto",'Project "%s" does not exist':'Il progetto "%s" non esiste',welcome_message:tg,"Select vis-2 project":'Seleziona il progetto "vis-2".','Create or import new "vis-2" project':'Crea o importa un nuovo progetto "vis-2".',"Load project file...":"Caricamento file di progetto...","Load widgets...":"Caricamento widget...","Loading objects...":"Caricamento oggetti..."},ig="Cancelar",rg="Mensaje",ng="De acuerdo",ag="No se pueden usar vistas recursivas",og="Usar vista",lg="Ver en widget",dg="Vista no definida",ug="Aún no existe ningún proyecto.",cg={"Create new project":"Crear nuevo proyecto",Cancel:ig,Message:rg,Ok:ng,"Received user command: %s":"Comando de usuario recibido: %s",'Unknown widget type "%s"':'Tipo de widget desconocido "%s"',vis_2_widgets_basic_cannot_recursive:ag,vis_2_widgets_basic_contains_view:og,vis_2_widgets_basic_view_in_widget:lg,vis_2_widgets_basic_view_not_defined:dg,"Project name":"Nombre del proyecto",'Project "%s" does not exist':'El proyecto "%s" no existe',welcome_message:ug,"Select vis-2 project":'Seleccione el proyecto "vis-2"','Create or import new "vis-2" project':'Crear o importar un nuevo proyecto "vis-2"',"Load project file...":"Cargando archivo de proyecto...","Load widgets...":"Cargando widgets...","Loading objects...":"Cargando objetos..."},hg="Anulować",fg="Wiadomość",_g="OK",mg="Nie można używać widoków rekurencyjnych",gg="Użyj widoku",wg="Zobacz w widgecie",pg="Widok niezdefiniowany",yg="Żaden projekt jeszcze nie istnieje.",vg={"Create new project":"Utwórz nowy projekt",Cancel:hg,Message:fg,Ok:_g,"Received user command: %s":"Otrzymano polecenie użytkownika: %s",'Unknown widget type "%s"':"Nieznany typ widżetu „%s”",vis_2_widgets_basic_cannot_recursive:mg,vis_2_widgets_basic_contains_view:gg,vis_2_widgets_basic_view_in_widget:wg,vis_2_widgets_basic_view_not_defined:pg,"Project name":"Nazwa Projektu",'Project "%s" does not exist':'Projekt "%s" nie istnieje',welcome_message:yg,"Select vis-2 project":"Wybierz projekt „vis-2”.",'Create or import new "vis-2" project':"Utwórz lub zaimportuj nowy projekt „vis-2”.","Load project file...":"Ładowanie pliku projektu...","Load widgets...":"Ładowanie widżetów...","Loading objects...":"Ładowanie obiektów..."},kg="Скасувати",Sg="повідомлення",Mg="В порядку",Dg="Не можна використовувати рекурсивні перегляди",bg="Використовуйте перегляд",Yg="Переглянути у віджеті",Tg="Перегляд не визначено",Og="Жодного проекту ще немає.",Cg={"Create new project":"Створити новий проект",Cancel:kg,Message:Sg,Ok:Mg,"Received user command: %s":"Отримано команду користувача: %s",'Unknown widget type "%s"':'Невідомий тип віджета "%s"',vis_2_widgets_basic_cannot_recursive:Dg,vis_2_widgets_basic_contains_view:bg,vis_2_widgets_basic_view_in_widget:Yg,vis_2_widgets_basic_view_not_defined:Tg,"Project name":"Назва проекту",'Project "%s" does not exist':'Проект "%s" не існує',welcome_message:Og,"Select vis-2 project":"Виберіть проект «vis-2».",'Create or import new "vis-2" project':'Створіть або імпортуйте новий проект "vis-2".',"Load project file...":"Завантаження файлу проекту...","Load widgets...":"Завантаження віджетів...","Loading objects...":"Завантаження об'єктів..."},Lg="取消",jg="信息",xg="好的",Pg="不能使用递归视图",Ng="使用视图",Wg="在小部件中查看",Ig="查看未定义",Rg="目前还没有一个项目存在。",Fg={"Create new project":"创建新项目",Cancel:Lg,Message:jg,Ok:xg,"Received user command: %s":"收到用户命令:%s",'Unknown widget type "%s"':"未知的小部件类型“%s”",vis_2_widgets_basic_cannot_recursive:Pg,vis_2_widgets_basic_contains_view:Ng,vis_2_widgets_basic_view_in_widget:Wg,vis_2_widgets_basic_view_not_defined:Ig,"Project name":"项目名",'Project "%s" does not exist':"项目“%s”不存在",welcome_message:Rg,"Select vis-2 project":"选择“vis-2”项目",'Create or import new "vis-2" project':"创建或导入新的“vis-2”项目","Load project file...":"正在加载项目文件...","Load widgets...":"正在加载小部件...","Loading objects...":"正在加载对象..."},$g={editModeComponentStyle:{zIndex:1002}};class Ce extends z.GenericApp{static WIDGETS_LOADING_STEP_NOT_STARTED=0;static WIDGETS_LOADING_STEP_HTML_LOADED=1;static WIDGETS_LOADING_STEP_ALL_LOADED=2;alert;adapterId;checkTimeout;resolutionTimer;lastProjectJSONfile;subscribedProject;changeTimer;needRestart;lastUploadedState;checkForUpdates;getNewWidgetId;getNewGroupId;changeProject;setSelectedWidgets;setSelectedGroup;onWidgetsChanged;registerCallback;onIgnoreMouseEvents;askAboutInclude;showLegacyFileSelector;initState;setLoadingText;constructor(e){const i={...e};i.translations={en:sm,de:cm,ru:vm,pt:Cm,nl:Fm,fr:Jm,it:sg,es:cg,pl:vg,uk:Cg,"zh-cn":Fg},i.Connection=z.LegacyConnection,window.disableDataReporting||(i.sentryDSN=window.sentryDSN),window.location.port==="3000"&&(i.socket={port:"8082"}),window.socketUrl&&window.socketUrl.startsWith(":")&&(window.socketUrl=`${window.location.protocol}//${window.location.hostname}${window.socketUrl}`),i.instance=window.visAdapterInstance,super(e,i),this.socket.setStateToIgnore("nothing_selected"),this.alert=window.alert,window.alert=r=>{r!=null&&r.toString().toLowerCase().includes("error")?(console.error(r),this.showAlert(r.toString(),"error")):(console.log(r),this.showAlert(r.toString(),"info"))},this.adapterId=`${this.adapterName}.0`,au(this.setWidgetsLoadingProgress)}createTheme(e){return ou(z.Utils.getThemeName(e))}setWidgetsLoadingProgress;setStateAsync(e){return new Promise(i=>{this.setState(e,()=>i())})}componentDidMount(){super.componentDidMount();const e={alert:!1,alertType:"info",alertMessage:"",runtime:!0,projectName:"main",selectedWidgets:[],editMode:!1,widgetsLoaded:Ce.WIDGETS_LOADING_STEP_NOT_STARTED,fonts:[],visCommonCss:null,visUserCss:null,showProjectsDialog:!1,showNewProjectDialog:!1,showImportDialogDialog:!1,newProjectName:"",projects:null,projectDoesNotExist:!1};this.initState&&this.initState(e),this.setState(e),window.addEventListener("hashchange",this.onHashChange,!1),this.state.runtime||(window.addEventListener("orientationchange",this.orientationChange,!1),window.addEventListener("resize",this.orientationChange,!1))}componentWillUnmount(){super.componentWillUnmount(),window.removeEventListener("hashchange",this.onHashChange,!1),this.checkTimeout&&(clearTimeout(this.checkTimeout),this.checkTimeout=null),this.resolutionTimer&&(clearTimeout(this.resolutionTimer),this.resolutionTimer=null),this.state.runtime||(window.removeEventListener("orientationchange",this.orientationChange,!1),window.removeEventListener("resize",this.orientationChange,!1)),window.alert=this.alert}onHashChange=()=>{const e=X.getCurrentPath();this.changeView(e.view).catch(i=>console.error(`Cannot change view: ${i}`))};onProjectChange=(e,i)=>{i.endsWith(".json")&&(this.checkTimeout&&clearTimeout(this.checkTimeout),this.state.runtime?this.checkTimeout=setTimeout(()=>{this.checkTimeout=null,this.loadProject(this.state.projectName)},500):i.endsWith(`${this.state.projectName}/vis-views.json`)&&(this.checkTimeout=setTimeout(()=>{this.checkTimeout=null,Vt(this.socket,this.adapterId,i).then(r=>{try{const a=JSON.parse(r.file||r).___settings.ts;if(a===B.getState().visProject.___settings.ts||parseInt(a.split(".")[0],10)<parseInt(B.getState().visProject.___settings.ts.split(".")[0],10))return}catch(a){console.warn(`Cannot parse project file "${i}": ${a}`)}this.setState({showProjectUpdateDialog:!0})})},500)))};fixProject(e){e.___settings||={},e.___settings.folders||=[],e.___settings.openedViews||=[],Object.keys(e).forEach(i=>{var r;if(i==="___settings"){(r=e.___settings.marketplace)==null||r.forEach(a=>{var l;(l=a.widget)==null||l.forEach(c=>{c.set&&(c.widgetSet=c.set,delete c.set)})});return}if(!e[i]){delete e[i];return}e[i].settings||={},e[i].settings.style||={},e[i].widgets||={},e[i].widgets&&Object.keys(e[i].widgets).forEach(a=>{const l=e[i].widgets[a];if(!l){delete e[i].widgets[a];return}if(l.data||={},l.style||={},l.data.members&&!Array.isArray(l.data.members)&&(l.data.members=[]),delete l.style["box-sizing"],!l.data.bindings&&!Array.isArray(l.data.bindings)&&(l.data.bindings=[],Object.keys(l.data).forEach(c=>{if(c==="bindings"||!l.data[c]||c.startsWith("g_")||typeof l.data[c]!="string")return;Os(l.data[c])&&l.data.bindings.push(c)})),!l.style.bindings&&!Array.isArray(l.style.bindings)&&(l.style.bindings=[],Object.keys(l.style).forEach(c=>{if(c==="bindings"||!l.style[c]||c.startsWith("g_")||typeof l.data[c]!="string")return;Os(l.style[c].toString())&&l.style.bindings.push(c)})),l.data.members&&l.data.members.forEach((c,h)=>l.data.members[h]=c.replace(/\s/g,"_")),a.includes(" ")){const c=a.replace(/\s/g,"_");delete e[i].widgets[a],e[i].widgets[c]=l}if(!this.state.runtime&&this.getNewWidgetId&&Object.keys(e).find(c=>c!==i&&e[c].widgets&&e[c].widgets[a])){const c=a[0]==="g"?this.getNewGroupId(e):this.getNewWidgetId(e);console.log(`Rename widget ${a} to ${c}`),delete e[i].widgets[a],e[i].widgets[c]=l}if(l.tpl==="_tplGroup"&&l.data.attrCount!==void 0){l.data.members||=[];for(let c=1;c<=l.data.attrCount;c++){const h=l.data[`attrName${c}`],f=l.data[`attrType${c}`];l.data[`attrName_groupAttr${c}`]=h||`groupAttr${c}`,l.data[`attrType_groupAttr${c}`]=f||"",delete l.data[`attrName${c}`],delete l.data[`attrType${c}`]}delete l.data.attrCount}})})}static syncMultipleWidgets(e){e||=B.getState().visProject,Object.keys(e).forEach(i=>{if(i==="___settings")return;const r=e[i];Object.keys(r.widgets).forEach(l=>{const c=r.widgets[l];c.data&&c.data["multi-views"]&&c.data["multi-views"].split(",").forEach(f=>{var _;if(f!==i&&e[f]&&(e[f].widgets[`${i}_${l}`]=JSON.parse(JSON.stringify(c)),delete e[f].widgets[`${i}_${l}`].data["multi-views"],c.tpl==="_tplGroup"&&((_=c.data.members)!=null&&_.length))){const w=e[f].widgets[`${i}_${l}`];w.data.members.forEach((g,W)=>{const k=`${i}_${g}`;e[f].widgets[k]=JSON.parse(JSON.stringify(r.widgets[g])),delete e[f].widgets[k].data["multi-views"],w.data.members[W]=k,e[f].widgets[k].data.members&&(e[f].widgets[k].data.members=[])})}}),lu(e,i,l).length?c.usedInWidget=!0:c.usedInWidget&&delete c.usedInWidget})})}static findViewWithNearestResolution(e,i){const r=window.innerWidth,a=window.innerHeight;let l=null;const c=[];let h=1e4;e&&Object.keys(e).forEach(f=>{var _;f!=="___settings"&&(_=e[f].settings)!=null&&_.useAsDefault&&Math.abs(e[f].settings.sizex-r)/e[f].settings.sizex<.2&&c.push(f)});for(let f=0;f<c.length;f++)Math.abs(e[c[f]].settings.sizey-a)<h&&(l=c[f],h=Math.abs(parseInt(e[c[f]].settings.sizey.toString(),10)-a));if(!l){const f=r/a;h=1e4,e&&Object.keys(e).forEach(_=>{var w;_!=="___settings"&&(w=e[_].settings)!=null&&w.useAsDefault&&parseInt(e[_].settings.sizey.toString(),10)&&Math.abs(f-parseInt(e[_].settings.sizex.toString(),10)/parseInt(e[_].settings.sizey.toString(),10))<h&&(l=_,h=Math.abs(f-parseInt(e[_].settings.sizex.toString(),10)/parseInt(e[_].settings.sizey.toString(),10)))})}return!l&&i&&(l=e&&Object.keys(e).find(f=>{var _;return!f.startsWith("__")&&((_=e[f].settings)==null?void 0:_.useAsDefault)})),!l&&i?e&&Object.keys(e).find(f=>!f.startsWith("__"))||"":l}loadProject=async e=>{var h,f,_;let i;(h=this.setLoadingText)==null||h.call(this,"Load project file...");try{const w=await Vt(this.socket,this.adapterId,`${e}/vis-views.json`);typeof w=="object"?i=w.file:i=w}catch(w){console.warn(`Cannot read project file "${e}/vis-views.json": ${w}`),i="{}"}if((f=this.setLoadingText)==null||f.call(this,null),!i||i==="{}"){const w=await this.socket.getObject(`system.adapter.${this.adapterName}.${this.instance}`);this.state.runtime&&w.native.doNotShowProjectDialog?this.setState({projectDoesNotExist:!0}):(this.state.projects||await this.refreshProjects(),this.setState({showProjectsDialog:!0}));return}i=i.toString(),this.state.runtime||(this.lastProjectJSONfile=i);let r;try{r=JSON.parse(i)}catch{window.alert("Cannot parse project file!"),r={"Cannot parse project file!":{widgets:{}}}}this.fixProject(r);let l=X.getCurrentPath().view;(!l||!r[l])&&(this.state.runtime?l=Ce.findViewWithNearestResolution(r,!0):(Object.keys(r).includes(window.localStorage.getItem("selectedView"))&&(l=window.localStorage.getItem("selectedView")),(!l||!r[l])&&(l=Object.keys(r).find(w=>!w.startsWith("__"))||"")));const c=r.___settings.openedViews.length;for(let w=c-1;w>=0;w--)r[r.___settings.openedViews[w]]||r.___settings.openedViews.splice(w,1);if(!r.___settings.openedViews.length){const w=Object.keys(r).find(g=>g!=="___settings");w&&(r.___settings.openedViews[0]=w)}r[l]?r.___settings.openedViews&&!r.___settings.openedViews.includes(l)&&!this.state.runtime&&(l=r.___settings.openedViews[0],window.localStorage.setItem("selectedView",l)):(l=r.___settings.openedViews[0]||"",window.localStorage.setItem("selectedView",l)),du(r.___settings.title,r.___settings.favicon,{projectName:e,instance:this.instance,adapterName:this.adapterName,themeType:this.state.themeType}),window.localStorage.setItem("projectName",e),this.subscribedProject&&(this.subscribedProject!==e||r.___settings.reloadOnEdit===!1)&&(this.subscribedProject=null,this.socket.unsubscribeFiles(this.adapterId,`${this.subscribedProject}/*`,this.onProjectChange)),Ce.syncMultipleWidgets(r),this.state.runtime?(r.___settings.reloadOnEdit!==!1&&(this.subscribedProject=e,await this.socket.subscribeFiles(this.adapterId,`${e}/*`,this.onProjectChange)),window.document.body.style.overflow=((_=r.___settings)==null?void 0:_.bodyOverflow)||"auto"):(this.subscribedProject=e,await this.socket.subscribeFiles(this.adapterId,`${e}/*`,this.onProjectChange)),B.dispatch(uu(r)),await this.setStateAsync({visCommonCss:null,visUserCss:null,history:[r],historyCursor:0,projectName:e}),await this.changeView(l),!this.state.runtime&&this.checkForUpdates&&await this.checkForUpdates()};orientationChange=()=>{this.resolutionTimer&&clearTimeout(this.resolutionTimer),this.resolutionTimer=setTimeout(async()=>{this.resolutionTimer=null;const e=Ce.findViewWithNearestResolution(B.getState().visProject);e&&e!==this.state.selectedView&&await this.changeView(e)},200)};refreshProjects=async e=>{let i;try{i=await this.socket.readDir(this.adapterId,"")}catch{i=[]}await this.setStateAsync({projects:i.filter(r=>r.isDir).map(r=>r.file),createFirstProjectDialog:!i.length}),e&&await this.loadProject(this.state.projectName)};onVisChanged(){this.setState({messageDialog:{text:z.I18n.t("Detected new version of vis files. Reloading in 2 seconds..."),title:z.I18n.t("Reloading"),ok:z.I18n.t("Reload now"),callback:()=>{!this.state.runtime&&this.changeTimer?this.needRestart=!0:setTimeout(()=>window.location.reload(),2e3)}}}),!this.state.runtime&&this.changeTimer?this.needRestart=!0:setTimeout(()=>window.location.reload(),2e3)}onWidgetSetsChanged=(e,i)=>{i&&this.lastUploadedState&&i.val!==this.lastUploadedState&&(this.lastUploadedState=i.val,this.onVisChanged())};async onConnectionReady(){this.state.widgetsLoaded===Ce.WIDGETS_LOADING_STEP_HTML_LOADED&&(await Yi.collectRxInformation(this.socket,B.getState().visProject,this.changeProject),await this.setStateAsync({widgetsLoaded:Ce.WIDGETS_LOADING_STEP_ALL_LOADED}));const e=await this.socket.getCurrentUser(),i=await this.socket.getObject(`system.user.${e||"admin"}`),r=typeof i.common.name=="object"?i.common.name[z.I18n.getLanguage()]||i.common.name.en:i.common.name;B.dispatch(cu(r));const a=await this.socket.getGroups(),l={};a.forEach(_=>l[_._id]=_),await this.setStateAsync({currentUser:i,userGroups:l,selectedView:"",splitSizes:window.localStorage.getItem("Vis.splitSizes")?JSON.parse(window.localStorage.getItem("Vis.splitSizes")):[20,60,20]}),await this.socket.subscribeState(`${this.adapterName}.${this.instance}.info.uploaded`,this.onWidgetSetsChanged);const c=await this.socket.getState(`${this.adapterName}.${this.instance}.info.uploaded`);c&&c.val!==this.lastUploadedState&&(this.lastUploadedState?this.onVisChanged():this.lastUploadedState=c.val);let h=window.location.search.replace("?","");h&&(h=decodeURIComponent(h.split("&")[0]).split("/")[0],h.includes("=")&&(h="")),h||=window.localStorage.getItem("projectName")||"main";let f=this.state.projects;if(this.state.runtime||(await this.refreshProjects(),f=null),!f||f.includes(h))await this.loadProject(h);else{const _=this.state.runtime&&await this.socket.getObject(`system.adapter.${this.adapterName}.${this.instance}`);this.state.runtime&&_.native.doNotShowProjectDialog?this.setState({projectDoesNotExist:!0}):(f||await this.refreshProjects(),this.setState({showProjectsDialog:!0}))}}changeView=async e=>{var c,h,f,_;if(e===this.state.selectedView){if(this.state.runtime||!this.state.editMode){const w=X.getCurrentPath(),g=X.buildPath(w.view,w.path);window.vis.lastChangedView=this.state.projectName?`${this.state.projectName}/${g.replace(/^#/,"")}`:g.replace(/^#/,""),window.vis.conn.sendCommand(window.vis.instance,"changedView",window.vis.lastChangedView)}return}const i={selectedView:e};let r=JSON.parse(window.localStorage.getItem(`${this.state.projectName}.${e}.widgets`)||"[]")||[];for(let w=r.length-1;w>=0;w--)(h=(c=B.getState().visProject[e])==null?void 0:c.widgets)!=null&&h[r[w]]||(r=r.splice(w,1));if(JSON.stringify(i.selectedWidgets)!==JSON.stringify(r)&&(i.selectedWidgets=r),i.alignType!==null&&(i.alignType=null),i.alignIndex!==0&&(i.alignIndex=0),((f=i.alignValues)==null?void 0:f.length)>0&&(i.alignValues=[]),!this.state.runtime&&!B.getState().visProject.___settings.openedViews.includes(e)){const w=JSON.parse(JSON.stringify(B.getState().visProject));w.___settings.openedViews.push(e),await this.changeProject(w,!0)}if((this.state.runtime||!this.state.editMode)&&window.vis){const w=X.getCurrentPath(),g=X.buildPath(w.view,w.path);window.vis.lastChangedView=this.state.projectName?`${this.state.projectName}/${g.replace(/^#/,"")}`:g.replace(/^#/,""),window.vis.conn.sendCommand(window.vis.instance,"changedView",window.vis.lastChangedView),(_=window.jQuery)==null||_.call(window,window).trigger("viewChanged",e)}this.state.selectedGroup&&(i.selectedGroup=null),window.localStorage.setItem("selectedView",e);const a=X.getCurrentPath(),l=X.buildPath(e,a.path);window.location.hash!==l&&(window.location.hash=l),await this.setStateAsync(i)};showAlert(e,i){i!=="error"&&i!=="warning"&&i!=="info"&&i!=="success"&&(i="info"),this.setState({alert:!0,alertType:i,alertMessage:e})}renderAlertDialog=()=>C.jsx(E.Snackbar,{style:this.state.alertType==="error"?{backgroundColor:"#f44336"}:this.state.alertType==="success"?{backgroundColor:"#4caf50"}:void 0,open:this.state.alert,autoHideDuration:6e3,onClick:()=>this.setState({alert:!1}),onClose:(e,i)=>{i!=="clickaway"&&this.setState({alert:!1})},message:this.state.alertMessage},"__snackbar_134__");async onWidgetsLoaded(){let e=Ce.WIDGETS_LOADING_STEP_HTML_LOADED;this.socket.isConnected()&&(await Yi.collectRxInformation(this.socket,B.getState().visProject,this.changeProject),e=Ce.WIDGETS_LOADING_STEP_ALL_LOADED),this.setState({widgetsLoaded:e})}addProject=async(e,i)=>{try{const r={___settings:{folders:[],openedViews:[]},default:{name:"Default",settings:{style:{}},widgets:{},activeWidgets:{}}};await this.socket.writeFile64(this.adapterId,`${e}/vis-views.json`,JSON.stringify(r)),await this.socket.writeFile64(this.adapterId,`${e}/vis-user.css`,""),i||(await this.refreshProjects(),await this.loadProject(e),this.setState({projectsDialog:!1}))}catch(r){window.alert(`Cannot create project: ${r.toString()}`)}};showCreateNewProjectDialog(){return this.state.showNewProjectDialog?C.jsxs(E.Dialog,{open:!0,onClose:()=>this.setState({showNewProjectDialog:!1}),children:[C.jsx(E.DialogTitle,{children:z.I18n.t("Create new project")}),C.jsx(E.DialogContent,{children:C.jsx(E.TextField,{variant:"standard",label:z.I18n.t("Project name"),autoFocus:!0,fullWidth:!0,onKeyDown:async e=>{e.key==="Enter"&&this.state.newProjectName&&!this.state.projects.includes(this.state.newProjectName)&&(await this.addProject(this.state.newProjectName),window.location.href=`edit.html?${this.state.newProjectName}`)},value:this.state.newProjectName,onChange:e=>this.setState({newProjectName:e.target.value}),margin:"dense"})}),C.jsxs(E.DialogActions,{children:[C.jsx(E.Button,{id:"create_new_project_ok_buton",variant:"contained",color:"primary",disabled:!this.state.newProjectName||this.state.projects.includes(this.state.newProjectName),onClick:async()=>{await this.addProject(this.state.newProjectName,!0),window.location.href=`edit.html?${this.state.newProjectName}`},startIcon:C.jsx(lt.Add,{}),children:z.I18n.t("Create")}),C.jsx(E.Button,{variant:"contained",color:"grey",onClick:()=>this.setState({showNewProjectDialog:!1}),startIcon:C.jsx(lt.Close,{}),children:z.I18n.t("Cancel")})]})]}):null}showSmallProjectsDialog(){return C.jsxs(E.Dialog,{open:!0,maxWidth:"sm",onClose:()=>{},children:[C.jsxs(E.DialogTitle,{children:[C.jsx("img",{src:this.props.runtime?"./favicon.ico":"./faviconEdit.ico",alt:"vis-2",style:{width:24,marginRight:10,marginTop:4}}),this.state.projects.length?z.I18n.t("Select vis-2 project"):z.I18n.t('Create or import new "vis-2" project')]}),C.jsx(E.DialogContent,{children:this.state.projects?C.jsxs(E.Paper,{children:[this.state.projects.length?null:C.jsx("div",{style:{width:"100%",fontSize:20,padding:10},children:z.I18n.t("welcome_message")}),C.jsxs(E.MenuList,{children:[this.state.projects.map(e=>C.jsxs(E.ListItemButton,{onClick:()=>window.location.href=`?${e}`,children:[C.jsx(E.ListItemIcon,{children:C.jsx(lt.FileCopy,{})}),C.jsx(E.ListItemText,{children:e})]},e)),C.jsxs(E.ListItemButton,{id:"create_new_project",onClick:()=>this.setState({showNewProjectDialog:!0,newProjectName:this.state.projects.length?"":"main"}),style:{backgroundColor:"#112233",color:"#ffffff"},children:[C.jsx(E.ListItemIcon,{children:C.jsx(lt.Add,{})}),C.jsx(E.ListItemText,{children:z.I18n.t("Create new project")})]}),this.renderImportProjectDialog?C.jsxs(E.ListItemButton,{onClick:()=>this.setState({showImportDialog:!0}),style:{backgroundColor:"#112233",color:"#4b9ed3"},children:[C.jsx(E.ListItemIcon,{children:C.jsx(ku,{fontSize:"small"})}),C.jsx(E.ListItemText,{children:z.I18n.t("Import project")})]}):null]})]}):C.jsx(E.LinearProgress,{})}),this.showCreateNewProjectDialog(),this.renderImportProjectDialog?this.renderImportProjectDialog():null,this.renderAlertDialog()]})}renderProjectDoesNotExist(){return C.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",fontSize:36,color:"#982828"},children:z.I18n.t('Project "%s" does not exist',this.state.projectName)})}getVisEngine(){if(!this.state.runtime&&this.state.projectDoesNotExist)return this.renderProjectDoesNotExist();if(!this.state.runtime&&this.state.showProjectsDialog)return this.showSmallProjectsDialog();const{visProject:e,activeUser:i}=B.getState();return!hu({editMode:this.state.editMode,project:e,user:i})||!fu({editMode:this.state.editMode,project:e,user:i,view:this.state.selectedView})?(console.warn(`User "${i}" has no permissions for ${this.state.editMode?"edit mode":"runtime"} of project "${this.state.projectName}" with view "${this.state.selectedView}"`),this.state.projects?this.showSmallProjectsDialog():(this.refreshProjects().then(()=>{this.setState({showProjectsDialog:!0})}),null)):C.jsx(X,{widgetsLoaded:this.state.widgetsLoaded,activeView:this.state.selectedView||"",editMode:!this.state.runtime&&this.state.editMode,runtime:this.state.runtime,socket:this.socket,visCommonCss:this.state.visCommonCss,visUserCss:this.state.visUserCss,lang:this.socket.systemLang,adapterName:this.adapterName,instance:this.instance,selectedWidgets:this.state.selectedWidgets,setSelectedWidgets:this.setSelectedWidgets,onLoaded:()=>this.onWidgetsLoaded(),selectedGroup:this.state.selectedGroup,setSelectedGroup:this.setSelectedGroup,onWidgetsChanged:this.onWidgetsChanged,projectName:this.state.projectName,lockDragging:this.state.lockDragging,disableInteraction:this.state.disableInteraction,widgetHint:this.state.widgetHint,onFontsUpdate:this.state.runtime?null:r=>this.onFontsUpdate(r),registerEditorCallback:this.state.runtime?null:this.registerCallback,themeType:this.state.themeType,themeName:this.state.themeName,theme:this.state.theme,adapterId:this.adapterId,editModeComponentStyle:$g.editModeComponentStyle,onIgnoreMouseEvents:this.onIgnoreMouseEvents,setLoadingText:this.setLoadingText,onConfirmDialog:(r,a,l,c,h)=>{var f;return(f=this.showConfirmDialog)==null?void 0:f.call(this,{message:r,title:a,icon:l,width:c,callback:h})},onShowCode:(r,a,l)=>{var c;return(c=this.showCodeDialog)==null?void 0:c.call(this,{code:r,title:a,mode:l})},currentUser:this.state.currentUser,userGroups:this.state.userGroups,renderAlertDialog:this.renderAlertDialog,showLegacyFileSelector:this.showLegacyFileSelector,toggleTheme:r=>this.toggleTheme(r),askAboutInclude:this.askAboutInclude,changeProject:this.changeProject},this.state.projectName)}renderLoader(){return window.loadingHideLogo==="true"?null:window.vendorPrefix==="MV"?C.jsx(z.LoaderMV,{themeType:this.state.themeType,backgroundColor:window.loadingBackgroundColor,backgroundImage:window.loadingBackgroundImage}):window.vendorPrefix==="PT"?C.jsx(z.LoaderPT,{themeType:this.state.themeType,backgroundColor:window.loadingBackgroundColor,backgroundImage:window.loadingBackgroundImage}):window.vendorPrefix&&window.vendorPrefix!=="@@vendorPrefix@@"?C.jsx(z.LoaderVendor,{themeType:this.state.themeType,backgroundColor:window.loadingBackgroundColor,backgroundImage:window.loadingBackgroundImage}):C.jsx(z.Loader,{themeType:this.state.themeType,backgroundColor:window.loadingBackgroundColor,backgroundImage:window.loadingBackgroundImage})}render(){return C.jsx(_u.StyledEngineProvider,{injectFirst:!0,children:C.jsxs(mu,{theme:this.state.theme,children:[!this.state.loaded||!B.getState().visProject.___settings?this.renderLoader():this.getVisEngine(),this.state.projectDoesNotExist?this.renderProjectDoesNotExist():null,this.state.showProjectsDialog?this.showSmallProjectsDialog():null]})})}}window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/);function Ag(){"serviceWorker"in navigator&&navigator.serviceWorker.ready.then(t=>t.unregister())}const Ug="2.12.10",ta={version:Ug};window.adapterName="vis-2";console.log(`iobroker.${window.adapterName}@${ta.version}`);su(()=>import("./visView-uvB8Y3Rn.js").then(t=>t.v),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url).then(t=>window.visRxWidget=t.default);function ln(t,e,i){const r=(t||"").split(" ").map(l=>l.trim()).filter(l=>l),a=r.indexOf(i);return a!==-1&&r.splice(a,1),!r.includes(e)&&r.push(e),r.join(" ")}function Eg(){try{return window.self!==window.top}catch{return!0}}function sa(){Eg()?window.document.body.className="":z.Utils.getThemeType()==="dark"?window.document.body.className=ln(window.document.body.className,"body-dark","body-light"):window.document.body.className=ln(window.document.body.className,"body-light","body-dark")}sa();function Hg(){const t=document.getElementById("root");t&&vu.createRoot(t).render(C.jsx(Ce,{setBackground:()=>sa(),version:ta.version}))}window.visConfigLoaded.then(()=>{window.disableDataReporting||(window.sentryDSN="https://db8b6e837c71447a876069559a00a742@sentry.iobroker.net/232"),Hg()});Ag();