@opfr/utils-type 0.7.3 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/dist/characteristics/constants.d.ts +7 -0
  2. package/dist/characteristics/constants.d.ts.map +1 -0
  3. package/dist/characteristics/constants.js +19 -0
  4. package/dist/characteristics/constants.js.map +1 -0
  5. package/dist/characteristics/index.d.ts +3 -0
  6. package/dist/characteristics/index.d.ts.map +1 -0
  7. package/dist/characteristics/index.js +2 -0
  8. package/dist/characteristics/index.js.map +1 -0
  9. package/dist/characteristics/types.d.ts +7 -0
  10. package/dist/characteristics/types.d.ts.map +1 -0
  11. package/dist/characteristics/types.js +2 -0
  12. package/dist/characteristics/types.js.map +1 -0
  13. package/dist/factions/constants.d.ts +4 -0
  14. package/dist/factions/constants.d.ts.map +1 -0
  15. package/dist/factions/constants.js +24 -0
  16. package/dist/factions/constants.js.map +1 -0
  17. package/dist/factions/index.d.ts +3 -0
  18. package/dist/factions/index.d.ts.map +1 -0
  19. package/dist/factions/index.js +2 -0
  20. package/dist/factions/index.js.map +1 -0
  21. package/dist/factions/types.d.ts +8 -0
  22. package/dist/factions/types.d.ts.map +1 -0
  23. package/dist/factions/types.js +2 -0
  24. package/dist/factions/types.js.map +1 -0
  25. package/dist/games/index.d.ts +2 -0
  26. package/dist/games/index.d.ts.map +1 -0
  27. package/dist/games/index.js +2 -0
  28. package/dist/games/index.js.map +1 -0
  29. package/dist/games/types.d.ts +11 -0
  30. package/dist/games/types.d.ts.map +1 -0
  31. package/dist/games/types.js +2 -0
  32. package/dist/games/types.js.map +1 -0
  33. package/dist/index.d.ts +7 -0
  34. package/dist/index.d.ts.map +1 -0
  35. package/dist/index.es.js +4349 -0
  36. package/dist/index.js +7 -0
  37. package/dist/index.js.map +1 -0
  38. package/dist/index.umd.js +10 -0
  39. package/dist/ranks/constants.d.ts +6 -0
  40. package/dist/ranks/constants.d.ts.map +1 -0
  41. package/dist/ranks/constants.js +10 -0
  42. package/dist/ranks/constants.js.map +1 -0
  43. package/dist/ranks/index.d.ts +4 -0
  44. package/dist/ranks/index.d.ts.map +1 -0
  45. package/dist/ranks/index.js +3 -0
  46. package/dist/ranks/index.js.map +1 -0
  47. package/dist/ranks/types.d.ts +14 -0
  48. package/dist/ranks/types.d.ts.map +1 -0
  49. package/dist/ranks/types.js +10 -0
  50. package/dist/ranks/types.js.map +1 -0
  51. package/dist/sort-values/constants.d.ts +2 -0
  52. package/dist/sort-values/constants.d.ts.map +1 -0
  53. package/dist/sort-values/constants.js +2 -0
  54. package/dist/sort-values/constants.js.map +1 -0
  55. package/dist/sort-values/index.d.ts +3 -0
  56. package/dist/sort-values/index.d.ts.map +1 -0
  57. package/dist/sort-values/index.js +2 -0
  58. package/dist/sort-values/index.js.map +1 -0
  59. package/dist/sort-values/types.d.ts +4 -0
  60. package/dist/sort-values/types.d.ts.map +1 -0
  61. package/dist/sort-values/types.js +2 -0
  62. package/dist/sort-values/types.js.map +1 -0
  63. package/dist/xp/index.d.ts +3 -0
  64. package/dist/xp/index.d.ts.map +1 -0
  65. package/dist/xp/index.js +2 -0
  66. package/dist/xp/index.js.map +1 -0
  67. package/dist/xp/types.d.ts +2 -0
  68. package/dist/xp/types.d.ts.map +1 -0
  69. package/dist/xp/types.js +2 -0
  70. package/dist/xp/types.js.map +1 -0
  71. package/dist/xp/utils.d.ts +5 -0
  72. package/dist/xp/utils.d.ts.map +1 -0
  73. package/dist/xp/utils.js +10 -0
  74. package/dist/xp/utils.js.map +1 -0
  75. package/package.json +3 -2
@@ -0,0 +1,4349 @@
1
+ var me = /* @__PURE__ */ ((e) => (e.BASIC = "BASIC", e.COMMON = "COMMON", e.RARE = "RARE", e.EPIC = "EPIC", e.LEGENDARY = "LEGENDARY", e.MYTHIC = "MYTHIC", e))(me || {});
2
+ const ru = {
3
+ BASIC: { color: "#fff", strength: 0, id: me.BASIC },
4
+ COMMON: { color: "#813D31", strength: 1, id: me.COMMON },
5
+ RARE: { color: "#5B6870", strength: 2, id: me.RARE },
6
+ EPIC: { color: "#C46619", strength: 3, id: me.EPIC },
7
+ LEGENDARY: { color: "#88A3CB", strength: 4, id: me.LEGENDARY },
8
+ MYTHIC: { color: "#F6bF62", strength: 5, id: me.MYTHIC }
9
+ }, au = [
10
+ "vitality",
11
+ "strength",
12
+ "agility",
13
+ "intelligence",
14
+ "chance",
15
+ "wisdom"
16
+ ], ou = 10, Ys = 1, uu = [
17
+ [200, 4],
18
+ [100, 3],
19
+ [50, 2],
20
+ [0, Ys]
21
+ ], lu = 100, du = 10, hu = {
22
+ pirate: {
23
+ name: "pirate",
24
+ color: "#8A1623",
25
+ role: "1047815125282848849"
26
+ },
27
+ marine: {
28
+ name: "marine",
29
+ color: "#387cbc",
30
+ role: "1047816059937361940"
31
+ },
32
+ revolutionary: {
33
+ name: "revolutionary",
34
+ color: "#335635",
35
+ role: "1047815105846444152"
36
+ },
37
+ citizen: {
38
+ name: "citizen",
39
+ color: "#fff",
40
+ role: "1147953458507423874"
41
+ }
42
+ }, cu = "citizen", fu = ["category", "alpha", "quantity"], Ns = {
43
+ type: "logger",
44
+ log(e) {
45
+ this.output("log", e);
46
+ },
47
+ warn(e) {
48
+ this.output("warn", e);
49
+ },
50
+ error(e) {
51
+ this.output("error", e);
52
+ },
53
+ output(e, t) {
54
+ console && console[e] && console[e].apply(console, t);
55
+ }
56
+ };
57
+ class st {
58
+ constructor(t) {
59
+ let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
60
+ this.init(t, n);
61
+ }
62
+ init(t) {
63
+ let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
64
+ this.prefix = n.prefix || "i18next:", this.logger = t || Ns, this.options = n, this.debug = n.debug;
65
+ }
66
+ log() {
67
+ for (var t = arguments.length, n = new Array(t), s = 0; s < t; s++)
68
+ n[s] = arguments[s];
69
+ return this.forward(n, "log", "", !0);
70
+ }
71
+ warn() {
72
+ for (var t = arguments.length, n = new Array(t), s = 0; s < t; s++)
73
+ n[s] = arguments[s];
74
+ return this.forward(n, "warn", "", !0);
75
+ }
76
+ error() {
77
+ for (var t = arguments.length, n = new Array(t), s = 0; s < t; s++)
78
+ n[s] = arguments[s];
79
+ return this.forward(n, "error", "");
80
+ }
81
+ deprecate() {
82
+ for (var t = arguments.length, n = new Array(t), s = 0; s < t; s++)
83
+ n[s] = arguments[s];
84
+ return this.forward(n, "warn", "WARNING DEPRECATED: ", !0);
85
+ }
86
+ forward(t, n, s, i) {
87
+ return i && !this.debug ? null : (typeof t[0] == "string" && (t[0] = `${s}${this.prefix} ${t[0]}`), this.logger[n](t));
88
+ }
89
+ create(t) {
90
+ return new st(this.logger, {
91
+ prefix: `${this.prefix}:${t}:`,
92
+ ...this.options
93
+ });
94
+ }
95
+ clone(t) {
96
+ return t = t || this.options, t.prefix = t.prefix || this.prefix, new st(this.logger, t);
97
+ }
98
+ }
99
+ var Z = new st();
100
+ class ct {
101
+ constructor() {
102
+ this.observers = {};
103
+ }
104
+ on(t, n) {
105
+ return t.split(" ").forEach((s) => {
106
+ this.observers[s] || (this.observers[s] = /* @__PURE__ */ new Map());
107
+ const i = this.observers[s].get(n) || 0;
108
+ this.observers[s].set(n, i + 1);
109
+ }), this;
110
+ }
111
+ off(t, n) {
112
+ if (this.observers[t]) {
113
+ if (!n) {
114
+ delete this.observers[t];
115
+ return;
116
+ }
117
+ this.observers[t].delete(n);
118
+ }
119
+ }
120
+ emit(t) {
121
+ for (var n = arguments.length, s = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++)
122
+ s[i - 1] = arguments[i];
123
+ this.observers[t] && Array.from(this.observers[t].entries()).forEach((a) => {
124
+ let [o, u] = a;
125
+ for (let l = 0; l < u; l++)
126
+ o(...s);
127
+ }), this.observers["*"] && Array.from(this.observers["*"].entries()).forEach((a) => {
128
+ let [o, u] = a;
129
+ for (let l = 0; l < u; l++)
130
+ o.apply(o, [t, ...s]);
131
+ });
132
+ }
133
+ }
134
+ const Te = () => {
135
+ let e, t;
136
+ const n = new Promise((s, i) => {
137
+ e = s, t = i;
138
+ });
139
+ return n.resolve = e, n.reject = t, n;
140
+ }, gn = (e) => e == null ? "" : "" + e, Cs = (e, t, n) => {
141
+ e.forEach((s) => {
142
+ t[s] && (n[s] = t[s]);
143
+ });
144
+ }, Ls = /###/g, mn = (e) => e && e.indexOf("###") > -1 ? e.replace(Ls, ".") : e, pn = (e) => !e || typeof e == "string", Ae = (e, t, n) => {
145
+ const s = typeof t != "string" ? t : t.split(".");
146
+ let i = 0;
147
+ for (; i < s.length - 1; ) {
148
+ if (pn(e))
149
+ return {};
150
+ const r = mn(s[i]);
151
+ !e[r] && n && (e[r] = new n()), Object.prototype.hasOwnProperty.call(e, r) ? e = e[r] : e = {}, ++i;
152
+ }
153
+ return pn(e) ? {} : {
154
+ obj: e,
155
+ k: mn(s[i])
156
+ };
157
+ }, yn = (e, t, n) => {
158
+ const {
159
+ obj: s,
160
+ k: i
161
+ } = Ae(e, t, Object);
162
+ if (s !== void 0 || t.length === 1) {
163
+ s[i] = n;
164
+ return;
165
+ }
166
+ let r = t[t.length - 1], a = t.slice(0, t.length - 1), o = Ae(e, a, Object);
167
+ for (; o.obj === void 0 && a.length; )
168
+ r = `${a[a.length - 1]}.${r}`, a = a.slice(0, a.length - 1), o = Ae(e, a, Object), o && o.obj && typeof o.obj[`${o.k}.${r}`] < "u" && (o.obj = void 0);
169
+ o.obj[`${o.k}.${r}`] = n;
170
+ }, Rs = (e, t, n, s) => {
171
+ const {
172
+ obj: i,
173
+ k: r
174
+ } = Ae(e, t, Object);
175
+ i[r] = i[r] || [], i[r].push(n);
176
+ }, it = (e, t) => {
177
+ const {
178
+ obj: n,
179
+ k: s
180
+ } = Ae(e, t);
181
+ if (n)
182
+ return n[s];
183
+ }, Ps = (e, t, n) => {
184
+ const s = it(e, n);
185
+ return s !== void 0 ? s : it(t, n);
186
+ }, Rn = (e, t, n) => {
187
+ for (const s in t)
188
+ s !== "__proto__" && s !== "constructor" && (s in e ? typeof e[s] == "string" || e[s] instanceof String || typeof t[s] == "string" || t[s] instanceof String ? n && (e[s] = t[s]) : Rn(e[s], t[s], n) : e[s] = t[s]);
189
+ return e;
190
+ }, ve = (e) => e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
191
+ var Ts = {
192
+ "&": "&amp;",
193
+ "<": "&lt;",
194
+ ">": "&gt;",
195
+ '"': "&quot;",
196
+ "'": "&#39;",
197
+ "/": "&#x2F;"
198
+ };
199
+ const Es = (e) => typeof e == "string" ? e.replace(/[&<>"'\/]/g, (t) => Ts[t]) : e;
200
+ class Fs {
201
+ constructor(t) {
202
+ this.capacity = t, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
203
+ }
204
+ getRegExp(t) {
205
+ const n = this.regExpMap.get(t);
206
+ if (n !== void 0)
207
+ return n;
208
+ const s = new RegExp(t);
209
+ return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(t, s), this.regExpQueue.push(t), s;
210
+ }
211
+ }
212
+ const As = [" ", ",", "?", "!", ";"], Is = new Fs(20), js = (e, t, n) => {
213
+ t = t || "", n = n || "";
214
+ const s = As.filter((a) => t.indexOf(a) < 0 && n.indexOf(a) < 0);
215
+ if (s.length === 0)
216
+ return !0;
217
+ const i = Is.getRegExp(`(${s.map((a) => a === "?" ? "\\?" : a).join("|")})`);
218
+ let r = !i.test(e);
219
+ if (!r) {
220
+ const a = e.indexOf(n);
221
+ a > 0 && !i.test(e.substring(0, a)) && (r = !0);
222
+ }
223
+ return r;
224
+ }, Tt = function(e, t) {
225
+ let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
226
+ if (!e)
227
+ return;
228
+ if (e[t])
229
+ return e[t];
230
+ const s = t.split(n);
231
+ let i = e;
232
+ for (let r = 0; r < s.length; ) {
233
+ if (!i || typeof i != "object")
234
+ return;
235
+ let a, o = "";
236
+ for (let u = r; u < s.length; ++u)
237
+ if (u !== r && (o += n), o += s[u], a = i[o], a !== void 0) {
238
+ if (["string", "number", "boolean"].indexOf(typeof a) > -1 && u < s.length - 1)
239
+ continue;
240
+ r += u - r + 1;
241
+ break;
242
+ }
243
+ i = a;
244
+ }
245
+ return i;
246
+ }, rt = (e) => e && e.replace("_", "-");
247
+ class _n extends ct {
248
+ constructor(t) {
249
+ let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
250
+ ns: ["translation"],
251
+ defaultNS: "translation"
252
+ };
253
+ super(), this.data = t || {}, this.options = n, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.options.ignoreJSONStructure === void 0 && (this.options.ignoreJSONStructure = !0);
254
+ }
255
+ addNamespaces(t) {
256
+ this.options.ns.indexOf(t) < 0 && this.options.ns.push(t);
257
+ }
258
+ removeNamespaces(t) {
259
+ const n = this.options.ns.indexOf(t);
260
+ n > -1 && this.options.ns.splice(n, 1);
261
+ }
262
+ getResource(t, n, s) {
263
+ let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
264
+ const r = i.keySeparator !== void 0 ? i.keySeparator : this.options.keySeparator, a = i.ignoreJSONStructure !== void 0 ? i.ignoreJSONStructure : this.options.ignoreJSONStructure;
265
+ let o;
266
+ t.indexOf(".") > -1 ? o = t.split(".") : (o = [t, n], s && (Array.isArray(s) ? o.push(...s) : typeof s == "string" && r ? o.push(...s.split(r)) : o.push(s)));
267
+ const u = it(this.data, o);
268
+ return !u && !n && !s && t.indexOf(".") > -1 && (t = o[0], n = o[1], s = o.slice(2).join(".")), u || !a || typeof s != "string" ? u : Tt(this.data && this.data[t] && this.data[t][n], s, r);
269
+ }
270
+ addResource(t, n, s, i) {
271
+ let r = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
272
+ silent: !1
273
+ };
274
+ const a = r.keySeparator !== void 0 ? r.keySeparator : this.options.keySeparator;
275
+ let o = [t, n];
276
+ s && (o = o.concat(a ? s.split(a) : s)), t.indexOf(".") > -1 && (o = t.split("."), i = n, n = o[1]), this.addNamespaces(n), yn(this.data, o, i), r.silent || this.emit("added", t, n, s, i);
277
+ }
278
+ addResources(t, n, s) {
279
+ let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
280
+ silent: !1
281
+ };
282
+ for (const r in s)
283
+ (typeof s[r] == "string" || Array.isArray(s[r])) && this.addResource(t, n, r, s[r], {
284
+ silent: !0
285
+ });
286
+ i.silent || this.emit("added", t, n, s);
287
+ }
288
+ addResourceBundle(t, n, s, i, r) {
289
+ let a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {
290
+ silent: !1,
291
+ skipCopy: !1
292
+ }, o = [t, n];
293
+ t.indexOf(".") > -1 && (o = t.split("."), i = s, s = n, n = o[1]), this.addNamespaces(n);
294
+ let u = it(this.data, o) || {};
295
+ a.skipCopy || (s = JSON.parse(JSON.stringify(s))), i ? Rn(u, s, r) : u = {
296
+ ...u,
297
+ ...s
298
+ }, yn(this.data, o, u), a.silent || this.emit("added", t, n, s);
299
+ }
300
+ removeResourceBundle(t, n) {
301
+ this.hasResourceBundle(t, n) && delete this.data[t][n], this.removeNamespaces(n), this.emit("removed", t, n);
302
+ }
303
+ hasResourceBundle(t, n) {
304
+ return this.getResource(t, n) !== void 0;
305
+ }
306
+ getResourceBundle(t, n) {
307
+ return n || (n = this.options.defaultNS), this.options.compatibilityAPI === "v1" ? {
308
+ ...this.getResource(t, n)
309
+ } : this.getResource(t, n);
310
+ }
311
+ getDataByLanguage(t) {
312
+ return this.data[t];
313
+ }
314
+ hasLanguageSomeTranslations(t) {
315
+ const n = this.getDataByLanguage(t);
316
+ return !!(n && Object.keys(n) || []).find((i) => n[i] && Object.keys(n[i]).length > 0);
317
+ }
318
+ toJSON() {
319
+ return this.data;
320
+ }
321
+ }
322
+ var Pn = {
323
+ processors: {},
324
+ addPostProcessor(e) {
325
+ this.processors[e.name] = e;
326
+ },
327
+ handle(e, t, n, s, i) {
328
+ return e.forEach((r) => {
329
+ this.processors[r] && (t = this.processors[r].process(t, n, s, i));
330
+ }), t;
331
+ }
332
+ };
333
+ const vn = {};
334
+ class at extends ct {
335
+ constructor(t) {
336
+ let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
337
+ super(), Cs(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], t, this), this.options = n, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = Z.create("translator");
338
+ }
339
+ changeLanguage(t) {
340
+ t && (this.language = t);
341
+ }
342
+ exists(t) {
343
+ let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
344
+ interpolation: {}
345
+ };
346
+ if (t == null)
347
+ return !1;
348
+ const s = this.resolve(t, n);
349
+ return s && s.res !== void 0;
350
+ }
351
+ extractFromKey(t, n) {
352
+ let s = n.nsSeparator !== void 0 ? n.nsSeparator : this.options.nsSeparator;
353
+ s === void 0 && (s = ":");
354
+ const i = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator;
355
+ let r = n.ns || this.options.defaultNS || [];
356
+ const a = s && t.indexOf(s) > -1, o = !this.options.userDefinedKeySeparator && !n.keySeparator && !this.options.userDefinedNsSeparator && !n.nsSeparator && !js(t, s, i);
357
+ if (a && !o) {
358
+ const u = t.match(this.interpolator.nestingRegexp);
359
+ if (u && u.length > 0)
360
+ return {
361
+ key: t,
362
+ namespaces: r
363
+ };
364
+ const l = t.split(s);
365
+ (s !== i || s === i && this.options.ns.indexOf(l[0]) > -1) && (r = l.shift()), t = l.join(i);
366
+ }
367
+ return typeof r == "string" && (r = [r]), {
368
+ key: t,
369
+ namespaces: r
370
+ };
371
+ }
372
+ translate(t, n, s) {
373
+ if (typeof n != "object" && this.options.overloadTranslationOptionHandler && (n = this.options.overloadTranslationOptionHandler(arguments)), typeof n == "object" && (n = {
374
+ ...n
375
+ }), n || (n = {}), t == null)
376
+ return "";
377
+ Array.isArray(t) || (t = [String(t)]);
378
+ const i = n.returnDetails !== void 0 ? n.returnDetails : this.options.returnDetails, r = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator, {
379
+ key: a,
380
+ namespaces: o
381
+ } = this.extractFromKey(t[t.length - 1], n), u = o[o.length - 1], l = n.lng || this.language, h = n.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
382
+ if (l && l.toLowerCase() === "cimode") {
383
+ if (h) {
384
+ const C = n.nsSeparator || this.options.nsSeparator;
385
+ return i ? {
386
+ res: `${u}${C}${a}`,
387
+ usedKey: a,
388
+ exactUsedKey: a,
389
+ usedLng: l,
390
+ usedNS: u,
391
+ usedParams: this.getUsedParamsDetails(n)
392
+ } : `${u}${C}${a}`;
393
+ }
394
+ return i ? {
395
+ res: a,
396
+ usedKey: a,
397
+ exactUsedKey: a,
398
+ usedLng: l,
399
+ usedNS: u,
400
+ usedParams: this.getUsedParamsDetails(n)
401
+ } : a;
402
+ }
403
+ const f = this.resolve(t, n);
404
+ let d = f && f.res;
405
+ const y = f && f.usedKey || a, x = f && f.exactUsedKey || a, N = Object.prototype.toString.apply(d), D = ["[object Number]", "[object Function]", "[object RegExp]"], I = n.joinArrays !== void 0 ? n.joinArrays : this.options.joinArrays, T = !this.i18nFormat || this.i18nFormat.handleAsObject;
406
+ if (T && d && (typeof d != "string" && typeof d != "boolean" && typeof d != "number") && D.indexOf(N) < 0 && !(typeof I == "string" && Array.isArray(d))) {
407
+ if (!n.returnObjects && !this.options.returnObjects) {
408
+ this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
409
+ const C = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(y, d, {
410
+ ...n,
411
+ ns: o
412
+ }) : `key '${a} (${this.language})' returned an object instead of string.`;
413
+ return i ? (f.res = C, f.usedParams = this.getUsedParamsDetails(n), f) : C;
414
+ }
415
+ if (r) {
416
+ const C = Array.isArray(d), j = C ? [] : {}, G = C ? x : y;
417
+ for (const E in d)
418
+ if (Object.prototype.hasOwnProperty.call(d, E)) {
419
+ const qe = `${G}${r}${E}`;
420
+ j[E] = this.translate(qe, {
421
+ ...n,
422
+ joinArrays: !1,
423
+ ns: o
424
+ }), j[E] === qe && (j[E] = d[E]);
425
+ }
426
+ d = j;
427
+ }
428
+ } else if (T && typeof I == "string" && Array.isArray(d))
429
+ d = d.join(I), d && (d = this.extendTranslation(d, t, n, s));
430
+ else {
431
+ let C = !1, j = !1;
432
+ const G = n.count !== void 0 && typeof n.count != "string", E = at.hasDefaultValue(n), qe = G ? this.pluralResolver.getSuffix(l, n.count, n) : "", Ms = n.ordinal && G ? this.pluralResolver.getSuffix(l, n.count, {
433
+ ordinal: !1
434
+ }) : "", hn = G && !n.ordinal && n.count === 0 && this.pluralResolver.shouldUseIntlApi(), Ce = hn && n[`defaultValue${this.options.pluralSeparator}zero`] || n[`defaultValue${qe}`] || n[`defaultValue${Ms}`] || n.defaultValue;
435
+ !this.isValidLookup(d) && E && (C = !0, d = Ce), this.isValidLookup(d) || (j = !0, d = a);
436
+ const Ds = (n.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && j ? void 0 : d, Le = E && Ce !== d && this.options.updateMissing;
437
+ if (j || C || Le) {
438
+ if (this.logger.log(Le ? "updateKey" : "missingKey", l, u, a, Le ? Ce : d), r) {
439
+ const U = this.resolve(a, {
440
+ ...n,
441
+ keySeparator: !1
442
+ });
443
+ U && U.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.");
444
+ }
445
+ let Re = [];
446
+ const Je = this.languageUtils.getFallbackCodes(this.options.fallbackLng, n.lng || this.language);
447
+ if (this.options.saveMissingTo === "fallback" && Je && Je[0])
448
+ for (let U = 0; U < Je.length; U++)
449
+ Re.push(Je[U]);
450
+ else
451
+ this.options.saveMissingTo === "all" ? Re = this.languageUtils.toResolveHierarchy(n.lng || this.language) : Re.push(n.lng || this.language);
452
+ const cn = (U, fe, Pe) => {
453
+ const fn = E && Pe !== d ? Pe : Ds;
454
+ this.options.missingKeyHandler ? this.options.missingKeyHandler(U, u, fe, fn, Le, n) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(U, u, fe, fn, Le, n), this.emit("missingKey", U, u, fe, d);
455
+ };
456
+ this.options.saveMissing && (this.options.saveMissingPlurals && G ? Re.forEach((U) => {
457
+ const fe = this.pluralResolver.getSuffixes(U, n);
458
+ hn && n[`defaultValue${this.options.pluralSeparator}zero`] && fe.indexOf(`${this.options.pluralSeparator}zero`) < 0 && fe.push(`${this.options.pluralSeparator}zero`), fe.forEach((Pe) => {
459
+ cn([U], a + Pe, n[`defaultValue${Pe}`] || Ce);
460
+ });
461
+ }) : cn(Re, a, Ce));
462
+ }
463
+ d = this.extendTranslation(d, t, n, f, s), j && d === a && this.options.appendNamespaceToMissingKey && (d = `${u}:${a}`), (j || C) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? d = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${u}:${a}` : a, C ? d : void 0) : d = this.options.parseMissingKeyHandler(d));
464
+ }
465
+ return i ? (f.res = d, f.usedParams = this.getUsedParamsDetails(n), f) : d;
466
+ }
467
+ extendTranslation(t, n, s, i, r) {
468
+ var a = this;
469
+ if (this.i18nFormat && this.i18nFormat.parse)
470
+ t = this.i18nFormat.parse(t, {
471
+ ...this.options.interpolation.defaultVariables,
472
+ ...s
473
+ }, s.lng || this.language || i.usedLng, i.usedNS, i.usedKey, {
474
+ resolved: i
475
+ });
476
+ else if (!s.skipInterpolation) {
477
+ s.interpolation && this.interpolator.init({
478
+ ...s,
479
+ interpolation: {
480
+ ...this.options.interpolation,
481
+ ...s.interpolation
482
+ }
483
+ });
484
+ const l = typeof t == "string" && (s && s.interpolation && s.interpolation.skipOnVariables !== void 0 ? s.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
485
+ let h;
486
+ if (l) {
487
+ const d = t.match(this.interpolator.nestingRegexp);
488
+ h = d && d.length;
489
+ }
490
+ let f = s.replace && typeof s.replace != "string" ? s.replace : s;
491
+ if (this.options.interpolation.defaultVariables && (f = {
492
+ ...this.options.interpolation.defaultVariables,
493
+ ...f
494
+ }), t = this.interpolator.interpolate(t, f, s.lng || this.language || i.usedLng, s), l) {
495
+ const d = t.match(this.interpolator.nestingRegexp), y = d && d.length;
496
+ h < y && (s.nest = !1);
497
+ }
498
+ !s.lng && this.options.compatibilityAPI !== "v1" && i && i.res && (s.lng = this.language || i.usedLng), s.nest !== !1 && (t = this.interpolator.nest(t, function() {
499
+ for (var d = arguments.length, y = new Array(d), x = 0; x < d; x++)
500
+ y[x] = arguments[x];
501
+ return r && r[0] === y[0] && !s.context ? (a.logger.warn(`It seems you are nesting recursively key: ${y[0]} in key: ${n[0]}`), null) : a.translate(...y, n);
502
+ }, s)), s.interpolation && this.interpolator.reset();
503
+ }
504
+ const o = s.postProcess || this.options.postProcess, u = typeof o == "string" ? [o] : o;
505
+ return t != null && u && u.length && s.applyPostProcessor !== !1 && (t = Pn.handle(u, t, n, this.options && this.options.postProcessPassResolved ? {
506
+ i18nResolved: {
507
+ ...i,
508
+ usedParams: this.getUsedParamsDetails(s)
509
+ },
510
+ ...s
511
+ } : s, this)), t;
512
+ }
513
+ resolve(t) {
514
+ let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s, i, r, a, o;
515
+ return typeof t == "string" && (t = [t]), t.forEach((u) => {
516
+ if (this.isValidLookup(s))
517
+ return;
518
+ const l = this.extractFromKey(u, n), h = l.key;
519
+ i = h;
520
+ let f = l.namespaces;
521
+ this.options.fallbackNS && (f = f.concat(this.options.fallbackNS));
522
+ const d = n.count !== void 0 && typeof n.count != "string", y = d && !n.ordinal && n.count === 0 && this.pluralResolver.shouldUseIntlApi(), x = n.context !== void 0 && (typeof n.context == "string" || typeof n.context == "number") && n.context !== "", N = n.lngs ? n.lngs : this.languageUtils.toResolveHierarchy(n.lng || this.language, n.fallbackLng);
523
+ f.forEach((D) => {
524
+ this.isValidLookup(s) || (o = D, !vn[`${N[0]}-${D}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(o) && (vn[`${N[0]}-${D}`] = !0, this.logger.warn(`key "${i}" for languages "${N.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), N.forEach((I) => {
525
+ if (this.isValidLookup(s))
526
+ return;
527
+ a = I;
528
+ const T = [h];
529
+ if (this.i18nFormat && this.i18nFormat.addLookupKeys)
530
+ this.i18nFormat.addLookupKeys(T, h, I, D, n);
531
+ else {
532
+ let C;
533
+ d && (C = this.pluralResolver.getSuffix(I, n.count, n));
534
+ const j = `${this.options.pluralSeparator}zero`, G = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
535
+ if (d && (T.push(h + C), n.ordinal && C.indexOf(G) === 0 && T.push(h + C.replace(G, this.options.pluralSeparator)), y && T.push(h + j)), x) {
536
+ const E = `${h}${this.options.contextSeparator}${n.context}`;
537
+ T.push(E), d && (T.push(E + C), n.ordinal && C.indexOf(G) === 0 && T.push(E + C.replace(G, this.options.pluralSeparator)), y && T.push(E + j));
538
+ }
539
+ }
540
+ let Be;
541
+ for (; Be = T.pop(); )
542
+ this.isValidLookup(s) || (r = Be, s = this.getResource(I, D, Be, n));
543
+ }));
544
+ });
545
+ }), {
546
+ res: s,
547
+ usedKey: i,
548
+ exactUsedKey: r,
549
+ usedLng: a,
550
+ usedNS: o
551
+ };
552
+ }
553
+ isValidLookup(t) {
554
+ return t !== void 0 && !(!this.options.returnNull && t === null) && !(!this.options.returnEmptyString && t === "");
555
+ }
556
+ getResource(t, n, s) {
557
+ let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
558
+ return this.i18nFormat && this.i18nFormat.getResource ? this.i18nFormat.getResource(t, n, s, i) : this.resourceStore.getResource(t, n, s, i);
559
+ }
560
+ getUsedParamsDetails() {
561
+ let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
562
+ const n = ["defaultValue", "ordinal", "context", "replace", "lng", "lngs", "fallbackLng", "ns", "keySeparator", "nsSeparator", "returnObjects", "returnDetails", "joinArrays", "postProcess", "interpolation"], s = t.replace && typeof t.replace != "string";
563
+ let i = s ? t.replace : t;
564
+ if (s && typeof t.count < "u" && (i.count = t.count), this.options.interpolation.defaultVariables && (i = {
565
+ ...this.options.interpolation.defaultVariables,
566
+ ...i
567
+ }), !s) {
568
+ i = {
569
+ ...i
570
+ };
571
+ for (const r of n)
572
+ delete i[r];
573
+ }
574
+ return i;
575
+ }
576
+ static hasDefaultValue(t) {
577
+ const n = "defaultValue";
578
+ for (const s in t)
579
+ if (Object.prototype.hasOwnProperty.call(t, s) && n === s.substring(0, n.length) && t[s] !== void 0)
580
+ return !0;
581
+ return !1;
582
+ }
583
+ }
584
+ const kt = (e) => e.charAt(0).toUpperCase() + e.slice(1);
585
+ class wn {
586
+ constructor(t) {
587
+ this.options = t, this.supportedLngs = this.options.supportedLngs || !1, this.logger = Z.create("languageUtils");
588
+ }
589
+ getScriptPartFromCode(t) {
590
+ if (t = rt(t), !t || t.indexOf("-") < 0)
591
+ return null;
592
+ const n = t.split("-");
593
+ return n.length === 2 || (n.pop(), n[n.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(n.join("-"));
594
+ }
595
+ getLanguagePartFromCode(t) {
596
+ if (t = rt(t), !t || t.indexOf("-") < 0)
597
+ return t;
598
+ const n = t.split("-");
599
+ return this.formatLanguageCode(n[0]);
600
+ }
601
+ formatLanguageCode(t) {
602
+ if (typeof t == "string" && t.indexOf("-") > -1) {
603
+ if (typeof Intl < "u" && typeof Intl.getCanonicalLocales < "u")
604
+ try {
605
+ let i = Intl.getCanonicalLocales(t)[0];
606
+ if (i && this.options.lowerCaseLng && (i = i.toLowerCase()), i)
607
+ return i;
608
+ } catch {
609
+ }
610
+ const n = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"];
611
+ let s = t.split("-");
612
+ return this.options.lowerCaseLng ? s = s.map((i) => i.toLowerCase()) : s.length === 2 ? (s[0] = s[0].toLowerCase(), s[1] = s[1].toUpperCase(), n.indexOf(s[1].toLowerCase()) > -1 && (s[1] = kt(s[1].toLowerCase()))) : s.length === 3 && (s[0] = s[0].toLowerCase(), s[1].length === 2 && (s[1] = s[1].toUpperCase()), s[0] !== "sgn" && s[2].length === 2 && (s[2] = s[2].toUpperCase()), n.indexOf(s[1].toLowerCase()) > -1 && (s[1] = kt(s[1].toLowerCase())), n.indexOf(s[2].toLowerCase()) > -1 && (s[2] = kt(s[2].toLowerCase()))), s.join("-");
613
+ }
614
+ return this.options.cleanCode || this.options.lowerCaseLng ? t.toLowerCase() : t;
615
+ }
616
+ isSupportedCode(t) {
617
+ return (this.options.load === "languageOnly" || this.options.nonExplicitSupportedLngs) && (t = this.getLanguagePartFromCode(t)), !this.supportedLngs || !this.supportedLngs.length || this.supportedLngs.indexOf(t) > -1;
618
+ }
619
+ getBestMatchFromCodes(t) {
620
+ if (!t)
621
+ return null;
622
+ let n;
623
+ return t.forEach((s) => {
624
+ if (n)
625
+ return;
626
+ const i = this.formatLanguageCode(s);
627
+ (!this.options.supportedLngs || this.isSupportedCode(i)) && (n = i);
628
+ }), !n && this.options.supportedLngs && t.forEach((s) => {
629
+ if (n)
630
+ return;
631
+ const i = this.getLanguagePartFromCode(s);
632
+ if (this.isSupportedCode(i))
633
+ return n = i;
634
+ n = this.options.supportedLngs.find((r) => {
635
+ if (r === i)
636
+ return r;
637
+ if (!(r.indexOf("-") < 0 && i.indexOf("-") < 0) && (r.indexOf("-") > 0 && i.indexOf("-") < 0 && r.substring(0, r.indexOf("-")) === i || r.indexOf(i) === 0 && i.length > 1))
638
+ return r;
639
+ });
640
+ }), n || (n = this.getFallbackCodes(this.options.fallbackLng)[0]), n;
641
+ }
642
+ getFallbackCodes(t, n) {
643
+ if (!t)
644
+ return [];
645
+ if (typeof t == "function" && (t = t(n)), typeof t == "string" && (t = [t]), Array.isArray(t))
646
+ return t;
647
+ if (!n)
648
+ return t.default || [];
649
+ let s = t[n];
650
+ return s || (s = t[this.getScriptPartFromCode(n)]), s || (s = t[this.formatLanguageCode(n)]), s || (s = t[this.getLanguagePartFromCode(n)]), s || (s = t.default), s || [];
651
+ }
652
+ toResolveHierarchy(t, n) {
653
+ const s = this.getFallbackCodes(n || this.options.fallbackLng || [], t), i = [], r = (a) => {
654
+ a && (this.isSupportedCode(a) ? i.push(a) : this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`));
655
+ };
656
+ return typeof t == "string" && (t.indexOf("-") > -1 || t.indexOf("_") > -1) ? (this.options.load !== "languageOnly" && r(this.formatLanguageCode(t)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && r(this.getScriptPartFromCode(t)), this.options.load !== "currentOnly" && r(this.getLanguagePartFromCode(t))) : typeof t == "string" && r(this.formatLanguageCode(t)), s.forEach((a) => {
657
+ i.indexOf(a) < 0 && r(this.formatLanguageCode(a));
658
+ }), i;
659
+ }
660
+ }
661
+ let Us = [{
662
+ lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
663
+ nr: [1, 2],
664
+ fc: 1
665
+ }, {
666
+ lngs: ["af", "an", "ast", "az", "bg", "bn", "ca", "da", "de", "dev", "el", "en", "eo", "es", "et", "eu", "fi", "fo", "fur", "fy", "gl", "gu", "ha", "hi", "hu", "hy", "ia", "it", "kk", "kn", "ku", "lb", "mai", "ml", "mn", "mr", "nah", "nap", "nb", "ne", "nl", "nn", "no", "nso", "pa", "pap", "pms", "ps", "pt-PT", "rm", "sco", "se", "si", "so", "son", "sq", "sv", "sw", "ta", "te", "tk", "ur", "yo"],
667
+ nr: [1, 2],
668
+ fc: 2
669
+ }, {
670
+ lngs: ["ay", "bo", "cgg", "fa", "ht", "id", "ja", "jbo", "ka", "km", "ko", "ky", "lo", "ms", "sah", "su", "th", "tt", "ug", "vi", "wo", "zh"],
671
+ nr: [1],
672
+ fc: 3
673
+ }, {
674
+ lngs: ["be", "bs", "cnr", "dz", "hr", "ru", "sr", "uk"],
675
+ nr: [1, 2, 5],
676
+ fc: 4
677
+ }, {
678
+ lngs: ["ar"],
679
+ nr: [0, 1, 2, 3, 11, 100],
680
+ fc: 5
681
+ }, {
682
+ lngs: ["cs", "sk"],
683
+ nr: [1, 2, 5],
684
+ fc: 6
685
+ }, {
686
+ lngs: ["csb", "pl"],
687
+ nr: [1, 2, 5],
688
+ fc: 7
689
+ }, {
690
+ lngs: ["cy"],
691
+ nr: [1, 2, 3, 8],
692
+ fc: 8
693
+ }, {
694
+ lngs: ["fr"],
695
+ nr: [1, 2],
696
+ fc: 9
697
+ }, {
698
+ lngs: ["ga"],
699
+ nr: [1, 2, 3, 7, 11],
700
+ fc: 10
701
+ }, {
702
+ lngs: ["gd"],
703
+ nr: [1, 2, 3, 20],
704
+ fc: 11
705
+ }, {
706
+ lngs: ["is"],
707
+ nr: [1, 2],
708
+ fc: 12
709
+ }, {
710
+ lngs: ["jv"],
711
+ nr: [0, 1],
712
+ fc: 13
713
+ }, {
714
+ lngs: ["kw"],
715
+ nr: [1, 2, 3, 4],
716
+ fc: 14
717
+ }, {
718
+ lngs: ["lt"],
719
+ nr: [1, 2, 10],
720
+ fc: 15
721
+ }, {
722
+ lngs: ["lv"],
723
+ nr: [1, 2, 0],
724
+ fc: 16
725
+ }, {
726
+ lngs: ["mk"],
727
+ nr: [1, 2],
728
+ fc: 17
729
+ }, {
730
+ lngs: ["mnk"],
731
+ nr: [0, 1, 2],
732
+ fc: 18
733
+ }, {
734
+ lngs: ["mt"],
735
+ nr: [1, 2, 11, 20],
736
+ fc: 19
737
+ }, {
738
+ lngs: ["or"],
739
+ nr: [2, 1],
740
+ fc: 2
741
+ }, {
742
+ lngs: ["ro"],
743
+ nr: [1, 2, 20],
744
+ fc: 20
745
+ }, {
746
+ lngs: ["sl"],
747
+ nr: [5, 1, 2, 3],
748
+ fc: 21
749
+ }, {
750
+ lngs: ["he", "iw"],
751
+ nr: [1, 2, 20, 21],
752
+ fc: 22
753
+ }], Hs = {
754
+ 1: (e) => +(e > 1),
755
+ 2: (e) => +(e != 1),
756
+ 3: (e) => 0,
757
+ 4: (e) => e % 10 == 1 && e % 100 != 11 ? 0 : e % 10 >= 2 && e % 10 <= 4 && (e % 100 < 10 || e % 100 >= 20) ? 1 : 2,
758
+ 5: (e) => e == 0 ? 0 : e == 1 ? 1 : e == 2 ? 2 : e % 100 >= 3 && e % 100 <= 10 ? 3 : e % 100 >= 11 ? 4 : 5,
759
+ 6: (e) => e == 1 ? 0 : e >= 2 && e <= 4 ? 1 : 2,
760
+ 7: (e) => e == 1 ? 0 : e % 10 >= 2 && e % 10 <= 4 && (e % 100 < 10 || e % 100 >= 20) ? 1 : 2,
761
+ 8: (e) => e == 1 ? 0 : e == 2 ? 1 : e != 8 && e != 11 ? 2 : 3,
762
+ 9: (e) => +(e >= 2),
763
+ 10: (e) => e == 1 ? 0 : e == 2 ? 1 : e < 7 ? 2 : e < 11 ? 3 : 4,
764
+ 11: (e) => e == 1 || e == 11 ? 0 : e == 2 || e == 12 ? 1 : e > 2 && e < 20 ? 2 : 3,
765
+ 12: (e) => +(e % 10 != 1 || e % 100 == 11),
766
+ 13: (e) => +(e !== 0),
767
+ 14: (e) => e == 1 ? 0 : e == 2 ? 1 : e == 3 ? 2 : 3,
768
+ 15: (e) => e % 10 == 1 && e % 100 != 11 ? 0 : e % 10 >= 2 && (e % 100 < 10 || e % 100 >= 20) ? 1 : 2,
769
+ 16: (e) => e % 10 == 1 && e % 100 != 11 ? 0 : e !== 0 ? 1 : 2,
770
+ 17: (e) => e == 1 || e % 10 == 1 && e % 100 != 11 ? 0 : 1,
771
+ 18: (e) => e == 0 ? 0 : e == 1 ? 1 : 2,
772
+ 19: (e) => e == 1 ? 0 : e == 0 || e % 100 > 1 && e % 100 < 11 ? 1 : e % 100 > 10 && e % 100 < 20 ? 2 : 3,
773
+ 20: (e) => e == 1 ? 0 : e == 0 || e % 100 > 0 && e % 100 < 20 ? 1 : 2,
774
+ 21: (e) => e % 100 == 1 ? 1 : e % 100 == 2 ? 2 : e % 100 == 3 || e % 100 == 4 ? 3 : 0,
775
+ 22: (e) => e == 1 ? 0 : e == 2 ? 1 : (e < 0 || e > 10) && e % 10 == 0 ? 2 : 3
776
+ };
777
+ const $s = ["v1", "v2", "v3"], Vs = ["v4"], Sn = {
778
+ zero: 0,
779
+ one: 1,
780
+ two: 2,
781
+ few: 3,
782
+ many: 4,
783
+ other: 5
784
+ }, Ws = () => {
785
+ const e = {};
786
+ return Us.forEach((t) => {
787
+ t.lngs.forEach((n) => {
788
+ e[n] = {
789
+ numbers: t.nr,
790
+ plurals: Hs[t.fc]
791
+ };
792
+ });
793
+ }), e;
794
+ };
795
+ class Gs {
796
+ constructor(t) {
797
+ let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
798
+ this.languageUtils = t, this.options = n, this.logger = Z.create("pluralResolver"), (!this.options.compatibilityJSON || Vs.includes(this.options.compatibilityJSON)) && (typeof Intl > "u" || !Intl.PluralRules) && (this.options.compatibilityJSON = "v3", this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")), this.rules = Ws(), this.pluralRulesCache = {};
799
+ }
800
+ addRule(t, n) {
801
+ this.rules[t] = n;
802
+ }
803
+ clearCache() {
804
+ this.pluralRulesCache = {};
805
+ }
806
+ getRule(t) {
807
+ let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
808
+ if (this.shouldUseIntlApi())
809
+ try {
810
+ const s = rt(t === "dev" ? "en" : t), i = n.ordinal ? "ordinal" : "cardinal", r = JSON.stringify({
811
+ cleanedCode: s,
812
+ type: i
813
+ });
814
+ if (r in this.pluralRulesCache)
815
+ return this.pluralRulesCache[r];
816
+ const a = new Intl.PluralRules(s, {
817
+ type: i
818
+ });
819
+ return this.pluralRulesCache[r] = a, a;
820
+ } catch {
821
+ return;
822
+ }
823
+ return this.rules[t] || this.rules[this.languageUtils.getLanguagePartFromCode(t)];
824
+ }
825
+ needsPlural(t) {
826
+ let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
827
+ const s = this.getRule(t, n);
828
+ return this.shouldUseIntlApi() ? s && s.resolvedOptions().pluralCategories.length > 1 : s && s.numbers.length > 1;
829
+ }
830
+ getPluralFormsOfKey(t, n) {
831
+ let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
832
+ return this.getSuffixes(t, s).map((i) => `${n}${i}`);
833
+ }
834
+ getSuffixes(t) {
835
+ let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
836
+ const s = this.getRule(t, n);
837
+ return s ? this.shouldUseIntlApi() ? s.resolvedOptions().pluralCategories.sort((i, r) => Sn[i] - Sn[r]).map((i) => `${this.options.prepend}${n.ordinal ? `ordinal${this.options.prepend}` : ""}${i}`) : s.numbers.map((i) => this.getSuffix(t, i, n)) : [];
838
+ }
839
+ getSuffix(t, n) {
840
+ let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
841
+ const i = this.getRule(t, s);
842
+ return i ? this.shouldUseIntlApi() ? `${this.options.prepend}${s.ordinal ? `ordinal${this.options.prepend}` : ""}${i.select(n)}` : this.getSuffixRetroCompatible(i, n) : (this.logger.warn(`no plural rule found for: ${t}`), "");
843
+ }
844
+ getSuffixRetroCompatible(t, n) {
845
+ const s = t.noAbs ? t.plurals(n) : t.plurals(Math.abs(n));
846
+ let i = t.numbers[s];
847
+ this.options.simplifyPluralSuffix && t.numbers.length === 2 && t.numbers[0] === 1 && (i === 2 ? i = "plural" : i === 1 && (i = ""));
848
+ const r = () => this.options.prepend && i.toString() ? this.options.prepend + i.toString() : i.toString();
849
+ return this.options.compatibilityJSON === "v1" ? i === 1 ? "" : typeof i == "number" ? `_plural_${i.toString()}` : r() : this.options.compatibilityJSON === "v2" || this.options.simplifyPluralSuffix && t.numbers.length === 2 && t.numbers[0] === 1 ? r() : this.options.prepend && s.toString() ? this.options.prepend + s.toString() : s.toString();
850
+ }
851
+ shouldUseIntlApi() {
852
+ return !$s.includes(this.options.compatibilityJSON);
853
+ }
854
+ }
855
+ const bn = function(e, t, n) {
856
+ let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, r = Ps(e, t, n);
857
+ return !r && i && typeof n == "string" && (r = Tt(e, n, s), r === void 0 && (r = Tt(t, n, s))), r;
858
+ }, Ot = (e) => e.replace(/\$/g, "$$$$");
859
+ class zs {
860
+ constructor() {
861
+ let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
862
+ this.logger = Z.create("interpolator"), this.options = t, this.format = t.interpolation && t.interpolation.format || ((n) => n), this.init(t);
863
+ }
864
+ init() {
865
+ let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
866
+ t.interpolation || (t.interpolation = {
867
+ escapeValue: !0
868
+ });
869
+ const {
870
+ escape: n,
871
+ escapeValue: s,
872
+ useRawValueToEscape: i,
873
+ prefix: r,
874
+ prefixEscaped: a,
875
+ suffix: o,
876
+ suffixEscaped: u,
877
+ formatSeparator: l,
878
+ unescapeSuffix: h,
879
+ unescapePrefix: f,
880
+ nestingPrefix: d,
881
+ nestingPrefixEscaped: y,
882
+ nestingSuffix: x,
883
+ nestingSuffixEscaped: N,
884
+ nestingOptionsSeparator: D,
885
+ maxReplaces: I,
886
+ alwaysFormat: T
887
+ } = t.interpolation;
888
+ this.escape = n !== void 0 ? n : Es, this.escapeValue = s !== void 0 ? s : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = r ? ve(r) : a || "{{", this.suffix = o ? ve(o) : u || "}}", this.formatSeparator = l || ",", this.unescapePrefix = h ? "" : f || "-", this.unescapeSuffix = this.unescapePrefix ? "" : h || "", this.nestingPrefix = d ? ve(d) : y || ve("$t("), this.nestingSuffix = x ? ve(x) : N || ve(")"), this.nestingOptionsSeparator = D || ",", this.maxReplaces = I || 1e3, this.alwaysFormat = T !== void 0 ? T : !1, this.resetRegExp();
889
+ }
890
+ reset() {
891
+ this.options && this.init(this.options);
892
+ }
893
+ resetRegExp() {
894
+ const t = (n, s) => n && n.source === s ? (n.lastIndex = 0, n) : new RegExp(s, "g");
895
+ this.regexp = t(this.regexp, `${this.prefix}(.+?)${this.suffix}`), this.regexpUnescape = t(this.regexpUnescape, `${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`), this.nestingRegexp = t(this.nestingRegexp, `${this.nestingPrefix}(.+?)${this.nestingSuffix}`);
896
+ }
897
+ interpolate(t, n, s, i) {
898
+ let r, a, o;
899
+ const u = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, l = (y) => {
900
+ if (y.indexOf(this.formatSeparator) < 0) {
901
+ const I = bn(n, u, y, this.options.keySeparator, this.options.ignoreJSONStructure);
902
+ return this.alwaysFormat ? this.format(I, void 0, s, {
903
+ ...i,
904
+ ...n,
905
+ interpolationkey: y
906
+ }) : I;
907
+ }
908
+ const x = y.split(this.formatSeparator), N = x.shift().trim(), D = x.join(this.formatSeparator).trim();
909
+ return this.format(bn(n, u, N, this.options.keySeparator, this.options.ignoreJSONStructure), D, s, {
910
+ ...i,
911
+ ...n,
912
+ interpolationkey: N
913
+ });
914
+ };
915
+ this.resetRegExp();
916
+ const h = i && i.missingInterpolationHandler || this.options.missingInterpolationHandler, f = i && i.interpolation && i.interpolation.skipOnVariables !== void 0 ? i.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
917
+ return [{
918
+ regex: this.regexpUnescape,
919
+ safeValue: (y) => Ot(y)
920
+ }, {
921
+ regex: this.regexp,
922
+ safeValue: (y) => this.escapeValue ? Ot(this.escape(y)) : Ot(y)
923
+ }].forEach((y) => {
924
+ for (o = 0; r = y.regex.exec(t); ) {
925
+ const x = r[1].trim();
926
+ if (a = l(x), a === void 0)
927
+ if (typeof h == "function") {
928
+ const D = h(t, r, i);
929
+ a = typeof D == "string" ? D : "";
930
+ } else if (i && Object.prototype.hasOwnProperty.call(i, x))
931
+ a = "";
932
+ else if (f) {
933
+ a = r[0];
934
+ continue;
935
+ } else
936
+ this.logger.warn(`missed to pass in variable ${x} for interpolating ${t}`), a = "";
937
+ else
938
+ typeof a != "string" && !this.useRawValueToEscape && (a = gn(a));
939
+ const N = y.safeValue(a);
940
+ if (t = t.replace(r[0], N), f ? (y.regex.lastIndex += a.length, y.regex.lastIndex -= r[0].length) : y.regex.lastIndex = 0, o++, o >= this.maxReplaces)
941
+ break;
942
+ }
943
+ }), t;
944
+ }
945
+ nest(t, n) {
946
+ let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i, r, a;
947
+ const o = (u, l) => {
948
+ const h = this.nestingOptionsSeparator;
949
+ if (u.indexOf(h) < 0)
950
+ return u;
951
+ const f = u.split(new RegExp(`${h}[ ]*{`));
952
+ let d = `{${f[1]}`;
953
+ u = f[0], d = this.interpolate(d, a);
954
+ const y = d.match(/'/g), x = d.match(/"/g);
955
+ (y && y.length % 2 === 0 && !x || x.length % 2 !== 0) && (d = d.replace(/'/g, '"'));
956
+ try {
957
+ a = JSON.parse(d), l && (a = {
958
+ ...l,
959
+ ...a
960
+ });
961
+ } catch (N) {
962
+ return this.logger.warn(`failed parsing options string in nesting for key ${u}`, N), `${u}${h}${d}`;
963
+ }
964
+ return a.defaultValue && a.defaultValue.indexOf(this.prefix) > -1 && delete a.defaultValue, u;
965
+ };
966
+ for (; i = this.nestingRegexp.exec(t); ) {
967
+ let u = [];
968
+ a = {
969
+ ...s
970
+ }, a = a.replace && typeof a.replace != "string" ? a.replace : a, a.applyPostProcessor = !1, delete a.defaultValue;
971
+ let l = !1;
972
+ if (i[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(i[1])) {
973
+ const h = i[1].split(this.formatSeparator).map((f) => f.trim());
974
+ i[1] = h.shift(), u = h, l = !0;
975
+ }
976
+ if (r = n(o.call(this, i[1].trim(), a), a), r && i[0] === t && typeof r != "string")
977
+ return r;
978
+ typeof r != "string" && (r = gn(r)), r || (this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`), r = ""), l && (r = u.reduce((h, f) => this.format(h, f, s.lng, {
979
+ ...s,
980
+ interpolationkey: i[1].trim()
981
+ }), r.trim())), t = t.replace(i[0], r), this.regexp.lastIndex = 0;
982
+ }
983
+ return t;
984
+ }
985
+ }
986
+ const Ks = (e) => {
987
+ let t = e.toLowerCase().trim();
988
+ const n = {};
989
+ if (e.indexOf("(") > -1) {
990
+ const s = e.split("(");
991
+ t = s[0].toLowerCase().trim();
992
+ const i = s[1].substring(0, s[1].length - 1);
993
+ t === "currency" && i.indexOf(":") < 0 ? n.currency || (n.currency = i.trim()) : t === "relativetime" && i.indexOf(":") < 0 ? n.range || (n.range = i.trim()) : i.split(";").forEach((a) => {
994
+ if (a) {
995
+ const [o, ...u] = a.split(":"), l = u.join(":").trim().replace(/^'+|'+$/g, ""), h = o.trim();
996
+ n[h] || (n[h] = l), l === "false" && (n[h] = !1), l === "true" && (n[h] = !0), isNaN(l) || (n[h] = parseInt(l, 10));
997
+ }
998
+ });
999
+ }
1000
+ return {
1001
+ formatName: t,
1002
+ formatOptions: n
1003
+ };
1004
+ }, we = (e) => {
1005
+ const t = {};
1006
+ return (n, s, i) => {
1007
+ let r = i;
1008
+ i && i.interpolationkey && i.formatParams && i.formatParams[i.interpolationkey] && i[i.interpolationkey] && (r = {
1009
+ ...r,
1010
+ [i.interpolationkey]: void 0
1011
+ });
1012
+ const a = s + JSON.stringify(r);
1013
+ let o = t[a];
1014
+ return o || (o = e(rt(s), i), t[a] = o), o(n);
1015
+ };
1016
+ };
1017
+ class Bs {
1018
+ constructor() {
1019
+ let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1020
+ this.logger = Z.create("formatter"), this.options = t, this.formats = {
1021
+ number: we((n, s) => {
1022
+ const i = new Intl.NumberFormat(n, {
1023
+ ...s
1024
+ });
1025
+ return (r) => i.format(r);
1026
+ }),
1027
+ currency: we((n, s) => {
1028
+ const i = new Intl.NumberFormat(n, {
1029
+ ...s,
1030
+ style: "currency"
1031
+ });
1032
+ return (r) => i.format(r);
1033
+ }),
1034
+ datetime: we((n, s) => {
1035
+ const i = new Intl.DateTimeFormat(n, {
1036
+ ...s
1037
+ });
1038
+ return (r) => i.format(r);
1039
+ }),
1040
+ relativetime: we((n, s) => {
1041
+ const i = new Intl.RelativeTimeFormat(n, {
1042
+ ...s
1043
+ });
1044
+ return (r) => i.format(r, s.range || "day");
1045
+ }),
1046
+ list: we((n, s) => {
1047
+ const i = new Intl.ListFormat(n, {
1048
+ ...s
1049
+ });
1050
+ return (r) => i.format(r);
1051
+ })
1052
+ }, this.init(t);
1053
+ }
1054
+ init(t) {
1055
+ const s = (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
1056
+ interpolation: {}
1057
+ }).interpolation;
1058
+ this.formatSeparator = s.formatSeparator ? s.formatSeparator : s.formatSeparator || ",";
1059
+ }
1060
+ add(t, n) {
1061
+ this.formats[t.toLowerCase().trim()] = n;
1062
+ }
1063
+ addCached(t, n) {
1064
+ this.formats[t.toLowerCase().trim()] = we(n);
1065
+ }
1066
+ format(t, n, s) {
1067
+ let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
1068
+ const r = n.split(this.formatSeparator);
1069
+ if (r.length > 1 && r[0].indexOf("(") > 1 && r[0].indexOf(")") < 0 && r.find((o) => o.indexOf(")") > -1)) {
1070
+ const o = r.findIndex((u) => u.indexOf(")") > -1);
1071
+ r[0] = [r[0], ...r.splice(1, o)].join(this.formatSeparator);
1072
+ }
1073
+ return r.reduce((o, u) => {
1074
+ const {
1075
+ formatName: l,
1076
+ formatOptions: h
1077
+ } = Ks(u);
1078
+ if (this.formats[l]) {
1079
+ let f = o;
1080
+ try {
1081
+ const d = i && i.formatParams && i.formatParams[i.interpolationkey] || {}, y = d.locale || d.lng || i.locale || i.lng || s;
1082
+ f = this.formats[l](o, y, {
1083
+ ...h,
1084
+ ...i,
1085
+ ...d
1086
+ });
1087
+ } catch (d) {
1088
+ this.logger.warn(d);
1089
+ }
1090
+ return f;
1091
+ } else
1092
+ this.logger.warn(`there was no format function for ${l}`);
1093
+ return o;
1094
+ }, t);
1095
+ }
1096
+ }
1097
+ const qs = (e, t) => {
1098
+ e.pending[t] !== void 0 && (delete e.pending[t], e.pendingCount--);
1099
+ };
1100
+ class Js extends ct {
1101
+ constructor(t, n, s) {
1102
+ let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
1103
+ super(), this.backend = t, this.store = n, this.services = s, this.languageUtils = s.languageUtils, this.options = i, this.logger = Z.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = i.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = i.maxRetries >= 0 ? i.maxRetries : 5, this.retryTimeout = i.retryTimeout >= 1 ? i.retryTimeout : 350, this.state = {}, this.queue = [], this.backend && this.backend.init && this.backend.init(s, i.backend, i);
1104
+ }
1105
+ queueLoad(t, n, s, i) {
1106
+ const r = {}, a = {}, o = {}, u = {};
1107
+ return t.forEach((l) => {
1108
+ let h = !0;
1109
+ n.forEach((f) => {
1110
+ const d = `${l}|${f}`;
1111
+ !s.reload && this.store.hasResourceBundle(l, f) ? this.state[d] = 2 : this.state[d] < 0 || (this.state[d] === 1 ? a[d] === void 0 && (a[d] = !0) : (this.state[d] = 1, h = !1, a[d] === void 0 && (a[d] = !0), r[d] === void 0 && (r[d] = !0), u[f] === void 0 && (u[f] = !0)));
1112
+ }), h || (o[l] = !0);
1113
+ }), (Object.keys(r).length || Object.keys(a).length) && this.queue.push({
1114
+ pending: a,
1115
+ pendingCount: Object.keys(a).length,
1116
+ loaded: {},
1117
+ errors: [],
1118
+ callback: i
1119
+ }), {
1120
+ toLoad: Object.keys(r),
1121
+ pending: Object.keys(a),
1122
+ toLoadLanguages: Object.keys(o),
1123
+ toLoadNamespaces: Object.keys(u)
1124
+ };
1125
+ }
1126
+ loaded(t, n, s) {
1127
+ const i = t.split("|"), r = i[0], a = i[1];
1128
+ n && this.emit("failedLoading", r, a, n), !n && s && this.store.addResourceBundle(r, a, s, void 0, void 0, {
1129
+ skipCopy: !0
1130
+ }), this.state[t] = n ? -1 : 2, n && s && (this.state[t] = 0);
1131
+ const o = {};
1132
+ this.queue.forEach((u) => {
1133
+ Rs(u.loaded, [r], a), qs(u, t), n && u.errors.push(n), u.pendingCount === 0 && !u.done && (Object.keys(u.loaded).forEach((l) => {
1134
+ o[l] || (o[l] = {});
1135
+ const h = u.loaded[l];
1136
+ h.length && h.forEach((f) => {
1137
+ o[l][f] === void 0 && (o[l][f] = !0);
1138
+ });
1139
+ }), u.done = !0, u.errors.length ? u.callback(u.errors) : u.callback());
1140
+ }), this.emit("loaded", o), this.queue = this.queue.filter((u) => !u.done);
1141
+ }
1142
+ read(t, n, s) {
1143
+ let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0, r = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : this.retryTimeout, a = arguments.length > 5 ? arguments[5] : void 0;
1144
+ if (!t.length)
1145
+ return a(null, {});
1146
+ if (this.readingCalls >= this.maxParallelReads) {
1147
+ this.waitingReads.push({
1148
+ lng: t,
1149
+ ns: n,
1150
+ fcName: s,
1151
+ tried: i,
1152
+ wait: r,
1153
+ callback: a
1154
+ });
1155
+ return;
1156
+ }
1157
+ this.readingCalls++;
1158
+ const o = (l, h) => {
1159
+ if (this.readingCalls--, this.waitingReads.length > 0) {
1160
+ const f = this.waitingReads.shift();
1161
+ this.read(f.lng, f.ns, f.fcName, f.tried, f.wait, f.callback);
1162
+ }
1163
+ if (l && h && i < this.maxRetries) {
1164
+ setTimeout(() => {
1165
+ this.read.call(this, t, n, s, i + 1, r * 2, a);
1166
+ }, r);
1167
+ return;
1168
+ }
1169
+ a(l, h);
1170
+ }, u = this.backend[s].bind(this.backend);
1171
+ if (u.length === 2) {
1172
+ try {
1173
+ const l = u(t, n);
1174
+ l && typeof l.then == "function" ? l.then((h) => o(null, h)).catch(o) : o(null, l);
1175
+ } catch (l) {
1176
+ o(l);
1177
+ }
1178
+ return;
1179
+ }
1180
+ return u(t, n, o);
1181
+ }
1182
+ prepareLoading(t, n) {
1183
+ let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = arguments.length > 3 ? arguments[3] : void 0;
1184
+ if (!this.backend)
1185
+ return this.logger.warn("No backend was added via i18next.use. Will not load resources."), i && i();
1186
+ typeof t == "string" && (t = this.languageUtils.toResolveHierarchy(t)), typeof n == "string" && (n = [n]);
1187
+ const r = this.queueLoad(t, n, s, i);
1188
+ if (!r.toLoad.length)
1189
+ return r.pending.length || i(), null;
1190
+ r.toLoad.forEach((a) => {
1191
+ this.loadOne(a);
1192
+ });
1193
+ }
1194
+ load(t, n, s) {
1195
+ this.prepareLoading(t, n, {}, s);
1196
+ }
1197
+ reload(t, n, s) {
1198
+ this.prepareLoading(t, n, {
1199
+ reload: !0
1200
+ }, s);
1201
+ }
1202
+ loadOne(t) {
1203
+ let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
1204
+ const s = t.split("|"), i = s[0], r = s[1];
1205
+ this.read(i, r, "read", void 0, void 0, (a, o) => {
1206
+ a && this.logger.warn(`${n}loading namespace ${r} for language ${i} failed`, a), !a && o && this.logger.log(`${n}loaded namespace ${r} for language ${i}`, o), this.loaded(t, a, o);
1207
+ });
1208
+ }
1209
+ saveMissing(t, n, s, i, r) {
1210
+ let a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {}, o = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : () => {
1211
+ };
1212
+ if (this.services.utils && this.services.utils.hasLoadedNamespace && !this.services.utils.hasLoadedNamespace(n)) {
1213
+ this.logger.warn(`did not save key "${s}" as the namespace "${n}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");
1214
+ return;
1215
+ }
1216
+ if (!(s == null || s === "")) {
1217
+ if (this.backend && this.backend.create) {
1218
+ const u = {
1219
+ ...a,
1220
+ isUpdate: r
1221
+ }, l = this.backend.create.bind(this.backend);
1222
+ if (l.length < 6)
1223
+ try {
1224
+ let h;
1225
+ l.length === 5 ? h = l(t, n, s, i, u) : h = l(t, n, s, i), h && typeof h.then == "function" ? h.then((f) => o(null, f)).catch(o) : o(null, h);
1226
+ } catch (h) {
1227
+ o(h);
1228
+ }
1229
+ else
1230
+ l(t, n, s, i, o, u);
1231
+ }
1232
+ !t || !t[0] || this.store.addResource(t[0], n, s, i);
1233
+ }
1234
+ }
1235
+ }
1236
+ const xn = () => ({
1237
+ debug: !1,
1238
+ initImmediate: !0,
1239
+ ns: ["translation"],
1240
+ defaultNS: ["translation"],
1241
+ fallbackLng: ["dev"],
1242
+ fallbackNS: !1,
1243
+ supportedLngs: !1,
1244
+ nonExplicitSupportedLngs: !1,
1245
+ load: "all",
1246
+ preload: !1,
1247
+ simplifyPluralSuffix: !0,
1248
+ keySeparator: ".",
1249
+ nsSeparator: ":",
1250
+ pluralSeparator: "_",
1251
+ contextSeparator: "_",
1252
+ partialBundledLanguages: !1,
1253
+ saveMissing: !1,
1254
+ updateMissing: !1,
1255
+ saveMissingTo: "fallback",
1256
+ saveMissingPlurals: !0,
1257
+ missingKeyHandler: !1,
1258
+ missingInterpolationHandler: !1,
1259
+ postProcess: !1,
1260
+ postProcessPassResolved: !1,
1261
+ returnNull: !1,
1262
+ returnEmptyString: !0,
1263
+ returnObjects: !1,
1264
+ joinArrays: !1,
1265
+ returnedObjectHandler: !1,
1266
+ parseMissingKeyHandler: !1,
1267
+ appendNamespaceToMissingKey: !1,
1268
+ appendNamespaceToCIMode: !1,
1269
+ overloadTranslationOptionHandler: (e) => {
1270
+ let t = {};
1271
+ if (typeof e[1] == "object" && (t = e[1]), typeof e[1] == "string" && (t.defaultValue = e[1]), typeof e[2] == "string" && (t.tDescription = e[2]), typeof e[2] == "object" || typeof e[3] == "object") {
1272
+ const n = e[3] || e[2];
1273
+ Object.keys(n).forEach((s) => {
1274
+ t[s] = n[s];
1275
+ });
1276
+ }
1277
+ return t;
1278
+ },
1279
+ interpolation: {
1280
+ escapeValue: !0,
1281
+ format: (e) => e,
1282
+ prefix: "{{",
1283
+ suffix: "}}",
1284
+ formatSeparator: ",",
1285
+ unescapePrefix: "-",
1286
+ nestingPrefix: "$t(",
1287
+ nestingSuffix: ")",
1288
+ nestingOptionsSeparator: ",",
1289
+ maxReplaces: 1e3,
1290
+ skipOnVariables: !0
1291
+ }
1292
+ }), kn = (e) => (typeof e.ns == "string" && (e.ns = [e.ns]), typeof e.fallbackLng == "string" && (e.fallbackLng = [e.fallbackLng]), typeof e.fallbackNS == "string" && (e.fallbackNS = [e.fallbackNS]), e.supportedLngs && e.supportedLngs.indexOf("cimode") < 0 && (e.supportedLngs = e.supportedLngs.concat(["cimode"])), e), Ze = () => {
1293
+ }, Zs = (e) => {
1294
+ Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((n) => {
1295
+ typeof e[n] == "function" && (e[n] = e[n].bind(e));
1296
+ });
1297
+ };
1298
+ class je extends ct {
1299
+ constructor() {
1300
+ let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0;
1301
+ if (super(), this.options = kn(t), this.services = {}, this.logger = Z, this.modules = {
1302
+ external: []
1303
+ }, Zs(this), n && !this.isInitialized && !t.isClone) {
1304
+ if (!this.options.initImmediate)
1305
+ return this.init(t, n), this;
1306
+ setTimeout(() => {
1307
+ this.init(t, n);
1308
+ }, 0);
1309
+ }
1310
+ }
1311
+ init() {
1312
+ var t = this;
1313
+ let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, s = arguments.length > 1 ? arguments[1] : void 0;
1314
+ this.isInitializing = !0, typeof n == "function" && (s = n, n = {}), !n.defaultNS && n.defaultNS !== !1 && n.ns && (typeof n.ns == "string" ? n.defaultNS = n.ns : n.ns.indexOf("translation") < 0 && (n.defaultNS = n.ns[0]));
1315
+ const i = xn();
1316
+ this.options = {
1317
+ ...i,
1318
+ ...this.options,
1319
+ ...kn(n)
1320
+ }, this.options.compatibilityAPI !== "v1" && (this.options.interpolation = {
1321
+ ...i.interpolation,
1322
+ ...this.options.interpolation
1323
+ }), n.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = n.keySeparator), n.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = n.nsSeparator);
1324
+ const r = (h) => h ? typeof h == "function" ? new h() : h : null;
1325
+ if (!this.options.isClone) {
1326
+ this.modules.logger ? Z.init(r(this.modules.logger), this.options) : Z.init(null, this.options);
1327
+ let h;
1328
+ this.modules.formatter ? h = this.modules.formatter : typeof Intl < "u" && (h = Bs);
1329
+ const f = new wn(this.options);
1330
+ this.store = new _n(this.options.resources, this.options);
1331
+ const d = this.services;
1332
+ d.logger = Z, d.resourceStore = this.store, d.languageUtils = f, d.pluralResolver = new Gs(f, {
1333
+ prepend: this.options.pluralSeparator,
1334
+ compatibilityJSON: this.options.compatibilityJSON,
1335
+ simplifyPluralSuffix: this.options.simplifyPluralSuffix
1336
+ }), h && (!this.options.interpolation.format || this.options.interpolation.format === i.interpolation.format) && (d.formatter = r(h), d.formatter.init(d, this.options), this.options.interpolation.format = d.formatter.format.bind(d.formatter)), d.interpolator = new zs(this.options), d.utils = {
1337
+ hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
1338
+ }, d.backendConnector = new Js(r(this.modules.backend), d.resourceStore, d, this.options), d.backendConnector.on("*", function(y) {
1339
+ for (var x = arguments.length, N = new Array(x > 1 ? x - 1 : 0), D = 1; D < x; D++)
1340
+ N[D - 1] = arguments[D];
1341
+ t.emit(y, ...N);
1342
+ }), this.modules.languageDetector && (d.languageDetector = r(this.modules.languageDetector), d.languageDetector.init && d.languageDetector.init(d, this.options.detection, this.options)), this.modules.i18nFormat && (d.i18nFormat = r(this.modules.i18nFormat), d.i18nFormat.init && d.i18nFormat.init(this)), this.translator = new at(this.services, this.options), this.translator.on("*", function(y) {
1343
+ for (var x = arguments.length, N = new Array(x > 1 ? x - 1 : 0), D = 1; D < x; D++)
1344
+ N[D - 1] = arguments[D];
1345
+ t.emit(y, ...N);
1346
+ }), this.modules.external.forEach((y) => {
1347
+ y.init && y.init(this);
1348
+ });
1349
+ }
1350
+ if (this.format = this.options.interpolation.format, s || (s = Ze), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
1351
+ const h = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
1352
+ h.length > 0 && h[0] !== "dev" && (this.options.lng = h[0]);
1353
+ }
1354
+ !this.services.languageDetector && !this.options.lng && this.logger.warn("init: no languageDetector is used and no lng is defined"), ["getResource", "hasResourceBundle", "getResourceBundle", "getDataByLanguage"].forEach((h) => {
1355
+ this[h] = function() {
1356
+ return t.store[h](...arguments);
1357
+ };
1358
+ }), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((h) => {
1359
+ this[h] = function() {
1360
+ return t.store[h](...arguments), t;
1361
+ };
1362
+ });
1363
+ const u = Te(), l = () => {
1364
+ const h = (f, d) => {
1365
+ 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), u.resolve(d), s(f, d);
1366
+ };
1367
+ if (this.languages && this.options.compatibilityAPI !== "v1" && !this.isInitialized)
1368
+ return h(null, this.t.bind(this));
1369
+ this.changeLanguage(this.options.lng, h);
1370
+ };
1371
+ return this.options.resources || !this.options.initImmediate ? l() : setTimeout(l, 0), u;
1372
+ }
1373
+ loadResources(t) {
1374
+ let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Ze;
1375
+ const i = typeof t == "string" ? t : this.language;
1376
+ if (typeof t == "function" && (s = t), !this.options.resources || this.options.partialBundledLanguages) {
1377
+ if (i && i.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0))
1378
+ return s();
1379
+ const r = [], a = (o) => {
1380
+ if (!o || o === "cimode")
1381
+ return;
1382
+ this.services.languageUtils.toResolveHierarchy(o).forEach((l) => {
1383
+ l !== "cimode" && r.indexOf(l) < 0 && r.push(l);
1384
+ });
1385
+ };
1386
+ i ? a(i) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((u) => a(u)), this.options.preload && this.options.preload.forEach((o) => a(o)), this.services.backendConnector.load(r, this.options.ns, (o) => {
1387
+ !o && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), s(o);
1388
+ });
1389
+ } else
1390
+ s(null);
1391
+ }
1392
+ reloadResources(t, n, s) {
1393
+ const i = Te();
1394
+ return typeof t == "function" && (s = t, t = void 0), typeof n == "function" && (s = n, n = void 0), t || (t = this.languages), n || (n = this.options.ns), s || (s = Ze), this.services.backendConnector.reload(t, n, (r) => {
1395
+ i.resolve(), s(r);
1396
+ }), i;
1397
+ }
1398
+ use(t) {
1399
+ if (!t)
1400
+ throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
1401
+ if (!t.type)
1402
+ throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
1403
+ return t.type === "backend" && (this.modules.backend = t), (t.type === "logger" || t.log && t.warn && t.error) && (this.modules.logger = t), t.type === "languageDetector" && (this.modules.languageDetector = t), t.type === "i18nFormat" && (this.modules.i18nFormat = t), t.type === "postProcessor" && Pn.addPostProcessor(t), t.type === "formatter" && (this.modules.formatter = t), t.type === "3rdParty" && this.modules.external.push(t), this;
1404
+ }
1405
+ setResolvedLanguage(t) {
1406
+ if (!(!t || !this.languages) && !(["cimode", "dev"].indexOf(t) > -1))
1407
+ for (let n = 0; n < this.languages.length; n++) {
1408
+ const s = this.languages[n];
1409
+ if (!(["cimode", "dev"].indexOf(s) > -1) && this.store.hasLanguageSomeTranslations(s)) {
1410
+ this.resolvedLanguage = s;
1411
+ break;
1412
+ }
1413
+ }
1414
+ }
1415
+ changeLanguage(t, n) {
1416
+ var s = this;
1417
+ this.isLanguageChangingTo = t;
1418
+ const i = Te();
1419
+ this.emit("languageChanging", t);
1420
+ const r = (u) => {
1421
+ this.language = u, this.languages = this.services.languageUtils.toResolveHierarchy(u), this.resolvedLanguage = void 0, this.setResolvedLanguage(u);
1422
+ }, a = (u, l) => {
1423
+ l ? (r(l), this.translator.changeLanguage(l), this.isLanguageChangingTo = void 0, this.emit("languageChanged", l), this.logger.log("languageChanged", l)) : this.isLanguageChangingTo = void 0, i.resolve(function() {
1424
+ return s.t(...arguments);
1425
+ }), n && n(u, function() {
1426
+ return s.t(...arguments);
1427
+ });
1428
+ }, o = (u) => {
1429
+ !t && !u && this.services.languageDetector && (u = []);
1430
+ const l = typeof u == "string" ? u : this.services.languageUtils.getBestMatchFromCodes(u);
1431
+ l && (this.language || r(l), this.translator.language || this.translator.changeLanguage(l), this.services.languageDetector && this.services.languageDetector.cacheUserLanguage && this.services.languageDetector.cacheUserLanguage(l)), this.loadResources(l, (h) => {
1432
+ a(h, l);
1433
+ });
1434
+ };
1435
+ return !t && this.services.languageDetector && !this.services.languageDetector.async ? o(this.services.languageDetector.detect()) : !t && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(o) : this.services.languageDetector.detect(o) : o(t), i;
1436
+ }
1437
+ getFixedT(t, n, s) {
1438
+ var i = this;
1439
+ const r = function(a, o) {
1440
+ let u;
1441
+ if (typeof o != "object") {
1442
+ for (var l = arguments.length, h = new Array(l > 2 ? l - 2 : 0), f = 2; f < l; f++)
1443
+ h[f - 2] = arguments[f];
1444
+ u = i.options.overloadTranslationOptionHandler([a, o].concat(h));
1445
+ } else
1446
+ u = {
1447
+ ...o
1448
+ };
1449
+ u.lng = u.lng || r.lng, u.lngs = u.lngs || r.lngs, u.ns = u.ns || r.ns, u.keyPrefix !== "" && (u.keyPrefix = u.keyPrefix || s || r.keyPrefix);
1450
+ const d = i.options.keySeparator || ".";
1451
+ let y;
1452
+ return u.keyPrefix && Array.isArray(a) ? y = a.map((x) => `${u.keyPrefix}${d}${x}`) : y = u.keyPrefix ? `${u.keyPrefix}${d}${a}` : a, i.t(y, u);
1453
+ };
1454
+ return typeof t == "string" ? r.lng = t : r.lngs = t, r.ns = n, r.keyPrefix = s, r;
1455
+ }
1456
+ t() {
1457
+ return this.translator && this.translator.translate(...arguments);
1458
+ }
1459
+ exists() {
1460
+ return this.translator && this.translator.exists(...arguments);
1461
+ }
1462
+ setDefaultNamespace(t) {
1463
+ this.options.defaultNS = t;
1464
+ }
1465
+ hasLoadedNamespace(t) {
1466
+ let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1467
+ if (!this.isInitialized)
1468
+ return this.logger.warn("hasLoadedNamespace: i18next was not initialized", this.languages), !1;
1469
+ if (!this.languages || !this.languages.length)
1470
+ return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty", this.languages), !1;
1471
+ const s = n.lng || this.resolvedLanguage || this.languages[0], i = this.options ? this.options.fallbackLng : !1, r = this.languages[this.languages.length - 1];
1472
+ if (s.toLowerCase() === "cimode")
1473
+ return !0;
1474
+ const a = (o, u) => {
1475
+ const l = this.services.backendConnector.state[`${o}|${u}`];
1476
+ return l === -1 || l === 0 || l === 2;
1477
+ };
1478
+ if (n.precheck) {
1479
+ const o = n.precheck(this, a);
1480
+ if (o !== void 0)
1481
+ return o;
1482
+ }
1483
+ return !!(this.hasResourceBundle(s, t) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || a(s, t) && (!i || a(r, t)));
1484
+ }
1485
+ loadNamespaces(t, n) {
1486
+ const s = Te();
1487
+ return this.options.ns ? (typeof t == "string" && (t = [t]), t.forEach((i) => {
1488
+ this.options.ns.indexOf(i) < 0 && this.options.ns.push(i);
1489
+ }), this.loadResources((i) => {
1490
+ s.resolve(), n && n(i);
1491
+ }), s) : (n && n(), Promise.resolve());
1492
+ }
1493
+ loadLanguages(t, n) {
1494
+ const s = Te();
1495
+ typeof t == "string" && (t = [t]);
1496
+ const i = this.options.preload || [], r = t.filter((a) => i.indexOf(a) < 0 && this.services.languageUtils.isSupportedCode(a));
1497
+ return r.length ? (this.options.preload = i.concat(r), this.loadResources((a) => {
1498
+ s.resolve(), n && n(a);
1499
+ }), s) : (n && n(), Promise.resolve());
1500
+ }
1501
+ dir(t) {
1502
+ if (t || (t = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !t)
1503
+ return "rtl";
1504
+ const n = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], s = this.services && this.services.languageUtils || new wn(xn());
1505
+ return n.indexOf(s.getLanguagePartFromCode(t)) > -1 || t.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
1506
+ }
1507
+ static createInstance() {
1508
+ let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0;
1509
+ return new je(t, n);
1510
+ }
1511
+ cloneInstance() {
1512
+ let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Ze;
1513
+ const s = t.forkResourceStore;
1514
+ s && delete t.forkResourceStore;
1515
+ const i = {
1516
+ ...this.options,
1517
+ ...t,
1518
+ isClone: !0
1519
+ }, r = new je(i);
1520
+ return (t.debug !== void 0 || t.prefix !== void 0) && (r.logger = r.logger.clone(t)), ["store", "services", "language"].forEach((o) => {
1521
+ r[o] = this[o];
1522
+ }), r.services = {
1523
+ ...this.services
1524
+ }, r.services.utils = {
1525
+ hasLoadedNamespace: r.hasLoadedNamespace.bind(r)
1526
+ }, s && (r.store = new _n(this.store.data, i), r.services.resourceStore = r.store), r.translator = new at(r.services, i), r.translator.on("*", function(o) {
1527
+ for (var u = arguments.length, l = new Array(u > 1 ? u - 1 : 0), h = 1; h < u; h++)
1528
+ l[h - 1] = arguments[h];
1529
+ r.emit(o, ...l);
1530
+ }), r.init(i, n), r.translator.options = i, r.translator.backendConnector.services.utils = {
1531
+ hasLoadedNamespace: r.hasLoadedNamespace.bind(r)
1532
+ }, r;
1533
+ }
1534
+ toJSON() {
1535
+ return {
1536
+ options: this.options,
1537
+ store: this.store,
1538
+ language: this.language,
1539
+ languages: this.languages,
1540
+ resolvedLanguage: this.resolvedLanguage
1541
+ };
1542
+ }
1543
+ }
1544
+ const F = je.createInstance();
1545
+ F.createInstance = je.createInstance;
1546
+ F.createInstance;
1547
+ F.dir;
1548
+ F.init;
1549
+ F.loadResources;
1550
+ F.reloadResources;
1551
+ F.use;
1552
+ F.changeLanguage;
1553
+ F.getFixedT;
1554
+ const Mt = F.t;
1555
+ F.exists;
1556
+ F.setDefaultNamespace;
1557
+ F.hasLoadedNamespace;
1558
+ F.loadNamespaces;
1559
+ F.loadLanguages;
1560
+ const Dt = {
1561
+ d1: "<:d1:1159542168738873455>",
1562
+ d2: "<:d2:1159542071049334814>",
1563
+ d3: "<:d3:1159542073914032191>",
1564
+ d4: "<:d4:1159542075512082543>",
1565
+ d5: "<:d5:1159542078179651614>",
1566
+ d6: "<:d6:1159542079458910229>",
1567
+ revolutionary: "<:revolutionnaire:648245785133056020>",
1568
+ pirate: "<:pirate:648245785053626368>",
1569
+ marine: "<:marine:648245784407441429>",
1570
+ berry: "<:berry:1153734056035504158>",
1571
+ xp: "<:xp:1084914564379975772>",
1572
+ success: "<:success:1186707379534954506>",
1573
+ hp: "<:hp:1257776163955277824>",
1574
+ paper: "📄",
1575
+ rock: "🪨",
1576
+ scissor: "✂️",
1577
+ pray: "<:Ryokugyu_pray:1147542990844334280>",
1578
+ gun: "<:fujigun:1050120413243506688>",
1579
+ promise: "<:Luffy_Promise:1027626431565529099>",
1580
+ love: "<:Lawve:1050916817801072730>",
1581
+ note: "<:imsusnote:1136952496456224778>",
1582
+ watching: "<:Carrot_Watching:1024736915922104360>",
1583
+ card: "<:carteDos:1168580012258103387>",
1584
+ cards: {
1585
+ spades: {
1586
+ 1: "<:asdepique:1168560615170768967>",
1587
+ 2: "<:2depique:1168559430955184259>",
1588
+ 3: "<:3depique:1168559437548638248>",
1589
+ 4: "<:4depique:1168559679354445934>",
1590
+ 5: "<:5depique:1168559725504372796>",
1591
+ 6: "<:6depique:1168559764528185394>",
1592
+ 7: "<:7depique:1168559459392553061>",
1593
+ 8: "<:8depique:1168559887870083162>",
1594
+ 9: "<:9depique:1168559471392464988>",
1595
+ 10: "<:10depique:1168559958435053598>",
1596
+ J: "<:valetdepique:1168560676202086523>",
1597
+ Q: "<:reinedepique:1168560621722284083>",
1598
+ K: "<:roidepique:1168560628189888634>"
1599
+ },
1600
+ diamonds: {
1601
+ 1: "<:asdecarreau:1168560612742279308>",
1602
+ 2: "<:2decarreau:1168559427788472330>",
1603
+ 3: "<:3decarreau:1168559434138669236>",
1604
+ 4: "<:4decarreau:1168559440774041621>",
1605
+ 5: "<:5decarreau:1168559445308084256>",
1606
+ 6: "<:6decarreau:1168559763462819940>",
1607
+ 7: "<:7decarreau:1168559845872517172>",
1608
+ 8: "<:8decarreau:1168559888989949994>",
1609
+ 9: "<:9decarreau:1168559942215667804>",
1610
+ 10: "<:10decarreau:1168559475481907230>",
1611
+ J: "<:valetdecarreau:1168560633634095234>",
1612
+ Q: "<:reinedecarreau:1168560618182291577>",
1613
+ K: "<:roidecarreau:1168560626185011281>"
1614
+ },
1615
+ hearts: {
1616
+ 1: "<:asdecoeur:1168560613971214368>",
1617
+ 2: "<:2decoeur:1168559428681859073>",
1618
+ 3: "<:3decoeur:1168559435950592060>",
1619
+ 4: "<:4decoeur:1168559442074284073>",
1620
+ 5: "<:5decoeur:1168559723226865725>",
1621
+ 6: "<:6decoeur:1168559452509708298>",
1622
+ 7: "<:7decoeur:1168559457769365684>",
1623
+ 8: "<:8decoeur:1168559463368757339>",
1624
+ 9: "<:9decoeur:1168559938897989672>",
1625
+ 10: "<:10decoeur:1168559477658751006>",
1626
+ J: "<:valetdecoeur:1168560635991298160>",
1627
+ Q: "<:reinedecoeur:1168560619855822940>",
1628
+ K: "<:roidecoeur:1168560678378950716>"
1629
+ },
1630
+ clubs: {
1631
+ 1: "<:asdetrfle:1168560617444081834>",
1632
+ 2: "<:2detrfle:1168559432242831512>",
1633
+ 3: "<:3detrfle:1168559439440269403>",
1634
+ 4: "<:4detrfle:1168559677936762982>",
1635
+ 5: "<:5detrfle:1168559449540145153>",
1636
+ 6: "<:6detrfle:1168559761260818594>",
1637
+ 7: "<:7detrfle:1168559844748435549>",
1638
+ 8: "<:8detrfle:1168559466334142575>",
1639
+ 9: "<:9detrfle:1168559940953194576>",
1640
+ 10: "<:10detrfle:1168559959802380288>",
1641
+ J: "<:valetdetrfle:1168560610531885137>",
1642
+ Q: "<:reinedetrfle:1168560623228026972>",
1643
+ K: "<:roidetrfle:1168560675543580712>"
1644
+ }
1645
+ },
1646
+ factions: {
1647
+ b_citizen_COMMON: "<:BasiqueOPFRbois:1175507882188484761>",
1648
+ b_citizen_RARE: "<:BasiqueOPFRargent:1175507880724668488>",
1649
+ b_citizen_EPIC: "<:BasiqueOPFRor:1175507883501289512>",
1650
+ b_citizen_LEGENDARY: "<:BasiqueOPFRplatine:1175507886714134548>",
1651
+ b_citizen_MYTHIC: "<:BasiqueOPFRultime:1175507889553670264>",
1652
+ b_marine_COMMON: "<:Marinebois:1175507936953512036>",
1653
+ b_marine_RARE: "<:Marineargent:1175508322351321178>",
1654
+ b_marine_EPIC: "<:Marineor:1175508300603863132>",
1655
+ b_marine_LEGENDARY: "<:Marineplatine:1175507940803879012>",
1656
+ b_marine_MYTHIC: "<:Marineultime:1175508279590395977>",
1657
+ b_revolutionary_COMMON: "<:RvoBois:1175507954779295810>",
1658
+ b_revolutionary_RARE: "<:RvoArgent:1175508199118483457>",
1659
+ b_revolutionary_EPIC: "<:RvoOr:1175508111885344819>",
1660
+ b_revolutionary_LEGENDARY: "<:RvoPlatine:1175507958378008756>",
1661
+ b_revolutionary_MYTHIC: "<:RvoUltime:1175508127815319612>",
1662
+ b_pirate_COMMON: "<:Piratebois:1175508259768115272>",
1663
+ b_pirate_RARE: "<:Pirateargent:1175507943987363941>",
1664
+ b_pirate_EPIC: "<:Pirateor:1175508240243621928>",
1665
+ b_pirate_LEGENDARY: "<:Pirateplatine:1175507949578358804>",
1666
+ b_pirate_MYTHIC: "<:Pirateultime:1175507951709061150>"
1667
+ },
1668
+ characteristics: {
1669
+ vitality: "<:vitality:1251861015277338675>",
1670
+ strength: "<:strength:1251860738595618838>",
1671
+ agility: "<:agility:1251860734145728596>",
1672
+ intelligence: "<:intelligence:1251860736943194144>",
1673
+ chance: "<:chance:1251860735827513425>",
1674
+ wisdom: "<:wisdom:1251861017231884378>"
1675
+ },
1676
+ equipment_adventurer_strap: "<:adventurer_strap:1253041086147068035>",
1677
+ equipment_adventurer_collar: "<:adventurer_collar:1253041084611690567>",
1678
+ equipment_adventurer_boots: "<:adventurer_boots:1253041083252867123>",
1679
+ equipment_adventurer_helmet: "<:Casque_cuir:1256965718432550953>",
1680
+ equipment_adventurer_weapon: "<:Dague_cuir:1256965714141515837>",
1681
+ equipment_adventurer_belt: "<:Ceinture_cuir:1256965593333108838>"
1682
+ }, Yt = (e) => new Intl.NumberFormat("de-DE").format(e);
1683
+ //! moment.js
1684
+ //! version : 2.30.1
1685
+ //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
1686
+ //! license : MIT
1687
+ //! momentjs.com
1688
+ var Tn;
1689
+ function g() {
1690
+ return Tn.apply(null, arguments);
1691
+ }
1692
+ function Qs(e) {
1693
+ Tn = e;
1694
+ }
1695
+ function K(e) {
1696
+ return e instanceof Array || Object.prototype.toString.call(e) === "[object Array]";
1697
+ }
1698
+ function ye(e) {
1699
+ return e != null && Object.prototype.toString.call(e) === "[object Object]";
1700
+ }
1701
+ function S(e, t) {
1702
+ return Object.prototype.hasOwnProperty.call(e, t);
1703
+ }
1704
+ function $t(e) {
1705
+ if (Object.getOwnPropertyNames)
1706
+ return Object.getOwnPropertyNames(e).length === 0;
1707
+ var t;
1708
+ for (t in e)
1709
+ if (S(e, t))
1710
+ return !1;
1711
+ return !0;
1712
+ }
1713
+ function A(e) {
1714
+ return e === void 0;
1715
+ }
1716
+ function oe(e) {
1717
+ return typeof e == "number" || Object.prototype.toString.call(e) === "[object Number]";
1718
+ }
1719
+ function We(e) {
1720
+ return e instanceof Date || Object.prototype.toString.call(e) === "[object Date]";
1721
+ }
1722
+ function En(e, t) {
1723
+ var n = [], s, i = e.length;
1724
+ for (s = 0; s < i; ++s)
1725
+ n.push(t(e[s], s));
1726
+ return n;
1727
+ }
1728
+ function de(e, t) {
1729
+ for (var n in t)
1730
+ S(t, n) && (e[n] = t[n]);
1731
+ return S(t, "toString") && (e.toString = t.toString), S(t, "valueOf") && (e.valueOf = t.valueOf), e;
1732
+ }
1733
+ function X(e, t, n, s) {
1734
+ return is(e, t, n, s, !0).utc();
1735
+ }
1736
+ function Xs() {
1737
+ return {
1738
+ empty: !1,
1739
+ unusedTokens: [],
1740
+ unusedInput: [],
1741
+ overflow: -2,
1742
+ charsLeftOver: 0,
1743
+ nullInput: !1,
1744
+ invalidEra: null,
1745
+ invalidMonth: null,
1746
+ invalidFormat: !1,
1747
+ userInvalidated: !1,
1748
+ iso: !1,
1749
+ parsedDateParts: [],
1750
+ era: null,
1751
+ meridiem: null,
1752
+ rfc2822: !1,
1753
+ weekdayMismatch: !1
1754
+ };
1755
+ }
1756
+ function _(e) {
1757
+ return e._pf == null && (e._pf = Xs()), e._pf;
1758
+ }
1759
+ var Et;
1760
+ Array.prototype.some ? Et = Array.prototype.some : Et = function(e) {
1761
+ var t = Object(this), n = t.length >>> 0, s;
1762
+ for (s = 0; s < n; s++)
1763
+ if (s in t && e.call(this, t[s], s, t))
1764
+ return !0;
1765
+ return !1;
1766
+ };
1767
+ function Vt(e) {
1768
+ var t = null, n = !1, s = e._d && !isNaN(e._d.getTime());
1769
+ if (s && (t = _(e), n = Et.call(t.parsedDateParts, function(i) {
1770
+ return i != null;
1771
+ }), s = t.overflow < 0 && !t.empty && !t.invalidEra && !t.invalidMonth && !t.invalidWeekday && !t.weekdayMismatch && !t.nullInput && !t.invalidFormat && !t.userInvalidated && (!t.meridiem || t.meridiem && n), e._strict && (s = s && t.charsLeftOver === 0 && t.unusedTokens.length === 0 && t.bigHour === void 0)), Object.isFrozen == null || !Object.isFrozen(e))
1772
+ e._isValid = s;
1773
+ else
1774
+ return s;
1775
+ return e._isValid;
1776
+ }
1777
+ function ft(e) {
1778
+ var t = X(NaN);
1779
+ return e != null ? de(_(t), e) : _(t).userInvalidated = !0, t;
1780
+ }
1781
+ var On = g.momentProperties = [], Nt = !1;
1782
+ function Wt(e, t) {
1783
+ var n, s, i, r = On.length;
1784
+ if (A(t._isAMomentObject) || (e._isAMomentObject = t._isAMomentObject), A(t._i) || (e._i = t._i), A(t._f) || (e._f = t._f), A(t._l) || (e._l = t._l), A(t._strict) || (e._strict = t._strict), A(t._tzm) || (e._tzm = t._tzm), A(t._isUTC) || (e._isUTC = t._isUTC), A(t._offset) || (e._offset = t._offset), A(t._pf) || (e._pf = _(t)), A(t._locale) || (e._locale = t._locale), r > 0)
1785
+ for (n = 0; n < r; n++)
1786
+ s = On[n], i = t[s], A(i) || (e[s] = i);
1787
+ return e;
1788
+ }
1789
+ function Ge(e) {
1790
+ Wt(this, e), this._d = new Date(e._d != null ? e._d.getTime() : NaN), this.isValid() || (this._d = /* @__PURE__ */ new Date(NaN)), Nt === !1 && (Nt = !0, g.updateOffset(this), Nt = !1);
1791
+ }
1792
+ function B(e) {
1793
+ return e instanceof Ge || e != null && e._isAMomentObject != null;
1794
+ }
1795
+ function Fn(e) {
1796
+ g.suppressDeprecationWarnings === !1 && typeof console < "u" && console.warn && console.warn("Deprecation warning: " + e);
1797
+ }
1798
+ function V(e, t) {
1799
+ var n = !0;
1800
+ return de(function() {
1801
+ if (g.deprecationHandler != null && g.deprecationHandler(null, e), n) {
1802
+ var s = [], i, r, a, o = arguments.length;
1803
+ for (r = 0; r < o; r++) {
1804
+ if (i = "", typeof arguments[r] == "object") {
1805
+ i += `
1806
+ [` + r + "] ";
1807
+ for (a in arguments[0])
1808
+ S(arguments[0], a) && (i += a + ": " + arguments[0][a] + ", ");
1809
+ i = i.slice(0, -2);
1810
+ } else
1811
+ i = arguments[r];
1812
+ s.push(i);
1813
+ }
1814
+ Fn(
1815
+ e + `
1816
+ Arguments: ` + Array.prototype.slice.call(s).join("") + `
1817
+ ` + new Error().stack
1818
+ ), n = !1;
1819
+ }
1820
+ return t.apply(this, arguments);
1821
+ }, t);
1822
+ }
1823
+ var Mn = {};
1824
+ function An(e, t) {
1825
+ g.deprecationHandler != null && g.deprecationHandler(e, t), Mn[e] || (Fn(t), Mn[e] = !0);
1826
+ }
1827
+ g.suppressDeprecationWarnings = !1;
1828
+ g.deprecationHandler = null;
1829
+ function ee(e) {
1830
+ return typeof Function < "u" && e instanceof Function || Object.prototype.toString.call(e) === "[object Function]";
1831
+ }
1832
+ function ei(e) {
1833
+ var t, n;
1834
+ for (n in e)
1835
+ S(e, n) && (t = e[n], ee(t) ? this[n] = t : this["_" + n] = t);
1836
+ this._config = e, this._dayOfMonthOrdinalParseLenient = new RegExp(
1837
+ (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source
1838
+ );
1839
+ }
1840
+ function Ft(e, t) {
1841
+ var n = de({}, e), s;
1842
+ for (s in t)
1843
+ S(t, s) && (ye(e[s]) && ye(t[s]) ? (n[s] = {}, de(n[s], e[s]), de(n[s], t[s])) : t[s] != null ? n[s] = t[s] : delete n[s]);
1844
+ for (s in e)
1845
+ S(e, s) && !S(t, s) && ye(e[s]) && (n[s] = de({}, n[s]));
1846
+ return n;
1847
+ }
1848
+ function Gt(e) {
1849
+ e != null && this.set(e);
1850
+ }
1851
+ var At;
1852
+ Object.keys ? At = Object.keys : At = function(e) {
1853
+ var t, n = [];
1854
+ for (t in e)
1855
+ S(e, t) && n.push(t);
1856
+ return n;
1857
+ };
1858
+ var ti = {
1859
+ sameDay: "[Today at] LT",
1860
+ nextDay: "[Tomorrow at] LT",
1861
+ nextWeek: "dddd [at] LT",
1862
+ lastDay: "[Yesterday at] LT",
1863
+ lastWeek: "[Last] dddd [at] LT",
1864
+ sameElse: "L"
1865
+ };
1866
+ function ni(e, t, n) {
1867
+ var s = this._calendar[e] || this._calendar.sameElse;
1868
+ return ee(s) ? s.call(t, n) : s;
1869
+ }
1870
+ function Q(e, t, n) {
1871
+ var s = "" + Math.abs(e), i = t - s.length, r = e >= 0;
1872
+ return (r ? n ? "+" : "" : "-") + Math.pow(10, Math.max(0, i)).toString().substr(1) + s;
1873
+ }
1874
+ var zt = /(\[[^\[]*\])|(\\)?([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, Qe = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, Ct = {}, ke = {};
1875
+ function p(e, t, n, s) {
1876
+ var i = s;
1877
+ typeof s == "string" && (i = function() {
1878
+ return this[s]();
1879
+ }), e && (ke[e] = i), t && (ke[t[0]] = function() {
1880
+ return Q(i.apply(this, arguments), t[1], t[2]);
1881
+ }), n && (ke[n] = function() {
1882
+ return this.localeData().ordinal(
1883
+ i.apply(this, arguments),
1884
+ e
1885
+ );
1886
+ });
1887
+ }
1888
+ function si(e) {
1889
+ return e.match(/\[[\s\S]/) ? e.replace(/^\[|\]$/g, "") : e.replace(/\\/g, "");
1890
+ }
1891
+ function ii(e) {
1892
+ var t = e.match(zt), n, s;
1893
+ for (n = 0, s = t.length; n < s; n++)
1894
+ ke[t[n]] ? t[n] = ke[t[n]] : t[n] = si(t[n]);
1895
+ return function(i) {
1896
+ var r = "", a;
1897
+ for (a = 0; a < s; a++)
1898
+ r += ee(t[a]) ? t[a].call(i, e) : t[a];
1899
+ return r;
1900
+ };
1901
+ }
1902
+ function et(e, t) {
1903
+ return e.isValid() ? (t = In(t, e.localeData()), Ct[t] = Ct[t] || ii(t), Ct[t](e)) : e.localeData().invalidDate();
1904
+ }
1905
+ function In(e, t) {
1906
+ var n = 5;
1907
+ function s(i) {
1908
+ return t.longDateFormat(i) || i;
1909
+ }
1910
+ for (Qe.lastIndex = 0; n >= 0 && Qe.test(e); )
1911
+ e = e.replace(
1912
+ Qe,
1913
+ s
1914
+ ), Qe.lastIndex = 0, n -= 1;
1915
+ return e;
1916
+ }
1917
+ var ri = {
1918
+ LTS: "h:mm:ss A",
1919
+ LT: "h:mm A",
1920
+ L: "MM/DD/YYYY",
1921
+ LL: "MMMM D, YYYY",
1922
+ LLL: "MMMM D, YYYY h:mm A",
1923
+ LLLL: "dddd, MMMM D, YYYY h:mm A"
1924
+ };
1925
+ function ai(e) {
1926
+ var t = this._longDateFormat[e], n = this._longDateFormat[e.toUpperCase()];
1927
+ return t || !n ? t : (this._longDateFormat[e] = n.match(zt).map(function(s) {
1928
+ return s === "MMMM" || s === "MM" || s === "DD" || s === "dddd" ? s.slice(1) : s;
1929
+ }).join(""), this._longDateFormat[e]);
1930
+ }
1931
+ var oi = "Invalid date";
1932
+ function ui() {
1933
+ return this._invalidDate;
1934
+ }
1935
+ var li = "%d", di = /\d{1,2}/;
1936
+ function hi(e) {
1937
+ return this._ordinal.replace("%d", e);
1938
+ }
1939
+ var ci = {
1940
+ future: "in %s",
1941
+ past: "%s ago",
1942
+ s: "a few seconds",
1943
+ ss: "%d seconds",
1944
+ m: "a minute",
1945
+ mm: "%d minutes",
1946
+ h: "an hour",
1947
+ hh: "%d hours",
1948
+ d: "a day",
1949
+ dd: "%d days",
1950
+ w: "a week",
1951
+ ww: "%d weeks",
1952
+ M: "a month",
1953
+ MM: "%d months",
1954
+ y: "a year",
1955
+ yy: "%d years"
1956
+ };
1957
+ function fi(e, t, n, s) {
1958
+ var i = this._relativeTime[n];
1959
+ return ee(i) ? i(e, t, n, s) : i.replace(/%d/i, e);
1960
+ }
1961
+ function gi(e, t) {
1962
+ var n = this._relativeTime[e > 0 ? "future" : "past"];
1963
+ return ee(n) ? n(t) : n.replace(/%s/i, t);
1964
+ }
1965
+ var Dn = {
1966
+ D: "date",
1967
+ dates: "date",
1968
+ date: "date",
1969
+ d: "day",
1970
+ days: "day",
1971
+ day: "day",
1972
+ e: "weekday",
1973
+ weekdays: "weekday",
1974
+ weekday: "weekday",
1975
+ E: "isoWeekday",
1976
+ isoweekdays: "isoWeekday",
1977
+ isoweekday: "isoWeekday",
1978
+ DDD: "dayOfYear",
1979
+ dayofyears: "dayOfYear",
1980
+ dayofyear: "dayOfYear",
1981
+ h: "hour",
1982
+ hours: "hour",
1983
+ hour: "hour",
1984
+ ms: "millisecond",
1985
+ milliseconds: "millisecond",
1986
+ millisecond: "millisecond",
1987
+ m: "minute",
1988
+ minutes: "minute",
1989
+ minute: "minute",
1990
+ M: "month",
1991
+ months: "month",
1992
+ month: "month",
1993
+ Q: "quarter",
1994
+ quarters: "quarter",
1995
+ quarter: "quarter",
1996
+ s: "second",
1997
+ seconds: "second",
1998
+ second: "second",
1999
+ gg: "weekYear",
2000
+ weekyears: "weekYear",
2001
+ weekyear: "weekYear",
2002
+ GG: "isoWeekYear",
2003
+ isoweekyears: "isoWeekYear",
2004
+ isoweekyear: "isoWeekYear",
2005
+ w: "week",
2006
+ weeks: "week",
2007
+ week: "week",
2008
+ W: "isoWeek",
2009
+ isoweeks: "isoWeek",
2010
+ isoweek: "isoWeek",
2011
+ y: "year",
2012
+ years: "year",
2013
+ year: "year"
2014
+ };
2015
+ function W(e) {
2016
+ return typeof e == "string" ? Dn[e] || Dn[e.toLowerCase()] : void 0;
2017
+ }
2018
+ function Kt(e) {
2019
+ var t = {}, n, s;
2020
+ for (s in e)
2021
+ S(e, s) && (n = W(s), n && (t[n] = e[s]));
2022
+ return t;
2023
+ }
2024
+ var mi = {
2025
+ date: 9,
2026
+ day: 11,
2027
+ weekday: 11,
2028
+ isoWeekday: 11,
2029
+ dayOfYear: 4,
2030
+ hour: 13,
2031
+ millisecond: 16,
2032
+ minute: 14,
2033
+ month: 8,
2034
+ quarter: 7,
2035
+ second: 15,
2036
+ weekYear: 1,
2037
+ isoWeekYear: 1,
2038
+ week: 5,
2039
+ isoWeek: 5,
2040
+ year: 1
2041
+ };
2042
+ function pi(e) {
2043
+ var t = [], n;
2044
+ for (n in e)
2045
+ S(e, n) && t.push({ unit: n, priority: mi[n] });
2046
+ return t.sort(function(s, i) {
2047
+ return s.priority - i.priority;
2048
+ }), t;
2049
+ }
2050
+ var jn = /\d/, H = /\d\d/, Un = /\d{3}/, Bt = /\d{4}/, gt = /[+-]?\d{6}/, M = /\d\d?/, Hn = /\d\d\d\d?/, $n = /\d\d\d\d\d\d?/, mt = /\d{1,3}/, qt = /\d{1,4}/, pt = /[+-]?\d{1,6}/, De = /\d+/, yt = /[+-]?\d+/, yi = /Z|[+-]\d\d:?\d\d/gi, _t = /Z|[+-]\d\d(?::?\d\d)?/gi, _i = /[+-]?\d+(\.\d{1,3})?/, ze = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, Ye = /^[1-9]\d?/, Jt = /^([1-9]\d|\d)/, ot;
2051
+ ot = {};
2052
+ function m(e, t, n) {
2053
+ ot[e] = ee(t) ? t : function(s, i) {
2054
+ return s && n ? n : t;
2055
+ };
2056
+ }
2057
+ function vi(e, t) {
2058
+ return S(ot, e) ? ot[e](t._strict, t._locale) : new RegExp(wi(e));
2059
+ }
2060
+ function wi(e) {
2061
+ return re(
2062
+ e.replace("\\", "").replace(
2063
+ /\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,
2064
+ function(t, n, s, i, r) {
2065
+ return n || s || i || r;
2066
+ }
2067
+ )
2068
+ );
2069
+ }
2070
+ function re(e) {
2071
+ return e.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
2072
+ }
2073
+ function $(e) {
2074
+ return e < 0 ? Math.ceil(e) || 0 : Math.floor(e);
2075
+ }
2076
+ function v(e) {
2077
+ var t = +e, n = 0;
2078
+ return t !== 0 && isFinite(t) && (n = $(t)), n;
2079
+ }
2080
+ var It = {};
2081
+ function k(e, t) {
2082
+ var n, s = t, i;
2083
+ for (typeof e == "string" && (e = [e]), oe(t) && (s = function(r, a) {
2084
+ a[t] = v(r);
2085
+ }), i = e.length, n = 0; n < i; n++)
2086
+ It[e[n]] = s;
2087
+ }
2088
+ function Ke(e, t) {
2089
+ k(e, function(n, s, i, r) {
2090
+ i._w = i._w || {}, t(n, i._w, i, r);
2091
+ });
2092
+ }
2093
+ function Si(e, t, n) {
2094
+ t != null && S(It, e) && It[e](t, n._a, n, e);
2095
+ }
2096
+ function vt(e) {
2097
+ return e % 4 === 0 && e % 100 !== 0 || e % 400 === 0;
2098
+ }
2099
+ var P = 0, se = 1, J = 2, R = 3, z = 4, ie = 5, pe = 6, bi = 7, xi = 8;
2100
+ p("Y", 0, 0, function() {
2101
+ var e = this.year();
2102
+ return e <= 9999 ? Q(e, 4) : "+" + e;
2103
+ });
2104
+ p(0, ["YY", 2], 0, function() {
2105
+ return this.year() % 100;
2106
+ });
2107
+ p(0, ["YYYY", 4], 0, "year");
2108
+ p(0, ["YYYYY", 5], 0, "year");
2109
+ p(0, ["YYYYYY", 6, !0], 0, "year");
2110
+ m("Y", yt);
2111
+ m("YY", M, H);
2112
+ m("YYYY", qt, Bt);
2113
+ m("YYYYY", pt, gt);
2114
+ m("YYYYYY", pt, gt);
2115
+ k(["YYYYY", "YYYYYY"], P);
2116
+ k("YYYY", function(e, t) {
2117
+ t[P] = e.length === 2 ? g.parseTwoDigitYear(e) : v(e);
2118
+ });
2119
+ k("YY", function(e, t) {
2120
+ t[P] = g.parseTwoDigitYear(e);
2121
+ });
2122
+ k("Y", function(e, t) {
2123
+ t[P] = parseInt(e, 10);
2124
+ });
2125
+ function Ie(e) {
2126
+ return vt(e) ? 366 : 365;
2127
+ }
2128
+ g.parseTwoDigitYear = function(e) {
2129
+ return v(e) + (v(e) > 68 ? 1900 : 2e3);
2130
+ };
2131
+ var Vn = Ne("FullYear", !0);
2132
+ function ki() {
2133
+ return vt(this.year());
2134
+ }
2135
+ function Ne(e, t) {
2136
+ return function(n) {
2137
+ return n != null ? (Wn(this, e, n), g.updateOffset(this, t), this) : Ue(this, e);
2138
+ };
2139
+ }
2140
+ function Ue(e, t) {
2141
+ if (!e.isValid())
2142
+ return NaN;
2143
+ var n = e._d, s = e._isUTC;
2144
+ switch (t) {
2145
+ case "Milliseconds":
2146
+ return s ? n.getUTCMilliseconds() : n.getMilliseconds();
2147
+ case "Seconds":
2148
+ return s ? n.getUTCSeconds() : n.getSeconds();
2149
+ case "Minutes":
2150
+ return s ? n.getUTCMinutes() : n.getMinutes();
2151
+ case "Hours":
2152
+ return s ? n.getUTCHours() : n.getHours();
2153
+ case "Date":
2154
+ return s ? n.getUTCDate() : n.getDate();
2155
+ case "Day":
2156
+ return s ? n.getUTCDay() : n.getDay();
2157
+ case "Month":
2158
+ return s ? n.getUTCMonth() : n.getMonth();
2159
+ case "FullYear":
2160
+ return s ? n.getUTCFullYear() : n.getFullYear();
2161
+ default:
2162
+ return NaN;
2163
+ }
2164
+ }
2165
+ function Wn(e, t, n) {
2166
+ var s, i, r, a, o;
2167
+ if (!(!e.isValid() || isNaN(n))) {
2168
+ switch (s = e._d, i = e._isUTC, t) {
2169
+ case "Milliseconds":
2170
+ return void (i ? s.setUTCMilliseconds(n) : s.setMilliseconds(n));
2171
+ case "Seconds":
2172
+ return void (i ? s.setUTCSeconds(n) : s.setSeconds(n));
2173
+ case "Minutes":
2174
+ return void (i ? s.setUTCMinutes(n) : s.setMinutes(n));
2175
+ case "Hours":
2176
+ return void (i ? s.setUTCHours(n) : s.setHours(n));
2177
+ case "Date":
2178
+ return void (i ? s.setUTCDate(n) : s.setDate(n));
2179
+ case "FullYear":
2180
+ break;
2181
+ default:
2182
+ return;
2183
+ }
2184
+ r = n, a = e.month(), o = e.date(), o = o === 29 && a === 1 && !vt(r) ? 28 : o, i ? s.setUTCFullYear(r, a, o) : s.setFullYear(r, a, o);
2185
+ }
2186
+ }
2187
+ function Oi(e) {
2188
+ return e = W(e), ee(this[e]) ? this[e]() : this;
2189
+ }
2190
+ function Mi(e, t) {
2191
+ if (typeof e == "object") {
2192
+ e = Kt(e);
2193
+ var n = pi(e), s, i = n.length;
2194
+ for (s = 0; s < i; s++)
2195
+ this[n[s].unit](e[n[s].unit]);
2196
+ } else if (e = W(e), ee(this[e]))
2197
+ return this[e](t);
2198
+ return this;
2199
+ }
2200
+ function Di(e, t) {
2201
+ return (e % t + t) % t;
2202
+ }
2203
+ var L;
2204
+ Array.prototype.indexOf ? L = Array.prototype.indexOf : L = function(e) {
2205
+ var t;
2206
+ for (t = 0; t < this.length; ++t)
2207
+ if (this[t] === e)
2208
+ return t;
2209
+ return -1;
2210
+ };
2211
+ function Zt(e, t) {
2212
+ if (isNaN(e) || isNaN(t))
2213
+ return NaN;
2214
+ var n = Di(t, 12);
2215
+ return e += (t - n) / 12, n === 1 ? vt(e) ? 29 : 28 : 31 - n % 7 % 2;
2216
+ }
2217
+ p("M", ["MM", 2], "Mo", function() {
2218
+ return this.month() + 1;
2219
+ });
2220
+ p("MMM", 0, 0, function(e) {
2221
+ return this.localeData().monthsShort(this, e);
2222
+ });
2223
+ p("MMMM", 0, 0, function(e) {
2224
+ return this.localeData().months(this, e);
2225
+ });
2226
+ m("M", M, Ye);
2227
+ m("MM", M, H);
2228
+ m("MMM", function(e, t) {
2229
+ return t.monthsShortRegex(e);
2230
+ });
2231
+ m("MMMM", function(e, t) {
2232
+ return t.monthsRegex(e);
2233
+ });
2234
+ k(["M", "MM"], function(e, t) {
2235
+ t[se] = v(e) - 1;
2236
+ });
2237
+ k(["MMM", "MMMM"], function(e, t, n, s) {
2238
+ var i = n._locale.monthsParse(e, s, n._strict);
2239
+ i != null ? t[se] = i : _(n).invalidMonth = e;
2240
+ });
2241
+ var Yi = "January_February_March_April_May_June_July_August_September_October_November_December".split(
2242
+ "_"
2243
+ ), Gn = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), zn = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, Ni = ze, Ci = ze;
2244
+ function Li(e, t) {
2245
+ return e ? K(this._months) ? this._months[e.month()] : this._months[(this._months.isFormat || zn).test(t) ? "format" : "standalone"][e.month()] : K(this._months) ? this._months : this._months.standalone;
2246
+ }
2247
+ function Ri(e, t) {
2248
+ return e ? K(this._monthsShort) ? this._monthsShort[e.month()] : this._monthsShort[zn.test(t) ? "format" : "standalone"][e.month()] : K(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone;
2249
+ }
2250
+ function Pi(e, t, n) {
2251
+ var s, i, r, a = e.toLocaleLowerCase();
2252
+ if (!this._monthsParse)
2253
+ for (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = [], s = 0; s < 12; ++s)
2254
+ r = X([2e3, s]), this._shortMonthsParse[s] = this.monthsShort(
2255
+ r,
2256
+ ""
2257
+ ).toLocaleLowerCase(), this._longMonthsParse[s] = this.months(r, "").toLocaleLowerCase();
2258
+ return n ? t === "MMM" ? (i = L.call(this._shortMonthsParse, a), i !== -1 ? i : null) : (i = L.call(this._longMonthsParse, a), i !== -1 ? i : null) : t === "MMM" ? (i = L.call(this._shortMonthsParse, a), i !== -1 ? i : (i = L.call(this._longMonthsParse, a), i !== -1 ? i : null)) : (i = L.call(this._longMonthsParse, a), i !== -1 ? i : (i = L.call(this._shortMonthsParse, a), i !== -1 ? i : null));
2259
+ }
2260
+ function Ti(e, t, n) {
2261
+ var s, i, r;
2262
+ if (this._monthsParseExact)
2263
+ return Pi.call(this, e, t, n);
2264
+ for (this._monthsParse || (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = []), s = 0; s < 12; s++)
2265
+ if (i = X([2e3, s]), n && !this._longMonthsParse[s] && (this._longMonthsParse[s] = new RegExp(
2266
+ "^" + this.months(i, "").replace(".", "") + "$",
2267
+ "i"
2268
+ ), this._shortMonthsParse[s] = new RegExp(
2269
+ "^" + this.monthsShort(i, "").replace(".", "") + "$",
2270
+ "i"
2271
+ )), !n && !this._monthsParse[s] && (r = "^" + this.months(i, "") + "|^" + this.monthsShort(i, ""), this._monthsParse[s] = new RegExp(r.replace(".", ""), "i")), n && t === "MMMM" && this._longMonthsParse[s].test(e) || n && t === "MMM" && this._shortMonthsParse[s].test(e) || !n && this._monthsParse[s].test(e))
2272
+ return s;
2273
+ }
2274
+ function Kn(e, t) {
2275
+ if (!e.isValid())
2276
+ return e;
2277
+ if (typeof t == "string") {
2278
+ if (/^\d+$/.test(t))
2279
+ t = v(t);
2280
+ else if (t = e.localeData().monthsParse(t), !oe(t))
2281
+ return e;
2282
+ }
2283
+ var n = t, s = e.date();
2284
+ return s = s < 29 ? s : Math.min(s, Zt(e.year(), n)), e._isUTC ? e._d.setUTCMonth(n, s) : e._d.setMonth(n, s), e;
2285
+ }
2286
+ function Bn(e) {
2287
+ return e != null ? (Kn(this, e), g.updateOffset(this, !0), this) : Ue(this, "Month");
2288
+ }
2289
+ function Ei() {
2290
+ return Zt(this.year(), this.month());
2291
+ }
2292
+ function Fi(e) {
2293
+ return this._monthsParseExact ? (S(this, "_monthsRegex") || qn.call(this), e ? this._monthsShortStrictRegex : this._monthsShortRegex) : (S(this, "_monthsShortRegex") || (this._monthsShortRegex = Ni), this._monthsShortStrictRegex && e ? this._monthsShortStrictRegex : this._monthsShortRegex);
2294
+ }
2295
+ function Ai(e) {
2296
+ return this._monthsParseExact ? (S(this, "_monthsRegex") || qn.call(this), e ? this._monthsStrictRegex : this._monthsRegex) : (S(this, "_monthsRegex") || (this._monthsRegex = Ci), this._monthsStrictRegex && e ? this._monthsStrictRegex : this._monthsRegex);
2297
+ }
2298
+ function qn() {
2299
+ function e(u, l) {
2300
+ return l.length - u.length;
2301
+ }
2302
+ var t = [], n = [], s = [], i, r, a, o;
2303
+ for (i = 0; i < 12; i++)
2304
+ r = X([2e3, i]), a = re(this.monthsShort(r, "")), o = re(this.months(r, "")), t.push(a), n.push(o), s.push(o), s.push(a);
2305
+ t.sort(e), n.sort(e), s.sort(e), this._monthsRegex = new RegExp("^(" + s.join("|") + ")", "i"), this._monthsShortRegex = this._monthsRegex, this._monthsStrictRegex = new RegExp(
2306
+ "^(" + n.join("|") + ")",
2307
+ "i"
2308
+ ), this._monthsShortStrictRegex = new RegExp(
2309
+ "^(" + t.join("|") + ")",
2310
+ "i"
2311
+ );
2312
+ }
2313
+ function Ii(e, t, n, s, i, r, a) {
2314
+ var o;
2315
+ return e < 100 && e >= 0 ? (o = new Date(e + 400, t, n, s, i, r, a), isFinite(o.getFullYear()) && o.setFullYear(e)) : o = new Date(e, t, n, s, i, r, a), o;
2316
+ }
2317
+ function He(e) {
2318
+ var t, n;
2319
+ return e < 100 && e >= 0 ? (n = Array.prototype.slice.call(arguments), n[0] = e + 400, t = new Date(Date.UTC.apply(null, n)), isFinite(t.getUTCFullYear()) && t.setUTCFullYear(e)) : t = new Date(Date.UTC.apply(null, arguments)), t;
2320
+ }
2321
+ function ut(e, t, n) {
2322
+ var s = 7 + t - n, i = (7 + He(e, 0, s).getUTCDay() - t) % 7;
2323
+ return -i + s - 1;
2324
+ }
2325
+ function Jn(e, t, n, s, i) {
2326
+ var r = (7 + n - s) % 7, a = ut(e, s, i), o = 1 + 7 * (t - 1) + r + a, u, l;
2327
+ return o <= 0 ? (u = e - 1, l = Ie(u) + o) : o > Ie(e) ? (u = e + 1, l = o - Ie(e)) : (u = e, l = o), {
2328
+ year: u,
2329
+ dayOfYear: l
2330
+ };
2331
+ }
2332
+ function $e(e, t, n) {
2333
+ var s = ut(e.year(), t, n), i = Math.floor((e.dayOfYear() - s - 1) / 7) + 1, r, a;
2334
+ return i < 1 ? (a = e.year() - 1, r = i + ae(a, t, n)) : i > ae(e.year(), t, n) ? (r = i - ae(e.year(), t, n), a = e.year() + 1) : (a = e.year(), r = i), {
2335
+ week: r,
2336
+ year: a
2337
+ };
2338
+ }
2339
+ function ae(e, t, n) {
2340
+ var s = ut(e, t, n), i = ut(e + 1, t, n);
2341
+ return (Ie(e) - s + i) / 7;
2342
+ }
2343
+ p("w", ["ww", 2], "wo", "week");
2344
+ p("W", ["WW", 2], "Wo", "isoWeek");
2345
+ m("w", M, Ye);
2346
+ m("ww", M, H);
2347
+ m("W", M, Ye);
2348
+ m("WW", M, H);
2349
+ Ke(
2350
+ ["w", "ww", "W", "WW"],
2351
+ function(e, t, n, s) {
2352
+ t[s.substr(0, 1)] = v(e);
2353
+ }
2354
+ );
2355
+ function ji(e) {
2356
+ return $e(e, this._week.dow, this._week.doy).week;
2357
+ }
2358
+ var Ui = {
2359
+ dow: 0,
2360
+ // Sunday is the first day of the week.
2361
+ doy: 6
2362
+ // The week that contains Jan 6th is the first week of the year.
2363
+ };
2364
+ function Hi() {
2365
+ return this._week.dow;
2366
+ }
2367
+ function $i() {
2368
+ return this._week.doy;
2369
+ }
2370
+ function Vi(e) {
2371
+ var t = this.localeData().week(this);
2372
+ return e == null ? t : this.add((e - t) * 7, "d");
2373
+ }
2374
+ function Wi(e) {
2375
+ var t = $e(this, 1, 4).week;
2376
+ return e == null ? t : this.add((e - t) * 7, "d");
2377
+ }
2378
+ p("d", 0, "do", "day");
2379
+ p("dd", 0, 0, function(e) {
2380
+ return this.localeData().weekdaysMin(this, e);
2381
+ });
2382
+ p("ddd", 0, 0, function(e) {
2383
+ return this.localeData().weekdaysShort(this, e);
2384
+ });
2385
+ p("dddd", 0, 0, function(e) {
2386
+ return this.localeData().weekdays(this, e);
2387
+ });
2388
+ p("e", 0, 0, "weekday");
2389
+ p("E", 0, 0, "isoWeekday");
2390
+ m("d", M);
2391
+ m("e", M);
2392
+ m("E", M);
2393
+ m("dd", function(e, t) {
2394
+ return t.weekdaysMinRegex(e);
2395
+ });
2396
+ m("ddd", function(e, t) {
2397
+ return t.weekdaysShortRegex(e);
2398
+ });
2399
+ m("dddd", function(e, t) {
2400
+ return t.weekdaysRegex(e);
2401
+ });
2402
+ Ke(["dd", "ddd", "dddd"], function(e, t, n, s) {
2403
+ var i = n._locale.weekdaysParse(e, s, n._strict);
2404
+ i != null ? t.d = i : _(n).invalidWeekday = e;
2405
+ });
2406
+ Ke(["d", "e", "E"], function(e, t, n, s) {
2407
+ t[s] = v(e);
2408
+ });
2409
+ function Gi(e, t) {
2410
+ return typeof e != "string" ? e : isNaN(e) ? (e = t.weekdaysParse(e), typeof e == "number" ? e : null) : parseInt(e, 10);
2411
+ }
2412
+ function zi(e, t) {
2413
+ return typeof e == "string" ? t.weekdaysParse(e) % 7 || 7 : isNaN(e) ? null : e;
2414
+ }
2415
+ function Qt(e, t) {
2416
+ return e.slice(t, 7).concat(e.slice(0, t));
2417
+ }
2418
+ var Ki = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), Zn = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), Bi = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), qi = ze, Ji = ze, Zi = ze;
2419
+ function Qi(e, t) {
2420
+ var n = K(this._weekdays) ? this._weekdays : this._weekdays[e && e !== !0 && this._weekdays.isFormat.test(t) ? "format" : "standalone"];
2421
+ return e === !0 ? Qt(n, this._week.dow) : e ? n[e.day()] : n;
2422
+ }
2423
+ function Xi(e) {
2424
+ return e === !0 ? Qt(this._weekdaysShort, this._week.dow) : e ? this._weekdaysShort[e.day()] : this._weekdaysShort;
2425
+ }
2426
+ function er(e) {
2427
+ return e === !0 ? Qt(this._weekdaysMin, this._week.dow) : e ? this._weekdaysMin[e.day()] : this._weekdaysMin;
2428
+ }
2429
+ function tr(e, t, n) {
2430
+ var s, i, r, a = e.toLocaleLowerCase();
2431
+ if (!this._weekdaysParse)
2432
+ for (this._weekdaysParse = [], this._shortWeekdaysParse = [], this._minWeekdaysParse = [], s = 0; s < 7; ++s)
2433
+ r = X([2e3, 1]).day(s), this._minWeekdaysParse[s] = this.weekdaysMin(
2434
+ r,
2435
+ ""
2436
+ ).toLocaleLowerCase(), this._shortWeekdaysParse[s] = this.weekdaysShort(
2437
+ r,
2438
+ ""
2439
+ ).toLocaleLowerCase(), this._weekdaysParse[s] = this.weekdays(r, "").toLocaleLowerCase();
2440
+ return n ? t === "dddd" ? (i = L.call(this._weekdaysParse, a), i !== -1 ? i : null) : t === "ddd" ? (i = L.call(this._shortWeekdaysParse, a), i !== -1 ? i : null) : (i = L.call(this._minWeekdaysParse, a), i !== -1 ? i : null) : t === "dddd" ? (i = L.call(this._weekdaysParse, a), i !== -1 || (i = L.call(this._shortWeekdaysParse, a), i !== -1) ? i : (i = L.call(this._minWeekdaysParse, a), i !== -1 ? i : null)) : t === "ddd" ? (i = L.call(this._shortWeekdaysParse, a), i !== -1 || (i = L.call(this._weekdaysParse, a), i !== -1) ? i : (i = L.call(this._minWeekdaysParse, a), i !== -1 ? i : null)) : (i = L.call(this._minWeekdaysParse, a), i !== -1 || (i = L.call(this._weekdaysParse, a), i !== -1) ? i : (i = L.call(this._shortWeekdaysParse, a), i !== -1 ? i : null));
2441
+ }
2442
+ function nr(e, t, n) {
2443
+ var s, i, r;
2444
+ if (this._weekdaysParseExact)
2445
+ return tr.call(this, e, t, n);
2446
+ for (this._weekdaysParse || (this._weekdaysParse = [], this._minWeekdaysParse = [], this._shortWeekdaysParse = [], this._fullWeekdaysParse = []), s = 0; s < 7; s++)
2447
+ if (i = X([2e3, 1]).day(s), n && !this._fullWeekdaysParse[s] && (this._fullWeekdaysParse[s] = new RegExp(
2448
+ "^" + this.weekdays(i, "").replace(".", "\\.?") + "$",
2449
+ "i"
2450
+ ), this._shortWeekdaysParse[s] = new RegExp(
2451
+ "^" + this.weekdaysShort(i, "").replace(".", "\\.?") + "$",
2452
+ "i"
2453
+ ), this._minWeekdaysParse[s] = new RegExp(
2454
+ "^" + this.weekdaysMin(i, "").replace(".", "\\.?") + "$",
2455
+ "i"
2456
+ )), this._weekdaysParse[s] || (r = "^" + this.weekdays(i, "") + "|^" + this.weekdaysShort(i, "") + "|^" + this.weekdaysMin(i, ""), this._weekdaysParse[s] = new RegExp(r.replace(".", ""), "i")), n && t === "dddd" && this._fullWeekdaysParse[s].test(e) || n && t === "ddd" && this._shortWeekdaysParse[s].test(e) || n && t === "dd" && this._minWeekdaysParse[s].test(e) || !n && this._weekdaysParse[s].test(e))
2457
+ return s;
2458
+ }
2459
+ function sr(e) {
2460
+ if (!this.isValid())
2461
+ return e != null ? this : NaN;
2462
+ var t = Ue(this, "Day");
2463
+ return e != null ? (e = Gi(e, this.localeData()), this.add(e - t, "d")) : t;
2464
+ }
2465
+ function ir(e) {
2466
+ if (!this.isValid())
2467
+ return e != null ? this : NaN;
2468
+ var t = (this.day() + 7 - this.localeData()._week.dow) % 7;
2469
+ return e == null ? t : this.add(e - t, "d");
2470
+ }
2471
+ function rr(e) {
2472
+ if (!this.isValid())
2473
+ return e != null ? this : NaN;
2474
+ if (e != null) {
2475
+ var t = zi(e, this.localeData());
2476
+ return this.day(this.day() % 7 ? t : t - 7);
2477
+ } else
2478
+ return this.day() || 7;
2479
+ }
2480
+ function ar(e) {
2481
+ return this._weekdaysParseExact ? (S(this, "_weekdaysRegex") || Xt.call(this), e ? this._weekdaysStrictRegex : this._weekdaysRegex) : (S(this, "_weekdaysRegex") || (this._weekdaysRegex = qi), this._weekdaysStrictRegex && e ? this._weekdaysStrictRegex : this._weekdaysRegex);
2482
+ }
2483
+ function or(e) {
2484
+ return this._weekdaysParseExact ? (S(this, "_weekdaysRegex") || Xt.call(this), e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex) : (S(this, "_weekdaysShortRegex") || (this._weekdaysShortRegex = Ji), this._weekdaysShortStrictRegex && e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex);
2485
+ }
2486
+ function ur(e) {
2487
+ return this._weekdaysParseExact ? (S(this, "_weekdaysRegex") || Xt.call(this), e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) : (S(this, "_weekdaysMinRegex") || (this._weekdaysMinRegex = Zi), this._weekdaysMinStrictRegex && e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex);
2488
+ }
2489
+ function Xt() {
2490
+ function e(h, f) {
2491
+ return f.length - h.length;
2492
+ }
2493
+ var t = [], n = [], s = [], i = [], r, a, o, u, l;
2494
+ for (r = 0; r < 7; r++)
2495
+ a = X([2e3, 1]).day(r), o = re(this.weekdaysMin(a, "")), u = re(this.weekdaysShort(a, "")), l = re(this.weekdays(a, "")), t.push(o), n.push(u), s.push(l), i.push(o), i.push(u), i.push(l);
2496
+ t.sort(e), n.sort(e), s.sort(e), i.sort(e), this._weekdaysRegex = new RegExp("^(" + i.join("|") + ")", "i"), this._weekdaysShortRegex = this._weekdaysRegex, this._weekdaysMinRegex = this._weekdaysRegex, this._weekdaysStrictRegex = new RegExp(
2497
+ "^(" + s.join("|") + ")",
2498
+ "i"
2499
+ ), this._weekdaysShortStrictRegex = new RegExp(
2500
+ "^(" + n.join("|") + ")",
2501
+ "i"
2502
+ ), this._weekdaysMinStrictRegex = new RegExp(
2503
+ "^(" + t.join("|") + ")",
2504
+ "i"
2505
+ );
2506
+ }
2507
+ function en() {
2508
+ return this.hours() % 12 || 12;
2509
+ }
2510
+ function lr() {
2511
+ return this.hours() || 24;
2512
+ }
2513
+ p("H", ["HH", 2], 0, "hour");
2514
+ p("h", ["hh", 2], 0, en);
2515
+ p("k", ["kk", 2], 0, lr);
2516
+ p("hmm", 0, 0, function() {
2517
+ return "" + en.apply(this) + Q(this.minutes(), 2);
2518
+ });
2519
+ p("hmmss", 0, 0, function() {
2520
+ return "" + en.apply(this) + Q(this.minutes(), 2) + Q(this.seconds(), 2);
2521
+ });
2522
+ p("Hmm", 0, 0, function() {
2523
+ return "" + this.hours() + Q(this.minutes(), 2);
2524
+ });
2525
+ p("Hmmss", 0, 0, function() {
2526
+ return "" + this.hours() + Q(this.minutes(), 2) + Q(this.seconds(), 2);
2527
+ });
2528
+ function Qn(e, t) {
2529
+ p(e, 0, 0, function() {
2530
+ return this.localeData().meridiem(
2531
+ this.hours(),
2532
+ this.minutes(),
2533
+ t
2534
+ );
2535
+ });
2536
+ }
2537
+ Qn("a", !0);
2538
+ Qn("A", !1);
2539
+ function Xn(e, t) {
2540
+ return t._meridiemParse;
2541
+ }
2542
+ m("a", Xn);
2543
+ m("A", Xn);
2544
+ m("H", M, Jt);
2545
+ m("h", M, Ye);
2546
+ m("k", M, Ye);
2547
+ m("HH", M, H);
2548
+ m("hh", M, H);
2549
+ m("kk", M, H);
2550
+ m("hmm", Hn);
2551
+ m("hmmss", $n);
2552
+ m("Hmm", Hn);
2553
+ m("Hmmss", $n);
2554
+ k(["H", "HH"], R);
2555
+ k(["k", "kk"], function(e, t, n) {
2556
+ var s = v(e);
2557
+ t[R] = s === 24 ? 0 : s;
2558
+ });
2559
+ k(["a", "A"], function(e, t, n) {
2560
+ n._isPm = n._locale.isPM(e), n._meridiem = e;
2561
+ });
2562
+ k(["h", "hh"], function(e, t, n) {
2563
+ t[R] = v(e), _(n).bigHour = !0;
2564
+ });
2565
+ k("hmm", function(e, t, n) {
2566
+ var s = e.length - 2;
2567
+ t[R] = v(e.substr(0, s)), t[z] = v(e.substr(s)), _(n).bigHour = !0;
2568
+ });
2569
+ k("hmmss", function(e, t, n) {
2570
+ var s = e.length - 4, i = e.length - 2;
2571
+ t[R] = v(e.substr(0, s)), t[z] = v(e.substr(s, 2)), t[ie] = v(e.substr(i)), _(n).bigHour = !0;
2572
+ });
2573
+ k("Hmm", function(e, t, n) {
2574
+ var s = e.length - 2;
2575
+ t[R] = v(e.substr(0, s)), t[z] = v(e.substr(s));
2576
+ });
2577
+ k("Hmmss", function(e, t, n) {
2578
+ var s = e.length - 4, i = e.length - 2;
2579
+ t[R] = v(e.substr(0, s)), t[z] = v(e.substr(s, 2)), t[ie] = v(e.substr(i));
2580
+ });
2581
+ function dr(e) {
2582
+ return (e + "").toLowerCase().charAt(0) === "p";
2583
+ }
2584
+ var hr = /[ap]\.?m?\.?/i, cr = Ne("Hours", !0);
2585
+ function fr(e, t, n) {
2586
+ return e > 11 ? n ? "pm" : "PM" : n ? "am" : "AM";
2587
+ }
2588
+ var es = {
2589
+ calendar: ti,
2590
+ longDateFormat: ri,
2591
+ invalidDate: oi,
2592
+ ordinal: li,
2593
+ dayOfMonthOrdinalParse: di,
2594
+ relativeTime: ci,
2595
+ months: Yi,
2596
+ monthsShort: Gn,
2597
+ week: Ui,
2598
+ weekdays: Ki,
2599
+ weekdaysMin: Bi,
2600
+ weekdaysShort: Zn,
2601
+ meridiemParse: hr
2602
+ }, Y = {}, Ee = {}, Ve;
2603
+ function gr(e, t) {
2604
+ var n, s = Math.min(e.length, t.length);
2605
+ for (n = 0; n < s; n += 1)
2606
+ if (e[n] !== t[n])
2607
+ return n;
2608
+ return s;
2609
+ }
2610
+ function Yn(e) {
2611
+ return e && e.toLowerCase().replace("_", "-");
2612
+ }
2613
+ function mr(e) {
2614
+ for (var t = 0, n, s, i, r; t < e.length; ) {
2615
+ for (r = Yn(e[t]).split("-"), n = r.length, s = Yn(e[t + 1]), s = s ? s.split("-") : null; n > 0; ) {
2616
+ if (i = wt(r.slice(0, n).join("-")), i)
2617
+ return i;
2618
+ if (s && s.length >= n && gr(r, s) >= n - 1)
2619
+ break;
2620
+ n--;
2621
+ }
2622
+ t++;
2623
+ }
2624
+ return Ve;
2625
+ }
2626
+ function pr(e) {
2627
+ return !!(e && e.match("^[^/\\\\]*$"));
2628
+ }
2629
+ function wt(e) {
2630
+ var t = null, n;
2631
+ if (Y[e] === void 0 && typeof module < "u" && module && module.exports && pr(e))
2632
+ try {
2633
+ t = Ve._abbr, n = require, n("./locale/" + e), ce(t);
2634
+ } catch {
2635
+ Y[e] = null;
2636
+ }
2637
+ return Y[e];
2638
+ }
2639
+ function ce(e, t) {
2640
+ var n;
2641
+ return e && (A(t) ? n = ue(e) : n = tn(e, t), n ? Ve = n : typeof console < "u" && console.warn && console.warn(
2642
+ "Locale " + e + " not found. Did you forget to load it?"
2643
+ )), Ve._abbr;
2644
+ }
2645
+ function tn(e, t) {
2646
+ if (t !== null) {
2647
+ var n, s = es;
2648
+ if (t.abbr = e, Y[e] != null)
2649
+ An(
2650
+ "defineLocaleOverride",
2651
+ "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."
2652
+ ), s = Y[e]._config;
2653
+ else if (t.parentLocale != null)
2654
+ if (Y[t.parentLocale] != null)
2655
+ s = Y[t.parentLocale]._config;
2656
+ else if (n = wt(t.parentLocale), n != null)
2657
+ s = n._config;
2658
+ else
2659
+ return Ee[t.parentLocale] || (Ee[t.parentLocale] = []), Ee[t.parentLocale].push({
2660
+ name: e,
2661
+ config: t
2662
+ }), null;
2663
+ return Y[e] = new Gt(Ft(s, t)), Ee[e] && Ee[e].forEach(function(i) {
2664
+ tn(i.name, i.config);
2665
+ }), ce(e), Y[e];
2666
+ } else
2667
+ return delete Y[e], null;
2668
+ }
2669
+ function yr(e, t) {
2670
+ if (t != null) {
2671
+ var n, s, i = es;
2672
+ Y[e] != null && Y[e].parentLocale != null ? Y[e].set(Ft(Y[e]._config, t)) : (s = wt(e), s != null && (i = s._config), t = Ft(i, t), s == null && (t.abbr = e), n = new Gt(t), n.parentLocale = Y[e], Y[e] = n), ce(e);
2673
+ } else
2674
+ Y[e] != null && (Y[e].parentLocale != null ? (Y[e] = Y[e].parentLocale, e === ce() && ce(e)) : Y[e] != null && delete Y[e]);
2675
+ return Y[e];
2676
+ }
2677
+ function ue(e) {
2678
+ var t;
2679
+ if (e && e._locale && e._locale._abbr && (e = e._locale._abbr), !e)
2680
+ return Ve;
2681
+ if (!K(e)) {
2682
+ if (t = wt(e), t)
2683
+ return t;
2684
+ e = [e];
2685
+ }
2686
+ return mr(e);
2687
+ }
2688
+ function _r() {
2689
+ return At(Y);
2690
+ }
2691
+ function nn(e) {
2692
+ var t, n = e._a;
2693
+ return n && _(e).overflow === -2 && (t = n[se] < 0 || n[se] > 11 ? se : n[J] < 1 || n[J] > Zt(n[P], n[se]) ? J : n[R] < 0 || n[R] > 24 || n[R] === 24 && (n[z] !== 0 || n[ie] !== 0 || n[pe] !== 0) ? R : n[z] < 0 || n[z] > 59 ? z : n[ie] < 0 || n[ie] > 59 ? ie : n[pe] < 0 || n[pe] > 999 ? pe : -1, _(e)._overflowDayOfYear && (t < P || t > J) && (t = J), _(e)._overflowWeeks && t === -1 && (t = bi), _(e)._overflowWeekday && t === -1 && (t = xi), _(e).overflow = t), e;
2694
+ }
2695
+ var vr = /^\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)?)?$/, wr = /^\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)?)?$/, Sr = /Z|[+-]\d\d(?::?\d\d)?/, Xe = [
2696
+ ["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
2697
+ ["YYYY-MM-DD", /\d{4}-\d\d-\d\d/],
2698
+ ["GGGG-[W]WW-E", /\d{4}-W\d\d-\d/],
2699
+ ["GGGG-[W]WW", /\d{4}-W\d\d/, !1],
2700
+ ["YYYY-DDD", /\d{4}-\d{3}/],
2701
+ ["YYYY-MM", /\d{4}-\d\d/, !1],
2702
+ ["YYYYYYMMDD", /[+-]\d{10}/],
2703
+ ["YYYYMMDD", /\d{8}/],
2704
+ ["GGGG[W]WWE", /\d{4}W\d{3}/],
2705
+ ["GGGG[W]WW", /\d{4}W\d{2}/, !1],
2706
+ ["YYYYDDD", /\d{7}/],
2707
+ ["YYYYMM", /\d{6}/, !1],
2708
+ ["YYYY", /\d{4}/, !1]
2709
+ ], Lt = [
2710
+ ["HH:mm:ss.SSSS", /\d\d:\d\d:\d\d\.\d+/],
2711
+ ["HH:mm:ss,SSSS", /\d\d:\d\d:\d\d,\d+/],
2712
+ ["HH:mm:ss", /\d\d:\d\d:\d\d/],
2713
+ ["HH:mm", /\d\d:\d\d/],
2714
+ ["HHmmss.SSSS", /\d\d\d\d\d\d\.\d+/],
2715
+ ["HHmmss,SSSS", /\d\d\d\d\d\d,\d+/],
2716
+ ["HHmmss", /\d\d\d\d\d\d/],
2717
+ ["HHmm", /\d\d\d\d/],
2718
+ ["HH", /\d\d/]
2719
+ ], br = /^\/?Date\((-?\d+)/i, xr = /^(?:(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}))$/, kr = {
2720
+ UT: 0,
2721
+ GMT: 0,
2722
+ EDT: -4 * 60,
2723
+ EST: -5 * 60,
2724
+ CDT: -5 * 60,
2725
+ CST: -6 * 60,
2726
+ MDT: -6 * 60,
2727
+ MST: -7 * 60,
2728
+ PDT: -7 * 60,
2729
+ PST: -8 * 60
2730
+ };
2731
+ function ts(e) {
2732
+ var t, n, s = e._i, i = vr.exec(s) || wr.exec(s), r, a, o, u, l = Xe.length, h = Lt.length;
2733
+ if (i) {
2734
+ for (_(e).iso = !0, t = 0, n = l; t < n; t++)
2735
+ if (Xe[t][1].exec(i[1])) {
2736
+ a = Xe[t][0], r = Xe[t][2] !== !1;
2737
+ break;
2738
+ }
2739
+ if (a == null) {
2740
+ e._isValid = !1;
2741
+ return;
2742
+ }
2743
+ if (i[3]) {
2744
+ for (t = 0, n = h; t < n; t++)
2745
+ if (Lt[t][1].exec(i[3])) {
2746
+ o = (i[2] || " ") + Lt[t][0];
2747
+ break;
2748
+ }
2749
+ if (o == null) {
2750
+ e._isValid = !1;
2751
+ return;
2752
+ }
2753
+ }
2754
+ if (!r && o != null) {
2755
+ e._isValid = !1;
2756
+ return;
2757
+ }
2758
+ if (i[4])
2759
+ if (Sr.exec(i[4]))
2760
+ u = "Z";
2761
+ else {
2762
+ e._isValid = !1;
2763
+ return;
2764
+ }
2765
+ e._f = a + (o || "") + (u || ""), rn(e);
2766
+ } else
2767
+ e._isValid = !1;
2768
+ }
2769
+ function Or(e, t, n, s, i, r) {
2770
+ var a = [
2771
+ Mr(e),
2772
+ Gn.indexOf(t),
2773
+ parseInt(n, 10),
2774
+ parseInt(s, 10),
2775
+ parseInt(i, 10)
2776
+ ];
2777
+ return r && a.push(parseInt(r, 10)), a;
2778
+ }
2779
+ function Mr(e) {
2780
+ var t = parseInt(e, 10);
2781
+ return t <= 49 ? 2e3 + t : t <= 999 ? 1900 + t : t;
2782
+ }
2783
+ function Dr(e) {
2784
+ return e.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").replace(/^\s\s*/, "").replace(/\s\s*$/, "");
2785
+ }
2786
+ function Yr(e, t, n) {
2787
+ if (e) {
2788
+ var s = Zn.indexOf(e), i = new Date(
2789
+ t[0],
2790
+ t[1],
2791
+ t[2]
2792
+ ).getDay();
2793
+ if (s !== i)
2794
+ return _(n).weekdayMismatch = !0, n._isValid = !1, !1;
2795
+ }
2796
+ return !0;
2797
+ }
2798
+ function Nr(e, t, n) {
2799
+ if (e)
2800
+ return kr[e];
2801
+ if (t)
2802
+ return 0;
2803
+ var s = parseInt(n, 10), i = s % 100, r = (s - i) / 100;
2804
+ return r * 60 + i;
2805
+ }
2806
+ function ns(e) {
2807
+ var t = xr.exec(Dr(e._i)), n;
2808
+ if (t) {
2809
+ if (n = Or(
2810
+ t[4],
2811
+ t[3],
2812
+ t[2],
2813
+ t[5],
2814
+ t[6],
2815
+ t[7]
2816
+ ), !Yr(t[1], n, e))
2817
+ return;
2818
+ e._a = n, e._tzm = Nr(t[8], t[9], t[10]), e._d = He.apply(null, e._a), e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), _(e).rfc2822 = !0;
2819
+ } else
2820
+ e._isValid = !1;
2821
+ }
2822
+ function Cr(e) {
2823
+ var t = br.exec(e._i);
2824
+ if (t !== null) {
2825
+ e._d = /* @__PURE__ */ new Date(+t[1]);
2826
+ return;
2827
+ }
2828
+ if (ts(e), e._isValid === !1)
2829
+ delete e._isValid;
2830
+ else
2831
+ return;
2832
+ if (ns(e), e._isValid === !1)
2833
+ delete e._isValid;
2834
+ else
2835
+ return;
2836
+ e._strict ? e._isValid = !1 : g.createFromInputFallback(e);
2837
+ }
2838
+ g.createFromInputFallback = V(
2839
+ "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.",
2840
+ function(e) {
2841
+ e._d = /* @__PURE__ */ new Date(e._i + (e._useUTC ? " UTC" : ""));
2842
+ }
2843
+ );
2844
+ function be(e, t, n) {
2845
+ return e ?? t ?? n;
2846
+ }
2847
+ function Lr(e) {
2848
+ var t = new Date(g.now());
2849
+ return e._useUTC ? [
2850
+ t.getUTCFullYear(),
2851
+ t.getUTCMonth(),
2852
+ t.getUTCDate()
2853
+ ] : [t.getFullYear(), t.getMonth(), t.getDate()];
2854
+ }
2855
+ function sn(e) {
2856
+ var t, n, s = [], i, r, a;
2857
+ if (!e._d) {
2858
+ for (i = Lr(e), e._w && e._a[J] == null && e._a[se] == null && Rr(e), e._dayOfYear != null && (a = be(e._a[P], i[P]), (e._dayOfYear > Ie(a) || e._dayOfYear === 0) && (_(e)._overflowDayOfYear = !0), n = He(a, 0, e._dayOfYear), e._a[se] = n.getUTCMonth(), e._a[J] = n.getUTCDate()), t = 0; t < 3 && e._a[t] == null; ++t)
2859
+ e._a[t] = s[t] = i[t];
2860
+ for (; t < 7; t++)
2861
+ e._a[t] = s[t] = e._a[t] == null ? t === 2 ? 1 : 0 : e._a[t];
2862
+ e._a[R] === 24 && e._a[z] === 0 && e._a[ie] === 0 && e._a[pe] === 0 && (e._nextDay = !0, e._a[R] = 0), e._d = (e._useUTC ? He : Ii).apply(
2863
+ null,
2864
+ s
2865
+ ), r = e._useUTC ? e._d.getUTCDay() : e._d.getDay(), e._tzm != null && e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), e._nextDay && (e._a[R] = 24), e._w && typeof e._w.d < "u" && e._w.d !== r && (_(e).weekdayMismatch = !0);
2866
+ }
2867
+ }
2868
+ function Rr(e) {
2869
+ var t, n, s, i, r, a, o, u, l;
2870
+ t = e._w, t.GG != null || t.W != null || t.E != null ? (r = 1, a = 4, n = be(
2871
+ t.GG,
2872
+ e._a[P],
2873
+ $e(O(), 1, 4).year
2874
+ ), s = be(t.W, 1), i = be(t.E, 1), (i < 1 || i > 7) && (u = !0)) : (r = e._locale._week.dow, a = e._locale._week.doy, l = $e(O(), r, a), n = be(t.gg, e._a[P], l.year), s = be(t.w, l.week), t.d != null ? (i = t.d, (i < 0 || i > 6) && (u = !0)) : t.e != null ? (i = t.e + r, (t.e < 0 || t.e > 6) && (u = !0)) : i = r), s < 1 || s > ae(n, r, a) ? _(e)._overflowWeeks = !0 : u != null ? _(e)._overflowWeekday = !0 : (o = Jn(n, s, i, r, a), e._a[P] = o.year, e._dayOfYear = o.dayOfYear);
2875
+ }
2876
+ g.ISO_8601 = function() {
2877
+ };
2878
+ g.RFC_2822 = function() {
2879
+ };
2880
+ function rn(e) {
2881
+ if (e._f === g.ISO_8601) {
2882
+ ts(e);
2883
+ return;
2884
+ }
2885
+ if (e._f === g.RFC_2822) {
2886
+ ns(e);
2887
+ return;
2888
+ }
2889
+ e._a = [], _(e).empty = !0;
2890
+ var t = "" + e._i, n, s, i, r, a, o = t.length, u = 0, l, h;
2891
+ for (i = In(e._f, e._locale).match(zt) || [], h = i.length, n = 0; n < h; n++)
2892
+ r = i[n], s = (t.match(vi(r, e)) || [])[0], s && (a = t.substr(0, t.indexOf(s)), a.length > 0 && _(e).unusedInput.push(a), t = t.slice(
2893
+ t.indexOf(s) + s.length
2894
+ ), u += s.length), ke[r] ? (s ? _(e).empty = !1 : _(e).unusedTokens.push(r), Si(r, s, e)) : e._strict && !s && _(e).unusedTokens.push(r);
2895
+ _(e).charsLeftOver = o - u, t.length > 0 && _(e).unusedInput.push(t), e._a[R] <= 12 && _(e).bigHour === !0 && e._a[R] > 0 && (_(e).bigHour = void 0), _(e).parsedDateParts = e._a.slice(0), _(e).meridiem = e._meridiem, e._a[R] = Pr(
2896
+ e._locale,
2897
+ e._a[R],
2898
+ e._meridiem
2899
+ ), l = _(e).era, l !== null && (e._a[P] = e._locale.erasConvertYear(l, e._a[P])), sn(e), nn(e);
2900
+ }
2901
+ function Pr(e, t, n) {
2902
+ var s;
2903
+ return n == null ? t : e.meridiemHour != null ? e.meridiemHour(t, n) : (e.isPM != null && (s = e.isPM(n), s && t < 12 && (t += 12), !s && t === 12 && (t = 0)), t);
2904
+ }
2905
+ function Tr(e) {
2906
+ var t, n, s, i, r, a, o = !1, u = e._f.length;
2907
+ if (u === 0) {
2908
+ _(e).invalidFormat = !0, e._d = /* @__PURE__ */ new Date(NaN);
2909
+ return;
2910
+ }
2911
+ for (i = 0; i < u; i++)
2912
+ r = 0, a = !1, t = Wt({}, e), e._useUTC != null && (t._useUTC = e._useUTC), t._f = e._f[i], rn(t), Vt(t) && (a = !0), r += _(t).charsLeftOver, r += _(t).unusedTokens.length * 10, _(t).score = r, o ? r < s && (s = r, n = t) : (s == null || r < s || a) && (s = r, n = t, a && (o = !0));
2913
+ de(e, n || t);
2914
+ }
2915
+ function Er(e) {
2916
+ if (!e._d) {
2917
+ var t = Kt(e._i), n = t.day === void 0 ? t.date : t.day;
2918
+ e._a = En(
2919
+ [t.year, t.month, n, t.hour, t.minute, t.second, t.millisecond],
2920
+ function(s) {
2921
+ return s && parseInt(s, 10);
2922
+ }
2923
+ ), sn(e);
2924
+ }
2925
+ }
2926
+ function Fr(e) {
2927
+ var t = new Ge(nn(ss(e)));
2928
+ return t._nextDay && (t.add(1, "d"), t._nextDay = void 0), t;
2929
+ }
2930
+ function ss(e) {
2931
+ var t = e._i, n = e._f;
2932
+ return e._locale = e._locale || ue(e._l), t === null || n === void 0 && t === "" ? ft({ nullInput: !0 }) : (typeof t == "string" && (e._i = t = e._locale.preparse(t)), B(t) ? new Ge(nn(t)) : (We(t) ? e._d = t : K(n) ? Tr(e) : n ? rn(e) : Ar(e), Vt(e) || (e._d = null), e));
2933
+ }
2934
+ function Ar(e) {
2935
+ var t = e._i;
2936
+ A(t) ? e._d = new Date(g.now()) : We(t) ? e._d = new Date(t.valueOf()) : typeof t == "string" ? Cr(e) : K(t) ? (e._a = En(t.slice(0), function(n) {
2937
+ return parseInt(n, 10);
2938
+ }), sn(e)) : ye(t) ? Er(e) : oe(t) ? e._d = new Date(t) : g.createFromInputFallback(e);
2939
+ }
2940
+ function is(e, t, n, s, i) {
2941
+ var r = {};
2942
+ return (t === !0 || t === !1) && (s = t, t = void 0), (n === !0 || n === !1) && (s = n, n = void 0), (ye(e) && $t(e) || K(e) && e.length === 0) && (e = void 0), r._isAMomentObject = !0, r._useUTC = r._isUTC = i, r._l = n, r._i = e, r._f = t, r._strict = s, Fr(r);
2943
+ }
2944
+ function O(e, t, n, s) {
2945
+ return is(e, t, n, s, !1);
2946
+ }
2947
+ var Ir = V(
2948
+ "moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",
2949
+ function() {
2950
+ var e = O.apply(null, arguments);
2951
+ return this.isValid() && e.isValid() ? e < this ? this : e : ft();
2952
+ }
2953
+ ), jr = V(
2954
+ "moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",
2955
+ function() {
2956
+ var e = O.apply(null, arguments);
2957
+ return this.isValid() && e.isValid() ? e > this ? this : e : ft();
2958
+ }
2959
+ );
2960
+ function rs(e, t) {
2961
+ var n, s;
2962
+ if (t.length === 1 && K(t[0]) && (t = t[0]), !t.length)
2963
+ return O();
2964
+ for (n = t[0], s = 1; s < t.length; ++s)
2965
+ (!t[s].isValid() || t[s][e](n)) && (n = t[s]);
2966
+ return n;
2967
+ }
2968
+ function Ur() {
2969
+ var e = [].slice.call(arguments, 0);
2970
+ return rs("isBefore", e);
2971
+ }
2972
+ function Hr() {
2973
+ var e = [].slice.call(arguments, 0);
2974
+ return rs("isAfter", e);
2975
+ }
2976
+ var $r = function() {
2977
+ return Date.now ? Date.now() : +/* @__PURE__ */ new Date();
2978
+ }, Fe = [
2979
+ "year",
2980
+ "quarter",
2981
+ "month",
2982
+ "week",
2983
+ "day",
2984
+ "hour",
2985
+ "minute",
2986
+ "second",
2987
+ "millisecond"
2988
+ ];
2989
+ function Vr(e) {
2990
+ var t, n = !1, s, i = Fe.length;
2991
+ for (t in e)
2992
+ if (S(e, t) && !(L.call(Fe, t) !== -1 && (e[t] == null || !isNaN(e[t]))))
2993
+ return !1;
2994
+ for (s = 0; s < i; ++s)
2995
+ if (e[Fe[s]]) {
2996
+ if (n)
2997
+ return !1;
2998
+ parseFloat(e[Fe[s]]) !== v(e[Fe[s]]) && (n = !0);
2999
+ }
3000
+ return !0;
3001
+ }
3002
+ function Wr() {
3003
+ return this._isValid;
3004
+ }
3005
+ function Gr() {
3006
+ return q(NaN);
3007
+ }
3008
+ function St(e) {
3009
+ var t = Kt(e), n = t.year || 0, s = t.quarter || 0, i = t.month || 0, r = t.week || t.isoWeek || 0, a = t.day || 0, o = t.hour || 0, u = t.minute || 0, l = t.second || 0, h = t.millisecond || 0;
3010
+ this._isValid = Vr(t), this._milliseconds = +h + l * 1e3 + // 1000
3011
+ u * 6e4 + // 1000 * 60
3012
+ o * 1e3 * 60 * 60, this._days = +a + r * 7, this._months = +i + s * 3 + n * 12, this._data = {}, this._locale = ue(), this._bubble();
3013
+ }
3014
+ function tt(e) {
3015
+ return e instanceof St;
3016
+ }
3017
+ function jt(e) {
3018
+ return e < 0 ? Math.round(-1 * e) * -1 : Math.round(e);
3019
+ }
3020
+ function zr(e, t, n) {
3021
+ var s = Math.min(e.length, t.length), i = Math.abs(e.length - t.length), r = 0, a;
3022
+ for (a = 0; a < s; a++)
3023
+ v(e[a]) !== v(t[a]) && r++;
3024
+ return r + i;
3025
+ }
3026
+ function as(e, t) {
3027
+ p(e, 0, 0, function() {
3028
+ var n = this.utcOffset(), s = "+";
3029
+ return n < 0 && (n = -n, s = "-"), s + Q(~~(n / 60), 2) + t + Q(~~n % 60, 2);
3030
+ });
3031
+ }
3032
+ as("Z", ":");
3033
+ as("ZZ", "");
3034
+ m("Z", _t);
3035
+ m("ZZ", _t);
3036
+ k(["Z", "ZZ"], function(e, t, n) {
3037
+ n._useUTC = !0, n._tzm = an(_t, e);
3038
+ });
3039
+ var Kr = /([\+\-]|\d\d)/gi;
3040
+ function an(e, t) {
3041
+ var n = (t || "").match(e), s, i, r;
3042
+ return n === null ? null : (s = n[n.length - 1] || [], i = (s + "").match(Kr) || ["-", 0, 0], r = +(i[1] * 60) + v(i[2]), r === 0 ? 0 : i[0] === "+" ? r : -r);
3043
+ }
3044
+ function on(e, t) {
3045
+ var n, s;
3046
+ return t._isUTC ? (n = t.clone(), s = (B(e) || We(e) ? e.valueOf() : O(e).valueOf()) - n.valueOf(), n._d.setTime(n._d.valueOf() + s), g.updateOffset(n, !1), n) : O(e).local();
3047
+ }
3048
+ function Ut(e) {
3049
+ return -Math.round(e._d.getTimezoneOffset());
3050
+ }
3051
+ g.updateOffset = function() {
3052
+ };
3053
+ function Br(e, t, n) {
3054
+ var s = this._offset || 0, i;
3055
+ if (!this.isValid())
3056
+ return e != null ? this : NaN;
3057
+ if (e != null) {
3058
+ if (typeof e == "string") {
3059
+ if (e = an(_t, e), e === null)
3060
+ return this;
3061
+ } else
3062
+ Math.abs(e) < 16 && !n && (e = e * 60);
3063
+ return !this._isUTC && t && (i = Ut(this)), this._offset = e, this._isUTC = !0, i != null && this.add(i, "m"), s !== e && (!t || this._changeInProgress ? ls(
3064
+ this,
3065
+ q(e - s, "m"),
3066
+ 1,
3067
+ !1
3068
+ ) : this._changeInProgress || (this._changeInProgress = !0, g.updateOffset(this, !0), this._changeInProgress = null)), this;
3069
+ } else
3070
+ return this._isUTC ? s : Ut(this);
3071
+ }
3072
+ function qr(e, t) {
3073
+ return e != null ? (typeof e != "string" && (e = -e), this.utcOffset(e, t), this) : -this.utcOffset();
3074
+ }
3075
+ function Jr(e) {
3076
+ return this.utcOffset(0, e);
3077
+ }
3078
+ function Zr(e) {
3079
+ return this._isUTC && (this.utcOffset(0, e), this._isUTC = !1, e && this.subtract(Ut(this), "m")), this;
3080
+ }
3081
+ function Qr() {
3082
+ if (this._tzm != null)
3083
+ this.utcOffset(this._tzm, !1, !0);
3084
+ else if (typeof this._i == "string") {
3085
+ var e = an(yi, this._i);
3086
+ e != null ? this.utcOffset(e) : this.utcOffset(0, !0);
3087
+ }
3088
+ return this;
3089
+ }
3090
+ function Xr(e) {
3091
+ return this.isValid() ? (e = e ? O(e).utcOffset() : 0, (this.utcOffset() - e) % 60 === 0) : !1;
3092
+ }
3093
+ function ea() {
3094
+ return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset();
3095
+ }
3096
+ function ta() {
3097
+ if (!A(this._isDSTShifted))
3098
+ return this._isDSTShifted;
3099
+ var e = {}, t;
3100
+ return Wt(e, this), e = ss(e), e._a ? (t = e._isUTC ? X(e._a) : O(e._a), this._isDSTShifted = this.isValid() && zr(e._a, t.toArray()) > 0) : this._isDSTShifted = !1, this._isDSTShifted;
3101
+ }
3102
+ function na() {
3103
+ return this.isValid() ? !this._isUTC : !1;
3104
+ }
3105
+ function sa() {
3106
+ return this.isValid() ? this._isUTC : !1;
3107
+ }
3108
+ function os() {
3109
+ return this.isValid() ? this._isUTC && this._offset === 0 : !1;
3110
+ }
3111
+ var ia = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, ra = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
3112
+ function q(e, t) {
3113
+ var n = e, s = null, i, r, a;
3114
+ return tt(e) ? n = {
3115
+ ms: e._milliseconds,
3116
+ d: e._days,
3117
+ M: e._months
3118
+ } : oe(e) || !isNaN(+e) ? (n = {}, t ? n[t] = +e : n.milliseconds = +e) : (s = ia.exec(e)) ? (i = s[1] === "-" ? -1 : 1, n = {
3119
+ y: 0,
3120
+ d: v(s[J]) * i,
3121
+ h: v(s[R]) * i,
3122
+ m: v(s[z]) * i,
3123
+ s: v(s[ie]) * i,
3124
+ ms: v(jt(s[pe] * 1e3)) * i
3125
+ // the millisecond decimal point is included in the match
3126
+ }) : (s = ra.exec(e)) ? (i = s[1] === "-" ? -1 : 1, n = {
3127
+ y: ge(s[2], i),
3128
+ M: ge(s[3], i),
3129
+ w: ge(s[4], i),
3130
+ d: ge(s[5], i),
3131
+ h: ge(s[6], i),
3132
+ m: ge(s[7], i),
3133
+ s: ge(s[8], i)
3134
+ }) : n == null ? n = {} : typeof n == "object" && ("from" in n || "to" in n) && (a = aa(
3135
+ O(n.from),
3136
+ O(n.to)
3137
+ ), n = {}, n.ms = a.milliseconds, n.M = a.months), r = new St(n), tt(e) && S(e, "_locale") && (r._locale = e._locale), tt(e) && S(e, "_isValid") && (r._isValid = e._isValid), r;
3138
+ }
3139
+ q.fn = St.prototype;
3140
+ q.invalid = Gr;
3141
+ function ge(e, t) {
3142
+ var n = e && parseFloat(e.replace(",", "."));
3143
+ return (isNaN(n) ? 0 : n) * t;
3144
+ }
3145
+ function Nn(e, t) {
3146
+ var n = {};
3147
+ return n.months = t.month() - e.month() + (t.year() - e.year()) * 12, e.clone().add(n.months, "M").isAfter(t) && --n.months, n.milliseconds = +t - +e.clone().add(n.months, "M"), n;
3148
+ }
3149
+ function aa(e, t) {
3150
+ var n;
3151
+ return e.isValid() && t.isValid() ? (t = on(t, e), e.isBefore(t) ? n = Nn(e, t) : (n = Nn(t, e), n.milliseconds = -n.milliseconds, n.months = -n.months), n) : { milliseconds: 0, months: 0 };
3152
+ }
3153
+ function us(e, t) {
3154
+ return function(n, s) {
3155
+ var i, r;
3156
+ return s !== null && !isNaN(+s) && (An(
3157
+ t,
3158
+ "moment()." + t + "(period, number) is deprecated. Please use moment()." + t + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."
3159
+ ), r = n, n = s, s = r), i = q(n, s), ls(this, i, e), this;
3160
+ };
3161
+ }
3162
+ function ls(e, t, n, s) {
3163
+ var i = t._milliseconds, r = jt(t._days), a = jt(t._months);
3164
+ e.isValid() && (s = s ?? !0, a && Kn(e, Ue(e, "Month") + a * n), r && Wn(e, "Date", Ue(e, "Date") + r * n), i && e._d.setTime(e._d.valueOf() + i * n), s && g.updateOffset(e, r || a));
3165
+ }
3166
+ var oa = us(1, "add"), ua = us(-1, "subtract");
3167
+ function ds(e) {
3168
+ return typeof e == "string" || e instanceof String;
3169
+ }
3170
+ function la(e) {
3171
+ return B(e) || We(e) || ds(e) || oe(e) || ha(e) || da(e) || e === null || e === void 0;
3172
+ }
3173
+ function da(e) {
3174
+ var t = ye(e) && !$t(e), n = !1, s = [
3175
+ "years",
3176
+ "year",
3177
+ "y",
3178
+ "months",
3179
+ "month",
3180
+ "M",
3181
+ "days",
3182
+ "day",
3183
+ "d",
3184
+ "dates",
3185
+ "date",
3186
+ "D",
3187
+ "hours",
3188
+ "hour",
3189
+ "h",
3190
+ "minutes",
3191
+ "minute",
3192
+ "m",
3193
+ "seconds",
3194
+ "second",
3195
+ "s",
3196
+ "milliseconds",
3197
+ "millisecond",
3198
+ "ms"
3199
+ ], i, r, a = s.length;
3200
+ for (i = 0; i < a; i += 1)
3201
+ r = s[i], n = n || S(e, r);
3202
+ return t && n;
3203
+ }
3204
+ function ha(e) {
3205
+ var t = K(e), n = !1;
3206
+ return t && (n = e.filter(function(s) {
3207
+ return !oe(s) && ds(e);
3208
+ }).length === 0), t && n;
3209
+ }
3210
+ function ca(e) {
3211
+ var t = ye(e) && !$t(e), n = !1, s = [
3212
+ "sameDay",
3213
+ "nextDay",
3214
+ "lastDay",
3215
+ "nextWeek",
3216
+ "lastWeek",
3217
+ "sameElse"
3218
+ ], i, r;
3219
+ for (i = 0; i < s.length; i += 1)
3220
+ r = s[i], n = n || S(e, r);
3221
+ return t && n;
3222
+ }
3223
+ function fa(e, t) {
3224
+ var n = e.diff(t, "days", !0);
3225
+ return n < -6 ? "sameElse" : n < -1 ? "lastWeek" : n < 0 ? "lastDay" : n < 1 ? "sameDay" : n < 2 ? "nextDay" : n < 7 ? "nextWeek" : "sameElse";
3226
+ }
3227
+ function ga(e, t) {
3228
+ arguments.length === 1 && (arguments[0] ? la(arguments[0]) ? (e = arguments[0], t = void 0) : ca(arguments[0]) && (t = arguments[0], e = void 0) : (e = void 0, t = void 0));
3229
+ var n = e || O(), s = on(n, this).startOf("day"), i = g.calendarFormat(this, s) || "sameElse", r = t && (ee(t[i]) ? t[i].call(this, n) : t[i]);
3230
+ return this.format(
3231
+ r || this.localeData().calendar(i, this, O(n))
3232
+ );
3233
+ }
3234
+ function ma() {
3235
+ return new Ge(this);
3236
+ }
3237
+ function pa(e, t) {
3238
+ var n = B(e) ? e : O(e);
3239
+ return this.isValid() && n.isValid() ? (t = W(t) || "millisecond", t === "millisecond" ? this.valueOf() > n.valueOf() : n.valueOf() < this.clone().startOf(t).valueOf()) : !1;
3240
+ }
3241
+ function ya(e, t) {
3242
+ var n = B(e) ? e : O(e);
3243
+ return this.isValid() && n.isValid() ? (t = W(t) || "millisecond", t === "millisecond" ? this.valueOf() < n.valueOf() : this.clone().endOf(t).valueOf() < n.valueOf()) : !1;
3244
+ }
3245
+ function _a(e, t, n, s) {
3246
+ var i = B(e) ? e : O(e), r = B(t) ? t : O(t);
3247
+ return this.isValid() && i.isValid() && r.isValid() ? (s = s || "()", (s[0] === "(" ? this.isAfter(i, n) : !this.isBefore(i, n)) && (s[1] === ")" ? this.isBefore(r, n) : !this.isAfter(r, n))) : !1;
3248
+ }
3249
+ function va(e, t) {
3250
+ var n = B(e) ? e : O(e), s;
3251
+ return this.isValid() && n.isValid() ? (t = W(t) || "millisecond", t === "millisecond" ? this.valueOf() === n.valueOf() : (s = n.valueOf(), this.clone().startOf(t).valueOf() <= s && s <= this.clone().endOf(t).valueOf())) : !1;
3252
+ }
3253
+ function wa(e, t) {
3254
+ return this.isSame(e, t) || this.isAfter(e, t);
3255
+ }
3256
+ function Sa(e, t) {
3257
+ return this.isSame(e, t) || this.isBefore(e, t);
3258
+ }
3259
+ function ba(e, t, n) {
3260
+ var s, i, r;
3261
+ if (!this.isValid())
3262
+ return NaN;
3263
+ if (s = on(e, this), !s.isValid())
3264
+ return NaN;
3265
+ switch (i = (s.utcOffset() - this.utcOffset()) * 6e4, t = W(t), t) {
3266
+ case "year":
3267
+ r = nt(this, s) / 12;
3268
+ break;
3269
+ case "month":
3270
+ r = nt(this, s);
3271
+ break;
3272
+ case "quarter":
3273
+ r = nt(this, s) / 3;
3274
+ break;
3275
+ case "second":
3276
+ r = (this - s) / 1e3;
3277
+ break;
3278
+ case "minute":
3279
+ r = (this - s) / 6e4;
3280
+ break;
3281
+ case "hour":
3282
+ r = (this - s) / 36e5;
3283
+ break;
3284
+ case "day":
3285
+ r = (this - s - i) / 864e5;
3286
+ break;
3287
+ case "week":
3288
+ r = (this - s - i) / 6048e5;
3289
+ break;
3290
+ default:
3291
+ r = this - s;
3292
+ }
3293
+ return n ? r : $(r);
3294
+ }
3295
+ function nt(e, t) {
3296
+ if (e.date() < t.date())
3297
+ return -nt(t, e);
3298
+ var n = (t.year() - e.year()) * 12 + (t.month() - e.month()), s = e.clone().add(n, "months"), i, r;
3299
+ return t - s < 0 ? (i = e.clone().add(n - 1, "months"), r = (t - s) / (s - i)) : (i = e.clone().add(n + 1, "months"), r = (t - s) / (i - s)), -(n + r) || 0;
3300
+ }
3301
+ g.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ";
3302
+ g.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]";
3303
+ function xa() {
3304
+ return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ");
3305
+ }
3306
+ function ka(e) {
3307
+ if (!this.isValid())
3308
+ return null;
3309
+ var t = e !== !0, n = t ? this.clone().utc() : this;
3310
+ return n.year() < 0 || n.year() > 9999 ? et(
3311
+ n,
3312
+ t ? "YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"
3313
+ ) : ee(Date.prototype.toISOString) ? t ? this.toDate().toISOString() : new Date(this.valueOf() + this.utcOffset() * 60 * 1e3).toISOString().replace("Z", et(n, "Z")) : et(
3314
+ n,
3315
+ t ? "YYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYY-MM-DD[T]HH:mm:ss.SSSZ"
3316
+ );
3317
+ }
3318
+ function Oa() {
3319
+ if (!this.isValid())
3320
+ return "moment.invalid(/* " + this._i + " */)";
3321
+ var e = "moment", t = "", n, s, i, r;
3322
+ return this.isLocal() || (e = this.utcOffset() === 0 ? "moment.utc" : "moment.parseZone", t = "Z"), n = "[" + e + '("]', s = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY", i = "-MM-DD[T]HH:mm:ss.SSS", r = t + '[")]', this.format(n + s + i + r);
3323
+ }
3324
+ function Ma(e) {
3325
+ e || (e = this.isUtc() ? g.defaultFormatUtc : g.defaultFormat);
3326
+ var t = et(this, e);
3327
+ return this.localeData().postformat(t);
3328
+ }
3329
+ function Da(e, t) {
3330
+ return this.isValid() && (B(e) && e.isValid() || O(e).isValid()) ? q({ to: this, from: e }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate();
3331
+ }
3332
+ function Ya(e) {
3333
+ return this.from(O(), e);
3334
+ }
3335
+ function Na(e, t) {
3336
+ return this.isValid() && (B(e) && e.isValid() || O(e).isValid()) ? q({ from: this, to: e }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate();
3337
+ }
3338
+ function Ca(e) {
3339
+ return this.to(O(), e);
3340
+ }
3341
+ function hs(e) {
3342
+ var t;
3343
+ return e === void 0 ? this._locale._abbr : (t = ue(e), t != null && (this._locale = t), this);
3344
+ }
3345
+ var cs = V(
3346
+ "moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",
3347
+ function(e) {
3348
+ return e === void 0 ? this.localeData() : this.locale(e);
3349
+ }
3350
+ );
3351
+ function fs() {
3352
+ return this._locale;
3353
+ }
3354
+ var lt = 1e3, Oe = 60 * lt, dt = 60 * Oe, gs = (365 * 400 + 97) * 24 * dt;
3355
+ function Me(e, t) {
3356
+ return (e % t + t) % t;
3357
+ }
3358
+ function ms(e, t, n) {
3359
+ return e < 100 && e >= 0 ? new Date(e + 400, t, n) - gs : new Date(e, t, n).valueOf();
3360
+ }
3361
+ function ps(e, t, n) {
3362
+ return e < 100 && e >= 0 ? Date.UTC(e + 400, t, n) - gs : Date.UTC(e, t, n);
3363
+ }
3364
+ function La(e) {
3365
+ var t, n;
3366
+ if (e = W(e), e === void 0 || e === "millisecond" || !this.isValid())
3367
+ return this;
3368
+ switch (n = this._isUTC ? ps : ms, e) {
3369
+ case "year":
3370
+ t = n(this.year(), 0, 1);
3371
+ break;
3372
+ case "quarter":
3373
+ t = n(
3374
+ this.year(),
3375
+ this.month() - this.month() % 3,
3376
+ 1
3377
+ );
3378
+ break;
3379
+ case "month":
3380
+ t = n(this.year(), this.month(), 1);
3381
+ break;
3382
+ case "week":
3383
+ t = n(
3384
+ this.year(),
3385
+ this.month(),
3386
+ this.date() - this.weekday()
3387
+ );
3388
+ break;
3389
+ case "isoWeek":
3390
+ t = n(
3391
+ this.year(),
3392
+ this.month(),
3393
+ this.date() - (this.isoWeekday() - 1)
3394
+ );
3395
+ break;
3396
+ case "day":
3397
+ case "date":
3398
+ t = n(this.year(), this.month(), this.date());
3399
+ break;
3400
+ case "hour":
3401
+ t = this._d.valueOf(), t -= Me(
3402
+ t + (this._isUTC ? 0 : this.utcOffset() * Oe),
3403
+ dt
3404
+ );
3405
+ break;
3406
+ case "minute":
3407
+ t = this._d.valueOf(), t -= Me(t, Oe);
3408
+ break;
3409
+ case "second":
3410
+ t = this._d.valueOf(), t -= Me(t, lt);
3411
+ break;
3412
+ }
3413
+ return this._d.setTime(t), g.updateOffset(this, !0), this;
3414
+ }
3415
+ function Ra(e) {
3416
+ var t, n;
3417
+ if (e = W(e), e === void 0 || e === "millisecond" || !this.isValid())
3418
+ return this;
3419
+ switch (n = this._isUTC ? ps : ms, e) {
3420
+ case "year":
3421
+ t = n(this.year() + 1, 0, 1) - 1;
3422
+ break;
3423
+ case "quarter":
3424
+ t = n(
3425
+ this.year(),
3426
+ this.month() - this.month() % 3 + 3,
3427
+ 1
3428
+ ) - 1;
3429
+ break;
3430
+ case "month":
3431
+ t = n(this.year(), this.month() + 1, 1) - 1;
3432
+ break;
3433
+ case "week":
3434
+ t = n(
3435
+ this.year(),
3436
+ this.month(),
3437
+ this.date() - this.weekday() + 7
3438
+ ) - 1;
3439
+ break;
3440
+ case "isoWeek":
3441
+ t = n(
3442
+ this.year(),
3443
+ this.month(),
3444
+ this.date() - (this.isoWeekday() - 1) + 7
3445
+ ) - 1;
3446
+ break;
3447
+ case "day":
3448
+ case "date":
3449
+ t = n(this.year(), this.month(), this.date() + 1) - 1;
3450
+ break;
3451
+ case "hour":
3452
+ t = this._d.valueOf(), t += dt - Me(
3453
+ t + (this._isUTC ? 0 : this.utcOffset() * Oe),
3454
+ dt
3455
+ ) - 1;
3456
+ break;
3457
+ case "minute":
3458
+ t = this._d.valueOf(), t += Oe - Me(t, Oe) - 1;
3459
+ break;
3460
+ case "second":
3461
+ t = this._d.valueOf(), t += lt - Me(t, lt) - 1;
3462
+ break;
3463
+ }
3464
+ return this._d.setTime(t), g.updateOffset(this, !0), this;
3465
+ }
3466
+ function Pa() {
3467
+ return this._d.valueOf() - (this._offset || 0) * 6e4;
3468
+ }
3469
+ function Ta() {
3470
+ return Math.floor(this.valueOf() / 1e3);
3471
+ }
3472
+ function Ea() {
3473
+ return new Date(this.valueOf());
3474
+ }
3475
+ function Fa() {
3476
+ var e = this;
3477
+ return [
3478
+ e.year(),
3479
+ e.month(),
3480
+ e.date(),
3481
+ e.hour(),
3482
+ e.minute(),
3483
+ e.second(),
3484
+ e.millisecond()
3485
+ ];
3486
+ }
3487
+ function Aa() {
3488
+ var e = this;
3489
+ return {
3490
+ years: e.year(),
3491
+ months: e.month(),
3492
+ date: e.date(),
3493
+ hours: e.hours(),
3494
+ minutes: e.minutes(),
3495
+ seconds: e.seconds(),
3496
+ milliseconds: e.milliseconds()
3497
+ };
3498
+ }
3499
+ function Ia() {
3500
+ return this.isValid() ? this.toISOString() : null;
3501
+ }
3502
+ function ja() {
3503
+ return Vt(this);
3504
+ }
3505
+ function Ua() {
3506
+ return de({}, _(this));
3507
+ }
3508
+ function Ha() {
3509
+ return _(this).overflow;
3510
+ }
3511
+ function $a() {
3512
+ return {
3513
+ input: this._i,
3514
+ format: this._f,
3515
+ locale: this._locale,
3516
+ isUTC: this._isUTC,
3517
+ strict: this._strict
3518
+ };
3519
+ }
3520
+ p("N", 0, 0, "eraAbbr");
3521
+ p("NN", 0, 0, "eraAbbr");
3522
+ p("NNN", 0, 0, "eraAbbr");
3523
+ p("NNNN", 0, 0, "eraName");
3524
+ p("NNNNN", 0, 0, "eraNarrow");
3525
+ p("y", ["y", 1], "yo", "eraYear");
3526
+ p("y", ["yy", 2], 0, "eraYear");
3527
+ p("y", ["yyy", 3], 0, "eraYear");
3528
+ p("y", ["yyyy", 4], 0, "eraYear");
3529
+ m("N", un);
3530
+ m("NN", un);
3531
+ m("NNN", un);
3532
+ m("NNNN", Xa);
3533
+ m("NNNNN", eo);
3534
+ k(
3535
+ ["N", "NN", "NNN", "NNNN", "NNNNN"],
3536
+ function(e, t, n, s) {
3537
+ var i = n._locale.erasParse(e, s, n._strict);
3538
+ i ? _(n).era = i : _(n).invalidEra = e;
3539
+ }
3540
+ );
3541
+ m("y", De);
3542
+ m("yy", De);
3543
+ m("yyy", De);
3544
+ m("yyyy", De);
3545
+ m("yo", to);
3546
+ k(["y", "yy", "yyy", "yyyy"], P);
3547
+ k(["yo"], function(e, t, n, s) {
3548
+ var i;
3549
+ n._locale._eraYearOrdinalRegex && (i = e.match(n._locale._eraYearOrdinalRegex)), n._locale.eraYearOrdinalParse ? t[P] = n._locale.eraYearOrdinalParse(e, i) : t[P] = parseInt(e, 10);
3550
+ });
3551
+ function Va(e, t) {
3552
+ var n, s, i, r = this._eras || ue("en")._eras;
3553
+ for (n = 0, s = r.length; n < s; ++n) {
3554
+ switch (typeof r[n].since) {
3555
+ case "string":
3556
+ i = g(r[n].since).startOf("day"), r[n].since = i.valueOf();
3557
+ break;
3558
+ }
3559
+ switch (typeof r[n].until) {
3560
+ case "undefined":
3561
+ r[n].until = 1 / 0;
3562
+ break;
3563
+ case "string":
3564
+ i = g(r[n].until).startOf("day").valueOf(), r[n].until = i.valueOf();
3565
+ break;
3566
+ }
3567
+ }
3568
+ return r;
3569
+ }
3570
+ function Wa(e, t, n) {
3571
+ var s, i, r = this.eras(), a, o, u;
3572
+ for (e = e.toUpperCase(), s = 0, i = r.length; s < i; ++s)
3573
+ if (a = r[s].name.toUpperCase(), o = r[s].abbr.toUpperCase(), u = r[s].narrow.toUpperCase(), n)
3574
+ switch (t) {
3575
+ case "N":
3576
+ case "NN":
3577
+ case "NNN":
3578
+ if (o === e)
3579
+ return r[s];
3580
+ break;
3581
+ case "NNNN":
3582
+ if (a === e)
3583
+ return r[s];
3584
+ break;
3585
+ case "NNNNN":
3586
+ if (u === e)
3587
+ return r[s];
3588
+ break;
3589
+ }
3590
+ else if ([a, o, u].indexOf(e) >= 0)
3591
+ return r[s];
3592
+ }
3593
+ function Ga(e, t) {
3594
+ var n = e.since <= e.until ? 1 : -1;
3595
+ return t === void 0 ? g(e.since).year() : g(e.since).year() + (t - e.offset) * n;
3596
+ }
3597
+ function za() {
3598
+ var e, t, n, s = this.localeData().eras();
3599
+ for (e = 0, t = s.length; e < t; ++e)
3600
+ if (n = this.clone().startOf("day").valueOf(), s[e].since <= n && n <= s[e].until || s[e].until <= n && n <= s[e].since)
3601
+ return s[e].name;
3602
+ return "";
3603
+ }
3604
+ function Ka() {
3605
+ var e, t, n, s = this.localeData().eras();
3606
+ for (e = 0, t = s.length; e < t; ++e)
3607
+ if (n = this.clone().startOf("day").valueOf(), s[e].since <= n && n <= s[e].until || s[e].until <= n && n <= s[e].since)
3608
+ return s[e].narrow;
3609
+ return "";
3610
+ }
3611
+ function Ba() {
3612
+ var e, t, n, s = this.localeData().eras();
3613
+ for (e = 0, t = s.length; e < t; ++e)
3614
+ if (n = this.clone().startOf("day").valueOf(), s[e].since <= n && n <= s[e].until || s[e].until <= n && n <= s[e].since)
3615
+ return s[e].abbr;
3616
+ return "";
3617
+ }
3618
+ function qa() {
3619
+ var e, t, n, s, i = this.localeData().eras();
3620
+ for (e = 0, t = i.length; e < t; ++e)
3621
+ if (n = i[e].since <= i[e].until ? 1 : -1, s = this.clone().startOf("day").valueOf(), i[e].since <= s && s <= i[e].until || i[e].until <= s && s <= i[e].since)
3622
+ return (this.year() - g(i[e].since).year()) * n + i[e].offset;
3623
+ return this.year();
3624
+ }
3625
+ function Ja(e) {
3626
+ return S(this, "_erasNameRegex") || ln.call(this), e ? this._erasNameRegex : this._erasRegex;
3627
+ }
3628
+ function Za(e) {
3629
+ return S(this, "_erasAbbrRegex") || ln.call(this), e ? this._erasAbbrRegex : this._erasRegex;
3630
+ }
3631
+ function Qa(e) {
3632
+ return S(this, "_erasNarrowRegex") || ln.call(this), e ? this._erasNarrowRegex : this._erasRegex;
3633
+ }
3634
+ function un(e, t) {
3635
+ return t.erasAbbrRegex(e);
3636
+ }
3637
+ function Xa(e, t) {
3638
+ return t.erasNameRegex(e);
3639
+ }
3640
+ function eo(e, t) {
3641
+ return t.erasNarrowRegex(e);
3642
+ }
3643
+ function to(e, t) {
3644
+ return t._eraYearOrdinalRegex || De;
3645
+ }
3646
+ function ln() {
3647
+ var e = [], t = [], n = [], s = [], i, r, a, o, u, l = this.eras();
3648
+ for (i = 0, r = l.length; i < r; ++i)
3649
+ a = re(l[i].name), o = re(l[i].abbr), u = re(l[i].narrow), t.push(a), e.push(o), n.push(u), s.push(a), s.push(o), s.push(u);
3650
+ this._erasRegex = new RegExp("^(" + s.join("|") + ")", "i"), this._erasNameRegex = new RegExp("^(" + t.join("|") + ")", "i"), this._erasAbbrRegex = new RegExp("^(" + e.join("|") + ")", "i"), this._erasNarrowRegex = new RegExp(
3651
+ "^(" + n.join("|") + ")",
3652
+ "i"
3653
+ );
3654
+ }
3655
+ p(0, ["gg", 2], 0, function() {
3656
+ return this.weekYear() % 100;
3657
+ });
3658
+ p(0, ["GG", 2], 0, function() {
3659
+ return this.isoWeekYear() % 100;
3660
+ });
3661
+ function bt(e, t) {
3662
+ p(0, [e, e.length], 0, t);
3663
+ }
3664
+ bt("gggg", "weekYear");
3665
+ bt("ggggg", "weekYear");
3666
+ bt("GGGG", "isoWeekYear");
3667
+ bt("GGGGG", "isoWeekYear");
3668
+ m("G", yt);
3669
+ m("g", yt);
3670
+ m("GG", M, H);
3671
+ m("gg", M, H);
3672
+ m("GGGG", qt, Bt);
3673
+ m("gggg", qt, Bt);
3674
+ m("GGGGG", pt, gt);
3675
+ m("ggggg", pt, gt);
3676
+ Ke(
3677
+ ["gggg", "ggggg", "GGGG", "GGGGG"],
3678
+ function(e, t, n, s) {
3679
+ t[s.substr(0, 2)] = v(e);
3680
+ }
3681
+ );
3682
+ Ke(["gg", "GG"], function(e, t, n, s) {
3683
+ t[s] = g.parseTwoDigitYear(e);
3684
+ });
3685
+ function no(e) {
3686
+ return ys.call(
3687
+ this,
3688
+ e,
3689
+ this.week(),
3690
+ this.weekday() + this.localeData()._week.dow,
3691
+ this.localeData()._week.dow,
3692
+ this.localeData()._week.doy
3693
+ );
3694
+ }
3695
+ function so(e) {
3696
+ return ys.call(
3697
+ this,
3698
+ e,
3699
+ this.isoWeek(),
3700
+ this.isoWeekday(),
3701
+ 1,
3702
+ 4
3703
+ );
3704
+ }
3705
+ function io() {
3706
+ return ae(this.year(), 1, 4);
3707
+ }
3708
+ function ro() {
3709
+ return ae(this.isoWeekYear(), 1, 4);
3710
+ }
3711
+ function ao() {
3712
+ var e = this.localeData()._week;
3713
+ return ae(this.year(), e.dow, e.doy);
3714
+ }
3715
+ function oo() {
3716
+ var e = this.localeData()._week;
3717
+ return ae(this.weekYear(), e.dow, e.doy);
3718
+ }
3719
+ function ys(e, t, n, s, i) {
3720
+ var r;
3721
+ return e == null ? $e(this, s, i).year : (r = ae(e, s, i), t > r && (t = r), uo.call(this, e, t, n, s, i));
3722
+ }
3723
+ function uo(e, t, n, s, i) {
3724
+ var r = Jn(e, t, n, s, i), a = He(r.year, 0, r.dayOfYear);
3725
+ return this.year(a.getUTCFullYear()), this.month(a.getUTCMonth()), this.date(a.getUTCDate()), this;
3726
+ }
3727
+ p("Q", 0, "Qo", "quarter");
3728
+ m("Q", jn);
3729
+ k("Q", function(e, t) {
3730
+ t[se] = (v(e) - 1) * 3;
3731
+ });
3732
+ function lo(e) {
3733
+ return e == null ? Math.ceil((this.month() + 1) / 3) : this.month((e - 1) * 3 + this.month() % 3);
3734
+ }
3735
+ p("D", ["DD", 2], "Do", "date");
3736
+ m("D", M, Ye);
3737
+ m("DD", M, H);
3738
+ m("Do", function(e, t) {
3739
+ return e ? t._dayOfMonthOrdinalParse || t._ordinalParse : t._dayOfMonthOrdinalParseLenient;
3740
+ });
3741
+ k(["D", "DD"], J);
3742
+ k("Do", function(e, t) {
3743
+ t[J] = v(e.match(M)[0]);
3744
+ });
3745
+ var _s = Ne("Date", !0);
3746
+ p("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
3747
+ m("DDD", mt);
3748
+ m("DDDD", Un);
3749
+ k(["DDD", "DDDD"], function(e, t, n) {
3750
+ n._dayOfYear = v(e);
3751
+ });
3752
+ function ho(e) {
3753
+ var t = Math.round(
3754
+ (this.clone().startOf("day") - this.clone().startOf("year")) / 864e5
3755
+ ) + 1;
3756
+ return e == null ? t : this.add(e - t, "d");
3757
+ }
3758
+ p("m", ["mm", 2], 0, "minute");
3759
+ m("m", M, Jt);
3760
+ m("mm", M, H);
3761
+ k(["m", "mm"], z);
3762
+ var co = Ne("Minutes", !1);
3763
+ p("s", ["ss", 2], 0, "second");
3764
+ m("s", M, Jt);
3765
+ m("ss", M, H);
3766
+ k(["s", "ss"], ie);
3767
+ var fo = Ne("Seconds", !1);
3768
+ p("S", 0, 0, function() {
3769
+ return ~~(this.millisecond() / 100);
3770
+ });
3771
+ p(0, ["SS", 2], 0, function() {
3772
+ return ~~(this.millisecond() / 10);
3773
+ });
3774
+ p(0, ["SSS", 3], 0, "millisecond");
3775
+ p(0, ["SSSS", 4], 0, function() {
3776
+ return this.millisecond() * 10;
3777
+ });
3778
+ p(0, ["SSSSS", 5], 0, function() {
3779
+ return this.millisecond() * 100;
3780
+ });
3781
+ p(0, ["SSSSSS", 6], 0, function() {
3782
+ return this.millisecond() * 1e3;
3783
+ });
3784
+ p(0, ["SSSSSSS", 7], 0, function() {
3785
+ return this.millisecond() * 1e4;
3786
+ });
3787
+ p(0, ["SSSSSSSS", 8], 0, function() {
3788
+ return this.millisecond() * 1e5;
3789
+ });
3790
+ p(0, ["SSSSSSSSS", 9], 0, function() {
3791
+ return this.millisecond() * 1e6;
3792
+ });
3793
+ m("S", mt, jn);
3794
+ m("SS", mt, H);
3795
+ m("SSS", mt, Un);
3796
+ var he, vs;
3797
+ for (he = "SSSS"; he.length <= 9; he += "S")
3798
+ m(he, De);
3799
+ function go(e, t) {
3800
+ t[pe] = v(("0." + e) * 1e3);
3801
+ }
3802
+ for (he = "S"; he.length <= 9; he += "S")
3803
+ k(he, go);
3804
+ vs = Ne("Milliseconds", !1);
3805
+ p("z", 0, 0, "zoneAbbr");
3806
+ p("zz", 0, 0, "zoneName");
3807
+ function mo() {
3808
+ return this._isUTC ? "UTC" : "";
3809
+ }
3810
+ function po() {
3811
+ return this._isUTC ? "Coordinated Universal Time" : "";
3812
+ }
3813
+ var c = Ge.prototype;
3814
+ c.add = oa;
3815
+ c.calendar = ga;
3816
+ c.clone = ma;
3817
+ c.diff = ba;
3818
+ c.endOf = Ra;
3819
+ c.format = Ma;
3820
+ c.from = Da;
3821
+ c.fromNow = Ya;
3822
+ c.to = Na;
3823
+ c.toNow = Ca;
3824
+ c.get = Oi;
3825
+ c.invalidAt = Ha;
3826
+ c.isAfter = pa;
3827
+ c.isBefore = ya;
3828
+ c.isBetween = _a;
3829
+ c.isSame = va;
3830
+ c.isSameOrAfter = wa;
3831
+ c.isSameOrBefore = Sa;
3832
+ c.isValid = ja;
3833
+ c.lang = cs;
3834
+ c.locale = hs;
3835
+ c.localeData = fs;
3836
+ c.max = jr;
3837
+ c.min = Ir;
3838
+ c.parsingFlags = Ua;
3839
+ c.set = Mi;
3840
+ c.startOf = La;
3841
+ c.subtract = ua;
3842
+ c.toArray = Fa;
3843
+ c.toObject = Aa;
3844
+ c.toDate = Ea;
3845
+ c.toISOString = ka;
3846
+ c.inspect = Oa;
3847
+ typeof Symbol < "u" && Symbol.for != null && (c[Symbol.for("nodejs.util.inspect.custom")] = function() {
3848
+ return "Moment<" + this.format() + ">";
3849
+ });
3850
+ c.toJSON = Ia;
3851
+ c.toString = xa;
3852
+ c.unix = Ta;
3853
+ c.valueOf = Pa;
3854
+ c.creationData = $a;
3855
+ c.eraName = za;
3856
+ c.eraNarrow = Ka;
3857
+ c.eraAbbr = Ba;
3858
+ c.eraYear = qa;
3859
+ c.year = Vn;
3860
+ c.isLeapYear = ki;
3861
+ c.weekYear = no;
3862
+ c.isoWeekYear = so;
3863
+ c.quarter = c.quarters = lo;
3864
+ c.month = Bn;
3865
+ c.daysInMonth = Ei;
3866
+ c.week = c.weeks = Vi;
3867
+ c.isoWeek = c.isoWeeks = Wi;
3868
+ c.weeksInYear = ao;
3869
+ c.weeksInWeekYear = oo;
3870
+ c.isoWeeksInYear = io;
3871
+ c.isoWeeksInISOWeekYear = ro;
3872
+ c.date = _s;
3873
+ c.day = c.days = sr;
3874
+ c.weekday = ir;
3875
+ c.isoWeekday = rr;
3876
+ c.dayOfYear = ho;
3877
+ c.hour = c.hours = cr;
3878
+ c.minute = c.minutes = co;
3879
+ c.second = c.seconds = fo;
3880
+ c.millisecond = c.milliseconds = vs;
3881
+ c.utcOffset = Br;
3882
+ c.utc = Jr;
3883
+ c.local = Zr;
3884
+ c.parseZone = Qr;
3885
+ c.hasAlignedHourOffset = Xr;
3886
+ c.isDST = ea;
3887
+ c.isLocal = na;
3888
+ c.isUtcOffset = sa;
3889
+ c.isUtc = os;
3890
+ c.isUTC = os;
3891
+ c.zoneAbbr = mo;
3892
+ c.zoneName = po;
3893
+ c.dates = V(
3894
+ "dates accessor is deprecated. Use date instead.",
3895
+ _s
3896
+ );
3897
+ c.months = V(
3898
+ "months accessor is deprecated. Use month instead",
3899
+ Bn
3900
+ );
3901
+ c.years = V(
3902
+ "years accessor is deprecated. Use year instead",
3903
+ Vn
3904
+ );
3905
+ c.zone = V(
3906
+ "moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",
3907
+ qr
3908
+ );
3909
+ c.isDSTShifted = V(
3910
+ "isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",
3911
+ ta
3912
+ );
3913
+ function yo(e) {
3914
+ return O(e * 1e3);
3915
+ }
3916
+ function _o() {
3917
+ return O.apply(null, arguments).parseZone();
3918
+ }
3919
+ function ws(e) {
3920
+ return e;
3921
+ }
3922
+ var b = Gt.prototype;
3923
+ b.calendar = ni;
3924
+ b.longDateFormat = ai;
3925
+ b.invalidDate = ui;
3926
+ b.ordinal = hi;
3927
+ b.preparse = ws;
3928
+ b.postformat = ws;
3929
+ b.relativeTime = fi;
3930
+ b.pastFuture = gi;
3931
+ b.set = ei;
3932
+ b.eras = Va;
3933
+ b.erasParse = Wa;
3934
+ b.erasConvertYear = Ga;
3935
+ b.erasAbbrRegex = Za;
3936
+ b.erasNameRegex = Ja;
3937
+ b.erasNarrowRegex = Qa;
3938
+ b.months = Li;
3939
+ b.monthsShort = Ri;
3940
+ b.monthsParse = Ti;
3941
+ b.monthsRegex = Ai;
3942
+ b.monthsShortRegex = Fi;
3943
+ b.week = ji;
3944
+ b.firstDayOfYear = $i;
3945
+ b.firstDayOfWeek = Hi;
3946
+ b.weekdays = Qi;
3947
+ b.weekdaysMin = er;
3948
+ b.weekdaysShort = Xi;
3949
+ b.weekdaysParse = nr;
3950
+ b.weekdaysRegex = ar;
3951
+ b.weekdaysShortRegex = or;
3952
+ b.weekdaysMinRegex = ur;
3953
+ b.isPM = dr;
3954
+ b.meridiem = fr;
3955
+ function ht(e, t, n, s) {
3956
+ var i = ue(), r = X().set(s, t);
3957
+ return i[n](r, e);
3958
+ }
3959
+ function Ss(e, t, n) {
3960
+ if (oe(e) && (t = e, e = void 0), e = e || "", t != null)
3961
+ return ht(e, t, n, "month");
3962
+ var s, i = [];
3963
+ for (s = 0; s < 12; s++)
3964
+ i[s] = ht(e, s, n, "month");
3965
+ return i;
3966
+ }
3967
+ function dn(e, t, n, s) {
3968
+ typeof e == "boolean" ? (oe(t) && (n = t, t = void 0), t = t || "") : (t = e, n = t, e = !1, oe(t) && (n = t, t = void 0), t = t || "");
3969
+ var i = ue(), r = e ? i._week.dow : 0, a, o = [];
3970
+ if (n != null)
3971
+ return ht(t, (n + r) % 7, s, "day");
3972
+ for (a = 0; a < 7; a++)
3973
+ o[a] = ht(t, (a + r) % 7, s, "day");
3974
+ return o;
3975
+ }
3976
+ function vo(e, t) {
3977
+ return Ss(e, t, "months");
3978
+ }
3979
+ function wo(e, t) {
3980
+ return Ss(e, t, "monthsShort");
3981
+ }
3982
+ function So(e, t, n) {
3983
+ return dn(e, t, n, "weekdays");
3984
+ }
3985
+ function bo(e, t, n) {
3986
+ return dn(e, t, n, "weekdaysShort");
3987
+ }
3988
+ function xo(e, t, n) {
3989
+ return dn(e, t, n, "weekdaysMin");
3990
+ }
3991
+ ce("en", {
3992
+ eras: [
3993
+ {
3994
+ since: "0001-01-01",
3995
+ until: 1 / 0,
3996
+ offset: 1,
3997
+ name: "Anno Domini",
3998
+ narrow: "AD",
3999
+ abbr: "AD"
4000
+ },
4001
+ {
4002
+ since: "0000-12-31",
4003
+ until: -1 / 0,
4004
+ offset: 1,
4005
+ name: "Before Christ",
4006
+ narrow: "BC",
4007
+ abbr: "BC"
4008
+ }
4009
+ ],
4010
+ dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
4011
+ ordinal: function(e) {
4012
+ var t = e % 10, n = v(e % 100 / 10) === 1 ? "th" : t === 1 ? "st" : t === 2 ? "nd" : t === 3 ? "rd" : "th";
4013
+ return e + n;
4014
+ }
4015
+ });
4016
+ g.lang = V(
4017
+ "moment.lang is deprecated. Use moment.locale instead.",
4018
+ ce
4019
+ );
4020
+ g.langData = V(
4021
+ "moment.langData is deprecated. Use moment.localeData instead.",
4022
+ ue
4023
+ );
4024
+ var te = Math.abs;
4025
+ function ko() {
4026
+ var e = this._data;
4027
+ return this._milliseconds = te(this._milliseconds), this._days = te(this._days), this._months = te(this._months), e.milliseconds = te(e.milliseconds), e.seconds = te(e.seconds), e.minutes = te(e.minutes), e.hours = te(e.hours), e.months = te(e.months), e.years = te(e.years), this;
4028
+ }
4029
+ function bs(e, t, n, s) {
4030
+ var i = q(t, n);
4031
+ return e._milliseconds += s * i._milliseconds, e._days += s * i._days, e._months += s * i._months, e._bubble();
4032
+ }
4033
+ function Oo(e, t) {
4034
+ return bs(this, e, t, 1);
4035
+ }
4036
+ function Mo(e, t) {
4037
+ return bs(this, e, t, -1);
4038
+ }
4039
+ function Cn(e) {
4040
+ return e < 0 ? Math.floor(e) : Math.ceil(e);
4041
+ }
4042
+ function Do() {
4043
+ var e = this._milliseconds, t = this._days, n = this._months, s = this._data, i, r, a, o, u;
4044
+ return e >= 0 && t >= 0 && n >= 0 || e <= 0 && t <= 0 && n <= 0 || (e += Cn(Ht(n) + t) * 864e5, t = 0, n = 0), s.milliseconds = e % 1e3, i = $(e / 1e3), s.seconds = i % 60, r = $(i / 60), s.minutes = r % 60, a = $(r / 60), s.hours = a % 24, t += $(a / 24), u = $(xs(t)), n += u, t -= Cn(Ht(u)), o = $(n / 12), n %= 12, s.days = t, s.months = n, s.years = o, this;
4045
+ }
4046
+ function xs(e) {
4047
+ return e * 4800 / 146097;
4048
+ }
4049
+ function Ht(e) {
4050
+ return e * 146097 / 4800;
4051
+ }
4052
+ function Yo(e) {
4053
+ if (!this.isValid())
4054
+ return NaN;
4055
+ var t, n, s = this._milliseconds;
4056
+ if (e = W(e), e === "month" || e === "quarter" || e === "year")
4057
+ switch (t = this._days + s / 864e5, n = this._months + xs(t), e) {
4058
+ case "month":
4059
+ return n;
4060
+ case "quarter":
4061
+ return n / 3;
4062
+ case "year":
4063
+ return n / 12;
4064
+ }
4065
+ else
4066
+ switch (t = this._days + Math.round(Ht(this._months)), e) {
4067
+ case "week":
4068
+ return t / 7 + s / 6048e5;
4069
+ case "day":
4070
+ return t + s / 864e5;
4071
+ case "hour":
4072
+ return t * 24 + s / 36e5;
4073
+ case "minute":
4074
+ return t * 1440 + s / 6e4;
4075
+ case "second":
4076
+ return t * 86400 + s / 1e3;
4077
+ case "millisecond":
4078
+ return Math.floor(t * 864e5) + s;
4079
+ default:
4080
+ throw new Error("Unknown unit " + e);
4081
+ }
4082
+ }
4083
+ function le(e) {
4084
+ return function() {
4085
+ return this.as(e);
4086
+ };
4087
+ }
4088
+ var ks = le("ms"), No = le("s"), Co = le("m"), Lo = le("h"), Ro = le("d"), Po = le("w"), To = le("M"), Eo = le("Q"), Fo = le("y"), Ao = ks;
4089
+ function Io() {
4090
+ return q(this);
4091
+ }
4092
+ function jo(e) {
4093
+ return e = W(e), this.isValid() ? this[e + "s"]() : NaN;
4094
+ }
4095
+ function _e(e) {
4096
+ return function() {
4097
+ return this.isValid() ? this._data[e] : NaN;
4098
+ };
4099
+ }
4100
+ var Uo = _e("milliseconds"), Ho = _e("seconds"), $o = _e("minutes"), Vo = _e("hours"), Wo = _e("days"), Go = _e("months"), zo = _e("years");
4101
+ function Ko() {
4102
+ return $(this.days() / 7);
4103
+ }
4104
+ var ne = Math.round, xe = {
4105
+ ss: 44,
4106
+ // a few seconds to seconds
4107
+ s: 45,
4108
+ // seconds to minute
4109
+ m: 45,
4110
+ // minutes to hour
4111
+ h: 22,
4112
+ // hours to day
4113
+ d: 26,
4114
+ // days to month/week
4115
+ w: null,
4116
+ // weeks to month
4117
+ M: 11
4118
+ // months to year
4119
+ };
4120
+ function Bo(e, t, n, s, i) {
4121
+ return i.relativeTime(t || 1, !!n, e, s);
4122
+ }
4123
+ function qo(e, t, n, s) {
4124
+ var i = q(e).abs(), r = ne(i.as("s")), a = ne(i.as("m")), o = ne(i.as("h")), u = ne(i.as("d")), l = ne(i.as("M")), h = ne(i.as("w")), f = ne(i.as("y")), d = r <= n.ss && ["s", r] || r < n.s && ["ss", r] || a <= 1 && ["m"] || a < n.m && ["mm", a] || o <= 1 && ["h"] || o < n.h && ["hh", o] || u <= 1 && ["d"] || u < n.d && ["dd", u];
4125
+ return n.w != null && (d = d || h <= 1 && ["w"] || h < n.w && ["ww", h]), d = d || l <= 1 && ["M"] || l < n.M && ["MM", l] || f <= 1 && ["y"] || ["yy", f], d[2] = t, d[3] = +e > 0, d[4] = s, Bo.apply(null, d);
4126
+ }
4127
+ function Jo(e) {
4128
+ return e === void 0 ? ne : typeof e == "function" ? (ne = e, !0) : !1;
4129
+ }
4130
+ function Zo(e, t) {
4131
+ return xe[e] === void 0 ? !1 : t === void 0 ? xe[e] : (xe[e] = t, e === "s" && (xe.ss = t - 1), !0);
4132
+ }
4133
+ function Qo(e, t) {
4134
+ if (!this.isValid())
4135
+ return this.localeData().invalidDate();
4136
+ var n = !1, s = xe, i, r;
4137
+ return typeof e == "object" && (t = e, e = !1), typeof e == "boolean" && (n = e), typeof t == "object" && (s = Object.assign({}, xe, t), t.s != null && t.ss == null && (s.ss = t.s - 1)), i = this.localeData(), r = qo(this, !n, s, i), n && (r = i.pastFuture(+this, r)), i.postformat(r);
4138
+ }
4139
+ var Rt = Math.abs;
4140
+ function Se(e) {
4141
+ return (e > 0) - (e < 0) || +e;
4142
+ }
4143
+ function xt() {
4144
+ if (!this.isValid())
4145
+ return this.localeData().invalidDate();
4146
+ var e = Rt(this._milliseconds) / 1e3, t = Rt(this._days), n = Rt(this._months), s, i, r, a, o = this.asSeconds(), u, l, h, f;
4147
+ return o ? (s = $(e / 60), i = $(s / 60), e %= 60, s %= 60, r = $(n / 12), n %= 12, a = e ? e.toFixed(3).replace(/\.?0+$/, "") : "", u = o < 0 ? "-" : "", l = Se(this._months) !== Se(o) ? "-" : "", h = Se(this._days) !== Se(o) ? "-" : "", f = Se(this._milliseconds) !== Se(o) ? "-" : "", u + "P" + (r ? l + r + "Y" : "") + (n ? l + n + "M" : "") + (t ? h + t + "D" : "") + (i || s || e ? "T" : "") + (i ? f + i + "H" : "") + (s ? f + s + "M" : "") + (e ? f + a + "S" : "")) : "P0D";
4148
+ }
4149
+ var w = St.prototype;
4150
+ w.isValid = Wr;
4151
+ w.abs = ko;
4152
+ w.add = Oo;
4153
+ w.subtract = Mo;
4154
+ w.as = Yo;
4155
+ w.asMilliseconds = ks;
4156
+ w.asSeconds = No;
4157
+ w.asMinutes = Co;
4158
+ w.asHours = Lo;
4159
+ w.asDays = Ro;
4160
+ w.asWeeks = Po;
4161
+ w.asMonths = To;
4162
+ w.asQuarters = Eo;
4163
+ w.asYears = Fo;
4164
+ w.valueOf = Ao;
4165
+ w._bubble = Do;
4166
+ w.clone = Io;
4167
+ w.get = jo;
4168
+ w.milliseconds = Uo;
4169
+ w.seconds = Ho;
4170
+ w.minutes = $o;
4171
+ w.hours = Vo;
4172
+ w.days = Wo;
4173
+ w.weeks = Ko;
4174
+ w.months = Go;
4175
+ w.years = zo;
4176
+ w.humanize = Qo;
4177
+ w.toISOString = xt;
4178
+ w.toString = xt;
4179
+ w.toJSON = xt;
4180
+ w.locale = hs;
4181
+ w.localeData = fs;
4182
+ w.toIsoString = V(
4183
+ "toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",
4184
+ xt
4185
+ );
4186
+ w.lang = cs;
4187
+ p("X", 0, 0, "unix");
4188
+ p("x", 0, 0, "valueOf");
4189
+ m("x", yt);
4190
+ m("X", _i);
4191
+ k("X", function(e, t, n) {
4192
+ n._d = new Date(parseFloat(e) * 1e3);
4193
+ });
4194
+ k("x", function(e, t, n) {
4195
+ n._d = new Date(v(e));
4196
+ });
4197
+ //! moment.js
4198
+ g.version = "2.30.1";
4199
+ Qs(O);
4200
+ g.fn = c;
4201
+ g.min = Ur;
4202
+ g.max = Hr;
4203
+ g.now = $r;
4204
+ g.utc = X;
4205
+ g.unix = yo;
4206
+ g.months = vo;
4207
+ g.isDate = We;
4208
+ g.locale = ce;
4209
+ g.invalid = ft;
4210
+ g.duration = q;
4211
+ g.isMoment = B;
4212
+ g.weekdays = So;
4213
+ g.parseZone = _o;
4214
+ g.localeData = ue;
4215
+ g.isDuration = tt;
4216
+ g.monthsShort = wo;
4217
+ g.weekdaysMin = xo;
4218
+ g.defineLocale = tn;
4219
+ g.updateLocale = yr;
4220
+ g.locales = _r;
4221
+ g.weekdaysShort = bo;
4222
+ g.normalizeUnits = W;
4223
+ g.relativeTimeRounding = Jo;
4224
+ g.relativeTimeThreshold = Zo;
4225
+ g.calendarFormat = fa;
4226
+ g.prototype = c;
4227
+ g.HTML5_FMT = {
4228
+ DATETIME_LOCAL: "YYYY-MM-DDTHH:mm",
4229
+ // <input type="datetime-local" />
4230
+ DATETIME_LOCAL_SECONDS: "YYYY-MM-DDTHH:mm:ss",
4231
+ // <input type="datetime-local" step="1" />
4232
+ DATETIME_LOCAL_MS: "YYYY-MM-DDTHH:mm:ss.SSS",
4233
+ // <input type="datetime-local" step="0.001" />
4234
+ DATE: "YYYY-MM-DD",
4235
+ // <input type="date" />
4236
+ TIME: "HH:mm",
4237
+ // <input type="time" />
4238
+ TIME_SECONDS: "HH:mm:ss",
4239
+ // <input type="time" step="1" />
4240
+ TIME_MS: "HH:mm:ss.SSS",
4241
+ // <input type="time" step="0.001" />
4242
+ WEEK: "GGGG-[W]WW",
4243
+ // <input type="week" />
4244
+ MONTH: "YYYY-MM"
4245
+ // <input type="month" />
4246
+ };
4247
+ const Xo = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i, eu = /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i, Ln = /(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, Pt = [
4248
+ /^janv/i,
4249
+ /^févr/i,
4250
+ /^mars/i,
4251
+ /^avr/i,
4252
+ /^mai/i,
4253
+ /^juin/i,
4254
+ /^juil/i,
4255
+ /^août/i,
4256
+ /^sept/i,
4257
+ /^oct/i,
4258
+ /^nov/i,
4259
+ /^déc/i
4260
+ ], tu = {
4261
+ months: "janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split(
4262
+ "_"
4263
+ ),
4264
+ monthsShort: "janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),
4265
+ monthsRegex: Ln,
4266
+ monthsShortRegex: Ln,
4267
+ monthsStrictRegex: Xo,
4268
+ monthsShortStrictRegex: eu,
4269
+ monthsParse: Pt,
4270
+ longMonthsParse: Pt,
4271
+ shortMonthsParse: Pt,
4272
+ weekdays: "dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),
4273
+ weekdaysShort: "dim._lun._mar._mer._jeu._ven._sam.".split("_"),
4274
+ weekdaysMin: "di_lu_ma_me_je_ve_sa".split("_"),
4275
+ weekdaysParseExact: !0,
4276
+ longDateFormat: {
4277
+ LT: "HH:mm",
4278
+ LTS: "HH:mm:ss",
4279
+ L: "DD/MM/YYYY",
4280
+ LL: "D MMMM YYYY",
4281
+ LLL: "D MMMM YYYY HH:mm",
4282
+ LLLL: "dddd D MMMM YYYY HH:mm"
4283
+ },
4284
+ calendar: {
4285
+ sameDay: "[Aujourd’hui à] LT",
4286
+ nextDay: "[Demain à] LT",
4287
+ nextWeek: "dddd [à] LT",
4288
+ lastDay: "[Hier à] LT",
4289
+ lastWeek: "dddd [dernier à] LT",
4290
+ sameElse: "L"
4291
+ },
4292
+ relativeTime: {
4293
+ future: "dans %s",
4294
+ past: "il y a %s",
4295
+ s: "quelques secondes",
4296
+ ss: "%d secondes",
4297
+ m: "une minute",
4298
+ mm: "%d minutes",
4299
+ h: "une heure",
4300
+ hh: "%d heures",
4301
+ d: "un jour",
4302
+ dd: "%d jours",
4303
+ w: "une semaine",
4304
+ ww: "%d semaines",
4305
+ M: "un mois",
4306
+ MM: "%d mois",
4307
+ y: "un an",
4308
+ yy: "%d ans"
4309
+ },
4310
+ dayOfMonthOrdinalParse: /\d{1,2}(er|)/,
4311
+ ordinal: (e, t) => {
4312
+ switch (t) {
4313
+ case "D":
4314
+ return e + (e === 1 ? "er" : "");
4315
+ default:
4316
+ case "M":
4317
+ case "Q":
4318
+ case "DDD":
4319
+ case "d":
4320
+ return e + (e === 1 ? "er" : "e");
4321
+ case "w":
4322
+ case "W":
4323
+ return e + (e === 1 ? "re" : "e");
4324
+ }
4325
+ },
4326
+ week: {
4327
+ dow: 1,
4328
+ doy: 4
4329
+ }
4330
+ };
4331
+ g.locale("fr", tu);
4332
+ const nu = (e) => Math.round(5e3 * Math.pow(200, 0.01 * e) / 10) * 10, Os = (e) => e >= 1 ? Os(e - 1) + nu(e) : 0, su = (e, t = 0) => e < Os(t + 1) ? t : su(e, t + 1), gu = ([e, t]) => t ? `${Mt("xp.user", { amount: Yt(e), emoji: Dt.xp })} ${Mt("xp.crew", { amount: Yt(t), emoji: Dt.xp })}` : Mt("xp.user", { amount: Yt(e), emoji: Dt.xp });
4333
+ export {
4334
+ au as CHARACTERISTICS,
4335
+ Ys as CHARACTERISTIC_DEFAULT_POINT_COST,
4336
+ uu as CHARACTERISTIC_POINT_COSTS,
4337
+ ou as CHARACTERISTIC_POINT_PER_LEVEL,
4338
+ cu as DEFAULT_FACTION,
4339
+ lu as DEFAULT_MAX_HP,
4340
+ hu as FACTIONS,
4341
+ du as HP_PER_VITALITY,
4342
+ ru as RANKS,
4343
+ me as RankId,
4344
+ fu as SORT_VALUES,
4345
+ gu as displayXp,
4346
+ su as getCurrentLevel,
4347
+ Os as totalXpToLevel,
4348
+ nu as xpToLevel
4349
+ };