@opfr/quests 1.4.5 → 1.4.6

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,4 +1,4 @@
1
- (function(d,ot){typeof exports=="object"&&typeof module<"u"?ot(exports,require("@napi-rs/canvas"),require("@opfr/services"),require("events")):typeof define=="function"&&define.amd?define(["exports","@napi-rs/canvas","@opfr/services","events"],ot):(d=typeof globalThis<"u"?globalThis:d||self,ot(d.definitions={},d["@napi-rs/canvas"],d["@opfr/services"],d.events))})(this,(function(d,ot,r,vo){"use strict";function ko(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const i=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,i.get?i:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const Oo=ko(vo),ue=(e,t)=>(e.options={...e.options,...t,text:"text"in e.options?e.options.text:""},t.enable&&(e.options={...e.options,x:t.x+(t.width??0),y:t.y}),e);var be=(e=>(e.TOP_LEFT="top-left",e.TOP="top",e.TOP_RIGHT="top-right",e.LEFT="left",e.CENTER="center",e.RIGHT="right",e.BOTTOM_LEFT="bottom-left",e.BOTTOM="bottom",e.BOTTOM_RIGHT="bottom-right",e))(be||{});var xa;function S(){return xa.apply(null,arguments)}function xo(e){xa=e}function ee(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Ae(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function v(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Pt(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(v(e,t))return!1;return!0}function $(e){return e===void 0}function ce(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function He(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Ca(e,t){var a=[],i,s=e.length;for(i=0;i<s;++i)a.push(t(e[i],i));return a}function ye(e,t){for(var a in t)v(t,a)&&(e[a]=t[a]);return v(t,"toString")&&(e.toString=t.toString),v(t,"valueOf")&&(e.valueOf=t.valueOf),e}function ne(e,t,a,i){return oi(e,t,a,i,!0).utc()}function Co(){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 R(e){return e._pf==null&&(e._pf=Co()),e._pf}var Wt;Array.prototype.some?Wt=Array.prototype.some:Wt=function(e){var t=Object(this),a=t.length>>>0,i;for(i=0;i<a;i++)if(i in t&&e.call(this,t[i],i,t))return!0;return!1};function Ht(e){var t=null,a=!1,i=e._d&&!isNaN(e._d.getTime());if(i&&(t=R(e),a=Wt.call(t.parsedDateParts,function(s){return s!=null}),i=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&a),e._strict&&(i=i&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=i;else return i;return e._isValid}function dt(e){var t=ne(NaN);return e!=null?ye(R(t),e):R(t).userInvalidated=!0,t}var La=S.momentProperties=[],Ft=!1;function jt(e,t){var a,i,s,n=La.length;if($(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),$(t._i)||(e._i=t._i),$(t._f)||(e._f=t._f),$(t._l)||(e._l=t._l),$(t._strict)||(e._strict=t._strict),$(t._tzm)||(e._tzm=t._tzm),$(t._isUTC)||(e._isUTC=t._isUTC),$(t._offset)||(e._offset=t._offset),$(t._pf)||(e._pf=R(t)),$(t._locale)||(e._locale=t._locale),n>0)for(a=0;a<n;a++)i=La[a],s=t[i],$(s)||(e[i]=s);return e}function Fe(e){jt(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Ft===!1&&(Ft=!0,S.updateOffset(this),Ft=!1)}function te(e){return e instanceof Fe||e!=null&&e._isAMomentObject!=null}function Va(e){S.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function J(e,t){var a=!0;return ye(function(){if(S.deprecationHandler!=null&&S.deprecationHandler(null,e),a){var i=[],s,n,o,l=arguments.length;for(n=0;n<l;n++){if(s="",typeof arguments[n]=="object"){s+=`
1
+ (function(d,ot){typeof exports=="object"&&typeof module<"u"?ot(exports,require("@napi-rs/canvas"),require("@opfr/services"),require("events")):typeof define=="function"&&define.amd?define(["exports","@napi-rs/canvas","@opfr/services","events"],ot):(d=typeof globalThis<"u"?globalThis:d||self,ot(d.definitions={},d["@napi-rs/canvas"],d["@opfr/services"],d.events))})(this,(function(d,ot,r,vo){"use strict";function ko(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const i=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,i.get?i:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const Oo=ko(vo),ue=(e,t)=>(e.options={...e.options,...t,text:"text"in e.options?e.options.text:""},t.enable&&(e.options={...e.options,x:t.x+(t.width??0),y:t.y}),e);var be=(e=>(e.TOP_LEFT="top-left",e.TOP="top",e.TOP_RIGHT="top-right",e.LEFT="left",e.CENTER="center",e.RIGHT="right",e.BOTTOM_LEFT="bottom-left",e.BOTTOM="bottom",e.BOTTOM_RIGHT="bottom-right",e))(be||{});var xa;function S(){return xa.apply(null,arguments)}function xo(e){xa=e}function ee(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Re(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function v(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Pt(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(v(e,t))return!1;return!0}function $(e){return e===void 0}function ce(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function We(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Ca(e,t){var a=[],i,s=e.length;for(i=0;i<s;++i)a.push(t(e[i],i));return a}function ye(e,t){for(var a in t)v(t,a)&&(e[a]=t[a]);return v(t,"toString")&&(e.toString=t.toString),v(t,"valueOf")&&(e.valueOf=t.valueOf),e}function ne(e,t,a,i){return oi(e,t,a,i,!0).utc()}function Co(){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 A(e){return e._pf==null&&(e._pf=Co()),e._pf}var Wt;Array.prototype.some?Wt=Array.prototype.some:Wt=function(e){var t=Object(this),a=t.length>>>0,i;for(i=0;i<a;i++)if(i in t&&e.call(this,t[i],i,t))return!0;return!1};function Ht(e){var t=null,a=!1,i=e._d&&!isNaN(e._d.getTime());if(i&&(t=A(e),a=Wt.call(t.parsedDateParts,function(s){return s!=null}),i=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&a),e._strict&&(i=i&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=i;else return i;return e._isValid}function dt(e){var t=ne(NaN);return e!=null?ye(A(t),e):A(t).userInvalidated=!0,t}var La=S.momentProperties=[],Ft=!1;function jt(e,t){var a,i,s,n=La.length;if($(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),$(t._i)||(e._i=t._i),$(t._f)||(e._f=t._f),$(t._l)||(e._l=t._l),$(t._strict)||(e._strict=t._strict),$(t._tzm)||(e._tzm=t._tzm),$(t._isUTC)||(e._isUTC=t._isUTC),$(t._offset)||(e._offset=t._offset),$(t._pf)||(e._pf=A(t)),$(t._locale)||(e._locale=t._locale),n>0)for(a=0;a<n;a++)i=La[a],s=t[i],$(s)||(e[i]=s);return e}function He(e){jt(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Ft===!1&&(Ft=!0,S.updateOffset(this),Ft=!1)}function te(e){return e instanceof He||e!=null&&e._isAMomentObject!=null}function Va(e){S.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function J(e,t){var a=!0;return ye(function(){if(S.deprecationHandler!=null&&S.deprecationHandler(null,e),a){var i=[],s,n,o,l=arguments.length;for(n=0;n<l;n++){if(s="",typeof arguments[n]=="object"){s+=`
2
2
  [`+n+"] ";for(o in arguments[0])v(arguments[0],o)&&(s+=o+": "+arguments[0][o]+", ");s=s.slice(0,-2)}else s=arguments[n];i.push(s)}Va(e+`
3
3
  Arguments: `+Array.prototype.slice.call(i).join("")+`
4
- `+new Error().stack),a=!1}return t.apply(this,arguments)},t)}var Ua={};function Ya(e,t){S.deprecationHandler!=null&&S.deprecationHandler(e,t),Ua[e]||(Va(t),Ua[e]=!0)}S.suppressDeprecationWarnings=!1,S.deprecationHandler=null;function re(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Lo(e){var t,a;for(a in e)v(e,a)&&(t=e[a],re(t)?this[a]=t:this["_"+a]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Qt(e,t){var a=ye({},e),i;for(i in t)v(t,i)&&(Ae(e[i])&&Ae(t[i])?(a[i]={},ye(a[i],e[i]),ye(a[i],t[i])):t[i]!=null?a[i]=t[i]:delete a[i]);for(i in e)v(e,i)&&!v(t,i)&&Ae(e[i])&&(a[i]=ye({},a[i]));return a}function Bt(e){e!=null&&this.set(e)}var Gt;Object.keys?Gt=Object.keys:Gt=function(e){var t,a=[];for(t in e)v(e,t)&&a.push(t);return a};var Vo={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Uo(e,t,a){var i=this._calendar[e]||this._calendar.sameElse;return re(i)?i.call(t,a):i}function oe(e,t,a){var i=""+Math.abs(e),s=t-i.length,n=e>=0;return(n?a?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+i}var $t=/(\[[^\[]*\])|(\\)?([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,lt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,zt={},we={};function M(e,t,a,i){var s=i;typeof i=="string"&&(s=function(){return this[i]()}),e&&(we[e]=s),t&&(we[t[0]]=function(){return oe(s.apply(this,arguments),t[1],t[2])}),a&&(we[a]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function Yo(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Po(e){var t=e.match($t),a,i;for(a=0,i=t.length;a<i;a++)we[t[a]]?t[a]=we[t[a]]:t[a]=Yo(t[a]);return function(s){var n="",o;for(o=0;o<i;o++)n+=re(t[o])?t[o].call(s,e):t[o];return n}}function ut(e,t){return e.isValid()?(t=Pa(t,e.localeData()),zt[t]=zt[t]||Po(t),zt[t](e)):e.localeData().invalidDate()}function Pa(e,t){var a=5;function i(s){return t.longDateFormat(s)||s}for(lt.lastIndex=0;a>=0&&lt.test(e);)e=e.replace(lt,i),lt.lastIndex=0,a-=1;return e}var Wo={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 Ho(e){var t=this._longDateFormat[e],a=this._longDateFormat[e.toUpperCase()];return t||!a?t:(this._longDateFormat[e]=a.match($t).map(function(i){return i==="MMMM"||i==="MM"||i==="DD"||i==="dddd"?i.slice(1):i}).join(""),this._longDateFormat[e])}var Fo="Invalid date";function jo(){return this._invalidDate}var Qo="%d",Bo=/\d{1,2}/;function Go(e){return this._ordinal.replace("%d",e)}var $o={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 zo(e,t,a,i){var s=this._relativeTime[a];return re(s)?s(e,t,a,i):s.replace(/%d/i,e)}function qo(e,t){var a=this._relativeTime[e>0?"future":"past"];return re(a)?a(t):a.replace(/%s/i,t)}var Wa={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 Z(e){return typeof e=="string"?Wa[e]||Wa[e.toLowerCase()]:void 0}function qt(e){var t={},a,i;for(i in e)v(e,i)&&(a=Z(i),a&&(t[a]=e[i]));return t}var Ko={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 Jo(e){var t=[],a;for(a in e)v(e,a)&&t.push({unit:a,priority:Ko[a]});return t.sort(function(i,s){return i.priority-s.priority}),t}var Ha=/\d/,z=/\d\d/,Fa=/\d{3}/,Kt=/\d{4}/,ct=/[+-]?\d{6}/,V=/\d\d?/,ja=/\d\d\d\d?/,Qa=/\d\d\d\d\d\d?/,ht=/\d{1,3}/,Jt=/\d{1,4}/,ft=/[+-]?\d{1,6}/,ve=/\d+/,mt=/[+-]?\d+/,Zo=/Z|[+-]\d\d:?\d\d/gi,_t=/Z|[+-]\d\d(?::?\d\d)?/gi,Xo=/[+-]?\d+(\.\d{1,3})?/,je=/[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,ke=/^[1-9]\d?/,Zt=/^([1-9]\d|\d)/,pt;pt={};function y(e,t,a){pt[e]=re(t)?t:function(i,s){return i&&a?a:t}}function ed(e,t){return v(pt,e)?pt[e](t._strict,t._locale):new RegExp(td(e))}function td(e){return he(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,a,i,s,n){return a||i||s||n}))}function he(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function X(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function D(e){var t=+e,a=0;return t!==0&&isFinite(t)&&(a=X(t)),a}var Xt={};function L(e,t){var a,i=t,s;for(typeof e=="string"&&(e=[e]),ce(t)&&(i=function(n,o){o[t]=D(n)}),s=e.length,a=0;a<s;a++)Xt[e[a]]=i}function Qe(e,t){L(e,function(a,i,s,n){s._w=s._w||{},t(a,s._w,s,n)})}function ad(e,t,a){t!=null&&v(Xt,e)&&Xt[e](t,a._a,a,e)}function gt(e){return e%4===0&&e%100!==0||e%400===0}var Q=0,fe=1,de=2,j=3,ae=4,me=5,Re=6,id=7,sd=8;M("Y",0,0,function(){var e=this.year();return e<=9999?oe(e,4):"+"+e}),M(0,["YY",2],0,function(){return this.year()%100}),M(0,["YYYY",4],0,"year"),M(0,["YYYYY",5],0,"year"),M(0,["YYYYYY",6,!0],0,"year"),y("Y",mt),y("YY",V,z),y("YYYY",Jt,Kt),y("YYYYY",ft,ct),y("YYYYYY",ft,ct),L(["YYYYY","YYYYYY"],Q),L("YYYY",function(e,t){t[Q]=e.length===2?S.parseTwoDigitYear(e):D(e)}),L("YY",function(e,t){t[Q]=S.parseTwoDigitYear(e)}),L("Y",function(e,t){t[Q]=parseInt(e,10)});function Be(e){return gt(e)?366:365}S.parseTwoDigitYear=function(e){return D(e)+(D(e)>68?1900:2e3)};var Ba=Oe("FullYear",!0);function nd(){return gt(this.year())}function Oe(e,t){return function(a){return a!=null?(Ga(this,e,a),S.updateOffset(this,t),this):Ge(this,e)}}function Ge(e,t){if(!e.isValid())return NaN;var a=e._d,i=e._isUTC;switch(t){case"Milliseconds":return i?a.getUTCMilliseconds():a.getMilliseconds();case"Seconds":return i?a.getUTCSeconds():a.getSeconds();case"Minutes":return i?a.getUTCMinutes():a.getMinutes();case"Hours":return i?a.getUTCHours():a.getHours();case"Date":return i?a.getUTCDate():a.getDate();case"Day":return i?a.getUTCDay():a.getDay();case"Month":return i?a.getUTCMonth():a.getMonth();case"FullYear":return i?a.getUTCFullYear():a.getFullYear();default:return NaN}}function Ga(e,t,a){var i,s,n,o,l;if(!(!e.isValid()||isNaN(a))){switch(i=e._d,s=e._isUTC,t){case"Milliseconds":return void(s?i.setUTCMilliseconds(a):i.setMilliseconds(a));case"Seconds":return void(s?i.setUTCSeconds(a):i.setSeconds(a));case"Minutes":return void(s?i.setUTCMinutes(a):i.setMinutes(a));case"Hours":return void(s?i.setUTCHours(a):i.setHours(a));case"Date":return void(s?i.setUTCDate(a):i.setDate(a));case"FullYear":break;default:return}n=a,o=e.month(),l=e.date(),l=l===29&&o===1&&!gt(n)?28:l,s?i.setUTCFullYear(n,o,l):i.setFullYear(n,o,l)}}function rd(e){return e=Z(e),re(this[e])?this[e]():this}function od(e,t){if(typeof e=="object"){e=qt(e);var a=Jo(e),i,s=a.length;for(i=0;i<s;i++)this[a[i].unit](e[a[i].unit])}else if(e=Z(e),re(this[e]))return this[e](t);return this}function dd(e,t){return(e%t+t)%t}var H;Array.prototype.indexOf?H=Array.prototype.indexOf:H=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function ea(e,t){if(isNaN(e)||isNaN(t))return NaN;var a=dd(t,12);return e+=(t-a)/12,a===1?gt(e)?29:28:31-a%7%2}M("M",["MM",2],"Mo",function(){return this.month()+1}),M("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),M("MMMM",0,0,function(e){return this.localeData().months(this,e)}),y("M",V,ke),y("MM",V,z),y("MMM",function(e,t){return t.monthsShortRegex(e)}),y("MMMM",function(e,t){return t.monthsRegex(e)}),L(["M","MM"],function(e,t){t[fe]=D(e)-1}),L(["MMM","MMMM"],function(e,t,a,i){var s=a._locale.monthsParse(e,i,a._strict);s!=null?t[fe]=s:R(a).invalidMonth=e});var ld="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),$a="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),za=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ud=je,cd=je;function hd(e,t){return e?ee(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||za).test(t)?"format":"standalone"][e.month()]:ee(this._months)?this._months:this._months.standalone}function fd(e,t){return e?ee(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[za.test(t)?"format":"standalone"][e.month()]:ee(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function md(e,t,a){var i,s,n,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)n=ne([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(n,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(n,"").toLocaleLowerCase();return a?t==="MMM"?(s=H.call(this._shortMonthsParse,o),s!==-1?s:null):(s=H.call(this._longMonthsParse,o),s!==-1?s:null):t==="MMM"?(s=H.call(this._shortMonthsParse,o),s!==-1?s:(s=H.call(this._longMonthsParse,o),s!==-1?s:null)):(s=H.call(this._longMonthsParse,o),s!==-1?s:(s=H.call(this._shortMonthsParse,o),s!==-1?s:null))}function _d(e,t,a){var i,s,n;if(this._monthsParseExact)return md.call(this,e,t,a);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(s=ne([2e3,i]),a&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),!a&&!this._monthsParse[i]&&(n="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[i]=new RegExp(n.replace(".",""),"i")),a&&t==="MMMM"&&this._longMonthsParse[i].test(e))return i;if(a&&t==="MMM"&&this._shortMonthsParse[i].test(e))return i;if(!a&&this._monthsParse[i].test(e))return i}}function qa(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=D(t);else if(t=e.localeData().monthsParse(t),!ce(t))return e}var a=t,i=e.date();return i=i<29?i:Math.min(i,ea(e.year(),a)),e._isUTC?e._d.setUTCMonth(a,i):e._d.setMonth(a,i),e}function Ka(e){return e!=null?(qa(this,e),S.updateOffset(this,!0),this):Ge(this,"Month")}function pd(){return ea(this.year(),this.month())}function gd(e){return this._monthsParseExact?(v(this,"_monthsRegex")||Ja.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(v(this,"_monthsShortRegex")||(this._monthsShortRegex=ud),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Ed(e){return this._monthsParseExact?(v(this,"_monthsRegex")||Ja.call(this),e?this._monthsStrictRegex:this._monthsRegex):(v(this,"_monthsRegex")||(this._monthsRegex=cd),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Ja(){function e(h,f){return f.length-h.length}var t=[],a=[],i=[],s,n,o,l;for(s=0;s<12;s++)n=ne([2e3,s]),o=he(this.monthsShort(n,"")),l=he(this.months(n,"")),t.push(o),a.push(l),i.push(l),i.push(o);t.sort(e),a.sort(e),i.sort(e),this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Sd(e,t,a,i,s,n,o){var l;return e<100&&e>=0?(l=new Date(e+400,t,a,i,s,n,o),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,a,i,s,n,o),l}function $e(e){var t,a;return e<100&&e>=0?(a=Array.prototype.slice.call(arguments),a[0]=e+400,t=new Date(Date.UTC.apply(null,a)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Et(e,t,a){var i=7+t-a,s=(7+$e(e,0,i).getUTCDay()-t)%7;return-s+i-1}function Za(e,t,a,i,s){var n=(7+a-i)%7,o=Et(e,i,s),l=1+7*(t-1)+n+o,h,f;return l<=0?(h=e-1,f=Be(h)+l):l>Be(e)?(h=e+1,f=l-Be(e)):(h=e,f=l),{year:h,dayOfYear:f}}function ze(e,t,a){var i=Et(e.year(),t,a),s=Math.floor((e.dayOfYear()-i-1)/7)+1,n,o;return s<1?(o=e.year()-1,n=s+_e(o,t,a)):s>_e(e.year(),t,a)?(n=s-_e(e.year(),t,a),o=e.year()+1):(o=e.year(),n=s),{week:n,year:o}}function _e(e,t,a){var i=Et(e,t,a),s=Et(e+1,t,a);return(Be(e)-i+s)/7}M("w",["ww",2],"wo","week"),M("W",["WW",2],"Wo","isoWeek"),y("w",V,ke),y("ww",V,z),y("W",V,ke),y("WW",V,z),Qe(["w","ww","W","WW"],function(e,t,a,i){t[i.substr(0,1)]=D(e)});function yd(e){return ze(e,this._week.dow,this._week.doy).week}var Md={dow:0,doy:6};function Td(){return this._week.dow}function bd(){return this._week.doy}function Ad(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Rd(e){var t=ze(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}M("d",0,"do","day"),M("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),M("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),M("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),M("e",0,0,"weekday"),M("E",0,0,"isoWeekday"),y("d",V),y("e",V),y("E",V),y("dd",function(e,t){return t.weekdaysMinRegex(e)}),y("ddd",function(e,t){return t.weekdaysShortRegex(e)}),y("dddd",function(e,t){return t.weekdaysRegex(e)}),Qe(["dd","ddd","dddd"],function(e,t,a,i){var s=a._locale.weekdaysParse(e,i,a._strict);s!=null?t.d=s:R(a).invalidWeekday=e}),Qe(["d","e","E"],function(e,t,a,i){t[i]=D(e)});function Dd(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Nd(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function ta(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Id="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Xa="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),wd="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),vd=je,kd=je,Od=je;function xd(e,t){var a=ee(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?ta(a,this._week.dow):e?a[e.day()]:a}function Cd(e){return e===!0?ta(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ld(e){return e===!0?ta(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Vd(e,t,a){var i,s,n,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)n=ne([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(n,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(n,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(n,"").toLocaleLowerCase();return a?t==="dddd"?(s=H.call(this._weekdaysParse,o),s!==-1?s:null):t==="ddd"?(s=H.call(this._shortWeekdaysParse,o),s!==-1?s:null):(s=H.call(this._minWeekdaysParse,o),s!==-1?s:null):t==="dddd"?(s=H.call(this._weekdaysParse,o),s!==-1||(s=H.call(this._shortWeekdaysParse,o),s!==-1)?s:(s=H.call(this._minWeekdaysParse,o),s!==-1?s:null)):t==="ddd"?(s=H.call(this._shortWeekdaysParse,o),s!==-1||(s=H.call(this._weekdaysParse,o),s!==-1)?s:(s=H.call(this._minWeekdaysParse,o),s!==-1?s:null)):(s=H.call(this._minWeekdaysParse,o),s!==-1||(s=H.call(this._weekdaysParse,o),s!==-1)?s:(s=H.call(this._shortWeekdaysParse,o),s!==-1?s:null))}function Ud(e,t,a){var i,s,n;if(this._weekdaysParseExact)return Vd.call(this,e,t,a);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(s=ne([2e3,1]).day(i),a&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(n="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[i]=new RegExp(n.replace(".",""),"i")),a&&t==="dddd"&&this._fullWeekdaysParse[i].test(e))return i;if(a&&t==="ddd"&&this._shortWeekdaysParse[i].test(e))return i;if(a&&t==="dd"&&this._minWeekdaysParse[i].test(e))return i;if(!a&&this._weekdaysParse[i].test(e))return i}}function Yd(e){if(!this.isValid())return e!=null?this:NaN;var t=Ge(this,"Day");return e!=null?(e=Dd(e,this.localeData()),this.add(e-t,"d")):t}function Pd(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 Wd(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Nd(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Hd(e){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||aa.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(v(this,"_weekdaysRegex")||(this._weekdaysRegex=vd),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Fd(e){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||aa.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(v(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=kd),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function jd(e){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||aa.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(v(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Od),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function aa(){function e(_,E){return E.length-_.length}var t=[],a=[],i=[],s=[],n,o,l,h,f;for(n=0;n<7;n++)o=ne([2e3,1]).day(n),l=he(this.weekdaysMin(o,"")),h=he(this.weekdaysShort(o,"")),f=he(this.weekdays(o,"")),t.push(l),a.push(h),i.push(f),s.push(l),s.push(h),s.push(f);t.sort(e),a.sort(e),i.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function ia(){return this.hours()%12||12}function Qd(){return this.hours()||24}M("H",["HH",2],0,"hour"),M("h",["hh",2],0,ia),M("k",["kk",2],0,Qd),M("hmm",0,0,function(){return""+ia.apply(this)+oe(this.minutes(),2)}),M("hmmss",0,0,function(){return""+ia.apply(this)+oe(this.minutes(),2)+oe(this.seconds(),2)}),M("Hmm",0,0,function(){return""+this.hours()+oe(this.minutes(),2)}),M("Hmmss",0,0,function(){return""+this.hours()+oe(this.minutes(),2)+oe(this.seconds(),2)});function ei(e,t){M(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}ei("a",!0),ei("A",!1);function ti(e,t){return t._meridiemParse}y("a",ti),y("A",ti),y("H",V,Zt),y("h",V,ke),y("k",V,ke),y("HH",V,z),y("hh",V,z),y("kk",V,z),y("hmm",ja),y("hmmss",Qa),y("Hmm",ja),y("Hmmss",Qa),L(["H","HH"],j),L(["k","kk"],function(e,t,a){var i=D(e);t[j]=i===24?0:i}),L(["a","A"],function(e,t,a){a._isPm=a._locale.isPM(e),a._meridiem=e}),L(["h","hh"],function(e,t,a){t[j]=D(e),R(a).bigHour=!0}),L("hmm",function(e,t,a){var i=e.length-2;t[j]=D(e.substr(0,i)),t[ae]=D(e.substr(i)),R(a).bigHour=!0}),L("hmmss",function(e,t,a){var i=e.length-4,s=e.length-2;t[j]=D(e.substr(0,i)),t[ae]=D(e.substr(i,2)),t[me]=D(e.substr(s)),R(a).bigHour=!0}),L("Hmm",function(e,t,a){var i=e.length-2;t[j]=D(e.substr(0,i)),t[ae]=D(e.substr(i))}),L("Hmmss",function(e,t,a){var i=e.length-4,s=e.length-2;t[j]=D(e.substr(0,i)),t[ae]=D(e.substr(i,2)),t[me]=D(e.substr(s))});function Bd(e){return(e+"").toLowerCase().charAt(0)==="p"}var Gd=/[ap]\.?m?\.?/i,$d=Oe("Hours",!0);function zd(e,t,a){return e>11?a?"pm":"PM":a?"am":"AM"}var ai={calendar:Vo,longDateFormat:Wo,invalidDate:Fo,ordinal:Qo,dayOfMonthOrdinalParse:Bo,relativeTime:$o,months:ld,monthsShort:$a,week:Md,weekdays:Id,weekdaysMin:wd,weekdaysShort:Xa,meridiemParse:Gd},Y={},qe={},Ke;function qd(e,t){var a,i=Math.min(e.length,t.length);for(a=0;a<i;a+=1)if(e[a]!==t[a])return a;return i}function ii(e){return e&&e.toLowerCase().replace("_","-")}function Kd(e){for(var t=0,a,i,s,n;t<e.length;){for(n=ii(e[t]).split("-"),a=n.length,i=ii(e[t+1]),i=i?i.split("-"):null;a>0;){if(s=St(n.slice(0,a).join("-")),s)return s;if(i&&i.length>=a&&qd(n,i)>=a-1)break;a--}t++}return Ke}function Jd(e){return!!(e&&e.match("^[^/\\\\]*$"))}function St(e){var t=null,a;if(Y[e]===void 0&&typeof module<"u"&&module&&module.exports&&Jd(e))try{t=Ke._abbr,a=require,a("./locale/"+e),Me(t)}catch{Y[e]=null}return Y[e]}function Me(e,t){var a;return e&&($(t)?a=pe(e):a=sa(e,t),a?Ke=a:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ke._abbr}function sa(e,t){if(t!==null){var a,i=ai;if(t.abbr=e,Y[e]!=null)Ya("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=Y[e]._config;else if(t.parentLocale!=null)if(Y[t.parentLocale]!=null)i=Y[t.parentLocale]._config;else if(a=St(t.parentLocale),a!=null)i=a._config;else return qe[t.parentLocale]||(qe[t.parentLocale]=[]),qe[t.parentLocale].push({name:e,config:t}),null;return Y[e]=new Bt(Qt(i,t)),qe[e]&&qe[e].forEach(function(s){sa(s.name,s.config)}),Me(e),Y[e]}else return delete Y[e],null}function Zd(e,t){if(t!=null){var a,i,s=ai;Y[e]!=null&&Y[e].parentLocale!=null?Y[e].set(Qt(Y[e]._config,t)):(i=St(e),i!=null&&(s=i._config),t=Qt(s,t),i==null&&(t.abbr=e),a=new Bt(t),a.parentLocale=Y[e],Y[e]=a),Me(e)}else Y[e]!=null&&(Y[e].parentLocale!=null?(Y[e]=Y[e].parentLocale,e===Me()&&Me(e)):Y[e]!=null&&delete Y[e]);return Y[e]}function pe(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ke;if(!ee(e)){if(t=St(e),t)return t;e=[e]}return Kd(e)}function Xd(){return Gt(Y)}function na(e){var t,a=e._a;return a&&R(e).overflow===-2&&(t=a[fe]<0||a[fe]>11?fe:a[de]<1||a[de]>ea(a[Q],a[fe])?de:a[j]<0||a[j]>24||a[j]===24&&(a[ae]!==0||a[me]!==0||a[Re]!==0)?j:a[ae]<0||a[ae]>59?ae:a[me]<0||a[me]>59?me:a[Re]<0||a[Re]>999?Re:-1,R(e)._overflowDayOfYear&&(t<Q||t>de)&&(t=de),R(e)._overflowWeeks&&t===-1&&(t=id),R(e)._overflowWeekday&&t===-1&&(t=sd),R(e).overflow=t),e}var el=/^\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)?)?$/,tl=/^\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)?)?$/,al=/Z|[+-]\d\d(?::?\d\d)?/,yt=[["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]],ra=[["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/]],il=/^\/?Date\((-?\d+)/i,sl=/^(?:(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}))$/,nl={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function si(e){var t,a,i=e._i,s=el.exec(i)||tl.exec(i),n,o,l,h,f=yt.length,_=ra.length;if(s){for(R(e).iso=!0,t=0,a=f;t<a;t++)if(yt[t][1].exec(s[1])){o=yt[t][0],n=yt[t][2]!==!1;break}if(o==null){e._isValid=!1;return}if(s[3]){for(t=0,a=_;t<a;t++)if(ra[t][1].exec(s[3])){l=(s[2]||" ")+ra[t][0];break}if(l==null){e._isValid=!1;return}}if(!n&&l!=null){e._isValid=!1;return}if(s[4])if(al.exec(s[4]))h="Z";else{e._isValid=!1;return}e._f=o+(l||"")+(h||""),da(e)}else e._isValid=!1}function rl(e,t,a,i,s,n){var o=[ol(e),$a.indexOf(t),parseInt(a,10),parseInt(i,10),parseInt(s,10)];return n&&o.push(parseInt(n,10)),o}function ol(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function dl(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function ll(e,t,a){if(e){var i=Xa.indexOf(e),s=new Date(t[0],t[1],t[2]).getDay();if(i!==s)return R(a).weekdayMismatch=!0,a._isValid=!1,!1}return!0}function ul(e,t,a){if(e)return nl[e];if(t)return 0;var i=parseInt(a,10),s=i%100,n=(i-s)/100;return n*60+s}function ni(e){var t=sl.exec(dl(e._i)),a;if(t){if(a=rl(t[4],t[3],t[2],t[5],t[6],t[7]),!ll(t[1],a,e))return;e._a=a,e._tzm=ul(t[8],t[9],t[10]),e._d=$e.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),R(e).rfc2822=!0}else e._isValid=!1}function cl(e){var t=il.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(si(e),e._isValid===!1)delete e._isValid;else return;if(ni(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:S.createFromInputFallback(e)}S.createFromInputFallback=J("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 xe(e,t,a){return e??t??a}function hl(e){var t=new Date(S.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function oa(e){var t,a,i=[],s,n,o;if(!e._d){for(s=hl(e),e._w&&e._a[de]==null&&e._a[fe]==null&&fl(e),e._dayOfYear!=null&&(o=xe(e._a[Q],s[Q]),(e._dayOfYear>Be(o)||e._dayOfYear===0)&&(R(e)._overflowDayOfYear=!0),a=$e(o,0,e._dayOfYear),e._a[fe]=a.getUTCMonth(),e._a[de]=a.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=i[t]=s[t];for(;t<7;t++)e._a[t]=i[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[j]===24&&e._a[ae]===0&&e._a[me]===0&&e._a[Re]===0&&(e._nextDay=!0,e._a[j]=0),e._d=(e._useUTC?$e:Sd).apply(null,i),n=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[j]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==n&&(R(e).weekdayMismatch=!0)}}function fl(e){var t,a,i,s,n,o,l,h,f;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(n=1,o=4,a=xe(t.GG,e._a[Q],ze(U(),1,4).year),i=xe(t.W,1),s=xe(t.E,1),(s<1||s>7)&&(h=!0)):(n=e._locale._week.dow,o=e._locale._week.doy,f=ze(U(),n,o),a=xe(t.gg,e._a[Q],f.year),i=xe(t.w,f.week),t.d!=null?(s=t.d,(s<0||s>6)&&(h=!0)):t.e!=null?(s=t.e+n,(t.e<0||t.e>6)&&(h=!0)):s=n),i<1||i>_e(a,n,o)?R(e)._overflowWeeks=!0:h!=null?R(e)._overflowWeekday=!0:(l=Za(a,i,s,n,o),e._a[Q]=l.year,e._dayOfYear=l.dayOfYear)}S.ISO_8601=function(){},S.RFC_2822=function(){};function da(e){if(e._f===S.ISO_8601){si(e);return}if(e._f===S.RFC_2822){ni(e);return}e._a=[],R(e).empty=!0;var t=""+e._i,a,i,s,n,o,l=t.length,h=0,f,_;for(s=Pa(e._f,e._locale).match($t)||[],_=s.length,a=0;a<_;a++)n=s[a],i=(t.match(ed(n,e))||[])[0],i&&(o=t.substr(0,t.indexOf(i)),o.length>0&&R(e).unusedInput.push(o),t=t.slice(t.indexOf(i)+i.length),h+=i.length),we[n]?(i?R(e).empty=!1:R(e).unusedTokens.push(n),ad(n,i,e)):e._strict&&!i&&R(e).unusedTokens.push(n);R(e).charsLeftOver=l-h,t.length>0&&R(e).unusedInput.push(t),e._a[j]<=12&&R(e).bigHour===!0&&e._a[j]>0&&(R(e).bigHour=void 0),R(e).parsedDateParts=e._a.slice(0),R(e).meridiem=e._meridiem,e._a[j]=ml(e._locale,e._a[j],e._meridiem),f=R(e).era,f!==null&&(e._a[Q]=e._locale.erasConvertYear(f,e._a[Q])),oa(e),na(e)}function ml(e,t,a){var i;return a==null?t:e.meridiemHour!=null?e.meridiemHour(t,a):(e.isPM!=null&&(i=e.isPM(a),i&&t<12&&(t+=12),!i&&t===12&&(t=0)),t)}function _l(e){var t,a,i,s,n,o,l=!1,h=e._f.length;if(h===0){R(e).invalidFormat=!0,e._d=new Date(NaN);return}for(s=0;s<h;s++)n=0,o=!1,t=jt({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[s],da(t),Ht(t)&&(o=!0),n+=R(t).charsLeftOver,n+=R(t).unusedTokens.length*10,R(t).score=n,l?n<i&&(i=n,a=t):(i==null||n<i||o)&&(i=n,a=t,o&&(l=!0));ye(e,a||t)}function pl(e){if(!e._d){var t=qt(e._i),a=t.day===void 0?t.date:t.day;e._a=Ca([t.year,t.month,a,t.hour,t.minute,t.second,t.millisecond],function(i){return i&&parseInt(i,10)}),oa(e)}}function gl(e){var t=new Fe(na(ri(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function ri(e){var t=e._i,a=e._f;return e._locale=e._locale||pe(e._l),t===null||a===void 0&&t===""?dt({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),te(t)?new Fe(na(t)):(He(t)?e._d=t:ee(a)?_l(e):a?da(e):El(e),Ht(e)||(e._d=null),e))}function El(e){var t=e._i;$(t)?e._d=new Date(S.now()):He(t)?e._d=new Date(t.valueOf()):typeof t=="string"?cl(e):ee(t)?(e._a=Ca(t.slice(0),function(a){return parseInt(a,10)}),oa(e)):Ae(t)?pl(e):ce(t)?e._d=new Date(t):S.createFromInputFallback(e)}function oi(e,t,a,i,s){var n={};return(t===!0||t===!1)&&(i=t,t=void 0),(a===!0||a===!1)&&(i=a,a=void 0),(Ae(e)&&Pt(e)||ee(e)&&e.length===0)&&(e=void 0),n._isAMomentObject=!0,n._useUTC=n._isUTC=s,n._l=a,n._i=e,n._f=t,n._strict=i,gl(n)}function U(e,t,a,i){return oi(e,t,a,i,!1)}var Sl=J("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=U.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:dt()}),yl=J("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=U.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:dt()});function di(e,t){var a,i;if(t.length===1&&ee(t[0])&&(t=t[0]),!t.length)return U();for(a=t[0],i=1;i<t.length;++i)(!t[i].isValid()||t[i][e](a))&&(a=t[i]);return a}function Ml(){var e=[].slice.call(arguments,0);return di("isBefore",e)}function Tl(){var e=[].slice.call(arguments,0);return di("isAfter",e)}var bl=function(){return Date.now?Date.now():+new Date},Je=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Al(e){var t,a=!1,i,s=Je.length;for(t in e)if(v(e,t)&&!(H.call(Je,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(i=0;i<s;++i)if(e[Je[i]]){if(a)return!1;parseFloat(e[Je[i]])!==D(e[Je[i]])&&(a=!0)}return!0}function Rl(){return this._isValid}function Dl(){return ie(NaN)}function Mt(e){var t=qt(e),a=t.year||0,i=t.quarter||0,s=t.month||0,n=t.week||t.isoWeek||0,o=t.day||0,l=t.hour||0,h=t.minute||0,f=t.second||0,_=t.millisecond||0;this._isValid=Al(t),this._milliseconds=+_+f*1e3+h*6e4+l*1e3*60*60,this._days=+o+n*7,this._months=+s+i*3+a*12,this._data={},this._locale=pe(),this._bubble()}function Tt(e){return e instanceof Mt}function la(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Nl(e,t,a){var i=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),n=0,o;for(o=0;o<i;o++)D(e[o])!==D(t[o])&&n++;return n+s}function li(e,t){M(e,0,0,function(){var a=this.utcOffset(),i="+";return a<0&&(a=-a,i="-"),i+oe(~~(a/60),2)+t+oe(~~a%60,2)})}li("Z",":"),li("ZZ",""),y("Z",_t),y("ZZ",_t),L(["Z","ZZ"],function(e,t,a){a._useUTC=!0,a._tzm=ua(_t,e)});var Il=/([\+\-]|\d\d)/gi;function ua(e,t){var a=(t||"").match(e),i,s,n;return a===null?null:(i=a[a.length-1]||[],s=(i+"").match(Il)||["-",0,0],n=+(s[1]*60)+D(s[2]),n===0?0:s[0]==="+"?n:-n)}function ca(e,t){var a,i;return t._isUTC?(a=t.clone(),i=(te(e)||He(e)?e.valueOf():U(e).valueOf())-a.valueOf(),a._d.setTime(a._d.valueOf()+i),S.updateOffset(a,!1),a):U(e).local()}function ha(e){return-Math.round(e._d.getTimezoneOffset())}S.updateOffset=function(){};function wl(e,t,a){var i=this._offset||0,s;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=ua(_t,e),e===null)return this}else Math.abs(e)<16&&!a&&(e=e*60);return!this._isUTC&&t&&(s=ha(this)),this._offset=e,this._isUTC=!0,s!=null&&this.add(s,"m"),i!==e&&(!t||this._changeInProgress?fi(this,ie(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,S.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?i:ha(this)}function vl(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function kl(e){return this.utcOffset(0,e)}function Ol(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(ha(this),"m")),this}function xl(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=ua(Zo,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Cl(e){return this.isValid()?(e=e?U(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Ll(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Vl(){if(!$(this._isDSTShifted))return this._isDSTShifted;var e={},t;return jt(e,this),e=ri(e),e._a?(t=e._isUTC?ne(e._a):U(e._a),this._isDSTShifted=this.isValid()&&Nl(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Ul(){return this.isValid()?!this._isUTC:!1}function Yl(){return this.isValid()?this._isUTC:!1}function ui(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Pl=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Wl=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ie(e,t){var a=e,i=null,s,n,o;return Tt(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:ce(e)||!isNaN(+e)?(a={},t?a[t]=+e:a.milliseconds=+e):(i=Pl.exec(e))?(s=i[1]==="-"?-1:1,a={y:0,d:D(i[de])*s,h:D(i[j])*s,m:D(i[ae])*s,s:D(i[me])*s,ms:D(la(i[Re]*1e3))*s}):(i=Wl.exec(e))?(s=i[1]==="-"?-1:1,a={y:De(i[2],s),M:De(i[3],s),w:De(i[4],s),d:De(i[5],s),h:De(i[6],s),m:De(i[7],s),s:De(i[8],s)}):a==null?a={}:typeof a=="object"&&("from"in a||"to"in a)&&(o=Hl(U(a.from),U(a.to)),a={},a.ms=o.milliseconds,a.M=o.months),n=new Mt(a),Tt(e)&&v(e,"_locale")&&(n._locale=e._locale),Tt(e)&&v(e,"_isValid")&&(n._isValid=e._isValid),n}ie.fn=Mt.prototype,ie.invalid=Dl;function De(e,t){var a=e&&parseFloat(e.replace(",","."));return(isNaN(a)?0:a)*t}function ci(e,t){var a={};return a.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(a.months,"M").isAfter(t)&&--a.months,a.milliseconds=+t-+e.clone().add(a.months,"M"),a}function Hl(e,t){var a;return e.isValid()&&t.isValid()?(t=ca(t,e),e.isBefore(t)?a=ci(e,t):(a=ci(t,e),a.milliseconds=-a.milliseconds,a.months=-a.months),a):{milliseconds:0,months:0}}function hi(e,t){return function(a,i){var s,n;return i!==null&&!isNaN(+i)&&(Ya(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."),n=a,a=i,i=n),s=ie(a,i),fi(this,s,e),this}}function fi(e,t,a,i){var s=t._milliseconds,n=la(t._days),o=la(t._months);e.isValid()&&(i=i??!0,o&&qa(e,Ge(e,"Month")+o*a),n&&Ga(e,"Date",Ge(e,"Date")+n*a),s&&e._d.setTime(e._d.valueOf()+s*a),i&&S.updateOffset(e,n||o))}var Fl=hi(1,"add"),jl=hi(-1,"subtract");function mi(e){return typeof e=="string"||e instanceof String}function Ql(e){return te(e)||He(e)||mi(e)||ce(e)||Gl(e)||Bl(e)||e===null||e===void 0}function Bl(e){var t=Ae(e)&&!Pt(e),a=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s,n,o=i.length;for(s=0;s<o;s+=1)n=i[s],a=a||v(e,n);return t&&a}function Gl(e){var t=ee(e),a=!1;return t&&(a=e.filter(function(i){return!ce(i)&&mi(e)}).length===0),t&&a}function $l(e){var t=Ae(e)&&!Pt(e),a=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],s,n;for(s=0;s<i.length;s+=1)n=i[s],a=a||v(e,n);return t&&a}function zl(e,t){var a=e.diff(t,"days",!0);return a<-6?"sameElse":a<-1?"lastWeek":a<0?"lastDay":a<1?"sameDay":a<2?"nextDay":a<7?"nextWeek":"sameElse"}function ql(e,t){arguments.length===1&&(arguments[0]?Ql(arguments[0])?(e=arguments[0],t=void 0):$l(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var a=e||U(),i=ca(a,this).startOf("day"),s=S.calendarFormat(this,i)||"sameElse",n=t&&(re(t[s])?t[s].call(this,a):t[s]);return this.format(n||this.localeData().calendar(s,this,U(a)))}function Kl(){return new Fe(this)}function Jl(e,t){var a=te(e)?e:U(e);return this.isValid()&&a.isValid()?(t=Z(t)||"millisecond",t==="millisecond"?this.valueOf()>a.valueOf():a.valueOf()<this.clone().startOf(t).valueOf()):!1}function Zl(e,t){var a=te(e)?e:U(e);return this.isValid()&&a.isValid()?(t=Z(t)||"millisecond",t==="millisecond"?this.valueOf()<a.valueOf():this.clone().endOf(t).valueOf()<a.valueOf()):!1}function Xl(e,t,a,i){var s=te(e)?e:U(e),n=te(t)?t:U(t);return this.isValid()&&s.isValid()&&n.isValid()?(i=i||"()",(i[0]==="("?this.isAfter(s,a):!this.isBefore(s,a))&&(i[1]===")"?this.isBefore(n,a):!this.isAfter(n,a))):!1}function eu(e,t){var a=te(e)?e:U(e),i;return this.isValid()&&a.isValid()?(t=Z(t)||"millisecond",t==="millisecond"?this.valueOf()===a.valueOf():(i=a.valueOf(),this.clone().startOf(t).valueOf()<=i&&i<=this.clone().endOf(t).valueOf())):!1}function tu(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function au(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function iu(e,t,a){var i,s,n;if(!this.isValid())return NaN;if(i=ca(e,this),!i.isValid())return NaN;switch(s=(i.utcOffset()-this.utcOffset())*6e4,t=Z(t),t){case"year":n=bt(this,i)/12;break;case"month":n=bt(this,i);break;case"quarter":n=bt(this,i)/3;break;case"second":n=(this-i)/1e3;break;case"minute":n=(this-i)/6e4;break;case"hour":n=(this-i)/36e5;break;case"day":n=(this-i-s)/864e5;break;case"week":n=(this-i-s)/6048e5;break;default:n=this-i}return a?n:X(n)}function bt(e,t){if(e.date()<t.date())return-bt(t,e);var a=(t.year()-e.year())*12+(t.month()-e.month()),i=e.clone().add(a,"months"),s,n;return t-i<0?(s=e.clone().add(a-1,"months"),n=(t-i)/(i-s)):(s=e.clone().add(a+1,"months"),n=(t-i)/(s-i)),-(a+n)||0}S.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",S.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function su(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function nu(e){if(!this.isValid())return null;var t=e!==!0,a=t?this.clone().utc():this;return a.year()<0||a.year()>9999?ut(a,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):re(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",ut(a,"Z")):ut(a,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ru(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",a,i,s,n;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),a="["+e+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s="-MM-DD[T]HH:mm:ss.SSS",n=t+'[")]',this.format(a+i+s+n)}function ou(e){e||(e=this.isUtc()?S.defaultFormatUtc:S.defaultFormat);var t=ut(this,e);return this.localeData().postformat(t)}function du(e,t){return this.isValid()&&(te(e)&&e.isValid()||U(e).isValid())?ie({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function lu(e){return this.from(U(),e)}function uu(e,t){return this.isValid()&&(te(e)&&e.isValid()||U(e).isValid())?ie({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function cu(e){return this.to(U(),e)}function _i(e){var t;return e===void 0?this._locale._abbr:(t=pe(e),t!=null&&(this._locale=t),this)}var pi=J("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 gi(){return this._locale}var At=1e3,Ce=60*At,Rt=60*Ce,Ei=(365*400+97)*24*Rt;function Le(e,t){return(e%t+t)%t}function Si(e,t,a){return e<100&&e>=0?new Date(e+400,t,a)-Ei:new Date(e,t,a).valueOf()}function yi(e,t,a){return e<100&&e>=0?Date.UTC(e+400,t,a)-Ei:Date.UTC(e,t,a)}function hu(e){var t,a;if(e=Z(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(a=this._isUTC?yi:Si,e){case"year":t=a(this.year(),0,1);break;case"quarter":t=a(this.year(),this.month()-this.month()%3,1);break;case"month":t=a(this.year(),this.month(),1);break;case"week":t=a(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=a(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=a(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Le(t+(this._isUTC?0:this.utcOffset()*Ce),Rt);break;case"minute":t=this._d.valueOf(),t-=Le(t,Ce);break;case"second":t=this._d.valueOf(),t-=Le(t,At);break}return this._d.setTime(t),S.updateOffset(this,!0),this}function fu(e){var t,a;if(e=Z(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(a=this._isUTC?yi:Si,e){case"year":t=a(this.year()+1,0,1)-1;break;case"quarter":t=a(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=a(this.year(),this.month()+1,1)-1;break;case"week":t=a(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=a(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=a(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Rt-Le(t+(this._isUTC?0:this.utcOffset()*Ce),Rt)-1;break;case"minute":t=this._d.valueOf(),t+=Ce-Le(t,Ce)-1;break;case"second":t=this._d.valueOf(),t+=At-Le(t,At)-1;break}return this._d.setTime(t),S.updateOffset(this,!0),this}function mu(){return this._d.valueOf()-(this._offset||0)*6e4}function _u(){return Math.floor(this.valueOf()/1e3)}function pu(){return new Date(this.valueOf())}function gu(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Eu(){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 Su(){return this.isValid()?this.toISOString():null}function yu(){return Ht(this)}function Mu(){return ye({},R(this))}function Tu(){return R(this).overflow}function bu(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}M("N",0,0,"eraAbbr"),M("NN",0,0,"eraAbbr"),M("NNN",0,0,"eraAbbr"),M("NNNN",0,0,"eraName"),M("NNNNN",0,0,"eraNarrow"),M("y",["y",1],"yo","eraYear"),M("y",["yy",2],0,"eraYear"),M("y",["yyy",3],0,"eraYear"),M("y",["yyyy",4],0,"eraYear"),y("N",fa),y("NN",fa),y("NNN",fa),y("NNNN",Cu),y("NNNNN",Lu),L(["N","NN","NNN","NNNN","NNNNN"],function(e,t,a,i){var s=a._locale.erasParse(e,i,a._strict);s?R(a).era=s:R(a).invalidEra=e}),y("y",ve),y("yy",ve),y("yyy",ve),y("yyyy",ve),y("yo",Vu),L(["y","yy","yyy","yyyy"],Q),L(["yo"],function(e,t,a,i){var s;a._locale._eraYearOrdinalRegex&&(s=e.match(a._locale._eraYearOrdinalRegex)),a._locale.eraYearOrdinalParse?t[Q]=a._locale.eraYearOrdinalParse(e,s):t[Q]=parseInt(e,10)});function Au(e,t){var a,i,s,n=this._eras||pe("en")._eras;for(a=0,i=n.length;a<i;++a)switch(typeof n[a].since==="string"&&(s=S(n[a].since).startOf("day"),n[a].since=s.valueOf()),typeof n[a].until){case"undefined":n[a].until=1/0;break;case"string":s=S(n[a].until).startOf("day").valueOf(),n[a].until=s.valueOf();break}return n}function Ru(e,t,a){var i,s,n=this.eras(),o,l,h;for(e=e.toUpperCase(),i=0,s=n.length;i<s;++i)if(o=n[i].name.toUpperCase(),l=n[i].abbr.toUpperCase(),h=n[i].narrow.toUpperCase(),a)switch(t){case"N":case"NN":case"NNN":if(l===e)return n[i];break;case"NNNN":if(o===e)return n[i];break;case"NNNNN":if(h===e)return n[i];break}else if([o,l,h].indexOf(e)>=0)return n[i]}function Du(e,t){var a=e.since<=e.until?1:-1;return t===void 0?S(e.since).year():S(e.since).year()+(t-e.offset)*a}function Nu(){var e,t,a,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(a=this.clone().startOf("day").valueOf(),i[e].since<=a&&a<=i[e].until||i[e].until<=a&&a<=i[e].since)return i[e].name;return""}function Iu(){var e,t,a,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(a=this.clone().startOf("day").valueOf(),i[e].since<=a&&a<=i[e].until||i[e].until<=a&&a<=i[e].since)return i[e].narrow;return""}function wu(){var e,t,a,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(a=this.clone().startOf("day").valueOf(),i[e].since<=a&&a<=i[e].until||i[e].until<=a&&a<=i[e].since)return i[e].abbr;return""}function vu(){var e,t,a,i,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(a=s[e].since<=s[e].until?1:-1,i=this.clone().startOf("day").valueOf(),s[e].since<=i&&i<=s[e].until||s[e].until<=i&&i<=s[e].since)return(this.year()-S(s[e].since).year())*a+s[e].offset;return this.year()}function ku(e){return v(this,"_erasNameRegex")||ma.call(this),e?this._erasNameRegex:this._erasRegex}function Ou(e){return v(this,"_erasAbbrRegex")||ma.call(this),e?this._erasAbbrRegex:this._erasRegex}function xu(e){return v(this,"_erasNarrowRegex")||ma.call(this),e?this._erasNarrowRegex:this._erasRegex}function fa(e,t){return t.erasAbbrRegex(e)}function Cu(e,t){return t.erasNameRegex(e)}function Lu(e,t){return t.erasNarrowRegex(e)}function Vu(e,t){return t._eraYearOrdinalRegex||ve}function ma(){var e=[],t=[],a=[],i=[],s,n,o,l,h,f=this.eras();for(s=0,n=f.length;s<n;++s)o=he(f[s].name),l=he(f[s].abbr),h=he(f[s].narrow),t.push(o),e.push(l),a.push(h),i.push(o),i.push(l),i.push(h);this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i")}M(0,["gg",2],0,function(){return this.weekYear()%100}),M(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Dt(e,t){M(0,[e,e.length],0,t)}Dt("gggg","weekYear"),Dt("ggggg","weekYear"),Dt("GGGG","isoWeekYear"),Dt("GGGGG","isoWeekYear"),y("G",mt),y("g",mt),y("GG",V,z),y("gg",V,z),y("GGGG",Jt,Kt),y("gggg",Jt,Kt),y("GGGGG",ft,ct),y("ggggg",ft,ct),Qe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,a,i){t[i.substr(0,2)]=D(e)}),Qe(["gg","GG"],function(e,t,a,i){t[i]=S.parseTwoDigitYear(e)});function Uu(e){return Mi.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Yu(e){return Mi.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Pu(){return _e(this.year(),1,4)}function Wu(){return _e(this.isoWeekYear(),1,4)}function Hu(){var e=this.localeData()._week;return _e(this.year(),e.dow,e.doy)}function Fu(){var e=this.localeData()._week;return _e(this.weekYear(),e.dow,e.doy)}function Mi(e,t,a,i,s){var n;return e==null?ze(this,i,s).year:(n=_e(e,i,s),t>n&&(t=n),ju.call(this,e,t,a,i,s))}function ju(e,t,a,i,s){var n=Za(e,t,a,i,s),o=$e(n.year,0,n.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}M("Q",0,"Qo","quarter"),y("Q",Ha),L("Q",function(e,t){t[fe]=(D(e)-1)*3});function Qu(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}M("D",["DD",2],"Do","date"),y("D",V,ke),y("DD",V,z),y("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),L(["D","DD"],de),L("Do",function(e,t){t[de]=D(e.match(V)[0])});var Ti=Oe("Date",!0);M("DDD",["DDDD",3],"DDDo","dayOfYear"),y("DDD",ht),y("DDDD",Fa),L(["DDD","DDDD"],function(e,t,a){a._dayOfYear=D(e)});function Bu(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("m",["mm",2],0,"minute"),y("m",V,Zt),y("mm",V,z),L(["m","mm"],ae);var Gu=Oe("Minutes",!1);M("s",["ss",2],0,"second"),y("s",V,Zt),y("ss",V,z),L(["s","ss"],me);var $u=Oe("Seconds",!1);M("S",0,0,function(){return~~(this.millisecond()/100)}),M(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),M(0,["SSS",3],0,"millisecond"),M(0,["SSSS",4],0,function(){return this.millisecond()*10}),M(0,["SSSSS",5],0,function(){return this.millisecond()*100}),M(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),M(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),M(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),M(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),y("S",ht,Ha),y("SS",ht,z),y("SSS",ht,Fa);var Te,bi;for(Te="SSSS";Te.length<=9;Te+="S")y(Te,ve);function zu(e,t){t[Re]=D(("0."+e)*1e3)}for(Te="S";Te.length<=9;Te+="S")L(Te,zu);bi=Oe("Milliseconds",!1),M("z",0,0,"zoneAbbr"),M("zz",0,0,"zoneName");function qu(){return this._isUTC?"UTC":""}function Ku(){return this._isUTC?"Coordinated Universal Time":""}var p=Fe.prototype;p.add=Fl,p.calendar=ql,p.clone=Kl,p.diff=iu,p.endOf=fu,p.format=ou,p.from=du,p.fromNow=lu,p.to=uu,p.toNow=cu,p.get=rd,p.invalidAt=Tu,p.isAfter=Jl,p.isBefore=Zl,p.isBetween=Xl,p.isSame=eu,p.isSameOrAfter=tu,p.isSameOrBefore=au,p.isValid=yu,p.lang=pi,p.locale=_i,p.localeData=gi,p.max=yl,p.min=Sl,p.parsingFlags=Mu,p.set=od,p.startOf=hu,p.subtract=jl,p.toArray=gu,p.toObject=Eu,p.toDate=pu,p.toISOString=nu,p.inspect=ru,typeof Symbol<"u"&&Symbol.for!=null&&(p[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),p.toJSON=Su,p.toString=su,p.unix=_u,p.valueOf=mu,p.creationData=bu,p.eraName=Nu,p.eraNarrow=Iu,p.eraAbbr=wu,p.eraYear=vu,p.year=Ba,p.isLeapYear=nd,p.weekYear=Uu,p.isoWeekYear=Yu,p.quarter=p.quarters=Qu,p.month=Ka,p.daysInMonth=pd,p.week=p.weeks=Ad,p.isoWeek=p.isoWeeks=Rd,p.weeksInYear=Hu,p.weeksInWeekYear=Fu,p.isoWeeksInYear=Pu,p.isoWeeksInISOWeekYear=Wu,p.date=Ti,p.day=p.days=Yd,p.weekday=Pd,p.isoWeekday=Wd,p.dayOfYear=Bu,p.hour=p.hours=$d,p.minute=p.minutes=Gu,p.second=p.seconds=$u,p.millisecond=p.milliseconds=bi,p.utcOffset=wl,p.utc=kl,p.local=Ol,p.parseZone=xl,p.hasAlignedHourOffset=Cl,p.isDST=Ll,p.isLocal=Ul,p.isUtcOffset=Yl,p.isUtc=ui,p.isUTC=ui,p.zoneAbbr=qu,p.zoneName=Ku,p.dates=J("dates accessor is deprecated. Use date instead.",Ti),p.months=J("months accessor is deprecated. Use month instead",Ka),p.years=J("years accessor is deprecated. Use year instead",Ba),p.zone=J("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",vl),p.isDSTShifted=J("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Vl);function Ju(e){return U(e*1e3)}function Zu(){return U.apply(null,arguments).parseZone()}function Ai(e){return e}var k=Bt.prototype;k.calendar=Uo,k.longDateFormat=Ho,k.invalidDate=jo,k.ordinal=Go,k.preparse=Ai,k.postformat=Ai,k.relativeTime=zo,k.pastFuture=qo,k.set=Lo,k.eras=Au,k.erasParse=Ru,k.erasConvertYear=Du,k.erasAbbrRegex=Ou,k.erasNameRegex=ku,k.erasNarrowRegex=xu,k.months=hd,k.monthsShort=fd,k.monthsParse=_d,k.monthsRegex=Ed,k.monthsShortRegex=gd,k.week=yd,k.firstDayOfYear=bd,k.firstDayOfWeek=Td,k.weekdays=xd,k.weekdaysMin=Ld,k.weekdaysShort=Cd,k.weekdaysParse=Ud,k.weekdaysRegex=Hd,k.weekdaysShortRegex=Fd,k.weekdaysMinRegex=jd,k.isPM=Bd,k.meridiem=zd;function Nt(e,t,a,i){var s=pe(),n=ne().set(i,t);return s[a](n,e)}function Ri(e,t,a){if(ce(e)&&(t=e,e=void 0),e=e||"",t!=null)return Nt(e,t,a,"month");var i,s=[];for(i=0;i<12;i++)s[i]=Nt(e,i,a,"month");return s}function _a(e,t,a,i){typeof e=="boolean"?(ce(t)&&(a=t,t=void 0),t=t||""):(t=e,a=t,e=!1,ce(t)&&(a=t,t=void 0),t=t||"");var s=pe(),n=e?s._week.dow:0,o,l=[];if(a!=null)return Nt(t,(a+n)%7,i,"day");for(o=0;o<7;o++)l[o]=Nt(t,(o+n)%7,i,"day");return l}function Xu(e,t){return Ri(e,t,"months")}function ec(e,t){return Ri(e,t,"monthsShort")}function tc(e,t,a){return _a(e,t,a,"weekdays")}function ac(e,t,a){return _a(e,t,a,"weekdaysShort")}function ic(e,t,a){return _a(e,t,a,"weekdaysMin")}Me("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,a=D(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+a}}),S.lang=J("moment.lang is deprecated. Use moment.locale instead.",Me),S.langData=J("moment.langData is deprecated. Use moment.localeData instead.",pe);var ge=Math.abs;function sc(){var e=this._data;return this._milliseconds=ge(this._milliseconds),this._days=ge(this._days),this._months=ge(this._months),e.milliseconds=ge(e.milliseconds),e.seconds=ge(e.seconds),e.minutes=ge(e.minutes),e.hours=ge(e.hours),e.months=ge(e.months),e.years=ge(e.years),this}function Di(e,t,a,i){var s=ie(t,a);return e._milliseconds+=i*s._milliseconds,e._days+=i*s._days,e._months+=i*s._months,e._bubble()}function nc(e,t){return Di(this,e,t,1)}function rc(e,t){return Di(this,e,t,-1)}function Ni(e){return e<0?Math.floor(e):Math.ceil(e)}function oc(){var e=this._milliseconds,t=this._days,a=this._months,i=this._data,s,n,o,l,h;return e>=0&&t>=0&&a>=0||e<=0&&t<=0&&a<=0||(e+=Ni(pa(a)+t)*864e5,t=0,a=0),i.milliseconds=e%1e3,s=X(e/1e3),i.seconds=s%60,n=X(s/60),i.minutes=n%60,o=X(n/60),i.hours=o%24,t+=X(o/24),h=X(Ii(t)),a+=h,t-=Ni(pa(h)),l=X(a/12),a%=12,i.days=t,i.months=a,i.years=l,this}function Ii(e){return e*4800/146097}function pa(e){return e*146097/4800}function dc(e){if(!this.isValid())return NaN;var t,a,i=this._milliseconds;if(e=Z(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+i/864e5,a=this._months+Ii(t),e){case"month":return a;case"quarter":return a/3;case"year":return a/12}else switch(t=this._days+Math.round(pa(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return t*24+i/36e5;case"minute":return t*1440+i/6e4;case"second":return t*86400+i/1e3;case"millisecond":return Math.floor(t*864e5)+i;default:throw new Error("Unknown unit "+e)}}function Ee(e){return function(){return this.as(e)}}var wi=Ee("ms"),lc=Ee("s"),uc=Ee("m"),cc=Ee("h"),hc=Ee("d"),fc=Ee("w"),mc=Ee("M"),_c=Ee("Q"),pc=Ee("y"),gc=wi;function Ec(){return ie(this)}function Sc(e){return e=Z(e),this.isValid()?this[e+"s"]():NaN}function Ne(e){return function(){return this.isValid()?this._data[e]:NaN}}var yc=Ne("milliseconds"),Mc=Ne("seconds"),Tc=Ne("minutes"),bc=Ne("hours"),Ac=Ne("days"),Rc=Ne("months"),Dc=Ne("years");function Nc(){return X(this.days()/7)}var Se=Math.round,Ve={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Ic(e,t,a,i,s){return s.relativeTime(t||1,!!a,e,i)}function wc(e,t,a,i){var s=ie(e).abs(),n=Se(s.as("s")),o=Se(s.as("m")),l=Se(s.as("h")),h=Se(s.as("d")),f=Se(s.as("M")),_=Se(s.as("w")),E=Se(s.as("y")),m=n<=a.ss&&["s",n]||n<a.s&&["ss",n]||o<=1&&["m"]||o<a.m&&["mm",o]||l<=1&&["h"]||l<a.h&&["hh",l]||h<=1&&["d"]||h<a.d&&["dd",h];return a.w!=null&&(m=m||_<=1&&["w"]||_<a.w&&["ww",_]),m=m||f<=1&&["M"]||f<a.M&&["MM",f]||E<=1&&["y"]||["yy",E],m[2]=t,m[3]=+e>0,m[4]=i,Ic.apply(null,m)}function vc(e){return e===void 0?Se:typeof e=="function"?(Se=e,!0):!1}function kc(e,t){return Ve[e]===void 0?!1:t===void 0?Ve[e]:(Ve[e]=t,e==="s"&&(Ve.ss=t-1),!0)}function Oc(e,t){if(!this.isValid())return this.localeData().invalidDate();var a=!1,i=Ve,s,n;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(a=e),typeof t=="object"&&(i=Object.assign({},Ve,t),t.s!=null&&t.ss==null&&(i.ss=t.s-1)),s=this.localeData(),n=wc(this,!a,i,s),a&&(n=s.pastFuture(+this,n)),s.postformat(n)}var ga=Math.abs;function Ue(e){return(e>0)-(e<0)||+e}function It(){if(!this.isValid())return this.localeData().invalidDate();var e=ga(this._milliseconds)/1e3,t=ga(this._days),a=ga(this._months),i,s,n,o,l=this.asSeconds(),h,f,_,E;return l?(i=X(e/60),s=X(i/60),e%=60,i%=60,n=X(a/12),a%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",h=l<0?"-":"",f=Ue(this._months)!==Ue(l)?"-":"",_=Ue(this._days)!==Ue(l)?"-":"",E=Ue(this._milliseconds)!==Ue(l)?"-":"",h+"P"+(n?f+n+"Y":"")+(a?f+a+"M":"")+(t?_+t+"D":"")+(s||i||e?"T":"")+(s?E+s+"H":"")+(i?E+i+"M":"")+(e?E+o+"S":"")):"P0D"}var N=Mt.prototype;N.isValid=Rl,N.abs=sc,N.add=nc,N.subtract=rc,N.as=dc,N.asMilliseconds=wi,N.asSeconds=lc,N.asMinutes=uc,N.asHours=cc,N.asDays=hc,N.asWeeks=fc,N.asMonths=mc,N.asQuarters=_c,N.asYears=pc,N.valueOf=gc,N._bubble=oc,N.clone=Ec,N.get=Sc,N.milliseconds=yc,N.seconds=Mc,N.minutes=Tc,N.hours=bc,N.days=Ac,N.weeks=Nc,N.months=Rc,N.years=Dc,N.humanize=Oc,N.toISOString=It,N.toString=It,N.toJSON=It,N.locale=_i,N.localeData=gi,N.toIsoString=J("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",It),N.lang=pi,M("X",0,0,"unix"),M("x",0,0,"valueOf"),y("x",mt),y("X",Xo),L("X",function(e,t,a){a._d=new Date(parseFloat(e)*1e3)}),L("x",function(e,t,a){a._d=new Date(D(e))});S.version="2.30.1",xo(U),S.fn=p,S.min=Ml,S.max=Tl,S.now=bl,S.utc=ne,S.unix=Ju,S.months=Xu,S.isDate=He,S.locale=Me,S.invalid=dt,S.duration=ie,S.isMoment=te,S.weekdays=tc,S.parseZone=Zu,S.localeData=pe,S.isDuration=Tt,S.monthsShort=ec,S.weekdaysMin=ic,S.defineLocale=sa,S.updateLocale=Zd,S.locales=Xd,S.weekdaysShort=ac,S.normalizeUnits=Z,S.relativeTimeRounding=vc,S.relativeTimeThreshold=kc,S.calendarFormat=zl,S.prototype=p,S.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const xc=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,Cc=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,vi=/(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,Ea=[/^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],Lc={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:vi,monthsShortRegex:vi,monthsStrictRegex:xc,monthsShortStrictRegex:Cc,monthsParse:Ea,longMonthsParse:Ea,shortMonthsParse:Ea,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}};S.locale("fr",Lc),be.TOP_LEFT;const b=e=>typeof e=="string",Ze=()=>{let e,t;const a=new Promise((i,s)=>{e=i,t=s});return a.resolve=e,a.reject=t,a},ki=e=>e==null?"":""+e,Vc=(e,t,a)=>{e.forEach(i=>{t[i]&&(a[i]=t[i])})},Uc=/###/g,Oi=e=>e&&e.indexOf("###")>-1?e.replace(Uc,"."):e,xi=e=>!e||b(e),Xe=(e,t,a)=>{const i=b(t)?t.split("."):t;let s=0;for(;s<i.length-1;){if(xi(e))return{};const n=Oi(i[s]);!e[n]&&a&&(e[n]=new a),Object.prototype.hasOwnProperty.call(e,n)?e=e[n]:e={},++s}return xi(e)?{}:{obj:e,k:Oi(i[s])}},Ci=(e,t,a)=>{const{obj:i,k:s}=Xe(e,t,Object);if(i!==void 0||t.length===1){i[s]=a;return}let n=t[t.length-1],o=t.slice(0,t.length-1),l=Xe(e,o,Object);for(;l.obj===void 0&&o.length;)n=`${o[o.length-1]}.${n}`,o=o.slice(0,o.length-1),l=Xe(e,o,Object),l&&l.obj&&typeof l.obj[`${l.k}.${n}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${n}`]=a},Yc=(e,t,a,i)=>{const{obj:s,k:n}=Xe(e,t,Object);s[n]=s[n]||[],s[n].push(a)},wt=(e,t)=>{const{obj:a,k:i}=Xe(e,t);if(a)return a[i]},Pc=(e,t,a)=>{const i=wt(e,a);return i!==void 0?i:wt(t,a)},Li=(e,t,a)=>{for(const i in t)i!=="__proto__"&&i!=="constructor"&&(i in e?b(e[i])||e[i]instanceof String||b(t[i])||t[i]instanceof String?a&&(e[i]=t[i]):Li(e[i],t[i],a):e[i]=t[i]);return e},Ye=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Wc={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const Hc=e=>b(e)?e.replace(/[&<>"'\/]/g,t=>Wc[t]):e;class Fc{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const a=this.regExpMap.get(t);if(a!==void 0)return a;const i=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,i),this.regExpQueue.push(t),i}}const jc=[" ",",","?","!",";"],Qc=new Fc(20),Bc=(e,t,a)=>{t=t||"",a=a||"";const i=jc.filter(o=>t.indexOf(o)<0&&a.indexOf(o)<0);if(i.length===0)return!0;const s=Qc.getRegExp(`(${i.map(o=>o==="?"?"\\?":o).join("|")})`);let n=!s.test(e);if(!n){const o=e.indexOf(a);o>0&&!s.test(e.substring(0,o))&&(n=!0)}return n},Sa=function(e,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const i=t.split(a);let s=e;for(let n=0;n<i.length;){if(!s||typeof s!="object")return;let o,l="";for(let h=n;h<i.length;++h)if(h!==n&&(l+=a),l+=i[h],o=s[l],o!==void 0){if(["string","number","boolean"].indexOf(typeof o)>-1&&h<i.length-1)continue;n+=h-n+1;break}s=o}return s},vt=e=>e&&e.replace("_","-"),Gc={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)}};class kt{constructor(t){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,a)}init(t){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=a.prefix||"i18next:",this.logger=t||Gc,this.options=a,this.debug=a.debug}log(){for(var t=arguments.length,a=new Array(t),i=0;i<t;i++)a[i]=arguments[i];return this.forward(a,"log","",!0)}warn(){for(var t=arguments.length,a=new Array(t),i=0;i<t;i++)a[i]=arguments[i];return this.forward(a,"warn","",!0)}error(){for(var t=arguments.length,a=new Array(t),i=0;i<t;i++)a[i]=arguments[i];return this.forward(a,"error","")}deprecate(){for(var t=arguments.length,a=new Array(t),i=0;i<t;i++)a[i]=arguments[i];return this.forward(a,"warn","WARNING DEPRECATED: ",!0)}forward(t,a,i,s){return s&&!this.debug?null:(b(t[0])&&(t[0]=`${i}${this.prefix} ${t[0]}`),this.logger[a](t))}create(t){return new kt(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new kt(this.logger,t)}}var le=new kt;class Ot{constructor(){this.observers={}}on(t,a){return t.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);const s=this.observers[i].get(a)||0;this.observers[i].set(a,s+1)}),this}off(t,a){if(this.observers[t]){if(!a){delete this.observers[t];return}this.observers[t].delete(a)}}emit(t){for(var a=arguments.length,i=new Array(a>1?a-1:0),s=1;s<a;s++)i[s-1]=arguments[s];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(o=>{let[l,h]=o;for(let f=0;f<h;f++)l(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(o=>{let[l,h]=o;for(let f=0;f<h;f++)l.apply(l,[t,...i])})}}class Vi extends Ot{constructor(t){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=a,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 a=this.options.ns.indexOf(t);a>-1&&this.options.ns.splice(a,1)}getResource(t,a,i){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const n=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,o=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;t.indexOf(".")>-1?l=t.split("."):(l=[t,a],i&&(Array.isArray(i)?l.push(...i):b(i)&&n?l.push(...i.split(n)):l.push(i)));const h=wt(this.data,l);return!h&&!a&&!i&&t.indexOf(".")>-1&&(t=l[0],a=l[1],i=l.slice(2).join(".")),h||!o||!b(i)?h:Sa(this.data&&this.data[t]&&this.data[t][a],i,n)}addResource(t,a,i,s){let n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let l=[t,a];i&&(l=l.concat(o?i.split(o):i)),t.indexOf(".")>-1&&(l=t.split("."),s=a,a=l[1]),this.addNamespaces(a),Ci(this.data,l,s),n.silent||this.emit("added",t,a,i,s)}addResources(t,a,i){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const n in i)(b(i[n])||Array.isArray(i[n]))&&this.addResource(t,a,n,i[n],{silent:!0});s.silent||this.emit("added",t,a,i)}addResourceBundle(t,a,i,s,n){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,a];t.indexOf(".")>-1&&(l=t.split("."),s=i,i=a,a=l[1]),this.addNamespaces(a);let h=wt(this.data,l)||{};o.skipCopy||(i=JSON.parse(JSON.stringify(i))),s?Li(h,i,n):h={...h,...i},Ci(this.data,l,h),o.silent||this.emit("added",t,a,i)}removeResourceBundle(t,a){this.hasResourceBundle(t,a)&&delete this.data[t][a],this.removeNamespaces(a),this.emit("removed",t,a)}hasResourceBundle(t,a){return this.getResource(t,a)!==void 0}getResourceBundle(t,a){return a||(a=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,a)}:this.getResource(t,a)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const a=this.getDataByLanguage(t);return!!(a&&Object.keys(a)||[]).find(s=>a[s]&&Object.keys(a[s]).length>0)}toJSON(){return this.data}}var Ui={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,a,i,s){return e.forEach(n=>{this.processors[n]&&(t=this.processors[n].process(t,a,i,s))}),t}};const Yi={};class xt extends Ot{constructor(t){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Vc(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=a,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=le.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const i=this.resolve(t,a);return i&&i.res!==void 0}extractFromKey(t,a){let i=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");const s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let n=a.ns||this.options.defaultNS||[];const o=i&&t.indexOf(i)>-1,l=!this.options.userDefinedKeySeparator&&!a.keySeparator&&!this.options.userDefinedNsSeparator&&!a.nsSeparator&&!Bc(t,i,s);if(o&&!l){const h=t.match(this.interpolator.nestingRegexp);if(h&&h.length>0)return{key:t,namespaces:b(n)?[n]:n};const f=t.split(i);(i!==s||i===s&&this.options.ns.indexOf(f[0])>-1)&&(n=f.shift()),t=f.join(s)}return{key:t,namespaces:b(n)?[n]:n}}translate(t,a,i){if(typeof a!="object"&&this.options.overloadTranslationOptionHandler&&(a=this.options.overloadTranslationOptionHandler(arguments)),typeof a=="object"&&(a={...a}),a||(a={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const s=a.returnDetails!==void 0?a.returnDetails:this.options.returnDetails,n=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,{key:o,namespaces:l}=this.extractFromKey(t[t.length-1],a),h=l[l.length-1],f=a.lng||this.language,_=a.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&f.toLowerCase()==="cimode"){if(_){const F=a.nsSeparator||this.options.nsSeparator;return s?{res:`${h}${F}${o}`,usedKey:o,exactUsedKey:o,usedLng:f,usedNS:h,usedParams:this.getUsedParamsDetails(a)}:`${h}${F}${o}`}return s?{res:o,usedKey:o,exactUsedKey:o,usedLng:f,usedNS:h,usedParams:this.getUsedParamsDetails(a)}:o}const E=this.resolve(t,a);let m=E&&E.res;const T=E&&E.usedKey||o,I=E&&E.exactUsedKey||o,P=Object.prototype.toString.apply(m),C=["[object Number]","[object Function]","[object RegExp]"],O=a.joinArrays!==void 0?a.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,at=!b(m)&&typeof m!="boolean"&&typeof m!="number";if(w&&m&&at&&C.indexOf(P)<0&&!(b(O)&&Array.isArray(m))){if(!a.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const F=this.options.returnedObjectHandler?this.options.returnedObjectHandler(T,m,{...a,ns:l}):`key '${o} (${this.language})' returned an object instead of string.`;return s?(E.res=F,E.usedParams=this.getUsedParamsDetails(a),E):F}if(n){const F=Array.isArray(m),q=F?[]:{},se=F?I:T;for(const G in m)if(Object.prototype.hasOwnProperty.call(m,G)){const Ut=`${se}${n}${G}`;q[G]=this.translate(Ut,{...a,joinArrays:!1,ns:l}),q[G]===Ut&&(q[G]=m[G])}m=q}}else if(w&&b(O)&&Array.isArray(m))m=m.join(O),m&&(m=this.extendTranslation(m,t,a,i));else{let F=!1,q=!1;const se=a.count!==void 0&&!b(a.count),G=xt.hasDefaultValue(a),Ut=se?this.pluralResolver.getSuffix(f,a.count,a):"",Jh=a.ordinal&&se?this.pluralResolver.getSuffix(f,a.count,{ordinal:!1}):"",No=se&&!a.ordinal&&a.count===0&&this.pluralResolver.shouldUseIntlApi(),it=No&&a[`defaultValue${this.options.pluralSeparator}zero`]||a[`defaultValue${Ut}`]||a[`defaultValue${Jh}`]||a.defaultValue;!this.isValidLookup(m)&&G&&(F=!0,m=it),this.isValidLookup(m)||(q=!0,m=o);const Zh=(a.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&q?void 0:m,st=G&&it!==m&&this.options.updateMissing;if(q||F||st){if(this.logger.log(st?"updateKey":"missingKey",f,h,o,st?it:m),n){const K=this.resolve(o,{...a,keySeparator:!1});K&&K.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 nt=[];const Yt=this.languageUtils.getFallbackCodes(this.options.fallbackLng,a.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Yt&&Yt[0])for(let K=0;K<Yt.length;K++)nt.push(Yt[K]);else this.options.saveMissingTo==="all"?nt=this.languageUtils.toResolveHierarchy(a.lng||this.language):nt.push(a.lng||this.language);const Io=(K,Ie,rt)=>{const wo=G&&rt!==m?rt:Zh;this.options.missingKeyHandler?this.options.missingKeyHandler(K,h,Ie,wo,st,a):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(K,h,Ie,wo,st,a),this.emit("missingKey",K,h,Ie,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&se?nt.forEach(K=>{const Ie=this.pluralResolver.getSuffixes(K,a);No&&a[`defaultValue${this.options.pluralSeparator}zero`]&&Ie.indexOf(`${this.options.pluralSeparator}zero`)<0&&Ie.push(`${this.options.pluralSeparator}zero`),Ie.forEach(rt=>{Io([K],o+rt,a[`defaultValue${rt}`]||it)})}):Io(nt,o,it))}m=this.extendTranslation(m,t,a,E,i),q&&m===o&&this.options.appendNamespaceToMissingKey&&(m=`${h}:${o}`),(q||F)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${h}:${o}`:o,F?m:void 0):m=this.options.parseMissingKeyHandler(m))}return s?(E.res=m,E.usedParams=this.getUsedParamsDetails(a),E):m}extendTranslation(t,a,i,s,n){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});const f=b(t)&&(i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let _;if(f){const m=t.match(this.interpolator.nestingRegexp);_=m&&m.length}let E=i.replace&&!b(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(E={...this.options.interpolation.defaultVariables,...E}),t=this.interpolator.interpolate(t,E,i.lng||this.language||s.usedLng,i),f){const m=t.match(this.interpolator.nestingRegexp),T=m&&m.length;_<T&&(i.nest=!1)}!i.lng&&this.options.compatibilityAPI!=="v1"&&s&&s.res&&(i.lng=this.language||s.usedLng),i.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var m=arguments.length,T=new Array(m),I=0;I<m;I++)T[I]=arguments[I];return n&&n[0]===T[0]&&!i.context?(o.logger.warn(`It seems you are nesting recursively key: ${T[0]} in key: ${a[0]}`),null):o.translate(...T,a)},i)),i.interpolation&&this.interpolator.reset()}const l=i.postProcess||this.options.postProcess,h=b(l)?[l]:l;return t!=null&&h&&h.length&&i.applyPostProcessor!==!1&&(t=Ui.handle(h,t,a,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...s,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),t}resolve(t){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,s,n,o,l;return b(t)&&(t=[t]),t.forEach(h=>{if(this.isValidLookup(i))return;const f=this.extractFromKey(h,a),_=f.key;s=_;let E=f.namespaces;this.options.fallbackNS&&(E=E.concat(this.options.fallbackNS));const m=a.count!==void 0&&!b(a.count),T=m&&!a.ordinal&&a.count===0&&this.pluralResolver.shouldUseIntlApi(),I=a.context!==void 0&&(b(a.context)||typeof a.context=="number")&&a.context!=="",P=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);E.forEach(C=>{this.isValidLookup(i)||(l=C,!Yi[`${P[0]}-${C}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(Yi[`${P[0]}-${C}`]=!0,this.logger.warn(`key "${s}" for languages "${P.join(", ")}" won't get resolved as namespace "${l}" 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!!!")),P.forEach(O=>{if(this.isValidLookup(i))return;o=O;const w=[_];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(w,_,O,C,a);else{let F;m&&(F=this.pluralResolver.getSuffix(O,a.count,a));const q=`${this.options.pluralSeparator}zero`,se=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(m&&(w.push(_+F),a.ordinal&&F.indexOf(se)===0&&w.push(_+F.replace(se,this.options.pluralSeparator)),T&&w.push(_+q)),I){const G=`${_}${this.options.contextSeparator}${a.context}`;w.push(G),m&&(w.push(G+F),a.ordinal&&F.indexOf(se)===0&&w.push(G+F.replace(se,this.options.pluralSeparator)),T&&w.push(G+q))}}let at;for(;at=w.pop();)this.isValidLookup(i)||(n=at,i=this.getResource(O,C,at,a))}))})}),{res:i,usedKey:s,exactUsedKey:n,usedLng:o,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,a,i){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,a,i,s):this.resourceStore.getResource(t,a,i,s)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const a=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=t.replace&&!b(t.replace);let s=i?t.replace:t;if(i&&typeof t.count<"u"&&(s.count=t.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!i){s={...s};for(const n of a)delete s[n]}return s}static hasDefaultValue(t){const a="defaultValue";for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&a===i.substring(0,a.length)&&t[i]!==void 0)return!0;return!1}}const ya=e=>e.charAt(0).toUpperCase()+e.slice(1);class Pi{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=le.create("languageUtils")}getScriptPartFromCode(t){if(t=vt(t),!t||t.indexOf("-")<0)return null;const a=t.split("-");return a.length===2||(a.pop(),a[a.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(a.join("-"))}getLanguagePartFromCode(t){if(t=vt(t),!t||t.indexOf("-")<0)return t;const a=t.split("-");return this.formatLanguageCode(a[0])}formatLanguageCode(t){if(b(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let s=Intl.getCanonicalLocales(t)[0];if(s&&this.options.lowerCaseLng&&(s=s.toLowerCase()),s)return s}catch{}const a=["hans","hant","latn","cyrl","cans","mong","arab"];let i=t.split("-");return this.options.lowerCaseLng?i=i.map(s=>s.toLowerCase()):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),a.indexOf(i[1].toLowerCase())>-1&&(i[1]=ya(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),a.indexOf(i[1].toLowerCase())>-1&&(i[1]=ya(i[1].toLowerCase())),a.indexOf(i[2].toLowerCase())>-1&&(i[2]=ya(i[2].toLowerCase()))),i.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 a;return t.forEach(i=>{if(a)return;const s=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(s))&&(a=s)}),!a&&this.options.supportedLngs&&t.forEach(i=>{if(a)return;const s=this.getLanguagePartFromCode(i);if(this.isSupportedCode(s))return a=s;a=this.options.supportedLngs.find(n=>{if(n===s)return n;if(!(n.indexOf("-")<0&&s.indexOf("-")<0)&&(n.indexOf("-")>0&&s.indexOf("-")<0&&n.substring(0,n.indexOf("-"))===s||n.indexOf(s)===0&&s.length>1))return n})}),a||(a=this.getFallbackCodes(this.options.fallbackLng)[0]),a}getFallbackCodes(t,a){if(!t)return[];if(typeof t=="function"&&(t=t(a)),b(t)&&(t=[t]),Array.isArray(t))return t;if(!a)return t.default||[];let i=t[a];return i||(i=t[this.getScriptPartFromCode(a)]),i||(i=t[this.formatLanguageCode(a)]),i||(i=t[this.getLanguagePartFromCode(a)]),i||(i=t.default),i||[]}toResolveHierarchy(t,a){const i=this.getFallbackCodes(a||this.options.fallbackLng||[],t),s=[],n=o=>{o&&(this.isSupportedCode(o)?s.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return b(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&n(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&n(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&n(this.getLanguagePartFromCode(t))):b(t)&&n(this.formatLanguageCode(t)),i.forEach(o=>{s.indexOf(o)<0&&n(this.formatLanguageCode(o))}),s}}let $c=[{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}],zc={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const qc=["v1","v2","v3"],Kc=["v4"],Wi={zero:0,one:1,two:2,few:3,many:4,other:5},Jc=()=>{const e={};return $c.forEach(t=>{t.lngs.forEach(a=>{e[a]={numbers:t.nr,plurals:zc[t.fc]}})}),e};class Zc{constructor(t){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=a,this.logger=le.create("pluralResolver"),(!this.options.compatibilityJSON||Kc.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=Jc(),this.pluralRulesCache={}}addRule(t,a){this.rules[t]=a}clearCache(){this.pluralRulesCache={}}getRule(t){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){const i=vt(t==="dev"?"en":t),s=a.ordinal?"ordinal":"cardinal",n=JSON.stringify({cleanedCode:i,type:s});if(n in this.pluralRulesCache)return this.pluralRulesCache[n];let o;try{o=new Intl.PluralRules(i,{type:s})}catch{if(!t.match(/-|_/))return;const h=this.languageUtils.getLanguagePartFromCode(t);o=this.getRule(h,a)}return this.pluralRulesCache[n]=o,o}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=this.getRule(t,a);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}getPluralFormsOfKey(t,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,i).map(s=>`${a}${s}`)}getSuffixes(t){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=this.getRule(t,a);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort((s,n)=>Wi[s]-Wi[n]).map(s=>`${this.options.prepend}${a.ordinal?`ordinal${this.options.prepend}`:""}${s}`):i.numbers.map(s=>this.getSuffix(t,s,a)):[]}getSuffix(t,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=this.getRule(t,i);return s?this.shouldUseIntlApi()?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${s.select(a)}`:this.getSuffixRetroCompatible(s,a):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,a){const i=t.noAbs?t.plurals(a):t.plurals(Math.abs(a));let s=t.numbers[i];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(s===2?s="plural":s===1&&(s=""));const n=()=>this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString();return this.options.compatibilityJSON==="v1"?s===1?"":typeof s=="number"?`_plural_${s.toString()}`:n():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?n():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}shouldUseIntlApi(){return!qc.includes(this.options.compatibilityJSON)}}const Hi=function(e,t,a){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,n=Pc(e,t,a);return!n&&s&&b(a)&&(n=Sa(e,a,i),n===void 0&&(n=Sa(t,a,i))),n},Ma=e=>e.replace(/\$/g,"$$$$");class Xc{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=le.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(a=>a),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:a,escapeValue:i,useRawValueToEscape:s,prefix:n,prefixEscaped:o,suffix:l,suffixEscaped:h,formatSeparator:f,unescapeSuffix:_,unescapePrefix:E,nestingPrefix:m,nestingPrefixEscaped:T,nestingSuffix:I,nestingSuffixEscaped:P,nestingOptionsSeparator:C,maxReplaces:O,alwaysFormat:w}=t.interpolation;this.escape=a!==void 0?a:Hc,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=s!==void 0?s:!1,this.prefix=n?Ye(n):o||"{{",this.suffix=l?Ye(l):h||"}}",this.formatSeparator=f||",",this.unescapePrefix=_?"":E||"-",this.unescapeSuffix=this.unescapePrefix?"":_||"",this.nestingPrefix=m?Ye(m):T||Ye("$t("),this.nestingSuffix=I?Ye(I):P||Ye(")"),this.nestingOptionsSeparator=C||",",this.maxReplaces=O||1e3,this.alwaysFormat=w!==void 0?w:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(a,i)=>a&&a.source===i?(a.lastIndex=0,a):new RegExp(i,"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,a,i,s){let n,o,l;const h=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},f=T=>{if(T.indexOf(this.formatSeparator)<0){const O=Hi(a,h,T,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(O,void 0,i,{...s,...a,interpolationkey:T}):O}const I=T.split(this.formatSeparator),P=I.shift().trim(),C=I.join(this.formatSeparator).trim();return this.format(Hi(a,h,P,this.options.keySeparator,this.options.ignoreJSONStructure),C,i,{...s,...a,interpolationkey:P})};this.resetRegExp();const _=s&&s.missingInterpolationHandler||this.options.missingInterpolationHandler,E=s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:T=>Ma(T)},{regex:this.regexp,safeValue:T=>this.escapeValue?Ma(this.escape(T)):Ma(T)}].forEach(T=>{for(l=0;n=T.regex.exec(t);){const I=n[1].trim();if(o=f(I),o===void 0)if(typeof _=="function"){const C=_(t,n,s);o=b(C)?C:""}else if(s&&Object.prototype.hasOwnProperty.call(s,I))o="";else if(E){o=n[0];continue}else this.logger.warn(`missed to pass in variable ${I} for interpolating ${t}`),o="";else!b(o)&&!this.useRawValueToEscape&&(o=ki(o));const P=T.safeValue(o);if(t=t.replace(n[0],P),E?(T.regex.lastIndex+=o.length,T.regex.lastIndex-=n[0].length):T.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,n,o;const l=(h,f)=>{const _=this.nestingOptionsSeparator;if(h.indexOf(_)<0)return h;const E=h.split(new RegExp(`${_}[ ]*{`));let m=`{${E[1]}`;h=E[0],m=this.interpolate(m,o);const T=m.match(/'/g),I=m.match(/"/g);(T&&T.length%2===0&&!I||I.length%2!==0)&&(m=m.replace(/'/g,'"'));try{o=JSON.parse(m),f&&(o={...f,...o})}catch(P){return this.logger.warn(`failed parsing options string in nesting for key ${h}`,P),`${h}${_}${m}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,h};for(;s=this.nestingRegexp.exec(t);){let h=[];o={...i},o=o.replace&&!b(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let f=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){const _=s[1].split(this.formatSeparator).map(E=>E.trim());s[1]=_.shift(),h=_,f=!0}if(n=a(l.call(this,s[1].trim(),o),o),n&&s[0]===t&&!b(n))return n;b(n)||(n=ki(n)),n||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${t}`),n=""),f&&(n=h.reduce((_,E)=>this.format(_,E,i.lng,{...i,interpolationkey:s[1].trim()}),n.trim())),t=t.replace(s[0],n),this.regexp.lastIndex=0}return t}}const eh=e=>{let t=e.toLowerCase().trim();const a={};if(e.indexOf("(")>-1){const i=e.split("(");t=i[0].toLowerCase().trim();const s=i[1].substring(0,i[1].length-1);t==="currency"&&s.indexOf(":")<0?a.currency||(a.currency=s.trim()):t==="relativetime"&&s.indexOf(":")<0?a.range||(a.range=s.trim()):s.split(";").forEach(o=>{if(o){const[l,...h]=o.split(":"),f=h.join(":").trim().replace(/^'+|'+$/g,""),_=l.trim();a[_]||(a[_]=f),f==="false"&&(a[_]=!1),f==="true"&&(a[_]=!0),isNaN(f)||(a[_]=parseInt(f,10))}})}return{formatName:t,formatOptions:a}},Pe=e=>{const t={};return(a,i,s)=>{let n=s;s&&s.interpolationkey&&s.formatParams&&s.formatParams[s.interpolationkey]&&s[s.interpolationkey]&&(n={...n,[s.interpolationkey]:void 0});const o=i+JSON.stringify(n);let l=t[o];return l||(l=e(vt(i),s),t[o]=l),l(a)}};class th{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=le.create("formatter"),this.options=t,this.formats={number:Pe((a,i)=>{const s=new Intl.NumberFormat(a,{...i});return n=>s.format(n)}),currency:Pe((a,i)=>{const s=new Intl.NumberFormat(a,{...i,style:"currency"});return n=>s.format(n)}),datetime:Pe((a,i)=>{const s=new Intl.DateTimeFormat(a,{...i});return n=>s.format(n)}),relativetime:Pe((a,i)=>{const s=new Intl.RelativeTimeFormat(a,{...i});return n=>s.format(n,i.range||"day")}),list:Pe((a,i)=>{const s=new Intl.ListFormat(a,{...i});return n=>s.format(n)})},this.init(t)}init(t){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=a.interpolation.formatSeparator||","}add(t,a){this.formats[t.toLowerCase().trim()]=a}addCached(t,a){this.formats[t.toLowerCase().trim()]=Pe(a)}format(t,a,i){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const n=a.split(this.formatSeparator);if(n.length>1&&n[0].indexOf("(")>1&&n[0].indexOf(")")<0&&n.find(l=>l.indexOf(")")>-1)){const l=n.findIndex(h=>h.indexOf(")")>-1);n[0]=[n[0],...n.splice(1,l)].join(this.formatSeparator)}return n.reduce((l,h)=>{const{formatName:f,formatOptions:_}=eh(h);if(this.formats[f]){let E=l;try{const m=s&&s.formatParams&&s.formatParams[s.interpolationkey]||{},T=m.locale||m.lng||s.locale||s.lng||i;E=this.formats[f](l,T,{..._,...s,...m})}catch(m){this.logger.warn(m)}return E}else this.logger.warn(`there was no format function for ${f}`);return l},t)}}const ah=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class ih extends Ot{constructor(t,a,i){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=a,this.services=i,this.languageUtils=i.languageUtils,this.options=s,this.logger=le.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(i,s.backend,s)}queueLoad(t,a,i,s){const n={},o={},l={},h={};return t.forEach(f=>{let _=!0;a.forEach(E=>{const m=`${f}|${E}`;!i.reload&&this.store.hasResourceBundle(f,E)?this.state[m]=2:this.state[m]<0||(this.state[m]===1?o[m]===void 0&&(o[m]=!0):(this.state[m]=1,_=!1,o[m]===void 0&&(o[m]=!0),n[m]===void 0&&(n[m]=!0),h[E]===void 0&&(h[E]=!0)))}),_||(l[f]=!0)}),(Object.keys(n).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(n),pending:Object.keys(o),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(h)}}loaded(t,a,i){const s=t.split("|"),n=s[0],o=s[1];a&&this.emit("failedLoading",n,o,a),!a&&i&&this.store.addResourceBundle(n,o,i,void 0,void 0,{skipCopy:!0}),this.state[t]=a?-1:2,a&&i&&(this.state[t]=0);const l={};this.queue.forEach(h=>{Yc(h.loaded,[n],o),ah(h,t),a&&h.errors.push(a),h.pendingCount===0&&!h.done&&(Object.keys(h.loaded).forEach(f=>{l[f]||(l[f]={});const _=h.loaded[f];_.length&&_.forEach(E=>{l[f][E]===void 0&&(l[f][E]=!0)})}),h.done=!0,h.errors.length?h.callback(h.errors):h.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(h=>!h.done)}read(t,a,i){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:a,fcName:i,tried:s,wait:n,callback:o});return}this.readingCalls++;const l=(f,_)=>{if(this.readingCalls--,this.waitingReads.length>0){const E=this.waitingReads.shift();this.read(E.lng,E.ns,E.fcName,E.tried,E.wait,E.callback)}if(f&&_&&s<this.maxRetries){setTimeout(()=>{this.read.call(this,t,a,i,s+1,n*2,o)},n);return}o(f,_)},h=this.backend[i].bind(this.backend);if(h.length===2){try{const f=h(t,a);f&&typeof f.then=="function"?f.then(_=>l(null,_)).catch(l):l(null,f)}catch(f){l(f)}return}return h(t,a,l)}prepareLoading(t,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=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."),s&&s();b(t)&&(t=this.languageUtils.toResolveHierarchy(t)),b(a)&&(a=[a]);const n=this.queueLoad(t,a,i,s);if(!n.toLoad.length)return n.pending.length||s(),null;n.toLoad.forEach(o=>{this.loadOne(o)})}load(t,a,i){this.prepareLoading(t,a,{},i)}reload(t,a,i){this.prepareLoading(t,a,{reload:!0},i)}loadOne(t){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const i=t.split("|"),s=i[0],n=i[1];this.read(s,n,"read",void 0,void 0,(o,l)=>{o&&this.logger.warn(`${a}loading namespace ${n} for language ${s} failed`,o),!o&&l&&this.logger.log(`${a}loaded namespace ${n} for language ${s}`,l),this.loaded(t,o,l)})}saveMissing(t,a,i,s,n){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(a)){this.logger.warn(`did not save key "${i}" as the namespace "${a}" 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(!(i==null||i==="")){if(this.backend&&this.backend.create){const h={...o,isUpdate:n},f=this.backend.create.bind(this.backend);if(f.length<6)try{let _;f.length===5?_=f(t,a,i,s,h):_=f(t,a,i,s),_&&typeof _.then=="function"?_.then(E=>l(null,E)).catch(l):l(null,_)}catch(_){l(_)}else f(t,a,i,s,l,h)}!t||!t[0]||this.store.addResource(t[0],a,i,s)}}}const Fi=()=>({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:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),b(e[1])&&(t.defaultValue=e[1]),b(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const a=e[3]||e[2];Object.keys(a).forEach(i=>{t[i]=a[i]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),ji=e=>(b(e.ns)&&(e.ns=[e.ns]),b(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),b(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Ct=()=>{},sh=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(a=>{typeof e[a]=="function"&&(e[a]=e[a].bind(e))})};class et extends Ot{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;if(super(),this.options=ji(t),this.services={},this.logger=le,this.modules={external:[]},sh(this),a&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,a),this;setTimeout(()=>{this.init(t,a)},0)}}init(){var t=this;let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof a=="function"&&(i=a,a={}),!a.defaultNS&&a.defaultNS!==!1&&a.ns&&(b(a.ns)?a.defaultNS=a.ns:a.ns.indexOf("translation")<0&&(a.defaultNS=a.ns[0]));const s=Fi();this.options={...s,...this.options,...ji(a)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...s.interpolation,...this.options.interpolation}),a.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=a.keySeparator),a.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=a.nsSeparator);const n=_=>_?typeof _=="function"?new _:_:null;if(!this.options.isClone){this.modules.logger?le.init(n(this.modules.logger),this.options):le.init(null,this.options);let _;this.modules.formatter?_=this.modules.formatter:typeof Intl<"u"&&(_=th);const E=new Pi(this.options);this.store=new Vi(this.options.resources,this.options);const m=this.services;m.logger=le,m.resourceStore=this.store,m.languageUtils=E,m.pluralResolver=new Zc(E,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),_&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(m.formatter=n(_),m.formatter.init(m,this.options),this.options.interpolation.format=m.formatter.format.bind(m.formatter)),m.interpolator=new Xc(this.options),m.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},m.backendConnector=new ih(n(this.modules.backend),m.resourceStore,m,this.options),m.backendConnector.on("*",function(T){for(var I=arguments.length,P=new Array(I>1?I-1:0),C=1;C<I;C++)P[C-1]=arguments[C];t.emit(T,...P)}),this.modules.languageDetector&&(m.languageDetector=n(this.modules.languageDetector),m.languageDetector.init&&m.languageDetector.init(m,this.options.detection,this.options)),this.modules.i18nFormat&&(m.i18nFormat=n(this.modules.i18nFormat),m.i18nFormat.init&&m.i18nFormat.init(this)),this.translator=new xt(this.services,this.options),this.translator.on("*",function(T){for(var I=arguments.length,P=new Array(I>1?I-1:0),C=1;C<I;C++)P[C-1]=arguments[C];t.emit(T,...P)}),this.modules.external.forEach(T=>{T.init&&T.init(this)})}if(this.format=this.options.interpolation.format,i||(i=Ct),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const _=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);_.length>0&&_[0]!=="dev"&&(this.options.lng=_[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(_=>{this[_]=function(){return t.store[_](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(_=>{this[_]=function(){return t.store[_](...arguments),t}});const h=Ze(),f=()=>{const _=(E,m)=>{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),h.resolve(m),i(E,m)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return _(null,this.t.bind(this));this.changeLanguage(this.options.lng,_)};return this.options.resources||!this.options.initImmediate?f():setTimeout(f,0),h}loadResources(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ct;const s=b(t)?t:this.language;if(typeof t=="function"&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if(s&&s.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();const n=[],o=l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(f=>{f!=="cimode"&&n.indexOf(f)<0&&n.push(f)})};s?o(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(h=>o(h)),this.options.preload&&this.options.preload.forEach(l=>o(l)),this.services.backendConnector.load(n,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(l)})}else i(null)}reloadResources(t,a,i){const s=Ze();return typeof t=="function"&&(i=t,t=void 0),typeof a=="function"&&(i=a,a=void 0),t||(t=this.languages),a||(a=this.options.ns),i||(i=Ct),this.services.backendConnector.reload(t,a,n=>{s.resolve(),i(n)}),s}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"&&Ui.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 a=0;a<this.languages.length;a++){const i=this.languages[a];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}}changeLanguage(t,a){var i=this;this.isLanguageChangingTo=t;const s=Ze();this.emit("languageChanging",t);const n=h=>{this.language=h,this.languages=this.services.languageUtils.toResolveHierarchy(h),this.resolvedLanguage=void 0,this.setResolvedLanguage(h)},o=(h,f)=>{f?(n(f),this.translator.changeLanguage(f),this.isLanguageChangingTo=void 0,this.emit("languageChanged",f),this.logger.log("languageChanged",f)):this.isLanguageChangingTo=void 0,s.resolve(function(){return i.t(...arguments)}),a&&a(h,function(){return i.t(...arguments)})},l=h=>{!t&&!h&&this.services.languageDetector&&(h=[]);const f=b(h)?h:this.services.languageUtils.getBestMatchFromCodes(h);f&&(this.language||n(f),this.translator.language||this.translator.changeLanguage(f),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(f)),this.loadResources(f,_=>{o(_,f)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),s}getFixedT(t,a,i){var s=this;const n=function(o,l){let h;if(typeof l!="object"){for(var f=arguments.length,_=new Array(f>2?f-2:0),E=2;E<f;E++)_[E-2]=arguments[E];h=s.options.overloadTranslationOptionHandler([o,l].concat(_))}else h={...l};h.lng=h.lng||n.lng,h.lngs=h.lngs||n.lngs,h.ns=h.ns||n.ns,h.keyPrefix!==""&&(h.keyPrefix=h.keyPrefix||i||n.keyPrefix);const m=s.options.keySeparator||".";let T;return h.keyPrefix&&Array.isArray(o)?T=o.map(I=>`${h.keyPrefix}${m}${I}`):T=h.keyPrefix?`${h.keyPrefix}${m}${o}`:o,s.t(T,h)};return b(t)?n.lng=t:n.lngs=t,n.ns=a,n.keyPrefix=i,n}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 a=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 i=a.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,n=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;const o=(l,h)=>{const f=this.services.backendConnector.state[`${l}|${h}`];return f===-1||f===0||f===2};if(a.precheck){const l=a.precheck(this,o);if(l!==void 0)return l}return!!(this.hasResourceBundle(i,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(i,t)&&(!s||o(n,t)))}loadNamespaces(t,a){const i=Ze();return this.options.ns?(b(t)&&(t=[t]),t.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{i.resolve(),a&&a(s)}),i):(a&&a(),Promise.resolve())}loadLanguages(t,a){const i=Ze();b(t)&&(t=[t]);const s=this.options.preload||[],n=t.filter(o=>s.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return n.length?(this.options.preload=s.concat(n),this.loadResources(o=>{i.resolve(),a&&a(o)}),i):(a&&a(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const a=["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"],i=this.services&&this.services.languageUtils||new Pi(Fi());return a.indexOf(i.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;return new et(t,a)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ct;const i=t.forkResourceStore;i&&delete t.forkResourceStore;const s={...this.options,...t,isClone:!0},n=new et(s);return(t.debug!==void 0||t.prefix!==void 0)&&(n.logger=n.logger.clone(t)),["store","services","language"].forEach(l=>{n[l]=this[l]}),n.services={...this.services},n.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},i&&(n.store=new Vi(this.store.data,s),n.services.resourceStore=n.store),n.translator=new xt(n.services,s),n.translator.on("*",function(l){for(var h=arguments.length,f=new Array(h>1?h-1:0),_=1;_<h;_++)f[_-1]=arguments[_];n.emit(l,...f)}),n.init(s,a),n.translator.options=s,n.translator.backendConnector.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},n}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const B=et.createInstance();B.createInstance=et.createInstance,B.createInstance,B.dir,B.init,B.loadResources,B.reloadResources,B.use,B.changeLanguage,B.getFixedT;const We=B.t;B.exists,B.setDefaultNamespace,B.hasLoadedNamespace,B.loadNamespaces,B.loadLanguages;var g=(e=>(e.BASIC="BASIC",e.COMMON="COMMON",e.RARE="RARE",e.EPIC="EPIC",e.LEGENDARY="LEGENDARY",e.MYTHIC="MYTHIC",e))(g||{});g.COMMON,g.RARE,g.EPIC,g.LEGENDARY,g.MYTHIC;const u={BASIC:{color:"#fff",strength:0,id:g.BASIC,name:(e,t=1)=>We(`ranks.${g.BASIC}.text`,{count:t,context:e,ns:"common"})},COMMON:{color:"#813D31",strength:1,id:g.COMMON,name:(e,t=1)=>We(`ranks.${g.COMMON}.text`,{count:t,context:e,ns:"common"})},RARE:{color:"#5B6870",strength:2,id:g.RARE,name:(e,t=1)=>We(`ranks.${g.RARE}.text`,{count:t,context:e,ns:"common"})},EPIC:{color:"#C46619",strength:3,id:g.EPIC,name:(e,t=1)=>We(`ranks.${g.EPIC}.text`,{count:t,context:e,ns:"common"})},LEGENDARY:{color:"#88A3CB",strength:4,id:g.LEGENDARY,name:(e,t=1)=>We(`ranks.${g.LEGENDARY}.text`,{count:t,context:e,ns:"common"})},MYTHIC:{color:"#F6bF62",strength:5,id:g.MYTHIC,name:(e,t=1)=>We(`ranks.${g.MYTHIC}.text`,{count:t,context:e,ns:"common"})}},Ta="background_default",A={exploration:{id:"writeChat",img:"exploration",isProgressive:[g.COMMON,g.RARE,g.EPIC,g.LEGENDARY,g.MYTHIC],emojis:["<:Explorateurbois:1175507909518573578>","<:Explorateurargent:1175508452467015680>","<:Explorateuror:1175507917642932245>","<:Explorateurplatine:1175507920587329586>","<:Explorateurultime:1175507922818699334>"],crew:!1},ecrire:{id:"sendMessage",img:"ecrire",isProgressive:[g.COMMON,g.RARE,g.EPIC,g.LEGENDARY,g.MYTHIC],emojis:["<:Spammeurbois:1175508156785365003>","<:Spammeurargent:1175507962249351268>","<:Spammeuror:1175507966808572007>","<:Spammeurplatine:1175507968293339167>","<:Spammeurultime:1175507863460913222>"],crew:!1},ermite:{id:"timeInVoice",img:"ermite",isProgressive:[g.COMMON,g.RARE,g.EPIC,g.LEGENDARY,g.MYTHIC],emojis:["<:Ermitebois:1175507899875868672>","<:Ermiteargent:1175508498138796153>","<:Ermiteor:1175508465746182305>","<:Ermiteplatine:1175507904695124028>","<:Ermiteultime:1175507906041499749>"],crew:!1},berry:{id:"berry",img:"berry",isProgressive:[g.COMMON,g.RARE,g.EPIC,g.LEGENDARY,g.MYTHIC],emojis:["<:ElonMuskbois:1175507891600498758>","<:ElonMuskargent:1175508764988801034>","<:ElonMuskor:1175508756700856390>","<:ElonMuskplatine:1175508739386789928>","<:ElonMuskultime:1175507895668985886>"],crew:!1},mode:{id:"spendShop",img:"mode",isProgressive:[g.COMMON,g.RARE,g.EPIC,g.LEGENDARY,g.MYTHIC],emojis:["<:FashionViktimbois:1175508381436485672>","<:FashionViktimargent:1175507924873904128>","<:FashionViktimor:1175507926719414406>","<:FashionViktimplatine:1175508345562599445>","<:FashionViktimultime:1175507931517698088>"],crew:!1},noluck:{id:"noLuck",img:"noluck",isProgressive:!1,emojis:"<:BadluckPlatine:1175507878048702505>",crew:!1},chance:{id:"chance",img:"chance",isProgressive:!1,emojis:"<:BadgeChanceux:1192743999514103869>",crew:!1},casino:{id:"casino",img:"casino",isProgressive:[g.LEGENDARY,g.MYTHIC],emojis:["<:GamblingAddict:1175507934223016047>","<:GamblingAddictDiamond:1187147920647131207>"],crew:!1},premium:{id:"premium",img:"premium",isProgressive:!1,emojis:"<:BadgesDon:1175507876056399933>",crew:!1},calendar:{id:"calendar",img:"calendar",isProgressive:!1,emojis:"<:Calendrier:1187170872176431114>",crew:!1},doublesix:{id:"doublesix",img:"doublesix",isProgressive:!1,emojis:"<:DoubleSix:1187178228624937000>",crew:!1},"black-jack":{id:"blackJack",img:"black-jack",isProgressive:!1,emojis:"<:BlackJack:1187456310137069618>",crew:!1},communism:{id:"communism",img:"communism",isProgressive:[g.COMMON,g.RARE,g.EPIC,g.LEGENDARY,g.MYTHIC],emojis:["<:cropped_communism_Bronze:1234375558184570902>","<:cropped_communism_Silver:1234375563729440789>","<:cropped_communism_Gold:1234375561154007103>","<:cropped_communism_Platinum:1234375562269687849>","<:cropped_communism_Diamond:1234375559811825705>"],crew:!0},crewship:{id:"crewship",img:"crewship",isProgressive:[g.COMMON,g.RARE,g.EPIC,g.LEGENDARY,g.MYTHIC],emojis:["<:cropped_crewship_Bronze:1234458902641246260>","<:cropped_crewship_Silver:1234458908840431617>","<:cropped_crewship_Gold:1234458905694961724>","<:cropped_crewship_Platinum:1234458907741782038>","<:cropped_crewship_Diamond:1234458904100864000>"],crew:!0},broship:{id:"broship",img:"broship",isProgressive:[g.COMMON,g.RARE,g.EPIC,g.LEGENDARY,g.MYTHIC],emojis:["<:cropped_broship_Bronze:1234537705292038175>","<:cropped_broship_Silver:1234537711214530652>","<:cropped_broship_Gold:1234537708047695892>","<:cropped_broship_Platinum:1234537710170013867>","<:cropped_broship_Diamond:1234537706810245161>"],crew:!0},shipsecte:{id:"shipsecte",img:"shipsecte",isProgressive:[g.COMMON,g.RARE,g.EPIC,g.LEGENDARY,g.MYTHIC],emojis:["<:cropped_shipsecte_Bronze:1234547646023078009>","<:cropped_shipsecte_Silver:1234547651912011827>","<:cropped_shipsecte_Gold:1234547649160675408>","<:cropped_shipsecte_Platinum:1234547650414514267>","<:cropped_shipsecte_Diamond:1234547648011173888>"],crew:!0},sardine:{id:"sardine",img:"sardine",isProgressive:[g.COMMON,g.RARE,g.EPIC,g.LEGENDARY,g.MYTHIC],emojis:["<:cropped_sardine_Bronze:1234549442799997010>","<:cropped_sardine_Silver:1234549449036927088>","<:cropped_sardine_Gold:1234549445916622988>","<:cropped_sardine_Platinum:1234549447518720050>","<:cropped_sardine_Diamond:1234549444738023484>"],crew:!0},carpenter:{id:"carpenter",img:"carpenter",isProgressive:[g.COMMON,g.RARE,g.EPIC,g.LEGENDARY,g.MYTHIC],emojis:["<:cropped_carpenter_Bronze:1234555340964626495>","<:cropped_carpenter_Silver:1234555345935007764>","<:cropped_carpenter_Gold:1234555343317635153>","<:cropped_carpenter_Platinum:1234555344819191909>","<:cropped_carpenter_Diamond:1234555342143357072>"],crew:!0},camarade:{id:"camarade",img:"camarade",isProgressive:!1,emojis:"<:cropped_camarade:1234582024077967361>",crew:!0},selfish:{id:"selfish",img:"selfish",isProgressive:!1,emojis:"<:cropped_selfish:1234587373363527780>",crew:!0},recipe:{id:"recipe",img:"recipe",isProgressive:[g.COMMON,g.RARE,g.EPIC,g.LEGENDARY,g.MYTHIC],emojis:["<:cropped_b_recipe_Bronze:1244357782573023282>","<:cropped_b_recipe_Silver:1244357788361031711>","<:cropped_b_recipe_Gold:1244357785555308574>","<:cropped_b_recipe_Platinum:1244357786750685225>","<:cropped_b_recipe_Diamond:1244357784397545526>"],crew:!1},craft:{id:"craft",img:"craft",isProgressive:[g.COMMON,g.RARE,g.EPIC,g.LEGENDARY,g.MYTHIC],emojis:["<:cropped_b_craft_Bronze:1244357834452238447>","<:cropped_b_craft_Silver:1244357840513011722>","<:cropped_b_craft_Gold:1244357837333725306>","<:cropped_b_craft_Platinum:1244357838801735761>","<:cropped_b_craft_Diamond:1244357835735695401>"],crew:!1}},ba=e=>!!e.isProgressive,Aa={satan:"satan",idiot:"idiot",edito:"edito"},nh=e=>Math.round(5e3*Math.pow(200,.01*e)/10)*10,Qi=e=>e>=1?Qi(e-1)+nh(e):0,W=(e,t=0)=>e<Qi(t+1)?t:W(e,t+1),Bi=1,rh=[[200,4],[100,3],[50,2],[0,Bi]],oh=e=>{for(const[t,a]of rh)if(e>=t)return a;return Bi},x=e=>{let t=0;for(;e>0;e-=oh(t))t++;return t};class dh{title=void 0;titleId;badge;isFactionBadge;asset;items;secret;daily;crew;repeatable}var Ra=(e=>(e.COMPLETED="COMPLETED",e.IN_PROGRESS="IN_PROGRESS",e))(Ra||{});const Lt=e=>new Intl.NumberFormat("de-DE").format(e),lh=(e,t,a=i=>i)=>e.filter(i=>!t.some(s=>a(s)===a(i))),Gi=(e,t)=>[...new Set(e.map(a=>t(a)))],uh=e=>Object.fromEntries(e),ch=e=>e.toLowerCase().replace(/[^a-zA-Z0-9]+(.)/g,(t,a)=>a.toUpperCase()).replace(/^[A-Z]/,t=>t.toLowerCase()),hh=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,fh=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,$i=/(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,Da=[/^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],mh={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:$i,monthsShortRegex:$i,monthsStrictRegex:hh,monthsShortStrictRegex:fh,monthsParse:Da,longMonthsParse:Da,shortMonthsParse:Da,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}};S.locale("fr",mh);const zi=(e,t,a=!0)=>(a?e.getFullYear()===t.getFullYear():!0)&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),qi=e=>typeof e=="function",_h={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>"}},Ki=new Oo.EventEmitter,Ji="quest/COMPLETED_QUEST",Zi=(e,t)=>{Ki.emit(Ji,e,t)},ph=e=>{Ki.on(Ji,(t,a)=>{e(t,a)})};class c extends dh{static dependencies=[];async complete(t,a){const i=new Date;i.setHours(0,0,0,0);let s;if(!await this.isCompleted(t)&&(this.daily?s=await r.userQuestService.completeQuest({lastCompletionDate:{$lt:i},questId:this.id,user:t},!0):this.repeatable?s=await r.userQuestService.completeQuest({questId:this.id,user:t}):s=await r.userQuestService.completeQuest({questId:this.id,user:t,status:Ra.IN_PROGRESS}),!!s))return await this.specificQuestCompletion(t),await this.applyReward(t),a&&Zi([t],this),!0}async applyReward(t){this.crew||(this.titleId&&await r.userOrnamentService.unlockTitle(t,this.titleId),this.badge&&await r.userOrnamentService.unlockBadge(t,this.badge,this.rankId),this.isFactionBadge&&await r.userOrnamentService.unlockFactionBadge(t,this.rankId),this.asset&&await r.userOrnamentService.unlockProfileAsset(t,this.asset),this.items&&await r.userInventoryService.addItems(t,this.items))}async getComputedRewards(t){const{DailyAll:a}=await Promise.resolve().then(()=>fo),i=new a().id,s=this.daily?await r.userQuestService.getStreakMultiplier(t,i):1,n=await r.userMetaService.get(t);return{xp:(qi(this.xp)?this.xp(n):this.xp)*s,berry:(qi(this.berry)?this.berry(n):this.berry)*s}}async specificQuestCompletion(t){this.id==="be_level_10"&&await r.userService.canChooseFaction(t,!0),this.id!=="be_level_10"&&this.id.startsWith("be_level_")&&await r.userService.canChangeFaction(t,!0)}async isCompleted(t){const{lastCompletionDate:a,status:i}=await r.userQuestService.get({user:t,questId:this.id});return this.repeatable?!1:this.daily?i==="COMPLETED"&&!!a&&zi(a,new Date):i==="COMPLETED"}}class Xi extends c{name="Jeune étudiant";id="drink_50_alcohols";rankId=u.COMMON.id;description="Boire 50 alcools";berry=5e5;xp=2e4;titleId="title_Jeune étudiant";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.totalConsumed>=50}}class es extends c{name="Habitué des bars";id="drink_250_alcohols";rankId=u.RARE.id;description="Boire 250 alcools";berry=2e6;xp=5e4;titleId="title_Habitué des bars";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.totalConsumed>=250}}class ts extends c{name="Alcoolique notoire";id="drink_500_alcohols";rankId=u.EPIC.id;description="Boire 500 alcools";berry=1e7;xp=1e5;titleId="title_Alcoolique notoire";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.totalConsumed>=500}}class as extends c{name="Ivrogne";id="drink_1000_alcohols";rankId=u.LEGENDARY.id;description="Boire 1000 alcools";berry=5e7;xp=2e5;titleId="title_Ivrogne";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.totalConsumed>=1e3}}class is extends c{name="Breton";id="drink_2000_alcohols";rankId=u.MYTHIC.id;description="Boire 2000 alcools";berry=1e8;xp=5e5;titleId="title_Breton";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.totalConsumed>=2e3}}class ss extends c{name="Buveur de Rhum";id="drink_10_rhum";rankId=u.COMMON.id;description="Boire 10 Rhums";berry=5e5;xp=2e4;titleId="title_Buveur de Rhum";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.rhums>=10}}class ns extends c{name="Amateur de Rhum";id="drink_100_rhum";rankId=u.RARE.id;description="Boire 100 Rhums";berry=2e6;xp=5e4;titleId="title_Amateur de Rhum";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.rhums>=100}}class rs extends c{name="Connaisseur de Rhum";id="drink_250_rhum";rankId=u.EPIC.id;description="Boire 250 Rhums";berry=1e7;xp=1e5;titleId="title_Connaisseur de Rhum";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.rhums>=250}}class os extends c{name="Rhumologue";id="drink_500_rhum";rankId=u.LEGENDARY.id;description="Boire 500 Rhums";berry=5e7;xp=2e5;titleId="title_Rhumologue";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.rhums>=500}}class ds extends c{name="Dieu du Rhum";id="drink_1000_rhum";rankId=u.MYTHIC.id;description="Boire 1000 Rhums";berry=1e8;xp=5e5;titleId="title_Dieu du Rhum";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.rhums>=1e3}}class ls extends c{name="Buveur de Bière";id="drink_10_beer";rankId=u.COMMON.id;description="Boire 10 Bières";berry=5e5;xp=2e4;titleId="title_Buveur de Bière";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.beers>=10}}class us extends c{name="Amateur de Bière";id="drink_100_beer";rankId=u.RARE.id;description="Boire 100 Bières";berry=2e6;xp=5e4;titleId="title_Amateur de Rhum";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.beers>=100}}class cs extends c{name="Connaisseur de Bière";id="drink_250_beer";rankId=u.EPIC.id;description="Boire 250 Bières";berry=1e7;xp=1e5;titleId="title_Connaisseur de Rhum";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.beers>=250}}class hs extends c{name="Bièrologue";id="drink_500_beer";rankId=u.LEGENDARY.id;description="Boire 500 Bières";berry=5e7;xp=2e5;titleId="title_Bièrologue";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.beers>=500}}class fs extends c{name="Dieu de la Bière";id="drink_1000_beer";rankId=u.MYTHIC.id;description="Boire 1000 Bières";berry=1e8;xp=5e5;titleId="title_Dieu de la Bière";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.beers>=1e3}}class ms extends c{name="Buveur de Vin";id="drink_10_wine";rankId=u.COMMON.id;description="Boire 10 Vins";berry=5e5;xp=2e4;titleId="title_Buveur de Vin";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.wines>=10}}class _s extends c{name="Amateur de Vin";id="drink_100_wine";rankId=u.RARE.id;description="Boire 100 Vins";berry=2e6;xp=5e4;titleId="title_Amateur de Vin";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.wines>=100}}class ps extends c{name="Connaisseur de Vin";id="drink_250_wine";rankId=u.EPIC.id;description="Boire 250 Vins";berry=1e7;xp=1e5;titleId="title_Connaisseur de Vin";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.wines>=250}}class gs extends c{name="Vinologue";id="drink_500_wine";rankId=u.LEGENDARY.id;description="Boire 500 Vins";berry=1e7;xp=2e5;titleId="title_Vinologue";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.wines>=500}}class Es extends c{name="Dieu du Vin";id="drink_1000_wine";rankId=u.MYTHIC.id;description="Boire 1000 Vins";berry=1e8;xp=5e5;titleId="title_Dieu du Vin";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.wines>=1e3}}const gh=Object.freeze(Object.defineProperty({__proto__:null,Drink1000Alcohols:as,Drink1000Beer:fs,Drink1000Rhum:ds,Drink1000Wine:Es,Drink100Beer:us,Drink100Rhum:ns,Drink100Wine:_s,Drink10Beer:ls,Drink10Rhum:ss,Drink10Wine:ms,Drink2000Alcohols:is,Drink250Alcohols:es,Drink250Beer:cs,Drink250Rhum:rs,Drink250Wine:ps,Drink500Alcohols:ts,Drink500Beer:hs,Drink500Rhum:os,Drink500Wine:gs,Drink50Alcohols:Xi},Symbol.toStringTag,{value:"Module"}));class Ss extends c{name="Un poster dans ta chambre";id="have_1_background";rankId=u.EPIC.id;description="Avoir 1 background";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_ORNAMENT];async isValidated({userOrnament:t},a){const{unlockedBackgrounds:i}=t??await r.userOrnamentService.get(a);return i.filter(s=>s!==Ta).length>=1}}class ys extends c{name="Fan de One Piece";id="have_25_background";rankId=u.LEGENDARY.id;description="Avoir 25 backgrounds différents";berry=5e6;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_ORNAMENT];async isValidated({userOrnament:t},a){const{unlockedBackgrounds:i}=t??await r.userOrnamentService.get(a);return i.filter(s=>s!==Ta).length>=25}}class Ms extends c{name="Tu vas en faire quoi ? Tu peux en mettre qu'un";id="have_50_background";rankId=u.MYTHIC.id;description="Avoir 50 backgrounds différents";berry=5e7;xp=25e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_ORNAMENT];async isValidated({userOrnament:t},a){const{unlockedBackgrounds:i}=t??await r.userOrnamentService.get(a);return i.filter(s=>s!==Ta).length>=50}}const Eh=Object.freeze(Object.defineProperty({__proto__:null,Have1Background:Ss,Have25Background:ys,Have50Background:Ms},Symbol.toStringTag,{value:"Module"}));class Ts extends c{name="Enfin de quoi t'acheter un bon vélo !";id="have_500000_berry";rankId=u.COMMON.id;description="Avoir 500 000 Berrys";berry=1e5;xp=5e3;badge=A.berry;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{berry:i}=t??await r.userMetaService.get(a);return i>=5e5}}class bs extends c{name="Ouah t'es multi-millionaire !";id="have_5000000_berry";rankId=u.RARE.id;description="Avoir 5 000 000 Berrys";berry=1e6;xp=25e3;badge=A.berry;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{berry:i}=t??await r.userMetaService.get(a);return i>=5e6}}class As extends c{name="Presque riche";id="have_50000000_berry";rankId=u.EPIC.id;description="Avoir 50 000 000 Berrys";berry=1e7;xp=5e4;badge=A.berry;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{berry:i}=t??await r.userMetaService.get(a);return i>=5e7}}class Rs extends c{name="Un 20m² à Paris";id="have_500000000_berry";rankId=u.LEGENDARY.id;description="Avoir 500 000 000 Berrys";berry=1e8;xp=1e5;badge=A.berry;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{berry:i}=t??await r.userMetaService.get(a);return i>=5e8}}class Ds extends c{name="This is Elon Musk";id="have_5000000000_berry";rankId=u.MYTHIC.id;description="Avoir 5 000 000 000 Berrys";berry=1e9;xp=25e4;titleId="title_Elon Musk";badge=A.berry;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{berry:i}=t??await r.userMetaService.get(a);return i>=5e9}}const Sh=Object.freeze(Object.defineProperty({__proto__:null,Have500kBerry:Ts,Have500mBerry:Rs,Have50mBerry:As,Have5mBerry:bs,Have5mdBerry:Ds},Symbol.toStringTag,{value:"Module"}));class Ns extends c{name="Petit joueur";id="bet_min_value";rankId=u.RARE.id;description="Mise la somme minimale lors d'un pari";berry=5e4;xp=1e4;secret=!0;titleId="title_Petit joueur";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_FLAGS];async isValidated({userStatsFlags:t},a){const{gamblingFlags:i}=t??await r.userStatsFlagsService.get(a);return i.betMin}}class Is extends c{name="On a tous le droit à une seconde chance";id="lose_everything";rankId=u.RARE.id;description="Perdre tous ses Berrys";berry=1e5;xp=1e4;secret=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_FLAGS];async isValidated({userStatsFlags:t},a){const{gamblingFlags:i}=t??await r.userStatsFlagsService.get(a);return i.loseEverything}}class ws extends c{name="T'es sûr de toi ?";id="bet_10M";rankId=u.EPIC.id;description="Miser 10 000 000 de Berrys en une seule fois";berry=5e5;xp=5e4;secret=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_FLAGS];async isValidated({userStatsFlags:t},a){const{gamblingFlags:i}=t??await r.userStatsFlagsService.get(a);return i.bet10M}}class vs extends c{name="Ok j'ai rien dit";id="win_10M_bet";rankId=u.LEGENDARY.id;description="Gagner en ayant misé 10M de Berrys";berry=1e6;xp=5e4;secret=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_FLAGS];async isValidated({userStatsFlags:t},a){const{gamblingFlags:i}=t??await r.userStatsFlagsService.get(a);return i.winBet10M}}class ks extends c{name="T'es accro là non ?";id="bet_total_10M";rankId=u.LEGENDARY.id;description="Miser plus de 10 000 000 de Berrys en tout";berry=1e6;xp=1e5;titleId="title_Gambling addict";badge=A.casino;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{totalBet:i}=t??await r.userStatsCasinoService.get(a);return i>=1e7}}class Os extends c{name="LE MILLIARD";id="bet_total_1Md";rankId=u.MYTHIC.id;description="Miser plus de 1 000 000 000 de Berrys en tout";berry=5e7;xp=25e4;badge=A.casino;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{totalBet:i}=t??await r.userStatsCasinoService.get(a);return i>=1e9}}class xs extends c{name="Cheh !";id="lose_10M";rankId=u.LEGENDARY.id;description="Perdre 10M de Berrys en une fois";berry=1e6;xp=1e5;secret=!0;badge=A.noluck;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_FLAGS];async isValidated({userStatsFlags:t},a){const{gamblingFlags:i}=t??await r.userStatsFlagsService.get(a);return i.lose10M}}const yh=Object.freeze(Object.defineProperty({__proto__:null,Bet10M:ws,BetMinValue:Ns,Lose10M:xs,LoseEverything:Is,TotalBet10M:ks,TotalBet1Md:Os,WinOn10MBet:vs},Symbol.toStringTag,{value:"Module"}));class Cs extends c{name="Bon anniversaire !";id="birthday";rankId=u.EPIC.id;description="Fêter son anniversaire";berry=1e6;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_FLAGS];async isValidated({userStatsFlags:t},a){const{hasCelebrateBirthday:i}=t??await r.userStatsFlagsService.get(a);return i}}const Mh=Object.freeze(Object.defineProperty({__proto__:null,Birthday:Cs},Symbol.toStringTag,{value:"Module"}));class Ls extends c{name="Il ne va pas te répondre tu sais ?";id="bot_ping";rankId=u.EPIC.id;description="Ping le bot 100 fois";berry=25e4;xp=25e3;secret=!0;titleId="title_Teubé";asset=Aa.idiot;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_FLAGS];async isValidated({userStatsFlags:t},a){const{botPingCount:i}=t??await r.userStatsFlagsService.get(a);return i>=100}}const Th=Object.freeze(Object.defineProperty({__proto__:null,BotPing:Ls},Symbol.toStringTag,{value:"Module"}));class Vs extends c{name="5 jours / semaine à Basic Fit";id="have_25_strength";rankId=u.COMMON.id;description="Avoir 25 de force";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.strength)>=25}}class Us extends c{name="La fonte > les livres";id="have_50_strength";rankId=u.RARE.id;description="Avoir 50 de force";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.strength)>=50}}class Ys extends c{name="Moi, musclé ?";id="have_100_strength";rankId=u.EPIC.id;description="Avoir 100 de force";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.strength)>=100}}class Ps extends c{name="Hercules";id="have_250_strength";rankId=u.LEGENDARY.id;description="Avoir 250 de force";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.strength)>=250}}class Ws extends c{name="Titan";id="have_500_strength";rankId=u.MYTHIC.id;description="Avoir 500 de force";berry=5e7;xp=25e4;titleId="title_Titan";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.strength)>=500}}class Hs extends c{name="Chat de gouttière";id="have_25_agility";rankId=u.COMMON.id;description="Avoir 25 d'agilité";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.agility)>=25}}class Fs extends c{name="Hop ! Grand écart !";id="have_50_agility";rankId=u.RARE.id;description="Avoir 50 d'agilité";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.agility)>=50}}class js extends c{name="Danseur étoile";id="have_100_agility";rankId=u.EPIC.id;description="Avoir 100 d'agilité";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.agility)>=100}}class Qs extends c{name="L'Éclair de Konoha ! (merde mauvais manga)";id="have_250_agility";rankId=u.LEGENDARY.id;description="Avoir 250 d'agilité";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.agility)>=250}}class Bs extends c{name="Héritier de Bon Clay";id="have_500_agility";rankId=u.MYTHIC.id;description="Avoir 500 d'agilité";berry=5e7;xp=25e4;titleId="title_Héritier de Bon Clay";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.agility)>=500}}class Gs extends c{name="2+2 = 4";id="have_25_intelligence";rankId=u.COMMON.id;description="Avoir 25 d'intelligence";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.intelligence)>=25}}class $s extends c{name="Petit Einstein";id="have_50_intelligence";rankId=u.RARE.id;description="Avoir 50 d'intelligence";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.intelligence)>=50}}class zs extends c{name="HPI";id="have_100_intelligence";rankId=u.EPIC.id;description="Avoir 100 d'intelligence";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.intelligence)>=100}}class qs extends c{name="Sorcier du savoir";id="have_250_intelligence";rankId=u.LEGENDARY.id;description="Avoir 250 d'intelligence";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.intelligence)>=250}}class Ks extends c{name="Héritier de Vegapunk";id="have_500_intelligence";rankId=u.MYTHIC.id;description="Avoir 500 d'intelligence";berry=5e7;xp=25e4;titleId="title_Héritier de Vegapunk";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.intelligence)>=500}}class Js extends c{name="Touche du bois";id="have_25_chance";rankId=u.COMMON.id;description="Avoir 25 de chance";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.chance)>=25}}class Zs extends c{name="Petit veinard";id="have_50_chance";rankId=u.RARE.id;description="Avoir 50 de chance";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.chance)>=50}}class Xs extends c{name="LA CHAAAAAATTE !";id="have_100_chance";rankId=u.EPIC.id;description="Avoir 100 de chance";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.chance)>=100}}class en extends c{name="Favori des Astres";id="have_250_chance";rankId=u.LEGENDARY.id;description="Avoir 250 de chance";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.chance)>=250}}class tn extends c{name="Héritier de Baggy";id="have_500_chance";rankId=u.MYTHIC.id;description="Avoir 500 de chance";berry=5e7;xp=25e4;titleId="title_Héritier de Baggy";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.chance)>=500}}class an extends c{name="Résistant";id="have_25_vitality";rankId=u.COMMON.id;description="Avoir 25 de vitalité";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.vitality)>=25}}class sn extends c{name="Solide comme un roc";id="have_50_vitality";rankId=u.RARE.id;description="Avoir 50 de vitalité";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.vitality)>=50}}class nn extends c{name="Le tank !";id="have_100_vitality";rankId=u.EPIC.id;description="Avoir 100 de vitalité";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.vitality)>=100}}class rn extends c{name="Mais t'es increvable !";id="have_250_vitality";rankId=u.LEGENDARY.id;description="Avoir 250 de vitalité";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.vitality)>=250}}class on extends c{name="Héritier de Kaido";id="have_500_vitality";rankId=u.MYTHIC.id;description="Avoir 500 de vitalité";berry=5e7;xp=25e4;titleId="title_Héritier de Kaido";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.vitality)>=500}}class dn extends c{name="Tu as lu des livres ?";id="have_25_wisdom";rankId=u.COMMON.id;description="Avoir 25 de sagesse";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.wisdom)>=25}}class ln extends c{name="Filozof";id="have_50_wisdom";rankId=u.RARE.id;description="Avoir 50 de sagesse";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.wisdom)>=50}}class un extends c{name="Platon";id="have_100_wisdom";rankId=u.EPIC.id;description="Avoir 100 de sagesse";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.wisdom)>=100}}class cn extends c{name="Oracle vénéré";id="have_250_wisdom";rankId=u.LEGENDARY.id;description="Avoir 250 de sagesse";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.wisdom)>=250}}class hn extends c{name="Héritier d'Ohara";id="have_500_wisdom";rankId=u.MYTHIC.id;description="Avoir 500 de sagesse";berry=5e7;xp=25e4;titleId="title_Héritier d'Ohara";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.wisdom)>=500}}const bh=Object.freeze(Object.defineProperty({__proto__:null,Have100Agility:js,Have100Chance:Xs,Have100Intelligence:zs,Have100Strength:Ys,Have100Vitality:nn,Have100Wisdom:un,Have250Agility:Qs,Have250Chance:en,Have250Intelligence:qs,Have250Strength:Ps,Have250Vitality:rn,Have250Wisdom:cn,Have25Agility:Hs,Have25Chance:Js,Have25Intelligence:Gs,Have25Strength:Vs,Have25Vitality:an,Have25Wisdom:dn,Have500Agility:Bs,Have500Chance:tn,Have500Intelligence:Ks,Have500Strength:Ws,Have500Vitality:on,Have500Wisdom:hn,Have50Agility:Fs,Have50Chance:Zs,Have50Intelligence:$s,Have50Strength:Us,Have50Vitality:sn,Have50Wisdom:ln},Symbol.toStringTag,{value:"Module"}));class fn extends c{name="Ils font mieux chez Ikea";id="craft_20_times";rankId=u.COMMON.id;description="Effectuer 20 crafts";berry=5e4;xp=5e3;badge=A.craft;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{crafts:i}=t??await r.userStatsInventoryService.get(a);return i.totalCrafted>=20}}class mn extends c{name="Te fais pas mal avec le marteau";id="craft_50_times";rankId=u.RARE.id;description="Effectuer 50 crafts";berry=2e5;xp=25e3;badge=A.craft;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{crafts:i}=t??await r.userStatsInventoryService.get(a);return i.totalCrafted>=50}}class _n extends c{name="Insensible aux échardes on dirait";id="craft_200_times";rankId=u.EPIC.id;description="Effectuer 200 crafts";berry=1e6;xp=5e4;badge=A.craft;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{crafts:i}=t??await r.userStatsInventoryService.get(a);return i.totalCrafted>=200}}class pn extends c{name="Je ne veux pas voir l'état de ton atelier";id="craft_500_times";rankId=u.LEGENDARY.id;description="Effectuer 500 crafts";berry=1e6;xp=1e5;badge=A.craft;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{crafts:i}=t??await r.userStatsInventoryService.get(a);return i.totalCrafted>=500}}class gn extends c{name="Mac Gyver";id="craft_1000_times";rankId=u.MYTHIC.id;description="Effectuer 1000 crafts";berry=5e7;xp=25e4;titleId="title_Mac Gyver";badge=A.craft;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{crafts:i}=t??await r.userStatsInventoryService.get(a);return i.totalCrafted>=1e3}}class En extends c{name="Apprenti Gourmand";id="craft_10_cooked_meals";rankId=u.COMMON.id;description="Cuisiner 10 plats";berry=5e5;xp=2e4;titleId="title_Apprenti Gourmand";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{crafts:i}=t??await r.userStatsInventoryService.get(a);return i.cookedMeal>=10}}class Sn extends c{name="Chef Amateur";id="craft_50_cooked_meals";rankId=u.RARE.id;description="Cuisiner 50 plats";berry=2e5;xp=5e4;titleId="title_Chef Amateur";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{crafts:i}=t??await r.userStatsInventoryService.get(a);return i.cookedMeal>=50}}class yn extends c{name="Maître des Saveurs";id="craft_100_cooked_meals";rankId=u.EPIC.id;description="Cuisiner 100 plats";berry=1e7;xp=1e5;titleId="title_Maître des Saveurs";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{crafts:i}=t??await r.userStatsInventoryService.get(a);return i.cookedMeal>=100}}class Mn extends c{name="Artiste Culinaire";id="craft_250_cooked_meals";rankId=u.LEGENDARY.id;description="Cuisiner 250 plats";berry=5e7;xp=2e5;titleId="title_Artiste Culinaire";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{crafts:i}=t??await r.userStatsInventoryService.get(a);return i.cookedMeal>=250}}class Tn extends c{name="Sultan des Épices";id="craft_500_cooked_meals";rankId=u.MYTHIC.id;description="Cuisiner 500 plats";berry=1e8;xp=5e5;titleId="title_Sultan des Épices";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{crafts:i}=t??await r.userStatsInventoryService.get(a);return i.cookedMeal>=500}}class bn extends c{name="C'est une bonne situation ça scribe ?";id="craft_5_scrolls";rankId=u.COMMON.id;description="Craft 5 Parchemins";berry=5e5;xp=2e4;titleId="title_Apprenti Scribe";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{crafts:i}=t??await r.userStatsInventoryService.get(a);return i.scrolls>=5}}class An extends c{name="Artisan des Runes";id="craft_10_scrolls";rankId=u.RARE.id;description="Craft 10 Parchemins";berry=2e6;xp=5e4;titleId="title_Artisan des Runes";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{crafts:i}=t??await r.userStatsInventoryService.get(a);return i.scrolls>=10}}class Rn extends c{name="Collectionneur des Manuscrits";id="craft_20_scrolls";rankId=u.EPIC.id;description="Craft 20 Parchemins";berry=1e7;xp=1e5;titleId="title_Collectionneur de Manuscrits";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{crafts:i}=t??await r.userStatsInventoryService.get(a);return i.scrolls>=20}}class Dn extends c{name="Maître des Enluminures";id="craft_50_scrolls";rankId=u.LEGENDARY.id;description="Craft 50 Parchemins";berry=5e7;xp=2e5;titleId="title_Maître des Enluminures";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{crafts:i}=t??await r.userStatsInventoryService.get(a);return i.scrolls>=50}}class Nn extends c{name="Protecteur du Savoir";id="craft_100_scrolls";rankId=u.MYTHIC.id;description="Craft 100 Parchemins";berry=1e8;xp=5e5;titleId="title_Protecteur du Savoir";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{crafts:i}=t??await r.userStatsInventoryService.get(a);return i.scrolls>=100}}const Ah=Object.freeze(Object.defineProperty({__proto__:null,Craft1000Times:gn,Craft100CookedMeals:yn,Craft100Scrolls:Nn,Craft10CookedMeals:En,Craft10Scrolls:An,Craft200Times:_n,Craft20Scrolls:Rn,Craft20Times:fn,Craft250CookedMeals:Mn,Craft500CookedMeals:Tn,Craft500Times:pn,Craft50CookedMeals:Sn,Craft50Scrolls:Dn,Craft50Times:mn,Craft5Scrolls:bn},Symbol.toStringTag,{value:"Module"}));class In extends c{name="Vaut mieux ça que perdre non ?";id="draw_100";rankId=u.COMMON.id;description="Faire 100 égalités";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{drawCount:i}=t??await r.userStatsCasinoService.get(a);return i>=100}}class wn extends c{name="Tu as trouvé ton rival";id="draw_300";rankId=u.RARE.id;description="Faire 300 égalités";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{drawCount:i}=t??await r.userStatsCasinoService.get(a);return i>=300}}class vn extends c{name="Rathon c'est toi ?";id="draw_1000";rankId=u.EPIC.id;description="Faire 1000 égalités";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{drawCount:i}=t??await r.userStatsCasinoService.get(a);return i>=1e3}}class kn extends c{name="Tu te bats contre un mur ou quoi ?";id="draw_2000";rankId=u.LEGENDARY.id;description="Faire 2000 égalités";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{drawCount:i}=t??await r.userStatsCasinoService.get(a);return i>=2e3}}class On extends c{name="De vrais jumeaux";id="draw_5000";rankId=u.MYTHIC.id;description="Faire 5000 égalités";berry=5e7;xp=25e4;titleId="title_Égalitaire";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{drawCount:i}=t??await r.userStatsCasinoService.get(a);return i>=5e3}}const Rh=Object.freeze(Object.defineProperty({__proto__:null,Draw1000Quest:vn,Draw100Quest:In,Draw2000Quest:kn,Draw300Quest:wn,Draw5000Quest:On},Symbol.toStringTag,{value:"Module"}));class xn extends c{name="Y'a un truc que t'as pas compris ?";id="edito_read_100";rankId=u.EPIC.id;description="Lire 100 fois l'édito en une journée";berry=25e4;xp=25e3;secret=!0;titleId="title_Culturé";asset=Aa.edito;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_FREQUENCY];async isValidated({userStatsFrequency:t},a){const{edito:i}=t??await r.userStatsFrequencyService.get(a);return i.readToday>=100}}const Dh=Object.freeze(Object.defineProperty({__proto__:null,Edito:xn},Symbol.toStringTag,{value:"Module"}));class Cn extends c{name="Une fois, pas deux";id="everyone";rankId=u.LEGENDARY.id;description="Tenter de tag everyone";berry=-1e6;xp=-5e4;secret=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_FLAGS];async isValidated({userStatsFlags:t},a){const{tagEveryone:i}=t??await r.userStatsFlagsService.get(a);return i}}const Nh=Object.freeze(Object.defineProperty({__proto__:null,Everyone:Cn},Symbol.toStringTag,{value:"Module"}));class Ln extends c{name="Emoji Diable";id="double_six";rankId=u.LEGENDARY.id;description="Faire 50 fois un double six";berry=1e6;xp=1e5;badge=A.doublesix;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{dice:i}=t??await r.userStatsCasinoService.get(a);return i.doubleSixCount>=50}}class Vn extends c{name="Pas de chance ^^";id="draw_double_six";rankId=u.RARE.id;description="Faire une fois une égalité en double 6";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{dice:i}=t??await r.userStatsCasinoService.get(a);return i.drawWithDoubleSixCount>=1}}class Un extends c{name="Jamais 6 sans 7";id="seven_quitte_ou_double";rankId=u.MYTHIC.id;description='Gagner 7 fois de suite "Doubles" au Quitte ou Double';berry=5e7;xp=25e4;badge=A.chance;titleId="title_Chanceux";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{doubleOrQuit:i}=t??await r.userStatsCasinoService.get(a);return i.sevenDoubleInARowCount>=1}}class Yn extends c{name="Le 5 à la suite";id="win_5_in_row";rankId=u.EPIC.id;description="Gagner à 5 jeux différents du casino à la suite";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{lastGames:i}=t??await r.userStatsCasinoService.get(a),s=i.slice(0,5);return s.length!==5||Gi(s,n=>n.gameType).length<5?!1:s.reduce((n,o)=>n+o.endState,0)===5}}class Pn extends c{name="Le 5 à la suite, mais dans l'autre sens";id="lose_5_in_row";rankId=u.EPIC.id;description="Perdre à 5 jeux différents du casino à la suite";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{lastGames:i}=t??await r.userStatsCasinoService.get(a),s=i.slice(0,5);return s.length!==5||Gi(s,n=>n.gameType).length<5?!1:s.reduce((n,o)=>n+o.endState,0)===-5}}class Wn extends c{name="Jacques le noir";id="ten_black_jack";rankId=u.LEGENDARY.id;description="Faire 10 fois BlackJack";berry=5e6;xp=5e4;badge=A["black-jack"];static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{blackJack:i}=t??await r.userStatsCasinoService.get(a);return i.blackJackCount>=10}}class Hn extends c{name="La feuille enveloppe la pierre ! T'es sûr ?";id="paper_100";rankId=u.LEGENDARY.id;description="Faire 100 fois de suite Papier au PPC";berry=1e6;xp=1e5;titleId="title_Papyrus";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{rps:i}=t??await r.userStatsCasinoService.get(a);return i.lastRpsPlayed==="paper"&&i.count>=100}}class Fn extends c{name="On fait la paire !";id="scissor_100";rankId=u.LEGENDARY.id;description="Faire 100 fois de suite Ciseaux au PPC";berry=1e6;xp=1e5;titleId="title_Couturier";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{rps:i}=t??await r.userStatsCasinoService.get(a);return i.lastRpsPlayed==="scissor"&&i.count>=100}}class jn extends c{name="Golem";id="rock_100";rankId=u.LEGENDARY.id;description="Faire 100 fois de suite Pierre au PPC";berry=1e6;xp=1e5;titleId="title_Golem";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{rps:i}=t??await r.userStatsCasinoService.get(a);return i.lastRpsPlayed==="rock"&&i.count>=100}}class Qn extends c{name="LE NEUF ET LE HUIT !!!";id="guess_in_one";rankId=u.MYTHIC.id;description="Deviner le Juste Prix en un coup";berry=5e7;xp=25e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{priceIsRight:i}=t??await r.userStatsCasinoService.get(a);return i.guessInOneTryCount>=1}}class Bn extends c{name="Sataniste";id="bet_666_33_days";rankId=u.LEGENDARY.id;description="Miser 666 Berry au moins une fois par jour pendant 33 jours";berry=1e6;xp=5e4;secret=!0;titleId="title_Démon";asset=Aa.satan;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{bet666:i}=t??await r.userStatsCasinoService.get(a);return i.count>=33}}class Gn extends c{name="Jour, Nuit";id="win_lose_10_times";rankId=u.LEGENDARY.id;description='Faire un enchaînement "Victoire/Défaite" 10 fois de suite';berry=1e6;xp=5e4;secret=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{lastGames:i}=t??await r.userStatsCasinoService.get(a);if(i.length!==20)return!1;const s=i[0].endState,n=s===1?-1:1;if(s===0)return!1;for(let o=0;o<i.length;o++)if(o%2===0&&i[o].endState!==s||o%2!==0&&i[o].endState!==n)return!1;return!0}}const Ih=Object.freeze(Object.defineProperty({__proto__:null,Bet666:Bn,DoubleSix:Ln,DrawDoubleSix:Vn,GuessInOne:Qn,LoseAll5GamesInRow:Pn,Paper100:Hn,Rock100:jn,Scissor100:Fn,SevenQuitteOuDouble:Un,TenBlackJack:Wn,WinAll5GamesInRow:Yn,WinLose10:Gn},Symbol.toStringTag,{value:"Module"}));class $n extends c{name="Tu avais soif ?";id="drink_100_xp_bottles_1_day";rankId=u.LEGENDARY.id;description="Boire 100 Potions d'XP en une journée";berry=1e6;xp=5e4;secret=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{bottle:i}=t??await r.userStatsInventoryService.get(a);return i.usedToday>=100}}class zn extends c{name="Un ptit goût amer non ?";id="drink_200";rankId=u.COMMON.id;description="Boire 200 Potions d'XP";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{bottle:i}=t??await r.userStatsInventoryService.get(a);return i.totalUsed>=200}}class qn extends c{name="Ça se boit bien finalement";id="drink_500";rankId=u.RARE.id;description="Boire 500 Potions d'XP";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{bottle:i}=t??await r.userStatsInventoryService.get(a);return i.totalUsed>=500}}class Kn extends c{name="Les potions donnent des aiiiiles !";id="drink_1000";rankId=u.EPIC.id;description="Boire 1000 Potions d'XP";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{bottle:i}=t??await r.userStatsInventoryService.get(a);return i.totalUsed>=1e3}}class Jn extends c{name="À deux doigts de vomir";id="drink_2000";rankId=u.LEGENDARY.id;description="Boire 2000 Potions d'XP";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{bottle:i}=t??await r.userStatsInventoryService.get(a);return i.totalUsed>=2e3}}class Zn extends c{name="Alcoolique";id="drink_5000";rankId=u.MYTHIC.id;description="Boire 5000 Potions d'XP";berry=5e7;xp=25e4;titleId="title_Alcoolique";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{bottle:i}=t??await r.userStatsInventoryService.get(a);return i.totalUsed>=5e3}}class Xn extends c{name="C'est sympa ce ptit jeu";id="chest_open_50";rankId=u.COMMON.id;description="Ouvrir 50 Coffres";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{chest:i}=t??await r.userStatsInventoryService.get(a);return i.totalOpened>=50}}class er extends c{name="T'as enfin eu un truc intéressant ?";id="chest_open_150";rankId=u.RARE.id;description="Ouvrir 150 Coffres";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{chest:i}=t??await r.userStatsInventoryService.get(a);return i.totalOpened>=150}}class tr extends c{name="Ça commence à gratter hein ?";id="chest_open_500";rankId=u.EPIC.id;description="Ouvrir 500 Coffres";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{chest:i}=t??await r.userStatsInventoryService.get(a);return i.totalOpened>=500}}class ar extends c{name="LAISSEZ-MOI OUVRIR DES COFFRES !";id="chest_open_1000";rankId=u.LEGENDARY.id;description="Ouvrir 1000 Coffres";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{chest:i}=t??await r.userStatsInventoryService.get(a);return i.totalOpened>=1e3}}class ir extends c{name="xXFan2GenshinXx";id="chest_open_2000";rankId=u.MYTHIC.id;description="Ouvrir 2000 Coffres";berry=5e7;xp=25e4;titleId="title_Gatcha Addict";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{chest:i}=t??await r.userStatsInventoryService.get(a);return i.totalOpened>=2e3}}const wh=Object.freeze(Object.defineProperty({__proto__:null,ChestOpen1000Quest:ar,ChestOpen150Quest:er,ChestOpen2000Quest:ir,ChestOpen500Quest:tr,ChestOpen50Quest:Xn,Drink1000Quest:Kn,Drink100Today:$n,Drink2000Quest:Jn,Drink200Quest:zn,Drink5000Quest:Zn,Drink500Quest:qn},Symbol.toStringTag,{value:"Module"}));class sr extends c{name="Bienvenue à bord !";id="crew_create_or_join";rankId=u.LEGENDARY.id;description="Créer ou rejoindre un équipage";berry=1e6;xp=1e5;crew=!1;async isValidated(){return!1}}const vh=Object.freeze(Object.defineProperty({__proto__:null,CrewCreateOrJoin:sr},Symbol.toStringTag,{value:"Module"}));class nr extends c{name="Un pas devant l'autre !";id="be_level_10";rankId=u.COMMON.id;description="Atteindre le niveau 10";berry=1e5;xp=0;isFactionBadge=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{xp:i}=t??await r.userMetaService.get(a);return W(i.amount)>=10}}class rr extends c{name="T'inquiète pas ça va bien se passer";id="be_level_20";rankId=u.COMMON.id;description="Atteindre le niveau 20";berry=3e5;xp=0;isFactionBadge=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{xp:i}=t??await r.userMetaService.get(a);return W(i.amount)>=20}}class or extends c{name="Commence par me parler poliment";id="be_level_30";rankId=u.RARE.id;description="Atteindre le niveau 30";berry=1e6;xp=0;isFactionBadge=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{xp:i}=t??await r.userMetaService.get(a);return W(i.amount)>=30}}class dr extends c{name="On te respecte à la cantine";id="be_level_40";rankId=u.RARE.id;description="Atteindre le niveau 40";berry=3e6;xp=0;isFactionBadge=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{xp:i}=t??await r.userMetaService.get(a);return W(i.amount)>=40}}class lr extends c{name="Ça commence à devenir sérieux";id="be_level_50";rankId=u.EPIC.id;description="Atteindre le niveau 50";berry=5e6;xp=0;isFactionBadge=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{xp:i}=t??await r.userMetaService.get(a);return W(i.amount)>=50}}class ur extends c{name="Une chambre individuelle ? La chance !";id="be_level_60";rankId=u.EPIC.id;description="Atteindre le niveau 60";berry=1e7;xp=0;isFactionBadge=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{xp:i}=t??await r.userMetaService.get(a);return W(i.amount)>=60}}class cr extends c{name="Oulah, les responsabilités arrivent";id="be_level_70";rankId=u.LEGENDARY.id;description="Atteindre le niveau 70";berry=5e7;xp=0;isFactionBadge=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{xp:i}=t??await r.userMetaService.get(a);return W(i.amount)>=70}}class hr extends c{name="Faut pas t'emmerder toi";id="be_level_80";rankId=u.LEGENDARY.id;description="Atteindre le niveau 80";berry=5e7;xp=0;isFactionBadge=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{xp:i}=t??await r.userMetaService.get(a);return W(i.amount)>=80}}class fr extends c{name="Là on parle !";id="be_level_90";rankId=u.MYTHIC.id;description="Atteindre le niveau 90";berry=1e8;xp=0;isFactionBadge=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{xp:i}=t??await r.userMetaService.get(a);return W(i.amount)>=90}}class mr extends c{name="*S'agenouille*";id="be_level_100";rankId=u.MYTHIC.id;description="Atteindre le niveau 100";berry=1e9;xp=0;isFactionBadge=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{xp:i}=t??await r.userMetaService.get(a);return W(i.amount)>=100}}const kh=Object.freeze(Object.defineProperty({__proto__:null,BeLevel10:nr,BeLevel100:mr,BeLevel20:rr,BeLevel30:or,BeLevel40:dr,BeLevel50:lr,BeLevel60:ur,BeLevel70:cr,BeLevel80:hr,BeLevel90:fr},Symbol.toStringTag,{value:"Module"}));class _r extends c{name="Merci <3";id="premium";rankId=u.MYTHIC.id;description="Faire un don (validation manuelle)";berry=1;xp=0;badge=A.premium;titleId="title_Mécène";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{premium:i}=t??await r.userMetaService.get(a);return!!i}}const Oh=Object.freeze(Object.defineProperty({__proto__:null,Premium:_r},Symbol.toStringTag,{value:"Module"}));class pr extends c{name="Vif";id="random_message_20";rankId=u.COMMON.id;description="Récupérer 20 Messages aléatoires";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{randomMessageClaimed:i}=t??await r.userStatsEngagementService.get(a);return i>=20}}class gr extends c{name="Lucky Luke";id="random_message_50";rankId=u.RARE.id;description="Récupérer 50 Messages aléatoires";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{randomMessageClaimed:i}=t??await r.userStatsEngagementService.get(a);return i>=50}}class Er extends c{name="Rapide";id="random_message_100";rankId=u.EPIC.id;description="Récupérer 100 Messages aléatoires";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{randomMessageClaimed:i}=t??await r.userStatsEngagementService.get(a);return i>=100}}class Sr extends c{name="Et Furieux";id="random_message_200";rankId=u.LEGENDARY.id;description="Récupérer 200 Messages aléatoires";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{randomMessageClaimed:i}=t??await r.userStatsEngagementService.get(a);return i>=200}}class yr extends c{name="Ka-Chow";id="random_message_500";rankId=u.MYTHIC.id;description="Récupérer 500 Messages aléatoires";berry=5e7;xp=25e4;titleId="title_Flash Mc Queen";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{randomMessageClaimed:i}=t??await r.userStatsEngagementService.get(a);return i>=500}}const xh=Object.freeze(Object.defineProperty({__proto__:null,RandomMessage100Quest:Er,RandomMessage200Quest:Sr,RandomMessage20Quest:pr,RandomMessage500Quest:yr,RandomMessage50Quest:gr},Symbol.toStringTag,{value:"Module"}));class Mr extends c{name="Ne fais rien exploser hein ?";id="have_1_recipe";description="Avoir 1 recette";berry=5e4;xp=5e3;rankId=u.COMMON.id;badge=A.recipe;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_INVENTORY];async isValidated({userInventory:t},a){const{recipes:i}=t??await r.userInventoryService.get(a);return i.length>=1}}class Tr extends c{name="C'est bien tu sais faire des pâtes !";id="have_5_recipe";rankId=u.RARE.id;description="Avoir 5 recettes";berry=2e5;xp=25e3;badge=A.recipe;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_INVENTORY];async isValidated({userInventory:t},a){const{recipes:i}=t??await r.userInventoryService.get(a);return i.length>=5}}class br extends c{name="Ta grand-mère t'as donné son livre ?";id="have_10_recipe";rankId=u.EPIC.id;description="Avoir 10 recettes";berry=1e6;xp=5e4;badge=A.recipe;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_INVENTORY];async isValidated({userInventory:t},a){const{recipes:i}=t??await r.userInventoryService.get(a);return i.length>=10}}class Ar extends c{name="Let him cook";id="have_25_recipe";rankId=u.LEGENDARY.id;description="Avoir 25 recettes";berry=1e6;xp=1e5;badge=A.recipe;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_INVENTORY];async isValidated({userInventory:t},a){const{recipes:i}=t??await r.userInventoryService.get(a);return i.length>=25}}class Rr extends c{name="Paul Bocuse";id="have_100_recipe";rankId=u.MYTHIC.id;description="Avoir 100 recettes";berry=5e7;xp=25e4;titleId="title_Paul Bocuse";badge=A.recipe;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_INVENTORY];async isValidated({userInventory:t},a){const{recipes:i}=t??await r.userInventoryService.get(a);return i.length>=100}}const Ch=Object.freeze(Object.defineProperty({__proto__:null,Have100Recipe:Rr,Have10Recipe:br,Have1Recipe:Mr,Have25Recipe:Ar,Have5Recipe:Tr},Symbol.toStringTag,{value:"Module"}));class Dr extends c{name="Collabo";id="collabo";rankId=u.COMMON.id;description="Report une personne au staff";berry=1e4;xp=5e3;secret=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_FLAGS];async isValidated({userStatsFlags:t},a){const{reportedSomeone:i}=t??await r.userStatsFlagsService.get(a);return i}}const Lh=Object.freeze(Object.defineProperty({__proto__:null,Report:Dr},Symbol.toStringTag,{value:"Module"}));class Nr extends c{name="Bienvenue sur OPFR";id="send_100_msg";rankId=u.COMMON.id;description="Envoyer 100 messages";berry=1e4;xp=1e3;badge=A.ecrire;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{messageSent:i}=t??await r.userStatsEngagementService.get(a);return i>=100}}class Ir extends c{name="Une vraie pipelette";id="send_1000_msg";rankId=u.RARE.id;description="Envoyer 1 000 messages";berry=1e5;xp=1e4;badge=A.ecrire;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{messageSent:i}=t??await r.userStatsEngagementService.get(a);return i>=1e3}}class wr extends c{name="Faites le taire ";id="send_25000_msg";rankId=u.EPIC.id;description="Envoyer 25 000 messages";berry=1e6;xp=5e4;badge=A.ecrire;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{messageSent:i}=t??await r.userStatsEngagementService.get(a);return i>=25e3}}class vr extends c{name="Tu sors de chez toi des fois ?";id="send_100000_msg";rankId=u.LEGENDARY.id;description="Envoyer 100 000 messages";berry=1e7;xp=1e5;badge=A.ecrire;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{messageSent:i}=t??await r.userStatsEngagementService.get(a);return i>=1e5}}class kr extends c{name="J'ai pas les mots... mais toi si !";id="send_200000_msg";rankId=u.MYTHIC.id;description="Envoyer 200 000 messages";berry=1e8;xp=25e4;badge=A.ecrire;titleId="title_Spammeur";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{messageSent:i}=t??await r.userStatsEngagementService.get(a);return i>=2e5}}const Vh=Object.freeze(Object.defineProperty({__proto__:null,send100000Messages:vr,send1000Messages:Ir,send100Messages:Nr,send200000Messages:kr,send25000Messages:wr},Symbol.toStringTag,{value:"Module"}));class Uh extends c{name="T'as reçu ton argent de poche ?";id="spend_shop_5m";rankId=u.COMMON.id;description="Dépenser 5 000 000 Berrys dans la boutique";berry=5e4;xp=5e3;badge=A.mode;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:t},a){const{totalSpentInShop:i}=t??await r.userStatsEconomyService.get(a);return i>=5e6}}class Or extends c{name="Tu t'es fait plaisir !";id="spend_shop_50m";rankId=u.RARE.id;description="Dépenser 50 000 000 Berrys dans la boutique";berry=2e5;xp=25e3;badge=A.mode;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:t},a){const{totalSpentInShop:i}=t??await r.userStatsEconomyService.get(a);return i>=5e7}}class xr extends c{name="C'était les soldes j'espère !";id="spend_shop_500m";rankId=u.EPIC.id;description="Dépenser 500 000 000 Berrys dans la boutique";berry=1e6;xp=5e4;badge=A.mode;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:t},a){const{totalSpentInShop:i}=t??await r.userStatsEconomyService.get(a);return i>=5e8}}class Cr extends c{name="Paré pour la Fashion Week";id="spend_shop_5ml";rankId=u.LEGENDARY.id;description="Dépenser 5 000 000 000 Berrys dans la boutique";berry=5e6;xp=1e5;badge=A.mode;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:t},a){const{totalSpentInShop:i}=t??await r.userStatsEconomyService.get(a);return i>=5e9}}class Lr extends c{name="Fashion Viktim";id="spend_shop_50ml";rankId=u.MYTHIC.id;description="Dépenser 50 000 000 000 Berrys dans la boutique";berry=5e7;xp=25e4;badge=A.mode;titleId="title_Fashion Viktim";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:t},a){const{totalSpentInShop:i}=t??await r.userStatsEconomyService.get(a);return i>=5e10}}const Yh=Object.freeze(Object.defineProperty({__proto__:null,SpendShop500M:xr,SpendShop50M:Or,SpendShop50Ml:Lr,SpendShop5Ml:Cr,default:Uh},Symbol.toStringTag,{value:"Module"}));class Vr extends c{name="On commence à se connaître";id="voice_10_hours";rankId=u.COMMON.id;description="Se connecter 10h en vocal";berry=5e4;xp=5e3;badge=A.ermite;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{totalMinutesInVoice:i}=t??await r.userStatsEngagementService.get(a);return i>=600}}class Ur extends c{name="Je sais tout de toi";id="voice_25_hours";rankId=u.RARE.id;description="Se connecter 25h en vocal";berry=2e5;xp=25e3;badge=A.ermite;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{totalMinutesInVoice:i}=t??await r.userStatsEngagementService.get(a);return i>=1500}}class Yr extends c{name="T'as pas soif ?";id="voice_250_hours";rankId=u.EPIC.id;description="Se connecter 250h en vocal";berry=1e6;xp=5e4;badge=A.ermite;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{totalMinutesInVoice:i}=t??await r.userStatsEngagementService.get(a);return i>=15e3}}class Pr extends c{name="Ok Socrate";id="voice_2500_hours";rankId=u.LEGENDARY.id;description="Se connecter 2500h en vocal";berry=1e7;xp=1e5;badge=A.ermite;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{totalMinutesInVoice:i}=t??await r.userStatsEngagementService.get(a);return i>=60*2500}}class Wr extends c{name="Elle ressemble à quoi la lumière du soleil ?";id="voice_5000_hours";rankId=u.MYTHIC.id;description="Se connecter 5000h en vocal";berry=5e7;xp=25e4;titleId="title_Ermite";badge=A.ermite;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{totalMinutesInVoice:i}=t??await r.userStatsEngagementService.get(a);return i>=60*5e3}}const Ph=Object.freeze(Object.defineProperty({__proto__:null,Voice10Hours:Vr,Voice2500Hours:Pr,Voice250Hours:Yr,Voice25Hours:Ur,Voice5000Hours:Wr},Symbol.toStringTag,{value:"Module"}));class Hr extends c{name="PTDR t ki ?";id="have_10_title";rankId=u.EPIC.id;description="Avoir 10 titres différents";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_ORNAMENT];async isValidated({userOrnament:t},a){const{unlockedTitles:i}=t??await r.userOrnamentService.get(a);return i.length>=10}}class Fr extends c{name="Mon nom est Personne";id="have_50_title";rankId=u.LEGENDARY.id;description="Avoir 50 titres différents";berry=5e6;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_ORNAMENT];async isValidated({userOrnament:t},a){const{unlockedTitles:i}=t??await r.userOrnamentService.get(a);return i.length>=50}}class jr extends c{name="Daenerys Targaryen";id="have_100_title";rankId=u.MYTHIC.id;description="Avoir 100 titres différents";berry=5e7;xp=25e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_ORNAMENT];async isValidated({userOrnament:t},a){const{unlockedTitles:i}=t??await r.userOrnamentService.get(a);return i.length>=100}}const Wh=Object.freeze(Object.defineProperty({__proto__:null,Have100Title:jr,Have10Title:Hr,Have50Title:Fr},Symbol.toStringTag,{value:"Module"}));class Qr extends c{name="L'Insistant";id="insistent";rankId=u.COMMON.id;description="Être repêché et atteindre les huitièmes de finale";berry=1e6;xp=0;repeatable=!0;async isValidated(){return!1}}class Br extends c{name="Résurrection";id="resurrection";rankId=u.RARE.id;description="Être repêché et atteindre les quarts de finale";berry=3e6;xp=0;repeatable=!0;async isValidated(){return!1}}class Gr extends c{name="Renaissance";id="rebirth";rankId=u.EPIC.id;description="Être repêché et atteindre au moins les demi-finales";berry=1e7;xp=0;repeatable=!0;async isValidated(){return!1}}class $r extends c{name="Phoenix";id="phoenix";rankId=u.LEGENDARY.id;description="Être repêché et aller en finale";berry=2e7;xp=0;repeatable=!0;async isValidated(){return!1}}class zr extends c{name="L'Immortel";id="immortal";rankId=u.MYTHIC.id;description="Être repêché et remporter le tournoi";berry=4e7;xp=0;repeatable=!0;async isValidated(){return!1}}class qr extends c{name="Branche Maudite";id="cursed_branch";rankId=u.RARE.id;description="Perdre le tournoi en top 32";berry=25e6;xp=0;repeatable=!0;async isValidated(){return!1}}class Kr extends c{name="Top 64";id="tournament_top64";rankId=u.COMMON.id;description="Perdre le tournoi en top 64";berry=15e6;xp=0;repeatable=!0;async isValidated(){return!1}}class Jr extends c{name="Zero Pointé";id="zeroscored";rankId=u.COMMON.id;description="Se faire éliminer directement avec tous ses choix dès le premier duel";berry=1e7;xp=0;repeatable=!0;async isValidated(){return!1}}class Zr extends c{name="Chasseur de Géants";id="gianthunter";rankId=u.MYTHIC.id;description="Battre les 3 tap-in du tournoi avec tes choix";berry=1e8;xp=0;items={chest_2:5};repeatable=!0;async isValidated(){return!1}}class Xr extends c{name="Sabotage";id="sabotage";rankId=u.EPIC.id;description="Empêcher un choix de tap-in d'atteindre le top 32";berry=3e7;xp=0;repeatable=!0;async isValidated(){return!1}}class eo extends c{name="Victoire par K.O";id="victory_by_ko";rankId=u.COMMON.id;description="Gagner un duel avec plus de 75% des votes";berry=5e6;xp=0;repeatable=!0;async isValidated(){return!1}}class to extends c{name="Le Sniper";id="tournament_sniper";rankId=u.RARE.id;description="Gagner un duel avec plus de 80% des votes";berry=1e7;xp=0;repeatable=!0;async isValidated(){return!1}}class ao extends c{name="Massacre";id="massacre";rankId=u.EPIC.id;description="Gagner un duel avec plus de 90% des votes";berry=25e6;xp=0;repeatable=!0;async isValidated(){return!1}}class io extends c{name="Annihilation";id="annihilation";rankId=u.MYTHIC.id;description="Gagner un duel avec 100% des votes (aucun vote pour l'adversaire)";berry=1e8;xp=0;items={chest_1:5};repeatable=!0;async isValidated(){return!1}}class so extends c{name="Troll Suprême";id="trollSupreme";rankId=u.MYTHIC.id;description="Prendre un choix totalement troll et improbable, puis gagner le tournoi avec !";berry=1e8;xp=0;items={chest_3:1};repeatable=!0;async isValidated(){return!1}}class no extends c{name="Champion";id="champion";rankId=u.RARE.id;description="Remporter un tournoi";berry=0;xp=0;items={chest_2:5};repeatable=!0;async isValidated(){return!1}}class ro extends c{name="Le Maître";id="master";rankId=u.RARE.id;description="Remporter un tournoi avec trois choix différents dans le top 16";berry=0;xp=0;items={chest_3:1};repeatable=!0;async isValidated(){return!1}}class oo extends c{name="L'Inarrétable";id="unstoppable";rankId=u.EPIC.id;description="Remporter un tournoi avec une finale écrasante";berry=0;xp=0;items={chest_1:5,chest_2:3};repeatable=!0;async isValidated(){return!1}}class lo extends c{name="L'Etoile Filante";id="shootingstar";rankId=u.LEGENDARY.id;description="Passer du statut d'outsider à finaliste";berry=5e7;xp=0;repeatable=!0;async isValidated(){return!1}}class uo extends c{name="EZ";id="ez";rankId=u.EPIC.id;description="Débloquer tous les succès Victoire sans difficulté";berry=0;xp=0;items={chest_3:1};repeatable=!0;async isValidated(){return!1}}class co extends c{name="Participation";id="participation";rankId=u.COMMON.id;description="Participer au tournoi avec 1, 2, 3 et 4 choix";berry=1e7;xp=0;repeatable=!0;async isValidated(){return!1}}const Hh=Object.freeze(Object.defineProperty({__proto__:null,Annihilation:io,Champion:no,CursedBranch:qr,EZ:uo,GiantHunter:Zr,Immortal:zr,Insistent:Qr,Massacre:ao,Master:ro,Participation:co,Phoenix:$r,Rebirth:Gr,Resurrection:Br,Sabotage:Xr,ShootingStar:lo,Sniper:to,TournamentTop64:Kr,TrollSupreme:so,Unstoppable:oo,VictoryByKO:eo,ZeroScored:Jr},Symbol.toStringTag,{value:"Module"}));class Na extends c{name="1 jour 1 message";id="daily_send_message";rankId=u.COMMON.id;description="Envoyer un message";berry=({xp:t})=>(W(t.amount)/10+1)*1e3;xp=({xp:t})=>(W(t.amount)/10+1)*100;daily=!0;async isValidated(){return!1}}class Ia extends c{name="Les nouvelles sont bonnes ?";id="daily_read_edito";rankId=u.COMMON.id;description="Réagir à l'édito";berry=({xp:t})=>(W(t.amount)/10+1)*3e3;xp=({xp:t})=>(W(t.amount)/10+1)*300;daily=!0;async isValidated(){return!1}}class wa extends c{name="Quoi ? Feur !";id="daily_answer";rankId=u.COMMON.id;description="Répondre à quelqu'un";berry=({xp:t})=>(W(t.amount)/10+1)*1500;xp=({xp:t})=>(W(t.amount)/10+1)*150;daily=!0;async isValidated(){return!1}}class va extends c{name="Narcissique";id="daily_check_profile";rankId=u.COMMON.id;description="Regarder son profil";berry=({xp:t})=>(W(t.amount)/10+1)*2e3;xp=({xp:t})=>(W(t.amount)/10+1)*200;daily=!0;async isValidated(){return!1}}class ka extends c{name="T'as des amis ?";id="daily_vocal";rankId=u.COMMON.id;description="Se connecter 10 min en vocal";berry=({xp:t})=>(W(t.amount)/10+1)*5e3;xp=({xp:t})=>(W(t.amount)/10+1)*500;daily=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{xp:i}=t??await r.userMetaService.get(a);return i.voice.minutesInVoiceToday>=10&&zi(i.voice.lastConnection,new Date)}}class Oa extends c{name="T'as pas oublié de ranger ta chambre ?";id="daily_all";rankId=u.RARE.id;description="Finir les quêtes journalières";berry=({xp:t})=>(W(t.amount)/10+1)*12500;xp=({xp:t})=>(W(t.amount)/10+1)*1250;daily=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_QUEST];async isValidated(t,a){const i=[new va,new wa,new Ia,new Na,new ka];for(const s of i)if(!await s.isCompleted(a))return!1;return!0}}class ho extends c{name="Almanax";id="almanax";rankId=u.MYTHIC.id;description="Valider 365 jours de suite les quêtes quotidiennes";berry=1e9;xp=1e6;badge=A.calendar;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_QUEST];async isValidated(t,a){const i=new Oa().id;return((await r.userQuestService.get({user:a,questId:i})).streak??0)>=365}}const fo=Object.freeze(Object.defineProperty({__proto__:null,Almanax:ho,DailyAll:Oa,DailyAnswer:wa,DailyCheckProfile:va,DailyReadEdito:Ia,DailySendMessage:Na,DailyVocal:ka},Symbol.toStringTag,{value:"Module"}));class mo extends c{name="Stagiaire";id="work_100";rankId=u.COMMON.id;description="Travailler 100 fois";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:t},a){const{workCount:i}=t??await r.userStatsEconomyService.get(a);return i>=100}}class _o extends c{name="Alternant";id="work_300";rankId=u.RARE.id;description="Travailler 300 fois";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:t},a){const{workCount:i}=t??await r.userStatsEconomyService.get(a);return i>=300}}class po extends c{name="Smicard";id="work_1000";rankId=u.EPIC.id;description="Travailler 1000 fois";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:t},a){const{workCount:i}=t??await r.userStatsEconomyService.get(a);return i>=1e3}}class go extends c{name="Communiste";id="work_2000";rankId=u.LEGENDARY.id;description="Travailler 2000 fois";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:t},a){const{workCount:i}=t??await r.userStatsEconomyService.get(a);return i>=2e3}}class Eo extends c{name="Esclave";id="work_5000";rankId=u.MYTHIC.id;description="Travailler 5000 fois";berry=5e7;xp=25e4;titleId="title_Esclave";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:t},a){const{workCount:i}=t??await r.userStatsEconomyService.get(a);return i>=5e3}}const Fh=Object.freeze(Object.defineProperty({__proto__:null,Work1000Quest:po,Work100Quest:mo,Work2000Quest:go,Work300Quest:_o,Work5000Quest:Eo},Symbol.toStringTag,{value:"Module"}));class So extends c{name="Timide";id="write_10_chats";rankId=u.COMMON.id;description="Écrire dans 10 chats différents";berry=1e4;xp=1e3;badge=A.exploration;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{writeDifferentChatIds:i}=t??await r.userStatsEngagementService.get(a);return i.length>=10}}class yo extends c{name="Curieux";id="write_20_chats";rankId=u.RARE.id;description="Écrire dans 20 chats différents";berry=1e5;xp=1e4;badge=A.exploration;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{writeDifferentChatIds:i}=t??await r.userStatsEngagementService.get(a);return i.length>=20}}class Mo extends c{name="Voyeur";id="write_50_chats";rankId=u.EPIC.id;description="Écrire dans 50 chats différents";berry=5e5;xp=5e4;badge=A.exploration;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{writeDifferentChatIds:i}=t??await r.userStatsEngagementService.get(a);return i.length>=50}}class To extends c{name="Philanthrope";id="write_100_chats";rankId=u.LEGENDARY.id;description="Écrire dans 100 chats différents";berry=1e6;xp=1e5;badge=A.exploration;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{writeDifferentChatIds:i}=t??await r.userStatsEngagementService.get(a);return i.length>=100}}class bo extends c{name="Explorateur";id="write_200_chats";rankId=u.MYTHIC.id;description="Écrire dans 200 chats différents";berry=1e7;xp=25e4;titleId="title_Explorateur";badge=A.exploration;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{writeDifferentChatIds:i}=t??await r.userStatsEngagementService.get(a);return i.length>=200}}const jh=Object.freeze(Object.defineProperty({__proto__:null,Write100Chats:To,Write10Chats:So,Write200Chats:bo,Write20Chats:yo,Write50Chats:Mo},Symbol.toStringTag,{value:"Module"})),Vt=[...Object.values(gh),...Object.values(Eh),...Object.values(Sh),...Object.values(yh),...Object.values(Mh),...Object.values(Th),...Object.values(bh),...Object.values(Ah),...Object.values(Rh),...Object.values(Dh),...Object.values(Nh),...Object.values(Ih),...Object.values(wh),...Object.values(vh),...Object.values(kh),...Object.values(Oh),...Object.values(xh),...Object.values(Ch),...Object.values(Lh),...Object.values(Vh),...Object.values(Yh),...Object.values(Ph),...Object.values(Wh),...Object.values(Hh),...Object.values(fo),...Object.values(Fh),...Object.values(jh)],tt=Vt.map(e=>new e().id);if(tt.length!==[...new Set(tt)].length)throw Error(`All quest ids MUST be unique. Duplicated ids detected : ${lh(tt,[...new Set(tt)])}`);const Ao=async e=>(await r.userQuestService.getMany({user:e,questId:/be_level_/,status:Ra.COMPLETED})).length,Ro=async(e,t)=>{const a=await Ao(e);return(await r.ornamentService.getAllFactionTitles()).find(s=>s.strength===a&&s.faction===t)},Qh=(e,t)=>{const a=e.badge,i=e.isFactionBadge;return a?ba(a)?a.emojis[a.isProgressive.findIndex(s=>s===e.rankId)]:a.emojis:i?_h.factions[`b_${t}_${e.rankId}`]:""},Bh=e=>{const[t,a]=e.split("_"),i=Object.values(A).find(s=>s.id===t);if(i)return ba(i)?i.emojis[i.isProgressive.findIndex(s=>s===a)]:i.emojis},Gh=e=>{for(const t of Vt){const a=new t;if(a.id===e)return a}return null},Do=e=>Vt.filter(t=>t.dependencies.includes(e)),$h=async(e,t,a,{berry:i,xp:s})=>{const n=await r.userService.getByObjectId(t),o=await r.userQuestService.getStreakMultiplier(t,e.id),l=await Ro(t,n.faction),{badge:h,isFactionBadge:f,rankId:_,name:E,description:m,daily:T,secret:I,titleId:P}=e,C=await r.ornamentService.get(P??"");return a.Image().setImageName(`quest_success_${_}`).setDimensions(2080,636).draw(),h?a.Image().setImageName(ba(h)?`cropped_badge_${h.img}_${_}`:`cropped_badge_${h.img}`).setOrigin(be.CENTER).setScale(2).setPosition(370,318).draw():f&&n.faction!=="citizen"?a.Image().setImageName(`cropped_badge_${n.faction}_${_}`).setOrigin(be.CENTER).setScale(2).setPosition(370,318).draw():a.Image().setImageName(`badge_default_${_}`).setScale(2).setOrigin(be.CENTER).setPosition(370,318).draw(),a.Text(T?"QUÊTE JOURNALIÈRE TERMINÉE !":"SUCCÈS DÉBLOQUÉ !").setPosition(739,100).setFont("text",70).setColor(u[_].color).draw(),a.Text(E).setPosition(739,325).setOrigin(be.BOTTOM_LEFT).setFont("poppins",E.length>=35?65-(E.length-35):65).draw(),a.Text(I?"Succès caché":m).setPosition(739,360).setFont("poppins_italic",35).draw(),a.Text(`Récompenses: ${Lt(i)}${T&&o>1?` (+${Lt(i*(o-1))})`:""} `).setPosition(739,520).setFont("poppins",35).setOrigin(be.LEFT).draw(i!==0).next((O,w)=>ue(O.Image(),w)).setImageName("quest_berry").setDimensions(50,79).draw(i!==0).next((O,w)=>ue(O.Text(` / ${Lt(s)}${T&&o>1?` (+${Lt(s*(o-1))})`:""} `),w)).draw(s!==0).next((O,w)=>ue(O.Image(),w)).setImageName("quest_xp").setDimensions(57,59).draw(s!==0).next((O,w)=>ue(O.Text(` combo x${o}`),w)).draw(T&&o>1).next((O,w)=>ue(O.Text(" et la possibilité "),w)).draw(f&&n.faction==="citizen").next((O,w)=>ue(O.Text("de choisir ta faction"),w)).setFont("poppins_bold",35).draw(f&&n.faction==="citizen").next((O,w)=>ue(O.Text(" et le titre "),w)).setFont("poppins",35).draw(!!P||f&&n.faction!=="citizen").next((O,w)=>ue(O.Text(C?.name??""),w)).setFont("poppins_bold",35).setColor((C?.rankId&&u[C.rankId].color)??"white").draw(!!C).next((O,w)=>ue(O.Text(l?.name??""),w)).setColor((l?.rankId&&u[l.rankId].color)??"white").draw(f&&!!l),await a.encode("webp")},zh=["berry","success_COMMON","success_RARE","success_EPIC","success_LEGENDARY","success_MYTHIC","xp"],qh=async(e,t,a)=>{const i=Do(e),s=ch(e.split("/")[1]);for(const n of i){const o=new n;await o.isCompleted(t)||await o.isValidated({[s]:a},t)&&await o.complete(t,!0)}},Kh=e=>async(t,a)=>{await qh(e,t,a)};r.registerQuestMiddlewareEvents(uh(Object.values(r.QUEST_MIDDLEWARE_EVENT_NAME).map(e=>[e,Kh(e)]))),d.ALL_QUESTS=Vt,d.ALL_QUEST_IDS=tt,d.Almanax=ho,d.Annihilation=io,d.BeLevel10=nr,d.BeLevel100=mr,d.BeLevel20=rr,d.BeLevel30=or,d.BeLevel40=dr,d.BeLevel50=lr,d.BeLevel60=ur,d.BeLevel70=cr,d.BeLevel80=hr,d.BeLevel90=fr,d.Bet10M=ws,d.Bet666=Bn,d.BetMinValue=Ns,d.Birthday=Cs,d.BotPing=Ls,d.Champion=no,d.ChestOpen1000Quest=ar,d.ChestOpen150Quest=er,d.ChestOpen2000Quest=ir,d.ChestOpen500Quest=tr,d.ChestOpen50Quest=Xn,d.Craft1000Times=gn,d.Craft100CookedMeals=yn,d.Craft100Scrolls=Nn,d.Craft10CookedMeals=En,d.Craft10Scrolls=An,d.Craft200Times=_n,d.Craft20Scrolls=Rn,d.Craft20Times=fn,d.Craft250CookedMeals=Mn,d.Craft500CookedMeals=Tn,d.Craft500Times=pn,d.Craft50CookedMeals=Sn,d.Craft50Scrolls=Dn,d.Craft50Times=mn,d.Craft5Scrolls=bn,d.CrewCreateOrJoin=sr,d.CursedBranch=qr,d.DailyAll=Oa,d.DailyAnswer=wa,d.DailyCheckProfile=va,d.DailyReadEdito=Ia,d.DailySendMessage=Na,d.DailyVocal=ka,d.DoubleSix=Ln,d.Draw1000Quest=vn,d.Draw100Quest=In,d.Draw2000Quest=kn,d.Draw300Quest=wn,d.Draw5000Quest=On,d.DrawDoubleSix=Vn,d.Drink1000Alcohols=as,d.Drink1000Beer=fs,d.Drink1000Quest=Kn,d.Drink1000Rhum=ds,d.Drink1000Wine=Es,d.Drink100Beer=us,d.Drink100Rhum=ns,d.Drink100Today=$n,d.Drink100Wine=_s,d.Drink10Beer=ls,d.Drink10Rhum=ss,d.Drink10Wine=ms,d.Drink2000Alcohols=is,d.Drink2000Quest=Jn,d.Drink200Quest=zn,d.Drink250Alcohols=es,d.Drink250Beer=cs,d.Drink250Rhum=rs,d.Drink250Wine=ps,d.Drink5000Quest=Zn,d.Drink500Alcohols=ts,d.Drink500Beer=hs,d.Drink500Quest=qn,d.Drink500Rhum=os,d.Drink500Wine=gs,d.Drink50Alcohols=Xi,d.EZ=uo,d.Edito=xn,d.Everyone=Cn,d.GiantHunter=Zr,d.GuessInOne=Qn,d.Have100Agility=js,d.Have100Chance=Xs,d.Have100Intelligence=zs,d.Have100Recipe=Rr,d.Have100Strength=Ys,d.Have100Title=jr,d.Have100Vitality=nn,d.Have100Wisdom=un,d.Have10Recipe=br,d.Have10Title=Hr,d.Have1Background=Ss,d.Have1Recipe=Mr,d.Have250Agility=Qs,d.Have250Chance=en,d.Have250Intelligence=qs,d.Have250Strength=Ps,d.Have250Vitality=rn,d.Have250Wisdom=cn,d.Have25Agility=Hs,d.Have25Background=ys,d.Have25Chance=Js,d.Have25Intelligence=Gs,d.Have25Recipe=Ar,d.Have25Strength=Vs,d.Have25Vitality=an,d.Have25Wisdom=dn,d.Have500Agility=Bs,d.Have500Chance=tn,d.Have500Intelligence=Ks,d.Have500Strength=Ws,d.Have500Vitality=on,d.Have500Wisdom=hn,d.Have500kBerry=Ts,d.Have500mBerry=Rs,d.Have50Agility=Fs,d.Have50Background=Ms,d.Have50Chance=Zs,d.Have50Intelligence=$s,d.Have50Strength=Us,d.Have50Title=Fr,d.Have50Vitality=sn,d.Have50Wisdom=ln,d.Have50mBerry=As,d.Have5Recipe=Tr,d.Have5mBerry=bs,d.Have5mdBerry=Ds,d.Immortal=zr,d.Insistent=Qr,d.Lose10M=xs,d.LoseAll5GamesInRow=Pn,d.LoseEverything=Is,d.Massacre=ao,d.Master=ro,d.Paper100=Hn,d.Participation=co,d.Phoenix=$r,d.Premium=_r,d.QUEST_ASSET_IMAGES=zh,d.RandomMessage100Quest=Er,d.RandomMessage200Quest=Sr,d.RandomMessage20Quest=pr,d.RandomMessage500Quest=yr,d.RandomMessage50Quest=gr,d.Rebirth=Gr,d.Report=Dr,d.Resurrection=Br,d.Rock100=jn,d.Sabotage=Xr,d.Scissor100=Fn,d.SevenQuitteOuDouble=Un,d.ShootingStar=lo,d.Sniper=to,d.SpendShop500M=xr,d.SpendShop50M=Or,d.SpendShop50Ml=Lr,d.SpendShop5Ml=Cr,d.TenBlackJack=Wn,d.TotalBet10M=ks,d.TotalBet1Md=Os,d.TournamentTop64=Kr,d.TrollSupreme=so,d.Unstoppable=oo,d.VictoryByKO=eo,d.Voice10Hours=Vr,d.Voice2500Hours=Pr,d.Voice250Hours=Yr,d.Voice25Hours=Ur,d.Voice5000Hours=Wr,d.WinAll5GamesInRow=Yn,d.WinLose10=Gn,d.WinOn10MBet=vs,d.Work1000Quest=po,d.Work100Quest=mo,d.Work2000Quest=go,d.Work300Quest=_o,d.Work5000Quest=Eo,d.Write100Chats=To,d.Write10Chats=So,d.Write200Chats=bo,d.Write20Chats=yo,d.Write50Chats=Mo,d.ZeroScored=Jr,d.emitQuestCompleteEvent=Zi,d.getBadgeEmojisFromId=Bh,d.getFactionTitle=Ro,d.getFactionTitleStrength=Ao,d.getQuestBadgeEmojis=Qh,d.getQuestById=Gh,d.getQuestsByDependency=Do,d.onQuestCompleteEvent=ph,d.questCanvas=$h,d.send100000Messages=vr,d.send1000Messages=Ir,d.send100Messages=Nr,d.send200000Messages=kr,d.send25000Messages=wr,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})}));
4
+ `+new Error().stack),a=!1}return t.apply(this,arguments)},t)}var Ua={};function Ya(e,t){S.deprecationHandler!=null&&S.deprecationHandler(e,t),Ua[e]||(Va(t),Ua[e]=!0)}S.suppressDeprecationWarnings=!1,S.deprecationHandler=null;function re(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Lo(e){var t,a;for(a in e)v(e,a)&&(t=e[a],re(t)?this[a]=t:this["_"+a]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Qt(e,t){var a=ye({},e),i;for(i in t)v(t,i)&&(Re(e[i])&&Re(t[i])?(a[i]={},ye(a[i],e[i]),ye(a[i],t[i])):t[i]!=null?a[i]=t[i]:delete a[i]);for(i in e)v(e,i)&&!v(t,i)&&Re(e[i])&&(a[i]=ye({},a[i]));return a}function Bt(e){e!=null&&this.set(e)}var Gt;Object.keys?Gt=Object.keys:Gt=function(e){var t,a=[];for(t in e)v(e,t)&&a.push(t);return a};var Vo={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Uo(e,t,a){var i=this._calendar[e]||this._calendar.sameElse;return re(i)?i.call(t,a):i}function oe(e,t,a){var i=""+Math.abs(e),s=t-i.length,n=e>=0;return(n?a?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+i}var $t=/(\[[^\[]*\])|(\\)?([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,lt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,zt={},we={};function M(e,t,a,i){var s=i;typeof i=="string"&&(s=function(){return this[i]()}),e&&(we[e]=s),t&&(we[t[0]]=function(){return oe(s.apply(this,arguments),t[1],t[2])}),a&&(we[a]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function Yo(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Po(e){var t=e.match($t),a,i;for(a=0,i=t.length;a<i;a++)we[t[a]]?t[a]=we[t[a]]:t[a]=Yo(t[a]);return function(s){var n="",o;for(o=0;o<i;o++)n+=re(t[o])?t[o].call(s,e):t[o];return n}}function ut(e,t){return e.isValid()?(t=Pa(t,e.localeData()),zt[t]=zt[t]||Po(t),zt[t](e)):e.localeData().invalidDate()}function Pa(e,t){var a=5;function i(s){return t.longDateFormat(s)||s}for(lt.lastIndex=0;a>=0&&lt.test(e);)e=e.replace(lt,i),lt.lastIndex=0,a-=1;return e}var Wo={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 Ho(e){var t=this._longDateFormat[e],a=this._longDateFormat[e.toUpperCase()];return t||!a?t:(this._longDateFormat[e]=a.match($t).map(function(i){return i==="MMMM"||i==="MM"||i==="DD"||i==="dddd"?i.slice(1):i}).join(""),this._longDateFormat[e])}var Fo="Invalid date";function jo(){return this._invalidDate}var Qo="%d",Bo=/\d{1,2}/;function Go(e){return this._ordinal.replace("%d",e)}var $o={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 zo(e,t,a,i){var s=this._relativeTime[a];return re(s)?s(e,t,a,i):s.replace(/%d/i,e)}function qo(e,t){var a=this._relativeTime[e>0?"future":"past"];return re(a)?a(t):a.replace(/%s/i,t)}var Wa={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 Z(e){return typeof e=="string"?Wa[e]||Wa[e.toLowerCase()]:void 0}function qt(e){var t={},a,i;for(i in e)v(e,i)&&(a=Z(i),a&&(t[a]=e[i]));return t}var Ko={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 Jo(e){var t=[],a;for(a in e)v(e,a)&&t.push({unit:a,priority:Ko[a]});return t.sort(function(i,s){return i.priority-s.priority}),t}var Ha=/\d/,z=/\d\d/,Fa=/\d{3}/,Kt=/\d{4}/,ct=/[+-]?\d{6}/,V=/\d\d?/,ja=/\d\d\d\d?/,Qa=/\d\d\d\d\d\d?/,ht=/\d{1,3}/,Jt=/\d{1,4}/,ft=/[+-]?\d{1,6}/,ve=/\d+/,mt=/[+-]?\d+/,Zo=/Z|[+-]\d\d:?\d\d/gi,_t=/Z|[+-]\d\d(?::?\d\d)?/gi,Xo=/[+-]?\d+(\.\d{1,3})?/,Fe=/[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,ke=/^[1-9]\d?/,Zt=/^([1-9]\d|\d)/,pt;pt={};function y(e,t,a){pt[e]=re(t)?t:function(i,s){return i&&a?a:t}}function ed(e,t){return v(pt,e)?pt[e](t._strict,t._locale):new RegExp(td(e))}function td(e){return he(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,a,i,s,n){return a||i||s||n}))}function he(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function X(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function D(e){var t=+e,a=0;return t!==0&&isFinite(t)&&(a=X(t)),a}var Xt={};function L(e,t){var a,i=t,s;for(typeof e=="string"&&(e=[e]),ce(t)&&(i=function(n,o){o[t]=D(n)}),s=e.length,a=0;a<s;a++)Xt[e[a]]=i}function je(e,t){L(e,function(a,i,s,n){s._w=s._w||{},t(a,s._w,s,n)})}function ad(e,t,a){t!=null&&v(Xt,e)&&Xt[e](t,a._a,a,e)}function gt(e){return e%4===0&&e%100!==0||e%400===0}var Q=0,fe=1,de=2,j=3,ae=4,me=5,Ae=6,id=7,sd=8;M("Y",0,0,function(){var e=this.year();return e<=9999?oe(e,4):"+"+e}),M(0,["YY",2],0,function(){return this.year()%100}),M(0,["YYYY",4],0,"year"),M(0,["YYYYY",5],0,"year"),M(0,["YYYYYY",6,!0],0,"year"),y("Y",mt),y("YY",V,z),y("YYYY",Jt,Kt),y("YYYYY",ft,ct),y("YYYYYY",ft,ct),L(["YYYYY","YYYYYY"],Q),L("YYYY",function(e,t){t[Q]=e.length===2?S.parseTwoDigitYear(e):D(e)}),L("YY",function(e,t){t[Q]=S.parseTwoDigitYear(e)}),L("Y",function(e,t){t[Q]=parseInt(e,10)});function Qe(e){return gt(e)?366:365}S.parseTwoDigitYear=function(e){return D(e)+(D(e)>68?1900:2e3)};var Ba=Oe("FullYear",!0);function nd(){return gt(this.year())}function Oe(e,t){return function(a){return a!=null?(Ga(this,e,a),S.updateOffset(this,t),this):Be(this,e)}}function Be(e,t){if(!e.isValid())return NaN;var a=e._d,i=e._isUTC;switch(t){case"Milliseconds":return i?a.getUTCMilliseconds():a.getMilliseconds();case"Seconds":return i?a.getUTCSeconds():a.getSeconds();case"Minutes":return i?a.getUTCMinutes():a.getMinutes();case"Hours":return i?a.getUTCHours():a.getHours();case"Date":return i?a.getUTCDate():a.getDate();case"Day":return i?a.getUTCDay():a.getDay();case"Month":return i?a.getUTCMonth():a.getMonth();case"FullYear":return i?a.getUTCFullYear():a.getFullYear();default:return NaN}}function Ga(e,t,a){var i,s,n,o,l;if(!(!e.isValid()||isNaN(a))){switch(i=e._d,s=e._isUTC,t){case"Milliseconds":return void(s?i.setUTCMilliseconds(a):i.setMilliseconds(a));case"Seconds":return void(s?i.setUTCSeconds(a):i.setSeconds(a));case"Minutes":return void(s?i.setUTCMinutes(a):i.setMinutes(a));case"Hours":return void(s?i.setUTCHours(a):i.setHours(a));case"Date":return void(s?i.setUTCDate(a):i.setDate(a));case"FullYear":break;default:return}n=a,o=e.month(),l=e.date(),l=l===29&&o===1&&!gt(n)?28:l,s?i.setUTCFullYear(n,o,l):i.setFullYear(n,o,l)}}function rd(e){return e=Z(e),re(this[e])?this[e]():this}function od(e,t){if(typeof e=="object"){e=qt(e);var a=Jo(e),i,s=a.length;for(i=0;i<s;i++)this[a[i].unit](e[a[i].unit])}else if(e=Z(e),re(this[e]))return this[e](t);return this}function dd(e,t){return(e%t+t)%t}var H;Array.prototype.indexOf?H=Array.prototype.indexOf:H=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function ea(e,t){if(isNaN(e)||isNaN(t))return NaN;var a=dd(t,12);return e+=(t-a)/12,a===1?gt(e)?29:28:31-a%7%2}M("M",["MM",2],"Mo",function(){return this.month()+1}),M("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),M("MMMM",0,0,function(e){return this.localeData().months(this,e)}),y("M",V,ke),y("MM",V,z),y("MMM",function(e,t){return t.monthsShortRegex(e)}),y("MMMM",function(e,t){return t.monthsRegex(e)}),L(["M","MM"],function(e,t){t[fe]=D(e)-1}),L(["MMM","MMMM"],function(e,t,a,i){var s=a._locale.monthsParse(e,i,a._strict);s!=null?t[fe]=s:A(a).invalidMonth=e});var ld="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),$a="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),za=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ud=Fe,cd=Fe;function hd(e,t){return e?ee(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||za).test(t)?"format":"standalone"][e.month()]:ee(this._months)?this._months:this._months.standalone}function fd(e,t){return e?ee(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[za.test(t)?"format":"standalone"][e.month()]:ee(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function md(e,t,a){var i,s,n,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)n=ne([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(n,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(n,"").toLocaleLowerCase();return a?t==="MMM"?(s=H.call(this._shortMonthsParse,o),s!==-1?s:null):(s=H.call(this._longMonthsParse,o),s!==-1?s:null):t==="MMM"?(s=H.call(this._shortMonthsParse,o),s!==-1?s:(s=H.call(this._longMonthsParse,o),s!==-1?s:null)):(s=H.call(this._longMonthsParse,o),s!==-1?s:(s=H.call(this._shortMonthsParse,o),s!==-1?s:null))}function _d(e,t,a){var i,s,n;if(this._monthsParseExact)return md.call(this,e,t,a);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(s=ne([2e3,i]),a&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),!a&&!this._monthsParse[i]&&(n="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[i]=new RegExp(n.replace(".",""),"i")),a&&t==="MMMM"&&this._longMonthsParse[i].test(e))return i;if(a&&t==="MMM"&&this._shortMonthsParse[i].test(e))return i;if(!a&&this._monthsParse[i].test(e))return i}}function qa(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=D(t);else if(t=e.localeData().monthsParse(t),!ce(t))return e}var a=t,i=e.date();return i=i<29?i:Math.min(i,ea(e.year(),a)),e._isUTC?e._d.setUTCMonth(a,i):e._d.setMonth(a,i),e}function Ka(e){return e!=null?(qa(this,e),S.updateOffset(this,!0),this):Be(this,"Month")}function pd(){return ea(this.year(),this.month())}function gd(e){return this._monthsParseExact?(v(this,"_monthsRegex")||Ja.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(v(this,"_monthsShortRegex")||(this._monthsShortRegex=ud),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Ed(e){return this._monthsParseExact?(v(this,"_monthsRegex")||Ja.call(this),e?this._monthsStrictRegex:this._monthsRegex):(v(this,"_monthsRegex")||(this._monthsRegex=cd),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Ja(){function e(h,f){return f.length-h.length}var t=[],a=[],i=[],s,n,o,l;for(s=0;s<12;s++)n=ne([2e3,s]),o=he(this.monthsShort(n,"")),l=he(this.months(n,"")),t.push(o),a.push(l),i.push(l),i.push(o);t.sort(e),a.sort(e),i.sort(e),this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Sd(e,t,a,i,s,n,o){var l;return e<100&&e>=0?(l=new Date(e+400,t,a,i,s,n,o),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,a,i,s,n,o),l}function Ge(e){var t,a;return e<100&&e>=0?(a=Array.prototype.slice.call(arguments),a[0]=e+400,t=new Date(Date.UTC.apply(null,a)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Et(e,t,a){var i=7+t-a,s=(7+Ge(e,0,i).getUTCDay()-t)%7;return-s+i-1}function Za(e,t,a,i,s){var n=(7+a-i)%7,o=Et(e,i,s),l=1+7*(t-1)+n+o,h,f;return l<=0?(h=e-1,f=Qe(h)+l):l>Qe(e)?(h=e+1,f=l-Qe(e)):(h=e,f=l),{year:h,dayOfYear:f}}function $e(e,t,a){var i=Et(e.year(),t,a),s=Math.floor((e.dayOfYear()-i-1)/7)+1,n,o;return s<1?(o=e.year()-1,n=s+_e(o,t,a)):s>_e(e.year(),t,a)?(n=s-_e(e.year(),t,a),o=e.year()+1):(o=e.year(),n=s),{week:n,year:o}}function _e(e,t,a){var i=Et(e,t,a),s=Et(e+1,t,a);return(Qe(e)-i+s)/7}M("w",["ww",2],"wo","week"),M("W",["WW",2],"Wo","isoWeek"),y("w",V,ke),y("ww",V,z),y("W",V,ke),y("WW",V,z),je(["w","ww","W","WW"],function(e,t,a,i){t[i.substr(0,1)]=D(e)});function yd(e){return $e(e,this._week.dow,this._week.doy).week}var Md={dow:0,doy:6};function Td(){return this._week.dow}function bd(){return this._week.doy}function Rd(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Ad(e){var t=$e(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}M("d",0,"do","day"),M("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),M("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),M("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),M("e",0,0,"weekday"),M("E",0,0,"isoWeekday"),y("d",V),y("e",V),y("E",V),y("dd",function(e,t){return t.weekdaysMinRegex(e)}),y("ddd",function(e,t){return t.weekdaysShortRegex(e)}),y("dddd",function(e,t){return t.weekdaysRegex(e)}),je(["dd","ddd","dddd"],function(e,t,a,i){var s=a._locale.weekdaysParse(e,i,a._strict);s!=null?t.d=s:A(a).invalidWeekday=e}),je(["d","e","E"],function(e,t,a,i){t[i]=D(e)});function Dd(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Nd(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function ta(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Id="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Xa="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),wd="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),vd=Fe,kd=Fe,Od=Fe;function xd(e,t){var a=ee(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?ta(a,this._week.dow):e?a[e.day()]:a}function Cd(e){return e===!0?ta(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ld(e){return e===!0?ta(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Vd(e,t,a){var i,s,n,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)n=ne([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(n,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(n,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(n,"").toLocaleLowerCase();return a?t==="dddd"?(s=H.call(this._weekdaysParse,o),s!==-1?s:null):t==="ddd"?(s=H.call(this._shortWeekdaysParse,o),s!==-1?s:null):(s=H.call(this._minWeekdaysParse,o),s!==-1?s:null):t==="dddd"?(s=H.call(this._weekdaysParse,o),s!==-1||(s=H.call(this._shortWeekdaysParse,o),s!==-1)?s:(s=H.call(this._minWeekdaysParse,o),s!==-1?s:null)):t==="ddd"?(s=H.call(this._shortWeekdaysParse,o),s!==-1||(s=H.call(this._weekdaysParse,o),s!==-1)?s:(s=H.call(this._minWeekdaysParse,o),s!==-1?s:null)):(s=H.call(this._minWeekdaysParse,o),s!==-1||(s=H.call(this._weekdaysParse,o),s!==-1)?s:(s=H.call(this._shortWeekdaysParse,o),s!==-1?s:null))}function Ud(e,t,a){var i,s,n;if(this._weekdaysParseExact)return Vd.call(this,e,t,a);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(s=ne([2e3,1]).day(i),a&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(n="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[i]=new RegExp(n.replace(".",""),"i")),a&&t==="dddd"&&this._fullWeekdaysParse[i].test(e))return i;if(a&&t==="ddd"&&this._shortWeekdaysParse[i].test(e))return i;if(a&&t==="dd"&&this._minWeekdaysParse[i].test(e))return i;if(!a&&this._weekdaysParse[i].test(e))return i}}function Yd(e){if(!this.isValid())return e!=null?this:NaN;var t=Be(this,"Day");return e!=null?(e=Dd(e,this.localeData()),this.add(e-t,"d")):t}function Pd(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 Wd(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Nd(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Hd(e){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||aa.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(v(this,"_weekdaysRegex")||(this._weekdaysRegex=vd),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Fd(e){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||aa.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(v(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=kd),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function jd(e){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||aa.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(v(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Od),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function aa(){function e(_,E){return E.length-_.length}var t=[],a=[],i=[],s=[],n,o,l,h,f;for(n=0;n<7;n++)o=ne([2e3,1]).day(n),l=he(this.weekdaysMin(o,"")),h=he(this.weekdaysShort(o,"")),f=he(this.weekdays(o,"")),t.push(l),a.push(h),i.push(f),s.push(l),s.push(h),s.push(f);t.sort(e),a.sort(e),i.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function ia(){return this.hours()%12||12}function Qd(){return this.hours()||24}M("H",["HH",2],0,"hour"),M("h",["hh",2],0,ia),M("k",["kk",2],0,Qd),M("hmm",0,0,function(){return""+ia.apply(this)+oe(this.minutes(),2)}),M("hmmss",0,0,function(){return""+ia.apply(this)+oe(this.minutes(),2)+oe(this.seconds(),2)}),M("Hmm",0,0,function(){return""+this.hours()+oe(this.minutes(),2)}),M("Hmmss",0,0,function(){return""+this.hours()+oe(this.minutes(),2)+oe(this.seconds(),2)});function ei(e,t){M(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}ei("a",!0),ei("A",!1);function ti(e,t){return t._meridiemParse}y("a",ti),y("A",ti),y("H",V,Zt),y("h",V,ke),y("k",V,ke),y("HH",V,z),y("hh",V,z),y("kk",V,z),y("hmm",ja),y("hmmss",Qa),y("Hmm",ja),y("Hmmss",Qa),L(["H","HH"],j),L(["k","kk"],function(e,t,a){var i=D(e);t[j]=i===24?0:i}),L(["a","A"],function(e,t,a){a._isPm=a._locale.isPM(e),a._meridiem=e}),L(["h","hh"],function(e,t,a){t[j]=D(e),A(a).bigHour=!0}),L("hmm",function(e,t,a){var i=e.length-2;t[j]=D(e.substr(0,i)),t[ae]=D(e.substr(i)),A(a).bigHour=!0}),L("hmmss",function(e,t,a){var i=e.length-4,s=e.length-2;t[j]=D(e.substr(0,i)),t[ae]=D(e.substr(i,2)),t[me]=D(e.substr(s)),A(a).bigHour=!0}),L("Hmm",function(e,t,a){var i=e.length-2;t[j]=D(e.substr(0,i)),t[ae]=D(e.substr(i))}),L("Hmmss",function(e,t,a){var i=e.length-4,s=e.length-2;t[j]=D(e.substr(0,i)),t[ae]=D(e.substr(i,2)),t[me]=D(e.substr(s))});function Bd(e){return(e+"").toLowerCase().charAt(0)==="p"}var Gd=/[ap]\.?m?\.?/i,$d=Oe("Hours",!0);function zd(e,t,a){return e>11?a?"pm":"PM":a?"am":"AM"}var ai={calendar:Vo,longDateFormat:Wo,invalidDate:Fo,ordinal:Qo,dayOfMonthOrdinalParse:Bo,relativeTime:$o,months:ld,monthsShort:$a,week:Md,weekdays:Id,weekdaysMin:wd,weekdaysShort:Xa,meridiemParse:Gd},Y={},ze={},qe;function qd(e,t){var a,i=Math.min(e.length,t.length);for(a=0;a<i;a+=1)if(e[a]!==t[a])return a;return i}function ii(e){return e&&e.toLowerCase().replace("_","-")}function Kd(e){for(var t=0,a,i,s,n;t<e.length;){for(n=ii(e[t]).split("-"),a=n.length,i=ii(e[t+1]),i=i?i.split("-"):null;a>0;){if(s=St(n.slice(0,a).join("-")),s)return s;if(i&&i.length>=a&&qd(n,i)>=a-1)break;a--}t++}return qe}function Jd(e){return!!(e&&e.match("^[^/\\\\]*$"))}function St(e){var t=null,a;if(Y[e]===void 0&&typeof module<"u"&&module&&module.exports&&Jd(e))try{t=qe._abbr,a=require,a("./locale/"+e),Me(t)}catch{Y[e]=null}return Y[e]}function Me(e,t){var a;return e&&($(t)?a=pe(e):a=sa(e,t),a?qe=a:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),qe._abbr}function sa(e,t){if(t!==null){var a,i=ai;if(t.abbr=e,Y[e]!=null)Ya("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=Y[e]._config;else if(t.parentLocale!=null)if(Y[t.parentLocale]!=null)i=Y[t.parentLocale]._config;else if(a=St(t.parentLocale),a!=null)i=a._config;else return ze[t.parentLocale]||(ze[t.parentLocale]=[]),ze[t.parentLocale].push({name:e,config:t}),null;return Y[e]=new Bt(Qt(i,t)),ze[e]&&ze[e].forEach(function(s){sa(s.name,s.config)}),Me(e),Y[e]}else return delete Y[e],null}function Zd(e,t){if(t!=null){var a,i,s=ai;Y[e]!=null&&Y[e].parentLocale!=null?Y[e].set(Qt(Y[e]._config,t)):(i=St(e),i!=null&&(s=i._config),t=Qt(s,t),i==null&&(t.abbr=e),a=new Bt(t),a.parentLocale=Y[e],Y[e]=a),Me(e)}else Y[e]!=null&&(Y[e].parentLocale!=null?(Y[e]=Y[e].parentLocale,e===Me()&&Me(e)):Y[e]!=null&&delete Y[e]);return Y[e]}function pe(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return qe;if(!ee(e)){if(t=St(e),t)return t;e=[e]}return Kd(e)}function Xd(){return Gt(Y)}function na(e){var t,a=e._a;return a&&A(e).overflow===-2&&(t=a[fe]<0||a[fe]>11?fe:a[de]<1||a[de]>ea(a[Q],a[fe])?de:a[j]<0||a[j]>24||a[j]===24&&(a[ae]!==0||a[me]!==0||a[Ae]!==0)?j:a[ae]<0||a[ae]>59?ae:a[me]<0||a[me]>59?me:a[Ae]<0||a[Ae]>999?Ae:-1,A(e)._overflowDayOfYear&&(t<Q||t>de)&&(t=de),A(e)._overflowWeeks&&t===-1&&(t=id),A(e)._overflowWeekday&&t===-1&&(t=sd),A(e).overflow=t),e}var el=/^\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)?)?$/,tl=/^\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)?)?$/,al=/Z|[+-]\d\d(?::?\d\d)?/,yt=[["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]],ra=[["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/]],il=/^\/?Date\((-?\d+)/i,sl=/^(?:(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}))$/,nl={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function si(e){var t,a,i=e._i,s=el.exec(i)||tl.exec(i),n,o,l,h,f=yt.length,_=ra.length;if(s){for(A(e).iso=!0,t=0,a=f;t<a;t++)if(yt[t][1].exec(s[1])){o=yt[t][0],n=yt[t][2]!==!1;break}if(o==null){e._isValid=!1;return}if(s[3]){for(t=0,a=_;t<a;t++)if(ra[t][1].exec(s[3])){l=(s[2]||" ")+ra[t][0];break}if(l==null){e._isValid=!1;return}}if(!n&&l!=null){e._isValid=!1;return}if(s[4])if(al.exec(s[4]))h="Z";else{e._isValid=!1;return}e._f=o+(l||"")+(h||""),da(e)}else e._isValid=!1}function rl(e,t,a,i,s,n){var o=[ol(e),$a.indexOf(t),parseInt(a,10),parseInt(i,10),parseInt(s,10)];return n&&o.push(parseInt(n,10)),o}function ol(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function dl(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function ll(e,t,a){if(e){var i=Xa.indexOf(e),s=new Date(t[0],t[1],t[2]).getDay();if(i!==s)return A(a).weekdayMismatch=!0,a._isValid=!1,!1}return!0}function ul(e,t,a){if(e)return nl[e];if(t)return 0;var i=parseInt(a,10),s=i%100,n=(i-s)/100;return n*60+s}function ni(e){var t=sl.exec(dl(e._i)),a;if(t){if(a=rl(t[4],t[3],t[2],t[5],t[6],t[7]),!ll(t[1],a,e))return;e._a=a,e._tzm=ul(t[8],t[9],t[10]),e._d=Ge.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),A(e).rfc2822=!0}else e._isValid=!1}function cl(e){var t=il.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(si(e),e._isValid===!1)delete e._isValid;else return;if(ni(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:S.createFromInputFallback(e)}S.createFromInputFallback=J("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 xe(e,t,a){return e??t??a}function hl(e){var t=new Date(S.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function oa(e){var t,a,i=[],s,n,o;if(!e._d){for(s=hl(e),e._w&&e._a[de]==null&&e._a[fe]==null&&fl(e),e._dayOfYear!=null&&(o=xe(e._a[Q],s[Q]),(e._dayOfYear>Qe(o)||e._dayOfYear===0)&&(A(e)._overflowDayOfYear=!0),a=Ge(o,0,e._dayOfYear),e._a[fe]=a.getUTCMonth(),e._a[de]=a.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=i[t]=s[t];for(;t<7;t++)e._a[t]=i[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[j]===24&&e._a[ae]===0&&e._a[me]===0&&e._a[Ae]===0&&(e._nextDay=!0,e._a[j]=0),e._d=(e._useUTC?Ge:Sd).apply(null,i),n=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[j]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==n&&(A(e).weekdayMismatch=!0)}}function fl(e){var t,a,i,s,n,o,l,h,f;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(n=1,o=4,a=xe(t.GG,e._a[Q],$e(U(),1,4).year),i=xe(t.W,1),s=xe(t.E,1),(s<1||s>7)&&(h=!0)):(n=e._locale._week.dow,o=e._locale._week.doy,f=$e(U(),n,o),a=xe(t.gg,e._a[Q],f.year),i=xe(t.w,f.week),t.d!=null?(s=t.d,(s<0||s>6)&&(h=!0)):t.e!=null?(s=t.e+n,(t.e<0||t.e>6)&&(h=!0)):s=n),i<1||i>_e(a,n,o)?A(e)._overflowWeeks=!0:h!=null?A(e)._overflowWeekday=!0:(l=Za(a,i,s,n,o),e._a[Q]=l.year,e._dayOfYear=l.dayOfYear)}S.ISO_8601=function(){},S.RFC_2822=function(){};function da(e){if(e._f===S.ISO_8601){si(e);return}if(e._f===S.RFC_2822){ni(e);return}e._a=[],A(e).empty=!0;var t=""+e._i,a,i,s,n,o,l=t.length,h=0,f,_;for(s=Pa(e._f,e._locale).match($t)||[],_=s.length,a=0;a<_;a++)n=s[a],i=(t.match(ed(n,e))||[])[0],i&&(o=t.substr(0,t.indexOf(i)),o.length>0&&A(e).unusedInput.push(o),t=t.slice(t.indexOf(i)+i.length),h+=i.length),we[n]?(i?A(e).empty=!1:A(e).unusedTokens.push(n),ad(n,i,e)):e._strict&&!i&&A(e).unusedTokens.push(n);A(e).charsLeftOver=l-h,t.length>0&&A(e).unusedInput.push(t),e._a[j]<=12&&A(e).bigHour===!0&&e._a[j]>0&&(A(e).bigHour=void 0),A(e).parsedDateParts=e._a.slice(0),A(e).meridiem=e._meridiem,e._a[j]=ml(e._locale,e._a[j],e._meridiem),f=A(e).era,f!==null&&(e._a[Q]=e._locale.erasConvertYear(f,e._a[Q])),oa(e),na(e)}function ml(e,t,a){var i;return a==null?t:e.meridiemHour!=null?e.meridiemHour(t,a):(e.isPM!=null&&(i=e.isPM(a),i&&t<12&&(t+=12),!i&&t===12&&(t=0)),t)}function _l(e){var t,a,i,s,n,o,l=!1,h=e._f.length;if(h===0){A(e).invalidFormat=!0,e._d=new Date(NaN);return}for(s=0;s<h;s++)n=0,o=!1,t=jt({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[s],da(t),Ht(t)&&(o=!0),n+=A(t).charsLeftOver,n+=A(t).unusedTokens.length*10,A(t).score=n,l?n<i&&(i=n,a=t):(i==null||n<i||o)&&(i=n,a=t,o&&(l=!0));ye(e,a||t)}function pl(e){if(!e._d){var t=qt(e._i),a=t.day===void 0?t.date:t.day;e._a=Ca([t.year,t.month,a,t.hour,t.minute,t.second,t.millisecond],function(i){return i&&parseInt(i,10)}),oa(e)}}function gl(e){var t=new He(na(ri(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function ri(e){var t=e._i,a=e._f;return e._locale=e._locale||pe(e._l),t===null||a===void 0&&t===""?dt({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),te(t)?new He(na(t)):(We(t)?e._d=t:ee(a)?_l(e):a?da(e):El(e),Ht(e)||(e._d=null),e))}function El(e){var t=e._i;$(t)?e._d=new Date(S.now()):We(t)?e._d=new Date(t.valueOf()):typeof t=="string"?cl(e):ee(t)?(e._a=Ca(t.slice(0),function(a){return parseInt(a,10)}),oa(e)):Re(t)?pl(e):ce(t)?e._d=new Date(t):S.createFromInputFallback(e)}function oi(e,t,a,i,s){var n={};return(t===!0||t===!1)&&(i=t,t=void 0),(a===!0||a===!1)&&(i=a,a=void 0),(Re(e)&&Pt(e)||ee(e)&&e.length===0)&&(e=void 0),n._isAMomentObject=!0,n._useUTC=n._isUTC=s,n._l=a,n._i=e,n._f=t,n._strict=i,gl(n)}function U(e,t,a,i){return oi(e,t,a,i,!1)}var Sl=J("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=U.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:dt()}),yl=J("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=U.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:dt()});function di(e,t){var a,i;if(t.length===1&&ee(t[0])&&(t=t[0]),!t.length)return U();for(a=t[0],i=1;i<t.length;++i)(!t[i].isValid()||t[i][e](a))&&(a=t[i]);return a}function Ml(){var e=[].slice.call(arguments,0);return di("isBefore",e)}function Tl(){var e=[].slice.call(arguments,0);return di("isAfter",e)}var bl=function(){return Date.now?Date.now():+new Date},Ke=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Rl(e){var t,a=!1,i,s=Ke.length;for(t in e)if(v(e,t)&&!(H.call(Ke,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(i=0;i<s;++i)if(e[Ke[i]]){if(a)return!1;parseFloat(e[Ke[i]])!==D(e[Ke[i]])&&(a=!0)}return!0}function Al(){return this._isValid}function Dl(){return ie(NaN)}function Mt(e){var t=qt(e),a=t.year||0,i=t.quarter||0,s=t.month||0,n=t.week||t.isoWeek||0,o=t.day||0,l=t.hour||0,h=t.minute||0,f=t.second||0,_=t.millisecond||0;this._isValid=Rl(t),this._milliseconds=+_+f*1e3+h*6e4+l*1e3*60*60,this._days=+o+n*7,this._months=+s+i*3+a*12,this._data={},this._locale=pe(),this._bubble()}function Tt(e){return e instanceof Mt}function la(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Nl(e,t,a){var i=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),n=0,o;for(o=0;o<i;o++)D(e[o])!==D(t[o])&&n++;return n+s}function li(e,t){M(e,0,0,function(){var a=this.utcOffset(),i="+";return a<0&&(a=-a,i="-"),i+oe(~~(a/60),2)+t+oe(~~a%60,2)})}li("Z",":"),li("ZZ",""),y("Z",_t),y("ZZ",_t),L(["Z","ZZ"],function(e,t,a){a._useUTC=!0,a._tzm=ua(_t,e)});var Il=/([\+\-]|\d\d)/gi;function ua(e,t){var a=(t||"").match(e),i,s,n;return a===null?null:(i=a[a.length-1]||[],s=(i+"").match(Il)||["-",0,0],n=+(s[1]*60)+D(s[2]),n===0?0:s[0]==="+"?n:-n)}function ca(e,t){var a,i;return t._isUTC?(a=t.clone(),i=(te(e)||We(e)?e.valueOf():U(e).valueOf())-a.valueOf(),a._d.setTime(a._d.valueOf()+i),S.updateOffset(a,!1),a):U(e).local()}function ha(e){return-Math.round(e._d.getTimezoneOffset())}S.updateOffset=function(){};function wl(e,t,a){var i=this._offset||0,s;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=ua(_t,e),e===null)return this}else Math.abs(e)<16&&!a&&(e=e*60);return!this._isUTC&&t&&(s=ha(this)),this._offset=e,this._isUTC=!0,s!=null&&this.add(s,"m"),i!==e&&(!t||this._changeInProgress?fi(this,ie(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,S.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?i:ha(this)}function vl(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function kl(e){return this.utcOffset(0,e)}function Ol(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(ha(this),"m")),this}function xl(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=ua(Zo,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Cl(e){return this.isValid()?(e=e?U(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Ll(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Vl(){if(!$(this._isDSTShifted))return this._isDSTShifted;var e={},t;return jt(e,this),e=ri(e),e._a?(t=e._isUTC?ne(e._a):U(e._a),this._isDSTShifted=this.isValid()&&Nl(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Ul(){return this.isValid()?!this._isUTC:!1}function Yl(){return this.isValid()?this._isUTC:!1}function ui(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Pl=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Wl=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ie(e,t){var a=e,i=null,s,n,o;return Tt(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:ce(e)||!isNaN(+e)?(a={},t?a[t]=+e:a.milliseconds=+e):(i=Pl.exec(e))?(s=i[1]==="-"?-1:1,a={y:0,d:D(i[de])*s,h:D(i[j])*s,m:D(i[ae])*s,s:D(i[me])*s,ms:D(la(i[Ae]*1e3))*s}):(i=Wl.exec(e))?(s=i[1]==="-"?-1:1,a={y:De(i[2],s),M:De(i[3],s),w:De(i[4],s),d:De(i[5],s),h:De(i[6],s),m:De(i[7],s),s:De(i[8],s)}):a==null?a={}:typeof a=="object"&&("from"in a||"to"in a)&&(o=Hl(U(a.from),U(a.to)),a={},a.ms=o.milliseconds,a.M=o.months),n=new Mt(a),Tt(e)&&v(e,"_locale")&&(n._locale=e._locale),Tt(e)&&v(e,"_isValid")&&(n._isValid=e._isValid),n}ie.fn=Mt.prototype,ie.invalid=Dl;function De(e,t){var a=e&&parseFloat(e.replace(",","."));return(isNaN(a)?0:a)*t}function ci(e,t){var a={};return a.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(a.months,"M").isAfter(t)&&--a.months,a.milliseconds=+t-+e.clone().add(a.months,"M"),a}function Hl(e,t){var a;return e.isValid()&&t.isValid()?(t=ca(t,e),e.isBefore(t)?a=ci(e,t):(a=ci(t,e),a.milliseconds=-a.milliseconds,a.months=-a.months),a):{milliseconds:0,months:0}}function hi(e,t){return function(a,i){var s,n;return i!==null&&!isNaN(+i)&&(Ya(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."),n=a,a=i,i=n),s=ie(a,i),fi(this,s,e),this}}function fi(e,t,a,i){var s=t._milliseconds,n=la(t._days),o=la(t._months);e.isValid()&&(i=i??!0,o&&qa(e,Be(e,"Month")+o*a),n&&Ga(e,"Date",Be(e,"Date")+n*a),s&&e._d.setTime(e._d.valueOf()+s*a),i&&S.updateOffset(e,n||o))}var Fl=hi(1,"add"),jl=hi(-1,"subtract");function mi(e){return typeof e=="string"||e instanceof String}function Ql(e){return te(e)||We(e)||mi(e)||ce(e)||Gl(e)||Bl(e)||e===null||e===void 0}function Bl(e){var t=Re(e)&&!Pt(e),a=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s,n,o=i.length;for(s=0;s<o;s+=1)n=i[s],a=a||v(e,n);return t&&a}function Gl(e){var t=ee(e),a=!1;return t&&(a=e.filter(function(i){return!ce(i)&&mi(e)}).length===0),t&&a}function $l(e){var t=Re(e)&&!Pt(e),a=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],s,n;for(s=0;s<i.length;s+=1)n=i[s],a=a||v(e,n);return t&&a}function zl(e,t){var a=e.diff(t,"days",!0);return a<-6?"sameElse":a<-1?"lastWeek":a<0?"lastDay":a<1?"sameDay":a<2?"nextDay":a<7?"nextWeek":"sameElse"}function ql(e,t){arguments.length===1&&(arguments[0]?Ql(arguments[0])?(e=arguments[0],t=void 0):$l(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var a=e||U(),i=ca(a,this).startOf("day"),s=S.calendarFormat(this,i)||"sameElse",n=t&&(re(t[s])?t[s].call(this,a):t[s]);return this.format(n||this.localeData().calendar(s,this,U(a)))}function Kl(){return new He(this)}function Jl(e,t){var a=te(e)?e:U(e);return this.isValid()&&a.isValid()?(t=Z(t)||"millisecond",t==="millisecond"?this.valueOf()>a.valueOf():a.valueOf()<this.clone().startOf(t).valueOf()):!1}function Zl(e,t){var a=te(e)?e:U(e);return this.isValid()&&a.isValid()?(t=Z(t)||"millisecond",t==="millisecond"?this.valueOf()<a.valueOf():this.clone().endOf(t).valueOf()<a.valueOf()):!1}function Xl(e,t,a,i){var s=te(e)?e:U(e),n=te(t)?t:U(t);return this.isValid()&&s.isValid()&&n.isValid()?(i=i||"()",(i[0]==="("?this.isAfter(s,a):!this.isBefore(s,a))&&(i[1]===")"?this.isBefore(n,a):!this.isAfter(n,a))):!1}function eu(e,t){var a=te(e)?e:U(e),i;return this.isValid()&&a.isValid()?(t=Z(t)||"millisecond",t==="millisecond"?this.valueOf()===a.valueOf():(i=a.valueOf(),this.clone().startOf(t).valueOf()<=i&&i<=this.clone().endOf(t).valueOf())):!1}function tu(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function au(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function iu(e,t,a){var i,s,n;if(!this.isValid())return NaN;if(i=ca(e,this),!i.isValid())return NaN;switch(s=(i.utcOffset()-this.utcOffset())*6e4,t=Z(t),t){case"year":n=bt(this,i)/12;break;case"month":n=bt(this,i);break;case"quarter":n=bt(this,i)/3;break;case"second":n=(this-i)/1e3;break;case"minute":n=(this-i)/6e4;break;case"hour":n=(this-i)/36e5;break;case"day":n=(this-i-s)/864e5;break;case"week":n=(this-i-s)/6048e5;break;default:n=this-i}return a?n:X(n)}function bt(e,t){if(e.date()<t.date())return-bt(t,e);var a=(t.year()-e.year())*12+(t.month()-e.month()),i=e.clone().add(a,"months"),s,n;return t-i<0?(s=e.clone().add(a-1,"months"),n=(t-i)/(i-s)):(s=e.clone().add(a+1,"months"),n=(t-i)/(s-i)),-(a+n)||0}S.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",S.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function su(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function nu(e){if(!this.isValid())return null;var t=e!==!0,a=t?this.clone().utc():this;return a.year()<0||a.year()>9999?ut(a,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):re(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",ut(a,"Z")):ut(a,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ru(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",a,i,s,n;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),a="["+e+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s="-MM-DD[T]HH:mm:ss.SSS",n=t+'[")]',this.format(a+i+s+n)}function ou(e){e||(e=this.isUtc()?S.defaultFormatUtc:S.defaultFormat);var t=ut(this,e);return this.localeData().postformat(t)}function du(e,t){return this.isValid()&&(te(e)&&e.isValid()||U(e).isValid())?ie({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function lu(e){return this.from(U(),e)}function uu(e,t){return this.isValid()&&(te(e)&&e.isValid()||U(e).isValid())?ie({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function cu(e){return this.to(U(),e)}function _i(e){var t;return e===void 0?this._locale._abbr:(t=pe(e),t!=null&&(this._locale=t),this)}var pi=J("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 gi(){return this._locale}var Rt=1e3,Ce=60*Rt,At=60*Ce,Ei=(365*400+97)*24*At;function Le(e,t){return(e%t+t)%t}function Si(e,t,a){return e<100&&e>=0?new Date(e+400,t,a)-Ei:new Date(e,t,a).valueOf()}function yi(e,t,a){return e<100&&e>=0?Date.UTC(e+400,t,a)-Ei:Date.UTC(e,t,a)}function hu(e){var t,a;if(e=Z(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(a=this._isUTC?yi:Si,e){case"year":t=a(this.year(),0,1);break;case"quarter":t=a(this.year(),this.month()-this.month()%3,1);break;case"month":t=a(this.year(),this.month(),1);break;case"week":t=a(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=a(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=a(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Le(t+(this._isUTC?0:this.utcOffset()*Ce),At);break;case"minute":t=this._d.valueOf(),t-=Le(t,Ce);break;case"second":t=this._d.valueOf(),t-=Le(t,Rt);break}return this._d.setTime(t),S.updateOffset(this,!0),this}function fu(e){var t,a;if(e=Z(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(a=this._isUTC?yi:Si,e){case"year":t=a(this.year()+1,0,1)-1;break;case"quarter":t=a(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=a(this.year(),this.month()+1,1)-1;break;case"week":t=a(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=a(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=a(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=At-Le(t+(this._isUTC?0:this.utcOffset()*Ce),At)-1;break;case"minute":t=this._d.valueOf(),t+=Ce-Le(t,Ce)-1;break;case"second":t=this._d.valueOf(),t+=Rt-Le(t,Rt)-1;break}return this._d.setTime(t),S.updateOffset(this,!0),this}function mu(){return this._d.valueOf()-(this._offset||0)*6e4}function _u(){return Math.floor(this.valueOf()/1e3)}function pu(){return new Date(this.valueOf())}function gu(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Eu(){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 Su(){return this.isValid()?this.toISOString():null}function yu(){return Ht(this)}function Mu(){return ye({},A(this))}function Tu(){return A(this).overflow}function bu(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}M("N",0,0,"eraAbbr"),M("NN",0,0,"eraAbbr"),M("NNN",0,0,"eraAbbr"),M("NNNN",0,0,"eraName"),M("NNNNN",0,0,"eraNarrow"),M("y",["y",1],"yo","eraYear"),M("y",["yy",2],0,"eraYear"),M("y",["yyy",3],0,"eraYear"),M("y",["yyyy",4],0,"eraYear"),y("N",fa),y("NN",fa),y("NNN",fa),y("NNNN",Cu),y("NNNNN",Lu),L(["N","NN","NNN","NNNN","NNNNN"],function(e,t,a,i){var s=a._locale.erasParse(e,i,a._strict);s?A(a).era=s:A(a).invalidEra=e}),y("y",ve),y("yy",ve),y("yyy",ve),y("yyyy",ve),y("yo",Vu),L(["y","yy","yyy","yyyy"],Q),L(["yo"],function(e,t,a,i){var s;a._locale._eraYearOrdinalRegex&&(s=e.match(a._locale._eraYearOrdinalRegex)),a._locale.eraYearOrdinalParse?t[Q]=a._locale.eraYearOrdinalParse(e,s):t[Q]=parseInt(e,10)});function Ru(e,t){var a,i,s,n=this._eras||pe("en")._eras;for(a=0,i=n.length;a<i;++a)switch(typeof n[a].since==="string"&&(s=S(n[a].since).startOf("day"),n[a].since=s.valueOf()),typeof n[a].until){case"undefined":n[a].until=1/0;break;case"string":s=S(n[a].until).startOf("day").valueOf(),n[a].until=s.valueOf();break}return n}function Au(e,t,a){var i,s,n=this.eras(),o,l,h;for(e=e.toUpperCase(),i=0,s=n.length;i<s;++i)if(o=n[i].name.toUpperCase(),l=n[i].abbr.toUpperCase(),h=n[i].narrow.toUpperCase(),a)switch(t){case"N":case"NN":case"NNN":if(l===e)return n[i];break;case"NNNN":if(o===e)return n[i];break;case"NNNNN":if(h===e)return n[i];break}else if([o,l,h].indexOf(e)>=0)return n[i]}function Du(e,t){var a=e.since<=e.until?1:-1;return t===void 0?S(e.since).year():S(e.since).year()+(t-e.offset)*a}function Nu(){var e,t,a,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(a=this.clone().startOf("day").valueOf(),i[e].since<=a&&a<=i[e].until||i[e].until<=a&&a<=i[e].since)return i[e].name;return""}function Iu(){var e,t,a,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(a=this.clone().startOf("day").valueOf(),i[e].since<=a&&a<=i[e].until||i[e].until<=a&&a<=i[e].since)return i[e].narrow;return""}function wu(){var e,t,a,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(a=this.clone().startOf("day").valueOf(),i[e].since<=a&&a<=i[e].until||i[e].until<=a&&a<=i[e].since)return i[e].abbr;return""}function vu(){var e,t,a,i,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(a=s[e].since<=s[e].until?1:-1,i=this.clone().startOf("day").valueOf(),s[e].since<=i&&i<=s[e].until||s[e].until<=i&&i<=s[e].since)return(this.year()-S(s[e].since).year())*a+s[e].offset;return this.year()}function ku(e){return v(this,"_erasNameRegex")||ma.call(this),e?this._erasNameRegex:this._erasRegex}function Ou(e){return v(this,"_erasAbbrRegex")||ma.call(this),e?this._erasAbbrRegex:this._erasRegex}function xu(e){return v(this,"_erasNarrowRegex")||ma.call(this),e?this._erasNarrowRegex:this._erasRegex}function fa(e,t){return t.erasAbbrRegex(e)}function Cu(e,t){return t.erasNameRegex(e)}function Lu(e,t){return t.erasNarrowRegex(e)}function Vu(e,t){return t._eraYearOrdinalRegex||ve}function ma(){var e=[],t=[],a=[],i=[],s,n,o,l,h,f=this.eras();for(s=0,n=f.length;s<n;++s)o=he(f[s].name),l=he(f[s].abbr),h=he(f[s].narrow),t.push(o),e.push(l),a.push(h),i.push(o),i.push(l),i.push(h);this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i")}M(0,["gg",2],0,function(){return this.weekYear()%100}),M(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Dt(e,t){M(0,[e,e.length],0,t)}Dt("gggg","weekYear"),Dt("ggggg","weekYear"),Dt("GGGG","isoWeekYear"),Dt("GGGGG","isoWeekYear"),y("G",mt),y("g",mt),y("GG",V,z),y("gg",V,z),y("GGGG",Jt,Kt),y("gggg",Jt,Kt),y("GGGGG",ft,ct),y("ggggg",ft,ct),je(["gggg","ggggg","GGGG","GGGGG"],function(e,t,a,i){t[i.substr(0,2)]=D(e)}),je(["gg","GG"],function(e,t,a,i){t[i]=S.parseTwoDigitYear(e)});function Uu(e){return Mi.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Yu(e){return Mi.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Pu(){return _e(this.year(),1,4)}function Wu(){return _e(this.isoWeekYear(),1,4)}function Hu(){var e=this.localeData()._week;return _e(this.year(),e.dow,e.doy)}function Fu(){var e=this.localeData()._week;return _e(this.weekYear(),e.dow,e.doy)}function Mi(e,t,a,i,s){var n;return e==null?$e(this,i,s).year:(n=_e(e,i,s),t>n&&(t=n),ju.call(this,e,t,a,i,s))}function ju(e,t,a,i,s){var n=Za(e,t,a,i,s),o=Ge(n.year,0,n.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}M("Q",0,"Qo","quarter"),y("Q",Ha),L("Q",function(e,t){t[fe]=(D(e)-1)*3});function Qu(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}M("D",["DD",2],"Do","date"),y("D",V,ke),y("DD",V,z),y("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),L(["D","DD"],de),L("Do",function(e,t){t[de]=D(e.match(V)[0])});var Ti=Oe("Date",!0);M("DDD",["DDDD",3],"DDDo","dayOfYear"),y("DDD",ht),y("DDDD",Fa),L(["DDD","DDDD"],function(e,t,a){a._dayOfYear=D(e)});function Bu(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("m",["mm",2],0,"minute"),y("m",V,Zt),y("mm",V,z),L(["m","mm"],ae);var Gu=Oe("Minutes",!1);M("s",["ss",2],0,"second"),y("s",V,Zt),y("ss",V,z),L(["s","ss"],me);var $u=Oe("Seconds",!1);M("S",0,0,function(){return~~(this.millisecond()/100)}),M(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),M(0,["SSS",3],0,"millisecond"),M(0,["SSSS",4],0,function(){return this.millisecond()*10}),M(0,["SSSSS",5],0,function(){return this.millisecond()*100}),M(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),M(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),M(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),M(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),y("S",ht,Ha),y("SS",ht,z),y("SSS",ht,Fa);var Te,bi;for(Te="SSSS";Te.length<=9;Te+="S")y(Te,ve);function zu(e,t){t[Ae]=D(("0."+e)*1e3)}for(Te="S";Te.length<=9;Te+="S")L(Te,zu);bi=Oe("Milliseconds",!1),M("z",0,0,"zoneAbbr"),M("zz",0,0,"zoneName");function qu(){return this._isUTC?"UTC":""}function Ku(){return this._isUTC?"Coordinated Universal Time":""}var p=He.prototype;p.add=Fl,p.calendar=ql,p.clone=Kl,p.diff=iu,p.endOf=fu,p.format=ou,p.from=du,p.fromNow=lu,p.to=uu,p.toNow=cu,p.get=rd,p.invalidAt=Tu,p.isAfter=Jl,p.isBefore=Zl,p.isBetween=Xl,p.isSame=eu,p.isSameOrAfter=tu,p.isSameOrBefore=au,p.isValid=yu,p.lang=pi,p.locale=_i,p.localeData=gi,p.max=yl,p.min=Sl,p.parsingFlags=Mu,p.set=od,p.startOf=hu,p.subtract=jl,p.toArray=gu,p.toObject=Eu,p.toDate=pu,p.toISOString=nu,p.inspect=ru,typeof Symbol<"u"&&Symbol.for!=null&&(p[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),p.toJSON=Su,p.toString=su,p.unix=_u,p.valueOf=mu,p.creationData=bu,p.eraName=Nu,p.eraNarrow=Iu,p.eraAbbr=wu,p.eraYear=vu,p.year=Ba,p.isLeapYear=nd,p.weekYear=Uu,p.isoWeekYear=Yu,p.quarter=p.quarters=Qu,p.month=Ka,p.daysInMonth=pd,p.week=p.weeks=Rd,p.isoWeek=p.isoWeeks=Ad,p.weeksInYear=Hu,p.weeksInWeekYear=Fu,p.isoWeeksInYear=Pu,p.isoWeeksInISOWeekYear=Wu,p.date=Ti,p.day=p.days=Yd,p.weekday=Pd,p.isoWeekday=Wd,p.dayOfYear=Bu,p.hour=p.hours=$d,p.minute=p.minutes=Gu,p.second=p.seconds=$u,p.millisecond=p.milliseconds=bi,p.utcOffset=wl,p.utc=kl,p.local=Ol,p.parseZone=xl,p.hasAlignedHourOffset=Cl,p.isDST=Ll,p.isLocal=Ul,p.isUtcOffset=Yl,p.isUtc=ui,p.isUTC=ui,p.zoneAbbr=qu,p.zoneName=Ku,p.dates=J("dates accessor is deprecated. Use date instead.",Ti),p.months=J("months accessor is deprecated. Use month instead",Ka),p.years=J("years accessor is deprecated. Use year instead",Ba),p.zone=J("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",vl),p.isDSTShifted=J("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Vl);function Ju(e){return U(e*1e3)}function Zu(){return U.apply(null,arguments).parseZone()}function Ri(e){return e}var k=Bt.prototype;k.calendar=Uo,k.longDateFormat=Ho,k.invalidDate=jo,k.ordinal=Go,k.preparse=Ri,k.postformat=Ri,k.relativeTime=zo,k.pastFuture=qo,k.set=Lo,k.eras=Ru,k.erasParse=Au,k.erasConvertYear=Du,k.erasAbbrRegex=Ou,k.erasNameRegex=ku,k.erasNarrowRegex=xu,k.months=hd,k.monthsShort=fd,k.monthsParse=_d,k.monthsRegex=Ed,k.monthsShortRegex=gd,k.week=yd,k.firstDayOfYear=bd,k.firstDayOfWeek=Td,k.weekdays=xd,k.weekdaysMin=Ld,k.weekdaysShort=Cd,k.weekdaysParse=Ud,k.weekdaysRegex=Hd,k.weekdaysShortRegex=Fd,k.weekdaysMinRegex=jd,k.isPM=Bd,k.meridiem=zd;function Nt(e,t,a,i){var s=pe(),n=ne().set(i,t);return s[a](n,e)}function Ai(e,t,a){if(ce(e)&&(t=e,e=void 0),e=e||"",t!=null)return Nt(e,t,a,"month");var i,s=[];for(i=0;i<12;i++)s[i]=Nt(e,i,a,"month");return s}function _a(e,t,a,i){typeof e=="boolean"?(ce(t)&&(a=t,t=void 0),t=t||""):(t=e,a=t,e=!1,ce(t)&&(a=t,t=void 0),t=t||"");var s=pe(),n=e?s._week.dow:0,o,l=[];if(a!=null)return Nt(t,(a+n)%7,i,"day");for(o=0;o<7;o++)l[o]=Nt(t,(o+n)%7,i,"day");return l}function Xu(e,t){return Ai(e,t,"months")}function ec(e,t){return Ai(e,t,"monthsShort")}function tc(e,t,a){return _a(e,t,a,"weekdays")}function ac(e,t,a){return _a(e,t,a,"weekdaysShort")}function ic(e,t,a){return _a(e,t,a,"weekdaysMin")}Me("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,a=D(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+a}}),S.lang=J("moment.lang is deprecated. Use moment.locale instead.",Me),S.langData=J("moment.langData is deprecated. Use moment.localeData instead.",pe);var ge=Math.abs;function sc(){var e=this._data;return this._milliseconds=ge(this._milliseconds),this._days=ge(this._days),this._months=ge(this._months),e.milliseconds=ge(e.milliseconds),e.seconds=ge(e.seconds),e.minutes=ge(e.minutes),e.hours=ge(e.hours),e.months=ge(e.months),e.years=ge(e.years),this}function Di(e,t,a,i){var s=ie(t,a);return e._milliseconds+=i*s._milliseconds,e._days+=i*s._days,e._months+=i*s._months,e._bubble()}function nc(e,t){return Di(this,e,t,1)}function rc(e,t){return Di(this,e,t,-1)}function Ni(e){return e<0?Math.floor(e):Math.ceil(e)}function oc(){var e=this._milliseconds,t=this._days,a=this._months,i=this._data,s,n,o,l,h;return e>=0&&t>=0&&a>=0||e<=0&&t<=0&&a<=0||(e+=Ni(pa(a)+t)*864e5,t=0,a=0),i.milliseconds=e%1e3,s=X(e/1e3),i.seconds=s%60,n=X(s/60),i.minutes=n%60,o=X(n/60),i.hours=o%24,t+=X(o/24),h=X(Ii(t)),a+=h,t-=Ni(pa(h)),l=X(a/12),a%=12,i.days=t,i.months=a,i.years=l,this}function Ii(e){return e*4800/146097}function pa(e){return e*146097/4800}function dc(e){if(!this.isValid())return NaN;var t,a,i=this._milliseconds;if(e=Z(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+i/864e5,a=this._months+Ii(t),e){case"month":return a;case"quarter":return a/3;case"year":return a/12}else switch(t=this._days+Math.round(pa(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return t*24+i/36e5;case"minute":return t*1440+i/6e4;case"second":return t*86400+i/1e3;case"millisecond":return Math.floor(t*864e5)+i;default:throw new Error("Unknown unit "+e)}}function Ee(e){return function(){return this.as(e)}}var wi=Ee("ms"),lc=Ee("s"),uc=Ee("m"),cc=Ee("h"),hc=Ee("d"),fc=Ee("w"),mc=Ee("M"),_c=Ee("Q"),pc=Ee("y"),gc=wi;function Ec(){return ie(this)}function Sc(e){return e=Z(e),this.isValid()?this[e+"s"]():NaN}function Ne(e){return function(){return this.isValid()?this._data[e]:NaN}}var yc=Ne("milliseconds"),Mc=Ne("seconds"),Tc=Ne("minutes"),bc=Ne("hours"),Rc=Ne("days"),Ac=Ne("months"),Dc=Ne("years");function Nc(){return X(this.days()/7)}var Se=Math.round,Ve={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Ic(e,t,a,i,s){return s.relativeTime(t||1,!!a,e,i)}function wc(e,t,a,i){var s=ie(e).abs(),n=Se(s.as("s")),o=Se(s.as("m")),l=Se(s.as("h")),h=Se(s.as("d")),f=Se(s.as("M")),_=Se(s.as("w")),E=Se(s.as("y")),m=n<=a.ss&&["s",n]||n<a.s&&["ss",n]||o<=1&&["m"]||o<a.m&&["mm",o]||l<=1&&["h"]||l<a.h&&["hh",l]||h<=1&&["d"]||h<a.d&&["dd",h];return a.w!=null&&(m=m||_<=1&&["w"]||_<a.w&&["ww",_]),m=m||f<=1&&["M"]||f<a.M&&["MM",f]||E<=1&&["y"]||["yy",E],m[2]=t,m[3]=+e>0,m[4]=i,Ic.apply(null,m)}function vc(e){return e===void 0?Se:typeof e=="function"?(Se=e,!0):!1}function kc(e,t){return Ve[e]===void 0?!1:t===void 0?Ve[e]:(Ve[e]=t,e==="s"&&(Ve.ss=t-1),!0)}function Oc(e,t){if(!this.isValid())return this.localeData().invalidDate();var a=!1,i=Ve,s,n;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(a=e),typeof t=="object"&&(i=Object.assign({},Ve,t),t.s!=null&&t.ss==null&&(i.ss=t.s-1)),s=this.localeData(),n=wc(this,!a,i,s),a&&(n=s.pastFuture(+this,n)),s.postformat(n)}var ga=Math.abs;function Ue(e){return(e>0)-(e<0)||+e}function It(){if(!this.isValid())return this.localeData().invalidDate();var e=ga(this._milliseconds)/1e3,t=ga(this._days),a=ga(this._months),i,s,n,o,l=this.asSeconds(),h,f,_,E;return l?(i=X(e/60),s=X(i/60),e%=60,i%=60,n=X(a/12),a%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",h=l<0?"-":"",f=Ue(this._months)!==Ue(l)?"-":"",_=Ue(this._days)!==Ue(l)?"-":"",E=Ue(this._milliseconds)!==Ue(l)?"-":"",h+"P"+(n?f+n+"Y":"")+(a?f+a+"M":"")+(t?_+t+"D":"")+(s||i||e?"T":"")+(s?E+s+"H":"")+(i?E+i+"M":"")+(e?E+o+"S":"")):"P0D"}var N=Mt.prototype;N.isValid=Al,N.abs=sc,N.add=nc,N.subtract=rc,N.as=dc,N.asMilliseconds=wi,N.asSeconds=lc,N.asMinutes=uc,N.asHours=cc,N.asDays=hc,N.asWeeks=fc,N.asMonths=mc,N.asQuarters=_c,N.asYears=pc,N.valueOf=gc,N._bubble=oc,N.clone=Ec,N.get=Sc,N.milliseconds=yc,N.seconds=Mc,N.minutes=Tc,N.hours=bc,N.days=Rc,N.weeks=Nc,N.months=Ac,N.years=Dc,N.humanize=Oc,N.toISOString=It,N.toString=It,N.toJSON=It,N.locale=_i,N.localeData=gi,N.toIsoString=J("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",It),N.lang=pi,M("X",0,0,"unix"),M("x",0,0,"valueOf"),y("x",mt),y("X",Xo),L("X",function(e,t,a){a._d=new Date(parseFloat(e)*1e3)}),L("x",function(e,t,a){a._d=new Date(D(e))});S.version="2.30.1",xo(U),S.fn=p,S.min=Ml,S.max=Tl,S.now=bl,S.utc=ne,S.unix=Ju,S.months=Xu,S.isDate=We,S.locale=Me,S.invalid=dt,S.duration=ie,S.isMoment=te,S.weekdays=tc,S.parseZone=Zu,S.localeData=pe,S.isDuration=Tt,S.monthsShort=ec,S.weekdaysMin=ic,S.defineLocale=sa,S.updateLocale=Zd,S.locales=Xd,S.weekdaysShort=ac,S.normalizeUnits=Z,S.relativeTimeRounding=vc,S.relativeTimeThreshold=kc,S.calendarFormat=zl,S.prototype=p,S.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const xc=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,Cc=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,vi=/(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,Ea=[/^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],Lc={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:vi,monthsShortRegex:vi,monthsStrictRegex:xc,monthsShortStrictRegex:Cc,monthsParse:Ea,longMonthsParse:Ea,shortMonthsParse:Ea,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}};S.locale("fr",Lc),be.TOP_LEFT;const b=e=>typeof e=="string",Je=()=>{let e,t;const a=new Promise((i,s)=>{e=i,t=s});return a.resolve=e,a.reject=t,a},ki=e=>e==null?"":""+e,Vc=(e,t,a)=>{e.forEach(i=>{t[i]&&(a[i]=t[i])})},Uc=/###/g,Oi=e=>e&&e.indexOf("###")>-1?e.replace(Uc,"."):e,xi=e=>!e||b(e),Ze=(e,t,a)=>{const i=b(t)?t.split("."):t;let s=0;for(;s<i.length-1;){if(xi(e))return{};const n=Oi(i[s]);!e[n]&&a&&(e[n]=new a),Object.prototype.hasOwnProperty.call(e,n)?e=e[n]:e={},++s}return xi(e)?{}:{obj:e,k:Oi(i[s])}},Ci=(e,t,a)=>{const{obj:i,k:s}=Ze(e,t,Object);if(i!==void 0||t.length===1){i[s]=a;return}let n=t[t.length-1],o=t.slice(0,t.length-1),l=Ze(e,o,Object);for(;l.obj===void 0&&o.length;)n=`${o[o.length-1]}.${n}`,o=o.slice(0,o.length-1),l=Ze(e,o,Object),l&&l.obj&&typeof l.obj[`${l.k}.${n}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${n}`]=a},Yc=(e,t,a,i)=>{const{obj:s,k:n}=Ze(e,t,Object);s[n]=s[n]||[],s[n].push(a)},wt=(e,t)=>{const{obj:a,k:i}=Ze(e,t);if(a)return a[i]},Pc=(e,t,a)=>{const i=wt(e,a);return i!==void 0?i:wt(t,a)},Li=(e,t,a)=>{for(const i in t)i!=="__proto__"&&i!=="constructor"&&(i in e?b(e[i])||e[i]instanceof String||b(t[i])||t[i]instanceof String?a&&(e[i]=t[i]):Li(e[i],t[i],a):e[i]=t[i]);return e},Ye=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Wc={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const Hc=e=>b(e)?e.replace(/[&<>"'\/]/g,t=>Wc[t]):e;class Fc{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const a=this.regExpMap.get(t);if(a!==void 0)return a;const i=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,i),this.regExpQueue.push(t),i}}const jc=[" ",",","?","!",";"],Qc=new Fc(20),Bc=(e,t,a)=>{t=t||"",a=a||"";const i=jc.filter(o=>t.indexOf(o)<0&&a.indexOf(o)<0);if(i.length===0)return!0;const s=Qc.getRegExp(`(${i.map(o=>o==="?"?"\\?":o).join("|")})`);let n=!s.test(e);if(!n){const o=e.indexOf(a);o>0&&!s.test(e.substring(0,o))&&(n=!0)}return n},Sa=function(e,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const i=t.split(a);let s=e;for(let n=0;n<i.length;){if(!s||typeof s!="object")return;let o,l="";for(let h=n;h<i.length;++h)if(h!==n&&(l+=a),l+=i[h],o=s[l],o!==void 0){if(["string","number","boolean"].indexOf(typeof o)>-1&&h<i.length-1)continue;n+=h-n+1;break}s=o}return s},vt=e=>e&&e.replace("_","-"),Gc={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)}};class kt{constructor(t){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,a)}init(t){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=a.prefix||"i18next:",this.logger=t||Gc,this.options=a,this.debug=a.debug}log(){for(var t=arguments.length,a=new Array(t),i=0;i<t;i++)a[i]=arguments[i];return this.forward(a,"log","",!0)}warn(){for(var t=arguments.length,a=new Array(t),i=0;i<t;i++)a[i]=arguments[i];return this.forward(a,"warn","",!0)}error(){for(var t=arguments.length,a=new Array(t),i=0;i<t;i++)a[i]=arguments[i];return this.forward(a,"error","")}deprecate(){for(var t=arguments.length,a=new Array(t),i=0;i<t;i++)a[i]=arguments[i];return this.forward(a,"warn","WARNING DEPRECATED: ",!0)}forward(t,a,i,s){return s&&!this.debug?null:(b(t[0])&&(t[0]=`${i}${this.prefix} ${t[0]}`),this.logger[a](t))}create(t){return new kt(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new kt(this.logger,t)}}var le=new kt;class Ot{constructor(){this.observers={}}on(t,a){return t.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);const s=this.observers[i].get(a)||0;this.observers[i].set(a,s+1)}),this}off(t,a){if(this.observers[t]){if(!a){delete this.observers[t];return}this.observers[t].delete(a)}}emit(t){for(var a=arguments.length,i=new Array(a>1?a-1:0),s=1;s<a;s++)i[s-1]=arguments[s];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(o=>{let[l,h]=o;for(let f=0;f<h;f++)l(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(o=>{let[l,h]=o;for(let f=0;f<h;f++)l.apply(l,[t,...i])})}}class Vi extends Ot{constructor(t){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=a,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 a=this.options.ns.indexOf(t);a>-1&&this.options.ns.splice(a,1)}getResource(t,a,i){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const n=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,o=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;t.indexOf(".")>-1?l=t.split("."):(l=[t,a],i&&(Array.isArray(i)?l.push(...i):b(i)&&n?l.push(...i.split(n)):l.push(i)));const h=wt(this.data,l);return!h&&!a&&!i&&t.indexOf(".")>-1&&(t=l[0],a=l[1],i=l.slice(2).join(".")),h||!o||!b(i)?h:Sa(this.data&&this.data[t]&&this.data[t][a],i,n)}addResource(t,a,i,s){let n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let l=[t,a];i&&(l=l.concat(o?i.split(o):i)),t.indexOf(".")>-1&&(l=t.split("."),s=a,a=l[1]),this.addNamespaces(a),Ci(this.data,l,s),n.silent||this.emit("added",t,a,i,s)}addResources(t,a,i){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const n in i)(b(i[n])||Array.isArray(i[n]))&&this.addResource(t,a,n,i[n],{silent:!0});s.silent||this.emit("added",t,a,i)}addResourceBundle(t,a,i,s,n){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,a];t.indexOf(".")>-1&&(l=t.split("."),s=i,i=a,a=l[1]),this.addNamespaces(a);let h=wt(this.data,l)||{};o.skipCopy||(i=JSON.parse(JSON.stringify(i))),s?Li(h,i,n):h={...h,...i},Ci(this.data,l,h),o.silent||this.emit("added",t,a,i)}removeResourceBundle(t,a){this.hasResourceBundle(t,a)&&delete this.data[t][a],this.removeNamespaces(a),this.emit("removed",t,a)}hasResourceBundle(t,a){return this.getResource(t,a)!==void 0}getResourceBundle(t,a){return a||(a=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,a)}:this.getResource(t,a)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const a=this.getDataByLanguage(t);return!!(a&&Object.keys(a)||[]).find(s=>a[s]&&Object.keys(a[s]).length>0)}toJSON(){return this.data}}var Ui={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,a,i,s){return e.forEach(n=>{this.processors[n]&&(t=this.processors[n].process(t,a,i,s))}),t}};const Yi={};class xt extends Ot{constructor(t){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Vc(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=a,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=le.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const i=this.resolve(t,a);return i&&i.res!==void 0}extractFromKey(t,a){let i=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");const s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let n=a.ns||this.options.defaultNS||[];const o=i&&t.indexOf(i)>-1,l=!this.options.userDefinedKeySeparator&&!a.keySeparator&&!this.options.userDefinedNsSeparator&&!a.nsSeparator&&!Bc(t,i,s);if(o&&!l){const h=t.match(this.interpolator.nestingRegexp);if(h&&h.length>0)return{key:t,namespaces:b(n)?[n]:n};const f=t.split(i);(i!==s||i===s&&this.options.ns.indexOf(f[0])>-1)&&(n=f.shift()),t=f.join(s)}return{key:t,namespaces:b(n)?[n]:n}}translate(t,a,i){if(typeof a!="object"&&this.options.overloadTranslationOptionHandler&&(a=this.options.overloadTranslationOptionHandler(arguments)),typeof a=="object"&&(a={...a}),a||(a={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const s=a.returnDetails!==void 0?a.returnDetails:this.options.returnDetails,n=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,{key:o,namespaces:l}=this.extractFromKey(t[t.length-1],a),h=l[l.length-1],f=a.lng||this.language,_=a.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&f.toLowerCase()==="cimode"){if(_){const F=a.nsSeparator||this.options.nsSeparator;return s?{res:`${h}${F}${o}`,usedKey:o,exactUsedKey:o,usedLng:f,usedNS:h,usedParams:this.getUsedParamsDetails(a)}:`${h}${F}${o}`}return s?{res:o,usedKey:o,exactUsedKey:o,usedLng:f,usedNS:h,usedParams:this.getUsedParamsDetails(a)}:o}const E=this.resolve(t,a);let m=E&&E.res;const T=E&&E.usedKey||o,I=E&&E.exactUsedKey||o,P=Object.prototype.toString.apply(m),C=["[object Number]","[object Function]","[object RegExp]"],O=a.joinArrays!==void 0?a.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,at=!b(m)&&typeof m!="boolean"&&typeof m!="number";if(w&&m&&at&&C.indexOf(P)<0&&!(b(O)&&Array.isArray(m))){if(!a.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const F=this.options.returnedObjectHandler?this.options.returnedObjectHandler(T,m,{...a,ns:l}):`key '${o} (${this.language})' returned an object instead of string.`;return s?(E.res=F,E.usedParams=this.getUsedParamsDetails(a),E):F}if(n){const F=Array.isArray(m),q=F?[]:{},se=F?I:T;for(const G in m)if(Object.prototype.hasOwnProperty.call(m,G)){const Ut=`${se}${n}${G}`;q[G]=this.translate(Ut,{...a,joinArrays:!1,ns:l}),q[G]===Ut&&(q[G]=m[G])}m=q}}else if(w&&b(O)&&Array.isArray(m))m=m.join(O),m&&(m=this.extendTranslation(m,t,a,i));else{let F=!1,q=!1;const se=a.count!==void 0&&!b(a.count),G=xt.hasDefaultValue(a),Ut=se?this.pluralResolver.getSuffix(f,a.count,a):"",Jh=a.ordinal&&se?this.pluralResolver.getSuffix(f,a.count,{ordinal:!1}):"",No=se&&!a.ordinal&&a.count===0&&this.pluralResolver.shouldUseIntlApi(),it=No&&a[`defaultValue${this.options.pluralSeparator}zero`]||a[`defaultValue${Ut}`]||a[`defaultValue${Jh}`]||a.defaultValue;!this.isValidLookup(m)&&G&&(F=!0,m=it),this.isValidLookup(m)||(q=!0,m=o);const Zh=(a.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&q?void 0:m,st=G&&it!==m&&this.options.updateMissing;if(q||F||st){if(this.logger.log(st?"updateKey":"missingKey",f,h,o,st?it:m),n){const K=this.resolve(o,{...a,keySeparator:!1});K&&K.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 nt=[];const Yt=this.languageUtils.getFallbackCodes(this.options.fallbackLng,a.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Yt&&Yt[0])for(let K=0;K<Yt.length;K++)nt.push(Yt[K]);else this.options.saveMissingTo==="all"?nt=this.languageUtils.toResolveHierarchy(a.lng||this.language):nt.push(a.lng||this.language);const Io=(K,Ie,rt)=>{const wo=G&&rt!==m?rt:Zh;this.options.missingKeyHandler?this.options.missingKeyHandler(K,h,Ie,wo,st,a):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(K,h,Ie,wo,st,a),this.emit("missingKey",K,h,Ie,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&se?nt.forEach(K=>{const Ie=this.pluralResolver.getSuffixes(K,a);No&&a[`defaultValue${this.options.pluralSeparator}zero`]&&Ie.indexOf(`${this.options.pluralSeparator}zero`)<0&&Ie.push(`${this.options.pluralSeparator}zero`),Ie.forEach(rt=>{Io([K],o+rt,a[`defaultValue${rt}`]||it)})}):Io(nt,o,it))}m=this.extendTranslation(m,t,a,E,i),q&&m===o&&this.options.appendNamespaceToMissingKey&&(m=`${h}:${o}`),(q||F)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${h}:${o}`:o,F?m:void 0):m=this.options.parseMissingKeyHandler(m))}return s?(E.res=m,E.usedParams=this.getUsedParamsDetails(a),E):m}extendTranslation(t,a,i,s,n){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});const f=b(t)&&(i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let _;if(f){const m=t.match(this.interpolator.nestingRegexp);_=m&&m.length}let E=i.replace&&!b(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(E={...this.options.interpolation.defaultVariables,...E}),t=this.interpolator.interpolate(t,E,i.lng||this.language||s.usedLng,i),f){const m=t.match(this.interpolator.nestingRegexp),T=m&&m.length;_<T&&(i.nest=!1)}!i.lng&&this.options.compatibilityAPI!=="v1"&&s&&s.res&&(i.lng=this.language||s.usedLng),i.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var m=arguments.length,T=new Array(m),I=0;I<m;I++)T[I]=arguments[I];return n&&n[0]===T[0]&&!i.context?(o.logger.warn(`It seems you are nesting recursively key: ${T[0]} in key: ${a[0]}`),null):o.translate(...T,a)},i)),i.interpolation&&this.interpolator.reset()}const l=i.postProcess||this.options.postProcess,h=b(l)?[l]:l;return t!=null&&h&&h.length&&i.applyPostProcessor!==!1&&(t=Ui.handle(h,t,a,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...s,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),t}resolve(t){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,s,n,o,l;return b(t)&&(t=[t]),t.forEach(h=>{if(this.isValidLookup(i))return;const f=this.extractFromKey(h,a),_=f.key;s=_;let E=f.namespaces;this.options.fallbackNS&&(E=E.concat(this.options.fallbackNS));const m=a.count!==void 0&&!b(a.count),T=m&&!a.ordinal&&a.count===0&&this.pluralResolver.shouldUseIntlApi(),I=a.context!==void 0&&(b(a.context)||typeof a.context=="number")&&a.context!=="",P=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);E.forEach(C=>{this.isValidLookup(i)||(l=C,!Yi[`${P[0]}-${C}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(Yi[`${P[0]}-${C}`]=!0,this.logger.warn(`key "${s}" for languages "${P.join(", ")}" won't get resolved as namespace "${l}" 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!!!")),P.forEach(O=>{if(this.isValidLookup(i))return;o=O;const w=[_];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(w,_,O,C,a);else{let F;m&&(F=this.pluralResolver.getSuffix(O,a.count,a));const q=`${this.options.pluralSeparator}zero`,se=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(m&&(w.push(_+F),a.ordinal&&F.indexOf(se)===0&&w.push(_+F.replace(se,this.options.pluralSeparator)),T&&w.push(_+q)),I){const G=`${_}${this.options.contextSeparator}${a.context}`;w.push(G),m&&(w.push(G+F),a.ordinal&&F.indexOf(se)===0&&w.push(G+F.replace(se,this.options.pluralSeparator)),T&&w.push(G+q))}}let at;for(;at=w.pop();)this.isValidLookup(i)||(n=at,i=this.getResource(O,C,at,a))}))})}),{res:i,usedKey:s,exactUsedKey:n,usedLng:o,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,a,i){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,a,i,s):this.resourceStore.getResource(t,a,i,s)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const a=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=t.replace&&!b(t.replace);let s=i?t.replace:t;if(i&&typeof t.count<"u"&&(s.count=t.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!i){s={...s};for(const n of a)delete s[n]}return s}static hasDefaultValue(t){const a="defaultValue";for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&a===i.substring(0,a.length)&&t[i]!==void 0)return!0;return!1}}const ya=e=>e.charAt(0).toUpperCase()+e.slice(1);class Pi{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=le.create("languageUtils")}getScriptPartFromCode(t){if(t=vt(t),!t||t.indexOf("-")<0)return null;const a=t.split("-");return a.length===2||(a.pop(),a[a.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(a.join("-"))}getLanguagePartFromCode(t){if(t=vt(t),!t||t.indexOf("-")<0)return t;const a=t.split("-");return this.formatLanguageCode(a[0])}formatLanguageCode(t){if(b(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let s=Intl.getCanonicalLocales(t)[0];if(s&&this.options.lowerCaseLng&&(s=s.toLowerCase()),s)return s}catch{}const a=["hans","hant","latn","cyrl","cans","mong","arab"];let i=t.split("-");return this.options.lowerCaseLng?i=i.map(s=>s.toLowerCase()):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),a.indexOf(i[1].toLowerCase())>-1&&(i[1]=ya(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),a.indexOf(i[1].toLowerCase())>-1&&(i[1]=ya(i[1].toLowerCase())),a.indexOf(i[2].toLowerCase())>-1&&(i[2]=ya(i[2].toLowerCase()))),i.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 a;return t.forEach(i=>{if(a)return;const s=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(s))&&(a=s)}),!a&&this.options.supportedLngs&&t.forEach(i=>{if(a)return;const s=this.getLanguagePartFromCode(i);if(this.isSupportedCode(s))return a=s;a=this.options.supportedLngs.find(n=>{if(n===s)return n;if(!(n.indexOf("-")<0&&s.indexOf("-")<0)&&(n.indexOf("-")>0&&s.indexOf("-")<0&&n.substring(0,n.indexOf("-"))===s||n.indexOf(s)===0&&s.length>1))return n})}),a||(a=this.getFallbackCodes(this.options.fallbackLng)[0]),a}getFallbackCodes(t,a){if(!t)return[];if(typeof t=="function"&&(t=t(a)),b(t)&&(t=[t]),Array.isArray(t))return t;if(!a)return t.default||[];let i=t[a];return i||(i=t[this.getScriptPartFromCode(a)]),i||(i=t[this.formatLanguageCode(a)]),i||(i=t[this.getLanguagePartFromCode(a)]),i||(i=t.default),i||[]}toResolveHierarchy(t,a){const i=this.getFallbackCodes(a||this.options.fallbackLng||[],t),s=[],n=o=>{o&&(this.isSupportedCode(o)?s.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return b(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&n(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&n(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&n(this.getLanguagePartFromCode(t))):b(t)&&n(this.formatLanguageCode(t)),i.forEach(o=>{s.indexOf(o)<0&&n(this.formatLanguageCode(o))}),s}}let $c=[{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}],zc={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const qc=["v1","v2","v3"],Kc=["v4"],Wi={zero:0,one:1,two:2,few:3,many:4,other:5},Jc=()=>{const e={};return $c.forEach(t=>{t.lngs.forEach(a=>{e[a]={numbers:t.nr,plurals:zc[t.fc]}})}),e};class Zc{constructor(t){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=a,this.logger=le.create("pluralResolver"),(!this.options.compatibilityJSON||Kc.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=Jc(),this.pluralRulesCache={}}addRule(t,a){this.rules[t]=a}clearCache(){this.pluralRulesCache={}}getRule(t){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){const i=vt(t==="dev"?"en":t),s=a.ordinal?"ordinal":"cardinal",n=JSON.stringify({cleanedCode:i,type:s});if(n in this.pluralRulesCache)return this.pluralRulesCache[n];let o;try{o=new Intl.PluralRules(i,{type:s})}catch{if(!t.match(/-|_/))return;const h=this.languageUtils.getLanguagePartFromCode(t);o=this.getRule(h,a)}return this.pluralRulesCache[n]=o,o}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=this.getRule(t,a);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}getPluralFormsOfKey(t,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,i).map(s=>`${a}${s}`)}getSuffixes(t){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=this.getRule(t,a);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort((s,n)=>Wi[s]-Wi[n]).map(s=>`${this.options.prepend}${a.ordinal?`ordinal${this.options.prepend}`:""}${s}`):i.numbers.map(s=>this.getSuffix(t,s,a)):[]}getSuffix(t,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=this.getRule(t,i);return s?this.shouldUseIntlApi()?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${s.select(a)}`:this.getSuffixRetroCompatible(s,a):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,a){const i=t.noAbs?t.plurals(a):t.plurals(Math.abs(a));let s=t.numbers[i];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(s===2?s="plural":s===1&&(s=""));const n=()=>this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString();return this.options.compatibilityJSON==="v1"?s===1?"":typeof s=="number"?`_plural_${s.toString()}`:n():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?n():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}shouldUseIntlApi(){return!qc.includes(this.options.compatibilityJSON)}}const Hi=function(e,t,a){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,n=Pc(e,t,a);return!n&&s&&b(a)&&(n=Sa(e,a,i),n===void 0&&(n=Sa(t,a,i))),n},Ma=e=>e.replace(/\$/g,"$$$$");class Xc{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=le.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(a=>a),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:a,escapeValue:i,useRawValueToEscape:s,prefix:n,prefixEscaped:o,suffix:l,suffixEscaped:h,formatSeparator:f,unescapeSuffix:_,unescapePrefix:E,nestingPrefix:m,nestingPrefixEscaped:T,nestingSuffix:I,nestingSuffixEscaped:P,nestingOptionsSeparator:C,maxReplaces:O,alwaysFormat:w}=t.interpolation;this.escape=a!==void 0?a:Hc,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=s!==void 0?s:!1,this.prefix=n?Ye(n):o||"{{",this.suffix=l?Ye(l):h||"}}",this.formatSeparator=f||",",this.unescapePrefix=_?"":E||"-",this.unescapeSuffix=this.unescapePrefix?"":_||"",this.nestingPrefix=m?Ye(m):T||Ye("$t("),this.nestingSuffix=I?Ye(I):P||Ye(")"),this.nestingOptionsSeparator=C||",",this.maxReplaces=O||1e3,this.alwaysFormat=w!==void 0?w:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(a,i)=>a&&a.source===i?(a.lastIndex=0,a):new RegExp(i,"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,a,i,s){let n,o,l;const h=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},f=T=>{if(T.indexOf(this.formatSeparator)<0){const O=Hi(a,h,T,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(O,void 0,i,{...s,...a,interpolationkey:T}):O}const I=T.split(this.formatSeparator),P=I.shift().trim(),C=I.join(this.formatSeparator).trim();return this.format(Hi(a,h,P,this.options.keySeparator,this.options.ignoreJSONStructure),C,i,{...s,...a,interpolationkey:P})};this.resetRegExp();const _=s&&s.missingInterpolationHandler||this.options.missingInterpolationHandler,E=s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:T=>Ma(T)},{regex:this.regexp,safeValue:T=>this.escapeValue?Ma(this.escape(T)):Ma(T)}].forEach(T=>{for(l=0;n=T.regex.exec(t);){const I=n[1].trim();if(o=f(I),o===void 0)if(typeof _=="function"){const C=_(t,n,s);o=b(C)?C:""}else if(s&&Object.prototype.hasOwnProperty.call(s,I))o="";else if(E){o=n[0];continue}else this.logger.warn(`missed to pass in variable ${I} for interpolating ${t}`),o="";else!b(o)&&!this.useRawValueToEscape&&(o=ki(o));const P=T.safeValue(o);if(t=t.replace(n[0],P),E?(T.regex.lastIndex+=o.length,T.regex.lastIndex-=n[0].length):T.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,n,o;const l=(h,f)=>{const _=this.nestingOptionsSeparator;if(h.indexOf(_)<0)return h;const E=h.split(new RegExp(`${_}[ ]*{`));let m=`{${E[1]}`;h=E[0],m=this.interpolate(m,o);const T=m.match(/'/g),I=m.match(/"/g);(T&&T.length%2===0&&!I||I.length%2!==0)&&(m=m.replace(/'/g,'"'));try{o=JSON.parse(m),f&&(o={...f,...o})}catch(P){return this.logger.warn(`failed parsing options string in nesting for key ${h}`,P),`${h}${_}${m}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,h};for(;s=this.nestingRegexp.exec(t);){let h=[];o={...i},o=o.replace&&!b(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let f=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){const _=s[1].split(this.formatSeparator).map(E=>E.trim());s[1]=_.shift(),h=_,f=!0}if(n=a(l.call(this,s[1].trim(),o),o),n&&s[0]===t&&!b(n))return n;b(n)||(n=ki(n)),n||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${t}`),n=""),f&&(n=h.reduce((_,E)=>this.format(_,E,i.lng,{...i,interpolationkey:s[1].trim()}),n.trim())),t=t.replace(s[0],n),this.regexp.lastIndex=0}return t}}const eh=e=>{let t=e.toLowerCase().trim();const a={};if(e.indexOf("(")>-1){const i=e.split("(");t=i[0].toLowerCase().trim();const s=i[1].substring(0,i[1].length-1);t==="currency"&&s.indexOf(":")<0?a.currency||(a.currency=s.trim()):t==="relativetime"&&s.indexOf(":")<0?a.range||(a.range=s.trim()):s.split(";").forEach(o=>{if(o){const[l,...h]=o.split(":"),f=h.join(":").trim().replace(/^'+|'+$/g,""),_=l.trim();a[_]||(a[_]=f),f==="false"&&(a[_]=!1),f==="true"&&(a[_]=!0),isNaN(f)||(a[_]=parseInt(f,10))}})}return{formatName:t,formatOptions:a}},Pe=e=>{const t={};return(a,i,s)=>{let n=s;s&&s.interpolationkey&&s.formatParams&&s.formatParams[s.interpolationkey]&&s[s.interpolationkey]&&(n={...n,[s.interpolationkey]:void 0});const o=i+JSON.stringify(n);let l=t[o];return l||(l=e(vt(i),s),t[o]=l),l(a)}};class th{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=le.create("formatter"),this.options=t,this.formats={number:Pe((a,i)=>{const s=new Intl.NumberFormat(a,{...i});return n=>s.format(n)}),currency:Pe((a,i)=>{const s=new Intl.NumberFormat(a,{...i,style:"currency"});return n=>s.format(n)}),datetime:Pe((a,i)=>{const s=new Intl.DateTimeFormat(a,{...i});return n=>s.format(n)}),relativetime:Pe((a,i)=>{const s=new Intl.RelativeTimeFormat(a,{...i});return n=>s.format(n,i.range||"day")}),list:Pe((a,i)=>{const s=new Intl.ListFormat(a,{...i});return n=>s.format(n)})},this.init(t)}init(t){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=a.interpolation.formatSeparator||","}add(t,a){this.formats[t.toLowerCase().trim()]=a}addCached(t,a){this.formats[t.toLowerCase().trim()]=Pe(a)}format(t,a,i){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const n=a.split(this.formatSeparator);if(n.length>1&&n[0].indexOf("(")>1&&n[0].indexOf(")")<0&&n.find(l=>l.indexOf(")")>-1)){const l=n.findIndex(h=>h.indexOf(")")>-1);n[0]=[n[0],...n.splice(1,l)].join(this.formatSeparator)}return n.reduce((l,h)=>{const{formatName:f,formatOptions:_}=eh(h);if(this.formats[f]){let E=l;try{const m=s&&s.formatParams&&s.formatParams[s.interpolationkey]||{},T=m.locale||m.lng||s.locale||s.lng||i;E=this.formats[f](l,T,{..._,...s,...m})}catch(m){this.logger.warn(m)}return E}else this.logger.warn(`there was no format function for ${f}`);return l},t)}}const ah=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class ih extends Ot{constructor(t,a,i){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=a,this.services=i,this.languageUtils=i.languageUtils,this.options=s,this.logger=le.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(i,s.backend,s)}queueLoad(t,a,i,s){const n={},o={},l={},h={};return t.forEach(f=>{let _=!0;a.forEach(E=>{const m=`${f}|${E}`;!i.reload&&this.store.hasResourceBundle(f,E)?this.state[m]=2:this.state[m]<0||(this.state[m]===1?o[m]===void 0&&(o[m]=!0):(this.state[m]=1,_=!1,o[m]===void 0&&(o[m]=!0),n[m]===void 0&&(n[m]=!0),h[E]===void 0&&(h[E]=!0)))}),_||(l[f]=!0)}),(Object.keys(n).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(n),pending:Object.keys(o),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(h)}}loaded(t,a,i){const s=t.split("|"),n=s[0],o=s[1];a&&this.emit("failedLoading",n,o,a),!a&&i&&this.store.addResourceBundle(n,o,i,void 0,void 0,{skipCopy:!0}),this.state[t]=a?-1:2,a&&i&&(this.state[t]=0);const l={};this.queue.forEach(h=>{Yc(h.loaded,[n],o),ah(h,t),a&&h.errors.push(a),h.pendingCount===0&&!h.done&&(Object.keys(h.loaded).forEach(f=>{l[f]||(l[f]={});const _=h.loaded[f];_.length&&_.forEach(E=>{l[f][E]===void 0&&(l[f][E]=!0)})}),h.done=!0,h.errors.length?h.callback(h.errors):h.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(h=>!h.done)}read(t,a,i){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:a,fcName:i,tried:s,wait:n,callback:o});return}this.readingCalls++;const l=(f,_)=>{if(this.readingCalls--,this.waitingReads.length>0){const E=this.waitingReads.shift();this.read(E.lng,E.ns,E.fcName,E.tried,E.wait,E.callback)}if(f&&_&&s<this.maxRetries){setTimeout(()=>{this.read.call(this,t,a,i,s+1,n*2,o)},n);return}o(f,_)},h=this.backend[i].bind(this.backend);if(h.length===2){try{const f=h(t,a);f&&typeof f.then=="function"?f.then(_=>l(null,_)).catch(l):l(null,f)}catch(f){l(f)}return}return h(t,a,l)}prepareLoading(t,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=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."),s&&s();b(t)&&(t=this.languageUtils.toResolveHierarchy(t)),b(a)&&(a=[a]);const n=this.queueLoad(t,a,i,s);if(!n.toLoad.length)return n.pending.length||s(),null;n.toLoad.forEach(o=>{this.loadOne(o)})}load(t,a,i){this.prepareLoading(t,a,{},i)}reload(t,a,i){this.prepareLoading(t,a,{reload:!0},i)}loadOne(t){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const i=t.split("|"),s=i[0],n=i[1];this.read(s,n,"read",void 0,void 0,(o,l)=>{o&&this.logger.warn(`${a}loading namespace ${n} for language ${s} failed`,o),!o&&l&&this.logger.log(`${a}loaded namespace ${n} for language ${s}`,l),this.loaded(t,o,l)})}saveMissing(t,a,i,s,n){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(a)){this.logger.warn(`did not save key "${i}" as the namespace "${a}" 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(!(i==null||i==="")){if(this.backend&&this.backend.create){const h={...o,isUpdate:n},f=this.backend.create.bind(this.backend);if(f.length<6)try{let _;f.length===5?_=f(t,a,i,s,h):_=f(t,a,i,s),_&&typeof _.then=="function"?_.then(E=>l(null,E)).catch(l):l(null,_)}catch(_){l(_)}else f(t,a,i,s,l,h)}!t||!t[0]||this.store.addResource(t[0],a,i,s)}}}const Fi=()=>({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:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),b(e[1])&&(t.defaultValue=e[1]),b(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const a=e[3]||e[2];Object.keys(a).forEach(i=>{t[i]=a[i]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),ji=e=>(b(e.ns)&&(e.ns=[e.ns]),b(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),b(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Ct=()=>{},sh=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(a=>{typeof e[a]=="function"&&(e[a]=e[a].bind(e))})};class Xe extends Ot{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;if(super(),this.options=ji(t),this.services={},this.logger=le,this.modules={external:[]},sh(this),a&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,a),this;setTimeout(()=>{this.init(t,a)},0)}}init(){var t=this;let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof a=="function"&&(i=a,a={}),!a.defaultNS&&a.defaultNS!==!1&&a.ns&&(b(a.ns)?a.defaultNS=a.ns:a.ns.indexOf("translation")<0&&(a.defaultNS=a.ns[0]));const s=Fi();this.options={...s,...this.options,...ji(a)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...s.interpolation,...this.options.interpolation}),a.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=a.keySeparator),a.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=a.nsSeparator);const n=_=>_?typeof _=="function"?new _:_:null;if(!this.options.isClone){this.modules.logger?le.init(n(this.modules.logger),this.options):le.init(null,this.options);let _;this.modules.formatter?_=this.modules.formatter:typeof Intl<"u"&&(_=th);const E=new Pi(this.options);this.store=new Vi(this.options.resources,this.options);const m=this.services;m.logger=le,m.resourceStore=this.store,m.languageUtils=E,m.pluralResolver=new Zc(E,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),_&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(m.formatter=n(_),m.formatter.init(m,this.options),this.options.interpolation.format=m.formatter.format.bind(m.formatter)),m.interpolator=new Xc(this.options),m.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},m.backendConnector=new ih(n(this.modules.backend),m.resourceStore,m,this.options),m.backendConnector.on("*",function(T){for(var I=arguments.length,P=new Array(I>1?I-1:0),C=1;C<I;C++)P[C-1]=arguments[C];t.emit(T,...P)}),this.modules.languageDetector&&(m.languageDetector=n(this.modules.languageDetector),m.languageDetector.init&&m.languageDetector.init(m,this.options.detection,this.options)),this.modules.i18nFormat&&(m.i18nFormat=n(this.modules.i18nFormat),m.i18nFormat.init&&m.i18nFormat.init(this)),this.translator=new xt(this.services,this.options),this.translator.on("*",function(T){for(var I=arguments.length,P=new Array(I>1?I-1:0),C=1;C<I;C++)P[C-1]=arguments[C];t.emit(T,...P)}),this.modules.external.forEach(T=>{T.init&&T.init(this)})}if(this.format=this.options.interpolation.format,i||(i=Ct),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const _=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);_.length>0&&_[0]!=="dev"&&(this.options.lng=_[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(_=>{this[_]=function(){return t.store[_](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(_=>{this[_]=function(){return t.store[_](...arguments),t}});const h=Je(),f=()=>{const _=(E,m)=>{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),h.resolve(m),i(E,m)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return _(null,this.t.bind(this));this.changeLanguage(this.options.lng,_)};return this.options.resources||!this.options.initImmediate?f():setTimeout(f,0),h}loadResources(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ct;const s=b(t)?t:this.language;if(typeof t=="function"&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if(s&&s.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();const n=[],o=l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(f=>{f!=="cimode"&&n.indexOf(f)<0&&n.push(f)})};s?o(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(h=>o(h)),this.options.preload&&this.options.preload.forEach(l=>o(l)),this.services.backendConnector.load(n,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(l)})}else i(null)}reloadResources(t,a,i){const s=Je();return typeof t=="function"&&(i=t,t=void 0),typeof a=="function"&&(i=a,a=void 0),t||(t=this.languages),a||(a=this.options.ns),i||(i=Ct),this.services.backendConnector.reload(t,a,n=>{s.resolve(),i(n)}),s}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"&&Ui.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 a=0;a<this.languages.length;a++){const i=this.languages[a];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}}changeLanguage(t,a){var i=this;this.isLanguageChangingTo=t;const s=Je();this.emit("languageChanging",t);const n=h=>{this.language=h,this.languages=this.services.languageUtils.toResolveHierarchy(h),this.resolvedLanguage=void 0,this.setResolvedLanguage(h)},o=(h,f)=>{f?(n(f),this.translator.changeLanguage(f),this.isLanguageChangingTo=void 0,this.emit("languageChanged",f),this.logger.log("languageChanged",f)):this.isLanguageChangingTo=void 0,s.resolve(function(){return i.t(...arguments)}),a&&a(h,function(){return i.t(...arguments)})},l=h=>{!t&&!h&&this.services.languageDetector&&(h=[]);const f=b(h)?h:this.services.languageUtils.getBestMatchFromCodes(h);f&&(this.language||n(f),this.translator.language||this.translator.changeLanguage(f),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(f)),this.loadResources(f,_=>{o(_,f)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),s}getFixedT(t,a,i){var s=this;const n=function(o,l){let h;if(typeof l!="object"){for(var f=arguments.length,_=new Array(f>2?f-2:0),E=2;E<f;E++)_[E-2]=arguments[E];h=s.options.overloadTranslationOptionHandler([o,l].concat(_))}else h={...l};h.lng=h.lng||n.lng,h.lngs=h.lngs||n.lngs,h.ns=h.ns||n.ns,h.keyPrefix!==""&&(h.keyPrefix=h.keyPrefix||i||n.keyPrefix);const m=s.options.keySeparator||".";let T;return h.keyPrefix&&Array.isArray(o)?T=o.map(I=>`${h.keyPrefix}${m}${I}`):T=h.keyPrefix?`${h.keyPrefix}${m}${o}`:o,s.t(T,h)};return b(t)?n.lng=t:n.lngs=t,n.ns=a,n.keyPrefix=i,n}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 a=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 i=a.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,n=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;const o=(l,h)=>{const f=this.services.backendConnector.state[`${l}|${h}`];return f===-1||f===0||f===2};if(a.precheck){const l=a.precheck(this,o);if(l!==void 0)return l}return!!(this.hasResourceBundle(i,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(i,t)&&(!s||o(n,t)))}loadNamespaces(t,a){const i=Je();return this.options.ns?(b(t)&&(t=[t]),t.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{i.resolve(),a&&a(s)}),i):(a&&a(),Promise.resolve())}loadLanguages(t,a){const i=Je();b(t)&&(t=[t]);const s=this.options.preload||[],n=t.filter(o=>s.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return n.length?(this.options.preload=s.concat(n),this.loadResources(o=>{i.resolve(),a&&a(o)}),i):(a&&a(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const a=["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"],i=this.services&&this.services.languageUtils||new Pi(Fi());return a.indexOf(i.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;return new Xe(t,a)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ct;const i=t.forkResourceStore;i&&delete t.forkResourceStore;const s={...this.options,...t,isClone:!0},n=new Xe(s);return(t.debug!==void 0||t.prefix!==void 0)&&(n.logger=n.logger.clone(t)),["store","services","language"].forEach(l=>{n[l]=this[l]}),n.services={...this.services},n.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},i&&(n.store=new Vi(this.store.data,s),n.services.resourceStore=n.store),n.translator=new xt(n.services,s),n.translator.on("*",function(l){for(var h=arguments.length,f=new Array(h>1?h-1:0),_=1;_<h;_++)f[_-1]=arguments[_];n.emit(l,...f)}),n.init(s,a),n.translator.options=s,n.translator.backendConnector.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},n}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const B=Xe.createInstance();B.createInstance=Xe.createInstance,B.createInstance,B.dir,B.init,B.loadResources,B.reloadResources,B.use,B.changeLanguage,B.getFixedT;const et=B.t;B.exists,B.setDefaultNamespace,B.hasLoadedNamespace,B.loadNamespaces,B.loadLanguages;var g=(e=>(e.COMMON="COMMON",e.RARE="RARE",e.EPIC="EPIC",e.LEGENDARY="LEGENDARY",e.MYTHIC="MYTHIC",e))(g||{});g.COMMON,g.RARE,g.EPIC,g.LEGENDARY,g.MYTHIC;const u={COMMON:{color:"#813D31",strength:1,id:g.COMMON,name:(e,t=1)=>et(`ranks.${g.COMMON}.text`,{count:t,context:e,ns:"common"})},RARE:{color:"#5B6870",strength:2,id:g.RARE,name:(e,t=1)=>et(`ranks.${g.RARE}.text`,{count:t,context:e,ns:"common"})},EPIC:{color:"#C46619",strength:3,id:g.EPIC,name:(e,t=1)=>et(`ranks.${g.EPIC}.text`,{count:t,context:e,ns:"common"})},LEGENDARY:{color:"#88A3CB",strength:4,id:g.LEGENDARY,name:(e,t=1)=>et(`ranks.${g.LEGENDARY}.text`,{count:t,context:e,ns:"common"})},MYTHIC:{color:"#F6bF62",strength:5,id:g.MYTHIC,name:(e,t=1)=>et(`ranks.${g.MYTHIC}.text`,{count:t,context:e,ns:"common"})}},Ta="background_default",R={exploration:{id:"writeChat",img:"exploration",isProgressive:[g.COMMON,g.RARE,g.EPIC,g.LEGENDARY,g.MYTHIC],emojis:["<:Explorateurbois:1175507909518573578>","<:Explorateurargent:1175508452467015680>","<:Explorateuror:1175507917642932245>","<:Explorateurplatine:1175507920587329586>","<:Explorateurultime:1175507922818699334>"],crew:!1},ecrire:{id:"sendMessage",img:"ecrire",isProgressive:[g.COMMON,g.RARE,g.EPIC,g.LEGENDARY,g.MYTHIC],emojis:["<:Spammeurbois:1175508156785365003>","<:Spammeurargent:1175507962249351268>","<:Spammeuror:1175507966808572007>","<:Spammeurplatine:1175507968293339167>","<:Spammeurultime:1175507863460913222>"],crew:!1},ermite:{id:"timeInVoice",img:"ermite",isProgressive:[g.COMMON,g.RARE,g.EPIC,g.LEGENDARY,g.MYTHIC],emojis:["<:Ermitebois:1175507899875868672>","<:Ermiteargent:1175508498138796153>","<:Ermiteor:1175508465746182305>","<:Ermiteplatine:1175507904695124028>","<:Ermiteultime:1175507906041499749>"],crew:!1},berry:{id:"berry",img:"berry",isProgressive:[g.COMMON,g.RARE,g.EPIC,g.LEGENDARY,g.MYTHIC],emojis:["<:ElonMuskbois:1175507891600498758>","<:ElonMuskargent:1175508764988801034>","<:ElonMuskor:1175508756700856390>","<:ElonMuskplatine:1175508739386789928>","<:ElonMuskultime:1175507895668985886>"],crew:!1},mode:{id:"spendShop",img:"mode",isProgressive:[g.COMMON,g.RARE,g.EPIC,g.LEGENDARY,g.MYTHIC],emojis:["<:FashionViktimbois:1175508381436485672>","<:FashionViktimargent:1175507924873904128>","<:FashionViktimor:1175507926719414406>","<:FashionViktimplatine:1175508345562599445>","<:FashionViktimultime:1175507931517698088>"],crew:!1},noluck:{id:"noLuck",img:"noluck",isProgressive:!1,emojis:"<:BadluckPlatine:1175507878048702505>",crew:!1},chance:{id:"chance",img:"chance",isProgressive:!1,emojis:"<:BadgeChanceux:1192743999514103869>",crew:!1},casino:{id:"casino",img:"casino",isProgressive:[g.LEGENDARY,g.MYTHIC],emojis:["<:GamblingAddict:1175507934223016047>","<:GamblingAddictDiamond:1187147920647131207>"],crew:!1},premium:{id:"premium",img:"premium",isProgressive:!1,emojis:"<:BadgesDon:1175507876056399933>",crew:!1},calendar:{id:"calendar",img:"calendar",isProgressive:!1,emojis:"<:Calendrier:1187170872176431114>",crew:!1},doublesix:{id:"doublesix",img:"doublesix",isProgressive:!1,emojis:"<:DoubleSix:1187178228624937000>",crew:!1},"black-jack":{id:"blackJack",img:"black-jack",isProgressive:!1,emojis:"<:BlackJack:1187456310137069618>",crew:!1},communism:{id:"communism",img:"communism",isProgressive:[g.COMMON,g.RARE,g.EPIC,g.LEGENDARY,g.MYTHIC],emojis:["<:cropped_communism_Bronze:1234375558184570902>","<:cropped_communism_Silver:1234375563729440789>","<:cropped_communism_Gold:1234375561154007103>","<:cropped_communism_Platinum:1234375562269687849>","<:cropped_communism_Diamond:1234375559811825705>"],crew:!0},crewship:{id:"crewship",img:"crewship",isProgressive:[g.COMMON,g.RARE,g.EPIC,g.LEGENDARY,g.MYTHIC],emojis:["<:cropped_crewship_Bronze:1234458902641246260>","<:cropped_crewship_Silver:1234458908840431617>","<:cropped_crewship_Gold:1234458905694961724>","<:cropped_crewship_Platinum:1234458907741782038>","<:cropped_crewship_Diamond:1234458904100864000>"],crew:!0},broship:{id:"broship",img:"broship",isProgressive:[g.COMMON,g.RARE,g.EPIC,g.LEGENDARY,g.MYTHIC],emojis:["<:cropped_broship_Bronze:1234537705292038175>","<:cropped_broship_Silver:1234537711214530652>","<:cropped_broship_Gold:1234537708047695892>","<:cropped_broship_Platinum:1234537710170013867>","<:cropped_broship_Diamond:1234537706810245161>"],crew:!0},shipsecte:{id:"shipsecte",img:"shipsecte",isProgressive:[g.COMMON,g.RARE,g.EPIC,g.LEGENDARY,g.MYTHIC],emojis:["<:cropped_shipsecte_Bronze:1234547646023078009>","<:cropped_shipsecte_Silver:1234547651912011827>","<:cropped_shipsecte_Gold:1234547649160675408>","<:cropped_shipsecte_Platinum:1234547650414514267>","<:cropped_shipsecte_Diamond:1234547648011173888>"],crew:!0},sardine:{id:"sardine",img:"sardine",isProgressive:[g.COMMON,g.RARE,g.EPIC,g.LEGENDARY,g.MYTHIC],emojis:["<:cropped_sardine_Bronze:1234549442799997010>","<:cropped_sardine_Silver:1234549449036927088>","<:cropped_sardine_Gold:1234549445916622988>","<:cropped_sardine_Platinum:1234549447518720050>","<:cropped_sardine_Diamond:1234549444738023484>"],crew:!0},carpenter:{id:"carpenter",img:"carpenter",isProgressive:[g.COMMON,g.RARE,g.EPIC,g.LEGENDARY,g.MYTHIC],emojis:["<:cropped_carpenter_Bronze:1234555340964626495>","<:cropped_carpenter_Silver:1234555345935007764>","<:cropped_carpenter_Gold:1234555343317635153>","<:cropped_carpenter_Platinum:1234555344819191909>","<:cropped_carpenter_Diamond:1234555342143357072>"],crew:!0},camarade:{id:"camarade",img:"camarade",isProgressive:!1,emojis:"<:cropped_camarade:1234582024077967361>",crew:!0},selfish:{id:"selfish",img:"selfish",isProgressive:!1,emojis:"<:cropped_selfish:1234587373363527780>",crew:!0},recipe:{id:"recipe",img:"recipe",isProgressive:[g.COMMON,g.RARE,g.EPIC,g.LEGENDARY,g.MYTHIC],emojis:["<:cropped_b_recipe_Bronze:1244357782573023282>","<:cropped_b_recipe_Silver:1244357788361031711>","<:cropped_b_recipe_Gold:1244357785555308574>","<:cropped_b_recipe_Platinum:1244357786750685225>","<:cropped_b_recipe_Diamond:1244357784397545526>"],crew:!1},craft:{id:"craft",img:"craft",isProgressive:[g.COMMON,g.RARE,g.EPIC,g.LEGENDARY,g.MYTHIC],emojis:["<:cropped_b_craft_Bronze:1244357834452238447>","<:cropped_b_craft_Silver:1244357840513011722>","<:cropped_b_craft_Gold:1244357837333725306>","<:cropped_b_craft_Platinum:1244357838801735761>","<:cropped_b_craft_Diamond:1244357835735695401>"],crew:!1}},ba=e=>!!e.isProgressive,Ra={satan:"satan",idiot:"idiot",edito:"edito"},nh=e=>Math.round(5e3*Math.pow(200,.01*e)/10)*10,Qi=e=>e>=1?Qi(e-1)+nh(e):0,W=(e,t=0)=>e<Qi(t+1)?t:W(e,t+1),Bi=1,rh=[[200,4],[100,3],[50,2],[0,Bi]],oh=e=>{for(const[t,a]of rh)if(e>=t)return a;return Bi},x=e=>{let t=0;for(;e>0;e-=oh(t))t++;return t};class dh{title=void 0;titleId;badge;isFactionBadge;asset;items;secret;daily;crew;repeatable}var Aa=(e=>(e.COMPLETED="COMPLETED",e.IN_PROGRESS="IN_PROGRESS",e))(Aa||{});const Lt=e=>new Intl.NumberFormat("de-DE").format(e),lh=(e,t,a=i=>i)=>e.filter(i=>!t.some(s=>a(s)===a(i))),Gi=(e,t)=>[...new Set(e.map(a=>t(a)))],uh=e=>Object.fromEntries(e),ch=e=>e.toLowerCase().replace(/[^a-zA-Z0-9]+(.)/g,(t,a)=>a.toUpperCase()).replace(/^[A-Z]/,t=>t.toLowerCase()),hh=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,fh=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,$i=/(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,Da=[/^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],mh={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:$i,monthsShortRegex:$i,monthsStrictRegex:hh,monthsShortStrictRegex:fh,monthsParse:Da,longMonthsParse:Da,shortMonthsParse:Da,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}};S.locale("fr",mh);const zi=(e,t,a=!0)=>(a?e.getFullYear()===t.getFullYear():!0)&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),qi=e=>typeof e=="function",_h={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>"}},Ki=new Oo.EventEmitter,Ji="quest/COMPLETED_QUEST",Zi=(e,t)=>{Ki.emit(Ji,e,t)},ph=e=>{Ki.on(Ji,(t,a)=>{e(t,a)})};class c extends dh{static dependencies=[];async complete(t,a){const i=new Date;i.setHours(0,0,0,0);let s;if(!await this.isCompleted(t)&&(this.daily?s=await r.userQuestService.completeQuest({lastCompletionDate:{$lt:i},questId:this.id,user:t},!0):this.repeatable?s=await r.userQuestService.completeQuest({questId:this.id,user:t}):s=await r.userQuestService.completeQuest({questId:this.id,user:t,status:Aa.IN_PROGRESS}),!!s))return await this.specificQuestCompletion(t),await this.applyReward(t),a&&Zi([t],this),!0}async applyReward(t){this.crew||(this.titleId&&await r.userOrnamentService.unlockTitle(t,this.titleId),this.badge&&await r.userOrnamentService.unlockBadge(t,this.badge,this.rankId),this.isFactionBadge&&await r.userOrnamentService.unlockFactionBadge(t,this.rankId),this.asset&&await r.userOrnamentService.unlockProfileAsset(t,this.asset),this.items&&await r.userInventoryService.addItems(t,this.items))}async getComputedRewards(t){const{DailyAll:a}=await Promise.resolve().then(()=>fo),i=new a().id,s=this.daily?await r.userQuestService.getStreakMultiplier(t,i):1,n=await r.userMetaService.get(t);return{xp:(qi(this.xp)?this.xp(n):this.xp)*s,berry:(qi(this.berry)?this.berry(n):this.berry)*s}}async specificQuestCompletion(t){this.id==="be_level_10"&&await r.userService.canChooseFaction(t,!0),this.id!=="be_level_10"&&this.id.startsWith("be_level_")&&await r.userService.canChangeFaction(t,!0)}async isCompleted(t){const{lastCompletionDate:a,status:i}=await r.userQuestService.get({user:t,questId:this.id});return this.repeatable?!1:this.daily?i==="COMPLETED"&&!!a&&zi(a,new Date):i==="COMPLETED"}}class Xi extends c{name="Jeune étudiant";id="drink_50_alcohols";rankId=u.COMMON.id;description="Boire 50 alcools";berry=5e5;xp=2e4;titleId="title_Jeune étudiant";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.totalConsumed>=50}}class es extends c{name="Habitué des bars";id="drink_250_alcohols";rankId=u.RARE.id;description="Boire 250 alcools";berry=2e6;xp=5e4;titleId="title_Habitué des bars";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.totalConsumed>=250}}class ts extends c{name="Alcoolique notoire";id="drink_500_alcohols";rankId=u.EPIC.id;description="Boire 500 alcools";berry=1e7;xp=1e5;titleId="title_Alcoolique notoire";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.totalConsumed>=500}}class as extends c{name="Ivrogne";id="drink_1000_alcohols";rankId=u.LEGENDARY.id;description="Boire 1000 alcools";berry=5e7;xp=2e5;titleId="title_Ivrogne";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.totalConsumed>=1e3}}class is extends c{name="Breton";id="drink_2000_alcohols";rankId=u.MYTHIC.id;description="Boire 2000 alcools";berry=1e8;xp=5e5;titleId="title_Breton";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.totalConsumed>=2e3}}class ss extends c{name="Buveur de Rhum";id="drink_10_rhum";rankId=u.COMMON.id;description="Boire 10 Rhums";berry=5e5;xp=2e4;titleId="title_Buveur de Rhum";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.rhums>=10}}class ns extends c{name="Amateur de Rhum";id="drink_100_rhum";rankId=u.RARE.id;description="Boire 100 Rhums";berry=2e6;xp=5e4;titleId="title_Amateur de Rhum";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.rhums>=100}}class rs extends c{name="Connaisseur de Rhum";id="drink_250_rhum";rankId=u.EPIC.id;description="Boire 250 Rhums";berry=1e7;xp=1e5;titleId="title_Connaisseur de Rhum";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.rhums>=250}}class os extends c{name="Rhumologue";id="drink_500_rhum";rankId=u.LEGENDARY.id;description="Boire 500 Rhums";berry=5e7;xp=2e5;titleId="title_Rhumologue";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.rhums>=500}}class ds extends c{name="Dieu du Rhum";id="drink_1000_rhum";rankId=u.MYTHIC.id;description="Boire 1000 Rhums";berry=1e8;xp=5e5;titleId="title_Dieu du Rhum";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.rhums>=1e3}}class ls extends c{name="Buveur de Bière";id="drink_10_beer";rankId=u.COMMON.id;description="Boire 10 Bières";berry=5e5;xp=2e4;titleId="title_Buveur de Bière";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.beers>=10}}class us extends c{name="Amateur de Bière";id="drink_100_beer";rankId=u.RARE.id;description="Boire 100 Bières";berry=2e6;xp=5e4;titleId="title_Amateur de Rhum";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.beers>=100}}class cs extends c{name="Connaisseur de Bière";id="drink_250_beer";rankId=u.EPIC.id;description="Boire 250 Bières";berry=1e7;xp=1e5;titleId="title_Connaisseur de Rhum";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.beers>=250}}class hs extends c{name="Bièrologue";id="drink_500_beer";rankId=u.LEGENDARY.id;description="Boire 500 Bières";berry=5e7;xp=2e5;titleId="title_Bièrologue";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.beers>=500}}class fs extends c{name="Dieu de la Bière";id="drink_1000_beer";rankId=u.MYTHIC.id;description="Boire 1000 Bières";berry=1e8;xp=5e5;titleId="title_Dieu de la Bière";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.beers>=1e3}}class ms extends c{name="Buveur de Vin";id="drink_10_wine";rankId=u.COMMON.id;description="Boire 10 Vins";berry=5e5;xp=2e4;titleId="title_Buveur de Vin";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.wines>=10}}class _s extends c{name="Amateur de Vin";id="drink_100_wine";rankId=u.RARE.id;description="Boire 100 Vins";berry=2e6;xp=5e4;titleId="title_Amateur de Vin";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.wines>=100}}class ps extends c{name="Connaisseur de Vin";id="drink_250_wine";rankId=u.EPIC.id;description="Boire 250 Vins";berry=1e7;xp=1e5;titleId="title_Connaisseur de Vin";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.wines>=250}}class gs extends c{name="Vinologue";id="drink_500_wine";rankId=u.LEGENDARY.id;description="Boire 500 Vins";berry=1e7;xp=2e5;titleId="title_Vinologue";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.wines>=500}}class Es extends c{name="Dieu du Vin";id="drink_1000_wine";rankId=u.MYTHIC.id;description="Boire 1000 Vins";berry=1e8;xp=5e5;titleId="title_Dieu du Vin";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{alcohols:i}=t??await r.userStatsInventoryService.get(a);return i.wines>=1e3}}const gh=Object.freeze(Object.defineProperty({__proto__:null,Drink1000Alcohols:as,Drink1000Beer:fs,Drink1000Rhum:ds,Drink1000Wine:Es,Drink100Beer:us,Drink100Rhum:ns,Drink100Wine:_s,Drink10Beer:ls,Drink10Rhum:ss,Drink10Wine:ms,Drink2000Alcohols:is,Drink250Alcohols:es,Drink250Beer:cs,Drink250Rhum:rs,Drink250Wine:ps,Drink500Alcohols:ts,Drink500Beer:hs,Drink500Rhum:os,Drink500Wine:gs,Drink50Alcohols:Xi},Symbol.toStringTag,{value:"Module"}));class Ss extends c{name="Un poster dans ta chambre";id="have_1_background";rankId=u.EPIC.id;description="Avoir 1 background";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_ORNAMENT];async isValidated({userOrnament:t},a){const{unlockedBackgrounds:i}=t??await r.userOrnamentService.get(a);return i.filter(s=>s!==Ta).length>=1}}class ys extends c{name="Fan de One Piece";id="have_25_background";rankId=u.LEGENDARY.id;description="Avoir 25 backgrounds différents";berry=5e6;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_ORNAMENT];async isValidated({userOrnament:t},a){const{unlockedBackgrounds:i}=t??await r.userOrnamentService.get(a);return i.filter(s=>s!==Ta).length>=25}}class Ms extends c{name="Tu vas en faire quoi ? Tu peux en mettre qu'un";id="have_50_background";rankId=u.MYTHIC.id;description="Avoir 50 backgrounds différents";berry=5e7;xp=25e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_ORNAMENT];async isValidated({userOrnament:t},a){const{unlockedBackgrounds:i}=t??await r.userOrnamentService.get(a);return i.filter(s=>s!==Ta).length>=50}}const Eh=Object.freeze(Object.defineProperty({__proto__:null,Have1Background:Ss,Have25Background:ys,Have50Background:Ms},Symbol.toStringTag,{value:"Module"}));class Ts extends c{name="Enfin de quoi t'acheter un bon vélo !";id="have_500000_berry";rankId=u.COMMON.id;description="Avoir 500 000 Berrys";berry=1e5;xp=5e3;badge=R.berry;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{berry:i}=t??await r.userMetaService.get(a);return i>=5e5}}class bs extends c{name="Ouah t'es multi-millionaire !";id="have_5000000_berry";rankId=u.RARE.id;description="Avoir 5 000 000 Berrys";berry=1e6;xp=25e3;badge=R.berry;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{berry:i}=t??await r.userMetaService.get(a);return i>=5e6}}class Rs extends c{name="Presque riche";id="have_50000000_berry";rankId=u.EPIC.id;description="Avoir 50 000 000 Berrys";berry=1e7;xp=5e4;badge=R.berry;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{berry:i}=t??await r.userMetaService.get(a);return i>=5e7}}class As extends c{name="Un 20m² à Paris";id="have_500000000_berry";rankId=u.LEGENDARY.id;description="Avoir 500 000 000 Berrys";berry=1e8;xp=1e5;badge=R.berry;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{berry:i}=t??await r.userMetaService.get(a);return i>=5e8}}class Ds extends c{name="This is Elon Musk";id="have_5000000000_berry";rankId=u.MYTHIC.id;description="Avoir 5 000 000 000 Berrys";berry=1e9;xp=25e4;titleId="title_Elon Musk";badge=R.berry;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{berry:i}=t??await r.userMetaService.get(a);return i>=5e9}}const Sh=Object.freeze(Object.defineProperty({__proto__:null,Have500kBerry:Ts,Have500mBerry:As,Have50mBerry:Rs,Have5mBerry:bs,Have5mdBerry:Ds},Symbol.toStringTag,{value:"Module"}));class Ns extends c{name="Petit joueur";id="bet_min_value";rankId=u.RARE.id;description="Mise la somme minimale lors d'un pari";berry=5e4;xp=1e4;secret=!0;titleId="title_Petit joueur";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_FLAGS];async isValidated({userStatsFlags:t},a){const{gamblingFlags:i}=t??await r.userStatsFlagsService.get(a);return i.betMin}}class Is extends c{name="On a tous le droit à une seconde chance";id="lose_everything";rankId=u.RARE.id;description="Perdre tous ses Berrys";berry=1e5;xp=1e4;secret=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_FLAGS];async isValidated({userStatsFlags:t},a){const{gamblingFlags:i}=t??await r.userStatsFlagsService.get(a);return i.loseEverything}}class ws extends c{name="T'es sûr de toi ?";id="bet_10M";rankId=u.EPIC.id;description="Miser 10 000 000 de Berrys en une seule fois";berry=5e5;xp=5e4;secret=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_FLAGS];async isValidated({userStatsFlags:t},a){const{gamblingFlags:i}=t??await r.userStatsFlagsService.get(a);return i.bet10M}}class vs extends c{name="Ok j'ai rien dit";id="win_10M_bet";rankId=u.LEGENDARY.id;description="Gagner en ayant misé 10M de Berrys";berry=1e6;xp=5e4;secret=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_FLAGS];async isValidated({userStatsFlags:t},a){const{gamblingFlags:i}=t??await r.userStatsFlagsService.get(a);return i.winBet10M}}class ks extends c{name="T'es accro là non ?";id="bet_total_10M";rankId=u.LEGENDARY.id;description="Miser plus de 10 000 000 de Berrys en tout";berry=1e6;xp=1e5;titleId="title_Gambling addict";badge=R.casino;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{totalBet:i}=t??await r.userStatsCasinoService.get(a);return i>=1e7}}class Os extends c{name="LE MILLIARD";id="bet_total_1Md";rankId=u.MYTHIC.id;description="Miser plus de 1 000 000 000 de Berrys en tout";berry=5e7;xp=25e4;badge=R.casino;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{totalBet:i}=t??await r.userStatsCasinoService.get(a);return i>=1e9}}class xs extends c{name="Cheh !";id="lose_10M";rankId=u.LEGENDARY.id;description="Perdre 10M de Berrys en une fois";berry=1e6;xp=1e5;secret=!0;badge=R.noluck;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_FLAGS];async isValidated({userStatsFlags:t},a){const{gamblingFlags:i}=t??await r.userStatsFlagsService.get(a);return i.lose10M}}const yh=Object.freeze(Object.defineProperty({__proto__:null,Bet10M:ws,BetMinValue:Ns,Lose10M:xs,LoseEverything:Is,TotalBet10M:ks,TotalBet1Md:Os,WinOn10MBet:vs},Symbol.toStringTag,{value:"Module"}));class Cs extends c{name="Bon anniversaire !";id="birthday";rankId=u.EPIC.id;description="Fêter son anniversaire";berry=1e6;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_FLAGS];async isValidated({userStatsFlags:t},a){const{hasCelebrateBirthday:i}=t??await r.userStatsFlagsService.get(a);return i}}const Mh=Object.freeze(Object.defineProperty({__proto__:null,Birthday:Cs},Symbol.toStringTag,{value:"Module"}));class Ls extends c{name="Il ne va pas te répondre tu sais ?";id="bot_ping";rankId=u.EPIC.id;description="Ping le bot 100 fois";berry=25e4;xp=25e3;secret=!0;titleId="title_Teubé";asset=Ra.idiot;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_FLAGS];async isValidated({userStatsFlags:t},a){const{botPingCount:i}=t??await r.userStatsFlagsService.get(a);return i>=100}}const Th=Object.freeze(Object.defineProperty({__proto__:null,BotPing:Ls},Symbol.toStringTag,{value:"Module"}));class Vs extends c{name="5 jours / semaine à Basic Fit";id="have_25_strength";rankId=u.COMMON.id;description="Avoir 25 de force";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.strength)>=25}}class Us extends c{name="La fonte > les livres";id="have_50_strength";rankId=u.RARE.id;description="Avoir 50 de force";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.strength)>=50}}class Ys extends c{name="Moi, musclé ?";id="have_100_strength";rankId=u.EPIC.id;description="Avoir 100 de force";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.strength)>=100}}class Ps extends c{name="Hercules";id="have_250_strength";rankId=u.LEGENDARY.id;description="Avoir 250 de force";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.strength)>=250}}class Ws extends c{name="Titan";id="have_500_strength";rankId=u.MYTHIC.id;description="Avoir 500 de force";berry=5e7;xp=25e4;titleId="title_Titan";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.strength)>=500}}class Hs extends c{name="Chat de gouttière";id="have_25_agility";rankId=u.COMMON.id;description="Avoir 25 d'agilité";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.agility)>=25}}class Fs extends c{name="Hop ! Grand écart !";id="have_50_agility";rankId=u.RARE.id;description="Avoir 50 d'agilité";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.agility)>=50}}class js extends c{name="Danseur étoile";id="have_100_agility";rankId=u.EPIC.id;description="Avoir 100 d'agilité";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.agility)>=100}}class Qs extends c{name="L'Éclair de Konoha ! (merde mauvais manga)";id="have_250_agility";rankId=u.LEGENDARY.id;description="Avoir 250 d'agilité";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.agility)>=250}}class Bs extends c{name="Héritier de Bon Clay";id="have_500_agility";rankId=u.MYTHIC.id;description="Avoir 500 d'agilité";berry=5e7;xp=25e4;titleId="title_Héritier de Bon Clay";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.agility)>=500}}class Gs extends c{name="2+2 = 4";id="have_25_intelligence";rankId=u.COMMON.id;description="Avoir 25 d'intelligence";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.intelligence)>=25}}class $s extends c{name="Petit Einstein";id="have_50_intelligence";rankId=u.RARE.id;description="Avoir 50 d'intelligence";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.intelligence)>=50}}class zs extends c{name="HPI";id="have_100_intelligence";rankId=u.EPIC.id;description="Avoir 100 d'intelligence";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.intelligence)>=100}}class qs extends c{name="Sorcier du savoir";id="have_250_intelligence";rankId=u.LEGENDARY.id;description="Avoir 250 d'intelligence";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.intelligence)>=250}}class Ks extends c{name="Héritier de Vegapunk";id="have_500_intelligence";rankId=u.MYTHIC.id;description="Avoir 500 d'intelligence";berry=5e7;xp=25e4;titleId="title_Héritier de Vegapunk";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.intelligence)>=500}}class Js extends c{name="Touche du bois";id="have_25_chance";rankId=u.COMMON.id;description="Avoir 25 de chance";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.chance)>=25}}class Zs extends c{name="Petit veinard";id="have_50_chance";rankId=u.RARE.id;description="Avoir 50 de chance";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.chance)>=50}}class Xs extends c{name="LA CHAAAAAATTE !";id="have_100_chance";rankId=u.EPIC.id;description="Avoir 100 de chance";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.chance)>=100}}class en extends c{name="Favori des Astres";id="have_250_chance";rankId=u.LEGENDARY.id;description="Avoir 250 de chance";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.chance)>=250}}class tn extends c{name="Héritier de Baggy";id="have_500_chance";rankId=u.MYTHIC.id;description="Avoir 500 de chance";berry=5e7;xp=25e4;titleId="title_Héritier de Baggy";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.chance)>=500}}class an extends c{name="Résistant";id="have_25_vitality";rankId=u.COMMON.id;description="Avoir 25 de vitalité";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.vitality)>=25}}class sn extends c{name="Solide comme un roc";id="have_50_vitality";rankId=u.RARE.id;description="Avoir 50 de vitalité";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.vitality)>=50}}class nn extends c{name="Le tank !";id="have_100_vitality";rankId=u.EPIC.id;description="Avoir 100 de vitalité";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.vitality)>=100}}class rn extends c{name="Mais t'es increvable !";id="have_250_vitality";rankId=u.LEGENDARY.id;description="Avoir 250 de vitalité";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.vitality)>=250}}class on extends c{name="Héritier de Kaido";id="have_500_vitality";rankId=u.MYTHIC.id;description="Avoir 500 de vitalité";berry=5e7;xp=25e4;titleId="title_Héritier de Kaido";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.vitality)>=500}}class dn extends c{name="Tu as lu des livres ?";id="have_25_wisdom";rankId=u.COMMON.id;description="Avoir 25 de sagesse";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.wisdom)>=25}}class ln extends c{name="Filozof";id="have_50_wisdom";rankId=u.RARE.id;description="Avoir 50 de sagesse";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.wisdom)>=50}}class un extends c{name="Platon";id="have_100_wisdom";rankId=u.EPIC.id;description="Avoir 100 de sagesse";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.wisdom)>=100}}class cn extends c{name="Oracle vénéré";id="have_250_wisdom";rankId=u.LEGENDARY.id;description="Avoir 250 de sagesse";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.wisdom)>=250}}class hn extends c{name="Héritier d'Ohara";id="have_500_wisdom";rankId=u.MYTHIC.id;description="Avoir 500 de sagesse";berry=5e7;xp=25e4;titleId="title_Héritier d'Ohara";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{characteristics:i}=t??await r.userMetaService.get(a);return x(i.wisdom)>=500}}const bh=Object.freeze(Object.defineProperty({__proto__:null,Have100Agility:js,Have100Chance:Xs,Have100Intelligence:zs,Have100Strength:Ys,Have100Vitality:nn,Have100Wisdom:un,Have250Agility:Qs,Have250Chance:en,Have250Intelligence:qs,Have250Strength:Ps,Have250Vitality:rn,Have250Wisdom:cn,Have25Agility:Hs,Have25Chance:Js,Have25Intelligence:Gs,Have25Strength:Vs,Have25Vitality:an,Have25Wisdom:dn,Have500Agility:Bs,Have500Chance:tn,Have500Intelligence:Ks,Have500Strength:Ws,Have500Vitality:on,Have500Wisdom:hn,Have50Agility:Fs,Have50Chance:Zs,Have50Intelligence:$s,Have50Strength:Us,Have50Vitality:sn,Have50Wisdom:ln},Symbol.toStringTag,{value:"Module"}));class fn extends c{name="Ils font mieux chez Ikea";id="craft_20_times";rankId=u.COMMON.id;description="Effectuer 20 crafts";berry=5e4;xp=5e3;badge=R.craft;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{crafts:i}=t??await r.userStatsInventoryService.get(a);return i.totalCrafted>=20}}class mn extends c{name="Te fais pas mal avec le marteau";id="craft_50_times";rankId=u.RARE.id;description="Effectuer 50 crafts";berry=2e5;xp=25e3;badge=R.craft;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{crafts:i}=t??await r.userStatsInventoryService.get(a);return i.totalCrafted>=50}}class _n extends c{name="Insensible aux échardes on dirait";id="craft_200_times";rankId=u.EPIC.id;description="Effectuer 200 crafts";berry=1e6;xp=5e4;badge=R.craft;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{crafts:i}=t??await r.userStatsInventoryService.get(a);return i.totalCrafted>=200}}class pn extends c{name="Je ne veux pas voir l'état de ton atelier";id="craft_500_times";rankId=u.LEGENDARY.id;description="Effectuer 500 crafts";berry=1e6;xp=1e5;badge=R.craft;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{crafts:i}=t??await r.userStatsInventoryService.get(a);return i.totalCrafted>=500}}class gn extends c{name="Mac Gyver";id="craft_1000_times";rankId=u.MYTHIC.id;description="Effectuer 1000 crafts";berry=5e7;xp=25e4;titleId="title_Mac Gyver";badge=R.craft;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{crafts:i}=t??await r.userStatsInventoryService.get(a);return i.totalCrafted>=1e3}}class En extends c{name="Apprenti Gourmand";id="craft_10_cooked_meals";rankId=u.COMMON.id;description="Cuisiner 10 plats";berry=5e5;xp=2e4;titleId="title_Apprenti Gourmand";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{crafts:i}=t??await r.userStatsInventoryService.get(a);return i.cookedMeal>=10}}class Sn extends c{name="Chef Amateur";id="craft_50_cooked_meals";rankId=u.RARE.id;description="Cuisiner 50 plats";berry=2e5;xp=5e4;titleId="title_Chef Amateur";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{crafts:i}=t??await r.userStatsInventoryService.get(a);return i.cookedMeal>=50}}class yn extends c{name="Maître des Saveurs";id="craft_100_cooked_meals";rankId=u.EPIC.id;description="Cuisiner 100 plats";berry=1e7;xp=1e5;titleId="title_Maître des Saveurs";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{crafts:i}=t??await r.userStatsInventoryService.get(a);return i.cookedMeal>=100}}class Mn extends c{name="Artiste Culinaire";id="craft_250_cooked_meals";rankId=u.LEGENDARY.id;description="Cuisiner 250 plats";berry=5e7;xp=2e5;titleId="title_Artiste Culinaire";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{crafts:i}=t??await r.userStatsInventoryService.get(a);return i.cookedMeal>=250}}class Tn extends c{name="Sultan des Épices";id="craft_500_cooked_meals";rankId=u.MYTHIC.id;description="Cuisiner 500 plats";berry=1e8;xp=5e5;titleId="title_Sultan des Épices";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{crafts:i}=t??await r.userStatsInventoryService.get(a);return i.cookedMeal>=500}}class bn extends c{name="C'est une bonne situation ça scribe ?";id="craft_5_scrolls";rankId=u.COMMON.id;description="Craft 5 Parchemins";berry=5e5;xp=2e4;titleId="title_Apprenti Scribe";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{crafts:i}=t??await r.userStatsInventoryService.get(a);return i.scrolls>=5}}class Rn extends c{name="Artisan des Runes";id="craft_10_scrolls";rankId=u.RARE.id;description="Craft 10 Parchemins";berry=2e6;xp=5e4;titleId="title_Artisan des Runes";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{crafts:i}=t??await r.userStatsInventoryService.get(a);return i.scrolls>=10}}class An extends c{name="Collectionneur des Manuscrits";id="craft_20_scrolls";rankId=u.EPIC.id;description="Craft 20 Parchemins";berry=1e7;xp=1e5;titleId="title_Collectionneur de Manuscrits";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{crafts:i}=t??await r.userStatsInventoryService.get(a);return i.scrolls>=20}}class Dn extends c{name="Maître des Enluminures";id="craft_50_scrolls";rankId=u.LEGENDARY.id;description="Craft 50 Parchemins";berry=5e7;xp=2e5;titleId="title_Maître des Enluminures";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{crafts:i}=t??await r.userStatsInventoryService.get(a);return i.scrolls>=50}}class Nn extends c{name="Protecteur du Savoir";id="craft_100_scrolls";rankId=u.MYTHIC.id;description="Craft 100 Parchemins";berry=1e8;xp=5e5;titleId="title_Protecteur du Savoir";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{crafts:i}=t??await r.userStatsInventoryService.get(a);return i.scrolls>=100}}const Rh=Object.freeze(Object.defineProperty({__proto__:null,Craft1000Times:gn,Craft100CookedMeals:yn,Craft100Scrolls:Nn,Craft10CookedMeals:En,Craft10Scrolls:Rn,Craft200Times:_n,Craft20Scrolls:An,Craft20Times:fn,Craft250CookedMeals:Mn,Craft500CookedMeals:Tn,Craft500Times:pn,Craft50CookedMeals:Sn,Craft50Scrolls:Dn,Craft50Times:mn,Craft5Scrolls:bn},Symbol.toStringTag,{value:"Module"}));class In extends c{name="Vaut mieux ça que perdre non ?";id="draw_100";rankId=u.COMMON.id;description="Faire 100 égalités";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{drawCount:i}=t??await r.userStatsCasinoService.get(a);return i>=100}}class wn extends c{name="Tu as trouvé ton rival";id="draw_300";rankId=u.RARE.id;description="Faire 300 égalités";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{drawCount:i}=t??await r.userStatsCasinoService.get(a);return i>=300}}class vn extends c{name="Rathon c'est toi ?";id="draw_1000";rankId=u.EPIC.id;description="Faire 1000 égalités";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{drawCount:i}=t??await r.userStatsCasinoService.get(a);return i>=1e3}}class kn extends c{name="Tu te bats contre un mur ou quoi ?";id="draw_2000";rankId=u.LEGENDARY.id;description="Faire 2000 égalités";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{drawCount:i}=t??await r.userStatsCasinoService.get(a);return i>=2e3}}class On extends c{name="De vrais jumeaux";id="draw_5000";rankId=u.MYTHIC.id;description="Faire 5000 égalités";berry=5e7;xp=25e4;titleId="title_Égalitaire";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{drawCount:i}=t??await r.userStatsCasinoService.get(a);return i>=5e3}}const Ah=Object.freeze(Object.defineProperty({__proto__:null,Draw1000Quest:vn,Draw100Quest:In,Draw2000Quest:kn,Draw300Quest:wn,Draw5000Quest:On},Symbol.toStringTag,{value:"Module"}));class xn extends c{name="Y'a un truc que t'as pas compris ?";id="edito_read_100";rankId=u.EPIC.id;description="Lire 100 fois l'édito en une journée";berry=25e4;xp=25e3;secret=!0;titleId="title_Culturé";asset=Ra.edito;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_FREQUENCY];async isValidated({userStatsFrequency:t},a){const{edito:i}=t??await r.userStatsFrequencyService.get(a);return i.readToday>=100}}const Dh=Object.freeze(Object.defineProperty({__proto__:null,Edito:xn},Symbol.toStringTag,{value:"Module"}));class Cn extends c{name="Une fois, pas deux";id="everyone";rankId=u.LEGENDARY.id;description="Tenter de tag everyone";berry=-1e6;xp=-5e4;secret=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_FLAGS];async isValidated({userStatsFlags:t},a){const{tagEveryone:i}=t??await r.userStatsFlagsService.get(a);return i}}const Nh=Object.freeze(Object.defineProperty({__proto__:null,Everyone:Cn},Symbol.toStringTag,{value:"Module"}));class Ln extends c{name="Emoji Diable";id="double_six";rankId=u.LEGENDARY.id;description="Faire 50 fois un double six";berry=1e6;xp=1e5;badge=R.doublesix;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{dice:i}=t??await r.userStatsCasinoService.get(a);return i.doubleSixCount>=50}}class Vn extends c{name="Pas de chance ^^";id="draw_double_six";rankId=u.RARE.id;description="Faire une fois une égalité en double 6";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{dice:i}=t??await r.userStatsCasinoService.get(a);return i.drawWithDoubleSixCount>=1}}class Un extends c{name="Jamais 6 sans 7";id="seven_quitte_ou_double";rankId=u.MYTHIC.id;description='Gagner 7 fois de suite "Doubles" au Quitte ou Double';berry=5e7;xp=25e4;badge=R.chance;titleId="title_Chanceux";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{doubleOrQuit:i}=t??await r.userStatsCasinoService.get(a);return i.sevenDoubleInARowCount>=1}}class Yn extends c{name="Le 5 à la suite";id="win_5_in_row";rankId=u.EPIC.id;description="Gagner à 5 jeux différents du casino à la suite";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{lastGames:i}=t??await r.userStatsCasinoService.get(a),s=i.slice(0,5);return s.length!==5||Gi(s,n=>n.gameType).length<5?!1:s.reduce((n,o)=>n+o.endState,0)===5}}class Pn extends c{name="Le 5 à la suite, mais dans l'autre sens";id="lose_5_in_row";rankId=u.EPIC.id;description="Perdre à 5 jeux différents du casino à la suite";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{lastGames:i}=t??await r.userStatsCasinoService.get(a),s=i.slice(0,5);return s.length!==5||Gi(s,n=>n.gameType).length<5?!1:s.reduce((n,o)=>n+o.endState,0)===-5}}class Wn extends c{name="Jacques le noir";id="ten_black_jack";rankId=u.LEGENDARY.id;description="Faire 10 fois BlackJack";berry=5e6;xp=5e4;badge=R["black-jack"];static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{blackJack:i}=t??await r.userStatsCasinoService.get(a);return i.blackJackCount>=10}}class Hn extends c{name="La feuille enveloppe la pierre ! T'es sûr ?";id="paper_100";rankId=u.LEGENDARY.id;description="Faire 100 fois de suite Papier au PPC";berry=1e6;xp=1e5;titleId="title_Papyrus";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{rps:i}=t??await r.userStatsCasinoService.get(a);return i.lastRpsPlayed==="paper"&&i.count>=100}}class Fn extends c{name="On fait la paire !";id="scissor_100";rankId=u.LEGENDARY.id;description="Faire 100 fois de suite Ciseaux au PPC";berry=1e6;xp=1e5;titleId="title_Couturier";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{rps:i}=t??await r.userStatsCasinoService.get(a);return i.lastRpsPlayed==="scissor"&&i.count>=100}}class jn extends c{name="Golem";id="rock_100";rankId=u.LEGENDARY.id;description="Faire 100 fois de suite Pierre au PPC";berry=1e6;xp=1e5;titleId="title_Golem";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{rps:i}=t??await r.userStatsCasinoService.get(a);return i.lastRpsPlayed==="rock"&&i.count>=100}}class Qn extends c{name="LE NEUF ET LE HUIT !!!";id="guess_in_one";rankId=u.MYTHIC.id;description="Deviner le Juste Prix en un coup";berry=5e7;xp=25e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{priceIsRight:i}=t??await r.userStatsCasinoService.get(a);return i.guessInOneTryCount>=1}}class Bn extends c{name="Sataniste";id="bet_666_33_days";rankId=u.LEGENDARY.id;description="Miser 666 Berry au moins une fois par jour pendant 33 jours";berry=1e6;xp=5e4;secret=!0;titleId="title_Démon";asset=Ra.satan;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{bet666:i}=t??await r.userStatsCasinoService.get(a);return i.count>=33}}class Gn extends c{name="Jour, Nuit";id="win_lose_10_times";rankId=u.LEGENDARY.id;description='Faire un enchaînement "Victoire/Défaite" 10 fois de suite';berry=1e6;xp=5e4;secret=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_CASINO];async isValidated({userStatsCasino:t},a){const{lastGames:i}=t??await r.userStatsCasinoService.get(a);if(i.length!==20)return!1;const s=i[0].endState,n=s===1?-1:1;if(s===0)return!1;for(let o=0;o<i.length;o++)if(o%2===0&&i[o].endState!==s||o%2!==0&&i[o].endState!==n)return!1;return!0}}const Ih=Object.freeze(Object.defineProperty({__proto__:null,Bet666:Bn,DoubleSix:Ln,DrawDoubleSix:Vn,GuessInOne:Qn,LoseAll5GamesInRow:Pn,Paper100:Hn,Rock100:jn,Scissor100:Fn,SevenQuitteOuDouble:Un,TenBlackJack:Wn,WinAll5GamesInRow:Yn,WinLose10:Gn},Symbol.toStringTag,{value:"Module"}));class $n extends c{name="Tu avais soif ?";id="drink_100_xp_bottles_1_day";rankId=u.LEGENDARY.id;description="Boire 100 Potions d'XP en une journée";berry=1e6;xp=5e4;secret=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{bottle:i}=t??await r.userStatsInventoryService.get(a);return i.usedToday>=100}}class zn extends c{name="Un ptit goût amer non ?";id="drink_200";rankId=u.COMMON.id;description="Boire 200 Potions d'XP";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{bottle:i}=t??await r.userStatsInventoryService.get(a);return i.totalUsed>=200}}class qn extends c{name="Ça se boit bien finalement";id="drink_500";rankId=u.RARE.id;description="Boire 500 Potions d'XP";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{bottle:i}=t??await r.userStatsInventoryService.get(a);return i.totalUsed>=500}}class Kn extends c{name="Les potions donnent des aiiiiles !";id="drink_1000";rankId=u.EPIC.id;description="Boire 1000 Potions d'XP";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{bottle:i}=t??await r.userStatsInventoryService.get(a);return i.totalUsed>=1e3}}class Jn extends c{name="À deux doigts de vomir";id="drink_2000";rankId=u.LEGENDARY.id;description="Boire 2000 Potions d'XP";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{bottle:i}=t??await r.userStatsInventoryService.get(a);return i.totalUsed>=2e3}}class Zn extends c{name="Alcoolique";id="drink_5000";rankId=u.MYTHIC.id;description="Boire 5000 Potions d'XP";berry=5e7;xp=25e4;titleId="title_Alcoolique";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{bottle:i}=t??await r.userStatsInventoryService.get(a);return i.totalUsed>=5e3}}class Xn extends c{name="C'est sympa ce ptit jeu";id="chest_open_50";rankId=u.COMMON.id;description="Ouvrir 50 Coffres";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{chest:i}=t??await r.userStatsInventoryService.get(a);return i.totalOpened>=50}}class er extends c{name="T'as enfin eu un truc intéressant ?";id="chest_open_150";rankId=u.RARE.id;description="Ouvrir 150 Coffres";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{chest:i}=t??await r.userStatsInventoryService.get(a);return i.totalOpened>=150}}class tr extends c{name="Ça commence à gratter hein ?";id="chest_open_500";rankId=u.EPIC.id;description="Ouvrir 500 Coffres";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{chest:i}=t??await r.userStatsInventoryService.get(a);return i.totalOpened>=500}}class ar extends c{name="LAISSEZ-MOI OUVRIR DES COFFRES !";id="chest_open_1000";rankId=u.LEGENDARY.id;description="Ouvrir 1000 Coffres";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{chest:i}=t??await r.userStatsInventoryService.get(a);return i.totalOpened>=1e3}}class ir extends c{name="xXFan2GenshinXx";id="chest_open_2000";rankId=u.MYTHIC.id;description="Ouvrir 2000 Coffres";berry=5e7;xp=25e4;titleId="title_Gatcha Addict";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_INVENTORY];async isValidated({userStatsInventory:t},a){const{chest:i}=t??await r.userStatsInventoryService.get(a);return i.totalOpened>=2e3}}const wh=Object.freeze(Object.defineProperty({__proto__:null,ChestOpen1000Quest:ar,ChestOpen150Quest:er,ChestOpen2000Quest:ir,ChestOpen500Quest:tr,ChestOpen50Quest:Xn,Drink1000Quest:Kn,Drink100Today:$n,Drink2000Quest:Jn,Drink200Quest:zn,Drink5000Quest:Zn,Drink500Quest:qn},Symbol.toStringTag,{value:"Module"}));class sr extends c{name="Bienvenue à bord !";id="crew_create_or_join";rankId=u.LEGENDARY.id;description="Créer ou rejoindre un équipage";berry=1e6;xp=1e5;crew=!1;async isValidated(){return!1}}const vh=Object.freeze(Object.defineProperty({__proto__:null,CrewCreateOrJoin:sr},Symbol.toStringTag,{value:"Module"}));class nr extends c{name="Un pas devant l'autre !";id="be_level_10";rankId=u.COMMON.id;description="Atteindre le niveau 10";berry=1e5;xp=0;isFactionBadge=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{xp:i}=t??await r.userMetaService.get(a);return W(i.amount)>=10}}class rr extends c{name="T'inquiète pas ça va bien se passer";id="be_level_20";rankId=u.COMMON.id;description="Atteindre le niveau 20";berry=3e5;xp=0;isFactionBadge=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{xp:i}=t??await r.userMetaService.get(a);return W(i.amount)>=20}}class or extends c{name="Commence par me parler poliment";id="be_level_30";rankId=u.RARE.id;description="Atteindre le niveau 30";berry=1e6;xp=0;isFactionBadge=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{xp:i}=t??await r.userMetaService.get(a);return W(i.amount)>=30}}class dr extends c{name="On te respecte à la cantine";id="be_level_40";rankId=u.RARE.id;description="Atteindre le niveau 40";berry=3e6;xp=0;isFactionBadge=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{xp:i}=t??await r.userMetaService.get(a);return W(i.amount)>=40}}class lr extends c{name="Ça commence à devenir sérieux";id="be_level_50";rankId=u.EPIC.id;description="Atteindre le niveau 50";berry=5e6;xp=0;isFactionBadge=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{xp:i}=t??await r.userMetaService.get(a);return W(i.amount)>=50}}class ur extends c{name="Une chambre individuelle ? La chance !";id="be_level_60";rankId=u.EPIC.id;description="Atteindre le niveau 60";berry=1e7;xp=0;isFactionBadge=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{xp:i}=t??await r.userMetaService.get(a);return W(i.amount)>=60}}class cr extends c{name="Oulah, les responsabilités arrivent";id="be_level_70";rankId=u.LEGENDARY.id;description="Atteindre le niveau 70";berry=5e7;xp=0;isFactionBadge=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{xp:i}=t??await r.userMetaService.get(a);return W(i.amount)>=70}}class hr extends c{name="Faut pas t'emmerder toi";id="be_level_80";rankId=u.LEGENDARY.id;description="Atteindre le niveau 80";berry=5e7;xp=0;isFactionBadge=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{xp:i}=t??await r.userMetaService.get(a);return W(i.amount)>=80}}class fr extends c{name="Là on parle !";id="be_level_90";rankId=u.MYTHIC.id;description="Atteindre le niveau 90";berry=1e8;xp=0;isFactionBadge=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{xp:i}=t??await r.userMetaService.get(a);return W(i.amount)>=90}}class mr extends c{name="*S'agenouille*";id="be_level_100";rankId=u.MYTHIC.id;description="Atteindre le niveau 100";berry=1e9;xp=0;isFactionBadge=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{xp:i}=t??await r.userMetaService.get(a);return W(i.amount)>=100}}const kh=Object.freeze(Object.defineProperty({__proto__:null,BeLevel10:nr,BeLevel100:mr,BeLevel20:rr,BeLevel30:or,BeLevel40:dr,BeLevel50:lr,BeLevel60:ur,BeLevel70:cr,BeLevel80:hr,BeLevel90:fr},Symbol.toStringTag,{value:"Module"}));class _r extends c{name="Merci <3";id="premium";rankId=u.MYTHIC.id;description="Faire un don (validation manuelle)";berry=1;xp=0;badge=R.premium;titleId="title_Mécène";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{premium:i}=t??await r.userMetaService.get(a);return!!i}}const Oh=Object.freeze(Object.defineProperty({__proto__:null,Premium:_r},Symbol.toStringTag,{value:"Module"}));class pr extends c{name="Vif";id="random_message_20";rankId=u.COMMON.id;description="Récupérer 20 Messages aléatoires";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{randomMessageClaimed:i}=t??await r.userStatsEngagementService.get(a);return i>=20}}class gr extends c{name="Lucky Luke";id="random_message_50";rankId=u.RARE.id;description="Récupérer 50 Messages aléatoires";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{randomMessageClaimed:i}=t??await r.userStatsEngagementService.get(a);return i>=50}}class Er extends c{name="Rapide";id="random_message_100";rankId=u.EPIC.id;description="Récupérer 100 Messages aléatoires";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{randomMessageClaimed:i}=t??await r.userStatsEngagementService.get(a);return i>=100}}class Sr extends c{name="Et Furieux";id="random_message_200";rankId=u.LEGENDARY.id;description="Récupérer 200 Messages aléatoires";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{randomMessageClaimed:i}=t??await r.userStatsEngagementService.get(a);return i>=200}}class yr extends c{name="Ka-Chow";id="random_message_500";rankId=u.MYTHIC.id;description="Récupérer 500 Messages aléatoires";berry=5e7;xp=25e4;titleId="title_Flash Mc Queen";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{randomMessageClaimed:i}=t??await r.userStatsEngagementService.get(a);return i>=500}}const xh=Object.freeze(Object.defineProperty({__proto__:null,RandomMessage100Quest:Er,RandomMessage200Quest:Sr,RandomMessage20Quest:pr,RandomMessage500Quest:yr,RandomMessage50Quest:gr},Symbol.toStringTag,{value:"Module"}));class Mr extends c{name="Ne fais rien exploser hein ?";id="have_1_recipe";description="Avoir 1 recette";berry=5e4;xp=5e3;rankId=u.COMMON.id;badge=R.recipe;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_INVENTORY];async isValidated({userInventory:t},a){const{recipes:i}=t??await r.userInventoryService.get(a);return i.length>=1}}class Tr extends c{name="C'est bien tu sais faire des pâtes !";id="have_5_recipe";rankId=u.RARE.id;description="Avoir 5 recettes";berry=2e5;xp=25e3;badge=R.recipe;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_INVENTORY];async isValidated({userInventory:t},a){const{recipes:i}=t??await r.userInventoryService.get(a);return i.length>=5}}class br extends c{name="Ta grand-mère t'as donné son livre ?";id="have_10_recipe";rankId=u.EPIC.id;description="Avoir 10 recettes";berry=1e6;xp=5e4;badge=R.recipe;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_INVENTORY];async isValidated({userInventory:t},a){const{recipes:i}=t??await r.userInventoryService.get(a);return i.length>=10}}class Rr extends c{name="Let him cook";id="have_25_recipe";rankId=u.LEGENDARY.id;description="Avoir 25 recettes";berry=1e6;xp=1e5;badge=R.recipe;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_INVENTORY];async isValidated({userInventory:t},a){const{recipes:i}=t??await r.userInventoryService.get(a);return i.length>=25}}class Ar extends c{name="Paul Bocuse";id="have_100_recipe";rankId=u.MYTHIC.id;description="Avoir 100 recettes";berry=5e7;xp=25e4;titleId="title_Paul Bocuse";badge=R.recipe;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_INVENTORY];async isValidated({userInventory:t},a){const{recipes:i}=t??await r.userInventoryService.get(a);return i.length>=100}}const Ch=Object.freeze(Object.defineProperty({__proto__:null,Have100Recipe:Ar,Have10Recipe:br,Have1Recipe:Mr,Have25Recipe:Rr,Have5Recipe:Tr},Symbol.toStringTag,{value:"Module"}));class Dr extends c{name="Collabo";id="collabo";rankId=u.COMMON.id;description="Report une personne au staff";berry=1e4;xp=5e3;secret=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_FLAGS];async isValidated({userStatsFlags:t},a){const{reportedSomeone:i}=t??await r.userStatsFlagsService.get(a);return i}}const Lh=Object.freeze(Object.defineProperty({__proto__:null,Report:Dr},Symbol.toStringTag,{value:"Module"}));class Nr extends c{name="Bienvenue sur OPFR";id="send_100_msg";rankId=u.COMMON.id;description="Envoyer 100 messages";berry=1e4;xp=1e3;badge=R.ecrire;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{messageSent:i}=t??await r.userStatsEngagementService.get(a);return i>=100}}class Ir extends c{name="Une vraie pipelette";id="send_1000_msg";rankId=u.RARE.id;description="Envoyer 1 000 messages";berry=1e5;xp=1e4;badge=R.ecrire;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{messageSent:i}=t??await r.userStatsEngagementService.get(a);return i>=1e3}}class wr extends c{name="Faites le taire ";id="send_25000_msg";rankId=u.EPIC.id;description="Envoyer 25 000 messages";berry=1e6;xp=5e4;badge=R.ecrire;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{messageSent:i}=t??await r.userStatsEngagementService.get(a);return i>=25e3}}class vr extends c{name="Tu sors de chez toi des fois ?";id="send_100000_msg";rankId=u.LEGENDARY.id;description="Envoyer 100 000 messages";berry=1e7;xp=1e5;badge=R.ecrire;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{messageSent:i}=t??await r.userStatsEngagementService.get(a);return i>=1e5}}class kr extends c{name="J'ai pas les mots... mais toi si !";id="send_200000_msg";rankId=u.MYTHIC.id;description="Envoyer 200 000 messages";berry=1e8;xp=25e4;badge=R.ecrire;titleId="title_Spammeur";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{messageSent:i}=t??await r.userStatsEngagementService.get(a);return i>=2e5}}const Vh=Object.freeze(Object.defineProperty({__proto__:null,send100000Messages:vr,send1000Messages:Ir,send100Messages:Nr,send200000Messages:kr,send25000Messages:wr},Symbol.toStringTag,{value:"Module"}));class Uh extends c{name="T'as reçu ton argent de poche ?";id="spend_shop_5m";rankId=u.COMMON.id;description="Dépenser 5 000 000 Berrys dans la boutique";berry=5e4;xp=5e3;badge=R.mode;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:t},a){const{totalSpentInShop:i}=t??await r.userStatsEconomyService.get(a);return i>=5e6}}class Or extends c{name="Tu t'es fait plaisir !";id="spend_shop_50m";rankId=u.RARE.id;description="Dépenser 50 000 000 Berrys dans la boutique";berry=2e5;xp=25e3;badge=R.mode;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:t},a){const{totalSpentInShop:i}=t??await r.userStatsEconomyService.get(a);return i>=5e7}}class xr extends c{name="C'était les soldes j'espère !";id="spend_shop_500m";rankId=u.EPIC.id;description="Dépenser 500 000 000 Berrys dans la boutique";berry=1e6;xp=5e4;badge=R.mode;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:t},a){const{totalSpentInShop:i}=t??await r.userStatsEconomyService.get(a);return i>=5e8}}class Cr extends c{name="Paré pour la Fashion Week";id="spend_shop_5ml";rankId=u.LEGENDARY.id;description="Dépenser 5 000 000 000 Berrys dans la boutique";berry=5e6;xp=1e5;badge=R.mode;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:t},a){const{totalSpentInShop:i}=t??await r.userStatsEconomyService.get(a);return i>=5e9}}class Lr extends c{name="Fashion Viktim";id="spend_shop_50ml";rankId=u.MYTHIC.id;description="Dépenser 50 000 000 000 Berrys dans la boutique";berry=5e7;xp=25e4;badge=R.mode;titleId="title_Fashion Viktim";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:t},a){const{totalSpentInShop:i}=t??await r.userStatsEconomyService.get(a);return i>=5e10}}const Yh=Object.freeze(Object.defineProperty({__proto__:null,SpendShop500M:xr,SpendShop50M:Or,SpendShop50Ml:Lr,SpendShop5Ml:Cr,default:Uh},Symbol.toStringTag,{value:"Module"}));class Vr extends c{name="On commence à se connaître";id="voice_10_hours";rankId=u.COMMON.id;description="Se connecter 10h en vocal";berry=5e4;xp=5e3;badge=R.ermite;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{totalMinutesInVoice:i}=t??await r.userStatsEngagementService.get(a);return i>=600}}class Ur extends c{name="Je sais tout de toi";id="voice_25_hours";rankId=u.RARE.id;description="Se connecter 25h en vocal";berry=2e5;xp=25e3;badge=R.ermite;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{totalMinutesInVoice:i}=t??await r.userStatsEngagementService.get(a);return i>=1500}}class Yr extends c{name="T'as pas soif ?";id="voice_250_hours";rankId=u.EPIC.id;description="Se connecter 250h en vocal";berry=1e6;xp=5e4;badge=R.ermite;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{totalMinutesInVoice:i}=t??await r.userStatsEngagementService.get(a);return i>=15e3}}class Pr extends c{name="Ok Socrate";id="voice_2500_hours";rankId=u.LEGENDARY.id;description="Se connecter 2500h en vocal";berry=1e7;xp=1e5;badge=R.ermite;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{totalMinutesInVoice:i}=t??await r.userStatsEngagementService.get(a);return i>=60*2500}}class Wr extends c{name="Elle ressemble à quoi la lumière du soleil ?";id="voice_5000_hours";rankId=u.MYTHIC.id;description="Se connecter 5000h en vocal";berry=5e7;xp=25e4;titleId="title_Ermite";badge=R.ermite;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{totalMinutesInVoice:i}=t??await r.userStatsEngagementService.get(a);return i>=60*5e3}}const Ph=Object.freeze(Object.defineProperty({__proto__:null,Voice10Hours:Vr,Voice2500Hours:Pr,Voice250Hours:Yr,Voice25Hours:Ur,Voice5000Hours:Wr},Symbol.toStringTag,{value:"Module"}));class Hr extends c{name="PTDR t ki ?";id="have_10_title";rankId=u.EPIC.id;description="Avoir 10 titres différents";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_ORNAMENT];async isValidated({userOrnament:t},a){const{unlockedTitles:i}=t??await r.userOrnamentService.get(a);return i.length>=10}}class Fr extends c{name="Mon nom est Personne";id="have_50_title";rankId=u.LEGENDARY.id;description="Avoir 50 titres différents";berry=5e6;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_ORNAMENT];async isValidated({userOrnament:t},a){const{unlockedTitles:i}=t??await r.userOrnamentService.get(a);return i.length>=50}}class jr extends c{name="Daenerys Targaryen";id="have_100_title";rankId=u.MYTHIC.id;description="Avoir 100 titres différents";berry=5e7;xp=25e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_ORNAMENT];async isValidated({userOrnament:t},a){const{unlockedTitles:i}=t??await r.userOrnamentService.get(a);return i.length>=100}}const Wh=Object.freeze(Object.defineProperty({__proto__:null,Have100Title:jr,Have10Title:Hr,Have50Title:Fr},Symbol.toStringTag,{value:"Module"}));class Qr extends c{name="L'Insistant";id="insistent";rankId=u.COMMON.id;description="Être repêché et atteindre les huitièmes de finale";berry=1e6;xp=0;repeatable=!0;async isValidated(){return!1}}class Br extends c{name="Résurrection";id="resurrection";rankId=u.RARE.id;description="Être repêché et atteindre les quarts de finale";berry=3e6;xp=0;repeatable=!0;async isValidated(){return!1}}class Gr extends c{name="Renaissance";id="rebirth";rankId=u.EPIC.id;description="Être repêché et atteindre au moins les demi-finales";berry=1e7;xp=0;repeatable=!0;async isValidated(){return!1}}class $r extends c{name="Phoenix";id="phoenix";rankId=u.LEGENDARY.id;description="Être repêché et aller en finale";berry=2e7;xp=0;repeatable=!0;async isValidated(){return!1}}class zr extends c{name="L'Immortel";id="immortal";rankId=u.MYTHIC.id;description="Être repêché et remporter le tournoi";berry=4e7;xp=0;repeatable=!0;async isValidated(){return!1}}class qr extends c{name="Branche Maudite";id="cursed_branch";rankId=u.RARE.id;description="Perdre le tournoi en top 32";berry=25e6;xp=0;repeatable=!0;async isValidated(){return!1}}class Kr extends c{name="Top 64";id="tournament_top64";rankId=u.COMMON.id;description="Perdre le tournoi en top 64";berry=15e6;xp=0;repeatable=!0;async isValidated(){return!1}}class Jr extends c{name="Zero Pointé";id="zeroscored";rankId=u.COMMON.id;description="Se faire éliminer directement avec tous ses choix dès le premier duel";berry=1e7;xp=0;repeatable=!0;async isValidated(){return!1}}class Zr extends c{name="Chasseur de Géants";id="gianthunter";rankId=u.MYTHIC.id;description="Battre les 3 tap-in du tournoi avec tes choix";berry=1e8;xp=0;items={chest_2:5};repeatable=!0;async isValidated(){return!1}}class Xr extends c{name="Sabotage";id="sabotage";rankId=u.EPIC.id;description="Empêcher un choix de tap-in d'atteindre le top 32";berry=3e7;xp=0;repeatable=!0;async isValidated(){return!1}}class eo extends c{name="Victoire par K.O";id="victory_by_ko";rankId=u.COMMON.id;description="Gagner un duel avec plus de 75% des votes";berry=5e6;xp=0;repeatable=!0;async isValidated(){return!1}}class to extends c{name="Le Sniper";id="tournament_sniper";rankId=u.RARE.id;description="Gagner un duel avec plus de 80% des votes";berry=1e7;xp=0;repeatable=!0;async isValidated(){return!1}}class ao extends c{name="Massacre";id="massacre";rankId=u.EPIC.id;description="Gagner un duel avec plus de 90% des votes";berry=25e6;xp=0;repeatable=!0;async isValidated(){return!1}}class io extends c{name="Annihilation";id="annihilation";rankId=u.MYTHIC.id;description="Gagner un duel avec 100% des votes (aucun vote pour l'adversaire)";berry=1e8;xp=0;items={chest_1:5};repeatable=!0;async isValidated(){return!1}}class so extends c{name="Troll Suprême";id="trollSupreme";rankId=u.MYTHIC.id;description="Prendre un choix totalement troll et improbable, puis gagner le tournoi avec !";berry=1e8;xp=0;items={chest_3:1};repeatable=!0;async isValidated(){return!1}}class no extends c{name="Champion";id="champion";rankId=u.RARE.id;description="Remporter un tournoi";berry=0;xp=0;items={chest_2:5};repeatable=!0;async isValidated(){return!1}}class ro extends c{name="Le Maître";id="master";rankId=u.RARE.id;description="Remporter un tournoi avec trois choix différents dans le top 16";berry=0;xp=0;items={chest_3:1};repeatable=!0;async isValidated(){return!1}}class oo extends c{name="L'Inarrétable";id="unstoppable";rankId=u.EPIC.id;description="Remporter un tournoi avec une finale écrasante";berry=0;xp=0;items={chest_1:5,chest_2:3};repeatable=!0;async isValidated(){return!1}}class lo extends c{name="L'Etoile Filante";id="shootingstar";rankId=u.LEGENDARY.id;description="Passer du statut d'outsider à finaliste";berry=5e7;xp=0;repeatable=!0;async isValidated(){return!1}}class uo extends c{name="EZ";id="ez";rankId=u.EPIC.id;description="Débloquer tous les succès Victoire sans difficulté";berry=0;xp=0;items={chest_3:1};repeatable=!0;async isValidated(){return!1}}class co extends c{name="Participation";id="participation";rankId=u.COMMON.id;description="Participer au tournoi avec 1, 2, 3 et 4 choix";berry=1e7;xp=0;repeatable=!0;async isValidated(){return!1}}const Hh=Object.freeze(Object.defineProperty({__proto__:null,Annihilation:io,Champion:no,CursedBranch:qr,EZ:uo,GiantHunter:Zr,Immortal:zr,Insistent:Qr,Massacre:ao,Master:ro,Participation:co,Phoenix:$r,Rebirth:Gr,Resurrection:Br,Sabotage:Xr,ShootingStar:lo,Sniper:to,TournamentTop64:Kr,TrollSupreme:so,Unstoppable:oo,VictoryByKO:eo,ZeroScored:Jr},Symbol.toStringTag,{value:"Module"}));class Na extends c{name="1 jour 1 message";id="daily_send_message";rankId=u.COMMON.id;description="Envoyer un message";berry=({xp:t})=>(W(t.amount)/10+1)*1e3;xp=({xp:t})=>(W(t.amount)/10+1)*100;daily=!0;async isValidated(){return!1}}class Ia extends c{name="Les nouvelles sont bonnes ?";id="daily_read_edito";rankId=u.COMMON.id;description="Réagir à l'édito";berry=({xp:t})=>(W(t.amount)/10+1)*3e3;xp=({xp:t})=>(W(t.amount)/10+1)*300;daily=!0;async isValidated(){return!1}}class wa extends c{name="Quoi ? Feur !";id="daily_answer";rankId=u.COMMON.id;description="Répondre à quelqu'un";berry=({xp:t})=>(W(t.amount)/10+1)*1500;xp=({xp:t})=>(W(t.amount)/10+1)*150;daily=!0;async isValidated(){return!1}}class va extends c{name="Narcissique";id="daily_check_profile";rankId=u.COMMON.id;description="Regarder son profil";berry=({xp:t})=>(W(t.amount)/10+1)*2e3;xp=({xp:t})=>(W(t.amount)/10+1)*200;daily=!0;async isValidated(){return!1}}class ka extends c{name="T'as des amis ?";id="daily_vocal";rankId=u.COMMON.id;description="Se connecter 10 min en vocal";berry=({xp:t})=>(W(t.amount)/10+1)*5e3;xp=({xp:t})=>(W(t.amount)/10+1)*500;daily=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_META];async isValidated({userMeta:t},a){const{xp:i}=t??await r.userMetaService.get(a);return i.voice.minutesInVoiceToday>=10&&zi(i.voice.lastConnection,new Date)}}class Oa extends c{name="T'as pas oublié de ranger ta chambre ?";id="daily_all";rankId=u.RARE.id;description="Finir les quêtes journalières";berry=({xp:t})=>(W(t.amount)/10+1)*12500;xp=({xp:t})=>(W(t.amount)/10+1)*1250;daily=!0;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_QUEST];async isValidated(t,a){const i=[new va,new wa,new Ia,new Na,new ka];for(const s of i)if(!await s.isCompleted(a))return!1;return!0}}class ho extends c{name="Almanax";id="almanax";rankId=u.MYTHIC.id;description="Valider 365 jours de suite les quêtes quotidiennes";berry=1e9;xp=1e6;badge=R.calendar;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_QUEST];async isValidated(t,a){const i=new Oa().id;return((await r.userQuestService.get({user:a,questId:i})).streak??0)>=365}}const fo=Object.freeze(Object.defineProperty({__proto__:null,Almanax:ho,DailyAll:Oa,DailyAnswer:wa,DailyCheckProfile:va,DailyReadEdito:Ia,DailySendMessage:Na,DailyVocal:ka},Symbol.toStringTag,{value:"Module"}));class mo extends c{name="Stagiaire";id="work_100";rankId=u.COMMON.id;description="Travailler 100 fois";berry=5e4;xp=5e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:t},a){const{workCount:i}=t??await r.userStatsEconomyService.get(a);return i>=100}}class _o extends c{name="Alternant";id="work_300";rankId=u.RARE.id;description="Travailler 300 fois";berry=2e5;xp=25e3;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:t},a){const{workCount:i}=t??await r.userStatsEconomyService.get(a);return i>=300}}class po extends c{name="Smicard";id="work_1000";rankId=u.EPIC.id;description="Travailler 1000 fois";berry=1e6;xp=5e4;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:t},a){const{workCount:i}=t??await r.userStatsEconomyService.get(a);return i>=1e3}}class go extends c{name="Communiste";id="work_2000";rankId=u.LEGENDARY.id;description="Travailler 2000 fois";berry=1e7;xp=1e5;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:t},a){const{workCount:i}=t??await r.userStatsEconomyService.get(a);return i>=2e3}}class Eo extends c{name="Esclave";id="work_5000";rankId=u.MYTHIC.id;description="Travailler 5000 fois";berry=5e7;xp=25e4;titleId="title_Esclave";static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ECONOMY];async isValidated({userStatsEconomy:t},a){const{workCount:i}=t??await r.userStatsEconomyService.get(a);return i>=5e3}}const Fh=Object.freeze(Object.defineProperty({__proto__:null,Work1000Quest:po,Work100Quest:mo,Work2000Quest:go,Work300Quest:_o,Work5000Quest:Eo},Symbol.toStringTag,{value:"Module"}));class So extends c{name="Timide";id="write_10_chats";rankId=u.COMMON.id;description="Écrire dans 10 chats différents";berry=1e4;xp=1e3;badge=R.exploration;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{writeDifferentChatIds:i}=t??await r.userStatsEngagementService.get(a);return i.length>=10}}class yo extends c{name="Curieux";id="write_20_chats";rankId=u.RARE.id;description="Écrire dans 20 chats différents";berry=1e5;xp=1e4;badge=R.exploration;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{writeDifferentChatIds:i}=t??await r.userStatsEngagementService.get(a);return i.length>=20}}class Mo extends c{name="Voyeur";id="write_50_chats";rankId=u.EPIC.id;description="Écrire dans 50 chats différents";berry=5e5;xp=5e4;badge=R.exploration;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{writeDifferentChatIds:i}=t??await r.userStatsEngagementService.get(a);return i.length>=50}}class To extends c{name="Philanthrope";id="write_100_chats";rankId=u.LEGENDARY.id;description="Écrire dans 100 chats différents";berry=1e6;xp=1e5;badge=R.exploration;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{writeDifferentChatIds:i}=t??await r.userStatsEngagementService.get(a);return i.length>=100}}class bo extends c{name="Explorateur";id="write_200_chats";rankId=u.MYTHIC.id;description="Écrire dans 200 chats différents";berry=1e7;xp=25e4;titleId="title_Explorateur";badge=R.exploration;static dependencies=[r.QUEST_MIDDLEWARE_EVENT_NAME.USER_STATS_ENGAGEMENT];async isValidated({userStatsEngagement:t},a){const{writeDifferentChatIds:i}=t??await r.userStatsEngagementService.get(a);return i.length>=200}}const jh=Object.freeze(Object.defineProperty({__proto__:null,Write100Chats:To,Write10Chats:So,Write200Chats:bo,Write20Chats:yo,Write50Chats:Mo},Symbol.toStringTag,{value:"Module"})),Vt=[...Object.values(gh),...Object.values(Eh),...Object.values(Sh),...Object.values(yh),...Object.values(Mh),...Object.values(Th),...Object.values(bh),...Object.values(Rh),...Object.values(Ah),...Object.values(Dh),...Object.values(Nh),...Object.values(Ih),...Object.values(wh),...Object.values(vh),...Object.values(kh),...Object.values(Oh),...Object.values(xh),...Object.values(Ch),...Object.values(Lh),...Object.values(Vh),...Object.values(Yh),...Object.values(Ph),...Object.values(Wh),...Object.values(Hh),...Object.values(fo),...Object.values(Fh),...Object.values(jh)],tt=Vt.map(e=>new e().id);if(tt.length!==[...new Set(tt)].length)throw Error(`All quest ids MUST be unique. Duplicated ids detected : ${lh(tt,[...new Set(tt)])}`);const Ro=async e=>(await r.userQuestService.getMany({user:e,questId:/be_level_/,status:Aa.COMPLETED})).length,Ao=async(e,t)=>{const a=await Ro(e);return(await r.ornamentService.getAllFactionTitles()).find(s=>s.strength===a&&s.faction===t)},Qh=(e,t)=>{const a=e.badge,i=e.isFactionBadge;return a?ba(a)?a.emojis[a.isProgressive.findIndex(s=>s===e.rankId)]:a.emojis:i?_h.factions[`b_${t}_${e.rankId}`]:""},Bh=e=>{const[t,a]=e.split("_"),i=Object.values(R).find(s=>s.id===t);if(i)return ba(i)?i.emojis[i.isProgressive.findIndex(s=>s===a)]:i.emojis},Gh=e=>{for(const t of Vt){const a=new t;if(a.id===e)return a}return null},Do=e=>Vt.filter(t=>t.dependencies.includes(e)),$h=async(e,t,a,{berry:i,xp:s})=>{const n=await r.userService.getByObjectId(t),o=await r.userQuestService.getStreakMultiplier(t,e.id),l=await Ao(t,n.faction),{badge:h,isFactionBadge:f,rankId:_,name:E,description:m,daily:T,secret:I,titleId:P}=e,C=await r.ornamentService.get(P??"");return a.Image().setImageName(`quest_success_${_}`).setDimensions(2080,636).draw(),h?a.Image().setImageName(ba(h)?`cropped_badge_${h.img}_${_}`:`cropped_badge_${h.img}`).setOrigin(be.CENTER).setScale(2).setPosition(370,318).draw():f&&n.faction!=="citizen"?a.Image().setImageName(`cropped_badge_${n.faction}_${_}`).setOrigin(be.CENTER).setScale(2).setPosition(370,318).draw():a.Image().setImageName(`badge_default_${_}`).setScale(2).setOrigin(be.CENTER).setPosition(370,318).draw(),a.Text(T?"QUÊTE JOURNALIÈRE TERMINÉE !":"SUCCÈS DÉBLOQUÉ !").setPosition(739,100).setFont("text",70).setColor(u[_].color).draw(),a.Text(E).setPosition(739,325).setOrigin(be.BOTTOM_LEFT).setFont("poppins",E.length>=35?65-(E.length-35):65).draw(),a.Text(I?"Succès caché":m).setPosition(739,360).setFont("poppins_italic",35).draw(),a.Text(`Récompenses: ${Lt(i)}${T&&o>1?` (+${Lt(i*(o-1))})`:""} `).setPosition(739,520).setFont("poppins",35).setOrigin(be.LEFT).draw(i!==0).next((O,w)=>ue(O.Image(),w)).setImageName("quest_berry").setDimensions(50,79).draw(i!==0).next((O,w)=>ue(O.Text(` / ${Lt(s)}${T&&o>1?` (+${Lt(s*(o-1))})`:""} `),w)).draw(s!==0).next((O,w)=>ue(O.Image(),w)).setImageName("quest_xp").setDimensions(57,59).draw(s!==0).next((O,w)=>ue(O.Text(` combo x${o}`),w)).draw(T&&o>1).next((O,w)=>ue(O.Text(" et la possibilité "),w)).draw(f&&n.faction==="citizen").next((O,w)=>ue(O.Text("de choisir ta faction"),w)).setFont("poppins_bold",35).draw(f&&n.faction==="citizen").next((O,w)=>ue(O.Text(" et le titre "),w)).setFont("poppins",35).draw(!!P||f&&n.faction!=="citizen").next((O,w)=>ue(O.Text(C?.name??""),w)).setFont("poppins_bold",35).setColor((C?.rankId&&u[C.rankId].color)??"white").draw(!!C).next((O,w)=>ue(O.Text(l?.name??""),w)).setColor((l?.rankId&&u[l.rankId].color)??"white").draw(f&&!!l),await a.encode("webp")},zh=["berry","success_COMMON","success_RARE","success_EPIC","success_LEGENDARY","success_MYTHIC","xp"],qh=async(e,t,a)=>{const i=Do(e),s=ch(e.split("/")[1]);for(const n of i){const o=new n;await o.isCompleted(t)||await o.isValidated({[s]:a},t)&&await o.complete(t,!0)}},Kh=e=>async(t,a)=>{await qh(e,t,a)};r.registerQuestMiddlewareEvents(uh(Object.values(r.QUEST_MIDDLEWARE_EVENT_NAME).map(e=>[e,Kh(e)]))),d.ALL_QUESTS=Vt,d.ALL_QUEST_IDS=tt,d.Almanax=ho,d.Annihilation=io,d.BeLevel10=nr,d.BeLevel100=mr,d.BeLevel20=rr,d.BeLevel30=or,d.BeLevel40=dr,d.BeLevel50=lr,d.BeLevel60=ur,d.BeLevel70=cr,d.BeLevel80=hr,d.BeLevel90=fr,d.Bet10M=ws,d.Bet666=Bn,d.BetMinValue=Ns,d.Birthday=Cs,d.BotPing=Ls,d.Champion=no,d.ChestOpen1000Quest=ar,d.ChestOpen150Quest=er,d.ChestOpen2000Quest=ir,d.ChestOpen500Quest=tr,d.ChestOpen50Quest=Xn,d.Craft1000Times=gn,d.Craft100CookedMeals=yn,d.Craft100Scrolls=Nn,d.Craft10CookedMeals=En,d.Craft10Scrolls=Rn,d.Craft200Times=_n,d.Craft20Scrolls=An,d.Craft20Times=fn,d.Craft250CookedMeals=Mn,d.Craft500CookedMeals=Tn,d.Craft500Times=pn,d.Craft50CookedMeals=Sn,d.Craft50Scrolls=Dn,d.Craft50Times=mn,d.Craft5Scrolls=bn,d.CrewCreateOrJoin=sr,d.CursedBranch=qr,d.DailyAll=Oa,d.DailyAnswer=wa,d.DailyCheckProfile=va,d.DailyReadEdito=Ia,d.DailySendMessage=Na,d.DailyVocal=ka,d.DoubleSix=Ln,d.Draw1000Quest=vn,d.Draw100Quest=In,d.Draw2000Quest=kn,d.Draw300Quest=wn,d.Draw5000Quest=On,d.DrawDoubleSix=Vn,d.Drink1000Alcohols=as,d.Drink1000Beer=fs,d.Drink1000Quest=Kn,d.Drink1000Rhum=ds,d.Drink1000Wine=Es,d.Drink100Beer=us,d.Drink100Rhum=ns,d.Drink100Today=$n,d.Drink100Wine=_s,d.Drink10Beer=ls,d.Drink10Rhum=ss,d.Drink10Wine=ms,d.Drink2000Alcohols=is,d.Drink2000Quest=Jn,d.Drink200Quest=zn,d.Drink250Alcohols=es,d.Drink250Beer=cs,d.Drink250Rhum=rs,d.Drink250Wine=ps,d.Drink5000Quest=Zn,d.Drink500Alcohols=ts,d.Drink500Beer=hs,d.Drink500Quest=qn,d.Drink500Rhum=os,d.Drink500Wine=gs,d.Drink50Alcohols=Xi,d.EZ=uo,d.Edito=xn,d.Everyone=Cn,d.GiantHunter=Zr,d.GuessInOne=Qn,d.Have100Agility=js,d.Have100Chance=Xs,d.Have100Intelligence=zs,d.Have100Recipe=Ar,d.Have100Strength=Ys,d.Have100Title=jr,d.Have100Vitality=nn,d.Have100Wisdom=un,d.Have10Recipe=br,d.Have10Title=Hr,d.Have1Background=Ss,d.Have1Recipe=Mr,d.Have250Agility=Qs,d.Have250Chance=en,d.Have250Intelligence=qs,d.Have250Strength=Ps,d.Have250Vitality=rn,d.Have250Wisdom=cn,d.Have25Agility=Hs,d.Have25Background=ys,d.Have25Chance=Js,d.Have25Intelligence=Gs,d.Have25Recipe=Rr,d.Have25Strength=Vs,d.Have25Vitality=an,d.Have25Wisdom=dn,d.Have500Agility=Bs,d.Have500Chance=tn,d.Have500Intelligence=Ks,d.Have500Strength=Ws,d.Have500Vitality=on,d.Have500Wisdom=hn,d.Have500kBerry=Ts,d.Have500mBerry=As,d.Have50Agility=Fs,d.Have50Background=Ms,d.Have50Chance=Zs,d.Have50Intelligence=$s,d.Have50Strength=Us,d.Have50Title=Fr,d.Have50Vitality=sn,d.Have50Wisdom=ln,d.Have50mBerry=Rs,d.Have5Recipe=Tr,d.Have5mBerry=bs,d.Have5mdBerry=Ds,d.Immortal=zr,d.Insistent=Qr,d.Lose10M=xs,d.LoseAll5GamesInRow=Pn,d.LoseEverything=Is,d.Massacre=ao,d.Master=ro,d.Paper100=Hn,d.Participation=co,d.Phoenix=$r,d.Premium=_r,d.QUEST_ASSET_IMAGES=zh,d.RandomMessage100Quest=Er,d.RandomMessage200Quest=Sr,d.RandomMessage20Quest=pr,d.RandomMessage500Quest=yr,d.RandomMessage50Quest=gr,d.Rebirth=Gr,d.Report=Dr,d.Resurrection=Br,d.Rock100=jn,d.Sabotage=Xr,d.Scissor100=Fn,d.SevenQuitteOuDouble=Un,d.ShootingStar=lo,d.Sniper=to,d.SpendShop500M=xr,d.SpendShop50M=Or,d.SpendShop50Ml=Lr,d.SpendShop5Ml=Cr,d.TenBlackJack=Wn,d.TotalBet10M=ks,d.TotalBet1Md=Os,d.TournamentTop64=Kr,d.TrollSupreme=so,d.Unstoppable=oo,d.VictoryByKO=eo,d.Voice10Hours=Vr,d.Voice2500Hours=Pr,d.Voice250Hours=Yr,d.Voice25Hours=Ur,d.Voice5000Hours=Wr,d.WinAll5GamesInRow=Yn,d.WinLose10=Gn,d.WinOn10MBet=vs,d.Work1000Quest=po,d.Work100Quest=mo,d.Work2000Quest=go,d.Work300Quest=_o,d.Work5000Quest=Eo,d.Write100Chats=To,d.Write10Chats=So,d.Write200Chats=bo,d.Write20Chats=yo,d.Write50Chats=Mo,d.ZeroScored=Jr,d.emitQuestCompleteEvent=Zi,d.getBadgeEmojisFromId=Bh,d.getFactionTitle=Ao,d.getFactionTitleStrength=Ro,d.getQuestBadgeEmojis=Qh,d.getQuestById=Gh,d.getQuestsByDependency=Do,d.onQuestCompleteEvent=ph,d.questCanvas=$h,d.send100000Messages=vr,d.send1000Messages=Ir,d.send100Messages=Nr,d.send200000Messages=kr,d.send25000Messages=wr,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})}));