@opfr/services 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,28 +1,28 @@
1
- (function(M,Y){typeof exports=="object"&&typeof module<"u"?Y(exports,require("mongoose"),require("i18next"),require("@opfr/raids"),require("@opfr/quests"),require("@opfr/ornaments")):typeof define=="function"&&define.amd?define(["exports","mongoose","i18next","@opfr/raids","@opfr/quests","@opfr/ornaments"],Y):(M=typeof globalThis<"u"?globalThis:M||self,Y(M.services={},M.mongoose,M.i18next,M["@opfr/raids"],M["@opfr/quests"],M["@opfr/ornaments"]))})(this,function(M,Y,De,Jd,oo,Kd){"use strict";const Xd=e=>e.filter(t=>t!=null);//! moment.js
1
+ (function(M,Y){typeof exports=="object"&&typeof module<"u"?Y(exports,require("mongoose"),require("i18next"),require("@opfr/raids"),require("@opfr/quests"),require("@opfr/ornaments")):typeof define=="function"&&define.amd?define(["exports","mongoose","i18next","@opfr/raids","@opfr/quests","@opfr/ornaments"],Y):(M=typeof globalThis<"u"?globalThis:M||self,Y(M.services={},M.mongoose,M.i18next,M["@opfr/raids"],M["@opfr/quests"],M["@opfr/ornaments"]))})(this,function(M,Y,De,Kd,co,Xd){"use strict";const ec=e=>e.filter(t=>t!=null);//! moment.js
2
2
  //! version : 2.30.1
3
3
  //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
4
4
  //! license : MIT
5
5
  //! momentjs.com
6
- var uo;function p(){return uo.apply(null,arguments)}function ec(e){uo=e}function Ue(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Qt(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function W(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ra(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(W(e,t))return!1;return!0}function ye(e){return e===void 0}function dt(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Gn(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function lo(e,t){var n=[],s,r=e.length;for(s=0;s<r;++s)n.push(t(e[s],s));return n}function Ht(e,t){for(var n in t)W(t,n)&&(e[n]=t[n]);return W(t,"toString")&&(e.toString=t.toString),W(t,"valueOf")&&(e.valueOf=t.valueOf),e}function ze(e,t,n,s){return jo(e,t,n,s,!0).utc()}function tc(){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 O(e){return e._pf==null&&(e._pf=tc()),e._pf}var aa;Array.prototype.some?aa=Array.prototype.some:aa=function(e){var t=Object(this),n=t.length>>>0,s;for(s=0;s<n;s++)if(s in t&&e.call(this,t[s],s,t))return!0;return!1};function ia(e){var t=null,n=!1,s=e._d&&!isNaN(e._d.getTime());if(s&&(t=O(e),n=aa.call(t.parsedDateParts,function(r){return r!=null}),s=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(s=s&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=s;else return s;return e._isValid}function Ws(e){var t=ze(NaN);return e!=null?Ht(O(t),e):O(t).userInvalidated=!0,t}var co=p.momentProperties=[],oa=!1;function ua(e,t){var n,s,r,a=co.length;if(ye(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),ye(t._i)||(e._i=t._i),ye(t._f)||(e._f=t._f),ye(t._l)||(e._l=t._l),ye(t._strict)||(e._strict=t._strict),ye(t._tzm)||(e._tzm=t._tzm),ye(t._isUTC)||(e._isUTC=t._isUTC),ye(t._offset)||(e._offset=t._offset),ye(t._pf)||(e._pf=O(t)),ye(t._locale)||(e._locale=t._locale),a>0)for(n=0;n<a;n++)s=co[n],r=t[s],ye(r)||(e[s]=r);return e}function qn(e){ua(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),oa===!1&&(oa=!0,p.updateOffset(this),oa=!1)}function je(e){return e instanceof qn||e!=null&&e._isAMomentObject!=null}function ho(e){p.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function Ye(e,t){var n=!0;return Ht(function(){if(p.deprecationHandler!=null&&p.deprecationHandler(null,e),n){var s=[],r,a,i,o=arguments.length;for(a=0;a<o;a++){if(r="",typeof arguments[a]=="object"){r+=`
7
- [`+a+"] ";for(i in arguments[0])W(arguments[0],i)&&(r+=i+": "+arguments[0][i]+", ");r=r.slice(0,-2)}else r=arguments[a];s.push(r)}ho(e+`
6
+ var ho;function p(){return ho.apply(null,arguments)}function tc(e){ho=e}function Ue(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Qt(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function W(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function aa(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(W(e,t))return!1;return!0}function ye(e){return e===void 0}function dt(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function qn(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function fo(e,t){var n=[],s,r=e.length;for(s=0;s<r;++s)n.push(t(e[s],s));return n}function Ht(e,t){for(var n in t)W(t,n)&&(e[n]=t[n]);return W(t,"toString")&&(e.toString=t.toString),W(t,"valueOf")&&(e.valueOf=t.valueOf),e}function ze(e,t,n,s){return Ho(e,t,n,s,!0).utc()}function nc(){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 O(e){return e._pf==null&&(e._pf=nc()),e._pf}var ia;Array.prototype.some?ia=Array.prototype.some:ia=function(e){var t=Object(this),n=t.length>>>0,s;for(s=0;s<n;s++)if(s in t&&e.call(this,t[s],s,t))return!0;return!1};function oa(e){var t=null,n=!1,s=e._d&&!isNaN(e._d.getTime());if(s&&(t=O(e),n=ia.call(t.parsedDateParts,function(r){return r!=null}),s=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(s=s&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=s;else return s;return e._isValid}function Ws(e){var t=ze(NaN);return e!=null?Ht(O(t),e):O(t).userInvalidated=!0,t}var mo=p.momentProperties=[],ua=!1;function la(e,t){var n,s,r,a=mo.length;if(ye(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),ye(t._i)||(e._i=t._i),ye(t._f)||(e._f=t._f),ye(t._l)||(e._l=t._l),ye(t._strict)||(e._strict=t._strict),ye(t._tzm)||(e._tzm=t._tzm),ye(t._isUTC)||(e._isUTC=t._isUTC),ye(t._offset)||(e._offset=t._offset),ye(t._pf)||(e._pf=O(t)),ye(t._locale)||(e._locale=t._locale),a>0)for(n=0;n<a;n++)s=mo[n],r=t[s],ye(r)||(e[s]=r);return e}function Bn(e){la(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),ua===!1&&(ua=!0,p.updateOffset(this),ua=!1)}function je(e){return e instanceof Bn||e!=null&&e._isAMomentObject!=null}function go(e){p.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function Ye(e,t){var n=!0;return Ht(function(){if(p.deprecationHandler!=null&&p.deprecationHandler(null,e),n){var s=[],r,a,i,o=arguments.length;for(a=0;a<o;a++){if(r="",typeof arguments[a]=="object"){r+=`
7
+ [`+a+"] ";for(i in arguments[0])W(arguments[0],i)&&(r+=i+": "+arguments[0][i]+", ");r=r.slice(0,-2)}else r=arguments[a];s.push(r)}go(e+`
8
8
  Arguments: `+Array.prototype.slice.call(s).join("")+`
9
- `+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var fo={};function mo(e,t){p.deprecationHandler!=null&&p.deprecationHandler(e,t),fo[e]||(ho(t),fo[e]=!0)}p.suppressDeprecationWarnings=!1,p.deprecationHandler=null;function Ze(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function nc(e){var t,n;for(n in e)W(e,n)&&(t=e[n],Ze(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function la(e,t){var n=Ht({},e),s;for(s in t)W(t,s)&&(Qt(e[s])&&Qt(t[s])?(n[s]={},Ht(n[s],e[s]),Ht(n[s],t[s])):t[s]!=null?n[s]=t[s]:delete n[s]);for(s in e)W(e,s)&&!W(t,s)&&Qt(e[s])&&(n[s]=Ht({},n[s]));return n}function da(e){e!=null&&this.set(e)}var ca;Object.keys?ca=Object.keys:ca=function(e){var t,n=[];for(t in e)W(e,t)&&n.push(t);return n};var sc={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function rc(e,t,n){var s=this._calendar[e]||this._calendar.sameElse;return Ze(s)?s.call(t,n):s}function Qe(e,t,n){var s=""+Math.abs(e),r=t-s.length,a=e>=0;return(a?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+s}var ha=/(\[[^\[]*\])|(\\)?([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,Fs=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,fa={},hn={};function $(e,t,n,s){var r=s;typeof s=="string"&&(r=function(){return this[s]()}),e&&(hn[e]=r),t&&(hn[t[0]]=function(){return Qe(r.apply(this,arguments),t[1],t[2])}),n&&(hn[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function ac(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function ic(e){var t=e.match(ha),n,s;for(n=0,s=t.length;n<s;n++)hn[t[n]]?t[n]=hn[t[n]]:t[n]=ac(t[n]);return function(r){var a="",i;for(i=0;i<s;i++)a+=Ze(t[i])?t[i].call(r,e):t[i];return a}}function Hs(e,t){return e.isValid()?(t=go(t,e.localeData()),fa[t]=fa[t]||ic(t),fa[t](e)):e.localeData().invalidDate()}function go(e,t){var n=5;function s(r){return t.longDateFormat(r)||r}for(Fs.lastIndex=0;n>=0&&Fs.test(e);)e=e.replace(Fs,s),Fs.lastIndex=0,n-=1;return e}var oc={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 uc(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(ha).map(function(s){return s==="MMMM"||s==="MM"||s==="DD"||s==="dddd"?s.slice(1):s}).join(""),this._longDateFormat[e])}var lc="Invalid date";function dc(){return this._invalidDate}var cc="%d",hc=/\d{1,2}/;function fc(e){return this._ordinal.replace("%d",e)}var mc={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 gc(e,t,n,s){var r=this._relativeTime[n];return Ze(r)?r(e,t,n,s):r.replace(/%d/i,e)}function pc(e,t){var n=this._relativeTime[e>0?"future":"past"];return Ze(n)?n(t):n.replace(/%s/i,t)}var po={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 Oe(e){return typeof e=="string"?po[e]||po[e.toLowerCase()]:void 0}function ma(e){var t={},n,s;for(s in e)W(e,s)&&(n=Oe(s),n&&(t[n]=e[s]));return t}var yc={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 _c(e){var t=[],n;for(n in e)W(e,n)&&t.push({unit:n,priority:yc[n]});return t.sort(function(s,r){return s.priority-r.priority}),t}var yo=/\d/,ke=/\d\d/,_o=/\d{3}/,ga=/\d{4}/,Es=/[+-]?\d{6}/,B=/\d\d?/,vo=/\d\d\d\d?/,wo=/\d\d\d\d\d\d?/,Is=/\d{1,3}/,pa=/\d{1,4}/,As=/[+-]?\d{1,6}/,fn=/\d+/,Vs=/[+-]?\d+/,vc=/Z|[+-]\d\d:?\d\d/gi,Gs=/Z|[+-]\d\d(?::?\d\d)?/gi,wc=/[+-]?\d+(\.\d{1,3})?/,Bn=/[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,mn=/^[1-9]\d?/,ya=/^([1-9]\d|\d)/,qs;qs={};function v(e,t,n){qs[e]=Ze(t)?t:function(s,r){return s&&n?n:t}}function kc(e,t){return W(qs,e)?qs[e](t._strict,t._locale):new RegExp($c(e))}function $c(e){return ct(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,s,r,a){return n||s||r||a}))}function ct(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function xe(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function N(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=xe(t)),n}var _a={};function V(e,t){var n,s=t,r;for(typeof e=="string"&&(e=[e]),dt(t)&&(s=function(a,i){i[t]=N(a)}),r=e.length,n=0;n<r;n++)_a[e[n]]=s}function zn(e,t){V(e,function(n,s,r,a){r._w=r._w||{},t(n,r._w,r,a)})}function Sc(e,t,n){t!=null&&W(_a,e)&&_a[e](t,n._a,n,e)}function Bs(e){return e%4===0&&e%100!==0||e%400===0}var de=0,ht=1,Je=2,ae=3,We=4,ft=5,Jt=6,bc=7,Mc=8;$("Y",0,0,function(){var e=this.year();return e<=9999?Qe(e,4):"+"+e}),$(0,["YY",2],0,function(){return this.year()%100}),$(0,["YYYY",4],0,"year"),$(0,["YYYYY",5],0,"year"),$(0,["YYYYYY",6,!0],0,"year"),v("Y",Vs),v("YY",B,ke),v("YYYY",pa,ga),v("YYYYY",As,Es),v("YYYYYY",As,Es),V(["YYYYY","YYYYYY"],de),V("YYYY",function(e,t){t[de]=e.length===2?p.parseTwoDigitYear(e):N(e)}),V("YY",function(e,t){t[de]=p.parseTwoDigitYear(e)}),V("Y",function(e,t){t[de]=parseInt(e,10)});function Zn(e){return Bs(e)?366:365}p.parseTwoDigitYear=function(e){return N(e)+(N(e)>68?1900:2e3)};var ko=gn("FullYear",!0);function Dc(){return Bs(this.year())}function gn(e,t){return function(n){return n!=null?($o(this,e,n),p.updateOffset(this,t),this):Qn(this,e)}}function Qn(e,t){if(!e.isValid())return NaN;var n=e._d,s=e._isUTC;switch(t){case"Milliseconds":return s?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return s?n.getUTCSeconds():n.getSeconds();case"Minutes":return s?n.getUTCMinutes():n.getMinutes();case"Hours":return s?n.getUTCHours():n.getHours();case"Date":return s?n.getUTCDate():n.getDate();case"Day":return s?n.getUTCDay():n.getDay();case"Month":return s?n.getUTCMonth():n.getMonth();case"FullYear":return s?n.getUTCFullYear():n.getFullYear();default:return NaN}}function $o(e,t,n){var s,r,a,i,o;if(!(!e.isValid()||isNaN(n))){switch(s=e._d,r=e._isUTC,t){case"Milliseconds":return void(r?s.setUTCMilliseconds(n):s.setMilliseconds(n));case"Seconds":return void(r?s.setUTCSeconds(n):s.setSeconds(n));case"Minutes":return void(r?s.setUTCMinutes(n):s.setMinutes(n));case"Hours":return void(r?s.setUTCHours(n):s.setHours(n));case"Date":return void(r?s.setUTCDate(n):s.setDate(n));case"FullYear":break;default:return}a=n,i=e.month(),o=e.date(),o=o===29&&i===1&&!Bs(a)?28:o,r?s.setUTCFullYear(a,i,o):s.setFullYear(a,i,o)}}function Yc(e){return e=Oe(e),Ze(this[e])?this[e]():this}function Oc(e,t){if(typeof e=="object"){e=ma(e);var n=_c(e),s,r=n.length;for(s=0;s<r;s++)this[n[s].unit](e[n[s].unit])}else if(e=Oe(e),Ze(this[e]))return this[e](t);return this}function xc(e,t){return(e%t+t)%t}var ne;Array.prototype.indexOf?ne=Array.prototype.indexOf:ne=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function va(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=xc(t,12);return e+=(t-n)/12,n===1?Bs(e)?29:28:31-n%7%2}$("M",["MM",2],"Mo",function(){return this.month()+1}),$("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),$("MMMM",0,0,function(e){return this.localeData().months(this,e)}),v("M",B,mn),v("MM",B,ke),v("MMM",function(e,t){return t.monthsShortRegex(e)}),v("MMMM",function(e,t){return t.monthsRegex(e)}),V(["M","MM"],function(e,t){t[ht]=N(e)-1}),V(["MMM","MMMM"],function(e,t,n,s){var r=n._locale.monthsParse(e,s,n._strict);r!=null?t[ht]=r:O(n).invalidMonth=e});var Tc="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),So="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),bo=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Nc=Bn,Rc=Bn;function Pc(e,t){return e?Ue(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||bo).test(t)?"format":"standalone"][e.month()]:Ue(this._months)?this._months:this._months.standalone}function Cc(e,t){return e?Ue(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[bo.test(t)?"format":"standalone"][e.month()]:Ue(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Lc(e,t,n){var s,r,a,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)a=ze([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(a,"").toLocaleLowerCase();return n?t==="MMM"?(r=ne.call(this._shortMonthsParse,i),r!==-1?r:null):(r=ne.call(this._longMonthsParse,i),r!==-1?r:null):t==="MMM"?(r=ne.call(this._shortMonthsParse,i),r!==-1?r:(r=ne.call(this._longMonthsParse,i),r!==-1?r:null)):(r=ne.call(this._longMonthsParse,i),r!==-1?r:(r=ne.call(this._shortMonthsParse,i),r!==-1?r:null))}function Uc(e,t,n){var s,r,a;if(this._monthsParseExact)return Lc.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++)if(r=ze([2e3,s]),n&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),!n&&!this._monthsParse[s]&&(a="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[s]=new RegExp(a.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[s].test(e)||n&&t==="MMM"&&this._shortMonthsParse[s].test(e)||!n&&this._monthsParse[s].test(e))return s}function Mo(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=N(t);else if(t=e.localeData().monthsParse(t),!dt(t))return e}var n=t,s=e.date();return s=s<29?s:Math.min(s,va(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,s):e._d.setMonth(n,s),e}function Do(e){return e!=null?(Mo(this,e),p.updateOffset(this,!0),this):Qn(this,"Month")}function jc(){return va(this.year(),this.month())}function Wc(e){return this._monthsParseExact?(W(this,"_monthsRegex")||Yo.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(W(this,"_monthsShortRegex")||(this._monthsShortRegex=Nc),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Fc(e){return this._monthsParseExact?(W(this,"_monthsRegex")||Yo.call(this),e?this._monthsStrictRegex:this._monthsRegex):(W(this,"_monthsRegex")||(this._monthsRegex=Rc),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Yo(){function e(u,l){return l.length-u.length}var t=[],n=[],s=[],r,a,i,o;for(r=0;r<12;r++)a=ze([2e3,r]),i=ct(this.monthsShort(a,"")),o=ct(this.months(a,"")),t.push(i),n.push(o),s.push(o),s.push(i);t.sort(e),n.sort(e),s.sort(e),this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Hc(e,t,n,s,r,a,i){var o;return e<100&&e>=0?(o=new Date(e+400,t,n,s,r,a,i),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,s,r,a,i),o}function Jn(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function zs(e,t,n){var s=7+t-n,r=(7+Jn(e,0,s).getUTCDay()-t)%7;return-r+s-1}function Oo(e,t,n,s,r){var a=(7+n-s)%7,i=zs(e,s,r),o=1+7*(t-1)+a+i,u,l;return o<=0?(u=e-1,l=Zn(u)+o):o>Zn(e)?(u=e+1,l=o-Zn(e)):(u=e,l=o),{year:u,dayOfYear:l}}function Kn(e,t,n){var s=zs(e.year(),t,n),r=Math.floor((e.dayOfYear()-s-1)/7)+1,a,i;return r<1?(i=e.year()-1,a=r+mt(i,t,n)):r>mt(e.year(),t,n)?(a=r-mt(e.year(),t,n),i=e.year()+1):(i=e.year(),a=r),{week:a,year:i}}function mt(e,t,n){var s=zs(e,t,n),r=zs(e+1,t,n);return(Zn(e)-s+r)/7}$("w",["ww",2],"wo","week"),$("W",["WW",2],"Wo","isoWeek"),v("w",B,mn),v("ww",B,ke),v("W",B,mn),v("WW",B,ke),zn(["w","ww","W","WW"],function(e,t,n,s){t[s.substr(0,1)]=N(e)});function Ec(e){return Kn(e,this._week.dow,this._week.doy).week}var Ic={dow:0,doy:6};function Ac(){return this._week.dow}function Vc(){return this._week.doy}function Gc(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function qc(e){var t=Kn(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}$("d",0,"do","day"),$("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),$("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),$("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),$("e",0,0,"weekday"),$("E",0,0,"isoWeekday"),v("d",B),v("e",B),v("E",B),v("dd",function(e,t){return t.weekdaysMinRegex(e)}),v("ddd",function(e,t){return t.weekdaysShortRegex(e)}),v("dddd",function(e,t){return t.weekdaysRegex(e)}),zn(["dd","ddd","dddd"],function(e,t,n,s){var r=n._locale.weekdaysParse(e,s,n._strict);r!=null?t.d=r:O(n).invalidWeekday=e}),zn(["d","e","E"],function(e,t,n,s){t[s]=N(e)});function Bc(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function zc(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function wa(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Zc="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),xo="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qc="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Jc=Bn,Kc=Bn,Xc=Bn;function eh(e,t){var n=Ue(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?wa(n,this._week.dow):e?n[e.day()]:n}function th(e){return e===!0?wa(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function nh(e){return e===!0?wa(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function sh(e,t,n){var s,r,a,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)a=ze([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(a,"").toLocaleLowerCase();return n?t==="dddd"?(r=ne.call(this._weekdaysParse,i),r!==-1?r:null):t==="ddd"?(r=ne.call(this._shortWeekdaysParse,i),r!==-1?r:null):(r=ne.call(this._minWeekdaysParse,i),r!==-1?r:null):t==="dddd"?(r=ne.call(this._weekdaysParse,i),r!==-1||(r=ne.call(this._shortWeekdaysParse,i),r!==-1)?r:(r=ne.call(this._minWeekdaysParse,i),r!==-1?r:null)):t==="ddd"?(r=ne.call(this._shortWeekdaysParse,i),r!==-1||(r=ne.call(this._weekdaysParse,i),r!==-1)?r:(r=ne.call(this._minWeekdaysParse,i),r!==-1?r:null)):(r=ne.call(this._minWeekdaysParse,i),r!==-1||(r=ne.call(this._weekdaysParse,i),r!==-1)?r:(r=ne.call(this._shortWeekdaysParse,i),r!==-1?r:null))}function rh(e,t,n){var s,r,a;if(this._weekdaysParseExact)return sh.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++)if(r=ze([2e3,1]).day(s),n&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(a="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[s]=new RegExp(a.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[s].test(e)||n&&t==="ddd"&&this._shortWeekdaysParse[s].test(e)||n&&t==="dd"&&this._minWeekdaysParse[s].test(e)||!n&&this._weekdaysParse[s].test(e))return s}function ah(e){if(!this.isValid())return e!=null?this:NaN;var t=Qn(this,"Day");return e!=null?(e=Bc(e,this.localeData()),this.add(e-t,"d")):t}function ih(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function oh(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=zc(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function uh(e){return this._weekdaysParseExact?(W(this,"_weekdaysRegex")||ka.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(W(this,"_weekdaysRegex")||(this._weekdaysRegex=Jc),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function lh(e){return this._weekdaysParseExact?(W(this,"_weekdaysRegex")||ka.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(W(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Kc),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function dh(e){return this._weekdaysParseExact?(W(this,"_weekdaysRegex")||ka.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(W(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Xc),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ka(){function e(d,h){return h.length-d.length}var t=[],n=[],s=[],r=[],a,i,o,u,l;for(a=0;a<7;a++)i=ze([2e3,1]).day(a),o=ct(this.weekdaysMin(i,"")),u=ct(this.weekdaysShort(i,"")),l=ct(this.weekdays(i,"")),t.push(o),n.push(u),s.push(l),r.push(o),r.push(u),r.push(l);t.sort(e),n.sort(e),s.sort(e),r.sort(e),this._weekdaysRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function $a(){return this.hours()%12||12}function ch(){return this.hours()||24}$("H",["HH",2],0,"hour"),$("h",["hh",2],0,$a),$("k",["kk",2],0,ch),$("hmm",0,0,function(){return""+$a.apply(this)+Qe(this.minutes(),2)}),$("hmmss",0,0,function(){return""+$a.apply(this)+Qe(this.minutes(),2)+Qe(this.seconds(),2)}),$("Hmm",0,0,function(){return""+this.hours()+Qe(this.minutes(),2)}),$("Hmmss",0,0,function(){return""+this.hours()+Qe(this.minutes(),2)+Qe(this.seconds(),2)});function To(e,t){$(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}To("a",!0),To("A",!1);function No(e,t){return t._meridiemParse}v("a",No),v("A",No),v("H",B,ya),v("h",B,mn),v("k",B,mn),v("HH",B,ke),v("hh",B,ke),v("kk",B,ke),v("hmm",vo),v("hmmss",wo),v("Hmm",vo),v("Hmmss",wo),V(["H","HH"],ae),V(["k","kk"],function(e,t,n){var s=N(e);t[ae]=s===24?0:s}),V(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),V(["h","hh"],function(e,t,n){t[ae]=N(e),O(n).bigHour=!0}),V("hmm",function(e,t,n){var s=e.length-2;t[ae]=N(e.substr(0,s)),t[We]=N(e.substr(s)),O(n).bigHour=!0}),V("hmmss",function(e,t,n){var s=e.length-4,r=e.length-2;t[ae]=N(e.substr(0,s)),t[We]=N(e.substr(s,2)),t[ft]=N(e.substr(r)),O(n).bigHour=!0}),V("Hmm",function(e,t,n){var s=e.length-2;t[ae]=N(e.substr(0,s)),t[We]=N(e.substr(s))}),V("Hmmss",function(e,t,n){var s=e.length-4,r=e.length-2;t[ae]=N(e.substr(0,s)),t[We]=N(e.substr(s,2)),t[ft]=N(e.substr(r))});function hh(e){return(e+"").toLowerCase().charAt(0)==="p"}var fh=/[ap]\.?m?\.?/i,mh=gn("Hours",!0);function gh(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var Ro={calendar:sc,longDateFormat:oc,invalidDate:lc,ordinal:cc,dayOfMonthOrdinalParse:hc,relativeTime:mc,months:Tc,monthsShort:So,week:Ic,weekdays:Zc,weekdaysMin:Qc,weekdaysShort:xo,meridiemParse:fh},X={},Xn={},es;function ph(e,t){var n,s=Math.min(e.length,t.length);for(n=0;n<s;n+=1)if(e[n]!==t[n])return n;return s}function Po(e){return e&&e.toLowerCase().replace("_","-")}function yh(e){for(var t=0,n,s,r,a;t<e.length;){for(a=Po(e[t]).split("-"),n=a.length,s=Po(e[t+1]),s=s?s.split("-"):null;n>0;){if(r=Zs(a.slice(0,n).join("-")),r)return r;if(s&&s.length>=n&&ph(a,s)>=n-1)break;n--}t++}return es}function _h(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Zs(e){var t=null,n;if(X[e]===void 0&&typeof module<"u"&&module&&module.exports&&_h(e))try{t=es._abbr,n=require,n("./locale/"+e),Et(t)}catch{X[e]=null}return X[e]}function Et(e,t){var n;return e&&(ye(t)?n=gt(e):n=Sa(e,t),n?es=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),es._abbr}function Sa(e,t){if(t!==null){var n,s=Ro;if(t.abbr=e,X[e]!=null)mo("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."),s=X[e]._config;else if(t.parentLocale!=null)if(X[t.parentLocale]!=null)s=X[t.parentLocale]._config;else if(n=Zs(t.parentLocale),n!=null)s=n._config;else return Xn[t.parentLocale]||(Xn[t.parentLocale]=[]),Xn[t.parentLocale].push({name:e,config:t}),null;return X[e]=new da(la(s,t)),Xn[e]&&Xn[e].forEach(function(r){Sa(r.name,r.config)}),Et(e),X[e]}else return delete X[e],null}function vh(e,t){if(t!=null){var n,s,r=Ro;X[e]!=null&&X[e].parentLocale!=null?X[e].set(la(X[e]._config,t)):(s=Zs(e),s!=null&&(r=s._config),t=la(r,t),s==null&&(t.abbr=e),n=new da(t),n.parentLocale=X[e],X[e]=n),Et(e)}else X[e]!=null&&(X[e].parentLocale!=null?(X[e]=X[e].parentLocale,e===Et()&&Et(e)):X[e]!=null&&delete X[e]);return X[e]}function gt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return es;if(!Ue(e)){if(t=Zs(e),t)return t;e=[e]}return yh(e)}function wh(){return ca(X)}function ba(e){var t,n=e._a;return n&&O(e).overflow===-2&&(t=n[ht]<0||n[ht]>11?ht:n[Je]<1||n[Je]>va(n[de],n[ht])?Je:n[ae]<0||n[ae]>24||n[ae]===24&&(n[We]!==0||n[ft]!==0||n[Jt]!==0)?ae:n[We]<0||n[We]>59?We:n[ft]<0||n[ft]>59?ft:n[Jt]<0||n[Jt]>999?Jt:-1,O(e)._overflowDayOfYear&&(t<de||t>Je)&&(t=Je),O(e)._overflowWeeks&&t===-1&&(t=bc),O(e)._overflowWeekday&&t===-1&&(t=Mc),O(e).overflow=t),e}var kh=/^\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)?)?$/,$h=/^\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)?)?$/,Sh=/Z|[+-]\d\d(?::?\d\d)?/,Qs=[["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]],Ma=[["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/]],bh=/^\/?Date\((-?\d+)/i,Mh=/^(?:(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}))$/,Dh={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 Co(e){var t,n,s=e._i,r=kh.exec(s)||$h.exec(s),a,i,o,u,l=Qs.length,d=Ma.length;if(r){for(O(e).iso=!0,t=0,n=l;t<n;t++)if(Qs[t][1].exec(r[1])){i=Qs[t][0],a=Qs[t][2]!==!1;break}if(i==null){e._isValid=!1;return}if(r[3]){for(t=0,n=d;t<n;t++)if(Ma[t][1].exec(r[3])){o=(r[2]||" ")+Ma[t][0];break}if(o==null){e._isValid=!1;return}}if(!a&&o!=null){e._isValid=!1;return}if(r[4])if(Sh.exec(r[4]))u="Z";else{e._isValid=!1;return}e._f=i+(o||"")+(u||""),Ya(e)}else e._isValid=!1}function Yh(e,t,n,s,r,a){var i=[Oh(e),So.indexOf(t),parseInt(n,10),parseInt(s,10),parseInt(r,10)];return a&&i.push(parseInt(a,10)),i}function Oh(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function xh(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Th(e,t,n){if(e){var s=xo.indexOf(e),r=new Date(t[0],t[1],t[2]).getDay();if(s!==r)return O(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function Nh(e,t,n){if(e)return Dh[e];if(t)return 0;var s=parseInt(n,10),r=s%100,a=(s-r)/100;return a*60+r}function Lo(e){var t=Mh.exec(xh(e._i)),n;if(t){if(n=Yh(t[4],t[3],t[2],t[5],t[6],t[7]),!Th(t[1],n,e))return;e._a=n,e._tzm=Nh(t[8],t[9],t[10]),e._d=Jn.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),O(e).rfc2822=!0}else e._isValid=!1}function Rh(e){var t=bh.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Co(e),e._isValid===!1)delete e._isValid;else return;if(Lo(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:p.createFromInputFallback(e)}p.createFromInputFallback=Ye("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(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function pn(e,t,n){return e??t??n}function Ph(e){var t=new Date(p.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Da(e){var t,n,s=[],r,a,i;if(!e._d){for(r=Ph(e),e._w&&e._a[Je]==null&&e._a[ht]==null&&Ch(e),e._dayOfYear!=null&&(i=pn(e._a[de],r[de]),(e._dayOfYear>Zn(i)||e._dayOfYear===0)&&(O(e)._overflowDayOfYear=!0),n=Jn(i,0,e._dayOfYear),e._a[ht]=n.getUTCMonth(),e._a[Je]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[ae]===24&&e._a[We]===0&&e._a[ft]===0&&e._a[Jt]===0&&(e._nextDay=!0,e._a[ae]=0),e._d=(e._useUTC?Jn:Hc).apply(null,s),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ae]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(O(e).weekdayMismatch=!0)}}function Ch(e){var t,n,s,r,a,i,o,u,l;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,i=4,n=pn(t.GG,e._a[de],Kn(z(),1,4).year),s=pn(t.W,1),r=pn(t.E,1),(r<1||r>7)&&(u=!0)):(a=e._locale._week.dow,i=e._locale._week.doy,l=Kn(z(),a,i),n=pn(t.gg,e._a[de],l.year),s=pn(t.w,l.week),t.d!=null?(r=t.d,(r<0||r>6)&&(u=!0)):t.e!=null?(r=t.e+a,(t.e<0||t.e>6)&&(u=!0)):r=a),s<1||s>mt(n,a,i)?O(e)._overflowWeeks=!0:u!=null?O(e)._overflowWeekday=!0:(o=Oo(n,s,r,a,i),e._a[de]=o.year,e._dayOfYear=o.dayOfYear)}p.ISO_8601=function(){},p.RFC_2822=function(){};function Ya(e){if(e._f===p.ISO_8601){Co(e);return}if(e._f===p.RFC_2822){Lo(e);return}e._a=[],O(e).empty=!0;var t=""+e._i,n,s,r,a,i,o=t.length,u=0,l,d;for(r=go(e._f,e._locale).match(ha)||[],d=r.length,n=0;n<d;n++)a=r[n],s=(t.match(kc(a,e))||[])[0],s&&(i=t.substr(0,t.indexOf(s)),i.length>0&&O(e).unusedInput.push(i),t=t.slice(t.indexOf(s)+s.length),u+=s.length),hn[a]?(s?O(e).empty=!1:O(e).unusedTokens.push(a),Sc(a,s,e)):e._strict&&!s&&O(e).unusedTokens.push(a);O(e).charsLeftOver=o-u,t.length>0&&O(e).unusedInput.push(t),e._a[ae]<=12&&O(e).bigHour===!0&&e._a[ae]>0&&(O(e).bigHour=void 0),O(e).parsedDateParts=e._a.slice(0),O(e).meridiem=e._meridiem,e._a[ae]=Lh(e._locale,e._a[ae],e._meridiem),l=O(e).era,l!==null&&(e._a[de]=e._locale.erasConvertYear(l,e._a[de])),Da(e),ba(e)}function Lh(e,t,n){var s;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(s=e.isPM(n),s&&t<12&&(t+=12),!s&&t===12&&(t=0)),t)}function Uh(e){var t,n,s,r,a,i,o=!1,u=e._f.length;if(u===0){O(e).invalidFormat=!0,e._d=new Date(NaN);return}for(r=0;r<u;r++)a=0,i=!1,t=ua({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[r],Ya(t),ia(t)&&(i=!0),a+=O(t).charsLeftOver,a+=O(t).unusedTokens.length*10,O(t).score=a,o?a<s&&(s=a,n=t):(s==null||a<s||i)&&(s=a,n=t,i&&(o=!0));Ht(e,n||t)}function jh(e){if(!e._d){var t=ma(e._i),n=t.day===void 0?t.date:t.day;e._a=lo([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(s){return s&&parseInt(s,10)}),Da(e)}}function Wh(e){var t=new qn(ba(Uo(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Uo(e){var t=e._i,n=e._f;return e._locale=e._locale||gt(e._l),t===null||n===void 0&&t===""?Ws({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),je(t)?new qn(ba(t)):(Gn(t)?e._d=t:Ue(n)?Uh(e):n?Ya(e):Fh(e),ia(e)||(e._d=null),e))}function Fh(e){var t=e._i;ye(t)?e._d=new Date(p.now()):Gn(t)?e._d=new Date(t.valueOf()):typeof t=="string"?Rh(e):Ue(t)?(e._a=lo(t.slice(0),function(n){return parseInt(n,10)}),Da(e)):Qt(t)?jh(e):dt(t)?e._d=new Date(t):p.createFromInputFallback(e)}function jo(e,t,n,s,r){var a={};return(t===!0||t===!1)&&(s=t,t=void 0),(n===!0||n===!1)&&(s=n,n=void 0),(Qt(e)&&ra(e)||Ue(e)&&e.length===0)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=r,a._l=n,a._i=e,a._f=t,a._strict=s,Wh(a)}function z(e,t,n,s){return jo(e,t,n,s,!1)}var Hh=Ye("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=z.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Ws()}),Eh=Ye("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=z.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Ws()});function Wo(e,t){var n,s;if(t.length===1&&Ue(t[0])&&(t=t[0]),!t.length)return z();for(n=t[0],s=1;s<t.length;++s)(!t[s].isValid()||t[s][e](n))&&(n=t[s]);return n}function Ih(){var e=[].slice.call(arguments,0);return Wo("isBefore",e)}function Ah(){var e=[].slice.call(arguments,0);return Wo("isAfter",e)}var Vh=function(){return Date.now?Date.now():+new Date},ts=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Gh(e){var t,n=!1,s,r=ts.length;for(t in e)if(W(e,t)&&!(ne.call(ts,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(s=0;s<r;++s)if(e[ts[s]]){if(n)return!1;parseFloat(e[ts[s]])!==N(e[ts[s]])&&(n=!0)}return!0}function qh(){return this._isValid}function Bh(){return Fe(NaN)}function Js(e){var t=ma(e),n=t.year||0,s=t.quarter||0,r=t.month||0,a=t.week||t.isoWeek||0,i=t.day||0,o=t.hour||0,u=t.minute||0,l=t.second||0,d=t.millisecond||0;this._isValid=Gh(t),this._milliseconds=+d+l*1e3+u*6e4+o*1e3*60*60,this._days=+i+a*7,this._months=+r+s*3+n*12,this._data={},this._locale=gt(),this._bubble()}function Ks(e){return e instanceof Js}function Oa(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function zh(e,t,n){var s=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),a=0,i;for(i=0;i<s;i++)N(e[i])!==N(t[i])&&a++;return a+r}function Fo(e,t){$(e,0,0,function(){var n=this.utcOffset(),s="+";return n<0&&(n=-n,s="-"),s+Qe(~~(n/60),2)+t+Qe(~~n%60,2)})}Fo("Z",":"),Fo("ZZ",""),v("Z",Gs),v("ZZ",Gs),V(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=xa(Gs,e)});var Zh=/([\+\-]|\d\d)/gi;function xa(e,t){var n=(t||"").match(e),s,r,a;return n===null?null:(s=n[n.length-1]||[],r=(s+"").match(Zh)||["-",0,0],a=+(r[1]*60)+N(r[2]),a===0?0:r[0]==="+"?a:-a)}function Ta(e,t){var n,s;return t._isUTC?(n=t.clone(),s=(je(e)||Gn(e)?e.valueOf():z(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+s),p.updateOffset(n,!1),n):z(e).local()}function Na(e){return-Math.round(e._d.getTimezoneOffset())}p.updateOffset=function(){};function Qh(e,t,n){var s=this._offset||0,r;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=xa(Gs,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(r=Na(this)),this._offset=e,this._isUTC=!0,r!=null&&this.add(r,"m"),s!==e&&(!t||this._changeInProgress?Ao(this,Fe(e-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,p.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?s:Na(this)}function Jh(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Kh(e){return this.utcOffset(0,e)}function Xh(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Na(this),"m")),this}function ef(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=xa(vc,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function tf(e){return this.isValid()?(e=e?z(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function nf(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function sf(){if(!ye(this._isDSTShifted))return this._isDSTShifted;var e={},t;return ua(e,this),e=Uo(e),e._a?(t=e._isUTC?ze(e._a):z(e._a),this._isDSTShifted=this.isValid()&&zh(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function rf(){return this.isValid()?!this._isUTC:!1}function af(){return this.isValid()?this._isUTC:!1}function Ho(){return this.isValid()?this._isUTC&&this._offset===0:!1}var of=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,uf=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Fe(e,t){var n=e,s=null,r,a,i;return Ks(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:dt(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(s=of.exec(e))?(r=s[1]==="-"?-1:1,n={y:0,d:N(s[Je])*r,h:N(s[ae])*r,m:N(s[We])*r,s:N(s[ft])*r,ms:N(Oa(s[Jt]*1e3))*r}):(s=uf.exec(e))?(r=s[1]==="-"?-1:1,n={y:Kt(s[2],r),M:Kt(s[3],r),w:Kt(s[4],r),d:Kt(s[5],r),h:Kt(s[6],r),m:Kt(s[7],r),s:Kt(s[8],r)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(i=lf(z(n.from),z(n.to)),n={},n.ms=i.milliseconds,n.M=i.months),a=new Js(n),Ks(e)&&W(e,"_locale")&&(a._locale=e._locale),Ks(e)&&W(e,"_isValid")&&(a._isValid=e._isValid),a}Fe.fn=Js.prototype,Fe.invalid=Bh;function Kt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Eo(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function lf(e,t){var n;return e.isValid()&&t.isValid()?(t=Ta(t,e),e.isBefore(t)?n=Eo(e,t):(n=Eo(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Io(e,t){return function(n,s){var r,a;return s!==null&&!isNaN(+s)&&(mo(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=s,s=a),r=Fe(n,s),Ao(this,r,e),this}}function Ao(e,t,n,s){var r=t._milliseconds,a=Oa(t._days),i=Oa(t._months);e.isValid()&&(s=s??!0,i&&Mo(e,Qn(e,"Month")+i*n),a&&$o(e,"Date",Qn(e,"Date")+a*n),r&&e._d.setTime(e._d.valueOf()+r*n),s&&p.updateOffset(e,a||i))}var df=Io(1,"add"),cf=Io(-1,"subtract");function Vo(e){return typeof e=="string"||e instanceof String}function hf(e){return je(e)||Gn(e)||Vo(e)||dt(e)||mf(e)||ff(e)||e===null||e===void 0}function ff(e){var t=Qt(e)&&!ra(e),n=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],r,a,i=s.length;for(r=0;r<i;r+=1)a=s[r],n=n||W(e,a);return t&&n}function mf(e){var t=Ue(e),n=!1;return t&&(n=e.filter(function(s){return!dt(s)&&Vo(e)}).length===0),t&&n}function gf(e){var t=Qt(e)&&!ra(e),n=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],r,a;for(r=0;r<s.length;r+=1)a=s[r],n=n||W(e,a);return t&&n}function pf(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function yf(e,t){arguments.length===1&&(arguments[0]?hf(arguments[0])?(e=arguments[0],t=void 0):gf(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||z(),s=Ta(n,this).startOf("day"),r=p.calendarFormat(this,s)||"sameElse",a=t&&(Ze(t[r])?t[r].call(this,n):t[r]);return this.format(a||this.localeData().calendar(r,this,z(n)))}function _f(){return new qn(this)}function vf(e,t){var n=je(e)?e:z(e);return this.isValid()&&n.isValid()?(t=Oe(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function wf(e,t){var n=je(e)?e:z(e);return this.isValid()&&n.isValid()?(t=Oe(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function kf(e,t,n,s){var r=je(e)?e:z(e),a=je(t)?t:z(t);return this.isValid()&&r.isValid()&&a.isValid()?(s=s||"()",(s[0]==="("?this.isAfter(r,n):!this.isBefore(r,n))&&(s[1]===")"?this.isBefore(a,n):!this.isAfter(a,n))):!1}function $f(e,t){var n=je(e)?e:z(e),s;return this.isValid()&&n.isValid()?(t=Oe(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(s=n.valueOf(),this.clone().startOf(t).valueOf()<=s&&s<=this.clone().endOf(t).valueOf())):!1}function Sf(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function bf(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Mf(e,t,n){var s,r,a;if(!this.isValid())return NaN;if(s=Ta(e,this),!s.isValid())return NaN;switch(r=(s.utcOffset()-this.utcOffset())*6e4,t=Oe(t),t){case"year":a=Xs(this,s)/12;break;case"month":a=Xs(this,s);break;case"quarter":a=Xs(this,s)/3;break;case"second":a=(this-s)/1e3;break;case"minute":a=(this-s)/6e4;break;case"hour":a=(this-s)/36e5;break;case"day":a=(this-s-r)/864e5;break;case"week":a=(this-s-r)/6048e5;break;default:a=this-s}return n?a:xe(a)}function Xs(e,t){if(e.date()<t.date())return-Xs(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),s=e.clone().add(n,"months"),r,a;return t-s<0?(r=e.clone().add(n-1,"months"),a=(t-s)/(s-r)):(r=e.clone().add(n+1,"months"),a=(t-s)/(r-s)),-(n+a)||0}p.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",p.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Df(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Yf(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?Hs(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Ze(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Hs(n,"Z")):Hs(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Of(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,s,r,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',s=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]',this.format(n+s+r+a)}function xf(e){e||(e=this.isUtc()?p.defaultFormatUtc:p.defaultFormat);var t=Hs(this,e);return this.localeData().postformat(t)}function Tf(e,t){return this.isValid()&&(je(e)&&e.isValid()||z(e).isValid())?Fe({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Nf(e){return this.from(z(),e)}function Rf(e,t){return this.isValid()&&(je(e)&&e.isValid()||z(e).isValid())?Fe({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Pf(e){return this.to(z(),e)}function Go(e){var t;return e===void 0?this._locale._abbr:(t=gt(e),t!=null&&(this._locale=t),this)}var qo=Ye("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Bo(){return this._locale}var er=1e3,yn=60*er,tr=60*yn,zo=(365*400+97)*24*tr;function _n(e,t){return(e%t+t)%t}function Zo(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-zo:new Date(e,t,n).valueOf()}function Qo(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-zo:Date.UTC(e,t,n)}function Cf(e){var t,n;if(e=Oe(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Qo:Zo,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=_n(t+(this._isUTC?0:this.utcOffset()*yn),tr);break;case"minute":t=this._d.valueOf(),t-=_n(t,yn);break;case"second":t=this._d.valueOf(),t-=_n(t,er);break}return this._d.setTime(t),p.updateOffset(this,!0),this}function Lf(e){var t,n;if(e=Oe(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Qo:Zo,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=tr-_n(t+(this._isUTC?0:this.utcOffset()*yn),tr)-1;break;case"minute":t=this._d.valueOf(),t+=yn-_n(t,yn)-1;break;case"second":t=this._d.valueOf(),t+=er-_n(t,er)-1;break}return this._d.setTime(t),p.updateOffset(this,!0),this}function Uf(){return this._d.valueOf()-(this._offset||0)*6e4}function jf(){return Math.floor(this.valueOf()/1e3)}function Wf(){return new Date(this.valueOf())}function Ff(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Hf(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Ef(){return this.isValid()?this.toISOString():null}function If(){return ia(this)}function Af(){return Ht({},O(this))}function Vf(){return O(this).overflow}function Gf(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}$("N",0,0,"eraAbbr"),$("NN",0,0,"eraAbbr"),$("NNN",0,0,"eraAbbr"),$("NNNN",0,0,"eraName"),$("NNNNN",0,0,"eraNarrow"),$("y",["y",1],"yo","eraYear"),$("y",["yy",2],0,"eraYear"),$("y",["yyy",3],0,"eraYear"),$("y",["yyyy",4],0,"eraYear"),v("N",Ra),v("NN",Ra),v("NNN",Ra),v("NNNN",nm),v("NNNNN",sm),V(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,s){var r=n._locale.erasParse(e,s,n._strict);r?O(n).era=r:O(n).invalidEra=e}),v("y",fn),v("yy",fn),v("yyy",fn),v("yyyy",fn),v("yo",rm),V(["y","yy","yyy","yyyy"],de),V(["yo"],function(e,t,n,s){var r;n._locale._eraYearOrdinalRegex&&(r=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[de]=n._locale.eraYearOrdinalParse(e,r):t[de]=parseInt(e,10)});function qf(e,t){var n,s,r,a=this._eras||gt("en")._eras;for(n=0,s=a.length;n<s;++n){switch(typeof a[n].since){case"string":r=p(a[n].since).startOf("day"),a[n].since=r.valueOf();break}switch(typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":r=p(a[n].until).startOf("day").valueOf(),a[n].until=r.valueOf();break}}return a}function Bf(e,t,n){var s,r,a=this.eras(),i,o,u;for(e=e.toUpperCase(),s=0,r=a.length;s<r;++s)if(i=a[s].name.toUpperCase(),o=a[s].abbr.toUpperCase(),u=a[s].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(o===e)return a[s];break;case"NNNN":if(i===e)return a[s];break;case"NNNNN":if(u===e)return a[s];break}else if([i,o,u].indexOf(e)>=0)return a[s]}function zf(e,t){var n=e.since<=e.until?1:-1;return t===void 0?p(e.since).year():p(e.since).year()+(t-e.offset)*n}function Zf(){var e,t,n,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),s[e].since<=n&&n<=s[e].until||s[e].until<=n&&n<=s[e].since)return s[e].name;return""}function Qf(){var e,t,n,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),s[e].since<=n&&n<=s[e].until||s[e].until<=n&&n<=s[e].since)return s[e].narrow;return""}function Jf(){var e,t,n,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),s[e].since<=n&&n<=s[e].until||s[e].until<=n&&n<=s[e].since)return s[e].abbr;return""}function Kf(){var e,t,n,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=r[e].since<=r[e].until?1:-1,s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return(this.year()-p(r[e].since).year())*n+r[e].offset;return this.year()}function Xf(e){return W(this,"_erasNameRegex")||Pa.call(this),e?this._erasNameRegex:this._erasRegex}function em(e){return W(this,"_erasAbbrRegex")||Pa.call(this),e?this._erasAbbrRegex:this._erasRegex}function tm(e){return W(this,"_erasNarrowRegex")||Pa.call(this),e?this._erasNarrowRegex:this._erasRegex}function Ra(e,t){return t.erasAbbrRegex(e)}function nm(e,t){return t.erasNameRegex(e)}function sm(e,t){return t.erasNarrowRegex(e)}function rm(e,t){return t._eraYearOrdinalRegex||fn}function Pa(){var e=[],t=[],n=[],s=[],r,a,i,o,u,l=this.eras();for(r=0,a=l.length;r<a;++r)i=ct(l[r].name),o=ct(l[r].abbr),u=ct(l[r].narrow),t.push(i),e.push(o),n.push(u),s.push(i),s.push(o),s.push(u);this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}$(0,["gg",2],0,function(){return this.weekYear()%100}),$(0,["GG",2],0,function(){return this.isoWeekYear()%100});function nr(e,t){$(0,[e,e.length],0,t)}nr("gggg","weekYear"),nr("ggggg","weekYear"),nr("GGGG","isoWeekYear"),nr("GGGGG","isoWeekYear"),v("G",Vs),v("g",Vs),v("GG",B,ke),v("gg",B,ke),v("GGGG",pa,ga),v("gggg",pa,ga),v("GGGGG",As,Es),v("ggggg",As,Es),zn(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,s){t[s.substr(0,2)]=N(e)}),zn(["gg","GG"],function(e,t,n,s){t[s]=p.parseTwoDigitYear(e)});function am(e){return Jo.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function im(e){return Jo.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function om(){return mt(this.year(),1,4)}function um(){return mt(this.isoWeekYear(),1,4)}function lm(){var e=this.localeData()._week;return mt(this.year(),e.dow,e.doy)}function dm(){var e=this.localeData()._week;return mt(this.weekYear(),e.dow,e.doy)}function Jo(e,t,n,s,r){var a;return e==null?Kn(this,s,r).year:(a=mt(e,s,r),t>a&&(t=a),cm.call(this,e,t,n,s,r))}function cm(e,t,n,s,r){var a=Oo(e,t,n,s,r),i=Jn(a.year,0,a.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}$("Q",0,"Qo","quarter"),v("Q",yo),V("Q",function(e,t){t[ht]=(N(e)-1)*3});function hm(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}$("D",["DD",2],"Do","date"),v("D",B,mn),v("DD",B,ke),v("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),V(["D","DD"],Je),V("Do",function(e,t){t[Je]=N(e.match(B)[0])});var Ko=gn("Date",!0);$("DDD",["DDDD",3],"DDDo","dayOfYear"),v("DDD",Is),v("DDDD",_o),V(["DDD","DDDD"],function(e,t,n){n._dayOfYear=N(e)});function fm(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}$("m",["mm",2],0,"minute"),v("m",B,ya),v("mm",B,ke),V(["m","mm"],We);var mm=gn("Minutes",!1);$("s",["ss",2],0,"second"),v("s",B,ya),v("ss",B,ke),V(["s","ss"],ft);var gm=gn("Seconds",!1);$("S",0,0,function(){return~~(this.millisecond()/100)}),$(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),$(0,["SSS",3],0,"millisecond"),$(0,["SSSS",4],0,function(){return this.millisecond()*10}),$(0,["SSSSS",5],0,function(){return this.millisecond()*100}),$(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),$(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),$(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),$(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),v("S",Is,yo),v("SS",Is,ke),v("SSS",Is,_o);var It,Xo;for(It="SSSS";It.length<=9;It+="S")v(It,fn);function pm(e,t){t[Jt]=N(("0."+e)*1e3)}for(It="S";It.length<=9;It+="S")V(It,pm);Xo=gn("Milliseconds",!1),$("z",0,0,"zoneAbbr"),$("zz",0,0,"zoneName");function ym(){return this._isUTC?"UTC":""}function _m(){return this._isUTC?"Coordinated Universal Time":""}var f=qn.prototype;f.add=df,f.calendar=yf,f.clone=_f,f.diff=Mf,f.endOf=Lf,f.format=xf,f.from=Tf,f.fromNow=Nf,f.to=Rf,f.toNow=Pf,f.get=Yc,f.invalidAt=Vf,f.isAfter=vf,f.isBefore=wf,f.isBetween=kf,f.isSame=$f,f.isSameOrAfter=Sf,f.isSameOrBefore=bf,f.isValid=If,f.lang=qo,f.locale=Go,f.localeData=Bo,f.max=Eh,f.min=Hh,f.parsingFlags=Af,f.set=Oc,f.startOf=Cf,f.subtract=cf,f.toArray=Ff,f.toObject=Hf,f.toDate=Wf,f.toISOString=Yf,f.inspect=Of,typeof Symbol<"u"&&Symbol.for!=null&&(f[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),f.toJSON=Ef,f.toString=Df,f.unix=jf,f.valueOf=Uf,f.creationData=Gf,f.eraName=Zf,f.eraNarrow=Qf,f.eraAbbr=Jf,f.eraYear=Kf,f.year=ko,f.isLeapYear=Dc,f.weekYear=am,f.isoWeekYear=im,f.quarter=f.quarters=hm,f.month=Do,f.daysInMonth=jc,f.week=f.weeks=Gc,f.isoWeek=f.isoWeeks=qc,f.weeksInYear=lm,f.weeksInWeekYear=dm,f.isoWeeksInYear=om,f.isoWeeksInISOWeekYear=um,f.date=Ko,f.day=f.days=ah,f.weekday=ih,f.isoWeekday=oh,f.dayOfYear=fm,f.hour=f.hours=mh,f.minute=f.minutes=mm,f.second=f.seconds=gm,f.millisecond=f.milliseconds=Xo,f.utcOffset=Qh,f.utc=Kh,f.local=Xh,f.parseZone=ef,f.hasAlignedHourOffset=tf,f.isDST=nf,f.isLocal=rf,f.isUtcOffset=af,f.isUtc=Ho,f.isUTC=Ho,f.zoneAbbr=ym,f.zoneName=_m,f.dates=Ye("dates accessor is deprecated. Use date instead.",Ko),f.months=Ye("months accessor is deprecated. Use month instead",Do),f.years=Ye("years accessor is deprecated. Use year instead",ko),f.zone=Ye("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Jh),f.isDSTShifted=Ye("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",sf);function vm(e){return z(e*1e3)}function wm(){return z.apply(null,arguments).parseZone()}function eu(e){return e}var F=da.prototype;F.calendar=rc,F.longDateFormat=uc,F.invalidDate=dc,F.ordinal=fc,F.preparse=eu,F.postformat=eu,F.relativeTime=gc,F.pastFuture=pc,F.set=nc,F.eras=qf,F.erasParse=Bf,F.erasConvertYear=zf,F.erasAbbrRegex=em,F.erasNameRegex=Xf,F.erasNarrowRegex=tm,F.months=Pc,F.monthsShort=Cc,F.monthsParse=Uc,F.monthsRegex=Fc,F.monthsShortRegex=Wc,F.week=Ec,F.firstDayOfYear=Vc,F.firstDayOfWeek=Ac,F.weekdays=eh,F.weekdaysMin=nh,F.weekdaysShort=th,F.weekdaysParse=rh,F.weekdaysRegex=uh,F.weekdaysShortRegex=lh,F.weekdaysMinRegex=dh,F.isPM=hh,F.meridiem=gh;function sr(e,t,n,s){var r=gt(),a=ze().set(s,t);return r[n](a,e)}function tu(e,t,n){if(dt(e)&&(t=e,e=void 0),e=e||"",t!=null)return sr(e,t,n,"month");var s,r=[];for(s=0;s<12;s++)r[s]=sr(e,s,n,"month");return r}function Ca(e,t,n,s){typeof e=="boolean"?(dt(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,dt(t)&&(n=t,t=void 0),t=t||"");var r=gt(),a=e?r._week.dow:0,i,o=[];if(n!=null)return sr(t,(n+a)%7,s,"day");for(i=0;i<7;i++)o[i]=sr(t,(i+a)%7,s,"day");return o}function km(e,t){return tu(e,t,"months")}function $m(e,t){return tu(e,t,"monthsShort")}function Sm(e,t,n){return Ca(e,t,n,"weekdays")}function bm(e,t,n){return Ca(e,t,n,"weekdaysShort")}function Mm(e,t,n){return Ca(e,t,n,"weekdaysMin")}Et("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(e){var t=e%10,n=N(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}}),p.lang=Ye("moment.lang is deprecated. Use moment.locale instead.",Et),p.langData=Ye("moment.langData is deprecated. Use moment.localeData instead.",gt);var pt=Math.abs;function Dm(){var e=this._data;return this._milliseconds=pt(this._milliseconds),this._days=pt(this._days),this._months=pt(this._months),e.milliseconds=pt(e.milliseconds),e.seconds=pt(e.seconds),e.minutes=pt(e.minutes),e.hours=pt(e.hours),e.months=pt(e.months),e.years=pt(e.years),this}function nu(e,t,n,s){var r=Fe(t,n);return e._milliseconds+=s*r._milliseconds,e._days+=s*r._days,e._months+=s*r._months,e._bubble()}function Ym(e,t){return nu(this,e,t,1)}function Om(e,t){return nu(this,e,t,-1)}function su(e){return e<0?Math.floor(e):Math.ceil(e)}function xm(){var e=this._milliseconds,t=this._days,n=this._months,s=this._data,r,a,i,o,u;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=su(La(n)+t)*864e5,t=0,n=0),s.milliseconds=e%1e3,r=xe(e/1e3),s.seconds=r%60,a=xe(r/60),s.minutes=a%60,i=xe(a/60),s.hours=i%24,t+=xe(i/24),u=xe(ru(t)),n+=u,t-=su(La(u)),o=xe(n/12),n%=12,s.days=t,s.months=n,s.years=o,this}function ru(e){return e*4800/146097}function La(e){return e*146097/4800}function Tm(e){if(!this.isValid())return NaN;var t,n,s=this._milliseconds;if(e=Oe(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+s/864e5,n=this._months+ru(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(La(this._months)),e){case"week":return t/7+s/6048e5;case"day":return t+s/864e5;case"hour":return t*24+s/36e5;case"minute":return t*1440+s/6e4;case"second":return t*86400+s/1e3;case"millisecond":return Math.floor(t*864e5)+s;default:throw new Error("Unknown unit "+e)}}function yt(e){return function(){return this.as(e)}}var au=yt("ms"),Nm=yt("s"),Rm=yt("m"),Pm=yt("h"),Cm=yt("d"),Lm=yt("w"),Um=yt("M"),jm=yt("Q"),Wm=yt("y"),Fm=au;function Hm(){return Fe(this)}function Em(e){return e=Oe(e),this.isValid()?this[e+"s"]():NaN}function Xt(e){return function(){return this.isValid()?this._data[e]:NaN}}var Im=Xt("milliseconds"),Am=Xt("seconds"),Vm=Xt("minutes"),Gm=Xt("hours"),qm=Xt("days"),Bm=Xt("months"),zm=Xt("years");function Zm(){return xe(this.days()/7)}var _t=Math.round,vn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Qm(e,t,n,s,r){return r.relativeTime(t||1,!!n,e,s)}function Jm(e,t,n,s){var r=Fe(e).abs(),a=_t(r.as("s")),i=_t(r.as("m")),o=_t(r.as("h")),u=_t(r.as("d")),l=_t(r.as("M")),d=_t(r.as("w")),h=_t(r.as("y")),c=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||i<=1&&["m"]||i<n.m&&["mm",i]||o<=1&&["h"]||o<n.h&&["hh",o]||u<=1&&["d"]||u<n.d&&["dd",u];return n.w!=null&&(c=c||d<=1&&["w"]||d<n.w&&["ww",d]),c=c||l<=1&&["M"]||l<n.M&&["MM",l]||h<=1&&["y"]||["yy",h],c[2]=t,c[3]=+e>0,c[4]=s,Qm.apply(null,c)}function Km(e){return e===void 0?_t:typeof e=="function"?(_t=e,!0):!1}function Xm(e,t){return vn[e]===void 0?!1:t===void 0?vn[e]:(vn[e]=t,e==="s"&&(vn.ss=t-1),!0)}function eg(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,s=vn,r,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(s=Object.assign({},vn,t),t.s!=null&&t.ss==null&&(s.ss=t.s-1)),r=this.localeData(),a=Jm(this,!n,s,r),n&&(a=r.pastFuture(+this,a)),r.postformat(a)}var Ua=Math.abs;function wn(e){return(e>0)-(e<0)||+e}function rr(){if(!this.isValid())return this.localeData().invalidDate();var e=Ua(this._milliseconds)/1e3,t=Ua(this._days),n=Ua(this._months),s,r,a,i,o=this.asSeconds(),u,l,d,h;return o?(s=xe(e/60),r=xe(s/60),e%=60,s%=60,a=xe(n/12),n%=12,i=e?e.toFixed(3).replace(/\.?0+$/,""):"",u=o<0?"-":"",l=wn(this._months)!==wn(o)?"-":"",d=wn(this._days)!==wn(o)?"-":"",h=wn(this._milliseconds)!==wn(o)?"-":"",u+"P"+(a?l+a+"Y":"")+(n?l+n+"M":"")+(t?d+t+"D":"")+(r||s||e?"T":"")+(r?h+r+"H":"")+(s?h+s+"M":"")+(e?h+i+"S":"")):"P0D"}var C=Js.prototype;C.isValid=qh,C.abs=Dm,C.add=Ym,C.subtract=Om,C.as=Tm,C.asMilliseconds=au,C.asSeconds=Nm,C.asMinutes=Rm,C.asHours=Pm,C.asDays=Cm,C.asWeeks=Lm,C.asMonths=Um,C.asQuarters=jm,C.asYears=Wm,C.valueOf=Fm,C._bubble=xm,C.clone=Hm,C.get=Em,C.milliseconds=Im,C.seconds=Am,C.minutes=Vm,C.hours=Gm,C.days=qm,C.weeks=Zm,C.months=Bm,C.years=zm,C.humanize=eg,C.toISOString=rr,C.toString=rr,C.toJSON=rr,C.locale=Go,C.localeData=Bo,C.toIsoString=Ye("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",rr),C.lang=qo,$("X",0,0,"unix"),$("x",0,0,"valueOf"),v("x",Vs),v("X",wc),V("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)}),V("x",function(e,t,n){n._d=new Date(N(e))});//! moment.js
10
- p.version="2.30.1",ec(z),p.fn=f,p.min=Ih,p.max=Ah,p.now=Vh,p.utc=ze,p.unix=vm,p.months=km,p.isDate=Gn,p.locale=Et,p.invalid=Ws,p.duration=Fe,p.isMoment=je,p.weekdays=Sm,p.parseZone=wm,p.localeData=gt,p.isDuration=Ks,p.monthsShort=$m,p.weekdaysMin=Mm,p.defineLocale=Sa,p.updateLocale=vh,p.locales=wh,p.weekdaysShort=bm,p.normalizeUnits=Oe,p.relativeTimeRounding=Km,p.relativeTimeThreshold=Xm,p.calendarFormat=pf,p.prototype=f,p.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"};const tg=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,ng=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,iu=/(janv\.?|févr\.?|avr\.?|juil\.?|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,ja=[/^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],sg={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:iu,monthsShortRegex:iu,monthsStrictRegex:tg,monthsShortStrictRegex:ng,monthsParse:ja,longMonthsParse:ja,shortMonthsParse:ja,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:(e,t)=>{switch(t){case"D":return e+(e===1?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(e===1?"er":"e");case"w":case"W":return e+(e===1?"re":"e")}},week:{dow:1,doy:4}};p.locale("fr",sg);const ar=(e,t,n=!0)=>(n?e.getFullYear()===t.getFullYear():!0)&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),ou=()=>p().locale("fr").subtract(1,"days").toDate(),kn=e=>new Date>e,uu=(e,t,n)=>{const s={...e},r=Object.entries(e);for(const[a,i]of r){const o=t[a];o?s[a]=n(i,o):s[a]=i}return s},lu=new Y.Schema({createdBy:String,members:{type:[String],default:[]},limit:{type:Number,default:3},name:String,description:String,channelId:String,meta:{xp:{type:Number,default:0},berry:{type:Number,default:0},buffs:{xp:{boost:{type:Number,default:0},expireAt:{type:Date,default:null}}}},disintegration:{type:Number,default:100},faction:String,stats:{type:Object,default:null},quest:{completed:[String],daily:{type:Object,default:{}},meta:{streak80Percent:{type:Number,default:0},maxVoiceMembers:{type:Number,default:0},actualVoiceMembers:{amount:{type:Number,default:0},connectedAt:{type:Date,default:new Date}}}},ornament:{unlockedBadges:[String]}},{timestamps:!0});lu.index({"meta.xp":-1});const ir=Y.model("Crew",lu),rg=(e,t)=>Math.ceil(t*(e.disintegration/100)*(du(e)||1)),du=e=>new Date>=(e.meta.buffs.xp.expireAt??new Date(0))?!1:e.meta.buffs.xp.boost,ag=Object.freeze(Object.defineProperty({__proto__:null,calcXp:rg,getCrewRank:async e=>(await ir.aggregate([{$setWindowFields:{sortBy:{"meta.xp":-1},output:{rank:{$rank:{}}}}},{$match:{_id:e._id}},{$project:{_id:1,"meta.xp":1,rank:1}}]))[0],hasXpBuff:du,isAllDailyCompleted:(e,t)=>{for(const[,n]of Object.entries(e.quest.daily))if(!n||!ar(n[t],new Date))return!1;return Object.keys(e.quest.daily).length===e.members.length}},Symbol.toStringTag,{value:"Module"})),vt=async(e,t,n=!1)=>{await ir.updateOne({_id:e},t,{upsert:n})},ig=Object.freeze(Object.defineProperty({__proto__:null,addBerry:async(e,t,n)=>{await vt(e,{$inc:{"meta.berry":t,[`stats.${n.toHexString()}.berry`]:t}})},addXp:async(e,t,n)=>{await vt(e,{$inc:{"meta.xp":t,[`stats.${n.toHexString()}.xp`]:t}})},addXpBuff:async(e,t)=>{await vt(e,[{$set:{"meta.buffs.xp":{$cond:{if:{$or:[{$eq:["$meta.buffs.xp.expireAt",null]},{lt:["$meta.buffs.xp.expireAt",new Date]}]},then:{boost:1.1,expireAt:{$add:[new Date,t*60*60*1e3]}},else:{boost:1.1,expireAt:{$add:["$meta.buffs.xp.expireAt",t*60*60*1e3]}}}}}}])},completeDailyQuest:async(e,t,n)=>{await vt(e,[{$addFields:{[`quest.daily.${t}.${n}`]:new Date}}])},completeQuest:async(e,t)=>{await vt(e,{$addToSet:{"quest.completed":t}})},increaseLimit:async(e,t)=>{await vt(e,{$inc:{limit:1},$set:{"meta.berry":-t}})},repair:async(e,t)=>{await vt(e,[{$set:{disintegration:{$min:[{$add:["$disintegration",t]},100]}}}])},unlockBadge:async(e,t,n)=>{t.isProgressive?await vt(e,{$addToSet:{"ornament.unlockedBadges":`${t.id}_${n}`}}):await vt(e,{$addToSet:{"ornament.unlockedBadges":t.id}})}},Symbol.toStringTag,{value:"Module"})),og=async(e,t={})=>{const n=await ir.findById(e,t);return n||null},cu=new Y.Schema({senderId:String,receiverId:String,amount:Number,gameMode:String,meta:{rps:{type:String,default:void 0}}});cu.index({receiverId:1});const or=Y.model("Invitations",cu),ug=async e=>{const t=await or.findOne({...e});return t||null},lg=async e=>await or.create({...e}),dg=async e=>{await or.deleteMany({...e})};var en=(e=>(e.BASIC="BASIC",e.COMMON="COMMON",e.RARE="RARE",e.EPIC="EPIC",e.LEGENDARY="LEGENDARY",e.MYTHIC="MYTHIC",e))(en||{});en.BASIC,en.COMMON,en.RARE,en.EPIC,en.LEGENDARY,en.MYTHIC;const cg=["vitality","strength","agility","intelligence","chance","wisdom"],hg=100,fg=10,mg="citizen",gg={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};let pg=class ao{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||gg,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,s,r){return r&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${s}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new ao(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new ao(this.logger,t)}};var Ke=new pg;let ur=class{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(s=>{this.observers[s]||(this.observers[s]=new Map);const r=this.observers[s].get(n)||0;this.observers[s].set(n,r+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,s=new Array(n>1?n-1:0),r=1;r<n;r++)s[r-1]=arguments[r];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(a=>{let[i,o]=a;for(let u=0;u<o;u++)i(...s)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(a=>{let[i,o]=a;for(let u=0;u<o;u++)i.apply(i,[t,...s])})}};function ns(){let e,t;const n=new Promise((s,r)=>{e=s,t=r});return n.resolve=e,n.reject=t,n}function hu(e){return e==null?"":""+e}function yg(e,t,n){e.forEach(s=>{t[s]&&(n[s]=t[s])})}const _g=/###/g;function ss(e,t,n){function s(o){return o&&o.indexOf("###")>-1?o.replace(_g,"."):o}function r(){return!e||typeof e=="string"}const a=typeof t!="string"?t:t.split(".");let i=0;for(;i<a.length-1;){if(r())return{};const o=s(a[i]);!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={},++i}return r()?{}:{obj:e,k:s(a[i])}}function fu(e,t,n){const{obj:s,k:r}=ss(e,t,Object);if(s!==void 0||t.length===1){s[r]=n;return}let a=t[t.length-1],i=t.slice(0,t.length-1),o=ss(e,i,Object);for(;o.obj===void 0&&i.length;)a=`${i[i.length-1]}.${a}`,i=i.slice(0,i.length-1),o=ss(e,i,Object),o&&o.obj&&typeof o.obj[`${o.k}.${a}`]<"u"&&(o.obj=void 0);o.obj[`${o.k}.${a}`]=n}function vg(e,t,n,s){const{obj:r,k:a}=ss(e,t,Object);r[a]=r[a]||[],r[a].push(n)}function lr(e,t){const{obj:n,k:s}=ss(e,t);if(n)return n[s]}function wg(e,t,n){const s=lr(e,n);return s!==void 0?s:lr(t,n)}function mu(e,t,n){for(const s in t)s!=="__proto__"&&s!=="constructor"&&(s in e?typeof e[s]=="string"||e[s]instanceof String||typeof t[s]=="string"||t[s]instanceof String?n&&(e[s]=t[s]):mu(e[s],t[s],n):e[s]=t[s]);return e}function $n(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var kg={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function $g(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>kg[t]):e}let Sg=class{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const s=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,s),this.regExpQueue.push(t),s}};const bg=[" ",",","?","!",";"],Mg=new Sg(20);function Dg(e,t,n){t=t||"",n=n||"";const s=bg.filter(i=>t.indexOf(i)<0&&n.indexOf(i)<0);if(s.length===0)return!0;const r=Mg.getRegExp(`(${s.map(i=>i==="?"?"\\?":i).join("|")})`);let a=!r.test(e);if(!a){const i=e.indexOf(n);i>0&&!r.test(e.substring(0,i))&&(a=!0)}return a}function Wa(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const s=t.split(n);let r=e;for(let a=0;a<s.length;){if(!r||typeof r!="object")return;let i,o="";for(let u=a;u<s.length;++u)if(u!==a&&(o+=n),o+=s[u],i=r[o],i!==void 0){if(["string","number","boolean"].indexOf(typeof i)>-1&&u<s.length-1)continue;a+=u-a+1;break}r=i}return r}function dr(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}let gu=class extends ur{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,s){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,i=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let o;t.indexOf(".")>-1?o=t.split("."):(o=[t,n],s&&(Array.isArray(s)?o.push(...s):typeof s=="string"&&a?o.push(...s.split(a)):o.push(s)));const u=lr(this.data,o);return!u&&!n&&!s&&t.indexOf(".")>-1&&(t=o[0],n=o[1],s=o.slice(2).join(".")),u||!i||typeof s!="string"?u:Wa(this.data&&this.data[t]&&this.data[t][n],s,a)}addResource(t,n,s,r){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const i=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let o=[t,n];s&&(o=o.concat(i?s.split(i):s)),t.indexOf(".")>-1&&(o=t.split("."),r=n,n=o[1]),this.addNamespaces(n),fu(this.data,o,r),a.silent||this.emit("added",t,n,s,r)}addResources(t,n,s){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const a in s)(typeof s[a]=="string"||Array.isArray(s[a]))&&this.addResource(t,n,a,s[a],{silent:!0});r.silent||this.emit("added",t,n,s)}addResourceBundle(t,n,s,r,a){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},o=[t,n];t.indexOf(".")>-1&&(o=t.split("."),r=s,s=n,n=o[1]),this.addNamespaces(n);let u=lr(this.data,o)||{};i.skipCopy||(s=JSON.parse(JSON.stringify(s))),r?mu(u,s,a):u={...u,...s},fu(this.data,o,u),i.silent||this.emit("added",t,n,s)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(s=>n[s]&&Object.keys(n[s]).length>0)}toJSON(){return this.data}};var pu={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,s,r){return e.forEach(a=>{this.processors[a]&&(t=this.processors[a].process(t,n,s,r))}),t}};const yu={};let _u=class Qd extends ur{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),yg(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ke.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const s=this.resolve(t,n);return s&&s.res!==void 0}extractFromKey(t,n){let s=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");const r=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let a=n.ns||this.options.defaultNS||[];const i=s&&t.indexOf(s)>-1,o=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!Dg(t,s,r);if(i&&!o){const u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces:a};const l=t.split(s);(s!==r||s===r&&this.options.ns.indexOf(l[0])>-1)&&(a=l.shift()),t=l.join(r)}return typeof a=="string"&&(a=[a]),{key:t,namespaces:a}}translate(t,n,s){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const r=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:i,namespaces:o}=this.extractFromKey(t[t.length-1],n),u=o[o.length-1],l=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&l.toLowerCase()==="cimode"){if(d){const le=n.nsSeparator||this.options.nsSeparator;return r?{res:`${u}${le}${i}`,usedKey:i,exactUsedKey:i,usedLng:l,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:`${u}${le}${i}`}return r?{res:i,usedKey:i,exactUsedKey:i,usedLng:l,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:i}const h=this.resolve(t,n);let c=h&&h.res;const D=h&&h.usedKey||i,j=h&&h.exactUsedKey||i,me=Object.prototype.toString.apply(c),we=["[object Number]","[object Function]","[object RegExp]"],be=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,ge=!this.i18nFormat||this.i18nFormat.handleAsObject;if(ge&&c&&typeof c!="string"&&typeof c!="boolean"&&typeof c!="number"&&we.indexOf(me)<0&&!(typeof be=="string"&&Array.isArray(c))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const le=this.options.returnedObjectHandler?this.options.returnedObjectHandler(D,c,{...n,ns:o}):`key '${i} (${this.language})' returned an object instead of string.`;return r?(h.res=le,h.usedParams=this.getUsedParamsDetails(n),h):le}if(a){const le=Array.isArray(c),ue=le?[]:{},Wt=le?j:D;for(const pe in c)if(Object.prototype.hasOwnProperty.call(c,pe)){const Ft=`${Wt}${a}${pe}`;ue[pe]=this.translate(Ft,{...n,joinArrays:!1,ns:o}),ue[pe]===Ft&&(ue[pe]=c[pe])}c=ue}}else if(ge&&typeof be=="string"&&Array.isArray(c))c=c.join(be),c&&(c=this.extendTranslation(c,t,n,s));else{let le=!1,ue=!1;const Wt=n.count!==void 0&&typeof n.count!="string",pe=Qd.hasDefaultValue(n),Ft=Wt?this.pluralResolver.getSuffix(l,n.count,n):"",E$=n.ordinal&&Wt?this.pluralResolver.getSuffix(l,n.count,{ordinal:!1}):"",Bd=Wt&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),Cs=Bd&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${Ft}`]||n[`defaultValue${E$}`]||n.defaultValue;!this.isValidLookup(c)&&pe&&(le=!0,c=Cs),this.isValidLookup(c)||(ue=!0,c=i);const I$=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&ue?void 0:c,Ls=pe&&Cs!==c&&this.options.updateMissing;if(ue||le||Ls){if(this.logger.log(Ls?"updateKey":"missingKey",l,u,i,Ls?Cs:c),a){const Me=this.resolve(i,{...n,keySeparator:!1});Me&&Me.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Us=[];const sa=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&sa&&sa[0])for(let Me=0;Me<sa.length;Me++)Us.push(sa[Me]);else this.options.saveMissingTo==="all"?Us=this.languageUtils.toResolveHierarchy(n.lng||this.language):Us.push(n.lng||this.language);const zd=(Me,cn,js)=>{const Zd=pe&&js!==c?js:I$;this.options.missingKeyHandler?this.options.missingKeyHandler(Me,u,cn,Zd,Ls,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(Me,u,cn,Zd,Ls,n),this.emit("missingKey",Me,u,cn,c)};this.options.saveMissing&&(this.options.saveMissingPlurals&&Wt?Us.forEach(Me=>{const cn=this.pluralResolver.getSuffixes(Me,n);Bd&&n[`defaultValue${this.options.pluralSeparator}zero`]&&cn.indexOf(`${this.options.pluralSeparator}zero`)<0&&cn.push(`${this.options.pluralSeparator}zero`),cn.forEach(js=>{zd([Me],i+js,n[`defaultValue${js}`]||Cs)})}):zd(Us,i,Cs))}c=this.extendTranslation(c,t,n,h,s),ue&&c===i&&this.options.appendNamespaceToMissingKey&&(c=`${u}:${i}`),(ue||le)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?c=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}:${i}`:i,le?c:void 0):c=this.options.parseMissingKeyHandler(c))}return r?(h.res=c,h.usedParams=this.getUsedParamsDetails(n),h):c}extendTranslation(t,n,s,r,a){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...s},s.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init({...s,interpolation:{...this.options.interpolation,...s.interpolation}});const l=typeof t=="string"&&(s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(l){const c=t.match(this.interpolator.nestingRegexp);d=c&&c.length}let h=s.replace&&typeof s.replace!="string"?s.replace:s;if(this.options.interpolation.defaultVariables&&(h={...this.options.interpolation.defaultVariables,...h}),t=this.interpolator.interpolate(t,h,s.lng||this.language||r.usedLng,s),l){const c=t.match(this.interpolator.nestingRegexp),D=c&&c.length;d<D&&(s.nest=!1)}!s.lng&&this.options.compatibilityAPI!=="v1"&&r&&r.res&&(s.lng=this.language||r.usedLng),s.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var c=arguments.length,D=new Array(c),j=0;j<c;j++)D[j]=arguments[j];return a&&a[0]===D[0]&&!s.context?(i.logger.warn(`It seems you are nesting recursively key: ${D[0]} in key: ${n[0]}`),null):i.translate(...D,n)},s)),s.interpolation&&this.interpolator.reset()}const o=s.postProcess||this.options.postProcess,u=typeof o=="string"?[o]:o;return t!=null&&u&&u.length&&s.applyPostProcessor!==!1&&(t=pu.handle(u,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(s)},...s}:s,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s,r,a,i,o;return typeof t=="string"&&(t=[t]),t.forEach(u=>{if(this.isValidLookup(s))return;const l=this.extractFromKey(u,n),d=l.key;r=d;let h=l.namespaces;this.options.fallbackNS&&(h=h.concat(this.options.fallbackNS));const c=n.count!==void 0&&typeof n.count!="string",D=c&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),j=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",me=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);h.forEach(we=>{this.isValidLookup(s)||(o=we,!yu[`${me[0]}-${we}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(yu[`${me[0]}-${we}`]=!0,this.logger.warn(`key "${r}" for languages "${me.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),me.forEach(be=>{if(this.isValidLookup(s))return;i=be;const ge=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(ge,d,be,we,n);else{let ue;c&&(ue=this.pluralResolver.getSuffix(be,n.count,n));const Wt=`${this.options.pluralSeparator}zero`,pe=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(ge.push(d+ue),n.ordinal&&ue.indexOf(pe)===0&&ge.push(d+ue.replace(pe,this.options.pluralSeparator)),D&&ge.push(d+Wt)),j){const Ft=`${d}${this.options.contextSeparator}${n.context}`;ge.push(Ft),c&&(ge.push(Ft+ue),n.ordinal&&ue.indexOf(pe)===0&&ge.push(Ft+ue.replace(pe,this.options.pluralSeparator)),D&&ge.push(Ft+Wt))}}let le;for(;le=ge.pop();)this.isValidLookup(s)||(a=le,s=this.getResource(be,we,le,n))}))})}),{res:s,usedKey:r,exactUsedKey:a,usedLng:i,usedNS:o}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,s){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,s,r):this.resourceStore.getResource(t,n,s,r)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],s=t.replace&&typeof t.replace!="string";let r=s?t.replace:t;if(s&&typeof t.count<"u"&&(r.count=t.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!s){r={...r};for(const a of n)delete r[a]}return r}static hasDefaultValue(t){const n="defaultValue";for(const s in t)if(Object.prototype.hasOwnProperty.call(t,s)&&n===s.substring(0,n.length)&&t[s]!==void 0)return!0;return!1}};function Fa(e){return e.charAt(0).toUpperCase()+e.slice(1)}let vu=class{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ke.create("languageUtils")}getScriptPartFromCode(t){if(t=dr(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=dr(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let s=t.split("-");return this.options.lowerCaseLng?s=s.map(r=>r.toLowerCase()):s.length===2?(s[0]=s[0].toLowerCase(),s[1]=s[1].toUpperCase(),n.indexOf(s[1].toLowerCase())>-1&&(s[1]=Fa(s[1].toLowerCase()))):s.length===3&&(s[0]=s[0].toLowerCase(),s[1].length===2&&(s[1]=s[1].toUpperCase()),s[0]!=="sgn"&&s[2].length===2&&(s[2]=s[2].toUpperCase()),n.indexOf(s[1].toLowerCase())>-1&&(s[1]=Fa(s[1].toLowerCase())),n.indexOf(s[2].toLowerCase())>-1&&(s[2]=Fa(s[2].toLowerCase()))),s.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(s=>{if(n)return;const r=this.formatLanguageCode(s);(!this.options.supportedLngs||this.isSupportedCode(r))&&(n=r)}),!n&&this.options.supportedLngs&&t.forEach(s=>{if(n)return;const r=this.getLanguagePartFromCode(s);if(this.isSupportedCode(r))return n=r;n=this.options.supportedLngs.find(a=>{if(a===r||!(a.indexOf("-")<0&&r.indexOf("-")<0)&&(a.indexOf("-")>0&&r.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===r||a.indexOf(r)===0&&r.length>1))return a})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let s=t[n];return s||(s=t[this.getScriptPartFromCode(n)]),s||(s=t[this.formatLanguageCode(n)]),s||(s=t[this.getLanguagePartFromCode(n)]),s||(s=t.default),s||[]}toResolveHierarchy(t,n){const s=this.getFallbackCodes(n||this.options.fallbackLng||[],t),r=[],a=i=>{i&&(this.isSupportedCode(i)?r.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):typeof t=="string"&&a(this.formatLanguageCode(t)),s.forEach(i=>{r.indexOf(i)<0&&a(this.formatLanguageCode(i))}),r}},Yg=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Og={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const xg=["v1","v2","v3"],Tg=["v4"],wu={zero:0,one:1,two:2,few:3,many:4,other:5};function Ng(){const e={};return Yg.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:Og[t.fc]}})}),e}let Rg=class{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Ke.create("pluralResolver"),(!this.options.compatibilityJSON||Tg.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Ng()}addRule(t,n){this.rules[t]=n}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(dr(t==="dev"?"en":t),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const s=this.getRule(t,n);return this.shouldUseIntlApi()?s&&s.resolvedOptions().pluralCategories.length>1:s&&s.numbers.length>1}getPluralFormsOfKey(t,n){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,s).map(r=>`${n}${r}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const s=this.getRule(t,n);return s?this.shouldUseIntlApi()?s.resolvedOptions().pluralCategories.sort((r,a)=>wu[r]-wu[a]).map(r=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r}`):s.numbers.map(r=>this.getSuffix(t,r,n)):[]}getSuffix(t,n){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=this.getRule(t,s);return r?this.shouldUseIntlApi()?`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${r.select(n)}`:this.getSuffixRetroCompatible(r,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const s=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let r=t.numbers[s];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(r===2?r="plural":r===1&&(r=""));const a=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return this.options.compatibilityJSON==="v1"?r===1?"":typeof r=="number"?`_plural_${r.toString()}`:a():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?a():this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString()}shouldUseIntlApi(){return!xg.includes(this.options.compatibilityJSON)}};function ku(e,t,n){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=wg(e,t,n);return!a&&r&&typeof n=="string"&&(a=Wa(e,n,s),a===void 0&&(a=Wa(t,n,s))),a}let Pg=class{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ke.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:s,useRawValueToEscape:r,prefix:a,prefixEscaped:i,suffix:o,suffixEscaped:u,formatSeparator:l,unescapeSuffix:d,unescapePrefix:h,nestingPrefix:c,nestingPrefixEscaped:D,nestingSuffix:j,nestingSuffixEscaped:me,nestingOptionsSeparator:we,maxReplaces:be,alwaysFormat:ge}=t.interpolation;this.escape=n!==void 0?n:$g,this.escapeValue=s!==void 0?s:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=a?$n(a):i||"{{",this.suffix=o?$n(o):u||"}}",this.formatSeparator=l||",",this.unescapePrefix=d?"":h||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=c?$n(c):D||$n("$t("),this.nestingSuffix=j?$n(j):me||$n(")"),this.nestingOptionsSeparator=we||",",this.maxReplaces=be||1e3,this.alwaysFormat=ge!==void 0?ge:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,s)=>n&&n.source===s?(n.lastIndex=0,n):new RegExp(s,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,s,r){let a,i,o;const u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(D){return D.replace(/\$/g,"$$$$")}const d=D=>{if(D.indexOf(this.formatSeparator)<0){const be=ku(n,u,D,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(be,void 0,s,{...r,...n,interpolationkey:D}):be}const j=D.split(this.formatSeparator),me=j.shift().trim(),we=j.join(this.formatSeparator).trim();return this.format(ku(n,u,me,this.options.keySeparator,this.options.ignoreJSONStructure),we,s,{...r,...n,interpolationkey:me})};this.resetRegExp();const h=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,c=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:D=>l(D)},{regex:this.regexp,safeValue:D=>this.escapeValue?l(this.escape(D)):l(D)}].forEach(D=>{for(o=0;a=D.regex.exec(t);){const j=a[1].trim();if(i=d(j),i===void 0)if(typeof h=="function"){const we=h(t,a,r);i=typeof we=="string"?we:""}else if(r&&Object.prototype.hasOwnProperty.call(r,j))i="";else if(c){i=a[0];continue}else this.logger.warn(`missed to pass in variable ${j} for interpolating ${t}`),i="";else typeof i!="string"&&!this.useRawValueToEscape&&(i=hu(i));const me=D.safeValue(i);if(t=t.replace(a[0],me),c?(D.regex.lastIndex+=i.length,D.regex.lastIndex-=a[0].length):D.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),t}nest(t,n){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,a,i;function o(u,l){const d=this.nestingOptionsSeparator;if(u.indexOf(d)<0)return u;const h=u.split(new RegExp(`${d}[ ]*{`));let c=`{${h[1]}`;u=h[0],c=this.interpolate(c,i);const D=c.match(/'/g),j=c.match(/"/g);(D&&D.length%2===0&&!j||j.length%2!==0)&&(c=c.replace(/'/g,'"'));try{i=JSON.parse(c),l&&(i={...l,...i})}catch(me){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,me),`${u}${d}${c}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,u}for(;r=this.nestingRegexp.exec(t);){let u=[];i={...s},i=i.replace&&typeof i.replace!="string"?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let l=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){const d=r[1].split(this.formatSeparator).map(h=>h.trim());r[1]=d.shift(),u=d,l=!0}if(a=n(o.call(this,r[1].trim(),i),i),a&&r[0]===t&&typeof a!="string")return a;typeof a!="string"&&(a=hu(a)),a||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${t}`),a=""),l&&(a=u.reduce((d,h)=>this.format(d,h,s.lng,{...s,interpolationkey:r[1].trim()}),a.trim())),t=t.replace(r[0],a),this.regexp.lastIndex=0}return t}};function Cg(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const s=e.split("(");t=s[0].toLowerCase().trim();const r=s[1].substring(0,s[1].length-1);t==="currency"&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):t==="relativetime"&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach(a=>{if(a){const[i,...o]=a.split(":"),u=o.join(":").trim().replace(/^'+|'+$/g,""),l=i.trim();n[l]||(n[l]=u),u==="false"&&(n[l]=!1),u==="true"&&(n[l]=!0),isNaN(u)||(n[l]=parseInt(u,10))}})}return{formatName:t,formatOptions:n}}function Sn(e){const t={};return function(n,s,r){const a=s+JSON.stringify(r);let i=t[a];return i||(i=e(dr(s),r),t[a]=i),i(n)}}let Lg=class{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ke.create("formatter"),this.options=t,this.formats={number:Sn((n,s)=>{const r=new Intl.NumberFormat(n,{...s});return a=>r.format(a)}),currency:Sn((n,s)=>{const r=new Intl.NumberFormat(n,{...s,style:"currency"});return a=>r.format(a)}),datetime:Sn((n,s)=>{const r=new Intl.DateTimeFormat(n,{...s});return a=>r.format(a)}),relativetime:Sn((n,s)=>{const r=new Intl.RelativeTimeFormat(n,{...s});return a=>r.format(a,s.range||"day")}),list:Sn((n,s)=>{const r=new Intl.ListFormat(n,{...s});return a=>r.format(a)})},this.init(t)}init(t){const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Sn(n)}format(t,n,s){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((a,i)=>{const{formatName:o,formatOptions:u}=Cg(i);if(this.formats[o]){let l=a;try{const d=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},h=d.locale||d.lng||r.locale||r.lng||s;l=this.formats[o](a,h,{...u,...r,...d})}catch(d){this.logger.warn(d)}return l}else this.logger.warn(`there was no format function for ${o}`);return a},t)}};function Ug(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}let jg=class extends ur{constructor(t,n,s){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=s,this.languageUtils=s.languageUtils,this.options=r,this.logger=Ke.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(s,r.backend,r)}queueLoad(t,n,s,r){const a={},i={},o={},u={};return t.forEach(l=>{let d=!0;n.forEach(h=>{const c=`${l}|${h}`;!s.reload&&this.store.hasResourceBundle(l,h)?this.state[c]=2:this.state[c]<0||(this.state[c]===1?i[c]===void 0&&(i[c]=!0):(this.state[c]=1,d=!1,i[c]===void 0&&(i[c]=!0),a[c]===void 0&&(a[c]=!0),u[h]===void 0&&(u[h]=!0)))}),d||(o[l]=!0)}),(Object.keys(a).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(a),pending:Object.keys(i),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(u)}}loaded(t,n,s){const r=t.split("|"),a=r[0],i=r[1];n&&this.emit("failedLoading",a,i,n),s&&this.store.addResourceBundle(a,i,s,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2;const o={};this.queue.forEach(u=>{vg(u.loaded,[a],i),Ug(u,t),n&&u.errors.push(n),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(l=>{o[l]||(o[l]={});const d=u.loaded[l];d.length&&d.forEach(h=>{o[l][h]===void 0&&(o[l][h]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(u=>!u.done)}read(t,n,s){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!t.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:s,tried:r,wait:a,callback:i});return}this.readingCalls++;const o=(l,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const h=this.waitingReads.shift();this.read(h.lng,h.ns,h.fcName,h.tried,h.wait,h.callback)}if(l&&d&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,s,r+1,a*2,i)},a);return}i(l,d)},u=this.backend[s].bind(this.backend);if(u.length===2){try{const l=u(t,n);l&&typeof l.then=="function"?l.then(d=>o(null,d)).catch(o):o(null,l)}catch(l){o(l)}return}return u(t,n,o)}prepareLoading(t,n){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const a=this.queueLoad(t,n,s,r);if(!a.toLoad.length)return a.pending.length||r(),null;a.toLoad.forEach(i=>{this.loadOne(i)})}load(t,n,s){this.prepareLoading(t,n,{},s)}reload(t,n,s){this.prepareLoading(t,n,{reload:!0},s)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const s=t.split("|"),r=s[0],a=s[1];this.read(r,a,"read",void 0,void 0,(i,o)=>{i&&this.logger.warn(`${n}loading namespace ${a} for language ${r} failed`,i),!i&&o&&this.logger.log(`${n}loaded namespace ${a} for language ${r}`,o),this.loaded(t,i,o)})}saveMissing(t,n,s,r,a){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${s}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(s==null||s==="")){if(this.backend&&this.backend.create){const u={...i,isUpdate:a},l=this.backend.create.bind(this.backend);if(l.length<6)try{let d;l.length===5?d=l(t,n,s,r,u):d=l(t,n,s,r),d&&typeof d.then=="function"?d.then(h=>o(null,h)).catch(o):o(null,d)}catch(d){o(d)}else l(t,n,s,r,o,u)}!t||!t[0]||this.store.addResource(t[0],n,s,r)}}};function $u(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let t={};if(typeof e[1]=="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(s=>{t[s]=n[s]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Su(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function cr(){}function Wg(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]=="function"&&(e[t]=e[t].bind(e))})}let bu=class io extends ur{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Su(t),this.services={},this.logger=Ke,this.modules={external:[]},Wg(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(s=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const r=$u();this.options={...r,...this.options,...Su(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function a(u){return u?typeof u=="function"?new u:u:null}if(!this.options.isClone){this.modules.logger?Ke.init(a(this.modules.logger),this.options):Ke.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:typeof Intl<"u"&&(u=Lg);const l=new vu(this.options);this.store=new gu(this.options.resources,this.options);const d=this.services;d.logger=Ke,d.resourceStore=this.store,d.languageUtils=l,d.pluralResolver=new Rg(l,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(d.formatter=a(u),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new Pg(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new jg(a(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(h){for(var c=arguments.length,D=new Array(c>1?c-1:0),j=1;j<c;j++)D[j-1]=arguments[j];t.emit(h,...D)}),this.modules.languageDetector&&(d.languageDetector=a(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=a(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new _u(this.services,this.options),this.translator.on("*",function(h){for(var c=arguments.length,D=new Array(c>1?c-1:0),j=1;j<c;j++)D[j-1]=arguments[j];t.emit(h,...D)}),this.modules.external.forEach(h=>{h.init&&h.init(this)})}if(this.format=this.options.interpolation.format,s||(s=cr),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=function(){return t.store[u](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=function(){return t.store[u](...arguments),t}});const i=ns(),o=()=>{const u=(l,d)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),i.resolve(d),s(l,d)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initImmediate?o():setTimeout(o,0),i}loadResources(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:cr;const s=typeof t=="string"?t:this.language;if(typeof t=="function"&&(n=t),!this.options.resources||this.options.partialBundledLanguages){if(s&&s.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const r=[],a=i=>{!i||i==="cimode"||this.services.languageUtils.toResolveHierarchy(i).forEach(o=>{o!=="cimode"&&r.indexOf(o)<0&&r.push(o)})};s?a(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(i=>a(i)),this.options.preload&&this.options.preload.forEach(i=>a(i)),this.services.backendConnector.load(r,this.options.ns,i=>{!i&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(i)})}else n(null)}reloadResources(t,n,s){const r=ns();return t||(t=this.languages),n||(n=this.options.ns),s||(s=cr),this.services.backendConnector.reload(t,n,a=>{r.resolve(),s(a)}),r}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&pu.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const s=this.languages[n];if(!(["cimode","dev"].indexOf(s)>-1)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}}changeLanguage(t,n){var s=this;this.isLanguageChangingTo=t;const r=ns();this.emit("languageChanging",t);const a=u=>{this.language=u,this.languages=this.services.languageUtils.toResolveHierarchy(u),this.resolvedLanguage=void 0,this.setResolvedLanguage(u)},i=(u,l)=>{l?(a(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,r.resolve(function(){return s.t(...arguments)}),n&&n(u,function(){return s.t(...arguments)})},o=u=>{!t&&!u&&this.services.languageDetector&&(u=[]);const l=typeof u=="string"?u:this.services.languageUtils.getBestMatchFromCodes(u);l&&(this.language||a(l),this.translator.language||this.translator.changeLanguage(l),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(l)),this.loadResources(l,d=>{i(d,l)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(t),r}getFixedT(t,n,s){var r=this;const a=function(i,o){let u;if(typeof o!="object"){for(var l=arguments.length,d=new Array(l>2?l-2:0),h=2;h<l;h++)d[h-2]=arguments[h];u=r.options.overloadTranslationOptionHandler([i,o].concat(d))}else u={...o};u.lng=u.lng||a.lng,u.lngs=u.lngs||a.lngs,u.ns=u.ns||a.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||s||a.keyPrefix);const c=r.options.keySeparator||".";let D;return u.keyPrefix&&Array.isArray(i)?D=i.map(j=>`${u.keyPrefix}${c}${j}`):D=u.keyPrefix?`${u.keyPrefix}${c}${i}`:i,r.t(D,u)};return typeof t=="string"?a.lng=t:a.lngs=t,a.ns=n,a.keyPrefix=s,a}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const s=n.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;const i=(o,u)=>{const l=this.services.backendConnector.state[`${o}|${u}`];return l===-1||l===2};if(n.precheck){const o=n.precheck(this,i);if(o!==void 0)return o}return!!(this.hasResourceBundle(s,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(s,t)&&(!r||i(a,t)))}loadNamespaces(t,n){const s=ns();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{s.resolve(),n&&n(r)}),s):(n&&n(),Promise.resolve())}loadLanguages(t,n){const s=ns();typeof t=="string"&&(t=[t]);const r=this.options.preload||[],a=t.filter(i=>r.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return a.length?(this.options.preload=r.concat(a),this.loadResources(i=>{s.resolve(),n&&n(i)}),s):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],s=this.services&&this.services.languageUtils||new vu($u());return n.indexOf(s.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new io(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:cr;const s=t.forkResourceStore;s&&delete t.forkResourceStore;const r={...this.options,...t,isClone:!0},a=new io(r);return(t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(i=>{a[i]=this[i]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},s&&(a.store=new gu(this.store.data,r),a.services.resourceStore=a.store),a.translator=new _u(a.services,r),a.translator.on("*",function(i){for(var o=arguments.length,u=new Array(o>1?o-1:0),l=1;l<o;l++)u[l-1]=arguments[l];a.emit(i,...u)}),a.init(r,n),a.translator.options=r,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}};const fe=bu.createInstance();fe.createInstance=bu.createInstance,fe.createInstance,fe.dir,fe.init,fe.loadResources,fe.reloadResources,fe.use,fe.changeLanguage,fe.getFixedT,fe.t,fe.exists,fe.setDefaultNamespace,fe.hasLoadedNamespace,fe.loadNamespaces,fe.loadLanguages;//! moment.js
9
+ `+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var po={};function yo(e,t){p.deprecationHandler!=null&&p.deprecationHandler(e,t),po[e]||(go(t),po[e]=!0)}p.suppressDeprecationWarnings=!1,p.deprecationHandler=null;function Ze(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function sc(e){var t,n;for(n in e)W(e,n)&&(t=e[n],Ze(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function da(e,t){var n=Ht({},e),s;for(s in t)W(t,s)&&(Qt(e[s])&&Qt(t[s])?(n[s]={},Ht(n[s],e[s]),Ht(n[s],t[s])):t[s]!=null?n[s]=t[s]:delete n[s]);for(s in e)W(e,s)&&!W(t,s)&&Qt(e[s])&&(n[s]=Ht({},n[s]));return n}function ca(e){e!=null&&this.set(e)}var ha;Object.keys?ha=Object.keys:ha=function(e){var t,n=[];for(t in e)W(e,t)&&n.push(t);return n};var rc={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function ac(e,t,n){var s=this._calendar[e]||this._calendar.sameElse;return Ze(s)?s.call(t,n):s}function Qe(e,t,n){var s=""+Math.abs(e),r=t-s.length,a=e>=0;return(a?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+s}var fa=/(\[[^\[]*\])|(\\)?([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,Fs=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ma={},mn={};function $(e,t,n,s){var r=s;typeof s=="string"&&(r=function(){return this[s]()}),e&&(mn[e]=r),t&&(mn[t[0]]=function(){return Qe(r.apply(this,arguments),t[1],t[2])}),n&&(mn[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function ic(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function oc(e){var t=e.match(fa),n,s;for(n=0,s=t.length;n<s;n++)mn[t[n]]?t[n]=mn[t[n]]:t[n]=ic(t[n]);return function(r){var a="",i;for(i=0;i<s;i++)a+=Ze(t[i])?t[i].call(r,e):t[i];return a}}function Hs(e,t){return e.isValid()?(t=_o(t,e.localeData()),ma[t]=ma[t]||oc(t),ma[t](e)):e.localeData().invalidDate()}function _o(e,t){var n=5;function s(r){return t.longDateFormat(r)||r}for(Fs.lastIndex=0;n>=0&&Fs.test(e);)e=e.replace(Fs,s),Fs.lastIndex=0,n-=1;return e}var uc={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 lc(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(fa).map(function(s){return s==="MMMM"||s==="MM"||s==="DD"||s==="dddd"?s.slice(1):s}).join(""),this._longDateFormat[e])}var dc="Invalid date";function cc(){return this._invalidDate}var hc="%d",fc=/\d{1,2}/;function mc(e){return this._ordinal.replace("%d",e)}var gc={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 pc(e,t,n,s){var r=this._relativeTime[n];return Ze(r)?r(e,t,n,s):r.replace(/%d/i,e)}function yc(e,t){var n=this._relativeTime[e>0?"future":"past"];return Ze(n)?n(t):n.replace(/%s/i,t)}var vo={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 Oe(e){return typeof e=="string"?vo[e]||vo[e.toLowerCase()]:void 0}function ga(e){var t={},n,s;for(s in e)W(e,s)&&(n=Oe(s),n&&(t[n]=e[s]));return t}var _c={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 vc(e){var t=[],n;for(n in e)W(e,n)&&t.push({unit:n,priority:_c[n]});return t.sort(function(s,r){return s.priority-r.priority}),t}var wo=/\d/,ke=/\d\d/,ko=/\d{3}/,pa=/\d{4}/,Es=/[+-]?\d{6}/,B=/\d\d?/,$o=/\d\d\d\d?/,So=/\d\d\d\d\d\d?/,Is=/\d{1,3}/,ya=/\d{1,4}/,As=/[+-]?\d{1,6}/,gn=/\d+/,Vs=/[+-]?\d+/,wc=/Z|[+-]\d\d:?\d\d/gi,Gs=/Z|[+-]\d\d(?::?\d\d)?/gi,kc=/[+-]?\d+(\.\d{1,3})?/,zn=/[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,pn=/^[1-9]\d?/,_a=/^([1-9]\d|\d)/,qs;qs={};function v(e,t,n){qs[e]=Ze(t)?t:function(s,r){return s&&n?n:t}}function $c(e,t){return W(qs,e)?qs[e](t._strict,t._locale):new RegExp(Sc(e))}function Sc(e){return ct(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,s,r,a){return n||s||r||a}))}function ct(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function xe(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function N(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=xe(t)),n}var va={};function V(e,t){var n,s=t,r;for(typeof e=="string"&&(e=[e]),dt(t)&&(s=function(a,i){i[t]=N(a)}),r=e.length,n=0;n<r;n++)va[e[n]]=s}function Zn(e,t){V(e,function(n,s,r,a){r._w=r._w||{},t(n,r._w,r,a)})}function bc(e,t,n){t!=null&&W(va,e)&&va[e](t,n._a,n,e)}function Bs(e){return e%4===0&&e%100!==0||e%400===0}var de=0,ht=1,Je=2,ae=3,We=4,ft=5,Jt=6,Mc=7,Dc=8;$("Y",0,0,function(){var e=this.year();return e<=9999?Qe(e,4):"+"+e}),$(0,["YY",2],0,function(){return this.year()%100}),$(0,["YYYY",4],0,"year"),$(0,["YYYYY",5],0,"year"),$(0,["YYYYYY",6,!0],0,"year"),v("Y",Vs),v("YY",B,ke),v("YYYY",ya,pa),v("YYYYY",As,Es),v("YYYYYY",As,Es),V(["YYYYY","YYYYYY"],de),V("YYYY",function(e,t){t[de]=e.length===2?p.parseTwoDigitYear(e):N(e)}),V("YY",function(e,t){t[de]=p.parseTwoDigitYear(e)}),V("Y",function(e,t){t[de]=parseInt(e,10)});function Qn(e){return Bs(e)?366:365}p.parseTwoDigitYear=function(e){return N(e)+(N(e)>68?1900:2e3)};var bo=yn("FullYear",!0);function Yc(){return Bs(this.year())}function yn(e,t){return function(n){return n!=null?(Mo(this,e,n),p.updateOffset(this,t),this):Jn(this,e)}}function Jn(e,t){if(!e.isValid())return NaN;var n=e._d,s=e._isUTC;switch(t){case"Milliseconds":return s?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return s?n.getUTCSeconds():n.getSeconds();case"Minutes":return s?n.getUTCMinutes():n.getMinutes();case"Hours":return s?n.getUTCHours():n.getHours();case"Date":return s?n.getUTCDate():n.getDate();case"Day":return s?n.getUTCDay():n.getDay();case"Month":return s?n.getUTCMonth():n.getMonth();case"FullYear":return s?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Mo(e,t,n){var s,r,a,i,o;if(!(!e.isValid()||isNaN(n))){switch(s=e._d,r=e._isUTC,t){case"Milliseconds":return void(r?s.setUTCMilliseconds(n):s.setMilliseconds(n));case"Seconds":return void(r?s.setUTCSeconds(n):s.setSeconds(n));case"Minutes":return void(r?s.setUTCMinutes(n):s.setMinutes(n));case"Hours":return void(r?s.setUTCHours(n):s.setHours(n));case"Date":return void(r?s.setUTCDate(n):s.setDate(n));case"FullYear":break;default:return}a=n,i=e.month(),o=e.date(),o=o===29&&i===1&&!Bs(a)?28:o,r?s.setUTCFullYear(a,i,o):s.setFullYear(a,i,o)}}function Oc(e){return e=Oe(e),Ze(this[e])?this[e]():this}function xc(e,t){if(typeof e=="object"){e=ga(e);var n=vc(e),s,r=n.length;for(s=0;s<r;s++)this[n[s].unit](e[n[s].unit])}else if(e=Oe(e),Ze(this[e]))return this[e](t);return this}function Tc(e,t){return(e%t+t)%t}var ne;Array.prototype.indexOf?ne=Array.prototype.indexOf:ne=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function wa(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Tc(t,12);return e+=(t-n)/12,n===1?Bs(e)?29:28:31-n%7%2}$("M",["MM",2],"Mo",function(){return this.month()+1}),$("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),$("MMMM",0,0,function(e){return this.localeData().months(this,e)}),v("M",B,pn),v("MM",B,ke),v("MMM",function(e,t){return t.monthsShortRegex(e)}),v("MMMM",function(e,t){return t.monthsRegex(e)}),V(["M","MM"],function(e,t){t[ht]=N(e)-1}),V(["MMM","MMMM"],function(e,t,n,s){var r=n._locale.monthsParse(e,s,n._strict);r!=null?t[ht]=r:O(n).invalidMonth=e});var Nc="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Do="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Yo=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Rc=zn,Cc=zn;function Pc(e,t){return e?Ue(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Yo).test(t)?"format":"standalone"][e.month()]:Ue(this._months)?this._months:this._months.standalone}function Lc(e,t){return e?Ue(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Yo.test(t)?"format":"standalone"][e.month()]:Ue(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Uc(e,t,n){var s,r,a,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)a=ze([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(a,"").toLocaleLowerCase();return n?t==="MMM"?(r=ne.call(this._shortMonthsParse,i),r!==-1?r:null):(r=ne.call(this._longMonthsParse,i),r!==-1?r:null):t==="MMM"?(r=ne.call(this._shortMonthsParse,i),r!==-1?r:(r=ne.call(this._longMonthsParse,i),r!==-1?r:null)):(r=ne.call(this._longMonthsParse,i),r!==-1?r:(r=ne.call(this._shortMonthsParse,i),r!==-1?r:null))}function jc(e,t,n){var s,r,a;if(this._monthsParseExact)return Uc.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++)if(r=ze([2e3,s]),n&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),!n&&!this._monthsParse[s]&&(a="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[s]=new RegExp(a.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[s].test(e)||n&&t==="MMM"&&this._shortMonthsParse[s].test(e)||!n&&this._monthsParse[s].test(e))return s}function Oo(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=N(t);else if(t=e.localeData().monthsParse(t),!dt(t))return e}var n=t,s=e.date();return s=s<29?s:Math.min(s,wa(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,s):e._d.setMonth(n,s),e}function xo(e){return e!=null?(Oo(this,e),p.updateOffset(this,!0),this):Jn(this,"Month")}function Wc(){return wa(this.year(),this.month())}function Fc(e){return this._monthsParseExact?(W(this,"_monthsRegex")||To.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(W(this,"_monthsShortRegex")||(this._monthsShortRegex=Rc),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Hc(e){return this._monthsParseExact?(W(this,"_monthsRegex")||To.call(this),e?this._monthsStrictRegex:this._monthsRegex):(W(this,"_monthsRegex")||(this._monthsRegex=Cc),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function To(){function e(u,l){return l.length-u.length}var t=[],n=[],s=[],r,a,i,o;for(r=0;r<12;r++)a=ze([2e3,r]),i=ct(this.monthsShort(a,"")),o=ct(this.months(a,"")),t.push(i),n.push(o),s.push(o),s.push(i);t.sort(e),n.sort(e),s.sort(e),this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Ec(e,t,n,s,r,a,i){var o;return e<100&&e>=0?(o=new Date(e+400,t,n,s,r,a,i),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,s,r,a,i),o}function Kn(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function zs(e,t,n){var s=7+t-n,r=(7+Kn(e,0,s).getUTCDay()-t)%7;return-r+s-1}function No(e,t,n,s,r){var a=(7+n-s)%7,i=zs(e,s,r),o=1+7*(t-1)+a+i,u,l;return o<=0?(u=e-1,l=Qn(u)+o):o>Qn(e)?(u=e+1,l=o-Qn(e)):(u=e,l=o),{year:u,dayOfYear:l}}function Xn(e,t,n){var s=zs(e.year(),t,n),r=Math.floor((e.dayOfYear()-s-1)/7)+1,a,i;return r<1?(i=e.year()-1,a=r+mt(i,t,n)):r>mt(e.year(),t,n)?(a=r-mt(e.year(),t,n),i=e.year()+1):(i=e.year(),a=r),{week:a,year:i}}function mt(e,t,n){var s=zs(e,t,n),r=zs(e+1,t,n);return(Qn(e)-s+r)/7}$("w",["ww",2],"wo","week"),$("W",["WW",2],"Wo","isoWeek"),v("w",B,pn),v("ww",B,ke),v("W",B,pn),v("WW",B,ke),Zn(["w","ww","W","WW"],function(e,t,n,s){t[s.substr(0,1)]=N(e)});function Ic(e){return Xn(e,this._week.dow,this._week.doy).week}var Ac={dow:0,doy:6};function Vc(){return this._week.dow}function Gc(){return this._week.doy}function qc(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Bc(e){var t=Xn(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}$("d",0,"do","day"),$("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),$("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),$("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),$("e",0,0,"weekday"),$("E",0,0,"isoWeekday"),v("d",B),v("e",B),v("E",B),v("dd",function(e,t){return t.weekdaysMinRegex(e)}),v("ddd",function(e,t){return t.weekdaysShortRegex(e)}),v("dddd",function(e,t){return t.weekdaysRegex(e)}),Zn(["dd","ddd","dddd"],function(e,t,n,s){var r=n._locale.weekdaysParse(e,s,n._strict);r!=null?t.d=r:O(n).invalidWeekday=e}),Zn(["d","e","E"],function(e,t,n,s){t[s]=N(e)});function zc(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Zc(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function ka(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Qc="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ro="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Jc="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Kc=zn,Xc=zn,eh=zn;function th(e,t){var n=Ue(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?ka(n,this._week.dow):e?n[e.day()]:n}function nh(e){return e===!0?ka(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function sh(e){return e===!0?ka(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function rh(e,t,n){var s,r,a,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)a=ze([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(a,"").toLocaleLowerCase();return n?t==="dddd"?(r=ne.call(this._weekdaysParse,i),r!==-1?r:null):t==="ddd"?(r=ne.call(this._shortWeekdaysParse,i),r!==-1?r:null):(r=ne.call(this._minWeekdaysParse,i),r!==-1?r:null):t==="dddd"?(r=ne.call(this._weekdaysParse,i),r!==-1||(r=ne.call(this._shortWeekdaysParse,i),r!==-1)?r:(r=ne.call(this._minWeekdaysParse,i),r!==-1?r:null)):t==="ddd"?(r=ne.call(this._shortWeekdaysParse,i),r!==-1||(r=ne.call(this._weekdaysParse,i),r!==-1)?r:(r=ne.call(this._minWeekdaysParse,i),r!==-1?r:null)):(r=ne.call(this._minWeekdaysParse,i),r!==-1||(r=ne.call(this._weekdaysParse,i),r!==-1)?r:(r=ne.call(this._shortWeekdaysParse,i),r!==-1?r:null))}function ah(e,t,n){var s,r,a;if(this._weekdaysParseExact)return rh.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++)if(r=ze([2e3,1]).day(s),n&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(a="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[s]=new RegExp(a.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[s].test(e)||n&&t==="ddd"&&this._shortWeekdaysParse[s].test(e)||n&&t==="dd"&&this._minWeekdaysParse[s].test(e)||!n&&this._weekdaysParse[s].test(e))return s}function ih(e){if(!this.isValid())return e!=null?this:NaN;var t=Jn(this,"Day");return e!=null?(e=zc(e,this.localeData()),this.add(e-t,"d")):t}function oh(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function uh(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Zc(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function lh(e){return this._weekdaysParseExact?(W(this,"_weekdaysRegex")||$a.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(W(this,"_weekdaysRegex")||(this._weekdaysRegex=Kc),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function dh(e){return this._weekdaysParseExact?(W(this,"_weekdaysRegex")||$a.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(W(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Xc),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function ch(e){return this._weekdaysParseExact?(W(this,"_weekdaysRegex")||$a.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(W(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=eh),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function $a(){function e(d,h){return h.length-d.length}var t=[],n=[],s=[],r=[],a,i,o,u,l;for(a=0;a<7;a++)i=ze([2e3,1]).day(a),o=ct(this.weekdaysMin(i,"")),u=ct(this.weekdaysShort(i,"")),l=ct(this.weekdays(i,"")),t.push(o),n.push(u),s.push(l),r.push(o),r.push(u),r.push(l);t.sort(e),n.sort(e),s.sort(e),r.sort(e),this._weekdaysRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Sa(){return this.hours()%12||12}function hh(){return this.hours()||24}$("H",["HH",2],0,"hour"),$("h",["hh",2],0,Sa),$("k",["kk",2],0,hh),$("hmm",0,0,function(){return""+Sa.apply(this)+Qe(this.minutes(),2)}),$("hmmss",0,0,function(){return""+Sa.apply(this)+Qe(this.minutes(),2)+Qe(this.seconds(),2)}),$("Hmm",0,0,function(){return""+this.hours()+Qe(this.minutes(),2)}),$("Hmmss",0,0,function(){return""+this.hours()+Qe(this.minutes(),2)+Qe(this.seconds(),2)});function Co(e,t){$(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Co("a",!0),Co("A",!1);function Po(e,t){return t._meridiemParse}v("a",Po),v("A",Po),v("H",B,_a),v("h",B,pn),v("k",B,pn),v("HH",B,ke),v("hh",B,ke),v("kk",B,ke),v("hmm",$o),v("hmmss",So),v("Hmm",$o),v("Hmmss",So),V(["H","HH"],ae),V(["k","kk"],function(e,t,n){var s=N(e);t[ae]=s===24?0:s}),V(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),V(["h","hh"],function(e,t,n){t[ae]=N(e),O(n).bigHour=!0}),V("hmm",function(e,t,n){var s=e.length-2;t[ae]=N(e.substr(0,s)),t[We]=N(e.substr(s)),O(n).bigHour=!0}),V("hmmss",function(e,t,n){var s=e.length-4,r=e.length-2;t[ae]=N(e.substr(0,s)),t[We]=N(e.substr(s,2)),t[ft]=N(e.substr(r)),O(n).bigHour=!0}),V("Hmm",function(e,t,n){var s=e.length-2;t[ae]=N(e.substr(0,s)),t[We]=N(e.substr(s))}),V("Hmmss",function(e,t,n){var s=e.length-4,r=e.length-2;t[ae]=N(e.substr(0,s)),t[We]=N(e.substr(s,2)),t[ft]=N(e.substr(r))});function fh(e){return(e+"").toLowerCase().charAt(0)==="p"}var mh=/[ap]\.?m?\.?/i,gh=yn("Hours",!0);function ph(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var Lo={calendar:rc,longDateFormat:uc,invalidDate:dc,ordinal:hc,dayOfMonthOrdinalParse:fc,relativeTime:gc,months:Nc,monthsShort:Do,week:Ac,weekdays:Qc,weekdaysMin:Jc,weekdaysShort:Ro,meridiemParse:mh},X={},es={},ts;function yh(e,t){var n,s=Math.min(e.length,t.length);for(n=0;n<s;n+=1)if(e[n]!==t[n])return n;return s}function Uo(e){return e&&e.toLowerCase().replace("_","-")}function _h(e){for(var t=0,n,s,r,a;t<e.length;){for(a=Uo(e[t]).split("-"),n=a.length,s=Uo(e[t+1]),s=s?s.split("-"):null;n>0;){if(r=Zs(a.slice(0,n).join("-")),r)return r;if(s&&s.length>=n&&yh(a,s)>=n-1)break;n--}t++}return ts}function vh(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Zs(e){var t=null,n;if(X[e]===void 0&&typeof module<"u"&&module&&module.exports&&vh(e))try{t=ts._abbr,n=require,n("./locale/"+e),Et(t)}catch{X[e]=null}return X[e]}function Et(e,t){var n;return e&&(ye(t)?n=gt(e):n=ba(e,t),n?ts=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ts._abbr}function ba(e,t){if(t!==null){var n,s=Lo;if(t.abbr=e,X[e]!=null)yo("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."),s=X[e]._config;else if(t.parentLocale!=null)if(X[t.parentLocale]!=null)s=X[t.parentLocale]._config;else if(n=Zs(t.parentLocale),n!=null)s=n._config;else return es[t.parentLocale]||(es[t.parentLocale]=[]),es[t.parentLocale].push({name:e,config:t}),null;return X[e]=new ca(da(s,t)),es[e]&&es[e].forEach(function(r){ba(r.name,r.config)}),Et(e),X[e]}else return delete X[e],null}function wh(e,t){if(t!=null){var n,s,r=Lo;X[e]!=null&&X[e].parentLocale!=null?X[e].set(da(X[e]._config,t)):(s=Zs(e),s!=null&&(r=s._config),t=da(r,t),s==null&&(t.abbr=e),n=new ca(t),n.parentLocale=X[e],X[e]=n),Et(e)}else X[e]!=null&&(X[e].parentLocale!=null?(X[e]=X[e].parentLocale,e===Et()&&Et(e)):X[e]!=null&&delete X[e]);return X[e]}function gt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ts;if(!Ue(e)){if(t=Zs(e),t)return t;e=[e]}return _h(e)}function kh(){return ha(X)}function Ma(e){var t,n=e._a;return n&&O(e).overflow===-2&&(t=n[ht]<0||n[ht]>11?ht:n[Je]<1||n[Je]>wa(n[de],n[ht])?Je:n[ae]<0||n[ae]>24||n[ae]===24&&(n[We]!==0||n[ft]!==0||n[Jt]!==0)?ae:n[We]<0||n[We]>59?We:n[ft]<0||n[ft]>59?ft:n[Jt]<0||n[Jt]>999?Jt:-1,O(e)._overflowDayOfYear&&(t<de||t>Je)&&(t=Je),O(e)._overflowWeeks&&t===-1&&(t=Mc),O(e)._overflowWeekday&&t===-1&&(t=Dc),O(e).overflow=t),e}var $h=/^\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)?)?$/,Sh=/^\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)?)?$/,bh=/Z|[+-]\d\d(?::?\d\d)?/,Qs=[["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]],Da=[["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/]],Mh=/^\/?Date\((-?\d+)/i,Dh=/^(?:(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}))$/,Yh={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 jo(e){var t,n,s=e._i,r=$h.exec(s)||Sh.exec(s),a,i,o,u,l=Qs.length,d=Da.length;if(r){for(O(e).iso=!0,t=0,n=l;t<n;t++)if(Qs[t][1].exec(r[1])){i=Qs[t][0],a=Qs[t][2]!==!1;break}if(i==null){e._isValid=!1;return}if(r[3]){for(t=0,n=d;t<n;t++)if(Da[t][1].exec(r[3])){o=(r[2]||" ")+Da[t][0];break}if(o==null){e._isValid=!1;return}}if(!a&&o!=null){e._isValid=!1;return}if(r[4])if(bh.exec(r[4]))u="Z";else{e._isValid=!1;return}e._f=i+(o||"")+(u||""),Oa(e)}else e._isValid=!1}function Oh(e,t,n,s,r,a){var i=[xh(e),Do.indexOf(t),parseInt(n,10),parseInt(s,10),parseInt(r,10)];return a&&i.push(parseInt(a,10)),i}function xh(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Th(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Nh(e,t,n){if(e){var s=Ro.indexOf(e),r=new Date(t[0],t[1],t[2]).getDay();if(s!==r)return O(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function Rh(e,t,n){if(e)return Yh[e];if(t)return 0;var s=parseInt(n,10),r=s%100,a=(s-r)/100;return a*60+r}function Wo(e){var t=Dh.exec(Th(e._i)),n;if(t){if(n=Oh(t[4],t[3],t[2],t[5],t[6],t[7]),!Nh(t[1],n,e))return;e._a=n,e._tzm=Rh(t[8],t[9],t[10]),e._d=Kn.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),O(e).rfc2822=!0}else e._isValid=!1}function Ch(e){var t=Mh.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(jo(e),e._isValid===!1)delete e._isValid;else return;if(Wo(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:p.createFromInputFallback(e)}p.createFromInputFallback=Ye("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(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function _n(e,t,n){return e??t??n}function Ph(e){var t=new Date(p.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Ya(e){var t,n,s=[],r,a,i;if(!e._d){for(r=Ph(e),e._w&&e._a[Je]==null&&e._a[ht]==null&&Lh(e),e._dayOfYear!=null&&(i=_n(e._a[de],r[de]),(e._dayOfYear>Qn(i)||e._dayOfYear===0)&&(O(e)._overflowDayOfYear=!0),n=Kn(i,0,e._dayOfYear),e._a[ht]=n.getUTCMonth(),e._a[Je]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[ae]===24&&e._a[We]===0&&e._a[ft]===0&&e._a[Jt]===0&&(e._nextDay=!0,e._a[ae]=0),e._d=(e._useUTC?Kn:Ec).apply(null,s),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ae]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(O(e).weekdayMismatch=!0)}}function Lh(e){var t,n,s,r,a,i,o,u,l;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,i=4,n=_n(t.GG,e._a[de],Xn(z(),1,4).year),s=_n(t.W,1),r=_n(t.E,1),(r<1||r>7)&&(u=!0)):(a=e._locale._week.dow,i=e._locale._week.doy,l=Xn(z(),a,i),n=_n(t.gg,e._a[de],l.year),s=_n(t.w,l.week),t.d!=null?(r=t.d,(r<0||r>6)&&(u=!0)):t.e!=null?(r=t.e+a,(t.e<0||t.e>6)&&(u=!0)):r=a),s<1||s>mt(n,a,i)?O(e)._overflowWeeks=!0:u!=null?O(e)._overflowWeekday=!0:(o=No(n,s,r,a,i),e._a[de]=o.year,e._dayOfYear=o.dayOfYear)}p.ISO_8601=function(){},p.RFC_2822=function(){};function Oa(e){if(e._f===p.ISO_8601){jo(e);return}if(e._f===p.RFC_2822){Wo(e);return}e._a=[],O(e).empty=!0;var t=""+e._i,n,s,r,a,i,o=t.length,u=0,l,d;for(r=_o(e._f,e._locale).match(fa)||[],d=r.length,n=0;n<d;n++)a=r[n],s=(t.match($c(a,e))||[])[0],s&&(i=t.substr(0,t.indexOf(s)),i.length>0&&O(e).unusedInput.push(i),t=t.slice(t.indexOf(s)+s.length),u+=s.length),mn[a]?(s?O(e).empty=!1:O(e).unusedTokens.push(a),bc(a,s,e)):e._strict&&!s&&O(e).unusedTokens.push(a);O(e).charsLeftOver=o-u,t.length>0&&O(e).unusedInput.push(t),e._a[ae]<=12&&O(e).bigHour===!0&&e._a[ae]>0&&(O(e).bigHour=void 0),O(e).parsedDateParts=e._a.slice(0),O(e).meridiem=e._meridiem,e._a[ae]=Uh(e._locale,e._a[ae],e._meridiem),l=O(e).era,l!==null&&(e._a[de]=e._locale.erasConvertYear(l,e._a[de])),Ya(e),Ma(e)}function Uh(e,t,n){var s;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(s=e.isPM(n),s&&t<12&&(t+=12),!s&&t===12&&(t=0)),t)}function jh(e){var t,n,s,r,a,i,o=!1,u=e._f.length;if(u===0){O(e).invalidFormat=!0,e._d=new Date(NaN);return}for(r=0;r<u;r++)a=0,i=!1,t=la({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[r],Oa(t),oa(t)&&(i=!0),a+=O(t).charsLeftOver,a+=O(t).unusedTokens.length*10,O(t).score=a,o?a<s&&(s=a,n=t):(s==null||a<s||i)&&(s=a,n=t,i&&(o=!0));Ht(e,n||t)}function Wh(e){if(!e._d){var t=ga(e._i),n=t.day===void 0?t.date:t.day;e._a=fo([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(s){return s&&parseInt(s,10)}),Ya(e)}}function Fh(e){var t=new Bn(Ma(Fo(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Fo(e){var t=e._i,n=e._f;return e._locale=e._locale||gt(e._l),t===null||n===void 0&&t===""?Ws({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),je(t)?new Bn(Ma(t)):(qn(t)?e._d=t:Ue(n)?jh(e):n?Oa(e):Hh(e),oa(e)||(e._d=null),e))}function Hh(e){var t=e._i;ye(t)?e._d=new Date(p.now()):qn(t)?e._d=new Date(t.valueOf()):typeof t=="string"?Ch(e):Ue(t)?(e._a=fo(t.slice(0),function(n){return parseInt(n,10)}),Ya(e)):Qt(t)?Wh(e):dt(t)?e._d=new Date(t):p.createFromInputFallback(e)}function Ho(e,t,n,s,r){var a={};return(t===!0||t===!1)&&(s=t,t=void 0),(n===!0||n===!1)&&(s=n,n=void 0),(Qt(e)&&aa(e)||Ue(e)&&e.length===0)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=r,a._l=n,a._i=e,a._f=t,a._strict=s,Fh(a)}function z(e,t,n,s){return Ho(e,t,n,s,!1)}var Eh=Ye("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=z.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Ws()}),Ih=Ye("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=z.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Ws()});function Eo(e,t){var n,s;if(t.length===1&&Ue(t[0])&&(t=t[0]),!t.length)return z();for(n=t[0],s=1;s<t.length;++s)(!t[s].isValid()||t[s][e](n))&&(n=t[s]);return n}function Ah(){var e=[].slice.call(arguments,0);return Eo("isBefore",e)}function Vh(){var e=[].slice.call(arguments,0);return Eo("isAfter",e)}var Gh=function(){return Date.now?Date.now():+new Date},ns=["year","quarter","month","week","day","hour","minute","second","millisecond"];function qh(e){var t,n=!1,s,r=ns.length;for(t in e)if(W(e,t)&&!(ne.call(ns,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(s=0;s<r;++s)if(e[ns[s]]){if(n)return!1;parseFloat(e[ns[s]])!==N(e[ns[s]])&&(n=!0)}return!0}function Bh(){return this._isValid}function zh(){return Fe(NaN)}function Js(e){var t=ga(e),n=t.year||0,s=t.quarter||0,r=t.month||0,a=t.week||t.isoWeek||0,i=t.day||0,o=t.hour||0,u=t.minute||0,l=t.second||0,d=t.millisecond||0;this._isValid=qh(t),this._milliseconds=+d+l*1e3+u*6e4+o*1e3*60*60,this._days=+i+a*7,this._months=+r+s*3+n*12,this._data={},this._locale=gt(),this._bubble()}function Ks(e){return e instanceof Js}function xa(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Zh(e,t,n){var s=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),a=0,i;for(i=0;i<s;i++)N(e[i])!==N(t[i])&&a++;return a+r}function Io(e,t){$(e,0,0,function(){var n=this.utcOffset(),s="+";return n<0&&(n=-n,s="-"),s+Qe(~~(n/60),2)+t+Qe(~~n%60,2)})}Io("Z",":"),Io("ZZ",""),v("Z",Gs),v("ZZ",Gs),V(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Ta(Gs,e)});var Qh=/([\+\-]|\d\d)/gi;function Ta(e,t){var n=(t||"").match(e),s,r,a;return n===null?null:(s=n[n.length-1]||[],r=(s+"").match(Qh)||["-",0,0],a=+(r[1]*60)+N(r[2]),a===0?0:r[0]==="+"?a:-a)}function Na(e,t){var n,s;return t._isUTC?(n=t.clone(),s=(je(e)||qn(e)?e.valueOf():z(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+s),p.updateOffset(n,!1),n):z(e).local()}function Ra(e){return-Math.round(e._d.getTimezoneOffset())}p.updateOffset=function(){};function Jh(e,t,n){var s=this._offset||0,r;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Ta(Gs,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(r=Ra(this)),this._offset=e,this._isUTC=!0,r!=null&&this.add(r,"m"),s!==e&&(!t||this._changeInProgress?qo(this,Fe(e-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,p.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?s:Ra(this)}function Kh(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Xh(e){return this.utcOffset(0,e)}function ef(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ra(this),"m")),this}function tf(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Ta(wc,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function nf(e){return this.isValid()?(e=e?z(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function sf(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function rf(){if(!ye(this._isDSTShifted))return this._isDSTShifted;var e={},t;return la(e,this),e=Fo(e),e._a?(t=e._isUTC?ze(e._a):z(e._a),this._isDSTShifted=this.isValid()&&Zh(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function af(){return this.isValid()?!this._isUTC:!1}function of(){return this.isValid()?this._isUTC:!1}function Ao(){return this.isValid()?this._isUTC&&this._offset===0:!1}var uf=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,lf=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Fe(e,t){var n=e,s=null,r,a,i;return Ks(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:dt(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(s=uf.exec(e))?(r=s[1]==="-"?-1:1,n={y:0,d:N(s[Je])*r,h:N(s[ae])*r,m:N(s[We])*r,s:N(s[ft])*r,ms:N(xa(s[Jt]*1e3))*r}):(s=lf.exec(e))?(r=s[1]==="-"?-1:1,n={y:Kt(s[2],r),M:Kt(s[3],r),w:Kt(s[4],r),d:Kt(s[5],r),h:Kt(s[6],r),m:Kt(s[7],r),s:Kt(s[8],r)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(i=df(z(n.from),z(n.to)),n={},n.ms=i.milliseconds,n.M=i.months),a=new Js(n),Ks(e)&&W(e,"_locale")&&(a._locale=e._locale),Ks(e)&&W(e,"_isValid")&&(a._isValid=e._isValid),a}Fe.fn=Js.prototype,Fe.invalid=zh;function Kt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Vo(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function df(e,t){var n;return e.isValid()&&t.isValid()?(t=Na(t,e),e.isBefore(t)?n=Vo(e,t):(n=Vo(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Go(e,t){return function(n,s){var r,a;return s!==null&&!isNaN(+s)&&(yo(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=s,s=a),r=Fe(n,s),qo(this,r,e),this}}function qo(e,t,n,s){var r=t._milliseconds,a=xa(t._days),i=xa(t._months);e.isValid()&&(s=s??!0,i&&Oo(e,Jn(e,"Month")+i*n),a&&Mo(e,"Date",Jn(e,"Date")+a*n),r&&e._d.setTime(e._d.valueOf()+r*n),s&&p.updateOffset(e,a||i))}var cf=Go(1,"add"),hf=Go(-1,"subtract");function Bo(e){return typeof e=="string"||e instanceof String}function ff(e){return je(e)||qn(e)||Bo(e)||dt(e)||gf(e)||mf(e)||e===null||e===void 0}function mf(e){var t=Qt(e)&&!aa(e),n=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],r,a,i=s.length;for(r=0;r<i;r+=1)a=s[r],n=n||W(e,a);return t&&n}function gf(e){var t=Ue(e),n=!1;return t&&(n=e.filter(function(s){return!dt(s)&&Bo(e)}).length===0),t&&n}function pf(e){var t=Qt(e)&&!aa(e),n=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],r,a;for(r=0;r<s.length;r+=1)a=s[r],n=n||W(e,a);return t&&n}function yf(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function _f(e,t){arguments.length===1&&(arguments[0]?ff(arguments[0])?(e=arguments[0],t=void 0):pf(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||z(),s=Na(n,this).startOf("day"),r=p.calendarFormat(this,s)||"sameElse",a=t&&(Ze(t[r])?t[r].call(this,n):t[r]);return this.format(a||this.localeData().calendar(r,this,z(n)))}function vf(){return new Bn(this)}function wf(e,t){var n=je(e)?e:z(e);return this.isValid()&&n.isValid()?(t=Oe(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function kf(e,t){var n=je(e)?e:z(e);return this.isValid()&&n.isValid()?(t=Oe(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function $f(e,t,n,s){var r=je(e)?e:z(e),a=je(t)?t:z(t);return this.isValid()&&r.isValid()&&a.isValid()?(s=s||"()",(s[0]==="("?this.isAfter(r,n):!this.isBefore(r,n))&&(s[1]===")"?this.isBefore(a,n):!this.isAfter(a,n))):!1}function Sf(e,t){var n=je(e)?e:z(e),s;return this.isValid()&&n.isValid()?(t=Oe(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(s=n.valueOf(),this.clone().startOf(t).valueOf()<=s&&s<=this.clone().endOf(t).valueOf())):!1}function bf(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Mf(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Df(e,t,n){var s,r,a;if(!this.isValid())return NaN;if(s=Na(e,this),!s.isValid())return NaN;switch(r=(s.utcOffset()-this.utcOffset())*6e4,t=Oe(t),t){case"year":a=Xs(this,s)/12;break;case"month":a=Xs(this,s);break;case"quarter":a=Xs(this,s)/3;break;case"second":a=(this-s)/1e3;break;case"minute":a=(this-s)/6e4;break;case"hour":a=(this-s)/36e5;break;case"day":a=(this-s-r)/864e5;break;case"week":a=(this-s-r)/6048e5;break;default:a=this-s}return n?a:xe(a)}function Xs(e,t){if(e.date()<t.date())return-Xs(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),s=e.clone().add(n,"months"),r,a;return t-s<0?(r=e.clone().add(n-1,"months"),a=(t-s)/(s-r)):(r=e.clone().add(n+1,"months"),a=(t-s)/(r-s)),-(n+a)||0}p.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",p.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Yf(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Of(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?Hs(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Ze(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Hs(n,"Z")):Hs(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function xf(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,s,r,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',s=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]',this.format(n+s+r+a)}function Tf(e){e||(e=this.isUtc()?p.defaultFormatUtc:p.defaultFormat);var t=Hs(this,e);return this.localeData().postformat(t)}function Nf(e,t){return this.isValid()&&(je(e)&&e.isValid()||z(e).isValid())?Fe({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Rf(e){return this.from(z(),e)}function Cf(e,t){return this.isValid()&&(je(e)&&e.isValid()||z(e).isValid())?Fe({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Pf(e){return this.to(z(),e)}function zo(e){var t;return e===void 0?this._locale._abbr:(t=gt(e),t!=null&&(this._locale=t),this)}var Zo=Ye("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Qo(){return this._locale}var er=1e3,vn=60*er,tr=60*vn,Jo=(365*400+97)*24*tr;function wn(e,t){return(e%t+t)%t}function Ko(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-Jo:new Date(e,t,n).valueOf()}function Xo(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-Jo:Date.UTC(e,t,n)}function Lf(e){var t,n;if(e=Oe(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Xo:Ko,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=wn(t+(this._isUTC?0:this.utcOffset()*vn),tr);break;case"minute":t=this._d.valueOf(),t-=wn(t,vn);break;case"second":t=this._d.valueOf(),t-=wn(t,er);break}return this._d.setTime(t),p.updateOffset(this,!0),this}function Uf(e){var t,n;if(e=Oe(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Xo:Ko,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=tr-wn(t+(this._isUTC?0:this.utcOffset()*vn),tr)-1;break;case"minute":t=this._d.valueOf(),t+=vn-wn(t,vn)-1;break;case"second":t=this._d.valueOf(),t+=er-wn(t,er)-1;break}return this._d.setTime(t),p.updateOffset(this,!0),this}function jf(){return this._d.valueOf()-(this._offset||0)*6e4}function Wf(){return Math.floor(this.valueOf()/1e3)}function Ff(){return new Date(this.valueOf())}function Hf(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Ef(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function If(){return this.isValid()?this.toISOString():null}function Af(){return oa(this)}function Vf(){return Ht({},O(this))}function Gf(){return O(this).overflow}function qf(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}$("N",0,0,"eraAbbr"),$("NN",0,0,"eraAbbr"),$("NNN",0,0,"eraAbbr"),$("NNNN",0,0,"eraName"),$("NNNNN",0,0,"eraNarrow"),$("y",["y",1],"yo","eraYear"),$("y",["yy",2],0,"eraYear"),$("y",["yyy",3],0,"eraYear"),$("y",["yyyy",4],0,"eraYear"),v("N",Ca),v("NN",Ca),v("NNN",Ca),v("NNNN",sm),v("NNNNN",rm),V(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,s){var r=n._locale.erasParse(e,s,n._strict);r?O(n).era=r:O(n).invalidEra=e}),v("y",gn),v("yy",gn),v("yyy",gn),v("yyyy",gn),v("yo",am),V(["y","yy","yyy","yyyy"],de),V(["yo"],function(e,t,n,s){var r;n._locale._eraYearOrdinalRegex&&(r=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[de]=n._locale.eraYearOrdinalParse(e,r):t[de]=parseInt(e,10)});function Bf(e,t){var n,s,r,a=this._eras||gt("en")._eras;for(n=0,s=a.length;n<s;++n){switch(typeof a[n].since){case"string":r=p(a[n].since).startOf("day"),a[n].since=r.valueOf();break}switch(typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":r=p(a[n].until).startOf("day").valueOf(),a[n].until=r.valueOf();break}}return a}function zf(e,t,n){var s,r,a=this.eras(),i,o,u;for(e=e.toUpperCase(),s=0,r=a.length;s<r;++s)if(i=a[s].name.toUpperCase(),o=a[s].abbr.toUpperCase(),u=a[s].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(o===e)return a[s];break;case"NNNN":if(i===e)return a[s];break;case"NNNNN":if(u===e)return a[s];break}else if([i,o,u].indexOf(e)>=0)return a[s]}function Zf(e,t){var n=e.since<=e.until?1:-1;return t===void 0?p(e.since).year():p(e.since).year()+(t-e.offset)*n}function Qf(){var e,t,n,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),s[e].since<=n&&n<=s[e].until||s[e].until<=n&&n<=s[e].since)return s[e].name;return""}function Jf(){var e,t,n,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),s[e].since<=n&&n<=s[e].until||s[e].until<=n&&n<=s[e].since)return s[e].narrow;return""}function Kf(){var e,t,n,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),s[e].since<=n&&n<=s[e].until||s[e].until<=n&&n<=s[e].since)return s[e].abbr;return""}function Xf(){var e,t,n,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=r[e].since<=r[e].until?1:-1,s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return(this.year()-p(r[e].since).year())*n+r[e].offset;return this.year()}function em(e){return W(this,"_erasNameRegex")||Pa.call(this),e?this._erasNameRegex:this._erasRegex}function tm(e){return W(this,"_erasAbbrRegex")||Pa.call(this),e?this._erasAbbrRegex:this._erasRegex}function nm(e){return W(this,"_erasNarrowRegex")||Pa.call(this),e?this._erasNarrowRegex:this._erasRegex}function Ca(e,t){return t.erasAbbrRegex(e)}function sm(e,t){return t.erasNameRegex(e)}function rm(e,t){return t.erasNarrowRegex(e)}function am(e,t){return t._eraYearOrdinalRegex||gn}function Pa(){var e=[],t=[],n=[],s=[],r,a,i,o,u,l=this.eras();for(r=0,a=l.length;r<a;++r)i=ct(l[r].name),o=ct(l[r].abbr),u=ct(l[r].narrow),t.push(i),e.push(o),n.push(u),s.push(i),s.push(o),s.push(u);this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}$(0,["gg",2],0,function(){return this.weekYear()%100}),$(0,["GG",2],0,function(){return this.isoWeekYear()%100});function nr(e,t){$(0,[e,e.length],0,t)}nr("gggg","weekYear"),nr("ggggg","weekYear"),nr("GGGG","isoWeekYear"),nr("GGGGG","isoWeekYear"),v("G",Vs),v("g",Vs),v("GG",B,ke),v("gg",B,ke),v("GGGG",ya,pa),v("gggg",ya,pa),v("GGGGG",As,Es),v("ggggg",As,Es),Zn(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,s){t[s.substr(0,2)]=N(e)}),Zn(["gg","GG"],function(e,t,n,s){t[s]=p.parseTwoDigitYear(e)});function im(e){return eu.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function om(e){return eu.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function um(){return mt(this.year(),1,4)}function lm(){return mt(this.isoWeekYear(),1,4)}function dm(){var e=this.localeData()._week;return mt(this.year(),e.dow,e.doy)}function cm(){var e=this.localeData()._week;return mt(this.weekYear(),e.dow,e.doy)}function eu(e,t,n,s,r){var a;return e==null?Xn(this,s,r).year:(a=mt(e,s,r),t>a&&(t=a),hm.call(this,e,t,n,s,r))}function hm(e,t,n,s,r){var a=No(e,t,n,s,r),i=Kn(a.year,0,a.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}$("Q",0,"Qo","quarter"),v("Q",wo),V("Q",function(e,t){t[ht]=(N(e)-1)*3});function fm(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}$("D",["DD",2],"Do","date"),v("D",B,pn),v("DD",B,ke),v("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),V(["D","DD"],Je),V("Do",function(e,t){t[Je]=N(e.match(B)[0])});var tu=yn("Date",!0);$("DDD",["DDDD",3],"DDDo","dayOfYear"),v("DDD",Is),v("DDDD",ko),V(["DDD","DDDD"],function(e,t,n){n._dayOfYear=N(e)});function mm(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}$("m",["mm",2],0,"minute"),v("m",B,_a),v("mm",B,ke),V(["m","mm"],We);var gm=yn("Minutes",!1);$("s",["ss",2],0,"second"),v("s",B,_a),v("ss",B,ke),V(["s","ss"],ft);var pm=yn("Seconds",!1);$("S",0,0,function(){return~~(this.millisecond()/100)}),$(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),$(0,["SSS",3],0,"millisecond"),$(0,["SSSS",4],0,function(){return this.millisecond()*10}),$(0,["SSSSS",5],0,function(){return this.millisecond()*100}),$(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),$(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),$(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),$(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),v("S",Is,wo),v("SS",Is,ke),v("SSS",Is,ko);var It,nu;for(It="SSSS";It.length<=9;It+="S")v(It,gn);function ym(e,t){t[Jt]=N(("0."+e)*1e3)}for(It="S";It.length<=9;It+="S")V(It,ym);nu=yn("Milliseconds",!1),$("z",0,0,"zoneAbbr"),$("zz",0,0,"zoneName");function _m(){return this._isUTC?"UTC":""}function vm(){return this._isUTC?"Coordinated Universal Time":""}var f=Bn.prototype;f.add=cf,f.calendar=_f,f.clone=vf,f.diff=Df,f.endOf=Uf,f.format=Tf,f.from=Nf,f.fromNow=Rf,f.to=Cf,f.toNow=Pf,f.get=Oc,f.invalidAt=Gf,f.isAfter=wf,f.isBefore=kf,f.isBetween=$f,f.isSame=Sf,f.isSameOrAfter=bf,f.isSameOrBefore=Mf,f.isValid=Af,f.lang=Zo,f.locale=zo,f.localeData=Qo,f.max=Ih,f.min=Eh,f.parsingFlags=Vf,f.set=xc,f.startOf=Lf,f.subtract=hf,f.toArray=Hf,f.toObject=Ef,f.toDate=Ff,f.toISOString=Of,f.inspect=xf,typeof Symbol<"u"&&Symbol.for!=null&&(f[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),f.toJSON=If,f.toString=Yf,f.unix=Wf,f.valueOf=jf,f.creationData=qf,f.eraName=Qf,f.eraNarrow=Jf,f.eraAbbr=Kf,f.eraYear=Xf,f.year=bo,f.isLeapYear=Yc,f.weekYear=im,f.isoWeekYear=om,f.quarter=f.quarters=fm,f.month=xo,f.daysInMonth=Wc,f.week=f.weeks=qc,f.isoWeek=f.isoWeeks=Bc,f.weeksInYear=dm,f.weeksInWeekYear=cm,f.isoWeeksInYear=um,f.isoWeeksInISOWeekYear=lm,f.date=tu,f.day=f.days=ih,f.weekday=oh,f.isoWeekday=uh,f.dayOfYear=mm,f.hour=f.hours=gh,f.minute=f.minutes=gm,f.second=f.seconds=pm,f.millisecond=f.milliseconds=nu,f.utcOffset=Jh,f.utc=Xh,f.local=ef,f.parseZone=tf,f.hasAlignedHourOffset=nf,f.isDST=sf,f.isLocal=af,f.isUtcOffset=of,f.isUtc=Ao,f.isUTC=Ao,f.zoneAbbr=_m,f.zoneName=vm,f.dates=Ye("dates accessor is deprecated. Use date instead.",tu),f.months=Ye("months accessor is deprecated. Use month instead",xo),f.years=Ye("years accessor is deprecated. Use year instead",bo),f.zone=Ye("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Kh),f.isDSTShifted=Ye("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",rf);function wm(e){return z(e*1e3)}function km(){return z.apply(null,arguments).parseZone()}function su(e){return e}var F=ca.prototype;F.calendar=ac,F.longDateFormat=lc,F.invalidDate=cc,F.ordinal=mc,F.preparse=su,F.postformat=su,F.relativeTime=pc,F.pastFuture=yc,F.set=sc,F.eras=Bf,F.erasParse=zf,F.erasConvertYear=Zf,F.erasAbbrRegex=tm,F.erasNameRegex=em,F.erasNarrowRegex=nm,F.months=Pc,F.monthsShort=Lc,F.monthsParse=jc,F.monthsRegex=Hc,F.monthsShortRegex=Fc,F.week=Ic,F.firstDayOfYear=Gc,F.firstDayOfWeek=Vc,F.weekdays=th,F.weekdaysMin=sh,F.weekdaysShort=nh,F.weekdaysParse=ah,F.weekdaysRegex=lh,F.weekdaysShortRegex=dh,F.weekdaysMinRegex=ch,F.isPM=fh,F.meridiem=ph;function sr(e,t,n,s){var r=gt(),a=ze().set(s,t);return r[n](a,e)}function ru(e,t,n){if(dt(e)&&(t=e,e=void 0),e=e||"",t!=null)return sr(e,t,n,"month");var s,r=[];for(s=0;s<12;s++)r[s]=sr(e,s,n,"month");return r}function La(e,t,n,s){typeof e=="boolean"?(dt(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,dt(t)&&(n=t,t=void 0),t=t||"");var r=gt(),a=e?r._week.dow:0,i,o=[];if(n!=null)return sr(t,(n+a)%7,s,"day");for(i=0;i<7;i++)o[i]=sr(t,(i+a)%7,s,"day");return o}function $m(e,t){return ru(e,t,"months")}function Sm(e,t){return ru(e,t,"monthsShort")}function bm(e,t,n){return La(e,t,n,"weekdays")}function Mm(e,t,n){return La(e,t,n,"weekdaysShort")}function Dm(e,t,n){return La(e,t,n,"weekdaysMin")}Et("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(e){var t=e%10,n=N(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}}),p.lang=Ye("moment.lang is deprecated. Use moment.locale instead.",Et),p.langData=Ye("moment.langData is deprecated. Use moment.localeData instead.",gt);var pt=Math.abs;function Ym(){var e=this._data;return this._milliseconds=pt(this._milliseconds),this._days=pt(this._days),this._months=pt(this._months),e.milliseconds=pt(e.milliseconds),e.seconds=pt(e.seconds),e.minutes=pt(e.minutes),e.hours=pt(e.hours),e.months=pt(e.months),e.years=pt(e.years),this}function au(e,t,n,s){var r=Fe(t,n);return e._milliseconds+=s*r._milliseconds,e._days+=s*r._days,e._months+=s*r._months,e._bubble()}function Om(e,t){return au(this,e,t,1)}function xm(e,t){return au(this,e,t,-1)}function iu(e){return e<0?Math.floor(e):Math.ceil(e)}function Tm(){var e=this._milliseconds,t=this._days,n=this._months,s=this._data,r,a,i,o,u;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=iu(Ua(n)+t)*864e5,t=0,n=0),s.milliseconds=e%1e3,r=xe(e/1e3),s.seconds=r%60,a=xe(r/60),s.minutes=a%60,i=xe(a/60),s.hours=i%24,t+=xe(i/24),u=xe(ou(t)),n+=u,t-=iu(Ua(u)),o=xe(n/12),n%=12,s.days=t,s.months=n,s.years=o,this}function ou(e){return e*4800/146097}function Ua(e){return e*146097/4800}function Nm(e){if(!this.isValid())return NaN;var t,n,s=this._milliseconds;if(e=Oe(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+s/864e5,n=this._months+ou(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Ua(this._months)),e){case"week":return t/7+s/6048e5;case"day":return t+s/864e5;case"hour":return t*24+s/36e5;case"minute":return t*1440+s/6e4;case"second":return t*86400+s/1e3;case"millisecond":return Math.floor(t*864e5)+s;default:throw new Error("Unknown unit "+e)}}function yt(e){return function(){return this.as(e)}}var uu=yt("ms"),Rm=yt("s"),Cm=yt("m"),Pm=yt("h"),Lm=yt("d"),Um=yt("w"),jm=yt("M"),Wm=yt("Q"),Fm=yt("y"),Hm=uu;function Em(){return Fe(this)}function Im(e){return e=Oe(e),this.isValid()?this[e+"s"]():NaN}function Xt(e){return function(){return this.isValid()?this._data[e]:NaN}}var Am=Xt("milliseconds"),Vm=Xt("seconds"),Gm=Xt("minutes"),qm=Xt("hours"),Bm=Xt("days"),zm=Xt("months"),Zm=Xt("years");function Qm(){return xe(this.days()/7)}var _t=Math.round,kn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Jm(e,t,n,s,r){return r.relativeTime(t||1,!!n,e,s)}function Km(e,t,n,s){var r=Fe(e).abs(),a=_t(r.as("s")),i=_t(r.as("m")),o=_t(r.as("h")),u=_t(r.as("d")),l=_t(r.as("M")),d=_t(r.as("w")),h=_t(r.as("y")),c=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||i<=1&&["m"]||i<n.m&&["mm",i]||o<=1&&["h"]||o<n.h&&["hh",o]||u<=1&&["d"]||u<n.d&&["dd",u];return n.w!=null&&(c=c||d<=1&&["w"]||d<n.w&&["ww",d]),c=c||l<=1&&["M"]||l<n.M&&["MM",l]||h<=1&&["y"]||["yy",h],c[2]=t,c[3]=+e>0,c[4]=s,Jm.apply(null,c)}function Xm(e){return e===void 0?_t:typeof e=="function"?(_t=e,!0):!1}function eg(e,t){return kn[e]===void 0?!1:t===void 0?kn[e]:(kn[e]=t,e==="s"&&(kn.ss=t-1),!0)}function tg(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,s=kn,r,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(s=Object.assign({},kn,t),t.s!=null&&t.ss==null&&(s.ss=t.s-1)),r=this.localeData(),a=Km(this,!n,s,r),n&&(a=r.pastFuture(+this,a)),r.postformat(a)}var ja=Math.abs;function $n(e){return(e>0)-(e<0)||+e}function rr(){if(!this.isValid())return this.localeData().invalidDate();var e=ja(this._milliseconds)/1e3,t=ja(this._days),n=ja(this._months),s,r,a,i,o=this.asSeconds(),u,l,d,h;return o?(s=xe(e/60),r=xe(s/60),e%=60,s%=60,a=xe(n/12),n%=12,i=e?e.toFixed(3).replace(/\.?0+$/,""):"",u=o<0?"-":"",l=$n(this._months)!==$n(o)?"-":"",d=$n(this._days)!==$n(o)?"-":"",h=$n(this._milliseconds)!==$n(o)?"-":"",u+"P"+(a?l+a+"Y":"")+(n?l+n+"M":"")+(t?d+t+"D":"")+(r||s||e?"T":"")+(r?h+r+"H":"")+(s?h+s+"M":"")+(e?h+i+"S":"")):"P0D"}var P=Js.prototype;P.isValid=Bh,P.abs=Ym,P.add=Om,P.subtract=xm,P.as=Nm,P.asMilliseconds=uu,P.asSeconds=Rm,P.asMinutes=Cm,P.asHours=Pm,P.asDays=Lm,P.asWeeks=Um,P.asMonths=jm,P.asQuarters=Wm,P.asYears=Fm,P.valueOf=Hm,P._bubble=Tm,P.clone=Em,P.get=Im,P.milliseconds=Am,P.seconds=Vm,P.minutes=Gm,P.hours=qm,P.days=Bm,P.weeks=Qm,P.months=zm,P.years=Zm,P.humanize=tg,P.toISOString=rr,P.toString=rr,P.toJSON=rr,P.locale=zo,P.localeData=Qo,P.toIsoString=Ye("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",rr),P.lang=Zo,$("X",0,0,"unix"),$("x",0,0,"valueOf"),v("x",Vs),v("X",kc),V("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)}),V("x",function(e,t,n){n._d=new Date(N(e))});//! moment.js
10
+ p.version="2.30.1",tc(z),p.fn=f,p.min=Ah,p.max=Vh,p.now=Gh,p.utc=ze,p.unix=wm,p.months=$m,p.isDate=qn,p.locale=Et,p.invalid=Ws,p.duration=Fe,p.isMoment=je,p.weekdays=bm,p.parseZone=km,p.localeData=gt,p.isDuration=Ks,p.monthsShort=Sm,p.weekdaysMin=Dm,p.defineLocale=ba,p.updateLocale=wh,p.locales=kh,p.weekdaysShort=Mm,p.normalizeUnits=Oe,p.relativeTimeRounding=Xm,p.relativeTimeThreshold=eg,p.calendarFormat=yf,p.prototype=f,p.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"};const ng=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,sg=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,lu=/(janv\.?|févr\.?|avr\.?|juil\.?|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,Wa=[/^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],rg={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:lu,monthsShortRegex:lu,monthsStrictRegex:ng,monthsShortStrictRegex:sg,monthsParse:Wa,longMonthsParse:Wa,shortMonthsParse:Wa,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:(e,t)=>{switch(t){case"D":return e+(e===1?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(e===1?"er":"e");case"w":case"W":return e+(e===1?"re":"e")}},week:{dow:1,doy:4}};p.locale("fr",rg);const ar=(e,t,n=!0)=>(n?e.getFullYear()===t.getFullYear():!0)&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),du=()=>p().locale("fr").subtract(1,"days").toDate(),Sn=e=>new Date>e,cu=(e,t,n)=>{const s={...e},r=Object.entries(e);for(const[a,i]of r){const o=t[a];o?s[a]=n(i,o):s[a]=i}return s},hu=new Y.Schema({createdBy:String,members:{type:[String],default:[]},limit:{type:Number,default:3},name:String,description:String,channelId:String,meta:{xp:{type:Number,default:0},berry:{type:Number,default:0},buffs:{xp:{boost:{type:Number,default:0},expireAt:{type:Date,default:null}}}},disintegration:{type:Number,default:100},faction:String,stats:{type:Object,default:null},quest:{completed:[String],daily:{type:Object,default:{}},meta:{streak80Percent:{type:Number,default:0},maxVoiceMembers:{type:Number,default:0},actualVoiceMembers:{amount:{type:Number,default:0},connectedAt:{type:Date,default:new Date}}}},ornament:{unlockedBadges:[String]}},{timestamps:!0});hu.index({"meta.xp":-1});const ir=Y.model("Crew",hu),ag=(e,t)=>Math.ceil(t*(e.disintegration/100)*(fu(e)||1)),fu=e=>new Date>=(e.meta.buffs.xp.expireAt??new Date(0))?!1:e.meta.buffs.xp.boost,ig=Object.freeze(Object.defineProperty({__proto__:null,calcXp:ag,getCrewRank:async e=>(await ir.aggregate([{$setWindowFields:{sortBy:{"meta.xp":-1},output:{rank:{$rank:{}}}}},{$match:{_id:e._id}},{$project:{_id:1,"meta.xp":1,rank:1}}]))[0],hasXpBuff:fu,isAllDailyCompleted:(e,t)=>{for(const[,n]of Object.entries(e.quest.daily))if(!n||!ar(n[t],new Date))return!1;return Object.keys(e.quest.daily).length===e.members.length}},Symbol.toStringTag,{value:"Module"})),vt=async(e,t,n=!1)=>{await ir.updateOne({_id:e},t,{upsert:n})},og=Object.freeze(Object.defineProperty({__proto__:null,addBerry:async(e,t,n)=>{await vt(e,{$inc:{"meta.berry":t,[`stats.${n.toHexString()}.berry`]:t}})},addXp:async(e,t,n)=>{await vt(e,{$inc:{"meta.xp":t,[`stats.${n.toHexString()}.xp`]:t}})},addXpBuff:async(e,t)=>{await vt(e,[{$set:{"meta.buffs.xp":{$cond:{if:{$or:[{$eq:["$meta.buffs.xp.expireAt",null]},{lt:["$meta.buffs.xp.expireAt",new Date]}]},then:{boost:1.1,expireAt:{$add:[new Date,t*60*60*1e3]}},else:{boost:1.1,expireAt:{$add:["$meta.buffs.xp.expireAt",t*60*60*1e3]}}}}}}])},completeDailyQuest:async(e,t,n)=>{await vt(e,[{$addFields:{[`quest.daily.${t}.${n}`]:new Date}}])},completeQuest:async(e,t)=>{await vt(e,{$addToSet:{"quest.completed":t}})},increaseLimit:async(e,t)=>{await vt(e,{$inc:{limit:1},$set:{"meta.berry":-t}})},repair:async(e,t)=>{await vt(e,[{$set:{disintegration:{$min:[{$add:["$disintegration",t]},100]}}}])},unlockBadge:async(e,t,n)=>{t.isProgressive?await vt(e,{$addToSet:{"ornament.unlockedBadges":`${t.id}_${n}`}}):await vt(e,{$addToSet:{"ornament.unlockedBadges":t.id}})}},Symbol.toStringTag,{value:"Module"})),ug=async(e,t={})=>{const n=await ir.findById(e,t);return n||null},mu=new Y.Schema({senderId:String,receiverId:String,amount:Number,gameMode:String,meta:{rps:{type:String,default:void 0}}});mu.index({receiverId:1});const or=Y.model("Invitations",mu),lg=async e=>{const t=await or.findOne({...e});return t||null},dg=async e=>await or.create({...e}),cg=async e=>{await or.deleteMany({...e})};var en=(e=>(e.BASIC="BASIC",e.COMMON="COMMON",e.RARE="RARE",e.EPIC="EPIC",e.LEGENDARY="LEGENDARY",e.MYTHIC="MYTHIC",e))(en||{});en.BASIC,en.COMMON,en.RARE,en.EPIC,en.LEGENDARY,en.MYTHIC;const hg=["vitality","strength","agility","intelligence","chance","wisdom"],fg=100,mg=10,gg="citizen",pg={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};let yg=class uo{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||pg,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,s,r){return r&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${s}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new uo(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new uo(this.logger,t)}};var Ke=new yg;let ur=class{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(s=>{this.observers[s]||(this.observers[s]=new Map);const r=this.observers[s].get(n)||0;this.observers[s].set(n,r+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,s=new Array(n>1?n-1:0),r=1;r<n;r++)s[r-1]=arguments[r];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(a=>{let[i,o]=a;for(let u=0;u<o;u++)i(...s)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(a=>{let[i,o]=a;for(let u=0;u<o;u++)i.apply(i,[t,...s])})}};function ss(){let e,t;const n=new Promise((s,r)=>{e=s,t=r});return n.resolve=e,n.reject=t,n}function gu(e){return e==null?"":""+e}function _g(e,t,n){e.forEach(s=>{t[s]&&(n[s]=t[s])})}const vg=/###/g;function rs(e,t,n){function s(o){return o&&o.indexOf("###")>-1?o.replace(vg,"."):o}function r(){return!e||typeof e=="string"}const a=typeof t!="string"?t:t.split(".");let i=0;for(;i<a.length-1;){if(r())return{};const o=s(a[i]);!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={},++i}return r()?{}:{obj:e,k:s(a[i])}}function pu(e,t,n){const{obj:s,k:r}=rs(e,t,Object);if(s!==void 0||t.length===1){s[r]=n;return}let a=t[t.length-1],i=t.slice(0,t.length-1),o=rs(e,i,Object);for(;o.obj===void 0&&i.length;)a=`${i[i.length-1]}.${a}`,i=i.slice(0,i.length-1),o=rs(e,i,Object),o&&o.obj&&typeof o.obj[`${o.k}.${a}`]<"u"&&(o.obj=void 0);o.obj[`${o.k}.${a}`]=n}function wg(e,t,n,s){const{obj:r,k:a}=rs(e,t,Object);r[a]=r[a]||[],r[a].push(n)}function lr(e,t){const{obj:n,k:s}=rs(e,t);if(n)return n[s]}function kg(e,t,n){const s=lr(e,n);return s!==void 0?s:lr(t,n)}function yu(e,t,n){for(const s in t)s!=="__proto__"&&s!=="constructor"&&(s in e?typeof e[s]=="string"||e[s]instanceof String||typeof t[s]=="string"||t[s]instanceof String?n&&(e[s]=t[s]):yu(e[s],t[s],n):e[s]=t[s]);return e}function bn(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var $g={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Sg(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>$g[t]):e}let bg=class{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const s=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,s),this.regExpQueue.push(t),s}};const Mg=[" ",",","?","!",";"],Dg=new bg(20);function Yg(e,t,n){t=t||"",n=n||"";const s=Mg.filter(i=>t.indexOf(i)<0&&n.indexOf(i)<0);if(s.length===0)return!0;const r=Dg.getRegExp(`(${s.map(i=>i==="?"?"\\?":i).join("|")})`);let a=!r.test(e);if(!a){const i=e.indexOf(n);i>0&&!r.test(e.substring(0,i))&&(a=!0)}return a}function Fa(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const s=t.split(n);let r=e;for(let a=0;a<s.length;){if(!r||typeof r!="object")return;let i,o="";for(let u=a;u<s.length;++u)if(u!==a&&(o+=n),o+=s[u],i=r[o],i!==void 0){if(["string","number","boolean"].indexOf(typeof i)>-1&&u<s.length-1)continue;a+=u-a+1;break}r=i}return r}function dr(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}let _u=class extends ur{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,s){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,i=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let o;t.indexOf(".")>-1?o=t.split("."):(o=[t,n],s&&(Array.isArray(s)?o.push(...s):typeof s=="string"&&a?o.push(...s.split(a)):o.push(s)));const u=lr(this.data,o);return!u&&!n&&!s&&t.indexOf(".")>-1&&(t=o[0],n=o[1],s=o.slice(2).join(".")),u||!i||typeof s!="string"?u:Fa(this.data&&this.data[t]&&this.data[t][n],s,a)}addResource(t,n,s,r){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const i=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let o=[t,n];s&&(o=o.concat(i?s.split(i):s)),t.indexOf(".")>-1&&(o=t.split("."),r=n,n=o[1]),this.addNamespaces(n),pu(this.data,o,r),a.silent||this.emit("added",t,n,s,r)}addResources(t,n,s){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const a in s)(typeof s[a]=="string"||Array.isArray(s[a]))&&this.addResource(t,n,a,s[a],{silent:!0});r.silent||this.emit("added",t,n,s)}addResourceBundle(t,n,s,r,a){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},o=[t,n];t.indexOf(".")>-1&&(o=t.split("."),r=s,s=n,n=o[1]),this.addNamespaces(n);let u=lr(this.data,o)||{};i.skipCopy||(s=JSON.parse(JSON.stringify(s))),r?yu(u,s,a):u={...u,...s},pu(this.data,o,u),i.silent||this.emit("added",t,n,s)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(s=>n[s]&&Object.keys(n[s]).length>0)}toJSON(){return this.data}};var vu={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,s,r){return e.forEach(a=>{this.processors[a]&&(t=this.processors[a].process(t,n,s,r))}),t}};const wu={};let ku=class Jd extends ur{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),_g(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ke.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const s=this.resolve(t,n);return s&&s.res!==void 0}extractFromKey(t,n){let s=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");const r=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let a=n.ns||this.options.defaultNS||[];const i=s&&t.indexOf(s)>-1,o=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!Yg(t,s,r);if(i&&!o){const u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces:a};const l=t.split(s);(s!==r||s===r&&this.options.ns.indexOf(l[0])>-1)&&(a=l.shift()),t=l.join(r)}return typeof a=="string"&&(a=[a]),{key:t,namespaces:a}}translate(t,n,s){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const r=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:i,namespaces:o}=this.extractFromKey(t[t.length-1],n),u=o[o.length-1],l=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&l.toLowerCase()==="cimode"){if(d){const le=n.nsSeparator||this.options.nsSeparator;return r?{res:`${u}${le}${i}`,usedKey:i,exactUsedKey:i,usedLng:l,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:`${u}${le}${i}`}return r?{res:i,usedKey:i,exactUsedKey:i,usedLng:l,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:i}const h=this.resolve(t,n);let c=h&&h.res;const D=h&&h.usedKey||i,j=h&&h.exactUsedKey||i,me=Object.prototype.toString.apply(c),we=["[object Number]","[object Function]","[object RegExp]"],be=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,ge=!this.i18nFormat||this.i18nFormat.handleAsObject;if(ge&&c&&typeof c!="string"&&typeof c!="boolean"&&typeof c!="number"&&we.indexOf(me)<0&&!(typeof be=="string"&&Array.isArray(c))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const le=this.options.returnedObjectHandler?this.options.returnedObjectHandler(D,c,{...n,ns:o}):`key '${i} (${this.language})' returned an object instead of string.`;return r?(h.res=le,h.usedParams=this.getUsedParamsDetails(n),h):le}if(a){const le=Array.isArray(c),ue=le?[]:{},Wt=le?j:D;for(const pe in c)if(Object.prototype.hasOwnProperty.call(c,pe)){const Ft=`${Wt}${a}${pe}`;ue[pe]=this.translate(Ft,{...n,joinArrays:!1,ns:o}),ue[pe]===Ft&&(ue[pe]=c[pe])}c=ue}}else if(ge&&typeof be=="string"&&Array.isArray(c))c=c.join(be),c&&(c=this.extendTranslation(c,t,n,s));else{let le=!1,ue=!1;const Wt=n.count!==void 0&&typeof n.count!="string",pe=Jd.hasDefaultValue(n),Ft=Wt?this.pluralResolver.getSuffix(l,n.count,n):"",z$=n.ordinal&&Wt?this.pluralResolver.getSuffix(l,n.count,{ordinal:!1}):"",zd=Wt&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),Ps=zd&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${Ft}`]||n[`defaultValue${z$}`]||n.defaultValue;!this.isValidLookup(c)&&pe&&(le=!0,c=Ps),this.isValidLookup(c)||(ue=!0,c=i);const Z$=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&ue?void 0:c,Ls=pe&&Ps!==c&&this.options.updateMissing;if(ue||le||Ls){if(this.logger.log(Ls?"updateKey":"missingKey",l,u,i,Ls?Ps:c),a){const Me=this.resolve(i,{...n,keySeparator:!1});Me&&Me.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Us=[];const ra=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ra&&ra[0])for(let Me=0;Me<ra.length;Me++)Us.push(ra[Me]);else this.options.saveMissingTo==="all"?Us=this.languageUtils.toResolveHierarchy(n.lng||this.language):Us.push(n.lng||this.language);const Zd=(Me,fn,js)=>{const Qd=pe&&js!==c?js:Z$;this.options.missingKeyHandler?this.options.missingKeyHandler(Me,u,fn,Qd,Ls,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(Me,u,fn,Qd,Ls,n),this.emit("missingKey",Me,u,fn,c)};this.options.saveMissing&&(this.options.saveMissingPlurals&&Wt?Us.forEach(Me=>{const fn=this.pluralResolver.getSuffixes(Me,n);zd&&n[`defaultValue${this.options.pluralSeparator}zero`]&&fn.indexOf(`${this.options.pluralSeparator}zero`)<0&&fn.push(`${this.options.pluralSeparator}zero`),fn.forEach(js=>{Zd([Me],i+js,n[`defaultValue${js}`]||Ps)})}):Zd(Us,i,Ps))}c=this.extendTranslation(c,t,n,h,s),ue&&c===i&&this.options.appendNamespaceToMissingKey&&(c=`${u}:${i}`),(ue||le)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?c=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}:${i}`:i,le?c:void 0):c=this.options.parseMissingKeyHandler(c))}return r?(h.res=c,h.usedParams=this.getUsedParamsDetails(n),h):c}extendTranslation(t,n,s,r,a){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...s},s.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init({...s,interpolation:{...this.options.interpolation,...s.interpolation}});const l=typeof t=="string"&&(s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(l){const c=t.match(this.interpolator.nestingRegexp);d=c&&c.length}let h=s.replace&&typeof s.replace!="string"?s.replace:s;if(this.options.interpolation.defaultVariables&&(h={...this.options.interpolation.defaultVariables,...h}),t=this.interpolator.interpolate(t,h,s.lng||this.language||r.usedLng,s),l){const c=t.match(this.interpolator.nestingRegexp),D=c&&c.length;d<D&&(s.nest=!1)}!s.lng&&this.options.compatibilityAPI!=="v1"&&r&&r.res&&(s.lng=this.language||r.usedLng),s.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var c=arguments.length,D=new Array(c),j=0;j<c;j++)D[j]=arguments[j];return a&&a[0]===D[0]&&!s.context?(i.logger.warn(`It seems you are nesting recursively key: ${D[0]} in key: ${n[0]}`),null):i.translate(...D,n)},s)),s.interpolation&&this.interpolator.reset()}const o=s.postProcess||this.options.postProcess,u=typeof o=="string"?[o]:o;return t!=null&&u&&u.length&&s.applyPostProcessor!==!1&&(t=vu.handle(u,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(s)},...s}:s,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s,r,a,i,o;return typeof t=="string"&&(t=[t]),t.forEach(u=>{if(this.isValidLookup(s))return;const l=this.extractFromKey(u,n),d=l.key;r=d;let h=l.namespaces;this.options.fallbackNS&&(h=h.concat(this.options.fallbackNS));const c=n.count!==void 0&&typeof n.count!="string",D=c&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),j=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",me=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);h.forEach(we=>{this.isValidLookup(s)||(o=we,!wu[`${me[0]}-${we}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(wu[`${me[0]}-${we}`]=!0,this.logger.warn(`key "${r}" for languages "${me.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),me.forEach(be=>{if(this.isValidLookup(s))return;i=be;const ge=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(ge,d,be,we,n);else{let ue;c&&(ue=this.pluralResolver.getSuffix(be,n.count,n));const Wt=`${this.options.pluralSeparator}zero`,pe=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(ge.push(d+ue),n.ordinal&&ue.indexOf(pe)===0&&ge.push(d+ue.replace(pe,this.options.pluralSeparator)),D&&ge.push(d+Wt)),j){const Ft=`${d}${this.options.contextSeparator}${n.context}`;ge.push(Ft),c&&(ge.push(Ft+ue),n.ordinal&&ue.indexOf(pe)===0&&ge.push(Ft+ue.replace(pe,this.options.pluralSeparator)),D&&ge.push(Ft+Wt))}}let le;for(;le=ge.pop();)this.isValidLookup(s)||(a=le,s=this.getResource(be,we,le,n))}))})}),{res:s,usedKey:r,exactUsedKey:a,usedLng:i,usedNS:o}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,s){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,s,r):this.resourceStore.getResource(t,n,s,r)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],s=t.replace&&typeof t.replace!="string";let r=s?t.replace:t;if(s&&typeof t.count<"u"&&(r.count=t.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!s){r={...r};for(const a of n)delete r[a]}return r}static hasDefaultValue(t){const n="defaultValue";for(const s in t)if(Object.prototype.hasOwnProperty.call(t,s)&&n===s.substring(0,n.length)&&t[s]!==void 0)return!0;return!1}};function Ha(e){return e.charAt(0).toUpperCase()+e.slice(1)}let $u=class{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ke.create("languageUtils")}getScriptPartFromCode(t){if(t=dr(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=dr(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let s=t.split("-");return this.options.lowerCaseLng?s=s.map(r=>r.toLowerCase()):s.length===2?(s[0]=s[0].toLowerCase(),s[1]=s[1].toUpperCase(),n.indexOf(s[1].toLowerCase())>-1&&(s[1]=Ha(s[1].toLowerCase()))):s.length===3&&(s[0]=s[0].toLowerCase(),s[1].length===2&&(s[1]=s[1].toUpperCase()),s[0]!=="sgn"&&s[2].length===2&&(s[2]=s[2].toUpperCase()),n.indexOf(s[1].toLowerCase())>-1&&(s[1]=Ha(s[1].toLowerCase())),n.indexOf(s[2].toLowerCase())>-1&&(s[2]=Ha(s[2].toLowerCase()))),s.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(s=>{if(n)return;const r=this.formatLanguageCode(s);(!this.options.supportedLngs||this.isSupportedCode(r))&&(n=r)}),!n&&this.options.supportedLngs&&t.forEach(s=>{if(n)return;const r=this.getLanguagePartFromCode(s);if(this.isSupportedCode(r))return n=r;n=this.options.supportedLngs.find(a=>{if(a===r||!(a.indexOf("-")<0&&r.indexOf("-")<0)&&(a.indexOf("-")>0&&r.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===r||a.indexOf(r)===0&&r.length>1))return a})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let s=t[n];return s||(s=t[this.getScriptPartFromCode(n)]),s||(s=t[this.formatLanguageCode(n)]),s||(s=t[this.getLanguagePartFromCode(n)]),s||(s=t.default),s||[]}toResolveHierarchy(t,n){const s=this.getFallbackCodes(n||this.options.fallbackLng||[],t),r=[],a=i=>{i&&(this.isSupportedCode(i)?r.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):typeof t=="string"&&a(this.formatLanguageCode(t)),s.forEach(i=>{r.indexOf(i)<0&&a(this.formatLanguageCode(i))}),r}},Og=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],xg={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const Tg=["v1","v2","v3"],Ng=["v4"],Su={zero:0,one:1,two:2,few:3,many:4,other:5};function Rg(){const e={};return Og.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:xg[t.fc]}})}),e}let Cg=class{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Ke.create("pluralResolver"),(!this.options.compatibilityJSON||Ng.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Rg()}addRule(t,n){this.rules[t]=n}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(dr(t==="dev"?"en":t),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const s=this.getRule(t,n);return this.shouldUseIntlApi()?s&&s.resolvedOptions().pluralCategories.length>1:s&&s.numbers.length>1}getPluralFormsOfKey(t,n){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,s).map(r=>`${n}${r}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const s=this.getRule(t,n);return s?this.shouldUseIntlApi()?s.resolvedOptions().pluralCategories.sort((r,a)=>Su[r]-Su[a]).map(r=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r}`):s.numbers.map(r=>this.getSuffix(t,r,n)):[]}getSuffix(t,n){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=this.getRule(t,s);return r?this.shouldUseIntlApi()?`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${r.select(n)}`:this.getSuffixRetroCompatible(r,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const s=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let r=t.numbers[s];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(r===2?r="plural":r===1&&(r=""));const a=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return this.options.compatibilityJSON==="v1"?r===1?"":typeof r=="number"?`_plural_${r.toString()}`:a():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?a():this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString()}shouldUseIntlApi(){return!Tg.includes(this.options.compatibilityJSON)}};function bu(e,t,n){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=kg(e,t,n);return!a&&r&&typeof n=="string"&&(a=Fa(e,n,s),a===void 0&&(a=Fa(t,n,s))),a}let Pg=class{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ke.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:s,useRawValueToEscape:r,prefix:a,prefixEscaped:i,suffix:o,suffixEscaped:u,formatSeparator:l,unescapeSuffix:d,unescapePrefix:h,nestingPrefix:c,nestingPrefixEscaped:D,nestingSuffix:j,nestingSuffixEscaped:me,nestingOptionsSeparator:we,maxReplaces:be,alwaysFormat:ge}=t.interpolation;this.escape=n!==void 0?n:Sg,this.escapeValue=s!==void 0?s:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=a?bn(a):i||"{{",this.suffix=o?bn(o):u||"}}",this.formatSeparator=l||",",this.unescapePrefix=d?"":h||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=c?bn(c):D||bn("$t("),this.nestingSuffix=j?bn(j):me||bn(")"),this.nestingOptionsSeparator=we||",",this.maxReplaces=be||1e3,this.alwaysFormat=ge!==void 0?ge:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,s)=>n&&n.source===s?(n.lastIndex=0,n):new RegExp(s,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,s,r){let a,i,o;const u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(D){return D.replace(/\$/g,"$$$$")}const d=D=>{if(D.indexOf(this.formatSeparator)<0){const be=bu(n,u,D,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(be,void 0,s,{...r,...n,interpolationkey:D}):be}const j=D.split(this.formatSeparator),me=j.shift().trim(),we=j.join(this.formatSeparator).trim();return this.format(bu(n,u,me,this.options.keySeparator,this.options.ignoreJSONStructure),we,s,{...r,...n,interpolationkey:me})};this.resetRegExp();const h=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,c=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:D=>l(D)},{regex:this.regexp,safeValue:D=>this.escapeValue?l(this.escape(D)):l(D)}].forEach(D=>{for(o=0;a=D.regex.exec(t);){const j=a[1].trim();if(i=d(j),i===void 0)if(typeof h=="function"){const we=h(t,a,r);i=typeof we=="string"?we:""}else if(r&&Object.prototype.hasOwnProperty.call(r,j))i="";else if(c){i=a[0];continue}else this.logger.warn(`missed to pass in variable ${j} for interpolating ${t}`),i="";else typeof i!="string"&&!this.useRawValueToEscape&&(i=gu(i));const me=D.safeValue(i);if(t=t.replace(a[0],me),c?(D.regex.lastIndex+=i.length,D.regex.lastIndex-=a[0].length):D.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),t}nest(t,n){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,a,i;function o(u,l){const d=this.nestingOptionsSeparator;if(u.indexOf(d)<0)return u;const h=u.split(new RegExp(`${d}[ ]*{`));let c=`{${h[1]}`;u=h[0],c=this.interpolate(c,i);const D=c.match(/'/g),j=c.match(/"/g);(D&&D.length%2===0&&!j||j.length%2!==0)&&(c=c.replace(/'/g,'"'));try{i=JSON.parse(c),l&&(i={...l,...i})}catch(me){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,me),`${u}${d}${c}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,u}for(;r=this.nestingRegexp.exec(t);){let u=[];i={...s},i=i.replace&&typeof i.replace!="string"?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let l=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){const d=r[1].split(this.formatSeparator).map(h=>h.trim());r[1]=d.shift(),u=d,l=!0}if(a=n(o.call(this,r[1].trim(),i),i),a&&r[0]===t&&typeof a!="string")return a;typeof a!="string"&&(a=gu(a)),a||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${t}`),a=""),l&&(a=u.reduce((d,h)=>this.format(d,h,s.lng,{...s,interpolationkey:r[1].trim()}),a.trim())),t=t.replace(r[0],a),this.regexp.lastIndex=0}return t}};function Lg(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const s=e.split("(");t=s[0].toLowerCase().trim();const r=s[1].substring(0,s[1].length-1);t==="currency"&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):t==="relativetime"&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach(a=>{if(a){const[i,...o]=a.split(":"),u=o.join(":").trim().replace(/^'+|'+$/g,""),l=i.trim();n[l]||(n[l]=u),u==="false"&&(n[l]=!1),u==="true"&&(n[l]=!0),isNaN(u)||(n[l]=parseInt(u,10))}})}return{formatName:t,formatOptions:n}}function Mn(e){const t={};return function(n,s,r){const a=s+JSON.stringify(r);let i=t[a];return i||(i=e(dr(s),r),t[a]=i),i(n)}}let Ug=class{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ke.create("formatter"),this.options=t,this.formats={number:Mn((n,s)=>{const r=new Intl.NumberFormat(n,{...s});return a=>r.format(a)}),currency:Mn((n,s)=>{const r=new Intl.NumberFormat(n,{...s,style:"currency"});return a=>r.format(a)}),datetime:Mn((n,s)=>{const r=new Intl.DateTimeFormat(n,{...s});return a=>r.format(a)}),relativetime:Mn((n,s)=>{const r=new Intl.RelativeTimeFormat(n,{...s});return a=>r.format(a,s.range||"day")}),list:Mn((n,s)=>{const r=new Intl.ListFormat(n,{...s});return a=>r.format(a)})},this.init(t)}init(t){const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Mn(n)}format(t,n,s){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((a,i)=>{const{formatName:o,formatOptions:u}=Lg(i);if(this.formats[o]){let l=a;try{const d=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},h=d.locale||d.lng||r.locale||r.lng||s;l=this.formats[o](a,h,{...u,...r,...d})}catch(d){this.logger.warn(d)}return l}else this.logger.warn(`there was no format function for ${o}`);return a},t)}};function jg(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}let Wg=class extends ur{constructor(t,n,s){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=s,this.languageUtils=s.languageUtils,this.options=r,this.logger=Ke.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(s,r.backend,r)}queueLoad(t,n,s,r){const a={},i={},o={},u={};return t.forEach(l=>{let d=!0;n.forEach(h=>{const c=`${l}|${h}`;!s.reload&&this.store.hasResourceBundle(l,h)?this.state[c]=2:this.state[c]<0||(this.state[c]===1?i[c]===void 0&&(i[c]=!0):(this.state[c]=1,d=!1,i[c]===void 0&&(i[c]=!0),a[c]===void 0&&(a[c]=!0),u[h]===void 0&&(u[h]=!0)))}),d||(o[l]=!0)}),(Object.keys(a).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(a),pending:Object.keys(i),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(u)}}loaded(t,n,s){const r=t.split("|"),a=r[0],i=r[1];n&&this.emit("failedLoading",a,i,n),s&&this.store.addResourceBundle(a,i,s,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2;const o={};this.queue.forEach(u=>{wg(u.loaded,[a],i),jg(u,t),n&&u.errors.push(n),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(l=>{o[l]||(o[l]={});const d=u.loaded[l];d.length&&d.forEach(h=>{o[l][h]===void 0&&(o[l][h]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(u=>!u.done)}read(t,n,s){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!t.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:s,tried:r,wait:a,callback:i});return}this.readingCalls++;const o=(l,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const h=this.waitingReads.shift();this.read(h.lng,h.ns,h.fcName,h.tried,h.wait,h.callback)}if(l&&d&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,s,r+1,a*2,i)},a);return}i(l,d)},u=this.backend[s].bind(this.backend);if(u.length===2){try{const l=u(t,n);l&&typeof l.then=="function"?l.then(d=>o(null,d)).catch(o):o(null,l)}catch(l){o(l)}return}return u(t,n,o)}prepareLoading(t,n){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const a=this.queueLoad(t,n,s,r);if(!a.toLoad.length)return a.pending.length||r(),null;a.toLoad.forEach(i=>{this.loadOne(i)})}load(t,n,s){this.prepareLoading(t,n,{},s)}reload(t,n,s){this.prepareLoading(t,n,{reload:!0},s)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const s=t.split("|"),r=s[0],a=s[1];this.read(r,a,"read",void 0,void 0,(i,o)=>{i&&this.logger.warn(`${n}loading namespace ${a} for language ${r} failed`,i),!i&&o&&this.logger.log(`${n}loaded namespace ${a} for language ${r}`,o),this.loaded(t,i,o)})}saveMissing(t,n,s,r,a){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${s}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(s==null||s==="")){if(this.backend&&this.backend.create){const u={...i,isUpdate:a},l=this.backend.create.bind(this.backend);if(l.length<6)try{let d;l.length===5?d=l(t,n,s,r,u):d=l(t,n,s,r),d&&typeof d.then=="function"?d.then(h=>o(null,h)).catch(o):o(null,d)}catch(d){o(d)}else l(t,n,s,r,o,u)}!t||!t[0]||this.store.addResource(t[0],n,s,r)}}};function Mu(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let t={};if(typeof e[1]=="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(s=>{t[s]=n[s]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Du(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function cr(){}function Fg(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]=="function"&&(e[t]=e[t].bind(e))})}let Yu=class lo extends ur{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Du(t),this.services={},this.logger=Ke,this.modules={external:[]},Fg(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(s=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const r=Mu();this.options={...r,...this.options,...Du(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function a(u){return u?typeof u=="function"?new u:u:null}if(!this.options.isClone){this.modules.logger?Ke.init(a(this.modules.logger),this.options):Ke.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:typeof Intl<"u"&&(u=Ug);const l=new $u(this.options);this.store=new _u(this.options.resources,this.options);const d=this.services;d.logger=Ke,d.resourceStore=this.store,d.languageUtils=l,d.pluralResolver=new Cg(l,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(d.formatter=a(u),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new Pg(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new Wg(a(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(h){for(var c=arguments.length,D=new Array(c>1?c-1:0),j=1;j<c;j++)D[j-1]=arguments[j];t.emit(h,...D)}),this.modules.languageDetector&&(d.languageDetector=a(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=a(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new ku(this.services,this.options),this.translator.on("*",function(h){for(var c=arguments.length,D=new Array(c>1?c-1:0),j=1;j<c;j++)D[j-1]=arguments[j];t.emit(h,...D)}),this.modules.external.forEach(h=>{h.init&&h.init(this)})}if(this.format=this.options.interpolation.format,s||(s=cr),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=function(){return t.store[u](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=function(){return t.store[u](...arguments),t}});const i=ss(),o=()=>{const u=(l,d)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),i.resolve(d),s(l,d)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initImmediate?o():setTimeout(o,0),i}loadResources(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:cr;const s=typeof t=="string"?t:this.language;if(typeof t=="function"&&(n=t),!this.options.resources||this.options.partialBundledLanguages){if(s&&s.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const r=[],a=i=>{!i||i==="cimode"||this.services.languageUtils.toResolveHierarchy(i).forEach(o=>{o!=="cimode"&&r.indexOf(o)<0&&r.push(o)})};s?a(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(i=>a(i)),this.options.preload&&this.options.preload.forEach(i=>a(i)),this.services.backendConnector.load(r,this.options.ns,i=>{!i&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(i)})}else n(null)}reloadResources(t,n,s){const r=ss();return t||(t=this.languages),n||(n=this.options.ns),s||(s=cr),this.services.backendConnector.reload(t,n,a=>{r.resolve(),s(a)}),r}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&vu.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const s=this.languages[n];if(!(["cimode","dev"].indexOf(s)>-1)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}}changeLanguage(t,n){var s=this;this.isLanguageChangingTo=t;const r=ss();this.emit("languageChanging",t);const a=u=>{this.language=u,this.languages=this.services.languageUtils.toResolveHierarchy(u),this.resolvedLanguage=void 0,this.setResolvedLanguage(u)},i=(u,l)=>{l?(a(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,r.resolve(function(){return s.t(...arguments)}),n&&n(u,function(){return s.t(...arguments)})},o=u=>{!t&&!u&&this.services.languageDetector&&(u=[]);const l=typeof u=="string"?u:this.services.languageUtils.getBestMatchFromCodes(u);l&&(this.language||a(l),this.translator.language||this.translator.changeLanguage(l),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(l)),this.loadResources(l,d=>{i(d,l)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(t),r}getFixedT(t,n,s){var r=this;const a=function(i,o){let u;if(typeof o!="object"){for(var l=arguments.length,d=new Array(l>2?l-2:0),h=2;h<l;h++)d[h-2]=arguments[h];u=r.options.overloadTranslationOptionHandler([i,o].concat(d))}else u={...o};u.lng=u.lng||a.lng,u.lngs=u.lngs||a.lngs,u.ns=u.ns||a.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||s||a.keyPrefix);const c=r.options.keySeparator||".";let D;return u.keyPrefix&&Array.isArray(i)?D=i.map(j=>`${u.keyPrefix}${c}${j}`):D=u.keyPrefix?`${u.keyPrefix}${c}${i}`:i,r.t(D,u)};return typeof t=="string"?a.lng=t:a.lngs=t,a.ns=n,a.keyPrefix=s,a}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const s=n.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;const i=(o,u)=>{const l=this.services.backendConnector.state[`${o}|${u}`];return l===-1||l===2};if(n.precheck){const o=n.precheck(this,i);if(o!==void 0)return o}return!!(this.hasResourceBundle(s,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(s,t)&&(!r||i(a,t)))}loadNamespaces(t,n){const s=ss();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{s.resolve(),n&&n(r)}),s):(n&&n(),Promise.resolve())}loadLanguages(t,n){const s=ss();typeof t=="string"&&(t=[t]);const r=this.options.preload||[],a=t.filter(i=>r.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return a.length?(this.options.preload=r.concat(a),this.loadResources(i=>{s.resolve(),n&&n(i)}),s):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],s=this.services&&this.services.languageUtils||new $u(Mu());return n.indexOf(s.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new lo(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:cr;const s=t.forkResourceStore;s&&delete t.forkResourceStore;const r={...this.options,...t,isClone:!0},a=new lo(r);return(t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(i=>{a[i]=this[i]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},s&&(a.store=new _u(this.store.data,r),a.services.resourceStore=a.store),a.translator=new ku(a.services,r),a.translator.on("*",function(i){for(var o=arguments.length,u=new Array(o>1?o-1:0),l=1;l<o;l++)u[l-1]=arguments[l];a.emit(i,...u)}),a.init(r,n),a.translator.options=r,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}};const fe=Yu.createInstance();fe.createInstance=Yu.createInstance,fe.createInstance,fe.dir,fe.init,fe.loadResources,fe.reloadResources,fe.use,fe.changeLanguage,fe.getFixedT,fe.t,fe.exists,fe.setDefaultNamespace,fe.hasLoadedNamespace,fe.loadNamespaces,fe.loadLanguages;//! moment.js
11
11
  //! version : 2.30.1
12
12
  //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
13
13
  //! license : MIT
14
14
  //! momentjs.com
15
- var Mu;function y(){return Mu.apply(null,arguments)}function Fg(e){Mu=e}function He(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function tn(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function H(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ha(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(H(e,t))return!1;return!0}function _e(e){return e===void 0}function wt(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function rs(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Du(e,t){var n=[],s,r=e.length;for(s=0;s<r;++s)n.push(t(e[s],s));return n}function At(e,t){for(var n in t)H(t,n)&&(e[n]=t[n]);return H(t,"toString")&&(e.toString=t.toString),H(t,"valueOf")&&(e.valueOf=t.valueOf),e}function Xe(e,t,n,s){return Xu(e,t,n,s,!0).utc()}function Hg(){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 x(e){return e._pf==null&&(e._pf=Hg()),e._pf}var Ea;Array.prototype.some?Ea=Array.prototype.some:Ea=function(e){var t=Object(this),n=t.length>>>0,s;for(s=0;s<n;s++)if(s in t&&e.call(this,t[s],s,t))return!0;return!1};function Ia(e){var t=null,n=!1,s=e._d&&!isNaN(e._d.getTime());if(s&&(t=x(e),n=Ea.call(t.parsedDateParts,function(r){return r!=null}),s=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(s=s&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=s;else return s;return e._isValid}function hr(e){var t=Xe(NaN);return e!=null?At(x(t),e):x(t).userInvalidated=!0,t}var Yu=y.momentProperties=[],Aa=!1;function Va(e,t){var n,s,r,a=Yu.length;if(_e(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),_e(t._i)||(e._i=t._i),_e(t._f)||(e._f=t._f),_e(t._l)||(e._l=t._l),_e(t._strict)||(e._strict=t._strict),_e(t._tzm)||(e._tzm=t._tzm),_e(t._isUTC)||(e._isUTC=t._isUTC),_e(t._offset)||(e._offset=t._offset),_e(t._pf)||(e._pf=x(t)),_e(t._locale)||(e._locale=t._locale),a>0)for(n=0;n<a;n++)s=Yu[n],r=t[s],_e(r)||(e[s]=r);return e}function as(e){Va(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Aa===!1&&(Aa=!0,y.updateOffset(this),Aa=!1)}function Ee(e){return e instanceof as||e!=null&&e._isAMomentObject!=null}function Ou(e){y.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function Te(e,t){var n=!0;return At(function(){if(y.deprecationHandler!=null&&y.deprecationHandler(null,e),n){var s=[],r,a,i,o=arguments.length;for(a=0;a<o;a++){if(r="",typeof arguments[a]=="object"){r+=`
16
- [`+a+"] ";for(i in arguments[0])H(arguments[0],i)&&(r+=i+": "+arguments[0][i]+", ");r=r.slice(0,-2)}else r=arguments[a];s.push(r)}Ou(e+`
15
+ var Ou;function y(){return Ou.apply(null,arguments)}function Hg(e){Ou=e}function He(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function tn(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function H(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ea(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(H(e,t))return!1;return!0}function _e(e){return e===void 0}function wt(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function as(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function xu(e,t){var n=[],s,r=e.length;for(s=0;s<r;++s)n.push(t(e[s],s));return n}function At(e,t){for(var n in t)H(t,n)&&(e[n]=t[n]);return H(t,"toString")&&(e.toString=t.toString),H(t,"valueOf")&&(e.valueOf=t.valueOf),e}function Xe(e,t,n,s){return nl(e,t,n,s,!0).utc()}function Eg(){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 x(e){return e._pf==null&&(e._pf=Eg()),e._pf}var Ia;Array.prototype.some?Ia=Array.prototype.some:Ia=function(e){var t=Object(this),n=t.length>>>0,s;for(s=0;s<n;s++)if(s in t&&e.call(this,t[s],s,t))return!0;return!1};function Aa(e){var t=null,n=!1,s=e._d&&!isNaN(e._d.getTime());if(s&&(t=x(e),n=Ia.call(t.parsedDateParts,function(r){return r!=null}),s=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(s=s&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=s;else return s;return e._isValid}function hr(e){var t=Xe(NaN);return e!=null?At(x(t),e):x(t).userInvalidated=!0,t}var Tu=y.momentProperties=[],Va=!1;function Ga(e,t){var n,s,r,a=Tu.length;if(_e(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),_e(t._i)||(e._i=t._i),_e(t._f)||(e._f=t._f),_e(t._l)||(e._l=t._l),_e(t._strict)||(e._strict=t._strict),_e(t._tzm)||(e._tzm=t._tzm),_e(t._isUTC)||(e._isUTC=t._isUTC),_e(t._offset)||(e._offset=t._offset),_e(t._pf)||(e._pf=x(t)),_e(t._locale)||(e._locale=t._locale),a>0)for(n=0;n<a;n++)s=Tu[n],r=t[s],_e(r)||(e[s]=r);return e}function is(e){Ga(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Va===!1&&(Va=!0,y.updateOffset(this),Va=!1)}function Ee(e){return e instanceof is||e!=null&&e._isAMomentObject!=null}function Nu(e){y.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function Te(e,t){var n=!0;return At(function(){if(y.deprecationHandler!=null&&y.deprecationHandler(null,e),n){var s=[],r,a,i,o=arguments.length;for(a=0;a<o;a++){if(r="",typeof arguments[a]=="object"){r+=`
16
+ [`+a+"] ";for(i in arguments[0])H(arguments[0],i)&&(r+=i+": "+arguments[0][i]+", ");r=r.slice(0,-2)}else r=arguments[a];s.push(r)}Nu(e+`
17
17
  Arguments: `+Array.prototype.slice.call(s).join("")+`
18
- `+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var xu={};function Tu(e,t){y.deprecationHandler!=null&&y.deprecationHandler(e,t),xu[e]||(Ou(t),xu[e]=!0)}y.suppressDeprecationWarnings=!1,y.deprecationHandler=null;function et(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Eg(e){var t,n;for(n in e)H(e,n)&&(t=e[n],et(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Ga(e,t){var n=At({},e),s;for(s in t)H(t,s)&&(tn(e[s])&&tn(t[s])?(n[s]={},At(n[s],e[s]),At(n[s],t[s])):t[s]!=null?n[s]=t[s]:delete n[s]);for(s in e)H(e,s)&&!H(t,s)&&tn(e[s])&&(n[s]=At({},n[s]));return n}function qa(e){e!=null&&this.set(e)}var Ba;Object.keys?Ba=Object.keys:Ba=function(e){var t,n=[];for(t in e)H(e,t)&&n.push(t);return n};var Ig={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Ag(e,t,n){var s=this._calendar[e]||this._calendar.sameElse;return et(s)?s.call(t,n):s}function tt(e,t,n){var s=""+Math.abs(e),r=t-s.length,a=e>=0;return(a?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+s}var za=/(\[[^\[]*\])|(\\)?([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,fr=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Za={},bn={};function S(e,t,n,s){var r=s;typeof s=="string"&&(r=function(){return this[s]()}),e&&(bn[e]=r),t&&(bn[t[0]]=function(){return tt(r.apply(this,arguments),t[1],t[2])}),n&&(bn[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function Vg(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Gg(e){var t=e.match(za),n,s;for(n=0,s=t.length;n<s;n++)bn[t[n]]?t[n]=bn[t[n]]:t[n]=Vg(t[n]);return function(r){var a="",i;for(i=0;i<s;i++)a+=et(t[i])?t[i].call(r,e):t[i];return a}}function mr(e,t){return e.isValid()?(t=Nu(t,e.localeData()),Za[t]=Za[t]||Gg(t),Za[t](e)):e.localeData().invalidDate()}function Nu(e,t){var n=5;function s(r){return t.longDateFormat(r)||r}for(fr.lastIndex=0;n>=0&&fr.test(e);)e=e.replace(fr,s),fr.lastIndex=0,n-=1;return e}var qg={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 Bg(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(za).map(function(s){return s==="MMMM"||s==="MM"||s==="DD"||s==="dddd"?s.slice(1):s}).join(""),this._longDateFormat[e])}var zg="Invalid date";function Zg(){return this._invalidDate}var Qg="%d",Jg=/\d{1,2}/;function Kg(e){return this._ordinal.replace("%d",e)}var Xg={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 ep(e,t,n,s){var r=this._relativeTime[n];return et(r)?r(e,t,n,s):r.replace(/%d/i,e)}function tp(e,t){var n=this._relativeTime[e>0?"future":"past"];return et(n)?n(t):n.replace(/%s/i,t)}var Ru={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 Ne(e){return typeof e=="string"?Ru[e]||Ru[e.toLowerCase()]:void 0}function Qa(e){var t={},n,s;for(s in e)H(e,s)&&(n=Ne(s),n&&(t[n]=e[s]));return t}var np={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 sp(e){var t=[],n;for(n in e)H(e,n)&&t.push({unit:n,priority:np[n]});return t.sort(function(s,r){return s.priority-r.priority}),t}var Pu=/\d/,$e=/\d\d/,Cu=/\d{3}/,Ja=/\d{4}/,gr=/[+-]?\d{6}/,Z=/\d\d?/,Lu=/\d\d\d\d?/,Uu=/\d\d\d\d\d\d?/,pr=/\d{1,3}/,Ka=/\d{1,4}/,yr=/[+-]?\d{1,6}/,Mn=/\d+/,_r=/[+-]?\d+/,rp=/Z|[+-]\d\d:?\d\d/gi,vr=/Z|[+-]\d\d(?::?\d\d)?/gi,ap=/[+-]?\d+(\.\d{1,3})?/,is=/[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,Dn=/^[1-9]\d?/,Xa=/^([1-9]\d|\d)/,wr;wr={};function w(e,t,n){wr[e]=et(t)?t:function(s,r){return s&&n?n:t}}function ip(e,t){return H(wr,e)?wr[e](t._strict,t._locale):new RegExp(op(e))}function op(e){return kt(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,s,r,a){return n||s||r||a}))}function kt(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Re(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function R(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Re(t)),n}var ei={};function G(e,t){var n,s=t,r;for(typeof e=="string"&&(e=[e]),wt(t)&&(s=function(a,i){i[t]=R(a)}),r=e.length,n=0;n<r;n++)ei[e[n]]=s}function os(e,t){G(e,function(n,s,r,a){r._w=r._w||{},t(n,r._w,r,a)})}function up(e,t,n){t!=null&&H(ei,e)&&ei[e](t,n._a,n,e)}function kr(e){return e%4===0&&e%100!==0||e%400===0}var ce=0,$t=1,nt=2,ie=3,Ie=4,St=5,nn=6,lp=7,dp=8;S("Y",0,0,function(){var e=this.year();return e<=9999?tt(e,4):"+"+e}),S(0,["YY",2],0,function(){return this.year()%100}),S(0,["YYYY",4],0,"year"),S(0,["YYYYY",5],0,"year"),S(0,["YYYYYY",6,!0],0,"year"),w("Y",_r),w("YY",Z,$e),w("YYYY",Ka,Ja),w("YYYYY",yr,gr),w("YYYYYY",yr,gr),G(["YYYYY","YYYYYY"],ce),G("YYYY",function(e,t){t[ce]=e.length===2?y.parseTwoDigitYear(e):R(e)}),G("YY",function(e,t){t[ce]=y.parseTwoDigitYear(e)}),G("Y",function(e,t){t[ce]=parseInt(e,10)});function us(e){return kr(e)?366:365}y.parseTwoDigitYear=function(e){return R(e)+(R(e)>68?1900:2e3)};var ju=Yn("FullYear",!0);function cp(){return kr(this.year())}function Yn(e,t){return function(n){return n!=null?(Wu(this,e,n),y.updateOffset(this,t),this):ls(this,e)}}function ls(e,t){if(!e.isValid())return NaN;var n=e._d,s=e._isUTC;switch(t){case"Milliseconds":return s?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return s?n.getUTCSeconds():n.getSeconds();case"Minutes":return s?n.getUTCMinutes():n.getMinutes();case"Hours":return s?n.getUTCHours():n.getHours();case"Date":return s?n.getUTCDate():n.getDate();case"Day":return s?n.getUTCDay():n.getDay();case"Month":return s?n.getUTCMonth():n.getMonth();case"FullYear":return s?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Wu(e,t,n){var s,r,a,i,o;if(!(!e.isValid()||isNaN(n))){switch(s=e._d,r=e._isUTC,t){case"Milliseconds":return void(r?s.setUTCMilliseconds(n):s.setMilliseconds(n));case"Seconds":return void(r?s.setUTCSeconds(n):s.setSeconds(n));case"Minutes":return void(r?s.setUTCMinutes(n):s.setMinutes(n));case"Hours":return void(r?s.setUTCHours(n):s.setHours(n));case"Date":return void(r?s.setUTCDate(n):s.setDate(n));case"FullYear":break;default:return}a=n,i=e.month(),o=e.date(),o=o===29&&i===1&&!kr(a)?28:o,r?s.setUTCFullYear(a,i,o):s.setFullYear(a,i,o)}}function hp(e){return e=Ne(e),et(this[e])?this[e]():this}function fp(e,t){if(typeof e=="object"){e=Qa(e);var n=sp(e),s,r=n.length;for(s=0;s<r;s++)this[n[s].unit](e[n[s].unit])}else if(e=Ne(e),et(this[e]))return this[e](t);return this}function mp(e,t){return(e%t+t)%t}var se;Array.prototype.indexOf?se=Array.prototype.indexOf:se=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function ti(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=mp(t,12);return e+=(t-n)/12,n===1?kr(e)?29:28:31-n%7%2}S("M",["MM",2],"Mo",function(){return this.month()+1}),S("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),S("MMMM",0,0,function(e){return this.localeData().months(this,e)}),w("M",Z,Dn),w("MM",Z,$e),w("MMM",function(e,t){return t.monthsShortRegex(e)}),w("MMMM",function(e,t){return t.monthsRegex(e)}),G(["M","MM"],function(e,t){t[$t]=R(e)-1}),G(["MMM","MMMM"],function(e,t,n,s){var r=n._locale.monthsParse(e,s,n._strict);r!=null?t[$t]=r:x(n).invalidMonth=e});var gp="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Fu="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Hu=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,pp=is,yp=is;function _p(e,t){return e?He(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Hu).test(t)?"format":"standalone"][e.month()]:He(this._months)?this._months:this._months.standalone}function vp(e,t){return e?He(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Hu.test(t)?"format":"standalone"][e.month()]:He(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function wp(e,t,n){var s,r,a,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)a=Xe([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(a,"").toLocaleLowerCase();return n?t==="MMM"?(r=se.call(this._shortMonthsParse,i),r!==-1?r:null):(r=se.call(this._longMonthsParse,i),r!==-1?r:null):t==="MMM"?(r=se.call(this._shortMonthsParse,i),r!==-1?r:(r=se.call(this._longMonthsParse,i),r!==-1?r:null)):(r=se.call(this._longMonthsParse,i),r!==-1?r:(r=se.call(this._shortMonthsParse,i),r!==-1?r:null))}function kp(e,t,n){var s,r,a;if(this._monthsParseExact)return wp.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++)if(r=Xe([2e3,s]),n&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),!n&&!this._monthsParse[s]&&(a="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[s]=new RegExp(a.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[s].test(e)||n&&t==="MMM"&&this._shortMonthsParse[s].test(e)||!n&&this._monthsParse[s].test(e))return s}function Eu(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=R(t);else if(t=e.localeData().monthsParse(t),!wt(t))return e}var n=t,s=e.date();return s=s<29?s:Math.min(s,ti(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,s):e._d.setMonth(n,s),e}function Iu(e){return e!=null?(Eu(this,e),y.updateOffset(this,!0),this):ls(this,"Month")}function $p(){return ti(this.year(),this.month())}function Sp(e){return this._monthsParseExact?(H(this,"_monthsRegex")||Au.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(H(this,"_monthsShortRegex")||(this._monthsShortRegex=pp),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function bp(e){return this._monthsParseExact?(H(this,"_monthsRegex")||Au.call(this),e?this._monthsStrictRegex:this._monthsRegex):(H(this,"_monthsRegex")||(this._monthsRegex=yp),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Au(){function e(u,l){return l.length-u.length}var t=[],n=[],s=[],r,a,i,o;for(r=0;r<12;r++)a=Xe([2e3,r]),i=kt(this.monthsShort(a,"")),o=kt(this.months(a,"")),t.push(i),n.push(o),s.push(o),s.push(i);t.sort(e),n.sort(e),s.sort(e),this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Mp(e,t,n,s,r,a,i){var o;return e<100&&e>=0?(o=new Date(e+400,t,n,s,r,a,i),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,s,r,a,i),o}function ds(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function $r(e,t,n){var s=7+t-n,r=(7+ds(e,0,s).getUTCDay()-t)%7;return-r+s-1}function Vu(e,t,n,s,r){var a=(7+n-s)%7,i=$r(e,s,r),o=1+7*(t-1)+a+i,u,l;return o<=0?(u=e-1,l=us(u)+o):o>us(e)?(u=e+1,l=o-us(e)):(u=e,l=o),{year:u,dayOfYear:l}}function cs(e,t,n){var s=$r(e.year(),t,n),r=Math.floor((e.dayOfYear()-s-1)/7)+1,a,i;return r<1?(i=e.year()-1,a=r+bt(i,t,n)):r>bt(e.year(),t,n)?(a=r-bt(e.year(),t,n),i=e.year()+1):(i=e.year(),a=r),{week:a,year:i}}function bt(e,t,n){var s=$r(e,t,n),r=$r(e+1,t,n);return(us(e)-s+r)/7}S("w",["ww",2],"wo","week"),S("W",["WW",2],"Wo","isoWeek"),w("w",Z,Dn),w("ww",Z,$e),w("W",Z,Dn),w("WW",Z,$e),os(["w","ww","W","WW"],function(e,t,n,s){t[s.substr(0,1)]=R(e)});function Dp(e){return cs(e,this._week.dow,this._week.doy).week}var Yp={dow:0,doy:6};function Op(){return this._week.dow}function xp(){return this._week.doy}function Tp(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Np(e){var t=cs(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}S("d",0,"do","day"),S("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),S("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),S("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),S("e",0,0,"weekday"),S("E",0,0,"isoWeekday"),w("d",Z),w("e",Z),w("E",Z),w("dd",function(e,t){return t.weekdaysMinRegex(e)}),w("ddd",function(e,t){return t.weekdaysShortRegex(e)}),w("dddd",function(e,t){return t.weekdaysRegex(e)}),os(["dd","ddd","dddd"],function(e,t,n,s){var r=n._locale.weekdaysParse(e,s,n._strict);r!=null?t.d=r:x(n).invalidWeekday=e}),os(["d","e","E"],function(e,t,n,s){t[s]=R(e)});function Rp(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Pp(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function ni(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Cp="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Gu="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Lp="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Up=is,jp=is,Wp=is;function Fp(e,t){var n=He(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?ni(n,this._week.dow):e?n[e.day()]:n}function Hp(e){return e===!0?ni(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ep(e){return e===!0?ni(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ip(e,t,n){var s,r,a,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)a=Xe([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(a,"").toLocaleLowerCase();return n?t==="dddd"?(r=se.call(this._weekdaysParse,i),r!==-1?r:null):t==="ddd"?(r=se.call(this._shortWeekdaysParse,i),r!==-1?r:null):(r=se.call(this._minWeekdaysParse,i),r!==-1?r:null):t==="dddd"?(r=se.call(this._weekdaysParse,i),r!==-1||(r=se.call(this._shortWeekdaysParse,i),r!==-1)?r:(r=se.call(this._minWeekdaysParse,i),r!==-1?r:null)):t==="ddd"?(r=se.call(this._shortWeekdaysParse,i),r!==-1||(r=se.call(this._weekdaysParse,i),r!==-1)?r:(r=se.call(this._minWeekdaysParse,i),r!==-1?r:null)):(r=se.call(this._minWeekdaysParse,i),r!==-1||(r=se.call(this._weekdaysParse,i),r!==-1)?r:(r=se.call(this._shortWeekdaysParse,i),r!==-1?r:null))}function Ap(e,t,n){var s,r,a;if(this._weekdaysParseExact)return Ip.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++)if(r=Xe([2e3,1]).day(s),n&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(a="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[s]=new RegExp(a.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[s].test(e)||n&&t==="ddd"&&this._shortWeekdaysParse[s].test(e)||n&&t==="dd"&&this._minWeekdaysParse[s].test(e)||!n&&this._weekdaysParse[s].test(e))return s}function Vp(e){if(!this.isValid())return e!=null?this:NaN;var t=ls(this,"Day");return e!=null?(e=Rp(e,this.localeData()),this.add(e-t,"d")):t}function Gp(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function qp(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Pp(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Bp(e){return this._weekdaysParseExact?(H(this,"_weekdaysRegex")||si.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(H(this,"_weekdaysRegex")||(this._weekdaysRegex=Up),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function zp(e){return this._weekdaysParseExact?(H(this,"_weekdaysRegex")||si.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(H(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=jp),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Zp(e){return this._weekdaysParseExact?(H(this,"_weekdaysRegex")||si.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(H(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Wp),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function si(){function e(d,h){return h.length-d.length}var t=[],n=[],s=[],r=[],a,i,o,u,l;for(a=0;a<7;a++)i=Xe([2e3,1]).day(a),o=kt(this.weekdaysMin(i,"")),u=kt(this.weekdaysShort(i,"")),l=kt(this.weekdays(i,"")),t.push(o),n.push(u),s.push(l),r.push(o),r.push(u),r.push(l);t.sort(e),n.sort(e),s.sort(e),r.sort(e),this._weekdaysRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function ri(){return this.hours()%12||12}function Qp(){return this.hours()||24}S("H",["HH",2],0,"hour"),S("h",["hh",2],0,ri),S("k",["kk",2],0,Qp),S("hmm",0,0,function(){return""+ri.apply(this)+tt(this.minutes(),2)}),S("hmmss",0,0,function(){return""+ri.apply(this)+tt(this.minutes(),2)+tt(this.seconds(),2)}),S("Hmm",0,0,function(){return""+this.hours()+tt(this.minutes(),2)}),S("Hmmss",0,0,function(){return""+this.hours()+tt(this.minutes(),2)+tt(this.seconds(),2)});function qu(e,t){S(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}qu("a",!0),qu("A",!1);function Bu(e,t){return t._meridiemParse}w("a",Bu),w("A",Bu),w("H",Z,Xa),w("h",Z,Dn),w("k",Z,Dn),w("HH",Z,$e),w("hh",Z,$e),w("kk",Z,$e),w("hmm",Lu),w("hmmss",Uu),w("Hmm",Lu),w("Hmmss",Uu),G(["H","HH"],ie),G(["k","kk"],function(e,t,n){var s=R(e);t[ie]=s===24?0:s}),G(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),G(["h","hh"],function(e,t,n){t[ie]=R(e),x(n).bigHour=!0}),G("hmm",function(e,t,n){var s=e.length-2;t[ie]=R(e.substr(0,s)),t[Ie]=R(e.substr(s)),x(n).bigHour=!0}),G("hmmss",function(e,t,n){var s=e.length-4,r=e.length-2;t[ie]=R(e.substr(0,s)),t[Ie]=R(e.substr(s,2)),t[St]=R(e.substr(r)),x(n).bigHour=!0}),G("Hmm",function(e,t,n){var s=e.length-2;t[ie]=R(e.substr(0,s)),t[Ie]=R(e.substr(s))}),G("Hmmss",function(e,t,n){var s=e.length-4,r=e.length-2;t[ie]=R(e.substr(0,s)),t[Ie]=R(e.substr(s,2)),t[St]=R(e.substr(r))});function Jp(e){return(e+"").toLowerCase().charAt(0)==="p"}var Kp=/[ap]\.?m?\.?/i,Xp=Yn("Hours",!0);function ey(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var zu={calendar:Ig,longDateFormat:qg,invalidDate:zg,ordinal:Qg,dayOfMonthOrdinalParse:Jg,relativeTime:Xg,months:gp,monthsShort:Fu,week:Yp,weekdays:Cp,weekdaysMin:Lp,weekdaysShort:Gu,meridiemParse:Kp},ee={},hs={},fs;function ty(e,t){var n,s=Math.min(e.length,t.length);for(n=0;n<s;n+=1)if(e[n]!==t[n])return n;return s}function Zu(e){return e&&e.toLowerCase().replace("_","-")}function ny(e){for(var t=0,n,s,r,a;t<e.length;){for(a=Zu(e[t]).split("-"),n=a.length,s=Zu(e[t+1]),s=s?s.split("-"):null;n>0;){if(r=Sr(a.slice(0,n).join("-")),r)return r;if(s&&s.length>=n&&ty(a,s)>=n-1)break;n--}t++}return fs}function sy(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Sr(e){var t=null,n;if(ee[e]===void 0&&typeof module<"u"&&module&&module.exports&&sy(e))try{t=fs._abbr,n=require,n("./locale/"+e),Vt(t)}catch{ee[e]=null}return ee[e]}function Vt(e,t){var n;return e&&(_e(t)?n=Mt(e):n=ai(e,t),n?fs=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),fs._abbr}function ai(e,t){if(t!==null){var n,s=zu;if(t.abbr=e,ee[e]!=null)Tu("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."),s=ee[e]._config;else if(t.parentLocale!=null)if(ee[t.parentLocale]!=null)s=ee[t.parentLocale]._config;else if(n=Sr(t.parentLocale),n!=null)s=n._config;else return hs[t.parentLocale]||(hs[t.parentLocale]=[]),hs[t.parentLocale].push({name:e,config:t}),null;return ee[e]=new qa(Ga(s,t)),hs[e]&&hs[e].forEach(function(r){ai(r.name,r.config)}),Vt(e),ee[e]}else return delete ee[e],null}function ry(e,t){if(t!=null){var n,s,r=zu;ee[e]!=null&&ee[e].parentLocale!=null?ee[e].set(Ga(ee[e]._config,t)):(s=Sr(e),s!=null&&(r=s._config),t=Ga(r,t),s==null&&(t.abbr=e),n=new qa(t),n.parentLocale=ee[e],ee[e]=n),Vt(e)}else ee[e]!=null&&(ee[e].parentLocale!=null?(ee[e]=ee[e].parentLocale,e===Vt()&&Vt(e)):ee[e]!=null&&delete ee[e]);return ee[e]}function Mt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return fs;if(!He(e)){if(t=Sr(e),t)return t;e=[e]}return ny(e)}function ay(){return Ba(ee)}function ii(e){var t,n=e._a;return n&&x(e).overflow===-2&&(t=n[$t]<0||n[$t]>11?$t:n[nt]<1||n[nt]>ti(n[ce],n[$t])?nt:n[ie]<0||n[ie]>24||n[ie]===24&&(n[Ie]!==0||n[St]!==0||n[nn]!==0)?ie:n[Ie]<0||n[Ie]>59?Ie:n[St]<0||n[St]>59?St:n[nn]<0||n[nn]>999?nn:-1,x(e)._overflowDayOfYear&&(t<ce||t>nt)&&(t=nt),x(e)._overflowWeeks&&t===-1&&(t=lp),x(e)._overflowWeekday&&t===-1&&(t=dp),x(e).overflow=t),e}var iy=/^\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)?)?$/,oy=/^\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)?)?$/,uy=/Z|[+-]\d\d(?::?\d\d)?/,br=[["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]],oi=[["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/]],ly=/^\/?Date\((-?\d+)/i,dy=/^(?:(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}))$/,cy={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 Qu(e){var t,n,s=e._i,r=iy.exec(s)||oy.exec(s),a,i,o,u,l=br.length,d=oi.length;if(r){for(x(e).iso=!0,t=0,n=l;t<n;t++)if(br[t][1].exec(r[1])){i=br[t][0],a=br[t][2]!==!1;break}if(i==null){e._isValid=!1;return}if(r[3]){for(t=0,n=d;t<n;t++)if(oi[t][1].exec(r[3])){o=(r[2]||" ")+oi[t][0];break}if(o==null){e._isValid=!1;return}}if(!a&&o!=null){e._isValid=!1;return}if(r[4])if(uy.exec(r[4]))u="Z";else{e._isValid=!1;return}e._f=i+(o||"")+(u||""),li(e)}else e._isValid=!1}function hy(e,t,n,s,r,a){var i=[fy(e),Fu.indexOf(t),parseInt(n,10),parseInt(s,10),parseInt(r,10)];return a&&i.push(parseInt(a,10)),i}function fy(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function my(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function gy(e,t,n){if(e){var s=Gu.indexOf(e),r=new Date(t[0],t[1],t[2]).getDay();if(s!==r)return x(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function py(e,t,n){if(e)return cy[e];if(t)return 0;var s=parseInt(n,10),r=s%100,a=(s-r)/100;return a*60+r}function Ju(e){var t=dy.exec(my(e._i)),n;if(t){if(n=hy(t[4],t[3],t[2],t[5],t[6],t[7]),!gy(t[1],n,e))return;e._a=n,e._tzm=py(t[8],t[9],t[10]),e._d=ds.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),x(e).rfc2822=!0}else e._isValid=!1}function yy(e){var t=ly.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Qu(e),e._isValid===!1)delete e._isValid;else return;if(Ju(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:y.createFromInputFallback(e)}y.createFromInputFallback=Te("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(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function On(e,t,n){return e??t??n}function _y(e){var t=new Date(y.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function ui(e){var t,n,s=[],r,a,i;if(!e._d){for(r=_y(e),e._w&&e._a[nt]==null&&e._a[$t]==null&&vy(e),e._dayOfYear!=null&&(i=On(e._a[ce],r[ce]),(e._dayOfYear>us(i)||e._dayOfYear===0)&&(x(e)._overflowDayOfYear=!0),n=ds(i,0,e._dayOfYear),e._a[$t]=n.getUTCMonth(),e._a[nt]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[ie]===24&&e._a[Ie]===0&&e._a[St]===0&&e._a[nn]===0&&(e._nextDay=!0,e._a[ie]=0),e._d=(e._useUTC?ds:Mp).apply(null,s),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ie]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(x(e).weekdayMismatch=!0)}}function vy(e){var t,n,s,r,a,i,o,u,l;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,i=4,n=On(t.GG,e._a[ce],cs(Q(),1,4).year),s=On(t.W,1),r=On(t.E,1),(r<1||r>7)&&(u=!0)):(a=e._locale._week.dow,i=e._locale._week.doy,l=cs(Q(),a,i),n=On(t.gg,e._a[ce],l.year),s=On(t.w,l.week),t.d!=null?(r=t.d,(r<0||r>6)&&(u=!0)):t.e!=null?(r=t.e+a,(t.e<0||t.e>6)&&(u=!0)):r=a),s<1||s>bt(n,a,i)?x(e)._overflowWeeks=!0:u!=null?x(e)._overflowWeekday=!0:(o=Vu(n,s,r,a,i),e._a[ce]=o.year,e._dayOfYear=o.dayOfYear)}y.ISO_8601=function(){},y.RFC_2822=function(){};function li(e){if(e._f===y.ISO_8601){Qu(e);return}if(e._f===y.RFC_2822){Ju(e);return}e._a=[],x(e).empty=!0;var t=""+e._i,n,s,r,a,i,o=t.length,u=0,l,d;for(r=Nu(e._f,e._locale).match(za)||[],d=r.length,n=0;n<d;n++)a=r[n],s=(t.match(ip(a,e))||[])[0],s&&(i=t.substr(0,t.indexOf(s)),i.length>0&&x(e).unusedInput.push(i),t=t.slice(t.indexOf(s)+s.length),u+=s.length),bn[a]?(s?x(e).empty=!1:x(e).unusedTokens.push(a),up(a,s,e)):e._strict&&!s&&x(e).unusedTokens.push(a);x(e).charsLeftOver=o-u,t.length>0&&x(e).unusedInput.push(t),e._a[ie]<=12&&x(e).bigHour===!0&&e._a[ie]>0&&(x(e).bigHour=void 0),x(e).parsedDateParts=e._a.slice(0),x(e).meridiem=e._meridiem,e._a[ie]=wy(e._locale,e._a[ie],e._meridiem),l=x(e).era,l!==null&&(e._a[ce]=e._locale.erasConvertYear(l,e._a[ce])),ui(e),ii(e)}function wy(e,t,n){var s;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(s=e.isPM(n),s&&t<12&&(t+=12),!s&&t===12&&(t=0)),t)}function ky(e){var t,n,s,r,a,i,o=!1,u=e._f.length;if(u===0){x(e).invalidFormat=!0,e._d=new Date(NaN);return}for(r=0;r<u;r++)a=0,i=!1,t=Va({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[r],li(t),Ia(t)&&(i=!0),a+=x(t).charsLeftOver,a+=x(t).unusedTokens.length*10,x(t).score=a,o?a<s&&(s=a,n=t):(s==null||a<s||i)&&(s=a,n=t,i&&(o=!0));At(e,n||t)}function $y(e){if(!e._d){var t=Qa(e._i),n=t.day===void 0?t.date:t.day;e._a=Du([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(s){return s&&parseInt(s,10)}),ui(e)}}function Sy(e){var t=new as(ii(Ku(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Ku(e){var t=e._i,n=e._f;return e._locale=e._locale||Mt(e._l),t===null||n===void 0&&t===""?hr({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),Ee(t)?new as(ii(t)):(rs(t)?e._d=t:He(n)?ky(e):n?li(e):by(e),Ia(e)||(e._d=null),e))}function by(e){var t=e._i;_e(t)?e._d=new Date(y.now()):rs(t)?e._d=new Date(t.valueOf()):typeof t=="string"?yy(e):He(t)?(e._a=Du(t.slice(0),function(n){return parseInt(n,10)}),ui(e)):tn(t)?$y(e):wt(t)?e._d=new Date(t):y.createFromInputFallback(e)}function Xu(e,t,n,s,r){var a={};return(t===!0||t===!1)&&(s=t,t=void 0),(n===!0||n===!1)&&(s=n,n=void 0),(tn(e)&&Ha(e)||He(e)&&e.length===0)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=r,a._l=n,a._i=e,a._f=t,a._strict=s,Sy(a)}function Q(e,t,n,s){return Xu(e,t,n,s,!1)}var My=Te("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Q.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:hr()}),Dy=Te("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Q.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:hr()});function el(e,t){var n,s;if(t.length===1&&He(t[0])&&(t=t[0]),!t.length)return Q();for(n=t[0],s=1;s<t.length;++s)(!t[s].isValid()||t[s][e](n))&&(n=t[s]);return n}function Yy(){var e=[].slice.call(arguments,0);return el("isBefore",e)}function Oy(){var e=[].slice.call(arguments,0);return el("isAfter",e)}var xy=function(){return Date.now?Date.now():+new Date},ms=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ty(e){var t,n=!1,s,r=ms.length;for(t in e)if(H(e,t)&&!(se.call(ms,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(s=0;s<r;++s)if(e[ms[s]]){if(n)return!1;parseFloat(e[ms[s]])!==R(e[ms[s]])&&(n=!0)}return!0}function Ny(){return this._isValid}function Ry(){return Ae(NaN)}function Mr(e){var t=Qa(e),n=t.year||0,s=t.quarter||0,r=t.month||0,a=t.week||t.isoWeek||0,i=t.day||0,o=t.hour||0,u=t.minute||0,l=t.second||0,d=t.millisecond||0;this._isValid=Ty(t),this._milliseconds=+d+l*1e3+u*6e4+o*1e3*60*60,this._days=+i+a*7,this._months=+r+s*3+n*12,this._data={},this._locale=Mt(),this._bubble()}function Dr(e){return e instanceof Mr}function di(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Py(e,t,n){var s=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),a=0,i;for(i=0;i<s;i++)R(e[i])!==R(t[i])&&a++;return a+r}function tl(e,t){S(e,0,0,function(){var n=this.utcOffset(),s="+";return n<0&&(n=-n,s="-"),s+tt(~~(n/60),2)+t+tt(~~n%60,2)})}tl("Z",":"),tl("ZZ",""),w("Z",vr),w("ZZ",vr),G(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=ci(vr,e)});var Cy=/([\+\-]|\d\d)/gi;function ci(e,t){var n=(t||"").match(e),s,r,a;return n===null?null:(s=n[n.length-1]||[],r=(s+"").match(Cy)||["-",0,0],a=+(r[1]*60)+R(r[2]),a===0?0:r[0]==="+"?a:-a)}function hi(e,t){var n,s;return t._isUTC?(n=t.clone(),s=(Ee(e)||rs(e)?e.valueOf():Q(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+s),y.updateOffset(n,!1),n):Q(e).local()}function fi(e){return-Math.round(e._d.getTimezoneOffset())}y.updateOffset=function(){};function Ly(e,t,n){var s=this._offset||0,r;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=ci(vr,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(r=fi(this)),this._offset=e,this._isUTC=!0,r!=null&&this.add(r,"m"),s!==e&&(!t||this._changeInProgress?al(this,Ae(e-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,y.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?s:fi(this)}function Uy(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function jy(e){return this.utcOffset(0,e)}function Wy(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(fi(this),"m")),this}function Fy(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=ci(rp,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Hy(e){return this.isValid()?(e=e?Q(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Ey(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Iy(){if(!_e(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Va(e,this),e=Ku(e),e._a?(t=e._isUTC?Xe(e._a):Q(e._a),this._isDSTShifted=this.isValid()&&Py(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Ay(){return this.isValid()?!this._isUTC:!1}function Vy(){return this.isValid()?this._isUTC:!1}function nl(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Gy=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,qy=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ae(e,t){var n=e,s=null,r,a,i;return Dr(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:wt(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(s=Gy.exec(e))?(r=s[1]==="-"?-1:1,n={y:0,d:R(s[nt])*r,h:R(s[ie])*r,m:R(s[Ie])*r,s:R(s[St])*r,ms:R(di(s[nn]*1e3))*r}):(s=qy.exec(e))?(r=s[1]==="-"?-1:1,n={y:sn(s[2],r),M:sn(s[3],r),w:sn(s[4],r),d:sn(s[5],r),h:sn(s[6],r),m:sn(s[7],r),s:sn(s[8],r)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(i=By(Q(n.from),Q(n.to)),n={},n.ms=i.milliseconds,n.M=i.months),a=new Mr(n),Dr(e)&&H(e,"_locale")&&(a._locale=e._locale),Dr(e)&&H(e,"_isValid")&&(a._isValid=e._isValid),a}Ae.fn=Mr.prototype,Ae.invalid=Ry;function sn(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function sl(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function By(e,t){var n;return e.isValid()&&t.isValid()?(t=hi(t,e),e.isBefore(t)?n=sl(e,t):(n=sl(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function rl(e,t){return function(n,s){var r,a;return s!==null&&!isNaN(+s)&&(Tu(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=s,s=a),r=Ae(n,s),al(this,r,e),this}}function al(e,t,n,s){var r=t._milliseconds,a=di(t._days),i=di(t._months);e.isValid()&&(s=s??!0,i&&Eu(e,ls(e,"Month")+i*n),a&&Wu(e,"Date",ls(e,"Date")+a*n),r&&e._d.setTime(e._d.valueOf()+r*n),s&&y.updateOffset(e,a||i))}var zy=rl(1,"add"),Zy=rl(-1,"subtract");function il(e){return typeof e=="string"||e instanceof String}function Qy(e){return Ee(e)||rs(e)||il(e)||wt(e)||Ky(e)||Jy(e)||e===null||e===void 0}function Jy(e){var t=tn(e)&&!Ha(e),n=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],r,a,i=s.length;for(r=0;r<i;r+=1)a=s[r],n=n||H(e,a);return t&&n}function Ky(e){var t=He(e),n=!1;return t&&(n=e.filter(function(s){return!wt(s)&&il(e)}).length===0),t&&n}function Xy(e){var t=tn(e)&&!Ha(e),n=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],r,a;for(r=0;r<s.length;r+=1)a=s[r],n=n||H(e,a);return t&&n}function e1(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function t1(e,t){arguments.length===1&&(arguments[0]?Qy(arguments[0])?(e=arguments[0],t=void 0):Xy(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Q(),s=hi(n,this).startOf("day"),r=y.calendarFormat(this,s)||"sameElse",a=t&&(et(t[r])?t[r].call(this,n):t[r]);return this.format(a||this.localeData().calendar(r,this,Q(n)))}function n1(){return new as(this)}function s1(e,t){var n=Ee(e)?e:Q(e);return this.isValid()&&n.isValid()?(t=Ne(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function r1(e,t){var n=Ee(e)?e:Q(e);return this.isValid()&&n.isValid()?(t=Ne(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function a1(e,t,n,s){var r=Ee(e)?e:Q(e),a=Ee(t)?t:Q(t);return this.isValid()&&r.isValid()&&a.isValid()?(s=s||"()",(s[0]==="("?this.isAfter(r,n):!this.isBefore(r,n))&&(s[1]===")"?this.isBefore(a,n):!this.isAfter(a,n))):!1}function i1(e,t){var n=Ee(e)?e:Q(e),s;return this.isValid()&&n.isValid()?(t=Ne(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(s=n.valueOf(),this.clone().startOf(t).valueOf()<=s&&s<=this.clone().endOf(t).valueOf())):!1}function o1(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function u1(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function l1(e,t,n){var s,r,a;if(!this.isValid())return NaN;if(s=hi(e,this),!s.isValid())return NaN;switch(r=(s.utcOffset()-this.utcOffset())*6e4,t=Ne(t),t){case"year":a=Yr(this,s)/12;break;case"month":a=Yr(this,s);break;case"quarter":a=Yr(this,s)/3;break;case"second":a=(this-s)/1e3;break;case"minute":a=(this-s)/6e4;break;case"hour":a=(this-s)/36e5;break;case"day":a=(this-s-r)/864e5;break;case"week":a=(this-s-r)/6048e5;break;default:a=this-s}return n?a:Re(a)}function Yr(e,t){if(e.date()<t.date())return-Yr(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),s=e.clone().add(n,"months"),r,a;return t-s<0?(r=e.clone().add(n-1,"months"),a=(t-s)/(s-r)):(r=e.clone().add(n+1,"months"),a=(t-s)/(r-s)),-(n+a)||0}y.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",y.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function d1(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function c1(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?mr(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):et(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",mr(n,"Z")):mr(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function h1(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,s,r,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',s=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]',this.format(n+s+r+a)}function f1(e){e||(e=this.isUtc()?y.defaultFormatUtc:y.defaultFormat);var t=mr(this,e);return this.localeData().postformat(t)}function m1(e,t){return this.isValid()&&(Ee(e)&&e.isValid()||Q(e).isValid())?Ae({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function g1(e){return this.from(Q(),e)}function p1(e,t){return this.isValid()&&(Ee(e)&&e.isValid()||Q(e).isValid())?Ae({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function y1(e){return this.to(Q(),e)}function ol(e){var t;return e===void 0?this._locale._abbr:(t=Mt(e),t!=null&&(this._locale=t),this)}var ul=Te("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function ll(){return this._locale}var Or=1e3,xn=60*Or,xr=60*xn,dl=(365*400+97)*24*xr;function Tn(e,t){return(e%t+t)%t}function cl(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-dl:new Date(e,t,n).valueOf()}function hl(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-dl:Date.UTC(e,t,n)}function _1(e){var t,n;if(e=Ne(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?hl:cl,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Tn(t+(this._isUTC?0:this.utcOffset()*xn),xr);break;case"minute":t=this._d.valueOf(),t-=Tn(t,xn);break;case"second":t=this._d.valueOf(),t-=Tn(t,Or);break}return this._d.setTime(t),y.updateOffset(this,!0),this}function v1(e){var t,n;if(e=Ne(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?hl:cl,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=xr-Tn(t+(this._isUTC?0:this.utcOffset()*xn),xr)-1;break;case"minute":t=this._d.valueOf(),t+=xn-Tn(t,xn)-1;break;case"second":t=this._d.valueOf(),t+=Or-Tn(t,Or)-1;break}return this._d.setTime(t),y.updateOffset(this,!0),this}function w1(){return this._d.valueOf()-(this._offset||0)*6e4}function k1(){return Math.floor(this.valueOf()/1e3)}function $1(){return new Date(this.valueOf())}function S1(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function b1(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function M1(){return this.isValid()?this.toISOString():null}function D1(){return Ia(this)}function Y1(){return At({},x(this))}function O1(){return x(this).overflow}function x1(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}S("N",0,0,"eraAbbr"),S("NN",0,0,"eraAbbr"),S("NNN",0,0,"eraAbbr"),S("NNNN",0,0,"eraName"),S("NNNNN",0,0,"eraNarrow"),S("y",["y",1],"yo","eraYear"),S("y",["yy",2],0,"eraYear"),S("y",["yyy",3],0,"eraYear"),S("y",["yyyy",4],0,"eraYear"),w("N",mi),w("NN",mi),w("NNN",mi),w("NNNN",H1),w("NNNNN",E1),G(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,s){var r=n._locale.erasParse(e,s,n._strict);r?x(n).era=r:x(n).invalidEra=e}),w("y",Mn),w("yy",Mn),w("yyy",Mn),w("yyyy",Mn),w("yo",I1),G(["y","yy","yyy","yyyy"],ce),G(["yo"],function(e,t,n,s){var r;n._locale._eraYearOrdinalRegex&&(r=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[ce]=n._locale.eraYearOrdinalParse(e,r):t[ce]=parseInt(e,10)});function T1(e,t){var n,s,r,a=this._eras||Mt("en")._eras;for(n=0,s=a.length;n<s;++n){switch(typeof a[n].since){case"string":r=y(a[n].since).startOf("day"),a[n].since=r.valueOf();break}switch(typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":r=y(a[n].until).startOf("day").valueOf(),a[n].until=r.valueOf();break}}return a}function N1(e,t,n){var s,r,a=this.eras(),i,o,u;for(e=e.toUpperCase(),s=0,r=a.length;s<r;++s)if(i=a[s].name.toUpperCase(),o=a[s].abbr.toUpperCase(),u=a[s].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(o===e)return a[s];break;case"NNNN":if(i===e)return a[s];break;case"NNNNN":if(u===e)return a[s];break}else if([i,o,u].indexOf(e)>=0)return a[s]}function R1(e,t){var n=e.since<=e.until?1:-1;return t===void 0?y(e.since).year():y(e.since).year()+(t-e.offset)*n}function P1(){var e,t,n,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),s[e].since<=n&&n<=s[e].until||s[e].until<=n&&n<=s[e].since)return s[e].name;return""}function C1(){var e,t,n,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),s[e].since<=n&&n<=s[e].until||s[e].until<=n&&n<=s[e].since)return s[e].narrow;return""}function L1(){var e,t,n,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),s[e].since<=n&&n<=s[e].until||s[e].until<=n&&n<=s[e].since)return s[e].abbr;return""}function U1(){var e,t,n,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=r[e].since<=r[e].until?1:-1,s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return(this.year()-y(r[e].since).year())*n+r[e].offset;return this.year()}function j1(e){return H(this,"_erasNameRegex")||gi.call(this),e?this._erasNameRegex:this._erasRegex}function W1(e){return H(this,"_erasAbbrRegex")||gi.call(this),e?this._erasAbbrRegex:this._erasRegex}function F1(e){return H(this,"_erasNarrowRegex")||gi.call(this),e?this._erasNarrowRegex:this._erasRegex}function mi(e,t){return t.erasAbbrRegex(e)}function H1(e,t){return t.erasNameRegex(e)}function E1(e,t){return t.erasNarrowRegex(e)}function I1(e,t){return t._eraYearOrdinalRegex||Mn}function gi(){var e=[],t=[],n=[],s=[],r,a,i,o,u,l=this.eras();for(r=0,a=l.length;r<a;++r)i=kt(l[r].name),o=kt(l[r].abbr),u=kt(l[r].narrow),t.push(i),e.push(o),n.push(u),s.push(i),s.push(o),s.push(u);this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}S(0,["gg",2],0,function(){return this.weekYear()%100}),S(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Tr(e,t){S(0,[e,e.length],0,t)}Tr("gggg","weekYear"),Tr("ggggg","weekYear"),Tr("GGGG","isoWeekYear"),Tr("GGGGG","isoWeekYear"),w("G",_r),w("g",_r),w("GG",Z,$e),w("gg",Z,$e),w("GGGG",Ka,Ja),w("gggg",Ka,Ja),w("GGGGG",yr,gr),w("ggggg",yr,gr),os(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,s){t[s.substr(0,2)]=R(e)}),os(["gg","GG"],function(e,t,n,s){t[s]=y.parseTwoDigitYear(e)});function A1(e){return fl.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function V1(e){return fl.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function G1(){return bt(this.year(),1,4)}function q1(){return bt(this.isoWeekYear(),1,4)}function B1(){var e=this.localeData()._week;return bt(this.year(),e.dow,e.doy)}function z1(){var e=this.localeData()._week;return bt(this.weekYear(),e.dow,e.doy)}function fl(e,t,n,s,r){var a;return e==null?cs(this,s,r).year:(a=bt(e,s,r),t>a&&(t=a),Z1.call(this,e,t,n,s,r))}function Z1(e,t,n,s,r){var a=Vu(e,t,n,s,r),i=ds(a.year,0,a.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}S("Q",0,"Qo","quarter"),w("Q",Pu),G("Q",function(e,t){t[$t]=(R(e)-1)*3});function Q1(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}S("D",["DD",2],"Do","date"),w("D",Z,Dn),w("DD",Z,$e),w("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),G(["D","DD"],nt),G("Do",function(e,t){t[nt]=R(e.match(Z)[0])});var ml=Yn("Date",!0);S("DDD",["DDDD",3],"DDDo","dayOfYear"),w("DDD",pr),w("DDDD",Cu),G(["DDD","DDDD"],function(e,t,n){n._dayOfYear=R(e)});function J1(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}S("m",["mm",2],0,"minute"),w("m",Z,Xa),w("mm",Z,$e),G(["m","mm"],Ie);var K1=Yn("Minutes",!1);S("s",["ss",2],0,"second"),w("s",Z,Xa),w("ss",Z,$e),G(["s","ss"],St);var X1=Yn("Seconds",!1);S("S",0,0,function(){return~~(this.millisecond()/100)}),S(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),S(0,["SSS",3],0,"millisecond"),S(0,["SSSS",4],0,function(){return this.millisecond()*10}),S(0,["SSSSS",5],0,function(){return this.millisecond()*100}),S(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),S(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),S(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),S(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),w("S",pr,Pu),w("SS",pr,$e),w("SSS",pr,Cu);var Gt,gl;for(Gt="SSSS";Gt.length<=9;Gt+="S")w(Gt,Mn);function e0(e,t){t[nn]=R(("0."+e)*1e3)}for(Gt="S";Gt.length<=9;Gt+="S")G(Gt,e0);gl=Yn("Milliseconds",!1),S("z",0,0,"zoneAbbr"),S("zz",0,0,"zoneName");function t0(){return this._isUTC?"UTC":""}function n0(){return this._isUTC?"Coordinated Universal Time":""}var m=as.prototype;m.add=zy,m.calendar=t1,m.clone=n1,m.diff=l1,m.endOf=v1,m.format=f1,m.from=m1,m.fromNow=g1,m.to=p1,m.toNow=y1,m.get=hp,m.invalidAt=O1,m.isAfter=s1,m.isBefore=r1,m.isBetween=a1,m.isSame=i1,m.isSameOrAfter=o1,m.isSameOrBefore=u1,m.isValid=D1,m.lang=ul,m.locale=ol,m.localeData=ll,m.max=Dy,m.min=My,m.parsingFlags=Y1,m.set=fp,m.startOf=_1,m.subtract=Zy,m.toArray=S1,m.toObject=b1,m.toDate=$1,m.toISOString=c1,m.inspect=h1,typeof Symbol<"u"&&Symbol.for!=null&&(m[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),m.toJSON=M1,m.toString=d1,m.unix=k1,m.valueOf=w1,m.creationData=x1,m.eraName=P1,m.eraNarrow=C1,m.eraAbbr=L1,m.eraYear=U1,m.year=ju,m.isLeapYear=cp,m.weekYear=A1,m.isoWeekYear=V1,m.quarter=m.quarters=Q1,m.month=Iu,m.daysInMonth=$p,m.week=m.weeks=Tp,m.isoWeek=m.isoWeeks=Np,m.weeksInYear=B1,m.weeksInWeekYear=z1,m.isoWeeksInYear=G1,m.isoWeeksInISOWeekYear=q1,m.date=ml,m.day=m.days=Vp,m.weekday=Gp,m.isoWeekday=qp,m.dayOfYear=J1,m.hour=m.hours=Xp,m.minute=m.minutes=K1,m.second=m.seconds=X1,m.millisecond=m.milliseconds=gl,m.utcOffset=Ly,m.utc=jy,m.local=Wy,m.parseZone=Fy,m.hasAlignedHourOffset=Hy,m.isDST=Ey,m.isLocal=Ay,m.isUtcOffset=Vy,m.isUtc=nl,m.isUTC=nl,m.zoneAbbr=t0,m.zoneName=n0,m.dates=Te("dates accessor is deprecated. Use date instead.",ml),m.months=Te("months accessor is deprecated. Use month instead",Iu),m.years=Te("years accessor is deprecated. Use year instead",ju),m.zone=Te("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Uy),m.isDSTShifted=Te("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Iy);function s0(e){return Q(e*1e3)}function r0(){return Q.apply(null,arguments).parseZone()}function pl(e){return e}var E=qa.prototype;E.calendar=Ag,E.longDateFormat=Bg,E.invalidDate=Zg,E.ordinal=Kg,E.preparse=pl,E.postformat=pl,E.relativeTime=ep,E.pastFuture=tp,E.set=Eg,E.eras=T1,E.erasParse=N1,E.erasConvertYear=R1,E.erasAbbrRegex=W1,E.erasNameRegex=j1,E.erasNarrowRegex=F1,E.months=_p,E.monthsShort=vp,E.monthsParse=kp,E.monthsRegex=bp,E.monthsShortRegex=Sp,E.week=Dp,E.firstDayOfYear=xp,E.firstDayOfWeek=Op,E.weekdays=Fp,E.weekdaysMin=Ep,E.weekdaysShort=Hp,E.weekdaysParse=Ap,E.weekdaysRegex=Bp,E.weekdaysShortRegex=zp,E.weekdaysMinRegex=Zp,E.isPM=Jp,E.meridiem=ey;function Nr(e,t,n,s){var r=Mt(),a=Xe().set(s,t);return r[n](a,e)}function yl(e,t,n){if(wt(e)&&(t=e,e=void 0),e=e||"",t!=null)return Nr(e,t,n,"month");var s,r=[];for(s=0;s<12;s++)r[s]=Nr(e,s,n,"month");return r}function pi(e,t,n,s){typeof e=="boolean"?(wt(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,wt(t)&&(n=t,t=void 0),t=t||"");var r=Mt(),a=e?r._week.dow:0,i,o=[];if(n!=null)return Nr(t,(n+a)%7,s,"day");for(i=0;i<7;i++)o[i]=Nr(t,(i+a)%7,s,"day");return o}function a0(e,t){return yl(e,t,"months")}function i0(e,t){return yl(e,t,"monthsShort")}function o0(e,t,n){return pi(e,t,n,"weekdays")}function u0(e,t,n){return pi(e,t,n,"weekdaysShort")}function l0(e,t,n){return pi(e,t,n,"weekdaysMin")}Vt("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(e){var t=e%10,n=R(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}}),y.lang=Te("moment.lang is deprecated. Use moment.locale instead.",Vt),y.langData=Te("moment.langData is deprecated. Use moment.localeData instead.",Mt);var Dt=Math.abs;function d0(){var e=this._data;return this._milliseconds=Dt(this._milliseconds),this._days=Dt(this._days),this._months=Dt(this._months),e.milliseconds=Dt(e.milliseconds),e.seconds=Dt(e.seconds),e.minutes=Dt(e.minutes),e.hours=Dt(e.hours),e.months=Dt(e.months),e.years=Dt(e.years),this}function _l(e,t,n,s){var r=Ae(t,n);return e._milliseconds+=s*r._milliseconds,e._days+=s*r._days,e._months+=s*r._months,e._bubble()}function c0(e,t){return _l(this,e,t,1)}function h0(e,t){return _l(this,e,t,-1)}function vl(e){return e<0?Math.floor(e):Math.ceil(e)}function f0(){var e=this._milliseconds,t=this._days,n=this._months,s=this._data,r,a,i,o,u;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=vl(yi(n)+t)*864e5,t=0,n=0),s.milliseconds=e%1e3,r=Re(e/1e3),s.seconds=r%60,a=Re(r/60),s.minutes=a%60,i=Re(a/60),s.hours=i%24,t+=Re(i/24),u=Re(wl(t)),n+=u,t-=vl(yi(u)),o=Re(n/12),n%=12,s.days=t,s.months=n,s.years=o,this}function wl(e){return e*4800/146097}function yi(e){return e*146097/4800}function m0(e){if(!this.isValid())return NaN;var t,n,s=this._milliseconds;if(e=Ne(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+s/864e5,n=this._months+wl(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(yi(this._months)),e){case"week":return t/7+s/6048e5;case"day":return t+s/864e5;case"hour":return t*24+s/36e5;case"minute":return t*1440+s/6e4;case"second":return t*86400+s/1e3;case"millisecond":return Math.floor(t*864e5)+s;default:throw new Error("Unknown unit "+e)}}function Yt(e){return function(){return this.as(e)}}var kl=Yt("ms"),g0=Yt("s"),p0=Yt("m"),y0=Yt("h"),_0=Yt("d"),v0=Yt("w"),w0=Yt("M"),k0=Yt("Q"),$0=Yt("y"),S0=kl;function b0(){return Ae(this)}function M0(e){return e=Ne(e),this.isValid()?this[e+"s"]():NaN}function rn(e){return function(){return this.isValid()?this._data[e]:NaN}}var D0=rn("milliseconds"),Y0=rn("seconds"),O0=rn("minutes"),x0=rn("hours"),T0=rn("days"),N0=rn("months"),R0=rn("years");function P0(){return Re(this.days()/7)}var Ot=Math.round,Nn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function C0(e,t,n,s,r){return r.relativeTime(t||1,!!n,e,s)}function L0(e,t,n,s){var r=Ae(e).abs(),a=Ot(r.as("s")),i=Ot(r.as("m")),o=Ot(r.as("h")),u=Ot(r.as("d")),l=Ot(r.as("M")),d=Ot(r.as("w")),h=Ot(r.as("y")),c=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||i<=1&&["m"]||i<n.m&&["mm",i]||o<=1&&["h"]||o<n.h&&["hh",o]||u<=1&&["d"]||u<n.d&&["dd",u];return n.w!=null&&(c=c||d<=1&&["w"]||d<n.w&&["ww",d]),c=c||l<=1&&["M"]||l<n.M&&["MM",l]||h<=1&&["y"]||["yy",h],c[2]=t,c[3]=+e>0,c[4]=s,C0.apply(null,c)}function U0(e){return e===void 0?Ot:typeof e=="function"?(Ot=e,!0):!1}function j0(e,t){return Nn[e]===void 0?!1:t===void 0?Nn[e]:(Nn[e]=t,e==="s"&&(Nn.ss=t-1),!0)}function W0(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,s=Nn,r,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(s=Object.assign({},Nn,t),t.s!=null&&t.ss==null&&(s.ss=t.s-1)),r=this.localeData(),a=L0(this,!n,s,r),n&&(a=r.pastFuture(+this,a)),r.postformat(a)}var _i=Math.abs;function Rn(e){return(e>0)-(e<0)||+e}function Rr(){if(!this.isValid())return this.localeData().invalidDate();var e=_i(this._milliseconds)/1e3,t=_i(this._days),n=_i(this._months),s,r,a,i,o=this.asSeconds(),u,l,d,h;return o?(s=Re(e/60),r=Re(s/60),e%=60,s%=60,a=Re(n/12),n%=12,i=e?e.toFixed(3).replace(/\.?0+$/,""):"",u=o<0?"-":"",l=Rn(this._months)!==Rn(o)?"-":"",d=Rn(this._days)!==Rn(o)?"-":"",h=Rn(this._milliseconds)!==Rn(o)?"-":"",u+"P"+(a?l+a+"Y":"")+(n?l+n+"M":"")+(t?d+t+"D":"")+(r||s||e?"T":"")+(r?h+r+"H":"")+(s?h+s+"M":"")+(e?h+i+"S":"")):"P0D"}var L=Mr.prototype;L.isValid=Ny,L.abs=d0,L.add=c0,L.subtract=h0,L.as=m0,L.asMilliseconds=kl,L.asSeconds=g0,L.asMinutes=p0,L.asHours=y0,L.asDays=_0,L.asWeeks=v0,L.asMonths=w0,L.asQuarters=k0,L.asYears=$0,L.valueOf=S0,L._bubble=f0,L.clone=b0,L.get=M0,L.milliseconds=D0,L.seconds=Y0,L.minutes=O0,L.hours=x0,L.days=T0,L.weeks=P0,L.months=N0,L.years=R0,L.humanize=W0,L.toISOString=Rr,L.toString=Rr,L.toJSON=Rr,L.locale=ol,L.localeData=ll,L.toIsoString=Te("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Rr),L.lang=ul,S("X",0,0,"unix"),S("x",0,0,"valueOf"),w("x",_r),w("X",ap),G("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)}),G("x",function(e,t,n){n._d=new Date(R(e))});//! moment.js
19
- y.version="2.30.1",Fg(Q),y.fn=m,y.min=Yy,y.max=Oy,y.now=xy,y.utc=Xe,y.unix=s0,y.months=a0,y.isDate=rs,y.locale=Vt,y.invalid=hr,y.duration=Ae,y.isMoment=Ee,y.weekdays=o0,y.parseZone=r0,y.localeData=Mt,y.isDuration=Dr,y.monthsShort=i0,y.weekdaysMin=l0,y.defineLocale=ai,y.updateLocale=ry,y.locales=ay,y.weekdaysShort=u0,y.normalizeUnits=Ne,y.relativeTimeRounding=U0,y.relativeTimeThreshold=j0,y.calendarFormat=e1,y.prototype=m,y.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"};const F0=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,H0=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,$l=/(janv\.?|févr\.?|avr\.?|juil\.?|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,vi=[/^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],E0={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:F0,monthsShortStrictRegex:H0,monthsParse:vi,longMonthsParse:vi,shortMonthsParse:vi,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:(e,t)=>{switch(t){case"D":return e+(e===1?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(e===1?"er":"e");case"w":case"W":return e+(e===1?"re":"e")}},week:{dow:1,doy:4}};y.locale("fr",E0);const Sl=new Y.Schema({user:{type:Y.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},crew:{type:Y.Schema.Types.ObjectId,ref:"Crew",required:!0,index:!0},permission:String,percent:Number});Sl.index({user:1});const gs=Y.model("UserCrew",Sl),I0=async(e,t)=>{await gs.updateOne({user:e},t,{upsert:!0})},A0=Object.freeze(Object.defineProperty({__proto__:null,updatePercent:async(e,t)=>{await I0(e,{$set:{percent:t}})}},Symbol.toStringTag,{value:"Module"})),V0=e=>gs.findOne({user:e}),G0=e=>gs.exists({user:e}),bl=new Y.Schema({user:{type:Y.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},xpYesterday:{type:Number,default:0},berryYesterday:{type:Number,default:0},previousOrnament:{unlockedBadges:{type:[String],default:[]},unlockedTitles:{type:[String],default:[]},unlockedBackgrounds:{type:[String],default:[]}},previousCompletedQuest:{type:[String],default:[]},previousMessageSent:{type:Number,default:0}});bl.index({user:1});const wi=Y.model("UserDailyReport",bl),Ml=new Y.Schema({user:{type:Y.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},guess:{tries:Number,amount:Number,numberToGuess:Number}});Ml.index({user:1});const Pr=Y.model("UserGames",Ml),Dl=async(e,t)=>{await Pr.updateOne({user:e},t,{upsert:!0})},q0=Object.freeze(Object.defineProperty({__proto__:null,resetGuessGame:async e=>{await Dl(e,{$set:{guess:void 0}})},setGuessGame:async(e,t,n,s)=>{await Dl(e,{$set:{guess:{amount:t,tries:n,numberToGuess:s}}})}},Symbol.toStringTag,{value:"Module"})),Pn={d1:"<:d1:1159542168738873455>",d2:"<:d2:1159542071049334814>",d3:"<:d3:1159542073914032191>",d4:"<:d4:1159542075512082543>",d5:"<:d5:1159542078179651614>",d6:"<:d6:1159542079458910229>",revolutionary:"<:revolutionnaire:648245785133056020>",pirate:"<:pirate:648245785053626368>",marine:"<:marine:648245784407441429>",berry:"<:berry:1153734056035504158>",xp:"<:xp:1084914564379975772>",success:"<:success:1186707379534954506>",hp:"<:hp:1257776163955277824>",paper:"📄",rock:"🪨",scissor:"✂️",pray:"<:Ryokugyu_pray:1147542990844334280>",gun:"<:fujigun:1050120413243506688>",promise:"<:Luffy_Promise:1027626431565529099>",love:"<:Lawve:1050916817801072730>",note:"<:imsusnote:1136952496456224778>",watching:"<:Carrot_Watching:1024736915922104360>",card:"<:carteDos:1168580012258103387>",cards:{spades:{1:"<:asdepique:1168560615170768967>",2:"<:2depique:1168559430955184259>",3:"<:3depique:1168559437548638248>",4:"<:4depique:1168559679354445934>",5:"<:5depique:1168559725504372796>",6:"<:6depique:1168559764528185394>",7:"<:7depique:1168559459392553061>",8:"<:8depique:1168559887870083162>",9:"<:9depique:1168559471392464988>",10:"<:10depique:1168559958435053598>",J:"<:valetdepique:1168560676202086523>",Q:"<:reinedepique:1168560621722284083>",K:"<:roidepique:1168560628189888634>"},diamonds:{1:"<:asdecarreau:1168560612742279308>",2:"<:2decarreau:1168559427788472330>",3:"<:3decarreau:1168559434138669236>",4:"<:4decarreau:1168559440774041621>",5:"<:5decarreau:1168559445308084256>",6:"<:6decarreau:1168559763462819940>",7:"<:7decarreau:1168559845872517172>",8:"<:8decarreau:1168559888989949994>",9:"<:9decarreau:1168559942215667804>",10:"<:10decarreau:1168559475481907230>",J:"<:valetdecarreau:1168560633634095234>",Q:"<:reinedecarreau:1168560618182291577>",K:"<:roidecarreau:1168560626185011281>"},hearts:{1:"<:asdecoeur:1168560613971214368>",2:"<:2decoeur:1168559428681859073>",3:"<:3decoeur:1168559435950592060>",4:"<:4decoeur:1168559442074284073>",5:"<:5decoeur:1168559723226865725>",6:"<:6decoeur:1168559452509708298>",7:"<:7decoeur:1168559457769365684>",8:"<:8decoeur:1168559463368757339>",9:"<:9decoeur:1168559938897989672>",10:"<:10decoeur:1168559477658751006>",J:"<:valetdecoeur:1168560635991298160>",Q:"<:reinedecoeur:1168560619855822940>",K:"<:roidecoeur:1168560678378950716>"},clubs:{1:"<:asdetrfle:1168560617444081834>",2:"<:2detrfle:1168559432242831512>",3:"<:3detrfle:1168559439440269403>",4:"<:4detrfle:1168559677936762982>",5:"<:5detrfle:1168559449540145153>",6:"<:6detrfle:1168559761260818594>",7:"<:7detrfle:1168559844748435549>",8:"<:8detrfle:1168559466334142575>",9:"<:9detrfle:1168559940953194576>",10:"<:10detrfle:1168559959802380288>",J:"<:valetdetrfle:1168560610531885137>",Q:"<:reinedetrfle:1168560623228026972>",K:"<:roidetrfle:1168560675543580712>"}},factions:{b_citizen_COMMON:"<:BasiqueOPFRbois:1175507882188484761>",b_citizen_RARE:"<:BasiqueOPFRargent:1175507880724668488>",b_citizen_EPIC:"<:BasiqueOPFRor:1175507883501289512>",b_citizen_LEGENDARY:"<:BasiqueOPFRplatine:1175507886714134548>",b_citizen_MYTHIC:"<:BasiqueOPFRultime:1175507889553670264>",b_marine_COMMON:"<:Marinebois:1175507936953512036>",b_marine_RARE:"<:Marineargent:1175508322351321178>",b_marine_EPIC:"<:Marineor:1175508300603863132>",b_marine_LEGENDARY:"<:Marineplatine:1175507940803879012>",b_marine_MYTHIC:"<:Marineultime:1175508279590395977>",b_revolutionary_COMMON:"<:RvoBois:1175507954779295810>",b_revolutionary_RARE:"<:RvoArgent:1175508199118483457>",b_revolutionary_EPIC:"<:RvoOr:1175508111885344819>",b_revolutionary_LEGENDARY:"<:RvoPlatine:1175507958378008756>",b_revolutionary_MYTHIC:"<:RvoUltime:1175508127815319612>",b_pirate_COMMON:"<:Piratebois:1175508259768115272>",b_pirate_RARE:"<:Pirateargent:1175507943987363941>",b_pirate_EPIC:"<:Pirateor:1175508240243621928>",b_pirate_LEGENDARY:"<:Pirateplatine:1175507949578358804>",b_pirate_MYTHIC:"<:Pirateultime:1175507951709061150>"},characteristics:{vitality:"<:vitality:1251861015277338675>",strength:"<:strength:1251860738595618838>",agility:"<:agility:1251860734145728596>",intelligence:"<:intelligence:1251860736943194144>",chance:"<:chance:1251860735827513425>",wisdom:"<:wisdom:1251861017231884378>"},equipment_adventurer_strap:"<:adventurer_strap:1253041086147068035>",equipment_adventurer_collar:"<:adventurer_collar:1253041084611690567>",equipment_adventurer_boots:"<:adventurer_boots:1253041083252867123>",equipment_adventurer_helmet:"<:Casque_cuir:1256965718432550953>",equipment_adventurer_weapon:"<:Dague_cuir:1256965714141515837>",equipment_adventurer_belt:"<:Ceinture_cuir:1256965593333108838>"},B0=[{id:"equipment_adventurer_strap",image:"adventurer_strap",name:(e=0)=>De.t("equipments.adventurer.strap.name",{count:e}),description:()=>De.t("equipments.adventurer.strap.description"),emojis:Pn.equipment_adventurer_strap,characteristics:{chance:[1,10]},level:50,type:"strap",panoply:"adventurer"},{id:"equipment_adventurer_collar",image:"adventurer_collar",name:(e=0)=>De.t("equipments.adventurer.collar.name",{count:e}),description:()=>De.t("equipments.adventurer.collar.description"),emojis:Pn.equipment_adventurer_collar,characteristics:{wisdom:[1,10]},level:50,type:"collar",panoply:"adventurer"},{id:"equipment_adventurer_boots",image:"adventurer_boots",name:(e=0)=>De.t("equipments.adventurer.boots.name",{count:e}),description:()=>De.t("equipments.adventurer.boots.description"),emojis:Pn.equipment_adventurer_boots,characteristics:{agility:[1,10]},level:50,type:"boots",panoply:"adventurer"},{id:"equipment_adventurer_helmet",image:"adventurer_helmet",name:(e=0)=>De.t("equipments.adventurer.helmet.name",{count:e}),description:()=>De.t("equipments.adventurer.helmet.description"),emojis:Pn.equipment_adventurer_helmet,characteristics:{intelligence:[1,10]},level:50,type:"helmet",panoply:"adventurer"},{id:"equipment_adventurer_weapon",image:"adventurer_weapon",name:(e=0)=>De.t("equipments.adventurer.weapon.name",{count:e}),description:()=>De.t("equipments.adventurer.weapon.description"),emojis:Pn.equipment_adventurer_weapon,characteristics:{strength:[1,10]},level:50,type:"weapon",panoply:"adventurer"},{id:"equipment_adventurer_belt",image:"adventurer_belt",name:(e=0)=>De.t("equipments.adventurer.belt.name",{count:e}),description:()=>De.t("equipments.adventurer.belt.description"),emojis:Pn.equipment_adventurer_belt,characteristics:{vitality:[1,10]},level:50,type:"belt",panoply:"adventurer"}],z0={vitality:5,agility:5,strength:5,intelligence:5,chance:5,wisdom:5},Z0={vitality:10,agility:10,strength:10,intelligence:10,chance:10,wisdom:10},Q0={id:"adventurer",name:"Panoplie de l'aventurier",equipments:B0,fullBonus:Z0,fullBonusStr:"+10 +vitality+strength+chance+agility+intelligence+wisdom",halfBonus:z0,halfBonusStr:"+5 +vitality+strength+chance+agility+intelligence+wisdom"},J0=(e,t,n=Math.random)=>Math.floor(n()*(t-e)+e),K0=e=>{let t=e;const n=2147483648,s=1103515245,r=12345;return()=>(t=(s*t+r)%n,t/(n-1))},X0=(e,t)=>[...e].sort((n,s)=>t(n)<t(s)?-1:t(n)>t(s)?1:0);//! moment.js
18
+ `+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var Ru={};function Cu(e,t){y.deprecationHandler!=null&&y.deprecationHandler(e,t),Ru[e]||(Nu(t),Ru[e]=!0)}y.suppressDeprecationWarnings=!1,y.deprecationHandler=null;function et(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Ig(e){var t,n;for(n in e)H(e,n)&&(t=e[n],et(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function qa(e,t){var n=At({},e),s;for(s in t)H(t,s)&&(tn(e[s])&&tn(t[s])?(n[s]={},At(n[s],e[s]),At(n[s],t[s])):t[s]!=null?n[s]=t[s]:delete n[s]);for(s in e)H(e,s)&&!H(t,s)&&tn(e[s])&&(n[s]=At({},n[s]));return n}function Ba(e){e!=null&&this.set(e)}var za;Object.keys?za=Object.keys:za=function(e){var t,n=[];for(t in e)H(e,t)&&n.push(t);return n};var Ag={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Vg(e,t,n){var s=this._calendar[e]||this._calendar.sameElse;return et(s)?s.call(t,n):s}function tt(e,t,n){var s=""+Math.abs(e),r=t-s.length,a=e>=0;return(a?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+s}var Za=/(\[[^\[]*\])|(\\)?([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,fr=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Qa={},Dn={};function S(e,t,n,s){var r=s;typeof s=="string"&&(r=function(){return this[s]()}),e&&(Dn[e]=r),t&&(Dn[t[0]]=function(){return tt(r.apply(this,arguments),t[1],t[2])}),n&&(Dn[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function Gg(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function qg(e){var t=e.match(Za),n,s;for(n=0,s=t.length;n<s;n++)Dn[t[n]]?t[n]=Dn[t[n]]:t[n]=Gg(t[n]);return function(r){var a="",i;for(i=0;i<s;i++)a+=et(t[i])?t[i].call(r,e):t[i];return a}}function mr(e,t){return e.isValid()?(t=Pu(t,e.localeData()),Qa[t]=Qa[t]||qg(t),Qa[t](e)):e.localeData().invalidDate()}function Pu(e,t){var n=5;function s(r){return t.longDateFormat(r)||r}for(fr.lastIndex=0;n>=0&&fr.test(e);)e=e.replace(fr,s),fr.lastIndex=0,n-=1;return e}var Bg={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 zg(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(Za).map(function(s){return s==="MMMM"||s==="MM"||s==="DD"||s==="dddd"?s.slice(1):s}).join(""),this._longDateFormat[e])}var Zg="Invalid date";function Qg(){return this._invalidDate}var Jg="%d",Kg=/\d{1,2}/;function Xg(e){return this._ordinal.replace("%d",e)}var ep={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 tp(e,t,n,s){var r=this._relativeTime[n];return et(r)?r(e,t,n,s):r.replace(/%d/i,e)}function np(e,t){var n=this._relativeTime[e>0?"future":"past"];return et(n)?n(t):n.replace(/%s/i,t)}var Lu={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 Ne(e){return typeof e=="string"?Lu[e]||Lu[e.toLowerCase()]:void 0}function Ja(e){var t={},n,s;for(s in e)H(e,s)&&(n=Ne(s),n&&(t[n]=e[s]));return t}var sp={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 rp(e){var t=[],n;for(n in e)H(e,n)&&t.push({unit:n,priority:sp[n]});return t.sort(function(s,r){return s.priority-r.priority}),t}var Uu=/\d/,$e=/\d\d/,ju=/\d{3}/,Ka=/\d{4}/,gr=/[+-]?\d{6}/,Z=/\d\d?/,Wu=/\d\d\d\d?/,Fu=/\d\d\d\d\d\d?/,pr=/\d{1,3}/,Xa=/\d{1,4}/,yr=/[+-]?\d{1,6}/,Yn=/\d+/,_r=/[+-]?\d+/,ap=/Z|[+-]\d\d:?\d\d/gi,vr=/Z|[+-]\d\d(?::?\d\d)?/gi,ip=/[+-]?\d+(\.\d{1,3})?/,os=/[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,On=/^[1-9]\d?/,ei=/^([1-9]\d|\d)/,wr;wr={};function w(e,t,n){wr[e]=et(t)?t:function(s,r){return s&&n?n:t}}function op(e,t){return H(wr,e)?wr[e](t._strict,t._locale):new RegExp(up(e))}function up(e){return kt(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,s,r,a){return n||s||r||a}))}function kt(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Re(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function R(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Re(t)),n}var ti={};function G(e,t){var n,s=t,r;for(typeof e=="string"&&(e=[e]),wt(t)&&(s=function(a,i){i[t]=R(a)}),r=e.length,n=0;n<r;n++)ti[e[n]]=s}function us(e,t){G(e,function(n,s,r,a){r._w=r._w||{},t(n,r._w,r,a)})}function lp(e,t,n){t!=null&&H(ti,e)&&ti[e](t,n._a,n,e)}function kr(e){return e%4===0&&e%100!==0||e%400===0}var ce=0,$t=1,nt=2,ie=3,Ie=4,St=5,nn=6,dp=7,cp=8;S("Y",0,0,function(){var e=this.year();return e<=9999?tt(e,4):"+"+e}),S(0,["YY",2],0,function(){return this.year()%100}),S(0,["YYYY",4],0,"year"),S(0,["YYYYY",5],0,"year"),S(0,["YYYYYY",6,!0],0,"year"),w("Y",_r),w("YY",Z,$e),w("YYYY",Xa,Ka),w("YYYYY",yr,gr),w("YYYYYY",yr,gr),G(["YYYYY","YYYYYY"],ce),G("YYYY",function(e,t){t[ce]=e.length===2?y.parseTwoDigitYear(e):R(e)}),G("YY",function(e,t){t[ce]=y.parseTwoDigitYear(e)}),G("Y",function(e,t){t[ce]=parseInt(e,10)});function ls(e){return kr(e)?366:365}y.parseTwoDigitYear=function(e){return R(e)+(R(e)>68?1900:2e3)};var Hu=xn("FullYear",!0);function hp(){return kr(this.year())}function xn(e,t){return function(n){return n!=null?(Eu(this,e,n),y.updateOffset(this,t),this):ds(this,e)}}function ds(e,t){if(!e.isValid())return NaN;var n=e._d,s=e._isUTC;switch(t){case"Milliseconds":return s?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return s?n.getUTCSeconds():n.getSeconds();case"Minutes":return s?n.getUTCMinutes():n.getMinutes();case"Hours":return s?n.getUTCHours():n.getHours();case"Date":return s?n.getUTCDate():n.getDate();case"Day":return s?n.getUTCDay():n.getDay();case"Month":return s?n.getUTCMonth():n.getMonth();case"FullYear":return s?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Eu(e,t,n){var s,r,a,i,o;if(!(!e.isValid()||isNaN(n))){switch(s=e._d,r=e._isUTC,t){case"Milliseconds":return void(r?s.setUTCMilliseconds(n):s.setMilliseconds(n));case"Seconds":return void(r?s.setUTCSeconds(n):s.setSeconds(n));case"Minutes":return void(r?s.setUTCMinutes(n):s.setMinutes(n));case"Hours":return void(r?s.setUTCHours(n):s.setHours(n));case"Date":return void(r?s.setUTCDate(n):s.setDate(n));case"FullYear":break;default:return}a=n,i=e.month(),o=e.date(),o=o===29&&i===1&&!kr(a)?28:o,r?s.setUTCFullYear(a,i,o):s.setFullYear(a,i,o)}}function fp(e){return e=Ne(e),et(this[e])?this[e]():this}function mp(e,t){if(typeof e=="object"){e=Ja(e);var n=rp(e),s,r=n.length;for(s=0;s<r;s++)this[n[s].unit](e[n[s].unit])}else if(e=Ne(e),et(this[e]))return this[e](t);return this}function gp(e,t){return(e%t+t)%t}var se;Array.prototype.indexOf?se=Array.prototype.indexOf:se=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function ni(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=gp(t,12);return e+=(t-n)/12,n===1?kr(e)?29:28:31-n%7%2}S("M",["MM",2],"Mo",function(){return this.month()+1}),S("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),S("MMMM",0,0,function(e){return this.localeData().months(this,e)}),w("M",Z,On),w("MM",Z,$e),w("MMM",function(e,t){return t.monthsShortRegex(e)}),w("MMMM",function(e,t){return t.monthsRegex(e)}),G(["M","MM"],function(e,t){t[$t]=R(e)-1}),G(["MMM","MMMM"],function(e,t,n,s){var r=n._locale.monthsParse(e,s,n._strict);r!=null?t[$t]=r:x(n).invalidMonth=e});var pp="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Iu="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Au=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,yp=os,_p=os;function vp(e,t){return e?He(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Au).test(t)?"format":"standalone"][e.month()]:He(this._months)?this._months:this._months.standalone}function wp(e,t){return e?He(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Au.test(t)?"format":"standalone"][e.month()]:He(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function kp(e,t,n){var s,r,a,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)a=Xe([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(a,"").toLocaleLowerCase();return n?t==="MMM"?(r=se.call(this._shortMonthsParse,i),r!==-1?r:null):(r=se.call(this._longMonthsParse,i),r!==-1?r:null):t==="MMM"?(r=se.call(this._shortMonthsParse,i),r!==-1?r:(r=se.call(this._longMonthsParse,i),r!==-1?r:null)):(r=se.call(this._longMonthsParse,i),r!==-1?r:(r=se.call(this._shortMonthsParse,i),r!==-1?r:null))}function $p(e,t,n){var s,r,a;if(this._monthsParseExact)return kp.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++)if(r=Xe([2e3,s]),n&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),!n&&!this._monthsParse[s]&&(a="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[s]=new RegExp(a.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[s].test(e)||n&&t==="MMM"&&this._shortMonthsParse[s].test(e)||!n&&this._monthsParse[s].test(e))return s}function Vu(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=R(t);else if(t=e.localeData().monthsParse(t),!wt(t))return e}var n=t,s=e.date();return s=s<29?s:Math.min(s,ni(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,s):e._d.setMonth(n,s),e}function Gu(e){return e!=null?(Vu(this,e),y.updateOffset(this,!0),this):ds(this,"Month")}function Sp(){return ni(this.year(),this.month())}function bp(e){return this._monthsParseExact?(H(this,"_monthsRegex")||qu.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(H(this,"_monthsShortRegex")||(this._monthsShortRegex=yp),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Mp(e){return this._monthsParseExact?(H(this,"_monthsRegex")||qu.call(this),e?this._monthsStrictRegex:this._monthsRegex):(H(this,"_monthsRegex")||(this._monthsRegex=_p),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function qu(){function e(u,l){return l.length-u.length}var t=[],n=[],s=[],r,a,i,o;for(r=0;r<12;r++)a=Xe([2e3,r]),i=kt(this.monthsShort(a,"")),o=kt(this.months(a,"")),t.push(i),n.push(o),s.push(o),s.push(i);t.sort(e),n.sort(e),s.sort(e),this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Dp(e,t,n,s,r,a,i){var o;return e<100&&e>=0?(o=new Date(e+400,t,n,s,r,a,i),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,s,r,a,i),o}function cs(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function $r(e,t,n){var s=7+t-n,r=(7+cs(e,0,s).getUTCDay()-t)%7;return-r+s-1}function Bu(e,t,n,s,r){var a=(7+n-s)%7,i=$r(e,s,r),o=1+7*(t-1)+a+i,u,l;return o<=0?(u=e-1,l=ls(u)+o):o>ls(e)?(u=e+1,l=o-ls(e)):(u=e,l=o),{year:u,dayOfYear:l}}function hs(e,t,n){var s=$r(e.year(),t,n),r=Math.floor((e.dayOfYear()-s-1)/7)+1,a,i;return r<1?(i=e.year()-1,a=r+bt(i,t,n)):r>bt(e.year(),t,n)?(a=r-bt(e.year(),t,n),i=e.year()+1):(i=e.year(),a=r),{week:a,year:i}}function bt(e,t,n){var s=$r(e,t,n),r=$r(e+1,t,n);return(ls(e)-s+r)/7}S("w",["ww",2],"wo","week"),S("W",["WW",2],"Wo","isoWeek"),w("w",Z,On),w("ww",Z,$e),w("W",Z,On),w("WW",Z,$e),us(["w","ww","W","WW"],function(e,t,n,s){t[s.substr(0,1)]=R(e)});function Yp(e){return hs(e,this._week.dow,this._week.doy).week}var Op={dow:0,doy:6};function xp(){return this._week.dow}function Tp(){return this._week.doy}function Np(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Rp(e){var t=hs(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}S("d",0,"do","day"),S("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),S("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),S("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),S("e",0,0,"weekday"),S("E",0,0,"isoWeekday"),w("d",Z),w("e",Z),w("E",Z),w("dd",function(e,t){return t.weekdaysMinRegex(e)}),w("ddd",function(e,t){return t.weekdaysShortRegex(e)}),w("dddd",function(e,t){return t.weekdaysRegex(e)}),us(["dd","ddd","dddd"],function(e,t,n,s){var r=n._locale.weekdaysParse(e,s,n._strict);r!=null?t.d=r:x(n).invalidWeekday=e}),us(["d","e","E"],function(e,t,n,s){t[s]=R(e)});function Cp(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Pp(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function si(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Lp="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),zu="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Up="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),jp=os,Wp=os,Fp=os;function Hp(e,t){var n=He(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?si(n,this._week.dow):e?n[e.day()]:n}function Ep(e){return e===!0?si(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ip(e){return e===!0?si(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ap(e,t,n){var s,r,a,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)a=Xe([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(a,"").toLocaleLowerCase();return n?t==="dddd"?(r=se.call(this._weekdaysParse,i),r!==-1?r:null):t==="ddd"?(r=se.call(this._shortWeekdaysParse,i),r!==-1?r:null):(r=se.call(this._minWeekdaysParse,i),r!==-1?r:null):t==="dddd"?(r=se.call(this._weekdaysParse,i),r!==-1||(r=se.call(this._shortWeekdaysParse,i),r!==-1)?r:(r=se.call(this._minWeekdaysParse,i),r!==-1?r:null)):t==="ddd"?(r=se.call(this._shortWeekdaysParse,i),r!==-1||(r=se.call(this._weekdaysParse,i),r!==-1)?r:(r=se.call(this._minWeekdaysParse,i),r!==-1?r:null)):(r=se.call(this._minWeekdaysParse,i),r!==-1||(r=se.call(this._weekdaysParse,i),r!==-1)?r:(r=se.call(this._shortWeekdaysParse,i),r!==-1?r:null))}function Vp(e,t,n){var s,r,a;if(this._weekdaysParseExact)return Ap.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++)if(r=Xe([2e3,1]).day(s),n&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(a="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[s]=new RegExp(a.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[s].test(e)||n&&t==="ddd"&&this._shortWeekdaysParse[s].test(e)||n&&t==="dd"&&this._minWeekdaysParse[s].test(e)||!n&&this._weekdaysParse[s].test(e))return s}function Gp(e){if(!this.isValid())return e!=null?this:NaN;var t=ds(this,"Day");return e!=null?(e=Cp(e,this.localeData()),this.add(e-t,"d")):t}function qp(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Bp(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Pp(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function zp(e){return this._weekdaysParseExact?(H(this,"_weekdaysRegex")||ri.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(H(this,"_weekdaysRegex")||(this._weekdaysRegex=jp),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Zp(e){return this._weekdaysParseExact?(H(this,"_weekdaysRegex")||ri.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(H(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Wp),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Qp(e){return this._weekdaysParseExact?(H(this,"_weekdaysRegex")||ri.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(H(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Fp),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ri(){function e(d,h){return h.length-d.length}var t=[],n=[],s=[],r=[],a,i,o,u,l;for(a=0;a<7;a++)i=Xe([2e3,1]).day(a),o=kt(this.weekdaysMin(i,"")),u=kt(this.weekdaysShort(i,"")),l=kt(this.weekdays(i,"")),t.push(o),n.push(u),s.push(l),r.push(o),r.push(u),r.push(l);t.sort(e),n.sort(e),s.sort(e),r.sort(e),this._weekdaysRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function ai(){return this.hours()%12||12}function Jp(){return this.hours()||24}S("H",["HH",2],0,"hour"),S("h",["hh",2],0,ai),S("k",["kk",2],0,Jp),S("hmm",0,0,function(){return""+ai.apply(this)+tt(this.minutes(),2)}),S("hmmss",0,0,function(){return""+ai.apply(this)+tt(this.minutes(),2)+tt(this.seconds(),2)}),S("Hmm",0,0,function(){return""+this.hours()+tt(this.minutes(),2)}),S("Hmmss",0,0,function(){return""+this.hours()+tt(this.minutes(),2)+tt(this.seconds(),2)});function Zu(e,t){S(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Zu("a",!0),Zu("A",!1);function Qu(e,t){return t._meridiemParse}w("a",Qu),w("A",Qu),w("H",Z,ei),w("h",Z,On),w("k",Z,On),w("HH",Z,$e),w("hh",Z,$e),w("kk",Z,$e),w("hmm",Wu),w("hmmss",Fu),w("Hmm",Wu),w("Hmmss",Fu),G(["H","HH"],ie),G(["k","kk"],function(e,t,n){var s=R(e);t[ie]=s===24?0:s}),G(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),G(["h","hh"],function(e,t,n){t[ie]=R(e),x(n).bigHour=!0}),G("hmm",function(e,t,n){var s=e.length-2;t[ie]=R(e.substr(0,s)),t[Ie]=R(e.substr(s)),x(n).bigHour=!0}),G("hmmss",function(e,t,n){var s=e.length-4,r=e.length-2;t[ie]=R(e.substr(0,s)),t[Ie]=R(e.substr(s,2)),t[St]=R(e.substr(r)),x(n).bigHour=!0}),G("Hmm",function(e,t,n){var s=e.length-2;t[ie]=R(e.substr(0,s)),t[Ie]=R(e.substr(s))}),G("Hmmss",function(e,t,n){var s=e.length-4,r=e.length-2;t[ie]=R(e.substr(0,s)),t[Ie]=R(e.substr(s,2)),t[St]=R(e.substr(r))});function Kp(e){return(e+"").toLowerCase().charAt(0)==="p"}var Xp=/[ap]\.?m?\.?/i,ey=xn("Hours",!0);function ty(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var Ju={calendar:Ag,longDateFormat:Bg,invalidDate:Zg,ordinal:Jg,dayOfMonthOrdinalParse:Kg,relativeTime:ep,months:pp,monthsShort:Iu,week:Op,weekdays:Lp,weekdaysMin:Up,weekdaysShort:zu,meridiemParse:Xp},ee={},fs={},ms;function ny(e,t){var n,s=Math.min(e.length,t.length);for(n=0;n<s;n+=1)if(e[n]!==t[n])return n;return s}function Ku(e){return e&&e.toLowerCase().replace("_","-")}function sy(e){for(var t=0,n,s,r,a;t<e.length;){for(a=Ku(e[t]).split("-"),n=a.length,s=Ku(e[t+1]),s=s?s.split("-"):null;n>0;){if(r=Sr(a.slice(0,n).join("-")),r)return r;if(s&&s.length>=n&&ny(a,s)>=n-1)break;n--}t++}return ms}function ry(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Sr(e){var t=null,n;if(ee[e]===void 0&&typeof module<"u"&&module&&module.exports&&ry(e))try{t=ms._abbr,n=require,n("./locale/"+e),Vt(t)}catch{ee[e]=null}return ee[e]}function Vt(e,t){var n;return e&&(_e(t)?n=Mt(e):n=ii(e,t),n?ms=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ms._abbr}function ii(e,t){if(t!==null){var n,s=Ju;if(t.abbr=e,ee[e]!=null)Cu("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."),s=ee[e]._config;else if(t.parentLocale!=null)if(ee[t.parentLocale]!=null)s=ee[t.parentLocale]._config;else if(n=Sr(t.parentLocale),n!=null)s=n._config;else return fs[t.parentLocale]||(fs[t.parentLocale]=[]),fs[t.parentLocale].push({name:e,config:t}),null;return ee[e]=new Ba(qa(s,t)),fs[e]&&fs[e].forEach(function(r){ii(r.name,r.config)}),Vt(e),ee[e]}else return delete ee[e],null}function ay(e,t){if(t!=null){var n,s,r=Ju;ee[e]!=null&&ee[e].parentLocale!=null?ee[e].set(qa(ee[e]._config,t)):(s=Sr(e),s!=null&&(r=s._config),t=qa(r,t),s==null&&(t.abbr=e),n=new Ba(t),n.parentLocale=ee[e],ee[e]=n),Vt(e)}else ee[e]!=null&&(ee[e].parentLocale!=null?(ee[e]=ee[e].parentLocale,e===Vt()&&Vt(e)):ee[e]!=null&&delete ee[e]);return ee[e]}function Mt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ms;if(!He(e)){if(t=Sr(e),t)return t;e=[e]}return sy(e)}function iy(){return za(ee)}function oi(e){var t,n=e._a;return n&&x(e).overflow===-2&&(t=n[$t]<0||n[$t]>11?$t:n[nt]<1||n[nt]>ni(n[ce],n[$t])?nt:n[ie]<0||n[ie]>24||n[ie]===24&&(n[Ie]!==0||n[St]!==0||n[nn]!==0)?ie:n[Ie]<0||n[Ie]>59?Ie:n[St]<0||n[St]>59?St:n[nn]<0||n[nn]>999?nn:-1,x(e)._overflowDayOfYear&&(t<ce||t>nt)&&(t=nt),x(e)._overflowWeeks&&t===-1&&(t=dp),x(e)._overflowWeekday&&t===-1&&(t=cp),x(e).overflow=t),e}var oy=/^\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)?)?$/,uy=/^\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)?)?$/,ly=/Z|[+-]\d\d(?::?\d\d)?/,br=[["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/]],dy=/^\/?Date\((-?\d+)/i,cy=/^(?:(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}))$/,hy={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 Xu(e){var t,n,s=e._i,r=oy.exec(s)||uy.exec(s),a,i,o,u,l=br.length,d=ui.length;if(r){for(x(e).iso=!0,t=0,n=l;t<n;t++)if(br[t][1].exec(r[1])){i=br[t][0],a=br[t][2]!==!1;break}if(i==null){e._isValid=!1;return}if(r[3]){for(t=0,n=d;t<n;t++)if(ui[t][1].exec(r[3])){o=(r[2]||" ")+ui[t][0];break}if(o==null){e._isValid=!1;return}}if(!a&&o!=null){e._isValid=!1;return}if(r[4])if(ly.exec(r[4]))u="Z";else{e._isValid=!1;return}e._f=i+(o||"")+(u||""),di(e)}else e._isValid=!1}function fy(e,t,n,s,r,a){var i=[my(e),Iu.indexOf(t),parseInt(n,10),parseInt(s,10),parseInt(r,10)];return a&&i.push(parseInt(a,10)),i}function my(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function gy(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function py(e,t,n){if(e){var s=zu.indexOf(e),r=new Date(t[0],t[1],t[2]).getDay();if(s!==r)return x(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function yy(e,t,n){if(e)return hy[e];if(t)return 0;var s=parseInt(n,10),r=s%100,a=(s-r)/100;return a*60+r}function el(e){var t=cy.exec(gy(e._i)),n;if(t){if(n=fy(t[4],t[3],t[2],t[5],t[6],t[7]),!py(t[1],n,e))return;e._a=n,e._tzm=yy(t[8],t[9],t[10]),e._d=cs.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),x(e).rfc2822=!0}else e._isValid=!1}function _y(e){var t=dy.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Xu(e),e._isValid===!1)delete e._isValid;else return;if(el(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:y.createFromInputFallback(e)}y.createFromInputFallback=Te("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(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function Tn(e,t,n){return e??t??n}function vy(e){var t=new Date(y.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function li(e){var t,n,s=[],r,a,i;if(!e._d){for(r=vy(e),e._w&&e._a[nt]==null&&e._a[$t]==null&&wy(e),e._dayOfYear!=null&&(i=Tn(e._a[ce],r[ce]),(e._dayOfYear>ls(i)||e._dayOfYear===0)&&(x(e)._overflowDayOfYear=!0),n=cs(i,0,e._dayOfYear),e._a[$t]=n.getUTCMonth(),e._a[nt]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[ie]===24&&e._a[Ie]===0&&e._a[St]===0&&e._a[nn]===0&&(e._nextDay=!0,e._a[ie]=0),e._d=(e._useUTC?cs:Dp).apply(null,s),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ie]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(x(e).weekdayMismatch=!0)}}function wy(e){var t,n,s,r,a,i,o,u,l;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,i=4,n=Tn(t.GG,e._a[ce],hs(Q(),1,4).year),s=Tn(t.W,1),r=Tn(t.E,1),(r<1||r>7)&&(u=!0)):(a=e._locale._week.dow,i=e._locale._week.doy,l=hs(Q(),a,i),n=Tn(t.gg,e._a[ce],l.year),s=Tn(t.w,l.week),t.d!=null?(r=t.d,(r<0||r>6)&&(u=!0)):t.e!=null?(r=t.e+a,(t.e<0||t.e>6)&&(u=!0)):r=a),s<1||s>bt(n,a,i)?x(e)._overflowWeeks=!0:u!=null?x(e)._overflowWeekday=!0:(o=Bu(n,s,r,a,i),e._a[ce]=o.year,e._dayOfYear=o.dayOfYear)}y.ISO_8601=function(){},y.RFC_2822=function(){};function di(e){if(e._f===y.ISO_8601){Xu(e);return}if(e._f===y.RFC_2822){el(e);return}e._a=[],x(e).empty=!0;var t=""+e._i,n,s,r,a,i,o=t.length,u=0,l,d;for(r=Pu(e._f,e._locale).match(Za)||[],d=r.length,n=0;n<d;n++)a=r[n],s=(t.match(op(a,e))||[])[0],s&&(i=t.substr(0,t.indexOf(s)),i.length>0&&x(e).unusedInput.push(i),t=t.slice(t.indexOf(s)+s.length),u+=s.length),Dn[a]?(s?x(e).empty=!1:x(e).unusedTokens.push(a),lp(a,s,e)):e._strict&&!s&&x(e).unusedTokens.push(a);x(e).charsLeftOver=o-u,t.length>0&&x(e).unusedInput.push(t),e._a[ie]<=12&&x(e).bigHour===!0&&e._a[ie]>0&&(x(e).bigHour=void 0),x(e).parsedDateParts=e._a.slice(0),x(e).meridiem=e._meridiem,e._a[ie]=ky(e._locale,e._a[ie],e._meridiem),l=x(e).era,l!==null&&(e._a[ce]=e._locale.erasConvertYear(l,e._a[ce])),li(e),oi(e)}function ky(e,t,n){var s;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(s=e.isPM(n),s&&t<12&&(t+=12),!s&&t===12&&(t=0)),t)}function $y(e){var t,n,s,r,a,i,o=!1,u=e._f.length;if(u===0){x(e).invalidFormat=!0,e._d=new Date(NaN);return}for(r=0;r<u;r++)a=0,i=!1,t=Ga({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[r],di(t),Aa(t)&&(i=!0),a+=x(t).charsLeftOver,a+=x(t).unusedTokens.length*10,x(t).score=a,o?a<s&&(s=a,n=t):(s==null||a<s||i)&&(s=a,n=t,i&&(o=!0));At(e,n||t)}function Sy(e){if(!e._d){var t=Ja(e._i),n=t.day===void 0?t.date:t.day;e._a=xu([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(s){return s&&parseInt(s,10)}),li(e)}}function by(e){var t=new is(oi(tl(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function tl(e){var t=e._i,n=e._f;return e._locale=e._locale||Mt(e._l),t===null||n===void 0&&t===""?hr({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),Ee(t)?new is(oi(t)):(as(t)?e._d=t:He(n)?$y(e):n?di(e):My(e),Aa(e)||(e._d=null),e))}function My(e){var t=e._i;_e(t)?e._d=new Date(y.now()):as(t)?e._d=new Date(t.valueOf()):typeof t=="string"?_y(e):He(t)?(e._a=xu(t.slice(0),function(n){return parseInt(n,10)}),li(e)):tn(t)?Sy(e):wt(t)?e._d=new Date(t):y.createFromInputFallback(e)}function nl(e,t,n,s,r){var a={};return(t===!0||t===!1)&&(s=t,t=void 0),(n===!0||n===!1)&&(s=n,n=void 0),(tn(e)&&Ea(e)||He(e)&&e.length===0)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=r,a._l=n,a._i=e,a._f=t,a._strict=s,by(a)}function Q(e,t,n,s){return nl(e,t,n,s,!1)}var Dy=Te("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Q.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:hr()}),Yy=Te("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Q.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:hr()});function sl(e,t){var n,s;if(t.length===1&&He(t[0])&&(t=t[0]),!t.length)return Q();for(n=t[0],s=1;s<t.length;++s)(!t[s].isValid()||t[s][e](n))&&(n=t[s]);return n}function Oy(){var e=[].slice.call(arguments,0);return sl("isBefore",e)}function xy(){var e=[].slice.call(arguments,0);return sl("isAfter",e)}var Ty=function(){return Date.now?Date.now():+new Date},gs=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ny(e){var t,n=!1,s,r=gs.length;for(t in e)if(H(e,t)&&!(se.call(gs,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(s=0;s<r;++s)if(e[gs[s]]){if(n)return!1;parseFloat(e[gs[s]])!==R(e[gs[s]])&&(n=!0)}return!0}function Ry(){return this._isValid}function Cy(){return Ae(NaN)}function Mr(e){var t=Ja(e),n=t.year||0,s=t.quarter||0,r=t.month||0,a=t.week||t.isoWeek||0,i=t.day||0,o=t.hour||0,u=t.minute||0,l=t.second||0,d=t.millisecond||0;this._isValid=Ny(t),this._milliseconds=+d+l*1e3+u*6e4+o*1e3*60*60,this._days=+i+a*7,this._months=+r+s*3+n*12,this._data={},this._locale=Mt(),this._bubble()}function Dr(e){return e instanceof Mr}function ci(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Py(e,t,n){var s=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),a=0,i;for(i=0;i<s;i++)R(e[i])!==R(t[i])&&a++;return a+r}function rl(e,t){S(e,0,0,function(){var n=this.utcOffset(),s="+";return n<0&&(n=-n,s="-"),s+tt(~~(n/60),2)+t+tt(~~n%60,2)})}rl("Z",":"),rl("ZZ",""),w("Z",vr),w("ZZ",vr),G(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=hi(vr,e)});var Ly=/([\+\-]|\d\d)/gi;function hi(e,t){var n=(t||"").match(e),s,r,a;return n===null?null:(s=n[n.length-1]||[],r=(s+"").match(Ly)||["-",0,0],a=+(r[1]*60)+R(r[2]),a===0?0:r[0]==="+"?a:-a)}function fi(e,t){var n,s;return t._isUTC?(n=t.clone(),s=(Ee(e)||as(e)?e.valueOf():Q(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+s),y.updateOffset(n,!1),n):Q(e).local()}function mi(e){return-Math.round(e._d.getTimezoneOffset())}y.updateOffset=function(){};function Uy(e,t,n){var s=this._offset||0,r;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=hi(vr,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(r=mi(this)),this._offset=e,this._isUTC=!0,r!=null&&this.add(r,"m"),s!==e&&(!t||this._changeInProgress?ul(this,Ae(e-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,y.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?s:mi(this)}function jy(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Wy(e){return this.utcOffset(0,e)}function Fy(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(mi(this),"m")),this}function Hy(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=hi(ap,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Ey(e){return this.isValid()?(e=e?Q(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Iy(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ay(){if(!_e(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Ga(e,this),e=tl(e),e._a?(t=e._isUTC?Xe(e._a):Q(e._a),this._isDSTShifted=this.isValid()&&Py(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Vy(){return this.isValid()?!this._isUTC:!1}function Gy(){return this.isValid()?this._isUTC:!1}function al(){return this.isValid()?this._isUTC&&this._offset===0:!1}var qy=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,By=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ae(e,t){var n=e,s=null,r,a,i;return Dr(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:wt(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(s=qy.exec(e))?(r=s[1]==="-"?-1:1,n={y:0,d:R(s[nt])*r,h:R(s[ie])*r,m:R(s[Ie])*r,s:R(s[St])*r,ms:R(ci(s[nn]*1e3))*r}):(s=By.exec(e))?(r=s[1]==="-"?-1:1,n={y:sn(s[2],r),M:sn(s[3],r),w:sn(s[4],r),d:sn(s[5],r),h:sn(s[6],r),m:sn(s[7],r),s:sn(s[8],r)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(i=zy(Q(n.from),Q(n.to)),n={},n.ms=i.milliseconds,n.M=i.months),a=new Mr(n),Dr(e)&&H(e,"_locale")&&(a._locale=e._locale),Dr(e)&&H(e,"_isValid")&&(a._isValid=e._isValid),a}Ae.fn=Mr.prototype,Ae.invalid=Cy;function sn(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function il(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function zy(e,t){var n;return e.isValid()&&t.isValid()?(t=fi(t,e),e.isBefore(t)?n=il(e,t):(n=il(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function ol(e,t){return function(n,s){var r,a;return s!==null&&!isNaN(+s)&&(Cu(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=s,s=a),r=Ae(n,s),ul(this,r,e),this}}function ul(e,t,n,s){var r=t._milliseconds,a=ci(t._days),i=ci(t._months);e.isValid()&&(s=s??!0,i&&Vu(e,ds(e,"Month")+i*n),a&&Eu(e,"Date",ds(e,"Date")+a*n),r&&e._d.setTime(e._d.valueOf()+r*n),s&&y.updateOffset(e,a||i))}var Zy=ol(1,"add"),Qy=ol(-1,"subtract");function ll(e){return typeof e=="string"||e instanceof String}function Jy(e){return Ee(e)||as(e)||ll(e)||wt(e)||Xy(e)||Ky(e)||e===null||e===void 0}function Ky(e){var t=tn(e)&&!Ea(e),n=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],r,a,i=s.length;for(r=0;r<i;r+=1)a=s[r],n=n||H(e,a);return t&&n}function Xy(e){var t=He(e),n=!1;return t&&(n=e.filter(function(s){return!wt(s)&&ll(e)}).length===0),t&&n}function e1(e){var t=tn(e)&&!Ea(e),n=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],r,a;for(r=0;r<s.length;r+=1)a=s[r],n=n||H(e,a);return t&&n}function t1(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function n1(e,t){arguments.length===1&&(arguments[0]?Jy(arguments[0])?(e=arguments[0],t=void 0):e1(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Q(),s=fi(n,this).startOf("day"),r=y.calendarFormat(this,s)||"sameElse",a=t&&(et(t[r])?t[r].call(this,n):t[r]);return this.format(a||this.localeData().calendar(r,this,Q(n)))}function s1(){return new is(this)}function r1(e,t){var n=Ee(e)?e:Q(e);return this.isValid()&&n.isValid()?(t=Ne(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function a1(e,t){var n=Ee(e)?e:Q(e);return this.isValid()&&n.isValid()?(t=Ne(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function i1(e,t,n,s){var r=Ee(e)?e:Q(e),a=Ee(t)?t:Q(t);return this.isValid()&&r.isValid()&&a.isValid()?(s=s||"()",(s[0]==="("?this.isAfter(r,n):!this.isBefore(r,n))&&(s[1]===")"?this.isBefore(a,n):!this.isAfter(a,n))):!1}function o1(e,t){var n=Ee(e)?e:Q(e),s;return this.isValid()&&n.isValid()?(t=Ne(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(s=n.valueOf(),this.clone().startOf(t).valueOf()<=s&&s<=this.clone().endOf(t).valueOf())):!1}function u1(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function l1(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function d1(e,t,n){var s,r,a;if(!this.isValid())return NaN;if(s=fi(e,this),!s.isValid())return NaN;switch(r=(s.utcOffset()-this.utcOffset())*6e4,t=Ne(t),t){case"year":a=Yr(this,s)/12;break;case"month":a=Yr(this,s);break;case"quarter":a=Yr(this,s)/3;break;case"second":a=(this-s)/1e3;break;case"minute":a=(this-s)/6e4;break;case"hour":a=(this-s)/36e5;break;case"day":a=(this-s-r)/864e5;break;case"week":a=(this-s-r)/6048e5;break;default:a=this-s}return n?a:Re(a)}function Yr(e,t){if(e.date()<t.date())return-Yr(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),s=e.clone().add(n,"months"),r,a;return t-s<0?(r=e.clone().add(n-1,"months"),a=(t-s)/(s-r)):(r=e.clone().add(n+1,"months"),a=(t-s)/(r-s)),-(n+a)||0}y.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",y.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function c1(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function h1(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?mr(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):et(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",mr(n,"Z")):mr(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function f1(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,s,r,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',s=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]',this.format(n+s+r+a)}function m1(e){e||(e=this.isUtc()?y.defaultFormatUtc:y.defaultFormat);var t=mr(this,e);return this.localeData().postformat(t)}function g1(e,t){return this.isValid()&&(Ee(e)&&e.isValid()||Q(e).isValid())?Ae({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function p1(e){return this.from(Q(),e)}function y1(e,t){return this.isValid()&&(Ee(e)&&e.isValid()||Q(e).isValid())?Ae({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function _1(e){return this.to(Q(),e)}function dl(e){var t;return e===void 0?this._locale._abbr:(t=Mt(e),t!=null&&(this._locale=t),this)}var cl=Te("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function hl(){return this._locale}var Or=1e3,Nn=60*Or,xr=60*Nn,fl=(365*400+97)*24*xr;function Rn(e,t){return(e%t+t)%t}function ml(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-fl:new Date(e,t,n).valueOf()}function gl(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-fl:Date.UTC(e,t,n)}function v1(e){var t,n;if(e=Ne(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?gl:ml,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Rn(t+(this._isUTC?0:this.utcOffset()*Nn),xr);break;case"minute":t=this._d.valueOf(),t-=Rn(t,Nn);break;case"second":t=this._d.valueOf(),t-=Rn(t,Or);break}return this._d.setTime(t),y.updateOffset(this,!0),this}function w1(e){var t,n;if(e=Ne(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?gl:ml,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=xr-Rn(t+(this._isUTC?0:this.utcOffset()*Nn),xr)-1;break;case"minute":t=this._d.valueOf(),t+=Nn-Rn(t,Nn)-1;break;case"second":t=this._d.valueOf(),t+=Or-Rn(t,Or)-1;break}return this._d.setTime(t),y.updateOffset(this,!0),this}function k1(){return this._d.valueOf()-(this._offset||0)*6e4}function $1(){return Math.floor(this.valueOf()/1e3)}function S1(){return new Date(this.valueOf())}function b1(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function M1(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function D1(){return this.isValid()?this.toISOString():null}function Y1(){return Aa(this)}function O1(){return At({},x(this))}function x1(){return x(this).overflow}function T1(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}S("N",0,0,"eraAbbr"),S("NN",0,0,"eraAbbr"),S("NNN",0,0,"eraAbbr"),S("NNNN",0,0,"eraName"),S("NNNNN",0,0,"eraNarrow"),S("y",["y",1],"yo","eraYear"),S("y",["yy",2],0,"eraYear"),S("y",["yyy",3],0,"eraYear"),S("y",["yyyy",4],0,"eraYear"),w("N",gi),w("NN",gi),w("NNN",gi),w("NNNN",E1),w("NNNNN",I1),G(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,s){var r=n._locale.erasParse(e,s,n._strict);r?x(n).era=r:x(n).invalidEra=e}),w("y",Yn),w("yy",Yn),w("yyy",Yn),w("yyyy",Yn),w("yo",A1),G(["y","yy","yyy","yyyy"],ce),G(["yo"],function(e,t,n,s){var r;n._locale._eraYearOrdinalRegex&&(r=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[ce]=n._locale.eraYearOrdinalParse(e,r):t[ce]=parseInt(e,10)});function N1(e,t){var n,s,r,a=this._eras||Mt("en")._eras;for(n=0,s=a.length;n<s;++n){switch(typeof a[n].since){case"string":r=y(a[n].since).startOf("day"),a[n].since=r.valueOf();break}switch(typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":r=y(a[n].until).startOf("day").valueOf(),a[n].until=r.valueOf();break}}return a}function R1(e,t,n){var s,r,a=this.eras(),i,o,u;for(e=e.toUpperCase(),s=0,r=a.length;s<r;++s)if(i=a[s].name.toUpperCase(),o=a[s].abbr.toUpperCase(),u=a[s].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(o===e)return a[s];break;case"NNNN":if(i===e)return a[s];break;case"NNNNN":if(u===e)return a[s];break}else if([i,o,u].indexOf(e)>=0)return a[s]}function C1(e,t){var n=e.since<=e.until?1:-1;return t===void 0?y(e.since).year():y(e.since).year()+(t-e.offset)*n}function P1(){var e,t,n,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),s[e].since<=n&&n<=s[e].until||s[e].until<=n&&n<=s[e].since)return s[e].name;return""}function L1(){var e,t,n,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),s[e].since<=n&&n<=s[e].until||s[e].until<=n&&n<=s[e].since)return s[e].narrow;return""}function U1(){var e,t,n,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),s[e].since<=n&&n<=s[e].until||s[e].until<=n&&n<=s[e].since)return s[e].abbr;return""}function j1(){var e,t,n,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=r[e].since<=r[e].until?1:-1,s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return(this.year()-y(r[e].since).year())*n+r[e].offset;return this.year()}function W1(e){return H(this,"_erasNameRegex")||pi.call(this),e?this._erasNameRegex:this._erasRegex}function F1(e){return H(this,"_erasAbbrRegex")||pi.call(this),e?this._erasAbbrRegex:this._erasRegex}function H1(e){return H(this,"_erasNarrowRegex")||pi.call(this),e?this._erasNarrowRegex:this._erasRegex}function gi(e,t){return t.erasAbbrRegex(e)}function E1(e,t){return t.erasNameRegex(e)}function I1(e,t){return t.erasNarrowRegex(e)}function A1(e,t){return t._eraYearOrdinalRegex||Yn}function pi(){var e=[],t=[],n=[],s=[],r,a,i,o,u,l=this.eras();for(r=0,a=l.length;r<a;++r)i=kt(l[r].name),o=kt(l[r].abbr),u=kt(l[r].narrow),t.push(i),e.push(o),n.push(u),s.push(i),s.push(o),s.push(u);this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}S(0,["gg",2],0,function(){return this.weekYear()%100}),S(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Tr(e,t){S(0,[e,e.length],0,t)}Tr("gggg","weekYear"),Tr("ggggg","weekYear"),Tr("GGGG","isoWeekYear"),Tr("GGGGG","isoWeekYear"),w("G",_r),w("g",_r),w("GG",Z,$e),w("gg",Z,$e),w("GGGG",Xa,Ka),w("gggg",Xa,Ka),w("GGGGG",yr,gr),w("ggggg",yr,gr),us(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,s){t[s.substr(0,2)]=R(e)}),us(["gg","GG"],function(e,t,n,s){t[s]=y.parseTwoDigitYear(e)});function V1(e){return pl.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function G1(e){return pl.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function q1(){return bt(this.year(),1,4)}function B1(){return bt(this.isoWeekYear(),1,4)}function z1(){var e=this.localeData()._week;return bt(this.year(),e.dow,e.doy)}function Z1(){var e=this.localeData()._week;return bt(this.weekYear(),e.dow,e.doy)}function pl(e,t,n,s,r){var a;return e==null?hs(this,s,r).year:(a=bt(e,s,r),t>a&&(t=a),Q1.call(this,e,t,n,s,r))}function Q1(e,t,n,s,r){var a=Bu(e,t,n,s,r),i=cs(a.year,0,a.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}S("Q",0,"Qo","quarter"),w("Q",Uu),G("Q",function(e,t){t[$t]=(R(e)-1)*3});function J1(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}S("D",["DD",2],"Do","date"),w("D",Z,On),w("DD",Z,$e),w("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),G(["D","DD"],nt),G("Do",function(e,t){t[nt]=R(e.match(Z)[0])});var yl=xn("Date",!0);S("DDD",["DDDD",3],"DDDo","dayOfYear"),w("DDD",pr),w("DDDD",ju),G(["DDD","DDDD"],function(e,t,n){n._dayOfYear=R(e)});function K1(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}S("m",["mm",2],0,"minute"),w("m",Z,ei),w("mm",Z,$e),G(["m","mm"],Ie);var X1=xn("Minutes",!1);S("s",["ss",2],0,"second"),w("s",Z,ei),w("ss",Z,$e),G(["s","ss"],St);var e0=xn("Seconds",!1);S("S",0,0,function(){return~~(this.millisecond()/100)}),S(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),S(0,["SSS",3],0,"millisecond"),S(0,["SSSS",4],0,function(){return this.millisecond()*10}),S(0,["SSSSS",5],0,function(){return this.millisecond()*100}),S(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),S(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),S(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),S(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),w("S",pr,Uu),w("SS",pr,$e),w("SSS",pr,ju);var Gt,_l;for(Gt="SSSS";Gt.length<=9;Gt+="S")w(Gt,Yn);function t0(e,t){t[nn]=R(("0."+e)*1e3)}for(Gt="S";Gt.length<=9;Gt+="S")G(Gt,t0);_l=xn("Milliseconds",!1),S("z",0,0,"zoneAbbr"),S("zz",0,0,"zoneName");function n0(){return this._isUTC?"UTC":""}function s0(){return this._isUTC?"Coordinated Universal Time":""}var m=is.prototype;m.add=Zy,m.calendar=n1,m.clone=s1,m.diff=d1,m.endOf=w1,m.format=m1,m.from=g1,m.fromNow=p1,m.to=y1,m.toNow=_1,m.get=fp,m.invalidAt=x1,m.isAfter=r1,m.isBefore=a1,m.isBetween=i1,m.isSame=o1,m.isSameOrAfter=u1,m.isSameOrBefore=l1,m.isValid=Y1,m.lang=cl,m.locale=dl,m.localeData=hl,m.max=Yy,m.min=Dy,m.parsingFlags=O1,m.set=mp,m.startOf=v1,m.subtract=Qy,m.toArray=b1,m.toObject=M1,m.toDate=S1,m.toISOString=h1,m.inspect=f1,typeof Symbol<"u"&&Symbol.for!=null&&(m[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),m.toJSON=D1,m.toString=c1,m.unix=$1,m.valueOf=k1,m.creationData=T1,m.eraName=P1,m.eraNarrow=L1,m.eraAbbr=U1,m.eraYear=j1,m.year=Hu,m.isLeapYear=hp,m.weekYear=V1,m.isoWeekYear=G1,m.quarter=m.quarters=J1,m.month=Gu,m.daysInMonth=Sp,m.week=m.weeks=Np,m.isoWeek=m.isoWeeks=Rp,m.weeksInYear=z1,m.weeksInWeekYear=Z1,m.isoWeeksInYear=q1,m.isoWeeksInISOWeekYear=B1,m.date=yl,m.day=m.days=Gp,m.weekday=qp,m.isoWeekday=Bp,m.dayOfYear=K1,m.hour=m.hours=ey,m.minute=m.minutes=X1,m.second=m.seconds=e0,m.millisecond=m.milliseconds=_l,m.utcOffset=Uy,m.utc=Wy,m.local=Fy,m.parseZone=Hy,m.hasAlignedHourOffset=Ey,m.isDST=Iy,m.isLocal=Vy,m.isUtcOffset=Gy,m.isUtc=al,m.isUTC=al,m.zoneAbbr=n0,m.zoneName=s0,m.dates=Te("dates accessor is deprecated. Use date instead.",yl),m.months=Te("months accessor is deprecated. Use month instead",Gu),m.years=Te("years accessor is deprecated. Use year instead",Hu),m.zone=Te("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",jy),m.isDSTShifted=Te("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ay);function r0(e){return Q(e*1e3)}function a0(){return Q.apply(null,arguments).parseZone()}function vl(e){return e}var E=Ba.prototype;E.calendar=Vg,E.longDateFormat=zg,E.invalidDate=Qg,E.ordinal=Xg,E.preparse=vl,E.postformat=vl,E.relativeTime=tp,E.pastFuture=np,E.set=Ig,E.eras=N1,E.erasParse=R1,E.erasConvertYear=C1,E.erasAbbrRegex=F1,E.erasNameRegex=W1,E.erasNarrowRegex=H1,E.months=vp,E.monthsShort=wp,E.monthsParse=$p,E.monthsRegex=Mp,E.monthsShortRegex=bp,E.week=Yp,E.firstDayOfYear=Tp,E.firstDayOfWeek=xp,E.weekdays=Hp,E.weekdaysMin=Ip,E.weekdaysShort=Ep,E.weekdaysParse=Vp,E.weekdaysRegex=zp,E.weekdaysShortRegex=Zp,E.weekdaysMinRegex=Qp,E.isPM=Kp,E.meridiem=ty;function Nr(e,t,n,s){var r=Mt(),a=Xe().set(s,t);return r[n](a,e)}function wl(e,t,n){if(wt(e)&&(t=e,e=void 0),e=e||"",t!=null)return Nr(e,t,n,"month");var s,r=[];for(s=0;s<12;s++)r[s]=Nr(e,s,n,"month");return r}function yi(e,t,n,s){typeof e=="boolean"?(wt(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,wt(t)&&(n=t,t=void 0),t=t||"");var r=Mt(),a=e?r._week.dow:0,i,o=[];if(n!=null)return Nr(t,(n+a)%7,s,"day");for(i=0;i<7;i++)o[i]=Nr(t,(i+a)%7,s,"day");return o}function i0(e,t){return wl(e,t,"months")}function o0(e,t){return wl(e,t,"monthsShort")}function u0(e,t,n){return yi(e,t,n,"weekdays")}function l0(e,t,n){return yi(e,t,n,"weekdaysShort")}function d0(e,t,n){return yi(e,t,n,"weekdaysMin")}Vt("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(e){var t=e%10,n=R(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}}),y.lang=Te("moment.lang is deprecated. Use moment.locale instead.",Vt),y.langData=Te("moment.langData is deprecated. Use moment.localeData instead.",Mt);var Dt=Math.abs;function c0(){var e=this._data;return this._milliseconds=Dt(this._milliseconds),this._days=Dt(this._days),this._months=Dt(this._months),e.milliseconds=Dt(e.milliseconds),e.seconds=Dt(e.seconds),e.minutes=Dt(e.minutes),e.hours=Dt(e.hours),e.months=Dt(e.months),e.years=Dt(e.years),this}function kl(e,t,n,s){var r=Ae(t,n);return e._milliseconds+=s*r._milliseconds,e._days+=s*r._days,e._months+=s*r._months,e._bubble()}function h0(e,t){return kl(this,e,t,1)}function f0(e,t){return kl(this,e,t,-1)}function $l(e){return e<0?Math.floor(e):Math.ceil(e)}function m0(){var e=this._milliseconds,t=this._days,n=this._months,s=this._data,r,a,i,o,u;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=$l(_i(n)+t)*864e5,t=0,n=0),s.milliseconds=e%1e3,r=Re(e/1e3),s.seconds=r%60,a=Re(r/60),s.minutes=a%60,i=Re(a/60),s.hours=i%24,t+=Re(i/24),u=Re(Sl(t)),n+=u,t-=$l(_i(u)),o=Re(n/12),n%=12,s.days=t,s.months=n,s.years=o,this}function Sl(e){return e*4800/146097}function _i(e){return e*146097/4800}function g0(e){if(!this.isValid())return NaN;var t,n,s=this._milliseconds;if(e=Ne(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+s/864e5,n=this._months+Sl(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(_i(this._months)),e){case"week":return t/7+s/6048e5;case"day":return t+s/864e5;case"hour":return t*24+s/36e5;case"minute":return t*1440+s/6e4;case"second":return t*86400+s/1e3;case"millisecond":return Math.floor(t*864e5)+s;default:throw new Error("Unknown unit "+e)}}function Yt(e){return function(){return this.as(e)}}var bl=Yt("ms"),p0=Yt("s"),y0=Yt("m"),_0=Yt("h"),v0=Yt("d"),w0=Yt("w"),k0=Yt("M"),$0=Yt("Q"),S0=Yt("y"),b0=bl;function M0(){return Ae(this)}function D0(e){return e=Ne(e),this.isValid()?this[e+"s"]():NaN}function rn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Y0=rn("milliseconds"),O0=rn("seconds"),x0=rn("minutes"),T0=rn("hours"),N0=rn("days"),R0=rn("months"),C0=rn("years");function P0(){return Re(this.days()/7)}var Ot=Math.round,Cn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function L0(e,t,n,s,r){return r.relativeTime(t||1,!!n,e,s)}function U0(e,t,n,s){var r=Ae(e).abs(),a=Ot(r.as("s")),i=Ot(r.as("m")),o=Ot(r.as("h")),u=Ot(r.as("d")),l=Ot(r.as("M")),d=Ot(r.as("w")),h=Ot(r.as("y")),c=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||i<=1&&["m"]||i<n.m&&["mm",i]||o<=1&&["h"]||o<n.h&&["hh",o]||u<=1&&["d"]||u<n.d&&["dd",u];return n.w!=null&&(c=c||d<=1&&["w"]||d<n.w&&["ww",d]),c=c||l<=1&&["M"]||l<n.M&&["MM",l]||h<=1&&["y"]||["yy",h],c[2]=t,c[3]=+e>0,c[4]=s,L0.apply(null,c)}function j0(e){return e===void 0?Ot:typeof e=="function"?(Ot=e,!0):!1}function W0(e,t){return Cn[e]===void 0?!1:t===void 0?Cn[e]:(Cn[e]=t,e==="s"&&(Cn.ss=t-1),!0)}function F0(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,s=Cn,r,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(s=Object.assign({},Cn,t),t.s!=null&&t.ss==null&&(s.ss=t.s-1)),r=this.localeData(),a=U0(this,!n,s,r),n&&(a=r.pastFuture(+this,a)),r.postformat(a)}var vi=Math.abs;function Pn(e){return(e>0)-(e<0)||+e}function Rr(){if(!this.isValid())return this.localeData().invalidDate();var e=vi(this._milliseconds)/1e3,t=vi(this._days),n=vi(this._months),s,r,a,i,o=this.asSeconds(),u,l,d,h;return o?(s=Re(e/60),r=Re(s/60),e%=60,s%=60,a=Re(n/12),n%=12,i=e?e.toFixed(3).replace(/\.?0+$/,""):"",u=o<0?"-":"",l=Pn(this._months)!==Pn(o)?"-":"",d=Pn(this._days)!==Pn(o)?"-":"",h=Pn(this._milliseconds)!==Pn(o)?"-":"",u+"P"+(a?l+a+"Y":"")+(n?l+n+"M":"")+(t?d+t+"D":"")+(r||s||e?"T":"")+(r?h+r+"H":"")+(s?h+s+"M":"")+(e?h+i+"S":"")):"P0D"}var L=Mr.prototype;L.isValid=Ry,L.abs=c0,L.add=h0,L.subtract=f0,L.as=g0,L.asMilliseconds=bl,L.asSeconds=p0,L.asMinutes=y0,L.asHours=_0,L.asDays=v0,L.asWeeks=w0,L.asMonths=k0,L.asQuarters=$0,L.asYears=S0,L.valueOf=b0,L._bubble=m0,L.clone=M0,L.get=D0,L.milliseconds=Y0,L.seconds=O0,L.minutes=x0,L.hours=T0,L.days=N0,L.weeks=P0,L.months=R0,L.years=C0,L.humanize=F0,L.toISOString=Rr,L.toString=Rr,L.toJSON=Rr,L.locale=dl,L.localeData=hl,L.toIsoString=Te("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Rr),L.lang=cl,S("X",0,0,"unix"),S("x",0,0,"valueOf"),w("x",_r),w("X",ip),G("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)}),G("x",function(e,t,n){n._d=new Date(R(e))});//! moment.js
19
+ y.version="2.30.1",Hg(Q),y.fn=m,y.min=Oy,y.max=xy,y.now=Ty,y.utc=Xe,y.unix=r0,y.months=i0,y.isDate=as,y.locale=Vt,y.invalid=hr,y.duration=Ae,y.isMoment=Ee,y.weekdays=u0,y.parseZone=a0,y.localeData=Mt,y.isDuration=Dr,y.monthsShort=o0,y.weekdaysMin=d0,y.defineLocale=ii,y.updateLocale=ay,y.locales=iy,y.weekdaysShort=l0,y.normalizeUnits=Ne,y.relativeTimeRounding=j0,y.relativeTimeThreshold=W0,y.calendarFormat=t1,y.prototype=m,y.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"};const H0=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,E0=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,Ml=/(janv\.?|févr\.?|avr\.?|juil\.?|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,wi=[/^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],I0={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:Ml,monthsShortRegex:Ml,monthsStrictRegex:H0,monthsShortStrictRegex:E0,monthsParse:wi,longMonthsParse:wi,shortMonthsParse:wi,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:(e,t)=>{switch(t){case"D":return e+(e===1?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(e===1?"er":"e");case"w":case"W":return e+(e===1?"re":"e")}},week:{dow:1,doy:4}};y.locale("fr",I0);const Dl=new Y.Schema({user:{type:Y.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},crew:{type:Y.Schema.Types.ObjectId,ref:"Crew",required:!0,index:!0},permission:String,percent:Number});Dl.index({user:1});const ps=Y.model("UserCrew",Dl),A0=async(e,t)=>{await ps.updateOne({user:e},t,{upsert:!0})},V0=Object.freeze(Object.defineProperty({__proto__:null,updatePercent:async(e,t)=>{await A0(e,{$set:{percent:t}})}},Symbol.toStringTag,{value:"Module"})),G0=e=>ps.findOne({user:e}),q0=e=>ps.exists({user:e}),Yl=new Y.Schema({user:{type:Y.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},xpYesterday:{type:Number,default:0},berryYesterday:{type:Number,default:0},previousOrnament:{unlockedBadges:{type:[String],default:[]},unlockedTitles:{type:[String],default:[]},unlockedBackgrounds:{type:[String],default:[]}},previousCompletedQuest:{type:[String],default:[]},previousMessageSent:{type:Number,default:0}});Yl.index({user:1});const ki=Y.model("UserDailyReport",Yl),Ol=new Y.Schema({user:{type:Y.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},guess:{tries:Number,amount:Number,numberToGuess:Number}});Ol.index({user:1});const Cr=Y.model("UserGames",Ol),xl=async(e,t)=>{await Cr.updateOne({user:e},t,{upsert:!0})},B0=Object.freeze(Object.defineProperty({__proto__:null,resetGuessGame:async e=>{await xl(e,{$set:{guess:void 0}})},setGuessGame:async(e,t,n,s)=>{await xl(e,{$set:{guess:{amount:t,tries:n,numberToGuess:s}}})}},Symbol.toStringTag,{value:"Module"})),Ln={d1:"<:d1:1159542168738873455>",d2:"<:d2:1159542071049334814>",d3:"<:d3:1159542073914032191>",d4:"<:d4:1159542075512082543>",d5:"<:d5:1159542078179651614>",d6:"<:d6:1159542079458910229>",revolutionary:"<:revolutionnaire:648245785133056020>",pirate:"<:pirate:648245785053626368>",marine:"<:marine:648245784407441429>",berry:"<:berry:1153734056035504158>",xp:"<:xp:1084914564379975772>",success:"<:success:1186707379534954506>",hp:"<:hp:1257776163955277824>",paper:"📄",rock:"🪨",scissor:"✂️",pray:"<:Ryokugyu_pray:1147542990844334280>",gun:"<:fujigun:1050120413243506688>",promise:"<:Luffy_Promise:1027626431565529099>",love:"<:Lawve:1050916817801072730>",note:"<:imsusnote:1136952496456224778>",watching:"<:Carrot_Watching:1024736915922104360>",card:"<:carteDos:1168580012258103387>",cards:{spades:{1:"<:asdepique:1168560615170768967>",2:"<:2depique:1168559430955184259>",3:"<:3depique:1168559437548638248>",4:"<:4depique:1168559679354445934>",5:"<:5depique:1168559725504372796>",6:"<:6depique:1168559764528185394>",7:"<:7depique:1168559459392553061>",8:"<:8depique:1168559887870083162>",9:"<:9depique:1168559471392464988>",10:"<:10depique:1168559958435053598>",J:"<:valetdepique:1168560676202086523>",Q:"<:reinedepique:1168560621722284083>",K:"<:roidepique:1168560628189888634>"},diamonds:{1:"<:asdecarreau:1168560612742279308>",2:"<:2decarreau:1168559427788472330>",3:"<:3decarreau:1168559434138669236>",4:"<:4decarreau:1168559440774041621>",5:"<:5decarreau:1168559445308084256>",6:"<:6decarreau:1168559763462819940>",7:"<:7decarreau:1168559845872517172>",8:"<:8decarreau:1168559888989949994>",9:"<:9decarreau:1168559942215667804>",10:"<:10decarreau:1168559475481907230>",J:"<:valetdecarreau:1168560633634095234>",Q:"<:reinedecarreau:1168560618182291577>",K:"<:roidecarreau:1168560626185011281>"},hearts:{1:"<:asdecoeur:1168560613971214368>",2:"<:2decoeur:1168559428681859073>",3:"<:3decoeur:1168559435950592060>",4:"<:4decoeur:1168559442074284073>",5:"<:5decoeur:1168559723226865725>",6:"<:6decoeur:1168559452509708298>",7:"<:7decoeur:1168559457769365684>",8:"<:8decoeur:1168559463368757339>",9:"<:9decoeur:1168559938897989672>",10:"<:10decoeur:1168559477658751006>",J:"<:valetdecoeur:1168560635991298160>",Q:"<:reinedecoeur:1168560619855822940>",K:"<:roidecoeur:1168560678378950716>"},clubs:{1:"<:asdetrfle:1168560617444081834>",2:"<:2detrfle:1168559432242831512>",3:"<:3detrfle:1168559439440269403>",4:"<:4detrfle:1168559677936762982>",5:"<:5detrfle:1168559449540145153>",6:"<:6detrfle:1168559761260818594>",7:"<:7detrfle:1168559844748435549>",8:"<:8detrfle:1168559466334142575>",9:"<:9detrfle:1168559940953194576>",10:"<:10detrfle:1168559959802380288>",J:"<:valetdetrfle:1168560610531885137>",Q:"<:reinedetrfle:1168560623228026972>",K:"<:roidetrfle:1168560675543580712>"}},factions:{b_citizen_COMMON:"<:BasiqueOPFRbois:1175507882188484761>",b_citizen_RARE:"<:BasiqueOPFRargent:1175507880724668488>",b_citizen_EPIC:"<:BasiqueOPFRor:1175507883501289512>",b_citizen_LEGENDARY:"<:BasiqueOPFRplatine:1175507886714134548>",b_citizen_MYTHIC:"<:BasiqueOPFRultime:1175507889553670264>",b_marine_COMMON:"<:Marinebois:1175507936953512036>",b_marine_RARE:"<:Marineargent:1175508322351321178>",b_marine_EPIC:"<:Marineor:1175508300603863132>",b_marine_LEGENDARY:"<:Marineplatine:1175507940803879012>",b_marine_MYTHIC:"<:Marineultime:1175508279590395977>",b_revolutionary_COMMON:"<:RvoBois:1175507954779295810>",b_revolutionary_RARE:"<:RvoArgent:1175508199118483457>",b_revolutionary_EPIC:"<:RvoOr:1175508111885344819>",b_revolutionary_LEGENDARY:"<:RvoPlatine:1175507958378008756>",b_revolutionary_MYTHIC:"<:RvoUltime:1175508127815319612>",b_pirate_COMMON:"<:Piratebois:1175508259768115272>",b_pirate_RARE:"<:Pirateargent:1175507943987363941>",b_pirate_EPIC:"<:Pirateor:1175508240243621928>",b_pirate_LEGENDARY:"<:Pirateplatine:1175507949578358804>",b_pirate_MYTHIC:"<:Pirateultime:1175507951709061150>"},characteristics:{vitality:"<:vitality:1251861015277338675>",strength:"<:strength:1251860738595618838>",agility:"<:agility:1251860734145728596>",intelligence:"<:intelligence:1251860736943194144>",chance:"<:chance:1251860735827513425>",wisdom:"<:wisdom:1251861017231884378>"},equipment_adventurer_strap:"<:adventurer_strap:1253041086147068035>",equipment_adventurer_collar:"<:adventurer_collar:1253041084611690567>",equipment_adventurer_boots:"<:adventurer_boots:1253041083252867123>",equipment_adventurer_helmet:"<:Casque_cuir:1256965718432550953>",equipment_adventurer_weapon:"<:Dague_cuir:1256965714141515837>",equipment_adventurer_belt:"<:Ceinture_cuir:1256965593333108838>"},z0=[{id:"equipment_adventurer_strap",image:"adventurer_strap",name:(e=0)=>De.t("equipments.adventurer.strap.name",{count:e}),description:()=>De.t("equipments.adventurer.strap.description"),emojis:Ln.equipment_adventurer_strap,characteristics:{chance:[1,10]},level:50,type:"strap",panoply:"adventurer"},{id:"equipment_adventurer_collar",image:"adventurer_collar",name:(e=0)=>De.t("equipments.adventurer.collar.name",{count:e}),description:()=>De.t("equipments.adventurer.collar.description"),emojis:Ln.equipment_adventurer_collar,characteristics:{wisdom:[1,10]},level:50,type:"collar",panoply:"adventurer"},{id:"equipment_adventurer_boots",image:"adventurer_boots",name:(e=0)=>De.t("equipments.adventurer.boots.name",{count:e}),description:()=>De.t("equipments.adventurer.boots.description"),emojis:Ln.equipment_adventurer_boots,characteristics:{agility:[1,10]},level:50,type:"boots",panoply:"adventurer"},{id:"equipment_adventurer_helmet",image:"adventurer_helmet",name:(e=0)=>De.t("equipments.adventurer.helmet.name",{count:e}),description:()=>De.t("equipments.adventurer.helmet.description"),emojis:Ln.equipment_adventurer_helmet,characteristics:{intelligence:[1,10]},level:50,type:"helmet",panoply:"adventurer"},{id:"equipment_adventurer_weapon",image:"adventurer_weapon",name:(e=0)=>De.t("equipments.adventurer.weapon.name",{count:e}),description:()=>De.t("equipments.adventurer.weapon.description"),emojis:Ln.equipment_adventurer_weapon,characteristics:{strength:[1,10]},level:50,type:"weapon",panoply:"adventurer"},{id:"equipment_adventurer_belt",image:"adventurer_belt",name:(e=0)=>De.t("equipments.adventurer.belt.name",{count:e}),description:()=>De.t("equipments.adventurer.belt.description"),emojis:Ln.equipment_adventurer_belt,characteristics:{vitality:[1,10]},level:50,type:"belt",panoply:"adventurer"}],Z0={vitality:5,agility:5,strength:5,intelligence:5,chance:5,wisdom:5},Q0={vitality:10,agility:10,strength:10,intelligence:10,chance:10,wisdom:10},J0={id:"adventurer",name:"Panoplie de l'aventurier",equipments:z0,fullBonus:Q0,fullBonusStr:"+10 +vitality+strength+chance+agility+intelligence+wisdom",halfBonus:Z0,halfBonusStr:"+5 +vitality+strength+chance+agility+intelligence+wisdom"},K0=(e,t,n=Math.random)=>Math.floor(n()*(t-e)+e),X0=e=>{let t=e;const n=2147483648,s=1103515245,r=12345;return()=>(t=(s*t+r)%n,t/(n-1))},e_=(e,t)=>[...e].sort((n,s)=>t(n)<t(s)?-1:t(n)>t(s)?1:0);//! moment.js
20
20
  //! version : 2.30.1
21
21
  //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
22
22
  //! license : MIT
23
23
  //! momentjs.com
24
- var Yl;function _(){return Yl.apply(null,arguments)}function e_(e){Yl=e}function Ve(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function an(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function I(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ki(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(I(e,t))return!1;return!0}function ve(e){return e===void 0}function xt(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function ps(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Ol(e,t){var n=[],s,r=e.length;for(s=0;s<r;++s)n.push(t(e[s],s));return n}function qt(e,t){for(var n in t)I(t,n)&&(e[n]=t[n]);return I(t,"toString")&&(e.toString=t.toString),I(t,"valueOf")&&(e.valueOf=t.valueOf),e}function st(e,t,n,s){return td(e,t,n,s,!0).utc()}function t_(){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 T(e){return e._pf==null&&(e._pf=t_()),e._pf}var $i;Array.prototype.some?$i=Array.prototype.some:$i=function(e){var t=Object(this),n=t.length>>>0,s;for(s=0;s<n;s++)if(s in t&&e.call(this,t[s],s,t))return!0;return!1};function Si(e){var t=null,n=!1,s=e._d&&!isNaN(e._d.getTime());if(s&&(t=T(e),n=$i.call(t.parsedDateParts,function(r){return r!=null}),s=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(s=s&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=s;else return s;return e._isValid}function Cr(e){var t=st(NaN);return e!=null?qt(T(t),e):T(t).userInvalidated=!0,t}var xl=_.momentProperties=[],bi=!1;function Mi(e,t){var n,s,r,a=xl.length;if(ve(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),ve(t._i)||(e._i=t._i),ve(t._f)||(e._f=t._f),ve(t._l)||(e._l=t._l),ve(t._strict)||(e._strict=t._strict),ve(t._tzm)||(e._tzm=t._tzm),ve(t._isUTC)||(e._isUTC=t._isUTC),ve(t._offset)||(e._offset=t._offset),ve(t._pf)||(e._pf=T(t)),ve(t._locale)||(e._locale=t._locale),a>0)for(n=0;n<a;n++)s=xl[n],r=t[s],ve(r)||(e[s]=r);return e}function ys(e){Mi(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),bi===!1&&(bi=!0,_.updateOffset(this),bi=!1)}function Ge(e){return e instanceof ys||e!=null&&e._isAMomentObject!=null}function Tl(e){_.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function Pe(e,t){var n=!0;return qt(function(){if(_.deprecationHandler!=null&&_.deprecationHandler(null,e),n){var s=[],r,a,i,o=arguments.length;for(a=0;a<o;a++){if(r="",typeof arguments[a]=="object"){r+=`
25
- [`+a+"] ";for(i in arguments[0])I(arguments[0],i)&&(r+=i+": "+arguments[0][i]+", ");r=r.slice(0,-2)}else r=arguments[a];s.push(r)}Tl(e+`
24
+ var Tl;function _(){return Tl.apply(null,arguments)}function t_(e){Tl=e}function Ve(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function an(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function I(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function $i(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(I(e,t))return!1;return!0}function ve(e){return e===void 0}function xt(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function ys(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Nl(e,t){var n=[],s,r=e.length;for(s=0;s<r;++s)n.push(t(e[s],s));return n}function qt(e,t){for(var n in t)I(t,n)&&(e[n]=t[n]);return I(t,"toString")&&(e.toString=t.toString),I(t,"valueOf")&&(e.valueOf=t.valueOf),e}function st(e,t,n,s){return rd(e,t,n,s,!0).utc()}function n_(){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 T(e){return e._pf==null&&(e._pf=n_()),e._pf}var Si;Array.prototype.some?Si=Array.prototype.some:Si=function(e){var t=Object(this),n=t.length>>>0,s;for(s=0;s<n;s++)if(s in t&&e.call(this,t[s],s,t))return!0;return!1};function bi(e){var t=null,n=!1,s=e._d&&!isNaN(e._d.getTime());if(s&&(t=T(e),n=Si.call(t.parsedDateParts,function(r){return r!=null}),s=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(s=s&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=s;else return s;return e._isValid}function Pr(e){var t=st(NaN);return e!=null?qt(T(t),e):T(t).userInvalidated=!0,t}var Rl=_.momentProperties=[],Mi=!1;function Di(e,t){var n,s,r,a=Rl.length;if(ve(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),ve(t._i)||(e._i=t._i),ve(t._f)||(e._f=t._f),ve(t._l)||(e._l=t._l),ve(t._strict)||(e._strict=t._strict),ve(t._tzm)||(e._tzm=t._tzm),ve(t._isUTC)||(e._isUTC=t._isUTC),ve(t._offset)||(e._offset=t._offset),ve(t._pf)||(e._pf=T(t)),ve(t._locale)||(e._locale=t._locale),a>0)for(n=0;n<a;n++)s=Rl[n],r=t[s],ve(r)||(e[s]=r);return e}function _s(e){Di(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Mi===!1&&(Mi=!0,_.updateOffset(this),Mi=!1)}function Ge(e){return e instanceof _s||e!=null&&e._isAMomentObject!=null}function Cl(e){_.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function Ce(e,t){var n=!0;return qt(function(){if(_.deprecationHandler!=null&&_.deprecationHandler(null,e),n){var s=[],r,a,i,o=arguments.length;for(a=0;a<o;a++){if(r="",typeof arguments[a]=="object"){r+=`
25
+ [`+a+"] ";for(i in arguments[0])I(arguments[0],i)&&(r+=i+": "+arguments[0][i]+", ");r=r.slice(0,-2)}else r=arguments[a];s.push(r)}Cl(e+`
26
26
  Arguments: `+Array.prototype.slice.call(s).join("")+`
27
- `+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var Nl={};function Rl(e,t){_.deprecationHandler!=null&&_.deprecationHandler(e,t),Nl[e]||(Tl(t),Nl[e]=!0)}_.suppressDeprecationWarnings=!1,_.deprecationHandler=null;function rt(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function n_(e){var t,n;for(n in e)I(e,n)&&(t=e[n],rt(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Di(e,t){var n=qt({},e),s;for(s in t)I(t,s)&&(an(e[s])&&an(t[s])?(n[s]={},qt(n[s],e[s]),qt(n[s],t[s])):t[s]!=null?n[s]=t[s]:delete n[s]);for(s in e)I(e,s)&&!I(t,s)&&an(e[s])&&(n[s]=qt({},n[s]));return n}function Yi(e){e!=null&&this.set(e)}var Oi;Object.keys?Oi=Object.keys:Oi=function(e){var t,n=[];for(t in e)I(e,t)&&n.push(t);return n};var s_={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function r_(e,t,n){var s=this._calendar[e]||this._calendar.sameElse;return rt(s)?s.call(t,n):s}function at(e,t,n){var s=""+Math.abs(e),r=t-s.length,a=e>=0;return(a?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+s}var xi=/(\[[^\[]*\])|(\\)?([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,Lr=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ti={},Cn={};function b(e,t,n,s){var r=s;typeof s=="string"&&(r=function(){return this[s]()}),e&&(Cn[e]=r),t&&(Cn[t[0]]=function(){return at(r.apply(this,arguments),t[1],t[2])}),n&&(Cn[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function a_(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function i_(e){var t=e.match(xi),n,s;for(n=0,s=t.length;n<s;n++)Cn[t[n]]?t[n]=Cn[t[n]]:t[n]=a_(t[n]);return function(r){var a="",i;for(i=0;i<s;i++)a+=rt(t[i])?t[i].call(r,e):t[i];return a}}function Ur(e,t){return e.isValid()?(t=Pl(t,e.localeData()),Ti[t]=Ti[t]||i_(t),Ti[t](e)):e.localeData().invalidDate()}function Pl(e,t){var n=5;function s(r){return t.longDateFormat(r)||r}for(Lr.lastIndex=0;n>=0&&Lr.test(e);)e=e.replace(Lr,s),Lr.lastIndex=0,n-=1;return e}var o_={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 u_(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(xi).map(function(s){return s==="MMMM"||s==="MM"||s==="DD"||s==="dddd"?s.slice(1):s}).join(""),this._longDateFormat[e])}var l_="Invalid date";function d_(){return this._invalidDate}var c_="%d",h_=/\d{1,2}/;function f_(e){return this._ordinal.replace("%d",e)}var m_={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 g_(e,t,n,s){var r=this._relativeTime[n];return rt(r)?r(e,t,n,s):r.replace(/%d/i,e)}function p_(e,t){var n=this._relativeTime[e>0?"future":"past"];return rt(n)?n(t):n.replace(/%s/i,t)}var Cl={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(e){return typeof e=="string"?Cl[e]||Cl[e.toLowerCase()]:void 0}function Ni(e){var t={},n,s;for(s in e)I(e,s)&&(n=Ce(s),n&&(t[n]=e[s]));return t}var y_={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 __(e){var t=[],n;for(n in e)I(e,n)&&t.push({unit:n,priority:y_[n]});return t.sort(function(s,r){return s.priority-r.priority}),t}var Ll=/\d/,Se=/\d\d/,Ul=/\d{3}/,Ri=/\d{4}/,jr=/[+-]?\d{6}/,J=/\d\d?/,jl=/\d\d\d\d?/,Wl=/\d\d\d\d\d\d?/,Wr=/\d{1,3}/,Pi=/\d{1,4}/,Fr=/[+-]?\d{1,6}/,Ln=/\d+/,Hr=/[+-]?\d+/,v_=/Z|[+-]\d\d:?\d\d/gi,Er=/Z|[+-]\d\d(?::?\d\d)?/gi,w_=/[+-]?\d+(\.\d{1,3})?/,_s=/[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,Un=/^[1-9]\d?/,Ci=/^([1-9]\d|\d)/,Ir;Ir={};function k(e,t,n){Ir[e]=rt(t)?t:function(s,r){return s&&n?n:t}}function k_(e,t){return I(Ir,e)?Ir[e](t._strict,t._locale):new RegExp($_(e))}function $_(e){return Tt(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,s,r,a){return n||s||r||a}))}function Tt(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Le(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function P(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Le(t)),n}var Li={};function q(e,t){var n,s=t,r;for(typeof e=="string"&&(e=[e]),xt(t)&&(s=function(a,i){i[t]=P(a)}),r=e.length,n=0;n<r;n++)Li[e[n]]=s}function vs(e,t){q(e,function(n,s,r,a){r._w=r._w||{},t(n,r._w,r,a)})}function S_(e,t,n){t!=null&&I(Li,e)&&Li[e](t,n._a,n,e)}function Ar(e){return e%4===0&&e%100!==0||e%400===0}var he=0,Nt=1,it=2,oe=3,qe=4,Rt=5,on=6,b_=7,M_=8;b("Y",0,0,function(){var e=this.year();return e<=9999?at(e,4):"+"+e}),b(0,["YY",2],0,function(){return this.year()%100}),b(0,["YYYY",4],0,"year"),b(0,["YYYYY",5],0,"year"),b(0,["YYYYYY",6,!0],0,"year"),k("Y",Hr),k("YY",J,Se),k("YYYY",Pi,Ri),k("YYYYY",Fr,jr),k("YYYYYY",Fr,jr),q(["YYYYY","YYYYYY"],he),q("YYYY",function(e,t){t[he]=e.length===2?_.parseTwoDigitYear(e):P(e)}),q("YY",function(e,t){t[he]=_.parseTwoDigitYear(e)}),q("Y",function(e,t){t[he]=parseInt(e,10)});function ws(e){return Ar(e)?366:365}_.parseTwoDigitYear=function(e){return P(e)+(P(e)>68?1900:2e3)};var Fl=jn("FullYear",!0);function D_(){return Ar(this.year())}function jn(e,t){return function(n){return n!=null?(Hl(this,e,n),_.updateOffset(this,t),this):ks(this,e)}}function ks(e,t){if(!e.isValid())return NaN;var n=e._d,s=e._isUTC;switch(t){case"Milliseconds":return s?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return s?n.getUTCSeconds():n.getSeconds();case"Minutes":return s?n.getUTCMinutes():n.getMinutes();case"Hours":return s?n.getUTCHours():n.getHours();case"Date":return s?n.getUTCDate():n.getDate();case"Day":return s?n.getUTCDay():n.getDay();case"Month":return s?n.getUTCMonth():n.getMonth();case"FullYear":return s?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Hl(e,t,n){var s,r,a,i,o;if(!(!e.isValid()||isNaN(n))){switch(s=e._d,r=e._isUTC,t){case"Milliseconds":return void(r?s.setUTCMilliseconds(n):s.setMilliseconds(n));case"Seconds":return void(r?s.setUTCSeconds(n):s.setSeconds(n));case"Minutes":return void(r?s.setUTCMinutes(n):s.setMinutes(n));case"Hours":return void(r?s.setUTCHours(n):s.setHours(n));case"Date":return void(r?s.setUTCDate(n):s.setDate(n));case"FullYear":break;default:return}a=n,i=e.month(),o=e.date(),o=o===29&&i===1&&!Ar(a)?28:o,r?s.setUTCFullYear(a,i,o):s.setFullYear(a,i,o)}}function Y_(e){return e=Ce(e),rt(this[e])?this[e]():this}function O_(e,t){if(typeof e=="object"){e=Ni(e);var n=__(e),s,r=n.length;for(s=0;s<r;s++)this[n[s].unit](e[n[s].unit])}else if(e=Ce(e),rt(this[e]))return this[e](t);return this}function x_(e,t){return(e%t+t)%t}var re;Array.prototype.indexOf?re=Array.prototype.indexOf:re=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function Ui(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=x_(t,12);return e+=(t-n)/12,n===1?Ar(e)?29:28:31-n%7%2}b("M",["MM",2],"Mo",function(){return this.month()+1}),b("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),b("MMMM",0,0,function(e){return this.localeData().months(this,e)}),k("M",J,Un),k("MM",J,Se),k("MMM",function(e,t){return t.monthsShortRegex(e)}),k("MMMM",function(e,t){return t.monthsRegex(e)}),q(["M","MM"],function(e,t){t[Nt]=P(e)-1}),q(["MMM","MMMM"],function(e,t,n,s){var r=n._locale.monthsParse(e,s,n._strict);r!=null?t[Nt]=r:T(n).invalidMonth=e});var T_="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),El="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Il=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,N_=_s,R_=_s;function P_(e,t){return e?Ve(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Il).test(t)?"format":"standalone"][e.month()]:Ve(this._months)?this._months:this._months.standalone}function C_(e,t){return e?Ve(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Il.test(t)?"format":"standalone"][e.month()]:Ve(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function L_(e,t,n){var s,r,a,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)a=st([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(a,"").toLocaleLowerCase();return n?t==="MMM"?(r=re.call(this._shortMonthsParse,i),r!==-1?r:null):(r=re.call(this._longMonthsParse,i),r!==-1?r:null):t==="MMM"?(r=re.call(this._shortMonthsParse,i),r!==-1?r:(r=re.call(this._longMonthsParse,i),r!==-1?r:null)):(r=re.call(this._longMonthsParse,i),r!==-1?r:(r=re.call(this._shortMonthsParse,i),r!==-1?r:null))}function U_(e,t,n){var s,r,a;if(this._monthsParseExact)return L_.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++)if(r=st([2e3,s]),n&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),!n&&!this._monthsParse[s]&&(a="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[s]=new RegExp(a.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[s].test(e)||n&&t==="MMM"&&this._shortMonthsParse[s].test(e)||!n&&this._monthsParse[s].test(e))return s}function Al(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=P(t);else if(t=e.localeData().monthsParse(t),!xt(t))return e}var n=t,s=e.date();return s=s<29?s:Math.min(s,Ui(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,s):e._d.setMonth(n,s),e}function Vl(e){return e!=null?(Al(this,e),_.updateOffset(this,!0),this):ks(this,"Month")}function j_(){return Ui(this.year(),this.month())}function W_(e){return this._monthsParseExact?(I(this,"_monthsRegex")||Gl.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(I(this,"_monthsShortRegex")||(this._monthsShortRegex=N_),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function F_(e){return this._monthsParseExact?(I(this,"_monthsRegex")||Gl.call(this),e?this._monthsStrictRegex:this._monthsRegex):(I(this,"_monthsRegex")||(this._monthsRegex=R_),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Gl(){function e(u,l){return l.length-u.length}var t=[],n=[],s=[],r,a,i,o;for(r=0;r<12;r++)a=st([2e3,r]),i=Tt(this.monthsShort(a,"")),o=Tt(this.months(a,"")),t.push(i),n.push(o),s.push(o),s.push(i);t.sort(e),n.sort(e),s.sort(e),this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function H_(e,t,n,s,r,a,i){var o;return e<100&&e>=0?(o=new Date(e+400,t,n,s,r,a,i),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,s,r,a,i),o}function $s(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Vr(e,t,n){var s=7+t-n,r=(7+$s(e,0,s).getUTCDay()-t)%7;return-r+s-1}function ql(e,t,n,s,r){var a=(7+n-s)%7,i=Vr(e,s,r),o=1+7*(t-1)+a+i,u,l;return o<=0?(u=e-1,l=ws(u)+o):o>ws(e)?(u=e+1,l=o-ws(e)):(u=e,l=o),{year:u,dayOfYear:l}}function Ss(e,t,n){var s=Vr(e.year(),t,n),r=Math.floor((e.dayOfYear()-s-1)/7)+1,a,i;return r<1?(i=e.year()-1,a=r+Pt(i,t,n)):r>Pt(e.year(),t,n)?(a=r-Pt(e.year(),t,n),i=e.year()+1):(i=e.year(),a=r),{week:a,year:i}}function Pt(e,t,n){var s=Vr(e,t,n),r=Vr(e+1,t,n);return(ws(e)-s+r)/7}b("w",["ww",2],"wo","week"),b("W",["WW",2],"Wo","isoWeek"),k("w",J,Un),k("ww",J,Se),k("W",J,Un),k("WW",J,Se),vs(["w","ww","W","WW"],function(e,t,n,s){t[s.substr(0,1)]=P(e)});function E_(e){return Ss(e,this._week.dow,this._week.doy).week}var I_={dow:0,doy:6};function A_(){return this._week.dow}function V_(){return this._week.doy}function G_(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function q_(e){var t=Ss(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}b("d",0,"do","day"),b("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),b("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),b("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),b("e",0,0,"weekday"),b("E",0,0,"isoWeekday"),k("d",J),k("e",J),k("E",J),k("dd",function(e,t){return t.weekdaysMinRegex(e)}),k("ddd",function(e,t){return t.weekdaysShortRegex(e)}),k("dddd",function(e,t){return t.weekdaysRegex(e)}),vs(["dd","ddd","dddd"],function(e,t,n,s){var r=n._locale.weekdaysParse(e,s,n._strict);r!=null?t.d=r:T(n).invalidWeekday=e}),vs(["d","e","E"],function(e,t,n,s){t[s]=P(e)});function B_(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function z_(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function ji(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Z_="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Bl="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Q_="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),J_=_s,K_=_s,X_=_s;function ev(e,t){var n=Ve(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?ji(n,this._week.dow):e?n[e.day()]:n}function tv(e){return e===!0?ji(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function nv(e){return e===!0?ji(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function sv(e,t,n){var s,r,a,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)a=st([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(a,"").toLocaleLowerCase();return n?t==="dddd"?(r=re.call(this._weekdaysParse,i),r!==-1?r:null):t==="ddd"?(r=re.call(this._shortWeekdaysParse,i),r!==-1?r:null):(r=re.call(this._minWeekdaysParse,i),r!==-1?r:null):t==="dddd"?(r=re.call(this._weekdaysParse,i),r!==-1||(r=re.call(this._shortWeekdaysParse,i),r!==-1)?r:(r=re.call(this._minWeekdaysParse,i),r!==-1?r:null)):t==="ddd"?(r=re.call(this._shortWeekdaysParse,i),r!==-1||(r=re.call(this._weekdaysParse,i),r!==-1)?r:(r=re.call(this._minWeekdaysParse,i),r!==-1?r:null)):(r=re.call(this._minWeekdaysParse,i),r!==-1||(r=re.call(this._weekdaysParse,i),r!==-1)?r:(r=re.call(this._shortWeekdaysParse,i),r!==-1?r:null))}function rv(e,t,n){var s,r,a;if(this._weekdaysParseExact)return sv.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++)if(r=st([2e3,1]).day(s),n&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(a="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[s]=new RegExp(a.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[s].test(e)||n&&t==="ddd"&&this._shortWeekdaysParse[s].test(e)||n&&t==="dd"&&this._minWeekdaysParse[s].test(e)||!n&&this._weekdaysParse[s].test(e))return s}function av(e){if(!this.isValid())return e!=null?this:NaN;var t=ks(this,"Day");return e!=null?(e=B_(e,this.localeData()),this.add(e-t,"d")):t}function iv(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function ov(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=z_(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function uv(e){return this._weekdaysParseExact?(I(this,"_weekdaysRegex")||Wi.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(I(this,"_weekdaysRegex")||(this._weekdaysRegex=J_),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function lv(e){return this._weekdaysParseExact?(I(this,"_weekdaysRegex")||Wi.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(I(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=K_),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function dv(e){return this._weekdaysParseExact?(I(this,"_weekdaysRegex")||Wi.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(I(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=X_),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Wi(){function e(d,h){return h.length-d.length}var t=[],n=[],s=[],r=[],a,i,o,u,l;for(a=0;a<7;a++)i=st([2e3,1]).day(a),o=Tt(this.weekdaysMin(i,"")),u=Tt(this.weekdaysShort(i,"")),l=Tt(this.weekdays(i,"")),t.push(o),n.push(u),s.push(l),r.push(o),r.push(u),r.push(l);t.sort(e),n.sort(e),s.sort(e),r.sort(e),this._weekdaysRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Fi(){return this.hours()%12||12}function cv(){return this.hours()||24}b("H",["HH",2],0,"hour"),b("h",["hh",2],0,Fi),b("k",["kk",2],0,cv),b("hmm",0,0,function(){return""+Fi.apply(this)+at(this.minutes(),2)}),b("hmmss",0,0,function(){return""+Fi.apply(this)+at(this.minutes(),2)+at(this.seconds(),2)}),b("Hmm",0,0,function(){return""+this.hours()+at(this.minutes(),2)}),b("Hmmss",0,0,function(){return""+this.hours()+at(this.minutes(),2)+at(this.seconds(),2)});function zl(e,t){b(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}zl("a",!0),zl("A",!1);function Zl(e,t){return t._meridiemParse}k("a",Zl),k("A",Zl),k("H",J,Ci),k("h",J,Un),k("k",J,Un),k("HH",J,Se),k("hh",J,Se),k("kk",J,Se),k("hmm",jl),k("hmmss",Wl),k("Hmm",jl),k("Hmmss",Wl),q(["H","HH"],oe),q(["k","kk"],function(e,t,n){var s=P(e);t[oe]=s===24?0:s}),q(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),q(["h","hh"],function(e,t,n){t[oe]=P(e),T(n).bigHour=!0}),q("hmm",function(e,t,n){var s=e.length-2;t[oe]=P(e.substr(0,s)),t[qe]=P(e.substr(s)),T(n).bigHour=!0}),q("hmmss",function(e,t,n){var s=e.length-4,r=e.length-2;t[oe]=P(e.substr(0,s)),t[qe]=P(e.substr(s,2)),t[Rt]=P(e.substr(r)),T(n).bigHour=!0}),q("Hmm",function(e,t,n){var s=e.length-2;t[oe]=P(e.substr(0,s)),t[qe]=P(e.substr(s))}),q("Hmmss",function(e,t,n){var s=e.length-4,r=e.length-2;t[oe]=P(e.substr(0,s)),t[qe]=P(e.substr(s,2)),t[Rt]=P(e.substr(r))});function hv(e){return(e+"").toLowerCase().charAt(0)==="p"}var fv=/[ap]\.?m?\.?/i,mv=jn("Hours",!0);function gv(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var Ql={calendar:s_,longDateFormat:o_,invalidDate:l_,ordinal:c_,dayOfMonthOrdinalParse:h_,relativeTime:m_,months:T_,monthsShort:El,week:I_,weekdays:Z_,weekdaysMin:Q_,weekdaysShort:Bl,meridiemParse:fv},te={},bs={},Ms;function pv(e,t){var n,s=Math.min(e.length,t.length);for(n=0;n<s;n+=1)if(e[n]!==t[n])return n;return s}function Jl(e){return e&&e.toLowerCase().replace("_","-")}function yv(e){for(var t=0,n,s,r,a;t<e.length;){for(a=Jl(e[t]).split("-"),n=a.length,s=Jl(e[t+1]),s=s?s.split("-"):null;n>0;){if(r=Gr(a.slice(0,n).join("-")),r)return r;if(s&&s.length>=n&&pv(a,s)>=n-1)break;n--}t++}return Ms}function _v(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Gr(e){var t=null,n;if(te[e]===void 0&&typeof module<"u"&&module&&module.exports&&_v(e))try{t=Ms._abbr,n=require,n("./locale/"+e),Bt(t)}catch{te[e]=null}return te[e]}function Bt(e,t){var n;return e&&(ve(t)?n=Ct(e):n=Hi(e,t),n?Ms=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ms._abbr}function Hi(e,t){if(t!==null){var n,s=Ql;if(t.abbr=e,te[e]!=null)Rl("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."),s=te[e]._config;else if(t.parentLocale!=null)if(te[t.parentLocale]!=null)s=te[t.parentLocale]._config;else if(n=Gr(t.parentLocale),n!=null)s=n._config;else return bs[t.parentLocale]||(bs[t.parentLocale]=[]),bs[t.parentLocale].push({name:e,config:t}),null;return te[e]=new Yi(Di(s,t)),bs[e]&&bs[e].forEach(function(r){Hi(r.name,r.config)}),Bt(e),te[e]}else return delete te[e],null}function vv(e,t){if(t!=null){var n,s,r=Ql;te[e]!=null&&te[e].parentLocale!=null?te[e].set(Di(te[e]._config,t)):(s=Gr(e),s!=null&&(r=s._config),t=Di(r,t),s==null&&(t.abbr=e),n=new Yi(t),n.parentLocale=te[e],te[e]=n),Bt(e)}else te[e]!=null&&(te[e].parentLocale!=null?(te[e]=te[e].parentLocale,e===Bt()&&Bt(e)):te[e]!=null&&delete te[e]);return te[e]}function Ct(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ms;if(!Ve(e)){if(t=Gr(e),t)return t;e=[e]}return yv(e)}function wv(){return Oi(te)}function Ei(e){var t,n=e._a;return n&&T(e).overflow===-2&&(t=n[Nt]<0||n[Nt]>11?Nt:n[it]<1||n[it]>Ui(n[he],n[Nt])?it:n[oe]<0||n[oe]>24||n[oe]===24&&(n[qe]!==0||n[Rt]!==0||n[on]!==0)?oe:n[qe]<0||n[qe]>59?qe:n[Rt]<0||n[Rt]>59?Rt:n[on]<0||n[on]>999?on:-1,T(e)._overflowDayOfYear&&(t<he||t>it)&&(t=it),T(e)._overflowWeeks&&t===-1&&(t=b_),T(e)._overflowWeekday&&t===-1&&(t=M_),T(e).overflow=t),e}var kv=/^\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)?)?$/,$v=/^\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)?)?$/,Sv=/Z|[+-]\d\d(?::?\d\d)?/,qr=[["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]],Ii=[["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/]],bv=/^\/?Date\((-?\d+)/i,Mv=/^(?:(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}))$/,Dv={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 Kl(e){var t,n,s=e._i,r=kv.exec(s)||$v.exec(s),a,i,o,u,l=qr.length,d=Ii.length;if(r){for(T(e).iso=!0,t=0,n=l;t<n;t++)if(qr[t][1].exec(r[1])){i=qr[t][0],a=qr[t][2]!==!1;break}if(i==null){e._isValid=!1;return}if(r[3]){for(t=0,n=d;t<n;t++)if(Ii[t][1].exec(r[3])){o=(r[2]||" ")+Ii[t][0];break}if(o==null){e._isValid=!1;return}}if(!a&&o!=null){e._isValid=!1;return}if(r[4])if(Sv.exec(r[4]))u="Z";else{e._isValid=!1;return}e._f=i+(o||"")+(u||""),Vi(e)}else e._isValid=!1}function Yv(e,t,n,s,r,a){var i=[Ov(e),El.indexOf(t),parseInt(n,10),parseInt(s,10),parseInt(r,10)];return a&&i.push(parseInt(a,10)),i}function Ov(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function xv(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Tv(e,t,n){if(e){var s=Bl.indexOf(e),r=new Date(t[0],t[1],t[2]).getDay();if(s!==r)return T(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function Nv(e,t,n){if(e)return Dv[e];if(t)return 0;var s=parseInt(n,10),r=s%100,a=(s-r)/100;return a*60+r}function Xl(e){var t=Mv.exec(xv(e._i)),n;if(t){if(n=Yv(t[4],t[3],t[2],t[5],t[6],t[7]),!Tv(t[1],n,e))return;e._a=n,e._tzm=Nv(t[8],t[9],t[10]),e._d=$s.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),T(e).rfc2822=!0}else e._isValid=!1}function Rv(e){var t=bv.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Kl(e),e._isValid===!1)delete e._isValid;else return;if(Xl(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:_.createFromInputFallback(e)}_.createFromInputFallback=Pe("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(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function Wn(e,t,n){return e??t??n}function Pv(e){var t=new Date(_.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Ai(e){var t,n,s=[],r,a,i;if(!e._d){for(r=Pv(e),e._w&&e._a[it]==null&&e._a[Nt]==null&&Cv(e),e._dayOfYear!=null&&(i=Wn(e._a[he],r[he]),(e._dayOfYear>ws(i)||e._dayOfYear===0)&&(T(e)._overflowDayOfYear=!0),n=$s(i,0,e._dayOfYear),e._a[Nt]=n.getUTCMonth(),e._a[it]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[oe]===24&&e._a[qe]===0&&e._a[Rt]===0&&e._a[on]===0&&(e._nextDay=!0,e._a[oe]=0),e._d=(e._useUTC?$s:H_).apply(null,s),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[oe]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(T(e).weekdayMismatch=!0)}}function Cv(e){var t,n,s,r,a,i,o,u,l;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,i=4,n=Wn(t.GG,e._a[he],Ss(K(),1,4).year),s=Wn(t.W,1),r=Wn(t.E,1),(r<1||r>7)&&(u=!0)):(a=e._locale._week.dow,i=e._locale._week.doy,l=Ss(K(),a,i),n=Wn(t.gg,e._a[he],l.year),s=Wn(t.w,l.week),t.d!=null?(r=t.d,(r<0||r>6)&&(u=!0)):t.e!=null?(r=t.e+a,(t.e<0||t.e>6)&&(u=!0)):r=a),s<1||s>Pt(n,a,i)?T(e)._overflowWeeks=!0:u!=null?T(e)._overflowWeekday=!0:(o=ql(n,s,r,a,i),e._a[he]=o.year,e._dayOfYear=o.dayOfYear)}_.ISO_8601=function(){},_.RFC_2822=function(){};function Vi(e){if(e._f===_.ISO_8601){Kl(e);return}if(e._f===_.RFC_2822){Xl(e);return}e._a=[],T(e).empty=!0;var t=""+e._i,n,s,r,a,i,o=t.length,u=0,l,d;for(r=Pl(e._f,e._locale).match(xi)||[],d=r.length,n=0;n<d;n++)a=r[n],s=(t.match(k_(a,e))||[])[0],s&&(i=t.substr(0,t.indexOf(s)),i.length>0&&T(e).unusedInput.push(i),t=t.slice(t.indexOf(s)+s.length),u+=s.length),Cn[a]?(s?T(e).empty=!1:T(e).unusedTokens.push(a),S_(a,s,e)):e._strict&&!s&&T(e).unusedTokens.push(a);T(e).charsLeftOver=o-u,t.length>0&&T(e).unusedInput.push(t),e._a[oe]<=12&&T(e).bigHour===!0&&e._a[oe]>0&&(T(e).bigHour=void 0),T(e).parsedDateParts=e._a.slice(0),T(e).meridiem=e._meridiem,e._a[oe]=Lv(e._locale,e._a[oe],e._meridiem),l=T(e).era,l!==null&&(e._a[he]=e._locale.erasConvertYear(l,e._a[he])),Ai(e),Ei(e)}function Lv(e,t,n){var s;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(s=e.isPM(n),s&&t<12&&(t+=12),!s&&t===12&&(t=0)),t)}function Uv(e){var t,n,s,r,a,i,o=!1,u=e._f.length;if(u===0){T(e).invalidFormat=!0,e._d=new Date(NaN);return}for(r=0;r<u;r++)a=0,i=!1,t=Mi({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[r],Vi(t),Si(t)&&(i=!0),a+=T(t).charsLeftOver,a+=T(t).unusedTokens.length*10,T(t).score=a,o?a<s&&(s=a,n=t):(s==null||a<s||i)&&(s=a,n=t,i&&(o=!0));qt(e,n||t)}function jv(e){if(!e._d){var t=Ni(e._i),n=t.day===void 0?t.date:t.day;e._a=Ol([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(s){return s&&parseInt(s,10)}),Ai(e)}}function Wv(e){var t=new ys(Ei(ed(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function ed(e){var t=e._i,n=e._f;return e._locale=e._locale||Ct(e._l),t===null||n===void 0&&t===""?Cr({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),Ge(t)?new ys(Ei(t)):(ps(t)?e._d=t:Ve(n)?Uv(e):n?Vi(e):Fv(e),Si(e)||(e._d=null),e))}function Fv(e){var t=e._i;ve(t)?e._d=new Date(_.now()):ps(t)?e._d=new Date(t.valueOf()):typeof t=="string"?Rv(e):Ve(t)?(e._a=Ol(t.slice(0),function(n){return parseInt(n,10)}),Ai(e)):an(t)?jv(e):xt(t)?e._d=new Date(t):_.createFromInputFallback(e)}function td(e,t,n,s,r){var a={};return(t===!0||t===!1)&&(s=t,t=void 0),(n===!0||n===!1)&&(s=n,n=void 0),(an(e)&&ki(e)||Ve(e)&&e.length===0)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=r,a._l=n,a._i=e,a._f=t,a._strict=s,Wv(a)}function K(e,t,n,s){return td(e,t,n,s,!1)}var Hv=Pe("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=K.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Cr()}),Ev=Pe("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=K.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Cr()});function nd(e,t){var n,s;if(t.length===1&&Ve(t[0])&&(t=t[0]),!t.length)return K();for(n=t[0],s=1;s<t.length;++s)(!t[s].isValid()||t[s][e](n))&&(n=t[s]);return n}function Iv(){var e=[].slice.call(arguments,0);return nd("isBefore",e)}function Av(){var e=[].slice.call(arguments,0);return nd("isAfter",e)}var Vv=function(){return Date.now?Date.now():+new Date},Ds=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Gv(e){var t,n=!1,s,r=Ds.length;for(t in e)if(I(e,t)&&!(re.call(Ds,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(s=0;s<r;++s)if(e[Ds[s]]){if(n)return!1;parseFloat(e[Ds[s]])!==P(e[Ds[s]])&&(n=!0)}return!0}function qv(){return this._isValid}function Bv(){return Be(NaN)}function Br(e){var t=Ni(e),n=t.year||0,s=t.quarter||0,r=t.month||0,a=t.week||t.isoWeek||0,i=t.day||0,o=t.hour||0,u=t.minute||0,l=t.second||0,d=t.millisecond||0;this._isValid=Gv(t),this._milliseconds=+d+l*1e3+u*6e4+o*1e3*60*60,this._days=+i+a*7,this._months=+r+s*3+n*12,this._data={},this._locale=Ct(),this._bubble()}function zr(e){return e instanceof Br}function Gi(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function zv(e,t,n){var s=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),a=0,i;for(i=0;i<s;i++)P(e[i])!==P(t[i])&&a++;return a+r}function sd(e,t){b(e,0,0,function(){var n=this.utcOffset(),s="+";return n<0&&(n=-n,s="-"),s+at(~~(n/60),2)+t+at(~~n%60,2)})}sd("Z",":"),sd("ZZ",""),k("Z",Er),k("ZZ",Er),q(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=qi(Er,e)});var Zv=/([\+\-]|\d\d)/gi;function qi(e,t){var n=(t||"").match(e),s,r,a;return n===null?null:(s=n[n.length-1]||[],r=(s+"").match(Zv)||["-",0,0],a=+(r[1]*60)+P(r[2]),a===0?0:r[0]==="+"?a:-a)}function Bi(e,t){var n,s;return t._isUTC?(n=t.clone(),s=(Ge(e)||ps(e)?e.valueOf():K(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+s),_.updateOffset(n,!1),n):K(e).local()}function zi(e){return-Math.round(e._d.getTimezoneOffset())}_.updateOffset=function(){};function Qv(e,t,n){var s=this._offset||0,r;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=qi(Er,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(r=zi(this)),this._offset=e,this._isUTC=!0,r!=null&&this.add(r,"m"),s!==e&&(!t||this._changeInProgress?od(this,Be(e-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,_.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?s:zi(this)}function Jv(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Kv(e){return this.utcOffset(0,e)}function Xv(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(zi(this),"m")),this}function ew(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=qi(v_,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function tw(e){return this.isValid()?(e=e?K(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function nw(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function sw(){if(!ve(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Mi(e,this),e=ed(e),e._a?(t=e._isUTC?st(e._a):K(e._a),this._isDSTShifted=this.isValid()&&zv(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function rw(){return this.isValid()?!this._isUTC:!1}function aw(){return this.isValid()?this._isUTC:!1}function rd(){return this.isValid()?this._isUTC&&this._offset===0:!1}var iw=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,ow=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Be(e,t){var n=e,s=null,r,a,i;return zr(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:xt(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(s=iw.exec(e))?(r=s[1]==="-"?-1:1,n={y:0,d:P(s[it])*r,h:P(s[oe])*r,m:P(s[qe])*r,s:P(s[Rt])*r,ms:P(Gi(s[on]*1e3))*r}):(s=ow.exec(e))?(r=s[1]==="-"?-1:1,n={y:un(s[2],r),M:un(s[3],r),w:un(s[4],r),d:un(s[5],r),h:un(s[6],r),m:un(s[7],r),s:un(s[8],r)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(i=uw(K(n.from),K(n.to)),n={},n.ms=i.milliseconds,n.M=i.months),a=new Br(n),zr(e)&&I(e,"_locale")&&(a._locale=e._locale),zr(e)&&I(e,"_isValid")&&(a._isValid=e._isValid),a}Be.fn=Br.prototype,Be.invalid=Bv;function un(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function ad(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function uw(e,t){var n;return e.isValid()&&t.isValid()?(t=Bi(t,e),e.isBefore(t)?n=ad(e,t):(n=ad(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function id(e,t){return function(n,s){var r,a;return s!==null&&!isNaN(+s)&&(Rl(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=s,s=a),r=Be(n,s),od(this,r,e),this}}function od(e,t,n,s){var r=t._milliseconds,a=Gi(t._days),i=Gi(t._months);e.isValid()&&(s=s??!0,i&&Al(e,ks(e,"Month")+i*n),a&&Hl(e,"Date",ks(e,"Date")+a*n),r&&e._d.setTime(e._d.valueOf()+r*n),s&&_.updateOffset(e,a||i))}var lw=id(1,"add"),dw=id(-1,"subtract");function ud(e){return typeof e=="string"||e instanceof String}function cw(e){return Ge(e)||ps(e)||ud(e)||xt(e)||fw(e)||hw(e)||e===null||e===void 0}function hw(e){var t=an(e)&&!ki(e),n=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],r,a,i=s.length;for(r=0;r<i;r+=1)a=s[r],n=n||I(e,a);return t&&n}function fw(e){var t=Ve(e),n=!1;return t&&(n=e.filter(function(s){return!xt(s)&&ud(e)}).length===0),t&&n}function mw(e){var t=an(e)&&!ki(e),n=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],r,a;for(r=0;r<s.length;r+=1)a=s[r],n=n||I(e,a);return t&&n}function gw(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function pw(e,t){arguments.length===1&&(arguments[0]?cw(arguments[0])?(e=arguments[0],t=void 0):mw(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||K(),s=Bi(n,this).startOf("day"),r=_.calendarFormat(this,s)||"sameElse",a=t&&(rt(t[r])?t[r].call(this,n):t[r]);return this.format(a||this.localeData().calendar(r,this,K(n)))}function yw(){return new ys(this)}function _w(e,t){var n=Ge(e)?e:K(e);return this.isValid()&&n.isValid()?(t=Ce(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function vw(e,t){var n=Ge(e)?e:K(e);return this.isValid()&&n.isValid()?(t=Ce(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function ww(e,t,n,s){var r=Ge(e)?e:K(e),a=Ge(t)?t:K(t);return this.isValid()&&r.isValid()&&a.isValid()?(s=s||"()",(s[0]==="("?this.isAfter(r,n):!this.isBefore(r,n))&&(s[1]===")"?this.isBefore(a,n):!this.isAfter(a,n))):!1}function kw(e,t){var n=Ge(e)?e:K(e),s;return this.isValid()&&n.isValid()?(t=Ce(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(s=n.valueOf(),this.clone().startOf(t).valueOf()<=s&&s<=this.clone().endOf(t).valueOf())):!1}function $w(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Sw(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function bw(e,t,n){var s,r,a;if(!this.isValid())return NaN;if(s=Bi(e,this),!s.isValid())return NaN;switch(r=(s.utcOffset()-this.utcOffset())*6e4,t=Ce(t),t){case"year":a=Zr(this,s)/12;break;case"month":a=Zr(this,s);break;case"quarter":a=Zr(this,s)/3;break;case"second":a=(this-s)/1e3;break;case"minute":a=(this-s)/6e4;break;case"hour":a=(this-s)/36e5;break;case"day":a=(this-s-r)/864e5;break;case"week":a=(this-s-r)/6048e5;break;default:a=this-s}return n?a:Le(a)}function Zr(e,t){if(e.date()<t.date())return-Zr(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),s=e.clone().add(n,"months"),r,a;return t-s<0?(r=e.clone().add(n-1,"months"),a=(t-s)/(s-r)):(r=e.clone().add(n+1,"months"),a=(t-s)/(r-s)),-(n+a)||0}_.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",_.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Mw(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Dw(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?Ur(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):rt(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Ur(n,"Z")):Ur(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Yw(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,s,r,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',s=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]',this.format(n+s+r+a)}function Ow(e){e||(e=this.isUtc()?_.defaultFormatUtc:_.defaultFormat);var t=Ur(this,e);return this.localeData().postformat(t)}function xw(e,t){return this.isValid()&&(Ge(e)&&e.isValid()||K(e).isValid())?Be({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Tw(e){return this.from(K(),e)}function Nw(e,t){return this.isValid()&&(Ge(e)&&e.isValid()||K(e).isValid())?Be({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Rw(e){return this.to(K(),e)}function ld(e){var t;return e===void 0?this._locale._abbr:(t=Ct(e),t!=null&&(this._locale=t),this)}var dd=Pe("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function cd(){return this._locale}var Qr=1e3,Fn=60*Qr,Jr=60*Fn,hd=(365*400+97)*24*Jr;function Hn(e,t){return(e%t+t)%t}function fd(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-hd:new Date(e,t,n).valueOf()}function md(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-hd:Date.UTC(e,t,n)}function Pw(e){var t,n;if(e=Ce(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?md:fd,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Hn(t+(this._isUTC?0:this.utcOffset()*Fn),Jr);break;case"minute":t=this._d.valueOf(),t-=Hn(t,Fn);break;case"second":t=this._d.valueOf(),t-=Hn(t,Qr);break}return this._d.setTime(t),_.updateOffset(this,!0),this}function Cw(e){var t,n;if(e=Ce(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?md:fd,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Jr-Hn(t+(this._isUTC?0:this.utcOffset()*Fn),Jr)-1;break;case"minute":t=this._d.valueOf(),t+=Fn-Hn(t,Fn)-1;break;case"second":t=this._d.valueOf(),t+=Qr-Hn(t,Qr)-1;break}return this._d.setTime(t),_.updateOffset(this,!0),this}function Lw(){return this._d.valueOf()-(this._offset||0)*6e4}function Uw(){return Math.floor(this.valueOf()/1e3)}function jw(){return new Date(this.valueOf())}function Ww(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Fw(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Hw(){return this.isValid()?this.toISOString():null}function Ew(){return Si(this)}function Iw(){return qt({},T(this))}function Aw(){return T(this).overflow}function Vw(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}b("N",0,0,"eraAbbr"),b("NN",0,0,"eraAbbr"),b("NNN",0,0,"eraAbbr"),b("NNNN",0,0,"eraName"),b("NNNNN",0,0,"eraNarrow"),b("y",["y",1],"yo","eraYear"),b("y",["yy",2],0,"eraYear"),b("y",["yyy",3],0,"eraYear"),b("y",["yyyy",4],0,"eraYear"),k("N",Zi),k("NN",Zi),k("NNN",Zi),k("NNNN",tk),k("NNNNN",nk),q(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,s){var r=n._locale.erasParse(e,s,n._strict);r?T(n).era=r:T(n).invalidEra=e}),k("y",Ln),k("yy",Ln),k("yyy",Ln),k("yyyy",Ln),k("yo",sk),q(["y","yy","yyy","yyyy"],he),q(["yo"],function(e,t,n,s){var r;n._locale._eraYearOrdinalRegex&&(r=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[he]=n._locale.eraYearOrdinalParse(e,r):t[he]=parseInt(e,10)});function Gw(e,t){var n,s,r,a=this._eras||Ct("en")._eras;for(n=0,s=a.length;n<s;++n){switch(typeof a[n].since){case"string":r=_(a[n].since).startOf("day"),a[n].since=r.valueOf();break}switch(typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":r=_(a[n].until).startOf("day").valueOf(),a[n].until=r.valueOf();break}}return a}function qw(e,t,n){var s,r,a=this.eras(),i,o,u;for(e=e.toUpperCase(),s=0,r=a.length;s<r;++s)if(i=a[s].name.toUpperCase(),o=a[s].abbr.toUpperCase(),u=a[s].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(o===e)return a[s];break;case"NNNN":if(i===e)return a[s];break;case"NNNNN":if(u===e)return a[s];break}else if([i,o,u].indexOf(e)>=0)return a[s]}function Bw(e,t){var n=e.since<=e.until?1:-1;return t===void 0?_(e.since).year():_(e.since).year()+(t-e.offset)*n}function zw(){var e,t,n,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),s[e].since<=n&&n<=s[e].until||s[e].until<=n&&n<=s[e].since)return s[e].name;return""}function Zw(){var e,t,n,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),s[e].since<=n&&n<=s[e].until||s[e].until<=n&&n<=s[e].since)return s[e].narrow;return""}function Qw(){var e,t,n,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),s[e].since<=n&&n<=s[e].until||s[e].until<=n&&n<=s[e].since)return s[e].abbr;return""}function Jw(){var e,t,n,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=r[e].since<=r[e].until?1:-1,s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return(this.year()-_(r[e].since).year())*n+r[e].offset;return this.year()}function Kw(e){return I(this,"_erasNameRegex")||Qi.call(this),e?this._erasNameRegex:this._erasRegex}function Xw(e){return I(this,"_erasAbbrRegex")||Qi.call(this),e?this._erasAbbrRegex:this._erasRegex}function ek(e){return I(this,"_erasNarrowRegex")||Qi.call(this),e?this._erasNarrowRegex:this._erasRegex}function Zi(e,t){return t.erasAbbrRegex(e)}function tk(e,t){return t.erasNameRegex(e)}function nk(e,t){return t.erasNarrowRegex(e)}function sk(e,t){return t._eraYearOrdinalRegex||Ln}function Qi(){var e=[],t=[],n=[],s=[],r,a,i,o,u,l=this.eras();for(r=0,a=l.length;r<a;++r)i=Tt(l[r].name),o=Tt(l[r].abbr),u=Tt(l[r].narrow),t.push(i),e.push(o),n.push(u),s.push(i),s.push(o),s.push(u);this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}b(0,["gg",2],0,function(){return this.weekYear()%100}),b(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Kr(e,t){b(0,[e,e.length],0,t)}Kr("gggg","weekYear"),Kr("ggggg","weekYear"),Kr("GGGG","isoWeekYear"),Kr("GGGGG","isoWeekYear"),k("G",Hr),k("g",Hr),k("GG",J,Se),k("gg",J,Se),k("GGGG",Pi,Ri),k("gggg",Pi,Ri),k("GGGGG",Fr,jr),k("ggggg",Fr,jr),vs(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,s){t[s.substr(0,2)]=P(e)}),vs(["gg","GG"],function(e,t,n,s){t[s]=_.parseTwoDigitYear(e)});function rk(e){return gd.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function ak(e){return gd.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function ik(){return Pt(this.year(),1,4)}function ok(){return Pt(this.isoWeekYear(),1,4)}function uk(){var e=this.localeData()._week;return Pt(this.year(),e.dow,e.doy)}function lk(){var e=this.localeData()._week;return Pt(this.weekYear(),e.dow,e.doy)}function gd(e,t,n,s,r){var a;return e==null?Ss(this,s,r).year:(a=Pt(e,s,r),t>a&&(t=a),dk.call(this,e,t,n,s,r))}function dk(e,t,n,s,r){var a=ql(e,t,n,s,r),i=$s(a.year,0,a.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}b("Q",0,"Qo","quarter"),k("Q",Ll),q("Q",function(e,t){t[Nt]=(P(e)-1)*3});function ck(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}b("D",["DD",2],"Do","date"),k("D",J,Un),k("DD",J,Se),k("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),q(["D","DD"],it),q("Do",function(e,t){t[it]=P(e.match(J)[0])});var pd=jn("Date",!0);b("DDD",["DDDD",3],"DDDo","dayOfYear"),k("DDD",Wr),k("DDDD",Ul),q(["DDD","DDDD"],function(e,t,n){n._dayOfYear=P(e)});function hk(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}b("m",["mm",2],0,"minute"),k("m",J,Ci),k("mm",J,Se),q(["m","mm"],qe);var fk=jn("Minutes",!1);b("s",["ss",2],0,"second"),k("s",J,Ci),k("ss",J,Se),q(["s","ss"],Rt);var mk=jn("Seconds",!1);b("S",0,0,function(){return~~(this.millisecond()/100)}),b(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),b(0,["SSS",3],0,"millisecond"),b(0,["SSSS",4],0,function(){return this.millisecond()*10}),b(0,["SSSSS",5],0,function(){return this.millisecond()*100}),b(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),b(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),b(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),b(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),k("S",Wr,Ll),k("SS",Wr,Se),k("SSS",Wr,Ul);var zt,yd;for(zt="SSSS";zt.length<=9;zt+="S")k(zt,Ln);function gk(e,t){t[on]=P(("0."+e)*1e3)}for(zt="S";zt.length<=9;zt+="S")q(zt,gk);yd=jn("Milliseconds",!1),b("z",0,0,"zoneAbbr"),b("zz",0,0,"zoneName");function pk(){return this._isUTC?"UTC":""}function yk(){return this._isUTC?"Coordinated Universal Time":""}var g=ys.prototype;g.add=lw,g.calendar=pw,g.clone=yw,g.diff=bw,g.endOf=Cw,g.format=Ow,g.from=xw,g.fromNow=Tw,g.to=Nw,g.toNow=Rw,g.get=Y_,g.invalidAt=Aw,g.isAfter=_w,g.isBefore=vw,g.isBetween=ww,g.isSame=kw,g.isSameOrAfter=$w,g.isSameOrBefore=Sw,g.isValid=Ew,g.lang=dd,g.locale=ld,g.localeData=cd,g.max=Ev,g.min=Hv,g.parsingFlags=Iw,g.set=O_,g.startOf=Pw,g.subtract=dw,g.toArray=Ww,g.toObject=Fw,g.toDate=jw,g.toISOString=Dw,g.inspect=Yw,typeof Symbol<"u"&&Symbol.for!=null&&(g[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),g.toJSON=Hw,g.toString=Mw,g.unix=Uw,g.valueOf=Lw,g.creationData=Vw,g.eraName=zw,g.eraNarrow=Zw,g.eraAbbr=Qw,g.eraYear=Jw,g.year=Fl,g.isLeapYear=D_,g.weekYear=rk,g.isoWeekYear=ak,g.quarter=g.quarters=ck,g.month=Vl,g.daysInMonth=j_,g.week=g.weeks=G_,g.isoWeek=g.isoWeeks=q_,g.weeksInYear=uk,g.weeksInWeekYear=lk,g.isoWeeksInYear=ik,g.isoWeeksInISOWeekYear=ok,g.date=pd,g.day=g.days=av,g.weekday=iv,g.isoWeekday=ov,g.dayOfYear=hk,g.hour=g.hours=mv,g.minute=g.minutes=fk,g.second=g.seconds=mk,g.millisecond=g.milliseconds=yd,g.utcOffset=Qv,g.utc=Kv,g.local=Xv,g.parseZone=ew,g.hasAlignedHourOffset=tw,g.isDST=nw,g.isLocal=rw,g.isUtcOffset=aw,g.isUtc=rd,g.isUTC=rd,g.zoneAbbr=pk,g.zoneName=yk,g.dates=Pe("dates accessor is deprecated. Use date instead.",pd),g.months=Pe("months accessor is deprecated. Use month instead",Vl),g.years=Pe("years accessor is deprecated. Use year instead",Fl),g.zone=Pe("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Jv),g.isDSTShifted=Pe("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",sw);function _k(e){return K(e*1e3)}function vk(){return K.apply(null,arguments).parseZone()}function _d(e){return e}var A=Yi.prototype;A.calendar=r_,A.longDateFormat=u_,A.invalidDate=d_,A.ordinal=f_,A.preparse=_d,A.postformat=_d,A.relativeTime=g_,A.pastFuture=p_,A.set=n_,A.eras=Gw,A.erasParse=qw,A.erasConvertYear=Bw,A.erasAbbrRegex=Xw,A.erasNameRegex=Kw,A.erasNarrowRegex=ek,A.months=P_,A.monthsShort=C_,A.monthsParse=U_,A.monthsRegex=F_,A.monthsShortRegex=W_,A.week=E_,A.firstDayOfYear=V_,A.firstDayOfWeek=A_,A.weekdays=ev,A.weekdaysMin=nv,A.weekdaysShort=tv,A.weekdaysParse=rv,A.weekdaysRegex=uv,A.weekdaysShortRegex=lv,A.weekdaysMinRegex=dv,A.isPM=hv,A.meridiem=gv;function Xr(e,t,n,s){var r=Ct(),a=st().set(s,t);return r[n](a,e)}function vd(e,t,n){if(xt(e)&&(t=e,e=void 0),e=e||"",t!=null)return Xr(e,t,n,"month");var s,r=[];for(s=0;s<12;s++)r[s]=Xr(e,s,n,"month");return r}function Ji(e,t,n,s){typeof e=="boolean"?(xt(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,xt(t)&&(n=t,t=void 0),t=t||"");var r=Ct(),a=e?r._week.dow:0,i,o=[];if(n!=null)return Xr(t,(n+a)%7,s,"day");for(i=0;i<7;i++)o[i]=Xr(t,(i+a)%7,s,"day");return o}function wk(e,t){return vd(e,t,"months")}function kk(e,t){return vd(e,t,"monthsShort")}function $k(e,t,n){return Ji(e,t,n,"weekdays")}function Sk(e,t,n){return Ji(e,t,n,"weekdaysShort")}function bk(e,t,n){return Ji(e,t,n,"weekdaysMin")}Bt("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(e){var t=e%10,n=P(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}}),_.lang=Pe("moment.lang is deprecated. Use moment.locale instead.",Bt),_.langData=Pe("moment.langData is deprecated. Use moment.localeData instead.",Ct);var Lt=Math.abs;function Mk(){var e=this._data;return this._milliseconds=Lt(this._milliseconds),this._days=Lt(this._days),this._months=Lt(this._months),e.milliseconds=Lt(e.milliseconds),e.seconds=Lt(e.seconds),e.minutes=Lt(e.minutes),e.hours=Lt(e.hours),e.months=Lt(e.months),e.years=Lt(e.years),this}function wd(e,t,n,s){var r=Be(t,n);return e._milliseconds+=s*r._milliseconds,e._days+=s*r._days,e._months+=s*r._months,e._bubble()}function Dk(e,t){return wd(this,e,t,1)}function Yk(e,t){return wd(this,e,t,-1)}function kd(e){return e<0?Math.floor(e):Math.ceil(e)}function Ok(){var e=this._milliseconds,t=this._days,n=this._months,s=this._data,r,a,i,o,u;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=kd(Ki(n)+t)*864e5,t=0,n=0),s.milliseconds=e%1e3,r=Le(e/1e3),s.seconds=r%60,a=Le(r/60),s.minutes=a%60,i=Le(a/60),s.hours=i%24,t+=Le(i/24),u=Le($d(t)),n+=u,t-=kd(Ki(u)),o=Le(n/12),n%=12,s.days=t,s.months=n,s.years=o,this}function $d(e){return e*4800/146097}function Ki(e){return e*146097/4800}function xk(e){if(!this.isValid())return NaN;var t,n,s=this._milliseconds;if(e=Ce(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+s/864e5,n=this._months+$d(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Ki(this._months)),e){case"week":return t/7+s/6048e5;case"day":return t+s/864e5;case"hour":return t*24+s/36e5;case"minute":return t*1440+s/6e4;case"second":return t*86400+s/1e3;case"millisecond":return Math.floor(t*864e5)+s;default:throw new Error("Unknown unit "+e)}}function Ut(e){return function(){return this.as(e)}}var Sd=Ut("ms"),Tk=Ut("s"),Nk=Ut("m"),Rk=Ut("h"),Pk=Ut("d"),Ck=Ut("w"),Lk=Ut("M"),Uk=Ut("Q"),jk=Ut("y"),Wk=Sd;function Fk(){return Be(this)}function Hk(e){return e=Ce(e),this.isValid()?this[e+"s"]():NaN}function ln(e){return function(){return this.isValid()?this._data[e]:NaN}}var Ek=ln("milliseconds"),Ik=ln("seconds"),Ak=ln("minutes"),Vk=ln("hours"),Gk=ln("days"),qk=ln("months"),Bk=ln("years");function zk(){return Le(this.days()/7)}var jt=Math.round,En={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Zk(e,t,n,s,r){return r.relativeTime(t||1,!!n,e,s)}function Qk(e,t,n,s){var r=Be(e).abs(),a=jt(r.as("s")),i=jt(r.as("m")),o=jt(r.as("h")),u=jt(r.as("d")),l=jt(r.as("M")),d=jt(r.as("w")),h=jt(r.as("y")),c=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||i<=1&&["m"]||i<n.m&&["mm",i]||o<=1&&["h"]||o<n.h&&["hh",o]||u<=1&&["d"]||u<n.d&&["dd",u];return n.w!=null&&(c=c||d<=1&&["w"]||d<n.w&&["ww",d]),c=c||l<=1&&["M"]||l<n.M&&["MM",l]||h<=1&&["y"]||["yy",h],c[2]=t,c[3]=+e>0,c[4]=s,Zk.apply(null,c)}function Jk(e){return e===void 0?jt:typeof e=="function"?(jt=e,!0):!1}function Kk(e,t){return En[e]===void 0?!1:t===void 0?En[e]:(En[e]=t,e==="s"&&(En.ss=t-1),!0)}function Xk(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,s=En,r,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(s=Object.assign({},En,t),t.s!=null&&t.ss==null&&(s.ss=t.s-1)),r=this.localeData(),a=Qk(this,!n,s,r),n&&(a=r.pastFuture(+this,a)),r.postformat(a)}var Xi=Math.abs;function In(e){return(e>0)-(e<0)||+e}function ea(){if(!this.isValid())return this.localeData().invalidDate();var e=Xi(this._milliseconds)/1e3,t=Xi(this._days),n=Xi(this._months),s,r,a,i,o=this.asSeconds(),u,l,d,h;return o?(s=Le(e/60),r=Le(s/60),e%=60,s%=60,a=Le(n/12),n%=12,i=e?e.toFixed(3).replace(/\.?0+$/,""):"",u=o<0?"-":"",l=In(this._months)!==In(o)?"-":"",d=In(this._days)!==In(o)?"-":"",h=In(this._milliseconds)!==In(o)?"-":"",u+"P"+(a?l+a+"Y":"")+(n?l+n+"M":"")+(t?d+t+"D":"")+(r||s||e?"T":"")+(r?h+r+"H":"")+(s?h+s+"M":"")+(e?h+i+"S":"")):"P0D"}var U=Br.prototype;U.isValid=qv,U.abs=Mk,U.add=Dk,U.subtract=Yk,U.as=xk,U.asMilliseconds=Sd,U.asSeconds=Tk,U.asMinutes=Nk,U.asHours=Rk,U.asDays=Pk,U.asWeeks=Ck,U.asMonths=Lk,U.asQuarters=Uk,U.asYears=jk,U.valueOf=Wk,U._bubble=Ok,U.clone=Fk,U.get=Hk,U.milliseconds=Ek,U.seconds=Ik,U.minutes=Ak,U.hours=Vk,U.days=Gk,U.weeks=zk,U.months=qk,U.years=Bk,U.humanize=Xk,U.toISOString=ea,U.toString=ea,U.toJSON=ea,U.locale=ld,U.localeData=cd,U.toIsoString=Pe("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ea),U.lang=dd,b("X",0,0,"unix"),b("x",0,0,"valueOf"),k("x",Hr),k("X",w_),q("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)}),q("x",function(e,t,n){n._d=new Date(P(e))});//! moment.js
28
- _.version="2.30.1",e_(K),_.fn=g,_.min=Iv,_.max=Av,_.now=Vv,_.utc=st,_.unix=_k,_.months=wk,_.isDate=ps,_.locale=Bt,_.invalid=Cr,_.duration=Be,_.isMoment=Ge,_.weekdays=$k,_.parseZone=vk,_.localeData=Ct,_.isDuration=zr,_.monthsShort=kk,_.weekdaysMin=bk,_.defineLocale=Hi,_.updateLocale=vv,_.locales=wv,_.weekdaysShort=Sk,_.normalizeUnits=Ce,_.relativeTimeRounding=Jk,_.relativeTimeThreshold=Kk,_.calendarFormat=gw,_.prototype=g,_.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"};const e$=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,t$=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,bd=/(janv\.?|févr\.?|avr\.?|juil\.?|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,eo=[/^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],n$={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:bd,monthsShortRegex:bd,monthsStrictRegex:e$,monthsShortStrictRegex:t$,monthsParse:eo,longMonthsParse:eo,shortMonthsParse:eo,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:(e,t)=>{switch(t){case"D":return e+(e===1?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(e===1?"er":"e");case"w":case"W":return e+(e===1?"re":"e")}},week:{dow:1,doy:4}};_.locale("fr",n$);const s$=["ring_left","ring_right","strap_left","strap_right","boots","helmet","collar","belt","weapon"],r$=e=>{const t=to.map(n=>n.equipments).flat().find(({id:n})=>n===e.id);if(!t)throw new Error("cannot find any equipment");return a$(t,e.seed)},a$=(e,t)=>{const n=K0(t),s=X0(Object.entries(e.characteristics),([r])=>r);return{...e,seed:t,characteristics:Object.fromEntries(s.map(([r,a])=>[r,Array.isArray(a)?J0(a[0],a[1]+1,n):a]))}},to=[Q0];to.map(e=>e.equipments).flat();const i$=(e,t)=>e.itemList.get(t)??0,o$=(e,t)=>{const n=Xd(Object.values(e.equippedItems)),s=t.equipments.filter(r=>n.find(a=>a.id===r.id)).length;return s===t.equipments.length?t.fullBonus:s>=t.equipments.length/2?t.halfBonus:null},Md=e=>{let t={vitality:0,strength:0,agility:0,chance:0,intelligence:0,wisdom:0};for(const n of s$){const s=e.equippedItems[n];s&&(t=uu(t,r$(s).characteristics,(r,a)=>r+a))}for(const n of to){const s=o$(e,n);s&&(t=uu(t,s,(r,a)=>r+a))}return t},u$=Object.freeze(Object.defineProperty({__proto__:null,getItemQuantity:i$,getUserEquipmentsCharacteristics:Md},Symbol.toStringTag,{value:"Module"})),Dd=new Y.Schema({user:{type:Y.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},equippedItems:{type:{helmet:{id:String,seed:Number},collar:{id:String,seed:Number},ring_left:{id:String,seed:Number},ring_right:{id:String,seed:Number},strap_left:{id:String,seed:Number},strap_right:{id:String,seed:Number},boots:{id:String,seed:Number},belt:{id:String,seed:Number},weapon:{id:String,seed:Number}},default:{}},equipmentList:{type:[{id:String,seed:Number}],default:[]},itemList:{type:Map,of:Number,default:{}},recipes:{type:[String],default:[]}});Dd.index({user:1});const Ys=Y.model("UserInventory",Dd),Os=async(e,t)=>{await Ys.updateOne({user:e},t,{upsert:!0})},l$=Object.freeze(Object.defineProperty({__proto__:null,addEquipments:async(e,t)=>{await Os(e,{$push:{equipmentList:{$each:t}}})},addInventoryItem:async(e,t,n)=>{await Os(e,{$inc:{[`itemList.${t}`]:n}})},addInventoryItems:async(e,t)=>{await Os(e,{$inc:Object.fromEntries(Object.entries(t).filter(([,n])=>n>0).map(([n,s])=>[`itemList.${n}`,s]))})},removeAllItemInventory:async(e,t)=>{await Os(e,{$set:{[`itemList.${t}`]:0}})},removeInventoryItem:async(e,t,n)=>{await Os(e,[{$set:{[`itemList.${t}`]:{$cond:{if:{$lt:[{$add:[`$itemList.${t}`,-n]},0]},then:0,else:{$add:[`$itemList.${t}`,-n]}}}}}])}},Symbol.toStringTag,{value:"Module"})),Yd=async e=>await Ys.create({user:e}),Od=async(e,t={})=>{const n=await Ys.findOne({user:e},t);return n||await Yd(e)},An={multiplier:{type:Number,default:0},origin:String,expireAt:Date,startAt:{type:Date,default:null}},xs=new Y.Schema({user:{type:Y.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},premium:{type:Boolean,default:!1},berry:{type:Number,default:0,index:!0},xp:{lastMessageWithXp:{type:Date,default:new Date},voice:{lastConnection:{type:Date,default:new Date},minutesInVoiceToday:{type:Number,default:0}},amount:{type:Number,default:0,index:!0},boost:{type:Date,default:null}},buffs:{cooldown:{casino:{type:[An],default:[]},work:{type:[An],default:[]}},berry:{work:{type:[An],default:[]},global:{type:[An],default:[]}},drop:{work:{type:[An],default:[]}},xp:{global:{type:[An],default:[]}}},hp:{type:Number,default:100},characteristics:{vitality:{type:Number,default:0},strength:{type:Number,default:0},agility:{type:Number,default:0},chance:{type:Number,default:0},intelligence:{type:Number,default:0},wisdom:{type:Number,default:0}},resetCharacteristics:{free:{type:Boolean,default:!0},nextAvailable:{type:Date,default:null}},scrolls:{vitality:{type:Number,default:0},strength:{type:Number,default:0},agility:{type:Number,default:0},chance:{type:Number,default:0},intelligence:{type:Number,default:0},wisdom:{type:Number,default:0}}});xs.index({user:1}),xs.index({"xp.amount":-1}),xs.index({berry:-1}),xs.post("updateOne",async function(e){await oo.userMetaMiddleware(e)});const Zt=Y.model("UserMeta",xs),xd=e=>Object.fromEntries(cg.map(t=>[t,Jd.getComputedCharacteristicValue(e.characteristics[t])+e.scrolls[t]])),Td=e=>{const{boost:t}=e.xp;return(t!==null&&Date.now()<t.getTime()?.2:0)+(e.premium?.5:0)+e.buffs.xp.global.reduce((n,{expireAt:s,startAt:r,multiplier:a})=>n+((r??new Date)<=new Date&&!kn(s)?a:0),0)},d$=(e,t,n)=>(t*=1+Td(e),Math.ceil(t*n)),c$=(e,t)=>{const n=Nd(e);return t<=0?t:Math.ceil(t*(n||1))},h$=e=>e.buffs.cooldown.work.reduce((t,{expireAt:n,startAt:s,multiplier:r})=>t+(new Date>=(s??new Date)&&!kn(n)?r:0),1),f$=e=>e.buffs.drop.work.reduce((t,{expireAt:n,startAt:s,multiplier:r})=>t+(new Date>=(s??new Date)&&!kn(n)?r:0),1),m$=e=>e.buffs.berry.work.reduce((t,{expireAt:n,startAt:s,multiplier:r})=>t+(new Date>=(s??new Date)&&!kn(n)?r:0),1),Nd=e=>e.buffs.berry.global.reduce((t,{expireAt:n,startAt:s,multiplier:r})=>t+(new Date>=(s??new Date)&&!kn(n)?r:0),1),g$=e=>e.buffs.cooldown.casino.reduce((t,{expireAt:n,startAt:s,multiplier:r})=>t+(new Date>=(s??new Date)&&!kn(n)?r:0),1),Rd=(e,t)=>((xd(e).vitality??0)+Md(t).vitality)*fg+hg,p$=Object.freeze(Object.defineProperty({__proto__:null,calcBerry:c$,calcBerryGlobalBuff:Nd,calcBerryWorkBuff:m$,calcCooldownCasinoBuff:g$,calcCooldownWorkBuff:h$,calcDropWorkBuff:f$,calcXp:d$,calcXpBoost:Td,getBerryRank:async e=>(await Zt.aggregate([{$setWindowFields:{sortBy:{berry:-1},output:{rank:{$rank:{}}}}},{$match:{_id:e}},{$project:{rank:1}}]))[0],getGlobalRank:async e=>(await Zt.aggregate([{$setWindowFields:{sortBy:{"xp.amount":-1},output:{rank:{$rank:{}}}}},{$match:{_id:e}},{$project:{rank:1}}]))[0],getMaxHp:Rd,getTotalCharacteristics:xd,hasMalusBuff:e=>{const t=[...e.buffs.xp.global,...e.buffs.berry.global,...e.buffs.berry.work,...e.buffs.cooldown.work,...e.buffs.cooldown.casino,...e.buffs.drop.work];for(const{multiplier:n,startAt:s,expireAt:r}of t)if(n<0&&new Date<r&&(s??new Date)<=new Date)return!0;return!1}},Symbol.toStringTag,{value:"Module"})),Pd=async e=>await Zt.create({user:e}),Cd=async(e,t={})=>{const n=await Zt.findOne({user:e},t);return n||await Pd(e)},y$=(e,t)=>Zt.findOneAndUpdate({user:e},t,{returnDocument:"after",upsert:!0}),Ts=async(e,t)=>{await Zt.updateOne({user:e},t,{upsert:!0})},_$=Object.freeze(Object.defineProperty({__proto__:null,addBerry:async(e,t)=>{await Ts(e,[{$set:{berry:{$cond:{if:{$lt:[{$add:["$berry",t]},0]},then:0,else:{$add:["$berry",t]}}}}}])},addXp:async(e,t)=>{await Ts(e,{$inc:{"xp.amount":t}})},gainHp:async(e,t,{userMeta:n,userInventory:s})=>{const r=n??await Cd(e,{buffs:-1,xp:-1}),a=s??await Od(e,{itemList:-1,equipmentList:-1}),o=Rd(r,a)-r.hp;await Ts(e,{$set:{hp:r.hp+Math.min(t,o)}})},updateBoost:async(e,t)=>{const{xp:{boost:n}}=await y$(e,[{$set:{"xp.boost":{$cond:{if:{$or:[{$not:"$xp.boost"},{$lt:["$xp.boost",new Date]}]},then:{$add:[new Date,t]},else:{$add:["$xp.boost",t]}}}}}]);return n},updateBuff:async(e,t,n,s,r,a)=>{await Ts(e,[{$set:{[`buffs.${t}`]:{$map:{input:`$buffs.${t}`,as:"buff",in:{$cond:{if:{$eq:[{$substr:["$$buff.origin",0,{$indexOfBytes:["$$buff.origin","$"]}]},{$substr:[n,0,{$indexOfBytes:[n,"$"]}]}]},then:{multiplier:"$$buff.multiplier",origin:"$$buff.origin",expireAt:{$cond:{if:{$lt:["$$buff.expireAt",new Date]},then:{$add:[new Date,r*60*60*1e3]},else:{$add:["$$buff.expireAt",r*60*60*1e3]}}},startAt:{$cond:{if:{$gte:["$$buff.startAt",new Date]},then:"$$buff.startAt",else:{$add:[new Date,(a??0)*60*60*1e3]}}}},else:"$$buff"}}}}}},{$set:{[`buffs.${t}`]:{$cond:{if:{$in:[{$substr:[n,0,{$indexOfBytes:[n,"$"]}]},{$map:{input:`$buffs.${t}`,as:"b",in:{$substr:["$$b.origin",0,{$indexOfBytes:["$$b.origin","$"]}]}}}]},then:`$buffs.${t}`,else:{$concatArrays:[`$buffs.${t}`,[{multiplier:s,origin:n,expireAt:{$add:[new Date,r*60*60*1e3]},startAt:{$add:[new Date,(a??0)*60*60*1e3]}}]]}}}}}])},updatePremium:async(e,t)=>{await Ts(e,{$set:{premium:t}})}},Symbol.toStringTag,{value:"Module"})),Ld=new Y.Schema({user:{type:Y.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},unlockedFactionBadges:{type:[String],default:[]},unlockedBadges:{type:[String],default:[]},unlockedTitles:{type:[String],default:[]},selectedTitle:{type:String,default:null},unlockedBackgrounds:{type:[String],default:["default"]},selectedBackground:{type:String,default:"default"},unlockedProfileAssets:{type:[String],default:[]}});Ld.index({user:1});const Ns=Y.model("UserOrnaments",Ld),ot=async(e,t)=>{await Ns.updateOne({user:e},t,{upsert:!0})},v$=Object.freeze(Object.defineProperty({__proto__:null,selectBackground:async(e,t)=>{await ot(e,{$set:{selectedBackground:t}})},selectTitle:async(e,t)=>{await ot(e,{$set:{selectedTitle:t}})},unlockBackground:async(e,t)=>{await ot(e,{$addToSet:{unlockedBackgrounds:t}})},unlockBackgrounds:async(e,t)=>{await ot(e,{$addToSet:{unlockedBackgrounds:{$each:t}}})},unlockBadge:async(e,t,n)=>{t.isProgressive?await ot(e,{$addToSet:{unlockedBadges:`${t.id}_${n}`}}):await ot(e,{$addToSet:{unlockedBadges:t.id}})},unlockFactionBadge:async(e,t)=>{await ot(e,{$addToSet:{unlockedFactionBadges:{$each:[`b_marine_${t}`,`b_revolutionary_${t}`,`b_pirate_${t}`]}}})},unlockProfileAsset:async(e,t)=>{await ot(e,{$addToSet:{unlockedProfileAssets:t}})},unlockTitle:async(e,t)=>{await ot(e,{$addToSet:{unlockedTitles:t}})},unlockTitles:async(e,t)=>{await ot(e,{$addToSet:{unlockedTitles:{$each:t}}})}},Symbol.toStringTag,{value:"Module"})),Ud=async e=>await Ns.create({user:e}),w$=async(e,t)=>{const n=await Ns.findOne({user:e},t);return n||await Ud(e)},k$=(e,t)=>e.completed.includes(t),$$=(e,t)=>{const n=e.daily[t];return n&&ar(n,new Date)},jd=e=>ar(ou(),e.lastFullComplete),S$=e=>jd(e)?1+Math.min(2,e.streak/10):1,Wd=e=>e.completed.reduce((t,n)=>t+(n.startsWith("be_level_")?1:0),0),b$=Object.freeze(Object.defineProperty({__proto__:null,getFactionTitle:(e,t)=>{const n=Wd(e);return Kd.factionTitleList.find(s=>s.strength===n&&s.faction===t)},getFactionTitleStrength:Wd,getStreakMultiplier:S$,isDailyQuestCompleted:$$,isQuestCompleted:k$,isStreaking:jd},Symbol.toStringTag,{value:"Module"})),Fd=new Y.Schema({user:{type:Y.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},completed:[String],daily:{type:Object,default:{}},streak:{type:Number,default:0},lastFullComplete:{type:Date,default:new Date}});Fd.index({user:1});const Rs=Y.model("UserQuest",Fd),Ps=async(e,t)=>{await Rs.updateOne({user:e},t,{upsert:!0})},M$=Object.freeze(Object.defineProperty({__proto__:null,completeDailyQuest:async(e,t)=>{Y.isValidObjectId(e)&&await Ps(e,[{$addFields:{[t]:new Date}}]),await Ps(e,[{$addFields:{[t]:new Date}}])},completeQuest:async(e,t)=>{await Ps(e,{$addToSet:{completed:t}})},updateStreak:async(e,t)=>{ar(ou(),t)?await Ps(e,{$inc:{streak:1},$set:{lastFullComplete:new Date}}):await Ps(e,{$set:{lastFullComplete:new Date,streak:1}})}},Symbol.toStringTag,{value:"Module"})),Hd=async e=>await Rs.create({user:e}),D$=async e=>{const t=await Rs.findOne({user:e});return t||await Hd(e)},no=new Y.Schema({user:{type:Y.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},botPing:{type:Number,default:0},writeDifferentChat:[String],messageSent:{type:Number,default:0},totalMinutesInVoice:{type:Number,default:0},hadMoreThanZeroBerry:{type:Boolean,default:!1},totalBet:{type:Number,default:0},edito:{readToday:{type:Number,default:0},lastTimeRead:{type:Date,default:new Date}},double_six:{type:Number,default:0},lastGames:{type:[{gameType:String,endState:Number}],default:[]},black_jack:{type:Number,default:0},rps:{type:{lastRps:String,nb:Number}},totalSpentInShop:{type:Number,default:0},work:{type:Number,default:0},draw:{type:Number,default:0},bet666:{amount:{type:Number,default:0},last:{type:Date,default:new Date}},items:{bottle:{total:{type:Number,default:0},today:{type:Number,default:0},last:{type:Date,default:new Date}},chest:{total:{type:Number,default:0}}},randomMessage:{type:Number,default:0},timeAt10Percent:{type:Number,default:0},timeAt90Percent:{type:Number,default:0},sevenQuitteOuDouble:{type:Number,default:0},drawDoubleSix:{type:Number,default:0},guessInOne:{type:Number,default:0},crafts:{type:Number,default:0},raidFinished:{type:Number,default:0}});no.index({user:1}),no.post("updateOne",async function(e){await oo.userQuestMetaMiddleware(e)});const ta=Y.model("UserQuestMeta",no),ut=async(e,t,n={})=>{await ta.updateOne({user:e,...n},t,{upsert:!0})},Y$=Object.freeze(Object.defineProperty({__proto__:null,bet666:async e=>{const t=new Date;t.setDate(t.getDate()-1),t.setHours(0,0,0,0);const n=new Date;n.setDate(n.getDate()-1),n.setHours(23,59,59,999),await ut(e,{$inc:{"bet666.amount":1},$set:{"bet666.last":new Date}},{"bet666.last":{$gte:t,$lte:n}}),await ut(e,{$set:{"bet666.last":new Date,"bet666.amount":1}},{"bet666.last":{$lt:t}})},drawIncrement:async e=>{await ut(e,{$inc:{draw:1}})},hadMoreThanZeroBerry:async e=>{await ut(e,{$set:{hadMoreThanZeroBerry:!0}})},hasSevenQod:async e=>{await ut(e,{$set:{sevenQuitteOuDouble:!0}})},updateLastGames:async(e,t,n)=>{await ut(e,{$push:{lastGames:{$each:[{gameType:t,endState:n}],$position:0,$slice:20}}})},updateRps:async(e,t)=>{await ut(e,[{$set:{"rps.nb":{$cond:{if:{$eq:["$rps.lastRps",t]},then:{$add:["$rps.nb",1]},else:1}},"rps.lastRps":t}}])},updateTotalBet:async(e,t)=>{await ut(e,{$inc:{totalBet:t}})},winBlackjack:async e=>{await ut(e,{$inc:{black_jack:1}})},workIncrement:async e=>{await ut(e,{$inc:{work:1}})}},Symbol.toStringTag,{value:"Module"})),O$=Object.freeze(Object.defineProperty({__proto__:null,alreadyObtainedRaidReward:(e,t,n)=>t in e.obtainedRewards?e.obtainedRewards[t].includes(n):!1,hasUnlockedRaid:(e,t)=>{var n;return(n=e.unlocked)==null?void 0:n[t]}},Symbol.toStringTag,{value:"Module"})),Ed=new Y.Schema({user:{type:Y.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},currentRaid:{type:{raidId:String,seed:String,progression:{type:[String],default:[]},buffItem:String},default:void 0},obtainedRewards:{type:Object,default:{}},unlocked:{type:Object,default:{}},cooldown:{classic:{type:Date,default:void 0},special:{type:Date,default:void 0}}});Ed.index({user:1});const na=Y.model("UserRaid",Ed),Id=async(e,t)=>{await na.updateOne({user:e},t,{upsert:!0})},x$=Object.freeze(Object.defineProperty({__proto__:null,reduceRaidCooldown:async(e,t)=>{await Id(e,[{$set:{"raid.cooldown.special":{$subtract:[{$ifNull:["$raid.cooldown.special",new Date]},t*3600*1e3]},"raid.cooldown.classic":{$subtract:[{$ifNull:["$raid.cooldown.classic",new Date]},t*3600*1e3]}}}])},unlockRaid:async(e,t)=>{await Id(e,{$set:{[`unlocked.${t}`]:!0}})}},Symbol.toStringTag,{value:"Module"})),Ad=new Y.Schema({user:{type:Y.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},lastShopId:{type:Number,default:0},limit:{type:Object,default:{}}});Ad.index({user:1});const so=Y.model("UserShop",Ad),lt={localField:"_id",foreignField:"user",justOne:!0},ro=new Y.Schema({userId:{type:String,required:!0,unique:!0},birthday:{type:Date,default:null},faction:{type:String,default:mg},canChangeFaction:{type:Boolean,default:!1},canChooseFaction:{type:Boolean,default:!1},settings:{sort:{inventory:{type:String,default:"alpha"}},sendDailyReport:{type:Boolean,default:!1},sendDailyQuest:{type:Boolean,default:!1}},lockUserCommand:{type:Date,default:new Date(0)}},{virtuals:{inventory:{ref:"UserInventory",...lt},raid:{ref:"UserRaid",...lt},games:{ref:"UserGames",...lt},ornaments:{ref:"UserOrnaments",...lt},crew:{ref:"UserCrew",...lt},dailyReport:{ref:"UserDailyReport",...lt},shop:{ref:"UserShop",...lt},meta:{ref:"UserMeta",...lt},quest:{ref:"UserQuest",...lt},questMeta:{ref:"UserQuestMeta",...lt}}});ro.index({userId:1}),ro.post("deleteOne",async function(e){await Ys.deleteOne({user:e._id}),await Pr.deleteOne({user:e._id}),await Ns.deleteOne({user:e._id}),await na.deleteOne({user:e._id}),await gs.deleteOne({user:e._id}),await wi.deleteOne({user:e._id}),await so.deleteOne({user:e._id}),await Zt.deleteOne({user:e._id}),await Rs.deleteOne({user:e._id}),await ta.deleteOne({user:e._id})});const dn=Y.model("User",ro),T$=e=>dn.create({userId:e}),Vd=async(e,t={})=>{const n=await Gd({userId:e},t);return n||await T$(e)},Gd=(e,t={})=>dn.findOne(e,t),N$=Object.freeze(Object.defineProperty({__proto__:null,getFactionRank:async(e,t)=>(await dn.aggregate([{$lookup:{from:"usermetas",localField:"_id",foreignField:"user",as:"meta"}},{$unwind:"$meta"},{$match:{faction:e.faction}},{$setWindowFields:{sortBy:{"meta.xp.amount":-1},output:{rank:{$rank:{}}}}},{$match:{_id:t}},{$project:{rank:1}}]))[0],getNextBirthdays:()=>dn.aggregate([{$match:{birthday:{$ne:null}}},{$addFields:{day:{$dayOfMonth:"$birthday"},month:{$month:"$birthday"},year:{$year:"$birthday"},nextBirthday:{$dateFromParts:{year:{$cond:[{$lt:[{$dateFromParts:{year:{$year:new Date},month:{$month:"$birthday"},day:{$dayOfMonth:"$birthday"}}},new Date]},{$add:[{$year:new Date},1]},{$year:new Date}]},month:{$month:"$birthday"},day:{$dayOfMonth:"$birthday"}}}}},{$sort:{nextBirthday:1}},{$limit:10},{$project:{_id:0,userId:1,birthday:1,nextBirthday:1}}]),getUserBirthday:async e=>await Vd(e,{birthday:1})},Symbol.toStringTag,{value:"Module"})),Vn=async(e,t,n=!1)=>{await dn.updateOne(e,t,{upsert:n})},R$=Object.freeze(Object.defineProperty({__proto__:null,canChangeFaction:async e=>{await Vn({_id:e},{$set:{canChangeFaction:!0}})},canChooseFaction:async e=>{await Vn({_id:e},{$set:{canChooseFaction:!0}})},removeBirthday:async e=>{await Vn({userId:e},{$set:{birthday:null}})},setBirthday:async(e,t)=>{await Vn({userId:e},{$set:{birthday:t}})},updateSendDailyQuest:async(e,t)=>{await Vn({userId:e},{$set:{"settings.sendDailyQuest":t}})},updateSendDailyReport:async(e,t)=>{await Vn({userId:e},{$set:{"settings.sendDailyReport":t}})}},Symbol.toStringTag,{value:"Module"})),P$=async e=>{await dn.deleteOne({userId:e})},C$=async e=>await wi.create({user:e}),L$=async e=>await Pr.create({user:e}),U$=async e=>await ta.create({user:e}),j$=async e=>await na.create({user:e}),W$=async e=>await so.create({user:e}),qd=(e,t)=>{switch(e){case"dailyReport":return C$(t);case"games":return L$(t);case"inventory":return Yd(t);case"meta":return Pd(t);case"raid":return j$(t);case"ornaments":return Ud(t);case"quest":return Hd(t);case"questMeta":return U$(t);case"shop":return W$(t)}},F$=async(e,t,n)=>{if(Array.isArray(t)){const s=await e.populate(t);for(const r of t)s[r]||(s[r]=await qd(r,e._id));return s}else{const s=await e.populate(t,n);return s[t]||(s[t]=await qd(t,e._id)),s}},H$=e=>{Y.connect(e)};M.connectToServices=H$,M.createInvitations=lg,M.crewGetters=ag,M.crewModel=ir,M.crewUpdates=ig,M.deleteInvitations=dg,M.deleteUserById=P$,M.findCrewById=og,M.findInvitations=ug,M.findUser=Gd,M.findUserById=Vd,M.findUserCrew=V0,M.findUserInventory=Od,M.findUserMeta=Cd,M.findUserOrnaments=w$,M.findUserQuest=D$,M.invitationsModel=or,M.populateUser=F$,M.userCrewExists=G0,M.userCrewModel=gs,M.userCrewUpdates=A0,M.userDailyReportModel=wi,M.userGamesModel=Pr,M.userGamesUpdates=q0,M.userGetters=N$,M.userInventoryGetters=u$,M.userInventoryModel=Ys,M.userInventoryUpdates=l$,M.userMetaGetters=p$,M.userMetaModel=Zt,M.userMetaUpdates=_$,M.userModel=dn,M.userOrnamentsModel=Ns,M.userOrnamentsUpdates=v$,M.userQuestGetters=b$,M.userQuestMetaModel=ta,M.userQuestMetaUpdates=Y$,M.userQuestModel=Rs,M.userQuestUpdates=M$,M.userRaidGetters=O$,M.userRaidModel=na,M.userRaidUpdates=x$,M.userShopModel=so,M.userUpdates=R$,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"})});
27
+ `+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var Pl={};function Ll(e,t){_.deprecationHandler!=null&&_.deprecationHandler(e,t),Pl[e]||(Cl(t),Pl[e]=!0)}_.suppressDeprecationWarnings=!1,_.deprecationHandler=null;function rt(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function s_(e){var t,n;for(n in e)I(e,n)&&(t=e[n],rt(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Yi(e,t){var n=qt({},e),s;for(s in t)I(t,s)&&(an(e[s])&&an(t[s])?(n[s]={},qt(n[s],e[s]),qt(n[s],t[s])):t[s]!=null?n[s]=t[s]:delete n[s]);for(s in e)I(e,s)&&!I(t,s)&&an(e[s])&&(n[s]=qt({},n[s]));return n}function Oi(e){e!=null&&this.set(e)}var xi;Object.keys?xi=Object.keys:xi=function(e){var t,n=[];for(t in e)I(e,t)&&n.push(t);return n};var r_={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function a_(e,t,n){var s=this._calendar[e]||this._calendar.sameElse;return rt(s)?s.call(t,n):s}function at(e,t,n){var s=""+Math.abs(e),r=t-s.length,a=e>=0;return(a?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+s}var Ti=/(\[[^\[]*\])|(\\)?([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,Lr=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ni={},Un={};function b(e,t,n,s){var r=s;typeof s=="string"&&(r=function(){return this[s]()}),e&&(Un[e]=r),t&&(Un[t[0]]=function(){return at(r.apply(this,arguments),t[1],t[2])}),n&&(Un[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function i_(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function o_(e){var t=e.match(Ti),n,s;for(n=0,s=t.length;n<s;n++)Un[t[n]]?t[n]=Un[t[n]]:t[n]=i_(t[n]);return function(r){var a="",i;for(i=0;i<s;i++)a+=rt(t[i])?t[i].call(r,e):t[i];return a}}function Ur(e,t){return e.isValid()?(t=Ul(t,e.localeData()),Ni[t]=Ni[t]||o_(t),Ni[t](e)):e.localeData().invalidDate()}function Ul(e,t){var n=5;function s(r){return t.longDateFormat(r)||r}for(Lr.lastIndex=0;n>=0&&Lr.test(e);)e=e.replace(Lr,s),Lr.lastIndex=0,n-=1;return e}var u_={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function l_(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(Ti).map(function(s){return s==="MMMM"||s==="MM"||s==="DD"||s==="dddd"?s.slice(1):s}).join(""),this._longDateFormat[e])}var d_="Invalid date";function c_(){return this._invalidDate}var h_="%d",f_=/\d{1,2}/;function m_(e){return this._ordinal.replace("%d",e)}var g_={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 p_(e,t,n,s){var r=this._relativeTime[n];return rt(r)?r(e,t,n,s):r.replace(/%d/i,e)}function y_(e,t){var n=this._relativeTime[e>0?"future":"past"];return rt(n)?n(t):n.replace(/%s/i,t)}var jl={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 Pe(e){return typeof e=="string"?jl[e]||jl[e.toLowerCase()]:void 0}function Ri(e){var t={},n,s;for(s in e)I(e,s)&&(n=Pe(s),n&&(t[n]=e[s]));return t}var __={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 v_(e){var t=[],n;for(n in e)I(e,n)&&t.push({unit:n,priority:__[n]});return t.sort(function(s,r){return s.priority-r.priority}),t}var Wl=/\d/,Se=/\d\d/,Fl=/\d{3}/,Ci=/\d{4}/,jr=/[+-]?\d{6}/,J=/\d\d?/,Hl=/\d\d\d\d?/,El=/\d\d\d\d\d\d?/,Wr=/\d{1,3}/,Pi=/\d{1,4}/,Fr=/[+-]?\d{1,6}/,jn=/\d+/,Hr=/[+-]?\d+/,w_=/Z|[+-]\d\d:?\d\d/gi,Er=/Z|[+-]\d\d(?::?\d\d)?/gi,k_=/[+-]?\d+(\.\d{1,3})?/,vs=/[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,Wn=/^[1-9]\d?/,Li=/^([1-9]\d|\d)/,Ir;Ir={};function k(e,t,n){Ir[e]=rt(t)?t:function(s,r){return s&&n?n:t}}function $_(e,t){return I(Ir,e)?Ir[e](t._strict,t._locale):new RegExp(S_(e))}function S_(e){return Tt(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,s,r,a){return n||s||r||a}))}function Tt(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Le(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function C(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Le(t)),n}var Ui={};function q(e,t){var n,s=t,r;for(typeof e=="string"&&(e=[e]),xt(t)&&(s=function(a,i){i[t]=C(a)}),r=e.length,n=0;n<r;n++)Ui[e[n]]=s}function ws(e,t){q(e,function(n,s,r,a){r._w=r._w||{},t(n,r._w,r,a)})}function b_(e,t,n){t!=null&&I(Ui,e)&&Ui[e](t,n._a,n,e)}function Ar(e){return e%4===0&&e%100!==0||e%400===0}var he=0,Nt=1,it=2,oe=3,qe=4,Rt=5,on=6,M_=7,D_=8;b("Y",0,0,function(){var e=this.year();return e<=9999?at(e,4):"+"+e}),b(0,["YY",2],0,function(){return this.year()%100}),b(0,["YYYY",4],0,"year"),b(0,["YYYYY",5],0,"year"),b(0,["YYYYYY",6,!0],0,"year"),k("Y",Hr),k("YY",J,Se),k("YYYY",Pi,Ci),k("YYYYY",Fr,jr),k("YYYYYY",Fr,jr),q(["YYYYY","YYYYYY"],he),q("YYYY",function(e,t){t[he]=e.length===2?_.parseTwoDigitYear(e):C(e)}),q("YY",function(e,t){t[he]=_.parseTwoDigitYear(e)}),q("Y",function(e,t){t[he]=parseInt(e,10)});function ks(e){return Ar(e)?366:365}_.parseTwoDigitYear=function(e){return C(e)+(C(e)>68?1900:2e3)};var Il=Fn("FullYear",!0);function Y_(){return Ar(this.year())}function Fn(e,t){return function(n){return n!=null?(Al(this,e,n),_.updateOffset(this,t),this):$s(this,e)}}function $s(e,t){if(!e.isValid())return NaN;var n=e._d,s=e._isUTC;switch(t){case"Milliseconds":return s?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return s?n.getUTCSeconds():n.getSeconds();case"Minutes":return s?n.getUTCMinutes():n.getMinutes();case"Hours":return s?n.getUTCHours():n.getHours();case"Date":return s?n.getUTCDate():n.getDate();case"Day":return s?n.getUTCDay():n.getDay();case"Month":return s?n.getUTCMonth():n.getMonth();case"FullYear":return s?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Al(e,t,n){var s,r,a,i,o;if(!(!e.isValid()||isNaN(n))){switch(s=e._d,r=e._isUTC,t){case"Milliseconds":return void(r?s.setUTCMilliseconds(n):s.setMilliseconds(n));case"Seconds":return void(r?s.setUTCSeconds(n):s.setSeconds(n));case"Minutes":return void(r?s.setUTCMinutes(n):s.setMinutes(n));case"Hours":return void(r?s.setUTCHours(n):s.setHours(n));case"Date":return void(r?s.setUTCDate(n):s.setDate(n));case"FullYear":break;default:return}a=n,i=e.month(),o=e.date(),o=o===29&&i===1&&!Ar(a)?28:o,r?s.setUTCFullYear(a,i,o):s.setFullYear(a,i,o)}}function O_(e){return e=Pe(e),rt(this[e])?this[e]():this}function x_(e,t){if(typeof e=="object"){e=Ri(e);var n=v_(e),s,r=n.length;for(s=0;s<r;s++)this[n[s].unit](e[n[s].unit])}else if(e=Pe(e),rt(this[e]))return this[e](t);return this}function T_(e,t){return(e%t+t)%t}var re;Array.prototype.indexOf?re=Array.prototype.indexOf:re=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function ji(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=T_(t,12);return e+=(t-n)/12,n===1?Ar(e)?29:28:31-n%7%2}b("M",["MM",2],"Mo",function(){return this.month()+1}),b("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),b("MMMM",0,0,function(e){return this.localeData().months(this,e)}),k("M",J,Wn),k("MM",J,Se),k("MMM",function(e,t){return t.monthsShortRegex(e)}),k("MMMM",function(e,t){return t.monthsRegex(e)}),q(["M","MM"],function(e,t){t[Nt]=C(e)-1}),q(["MMM","MMMM"],function(e,t,n,s){var r=n._locale.monthsParse(e,s,n._strict);r!=null?t[Nt]=r:T(n).invalidMonth=e});var N_="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Vl="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Gl=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,R_=vs,C_=vs;function P_(e,t){return e?Ve(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Gl).test(t)?"format":"standalone"][e.month()]:Ve(this._months)?this._months:this._months.standalone}function L_(e,t){return e?Ve(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Gl.test(t)?"format":"standalone"][e.month()]:Ve(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function U_(e,t,n){var s,r,a,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)a=st([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(a,"").toLocaleLowerCase();return n?t==="MMM"?(r=re.call(this._shortMonthsParse,i),r!==-1?r:null):(r=re.call(this._longMonthsParse,i),r!==-1?r:null):t==="MMM"?(r=re.call(this._shortMonthsParse,i),r!==-1?r:(r=re.call(this._longMonthsParse,i),r!==-1?r:null)):(r=re.call(this._longMonthsParse,i),r!==-1?r:(r=re.call(this._shortMonthsParse,i),r!==-1?r:null))}function j_(e,t,n){var s,r,a;if(this._monthsParseExact)return U_.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++)if(r=st([2e3,s]),n&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),!n&&!this._monthsParse[s]&&(a="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[s]=new RegExp(a.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[s].test(e)||n&&t==="MMM"&&this._shortMonthsParse[s].test(e)||!n&&this._monthsParse[s].test(e))return s}function ql(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=C(t);else if(t=e.localeData().monthsParse(t),!xt(t))return e}var n=t,s=e.date();return s=s<29?s:Math.min(s,ji(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,s):e._d.setMonth(n,s),e}function Bl(e){return e!=null?(ql(this,e),_.updateOffset(this,!0),this):$s(this,"Month")}function W_(){return ji(this.year(),this.month())}function F_(e){return this._monthsParseExact?(I(this,"_monthsRegex")||zl.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(I(this,"_monthsShortRegex")||(this._monthsShortRegex=R_),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function H_(e){return this._monthsParseExact?(I(this,"_monthsRegex")||zl.call(this),e?this._monthsStrictRegex:this._monthsRegex):(I(this,"_monthsRegex")||(this._monthsRegex=C_),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function zl(){function e(u,l){return l.length-u.length}var t=[],n=[],s=[],r,a,i,o;for(r=0;r<12;r++)a=st([2e3,r]),i=Tt(this.monthsShort(a,"")),o=Tt(this.months(a,"")),t.push(i),n.push(o),s.push(o),s.push(i);t.sort(e),n.sort(e),s.sort(e),this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function E_(e,t,n,s,r,a,i){var o;return e<100&&e>=0?(o=new Date(e+400,t,n,s,r,a,i),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,s,r,a,i),o}function Ss(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Vr(e,t,n){var s=7+t-n,r=(7+Ss(e,0,s).getUTCDay()-t)%7;return-r+s-1}function Zl(e,t,n,s,r){var a=(7+n-s)%7,i=Vr(e,s,r),o=1+7*(t-1)+a+i,u,l;return o<=0?(u=e-1,l=ks(u)+o):o>ks(e)?(u=e+1,l=o-ks(e)):(u=e,l=o),{year:u,dayOfYear:l}}function bs(e,t,n){var s=Vr(e.year(),t,n),r=Math.floor((e.dayOfYear()-s-1)/7)+1,a,i;return r<1?(i=e.year()-1,a=r+Ct(i,t,n)):r>Ct(e.year(),t,n)?(a=r-Ct(e.year(),t,n),i=e.year()+1):(i=e.year(),a=r),{week:a,year:i}}function Ct(e,t,n){var s=Vr(e,t,n),r=Vr(e+1,t,n);return(ks(e)-s+r)/7}b("w",["ww",2],"wo","week"),b("W",["WW",2],"Wo","isoWeek"),k("w",J,Wn),k("ww",J,Se),k("W",J,Wn),k("WW",J,Se),ws(["w","ww","W","WW"],function(e,t,n,s){t[s.substr(0,1)]=C(e)});function I_(e){return bs(e,this._week.dow,this._week.doy).week}var A_={dow:0,doy:6};function V_(){return this._week.dow}function G_(){return this._week.doy}function q_(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function B_(e){var t=bs(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}b("d",0,"do","day"),b("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),b("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),b("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),b("e",0,0,"weekday"),b("E",0,0,"isoWeekday"),k("d",J),k("e",J),k("E",J),k("dd",function(e,t){return t.weekdaysMinRegex(e)}),k("ddd",function(e,t){return t.weekdaysShortRegex(e)}),k("dddd",function(e,t){return t.weekdaysRegex(e)}),ws(["dd","ddd","dddd"],function(e,t,n,s){var r=n._locale.weekdaysParse(e,s,n._strict);r!=null?t.d=r:T(n).invalidWeekday=e}),ws(["d","e","E"],function(e,t,n,s){t[s]=C(e)});function z_(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Z_(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Wi(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Q_="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ql="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),J_="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),K_=vs,X_=vs,ev=vs;function tv(e,t){var n=Ve(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Wi(n,this._week.dow):e?n[e.day()]:n}function nv(e){return e===!0?Wi(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function sv(e){return e===!0?Wi(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function rv(e,t,n){var s,r,a,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)a=st([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(a,"").toLocaleLowerCase();return n?t==="dddd"?(r=re.call(this._weekdaysParse,i),r!==-1?r:null):t==="ddd"?(r=re.call(this._shortWeekdaysParse,i),r!==-1?r:null):(r=re.call(this._minWeekdaysParse,i),r!==-1?r:null):t==="dddd"?(r=re.call(this._weekdaysParse,i),r!==-1||(r=re.call(this._shortWeekdaysParse,i),r!==-1)?r:(r=re.call(this._minWeekdaysParse,i),r!==-1?r:null)):t==="ddd"?(r=re.call(this._shortWeekdaysParse,i),r!==-1||(r=re.call(this._weekdaysParse,i),r!==-1)?r:(r=re.call(this._minWeekdaysParse,i),r!==-1?r:null)):(r=re.call(this._minWeekdaysParse,i),r!==-1||(r=re.call(this._weekdaysParse,i),r!==-1)?r:(r=re.call(this._shortWeekdaysParse,i),r!==-1?r:null))}function av(e,t,n){var s,r,a;if(this._weekdaysParseExact)return rv.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++)if(r=st([2e3,1]).day(s),n&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(a="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[s]=new RegExp(a.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[s].test(e)||n&&t==="ddd"&&this._shortWeekdaysParse[s].test(e)||n&&t==="dd"&&this._minWeekdaysParse[s].test(e)||!n&&this._weekdaysParse[s].test(e))return s}function iv(e){if(!this.isValid())return e!=null?this:NaN;var t=$s(this,"Day");return e!=null?(e=z_(e,this.localeData()),this.add(e-t,"d")):t}function ov(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function uv(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Z_(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function lv(e){return this._weekdaysParseExact?(I(this,"_weekdaysRegex")||Fi.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(I(this,"_weekdaysRegex")||(this._weekdaysRegex=K_),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function dv(e){return this._weekdaysParseExact?(I(this,"_weekdaysRegex")||Fi.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(I(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=X_),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function cv(e){return this._weekdaysParseExact?(I(this,"_weekdaysRegex")||Fi.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(I(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ev),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Fi(){function e(d,h){return h.length-d.length}var t=[],n=[],s=[],r=[],a,i,o,u,l;for(a=0;a<7;a++)i=st([2e3,1]).day(a),o=Tt(this.weekdaysMin(i,"")),u=Tt(this.weekdaysShort(i,"")),l=Tt(this.weekdays(i,"")),t.push(o),n.push(u),s.push(l),r.push(o),r.push(u),r.push(l);t.sort(e),n.sort(e),s.sort(e),r.sort(e),this._weekdaysRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Hi(){return this.hours()%12||12}function hv(){return this.hours()||24}b("H",["HH",2],0,"hour"),b("h",["hh",2],0,Hi),b("k",["kk",2],0,hv),b("hmm",0,0,function(){return""+Hi.apply(this)+at(this.minutes(),2)}),b("hmmss",0,0,function(){return""+Hi.apply(this)+at(this.minutes(),2)+at(this.seconds(),2)}),b("Hmm",0,0,function(){return""+this.hours()+at(this.minutes(),2)}),b("Hmmss",0,0,function(){return""+this.hours()+at(this.minutes(),2)+at(this.seconds(),2)});function Jl(e,t){b(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Jl("a",!0),Jl("A",!1);function Kl(e,t){return t._meridiemParse}k("a",Kl),k("A",Kl),k("H",J,Li),k("h",J,Wn),k("k",J,Wn),k("HH",J,Se),k("hh",J,Se),k("kk",J,Se),k("hmm",Hl),k("hmmss",El),k("Hmm",Hl),k("Hmmss",El),q(["H","HH"],oe),q(["k","kk"],function(e,t,n){var s=C(e);t[oe]=s===24?0:s}),q(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),q(["h","hh"],function(e,t,n){t[oe]=C(e),T(n).bigHour=!0}),q("hmm",function(e,t,n){var s=e.length-2;t[oe]=C(e.substr(0,s)),t[qe]=C(e.substr(s)),T(n).bigHour=!0}),q("hmmss",function(e,t,n){var s=e.length-4,r=e.length-2;t[oe]=C(e.substr(0,s)),t[qe]=C(e.substr(s,2)),t[Rt]=C(e.substr(r)),T(n).bigHour=!0}),q("Hmm",function(e,t,n){var s=e.length-2;t[oe]=C(e.substr(0,s)),t[qe]=C(e.substr(s))}),q("Hmmss",function(e,t,n){var s=e.length-4,r=e.length-2;t[oe]=C(e.substr(0,s)),t[qe]=C(e.substr(s,2)),t[Rt]=C(e.substr(r))});function fv(e){return(e+"").toLowerCase().charAt(0)==="p"}var mv=/[ap]\.?m?\.?/i,gv=Fn("Hours",!0);function pv(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var Xl={calendar:r_,longDateFormat:u_,invalidDate:d_,ordinal:h_,dayOfMonthOrdinalParse:f_,relativeTime:g_,months:N_,monthsShort:Vl,week:A_,weekdays:Q_,weekdaysMin:J_,weekdaysShort:Ql,meridiemParse:mv},te={},Ms={},Ds;function yv(e,t){var n,s=Math.min(e.length,t.length);for(n=0;n<s;n+=1)if(e[n]!==t[n])return n;return s}function ed(e){return e&&e.toLowerCase().replace("_","-")}function _v(e){for(var t=0,n,s,r,a;t<e.length;){for(a=ed(e[t]).split("-"),n=a.length,s=ed(e[t+1]),s=s?s.split("-"):null;n>0;){if(r=Gr(a.slice(0,n).join("-")),r)return r;if(s&&s.length>=n&&yv(a,s)>=n-1)break;n--}t++}return Ds}function vv(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Gr(e){var t=null,n;if(te[e]===void 0&&typeof module<"u"&&module&&module.exports&&vv(e))try{t=Ds._abbr,n=require,n("./locale/"+e),Bt(t)}catch{te[e]=null}return te[e]}function Bt(e,t){var n;return e&&(ve(t)?n=Pt(e):n=Ei(e,t),n?Ds=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ds._abbr}function Ei(e,t){if(t!==null){var n,s=Xl;if(t.abbr=e,te[e]!=null)Ll("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."),s=te[e]._config;else if(t.parentLocale!=null)if(te[t.parentLocale]!=null)s=te[t.parentLocale]._config;else if(n=Gr(t.parentLocale),n!=null)s=n._config;else return Ms[t.parentLocale]||(Ms[t.parentLocale]=[]),Ms[t.parentLocale].push({name:e,config:t}),null;return te[e]=new Oi(Yi(s,t)),Ms[e]&&Ms[e].forEach(function(r){Ei(r.name,r.config)}),Bt(e),te[e]}else return delete te[e],null}function wv(e,t){if(t!=null){var n,s,r=Xl;te[e]!=null&&te[e].parentLocale!=null?te[e].set(Yi(te[e]._config,t)):(s=Gr(e),s!=null&&(r=s._config),t=Yi(r,t),s==null&&(t.abbr=e),n=new Oi(t),n.parentLocale=te[e],te[e]=n),Bt(e)}else te[e]!=null&&(te[e].parentLocale!=null?(te[e]=te[e].parentLocale,e===Bt()&&Bt(e)):te[e]!=null&&delete te[e]);return te[e]}function Pt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ds;if(!Ve(e)){if(t=Gr(e),t)return t;e=[e]}return _v(e)}function kv(){return xi(te)}function Ii(e){var t,n=e._a;return n&&T(e).overflow===-2&&(t=n[Nt]<0||n[Nt]>11?Nt:n[it]<1||n[it]>ji(n[he],n[Nt])?it:n[oe]<0||n[oe]>24||n[oe]===24&&(n[qe]!==0||n[Rt]!==0||n[on]!==0)?oe:n[qe]<0||n[qe]>59?qe:n[Rt]<0||n[Rt]>59?Rt:n[on]<0||n[on]>999?on:-1,T(e)._overflowDayOfYear&&(t<he||t>it)&&(t=it),T(e)._overflowWeeks&&t===-1&&(t=M_),T(e)._overflowWeekday&&t===-1&&(t=D_),T(e).overflow=t),e}var $v=/^\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)?)?$/,Sv=/^\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)?)?$/,bv=/Z|[+-]\d\d(?::?\d\d)?/,qr=[["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]],Ai=[["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/]],Mv=/^\/?Date\((-?\d+)/i,Dv=/^(?:(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}))$/,Yv={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 td(e){var t,n,s=e._i,r=$v.exec(s)||Sv.exec(s),a,i,o,u,l=qr.length,d=Ai.length;if(r){for(T(e).iso=!0,t=0,n=l;t<n;t++)if(qr[t][1].exec(r[1])){i=qr[t][0],a=qr[t][2]!==!1;break}if(i==null){e._isValid=!1;return}if(r[3]){for(t=0,n=d;t<n;t++)if(Ai[t][1].exec(r[3])){o=(r[2]||" ")+Ai[t][0];break}if(o==null){e._isValid=!1;return}}if(!a&&o!=null){e._isValid=!1;return}if(r[4])if(bv.exec(r[4]))u="Z";else{e._isValid=!1;return}e._f=i+(o||"")+(u||""),Gi(e)}else e._isValid=!1}function Ov(e,t,n,s,r,a){var i=[xv(e),Vl.indexOf(t),parseInt(n,10),parseInt(s,10),parseInt(r,10)];return a&&i.push(parseInt(a,10)),i}function xv(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Tv(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Nv(e,t,n){if(e){var s=Ql.indexOf(e),r=new Date(t[0],t[1],t[2]).getDay();if(s!==r)return T(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function Rv(e,t,n){if(e)return Yv[e];if(t)return 0;var s=parseInt(n,10),r=s%100,a=(s-r)/100;return a*60+r}function nd(e){var t=Dv.exec(Tv(e._i)),n;if(t){if(n=Ov(t[4],t[3],t[2],t[5],t[6],t[7]),!Nv(t[1],n,e))return;e._a=n,e._tzm=Rv(t[8],t[9],t[10]),e._d=Ss.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),T(e).rfc2822=!0}else e._isValid=!1}function Cv(e){var t=Mv.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(td(e),e._isValid===!1)delete e._isValid;else return;if(nd(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:_.createFromInputFallback(e)}_.createFromInputFallback=Ce("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(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function Hn(e,t,n){return e??t??n}function Pv(e){var t=new Date(_.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Vi(e){var t,n,s=[],r,a,i;if(!e._d){for(r=Pv(e),e._w&&e._a[it]==null&&e._a[Nt]==null&&Lv(e),e._dayOfYear!=null&&(i=Hn(e._a[he],r[he]),(e._dayOfYear>ks(i)||e._dayOfYear===0)&&(T(e)._overflowDayOfYear=!0),n=Ss(i,0,e._dayOfYear),e._a[Nt]=n.getUTCMonth(),e._a[it]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[oe]===24&&e._a[qe]===0&&e._a[Rt]===0&&e._a[on]===0&&(e._nextDay=!0,e._a[oe]=0),e._d=(e._useUTC?Ss:E_).apply(null,s),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[oe]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(T(e).weekdayMismatch=!0)}}function Lv(e){var t,n,s,r,a,i,o,u,l;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,i=4,n=Hn(t.GG,e._a[he],bs(K(),1,4).year),s=Hn(t.W,1),r=Hn(t.E,1),(r<1||r>7)&&(u=!0)):(a=e._locale._week.dow,i=e._locale._week.doy,l=bs(K(),a,i),n=Hn(t.gg,e._a[he],l.year),s=Hn(t.w,l.week),t.d!=null?(r=t.d,(r<0||r>6)&&(u=!0)):t.e!=null?(r=t.e+a,(t.e<0||t.e>6)&&(u=!0)):r=a),s<1||s>Ct(n,a,i)?T(e)._overflowWeeks=!0:u!=null?T(e)._overflowWeekday=!0:(o=Zl(n,s,r,a,i),e._a[he]=o.year,e._dayOfYear=o.dayOfYear)}_.ISO_8601=function(){},_.RFC_2822=function(){};function Gi(e){if(e._f===_.ISO_8601){td(e);return}if(e._f===_.RFC_2822){nd(e);return}e._a=[],T(e).empty=!0;var t=""+e._i,n,s,r,a,i,o=t.length,u=0,l,d;for(r=Ul(e._f,e._locale).match(Ti)||[],d=r.length,n=0;n<d;n++)a=r[n],s=(t.match($_(a,e))||[])[0],s&&(i=t.substr(0,t.indexOf(s)),i.length>0&&T(e).unusedInput.push(i),t=t.slice(t.indexOf(s)+s.length),u+=s.length),Un[a]?(s?T(e).empty=!1:T(e).unusedTokens.push(a),b_(a,s,e)):e._strict&&!s&&T(e).unusedTokens.push(a);T(e).charsLeftOver=o-u,t.length>0&&T(e).unusedInput.push(t),e._a[oe]<=12&&T(e).bigHour===!0&&e._a[oe]>0&&(T(e).bigHour=void 0),T(e).parsedDateParts=e._a.slice(0),T(e).meridiem=e._meridiem,e._a[oe]=Uv(e._locale,e._a[oe],e._meridiem),l=T(e).era,l!==null&&(e._a[he]=e._locale.erasConvertYear(l,e._a[he])),Vi(e),Ii(e)}function Uv(e,t,n){var s;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(s=e.isPM(n),s&&t<12&&(t+=12),!s&&t===12&&(t=0)),t)}function jv(e){var t,n,s,r,a,i,o=!1,u=e._f.length;if(u===0){T(e).invalidFormat=!0,e._d=new Date(NaN);return}for(r=0;r<u;r++)a=0,i=!1,t=Di({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[r],Gi(t),bi(t)&&(i=!0),a+=T(t).charsLeftOver,a+=T(t).unusedTokens.length*10,T(t).score=a,o?a<s&&(s=a,n=t):(s==null||a<s||i)&&(s=a,n=t,i&&(o=!0));qt(e,n||t)}function Wv(e){if(!e._d){var t=Ri(e._i),n=t.day===void 0?t.date:t.day;e._a=Nl([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(s){return s&&parseInt(s,10)}),Vi(e)}}function Fv(e){var t=new _s(Ii(sd(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function sd(e){var t=e._i,n=e._f;return e._locale=e._locale||Pt(e._l),t===null||n===void 0&&t===""?Pr({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),Ge(t)?new _s(Ii(t)):(ys(t)?e._d=t:Ve(n)?jv(e):n?Gi(e):Hv(e),bi(e)||(e._d=null),e))}function Hv(e){var t=e._i;ve(t)?e._d=new Date(_.now()):ys(t)?e._d=new Date(t.valueOf()):typeof t=="string"?Cv(e):Ve(t)?(e._a=Nl(t.slice(0),function(n){return parseInt(n,10)}),Vi(e)):an(t)?Wv(e):xt(t)?e._d=new Date(t):_.createFromInputFallback(e)}function rd(e,t,n,s,r){var a={};return(t===!0||t===!1)&&(s=t,t=void 0),(n===!0||n===!1)&&(s=n,n=void 0),(an(e)&&$i(e)||Ve(e)&&e.length===0)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=r,a._l=n,a._i=e,a._f=t,a._strict=s,Fv(a)}function K(e,t,n,s){return rd(e,t,n,s,!1)}var Ev=Ce("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=K.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Pr()}),Iv=Ce("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=K.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Pr()});function ad(e,t){var n,s;if(t.length===1&&Ve(t[0])&&(t=t[0]),!t.length)return K();for(n=t[0],s=1;s<t.length;++s)(!t[s].isValid()||t[s][e](n))&&(n=t[s]);return n}function Av(){var e=[].slice.call(arguments,0);return ad("isBefore",e)}function Vv(){var e=[].slice.call(arguments,0);return ad("isAfter",e)}var Gv=function(){return Date.now?Date.now():+new Date},Ys=["year","quarter","month","week","day","hour","minute","second","millisecond"];function qv(e){var t,n=!1,s,r=Ys.length;for(t in e)if(I(e,t)&&!(re.call(Ys,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(s=0;s<r;++s)if(e[Ys[s]]){if(n)return!1;parseFloat(e[Ys[s]])!==C(e[Ys[s]])&&(n=!0)}return!0}function Bv(){return this._isValid}function zv(){return Be(NaN)}function Br(e){var t=Ri(e),n=t.year||0,s=t.quarter||0,r=t.month||0,a=t.week||t.isoWeek||0,i=t.day||0,o=t.hour||0,u=t.minute||0,l=t.second||0,d=t.millisecond||0;this._isValid=qv(t),this._milliseconds=+d+l*1e3+u*6e4+o*1e3*60*60,this._days=+i+a*7,this._months=+r+s*3+n*12,this._data={},this._locale=Pt(),this._bubble()}function zr(e){return e instanceof Br}function qi(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Zv(e,t,n){var s=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),a=0,i;for(i=0;i<s;i++)C(e[i])!==C(t[i])&&a++;return a+r}function id(e,t){b(e,0,0,function(){var n=this.utcOffset(),s="+";return n<0&&(n=-n,s="-"),s+at(~~(n/60),2)+t+at(~~n%60,2)})}id("Z",":"),id("ZZ",""),k("Z",Er),k("ZZ",Er),q(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Bi(Er,e)});var Qv=/([\+\-]|\d\d)/gi;function Bi(e,t){var n=(t||"").match(e),s,r,a;return n===null?null:(s=n[n.length-1]||[],r=(s+"").match(Qv)||["-",0,0],a=+(r[1]*60)+C(r[2]),a===0?0:r[0]==="+"?a:-a)}function zi(e,t){var n,s;return t._isUTC?(n=t.clone(),s=(Ge(e)||ys(e)?e.valueOf():K(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+s),_.updateOffset(n,!1),n):K(e).local()}function Zi(e){return-Math.round(e._d.getTimezoneOffset())}_.updateOffset=function(){};function Jv(e,t,n){var s=this._offset||0,r;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Bi(Er,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(r=Zi(this)),this._offset=e,this._isUTC=!0,r!=null&&this.add(r,"m"),s!==e&&(!t||this._changeInProgress?dd(this,Be(e-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,_.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?s:Zi(this)}function Kv(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Xv(e){return this.utcOffset(0,e)}function ew(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Zi(this),"m")),this}function tw(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Bi(w_,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function nw(e){return this.isValid()?(e=e?K(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function sw(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function rw(){if(!ve(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Di(e,this),e=sd(e),e._a?(t=e._isUTC?st(e._a):K(e._a),this._isDSTShifted=this.isValid()&&Zv(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function aw(){return this.isValid()?!this._isUTC:!1}function iw(){return this.isValid()?this._isUTC:!1}function od(){return this.isValid()?this._isUTC&&this._offset===0:!1}var ow=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,uw=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Be(e,t){var n=e,s=null,r,a,i;return zr(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:xt(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(s=ow.exec(e))?(r=s[1]==="-"?-1:1,n={y:0,d:C(s[it])*r,h:C(s[oe])*r,m:C(s[qe])*r,s:C(s[Rt])*r,ms:C(qi(s[on]*1e3))*r}):(s=uw.exec(e))?(r=s[1]==="-"?-1:1,n={y:un(s[2],r),M:un(s[3],r),w:un(s[4],r),d:un(s[5],r),h:un(s[6],r),m:un(s[7],r),s:un(s[8],r)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(i=lw(K(n.from),K(n.to)),n={},n.ms=i.milliseconds,n.M=i.months),a=new Br(n),zr(e)&&I(e,"_locale")&&(a._locale=e._locale),zr(e)&&I(e,"_isValid")&&(a._isValid=e._isValid),a}Be.fn=Br.prototype,Be.invalid=zv;function un(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function ud(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function lw(e,t){var n;return e.isValid()&&t.isValid()?(t=zi(t,e),e.isBefore(t)?n=ud(e,t):(n=ud(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function ld(e,t){return function(n,s){var r,a;return s!==null&&!isNaN(+s)&&(Ll(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=s,s=a),r=Be(n,s),dd(this,r,e),this}}function dd(e,t,n,s){var r=t._milliseconds,a=qi(t._days),i=qi(t._months);e.isValid()&&(s=s??!0,i&&ql(e,$s(e,"Month")+i*n),a&&Al(e,"Date",$s(e,"Date")+a*n),r&&e._d.setTime(e._d.valueOf()+r*n),s&&_.updateOffset(e,a||i))}var dw=ld(1,"add"),cw=ld(-1,"subtract");function cd(e){return typeof e=="string"||e instanceof String}function hw(e){return Ge(e)||ys(e)||cd(e)||xt(e)||mw(e)||fw(e)||e===null||e===void 0}function fw(e){var t=an(e)&&!$i(e),n=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],r,a,i=s.length;for(r=0;r<i;r+=1)a=s[r],n=n||I(e,a);return t&&n}function mw(e){var t=Ve(e),n=!1;return t&&(n=e.filter(function(s){return!xt(s)&&cd(e)}).length===0),t&&n}function gw(e){var t=an(e)&&!$i(e),n=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],r,a;for(r=0;r<s.length;r+=1)a=s[r],n=n||I(e,a);return t&&n}function pw(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function yw(e,t){arguments.length===1&&(arguments[0]?hw(arguments[0])?(e=arguments[0],t=void 0):gw(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||K(),s=zi(n,this).startOf("day"),r=_.calendarFormat(this,s)||"sameElse",a=t&&(rt(t[r])?t[r].call(this,n):t[r]);return this.format(a||this.localeData().calendar(r,this,K(n)))}function _w(){return new _s(this)}function vw(e,t){var n=Ge(e)?e:K(e);return this.isValid()&&n.isValid()?(t=Pe(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function ww(e,t){var n=Ge(e)?e:K(e);return this.isValid()&&n.isValid()?(t=Pe(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function kw(e,t,n,s){var r=Ge(e)?e:K(e),a=Ge(t)?t:K(t);return this.isValid()&&r.isValid()&&a.isValid()?(s=s||"()",(s[0]==="("?this.isAfter(r,n):!this.isBefore(r,n))&&(s[1]===")"?this.isBefore(a,n):!this.isAfter(a,n))):!1}function $w(e,t){var n=Ge(e)?e:K(e),s;return this.isValid()&&n.isValid()?(t=Pe(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(s=n.valueOf(),this.clone().startOf(t).valueOf()<=s&&s<=this.clone().endOf(t).valueOf())):!1}function Sw(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function bw(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Mw(e,t,n){var s,r,a;if(!this.isValid())return NaN;if(s=zi(e,this),!s.isValid())return NaN;switch(r=(s.utcOffset()-this.utcOffset())*6e4,t=Pe(t),t){case"year":a=Zr(this,s)/12;break;case"month":a=Zr(this,s);break;case"quarter":a=Zr(this,s)/3;break;case"second":a=(this-s)/1e3;break;case"minute":a=(this-s)/6e4;break;case"hour":a=(this-s)/36e5;break;case"day":a=(this-s-r)/864e5;break;case"week":a=(this-s-r)/6048e5;break;default:a=this-s}return n?a:Le(a)}function Zr(e,t){if(e.date()<t.date())return-Zr(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),s=e.clone().add(n,"months"),r,a;return t-s<0?(r=e.clone().add(n-1,"months"),a=(t-s)/(s-r)):(r=e.clone().add(n+1,"months"),a=(t-s)/(r-s)),-(n+a)||0}_.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",_.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Dw(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Yw(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?Ur(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):rt(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Ur(n,"Z")):Ur(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Ow(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,s,r,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',s=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]',this.format(n+s+r+a)}function xw(e){e||(e=this.isUtc()?_.defaultFormatUtc:_.defaultFormat);var t=Ur(this,e);return this.localeData().postformat(t)}function Tw(e,t){return this.isValid()&&(Ge(e)&&e.isValid()||K(e).isValid())?Be({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Nw(e){return this.from(K(),e)}function Rw(e,t){return this.isValid()&&(Ge(e)&&e.isValid()||K(e).isValid())?Be({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Cw(e){return this.to(K(),e)}function hd(e){var t;return e===void 0?this._locale._abbr:(t=Pt(e),t!=null&&(this._locale=t),this)}var fd=Ce("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function md(){return this._locale}var Qr=1e3,En=60*Qr,Jr=60*En,gd=(365*400+97)*24*Jr;function In(e,t){return(e%t+t)%t}function pd(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-gd:new Date(e,t,n).valueOf()}function yd(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-gd:Date.UTC(e,t,n)}function Pw(e){var t,n;if(e=Pe(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?yd:pd,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=In(t+(this._isUTC?0:this.utcOffset()*En),Jr);break;case"minute":t=this._d.valueOf(),t-=In(t,En);break;case"second":t=this._d.valueOf(),t-=In(t,Qr);break}return this._d.setTime(t),_.updateOffset(this,!0),this}function Lw(e){var t,n;if(e=Pe(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?yd:pd,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Jr-In(t+(this._isUTC?0:this.utcOffset()*En),Jr)-1;break;case"minute":t=this._d.valueOf(),t+=En-In(t,En)-1;break;case"second":t=this._d.valueOf(),t+=Qr-In(t,Qr)-1;break}return this._d.setTime(t),_.updateOffset(this,!0),this}function Uw(){return this._d.valueOf()-(this._offset||0)*6e4}function jw(){return Math.floor(this.valueOf()/1e3)}function Ww(){return new Date(this.valueOf())}function Fw(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Hw(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Ew(){return this.isValid()?this.toISOString():null}function Iw(){return bi(this)}function Aw(){return qt({},T(this))}function Vw(){return T(this).overflow}function Gw(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}b("N",0,0,"eraAbbr"),b("NN",0,0,"eraAbbr"),b("NNN",0,0,"eraAbbr"),b("NNNN",0,0,"eraName"),b("NNNNN",0,0,"eraNarrow"),b("y",["y",1],"yo","eraYear"),b("y",["yy",2],0,"eraYear"),b("y",["yyy",3],0,"eraYear"),b("y",["yyyy",4],0,"eraYear"),k("N",Qi),k("NN",Qi),k("NNN",Qi),k("NNNN",nk),k("NNNNN",sk),q(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,s){var r=n._locale.erasParse(e,s,n._strict);r?T(n).era=r:T(n).invalidEra=e}),k("y",jn),k("yy",jn),k("yyy",jn),k("yyyy",jn),k("yo",rk),q(["y","yy","yyy","yyyy"],he),q(["yo"],function(e,t,n,s){var r;n._locale._eraYearOrdinalRegex&&(r=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[he]=n._locale.eraYearOrdinalParse(e,r):t[he]=parseInt(e,10)});function qw(e,t){var n,s,r,a=this._eras||Pt("en")._eras;for(n=0,s=a.length;n<s;++n){switch(typeof a[n].since){case"string":r=_(a[n].since).startOf("day"),a[n].since=r.valueOf();break}switch(typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":r=_(a[n].until).startOf("day").valueOf(),a[n].until=r.valueOf();break}}return a}function Bw(e,t,n){var s,r,a=this.eras(),i,o,u;for(e=e.toUpperCase(),s=0,r=a.length;s<r;++s)if(i=a[s].name.toUpperCase(),o=a[s].abbr.toUpperCase(),u=a[s].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(o===e)return a[s];break;case"NNNN":if(i===e)return a[s];break;case"NNNNN":if(u===e)return a[s];break}else if([i,o,u].indexOf(e)>=0)return a[s]}function zw(e,t){var n=e.since<=e.until?1:-1;return t===void 0?_(e.since).year():_(e.since).year()+(t-e.offset)*n}function Zw(){var e,t,n,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),s[e].since<=n&&n<=s[e].until||s[e].until<=n&&n<=s[e].since)return s[e].name;return""}function Qw(){var e,t,n,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),s[e].since<=n&&n<=s[e].until||s[e].until<=n&&n<=s[e].since)return s[e].narrow;return""}function Jw(){var e,t,n,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),s[e].since<=n&&n<=s[e].until||s[e].until<=n&&n<=s[e].since)return s[e].abbr;return""}function Kw(){var e,t,n,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=r[e].since<=r[e].until?1:-1,s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return(this.year()-_(r[e].since).year())*n+r[e].offset;return this.year()}function Xw(e){return I(this,"_erasNameRegex")||Ji.call(this),e?this._erasNameRegex:this._erasRegex}function ek(e){return I(this,"_erasAbbrRegex")||Ji.call(this),e?this._erasAbbrRegex:this._erasRegex}function tk(e){return I(this,"_erasNarrowRegex")||Ji.call(this),e?this._erasNarrowRegex:this._erasRegex}function Qi(e,t){return t.erasAbbrRegex(e)}function nk(e,t){return t.erasNameRegex(e)}function sk(e,t){return t.erasNarrowRegex(e)}function rk(e,t){return t._eraYearOrdinalRegex||jn}function Ji(){var e=[],t=[],n=[],s=[],r,a,i,o,u,l=this.eras();for(r=0,a=l.length;r<a;++r)i=Tt(l[r].name),o=Tt(l[r].abbr),u=Tt(l[r].narrow),t.push(i),e.push(o),n.push(u),s.push(i),s.push(o),s.push(u);this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}b(0,["gg",2],0,function(){return this.weekYear()%100}),b(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Kr(e,t){b(0,[e,e.length],0,t)}Kr("gggg","weekYear"),Kr("ggggg","weekYear"),Kr("GGGG","isoWeekYear"),Kr("GGGGG","isoWeekYear"),k("G",Hr),k("g",Hr),k("GG",J,Se),k("gg",J,Se),k("GGGG",Pi,Ci),k("gggg",Pi,Ci),k("GGGGG",Fr,jr),k("ggggg",Fr,jr),ws(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,s){t[s.substr(0,2)]=C(e)}),ws(["gg","GG"],function(e,t,n,s){t[s]=_.parseTwoDigitYear(e)});function ak(e){return _d.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function ik(e){return _d.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function ok(){return Ct(this.year(),1,4)}function uk(){return Ct(this.isoWeekYear(),1,4)}function lk(){var e=this.localeData()._week;return Ct(this.year(),e.dow,e.doy)}function dk(){var e=this.localeData()._week;return Ct(this.weekYear(),e.dow,e.doy)}function _d(e,t,n,s,r){var a;return e==null?bs(this,s,r).year:(a=Ct(e,s,r),t>a&&(t=a),ck.call(this,e,t,n,s,r))}function ck(e,t,n,s,r){var a=Zl(e,t,n,s,r),i=Ss(a.year,0,a.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}b("Q",0,"Qo","quarter"),k("Q",Wl),q("Q",function(e,t){t[Nt]=(C(e)-1)*3});function hk(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}b("D",["DD",2],"Do","date"),k("D",J,Wn),k("DD",J,Se),k("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),q(["D","DD"],it),q("Do",function(e,t){t[it]=C(e.match(J)[0])});var vd=Fn("Date",!0);b("DDD",["DDDD",3],"DDDo","dayOfYear"),k("DDD",Wr),k("DDDD",Fl),q(["DDD","DDDD"],function(e,t,n){n._dayOfYear=C(e)});function fk(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}b("m",["mm",2],0,"minute"),k("m",J,Li),k("mm",J,Se),q(["m","mm"],qe);var mk=Fn("Minutes",!1);b("s",["ss",2],0,"second"),k("s",J,Li),k("ss",J,Se),q(["s","ss"],Rt);var gk=Fn("Seconds",!1);b("S",0,0,function(){return~~(this.millisecond()/100)}),b(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),b(0,["SSS",3],0,"millisecond"),b(0,["SSSS",4],0,function(){return this.millisecond()*10}),b(0,["SSSSS",5],0,function(){return this.millisecond()*100}),b(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),b(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),b(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),b(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),k("S",Wr,Wl),k("SS",Wr,Se),k("SSS",Wr,Fl);var zt,wd;for(zt="SSSS";zt.length<=9;zt+="S")k(zt,jn);function pk(e,t){t[on]=C(("0."+e)*1e3)}for(zt="S";zt.length<=9;zt+="S")q(zt,pk);wd=Fn("Milliseconds",!1),b("z",0,0,"zoneAbbr"),b("zz",0,0,"zoneName");function yk(){return this._isUTC?"UTC":""}function _k(){return this._isUTC?"Coordinated Universal Time":""}var g=_s.prototype;g.add=dw,g.calendar=yw,g.clone=_w,g.diff=Mw,g.endOf=Lw,g.format=xw,g.from=Tw,g.fromNow=Nw,g.to=Rw,g.toNow=Cw,g.get=O_,g.invalidAt=Vw,g.isAfter=vw,g.isBefore=ww,g.isBetween=kw,g.isSame=$w,g.isSameOrAfter=Sw,g.isSameOrBefore=bw,g.isValid=Iw,g.lang=fd,g.locale=hd,g.localeData=md,g.max=Iv,g.min=Ev,g.parsingFlags=Aw,g.set=x_,g.startOf=Pw,g.subtract=cw,g.toArray=Fw,g.toObject=Hw,g.toDate=Ww,g.toISOString=Yw,g.inspect=Ow,typeof Symbol<"u"&&Symbol.for!=null&&(g[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),g.toJSON=Ew,g.toString=Dw,g.unix=jw,g.valueOf=Uw,g.creationData=Gw,g.eraName=Zw,g.eraNarrow=Qw,g.eraAbbr=Jw,g.eraYear=Kw,g.year=Il,g.isLeapYear=Y_,g.weekYear=ak,g.isoWeekYear=ik,g.quarter=g.quarters=hk,g.month=Bl,g.daysInMonth=W_,g.week=g.weeks=q_,g.isoWeek=g.isoWeeks=B_,g.weeksInYear=lk,g.weeksInWeekYear=dk,g.isoWeeksInYear=ok,g.isoWeeksInISOWeekYear=uk,g.date=vd,g.day=g.days=iv,g.weekday=ov,g.isoWeekday=uv,g.dayOfYear=fk,g.hour=g.hours=gv,g.minute=g.minutes=mk,g.second=g.seconds=gk,g.millisecond=g.milliseconds=wd,g.utcOffset=Jv,g.utc=Xv,g.local=ew,g.parseZone=tw,g.hasAlignedHourOffset=nw,g.isDST=sw,g.isLocal=aw,g.isUtcOffset=iw,g.isUtc=od,g.isUTC=od,g.zoneAbbr=yk,g.zoneName=_k,g.dates=Ce("dates accessor is deprecated. Use date instead.",vd),g.months=Ce("months accessor is deprecated. Use month instead",Bl),g.years=Ce("years accessor is deprecated. Use year instead",Il),g.zone=Ce("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Kv),g.isDSTShifted=Ce("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",rw);function vk(e){return K(e*1e3)}function wk(){return K.apply(null,arguments).parseZone()}function kd(e){return e}var A=Oi.prototype;A.calendar=a_,A.longDateFormat=l_,A.invalidDate=c_,A.ordinal=m_,A.preparse=kd,A.postformat=kd,A.relativeTime=p_,A.pastFuture=y_,A.set=s_,A.eras=qw,A.erasParse=Bw,A.erasConvertYear=zw,A.erasAbbrRegex=ek,A.erasNameRegex=Xw,A.erasNarrowRegex=tk,A.months=P_,A.monthsShort=L_,A.monthsParse=j_,A.monthsRegex=H_,A.monthsShortRegex=F_,A.week=I_,A.firstDayOfYear=G_,A.firstDayOfWeek=V_,A.weekdays=tv,A.weekdaysMin=sv,A.weekdaysShort=nv,A.weekdaysParse=av,A.weekdaysRegex=lv,A.weekdaysShortRegex=dv,A.weekdaysMinRegex=cv,A.isPM=fv,A.meridiem=pv;function Xr(e,t,n,s){var r=Pt(),a=st().set(s,t);return r[n](a,e)}function $d(e,t,n){if(xt(e)&&(t=e,e=void 0),e=e||"",t!=null)return Xr(e,t,n,"month");var s,r=[];for(s=0;s<12;s++)r[s]=Xr(e,s,n,"month");return r}function Ki(e,t,n,s){typeof e=="boolean"?(xt(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,xt(t)&&(n=t,t=void 0),t=t||"");var r=Pt(),a=e?r._week.dow:0,i,o=[];if(n!=null)return Xr(t,(n+a)%7,s,"day");for(i=0;i<7;i++)o[i]=Xr(t,(i+a)%7,s,"day");return o}function kk(e,t){return $d(e,t,"months")}function $k(e,t){return $d(e,t,"monthsShort")}function Sk(e,t,n){return Ki(e,t,n,"weekdays")}function bk(e,t,n){return Ki(e,t,n,"weekdaysShort")}function Mk(e,t,n){return Ki(e,t,n,"weekdaysMin")}Bt("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(e){var t=e%10,n=C(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}}),_.lang=Ce("moment.lang is deprecated. Use moment.locale instead.",Bt),_.langData=Ce("moment.langData is deprecated. Use moment.localeData instead.",Pt);var Lt=Math.abs;function Dk(){var e=this._data;return this._milliseconds=Lt(this._milliseconds),this._days=Lt(this._days),this._months=Lt(this._months),e.milliseconds=Lt(e.milliseconds),e.seconds=Lt(e.seconds),e.minutes=Lt(e.minutes),e.hours=Lt(e.hours),e.months=Lt(e.months),e.years=Lt(e.years),this}function Sd(e,t,n,s){var r=Be(t,n);return e._milliseconds+=s*r._milliseconds,e._days+=s*r._days,e._months+=s*r._months,e._bubble()}function Yk(e,t){return Sd(this,e,t,1)}function Ok(e,t){return Sd(this,e,t,-1)}function bd(e){return e<0?Math.floor(e):Math.ceil(e)}function xk(){var e=this._milliseconds,t=this._days,n=this._months,s=this._data,r,a,i,o,u;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=bd(Xi(n)+t)*864e5,t=0,n=0),s.milliseconds=e%1e3,r=Le(e/1e3),s.seconds=r%60,a=Le(r/60),s.minutes=a%60,i=Le(a/60),s.hours=i%24,t+=Le(i/24),u=Le(Md(t)),n+=u,t-=bd(Xi(u)),o=Le(n/12),n%=12,s.days=t,s.months=n,s.years=o,this}function Md(e){return e*4800/146097}function Xi(e){return e*146097/4800}function Tk(e){if(!this.isValid())return NaN;var t,n,s=this._milliseconds;if(e=Pe(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+s/864e5,n=this._months+Md(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Xi(this._months)),e){case"week":return t/7+s/6048e5;case"day":return t+s/864e5;case"hour":return t*24+s/36e5;case"minute":return t*1440+s/6e4;case"second":return t*86400+s/1e3;case"millisecond":return Math.floor(t*864e5)+s;default:throw new Error("Unknown unit "+e)}}function Ut(e){return function(){return this.as(e)}}var Dd=Ut("ms"),Nk=Ut("s"),Rk=Ut("m"),Ck=Ut("h"),Pk=Ut("d"),Lk=Ut("w"),Uk=Ut("M"),jk=Ut("Q"),Wk=Ut("y"),Fk=Dd;function Hk(){return Be(this)}function Ek(e){return e=Pe(e),this.isValid()?this[e+"s"]():NaN}function ln(e){return function(){return this.isValid()?this._data[e]:NaN}}var Ik=ln("milliseconds"),Ak=ln("seconds"),Vk=ln("minutes"),Gk=ln("hours"),qk=ln("days"),Bk=ln("months"),zk=ln("years");function Zk(){return Le(this.days()/7)}var jt=Math.round,An={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Qk(e,t,n,s,r){return r.relativeTime(t||1,!!n,e,s)}function Jk(e,t,n,s){var r=Be(e).abs(),a=jt(r.as("s")),i=jt(r.as("m")),o=jt(r.as("h")),u=jt(r.as("d")),l=jt(r.as("M")),d=jt(r.as("w")),h=jt(r.as("y")),c=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||i<=1&&["m"]||i<n.m&&["mm",i]||o<=1&&["h"]||o<n.h&&["hh",o]||u<=1&&["d"]||u<n.d&&["dd",u];return n.w!=null&&(c=c||d<=1&&["w"]||d<n.w&&["ww",d]),c=c||l<=1&&["M"]||l<n.M&&["MM",l]||h<=1&&["y"]||["yy",h],c[2]=t,c[3]=+e>0,c[4]=s,Qk.apply(null,c)}function Kk(e){return e===void 0?jt:typeof e=="function"?(jt=e,!0):!1}function Xk(e,t){return An[e]===void 0?!1:t===void 0?An[e]:(An[e]=t,e==="s"&&(An.ss=t-1),!0)}function e$(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,s=An,r,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(s=Object.assign({},An,t),t.s!=null&&t.ss==null&&(s.ss=t.s-1)),r=this.localeData(),a=Jk(this,!n,s,r),n&&(a=r.pastFuture(+this,a)),r.postformat(a)}var eo=Math.abs;function Vn(e){return(e>0)-(e<0)||+e}function ea(){if(!this.isValid())return this.localeData().invalidDate();var e=eo(this._milliseconds)/1e3,t=eo(this._days),n=eo(this._months),s,r,a,i,o=this.asSeconds(),u,l,d,h;return o?(s=Le(e/60),r=Le(s/60),e%=60,s%=60,a=Le(n/12),n%=12,i=e?e.toFixed(3).replace(/\.?0+$/,""):"",u=o<0?"-":"",l=Vn(this._months)!==Vn(o)?"-":"",d=Vn(this._days)!==Vn(o)?"-":"",h=Vn(this._milliseconds)!==Vn(o)?"-":"",u+"P"+(a?l+a+"Y":"")+(n?l+n+"M":"")+(t?d+t+"D":"")+(r||s||e?"T":"")+(r?h+r+"H":"")+(s?h+s+"M":"")+(e?h+i+"S":"")):"P0D"}var U=Br.prototype;U.isValid=Bv,U.abs=Dk,U.add=Yk,U.subtract=Ok,U.as=Tk,U.asMilliseconds=Dd,U.asSeconds=Nk,U.asMinutes=Rk,U.asHours=Ck,U.asDays=Pk,U.asWeeks=Lk,U.asMonths=Uk,U.asQuarters=jk,U.asYears=Wk,U.valueOf=Fk,U._bubble=xk,U.clone=Hk,U.get=Ek,U.milliseconds=Ik,U.seconds=Ak,U.minutes=Vk,U.hours=Gk,U.days=qk,U.weeks=Zk,U.months=Bk,U.years=zk,U.humanize=e$,U.toISOString=ea,U.toString=ea,U.toJSON=ea,U.locale=hd,U.localeData=md,U.toIsoString=Ce("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ea),U.lang=fd,b("X",0,0,"unix"),b("x",0,0,"valueOf"),k("x",Hr),k("X",k_),q("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)}),q("x",function(e,t,n){n._d=new Date(C(e))});//! moment.js
28
+ _.version="2.30.1",t_(K),_.fn=g,_.min=Av,_.max=Vv,_.now=Gv,_.utc=st,_.unix=vk,_.months=kk,_.isDate=ys,_.locale=Bt,_.invalid=Pr,_.duration=Be,_.isMoment=Ge,_.weekdays=Sk,_.parseZone=wk,_.localeData=Pt,_.isDuration=zr,_.monthsShort=$k,_.weekdaysMin=Mk,_.defineLocale=Ei,_.updateLocale=wv,_.locales=kv,_.weekdaysShort=bk,_.normalizeUnits=Pe,_.relativeTimeRounding=Kk,_.relativeTimeThreshold=Xk,_.calendarFormat=pw,_.prototype=g,_.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"};const t$=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,n$=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,Yd=/(janv\.?|févr\.?|avr\.?|juil\.?|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,to=[/^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],s$={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:Yd,monthsShortRegex:Yd,monthsStrictRegex:t$,monthsShortStrictRegex:n$,monthsParse:to,longMonthsParse:to,shortMonthsParse:to,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:(e,t)=>{switch(t){case"D":return e+(e===1?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(e===1?"er":"e");case"w":case"W":return e+(e===1?"re":"e")}},week:{dow:1,doy:4}};_.locale("fr",s$);const r$=["ring_left","ring_right","strap_left","strap_right","boots","helmet","collar","belt","weapon"],a$=e=>{const t=no.map(n=>n.equipments).flat().find(({id:n})=>n===e.id);if(!t)throw new Error("cannot find any equipment");return i$(t,e.seed)},i$=(e,t)=>{const n=X0(t),s=e_(Object.entries(e.characteristics),([r])=>r);return{...e,seed:t,characteristics:Object.fromEntries(s.map(([r,a])=>[r,Array.isArray(a)?K0(a[0],a[1]+1,n):a]))}},no=[J0];no.map(e=>e.equipments).flat();const o$=(e,t)=>e.itemList.get(t)??0,u$=(e,t)=>{const n=ec(Object.values(e.equippedItems)),s=t.equipments.filter(r=>n.find(a=>a.id===r.id)).length;return s===t.equipments.length?t.fullBonus:s>=t.equipments.length/2?t.halfBonus:null},Od=e=>{let t={vitality:0,strength:0,agility:0,chance:0,intelligence:0,wisdom:0};for(const n of r$){const s=e.equippedItems[n];s&&(t=cu(t,a$(s).characteristics,(r,a)=>r+a))}for(const n of no){const s=u$(e,n);s&&(t=cu(t,s,(r,a)=>r+a))}return t},l$=Object.freeze(Object.defineProperty({__proto__:null,getItemQuantity:o$,getUserEquipmentsCharacteristics:Od},Symbol.toStringTag,{value:"Module"})),xd=new Y.Schema({user:{type:Y.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},equippedItems:{type:{helmet:{id:String,seed:Number},collar:{id:String,seed:Number},ring_left:{id:String,seed:Number},ring_right:{id:String,seed:Number},strap_left:{id:String,seed:Number},strap_right:{id:String,seed:Number},boots:{id:String,seed:Number},belt:{id:String,seed:Number},weapon:{id:String,seed:Number}},default:{}},equipmentList:{type:[{id:String,seed:Number}],default:[]},itemList:{type:Map,of:Number,default:{}},recipes:{type:[String],default:[]}});xd.index({user:1});const Os=Y.model("UserInventory",xd),xs=async(e,t)=>{await Os.updateOne({user:e},t,{upsert:!0})},d$=Object.freeze(Object.defineProperty({__proto__:null,addEquipments:async(e,t)=>{await xs(e,{$push:{equipmentList:{$each:t}}})},addInventoryItem:async(e,t,n)=>{await xs(e,{$inc:{[`itemList.${t}`]:n}})},addInventoryItems:async(e,t)=>{await xs(e,{$inc:Object.fromEntries(Object.entries(t).filter(([,n])=>n>0).map(([n,s])=>[`itemList.${n}`,s]))})},removeAllItemInventory:async(e,t)=>{await xs(e,{$set:{[`itemList.${t}`]:0}})},removeInventoryItem:async(e,t,n)=>{await xs(e,[{$set:{[`itemList.${t}`]:{$cond:{if:{$lt:[{$add:[`$itemList.${t}`,-n]},0]},then:0,else:{$add:[`$itemList.${t}`,-n]}}}}}])}},Symbol.toStringTag,{value:"Module"})),Td=async e=>await Os.create({user:e}),so=async(e,t={})=>{const n=await Os.findOne({user:e},t);return n||await Td(e)},Gn={multiplier:{type:Number,default:0},origin:String,expireAt:Date,startAt:{type:Date,default:null}},Ts=new Y.Schema({user:{type:Y.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},premium:{type:Boolean,default:!1},berry:{type:Number,default:0,index:!0},xp:{lastMessageWithXp:{type:Date,default:new Date},voice:{lastConnection:{type:Date,default:new Date},minutesInVoiceToday:{type:Number,default:0}},amount:{type:Number,default:0,index:!0},boost:{type:Date,default:null}},buffs:{cooldown:{casino:{type:[Gn],default:[]},work:{type:[Gn],default:[]}},berry:{work:{type:[Gn],default:[]},global:{type:[Gn],default:[]}},drop:{work:{type:[Gn],default:[]}},xp:{global:{type:[Gn],default:[]}}},hp:{type:Number,default:100},characteristics:{vitality:{type:Number,default:0},strength:{type:Number,default:0},agility:{type:Number,default:0},chance:{type:Number,default:0},intelligence:{type:Number,default:0},wisdom:{type:Number,default:0}},resetCharacteristics:{free:{type:Boolean,default:!0},nextAvailable:{type:Date,default:null}},scrolls:{vitality:{type:Number,default:0},strength:{type:Number,default:0},agility:{type:Number,default:0},chance:{type:Number,default:0},intelligence:{type:Number,default:0},wisdom:{type:Number,default:0}}});Ts.index({user:1}),Ts.index({"xp.amount":-1}),Ts.index({berry:-1}),Ts.post("updateOne",async function(e){await co.userMetaMiddleware(e)});const Zt=Y.model("UserMeta",Ts),Nd=async e=>await Zt.create({user:e}),ro=async(e,t={})=>{const n=await Zt.findOne({user:e},t);return n||await Nd(e)},Rd=e=>Object.fromEntries(hg.map(t=>[t,Kd.getComputedCharacteristicValue(e.characteristics[t])+e.scrolls[t]])),Cd=e=>{const{boost:t}=e.xp;return(t!==null&&Date.now()<t.getTime()?.2:0)+(e.premium?.5:0)+e.buffs.xp.global.reduce((n,{expireAt:s,startAt:r,multiplier:a})=>n+((r??new Date)<=new Date&&!Sn(s)?a:0),0)},c$=(e,t,n)=>(t*=1+Cd(e),Math.ceil(t*n)),h$=(e,t)=>{const n=Pd(e);return t<=0?t:Math.ceil(t*(n||1))},f$=e=>e.buffs.cooldown.work.reduce((t,{expireAt:n,startAt:s,multiplier:r})=>t+(new Date>=(s??new Date)&&!Sn(n)?r:0),1),m$=e=>e.buffs.drop.work.reduce((t,{expireAt:n,startAt:s,multiplier:r})=>t+(new Date>=(s??new Date)&&!Sn(n)?r:0),1),g$=e=>e.buffs.berry.work.reduce((t,{expireAt:n,startAt:s,multiplier:r})=>t+(new Date>=(s??new Date)&&!Sn(n)?r:0),1),Pd=e=>e.buffs.berry.global.reduce((t,{expireAt:n,startAt:s,multiplier:r})=>t+(new Date>=(s??new Date)&&!Sn(n)?r:0),1),p$=e=>e.buffs.cooldown.casino.reduce((t,{expireAt:n,startAt:s,multiplier:r})=>t+(new Date>=(s??new Date)&&!Sn(n)?r:0),1),ta=async(e,t,n)=>{const s=t??await ro(e,{buffs:-1,xp:-1}),r=n??await so(e,{itemList:-1,equipmentList:-1});return((Rd(s).vitality??0)+Od(r).vitality)*mg+fg},y$=Object.freeze(Object.defineProperty({__proto__:null,calcBerry:h$,calcBerryGlobalBuff:Pd,calcBerryWorkBuff:g$,calcCooldownCasinoBuff:p$,calcCooldownWorkBuff:f$,calcDropWorkBuff:m$,calcXp:c$,calcXpBoost:Cd,getBerryRank:async e=>(await Zt.aggregate([{$setWindowFields:{sortBy:{berry:-1},output:{rank:{$rank:{}}}}},{$match:{_id:e}},{$project:{rank:1}}]))[0],getGlobalRank:async e=>(await Zt.aggregate([{$setWindowFields:{sortBy:{"xp.amount":-1},output:{rank:{$rank:{}}}}},{$match:{_id:e}},{$project:{rank:1}}]))[0],getMaxHp:ta,getTotalCharacteristics:Rd,hasMalusBuff:e=>{const t=[...e.buffs.xp.global,...e.buffs.berry.global,...e.buffs.berry.work,...e.buffs.cooldown.work,...e.buffs.cooldown.casino,...e.buffs.drop.work];for(const{multiplier:n,startAt:s,expireAt:r}of t)if(n<0&&new Date<r&&(s??new Date)<=new Date)return!0;return!1}},Symbol.toStringTag,{value:"Module"})),_$=(e,t)=>Zt.findOneAndUpdate({user:e},t,{returnDocument:"after",upsert:!0}),dn=async(e,t)=>{await Zt.updateOne({user:e},t,{upsert:!0})},v$=async(e,t)=>{await dn(e,{$inc:{"xp.amount":t}})},w$=async(e,t)=>{await dn(e,[{$set:{berry:{$cond:{if:{$lt:[{$add:["$berry",t]},0]},then:0,else:{$add:["$berry",t]}}}}}])},k$=async(e,t)=>{await dn(e,{$set:{premium:t}})},$$=async(e,t)=>{const{xp:{boost:n}}=await _$(e,[{$set:{"xp.boost":{$cond:{if:{$or:[{$not:"$xp.boost"},{$lt:["$xp.boost",new Date]}]},then:{$add:[new Date,t]},else:{$add:["$xp.boost",t]}}}}}]);return n},S$=async(e,t,n,s,r,a)=>{await dn(e,[{$set:{[`buffs.${t}`]:{$map:{input:`$buffs.${t}`,as:"buff",in:{$cond:{if:{$eq:[{$substr:["$$buff.origin",0,{$indexOfBytes:["$$buff.origin","$"]}]},{$substr:[n,0,{$indexOfBytes:[n,"$"]}]}]},then:{multiplier:"$$buff.multiplier",origin:"$$buff.origin",expireAt:{$cond:{if:{$lt:["$$buff.expireAt",new Date]},then:{$add:[new Date,r*60*60*1e3]},else:{$add:["$$buff.expireAt",r*60*60*1e3]}}},startAt:{$cond:{if:{$gte:["$$buff.startAt",new Date]},then:"$$buff.startAt",else:{$add:[new Date,(a??0)*60*60*1e3]}}}},else:"$$buff"}}}}}},{$set:{[`buffs.${t}`]:{$cond:{if:{$in:[{$substr:[n,0,{$indexOfBytes:[n,"$"]}]},{$map:{input:`$buffs.${t}`,as:"b",in:{$substr:["$$b.origin",0,{$indexOfBytes:["$$b.origin","$"]}]}}}]},then:`$buffs.${t}`,else:{$concatArrays:[`$buffs.${t}`,[{multiplier:s,origin:n,expireAt:{$add:[new Date,r*60*60*1e3]},startAt:{$add:[new Date,(a??0)*60*60*1e3]}}]]}}}}}])},b$=async(e,t,{userMeta:n,userInventory:s})=>{const r=n??await ro(e,{buffs:-1,xp:-1}),a=s??await so(e,{itemList:-1,equipmentList:-1}),o=await ta(e,r,a)-r.hp;await dn(e,{$set:{hp:r.hp+Math.min(t,o)}})},Ld=async(e,t)=>{const n=await ta(e);await dn(e,[{$set:{hp:{$round:[{$multiply:[{$divide:["$hp",t]},n]},0]}}}])},M$=Object.freeze(Object.defineProperty({__proto__:null,addBerry:w$,addScrollCharacteristic:async(e,t)=>{const n=await ta(e),s=Object.fromEntries(Object.entries(t).map(([r,a])=>[`scrolls.${r}`,a]));await dn(e,{$inc:s}),Ld(e,n)},addXp:v$,gainHp:b$,updateBoost:$$,updateBuff:S$,updateHp:Ld,updatePremium:k$},Symbol.toStringTag,{value:"Module"})),Ud=new Y.Schema({user:{type:Y.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},unlockedFactionBadges:{type:[String],default:[]},unlockedBadges:{type:[String],default:[]},unlockedTitles:{type:[String],default:[]},selectedTitle:{type:String,default:null},unlockedBackgrounds:{type:[String],default:["default"]},selectedBackground:{type:String,default:"default"},unlockedProfileAssets:{type:[String],default:[]}});Ud.index({user:1});const Ns=Y.model("UserOrnaments",Ud),ot=async(e,t)=>{await Ns.updateOne({user:e},t,{upsert:!0})},D$=Object.freeze(Object.defineProperty({__proto__:null,selectBackground:async(e,t)=>{await ot(e,{$set:{selectedBackground:t}})},selectTitle:async(e,t)=>{await ot(e,{$set:{selectedTitle:t}})},unlockBackground:async(e,t)=>{await ot(e,{$addToSet:{unlockedBackgrounds:t}})},unlockBackgrounds:async(e,t)=>{await ot(e,{$addToSet:{unlockedBackgrounds:{$each:t}}})},unlockBadge:async(e,t,n)=>{t.isProgressive?await ot(e,{$addToSet:{unlockedBadges:`${t.id}_${n}`}}):await ot(e,{$addToSet:{unlockedBadges:t.id}})},unlockFactionBadge:async(e,t)=>{await ot(e,{$addToSet:{unlockedFactionBadges:{$each:[`b_marine_${t}`,`b_revolutionary_${t}`,`b_pirate_${t}`]}}})},unlockProfileAsset:async(e,t)=>{await ot(e,{$addToSet:{unlockedProfileAssets:t}})},unlockTitle:async(e,t)=>{await ot(e,{$addToSet:{unlockedTitles:t}})},unlockTitles:async(e,t)=>{await ot(e,{$addToSet:{unlockedTitles:{$each:t}}})}},Symbol.toStringTag,{value:"Module"})),jd=async e=>await Ns.create({user:e}),Y$=async(e,t)=>{const n=await Ns.findOne({user:e},t);return n||await jd(e)},O$=(e,t)=>e.completed.includes(t),x$=(e,t)=>{const n=e.daily[t];return n&&ar(n,new Date)},Wd=e=>ar(du(),e.lastFullComplete),T$=e=>Wd(e)?1+Math.min(2,e.streak/10):1,Fd=e=>e.completed.reduce((t,n)=>t+(n.startsWith("be_level_")?1:0),0),N$=Object.freeze(Object.defineProperty({__proto__:null,getFactionTitle:(e,t)=>{const n=Fd(e);return Xd.factionTitleList.find(s=>s.strength===n&&s.faction===t)},getFactionTitleStrength:Fd,getStreakMultiplier:T$,isDailyQuestCompleted:x$,isQuestCompleted:O$,isStreaking:Wd},Symbol.toStringTag,{value:"Module"})),Hd=new Y.Schema({user:{type:Y.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},completed:[String],daily:{type:Object,default:{}},streak:{type:Number,default:0},lastFullComplete:{type:Date,default:new Date}});Hd.index({user:1});const Rs=Y.model("UserQuest",Hd),Cs=async(e,t)=>{await Rs.updateOne({user:e},t,{upsert:!0})},R$=Object.freeze(Object.defineProperty({__proto__:null,completeDailyQuest:async(e,t)=>{Y.isValidObjectId(e)&&await Cs(e,[{$addFields:{[t]:new Date}}]),await Cs(e,[{$addFields:{[t]:new Date}}])},completeQuest:async(e,t)=>{await Cs(e,{$addToSet:{completed:t}})},updateStreak:async(e,t)=>{ar(du(),t)?await Cs(e,{$inc:{streak:1},$set:{lastFullComplete:new Date}}):await Cs(e,{$set:{lastFullComplete:new Date,streak:1}})}},Symbol.toStringTag,{value:"Module"})),Ed=async e=>await Rs.create({user:e}),C$=async e=>{const t=await Rs.findOne({user:e});return t||await Ed(e)},ao=new Y.Schema({user:{type:Y.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},botPing:{type:Number,default:0},writeDifferentChat:[String],messageSent:{type:Number,default:0},totalMinutesInVoice:{type:Number,default:0},hadMoreThanZeroBerry:{type:Boolean,default:!1},totalBet:{type:Number,default:0},edito:{readToday:{type:Number,default:0},lastTimeRead:{type:Date,default:new Date}},double_six:{type:Number,default:0},lastGames:{type:[{gameType:String,endState:Number}],default:[]},black_jack:{type:Number,default:0},rps:{type:{lastRps:String,nb:Number}},totalSpentInShop:{type:Number,default:0},work:{type:Number,default:0},draw:{type:Number,default:0},bet666:{amount:{type:Number,default:0},last:{type:Date,default:new Date}},items:{bottle:{total:{type:Number,default:0},today:{type:Number,default:0},last:{type:Date,default:new Date}},chest:{total:{type:Number,default:0}}},randomMessage:{type:Number,default:0},timeAt10Percent:{type:Number,default:0},timeAt90Percent:{type:Number,default:0},sevenQuitteOuDouble:{type:Number,default:0},drawDoubleSix:{type:Number,default:0},guessInOne:{type:Number,default:0},crafts:{type:Number,default:0},raidFinished:{type:Number,default:0}});ao.index({user:1}),ao.post("updateOne",async function(e){await co.userQuestMetaMiddleware(e)});const na=Y.model("UserQuestMeta",ao),ut=async(e,t,n={})=>{await na.updateOne({user:e,...n},t,{upsert:!0})},P$=Object.freeze(Object.defineProperty({__proto__:null,bet666:async e=>{const t=new Date;t.setDate(t.getDate()-1),t.setHours(0,0,0,0);const n=new Date;n.setDate(n.getDate()-1),n.setHours(23,59,59,999),await ut(e,{$inc:{"bet666.amount":1},$set:{"bet666.last":new Date}},{"bet666.last":{$gte:t,$lte:n}}),await ut(e,{$set:{"bet666.last":new Date,"bet666.amount":1}},{"bet666.last":{$lt:t}})},drawIncrement:async e=>{await ut(e,{$inc:{draw:1}})},hadMoreThanZeroBerry:async e=>{await ut(e,{$set:{hadMoreThanZeroBerry:!0}})},hasSevenQod:async e=>{await ut(e,{$set:{sevenQuitteOuDouble:!0}})},updateLastGames:async(e,t,n)=>{await ut(e,{$push:{lastGames:{$each:[{gameType:t,endState:n}],$position:0,$slice:20}}})},updateRps:async(e,t)=>{await ut(e,[{$set:{"rps.nb":{$cond:{if:{$eq:["$rps.lastRps",t]},then:{$add:["$rps.nb",1]},else:1}},"rps.lastRps":t}}])},updateTotalBet:async(e,t)=>{await ut(e,{$inc:{totalBet:t}})},winBlackjack:async e=>{await ut(e,{$inc:{black_jack:1}})},workIncrement:async e=>{await ut(e,{$inc:{work:1}})}},Symbol.toStringTag,{value:"Module"})),L$=Object.freeze(Object.defineProperty({__proto__:null,alreadyObtainedRaidReward:(e,t,n)=>t in e.obtainedRewards?e.obtainedRewards[t].includes(n):!1,hasUnlockedRaid:(e,t)=>{var n;return(n=e.unlocked)==null?void 0:n[t]}},Symbol.toStringTag,{value:"Module"})),Id=new Y.Schema({user:{type:Y.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},currentRaid:{type:{raidId:String,seed:String,progression:{type:[String],default:[]},buffItem:String},default:void 0},obtainedRewards:{type:Object,default:{}},unlocked:{type:Object,default:{}},cooldown:{classic:{type:Date,default:void 0},special:{type:Date,default:void 0}}});Id.index({user:1});const sa=Y.model("UserRaid",Id),Ad=async(e,t)=>{await sa.updateOne({user:e},t,{upsert:!0})},U$=Object.freeze(Object.defineProperty({__proto__:null,reduceRaidCooldown:async(e,t)=>{await Ad(e,[{$set:{"raid.cooldown.special":{$subtract:[{$ifNull:["$raid.cooldown.special",new Date]},t*3600*1e3]},"raid.cooldown.classic":{$subtract:[{$ifNull:["$raid.cooldown.classic",new Date]},t*3600*1e3]}}}])},unlockRaid:async(e,t)=>{await Ad(e,{$set:{[`unlocked.${t}`]:!0}})}},Symbol.toStringTag,{value:"Module"})),Vd=new Y.Schema({user:{type:Y.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},lastShopId:{type:Number,default:0},limit:{type:Object,default:{}}});Vd.index({user:1});const io=Y.model("UserShop",Vd),lt={localField:"_id",foreignField:"user",justOne:!0},oo=new Y.Schema({userId:{type:String,required:!0,unique:!0},birthday:{type:Date,default:null},faction:{type:String,default:gg},canChangeFaction:{type:Boolean,default:!1},canChooseFaction:{type:Boolean,default:!1},settings:{sort:{inventory:{type:String,default:"alpha"}},sendDailyReport:{type:Boolean,default:!1},sendDailyQuest:{type:Boolean,default:!1}},lockUserCommand:{type:Date,default:new Date(0)}},{virtuals:{inventory:{ref:"UserInventory",...lt},raid:{ref:"UserRaid",...lt},games:{ref:"UserGames",...lt},ornaments:{ref:"UserOrnaments",...lt},crew:{ref:"UserCrew",...lt},dailyReport:{ref:"UserDailyReport",...lt},shop:{ref:"UserShop",...lt},meta:{ref:"UserMeta",...lt},quest:{ref:"UserQuest",...lt},questMeta:{ref:"UserQuestMeta",...lt}}});oo.index({userId:1}),oo.post("deleteOne",async function(e){await Os.deleteOne({user:e._id}),await Cr.deleteOne({user:e._id}),await Ns.deleteOne({user:e._id}),await sa.deleteOne({user:e._id}),await ps.deleteOne({user:e._id}),await ki.deleteOne({user:e._id}),await io.deleteOne({user:e._id}),await Zt.deleteOne({user:e._id}),await Rs.deleteOne({user:e._id}),await na.deleteOne({user:e._id})});const cn=Y.model("User",oo),j$=e=>cn.create({userId:e}),Gd=async(e,t={})=>{const n=await qd({userId:e},t);return n||await j$(e)},qd=(e,t={})=>cn.findOne(e,t),W$=Object.freeze(Object.defineProperty({__proto__:null,getFactionRank:async(e,t)=>(await cn.aggregate([{$lookup:{from:"usermetas",localField:"_id",foreignField:"user",as:"meta"}},{$unwind:"$meta"},{$match:{faction:e.faction}},{$setWindowFields:{sortBy:{"meta.xp.amount":-1},output:{rank:{$rank:{}}}}},{$match:{_id:t}},{$project:{rank:1}}]))[0],getNextBirthdays:()=>cn.aggregate([{$match:{birthday:{$ne:null}}},{$addFields:{day:{$dayOfMonth:"$birthday"},month:{$month:"$birthday"},year:{$year:"$birthday"},nextBirthday:{$dateFromParts:{year:{$cond:[{$lt:[{$dateFromParts:{year:{$year:new Date},month:{$month:"$birthday"},day:{$dayOfMonth:"$birthday"}}},new Date]},{$add:[{$year:new Date},1]},{$year:new Date}]},month:{$month:"$birthday"},day:{$dayOfMonth:"$birthday"}}}}},{$sort:{nextBirthday:1}},{$limit:10},{$project:{_id:0,userId:1,birthday:1,nextBirthday:1}}]),getUserBirthday:async e=>await Gd(e,{birthday:1})},Symbol.toStringTag,{value:"Module"})),hn=async(e,t,n=!1)=>{await cn.updateOne(e,t,{upsert:n})},F$=Object.freeze(Object.defineProperty({__proto__:null,canChangeFaction:async e=>{await hn({_id:e},{$set:{canChangeFaction:!0}})},canChooseFaction:async e=>{await hn({_id:e},{$set:{canChooseFaction:!0}})},removeBirthday:async e=>{await hn({userId:e},{$set:{birthday:null}})},setBirthday:async(e,t)=>{await hn({userId:e},{$set:{birthday:t}})},updateInventorySort:async(e,t)=>{await hn({_id:e},{$set:{"settings.sort.inventory":t}})},updateSendDailyQuest:async(e,t)=>{await hn({userId:e},{$set:{"settings.sendDailyQuest":t}})},updateSendDailyReport:async(e,t)=>{await hn({userId:e},{$set:{"settings.sendDailyReport":t}})}},Symbol.toStringTag,{value:"Module"})),H$=async e=>{await cn.deleteOne({userId:e})},E$=async e=>await ki.create({user:e}),I$=async e=>await Cr.create({user:e}),A$=async e=>await na.create({user:e}),V$=async e=>await sa.create({user:e}),G$=async e=>await io.create({user:e}),Bd=(e,t)=>{switch(e){case"dailyReport":return E$(t);case"games":return I$(t);case"inventory":return Td(t);case"meta":return Nd(t);case"raid":return V$(t);case"ornaments":return jd(t);case"quest":return Ed(t);case"questMeta":return A$(t);case"shop":return G$(t)}},q$=async(e,t,n)=>{if(Array.isArray(t)){const s=await e.populate(t);for(const r of t)s[r]||(s[r]=await Bd(r,e._id));return s}else{const s=await e.populate(t,n);return s[t]||(s[t]=await Bd(t,e._id)),s}},B$=e=>{Y.connect(e)};M.connectToServices=B$,M.createInvitations=dg,M.crewGetters=ig,M.crewModel=ir,M.crewUpdates=og,M.deleteInvitations=cg,M.deleteUserById=H$,M.findCrewById=ug,M.findInvitations=lg,M.findUser=qd,M.findUserById=Gd,M.findUserCrew=G0,M.findUserInventory=so,M.findUserMeta=ro,M.findUserOrnaments=Y$,M.findUserQuest=C$,M.invitationsModel=or,M.populateUser=q$,M.userCrewExists=q0,M.userCrewModel=ps,M.userCrewUpdates=V0,M.userDailyReportModel=ki,M.userGamesModel=Cr,M.userGamesUpdates=B0,M.userGetters=W$,M.userInventoryGetters=l$,M.userInventoryModel=Os,M.userInventoryUpdates=d$,M.userMetaGetters=y$,M.userMetaModel=Zt,M.userMetaUpdates=M$,M.userModel=cn,M.userOrnamentsModel=Ns,M.userOrnamentsUpdates=D$,M.userQuestGetters=N$,M.userQuestMetaModel=na,M.userQuestMetaUpdates=P$,M.userQuestModel=Rs,M.userQuestUpdates=R$,M.userRaidGetters=L$,M.userRaidModel=sa,M.userRaidUpdates=U$,M.userShopModel=io,M.userUpdates=F$,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"})});