@opfr/services 0.20.0 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +2346 -2167
- package/dist/index.umd.js +5 -5
- package/dist/services/index.d.ts +2 -0
- package/dist/services/index.d.ts.map +1 -1
- package/dist/services/reminder/definition/model.d.ts +30 -0
- package/dist/services/reminder/definition/model.d.ts.map +1 -0
- package/dist/services/reminder/definition/schema.d.ts +38 -0
- package/dist/services/reminder/definition/schema.d.ts.map +1 -0
- package/dist/services/reminder/index.d.ts +8 -0
- package/dist/services/reminder/index.d.ts.map +1 -0
- package/dist/services/reminder/process/create.d.ts +29 -0
- package/dist/services/reminder/process/create.d.ts.map +1 -0
- package/dist/services/reminder/process/deleteOne.d.ts +29 -0
- package/dist/services/reminder/process/deleteOne.d.ts.map +1 -0
- package/dist/services/reminder/process/findOne.d.ts +33 -0
- package/dist/services/reminder/process/findOne.d.ts.map +1 -0
- package/dist/services/reminder/process/updateOne.d.ts +29 -0
- package/dist/services/reminder/process/updateOne.d.ts.map +1 -0
- package/dist/services/reminder/query/getters.d.ts +3 -0
- package/dist/services/reminder/query/getters.d.ts.map +1 -0
- package/dist/services/reminder/query/updates.d.ts +32 -0
- package/dist/services/reminder/query/updates.d.ts.map +1 -0
- package/dist/services/reminder/types.d.ts +36 -0
- package/dist/services/reminder/types.d.ts.map +1 -0
- package/dist/services/user/definition/schema.d.ts.map +1 -1
- package/dist/services/user/process/populateUser.d.ts +2 -2
- package/dist/services/user/process/populateUser.d.ts.map +1 -1
- package/dist/services/user/query/updates.d.ts +1 -0
- package/dist/services/user/query/updates.d.ts.map +1 -1
- package/dist/services/user/types.d.ts +13 -1
- package/dist/services/user/types.d.ts.map +1 -1
- package/dist/services/user-cooldown/constants.d.ts +2 -0
- package/dist/services/user-cooldown/constants.d.ts.map +1 -0
- package/dist/services/user-cooldown/definition/model.d.ts +29 -0
- package/dist/services/user-cooldown/definition/model.d.ts.map +1 -0
- package/dist/services/user-cooldown/definition/schema.d.ts +38 -0
- package/dist/services/user-cooldown/definition/schema.d.ts.map +1 -0
- package/dist/services/user-cooldown/index.d.ts +8 -0
- package/dist/services/user-cooldown/index.d.ts.map +1 -0
- package/dist/services/user-cooldown/process/create.d.ts +29 -0
- package/dist/services/user-cooldown/process/create.d.ts.map +1 -0
- package/dist/services/user-cooldown/process/findOne.d.ts +29 -0
- package/dist/services/user-cooldown/process/findOne.d.ts.map +1 -0
- package/dist/services/user-cooldown/process/updateOne.d.ts +29 -0
- package/dist/services/user-cooldown/process/updateOne.d.ts.map +1 -0
- package/dist/services/user-cooldown/query/getters.d.ts +4 -0
- package/dist/services/user-cooldown/query/getters.d.ts.map +1 -0
- package/dist/services/user-cooldown/query/updates.d.ts +33 -0
- package/dist/services/user-cooldown/query/updates.d.ts.map +1 -0
- package/dist/services/user-cooldown/types.d.ts +40 -0
- package/dist/services/user-cooldown/types.d.ts.map +1 -0
- package/dist/services/user-meta/definition/schema.d.ts.map +1 -1
- package/dist/services/user-raid/definition/schema.d.ts.map +1 -1
- package/dist/services/user-raid/query/updates.d.ts +2 -2
- package/dist/services/user-raid/query/updates.d.ts.map +1 -1
- package/dist/services/user-raid/types.d.ts +0 -4
- package/dist/services/user-raid/types.d.ts.map +1 -1
- package/package.json +8 -8
package/dist/index.umd.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(c,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("mongoose"),require("@opfr/items"),require("@opfr/raids"),require("@opfr/utils-type"),require("events"),require("@opfr/ornaments"),require("@opfr/canvas")):typeof define=="function"&&define.amd?define(["exports","mongoose","@opfr/items","@opfr/raids","@opfr/utils-type","events","@opfr/ornaments","@opfr/canvas"],p):(c=typeof globalThis<"u"?globalThis:c||self,p(c.services={},c.mongoose,c["@opfr/items"],c["@opfr/raids"],c["@opfr/utils-type"],c.events,c["@opfr/ornaments"],c["@opfr/canvas"]))})(this,function(c,p,D,Rr,l,Ur,u,q){"use strict";var cp=Object.defineProperty;var up=(c,p,D)=>p in c?cp(c,p,{enumerable:!0,configurable:!0,writable:!0,value:D}):c[p]=D;var e=(c,p,D)=>up(c,typeof p!="symbol"?p+"":p,D);var ir,lr,or,dr,cr,ur,fr,hr,pr,mr,yr,gr,_r,wr,br,vr,Mr,Sr,kr,xr;function Cr(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const n=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(a,s,n.get?n:{enumerable:!0,get:()=>t[s]})}}return a.default=t,Object.freeze(a)}const Br=Cr(Ur),Kt=new p.Schema({bannedUserId:String,authorId:String,unbannedTimestamp:Date,reason:String});Kt.index({bannedUserId:1}),Kt.index({unbannedTimestamp:1});const De=((ir=p.models)==null?void 0:ir.Bans)||p.model("Bans",Kt),Dr=Object.freeze(Object.defineProperty({__proto__:null,getUnbanUsers:async()=>await De.find({unbannedTimestamp:{$lte:new Date,$ne:null}})},Symbol.toStringTag,{value:"Module"})),Or=async t=>await De.create({...t}),Ar=async t=>await De.findOne({bannedUserId:t}),Nr=async t=>{await De.deleteOne({bannedUserId:t})},$r=t=>De.exists({bannedUserId:t}),Ir=new p.Schema({betOwner:String,betId:Number,channelId:String,messageId:String,title:String,desc:String,state:String,end:Date,highestBet:Number,choices:{type:[String],default:[]},bets:{type:[{owner:String,amount:Number,choice:Number}],default:[]}}),Wt=((lr=p.models)==null?void 0:lr.Bets)||p.model("Bets",Ir),Fr=async(t,a={})=>{const s=await Wt.findById(t,a);return s||null},Yr=async t=>await Wt.create({...t}),mt=t=>new Intl.NumberFormat("de-DE").format(t),es=(t,a,s=Math.random)=>Math.floor(s()*(a-t)+t),yt=(t,a,s=n=>n)=>t.filter(n=>!a.some(r=>s(r)===s(n))),ts=(t,a)=>[...new Set(t.map(s=>a(s)))],Er=t=>t.filter(a=>a!=null);//! moment.js
|
|
2
2
|
//! version : 2.30.1
|
|
3
3
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
4
4
|
//! license : MIT
|
|
5
5
|
//! momentjs.com
|
|
6
|
-
var
|
|
7
|
-
[`+i+"] ";for(d in arguments[0])S(arguments[0],d)&&(r+=d+": "+arguments[0][d]+", ");r=r.slice(0,-2)}else r=arguments[i];n.push(r)}
|
|
6
|
+
var as;function m(){return as.apply(null,arguments)}function Lr(t){as=t}function z(t){return t instanceof Array||Object.prototype.toString.call(t)==="[object Array]"}function xe(t){return t!=null&&Object.prototype.toString.call(t)==="[object Object]"}function S(t,a){return Object.prototype.hasOwnProperty.call(t,a)}function Vt(t){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(t).length===0;var a;for(a in t)if(S(t,a))return!1;return!0}function T(t){return t===void 0}function ie(t){return typeof t=="number"||Object.prototype.toString.call(t)==="[object Number]"}function We(t){return t instanceof Date||Object.prototype.toString.call(t)==="[object Date]"}function ss(t,a){var s=[],n,r=t.length;for(n=0;n<r;++n)s.push(a(t[n],n));return s}function ge(t,a){for(var s in a)S(a,s)&&(t[s]=a[s]);return S(a,"toString")&&(t.toString=a.toString),S(a,"valueOf")&&(t.valueOf=a.valueOf),t}function te(t,a,s,n){return Ds(t,a,s,n,!0).utc()}function Pr(){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 b(t){return t._pf==null&&(t._pf=Pr()),t._pf}var zt;Array.prototype.some?zt=Array.prototype.some:zt=function(t){var a=Object(this),s=a.length>>>0,n;for(n=0;n<s;n++)if(n in a&&t.call(this,a[n],n,a))return!0;return!1};function Xt(t){var a=null,s=!1,n=t._d&&!isNaN(t._d.getTime());if(n&&(a=b(t),s=zt.call(a.parsedDateParts,function(r){return r!=null}),n=a.overflow<0&&!a.empty&&!a.invalidEra&&!a.invalidMonth&&!a.invalidWeekday&&!a.weekdayMismatch&&!a.nullInput&&!a.invalidFormat&&!a.userInvalidated&&(!a.meridiem||a.meridiem&&s),t._strict&&(n=n&&a.charsLeftOver===0&&a.unusedTokens.length===0&&a.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(t))t._isValid=n;else return n;return t._isValid}function gt(t){var a=te(NaN);return t!=null?ge(b(a),t):b(a).userInvalidated=!0,a}var ns=m.momentProperties=[],Zt=!1;function Jt(t,a){var s,n,r,i=ns.length;if(T(a._isAMomentObject)||(t._isAMomentObject=a._isAMomentObject),T(a._i)||(t._i=a._i),T(a._f)||(t._f=a._f),T(a._l)||(t._l=a._l),T(a._strict)||(t._strict=a._strict),T(a._tzm)||(t._tzm=a._tzm),T(a._isUTC)||(t._isUTC=a._isUTC),T(a._offset)||(t._offset=a._offset),T(a._pf)||(t._pf=b(a)),T(a._locale)||(t._locale=a._locale),i>0)for(s=0;s<i;s++)n=ns[s],r=a[n],T(r)||(t[n]=r);return t}function Ve(t){Jt(this,t),this._d=new Date(t._d!=null?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Zt===!1&&(Zt=!0,m.updateOffset(this),Zt=!1)}function X(t){return t instanceof Ve||t!=null&&t._isAMomentObject!=null}function rs(t){m.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+t)}function K(t,a){var s=!0;return ge(function(){if(m.deprecationHandler!=null&&m.deprecationHandler(null,t),s){var n=[],r,i,d,f=arguments.length;for(i=0;i<f;i++){if(r="",typeof arguments[i]=="object"){r+=`
|
|
7
|
+
[`+i+"] ";for(d in arguments[0])S(arguments[0],d)&&(r+=d+": "+arguments[0][d]+", ");r=r.slice(0,-2)}else r=arguments[i];n.push(r)}rs(t+`
|
|
8
8
|
Arguments: `+Array.prototype.slice.call(n).join("")+`
|
|
9
|
-
`+new Error().stack),s=!1}return a.apply(this,arguments)},a)}var es={};function ts(t,a){m.deprecationHandler!=null&&m.deprecationHandler(t,a),es[t]||(Ja(a),es[t]=!0)}m.suppressDeprecationWarnings=!1,m.deprecationHandler=null;function te(t){return typeof Function<"u"&&t instanceof Function||Object.prototype.toString.call(t)==="[object Function]"}function Cr(t){var a,s;for(s in t)S(t,s)&&(a=t[s],te(a)?this[s]=a:this["_"+s]=a);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Xt(t,a){var s=ge({},t),n;for(n in a)S(a,n)&&(ke(t[n])&&ke(a[n])?(s[n]={},ge(s[n],t[n]),ge(s[n],a[n])):a[n]!=null?s[n]=a[n]:delete s[n]);for(n in t)S(t,n)&&!S(a,n)&&ke(t[n])&&(s[n]=ge({},s[n]));return s}function Zt(t){t!=null&&this.set(t)}var Jt;Object.keys?Jt=Object.keys:Jt=function(t){var a,s=[];for(a in t)S(t,a)&&s.push(a);return s};var Br={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Ar(t,a,s){var n=this._calendar[t]||this._calendar.sameElse;return te(n)?n.call(a,s):n}function ae(t,a,s){var n=""+Math.abs(t),r=a-n.length,i=t>=0;return(i?s?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+n}var ea=/(\[[^\[]*\])|(\\)?([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,yt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ta={},De={};function _(t,a,s,n){var r=n;typeof n=="string"&&(r=function(){return this[n]()}),t&&(De[t]=r),a&&(De[a[0]]=function(){return ae(r.apply(this,arguments),a[1],a[2])}),s&&(De[s]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function Dr(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function Or(t){var a=t.match(ea),s,n;for(s=0,n=a.length;s<n;s++)De[a[s]]?a[s]=De[a[s]]:a[s]=Dr(a[s]);return function(r){var i="",d;for(d=0;d<n;d++)i+=te(a[d])?a[d].call(r,t):a[d];return i}}function gt(t,a){return t.isValid()?(a=as(a,t.localeData()),ta[a]=ta[a]||Or(a),ta[a](t)):t.localeData().invalidDate()}function as(t,a){var s=5;function n(r){return a.longDateFormat(r)||r}for(yt.lastIndex=0;s>=0&&yt.test(t);)t=t.replace(yt,n),yt.lastIndex=0,s-=1;return t}var Nr={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 $r(t){var a=this._longDateFormat[t],s=this._longDateFormat[t.toUpperCase()];return a||!s?a:(this._longDateFormat[t]=s.match(ea).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[t])}var Ir="Invalid date";function Yr(){return this._invalidDate}var Fr="%d",Er=/\d{1,2}/;function Lr(t){return this._ordinal.replace("%d",t)}var Pr={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 Tr(t,a,s,n){var r=this._relativeTime[s];return te(r)?r(t,a,s,n):r.replace(/%d/i,t)}function jr(t,a){var s=this._relativeTime[t>0?"future":"past"];return te(s)?s(a):s.replace(/%s/i,a)}var ss={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 W(t){return typeof t=="string"?ss[t]||ss[t.toLowerCase()]:void 0}function aa(t){var a={},s,n;for(n in t)S(t,n)&&(s=W(n),s&&(a[s]=t[n]));return a}var Hr={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 qr(t){var a=[],s;for(s in t)S(t,s)&&a.push({unit:s,priority:Hr[s]});return a.sort(function(n,r){return n.priority-r.priority}),a}var ns=/\d/,H=/\d\d/,rs=/\d{3}/,sa=/\d{4}/,_t=/[+-]?\d{6}/,C=/\d\d?/,is=/\d\d\d\d?/,ls=/\d\d\d\d\d\d?/,wt=/\d{1,3}/,na=/\d{1,4}/,bt=/[+-]?\d{1,6}/,Oe=/\d+/,vt=/[+-]?\d+/,Qr=/Z|[+-]\d\d:?\d\d/gi,Mt=/Z|[+-]\d\d(?::?\d\d)?/gi,Gr=/[+-]?\d+(\.\d{1,3})?/,Ve=/[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,Ne=/^[1-9]\d?/,ra=/^([1-9]\d|\d)/,St;St={};function y(t,a,s){St[t]=te(a)?a:function(n,r){return n&&s?s:a}}function Kr(t,a){return S(St,t)?St[t](a._strict,a._locale):new RegExp(Wr(t))}function Wr(t){return le(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(a,s,n,r,i){return s||n||r||i}))}function le(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function V(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function v(t){var a=+t,s=0;return a!==0&&isFinite(a)&&(s=V(a)),s}var ia={};function R(t,a){var s,n=a,r;for(typeof t=="string"&&(t=[t]),ie(a)&&(n=function(i,d){d[a]=v(i)}),r=t.length,s=0;s<r;s++)ia[t[s]]=n}function ze(t,a){R(t,function(s,n,r,i){r._w=r._w||{},a(s,r._w,r,i)})}function Vr(t,a,s){a!=null&&S(ia,t)&&ia[t](a,s._a,s,t)}function kt(t){return t%4===0&&t%100!==0||t%400===0}var F=0,oe=1,se=2,N=3,Z=4,de=5,xe=6,zr=7,Xr=8;_("Y",0,0,function(){var t=this.year();return t<=9999?ae(t,4):"+"+t}),_(0,["YY",2],0,function(){return this.year()%100}),_(0,["YYYY",4],0,"year"),_(0,["YYYYY",5],0,"year"),_(0,["YYYYYY",6,!0],0,"year"),y("Y",vt),y("YY",C,H),y("YYYY",na,sa),y("YYYYY",bt,_t),y("YYYYYY",bt,_t),R(["YYYYY","YYYYYY"],F),R("YYYY",function(t,a){a[F]=t.length===2?m.parseTwoDigitYear(t):v(t)}),R("YY",function(t,a){a[F]=m.parseTwoDigitYear(t)}),R("Y",function(t,a){a[F]=parseInt(t,10)});function Xe(t){return kt(t)?366:365}m.parseTwoDigitYear=function(t){return v(t)+(v(t)>68?1900:2e3)};var os=$e("FullYear",!0);function Zr(){return kt(this.year())}function $e(t,a){return function(s){return s!=null?(ds(this,t,s),m.updateOffset(this,a),this):Ze(this,t)}}function Ze(t,a){if(!t.isValid())return NaN;var s=t._d,n=t._isUTC;switch(a){case"Milliseconds":return n?s.getUTCMilliseconds():s.getMilliseconds();case"Seconds":return n?s.getUTCSeconds():s.getSeconds();case"Minutes":return n?s.getUTCMinutes():s.getMinutes();case"Hours":return n?s.getUTCHours():s.getHours();case"Date":return n?s.getUTCDate():s.getDate();case"Day":return n?s.getUTCDay():s.getDay();case"Month":return n?s.getUTCMonth():s.getMonth();case"FullYear":return n?s.getUTCFullYear():s.getFullYear();default:return NaN}}function ds(t,a,s){var n,r,i,d,f;if(!(!t.isValid()||isNaN(s))){switch(n=t._d,r=t._isUTC,a){case"Milliseconds":return void(r?n.setUTCMilliseconds(s):n.setMilliseconds(s));case"Seconds":return void(r?n.setUTCSeconds(s):n.setSeconds(s));case"Minutes":return void(r?n.setUTCMinutes(s):n.setMinutes(s));case"Hours":return void(r?n.setUTCHours(s):n.setHours(s));case"Date":return void(r?n.setUTCDate(s):n.setDate(s));case"FullYear":break;default:return}i=s,d=t.month(),f=t.date(),f=f===29&&d===1&&!kt(i)?28:f,r?n.setUTCFullYear(i,d,f):n.setFullYear(i,d,f)}}function Jr(t){return t=W(t),te(this[t])?this[t]():this}function ei(t,a){if(typeof t=="object"){t=aa(t);var s=qr(t),n,r=s.length;for(n=0;n<r;n++)this[s[n].unit](t[s[n].unit])}else if(t=W(t),te(this[t]))return this[t](a);return this}function ti(t,a){return(t%a+a)%a}var O;Array.prototype.indexOf?O=Array.prototype.indexOf:O=function(t){var a;for(a=0;a<this.length;++a)if(this[a]===t)return a;return-1};function la(t,a){if(isNaN(t)||isNaN(a))return NaN;var s=ti(a,12);return t+=(a-s)/12,s===1?kt(t)?29:28:31-s%7%2}_("M",["MM",2],"Mo",function(){return this.month()+1}),_("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),_("MMMM",0,0,function(t){return this.localeData().months(this,t)}),y("M",C,Ne),y("MM",C,H),y("MMM",function(t,a){return a.monthsShortRegex(t)}),y("MMMM",function(t,a){return a.monthsRegex(t)}),R(["M","MM"],function(t,a){a[oe]=v(t)-1}),R(["MMM","MMMM"],function(t,a,s,n){var r=s._locale.monthsParse(t,n,s._strict);r!=null?a[oe]=r:b(s).invalidMonth=t});var ai="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),cs="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),us=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,si=Ve,ni=Ve;function ri(t,a){return t?z(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||us).test(a)?"format":"standalone"][t.month()]:z(this._months)?this._months:this._months.standalone}function ii(t,a){return t?z(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[us.test(a)?"format":"standalone"][t.month()]:z(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function li(t,a,s){var n,r,i,d=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)i=ee([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(i,"").toLocaleLowerCase();return s?a==="MMM"?(r=O.call(this._shortMonthsParse,d),r!==-1?r:null):(r=O.call(this._longMonthsParse,d),r!==-1?r:null):a==="MMM"?(r=O.call(this._shortMonthsParse,d),r!==-1?r:(r=O.call(this._longMonthsParse,d),r!==-1?r:null)):(r=O.call(this._longMonthsParse,d),r!==-1?r:(r=O.call(this._shortMonthsParse,d),r!==-1?r:null))}function oi(t,a,s){var n,r,i;if(this._monthsParseExact)return li.call(this,t,a,s);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++)if(r=ee([2e3,n]),s&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),!s&&!this._monthsParse[n]&&(i="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[n]=new RegExp(i.replace(".",""),"i")),s&&a==="MMMM"&&this._longMonthsParse[n].test(t)||s&&a==="MMM"&&this._shortMonthsParse[n].test(t)||!s&&this._monthsParse[n].test(t))return n}function fs(t,a){if(!t.isValid())return t;if(typeof a=="string"){if(/^\d+$/.test(a))a=v(a);else if(a=t.localeData().monthsParse(a),!ie(a))return t}var s=a,n=t.date();return n=n<29?n:Math.min(n,la(t.year(),s)),t._isUTC?t._d.setUTCMonth(s,n):t._d.setMonth(s,n),t}function hs(t){return t!=null?(fs(this,t),m.updateOffset(this,!0),this):Ze(this,"Month")}function di(){return la(this.year(),this.month())}function ci(t){return this._monthsParseExact?(S(this,"_monthsRegex")||ps.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(S(this,"_monthsShortRegex")||(this._monthsShortRegex=si),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function ui(t){return this._monthsParseExact?(S(this,"_monthsRegex")||ps.call(this),t?this._monthsStrictRegex:this._monthsRegex):(S(this,"_monthsRegex")||(this._monthsRegex=ni),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function ps(){function t(g,w){return w.length-g.length}var a=[],s=[],n=[],r,i,d,f;for(r=0;r<12;r++)i=ee([2e3,r]),d=le(this.monthsShort(i,"")),f=le(this.months(i,"")),a.push(d),s.push(f),n.push(f),n.push(d);a.sort(t),s.sort(t),n.sort(t),this._monthsRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+a.join("|")+")","i")}function fi(t,a,s,n,r,i,d){var f;return t<100&&t>=0?(f=new Date(t+400,a,s,n,r,i,d),isFinite(f.getFullYear())&&f.setFullYear(t)):f=new Date(t,a,s,n,r,i,d),f}function Je(t){var a,s;return t<100&&t>=0?(s=Array.prototype.slice.call(arguments),s[0]=t+400,a=new Date(Date.UTC.apply(null,s)),isFinite(a.getUTCFullYear())&&a.setUTCFullYear(t)):a=new Date(Date.UTC.apply(null,arguments)),a}function xt(t,a,s){var n=7+a-s,r=(7+Je(t,0,n).getUTCDay()-a)%7;return-r+n-1}function ms(t,a,s,n,r){var i=(7+s-n)%7,d=xt(t,n,r),f=1+7*(a-1)+i+d,g,w;return f<=0?(g=t-1,w=Xe(g)+f):f>Xe(t)?(g=t+1,w=f-Xe(t)):(g=t,w=f),{year:g,dayOfYear:w}}function et(t,a,s){var n=xt(t.year(),a,s),r=Math.floor((t.dayOfYear()-n-1)/7)+1,i,d;return r<1?(d=t.year()-1,i=r+ce(d,a,s)):r>ce(t.year(),a,s)?(i=r-ce(t.year(),a,s),d=t.year()+1):(d=t.year(),i=r),{week:i,year:d}}function ce(t,a,s){var n=xt(t,a,s),r=xt(t+1,a,s);return(Xe(t)-n+r)/7}_("w",["ww",2],"wo","week"),_("W",["WW",2],"Wo","isoWeek"),y("w",C,Ne),y("ww",C,H),y("W",C,Ne),y("WW",C,H),ze(["w","ww","W","WW"],function(t,a,s,n){a[n.substr(0,1)]=v(t)});function hi(t){return et(t,this._week.dow,this._week.doy).week}var pi={dow:0,doy:6};function mi(){return this._week.dow}function yi(){return this._week.doy}function gi(t){var a=this.localeData().week(this);return t==null?a:this.add((t-a)*7,"d")}function _i(t){var a=et(this,1,4).week;return t==null?a:this.add((t-a)*7,"d")}_("d",0,"do","day"),_("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),_("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),_("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),_("e",0,0,"weekday"),_("E",0,0,"isoWeekday"),y("d",C),y("e",C),y("E",C),y("dd",function(t,a){return a.weekdaysMinRegex(t)}),y("ddd",function(t,a){return a.weekdaysShortRegex(t)}),y("dddd",function(t,a){return a.weekdaysRegex(t)}),ze(["dd","ddd","dddd"],function(t,a,s,n){var r=s._locale.weekdaysParse(t,n,s._strict);r!=null?a.d=r:b(s).invalidWeekday=t}),ze(["d","e","E"],function(t,a,s,n){a[n]=v(t)});function wi(t,a){return typeof t!="string"?t:isNaN(t)?(t=a.weekdaysParse(t),typeof t=="number"?t:null):parseInt(t,10)}function bi(t,a){return typeof t=="string"?a.weekdaysParse(t)%7||7:isNaN(t)?null:t}function oa(t,a){return t.slice(a,7).concat(t.slice(0,a))}var vi="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ys="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Mi="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Si=Ve,ki=Ve,xi=Ve;function Ri(t,a){var s=z(this._weekdays)?this._weekdays:this._weekdays[t&&t!==!0&&this._weekdays.isFormat.test(a)?"format":"standalone"];return t===!0?oa(s,this._week.dow):t?s[t.day()]:s}function Ui(t){return t===!0?oa(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function Ci(t){return t===!0?oa(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function Bi(t,a,s){var n,r,i,d=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)i=ee([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(i,"").toLocaleLowerCase();return s?a==="dddd"?(r=O.call(this._weekdaysParse,d),r!==-1?r:null):a==="ddd"?(r=O.call(this._shortWeekdaysParse,d),r!==-1?r:null):(r=O.call(this._minWeekdaysParse,d),r!==-1?r:null):a==="dddd"?(r=O.call(this._weekdaysParse,d),r!==-1||(r=O.call(this._shortWeekdaysParse,d),r!==-1)?r:(r=O.call(this._minWeekdaysParse,d),r!==-1?r:null)):a==="ddd"?(r=O.call(this._shortWeekdaysParse,d),r!==-1||(r=O.call(this._weekdaysParse,d),r!==-1)?r:(r=O.call(this._minWeekdaysParse,d),r!==-1?r:null)):(r=O.call(this._minWeekdaysParse,d),r!==-1||(r=O.call(this._weekdaysParse,d),r!==-1)?r:(r=O.call(this._shortWeekdaysParse,d),r!==-1?r:null))}function Ai(t,a,s){var n,r,i;if(this._weekdaysParseExact)return Bi.call(this,t,a,s);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++)if(r=ee([2e3,1]).day(n),s&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(i="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[n]=new RegExp(i.replace(".",""),"i")),s&&a==="dddd"&&this._fullWeekdaysParse[n].test(t)||s&&a==="ddd"&&this._shortWeekdaysParse[n].test(t)||s&&a==="dd"&&this._minWeekdaysParse[n].test(t)||!s&&this._weekdaysParse[n].test(t))return n}function Di(t){if(!this.isValid())return t!=null?this:NaN;var a=Ze(this,"Day");return t!=null?(t=wi(t,this.localeData()),this.add(t-a,"d")):a}function Oi(t){if(!this.isValid())return t!=null?this:NaN;var a=(this.day()+7-this.localeData()._week.dow)%7;return t==null?a:this.add(t-a,"d")}function Ni(t){if(!this.isValid())return t!=null?this:NaN;if(t!=null){var a=bi(t,this.localeData());return this.day(this.day()%7?a:a-7)}else return this.day()||7}function $i(t){return this._weekdaysParseExact?(S(this,"_weekdaysRegex")||da.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(S(this,"_weekdaysRegex")||(this._weekdaysRegex=Si),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ii(t){return this._weekdaysParseExact?(S(this,"_weekdaysRegex")||da.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(S(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ki),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Yi(t){return this._weekdaysParseExact?(S(this,"_weekdaysRegex")||da.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(S(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=xi),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function da(){function t(U,I){return I.length-U.length}var a=[],s=[],n=[],r=[],i,d,f,g,w;for(i=0;i<7;i++)d=ee([2e3,1]).day(i),f=le(this.weekdaysMin(d,"")),g=le(this.weekdaysShort(d,"")),w=le(this.weekdays(d,"")),a.push(f),s.push(g),n.push(w),r.push(f),r.push(g),r.push(w);a.sort(t),s.sort(t),n.sort(t),r.sort(t),this._weekdaysRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function ca(){return this.hours()%12||12}function Fi(){return this.hours()||24}_("H",["HH",2],0,"hour"),_("h",["hh",2],0,ca),_("k",["kk",2],0,Fi),_("hmm",0,0,function(){return""+ca.apply(this)+ae(this.minutes(),2)}),_("hmmss",0,0,function(){return""+ca.apply(this)+ae(this.minutes(),2)+ae(this.seconds(),2)}),_("Hmm",0,0,function(){return""+this.hours()+ae(this.minutes(),2)}),_("Hmmss",0,0,function(){return""+this.hours()+ae(this.minutes(),2)+ae(this.seconds(),2)});function gs(t,a){_(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),a)})}gs("a",!0),gs("A",!1);function _s(t,a){return a._meridiemParse}y("a",_s),y("A",_s),y("H",C,ra),y("h",C,Ne),y("k",C,Ne),y("HH",C,H),y("hh",C,H),y("kk",C,H),y("hmm",is),y("hmmss",ls),y("Hmm",is),y("Hmmss",ls),R(["H","HH"],N),R(["k","kk"],function(t,a,s){var n=v(t);a[N]=n===24?0:n}),R(["a","A"],function(t,a,s){s._isPm=s._locale.isPM(t),s._meridiem=t}),R(["h","hh"],function(t,a,s){a[N]=v(t),b(s).bigHour=!0}),R("hmm",function(t,a,s){var n=t.length-2;a[N]=v(t.substr(0,n)),a[Z]=v(t.substr(n)),b(s).bigHour=!0}),R("hmmss",function(t,a,s){var n=t.length-4,r=t.length-2;a[N]=v(t.substr(0,n)),a[Z]=v(t.substr(n,2)),a[de]=v(t.substr(r)),b(s).bigHour=!0}),R("Hmm",function(t,a,s){var n=t.length-2;a[N]=v(t.substr(0,n)),a[Z]=v(t.substr(n))}),R("Hmmss",function(t,a,s){var n=t.length-4,r=t.length-2;a[N]=v(t.substr(0,n)),a[Z]=v(t.substr(n,2)),a[de]=v(t.substr(r))});function Ei(t){return(t+"").toLowerCase().charAt(0)==="p"}var Li=/[ap]\.?m?\.?/i,Pi=$e("Hours",!0);function Ti(t,a,s){return t>11?s?"pm":"PM":s?"am":"AM"}var ws={calendar:Br,longDateFormat:Nr,invalidDate:Ir,ordinal:Fr,dayOfMonthOrdinalParse:Er,relativeTime:Pr,months:ai,monthsShort:cs,week:pi,weekdays:vi,weekdaysMin:Mi,weekdaysShort:ys,meridiemParse:Li},D={},tt={},at;function ji(t,a){var s,n=Math.min(t.length,a.length);for(s=0;s<n;s+=1)if(t[s]!==a[s])return s;return n}function bs(t){return t&&t.toLowerCase().replace("_","-")}function Hi(t){for(var a=0,s,n,r,i;a<t.length;){for(i=bs(t[a]).split("-"),s=i.length,n=bs(t[a+1]),n=n?n.split("-"):null;s>0;){if(r=Rt(i.slice(0,s).join("-")),r)return r;if(n&&n.length>=s&&ji(i,n)>=s-1)break;s--}a++}return at}function qi(t){return!!(t&&t.match("^[^/\\\\]*$"))}function Rt(t){var a=null,s;if(D[t]===void 0&&typeof module<"u"&&module&&module.exports&&qi(t))try{a=at._abbr,s=require,s("./locale/"+t),_e(a)}catch{D[t]=null}return D[t]}function _e(t,a){var s;return t&&(P(a)?s=ue(t):s=ua(t,a),s?at=s:typeof console<"u"&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),at._abbr}function ua(t,a){if(a!==null){var s,n=ws;if(a.abbr=t,D[t]!=null)ts("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=D[t]._config;else if(a.parentLocale!=null)if(D[a.parentLocale]!=null)n=D[a.parentLocale]._config;else if(s=Rt(a.parentLocale),s!=null)n=s._config;else return tt[a.parentLocale]||(tt[a.parentLocale]=[]),tt[a.parentLocale].push({name:t,config:a}),null;return D[t]=new Zt(Xt(n,a)),tt[t]&&tt[t].forEach(function(r){ua(r.name,r.config)}),_e(t),D[t]}else return delete D[t],null}function Qi(t,a){if(a!=null){var s,n,r=ws;D[t]!=null&&D[t].parentLocale!=null?D[t].set(Xt(D[t]._config,a)):(n=Rt(t),n!=null&&(r=n._config),a=Xt(r,a),n==null&&(a.abbr=t),s=new Zt(a),s.parentLocale=D[t],D[t]=s),_e(t)}else D[t]!=null&&(D[t].parentLocale!=null?(D[t]=D[t].parentLocale,t===_e()&&_e(t)):D[t]!=null&&delete D[t]);return D[t]}function ue(t){var a;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return at;if(!z(t)){if(a=Rt(t),a)return a;t=[t]}return Hi(t)}function Gi(){return Jt(D)}function fa(t){var a,s=t._a;return s&&b(t).overflow===-2&&(a=s[oe]<0||s[oe]>11?oe:s[se]<1||s[se]>la(s[F],s[oe])?se:s[N]<0||s[N]>24||s[N]===24&&(s[Z]!==0||s[de]!==0||s[xe]!==0)?N:s[Z]<0||s[Z]>59?Z:s[de]<0||s[de]>59?de:s[xe]<0||s[xe]>999?xe:-1,b(t)._overflowDayOfYear&&(a<F||a>se)&&(a=se),b(t)._overflowWeeks&&a===-1&&(a=zr),b(t)._overflowWeekday&&a===-1&&(a=Xr),b(t).overflow=a),t}var Ki=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Wi=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Vi=/Z|[+-]\d\d(?::?\d\d)?/,Ut=[["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]],ha=[["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/]],zi=/^\/?Date\((-?\d+)/i,Xi=/^(?:(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}))$/,Zi={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function vs(t){var a,s,n=t._i,r=Ki.exec(n)||Wi.exec(n),i,d,f,g,w=Ut.length,U=ha.length;if(r){for(b(t).iso=!0,a=0,s=w;a<s;a++)if(Ut[a][1].exec(r[1])){d=Ut[a][0],i=Ut[a][2]!==!1;break}if(d==null){t._isValid=!1;return}if(r[3]){for(a=0,s=U;a<s;a++)if(ha[a][1].exec(r[3])){f=(r[2]||" ")+ha[a][0];break}if(f==null){t._isValid=!1;return}}if(!i&&f!=null){t._isValid=!1;return}if(r[4])if(Vi.exec(r[4]))g="Z";else{t._isValid=!1;return}t._f=d+(f||"")+(g||""),ma(t)}else t._isValid=!1}function Ji(t,a,s,n,r,i){var d=[el(t),cs.indexOf(a),parseInt(s,10),parseInt(n,10),parseInt(r,10)];return i&&d.push(parseInt(i,10)),d}function el(t){var a=parseInt(t,10);return a<=49?2e3+a:a<=999?1900+a:a}function tl(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function al(t,a,s){if(t){var n=ys.indexOf(t),r=new Date(a[0],a[1],a[2]).getDay();if(n!==r)return b(s).weekdayMismatch=!0,s._isValid=!1,!1}return!0}function sl(t,a,s){if(t)return Zi[t];if(a)return 0;var n=parseInt(s,10),r=n%100,i=(n-r)/100;return i*60+r}function Ms(t){var a=Xi.exec(tl(t._i)),s;if(a){if(s=Ji(a[4],a[3],a[2],a[5],a[6],a[7]),!al(a[1],s,t))return;t._a=s,t._tzm=sl(a[8],a[9],a[10]),t._d=Je.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),b(t).rfc2822=!0}else t._isValid=!1}function nl(t){var a=zi.exec(t._i);if(a!==null){t._d=new Date(+a[1]);return}if(vs(t),t._isValid===!1)delete t._isValid;else return;if(Ms(t),t._isValid===!1)delete t._isValid;else return;t._strict?t._isValid=!1:m.createFromInputFallback(t)}m.createFromInputFallback=K("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))});function Ie(t,a,s){return t??a??s}function rl(t){var a=new Date(m.now());return t._useUTC?[a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()]:[a.getFullYear(),a.getMonth(),a.getDate()]}function pa(t){var a,s,n=[],r,i,d;if(!t._d){for(r=rl(t),t._w&&t._a[se]==null&&t._a[oe]==null&&il(t),t._dayOfYear!=null&&(d=Ie(t._a[F],r[F]),(t._dayOfYear>Xe(d)||t._dayOfYear===0)&&(b(t)._overflowDayOfYear=!0),s=Je(d,0,t._dayOfYear),t._a[oe]=s.getUTCMonth(),t._a[se]=s.getUTCDate()),a=0;a<3&&t._a[a]==null;++a)t._a[a]=n[a]=r[a];for(;a<7;a++)t._a[a]=n[a]=t._a[a]==null?a===2?1:0:t._a[a];t._a[N]===24&&t._a[Z]===0&&t._a[de]===0&&t._a[xe]===0&&(t._nextDay=!0,t._a[N]=0),t._d=(t._useUTC?Je:fi).apply(null,n),i=t._useUTC?t._d.getUTCDay():t._d.getDay(),t._tzm!=null&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[N]=24),t._w&&typeof t._w.d<"u"&&t._w.d!==i&&(b(t).weekdayMismatch=!0)}}function il(t){var a,s,n,r,i,d,f,g,w;a=t._w,a.GG!=null||a.W!=null||a.E!=null?(i=1,d=4,s=Ie(a.GG,t._a[F],et(B(),1,4).year),n=Ie(a.W,1),r=Ie(a.E,1),(r<1||r>7)&&(g=!0)):(i=t._locale._week.dow,d=t._locale._week.doy,w=et(B(),i,d),s=Ie(a.gg,t._a[F],w.year),n=Ie(a.w,w.week),a.d!=null?(r=a.d,(r<0||r>6)&&(g=!0)):a.e!=null?(r=a.e+i,(a.e<0||a.e>6)&&(g=!0)):r=i),n<1||n>ce(s,i,d)?b(t)._overflowWeeks=!0:g!=null?b(t)._overflowWeekday=!0:(f=ms(s,n,r,i,d),t._a[F]=f.year,t._dayOfYear=f.dayOfYear)}m.ISO_8601=function(){},m.RFC_2822=function(){};function ma(t){if(t._f===m.ISO_8601){vs(t);return}if(t._f===m.RFC_2822){Ms(t);return}t._a=[],b(t).empty=!0;var a=""+t._i,s,n,r,i,d,f=a.length,g=0,w,U;for(r=as(t._f,t._locale).match(ea)||[],U=r.length,s=0;s<U;s++)i=r[s],n=(a.match(Kr(i,t))||[])[0],n&&(d=a.substr(0,a.indexOf(n)),d.length>0&&b(t).unusedInput.push(d),a=a.slice(a.indexOf(n)+n.length),g+=n.length),De[i]?(n?b(t).empty=!1:b(t).unusedTokens.push(i),Vr(i,n,t)):t._strict&&!n&&b(t).unusedTokens.push(i);b(t).charsLeftOver=f-g,a.length>0&&b(t).unusedInput.push(a),t._a[N]<=12&&b(t).bigHour===!0&&t._a[N]>0&&(b(t).bigHour=void 0),b(t).parsedDateParts=t._a.slice(0),b(t).meridiem=t._meridiem,t._a[N]=ll(t._locale,t._a[N],t._meridiem),w=b(t).era,w!==null&&(t._a[F]=t._locale.erasConvertYear(w,t._a[F])),pa(t),fa(t)}function ll(t,a,s){var n;return s==null?a:t.meridiemHour!=null?t.meridiemHour(a,s):(t.isPM!=null&&(n=t.isPM(s),n&&a<12&&(a+=12),!n&&a===12&&(a=0)),a)}function ol(t){var a,s,n,r,i,d,f=!1,g=t._f.length;if(g===0){b(t).invalidFormat=!0,t._d=new Date(NaN);return}for(r=0;r<g;r++)i=0,d=!1,a=zt({},t),t._useUTC!=null&&(a._useUTC=t._useUTC),a._f=t._f[r],ma(a),Wt(a)&&(d=!0),i+=b(a).charsLeftOver,i+=b(a).unusedTokens.length*10,b(a).score=i,f?i<n&&(n=i,s=a):(n==null||i<n||d)&&(n=i,s=a,d&&(f=!0));ge(t,s||a)}function dl(t){if(!t._d){var a=aa(t._i),s=a.day===void 0?a.date:a.day;t._a=Xa([a.year,a.month,s,a.hour,a.minute,a.second,a.millisecond],function(n){return n&&parseInt(n,10)}),pa(t)}}function cl(t){var a=new We(fa(Ss(t)));return a._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function Ss(t){var a=t._i,s=t._f;return t._locale=t._locale||ue(t._l),a===null||s===void 0&&a===""?mt({nullInput:!0}):(typeof a=="string"&&(t._i=a=t._locale.preparse(a)),X(a)?new We(fa(a)):(Ke(a)?t._d=a:z(s)?ol(t):s?ma(t):ul(t),Wt(t)||(t._d=null),t))}function ul(t){var a=t._i;P(a)?t._d=new Date(m.now()):Ke(a)?t._d=new Date(a.valueOf()):typeof a=="string"?nl(t):z(a)?(t._a=Xa(a.slice(0),function(s){return parseInt(s,10)}),pa(t)):ke(a)?dl(t):ie(a)?t._d=new Date(a):m.createFromInputFallback(t)}function ks(t,a,s,n,r){var i={};return(a===!0||a===!1)&&(n=a,a=void 0),(s===!0||s===!1)&&(n=s,s=void 0),(ke(t)&&Gt(t)||z(t)&&t.length===0)&&(t=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=r,i._l=s,i._i=t,i._f=a,i._strict=n,cl(i)}function B(t,a,s,n){return ks(t,a,s,n,!1)}var fl=K("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=B.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:mt()}),hl=K("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=B.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:mt()});function xs(t,a){var s,n;if(a.length===1&&z(a[0])&&(a=a[0]),!a.length)return B();for(s=a[0],n=1;n<a.length;++n)(!a[n].isValid()||a[n][t](s))&&(s=a[n]);return s}function pl(){var t=[].slice.call(arguments,0);return xs("isBefore",t)}function ml(){var t=[].slice.call(arguments,0);return xs("isAfter",t)}var yl=function(){return Date.now?Date.now():+new Date},st=["year","quarter","month","week","day","hour","minute","second","millisecond"];function gl(t){var a,s=!1,n,r=st.length;for(a in t)if(S(t,a)&&!(O.call(st,a)!==-1&&(t[a]==null||!isNaN(t[a]))))return!1;for(n=0;n<r;++n)if(t[st[n]]){if(s)return!1;parseFloat(t[st[n]])!==v(t[st[n]])&&(s=!0)}return!0}function _l(){return this._isValid}function wl(){return J(NaN)}function Ct(t){var a=aa(t),s=a.year||0,n=a.quarter||0,r=a.month||0,i=a.week||a.isoWeek||0,d=a.day||0,f=a.hour||0,g=a.minute||0,w=a.second||0,U=a.millisecond||0;this._isValid=gl(a),this._milliseconds=+U+w*1e3+g*6e4+f*1e3*60*60,this._days=+d+i*7,this._months=+r+n*3+s*12,this._data={},this._locale=ue(),this._bubble()}function Bt(t){return t instanceof Ct}function ya(t){return t<0?Math.round(-1*t)*-1:Math.round(t)}function bl(t,a,s){var n=Math.min(t.length,a.length),r=Math.abs(t.length-a.length),i=0,d;for(d=0;d<n;d++)v(t[d])!==v(a[d])&&i++;return i+r}function Rs(t,a){_(t,0,0,function(){var s=this.utcOffset(),n="+";return s<0&&(s=-s,n="-"),n+ae(~~(s/60),2)+a+ae(~~s%60,2)})}Rs("Z",":"),Rs("ZZ",""),y("Z",Mt),y("ZZ",Mt),R(["Z","ZZ"],function(t,a,s){s._useUTC=!0,s._tzm=ga(Mt,t)});var vl=/([\+\-]|\d\d)/gi;function ga(t,a){var s=(a||"").match(t),n,r,i;return s===null?null:(n=s[s.length-1]||[],r=(n+"").match(vl)||["-",0,0],i=+(r[1]*60)+v(r[2]),i===0?0:r[0]==="+"?i:-i)}function _a(t,a){var s,n;return a._isUTC?(s=a.clone(),n=(X(t)||Ke(t)?t.valueOf():B(t).valueOf())-s.valueOf(),s._d.setTime(s._d.valueOf()+n),m.updateOffset(s,!1),s):B(t).local()}function wa(t){return-Math.round(t._d.getTimezoneOffset())}m.updateOffset=function(){};function Ml(t,a,s){var n=this._offset||0,r;if(!this.isValid())return t!=null?this:NaN;if(t!=null){if(typeof t=="string"){if(t=ga(Mt,t),t===null)return this}else Math.abs(t)<16&&!s&&(t=t*60);return!this._isUTC&&a&&(r=wa(this)),this._offset=t,this._isUTC=!0,r!=null&&this.add(r,"m"),n!==t&&(!a||this._changeInProgress?As(this,J(t-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,m.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?n:wa(this)}function Sl(t,a){return t!=null?(typeof t!="string"&&(t=-t),this.utcOffset(t,a),this):-this.utcOffset()}function kl(t){return this.utcOffset(0,t)}function xl(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(wa(this),"m")),this}function Rl(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var t=ga(Qr,this._i);t!=null?this.utcOffset(t):this.utcOffset(0,!0)}return this}function Ul(t){return this.isValid()?(t=t?B(t).utcOffset():0,(this.utcOffset()-t)%60===0):!1}function Cl(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Bl(){if(!P(this._isDSTShifted))return this._isDSTShifted;var t={},a;return zt(t,this),t=Ss(t),t._a?(a=t._isUTC?ee(t._a):B(t._a),this._isDSTShifted=this.isValid()&&bl(t._a,a.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Al(){return this.isValid()?!this._isUTC:!1}function Dl(){return this.isValid()?this._isUTC:!1}function Us(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Ol=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Nl=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function J(t,a){var s=t,n=null,r,i,d;return Bt(t)?s={ms:t._milliseconds,d:t._days,M:t._months}:ie(t)||!isNaN(+t)?(s={},a?s[a]=+t:s.milliseconds=+t):(n=Ol.exec(t))?(r=n[1]==="-"?-1:1,s={y:0,d:v(n[se])*r,h:v(n[N])*r,m:v(n[Z])*r,s:v(n[de])*r,ms:v(ya(n[xe]*1e3))*r}):(n=Nl.exec(t))?(r=n[1]==="-"?-1:1,s={y:Re(n[2],r),M:Re(n[3],r),w:Re(n[4],r),d:Re(n[5],r),h:Re(n[6],r),m:Re(n[7],r),s:Re(n[8],r)}):s==null?s={}:typeof s=="object"&&("from"in s||"to"in s)&&(d=$l(B(s.from),B(s.to)),s={},s.ms=d.milliseconds,s.M=d.months),i=new Ct(s),Bt(t)&&S(t,"_locale")&&(i._locale=t._locale),Bt(t)&&S(t,"_isValid")&&(i._isValid=t._isValid),i}J.fn=Ct.prototype,J.invalid=wl;function Re(t,a){var s=t&&parseFloat(t.replace(",","."));return(isNaN(s)?0:s)*a}function Cs(t,a){var s={};return s.months=a.month()-t.month()+(a.year()-t.year())*12,t.clone().add(s.months,"M").isAfter(a)&&--s.months,s.milliseconds=+a-+t.clone().add(s.months,"M"),s}function $l(t,a){var s;return t.isValid()&&a.isValid()?(a=_a(a,t),t.isBefore(a)?s=Cs(t,a):(s=Cs(a,t),s.milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0}}function Bs(t,a){return function(s,n){var r,i;return n!==null&&!isNaN(+n)&&(ts(a,"moment()."+a+"(period, number) is deprecated. Please use moment()."+a+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=s,s=n,n=i),r=J(s,n),As(this,r,t),this}}function As(t,a,s,n){var r=a._milliseconds,i=ya(a._days),d=ya(a._months);t.isValid()&&(n=n??!0,d&&fs(t,Ze(t,"Month")+d*s),i&&ds(t,"Date",Ze(t,"Date")+i*s),r&&t._d.setTime(t._d.valueOf()+r*s),n&&m.updateOffset(t,i||d))}var Il=Bs(1,"add"),Yl=Bs(-1,"subtract");function Ds(t){return typeof t=="string"||t instanceof String}function Fl(t){return X(t)||Ke(t)||Ds(t)||ie(t)||Ll(t)||El(t)||t===null||t===void 0}function El(t){var a=ke(t)&&!Gt(t),s=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],r,i,d=n.length;for(r=0;r<d;r+=1)i=n[r],s=s||S(t,i);return a&&s}function Ll(t){var a=z(t),s=!1;return a&&(s=t.filter(function(n){return!ie(n)&&Ds(t)}).length===0),a&&s}function Pl(t){var a=ke(t)&&!Gt(t),s=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],r,i;for(r=0;r<n.length;r+=1)i=n[r],s=s||S(t,i);return a&&s}function Tl(t,a){var s=t.diff(a,"days",!0);return s<-6?"sameElse":s<-1?"lastWeek":s<0?"lastDay":s<1?"sameDay":s<2?"nextDay":s<7?"nextWeek":"sameElse"}function jl(t,a){arguments.length===1&&(arguments[0]?Fl(arguments[0])?(t=arguments[0],a=void 0):Pl(arguments[0])&&(a=arguments[0],t=void 0):(t=void 0,a=void 0));var s=t||B(),n=_a(s,this).startOf("day"),r=m.calendarFormat(this,n)||"sameElse",i=a&&(te(a[r])?a[r].call(this,s):a[r]);return this.format(i||this.localeData().calendar(r,this,B(s)))}function Hl(){return new We(this)}function ql(t,a){var s=X(t)?t:B(t);return this.isValid()&&s.isValid()?(a=W(a)||"millisecond",a==="millisecond"?this.valueOf()>s.valueOf():s.valueOf()<this.clone().startOf(a).valueOf()):!1}function Ql(t,a){var s=X(t)?t:B(t);return this.isValid()&&s.isValid()?(a=W(a)||"millisecond",a==="millisecond"?this.valueOf()<s.valueOf():this.clone().endOf(a).valueOf()<s.valueOf()):!1}function Gl(t,a,s,n){var r=X(t)?t:B(t),i=X(a)?a:B(a);return this.isValid()&&r.isValid()&&i.isValid()?(n=n||"()",(n[0]==="("?this.isAfter(r,s):!this.isBefore(r,s))&&(n[1]===")"?this.isBefore(i,s):!this.isAfter(i,s))):!1}function Kl(t,a){var s=X(t)?t:B(t),n;return this.isValid()&&s.isValid()?(a=W(a)||"millisecond",a==="millisecond"?this.valueOf()===s.valueOf():(n=s.valueOf(),this.clone().startOf(a).valueOf()<=n&&n<=this.clone().endOf(a).valueOf())):!1}function Wl(t,a){return this.isSame(t,a)||this.isAfter(t,a)}function Vl(t,a){return this.isSame(t,a)||this.isBefore(t,a)}function zl(t,a,s){var n,r,i;if(!this.isValid())return NaN;if(n=_a(t,this),!n.isValid())return NaN;switch(r=(n.utcOffset()-this.utcOffset())*6e4,a=W(a),a){case"year":i=At(this,n)/12;break;case"month":i=At(this,n);break;case"quarter":i=At(this,n)/3;break;case"second":i=(this-n)/1e3;break;case"minute":i=(this-n)/6e4;break;case"hour":i=(this-n)/36e5;break;case"day":i=(this-n-r)/864e5;break;case"week":i=(this-n-r)/6048e5;break;default:i=this-n}return s?i:V(i)}function At(t,a){if(t.date()<a.date())return-At(a,t);var s=(a.year()-t.year())*12+(a.month()-t.month()),n=t.clone().add(s,"months"),r,i;return a-n<0?(r=t.clone().add(s-1,"months"),i=(a-n)/(n-r)):(r=t.clone().add(s+1,"months"),i=(a-n)/(r-n)),-(s+i)||0}m.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",m.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Xl(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Zl(t){if(!this.isValid())return null;var a=t!==!0,s=a?this.clone().utc():this;return s.year()<0||s.year()>9999?gt(s,a?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):te(Date.prototype.toISOString)?a?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",gt(s,"Z")):gt(s,a?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Jl(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",a="",s,n,r,i;return this.isLocal()||(t=this.utcOffset()===0?"moment.utc":"moment.parseZone",a="Z"),s="["+t+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",i=a+'[")]',this.format(s+n+r+i)}function eo(t){t||(t=this.isUtc()?m.defaultFormatUtc:m.defaultFormat);var a=gt(this,t);return this.localeData().postformat(a)}function to(t,a){return this.isValid()&&(X(t)&&t.isValid()||B(t).isValid())?J({to:this,from:t}).locale(this.locale()).humanize(!a):this.localeData().invalidDate()}function ao(t){return this.from(B(),t)}function so(t,a){return this.isValid()&&(X(t)&&t.isValid()||B(t).isValid())?J({from:this,to:t}).locale(this.locale()).humanize(!a):this.localeData().invalidDate()}function no(t){return this.to(B(),t)}function Os(t){var a;return t===void 0?this._locale._abbr:(a=ue(t),a!=null&&(this._locale=a),this)}var Ns=K("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return t===void 0?this.localeData():this.locale(t)});function $s(){return this._locale}var Dt=1e3,Ye=60*Dt,Ot=60*Ye,Is=(365*400+97)*24*Ot;function Fe(t,a){return(t%a+a)%a}function Ys(t,a,s){return t<100&&t>=0?new Date(t+400,a,s)-Is:new Date(t,a,s).valueOf()}function Fs(t,a,s){return t<100&&t>=0?Date.UTC(t+400,a,s)-Is:Date.UTC(t,a,s)}function ro(t){var a,s;if(t=W(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?Fs:Ys,t){case"year":a=s(this.year(),0,1);break;case"quarter":a=s(this.year(),this.month()-this.month()%3,1);break;case"month":a=s(this.year(),this.month(),1);break;case"week":a=s(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":a=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":a=s(this.year(),this.month(),this.date());break;case"hour":a=this._d.valueOf(),a-=Fe(a+(this._isUTC?0:this.utcOffset()*Ye),Ot);break;case"minute":a=this._d.valueOf(),a-=Fe(a,Ye);break;case"second":a=this._d.valueOf(),a-=Fe(a,Dt);break}return this._d.setTime(a),m.updateOffset(this,!0),this}function io(t){var a,s;if(t=W(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?Fs:Ys,t){case"year":a=s(this.year()+1,0,1)-1;break;case"quarter":a=s(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":a=s(this.year(),this.month()+1,1)-1;break;case"week":a=s(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":a=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":a=s(this.year(),this.month(),this.date()+1)-1;break;case"hour":a=this._d.valueOf(),a+=Ot-Fe(a+(this._isUTC?0:this.utcOffset()*Ye),Ot)-1;break;case"minute":a=this._d.valueOf(),a+=Ye-Fe(a,Ye)-1;break;case"second":a=this._d.valueOf(),a+=Dt-Fe(a,Dt)-1;break}return this._d.setTime(a),m.updateOffset(this,!0),this}function lo(){return this._d.valueOf()-(this._offset||0)*6e4}function oo(){return Math.floor(this.valueOf()/1e3)}function co(){return new Date(this.valueOf())}function uo(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function fo(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function ho(){return this.isValid()?this.toISOString():null}function po(){return Wt(this)}function mo(){return ge({},b(this))}function yo(){return b(this).overflow}function go(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}_("N",0,0,"eraAbbr"),_("NN",0,0,"eraAbbr"),_("NNN",0,0,"eraAbbr"),_("NNNN",0,0,"eraName"),_("NNNNN",0,0,"eraNarrow"),_("y",["y",1],"yo","eraYear"),_("y",["yy",2],0,"eraYear"),_("y",["yyy",3],0,"eraYear"),_("y",["yyyy",4],0,"eraYear"),y("N",ba),y("NN",ba),y("NNN",ba),y("NNNN",Co),y("NNNNN",Bo),R(["N","NN","NNN","NNNN","NNNNN"],function(t,a,s,n){var r=s._locale.erasParse(t,n,s._strict);r?b(s).era=r:b(s).invalidEra=t}),y("y",Oe),y("yy",Oe),y("yyy",Oe),y("yyyy",Oe),y("yo",Ao),R(["y","yy","yyy","yyyy"],F),R(["yo"],function(t,a,s,n){var r;s._locale._eraYearOrdinalRegex&&(r=t.match(s._locale._eraYearOrdinalRegex)),s._locale.eraYearOrdinalParse?a[F]=s._locale.eraYearOrdinalParse(t,r):a[F]=parseInt(t,10)});function _o(t,a){var s,n,r,i=this._eras||ue("en")._eras;for(s=0,n=i.length;s<n;++s){switch(typeof i[s].since){case"string":r=m(i[s].since).startOf("day"),i[s].since=r.valueOf();break}switch(typeof i[s].until){case"undefined":i[s].until=1/0;break;case"string":r=m(i[s].until).startOf("day").valueOf(),i[s].until=r.valueOf();break}}return i}function wo(t,a,s){var n,r,i=this.eras(),d,f,g;for(t=t.toUpperCase(),n=0,r=i.length;n<r;++n)if(d=i[n].name.toUpperCase(),f=i[n].abbr.toUpperCase(),g=i[n].narrow.toUpperCase(),s)switch(a){case"N":case"NN":case"NNN":if(f===t)return i[n];break;case"NNNN":if(d===t)return i[n];break;case"NNNNN":if(g===t)return i[n];break}else if([d,f,g].indexOf(t)>=0)return i[n]}function bo(t,a){var s=t.since<=t.until?1:-1;return a===void 0?m(t.since).year():m(t.since).year()+(a-t.offset)*s}function vo(){var t,a,s,n=this.localeData().eras();for(t=0,a=n.length;t<a;++t)if(s=this.clone().startOf("day").valueOf(),n[t].since<=s&&s<=n[t].until||n[t].until<=s&&s<=n[t].since)return n[t].name;return""}function Mo(){var t,a,s,n=this.localeData().eras();for(t=0,a=n.length;t<a;++t)if(s=this.clone().startOf("day").valueOf(),n[t].since<=s&&s<=n[t].until||n[t].until<=s&&s<=n[t].since)return n[t].narrow;return""}function So(){var t,a,s,n=this.localeData().eras();for(t=0,a=n.length;t<a;++t)if(s=this.clone().startOf("day").valueOf(),n[t].since<=s&&s<=n[t].until||n[t].until<=s&&s<=n[t].since)return n[t].abbr;return""}function ko(){var t,a,s,n,r=this.localeData().eras();for(t=0,a=r.length;t<a;++t)if(s=r[t].since<=r[t].until?1:-1,n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until||r[t].until<=n&&n<=r[t].since)return(this.year()-m(r[t].since).year())*s+r[t].offset;return this.year()}function xo(t){return S(this,"_erasNameRegex")||va.call(this),t?this._erasNameRegex:this._erasRegex}function Ro(t){return S(this,"_erasAbbrRegex")||va.call(this),t?this._erasAbbrRegex:this._erasRegex}function Uo(t){return S(this,"_erasNarrowRegex")||va.call(this),t?this._erasNarrowRegex:this._erasRegex}function ba(t,a){return a.erasAbbrRegex(t)}function Co(t,a){return a.erasNameRegex(t)}function Bo(t,a){return a.erasNarrowRegex(t)}function Ao(t,a){return a._eraYearOrdinalRegex||Oe}function va(){var t=[],a=[],s=[],n=[],r,i,d,f,g,w=this.eras();for(r=0,i=w.length;r<i;++r)d=le(w[r].name),f=le(w[r].abbr),g=le(w[r].narrow),a.push(d),t.push(f),s.push(g),n.push(d),n.push(f),n.push(g);this._erasRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+a.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+t.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}_(0,["gg",2],0,function(){return this.weekYear()%100}),_(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Nt(t,a){_(0,[t,t.length],0,a)}Nt("gggg","weekYear"),Nt("ggggg","weekYear"),Nt("GGGG","isoWeekYear"),Nt("GGGGG","isoWeekYear"),y("G",vt),y("g",vt),y("GG",C,H),y("gg",C,H),y("GGGG",na,sa),y("gggg",na,sa),y("GGGGG",bt,_t),y("ggggg",bt,_t),ze(["gggg","ggggg","GGGG","GGGGG"],function(t,a,s,n){a[n.substr(0,2)]=v(t)}),ze(["gg","GG"],function(t,a,s,n){a[n]=m.parseTwoDigitYear(t)});function Do(t){return Es.call(this,t,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Oo(t){return Es.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function No(){return ce(this.year(),1,4)}function $o(){return ce(this.isoWeekYear(),1,4)}function Io(){var t=this.localeData()._week;return ce(this.year(),t.dow,t.doy)}function Yo(){var t=this.localeData()._week;return ce(this.weekYear(),t.dow,t.doy)}function Es(t,a,s,n,r){var i;return t==null?et(this,n,r).year:(i=ce(t,n,r),a>i&&(a=i),Fo.call(this,t,a,s,n,r))}function Fo(t,a,s,n,r){var i=ms(t,a,s,n,r),d=Je(i.year,0,i.dayOfYear);return this.year(d.getUTCFullYear()),this.month(d.getUTCMonth()),this.date(d.getUTCDate()),this}_("Q",0,"Qo","quarter"),y("Q",ns),R("Q",function(t,a){a[oe]=(v(t)-1)*3});function Eo(t){return t==null?Math.ceil((this.month()+1)/3):this.month((t-1)*3+this.month()%3)}_("D",["DD",2],"Do","date"),y("D",C,Ne),y("DD",C,H),y("Do",function(t,a){return t?a._dayOfMonthOrdinalParse||a._ordinalParse:a._dayOfMonthOrdinalParseLenient}),R(["D","DD"],se),R("Do",function(t,a){a[se]=v(t.match(C)[0])});var Ls=$e("Date",!0);_("DDD",["DDDD",3],"DDDo","dayOfYear"),y("DDD",wt),y("DDDD",rs),R(["DDD","DDDD"],function(t,a,s){s._dayOfYear=v(t)});function Lo(t){var a=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return t==null?a:this.add(t-a,"d")}_("m",["mm",2],0,"minute"),y("m",C,ra),y("mm",C,H),R(["m","mm"],Z);var Po=$e("Minutes",!1);_("s",["ss",2],0,"second"),y("s",C,ra),y("ss",C,H),R(["s","ss"],de);var To=$e("Seconds",!1);_("S",0,0,function(){return~~(this.millisecond()/100)}),_(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),_(0,["SSS",3],0,"millisecond"),_(0,["SSSS",4],0,function(){return this.millisecond()*10}),_(0,["SSSSS",5],0,function(){return this.millisecond()*100}),_(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),_(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),_(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),_(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),y("S",wt,ns),y("SS",wt,H),y("SSS",wt,rs);var we,Ps;for(we="SSSS";we.length<=9;we+="S")y(we,Oe);function jo(t,a){a[xe]=v(("0."+t)*1e3)}for(we="S";we.length<=9;we+="S")R(we,jo);Ps=$e("Milliseconds",!1),_("z",0,0,"zoneAbbr"),_("zz",0,0,"zoneName");function Ho(){return this._isUTC?"UTC":""}function qo(){return this._isUTC?"Coordinated Universal Time":""}var h=We.prototype;h.add=Il,h.calendar=jl,h.clone=Hl,h.diff=zl,h.endOf=io,h.format=eo,h.from=to,h.fromNow=ao,h.to=so,h.toNow=no,h.get=Jr,h.invalidAt=yo,h.isAfter=ql,h.isBefore=Ql,h.isBetween=Gl,h.isSame=Kl,h.isSameOrAfter=Wl,h.isSameOrBefore=Vl,h.isValid=po,h.lang=Ns,h.locale=Os,h.localeData=$s,h.max=hl,h.min=fl,h.parsingFlags=mo,h.set=ei,h.startOf=ro,h.subtract=Yl,h.toArray=uo,h.toObject=fo,h.toDate=co,h.toISOString=Zl,h.inspect=Jl,typeof Symbol<"u"&&Symbol.for!=null&&(h[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),h.toJSON=ho,h.toString=Xl,h.unix=oo,h.valueOf=lo,h.creationData=go,h.eraName=vo,h.eraNarrow=Mo,h.eraAbbr=So,h.eraYear=ko,h.year=os,h.isLeapYear=Zr,h.weekYear=Do,h.isoWeekYear=Oo,h.quarter=h.quarters=Eo,h.month=hs,h.daysInMonth=di,h.week=h.weeks=gi,h.isoWeek=h.isoWeeks=_i,h.weeksInYear=Io,h.weeksInWeekYear=Yo,h.isoWeeksInYear=No,h.isoWeeksInISOWeekYear=$o,h.date=Ls,h.day=h.days=Di,h.weekday=Oi,h.isoWeekday=Ni,h.dayOfYear=Lo,h.hour=h.hours=Pi,h.minute=h.minutes=Po,h.second=h.seconds=To,h.millisecond=h.milliseconds=Ps,h.utcOffset=Ml,h.utc=kl,h.local=xl,h.parseZone=Rl,h.hasAlignedHourOffset=Ul,h.isDST=Cl,h.isLocal=Al,h.isUtcOffset=Dl,h.isUtc=Us,h.isUTC=Us,h.zoneAbbr=Ho,h.zoneName=qo,h.dates=K("dates accessor is deprecated. Use date instead.",Ls),h.months=K("months accessor is deprecated. Use month instead",hs),h.years=K("years accessor is deprecated. Use year instead",os),h.zone=K("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Sl),h.isDSTShifted=K("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Bl);function Qo(t){return B(t*1e3)}function Go(){return B.apply(null,arguments).parseZone()}function Ts(t){return t}var k=Zt.prototype;k.calendar=Ar,k.longDateFormat=$r,k.invalidDate=Yr,k.ordinal=Lr,k.preparse=Ts,k.postformat=Ts,k.relativeTime=Tr,k.pastFuture=jr,k.set=Cr,k.eras=_o,k.erasParse=wo,k.erasConvertYear=bo,k.erasAbbrRegex=Ro,k.erasNameRegex=xo,k.erasNarrowRegex=Uo,k.months=ri,k.monthsShort=ii,k.monthsParse=oi,k.monthsRegex=ui,k.monthsShortRegex=ci,k.week=hi,k.firstDayOfYear=yi,k.firstDayOfWeek=mi,k.weekdays=Ri,k.weekdaysMin=Ci,k.weekdaysShort=Ui,k.weekdaysParse=Ai,k.weekdaysRegex=$i,k.weekdaysShortRegex=Ii,k.weekdaysMinRegex=Yi,k.isPM=Ei,k.meridiem=Ti;function $t(t,a,s,n){var r=ue(),i=ee().set(n,a);return r[s](i,t)}function js(t,a,s){if(ie(t)&&(a=t,t=void 0),t=t||"",a!=null)return $t(t,a,s,"month");var n,r=[];for(n=0;n<12;n++)r[n]=$t(t,n,s,"month");return r}function Ma(t,a,s,n){typeof t=="boolean"?(ie(a)&&(s=a,a=void 0),a=a||""):(a=t,s=a,t=!1,ie(a)&&(s=a,a=void 0),a=a||"");var r=ue(),i=t?r._week.dow:0,d,f=[];if(s!=null)return $t(a,(s+i)%7,n,"day");for(d=0;d<7;d++)f[d]=$t(a,(d+i)%7,n,"day");return f}function Ko(t,a){return js(t,a,"months")}function Wo(t,a){return js(t,a,"monthsShort")}function Vo(t,a,s){return Ma(t,a,s,"weekdays")}function zo(t,a,s){return Ma(t,a,s,"weekdaysShort")}function Xo(t,a,s){return Ma(t,a,s,"weekdaysMin")}_e("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var a=t%10,s=v(t%100/10)===1?"th":a===1?"st":a===2?"nd":a===3?"rd":"th";return t+s}}),m.lang=K("moment.lang is deprecated. Use moment.locale instead.",_e),m.langData=K("moment.langData is deprecated. Use moment.localeData instead.",ue);var fe=Math.abs;function Zo(){var t=this._data;return this._milliseconds=fe(this._milliseconds),this._days=fe(this._days),this._months=fe(this._months),t.milliseconds=fe(t.milliseconds),t.seconds=fe(t.seconds),t.minutes=fe(t.minutes),t.hours=fe(t.hours),t.months=fe(t.months),t.years=fe(t.years),this}function Hs(t,a,s,n){var r=J(a,s);return t._milliseconds+=n*r._milliseconds,t._days+=n*r._days,t._months+=n*r._months,t._bubble()}function Jo(t,a){return Hs(this,t,a,1)}function ed(t,a){return Hs(this,t,a,-1)}function qs(t){return t<0?Math.floor(t):Math.ceil(t)}function td(){var t=this._milliseconds,a=this._days,s=this._months,n=this._data,r,i,d,f,g;return t>=0&&a>=0&&s>=0||t<=0&&a<=0&&s<=0||(t+=qs(Sa(s)+a)*864e5,a=0,s=0),n.milliseconds=t%1e3,r=V(t/1e3),n.seconds=r%60,i=V(r/60),n.minutes=i%60,d=V(i/60),n.hours=d%24,a+=V(d/24),g=V(Qs(a)),s+=g,a-=qs(Sa(g)),f=V(s/12),s%=12,n.days=a,n.months=s,n.years=f,this}function Qs(t){return t*4800/146097}function Sa(t){return t*146097/4800}function ad(t){if(!this.isValid())return NaN;var a,s,n=this._milliseconds;if(t=W(t),t==="month"||t==="quarter"||t==="year")switch(a=this._days+n/864e5,s=this._months+Qs(a),t){case"month":return s;case"quarter":return s/3;case"year":return s/12}else switch(a=this._days+Math.round(Sa(this._months)),t){case"week":return a/7+n/6048e5;case"day":return a+n/864e5;case"hour":return a*24+n/36e5;case"minute":return a*1440+n/6e4;case"second":return a*86400+n/1e3;case"millisecond":return Math.floor(a*864e5)+n;default:throw new Error("Unknown unit "+t)}}function he(t){return function(){return this.as(t)}}var Gs=he("ms"),sd=he("s"),nd=he("m"),rd=he("h"),id=he("d"),ld=he("w"),od=he("M"),dd=he("Q"),cd=he("y"),ud=Gs;function fd(){return J(this)}function hd(t){return t=W(t),this.isValid()?this[t+"s"]():NaN}function Ue(t){return function(){return this.isValid()?this._data[t]:NaN}}var pd=Ue("milliseconds"),md=Ue("seconds"),yd=Ue("minutes"),gd=Ue("hours"),_d=Ue("days"),wd=Ue("months"),bd=Ue("years");function vd(){return V(this.days()/7)}var pe=Math.round,Ee={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Md(t,a,s,n,r){return r.relativeTime(a||1,!!s,t,n)}function Sd(t,a,s,n){var r=J(t).abs(),i=pe(r.as("s")),d=pe(r.as("m")),f=pe(r.as("h")),g=pe(r.as("d")),w=pe(r.as("M")),U=pe(r.as("w")),I=pe(r.as("y")),T=i<=s.ss&&["s",i]||i<s.s&&["ss",i]||d<=1&&["m"]||d<s.m&&["mm",d]||f<=1&&["h"]||f<s.h&&["hh",f]||g<=1&&["d"]||g<s.d&&["dd",g];return s.w!=null&&(T=T||U<=1&&["w"]||U<s.w&&["ww",U]),T=T||w<=1&&["M"]||w<s.M&&["MM",w]||I<=1&&["y"]||["yy",I],T[2]=a,T[3]=+t>0,T[4]=n,Md.apply(null,T)}function kd(t){return t===void 0?pe:typeof t=="function"?(pe=t,!0):!1}function xd(t,a){return Ee[t]===void 0?!1:a===void 0?Ee[t]:(Ee[t]=a,t==="s"&&(Ee.ss=a-1),!0)}function Rd(t,a){if(!this.isValid())return this.localeData().invalidDate();var s=!1,n=Ee,r,i;return typeof t=="object"&&(a=t,t=!1),typeof t=="boolean"&&(s=t),typeof a=="object"&&(n=Object.assign({},Ee,a),a.s!=null&&a.ss==null&&(n.ss=a.s-1)),r=this.localeData(),i=Sd(this,!s,n,r),s&&(i=r.pastFuture(+this,i)),r.postformat(i)}var ka=Math.abs;function Le(t){return(t>0)-(t<0)||+t}function It(){if(!this.isValid())return this.localeData().invalidDate();var t=ka(this._milliseconds)/1e3,a=ka(this._days),s=ka(this._months),n,r,i,d,f=this.asSeconds(),g,w,U,I;return f?(n=V(t/60),r=V(n/60),t%=60,n%=60,i=V(s/12),s%=12,d=t?t.toFixed(3).replace(/\.?0+$/,""):"",g=f<0?"-":"",w=Le(this._months)!==Le(f)?"-":"",U=Le(this._days)!==Le(f)?"-":"",I=Le(this._milliseconds)!==Le(f)?"-":"",g+"P"+(i?w+i+"Y":"")+(s?w+s+"M":"")+(a?U+a+"D":"")+(r||n||t?"T":"")+(r?I+r+"H":"")+(n?I+n+"M":"")+(t?I+d+"S":"")):"P0D"}var M=Ct.prototype;M.isValid=_l,M.abs=Zo,M.add=Jo,M.subtract=ed,M.as=ad,M.asMilliseconds=Gs,M.asSeconds=sd,M.asMinutes=nd,M.asHours=rd,M.asDays=id,M.asWeeks=ld,M.asMonths=od,M.asQuarters=dd,M.asYears=cd,M.valueOf=ud,M._bubble=td,M.clone=fd,M.get=hd,M.milliseconds=pd,M.seconds=md,M.minutes=yd,M.hours=gd,M.days=_d,M.weeks=vd,M.months=wd,M.years=bd,M.humanize=Rd,M.toISOString=It,M.toString=It,M.toJSON=It,M.locale=Os,M.localeData=$s,M.toIsoString=K("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",It),M.lang=Ns,_("X",0,0,"unix"),_("x",0,0,"valueOf"),y("x",vt),y("X",Gr),R("X",function(t,a,s){s._d=new Date(parseFloat(t)*1e3)}),R("x",function(t,a,s){s._d=new Date(v(t))});//! moment.js
|
|
10
|
-
m.version="2.30.1",Rr(B),m.fn=h,m.min=pl,m.max=ml,m.now=yl,m.utc=ee,m.unix=Qo,m.months=Ko,m.isDate=Ke,m.locale=_e,m.invalid=mt,m.duration=J,m.isMoment=X,m.weekdays=Vo,m.parseZone=Go,m.localeData=ue,m.isDuration=Bt,m.monthsShort=Wo,m.weekdaysMin=Xo,m.defineLocale=ua,m.updateLocale=Qi,m.locales=Gi,m.weekdaysShort=zo,m.normalizeUnits=W,m.relativeTimeRounding=kd,m.relativeTimeThreshold=xd,m.calendarFormat=Tl,m.prototype=h,m.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 Ud=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,Cd=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,Ks=/(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,xa=[/^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],Bd={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:Ks,monthsShortRegex:Ks,monthsStrictRegex:Ud,monthsShortStrictRegex:Cd,monthsParse:xa,longMonthsParse:xa,shortMonthsParse:xa,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:(t,a)=>{switch(a){case"D":return t+(t===1?"er":"");default:case"M":case"Q":case"DDD":case"d":return t+(t===1?"er":"e");case"w":case"W":return t+(t===1?"re":"e")}},week:{dow:1,doy:4}};m.locale("fr",Bd);const nt=(t,a,s=!0)=>(s?t.getFullYear()===a.getFullYear():!0)&&t.getMonth()===a.getMonth()&&t.getDate()===a.getDate(),Ra=()=>m().locale("fr").subtract(1,"days").toDate(),Pe=t=>new Date>t,Ws=t=>typeof t=="function",Ua=(t,a,s)=>{const n={...t},r=Object.entries(t);for(const[i,d]of r){const f=a[i];f?n[i]=s(d,f):n[i]=d}return n},Ad=t=>Object.entries(t),Dd=["crewUpdate","userMetaUpdate","userQuestMetaUpdate","userInventoryUpdate","userOrnamentsUpdate"],Vs=new yr.EventEmitter,Te=(t,a,s)=>{Vs.emit(t,a,s)},Od=t=>{for(const a of Dd)Vs.on(a,(s,n)=>{t(s,n)})};class o{constructor(){e(this,"onUserMetaUpdate");e(this,"onUserQuestMetaUpdate");e(this,"onUserInventoryUpdate");e(this,"onUserOrnamentsUpdate");e(this,"onCrewUpdate");e(this,"complete",async(a,{_userQuest:s,_userCrew:n,_userMeta:r})=>{const i=s??await Qa(a);if(this.isCompleted(i))return null;const d=r??await lt(a),f=n??await mn(a);return this.crew&&f?this.daily?await this.markCrewDailyAsCompleted(f.crew._id,i.user._id):(await this.markAsCompleted(i),await this.markCrewAsCompleted(f.crew._id)):await this.markAsCompleted(i),await this.specificQuestCompletion(i),await this.applyReward(i,d,f)});e(this,"getComputedRewards",(a,s)=>{const n=this.daily&&Ha(s)?qa(s):1;return{xp:(Ws(this.xp)?this.xp(a):this.xp)*n*(1+La(a)),berry:(Ws(this.berry)?this.berry(a):this.berry)*n}})}async applyReward(a,s,n){return this.title&&await ja(a.user._id,this.title.name),this.badge&&(this.crew&&n?await Js(n.crew._id,this.badge,this.rank.id):await Un(a.user._id,this.badge,this.rank.id)),this.isFactionBadge&&await Cn(a.user._id,this.rank.id),this.asset&&await Bn(a.user._id,this.asset),this.getComputedRewards(s,a)}async specificQuestCompletion(a){this.id==="daily_all"&&await En(a.user._id,a.lastFullComplete),this.id==="be_level_10"&&await Qn(a.user._id,!0),this.id!=="be_level_10"&&this.id.startsWith("be_level_")&&await Gn(a.user._id,!0)}isCompleted(a){return this.daily?On(a,this.id):Dn(a,this.id)}async markAsCompleted(a){this.daily?await Fn(a.user._id,this.id):await Yn(a.user._id,this.id)}async markCrewAsCompleted(a){await Xs(a,this.id)}async markCrewDailyAsCompleted(a,s){await Zs(a,s.toHexString(),this.id)}}class Nd extends o{constructor(){super(...arguments);e(this,"name","Prenez-en soin");e(this,"id","crew_carpenter_1_week");e(this,"rank",l.RANKS.COMMON);e(this,"description","Rester au dessus de 80% de détérioration pendant 1 semaine");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"crew",!0);e(this,"secret",!0);e(this,"badge",c.BadgeList.carpenter);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.quest.meta.streak80Percent>=7)}}class $d extends o{constructor(){super(...arguments);e(this,"name","Il est comme neuf !");e(this,"id","crew_carpenter_1_month");e(this,"rank",l.RANKS.RARE);e(this,"description","Rester au dessus de 80% de détérioration pendant 1 mois");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"crew",!0);e(this,"secret",!0);e(this,"badge",c.BadgeList.carpenter);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.quest.meta.streak80Percent>=30)}}class Id extends o{constructor(){super(...arguments);e(this,"name","À l'occasion, je vous mettrai un petit coup de polish");e(this,"id","crew_carpenter_3_months");e(this,"rank",l.RANKS.EPIC);e(this,"description","Rester au dessus de 80% de détérioration pendant 3 mois");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"crew",!0);e(this,"secret",!0);e(this,"badge",c.BadgeList.carpenter);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.quest.meta.streak80Percent>=30*3)}}class Yd extends o{constructor(){super(...arguments);e(this,"name","Vous ne naviguez qu'en eau calme ?");e(this,"id","crew_carpenter_6_months");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Rester au dessus de 80% de détérioration pendant 6 mois");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"crew",!0);e(this,"secret",!0);e(this,"badge",c.BadgeList.carpenter);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.quest.meta.streak80Percent>=30*6)}}class Fd extends o{constructor(){super(...arguments);e(this,"name","C'est un sacré charpentier que vous avez là !");e(this,"id","crew_carpenter_1_year");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Rester au dessus de 80% de détérioration pendant 1 an");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"crew",!0);e(this,"secret",!0);e(this,"asset",null);e(this,"title",c.questTitles["Charpentier Légendaire"]);e(this,"badge",c.BadgeList.carpenter);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.quest.meta.streak80Percent>=365)}}class Ed extends o{constructor(){super(...arguments);e(this,"name","Sympa votre barque");e(this,"id","crew_ship_level_10");e(this,"rank",l.RANKS.COMMON);e(this,"description","Atteindre le niveau 10 d'équipage");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"crew",!0);e(this,"badge",c.BadgeList.crewship);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>l.getCurrentLevel(s.meta.xp)>=10)}}class Ld extends o{constructor(){super(...arguments);e(this,"name","Joli bicoque");e(this,"id","crew_ship_level_25");e(this,"rank",l.RANKS.RARE);e(this,"description","Atteindre le niveau 25 d'équipage");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"crew",!0);e(this,"badge",c.BadgeList.crewship);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>l.getCurrentLevel(s.meta.xp)>=25)}}class Pd extends o{constructor(){super(...arguments);e(this,"name","* C'est un fameux trois-mâts *");e(this,"id","crew_ship_level_50");e(this,"rank",l.RANKS.EPIC);e(this,"description","Atteindre le niveau 50 d'équipage");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"crew",!0);e(this,"badge",c.BadgeList.crewship);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>l.getCurrentLevel(s.meta.xp)>=50)}}class Td extends o{constructor(){super(...arguments);e(this,"name","* Fin comme un oiseau *");e(this,"id","crew_ship_level_75");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Atteindre le niveau 75 d'équipage");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"crew",!0);e(this,"badge",c.BadgeList.crewship);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>l.getCurrentLevel(s.meta.xp)>=75)}}class jd extends o{constructor(){super(...arguments);e(this,"name","* Hisse et ho ! *");e(this,"id","crew_ship_level_100");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Atteindre le niveau 100 d'équipage");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"crew",!0);e(this,"asset",null);e(this,"title",c.questTitles.Santiano);e(this,"badge",c.BadgeList.crewship);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>l.getCurrentLevel(s.meta.xp)>=100)}}class Hd extends o{constructor(){super(...arguments);e(this,"name","Y'a pas de petites économies");e(this,"id","crew_have_100M_berry");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 100 000 000 Berrys dans le coffre d'équipage");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"crew",!0);e(this,"badge",c.BadgeList.communism);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.meta.berry>=1e8)}}class qd extends o{constructor(){super(...arguments);e(this,"name","Joli butin !");e(this,"id","crew_have_500M_berry");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 500 000 000 Berrys dans le coffre d'équipage");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"crew",!0);e(this,"badge",c.BadgeList.communism);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.meta.berry>=5e8)}}class Qd extends o{constructor(){super(...arguments);e(this,"name","Vous économisez pour un nouveau bateau ?");e(this,"id","crew_have_1Md_berry");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 1 000 000 000 Berrys dans le coffre d'équipage");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"crew",!0);e(this,"badge",c.BadgeList.communism);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.meta.berry>=1e9)}}class Gd extends o{constructor(){super(...arguments);e(this,"name","Ça fait beaucoup là non ?");e(this,"id","crew_have_5Md_berry");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 5 000 000 000 Berrys dans le coffre d'équipage");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"crew",!0);e(this,"badge",c.BadgeList.communism);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.meta.berry>=5e9)}}class Kd extends o{constructor(){super(...arguments);e(this,"name","Karl Marx serait fier de vous !");e(this,"id","crew_have_50Md_berry");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 50 000 000 000 Berrys dans le coffre d'équipage");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"crew",!0);e(this,"asset",null);e(this,"title",c.questTitles.Communiste);e(this,"badge",c.BadgeList.communism);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.meta.berry>=5e10)}}class Wd extends o{constructor(){super(...arguments);e(this,"name","Plus on est de fous...");e(this,"id","crew_size_5");e(this,"rank",l.RANKS.COMMON);e(this,"description","Être dans un équipage de 5 membres");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"crew",!0);e(this,"badge",c.BadgeList.sardine);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.members.length>=5)}}class Vd extends o{constructor(){super(...arguments);e(this,"name","Plus on rit !");e(this,"id","crew_size_7");e(this,"rank",l.RANKS.RARE);e(this,"description","Être dans un équipage de 7 membres");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"crew",!0);e(this,"badge",c.BadgeList.sardine);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.members.length>=7)}}class zd extends o{constructor(){super(...arguments);e(this,"name","Une petite famille");e(this,"id","crew_size_10");e(this,"rank",l.RANKS.EPIC);e(this,"description","Être dans un équipage de 10 membres");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"crew",!0);e(this,"badge",c.BadgeList.sardine);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.members.length>=10)}}class Xd extends o{constructor(){super(...arguments);e(this,"name","Va falloir des dortoirs en plus");e(this,"id","crew_size_12");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Être dans un équipage de 12 membres");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"crew",!0);e(this,"badge",c.BadgeList.sardine);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.members.length>=12)}}class Zd extends o{constructor(){super(...arguments);e(this,"name","* Ah qu'est-ce qu'on est serré ! *");e(this,"id","crew_size_15");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Être dans un équipage de 15 membres");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"crew",!0);e(this,"asset",null);e(this,"title",c.questTitles.Sardine);e(this,"badge",c.BadgeList.sardine);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.members.length>=15)}}class Jd extends o{constructor(){super(...arguments);e(this,"name","Réunion de crise");e(this,"id","crew_vocal_5");e(this,"rank",l.RANKS.COMMON);e(this,"description","Être dans un un vocal avec les 5 membres pendant 1 heure");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"crew",!0);e(this,"badge",c.BadgeList.shipsecte);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.quest.meta.maxVoiceMembers>=5)}}class ec extends o{constructor(){super(...arguments);e(this,"name","Conseil de guerre");e(this,"id","crew_vocal_7");e(this,"rank",l.RANKS.RARE);e(this,"description","Être dans un un vocal avec les 7 membres pendant 1 heure");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"crew",!0);e(this,"badge",c.BadgeList.shipsecte);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.quest.meta.maxVoiceMembers>=7)}}class tc extends o{constructor(){super(...arguments);e(this,"name","Réunion de famille");e(this,"id","crew_vocal_10");e(this,"rank",l.RANKS.EPIC);e(this,"description","Être dans un un vocal avec les 10 membres pendant 1 heure");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"crew",!0);e(this,"badge",c.BadgeList.shipsecte);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.quest.meta.maxVoiceMembers>=10)}}class ac extends o{constructor(){super(...arguments);e(this,"name","Les Inséparables");e(this,"id","crew_vocal_12");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Être dans un un vocal avec les 12 membres pendant 1 heure");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"crew",!0);e(this,"badge",c.BadgeList.shipsecte);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.quest.meta.maxVoiceMembers>=12)}}class sc extends o{constructor(){super(...arguments);e(this,"name","Ambiance sectaire un peu");e(this,"id","crew_vocal_15");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Être dans un un vocal avec les 15 membres pendant 1 heure");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"crew",!0);e(this,"asset",null);e(this,"title",c.questTitles["Membre d'une secte"]);e(this,"badge",c.BadgeList.shipsecte);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.quest.meta.maxVoiceMembers>=15)}}class nc extends o{constructor(){super(...arguments);e(this,"name","C'est sympa pour eux !");e(this,"id","crew_bring_50k_xp");e(this,"rank",l.RANKS.COMMON);e(this,"description","Rapporter 50 000 XP à l'équipage");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",c.BadgeList.broship);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onCrewUpdate",s=>s.meta.xp>=5e4)}}class rc extends o{constructor(){super(...arguments);e(this,"name","On voit que tu aimes ton équipage");e(this,"id","crew_bring_500k_xp");e(this,"rank",l.RANKS.RARE);e(this,"description","Rapporter 500 000 XP à l'équipage");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",c.BadgeList.broship);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onCrewUpdate",s=>s.meta.xp>=5e5)}}class ic extends o{constructor(){super(...arguments);e(this,"name","Le méritent-ils vraiment ?");e(this,"id","crew_bring_1m_xp");e(this,"rank",l.RANKS.EPIC);e(this,"description","Rapporter 1 000 000 XP à l'équipage");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",c.BadgeList.broship);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onCrewUpdate",s=>s.meta.xp>=1e6)}}class lc extends o{constructor(){super(...arguments);e(this,"name","J'espère que t'as eu une prime");e(this,"id","crew_bring_5m_xp");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Rapporter 5 000 000 XP à l'équipage");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",c.BadgeList.broship);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onCrewUpdate",s=>s.meta.xp>=5e6)}}class oc extends o{constructor(){super(...arguments);e(this,"name","Qu'on lui fasse une statue de Bronze !");e(this,"id","crew_bring_50m_xp");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Rapporter 50 000 000 XP à l'équipage");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",c.questTitles["Team Player"]);e(this,"badge",c.BadgeList.broship);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onCrewUpdate",s=>s.meta.xp>=5e7)}}const Ca=Object.freeze(Object.defineProperty({__proto__:null,CrewBeLevel10:Ed,CrewBeLevel100:jd,CrewBeLevel25:Ld,CrewBeLevel50:Pd,CrewBeLevel75:Td,CrewBring1mXp:ic,CrewBring500kXp:rc,CrewBring50kXp:nc,CrewBring50mXp:oc,CrewBring5mXp:lc,CrewCarpenter1Month:$d,CrewCarpenter1Week:Nd,CrewCarpenter1Year:Fd,CrewCarpenter3Months:Id,CrewCarpenter6Months:Yd,CrewHave100MBerry:Hd,CrewHave1MdBerry:Qd,CrewHave500MBerry:qd,CrewHave50MdBerry:Kd,CrewHave5MdBerry:Gd,CrewSize10:zd,CrewSize12:Xd,CrewSize15:Zd,CrewSize5:Wd,CrewSize7:Vd,CrewVocal10:tc,CrewVocal12:ac,CrewVocal15:sc,CrewVocal5:Jd,CrewVocal7:ec},Symbol.toStringTag,{value:"Module"}));class dc extends o{constructor(){super(...arguments);e(this,"name","Ne fais rien exploser hein ?");e(this,"id","have_1_recipe");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 1 recette");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",c.BadgeList.recipe);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserInventoryUpdate",s=>s.recipes.length>=1)}}class cc extends o{constructor(){super(...arguments);e(this,"name","C'est bien tu sais faire des pâtes !");e(this,"id","have_5_recipe");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 5 recettes");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",c.BadgeList.recipe);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserInventoryUpdate",s=>s.recipes.length>=5)}}class uc extends o{constructor(){super(...arguments);e(this,"name","Ta grand-mère t'as donné son livre ?");e(this,"id","have_10_recipe");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 10 recettes");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",c.BadgeList.recipe);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserInventoryUpdate",s=>s.recipes.length>=10)}}class fc extends o{constructor(){super(...arguments);e(this,"name","Let him cook");e(this,"id","have_25_recipe");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 25 recettes");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",null);e(this,"badge",c.BadgeList.recipe);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserInventoryUpdate",s=>s.recipes.length>=25)}}class hc extends o{constructor(){super(...arguments);e(this,"name","Paul Bocuse");e(this,"id","have_100_recipe");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 100 recettes");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",c.questTitles["Paul Bocuse"]);e(this,"badge",c.BadgeList.recipe);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserInventoryUpdate",s=>s.recipes.length>=100)}}const Ba=Object.freeze(Object.defineProperty({__proto__:null,Have100Recipe:hc,Have10Recipe:uc,Have1Recipe:dc,Have25Recipe:fc,Have5Recipe:cc},Symbol.toStringTag,{value:"Module"}));class pc extends o{constructor(){super(...arguments);e(this,"name","Enfin de quoi t'acheter un bon vélo !");e(this,"id","have_500000_berry");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 500 000 Berrys");e(this,"berry",1e5);e(this,"xp",5e3);e(this,"badge",c.BadgeList.berry);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserMetaUpdate",s=>s.berry>=5e5)}}class mc extends o{constructor(){super(...arguments);e(this,"name","Ouah t'es multi-millionaire !");e(this,"id","have_5000000_berry");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 5 000 000 Berrys");e(this,"berry",1e6);e(this,"xp",25e3);e(this,"badge",c.BadgeList.berry);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserMetaUpdate",s=>s.berry>=5e6)}}class yc extends o{constructor(){super(...arguments);e(this,"name","Presque riche");e(this,"id","have_50000000_berry");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 50 000 000 Berrys");e(this,"berry",1e7);e(this,"xp",5e4);e(this,"badge",c.BadgeList.berry);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserMetaUpdate",s=>s.berry>=5e7)}}class gc extends o{constructor(){super(...arguments);e(this,"name","Un 20m² à Paris");e(this,"id","have_500000000_berry");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 500 000 000 Berrys");e(this,"berry",1e8);e(this,"xp",1e5);e(this,"badge",c.BadgeList.berry);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserMetaUpdate",s=>s.berry>=5e8)}}class _c extends o{constructor(){super(...arguments);e(this,"name","This is Elon Musk");e(this,"id","have_5000000000_berry");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 5 000 000 000 Berrys");e(this,"berry",1e9);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",c.questTitles["Elon Musk"]);e(this,"badge",c.BadgeList.berry);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserMetaUpdate",s=>s.berry>=5e9)}}class wc extends o{constructor(){super(...arguments);e(this,"name","5 jours / semaine à Basic Fit");e(this,"id","have_25_strength");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 25 de force");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.strength>=25)}}class bc extends o{constructor(){super(...arguments);e(this,"name","La fonte > les livres");e(this,"id","have_50_strength");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 50 de force");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.strength>=50)}}class vc extends o{constructor(){super(...arguments);e(this,"name","Moi, musclé ?");e(this,"id","have_100_strength");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 100 de force");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.strength>=100)}}class Mc extends o{constructor(){super(...arguments);e(this,"name","Hercules");e(this,"id","have_250_strength");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 250 de force");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.strength>=250)}}class Sc extends o{constructor(){super(...arguments);e(this,"name","Titan");e(this,"id","have_500_strength");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 500 de force");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",c.questTitles.Titan);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.strength>=500)}}class kc extends o{constructor(){super(...arguments);e(this,"name","Chat de gouttière");e(this,"id","have_25_agility");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 25 d'agilité");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.agility>=25)}}class xc extends o{constructor(){super(...arguments);e(this,"name","Hop ! Grand écart !");e(this,"id","have_50_agility");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 50 d'agilité");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.agility>=50)}}class Rc extends o{constructor(){super(...arguments);e(this,"name","Danseur étoile");e(this,"id","have_100_agility");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 100 d'agilité");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.agility>=100)}}class Uc extends o{constructor(){super(...arguments);e(this,"name","L'Éclair de Konoha ! (merde mauvais manga)");e(this,"id","have_250_agility");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 250 d'agilité");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.agility>=250)}}class Cc extends o{constructor(){super(...arguments);e(this,"name","Héritier de Bon Clay");e(this,"id","have_500_agility");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 500 d'agilité");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",c.questTitles["Héritier de Bon Clay"]);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.agility>=500)}}class Bc extends o{constructor(){super(...arguments);e(this,"name","2+2 = 4");e(this,"id","have_25_intelligence");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 25 d'intelligence");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.intelligence>=25)}}class Ac extends o{constructor(){super(...arguments);e(this,"name","Petit Einstein");e(this,"id","have_50_intelligence");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 50 d'intelligence");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.intelligence>=50)}}class Dc extends o{constructor(){super(...arguments);e(this,"name","HPI");e(this,"id","have_100_intelligence");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 100 d'intelligence");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.intelligence>=100)}}class Oc extends o{constructor(){super(...arguments);e(this,"name","Sorcier du savoir");e(this,"id","have_250_intelligence");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 250 d'intelligence");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.intelligence>=250)}}class Nc extends o{constructor(){super(...arguments);e(this,"name","Héritier de Vegapunk");e(this,"id","have_500_intelligence");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 500 d'intelligence");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",c.questTitles["Héritier de Vegapunk"]);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.intelligence>=500)}}class $c extends o{constructor(){super(...arguments);e(this,"name","Touche du bois");e(this,"id","have_25_chance");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 25 de chance");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.chance>=25)}}class Ic extends o{constructor(){super(...arguments);e(this,"name","Petit veinard");e(this,"id","have_50_chance");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 50 de chance");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.chance>=50)}}class Yc extends o{constructor(){super(...arguments);e(this,"name","LA CHAAAAAATTE !");e(this,"id","have_100_chance");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 100 de chance");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.chance>=100)}}class Fc extends o{constructor(){super(...arguments);e(this,"name","Favori des Astres");e(this,"id","have_250_chance");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 250 de chance");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.chance>=250)}}class Ec extends o{constructor(){super(...arguments);e(this,"name","Héritier de Baggy");e(this,"id","have_500_chance");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 500 de chance");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",c.questTitles["Héritier de Baggy"]);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.chance>=500)}}class Lc extends o{constructor(){super(...arguments);e(this,"name","Résistant");e(this,"id","have_25_vitality");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 25 de vitalité");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.vitality>=25)}}class Pc extends o{constructor(){super(...arguments);e(this,"name","Solide comme un roc");e(this,"id","have_50_vitality");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 50 de vitalité");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.vitality>=50)}}class Tc extends o{constructor(){super(...arguments);e(this,"name","Le tank !");e(this,"id","have_100_vitality");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 100 de vitalité");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.vitality>=100)}}class jc extends o{constructor(){super(...arguments);e(this,"name","Mais t'es increvable !");e(this,"id","have_250_vitality");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 250 de vitalité");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.vitality>=250)}}class Hc extends o{constructor(){super(...arguments);e(this,"name","Héritier de Kaido");e(this,"id","have_500_vitality");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 500 de vitalité");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",c.questTitles["Héritier de Kaido"]);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.vitality>=500)}}class qc extends o{constructor(){super(...arguments);e(this,"name","Tu as lu des livres ?");e(this,"id","have_25_wisdom");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 25 de sagesse");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.wisdom>=25)}}class Qc extends o{constructor(){super(...arguments);e(this,"name","Filozof");e(this,"id","have_50_wisdom");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 50 de sagesse");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.wisdom>=50)}}class Gc extends o{constructor(){super(...arguments);e(this,"name","Platon");e(this,"id","have_100_wisdom");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 100 de sagesse");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.wisdom>=100)}}class Kc extends o{constructor(){super(...arguments);e(this,"name","Oracle vénéré");e(this,"id","have_250_wisdom");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 250 de sagesse");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.wisdom>=250)}}class Wc extends o{constructor(){super(...arguments);e(this,"name","Héritier d'Ohara");e(this,"id","have_500_wisdom");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 500 de sagesse");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",c.questTitles["Héritier d'Ohara"]);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.wisdom>=500)}}class Vc extends o{constructor(){super(...arguments);e(this,"name","Un pas devant l'autre !");e(this,"id","be_level_10");e(this,"rank",l.RANKS.COMMON);e(this,"description","Atteindre le niveau 10");e(this,"berry",1e5);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=10)}}class zc extends o{constructor(){super(...arguments);e(this,"name","T'inquiète pas ça va bien se passer");e(this,"id","be_level_20");e(this,"rank",l.RANKS.COMMON);e(this,"description","Atteindre le niveau 20");e(this,"berry",3e5);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=20)}}class Xc extends o{constructor(){super(...arguments);e(this,"name","Commence par me parler poliment");e(this,"id","be_level_30");e(this,"rank",l.RANKS.RARE);e(this,"description","Atteindre le niveau 30");e(this,"berry",1e6);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=30)}}class Zc extends o{constructor(){super(...arguments);e(this,"name","On te respecte à la cantine");e(this,"id","be_level_40");e(this,"rank",l.RANKS.RARE);e(this,"description","Atteindre le niveau 40");e(this,"berry",3e6);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=40)}}class Jc extends o{constructor(){super(...arguments);e(this,"name","Ça commence à devenir sérieux");e(this,"id","be_level_50");e(this,"rank",l.RANKS.EPIC);e(this,"description","Atteindre le niveau 50");e(this,"berry",5e6);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=50)}}class eu extends o{constructor(){super(...arguments);e(this,"name","Une chambre individuelle ? La chance !");e(this,"id","be_level_60");e(this,"rank",l.RANKS.EPIC);e(this,"description","Atteindre le niveau 60");e(this,"berry",1e7);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=60)}}class tu extends o{constructor(){super(...arguments);e(this,"name","Oulah, les responsabilités arrivent");e(this,"id","be_level_70");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Atteindre le niveau 70");e(this,"berry",5e7);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=70)}}class au extends o{constructor(){super(...arguments);e(this,"name","Faut pas t'emmerder toi");e(this,"id","be_level_80");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Atteindre le niveau 80");e(this,"berry",5e7);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=80)}}class su extends o{constructor(){super(...arguments);e(this,"name","Là on parle !");e(this,"id","be_level_90");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Atteindre le niveau 90");e(this,"berry",1e8);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=90)}}class nu extends o{constructor(){super(...arguments);e(this,"name","*S'agenouille*");e(this,"id","be_level_120");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Atteindre le niveau 120");e(this,"berry",1e9);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=120)}}const Aa=Object.freeze(Object.defineProperty({__proto__:null,BeLevel10:Vc,BeLevel120:nu,BeLevel20:zc,BeLevel30:Xc,BeLevel40:Zc,BeLevel50:Jc,BeLevel60:eu,BeLevel70:tu,BeLevel80:au,BeLevel90:su,Have100Agility:Rc,Have100Chance:Yc,Have100Intelligence:Dc,Have100Strength:vc,Have100Vitality:Tc,Have100Wisdom:Gc,Have250Agility:Uc,Have250Chance:Fc,Have250Intelligence:Oc,Have250Strength:Mc,Have250Vitality:jc,Have250Wisdom:Kc,Have25Agility:kc,Have25Chance:$c,Have25Intelligence:Bc,Have25Strength:wc,Have25Vitality:Lc,Have25Wisdom:qc,Have500Agility:Cc,Have500Chance:Ec,Have500Intelligence:Nc,Have500Strength:Sc,Have500Vitality:Hc,Have500Wisdom:Wc,Have500kBerry:pc,Have500mBerry:gc,Have50Agility:xc,Have50Chance:Ic,Have50Intelligence:Ac,Have50Strength:bc,Have50Vitality:Pc,Have50Wisdom:Qc,Have50mBerry:yc,Have5mBerry:mc,Have5mdBerry:_c},Symbol.toStringTag,{value:"Module"}));class ru extends o{constructor(){super(...arguments);e(this,"name","Un poster dans ta chambre");e(this,"id","have_1_background");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 1 background");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserOrnamentsUpdate",s=>s.unlockedBackgrounds.filter(n=>n!=="default").length>=1)}}class iu extends o{constructor(){super(...arguments);e(this,"name","Fan de One Piece");e(this,"id","have_25_background");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 25 backgrounds différents");e(this,"berry",5e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserOrnamentsUpdate",s=>s.unlockedBackgrounds.filter(n=>n!=="default").length>=25)}}class lu extends o{constructor(){super(...arguments);e(this,"name","Tu vas en faire quoi ? Tu peux en mettre qu'un");e(this,"id","have_50_background");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 50 backgrounds différents");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserOrnamentsUpdate",s=>s.unlockedBackgrounds.filter(n=>n!=="default").length>=50)}}class ou extends o{constructor(){super(...arguments);e(this,"name","PTDR t ki ?");e(this,"id","have_10_title");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 10 titres différents");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserOrnamentsUpdate",s=>s.unlockedTitles.length>=10)}}class du extends o{constructor(){super(...arguments);e(this,"name","On m'appelle Personne");e(this,"id","have_50_title");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 50 titres différents");e(this,"berry",5e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserOrnamentsUpdate",s=>s.unlockedTitles.length>=50)}}class cu extends o{constructor(){super(...arguments);e(this,"name","Ok Daenerys");e(this,"id","have_100_title");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 100 titres différents");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserOrnamentsUpdate",s=>s.unlockedTitles.length>=100)}}const Da=Object.freeze(Object.defineProperty({__proto__:null,Have100Title:cu,Have10Title:ou,Have1Background:ru,Have25Background:iu,Have50Background:lu,Have50Title:du},Symbol.toStringTag,{value:"Module"}));class uu extends o{constructor(){super(...arguments);e(this,"name","Petit joueur");e(this,"id","bet_min_value");e(this,"rank",l.RANKS.RARE);e(this,"description","Mise la somme minimale lors d'un pari");e(this,"berry",5e4);e(this,"xp",1e4);e(this,"secret",!0);e(this,"asset",null);e(this,"title",c.questTitles["Petit joueur"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.betMin)}}class fu extends o{constructor(){super(...arguments);e(this,"name","On a tous le droit à une seconde chance");e(this,"id","lose_everything");e(this,"rank",l.RANKS.RARE);e(this,"description","Perdre tous ses Berrys");e(this,"berry",1e5);e(this,"xp",1e4);e(this,"secret",!0);e(this,"asset",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.loseEverything)}}class hu extends o{constructor(){super(...arguments);e(this,"name","T'es sûr de toi ?");e(this,"id","bet_10M");e(this,"rank",l.RANKS.EPIC);e(this,"description","Miser plus de 10 000 000 de Berrys en une seule fois");e(this,"berry",5e5);e(this,"xp",5e4);e(this,"secret",!0);e(this,"asset",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.bet10M)}}class pu extends o{constructor(){super(...arguments);e(this,"name","Ok j'ai rien dit");e(this,"id","win_10M_bet");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Gagner en ayant misé plus de 10M de Berrys");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"secret",!0);e(this,"asset",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.winBet10M)}}class mu extends o{constructor(){super(...arguments);e(this,"name","T'es accro là non ?");e(this,"id","bet_total_10M");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Miser plus de 10 000 000 de Berrys en tout");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",c.questTitles["Gambling addict"]);e(this,"badge",c.BadgeList.casino);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.totalBet>=1e7)}}class yu extends o{constructor(){super(...arguments);e(this,"name","LE MILLIARD");e(this,"id","bet_total_1Md");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Miser plus de 1 000 000 000 de Berrys en tout");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"badge",c.BadgeList.casino);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.totalBet>=1e9)}}class gu extends o{constructor(){super(...arguments);e(this,"name","Cheh !");e(this,"id","lose_10M");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Perdre 10M de Berrys en une fois");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"secret",!0);e(this,"asset",null);e(this,"badge",c.BadgeList.noluck);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.lose10M)}}class _u extends o{constructor(){super(...arguments);e(this,"name","Bon anniversaire !");e(this,"id","birthday");e(this,"rank",l.RANKS.EPIC);e(this,"description","Fêter son anniversaire");e(this,"berry",1e6);e(this,"xp",5e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"secret",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.hasCelebrateBirthday)}}class wu extends o{constructor(){super(...arguments);e(this,"name","Il ne va pas te répondre tu sais ?");e(this,"id","bot_ping");e(this,"rank",l.RANKS.EPIC);e(this,"description","Ping le bot 100 fois");e(this,"berry",25e4);e(this,"xp",25e3);e(this,"secret",!0);e(this,"title",c.questTitles.Teubé);e(this,"badge",null);e(this,"asset",c.profileAssets.idiot);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({botPing:s})=>s>=100)}}class bu extends o{constructor(){super(...arguments);e(this,"name","Tu avais soif ?");e(this,"id","drink_100_xp_bottles_1_day");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Boire 100 Potions d'XP en une journée");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"secret",!0);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.bottle.today>=100)}}class vu extends o{constructor(){super(...arguments);e(this,"name","Un ptit goût amer non ?");e(this,"id","drink_200");e(this,"rank",l.RANKS.COMMON);e(this,"description","Boire 200 Potions d'XP");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.bottle.total>=200)}}class Mu extends o{constructor(){super(...arguments);e(this,"name","Ça se boit bien finalement");e(this,"id","drink_500");e(this,"rank",l.RANKS.RARE);e(this,"description","Boire 500 Potions d'XP");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.bottle.total>=500)}}class Su extends o{constructor(){super(...arguments);e(this,"name","Les potions donnent des aiiiiles !");e(this,"id","drink_1000");e(this,"rank",l.RANKS.EPIC);e(this,"description","Boire 1000 Potions d'XP");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.bottle.total>=1e3)}}class ku extends o{constructor(){super(...arguments);e(this,"name","À deux doigts de vomir");e(this,"id","drink_2000");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Boire 2000 Potions d'XP");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.bottle.total>=2e3)}}class xu extends o{constructor(){super(...arguments);e(this,"name","Alcoolique");e(this,"id","drink_5000");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Boire 5000 Potions d'XP");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",c.questTitles.Alcoolique);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.bottle.total>=5e3)}}class Ru extends o{constructor(){super(...arguments);e(this,"name","C'est sympa ce ptit jeu");e(this,"id","chest_open_50");e(this,"rank",l.RANKS.COMMON);e(this,"description","Ouvrir 50 Coffres");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.chest.total>=50)}}class Uu extends o{constructor(){super(...arguments);e(this,"name","T'as enfin eu un truc intéressant ?");e(this,"id","chest_open_150");e(this,"rank",l.RANKS.RARE);e(this,"description","Ouvrir 150 Coffres");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.chest.total>=150)}}class Cu extends o{constructor(){super(...arguments);e(this,"name","Ça commence à gratter hein ?");e(this,"id","chest_open_500");e(this,"rank",l.RANKS.EPIC);e(this,"description","Ouvrir 500 Coffres");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.chest.total>=500)}}class Bu extends o{constructor(){super(...arguments);e(this,"name","LAISSEZ-MOI OUVRIR DES COFFRES !");e(this,"id","chest_open_1000");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Ouvrir 1000 Coffres");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.chest.total>=1e3)}}class Au extends o{constructor(){super(...arguments);e(this,"name","xXFan2GenshinXx");e(this,"id","chest_open_2000");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Ouvrir 2000 Coffres");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",c.questTitles["Gatcha Addict"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.chest.total>=2e3)}}class Du extends o{constructor(){super(...arguments);e(this,"name","Ils font mieux chez Ikea");e(this,"id","craft_20_times");e(this,"rank",l.RANKS.COMMON);e(this,"description","Effectuer 20 crafts");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",c.BadgeList.craft);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.total>=20)}}class Ou extends o{constructor(){super(...arguments);e(this,"name","Te fais pas mal avec le marteau");e(this,"id","craft_50_times");e(this,"rank",l.RANKS.RARE);e(this,"description","Effectuer 50 crafts");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",c.BadgeList.craft);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.total>=50)}}class Nu extends o{constructor(){super(...arguments);e(this,"name","Insensible aux échardes on dirait");e(this,"id","craft_200_times");e(this,"rank",l.RANKS.EPIC);e(this,"description","Effectuer 200 crafts");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",c.BadgeList.craft);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.total>=200)}}class $u extends o{constructor(){super(...arguments);e(this,"name","Je ne veux pas voir l'état de ton atelier");e(this,"id","craft_500_times");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Effectuer 500 crafts");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",null);e(this,"badge",c.BadgeList.craft);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.total>=500)}}class Iu extends o{constructor(){super(...arguments);e(this,"name","Mac Gyver");e(this,"id","craft_1000_times");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Effectuer 1000 crafts");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",c.questTitles["Mac Gyver"]);e(this,"badge",c.BadgeList.craft);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.total>=1e3)}}class Yu extends o{constructor(){super(...arguments);e(this,"name","Apprenti Gourmand");e(this,"id","craft_10_cooked_meals");e(this,"rank",l.RANKS.COMMON);e(this,"description","Cuisiner 10 plats");e(this,"berry",5e5);e(this,"xp",2e4);e(this,"asset",null);e(this,"title",c.questTitles["Apprenti Gourmand"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.cookedMeal>=10)}}class Fu extends o{constructor(){super(...arguments);e(this,"name","Chef Amateur");e(this,"id","craft_50_cooked_meals");e(this,"rank",l.RANKS.RARE);e(this,"description","Cuisiner 50 plats");e(this,"berry",2e5);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",c.questTitles["Chef Amateur"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.cookedMeal>=50)}}class Eu extends o{constructor(){super(...arguments);e(this,"name","Maître des Saveurs");e(this,"id","craft_100_cooked_meals");e(this,"rank",l.RANKS.EPIC);e(this,"description","Cuisiner 100 plats");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",c.questTitles["Maître des Saveurs"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.cookedMeal>=100)}}class Lu extends o{constructor(){super(...arguments);e(this,"name","Artiste Culinaire");e(this,"id","craft_250_cooked_meals");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Cuisiner 250 plats");e(this,"berry",5e7);e(this,"xp",2e5);e(this,"asset",null);e(this,"title",c.questTitles["Artiste Culinaire"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.cookedMeal>=250)}}class Pu extends o{constructor(){super(...arguments);e(this,"name","Sultan des Épices");e(this,"id","craft_500_cooked_meals");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Cuisiner 500 plats");e(this,"berry",1e8);e(this,"xp",5e5);e(this,"asset",null);e(this,"title",c.questTitles["Sultan des Épices"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.cookedMeal>=500)}}class Tu extends o{constructor(){super(...arguments);e(this,"name","C'est une bonne situation ça scribe ?");e(this,"id","craft_5_scrolls");e(this,"rank",l.RANKS.COMMON);e(this,"description","Craft 5 Parchemins");e(this,"berry",5e5);e(this,"xp",2e4);e(this,"asset",null);e(this,"title",c.questTitles["Apprenti Scribe"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.scrolls>=5)}}class ju extends o{constructor(){super(...arguments);e(this,"name","Artisan des Runes");e(this,"id","craft_10_scrolls");e(this,"rank",l.RANKS.RARE);e(this,"description","Craft 10 Parchemins");e(this,"berry",2e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",c.questTitles["Artisan des Runes"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.scrolls>=10)}}class Hu extends o{constructor(){super(...arguments);e(this,"name","Collectionneur des Manuscrits");e(this,"id","craft_20_scrolls");e(this,"rank",l.RANKS.EPIC);e(this,"description","Craft 20 Parchemins");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",c.questTitles["Collectionneur de Manuscrits"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.scrolls>=20)}}class qu extends o{constructor(){super(...arguments);e(this,"name","Maître des Enluminures");e(this,"id","craft_50_scrolls");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Craft 50 Parchemins");e(this,"berry",5e7);e(this,"xp",2e5);e(this,"asset",null);e(this,"title",c.questTitles["Maître des Enluminures"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.scrolls>=50)}}class Qu extends o{constructor(){super(...arguments);e(this,"name","Protecteur du Savoir");e(this,"id","craft_100_scrolls");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Craft 100 Parchemins");e(this,"berry",1e8);e(this,"xp",5e5);e(this,"asset",null);e(this,"title",c.questTitles["Protecteur du Savoir"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.scrolls>=100)}}class Gu extends o{constructor(){super(...arguments);e(this,"name","Vaut mieux ça que perdre non ?");e(this,"id","draw_100");e(this,"rank",l.RANKS.COMMON);e(this,"description","Faire 100 égalités");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.draw>=100)}}class Ku extends o{constructor(){super(...arguments);e(this,"name","Tu as trouvé ton rival");e(this,"id","draw_300");e(this,"rank",l.RANKS.RARE);e(this,"description","Faire 300 égalités");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.draw>=300)}}class Wu extends o{constructor(){super(...arguments);e(this,"name","Rathon c'est toi ?");e(this,"id","draw_1000");e(this,"rank",l.RANKS.EPIC);e(this,"description","Faire 1000 égalités");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.draw>=1e3)}}class Vu extends o{constructor(){super(...arguments);e(this,"name","Tu te bats contre un mur ou quoi ?");e(this,"id","draw_2000");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Faire 2000 égalités");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.draw>=2e3)}}class zu extends o{constructor(){super(...arguments);e(this,"name","De vrais jumeaux");e(this,"id","draw_5000");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Faire 5000 égalités");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",c.questTitles.Égalitaire);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.draw>=5e3)}}class Xu extends o{constructor(){super(...arguments);e(this,"name","Y'a un truc que t'as pas compris ?");e(this,"id","edito_read_100");e(this,"rank",l.RANKS.EPIC);e(this,"description","Lire 100 fois l'édito en une journée");e(this,"berry",25e4);e(this,"xp",25e3);e(this,"secret",!0);e(this,"crew",!1);e(this,"daily",!1);e(this,"title",c.questTitles.Culturé);e(this,"badge",null);e(this,"asset",c.profileAssets.edito);e(this,"isFactionBadge",!1);e(this,"onUserQuestMetaUpdate",s=>s.edito.readToday>=100)}}class Zu extends o{constructor(){super(...arguments);e(this,"name","Une fois, pas deux");e(this,"id","everyone");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Tenter de tag everyone");e(this,"berry",-1e6);e(this,"xp",-5e4);e(this,"secret",!0);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.tagEveryone)}}class Ju extends o{constructor(){super(...arguments);e(this,"name","Emoji Diable");e(this,"id","double_six");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Faire 50 fois un double six");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"badge",c.BadgeList.doublesix);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.double_six>=50)}}class ef extends o{constructor(){super(...arguments);e(this,"name","Pas de chance ^^");e(this,"id","draw_double_six");e(this,"rank",l.RANKS.RARE);e(this,"description","Faire une fois une égalité en double 6");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.drawDoubleSix>=1)}}class tf extends o{constructor(){super(...arguments);e(this,"name","Jamais 6 sans 7");e(this,"id","seven_quitte_ou_double");e(this,"rank",l.RANKS.MYTHIC);e(this,"description",'Gagner 7 fois de suite "Doubles" au Quitte ou Double');e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"badge",c.BadgeList.chance);e(this,"title",c.questTitles.Chanceux);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.sevenQuitteOuDouble>=1)}}class af extends o{constructor(){super(...arguments);e(this,"name","Le 5 à la suite");e(this,"id","win_5_in_row");e(this,"rank",l.RANKS.EPIC);e(this,"description","Gagner aux 5 jeux du casino à la suite");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>{const n=s.lastGames.slice(0,5);return n.length<5||Va(n,r=>r.gameType).length<5?!1:n.reduce((r,i)=>r+i.endState,0)===5})}}class sf extends o{constructor(){super(...arguments);e(this,"name","Le 5 à la suite, mais dans l'autre sens");e(this,"id","lose_5_in_row");e(this,"rank",l.RANKS.EPIC);e(this,"description","Perdre aux 5 jeux du casino à la suite");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>{const n=s.lastGames.slice(0,5);return n.length!==5||Va(n,r=>r.gameType).length<5?!1:n.reduce((r,i)=>r+i.endState,0)===-5})}}class nf extends o{constructor(){super(...arguments);e(this,"name","Jacques le noir");e(this,"id","ten_black_jack");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Faire 10 fois BlackJack");e(this,"berry",5e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"badge",c.BadgeList["black-jack"]);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.black_jack>=10)}}class rf extends o{constructor(){super(...arguments);e(this,"name","La feuille enveloppe la pierre ! T'es sûr ?");e(this,"id","paper_100");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Faire 100 fois de suite Papier au PPC");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",c.questTitles.Papyrus);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.rps.lastRps==="paper"&&s.rps.nb>=100)}}class lf extends o{constructor(){super(...arguments);e(this,"name","On fait la paire !");e(this,"id","scissor_100");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Faire 100 fois de suite Ciseaux au PPC");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",c.questTitles.Couturier);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.rps.lastRps==="scissor"&&s.rps.nb>=100)}}class of extends o{constructor(){super(...arguments);e(this,"name","Golem");e(this,"id","rock_100");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Faire 100 fois de suite Pierre au PPC");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",c.questTitles.Golem);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.rps.lastRps==="rock"&&s.rps.nb>=100)}}class df extends o{constructor(){super(...arguments);e(this,"name","LE NEUF ET LE HUIT !!!");e(this,"id","guess_in_one");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Deviner le Juste Prix en un coup");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.guessInOne>=1)}}class cf extends o{constructor(){super(...arguments);e(this,"name","Sataniste");e(this,"id","bet_666_50_times");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Miser 666 Berry au moins une fois par jour pendant 1 mois");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"secret",!0);e(this,"title",c.questTitles.Démon);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"badge",null);e(this,"asset",c.profileAssets.satan);e(this,"onUserQuestMetaUpdate",s=>s.bet666.amount>=30)}}class uf extends o{constructor(){super(...arguments);e(this,"name","Jour, Nuit");e(this,"id","win_lose_10_times");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description",'Faire un enchaînement "Victoire/Défaite" 10 fois de suite');e(this,"berry",1e6);e(this,"xp",5e4);e(this,"secret",!0);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>{const n=s.lastGames;if(n.length!==20)return!1;for(let r=0;r<n.length;r++)if(r%2===0&&n[r].endState!==1||r%2!==0&&n[r].endState!==-1)return!1;return!0})}}class ff extends o{constructor(){super(...arguments);e(this,"name","Explorateur novice");e(this,"id","finish_10_raids");e(this,"rank",l.RANKS.COMMON);e(this,"description","Réussir 10 expéditions");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",({raidFinished:s})=>s>=10)}}class hf extends o{constructor(){super(...arguments);e(this,"name","Aventurier intrépide");e(this,"id","finish_25_raids");e(this,"rank",l.RANKS.RARE);e(this,"description","Réussir 25 expéditions");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",({raidFinished:s})=>s>=25)}}class pf extends o{constructor(){super(...arguments);e(this,"name","Conquérant des terres");e(this,"id","finish_50_raids");e(this,"rank",l.RANKS.EPIC);e(this,"description","Réussir 50 expéditions");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",({raidFinished:s})=>s>=50)}}class mf extends o{constructor(){super(...arguments);e(this,"name","Pionnier des secrets");e(this,"id","finish_100_raids");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Réussir 100 expéditions");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",({raidFinished:s})=>s>=100)}}class yf extends o{constructor(){super(...arguments);e(this,"name","Légende vivante");e(this,"id","finish_200_raids");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Réussir 200 expéditions");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",c.questTitles["Légende vivante"]);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",({raidFinished:s})=>s>=200)}}class gf extends o{constructor(){super(...arguments);e(this,"name","Vif");e(this,"id","random_message_20");e(this,"rank",l.RANKS.COMMON);e(this,"description","Récupérer 20 Messages aléatoires");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.randomMessage>=20)}}class _f extends o{constructor(){super(...arguments);e(this,"name","Lucky Luke");e(this,"id","random_message_50");e(this,"rank",l.RANKS.RARE);e(this,"description","Récupérer 50 Messages aléatoires");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.randomMessage>=50)}}class wf extends o{constructor(){super(...arguments);e(this,"name","Rapide");e(this,"id","random_message_100");e(this,"rank",l.RANKS.EPIC);e(this,"description","Récupérer 100 Messages aléatoires");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.randomMessage>=100)}}class bf extends o{constructor(){super(...arguments);e(this,"name","Et Furieux");e(this,"id","random_message_200");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Récupérer 200 Messages aléatoires");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.randomMessage>=200)}}class vf extends o{constructor(){super(...arguments);e(this,"name","Ka-Chow");e(this,"id","random_message_500");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Récupérer 500 Messages aléatoires");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",c.questTitles["Flash Mc Queen"]);e(this,"onUserQuestMetaUpdate",s=>s.randomMessage>=500)}}class Mf extends o{constructor(){super(...arguments);e(this,"name","Collabo");e(this,"id","collabo");e(this,"rank",l.RANKS.COMMON);e(this,"description","Report une personne au staff");e(this,"berry",1e4);e(this,"xp",5e3);e(this,"secret",!0);e(this,"daily",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.reportedSomeone)}}class Sf extends o{constructor(){super(...arguments);e(this,"name","Bienvenue sur OPFR");e(this,"id","send_100_msg");e(this,"rank",l.RANKS.COMMON);e(this,"description","Envoyer 100 messages");e(this,"berry",1e4);e(this,"xp",1e3);e(this,"badge",c.BadgeList.ecrire);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({messageSent:s})=>s>=100)}}class kf extends o{constructor(){super(...arguments);e(this,"name","Une vraie pipelette");e(this,"id","send_1000_msg");e(this,"rank",l.RANKS.RARE);e(this,"description","Envoyer 1 000 messages");e(this,"berry",1e5);e(this,"xp",1e4);e(this,"badge",c.BadgeList.ecrire);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({messageSent:s})=>s>=1e3)}}class xf extends o{constructor(){super(...arguments);e(this,"name","Faites le taire ");e(this,"id","send_25000_msg");e(this,"rank",l.RANKS.EPIC);e(this,"description","Envoyer 25 000 messages");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",c.BadgeList.ecrire);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({messageSent:s})=>s>=25e3)}}class Rf extends o{constructor(){super(...arguments);e(this,"name","Tu sors de chez toi des fois ?");e(this,"id","send_100000_msg");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Envoyer 100 000 messages");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",c.BadgeList.ecrire);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({messageSent:s})=>s>=1e5)}}class Uf extends o{constructor(){super(...arguments);e(this,"name","J'ai pas les mots... mais toi si !");e(this,"id","send_200000_msg");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Envoyer 200 000 messages");e(this,"berry",1e8);e(this,"xp",25e4);e(this,"badge",c.BadgeList.ecrire);e(this,"asset",null);e(this,"title",c.questTitles.Spammeur);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({messageSent:s})=>s>=2e5)}}class Cf extends o{constructor(){super(...arguments);e(this,"name","T'as reçu ton argent de poche ?");e(this,"id","spend_shop_5m");e(this,"rank",l.RANKS.COMMON);e(this,"description","Dépenser 5 000 000 Berrys dans la boutique");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",c.BadgeList.mode);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalSpentInShop:s})=>s>=5e6)}}class Bf extends o{constructor(){super(...arguments);e(this,"name","Tu t'es fait plaisir !");e(this,"id","spend_shop_50m");e(this,"rank",l.RANKS.RARE);e(this,"description","Dépenser 50 000 000 Berrys dans la boutique");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",c.BadgeList.mode);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalSpentInShop:s})=>s>=5e7)}}class Af extends o{constructor(){super(...arguments);e(this,"name","C'était les soldes j'espère !");e(this,"id","spend_shop_500m");e(this,"rank",l.RANKS.EPIC);e(this,"description","Dépenser 500 000 000 Berrys dans la boutique");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",c.BadgeList.mode);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalSpentInShop:s})=>s>=5e8)}}class Df extends o{constructor(){super(...arguments);e(this,"name","Paré pour la Fashion Week");e(this,"id","spend_shop_5ml");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Dépenser 5 000 000 000 Berrys dans la boutique");e(this,"berry",5e6);e(this,"xp",1e5);e(this,"badge",c.BadgeList.mode);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalSpentInShop:s})=>s>=5e9)}}class Of extends o{constructor(){super(...arguments);e(this,"name","Fashion Viktim");e(this,"id","spend_shop_50ml");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Dépenser 50 000 000 000 Berrys dans la boutique");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"badge",c.BadgeList.mode);e(this,"asset",null);e(this,"title",c.questTitles["Fashion Viktim"]);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalSpentInShop:s})=>s>=5e10)}}class Nf extends o{constructor(){super(...arguments);e(this,"name","On commence à se connaître");e(this,"id","voice_1_hours");e(this,"rank",l.RANKS.COMMON);e(this,"description","Se connecter 10h en vocal");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",c.BadgeList.ermite);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"secret",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalMinutesInVoice:s})=>s>=60*10)}}class $f extends o{constructor(){super(...arguments);e(this,"name","Je sais tout de toi");e(this,"id","voice_10_hours");e(this,"rank",l.RANKS.RARE);e(this,"description","Se connecter 25h en vocal");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",c.BadgeList.ermite);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"secret",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalMinutesInVoice:s})=>s>=60*25)}}class If extends o{constructor(){super(...arguments);e(this,"name","T'as pas soif ?");e(this,"id","voice_250_hours");e(this,"rank",l.RANKS.EPIC);e(this,"description","Se connecter 250h en vocal");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",c.BadgeList.ermite);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"secret",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalMinutesInVoice:s})=>s>=60*250)}}class Yf extends o{constructor(){super(...arguments);e(this,"name","Ok Socrate");e(this,"id","voice_2500_hours");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Se connecter 2500h en vocal");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",c.BadgeList.ermite);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"secret",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalMinutesInVoice:s})=>s>=60*2500)}}class Ff extends o{constructor(){super(...arguments);e(this,"name","Elle ressemble à quoi la lumière du soleil ?");e(this,"id","voice_5000_hours");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Se connecter 5000h en vocal");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",c.questTitles.Ermite);e(this,"badge",c.BadgeList.ermite);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"secret",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalMinutesInVoice:s})=>s>=60*5e3)}}class Ef extends o{constructor(){super(...arguments);e(this,"name","Stagiaire");e(this,"id","work_100");e(this,"rank",l.RANKS.COMMON);e(this,"description","Travailler 100 fois");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.work>=100)}}class Lf extends o{constructor(){super(...arguments);e(this,"name","Alternant");e(this,"id","work_300");e(this,"rank",l.RANKS.RARE);e(this,"description","Travailler 300 fois");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.work>=300)}}class Pf extends o{constructor(){super(...arguments);e(this,"name","Smicard");e(this,"id","work_1000");e(this,"rank",l.RANKS.EPIC);e(this,"description","Travailler 1000 fois");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.work>=1e3)}}class Tf extends o{constructor(){super(...arguments);e(this,"name","Communiste");e(this,"id","work_2000");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Travailler 2000 fois");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.work>=2e3)}}class jf extends o{constructor(){super(...arguments);e(this,"name","Esclave");e(this,"id","work_5000");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Travailler 5000 fois");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",c.questTitles.Esclave);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.work>=5e3)}}class Hf extends o{constructor(){super(...arguments);e(this,"name","Timide");e(this,"id","write_10_chats");e(this,"rank",l.RANKS.COMMON);e(this,"description","Écrire dans 10 chats différents");e(this,"berry",1e4);e(this,"xp",1e3);e(this,"badge",c.BadgeList.exploration);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({writeDifferentChat:s})=>s.length>=10)}}class qf extends o{constructor(){super(...arguments);e(this,"name","Curieux");e(this,"id","write_20_chats");e(this,"rank",l.RANKS.RARE);e(this,"description","Écrire dans 20 chats différents");e(this,"berry",1e5);e(this,"xp",1e4);e(this,"badge",c.BadgeList.exploration);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({writeDifferentChat:s})=>s.length>=20)}}class Qf extends o{constructor(){super(...arguments);e(this,"name","Voyeur");e(this,"id","write_50_chats");e(this,"rank",l.RANKS.EPIC);e(this,"description","Écrire dans 50 chats différents");e(this,"berry",5e5);e(this,"xp",5e4);e(this,"badge",c.BadgeList.exploration);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({writeDifferentChat:s})=>s.length>=50)}}class Gf extends o{constructor(){super(...arguments);e(this,"name","Philanthrope");e(this,"id","write_100_chats");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Écrire dans 100 chats différents");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"badge",c.BadgeList.exploration);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({writeDifferentChat:s})=>s.length>=100)}}class Kf extends o{constructor(){super(...arguments);e(this,"name","Explorateur");e(this,"id","write_200_chats");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Écrire dans 200 chats différents");e(this,"berry",1e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",c.questTitles.Explorateur);e(this,"badge",c.BadgeList.exploration);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({writeDifferentChat:s})=>s.length>=200)}}const Oa=Object.freeze(Object.defineProperty({__proto__:null,Bet10M:hu,Bet666:cf,BetMinValue:uu,Birthday:_u,BotPing:wu,ChestOpen1000Quest:Bu,ChestOpen150Quest:Uu,ChestOpen2000Quest:Au,ChestOpen500Quest:Cu,ChestOpen50Quest:Ru,Craft1000Times:Iu,Craft100CookedMeals:Eu,Craft100Scrolls:Qu,Craft10CookedMeals:Yu,Craft10Scrolls:ju,Craft200Times:Nu,Craft20Scrolls:Hu,Craft20Times:Du,Craft250CookedMeals:Lu,Craft500CookedMeals:Pu,Craft500Times:$u,Craft50CookedMeals:Fu,Craft50Scrolls:qu,Craft50Times:Ou,Craft5Scrolls:Tu,DoubleSix:Ju,Draw1000Quest:Wu,Draw100Quest:Gu,Draw2000Quest:Vu,Draw300Quest:Ku,Draw5000Quest:zu,DrawDoubleSix:ef,Drink1000Quest:Su,Drink100Today:bu,Drink2000Quest:ku,Drink200Quest:vu,Drink5000Quest:xu,Drink500Quest:Mu,Edito:Xu,Everyone:Zu,Finish100Raids:mf,Finish10Raids:ff,Finish200Raids:yf,Finish25Raids:hf,Finish50Raids:pf,GuessInOne:df,Lose10M:gu,LoseAll5GamesInRow:sf,LoseEverything:fu,Paper100:rf,RandomMessage100Quest:wf,RandomMessage200Quest:bf,RandomMessage20Quest:gf,RandomMessage500Quest:vf,RandomMessage50Quest:_f,Report:Mf,Rock100:of,Scissor100:lf,SevenQuitteOuDouble:tf,SpendShop500M:Af,SpendShop50M:Bf,SpendShop50Ml:Of,SpendShop5M:Cf,SpendShop5Ml:Df,TenBlackJack:nf,TotalBet10M:mu,TotalBet1Md:yu,Voice10Hours:Nf,Voice2500Hours:Yf,Voice250Hours:If,Voice25Hours:$f,Voice5000Hours:Ff,WinAll5GamesInRow:af,WinLose10:uf,WinOn10MBet:pu,Work1000Quest:Pf,Work100Quest:Ef,Work2000Quest:Tf,Work300Quest:Lf,Work5000Quest:jf,Write100Chats:Gf,Write10Chats:Hf,Write200Chats:Kf,Write20Chats:qf,Write50Chats:Qf,send100000Messages:Rf,send1000Messages:kf,send100Messages:Sf,send200000Messages:Uf,send25000Messages:xf},Symbol.toStringTag,{value:"Module"})),Wf=[...Object.values(Aa),...Object.values(Da),...Object.values(Ba),...Object.values(Oa),...Object.values(Ca)],Vf=async t=>{var s;const a={};for(const n of Object.values(Ca)){const r=new n;if((s=r.onCrewUpdate)!=null&&s.call(r,t))for(const i of t.members){const d=await Ka(i,{_id:1}),f=await r.complete(d._id,{});if(f){const g=a[d.id];a[d.id]=g?[d._id,[...g[1],[r,f]]]:[d._id,[[r,f]]]}}}Object.values(a).forEach(([n,r])=>{Te("crewUpdate",n,r)})},Na=new p.Schema({createdBy:String,members:{type:[String],default:[]},limit:{type:Number,default:3},name:String,description:String,channelId:String,meta:{xp:{type:Number,default:0},berry:{type:Number,default:0},buffs:{xp:{boost:{type:Number,default:0},expireAt:{type:Date,default:null}}}},disintegration:{type:Number,default:100},faction:String,stats:{type:Object,default:{}},quest:{completed:[String],daily:{type:Object,default:{}},meta:{streak80Percent:{type:Number,default:0},maxVoiceMembers:{type:Number,default:0},actualVoiceMembers:{amount:{type:Number,default:0},connectedAt:{type:Date,default:new Date}}}},ornament:{unlockedBadges:[String]}},{timestamps:!0,minimize:!1});Na.index({"meta.xp":-1}),Na.post("findOneAndUpdate",async function(t){await Vf(t)});const je=((Xn=p.models)==null?void 0:Xn.Crew)||p.model("Crew",Na),zf=(t,a)=>Math.ceil(a*(t.disintegration/100)*(zs(t)||1)),zs=t=>new Date>=(t.meta.buffs.xp.expireAt??new Date(0))?!1:t.meta.buffs.xp.boost,Xf=Object.freeze(Object.defineProperty({__proto__:null,calcXp:zf,getCrewRank:async t=>(await je.aggregate([{$setWindowFields:{sortBy:{"meta.xp":-1},output:{rank:{$rank:{}}}}},{$match:{_id:t._id}},{$project:{_id:1,"meta.xp":1,rank:1}}]))[0],getCrewRanking:async()=>je.aggregate([{$sort:{"meta.xp.amount":-1}},{$limit:10}]),hasXpBuff:zs,isAllDailyCompleted:(t,a)=>{for(const[,s]of Object.entries(t.quest.daily??{}))if(!s||!nt(s[a],new Date))return!1;return Object.keys(t.quest.daily??{}).length===t.members.length}},Symbol.toStringTag,{value:"Module"})),q=async(t,a)=>{await je.findOneAndUpdate({_id:t},a,{returnDocument:"after"})},Xs=async(t,a)=>{await q(t,{$addToSet:{"quest.completed":a}})},Zs=async(t,a,s)=>{await q(t,[{$addFields:{[`quest.daily.${a}.${s}`]:new Date}}])},Js=async(t,a,s)=>{a.isProgressive?await q(t,{$addToSet:{"ornament.unlockedBadges":`${a.id}_${s}`}}):await q(t,{$addToSet:{"ornament.unlockedBadges":a.id}})},Zf=Object.freeze(Object.defineProperty({__proto__:null,addBerry:async(t,a,s)=>{await q(t,{$inc:{"meta.berry":a,[`stats.${s.toHexString()}.berry`]:a}})},addMember:async(t,a)=>{await q(t,{$addToSet:{members:a}})},addXp:async(t,a,s)=>{await q(t,{$inc:{"meta.xp":a,[`stats.${s.toHexString()}.xp`]:a}})},addXpBuff:async(t,a)=>{await q(t,[{$set:{"meta.buffs.xp":{$cond:{if:{$or:[{$eq:["$meta.buffs.xp.expireAt",null]},{lt:["$meta.buffs.xp.expireAt",new Date]}]},then:{boost:1.1,expireAt:{$add:[new Date,a*60*60*1e3]}},else:{boost:1.1,expireAt:{$add:["$meta.buffs.xp.expireAt",a*60*60*1e3]}}}}}}])},applyDisintegration:async(t,a)=>{const[s,n]=[a-2,(a-3)*2+3];await q(t,[{$set:{disintegration:{$max:[{$add:["$disintegration",-1*Wa(s,n)]},0]}}}])},completeDailyQuest:Zs,completeQuest:Xs,increaseLimit:async(t,a)=>{await q(t,{$inc:{limit:1},$set:{"meta.berry":-a}})},repair:async(t,a)=>{await q(t,[{$set:{disintegration:{$min:[{$add:["$disintegration",a]},100]}}}])},setActualVoiceMembers:async(t,a)=>{await q(t,{$set:{"quest.meta.actualVoiceMembers.amount":a,"quest.meta.actualVoiceMembers.connectedAt":new Date}})},setMaxVoiceMembers:async(t,a)=>{await q(t,{$set:{"quest.meta.maxVoiceMembers":a}})},unlockBadge:Js},Symbol.toStringTag,{value:"Module"})),Jf=async(t,a={})=>{const s=await je.findById(t,a);return s||null},e0=async(t,{name:a,description:s,channelId:n,faction:r})=>await je.create({name:a,description:s,createdBy:t,channelId:n,faction:r,members:[t]}),en=new p.Schema({senderId:String,receiverId:String,amount:Number,gameMode:String,meta:{rps:{type:String,default:void 0}}});en.index({receiverId:1});const Yt=((Zn=p.models)==null?void 0:Zn.Invitations)||p.model("Invitations",en),t0=async t=>{const a=await Yt.findOne({...t});return a||null},a0=async t=>await Yt.create({...t}),s0=async t=>{await Yt.deleteMany({...t})},tn=new p.Schema({guildId:{type:String,required:!0,unique:!0},suggestionChannelId:{type:String,default:null},reportChannelId:{type:String,default:null},reportModeratorChannelId:{type:String,default:null},factionChannelId:{type:String,default:null},discussionChannelId:{type:String,default:null},questFallbackChannelId:{type:String,default:null},reportBugChannelId:{type:String,default:null},expeditionChannelId:{type:String,default:null},ranking:{channelId:{type:String,default:null},messageId:{type:String,default:null}},edito:{channelId:{type:String,default:null},price:{type:Number,default:100},sentAtMidnight:{type:Boolean,default:!1},messageId:{type:String,default:null}},crew:{infoChannelId:{type:String,default:null},crewChannelIds:{type:[{channelId:{type:String},crewId:{type:String}}],default:[]}},shopChannelId:{type:String,default:null},blackMarketChannelId:{type:String,default:null}});tn.index({"meta.xp":-1});const Ft=((Jn=p.models)==null?void 0:Jn.Settings)||p.model("Settings",tn),E=async(t,a,s=!1)=>{await Ft.updateOne({guildId:t},a,{upsert:s})},n0=Object.freeze(Object.defineProperty({__proto__:null,addCrewChannelId:async(t,a,s)=>{await E(t,{$push:{"crew.crewChannelIds":{channelId:s,crewId:a}}})},randomizeEditoPrice:async t=>{const a=Wa(100,1001);return await E(t,{$set:{"edito.price":a}}),a},sentAtMidnight:async(t,a)=>{await E(t,{$set:{"edito.sentAtMidnight ":a}})},setCrewInfoChannelId:async(t,a)=>{await E(t,{$set:{"crew.infoChannelId":a}})},setDiscussionChannelId:async(t,a)=>{await E(t,{$set:{discussionChannelId:a}})},setEditoChannel:async(t,a)=>{await E(t,{$set:{"edito.channelId":a}})},setEditoMessageId:async(t,a)=>{await E(t,{$set:{"edito.messageId ":a}})},setFactionChannel:async(t,a)=>{await E(t,{$set:{factionChannelId:a}})},setQuestChannelId:async(t,a)=>{await E(t,{$set:{questFallbackChannelId:a}})},setRankingChannel:async(t,a)=>{await E(t,{$set:{"ranking.channelId":a}})},setRankingMessage:async(t,a)=>{await E(t,{$set:{"ranking.messageId":a}})},setReportBugChannelId:async(t,a)=>{await E(t,{$set:{reportBugChannelId:a}})},setReportChannel:async(t,a)=>{await E(t,{$set:{reportChannelId:a}})},setReportModeratorChannel:async(t,a)=>{await E(t,{$set:{reportModeratorChannelId:a}})},setShopChannelId:async(t,a,s)=>{await E(t,{$set:{shopChannelId:a,blackMarketChannelId:s}})},setSuggestionChannel:async(t,a)=>{await E(t,{$set:{suggestionChannelId:a}})}},Symbol.toStringTag,{value:"Module"})),an=async t=>await Ft.create({guildId:t}),r0=async(t,a={})=>{const s=await Ft.findOne({guildId:t},a);return s||an(t)};class me{constructor(){e(this,"name");e(this,"price");e(this,"size");e(this,"data");if(this.constructor===me)throw new Error("Abstract classes can't be instantiated.")}toDBShopItem(){return{name:this.name,price:this.price,size:this.size,itemId:this.data.id}}async onBuy(a,s){await vn(a,-1*this.price*s),await Pn(a,this.price*s)}isBackground(){return!1}isChest(){return!1}isTitle(){return!1}isBoostXp(){return!1}isRepair(){return!1}isStore(){return!1}isCraft(){return!1}}class sn extends me{constructor({name:a,price:s,item:n,size:r}){super(),this.name=a,this.data=n,this.price=s,this.size=r}async onBuy(a,s){await super.onBuy(a,s),await Rn(a,this.data.background.id)}isBackground(){return!0}}class nn extends me{constructor({name:a,price:s,item:n,size:r}){super(),this.name=a,this.data=n,this.price=s,this.size=r}async onBuy(a,s){await super.onBuy(a,s),await Me(a,this.data.id,s)}isBoostXp(){return!0}}class rn extends me{constructor({name:a,price:s,item:n,size:r}){super(),this.name=a,this.data=n,this.price=s,this.size=r}async onBuy(a,s){await super.onBuy(a,s),await Me(a,this.data.id,s)}isChest(){return!0}}class ln extends me{constructor({name:a,price:s,item:n,size:r}){super(),this.name=a,this.data=n,this.price=s,this.size=r}async onBuy(a,s){await super.onBuy(a,s),await Me(a,this.data.id,s)}isCraft(){return!0}}class on extends me{constructor({name:a,price:s,item:n,size:r}){super(),this.name=a,this.data=n,this.price=s,this.size=r}async onBuy(a,s){await super.onBuy(a,s),await Me(a,this.data.id,s)}isRepair(){return!0}}class dn extends me{constructor({name:a,price:s,item:n,size:r}){super(),this.name=a,this.data=n,this.price=s,this.size=r}async onBuy(a,s){await super.onBuy(a,s),await Me(a,this.data.id,s)}isStore(){return!0}}class cn extends me{constructor({name:a,price:s,item:n,size:r}){super(),this.name=a,this.data=n,this.price=s,this.size=r}async onBuy(a,s){await super.onBuy(a,s),await ja(a,this.data.title.name)}isTitle(){return!0}}const un=(t,a)=>{const s=t.items.find(n=>n.name===a);if(s){const{name:n,price:r,size:i}=s,d=A.findItem(s.itemId);if(A.isBackgroundItem(d))return new sn({name:n,price:r,item:d,size:i});if(A.isTitleItem(d))return new cn({name:n,price:r,item:d,size:i});if(A.isChestItem(d))return new rn({name:n,price:r,item:d,size:i});if(A.isBoostItem(d))return new nn({name:n,price:r,item:d,size:i});if(A.isRepairItem(d))return new on({name:n,price:r,item:d,size:i});if(A.isStoreItem(d))return new dn({name:n,price:r,item:d,size:i});if(A.isObjectItem(d))return new ln({name:n,price:r,item:d,size:i})}},i0=Object.freeze(Object.defineProperty({__proto__:null,getShopItem:un,getShopItemList:t=>{const a=[];for(const{name:s}of t.items){const n=un(t,s);n&&a.push(n)}return a}},Symbol.toStringTag,{value:"Module"})),fn=new p.Schema({shopType:{type:String,required:!0,unique:!0},publishedAt:{type:Date,default:new Date},duration:{type:Number,default:null},closeAt:{type:Date,default:null},items:{type:[{name:String,price:Number,size:{type:Number,default:null},itemId:String}],default:[]},stats:{berrySpent:{type:Number,default:0},itemBought:{type:Number,default:0},chestBought:{type:Number,default:0},boostTimeBought:{type:Number,default:0},percentBought:{type:Number,default:0}}});fn.index({shopType:1});const Et=((er=p.models)==null?void 0:er.Shop)||p.model("Shop",fn),l0=async(t,a)=>{await hn({shopType:t},a,!0)},$a=async(t,a)=>{await hn({_id:t},a,!0)},hn=async(t,a,s=!1)=>{await Et.updateOne(t,a,{upsert:s})},o0=Object.freeze(Object.defineProperty({__proto__:null,buyShopItem:async(t,a,s,n)=>{const r=a.map(i=>(i.name===s.name&&i.size&&(i.size-=n),i));await $a(t,{$set:{items:r}})},publish:async t=>{await $a(t,{$set:{publishedAt:new Date}})},setShopItems:async(t,a)=>{await l0(t,{$set:{items:[...a]}})},updateShopStats:async(t,a,s)=>{await $a(t,{$inc:{"stats.berrySpent":a.price*s,"stats.itemBought":s,"stats.chestBought":a.isChest()?s:0,"stats.percentBought":a.isRepair()?a.data.repair*s:0,"stats.boostTimeBought":a.isBoostXp()?a.data.id==="boost_xp_day"?s:7*s:0}})}},Symbol.toStringTag,{value:"Module"})),d0=t=>Et.create({shopType:t}),c0=async(t,a={})=>{const s=await pn({shopType:t},a);return s||await d0(t)},pn=(t,a={})=>Et.findOne(t,a),Ia=new p.Schema({user:{type:p.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},crew:{type:p.Schema.Types.ObjectId,ref:"Crew",required:!0,index:!0},permission:String,percent:Number});Ia.virtual("inventory",{ref:"Crew",localField:"crew",foreignField:"_id",justOne:!0}),Ia.index({user:1});const He=((tr=p.models)==null?void 0:tr.UserCrew)||p.model("UserCrew",Ia),u0=async(t,a)=>{await He.updateOne({user:t},a,{upsert:!0})},f0=Object.freeze(Object.defineProperty({__proto__:null,updatePercent:async(t,a)=>{await u0(t,{$set:{percent:a}})}},Symbol.toStringTag,{value:"Module"})),mn=t=>He.findOne({user:t}),h0=async(t,a,s,n)=>await He.create({user:t,crew:a,percent:n,permission:s}),p0=t=>He.exists({user:t}),yn=new p.Schema({user:{type:p.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},xpYesterday:{type:Number,default:0},berryYesterday:{type:Number,default:0},previousOrnament:{unlockedBadges:{type:[String],default:[]},unlockedTitles:{type:[String],default:[]},unlockedBackgrounds:{type:[String],default:[]}},previousCompletedQuest:{type:[String],default:[]},previousMessageSent:{type:Number,default:0}});yn.index({user:1});const Lt=((ar=p.models)==null?void 0:ar.UserDailyReport)||p.model("UserDailyReport",yn),m0=async(t,a)=>{await Lt.updateOne({user:t},a,{upsert:!0})},y0=Object.freeze(Object.defineProperty({__proto__:null,updateDailyReport:async(t,a)=>{await m0(t,{$set:{xpYesterday:a.meta.xp.amount,berryYesterday:a.meta.berry,previousCompletedQuest:a.quest.completed,"previousOrnament.unlockedBadges":a.ornaments.unlockedBadges,"previousOrnament.unlockedTitles":a.ornaments.unlockedTitles,"previousOrnament.unlockedBackgrounds":a.ornaments.unlockedBackgrounds,previousMessageSent:a.questMeta.messageSent}})}},Symbol.toStringTag,{value:"Module"})),gn=new p.Schema({user:{type:p.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},guess:{tries:Number,amount:Number,numberToGuess:Number}});gn.index({user:1});const rt=((sr=p.models)==null?void 0:sr.UserGames)||p.model("UserGames",gn),Ya=async(t,a)=>{await rt.updateOne({user:t},a,{upsert:!0})},g0=Object.freeze(Object.defineProperty({__proto__:null,resetGuessGame:async t=>{await Ya(t,{$set:{guess:void 0}})},setGuessGame:async(t,a,s,n)=>{await Ya(t,{$set:{guess:{amount:a,tries:s,numberToGuess:n}}})},updateGuessGame:async t=>{await Ya(t,{$inc:{"guess.tries":1}})}},Symbol.toStringTag,{value:"Module"})),_n=async t=>await rt.create({user:t}),_0=async(t,a)=>{const s=await rt.findOne({user:t},a);return s||await _n(t)},w0=(t,a)=>{const s=xr(Object.values(t.equippedItems)),n=a.equipments.filter(r=>s.find(i=>i.id===r.id)).length;return n===a.equipments.length?a.fullBonus:n>=a.equipments.length/2?a.halfBonus:null},Fa=t=>{let a={vitality:0,strength:0,agility:0,chance:0,intelligence:0,wisdom:0};for(const s of A.EQUIPMENT_SLOT){const n=t.equippedItems[s];n&&(a=Ua(a,A.fromDBToEquipableEquipment(n).characteristics,(r,i)=>r+i))}for(const s of A.allPanoplies){const n=w0(t,s);n&&(a=Ua(a,n,(r,i)=>r+i))}return a},b0=Object.freeze(Object.defineProperty({__proto__:null,getItemList:t=>Object.fromEntries(t.itemList),getUserEquipmentsCharacteristics:Fa,hasEnoughItemsForRecipe:(t,a,s)=>{for(const n of a)if((t.itemList.get(n.itemId)||0)<n.size*s)return!1;return!0},hasEnoughTools:(t,a)=>(t.itemList.get("tools")||0)>=a,hasInventoryRequirements:(t,a)=>Ad(a).reduce((s,[n,r])=>s&&(t.itemList.get(n)??0)>=(r??0),!0),maxCraftQuantity:(t,a)=>{let s=1/0;for(const n of a)s=Math.min(s,Math.floor((t.itemList.get(n.itemId)||0)/n.size));return s}},Symbol.toStringTag,{value:"Module"})),v0=async t=>{var s;const a=[];for(const n of Object.values(Aa)){const r=new n;if((s=r.onUserMetaUpdate)!=null&&s.call(r,t)){const i=await r.complete(t.user._id,{_userMeta:t});i&&a.push([r,i])}}a.length>0&&Te("userMetaUpdate",t.user._id,a)},M0=async t=>{var s;const a=[];for(const n of Object.values(Oa)){const r=new n;if((s=r.onUserQuestMetaUpdate)!=null&&s.call(r,t)){const i=await r.complete(t.user._id,{});i&&a.push([r,i])}}a.length>0&&Te("userQuestMetaUpdate",t.user._id,a)},qe={multiplier:{type:Number,default:0},origin:String,expireAt:Date,startAt:{type:Date,default:null}},it=new p.Schema({user:{type:p.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},premium:{type:Boolean,default:!1},berry:{type:Number,default:0,index:!0},xp:{lastMessageWithXp:{type:Date,default:new Date},voice:{lastConnection:{type:Date,default:new Date},minutesInVoiceToday:{type:Number,default:0}},amount:{type:Number,default:0,index:!0},boost:{type:Date,default:null}},buffs:{cooldown:{casino:{type:[qe],default:[]},work:{type:[qe],default:[]}},berry:{work:{type:[qe],default:[]},global:{type:[qe],default:[]}},drop:{work:{type:[qe],default:[]}},xp:{global:{type:[qe],default:[]}}},hp:{type:Number,default:100},characteristics:{vitality:{type:Number,default:0},strength:{type:Number,default:0},agility:{type:Number,default:0},chance:{type:Number,default:0},intelligence:{type:Number,default:0},wisdom:{type:Number,default:0}},resetCharacteristics:{free:{type:Boolean,default:!0},nextAvailable:{type:Date,default:null}},scrolls:{vitality:{type:Number,default:0},strength:{type:Number,default:0},agility:{type:Number,default:0},chance:{type:Number,default:0},intelligence:{type:Number,default:0},wisdom:{type:Number,default:0}}});it.index({user:1}),it.index({"xp.amount":-1}),it.index({berry:-1}),it.post("findOneAndUpdate",async function(t){await v0(t)});const be=((nr=p.models)==null?void 0:nr.UserMeta)||p.model("UserMeta",it),wn=async t=>await be.create({user:t}),lt=async(t,a={})=>{const s=await be.findOne({user:t},a);return s||await wn(t)},Ea=t=>Object.fromEntries(l.CHARACTERISTICS.map(a=>[a,hr.getComputedCharacteristicValue(t.characteristics[a])+t.scrolls[a]])),S0=t=>Date.now()-t.xp.lastMessageWithXp.getTime()>60*1e3,La=t=>{const{boost:a}=t.xp;return(a!==null&&Date.now()<a.getTime()?.2:0)+(t.premium?.5:0)+t.buffs.xp.global.reduce((s,{expireAt:n,startAt:r,multiplier:i})=>s+((r??new Date)<=new Date&&!Pe(n)?i:0),0)},k0=t=>{const a=t.trim().length,s=2;return a<10?10*s:a>300?300*s:a*s},x0=(t,a,s)=>(a*=1+La(t),Math.ceil(a*s)),R0=(t,a)=>{const s=bn(t);return a<=0?a:Math.ceil(a*(s||1))},U0=t=>t.buffs.cooldown.work.reduce((a,{expireAt:s,startAt:n,multiplier:r})=>a+(new Date>=(n??new Date)&&!Pe(s)?r:0),1),C0=t=>t.buffs.drop.work.reduce((a,{expireAt:s,startAt:n,multiplier:r})=>a+(new Date>=(n??new Date)&&!Pe(s)?r:0),1),B0=t=>t.buffs.berry.work.reduce((a,{expireAt:s,startAt:n,multiplier:r})=>a+(new Date>=(n??new Date)&&!Pe(s)?r:0),1),bn=t=>t.buffs.berry.global.reduce((a,{expireAt:s,startAt:n,multiplier:r})=>a+(new Date>=(n??new Date)&&!Pe(s)?r:0),1),A0=t=>t.buffs.cooldown.casino.reduce((a,{expireAt:s,startAt:n,multiplier:r})=>a+(new Date>=(n??new Date)&&!Pe(s)?r:0),1),ve=async(t,a,s)=>{const n=a??await lt(t,{buffs:-1,xp:-1}),r=s??await Tt(t,{itemList:-1,equipmentList:-1});return((Ea(n).vitality??0)+Fa(r).vitality)*l.HP_PER_VITALITY+l.DEFAULT_MAX_HP},D0=Object.freeze(Object.defineProperty({__proto__:null,calcBerry:R0,calcBerryGlobalBuff:bn,calcBerryWorkBuff:B0,calcCooldownCasinoBuff:A0,calcCooldownWorkBuff:U0,calcDropWorkBuff:C0,calcMessageXp:k0,calcXp:x0,calcXpBoost:La,getBerryRank:async t=>(await be.aggregate([{$setWindowFields:{sortBy:{berry:-1},output:{rank:{$rank:{}}}}},{$match:{_id:t}},{$project:{rank:1}}]))[0],getGlobalRank:async t=>(await be.aggregate([{$setWindowFields:{sortBy:{"xp.amount":-1},output:{rank:{$rank:{}}}}},{$match:{_id:t}},{$project:{rank:1}}]))[0],getMaxHp:ve,getTotalCharacteristics:Ea,hasCharacteristicRequirement:async(t,a,s,n)=>{const r=s??await lt(t,{buffs:-1,xp:-1}),i=n??await Tt(t,{itemList:-1,equipmentList:-1}),d=Ua(Ea(r),Fa(i),(f,g)=>f+g);for(const f of Object.keys(a))if(d[f]<(a[f]??0))return!1;return!0},hasMalusBuff:t=>{const a=[...t.buffs.xp.global,...t.buffs.berry.global,...t.buffs.berry.work,...t.buffs.cooldown.work,...t.buffs.cooldown.casino,...t.buffs.drop.work];for(const{multiplier:s,startAt:n,expireAt:r}of a)if(s<0&&new Date<r&&(n??new Date)<=new Date)return!0;return!1},isCooldownForXpPassed:S0},Symbol.toStringTag,{value:"Module"})),O0=(t,a)=>be.findOneAndUpdate({user:t},a,{returnDocument:"after",upsert:!0}),L=async(t,a)=>{await be.findOneAndUpdate({user:t},a,{returnDocument:"after",upsert:!0})},N0=async t=>{await L(t,{$set:{"xp.lastMessageWithXp":new Date}})},$0=async(t,a)=>{await L(t,{$inc:{"xp.amount":a}})},vn=async(t,a)=>{await L(t,[{$set:{berry:{$max:[{$add:["$berry",a]},0]}}}])},I0=async(t,a)=>{await L(t,{$set:{premium:a}})},Y0=async(t,a)=>{const{xp:{boost:s}}=await O0(t,[{$set:{"xp.boost":{$cond:{if:{$or:[{$not:"$xp.boost"},{$lt:["$xp.boost",new Date]}]},then:{$add:[new Date,a]},else:{$add:["$xp.boost",a]}}}}}]);return s},F0=async(t,a,s,n,r,i)=>{await L(t,[{$set:{[`buffs.${a}`]:{$map:{input:`$buffs.${a}`,as:"buff",in:{$cond:{if:{$eq:[{$substr:["$$buff.origin",0,{$indexOfBytes:["$$buff.origin","/"]}]},{$substr:[s,0,{$indexOfBytes:[s,"/"]}]}]},then:{multiplier:"$$buff.multiplier",origin:"$$buff.origin",expireAt:{$cond:{if:{$lt:["$$buff.expireAt",new Date]},then:{$add:[new Date,r*60*60*1e3]},else:{$add:["$$buff.expireAt",r*60*60*1e3]}}},startAt:{$cond:{if:{$gte:["$$buff.startAt",new Date]},then:"$$buff.startAt",else:{$add:[new Date,(i??0)*60*60*1e3]}}}},else:"$$buff"}}}}}},{$set:{[`buffs.${a}`]:{$cond:{if:{$in:[{$substr:[s,0,{$indexOfBytes:[s,"/"]}]},{$map:{input:`$buffs.${a}`,as:"b",in:{$substr:["$$b.origin",0,{$indexOfBytes:["$$b.origin","/"]}]}}}]},then:`$buffs.${a}`,else:{$concatArrays:[`$buffs.${a}`,[{multiplier:n,origin:s,expireAt:{$add:[new Date,r*60*60*1e3]},startAt:{$add:[new Date,(i??0)*60*60*1e3]}}]]}}}}}])},E0=async(t,a,{userMeta:s,userInventory:n})=>{const r=s??await lt(t,{buffs:-1,xp:-1}),i=n??await Tt(t,{itemList:-1,equipmentList:-1}),f=await ve(t,r,i)-r.hp;await L(t,{$set:{hp:r.hp+Math.floor(Math.min(a,f))}})},L0=async(t,a)=>{await L(t,[{$set:{hp:{$max:[{$add:["$hp",-a]},0]}}}])},Qe=async(t,a)=>{const s=await ve(t);await L(t,[{$set:{hp:{$round:[{$multiply:[{$divide:["$hp",a]},s]},0]}}}])},P0=Object.freeze(Object.defineProperty({__proto__:null,addBerry:vn,addCharacteristics:async(t,a)=>{const s=await ve(t),n=Object.fromEntries(Object.entries(a).filter(([,r])=>r!==0).map(([r,i])=>[`characteristics.${r}`,i]));await L(t,{$inc:n}),Qe(t,s)},addMinutesInVoiceToday:async(t,a)=>{await L(t,{$inc:{"xp.voice.minutesInVoiceToday":a}})},addScrollCharacteristic:async(t,a)=>{const s=await ve(t),n=Object.fromEntries(Object.entries(a).filter(([,r])=>r!==0).map(([r,i])=>[`scrolls.${r}`,i]));await L(t,{$inc:n}),Qe(t,s)},addXp:$0,gainHp:E0,loseHp:L0,resetCharacteristics:async(t,a,s)=>{const n=await ve(t,s),r={vitality:0,strength:0,agility:0,chance:0,intelligence:0,wisdom:0};a?await L(t,{$set:{characteristics:r,"resetCharacteristics.free":!1}}):await L(t,{$set:{characteristics:r,"resetCharacteristics.nextAvailable":new Date(Date.now()+30*24*60*60*1e3)},$inc:{berry:-1e8}}),Qe(t,n)},resetMinutesInVoiceToday:async t=>{await L(t,{$set:{"xp.voice.minutesInVoiceToday":0}})},updateBoost:Y0,updateBuff:F0,updateHp:Qe,updateLastMessageTime:N0,updateLastVoiceConnection:async(t,a)=>{await L(t,{$set:{"xp.voice.lastConnection":a}})},updatePremium:I0},Symbol.toStringTag,{value:"Module"})),T0=async t=>{var s;const a=[];for(const n of Object.values(Ba)){const r=new n;if((s=r.onUserInventoryUpdate)!=null&&s.call(r,t)){const i=await r.complete(t.user._id,{});i&&a.push([r,i])}}a.length>0&&Te("userInventoryUpdate",t.user._id,a)},Pa=new p.Schema({user:{type:p.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},equippedItems:{type:Object,default:{}},equipmentList:{type:[{id:String,seed:Number}],default:[]},itemList:{type:Map,of:Number,default:{}},recipes:{type:[String],default:[]}},{minimize:!1});Pa.index({user:1}),Pa.post("findOneAndUpdate",async function(t){await T0(t)});const ot=((rr=p.models)==null?void 0:rr.UserInventory)||p.model("UserInventory",Pa),ye=async(t,a)=>{await ot.updateOne({user:t},a,{upsert:!0})},Me=async(t,a,s)=>{await ye(t,{$inc:{[`itemList.${a}`]:s}})},j0=async(t,a)=>{await ye(t,{$inc:Object.fromEntries(Object.entries(a).filter(([,s])=>(s??0)>0).map(([s,n])=>[`itemList.${s}`,n]))})},Pt=async(t,a,s)=>{s!==0&&await ye(t,[{$set:{[`itemList.${a}`]:{$max:[{$add:[`$itemList.${a}`,-s]},0]}}}])},Mn=async(t,a,s)=>{await ye(t,{$pull:{equipmentList:{id:a,seed:s}}})},Sn=async(t,a,s,n)=>{s!==0&&(A.isEquipmentId(a)?await Mn(t,a,n):await Pt(t,a,s))},H0=async(t,a)=>{await ye(t,{$set:{[`itemList.${a}`]:0}})},kn=async(t,a)=>{await ye(t,{$push:{equipmentList:{$each:a}}})},q0=Object.freeze(Object.defineProperty({__proto__:null,addEquipments:kn,addInventoryItem:Me,addInventoryItems:j0,craftItem:async(t,a,s,n,r)=>{for(const{itemId:f,size:g}of a)await Pt(t,f,g*n);const{itemId:i,size:d}=s;A.isEquipmentId(i)?await kn(t,[{id:i,seed:r}]):await Me(t,i,d*n)},dismantleEntity:async(t,a,s,n,r)=>{await Sn(t,a.id,n,r);for(const{entityId:i,quantity:d}of s)A.isEquipmentId(i)||await Me(t,i,n*d);await Pt(t,"tools",1)},equip:async(t,a,s)=>{const n=await ve(t);await ye(t,{$set:{[`equippedItems.${a}`]:s}}),await Qe(t,n)},removeAllItemInventory:H0,removeEquipment:Mn,removeInventoryEntity:Sn,removeInventoryItem:Pt,unequip:async(t,a)=>{const s=await ve(t);await ye(t,{$set:{[`equippedItems.${a}`]:null}}),await Qe(t,s)},unlockRecipe:async(t,a)=>{await ye(t,{$addToSet:{recipes:a}})}},Symbol.toStringTag,{value:"Module"})),xn=async t=>await ot.create({user:t}),Tt=async(t,a={})=>{const s=await ot.findOne({user:t},a);return s||await xn(t)},Q0=async t=>{var s;const a=[];for(const n of Object.values(Da)){const r=new n;if((s=r.onUserOrnamentsUpdate)!=null&&s.call(r,t)){const i=await r.complete(t.user._id,{});i&&a.push([r,i])}}a.length>0&&Te("userOrnamentsUpdate",t.user._id,a)},Ta=new p.Schema({user:{type:p.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},unlockedFactionBadges:{type:[String],default:[]},unlockedBadges:{type:[String],default:[]},unlockedTitles:{type:[String],default:[]},selectedTitle:{type:String,default:null},unlockedBackgrounds:{type:[String],default:["default"]},selectedBackground:{type:String,default:"default"},unlockedProfileAssets:{type:[String],default:[]}});Ta.index({user:1}),Ta.post("findOneAndUpdate",async function(t){await Q0(t)});const dt=((ir=p.models)==null?void 0:ir.UserOrnaments)||p.model("UserOrnaments",Ta),ne=async(t,a)=>{await dt.updateOne({user:t},a,{upsert:!0})},ja=async(t,a)=>{await ne(t,{$addToSet:{unlockedTitles:a}})},G0=async(t,a)=>{await ne(t,{$addToSet:{unlockedTitles:{$each:a}}})},K0=async(t,a)=>{await ne(t,{$set:{selectedTitle:a}})},Rn=async(t,a)=>{await ne(t,{$addToSet:{unlockedBackgrounds:a}})},W0=async(t,a)=>{await ne(t,{$addToSet:{unlockedBackgrounds:{$each:a}}})},V0=async(t,a)=>{await ne(t,{$set:{selectedBackground:a}})},Un=async(t,a,s)=>{a.isProgressive?await ne(t,{$addToSet:{unlockedBadges:`${a.id}_${s}`}}):await ne(t,{$addToSet:{unlockedBadges:a.id}})},Cn=async(t,a)=>{await ne(t,{$addToSet:{unlockedFactionBadges:{$each:[`b_marine_${a}`,`b_revolutionary_${a}`,`b_pirate_${a}`]}}})},Bn=async(t,a)=>{await ne(t,{$addToSet:{unlockedProfileAssets:a}})},z0=Object.freeze(Object.defineProperty({__proto__:null,selectBackground:V0,selectTitle:K0,unlockBackground:Rn,unlockBackgrounds:W0,unlockBadge:Un,unlockFactionBadge:Cn,unlockProfileAsset:Bn,unlockTitle:ja,unlockTitles:G0},Symbol.toStringTag,{value:"Module"})),An=async t=>await dt.create({user:t}),X0=async(t,a)=>{const s=await dt.findOne({user:t},a);return s||await An(t)},Dn=(t,a)=>t.completed.includes(a),On=(t,a)=>{const s=t.daily[a];return s&&nt(s,new Date)},Ha=t=>nt(Ra(),t.lastFullComplete),qa=t=>Ha(t)?1+Math.min(2,t.streak/10):1,Nn=t=>t.completed.reduce((a,s)=>a+(s.startsWith("be_level_")?1:0),0),$n=(t,a)=>{const s=Nn(t);return c.factionTitleList.find(n=>n.strength===s&&n.faction===a)},Z0=Object.freeze(Object.defineProperty({__proto__:null,getFactionTitle:$n,getFactionTitleStrength:Nn,getStreakMultiplier:qa,isDailyQuestCompleted:On,isQuestCompleted:Dn,isStreaking:Ha},Symbol.toStringTag,{value:"Module"})),In=new p.Schema({user:{type:p.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},completed:{type:[String],default:[]},daily:{type:Object,default:{}},streak:{type:Number,default:0},lastFullComplete:{type:Date,default:new Date}},{minimize:!1});In.index({user:1});const ct=((lr=p.models)==null?void 0:lr.UserQuest)||p.model("UserQuest",In),ut=async(t,a)=>{await ct.updateOne({user:t},a,{upsert:!0})},Yn=async(t,a)=>{await ut(t,{$addToSet:{completed:a}})},Fn=async(t,a)=>{p.isValidObjectId(t)&&await ut(t,[{$addFields:{[a]:new Date}}]),await ut(t,[{$addFields:{[a]:new Date}}])},En=async(t,a)=>{nt(Ra(),a)?await ut(t,{$inc:{streak:1},$set:{lastFullComplete:new Date}}):await ut(t,{$set:{lastFullComplete:new Date,streak:1}})},J0=Object.freeze(Object.defineProperty({__proto__:null,completeDailyQuest:Fn,completeQuest:Yn,updateStreak:En},Symbol.toStringTag,{value:"Module"})),Ln=async t=>await ct.create({user:t}),Qa=async t=>{const a=await ct.findOne({user:t});return a||await Ln(t)},Ga=new p.Schema({user:{type:p.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},tagEveryone:{type:Boolean,default:!1},botPing:{type:Number,default:0},writeDifferentChat:[String],messageSent:{type:Number,default:0},totalMinutesInVoice:{type:Number,default:0},hadMoreThanZeroBerry:{type:Boolean,default:!1},totalBet:{type:Number,default:0},edito:{readToday:{type:Number,default:0},lastTimeRead:{type:Date,default:new Date}},double_six:{type:Number,default:0},lastGames:{type:[{gameType:String,endState:Number}],default:[]},black_jack:{type:Number,default:0},rps:{type:{lastRps:String,nb:Number},default:{lastRps:"paper",nb:-1}},totalSpentInShop:{type:Number,default:0},work:{type:Number,default:0},draw:{type:Number,default:0},bet666:{amount:{type:Number,default:0},last:{type:Date,default:new Date(0)}},betMin:{type:Boolean,default:!1},loseEverything:{type:Boolean,default:!1},bet10M:{type:Boolean,default:!1},winBet10M:{type:Boolean,default:!1},lose10M:{type:Boolean,default:!1},items:{bottle:{total:{type:Number,default:0},today:{type:Number,default:0},last:{type:Date,default:new Date}},chest:{total:{type:Number,default:0}}},randomMessage:{type:Number,default:0},timeAt10Percent:{type:Number,default:0},timeAt90Percent:{type:Number,default:0},sevenQuitteOuDouble:{type:Number,default:0},drawDoubleSix:{type:Number,default:0},guessInOne:{type:Number,default:0},crafts:{cookedMeal:{type:Number,default:0},scrolls:{type:Number,default:0},total:{type:Number,default:0}},raidFinished:{type:Number,default:0},reportedSomeone:{type:Boolean,default:!1}});Ga.index({user:1}),Ga.post("findOneAndUpdate",async function(t){await M0(t)});const Se=((or=p.models)==null?void 0:or.UserQuestMeta)||p.model("UserQuestMeta",Ga),x=async(t,a)=>{await Se.findOneAndUpdate({user:t},a,{upsert:!0,returnDocument:"after"})},eh=async t=>{await x(t,{$inc:{work:1}})},th=async t=>{await x(t,{$set:{hadMoreThanZeroBerry:!0}})},ah=async t=>{await x(t,{$set:{sevenQuitteOuDouble:!0}})},sh=async t=>{await x(t,{$inc:{black_jack:1}})},nh=async(t,a,s)=>{await x(t,{$push:{lastGames:{$each:[{gameType:a,endState:s}],$position:0,$slice:20}}})},rh=async t=>{await x(t,{$inc:{draw:1}})},ih=async t=>{const a=new Date;a.setDate(a.getDate()-1),a.setHours(0,0,0,0);const s=new Date;s.setDate(s.getDate()-1),s.setHours(23,59,59,999),await Se.updateOne({user:t,"bet666.last":{$gte:a,$lte:s}},{$inc:{"bet666.amount":1},$set:{"bet666.last":new Date}}),await Se.updateOne({user:t,"bet666.last":{$lt:a}},{$set:{"bet666.last":new Date,"bet666.amount":1}})},lh=async(t,a)=>{await x(t,{$inc:{totalBet:a}})},oh=async(t,a)=>{await x(t,[{$set:{"rps.nb":{$cond:{if:{$eq:["$rps.lastRps",a]},then:{$add:["$rps.nb",1]},else:1}},"rps.lastRps":a}}])},Pn=async(t,a)=>{await x(t,{$inc:{totalSpentInShop:a}})},dh=Object.freeze(Object.defineProperty({__proto__:null,addTotalMinutesInVoice:async(t,a)=>{await x(t,{$inc:{totalMinutesInVoice:a}})},addWrittenTextChannel:async(t,a)=>{await x(t,{$addToSet:{writeDifferentChat:a}})},bet666:ih,botPingIncrement:async t=>{await x(t,{$inc:{botPing:1}})},drawDoubleSix:async t=>{await x(t,{$inc:{drawDoubleSix:1}})},drawIncrement:rh,hadMoreThanZeroBerry:th,hasBet10M:async t=>{await x(t,{$set:{bet10M:!0}})},hasBetMin:async t=>{await x(t,{$set:{betMin:!0}})},hasCelebrateBirthday:async t=>{await x(t,{$set:{hasCelebrateBirthday:!0}})},hasGuessInOne:async t=>{await x(t,{$inc:{guessInOne:1}})},hasLose10M:async t=>{await x(t,{$set:{lose10M:!0}})},hasLoseEverything:async t=>{await x(t,{$set:{loseEverything:!0}})},hasReportedSomeone:async t=>{await x(t,{$set:{reportedSomeone:!0}})},hasSevenQod:ah,hasTagEveryone:async t=>{await x(t,{$set:{tagEveryone:!0}})},hasWinBet10M:async t=>{await x(t,{$set:{winBet10M:!0}})},incrementMessageSend:async t=>{await x(t,{$inc:{messageSent:1}})},randomMessageIncrement:async t=>{await x(t,{$inc:{randomMessage:1}})},readEdito:async t=>{const a=new Date;a.setDate(a.getDate()-1),a.setHours(0,0,0,0);const s=new Date;s.setDate(s.getDate()-1),s.setHours(23,59,59,999),await Se.updateOne({user:t,"edito.lastTimeRead":{$gte:a,$lte:s}},{$inc:{"edito.readToday":1},$set:{"edito.lastTimeRead":new Date}}),await Se.updateOne({user:t,"edito.lastTimeRead":{$lt:a}},{$set:{"edito.lastTimeRead":new Date,"edito.readToday":1}})},updateCrafts:async(t,a,s)=>{const n=A.findEntity(s);await x(t,{$inc:{"crafts.cookedMeal":A.isCookedMeal(n)?a:0,"crafts.scrolls":A.isScrollItem(n)?a:0,"crafts.total":a}})},updateCrew10Percent:async(t,a)=>{a?await x(t,{$set:{timeAt10Percent:0}}):await x(t,{$inc:{timeAt10Percent:1}})},updateCrew90Percent:async(t,a)=>{a?await x(t,{$set:{timeAt90Percent:0}}):await x(t,{$inc:{timeAt90Percent:1}})},updateLastGames:nh,updateRps:oh,updateTotalBet:lh,updateTotalSpentInShop:Pn,winBlackjack:sh,winDoubleSix:async t=>{await x(t,{$inc:{double_six:1}})},workIncrement:eh},Symbol.toStringTag,{value:"Module"})),ch=Object.freeze(Object.defineProperty({__proto__:null,alreadyObtainedRaidReward:(t,a,s)=>a in t.obtainedRewards?t.obtainedRewards[a].includes(s):!1,hasUnlockedRaid:(t,a)=>{var s;return(s=t.unlocked)==null?void 0:s[a]}},Symbol.toStringTag,{value:"Module"})),Tn=new p.Schema({user:{type:p.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},currentRaid:{type:{raidId:String,seed:String,progression:{type:[String],default:[]},buffItem:String},default:void 0},obtainedRewards:{type:Object,default:{}},unlocked:{type:Object,default:{}},cooldown:{classic:{type:Date,default:void 0},special:{type:Date,default:void 0}}},{minimize:!1});Tn.index({user:1});const ft=((dr=p.models)==null?void 0:dr.UserRaid)||p.model("UserRaid",Tn),Ce=async(t,a)=>{await ft.updateOne({user:t},a,{upsert:!0})},uh=Object.freeze(Object.defineProperty({__proto__:null,claimReward:async(t,a,s)=>{await Ce(t,{$push:{[`obtainedRewards.${a}`]:s}})},progressRaid:async(t,a)=>{await Ce(t,{$push:{"currentRaid.progression":a}})},reduceRaidCooldown:async(t,a)=>{await Ce(t,[{$set:{"raid.cooldown.special":{$subtract:[{$ifNull:["$raid.cooldown.special",new Date]},a*3600*1e3]},"raid.cooldown.classic":{$subtract:[{$ifNull:["$raid.cooldown.classic",new Date]},a*3600*1e3]}}}])},resetRaid:async t=>{await Ce(t,{$set:{currentRaid:void 0}})},resetRaidProgression:async t=>{await Ce(t,{$set:{"currentRaid.progression":[]}})},startRaid:async(t,a,s,n)=>{const r=Date.now();return await Ce(t,{$set:{currentRaid:{raidId:a,buffItem:s,seed:r,progression:[]},...n?{"cooldown.special":new Date(Date.now()+7*24*60*60*1e3)}:{"cooldown.classic":new Date(Date.now()+7*24*60*60*1e3)}}}),r},unlockRaid:async(t,a)=>{await Ce(t,{$set:{[`unlocked.${a}`]:!0}})}},Symbol.toStringTag,{value:"Module"})),jn=async t=>await ft.create({user:t}),fh=async t=>{const a=await ft.findOne({user:t});return a||await jn(t)},hh=Object.freeze(Object.defineProperty({__proto__:null,getShopItemRest:(t,a,s,n)=>{var d;const r=A.getAllItemsLimit()[a],i=(d=t.limit)==null?void 0:d[a];return r?t.lastShopId!==s?r:i?r-i:Math.min(r,n):n},isShopBuyLimitReached:(t,a,s)=>{const n=A.getAllItemsLimit()[a],r=t.limit?t.limit[a]:void 0;return t.lastShopId!==s?!1:!!(n&&r&&r>=n)}},Symbol.toStringTag,{value:"Module"})),Hn=new p.Schema({user:{type:p.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},lastShopId:{type:Number,default:0},limit:{type:Object,default:{}}},{minimize:!1});Hn.index({user:1});const jt=((cr=p.models)==null?void 0:cr.UserShop)||p.model("UserShop",Hn),ph=async(t,a)=>{await jt.updateOne({user:t},a,{upsert:!0})},mh=Object.freeze(Object.defineProperty({__proto__:null,increaseShopBuyLimit:async(t,a,s,n)=>{await ph(t,[{$set:{[`limit.${a}`]:{$cond:{if:{$eq:["$lastShopId",s]},then:{$add:[`$limit.${a}`,n]},else:n}},lastShopId:s}}])}},Symbol.toStringTag,{value:"Module"})),re={localField:"_id",foreignField:"user",justOne:!0},Q=new p.Schema({userId:{type:String,required:!0,unique:!0},birthday:{type:Date,default:null},faction:{type:String,default:l.DEFAULT_FACTION},canChangeFaction:{type:Boolean,default:!1},canChooseFaction:{type:Boolean,default:!1},settings:{sort:{inventory:{type:String,default:"alpha"}},sendDailyReport:{type:Boolean,default:!1},sendDailyQuest:{type:Boolean,default:!1}},lockUserCommand:{type:Date,default:new Date(0)}});Q.virtual("inventory",{ref:"UserInventory",...re}),Q.virtual("raid",{ref:"UserRaid",...re}),Q.virtual("games",{ref:"UserGames",...re}),Q.virtual("ornaments",{ref:"UserOrnaments",...re}),Q.virtual("crew",{ref:"UserCrew",...re}),Q.virtual("dailyReport",{ref:"UserDailyReport",...re}),Q.virtual("shop",{ref:"UserShop",...re}),Q.virtual("meta",{ref:"UserMeta",...re}),Q.virtual("quest",{ref:"UserQuest",...re}),Q.virtual("questMeta",{ref:"UserQuestMeta",...re}),Q.index({userId:1}),Q.post("deleteOne",async function(){const t=this.getQuery()._id;await ot.deleteOne({user:t}),await rt.deleteOne({user:t}),await dt.deleteOne({user:t}),await ft.deleteOne({user:t}),await He.deleteOne({user:t}),await Lt.deleteOne({user:t}),await jt.deleteOne({user:t}),await be.deleteOne({user:t}),await ct.deleteOne({user:t}),await Se.deleteOne({user:t})});const G=((ur=p.models)==null?void 0:ur.User)||p.model("User",Q),yh=t=>G.create({userId:t}),Ka=async(t,a={})=>{const s=await qn({userId:t},a);return s||await yh(t)},qn=(t,a={})=>G.findOne(t,a),gh=Object.freeze(Object.defineProperty({__proto__:null,getAllDailyReport:async()=>G.aggregate([{$match:{"settings.sendDailyReport":{$eq:!0}}},{$lookup:{from:"usermetas",localField:"_id",foreignField:"user",as:"meta"}},{$lookup:{from:"userdailyreports",localField:"_id",foreignField:"user",as:"dailyReport"}},{$match:{$expr:{$and:[{"dailyReport.xpYesterday":{$gt:0,$exists:!0}},{faction:{$ne:"citizen"}}]}}}]),getBerryRanking:async()=>G.aggregate([{$lookup:{from:"usermetas",localField:"_id",foreignField:"user",as:"meta"}},{$unwind:"$meta"},{$sort:{"meta.berry":-1}},{$limit:10},{$project:{_id:1,userId:1,"meta.berry":1}}]),getDailyReport:t=>{const{berry:a,xp:s}=t.meta,{voice:n,amount:r}=s,{unlockedBadges:i,unlockedBackgrounds:d,unlockedTitles:f}=t.ornaments,{previousOrnament:g,previousCompletedQuest:w,xpYesterday:U,berryYesterday:I,previousMessageSent:T}=t.dailyReport;return{berry:a-I,xp:r-U,message:t.questMeta.messageSent-T,voice:nt(n.lastConnection,Ra())?n.minutesInVoiceToday:0,quest:pt(t.quest.completed,w),badge:pt(i,g.unlockedBadges),title:pt(f,g.unlockedTitles),background:pt(d,g.unlockedBackgrounds)}},getFactionRank:async(t,a)=>(await G.aggregate([{$lookup:{from:"usermetas",localField:"_id",foreignField:"user",as:"meta"}},{$unwind:"$meta"},{$match:{faction:t.faction}},{$setWindowFields:{sortBy:{"meta.xp.amount":-1},output:{rank:{$rank:{}}}}},{$match:{_id:a}},{$project:{rank:1}}]))[0],getFactionRanking:async t=>G.aggregate([{$match:{faction:t}},{$lookup:{from:"usermetas",localField:"_id",foreignField:"user",as:"meta"}},{$unwind:"$userMeta"},{$sort:{"userMeta.xp.amount":-1}},{$limit:10},{$project:{_id:1,userId:1,"meta.xp.amount":1}}]),getGlobalRanking:async()=>G.aggregate([{$lookup:{from:"usermetas",localField:"_id",foreignField:"user",as:"meta"}},{$unwind:"$meta"},{$sort:{"meta.xp.amount":-1}},{$limit:10},{$project:{_id:1,userId:1,"meta.xp.amount":1}}]),getNextBirthdays:()=>G.aggregate([{$match:{birthday:{$ne:null}}},{$addFields:{day:{$dayOfMonth:"$birthday"},month:{$month:"$birthday"},year:{$year:"$birthday"},nextBirthday:{$dateFromParts:{year:{$cond:[{$lt:[{$dateFromParts:{year:{$year:new Date},month:{$month:"$birthday"},day:{$dayOfMonth:"$birthday"}}},new Date]},{$add:[{$year:new Date},1]},{$year:new Date}]},month:{$month:"$birthday"},day:{$dayOfMonth:"$birthday"}}}}},{$sort:{nextBirthday:1}},{$limit:10},{$project:{_id:0,userId:1,birthday:1,nextBirthday:1}}]),getSuccessRanking:async()=>G.aggregate([{$lookup:{from:"userquests",localField:"_id",foreignField:"user",as:"quest"}},{$unwind:"$quest"},{$addFields:{success_count:{$size:{$ifNull:["$quest.completed",[]]}}}},{$sort:{success_count:-1}},{$limit:10},{$project:{_id:1,userId:1,"quest.completed":1}}]),getTodayAllBirthday:()=>G.aggregate([{$match:{birthday:{$ne:null}}},{$addFields:{birthMonth:{$month:"$birthday"},birthDay:{$dayOfMonth:"$birthday"}}},{$addFields:{currentMonth:{$month:new Date},currentDay:{$dayOfMonth:new Date}}},{$match:{$expr:{$and:[{$eq:["$birthMonth","$currentMonth"]},{$eq:["$birthDay","$currentDay"]}]}}}]),getUserBirthday:async t=>await Ka(t,{birthday:1})},Symbol.toStringTag,{value:"Module"})),Be=async(t,a,s=!1)=>{await G.updateOne(t,a,{upsert:s})},Qn=async(t,a)=>{await Be({_id:t},{$set:{canChooseFaction:a}})},Gn=async(t,a)=>{await Be({_id:t},{$set:{canChangeFaction:a}})},_h=Object.freeze(Object.defineProperty({__proto__:null,canChangeFaction:Gn,canChooseFaction:Qn,removeBirthday:async t=>{await Be({userId:t},{$set:{birthday:null}})},setBirthday:async(t,a)=>{await Be({userId:t},{$set:{birthday:a}})},updateInventorySort:async(t,a)=>{await Be({_id:t},{$set:{"settings.sort.inventory":a}})},updateSendDailyQuest:async(t,a)=>{await Be({userId:t},{$set:{"settings.sendDailyQuest":a}})},updateSendDailyReport:async(t,a)=>{await Be({userId:t},{$set:{"settings.sendDailyReport":a}})}},Symbol.toStringTag,{value:"Module"})),wh=async t=>{await G.deleteOne({userId:t})},bh=async t=>await Lt.create({user:t}),vh=async t=>await Se.create({user:t}),Mh=async t=>await jt.create({user:t}),Kn=(t,a)=>{switch(t){case"dailyReport":return bh(a);case"games":return _n(a);case"inventory":return xn(a);case"meta":return wn(a);case"raid":return jn(a);case"ornaments":return An(a);case"quest":return Ln(a);case"questMeta":return vh(a);case"shop":return Mh(a)}},Sh=async(t,a,s)=>{if(Array.isArray(a)){const n=await t.populate(a);for(const r of a)n[r]||(n[r]=await Kn(r,t._id));return n}else{const n=await t.populate(a,s);return n[a]||(n[a]=await Kn(a,t._id)),n}},Wn=new p.Schema({warnedUserId:String,authorId:String,date:{type:Date,default:Date.now()},reason:{type:String,default:null}});Wn.index({warnedUserId:1});const Ge=((fr=p.models)==null?void 0:fr.Warns)||p.model("Warns",Wn),kh=Object.freeze(Object.defineProperty({__proto__:null,getUserWarnCount:async t=>await Ge.countDocuments({warnedUserId:t}),getUserWarns:async t=>await Ge.find({warnedUserId:t})},Symbol.toStringTag,{value:"Module"})),xh=async t=>await Ge.findOne({warnedUserId:t}),Rh=async t=>await Ge.create({...t}),Uh=async t=>await Ge.findByIdAndDelete(t),Ch=t=>{p.connect(t)},Bh=async(t,a,s,{berry:n,xp:r})=>{const i=await Qa(a).then($=>$.populate("user","faction")),d=qa(i),f=$n(i,i.user.faction),{badge:g,isFactionBadge:w,title:U,rank:I,name:T,description:Lh,daily:Ht,secret:Ph}=t;return s.Image().setImageName(`quest_success_${I.id}`).draw(),g?s.Image().setImageName(c.progressiveBadgeTypeGuard(g)?`cropped_badge_${g.img}_${I.id}`:`cropped_badge_${g.img}`).setOrigin(j.CanvasOrigin.CENTER).setScale(2).setPosition(370,318).draw():w&&i.user.faction!=="citizen"?s.Image().setImageName(`cropped_badge_${i.user.faction}_${I.id}`).setOrigin(j.CanvasOrigin.CENTER).setScale(2).setPosition(370,318).draw():s.Image().setImageName(`badge_default_${I.id}`).setScale(2).setOrigin(j.CanvasOrigin.CENTER).setPosition(370,318).draw(),s.Text(Ht?"QUÊTE JOURNALIÈRE TERMINÉE !":"SUCCÈS DÉBLOQUÉ !").setPosition(739,100).setFont("text",70).setColor(I.color).draw(),s.Text(T).setPosition(739,260).setFont("poppins",T.length>=35?65-2*(T.length-35):65).draw(),s.Text(Ph?"Succès caché":Lh).setPosition(739,360).setFont("poppins_italic",35).draw(),s.Text(`Récompenses: ${ht(n)}${Ht&&d>1?` (+${ht(n*(d-1))})`:""} `).setPosition(739,520).setFont("poppins",35).setOrigin(j.CanvasOrigin.LEFT).draw(n!==0).next(($,Y)=>j.nextAllToXAxis($.Image(),Y)).setImageName("quest_berry").setDimensions(50,79).draw(n!==0).next(($,Y)=>j.nextAllToXAxis($.Text(` / ${ht(r)}${Ht&&d>1?` (+${ht(r*(d-1))})`:""} `),Y)).draw(r!==0).next(($,Y)=>j.nextAllToXAxis($.Image(),Y)).setImageName("quest_xp").setDimensions(57,59).draw(r!==0).next(($,Y)=>j.nextAllToXAxis($.Text(` combo x${d}`),Y)).draw(Ht&&d>1).next(($,Y)=>j.nextAllToXAxis($.Text(" et la possibilité "),Y)).draw(w&&i.user.faction==="citizen").next(($,Y)=>j.nextAllToXAxis($.Text("de choisir ta faction"),Y)).setFont("poppins_bold",35).draw(w&&i.user.faction==="citizen").next(($,Y)=>j.nextAllToXAxis($.Text(" et le titre "),Y)).setFont("poppins",35).draw(!!U||w&&i.user.faction!=="citizen").next(($,Y)=>j.nextAllToXAxis($.Text((U==null?void 0:U.name)??""),Y)).setFont("poppins_bold",35).setColor((U==null?void 0:U.rank.color)??"white").draw(!!U).next(($,Y)=>j.nextAllToXAxis($.Text((f==null?void 0:f.name)??""),Y)).setColor((f==null?void 0:f.rank.color)??"white").draw(w&&!!f),await s.encode("webp")},Ah=10,Dh=1e7,Oh=100,Nh=["berry","success_COMMON","success_RARE","success_EPIC","success_LEGENDARY","success_MYTHIC","xp"],$h={background:"<:background:1178465681809887334>",title:"<:title:1178465688915038208>",chest_1:"<:lootbox1:1186689926167810088>",chest_2:"<:lootbox2:1186258728882811051>",chest_3:"<:lootbox3:1243963722259501216>",chest_4:"<:lootbox3:1186259958216523786>",bottle_xp_1:"<:bottle_xp:1186204593667969035>",bottle_xp_2:"<:bottle_xp_2:1243980696083632208>",bottle_xp_3:"<:bottle_xp_3:1243980697773936740>",bottle_xp_4:"<:bottle_xp_4:1243980698927366256>",boost_week:"<:boost_week:1186258728073297971>",boost_day:"<:boost_day:1186258726030680145>",wood_plank:"<:Planchesdebois:1233782418478071930>",nail:"<:Clous:1233782384613261382>",glue:"<:Colle:1233782388497186846>",rope:"<:Corde:1233782392225927168>",repair_kit:"<:Kitderparation:1233782876223570011>",tissue:"<:Tissus:1233784184099573852>",lock:"<:Serrureclef:1233782436068982814>",iron:"<:Ferbrut:1233782399125426207>",clover:"<:Treflesixfeuilles:1233782439503990915> ",glass_bottle:"<:Fioleenverre:1233782402233532496>",pure_water:"<:Eaupure:1233782393572298802>",sea_salt:"<:SelMarin:1233784181696233602>",ebony_poppy:"<:Pavotebene:1233782416879915060>",rose:"<:Roseimmaculee:1233784180215644180>",poppy:"<:Coquelicotecarlate:1233782390099280023>",manganese:"<:Manganesescintillante:1233784177221042196>",cursed_hawthorn:"<:AubpineMaudite:1233782382872629329>",mugwort:"<:Armoiseblanche:1233782381400424519>",mandrake:"<:MandragoreAdulte:1233782409070247946>",obsidian:"<:Obsidiennesombre:1233784178307371110>",saffron:"<:Safranvermeille:1233782430385836124>",edelweiss:"<:Edelweiss:1233782395019329546>",emerald:"<:emeraude:1233782873165791273>",ruby:"<:Rubis:1233782426174619679>",sapphire:"<:Saphir:1233782432004837407>",siren_tear:"<:Larmedesirene:1233782405538517095>",compass:"<:Rosedesvents:1233782421892239360>",dragon_heart:"<:CoeurdeDragon:1233782386580258848>",fairy_wing:"<:Ailedefees:1233782379269722293>",phoenix_feather:"<:PlumedePhoenix:1233784783822127167>",mithril:"<:Mithril:1233782412434214974>",cereal:"<:craft_cereal:1243963641204703405>",cotton:"<:craft_cotton:1243963642567721080>",empty_box:"<:craft_empty_box:1243963643834535966>",enchanted_emerald:"<:craft_enchanted_emerald:1243963645092696105>",enchanted_ruby:"<:craft_enchanted_ruby:1243963647097569330>",enchanted_sapphire:"<:craft_enchanted_sapphire:1243963648486019082>",enchanted_stone:"<:craft_enchanted_stone:1243963650893545637>",flour:"<:craft_flour:1243963651719823451>",hemp:"<:craft_hemp:1243963653238030387>",scrap:"<:craft_scrap:1243963718895669268>",strange_gem:"<:craft_strange_gem:1243963656539078686>",strange_stone:"<:craft_strange_stone:1243963658766123192>",tools:"<:craft_tools:1243963720179122217>",wood:"<:craft_wood:1243963662763298897>",wine:"<:craft_wine:1249242713442746501>",toy:"<:craft_toy:1249242711907893278>",rhum:"<:craft_rhum:1249242707961057361>",milk:"<:craft_milk:1249242706501308488>",fruit:"<:craft_fruit:1249242705612115968>",sugar:"<:craft_sugar:1249242709684785184>",egg:"<:craft_egg:1249242703972007986>",omelet:"<:omelette:1288942044328493179>",cheese:"<:Fromage_Affine:1289695711398596761>",bread:"<:Pain_de_campagne:1289703440163016855>",strawberry_cake:"<:Fraisier:1289707903649058858>",bowl_cereal:"<:craft_bowl_cereal:1249242702462193686>",beer:"<:craft_beer:1249242701300240434>",bowl:"<:craft_bowl:1250116629275082873>",rudder:"<:craft_rudder:1250435943253540895>",rescue_boat:"<:craft_rescue_boat:1250435931635322950>",sailing_boat:"<:craft_sailing_boat:1250435942162894849>",salt_water:"<:craft_salt_water:1250435945216475317>",anchor:"<:craft_anchor:1250435934843834409>",hammock:"<:craft_hammock:1250435933300588687>",leather:"<:craft_leather:1253034980133834752>",ancient_key:"<:craft_ancient_key:1257447843355033742>",iron_ore:"<:craft_iron_ore:1257475847271612497>",map_fragment:"<:map_fragment:1281949667227205663>",scroll_agility:"<:scroll_agility:1254081331365810289>",scroll_chance:"<:scroll_chance:1254081332422639657>",scroll_intelligence:"<:scroll_intelligence:1254081334264070174>",scroll_strength:"<:scroll_strength:1254081335862099980>",scroll_vitality:"<:scroll_vitality:1254081337711919185>",scroll_wisdom:"<:scroll_wisdom:1254081340115259454>",elemental_concentrate_earth:"<:elemental_concentrate_earth:1269073512782499860>",elemental_concentrate_fire:"<:elemental_concentrate_fire:1269073513919156349>",elemental_concentrate_life:"<:elemental_concentrate_life:1269073515315728425>",elemental_concentrate_moon:"<:elemental_concentrate_moon:1269073517044039760>",elemental_concentrate_water:"<:elemental_concentrate_water:1269073518205599776>",elemental_concentrate_wind:"<:elemental_concentrate_wind:1269073510815367189>",essence_earth:"<:essence_earth:1269073149300052034>",essence_fire:"<:essence_fire:1269073150784700416>",essence_life:"<:essence_life:1269073151728287787>",essence_moon:"<:essence_moon:1269073153510998056>",essence_water:"<:essence_water:1269073154333081701>",essence_wind:"<:essence_wind:1269073156241625088>",empty_scroll:"<:empty_scroll:1269074077327298653>"},Ih={d1:"<:d1:1159542168738873455>",d2:"<:d2:1159542071049334814>",d3:"<:d3:1159542073914032191>",d4:"<:d4:1159542075512082543>",d5:"<:d5:1159542078179651614>",d6:"<:d6:1159542079458910229>",revolutionary:"<:revolutionnaire:648245785133056020>",pirate:"<:pirate:648245785053626368>",marine:"<:marine:648245784407441429>",berry:"<:berry:1153734056035504158>",xp:"<:xp:1084914564379975772>",success:"<:success:1186707379534954506>",hp:"<:hp:1257776163955277824>",paper:"📄",rock:"🪨",scissor:"✂️",pray:"<:Ryokugyu_pray:1147542990844334280>",gun:"<:fujigun:1050120413243506688>",promise:"<:Luffy_Promise:1027626431565529099>",love:"<:Lawve:1050916817801072730>",note:"<:imsusnote:1136952496456224778>",watching:"<:Carrot_Watching:1024736915922104360>",card:"<:carteDos:1168580012258103387>",cards:{spades:{1:"<:asdepique:1168560615170768967>",2:"<:2depique:1168559430955184259>",3:"<:3depique:1168559437548638248>",4:"<:4depique:1168559679354445934>",5:"<:5depique:1168559725504372796>",6:"<:6depique:1168559764528185394>",7:"<:7depique:1168559459392553061>",8:"<:8depique:1168559887870083162>",9:"<:9depique:1168559471392464988>",10:"<:10depique:1168559958435053598>",J:"<:valetdepique:1168560676202086523>",Q:"<:reinedepique:1168560621722284083>",K:"<:roidepique:1168560628189888634>"},diamonds:{1:"<:asdecarreau:1168560612742279308>",2:"<:2decarreau:1168559427788472330>",3:"<:3decarreau:1168559434138669236>",4:"<:4decarreau:1168559440774041621>",5:"<:5decarreau:1168559445308084256>",6:"<:6decarreau:1168559763462819940>",7:"<:7decarreau:1168559845872517172>",8:"<:8decarreau:1168559888989949994>",9:"<:9decarreau:1168559942215667804>",10:"<:10decarreau:1168559475481907230>",J:"<:valetdecarreau:1168560633634095234>",Q:"<:reinedecarreau:1168560618182291577>",K:"<:roidecarreau:1168560626185011281>"},hearts:{1:"<:asdecoeur:1168560613971214368>",2:"<:2decoeur:1168559428681859073>",3:"<:3decoeur:1168559435950592060>",4:"<:4decoeur:1168559442074284073>",5:"<:5decoeur:1168559723226865725>",6:"<:6decoeur:1168559452509708298>",7:"<:7decoeur:1168559457769365684>",8:"<:8decoeur:1168559463368757339>",9:"<:9decoeur:1168559938897989672>",10:"<:10decoeur:1168559477658751006>",J:"<:valetdecoeur:1168560635991298160>",Q:"<:reinedecoeur:1168560619855822940>",K:"<:roidecoeur:1168560678378950716>"},clubs:{1:"<:asdetrfle:1168560617444081834>",2:"<:2detrfle:1168559432242831512>",3:"<:3detrfle:1168559439440269403>",4:"<:4detrfle:1168559677936762982>",5:"<:5detrfle:1168559449540145153>",6:"<:6detrfle:1168559761260818594>",7:"<:7detrfle:1168559844748435549>",8:"<:8detrfle:1168559466334142575>",9:"<:9detrfle:1168559940953194576>",10:"<:10detrfle:1168559959802380288>",J:"<:valetdetrfle:1168560610531885137>",Q:"<:reinedetrfle:1168560623228026972>",K:"<:roidetrfle:1168560675543580712>"}},factions:{b_citizen_COMMON:"<:BasiqueOPFRbois:1175507882188484761>",b_citizen_RARE:"<:BasiqueOPFRargent:1175507880724668488>",b_citizen_EPIC:"<:BasiqueOPFRor:1175507883501289512>",b_citizen_LEGENDARY:"<:BasiqueOPFRplatine:1175507886714134548>",b_citizen_MYTHIC:"<:BasiqueOPFRultime:1175507889553670264>",b_marine_COMMON:"<:Marinebois:1175507936953512036>",b_marine_RARE:"<:Marineargent:1175508322351321178>",b_marine_EPIC:"<:Marineor:1175508300603863132>",b_marine_LEGENDARY:"<:Marineplatine:1175507940803879012>",b_marine_MYTHIC:"<:Marineultime:1175508279590395977>",b_revolutionary_COMMON:"<:RvoBois:1175507954779295810>",b_revolutionary_RARE:"<:RvoArgent:1175508199118483457>",b_revolutionary_EPIC:"<:RvoOr:1175508111885344819>",b_revolutionary_LEGENDARY:"<:RvoPlatine:1175507958378008756>",b_revolutionary_MYTHIC:"<:RvoUltime:1175508127815319612>",b_pirate_COMMON:"<:Piratebois:1175508259768115272>",b_pirate_RARE:"<:Pirateargent:1175507943987363941>",b_pirate_EPIC:"<:Pirateor:1175508240243621928>",b_pirate_LEGENDARY:"<:Pirateplatine:1175507949578358804>",b_pirate_MYTHIC:"<:Pirateultime:1175507951709061150>"},characteristics:{vitality:"<:vitality:1251861015277338675>",strength:"<:strength:1251860738595618838>",agility:"<:agility:1251860734145728596>",intelligence:"<:intelligence:1251860736943194144>",chance:"<:chance:1251860735827513425>",wisdom:"<:wisdom:1251861017231884378>"},equipment_adventurer_strap:"<:adventurer_strap:1253041086147068035>",equipment_adventurer_collar:"<:adventurer_collar:1253041084611690567>",equipment_adventurer_boots:"<:adventurer_boots:1253041083252867123>",equipment_adventurer_helmet:"<:Casque_cuir:1256965718432550953>",equipment_adventurer_weapon:"<:Dague_cuir:1256965714141515837>",equipment_adventurer_belt:"<:Ceinture_cuir:1256965593333108838>",items:$h},Yh=(t,a)=>{const s=t.badge,n=t.isFactionBadge;return s?c.progressiveBadgeTypeGuard(s)?s.emojis[s.isProgressive.findIndex(r=>r===t.rank.id)]:s.emojis:n?Ih.factions[`b_${a}_${t.rank.id}`]:""},Fh=t=>{const[a,s]=t.split("_"),n=Object.values(c.BadgeList).find(r=>r.id===a);if(n)return c.progressiveBadgeTypeGuard(n)?n.emojis[n.isProgressive.findIndex(r=>r===s)]:n.emojis};class Eh extends p.Types.ObjectId{}u.ALL_QUESTS=Wf,u.BET_MAX_VALUE=Dh,u.BET_MIN_VALUE=Ah,u.BackgroundShopItem=sn,u.BoostXpShopItem=nn,u.ChestShopItem=rn,u.CraftShopItem=ln,u.CrewQuests=Ca,u.EDITO_READ=Oh,u.ObjectId=Eh,u.QUEST_ASSET_IMAGES=Nh,u.Quest=o,u.RepairShopItem=on,u.StoreShopItem=dn,u.TitleShopItem=cn,u.UserInventoryQuests=Ba,u.UserMetaQuests=Aa,u.UserOrnamentsQuests=Da,u.UserQuestMetaQuests=Oa,u.banExists=vr,u.banGetters=gr,u.banModel=Ae,u.betModel=Qt,u.connectToServices=Ch,u.createBan=_r,u.createBet=kr,u.createCrew=e0,u.createInvitations=a0,u.createSettings=an,u.createUserCrew=h0,u.createWarn=Rh,u.crewGetters=Xf,u.crewModel=je,u.crewUpdates=Zf,u.deleteBan=br,u.deleteInvitations=s0,u.deleteUserById=wh,u.deleteWarn=Uh,u.emitQuestEvent=Te,u.finWarnById=xh,u.findBan=wr,u.findBetById=Sr,u.findCrewById=Jf,u.findInvitations=t0,u.findSettingsByGuildId=r0,u.findShop=pn,u.findShopByType=c0,u.findUser=qn,u.findUserById=Ka,u.findUserCrew=mn,u.findUserGames=_0,u.findUserInventory=Tt,u.findUserMeta=lt,u.findUserOrnaments=X0,u.findUserQuest=Qa,u.findUserRaid=fh,u.getBadgeEmojisFromId=Fh,u.getQuestBadgeEmojis=Yh,u.invitationsModel=Yt,u.onQuestEvent=Od,u.populateUser=Sh,u.questCanvas=Bh,u.settingsModel=Ft,u.settingsUpdates=n0,u.shopGetters=i0,u.shopModel=Et,u.shopUpdates=o0,u.userCrewExists=p0,u.userCrewModel=He,u.userCrewUpdates=f0,u.userDailyReportModel=Lt,u.userDailyReportUpdates=y0,u.userGamesModel=rt,u.userGamesUpdates=g0,u.userGetters=gh,u.userInventoryGetters=b0,u.userInventoryModel=ot,u.userInventoryUpdates=q0,u.userMetaGetters=D0,u.userMetaModel=be,u.userMetaUpdates=P0,u.userModel=G,u.userOrnamentsModel=dt,u.userOrnamentsUpdates=z0,u.userQuestGetters=Z0,u.userQuestMetaModel=Se,u.userQuestMetaUpdates=dh,u.userQuestModel=ct,u.userQuestUpdates=J0,u.userRaidGetters=ch,u.userRaidModel=ft,u.userRaidUpdates=uh,u.userShopGetters=hh,u.userShopModel=jt,u.userShopUpdates=mh,u.userUpdates=_h,u.warnGetters=kh,u.warnModel=Ge,Object.defineProperty(u,Symbol.toStringTag,{value:"Module"})});
|
|
9
|
+
`+new Error().stack),s=!1}return a.apply(this,arguments)},a)}var is={};function ls(t,a){m.deprecationHandler!=null&&m.deprecationHandler(t,a),is[t]||(rs(a),is[t]=!0)}m.suppressDeprecationWarnings=!1,m.deprecationHandler=null;function ae(t){return typeof Function<"u"&&t instanceof Function||Object.prototype.toString.call(t)==="[object Function]"}function Tr(t){var a,s;for(s in t)S(t,s)&&(a=t[s],ae(a)?this[s]=a:this["_"+s]=a);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function ea(t,a){var s=ge({},t),n;for(n in a)S(a,n)&&(xe(t[n])&&xe(a[n])?(s[n]={},ge(s[n],t[n]),ge(s[n],a[n])):a[n]!=null?s[n]=a[n]:delete s[n]);for(n in t)S(t,n)&&!S(a,n)&&xe(t[n])&&(s[n]=ge({},s[n]));return s}function ta(t){t!=null&&this.set(t)}var aa;Object.keys?aa=Object.keys:aa=function(t){var a,s=[];for(a in t)S(t,a)&&s.push(a);return s};var jr={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function qr(t,a,s){var n=this._calendar[t]||this._calendar.sameElse;return ae(n)?n.call(a,s):n}function se(t,a,s){var n=""+Math.abs(t),r=a-n.length,i=t>=0;return(i?s?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+n}var sa=/(\[[^\[]*\])|(\\)?([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,_t=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,na={},Oe={};function _(t,a,s,n){var r=n;typeof n=="string"&&(r=function(){return this[n]()}),t&&(Oe[t]=r),a&&(Oe[a[0]]=function(){return se(r.apply(this,arguments),a[1],a[2])}),s&&(Oe[s]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function Hr(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function Qr(t){var a=t.match(sa),s,n;for(s=0,n=a.length;s<n;s++)Oe[a[s]]?a[s]=Oe[a[s]]:a[s]=Hr(a[s]);return function(r){var i="",d;for(d=0;d<n;d++)i+=ae(a[d])?a[d].call(r,t):a[d];return i}}function wt(t,a){return t.isValid()?(a=os(a,t.localeData()),na[a]=na[a]||Qr(a),na[a](t)):t.localeData().invalidDate()}function os(t,a){var s=5;function n(r){return a.longDateFormat(r)||r}for(_t.lastIndex=0;s>=0&&_t.test(t);)t=t.replace(_t,n),_t.lastIndex=0,s-=1;return t}var Gr={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 Kr(t){var a=this._longDateFormat[t],s=this._longDateFormat[t.toUpperCase()];return a||!s?a:(this._longDateFormat[t]=s.match(sa).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[t])}var Wr="Invalid date";function Vr(){return this._invalidDate}var zr="%d",Xr=/\d{1,2}/;function Zr(t){return this._ordinal.replace("%d",t)}var Jr={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 ei(t,a,s,n){var r=this._relativeTime[s];return ae(r)?r(t,a,s,n):r.replace(/%d/i,t)}function ti(t,a){var s=this._relativeTime[t>0?"future":"past"];return ae(s)?s(a):s.replace(/%s/i,a)}var ds={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 W(t){return typeof t=="string"?ds[t]||ds[t.toLowerCase()]:void 0}function ra(t){var a={},s,n;for(n in t)S(t,n)&&(s=W(n),s&&(a[s]=t[n]));return a}var ai={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 si(t){var a=[],s;for(s in t)S(t,s)&&a.push({unit:s,priority:ai[s]});return a.sort(function(n,r){return n.priority-r.priority}),a}var cs=/\d/,H=/\d\d/,us=/\d{3}/,ia=/\d{4}/,bt=/[+-]?\d{6}/,C=/\d\d?/,fs=/\d\d\d\d?/,hs=/\d\d\d\d\d\d?/,vt=/\d{1,3}/,la=/\d{1,4}/,Mt=/[+-]?\d{1,6}/,Ae=/\d+/,St=/[+-]?\d+/,ni=/Z|[+-]\d\d:?\d\d/gi,kt=/Z|[+-]\d\d(?::?\d\d)?/gi,ri=/[+-]?\d+(\.\d{1,3})?/,ze=/[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,Ne=/^[1-9]\d?/,oa=/^([1-9]\d|\d)/,xt;xt={};function y(t,a,s){xt[t]=ae(a)?a:function(n,r){return n&&s?s:a}}function ii(t,a){return S(xt,t)?xt[t](a._strict,a._locale):new RegExp(li(t))}function li(t){return le(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(a,s,n,r,i){return s||n||r||i}))}function le(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function V(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function v(t){var a=+t,s=0;return a!==0&&isFinite(a)&&(s=V(a)),s}var da={};function R(t,a){var s,n=a,r;for(typeof t=="string"&&(t=[t]),ie(a)&&(n=function(i,d){d[a]=v(i)}),r=t.length,s=0;s<r;s++)da[t[s]]=n}function Xe(t,a){R(t,function(s,n,r,i){r._w=r._w||{},a(s,r._w,r,i)})}function oi(t,a,s){a!=null&&S(da,t)&&da[t](a,s._a,s,t)}function Rt(t){return t%4===0&&t%100!==0||t%400===0}var Y=0,oe=1,ne=2,N=3,Z=4,de=5,Re=6,di=7,ci=8;_("Y",0,0,function(){var t=this.year();return t<=9999?se(t,4):"+"+t}),_(0,["YY",2],0,function(){return this.year()%100}),_(0,["YYYY",4],0,"year"),_(0,["YYYYY",5],0,"year"),_(0,["YYYYYY",6,!0],0,"year"),y("Y",St),y("YY",C,H),y("YYYY",la,ia),y("YYYYY",Mt,bt),y("YYYYYY",Mt,bt),R(["YYYYY","YYYYYY"],Y),R("YYYY",function(t,a){a[Y]=t.length===2?m.parseTwoDigitYear(t):v(t)}),R("YY",function(t,a){a[Y]=m.parseTwoDigitYear(t)}),R("Y",function(t,a){a[Y]=parseInt(t,10)});function Ze(t){return Rt(t)?366:365}m.parseTwoDigitYear=function(t){return v(t)+(v(t)>68?1900:2e3)};var ps=$e("FullYear",!0);function ui(){return Rt(this.year())}function $e(t,a){return function(s){return s!=null?(ms(this,t,s),m.updateOffset(this,a),this):Je(this,t)}}function Je(t,a){if(!t.isValid())return NaN;var s=t._d,n=t._isUTC;switch(a){case"Milliseconds":return n?s.getUTCMilliseconds():s.getMilliseconds();case"Seconds":return n?s.getUTCSeconds():s.getSeconds();case"Minutes":return n?s.getUTCMinutes():s.getMinutes();case"Hours":return n?s.getUTCHours():s.getHours();case"Date":return n?s.getUTCDate():s.getDate();case"Day":return n?s.getUTCDay():s.getDay();case"Month":return n?s.getUTCMonth():s.getMonth();case"FullYear":return n?s.getUTCFullYear():s.getFullYear();default:return NaN}}function ms(t,a,s){var n,r,i,d,f;if(!(!t.isValid()||isNaN(s))){switch(n=t._d,r=t._isUTC,a){case"Milliseconds":return void(r?n.setUTCMilliseconds(s):n.setMilliseconds(s));case"Seconds":return void(r?n.setUTCSeconds(s):n.setSeconds(s));case"Minutes":return void(r?n.setUTCMinutes(s):n.setMinutes(s));case"Hours":return void(r?n.setUTCHours(s):n.setHours(s));case"Date":return void(r?n.setUTCDate(s):n.setDate(s));case"FullYear":break;default:return}i=s,d=t.month(),f=t.date(),f=f===29&&d===1&&!Rt(i)?28:f,r?n.setUTCFullYear(i,d,f):n.setFullYear(i,d,f)}}function fi(t){return t=W(t),ae(this[t])?this[t]():this}function hi(t,a){if(typeof t=="object"){t=ra(t);var s=si(t),n,r=s.length;for(n=0;n<r;n++)this[s[n].unit](t[s[n].unit])}else if(t=W(t),ae(this[t]))return this[t](a);return this}function pi(t,a){return(t%a+a)%a}var A;Array.prototype.indexOf?A=Array.prototype.indexOf:A=function(t){var a;for(a=0;a<this.length;++a)if(this[a]===t)return a;return-1};function ca(t,a){if(isNaN(t)||isNaN(a))return NaN;var s=pi(a,12);return t+=(a-s)/12,s===1?Rt(t)?29:28:31-s%7%2}_("M",["MM",2],"Mo",function(){return this.month()+1}),_("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),_("MMMM",0,0,function(t){return this.localeData().months(this,t)}),y("M",C,Ne),y("MM",C,H),y("MMM",function(t,a){return a.monthsShortRegex(t)}),y("MMMM",function(t,a){return a.monthsRegex(t)}),R(["M","MM"],function(t,a){a[oe]=v(t)-1}),R(["MMM","MMMM"],function(t,a,s,n){var r=s._locale.monthsParse(t,n,s._strict);r!=null?a[oe]=r:b(s).invalidMonth=t});var mi="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ys="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),gs=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,yi=ze,gi=ze;function _i(t,a){return t?z(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||gs).test(a)?"format":"standalone"][t.month()]:z(this._months)?this._months:this._months.standalone}function wi(t,a){return t?z(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[gs.test(a)?"format":"standalone"][t.month()]:z(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function bi(t,a,s){var n,r,i,d=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)i=te([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(i,"").toLocaleLowerCase();return s?a==="MMM"?(r=A.call(this._shortMonthsParse,d),r!==-1?r:null):(r=A.call(this._longMonthsParse,d),r!==-1?r:null):a==="MMM"?(r=A.call(this._shortMonthsParse,d),r!==-1?r:(r=A.call(this._longMonthsParse,d),r!==-1?r:null)):(r=A.call(this._longMonthsParse,d),r!==-1?r:(r=A.call(this._shortMonthsParse,d),r!==-1?r:null))}function vi(t,a,s){var n,r,i;if(this._monthsParseExact)return bi.call(this,t,a,s);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++)if(r=te([2e3,n]),s&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),!s&&!this._monthsParse[n]&&(i="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[n]=new RegExp(i.replace(".",""),"i")),s&&a==="MMMM"&&this._longMonthsParse[n].test(t)||s&&a==="MMM"&&this._shortMonthsParse[n].test(t)||!s&&this._monthsParse[n].test(t))return n}function _s(t,a){if(!t.isValid())return t;if(typeof a=="string"){if(/^\d+$/.test(a))a=v(a);else if(a=t.localeData().monthsParse(a),!ie(a))return t}var s=a,n=t.date();return n=n<29?n:Math.min(n,ca(t.year(),s)),t._isUTC?t._d.setUTCMonth(s,n):t._d.setMonth(s,n),t}function ws(t){return t!=null?(_s(this,t),m.updateOffset(this,!0),this):Je(this,"Month")}function Mi(){return ca(this.year(),this.month())}function Si(t){return this._monthsParseExact?(S(this,"_monthsRegex")||bs.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(S(this,"_monthsShortRegex")||(this._monthsShortRegex=yi),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function ki(t){return this._monthsParseExact?(S(this,"_monthsRegex")||bs.call(this),t?this._monthsStrictRegex:this._monthsRegex):(S(this,"_monthsRegex")||(this._monthsRegex=gi),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function bs(){function t(g,w){return w.length-g.length}var a=[],s=[],n=[],r,i,d,f;for(r=0;r<12;r++)i=te([2e3,r]),d=le(this.monthsShort(i,"")),f=le(this.months(i,"")),a.push(d),s.push(f),n.push(f),n.push(d);a.sort(t),s.sort(t),n.sort(t),this._monthsRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+a.join("|")+")","i")}function xi(t,a,s,n,r,i,d){var f;return t<100&&t>=0?(f=new Date(t+400,a,s,n,r,i,d),isFinite(f.getFullYear())&&f.setFullYear(t)):f=new Date(t,a,s,n,r,i,d),f}function et(t){var a,s;return t<100&&t>=0?(s=Array.prototype.slice.call(arguments),s[0]=t+400,a=new Date(Date.UTC.apply(null,s)),isFinite(a.getUTCFullYear())&&a.setUTCFullYear(t)):a=new Date(Date.UTC.apply(null,arguments)),a}function Ut(t,a,s){var n=7+a-s,r=(7+et(t,0,n).getUTCDay()-a)%7;return-r+n-1}function vs(t,a,s,n,r){var i=(7+s-n)%7,d=Ut(t,n,r),f=1+7*(a-1)+i+d,g,w;return f<=0?(g=t-1,w=Ze(g)+f):f>Ze(t)?(g=t+1,w=f-Ze(t)):(g=t,w=f),{year:g,dayOfYear:w}}function tt(t,a,s){var n=Ut(t.year(),a,s),r=Math.floor((t.dayOfYear()-n-1)/7)+1,i,d;return r<1?(d=t.year()-1,i=r+ce(d,a,s)):r>ce(t.year(),a,s)?(i=r-ce(t.year(),a,s),d=t.year()+1):(d=t.year(),i=r),{week:i,year:d}}function ce(t,a,s){var n=Ut(t,a,s),r=Ut(t+1,a,s);return(Ze(t)-n+r)/7}_("w",["ww",2],"wo","week"),_("W",["WW",2],"Wo","isoWeek"),y("w",C,Ne),y("ww",C,H),y("W",C,Ne),y("WW",C,H),Xe(["w","ww","W","WW"],function(t,a,s,n){a[n.substr(0,1)]=v(t)});function Ri(t){return tt(t,this._week.dow,this._week.doy).week}var Ui={dow:0,doy:6};function Ci(){return this._week.dow}function Bi(){return this._week.doy}function Di(t){var a=this.localeData().week(this);return t==null?a:this.add((t-a)*7,"d")}function Oi(t){var a=tt(this,1,4).week;return t==null?a:this.add((t-a)*7,"d")}_("d",0,"do","day"),_("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),_("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),_("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),_("e",0,0,"weekday"),_("E",0,0,"isoWeekday"),y("d",C),y("e",C),y("E",C),y("dd",function(t,a){return a.weekdaysMinRegex(t)}),y("ddd",function(t,a){return a.weekdaysShortRegex(t)}),y("dddd",function(t,a){return a.weekdaysRegex(t)}),Xe(["dd","ddd","dddd"],function(t,a,s,n){var r=s._locale.weekdaysParse(t,n,s._strict);r!=null?a.d=r:b(s).invalidWeekday=t}),Xe(["d","e","E"],function(t,a,s,n){a[n]=v(t)});function Ai(t,a){return typeof t!="string"?t:isNaN(t)?(t=a.weekdaysParse(t),typeof t=="number"?t:null):parseInt(t,10)}function Ni(t,a){return typeof t=="string"?a.weekdaysParse(t)%7||7:isNaN(t)?null:t}function ua(t,a){return t.slice(a,7).concat(t.slice(0,a))}var $i="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ms="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ii="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Fi=ze,Yi=ze,Ei=ze;function Li(t,a){var s=z(this._weekdays)?this._weekdays:this._weekdays[t&&t!==!0&&this._weekdays.isFormat.test(a)?"format":"standalone"];return t===!0?ua(s,this._week.dow):t?s[t.day()]:s}function Pi(t){return t===!0?ua(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function Ti(t){return t===!0?ua(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function ji(t,a,s){var n,r,i,d=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)i=te([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(i,"").toLocaleLowerCase();return s?a==="dddd"?(r=A.call(this._weekdaysParse,d),r!==-1?r:null):a==="ddd"?(r=A.call(this._shortWeekdaysParse,d),r!==-1?r:null):(r=A.call(this._minWeekdaysParse,d),r!==-1?r:null):a==="dddd"?(r=A.call(this._weekdaysParse,d),r!==-1||(r=A.call(this._shortWeekdaysParse,d),r!==-1)?r:(r=A.call(this._minWeekdaysParse,d),r!==-1?r:null)):a==="ddd"?(r=A.call(this._shortWeekdaysParse,d),r!==-1||(r=A.call(this._weekdaysParse,d),r!==-1)?r:(r=A.call(this._minWeekdaysParse,d),r!==-1?r:null)):(r=A.call(this._minWeekdaysParse,d),r!==-1||(r=A.call(this._weekdaysParse,d),r!==-1)?r:(r=A.call(this._shortWeekdaysParse,d),r!==-1?r:null))}function qi(t,a,s){var n,r,i;if(this._weekdaysParseExact)return ji.call(this,t,a,s);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++)if(r=te([2e3,1]).day(n),s&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(i="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[n]=new RegExp(i.replace(".",""),"i")),s&&a==="dddd"&&this._fullWeekdaysParse[n].test(t)||s&&a==="ddd"&&this._shortWeekdaysParse[n].test(t)||s&&a==="dd"&&this._minWeekdaysParse[n].test(t)||!s&&this._weekdaysParse[n].test(t))return n}function Hi(t){if(!this.isValid())return t!=null?this:NaN;var a=Je(this,"Day");return t!=null?(t=Ai(t,this.localeData()),this.add(t-a,"d")):a}function Qi(t){if(!this.isValid())return t!=null?this:NaN;var a=(this.day()+7-this.localeData()._week.dow)%7;return t==null?a:this.add(t-a,"d")}function Gi(t){if(!this.isValid())return t!=null?this:NaN;if(t!=null){var a=Ni(t,this.localeData());return this.day(this.day()%7?a:a-7)}else return this.day()||7}function Ki(t){return this._weekdaysParseExact?(S(this,"_weekdaysRegex")||fa.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(S(this,"_weekdaysRegex")||(this._weekdaysRegex=Fi),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Wi(t){return this._weekdaysParseExact?(S(this,"_weekdaysRegex")||fa.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(S(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Yi),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Vi(t){return this._weekdaysParseExact?(S(this,"_weekdaysRegex")||fa.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(S(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ei),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function fa(){function t(U,I){return I.length-U.length}var a=[],s=[],n=[],r=[],i,d,f,g,w;for(i=0;i<7;i++)d=te([2e3,1]).day(i),f=le(this.weekdaysMin(d,"")),g=le(this.weekdaysShort(d,"")),w=le(this.weekdays(d,"")),a.push(f),s.push(g),n.push(w),r.push(f),r.push(g),r.push(w);a.sort(t),s.sort(t),n.sort(t),r.sort(t),this._weekdaysRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function ha(){return this.hours()%12||12}function zi(){return this.hours()||24}_("H",["HH",2],0,"hour"),_("h",["hh",2],0,ha),_("k",["kk",2],0,zi),_("hmm",0,0,function(){return""+ha.apply(this)+se(this.minutes(),2)}),_("hmmss",0,0,function(){return""+ha.apply(this)+se(this.minutes(),2)+se(this.seconds(),2)}),_("Hmm",0,0,function(){return""+this.hours()+se(this.minutes(),2)}),_("Hmmss",0,0,function(){return""+this.hours()+se(this.minutes(),2)+se(this.seconds(),2)});function Ss(t,a){_(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),a)})}Ss("a",!0),Ss("A",!1);function ks(t,a){return a._meridiemParse}y("a",ks),y("A",ks),y("H",C,oa),y("h",C,Ne),y("k",C,Ne),y("HH",C,H),y("hh",C,H),y("kk",C,H),y("hmm",fs),y("hmmss",hs),y("Hmm",fs),y("Hmmss",hs),R(["H","HH"],N),R(["k","kk"],function(t,a,s){var n=v(t);a[N]=n===24?0:n}),R(["a","A"],function(t,a,s){s._isPm=s._locale.isPM(t),s._meridiem=t}),R(["h","hh"],function(t,a,s){a[N]=v(t),b(s).bigHour=!0}),R("hmm",function(t,a,s){var n=t.length-2;a[N]=v(t.substr(0,n)),a[Z]=v(t.substr(n)),b(s).bigHour=!0}),R("hmmss",function(t,a,s){var n=t.length-4,r=t.length-2;a[N]=v(t.substr(0,n)),a[Z]=v(t.substr(n,2)),a[de]=v(t.substr(r)),b(s).bigHour=!0}),R("Hmm",function(t,a,s){var n=t.length-2;a[N]=v(t.substr(0,n)),a[Z]=v(t.substr(n))}),R("Hmmss",function(t,a,s){var n=t.length-4,r=t.length-2;a[N]=v(t.substr(0,n)),a[Z]=v(t.substr(n,2)),a[de]=v(t.substr(r))});function Xi(t){return(t+"").toLowerCase().charAt(0)==="p"}var Zi=/[ap]\.?m?\.?/i,Ji=$e("Hours",!0);function el(t,a,s){return t>11?s?"pm":"PM":s?"am":"AM"}var xs={calendar:jr,longDateFormat:Gr,invalidDate:Wr,ordinal:zr,dayOfMonthOrdinalParse:Xr,relativeTime:Jr,months:mi,monthsShort:ys,week:Ui,weekdays:$i,weekdaysMin:Ii,weekdaysShort:Ms,meridiemParse:Zi},O={},at={},st;function tl(t,a){var s,n=Math.min(t.length,a.length);for(s=0;s<n;s+=1)if(t[s]!==a[s])return s;return n}function Rs(t){return t&&t.toLowerCase().replace("_","-")}function al(t){for(var a=0,s,n,r,i;a<t.length;){for(i=Rs(t[a]).split("-"),s=i.length,n=Rs(t[a+1]),n=n?n.split("-"):null;s>0;){if(r=Ct(i.slice(0,s).join("-")),r)return r;if(n&&n.length>=s&&tl(i,n)>=s-1)break;s--}a++}return st}function sl(t){return!!(t&&t.match("^[^/\\\\]*$"))}function Ct(t){var a=null,s;if(O[t]===void 0&&typeof module<"u"&&module&&module.exports&&sl(t))try{a=st._abbr,s=require,s("./locale/"+t),_e(a)}catch{O[t]=null}return O[t]}function _e(t,a){var s;return t&&(T(a)?s=ue(t):s=pa(t,a),s?st=s:typeof console<"u"&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),st._abbr}function pa(t,a){if(a!==null){var s,n=xs;if(a.abbr=t,O[t]!=null)ls("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=O[t]._config;else if(a.parentLocale!=null)if(O[a.parentLocale]!=null)n=O[a.parentLocale]._config;else if(s=Ct(a.parentLocale),s!=null)n=s._config;else return at[a.parentLocale]||(at[a.parentLocale]=[]),at[a.parentLocale].push({name:t,config:a}),null;return O[t]=new ta(ea(n,a)),at[t]&&at[t].forEach(function(r){pa(r.name,r.config)}),_e(t),O[t]}else return delete O[t],null}function nl(t,a){if(a!=null){var s,n,r=xs;O[t]!=null&&O[t].parentLocale!=null?O[t].set(ea(O[t]._config,a)):(n=Ct(t),n!=null&&(r=n._config),a=ea(r,a),n==null&&(a.abbr=t),s=new ta(a),s.parentLocale=O[t],O[t]=s),_e(t)}else O[t]!=null&&(O[t].parentLocale!=null?(O[t]=O[t].parentLocale,t===_e()&&_e(t)):O[t]!=null&&delete O[t]);return O[t]}function ue(t){var a;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return st;if(!z(t)){if(a=Ct(t),a)return a;t=[t]}return al(t)}function rl(){return aa(O)}function ma(t){var a,s=t._a;return s&&b(t).overflow===-2&&(a=s[oe]<0||s[oe]>11?oe:s[ne]<1||s[ne]>ca(s[Y],s[oe])?ne:s[N]<0||s[N]>24||s[N]===24&&(s[Z]!==0||s[de]!==0||s[Re]!==0)?N:s[Z]<0||s[Z]>59?Z:s[de]<0||s[de]>59?de:s[Re]<0||s[Re]>999?Re:-1,b(t)._overflowDayOfYear&&(a<Y||a>ne)&&(a=ne),b(t)._overflowWeeks&&a===-1&&(a=di),b(t)._overflowWeekday&&a===-1&&(a=ci),b(t).overflow=a),t}var il=/^\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)?)?$/,ll=/^\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)?)?$/,ol=/Z|[+-]\d\d(?::?\d\d)?/,Bt=[["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]],ya=[["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/]],dl=/^\/?Date\((-?\d+)/i,cl=/^(?:(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}))$/,ul={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Us(t){var a,s,n=t._i,r=il.exec(n)||ll.exec(n),i,d,f,g,w=Bt.length,U=ya.length;if(r){for(b(t).iso=!0,a=0,s=w;a<s;a++)if(Bt[a][1].exec(r[1])){d=Bt[a][0],i=Bt[a][2]!==!1;break}if(d==null){t._isValid=!1;return}if(r[3]){for(a=0,s=U;a<s;a++)if(ya[a][1].exec(r[3])){f=(r[2]||" ")+ya[a][0];break}if(f==null){t._isValid=!1;return}}if(!i&&f!=null){t._isValid=!1;return}if(r[4])if(ol.exec(r[4]))g="Z";else{t._isValid=!1;return}t._f=d+(f||"")+(g||""),_a(t)}else t._isValid=!1}function fl(t,a,s,n,r,i){var d=[hl(t),ys.indexOf(a),parseInt(s,10),parseInt(n,10),parseInt(r,10)];return i&&d.push(parseInt(i,10)),d}function hl(t){var a=parseInt(t,10);return a<=49?2e3+a:a<=999?1900+a:a}function pl(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function ml(t,a,s){if(t){var n=Ms.indexOf(t),r=new Date(a[0],a[1],a[2]).getDay();if(n!==r)return b(s).weekdayMismatch=!0,s._isValid=!1,!1}return!0}function yl(t,a,s){if(t)return ul[t];if(a)return 0;var n=parseInt(s,10),r=n%100,i=(n-r)/100;return i*60+r}function Cs(t){var a=cl.exec(pl(t._i)),s;if(a){if(s=fl(a[4],a[3],a[2],a[5],a[6],a[7]),!ml(a[1],s,t))return;t._a=s,t._tzm=yl(a[8],a[9],a[10]),t._d=et.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),b(t).rfc2822=!0}else t._isValid=!1}function gl(t){var a=dl.exec(t._i);if(a!==null){t._d=new Date(+a[1]);return}if(Us(t),t._isValid===!1)delete t._isValid;else return;if(Cs(t),t._isValid===!1)delete t._isValid;else return;t._strict?t._isValid=!1:m.createFromInputFallback(t)}m.createFromInputFallback=K("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))});function Ie(t,a,s){return t??a??s}function _l(t){var a=new Date(m.now());return t._useUTC?[a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()]:[a.getFullYear(),a.getMonth(),a.getDate()]}function ga(t){var a,s,n=[],r,i,d;if(!t._d){for(r=_l(t),t._w&&t._a[ne]==null&&t._a[oe]==null&&wl(t),t._dayOfYear!=null&&(d=Ie(t._a[Y],r[Y]),(t._dayOfYear>Ze(d)||t._dayOfYear===0)&&(b(t)._overflowDayOfYear=!0),s=et(d,0,t._dayOfYear),t._a[oe]=s.getUTCMonth(),t._a[ne]=s.getUTCDate()),a=0;a<3&&t._a[a]==null;++a)t._a[a]=n[a]=r[a];for(;a<7;a++)t._a[a]=n[a]=t._a[a]==null?a===2?1:0:t._a[a];t._a[N]===24&&t._a[Z]===0&&t._a[de]===0&&t._a[Re]===0&&(t._nextDay=!0,t._a[N]=0),t._d=(t._useUTC?et:xi).apply(null,n),i=t._useUTC?t._d.getUTCDay():t._d.getDay(),t._tzm!=null&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[N]=24),t._w&&typeof t._w.d<"u"&&t._w.d!==i&&(b(t).weekdayMismatch=!0)}}function wl(t){var a,s,n,r,i,d,f,g,w;a=t._w,a.GG!=null||a.W!=null||a.E!=null?(i=1,d=4,s=Ie(a.GG,t._a[Y],tt(B(),1,4).year),n=Ie(a.W,1),r=Ie(a.E,1),(r<1||r>7)&&(g=!0)):(i=t._locale._week.dow,d=t._locale._week.doy,w=tt(B(),i,d),s=Ie(a.gg,t._a[Y],w.year),n=Ie(a.w,w.week),a.d!=null?(r=a.d,(r<0||r>6)&&(g=!0)):a.e!=null?(r=a.e+i,(a.e<0||a.e>6)&&(g=!0)):r=i),n<1||n>ce(s,i,d)?b(t)._overflowWeeks=!0:g!=null?b(t)._overflowWeekday=!0:(f=vs(s,n,r,i,d),t._a[Y]=f.year,t._dayOfYear=f.dayOfYear)}m.ISO_8601=function(){},m.RFC_2822=function(){};function _a(t){if(t._f===m.ISO_8601){Us(t);return}if(t._f===m.RFC_2822){Cs(t);return}t._a=[],b(t).empty=!0;var a=""+t._i,s,n,r,i,d,f=a.length,g=0,w,U;for(r=os(t._f,t._locale).match(sa)||[],U=r.length,s=0;s<U;s++)i=r[s],n=(a.match(ii(i,t))||[])[0],n&&(d=a.substr(0,a.indexOf(n)),d.length>0&&b(t).unusedInput.push(d),a=a.slice(a.indexOf(n)+n.length),g+=n.length),Oe[i]?(n?b(t).empty=!1:b(t).unusedTokens.push(i),oi(i,n,t)):t._strict&&!n&&b(t).unusedTokens.push(i);b(t).charsLeftOver=f-g,a.length>0&&b(t).unusedInput.push(a),t._a[N]<=12&&b(t).bigHour===!0&&t._a[N]>0&&(b(t).bigHour=void 0),b(t).parsedDateParts=t._a.slice(0),b(t).meridiem=t._meridiem,t._a[N]=bl(t._locale,t._a[N],t._meridiem),w=b(t).era,w!==null&&(t._a[Y]=t._locale.erasConvertYear(w,t._a[Y])),ga(t),ma(t)}function bl(t,a,s){var n;return s==null?a:t.meridiemHour!=null?t.meridiemHour(a,s):(t.isPM!=null&&(n=t.isPM(s),n&&a<12&&(a+=12),!n&&a===12&&(a=0)),a)}function vl(t){var a,s,n,r,i,d,f=!1,g=t._f.length;if(g===0){b(t).invalidFormat=!0,t._d=new Date(NaN);return}for(r=0;r<g;r++)i=0,d=!1,a=Jt({},t),t._useUTC!=null&&(a._useUTC=t._useUTC),a._f=t._f[r],_a(a),Xt(a)&&(d=!0),i+=b(a).charsLeftOver,i+=b(a).unusedTokens.length*10,b(a).score=i,f?i<n&&(n=i,s=a):(n==null||i<n||d)&&(n=i,s=a,d&&(f=!0));ge(t,s||a)}function Ml(t){if(!t._d){var a=ra(t._i),s=a.day===void 0?a.date:a.day;t._a=ss([a.year,a.month,s,a.hour,a.minute,a.second,a.millisecond],function(n){return n&&parseInt(n,10)}),ga(t)}}function Sl(t){var a=new Ve(ma(Bs(t)));return a._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function Bs(t){var a=t._i,s=t._f;return t._locale=t._locale||ue(t._l),a===null||s===void 0&&a===""?gt({nullInput:!0}):(typeof a=="string"&&(t._i=a=t._locale.preparse(a)),X(a)?new Ve(ma(a)):(We(a)?t._d=a:z(s)?vl(t):s?_a(t):kl(t),Xt(t)||(t._d=null),t))}function kl(t){var a=t._i;T(a)?t._d=new Date(m.now()):We(a)?t._d=new Date(a.valueOf()):typeof a=="string"?gl(t):z(a)?(t._a=ss(a.slice(0),function(s){return parseInt(s,10)}),ga(t)):xe(a)?Ml(t):ie(a)?t._d=new Date(a):m.createFromInputFallback(t)}function Ds(t,a,s,n,r){var i={};return(a===!0||a===!1)&&(n=a,a=void 0),(s===!0||s===!1)&&(n=s,s=void 0),(xe(t)&&Vt(t)||z(t)&&t.length===0)&&(t=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=r,i._l=s,i._i=t,i._f=a,i._strict=n,Sl(i)}function B(t,a,s,n){return Ds(t,a,s,n,!1)}var xl=K("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=B.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:gt()}),Rl=K("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=B.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:gt()});function Os(t,a){var s,n;if(a.length===1&&z(a[0])&&(a=a[0]),!a.length)return B();for(s=a[0],n=1;n<a.length;++n)(!a[n].isValid()||a[n][t](s))&&(s=a[n]);return s}function Ul(){var t=[].slice.call(arguments,0);return Os("isBefore",t)}function Cl(){var t=[].slice.call(arguments,0);return Os("isAfter",t)}var Bl=function(){return Date.now?Date.now():+new Date},nt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Dl(t){var a,s=!1,n,r=nt.length;for(a in t)if(S(t,a)&&!(A.call(nt,a)!==-1&&(t[a]==null||!isNaN(t[a]))))return!1;for(n=0;n<r;++n)if(t[nt[n]]){if(s)return!1;parseFloat(t[nt[n]])!==v(t[nt[n]])&&(s=!0)}return!0}function Ol(){return this._isValid}function Al(){return J(NaN)}function Dt(t){var a=ra(t),s=a.year||0,n=a.quarter||0,r=a.month||0,i=a.week||a.isoWeek||0,d=a.day||0,f=a.hour||0,g=a.minute||0,w=a.second||0,U=a.millisecond||0;this._isValid=Dl(a),this._milliseconds=+U+w*1e3+g*6e4+f*1e3*60*60,this._days=+d+i*7,this._months=+r+n*3+s*12,this._data={},this._locale=ue(),this._bubble()}function Ot(t){return t instanceof Dt}function wa(t){return t<0?Math.round(-1*t)*-1:Math.round(t)}function Nl(t,a,s){var n=Math.min(t.length,a.length),r=Math.abs(t.length-a.length),i=0,d;for(d=0;d<n;d++)v(t[d])!==v(a[d])&&i++;return i+r}function As(t,a){_(t,0,0,function(){var s=this.utcOffset(),n="+";return s<0&&(s=-s,n="-"),n+se(~~(s/60),2)+a+se(~~s%60,2)})}As("Z",":"),As("ZZ",""),y("Z",kt),y("ZZ",kt),R(["Z","ZZ"],function(t,a,s){s._useUTC=!0,s._tzm=ba(kt,t)});var $l=/([\+\-]|\d\d)/gi;function ba(t,a){var s=(a||"").match(t),n,r,i;return s===null?null:(n=s[s.length-1]||[],r=(n+"").match($l)||["-",0,0],i=+(r[1]*60)+v(r[2]),i===0?0:r[0]==="+"?i:-i)}function va(t,a){var s,n;return a._isUTC?(s=a.clone(),n=(X(t)||We(t)?t.valueOf():B(t).valueOf())-s.valueOf(),s._d.setTime(s._d.valueOf()+n),m.updateOffset(s,!1),s):B(t).local()}function Ma(t){return-Math.round(t._d.getTimezoneOffset())}m.updateOffset=function(){};function Il(t,a,s){var n=this._offset||0,r;if(!this.isValid())return t!=null?this:NaN;if(t!=null){if(typeof t=="string"){if(t=ba(kt,t),t===null)return this}else Math.abs(t)<16&&!s&&(t=t*60);return!this._isUTC&&a&&(r=Ma(this)),this._offset=t,this._isUTC=!0,r!=null&&this.add(r,"m"),n!==t&&(!a||this._changeInProgress?Fs(this,J(t-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,m.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?n:Ma(this)}function Fl(t,a){return t!=null?(typeof t!="string"&&(t=-t),this.utcOffset(t,a),this):-this.utcOffset()}function Yl(t){return this.utcOffset(0,t)}function El(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Ma(this),"m")),this}function Ll(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var t=ba(ni,this._i);t!=null?this.utcOffset(t):this.utcOffset(0,!0)}return this}function Pl(t){return this.isValid()?(t=t?B(t).utcOffset():0,(this.utcOffset()-t)%60===0):!1}function Tl(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function jl(){if(!T(this._isDSTShifted))return this._isDSTShifted;var t={},a;return Jt(t,this),t=Bs(t),t._a?(a=t._isUTC?te(t._a):B(t._a),this._isDSTShifted=this.isValid()&&Nl(t._a,a.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function ql(){return this.isValid()?!this._isUTC:!1}function Hl(){return this.isValid()?this._isUTC:!1}function Ns(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Ql=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Gl=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function J(t,a){var s=t,n=null,r,i,d;return Ot(t)?s={ms:t._milliseconds,d:t._days,M:t._months}:ie(t)||!isNaN(+t)?(s={},a?s[a]=+t:s.milliseconds=+t):(n=Ql.exec(t))?(r=n[1]==="-"?-1:1,s={y:0,d:v(n[ne])*r,h:v(n[N])*r,m:v(n[Z])*r,s:v(n[de])*r,ms:v(wa(n[Re]*1e3))*r}):(n=Gl.exec(t))?(r=n[1]==="-"?-1:1,s={y:Ue(n[2],r),M:Ue(n[3],r),w:Ue(n[4],r),d:Ue(n[5],r),h:Ue(n[6],r),m:Ue(n[7],r),s:Ue(n[8],r)}):s==null?s={}:typeof s=="object"&&("from"in s||"to"in s)&&(d=Kl(B(s.from),B(s.to)),s={},s.ms=d.milliseconds,s.M=d.months),i=new Dt(s),Ot(t)&&S(t,"_locale")&&(i._locale=t._locale),Ot(t)&&S(t,"_isValid")&&(i._isValid=t._isValid),i}J.fn=Dt.prototype,J.invalid=Al;function Ue(t,a){var s=t&&parseFloat(t.replace(",","."));return(isNaN(s)?0:s)*a}function $s(t,a){var s={};return s.months=a.month()-t.month()+(a.year()-t.year())*12,t.clone().add(s.months,"M").isAfter(a)&&--s.months,s.milliseconds=+a-+t.clone().add(s.months,"M"),s}function Kl(t,a){var s;return t.isValid()&&a.isValid()?(a=va(a,t),t.isBefore(a)?s=$s(t,a):(s=$s(a,t),s.milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0}}function Is(t,a){return function(s,n){var r,i;return n!==null&&!isNaN(+n)&&(ls(a,"moment()."+a+"(period, number) is deprecated. Please use moment()."+a+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=s,s=n,n=i),r=J(s,n),Fs(this,r,t),this}}function Fs(t,a,s,n){var r=a._milliseconds,i=wa(a._days),d=wa(a._months);t.isValid()&&(n=n??!0,d&&_s(t,Je(t,"Month")+d*s),i&&ms(t,"Date",Je(t,"Date")+i*s),r&&t._d.setTime(t._d.valueOf()+r*s),n&&m.updateOffset(t,i||d))}var Wl=Is(1,"add"),Vl=Is(-1,"subtract");function Ys(t){return typeof t=="string"||t instanceof String}function zl(t){return X(t)||We(t)||Ys(t)||ie(t)||Zl(t)||Xl(t)||t===null||t===void 0}function Xl(t){var a=xe(t)&&!Vt(t),s=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],r,i,d=n.length;for(r=0;r<d;r+=1)i=n[r],s=s||S(t,i);return a&&s}function Zl(t){var a=z(t),s=!1;return a&&(s=t.filter(function(n){return!ie(n)&&Ys(t)}).length===0),a&&s}function Jl(t){var a=xe(t)&&!Vt(t),s=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],r,i;for(r=0;r<n.length;r+=1)i=n[r],s=s||S(t,i);return a&&s}function eo(t,a){var s=t.diff(a,"days",!0);return s<-6?"sameElse":s<-1?"lastWeek":s<0?"lastDay":s<1?"sameDay":s<2?"nextDay":s<7?"nextWeek":"sameElse"}function to(t,a){arguments.length===1&&(arguments[0]?zl(arguments[0])?(t=arguments[0],a=void 0):Jl(arguments[0])&&(a=arguments[0],t=void 0):(t=void 0,a=void 0));var s=t||B(),n=va(s,this).startOf("day"),r=m.calendarFormat(this,n)||"sameElse",i=a&&(ae(a[r])?a[r].call(this,s):a[r]);return this.format(i||this.localeData().calendar(r,this,B(s)))}function ao(){return new Ve(this)}function so(t,a){var s=X(t)?t:B(t);return this.isValid()&&s.isValid()?(a=W(a)||"millisecond",a==="millisecond"?this.valueOf()>s.valueOf():s.valueOf()<this.clone().startOf(a).valueOf()):!1}function no(t,a){var s=X(t)?t:B(t);return this.isValid()&&s.isValid()?(a=W(a)||"millisecond",a==="millisecond"?this.valueOf()<s.valueOf():this.clone().endOf(a).valueOf()<s.valueOf()):!1}function ro(t,a,s,n){var r=X(t)?t:B(t),i=X(a)?a:B(a);return this.isValid()&&r.isValid()&&i.isValid()?(n=n||"()",(n[0]==="("?this.isAfter(r,s):!this.isBefore(r,s))&&(n[1]===")"?this.isBefore(i,s):!this.isAfter(i,s))):!1}function io(t,a){var s=X(t)?t:B(t),n;return this.isValid()&&s.isValid()?(a=W(a)||"millisecond",a==="millisecond"?this.valueOf()===s.valueOf():(n=s.valueOf(),this.clone().startOf(a).valueOf()<=n&&n<=this.clone().endOf(a).valueOf())):!1}function lo(t,a){return this.isSame(t,a)||this.isAfter(t,a)}function oo(t,a){return this.isSame(t,a)||this.isBefore(t,a)}function co(t,a,s){var n,r,i;if(!this.isValid())return NaN;if(n=va(t,this),!n.isValid())return NaN;switch(r=(n.utcOffset()-this.utcOffset())*6e4,a=W(a),a){case"year":i=At(this,n)/12;break;case"month":i=At(this,n);break;case"quarter":i=At(this,n)/3;break;case"second":i=(this-n)/1e3;break;case"minute":i=(this-n)/6e4;break;case"hour":i=(this-n)/36e5;break;case"day":i=(this-n-r)/864e5;break;case"week":i=(this-n-r)/6048e5;break;default:i=this-n}return s?i:V(i)}function At(t,a){if(t.date()<a.date())return-At(a,t);var s=(a.year()-t.year())*12+(a.month()-t.month()),n=t.clone().add(s,"months"),r,i;return a-n<0?(r=t.clone().add(s-1,"months"),i=(a-n)/(n-r)):(r=t.clone().add(s+1,"months"),i=(a-n)/(r-n)),-(s+i)||0}m.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",m.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function uo(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function fo(t){if(!this.isValid())return null;var a=t!==!0,s=a?this.clone().utc():this;return s.year()<0||s.year()>9999?wt(s,a?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ae(Date.prototype.toISOString)?a?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",wt(s,"Z")):wt(s,a?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ho(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",a="",s,n,r,i;return this.isLocal()||(t=this.utcOffset()===0?"moment.utc":"moment.parseZone",a="Z"),s="["+t+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",i=a+'[")]',this.format(s+n+r+i)}function po(t){t||(t=this.isUtc()?m.defaultFormatUtc:m.defaultFormat);var a=wt(this,t);return this.localeData().postformat(a)}function mo(t,a){return this.isValid()&&(X(t)&&t.isValid()||B(t).isValid())?J({to:this,from:t}).locale(this.locale()).humanize(!a):this.localeData().invalidDate()}function yo(t){return this.from(B(),t)}function go(t,a){return this.isValid()&&(X(t)&&t.isValid()||B(t).isValid())?J({from:this,to:t}).locale(this.locale()).humanize(!a):this.localeData().invalidDate()}function _o(t){return this.to(B(),t)}function Es(t){var a;return t===void 0?this._locale._abbr:(a=ue(t),a!=null&&(this._locale=a),this)}var Ls=K("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return t===void 0?this.localeData():this.locale(t)});function Ps(){return this._locale}var Nt=1e3,Fe=60*Nt,$t=60*Fe,Ts=(365*400+97)*24*$t;function Ye(t,a){return(t%a+a)%a}function js(t,a,s){return t<100&&t>=0?new Date(t+400,a,s)-Ts:new Date(t,a,s).valueOf()}function qs(t,a,s){return t<100&&t>=0?Date.UTC(t+400,a,s)-Ts:Date.UTC(t,a,s)}function wo(t){var a,s;if(t=W(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?qs:js,t){case"year":a=s(this.year(),0,1);break;case"quarter":a=s(this.year(),this.month()-this.month()%3,1);break;case"month":a=s(this.year(),this.month(),1);break;case"week":a=s(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":a=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":a=s(this.year(),this.month(),this.date());break;case"hour":a=this._d.valueOf(),a-=Ye(a+(this._isUTC?0:this.utcOffset()*Fe),$t);break;case"minute":a=this._d.valueOf(),a-=Ye(a,Fe);break;case"second":a=this._d.valueOf(),a-=Ye(a,Nt);break}return this._d.setTime(a),m.updateOffset(this,!0),this}function bo(t){var a,s;if(t=W(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?qs:js,t){case"year":a=s(this.year()+1,0,1)-1;break;case"quarter":a=s(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":a=s(this.year(),this.month()+1,1)-1;break;case"week":a=s(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":a=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":a=s(this.year(),this.month(),this.date()+1)-1;break;case"hour":a=this._d.valueOf(),a+=$t-Ye(a+(this._isUTC?0:this.utcOffset()*Fe),$t)-1;break;case"minute":a=this._d.valueOf(),a+=Fe-Ye(a,Fe)-1;break;case"second":a=this._d.valueOf(),a+=Nt-Ye(a,Nt)-1;break}return this._d.setTime(a),m.updateOffset(this,!0),this}function vo(){return this._d.valueOf()-(this._offset||0)*6e4}function Mo(){return Math.floor(this.valueOf()/1e3)}function So(){return new Date(this.valueOf())}function ko(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function xo(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function Ro(){return this.isValid()?this.toISOString():null}function Uo(){return Xt(this)}function Co(){return ge({},b(this))}function Bo(){return b(this).overflow}function Do(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}_("N",0,0,"eraAbbr"),_("NN",0,0,"eraAbbr"),_("NNN",0,0,"eraAbbr"),_("NNNN",0,0,"eraName"),_("NNNNN",0,0,"eraNarrow"),_("y",["y",1],"yo","eraYear"),_("y",["yy",2],0,"eraYear"),_("y",["yyy",3],0,"eraYear"),_("y",["yyyy",4],0,"eraYear"),y("N",Sa),y("NN",Sa),y("NNN",Sa),y("NNNN",To),y("NNNNN",jo),R(["N","NN","NNN","NNNN","NNNNN"],function(t,a,s,n){var r=s._locale.erasParse(t,n,s._strict);r?b(s).era=r:b(s).invalidEra=t}),y("y",Ae),y("yy",Ae),y("yyy",Ae),y("yyyy",Ae),y("yo",qo),R(["y","yy","yyy","yyyy"],Y),R(["yo"],function(t,a,s,n){var r;s._locale._eraYearOrdinalRegex&&(r=t.match(s._locale._eraYearOrdinalRegex)),s._locale.eraYearOrdinalParse?a[Y]=s._locale.eraYearOrdinalParse(t,r):a[Y]=parseInt(t,10)});function Oo(t,a){var s,n,r,i=this._eras||ue("en")._eras;for(s=0,n=i.length;s<n;++s){switch(typeof i[s].since){case"string":r=m(i[s].since).startOf("day"),i[s].since=r.valueOf();break}switch(typeof i[s].until){case"undefined":i[s].until=1/0;break;case"string":r=m(i[s].until).startOf("day").valueOf(),i[s].until=r.valueOf();break}}return i}function Ao(t,a,s){var n,r,i=this.eras(),d,f,g;for(t=t.toUpperCase(),n=0,r=i.length;n<r;++n)if(d=i[n].name.toUpperCase(),f=i[n].abbr.toUpperCase(),g=i[n].narrow.toUpperCase(),s)switch(a){case"N":case"NN":case"NNN":if(f===t)return i[n];break;case"NNNN":if(d===t)return i[n];break;case"NNNNN":if(g===t)return i[n];break}else if([d,f,g].indexOf(t)>=0)return i[n]}function No(t,a){var s=t.since<=t.until?1:-1;return a===void 0?m(t.since).year():m(t.since).year()+(a-t.offset)*s}function $o(){var t,a,s,n=this.localeData().eras();for(t=0,a=n.length;t<a;++t)if(s=this.clone().startOf("day").valueOf(),n[t].since<=s&&s<=n[t].until||n[t].until<=s&&s<=n[t].since)return n[t].name;return""}function Io(){var t,a,s,n=this.localeData().eras();for(t=0,a=n.length;t<a;++t)if(s=this.clone().startOf("day").valueOf(),n[t].since<=s&&s<=n[t].until||n[t].until<=s&&s<=n[t].since)return n[t].narrow;return""}function Fo(){var t,a,s,n=this.localeData().eras();for(t=0,a=n.length;t<a;++t)if(s=this.clone().startOf("day").valueOf(),n[t].since<=s&&s<=n[t].until||n[t].until<=s&&s<=n[t].since)return n[t].abbr;return""}function Yo(){var t,a,s,n,r=this.localeData().eras();for(t=0,a=r.length;t<a;++t)if(s=r[t].since<=r[t].until?1:-1,n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until||r[t].until<=n&&n<=r[t].since)return(this.year()-m(r[t].since).year())*s+r[t].offset;return this.year()}function Eo(t){return S(this,"_erasNameRegex")||ka.call(this),t?this._erasNameRegex:this._erasRegex}function Lo(t){return S(this,"_erasAbbrRegex")||ka.call(this),t?this._erasAbbrRegex:this._erasRegex}function Po(t){return S(this,"_erasNarrowRegex")||ka.call(this),t?this._erasNarrowRegex:this._erasRegex}function Sa(t,a){return a.erasAbbrRegex(t)}function To(t,a){return a.erasNameRegex(t)}function jo(t,a){return a.erasNarrowRegex(t)}function qo(t,a){return a._eraYearOrdinalRegex||Ae}function ka(){var t=[],a=[],s=[],n=[],r,i,d,f,g,w=this.eras();for(r=0,i=w.length;r<i;++r)d=le(w[r].name),f=le(w[r].abbr),g=le(w[r].narrow),a.push(d),t.push(f),s.push(g),n.push(d),n.push(f),n.push(g);this._erasRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+a.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+t.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}_(0,["gg",2],0,function(){return this.weekYear()%100}),_(0,["GG",2],0,function(){return this.isoWeekYear()%100});function It(t,a){_(0,[t,t.length],0,a)}It("gggg","weekYear"),It("ggggg","weekYear"),It("GGGG","isoWeekYear"),It("GGGGG","isoWeekYear"),y("G",St),y("g",St),y("GG",C,H),y("gg",C,H),y("GGGG",la,ia),y("gggg",la,ia),y("GGGGG",Mt,bt),y("ggggg",Mt,bt),Xe(["gggg","ggggg","GGGG","GGGGG"],function(t,a,s,n){a[n.substr(0,2)]=v(t)}),Xe(["gg","GG"],function(t,a,s,n){a[n]=m.parseTwoDigitYear(t)});function Ho(t){return Hs.call(this,t,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Qo(t){return Hs.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Go(){return ce(this.year(),1,4)}function Ko(){return ce(this.isoWeekYear(),1,4)}function Wo(){var t=this.localeData()._week;return ce(this.year(),t.dow,t.doy)}function Vo(){var t=this.localeData()._week;return ce(this.weekYear(),t.dow,t.doy)}function Hs(t,a,s,n,r){var i;return t==null?tt(this,n,r).year:(i=ce(t,n,r),a>i&&(a=i),zo.call(this,t,a,s,n,r))}function zo(t,a,s,n,r){var i=vs(t,a,s,n,r),d=et(i.year,0,i.dayOfYear);return this.year(d.getUTCFullYear()),this.month(d.getUTCMonth()),this.date(d.getUTCDate()),this}_("Q",0,"Qo","quarter"),y("Q",cs),R("Q",function(t,a){a[oe]=(v(t)-1)*3});function Xo(t){return t==null?Math.ceil((this.month()+1)/3):this.month((t-1)*3+this.month()%3)}_("D",["DD",2],"Do","date"),y("D",C,Ne),y("DD",C,H),y("Do",function(t,a){return t?a._dayOfMonthOrdinalParse||a._ordinalParse:a._dayOfMonthOrdinalParseLenient}),R(["D","DD"],ne),R("Do",function(t,a){a[ne]=v(t.match(C)[0])});var Qs=$e("Date",!0);_("DDD",["DDDD",3],"DDDo","dayOfYear"),y("DDD",vt),y("DDDD",us),R(["DDD","DDDD"],function(t,a,s){s._dayOfYear=v(t)});function Zo(t){var a=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return t==null?a:this.add(t-a,"d")}_("m",["mm",2],0,"minute"),y("m",C,oa),y("mm",C,H),R(["m","mm"],Z);var Jo=$e("Minutes",!1);_("s",["ss",2],0,"second"),y("s",C,oa),y("ss",C,H),R(["s","ss"],de);var ed=$e("Seconds",!1);_("S",0,0,function(){return~~(this.millisecond()/100)}),_(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),_(0,["SSS",3],0,"millisecond"),_(0,["SSSS",4],0,function(){return this.millisecond()*10}),_(0,["SSSSS",5],0,function(){return this.millisecond()*100}),_(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),_(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),_(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),_(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),y("S",vt,cs),y("SS",vt,H),y("SSS",vt,us);var we,Gs;for(we="SSSS";we.length<=9;we+="S")y(we,Ae);function td(t,a){a[Re]=v(("0."+t)*1e3)}for(we="S";we.length<=9;we+="S")R(we,td);Gs=$e("Milliseconds",!1),_("z",0,0,"zoneAbbr"),_("zz",0,0,"zoneName");function ad(){return this._isUTC?"UTC":""}function sd(){return this._isUTC?"Coordinated Universal Time":""}var h=Ve.prototype;h.add=Wl,h.calendar=to,h.clone=ao,h.diff=co,h.endOf=bo,h.format=po,h.from=mo,h.fromNow=yo,h.to=go,h.toNow=_o,h.get=fi,h.invalidAt=Bo,h.isAfter=so,h.isBefore=no,h.isBetween=ro,h.isSame=io,h.isSameOrAfter=lo,h.isSameOrBefore=oo,h.isValid=Uo,h.lang=Ls,h.locale=Es,h.localeData=Ps,h.max=Rl,h.min=xl,h.parsingFlags=Co,h.set=hi,h.startOf=wo,h.subtract=Vl,h.toArray=ko,h.toObject=xo,h.toDate=So,h.toISOString=fo,h.inspect=ho,typeof Symbol<"u"&&Symbol.for!=null&&(h[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),h.toJSON=Ro,h.toString=uo,h.unix=Mo,h.valueOf=vo,h.creationData=Do,h.eraName=$o,h.eraNarrow=Io,h.eraAbbr=Fo,h.eraYear=Yo,h.year=ps,h.isLeapYear=ui,h.weekYear=Ho,h.isoWeekYear=Qo,h.quarter=h.quarters=Xo,h.month=ws,h.daysInMonth=Mi,h.week=h.weeks=Di,h.isoWeek=h.isoWeeks=Oi,h.weeksInYear=Wo,h.weeksInWeekYear=Vo,h.isoWeeksInYear=Go,h.isoWeeksInISOWeekYear=Ko,h.date=Qs,h.day=h.days=Hi,h.weekday=Qi,h.isoWeekday=Gi,h.dayOfYear=Zo,h.hour=h.hours=Ji,h.minute=h.minutes=Jo,h.second=h.seconds=ed,h.millisecond=h.milliseconds=Gs,h.utcOffset=Il,h.utc=Yl,h.local=El,h.parseZone=Ll,h.hasAlignedHourOffset=Pl,h.isDST=Tl,h.isLocal=ql,h.isUtcOffset=Hl,h.isUtc=Ns,h.isUTC=Ns,h.zoneAbbr=ad,h.zoneName=sd,h.dates=K("dates accessor is deprecated. Use date instead.",Qs),h.months=K("months accessor is deprecated. Use month instead",ws),h.years=K("years accessor is deprecated. Use year instead",ps),h.zone=K("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Fl),h.isDSTShifted=K("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",jl);function nd(t){return B(t*1e3)}function rd(){return B.apply(null,arguments).parseZone()}function Ks(t){return t}var k=ta.prototype;k.calendar=qr,k.longDateFormat=Kr,k.invalidDate=Vr,k.ordinal=Zr,k.preparse=Ks,k.postformat=Ks,k.relativeTime=ei,k.pastFuture=ti,k.set=Tr,k.eras=Oo,k.erasParse=Ao,k.erasConvertYear=No,k.erasAbbrRegex=Lo,k.erasNameRegex=Eo,k.erasNarrowRegex=Po,k.months=_i,k.monthsShort=wi,k.monthsParse=vi,k.monthsRegex=ki,k.monthsShortRegex=Si,k.week=Ri,k.firstDayOfYear=Bi,k.firstDayOfWeek=Ci,k.weekdays=Li,k.weekdaysMin=Ti,k.weekdaysShort=Pi,k.weekdaysParse=qi,k.weekdaysRegex=Ki,k.weekdaysShortRegex=Wi,k.weekdaysMinRegex=Vi,k.isPM=Xi,k.meridiem=el;function Ft(t,a,s,n){var r=ue(),i=te().set(n,a);return r[s](i,t)}function Ws(t,a,s){if(ie(t)&&(a=t,t=void 0),t=t||"",a!=null)return Ft(t,a,s,"month");var n,r=[];for(n=0;n<12;n++)r[n]=Ft(t,n,s,"month");return r}function xa(t,a,s,n){typeof t=="boolean"?(ie(a)&&(s=a,a=void 0),a=a||""):(a=t,s=a,t=!1,ie(a)&&(s=a,a=void 0),a=a||"");var r=ue(),i=t?r._week.dow:0,d,f=[];if(s!=null)return Ft(a,(s+i)%7,n,"day");for(d=0;d<7;d++)f[d]=Ft(a,(d+i)%7,n,"day");return f}function id(t,a){return Ws(t,a,"months")}function ld(t,a){return Ws(t,a,"monthsShort")}function od(t,a,s){return xa(t,a,s,"weekdays")}function dd(t,a,s){return xa(t,a,s,"weekdaysShort")}function cd(t,a,s){return xa(t,a,s,"weekdaysMin")}_e("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var a=t%10,s=v(t%100/10)===1?"th":a===1?"st":a===2?"nd":a===3?"rd":"th";return t+s}}),m.lang=K("moment.lang is deprecated. Use moment.locale instead.",_e),m.langData=K("moment.langData is deprecated. Use moment.localeData instead.",ue);var fe=Math.abs;function ud(){var t=this._data;return this._milliseconds=fe(this._milliseconds),this._days=fe(this._days),this._months=fe(this._months),t.milliseconds=fe(t.milliseconds),t.seconds=fe(t.seconds),t.minutes=fe(t.minutes),t.hours=fe(t.hours),t.months=fe(t.months),t.years=fe(t.years),this}function Vs(t,a,s,n){var r=J(a,s);return t._milliseconds+=n*r._milliseconds,t._days+=n*r._days,t._months+=n*r._months,t._bubble()}function fd(t,a){return Vs(this,t,a,1)}function hd(t,a){return Vs(this,t,a,-1)}function zs(t){return t<0?Math.floor(t):Math.ceil(t)}function pd(){var t=this._milliseconds,a=this._days,s=this._months,n=this._data,r,i,d,f,g;return t>=0&&a>=0&&s>=0||t<=0&&a<=0&&s<=0||(t+=zs(Ra(s)+a)*864e5,a=0,s=0),n.milliseconds=t%1e3,r=V(t/1e3),n.seconds=r%60,i=V(r/60),n.minutes=i%60,d=V(i/60),n.hours=d%24,a+=V(d/24),g=V(Xs(a)),s+=g,a-=zs(Ra(g)),f=V(s/12),s%=12,n.days=a,n.months=s,n.years=f,this}function Xs(t){return t*4800/146097}function Ra(t){return t*146097/4800}function md(t){if(!this.isValid())return NaN;var a,s,n=this._milliseconds;if(t=W(t),t==="month"||t==="quarter"||t==="year")switch(a=this._days+n/864e5,s=this._months+Xs(a),t){case"month":return s;case"quarter":return s/3;case"year":return s/12}else switch(a=this._days+Math.round(Ra(this._months)),t){case"week":return a/7+n/6048e5;case"day":return a+n/864e5;case"hour":return a*24+n/36e5;case"minute":return a*1440+n/6e4;case"second":return a*86400+n/1e3;case"millisecond":return Math.floor(a*864e5)+n;default:throw new Error("Unknown unit "+t)}}function he(t){return function(){return this.as(t)}}var Zs=he("ms"),yd=he("s"),gd=he("m"),_d=he("h"),wd=he("d"),bd=he("w"),vd=he("M"),Md=he("Q"),Sd=he("y"),kd=Zs;function xd(){return J(this)}function Rd(t){return t=W(t),this.isValid()?this[t+"s"]():NaN}function Ce(t){return function(){return this.isValid()?this._data[t]:NaN}}var Ud=Ce("milliseconds"),Cd=Ce("seconds"),Bd=Ce("minutes"),Dd=Ce("hours"),Od=Ce("days"),Ad=Ce("months"),Nd=Ce("years");function $d(){return V(this.days()/7)}var pe=Math.round,Ee={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Id(t,a,s,n,r){return r.relativeTime(a||1,!!s,t,n)}function Fd(t,a,s,n){var r=J(t).abs(),i=pe(r.as("s")),d=pe(r.as("m")),f=pe(r.as("h")),g=pe(r.as("d")),w=pe(r.as("M")),U=pe(r.as("w")),I=pe(r.as("y")),j=i<=s.ss&&["s",i]||i<s.s&&["ss",i]||d<=1&&["m"]||d<s.m&&["mm",d]||f<=1&&["h"]||f<s.h&&["hh",f]||g<=1&&["d"]||g<s.d&&["dd",g];return s.w!=null&&(j=j||U<=1&&["w"]||U<s.w&&["ww",U]),j=j||w<=1&&["M"]||w<s.M&&["MM",w]||I<=1&&["y"]||["yy",I],j[2]=a,j[3]=+t>0,j[4]=n,Id.apply(null,j)}function Yd(t){return t===void 0?pe:typeof t=="function"?(pe=t,!0):!1}function Ed(t,a){return Ee[t]===void 0?!1:a===void 0?Ee[t]:(Ee[t]=a,t==="s"&&(Ee.ss=a-1),!0)}function Ld(t,a){if(!this.isValid())return this.localeData().invalidDate();var s=!1,n=Ee,r,i;return typeof t=="object"&&(a=t,t=!1),typeof t=="boolean"&&(s=t),typeof a=="object"&&(n=Object.assign({},Ee,a),a.s!=null&&a.ss==null&&(n.ss=a.s-1)),r=this.localeData(),i=Fd(this,!s,n,r),s&&(i=r.pastFuture(+this,i)),r.postformat(i)}var Ua=Math.abs;function Le(t){return(t>0)-(t<0)||+t}function Yt(){if(!this.isValid())return this.localeData().invalidDate();var t=Ua(this._milliseconds)/1e3,a=Ua(this._days),s=Ua(this._months),n,r,i,d,f=this.asSeconds(),g,w,U,I;return f?(n=V(t/60),r=V(n/60),t%=60,n%=60,i=V(s/12),s%=12,d=t?t.toFixed(3).replace(/\.?0+$/,""):"",g=f<0?"-":"",w=Le(this._months)!==Le(f)?"-":"",U=Le(this._days)!==Le(f)?"-":"",I=Le(this._milliseconds)!==Le(f)?"-":"",g+"P"+(i?w+i+"Y":"")+(s?w+s+"M":"")+(a?U+a+"D":"")+(r||n||t?"T":"")+(r?I+r+"H":"")+(n?I+n+"M":"")+(t?I+d+"S":"")):"P0D"}var M=Dt.prototype;M.isValid=Ol,M.abs=ud,M.add=fd,M.subtract=hd,M.as=md,M.asMilliseconds=Zs,M.asSeconds=yd,M.asMinutes=gd,M.asHours=_d,M.asDays=wd,M.asWeeks=bd,M.asMonths=vd,M.asQuarters=Md,M.asYears=Sd,M.valueOf=kd,M._bubble=pd,M.clone=xd,M.get=Rd,M.milliseconds=Ud,M.seconds=Cd,M.minutes=Bd,M.hours=Dd,M.days=Od,M.weeks=$d,M.months=Ad,M.years=Nd,M.humanize=Ld,M.toISOString=Yt,M.toString=Yt,M.toJSON=Yt,M.locale=Es,M.localeData=Ps,M.toIsoString=K("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Yt),M.lang=Ls,_("X",0,0,"unix"),_("x",0,0,"valueOf"),y("x",St),y("X",ri),R("X",function(t,a,s){s._d=new Date(parseFloat(t)*1e3)}),R("x",function(t,a,s){s._d=new Date(v(t))});//! moment.js
|
|
10
|
+
m.version="2.30.1",Lr(B),m.fn=h,m.min=Ul,m.max=Cl,m.now=Bl,m.utc=te,m.unix=nd,m.months=id,m.isDate=We,m.locale=_e,m.invalid=gt,m.duration=J,m.isMoment=X,m.weekdays=od,m.parseZone=rd,m.localeData=ue,m.isDuration=Ot,m.monthsShort=ld,m.weekdaysMin=cd,m.defineLocale=pa,m.updateLocale=nl,m.locales=rl,m.weekdaysShort=dd,m.normalizeUnits=W,m.relativeTimeRounding=Yd,m.relativeTimeThreshold=Ed,m.calendarFormat=eo,m.prototype=h,m.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 Pd=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,Td=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,Js=/(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,Ca=[/^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],jd={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:Js,monthsShortRegex:Js,monthsStrictRegex:Pd,monthsShortStrictRegex:Td,monthsParse:Ca,longMonthsParse:Ca,shortMonthsParse:Ca,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:(t,a)=>{switch(a){case"D":return t+(t===1?"er":"");default:case"M":case"Q":case"DDD":case"d":return t+(t===1?"er":"e");case"w":case"W":return t+(t===1?"re":"e")}},week:{dow:1,doy:4}};m.locale("fr",jd);const rt=(t,a,s=!0)=>(s?t.getFullYear()===a.getFullYear():!0)&&t.getMonth()===a.getMonth()&&t.getDate()===a.getDate(),Ba=()=>m().locale("fr").subtract(1,"days").toDate(),Pe=t=>new Date>t,en=t=>typeof t=="function",Da=(t,a,s)=>{const n={...t},r=Object.entries(t);for(const[i,d]of r){const f=a[i];f?n[i]=s(d,f):n[i]=d}return n},qd=t=>Object.entries(t),Hd=["crewUpdate","userMetaUpdate","userQuestMetaUpdate","userInventoryUpdate","userOrnamentsUpdate"],tn=new Br.EventEmitter,Te=(t,a,s)=>{tn.emit(t,a,s)},Qd=t=>{for(const a of Hd)tn.on(a,(s,n)=>{t(s,n)})};class o{constructor(){e(this,"onUserMetaUpdate");e(this,"onUserQuestMetaUpdate");e(this,"onUserInventoryUpdate");e(this,"onUserOrnamentsUpdate");e(this,"onCrewUpdate");e(this,"complete",async(a,{_userQuest:s,_userCrew:n,_userMeta:r})=>{const i=s??await Xa(a);if(this.isCompleted(i))return null;const d=r??await dt(a),f=n??await Rn(a);return this.crew&&f?this.daily?await this.markCrewDailyAsCompleted(f.crew._id,i.user._id):(await this.markAsCompleted(i),await this.markCrewAsCompleted(f.crew._id)):await this.markAsCompleted(i),await this.specificQuestCompletion(i),await this.applyReward(i,d,f)});e(this,"getComputedRewards",(a,s)=>{const n=this.daily&&Va(s)?za(s):1;return{xp:(en(this.xp)?this.xp(a):this.xp)*n*(1+Qa(a)),berry:(en(this.berry)?this.berry(a):this.berry)*n}})}async applyReward(a,s,n){return this.title&&await Wa(a.user._id,this.title.name),this.badge&&(this.crew&&n?await rn(n.crew._id,this.badge,this.rank.id):await En(a.user._id,this.badge,this.rank.id)),this.isFactionBadge&&await Ln(a.user._id,this.rank.id),this.asset&&await Pn(a.user._id,this.asset),this.getComputedRewards(s,a)}async specificQuestCompletion(a){this.id==="daily_all"&&await Vn(a.user._id,a.lastFullComplete),this.id==="be_level_10"&&await ar(a.user._id,!0),this.id!=="be_level_10"&&this.id.startsWith("be_level_")&&await sr(a.user._id,!0)}isCompleted(a){return this.daily?qn(a,this.id):jn(a,this.id)}async markAsCompleted(a){this.daily?await Wn(a.user._id,this.id):await Kn(a.user._id,this.id)}async markCrewAsCompleted(a){await sn(a,this.id)}async markCrewDailyAsCompleted(a,s){await nn(a,s.toHexString(),this.id)}}class Gd extends o{constructor(){super(...arguments);e(this,"name","Prenez-en soin");e(this,"id","crew_carpenter_1_week");e(this,"rank",l.RANKS.COMMON);e(this,"description","Rester au dessus de 80% de détérioration pendant 1 semaine");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"crew",!0);e(this,"secret",!0);e(this,"badge",u.BadgeList.carpenter);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.quest.meta.streak80Percent>=7)}}class Kd extends o{constructor(){super(...arguments);e(this,"name","Il est comme neuf !");e(this,"id","crew_carpenter_1_month");e(this,"rank",l.RANKS.RARE);e(this,"description","Rester au dessus de 80% de détérioration pendant 1 mois");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"crew",!0);e(this,"secret",!0);e(this,"badge",u.BadgeList.carpenter);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.quest.meta.streak80Percent>=30)}}class Wd extends o{constructor(){super(...arguments);e(this,"name","À l'occasion, je vous mettrai un petit coup de polish");e(this,"id","crew_carpenter_3_months");e(this,"rank",l.RANKS.EPIC);e(this,"description","Rester au dessus de 80% de détérioration pendant 3 mois");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"crew",!0);e(this,"secret",!0);e(this,"badge",u.BadgeList.carpenter);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.quest.meta.streak80Percent>=30*3)}}class Vd extends o{constructor(){super(...arguments);e(this,"name","Vous ne naviguez qu'en eau calme ?");e(this,"id","crew_carpenter_6_months");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Rester au dessus de 80% de détérioration pendant 6 mois");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"crew",!0);e(this,"secret",!0);e(this,"badge",u.BadgeList.carpenter);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.quest.meta.streak80Percent>=30*6)}}class zd extends o{constructor(){super(...arguments);e(this,"name","C'est un sacré charpentier que vous avez là !");e(this,"id","crew_carpenter_1_year");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Rester au dessus de 80% de détérioration pendant 1 an");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"crew",!0);e(this,"secret",!0);e(this,"asset",null);e(this,"title",u.questTitles["Charpentier Légendaire"]);e(this,"badge",u.BadgeList.carpenter);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.quest.meta.streak80Percent>=365)}}class Xd extends o{constructor(){super(...arguments);e(this,"name","Sympa votre barque");e(this,"id","crew_ship_level_10");e(this,"rank",l.RANKS.COMMON);e(this,"description","Atteindre le niveau 10 d'équipage");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"crew",!0);e(this,"badge",u.BadgeList.crewship);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>l.getCurrentLevel(s.meta.xp)>=10)}}class Zd extends o{constructor(){super(...arguments);e(this,"name","Joli bicoque");e(this,"id","crew_ship_level_25");e(this,"rank",l.RANKS.RARE);e(this,"description","Atteindre le niveau 25 d'équipage");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"crew",!0);e(this,"badge",u.BadgeList.crewship);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>l.getCurrentLevel(s.meta.xp)>=25)}}class Jd extends o{constructor(){super(...arguments);e(this,"name","* C'est un fameux trois-mâts *");e(this,"id","crew_ship_level_50");e(this,"rank",l.RANKS.EPIC);e(this,"description","Atteindre le niveau 50 d'équipage");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"crew",!0);e(this,"badge",u.BadgeList.crewship);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>l.getCurrentLevel(s.meta.xp)>=50)}}class ec extends o{constructor(){super(...arguments);e(this,"name","* Fin comme un oiseau *");e(this,"id","crew_ship_level_75");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Atteindre le niveau 75 d'équipage");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"crew",!0);e(this,"badge",u.BadgeList.crewship);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>l.getCurrentLevel(s.meta.xp)>=75)}}class tc extends o{constructor(){super(...arguments);e(this,"name","* Hisse et ho ! *");e(this,"id","crew_ship_level_100");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Atteindre le niveau 100 d'équipage");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"crew",!0);e(this,"asset",null);e(this,"title",u.questTitles.Santiano);e(this,"badge",u.BadgeList.crewship);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>l.getCurrentLevel(s.meta.xp)>=100)}}class ac extends o{constructor(){super(...arguments);e(this,"name","Y'a pas de petites économies");e(this,"id","crew_have_100M_berry");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 100 000 000 Berrys dans le coffre d'équipage");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"crew",!0);e(this,"badge",u.BadgeList.communism);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.meta.berry>=1e8)}}class sc extends o{constructor(){super(...arguments);e(this,"name","Joli butin !");e(this,"id","crew_have_500M_berry");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 500 000 000 Berrys dans le coffre d'équipage");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"crew",!0);e(this,"badge",u.BadgeList.communism);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.meta.berry>=5e8)}}class nc extends o{constructor(){super(...arguments);e(this,"name","Vous économisez pour un nouveau bateau ?");e(this,"id","crew_have_1Md_berry");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 1 000 000 000 Berrys dans le coffre d'équipage");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"crew",!0);e(this,"badge",u.BadgeList.communism);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.meta.berry>=1e9)}}class rc extends o{constructor(){super(...arguments);e(this,"name","Ça fait beaucoup là non ?");e(this,"id","crew_have_5Md_berry");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 5 000 000 000 Berrys dans le coffre d'équipage");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"crew",!0);e(this,"badge",u.BadgeList.communism);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.meta.berry>=5e9)}}class ic extends o{constructor(){super(...arguments);e(this,"name","Karl Marx serait fier de vous !");e(this,"id","crew_have_50Md_berry");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 50 000 000 000 Berrys dans le coffre d'équipage");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"crew",!0);e(this,"asset",null);e(this,"title",u.questTitles.Communiste);e(this,"badge",u.BadgeList.communism);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.meta.berry>=5e10)}}class lc extends o{constructor(){super(...arguments);e(this,"name","Plus on est de fous...");e(this,"id","crew_size_5");e(this,"rank",l.RANKS.COMMON);e(this,"description","Être dans un équipage de 5 membres");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"crew",!0);e(this,"badge",u.BadgeList.sardine);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.members.length>=5)}}class oc extends o{constructor(){super(...arguments);e(this,"name","Plus on rit !");e(this,"id","crew_size_7");e(this,"rank",l.RANKS.RARE);e(this,"description","Être dans un équipage de 7 membres");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"crew",!0);e(this,"badge",u.BadgeList.sardine);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.members.length>=7)}}class dc extends o{constructor(){super(...arguments);e(this,"name","Une petite famille");e(this,"id","crew_size_10");e(this,"rank",l.RANKS.EPIC);e(this,"description","Être dans un équipage de 10 membres");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"crew",!0);e(this,"badge",u.BadgeList.sardine);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.members.length>=10)}}class cc extends o{constructor(){super(...arguments);e(this,"name","Va falloir des dortoirs en plus");e(this,"id","crew_size_12");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Être dans un équipage de 12 membres");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"crew",!0);e(this,"badge",u.BadgeList.sardine);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.members.length>=12)}}class uc extends o{constructor(){super(...arguments);e(this,"name","* Ah qu'est-ce qu'on est serré ! *");e(this,"id","crew_size_15");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Être dans un équipage de 15 membres");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"crew",!0);e(this,"asset",null);e(this,"title",u.questTitles.Sardine);e(this,"badge",u.BadgeList.sardine);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.members.length>=15)}}class fc extends o{constructor(){super(...arguments);e(this,"name","Réunion de crise");e(this,"id","crew_vocal_5");e(this,"rank",l.RANKS.COMMON);e(this,"description","Être dans un un vocal avec les 5 membres pendant 1 heure");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"crew",!0);e(this,"badge",u.BadgeList.shipsecte);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.quest.meta.maxVoiceMembers>=5)}}class hc extends o{constructor(){super(...arguments);e(this,"name","Conseil de guerre");e(this,"id","crew_vocal_7");e(this,"rank",l.RANKS.RARE);e(this,"description","Être dans un un vocal avec les 7 membres pendant 1 heure");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"crew",!0);e(this,"badge",u.BadgeList.shipsecte);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.quest.meta.maxVoiceMembers>=7)}}class pc extends o{constructor(){super(...arguments);e(this,"name","Réunion de famille");e(this,"id","crew_vocal_10");e(this,"rank",l.RANKS.EPIC);e(this,"description","Être dans un un vocal avec les 10 membres pendant 1 heure");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"crew",!0);e(this,"badge",u.BadgeList.shipsecte);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.quest.meta.maxVoiceMembers>=10)}}class mc extends o{constructor(){super(...arguments);e(this,"name","Les Inséparables");e(this,"id","crew_vocal_12");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Être dans un un vocal avec les 12 membres pendant 1 heure");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"crew",!0);e(this,"badge",u.BadgeList.shipsecte);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.quest.meta.maxVoiceMembers>=12)}}class yc extends o{constructor(){super(...arguments);e(this,"name","Ambiance sectaire un peu");e(this,"id","crew_vocal_15");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Être dans un un vocal avec les 15 membres pendant 1 heure");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"crew",!0);e(this,"asset",null);e(this,"title",u.questTitles["Membre d'une secte"]);e(this,"badge",u.BadgeList.shipsecte);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.quest.meta.maxVoiceMembers>=15)}}class gc extends o{constructor(){super(...arguments);e(this,"name","C'est sympa pour eux !");e(this,"id","crew_bring_50k_xp");e(this,"rank",l.RANKS.COMMON);e(this,"description","Rapporter 50 000 XP à l'équipage");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",u.BadgeList.broship);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onCrewUpdate",s=>s.meta.xp>=5e4)}}class _c extends o{constructor(){super(...arguments);e(this,"name","On voit que tu aimes ton équipage");e(this,"id","crew_bring_500k_xp");e(this,"rank",l.RANKS.RARE);e(this,"description","Rapporter 500 000 XP à l'équipage");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",u.BadgeList.broship);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onCrewUpdate",s=>s.meta.xp>=5e5)}}class wc extends o{constructor(){super(...arguments);e(this,"name","Le méritent-ils vraiment ?");e(this,"id","crew_bring_1m_xp");e(this,"rank",l.RANKS.EPIC);e(this,"description","Rapporter 1 000 000 XP à l'équipage");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",u.BadgeList.broship);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onCrewUpdate",s=>s.meta.xp>=1e6)}}class bc extends o{constructor(){super(...arguments);e(this,"name","J'espère que t'as eu une prime");e(this,"id","crew_bring_5m_xp");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Rapporter 5 000 000 XP à l'équipage");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",u.BadgeList.broship);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onCrewUpdate",s=>s.meta.xp>=5e6)}}class vc extends o{constructor(){super(...arguments);e(this,"name","Qu'on lui fasse une statue de Bronze !");e(this,"id","crew_bring_50m_xp");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Rapporter 50 000 000 XP à l'équipage");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",u.questTitles["Team Player"]);e(this,"badge",u.BadgeList.broship);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onCrewUpdate",s=>s.meta.xp>=5e7)}}const Oa=Object.freeze(Object.defineProperty({__proto__:null,CrewBeLevel10:Xd,CrewBeLevel100:tc,CrewBeLevel25:Zd,CrewBeLevel50:Jd,CrewBeLevel75:ec,CrewBring1mXp:wc,CrewBring500kXp:_c,CrewBring50kXp:gc,CrewBring50mXp:vc,CrewBring5mXp:bc,CrewCarpenter1Month:Kd,CrewCarpenter1Week:Gd,CrewCarpenter1Year:zd,CrewCarpenter3Months:Wd,CrewCarpenter6Months:Vd,CrewHave100MBerry:ac,CrewHave1MdBerry:nc,CrewHave500MBerry:sc,CrewHave50MdBerry:ic,CrewHave5MdBerry:rc,CrewSize10:dc,CrewSize12:cc,CrewSize15:uc,CrewSize5:lc,CrewSize7:oc,CrewVocal10:pc,CrewVocal12:mc,CrewVocal15:yc,CrewVocal5:fc,CrewVocal7:hc},Symbol.toStringTag,{value:"Module"}));class Mc extends o{constructor(){super(...arguments);e(this,"name","Ne fais rien exploser hein ?");e(this,"id","have_1_recipe");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 1 recette");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",u.BadgeList.recipe);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserInventoryUpdate",s=>s.recipes.length>=1)}}class Sc extends o{constructor(){super(...arguments);e(this,"name","C'est bien tu sais faire des pâtes !");e(this,"id","have_5_recipe");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 5 recettes");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",u.BadgeList.recipe);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserInventoryUpdate",s=>s.recipes.length>=5)}}class kc extends o{constructor(){super(...arguments);e(this,"name","Ta grand-mère t'as donné son livre ?");e(this,"id","have_10_recipe");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 10 recettes");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",u.BadgeList.recipe);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserInventoryUpdate",s=>s.recipes.length>=10)}}class xc extends o{constructor(){super(...arguments);e(this,"name","Let him cook");e(this,"id","have_25_recipe");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 25 recettes");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",null);e(this,"badge",u.BadgeList.recipe);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserInventoryUpdate",s=>s.recipes.length>=25)}}class Rc extends o{constructor(){super(...arguments);e(this,"name","Paul Bocuse");e(this,"id","have_100_recipe");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 100 recettes");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",u.questTitles["Paul Bocuse"]);e(this,"badge",u.BadgeList.recipe);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserInventoryUpdate",s=>s.recipes.length>=100)}}const Aa=Object.freeze(Object.defineProperty({__proto__:null,Have100Recipe:Rc,Have10Recipe:kc,Have1Recipe:Mc,Have25Recipe:xc,Have5Recipe:Sc},Symbol.toStringTag,{value:"Module"}));class Uc extends o{constructor(){super(...arguments);e(this,"name","Enfin de quoi t'acheter un bon vélo !");e(this,"id","have_500000_berry");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 500 000 Berrys");e(this,"berry",1e5);e(this,"xp",5e3);e(this,"badge",u.BadgeList.berry);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserMetaUpdate",s=>s.berry>=5e5)}}class Cc extends o{constructor(){super(...arguments);e(this,"name","Ouah t'es multi-millionaire !");e(this,"id","have_5000000_berry");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 5 000 000 Berrys");e(this,"berry",1e6);e(this,"xp",25e3);e(this,"badge",u.BadgeList.berry);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserMetaUpdate",s=>s.berry>=5e6)}}class Bc extends o{constructor(){super(...arguments);e(this,"name","Presque riche");e(this,"id","have_50000000_berry");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 50 000 000 Berrys");e(this,"berry",1e7);e(this,"xp",5e4);e(this,"badge",u.BadgeList.berry);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserMetaUpdate",s=>s.berry>=5e7)}}class Dc extends o{constructor(){super(...arguments);e(this,"name","Un 20m² à Paris");e(this,"id","have_500000000_berry");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 500 000 000 Berrys");e(this,"berry",1e8);e(this,"xp",1e5);e(this,"badge",u.BadgeList.berry);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserMetaUpdate",s=>s.berry>=5e8)}}class Oc extends o{constructor(){super(...arguments);e(this,"name","This is Elon Musk");e(this,"id","have_5000000000_berry");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 5 000 000 000 Berrys");e(this,"berry",1e9);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",u.questTitles["Elon Musk"]);e(this,"badge",u.BadgeList.berry);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserMetaUpdate",s=>s.berry>=5e9)}}class Ac extends o{constructor(){super(...arguments);e(this,"name","5 jours / semaine à Basic Fit");e(this,"id","have_25_strength");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 25 de force");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.strength>=25)}}class Nc extends o{constructor(){super(...arguments);e(this,"name","La fonte > les livres");e(this,"id","have_50_strength");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 50 de force");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.strength>=50)}}class $c extends o{constructor(){super(...arguments);e(this,"name","Moi, musclé ?");e(this,"id","have_100_strength");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 100 de force");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.strength>=100)}}class Ic extends o{constructor(){super(...arguments);e(this,"name","Hercules");e(this,"id","have_250_strength");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 250 de force");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.strength>=250)}}class Fc extends o{constructor(){super(...arguments);e(this,"name","Titan");e(this,"id","have_500_strength");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 500 de force");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",u.questTitles.Titan);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.strength>=500)}}class Yc extends o{constructor(){super(...arguments);e(this,"name","Chat de gouttière");e(this,"id","have_25_agility");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 25 d'agilité");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.agility>=25)}}class Ec extends o{constructor(){super(...arguments);e(this,"name","Hop ! Grand écart !");e(this,"id","have_50_agility");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 50 d'agilité");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.agility>=50)}}class Lc extends o{constructor(){super(...arguments);e(this,"name","Danseur étoile");e(this,"id","have_100_agility");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 100 d'agilité");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.agility>=100)}}class Pc extends o{constructor(){super(...arguments);e(this,"name","L'Éclair de Konoha ! (merde mauvais manga)");e(this,"id","have_250_agility");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 250 d'agilité");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.agility>=250)}}class Tc extends o{constructor(){super(...arguments);e(this,"name","Héritier de Bon Clay");e(this,"id","have_500_agility");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 500 d'agilité");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",u.questTitles["Héritier de Bon Clay"]);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.agility>=500)}}class jc extends o{constructor(){super(...arguments);e(this,"name","2+2 = 4");e(this,"id","have_25_intelligence");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 25 d'intelligence");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.intelligence>=25)}}class qc extends o{constructor(){super(...arguments);e(this,"name","Petit Einstein");e(this,"id","have_50_intelligence");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 50 d'intelligence");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.intelligence>=50)}}class Hc extends o{constructor(){super(...arguments);e(this,"name","HPI");e(this,"id","have_100_intelligence");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 100 d'intelligence");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.intelligence>=100)}}class Qc extends o{constructor(){super(...arguments);e(this,"name","Sorcier du savoir");e(this,"id","have_250_intelligence");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 250 d'intelligence");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.intelligence>=250)}}class Gc extends o{constructor(){super(...arguments);e(this,"name","Héritier de Vegapunk");e(this,"id","have_500_intelligence");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 500 d'intelligence");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",u.questTitles["Héritier de Vegapunk"]);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.intelligence>=500)}}class Kc extends o{constructor(){super(...arguments);e(this,"name","Touche du bois");e(this,"id","have_25_chance");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 25 de chance");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.chance>=25)}}class Wc extends o{constructor(){super(...arguments);e(this,"name","Petit veinard");e(this,"id","have_50_chance");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 50 de chance");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.chance>=50)}}class Vc extends o{constructor(){super(...arguments);e(this,"name","LA CHAAAAAATTE !");e(this,"id","have_100_chance");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 100 de chance");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.chance>=100)}}class zc extends o{constructor(){super(...arguments);e(this,"name","Favori des Astres");e(this,"id","have_250_chance");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 250 de chance");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.chance>=250)}}class Xc extends o{constructor(){super(...arguments);e(this,"name","Héritier de Baggy");e(this,"id","have_500_chance");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 500 de chance");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",u.questTitles["Héritier de Baggy"]);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.chance>=500)}}class Zc extends o{constructor(){super(...arguments);e(this,"name","Résistant");e(this,"id","have_25_vitality");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 25 de vitalité");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.vitality>=25)}}class Jc extends o{constructor(){super(...arguments);e(this,"name","Solide comme un roc");e(this,"id","have_50_vitality");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 50 de vitalité");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.vitality>=50)}}class eu extends o{constructor(){super(...arguments);e(this,"name","Le tank !");e(this,"id","have_100_vitality");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 100 de vitalité");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.vitality>=100)}}class tu extends o{constructor(){super(...arguments);e(this,"name","Mais t'es increvable !");e(this,"id","have_250_vitality");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 250 de vitalité");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.vitality>=250)}}class au extends o{constructor(){super(...arguments);e(this,"name","Héritier de Kaido");e(this,"id","have_500_vitality");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 500 de vitalité");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",u.questTitles["Héritier de Kaido"]);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.vitality>=500)}}class su extends o{constructor(){super(...arguments);e(this,"name","Tu as lu des livres ?");e(this,"id","have_25_wisdom");e(this,"rank",l.RANKS.COMMON);e(this,"description","Avoir 25 de sagesse");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.wisdom>=25)}}class nu extends o{constructor(){super(...arguments);e(this,"name","Filozof");e(this,"id","have_50_wisdom");e(this,"rank",l.RANKS.RARE);e(this,"description","Avoir 50 de sagesse");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.wisdom>=50)}}class ru extends o{constructor(){super(...arguments);e(this,"name","Platon");e(this,"id","have_100_wisdom");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 100 de sagesse");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.wisdom>=100)}}class iu extends o{constructor(){super(...arguments);e(this,"name","Oracle vénéré");e(this,"id","have_250_wisdom");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 250 de sagesse");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.wisdom>=250)}}class lu extends o{constructor(){super(...arguments);e(this,"name","Héritier d'Ohara");e(this,"id","have_500_wisdom");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 500 de sagesse");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",u.questTitles["Héritier d'Ohara"]);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserMetaUpdate",s=>s.characteristics.wisdom>=500)}}class ou extends o{constructor(){super(...arguments);e(this,"name","Un pas devant l'autre !");e(this,"id","be_level_10");e(this,"rank",l.RANKS.COMMON);e(this,"description","Atteindre le niveau 10");e(this,"berry",1e5);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=10)}}class du extends o{constructor(){super(...arguments);e(this,"name","T'inquiète pas ça va bien se passer");e(this,"id","be_level_20");e(this,"rank",l.RANKS.COMMON);e(this,"description","Atteindre le niveau 20");e(this,"berry",3e5);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=20)}}class cu extends o{constructor(){super(...arguments);e(this,"name","Commence par me parler poliment");e(this,"id","be_level_30");e(this,"rank",l.RANKS.RARE);e(this,"description","Atteindre le niveau 30");e(this,"berry",1e6);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=30)}}class uu extends o{constructor(){super(...arguments);e(this,"name","On te respecte à la cantine");e(this,"id","be_level_40");e(this,"rank",l.RANKS.RARE);e(this,"description","Atteindre le niveau 40");e(this,"berry",3e6);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=40)}}class fu extends o{constructor(){super(...arguments);e(this,"name","Ça commence à devenir sérieux");e(this,"id","be_level_50");e(this,"rank",l.RANKS.EPIC);e(this,"description","Atteindre le niveau 50");e(this,"berry",5e6);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=50)}}class hu extends o{constructor(){super(...arguments);e(this,"name","Une chambre individuelle ? La chance !");e(this,"id","be_level_60");e(this,"rank",l.RANKS.EPIC);e(this,"description","Atteindre le niveau 60");e(this,"berry",1e7);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=60)}}class pu extends o{constructor(){super(...arguments);e(this,"name","Oulah, les responsabilités arrivent");e(this,"id","be_level_70");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Atteindre le niveau 70");e(this,"berry",5e7);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=70)}}class mu extends o{constructor(){super(...arguments);e(this,"name","Faut pas t'emmerder toi");e(this,"id","be_level_80");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Atteindre le niveau 80");e(this,"berry",5e7);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=80)}}class yu extends o{constructor(){super(...arguments);e(this,"name","Là on parle !");e(this,"id","be_level_90");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Atteindre le niveau 90");e(this,"berry",1e8);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=90)}}class gu extends o{constructor(){super(...arguments);e(this,"name","*S'agenouille*");e(this,"id","be_level_120");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Atteindre le niveau 120");e(this,"berry",1e9);e(this,"xp",0);e(this,"secret",!1);e(this,"crew",!1);e(this,"daily",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!0);e(this,"onUserMetaUpdate",({xp:s})=>l.getCurrentLevel(s.amount)>=120)}}const Na=Object.freeze(Object.defineProperty({__proto__:null,BeLevel10:ou,BeLevel120:gu,BeLevel20:du,BeLevel30:cu,BeLevel40:uu,BeLevel50:fu,BeLevel60:hu,BeLevel70:pu,BeLevel80:mu,BeLevel90:yu,Have100Agility:Lc,Have100Chance:Vc,Have100Intelligence:Hc,Have100Strength:$c,Have100Vitality:eu,Have100Wisdom:ru,Have250Agility:Pc,Have250Chance:zc,Have250Intelligence:Qc,Have250Strength:Ic,Have250Vitality:tu,Have250Wisdom:iu,Have25Agility:Yc,Have25Chance:Kc,Have25Intelligence:jc,Have25Strength:Ac,Have25Vitality:Zc,Have25Wisdom:su,Have500Agility:Tc,Have500Chance:Xc,Have500Intelligence:Gc,Have500Strength:Fc,Have500Vitality:au,Have500Wisdom:lu,Have500kBerry:Uc,Have500mBerry:Dc,Have50Agility:Ec,Have50Chance:Wc,Have50Intelligence:qc,Have50Strength:Nc,Have50Vitality:Jc,Have50Wisdom:nu,Have50mBerry:Bc,Have5mBerry:Cc,Have5mdBerry:Oc},Symbol.toStringTag,{value:"Module"}));class _u extends o{constructor(){super(...arguments);e(this,"name","Un poster dans ta chambre");e(this,"id","have_1_background");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 1 background");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserOrnamentsUpdate",s=>s.unlockedBackgrounds.filter(n=>n!=="default").length>=1)}}class wu extends o{constructor(){super(...arguments);e(this,"name","Fan de One Piece");e(this,"id","have_25_background");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 25 backgrounds différents");e(this,"berry",5e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserOrnamentsUpdate",s=>s.unlockedBackgrounds.filter(n=>n!=="default").length>=25)}}class bu extends o{constructor(){super(...arguments);e(this,"name","Tu vas en faire quoi ? Tu peux en mettre qu'un");e(this,"id","have_50_background");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 50 backgrounds différents");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserOrnamentsUpdate",s=>s.unlockedBackgrounds.filter(n=>n!=="default").length>=50)}}class vu extends o{constructor(){super(...arguments);e(this,"name","PTDR t ki ?");e(this,"id","have_10_title");e(this,"rank",l.RANKS.EPIC);e(this,"description","Avoir 10 titres différents");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserOrnamentsUpdate",s=>s.unlockedTitles.length>=10)}}class Mu extends o{constructor(){super(...arguments);e(this,"name","On m'appelle Personne");e(this,"id","have_50_title");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Avoir 50 titres différents");e(this,"berry",5e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserOrnamentsUpdate",s=>s.unlockedTitles.length>=50)}}class Su extends o{constructor(){super(...arguments);e(this,"name","Ok Daenerys");e(this,"id","have_100_title");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Avoir 100 titres différents");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserOrnamentsUpdate",s=>s.unlockedTitles.length>=100)}}const $a=Object.freeze(Object.defineProperty({__proto__:null,Have100Title:Su,Have10Title:vu,Have1Background:_u,Have25Background:wu,Have50Background:bu,Have50Title:Mu},Symbol.toStringTag,{value:"Module"}));class ku extends o{constructor(){super(...arguments);e(this,"name","Petit joueur");e(this,"id","bet_min_value");e(this,"rank",l.RANKS.RARE);e(this,"description","Mise la somme minimale lors d'un pari");e(this,"berry",5e4);e(this,"xp",1e4);e(this,"secret",!0);e(this,"asset",null);e(this,"title",u.questTitles["Petit joueur"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.betMin)}}class xu extends o{constructor(){super(...arguments);e(this,"name","On a tous le droit à une seconde chance");e(this,"id","lose_everything");e(this,"rank",l.RANKS.RARE);e(this,"description","Perdre tous ses Berrys");e(this,"berry",1e5);e(this,"xp",1e4);e(this,"secret",!0);e(this,"asset",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.loseEverything)}}class Ru extends o{constructor(){super(...arguments);e(this,"name","T'es sûr de toi ?");e(this,"id","bet_10M");e(this,"rank",l.RANKS.EPIC);e(this,"description","Miser plus de 10 000 000 de Berrys en une seule fois");e(this,"berry",5e5);e(this,"xp",5e4);e(this,"secret",!0);e(this,"asset",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.bet10M)}}class Uu extends o{constructor(){super(...arguments);e(this,"name","Ok j'ai rien dit");e(this,"id","win_10M_bet");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Gagner en ayant misé plus de 10M de Berrys");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"secret",!0);e(this,"asset",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.winBet10M)}}class Cu extends o{constructor(){super(...arguments);e(this,"name","T'es accro là non ?");e(this,"id","bet_total_10M");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Miser plus de 10 000 000 de Berrys en tout");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",u.questTitles["Gambling addict"]);e(this,"badge",u.BadgeList.casino);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.totalBet>=1e7)}}class Bu extends o{constructor(){super(...arguments);e(this,"name","LE MILLIARD");e(this,"id","bet_total_1Md");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Miser plus de 1 000 000 000 de Berrys en tout");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"badge",u.BadgeList.casino);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.totalBet>=1e9)}}class Du extends o{constructor(){super(...arguments);e(this,"name","Cheh !");e(this,"id","lose_10M");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Perdre 10M de Berrys en une fois");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"secret",!0);e(this,"asset",null);e(this,"badge",u.BadgeList.noluck);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.lose10M)}}class Ou extends o{constructor(){super(...arguments);e(this,"name","Bon anniversaire !");e(this,"id","birthday");e(this,"rank",l.RANKS.EPIC);e(this,"description","Fêter son anniversaire");e(this,"berry",1e6);e(this,"xp",5e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"secret",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.hasCelebrateBirthday)}}class Au extends o{constructor(){super(...arguments);e(this,"name","Il ne va pas te répondre tu sais ?");e(this,"id","bot_ping");e(this,"rank",l.RANKS.EPIC);e(this,"description","Ping le bot 100 fois");e(this,"berry",25e4);e(this,"xp",25e3);e(this,"secret",!0);e(this,"title",u.questTitles.Teubé);e(this,"badge",null);e(this,"asset",u.profileAssets.idiot);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({botPing:s})=>s>=100)}}class Nu extends o{constructor(){super(...arguments);e(this,"name","Tu avais soif ?");e(this,"id","drink_100_xp_bottles_1_day");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Boire 100 Potions d'XP en une journée");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"secret",!0);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.bottle.today>=100)}}class $u extends o{constructor(){super(...arguments);e(this,"name","Un ptit goût amer non ?");e(this,"id","drink_200");e(this,"rank",l.RANKS.COMMON);e(this,"description","Boire 200 Potions d'XP");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.bottle.total>=200)}}class Iu extends o{constructor(){super(...arguments);e(this,"name","Ça se boit bien finalement");e(this,"id","drink_500");e(this,"rank",l.RANKS.RARE);e(this,"description","Boire 500 Potions d'XP");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.bottle.total>=500)}}class Fu extends o{constructor(){super(...arguments);e(this,"name","Les potions donnent des aiiiiles !");e(this,"id","drink_1000");e(this,"rank",l.RANKS.EPIC);e(this,"description","Boire 1000 Potions d'XP");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.bottle.total>=1e3)}}class Yu extends o{constructor(){super(...arguments);e(this,"name","À deux doigts de vomir");e(this,"id","drink_2000");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Boire 2000 Potions d'XP");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.bottle.total>=2e3)}}class Eu extends o{constructor(){super(...arguments);e(this,"name","Alcoolique");e(this,"id","drink_5000");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Boire 5000 Potions d'XP");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",u.questTitles.Alcoolique);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.bottle.total>=5e3)}}class Lu extends o{constructor(){super(...arguments);e(this,"name","C'est sympa ce ptit jeu");e(this,"id","chest_open_50");e(this,"rank",l.RANKS.COMMON);e(this,"description","Ouvrir 50 Coffres");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.chest.total>=50)}}class Pu extends o{constructor(){super(...arguments);e(this,"name","T'as enfin eu un truc intéressant ?");e(this,"id","chest_open_150");e(this,"rank",l.RANKS.RARE);e(this,"description","Ouvrir 150 Coffres");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.chest.total>=150)}}class Tu extends o{constructor(){super(...arguments);e(this,"name","Ça commence à gratter hein ?");e(this,"id","chest_open_500");e(this,"rank",l.RANKS.EPIC);e(this,"description","Ouvrir 500 Coffres");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.chest.total>=500)}}class ju extends o{constructor(){super(...arguments);e(this,"name","LAISSEZ-MOI OUVRIR DES COFFRES !");e(this,"id","chest_open_1000");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Ouvrir 1000 Coffres");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.chest.total>=1e3)}}class qu extends o{constructor(){super(...arguments);e(this,"name","xXFan2GenshinXx");e(this,"id","chest_open_2000");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Ouvrir 2000 Coffres");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",u.questTitles["Gatcha Addict"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.chest.total>=2e3)}}class Hu extends o{constructor(){super(...arguments);e(this,"name","Ils font mieux chez Ikea");e(this,"id","craft_20_times");e(this,"rank",l.RANKS.COMMON);e(this,"description","Effectuer 20 crafts");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",u.BadgeList.craft);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.total>=20)}}class Qu extends o{constructor(){super(...arguments);e(this,"name","Te fais pas mal avec le marteau");e(this,"id","craft_50_times");e(this,"rank",l.RANKS.RARE);e(this,"description","Effectuer 50 crafts");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",u.BadgeList.craft);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.total>=50)}}class Gu extends o{constructor(){super(...arguments);e(this,"name","Insensible aux échardes on dirait");e(this,"id","craft_200_times");e(this,"rank",l.RANKS.EPIC);e(this,"description","Effectuer 200 crafts");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",u.BadgeList.craft);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.total>=200)}}class Ku extends o{constructor(){super(...arguments);e(this,"name","Je ne veux pas voir l'état de ton atelier");e(this,"id","craft_500_times");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Effectuer 500 crafts");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",null);e(this,"badge",u.BadgeList.craft);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.total>=500)}}class Wu extends o{constructor(){super(...arguments);e(this,"name","Mac Gyver");e(this,"id","craft_1000_times");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Effectuer 1000 crafts");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",u.questTitles["Mac Gyver"]);e(this,"badge",u.BadgeList.craft);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.total>=1e3)}}class Vu extends o{constructor(){super(...arguments);e(this,"name","Apprenti Gourmand");e(this,"id","craft_10_cooked_meals");e(this,"rank",l.RANKS.COMMON);e(this,"description","Cuisiner 10 plats");e(this,"berry",5e5);e(this,"xp",2e4);e(this,"asset",null);e(this,"title",u.questTitles["Apprenti Gourmand"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.cookedMeal>=10)}}class zu extends o{constructor(){super(...arguments);e(this,"name","Chef Amateur");e(this,"id","craft_50_cooked_meals");e(this,"rank",l.RANKS.RARE);e(this,"description","Cuisiner 50 plats");e(this,"berry",2e5);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",u.questTitles["Chef Amateur"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.cookedMeal>=50)}}class Xu extends o{constructor(){super(...arguments);e(this,"name","Maître des Saveurs");e(this,"id","craft_100_cooked_meals");e(this,"rank",l.RANKS.EPIC);e(this,"description","Cuisiner 100 plats");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",u.questTitles["Maître des Saveurs"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.cookedMeal>=100)}}class Zu extends o{constructor(){super(...arguments);e(this,"name","Artiste Culinaire");e(this,"id","craft_250_cooked_meals");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Cuisiner 250 plats");e(this,"berry",5e7);e(this,"xp",2e5);e(this,"asset",null);e(this,"title",u.questTitles["Artiste Culinaire"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.cookedMeal>=250)}}class Ju extends o{constructor(){super(...arguments);e(this,"name","Sultan des Épices");e(this,"id","craft_500_cooked_meals");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Cuisiner 500 plats");e(this,"berry",1e8);e(this,"xp",5e5);e(this,"asset",null);e(this,"title",u.questTitles["Sultan des Épices"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.cookedMeal>=500)}}class ef extends o{constructor(){super(...arguments);e(this,"name","C'est une bonne situation ça scribe ?");e(this,"id","craft_5_scrolls");e(this,"rank",l.RANKS.COMMON);e(this,"description","Craft 5 Parchemins");e(this,"berry",5e5);e(this,"xp",2e4);e(this,"asset",null);e(this,"title",u.questTitles["Apprenti Scribe"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.scrolls>=5)}}class tf extends o{constructor(){super(...arguments);e(this,"name","Artisan des Runes");e(this,"id","craft_10_scrolls");e(this,"rank",l.RANKS.RARE);e(this,"description","Craft 10 Parchemins");e(this,"berry",2e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",u.questTitles["Artisan des Runes"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.scrolls>=10)}}class af extends o{constructor(){super(...arguments);e(this,"name","Collectionneur des Manuscrits");e(this,"id","craft_20_scrolls");e(this,"rank",l.RANKS.EPIC);e(this,"description","Craft 20 Parchemins");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",u.questTitles["Collectionneur de Manuscrits"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.scrolls>=20)}}class sf extends o{constructor(){super(...arguments);e(this,"name","Maître des Enluminures");e(this,"id","craft_50_scrolls");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Craft 50 Parchemins");e(this,"berry",5e7);e(this,"xp",2e5);e(this,"asset",null);e(this,"title",u.questTitles["Maître des Enluminures"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.scrolls>=50)}}class nf extends o{constructor(){super(...arguments);e(this,"name","Protecteur du Savoir");e(this,"id","craft_100_scrolls");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Craft 100 Parchemins");e(this,"berry",1e8);e(this,"xp",5e5);e(this,"asset",null);e(this,"title",u.questTitles["Protecteur du Savoir"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.crafts.scrolls>=100)}}class rf extends o{constructor(){super(...arguments);e(this,"name","Vaut mieux ça que perdre non ?");e(this,"id","draw_100");e(this,"rank",l.RANKS.COMMON);e(this,"description","Faire 100 égalités");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.draw>=100)}}class lf extends o{constructor(){super(...arguments);e(this,"name","Tu as trouvé ton rival");e(this,"id","draw_300");e(this,"rank",l.RANKS.RARE);e(this,"description","Faire 300 égalités");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.draw>=300)}}class of extends o{constructor(){super(...arguments);e(this,"name","Rathon c'est toi ?");e(this,"id","draw_1000");e(this,"rank",l.RANKS.EPIC);e(this,"description","Faire 1000 égalités");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.draw>=1e3)}}class df extends o{constructor(){super(...arguments);e(this,"name","Tu te bats contre un mur ou quoi ?");e(this,"id","draw_2000");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Faire 2000 égalités");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.draw>=2e3)}}class cf extends o{constructor(){super(...arguments);e(this,"name","De vrais jumeaux");e(this,"id","draw_5000");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Faire 5000 égalités");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",u.questTitles.Égalitaire);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.draw>=5e3)}}class uf extends o{constructor(){super(...arguments);e(this,"name","Y'a un truc que t'as pas compris ?");e(this,"id","edito_read_100");e(this,"rank",l.RANKS.EPIC);e(this,"description","Lire 100 fois l'édito en une journée");e(this,"berry",25e4);e(this,"xp",25e3);e(this,"secret",!0);e(this,"crew",!1);e(this,"daily",!1);e(this,"title",u.questTitles.Culturé);e(this,"badge",null);e(this,"asset",u.profileAssets.edito);e(this,"isFactionBadge",!1);e(this,"onUserQuestMetaUpdate",s=>s.edito.readToday>=100)}}class ff extends o{constructor(){super(...arguments);e(this,"name","Une fois, pas deux");e(this,"id","everyone");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Tenter de tag everyone");e(this,"berry",-1e6);e(this,"xp",-5e4);e(this,"secret",!0);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.tagEveryone)}}class hf extends o{constructor(){super(...arguments);e(this,"name","Emoji Diable");e(this,"id","double_six");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Faire 50 fois un double six");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"badge",u.BadgeList.doublesix);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.double_six>=50)}}class pf extends o{constructor(){super(...arguments);e(this,"name","Pas de chance ^^");e(this,"id","draw_double_six");e(this,"rank",l.RANKS.RARE);e(this,"description","Faire une fois une égalité en double 6");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.drawDoubleSix>=1)}}class mf extends o{constructor(){super(...arguments);e(this,"name","Jamais 6 sans 7");e(this,"id","seven_quitte_ou_double");e(this,"rank",l.RANKS.MYTHIC);e(this,"description",'Gagner 7 fois de suite "Doubles" au Quitte ou Double');e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"badge",u.BadgeList.chance);e(this,"title",u.questTitles.Chanceux);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.sevenQuitteOuDouble>=1)}}class yf extends o{constructor(){super(...arguments);e(this,"name","Le 5 à la suite");e(this,"id","win_5_in_row");e(this,"rank",l.RANKS.EPIC);e(this,"description","Gagner aux 5 jeux du casino à la suite");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>{const n=s.lastGames.slice(0,5);return n.length<5||ts(n,r=>r.gameType).length<5?!1:n.reduce((r,i)=>r+i.endState,0)===5})}}class gf extends o{constructor(){super(...arguments);e(this,"name","Le 5 à la suite, mais dans l'autre sens");e(this,"id","lose_5_in_row");e(this,"rank",l.RANKS.EPIC);e(this,"description","Perdre aux 5 jeux du casino à la suite");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>{const n=s.lastGames.slice(0,5);return n.length!==5||ts(n,r=>r.gameType).length<5?!1:n.reduce((r,i)=>r+i.endState,0)===-5})}}class _f extends o{constructor(){super(...arguments);e(this,"name","Jacques le noir");e(this,"id","ten_black_jack");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Faire 10 fois BlackJack");e(this,"berry",5e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"badge",u.BadgeList["black-jack"]);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.black_jack>=10)}}class wf extends o{constructor(){super(...arguments);e(this,"name","La feuille enveloppe la pierre ! T'es sûr ?");e(this,"id","paper_100");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Faire 100 fois de suite Papier au PPC");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",u.questTitles.Papyrus);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.rps.lastRps==="paper"&&s.rps.nb>=100)}}class bf extends o{constructor(){super(...arguments);e(this,"name","On fait la paire !");e(this,"id","scissor_100");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Faire 100 fois de suite Ciseaux au PPC");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",u.questTitles.Couturier);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.rps.lastRps==="scissor"&&s.rps.nb>=100)}}class vf extends o{constructor(){super(...arguments);e(this,"name","Golem");e(this,"id","rock_100");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Faire 100 fois de suite Pierre au PPC");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",u.questTitles.Golem);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.rps.lastRps==="rock"&&s.rps.nb>=100)}}class Mf extends o{constructor(){super(...arguments);e(this,"name","LE NEUF ET LE HUIT !!!");e(this,"id","guess_in_one");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Deviner le Juste Prix en un coup");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.guessInOne>=1)}}class Sf extends o{constructor(){super(...arguments);e(this,"name","Sataniste");e(this,"id","bet_666_50_times");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Miser 666 Berry au moins une fois par jour pendant 1 mois");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"secret",!0);e(this,"title",u.questTitles.Démon);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"badge",null);e(this,"asset",u.profileAssets.satan);e(this,"onUserQuestMetaUpdate",s=>s.bet666.amount>=30)}}class kf extends o{constructor(){super(...arguments);e(this,"name","Jour, Nuit");e(this,"id","win_lose_10_times");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description",'Faire un enchaînement "Victoire/Défaite" 10 fois de suite');e(this,"berry",1e6);e(this,"xp",5e4);e(this,"secret",!0);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>{const n=s.lastGames;if(n.length!==20)return!1;for(let r=0;r<n.length;r++)if(r%2===0&&n[r].endState!==1||r%2!==0&&n[r].endState!==-1)return!1;return!0})}}class xf extends o{constructor(){super(...arguments);e(this,"name","Explorateur novice");e(this,"id","finish_10_raids");e(this,"rank",l.RANKS.COMMON);e(this,"description","Réussir 10 expéditions");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",({raidFinished:s})=>s>=10)}}class Rf extends o{constructor(){super(...arguments);e(this,"name","Aventurier intrépide");e(this,"id","finish_25_raids");e(this,"rank",l.RANKS.RARE);e(this,"description","Réussir 25 expéditions");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",({raidFinished:s})=>s>=25)}}class Uf extends o{constructor(){super(...arguments);e(this,"name","Conquérant des terres");e(this,"id","finish_50_raids");e(this,"rank",l.RANKS.EPIC);e(this,"description","Réussir 50 expéditions");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",({raidFinished:s})=>s>=50)}}class Cf extends o{constructor(){super(...arguments);e(this,"name","Pionnier des secrets");e(this,"id","finish_100_raids");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Réussir 100 expéditions");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",({raidFinished:s})=>s>=100)}}class Bf extends o{constructor(){super(...arguments);e(this,"name","Légende vivante");e(this,"id","finish_200_raids");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Réussir 200 expéditions");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"badge",null);e(this,"asset",null);e(this,"title",u.questTitles["Légende vivante"]);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"secret",!1);e(this,"onUserQuestMetaUpdate",({raidFinished:s})=>s>=200)}}class Df extends o{constructor(){super(...arguments);e(this,"name","Vif");e(this,"id","random_message_20");e(this,"rank",l.RANKS.COMMON);e(this,"description","Récupérer 20 Messages aléatoires");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.randomMessage>=20)}}class Of extends o{constructor(){super(...arguments);e(this,"name","Lucky Luke");e(this,"id","random_message_50");e(this,"rank",l.RANKS.RARE);e(this,"description","Récupérer 50 Messages aléatoires");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.randomMessage>=50)}}class Af extends o{constructor(){super(...arguments);e(this,"name","Rapide");e(this,"id","random_message_100");e(this,"rank",l.RANKS.EPIC);e(this,"description","Récupérer 100 Messages aléatoires");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.randomMessage>=100)}}class Nf extends o{constructor(){super(...arguments);e(this,"name","Et Furieux");e(this,"id","random_message_200");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Récupérer 200 Messages aléatoires");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.randomMessage>=200)}}class $f extends o{constructor(){super(...arguments);e(this,"name","Ka-Chow");e(this,"id","random_message_500");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Récupérer 500 Messages aléatoires");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",u.questTitles["Flash Mc Queen"]);e(this,"onUserQuestMetaUpdate",s=>s.randomMessage>=500)}}class If extends o{constructor(){super(...arguments);e(this,"name","Collabo");e(this,"id","collabo");e(this,"rank",l.RANKS.COMMON);e(this,"description","Report une personne au staff");e(this,"berry",1e4);e(this,"xp",5e3);e(this,"secret",!0);e(this,"daily",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"onUserQuestMetaUpdate",s=>s.reportedSomeone)}}class Ff extends o{constructor(){super(...arguments);e(this,"name","Bienvenue sur OPFR");e(this,"id","send_100_msg");e(this,"rank",l.RANKS.COMMON);e(this,"description","Envoyer 100 messages");e(this,"berry",1e4);e(this,"xp",1e3);e(this,"badge",u.BadgeList.ecrire);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({messageSent:s})=>s>=100)}}class Yf extends o{constructor(){super(...arguments);e(this,"name","Une vraie pipelette");e(this,"id","send_1000_msg");e(this,"rank",l.RANKS.RARE);e(this,"description","Envoyer 1 000 messages");e(this,"berry",1e5);e(this,"xp",1e4);e(this,"badge",u.BadgeList.ecrire);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({messageSent:s})=>s>=1e3)}}class Ef extends o{constructor(){super(...arguments);e(this,"name","Faites le taire ");e(this,"id","send_25000_msg");e(this,"rank",l.RANKS.EPIC);e(this,"description","Envoyer 25 000 messages");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",u.BadgeList.ecrire);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({messageSent:s})=>s>=25e3)}}class Lf extends o{constructor(){super(...arguments);e(this,"name","Tu sors de chez toi des fois ?");e(this,"id","send_100000_msg");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Envoyer 100 000 messages");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",u.BadgeList.ecrire);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({messageSent:s})=>s>=1e5)}}class Pf extends o{constructor(){super(...arguments);e(this,"name","J'ai pas les mots... mais toi si !");e(this,"id","send_200000_msg");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Envoyer 200 000 messages");e(this,"berry",1e8);e(this,"xp",25e4);e(this,"badge",u.BadgeList.ecrire);e(this,"asset",null);e(this,"title",u.questTitles.Spammeur);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({messageSent:s})=>s>=2e5)}}class Tf extends o{constructor(){super(...arguments);e(this,"name","T'as reçu ton argent de poche ?");e(this,"id","spend_shop_5m");e(this,"rank",l.RANKS.COMMON);e(this,"description","Dépenser 5 000 000 Berrys dans la boutique");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",u.BadgeList.mode);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalSpentInShop:s})=>s>=5e6)}}class jf extends o{constructor(){super(...arguments);e(this,"name","Tu t'es fait plaisir !");e(this,"id","spend_shop_50m");e(this,"rank",l.RANKS.RARE);e(this,"description","Dépenser 50 000 000 Berrys dans la boutique");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",u.BadgeList.mode);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalSpentInShop:s})=>s>=5e7)}}class qf extends o{constructor(){super(...arguments);e(this,"name","C'était les soldes j'espère !");e(this,"id","spend_shop_500m");e(this,"rank",l.RANKS.EPIC);e(this,"description","Dépenser 500 000 000 Berrys dans la boutique");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",u.BadgeList.mode);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalSpentInShop:s})=>s>=5e8)}}class Hf extends o{constructor(){super(...arguments);e(this,"name","Paré pour la Fashion Week");e(this,"id","spend_shop_5ml");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Dépenser 5 000 000 000 Berrys dans la boutique");e(this,"berry",5e6);e(this,"xp",1e5);e(this,"badge",u.BadgeList.mode);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalSpentInShop:s})=>s>=5e9)}}class Qf extends o{constructor(){super(...arguments);e(this,"name","Fashion Viktim");e(this,"id","spend_shop_50ml");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Dépenser 50 000 000 000 Berrys dans la boutique");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"badge",u.BadgeList.mode);e(this,"asset",null);e(this,"title",u.questTitles["Fashion Viktim"]);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalSpentInShop:s})=>s>=5e10)}}class Gf extends o{constructor(){super(...arguments);e(this,"name","On commence à se connaître");e(this,"id","voice_1_hours");e(this,"rank",l.RANKS.COMMON);e(this,"description","Se connecter 10h en vocal");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"badge",u.BadgeList.ermite);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"secret",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalMinutesInVoice:s})=>s>=60*10)}}class Kf extends o{constructor(){super(...arguments);e(this,"name","Je sais tout de toi");e(this,"id","voice_10_hours");e(this,"rank",l.RANKS.RARE);e(this,"description","Se connecter 25h en vocal");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"badge",u.BadgeList.ermite);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"secret",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalMinutesInVoice:s})=>s>=60*25)}}class Wf extends o{constructor(){super(...arguments);e(this,"name","T'as pas soif ?");e(this,"id","voice_250_hours");e(this,"rank",l.RANKS.EPIC);e(this,"description","Se connecter 250h en vocal");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"badge",u.BadgeList.ermite);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"secret",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalMinutesInVoice:s})=>s>=60*250)}}class Vf extends o{constructor(){super(...arguments);e(this,"name","Ok Socrate");e(this,"id","voice_2500_hours");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Se connecter 2500h en vocal");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"badge",u.BadgeList.ermite);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"secret",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalMinutesInVoice:s})=>s>=60*2500)}}class zf extends o{constructor(){super(...arguments);e(this,"name","Elle ressemble à quoi la lumière du soleil ?");e(this,"id","voice_5000_hours");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Se connecter 5000h en vocal");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",u.questTitles.Ermite);e(this,"badge",u.BadgeList.ermite);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"secret",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({totalMinutesInVoice:s})=>s>=60*5e3)}}class Xf extends o{constructor(){super(...arguments);e(this,"name","Stagiaire");e(this,"id","work_100");e(this,"rank",l.RANKS.COMMON);e(this,"description","Travailler 100 fois");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.work>=100)}}class Zf extends o{constructor(){super(...arguments);e(this,"name","Alternant");e(this,"id","work_300");e(this,"rank",l.RANKS.RARE);e(this,"description","Travailler 300 fois");e(this,"berry",2e5);e(this,"xp",25e3);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.work>=300)}}class Jf extends o{constructor(){super(...arguments);e(this,"name","Smicard");e(this,"id","work_1000");e(this,"rank",l.RANKS.EPIC);e(this,"description","Travailler 1000 fois");e(this,"berry",1e6);e(this,"xp",5e4);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.work>=1e3)}}class e0 extends o{constructor(){super(...arguments);e(this,"name","Communiste");e(this,"id","work_2000");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Travailler 2000 fois");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.work>=2e3)}}class t0 extends o{constructor(){super(...arguments);e(this,"name","Esclave");e(this,"id","work_5000");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Travailler 5000 fois");e(this,"berry",5e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",u.questTitles.Esclave);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.work>=5e3)}}class a0 extends o{constructor(){super(...arguments);e(this,"name","Timide");e(this,"id","write_10_chats");e(this,"rank",l.RANKS.COMMON);e(this,"description","Écrire dans 10 chats différents");e(this,"berry",1e4);e(this,"xp",1e3);e(this,"badge",u.BadgeList.exploration);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({writeDifferentChat:s})=>s.length>=10)}}class s0 extends o{constructor(){super(...arguments);e(this,"name","Curieux");e(this,"id","write_20_chats");e(this,"rank",l.RANKS.RARE);e(this,"description","Écrire dans 20 chats différents");e(this,"berry",1e5);e(this,"xp",1e4);e(this,"badge",u.BadgeList.exploration);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({writeDifferentChat:s})=>s.length>=20)}}class n0 extends o{constructor(){super(...arguments);e(this,"name","Voyeur");e(this,"id","write_50_chats");e(this,"rank",l.RANKS.EPIC);e(this,"description","Écrire dans 50 chats différents");e(this,"berry",5e5);e(this,"xp",5e4);e(this,"badge",u.BadgeList.exploration);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({writeDifferentChat:s})=>s.length>=50)}}class r0 extends o{constructor(){super(...arguments);e(this,"name","Philanthrope");e(this,"id","write_100_chats");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Écrire dans 100 chats différents");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"badge",u.BadgeList.exploration);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({writeDifferentChat:s})=>s.length>=100)}}class i0 extends o{constructor(){super(...arguments);e(this,"name","Explorateur");e(this,"id","write_200_chats");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Écrire dans 200 chats différents");e(this,"berry",1e7);e(this,"xp",25e4);e(this,"asset",null);e(this,"title",u.questTitles.Explorateur);e(this,"badge",u.BadgeList.exploration);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",({writeDifferentChat:s})=>s.length>=200)}}const Ia=Object.freeze(Object.defineProperty({__proto__:null,Bet10M:Ru,Bet666:Sf,BetMinValue:ku,Birthday:Ou,BotPing:Au,ChestOpen1000Quest:ju,ChestOpen150Quest:Pu,ChestOpen2000Quest:qu,ChestOpen500Quest:Tu,ChestOpen50Quest:Lu,Craft1000Times:Wu,Craft100CookedMeals:Xu,Craft100Scrolls:nf,Craft10CookedMeals:Vu,Craft10Scrolls:tf,Craft200Times:Gu,Craft20Scrolls:af,Craft20Times:Hu,Craft250CookedMeals:Zu,Craft500CookedMeals:Ju,Craft500Times:Ku,Craft50CookedMeals:zu,Craft50Scrolls:sf,Craft50Times:Qu,Craft5Scrolls:ef,DoubleSix:hf,Draw1000Quest:of,Draw100Quest:rf,Draw2000Quest:df,Draw300Quest:lf,Draw5000Quest:cf,DrawDoubleSix:pf,Drink1000Quest:Fu,Drink100Today:Nu,Drink2000Quest:Yu,Drink200Quest:$u,Drink5000Quest:Eu,Drink500Quest:Iu,Edito:uf,Everyone:ff,Finish100Raids:Cf,Finish10Raids:xf,Finish200Raids:Bf,Finish25Raids:Rf,Finish50Raids:Uf,GuessInOne:Mf,Lose10M:Du,LoseAll5GamesInRow:gf,LoseEverything:xu,Paper100:wf,RandomMessage100Quest:Af,RandomMessage200Quest:Nf,RandomMessage20Quest:Df,RandomMessage500Quest:$f,RandomMessage50Quest:Of,Report:If,Rock100:vf,Scissor100:bf,SevenQuitteOuDouble:mf,SpendShop500M:qf,SpendShop50M:jf,SpendShop50Ml:Qf,SpendShop5M:Tf,SpendShop5Ml:Hf,TenBlackJack:_f,TotalBet10M:Cu,TotalBet1Md:Bu,Voice10Hours:Gf,Voice2500Hours:Vf,Voice250Hours:Wf,Voice25Hours:Kf,Voice5000Hours:zf,WinAll5GamesInRow:yf,WinLose10:kf,WinOn10MBet:Uu,Work1000Quest:Jf,Work100Quest:Xf,Work2000Quest:e0,Work300Quest:Zf,Work5000Quest:t0,Write100Chats:r0,Write10Chats:a0,Write200Chats:i0,Write20Chats:s0,Write50Chats:n0,send100000Messages:Lf,send1000Messages:Yf,send100Messages:Ff,send200000Messages:Pf,send25000Messages:Ef},Symbol.toStringTag,{value:"Module"})),l0=[...Object.values(Na),...Object.values($a),...Object.values(Aa),...Object.values(Ia),...Object.values(Oa)],o0=async t=>{var s;const a={};for(const n of Object.values(Oa)){const r=new n;if((s=r.onCrewUpdate)!=null&&s.call(r,t))for(const i of t.members){const d=await Ja(i,{_id:1}),f=await r.complete(d._id,{});if(f){const g=a[d.id];a[d.id]=g?[d._id,[...g[1],[r,f]]]:[d._id,[[r,f]]]}}}Object.values(a).forEach(([n,r])=>{Te("crewUpdate",n,r)})},Fa=new p.Schema({createdBy:String,members:{type:[String],default:[]},limit:{type:Number,default:3},name:String,description:String,channelId:String,meta:{xp:{type:Number,default:0},berry:{type:Number,default:0},buffs:{xp:{boost:{type:Number,default:0},expireAt:{type:Date,default:null}}}},disintegration:{type:Number,default:100},faction:String,stats:{type:Object,default:{}},quest:{completed:[String],daily:{type:Object,default:{}},meta:{streak80Percent:{type:Number,default:0},maxVoiceMembers:{type:Number,default:0},actualVoiceMembers:{amount:{type:Number,default:0},connectedAt:{type:Date,default:new Date}}}},ornament:{unlockedBadges:[String]}},{timestamps:!0,minimize:!1});Fa.index({"meta.xp":-1}),Fa.post("findOneAndUpdate",async function(t){await o0(t)});const je=((or=p.models)==null?void 0:or.Crew)||p.model("Crew",Fa),d0=(t,a)=>Math.ceil(a*(t.disintegration/100)*(an(t)||1)),an=t=>new Date>=(t.meta.buffs.xp.expireAt??new Date(0))?!1:t.meta.buffs.xp.boost,c0=Object.freeze(Object.defineProperty({__proto__:null,calcXp:d0,getCrewRank:async t=>(await je.aggregate([{$setWindowFields:{sortBy:{"meta.xp":-1},output:{rank:{$rank:{}}}}},{$match:{_id:t._id}},{$project:{_id:1,"meta.xp":1,rank:1}}]))[0],getCrewRanking:async()=>je.aggregate([{$sort:{"meta.xp.amount":-1}},{$limit:10}]),hasXpBuff:an,isAllDailyCompleted:(t,a)=>{for(const[,s]of Object.entries(t.quest.daily??{}))if(!s||!rt(s[a],new Date))return!1;return Object.keys(t.quest.daily??{}).length===t.members.length}},Symbol.toStringTag,{value:"Module"})),Q=async(t,a)=>{await je.findOneAndUpdate({_id:t},a,{returnDocument:"after"})},sn=async(t,a)=>{await Q(t,{$addToSet:{"quest.completed":a}})},nn=async(t,a,s)=>{await Q(t,[{$addFields:{[`quest.daily.${a}.${s}`]:new Date}}])},rn=async(t,a,s)=>{a.isProgressive?await Q(t,{$addToSet:{"ornament.unlockedBadges":`${a.id}_${s}`}}):await Q(t,{$addToSet:{"ornament.unlockedBadges":a.id}})},u0=Object.freeze(Object.defineProperty({__proto__:null,addBerry:async(t,a,s)=>{await Q(t,{$inc:{"meta.berry":a,[`stats.${s.toHexString()}.berry`]:a}})},addMember:async(t,a)=>{await Q(t,{$addToSet:{members:a}})},addXp:async(t,a,s)=>{await Q(t,{$inc:{"meta.xp":a,[`stats.${s.toHexString()}.xp`]:a}})},addXpBuff:async(t,a)=>{await Q(t,[{$set:{"meta.buffs.xp":{$cond:{if:{$or:[{$eq:["$meta.buffs.xp.expireAt",null]},{lt:["$meta.buffs.xp.expireAt",new Date]}]},then:{boost:1.1,expireAt:{$add:[new Date,a*60*60*1e3]}},else:{boost:1.1,expireAt:{$add:["$meta.buffs.xp.expireAt",a*60*60*1e3]}}}}}}])},applyDisintegration:async(t,a)=>{const[s,n]=[a-2,(a-3)*2+3];await Q(t,[{$set:{disintegration:{$max:[{$add:["$disintegration",-1*es(s,n)]},0]}}}])},completeDailyQuest:nn,completeQuest:sn,increaseLimit:async(t,a)=>{await Q(t,{$inc:{limit:1},$set:{"meta.berry":-a}})},repair:async(t,a)=>{await Q(t,[{$set:{disintegration:{$min:[{$add:["$disintegration",a]},100]}}}])},setActualVoiceMembers:async(t,a)=>{await Q(t,{$set:{"quest.meta.actualVoiceMembers.amount":a,"quest.meta.actualVoiceMembers.connectedAt":new Date}})},setMaxVoiceMembers:async(t,a)=>{await Q(t,{$set:{"quest.meta.maxVoiceMembers":a}})},unlockBadge:rn},Symbol.toStringTag,{value:"Module"})),f0=async(t,a={})=>{const s=await je.findById(t,a);return s||null},h0=async(t,{name:a,description:s,channelId:n,faction:r})=>await je.create({name:a,description:s,createdBy:t,channelId:n,faction:r,members:[t]}),ln=new p.Schema({senderId:String,receiverId:String,amount:Number,gameMode:String,meta:{rps:{type:String,default:void 0}}});ln.index({receiverId:1});const Et=((dr=p.models)==null?void 0:dr.Invitations)||p.model("Invitations",ln),p0=async t=>{const a=await Et.findOne({...t});return a||null},m0=async t=>await Et.create({...t}),y0=async t=>{await Et.deleteMany({...t})},on=new p.Schema({guildId:{type:String,required:!0,unique:!0},suggestionChannelId:{type:String,default:null},reportChannelId:{type:String,default:null},reportModeratorChannelId:{type:String,default:null},factionChannelId:{type:String,default:null},discussionChannelId:{type:String,default:null},questFallbackChannelId:{type:String,default:null},reportBugChannelId:{type:String,default:null},expeditionChannelId:{type:String,default:null},ranking:{channelId:{type:String,default:null},messageId:{type:String,default:null}},edito:{channelId:{type:String,default:null},price:{type:Number,default:100},sentAtMidnight:{type:Boolean,default:!1},messageId:{type:String,default:null}},crew:{infoChannelId:{type:String,default:null},crewChannelIds:{type:[{channelId:{type:String},crewId:{type:String}}],default:[]}},shopChannelId:{type:String,default:null},blackMarketChannelId:{type:String,default:null}});on.index({"meta.xp":-1});const Lt=((cr=p.models)==null?void 0:cr.Settings)||p.model("Settings",on),E=async(t,a,s=!1)=>{await Lt.updateOne({guildId:t},a,{upsert:s})},g0=Object.freeze(Object.defineProperty({__proto__:null,addCrewChannelId:async(t,a,s)=>{await E(t,{$push:{"crew.crewChannelIds":{channelId:s,crewId:a}}})},randomizeEditoPrice:async t=>{const a=es(100,1001);return await E(t,{$set:{"edito.price":a}}),a},sentAtMidnight:async(t,a)=>{await E(t,{$set:{"edito.sentAtMidnight ":a}})},setCrewInfoChannelId:async(t,a)=>{await E(t,{$set:{"crew.infoChannelId":a}})},setDiscussionChannelId:async(t,a)=>{await E(t,{$set:{discussionChannelId:a}})},setEditoChannel:async(t,a)=>{await E(t,{$set:{"edito.channelId":a}})},setEditoMessageId:async(t,a)=>{await E(t,{$set:{"edito.messageId ":a}})},setFactionChannel:async(t,a)=>{await E(t,{$set:{factionChannelId:a}})},setQuestChannelId:async(t,a)=>{await E(t,{$set:{questFallbackChannelId:a}})},setRankingChannel:async(t,a)=>{await E(t,{$set:{"ranking.channelId":a}})},setRankingMessage:async(t,a)=>{await E(t,{$set:{"ranking.messageId":a}})},setReportBugChannelId:async(t,a)=>{await E(t,{$set:{reportBugChannelId:a}})},setReportChannel:async(t,a)=>{await E(t,{$set:{reportChannelId:a}})},setReportModeratorChannel:async(t,a)=>{await E(t,{$set:{reportModeratorChannelId:a}})},setShopChannelId:async(t,a,s)=>{await E(t,{$set:{shopChannelId:a,blackMarketChannelId:s}})},setSuggestionChannel:async(t,a)=>{await E(t,{$set:{suggestionChannelId:a}})}},Symbol.toStringTag,{value:"Module"})),dn=async t=>await Lt.create({guildId:t}),_0=async(t,a={})=>{const s=await Lt.findOne({guildId:t},a);return s||dn(t)};class me{constructor(){e(this,"name");e(this,"price");e(this,"size");e(this,"data");if(this.constructor===me)throw new Error("Abstract classes can't be instantiated.")}toDBShopItem(){return{name:this.name,price:this.price,size:this.size,itemId:this.data.id}}async onBuy(a,s){await An(a,-1*this.price*s),await Xn(a,this.price*s)}isBackground(){return!1}isChest(){return!1}isTitle(){return!1}isBoostXp(){return!1}isRepair(){return!1}isStore(){return!1}isCraft(){return!1}}class cn extends me{constructor({name:a,price:s,item:n,size:r}){super(),this.name=a,this.data=n,this.price=s,this.size=r}async onBuy(a,s){await super.onBuy(a,s),await Yn(a,this.data.background.id)}isBackground(){return!0}}class un extends me{constructor({name:a,price:s,item:n,size:r}){super(),this.name=a,this.data=n,this.price=s,this.size=r}async onBuy(a,s){await super.onBuy(a,s),await Me(a,this.data.id,s)}isBoostXp(){return!0}}class fn extends me{constructor({name:a,price:s,item:n,size:r}){super(),this.name=a,this.data=n,this.price=s,this.size=r}async onBuy(a,s){await super.onBuy(a,s),await Me(a,this.data.id,s)}isChest(){return!0}}class hn extends me{constructor({name:a,price:s,item:n,size:r}){super(),this.name=a,this.data=n,this.price=s,this.size=r}async onBuy(a,s){await super.onBuy(a,s),await Me(a,this.data.id,s)}isCraft(){return!0}}class pn extends me{constructor({name:a,price:s,item:n,size:r}){super(),this.name=a,this.data=n,this.price=s,this.size=r}async onBuy(a,s){await super.onBuy(a,s),await Me(a,this.data.id,s)}isRepair(){return!0}}class mn extends me{constructor({name:a,price:s,item:n,size:r}){super(),this.name=a,this.data=n,this.price=s,this.size=r}async onBuy(a,s){await super.onBuy(a,s),await Me(a,this.data.id,s)}isStore(){return!0}}class yn extends me{constructor({name:a,price:s,item:n,size:r}){super(),this.name=a,this.data=n,this.price=s,this.size=r}async onBuy(a,s){await super.onBuy(a,s),await Wa(a,this.data.title.name)}isTitle(){return!0}}const gn=(t,a)=>{const s=t.items.find(n=>n.name===a);if(s){const{name:n,price:r,size:i}=s,d=D.findItem(s.itemId);if(D.isBackgroundItem(d))return new cn({name:n,price:r,item:d,size:i});if(D.isTitleItem(d))return new yn({name:n,price:r,item:d,size:i});if(D.isChestItem(d))return new fn({name:n,price:r,item:d,size:i});if(D.isBoostItem(d))return new un({name:n,price:r,item:d,size:i});if(D.isRepairItem(d))return new pn({name:n,price:r,item:d,size:i});if(D.isStoreItem(d))return new mn({name:n,price:r,item:d,size:i});if(D.isObjectItem(d))return new hn({name:n,price:r,item:d,size:i})}},w0=Object.freeze(Object.defineProperty({__proto__:null,getShopItem:gn,getShopItemList:t=>{const a=[];for(const{name:s}of t.items){const n=gn(t,s);n&&a.push(n)}return a}},Symbol.toStringTag,{value:"Module"})),_n=new p.Schema({shopType:{type:String,required:!0,unique:!0},publishedAt:{type:Date,default:new Date},duration:{type:Number,default:null},closeAt:{type:Date,default:null},items:{type:[{name:String,price:Number,size:{type:Number,default:null},itemId:String}],default:[]},stats:{berrySpent:{type:Number,default:0},itemBought:{type:Number,default:0},chestBought:{type:Number,default:0},boostTimeBought:{type:Number,default:0},percentBought:{type:Number,default:0}}});_n.index({shopType:1});const Pt=((ur=p.models)==null?void 0:ur.Shop)||p.model("Shop",_n),b0=async(t,a)=>{await wn({shopType:t},a,!0)},Ya=async(t,a)=>{await wn({_id:t},a,!0)},wn=async(t,a,s=!1)=>{await Pt.updateOne(t,a,{upsert:s})},v0=Object.freeze(Object.defineProperty({__proto__:null,buyShopItem:async(t,a,s,n)=>{const r=a.map(i=>(i.name===s.name&&i.size&&(i.size-=n),i));await Ya(t,{$set:{items:r}})},publish:async t=>{await Ya(t,{$set:{publishedAt:new Date}})},setShopItems:async(t,a)=>{await b0(t,{$set:{items:[...a]}})},updateShopStats:async(t,a,s)=>{await Ya(t,{$inc:{"stats.berrySpent":a.price*s,"stats.itemBought":s,"stats.chestBought":a.isChest()?s:0,"stats.percentBought":a.isRepair()?a.data.repair*s:0,"stats.boostTimeBought":a.isBoostXp()?a.data.id==="boost_xp_day"?s:7*s:0}})}},Symbol.toStringTag,{value:"Module"})),M0=t=>Pt.create({shopType:t}),S0=async(t,a={})=>{const s=await bn({shopType:t},a);return s||await M0(t)},bn=(t,a={})=>Pt.findOne(t,a),k0=Object.freeze(Object.defineProperty({__proto__:null,getCommandCooldown:(t,a)=>t.commands[a],getRaidCooldown:(t,a)=>t.raid[a?"special":"classic"]},Symbol.toStringTag,{value:"Module"})),Ea=new p.Schema({user:{type:p.Schema.Types.ObjectId,ref:"User",required:!0},date:Date,type:String},{minimize:!1});Ea.index({user:1}),Ea.index({date:-1});const Be=((fr=p.models)==null?void 0:fr.Reminder)||p.model("Reminder",Ea),x0=Object.freeze(Object.defineProperty({__proto__:null,getAllPassedReminder:async()=>await Be.find({date:{$lte:new Date}})},Symbol.toStringTag,{value:"Module"})),R0=async(t,a)=>{await Be.deleteOne({user:t,type:a})},vn=async(t,a,s,n)=>{await Be.updateOne({user:t,type:a},s,{upsert:n})},La=async(t,a,s)=>{await vn(t,a,{$set:{date:s}},!0)},Pa=async(t,a,s)=>{await vn(t,a,[{$set:{date:{$add:["$date",s]}}}],!1)},U0=Object.freeze(Object.defineProperty({__proto__:null,addReminder:La,deleteSelectedReminders:async t=>{await Be.deleteMany({_id:{$in:t}})},removeReminder:async(t,a)=>{await R0(t,a)},updateReminderDate:Pa},Symbol.toStringTag,{value:"Module"})),C0=async(t,a={})=>{const s=await Be.findOne({user:t},a);return s||null},B0=async(t,a,s)=>await Be.create({user:t,date:a,type:s}),Mn=new p.Schema({user:{type:p.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},raid:{classic:{type:Date,default:new Date(0)},special:{type:Date,default:new Date(0)}},lockUserCommand:{type:Date,default:new Date(0)},commands:{work:{type:Date,default:new Date(0)},dice:{type:Date,default:new Date(0)},qod:{type:Date,default:new Date(0)},guess:{type:Date,default:new Date(0)},blackjack:{type:Date,default:new Date(0)},rps:{type:Date,default:new Date(0)}}});Mn.index({user:1});const it=((hr=p.models)==null?void 0:hr.UserCooldown)||p.model("UserCooldown",Mn),Tt=async(t,a)=>{await it.updateOne({user:t},a,{upsert:!0})},D0=async(t,a)=>{await Tt(t,[{$set:{"raid.special":{$subtract:[{$ifNull:["$raid.special",new Date]},a*3600*1e3]},"raid.classic":{$subtract:[{$ifNull:["$raid.classic",new Date]},a*3600*1e3]}}}]),await Pa(t,"raid/special",-1*a*3600*1e3),await Pa(t,"raid/classic",-1*a*3600*1e3)},Sn=async(t,a,s)=>{await Tt(t,{$set:{...a?{"raid.special":new Date(Date.now()+7*24*60*60*1e3)}:{"raid.classic":new Date(Date.now()+7*24*60*60*1e3)}}}),s.raid[a?"special":"classic"]&&await La(t,a?"raid/special":"raid/classic",new Date(Date.now()+7*24*60*60*1e3))},kn=async t=>{await Tt(t,{$set:{lockUserCommand:new Date}})},O0=Object.freeze(Object.defineProperty({__proto__:null,lockUserCommand:kn,reduceRaidCooldown:D0,startRaidCooldown:Sn,useCommand:async(t,a,s,n)=>{await Tt(t,{$set:{[`commands.${a}`]:new Date(Date.now()+s)}}),n.commands[a]&&await La(t,`commands/${a}`,new Date(Date.now()+s))}},Symbol.toStringTag,{value:"Module"})),A0=["work","rps","blackjack","guess","qod","dice"],xn=async t=>await it.create({user:t}),N0=async(t,a={})=>{const s=await it.findOne({user:t},a);return s||await xn(t)},Ta=new p.Schema({user:{type:p.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},crew:{type:p.Schema.Types.ObjectId,ref:"Crew",required:!0,index:!0},permission:String,percent:Number});Ta.virtual("inventory",{ref:"Crew",localField:"crew",foreignField:"_id",justOne:!0}),Ta.index({user:1});const qe=((pr=p.models)==null?void 0:pr.UserCrew)||p.model("UserCrew",Ta),$0=async(t,a)=>{await qe.updateOne({user:t},a,{upsert:!0})},I0=Object.freeze(Object.defineProperty({__proto__:null,updatePercent:async(t,a)=>{await $0(t,{$set:{percent:a}})}},Symbol.toStringTag,{value:"Module"})),Rn=t=>qe.findOne({user:t}),F0=async(t,a,s,n)=>await qe.create({user:t,crew:a,percent:n,permission:s}),Y0=t=>qe.exists({user:t}),Un=new p.Schema({user:{type:p.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},xpYesterday:{type:Number,default:0},berryYesterday:{type:Number,default:0},previousOrnament:{unlockedBadges:{type:[String],default:[]},unlockedTitles:{type:[String],default:[]},unlockedBackgrounds:{type:[String],default:[]}},previousCompletedQuest:{type:[String],default:[]},previousMessageSent:{type:Number,default:0}});Un.index({user:1});const jt=((mr=p.models)==null?void 0:mr.UserDailyReport)||p.model("UserDailyReport",Un),E0=async(t,a)=>{await jt.updateOne({user:t},a,{upsert:!0})},L0=Object.freeze(Object.defineProperty({__proto__:null,updateDailyReport:async(t,a)=>{await E0(t,{$set:{xpYesterday:a.meta.xp.amount,berryYesterday:a.meta.berry,previousCompletedQuest:a.quest.completed,"previousOrnament.unlockedBadges":a.ornaments.unlockedBadges,"previousOrnament.unlockedTitles":a.ornaments.unlockedTitles,"previousOrnament.unlockedBackgrounds":a.ornaments.unlockedBackgrounds,previousMessageSent:a.questMeta.messageSent}})}},Symbol.toStringTag,{value:"Module"})),Cn=new p.Schema({user:{type:p.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},guess:{tries:Number,amount:Number,numberToGuess:Number}});Cn.index({user:1});const lt=((yr=p.models)==null?void 0:yr.UserGames)||p.model("UserGames",Cn),ja=async(t,a)=>{await lt.updateOne({user:t},a,{upsert:!0})},P0=Object.freeze(Object.defineProperty({__proto__:null,resetGuessGame:async t=>{await ja(t,{$set:{guess:void 0}})},setGuessGame:async(t,a,s,n)=>{await ja(t,{$set:{guess:{amount:a,tries:s,numberToGuess:n}}})},updateGuessGame:async t=>{await ja(t,{$inc:{"guess.tries":1}})}},Symbol.toStringTag,{value:"Module"})),Bn=async t=>await lt.create({user:t}),T0=async(t,a)=>{const s=await lt.findOne({user:t},a);return s||await Bn(t)},j0=(t,a)=>{const s=Er(Object.values(t.equippedItems)),n=a.equipments.filter(r=>s.find(i=>i.id===r.id)).length;return n===a.equipments.length?a.fullBonus:n>=a.equipments.length/2?a.halfBonus:null},qa=t=>{let a={vitality:0,strength:0,agility:0,chance:0,intelligence:0,wisdom:0};for(const s of D.EQUIPMENT_SLOT){const n=t.equippedItems[s];n&&(a=Da(a,D.fromDBToEquipableEquipment(n).characteristics,(r,i)=>r+i))}for(const s of D.allPanoplies){const n=j0(t,s);n&&(a=Da(a,n,(r,i)=>r+i))}return a},q0=Object.freeze(Object.defineProperty({__proto__:null,getItemList:t=>Object.fromEntries(t.itemList),getUserEquipmentsCharacteristics:qa,hasEnoughItemsForRecipe:(t,a,s)=>{for(const n of a)if((t.itemList.get(n.itemId)||0)<n.size*s)return!1;return!0},hasEnoughTools:(t,a)=>(t.itemList.get("tools")||0)>=a,hasInventoryRequirements:(t,a)=>qd(a).reduce((s,[n,r])=>s&&(t.itemList.get(n)??0)>=(r??0),!0),maxCraftQuantity:(t,a)=>{let s=1/0;for(const n of a)s=Math.min(s,Math.floor((t.itemList.get(n.itemId)||0)/n.size));return s}},Symbol.toStringTag,{value:"Module"})),H0=async t=>{var s;const a=[];for(const n of Object.values(Na)){const r=new n;if((s=r.onUserMetaUpdate)!=null&&s.call(r,t)){const i=await r.complete(t.user._id,{_userMeta:t});i&&a.push([r,i])}}a.length>0&&Te("userMetaUpdate",t.user._id,a)},Q0=async t=>{var s;const a=[];for(const n of Object.values(Ia)){const r=new n;if((s=r.onUserQuestMetaUpdate)!=null&&s.call(r,t)){const i=await r.complete(t.user._id,{});i&&a.push([r,i])}}a.length>0&&Te("userQuestMetaUpdate",t.user._id,a)},He={multiplier:{type:Number,default:0},origin:String,expireAt:Date,startAt:{type:Date,default:null}},ot=new p.Schema({user:{type:p.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},premium:{type:Boolean,default:!1},berry:{type:Number,default:0,index:!0},xp:{lastMessageWithXp:{type:Date,default:new Date},voice:{lastConnection:{type:Date,default:new Date},minutesInVoiceToday:{type:Number,default:0}},amount:{type:Number,default:0,index:!0},boost:{type:Date,default:null}},buffs:{cooldown:{casino:{type:[He],default:[]},work:{type:[He],default:[]}},berry:{work:{type:[He],default:[]},global:{type:[He],default:[]}},drop:{work:{type:[He],default:[]}},xp:{global:{type:[He],default:[]}}},hp:{type:Number,default:100},characteristics:{vitality:{type:Number,default:0},strength:{type:Number,default:0},agility:{type:Number,default:0},chance:{type:Number,default:0},intelligence:{type:Number,default:0},wisdom:{type:Number,default:0}},resetCharacteristics:{free:{type:Boolean,default:!0},nextAvailable:{type:Date,default:null}},scrolls:{vitality:{type:Number,default:0},strength:{type:Number,default:0},agility:{type:Number,default:0},chance:{type:Number,default:0},intelligence:{type:Number,default:0},wisdom:{type:Number,default:0}}});ot.index({user:1}),ot.index({"xp.amount":-1}),ot.index({berry:-1}),ot.post("findOneAndUpdate",async function(t){await H0(t),t.hp<=0&&await kn(t._id)});const be=((gr=p.models)==null?void 0:gr.UserMeta)||p.model("UserMeta",ot),Dn=async t=>await be.create({user:t}),dt=async(t,a={})=>{const s=await be.findOne({user:t},a);return s||await Dn(t)},Ha=t=>Object.fromEntries(l.CHARACTERISTICS.map(a=>[a,Rr.getComputedCharacteristicValue(t.characteristics[a])+t.scrolls[a]])),G0=t=>Date.now()-t.xp.lastMessageWithXp.getTime()>60*1e3,Qa=t=>{const{boost:a}=t.xp;return(a!==null&&Date.now()<a.getTime()?.2:0)+(t.premium?.5:0)+t.buffs.xp.global.reduce((s,{expireAt:n,startAt:r,multiplier:i})=>s+((r??new Date)<=new Date&&!Pe(n)?i:0),0)},K0=t=>{const a=t.trim().length,s=2;return a<10?10*s:a>300?300*s:a*s},W0=(t,a,s)=>(a*=1+Qa(t),Math.ceil(a*s)),V0=(t,a)=>{const s=On(t);return a<=0?a:Math.ceil(a*(s||1))},z0=t=>t.buffs.cooldown.work.reduce((a,{expireAt:s,startAt:n,multiplier:r})=>a+(new Date>=(n??new Date)&&!Pe(s)?r:0),1),X0=t=>t.buffs.drop.work.reduce((a,{expireAt:s,startAt:n,multiplier:r})=>a+(new Date>=(n??new Date)&&!Pe(s)?r:0),1),Z0=t=>t.buffs.berry.work.reduce((a,{expireAt:s,startAt:n,multiplier:r})=>a+(new Date>=(n??new Date)&&!Pe(s)?r:0),1),On=t=>t.buffs.berry.global.reduce((a,{expireAt:s,startAt:n,multiplier:r})=>a+(new Date>=(n??new Date)&&!Pe(s)?r:0),1),J0=t=>t.buffs.cooldown.casino.reduce((a,{expireAt:s,startAt:n,multiplier:r})=>a+(new Date>=(n??new Date)&&!Pe(s)?r:0),1),ve=async(t,a,s)=>{const n=a??await dt(t,{buffs:-1,xp:-1}),r=s??await Ht(t,{itemList:-1,equipmentList:-1});return((Ha(n).vitality??0)+qa(r).vitality)*l.HP_PER_VITALITY+l.DEFAULT_MAX_HP},eh=Object.freeze(Object.defineProperty({__proto__:null,calcBerry:V0,calcBerryGlobalBuff:On,calcBerryWorkBuff:Z0,calcCooldownCasinoBuff:J0,calcCooldownWorkBuff:z0,calcDropWorkBuff:X0,calcMessageXp:K0,calcXp:W0,calcXpBoost:Qa,getBerryRank:async t=>(await be.aggregate([{$setWindowFields:{sortBy:{berry:-1},output:{rank:{$rank:{}}}}},{$match:{_id:t}},{$project:{rank:1}}]))[0],getGlobalRank:async t=>(await be.aggregate([{$setWindowFields:{sortBy:{"xp.amount":-1},output:{rank:{$rank:{}}}}},{$match:{_id:t}},{$project:{rank:1}}]))[0],getMaxHp:ve,getTotalCharacteristics:Ha,hasCharacteristicRequirement:async(t,a,s,n)=>{const r=s??await dt(t,{buffs:-1,xp:-1}),i=n??await Ht(t,{itemList:-1,equipmentList:-1}),d=Da(Ha(r),qa(i),(f,g)=>f+g);for(const f of Object.keys(a))if(d[f]<(a[f]??0))return!1;return!0},hasMalusBuff:t=>{const a=[...t.buffs.xp.global,...t.buffs.berry.global,...t.buffs.berry.work,...t.buffs.cooldown.work,...t.buffs.cooldown.casino,...t.buffs.drop.work];for(const{multiplier:s,startAt:n,expireAt:r}of a)if(s<0&&new Date<r&&(n??new Date)<=new Date)return!0;return!1},isCooldownForXpPassed:G0},Symbol.toStringTag,{value:"Module"})),th=(t,a)=>be.findOneAndUpdate({user:t},a,{returnDocument:"after",upsert:!0}),L=async(t,a)=>{await be.findOneAndUpdate({user:t},a,{returnDocument:"after",upsert:!0})},ah=async t=>{await L(t,{$set:{"xp.lastMessageWithXp":new Date}})},sh=async(t,a)=>{await L(t,{$inc:{"xp.amount":a}})},An=async(t,a)=>{await L(t,[{$set:{berry:{$max:[{$add:["$berry",a]},0]}}}])},nh=async(t,a)=>{await L(t,{$set:{premium:a}})},rh=async(t,a)=>{const{xp:{boost:s}}=await th(t,[{$set:{"xp.boost":{$cond:{if:{$or:[{$not:"$xp.boost"},{$lt:["$xp.boost",new Date]}]},then:{$add:[new Date,a]},else:{$add:["$xp.boost",a]}}}}}]);return s},ih=async(t,a,s,n,r,i)=>{await L(t,[{$set:{[`buffs.${a}`]:{$map:{input:`$buffs.${a}`,as:"buff",in:{$cond:{if:{$eq:[{$substr:["$$buff.origin",0,{$indexOfBytes:["$$buff.origin","/"]}]},{$substr:[s,0,{$indexOfBytes:[s,"/"]}]}]},then:{multiplier:"$$buff.multiplier",origin:"$$buff.origin",expireAt:{$cond:{if:{$lt:["$$buff.expireAt",new Date]},then:{$add:[new Date,r*60*60*1e3]},else:{$add:["$$buff.expireAt",r*60*60*1e3]}}},startAt:{$cond:{if:{$gte:["$$buff.startAt",new Date]},then:"$$buff.startAt",else:{$add:[new Date,(i??0)*60*60*1e3]}}}},else:"$$buff"}}}}}},{$set:{[`buffs.${a}`]:{$cond:{if:{$in:[{$substr:[s,0,{$indexOfBytes:[s,"/"]}]},{$map:{input:`$buffs.${a}`,as:"b",in:{$substr:["$$b.origin",0,{$indexOfBytes:["$$b.origin","/"]}]}}}]},then:`$buffs.${a}`,else:{$concatArrays:[`$buffs.${a}`,[{multiplier:n,origin:s,expireAt:{$add:[new Date,r*60*60*1e3]},startAt:{$add:[new Date,(i??0)*60*60*1e3]}}]]}}}}}])},lh=async(t,a,{userMeta:s,userInventory:n})=>{const r=s??await dt(t,{buffs:-1,xp:-1}),i=n??await Ht(t,{itemList:-1,equipmentList:-1}),f=await ve(t,r,i)-r.hp;await L(t,{$set:{hp:r.hp+Math.floor(Math.min(a,f))}})},oh=async(t,a)=>{await L(t,[{$set:{hp:{$max:[{$add:["$hp",-a]},0]}}}])},Qe=async(t,a)=>{const s=await ve(t);await L(t,[{$set:{hp:{$round:[{$multiply:[{$divide:["$hp",a]},s]},0]}}}])},dh=Object.freeze(Object.defineProperty({__proto__:null,addBerry:An,addCharacteristics:async(t,a)=>{const s=await ve(t),n=Object.fromEntries(Object.entries(a).filter(([,r])=>r!==0).map(([r,i])=>[`characteristics.${r}`,i]));await L(t,{$inc:n}),Qe(t,s)},addMinutesInVoiceToday:async(t,a)=>{await L(t,{$inc:{"xp.voice.minutesInVoiceToday":a}})},addScrollCharacteristic:async(t,a)=>{const s=await ve(t),n=Object.fromEntries(Object.entries(a).filter(([,r])=>r!==0).map(([r,i])=>[`scrolls.${r}`,i]));await L(t,{$inc:n}),Qe(t,s)},addXp:sh,gainHp:lh,loseHp:oh,resetCharacteristics:async(t,a,s)=>{const n=await ve(t,s),r={vitality:0,strength:0,agility:0,chance:0,intelligence:0,wisdom:0};a?await L(t,{$set:{characteristics:r,"resetCharacteristics.free":!1}}):await L(t,{$set:{characteristics:r,"resetCharacteristics.nextAvailable":new Date(Date.now()+30*24*60*60*1e3)},$inc:{berry:-1e8}}),Qe(t,n)},resetMinutesInVoiceToday:async t=>{await L(t,{$set:{"xp.voice.minutesInVoiceToday":0}})},updateBoost:rh,updateBuff:ih,updateHp:Qe,updateLastMessageTime:ah,updateLastVoiceConnection:async(t,a)=>{await L(t,{$set:{"xp.voice.lastConnection":a}})},updatePremium:nh},Symbol.toStringTag,{value:"Module"})),ch=async t=>{var s;const a=[];for(const n of Object.values(Aa)){const r=new n;if((s=r.onUserInventoryUpdate)!=null&&s.call(r,t)){const i=await r.complete(t.user._id,{});i&&a.push([r,i])}}a.length>0&&Te("userInventoryUpdate",t.user._id,a)},Ga=new p.Schema({user:{type:p.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},equippedItems:{type:Object,default:{}},equipmentList:{type:[{id:String,seed:Number}],default:[]},itemList:{type:Map,of:Number,default:{}},recipes:{type:[String],default:[]}},{minimize:!1});Ga.index({user:1}),Ga.post("findOneAndUpdate",async function(t){await ch(t)});const ct=((_r=p.models)==null?void 0:_r.UserInventory)||p.model("UserInventory",Ga),ye=async(t,a)=>{await ct.updateOne({user:t},a,{upsert:!0})},Me=async(t,a,s)=>{await ye(t,{$inc:{[`itemList.${a}`]:s}})},uh=async(t,a)=>{await ye(t,{$inc:Object.fromEntries(Object.entries(a).filter(([,s])=>(s??0)>0).map(([s,n])=>[`itemList.${s}`,n]))})},qt=async(t,a,s)=>{s!==0&&await ye(t,[{$set:{[`itemList.${a}`]:{$max:[{$add:[`$itemList.${a}`,-s]},0]}}}])},Nn=async(t,a,s)=>{await ye(t,{$pull:{equipmentList:{id:a,seed:s}}})},$n=async(t,a,s,n)=>{s!==0&&(D.isEquipmentId(a)?await Nn(t,a,n):await qt(t,a,s))},fh=async(t,a)=>{await ye(t,{$set:{[`itemList.${a}`]:0}})},In=async(t,a)=>{await ye(t,{$push:{equipmentList:{$each:a}}})},hh=Object.freeze(Object.defineProperty({__proto__:null,addEquipments:In,addInventoryItem:Me,addInventoryItems:uh,craftItem:async(t,a,s,n,r)=>{for(const{itemId:f,size:g}of a)await qt(t,f,g*n);const{itemId:i,size:d}=s;D.isEquipmentId(i)?await In(t,[{id:i,seed:r}]):await Me(t,i,d*n)},dismantleEntity:async(t,a,s,n,r)=>{await $n(t,a.id,n,r);for(const{entityId:i,quantity:d}of s)D.isEquipmentId(i)||await Me(t,i,n*d);await qt(t,"tools",1)},equip:async(t,a,s)=>{const n=await ve(t);await ye(t,{$set:{[`equippedItems.${a}`]:s}}),await Qe(t,n)},removeAllItemInventory:fh,removeEquipment:Nn,removeInventoryEntity:$n,removeInventoryItem:qt,unequip:async(t,a)=>{const s=await ve(t);await ye(t,{$set:{[`equippedItems.${a}`]:null}}),await Qe(t,s)},unlockRecipe:async(t,a)=>{await ye(t,{$addToSet:{recipes:a}})}},Symbol.toStringTag,{value:"Module"})),Fn=async t=>await ct.create({user:t}),Ht=async(t,a={})=>{const s=await ct.findOne({user:t},a);return s||await Fn(t)},ph=async t=>{var s;const a=[];for(const n of Object.values($a)){const r=new n;if((s=r.onUserOrnamentsUpdate)!=null&&s.call(r,t)){const i=await r.complete(t.user._id,{});i&&a.push([r,i])}}a.length>0&&Te("userOrnamentsUpdate",t.user._id,a)},Ka=new p.Schema({user:{type:p.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},unlockedFactionBadges:{type:[String],default:[]},unlockedBadges:{type:[String],default:[]},unlockedTitles:{type:[String],default:[]},selectedTitle:{type:String,default:null},unlockedBackgrounds:{type:[String],default:["default"]},selectedBackground:{type:String,default:"default"},unlockedProfileAssets:{type:[String],default:[]}});Ka.index({user:1}),Ka.post("findOneAndUpdate",async function(t){await ph(t)});const ut=((wr=p.models)==null?void 0:wr.UserOrnaments)||p.model("UserOrnaments",Ka),re=async(t,a)=>{await ut.updateOne({user:t},a,{upsert:!0})},Wa=async(t,a)=>{await re(t,{$addToSet:{unlockedTitles:a}})},mh=async(t,a)=>{await re(t,{$addToSet:{unlockedTitles:{$each:a}}})},yh=async(t,a)=>{await re(t,{$set:{selectedTitle:a}})},Yn=async(t,a)=>{await re(t,{$addToSet:{unlockedBackgrounds:a}})},gh=async(t,a)=>{await re(t,{$addToSet:{unlockedBackgrounds:{$each:a}}})},_h=async(t,a)=>{await re(t,{$set:{selectedBackground:a}})},En=async(t,a,s)=>{a.isProgressive?await re(t,{$addToSet:{unlockedBadges:`${a.id}_${s}`}}):await re(t,{$addToSet:{unlockedBadges:a.id}})},Ln=async(t,a)=>{await re(t,{$addToSet:{unlockedFactionBadges:{$each:[`b_marine_${a}`,`b_revolutionary_${a}`,`b_pirate_${a}`]}}})},Pn=async(t,a)=>{await re(t,{$addToSet:{unlockedProfileAssets:a}})},wh=Object.freeze(Object.defineProperty({__proto__:null,selectBackground:_h,selectTitle:yh,unlockBackground:Yn,unlockBackgrounds:gh,unlockBadge:En,unlockFactionBadge:Ln,unlockProfileAsset:Pn,unlockTitle:Wa,unlockTitles:mh},Symbol.toStringTag,{value:"Module"})),Tn=async t=>await ut.create({user:t}),bh=async(t,a)=>{const s=await ut.findOne({user:t},a);return s||await Tn(t)},jn=(t,a)=>t.completed.includes(a),qn=(t,a)=>{const s=t.daily[a];return s&&rt(s,new Date)},Va=t=>rt(Ba(),t.lastFullComplete),za=t=>Va(t)?1+Math.min(2,t.streak/10):1,Hn=t=>t.completed.reduce((a,s)=>a+(s.startsWith("be_level_")?1:0),0),Qn=(t,a)=>{const s=Hn(t);return u.factionTitleList.find(n=>n.strength===s&&n.faction===a)},vh=Object.freeze(Object.defineProperty({__proto__:null,getFactionTitle:Qn,getFactionTitleStrength:Hn,getStreakMultiplier:za,isDailyQuestCompleted:qn,isQuestCompleted:jn,isStreaking:Va},Symbol.toStringTag,{value:"Module"})),Gn=new p.Schema({user:{type:p.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},completed:{type:[String],default:[]},daily:{type:Object,default:{}},streak:{type:Number,default:0},lastFullComplete:{type:Date,default:new Date}},{minimize:!1});Gn.index({user:1});const ft=((br=p.models)==null?void 0:br.UserQuest)||p.model("UserQuest",Gn),ht=async(t,a)=>{await ft.updateOne({user:t},a,{upsert:!0})},Kn=async(t,a)=>{await ht(t,{$addToSet:{completed:a}})},Wn=async(t,a)=>{p.isValidObjectId(t)&&await ht(t,[{$addFields:{[a]:new Date}}]),await ht(t,[{$addFields:{[a]:new Date}}])},Vn=async(t,a)=>{rt(Ba(),a)?await ht(t,{$inc:{streak:1},$set:{lastFullComplete:new Date}}):await ht(t,{$set:{lastFullComplete:new Date,streak:1}})},Mh=Object.freeze(Object.defineProperty({__proto__:null,completeDailyQuest:Wn,completeQuest:Kn,updateStreak:Vn},Symbol.toStringTag,{value:"Module"})),zn=async t=>await ft.create({user:t}),Xa=async t=>{const a=await ft.findOne({user:t});return a||await zn(t)},Za=new p.Schema({user:{type:p.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},tagEveryone:{type:Boolean,default:!1},botPing:{type:Number,default:0},writeDifferentChat:[String],messageSent:{type:Number,default:0},totalMinutesInVoice:{type:Number,default:0},hadMoreThanZeroBerry:{type:Boolean,default:!1},totalBet:{type:Number,default:0},edito:{readToday:{type:Number,default:0},lastTimeRead:{type:Date,default:new Date}},double_six:{type:Number,default:0},lastGames:{type:[{gameType:String,endState:Number}],default:[]},black_jack:{type:Number,default:0},rps:{type:{lastRps:String,nb:Number},default:{lastRps:"paper",nb:-1}},totalSpentInShop:{type:Number,default:0},work:{type:Number,default:0},draw:{type:Number,default:0},bet666:{amount:{type:Number,default:0},last:{type:Date,default:new Date(0)}},betMin:{type:Boolean,default:!1},loseEverything:{type:Boolean,default:!1},bet10M:{type:Boolean,default:!1},winBet10M:{type:Boolean,default:!1},lose10M:{type:Boolean,default:!1},items:{bottle:{total:{type:Number,default:0},today:{type:Number,default:0},last:{type:Date,default:new Date}},chest:{total:{type:Number,default:0}}},randomMessage:{type:Number,default:0},timeAt10Percent:{type:Number,default:0},timeAt90Percent:{type:Number,default:0},sevenQuitteOuDouble:{type:Number,default:0},drawDoubleSix:{type:Number,default:0},guessInOne:{type:Number,default:0},crafts:{cookedMeal:{type:Number,default:0},scrolls:{type:Number,default:0},total:{type:Number,default:0}},raidFinished:{type:Number,default:0},reportedSomeone:{type:Boolean,default:!1}});Za.index({user:1}),Za.post("findOneAndUpdate",async function(t){await Q0(t)});const Se=((vr=p.models)==null?void 0:vr.UserQuestMeta)||p.model("UserQuestMeta",Za),x=async(t,a)=>{await Se.findOneAndUpdate({user:t},a,{upsert:!0,returnDocument:"after"})},Sh=async t=>{await x(t,{$inc:{work:1}})},kh=async t=>{await x(t,{$set:{hadMoreThanZeroBerry:!0}})},xh=async t=>{await x(t,{$set:{sevenQuitteOuDouble:!0}})},Rh=async t=>{await x(t,{$inc:{black_jack:1}})},Uh=async(t,a,s)=>{await x(t,{$push:{lastGames:{$each:[{gameType:a,endState:s}],$position:0,$slice:20}}})},Ch=async t=>{await x(t,{$inc:{draw:1}})},Bh=async t=>{const a=new Date;a.setDate(a.getDate()-1),a.setHours(0,0,0,0);const s=new Date;s.setDate(s.getDate()-1),s.setHours(23,59,59,999),await Se.updateOne({user:t,"bet666.last":{$gte:a,$lte:s}},{$inc:{"bet666.amount":1},$set:{"bet666.last":new Date}}),await Se.updateOne({user:t,"bet666.last":{$lt:a}},{$set:{"bet666.last":new Date,"bet666.amount":1}})},Dh=async(t,a)=>{await x(t,{$inc:{totalBet:a}})},Oh=async(t,a)=>{await x(t,[{$set:{"rps.nb":{$cond:{if:{$eq:["$rps.lastRps",a]},then:{$add:["$rps.nb",1]},else:1}},"rps.lastRps":a}}])},Xn=async(t,a)=>{await x(t,{$inc:{totalSpentInShop:a}})},Ah=Object.freeze(Object.defineProperty({__proto__:null,addTotalMinutesInVoice:async(t,a)=>{await x(t,{$inc:{totalMinutesInVoice:a}})},addWrittenTextChannel:async(t,a)=>{await x(t,{$addToSet:{writeDifferentChat:a}})},bet666:Bh,botPingIncrement:async t=>{await x(t,{$inc:{botPing:1}})},drawDoubleSix:async t=>{await x(t,{$inc:{drawDoubleSix:1}})},drawIncrement:Ch,hadMoreThanZeroBerry:kh,hasBet10M:async t=>{await x(t,{$set:{bet10M:!0}})},hasBetMin:async t=>{await x(t,{$set:{betMin:!0}})},hasCelebrateBirthday:async t=>{await x(t,{$set:{hasCelebrateBirthday:!0}})},hasGuessInOne:async t=>{await x(t,{$inc:{guessInOne:1}})},hasLose10M:async t=>{await x(t,{$set:{lose10M:!0}})},hasLoseEverything:async t=>{await x(t,{$set:{loseEverything:!0}})},hasReportedSomeone:async t=>{await x(t,{$set:{reportedSomeone:!0}})},hasSevenQod:xh,hasTagEveryone:async t=>{await x(t,{$set:{tagEveryone:!0}})},hasWinBet10M:async t=>{await x(t,{$set:{winBet10M:!0}})},incrementMessageSend:async t=>{await x(t,{$inc:{messageSent:1}})},randomMessageIncrement:async t=>{await x(t,{$inc:{randomMessage:1}})},readEdito:async t=>{const a=new Date;a.setDate(a.getDate()-1),a.setHours(0,0,0,0);const s=new Date;s.setDate(s.getDate()-1),s.setHours(23,59,59,999),await Se.updateOne({user:t,"edito.lastTimeRead":{$gte:a,$lte:s}},{$inc:{"edito.readToday":1},$set:{"edito.lastTimeRead":new Date}}),await Se.updateOne({user:t,"edito.lastTimeRead":{$lt:a}},{$set:{"edito.lastTimeRead":new Date,"edito.readToday":1}})},updateCrafts:async(t,a,s)=>{const n=D.findEntity(s);await x(t,{$inc:{"crafts.cookedMeal":D.isCookedMeal(n)?a:0,"crafts.scrolls":D.isScrollItem(n)?a:0,"crafts.total":a}})},updateCrew10Percent:async(t,a)=>{a?await x(t,{$set:{timeAt10Percent:0}}):await x(t,{$inc:{timeAt10Percent:1}})},updateCrew90Percent:async(t,a)=>{a?await x(t,{$set:{timeAt90Percent:0}}):await x(t,{$inc:{timeAt90Percent:1}})},updateLastGames:Uh,updateRps:Oh,updateTotalBet:Dh,updateTotalSpentInShop:Xn,winBlackjack:Rh,winDoubleSix:async t=>{await x(t,{$inc:{double_six:1}})},workIncrement:Sh},Symbol.toStringTag,{value:"Module"})),Nh=Object.freeze(Object.defineProperty({__proto__:null,alreadyObtainedRaidReward:(t,a,s)=>a in t.obtainedRewards?t.obtainedRewards[a].includes(s):!1,hasUnlockedRaid:(t,a)=>{var s;return(s=t.unlocked)==null?void 0:s[a]}},Symbol.toStringTag,{value:"Module"})),Zn=new p.Schema({user:{type:p.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},currentRaid:{type:{raidId:String,seed:String,progression:{type:[String],default:[]},buffItem:String},default:void 0},obtainedRewards:{type:Object,default:{}},unlocked:{type:Object,default:{}}},{minimize:!1});Zn.index({user:1});const pt=((Mr=p.models)==null?void 0:Mr.UserRaid)||p.model("UserRaid",Zn),Ge=async(t,a)=>{await pt.updateOne({user:t},a,{upsert:!0})},$h=Object.freeze(Object.defineProperty({__proto__:null,claimReward:async(t,a,s)=>{await Ge(t,{$push:{[`obtainedRewards.${a}`]:s}})},progressRaid:async(t,a)=>{await Ge(t,{$push:{"currentRaid.progression":a}})},resetRaid:async t=>{await Ge(t,{$set:{currentRaid:void 0}})},resetRaidProgression:async t=>{await Ge(t,{$set:{"currentRaid.progression":[]}})},startRaid:async(t,a,s,n,r)=>{const i=Date.now();return await Ge(t,{$set:{currentRaid:{raidId:a,buffItem:s,seed:i,progression:[]}}}),await Sn(t,n,r),i},unlockRaid:async(t,a)=>{await Ge(t,{$set:{[`unlocked.${a}`]:!0}})}},Symbol.toStringTag,{value:"Module"})),Jn=async t=>await pt.create({user:t}),Ih=async t=>{const a=await pt.findOne({user:t});return a||await Jn(t)},Fh=Object.freeze(Object.defineProperty({__proto__:null,getShopItemRest:(t,a,s,n)=>{var d;const r=D.getAllItemsLimit()[a],i=(d=t.limit)==null?void 0:d[a];return r?t.lastShopId!==s?r:i?r-i:Math.min(r,n):n},isShopBuyLimitReached:(t,a,s)=>{const n=D.getAllItemsLimit()[a],r=t.limit?t.limit[a]:void 0;return t.lastShopId!==s?!1:!!(n&&r&&r>=n)}},Symbol.toStringTag,{value:"Module"})),er=new p.Schema({user:{type:p.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},lastShopId:{type:Number,default:0},limit:{type:Object,default:{}}},{minimize:!1});er.index({user:1});const Qt=((Sr=p.models)==null?void 0:Sr.UserShop)||p.model("UserShop",er),Yh=async(t,a)=>{await Qt.updateOne({user:t},a,{upsert:!0})},Eh=Object.freeze(Object.defineProperty({__proto__:null,increaseShopBuyLimit:async(t,a,s,n)=>{await Yh(t,[{$set:{[`limit.${a}`]:{$cond:{if:{$eq:["$lastShopId",s]},then:{$add:[`$limit.${a}`,n]},else:n}},lastShopId:s}}])}},Symbol.toStringTag,{value:"Module"})),ee={localField:"_id",foreignField:"user",justOne:!0},P=new p.Schema({userId:{type:String,required:!0,unique:!0},birthday:{type:Date,default:null},faction:{type:String,default:l.DEFAULT_FACTION},canChangeFaction:{type:Boolean,default:!1},canChooseFaction:{type:Boolean,default:!1},settings:{sort:{inventory:{type:String,default:"alpha"}},sendDailyReport:{type:Boolean,default:!1},sendDailyQuest:{type:Boolean,default:!1},reminder:{raid:{classic:{type:Boolean,default:!1},special:{type:Boolean,default:!1}},commands:{work:{type:Boolean,default:!1},dice:{type:Boolean,default:!1},qod:{type:Boolean,default:!1},blackjack:{type:Boolean,default:!1},guess:{type:Boolean,default:!1},rps:{type:Boolean,default:!1}}}}});P.virtual("inventory",{ref:"UserInventory",...ee}),P.virtual("raid",{ref:"UserRaid",...ee}),P.virtual("games",{ref:"UserGames",...ee}),P.virtual("ornaments",{ref:"UserOrnaments",...ee}),P.virtual("crew",{ref:"UserCrew",...ee}),P.virtual("dailyReport",{ref:"UserDailyReport",...ee}),P.virtual("shop",{ref:"UserShop",...ee}),P.virtual("meta",{ref:"UserMeta",...ee}),P.virtual("quest",{ref:"UserQuest",...ee}),P.virtual("questMeta",{ref:"UserQuestMeta",...ee}),P.virtual("cooldown",{ref:"UserCooldown",...ee}),P.virtual("reminder",{ref:"Reminder",localField:"_id",foreignField:"user"}),P.index({userId:1}),P.post("deleteOne",async function(){const t=this.getQuery()._id;await ct.deleteOne({user:t}),await lt.deleteOne({user:t}),await ut.deleteOne({user:t}),await pt.deleteOne({user:t}),await qe.deleteOne({user:t}),await jt.deleteOne({user:t}),await Qt.deleteOne({user:t}),await be.deleteOne({user:t}),await ft.deleteOne({user:t}),await Se.deleteOne({user:t}),await it.deleteOne({user:t})});const G=((kr=p.models)==null?void 0:kr.User)||p.model("User",P),Lh=t=>G.create({userId:t}),Ja=async(t,a={})=>{const s=await tr({userId:t},a);return s||await Lh(t)},tr=(t,a={})=>G.findOne(t,a),Ph=Object.freeze(Object.defineProperty({__proto__:null,getAllDailyReport:async()=>G.aggregate([{$match:{"settings.sendDailyReport":{$eq:!0}}},{$lookup:{from:"usermetas",localField:"_id",foreignField:"user",as:"meta"}},{$lookup:{from:"userdailyreports",localField:"_id",foreignField:"user",as:"dailyReport"}},{$match:{$expr:{$and:[{"dailyReport.xpYesterday":{$gt:0,$exists:!0}},{faction:{$ne:"citizen"}}]}}}]),getBerryRanking:async()=>G.aggregate([{$lookup:{from:"usermetas",localField:"_id",foreignField:"user",as:"meta"}},{$unwind:"$meta"},{$sort:{"meta.berry":-1}},{$limit:10},{$project:{_id:1,userId:1,"meta.berry":1}}]),getDailyReport:t=>{const{berry:a,xp:s}=t.meta,{voice:n,amount:r}=s,{unlockedBadges:i,unlockedBackgrounds:d,unlockedTitles:f}=t.ornaments,{previousOrnament:g,previousCompletedQuest:w,xpYesterday:U,berryYesterday:I,previousMessageSent:j}=t.dailyReport;return{berry:a-I,xp:r-U,message:t.questMeta.messageSent-j,voice:rt(n.lastConnection,Ba())?n.minutesInVoiceToday:0,quest:yt(t.quest.completed,w),badge:yt(i,g.unlockedBadges),title:yt(f,g.unlockedTitles),background:yt(d,g.unlockedBackgrounds)}},getFactionRank:async(t,a)=>(await G.aggregate([{$lookup:{from:"usermetas",localField:"_id",foreignField:"user",as:"meta"}},{$unwind:"$meta"},{$match:{faction:t.faction}},{$setWindowFields:{sortBy:{"meta.xp.amount":-1},output:{rank:{$rank:{}}}}},{$match:{_id:a}},{$project:{rank:1}}]))[0],getFactionRanking:async t=>G.aggregate([{$match:{faction:t}},{$lookup:{from:"usermetas",localField:"_id",foreignField:"user",as:"meta"}},{$unwind:"$userMeta"},{$sort:{"userMeta.xp.amount":-1}},{$limit:10},{$project:{_id:1,userId:1,"meta.xp.amount":1}}]),getGlobalRanking:async()=>G.aggregate([{$lookup:{from:"usermetas",localField:"_id",foreignField:"user",as:"meta"}},{$unwind:"$meta"},{$sort:{"meta.xp.amount":-1}},{$limit:10},{$project:{_id:1,userId:1,"meta.xp.amount":1}}]),getNextBirthdays:()=>G.aggregate([{$match:{birthday:{$ne:null}}},{$addFields:{day:{$dayOfMonth:"$birthday"},month:{$month:"$birthday"},year:{$year:"$birthday"},nextBirthday:{$dateFromParts:{year:{$cond:[{$lt:[{$dateFromParts:{year:{$year:new Date},month:{$month:"$birthday"},day:{$dayOfMonth:"$birthday"}}},new Date]},{$add:[{$year:new Date},1]},{$year:new Date}]},month:{$month:"$birthday"},day:{$dayOfMonth:"$birthday"}}}}},{$sort:{nextBirthday:1}},{$limit:10},{$project:{_id:0,userId:1,birthday:1,nextBirthday:1}}]),getSuccessRanking:async()=>G.aggregate([{$lookup:{from:"userquests",localField:"_id",foreignField:"user",as:"quest"}},{$unwind:"$quest"},{$addFields:{success_count:{$size:{$ifNull:["$quest.completed",[]]}}}},{$sort:{success_count:-1}},{$limit:10},{$project:{_id:1,userId:1,"quest.completed":1}}]),getTodayAllBirthday:()=>G.aggregate([{$match:{birthday:{$ne:null}}},{$addFields:{birthMonth:{$month:"$birthday"},birthDay:{$dayOfMonth:"$birthday"}}},{$addFields:{currentMonth:{$month:new Date},currentDay:{$dayOfMonth:new Date}}},{$match:{$expr:{$and:[{$eq:["$birthMonth","$currentMonth"]},{$eq:["$birthDay","$currentDay"]}]}}}]),getUserBirthday:async t=>await Ja(t,{birthday:1})},Symbol.toStringTag,{value:"Module"})),ke=async(t,a,s=!1)=>{await G.updateOne(t,a,{upsert:s})},ar=async(t,a)=>{await ke({_id:t},{$set:{canChooseFaction:a}})},sr=async(t,a)=>{await ke({_id:t},{$set:{canChangeFaction:a}})},Th=Object.freeze(Object.defineProperty({__proto__:null,canChangeFaction:sr,canChooseFaction:ar,removeBirthday:async t=>{await ke({userId:t},{$set:{birthday:null}})},setBirthday:async(t,a)=>{await ke({userId:t},{$set:{birthday:a}})},updateInventorySort:async(t,a)=>{await ke({_id:t},{$set:{"settings.sort.inventory":a}})},updateReminderSettings:async(t,a,s)=>{await ke({_id:t},{$set:{[`settings.reminder.${a}`]:s}})},updateSendDailyQuest:async(t,a)=>{await ke({userId:t},{$set:{"settings.sendDailyQuest":a}})},updateSendDailyReport:async(t,a)=>{await ke({userId:t},{$set:{"settings.sendDailyReport":a}})}},Symbol.toStringTag,{value:"Module"})),jh=async t=>{await G.deleteOne({userId:t})},qh=async t=>await jt.create({user:t}),Hh=async t=>await Se.create({user:t}),Qh=async t=>await Qt.create({user:t}),nr=(t,a)=>{switch(t){case"dailyReport":return qh(a);case"games":return Bn(a);case"inventory":return Fn(a);case"meta":return Dn(a);case"raid":return Jn(a);case"ornaments":return Tn(a);case"quest":return zn(a);case"questMeta":return Hh(a);case"shop":return Qh(a);case"cooldown":return xn(a);case"reminder":return[];case"crew":return null}},Gh=async(t,a,s)=>{if(Array.isArray(a)){const n=await t.populate(a);for(const r of a)n[r]||(n[r]=await nr(r,t._id));return n}else{const n=await t.populate(a,s),r=n[a];return(!r||Array.isArray(r)&&r.length===0)&&(n[a]=await nr(a,t._id)),n}},rr=new p.Schema({warnedUserId:String,authorId:String,date:{type:Date,default:Date.now()},reason:{type:String,default:null}});rr.index({warnedUserId:1});const Ke=((xr=p.models)==null?void 0:xr.Warns)||p.model("Warns",rr),Kh=Object.freeze(Object.defineProperty({__proto__:null,getUserWarnCount:async t=>await Ke.countDocuments({warnedUserId:t}),getUserWarns:async t=>await Ke.find({warnedUserId:t})},Symbol.toStringTag,{value:"Module"})),Wh=async t=>await Ke.findOne({warnedUserId:t}),Vh=async t=>await Ke.create({...t}),zh=async t=>await Ke.findByIdAndDelete(t),Xh=t=>{p.connect(t)},Zh=async(t,a,s,{berry:n,xp:r})=>{const i=await Xa(a).then($=>$.populate("user","faction")),d=za(i),f=Qn(i,i.user.faction),{badge:g,isFactionBadge:w,title:U,rank:I,name:j,description:op,daily:Gt,secret:dp}=t;return s.Image().setImageName(`quest_success_${I.id}`).draw(),g?s.Image().setImageName(u.progressiveBadgeTypeGuard(g)?`cropped_badge_${g.img}_${I.id}`:`cropped_badge_${g.img}`).setOrigin(q.CanvasOrigin.CENTER).setScale(2).setPosition(370,318).draw():w&&i.user.faction!=="citizen"?s.Image().setImageName(`cropped_badge_${i.user.faction}_${I.id}`).setOrigin(q.CanvasOrigin.CENTER).setScale(2).setPosition(370,318).draw():s.Image().setImageName(`badge_default_${I.id}`).setScale(2).setOrigin(q.CanvasOrigin.CENTER).setPosition(370,318).draw(),s.Text(Gt?"QUÊTE JOURNALIÈRE TERMINÉE !":"SUCCÈS DÉBLOQUÉ !").setPosition(739,100).setFont("text",70).setColor(I.color).draw(),s.Text(j).setPosition(739,260).setFont("poppins",j.length>=35?65-2*(j.length-35):65).draw(),s.Text(dp?"Succès caché":op).setPosition(739,360).setFont("poppins_italic",35).draw(),s.Text(`Récompenses: ${mt(n)}${Gt&&d>1?` (+${mt(n*(d-1))})`:""} `).setPosition(739,520).setFont("poppins",35).setOrigin(q.CanvasOrigin.LEFT).draw(n!==0).next(($,F)=>q.nextAllToXAxis($.Image(),F)).setImageName("quest_berry").setDimensions(50,79).draw(n!==0).next(($,F)=>q.nextAllToXAxis($.Text(` / ${mt(r)}${Gt&&d>1?` (+${mt(r*(d-1))})`:""} `),F)).draw(r!==0).next(($,F)=>q.nextAllToXAxis($.Image(),F)).setImageName("quest_xp").setDimensions(57,59).draw(r!==0).next(($,F)=>q.nextAllToXAxis($.Text(` combo x${d}`),F)).draw(Gt&&d>1).next(($,F)=>q.nextAllToXAxis($.Text(" et la possibilité "),F)).draw(w&&i.user.faction==="citizen").next(($,F)=>q.nextAllToXAxis($.Text("de choisir ta faction"),F)).setFont("poppins_bold",35).draw(w&&i.user.faction==="citizen").next(($,F)=>q.nextAllToXAxis($.Text(" et le titre "),F)).setFont("poppins",35).draw(!!U||w&&i.user.faction!=="citizen").next(($,F)=>q.nextAllToXAxis($.Text((U==null?void 0:U.name)??""),F)).setFont("poppins_bold",35).setColor((U==null?void 0:U.rank.color)??"white").draw(!!U).next(($,F)=>q.nextAllToXAxis($.Text((f==null?void 0:f.name)??""),F)).setColor((f==null?void 0:f.rank.color)??"white").draw(w&&!!f),await s.encode("webp")},Jh=10,ep=1e7,tp=100,ap=["berry","success_COMMON","success_RARE","success_EPIC","success_LEGENDARY","success_MYTHIC","xp"],sp={background:"<:background:1178465681809887334>",title:"<:title:1178465688915038208>",chest_1:"<:lootbox1:1186689926167810088>",chest_2:"<:lootbox2:1186258728882811051>",chest_3:"<:lootbox3:1243963722259501216>",chest_4:"<:lootbox3:1186259958216523786>",bottle_xp_1:"<:bottle_xp:1186204593667969035>",bottle_xp_2:"<:bottle_xp_2:1243980696083632208>",bottle_xp_3:"<:bottle_xp_3:1243980697773936740>",bottle_xp_4:"<:bottle_xp_4:1243980698927366256>",boost_week:"<:boost_week:1186258728073297971>",boost_day:"<:boost_day:1186258726030680145>",wood_plank:"<:Planchesdebois:1233782418478071930>",nail:"<:Clous:1233782384613261382>",glue:"<:Colle:1233782388497186846>",rope:"<:Corde:1233782392225927168>",repair_kit:"<:Kitderparation:1233782876223570011>",tissue:"<:Tissus:1233784184099573852>",lock:"<:Serrureclef:1233782436068982814>",iron:"<:Ferbrut:1233782399125426207>",clover:"<:Treflesixfeuilles:1233782439503990915> ",glass_bottle:"<:Fioleenverre:1233782402233532496>",pure_water:"<:Eaupure:1233782393572298802>",sea_salt:"<:SelMarin:1233784181696233602>",ebony_poppy:"<:Pavotebene:1233782416879915060>",rose:"<:Roseimmaculee:1233784180215644180>",poppy:"<:Coquelicotecarlate:1233782390099280023>",manganese:"<:Manganesescintillante:1233784177221042196>",cursed_hawthorn:"<:AubpineMaudite:1233782382872629329>",mugwort:"<:Armoiseblanche:1233782381400424519>",mandrake:"<:MandragoreAdulte:1233782409070247946>",obsidian:"<:Obsidiennesombre:1233784178307371110>",saffron:"<:Safranvermeille:1233782430385836124>",edelweiss:"<:Edelweiss:1233782395019329546>",emerald:"<:emeraude:1233782873165791273>",ruby:"<:Rubis:1233782426174619679>",sapphire:"<:Saphir:1233782432004837407>",siren_tear:"<:Larmedesirene:1233782405538517095>",compass:"<:Rosedesvents:1233782421892239360>",dragon_heart:"<:CoeurdeDragon:1233782386580258848>",fairy_wing:"<:Ailedefees:1233782379269722293>",phoenix_feather:"<:PlumedePhoenix:1233784783822127167>",mithril:"<:Mithril:1233782412434214974>",cereal:"<:craft_cereal:1243963641204703405>",cotton:"<:craft_cotton:1243963642567721080>",empty_box:"<:craft_empty_box:1243963643834535966>",enchanted_emerald:"<:craft_enchanted_emerald:1243963645092696105>",enchanted_ruby:"<:craft_enchanted_ruby:1243963647097569330>",enchanted_sapphire:"<:craft_enchanted_sapphire:1243963648486019082>",enchanted_stone:"<:craft_enchanted_stone:1243963650893545637>",flour:"<:craft_flour:1243963651719823451>",hemp:"<:craft_hemp:1243963653238030387>",scrap:"<:craft_scrap:1243963718895669268>",strange_gem:"<:craft_strange_gem:1243963656539078686>",strange_stone:"<:craft_strange_stone:1243963658766123192>",tools:"<:craft_tools:1243963720179122217>",wood:"<:craft_wood:1243963662763298897>",wine:"<:craft_wine:1249242713442746501>",toy:"<:craft_toy:1249242711907893278>",rhum:"<:craft_rhum:1249242707961057361>",milk:"<:craft_milk:1249242706501308488>",fruit:"<:craft_fruit:1249242705612115968>",sugar:"<:craft_sugar:1249242709684785184>",egg:"<:craft_egg:1249242703972007986>",omelet:"<:omelette:1288942044328493179>",cheese:"<:Fromage_Affine:1289695711398596761>",bread:"<:Pain_de_campagne:1289703440163016855>",strawberry_cake:"<:Fraisier:1289707903649058858>",bowl_cereal:"<:craft_bowl_cereal:1249242702462193686>",beer:"<:craft_beer:1249242701300240434>",bowl:"<:craft_bowl:1250116629275082873>",rudder:"<:craft_rudder:1250435943253540895>",rescue_boat:"<:craft_rescue_boat:1250435931635322950>",sailing_boat:"<:craft_sailing_boat:1250435942162894849>",salt_water:"<:craft_salt_water:1250435945216475317>",anchor:"<:craft_anchor:1250435934843834409>",hammock:"<:craft_hammock:1250435933300588687>",leather:"<:craft_leather:1253034980133834752>",ancient_key:"<:craft_ancient_key:1257447843355033742>",iron_ore:"<:craft_iron_ore:1257475847271612497>",map_fragment:"<:map_fragment:1281949667227205663>",scroll_agility:"<:scroll_agility:1254081331365810289>",scroll_chance:"<:scroll_chance:1254081332422639657>",scroll_intelligence:"<:scroll_intelligence:1254081334264070174>",scroll_strength:"<:scroll_strength:1254081335862099980>",scroll_vitality:"<:scroll_vitality:1254081337711919185>",scroll_wisdom:"<:scroll_wisdom:1254081340115259454>",elemental_concentrate_earth:"<:elemental_concentrate_earth:1269073512782499860>",elemental_concentrate_fire:"<:elemental_concentrate_fire:1269073513919156349>",elemental_concentrate_life:"<:elemental_concentrate_life:1269073515315728425>",elemental_concentrate_moon:"<:elemental_concentrate_moon:1269073517044039760>",elemental_concentrate_water:"<:elemental_concentrate_water:1269073518205599776>",elemental_concentrate_wind:"<:elemental_concentrate_wind:1269073510815367189>",essence_earth:"<:essence_earth:1269073149300052034>",essence_fire:"<:essence_fire:1269073150784700416>",essence_life:"<:essence_life:1269073151728287787>",essence_moon:"<:essence_moon:1269073153510998056>",essence_water:"<:essence_water:1269073154333081701>",essence_wind:"<:essence_wind:1269073156241625088>",empty_scroll:"<:empty_scroll:1269074077327298653>"},np={d1:"<:d1:1159542168738873455>",d2:"<:d2:1159542071049334814>",d3:"<:d3:1159542073914032191>",d4:"<:d4:1159542075512082543>",d5:"<:d5:1159542078179651614>",d6:"<:d6:1159542079458910229>",revolutionary:"<:revolutionnaire:648245785133056020>",pirate:"<:pirate:648245785053626368>",marine:"<:marine:648245784407441429>",berry:"<:berry:1153734056035504158>",xp:"<:xp:1084914564379975772>",success:"<:success:1186707379534954506>",hp:"<:hp:1257776163955277824>",paper:"📄",rock:"🪨",scissor:"✂️",pray:"<:Ryokugyu_pray:1147542990844334280>",gun:"<:fujigun:1050120413243506688>",promise:"<:Luffy_Promise:1027626431565529099>",love:"<:Lawve:1050916817801072730>",note:"<:imsusnote:1136952496456224778>",watching:"<:Carrot_Watching:1024736915922104360>",card:"<:carteDos:1168580012258103387>",cards:{spades:{1:"<:asdepique:1168560615170768967>",2:"<:2depique:1168559430955184259>",3:"<:3depique:1168559437548638248>",4:"<:4depique:1168559679354445934>",5:"<:5depique:1168559725504372796>",6:"<:6depique:1168559764528185394>",7:"<:7depique:1168559459392553061>",8:"<:8depique:1168559887870083162>",9:"<:9depique:1168559471392464988>",10:"<:10depique:1168559958435053598>",J:"<:valetdepique:1168560676202086523>",Q:"<:reinedepique:1168560621722284083>",K:"<:roidepique:1168560628189888634>"},diamonds:{1:"<:asdecarreau:1168560612742279308>",2:"<:2decarreau:1168559427788472330>",3:"<:3decarreau:1168559434138669236>",4:"<:4decarreau:1168559440774041621>",5:"<:5decarreau:1168559445308084256>",6:"<:6decarreau:1168559763462819940>",7:"<:7decarreau:1168559845872517172>",8:"<:8decarreau:1168559888989949994>",9:"<:9decarreau:1168559942215667804>",10:"<:10decarreau:1168559475481907230>",J:"<:valetdecarreau:1168560633634095234>",Q:"<:reinedecarreau:1168560618182291577>",K:"<:roidecarreau:1168560626185011281>"},hearts:{1:"<:asdecoeur:1168560613971214368>",2:"<:2decoeur:1168559428681859073>",3:"<:3decoeur:1168559435950592060>",4:"<:4decoeur:1168559442074284073>",5:"<:5decoeur:1168559723226865725>",6:"<:6decoeur:1168559452509708298>",7:"<:7decoeur:1168559457769365684>",8:"<:8decoeur:1168559463368757339>",9:"<:9decoeur:1168559938897989672>",10:"<:10decoeur:1168559477658751006>",J:"<:valetdecoeur:1168560635991298160>",Q:"<:reinedecoeur:1168560619855822940>",K:"<:roidecoeur:1168560678378950716>"},clubs:{1:"<:asdetrfle:1168560617444081834>",2:"<:2detrfle:1168559432242831512>",3:"<:3detrfle:1168559439440269403>",4:"<:4detrfle:1168559677936762982>",5:"<:5detrfle:1168559449540145153>",6:"<:6detrfle:1168559761260818594>",7:"<:7detrfle:1168559844748435549>",8:"<:8detrfle:1168559466334142575>",9:"<:9detrfle:1168559940953194576>",10:"<:10detrfle:1168559959802380288>",J:"<:valetdetrfle:1168560610531885137>",Q:"<:reinedetrfle:1168560623228026972>",K:"<:roidetrfle:1168560675543580712>"}},factions:{b_citizen_COMMON:"<:BasiqueOPFRbois:1175507882188484761>",b_citizen_RARE:"<:BasiqueOPFRargent:1175507880724668488>",b_citizen_EPIC:"<:BasiqueOPFRor:1175507883501289512>",b_citizen_LEGENDARY:"<:BasiqueOPFRplatine:1175507886714134548>",b_citizen_MYTHIC:"<:BasiqueOPFRultime:1175507889553670264>",b_marine_COMMON:"<:Marinebois:1175507936953512036>",b_marine_RARE:"<:Marineargent:1175508322351321178>",b_marine_EPIC:"<:Marineor:1175508300603863132>",b_marine_LEGENDARY:"<:Marineplatine:1175507940803879012>",b_marine_MYTHIC:"<:Marineultime:1175508279590395977>",b_revolutionary_COMMON:"<:RvoBois:1175507954779295810>",b_revolutionary_RARE:"<:RvoArgent:1175508199118483457>",b_revolutionary_EPIC:"<:RvoOr:1175508111885344819>",b_revolutionary_LEGENDARY:"<:RvoPlatine:1175507958378008756>",b_revolutionary_MYTHIC:"<:RvoUltime:1175508127815319612>",b_pirate_COMMON:"<:Piratebois:1175508259768115272>",b_pirate_RARE:"<:Pirateargent:1175507943987363941>",b_pirate_EPIC:"<:Pirateor:1175508240243621928>",b_pirate_LEGENDARY:"<:Pirateplatine:1175507949578358804>",b_pirate_MYTHIC:"<:Pirateultime:1175507951709061150>"},characteristics:{vitality:"<:vitality:1251861015277338675>",strength:"<:strength:1251860738595618838>",agility:"<:agility:1251860734145728596>",intelligence:"<:intelligence:1251860736943194144>",chance:"<:chance:1251860735827513425>",wisdom:"<:wisdom:1251861017231884378>"},equipment_adventurer_strap:"<:adventurer_strap:1253041086147068035>",equipment_adventurer_collar:"<:adventurer_collar:1253041084611690567>",equipment_adventurer_boots:"<:adventurer_boots:1253041083252867123>",equipment_adventurer_helmet:"<:Casque_cuir:1256965718432550953>",equipment_adventurer_weapon:"<:Dague_cuir:1256965714141515837>",equipment_adventurer_belt:"<:Ceinture_cuir:1256965593333108838>",items:sp},rp=(t,a)=>{const s=t.badge,n=t.isFactionBadge;return s?u.progressiveBadgeTypeGuard(s)?s.emojis[s.isProgressive.findIndex(r=>r===t.rank.id)]:s.emojis:n?np.factions[`b_${a}_${t.rank.id}`]:""},ip=t=>{const[a,s]=t.split("_"),n=Object.values(u.BadgeList).find(r=>r.id===a);if(n)return u.progressiveBadgeTypeGuard(n)?n.emojis[n.isProgressive.findIndex(r=>r===s)]:n.emojis};class lp extends p.Types.ObjectId{}c.ALL_QUESTS=l0,c.BET_MAX_VALUE=ep,c.BET_MIN_VALUE=Jh,c.BackgroundShopItem=cn,c.BoostXpShopItem=un,c.COOLDOWN_COMMANDS=A0,c.ChestShopItem=fn,c.CraftShopItem=hn,c.CrewQuests=Oa,c.EDITO_READ=tp,c.ObjectId=lp,c.QUEST_ASSET_IMAGES=ap,c.Quest=o,c.RepairShopItem=pn,c.StoreShopItem=mn,c.TitleShopItem=yn,c.UserInventoryQuests=Aa,c.UserMetaQuests=Na,c.UserOrnamentsQuests=$a,c.UserQuestMetaQuests=Ia,c.banExists=$r,c.banGetters=Dr,c.banModel=De,c.betModel=Wt,c.connectToServices=Xh,c.createBan=Or,c.createBet=Yr,c.createCrew=h0,c.createInvitations=m0,c.createReminder=B0,c.createSettings=dn,c.createUserCrew=F0,c.createWarn=Vh,c.crewGetters=c0,c.crewModel=je,c.crewUpdates=u0,c.deleteBan=Nr,c.deleteInvitations=y0,c.deleteUserById=jh,c.deleteWarn=zh,c.emitQuestEvent=Te,c.finWarnById=Wh,c.findBan=Ar,c.findBetById=Fr,c.findCrewById=f0,c.findInvitations=p0,c.findReminder=C0,c.findSettingsByGuildId=_0,c.findShop=bn,c.findShopByType=S0,c.findUser=tr,c.findUserById=Ja,c.findUserCooldown=N0,c.findUserCrew=Rn,c.findUserGames=T0,c.findUserInventory=Ht,c.findUserMeta=dt,c.findUserOrnaments=bh,c.findUserQuest=Xa,c.findUserRaid=Ih,c.getBadgeEmojisFromId=ip,c.getQuestBadgeEmojis=rp,c.invitationsModel=Et,c.onQuestEvent=Qd,c.populateUser=Gh,c.questCanvas=Zh,c.reminderGetters=x0,c.reminderModel=Be,c.reminderUpdates=U0,c.settingsModel=Lt,c.settingsUpdates=g0,c.shopGetters=w0,c.shopModel=Pt,c.shopUpdates=v0,c.userCooldownGetters=k0,c.userCooldownModel=it,c.userCooldownUpdates=O0,c.userCrewExists=Y0,c.userCrewModel=qe,c.userCrewUpdates=I0,c.userDailyReportModel=jt,c.userDailyReportUpdates=L0,c.userGamesModel=lt,c.userGamesUpdates=P0,c.userGetters=Ph,c.userInventoryGetters=q0,c.userInventoryModel=ct,c.userInventoryUpdates=hh,c.userMetaGetters=eh,c.userMetaModel=be,c.userMetaUpdates=dh,c.userModel=G,c.userOrnamentsModel=ut,c.userOrnamentsUpdates=wh,c.userQuestGetters=vh,c.userQuestMetaModel=Se,c.userQuestMetaUpdates=Ah,c.userQuestModel=ft,c.userQuestUpdates=Mh,c.userRaidGetters=Nh,c.userRaidModel=pt,c.userRaidUpdates=$h,c.userShopGetters=Fh,c.userShopModel=Qt,c.userShopUpdates=Eh,c.userUpdates=Th,c.warnGetters=Kh,c.warnModel=Ke,Object.defineProperty(c,Symbol.toStringTag,{value:"Module"})});
|