@opfr/utils-type 0.9.0 → 0.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,24 +1,24 @@
1
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 = {
2
+ const nu = {
3
3
  BASIC: { color: "#fff", strength: 0, id: me.BASIC },
4
4
  COMMON: { color: "#813D31", strength: 1, id: me.COMMON },
5
5
  RARE: { color: "#5B6870", strength: 2, id: me.RARE },
6
6
  EPIC: { color: "#C46619", strength: 3, id: me.EPIC },
7
7
  LEGENDARY: { color: "#88A3CB", strength: 4, id: me.LEGENDARY },
8
8
  MYTHIC: { color: "#F6bF62", strength: 5, id: me.MYTHIC }
9
- }, au = [
9
+ }, su = [
10
10
  "vitality",
11
11
  "strength",
12
12
  "agility",
13
13
  "intelligence",
14
14
  "chance",
15
15
  "wisdom"
16
- ], ou = 10, Ys = 1, uu = [
16
+ ], iu = 10, Os = 1, ru = [
17
17
  [200, 4],
18
18
  [100, 3],
19
19
  [50, 2],
20
- [0, Ys]
21
- ], lu = 100, du = 10, hu = {
20
+ [0, Os]
21
+ ], au = 100, ou = 10, uu = {
22
22
  pirate: {
23
23
  name: "pirate",
24
24
  color: "#8A1623",
@@ -39,7 +39,7 @@ const ru = {
39
39
  color: "#fff",
40
40
  role: "1147953458507423874"
41
41
  }
42
- }, cu = "citizen", fu = ["category", "alpha", "quantity"], Ns = {
42
+ }, lu = "citizen", du = ["category", "alpha", "quantity"], hu = (e, t) => t === null ? null : e === t ? `-${e}` : t, Ms = {
43
43
  type: "logger",
44
44
  log(e) {
45
45
  this.output("log", e);
@@ -61,7 +61,7 @@ class st {
61
61
  }
62
62
  init(t) {
63
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;
64
+ this.prefix = n.prefix || "i18next:", this.logger = t || Ms, this.options = n, this.debug = n.debug;
65
65
  }
66
66
  log() {
67
67
  for (var t = arguments.length, n = new Array(t), s = 0; s < t; s++)
@@ -131,30 +131,43 @@ class ct {
131
131
  });
132
132
  }
133
133
  }
134
- const Te = () => {
134
+ function Te() {
135
135
  let e, t;
136
136
  const n = new Promise((s, i) => {
137
137
  e = s, t = i;
138
138
  });
139
139
  return n.resolve = e, n.reject = t, n;
140
- }, gn = (e) => e == null ? "" : "" + e, Cs = (e, t, n) => {
140
+ }
141
+ function fn(e) {
142
+ return e == null ? "" : "" + e;
143
+ }
144
+ function Ds(e, t, n) {
141
145
  e.forEach((s) => {
142
146
  t[s] && (n[s] = t[s]);
143
147
  });
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))
148
+ }
149
+ const Ys = /###/g;
150
+ function Ae(e, t, n) {
151
+ function s(o) {
152
+ return o && o.indexOf("###") > -1 ? o.replace(Ys, ".") : o;
153
+ }
154
+ function i() {
155
+ return !e || typeof e == "string";
156
+ }
157
+ const r = typeof t != "string" ? t : t.split(".");
158
+ let a = 0;
159
+ for (; a < r.length - 1; ) {
160
+ if (i())
149
161
  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;
162
+ const o = s(r[a]);
163
+ !e[o] && n && (e[o] = new n()), Object.prototype.hasOwnProperty.call(e, o) ? e = e[o] : e = {}, ++a;
152
164
  }
153
- return pn(e) ? {} : {
165
+ return i() ? {} : {
154
166
  obj: e,
155
- k: mn(s[i])
167
+ k: s(r[a])
156
168
  };
157
- }, yn = (e, t, n) => {
169
+ }
170
+ function gn(e, t, n) {
158
171
  const {
159
172
  obj: s,
160
173
  k: i
@@ -167,28 +180,35 @@ const Te = () => {
167
180
  for (; o.obj === void 0 && a.length; )
168
181
  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
182
  o.obj[`${o.k}.${r}`] = n;
170
- }, Rs = (e, t, n, s) => {
183
+ }
184
+ function Ns(e, t, n, s) {
171
185
  const {
172
186
  obj: i,
173
187
  k: r
174
188
  } = Ae(e, t, Object);
175
189
  i[r] = i[r] || [], i[r].push(n);
176
- }, it = (e, t) => {
190
+ }
191
+ function it(e, t) {
177
192
  const {
178
193
  obj: n,
179
194
  k: s
180
195
  } = Ae(e, t);
181
196
  if (n)
182
197
  return n[s];
183
- }, Ps = (e, t, n) => {
198
+ }
199
+ function Cs(e, t, n) {
184
200
  const s = it(e, n);
185
201
  return s !== void 0 ? s : it(t, n);
186
- }, Rn = (e, t, n) => {
202
+ }
203
+ function Nn(e, t, n) {
187
204
  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]);
205
+ 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]) : Nn(e[s], t[s], n) : e[s] = t[s]);
189
206
  return e;
190
- }, ve = (e) => e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
191
- var Ts = {
207
+ }
208
+ function ve(e) {
209
+ return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
210
+ }
211
+ var Ls = {
192
212
  "&": "&amp;",
193
213
  "<": "&lt;",
194
214
  ">": "&gt;",
@@ -196,8 +216,10 @@ var Ts = {
196
216
  "'": "&#39;",
197
217
  "/": "&#x2F;"
198
218
  };
199
- const Es = (e) => typeof e == "string" ? e.replace(/[&<>"'\/]/g, (t) => Ts[t]) : e;
200
- class Fs {
219
+ function Rs(e) {
220
+ return typeof e == "string" ? e.replace(/[&<>"'\/]/g, (t) => Ls[t]) : e;
221
+ }
222
+ class Ps {
201
223
  constructor(t) {
202
224
  this.capacity = t, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
203
225
  }
@@ -209,19 +231,21 @@ class Fs {
209
231
  return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(t, s), this.regExpQueue.push(t), s;
210
232
  }
211
233
  }
212
- const As = [" ", ",", "?", "!", ";"], Is = new Fs(20), js = (e, t, n) => {
234
+ const Ts = [" ", ",", "?", "!", ";"], Es = new Ps(20);
235
+ function Fs(e, t, n) {
213
236
  t = t || "", n = n || "";
214
- const s = As.filter((a) => t.indexOf(a) < 0 && n.indexOf(a) < 0);
237
+ const s = Ts.filter((a) => t.indexOf(a) < 0 && n.indexOf(a) < 0);
215
238
  if (s.length === 0)
216
239
  return !0;
217
- const i = Is.getRegExp(`(${s.map((a) => a === "?" ? "\\?" : a).join("|")})`);
240
+ const i = Es.getRegExp(`(${s.map((a) => a === "?" ? "\\?" : a).join("|")})`);
218
241
  let r = !i.test(e);
219
242
  if (!r) {
220
243
  const a = e.indexOf(n);
221
244
  a > 0 && !i.test(e.substring(0, a)) && (r = !0);
222
245
  }
223
246
  return r;
224
- }, Tt = function(e, t) {
247
+ }
248
+ function Pt(e, t) {
225
249
  let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
226
250
  if (!e)
227
251
  return;
@@ -243,8 +267,11 @@ const As = [" ", ",", "?", "!", ";"], Is = new Fs(20), js = (e, t, n) => {
243
267
  i = a;
244
268
  }
245
269
  return i;
246
- }, rt = (e) => e && e.replace("_", "-");
247
- class _n extends ct {
270
+ }
271
+ function rt(e) {
272
+ return e && e.indexOf("_") > 0 ? e.replace("_", "-") : e;
273
+ }
274
+ class mn extends ct {
248
275
  constructor(t) {
249
276
  let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
250
277
  ns: ["translation"],
@@ -265,7 +292,7 @@ class _n extends ct {
265
292
  let o;
266
293
  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
294
  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);
295
+ return !u && !n && !s && t.indexOf(".") > -1 && (t = o[0], n = o[1], s = o.slice(2).join(".")), u || !a || typeof s != "string" ? u : Pt(this.data && this.data[t] && this.data[t][n], s, r);
269
296
  }
270
297
  addResource(t, n, s, i) {
271
298
  let r = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
@@ -273,7 +300,7 @@ class _n extends ct {
273
300
  };
274
301
  const a = r.keySeparator !== void 0 ? r.keySeparator : this.options.keySeparator;
275
302
  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);
303
+ s && (o = o.concat(a ? s.split(a) : s)), t.indexOf(".") > -1 && (o = t.split("."), i = n, n = o[1]), this.addNamespaces(n), gn(this.data, o, i), r.silent || this.emit("added", t, n, s, i);
277
304
  }
278
305
  addResources(t, n, s) {
279
306
  let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
@@ -292,10 +319,10 @@ class _n extends ct {
292
319
  }, o = [t, n];
293
320
  t.indexOf(".") > -1 && (o = t.split("."), i = s, s = n, n = o[1]), this.addNamespaces(n);
294
321
  let u = it(this.data, o) || {};
295
- a.skipCopy || (s = JSON.parse(JSON.stringify(s))), i ? Rn(u, s, r) : u = {
322
+ a.skipCopy || (s = JSON.parse(JSON.stringify(s))), i ? Nn(u, s, r) : u = {
296
323
  ...u,
297
324
  ...s
298
- }, yn(this.data, o, u), a.silent || this.emit("added", t, n, s);
325
+ }, gn(this.data, o, u), a.silent || this.emit("added", t, n, s);
299
326
  }
300
327
  removeResourceBundle(t, n) {
301
328
  this.hasResourceBundle(t, n) && delete this.data[t][n], this.removeNamespaces(n), this.emit("removed", t, n);
@@ -319,7 +346,7 @@ class _n extends ct {
319
346
  return this.data;
320
347
  }
321
348
  }
322
- var Pn = {
349
+ var Cn = {
323
350
  processors: {},
324
351
  addPostProcessor(e) {
325
352
  this.processors[e.name] = e;
@@ -330,11 +357,11 @@ var Pn = {
330
357
  }), t;
331
358
  }
332
359
  };
333
- const vn = {};
360
+ const pn = {};
334
361
  class at extends ct {
335
362
  constructor(t) {
336
363
  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");
364
+ super(), Ds(["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
365
  }
339
366
  changeLanguage(t) {
340
367
  t && (this.language = t);
@@ -353,7 +380,7 @@ class at extends ct {
353
380
  s === void 0 && (s = ":");
354
381
  const i = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator;
355
382
  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);
383
+ const a = s && t.indexOf(s) > -1, o = !this.options.userDefinedKeySeparator && !n.keySeparator && !this.options.userDefinedNsSeparator && !n.nsSeparator && !Fs(t, s, i);
357
384
  if (a && !o) {
358
385
  const u = t.match(this.interpolator.nestingRegexp);
359
386
  if (u && u.length > 0)
@@ -402,39 +429,39 @@ class at extends ct {
402
429
  }
403
430
  const f = this.resolve(t, n);
404
431
  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))) {
432
+ const x = f && f.usedKey || a, y = f && f.exactUsedKey || a, N = Object.prototype.toString.apply(d), D = ["[object Number]", "[object Function]", "[object RegExp]"], E = n.joinArrays !== void 0 ? n.joinArrays : this.options.joinArrays, P = !this.i18nFormat || this.i18nFormat.handleAsObject;
433
+ if (P && d && (typeof d != "string" && typeof d != "boolean" && typeof d != "number") && D.indexOf(N) < 0 && !(typeof E == "string" && Array.isArray(d))) {
407
434
  if (!n.returnObjects && !this.options.returnObjects) {
408
435
  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, {
436
+ const C = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(x, d, {
410
437
  ...n,
411
438
  ns: o
412
439
  }) : `key '${a} (${this.language})' returned an object instead of string.`;
413
440
  return i ? (f.res = C, f.usedParams = this.getUsedParamsDetails(n), f) : C;
414
441
  }
415
442
  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, {
443
+ const C = Array.isArray(d), I = C ? [] : {}, G = C ? y : x;
444
+ for (const F in d)
445
+ if (Object.prototype.hasOwnProperty.call(d, F)) {
446
+ const qe = `${G}${r}${F}`;
447
+ I[F] = this.translate(qe, {
421
448
  ...n,
422
449
  joinArrays: !1,
423
450
  ns: o
424
- }), j[E] === qe && (j[E] = d[E]);
451
+ }), I[F] === qe && (I[F] = d[F]);
425
452
  }
426
- d = j;
453
+ d = I;
427
454
  }
428
- } else if (T && typeof I == "string" && Array.isArray(d))
429
- d = d.join(I), d && (d = this.extendTranslation(d, t, n, s));
455
+ } else if (P && typeof E == "string" && Array.isArray(d))
456
+ d = d.join(E), d && (d = this.extendTranslation(d, t, n, s));
430
457
  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, {
458
+ let C = !1, I = !1;
459
+ const G = n.count !== void 0 && typeof n.count != "string", F = at.hasDefaultValue(n), qe = G ? this.pluralResolver.getSuffix(l, n.count, n) : "", xs = n.ordinal && G ? this.pluralResolver.getSuffix(l, n.count, {
433
460
  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) {
461
+ }) : "", dn = G && !n.ordinal && n.count === 0 && this.pluralResolver.shouldUseIntlApi(), Ce = dn && n[`defaultValue${this.options.pluralSeparator}zero`] || n[`defaultValue${qe}`] || n[`defaultValue${xs}`] || n.defaultValue;
462
+ !this.isValidLookup(d) && F && (C = !0, d = Ce), this.isValidLookup(d) || (I = !0, d = a);
463
+ const ks = (n.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && I ? void 0 : d, Le = F && Ce !== d && this.options.updateMissing;
464
+ if (I || C || Le) {
438
465
  if (this.logger.log(Le ? "updateKey" : "missingKey", l, u, a, Le ? Ce : d), r) {
439
466
  const U = this.resolve(a, {
440
467
  ...n,
@@ -449,18 +476,18 @@ class at extends ct {
449
476
  Re.push(Je[U]);
450
477
  else
451
478
  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);
479
+ const hn = (U, fe, Pe) => {
480
+ const cn = F && Pe !== d ? Pe : ks;
481
+ this.options.missingKeyHandler ? this.options.missingKeyHandler(U, u, fe, cn, Le, n) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(U, u, fe, cn, Le, n), this.emit("missingKey", U, u, fe, d);
455
482
  };
456
483
  this.options.saveMissing && (this.options.saveMissingPlurals && G ? Re.forEach((U) => {
457
484
  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);
485
+ dn && n[`defaultValue${this.options.pluralSeparator}zero`] && fe.indexOf(`${this.options.pluralSeparator}zero`) < 0 && fe.push(`${this.options.pluralSeparator}zero`), fe.forEach((Pe) => {
486
+ hn([U], a + Pe, n[`defaultValue${Pe}`] || Ce);
460
487
  });
461
- }) : cn(Re, a, Ce));
488
+ }) : hn(Re, a, Ce));
462
489
  }
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));
490
+ d = this.extendTranslation(d, t, n, f, s), I && d === a && this.options.appendNamespaceToMissingKey && (d = `${u}:${a}`), (I || 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
491
  }
465
492
  return i ? (f.res = d, f.usedParams = this.getUsedParamsDetails(n), f) : d;
466
493
  }
@@ -492,17 +519,17 @@ class at extends ct {
492
519
  ...this.options.interpolation.defaultVariables,
493
520
  ...f
494
521
  }), 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);
522
+ const d = t.match(this.interpolator.nestingRegexp), x = d && d.length;
523
+ h < x && (s.nest = !1);
497
524
  }
498
525
  !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);
526
+ for (var d = arguments.length, x = new Array(d), y = 0; y < d; y++)
527
+ x[y] = arguments[y];
528
+ return r && r[0] === x[0] && !s.context ? (a.logger.warn(`It seems you are nesting recursively key: ${x[0]} in key: ${n[0]}`), null) : a.translate(...x, n);
502
529
  }, s)), s.interpolation && this.interpolator.reset();
503
530
  }
504
531
  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 ? {
532
+ return t != null && u && u.length && s.applyPostProcessor !== !1 && (t = Cn.handle(u, t, n, this.options && this.options.postProcessPassResolved ? {
506
533
  i18nResolved: {
507
534
  ...i,
508
535
  usedParams: this.getUsedParamsDetails(s)
@@ -519,27 +546,27 @@ class at extends ct {
519
546
  i = h;
520
547
  let f = l.namespaces;
521
548
  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);
549
+ const d = n.count !== void 0 && typeof n.count != "string", x = d && !n.ordinal && n.count === 0 && this.pluralResolver.shouldUseIntlApi(), y = 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
550
  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) => {
551
+ this.isValidLookup(s) || (o = D, !pn[`${N[0]}-${D}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(o) && (pn[`${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((E) => {
525
552
  if (this.isValidLookup(s))
526
553
  return;
527
- a = I;
528
- const T = [h];
554
+ a = E;
555
+ const P = [h];
529
556
  if (this.i18nFormat && this.i18nFormat.addLookupKeys)
530
- this.i18nFormat.addLookupKeys(T, h, I, D, n);
557
+ this.i18nFormat.addLookupKeys(P, h, E, D, n);
531
558
  else {
532
559
  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));
560
+ d && (C = this.pluralResolver.getSuffix(E, n.count, n));
561
+ const I = `${this.options.pluralSeparator}zero`, G = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
562
+ if (d && (P.push(h + C), n.ordinal && C.indexOf(G) === 0 && P.push(h + C.replace(G, this.options.pluralSeparator)), x && P.push(h + I)), y) {
563
+ const F = `${h}${this.options.contextSeparator}${n.context}`;
564
+ P.push(F), d && (P.push(F + C), n.ordinal && C.indexOf(G) === 0 && P.push(F + C.replace(G, this.options.pluralSeparator)), x && P.push(F + I));
538
565
  }
539
566
  }
540
567
  let Be;
541
- for (; Be = T.pop(); )
542
- this.isValidLookup(s) || (r = Be, s = this.getResource(I, D, Be, n));
568
+ for (; Be = P.pop(); )
569
+ this.isValidLookup(s) || (r = Be, s = this.getResource(E, D, Be, n));
543
570
  }));
544
571
  });
545
572
  }), {
@@ -581,8 +608,10 @@ class at extends ct {
581
608
  return !1;
582
609
  }
583
610
  }
584
- const kt = (e) => e.charAt(0).toUpperCase() + e.slice(1);
585
- class wn {
611
+ function kt(e) {
612
+ return e.charAt(0).toUpperCase() + e.slice(1);
613
+ }
614
+ class yn {
586
615
  constructor(t) {
587
616
  this.options = t, this.supportedLngs = this.options.supportedLngs || !1, this.logger = Z.create("languageUtils");
588
617
  }
@@ -600,13 +629,6 @@ class wn {
600
629
  }
601
630
  formatLanguageCode(t) {
602
631
  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
632
  const n = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"];
611
633
  let s = t.split("-");
612
634
  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("-");
@@ -658,7 +680,7 @@ class wn {
658
680
  }), i;
659
681
  }
660
682
  }
661
- let Us = [{
683
+ let As = [{
662
684
  lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
663
685
  nr: [1, 2],
664
686
  fc: 1
@@ -750,73 +772,108 @@ let Us = [{
750
772
  lngs: ["he", "iw"],
751
773
  nr: [1, 2, 20, 21],
752
774
  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
775
+ }], js = {
776
+ 1: function(e) {
777
+ return +(e > 1);
778
+ },
779
+ 2: function(e) {
780
+ return +(e != 1);
781
+ },
782
+ 3: function(e) {
783
+ return 0;
784
+ },
785
+ 4: function(e) {
786
+ return e % 10 == 1 && e % 100 != 11 ? 0 : e % 10 >= 2 && e % 10 <= 4 && (e % 100 < 10 || e % 100 >= 20) ? 1 : 2;
787
+ },
788
+ 5: function(e) {
789
+ return e == 0 ? 0 : e == 1 ? 1 : e == 2 ? 2 : e % 100 >= 3 && e % 100 <= 10 ? 3 : e % 100 >= 11 ? 4 : 5;
790
+ },
791
+ 6: function(e) {
792
+ return e == 1 ? 0 : e >= 2 && e <= 4 ? 1 : 2;
793
+ },
794
+ 7: function(e) {
795
+ return e == 1 ? 0 : e % 10 >= 2 && e % 10 <= 4 && (e % 100 < 10 || e % 100 >= 20) ? 1 : 2;
796
+ },
797
+ 8: function(e) {
798
+ return e == 1 ? 0 : e == 2 ? 1 : e != 8 && e != 11 ? 2 : 3;
799
+ },
800
+ 9: function(e) {
801
+ return +(e >= 2);
802
+ },
803
+ 10: function(e) {
804
+ return e == 1 ? 0 : e == 2 ? 1 : e < 7 ? 2 : e < 11 ? 3 : 4;
805
+ },
806
+ 11: function(e) {
807
+ return e == 1 || e == 11 ? 0 : e == 2 || e == 12 ? 1 : e > 2 && e < 20 ? 2 : 3;
808
+ },
809
+ 12: function(e) {
810
+ return +(e % 10 != 1 || e % 100 == 11);
811
+ },
812
+ 13: function(e) {
813
+ return +(e !== 0);
814
+ },
815
+ 14: function(e) {
816
+ return e == 1 ? 0 : e == 2 ? 1 : e == 3 ? 2 : 3;
817
+ },
818
+ 15: function(e) {
819
+ return e % 10 == 1 && e % 100 != 11 ? 0 : e % 10 >= 2 && (e % 100 < 10 || e % 100 >= 20) ? 1 : 2;
820
+ },
821
+ 16: function(e) {
822
+ return e % 10 == 1 && e % 100 != 11 ? 0 : e !== 0 ? 1 : 2;
823
+ },
824
+ 17: function(e) {
825
+ return e == 1 || e % 10 == 1 && e % 100 != 11 ? 0 : 1;
826
+ },
827
+ 18: function(e) {
828
+ return e == 0 ? 0 : e == 1 ? 1 : 2;
829
+ },
830
+ 19: function(e) {
831
+ return e == 1 ? 0 : e == 0 || e % 100 > 1 && e % 100 < 11 ? 1 : e % 100 > 10 && e % 100 < 20 ? 2 : 3;
832
+ },
833
+ 20: function(e) {
834
+ return e == 1 ? 0 : e == 0 || e % 100 > 0 && e % 100 < 20 ? 1 : 2;
835
+ },
836
+ 21: function(e) {
837
+ return e % 100 == 1 ? 1 : e % 100 == 2 ? 2 : e % 100 == 3 || e % 100 == 4 ? 3 : 0;
838
+ },
839
+ 22: function(e) {
840
+ return e == 1 ? 0 : e == 2 ? 1 : (e < 0 || e > 10) && e % 10 == 0 ? 2 : 3;
841
+ }
776
842
  };
777
- const $s = ["v1", "v2", "v3"], Vs = ["v4"], Sn = {
843
+ const Is = ["v1", "v2", "v3"], Us = ["v4"], _n = {
778
844
  zero: 0,
779
845
  one: 1,
780
846
  two: 2,
781
847
  few: 3,
782
848
  many: 4,
783
849
  other: 5
784
- }, Ws = () => {
850
+ };
851
+ function Hs() {
785
852
  const e = {};
786
- return Us.forEach((t) => {
853
+ return As.forEach((t) => {
787
854
  t.lngs.forEach((n) => {
788
855
  e[n] = {
789
856
  numbers: t.nr,
790
- plurals: Hs[t.fc]
857
+ plurals: js[t.fc]
791
858
  };
792
859
  });
793
860
  }), e;
794
- };
795
- class Gs {
861
+ }
862
+ class $s {
796
863
  constructor(t) {
797
864
  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 = {};
865
+ this.languageUtils = t, this.options = n, this.logger = Z.create("pluralResolver"), (!this.options.compatibilityJSON || Us.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 = Hs();
799
866
  }
800
867
  addRule(t, n) {
801
868
  this.rules[t] = n;
802
869
  }
803
- clearCache() {
804
- this.pluralRulesCache = {};
805
- }
806
870
  getRule(t) {
807
871
  let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
808
872
  if (this.shouldUseIntlApi())
809
873
  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
874
+ return new Intl.PluralRules(rt(t === "dev" ? "en" : t), {
875
+ type: n.ordinal ? "ordinal" : "cardinal"
818
876
  });
819
- return this.pluralRulesCache[r] = a, a;
820
877
  } catch {
821
878
  return;
822
879
  }
@@ -834,7 +891,7 @@ class Gs {
834
891
  getSuffixes(t) {
835
892
  let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
836
893
  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)) : [];
894
+ return s ? this.shouldUseIntlApi() ? s.resolvedOptions().pluralCategories.sort((i, r) => _n[i] - _n[r]).map((i) => `${this.options.prepend}${n.ordinal ? `ordinal${this.options.prepend}` : ""}${i}`) : s.numbers.map((i) => this.getSuffix(t, i, n)) : [];
838
895
  }
839
896
  getSuffix(t, n) {
840
897
  let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
@@ -849,14 +906,14 @@ class Gs {
849
906
  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
907
  }
851
908
  shouldUseIntlApi() {
852
- return !$s.includes(this.options.compatibilityJSON);
909
+ return !Is.includes(this.options.compatibilityJSON);
853
910
  }
854
911
  }
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 {
912
+ function vn(e, t, n) {
913
+ let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, r = Cs(e, t, n);
914
+ return !r && i && typeof n == "string" && (r = Pt(e, n, s), r === void 0 && (r = Pt(t, n, s))), r;
915
+ }
916
+ class Ws {
860
917
  constructor() {
861
918
  let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
862
919
  this.logger = Z.create("interpolator"), this.options = t, this.format = t.interpolation && t.interpolation.format || ((n) => n), this.init(t);
@@ -878,14 +935,14 @@ class zs {
878
935
  unescapeSuffix: h,
879
936
  unescapePrefix: f,
880
937
  nestingPrefix: d,
881
- nestingPrefixEscaped: y,
882
- nestingSuffix: x,
938
+ nestingPrefixEscaped: x,
939
+ nestingSuffix: y,
883
940
  nestingSuffixEscaped: N,
884
941
  nestingOptionsSeparator: D,
885
- maxReplaces: I,
886
- alwaysFormat: T
942
+ maxReplaces: E,
943
+ alwaysFormat: P
887
944
  } = 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();
945
+ this.escape = n !== void 0 ? n : Rs, 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) : x || ve("$t("), this.nestingSuffix = y ? ve(y) : N || ve(")"), this.nestingOptionsSeparator = D || ",", this.maxReplaces = E || 1e3, this.alwaysFormat = P !== void 0 ? P : !1, this.resetRegExp();
889
946
  }
890
947
  reset() {
891
948
  this.options && this.init(this.options);
@@ -896,63 +953,67 @@ class zs {
896
953
  }
897
954
  interpolate(t, n, s, i) {
898
955
  let r, a, o;
899
- const u = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, l = (y) => {
956
+ const u = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {};
957
+ function l(y) {
958
+ return y.replace(/\$/g, "$$$$");
959
+ }
960
+ const h = (y) => {
900
961
  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, {
962
+ const P = vn(n, u, y, this.options.keySeparator, this.options.ignoreJSONStructure);
963
+ return this.alwaysFormat ? this.format(P, void 0, s, {
903
964
  ...i,
904
965
  ...n,
905
966
  interpolationkey: y
906
- }) : I;
967
+ }) : P;
907
968
  }
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, {
969
+ const N = y.split(this.formatSeparator), D = N.shift().trim(), E = N.join(this.formatSeparator).trim();
970
+ return this.format(vn(n, u, D, this.options.keySeparator, this.options.ignoreJSONStructure), E, s, {
910
971
  ...i,
911
972
  ...n,
912
- interpolationkey: N
973
+ interpolationkey: D
913
974
  });
914
975
  };
915
976
  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;
977
+ const f = i && i.missingInterpolationHandler || this.options.missingInterpolationHandler, d = i && i.interpolation && i.interpolation.skipOnVariables !== void 0 ? i.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
917
978
  return [{
918
979
  regex: this.regexpUnescape,
919
- safeValue: (y) => Ot(y)
980
+ safeValue: (y) => l(y)
920
981
  }, {
921
982
  regex: this.regexp,
922
- safeValue: (y) => this.escapeValue ? Ot(this.escape(y)) : Ot(y)
983
+ safeValue: (y) => this.escapeValue ? l(this.escape(y)) : l(y)
923
984
  }].forEach((y) => {
924
985
  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))
986
+ const N = r[1].trim();
987
+ if (a = h(N), a === void 0)
988
+ if (typeof f == "function") {
989
+ const E = f(t, r, i);
990
+ a = typeof E == "string" ? E : "";
991
+ } else if (i && Object.prototype.hasOwnProperty.call(i, N))
931
992
  a = "";
932
- else if (f) {
993
+ else if (d) {
933
994
  a = r[0];
934
995
  continue;
935
996
  } else
936
- this.logger.warn(`missed to pass in variable ${x} for interpolating ${t}`), a = "";
997
+ this.logger.warn(`missed to pass in variable ${N} for interpolating ${t}`), a = "";
937
998
  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)
999
+ typeof a != "string" && !this.useRawValueToEscape && (a = fn(a));
1000
+ const D = y.safeValue(a);
1001
+ if (t = t.replace(r[0], D), d ? (y.regex.lastIndex += a.length, y.regex.lastIndex -= r[0].length) : y.regex.lastIndex = 0, o++, o >= this.maxReplaces)
941
1002
  break;
942
1003
  }
943
1004
  }), t;
944
1005
  }
945
1006
  nest(t, n) {
946
1007
  let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i, r, a;
947
- const o = (u, l) => {
1008
+ function o(u, l) {
948
1009
  const h = this.nestingOptionsSeparator;
949
1010
  if (u.indexOf(h) < 0)
950
1011
  return u;
951
1012
  const f = u.split(new RegExp(`${h}[ ]*{`));
952
1013
  let d = `{${f[1]}`;
953
1014
  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, '"'));
1015
+ const x = d.match(/'/g), y = d.match(/"/g);
1016
+ (x && x.length % 2 === 0 && !y || y.length % 2 !== 0) && (d = d.replace(/'/g, '"'));
956
1017
  try {
957
1018
  a = JSON.parse(d), l && (a = {
958
1019
  ...l,
@@ -962,7 +1023,7 @@ class zs {
962
1023
  return this.logger.warn(`failed parsing options string in nesting for key ${u}`, N), `${u}${h}${d}`;
963
1024
  }
964
1025
  return a.defaultValue && a.defaultValue.indexOf(this.prefix) > -1 && delete a.defaultValue, u;
965
- };
1026
+ }
966
1027
  for (; i = this.nestingRegexp.exec(t); ) {
967
1028
  let u = [];
968
1029
  a = {
@@ -975,7 +1036,7 @@ class zs {
975
1036
  }
976
1037
  if (r = n(o.call(this, i[1].trim(), a), a), r && i[0] === t && typeof r != "string")
977
1038
  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, {
1039
+ typeof r != "string" && (r = fn(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
1040
  ...s,
980
1041
  interpolationkey: i[1].trim()
981
1042
  }), r.trim())), t = t.replace(i[0], r), this.regexp.lastIndex = 0;
@@ -983,7 +1044,7 @@ class zs {
983
1044
  return t;
984
1045
  }
985
1046
  }
986
- const Ks = (e) => {
1047
+ function Vs(e) {
987
1048
  let t = e.toLowerCase().trim();
988
1049
  const n = {};
989
1050
  if (e.indexOf("(") > -1) {
@@ -1001,20 +1062,16 @@ const Ks = (e) => {
1001
1062
  formatName: t,
1002
1063
  formatOptions: n
1003
1064
  };
1004
- }, we = (e) => {
1065
+ }
1066
+ function we(e) {
1005
1067
  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);
1068
+ return function(s, i, r) {
1069
+ const a = i + JSON.stringify(r);
1013
1070
  let o = t[a];
1014
- return o || (o = e(rt(s), i), t[a] = o), o(n);
1071
+ return o || (o = e(rt(i), r), t[a] = o), o(s);
1015
1072
  };
1016
- };
1017
- class Bs {
1073
+ }
1074
+ class Gs {
1018
1075
  constructor() {
1019
1076
  let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1020
1077
  this.logger = Z.create("formatter"), this.options = t, this.formats = {
@@ -1065,21 +1122,16 @@ class Bs {
1065
1122
  }
1066
1123
  format(t, n, s) {
1067
1124
  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) => {
1125
+ return n.split(this.formatSeparator).reduce((o, u) => {
1074
1126
  const {
1075
1127
  formatName: l,
1076
1128
  formatOptions: h
1077
- } = Ks(u);
1129
+ } = Vs(u);
1078
1130
  if (this.formats[l]) {
1079
1131
  let f = o;
1080
1132
  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, {
1133
+ const d = i && i.formatParams && i.formatParams[i.interpolationkey] || {}, x = d.locale || d.lng || i.locale || i.lng || s;
1134
+ f = this.formats[l](o, x, {
1083
1135
  ...h,
1084
1136
  ...i,
1085
1137
  ...d
@@ -1094,10 +1146,10 @@ class Bs {
1094
1146
  }, t);
1095
1147
  }
1096
1148
  }
1097
- const qs = (e, t) => {
1149
+ function zs(e, t) {
1098
1150
  e.pending[t] !== void 0 && (delete e.pending[t], e.pendingCount--);
1099
- };
1100
- class Js extends ct {
1151
+ }
1152
+ class Ks extends ct {
1101
1153
  constructor(t, n, s) {
1102
1154
  let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
1103
1155
  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);
@@ -1125,12 +1177,12 @@ class Js extends ct {
1125
1177
  }
1126
1178
  loaded(t, n, s) {
1127
1179
  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, {
1180
+ n && this.emit("failedLoading", r, a, n), s && this.store.addResourceBundle(r, a, s, void 0, void 0, {
1129
1181
  skipCopy: !0
1130
- }), this.state[t] = n ? -1 : 2, n && s && (this.state[t] = 0);
1182
+ }), this.state[t] = n ? -1 : 2;
1131
1183
  const o = {};
1132
1184
  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) => {
1185
+ Ns(u.loaded, [r], a), zs(u, t), n && u.errors.push(n), u.pendingCount === 0 && !u.done && (Object.keys(u.loaded).forEach((l) => {
1134
1186
  o[l] || (o[l] = {});
1135
1187
  const h = u.loaded[l];
1136
1188
  h.length && h.forEach((f) => {
@@ -1233,74 +1285,81 @@ class Js extends ct {
1233
1285
  }
1234
1286
  }
1235
1287
  }
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
- });
1288
+ function wn() {
1289
+ return {
1290
+ debug: !1,
1291
+ initImmediate: !0,
1292
+ ns: ["translation"],
1293
+ defaultNS: ["translation"],
1294
+ fallbackLng: ["dev"],
1295
+ fallbackNS: !1,
1296
+ supportedLngs: !1,
1297
+ nonExplicitSupportedLngs: !1,
1298
+ load: "all",
1299
+ preload: !1,
1300
+ simplifyPluralSuffix: !0,
1301
+ keySeparator: ".",
1302
+ nsSeparator: ":",
1303
+ pluralSeparator: "_",
1304
+ contextSeparator: "_",
1305
+ partialBundledLanguages: !1,
1306
+ saveMissing: !1,
1307
+ updateMissing: !1,
1308
+ saveMissingTo: "fallback",
1309
+ saveMissingPlurals: !0,
1310
+ missingKeyHandler: !1,
1311
+ missingInterpolationHandler: !1,
1312
+ postProcess: !1,
1313
+ postProcessPassResolved: !1,
1314
+ returnNull: !1,
1315
+ returnEmptyString: !0,
1316
+ returnObjects: !1,
1317
+ joinArrays: !1,
1318
+ returnedObjectHandler: !1,
1319
+ parseMissingKeyHandler: !1,
1320
+ appendNamespaceToMissingKey: !1,
1321
+ appendNamespaceToCIMode: !1,
1322
+ overloadTranslationOptionHandler: function(t) {
1323
+ let n = {};
1324
+ if (typeof t[1] == "object" && (n = t[1]), typeof t[1] == "string" && (n.defaultValue = t[1]), typeof t[2] == "string" && (n.tDescription = t[2]), typeof t[2] == "object" || typeof t[3] == "object") {
1325
+ const s = t[3] || t[2];
1326
+ Object.keys(s).forEach((i) => {
1327
+ n[i] = s[i];
1328
+ });
1329
+ }
1330
+ return n;
1331
+ },
1332
+ interpolation: {
1333
+ escapeValue: !0,
1334
+ format: (e) => e,
1335
+ prefix: "{{",
1336
+ suffix: "}}",
1337
+ formatSeparator: ",",
1338
+ unescapePrefix: "-",
1339
+ nestingPrefix: "$t(",
1340
+ nestingSuffix: ")",
1341
+ nestingOptionsSeparator: ",",
1342
+ maxReplaces: 1e3,
1343
+ skipOnVariables: !0
1276
1344
  }
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) => {
1345
+ };
1346
+ }
1347
+ function Sn(e) {
1348
+ return 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;
1349
+ }
1350
+ function Ze() {
1351
+ }
1352
+ function Bs(e) {
1294
1353
  Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((n) => {
1295
1354
  typeof e[n] == "function" && (e[n] = e[n].bind(e));
1296
1355
  });
1297
- };
1298
- class je extends ct {
1356
+ }
1357
+ class Ie extends ct {
1299
1358
  constructor() {
1300
1359
  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 = {
1360
+ if (super(), this.options = Sn(t), this.services = {}, this.logger = Z, this.modules = {
1302
1361
  external: []
1303
- }, Zs(this), n && !this.isInitialized && !t.isClone) {
1362
+ }, Bs(this), n && !this.isInitialized && !t.isClone) {
1304
1363
  if (!this.options.initImmediate)
1305
1364
  return this.init(t, n), this;
1306
1365
  setTimeout(() => {
@@ -1312,39 +1371,41 @@ class je extends ct {
1312
1371
  var t = this;
1313
1372
  let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, s = arguments.length > 1 ? arguments[1] : void 0;
1314
1373
  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();
1374
+ const i = wn();
1316
1375
  this.options = {
1317
1376
  ...i,
1318
1377
  ...this.options,
1319
- ...kn(n)
1378
+ ...Sn(n)
1320
1379
  }, this.options.compatibilityAPI !== "v1" && (this.options.interpolation = {
1321
1380
  ...i.interpolation,
1322
1381
  ...this.options.interpolation
1323
1382
  }), 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;
1383
+ function r(h) {
1384
+ return h ? typeof h == "function" ? new h() : h : null;
1385
+ }
1325
1386
  if (!this.options.isClone) {
1326
1387
  this.modules.logger ? Z.init(r(this.modules.logger), this.options) : Z.init(null, this.options);
1327
1388
  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);
1389
+ this.modules.formatter ? h = this.modules.formatter : typeof Intl < "u" && (h = Gs);
1390
+ const f = new yn(this.options);
1391
+ this.store = new mn(this.options.resources, this.options);
1331
1392
  const d = this.services;
1332
- d.logger = Z, d.resourceStore = this.store, d.languageUtils = f, d.pluralResolver = new Gs(f, {
1393
+ d.logger = Z, d.resourceStore = this.store, d.languageUtils = f, d.pluralResolver = new $s(f, {
1333
1394
  prepend: this.options.pluralSeparator,
1334
1395
  compatibilityJSON: this.options.compatibilityJSON,
1335
1396
  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 = {
1397
+ }), 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 Ws(this.options), d.utils = {
1337
1398
  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++)
1399
+ }, d.backendConnector = new Ks(r(this.modules.backend), d.resourceStore, d, this.options), d.backendConnector.on("*", function(x) {
1400
+ for (var y = arguments.length, N = new Array(y > 1 ? y - 1 : 0), D = 1; D < y; D++)
1340
1401
  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++)
1402
+ t.emit(x, ...N);
1403
+ }), 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(x) {
1404
+ for (var y = arguments.length, N = new Array(y > 1 ? y - 1 : 0), D = 1; D < y; D++)
1344
1405
  N[D - 1] = arguments[D];
1345
- t.emit(y, ...N);
1346
- }), this.modules.external.forEach((y) => {
1347
- y.init && y.init(this);
1406
+ t.emit(x, ...N);
1407
+ }), this.modules.external.forEach((x) => {
1408
+ x.init && x.init(this);
1348
1409
  });
1349
1410
  }
1350
1411
  if (this.format = this.options.interpolation.format, s || (s = Ze), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
@@ -1391,7 +1452,7 @@ class je extends ct {
1391
1452
  }
1392
1453
  reloadResources(t, n, s) {
1393
1454
  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) => {
1455
+ return t || (t = this.languages), n || (n = this.options.ns), s || (s = Ze), this.services.backendConnector.reload(t, n, (r) => {
1395
1456
  i.resolve(), s(r);
1396
1457
  }), i;
1397
1458
  }
@@ -1400,7 +1461,7 @@ class je extends ct {
1400
1461
  throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
1401
1462
  if (!t.type)
1402
1463
  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;
1464
+ 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" && Cn.addPostProcessor(t), t.type === "formatter" && (this.modules.formatter = t), t.type === "3rdParty" && this.modules.external.push(t), this;
1404
1465
  }
1405
1466
  setResolvedLanguage(t) {
1406
1467
  if (!(!t || !this.languages) && !(["cimode", "dev"].indexOf(t) > -1))
@@ -1448,8 +1509,8 @@ class je extends ct {
1448
1509
  };
1449
1510
  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
1511
  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);
1512
+ let x;
1513
+ return u.keyPrefix && Array.isArray(a) ? x = a.map((y) => `${u.keyPrefix}${d}${y}`) : x = u.keyPrefix ? `${u.keyPrefix}${d}${a}` : a, i.t(x, u);
1453
1514
  };
1454
1515
  return typeof t == "string" ? r.lng = t : r.lngs = t, r.ns = n, r.keyPrefix = s, r;
1455
1516
  }
@@ -1473,7 +1534,7 @@ class je extends ct {
1473
1534
  return !0;
1474
1535
  const a = (o, u) => {
1475
1536
  const l = this.services.backendConnector.state[`${o}|${u}`];
1476
- return l === -1 || l === 0 || l === 2;
1537
+ return l === -1 || l === 2;
1477
1538
  };
1478
1539
  if (n.precheck) {
1479
1540
  const o = n.precheck(this, a);
@@ -1501,12 +1562,12 @@ class je extends ct {
1501
1562
  dir(t) {
1502
1563
  if (t || (t = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !t)
1503
1564
  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());
1565
+ 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 yn(wn());
1505
1566
  return n.indexOf(s.getLanguagePartFromCode(t)) > -1 || t.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
1506
1567
  }
1507
1568
  static createInstance() {
1508
1569
  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);
1570
+ return new Ie(t, n);
1510
1571
  }
1511
1572
  cloneInstance() {
1512
1573
  let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Ze;
@@ -1516,14 +1577,14 @@ class je extends ct {
1516
1577
  ...this.options,
1517
1578
  ...t,
1518
1579
  isClone: !0
1519
- }, r = new je(i);
1580
+ }, r = new Ie(i);
1520
1581
  return (t.debug !== void 0 || t.prefix !== void 0) && (r.logger = r.logger.clone(t)), ["store", "services", "language"].forEach((o) => {
1521
1582
  r[o] = this[o];
1522
1583
  }), r.services = {
1523
1584
  ...this.services
1524
1585
  }, r.services.utils = {
1525
1586
  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) {
1587
+ }, s && (r.store = new mn(this.store.data, i), r.services.resourceStore = r.store), r.translator = new at(r.services, i), r.translator.on("*", function(o) {
1527
1588
  for (var u = arguments.length, l = new Array(u > 1 ? u - 1 : 0), h = 1; h < u; h++)
1528
1589
  l[h - 1] = arguments[h];
1529
1590
  r.emit(o, ...l);
@@ -1541,23 +1602,23 @@ class je extends ct {
1541
1602
  };
1542
1603
  }
1543
1604
  }
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 = {
1605
+ const A = Ie.createInstance();
1606
+ A.createInstance = Ie.createInstance;
1607
+ A.createInstance;
1608
+ A.dir;
1609
+ A.init;
1610
+ A.loadResources;
1611
+ A.reloadResources;
1612
+ A.use;
1613
+ A.changeLanguage;
1614
+ A.getFixedT;
1615
+ const Ot = A.t;
1616
+ A.exists;
1617
+ A.setDefaultNamespace;
1618
+ A.hasLoadedNamespace;
1619
+ A.loadNamespaces;
1620
+ A.loadLanguages;
1621
+ const Mt = {
1561
1622
  d1: "<:d1:1159542168738873455>",
1562
1623
  d2: "<:d2:1159542071049334814>",
1563
1624
  d3: "<:d3:1159542073914032191>",
@@ -1679,18 +1740,18 @@ const Dt = {
1679
1740
  equipment_adventurer_helmet: "<:Casque_cuir:1256965718432550953>",
1680
1741
  equipment_adventurer_weapon: "<:Dague_cuir:1256965714141515837>",
1681
1742
  equipment_adventurer_belt: "<:Ceinture_cuir:1256965593333108838>"
1682
- }, Yt = (e) => new Intl.NumberFormat("de-DE").format(e);
1743
+ }, Dt = (e) => new Intl.NumberFormat("de-DE").format(e);
1683
1744
  //! moment.js
1684
1745
  //! version : 2.30.1
1685
1746
  //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
1686
1747
  //! license : MIT
1687
1748
  //! momentjs.com
1688
- var Tn;
1749
+ var Ln;
1689
1750
  function g() {
1690
- return Tn.apply(null, arguments);
1751
+ return Ln.apply(null, arguments);
1691
1752
  }
1692
- function Qs(e) {
1693
- Tn = e;
1753
+ function qs(e) {
1754
+ Ln = e;
1694
1755
  }
1695
1756
  function K(e) {
1696
1757
  return e instanceof Array || Object.prototype.toString.call(e) === "[object Array]";
@@ -1701,7 +1762,7 @@ function ye(e) {
1701
1762
  function S(e, t) {
1702
1763
  return Object.prototype.hasOwnProperty.call(e, t);
1703
1764
  }
1704
- function $t(e) {
1765
+ function Ht(e) {
1705
1766
  if (Object.getOwnPropertyNames)
1706
1767
  return Object.getOwnPropertyNames(e).length === 0;
1707
1768
  var t;
@@ -1710,16 +1771,16 @@ function $t(e) {
1710
1771
  return !1;
1711
1772
  return !0;
1712
1773
  }
1713
- function A(e) {
1774
+ function j(e) {
1714
1775
  return e === void 0;
1715
1776
  }
1716
1777
  function oe(e) {
1717
1778
  return typeof e == "number" || Object.prototype.toString.call(e) === "[object Number]";
1718
1779
  }
1719
- function We(e) {
1780
+ function Ve(e) {
1720
1781
  return e instanceof Date || Object.prototype.toString.call(e) === "[object Date]";
1721
1782
  }
1722
- function En(e, t) {
1783
+ function Rn(e, t) {
1723
1784
  var n = [], s, i = e.length;
1724
1785
  for (s = 0; s < i; ++s)
1725
1786
  n.push(t(e[s], s));
@@ -1731,9 +1792,9 @@ function de(e, t) {
1731
1792
  return S(t, "toString") && (e.toString = t.toString), S(t, "valueOf") && (e.valueOf = t.valueOf), e;
1732
1793
  }
1733
1794
  function X(e, t, n, s) {
1734
- return is(e, t, n, s, !0).utc();
1795
+ return ts(e, t, n, s, !0).utc();
1735
1796
  }
1736
- function Xs() {
1797
+ function Js() {
1737
1798
  return {
1738
1799
  empty: !1,
1739
1800
  unusedTokens: [],
@@ -1754,19 +1815,19 @@ function Xs() {
1754
1815
  };
1755
1816
  }
1756
1817
  function _(e) {
1757
- return e._pf == null && (e._pf = Xs()), e._pf;
1818
+ return e._pf == null && (e._pf = Js()), e._pf;
1758
1819
  }
1759
- var Et;
1760
- Array.prototype.some ? Et = Array.prototype.some : Et = function(e) {
1820
+ var Tt;
1821
+ Array.prototype.some ? Tt = Array.prototype.some : Tt = function(e) {
1761
1822
  var t = Object(this), n = t.length >>> 0, s;
1762
1823
  for (s = 0; s < n; s++)
1763
1824
  if (s in t && e.call(this, t[s], s, t))
1764
1825
  return !0;
1765
1826
  return !1;
1766
1827
  };
1767
- function Vt(e) {
1828
+ function $t(e) {
1768
1829
  var t = null, n = !1, s = e._d && !isNaN(e._d.getTime());
1769
- if (s && (t = _(e), n = Et.call(t.parsedDateParts, function(i) {
1830
+ if (s && (t = _(e), n = Tt.call(t.parsedDateParts, function(i) {
1770
1831
  return i != null;
1771
1832
  }), 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
1833
  e._isValid = s;
@@ -1778,24 +1839,24 @@ function ft(e) {
1778
1839
  var t = X(NaN);
1779
1840
  return e != null ? de(_(t), e) : _(t).userInvalidated = !0, t;
1780
1841
  }
1781
- var On = g.momentProperties = [], Nt = !1;
1842
+ var bn = g.momentProperties = [], Yt = !1;
1782
1843
  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)
1844
+ var n, s, i, r = bn.length;
1845
+ if (j(t._isAMomentObject) || (e._isAMomentObject = t._isAMomentObject), j(t._i) || (e._i = t._i), j(t._f) || (e._f = t._f), j(t._l) || (e._l = t._l), j(t._strict) || (e._strict = t._strict), j(t._tzm) || (e._tzm = t._tzm), j(t._isUTC) || (e._isUTC = t._isUTC), j(t._offset) || (e._offset = t._offset), j(t._pf) || (e._pf = _(t)), j(t._locale) || (e._locale = t._locale), r > 0)
1785
1846
  for (n = 0; n < r; n++)
1786
- s = On[n], i = t[s], A(i) || (e[s] = i);
1847
+ s = bn[n], i = t[s], j(i) || (e[s] = i);
1787
1848
  return e;
1788
1849
  }
1789
1850
  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);
1851
+ Wt(this, e), this._d = new Date(e._d != null ? e._d.getTime() : NaN), this.isValid() || (this._d = /* @__PURE__ */ new Date(NaN)), Yt === !1 && (Yt = !0, g.updateOffset(this), Yt = !1);
1791
1852
  }
1792
1853
  function B(e) {
1793
1854
  return e instanceof Ge || e != null && e._isAMomentObject != null;
1794
1855
  }
1795
- function Fn(e) {
1856
+ function Pn(e) {
1796
1857
  g.suppressDeprecationWarnings === !1 && typeof console < "u" && console.warn && console.warn("Deprecation warning: " + e);
1797
1858
  }
1798
- function V(e, t) {
1859
+ function W(e, t) {
1799
1860
  var n = !0;
1800
1861
  return de(function() {
1801
1862
  if (g.deprecationHandler != null && g.deprecationHandler(null, e), n) {
@@ -1811,7 +1872,7 @@ function V(e, t) {
1811
1872
  i = arguments[r];
1812
1873
  s.push(i);
1813
1874
  }
1814
- Fn(
1875
+ Pn(
1815
1876
  e + `
1816
1877
  Arguments: ` + Array.prototype.slice.call(s).join("") + `
1817
1878
  ` + new Error().stack
@@ -1820,16 +1881,16 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
1820
1881
  return t.apply(this, arguments);
1821
1882
  }, t);
1822
1883
  }
1823
- var Mn = {};
1824
- function An(e, t) {
1825
- g.deprecationHandler != null && g.deprecationHandler(e, t), Mn[e] || (Fn(t), Mn[e] = !0);
1884
+ var xn = {};
1885
+ function Tn(e, t) {
1886
+ g.deprecationHandler != null && g.deprecationHandler(e, t), xn[e] || (Pn(t), xn[e] = !0);
1826
1887
  }
1827
1888
  g.suppressDeprecationWarnings = !1;
1828
1889
  g.deprecationHandler = null;
1829
1890
  function ee(e) {
1830
1891
  return typeof Function < "u" && e instanceof Function || Object.prototype.toString.call(e) === "[object Function]";
1831
1892
  }
1832
- function ei(e) {
1893
+ function Zs(e) {
1833
1894
  var t, n;
1834
1895
  for (n in e)
1835
1896
  S(e, n) && (t = e[n], ee(t) ? this[n] = t : this["_" + n] = t);
@@ -1837,7 +1898,7 @@ function ei(e) {
1837
1898
  (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source
1838
1899
  );
1839
1900
  }
1840
- function Ft(e, t) {
1901
+ function Et(e, t) {
1841
1902
  var n = de({}, e), s;
1842
1903
  for (s in t)
1843
1904
  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]);
@@ -1845,17 +1906,17 @@ function Ft(e, t) {
1845
1906
  S(e, s) && !S(t, s) && ye(e[s]) && (n[s] = de({}, n[s]));
1846
1907
  return n;
1847
1908
  }
1848
- function Gt(e) {
1909
+ function Vt(e) {
1849
1910
  e != null && this.set(e);
1850
1911
  }
1851
- var At;
1852
- Object.keys ? At = Object.keys : At = function(e) {
1912
+ var Ft;
1913
+ Object.keys ? Ft = Object.keys : Ft = function(e) {
1853
1914
  var t, n = [];
1854
1915
  for (t in e)
1855
1916
  S(e, t) && n.push(t);
1856
1917
  return n;
1857
1918
  };
1858
- var ti = {
1919
+ var Qs = {
1859
1920
  sameDay: "[Today at] LT",
1860
1921
  nextDay: "[Tomorrow at] LT",
1861
1922
  nextWeek: "dddd [at] LT",
@@ -1863,7 +1924,7 @@ var ti = {
1863
1924
  lastWeek: "[Last] dddd [at] LT",
1864
1925
  sameElse: "L"
1865
1926
  };
1866
- function ni(e, t, n) {
1927
+ function Xs(e, t, n) {
1867
1928
  var s = this._calendar[e] || this._calendar.sameElse;
1868
1929
  return ee(s) ? s.call(t, n) : s;
1869
1930
  }
@@ -1871,7 +1932,7 @@ function Q(e, t, n) {
1871
1932
  var s = "" + Math.abs(e), i = t - s.length, r = e >= 0;
1872
1933
  return (r ? n ? "+" : "" : "-") + Math.pow(10, Math.max(0, i)).toString().substr(1) + s;
1873
1934
  }
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 = {};
1935
+ var Gt = /(\[[^\[]*\])|(\\)?([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, Nt = {}, ke = {};
1875
1936
  function p(e, t, n, s) {
1876
1937
  var i = s;
1877
1938
  typeof s == "string" && (i = function() {
@@ -1885,13 +1946,13 @@ function p(e, t, n, s) {
1885
1946
  );
1886
1947
  });
1887
1948
  }
1888
- function si(e) {
1949
+ function ei(e) {
1889
1950
  return e.match(/\[[\s\S]/) ? e.replace(/^\[|\]$/g, "") : e.replace(/\\/g, "");
1890
1951
  }
1891
- function ii(e) {
1892
- var t = e.match(zt), n, s;
1952
+ function ti(e) {
1953
+ var t = e.match(Gt), n, s;
1893
1954
  for (n = 0, s = t.length; n < s; n++)
1894
- ke[t[n]] ? t[n] = ke[t[n]] : t[n] = si(t[n]);
1955
+ ke[t[n]] ? t[n] = ke[t[n]] : t[n] = ei(t[n]);
1895
1956
  return function(i) {
1896
1957
  var r = "", a;
1897
1958
  for (a = 0; a < s; a++)
@@ -1900,9 +1961,9 @@ function ii(e) {
1900
1961
  };
1901
1962
  }
1902
1963
  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();
1964
+ return e.isValid() ? (t = En(t, e.localeData()), Nt[t] = Nt[t] || ti(t), Nt[t](e)) : e.localeData().invalidDate();
1904
1965
  }
1905
- function In(e, t) {
1966
+ function En(e, t) {
1906
1967
  var n = 5;
1907
1968
  function s(i) {
1908
1969
  return t.longDateFormat(i) || i;
@@ -1914,7 +1975,7 @@ function In(e, t) {
1914
1975
  ), Qe.lastIndex = 0, n -= 1;
1915
1976
  return e;
1916
1977
  }
1917
- var ri = {
1978
+ var ni = {
1918
1979
  LTS: "h:mm:ss A",
1919
1980
  LT: "h:mm A",
1920
1981
  L: "MM/DD/YYYY",
@@ -1922,21 +1983,21 @@ var ri = {
1922
1983
  LLL: "MMMM D, YYYY h:mm A",
1923
1984
  LLLL: "dddd, MMMM D, YYYY h:mm A"
1924
1985
  };
1925
- function ai(e) {
1986
+ function si(e) {
1926
1987
  var t = this._longDateFormat[e], n = this._longDateFormat[e.toUpperCase()];
1927
- return t || !n ? t : (this._longDateFormat[e] = n.match(zt).map(function(s) {
1988
+ return t || !n ? t : (this._longDateFormat[e] = n.match(Gt).map(function(s) {
1928
1989
  return s === "MMMM" || s === "MM" || s === "DD" || s === "dddd" ? s.slice(1) : s;
1929
1990
  }).join(""), this._longDateFormat[e]);
1930
1991
  }
1931
- var oi = "Invalid date";
1932
- function ui() {
1992
+ var ii = "Invalid date";
1993
+ function ri() {
1933
1994
  return this._invalidDate;
1934
1995
  }
1935
- var li = "%d", di = /\d{1,2}/;
1936
- function hi(e) {
1996
+ var ai = "%d", oi = /\d{1,2}/;
1997
+ function ui(e) {
1937
1998
  return this._ordinal.replace("%d", e);
1938
1999
  }
1939
- var ci = {
2000
+ var li = {
1940
2001
  future: "in %s",
1941
2002
  past: "%s ago",
1942
2003
  s: "a few seconds",
@@ -1954,15 +2015,15 @@ var ci = {
1954
2015
  y: "a year",
1955
2016
  yy: "%d years"
1956
2017
  };
1957
- function fi(e, t, n, s) {
2018
+ function di(e, t, n, s) {
1958
2019
  var i = this._relativeTime[n];
1959
2020
  return ee(i) ? i(e, t, n, s) : i.replace(/%d/i, e);
1960
2021
  }
1961
- function gi(e, t) {
2022
+ function hi(e, t) {
1962
2023
  var n = this._relativeTime[e > 0 ? "future" : "past"];
1963
2024
  return ee(n) ? n(t) : n.replace(/%s/i, t);
1964
2025
  }
1965
- var Dn = {
2026
+ var kn = {
1966
2027
  D: "date",
1967
2028
  dates: "date",
1968
2029
  date: "date",
@@ -2012,16 +2073,16 @@ var Dn = {
2012
2073
  years: "year",
2013
2074
  year: "year"
2014
2075
  };
2015
- function W(e) {
2016
- return typeof e == "string" ? Dn[e] || Dn[e.toLowerCase()] : void 0;
2076
+ function V(e) {
2077
+ return typeof e == "string" ? kn[e] || kn[e.toLowerCase()] : void 0;
2017
2078
  }
2018
- function Kt(e) {
2079
+ function zt(e) {
2019
2080
  var t = {}, n, s;
2020
2081
  for (s in e)
2021
- S(e, s) && (n = W(s), n && (t[n] = e[s]));
2082
+ S(e, s) && (n = V(s), n && (t[n] = e[s]));
2022
2083
  return t;
2023
2084
  }
2024
- var mi = {
2085
+ var ci = {
2025
2086
  date: 9,
2026
2087
  day: 11,
2027
2088
  weekday: 11,
@@ -2039,25 +2100,25 @@ var mi = {
2039
2100
  isoWeek: 5,
2040
2101
  year: 1
2041
2102
  };
2042
- function pi(e) {
2103
+ function fi(e) {
2043
2104
  var t = [], n;
2044
2105
  for (n in e)
2045
- S(e, n) && t.push({ unit: n, priority: mi[n] });
2106
+ S(e, n) && t.push({ unit: n, priority: ci[n] });
2046
2107
  return t.sort(function(s, i) {
2047
2108
  return s.priority - i.priority;
2048
2109
  }), t;
2049
2110
  }
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;
2111
+ var Fn = /\d/, H = /\d\d/, An = /\d{3}/, Kt = /\d{4}/, gt = /[+-]?\d{6}/, M = /\d\d?/, jn = /\d\d\d\d?/, In = /\d\d\d\d\d\d?/, mt = /\d{1,3}/, Bt = /\d{1,4}/, pt = /[+-]?\d{1,6}/, De = /\d+/, yt = /[+-]?\d+/, gi = /Z|[+-]\d\d:?\d\d/gi, _t = /Z|[+-]\d\d(?::?\d\d)?/gi, mi = /[+-]?\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?/, qt = /^([1-9]\d|\d)/, ot;
2051
2112
  ot = {};
2052
2113
  function m(e, t, n) {
2053
2114
  ot[e] = ee(t) ? t : function(s, i) {
2054
2115
  return s && n ? n : t;
2055
2116
  };
2056
2117
  }
2057
- function vi(e, t) {
2058
- return S(ot, e) ? ot[e](t._strict, t._locale) : new RegExp(wi(e));
2118
+ function pi(e, t) {
2119
+ return S(ot, e) ? ot[e](t._strict, t._locale) : new RegExp(yi(e));
2059
2120
  }
2060
- function wi(e) {
2121
+ function yi(e) {
2061
2122
  return re(
2062
2123
  e.replace("\\", "").replace(
2063
2124
  /\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,
@@ -2077,26 +2138,26 @@ function v(e) {
2077
2138
  var t = +e, n = 0;
2078
2139
  return t !== 0 && isFinite(t) && (n = $(t)), n;
2079
2140
  }
2080
- var It = {};
2141
+ var At = {};
2081
2142
  function k(e, t) {
2082
2143
  var n, s = t, i;
2083
2144
  for (typeof e == "string" && (e = [e]), oe(t) && (s = function(r, a) {
2084
2145
  a[t] = v(r);
2085
2146
  }), i = e.length, n = 0; n < i; n++)
2086
- It[e[n]] = s;
2147
+ At[e[n]] = s;
2087
2148
  }
2088
2149
  function Ke(e, t) {
2089
2150
  k(e, function(n, s, i, r) {
2090
2151
  i._w = i._w || {}, t(n, i._w, i, r);
2091
2152
  });
2092
2153
  }
2093
- function Si(e, t, n) {
2094
- t != null && S(It, e) && It[e](t, n._a, n, e);
2154
+ function _i(e, t, n) {
2155
+ t != null && S(At, e) && At[e](t, n._a, n, e);
2095
2156
  }
2096
2157
  function vt(e) {
2097
2158
  return e % 4 === 0 && e % 100 !== 0 || e % 400 === 0;
2098
2159
  }
2099
- var P = 0, se = 1, J = 2, R = 3, z = 4, ie = 5, pe = 6, bi = 7, xi = 8;
2160
+ var T = 0, se = 1, J = 2, R = 3, z = 4, ie = 5, pe = 6, vi = 7, wi = 8;
2100
2161
  p("Y", 0, 0, function() {
2101
2162
  var e = this.year();
2102
2163
  return e <= 9999 ? Q(e, 4) : "+" + e;
@@ -2109,32 +2170,32 @@ p(0, ["YYYYY", 5], 0, "year");
2109
2170
  p(0, ["YYYYYY", 6, !0], 0, "year");
2110
2171
  m("Y", yt);
2111
2172
  m("YY", M, H);
2112
- m("YYYY", qt, Bt);
2173
+ m("YYYY", Bt, Kt);
2113
2174
  m("YYYYY", pt, gt);
2114
2175
  m("YYYYYY", pt, gt);
2115
- k(["YYYYY", "YYYYYY"], P);
2176
+ k(["YYYYY", "YYYYYY"], T);
2116
2177
  k("YYYY", function(e, t) {
2117
- t[P] = e.length === 2 ? g.parseTwoDigitYear(e) : v(e);
2178
+ t[T] = e.length === 2 ? g.parseTwoDigitYear(e) : v(e);
2118
2179
  });
2119
2180
  k("YY", function(e, t) {
2120
- t[P] = g.parseTwoDigitYear(e);
2181
+ t[T] = g.parseTwoDigitYear(e);
2121
2182
  });
2122
2183
  k("Y", function(e, t) {
2123
- t[P] = parseInt(e, 10);
2184
+ t[T] = parseInt(e, 10);
2124
2185
  });
2125
- function Ie(e) {
2186
+ function je(e) {
2126
2187
  return vt(e) ? 366 : 365;
2127
2188
  }
2128
2189
  g.parseTwoDigitYear = function(e) {
2129
2190
  return v(e) + (v(e) > 68 ? 1900 : 2e3);
2130
2191
  };
2131
- var Vn = Ne("FullYear", !0);
2132
- function ki() {
2192
+ var Un = Ne("FullYear", !0);
2193
+ function Si() {
2133
2194
  return vt(this.year());
2134
2195
  }
2135
2196
  function Ne(e, t) {
2136
2197
  return function(n) {
2137
- return n != null ? (Wn(this, e, n), g.updateOffset(this, t), this) : Ue(this, e);
2198
+ return n != null ? (Hn(this, e, n), g.updateOffset(this, t), this) : Ue(this, e);
2138
2199
  };
2139
2200
  }
2140
2201
  function Ue(e, t) {
@@ -2162,7 +2223,7 @@ function Ue(e, t) {
2162
2223
  return NaN;
2163
2224
  }
2164
2225
  }
2165
- function Wn(e, t, n) {
2226
+ function Hn(e, t, n) {
2166
2227
  var s, i, r, a, o;
2167
2228
  if (!(!e.isValid() || isNaN(n))) {
2168
2229
  switch (s = e._d, i = e._isUTC, t) {
@@ -2184,20 +2245,20 @@ function Wn(e, t, n) {
2184
2245
  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
2246
  }
2186
2247
  }
2187
- function Oi(e) {
2188
- return e = W(e), ee(this[e]) ? this[e]() : this;
2248
+ function bi(e) {
2249
+ return e = V(e), ee(this[e]) ? this[e]() : this;
2189
2250
  }
2190
- function Mi(e, t) {
2251
+ function xi(e, t) {
2191
2252
  if (typeof e == "object") {
2192
- e = Kt(e);
2193
- var n = pi(e), s, i = n.length;
2253
+ e = zt(e);
2254
+ var n = fi(e), s, i = n.length;
2194
2255
  for (s = 0; s < i; s++)
2195
2256
  this[n[s].unit](e[n[s].unit]);
2196
- } else if (e = W(e), ee(this[e]))
2257
+ } else if (e = V(e), ee(this[e]))
2197
2258
  return this[e](t);
2198
2259
  return this;
2199
2260
  }
2200
- function Di(e, t) {
2261
+ function ki(e, t) {
2201
2262
  return (e % t + t) % t;
2202
2263
  }
2203
2264
  var L;
@@ -2208,10 +2269,10 @@ Array.prototype.indexOf ? L = Array.prototype.indexOf : L = function(e) {
2208
2269
  return t;
2209
2270
  return -1;
2210
2271
  };
2211
- function Zt(e, t) {
2272
+ function Jt(e, t) {
2212
2273
  if (isNaN(e) || isNaN(t))
2213
2274
  return NaN;
2214
- var n = Di(t, 12);
2275
+ var n = ki(t, 12);
2215
2276
  return e += (t - n) / 12, n === 1 ? vt(e) ? 29 : 28 : 31 - n % 7 % 2;
2216
2277
  }
2217
2278
  p("M", ["MM", 2], "Mo", function() {
@@ -2238,16 +2299,16 @@ k(["MMM", "MMMM"], function(e, t, n, s) {
2238
2299
  var i = n._locale.monthsParse(e, s, n._strict);
2239
2300
  i != null ? t[se] = i : _(n).invalidMonth = e;
2240
2301
  });
2241
- var Yi = "January_February_March_April_May_June_July_August_September_October_November_December".split(
2302
+ var Oi = "January_February_March_April_May_June_July_August_September_October_November_December".split(
2242
2303
  "_"
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;
2304
+ ), $n = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), Wn = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, Mi = ze, Di = ze;
2305
+ function Yi(e, t) {
2306
+ return e ? K(this._months) ? this._months[e.month()] : this._months[(this._months.isFormat || Wn).test(t) ? "format" : "standalone"][e.month()] : K(this._months) ? this._months : this._months.standalone;
2246
2307
  }
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;
2308
+ function Ni(e, t) {
2309
+ return e ? K(this._monthsShort) ? this._monthsShort[e.month()] : this._monthsShort[Wn.test(t) ? "format" : "standalone"][e.month()] : K(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone;
2249
2310
  }
2250
- function Pi(e, t, n) {
2311
+ function Ci(e, t, n) {
2251
2312
  var s, i, r, a = e.toLocaleLowerCase();
2252
2313
  if (!this._monthsParse)
2253
2314
  for (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = [], s = 0; s < 12; ++s)
@@ -2257,10 +2318,10 @@ function Pi(e, t, n) {
2257
2318
  ).toLocaleLowerCase(), this._longMonthsParse[s] = this.months(r, "").toLocaleLowerCase();
2258
2319
  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
2320
  }
2260
- function Ti(e, t, n) {
2321
+ function Li(e, t, n) {
2261
2322
  var s, i, r;
2262
2323
  if (this._monthsParseExact)
2263
- return Pi.call(this, e, t, n);
2324
+ return Ci.call(this, e, t, n);
2264
2325
  for (this._monthsParse || (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = []), s = 0; s < 12; s++)
2265
2326
  if (i = X([2e3, s]), n && !this._longMonthsParse[s] && (this._longMonthsParse[s] = new RegExp(
2266
2327
  "^" + this.months(i, "").replace(".", "") + "$",
@@ -2271,7 +2332,7 @@ function Ti(e, t, n) {
2271
2332
  )), !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
2333
  return s;
2273
2334
  }
2274
- function Kn(e, t) {
2335
+ function Vn(e, t) {
2275
2336
  if (!e.isValid())
2276
2337
  return e;
2277
2338
  if (typeof t == "string") {
@@ -2281,21 +2342,21 @@ function Kn(e, t) {
2281
2342
  return e;
2282
2343
  }
2283
2344
  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;
2345
+ return s = s < 29 ? s : Math.min(s, Jt(e.year(), n)), e._isUTC ? e._d.setUTCMonth(n, s) : e._d.setMonth(n, s), e;
2285
2346
  }
2286
- function Bn(e) {
2287
- return e != null ? (Kn(this, e), g.updateOffset(this, !0), this) : Ue(this, "Month");
2347
+ function Gn(e) {
2348
+ return e != null ? (Vn(this, e), g.updateOffset(this, !0), this) : Ue(this, "Month");
2288
2349
  }
2289
- function Ei() {
2290
- return Zt(this.year(), this.month());
2350
+ function Ri() {
2351
+ return Jt(this.year(), this.month());
2291
2352
  }
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);
2353
+ function Pi(e) {
2354
+ return this._monthsParseExact ? (S(this, "_monthsRegex") || zn.call(this), e ? this._monthsShortStrictRegex : this._monthsShortRegex) : (S(this, "_monthsShortRegex") || (this._monthsShortRegex = Mi), this._monthsShortStrictRegex && e ? this._monthsShortStrictRegex : this._monthsShortRegex);
2294
2355
  }
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);
2356
+ function Ti(e) {
2357
+ return this._monthsParseExact ? (S(this, "_monthsRegex") || zn.call(this), e ? this._monthsStrictRegex : this._monthsRegex) : (S(this, "_monthsRegex") || (this._monthsRegex = Di), this._monthsStrictRegex && e ? this._monthsStrictRegex : this._monthsRegex);
2297
2358
  }
2298
- function qn() {
2359
+ function zn() {
2299
2360
  function e(u, l) {
2300
2361
  return l.length - u.length;
2301
2362
  }
@@ -2310,7 +2371,7 @@ function qn() {
2310
2371
  "i"
2311
2372
  );
2312
2373
  }
2313
- function Ii(e, t, n, s, i, r, a) {
2374
+ function Ei(e, t, n, s, i, r, a) {
2314
2375
  var o;
2315
2376
  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
2377
  }
@@ -2322,9 +2383,9 @@ function ut(e, t, n) {
2322
2383
  var s = 7 + t - n, i = (7 + He(e, 0, s).getUTCDay() - t) % 7;
2323
2384
  return -i + s - 1;
2324
2385
  }
2325
- function Jn(e, t, n, s, i) {
2386
+ function Kn(e, t, n, s, i) {
2326
2387
  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), {
2388
+ return o <= 0 ? (u = e - 1, l = je(u) + o) : o > je(e) ? (u = e + 1, l = o - je(e)) : (u = e, l = o), {
2328
2389
  year: u,
2329
2390
  dayOfYear: l
2330
2391
  };
@@ -2338,7 +2399,7 @@ function $e(e, t, n) {
2338
2399
  }
2339
2400
  function ae(e, t, n) {
2340
2401
  var s = ut(e, t, n), i = ut(e + 1, t, n);
2341
- return (Ie(e) - s + i) / 7;
2402
+ return (je(e) - s + i) / 7;
2342
2403
  }
2343
2404
  p("w", ["ww", 2], "wo", "week");
2344
2405
  p("W", ["WW", 2], "Wo", "isoWeek");
@@ -2352,26 +2413,26 @@ Ke(
2352
2413
  t[s.substr(0, 1)] = v(e);
2353
2414
  }
2354
2415
  );
2355
- function ji(e) {
2416
+ function Fi(e) {
2356
2417
  return $e(e, this._week.dow, this._week.doy).week;
2357
2418
  }
2358
- var Ui = {
2419
+ var Ai = {
2359
2420
  dow: 0,
2360
2421
  // Sunday is the first day of the week.
2361
2422
  doy: 6
2362
2423
  // The week that contains Jan 6th is the first week of the year.
2363
2424
  };
2364
- function Hi() {
2425
+ function ji() {
2365
2426
  return this._week.dow;
2366
2427
  }
2367
- function $i() {
2428
+ function Ii() {
2368
2429
  return this._week.doy;
2369
2430
  }
2370
- function Vi(e) {
2431
+ function Ui(e) {
2371
2432
  var t = this.localeData().week(this);
2372
2433
  return e == null ? t : this.add((e - t) * 7, "d");
2373
2434
  }
2374
- function Wi(e) {
2435
+ function Hi(e) {
2375
2436
  var t = $e(this, 1, 4).week;
2376
2437
  return e == null ? t : this.add((e - t) * 7, "d");
2377
2438
  }
@@ -2406,27 +2467,27 @@ Ke(["dd", "ddd", "dddd"], function(e, t, n, s) {
2406
2467
  Ke(["d", "e", "E"], function(e, t, n, s) {
2407
2468
  t[s] = v(e);
2408
2469
  });
2409
- function Gi(e, t) {
2470
+ function $i(e, t) {
2410
2471
  return typeof e != "string" ? e : isNaN(e) ? (e = t.weekdaysParse(e), typeof e == "number" ? e : null) : parseInt(e, 10);
2411
2472
  }
2412
- function zi(e, t) {
2473
+ function Wi(e, t) {
2413
2474
  return typeof e == "string" ? t.weekdaysParse(e) % 7 || 7 : isNaN(e) ? null : e;
2414
2475
  }
2415
- function Qt(e, t) {
2476
+ function Zt(e, t) {
2416
2477
  return e.slice(t, 7).concat(e.slice(0, t));
2417
2478
  }
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) {
2479
+ var Vi = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), Bn = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), Gi = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), zi = ze, Ki = ze, Bi = ze;
2480
+ function qi(e, t) {
2420
2481
  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;
2482
+ return e === !0 ? Zt(n, this._week.dow) : e ? n[e.day()] : n;
2422
2483
  }
2423
- function Xi(e) {
2424
- return e === !0 ? Qt(this._weekdaysShort, this._week.dow) : e ? this._weekdaysShort[e.day()] : this._weekdaysShort;
2484
+ function Ji(e) {
2485
+ return e === !0 ? Zt(this._weekdaysShort, this._week.dow) : e ? this._weekdaysShort[e.day()] : this._weekdaysShort;
2425
2486
  }
2426
- function er(e) {
2427
- return e === !0 ? Qt(this._weekdaysMin, this._week.dow) : e ? this._weekdaysMin[e.day()] : this._weekdaysMin;
2487
+ function Zi(e) {
2488
+ return e === !0 ? Zt(this._weekdaysMin, this._week.dow) : e ? this._weekdaysMin[e.day()] : this._weekdaysMin;
2428
2489
  }
2429
- function tr(e, t, n) {
2490
+ function Qi(e, t, n) {
2430
2491
  var s, i, r, a = e.toLocaleLowerCase();
2431
2492
  if (!this._weekdaysParse)
2432
2493
  for (this._weekdaysParse = [], this._shortWeekdaysParse = [], this._minWeekdaysParse = [], s = 0; s < 7; ++s)
@@ -2439,10 +2500,10 @@ function tr(e, t, n) {
2439
2500
  ).toLocaleLowerCase(), this._weekdaysParse[s] = this.weekdays(r, "").toLocaleLowerCase();
2440
2501
  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
2502
  }
2442
- function nr(e, t, n) {
2503
+ function Xi(e, t, n) {
2443
2504
  var s, i, r;
2444
2505
  if (this._weekdaysParseExact)
2445
- return tr.call(this, e, t, n);
2506
+ return Qi.call(this, e, t, n);
2446
2507
  for (this._weekdaysParse || (this._weekdaysParse = [], this._minWeekdaysParse = [], this._shortWeekdaysParse = [], this._fullWeekdaysParse = []), s = 0; s < 7; s++)
2447
2508
  if (i = X([2e3, 1]).day(s), n && !this._fullWeekdaysParse[s] && (this._fullWeekdaysParse[s] = new RegExp(
2448
2509
  "^" + this.weekdays(i, "").replace(".", "\\.?") + "$",
@@ -2456,37 +2517,37 @@ function nr(e, t, n) {
2456
2517
  )), 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
2518
  return s;
2458
2519
  }
2459
- function sr(e) {
2520
+ function er(e) {
2460
2521
  if (!this.isValid())
2461
2522
  return e != null ? this : NaN;
2462
2523
  var t = Ue(this, "Day");
2463
- return e != null ? (e = Gi(e, this.localeData()), this.add(e - t, "d")) : t;
2524
+ return e != null ? (e = $i(e, this.localeData()), this.add(e - t, "d")) : t;
2464
2525
  }
2465
- function ir(e) {
2526
+ function tr(e) {
2466
2527
  if (!this.isValid())
2467
2528
  return e != null ? this : NaN;
2468
2529
  var t = (this.day() + 7 - this.localeData()._week.dow) % 7;
2469
2530
  return e == null ? t : this.add(e - t, "d");
2470
2531
  }
2471
- function rr(e) {
2532
+ function nr(e) {
2472
2533
  if (!this.isValid())
2473
2534
  return e != null ? this : NaN;
2474
2535
  if (e != null) {
2475
- var t = zi(e, this.localeData());
2536
+ var t = Wi(e, this.localeData());
2476
2537
  return this.day(this.day() % 7 ? t : t - 7);
2477
2538
  } else
2478
2539
  return this.day() || 7;
2479
2540
  }
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);
2541
+ function sr(e) {
2542
+ return this._weekdaysParseExact ? (S(this, "_weekdaysRegex") || Qt.call(this), e ? this._weekdaysStrictRegex : this._weekdaysRegex) : (S(this, "_weekdaysRegex") || (this._weekdaysRegex = zi), this._weekdaysStrictRegex && e ? this._weekdaysStrictRegex : this._weekdaysRegex);
2482
2543
  }
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);
2544
+ function ir(e) {
2545
+ return this._weekdaysParseExact ? (S(this, "_weekdaysRegex") || Qt.call(this), e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex) : (S(this, "_weekdaysShortRegex") || (this._weekdaysShortRegex = Ki), this._weekdaysShortStrictRegex && e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex);
2485
2546
  }
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);
2547
+ function rr(e) {
2548
+ return this._weekdaysParseExact ? (S(this, "_weekdaysRegex") || Qt.call(this), e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) : (S(this, "_weekdaysMinRegex") || (this._weekdaysMinRegex = Bi), this._weekdaysMinStrictRegex && e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex);
2488
2549
  }
2489
- function Xt() {
2550
+ function Qt() {
2490
2551
  function e(h, f) {
2491
2552
  return f.length - h.length;
2492
2553
  }
@@ -2504,20 +2565,20 @@ function Xt() {
2504
2565
  "i"
2505
2566
  );
2506
2567
  }
2507
- function en() {
2568
+ function Xt() {
2508
2569
  return this.hours() % 12 || 12;
2509
2570
  }
2510
- function lr() {
2571
+ function ar() {
2511
2572
  return this.hours() || 24;
2512
2573
  }
2513
2574
  p("H", ["HH", 2], 0, "hour");
2514
- p("h", ["hh", 2], 0, en);
2515
- p("k", ["kk", 2], 0, lr);
2575
+ p("h", ["hh", 2], 0, Xt);
2576
+ p("k", ["kk", 2], 0, ar);
2516
2577
  p("hmm", 0, 0, function() {
2517
- return "" + en.apply(this) + Q(this.minutes(), 2);
2578
+ return "" + Xt.apply(this) + Q(this.minutes(), 2);
2518
2579
  });
2519
2580
  p("hmmss", 0, 0, function() {
2520
- return "" + en.apply(this) + Q(this.minutes(), 2) + Q(this.seconds(), 2);
2581
+ return "" + Xt.apply(this) + Q(this.minutes(), 2) + Q(this.seconds(), 2);
2521
2582
  });
2522
2583
  p("Hmm", 0, 0, function() {
2523
2584
  return "" + this.hours() + Q(this.minutes(), 2);
@@ -2525,7 +2586,7 @@ p("Hmm", 0, 0, function() {
2525
2586
  p("Hmmss", 0, 0, function() {
2526
2587
  return "" + this.hours() + Q(this.minutes(), 2) + Q(this.seconds(), 2);
2527
2588
  });
2528
- function Qn(e, t) {
2589
+ function qn(e, t) {
2529
2590
  p(e, 0, 0, function() {
2530
2591
  return this.localeData().meridiem(
2531
2592
  this.hours(),
@@ -2534,23 +2595,23 @@ function Qn(e, t) {
2534
2595
  );
2535
2596
  });
2536
2597
  }
2537
- Qn("a", !0);
2538
- Qn("A", !1);
2539
- function Xn(e, t) {
2598
+ qn("a", !0);
2599
+ qn("A", !1);
2600
+ function Jn(e, t) {
2540
2601
  return t._meridiemParse;
2541
2602
  }
2542
- m("a", Xn);
2543
- m("A", Xn);
2544
- m("H", M, Jt);
2603
+ m("a", Jn);
2604
+ m("A", Jn);
2605
+ m("H", M, qt);
2545
2606
  m("h", M, Ye);
2546
2607
  m("k", M, Ye);
2547
2608
  m("HH", M, H);
2548
2609
  m("hh", M, H);
2549
2610
  m("kk", M, H);
2550
- m("hmm", Hn);
2551
- m("hmmss", $n);
2552
- m("Hmm", Hn);
2553
- m("Hmmss", $n);
2611
+ m("hmm", jn);
2612
+ m("hmmss", In);
2613
+ m("Hmm", jn);
2614
+ m("Hmmss", In);
2554
2615
  k(["H", "HH"], R);
2555
2616
  k(["k", "kk"], function(e, t, n) {
2556
2617
  var s = v(e);
@@ -2578,59 +2639,59 @@ k("Hmmss", function(e, t, n) {
2578
2639
  var s = e.length - 4, i = e.length - 2;
2579
2640
  t[R] = v(e.substr(0, s)), t[z] = v(e.substr(s, 2)), t[ie] = v(e.substr(i));
2580
2641
  });
2581
- function dr(e) {
2642
+ function or(e) {
2582
2643
  return (e + "").toLowerCase().charAt(0) === "p";
2583
2644
  }
2584
- var hr = /[ap]\.?m?\.?/i, cr = Ne("Hours", !0);
2585
- function fr(e, t, n) {
2645
+ var ur = /[ap]\.?m?\.?/i, lr = Ne("Hours", !0);
2646
+ function dr(e, t, n) {
2586
2647
  return e > 11 ? n ? "pm" : "PM" : n ? "am" : "AM";
2587
2648
  }
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) {
2649
+ var Zn = {
2650
+ calendar: Qs,
2651
+ longDateFormat: ni,
2652
+ invalidDate: ii,
2653
+ ordinal: ai,
2654
+ dayOfMonthOrdinalParse: oi,
2655
+ relativeTime: li,
2656
+ months: Oi,
2657
+ monthsShort: $n,
2658
+ week: Ai,
2659
+ weekdays: Vi,
2660
+ weekdaysMin: Gi,
2661
+ weekdaysShort: Bn,
2662
+ meridiemParse: ur
2663
+ }, Y = {}, Ee = {}, We;
2664
+ function hr(e, t) {
2604
2665
  var n, s = Math.min(e.length, t.length);
2605
2666
  for (n = 0; n < s; n += 1)
2606
2667
  if (e[n] !== t[n])
2607
2668
  return n;
2608
2669
  return s;
2609
2670
  }
2610
- function Yn(e) {
2671
+ function On(e) {
2611
2672
  return e && e.toLowerCase().replace("_", "-");
2612
2673
  }
2613
- function mr(e) {
2674
+ function cr(e) {
2614
2675
  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; ) {
2676
+ for (r = On(e[t]).split("-"), n = r.length, s = On(e[t + 1]), s = s ? s.split("-") : null; n > 0; ) {
2616
2677
  if (i = wt(r.slice(0, n).join("-")), i)
2617
2678
  return i;
2618
- if (s && s.length >= n && gr(r, s) >= n - 1)
2679
+ if (s && s.length >= n && hr(r, s) >= n - 1)
2619
2680
  break;
2620
2681
  n--;
2621
2682
  }
2622
2683
  t++;
2623
2684
  }
2624
- return Ve;
2685
+ return We;
2625
2686
  }
2626
- function pr(e) {
2687
+ function fr(e) {
2627
2688
  return !!(e && e.match("^[^/\\\\]*$"));
2628
2689
  }
2629
2690
  function wt(e) {
2630
2691
  var t = null, n;
2631
- if (Y[e] === void 0 && typeof module < "u" && module && module.exports && pr(e))
2692
+ if (Y[e] === void 0 && typeof module < "u" && module && module.exports && fr(e))
2632
2693
  try {
2633
- t = Ve._abbr, n = require, n("./locale/" + e), ce(t);
2694
+ t = We._abbr, n = require, n("./locale/" + e), ce(t);
2634
2695
  } catch {
2635
2696
  Y[e] = null;
2636
2697
  }
@@ -2638,15 +2699,15 @@ function wt(e) {
2638
2699
  }
2639
2700
  function ce(e, t) {
2640
2701
  var n;
2641
- return e && (A(t) ? n = ue(e) : n = tn(e, t), n ? Ve = n : typeof console < "u" && console.warn && console.warn(
2702
+ return e && (j(t) ? n = ue(e) : n = en(e, t), n ? We = n : typeof console < "u" && console.warn && console.warn(
2642
2703
  "Locale " + e + " not found. Did you forget to load it?"
2643
- )), Ve._abbr;
2704
+ )), We._abbr;
2644
2705
  }
2645
- function tn(e, t) {
2706
+ function en(e, t) {
2646
2707
  if (t !== null) {
2647
- var n, s = es;
2708
+ var n, s = Zn;
2648
2709
  if (t.abbr = e, Y[e] != null)
2649
- An(
2710
+ Tn(
2650
2711
  "defineLocaleOverride",
2651
2712
  "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
2713
  ), s = Y[e]._config;
@@ -2660,16 +2721,16 @@ function tn(e, t) {
2660
2721
  name: e,
2661
2722
  config: t
2662
2723
  }), null;
2663
- return Y[e] = new Gt(Ft(s, t)), Ee[e] && Ee[e].forEach(function(i) {
2664
- tn(i.name, i.config);
2724
+ return Y[e] = new Vt(Et(s, t)), Ee[e] && Ee[e].forEach(function(i) {
2725
+ en(i.name, i.config);
2665
2726
  }), ce(e), Y[e];
2666
2727
  } else
2667
2728
  return delete Y[e], null;
2668
2729
  }
2669
- function yr(e, t) {
2730
+ function gr(e, t) {
2670
2731
  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);
2732
+ var n, s, i = Zn;
2733
+ Y[e] != null && Y[e].parentLocale != null ? Y[e].set(Et(Y[e]._config, t)) : (s = wt(e), s != null && (i = s._config), t = Et(i, t), s == null && (t.abbr = e), n = new Vt(t), n.parentLocale = Y[e], Y[e] = n), ce(e);
2673
2734
  } else
2674
2735
  Y[e] != null && (Y[e].parentLocale != null ? (Y[e] = Y[e].parentLocale, e === ce() && ce(e)) : Y[e] != null && delete Y[e]);
2675
2736
  return Y[e];
@@ -2677,22 +2738,22 @@ function yr(e, t) {
2677
2738
  function ue(e) {
2678
2739
  var t;
2679
2740
  if (e && e._locale && e._locale._abbr && (e = e._locale._abbr), !e)
2680
- return Ve;
2741
+ return We;
2681
2742
  if (!K(e)) {
2682
2743
  if (t = wt(e), t)
2683
2744
  return t;
2684
2745
  e = [e];
2685
2746
  }
2686
- return mr(e);
2747
+ return cr(e);
2687
2748
  }
2688
- function _r() {
2689
- return At(Y);
2749
+ function mr() {
2750
+ return Ft(Y);
2690
2751
  }
2691
- function nn(e) {
2752
+ function tn(e) {
2692
2753
  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;
2754
+ return n && _(e).overflow === -2 && (t = n[se] < 0 || n[se] > 11 ? se : n[J] < 1 || n[J] > Jt(n[T], 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 < T || t > J) && (t = J), _(e)._overflowWeeks && t === -1 && (t = vi), _(e)._overflowWeekday && t === -1 && (t = wi), _(e).overflow = t), e;
2694
2755
  }
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 = [
2756
+ var pr = /^\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)?)?$/, yr = /^\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)?)?$/, _r = /Z|[+-]\d\d(?::?\d\d)?/, Xe = [
2696
2757
  ["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
2697
2758
  ["YYYY-MM-DD", /\d{4}-\d\d-\d\d/],
2698
2759
  ["GGGG-[W]WW-E", /\d{4}-W\d\d-\d/],
@@ -2706,7 +2767,7 @@ var vr = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(
2706
2767
  ["YYYYDDD", /\d{7}/],
2707
2768
  ["YYYYMM", /\d{6}/, !1],
2708
2769
  ["YYYY", /\d{4}/, !1]
2709
- ], Lt = [
2770
+ ], Ct = [
2710
2771
  ["HH:mm:ss.SSSS", /\d\d:\d\d:\d\d\.\d+/],
2711
2772
  ["HH:mm:ss,SSSS", /\d\d:\d\d:\d\d,\d+/],
2712
2773
  ["HH:mm:ss", /\d\d:\d\d:\d\d/],
@@ -2716,7 +2777,7 @@ var vr = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(
2716
2777
  ["HHmmss", /\d\d\d\d\d\d/],
2717
2778
  ["HHmm", /\d\d\d\d/],
2718
2779
  ["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 = {
2780
+ ], vr = /^\/?Date\((-?\d+)/i, wr = /^(?:(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}))$/, Sr = {
2720
2781
  UT: 0,
2721
2782
  GMT: 0,
2722
2783
  EDT: -4 * 60,
@@ -2728,8 +2789,8 @@ var vr = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(
2728
2789
  PDT: -7 * 60,
2729
2790
  PST: -8 * 60
2730
2791
  };
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;
2792
+ function Qn(e) {
2793
+ var t, n, s = e._i, i = pr.exec(s) || yr.exec(s), r, a, o, u, l = Xe.length, h = Ct.length;
2733
2794
  if (i) {
2734
2795
  for (_(e).iso = !0, t = 0, n = l; t < n; t++)
2735
2796
  if (Xe[t][1].exec(i[1])) {
@@ -2742,8 +2803,8 @@ function ts(e) {
2742
2803
  }
2743
2804
  if (i[3]) {
2744
2805
  for (t = 0, n = h; t < n; t++)
2745
- if (Lt[t][1].exec(i[3])) {
2746
- o = (i[2] || " ") + Lt[t][0];
2806
+ if (Ct[t][1].exec(i[3])) {
2807
+ o = (i[2] || " ") + Ct[t][0];
2747
2808
  break;
2748
2809
  }
2749
2810
  if (o == null) {
@@ -2756,36 +2817,36 @@ function ts(e) {
2756
2817
  return;
2757
2818
  }
2758
2819
  if (i[4])
2759
- if (Sr.exec(i[4]))
2820
+ if (_r.exec(i[4]))
2760
2821
  u = "Z";
2761
2822
  else {
2762
2823
  e._isValid = !1;
2763
2824
  return;
2764
2825
  }
2765
- e._f = a + (o || "") + (u || ""), rn(e);
2826
+ e._f = a + (o || "") + (u || ""), sn(e);
2766
2827
  } else
2767
2828
  e._isValid = !1;
2768
2829
  }
2769
- function Or(e, t, n, s, i, r) {
2830
+ function br(e, t, n, s, i, r) {
2770
2831
  var a = [
2771
- Mr(e),
2772
- Gn.indexOf(t),
2832
+ xr(e),
2833
+ $n.indexOf(t),
2773
2834
  parseInt(n, 10),
2774
2835
  parseInt(s, 10),
2775
2836
  parseInt(i, 10)
2776
2837
  ];
2777
2838
  return r && a.push(parseInt(r, 10)), a;
2778
2839
  }
2779
- function Mr(e) {
2840
+ function xr(e) {
2780
2841
  var t = parseInt(e, 10);
2781
2842
  return t <= 49 ? 2e3 + t : t <= 999 ? 1900 + t : t;
2782
2843
  }
2783
- function Dr(e) {
2844
+ function kr(e) {
2784
2845
  return e.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").replace(/^\s\s*/, "").replace(/\s\s*$/, "");
2785
2846
  }
2786
- function Yr(e, t, n) {
2847
+ function Or(e, t, n) {
2787
2848
  if (e) {
2788
- var s = Zn.indexOf(e), i = new Date(
2849
+ var s = Bn.indexOf(e), i = new Date(
2789
2850
  t[0],
2790
2851
  t[1],
2791
2852
  t[2]
@@ -2795,47 +2856,47 @@ function Yr(e, t, n) {
2795
2856
  }
2796
2857
  return !0;
2797
2858
  }
2798
- function Nr(e, t, n) {
2859
+ function Mr(e, t, n) {
2799
2860
  if (e)
2800
- return kr[e];
2861
+ return Sr[e];
2801
2862
  if (t)
2802
2863
  return 0;
2803
2864
  var s = parseInt(n, 10), i = s % 100, r = (s - i) / 100;
2804
2865
  return r * 60 + i;
2805
2866
  }
2806
- function ns(e) {
2807
- var t = xr.exec(Dr(e._i)), n;
2867
+ function Xn(e) {
2868
+ var t = wr.exec(kr(e._i)), n;
2808
2869
  if (t) {
2809
- if (n = Or(
2870
+ if (n = br(
2810
2871
  t[4],
2811
2872
  t[3],
2812
2873
  t[2],
2813
2874
  t[5],
2814
2875
  t[6],
2815
2876
  t[7]
2816
- ), !Yr(t[1], n, e))
2877
+ ), !Or(t[1], n, e))
2817
2878
  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;
2879
+ e._a = n, e._tzm = Mr(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
2880
  } else
2820
2881
  e._isValid = !1;
2821
2882
  }
2822
- function Cr(e) {
2823
- var t = br.exec(e._i);
2883
+ function Dr(e) {
2884
+ var t = vr.exec(e._i);
2824
2885
  if (t !== null) {
2825
2886
  e._d = /* @__PURE__ */ new Date(+t[1]);
2826
2887
  return;
2827
2888
  }
2828
- if (ts(e), e._isValid === !1)
2889
+ if (Qn(e), e._isValid === !1)
2829
2890
  delete e._isValid;
2830
2891
  else
2831
2892
  return;
2832
- if (ns(e), e._isValid === !1)
2893
+ if (Xn(e), e._isValid === !1)
2833
2894
  delete e._isValid;
2834
2895
  else
2835
2896
  return;
2836
2897
  e._strict ? e._isValid = !1 : g.createFromInputFallback(e);
2837
2898
  }
2838
- g.createFromInputFallback = V(
2899
+ g.createFromInputFallback = W(
2839
2900
  "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
2901
  function(e) {
2841
2902
  e._d = /* @__PURE__ */ new Date(e._i + (e._useUTC ? " UTC" : ""));
@@ -2844,7 +2905,7 @@ g.createFromInputFallback = V(
2844
2905
  function be(e, t, n) {
2845
2906
  return e ?? t ?? n;
2846
2907
  }
2847
- function Lr(e) {
2908
+ function Yr(e) {
2848
2909
  var t = new Date(g.now());
2849
2910
  return e._useUTC ? [
2850
2911
  t.getUTCFullYear(),
@@ -2852,112 +2913,112 @@ function Lr(e) {
2852
2913
  t.getUTCDate()
2853
2914
  ] : [t.getFullYear(), t.getMonth(), t.getDate()];
2854
2915
  }
2855
- function sn(e) {
2916
+ function nn(e) {
2856
2917
  var t, n, s = [], i, r, a;
2857
2918
  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)
2919
+ for (i = Yr(e), e._w && e._a[J] == null && e._a[se] == null && Nr(e), e._dayOfYear != null && (a = be(e._a[T], i[T]), (e._dayOfYear > je(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
2920
  e._a[t] = s[t] = i[t];
2860
2921
  for (; t < 7; t++)
2861
2922
  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(
2923
+ 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 : Ei).apply(
2863
2924
  null,
2864
2925
  s
2865
2926
  ), 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
2927
  }
2867
2928
  }
2868
- function Rr(e) {
2929
+ function Nr(e) {
2869
2930
  var t, n, s, i, r, a, o, u, l;
2870
2931
  t = e._w, t.GG != null || t.W != null || t.E != null ? (r = 1, a = 4, n = be(
2871
2932
  t.GG,
2872
- e._a[P],
2933
+ e._a[T],
2873
2934
  $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);
2935
+ ), 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[T], 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 = Kn(n, s, i, r, a), e._a[T] = o.year, e._dayOfYear = o.dayOfYear);
2875
2936
  }
2876
2937
  g.ISO_8601 = function() {
2877
2938
  };
2878
2939
  g.RFC_2822 = function() {
2879
2940
  };
2880
- function rn(e) {
2941
+ function sn(e) {
2881
2942
  if (e._f === g.ISO_8601) {
2882
- ts(e);
2943
+ Qn(e);
2883
2944
  return;
2884
2945
  }
2885
2946
  if (e._f === g.RFC_2822) {
2886
- ns(e);
2947
+ Xn(e);
2887
2948
  return;
2888
2949
  }
2889
2950
  e._a = [], _(e).empty = !0;
2890
2951
  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(
2952
+ for (i = En(e._f, e._locale).match(Gt) || [], h = i.length, n = 0; n < h; n++)
2953
+ r = i[n], s = (t.match(pi(r, e)) || [])[0], s && (a = t.substr(0, t.indexOf(s)), a.length > 0 && _(e).unusedInput.push(a), t = t.slice(
2893
2954
  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(
2955
+ ), u += s.length), ke[r] ? (s ? _(e).empty = !1 : _(e).unusedTokens.push(r), _i(r, s, e)) : e._strict && !s && _(e).unusedTokens.push(r);
2956
+ _(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] = Cr(
2896
2957
  e._locale,
2897
2958
  e._a[R],
2898
2959
  e._meridiem
2899
- ), l = _(e).era, l !== null && (e._a[P] = e._locale.erasConvertYear(l, e._a[P])), sn(e), nn(e);
2960
+ ), l = _(e).era, l !== null && (e._a[T] = e._locale.erasConvertYear(l, e._a[T])), nn(e), tn(e);
2900
2961
  }
2901
- function Pr(e, t, n) {
2962
+ function Cr(e, t, n) {
2902
2963
  var s;
2903
2964
  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
2965
  }
2905
- function Tr(e) {
2966
+ function Lr(e) {
2906
2967
  var t, n, s, i, r, a, o = !1, u = e._f.length;
2907
2968
  if (u === 0) {
2908
2969
  _(e).invalidFormat = !0, e._d = /* @__PURE__ */ new Date(NaN);
2909
2970
  return;
2910
2971
  }
2911
2972
  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));
2973
+ r = 0, a = !1, t = Wt({}, e), e._useUTC != null && (t._useUTC = e._useUTC), t._f = e._f[i], sn(t), $t(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
2974
  de(e, n || t);
2914
2975
  }
2915
- function Er(e) {
2976
+ function Rr(e) {
2916
2977
  if (!e._d) {
2917
- var t = Kt(e._i), n = t.day === void 0 ? t.date : t.day;
2918
- e._a = En(
2978
+ var t = zt(e._i), n = t.day === void 0 ? t.date : t.day;
2979
+ e._a = Rn(
2919
2980
  [t.year, t.month, n, t.hour, t.minute, t.second, t.millisecond],
2920
2981
  function(s) {
2921
2982
  return s && parseInt(s, 10);
2922
2983
  }
2923
- ), sn(e);
2984
+ ), nn(e);
2924
2985
  }
2925
2986
  }
2926
- function Fr(e) {
2927
- var t = new Ge(nn(ss(e)));
2987
+ function Pr(e) {
2988
+ var t = new Ge(tn(es(e)));
2928
2989
  return t._nextDay && (t.add(1, "d"), t._nextDay = void 0), t;
2929
2990
  }
2930
- function ss(e) {
2991
+ function es(e) {
2931
2992
  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));
2993
+ 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(tn(t)) : (Ve(t) ? e._d = t : K(n) ? Lr(e) : n ? sn(e) : Tr(e), $t(e) || (e._d = null), e));
2933
2994
  }
2934
- function Ar(e) {
2995
+ function Tr(e) {
2935
2996
  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) {
2997
+ j(t) ? e._d = new Date(g.now()) : Ve(t) ? e._d = new Date(t.valueOf()) : typeof t == "string" ? Dr(e) : K(t) ? (e._a = Rn(t.slice(0), function(n) {
2937
2998
  return parseInt(n, 10);
2938
- }), sn(e)) : ye(t) ? Er(e) : oe(t) ? e._d = new Date(t) : g.createFromInputFallback(e);
2999
+ }), nn(e)) : ye(t) ? Rr(e) : oe(t) ? e._d = new Date(t) : g.createFromInputFallback(e);
2939
3000
  }
2940
- function is(e, t, n, s, i) {
3001
+ function ts(e, t, n, s, i) {
2941
3002
  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);
3003
+ return (t === !0 || t === !1) && (s = t, t = void 0), (n === !0 || n === !1) && (s = n, n = void 0), (ye(e) && Ht(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, Pr(r);
2943
3004
  }
2944
3005
  function O(e, t, n, s) {
2945
- return is(e, t, n, s, !1);
3006
+ return ts(e, t, n, s, !1);
2946
3007
  }
2947
- var Ir = V(
3008
+ var Er = W(
2948
3009
  "moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",
2949
3010
  function() {
2950
3011
  var e = O.apply(null, arguments);
2951
3012
  return this.isValid() && e.isValid() ? e < this ? this : e : ft();
2952
3013
  }
2953
- ), jr = V(
3014
+ ), Fr = W(
2954
3015
  "moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",
2955
3016
  function() {
2956
3017
  var e = O.apply(null, arguments);
2957
3018
  return this.isValid() && e.isValid() ? e > this ? this : e : ft();
2958
3019
  }
2959
3020
  );
2960
- function rs(e, t) {
3021
+ function ns(e, t) {
2961
3022
  var n, s;
2962
3023
  if (t.length === 1 && K(t[0]) && (t = t[0]), !t.length)
2963
3024
  return O();
@@ -2965,15 +3026,15 @@ function rs(e, t) {
2965
3026
  (!t[s].isValid() || t[s][e](n)) && (n = t[s]);
2966
3027
  return n;
2967
3028
  }
2968
- function Ur() {
3029
+ function Ar() {
2969
3030
  var e = [].slice.call(arguments, 0);
2970
- return rs("isBefore", e);
3031
+ return ns("isBefore", e);
2971
3032
  }
2972
- function Hr() {
3033
+ function jr() {
2973
3034
  var e = [].slice.call(arguments, 0);
2974
- return rs("isAfter", e);
3035
+ return ns("isAfter", e);
2975
3036
  }
2976
- var $r = function() {
3037
+ var Ir = function() {
2977
3038
  return Date.now ? Date.now() : +/* @__PURE__ */ new Date();
2978
3039
  }, Fe = [
2979
3040
  "year",
@@ -2986,7 +3047,7 @@ var $r = function() {
2986
3047
  "second",
2987
3048
  "millisecond"
2988
3049
  ];
2989
- function Vr(e) {
3050
+ function Ur(e) {
2990
3051
  var t, n = !1, s, i = Fe.length;
2991
3052
  for (t in e)
2992
3053
  if (S(e, t) && !(L.call(Fe, t) !== -1 && (e[t] == null || !isNaN(e[t]))))
@@ -2999,15 +3060,15 @@ function Vr(e) {
2999
3060
  }
3000
3061
  return !0;
3001
3062
  }
3002
- function Wr() {
3063
+ function Hr() {
3003
3064
  return this._isValid;
3004
3065
  }
3005
- function Gr() {
3066
+ function $r() {
3006
3067
  return q(NaN);
3007
3068
  }
3008
3069
  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
3070
+ var t = zt(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;
3071
+ this._isValid = Ur(t), this._milliseconds = +h + l * 1e3 + // 1000
3011
3072
  u * 6e4 + // 1000 * 60
3012
3073
  o * 1e3 * 60 * 60, this._days = +a + r * 7, this._months = +i + s * 3 + n * 12, this._data = {}, this._locale = ue(), this._bubble();
3013
3074
  }
@@ -3017,105 +3078,105 @@ function tt(e) {
3017
3078
  function jt(e) {
3018
3079
  return e < 0 ? Math.round(-1 * e) * -1 : Math.round(e);
3019
3080
  }
3020
- function zr(e, t, n) {
3081
+ function Wr(e, t, n) {
3021
3082
  var s = Math.min(e.length, t.length), i = Math.abs(e.length - t.length), r = 0, a;
3022
3083
  for (a = 0; a < s; a++)
3023
3084
  v(e[a]) !== v(t[a]) && r++;
3024
3085
  return r + i;
3025
3086
  }
3026
- function as(e, t) {
3087
+ function ss(e, t) {
3027
3088
  p(e, 0, 0, function() {
3028
3089
  var n = this.utcOffset(), s = "+";
3029
3090
  return n < 0 && (n = -n, s = "-"), s + Q(~~(n / 60), 2) + t + Q(~~n % 60, 2);
3030
3091
  });
3031
3092
  }
3032
- as("Z", ":");
3033
- as("ZZ", "");
3093
+ ss("Z", ":");
3094
+ ss("ZZ", "");
3034
3095
  m("Z", _t);
3035
3096
  m("ZZ", _t);
3036
3097
  k(["Z", "ZZ"], function(e, t, n) {
3037
- n._useUTC = !0, n._tzm = an(_t, e);
3098
+ n._useUTC = !0, n._tzm = rn(_t, e);
3038
3099
  });
3039
- var Kr = /([\+\-]|\d\d)/gi;
3040
- function an(e, t) {
3100
+ var Vr = /([\+\-]|\d\d)/gi;
3101
+ function rn(e, t) {
3041
3102
  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);
3103
+ return n === null ? null : (s = n[n.length - 1] || [], i = (s + "").match(Vr) || ["-", 0, 0], r = +(i[1] * 60) + v(i[2]), r === 0 ? 0 : i[0] === "+" ? r : -r);
3043
3104
  }
3044
- function on(e, t) {
3105
+ function an(e, t) {
3045
3106
  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();
3107
+ return t._isUTC ? (n = t.clone(), s = (B(e) || Ve(e) ? e.valueOf() : O(e).valueOf()) - n.valueOf(), n._d.setTime(n._d.valueOf() + s), g.updateOffset(n, !1), n) : O(e).local();
3047
3108
  }
3048
- function Ut(e) {
3109
+ function It(e) {
3049
3110
  return -Math.round(e._d.getTimezoneOffset());
3050
3111
  }
3051
3112
  g.updateOffset = function() {
3052
3113
  };
3053
- function Br(e, t, n) {
3114
+ function Gr(e, t, n) {
3054
3115
  var s = this._offset || 0, i;
3055
3116
  if (!this.isValid())
3056
3117
  return e != null ? this : NaN;
3057
3118
  if (e != null) {
3058
3119
  if (typeof e == "string") {
3059
- if (e = an(_t, e), e === null)
3120
+ if (e = rn(_t, e), e === null)
3060
3121
  return this;
3061
3122
  } else
3062
3123
  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(
3124
+ return !this._isUTC && t && (i = It(this)), this._offset = e, this._isUTC = !0, i != null && this.add(i, "m"), s !== e && (!t || this._changeInProgress ? as(
3064
3125
  this,
3065
3126
  q(e - s, "m"),
3066
3127
  1,
3067
3128
  !1
3068
3129
  ) : this._changeInProgress || (this._changeInProgress = !0, g.updateOffset(this, !0), this._changeInProgress = null)), this;
3069
3130
  } else
3070
- return this._isUTC ? s : Ut(this);
3131
+ return this._isUTC ? s : It(this);
3071
3132
  }
3072
- function qr(e, t) {
3133
+ function zr(e, t) {
3073
3134
  return e != null ? (typeof e != "string" && (e = -e), this.utcOffset(e, t), this) : -this.utcOffset();
3074
3135
  }
3075
- function Jr(e) {
3136
+ function Kr(e) {
3076
3137
  return this.utcOffset(0, e);
3077
3138
  }
3078
- function Zr(e) {
3079
- return this._isUTC && (this.utcOffset(0, e), this._isUTC = !1, e && this.subtract(Ut(this), "m")), this;
3139
+ function Br(e) {
3140
+ return this._isUTC && (this.utcOffset(0, e), this._isUTC = !1, e && this.subtract(It(this), "m")), this;
3080
3141
  }
3081
- function Qr() {
3142
+ function qr() {
3082
3143
  if (this._tzm != null)
3083
3144
  this.utcOffset(this._tzm, !1, !0);
3084
3145
  else if (typeof this._i == "string") {
3085
- var e = an(yi, this._i);
3146
+ var e = rn(gi, this._i);
3086
3147
  e != null ? this.utcOffset(e) : this.utcOffset(0, !0);
3087
3148
  }
3088
3149
  return this;
3089
3150
  }
3090
- function Xr(e) {
3151
+ function Jr(e) {
3091
3152
  return this.isValid() ? (e = e ? O(e).utcOffset() : 0, (this.utcOffset() - e) % 60 === 0) : !1;
3092
3153
  }
3093
- function ea() {
3154
+ function Zr() {
3094
3155
  return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset();
3095
3156
  }
3096
- function ta() {
3097
- if (!A(this._isDSTShifted))
3157
+ function Qr() {
3158
+ if (!j(this._isDSTShifted))
3098
3159
  return this._isDSTShifted;
3099
3160
  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;
3161
+ return Wt(e, this), e = es(e), e._a ? (t = e._isUTC ? X(e._a) : O(e._a), this._isDSTShifted = this.isValid() && Wr(e._a, t.toArray()) > 0) : this._isDSTShifted = !1, this._isDSTShifted;
3101
3162
  }
3102
- function na() {
3163
+ function Xr() {
3103
3164
  return this.isValid() ? !this._isUTC : !1;
3104
3165
  }
3105
- function sa() {
3166
+ function ea() {
3106
3167
  return this.isValid() ? this._isUTC : !1;
3107
3168
  }
3108
- function os() {
3169
+ function is() {
3109
3170
  return this.isValid() ? this._isUTC && this._offset === 0 : !1;
3110
3171
  }
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)?)?$/;
3172
+ var ta = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, na = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
3112
3173
  function q(e, t) {
3113
3174
  var n = e, s = null, i, r, a;
3114
3175
  return tt(e) ? n = {
3115
3176
  ms: e._milliseconds,
3116
3177
  d: e._days,
3117
3178
  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 = {
3179
+ } : oe(e) || !isNaN(+e) ? (n = {}, t ? n[t] = +e : n.milliseconds = +e) : (s = ta.exec(e)) ? (i = s[1] === "-" ? -1 : 1, n = {
3119
3180
  y: 0,
3120
3181
  d: v(s[J]) * i,
3121
3182
  h: v(s[R]) * i,
@@ -3123,7 +3184,7 @@ function q(e, t) {
3123
3184
  s: v(s[ie]) * i,
3124
3185
  ms: v(jt(s[pe] * 1e3)) * i
3125
3186
  // the millisecond decimal point is included in the match
3126
- }) : (s = ra.exec(e)) ? (i = s[1] === "-" ? -1 : 1, n = {
3187
+ }) : (s = na.exec(e)) ? (i = s[1] === "-" ? -1 : 1, n = {
3127
3188
  y: ge(s[2], i),
3128
3189
  M: ge(s[3], i),
3129
3190
  w: ge(s[4], i),
@@ -3131,47 +3192,47 @@ function q(e, t) {
3131
3192
  h: ge(s[6], i),
3132
3193
  m: ge(s[7], i),
3133
3194
  s: ge(s[8], i)
3134
- }) : n == null ? n = {} : typeof n == "object" && ("from" in n || "to" in n) && (a = aa(
3195
+ }) : n == null ? n = {} : typeof n == "object" && ("from" in n || "to" in n) && (a = sa(
3135
3196
  O(n.from),
3136
3197
  O(n.to)
3137
3198
  ), 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
3199
  }
3139
3200
  q.fn = St.prototype;
3140
- q.invalid = Gr;
3201
+ q.invalid = $r;
3141
3202
  function ge(e, t) {
3142
3203
  var n = e && parseFloat(e.replace(",", "."));
3143
3204
  return (isNaN(n) ? 0 : n) * t;
3144
3205
  }
3145
- function Nn(e, t) {
3206
+ function Mn(e, t) {
3146
3207
  var n = {};
3147
3208
  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
3209
  }
3149
- function aa(e, t) {
3210
+ function sa(e, t) {
3150
3211
  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 };
3212
+ return e.isValid() && t.isValid() ? (t = an(t, e), e.isBefore(t) ? n = Mn(e, t) : (n = Mn(t, e), n.milliseconds = -n.milliseconds, n.months = -n.months), n) : { milliseconds: 0, months: 0 };
3152
3213
  }
3153
- function us(e, t) {
3214
+ function rs(e, t) {
3154
3215
  return function(n, s) {
3155
3216
  var i, r;
3156
- return s !== null && !isNaN(+s) && (An(
3217
+ return s !== null && !isNaN(+s) && (Tn(
3157
3218
  t,
3158
3219
  "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;
3220
+ ), r = n, n = s, s = r), i = q(n, s), as(this, i, e), this;
3160
3221
  };
3161
3222
  }
3162
- function ls(e, t, n, s) {
3223
+ function as(e, t, n, s) {
3163
3224
  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));
3225
+ e.isValid() && (s = s ?? !0, a && Vn(e, Ue(e, "Month") + a * n), r && Hn(e, "Date", Ue(e, "Date") + r * n), i && e._d.setTime(e._d.valueOf() + i * n), s && g.updateOffset(e, r || a));
3165
3226
  }
3166
- var oa = us(1, "add"), ua = us(-1, "subtract");
3167
- function ds(e) {
3227
+ var ia = rs(1, "add"), ra = rs(-1, "subtract");
3228
+ function os(e) {
3168
3229
  return typeof e == "string" || e instanceof String;
3169
3230
  }
3170
- function la(e) {
3171
- return B(e) || We(e) || ds(e) || oe(e) || ha(e) || da(e) || e === null || e === void 0;
3231
+ function aa(e) {
3232
+ return B(e) || Ve(e) || os(e) || oe(e) || ua(e) || oa(e) || e === null || e === void 0;
3172
3233
  }
3173
- function da(e) {
3174
- var t = ye(e) && !$t(e), n = !1, s = [
3234
+ function oa(e) {
3235
+ var t = ye(e) && !Ht(e), n = !1, s = [
3175
3236
  "years",
3176
3237
  "year",
3177
3238
  "y",
@@ -3201,14 +3262,14 @@ function da(e) {
3201
3262
  r = s[i], n = n || S(e, r);
3202
3263
  return t && n;
3203
3264
  }
3204
- function ha(e) {
3265
+ function ua(e) {
3205
3266
  var t = K(e), n = !1;
3206
3267
  return t && (n = e.filter(function(s) {
3207
- return !oe(s) && ds(e);
3268
+ return !oe(s) && os(e);
3208
3269
  }).length === 0), t && n;
3209
3270
  }
3210
- function ca(e) {
3211
- var t = ye(e) && !$t(e), n = !1, s = [
3271
+ function la(e) {
3272
+ var t = ye(e) && !Ht(e), n = !1, s = [
3212
3273
  "sameDay",
3213
3274
  "nextDay",
3214
3275
  "lastDay",
@@ -3220,49 +3281,49 @@ function ca(e) {
3220
3281
  r = s[i], n = n || S(e, r);
3221
3282
  return t && n;
3222
3283
  }
3223
- function fa(e, t) {
3284
+ function da(e, t) {
3224
3285
  var n = e.diff(t, "days", !0);
3225
3286
  return n < -6 ? "sameElse" : n < -1 ? "lastWeek" : n < 0 ? "lastDay" : n < 1 ? "sameDay" : n < 2 ? "nextDay" : n < 7 ? "nextWeek" : "sameElse";
3226
3287
  }
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]);
3288
+ function ha(e, t) {
3289
+ arguments.length === 1 && (arguments[0] ? aa(arguments[0]) ? (e = arguments[0], t = void 0) : la(arguments[0]) && (t = arguments[0], e = void 0) : (e = void 0, t = void 0));
3290
+ var n = e || O(), s = an(n, this).startOf("day"), i = g.calendarFormat(this, s) || "sameElse", r = t && (ee(t[i]) ? t[i].call(this, n) : t[i]);
3230
3291
  return this.format(
3231
3292
  r || this.localeData().calendar(i, this, O(n))
3232
3293
  );
3233
3294
  }
3234
- function ma() {
3295
+ function ca() {
3235
3296
  return new Ge(this);
3236
3297
  }
3237
- function pa(e, t) {
3298
+ function fa(e, t) {
3238
3299
  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;
3300
+ return this.isValid() && n.isValid() ? (t = V(t) || "millisecond", t === "millisecond" ? this.valueOf() > n.valueOf() : n.valueOf() < this.clone().startOf(t).valueOf()) : !1;
3240
3301
  }
3241
- function ya(e, t) {
3302
+ function ga(e, t) {
3242
3303
  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;
3304
+ return this.isValid() && n.isValid() ? (t = V(t) || "millisecond", t === "millisecond" ? this.valueOf() < n.valueOf() : this.clone().endOf(t).valueOf() < n.valueOf()) : !1;
3244
3305
  }
3245
- function _a(e, t, n, s) {
3306
+ function ma(e, t, n, s) {
3246
3307
  var i = B(e) ? e : O(e), r = B(t) ? t : O(t);
3247
3308
  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
3309
  }
3249
- function va(e, t) {
3310
+ function pa(e, t) {
3250
3311
  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;
3312
+ return this.isValid() && n.isValid() ? (t = V(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
3313
  }
3253
- function wa(e, t) {
3314
+ function ya(e, t) {
3254
3315
  return this.isSame(e, t) || this.isAfter(e, t);
3255
3316
  }
3256
- function Sa(e, t) {
3317
+ function _a(e, t) {
3257
3318
  return this.isSame(e, t) || this.isBefore(e, t);
3258
3319
  }
3259
- function ba(e, t, n) {
3320
+ function va(e, t, n) {
3260
3321
  var s, i, r;
3261
3322
  if (!this.isValid())
3262
3323
  return NaN;
3263
- if (s = on(e, this), !s.isValid())
3324
+ if (s = an(e, this), !s.isValid())
3264
3325
  return NaN;
3265
- switch (i = (s.utcOffset() - this.utcOffset()) * 6e4, t = W(t), t) {
3326
+ switch (i = (s.utcOffset() - this.utcOffset()) * 6e4, t = V(t), t) {
3266
3327
  case "year":
3267
3328
  r = nt(this, s) / 12;
3268
3329
  break;
@@ -3300,10 +3361,10 @@ function nt(e, t) {
3300
3361
  }
3301
3362
  g.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ";
3302
3363
  g.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]";
3303
- function xa() {
3364
+ function wa() {
3304
3365
  return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ");
3305
3366
  }
3306
- function ka(e) {
3367
+ function Sa(e) {
3307
3368
  if (!this.isValid())
3308
3369
  return null;
3309
3370
  var t = e !== !0, n = t ? this.clone().utc() : this;
@@ -3315,57 +3376,57 @@ function ka(e) {
3315
3376
  t ? "YYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYY-MM-DD[T]HH:mm:ss.SSSZ"
3316
3377
  );
3317
3378
  }
3318
- function Oa() {
3379
+ function ba() {
3319
3380
  if (!this.isValid())
3320
3381
  return "moment.invalid(/* " + this._i + " */)";
3321
3382
  var e = "moment", t = "", n, s, i, r;
3322
3383
  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
3384
  }
3324
- function Ma(e) {
3385
+ function xa(e) {
3325
3386
  e || (e = this.isUtc() ? g.defaultFormatUtc : g.defaultFormat);
3326
3387
  var t = et(this, e);
3327
3388
  return this.localeData().postformat(t);
3328
3389
  }
3329
- function Da(e, t) {
3390
+ function ka(e, t) {
3330
3391
  return this.isValid() && (B(e) && e.isValid() || O(e).isValid()) ? q({ to: this, from: e }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate();
3331
3392
  }
3332
- function Ya(e) {
3393
+ function Oa(e) {
3333
3394
  return this.from(O(), e);
3334
3395
  }
3335
- function Na(e, t) {
3396
+ function Ma(e, t) {
3336
3397
  return this.isValid() && (B(e) && e.isValid() || O(e).isValid()) ? q({ from: this, to: e }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate();
3337
3398
  }
3338
- function Ca(e) {
3399
+ function Da(e) {
3339
3400
  return this.to(O(), e);
3340
3401
  }
3341
- function hs(e) {
3402
+ function us(e) {
3342
3403
  var t;
3343
3404
  return e === void 0 ? this._locale._abbr : (t = ue(e), t != null && (this._locale = t), this);
3344
3405
  }
3345
- var cs = V(
3406
+ var ls = W(
3346
3407
  "moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",
3347
3408
  function(e) {
3348
3409
  return e === void 0 ? this.localeData() : this.locale(e);
3349
3410
  }
3350
3411
  );
3351
- function fs() {
3412
+ function ds() {
3352
3413
  return this._locale;
3353
3414
  }
3354
- var lt = 1e3, Oe = 60 * lt, dt = 60 * Oe, gs = (365 * 400 + 97) * 24 * dt;
3415
+ var lt = 1e3, Oe = 60 * lt, dt = 60 * Oe, hs = (365 * 400 + 97) * 24 * dt;
3355
3416
  function Me(e, t) {
3356
3417
  return (e % t + t) % t;
3357
3418
  }
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();
3419
+ function cs(e, t, n) {
3420
+ return e < 100 && e >= 0 ? new Date(e + 400, t, n) - hs : new Date(e, t, n).valueOf();
3360
3421
  }
3361
- function ps(e, t, n) {
3362
- return e < 100 && e >= 0 ? Date.UTC(e + 400, t, n) - gs : Date.UTC(e, t, n);
3422
+ function fs(e, t, n) {
3423
+ return e < 100 && e >= 0 ? Date.UTC(e + 400, t, n) - hs : Date.UTC(e, t, n);
3363
3424
  }
3364
- function La(e) {
3425
+ function Ya(e) {
3365
3426
  var t, n;
3366
- if (e = W(e), e === void 0 || e === "millisecond" || !this.isValid())
3427
+ if (e = V(e), e === void 0 || e === "millisecond" || !this.isValid())
3367
3428
  return this;
3368
- switch (n = this._isUTC ? ps : ms, e) {
3429
+ switch (n = this._isUTC ? fs : cs, e) {
3369
3430
  case "year":
3370
3431
  t = n(this.year(), 0, 1);
3371
3432
  break;
@@ -3412,11 +3473,11 @@ function La(e) {
3412
3473
  }
3413
3474
  return this._d.setTime(t), g.updateOffset(this, !0), this;
3414
3475
  }
3415
- function Ra(e) {
3476
+ function Na(e) {
3416
3477
  var t, n;
3417
- if (e = W(e), e === void 0 || e === "millisecond" || !this.isValid())
3478
+ if (e = V(e), e === void 0 || e === "millisecond" || !this.isValid())
3418
3479
  return this;
3419
- switch (n = this._isUTC ? ps : ms, e) {
3480
+ switch (n = this._isUTC ? fs : cs, e) {
3420
3481
  case "year":
3421
3482
  t = n(this.year() + 1, 0, 1) - 1;
3422
3483
  break;
@@ -3463,16 +3524,16 @@ function Ra(e) {
3463
3524
  }
3464
3525
  return this._d.setTime(t), g.updateOffset(this, !0), this;
3465
3526
  }
3466
- function Pa() {
3527
+ function Ca() {
3467
3528
  return this._d.valueOf() - (this._offset || 0) * 6e4;
3468
3529
  }
3469
- function Ta() {
3530
+ function La() {
3470
3531
  return Math.floor(this.valueOf() / 1e3);
3471
3532
  }
3472
- function Ea() {
3533
+ function Ra() {
3473
3534
  return new Date(this.valueOf());
3474
3535
  }
3475
- function Fa() {
3536
+ function Pa() {
3476
3537
  var e = this;
3477
3538
  return [
3478
3539
  e.year(),
@@ -3484,7 +3545,7 @@ function Fa() {
3484
3545
  e.millisecond()
3485
3546
  ];
3486
3547
  }
3487
- function Aa() {
3548
+ function Ta() {
3488
3549
  var e = this;
3489
3550
  return {
3490
3551
  years: e.year(),
@@ -3496,19 +3557,19 @@ function Aa() {
3496
3557
  milliseconds: e.milliseconds()
3497
3558
  };
3498
3559
  }
3499
- function Ia() {
3560
+ function Ea() {
3500
3561
  return this.isValid() ? this.toISOString() : null;
3501
3562
  }
3502
- function ja() {
3503
- return Vt(this);
3563
+ function Fa() {
3564
+ return $t(this);
3504
3565
  }
3505
- function Ua() {
3566
+ function Aa() {
3506
3567
  return de({}, _(this));
3507
3568
  }
3508
- function Ha() {
3569
+ function ja() {
3509
3570
  return _(this).overflow;
3510
3571
  }
3511
- function $a() {
3572
+ function Ia() {
3512
3573
  return {
3513
3574
  input: this._i,
3514
3575
  format: this._f,
@@ -3526,11 +3587,11 @@ p("y", ["y", 1], "yo", "eraYear");
3526
3587
  p("y", ["yy", 2], 0, "eraYear");
3527
3588
  p("y", ["yyy", 3], 0, "eraYear");
3528
3589
  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);
3590
+ m("N", on);
3591
+ m("NN", on);
3592
+ m("NNN", on);
3593
+ m("NNNN", Ja);
3594
+ m("NNNNN", Za);
3534
3595
  k(
3535
3596
  ["N", "NN", "NNN", "NNNN", "NNNNN"],
3536
3597
  function(e, t, n, s) {
@@ -3542,13 +3603,13 @@ m("y", De);
3542
3603
  m("yy", De);
3543
3604
  m("yyy", De);
3544
3605
  m("yyyy", De);
3545
- m("yo", to);
3546
- k(["y", "yy", "yyy", "yyyy"], P);
3606
+ m("yo", Qa);
3607
+ k(["y", "yy", "yyy", "yyyy"], T);
3547
3608
  k(["yo"], function(e, t, n, s) {
3548
3609
  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);
3610
+ n._locale._eraYearOrdinalRegex && (i = e.match(n._locale._eraYearOrdinalRegex)), n._locale.eraYearOrdinalParse ? t[T] = n._locale.eraYearOrdinalParse(e, i) : t[T] = parseInt(e, 10);
3550
3611
  });
3551
- function Va(e, t) {
3612
+ function Ua(e, t) {
3552
3613
  var n, s, i, r = this._eras || ue("en")._eras;
3553
3614
  for (n = 0, s = r.length; n < s; ++n) {
3554
3615
  switch (typeof r[n].since) {
@@ -3567,7 +3628,7 @@ function Va(e, t) {
3567
3628
  }
3568
3629
  return r;
3569
3630
  }
3570
- function Wa(e, t, n) {
3631
+ function Ha(e, t, n) {
3571
3632
  var s, i, r = this.eras(), a, o, u;
3572
3633
  for (e = e.toUpperCase(), s = 0, i = r.length; s < i; ++s)
3573
3634
  if (a = r[s].name.toUpperCase(), o = r[s].abbr.toUpperCase(), u = r[s].narrow.toUpperCase(), n)
@@ -3590,60 +3651,60 @@ function Wa(e, t, n) {
3590
3651
  else if ([a, o, u].indexOf(e) >= 0)
3591
3652
  return r[s];
3592
3653
  }
3593
- function Ga(e, t) {
3654
+ function $a(e, t) {
3594
3655
  var n = e.since <= e.until ? 1 : -1;
3595
3656
  return t === void 0 ? g(e.since).year() : g(e.since).year() + (t - e.offset) * n;
3596
3657
  }
3597
- function za() {
3658
+ function Wa() {
3598
3659
  var e, t, n, s = this.localeData().eras();
3599
3660
  for (e = 0, t = s.length; e < t; ++e)
3600
3661
  if (n = this.clone().startOf("day").valueOf(), s[e].since <= n && n <= s[e].until || s[e].until <= n && n <= s[e].since)
3601
3662
  return s[e].name;
3602
3663
  return "";
3603
3664
  }
3604
- function Ka() {
3665
+ function Va() {
3605
3666
  var e, t, n, s = this.localeData().eras();
3606
3667
  for (e = 0, t = s.length; e < t; ++e)
3607
3668
  if (n = this.clone().startOf("day").valueOf(), s[e].since <= n && n <= s[e].until || s[e].until <= n && n <= s[e].since)
3608
3669
  return s[e].narrow;
3609
3670
  return "";
3610
3671
  }
3611
- function Ba() {
3672
+ function Ga() {
3612
3673
  var e, t, n, s = this.localeData().eras();
3613
3674
  for (e = 0, t = s.length; e < t; ++e)
3614
3675
  if (n = this.clone().startOf("day").valueOf(), s[e].since <= n && n <= s[e].until || s[e].until <= n && n <= s[e].since)
3615
3676
  return s[e].abbr;
3616
3677
  return "";
3617
3678
  }
3618
- function qa() {
3679
+ function za() {
3619
3680
  var e, t, n, s, i = this.localeData().eras();
3620
3681
  for (e = 0, t = i.length; e < t; ++e)
3621
3682
  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
3683
  return (this.year() - g(i[e].since).year()) * n + i[e].offset;
3623
3684
  return this.year();
3624
3685
  }
3625
- function Ja(e) {
3626
- return S(this, "_erasNameRegex") || ln.call(this), e ? this._erasNameRegex : this._erasRegex;
3686
+ function Ka(e) {
3687
+ return S(this, "_erasNameRegex") || un.call(this), e ? this._erasNameRegex : this._erasRegex;
3627
3688
  }
3628
- function Za(e) {
3629
- return S(this, "_erasAbbrRegex") || ln.call(this), e ? this._erasAbbrRegex : this._erasRegex;
3689
+ function Ba(e) {
3690
+ return S(this, "_erasAbbrRegex") || un.call(this), e ? this._erasAbbrRegex : this._erasRegex;
3630
3691
  }
3631
- function Qa(e) {
3632
- return S(this, "_erasNarrowRegex") || ln.call(this), e ? this._erasNarrowRegex : this._erasRegex;
3692
+ function qa(e) {
3693
+ return S(this, "_erasNarrowRegex") || un.call(this), e ? this._erasNarrowRegex : this._erasRegex;
3633
3694
  }
3634
- function un(e, t) {
3695
+ function on(e, t) {
3635
3696
  return t.erasAbbrRegex(e);
3636
3697
  }
3637
- function Xa(e, t) {
3698
+ function Ja(e, t) {
3638
3699
  return t.erasNameRegex(e);
3639
3700
  }
3640
- function eo(e, t) {
3701
+ function Za(e, t) {
3641
3702
  return t.erasNarrowRegex(e);
3642
3703
  }
3643
- function to(e, t) {
3704
+ function Qa(e, t) {
3644
3705
  return t._eraYearOrdinalRegex || De;
3645
3706
  }
3646
- function ln() {
3707
+ function un() {
3647
3708
  var e = [], t = [], n = [], s = [], i, r, a, o, u, l = this.eras();
3648
3709
  for (i = 0, r = l.length; i < r; ++i)
3649
3710
  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);
@@ -3669,8 +3730,8 @@ m("G", yt);
3669
3730
  m("g", yt);
3670
3731
  m("GG", M, H);
3671
3732
  m("gg", M, H);
3672
- m("GGGG", qt, Bt);
3673
- m("gggg", qt, Bt);
3733
+ m("GGGG", Bt, Kt);
3734
+ m("gggg", Bt, Kt);
3674
3735
  m("GGGGG", pt, gt);
3675
3736
  m("ggggg", pt, gt);
3676
3737
  Ke(
@@ -3682,8 +3743,8 @@ Ke(
3682
3743
  Ke(["gg", "GG"], function(e, t, n, s) {
3683
3744
  t[s] = g.parseTwoDigitYear(e);
3684
3745
  });
3685
- function no(e) {
3686
- return ys.call(
3746
+ function Xa(e) {
3747
+ return gs.call(
3687
3748
  this,
3688
3749
  e,
3689
3750
  this.week(),
@@ -3692,8 +3753,8 @@ function no(e) {
3692
3753
  this.localeData()._week.doy
3693
3754
  );
3694
3755
  }
3695
- function so(e) {
3696
- return ys.call(
3756
+ function eo(e) {
3757
+ return gs.call(
3697
3758
  this,
3698
3759
  e,
3699
3760
  this.isoWeek(),
@@ -3702,34 +3763,34 @@ function so(e) {
3702
3763
  4
3703
3764
  );
3704
3765
  }
3705
- function io() {
3766
+ function to() {
3706
3767
  return ae(this.year(), 1, 4);
3707
3768
  }
3708
- function ro() {
3769
+ function no() {
3709
3770
  return ae(this.isoWeekYear(), 1, 4);
3710
3771
  }
3711
- function ao() {
3772
+ function so() {
3712
3773
  var e = this.localeData()._week;
3713
3774
  return ae(this.year(), e.dow, e.doy);
3714
3775
  }
3715
- function oo() {
3776
+ function io() {
3716
3777
  var e = this.localeData()._week;
3717
3778
  return ae(this.weekYear(), e.dow, e.doy);
3718
3779
  }
3719
- function ys(e, t, n, s, i) {
3780
+ function gs(e, t, n, s, i) {
3720
3781
  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));
3782
+ return e == null ? $e(this, s, i).year : (r = ae(e, s, i), t > r && (t = r), ro.call(this, e, t, n, s, i));
3722
3783
  }
3723
- function uo(e, t, n, s, i) {
3724
- var r = Jn(e, t, n, s, i), a = He(r.year, 0, r.dayOfYear);
3784
+ function ro(e, t, n, s, i) {
3785
+ var r = Kn(e, t, n, s, i), a = He(r.year, 0, r.dayOfYear);
3725
3786
  return this.year(a.getUTCFullYear()), this.month(a.getUTCMonth()), this.date(a.getUTCDate()), this;
3726
3787
  }
3727
3788
  p("Q", 0, "Qo", "quarter");
3728
- m("Q", jn);
3789
+ m("Q", Fn);
3729
3790
  k("Q", function(e, t) {
3730
3791
  t[se] = (v(e) - 1) * 3;
3731
3792
  });
3732
- function lo(e) {
3793
+ function ao(e) {
3733
3794
  return e == null ? Math.ceil((this.month() + 1) / 3) : this.month((e - 1) * 3 + this.month() % 3);
3734
3795
  }
3735
3796
  p("D", ["DD", 2], "Do", "date");
@@ -3742,29 +3803,29 @@ k(["D", "DD"], J);
3742
3803
  k("Do", function(e, t) {
3743
3804
  t[J] = v(e.match(M)[0]);
3744
3805
  });
3745
- var _s = Ne("Date", !0);
3806
+ var ms = Ne("Date", !0);
3746
3807
  p("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
3747
3808
  m("DDD", mt);
3748
- m("DDDD", Un);
3809
+ m("DDDD", An);
3749
3810
  k(["DDD", "DDDD"], function(e, t, n) {
3750
3811
  n._dayOfYear = v(e);
3751
3812
  });
3752
- function ho(e) {
3813
+ function oo(e) {
3753
3814
  var t = Math.round(
3754
3815
  (this.clone().startOf("day") - this.clone().startOf("year")) / 864e5
3755
3816
  ) + 1;
3756
3817
  return e == null ? t : this.add(e - t, "d");
3757
3818
  }
3758
3819
  p("m", ["mm", 2], 0, "minute");
3759
- m("m", M, Jt);
3820
+ m("m", M, qt);
3760
3821
  m("mm", M, H);
3761
3822
  k(["m", "mm"], z);
3762
- var co = Ne("Minutes", !1);
3823
+ var uo = Ne("Minutes", !1);
3763
3824
  p("s", ["ss", 2], 0, "second");
3764
- m("s", M, Jt);
3825
+ m("s", M, qt);
3765
3826
  m("ss", M, H);
3766
3827
  k(["s", "ss"], ie);
3767
- var fo = Ne("Seconds", !1);
3828
+ var lo = Ne("Seconds", !1);
3768
3829
  p("S", 0, 0, function() {
3769
3830
  return ~~(this.millisecond() / 100);
3770
3831
  });
@@ -3790,173 +3851,173 @@ p(0, ["SSSSSSSS", 8], 0, function() {
3790
3851
  p(0, ["SSSSSSSSS", 9], 0, function() {
3791
3852
  return this.millisecond() * 1e6;
3792
3853
  });
3793
- m("S", mt, jn);
3854
+ m("S", mt, Fn);
3794
3855
  m("SS", mt, H);
3795
- m("SSS", mt, Un);
3796
- var he, vs;
3856
+ m("SSS", mt, An);
3857
+ var he, ps;
3797
3858
  for (he = "SSSS"; he.length <= 9; he += "S")
3798
3859
  m(he, De);
3799
- function go(e, t) {
3860
+ function ho(e, t) {
3800
3861
  t[pe] = v(("0." + e) * 1e3);
3801
3862
  }
3802
3863
  for (he = "S"; he.length <= 9; he += "S")
3803
- k(he, go);
3804
- vs = Ne("Milliseconds", !1);
3864
+ k(he, ho);
3865
+ ps = Ne("Milliseconds", !1);
3805
3866
  p("z", 0, 0, "zoneAbbr");
3806
3867
  p("zz", 0, 0, "zoneName");
3807
- function mo() {
3868
+ function co() {
3808
3869
  return this._isUTC ? "UTC" : "";
3809
3870
  }
3810
- function po() {
3871
+ function fo() {
3811
3872
  return this._isUTC ? "Coordinated Universal Time" : "";
3812
3873
  }
3813
3874
  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;
3875
+ c.add = ia;
3876
+ c.calendar = ha;
3877
+ c.clone = ca;
3878
+ c.diff = va;
3879
+ c.endOf = Na;
3880
+ c.format = xa;
3881
+ c.from = ka;
3882
+ c.fromNow = Oa;
3883
+ c.to = Ma;
3884
+ c.toNow = Da;
3885
+ c.get = bi;
3886
+ c.invalidAt = ja;
3887
+ c.isAfter = fa;
3888
+ c.isBefore = ga;
3889
+ c.isBetween = ma;
3890
+ c.isSame = pa;
3891
+ c.isSameOrAfter = ya;
3892
+ c.isSameOrBefore = _a;
3893
+ c.isValid = Fa;
3894
+ c.lang = ls;
3895
+ c.locale = us;
3896
+ c.localeData = ds;
3897
+ c.max = Fr;
3898
+ c.min = Er;
3899
+ c.parsingFlags = Aa;
3900
+ c.set = xi;
3901
+ c.startOf = Ya;
3902
+ c.subtract = ra;
3903
+ c.toArray = Pa;
3904
+ c.toObject = Ta;
3905
+ c.toDate = Ra;
3906
+ c.toISOString = Sa;
3907
+ c.inspect = ba;
3847
3908
  typeof Symbol < "u" && Symbol.for != null && (c[Symbol.for("nodejs.util.inspect.custom")] = function() {
3848
3909
  return "Moment<" + this.format() + ">";
3849
3910
  });
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(
3911
+ c.toJSON = Ea;
3912
+ c.toString = wa;
3913
+ c.unix = La;
3914
+ c.valueOf = Ca;
3915
+ c.creationData = Ia;
3916
+ c.eraName = Wa;
3917
+ c.eraNarrow = Va;
3918
+ c.eraAbbr = Ga;
3919
+ c.eraYear = za;
3920
+ c.year = Un;
3921
+ c.isLeapYear = Si;
3922
+ c.weekYear = Xa;
3923
+ c.isoWeekYear = eo;
3924
+ c.quarter = c.quarters = ao;
3925
+ c.month = Gn;
3926
+ c.daysInMonth = Ri;
3927
+ c.week = c.weeks = Ui;
3928
+ c.isoWeek = c.isoWeeks = Hi;
3929
+ c.weeksInYear = so;
3930
+ c.weeksInWeekYear = io;
3931
+ c.isoWeeksInYear = to;
3932
+ c.isoWeeksInISOWeekYear = no;
3933
+ c.date = ms;
3934
+ c.day = c.days = er;
3935
+ c.weekday = tr;
3936
+ c.isoWeekday = nr;
3937
+ c.dayOfYear = oo;
3938
+ c.hour = c.hours = lr;
3939
+ c.minute = c.minutes = uo;
3940
+ c.second = c.seconds = lo;
3941
+ c.millisecond = c.milliseconds = ps;
3942
+ c.utcOffset = Gr;
3943
+ c.utc = Kr;
3944
+ c.local = Br;
3945
+ c.parseZone = qr;
3946
+ c.hasAlignedHourOffset = Jr;
3947
+ c.isDST = Zr;
3948
+ c.isLocal = Xr;
3949
+ c.isUtcOffset = ea;
3950
+ c.isUtc = is;
3951
+ c.isUTC = is;
3952
+ c.zoneAbbr = co;
3953
+ c.zoneName = fo;
3954
+ c.dates = W(
3894
3955
  "dates accessor is deprecated. Use date instead.",
3895
- _s
3956
+ ms
3896
3957
  );
3897
- c.months = V(
3958
+ c.months = W(
3898
3959
  "months accessor is deprecated. Use month instead",
3899
- Bn
3960
+ Gn
3900
3961
  );
3901
- c.years = V(
3962
+ c.years = W(
3902
3963
  "years accessor is deprecated. Use year instead",
3903
- Vn
3964
+ Un
3904
3965
  );
3905
- c.zone = V(
3966
+ c.zone = W(
3906
3967
  "moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",
3907
- qr
3968
+ zr
3908
3969
  );
3909
- c.isDSTShifted = V(
3970
+ c.isDSTShifted = W(
3910
3971
  "isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",
3911
- ta
3972
+ Qr
3912
3973
  );
3913
- function yo(e) {
3974
+ function go(e) {
3914
3975
  return O(e * 1e3);
3915
3976
  }
3916
- function _o() {
3977
+ function mo() {
3917
3978
  return O.apply(null, arguments).parseZone();
3918
3979
  }
3919
- function ws(e) {
3980
+ function ys(e) {
3920
3981
  return e;
3921
3982
  }
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;
3983
+ var b = Vt.prototype;
3984
+ b.calendar = Xs;
3985
+ b.longDateFormat = si;
3986
+ b.invalidDate = ri;
3987
+ b.ordinal = ui;
3988
+ b.preparse = ys;
3989
+ b.postformat = ys;
3990
+ b.relativeTime = di;
3991
+ b.pastFuture = hi;
3992
+ b.set = Zs;
3993
+ b.eras = Ua;
3994
+ b.erasParse = Ha;
3995
+ b.erasConvertYear = $a;
3996
+ b.erasAbbrRegex = Ba;
3997
+ b.erasNameRegex = Ka;
3998
+ b.erasNarrowRegex = qa;
3999
+ b.months = Yi;
4000
+ b.monthsShort = Ni;
4001
+ b.monthsParse = Li;
4002
+ b.monthsRegex = Ti;
4003
+ b.monthsShortRegex = Pi;
4004
+ b.week = Fi;
4005
+ b.firstDayOfYear = Ii;
4006
+ b.firstDayOfWeek = ji;
4007
+ b.weekdays = qi;
4008
+ b.weekdaysMin = Zi;
4009
+ b.weekdaysShort = Ji;
4010
+ b.weekdaysParse = Xi;
4011
+ b.weekdaysRegex = sr;
4012
+ b.weekdaysShortRegex = ir;
4013
+ b.weekdaysMinRegex = rr;
4014
+ b.isPM = or;
4015
+ b.meridiem = dr;
3955
4016
  function ht(e, t, n, s) {
3956
4017
  var i = ue(), r = X().set(s, t);
3957
4018
  return i[n](r, e);
3958
4019
  }
3959
- function Ss(e, t, n) {
4020
+ function _s(e, t, n) {
3960
4021
  if (oe(e) && (t = e, e = void 0), e = e || "", t != null)
3961
4022
  return ht(e, t, n, "month");
3962
4023
  var s, i = [];
@@ -3964,7 +4025,7 @@ function Ss(e, t, n) {
3964
4025
  i[s] = ht(e, s, n, "month");
3965
4026
  return i;
3966
4027
  }
3967
- function dn(e, t, n, s) {
4028
+ function ln(e, t, n, s) {
3968
4029
  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
4030
  var i = ue(), r = e ? i._week.dow : 0, a, o = [];
3970
4031
  if (n != null)
@@ -3973,20 +4034,20 @@ function dn(e, t, n, s) {
3973
4034
  o[a] = ht(t, (a + r) % 7, s, "day");
3974
4035
  return o;
3975
4036
  }
3976
- function vo(e, t) {
3977
- return Ss(e, t, "months");
4037
+ function po(e, t) {
4038
+ return _s(e, t, "months");
3978
4039
  }
3979
- function wo(e, t) {
3980
- return Ss(e, t, "monthsShort");
4040
+ function yo(e, t) {
4041
+ return _s(e, t, "monthsShort");
3981
4042
  }
3982
- function So(e, t, n) {
3983
- return dn(e, t, n, "weekdays");
4043
+ function _o(e, t, n) {
4044
+ return ln(e, t, n, "weekdays");
3984
4045
  }
3985
- function bo(e, t, n) {
3986
- return dn(e, t, n, "weekdaysShort");
4046
+ function vo(e, t, n) {
4047
+ return ln(e, t, n, "weekdaysShort");
3987
4048
  }
3988
- function xo(e, t, n) {
3989
- return dn(e, t, n, "weekdaysMin");
4049
+ function wo(e, t, n) {
4050
+ return ln(e, t, n, "weekdaysMin");
3990
4051
  }
3991
4052
  ce("en", {
3992
4053
  eras: [
@@ -4013,48 +4074,48 @@ ce("en", {
4013
4074
  return e + n;
4014
4075
  }
4015
4076
  });
4016
- g.lang = V(
4077
+ g.lang = W(
4017
4078
  "moment.lang is deprecated. Use moment.locale instead.",
4018
4079
  ce
4019
4080
  );
4020
- g.langData = V(
4081
+ g.langData = W(
4021
4082
  "moment.langData is deprecated. Use moment.localeData instead.",
4022
4083
  ue
4023
4084
  );
4024
4085
  var te = Math.abs;
4025
- function ko() {
4086
+ function So() {
4026
4087
  var e = this._data;
4027
4088
  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
4089
  }
4029
- function bs(e, t, n, s) {
4090
+ function vs(e, t, n, s) {
4030
4091
  var i = q(t, n);
4031
4092
  return e._milliseconds += s * i._milliseconds, e._days += s * i._days, e._months += s * i._months, e._bubble();
4032
4093
  }
4033
- function Oo(e, t) {
4034
- return bs(this, e, t, 1);
4094
+ function bo(e, t) {
4095
+ return vs(this, e, t, 1);
4035
4096
  }
4036
- function Mo(e, t) {
4037
- return bs(this, e, t, -1);
4097
+ function xo(e, t) {
4098
+ return vs(this, e, t, -1);
4038
4099
  }
4039
- function Cn(e) {
4100
+ function Dn(e) {
4040
4101
  return e < 0 ? Math.floor(e) : Math.ceil(e);
4041
4102
  }
4042
- function Do() {
4103
+ function ko() {
4043
4104
  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;
4105
+ return e >= 0 && t >= 0 && n >= 0 || e <= 0 && t <= 0 && n <= 0 || (e += Dn(Ut(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 = $(ws(t)), n += u, t -= Dn(Ut(u)), o = $(n / 12), n %= 12, s.days = t, s.months = n, s.years = o, this;
4045
4106
  }
4046
- function xs(e) {
4107
+ function ws(e) {
4047
4108
  return e * 4800 / 146097;
4048
4109
  }
4049
- function Ht(e) {
4110
+ function Ut(e) {
4050
4111
  return e * 146097 / 4800;
4051
4112
  }
4052
- function Yo(e) {
4113
+ function Oo(e) {
4053
4114
  if (!this.isValid())
4054
4115
  return NaN;
4055
4116
  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) {
4117
+ if (e = V(e), e === "month" || e === "quarter" || e === "year")
4118
+ switch (t = this._days + s / 864e5, n = this._months + ws(t), e) {
4058
4119
  case "month":
4059
4120
  return n;
4060
4121
  case "quarter":
@@ -4063,7 +4124,7 @@ function Yo(e) {
4063
4124
  return n / 12;
4064
4125
  }
4065
4126
  else
4066
- switch (t = this._days + Math.round(Ht(this._months)), e) {
4127
+ switch (t = this._days + Math.round(Ut(this._months)), e) {
4067
4128
  case "week":
4068
4129
  return t / 7 + s / 6048e5;
4069
4130
  case "day":
@@ -4085,20 +4146,20 @@ function le(e) {
4085
4146
  return this.as(e);
4086
4147
  };
4087
4148
  }
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() {
4149
+ var Ss = le("ms"), Mo = le("s"), Do = le("m"), Yo = le("h"), No = le("d"), Co = le("w"), Lo = le("M"), Ro = le("Q"), Po = le("y"), To = Ss;
4150
+ function Eo() {
4090
4151
  return q(this);
4091
4152
  }
4092
- function jo(e) {
4093
- return e = W(e), this.isValid() ? this[e + "s"]() : NaN;
4153
+ function Fo(e) {
4154
+ return e = V(e), this.isValid() ? this[e + "s"]() : NaN;
4094
4155
  }
4095
4156
  function _e(e) {
4096
4157
  return function() {
4097
4158
  return this.isValid() ? this._data[e] : NaN;
4098
4159
  };
4099
4160
  }
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() {
4161
+ var Ao = _e("milliseconds"), jo = _e("seconds"), Io = _e("minutes"), Uo = _e("hours"), Ho = _e("days"), $o = _e("months"), Wo = _e("years");
4162
+ function Vo() {
4102
4163
  return $(this.days() / 7);
4103
4164
  }
4104
4165
  var ne = Math.round, xe = {
@@ -4117,77 +4178,77 @@ var ne = Math.round, xe = {
4117
4178
  M: 11
4118
4179
  // months to year
4119
4180
  };
4120
- function Bo(e, t, n, s, i) {
4181
+ function Go(e, t, n, s, i) {
4121
4182
  return i.relativeTime(t || 1, !!n, e, s);
4122
4183
  }
4123
- function qo(e, t, n, s) {
4184
+ function zo(e, t, n, s) {
4124
4185
  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);
4186
+ 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, Go.apply(null, d);
4126
4187
  }
4127
- function Jo(e) {
4188
+ function Ko(e) {
4128
4189
  return e === void 0 ? ne : typeof e == "function" ? (ne = e, !0) : !1;
4129
4190
  }
4130
- function Zo(e, t) {
4191
+ function Bo(e, t) {
4131
4192
  return xe[e] === void 0 ? !1 : t === void 0 ? xe[e] : (xe[e] = t, e === "s" && (xe.ss = t - 1), !0);
4132
4193
  }
4133
- function Qo(e, t) {
4194
+ function qo(e, t) {
4134
4195
  if (!this.isValid())
4135
4196
  return this.localeData().invalidDate();
4136
4197
  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);
4198
+ 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 = zo(this, !n, s, i), n && (r = i.pastFuture(+this, r)), i.postformat(r);
4138
4199
  }
4139
- var Rt = Math.abs;
4200
+ var Lt = Math.abs;
4140
4201
  function Se(e) {
4141
4202
  return (e > 0) - (e < 0) || +e;
4142
4203
  }
4143
4204
  function xt() {
4144
4205
  if (!this.isValid())
4145
4206
  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;
4207
+ var e = Lt(this._milliseconds) / 1e3, t = Lt(this._days), n = Lt(this._months), s, i, r, a, o = this.asSeconds(), u, l, h, f;
4147
4208
  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
4209
  }
4149
4210
  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;
4211
+ w.isValid = Hr;
4212
+ w.abs = So;
4213
+ w.add = bo;
4214
+ w.subtract = xo;
4215
+ w.as = Oo;
4216
+ w.asMilliseconds = Ss;
4217
+ w.asSeconds = Mo;
4218
+ w.asMinutes = Do;
4219
+ w.asHours = Yo;
4220
+ w.asDays = No;
4221
+ w.asWeeks = Co;
4222
+ w.asMonths = Lo;
4223
+ w.asQuarters = Ro;
4224
+ w.asYears = Po;
4225
+ w.valueOf = To;
4226
+ w._bubble = ko;
4227
+ w.clone = Eo;
4228
+ w.get = Fo;
4229
+ w.milliseconds = Ao;
4230
+ w.seconds = jo;
4231
+ w.minutes = Io;
4232
+ w.hours = Uo;
4233
+ w.days = Ho;
4234
+ w.weeks = Vo;
4235
+ w.months = $o;
4236
+ w.years = Wo;
4237
+ w.humanize = qo;
4177
4238
  w.toISOString = xt;
4178
4239
  w.toString = xt;
4179
4240
  w.toJSON = xt;
4180
- w.locale = hs;
4181
- w.localeData = fs;
4182
- w.toIsoString = V(
4241
+ w.locale = us;
4242
+ w.localeData = ds;
4243
+ w.toIsoString = W(
4183
4244
  "toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",
4184
4245
  xt
4185
4246
  );
4186
- w.lang = cs;
4247
+ w.lang = ls;
4187
4248
  p("X", 0, 0, "unix");
4188
4249
  p("x", 0, 0, "valueOf");
4189
4250
  m("x", yt);
4190
- m("X", _i);
4251
+ m("X", mi);
4191
4252
  k("X", function(e, t, n) {
4192
4253
  n._d = new Date(parseFloat(e) * 1e3);
4193
4254
  });
@@ -4196,33 +4257,33 @@ k("x", function(e, t, n) {
4196
4257
  });
4197
4258
  //! moment.js
4198
4259
  g.version = "2.30.1";
4199
- Qs(O);
4260
+ qs(O);
4200
4261
  g.fn = c;
4201
- g.min = Ur;
4202
- g.max = Hr;
4203
- g.now = $r;
4262
+ g.min = Ar;
4263
+ g.max = jr;
4264
+ g.now = Ir;
4204
4265
  g.utc = X;
4205
- g.unix = yo;
4206
- g.months = vo;
4207
- g.isDate = We;
4266
+ g.unix = go;
4267
+ g.months = po;
4268
+ g.isDate = Ve;
4208
4269
  g.locale = ce;
4209
4270
  g.invalid = ft;
4210
4271
  g.duration = q;
4211
4272
  g.isMoment = B;
4212
- g.weekdays = So;
4213
- g.parseZone = _o;
4273
+ g.weekdays = _o;
4274
+ g.parseZone = mo;
4214
4275
  g.localeData = ue;
4215
4276
  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;
4277
+ g.monthsShort = yo;
4278
+ g.weekdaysMin = wo;
4279
+ g.defineLocale = en;
4280
+ g.updateLocale = gr;
4281
+ g.locales = mr;
4282
+ g.weekdaysShort = vo;
4283
+ g.normalizeUnits = V;
4284
+ g.relativeTimeRounding = Ko;
4285
+ g.relativeTimeThreshold = Bo;
4286
+ g.calendarFormat = da;
4226
4287
  g.prototype = c;
4227
4288
  g.HTML5_FMT = {
4228
4289
  DATETIME_LOCAL: "YYYY-MM-DDTHH:mm",
@@ -4244,7 +4305,7 @@ g.HTML5_FMT = {
4244
4305
  MONTH: "YYYY-MM"
4245
4306
  // <input type="month" />
4246
4307
  };
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 = [
4308
+ const Jo = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i, Zo = /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i, Yn = /(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, Rt = [
4248
4309
  /^janv/i,
4249
4310
  /^févr/i,
4250
4311
  /^mars/i,
@@ -4257,18 +4318,18 @@ const Xo = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octob
4257
4318
  /^oct/i,
4258
4319
  /^nov/i,
4259
4320
  /^déc/i
4260
- ], tu = {
4321
+ ], Qo = {
4261
4322
  months: "janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split(
4262
4323
  "_"
4263
4324
  ),
4264
4325
  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,
4326
+ monthsRegex: Yn,
4327
+ monthsShortRegex: Yn,
4328
+ monthsStrictRegex: Jo,
4329
+ monthsShortStrictRegex: Zo,
4330
+ monthsParse: Rt,
4331
+ longMonthsParse: Rt,
4332
+ shortMonthsParse: Rt,
4272
4333
  weekdays: "dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),
4273
4334
  weekdaysShort: "dim._lun._mar._mer._jeu._ven._sam.".split("_"),
4274
4335
  weekdaysMin: "di_lu_ma_me_je_ve_sa".split("_"),
@@ -4328,22 +4389,23 @@ const Xo = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octob
4328
4389
  doy: 4
4329
4390
  }
4330
4391
  };
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 });
4392
+ g.locale("fr", Qo);
4393
+ const Xo = (e) => Math.round(5e3 * Math.pow(200, 0.01 * e) / 10) * 10, bs = (e) => e >= 1 ? bs(e - 1) + Xo(e) : 0, eu = (e, t = 0) => e < bs(t + 1) ? t : eu(e, t + 1), cu = ([e, t]) => t ? `${Ot("xp.user", { amount: Dt(e), emoji: Mt.xp })} ${Ot("xp.crew", { amount: Dt(t), emoji: Mt.xp })}` : Ot("xp.user", { amount: Dt(e), emoji: Mt.xp });
4333
4394
  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,
4395
+ su as CHARACTERISTICS,
4396
+ Os as CHARACTERISTIC_DEFAULT_POINT_COST,
4397
+ ru as CHARACTERISTIC_POINT_COSTS,
4398
+ iu as CHARACTERISTIC_POINT_PER_LEVEL,
4399
+ lu as DEFAULT_FACTION,
4400
+ au as DEFAULT_MAX_HP,
4401
+ uu as FACTIONS,
4402
+ ou as HP_PER_VITALITY,
4403
+ nu as RANKS,
4343
4404
  me as RankId,
4344
- fu as SORT_VALUES,
4345
- gu as displayXp,
4346
- su as getCurrentLevel,
4347
- Os as totalXpToLevel,
4348
- nu as xpToLevel
4405
+ du as SORT_VALUES,
4406
+ cu as displayXp,
4407
+ eu as getCurrentLevel,
4408
+ hu as getNewSortValue,
4409
+ bs as totalXpToLevel,
4410
+ Xo as xpToLevel
4349
4411
  };