@opfr/quests 1.4.5 → 1.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "@napi-rs/canvas";
2
- import { userQuestService as Me, userOrnamentService as le, userInventoryService as We, userMetaService as v, userService as Xt, QUEST_MIDDLEWARE_EVENT_NAME as u, userStatsInventoryService as E, userStatsFlagsService as Ee, userStatsCasinoService as $, userStatsFrequencyService as fa, userStatsEngagementService as B, userStatsEconomyService as he, ornamentService as ai, registerQuestMiddlewareEvents as pa } from "@opfr/services";
2
+ import { userQuestService as Me, userOrnamentService as le, userInventoryService as Be, userMetaService as v, userService as Xt, QUEST_MIDDLEWARE_EVENT_NAME as u, userStatsInventoryService as E, userStatsFlagsService as Ee, userStatsCasinoService as $, userStatsFrequencyService as fa, userStatsEngagementService as B, userStatsEconomyService as he, ornamentService as ai, registerQuestMiddlewareEvents as pa } from "@opfr/services";
3
3
  import * as ma from "events";
4
4
  const me = (e, t) => (e.options = {
5
5
  ...e.options,
@@ -197,14 +197,14 @@ function ue(e, t, s) {
197
197
  var i = "" + Math.abs(e), a = t - i.length, r = e >= 0;
198
198
  return (r ? s ? "+" : "" : "-") + Math.pow(10, Math.max(0, a)).toString().substr(1) + i;
199
199
  }
200
- var hs = /(\[[^\[]*\])|(\\)?([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, gt = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, $t = {}, He = {};
200
+ var hs = /(\[[^\[]*\])|(\\)?([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, gt = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, $t = {}, je = {};
201
201
  function b(e, t, s, i) {
202
202
  var a = i;
203
203
  typeof i == "string" && (a = function() {
204
204
  return this[i]();
205
- }), e && (He[e] = a), t && (He[t[0]] = function() {
205
+ }), e && (je[e] = a), t && (je[t[0]] = function() {
206
206
  return ue(a.apply(this, arguments), t[1], t[2]);
207
- }), s && (He[s] = function() {
207
+ }), s && (je[s] = function() {
208
208
  return this.localeData().ordinal(
209
209
  a.apply(this, arguments),
210
210
  e
@@ -217,7 +217,7 @@ function xa(e) {
217
217
  function va(e) {
218
218
  var t = e.match(hs), s, i;
219
219
  for (s = 0, i = t.length; s < i; s++)
220
- He[t[s]] ? t[s] = He[t[s]] : t[s] = xa(t[s]);
220
+ je[t[s]] ? t[s] = je[t[s]] : t[s] = xa(t[s]);
221
221
  return function(a) {
222
222
  var r = "", n;
223
223
  for (n = 0; n < i; n++)
@@ -373,7 +373,7 @@ function Da(e) {
373
373
  return i.priority - a.priority;
374
374
  }), t;
375
375
  }
376
- var ci = /\d/, X = /\d\d/, ui = /\d{3}/, ps = /\d{4}/, Dt = /[+-]?\d{6}/, V = /\d\d?/, hi = /\d\d\d\d?/, fi = /\d\d\d\d\d\d?/, Yt = /\d{1,3}/, ms = /\d{1,4}/, Pt = /[+-]?\d{1,6}/, $e = /\d+/, Lt = /[+-]?\d+/, Ya = /Z|[+-]\d\d:?\d\d/gi, Vt = /Z|[+-]\d\d(?::?\d\d)?/gi, Pa = /[+-]?\d+(\.\d{1,3})?/, ht = /[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, ze = /^[1-9]\d?/, gs = /^([1-9]\d|\d)/, wt;
376
+ var ci = /\d/, X = /\d\d/, ui = /\d{3}/, ps = /\d{4}/, Dt = /[+-]?\d{6}/, V = /\d\d?/, hi = /\d\d\d\d?/, fi = /\d\d\d\d\d\d?/, Yt = /\d{1,3}/, ms = /\d{1,4}/, Pt = /[+-]?\d{1,6}/, We = /\d+/, Lt = /[+-]?\d+/, Ya = /Z|[+-]\d\d:?\d\d/gi, Vt = /Z|[+-]\d\d(?::?\d\d)?/gi, Pa = /[+-]?\d+(\.\d{1,3})?/, ht = /[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, $e = /^[1-9]\d?/, gs = /^([1-9]\d|\d)/, wt;
377
377
  wt = {};
378
378
  function S(e, t, s) {
379
379
  wt[e] = pe(t) ? t : function(i, a) {
@@ -454,11 +454,11 @@ function it(e) {
454
454
  y.parseTwoDigitYear = function(e) {
455
455
  return k(e) + (k(e) > 68 ? 1900 : 2e3);
456
456
  };
457
- var pi = Qe("FullYear", !0);
457
+ var pi = ze("FullYear", !0);
458
458
  function Ha() {
459
459
  return Ut(this.year());
460
460
  }
461
- function Qe(e, t) {
461
+ function ze(e, t) {
462
462
  return function(s) {
463
463
  return s != null ? (mi(this, e, s), y.updateOffset(this, t), this) : rt(this, e);
464
464
  };
@@ -554,7 +554,7 @@ b("MMM", 0, 0, function(e) {
554
554
  b("MMMM", 0, 0, function(e) {
555
555
  return this.localeData().months(this, e);
556
556
  });
557
- S("M", V, ze);
557
+ S("M", V, $e);
558
558
  S("MM", V, X);
559
559
  S("MMM", function(e, t) {
560
560
  return t.monthsShortRegex(e);
@@ -678,9 +678,9 @@ function xe(e, t, s) {
678
678
  }
679
679
  b("w", ["ww", 2], "wo", "week");
680
680
  b("W", ["WW", 2], "Wo", "isoWeek");
681
- S("w", V, ze);
681
+ S("w", V, $e);
682
682
  S("ww", V, X);
683
- S("W", V, ze);
683
+ S("W", V, $e);
684
684
  S("WW", V, X);
685
685
  ft(
686
686
  ["w", "ww", "W", "WW"],
@@ -885,8 +885,8 @@ function wi(e, t) {
885
885
  S("a", wi);
886
886
  S("A", wi);
887
887
  S("H", V, gs);
888
- S("h", V, ze);
889
- S("k", V, ze);
888
+ S("h", V, $e);
889
+ S("k", V, $e);
890
890
  S("HH", V, X);
891
891
  S("hh", V, X);
892
892
  S("kk", V, X);
@@ -924,7 +924,7 @@ P("Hmmss", function(e, t, s) {
924
924
  function Or(e) {
925
925
  return (e + "").toLowerCase().charAt(0) === "p";
926
926
  }
927
- var Rr = /[ap]\.?m?\.?/i, Ir = Qe("Hours", !0);
927
+ var Rr = /[ap]\.?m?\.?/i, Ir = ze("Hours", !0);
928
928
  function Cr(e, t, s) {
929
929
  return e > 11 ? s ? "pm" : "PM" : s ? "am" : "AM";
930
930
  }
@@ -942,7 +942,7 @@ var Ti = {
942
942
  weekdaysMin: hr,
943
943
  weekdaysShort: vi,
944
944
  meridiemParse: Rr
945
- }, F = {}, et = {}, dt;
945
+ }, F = {}, Xe = {}, dt;
946
946
  function Ar(e, t) {
947
947
  var s, i = Math.min(e.length, t.length);
948
948
  for (s = 0; s < i; s += 1)
@@ -999,11 +999,11 @@ function xs(e, t) {
999
999
  else if (s = Ft(t.parentLocale), s != null)
1000
1000
  i = s._config;
1001
1001
  else
1002
- return et[t.parentLocale] || (et[t.parentLocale] = []), et[t.parentLocale].push({
1002
+ return Xe[t.parentLocale] || (Xe[t.parentLocale] = []), Xe[t.parentLocale].push({
1003
1003
  name: e,
1004
1004
  config: t
1005
1005
  }), null;
1006
- return F[e] = new us(ts(i, t)), et[e] && et[e].forEach(function(a) {
1006
+ return F[e] = new us(ts(i, t)), Xe[e] && Xe[e].forEach(function(a) {
1007
1007
  xs(a.name, a.config);
1008
1008
  }), Re(e), F[e];
1009
1009
  } else
@@ -1184,7 +1184,7 @@ y.createFromInputFallback = te(
1184
1184
  e._d = /* @__PURE__ */ new Date(e._i + (e._useUTC ? " UTC" : ""));
1185
1185
  }
1186
1186
  );
1187
- function Fe(e, t, s) {
1187
+ function Ue(e, t, s) {
1188
1188
  return e ?? t ?? s;
1189
1189
  }
1190
1190
  function qr(e) {
@@ -1198,7 +1198,7 @@ function qr(e) {
1198
1198
  function Es(e) {
1199
1199
  var t, s, i = [], a, r, n;
1200
1200
  if (!e._d) {
1201
- for (a = qr(e), e._w && e._a[de] == null && e._a[ye] == null && Kr(e), e._dayOfYear != null && (n = Fe(e._a[z], a[z]), (e._dayOfYear > it(n) || e._dayOfYear === 0) && (M(e)._overflowDayOfYear = !0), s = nt(n, 0, e._dayOfYear), e._a[ye] = s.getUTCMonth(), e._a[de] = s.getUTCDate()), t = 0; t < 3 && e._a[t] == null; ++t)
1201
+ for (a = qr(e), e._w && e._a[de] == null && e._a[ye] == null && Kr(e), e._dayOfYear != null && (n = Ue(e._a[z], a[z]), (e._dayOfYear > it(n) || e._dayOfYear === 0) && (M(e)._overflowDayOfYear = !0), s = nt(n, 0, e._dayOfYear), e._a[ye] = s.getUTCMonth(), e._a[de] = s.getUTCDate()), t = 0; t < 3 && e._a[t] == null; ++t)
1202
1202
  e._a[t] = i[t] = a[t];
1203
1203
  for (; t < 7; t++)
1204
1204
  e._a[t] = i[t] = e._a[t] == null ? t === 2 ? 1 : 0 : e._a[t];
@@ -1210,11 +1210,11 @@ function Es(e) {
1210
1210
  }
1211
1211
  function Kr(e) {
1212
1212
  var t, s, i, a, r, n, o, c, h;
1213
- t = e._w, t.GG != null || t.W != null || t.E != null ? (r = 1, n = 4, s = Fe(
1213
+ t = e._w, t.GG != null || t.W != null || t.E != null ? (r = 1, n = 4, s = Ue(
1214
1214
  t.GG,
1215
1215
  e._a[z],
1216
1216
  ot(L(), 1, 4).year
1217
- ), i = Fe(t.W, 1), a = Fe(t.E, 1), (a < 1 || a > 7) && (c = !0)) : (r = e._locale._week.dow, n = e._locale._week.doy, h = ot(L(), r, n), s = Fe(t.gg, e._a[z], h.year), i = Fe(t.w, h.week), t.d != null ? (a = t.d, (a < 0 || a > 6) && (c = !0)) : t.e != null ? (a = t.e + r, (t.e < 0 || t.e > 6) && (c = !0)) : a = r), i < 1 || i > xe(s, r, n) ? M(e)._overflowWeeks = !0 : c != null ? M(e)._overflowWeekday = !0 : (o = xi(s, i, a, r, n), e._a[z] = o.year, e._dayOfYear = o.dayOfYear);
1217
+ ), i = Ue(t.W, 1), a = Ue(t.E, 1), (a < 1 || a > 7) && (c = !0)) : (r = e._locale._week.dow, n = e._locale._week.doy, h = ot(L(), r, n), s = Ue(t.gg, e._a[z], h.year), i = Ue(t.w, h.week), t.d != null ? (a = t.d, (a < 0 || a > 6) && (c = !0)) : t.e != null ? (a = t.e + r, (t.e < 0 || t.e > 6) && (c = !0)) : a = r), i < 1 || i > xe(s, r, n) ? M(e)._overflowWeeks = !0 : c != null ? M(e)._overflowWeekday = !0 : (o = xi(s, i, a, r, n), e._a[z] = o.year, e._dayOfYear = o.dayOfYear);
1218
1218
  }
1219
1219
  y.ISO_8601 = function() {
1220
1220
  };
@@ -1234,7 +1234,7 @@ function ws(e) {
1234
1234
  for (a = li(e._f, e._locale).match(hs) || [], p = a.length, s = 0; s < p; s++)
1235
1235
  r = a[s], i = (t.match(La(r, e)) || [])[0], i && (n = t.substr(0, t.indexOf(i)), n.length > 0 && M(e).unusedInput.push(n), t = t.slice(
1236
1236
  t.indexOf(i) + i.length
1237
- ), c += i.length), He[r] ? (i ? M(e).empty = !1 : M(e).unusedTokens.push(r), Ua(r, i, e)) : e._strict && !i && M(e).unusedTokens.push(r);
1237
+ ), c += i.length), je[r] ? (i ? M(e).empty = !1 : M(e).unusedTokens.push(r), Ua(r, i, e)) : e._strict && !i && M(e).unusedTokens.push(r);
1238
1238
  M(e).charsLeftOver = o - c, t.length > 0 && M(e).unusedInput.push(t), e._a[W] <= 12 && M(e).bigHour === !0 && e._a[W] > 0 && (M(e).bigHour = void 0), M(e).parsedDateParts = e._a.slice(0), M(e).meridiem = e._meridiem, e._a[W] = Jr(
1239
1239
  e._locale,
1240
1240
  e._a[W],
@@ -1318,7 +1318,7 @@ function nn() {
1318
1318
  }
1319
1319
  var on = function() {
1320
1320
  return Date.now ? Date.now() : +/* @__PURE__ */ new Date();
1321
- }, tt = [
1321
+ }, et = [
1322
1322
  "year",
1323
1323
  "quarter",
1324
1324
  "month",
@@ -1330,15 +1330,15 @@ var on = function() {
1330
1330
  "millisecond"
1331
1331
  ];
1332
1332
  function dn(e) {
1333
- var t, s = !1, i, a = tt.length;
1333
+ var t, s = !1, i, a = et.length;
1334
1334
  for (t in e)
1335
- if (C(e, t) && !(G.call(tt, t) !== -1 && (e[t] == null || !isNaN(e[t]))))
1335
+ if (C(e, t) && !(G.call(et, t) !== -1 && (e[t] == null || !isNaN(e[t]))))
1336
1336
  return !1;
1337
1337
  for (i = 0; i < a; ++i)
1338
- if (e[tt[i]]) {
1338
+ if (e[et[i]]) {
1339
1339
  if (s)
1340
1340
  return !1;
1341
- parseFloat(e[tt[i]]) !== k(e[tt[i]]) && (s = !0);
1341
+ parseFloat(e[et[i]]) !== k(e[et[i]]) && (s = !0);
1342
1342
  }
1343
1343
  return !0;
1344
1344
  }
@@ -1698,8 +1698,8 @@ var Li = te(
1698
1698
  function Vi() {
1699
1699
  return this._locale;
1700
1700
  }
1701
- var Mt = 1e3, Ge = 60 * Mt, kt = 60 * Ge, Ui = (365 * 400 + 97) * 24 * kt;
1702
- function Be(e, t) {
1701
+ var Mt = 1e3, He = 60 * Mt, kt = 60 * He, Ui = (365 * 400 + 97) * 24 * kt;
1702
+ function Ge(e, t) {
1703
1703
  return (e % t + t) % t;
1704
1704
  }
1705
1705
  function Fi(e, t, s) {
@@ -1745,16 +1745,16 @@ function Kn(e) {
1745
1745
  t = s(this.year(), this.month(), this.date());
1746
1746
  break;
1747
1747
  case "hour":
1748
- t = this._d.valueOf(), t -= Be(
1749
- t + (this._isUTC ? 0 : this.utcOffset() * Ge),
1748
+ t = this._d.valueOf(), t -= Ge(
1749
+ t + (this._isUTC ? 0 : this.utcOffset() * He),
1750
1750
  kt
1751
1751
  );
1752
1752
  break;
1753
1753
  case "minute":
1754
- t = this._d.valueOf(), t -= Be(t, Ge);
1754
+ t = this._d.valueOf(), t -= Ge(t, He);
1755
1755
  break;
1756
1756
  case "second":
1757
- t = this._d.valueOf(), t -= Be(t, Mt);
1757
+ t = this._d.valueOf(), t -= Ge(t, Mt);
1758
1758
  break;
1759
1759
  }
1760
1760
  return this._d.setTime(t), y.updateOffset(this, !0), this;
@@ -1796,16 +1796,16 @@ function Jn(e) {
1796
1796
  t = s(this.year(), this.month(), this.date() + 1) - 1;
1797
1797
  break;
1798
1798
  case "hour":
1799
- t = this._d.valueOf(), t += kt - Be(
1800
- t + (this._isUTC ? 0 : this.utcOffset() * Ge),
1799
+ t = this._d.valueOf(), t += kt - Ge(
1800
+ t + (this._isUTC ? 0 : this.utcOffset() * He),
1801
1801
  kt
1802
1802
  ) - 1;
1803
1803
  break;
1804
1804
  case "minute":
1805
- t = this._d.valueOf(), t += Ge - Be(t, Ge) - 1;
1805
+ t = this._d.valueOf(), t += He - Ge(t, He) - 1;
1806
1806
  break;
1807
1807
  case "second":
1808
- t = this._d.valueOf(), t += Mt - Be(t, Mt) - 1;
1808
+ t = this._d.valueOf(), t += Mt - Ge(t, Mt) - 1;
1809
1809
  break;
1810
1810
  }
1811
1811
  return this._d.setTime(t), y.updateOffset(this, !0), this;
@@ -1885,10 +1885,10 @@ P(
1885
1885
  a ? M(s).era = a : M(s).invalidEra = e;
1886
1886
  }
1887
1887
  );
1888
- S("y", $e);
1889
- S("yy", $e);
1890
- S("yyy", $e);
1891
- S("yyyy", $e);
1888
+ S("y", We);
1889
+ S("yy", We);
1890
+ S("yyy", We);
1891
+ S("yyyy", We);
1892
1892
  S("yo", xo);
1893
1893
  P(["y", "yy", "yyy", "yyyy"], z);
1894
1894
  P(["yo"], function(e, t, s, i) {
@@ -1982,7 +1982,7 @@ function bo(e, t) {
1982
1982
  return t.erasNarrowRegex(e);
1983
1983
  }
1984
1984
  function xo(e, t) {
1985
- return t._eraYearOrdinalRegex || $e;
1985
+ return t._eraYearOrdinalRegex || We;
1986
1986
  }
1987
1987
  function Os() {
1988
1988
  var e = [], t = [], s = [], i = [], a, r, n, o, c, h = this.eras();
@@ -2074,7 +2074,7 @@ function Ro(e) {
2074
2074
  return e == null ? Math.ceil((this.month() + 1) / 3) : this.month((e - 1) * 3 + this.month() % 3);
2075
2075
  }
2076
2076
  b("D", ["DD", 2], "Do", "date");
2077
- S("D", V, ze);
2077
+ S("D", V, $e);
2078
2078
  S("DD", V, X);
2079
2079
  S("Do", function(e, t) {
2080
2080
  return e ? t._dayOfMonthOrdinalParse || t._ordinalParse : t._dayOfMonthOrdinalParseLenient;
@@ -2083,7 +2083,7 @@ P(["D", "DD"], de);
2083
2083
  P("Do", function(e, t) {
2084
2084
  t[de] = k(e.match(V)[0]);
2085
2085
  });
2086
- var Gi = Qe("Date", !0);
2086
+ var Gi = ze("Date", !0);
2087
2087
  b("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
2088
2088
  S("DDD", Yt);
2089
2089
  S("DDDD", ui);
@@ -2100,12 +2100,12 @@ b("m", ["mm", 2], 0, "minute");
2100
2100
  S("m", V, gs);
2101
2101
  S("mm", V, X);
2102
2102
  P(["m", "mm"], ae);
2103
- var Co = Qe("Minutes", !1);
2103
+ var Co = ze("Minutes", !1);
2104
2104
  b("s", ["ss", 2], 0, "second");
2105
2105
  S("s", V, gs);
2106
2106
  S("ss", V, X);
2107
2107
  P(["s", "ss"], Se);
2108
- var Ao = Qe("Seconds", !1);
2108
+ var Ao = ze("Seconds", !1);
2109
2109
  b("S", 0, 0, function() {
2110
2110
  return ~~(this.millisecond() / 100);
2111
2111
  });
@@ -2136,13 +2136,13 @@ S("SS", Yt, X);
2136
2136
  S("SSS", Yt, ui);
2137
2137
  var Oe, Bi;
2138
2138
  for (Oe = "SSSS"; Oe.length <= 9; Oe += "S")
2139
- S(Oe, $e);
2139
+ S(Oe, We);
2140
2140
  function No(e, t) {
2141
2141
  t[Ne] = k(("0." + e) * 1e3);
2142
2142
  }
2143
2143
  for (Oe = "S"; Oe.length <= 9; Oe += "S")
2144
2144
  P(Oe, No);
2145
- Bi = Qe("Milliseconds", !1);
2145
+ Bi = ze("Milliseconds", !1);
2146
2146
  b("z", 0, 0, "zoneAbbr");
2147
2147
  b("zz", 0, 0, "zoneName");
2148
2148
  function Do() {
@@ -2443,7 +2443,7 @@ var rd = Ye("milliseconds"), nd = Ye("seconds"), od = Ye("minutes"), dd = Ye("ho
2443
2443
  function hd() {
2444
2444
  return ee(this.days() / 7);
2445
2445
  }
2446
- var _e = Math.round, je = {
2446
+ var _e = Math.round, Fe = {
2447
2447
  ss: 44,
2448
2448
  // a few seconds to seconds
2449
2449
  s: 45,
@@ -2470,13 +2470,13 @@ function md(e) {
2470
2470
  return e === void 0 ? _e : typeof e == "function" ? (_e = e, !0) : !1;
2471
2471
  }
2472
2472
  function gd(e, t) {
2473
- return je[e] === void 0 ? !1 : t === void 0 ? je[e] : (je[e] = t, e === "s" && (je.ss = t - 1), !0);
2473
+ return Fe[e] === void 0 ? !1 : t === void 0 ? Fe[e] : (Fe[e] = t, e === "s" && (Fe.ss = t - 1), !0);
2474
2474
  }
2475
2475
  function _d(e, t) {
2476
2476
  if (!this.isValid())
2477
2477
  return this.localeData().invalidDate();
2478
- var s = !1, i = je, a, r;
2479
- return typeof e == "object" && (t = e, e = !1), typeof e == "boolean" && (s = e), typeof t == "object" && (i = Object.assign({}, je, t), t.s != null && t.ss == null && (i.ss = t.s - 1)), a = this.localeData(), r = pd(this, !s, i, a), s && (r = a.pastFuture(+this, r)), a.postformat(r);
2478
+ var s = !1, i = Fe, a, r;
2479
+ return typeof e == "object" && (t = e, e = !1), typeof e == "boolean" && (s = e), typeof t == "object" && (i = Object.assign({}, Fe, t), t.s != null && t.ss == null && (i.ss = t.s - 1)), a = this.localeData(), r = pd(this, !s, i, a), s && (r = a.pastFuture(+this, r)), a.postformat(r);
2480
2480
  }
2481
2481
  var Qt = Math.abs;
2482
2482
  function Pe(e) {
@@ -2671,7 +2671,7 @@ const yd = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octob
2671
2671
  };
2672
2672
  y.locale("fr", bd);
2673
2673
  Ae.TOP_LEFT;
2674
- const w = (e) => typeof e == "string", st = () => {
2674
+ const w = (e) => typeof e == "string", tt = () => {
2675
2675
  let e, t;
2676
2676
  const s = new Promise((i, a) => {
2677
2677
  e = i, t = a;
@@ -3028,8 +3028,8 @@ class At extends Bt {
3028
3028
  }
3029
3029
  const _ = this.resolve(t, s);
3030
3030
  let f = _ && _.res;
3031
- const x = _ && _.usedKey || n, R = _ && _.exactUsedKey || n, U = Object.prototype.toString.apply(f), Y = ["[object Number]", "[object Function]", "[object RegExp]"], N = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, I = !this.i18nFormat || this.i18nFormat.handleAsObject, qe = !w(f) && typeof f != "boolean" && typeof f != "number";
3032
- if (I && f && qe && Y.indexOf(U) < 0 && !(w(N) && Array.isArray(f))) {
3031
+ const x = _ && _.usedKey || n, R = _ && _.exactUsedKey || n, U = Object.prototype.toString.apply(f), Y = ["[object Number]", "[object Function]", "[object RegExp]"], N = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, I = !this.i18nFormat || this.i18nFormat.handleAsObject, Qe = !w(f) && typeof f != "boolean" && typeof f != "number";
3032
+ if (I && f && Qe && Y.indexOf(U) < 0 && !(w(N) && Array.isArray(f))) {
3033
3033
  if (!s.returnObjects && !this.options.returnObjects) {
3034
3034
  this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
3035
3035
  const H = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(x, f, {
@@ -3057,33 +3057,33 @@ class At extends Bt {
3057
3057
  let H = !1, J = !1;
3058
3058
  const ie = s.count !== void 0 && !w(s.count), Q = At.hasDefaultValue(s), pt = ie ? this.pluralResolver.getSuffix(h, s.count, s) : "", ua = s.ordinal && ie ? this.pluralResolver.getSuffix(h, s.count, {
3059
3059
  ordinal: !1
3060
- }) : "", Ys = ie && !s.ordinal && s.count === 0 && this.pluralResolver.shouldUseIntlApi(), Ke = Ys && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${pt}`] || s[`defaultValue${ua}`] || s.defaultValue;
3061
- !this.isValidLookup(f) && Q && (H = !0, f = Ke), this.isValidLookup(f) || (J = !0, f = n);
3062
- const ha = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && J ? void 0 : f, Je = Q && Ke !== f && this.options.updateMissing;
3063
- if (J || H || Je) {
3064
- if (this.logger.log(Je ? "updateKey" : "missingKey", h, c, n, Je ? Ke : f), r) {
3060
+ }) : "", Ys = ie && !s.ordinal && s.count === 0 && this.pluralResolver.shouldUseIntlApi(), qe = Ys && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${pt}`] || s[`defaultValue${ua}`] || s.defaultValue;
3061
+ !this.isValidLookup(f) && Q && (H = !0, f = qe), this.isValidLookup(f) || (J = !0, f = n);
3062
+ const ha = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && J ? void 0 : f, Ke = Q && qe !== f && this.options.updateMissing;
3063
+ if (J || H || Ke) {
3064
+ if (this.logger.log(Ke ? "updateKey" : "missingKey", h, c, n, Ke ? qe : f), r) {
3065
3065
  const Z = this.resolve(n, {
3066
3066
  ...s,
3067
3067
  keySeparator: !1
3068
3068
  });
3069
3069
  Z && Z.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
3070
3070
  }
3071
- let Ze = [];
3071
+ let Je = [];
3072
3072
  const mt = this.languageUtils.getFallbackCodes(this.options.fallbackLng, s.lng || this.language);
3073
3073
  if (this.options.saveMissingTo === "fallback" && mt && mt[0])
3074
3074
  for (let Z = 0; Z < mt.length; Z++)
3075
- Ze.push(mt[Z]);
3076
- else this.options.saveMissingTo === "all" ? Ze = this.languageUtils.toResolveHierarchy(s.lng || this.language) : Ze.push(s.lng || this.language);
3077
- const Ps = (Z, Ie, Xe) => {
3078
- const Ls = Q && Xe !== f ? Xe : ha;
3079
- this.options.missingKeyHandler ? this.options.missingKeyHandler(Z, c, Ie, Ls, Je, s) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(Z, c, Ie, Ls, Je, s), this.emit("missingKey", Z, c, Ie, f);
3075
+ Je.push(mt[Z]);
3076
+ else this.options.saveMissingTo === "all" ? Je = this.languageUtils.toResolveHierarchy(s.lng || this.language) : Je.push(s.lng || this.language);
3077
+ const Ps = (Z, Ie, Ze) => {
3078
+ const Ls = Q && Ze !== f ? Ze : ha;
3079
+ this.options.missingKeyHandler ? this.options.missingKeyHandler(Z, c, Ie, Ls, Ke, s) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(Z, c, Ie, Ls, Ke, s), this.emit("missingKey", Z, c, Ie, f);
3080
3080
  };
3081
- this.options.saveMissing && (this.options.saveMissingPlurals && ie ? Ze.forEach((Z) => {
3081
+ this.options.saveMissing && (this.options.saveMissingPlurals && ie ? Je.forEach((Z) => {
3082
3082
  const Ie = this.pluralResolver.getSuffixes(Z, s);
3083
- Ys && s[`defaultValue${this.options.pluralSeparator}zero`] && Ie.indexOf(`${this.options.pluralSeparator}zero`) < 0 && Ie.push(`${this.options.pluralSeparator}zero`), Ie.forEach((Xe) => {
3084
- Ps([Z], n + Xe, s[`defaultValue${Xe}`] || Ke);
3083
+ Ys && s[`defaultValue${this.options.pluralSeparator}zero`] && Ie.indexOf(`${this.options.pluralSeparator}zero`) < 0 && Ie.push(`${this.options.pluralSeparator}zero`), Ie.forEach((Ze) => {
3084
+ Ps([Z], n + Ze, s[`defaultValue${Ze}`] || qe);
3085
3085
  });
3086
- }) : Ps(Ze, n, Ke));
3086
+ }) : Ps(Je, n, qe));
3087
3087
  }
3088
3088
  f = this.extendTranslation(f, t, s, _, i), J && f === n && this.options.appendNamespaceToMissingKey && (f = `${c}:${n}`), (J || H) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? f = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${c}:${n}` : n, H ? f : void 0) : f = this.options.parseMissingKeyHandler(f));
3089
3089
  }
@@ -3160,9 +3160,9 @@ class At extends Bt {
3160
3160
  I.push(Q), f && (I.push(Q + H), s.ordinal && H.indexOf(ie) === 0 && I.push(Q + H.replace(ie, this.options.pluralSeparator)), x && I.push(Q + J));
3161
3161
  }
3162
3162
  }
3163
- let qe;
3164
- for (; qe = I.pop(); )
3165
- this.isValidLookup(i) || (r = qe, i = this.getResource(N, Y, qe, s));
3163
+ let Qe;
3164
+ for (; Qe = I.pop(); )
3165
+ this.isValidLookup(i) || (r = Qe, i = this.getResource(N, Y, Qe, s));
3166
3166
  }));
3167
3167
  });
3168
3168
  }), {
@@ -3972,7 +3972,7 @@ class lt extends Bt {
3972
3972
  return t.store[p](...arguments), t;
3973
3973
  };
3974
3974
  });
3975
- const c = st(), h = () => {
3975
+ const c = tt(), h = () => {
3976
3976
  const p = (_, f) => {
3977
3977
  this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), c.resolve(f), i(_, f);
3978
3978
  };
@@ -3999,7 +3999,7 @@ class lt extends Bt {
3999
3999
  i(null);
4000
4000
  }
4001
4001
  reloadResources(t, s, i) {
4002
- const a = st();
4002
+ const a = tt();
4003
4003
  return typeof t == "function" && (i = t, t = void 0), typeof s == "function" && (i = s, s = void 0), t || (t = this.languages), s || (s = this.options.ns), i || (i = yt), this.services.backendConnector.reload(t, s, (r) => {
4004
4004
  a.resolve(), i(r);
4005
4005
  }), a;
@@ -4022,7 +4022,7 @@ class lt extends Bt {
4022
4022
  changeLanguage(t, s) {
4023
4023
  var i = this;
4024
4024
  this.isLanguageChangingTo = t;
4025
- const a = st();
4025
+ const a = tt();
4026
4026
  this.emit("languageChanging", t);
4027
4027
  const r = (c) => {
4028
4028
  this.language = c, this.languages = this.services.languageUtils.toResolveHierarchy(c), this.resolvedLanguage = void 0, this.setResolvedLanguage(c);
@@ -4088,7 +4088,7 @@ class lt extends Bt {
4088
4088
  return !!(this.hasResourceBundle(i, t) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || n(i, t) && (!a || n(r, t)));
4089
4089
  }
4090
4090
  loadNamespaces(t, s) {
4091
- const i = st();
4091
+ const i = tt();
4092
4092
  return this.options.ns ? (w(t) && (t = [t]), t.forEach((a) => {
4093
4093
  this.options.ns.indexOf(a) < 0 && this.options.ns.push(a);
4094
4094
  }), this.loadResources((a) => {
@@ -4096,7 +4096,7 @@ class lt extends Bt {
4096
4096
  }), i) : (s && s(), Promise.resolve());
4097
4097
  }
4098
4098
  loadLanguages(t, s) {
4099
- const i = st();
4099
+ const i = tt();
4100
4100
  w(t) && (t = [t]);
4101
4101
  const a = this.options.preload || [], r = t.filter((n) => a.indexOf(n) < 0 && this.services.languageUtils.isSupportedCode(n));
4102
4102
  return r.length ? (this.options.preload = a.concat(r), this.loadResources((n) => {
@@ -4155,26 +4155,20 @@ q.reloadResources;
4155
4155
  q.use;
4156
4156
  q.changeLanguage;
4157
4157
  q.getFixedT;
4158
- const Ue = q.t;
4158
+ const st = q.t;
4159
4159
  q.exists;
4160
4160
  q.setDefaultNamespace;
4161
4161
  q.hasLoadedNamespace;
4162
4162
  q.loadNamespaces;
4163
4163
  q.loadLanguages;
4164
- var g = /* @__PURE__ */ ((e) => (e.BASIC = "BASIC", e.COMMON = "COMMON", e.RARE = "RARE", e.EPIC = "EPIC", e.LEGENDARY = "LEGENDARY", e.MYTHIC = "MYTHIC", e))(g || {});
4164
+ var g = /* @__PURE__ */ ((e) => (e.COMMON = "COMMON", e.RARE = "RARE", e.EPIC = "EPIC", e.LEGENDARY = "LEGENDARY", e.MYTHIC = "MYTHIC", e))(g || {});
4165
4165
  g.COMMON, g.RARE, g.EPIC, g.LEGENDARY, g.MYTHIC;
4166
4166
  const d = {
4167
- BASIC: {
4168
- color: "#fff",
4169
- strength: 0,
4170
- id: g.BASIC,
4171
- name: (e, t = 1) => Ue(`ranks.${g.BASIC}.text`, { count: t, context: e, ns: "common" })
4172
- },
4173
4167
  COMMON: {
4174
4168
  color: "#813D31",
4175
4169
  strength: 1,
4176
4170
  id: g.COMMON,
4177
- name: (e, t = 1) => Ue(`ranks.${g.COMMON}.text`, {
4171
+ name: (e, t = 1) => st(`ranks.${g.COMMON}.text`, {
4178
4172
  count: t,
4179
4173
  context: e,
4180
4174
  ns: "common"
@@ -4184,7 +4178,7 @@ const d = {
4184
4178
  color: "#5B6870",
4185
4179
  strength: 2,
4186
4180
  id: g.RARE,
4187
- name: (e, t = 1) => Ue(`ranks.${g.RARE}.text`, {
4181
+ name: (e, t = 1) => st(`ranks.${g.RARE}.text`, {
4188
4182
  count: t,
4189
4183
  context: e,
4190
4184
  ns: "common"
@@ -4194,7 +4188,7 @@ const d = {
4194
4188
  color: "#C46619",
4195
4189
  strength: 3,
4196
4190
  id: g.EPIC,
4197
- name: (e, t = 1) => Ue(`ranks.${g.EPIC}.text`, {
4191
+ name: (e, t = 1) => st(`ranks.${g.EPIC}.text`, {
4198
4192
  count: t,
4199
4193
  context: e,
4200
4194
  ns: "common"
@@ -4204,7 +4198,7 @@ const d = {
4204
4198
  color: "#88A3CB",
4205
4199
  strength: 4,
4206
4200
  id: g.LEGENDARY,
4207
- name: (e, t = 1) => Ue(`ranks.${g.LEGENDARY}.text`, {
4201
+ name: (e, t = 1) => st(`ranks.${g.LEGENDARY}.text`, {
4208
4202
  count: t,
4209
4203
  context: e,
4210
4204
  ns: "common"
@@ -4214,7 +4208,7 @@ const d = {
4214
4208
  color: "#F6bF62",
4215
4209
  strength: 5,
4216
4210
  id: g.MYTHIC,
4217
- name: (e, t = 1) => Ue(`ranks.${g.MYTHIC}.text`, {
4211
+ name: (e, t = 1) => st(`ranks.${g.MYTHIC}.text`, {
4218
4212
  count: t,
4219
4213
  context: e,
4220
4214
  ns: "common"
@@ -4706,7 +4700,7 @@ class l extends zd {
4706
4700
  return await this.specificQuestCompletion(t), await this.applyReward(t), s && tl([t], this), !0;
4707
4701
  }
4708
4702
  async applyReward(t) {
4709
- this.crew || (this.titleId && await le.unlockTitle(t, this.titleId), this.badge && await le.unlockBadge(t, this.badge, this.rankId), this.isFactionBadge && await le.unlockFactionBadge(t, this.rankId), this.asset && await le.unlockProfileAsset(t, this.asset), this.items && await We.addItems(t, this.items));
4703
+ this.crew || (this.titleId && await le.unlockTitle(t, this.titleId), this.badge && await le.unlockBadge(t, this.badge, this.rankId), this.isFactionBadge && await le.unlockFactionBadge(t, this.rankId), this.asset && await le.unlockProfileAsset(t, this.asset), this.items && await Be.addItems(t, this.items));
4710
4704
  }
4711
4705
  async getComputedRewards(t) {
4712
4706
  const { DailyAll: s } = await Promise.resolve().then(() => ca), i = new s().id, a = this.daily ? await Me.getStreakMultiplier(t, i) : 1, r = await v.get(t);
@@ -6835,7 +6829,7 @@ class Fu extends l {
6835
6829
  u.USER_INVENTORY
6836
6830
  ];
6837
6831
  async isValidated({ userInventory: t }, s) {
6838
- const { recipes: i } = t ?? await We.get(s);
6832
+ const { recipes: i } = t ?? await Be.get(s);
6839
6833
  return i.length >= 1;
6840
6834
  }
6841
6835
  }
@@ -6851,7 +6845,7 @@ class ju extends l {
6851
6845
  u.USER_INVENTORY
6852
6846
  ];
6853
6847
  async isValidated({ userInventory: t }, s) {
6854
- const { recipes: i } = t ?? await We.get(s);
6848
+ const { recipes: i } = t ?? await Be.get(s);
6855
6849
  return i.length >= 5;
6856
6850
  }
6857
6851
  }
@@ -6867,7 +6861,7 @@ class Hu extends l {
6867
6861
  u.USER_INVENTORY
6868
6862
  ];
6869
6863
  async isValidated({ userInventory: t }, s) {
6870
- const { recipes: i } = t ?? await We.get(s);
6864
+ const { recipes: i } = t ?? await Be.get(s);
6871
6865
  return i.length >= 10;
6872
6866
  }
6873
6867
  }
@@ -6883,7 +6877,7 @@ class Gu extends l {
6883
6877
  u.USER_INVENTORY
6884
6878
  ];
6885
6879
  async isValidated({ userInventory: t }, s) {
6886
- const { recipes: i } = t ?? await We.get(s);
6880
+ const { recipes: i } = t ?? await Be.get(s);
6887
6881
  return i.length >= 25;
6888
6882
  }
6889
6883
  }
@@ -6900,7 +6894,7 @@ class Bu extends l {
6900
6894
  u.USER_INVENTORY
6901
6895
  ];
6902
6896
  async isValidated({ userInventory: t }, s) {
6903
- const { recipes: i } = t ?? await We.get(s);
6897
+ const { recipes: i } = t ?? await Be.get(s);
6904
6898
  return i.length >= 100;
6905
6899
  }
6906
6900
  }