@opfr/services 0.45.0 → 0.46.1
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 +1018 -999
- package/dist/index.umd.js +1 -1
- package/dist/services/settings/definition/schema.d.ts.map +1 -1
- package/dist/services/settings/query/updates.d.ts +1 -0
- package/dist/services/settings/query/updates.d.ts.map +1 -1
- package/dist/services/settings/types.d.ts +6 -0
- package/dist/services/settings/types.d.ts.map +1 -1
- package/dist/services/user-meta/definition/schema.d.ts.map +1 -1
- package/dist/services/user-meta/query/updates.d.ts +1 -0
- package/dist/services/user-meta/query/updates.d.ts.map +1 -1
- package/dist/services/user-meta/types.d.ts +1 -0
- package/dist/services/user-meta/types.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/index.umd.js
CHANGED
|
@@ -7,4 +7,4 @@ var ks;function y(){return ks.apply(null,arguments)}function Ci(t){ks=t}function
|
|
|
7
7
|
[`+i+"] ";for(o in arguments[0])R(arguments[0],o)&&(n+=o+": "+arguments[0][o]+", ");n=n.slice(0,-2)}else n=arguments[i];r.push(n)}Us(t+`
|
|
8
8
|
Arguments: `+Array.prototype.slice.call(r).join("")+`
|
|
9
9
|
`+new Error().stack),s=!1}return a.apply(this,arguments)},a)}var xs={};function Bs(t,a){y.deprecationHandler!=null&&y.deprecationHandler(t,a),xs[t]||(Us(a),xs[t]=!0)}y.suppressDeprecationWarnings=!1,y.deprecationHandler=null;function ie(t){return typeof Function<"u"&&t instanceof Function||Object.prototype.toString.call(t)==="[object Function]"}function xi(t){var a,s;for(s in t)R(t,s)&&(a=t[s],ie(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 fa(t,a){var s=ke({},t),r;for(r in a)R(a,r)&&(Oe(t[r])&&Oe(a[r])?(s[r]={},ke(s[r],t[r]),ke(s[r],a[r])):a[r]!=null?s[r]=a[r]:delete s[r]);for(r in t)R(t,r)&&!R(a,r)&&Oe(t[r])&&(s[r]=ke({},s[r]));return s}function ha(t){t!=null&&this.set(t)}var pa;Object.keys?pa=Object.keys:pa=function(t){var a,s=[];for(a in t)R(t,a)&&s.push(a);return s};var Bi={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Oi(t,a,s){var r=this._calendar[t]||this._calendar.sameElse;return ie(r)?r.call(a,s):r}function le(t,a,s){var r=""+Math.abs(t),n=a-r.length,i=t>=0;return(i?s?"+":"":"-")+Math.pow(10,Math.max(0,n)).toString().substr(1)+r}var ma=/(\[[^\[]*\])|(\\)?([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,Ct=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ya={},Ye={};function w(t,a,s,r){var n=r;typeof r=="string"&&(n=function(){return this[r]()}),t&&(Ye[t]=n),a&&(Ye[a[0]]=function(){return le(n.apply(this,arguments),a[1],a[2])}),s&&(Ye[s]=function(){return this.localeData().ordinal(n.apply(this,arguments),t)})}function Di(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function Ai(t){var a=t.match(ma),s,r;for(s=0,r=a.length;s<r;s++)Ye[a[s]]?a[s]=Ye[a[s]]:a[s]=Di(a[s]);return function(n){var i="",o;for(o=0;o<r;o++)i+=ie(a[o])?a[o].call(n,t):a[o];return i}}function Ut(t,a){return t.isValid()?(a=Os(a,t.localeData()),ya[a]=ya[a]||Ai(a),ya[a](t)):t.localeData().invalidDate()}function Os(t,a){var s=5;function r(n){return a.longDateFormat(n)||n}for(Ct.lastIndex=0;s>=0&&Ct.test(t);)t=t.replace(Ct,r),Ct.lastIndex=0,s-=1;return t}var Ni={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 $i(t){var a=this._longDateFormat[t],s=this._longDateFormat[t.toUpperCase()];return a||!s?a:(this._longDateFormat[t]=s.match(ma).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[t])}var Ei="Invalid date";function Fi(){return this._invalidDate}var Ii="%d",Yi=/\d{1,2}/;function Li(t){return this._ordinal.replace("%d",t)}var Pi={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 Ti(t,a,s,r){var n=this._relativeTime[s];return ie(n)?n(t,a,s,r):n.replace(/%d/i,t)}function ji(t,a){var s=this._relativeTime[t>0?"future":"past"];return ie(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 V(t){return typeof t=="string"?Ds[t]||Ds[t.toLowerCase()]:void 0}function ga(t){var a={},s,r;for(r in t)R(t,r)&&(s=V(r),s&&(a[s]=t[r]));return a}var Qi={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 Hi(t){var a=[],s;for(s in t)R(t,s)&&a.push({unit:s,priority:Qi[s]});return a.sort(function(r,n){return r.priority-n.priority}),a}var As=/\d/,q=/\d\d/,Ns=/\d{3}/,wa=/\d{4}/,xt=/[+-]?\d{6}/,O=/\d\d?/,$s=/\d\d\d\d?/,Es=/\d\d\d\d\d\d?/,Bt=/\d{1,3}/,_a=/\d{1,4}/,Ot=/[+-]?\d{1,6}/,Le=/\d+/,Dt=/[+-]?\d+/,qi=/Z|[+-]\d\d:?\d\d/gi,At=/Z|[+-]\d\d(?::?\d\d)?/gi,Wi=/[+-]?\d+(\.\d{1,3})?/,Je=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Pe=/^[1-9]\d?/,ba=/^([1-9]\d|\d)/,Nt;Nt={};function g(t,a,s){Nt[t]=ie(a)?a:function(r,n){return r&&s?s:a}}function Ki(t,a){return R(Nt,t)?Nt[t](a._strict,a._locale):new RegExp(Gi(t))}function Gi(t){return he(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(a,s,r,n,i){return s||r||n||i}))}function he(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function z(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function M(t){var a=+t,s=0;return a!==0&&isFinite(a)&&(s=z(a)),s}var Sa={};function x(t,a){var s,r=a,n;for(typeof t=="string"&&(t=[t]),fe(a)&&(r=function(i,o){o[a]=M(i)}),n=t.length,s=0;s<n;s++)Sa[t[s]]=r}function et(t,a){x(t,function(s,r,n,i){n._w=n._w||{},a(s,n._w,n,i)})}function Vi(t,a,s){a!=null&&R(Sa,t)&&Sa[t](a,s._a,s,t)}function $t(t){return t%4===0&&t%100!==0||t%400===0}var P=0,pe=1,de=2,$=3,ee=4,me=5,De=6,zi=7,Xi=8;w("Y",0,0,function(){var t=this.year();return t<=9999?le(t,4):"+"+t}),w(0,["YY",2],0,function(){return this.year()%100}),w(0,["YYYY",4],0,"year"),w(0,["YYYYY",5],0,"year"),w(0,["YYYYYY",6,!0],0,"year"),g("Y",Dt),g("YY",O,q),g("YYYY",_a,wa),g("YYYYY",Ot,xt),g("YYYYYY",Ot,xt),x(["YYYYY","YYYYYY"],P),x("YYYY",function(t,a){a[P]=t.length===2?y.parseTwoDigitYear(t):M(t)}),x("YY",function(t,a){a[P]=y.parseTwoDigitYear(t)}),x("Y",function(t,a){a[P]=parseInt(t,10)});function tt(t){return $t(t)?366:365}y.parseTwoDigitYear=function(t){return M(t)+(M(t)>68?1900:2e3)};var Fs=Te("FullYear",!0);function Zi(){return $t(this.year())}function Te(t,a){return function(s){return s!=null?(Is(this,t,s),y.updateOffset(this,a),this):at(this,t)}}function at(t,a){if(!t.isValid())return NaN;var s=t._d,r=t._isUTC;switch(a){case"Milliseconds":return r?s.getUTCMilliseconds():s.getMilliseconds();case"Seconds":return r?s.getUTCSeconds():s.getSeconds();case"Minutes":return r?s.getUTCMinutes():s.getMinutes();case"Hours":return r?s.getUTCHours():s.getHours();case"Date":return r?s.getUTCDate():s.getDate();case"Day":return r?s.getUTCDay():s.getDay();case"Month":return r?s.getUTCMonth():s.getMonth();case"FullYear":return r?s.getUTCFullYear():s.getFullYear();default:return NaN}}function Is(t,a,s){var r,n,i,o,f;if(!(!t.isValid()||isNaN(s))){switch(r=t._d,n=t._isUTC,a){case"Milliseconds":return void(n?r.setUTCMilliseconds(s):r.setMilliseconds(s));case"Seconds":return void(n?r.setUTCSeconds(s):r.setSeconds(s));case"Minutes":return void(n?r.setUTCMinutes(s):r.setMinutes(s));case"Hours":return void(n?r.setUTCHours(s):r.setHours(s));case"Date":return void(n?r.setUTCDate(s):r.setDate(s));case"FullYear":break;default:return}i=s,o=t.month(),f=t.date(),f=f===29&&o===1&&!$t(i)?28:f,n?r.setUTCFullYear(i,o,f):r.setFullYear(i,o,f)}}function Ji(t){return t=V(t),ie(this[t])?this[t]():this}function el(t,a){if(typeof t=="object"){t=ga(t);var s=Hi(t),r,n=s.length;for(r=0;r<n;r++)this[s[r].unit](t[s[r].unit])}else if(t=V(t),ie(this[t]))return this[t](a);return this}function tl(t,a){return(t%a+a)%a}var N;Array.prototype.indexOf?N=Array.prototype.indexOf:N=function(t){var a;for(a=0;a<this.length;++a)if(this[a]===t)return a;return-1};function Ma(t,a){if(isNaN(t)||isNaN(a))return NaN;var s=tl(a,12);return t+=(a-s)/12,s===1?$t(t)?29:28:31-s%7%2}w("M",["MM",2],"Mo",function(){return this.month()+1}),w("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),w("MMMM",0,0,function(t){return this.localeData().months(this,t)}),g("M",O,Pe),g("MM",O,q),g("MMM",function(t,a){return a.monthsShortRegex(t)}),g("MMMM",function(t,a){return a.monthsRegex(t)}),x(["M","MM"],function(t,a){a[pe]=M(t)-1}),x(["MMM","MMMM"],function(t,a,s,r){var n=s._locale.monthsParse(t,r,s._strict);n!=null?a[pe]=n:b(s).invalidMonth=t});var al="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("_"),Ls=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,sl=Je,rl=Je;function nl(t,a){return t?Z(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Ls).test(a)?"format":"standalone"][t.month()]:Z(this._months)?this._months:this._months.standalone}function il(t,a){return t?Z(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Ls.test(a)?"format":"standalone"][t.month()]:Z(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ll(t,a,s){var r,n,i,o=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=ne([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return s?a==="MMM"?(n=N.call(this._shortMonthsParse,o),n!==-1?n:null):(n=N.call(this._longMonthsParse,o),n!==-1?n:null):a==="MMM"?(n=N.call(this._shortMonthsParse,o),n!==-1?n:(n=N.call(this._longMonthsParse,o),n!==-1?n:null)):(n=N.call(this._longMonthsParse,o),n!==-1?n:(n=N.call(this._shortMonthsParse,o),n!==-1?n:null))}function dl(t,a,s){var r,n,i;if(this._monthsParseExact)return ll.call(this,t,a,s);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(n=ne([2e3,r]),s&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),!s&&!this._monthsParse[r]&&(i="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),s&&a==="MMMM"&&this._longMonthsParse[r].test(t))return r;if(s&&a==="MMM"&&this._shortMonthsParse[r].test(t))return r;if(!s&&this._monthsParse[r].test(t))return r}}function Ps(t,a){if(!t.isValid())return t;if(typeof a=="string"){if(/^\d+$/.test(a))a=M(a);else if(a=t.localeData().monthsParse(a),!fe(a))return t}var s=a,r=t.date();return r=r<29?r:Math.min(r,Ma(t.year(),s)),t._isUTC?t._d.setUTCMonth(s,r):t._d.setMonth(s,r),t}function Ts(t){return t!=null?(Ps(this,t),y.updateOffset(this,!0),this):at(this,"Month")}function ol(){return Ma(this.year(),this.month())}function cl(t){return this._monthsParseExact?(R(this,"_monthsRegex")||js.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(R(this,"_monthsShortRegex")||(this._monthsShortRegex=sl),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function ul(t){return this._monthsParseExact?(R(this,"_monthsRegex")||js.call(this),t?this._monthsStrictRegex:this._monthsRegex):(R(this,"_monthsRegex")||(this._monthsRegex=rl),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function js(){function t(m,_){return _.length-m.length}var a=[],s=[],r=[],n,i,o,f;for(n=0;n<12;n++)i=ne([2e3,n]),o=he(this.monthsShort(i,"")),f=he(this.months(i,"")),a.push(o),s.push(f),r.push(f),r.push(o);a.sort(t),s.sort(t),r.sort(t),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+a.join("|")+")","i")}function fl(t,a,s,r,n,i,o){var f;return t<100&&t>=0?(f=new Date(t+400,a,s,r,n,i,o),isFinite(f.getFullYear())&&f.setFullYear(t)):f=new Date(t,a,s,r,n,i,o),f}function st(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 Et(t,a,s){var r=7+a-s,n=(7+st(t,0,r).getUTCDay()-a)%7;return-n+r-1}function Qs(t,a,s,r,n){var i=(7+s-r)%7,o=Et(t,r,n),f=1+7*(a-1)+i+o,m,_;return f<=0?(m=t-1,_=tt(m)+f):f>tt(t)?(m=t+1,_=f-tt(t)):(m=t,_=f),{year:m,dayOfYear:_}}function rt(t,a,s){var r=Et(t.year(),a,s),n=Math.floor((t.dayOfYear()-r-1)/7)+1,i,o;return n<1?(o=t.year()-1,i=n+ye(o,a,s)):n>ye(t.year(),a,s)?(i=n-ye(t.year(),a,s),o=t.year()+1):(o=t.year(),i=n),{week:i,year:o}}function ye(t,a,s){var r=Et(t,a,s),n=Et(t+1,a,s);return(tt(t)-r+n)/7}w("w",["ww",2],"wo","week"),w("W",["WW",2],"Wo","isoWeek"),g("w",O,Pe),g("ww",O,q),g("W",O,Pe),g("WW",O,q),et(["w","ww","W","WW"],function(t,a,s,r){a[r.substr(0,1)]=M(t)});function hl(t){return rt(t,this._week.dow,this._week.doy).week}var pl={dow:0,doy:6};function ml(){return this._week.dow}function yl(){return this._week.doy}function gl(t){var a=this.localeData().week(this);return t==null?a:this.add((t-a)*7,"d")}function wl(t){var a=rt(this,1,4).week;return t==null?a:this.add((t-a)*7,"d")}w("d",0,"do","day"),w("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),w("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),w("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),w("e",0,0,"weekday"),w("E",0,0,"isoWeekday"),g("d",O),g("e",O),g("E",O),g("dd",function(t,a){return a.weekdaysMinRegex(t)}),g("ddd",function(t,a){return a.weekdaysShortRegex(t)}),g("dddd",function(t,a){return a.weekdaysRegex(t)}),et(["dd","ddd","dddd"],function(t,a,s,r){var n=s._locale.weekdaysParse(t,r,s._strict);n!=null?a.d=n:b(s).invalidWeekday=t}),et(["d","e","E"],function(t,a,s,r){a[r]=M(t)});function _l(t,a){return typeof t!="string"?t:isNaN(t)?(t=a.weekdaysParse(t),typeof t=="number"?t:null):parseInt(t,10)}function bl(t,a){return typeof t=="string"?a.weekdaysParse(t)%7||7:isNaN(t)?null:t}function va(t,a){return t.slice(a,7).concat(t.slice(0,a))}var Sl="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Hs="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ml="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),vl=Je,kl=Je,Rl=Je;function Cl(t,a){var s=Z(this._weekdays)?this._weekdays:this._weekdays[t&&t!==!0&&this._weekdays.isFormat.test(a)?"format":"standalone"];return t===!0?va(s,this._week.dow):t?s[t.day()]:s}function Ul(t){return t===!0?va(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function xl(t){return t===!0?va(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function Bl(t,a,s){var r,n,i,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=ne([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return s?a==="dddd"?(n=N.call(this._weekdaysParse,o),n!==-1?n:null):a==="ddd"?(n=N.call(this._shortWeekdaysParse,o),n!==-1?n:null):(n=N.call(this._minWeekdaysParse,o),n!==-1?n:null):a==="dddd"?(n=N.call(this._weekdaysParse,o),n!==-1||(n=N.call(this._shortWeekdaysParse,o),n!==-1)?n:(n=N.call(this._minWeekdaysParse,o),n!==-1?n:null)):a==="ddd"?(n=N.call(this._shortWeekdaysParse,o),n!==-1||(n=N.call(this._weekdaysParse,o),n!==-1)?n:(n=N.call(this._minWeekdaysParse,o),n!==-1?n:null)):(n=N.call(this._minWeekdaysParse,o),n!==-1||(n=N.call(this._weekdaysParse,o),n!==-1)?n:(n=N.call(this._shortWeekdaysParse,o),n!==-1?n:null))}function Ol(t,a,s){var r,n,i;if(this._weekdaysParseExact)return Bl.call(this,t,a,s);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(n=ne([2e3,1]).day(r),s&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),s&&a==="dddd"&&this._fullWeekdaysParse[r].test(t))return r;if(s&&a==="ddd"&&this._shortWeekdaysParse[r].test(t))return r;if(s&&a==="dd"&&this._minWeekdaysParse[r].test(t))return r;if(!s&&this._weekdaysParse[r].test(t))return r}}function Dl(t){if(!this.isValid())return t!=null?this:NaN;var a=at(this,"Day");return t!=null?(t=_l(t,this.localeData()),this.add(t-a,"d")):a}function Al(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 Nl(t){if(!this.isValid())return t!=null?this:NaN;if(t!=null){var a=bl(t,this.localeData());return this.day(this.day()%7?a:a-7)}else return this.day()||7}function $l(t){return this._weekdaysParseExact?(R(this,"_weekdaysRegex")||ka.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(R(this,"_weekdaysRegex")||(this._weekdaysRegex=vl),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function El(t){return this._weekdaysParseExact?(R(this,"_weekdaysRegex")||ka.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(R(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=kl),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Fl(t){return this._weekdaysParseExact?(R(this,"_weekdaysRegex")||ka.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(R(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Rl),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ka(){function t(B,Y){return Y.length-B.length}var a=[],s=[],r=[],n=[],i,o,f,m,_;for(i=0;i<7;i++)o=ne([2e3,1]).day(i),f=he(this.weekdaysMin(o,"")),m=he(this.weekdaysShort(o,"")),_=he(this.weekdays(o,"")),a.push(f),s.push(m),r.push(_),n.push(f),n.push(m),n.push(_);a.sort(t),s.sort(t),r.sort(t),n.sort(t),this._weekdaysRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Ra(){return this.hours()%12||12}function Il(){return this.hours()||24}w("H",["HH",2],0,"hour"),w("h",["hh",2],0,Ra),w("k",["kk",2],0,Il),w("hmm",0,0,function(){return""+Ra.apply(this)+le(this.minutes(),2)}),w("hmmss",0,0,function(){return""+Ra.apply(this)+le(this.minutes(),2)+le(this.seconds(),2)}),w("Hmm",0,0,function(){return""+this.hours()+le(this.minutes(),2)}),w("Hmmss",0,0,function(){return""+this.hours()+le(this.minutes(),2)+le(this.seconds(),2)});function qs(t,a){w(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),a)})}qs("a",!0),qs("A",!1);function Ws(t,a){return a._meridiemParse}g("a",Ws),g("A",Ws),g("H",O,ba),g("h",O,Pe),g("k",O,Pe),g("HH",O,q),g("hh",O,q),g("kk",O,q),g("hmm",$s),g("hmmss",Es),g("Hmm",$s),g("Hmmss",Es),x(["H","HH"],$),x(["k","kk"],function(t,a,s){var r=M(t);a[$]=r===24?0:r}),x(["a","A"],function(t,a,s){s._isPm=s._locale.isPM(t),s._meridiem=t}),x(["h","hh"],function(t,a,s){a[$]=M(t),b(s).bigHour=!0}),x("hmm",function(t,a,s){var r=t.length-2;a[$]=M(t.substr(0,r)),a[ee]=M(t.substr(r)),b(s).bigHour=!0}),x("hmmss",function(t,a,s){var r=t.length-4,n=t.length-2;a[$]=M(t.substr(0,r)),a[ee]=M(t.substr(r,2)),a[me]=M(t.substr(n)),b(s).bigHour=!0}),x("Hmm",function(t,a,s){var r=t.length-2;a[$]=M(t.substr(0,r)),a[ee]=M(t.substr(r))}),x("Hmmss",function(t,a,s){var r=t.length-4,n=t.length-2;a[$]=M(t.substr(0,r)),a[ee]=M(t.substr(r,2)),a[me]=M(t.substr(n))});function Yl(t){return(t+"").toLowerCase().charAt(0)==="p"}var Ll=/[ap]\.?m?\.?/i,Pl=Te("Hours",!0);function Tl(t,a,s){return t>11?s?"pm":"PM":s?"am":"AM"}var Ks={calendar:Bi,longDateFormat:Ni,invalidDate:Ei,ordinal:Ii,dayOfMonthOrdinalParse:Yi,relativeTime:Pi,months:al,monthsShort:Ys,week:pl,weekdays:Sl,weekdaysMin:Ml,weekdaysShort:Hs,meridiemParse:Ll},A={},nt={},it;function jl(t,a){var s,r=Math.min(t.length,a.length);for(s=0;s<r;s+=1)if(t[s]!==a[s])return s;return r}function Gs(t){return t&&t.toLowerCase().replace("_","-")}function Ql(t){for(var a=0,s,r,n,i;a<t.length;){for(i=Gs(t[a]).split("-"),s=i.length,r=Gs(t[a+1]),r=r?r.split("-"):null;s>0;){if(n=Ft(i.slice(0,s).join("-")),n)return n;if(r&&r.length>=s&&jl(i,r)>=s-1)break;s--}a++}return it}function Hl(t){return!!(t&&t.match("^[^/\\\\]*$"))}function Ft(t){var a=null,s;if(A[t]===void 0&&typeof module<"u"&&module&&module.exports&&Hl(t))try{a=it._abbr,s=require,s("./locale/"+t),Re(a)}catch{A[t]=null}return A[t]}function Re(t,a){var s;return t&&(Q(a)?s=ge(t):s=Ca(t,a),s?it=s:typeof console<"u"&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),it._abbr}function Ca(t,a){if(a!==null){var s,r=Ks;if(a.abbr=t,A[t]!=null)Bs("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=A[t]._config;else if(a.parentLocale!=null)if(A[a.parentLocale]!=null)r=A[a.parentLocale]._config;else if(s=Ft(a.parentLocale),s!=null)r=s._config;else return nt[a.parentLocale]||(nt[a.parentLocale]=[]),nt[a.parentLocale].push({name:t,config:a}),null;return A[t]=new ha(fa(r,a)),nt[t]&&nt[t].forEach(function(n){Ca(n.name,n.config)}),Re(t),A[t]}else return delete A[t],null}function ql(t,a){if(a!=null){var s,r,n=Ks;A[t]!=null&&A[t].parentLocale!=null?A[t].set(fa(A[t]._config,a)):(r=Ft(t),r!=null&&(n=r._config),a=fa(n,a),r==null&&(a.abbr=t),s=new ha(a),s.parentLocale=A[t],A[t]=s),Re(t)}else A[t]!=null&&(A[t].parentLocale!=null?(A[t]=A[t].parentLocale,t===Re()&&Re(t)):A[t]!=null&&delete A[t]);return A[t]}function ge(t){var a;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return it;if(!Z(t)){if(a=Ft(t),a)return a;t=[t]}return Ql(t)}function Wl(){return pa(A)}function Ua(t){var a,s=t._a;return s&&b(t).overflow===-2&&(a=s[pe]<0||s[pe]>11?pe:s[de]<1||s[de]>Ma(s[P],s[pe])?de:s[$]<0||s[$]>24||s[$]===24&&(s[ee]!==0||s[me]!==0||s[De]!==0)?$:s[ee]<0||s[ee]>59?ee:s[me]<0||s[me]>59?me:s[De]<0||s[De]>999?De:-1,b(t)._overflowDayOfYear&&(a<P||a>de)&&(a=de),b(t)._overflowWeeks&&a===-1&&(a=zi),b(t)._overflowWeekday&&a===-1&&(a=Xi),b(t).overflow=a),t}var Kl=/^\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)?)?$/,Gl=/^\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)?)?$/,Vl=/Z|[+-]\d\d(?::?\d\d)?/,It=[["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]],xa=[["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/]],zl=/^\/?Date\((-?\d+)/i,Xl=/^(?:(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}))$/,Zl={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,r=t._i,n=Kl.exec(r)||Gl.exec(r),i,o,f,m,_=It.length,B=xa.length;if(n){for(b(t).iso=!0,a=0,s=_;a<s;a++)if(It[a][1].exec(n[1])){o=It[a][0],i=It[a][2]!==!1;break}if(o==null){t._isValid=!1;return}if(n[3]){for(a=0,s=B;a<s;a++)if(xa[a][1].exec(n[3])){f=(n[2]||" ")+xa[a][0];break}if(f==null){t._isValid=!1;return}}if(!i&&f!=null){t._isValid=!1;return}if(n[4])if(Vl.exec(n[4]))m="Z";else{t._isValid=!1;return}t._f=o+(f||"")+(m||""),Oa(t)}else t._isValid=!1}function Jl(t,a,s,r,n,i){var o=[ed(t),Ys.indexOf(a),parseInt(s,10),parseInt(r,10),parseInt(n,10)];return i&&o.push(parseInt(i,10)),o}function ed(t){var a=parseInt(t,10);return a<=49?2e3+a:a<=999?1900+a:a}function td(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function ad(t,a,s){if(t){var r=Hs.indexOf(t),n=new Date(a[0],a[1],a[2]).getDay();if(r!==n)return b(s).weekdayMismatch=!0,s._isValid=!1,!1}return!0}function sd(t,a,s){if(t)return Zl[t];if(a)return 0;var r=parseInt(s,10),n=r%100,i=(r-n)/100;return i*60+n}function zs(t){var a=Xl.exec(td(t._i)),s;if(a){if(s=Jl(a[4],a[3],a[2],a[5],a[6],a[7]),!ad(a[1],s,t))return;t._a=s,t._tzm=sd(a[8],a[9],a[10]),t._d=st.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),b(t).rfc2822=!0}else t._isValid=!1}function rd(t){var a=zl.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(zs(t),t._isValid===!1)delete t._isValid;else return;t._strict?t._isValid=!1:y.createFromInputFallback(t)}y.createFromInputFallback=G("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 je(t,a,s){return t??a??s}function nd(t){var a=new Date(y.now());return t._useUTC?[a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()]:[a.getFullYear(),a.getMonth(),a.getDate()]}function Ba(t){var a,s,r=[],n,i,o;if(!t._d){for(n=nd(t),t._w&&t._a[de]==null&&t._a[pe]==null&&id(t),t._dayOfYear!=null&&(o=je(t._a[P],n[P]),(t._dayOfYear>tt(o)||t._dayOfYear===0)&&(b(t)._overflowDayOfYear=!0),s=st(o,0,t._dayOfYear),t._a[pe]=s.getUTCMonth(),t._a[de]=s.getUTCDate()),a=0;a<3&&t._a[a]==null;++a)t._a[a]=r[a]=n[a];for(;a<7;a++)t._a[a]=r[a]=t._a[a]==null?a===2?1:0:t._a[a];t._a[$]===24&&t._a[ee]===0&&t._a[me]===0&&t._a[De]===0&&(t._nextDay=!0,t._a[$]=0),t._d=(t._useUTC?st:fl).apply(null,r),i=t._useUTC?t._d.getUTCDay():t._d.getDay(),t._tzm!=null&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[$]=24),t._w&&typeof t._w.d<"u"&&t._w.d!==i&&(b(t).weekdayMismatch=!0)}}function id(t){var a,s,r,n,i,o,f,m,_;a=t._w,a.GG!=null||a.W!=null||a.E!=null?(i=1,o=4,s=je(a.GG,t._a[P],rt(D(),1,4).year),r=je(a.W,1),n=je(a.E,1),(n<1||n>7)&&(m=!0)):(i=t._locale._week.dow,o=t._locale._week.doy,_=rt(D(),i,o),s=je(a.gg,t._a[P],_.year),r=je(a.w,_.week),a.d!=null?(n=a.d,(n<0||n>6)&&(m=!0)):a.e!=null?(n=a.e+i,(a.e<0||a.e>6)&&(m=!0)):n=i),r<1||r>ye(s,i,o)?b(t)._overflowWeeks=!0:m!=null?b(t)._overflowWeekday=!0:(f=Qs(s,r,n,i,o),t._a[P]=f.year,t._dayOfYear=f.dayOfYear)}y.ISO_8601=function(){},y.RFC_2822=function(){};function Oa(t){if(t._f===y.ISO_8601){Vs(t);return}if(t._f===y.RFC_2822){zs(t);return}t._a=[],b(t).empty=!0;var a=""+t._i,s,r,n,i,o,f=a.length,m=0,_,B;for(n=Os(t._f,t._locale).match(ma)||[],B=n.length,s=0;s<B;s++)i=n[s],r=(a.match(Ki(i,t))||[])[0],r&&(o=a.substr(0,a.indexOf(r)),o.length>0&&b(t).unusedInput.push(o),a=a.slice(a.indexOf(r)+r.length),m+=r.length),Ye[i]?(r?b(t).empty=!1:b(t).unusedTokens.push(i),Vi(i,r,t)):t._strict&&!r&&b(t).unusedTokens.push(i);b(t).charsLeftOver=f-m,a.length>0&&b(t).unusedInput.push(a),t._a[$]<=12&&b(t).bigHour===!0&&t._a[$]>0&&(b(t).bigHour=void 0),b(t).parsedDateParts=t._a.slice(0),b(t).meridiem=t._meridiem,t._a[$]=ld(t._locale,t._a[$],t._meridiem),_=b(t).era,_!==null&&(t._a[P]=t._locale.erasConvertYear(_,t._a[P])),Ba(t),Ua(t)}function ld(t,a,s){var r;return s==null?a:t.meridiemHour!=null?t.meridiemHour(a,s):(t.isPM!=null&&(r=t.isPM(s),r&&a<12&&(a+=12),!r&&a===12&&(a=0)),a)}function dd(t){var a,s,r,n,i,o,f=!1,m=t._f.length;if(m===0){b(t).invalidFormat=!0,t._d=new Date(NaN);return}for(n=0;n<m;n++)i=0,o=!1,a=ua({},t),t._useUTC!=null&&(a._useUTC=t._useUTC),a._f=t._f[n],Oa(a),oa(a)&&(o=!0),i+=b(a).charsLeftOver,i+=b(a).unusedTokens.length*10,b(a).score=i,f?i<r&&(r=i,s=a):(r==null||i<r||o)&&(r=i,s=a,o&&(f=!0));ke(t,s||a)}function od(t){if(!t._d){var a=ga(t._i),s=a.day===void 0?a.date:a.day;t._a=Rs([a.year,a.month,s,a.hour,a.minute,a.second,a.millisecond],function(r){return r&&parseInt(r,10)}),Ba(t)}}function cd(t){var a=new Ze(Ua(Xs(t)));return a._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function Xs(t){var a=t._i,s=t._f;return t._locale=t._locale||ge(t._l),a===null||s===void 0&&a===""?Rt({nullInput:!0}):(typeof a=="string"&&(t._i=a=t._locale.preparse(a)),J(a)?new Ze(Ua(a)):(Xe(a)?t._d=a:Z(s)?dd(t):s?Oa(t):ud(t),oa(t)||(t._d=null),t))}function ud(t){var a=t._i;Q(a)?t._d=new Date(y.now()):Xe(a)?t._d=new Date(a.valueOf()):typeof a=="string"?rd(t):Z(a)?(t._a=Rs(a.slice(0),function(s){return parseInt(s,10)}),Ba(t)):Oe(a)?od(t):fe(a)?t._d=new Date(a):y.createFromInputFallback(t)}function Zs(t,a,s,r,n){var i={};return(a===!0||a===!1)&&(r=a,a=void 0),(s===!0||s===!1)&&(r=s,s=void 0),(Oe(t)&&la(t)||Z(t)&&t.length===0)&&(t=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=n,i._l=s,i._i=t,i._f=a,i._strict=r,cd(i)}function D(t,a,s,r){return Zs(t,a,s,r,!1)}var fd=G("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=D.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:Rt()}),hd=G("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=D.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:Rt()});function Js(t,a){var s,r;if(a.length===1&&Z(a[0])&&(a=a[0]),!a.length)return D();for(s=a[0],r=1;r<a.length;++r)(!a[r].isValid()||a[r][t](s))&&(s=a[r]);return s}function pd(){var t=[].slice.call(arguments,0);return Js("isBefore",t)}function md(){var t=[].slice.call(arguments,0);return Js("isAfter",t)}var yd=function(){return Date.now?Date.now():+new Date},lt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function gd(t){var a,s=!1,r,n=lt.length;for(a in t)if(R(t,a)&&!(N.call(lt,a)!==-1&&(t[a]==null||!isNaN(t[a]))))return!1;for(r=0;r<n;++r)if(t[lt[r]]){if(s)return!1;parseFloat(t[lt[r]])!==M(t[lt[r]])&&(s=!0)}return!0}function wd(){return this._isValid}function _d(){return te(NaN)}function Yt(t){var a=ga(t),s=a.year||0,r=a.quarter||0,n=a.month||0,i=a.week||a.isoWeek||0,o=a.day||0,f=a.hour||0,m=a.minute||0,_=a.second||0,B=a.millisecond||0;this._isValid=gd(a),this._milliseconds=+B+_*1e3+m*6e4+f*1e3*60*60,this._days=+o+i*7,this._months=+n+r*3+s*12,this._data={},this._locale=ge(),this._bubble()}function Lt(t){return t instanceof Yt}function Da(t){return t<0?Math.round(-1*t)*-1:Math.round(t)}function bd(t,a,s){var r=Math.min(t.length,a.length),n=Math.abs(t.length-a.length),i=0,o;for(o=0;o<r;o++)M(t[o])!==M(a[o])&&i++;return i+n}function er(t,a){w(t,0,0,function(){var s=this.utcOffset(),r="+";return s<0&&(s=-s,r="-"),r+le(~~(s/60),2)+a+le(~~s%60,2)})}er("Z",":"),er("ZZ",""),g("Z",At),g("ZZ",At),x(["Z","ZZ"],function(t,a,s){s._useUTC=!0,s._tzm=Aa(At,t)});var Sd=/([\+\-]|\d\d)/gi;function Aa(t,a){var s=(a||"").match(t),r,n,i;return s===null?null:(r=s[s.length-1]||[],n=(r+"").match(Sd)||["-",0,0],i=+(n[1]*60)+M(n[2]),i===0?0:n[0]==="+"?i:-i)}function Na(t,a){var s,r;return a._isUTC?(s=a.clone(),r=(J(t)||Xe(t)?t.valueOf():D(t).valueOf())-s.valueOf(),s._d.setTime(s._d.valueOf()+r),y.updateOffset(s,!1),s):D(t).local()}function $a(t){return-Math.round(t._d.getTimezoneOffset())}y.updateOffset=function(){};function Md(t,a,s){var r=this._offset||0,n;if(!this.isValid())return t!=null?this:NaN;if(t!=null){if(typeof t=="string"){if(t=Aa(At,t),t===null)return this}else Math.abs(t)<16&&!s&&(t=t*60);return!this._isUTC&&a&&(n=$a(this)),this._offset=t,this._isUTC=!0,n!=null&&this.add(n,"m"),r!==t&&(!a||this._changeInProgress?rr(this,te(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,y.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:$a(this)}function vd(t,a){return t!=null?(typeof t!="string"&&(t=-t),this.utcOffset(t,a),this):-this.utcOffset()}function kd(t){return this.utcOffset(0,t)}function Rd(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract($a(this),"m")),this}function Cd(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var t=Aa(qi,this._i);t!=null?this.utcOffset(t):this.utcOffset(0,!0)}return this}function Ud(t){return this.isValid()?(t=t?D(t).utcOffset():0,(this.utcOffset()-t)%60===0):!1}function xd(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Bd(){if(!Q(this._isDSTShifted))return this._isDSTShifted;var t={},a;return ua(t,this),t=Xs(t),t._a?(a=t._isUTC?ne(t._a):D(t._a),this._isDSTShifted=this.isValid()&&bd(t._a,a.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Od(){return this.isValid()?!this._isUTC:!1}function Dd(){return this.isValid()?this._isUTC:!1}function tr(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Ad=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Nd=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function te(t,a){var s=t,r=null,n,i,o;return Lt(t)?s={ms:t._milliseconds,d:t._days,M:t._months}:fe(t)||!isNaN(+t)?(s={},a?s[a]=+t:s.milliseconds=+t):(r=Ad.exec(t))?(n=r[1]==="-"?-1:1,s={y:0,d:M(r[de])*n,h:M(r[$])*n,m:M(r[ee])*n,s:M(r[me])*n,ms:M(Da(r[De]*1e3))*n}):(r=Nd.exec(t))?(n=r[1]==="-"?-1:1,s={y:Ae(r[2],n),M:Ae(r[3],n),w:Ae(r[4],n),d:Ae(r[5],n),h:Ae(r[6],n),m:Ae(r[7],n),s:Ae(r[8],n)}):s==null?s={}:typeof s=="object"&&("from"in s||"to"in s)&&(o=$d(D(s.from),D(s.to)),s={},s.ms=o.milliseconds,s.M=o.months),i=new Yt(s),Lt(t)&&R(t,"_locale")&&(i._locale=t._locale),Lt(t)&&R(t,"_isValid")&&(i._isValid=t._isValid),i}te.fn=Yt.prototype,te.invalid=_d;function Ae(t,a){var s=t&&parseFloat(t.replace(",","."));return(isNaN(s)?0:s)*a}function ar(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 $d(t,a){var s;return t.isValid()&&a.isValid()?(a=Na(a,t),t.isBefore(a)?s=ar(t,a):(s=ar(a,t),s.milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0}}function sr(t,a){return function(s,r){var n,i;return r!==null&&!isNaN(+r)&&(Bs(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=r,r=i),n=te(s,r),rr(this,n,t),this}}function rr(t,a,s,r){var n=a._milliseconds,i=Da(a._days),o=Da(a._months);t.isValid()&&(r=r??!0,o&&Ps(t,at(t,"Month")+o*s),i&&Is(t,"Date",at(t,"Date")+i*s),n&&t._d.setTime(t._d.valueOf()+n*s),r&&y.updateOffset(t,i||o))}var Ed=sr(1,"add"),Fd=sr(-1,"subtract");function nr(t){return typeof t=="string"||t instanceof String}function Id(t){return J(t)||Xe(t)||nr(t)||fe(t)||Ld(t)||Yd(t)||t===null||t===void 0}function Yd(t){var a=Oe(t)&&!la(t),s=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],n,i,o=r.length;for(n=0;n<o;n+=1)i=r[n],s=s||R(t,i);return a&&s}function Ld(t){var a=Z(t),s=!1;return a&&(s=t.filter(function(r){return!fe(r)&&nr(t)}).length===0),a&&s}function Pd(t){var a=Oe(t)&&!la(t),s=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],n,i;for(n=0;n<r.length;n+=1)i=r[n],s=s||R(t,i);return a&&s}function Td(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 jd(t,a){arguments.length===1&&(arguments[0]?Id(arguments[0])?(t=arguments[0],a=void 0):Pd(arguments[0])&&(a=arguments[0],t=void 0):(t=void 0,a=void 0));var s=t||D(),r=Na(s,this).startOf("day"),n=y.calendarFormat(this,r)||"sameElse",i=a&&(ie(a[n])?a[n].call(this,s):a[n]);return this.format(i||this.localeData().calendar(n,this,D(s)))}function Qd(){return new Ze(this)}function Hd(t,a){var s=J(t)?t:D(t);return this.isValid()&&s.isValid()?(a=V(a)||"millisecond",a==="millisecond"?this.valueOf()>s.valueOf():s.valueOf()<this.clone().startOf(a).valueOf()):!1}function qd(t,a){var s=J(t)?t:D(t);return this.isValid()&&s.isValid()?(a=V(a)||"millisecond",a==="millisecond"?this.valueOf()<s.valueOf():this.clone().endOf(a).valueOf()<s.valueOf()):!1}function Wd(t,a,s,r){var n=J(t)?t:D(t),i=J(a)?a:D(a);return this.isValid()&&n.isValid()&&i.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(n,s):!this.isBefore(n,s))&&(r[1]===")"?this.isBefore(i,s):!this.isAfter(i,s))):!1}function Kd(t,a){var s=J(t)?t:D(t),r;return this.isValid()&&s.isValid()?(a=V(a)||"millisecond",a==="millisecond"?this.valueOf()===s.valueOf():(r=s.valueOf(),this.clone().startOf(a).valueOf()<=r&&r<=this.clone().endOf(a).valueOf())):!1}function Gd(t,a){return this.isSame(t,a)||this.isAfter(t,a)}function Vd(t,a){return this.isSame(t,a)||this.isBefore(t,a)}function zd(t,a,s){var r,n,i;if(!this.isValid())return NaN;if(r=Na(t,this),!r.isValid())return NaN;switch(n=(r.utcOffset()-this.utcOffset())*6e4,a=V(a),a){case"year":i=Pt(this,r)/12;break;case"month":i=Pt(this,r);break;case"quarter":i=Pt(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-n)/864e5;break;case"week":i=(this-r-n)/6048e5;break;default:i=this-r}return s?i:z(i)}function Pt(t,a){if(t.date()<a.date())return-Pt(a,t);var s=(a.year()-t.year())*12+(a.month()-t.month()),r=t.clone().add(s,"months"),n,i;return a-r<0?(n=t.clone().add(s-1,"months"),i=(a-r)/(r-n)):(n=t.clone().add(s+1,"months"),i=(a-r)/(n-r)),-(s+i)||0}y.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",y.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Xd(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Zd(t){if(!this.isValid())return null;var a=t!==!0,s=a?this.clone().utc():this;return s.year()<0||s.year()>9999?Ut(s,a?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ie(Date.prototype.toISOString)?a?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Ut(s,"Z")):Ut(s,a?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Jd(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",a="",s,r,n,i;return this.isLocal()||(t=this.utcOffset()===0?"moment.utc":"moment.parseZone",a="Z"),s="["+t+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",i=a+'[")]',this.format(s+r+n+i)}function eo(t){t||(t=this.isUtc()?y.defaultFormatUtc:y.defaultFormat);var a=Ut(this,t);return this.localeData().postformat(a)}function to(t,a){return this.isValid()&&(J(t)&&t.isValid()||D(t).isValid())?te({to:this,from:t}).locale(this.locale()).humanize(!a):this.localeData().invalidDate()}function ao(t){return this.from(D(),t)}function so(t,a){return this.isValid()&&(J(t)&&t.isValid()||D(t).isValid())?te({from:this,to:t}).locale(this.locale()).humanize(!a):this.localeData().invalidDate()}function ro(t){return this.to(D(),t)}function ir(t){var a;return t===void 0?this._locale._abbr:(a=ge(t),a!=null&&(this._locale=a),this)}var lr=G("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 dr(){return this._locale}var Tt=1e3,Qe=60*Tt,jt=60*Qe,or=(365*400+97)*24*jt;function He(t,a){return(t%a+a)%a}function cr(t,a,s){return t<100&&t>=0?new Date(t+400,a,s)-or:new Date(t,a,s).valueOf()}function ur(t,a,s){return t<100&&t>=0?Date.UTC(t+400,a,s)-or:Date.UTC(t,a,s)}function no(t){var a,s;if(t=V(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?ur:cr,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-=He(a+(this._isUTC?0:this.utcOffset()*Qe),jt);break;case"minute":a=this._d.valueOf(),a-=He(a,Qe);break;case"second":a=this._d.valueOf(),a-=He(a,Tt);break}return this._d.setTime(a),y.updateOffset(this,!0),this}function io(t){var a,s;if(t=V(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?ur:cr,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+=jt-He(a+(this._isUTC?0:this.utcOffset()*Qe),jt)-1;break;case"minute":a=this._d.valueOf(),a+=Qe-He(a,Qe)-1;break;case"second":a=this._d.valueOf(),a+=Tt-He(a,Tt)-1;break}return this._d.setTime(a),y.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 oa(this)}function mo(){return ke({},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}}w("N",0,0,"eraAbbr"),w("NN",0,0,"eraAbbr"),w("NNN",0,0,"eraAbbr"),w("NNNN",0,0,"eraName"),w("NNNNN",0,0,"eraNarrow"),w("y",["y",1],"yo","eraYear"),w("y",["yy",2],0,"eraYear"),w("y",["yyy",3],0,"eraYear"),w("y",["yyyy",4],0,"eraYear"),g("N",Ea),g("NN",Ea),g("NNN",Ea),g("NNNN",xo),g("NNNNN",Bo),x(["N","NN","NNN","NNNN","NNNNN"],function(t,a,s,r){var n=s._locale.erasParse(t,r,s._strict);n?b(s).era=n:b(s).invalidEra=t}),g("y",Le),g("yy",Le),g("yyy",Le),g("yyyy",Le),g("yo",Oo),x(["y","yy","yyy","yyyy"],P),x(["yo"],function(t,a,s,r){var n;s._locale._eraYearOrdinalRegex&&(n=t.match(s._locale._eraYearOrdinalRegex)),s._locale.eraYearOrdinalParse?a[P]=s._locale.eraYearOrdinalParse(t,n):a[P]=parseInt(t,10)});function wo(t,a){var s,r,n,i=this._eras||ge("en")._eras;for(s=0,r=i.length;s<r;++s){switch(typeof i[s].since){case"string":n=y(i[s].since).startOf("day"),i[s].since=n.valueOf();break}switch(typeof i[s].until){case"undefined":i[s].until=1/0;break;case"string":n=y(i[s].until).startOf("day").valueOf(),i[s].until=n.valueOf();break}}return i}function _o(t,a,s){var r,n,i=this.eras(),o,f,m;for(t=t.toUpperCase(),r=0,n=i.length;r<n;++r)if(o=i[r].name.toUpperCase(),f=i[r].abbr.toUpperCase(),m=i[r].narrow.toUpperCase(),s)switch(a){case"N":case"NN":case"NNN":if(f===t)return i[r];break;case"NNNN":if(o===t)return i[r];break;case"NNNNN":if(m===t)return i[r];break}else if([o,f,m].indexOf(t)>=0)return i[r]}function bo(t,a){var s=t.since<=t.until?1:-1;return a===void 0?y(t.since).year():y(t.since).year()+(a-t.offset)*s}function So(){var t,a,s,r=this.localeData().eras();for(t=0,a=r.length;t<a;++t)if(s=this.clone().startOf("day").valueOf(),r[t].since<=s&&s<=r[t].until||r[t].until<=s&&s<=r[t].since)return r[t].name;return""}function Mo(){var t,a,s,r=this.localeData().eras();for(t=0,a=r.length;t<a;++t)if(s=this.clone().startOf("day").valueOf(),r[t].since<=s&&s<=r[t].until||r[t].until<=s&&s<=r[t].since)return r[t].narrow;return""}function vo(){var t,a,s,r=this.localeData().eras();for(t=0,a=r.length;t<a;++t)if(s=this.clone().startOf("day").valueOf(),r[t].since<=s&&s<=r[t].until||r[t].until<=s&&s<=r[t].since)return r[t].abbr;return""}function ko(){var t,a,s,r,n=this.localeData().eras();for(t=0,a=n.length;t<a;++t)if(s=n[t].since<=n[t].until?1:-1,r=this.clone().startOf("day").valueOf(),n[t].since<=r&&r<=n[t].until||n[t].until<=r&&r<=n[t].since)return(this.year()-y(n[t].since).year())*s+n[t].offset;return this.year()}function Ro(t){return R(this,"_erasNameRegex")||Fa.call(this),t?this._erasNameRegex:this._erasRegex}function Co(t){return R(this,"_erasAbbrRegex")||Fa.call(this),t?this._erasAbbrRegex:this._erasRegex}function Uo(t){return R(this,"_erasNarrowRegex")||Fa.call(this),t?this._erasNarrowRegex:this._erasRegex}function Ea(t,a){return a.erasAbbrRegex(t)}function xo(t,a){return a.erasNameRegex(t)}function Bo(t,a){return a.erasNarrowRegex(t)}function Oo(t,a){return a._eraYearOrdinalRegex||Le}function Fa(){var t=[],a=[],s=[],r=[],n,i,o,f,m,_=this.eras();for(n=0,i=_.length;n<i;++n)o=he(_[n].name),f=he(_[n].abbr),m=he(_[n].narrow),a.push(o),t.push(f),s.push(m),r.push(o),r.push(f),r.push(m);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+a.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+t.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}w(0,["gg",2],0,function(){return this.weekYear()%100}),w(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Qt(t,a){w(0,[t,t.length],0,a)}Qt("gggg","weekYear"),Qt("ggggg","weekYear"),Qt("GGGG","isoWeekYear"),Qt("GGGGG","isoWeekYear"),g("G",Dt),g("g",Dt),g("GG",O,q),g("gg",O,q),g("GGGG",_a,wa),g("gggg",_a,wa),g("GGGGG",Ot,xt),g("ggggg",Ot,xt),et(["gggg","ggggg","GGGG","GGGGG"],function(t,a,s,r){a[r.substr(0,2)]=M(t)}),et(["gg","GG"],function(t,a,s,r){a[r]=y.parseTwoDigitYear(t)});function Do(t){return fr.call(this,t,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Ao(t){return fr.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function No(){return ye(this.year(),1,4)}function $o(){return ye(this.isoWeekYear(),1,4)}function Eo(){var t=this.localeData()._week;return ye(this.year(),t.dow,t.doy)}function Fo(){var t=this.localeData()._week;return ye(this.weekYear(),t.dow,t.doy)}function fr(t,a,s,r,n){var i;return t==null?rt(this,r,n).year:(i=ye(t,r,n),a>i&&(a=i),Io.call(this,t,a,s,r,n))}function Io(t,a,s,r,n){var i=Qs(t,a,s,r,n),o=st(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}w("Q",0,"Qo","quarter"),g("Q",As),x("Q",function(t,a){a[pe]=(M(t)-1)*3});function Yo(t){return t==null?Math.ceil((this.month()+1)/3):this.month((t-1)*3+this.month()%3)}w("D",["DD",2],"Do","date"),g("D",O,Pe),g("DD",O,q),g("Do",function(t,a){return t?a._dayOfMonthOrdinalParse||a._ordinalParse:a._dayOfMonthOrdinalParseLenient}),x(["D","DD"],de),x("Do",function(t,a){a[de]=M(t.match(O)[0])});var hr=Te("Date",!0);w("DDD",["DDDD",3],"DDDo","dayOfYear"),g("DDD",Bt),g("DDDD",Ns),x(["DDD","DDDD"],function(t,a,s){s._dayOfYear=M(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")}w("m",["mm",2],0,"minute"),g("m",O,ba),g("mm",O,q),x(["m","mm"],ee);var Po=Te("Minutes",!1);w("s",["ss",2],0,"second"),g("s",O,ba),g("ss",O,q),x(["s","ss"],me);var To=Te("Seconds",!1);w("S",0,0,function(){return~~(this.millisecond()/100)}),w(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),w(0,["SSS",3],0,"millisecond"),w(0,["SSSS",4],0,function(){return this.millisecond()*10}),w(0,["SSSSS",5],0,function(){return this.millisecond()*100}),w(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),w(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),w(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),w(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),g("S",Bt,As),g("SS",Bt,q),g("SSS",Bt,Ns);var Ce,pr;for(Ce="SSSS";Ce.length<=9;Ce+="S")g(Ce,Le);function jo(t,a){a[De]=M(("0."+t)*1e3)}for(Ce="S";Ce.length<=9;Ce+="S")x(Ce,jo);pr=Te("Milliseconds",!1),w("z",0,0,"zoneAbbr"),w("zz",0,0,"zoneName");function Qo(){return this._isUTC?"UTC":""}function Ho(){return this._isUTC?"Coordinated Universal Time":""}var p=Ze.prototype;p.add=Ed,p.calendar=jd,p.clone=Qd,p.diff=zd,p.endOf=io,p.format=eo,p.from=to,p.fromNow=ao,p.to=so,p.toNow=ro,p.get=Ji,p.invalidAt=yo,p.isAfter=Hd,p.isBefore=qd,p.isBetween=Wd,p.isSame=Kd,p.isSameOrAfter=Gd,p.isSameOrBefore=Vd,p.isValid=po,p.lang=lr,p.locale=ir,p.localeData=dr,p.max=hd,p.min=fd,p.parsingFlags=mo,p.set=el,p.startOf=no,p.subtract=Fd,p.toArray=uo,p.toObject=fo,p.toDate=co,p.toISOString=Zd,p.inspect=Jd,typeof Symbol<"u"&&Symbol.for!=null&&(p[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),p.toJSON=ho,p.toString=Xd,p.unix=oo,p.valueOf=lo,p.creationData=go,p.eraName=So,p.eraNarrow=Mo,p.eraAbbr=vo,p.eraYear=ko,p.year=Fs,p.isLeapYear=Zi,p.weekYear=Do,p.isoWeekYear=Ao,p.quarter=p.quarters=Yo,p.month=Ts,p.daysInMonth=ol,p.week=p.weeks=gl,p.isoWeek=p.isoWeeks=wl,p.weeksInYear=Eo,p.weeksInWeekYear=Fo,p.isoWeeksInYear=No,p.isoWeeksInISOWeekYear=$o,p.date=hr,p.day=p.days=Dl,p.weekday=Al,p.isoWeekday=Nl,p.dayOfYear=Lo,p.hour=p.hours=Pl,p.minute=p.minutes=Po,p.second=p.seconds=To,p.millisecond=p.milliseconds=pr,p.utcOffset=Md,p.utc=kd,p.local=Rd,p.parseZone=Cd,p.hasAlignedHourOffset=Ud,p.isDST=xd,p.isLocal=Od,p.isUtcOffset=Dd,p.isUtc=tr,p.isUTC=tr,p.zoneAbbr=Qo,p.zoneName=Ho,p.dates=G("dates accessor is deprecated. Use date instead.",hr),p.months=G("months accessor is deprecated. Use month instead",Ts),p.years=G("years accessor is deprecated. Use year instead",Fs),p.zone=G("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",vd),p.isDSTShifted=G("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Bd);function qo(t){return D(t*1e3)}function Wo(){return D.apply(null,arguments).parseZone()}function mr(t){return t}var C=ha.prototype;C.calendar=Oi,C.longDateFormat=$i,C.invalidDate=Fi,C.ordinal=Li,C.preparse=mr,C.postformat=mr,C.relativeTime=Ti,C.pastFuture=ji,C.set=xi,C.eras=wo,C.erasParse=_o,C.erasConvertYear=bo,C.erasAbbrRegex=Co,C.erasNameRegex=Ro,C.erasNarrowRegex=Uo,C.months=nl,C.monthsShort=il,C.monthsParse=dl,C.monthsRegex=ul,C.monthsShortRegex=cl,C.week=hl,C.firstDayOfYear=yl,C.firstDayOfWeek=ml,C.weekdays=Cl,C.weekdaysMin=xl,C.weekdaysShort=Ul,C.weekdaysParse=Ol,C.weekdaysRegex=$l,C.weekdaysShortRegex=El,C.weekdaysMinRegex=Fl,C.isPM=Yl,C.meridiem=Tl;function Ht(t,a,s,r){var n=ge(),i=ne().set(r,a);return n[s](i,t)}function yr(t,a,s){if(fe(t)&&(a=t,t=void 0),t=t||"",a!=null)return Ht(t,a,s,"month");var r,n=[];for(r=0;r<12;r++)n[r]=Ht(t,r,s,"month");return n}function Ia(t,a,s,r){typeof t=="boolean"?(fe(a)&&(s=a,a=void 0),a=a||""):(a=t,s=a,t=!1,fe(a)&&(s=a,a=void 0),a=a||"");var n=ge(),i=t?n._week.dow:0,o,f=[];if(s!=null)return Ht(a,(s+i)%7,r,"day");for(o=0;o<7;o++)f[o]=Ht(a,(o+i)%7,r,"day");return f}function Ko(t,a){return yr(t,a,"months")}function Go(t,a){return yr(t,a,"monthsShort")}function Vo(t,a,s){return Ia(t,a,s,"weekdays")}function zo(t,a,s){return Ia(t,a,s,"weekdaysShort")}function Xo(t,a,s){return Ia(t,a,s,"weekdaysMin")}Re("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=M(t%100/10)===1?"th":a===1?"st":a===2?"nd":a===3?"rd":"th";return t+s}}),y.lang=G("moment.lang is deprecated. Use moment.locale instead.",Re),y.langData=G("moment.langData is deprecated. Use moment.localeData instead.",ge);var we=Math.abs;function Zo(){var t=this._data;return this._milliseconds=we(this._milliseconds),this._days=we(this._days),this._months=we(this._months),t.milliseconds=we(t.milliseconds),t.seconds=we(t.seconds),t.minutes=we(t.minutes),t.hours=we(t.hours),t.months=we(t.months),t.years=we(t.years),this}function gr(t,a,s,r){var n=te(a,s);return t._milliseconds+=r*n._milliseconds,t._days+=r*n._days,t._months+=r*n._months,t._bubble()}function Jo(t,a){return gr(this,t,a,1)}function ec(t,a){return gr(this,t,a,-1)}function wr(t){return t<0?Math.floor(t):Math.ceil(t)}function tc(){var t=this._milliseconds,a=this._days,s=this._months,r=this._data,n,i,o,f,m;return t>=0&&a>=0&&s>=0||t<=0&&a<=0&&s<=0||(t+=wr(Ya(s)+a)*864e5,a=0,s=0),r.milliseconds=t%1e3,n=z(t/1e3),r.seconds=n%60,i=z(n/60),r.minutes=i%60,o=z(i/60),r.hours=o%24,a+=z(o/24),m=z(_r(a)),s+=m,a-=wr(Ya(m)),f=z(s/12),s%=12,r.days=a,r.months=s,r.years=f,this}function _r(t){return t*4800/146097}function Ya(t){return t*146097/4800}function ac(t){if(!this.isValid())return NaN;var a,s,r=this._milliseconds;if(t=V(t),t==="month"||t==="quarter"||t==="year")switch(a=this._days+r/864e5,s=this._months+_r(a),t){case"month":return s;case"quarter":return s/3;case"year":return s/12}else switch(a=this._days+Math.round(Ya(this._months)),t){case"week":return a/7+r/6048e5;case"day":return a+r/864e5;case"hour":return a*24+r/36e5;case"minute":return a*1440+r/6e4;case"second":return a*86400+r/1e3;case"millisecond":return Math.floor(a*864e5)+r;default:throw new Error("Unknown unit "+t)}}function _e(t){return function(){return this.as(t)}}var br=_e("ms"),sc=_e("s"),rc=_e("m"),nc=_e("h"),ic=_e("d"),lc=_e("w"),dc=_e("M"),oc=_e("Q"),cc=_e("y"),uc=br;function fc(){return te(this)}function hc(t){return t=V(t),this.isValid()?this[t+"s"]():NaN}function Ne(t){return function(){return this.isValid()?this._data[t]:NaN}}var pc=Ne("milliseconds"),mc=Ne("seconds"),yc=Ne("minutes"),gc=Ne("hours"),wc=Ne("days"),_c=Ne("months"),bc=Ne("years");function Sc(){return z(this.days()/7)}var be=Math.round,qe={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Mc(t,a,s,r,n){return n.relativeTime(a||1,!!s,t,r)}function vc(t,a,s,r){var n=te(t).abs(),i=be(n.as("s")),o=be(n.as("m")),f=be(n.as("h")),m=be(n.as("d")),_=be(n.as("M")),B=be(n.as("w")),Y=be(n.as("y")),H=i<=s.ss&&["s",i]||i<s.s&&["ss",i]||o<=1&&["m"]||o<s.m&&["mm",o]||f<=1&&["h"]||f<s.h&&["hh",f]||m<=1&&["d"]||m<s.d&&["dd",m];return s.w!=null&&(H=H||B<=1&&["w"]||B<s.w&&["ww",B]),H=H||_<=1&&["M"]||_<s.M&&["MM",_]||Y<=1&&["y"]||["yy",Y],H[2]=a,H[3]=+t>0,H[4]=r,Mc.apply(null,H)}function kc(t){return t===void 0?be:typeof t=="function"?(be=t,!0):!1}function Rc(t,a){return qe[t]===void 0?!1:a===void 0?qe[t]:(qe[t]=a,t==="s"&&(qe.ss=a-1),!0)}function Cc(t,a){if(!this.isValid())return this.localeData().invalidDate();var s=!1,r=qe,n,i;return typeof t=="object"&&(a=t,t=!1),typeof t=="boolean"&&(s=t),typeof a=="object"&&(r=Object.assign({},qe,a),a.s!=null&&a.ss==null&&(r.ss=a.s-1)),n=this.localeData(),i=vc(this,!s,r,n),s&&(i=n.pastFuture(+this,i)),n.postformat(i)}var La=Math.abs;function We(t){return(t>0)-(t<0)||+t}function qt(){if(!this.isValid())return this.localeData().invalidDate();var t=La(this._milliseconds)/1e3,a=La(this._days),s=La(this._months),r,n,i,o,f=this.asSeconds(),m,_,B,Y;return f?(r=z(t/60),n=z(r/60),t%=60,r%=60,i=z(s/12),s%=12,o=t?t.toFixed(3).replace(/\.?0+$/,""):"",m=f<0?"-":"",_=We(this._months)!==We(f)?"-":"",B=We(this._days)!==We(f)?"-":"",Y=We(this._milliseconds)!==We(f)?"-":"",m+"P"+(i?_+i+"Y":"")+(s?_+s+"M":"")+(a?B+a+"D":"")+(n||r||t?"T":"")+(n?Y+n+"H":"")+(r?Y+r+"M":"")+(t?Y+o+"S":"")):"P0D"}var v=Yt.prototype;v.isValid=wd,v.abs=Zo,v.add=Jo,v.subtract=ec,v.as=ac,v.asMilliseconds=br,v.asSeconds=sc,v.asMinutes=rc,v.asHours=nc,v.asDays=ic,v.asWeeks=lc,v.asMonths=dc,v.asQuarters=oc,v.asYears=cc,v.valueOf=uc,v._bubble=tc,v.clone=fc,v.get=hc,v.milliseconds=pc,v.seconds=mc,v.minutes=yc,v.hours=gc,v.days=wc,v.weeks=Sc,v.months=_c,v.years=bc,v.humanize=Cc,v.toISOString=qt,v.toString=qt,v.toJSON=qt,v.locale=ir,v.localeData=dr,v.toIsoString=G("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",qt),v.lang=lr,w("X",0,0,"unix"),w("x",0,0,"valueOf"),g("x",Dt),g("X",Wi),x("X",function(t,a,s){s._d=new Date(parseFloat(t)*1e3)}),x("x",function(t,a,s){s._d=new Date(M(t))});//! moment.js
|
|
10
|
-
y.version="2.30.1",Ci(D),y.fn=p,y.min=pd,y.max=md,y.now=yd,y.utc=ne,y.unix=qo,y.months=Ko,y.isDate=Xe,y.locale=Re,y.invalid=Rt,y.duration=te,y.isMoment=J,y.weekdays=Vo,y.parseZone=Wo,y.localeData=ge,y.isDuration=Lt,y.monthsShort=Go,y.weekdaysMin=Xo,y.defineLocale=Ca,y.updateLocale=ql,y.locales=Wl,y.weekdaysShort=zo,y.normalizeUnits=V,y.relativeTimeRounding=kc,y.relativeTimeThreshold=Rc,y.calendarFormat=Td,y.prototype=p,y.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Wt=t=>new Intl.NumberFormat("de-DE").format(t),Sr=(t,a,s=Math.random)=>Math.floor(s()*(a-t)+t),Kt=(t,a,s=r=>r)=>t.filter(r=>!a.some(n=>s(n)===s(r))),Pa=(t,a)=>[...new Set(t.map(s=>a(s)))],Mr=t=>t.filter(a=>a!=null),Uc=({start:t=0,stop:a,step:s=1})=>{if(s===0)throw new RangeError("step cannot be equal to 0");if(s>0&&t>=a||s<0&&t<=a)return[];const r=[];for(let n=t;s>0?n<a:n>a;n+=s)r.push(n);return r},xc=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,Bc=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,vr=/(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,Ta=[/^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],Oc={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:vr,monthsShortRegex:vr,monthsStrictRegex:xc,monthsShortStrictRegex:Bc,monthsParse:Ta,longMonthsParse:Ta,shortMonthsParse:Ta,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}};y.locale("fr",Oc);const Se=(t,a,s=!0)=>(s?t.getFullYear()===a.getFullYear():!0)&&t.getMonth()===a.getMonth()&&t.getDate()===a.getDate(),ja=()=>y().locale("fr").subtract(1,"days").toDate(),$e=t=>new Date>t,kr=t=>typeof t=="function",Qa=(t,a,s)=>{const r={...t},n=Object.entries(t);for(const[i,o]of n){const f=a[i];f?r[i]=s(o,f):r[i]=o}return r},Ha=t=>Object.entries(t),Rr=new h.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}},roles:{premium:{type:String,default:null},booster:{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}});Rr.index({"meta.xp":-1});const Gt=((Gn=h.models)==null?void 0:Gn.Settings)||h.model("Settings",Rr),I=async(t,a,s=!1)=>{await Gt.updateOne({guildId:t},a,{upsert:s})},Dc=Object.freeze(Object.defineProperty({__proto__:null,addCrewChannelId:async(t,a,s)=>{await I(t,{$push:{"crew.crewChannelIds":{channelId:s,crewId:a}}})},randomizeEditoPrice:async t=>{const a=Sr(100,1001);return await I(t,{$set:{"edito.price":a}}),a},sentAtMidnight:async(t,a)=>{await I(t,{$set:{"edito.sentAtMidnight":a}})},setCrewInfoChannelId:async(t,a)=>{await I(t,{$set:{"crew.infoChannelId":a}})},setDiscussionChannelId:async(t,a)=>{await I(t,{$set:{discussionChannelId:a}})},setEditoChannel:async(t,a)=>{await I(t,{$set:{"edito.channelId":a}})},setEditoMessageId:async(t,a)=>{await I(t,{$set:{"edito.messageId":a}})},setFactionChannel:async(t,a)=>{await I(t,{$set:{factionChannelId:a}})},setQuestChannelId:async(t,a)=>{await I(t,{$set:{questFallbackChannelId:a}})},setRankingChannel:async(t,a)=>{await I(t,{$set:{"ranking.channelId":a}})},setRankingMessage:async(t,a)=>{await I(t,{$set:{"ranking.messageId":a}})},setReportBugChannelId:async(t,a)=>{await I(t,{$set:{reportBugChannelId:a}})},setReportChannel:async(t,a)=>{await I(t,{$set:{reportChannelId:a}})},setReportModeratorChannel:async(t,a)=>{await I(t,{$set:{reportModeratorChannelId:a}})},setShopChannelId:async(t,a,s)=>{await I(t,{$set:{shopChannelId:a,blackMarketChannelId:s}})},setSuggestionChannel:async(t,a)=>{await I(t,{$set:{suggestionChannelId:a}})},updateRolesId:async(t,a)=>{await I(t,{$set:Object.fromEntries(Object.entries(a).map(([s,r])=>[`roles.${s}`,r]))})}},Symbol.toStringTag,{value:"Module"})),Cr=async t=>await Gt.create({guildId:t}),Ac=async(t,a={})=>{const s=await Gt.findOne({guildId:t},a);return s||Cr(t)};class ae{constructor(){e(this,"name");e(this,"price");e(this,"size");e(this,"currency");e(this,"data");if(this.constructor===ae)throw new Error("Abstract classes can't be instantiated.")}toDBShopItem(){return{name:this.name,price:this.price,size:this.size,entityId:this.data.id,currency:this.currency}}async onBuy(a,s){this.currency==="berry"?(await tn(a,-1*this.price*s),await Zr(a,this.price*s)):await xe(a,this.currency,this.price*s)}isBackground(){return!1}isChest(){return!1}isTitle(){return!1}isBoostXp(){return!1}isRepair(){return!1}isStore(){return!1}isObject(){return!1}isBottle(){return!1}isEquipment(){return!1}}class Ur extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await bn(a,this.data.background.id)}isBackground(){return!0}}class xr extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await re(a,this.data.id,s)}isBoostXp(){return!0}}class Br extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await re(a,this.data.id,s)}isChest(){return!0}}class Or extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await re(a,this.data.id,s)}isObject(){return!0}}class Dr extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await cs(a,Uc({stop:s}).map(()=>S.seedEquipment({...this.data},Date.now()-Math.round(Math.random()*1e3))))}isEquipment(){return!0}}class Ar extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await re(a,this.data.id,s)}isBottle(){return!0}}class Nr extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await re(a,this.data.id,s)}isRepair(){return!0}}class $r extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await re(a,this.data.id,s)}isStore(){return!0}}class Er extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await ys(a,this.data.title.name)}isTitle(){return!0}}const Fr=(t,a)=>{const s=t.items.find(r=>r.entityId===a);if(s){const{name:r,price:n,size:i,currency:o}=s,f=S.findEntity(s.entityId);if(S.isBackgroundItem(f))return new Ur({name:r,price:n,item:f,size:i,currency:o});if(S.isTitleItem(f))return new Er({name:r,price:n,item:f,size:i,currency:o});if(S.isChestItem(f))return new Br({name:r,price:n,item:f,size:i,currency:o});if(S.isBoostItem(f))return new xr({name:r,price:n,item:f,size:i,currency:o});if(S.isRepairItem(f))return new Nr({name:r,price:n,item:f,size:i,currency:o});if(S.isStoreItem(f))return new $r({name:r,price:n,item:f,size:i,currency:o});if(S.isObjectItem(f))return new Or({name:r,price:n,item:f,size:i,currency:o});if(S.isEquipment(f))return new Dr({name:r,price:n,item:f,size:i,currency:o});if(S.isBottleItem(f))return new Ar({name:r,price:n,size:i,item:f,currency:o})}},Nc=Object.freeze(Object.defineProperty({__proto__:null,getShopItem:Fr,getShopItemList:t=>{const a=[];for(const{entityId:s}of t.items){const r=Fr(t,s);r&&a.push(r)}return a}},Symbol.toStringTag,{value:"Module"})),Ir=new h.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},entityId:String,currency: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}}},{minimize:!1});Ir.index({shopType:1});const Vt=((Vn=h.models)==null?void 0:Vn.Shop)||h.model("Shop",Ir),$c=async(t,a)=>{await Yr({shopType:t},a,!0)},qa=async(t,a)=>{await Yr({_id:t},a,!0)},Yr=async(t,a,s=!1)=>{await Vt.updateOne(t,a,{upsert:s})},Ec=Object.freeze(Object.defineProperty({__proto__:null,buyShopItem:async(t,a,s,r)=>{const n=a.map(i=>(i.name===s.name&&i.size&&(i.size-=r),i));await qa(t,{$set:{items:n}})},publish:async t=>{await qa(t,{$set:{publishedAt:new Date}})},setShopItems:async(t,a)=>{await $c(t,{$set:{items:[...a]}})},updateShopStats:async(t,a,s)=>{await qa(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"})),Fc=t=>Vt.create({shopType:t}),Ic=async(t,a={})=>{const s=await Lr({shopType:t},a);return s||await Fc(t)},Lr=(t,a={})=>Vt.findOne(t,a),Yc=Object.freeze(Object.defineProperty({__proto__:null,getCommandCooldown:(t,a)=>t.commands[a],getRaidCooldown:(t,a)=>t.raid[a]},Symbol.toStringTag,{value:"Module"})),Wa=new h.Schema({user:{type:h.Schema.Types.ObjectId,ref:"User",required:!0},date:Date,type:String},{minimize:!1});Wa.index({user:1}),Wa.index({date:-1});const Ee=((zn=h.models)==null?void 0:zn.Reminder)||h.model("Reminder",Wa),Lc=Object.freeze(Object.defineProperty({__proto__:null,getAllPassedReminder:async()=>await Ee.find({date:{$lte:new Date}})},Symbol.toStringTag,{value:"Module"})),Pc=async(t,a)=>{await Ee.deleteOne({user:t,type:a})},Pr=async(t,a,s,r)=>{await Ee.updateOne({user:t,type:a},s,{upsert:r})},Ka=async(t,a,s)=>{await Pr(t,a,{$set:{date:s}},!0)},Ga=async(t,a,s)=>{await Pr(t,a,[{$set:{date:{$add:["$date",s]}}}],!1)},Tc=Object.freeze(Object.defineProperty({__proto__:null,addReminder:Ka,deleteSelectedReminders:async t=>{await Ee.deleteMany({_id:{$in:t}})},removeReminder:async(t,a)=>{await Pc(t,a)},updateReminderDate:Ga},Symbol.toStringTag,{value:"Module"})),jc=async(t,a={})=>{const s=await Ee.findOne({user:t},a);return s||null},Qc=async(t,a,s)=>await Ee.create({user:t,date:a,type:s}),Hc=(t,a)=>{const s=Mr(Object.values(t.equippedItems)),r=a.equipments.filter(n=>s.find(i=>i.id===n.id)).length;if(r===a.equipments.length)return a.fullBonus;if(r>=a.equipments.length/2)return a.halfBonus},Va=t=>{var s;let a={vitality:0,strength:0,agility:0,chance:0,intelligence:0,wisdom:0};for(const r of S.EQUIPMENT_SLOT){const n=(s=t.equippedItems)==null?void 0:s[r];n&&(a=Qa(a,S.fromDBToEquipableEquipment(n).characteristics,(i,o)=>i+o))}for(const r of S.allPanoplies){const n=Hc(t,r);n&&!("target"in n)&&(a=Qa(a,n,(i,o)=>i+o))}return a},qc=Object.freeze(Object.defineProperty({__proto__:null,calcBottleMultiplier:(t,{buffs:a})=>{const s=S.getPanoplyBonus(t.equippedItems).find(([r,n])=>r.id==="herbalist"&&n!==null);return s&&s[1]==="full"?a.map(r=>({...r,multiplier:r.multiplier*1.25})):s&&s[1]==="half"?a.map(r=>({...r,multiplier:r.multiplier*1.1})):a},calcMinStreakForWorkLoot:t=>{const a=S.getPanoplyBonus(t.equippedItems).find(([s,r])=>s.id==="marine"&&r!==null);return a&&a[1]==="full"?10:a&&a[1]==="half"?20:1/0},getItemList:t=>Object.fromEntries(t.itemList),getRecipeResult:(t,a)=>{const s=S.getPanoplyBonus(t.equippedItems).find(([r,n])=>r.id==="little_blacksmith"&&n!==null);return(s==null?void 0:s[1])==="full"&&a==="chest_3"?"chest_blacksmith_3":(s==null?void 0:s[1])==="half"&&a==="chest_2"?"chest_blacksmith_2":(s==null?void 0:s[1])==="half"&&a==="chest_1"?"chest_blacksmith_1":a},getUserEquipmentsCharacteristics:Va,hasEnoughEnchantedStone:(t,a)=>(t.itemList.get("enchanted_stone")||0)>=a,hasEnoughItem:(t,a,s)=>(t.itemList.get(s)||0)>=a,hasEnoughItemsForRecipe:(t,a,s)=>{for(const r of a)if((t.itemList.get(r.itemId)||0)<r.size*s)return!1;return!0},hasEnoughTools:(t,a)=>(t.itemList.get("tools")||0)>=a,hasInventoryRequirements:(t,a)=>Ha(a).reduce((s,[r,n])=>s&&(t.itemList.get(r)??0)>=(n??0),!0),hasRevolutionaryBuff:t=>{const a=S.getPanoplyBonus(t.equippedItems).find(([s,r])=>s.id==="revolutionary"&&r!==null);return(a==null?void 0:a[1])??null},maxCraftQuantity:(t,a)=>{let s=1/0;for(const r of a)s=Math.min(s,Math.floor((t.itemList.get(r.itemId)||0)/r.size));return s}},Symbol.toStringTag,{value:"Module"})),Wc=Object.freeze(Object.defineProperty({__proto__:null,getEncyclopedia:t=>t.encyclopedia,hasFoundItem:(t,a)=>t.encyclopedia.includes(a)},Symbol.toStringTag,{value:"Module"})),Tr=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},encyclopedia:{type:[String],default:[]}});Tr.index({user:1});const dt=((Xn=h.models)==null?void 0:Xn.UserEncyclopedia)||h.model("UserEncyclopedia",Tr),jr=async(t,a)=>{await dt.updateOne({user:t},a,{upsert:!0})},zt=async(t,a)=>{await jr(t,{$addToSet:{encyclopedia:{$each:a}}})},Kc=Object.freeze(Object.defineProperty({__proto__:null,addItem:zt},Symbol.toStringTag,{value:"Module"})),Qr=async t=>await dt.create({user:t}),Gc=async t=>{const a=await dt.findOne({user:t});return a||await Qr(t)},Vc=["crewUpdate","crewQuestUpdate","userMetaUpdate","userQuestMetaUpdate","userQuestUpdate","userInventoryUpdate","userOrnamentsUpdate","userDaily","crewDaily","userChristmasUpdate"],Hr=new pi.EventEmitter,se=(t,a,s)=>{Hr.emit(t,a,s)},zc=t=>{for(const a of Vc)Hr.on(a,(s,r)=>{t(a,s,r)})};class d{constructor(){e(this,"chest");e(this,"repeatable");e(this,"onUserMetaUpdate");e(this,"onUserQuestUpdate");e(this,"onUserQuestMetaUpdate");e(this,"onUserInventoryUpdate");e(this,"onUserOrnamentsUpdate");e(this,"onCrewUpdate");e(this,"onCrewQuestUpdate");e(this,"complete",async(a,{_userQuest:s,_userCrew:r,_userMeta:n,_userInventory:i})=>{const o=s??await ws(a);if(this.isCompleted(o)&&!this.repeatable)return null;const f=n??await ut(a),m=r??await mn(a),_=i??await ht(a);return this.crew&&m?this.daily?await this.markCrewDailyAsCompleted(m.crew._id,o.user._id):(await this.markAsCompleted(o),await this.markCrewAsCompleted(m.crew._id)):await this.markAsCompleted(o),await this.specificQuestCompletion(o,m),await this.applyReward(o,f,m,_)});e(this,"getComputedRewards",(a,s)=>{const r=this.daily&&Xa(s)?Za(s):1;return{xp:(kr(this.xp)?this.xp(a):this.xp)*r*(1+fs(a)),berry:(kr(this.berry)?this.berry(a):this.berry)*r}})}async applyReward(a,s,r,n){return this.title&&await ys(a.user._id,this.title.name),this.badge&&(this.crew&&r?await Pn(r.crew._id,this.badge,this.rank.id):await Sn(a.user._id,this.badge,this.rank.id)),this.isFactionBadge&&await Mn(a.user._id,this.rank.id),this.asset&&await vn(a.user._id,this.asset),this.chest&&await ln(n.user._id,this.chest),this.getComputedRewards(s,a)}async specificQuestCompletion(a,s){this.id==="daily_all"&&(await Un(a.user._id,a.lastFullComplete),s&&await this.markCrewDailyAsCompleted(s.crew._id,a.user._id)),this.id==="be_level_10"&&await $n(a.user._id,!0),this.id!=="be_level_10"&&this.id.startsWith("be_level_")&&await En(a.user._id,!0),this.id==="crew_all_members_daily"&&s&&await pn(a.user._id)}isCompleted(a){return this.daily?Kr(a,this.id):qr(a,this.id)}async markAsCompleted(a){this.daily?await Cn(a.user._id,this.id):await Rn(a.user._id,this.id)}async markCrewAsCompleted(a){await jn(a,this.id)}async markCrewDailyAsCompleted(a,s){await Qn(a,s.toHexString(),this.id)}}class Xc extends d{constructor(){super(...arguments);e(this,"name","Bienvenue à bord !");e(this,"id","crew_create_or_join");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Créer son équipage/Rejoindre un équipage");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1)}}class Zc extends d{constructor(){super(...arguments);e(this,"name","Prêt à naviguer !");e(this,"id","crew_daily_click");e(this,"rank",l.RANKS.COMMON);e(this,"description","Faire acte de présence auprès de son équipage");e(this,"berry",1e4);e(this,"xp",1e3);e(this,"crew",!0);e(this,"daily",!0);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1)}}const Jc=Object.freeze(Object.defineProperty({__proto__:null,CrewCreateOrJoin:Xc,CrewValidateDaily:Zc},Symbol.toStringTag,{value:"Module"}));class eu extends d{constructor(){super(...arguments);e(this,"name","1 jour 1 message");e(this,"id","daily_send_message");e(this,"rank",l.RANKS.COMMON);e(this,"description","Envoyer un message");e(this,"berry",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*1e3);e(this,"xp",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*100);e(this,"daily",!0);e(this,"secret",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null)}}class tu extends d{constructor(){super(...arguments);e(this,"name","Les nouvelles sont bonnes ?");e(this,"id","daily_read_edito");e(this,"rank",l.RANKS.COMMON);e(this,"description","Réagir à l'édito");e(this,"berry",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*3e3);e(this,"xp",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*300);e(this,"daily",!0);e(this,"secret",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null)}}class au extends d{constructor(){super(...arguments);e(this,"name","Quoi ? Feur !");e(this,"id","daily_answer");e(this,"rank",l.RANKS.COMMON);e(this,"description","Répondre à quelqu'un");e(this,"berry",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*1500);e(this,"xp",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*150);e(this,"daily",!0);e(this,"secret",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null)}}class su extends d{constructor(){super(...arguments);e(this,"name","Narcissique");e(this,"id","daily_check_profile");e(this,"rank",l.RANKS.COMMON);e(this,"description","Regarder son profil");e(this,"berry",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*2e3);e(this,"xp",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*200);e(this,"daily",!0);e(this,"secret",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null)}}class ru extends d{constructor(){super(...arguments);e(this,"name","Almanax");e(this,"id","almanax");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Valider 365 jours de suite les quêtes quotidiennes");e(this,"berry",1e9);e(this,"xp",1e6);e(this,"badge",u.BadgeList.calendar);e(this,"secret",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"asset",null);e(this,"title",null);e(this,"daily",!1)}}const za=Object.freeze(Object.defineProperty({__proto__:null,Almanax:ru,DailyAnswer:au,DailyCheckProfile:su,DailyReadEdito:tu,DailySendMessage:eu},Symbol.toStringTag,{value:"Module"})),nu=async(t,a,s,{berry:r,xp:n})=>{const i=await ws(a).then(E=>E.populate("user","faction")),o=Za(i),f=Vr(i,i.user.faction),{badge:m,isFactionBadge:_,title:B,rank:Y,name:H,description:ry,daily:ra,secret:ny}=t;return s.Image().setImageName(`quest_success_${Y.id}`).setDimensions(2080,636).draw(),m?s.Image().setImageName(u.progressiveBadgeTypeGuard(m)?`cropped_badge_${m.img}_${Y.id}`:`cropped_badge_${m.img}`).setOrigin(j.CanvasOrigin.CENTER).setScale(2).setPosition(370,318).draw():_&&i.user.faction!=="citizen"?s.Image().setImageName(`cropped_badge_${i.user.faction}_${Y.id}`).setOrigin(j.CanvasOrigin.CENTER).setScale(2).setPosition(370,318).draw():s.Image().setImageName(`badge_default_${Y.id}`).setScale(2).setOrigin(j.CanvasOrigin.CENTER).setPosition(370,318).draw(),s.Text(ra?"QUÊTE JOURNALIÈRE TERMINÉE !":"SUCCÈS DÉBLOQUÉ !").setPosition(739,100).setFont("text",70).setColor(Y.color).draw(),s.Text(H).setPosition(739,325).setOrigin(j.CanvasOrigin.BOTTOM_LEFT).setFont("poppins",H.length>=35?65-(H.length-35):65).draw(),s.Text(ny?"Succès caché":ry).setPosition(739,360).setFont("poppins_italic",35).draw(),s.Text(`Récompenses: ${Wt(r)}${ra&&o>1?` (+${Wt(r*(o-1))})`:""} `).setPosition(739,520).setFont("poppins",35).setOrigin(j.CanvasOrigin.LEFT).draw(r!==0).next((E,L)=>j.nextAllToXAxis(E.Image(),L)).setImageName("quest_berry").setDimensions(50,79).draw(r!==0).next((E,L)=>j.nextAllToXAxis(E.Text(` / ${Wt(n)}${ra&&o>1?` (+${Wt(n*(o-1))})`:""} `),L)).draw(n!==0).next((E,L)=>j.nextAllToXAxis(E.Image(),L)).setImageName("quest_xp").setDimensions(57,59).draw(n!==0).next((E,L)=>j.nextAllToXAxis(E.Text(` combo x${o}`),L)).draw(ra&&o>1).next((E,L)=>j.nextAllToXAxis(E.Text(" et la possibilité "),L)).draw(_&&i.user.faction==="citizen").next((E,L)=>j.nextAllToXAxis(E.Text("de choisir ta faction"),L)).setFont("poppins_bold",35).draw(_&&i.user.faction==="citizen").next((E,L)=>j.nextAllToXAxis(E.Text(" et le titre "),L)).setFont("poppins",35).draw(!!B||_&&i.user.faction!=="citizen").next((E,L)=>j.nextAllToXAxis(E.Text((B==null?void 0:B.name)??""),L)).setFont("poppins_bold",35).setColor((B==null?void 0:B.rank.color)??"white").draw(!!B).next((E,L)=>j.nextAllToXAxis(E.Text((f==null?void 0:f.name)??""),L)).setColor((f==null?void 0:f.rank.color)??"white").draw(_&&!!f),await s.encode("webp")},iu=10,lu=1e7,du=100,ou=["berry","success_COMMON","success_RARE","success_EPIC","success_LEGENDARY","success_MYTHIC","xp"],cu={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>"}},qr=(t,a)=>t.completed.includes(a),Wr=t=>{for(const a of Object.values(vt)){const s=new a;if(s.repeatable&&t===s.id)return!0}return!1},uu=t=>{for(const a of Object.values(zr)){const s=new a;if(s.id===t)return s.name}return null},Kr=(t,a)=>{const s=t.daily[a];return s&&Se(s,new Date)},Xa=t=>Se(ja(),t.lastFullComplete),Za=t=>Xa(t)?1+Math.min(2,t.streak/10):1,Gr=t=>t.completed.reduce((a,s)=>a+(s.startsWith("be_level_")?1:0),0),Vr=(t,a)=>{const s=Gr(t);return u.factionTitleList.find(r=>r.strength===s&&r.faction===a)},fu=Object.freeze(Object.defineProperty({__proto__:null,getFactionTitle:Vr,getFactionTitleStrength:Gr,getQuestName:uu,getStreakMultiplier:Za,isDailyQuestCompleted:Kr,isQuestCompleted:qr,isRepetableQuestExist:Wr,isStreaking:Xa},Symbol.toStringTag,{value:"Module"})),hu=(t,a)=>{const s=t.badge,r=t.isFactionBadge;return s?u.progressiveBadgeTypeGuard(s)?s.emojis[s.isProgressive.findIndex(n=>n===t.rank.id)]:s.emojis:r?cu.factions[`b_${a}_${t.rank.id}`]:""},pu=t=>{const[a,s]=t.split("_"),r=Object.values(u.BadgeList).find(n=>n.id===a);if(r)return u.progressiveBadgeTypeGuard(r)?r.emojis[r.isProgressive.findIndex(n=>n===s)]:r.emojis},mu=async(t,a)=>{const s=Object.values(za).find(r=>new r().id===t);if(s){const r=new s,n=await r.complete(a,{});n&&se("userDaily",a,[[r,n]])}},yu=async(t,a)=>{const s=Object.values(Jc).find(r=>new r().id===t);if(s){const r=new s,n=await r.complete(a,{});n&&se("crewDaily",a,[[r,n]])}},gu=async(t,a)=>{if(!Wr(a))return;const s=Object.values(vt).find(r=>new r().id===a);if(s){const r=new s,n=await r.complete(t,{});n&&se("userQuestUpdate",t,[[r,n]])}};class wu extends d{constructor(){super(...arguments);e(this,"name","L'Insistant");e(this,"id","insistent");e(this,"rank",l.RANKS.EPIC);e(this,"description","Être repêché et atteindre les huitièmes de finale");e(this,"berry",1e6);e(this,"xp",0);e(this,"secret",!1);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,"repeatable",!0)}}class _u extends d{constructor(){super(...arguments);e(this,"name","Résurrection");e(this,"id","resurrection");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Être repêché et atteindre les quarts de finale");e(this,"berry",3e6);e(this,"xp",0);e(this,"secret",!1);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,"repeatable",!0)}}class bu extends d{constructor(){super(...arguments);e(this,"name","L'Inarrétable");e(this,"id","unstoppable");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Remporter un tournoi avec une finale écrasante");e(this,"berry",0);e(this,"xp",0);e(this,"chest",[{chest:"chest_1",size:5},{chest:"chest_2",size:3}]);e(this,"secret",!1);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,"repeatable",!0)}}class Su extends d{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,"onCrewQuestUpdate",s=>s.meta.streak80Percent>=7)}}class Mu extends d{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,"onCrewQuestUpdate",s=>s.meta.streak80Percent>=30)}}class vu extends d{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,"onCrewQuestUpdate",s=>s.meta.streak80Percent>=30*3)}}class ku extends d{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,"onCrewQuestUpdate",s=>s.meta.streak80Percent>=30*6)}}class Ru extends d{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,"onCrewQuestUpdate",s=>s.meta.streak80Percent>=365)}}class Cu extends d{constructor(){super(...arguments);e(this,"name","Au rapport !");e(this,"id","crew_all_members_daily");e(this,"rank",l.RANKS.RARE);e(this,"description","Tous les membres ont rempli leurs quêtes quotidiennes");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"crew",!0);e(this,"daily",!0);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"onCrewQuestUpdate",(s,r)=>{var n,i;return Tn(s,"daily_all")&&!Se(((i=(n=s.daily)==null?void 0:n[r.user._id.toHexString()])==null?void 0:i.crew_all_members_daily)??new Date(0),new Date)&&!Se(r.lastAllMembersDaily,new Date)})}}class Uu extends d{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,"onCrewQuestUpdate",s=>s.meta.maxVoiceMembers>=5)}}class xu extends d{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,"onCrewQuestUpdate",s=>s.meta.maxVoiceMembers>=7)}}class Bu extends d{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,"onCrewQuestUpdate",s=>s.meta.maxVoiceMembers>=10)}}class Ou extends d{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,"onCrewQuestUpdate",s=>s.meta.maxVoiceMembers>=12)}}class Du extends d{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,"onCrewQuestUpdate",s=>s.meta.maxVoiceMembers>=15)}}const Ja=Object.freeze(Object.defineProperty({__proto__:null,CrewAllMembersDaily:Cu,CrewCarpenter1Month:Mu,CrewCarpenter1Week:Su,CrewCarpenter1Year:Ru,CrewCarpenter3Months:vu,CrewCarpenter6Months:ku,CrewVocal10:Bu,CrewVocal12:Ou,CrewVocal15:Du,CrewVocal5:Uu,CrewVocal7:xu},Symbol.toStringTag,{value:"Module"}));class Au extends d{constructor(){super(...arguments);e(this,"name","Ah bah maintenant, elle va marcher beaucoup moins bien forcément !");e(this,"id","crew_break_ship");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Casser son bateau (atteindre les 0% de détérioration)");e(this,"berry",-1e6);e(this,"xp",-1e5);e(this,"crew",!0);e(this,"secret",!0);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.disintegration<=0)}}class Nu extends d{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.getCurrentCrewLevel(s.meta.xp)>=10)}}class $u extends d{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.getCurrentCrewLevel(s.meta.xp)>=25)}}class Eu extends d{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.getCurrentCrewLevel(s.meta.xp)>=50)}}class Fu extends d{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.getCurrentCrewLevel(s.meta.xp)>=75)}}class Iu extends d{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.getCurrentCrewLevel(s.meta.xp)>=100)}}class Yu extends d{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 Lu extends d{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 Pu extends d{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 Tu extends d{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 ju extends d{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 Qu extends d{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 Hu extends d{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 qu extends d{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 Wu extends d{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 Ku extends d{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 Gu extends d{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,r)=>s.stats[r.toHexString()]&&s.stats[r.toHexString()].xp>=5e4)}}class Vu extends d{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,r)=>s.stats[r.toHexString()]&&s.stats[r.toHexString()].xp>=5e5)}}class zu extends d{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,r)=>s.stats[r.toHexString()]&&s.stats[r.toHexString()].xp>=1e6)}}class Xu extends d{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,r)=>s.stats[r.toHexString()]&&s.stats[r.toHexString()].xp>=5e6)}}class Zu extends d{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,r)=>s.stats[r.toHexString()]&&s.stats[r.toHexString()].xp>=5e7)}}const es=Object.freeze(Object.defineProperty({__proto__:null,CrewBeLevel10:Nu,CrewBeLevel100:Iu,CrewBeLevel25:$u,CrewBeLevel50:Eu,CrewBeLevel75:Fu,CrewBreakShip:Au,CrewBring1mXp:zu,CrewBring500kXp:Vu,CrewBring50kXp:Gu,CrewBring50mXp:Zu,CrewBring5mXp:Xu,CrewHave100MBerry:Yu,CrewHave1MdBerry:Pu,CrewHave500MBerry:Lu,CrewHave50MdBerry:ju,CrewHave5MdBerry:Tu,CrewSize10:qu,CrewSize12:Wu,CrewSize15:Ku,CrewSize5:Qu,CrewSize7:Hu},Symbol.toStringTag,{value:"Module"}));class Ju extends d{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 ef extends d{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 tf extends d{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 af extends d{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 sf extends d{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 ts=Object.freeze(Object.defineProperty({__proto__:null,Have100Recipe:sf,Have10Recipe:tf,Have1Recipe:Ju,Have25Recipe:af,Have5Recipe:ef},Symbol.toStringTag,{value:"Module"}));class rf extends d{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 nf extends d{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 lf extends d{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 df extends d{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 of extends d{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 cf extends d{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=>U.getComputedCharacteristicValue(s.characteristics.strength)>=25)}}class uf extends d{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=>U.getComputedCharacteristicValue(s.characteristics.strength)>=50)}}class ff extends d{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=>U.getComputedCharacteristicValue(s.characteristics.strength)>=100)}}class hf extends d{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=>U.getComputedCharacteristicValue(s.characteristics.strength)>=250)}}class pf extends d{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=>U.getComputedCharacteristicValue(s.characteristics.strength)>=500)}}class mf extends d{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=>U.getComputedCharacteristicValue(s.characteristics.agility)>=25)}}class yf extends d{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=>U.getComputedCharacteristicValue(s.characteristics.agility)>=50)}}class gf extends d{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=>U.getComputedCharacteristicValue(s.characteristics.agility)>=100)}}class wf extends d{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=>U.getComputedCharacteristicValue(s.characteristics.agility)>=250)}}class _f extends d{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=>U.getComputedCharacteristicValue(s.characteristics.agility)>=500)}}class bf extends d{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=>U.getComputedCharacteristicValue(s.characteristics.intelligence)>=25)}}class Sf extends d{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=>U.getComputedCharacteristicValue(s.characteristics.intelligence)>=50)}}class Mf extends d{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=>U.getComputedCharacteristicValue(s.characteristics.intelligence)>=100)}}class vf extends d{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=>U.getComputedCharacteristicValue(s.characteristics.intelligence)>=250)}}class kf extends d{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=>U.getComputedCharacteristicValue(s.characteristics.intelligence)>=500)}}class Rf extends d{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=>U.getComputedCharacteristicValue(s.characteristics.chance)>=25)}}class Cf extends d{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=>U.getComputedCharacteristicValue(s.characteristics.chance)>=50)}}class Uf extends d{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=>U.getComputedCharacteristicValue(s.characteristics.chance)>=100)}}class xf extends d{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=>U.getComputedCharacteristicValue(s.characteristics.chance)>=250)}}class Bf extends d{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=>U.getComputedCharacteristicValue(s.characteristics.chance)>=500)}}class Of extends d{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=>U.getComputedCharacteristicValue(s.characteristics.vitality)>=25)}}class Df extends d{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=>U.getComputedCharacteristicValue(s.characteristics.vitality)>=50)}}class Af extends d{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=>U.getComputedCharacteristicValue(s.characteristics.vitality)>=100)}}class Nf extends d{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=>U.getComputedCharacteristicValue(s.characteristics.vitality)>=250)}}class $f extends d{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=>U.getComputedCharacteristicValue(s.characteristics.vitality)>=500)}}class Ef extends d{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=>U.getComputedCharacteristicValue(s.characteristics.wisdom)>=25)}}class Ff extends d{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=>U.getComputedCharacteristicValue(s.characteristics.wisdom)>=50)}}class If extends d{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=>U.getComputedCharacteristicValue(s.characteristics.wisdom)>=100)}}class Yf extends d{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=>U.getComputedCharacteristicValue(s.characteristics.wisdom)>=250)}}class Lf extends d{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=>U.getComputedCharacteristicValue(s.characteristics.wisdom)>=500)}}class Pf extends d{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 Tf extends d{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 jf extends d{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 Qf extends d{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 Hf extends d{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 qf extends d{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 Wf extends d{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 Kf extends d{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 Gf extends d{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 Vf extends d{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)}}class zf extends d{constructor(){super(...arguments);e(this,"name","T'as des amis ?");e(this,"id","daily_vocal");e(this,"rank",l.RANKS.COMMON);e(this,"description","Se connecter 10 min en vocal");e(this,"berry",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*5e3);e(this,"xp",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*500);e(this,"daily",!0);e(this,"secret",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"onUserMetaUpdate",({xp:s})=>s.voice.minutesInVoiceToday>=10&&Se(s.voice.lastConnection,new Date))}}const as=Object.freeze(Object.defineProperty({__proto__:null,BeLevel10:Pf,BeLevel120:Vf,BeLevel20:Tf,BeLevel30:jf,BeLevel40:Qf,BeLevel50:Hf,BeLevel60:qf,BeLevel70:Wf,BeLevel80:Kf,BeLevel90:Gf,DailyVocal:zf,Have100Agility:gf,Have100Chance:Uf,Have100Intelligence:Mf,Have100Strength:ff,Have100Vitality:Af,Have100Wisdom:If,Have250Agility:wf,Have250Chance:xf,Have250Intelligence:vf,Have250Strength:hf,Have250Vitality:Nf,Have250Wisdom:Yf,Have25Agility:mf,Have25Chance:Rf,Have25Intelligence:bf,Have25Strength:cf,Have25Vitality:Of,Have25Wisdom:Ef,Have500Agility:_f,Have500Chance:Bf,Have500Intelligence:kf,Have500Strength:pf,Have500Vitality:$f,Have500Wisdom:Lf,Have500kBerry:rf,Have500mBerry:df,Have50Agility:yf,Have50Chance:Cf,Have50Intelligence:Sf,Have50Strength:uf,Have50Vitality:Df,Have50Wisdom:Ff,Have50mBerry:lf,Have5mBerry:nf,Have5mdBerry:of},Symbol.toStringTag,{value:"Module"}));class Xf extends d{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(r=>r!=="default").length>=1)}}class Zf extends d{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(r=>r!=="default").length>=25)}}class Jf extends d{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(r=>r!=="default").length>=50)}}class eh extends d{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 th extends d{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 ah extends d{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 ss=Object.freeze(Object.defineProperty({__proto__:null,Have100Title:ah,Have10Title:eh,Have1Background:Xf,Have25Background:Zf,Have50Background:Jf,Have50Title:th},Symbol.toStringTag,{value:"Module"}));class sh extends d{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 rh extends d{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 nh extends d{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 ih extends d{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 lh extends d{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 dh extends d{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 oh extends d{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 ch extends d{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 uh extends d{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 fh extends d{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 hh extends d{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 ph extends d{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 mh extends d{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 yh extends d{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 gh extends d{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 wh extends d{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 _h extends d{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 bh extends d{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 Sh extends d{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 Mh extends d{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 vh extends d{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 kh extends d{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 Rh extends d{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 Ch extends d{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 Uh extends d{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 xh extends d{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 Bh extends d{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 Oh extends d{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 Dh extends d{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 Ah extends d{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 Nh extends d{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 $h extends d{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 Eh extends d{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 Fh extends d{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 Ih extends d{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 Yh extends d{constructor(){super(...arguments);e(this,"name","Egoïste...");e(this,"id","crew_10_percent");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Être à 10% d'XP pour l'équipage pendant 3 mois");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"secret",!0);e(this,"asset",null);e(this,"title",u.questTitles.Egoïste);e(this,"badge",u.BadgeList.selfish);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.timeAt10Percent>=90)}}class Lh extends d{constructor(){super(...arguments);e(this,"name","Merci bien camarade !");e(this,"id","crew_90_percent");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Être à 90% d'XP pour l'équipage pendant 3 mois");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"secret",!0);e(this,"asset",null);e(this,"title",u.questTitles.Camarade);e(this,"badge",u.BadgeList.camarade);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.timeAt90Percent>=90)}}class Ph extends d{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 Th extends d{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 jh extends d{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 Qh extends d{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 Hh extends d{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 qh extends d{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 Wh extends d{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 Kh extends d{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 Gh extends d{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 Vh extends d{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 zh extends d{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 r=s.lastGames.slice(0,5);return r.length<5||Pa(r,n=>n.gameType).length<5?!1:r.reduce((n,i)=>n+i.endState,0)===5})}}class Xh extends d{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 r=s.lastGames.slice(0,5);return r.length!==5||Pa(r,n=>n.gameType).length<5?!1:r.reduce((n,i)=>n+i.endState,0)===-5})}}class Zh extends d{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 Jh extends d{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 ep extends d{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 tp extends d{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 ap extends d{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 sp extends d{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 rp extends d{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 r=s.lastGames;if(r.length!==20)return!1;for(let n=0;n<r.length;n++)if(n%2===0&&r[n].endState!==1||n%2!==0&&r[n].endState!==-1)return!1;return!0})}}class np extends d{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 ip extends d{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 lp extends d{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 dp extends d{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 op extends d{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 cp extends d{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 up extends d{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 fp extends d{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 hp extends d{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 pp extends d{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 mp extends d{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 yp extends d{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 gp extends d{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 wp extends d{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 _p extends d{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 bp extends d{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 Sp extends d{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 Mp extends d{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 vp extends d{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 kp extends d{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 Rp extends d{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 Cp extends d{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 Up extends d{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 xp extends d{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 Bp extends d{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 Op extends d{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 Dp extends d{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 Ap extends d{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 Np extends d{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 $p extends d{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 Ep extends d{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 Fp extends d{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 Ip extends d{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 Yp extends d{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 Lp extends d{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 Pp extends d{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)}}class Tp extends d{constructor(){super(...arguments);e(this,"name","Jeune étudiant");e(this,"id","drink_50_alcohols");e(this,"rank",l.RANKS.COMMON);e(this,"description","Boire 50 alcools");e(this,"berry",5e5);e(this,"xp",2e4);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Jeune étudiant"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.total>=50)}}class jp extends d{constructor(){super(...arguments);e(this,"name","Habitué des bars");e(this,"id","drink_250_alcohols");e(this,"rank",l.RANKS.RARE);e(this,"description","Boire 250 alcools");e(this,"berry",2e6);e(this,"xp",5e4);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Habitué des bars"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.total>=250)}}class Qp extends d{constructor(){super(...arguments);e(this,"name","Alcoolique notoire");e(this,"id","drink_500_alcohols");e(this,"rank",l.RANKS.EPIC);e(this,"description","Boire 500 alcools");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Alcoolique notoire"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.total>=500)}}class Hp extends d{constructor(){super(...arguments);e(this,"name","Ivrogne");e(this,"id","drink_1000_alcohols");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Boire 1000 alcools");e(this,"berry",5e7);e(this,"xp",2e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles.Ivrogne);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.total>=1e3)}}class qp extends d{constructor(){super(...arguments);e(this,"name","Breton");e(this,"id","drink_2000_alcohols");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Boire 2000 alcools");e(this,"berry",1e8);e(this,"xp",5e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles.Breton);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.total>=2e3)}}class Wp extends d{constructor(){super(...arguments);e(this,"name","Buveur de Rhum");e(this,"id","drink_10_rhum");e(this,"rank",l.RANKS.COMMON);e(this,"description","Boire 10 Rhums");e(this,"berry",5e5);e(this,"xp",2e4);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Buveur de Rhum"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.rhums>=10)}}class Kp extends d{constructor(){super(...arguments);e(this,"name","Amateur de Rhum");e(this,"id","drink_100_rhum");e(this,"rank",l.RANKS.RARE);e(this,"description","Boire 100 Rhums");e(this,"berry",2e6);e(this,"xp",5e4);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Amateur de Rhum"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.rhums>=100)}}class Gp extends d{constructor(){super(...arguments);e(this,"name","Connaisseur de Rhum");e(this,"id","drink_250_rhum");e(this,"rank",l.RANKS.EPIC);e(this,"description","Boire 250 Rhums");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Connaisseur de Rhum"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.rhums>=250)}}class Vp extends d{constructor(){super(...arguments);e(this,"name","Rhumologue");e(this,"id","drink_500_rhum");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Boire 500 Rhums");e(this,"berry",5e7);e(this,"xp",2e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles.Rhumologue);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.rhums>=500)}}class zp extends d{constructor(){super(...arguments);e(this,"name","Dieu du Rhum");e(this,"id","drink_1000_rhum");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Boire 1000 Rhums");e(this,"berry",1e8);e(this,"xp",5e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Dieu du Rhum"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.rhums>=1e3)}}class Xp extends d{constructor(){super(...arguments);e(this,"name","Buveur de Bière");e(this,"id","drink_10_beer");e(this,"rank",l.RANKS.COMMON);e(this,"description","Boire 10 Bières");e(this,"berry",5e5);e(this,"xp",2e4);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Buveur de Bière"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.beers>=10)}}class Zp extends d{constructor(){super(...arguments);e(this,"name","Amateur de Bière");e(this,"id","drink_100_beer");e(this,"rank",l.RANKS.RARE);e(this,"description","Boire 100 Bières");e(this,"berry",2e6);e(this,"xp",5e4);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Amateur de Rhum"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.beers>=100)}}class Jp extends d{constructor(){super(...arguments);e(this,"name","Connaisseur de Bière");e(this,"id","drink_250_beer");e(this,"rank",l.RANKS.EPIC);e(this,"description","Boire 250 Bières");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Connaisseur de Rhum"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.beers>=250)}}class em extends d{constructor(){super(...arguments);e(this,"name","Bièrologue");e(this,"id","drink_500_beer");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Boire 500 Bières");e(this,"berry",5e7);e(this,"xp",2e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles.Bièrologue);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.beers>=500)}}class tm extends d{constructor(){super(...arguments);e(this,"name","Dieu de la Bière");e(this,"id","drink_1000_beer");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Boire 1000 Bières");e(this,"berry",1e8);e(this,"xp",5e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Dieu de la Bière"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.beers>=1e3)}}class am extends d{constructor(){super(...arguments);e(this,"name","Buveur de Vin");e(this,"id","drink_10_wine");e(this,"rank",l.RANKS.COMMON);e(this,"description","Boire 10 Vins");e(this,"berry",5e5);e(this,"xp",2e4);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Buveur de Vin"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.wines>=10)}}class sm extends d{constructor(){super(...arguments);e(this,"name","Amateur de Vin");e(this,"id","drink_100_wine");e(this,"rank",l.RANKS.RARE);e(this,"description","Boire 100 Vins");e(this,"berry",2e6);e(this,"xp",5e4);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Amateur de Vin"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.wines>=100)}}class rm extends d{constructor(){super(...arguments);e(this,"name","Connaisseur de Vin");e(this,"id","drink_250_wine");e(this,"rank",l.RANKS.EPIC);e(this,"description","Boire 250 Vins");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Connaisseur de Vin"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.wines>=250)}}class nm extends d{constructor(){super(...arguments);e(this,"name","Vinologue");e(this,"id","drink_500_wine");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Boire 500 Vins");e(this,"berry",1e7);e(this,"xp",2e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles.Vinologue);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.wines>=500)}}class im extends d{constructor(){super(...arguments);e(this,"name","Dieu du Vin");e(this,"id","drink_1000_wine");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Boire 1000 Vins");e(this,"berry",1e8);e(this,"xp",5e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Dieu du Vin"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.wines>=1e3)}}const rs=Object.freeze(Object.defineProperty({__proto__:null,Bet10M:nh,Bet666:sp,BetMinValue:sh,Birthday:ch,BotPing:uh,ChestOpen1000Quest:Sh,ChestOpen150Quest:_h,ChestOpen2000Quest:Mh,ChestOpen500Quest:bh,ChestOpen50Quest:wh,Craft1000Times:Uh,Craft100CookedMeals:Oh,Craft100Scrolls:Ih,Craft10CookedMeals:xh,Craft10Scrolls:$h,Craft200Times:Rh,Craft20Scrolls:Eh,Craft20Times:vh,Craft250CookedMeals:Dh,Craft500CookedMeals:Ah,Craft500Times:Ch,Craft50CookedMeals:Bh,Craft50Scrolls:Fh,Craft50Times:kh,Craft5Scrolls:Nh,Crew10Percent:Yh,Crew90Percent:Lh,DoubleSix:Kh,Draw1000Quest:jh,Draw100Quest:Ph,Draw2000Quest:Qh,Draw300Quest:Th,Draw5000Quest:Hh,DrawDoubleSix:Gh,Drink1000Alcohols:Hp,Drink1000Beer:tm,Drink1000Quest:mh,Drink1000Rhum:zp,Drink1000Wine:im,Drink100Beer:Zp,Drink100Rhum:Kp,Drink100Today:fh,Drink100Wine:sm,Drink10Beer:Xp,Drink10Rhum:Wp,Drink10Wine:am,Drink2000Alcohols:qp,Drink2000Quest:yh,Drink200Quest:hh,Drink250Alcohols:jp,Drink250Beer:Jp,Drink250Rhum:Gp,Drink250Wine:rm,Drink5000Quest:gh,Drink500Alcohols:Qp,Drink500Beer:em,Drink500Quest:ph,Drink500Rhum:Vp,Drink500Wine:nm,Drink50Alcohols:Tp,Edito:qh,Everyone:Wh,Finish100Raids:dp,Finish10Raids:np,Finish200Raids:op,Finish25Raids:ip,Finish50Raids:lp,GuessInOne:ap,Lose10M:oh,LoseAll5GamesInRow:Xh,LoseEverything:rh,Paper100:Jh,RandomMessage100Quest:fp,RandomMessage200Quest:hp,RandomMessage20Quest:cp,RandomMessage500Quest:pp,RandomMessage50Quest:up,Report:mp,Rock100:tp,Scissor100:ep,SevenQuitteOuDouble:Vh,SpendShop500M:vp,SpendShop50M:Mp,SpendShop50Ml:Rp,SpendShop5M:Sp,SpendShop5Ml:kp,TenBlackJack:Zh,TotalBet10M:lh,TotalBet1Md:dh,Voice10Hours:Cp,Voice2500Hours:Bp,Voice250Hours:xp,Voice25Hours:Up,Voice5000Hours:Op,WinAll5GamesInRow:zh,WinLose10:rp,WinOn10MBet:ih,Work1000Quest:Np,Work100Quest:Dp,Work2000Quest:$p,Work300Quest:Ap,Work5000Quest:Ep,Write100Chats:Lp,Write10Chats:Fp,Write200Chats:Pp,Write20Chats:Ip,Write50Chats:Yp,send100000Messages:_p,send1000Messages:gp,send100Messages:yp,send200000Messages:bp,send25000Messages:wp},Symbol.toStringTag,{value:"Module"}));class lm extends d{constructor(){super(...arguments);e(this,"name","T'as pas oublié de ranger ta chambre ?");e(this,"id","daily_all");e(this,"rank",l.RANKS.RARE);e(this,"description","Finir les quêtes journalières");e(this,"berry",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*12500);e(this,"xp",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*1250);e(this,"daily",!0);e(this,"secret",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"onUserQuestUpdate",s=>{for(const[r,n]of Object.entries(s.daily))if(!Se(n,new Date)&&this.id!==r)return!1;return Object.keys(s.daily).filter(r=>r!==this.id).length>=5})}}const ns=Object.freeze(Object.defineProperty({__proto__:null,DailyAll:lm},Symbol.toStringTag,{value:"Module"})),zr=[...Object.values(as),...Object.values(ss),...Object.values(ts),...Object.values(rs),...Object.values(ns),...Object.values(es),...Object.values(Ja),...Object.values(za),...Object.values(vt)],dm=async t=>{var s;const a=[];for(const r of Object.values(as)){const n=new r;if((s=n.onUserMetaUpdate)!=null&&s.call(n,t)){const i=await n.complete(t.user._id,{_userMeta:t});i&&a.push([n,i])}}a.length>0&&se("userMetaUpdate",t.user._id,a)},om=async t=>{var s;const a=[];for(const r of Object.values(rs)){const n=new r;if((s=n.onUserQuestMetaUpdate)!=null&&s.call(n,t)){const i=await n.complete(t.user._id,{});i&&a.push([n,i])}}a.length>0&&se("userQuestMetaUpdate",t.user._id,a)},cm=["raidUnlock"],Xr=new Ms.EventEmitter,ot=(t,a,s)=>{Xr.emit(t,a,s)},um=t=>{for(const a of cm)Xr.on(a,(s,r)=>{t(a,s,r)})},fm=async t=>{var s,r;const a=await _s(t.user._id);l.getCurrentLevel(t.xp.amount)>=30&&!bt(a,"training")&&(await Mt(a.user._id,"training"),ot("raidUnlock",t.user._id,"training")),(((r=(s=a.obtainedRewards.training)==null?void 0:s.filter(n=>n.startsWith("end_")))==null?void 0:r.length)??0)>=4&&!bt(a,"resources")&&(await Mt(a.user._id,"resources"),ot("raidUnlock",t.user._id,"resources"))},hm=async t=>{const a=await _s(t.user._id);Pa(t.equipmentList,s=>s.id).map(s=>S.findEquipment(s)).filter(s=>s.panoply==="adventurer").length===6&&!bt(a,"pirate_cave")&&(await Mt(a.user._id,"pirate_cave"),ot("raidUnlock",t.user._id,"pirate_cave")),(t.itemList.get("map_fragment")??0)>=5&&!bt(a,"mysterious_island")&&(await Mt(a.user._id,"mysterious_island"),await xe(t.user._id,"map_fragment",5),ot("raidUnlock",t.user._id,"mysterious_island"))},is=new h.Schema({user:{type:h.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}},alcohols:{wines:{type:Number,default:0},rhums:{type:Number,default:0},beers:{type:Number,default:0},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}});is.index({user:1}),is.post("findOneAndUpdate",async function(t){await om(t)});const oe=((Zn=h.models)==null?void 0:Zn.UserQuestMeta)||h.model("UserQuestMeta",is),k=async(t,a)=>{await oe.findOneAndUpdate({user:t},a,{upsert:!0,returnDocument:"after"})},pm=async t=>{await k(t,{$inc:{work:1}})},mm=async t=>{await k(t,{$set:{hadMoreThanZeroBerry:!0}})},ym=async t=>{await k(t,{$set:{sevenQuitteOuDouble:!0}})},gm=async t=>{await k(t,{$inc:{black_jack:1}})},wm=async(t,a,s)=>{await k(t,{$push:{lastGames:{$each:[{gameType:a,endState:s}],$position:0,$slice:20}}})},_m=async t=>{await k(t,{$inc:{draw:1}})},bm=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 oe.updateOne({user:t,"bet666.last":{$gte:a,$lte:s}},{$inc:{"bet666.amount":1},$set:{"bet666.last":new Date}}),await oe.updateOne({user:t,"bet666.last":{$lt:a}},{$set:{"bet666.last":new Date,"bet666.amount":1}})},Sm=async(t,a)=>{await k(t,{$inc:{totalBet:a}})},Mm=async(t,a)=>{await k(t,[{$set:{"rps.nb":{$cond:{if:{$eq:["$rps.lastRps",a]},then:{$add:["$rps.nb",1]},else:1}},"rps.lastRps":a}}])},Zr=async(t,a)=>{await k(t,{$inc:{totalSpentInShop:a}})},vm=async(t,a,s)=>{const r=S.findEntity(s);await k(t,{$inc:{"crafts.cookedMeal":S.isCookedMeal(r)?a:0,"crafts.scrolls":S.isScrollItem(r)?a:0,"crafts.total":a}})},km=async t=>{await k(t,{$set:{reportedSomeone:!0}})},Rm=async t=>{await k(t,{$inc:{randomMessage:1}})},Cm=async t=>{await k(t,{$inc:{botPing:1}})},Um=async t=>{await k(t,{$inc:{guessInOne:1}})},xm=async t=>{await k(t,{$set:{hasCelebrateBirthday:!0}})},Bm=async t=>{await k(t,{$inc:{double_six:1}})},Om=async t=>{await k(t,{$inc:{drawDoubleSix:1}})},Dm=async(t,a)=>{a?await k(t,{$set:{timeAt10Percent:0}}):await k(t,{$inc:{timeAt10Percent:1}})},Am=async(t,a)=>{a?await k(t,{$set:{timeAt90Percent:0}}):await k(t,{$inc:{timeAt90Percent:1}})},Nm=async t=>{await k(t,{$set:{tagEveryone:!0}})},$m=async t=>{await k(t,{$set:{betMin:!0}})},Jr=async t=>{await k(t,{$set:{loseEverything:!0}})},Em=Object.freeze(Object.defineProperty({__proto__:null,addTotalMinutesInVoice:async(t,a)=>{await k(t,{$inc:{totalMinutesInVoice:a}})},addWrittenTextChannel:async(t,a)=>{await k(t,{$addToSet:{writeDifferentChat:a}})},bet666:bm,botPingIncrement:Cm,drawDoubleSix:Om,drawIncrement:_m,hadMoreThanZeroBerry:mm,hasBet10M:async t=>{await k(t,{$set:{bet10M:!0}})},hasBetMin:$m,hasCelebrateBirthday:xm,hasGuessInOne:Um,hasLose10M:async t=>{await k(t,{$set:{lose10M:!0}})},hasLoseEverything:Jr,hasReportedSomeone:km,hasSevenQod:ym,hasTagEveryone:Nm,hasWinBet10M:async t=>{await k(t,{$set:{winBet10M:!0}})},incrementAlcoholDrink:async(t,a,s)=>{await k(t,{$inc:{"items.alcohols.wines":a==="wine"?s:0,"items.alcohols.beers":a==="beer"?s:0,"items.alcohols.rhums":a==="rhum"?s:0,"items.alcohols.total":s}})},incrementBottleUsedToday:async(t,a)=>{const s=new Date;s.setHours(0,0,0,0),await oe.updateOne({user:t,"items.bottle.last":{$gte:s}},{$inc:{"items.bottle.today":a},$set:{"items.bottle.last":new Date}}),await oe.updateOne({user:t,"items.bottle.last":{$lt:s}},{$set:{"items.bottle.last":new Date,"items.bottle.today":a}})},incrementBottleUsedTotal:async(t,a)=>{await k(t,{$inc:{"items.bottle.total":a}})},incrementChestOpenedTotal:async(t,a)=>{await k(t,{$inc:{"items.chest.total":a}})},incrementMessageSend:async t=>{await k(t,{$inc:{messageSent:1}})},randomMessageIncrement:Rm,readEdito:async t=>{const a=new Date;a.setHours(0,0,0,0),await oe.updateOne({user:t,"edito.lastTimeRead":{$gte:a}},{$inc:{"edito.readToday":1},$set:{"edito.lastTimeRead":new Date}}),await oe.updateOne({user:t,"edito.lastTimeRead":{$lt:a}},{$set:{"edito.lastTimeRead":new Date,"edito.readToday":1}})},updateCrafts:vm,updateCrew10Percent:Dm,updateCrew90Percent:Am,updateLastGames:wm,updateRps:Mm,updateTotalBet:Sm,updateTotalSpentInShop:Zr,winBlackjack:gm,winDoubleSix:Bm,workIncrement:pm},Symbol.toStringTag,{value:"Module"})),Ke={multiplier:{type:Number,default:0},origin:String,expireAt:{type:Date,default:null},startAt:{type:Date,default:null}},ct=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},premium:{type:Date,default:null},booster:{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:[Ke],default:[]},work:{type:[Ke],default:[]}},berry:{work:{type:[Ke],default:[]},global:{type:[Ke],default:[]}},drop:{work:{type:[Ke],default:[]}},xp:{global:{type:[Ke],default:[]}}},hp:{type:Number,default:100},workUnluckyStreak:{type:Number,default:0},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}}});ct.index({user:1}),ct.index({"xp.amount":-1}),ct.index({berry:-1}),ct.post("findOneAndUpdate",async function(t){await fm(t),await dm(t),t.berry===0&&await Jr(t.user._id),t.hp<=0&&await fn(t.user._id)});const Ue=((Jn=h.models)==null?void 0:Jn.UserMeta)||h.model("UserMeta",ct),en=async t=>await Ue.create({user:t}),ut=async(t,a={})=>{const s=await Ue.findOne({user:t},a);return s||await en(t)},Fm=(t,a)=>Ue.findOneAndUpdate({user:t},a,{returnDocument:"after",upsert:!0}),F=async(t,a)=>{await Ue.findOneAndUpdate({user:t},a,{returnDocument:"after",upsert:!0})},tn=async(t,a)=>{await F(t,[{$set:{berry:{$max:[{$add:["$berry",a]},0]}}}])},Im=async(t,a)=>{await F(t,{$set:{premium:a}})},Ym=async(t,a)=>{await F(t,{$set:{booster:a}})},Lm=async(t,a)=>{const{xp:{boost:s}}=await Fm(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},ls=async(t,a)=>{if(Array.isArray(a)){for(const r of a)await ls(t,r);return}const s=S.transformToDBBuff(a);await F(t,[{$set:{[`buffs.${a.target}`]:{$map:{input:`$buffs.${a.target}`,as:"buff",in:{$cond:{if:{$eq:[{$substr:["$$buff.origin",0,{$indexOfBytes:["$$buff.origin","/"]}]},a.origin.split("/")[0]]},then:{multiplier:a.multiplier,origin:a.origin,expireAt:s.expireAt?{$cond:{if:{$lt:["$$buff.expireAt",new Date]},then:s.expireAt,else:{$add:["$$buff.expireAt",(a.endIn??0)*60*60*1e3]}}}:null,startAt:{$cond:{if:{$gte:["$$buff.startAt",new Date]},then:"$$buff.startAt",else:{$add:[new Date,(a.startIn??0)*60*60*1e3]}}}},else:"$$buff"}}}}}},{$set:{[`buffs.${a.target}`]:{$cond:{if:{$in:[a.origin.split("/")[0],{$map:{input:`$buffs.${a.target}`,as:"buff",in:{$substr:["$$buff.origin",0,{$indexOfBytes:["$$buff.origin","/"]}]}}}]},then:`$buffs.${a.target}`,else:{$concatArrays:[`$buffs.${a.target}`,[{...s}]]}}}}}])},ds=async(t,a)=>{await F(t,{$pull:{[`buffs.${a.target}`]:{origin:a.origin}}})},Pm=async(t,a,s,r)=>{const n=S.fromDBToEquipableEquipment(a),i=Mr(Object.values(s)),o=S.allPanoplies.find(_=>_.id===n.panoply);if(!o)return;const f=o.equipments.filter(_=>(i.find(B=>_.id===B.id)||!r&&n.id===_.id)&&(r?n.id!==_.id:!0)).length,m=f===o.equipments.length?o.fullBonus:f>=o.equipments.length/2?o.halfBonus:void 0;o.halfBonus&&"target"in o.halfBonus&&await ds(t,o.halfBonus),o.fullBonus&&"target"in o.fullBonus&&await ds(t,o.fullBonus),m&&"target"in m&&await ls(t,m)},an=async(t,a,{userMeta:s,userInventory:r})=>{const n=s??await ut(t,{buffs:0,xp:0}),i=r??await ht(t,{itemList:0,equipmentList:0}),f=await Be(t,n,i)-n.hp;await F(t,{$set:{hp:n.hp+Math.floor(Math.min(a,f))}})},Tm=async(t,a)=>{await F(t,[{$set:{hp:{$max:[{$add:["$hp",-a]},0]}}}])},Ge=async(t,a)=>{const s=await Be(t);await F(t,[{$set:{hp:{$round:[{$multiply:[{$divide:["$hp",a]},s]},0]}}}])},jm=Object.freeze(Object.defineProperty({__proto__:null,addBerry:tn,addCharacteristics:async(t,a)=>{const s=await Be(t),r=Object.fromEntries(Object.entries(a).filter(([,n])=>n!==0).map(([n,i])=>[`characteristics.${n}`,i]));await F(t,{$inc:r}),Ge(t,s)},addMinutesInVoiceToday:async(t,a)=>{await F(t,{$inc:{"xp.voice.minutesInVoiceToday":a}})},addScrollCharacteristic:async(t,a)=>{const s=await Be(t),r=Object.fromEntries(Object.entries(a).filter(([,n])=>n!==0).map(([n,i])=>[`scrolls.${n}`,i]));await F(t,{$inc:r}),Ge(t,s)},gainHp:an,incrementWorkUnluckyStreak:async t=>{await F(t,{$inc:{workUnluckyStreak:1}})},loseHp:Tm,removeBuff:ds,resetCharacteristics:async(t,a,s)=>{const r=await Be(t,s),n={vitality:0,strength:0,agility:0,chance:0,intelligence:0,wisdom:0};a?await F(t,{$set:{characteristics:n,"resetCharacteristics.free":!1}}):await F(t,{$set:{characteristics:n,"resetCharacteristics.nextAvailable":new Date(Date.now()+30*24*60*60*1e3)},$inc:{berry:-1e8}}),Ge(t,r)},resetMinutesInVoiceToday:async t=>{await F(t,{$set:{"xp.voice.minutesInVoiceToday":0}})},resetWorkUnluckyStreak:async t=>{await F(t,{$set:{workUnluckyStreak:0}})},updateBoost:Lm,updateBooster:Ym,updateBuff:ls,updateHp:Ge,updateLastVoiceConnection:async(t,a)=>{await F(t,{$set:{"xp.voice.lastConnection":a}})},updatePanoplyBuff:Pm,updatePremium:Im},Symbol.toStringTag,{value:"Module"})),Qm=async t=>{var s;const a=[];for(const r of Object.values(ts)){const n=new r;if((s=n.onUserInventoryUpdate)!=null&&s.call(n,t)){const i=await n.complete(t.user._id,{});i&&a.push([n,i])}}a.length>0&&se("userInventoryUpdate",t.user._id,a)},os=new h.Schema({user:{type:h.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});os.index({user:1}),os.post("findOneAndUpdate",async function(t){await hm(t),await Qm(t)});const ft=((ei=h.models)==null?void 0:ei.UserInventory)||h.model("UserInventory",os),ce=async(t,a)=>{await ft.findOneAndUpdate({user:t},a,{upsert:!0,returnDocument:"after"})},re=async(t,a,s)=>{await ce(t,{$inc:{[`itemList.${a}`]:s}}),await zt(t,[a])},Hm=async(t,a)=>{await ce(t,{$inc:Object.fromEntries(Object.entries(a).filter(([,s])=>(s??0)>0).map(([s,r])=>[`itemList.${s}`,r]))}),await zt(t,Ha(a).filter(([,s])=>s>0).map(([s])=>s))},xe=async(t,a,s)=>{s!==0&&await ce(t,[{$set:{[`itemList.${a}`]:{$max:[{$add:[`$itemList.${a}`,-s]},0]}}}])},sn=async(t,a,s)=>{await ce(t,{$pull:{equipmentList:{id:a,seed:s}}})},rn=async(t,a,s,r)=>{s!==0&&(S.isEquipmentId(a)?await sn(t,a,r):await xe(t,a,s))},qm=async(t,a)=>{await ce(t,{$set:{[`itemList.${a}`]:0}})},cs=async(t,a)=>{await ce(t,{$push:{equipmentList:{$each:a}}}),await zt(t,a.map(s=>s.id))},Wm=async(t,a,s)=>{const r=await Be(t);await ce(t,{$set:{[`equippedItems.${a}`]:s}}),await Ge(t,r)},Km=async(t,a)=>{const s=await Be(t);await ce(t,{$set:{[`equippedItems.${a}`]:null}}),await Ge(t,s)},Gm=async(t,a,s,r,n)=>{for(const{itemId:f,size:m}of a)await xe(t,f,m*r);const{itemId:i,size:o}=s;S.isEquipmentId(i)?await cs(t,[{id:i,seed:n}]):await re(t,i,o*r)},Vm=async(t,a,s,r,n)=>{await rn(t,a.id,r,n);for(const{entityId:i,quantity:o}of s)S.isEquipmentId(i)||await re(t,i,r*o);await xe(t,"tools",1)},zm=async(t,a,s,r)=>{await xe(t,a,r*4),await xe(t,"enchanted_stone",r),await re(t,s,r)},Xm=async(t,a)=>{await ce(t,{$addToSet:{recipes:a}})},nn=async(t,a,s)=>{await re(t,a,s)},ln=async(t,a)=>{a.forEach(async s=>await nn(t,s.chest,s.size))},Zm=Object.freeze(Object.defineProperty({__proto__:null,addEquipments:cs,addInventoryItem:re,addInventoryItems:Hm,craftItem:Gm,dismantleEntity:Vm,enchantItem:zm,equip:Wm,giveChest:nn,giveChests:ln,removeAllItemInventory:qm,removeEquipment:sn,removeInventoryEntity:rn,removeInventoryItem:xe,unequip:Km,unlockRecipe:Xm},Symbol.toStringTag,{value:"Module"})),dn=async t=>await ft.create({user:t}),ht=async(t,a={})=>{const s=await ft.findOne({user:t},a);return s||await dn(t)},us=t=>Object.fromEntries(l.CHARACTERISTICS.map(a=>[a,U.getComputedCharacteristicValue(t.characteristics[a])+t.scrolls[a]])),Jm=t=>Date.now()-t.xp.lastMessageWithXp.getTime()>60*1e3,fs=t=>{const{boost:a}=t.xp;return(a!==null&&Date.now()<a.getTime()?.2:0)+Math.max(t.premium?.5:0,t.booster?.25:0)+t.buffs.xp.global.reduce((s,{expireAt:r,startAt:n,multiplier:i})=>s+((n??new Date)<=new Date&&(!r||!$e(r))?i:0),0)},e0=t=>{const a=t.trim().length,s=2;return a<10?10*s:a>300?300*s:a*s},t0=(t,a,s)=>(a*=1+fs(t),Math.ceil(a*s)),a0=(t,a,s)=>{const r=s?1:on(t);return a<=0?a:Math.ceil(a*(r||1))},s0=t=>t.buffs.cooldown.work.reduce((a,{expireAt:s,startAt:r,multiplier:n})=>a+(new Date>=(r??new Date)&&(!s||!$e(s))?n:0),1),r0=t=>t.buffs.drop.work.reduce((a,{expireAt:s,startAt:r,multiplier:n})=>a+(new Date>=(r??new Date)&&(!s||!$e(s))?n:0),1),n0=t=>t.buffs.berry.work.reduce((a,{expireAt:s,startAt:r,multiplier:n})=>a+(new Date>=(r??new Date)&&(!s||!$e(s))?n:0),1),on=t=>t.buffs.berry.global.reduce((a,{expireAt:s,startAt:r,multiplier:n})=>a+(new Date>=(r??new Date)&&(!s||!$e(s))?n:0),1),i0=t=>t.buffs.cooldown.casino.reduce((a,{expireAt:s,startAt:r,multiplier:n})=>a+(new Date>=(r??new Date)&&(!s||!$e(s))?n:0),1),Be=async(t,a,s)=>{const r=a??await ut(t,{buffs:0,xp:0}),n=s??await ht(t,{itemList:0,equipmentList:0});return((us(r).vitality??0)+Va(n).vitality)*l.HP_PER_VITALITY+l.DEFAULT_MAX_HP},l0=Object.freeze(Object.defineProperty({__proto__:null,calcBerry:a0,calcBerryGlobalBuff:on,calcBerryWorkBuff:n0,calcCooldownCasinoBuff:i0,calcCooldownWorkBuff:s0,calcDropWorkBuff:r0,calcMessageXp:e0,calcXp:t0,calcXpBoost:fs,getBerryRank:async t=>(await Ue.aggregate([{$setWindowFields:{sortBy:{berry:-1},output:{rank:{$rank:{}}}}},{$match:{_id:t}},{$project:{rank:1}}]))[0],getGlobalRank:async t=>(await Ue.aggregate([{$setWindowFields:{sortBy:{"xp.amount":-1},output:{rank:{$rank:{}}}}},{$match:{_id:t}},{$project:{rank:1}}]))[0],getMaxHp:Be,getTotalCharacteristics:us,hasCharacteristicRequirement:async(t,a,s,r)=>{const n=s??await ut(t,{buffs:0,xp:0}),i=r??await ht(t,{itemList:0,equipmentList:0}),o=Qa(us(n),Va(i),(f,m)=>f+m);if("sum"in a){let f=0;for(const m of a.characteristics)f+=o[m]??0;return f>=a.sum}else{for(const f of Object.keys(a))if(o[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:r,expireAt:n}of a)if(s<0&&(!n||!$e(n))&&(r??new Date)<=new Date)return!0;return!1},isCooldownForXpPassed:Jm},Symbol.toStringTag,{value:"Module"})),cn=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},raid:{classic:{type:Date,default:new Date(0)},special:{type:Date,default:new Date(0)},christmas:{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)}}});cn.index({user:1});const pt=((ti=h.models)==null?void 0:ti.UserCooldown)||h.model("UserCooldown",cn),mt=async(t,a)=>{await pt.updateOne({user:t},a,{upsert:!0})},d0=async(t,a)=>{await mt(t,[{$set:{"raid.special":{$subtract:[{$ifNull:["$raid.special",new Date]},a*3600*1e3]},"raid.classic":{$subtract:[{$ifNull:["$raid.classic",new Date]},a*3600*1e3]},"raid.christmas":{$subtract:[{$ifNull:["$raid.christmas",new Date]},a*3600*1e3]}}}]),await Ga(t,"raid/special",-1*a*3600*1e3),await Ga(t,"raid/classic",-1*a*3600*1e3)},un=async(t,a,s,r)=>{await mt(t,{$set:{[`raid.${a}`]:new Date(Date.now()+s)}}),r.raid[a]&&await Ka(t,`raid/${a}`,new Date(Date.now()+s))},fn=async t=>{await mt(t,{$set:{lockUserCommand:new Date(Date.now()+2*3600*1e3)}}),await an(t,1,{})},o0=Object.freeze(Object.defineProperty({__proto__:null,lockUserCommand:fn,reduceRaidCooldown:d0,startRaidCooldown:un,useCommand:async(t,a,s,r)=>{await mt(t,{$set:{[`commands.${a}`]:new Date(Date.now()+s)}}),r.commands[a]&&await Ka(t,`commands/${a}`,new Date(Date.now()+s))}},Symbol.toStringTag,{value:"Module"})),c0=["work","rps","blackjack","guess","qod","dice"],hn=async t=>await pt.create({user:t}),u0=async(t,a={})=>{const s=await pt.findOne({user:t},a);return s||await hn(t)},hs=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},crew:{type:h.Schema.Types.ObjectId,ref:"Crew",required:!0,index:!0},permission:String,percent:Number,lastAllMembersDaily:{type:Date,default:new Date(0)}},{minimize:!1});hs.virtual("inventory",{ref:"Crew",localField:"crew",foreignField:"_id",justOne:!0}),hs.index({user:1});const Fe=((ai=h.models)==null?void 0:ai.UserCrew)||h.model("UserCrew",hs),ps=async(t,a)=>{await Fe.updateOne({user:t},a,{upsert:!0})},f0=async(t,a)=>{await ps(t,{$set:{percent:a}})},pn=async t=>{await ps(t,{$set:{lastAllMembersDaily:new Date}})},h0=Object.freeze(Object.defineProperty({__proto__:null,allMembersDailyComplete:pn,updatePercent:f0},Symbol.toStringTag,{value:"Module"})),mn=t=>Fe.findOne({user:t}),p0=async(t,a,s,r)=>await Fe.create({user:t,crew:a,percent:r,permission:s}),m0=t=>Fe.exists({user:t}),y0=async t=>{await Fe.deleteOne({user:t})},yn=new h.Schema({user:{type:h.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 Xt=((si=h.models)==null?void 0:si.UserDailyReport)||h.model("UserDailyReport",yn),gn=async(t,a)=>{await Xt.updateOne({user:t},a,{upsert:!0})},g0=Object.freeze(Object.defineProperty({__proto__:null,updateDailyReport:async(t,a)=>{await gn(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"})),wn=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},guess:{type:{tries:Number,amount:Number,numberToGuess:Number,lastGuess:Number},default:null}});wn.index({user:1});const yt=((ri=h.models)==null?void 0:ri.UserGames)||h.model("UserGames",wn),Zt=async(t,a)=>{await yt.updateOne({user:t},a,{upsert:!0})},w0=Object.freeze(Object.defineProperty({__proto__:null,resetGuessGame:async t=>{await Zt(t,{$set:{guess:null}})},setGuessGame:async(t,a,s,r)=>{await Zt(t,{$set:{guess:{amount:a,tries:s,numberToGuess:r,lastGuess:0}}})},updateGuessGame:async t=>{await Zt(t,{$inc:{"guess.tries":1},$set:{"guess.lastGuess":Date.now()}})}},Symbol.toStringTag,{value:"Module"})),_n=async t=>await yt.create({user:t}),_0=async(t,a)=>{const s=await yt.findOne({user:t},a);return s||await _n(t)},b0=async t=>{var s;const a=[];for(const r of Object.values(ss)){const n=new r;if((s=n.onUserOrnamentsUpdate)!=null&&s.call(n,t)){const i=await n.complete(t.user._id,{});i&&a.push([n,i])}}a.length>0&&se("userOrnamentsUpdate",t.user._id,a)},ms=new h.Schema({user:{type:h.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:[]},unlockedBags:{type:[String],default:["default"]},selectedBag:{type:String,default:"default"}});ms.index({user:1}),ms.post("findOneAndUpdate",async function(t){await b0(t)});const gt=((ni=h.models)==null?void 0:ni.UserOrnaments)||h.model("UserOrnaments",ms),W=async(t,a)=>{await gt.findOneAndUpdate({user:t},a,{upsert:!0,returnDocument:"after"})},ys=async(t,a)=>{await W(t,{$addToSet:{unlockedTitles:a}})},S0=async(t,a)=>{await W(t,{$addToSet:{unlockedTitles:{$each:a}}})},M0=async(t,a)=>{await W(t,{$set:{selectedTitle:a}})},bn=async(t,a)=>{await W(t,{$addToSet:{unlockedBackgrounds:a}})},v0=async(t,a)=>{await W(t,{$addToSet:{unlockedBackgrounds:{$each:a}}})},k0=async(t,a)=>{await W(t,{$set:{selectedBackground:a}})},Sn=async(t,a,s)=>{a.isProgressive?await W(t,{$addToSet:{unlockedBadges:`${a.id}_${s}`}}):await W(t,{$addToSet:{unlockedBadges:a.id}})},Mn=async(t,a)=>{await W(t,{$addToSet:{unlockedFactionBadges:{$each:[`b_marine_${a}`,`b_revolutionary_${a}`,`b_pirate_${a}`]}}})},vn=async(t,a)=>{await W(t,{$addToSet:{unlockedProfileAssets:a}})},R0=Object.freeze(Object.defineProperty({__proto__:null,selectBackground:k0,selectBag:async(t,a)=>{await W(t,{$set:{selectedBag:a}})},selectTitle:M0,unlockBackground:bn,unlockBackgrounds:v0,unlockBadge:Sn,unlockBag:async(t,a)=>{await W(t,{$addToSet:{unlockedBags:a}})},unlockFactionBadge:Mn,unlockProfileAsset:vn,unlockTitle:ys,unlockTitles:S0},Symbol.toStringTag,{value:"Module"})),kn=async t=>await gt.create({user:t}),C0=async(t,a)=>{const s=await gt.findOne({user:t},a);return s||await kn(t)},U0=async t=>{var s;const a=[];for(const r of Object.values(ns)){const n=new r;if((s=n.onUserQuestUpdate)!=null&&s.call(n,t)){const i=await n.complete(t.user._id,{_userQuest:t});i&&a.push([n,i])}}a.length>0&&se("userQuestUpdate",t.user._id,a)},gs=new h.Schema({user:{type:h.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});gs.index({user:1}),gs.post("findOneAndUpdate",async function(t){await U0(t)});const wt=((ii=h.models)==null?void 0:ii.UserQuest)||h.model("UserQuest",gs),_t=async(t,a)=>{await wt.findOneAndUpdate({user:t},a,{upsert:!0,returnDocument:"after"})},Rn=async(t,a)=>{await _t(t,{$addToSet:{completed:a}})},Cn=async(t,a)=>{await _t(t,[{$addFields:{[`daily.${a}`]:new Date}}])},Un=async(t,a)=>{Se(ja(),a)?await _t(t,{$inc:{streak:1},$set:{lastFullComplete:new Date}}):await _t(t,{$set:{lastFullComplete:new Date,streak:1}})},x0=Object.freeze(Object.defineProperty({__proto__:null,completeDailyQuest:Cn,completeQuest:Rn,updateStreak:Un},Symbol.toStringTag,{value:"Module"})),xn=async t=>await wt.create({user:t}),ws=async t=>{const a=await wt.findOne({user:t});return a||await xn(t)},bt=(t,a)=>{var s;return(s=t.unlocked)==null?void 0:s[a]},B0=Object.freeze(Object.defineProperty({__proto__:null,alreadyObtainedRaidReward:(t,a,s)=>a in t.obtainedRewards?t.obtainedRewards[a].includes(s):!1,fulfillCondition:(t,a,s,r)=>r==="include"?s.every(n=>(t.obtainedConditions[a]??[]).includes(n)):s.every(n=>!(t.obtainedConditions[a]??[]).includes(n)),getObtainedRaidReward:(t,a)=>t.obtainedRewards[a]??[],hasUnlockedRaid:bt},Symbol.toStringTag,{value:"Module"})),Bn=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},currentRaid:{type:{raidId:String,seed:String,progression:{type:[String],default:[]},buffItem:String,rewards:{type:Object,default:{}}},default:void 0},obtainedConditions:{type:Object,default:{}},obtainedRewards:{type:Object,default:{}},unlocked:{type:Object,default:{}}},{minimize:!1});Bn.index({user:1});const St=((li=h.models)==null?void 0:li.UserRaid)||h.model("UserRaid",Bn),Me=async(t,a)=>{await St.updateOne({user:t},a,{upsert:!0})},Mt=async(t,a)=>{await Me(t,{$set:{[`unlocked.${a}`]:!0}})},O0=Object.freeze(Object.defineProperty({__proto__:null,addRewardsToRaid:async(t,a)=>{await Me(t,{$inc:Object.fromEntries(Ha(a).filter(([s])=>s!=="title"&&s!=="condition").map(([s,r])=>[`currentRaid.rewards.${s}`,r])),...a.title?{$set:{"currentRaid.rewards.title":a.title}}:{}})},claimReward:async(t,a,s)=>{await Me(t,{$addToSet:{[`obtainedRewards.${a}`]:s}})},progressRaid:async(t,a)=>{await Me(t,{$push:{"currentRaid.progression":a}})},resetRaid:async t=>{await Me(t,{$unset:{currentRaid:""}})},resetRaidProgression:async t=>{await Me(t,{$set:{"currentRaid.progression":[]}})},startRaid:async(t,a,s,r,n,i)=>{const o=Date.now();return await Me(t,{$set:{currentRaid:{raidId:a,buffItem:s,seed:o,progression:[],rewards:{}}}}),await un(t,r,n,i),o},unlockRaid:Mt,updateCondition:async(t,a,s)=>{await Me(t,{$addToSet:{[`obtainedConditions.${a}`]:s}})}},Symbol.toStringTag,{value:"Module"})),On=async t=>await St.create({user:t}),_s=async t=>{const a=await St.findOne({user:t});return a||await On(t)},D0=Object.freeze(Object.defineProperty({__proto__:null,getShopItemRest:(t,a,s,r,n)=>{var f;if(S.isEquipmentId(a))return r;let i=S.getAllItemsLimit()[a];const o=(f=t.limit)==null?void 0:f[a];return n==="half"&&a==="chest_2"&&(i+=2),n==="full"&&a==="chest_3"&&(i+=1),i?t.lastShopId!==s?i:o?i-o:Math.min(i,r):r},isShopBuyLimitReached:(t,a,s,r)=>{var o;if(S.isEquipmentId(a))return!1;let n=S.getAllItemsLimit()[a];const i=(o=t.limit)==null?void 0:o[a];return r==="half"&&a==="chest_2"&&(n+=2),r==="full"&&a==="chest_3"&&(n+=1),t.lastShopId!==s?!1:!!(n&&i&&i>=n)}},Symbol.toStringTag,{value:"Module"})),Dn=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},lastShopId:{type:Number,default:0},limit:{type:Object,default:{}}},{minimize:!1});Dn.index({user:1});const Jt=((di=h.models)==null?void 0:di.UserShop)||h.model("UserShop",Dn),An=async(t,a)=>{await Jt.updateOne({user:t},a,{upsert:!0})},A0=Object.freeze(Object.defineProperty({__proto__:null,increaseShopBuyLimit:async(t,a,s,r)=>{await An(t,[{$set:{limit:{$cond:{if:{$eq:["$lastShopId",s]},then:{$mergeObjects:["$limit",{[a]:{$add:[{$ifNull:[`$limit.${a}`,0]},r]}}]},else:{[a]:r}}},lastShopId:s}}])}},Symbol.toStringTag,{value:"Module"})),X={localField:"_id",foreignField:"user",justOne:!0},T=new h.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},christmas:{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}}}}});T.virtual("inventory",{ref:"UserInventory",...X}),T.virtual("raid",{ref:"UserRaid",...X}),T.virtual("games",{ref:"UserGames",...X}),T.virtual("ornaments",{ref:"UserOrnaments",...X}),T.virtual("crew",{ref:"UserCrew",...X}),T.virtual("dailyReport",{ref:"UserDailyReport",...X}),T.virtual("shop",{ref:"UserShop",...X}),T.virtual("meta",{ref:"UserMeta",...X}),T.virtual("quest",{ref:"UserQuest",...X}),T.virtual("questMeta",{ref:"UserQuestMeta",...X}),T.virtual("cooldown",{ref:"UserCooldown",...X}),T.virtual("reminder",{ref:"Reminder",localField:"_id",foreignField:"user"}),T.virtual("encyclopedia",{ref:"UserEncyclopedia",...X}),T.index({userId:1}),T.post("deleteOne",async function(){const t=this.getQuery()._id;await ft.deleteOne({user:t}),await yt.deleteOne({user:t}),await gt.deleteOne({user:t}),await St.deleteOne({user:t}),await Fe.deleteOne({user:t}),await Xt.deleteOne({user:t}),await Jt.deleteOne({user:t}),await Ue.deleteOne({user:t}),await wt.deleteOne({user:t}),await oe.deleteOne({user:t}),await pt.deleteOne({user:t}),await dt.deleteOne({user:t})});const K=((oi=h.models)==null?void 0:oi.User)||h.model("User",T),N0=t=>K.create({userId:t}),ea=async(t,a={})=>{const s=await Nn({userId:t},a);return s||await N0(t)},Nn=(t,a={})=>K.findOne(t,a),$0=Object.freeze(Object.defineProperty({__proto__:null,getAllDailyReport:async()=>K.aggregate([{$match:{"settings.sendDailyReport":!0}},{$lookup:{from:"usermetas",localField:"_id",foreignField:"user",as:"meta"}},{$lookup:{from:"userdailyreports",localField:"_id",foreignField:"user",as:"dailyReport"}},{$match:{$and:[{$expr:{$gt:["$dailyReport.xpYesterday",0]}},{faction:{$ne:"citizen"}}]}}]),getBerryRanking:async()=>K.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:r,amount:n}=s,{unlockedBadges:i,unlockedBackgrounds:o,unlockedTitles:f}=t.ornaments,{previousOrnament:m,previousCompletedQuest:_,xpYesterday:B,berryYesterday:Y,previousMessageSent:H}=t.dailyReport;return{berry:a-Y,xp:n-B,message:t.questMeta.messageSent-H,voice:Se(r.lastConnection,ja())?r.minutesInVoiceToday:0,quest:Kt(t.quest.completed,_),badge:Kt(i,m.unlockedBadges),title:Kt(f,m.unlockedTitles),background:Kt(o,m.unlockedBackgrounds)}},getFactionRank:async(t,a)=>(await K.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=>K.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()=>K.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:()=>K.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()=>K.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:()=>K.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 ea(t,{birthday:1})},Symbol.toStringTag,{value:"Module"})),ve=async(t,a,s=!1)=>{await K.updateOne(t,a,{upsert:s})},$n=async(t,a)=>{await ve({_id:t},{$set:{canChooseFaction:a}})},En=async(t,a)=>{await ve({_id:t},{$set:{canChangeFaction:a}})},E0=Object.freeze(Object.defineProperty({__proto__:null,canChangeFaction:En,canChooseFaction:$n,removeBirthday:async t=>{await ve({userId:t},{$set:{birthday:null}})},setBirthday:async(t,a)=>{await ve({userId:t},{$set:{birthday:a}})},updateFaction:async(t,a)=>{await ve({_id:t},{$set:{faction:a}})},updateInventorySort:async(t,a)=>{await ve({_id:t},{$set:{"settings.sort.inventory":a}})},updateReminderSettings:async(t,a,s)=>{await ve({_id:t},{$set:{[`settings.reminder.${a}`]:s}})},updateSendDailyQuest:async(t,a)=>{await ve({userId:t},{$set:{"settings.sendDailyQuest":a}})},updateSendDailyReport:async(t,a)=>{await ve({userId:t},{$set:{"settings.sendDailyReport":a}})}},Symbol.toStringTag,{value:"Module"})),F0=async t=>{await K.deleteOne({userId:t})},I0=async t=>await Xt.create({user:t}),Y0=async t=>await oe.create({user:t}),L0=async t=>await Jt.create({user:t}),Fn=(t,a)=>{switch(t){case"dailyReport":return I0(a);case"games":return _n(a);case"inventory":return dn(a);case"meta":return en(a);case"raid":return On(a);case"ornaments":return kn(a);case"quest":return xn(a);case"questMeta":return Y0(a);case"shop":return L0(a);case"cooldown":return hn(a);case"reminder":return[];case"crew":return null;case"encyclopedia":return Qr(a)}},In=async(t,a,s)=>{if(Array.isArray(a)){const r=await t.populate(a);for(const n of a)r[n]||(r[n]=await Fn(n,t._id));return r}else{const r=await t.populate(a,s),n=r[a];return(!n||Array.isArray(n)&&n.length===0)&&(r[a]=await Fn(a,t._id)),r}},Yn=new h.Schema({warnedUserId:String,authorId:String,date:{type:Date,default:Date.now()},reason:{type:String,default:null}});Yn.index({warnedUserId:1});const Ve=((ci=h.models)==null?void 0:ci.Warns)||h.model("Warns",Yn),P0=Object.freeze(Object.defineProperty({__proto__:null,getUserWarnCount:async t=>await Ve.countDocuments({warnedUserId:t}),getUserWarns:async t=>await Ve.find({warnedUserId:t})},Symbol.toStringTag,{value:"Module"})),T0=async t=>await Ve.findOne({warnedUserId:t}),j0=async t=>await Ve.create({...t}),Q0=async t=>await Ve.findByIdAndDelete(t),H0=async t=>{var s;const a={};for(const r of Object.values(es)){const n=new r;for(const i of t.members){const o=await ea(i,{_id:1});if((s=n.onCrewUpdate)!=null&&s.call(n,t,o._id)){const f=await n.complete(o._id,{});if(f){const m=a[o.id];a[o.id]=m?[o._id,[...m[1],[n,f]]]:[o._id,[[n,f]]]}}}}Object.values(a).forEach(([r,n])=>{se("crewUpdate",r,n)})},q0={localField:"_id",foreignField:"crew",justOne:!0},ta=new h.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:{}},ornament:{unlockedBadges:[String]}},{timestamps:!0,minimize:!1});ta.index({"meta.xp":-1}),ta.virtual("quest",{ref:"CrewQuest",...q0}),ta.post("findOneAndUpdate",async function(t){await H0(t)});const ze=((ui=h.models)==null?void 0:ui.Crew)||h.model("Crew",ta),W0=(t,a)=>Math.ceil(a*(t.disintegration/100)*(Ln(t)||1)),Ln=t=>new Date>=(t.meta.buffs.xp.expireAt??new Date(0))?!1:t.meta.buffs.xp.boost,K0=Object.freeze(Object.defineProperty({__proto__:null,calcXp:W0,getCrewRank:async t=>(await ze.aggregate([{$setWindowFields:{sortBy:{"meta.xp":-1},output:{rank:{$rank:{}}}}},{$match:{_id:t._id}},{$project:{_id:1,"meta.xp":1,rank:1}}]))[0],getCrewRanking:async()=>ze.aggregate([{$sort:{"meta.xp":-1}},{$limit:10}]),hasXpBuff:Ln},Symbol.toStringTag,{value:"Module"})),ue=async(t,a)=>{await ze.findOneAndUpdate({_id:t},a,{returnDocument:"after"})},Pn=async(t,a,s)=>{a.isProgressive?await ue(t,{$addToSet:{"ornament.unlockedBadges":`${a.id}_${s}`}}):await ue(t,{$addToSet:{"ornament.unlockedBadges":a.id}})},G0=Object.freeze(Object.defineProperty({__proto__:null,addBerry:async(t,a,s)=>{await ue(t,{$inc:{"meta.berry":a,[`stats.${s.toHexString()}.berry`]:a}})},addMember:async(t,a)=>{await ue(t,{$addToSet:{members:a}})},addXp:async(t,a,s)=>{await ue(t,{$inc:{"meta.xp":a,[`stats.${s.toHexString()}.xp`]:a}})},addXpBuff:async(t,a)=>{await ue(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,r]=[a-2,(a-3)*2+3];await ue(t,[{$set:{disintegration:{$max:[{$add:["$disintegration",-1*Sr(s,r)]},0]}}}])},increaseLimit:async(t,a)=>{await ue(t,{$inc:{limit:1,"meta.berry":-a}})},removeMember:async(t,a,s)=>{await ue(t,{$pull:{members:a},$unset:{[`stats.${s}`]:1}})},repair:async(t,a)=>{await ue(t,[{$set:{disintegration:{$min:[{$add:["$disintegration",a]},100]}}}])},unlockBadge:Pn},Symbol.toStringTag,{value:"Module"})),V0=async(t,a={})=>{const s=await ze.findById(t,a);return s||null},z0=async(t,{name:a,description:s,channelId:r,faction:n})=>await ze.create({name:a,description:s,createdBy:t,channelId:r,faction:n,members:[t]}),Tn=(t,a)=>{for(const[,s]of Object.entries(t.daily??{}))if(!(s!=null&&s[a])||!Se(s[a],new Date))return!1;return!0},X0=Object.freeze(Object.defineProperty({__proto__:null,isAllDailyCompleted:Tn},Symbol.toStringTag,{value:"Module"})),Z0=async t=>{var r;const a={},{crew:s}=await t.populate("crew");for(const n of Object.values(Ja)){const i=new n;for(const o of s.members){const f=await ea(o,{_id:1,crew:1}).then(m=>In(m,"crew",{lastAllMembersDaily:1}));if(f.crew&&((r=i.onCrewQuestUpdate)!=null&&r.call(i,t,f.crew))){const m=await i.complete(f._id,{});if(m){const _=a[f.id];a[f.id]=_?[f._id,[..._[1],[i,m]]]:[f._id,[[i,m]]]}}}}Object.values(a).forEach(([n,i])=>{se("crewQuestUpdate",n,i)})},bs=new h.Schema({crew:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"Crew"},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}}}},{minimize:!1});bs.index({crew:1}),bs.post("findOneAndUpdate",async function(t){await Z0(t)});const aa=((fi=h.models)==null?void 0:fi.CrewQuest)||h.model("CrewQuest",bs),sa=async(t,a)=>{await aa.findOneAndUpdate({crew:t},a,{upsert:!0,returnDocument:"after"})},jn=async(t,a)=>{await sa(t,{$addToSet:{completed:a}})},Qn=async(t,a,s)=>{await sa(t,[{$addFields:{[`daily.${a}.${s}`]:new Date}}])},J0=Object.freeze(Object.defineProperty({__proto__:null,completeDailyQuest:Qn,completeQuest:jn,setActualVoiceMembers:async(t,a)=>{await sa(t,{$set:{"meta.actualVoiceMembers.amount":a,"meta.actualVoiceMembers.connectedAt":new Date}})},setMaxVoiceMembers:async(t,a)=>{await sa(t,{$set:{"meta.maxVoiceMembers":a}})}},Symbol.toStringTag,{value:"Module"})),Ss=async t=>await aa.create({crew:t}),ey=async t=>{const a=await aa.findOne({crew:t});return a||await Ss(t)},Hn=(t,a)=>{switch(t){case"quest":return Ss(a)}},ty=async(t,a,s)=>{if(Array.isArray(a)){const r=await t.populate(a);for(const n of a)r[n]||(r[n]=await Hn(n,t._id));return r}else{const r=await t.populate(a,s),n=r[a];return(!n||Array.isArray(n)&&n.length===0)&&(r[a]=await Hn(a,t._id)),r}},ay=t=>{h.connect(t)};class sy extends h.Types.ObjectId{}c.ALL_QUESTS=zr,c.BET_MAX_VALUE=lu,c.BET_MIN_VALUE=iu,c.BackgroundShopItem=Ur,c.BoostXpShopItem=xr,c.BottleShopItem=Ar,c.COOLDOWN_COMMANDS=c0,c.ChestShopItem=Br,c.CrewQuestQuests=Ja,c.CrewQuests=es,c.EDITO_READ=du,c.EquipmentShopItem=Dr,c.ObjectId=sy,c.ObjectShopItem=Or,c.QUEST_ASSET_IMAGES=ou,c.Quest=d,c.RepairShopItem=Nr,c.StoreShopItem=$r,c.TitleShopItem=Er,c.UserDailyQuests=za,c.UserInventoryQuests=ts,c.UserMetaQuests=as,c.UserOrnamentsQuests=ss,c.UserQuestMetaQuests=rs,c.UserQuestQuests=ns,c.UserRepetableQuests=vt,c.banExists=_i,c.banGetters=mi,c.banModel=Ie,c.betModel=ia,c.completeCrewQuest=yu,c.completeDailyQuest=mu,c.completeRepeatableQuest=gu,c.connectToServices=ay,c.createBan=yi,c.createBet=Mi,c.createCrew=z0,c.createCrewQuest=Ss,c.createInvitations=ki,c.createReminder=Qc,c.createSettings=Cr,c.createUserCrew=p0,c.createWarn=j0,c.crewGetters=K0,c.crewModel=ze,c.crewQuestGetters=X0,c.crewQuestModel=aa,c.crewQuestUpdates=J0,c.crewUpdates=G0,c.deleteBan=wi,c.deleteInvitations=Ri,c.deleteUserById=F0,c.deleteUserCrewById=y0,c.deleteWarn=Q0,c.emitQuestEvent=se,c.emitRaidEvent=ot,c.finWarnById=T0,c.findBan=gi,c.findBetById=Si,c.findCrewById=V0,c.findCrewQuest=ey,c.findInvitations=vi,c.findReminder=jc,c.findSettingsByGuildId=Ac,c.findShop=Lr,c.findShopByType=Ic,c.findUser=Nn,c.findUserById=ea,c.findUserCooldown=u0,c.findUserCrew=mn,c.findUserEncyclopedia=Gc,c.findUserGames=_0,c.findUserInventory=ht,c.findUserMeta=ut,c.findUserOrnaments=C0,c.findUserQuest=ws,c.findUserRaid=_s,c.getBadgeEmojisFromId=pu,c.getQuestBadgeEmojis=hu,c.invitationsModel=kt,c.onQuestEvent=zc,c.onRaidEvent=um,c.populateCrew=ty,c.populateUser=In,c.questCanvas=nu,c.reminderGetters=Lc,c.reminderModel=Ee,c.reminderUpdates=Tc,c.settingsModel=Gt,c.settingsUpdates=Dc,c.shopGetters=Nc,c.shopModel=Vt,c.shopUpdates=Ec,c.updateUserCooldown=mt,c.updateUserCrew=ps,c.updateUserDailyReport=gn,c.updateUserEncyclopedia=jr,c.updateUserGames=Zt,c.updateUserInventory=ce,c.updateUserMeta=F,c.updateUserOrnaments=W,c.updateUserQuest=_t,c.updateUserQuestMeta=k,c.updateUserRaid=Me,c.updateUserShop=An,c.userCooldownGetters=Yc,c.userCooldownModel=pt,c.userCooldownUpdates=o0,c.userCrewExists=m0,c.userCrewModel=Fe,c.userCrewUpdates=h0,c.userDailyReportModel=Xt,c.userDailyReportUpdates=g0,c.userEncyclopediaGetters=Wc,c.userEncyclopediaModel=dt,c.userEncyclopediaUpdates=Kc,c.userGamesModel=yt,c.userGamesUpdates=w0,c.userGetters=$0,c.userInventoryGetters=qc,c.userInventoryModel=ft,c.userInventoryUpdates=Zm,c.userMetaGetters=l0,c.userMetaModel=Ue,c.userMetaUpdates=jm,c.userModel=K,c.userOrnamentsModel=gt,c.userOrnamentsUpdates=R0,c.userQuestGetters=fu,c.userQuestMetaModel=oe,c.userQuestMetaUpdates=Em,c.userQuestModel=wt,c.userQuestUpdates=x0,c.userRaidGetters=B0,c.userRaidModel=St,c.userRaidUpdates=O0,c.userShopGetters=D0,c.userShopModel=Jt,c.userShopUpdates=A0,c.userUpdates=E0,c.warnGetters=P0,c.warnModel=Ve,Object.defineProperty(c,Symbol.toStringTag,{value:"Module"})});
|
|
10
|
+
y.version="2.30.1",Ci(D),y.fn=p,y.min=pd,y.max=md,y.now=yd,y.utc=ne,y.unix=qo,y.months=Ko,y.isDate=Xe,y.locale=Re,y.invalid=Rt,y.duration=te,y.isMoment=J,y.weekdays=Vo,y.parseZone=Wo,y.localeData=ge,y.isDuration=Lt,y.monthsShort=Go,y.weekdaysMin=Xo,y.defineLocale=Ca,y.updateLocale=ql,y.locales=Wl,y.weekdaysShort=zo,y.normalizeUnits=V,y.relativeTimeRounding=kc,y.relativeTimeThreshold=Rc,y.calendarFormat=Td,y.prototype=p,y.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Wt=t=>new Intl.NumberFormat("de-DE").format(t),Sr=(t,a,s=Math.random)=>Math.floor(s()*(a-t)+t),Kt=(t,a,s=r=>r)=>t.filter(r=>!a.some(n=>s(n)===s(r))),Pa=(t,a)=>[...new Set(t.map(s=>a(s)))],Mr=t=>t.filter(a=>a!=null),Uc=({start:t=0,stop:a,step:s=1})=>{if(s===0)throw new RangeError("step cannot be equal to 0");if(s>0&&t>=a||s<0&&t<=a)return[];const r=[];for(let n=t;s>0?n<a:n>a;n+=s)r.push(n);return r},xc=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,Bc=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,vr=/(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,Ta=[/^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],Oc={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:vr,monthsShortRegex:vr,monthsStrictRegex:xc,monthsShortStrictRegex:Bc,monthsParse:Ta,longMonthsParse:Ta,shortMonthsParse:Ta,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}};y.locale("fr",Oc);const Se=(t,a,s=!0)=>(s?t.getFullYear()===a.getFullYear():!0)&&t.getMonth()===a.getMonth()&&t.getDate()===a.getDate(),ja=()=>y().locale("fr").subtract(1,"days").toDate(),$e=t=>new Date>t,kr=t=>typeof t=="function",Qa=(t,a,s)=>{const r={...t},n=Object.entries(t);for(const[i,o]of n){const f=a[i];f?r[i]=s(o,f):r[i]=o}return r},Ha=t=>Object.entries(t),Rr=new h.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}},roles:{premium:{type:String,default:null},booster:{type:String,default:null},scam:{type:String,default:null}},channels:{gambling:{type:String,default:null},work:{type:String,default:null},raid:{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}});Rr.index({"meta.xp":-1});const Gt=((Gn=h.models)==null?void 0:Gn.Settings)||h.model("Settings",Rr),I=async(t,a,s=!1)=>{await Gt.updateOne({guildId:t},a,{upsert:s})},Dc=Object.freeze(Object.defineProperty({__proto__:null,addCrewChannelId:async(t,a,s)=>{await I(t,{$push:{"crew.crewChannelIds":{channelId:s,crewId:a}}})},randomizeEditoPrice:async t=>{const a=Sr(100,1001);return await I(t,{$set:{"edito.price":a}}),a},sentAtMidnight:async(t,a)=>{await I(t,{$set:{"edito.sentAtMidnight":a}})},setCrewInfoChannelId:async(t,a)=>{await I(t,{$set:{"crew.infoChannelId":a}})},setDiscussionChannelId:async(t,a)=>{await I(t,{$set:{discussionChannelId:a}})},setEditoChannel:async(t,a)=>{await I(t,{$set:{"edito.channelId":a}})},setEditoMessageId:async(t,a)=>{await I(t,{$set:{"edito.messageId":a}})},setFactionChannel:async(t,a)=>{await I(t,{$set:{factionChannelId:a}})},setQuestChannelId:async(t,a)=>{await I(t,{$set:{questFallbackChannelId:a}})},setRankingChannel:async(t,a)=>{await I(t,{$set:{"ranking.channelId":a}})},setRankingMessage:async(t,a)=>{await I(t,{$set:{"ranking.messageId":a}})},setReportBugChannelId:async(t,a)=>{await I(t,{$set:{reportBugChannelId:a}})},setReportChannel:async(t,a)=>{await I(t,{$set:{reportChannelId:a}})},setReportModeratorChannel:async(t,a)=>{await I(t,{$set:{reportModeratorChannelId:a}})},setShopChannelId:async(t,a,s)=>{await I(t,{$set:{shopChannelId:a,blackMarketChannelId:s}})},setSuggestionChannel:async(t,a)=>{await I(t,{$set:{suggestionChannelId:a}})},updateChannelId:async(t,a)=>{await I(t,{$set:Object.fromEntries(Object.entries(a).map(([s,r])=>[`channels.${s}`,r]))})},updateRolesId:async(t,a)=>{await I(t,{$set:Object.fromEntries(Object.entries(a).map(([s,r])=>[`roles.${s}`,r]))})}},Symbol.toStringTag,{value:"Module"})),Cr=async t=>await Gt.create({guildId:t}),Ac=async(t,a={})=>{const s=await Gt.findOne({guildId:t},a);return s||Cr(t)};class ae{constructor(){e(this,"name");e(this,"price");e(this,"size");e(this,"currency");e(this,"data");if(this.constructor===ae)throw new Error("Abstract classes can't be instantiated.")}toDBShopItem(){return{name:this.name,price:this.price,size:this.size,entityId:this.data.id,currency:this.currency}}async onBuy(a,s){this.currency==="berry"?(await tn(a,-1*this.price*s),await Zr(a,this.price*s)):await xe(a,this.currency,this.price*s)}isBackground(){return!1}isChest(){return!1}isTitle(){return!1}isBoostXp(){return!1}isRepair(){return!1}isStore(){return!1}isObject(){return!1}isBottle(){return!1}isEquipment(){return!1}}class Ur extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await bn(a,this.data.background.id)}isBackground(){return!0}}class xr extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await re(a,this.data.id,s)}isBoostXp(){return!0}}class Br extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await re(a,this.data.id,s)}isChest(){return!0}}class Or extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await re(a,this.data.id,s)}isObject(){return!0}}class Dr extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await cs(a,Uc({stop:s}).map(()=>S.seedEquipment({...this.data},Date.now()-Math.round(Math.random()*1e3))))}isEquipment(){return!0}}class Ar extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await re(a,this.data.id,s)}isBottle(){return!0}}class Nr extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await re(a,this.data.id,s)}isRepair(){return!0}}class $r extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await re(a,this.data.id,s)}isStore(){return!0}}class Er extends ae{constructor({name:a,price:s,item:r,size:n,currency:i}){super(),this.name=a,this.data=r,this.price=s,this.size=n,this.currency=i}async onBuy(a,s){await super.onBuy(a,s),await ys(a,this.data.title.name)}isTitle(){return!0}}const Fr=(t,a)=>{const s=t.items.find(r=>r.entityId===a);if(s){const{name:r,price:n,size:i,currency:o}=s,f=S.findEntity(s.entityId);if(S.isBackgroundItem(f))return new Ur({name:r,price:n,item:f,size:i,currency:o});if(S.isTitleItem(f))return new Er({name:r,price:n,item:f,size:i,currency:o});if(S.isChestItem(f))return new Br({name:r,price:n,item:f,size:i,currency:o});if(S.isBoostItem(f))return new xr({name:r,price:n,item:f,size:i,currency:o});if(S.isRepairItem(f))return new Nr({name:r,price:n,item:f,size:i,currency:o});if(S.isStoreItem(f))return new $r({name:r,price:n,item:f,size:i,currency:o});if(S.isObjectItem(f))return new Or({name:r,price:n,item:f,size:i,currency:o});if(S.isEquipment(f))return new Dr({name:r,price:n,item:f,size:i,currency:o});if(S.isBottleItem(f))return new Ar({name:r,price:n,size:i,item:f,currency:o})}},Nc=Object.freeze(Object.defineProperty({__proto__:null,getShopItem:Fr,getShopItemList:t=>{const a=[];for(const{entityId:s}of t.items){const r=Fr(t,s);r&&a.push(r)}return a}},Symbol.toStringTag,{value:"Module"})),Ir=new h.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},entityId:String,currency: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}}},{minimize:!1});Ir.index({shopType:1});const Vt=((Vn=h.models)==null?void 0:Vn.Shop)||h.model("Shop",Ir),$c=async(t,a)=>{await Yr({shopType:t},a,!0)},qa=async(t,a)=>{await Yr({_id:t},a,!0)},Yr=async(t,a,s=!1)=>{await Vt.updateOne(t,a,{upsert:s})},Ec=Object.freeze(Object.defineProperty({__proto__:null,buyShopItem:async(t,a,s,r)=>{const n=a.map(i=>(i.name===s.name&&i.size&&(i.size-=r),i));await qa(t,{$set:{items:n}})},publish:async t=>{await qa(t,{$set:{publishedAt:new Date}})},setShopItems:async(t,a)=>{await $c(t,{$set:{items:[...a]}})},updateShopStats:async(t,a,s)=>{await qa(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"})),Fc=t=>Vt.create({shopType:t}),Ic=async(t,a={})=>{const s=await Lr({shopType:t},a);return s||await Fc(t)},Lr=(t,a={})=>Vt.findOne(t,a),Yc=Object.freeze(Object.defineProperty({__proto__:null,getCommandCooldown:(t,a)=>t.commands[a],getRaidCooldown:(t,a)=>t.raid[a]},Symbol.toStringTag,{value:"Module"})),Wa=new h.Schema({user:{type:h.Schema.Types.ObjectId,ref:"User",required:!0},date:Date,type:String},{minimize:!1});Wa.index({user:1}),Wa.index({date:-1});const Ee=((zn=h.models)==null?void 0:zn.Reminder)||h.model("Reminder",Wa),Lc=Object.freeze(Object.defineProperty({__proto__:null,getAllPassedReminder:async()=>await Ee.find({date:{$lte:new Date}})},Symbol.toStringTag,{value:"Module"})),Pc=async(t,a)=>{await Ee.deleteOne({user:t,type:a})},Pr=async(t,a,s,r)=>{await Ee.updateOne({user:t,type:a},s,{upsert:r})},Ka=async(t,a,s)=>{await Pr(t,a,{$set:{date:s}},!0)},Ga=async(t,a,s)=>{await Pr(t,a,[{$set:{date:{$add:["$date",s]}}}],!1)},Tc=Object.freeze(Object.defineProperty({__proto__:null,addReminder:Ka,deleteSelectedReminders:async t=>{await Ee.deleteMany({_id:{$in:t}})},removeReminder:async(t,a)=>{await Pc(t,a)},updateReminderDate:Ga},Symbol.toStringTag,{value:"Module"})),jc=async(t,a={})=>{const s=await Ee.findOne({user:t},a);return s||null},Qc=async(t,a,s)=>await Ee.create({user:t,date:a,type:s}),Hc=(t,a)=>{const s=Mr(Object.values(t.equippedItems)),r=a.equipments.filter(n=>s.find(i=>i.id===n.id)).length;if(r===a.equipments.length)return a.fullBonus;if(r>=a.equipments.length/2)return a.halfBonus},Va=t=>{var s;let a={vitality:0,strength:0,agility:0,chance:0,intelligence:0,wisdom:0};for(const r of S.EQUIPMENT_SLOT){const n=(s=t.equippedItems)==null?void 0:s[r];n&&(a=Qa(a,S.fromDBToEquipableEquipment(n).characteristics,(i,o)=>i+o))}for(const r of S.allPanoplies){const n=Hc(t,r);n&&!("target"in n)&&(a=Qa(a,n,(i,o)=>i+o))}return a},qc=Object.freeze(Object.defineProperty({__proto__:null,calcBottleMultiplier:(t,{buffs:a})=>{const s=S.getPanoplyBonus(t.equippedItems).find(([r,n])=>r.id==="herbalist"&&n!==null);return s&&s[1]==="full"?a.map(r=>({...r,multiplier:r.multiplier*1.25})):s&&s[1]==="half"?a.map(r=>({...r,multiplier:r.multiplier*1.1})):a},calcMinStreakForWorkLoot:t=>{const a=S.getPanoplyBonus(t.equippedItems).find(([s,r])=>s.id==="marine"&&r!==null);return a&&a[1]==="full"?10:a&&a[1]==="half"?20:1/0},getItemList:t=>Object.fromEntries(t.itemList),getRecipeResult:(t,a)=>{const s=S.getPanoplyBonus(t.equippedItems).find(([r,n])=>r.id==="little_blacksmith"&&n!==null);return(s==null?void 0:s[1])==="full"&&a==="chest_3"?"chest_blacksmith_3":(s==null?void 0:s[1])==="half"&&a==="chest_2"?"chest_blacksmith_2":(s==null?void 0:s[1])==="half"&&a==="chest_1"?"chest_blacksmith_1":a},getUserEquipmentsCharacteristics:Va,hasEnoughEnchantedStone:(t,a)=>(t.itemList.get("enchanted_stone")||0)>=a,hasEnoughItem:(t,a,s)=>(t.itemList.get(s)||0)>=a,hasEnoughItemsForRecipe:(t,a,s)=>{for(const r of a)if((t.itemList.get(r.itemId)||0)<r.size*s)return!1;return!0},hasEnoughTools:(t,a)=>(t.itemList.get("tools")||0)>=a,hasInventoryRequirements:(t,a)=>Ha(a).reduce((s,[r,n])=>s&&(t.itemList.get(r)??0)>=(n??0),!0),hasRevolutionaryBuff:t=>{const a=S.getPanoplyBonus(t.equippedItems).find(([s,r])=>s.id==="revolutionary"&&r!==null);return(a==null?void 0:a[1])??null},maxCraftQuantity:(t,a)=>{let s=1/0;for(const r of a)s=Math.min(s,Math.floor((t.itemList.get(r.itemId)||0)/r.size));return s}},Symbol.toStringTag,{value:"Module"})),Wc=Object.freeze(Object.defineProperty({__proto__:null,getEncyclopedia:t=>t.encyclopedia,hasFoundItem:(t,a)=>t.encyclopedia.includes(a)},Symbol.toStringTag,{value:"Module"})),Tr=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},encyclopedia:{type:[String],default:[]}});Tr.index({user:1});const dt=((Xn=h.models)==null?void 0:Xn.UserEncyclopedia)||h.model("UserEncyclopedia",Tr),jr=async(t,a)=>{await dt.updateOne({user:t},a,{upsert:!0})},zt=async(t,a)=>{await jr(t,{$addToSet:{encyclopedia:{$each:a}}})},Kc=Object.freeze(Object.defineProperty({__proto__:null,addItem:zt},Symbol.toStringTag,{value:"Module"})),Qr=async t=>await dt.create({user:t}),Gc=async t=>{const a=await dt.findOne({user:t});return a||await Qr(t)},Vc=["crewUpdate","crewQuestUpdate","userMetaUpdate","userQuestMetaUpdate","userQuestUpdate","userInventoryUpdate","userOrnamentsUpdate","userDaily","crewDaily","userChristmasUpdate"],Hr=new pi.EventEmitter,se=(t,a,s)=>{Hr.emit(t,a,s)},zc=t=>{for(const a of Vc)Hr.on(a,(s,r)=>{t(a,s,r)})};class d{constructor(){e(this,"chest");e(this,"repeatable");e(this,"onUserMetaUpdate");e(this,"onUserQuestUpdate");e(this,"onUserQuestMetaUpdate");e(this,"onUserInventoryUpdate");e(this,"onUserOrnamentsUpdate");e(this,"onCrewUpdate");e(this,"onCrewQuestUpdate");e(this,"complete",async(a,{_userQuest:s,_userCrew:r,_userMeta:n,_userInventory:i})=>{const o=s??await ws(a);if(this.isCompleted(o)&&!this.repeatable)return null;const f=n??await ut(a),m=r??await mn(a),_=i??await ht(a);return this.crew&&m?this.daily?await this.markCrewDailyAsCompleted(m.crew._id,o.user._id):(await this.markAsCompleted(o),await this.markCrewAsCompleted(m.crew._id)):await this.markAsCompleted(o),await this.specificQuestCompletion(o,m),await this.applyReward(o,f,m,_)});e(this,"getComputedRewards",(a,s)=>{const r=this.daily&&Xa(s)?Za(s):1;return{xp:(kr(this.xp)?this.xp(a):this.xp)*r*(1+fs(a)),berry:(kr(this.berry)?this.berry(a):this.berry)*r}})}async applyReward(a,s,r,n){return this.title&&await ys(a.user._id,this.title.name),this.badge&&(this.crew&&r?await Pn(r.crew._id,this.badge,this.rank.id):await Sn(a.user._id,this.badge,this.rank.id)),this.isFactionBadge&&await Mn(a.user._id,this.rank.id),this.asset&&await vn(a.user._id,this.asset),this.chest&&await ln(n.user._id,this.chest),this.getComputedRewards(s,a)}async specificQuestCompletion(a,s){this.id==="daily_all"&&(await Un(a.user._id,a.lastFullComplete),s&&await this.markCrewDailyAsCompleted(s.crew._id,a.user._id)),this.id==="be_level_10"&&await $n(a.user._id,!0),this.id!=="be_level_10"&&this.id.startsWith("be_level_")&&await En(a.user._id,!0),this.id==="crew_all_members_daily"&&s&&await pn(a.user._id)}isCompleted(a){return this.daily?Kr(a,this.id):qr(a,this.id)}async markAsCompleted(a){this.daily?await Cn(a.user._id,this.id):await Rn(a.user._id,this.id)}async markCrewAsCompleted(a){await jn(a,this.id)}async markCrewDailyAsCompleted(a,s){await Qn(a,s.toHexString(),this.id)}}class Xc extends d{constructor(){super(...arguments);e(this,"name","Bienvenue à bord !");e(this,"id","crew_create_or_join");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Créer son équipage/Rejoindre un équipage");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"secret",!1);e(this,"daily",!1);e(this,"crew",!1)}}class Zc extends d{constructor(){super(...arguments);e(this,"name","Prêt à naviguer !");e(this,"id","crew_daily_click");e(this,"rank",l.RANKS.COMMON);e(this,"description","Faire acte de présence auprès de son équipage");e(this,"berry",1e4);e(this,"xp",1e3);e(this,"crew",!0);e(this,"daily",!0);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1)}}const Jc=Object.freeze(Object.defineProperty({__proto__:null,CrewCreateOrJoin:Xc,CrewValidateDaily:Zc},Symbol.toStringTag,{value:"Module"}));class eu extends d{constructor(){super(...arguments);e(this,"name","1 jour 1 message");e(this,"id","daily_send_message");e(this,"rank",l.RANKS.COMMON);e(this,"description","Envoyer un message");e(this,"berry",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*1e3);e(this,"xp",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*100);e(this,"daily",!0);e(this,"secret",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null)}}class tu extends d{constructor(){super(...arguments);e(this,"name","Les nouvelles sont bonnes ?");e(this,"id","daily_read_edito");e(this,"rank",l.RANKS.COMMON);e(this,"description","Réagir à l'édito");e(this,"berry",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*3e3);e(this,"xp",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*300);e(this,"daily",!0);e(this,"secret",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null)}}class au extends d{constructor(){super(...arguments);e(this,"name","Quoi ? Feur !");e(this,"id","daily_answer");e(this,"rank",l.RANKS.COMMON);e(this,"description","Répondre à quelqu'un");e(this,"berry",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*1500);e(this,"xp",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*150);e(this,"daily",!0);e(this,"secret",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null)}}class su extends d{constructor(){super(...arguments);e(this,"name","Narcissique");e(this,"id","daily_check_profile");e(this,"rank",l.RANKS.COMMON);e(this,"description","Regarder son profil");e(this,"berry",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*2e3);e(this,"xp",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*200);e(this,"daily",!0);e(this,"secret",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null)}}class ru extends d{constructor(){super(...arguments);e(this,"name","Almanax");e(this,"id","almanax");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Valider 365 jours de suite les quêtes quotidiennes");e(this,"berry",1e9);e(this,"xp",1e6);e(this,"badge",u.BadgeList.calendar);e(this,"secret",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"asset",null);e(this,"title",null);e(this,"daily",!1)}}const za=Object.freeze(Object.defineProperty({__proto__:null,Almanax:ru,DailyAnswer:au,DailyCheckProfile:su,DailyReadEdito:tu,DailySendMessage:eu},Symbol.toStringTag,{value:"Module"})),nu=async(t,a,s,{berry:r,xp:n})=>{const i=await ws(a).then(F=>F.populate("user","faction")),o=Za(i),f=Vr(i,i.user.faction),{badge:m,isFactionBadge:_,title:B,rank:Y,name:H,description:ry,daily:ra,secret:ny}=t;return s.Image().setImageName(`quest_success_${Y.id}`).setDimensions(2080,636).draw(),m?s.Image().setImageName(u.progressiveBadgeTypeGuard(m)?`cropped_badge_${m.img}_${Y.id}`:`cropped_badge_${m.img}`).setOrigin(j.CanvasOrigin.CENTER).setScale(2).setPosition(370,318).draw():_&&i.user.faction!=="citizen"?s.Image().setImageName(`cropped_badge_${i.user.faction}_${Y.id}`).setOrigin(j.CanvasOrigin.CENTER).setScale(2).setPosition(370,318).draw():s.Image().setImageName(`badge_default_${Y.id}`).setScale(2).setOrigin(j.CanvasOrigin.CENTER).setPosition(370,318).draw(),s.Text(ra?"QUÊTE JOURNALIÈRE TERMINÉE !":"SUCCÈS DÉBLOQUÉ !").setPosition(739,100).setFont("text",70).setColor(Y.color).draw(),s.Text(H).setPosition(739,325).setOrigin(j.CanvasOrigin.BOTTOM_LEFT).setFont("poppins",H.length>=35?65-(H.length-35):65).draw(),s.Text(ny?"Succès caché":ry).setPosition(739,360).setFont("poppins_italic",35).draw(),s.Text(`Récompenses: ${Wt(r)}${ra&&o>1?` (+${Wt(r*(o-1))})`:""} `).setPosition(739,520).setFont("poppins",35).setOrigin(j.CanvasOrigin.LEFT).draw(r!==0).next((F,L)=>j.nextAllToXAxis(F.Image(),L)).setImageName("quest_berry").setDimensions(50,79).draw(r!==0).next((F,L)=>j.nextAllToXAxis(F.Text(` / ${Wt(n)}${ra&&o>1?` (+${Wt(n*(o-1))})`:""} `),L)).draw(n!==0).next((F,L)=>j.nextAllToXAxis(F.Image(),L)).setImageName("quest_xp").setDimensions(57,59).draw(n!==0).next((F,L)=>j.nextAllToXAxis(F.Text(` combo x${o}`),L)).draw(ra&&o>1).next((F,L)=>j.nextAllToXAxis(F.Text(" et la possibilité "),L)).draw(_&&i.user.faction==="citizen").next((F,L)=>j.nextAllToXAxis(F.Text("de choisir ta faction"),L)).setFont("poppins_bold",35).draw(_&&i.user.faction==="citizen").next((F,L)=>j.nextAllToXAxis(F.Text(" et le titre "),L)).setFont("poppins",35).draw(!!B||_&&i.user.faction!=="citizen").next((F,L)=>j.nextAllToXAxis(F.Text((B==null?void 0:B.name)??""),L)).setFont("poppins_bold",35).setColor((B==null?void 0:B.rank.color)??"white").draw(!!B).next((F,L)=>j.nextAllToXAxis(F.Text((f==null?void 0:f.name)??""),L)).setColor((f==null?void 0:f.rank.color)??"white").draw(_&&!!f),await s.encode("webp")},iu=10,lu=1e7,du=100,ou=["berry","success_COMMON","success_RARE","success_EPIC","success_LEGENDARY","success_MYTHIC","xp"],cu={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>"}},qr=(t,a)=>t.completed.includes(a),Wr=t=>{for(const a of Object.values(vt)){const s=new a;if(s.repeatable&&t===s.id)return!0}return!1},uu=t=>{for(const a of Object.values(zr)){const s=new a;if(s.id===t)return s.name}return null},Kr=(t,a)=>{const s=t.daily[a];return s&&Se(s,new Date)},Xa=t=>Se(ja(),t.lastFullComplete),Za=t=>Xa(t)?1+Math.min(2,t.streak/10):1,Gr=t=>t.completed.reduce((a,s)=>a+(s.startsWith("be_level_")?1:0),0),Vr=(t,a)=>{const s=Gr(t);return u.factionTitleList.find(r=>r.strength===s&&r.faction===a)},fu=Object.freeze(Object.defineProperty({__proto__:null,getFactionTitle:Vr,getFactionTitleStrength:Gr,getQuestName:uu,getStreakMultiplier:Za,isDailyQuestCompleted:Kr,isQuestCompleted:qr,isRepetableQuestExist:Wr,isStreaking:Xa},Symbol.toStringTag,{value:"Module"})),hu=(t,a)=>{const s=t.badge,r=t.isFactionBadge;return s?u.progressiveBadgeTypeGuard(s)?s.emojis[s.isProgressive.findIndex(n=>n===t.rank.id)]:s.emojis:r?cu.factions[`b_${a}_${t.rank.id}`]:""},pu=t=>{const[a,s]=t.split("_"),r=Object.values(u.BadgeList).find(n=>n.id===a);if(r)return u.progressiveBadgeTypeGuard(r)?r.emojis[r.isProgressive.findIndex(n=>n===s)]:r.emojis},mu=async(t,a)=>{const s=Object.values(za).find(r=>new r().id===t);if(s){const r=new s,n=await r.complete(a,{});n&&se("userDaily",a,[[r,n]])}},yu=async(t,a)=>{const s=Object.values(Jc).find(r=>new r().id===t);if(s){const r=new s,n=await r.complete(a,{});n&&se("crewDaily",a,[[r,n]])}},gu=async(t,a)=>{if(!Wr(a))return;const s=Object.values(vt).find(r=>new r().id===a);if(s){const r=new s,n=await r.complete(t,{});n&&se("userQuestUpdate",t,[[r,n]])}};class wu extends d{constructor(){super(...arguments);e(this,"name","L'Insistant");e(this,"id","insistent");e(this,"rank",l.RANKS.EPIC);e(this,"description","Être repêché et atteindre les huitièmes de finale");e(this,"berry",1e6);e(this,"xp",0);e(this,"secret",!1);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,"repeatable",!0)}}class _u extends d{constructor(){super(...arguments);e(this,"name","Résurrection");e(this,"id","resurrection");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Être repêché et atteindre les quarts de finale");e(this,"berry",3e6);e(this,"xp",0);e(this,"secret",!1);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,"repeatable",!0)}}class bu extends d{constructor(){super(...arguments);e(this,"name","L'Inarrétable");e(this,"id","unstoppable");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Remporter un tournoi avec une finale écrasante");e(this,"berry",0);e(this,"xp",0);e(this,"chest",[{chest:"chest_1",size:5},{chest:"chest_2",size:3}]);e(this,"secret",!1);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,"repeatable",!0)}}class Su extends d{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,"onCrewQuestUpdate",s=>s.meta.streak80Percent>=7)}}class Mu extends d{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,"onCrewQuestUpdate",s=>s.meta.streak80Percent>=30)}}class vu extends d{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,"onCrewQuestUpdate",s=>s.meta.streak80Percent>=30*3)}}class ku extends d{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,"onCrewQuestUpdate",s=>s.meta.streak80Percent>=30*6)}}class Ru extends d{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,"onCrewQuestUpdate",s=>s.meta.streak80Percent>=365)}}class Cu extends d{constructor(){super(...arguments);e(this,"name","Au rapport !");e(this,"id","crew_all_members_daily");e(this,"rank",l.RANKS.RARE);e(this,"description","Tous les membres ont rempli leurs quêtes quotidiennes");e(this,"berry",5e4);e(this,"xp",5e3);e(this,"crew",!0);e(this,"daily",!0);e(this,"secret",!1);e(this,"asset",null);e(this,"title",null);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"onCrewQuestUpdate",(s,r)=>{var n,i;return Tn(s,"daily_all")&&!Se(((i=(n=s.daily)==null?void 0:n[r.user._id.toHexString()])==null?void 0:i.crew_all_members_daily)??new Date(0),new Date)&&!Se(r.lastAllMembersDaily,new Date)})}}class Uu extends d{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,"onCrewQuestUpdate",s=>s.meta.maxVoiceMembers>=5)}}class xu extends d{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,"onCrewQuestUpdate",s=>s.meta.maxVoiceMembers>=7)}}class Bu extends d{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,"onCrewQuestUpdate",s=>s.meta.maxVoiceMembers>=10)}}class Ou extends d{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,"onCrewQuestUpdate",s=>s.meta.maxVoiceMembers>=12)}}class Du extends d{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,"onCrewQuestUpdate",s=>s.meta.maxVoiceMembers>=15)}}const Ja=Object.freeze(Object.defineProperty({__proto__:null,CrewAllMembersDaily:Cu,CrewCarpenter1Month:Mu,CrewCarpenter1Week:Su,CrewCarpenter1Year:Ru,CrewCarpenter3Months:vu,CrewCarpenter6Months:ku,CrewVocal10:Bu,CrewVocal12:Ou,CrewVocal15:Du,CrewVocal5:Uu,CrewVocal7:xu},Symbol.toStringTag,{value:"Module"}));class Au extends d{constructor(){super(...arguments);e(this,"name","Ah bah maintenant, elle va marcher beaucoup moins bien forcément !");e(this,"id","crew_break_ship");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Casser son bateau (atteindre les 0% de détérioration)");e(this,"berry",-1e6);e(this,"xp",-1e5);e(this,"crew",!0);e(this,"secret",!0);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"onCrewUpdate",s=>s.disintegration<=0)}}class Nu extends d{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.getCurrentCrewLevel(s.meta.xp)>=10)}}class $u extends d{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.getCurrentCrewLevel(s.meta.xp)>=25)}}class Eu extends d{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.getCurrentCrewLevel(s.meta.xp)>=50)}}class Fu extends d{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.getCurrentCrewLevel(s.meta.xp)>=75)}}class Iu extends d{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.getCurrentCrewLevel(s.meta.xp)>=100)}}class Yu extends d{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 Lu extends d{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 Pu extends d{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 Tu extends d{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 ju extends d{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 Qu extends d{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 Hu extends d{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 qu extends d{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 Wu extends d{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 Ku extends d{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 Gu extends d{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,r)=>s.stats[r.toHexString()]&&s.stats[r.toHexString()].xp>=5e4)}}class Vu extends d{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,r)=>s.stats[r.toHexString()]&&s.stats[r.toHexString()].xp>=5e5)}}class zu extends d{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,r)=>s.stats[r.toHexString()]&&s.stats[r.toHexString()].xp>=1e6)}}class Xu extends d{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,r)=>s.stats[r.toHexString()]&&s.stats[r.toHexString()].xp>=5e6)}}class Zu extends d{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,r)=>s.stats[r.toHexString()]&&s.stats[r.toHexString()].xp>=5e7)}}const es=Object.freeze(Object.defineProperty({__proto__:null,CrewBeLevel10:Nu,CrewBeLevel100:Iu,CrewBeLevel25:$u,CrewBeLevel50:Eu,CrewBeLevel75:Fu,CrewBreakShip:Au,CrewBring1mXp:zu,CrewBring500kXp:Vu,CrewBring50kXp:Gu,CrewBring50mXp:Zu,CrewBring5mXp:Xu,CrewHave100MBerry:Yu,CrewHave1MdBerry:Pu,CrewHave500MBerry:Lu,CrewHave50MdBerry:ju,CrewHave5MdBerry:Tu,CrewSize10:qu,CrewSize12:Wu,CrewSize15:Ku,CrewSize5:Qu,CrewSize7:Hu},Symbol.toStringTag,{value:"Module"}));class Ju extends d{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 ef extends d{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 tf extends d{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 af extends d{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 sf extends d{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 ts=Object.freeze(Object.defineProperty({__proto__:null,Have100Recipe:sf,Have10Recipe:tf,Have1Recipe:Ju,Have25Recipe:af,Have5Recipe:ef},Symbol.toStringTag,{value:"Module"}));class rf extends d{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 nf extends d{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 lf extends d{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 df extends d{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 of extends d{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 cf extends d{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=>U.getComputedCharacteristicValue(s.characteristics.strength)>=25)}}class uf extends d{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=>U.getComputedCharacteristicValue(s.characteristics.strength)>=50)}}class ff extends d{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=>U.getComputedCharacteristicValue(s.characteristics.strength)>=100)}}class hf extends d{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=>U.getComputedCharacteristicValue(s.characteristics.strength)>=250)}}class pf extends d{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=>U.getComputedCharacteristicValue(s.characteristics.strength)>=500)}}class mf extends d{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=>U.getComputedCharacteristicValue(s.characteristics.agility)>=25)}}class yf extends d{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=>U.getComputedCharacteristicValue(s.characteristics.agility)>=50)}}class gf extends d{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=>U.getComputedCharacteristicValue(s.characteristics.agility)>=100)}}class wf extends d{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=>U.getComputedCharacteristicValue(s.characteristics.agility)>=250)}}class _f extends d{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=>U.getComputedCharacteristicValue(s.characteristics.agility)>=500)}}class bf extends d{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=>U.getComputedCharacteristicValue(s.characteristics.intelligence)>=25)}}class Sf extends d{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=>U.getComputedCharacteristicValue(s.characteristics.intelligence)>=50)}}class Mf extends d{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=>U.getComputedCharacteristicValue(s.characteristics.intelligence)>=100)}}class vf extends d{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=>U.getComputedCharacteristicValue(s.characteristics.intelligence)>=250)}}class kf extends d{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=>U.getComputedCharacteristicValue(s.characteristics.intelligence)>=500)}}class Rf extends d{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=>U.getComputedCharacteristicValue(s.characteristics.chance)>=25)}}class Cf extends d{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=>U.getComputedCharacteristicValue(s.characteristics.chance)>=50)}}class Uf extends d{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=>U.getComputedCharacteristicValue(s.characteristics.chance)>=100)}}class xf extends d{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=>U.getComputedCharacteristicValue(s.characteristics.chance)>=250)}}class Bf extends d{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=>U.getComputedCharacteristicValue(s.characteristics.chance)>=500)}}class Of extends d{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=>U.getComputedCharacteristicValue(s.characteristics.vitality)>=25)}}class Df extends d{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=>U.getComputedCharacteristicValue(s.characteristics.vitality)>=50)}}class Af extends d{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=>U.getComputedCharacteristicValue(s.characteristics.vitality)>=100)}}class Nf extends d{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=>U.getComputedCharacteristicValue(s.characteristics.vitality)>=250)}}class $f extends d{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=>U.getComputedCharacteristicValue(s.characteristics.vitality)>=500)}}class Ef extends d{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=>U.getComputedCharacteristicValue(s.characteristics.wisdom)>=25)}}class Ff extends d{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=>U.getComputedCharacteristicValue(s.characteristics.wisdom)>=50)}}class If extends d{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=>U.getComputedCharacteristicValue(s.characteristics.wisdom)>=100)}}class Yf extends d{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=>U.getComputedCharacteristicValue(s.characteristics.wisdom)>=250)}}class Lf extends d{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=>U.getComputedCharacteristicValue(s.characteristics.wisdom)>=500)}}class Pf extends d{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 Tf extends d{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 jf extends d{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 Qf extends d{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 Hf extends d{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 qf extends d{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 Wf extends d{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 Kf extends d{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 Gf extends d{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 Vf extends d{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)}}class zf extends d{constructor(){super(...arguments);e(this,"name","T'as des amis ?");e(this,"id","daily_vocal");e(this,"rank",l.RANKS.COMMON);e(this,"description","Se connecter 10 min en vocal");e(this,"berry",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*5e3);e(this,"xp",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*500);e(this,"daily",!0);e(this,"secret",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"onUserMetaUpdate",({xp:s})=>s.voice.minutesInVoiceToday>=10&&Se(s.voice.lastConnection,new Date))}}const as=Object.freeze(Object.defineProperty({__proto__:null,BeLevel10:Pf,BeLevel120:Vf,BeLevel20:Tf,BeLevel30:jf,BeLevel40:Qf,BeLevel50:Hf,BeLevel60:qf,BeLevel70:Wf,BeLevel80:Kf,BeLevel90:Gf,DailyVocal:zf,Have100Agility:gf,Have100Chance:Uf,Have100Intelligence:Mf,Have100Strength:ff,Have100Vitality:Af,Have100Wisdom:If,Have250Agility:wf,Have250Chance:xf,Have250Intelligence:vf,Have250Strength:hf,Have250Vitality:Nf,Have250Wisdom:Yf,Have25Agility:mf,Have25Chance:Rf,Have25Intelligence:bf,Have25Strength:cf,Have25Vitality:Of,Have25Wisdom:Ef,Have500Agility:_f,Have500Chance:Bf,Have500Intelligence:kf,Have500Strength:pf,Have500Vitality:$f,Have500Wisdom:Lf,Have500kBerry:rf,Have500mBerry:df,Have50Agility:yf,Have50Chance:Cf,Have50Intelligence:Sf,Have50Strength:uf,Have50Vitality:Df,Have50Wisdom:Ff,Have50mBerry:lf,Have5mBerry:nf,Have5mdBerry:of},Symbol.toStringTag,{value:"Module"}));class Xf extends d{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(r=>r!=="default").length>=1)}}class Zf extends d{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(r=>r!=="default").length>=25)}}class Jf extends d{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(r=>r!=="default").length>=50)}}class eh extends d{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 th extends d{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 ah extends d{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 ss=Object.freeze(Object.defineProperty({__proto__:null,Have100Title:ah,Have10Title:eh,Have1Background:Xf,Have25Background:Zf,Have50Background:Jf,Have50Title:th},Symbol.toStringTag,{value:"Module"}));class sh extends d{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 rh extends d{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 nh extends d{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 ih extends d{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 lh extends d{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 dh extends d{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 oh extends d{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 ch extends d{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 uh extends d{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 fh extends d{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 hh extends d{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 ph extends d{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 mh extends d{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 yh extends d{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 gh extends d{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 wh extends d{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 _h extends d{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 bh extends d{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 Sh extends d{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 Mh extends d{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 vh extends d{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 kh extends d{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 Rh extends d{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 Ch extends d{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 Uh extends d{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 xh extends d{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 Bh extends d{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 Oh extends d{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 Dh extends d{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 Ah extends d{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 Nh extends d{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 $h extends d{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 Eh extends d{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 Fh extends d{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 Ih extends d{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 Yh extends d{constructor(){super(...arguments);e(this,"name","Egoïste...");e(this,"id","crew_10_percent");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Être à 10% d'XP pour l'équipage pendant 3 mois");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"secret",!0);e(this,"asset",null);e(this,"title",u.questTitles.Egoïste);e(this,"badge",u.BadgeList.selfish);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.timeAt10Percent>=90)}}class Lh extends d{constructor(){super(...arguments);e(this,"name","Merci bien camarade !");e(this,"id","crew_90_percent");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Être à 90% d'XP pour l'équipage pendant 3 mois");e(this,"berry",1e6);e(this,"xp",1e5);e(this,"secret",!0);e(this,"asset",null);e(this,"title",u.questTitles.Camarade);e(this,"badge",u.BadgeList.camarade);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.timeAt90Percent>=90)}}class Ph extends d{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 Th extends d{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 jh extends d{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 Qh extends d{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 Hh extends d{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 qh extends d{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 Wh extends d{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 Kh extends d{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 Gh extends d{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 Vh extends d{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 zh extends d{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 r=s.lastGames.slice(0,5);return r.length<5||Pa(r,n=>n.gameType).length<5?!1:r.reduce((n,i)=>n+i.endState,0)===5})}}class Xh extends d{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 r=s.lastGames.slice(0,5);return r.length!==5||Pa(r,n=>n.gameType).length<5?!1:r.reduce((n,i)=>n+i.endState,0)===-5})}}class Zh extends d{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 Jh extends d{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 ep extends d{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 tp extends d{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 ap extends d{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 sp extends d{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 rp extends d{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 r=s.lastGames;if(r.length!==20)return!1;for(let n=0;n<r.length;n++)if(n%2===0&&r[n].endState!==1||n%2!==0&&r[n].endState!==-1)return!1;return!0})}}class np extends d{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 ip extends d{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 lp extends d{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 dp extends d{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 op extends d{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 cp extends d{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 up extends d{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 fp extends d{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 hp extends d{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 pp extends d{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 mp extends d{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 yp extends d{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 gp extends d{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 wp extends d{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 _p extends d{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 bp extends d{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 Sp extends d{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 Mp extends d{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 vp extends d{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 kp extends d{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 Rp extends d{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 Cp extends d{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 Up extends d{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 xp extends d{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 Bp extends d{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 Op extends d{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 Dp extends d{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 Ap extends d{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 Np extends d{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 $p extends d{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 Ep extends d{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 Fp extends d{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 Ip extends d{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 Yp extends d{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 Lp extends d{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 Pp extends d{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)}}class Tp extends d{constructor(){super(...arguments);e(this,"name","Jeune étudiant");e(this,"id","drink_50_alcohols");e(this,"rank",l.RANKS.COMMON);e(this,"description","Boire 50 alcools");e(this,"berry",5e5);e(this,"xp",2e4);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Jeune étudiant"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.total>=50)}}class jp extends d{constructor(){super(...arguments);e(this,"name","Habitué des bars");e(this,"id","drink_250_alcohols");e(this,"rank",l.RANKS.RARE);e(this,"description","Boire 250 alcools");e(this,"berry",2e6);e(this,"xp",5e4);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Habitué des bars"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.total>=250)}}class Qp extends d{constructor(){super(...arguments);e(this,"name","Alcoolique notoire");e(this,"id","drink_500_alcohols");e(this,"rank",l.RANKS.EPIC);e(this,"description","Boire 500 alcools");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Alcoolique notoire"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.total>=500)}}class Hp extends d{constructor(){super(...arguments);e(this,"name","Ivrogne");e(this,"id","drink_1000_alcohols");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Boire 1000 alcools");e(this,"berry",5e7);e(this,"xp",2e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles.Ivrogne);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.total>=1e3)}}class qp extends d{constructor(){super(...arguments);e(this,"name","Breton");e(this,"id","drink_2000_alcohols");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Boire 2000 alcools");e(this,"berry",1e8);e(this,"xp",5e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles.Breton);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.total>=2e3)}}class Wp extends d{constructor(){super(...arguments);e(this,"name","Buveur de Rhum");e(this,"id","drink_10_rhum");e(this,"rank",l.RANKS.COMMON);e(this,"description","Boire 10 Rhums");e(this,"berry",5e5);e(this,"xp",2e4);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Buveur de Rhum"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.rhums>=10)}}class Kp extends d{constructor(){super(...arguments);e(this,"name","Amateur de Rhum");e(this,"id","drink_100_rhum");e(this,"rank",l.RANKS.RARE);e(this,"description","Boire 100 Rhums");e(this,"berry",2e6);e(this,"xp",5e4);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Amateur de Rhum"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.rhums>=100)}}class Gp extends d{constructor(){super(...arguments);e(this,"name","Connaisseur de Rhum");e(this,"id","drink_250_rhum");e(this,"rank",l.RANKS.EPIC);e(this,"description","Boire 250 Rhums");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Connaisseur de Rhum"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.rhums>=250)}}class Vp extends d{constructor(){super(...arguments);e(this,"name","Rhumologue");e(this,"id","drink_500_rhum");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Boire 500 Rhums");e(this,"berry",5e7);e(this,"xp",2e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles.Rhumologue);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.rhums>=500)}}class zp extends d{constructor(){super(...arguments);e(this,"name","Dieu du Rhum");e(this,"id","drink_1000_rhum");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Boire 1000 Rhums");e(this,"berry",1e8);e(this,"xp",5e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Dieu du Rhum"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.rhums>=1e3)}}class Xp extends d{constructor(){super(...arguments);e(this,"name","Buveur de Bière");e(this,"id","drink_10_beer");e(this,"rank",l.RANKS.COMMON);e(this,"description","Boire 10 Bières");e(this,"berry",5e5);e(this,"xp",2e4);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Buveur de Bière"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.beers>=10)}}class Zp extends d{constructor(){super(...arguments);e(this,"name","Amateur de Bière");e(this,"id","drink_100_beer");e(this,"rank",l.RANKS.RARE);e(this,"description","Boire 100 Bières");e(this,"berry",2e6);e(this,"xp",5e4);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Amateur de Rhum"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.beers>=100)}}class Jp extends d{constructor(){super(...arguments);e(this,"name","Connaisseur de Bière");e(this,"id","drink_250_beer");e(this,"rank",l.RANKS.EPIC);e(this,"description","Boire 250 Bières");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Connaisseur de Rhum"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.beers>=250)}}class em extends d{constructor(){super(...arguments);e(this,"name","Bièrologue");e(this,"id","drink_500_beer");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Boire 500 Bières");e(this,"berry",5e7);e(this,"xp",2e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles.Bièrologue);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.beers>=500)}}class tm extends d{constructor(){super(...arguments);e(this,"name","Dieu de la Bière");e(this,"id","drink_1000_beer");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Boire 1000 Bières");e(this,"berry",1e8);e(this,"xp",5e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Dieu de la Bière"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.beers>=1e3)}}class am extends d{constructor(){super(...arguments);e(this,"name","Buveur de Vin");e(this,"id","drink_10_wine");e(this,"rank",l.RANKS.COMMON);e(this,"description","Boire 10 Vins");e(this,"berry",5e5);e(this,"xp",2e4);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Buveur de Vin"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.wines>=10)}}class sm extends d{constructor(){super(...arguments);e(this,"name","Amateur de Vin");e(this,"id","drink_100_wine");e(this,"rank",l.RANKS.RARE);e(this,"description","Boire 100 Vins");e(this,"berry",2e6);e(this,"xp",5e4);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Amateur de Vin"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.wines>=100)}}class rm extends d{constructor(){super(...arguments);e(this,"name","Connaisseur de Vin");e(this,"id","drink_250_wine");e(this,"rank",l.RANKS.EPIC);e(this,"description","Boire 250 Vins");e(this,"berry",1e7);e(this,"xp",1e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Connaisseur de Vin"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.wines>=250)}}class nm extends d{constructor(){super(...arguments);e(this,"name","Vinologue");e(this,"id","drink_500_wine");e(this,"rank",l.RANKS.LEGENDARY);e(this,"description","Boire 500 Vins");e(this,"berry",1e7);e(this,"xp",2e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles.Vinologue);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.wines>=500)}}class im extends d{constructor(){super(...arguments);e(this,"name","Dieu du Vin");e(this,"id","drink_1000_wine");e(this,"rank",l.RANKS.MYTHIC);e(this,"description","Boire 1000 Vins");e(this,"berry",1e8);e(this,"xp",5e5);e(this,"secret",!1);e(this,"asset",null);e(this,"title",u.questTitles["Dieu du Vin"]);e(this,"badge",null);e(this,"isFactionBadge",!1);e(this,"daily",!1);e(this,"crew",!1);e(this,"onUserQuestMetaUpdate",s=>s.items.alcohols.wines>=1e3)}}const rs=Object.freeze(Object.defineProperty({__proto__:null,Bet10M:nh,Bet666:sp,BetMinValue:sh,Birthday:ch,BotPing:uh,ChestOpen1000Quest:Sh,ChestOpen150Quest:_h,ChestOpen2000Quest:Mh,ChestOpen500Quest:bh,ChestOpen50Quest:wh,Craft1000Times:Uh,Craft100CookedMeals:Oh,Craft100Scrolls:Ih,Craft10CookedMeals:xh,Craft10Scrolls:$h,Craft200Times:Rh,Craft20Scrolls:Eh,Craft20Times:vh,Craft250CookedMeals:Dh,Craft500CookedMeals:Ah,Craft500Times:Ch,Craft50CookedMeals:Bh,Craft50Scrolls:Fh,Craft50Times:kh,Craft5Scrolls:Nh,Crew10Percent:Yh,Crew90Percent:Lh,DoubleSix:Kh,Draw1000Quest:jh,Draw100Quest:Ph,Draw2000Quest:Qh,Draw300Quest:Th,Draw5000Quest:Hh,DrawDoubleSix:Gh,Drink1000Alcohols:Hp,Drink1000Beer:tm,Drink1000Quest:mh,Drink1000Rhum:zp,Drink1000Wine:im,Drink100Beer:Zp,Drink100Rhum:Kp,Drink100Today:fh,Drink100Wine:sm,Drink10Beer:Xp,Drink10Rhum:Wp,Drink10Wine:am,Drink2000Alcohols:qp,Drink2000Quest:yh,Drink200Quest:hh,Drink250Alcohols:jp,Drink250Beer:Jp,Drink250Rhum:Gp,Drink250Wine:rm,Drink5000Quest:gh,Drink500Alcohols:Qp,Drink500Beer:em,Drink500Quest:ph,Drink500Rhum:Vp,Drink500Wine:nm,Drink50Alcohols:Tp,Edito:qh,Everyone:Wh,Finish100Raids:dp,Finish10Raids:np,Finish200Raids:op,Finish25Raids:ip,Finish50Raids:lp,GuessInOne:ap,Lose10M:oh,LoseAll5GamesInRow:Xh,LoseEverything:rh,Paper100:Jh,RandomMessage100Quest:fp,RandomMessage200Quest:hp,RandomMessage20Quest:cp,RandomMessage500Quest:pp,RandomMessage50Quest:up,Report:mp,Rock100:tp,Scissor100:ep,SevenQuitteOuDouble:Vh,SpendShop500M:vp,SpendShop50M:Mp,SpendShop50Ml:Rp,SpendShop5M:Sp,SpendShop5Ml:kp,TenBlackJack:Zh,TotalBet10M:lh,TotalBet1Md:dh,Voice10Hours:Cp,Voice2500Hours:Bp,Voice250Hours:xp,Voice25Hours:Up,Voice5000Hours:Op,WinAll5GamesInRow:zh,WinLose10:rp,WinOn10MBet:ih,Work1000Quest:Np,Work100Quest:Dp,Work2000Quest:$p,Work300Quest:Ap,Work5000Quest:Ep,Write100Chats:Lp,Write10Chats:Fp,Write200Chats:Pp,Write20Chats:Ip,Write50Chats:Yp,send100000Messages:_p,send1000Messages:gp,send100Messages:yp,send200000Messages:bp,send25000Messages:wp},Symbol.toStringTag,{value:"Module"}));class lm extends d{constructor(){super(...arguments);e(this,"name","T'as pas oublié de ranger ta chambre ?");e(this,"id","daily_all");e(this,"rank",l.RANKS.RARE);e(this,"description","Finir les quêtes journalières");e(this,"berry",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*12500);e(this,"xp",({xp:s})=>(l.getCurrentLevel(s.amount)/10+1)*1250);e(this,"daily",!0);e(this,"secret",!1);e(this,"crew",!1);e(this,"isFactionBadge",!1);e(this,"badge",null);e(this,"asset",null);e(this,"title",null);e(this,"onUserQuestUpdate",s=>{for(const[r,n]of Object.entries(s.daily))if(!Se(n,new Date)&&this.id!==r)return!1;return Object.keys(s.daily).filter(r=>r!==this.id).length>=5})}}const ns=Object.freeze(Object.defineProperty({__proto__:null,DailyAll:lm},Symbol.toStringTag,{value:"Module"})),zr=[...Object.values(as),...Object.values(ss),...Object.values(ts),...Object.values(rs),...Object.values(ns),...Object.values(es),...Object.values(Ja),...Object.values(za),...Object.values(vt)],dm=async t=>{var s;const a=[];for(const r of Object.values(as)){const n=new r;if((s=n.onUserMetaUpdate)!=null&&s.call(n,t)){const i=await n.complete(t.user._id,{_userMeta:t});i&&a.push([n,i])}}a.length>0&&se("userMetaUpdate",t.user._id,a)},om=async t=>{var s;const a=[];for(const r of Object.values(rs)){const n=new r;if((s=n.onUserQuestMetaUpdate)!=null&&s.call(n,t)){const i=await n.complete(t.user._id,{});i&&a.push([n,i])}}a.length>0&&se("userQuestMetaUpdate",t.user._id,a)},cm=["raidUnlock"],Xr=new Ms.EventEmitter,ot=(t,a,s)=>{Xr.emit(t,a,s)},um=t=>{for(const a of cm)Xr.on(a,(s,r)=>{t(a,s,r)})},fm=async t=>{var s,r;const a=await _s(t.user._id);l.getCurrentLevel(t.xp.amount)>=30&&!bt(a,"training")&&(await Mt(a.user._id,"training"),ot("raidUnlock",t.user._id,"training")),(((r=(s=a.obtainedRewards.training)==null?void 0:s.filter(n=>n.startsWith("end_")))==null?void 0:r.length)??0)>=4&&!bt(a,"resources")&&(await Mt(a.user._id,"resources"),ot("raidUnlock",t.user._id,"resources"))},hm=async t=>{const a=await _s(t.user._id);Pa(t.equipmentList,s=>s.id).map(s=>S.findEquipment(s)).filter(s=>s.panoply==="adventurer").length===6&&!bt(a,"pirate_cave")&&(await Mt(a.user._id,"pirate_cave"),ot("raidUnlock",t.user._id,"pirate_cave")),(t.itemList.get("map_fragment")??0)>=5&&!bt(a,"mysterious_island")&&(await Mt(a.user._id,"mysterious_island"),await xe(t.user._id,"map_fragment",5),ot("raidUnlock",t.user._id,"mysterious_island"))},is=new h.Schema({user:{type:h.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}},alcohols:{wines:{type:Number,default:0},rhums:{type:Number,default:0},beers:{type:Number,default:0},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}});is.index({user:1}),is.post("findOneAndUpdate",async function(t){await om(t)});const oe=((Zn=h.models)==null?void 0:Zn.UserQuestMeta)||h.model("UserQuestMeta",is),k=async(t,a)=>{await oe.findOneAndUpdate({user:t},a,{upsert:!0,returnDocument:"after"})},pm=async t=>{await k(t,{$inc:{work:1}})},mm=async t=>{await k(t,{$set:{hadMoreThanZeroBerry:!0}})},ym=async t=>{await k(t,{$set:{sevenQuitteOuDouble:!0}})},gm=async t=>{await k(t,{$inc:{black_jack:1}})},wm=async(t,a,s)=>{await k(t,{$push:{lastGames:{$each:[{gameType:a,endState:s}],$position:0,$slice:20}}})},_m=async t=>{await k(t,{$inc:{draw:1}})},bm=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 oe.updateOne({user:t,"bet666.last":{$gte:a,$lte:s}},{$inc:{"bet666.amount":1},$set:{"bet666.last":new Date}}),await oe.updateOne({user:t,"bet666.last":{$lt:a}},{$set:{"bet666.last":new Date,"bet666.amount":1}})},Sm=async(t,a)=>{await k(t,{$inc:{totalBet:a}})},Mm=async(t,a)=>{await k(t,[{$set:{"rps.nb":{$cond:{if:{$eq:["$rps.lastRps",a]},then:{$add:["$rps.nb",1]},else:1}},"rps.lastRps":a}}])},Zr=async(t,a)=>{await k(t,{$inc:{totalSpentInShop:a}})},vm=async(t,a,s)=>{const r=S.findEntity(s);await k(t,{$inc:{"crafts.cookedMeal":S.isCookedMeal(r)?a:0,"crafts.scrolls":S.isScrollItem(r)?a:0,"crafts.total":a}})},km=async t=>{await k(t,{$set:{reportedSomeone:!0}})},Rm=async t=>{await k(t,{$inc:{randomMessage:1}})},Cm=async t=>{await k(t,{$inc:{botPing:1}})},Um=async t=>{await k(t,{$inc:{guessInOne:1}})},xm=async t=>{await k(t,{$set:{hasCelebrateBirthday:!0}})},Bm=async t=>{await k(t,{$inc:{double_six:1}})},Om=async t=>{await k(t,{$inc:{drawDoubleSix:1}})},Dm=async(t,a)=>{a?await k(t,{$set:{timeAt10Percent:0}}):await k(t,{$inc:{timeAt10Percent:1}})},Am=async(t,a)=>{a?await k(t,{$set:{timeAt90Percent:0}}):await k(t,{$inc:{timeAt90Percent:1}})},Nm=async t=>{await k(t,{$set:{tagEveryone:!0}})},$m=async t=>{await k(t,{$set:{betMin:!0}})},Jr=async t=>{await k(t,{$set:{loseEverything:!0}})},Em=Object.freeze(Object.defineProperty({__proto__:null,addTotalMinutesInVoice:async(t,a)=>{await k(t,{$inc:{totalMinutesInVoice:a}})},addWrittenTextChannel:async(t,a)=>{await k(t,{$addToSet:{writeDifferentChat:a}})},bet666:bm,botPingIncrement:Cm,drawDoubleSix:Om,drawIncrement:_m,hadMoreThanZeroBerry:mm,hasBet10M:async t=>{await k(t,{$set:{bet10M:!0}})},hasBetMin:$m,hasCelebrateBirthday:xm,hasGuessInOne:Um,hasLose10M:async t=>{await k(t,{$set:{lose10M:!0}})},hasLoseEverything:Jr,hasReportedSomeone:km,hasSevenQod:ym,hasTagEveryone:Nm,hasWinBet10M:async t=>{await k(t,{$set:{winBet10M:!0}})},incrementAlcoholDrink:async(t,a,s)=>{await k(t,{$inc:{"items.alcohols.wines":a==="wine"?s:0,"items.alcohols.beers":a==="beer"?s:0,"items.alcohols.rhums":a==="rhum"?s:0,"items.alcohols.total":s}})},incrementBottleUsedToday:async(t,a)=>{const s=new Date;s.setHours(0,0,0,0),await oe.updateOne({user:t,"items.bottle.last":{$gte:s}},{$inc:{"items.bottle.today":a},$set:{"items.bottle.last":new Date}}),await oe.updateOne({user:t,"items.bottle.last":{$lt:s}},{$set:{"items.bottle.last":new Date,"items.bottle.today":a}})},incrementBottleUsedTotal:async(t,a)=>{await k(t,{$inc:{"items.bottle.total":a}})},incrementChestOpenedTotal:async(t,a)=>{await k(t,{$inc:{"items.chest.total":a}})},incrementMessageSend:async t=>{await k(t,{$inc:{messageSent:1}})},randomMessageIncrement:Rm,readEdito:async t=>{const a=new Date;a.setHours(0,0,0,0),await oe.updateOne({user:t,"edito.lastTimeRead":{$gte:a}},{$inc:{"edito.readToday":1},$set:{"edito.lastTimeRead":new Date}}),await oe.updateOne({user:t,"edito.lastTimeRead":{$lt:a}},{$set:{"edito.lastTimeRead":new Date,"edito.readToday":1}})},updateCrafts:vm,updateCrew10Percent:Dm,updateCrew90Percent:Am,updateLastGames:wm,updateRps:Mm,updateTotalBet:Sm,updateTotalSpentInShop:Zr,winBlackjack:gm,winDoubleSix:Bm,workIncrement:pm},Symbol.toStringTag,{value:"Module"})),Ke={multiplier:{type:Number,default:0},origin:String,expireAt:{type:Date,default:null},startAt:{type:Date,default:null}},ct=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},premium:{type:Date,default:null},booster:{type:Boolean,default:!1},scam:{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:[Ke],default:[]},work:{type:[Ke],default:[]}},berry:{work:{type:[Ke],default:[]},global:{type:[Ke],default:[]}},drop:{work:{type:[Ke],default:[]}},xp:{global:{type:[Ke],default:[]}}},hp:{type:Number,default:100},workUnluckyStreak:{type:Number,default:0},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}}});ct.index({user:1}),ct.index({"xp.amount":-1}),ct.index({berry:-1}),ct.post("findOneAndUpdate",async function(t){await fm(t),await dm(t),t.berry===0&&await Jr(t.user._id),t.hp<=0&&await fn(t.user._id)});const Ue=((Jn=h.models)==null?void 0:Jn.UserMeta)||h.model("UserMeta",ct),en=async t=>await Ue.create({user:t}),ut=async(t,a={})=>{const s=await Ue.findOne({user:t},a);return s||await en(t)},Fm=(t,a)=>Ue.findOneAndUpdate({user:t},a,{returnDocument:"after",upsert:!0}),E=async(t,a)=>{await Ue.findOneAndUpdate({user:t},a,{returnDocument:"after",upsert:!0})},tn=async(t,a)=>{await E(t,[{$set:{berry:{$max:[{$add:["$berry",a]},0]}}}])},Im=async(t,a)=>{await E(t,{$set:{premium:a}})},Ym=async(t,a)=>{await E(t,{$set:{booster:a}})},Lm=async(t,a)=>{const{xp:{boost:s}}=await Fm(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},ls=async(t,a)=>{if(Array.isArray(a)){for(const r of a)await ls(t,r);return}const s=S.transformToDBBuff(a);await E(t,[{$set:{[`buffs.${a.target}`]:{$map:{input:`$buffs.${a.target}`,as:"buff",in:{$cond:{if:{$eq:[{$substr:["$$buff.origin",0,{$indexOfBytes:["$$buff.origin","/"]}]},a.origin.split("/")[0]]},then:{multiplier:a.multiplier,origin:a.origin,expireAt:s.expireAt?{$cond:{if:{$lt:["$$buff.expireAt",new Date]},then:s.expireAt,else:{$add:["$$buff.expireAt",(a.endIn??0)*60*60*1e3]}}}:null,startAt:{$cond:{if:{$gte:["$$buff.startAt",new Date]},then:"$$buff.startAt",else:{$add:[new Date,(a.startIn??0)*60*60*1e3]}}}},else:"$$buff"}}}}}},{$set:{[`buffs.${a.target}`]:{$cond:{if:{$in:[a.origin.split("/")[0],{$map:{input:`$buffs.${a.target}`,as:"buff",in:{$substr:["$$buff.origin",0,{$indexOfBytes:["$$buff.origin","/"]}]}}}]},then:`$buffs.${a.target}`,else:{$concatArrays:[`$buffs.${a.target}`,[{...s}]]}}}}}])},ds=async(t,a)=>{await E(t,{$pull:{[`buffs.${a.target}`]:{origin:a.origin}}})},Pm=async(t,a,s,r)=>{const n=S.fromDBToEquipableEquipment(a),i=Mr(Object.values(s)),o=S.allPanoplies.find(_=>_.id===n.panoply);if(!o)return;const f=o.equipments.filter(_=>(i.find(B=>_.id===B.id)||!r&&n.id===_.id)&&(r?n.id!==_.id:!0)).length,m=f===o.equipments.length?o.fullBonus:f>=o.equipments.length/2?o.halfBonus:void 0;o.halfBonus&&"target"in o.halfBonus&&await ds(t,o.halfBonus),o.fullBonus&&"target"in o.fullBonus&&await ds(t,o.fullBonus),m&&"target"in m&&await ls(t,m)},an=async(t,a,{userMeta:s,userInventory:r})=>{const n=s??await ut(t,{buffs:0,xp:0}),i=r??await ht(t,{itemList:0,equipmentList:0}),f=await Be(t,n,i)-n.hp;await E(t,{$set:{hp:n.hp+Math.floor(Math.min(a,f))}})},Tm=async(t,a)=>{await E(t,[{$set:{hp:{$max:[{$add:["$hp",-a]},0]}}}])},Ge=async(t,a)=>{const s=await Be(t);await E(t,[{$set:{hp:{$round:[{$multiply:[{$divide:["$hp",a]},s]},0]}}}])},jm=Object.freeze(Object.defineProperty({__proto__:null,addBerry:tn,addCharacteristics:async(t,a)=>{const s=await Be(t),r=Object.fromEntries(Object.entries(a).filter(([,n])=>n!==0).map(([n,i])=>[`characteristics.${n}`,i]));await E(t,{$inc:r}),Ge(t,s)},addMinutesInVoiceToday:async(t,a)=>{await E(t,{$inc:{"xp.voice.minutesInVoiceToday":a}})},addScrollCharacteristic:async(t,a)=>{const s=await Be(t),r=Object.fromEntries(Object.entries(a).filter(([,n])=>n!==0).map(([n,i])=>[`scrolls.${n}`,i]));await E(t,{$inc:r}),Ge(t,s)},gainHp:an,incrementWorkUnluckyStreak:async t=>{await E(t,{$inc:{workUnluckyStreak:1}})},loseHp:Tm,removeBuff:ds,resetCharacteristics:async(t,a,s)=>{const r=await Be(t,s),n={vitality:0,strength:0,agility:0,chance:0,intelligence:0,wisdom:0};a?await E(t,{$set:{characteristics:n,"resetCharacteristics.free":!1}}):await E(t,{$set:{characteristics:n,"resetCharacteristics.nextAvailable":new Date(Date.now()+30*24*60*60*1e3)},$inc:{berry:-1e8}}),Ge(t,r)},resetMinutesInVoiceToday:async t=>{await E(t,{$set:{"xp.voice.minutesInVoiceToday":0}})},resetWorkUnluckyStreak:async t=>{await E(t,{$set:{workUnluckyStreak:0}})},updateBoost:Lm,updateBooster:Ym,updateBuff:ls,updateHp:Ge,updateLastVoiceConnection:async(t,a)=>{await E(t,{$set:{"xp.voice.lastConnection":a}})},updatePanoplyBuff:Pm,updatePremium:Im,updateScam:async(t,a)=>{await E(t,{$set:{scam:a}})}},Symbol.toStringTag,{value:"Module"})),Qm=async t=>{var s;const a=[];for(const r of Object.values(ts)){const n=new r;if((s=n.onUserInventoryUpdate)!=null&&s.call(n,t)){const i=await n.complete(t.user._id,{});i&&a.push([n,i])}}a.length>0&&se("userInventoryUpdate",t.user._id,a)},os=new h.Schema({user:{type:h.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});os.index({user:1}),os.post("findOneAndUpdate",async function(t){await hm(t),await Qm(t)});const ft=((ei=h.models)==null?void 0:ei.UserInventory)||h.model("UserInventory",os),ce=async(t,a)=>{await ft.findOneAndUpdate({user:t},a,{upsert:!0,returnDocument:"after"})},re=async(t,a,s)=>{await ce(t,{$inc:{[`itemList.${a}`]:s}}),await zt(t,[a])},Hm=async(t,a)=>{await ce(t,{$inc:Object.fromEntries(Object.entries(a).filter(([,s])=>(s??0)>0).map(([s,r])=>[`itemList.${s}`,r]))}),await zt(t,Ha(a).filter(([,s])=>s>0).map(([s])=>s))},xe=async(t,a,s)=>{s!==0&&await ce(t,[{$set:{[`itemList.${a}`]:{$max:[{$add:[`$itemList.${a}`,-s]},0]}}}])},sn=async(t,a,s)=>{await ce(t,{$pull:{equipmentList:{id:a,seed:s}}})},rn=async(t,a,s,r)=>{s!==0&&(S.isEquipmentId(a)?await sn(t,a,r):await xe(t,a,s))},qm=async(t,a)=>{await ce(t,{$set:{[`itemList.${a}`]:0}})},cs=async(t,a)=>{await ce(t,{$push:{equipmentList:{$each:a}}}),await zt(t,a.map(s=>s.id))},Wm=async(t,a,s)=>{const r=await Be(t);await ce(t,{$set:{[`equippedItems.${a}`]:s}}),await Ge(t,r)},Km=async(t,a)=>{const s=await Be(t);await ce(t,{$set:{[`equippedItems.${a}`]:null}}),await Ge(t,s)},Gm=async(t,a,s,r,n)=>{for(const{itemId:f,size:m}of a)await xe(t,f,m*r);const{itemId:i,size:o}=s;S.isEquipmentId(i)?await cs(t,[{id:i,seed:n}]):await re(t,i,o*r)},Vm=async(t,a,s,r,n)=>{await rn(t,a.id,r,n);for(const{entityId:i,quantity:o}of s)S.isEquipmentId(i)||await re(t,i,r*o);await xe(t,"tools",1)},zm=async(t,a,s,r)=>{await xe(t,a,r*4),await xe(t,"enchanted_stone",r),await re(t,s,r)},Xm=async(t,a)=>{await ce(t,{$addToSet:{recipes:a}})},nn=async(t,a,s)=>{await re(t,a,s)},ln=async(t,a)=>{a.forEach(async s=>await nn(t,s.chest,s.size))},Zm=Object.freeze(Object.defineProperty({__proto__:null,addEquipments:cs,addInventoryItem:re,addInventoryItems:Hm,craftItem:Gm,dismantleEntity:Vm,enchantItem:zm,equip:Wm,giveChest:nn,giveChests:ln,removeAllItemInventory:qm,removeEquipment:sn,removeInventoryEntity:rn,removeInventoryItem:xe,unequip:Km,unlockRecipe:Xm},Symbol.toStringTag,{value:"Module"})),dn=async t=>await ft.create({user:t}),ht=async(t,a={})=>{const s=await ft.findOne({user:t},a);return s||await dn(t)},us=t=>Object.fromEntries(l.CHARACTERISTICS.map(a=>[a,U.getComputedCharacteristicValue(t.characteristics[a])+t.scrolls[a]])),Jm=t=>Date.now()-t.xp.lastMessageWithXp.getTime()>60*1e3,fs=t=>{const{boost:a}=t.xp;return(a!==null&&Date.now()<a.getTime()?.2:0)+Math.max(t.premium?.5:0,t.booster?.25:0)+t.buffs.xp.global.reduce((s,{expireAt:r,startAt:n,multiplier:i})=>s+((n??new Date)<=new Date&&(!r||!$e(r))?i:0),0)},e0=t=>{const a=t.trim().length,s=2;return a<10?10*s:a>300?300*s:a*s},t0=(t,a,s)=>(a*=1+fs(t),Math.ceil(a*s)),a0=(t,a,s)=>{const r=s?1:on(t);return a<=0?a:Math.ceil(a*(r||1))},s0=t=>t.buffs.cooldown.work.reduce((a,{expireAt:s,startAt:r,multiplier:n})=>a+(new Date>=(r??new Date)&&(!s||!$e(s))?n:0),1),r0=t=>t.buffs.drop.work.reduce((a,{expireAt:s,startAt:r,multiplier:n})=>a+(new Date>=(r??new Date)&&(!s||!$e(s))?n:0),1),n0=t=>t.buffs.berry.work.reduce((a,{expireAt:s,startAt:r,multiplier:n})=>a+(new Date>=(r??new Date)&&(!s||!$e(s))?n:0),1),on=t=>t.buffs.berry.global.reduce((a,{expireAt:s,startAt:r,multiplier:n})=>a+(new Date>=(r??new Date)&&(!s||!$e(s))?n:0),1),i0=t=>t.buffs.cooldown.casino.reduce((a,{expireAt:s,startAt:r,multiplier:n})=>a+(new Date>=(r??new Date)&&(!s||!$e(s))?n:0),1),Be=async(t,a,s)=>{const r=a??await ut(t,{buffs:0,xp:0}),n=s??await ht(t,{itemList:0,equipmentList:0});return((us(r).vitality??0)+Va(n).vitality)*l.HP_PER_VITALITY+l.DEFAULT_MAX_HP},l0=Object.freeze(Object.defineProperty({__proto__:null,calcBerry:a0,calcBerryGlobalBuff:on,calcBerryWorkBuff:n0,calcCooldownCasinoBuff:i0,calcCooldownWorkBuff:s0,calcDropWorkBuff:r0,calcMessageXp:e0,calcXp:t0,calcXpBoost:fs,getBerryRank:async t=>(await Ue.aggregate([{$setWindowFields:{sortBy:{berry:-1},output:{rank:{$rank:{}}}}},{$match:{_id:t}},{$project:{rank:1}}]))[0],getGlobalRank:async t=>(await Ue.aggregate([{$setWindowFields:{sortBy:{"xp.amount":-1},output:{rank:{$rank:{}}}}},{$match:{_id:t}},{$project:{rank:1}}]))[0],getMaxHp:Be,getTotalCharacteristics:us,hasCharacteristicRequirement:async(t,a,s,r)=>{const n=s??await ut(t,{buffs:0,xp:0}),i=r??await ht(t,{itemList:0,equipmentList:0}),o=Qa(us(n),Va(i),(f,m)=>f+m);if("sum"in a){let f=0;for(const m of a.characteristics)f+=o[m]??0;return f>=a.sum}else{for(const f of Object.keys(a))if(o[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:r,expireAt:n}of a)if(s<0&&(!n||!$e(n))&&(r??new Date)<=new Date)return!0;return!1},isCooldownForXpPassed:Jm},Symbol.toStringTag,{value:"Module"})),cn=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},raid:{classic:{type:Date,default:new Date(0)},special:{type:Date,default:new Date(0)},christmas:{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)}}});cn.index({user:1});const pt=((ti=h.models)==null?void 0:ti.UserCooldown)||h.model("UserCooldown",cn),mt=async(t,a)=>{await pt.updateOne({user:t},a,{upsert:!0})},d0=async(t,a)=>{await mt(t,[{$set:{"raid.special":{$subtract:[{$ifNull:["$raid.special",new Date]},a*3600*1e3]},"raid.classic":{$subtract:[{$ifNull:["$raid.classic",new Date]},a*3600*1e3]},"raid.christmas":{$subtract:[{$ifNull:["$raid.christmas",new Date]},a*3600*1e3]}}}]),await Ga(t,"raid/special",-1*a*3600*1e3),await Ga(t,"raid/classic",-1*a*3600*1e3)},un=async(t,a,s,r)=>{await mt(t,{$set:{[`raid.${a}`]:new Date(Date.now()+s)}}),r.raid[a]&&await Ka(t,`raid/${a}`,new Date(Date.now()+s))},fn=async t=>{await mt(t,{$set:{lockUserCommand:new Date(Date.now()+2*3600*1e3)}}),await an(t,1,{})},o0=Object.freeze(Object.defineProperty({__proto__:null,lockUserCommand:fn,reduceRaidCooldown:d0,startRaidCooldown:un,useCommand:async(t,a,s,r)=>{await mt(t,{$set:{[`commands.${a}`]:new Date(Date.now()+s)}}),r.commands[a]&&await Ka(t,`commands/${a}`,new Date(Date.now()+s))}},Symbol.toStringTag,{value:"Module"})),c0=["work","rps","blackjack","guess","qod","dice"],hn=async t=>await pt.create({user:t}),u0=async(t,a={})=>{const s=await pt.findOne({user:t},a);return s||await hn(t)},hs=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},crew:{type:h.Schema.Types.ObjectId,ref:"Crew",required:!0,index:!0},permission:String,percent:Number,lastAllMembersDaily:{type:Date,default:new Date(0)}},{minimize:!1});hs.virtual("inventory",{ref:"Crew",localField:"crew",foreignField:"_id",justOne:!0}),hs.index({user:1});const Fe=((ai=h.models)==null?void 0:ai.UserCrew)||h.model("UserCrew",hs),ps=async(t,a)=>{await Fe.updateOne({user:t},a,{upsert:!0})},f0=async(t,a)=>{await ps(t,{$set:{percent:a}})},pn=async t=>{await ps(t,{$set:{lastAllMembersDaily:new Date}})},h0=Object.freeze(Object.defineProperty({__proto__:null,allMembersDailyComplete:pn,updatePercent:f0},Symbol.toStringTag,{value:"Module"})),mn=t=>Fe.findOne({user:t}),p0=async(t,a,s,r)=>await Fe.create({user:t,crew:a,percent:r,permission:s}),m0=t=>Fe.exists({user:t}),y0=async t=>{await Fe.deleteOne({user:t})},yn=new h.Schema({user:{type:h.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 Xt=((si=h.models)==null?void 0:si.UserDailyReport)||h.model("UserDailyReport",yn),gn=async(t,a)=>{await Xt.updateOne({user:t},a,{upsert:!0})},g0=Object.freeze(Object.defineProperty({__proto__:null,updateDailyReport:async(t,a)=>{await gn(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"})),wn=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},guess:{type:{tries:Number,amount:Number,numberToGuess:Number,lastGuess:Number},default:null}});wn.index({user:1});const yt=((ri=h.models)==null?void 0:ri.UserGames)||h.model("UserGames",wn),Zt=async(t,a)=>{await yt.updateOne({user:t},a,{upsert:!0})},w0=Object.freeze(Object.defineProperty({__proto__:null,resetGuessGame:async t=>{await Zt(t,{$set:{guess:null}})},setGuessGame:async(t,a,s,r)=>{await Zt(t,{$set:{guess:{amount:a,tries:s,numberToGuess:r,lastGuess:0}}})},updateGuessGame:async t=>{await Zt(t,{$inc:{"guess.tries":1},$set:{"guess.lastGuess":Date.now()}})}},Symbol.toStringTag,{value:"Module"})),_n=async t=>await yt.create({user:t}),_0=async(t,a)=>{const s=await yt.findOne({user:t},a);return s||await _n(t)},b0=async t=>{var s;const a=[];for(const r of Object.values(ss)){const n=new r;if((s=n.onUserOrnamentsUpdate)!=null&&s.call(n,t)){const i=await n.complete(t.user._id,{});i&&a.push([n,i])}}a.length>0&&se("userOrnamentsUpdate",t.user._id,a)},ms=new h.Schema({user:{type:h.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:[]},unlockedBags:{type:[String],default:["default"]},selectedBag:{type:String,default:"default"}});ms.index({user:1}),ms.post("findOneAndUpdate",async function(t){await b0(t)});const gt=((ni=h.models)==null?void 0:ni.UserOrnaments)||h.model("UserOrnaments",ms),W=async(t,a)=>{await gt.findOneAndUpdate({user:t},a,{upsert:!0,returnDocument:"after"})},ys=async(t,a)=>{await W(t,{$addToSet:{unlockedTitles:a}})},S0=async(t,a)=>{await W(t,{$addToSet:{unlockedTitles:{$each:a}}})},M0=async(t,a)=>{await W(t,{$set:{selectedTitle:a}})},bn=async(t,a)=>{await W(t,{$addToSet:{unlockedBackgrounds:a}})},v0=async(t,a)=>{await W(t,{$addToSet:{unlockedBackgrounds:{$each:a}}})},k0=async(t,a)=>{await W(t,{$set:{selectedBackground:a}})},Sn=async(t,a,s)=>{a.isProgressive?await W(t,{$addToSet:{unlockedBadges:`${a.id}_${s}`}}):await W(t,{$addToSet:{unlockedBadges:a.id}})},Mn=async(t,a)=>{await W(t,{$addToSet:{unlockedFactionBadges:{$each:[`b_marine_${a}`,`b_revolutionary_${a}`,`b_pirate_${a}`]}}})},vn=async(t,a)=>{await W(t,{$addToSet:{unlockedProfileAssets:a}})},R0=Object.freeze(Object.defineProperty({__proto__:null,selectBackground:k0,selectBag:async(t,a)=>{await W(t,{$set:{selectedBag:a}})},selectTitle:M0,unlockBackground:bn,unlockBackgrounds:v0,unlockBadge:Sn,unlockBag:async(t,a)=>{await W(t,{$addToSet:{unlockedBags:a}})},unlockFactionBadge:Mn,unlockProfileAsset:vn,unlockTitle:ys,unlockTitles:S0},Symbol.toStringTag,{value:"Module"})),kn=async t=>await gt.create({user:t}),C0=async(t,a)=>{const s=await gt.findOne({user:t},a);return s||await kn(t)},U0=async t=>{var s;const a=[];for(const r of Object.values(ns)){const n=new r;if((s=n.onUserQuestUpdate)!=null&&s.call(n,t)){const i=await n.complete(t.user._id,{_userQuest:t});i&&a.push([n,i])}}a.length>0&&se("userQuestUpdate",t.user._id,a)},gs=new h.Schema({user:{type:h.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});gs.index({user:1}),gs.post("findOneAndUpdate",async function(t){await U0(t)});const wt=((ii=h.models)==null?void 0:ii.UserQuest)||h.model("UserQuest",gs),_t=async(t,a)=>{await wt.findOneAndUpdate({user:t},a,{upsert:!0,returnDocument:"after"})},Rn=async(t,a)=>{await _t(t,{$addToSet:{completed:a}})},Cn=async(t,a)=>{await _t(t,[{$addFields:{[`daily.${a}`]:new Date}}])},Un=async(t,a)=>{Se(ja(),a)?await _t(t,{$inc:{streak:1},$set:{lastFullComplete:new Date}}):await _t(t,{$set:{lastFullComplete:new Date,streak:1}})},x0=Object.freeze(Object.defineProperty({__proto__:null,completeDailyQuest:Cn,completeQuest:Rn,updateStreak:Un},Symbol.toStringTag,{value:"Module"})),xn=async t=>await wt.create({user:t}),ws=async t=>{const a=await wt.findOne({user:t});return a||await xn(t)},bt=(t,a)=>{var s;return(s=t.unlocked)==null?void 0:s[a]},B0=Object.freeze(Object.defineProperty({__proto__:null,alreadyObtainedRaidReward:(t,a,s)=>a in t.obtainedRewards?t.obtainedRewards[a].includes(s):!1,fulfillCondition:(t,a,s,r)=>r==="include"?s.every(n=>(t.obtainedConditions[a]??[]).includes(n)):s.every(n=>!(t.obtainedConditions[a]??[]).includes(n)),getObtainedRaidReward:(t,a)=>t.obtainedRewards[a]??[],hasUnlockedRaid:bt},Symbol.toStringTag,{value:"Module"})),Bn=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},currentRaid:{type:{raidId:String,seed:String,progression:{type:[String],default:[]},buffItem:String,rewards:{type:Object,default:{}}},default:void 0},obtainedConditions:{type:Object,default:{}},obtainedRewards:{type:Object,default:{}},unlocked:{type:Object,default:{}}},{minimize:!1});Bn.index({user:1});const St=((li=h.models)==null?void 0:li.UserRaid)||h.model("UserRaid",Bn),Me=async(t,a)=>{await St.updateOne({user:t},a,{upsert:!0})},Mt=async(t,a)=>{await Me(t,{$set:{[`unlocked.${a}`]:!0}})},O0=Object.freeze(Object.defineProperty({__proto__:null,addRewardsToRaid:async(t,a)=>{await Me(t,{$inc:Object.fromEntries(Ha(a).filter(([s])=>s!=="title"&&s!=="condition").map(([s,r])=>[`currentRaid.rewards.${s}`,r])),...a.title?{$set:{"currentRaid.rewards.title":a.title}}:{}})},claimReward:async(t,a,s)=>{await Me(t,{$addToSet:{[`obtainedRewards.${a}`]:s}})},progressRaid:async(t,a)=>{await Me(t,{$push:{"currentRaid.progression":a}})},resetRaid:async t=>{await Me(t,{$unset:{currentRaid:""}})},resetRaidProgression:async t=>{await Me(t,{$set:{"currentRaid.progression":[]}})},startRaid:async(t,a,s,r,n,i)=>{const o=Date.now();return await Me(t,{$set:{currentRaid:{raidId:a,buffItem:s,seed:o,progression:[],rewards:{}}}}),await un(t,r,n,i),o},unlockRaid:Mt,updateCondition:async(t,a,s)=>{await Me(t,{$addToSet:{[`obtainedConditions.${a}`]:s}})}},Symbol.toStringTag,{value:"Module"})),On=async t=>await St.create({user:t}),_s=async t=>{const a=await St.findOne({user:t});return a||await On(t)},D0=Object.freeze(Object.defineProperty({__proto__:null,getShopItemRest:(t,a,s,r,n)=>{var f;if(S.isEquipmentId(a))return r;let i=S.getAllItemsLimit()[a];const o=(f=t.limit)==null?void 0:f[a];return n==="half"&&a==="chest_2"&&(i+=2),n==="full"&&a==="chest_3"&&(i+=1),i?t.lastShopId!==s?i:o?i-o:Math.min(i,r):r},isShopBuyLimitReached:(t,a,s,r)=>{var o;if(S.isEquipmentId(a))return!1;let n=S.getAllItemsLimit()[a];const i=(o=t.limit)==null?void 0:o[a];return r==="half"&&a==="chest_2"&&(n+=2),r==="full"&&a==="chest_3"&&(n+=1),t.lastShopId!==s?!1:!!(n&&i&&i>=n)}},Symbol.toStringTag,{value:"Module"})),Dn=new h.Schema({user:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"User"},lastShopId:{type:Number,default:0},limit:{type:Object,default:{}}},{minimize:!1});Dn.index({user:1});const Jt=((di=h.models)==null?void 0:di.UserShop)||h.model("UserShop",Dn),An=async(t,a)=>{await Jt.updateOne({user:t},a,{upsert:!0})},A0=Object.freeze(Object.defineProperty({__proto__:null,increaseShopBuyLimit:async(t,a,s,r)=>{await An(t,[{$set:{limit:{$cond:{if:{$eq:["$lastShopId",s]},then:{$mergeObjects:["$limit",{[a]:{$add:[{$ifNull:[`$limit.${a}`,0]},r]}}]},else:{[a]:r}}},lastShopId:s}}])}},Symbol.toStringTag,{value:"Module"})),X={localField:"_id",foreignField:"user",justOne:!0},T=new h.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},christmas:{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}}}}});T.virtual("inventory",{ref:"UserInventory",...X}),T.virtual("raid",{ref:"UserRaid",...X}),T.virtual("games",{ref:"UserGames",...X}),T.virtual("ornaments",{ref:"UserOrnaments",...X}),T.virtual("crew",{ref:"UserCrew",...X}),T.virtual("dailyReport",{ref:"UserDailyReport",...X}),T.virtual("shop",{ref:"UserShop",...X}),T.virtual("meta",{ref:"UserMeta",...X}),T.virtual("quest",{ref:"UserQuest",...X}),T.virtual("questMeta",{ref:"UserQuestMeta",...X}),T.virtual("cooldown",{ref:"UserCooldown",...X}),T.virtual("reminder",{ref:"Reminder",localField:"_id",foreignField:"user"}),T.virtual("encyclopedia",{ref:"UserEncyclopedia",...X}),T.index({userId:1}),T.post("deleteOne",async function(){const t=this.getQuery()._id;await ft.deleteOne({user:t}),await yt.deleteOne({user:t}),await gt.deleteOne({user:t}),await St.deleteOne({user:t}),await Fe.deleteOne({user:t}),await Xt.deleteOne({user:t}),await Jt.deleteOne({user:t}),await Ue.deleteOne({user:t}),await wt.deleteOne({user:t}),await oe.deleteOne({user:t}),await pt.deleteOne({user:t}),await dt.deleteOne({user:t})});const K=((oi=h.models)==null?void 0:oi.User)||h.model("User",T),N0=t=>K.create({userId:t}),ea=async(t,a={})=>{const s=await Nn({userId:t},a);return s||await N0(t)},Nn=(t,a={})=>K.findOne(t,a),$0=Object.freeze(Object.defineProperty({__proto__:null,getAllDailyReport:async()=>K.aggregate([{$match:{"settings.sendDailyReport":!0}},{$lookup:{from:"usermetas",localField:"_id",foreignField:"user",as:"meta"}},{$lookup:{from:"userdailyreports",localField:"_id",foreignField:"user",as:"dailyReport"}},{$match:{$and:[{$expr:{$gt:["$dailyReport.xpYesterday",0]}},{faction:{$ne:"citizen"}}]}}]),getBerryRanking:async()=>K.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:r,amount:n}=s,{unlockedBadges:i,unlockedBackgrounds:o,unlockedTitles:f}=t.ornaments,{previousOrnament:m,previousCompletedQuest:_,xpYesterday:B,berryYesterday:Y,previousMessageSent:H}=t.dailyReport;return{berry:a-Y,xp:n-B,message:t.questMeta.messageSent-H,voice:Se(r.lastConnection,ja())?r.minutesInVoiceToday:0,quest:Kt(t.quest.completed,_),badge:Kt(i,m.unlockedBadges),title:Kt(f,m.unlockedTitles),background:Kt(o,m.unlockedBackgrounds)}},getFactionRank:async(t,a)=>(await K.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=>K.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()=>K.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:()=>K.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()=>K.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:()=>K.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 ea(t,{birthday:1})},Symbol.toStringTag,{value:"Module"})),ve=async(t,a,s=!1)=>{await K.updateOne(t,a,{upsert:s})},$n=async(t,a)=>{await ve({_id:t},{$set:{canChooseFaction:a}})},En=async(t,a)=>{await ve({_id:t},{$set:{canChangeFaction:a}})},E0=Object.freeze(Object.defineProperty({__proto__:null,canChangeFaction:En,canChooseFaction:$n,removeBirthday:async t=>{await ve({userId:t},{$set:{birthday:null}})},setBirthday:async(t,a)=>{await ve({userId:t},{$set:{birthday:a}})},updateFaction:async(t,a)=>{await ve({_id:t},{$set:{faction:a}})},updateInventorySort:async(t,a)=>{await ve({_id:t},{$set:{"settings.sort.inventory":a}})},updateReminderSettings:async(t,a,s)=>{await ve({_id:t},{$set:{[`settings.reminder.${a}`]:s}})},updateSendDailyQuest:async(t,a)=>{await ve({userId:t},{$set:{"settings.sendDailyQuest":a}})},updateSendDailyReport:async(t,a)=>{await ve({userId:t},{$set:{"settings.sendDailyReport":a}})}},Symbol.toStringTag,{value:"Module"})),F0=async t=>{await K.deleteOne({userId:t})},I0=async t=>await Xt.create({user:t}),Y0=async t=>await oe.create({user:t}),L0=async t=>await Jt.create({user:t}),Fn=(t,a)=>{switch(t){case"dailyReport":return I0(a);case"games":return _n(a);case"inventory":return dn(a);case"meta":return en(a);case"raid":return On(a);case"ornaments":return kn(a);case"quest":return xn(a);case"questMeta":return Y0(a);case"shop":return L0(a);case"cooldown":return hn(a);case"reminder":return[];case"crew":return null;case"encyclopedia":return Qr(a)}},In=async(t,a,s)=>{if(Array.isArray(a)){const r=await t.populate(a);for(const n of a)r[n]||(r[n]=await Fn(n,t._id));return r}else{const r=await t.populate(a,s),n=r[a];return(!n||Array.isArray(n)&&n.length===0)&&(r[a]=await Fn(a,t._id)),r}},Yn=new h.Schema({warnedUserId:String,authorId:String,date:{type:Date,default:Date.now()},reason:{type:String,default:null}});Yn.index({warnedUserId:1});const Ve=((ci=h.models)==null?void 0:ci.Warns)||h.model("Warns",Yn),P0=Object.freeze(Object.defineProperty({__proto__:null,getUserWarnCount:async t=>await Ve.countDocuments({warnedUserId:t}),getUserWarns:async t=>await Ve.find({warnedUserId:t})},Symbol.toStringTag,{value:"Module"})),T0=async t=>await Ve.findOne({warnedUserId:t}),j0=async t=>await Ve.create({...t}),Q0=async t=>await Ve.findByIdAndDelete(t),H0=async t=>{var s;const a={};for(const r of Object.values(es)){const n=new r;for(const i of t.members){const o=await ea(i,{_id:1});if((s=n.onCrewUpdate)!=null&&s.call(n,t,o._id)){const f=await n.complete(o._id,{});if(f){const m=a[o.id];a[o.id]=m?[o._id,[...m[1],[n,f]]]:[o._id,[[n,f]]]}}}}Object.values(a).forEach(([r,n])=>{se("crewUpdate",r,n)})},q0={localField:"_id",foreignField:"crew",justOne:!0},ta=new h.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:{}},ornament:{unlockedBadges:[String]}},{timestamps:!0,minimize:!1});ta.index({"meta.xp":-1}),ta.virtual("quest",{ref:"CrewQuest",...q0}),ta.post("findOneAndUpdate",async function(t){await H0(t)});const ze=((ui=h.models)==null?void 0:ui.Crew)||h.model("Crew",ta),W0=(t,a)=>Math.ceil(a*(t.disintegration/100)*(Ln(t)||1)),Ln=t=>new Date>=(t.meta.buffs.xp.expireAt??new Date(0))?!1:t.meta.buffs.xp.boost,K0=Object.freeze(Object.defineProperty({__proto__:null,calcXp:W0,getCrewRank:async t=>(await ze.aggregate([{$setWindowFields:{sortBy:{"meta.xp":-1},output:{rank:{$rank:{}}}}},{$match:{_id:t._id}},{$project:{_id:1,"meta.xp":1,rank:1}}]))[0],getCrewRanking:async()=>ze.aggregate([{$sort:{"meta.xp":-1}},{$limit:10}]),hasXpBuff:Ln},Symbol.toStringTag,{value:"Module"})),ue=async(t,a)=>{await ze.findOneAndUpdate({_id:t},a,{returnDocument:"after"})},Pn=async(t,a,s)=>{a.isProgressive?await ue(t,{$addToSet:{"ornament.unlockedBadges":`${a.id}_${s}`}}):await ue(t,{$addToSet:{"ornament.unlockedBadges":a.id}})},G0=Object.freeze(Object.defineProperty({__proto__:null,addBerry:async(t,a,s)=>{await ue(t,{$inc:{"meta.berry":a,[`stats.${s.toHexString()}.berry`]:a}})},addMember:async(t,a)=>{await ue(t,{$addToSet:{members:a}})},addXp:async(t,a,s)=>{await ue(t,{$inc:{"meta.xp":a,[`stats.${s.toHexString()}.xp`]:a}})},addXpBuff:async(t,a)=>{await ue(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,r]=[a-2,(a-3)*2+3];await ue(t,[{$set:{disintegration:{$max:[{$add:["$disintegration",-1*Sr(s,r)]},0]}}}])},increaseLimit:async(t,a)=>{await ue(t,{$inc:{limit:1,"meta.berry":-a}})},removeMember:async(t,a,s)=>{await ue(t,{$pull:{members:a},$unset:{[`stats.${s}`]:1}})},repair:async(t,a)=>{await ue(t,[{$set:{disintegration:{$min:[{$add:["$disintegration",a]},100]}}}])},unlockBadge:Pn},Symbol.toStringTag,{value:"Module"})),V0=async(t,a={})=>{const s=await ze.findById(t,a);return s||null},z0=async(t,{name:a,description:s,channelId:r,faction:n})=>await ze.create({name:a,description:s,createdBy:t,channelId:r,faction:n,members:[t]}),Tn=(t,a)=>{for(const[,s]of Object.entries(t.daily??{}))if(!(s!=null&&s[a])||!Se(s[a],new Date))return!1;return!0},X0=Object.freeze(Object.defineProperty({__proto__:null,isAllDailyCompleted:Tn},Symbol.toStringTag,{value:"Module"})),Z0=async t=>{var r;const a={},{crew:s}=await t.populate("crew");for(const n of Object.values(Ja)){const i=new n;for(const o of s.members){const f=await ea(o,{_id:1,crew:1}).then(m=>In(m,"crew",{lastAllMembersDaily:1}));if(f.crew&&((r=i.onCrewQuestUpdate)!=null&&r.call(i,t,f.crew))){const m=await i.complete(f._id,{});if(m){const _=a[f.id];a[f.id]=_?[f._id,[..._[1],[i,m]]]:[f._id,[[i,m]]]}}}}Object.values(a).forEach(([n,i])=>{se("crewQuestUpdate",n,i)})},bs=new h.Schema({crew:{type:h.Schema.Types.ObjectId,required:!0,unique:!0,ref:"Crew"},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}}}},{minimize:!1});bs.index({crew:1}),bs.post("findOneAndUpdate",async function(t){await Z0(t)});const aa=((fi=h.models)==null?void 0:fi.CrewQuest)||h.model("CrewQuest",bs),sa=async(t,a)=>{await aa.findOneAndUpdate({crew:t},a,{upsert:!0,returnDocument:"after"})},jn=async(t,a)=>{await sa(t,{$addToSet:{completed:a}})},Qn=async(t,a,s)=>{await sa(t,[{$addFields:{[`daily.${a}.${s}`]:new Date}}])},J0=Object.freeze(Object.defineProperty({__proto__:null,completeDailyQuest:Qn,completeQuest:jn,setActualVoiceMembers:async(t,a)=>{await sa(t,{$set:{"meta.actualVoiceMembers.amount":a,"meta.actualVoiceMembers.connectedAt":new Date}})},setMaxVoiceMembers:async(t,a)=>{await sa(t,{$set:{"meta.maxVoiceMembers":a}})}},Symbol.toStringTag,{value:"Module"})),Ss=async t=>await aa.create({crew:t}),ey=async t=>{const a=await aa.findOne({crew:t});return a||await Ss(t)},Hn=(t,a)=>{switch(t){case"quest":return Ss(a)}},ty=async(t,a,s)=>{if(Array.isArray(a)){const r=await t.populate(a);for(const n of a)r[n]||(r[n]=await Hn(n,t._id));return r}else{const r=await t.populate(a,s),n=r[a];return(!n||Array.isArray(n)&&n.length===0)&&(r[a]=await Hn(a,t._id)),r}},ay=t=>{h.connect(t)};class sy extends h.Types.ObjectId{}c.ALL_QUESTS=zr,c.BET_MAX_VALUE=lu,c.BET_MIN_VALUE=iu,c.BackgroundShopItem=Ur,c.BoostXpShopItem=xr,c.BottleShopItem=Ar,c.COOLDOWN_COMMANDS=c0,c.ChestShopItem=Br,c.CrewQuestQuests=Ja,c.CrewQuests=es,c.EDITO_READ=du,c.EquipmentShopItem=Dr,c.ObjectId=sy,c.ObjectShopItem=Or,c.QUEST_ASSET_IMAGES=ou,c.Quest=d,c.RepairShopItem=Nr,c.StoreShopItem=$r,c.TitleShopItem=Er,c.UserDailyQuests=za,c.UserInventoryQuests=ts,c.UserMetaQuests=as,c.UserOrnamentsQuests=ss,c.UserQuestMetaQuests=rs,c.UserQuestQuests=ns,c.UserRepetableQuests=vt,c.banExists=_i,c.banGetters=mi,c.banModel=Ie,c.betModel=ia,c.completeCrewQuest=yu,c.completeDailyQuest=mu,c.completeRepeatableQuest=gu,c.connectToServices=ay,c.createBan=yi,c.createBet=Mi,c.createCrew=z0,c.createCrewQuest=Ss,c.createInvitations=ki,c.createReminder=Qc,c.createSettings=Cr,c.createUserCrew=p0,c.createWarn=j0,c.crewGetters=K0,c.crewModel=ze,c.crewQuestGetters=X0,c.crewQuestModel=aa,c.crewQuestUpdates=J0,c.crewUpdates=G0,c.deleteBan=wi,c.deleteInvitations=Ri,c.deleteUserById=F0,c.deleteUserCrewById=y0,c.deleteWarn=Q0,c.emitQuestEvent=se,c.emitRaidEvent=ot,c.finWarnById=T0,c.findBan=gi,c.findBetById=Si,c.findCrewById=V0,c.findCrewQuest=ey,c.findInvitations=vi,c.findReminder=jc,c.findSettingsByGuildId=Ac,c.findShop=Lr,c.findShopByType=Ic,c.findUser=Nn,c.findUserById=ea,c.findUserCooldown=u0,c.findUserCrew=mn,c.findUserEncyclopedia=Gc,c.findUserGames=_0,c.findUserInventory=ht,c.findUserMeta=ut,c.findUserOrnaments=C0,c.findUserQuest=ws,c.findUserRaid=_s,c.getBadgeEmojisFromId=pu,c.getQuestBadgeEmojis=hu,c.invitationsModel=kt,c.onQuestEvent=zc,c.onRaidEvent=um,c.populateCrew=ty,c.populateUser=In,c.questCanvas=nu,c.reminderGetters=Lc,c.reminderModel=Ee,c.reminderUpdates=Tc,c.settingsModel=Gt,c.settingsUpdates=Dc,c.shopGetters=Nc,c.shopModel=Vt,c.shopUpdates=Ec,c.updateUserCooldown=mt,c.updateUserCrew=ps,c.updateUserDailyReport=gn,c.updateUserEncyclopedia=jr,c.updateUserGames=Zt,c.updateUserInventory=ce,c.updateUserMeta=E,c.updateUserOrnaments=W,c.updateUserQuest=_t,c.updateUserQuestMeta=k,c.updateUserRaid=Me,c.updateUserShop=An,c.userCooldownGetters=Yc,c.userCooldownModel=pt,c.userCooldownUpdates=o0,c.userCrewExists=m0,c.userCrewModel=Fe,c.userCrewUpdates=h0,c.userDailyReportModel=Xt,c.userDailyReportUpdates=g0,c.userEncyclopediaGetters=Wc,c.userEncyclopediaModel=dt,c.userEncyclopediaUpdates=Kc,c.userGamesModel=yt,c.userGamesUpdates=w0,c.userGetters=$0,c.userInventoryGetters=qc,c.userInventoryModel=ft,c.userInventoryUpdates=Zm,c.userMetaGetters=l0,c.userMetaModel=Ue,c.userMetaUpdates=jm,c.userModel=K,c.userOrnamentsModel=gt,c.userOrnamentsUpdates=R0,c.userQuestGetters=fu,c.userQuestMetaModel=oe,c.userQuestMetaUpdates=Em,c.userQuestModel=wt,c.userQuestUpdates=x0,c.userRaidGetters=B0,c.userRaidModel=St,c.userRaidUpdates=O0,c.userShopGetters=D0,c.userShopModel=Jt,c.userShopUpdates=A0,c.userUpdates=E0,c.warnGetters=P0,c.warnModel=Ve,Object.defineProperty(c,Symbol.toStringTag,{value:"Module"})});
|