@spscommerce/i18n 8.7.4 → 8.7.5

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/lib/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
- import { createContext as St, useContext as it, createElement as ie, isValidElement as ue, cloneElement as ne, useState as xt, useRef as Pe, useEffect as Le } from "react";
2
- function kt(a, t) {
1
+ import { createContext as xt, useContext as at, createElement as ie, isValidElement as ue, cloneElement as ne, useState as kt, useRef as ke, useEffect as Pe } from "react";
2
+ function Pt(a, t) {
3
3
  for (var n = 0; n < t.length; n++) {
4
4
  const e = t[n];
5
5
  if (typeof e != "string" && !Array.isArray(e)) {
@@ -15,31 +15,32 @@ function kt(a, t) {
15
15
  }
16
16
  return Object.freeze(Object.defineProperty(a, Symbol.toStringTag, { value: "Module" }));
17
17
  }
18
- function I(a) {
19
- return I = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
18
+ function _(a) {
19
+ "@babel/helpers - typeof";
20
+ return _ = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
20
21
  return typeof t;
21
22
  } : function(t) {
22
23
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
23
- }, I(a);
24
+ }, _(a);
24
25
  }
25
- function Pt(a, t) {
26
- if (I(a) != "object" || !a)
26
+ function Lt(a, t) {
27
+ if (_(a) != "object" || !a)
27
28
  return a;
28
29
  var n = a[Symbol.toPrimitive];
29
30
  if (n !== void 0) {
30
31
  var e = n.call(a, t || "default");
31
- if (I(e) != "object")
32
+ if (_(e) != "object")
32
33
  return e;
33
34
  throw new TypeError("@@toPrimitive must return a primitive value.");
34
35
  }
35
36
  return (t === "string" ? String : Number)(a);
36
37
  }
37
- function ot(a) {
38
- var t = Pt(a, "string");
39
- return I(t) == "symbol" ? t : String(t);
38
+ function it(a) {
39
+ var t = Lt(a, "string");
40
+ return _(t) == "symbol" ? t : t + "";
40
41
  }
41
- function ve(a, t, n) {
42
- return t = ot(t), t in a ? Object.defineProperty(a, t, {
42
+ function he(a, t, n) {
43
+ return t = it(t), t in a ? Object.defineProperty(a, t, {
43
44
  value: n,
44
45
  enumerable: !0,
45
46
  configurable: !0,
@@ -52,7 +53,7 @@ function D(a) {
52
53
  typeof Object.getOwnPropertySymbols == "function" && e.push.apply(e, Object.getOwnPropertySymbols(n).filter(function(r) {
53
54
  return Object.getOwnPropertyDescriptor(n, r).enumerable;
54
55
  })), e.forEach(function(r) {
55
- ve(a, r, n[r]);
56
+ he(a, r, n[r]);
56
57
  });
57
58
  }
58
59
  return a;
@@ -64,7 +65,7 @@ function H(a, t) {
64
65
  function De(a, t) {
65
66
  for (var n = 0; n < t.length; n++) {
66
67
  var e = t[n];
67
- e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(a, ot(e.key), e);
68
+ e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(a, it(e.key), e);
68
69
  }
69
70
  }
70
71
  function M(a, t, n) {
@@ -78,7 +79,7 @@ function W(a) {
78
79
  return a;
79
80
  }
80
81
  function ee(a, t) {
81
- if (t && (I(t) === "object" || typeof t == "function"))
82
+ if (t && (_(t) === "object" || typeof t == "function"))
82
83
  return t;
83
84
  if (t !== void 0)
84
85
  throw new TypeError("Derived constructors may only return object or undefined");
@@ -89,12 +90,12 @@ function G(a) {
89
90
  return n.__proto__ || Object.getPrototypeOf(n);
90
91
  }, G(a);
91
92
  }
92
- function Ee(a, t) {
93
- return Ee = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, r) {
93
+ function Le(a, t) {
94
+ return Le = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, r) {
94
95
  return e.__proto__ = r, e;
95
- }, Ee(a, t);
96
+ }, Le(a, t);
96
97
  }
97
- function me(a, t) {
98
+ function ve(a, t) {
98
99
  if (typeof t != "function" && t !== null)
99
100
  throw new TypeError("Super expression must either be null or a function");
100
101
  a.prototype = Object.create(t && t.prototype, {
@@ -105,9 +106,9 @@ function me(a, t) {
105
106
  }
106
107
  }), Object.defineProperty(a, "prototype", {
107
108
  writable: !1
108
- }), t && Ee(a, t);
109
+ }), t && Le(a, t);
109
110
  }
110
- var Lt = {
111
+ var Et = {
111
112
  type: "logger",
112
113
  log: function(t) {
113
114
  this.output("log", t);
@@ -121,7 +122,7 @@ var Lt = {
121
122
  output: function(t, n) {
122
123
  console && console[t] && console[t].apply(console, n);
123
124
  }
124
- }, Et = function() {
125
+ }, jt = function() {
125
126
  function a(t) {
126
127
  var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
127
128
  H(this, a), this.init(t, n);
@@ -130,7 +131,7 @@ var Lt = {
130
131
  key: "init",
131
132
  value: function(n) {
132
133
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
133
- this.prefix = e.prefix || "i18next:", this.logger = n || Lt, this.options = e, this.debug = e.debug;
134
+ this.prefix = e.prefix || "i18next:", this.logger = n || Et, this.options = e, this.debug = e.debug;
134
135
  }
135
136
  }, {
136
137
  key: "setDebug",
@@ -178,7 +179,7 @@ var Lt = {
178
179
  }, this.options));
179
180
  }
180
181
  }]), a;
181
- }(), V = new Et(), z = function() {
182
+ }(), V = new jt(), K = function() {
182
183
  function a() {
183
184
  H(this, a), this.observers = {};
184
185
  }
@@ -193,7 +194,7 @@ var Lt = {
193
194
  }, {
194
195
  key: "off",
195
196
  value: function(n, e) {
196
- if (!!this.observers[n]) {
197
+ if (this.observers[n]) {
197
198
  if (!e) {
198
199
  delete this.observers[n];
199
200
  return;
@@ -229,10 +230,10 @@ function Y() {
229
230
  });
230
231
  return n.resolve = a, n.reject = t, n;
231
232
  }
232
- function Ie(a) {
233
+ function _e(a) {
233
234
  return a == null ? "" : "" + a;
234
235
  }
235
- function jt(a, t, n) {
236
+ function Rt(a, t, n) {
236
237
  a.forEach(function(e) {
237
238
  t[e] && (n[e] = t[e]);
238
239
  });
@@ -255,32 +256,32 @@ function Ae(a, t, n) {
255
256
  k: e(i.shift())
256
257
  };
257
258
  }
258
- function _e(a, t, n) {
259
+ function Ie(a, t, n) {
259
260
  var e = Ae(a, t, Object), r = e.obj, i = e.k;
260
261
  r[i] = n;
261
262
  }
262
- function Rt(a, t, n, e) {
263
+ function Ct(a, t, n, e) {
263
264
  var r = Ae(a, t, Object), i = r.obj, o = r.k;
264
- i[o] = i[o] || [], e && (i[o] = i[o].concat(n)), e || i[o].push(n);
265
+ i[o] = i[o] || [], i[o].push(n);
265
266
  }
266
267
  function fe(a, t) {
267
268
  var n = Ae(a, t), e = n.obj, r = n.k;
268
- if (!!e)
269
+ if (e)
269
270
  return e[r];
270
271
  }
271
272
  function Ue(a, t, n) {
272
273
  var e = fe(a, n);
273
274
  return e !== void 0 ? e : fe(t, n);
274
275
  }
275
- function st(a, t, n) {
276
+ function ot(a, t, n) {
276
277
  for (var e in t)
277
- e !== "__proto__" && e !== "constructor" && (e in a ? typeof a[e] == "string" || a[e] instanceof String || typeof t[e] == "string" || t[e] instanceof String ? n && (a[e] = t[e]) : st(a[e], t[e], n) : a[e] = t[e]);
278
+ e !== "__proto__" && e !== "constructor" && (e in a ? typeof a[e] == "string" || a[e] instanceof String || typeof t[e] == "string" || t[e] instanceof String ? n && (a[e] = t[e]) : ot(a[e], t[e], n) : a[e] = t[e]);
278
279
  return a;
279
280
  }
280
281
  function Q(a) {
281
282
  return a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
282
283
  }
283
- var Ct = {
284
+ var Nt = {
284
285
  "&": "&amp;",
285
286
  "<": "&lt;",
286
287
  ">": "&gt;",
@@ -288,19 +289,19 @@ var Ct = {
288
289
  "'": "&#39;",
289
290
  "/": "&#x2F;"
290
291
  };
291
- function Nt(a) {
292
+ function At(a) {
292
293
  return typeof a == "string" ? a.replace(/[&<>"'\/]/g, function(t) {
293
- return Ct[t];
294
+ return Nt[t];
294
295
  }) : a;
295
296
  }
296
- var ye = typeof window < "u" && window.navigator && window.navigator.userAgent && window.navigator.userAgent.indexOf("MSIE") > -1, At = function(a) {
297
- me(t, a);
297
+ var me = typeof window < "u" && window.navigator && window.navigator.userAgent && window.navigator.userAgent.indexOf("MSIE") > -1, Tt = function(a) {
298
+ ve(t, a);
298
299
  function t(n) {
299
300
  var e, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
300
301
  ns: ["translation"],
301
302
  defaultNS: "translation"
302
303
  };
303
- return H(this, t), e = ee(this, G(t).call(this)), ye && z.call(W(e)), e.data = n || {}, e.options = r, e.options.keySeparator === void 0 && (e.options.keySeparator = "."), e;
304
+ return H(this, t), e = ee(this, G(t).call(this)), me && K.call(W(e)), e.data = n || {}, e.options = r, e.options.keySeparator === void 0 && (e.options.keySeparator = "."), e;
304
305
  }
305
306
  return M(t, [{
306
307
  key: "addNamespaces",
@@ -327,7 +328,7 @@ var ye = typeof window < "u" && window.navigator && window.navigator.userAgent &
327
328
  }, u = this.options.keySeparator;
328
329
  u === void 0 && (u = ".");
329
330
  var f = [e, r];
330
- i && (f = f.concat(u ? i.split(u) : i)), e.indexOf(".") > -1 && (f = e.split("."), o = r, r = f[1]), this.addNamespaces(r), _e(this.data, f, o), s.silent || this.emit("added", e, r, i, o);
331
+ i && (f = f.concat(u ? i.split(u) : i)), e.indexOf(".") > -1 && (f = e.split("."), o = r, r = f[1]), this.addNamespaces(r), Ie(this.data, f, o), s.silent || this.emit("added", e, r, i, o);
331
332
  }
332
333
  }, {
333
334
  key: "addResources",
@@ -349,7 +350,7 @@ var ye = typeof window < "u" && window.navigator && window.navigator.userAgent &
349
350
  }, f = [e, r];
350
351
  e.indexOf(".") > -1 && (f = e.split("."), o = i, i = r, r = f[1]), this.addNamespaces(r);
351
352
  var c = fe(this.data, f) || {};
352
- o ? st(c, i, s) : c = D({}, c, i), _e(this.data, f, c), u.silent || this.emit("added", e, r, i);
353
+ o ? ot(c, i, s) : c = D({}, c, i), Ie(this.data, f, c), u.silent || this.emit("added", e, r, i);
353
354
  }
354
355
  }, {
355
356
  key: "removeResourceBundle",
@@ -377,7 +378,7 @@ var ye = typeof window < "u" && window.navigator && window.navigator.userAgent &
377
378
  return this.data;
378
379
  }
379
380
  }]), t;
380
- }(z), ut = {
381
+ }(K), st = {
381
382
  processors: {},
382
383
  addPostProcessor: function(t) {
383
384
  this.processors[t.name] = t;
@@ -389,10 +390,10 @@ var ye = typeof window < "u" && window.navigator && window.navigator.userAgent &
389
390
  }), n;
390
391
  }
391
392
  }, Be = {}, He = function(a) {
392
- me(t, a);
393
+ ve(t, a);
393
394
  function t(n) {
394
395
  var e, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
395
- return H(this, t), e = ee(this, G(t).call(this)), ye && z.call(W(e)), jt(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], n, W(e)), e.options = r, e.options.keySeparator === void 0 && (e.options.keySeparator = "."), e.logger = V.create("translator"), e;
396
+ return H(this, t), e = ee(this, G(t).call(this)), me && K.call(W(e)), Rt(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], n, W(e)), e.options = r, e.options.keySeparator === void 0 && (e.options.keySeparator = "."), e.logger = V.create("translator"), e;
396
397
  }
397
398
  return M(t, [{
398
399
  key: "changeLanguage",
@@ -432,7 +433,7 @@ var ye = typeof window < "u" && window.navigator && window.navigator.userAgent &
432
433
  key: "translate",
433
434
  value: function(e, r, i) {
434
435
  var o = this;
435
- if (I(r) !== "object" && this.options.overloadTranslationOptionHandler && (r = this.options.overloadTranslationOptionHandler(arguments)), r || (r = {}), e == null)
436
+ if (_(r) !== "object" && this.options.overloadTranslationOptionHandler && (r = this.options.overloadTranslationOptionHandler(arguments)), r || (r = {}), e == null)
436
437
  return "";
437
438
  Array.isArray(e) || (e = [String(e)]);
438
439
  var s = r.keySeparator !== void 0 ? r.keySeparator : this.options.keySeparator, u = this.extractFromKey(e[e.length - 1], r), f = u.key, c = u.namespaces, p = c[c.length - 1], v = r.lng || this.language, m = r.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
@@ -451,11 +452,11 @@ var ye = typeof window < "u" && window.navigator && window.navigator.userAgent &
451
452
  var R = S === "[object Array]", C = R ? [] : {}, L = R ? O : b;
452
453
  for (var E in h)
453
454
  if (Object.prototype.hasOwnProperty.call(h, E)) {
454
- var K = "".concat(L).concat(s).concat(E);
455
- C[E] = this.translate(K, D({}, r, {
455
+ var z = "".concat(L).concat(s).concat(E);
456
+ C[E] = this.translate(z, D({}, r, {
456
457
  joinArrays: !1,
457
458
  ns: c
458
- })), C[E] === K && (C[E] = h[E]);
459
+ })), C[E] === z && (C[E] = h[E]);
459
460
  }
460
461
  h = C;
461
462
  }
@@ -472,20 +473,20 @@ var ye = typeof window < "u" && window.navigator && window.navigator.userAgent &
472
473
  }));
473
474
  q && q.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
474
475
  }
475
- var _ = [], B = this.languageUtils.getFallbackCodes(this.options.fallbackLng, r.lng || this.language);
476
+ var I = [], B = this.languageUtils.getFallbackCodes(this.options.fallbackLng, r.lng || this.language);
476
477
  if (this.options.saveMissingTo === "fallback" && B && B[0])
477
478
  for (var X = 0; X < B.length; X++)
478
- _.push(B[X]);
479
+ I.push(B[X]);
479
480
  else
480
- this.options.saveMissingTo === "all" ? _ = this.languageUtils.toResolveHierarchy(r.lng || this.language) : _.push(r.lng || this.language);
481
- var Te = function(J, we, Fe) {
482
- o.options.missingKeyHandler ? o.options.missingKeyHandler(J, p, we, P ? Fe : h, P, r) : o.backendConnector && o.backendConnector.saveMissing && o.backendConnector.saveMissing(J, p, we, P ? Fe : h, P, r), o.emit("missingKey", J, p, we, h);
481
+ this.options.saveMissingTo === "all" ? I = this.languageUtils.toResolveHierarchy(r.lng || this.language) : I.push(r.lng || this.language);
482
+ var Te = function(J, be, Fe) {
483
+ o.options.missingKeyHandler ? o.options.missingKeyHandler(J, p, be, P ? Fe : h, P, r) : o.backendConnector && o.backendConnector.saveMissing && o.backendConnector.saveMissing(J, p, be, P ? Fe : h, P, r), o.emit("missingKey", J, p, be, h);
483
484
  };
484
- this.options.saveMissing && (this.options.saveMissingPlurals && g ? _.forEach(function(be) {
485
- o.pluralResolver.getSuffixes(be).forEach(function(J) {
486
- Te([be], f + J, r["defaultValue".concat(J)] || N);
485
+ this.options.saveMissing && (this.options.saveMissingPlurals && g ? I.forEach(function(ye) {
486
+ o.pluralResolver.getSuffixes(ye).forEach(function(J) {
487
+ Te([ye], f + J, r["defaultValue".concat(J)] || N);
487
488
  });
488
- }) : Te(_, f, N));
489
+ }) : Te(I, f, N));
489
490
  }
490
491
  h = this.extendTranslation(h, e, r, y, i), l && h === f && this.options.appendNamespaceToMissingKey && (h = "".concat(p, ":").concat(f)), l && this.options.parseMissingKeyHandler && (h = this.options.parseMissingKeyHandler(h));
491
492
  }
@@ -520,7 +521,7 @@ var ye = typeof window < "u" && window.navigator && window.navigator.userAgent &
520
521
  }, i)), i.interpolation && this.interpolator.reset();
521
522
  }
522
523
  var y = i.postProcess || this.options.postProcess, h = typeof y == "string" ? [y] : y;
523
- return e != null && h && h.length && i.applyPostProcessor !== !1 && (e = ut.handle(h, e, r, this.options && this.options.postProcessPassResolved ? D({
524
+ return e != null && h && h.length && i.applyPostProcessor !== !1 && (e = st.handle(h, e, r, this.options && this.options.postProcessPassResolved ? D({
524
525
  i18nResolved: o
525
526
  }, i) : i, this)), e;
526
527
  }
@@ -581,11 +582,11 @@ var ye = typeof window < "u" && window.navigator && window.navigator.userAgent &
581
582
  return !1;
582
583
  }
583
584
  }]), t;
584
- }(z);
585
- function Oe(a) {
585
+ }(K);
586
+ function we(a) {
586
587
  return a.charAt(0).toUpperCase() + a.slice(1);
587
588
  }
588
- var Tt = function() {
589
+ var Ft = function() {
589
590
  function a(t) {
590
591
  H(this, a), this.options = t, this.whitelist = this.options.supportedLngs || !1, this.supportedLngs = this.options.supportedLngs || !1, this.logger = V.create("languageUtils");
591
592
  }
@@ -612,7 +613,7 @@ var Tt = function() {
612
613
  var e = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"], r = n.split("-");
613
614
  return this.options.lowerCaseLng ? r = r.map(function(i) {
614
615
  return i.toLowerCase();
615
- }) : r.length === 2 ? (r[0] = r[0].toLowerCase(), r[1] = r[1].toUpperCase(), e.indexOf(r[1].toLowerCase()) > -1 && (r[1] = Oe(r[1].toLowerCase()))) : r.length === 3 && (r[0] = r[0].toLowerCase(), r[1].length === 2 && (r[1] = r[1].toUpperCase()), r[0] !== "sgn" && r[2].length === 2 && (r[2] = r[2].toUpperCase()), e.indexOf(r[1].toLowerCase()) > -1 && (r[1] = Oe(r[1].toLowerCase())), e.indexOf(r[2].toLowerCase()) > -1 && (r[2] = Oe(r[2].toLowerCase()))), r.join("-");
616
+ }) : r.length === 2 ? (r[0] = r[0].toLowerCase(), r[1] = r[1].toUpperCase(), e.indexOf(r[1].toLowerCase()) > -1 && (r[1] = we(r[1].toLowerCase()))) : r.length === 3 && (r[0] = r[0].toLowerCase(), r[1].length === 2 && (r[1] = r[1].toUpperCase()), r[0] !== "sgn" && r[2].length === 2 && (r[2] = r[2].toUpperCase()), e.indexOf(r[1].toLowerCase()) > -1 && (r[1] = we(r[1].toLowerCase())), e.indexOf(r[2].toLowerCase()) > -1 && (r[2] = we(r[2].toLowerCase()))), r.join("-");
616
617
  }
617
618
  return this.options.cleanCode || this.options.lowerCaseLng ? n.toLowerCase() : n;
618
619
  }
@@ -666,14 +667,14 @@ var Tt = function() {
666
667
  key: "toResolveHierarchy",
667
668
  value: function(n, e) {
668
669
  var r = this, i = this.getFallbackCodes(e || this.options.fallbackLng || [], n), o = [], s = function(f) {
669
- !f || (r.isSupportedCode(f) ? o.push(f) : r.logger.warn("rejecting language code not found in supportedLngs: ".concat(f)));
670
+ f && (r.isSupportedCode(f) ? o.push(f) : r.logger.warn("rejecting language code not found in supportedLngs: ".concat(f)));
670
671
  };
671
672
  return typeof n == "string" && n.indexOf("-") > -1 ? (this.options.load !== "languageOnly" && s(this.formatLanguageCode(n)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && s(this.getScriptPartFromCode(n)), this.options.load !== "currentOnly" && s(this.getLanguagePartFromCode(n))) : typeof n == "string" && s(this.formatLanguageCode(n)), i.forEach(function(u) {
672
673
  o.indexOf(u) < 0 && s(r.formatLanguageCode(u));
673
674
  }), o;
674
675
  }
675
676
  }]), a;
676
- }(), Ft = [{
677
+ }(), Dt = [{
677
678
  lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
678
679
  nr: [1, 2],
679
680
  fc: 1
@@ -765,86 +766,86 @@ var Tt = function() {
765
766
  lngs: ["he", "iw"],
766
767
  nr: [1, 2, 20, 21],
767
768
  fc: 22
768
- }], Dt = {
769
+ }], _t = {
769
770
  1: function(t) {
770
- return Number(t > 1);
771
+ return +(t > 1);
771
772
  },
772
773
  2: function(t) {
773
- return Number(t != 1);
774
+ return +(t != 1);
774
775
  },
775
776
  3: function(t) {
776
777
  return 0;
777
778
  },
778
779
  4: function(t) {
779
- return Number(t % 10 == 1 && t % 100 != 11 ? 0 : t % 10 >= 2 && t % 10 <= 4 && (t % 100 < 10 || t % 100 >= 20) ? 1 : 2);
780
+ return t % 10 == 1 && t % 100 != 11 ? 0 : t % 10 >= 2 && t % 10 <= 4 && (t % 100 < 10 || t % 100 >= 20) ? 1 : 2;
780
781
  },
781
782
  5: function(t) {
782
- return Number(t == 0 ? 0 : t == 1 ? 1 : t == 2 ? 2 : t % 100 >= 3 && t % 100 <= 10 ? 3 : t % 100 >= 11 ? 4 : 5);
783
+ return t == 0 ? 0 : t == 1 ? 1 : t == 2 ? 2 : t % 100 >= 3 && t % 100 <= 10 ? 3 : t % 100 >= 11 ? 4 : 5;
783
784
  },
784
785
  6: function(t) {
785
- return Number(t == 1 ? 0 : t >= 2 && t <= 4 ? 1 : 2);
786
+ return t == 1 ? 0 : t >= 2 && t <= 4 ? 1 : 2;
786
787
  },
787
788
  7: function(t) {
788
- return Number(t == 1 ? 0 : t % 10 >= 2 && t % 10 <= 4 && (t % 100 < 10 || t % 100 >= 20) ? 1 : 2);
789
+ return t == 1 ? 0 : t % 10 >= 2 && t % 10 <= 4 && (t % 100 < 10 || t % 100 >= 20) ? 1 : 2;
789
790
  },
790
791
  8: function(t) {
791
- return Number(t == 1 ? 0 : t == 2 ? 1 : t != 8 && t != 11 ? 2 : 3);
792
+ return t == 1 ? 0 : t == 2 ? 1 : t != 8 && t != 11 ? 2 : 3;
792
793
  },
793
794
  9: function(t) {
794
- return Number(t >= 2);
795
+ return +(t >= 2);
795
796
  },
796
797
  10: function(t) {
797
- return Number(t == 1 ? 0 : t == 2 ? 1 : t < 7 ? 2 : t < 11 ? 3 : 4);
798
+ return t == 1 ? 0 : t == 2 ? 1 : t < 7 ? 2 : t < 11 ? 3 : 4;
798
799
  },
799
800
  11: function(t) {
800
- return Number(t == 1 || t == 11 ? 0 : t == 2 || t == 12 ? 1 : t > 2 && t < 20 ? 2 : 3);
801
+ return t == 1 || t == 11 ? 0 : t == 2 || t == 12 ? 1 : t > 2 && t < 20 ? 2 : 3;
801
802
  },
802
803
  12: function(t) {
803
- return Number(t % 10 != 1 || t % 100 == 11);
804
+ return +(t % 10 != 1 || t % 100 == 11);
804
805
  },
805
806
  13: function(t) {
806
- return Number(t !== 0);
807
+ return +(t !== 0);
807
808
  },
808
809
  14: function(t) {
809
- return Number(t == 1 ? 0 : t == 2 ? 1 : t == 3 ? 2 : 3);
810
+ return t == 1 ? 0 : t == 2 ? 1 : t == 3 ? 2 : 3;
810
811
  },
811
812
  15: function(t) {
812
- return Number(t % 10 == 1 && t % 100 != 11 ? 0 : t % 10 >= 2 && (t % 100 < 10 || t % 100 >= 20) ? 1 : 2);
813
+ return t % 10 == 1 && t % 100 != 11 ? 0 : t % 10 >= 2 && (t % 100 < 10 || t % 100 >= 20) ? 1 : 2;
813
814
  },
814
815
  16: function(t) {
815
- return Number(t % 10 == 1 && t % 100 != 11 ? 0 : t !== 0 ? 1 : 2);
816
+ return t % 10 == 1 && t % 100 != 11 ? 0 : t !== 0 ? 1 : 2;
816
817
  },
817
818
  17: function(t) {
818
- return Number(t == 1 || t % 10 == 1 && t % 100 != 11 ? 0 : 1);
819
+ return t == 1 || t % 10 == 1 && t % 100 != 11 ? 0 : 1;
819
820
  },
820
821
  18: function(t) {
821
- return Number(t == 0 ? 0 : t == 1 ? 1 : 2);
822
+ return t == 0 ? 0 : t == 1 ? 1 : 2;
822
823
  },
823
824
  19: function(t) {
824
- return Number(t == 1 ? 0 : t == 0 || t % 100 > 1 && t % 100 < 11 ? 1 : t % 100 > 10 && t % 100 < 20 ? 2 : 3);
825
+ return t == 1 ? 0 : t == 0 || t % 100 > 1 && t % 100 < 11 ? 1 : t % 100 > 10 && t % 100 < 20 ? 2 : 3;
825
826
  },
826
827
  20: function(t) {
827
- return Number(t == 1 ? 0 : t == 0 || t % 100 > 0 && t % 100 < 20 ? 1 : 2);
828
+ return t == 1 ? 0 : t == 0 || t % 100 > 0 && t % 100 < 20 ? 1 : 2;
828
829
  },
829
830
  21: function(t) {
830
- return Number(t % 100 == 1 ? 1 : t % 100 == 2 ? 2 : t % 100 == 3 || t % 100 == 4 ? 3 : 0);
831
+ return t % 100 == 1 ? 1 : t % 100 == 2 ? 2 : t % 100 == 3 || t % 100 == 4 ? 3 : 0;
831
832
  },
832
833
  22: function(t) {
833
- return Number(t == 1 ? 0 : t == 2 ? 1 : (t < 0 || t > 10) && t % 10 == 0 ? 2 : 3);
834
+ return t == 1 ? 0 : t == 2 ? 1 : (t < 0 || t > 10) && t % 10 == 0 ? 2 : 3;
834
835
  }
835
836
  };
836
837
  function It() {
837
838
  var a = {};
838
- return Ft.forEach(function(t) {
839
+ return Dt.forEach(function(t) {
839
840
  t.lngs.forEach(function(n) {
840
841
  a[n] = {
841
842
  numbers: t.nr,
842
- plurals: Dt[t.fc]
843
+ plurals: _t[t.fc]
843
844
  };
844
845
  });
845
846
  }), a;
846
847
  }
847
- var _t = function() {
848
+ var Ut = function() {
848
849
  function a(t) {
849
850
  var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
850
851
  H(this, a), this.languageUtils = t, this.options = n, this.logger = V.create("pluralResolver"), this.rules = It();
@@ -895,7 +896,7 @@ var _t = function() {
895
896
  return this.logger.warn("no plural rule found for: ".concat(n)), "";
896
897
  }
897
898
  }]), a;
898
- }(), Ut = function() {
899
+ }(), Bt = function() {
899
900
  function a() {
900
901
  var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
901
902
  H(this, a), this.logger = V.create("interpolator"), this.options = t, this.format = t.interpolation && t.interpolation.format || function(n) {
@@ -910,7 +911,7 @@ var _t = function() {
910
911
  escapeValue: !0
911
912
  });
912
913
  var e = n.interpolation;
913
- this.escape = e.escape !== void 0 ? e.escape : Nt, this.escapeValue = e.escapeValue !== void 0 ? e.escapeValue : !0, this.useRawValueToEscape = e.useRawValueToEscape !== void 0 ? e.useRawValueToEscape : !1, this.prefix = e.prefix ? Q(e.prefix) : e.prefixEscaped || "{{", this.suffix = e.suffix ? Q(e.suffix) : e.suffixEscaped || "}}", this.formatSeparator = e.formatSeparator ? e.formatSeparator : e.formatSeparator || ",", this.unescapePrefix = e.unescapeSuffix ? "" : e.unescapePrefix || "-", this.unescapeSuffix = this.unescapePrefix ? "" : e.unescapeSuffix || "", this.nestingPrefix = e.nestingPrefix ? Q(e.nestingPrefix) : e.nestingPrefixEscaped || Q("$t("), this.nestingSuffix = e.nestingSuffix ? Q(e.nestingSuffix) : e.nestingSuffixEscaped || Q(")"), this.nestingOptionsSeparator = e.nestingOptionsSeparator ? e.nestingOptionsSeparator : e.nestingOptionsSeparator || ",", this.maxReplaces = e.maxReplaces ? e.maxReplaces : 1e3, this.alwaysFormat = e.alwaysFormat !== void 0 ? e.alwaysFormat : !1, this.resetRegExp();
914
+ this.escape = e.escape !== void 0 ? e.escape : At, this.escapeValue = e.escapeValue !== void 0 ? e.escapeValue : !0, this.useRawValueToEscape = e.useRawValueToEscape !== void 0 ? e.useRawValueToEscape : !1, this.prefix = e.prefix ? Q(e.prefix) : e.prefixEscaped || "{{", this.suffix = e.suffix ? Q(e.suffix) : e.suffixEscaped || "}}", this.formatSeparator = e.formatSeparator ? e.formatSeparator : e.formatSeparator || ",", this.unescapePrefix = e.unescapeSuffix ? "" : e.unescapePrefix || "-", this.unescapeSuffix = this.unescapePrefix ? "" : e.unescapeSuffix || "", this.nestingPrefix = e.nestingPrefix ? Q(e.nestingPrefix) : e.nestingPrefixEscaped || Q("$t("), this.nestingSuffix = e.nestingSuffix ? Q(e.nestingSuffix) : e.nestingSuffixEscaped || Q(")"), this.nestingOptionsSeparator = e.nestingOptionsSeparator ? e.nestingOptionsSeparator : e.nestingOptionsSeparator || ",", this.maxReplaces = e.maxReplaces ? e.maxReplaces : 1e3, this.alwaysFormat = e.alwaysFormat !== void 0 ? e.alwaysFormat : !1, this.resetRegExp();
914
915
  }
915
916
  }, {
916
917
  key: "reset",
@@ -966,7 +967,7 @@ var _t = function() {
966
967
  } else
967
968
  o.logger.warn("missed to pass in variable ".concat(s[1], " for interpolating ").concat(n)), u = "";
968
969
  else
969
- typeof u != "string" && !o.useRawValueToEscape && (u = Ie(u));
970
+ typeof u != "string" && !o.useRawValueToEscape && (u = _e(u));
970
971
  if (n = n.replace(s[0], h.safeValue(u)), h.regex.lastIndex = 0, f++, f >= o.maxReplaces)
971
972
  break;
972
973
  }
@@ -1000,7 +1001,7 @@ var _t = function() {
1000
1001
  }
1001
1002
  if (s = e(f.call(this, o[1].trim(), u), u), s && o[0] === n && typeof s != "string")
1002
1003
  return s;
1003
- typeof s != "string" && (s = Ie(s)), s || (this.logger.warn("missed to resolve ".concat(o[1], " for nesting ").concat(n)), s = ""), p && (s = c.reduce(function(m, d) {
1004
+ typeof s != "string" && (s = _e(s)), s || (this.logger.warn("missed to resolve ".concat(o[1], " for nesting ").concat(n)), s = ""), p && (s = c.reduce(function(m, d) {
1004
1005
  return r.format(m, d, i.lng, i);
1005
1006
  }, s.trim())), n = n.replace(o[0], s), this.regexp.lastIndex = 0;
1006
1007
  }
@@ -1008,15 +1009,15 @@ var _t = function() {
1008
1009
  }
1009
1010
  }]), a;
1010
1011
  }();
1011
- function Bt(a, t) {
1012
+ function Ht(a, t) {
1012
1013
  for (var n = a.indexOf(t); n !== -1; )
1013
1014
  a.splice(n, 1), n = a.indexOf(t);
1014
1015
  }
1015
- var Ht = function(a) {
1016
- me(t, a);
1016
+ var Mt = function(a) {
1017
+ ve(t, a);
1017
1018
  function t(n, e, r) {
1018
1019
  var i, o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
1019
- return H(this, t), i = ee(this, G(t).call(this)), ye && z.call(W(i)), i.backend = n, i.store = e, i.services = r, i.languageUtils = r.languageUtils, i.options = o, i.logger = V.create("backendConnector"), i.state = {}, i.queue = [], i.backend && i.backend.init && i.backend.init(r, o.backend, o), i;
1020
+ return H(this, t), i = ee(this, G(t).call(this)), me && K.call(W(i)), i.backend = n, i.store = e, i.services = r, i.languageUtils = r.languageUtils, i.options = o, i.logger = V.create("backendConnector"), i.state = {}, i.queue = [], i.backend && i.backend.init && i.backend.init(r, o.backend, o), i;
1020
1021
  }
1021
1022
  return M(t, [{
1022
1023
  key: "queueLoad",
@@ -1047,7 +1048,7 @@ var Ht = function(a) {
1047
1048
  r && this.emit("failedLoading", s, u, r), i && this.store.addResourceBundle(s, u, i), this.state[e] = r ? -1 : 2;
1048
1049
  var f = {};
1049
1050
  this.queue.forEach(function(c) {
1050
- Rt(c.loaded, [s], u), Bt(c.pending, e), r && c.errors.push(r), c.pending.length === 0 && !c.done && (Object.keys(c.loaded).forEach(function(p) {
1051
+ Ct(c.loaded, [s], u), Ht(c.pending, e), r && c.errors.push(r), c.pending.length === 0 && !c.done && (Object.keys(c.loaded).forEach(function(p) {
1051
1052
  f[p] || (f[p] = []), c.loaded[p].length && c.loaded[p].forEach(function(v) {
1052
1053
  f[p].indexOf(v) < 0 && f[p].push(v);
1053
1054
  });
@@ -1117,8 +1118,8 @@ var Ht = function(a) {
1117
1118
  })), !(!e || !e[0]) && this.store.addResource(e[0], r, i, o));
1118
1119
  }
1119
1120
  }]), t;
1120
- }(z);
1121
- function Mt() {
1121
+ }(K);
1122
+ function qt() {
1122
1123
  return {
1123
1124
  debug: !1,
1124
1125
  initImmediate: !0,
@@ -1156,7 +1157,7 @@ function Mt() {
1156
1157
  appendNamespaceToCIMode: !1,
1157
1158
  overloadTranslationOptionHandler: function(t) {
1158
1159
  var n = {};
1159
- if (I(t[1]) === "object" && (n = t[1]), typeof t[1] == "string" && (n.defaultValue = t[1]), typeof t[2] == "string" && (n.tDescription = t[2]), I(t[2]) === "object" || I(t[3]) === "object") {
1160
+ if (_(t[1]) === "object" && (n = t[1]), typeof t[1] == "string" && (n.defaultValue = t[1]), typeof t[2] == "string" && (n.tDescription = t[2]), _(t[2]) === "object" || _(t[3]) === "object") {
1160
1161
  var e = t[3] || t[2];
1161
1162
  Object.keys(e).forEach(function(r) {
1162
1163
  n[r] = e[r];
@@ -1186,11 +1187,11 @@ function Me(a) {
1186
1187
  }
1187
1188
  function re() {
1188
1189
  }
1189
- var qt = function(a) {
1190
- me(t, a);
1190
+ var Vt = function(a) {
1191
+ ve(t, a);
1191
1192
  function t() {
1192
1193
  var n, e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 ? arguments[1] : void 0;
1193
- if (H(this, t), n = ee(this, G(t).call(this)), ye && z.call(W(n)), n.options = Me(e), n.services = {}, n.logger = V, n.modules = {
1194
+ if (H(this, t), n = ee(this, G(t).call(this)), me && K.call(W(n)), n.options = Me(e), n.services = {}, n.logger = V, n.modules = {
1194
1195
  external: []
1195
1196
  }, r && !n.isInitialized && !e.isClone) {
1196
1197
  if (!n.options.initImmediate)
@@ -1205,22 +1206,22 @@ var qt = function(a) {
1205
1206
  key: "init",
1206
1207
  value: function() {
1207
1208
  var e = this, r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = arguments.length > 1 ? arguments[1] : void 0;
1208
- typeof r == "function" && (i = r, r = {}), r.whitelist && !r.supportedLngs && this.logger.deprecate("whitelist", 'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'), r.nonExplicitWhitelist && !r.nonExplicitSupportedLngs && this.logger.deprecate("whitelist", 'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'), this.options = D({}, Mt(), this.options, Me(r)), this.format = this.options.interpolation.format, i || (i = re);
1209
+ typeof r == "function" && (i = r, r = {}), r.whitelist && !r.supportedLngs && this.logger.deprecate("whitelist", 'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'), r.nonExplicitWhitelist && !r.nonExplicitSupportedLngs && this.logger.deprecate("whitelist", 'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'), this.options = D({}, qt(), this.options, Me(r)), this.format = this.options.interpolation.format, i || (i = re);
1209
1210
  function o(d) {
1210
1211
  return d ? typeof d == "function" ? new d() : d : null;
1211
1212
  }
1212
1213
  if (!this.options.isClone) {
1213
1214
  this.modules.logger ? V.init(o(this.modules.logger), this.options) : V.init(null, this.options);
1214
- var s = new Tt(this.options);
1215
- this.store = new At(this.options.resources, this.options);
1215
+ var s = new Ft(this.options);
1216
+ this.store = new Tt(this.options.resources, this.options);
1216
1217
  var u = this.services;
1217
- u.logger = V, u.resourceStore = this.store, u.languageUtils = s, u.pluralResolver = new _t(s, {
1218
+ u.logger = V, u.resourceStore = this.store, u.languageUtils = s, u.pluralResolver = new Ut(s, {
1218
1219
  prepend: this.options.pluralSeparator,
1219
1220
  compatibilityJSON: this.options.compatibilityJSON,
1220
1221
  simplifyPluralSuffix: this.options.simplifyPluralSuffix
1221
- }), u.interpolator = new Ut(this.options), u.utils = {
1222
+ }), u.interpolator = new Bt(this.options), u.utils = {
1222
1223
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
1223
- }, u.backendConnector = new Ht(o(this.modules.backend), u.resourceStore, u, this.options), u.backendConnector.on("*", function(d) {
1224
+ }, u.backendConnector = new Mt(o(this.modules.backend), u.resourceStore, u, this.options), u.backendConnector.on("*", function(d) {
1224
1225
  for (var y = arguments.length, h = new Array(y > 1 ? y - 1 : 0), b = 1; b < y; b++)
1225
1226
  h[b - 1] = arguments[b];
1226
1227
  e.emit.apply(e, [d].concat(h));
@@ -1269,7 +1270,7 @@ var qt = function(a) {
1269
1270
  if (s && s.toLowerCase() === "cimode")
1270
1271
  return o();
1271
1272
  var u = [], f = function(v) {
1272
- if (!!v) {
1273
+ if (v) {
1273
1274
  var m = r.services.languageUtils.toResolveHierarchy(v);
1274
1275
  m.forEach(function(d) {
1275
1276
  u.indexOf(d) < 0 && u.push(d);
@@ -1305,7 +1306,7 @@ var qt = function(a) {
1305
1306
  throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
1306
1307
  if (!e.type)
1307
1308
  throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
1308
- return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && ut.addPostProcessor(e), e.type === "3rdParty" && this.modules.external.push(e), this;
1309
+ return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && st.addPostProcessor(e), e.type === "3rdParty" && this.modules.external.push(e), this;
1309
1310
  }
1310
1311
  }, {
1311
1312
  key: "changeLanguage",
@@ -1333,7 +1334,7 @@ var qt = function(a) {
1333
1334
  value: function(e, r) {
1334
1335
  var i = this, o = function s(u, f) {
1335
1336
  var c;
1336
- if (I(f) !== "object") {
1337
+ if (_(f) !== "object") {
1337
1338
  for (var p = arguments.length, v = new Array(p > 2 ? p - 2 : 0), m = 2; m < p; m++)
1338
1339
  v[m - 2] = arguments[m];
1339
1340
  c = i.options.overloadTranslationOptionHandler([u, f].concat(v));
@@ -1437,27 +1438,35 @@ var qt = function(a) {
1437
1438
  }, s;
1438
1439
  }
1439
1440
  }]), t;
1440
- }(z), Vt = new qt();
1441
- function $t(a, t) {
1441
+ }(K), $t = new Vt();
1442
+ function zt(a, t) {
1442
1443
  if (a == null)
1443
1444
  return {};
1444
- var n = {}, e = Object.keys(a), r, i;
1445
- for (i = 0; i < e.length; i++)
1446
- r = e[i], !(t.indexOf(r) >= 0) && (n[r] = a[r]);
1445
+ var n = {};
1446
+ for (var e in a)
1447
+ if (Object.prototype.hasOwnProperty.call(a, e)) {
1448
+ if (t.indexOf(e) >= 0)
1449
+ continue;
1450
+ n[e] = a[e];
1451
+ }
1447
1452
  return n;
1448
1453
  }
1449
- function ft(a, t) {
1454
+ function ut(a, t) {
1450
1455
  if (a == null)
1451
1456
  return {};
1452
- var n = $t(a, t), e, r;
1457
+ var n = zt(a, t), e, r;
1453
1458
  if (Object.getOwnPropertySymbols) {
1454
1459
  var i = Object.getOwnPropertySymbols(a);
1455
1460
  for (r = 0; r < i.length; r++)
1456
- e = i[r], !(t.indexOf(e) >= 0) && (!Object.prototype.propertyIsEnumerable.call(a, e) || (n[e] = a[e]));
1461
+ e = i[r], !(t.indexOf(e) >= 0) && Object.prototype.propertyIsEnumerable.call(a, e) && (n[e] = a[e]);
1457
1462
  }
1458
1463
  return n;
1459
1464
  }
1460
- var oe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Kt = {
1465
+ var oe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1466
+ function ft(a) {
1467
+ return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
1468
+ }
1469
+ var Kt = {
1461
1470
  area: !0,
1462
1471
  base: !0,
1463
1472
  br: !0,
@@ -1472,14 +1481,16 @@ var oe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1472
1481
  source: !0,
1473
1482
  track: !0,
1474
1483
  wbr: !0
1475
- }, zt = /\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;
1484
+ };
1485
+ const Wt = /* @__PURE__ */ ft(Kt);
1486
+ var Xt = /\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;
1476
1487
  function qe(a) {
1477
1488
  var t = { type: "tag", name: "", voidElement: !1, attrs: {}, children: [] }, n = a.match(/<\/?([^\s]+?)[/\s>]/);
1478
- if (n && (t.name = n[1], (Kt[n[1]] || a.charAt(a.length - 2) === "/") && (t.voidElement = !0), t.name.startsWith("!--"))) {
1489
+ if (n && (t.name = n[1], (Wt[n[1]] || a.charAt(a.length - 2) === "/") && (t.voidElement = !0), t.name.startsWith("!--"))) {
1479
1490
  var e = a.indexOf("-->");
1480
1491
  return { type: "comment", comment: e !== -1 ? a.slice(4, e) : "" };
1481
1492
  }
1482
- for (var r = new RegExp(zt), i = null; (i = r.exec(a)) !== null; )
1493
+ for (var r = new RegExp(Xt), i = null; (i = r.exec(a)) !== null; )
1483
1494
  if (i[0].trim())
1484
1495
  if (i[1]) {
1485
1496
  var o = i[1].trim(), s = [o, ""];
@@ -1488,7 +1499,7 @@ function qe(a) {
1488
1499
  i[2] && (t.attrs[i[2]] = i[3].trim().substring(1, i[3].length - 1));
1489
1500
  return t;
1490
1501
  }
1491
- var Wt = /<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g, Xt = /^\s*$/, Jt = /* @__PURE__ */ Object.create(null);
1502
+ var Jt = /<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g, Qt = /^\s*$/, Gt = /* @__PURE__ */ Object.create(null);
1492
1503
  function lt(a, t) {
1493
1504
  switch (t.type) {
1494
1505
  case "text":
@@ -1504,14 +1515,14 @@ function lt(a, t) {
1504
1515
  return a + "<!--" + t.comment + "-->";
1505
1516
  }
1506
1517
  }
1507
- var Qt = { parse: function(a, t) {
1508
- t || (t = {}), t.components || (t.components = Jt);
1518
+ var Yt = { parse: function(a, t) {
1519
+ t || (t = {}), t.components || (t.components = Gt);
1509
1520
  var n, e = [], r = [], i = -1, o = !1;
1510
1521
  if (a.indexOf("<") !== 0) {
1511
1522
  var s = a.indexOf("<");
1512
1523
  e.push({ type: "text", content: s === -1 ? a : a.substring(0, s) });
1513
1524
  }
1514
- return a.replace(Wt, function(u, f) {
1525
+ return a.replace(Jt, function(u, f) {
1515
1526
  if (o) {
1516
1527
  if (u !== "</" + n.name + ">")
1517
1528
  return;
@@ -1525,14 +1536,14 @@ var Qt = { parse: function(a, t) {
1525
1536
  if (p && (i++, (n = qe(u)).type === "tag" && t.components[n.name] && (n.type = "component", o = !0), n.voidElement || o || !d || d === "<" || n.children.push({ type: "text", content: a.slice(m, a.indexOf("<", m)) }), i === 0 && e.push(n), (c = r[i - 1]) && c.children.push(n), r[i] = n), (!p || n.voidElement) && (i > -1 && (n.voidElement || n.name === u.slice(2, -1)) && (i--, n = i === -1 ? e : r[i]), !o && d !== "<" && d)) {
1526
1537
  c = i === -1 ? e : r[i].children;
1527
1538
  var h = a.indexOf("<", m), b = a.slice(m, h === -1 ? void 0 : h);
1528
- Xt.test(b) && (b = " "), (h > -1 && i + c.length >= 0 || b !== " ") && c.push({ type: "text", content: b });
1539
+ Qt.test(b) && (b = " "), (h > -1 && i + c.length >= 0 || b !== " ") && c.push({ type: "text", content: b });
1529
1540
  }
1530
1541
  }), e;
1531
1542
  }, stringify: function(a) {
1532
1543
  return a.reduce(function(t, n) {
1533
1544
  return t + lt("", n);
1534
1545
  }, "");
1535
- } }, Gt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Yt = {
1546
+ } }, Zt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, en = {
1536
1547
  "&amp;": "&",
1537
1548
  "&#38;": "&",
1538
1549
  "&lt;": "<",
@@ -1545,18 +1556,18 @@ var Qt = { parse: function(a, t) {
1545
1556
  "&#34;": '"',
1546
1557
  "&nbsp;": " ",
1547
1558
  "&#160;": " ",
1548
- "&copy;": "\xA9",
1549
- "&#169;": "\xA9",
1550
- "&reg;": "\xAE",
1551
- "&#174;": "\xAE",
1552
- "&hellip;": "\u2026",
1553
- "&#8230;": "\u2026",
1559
+ "&copy;": "©",
1560
+ "&#169;": "©",
1561
+ "&reg;": "®",
1562
+ "&#174;": "®",
1563
+ "&hellip;": "…",
1564
+ "&#8230;": "…",
1554
1565
  "&#x2F;": "/",
1555
1566
  "&#47;": "/"
1556
- }, Zt = function(t) {
1557
- return Yt[t];
1558
- }, en = function(t) {
1559
- return t.replace(Gt, Zt);
1567
+ }, tn = function(t) {
1568
+ return en[t];
1569
+ }, nn = function(t) {
1570
+ return t.replace(Zt, tn);
1560
1571
  };
1561
1572
  function Ve(a, t) {
1562
1573
  var n = Object.keys(a);
@@ -1572,14 +1583,14 @@ function $e(a) {
1572
1583
  for (var t = 1; t < arguments.length; t++) {
1573
1584
  var n = arguments[t] != null ? arguments[t] : {};
1574
1585
  t % 2 ? Ve(Object(n), !0).forEach(function(e) {
1575
- ve(a, e, n[e]);
1586
+ he(a, e, n[e]);
1576
1587
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(n)) : Ve(Object(n)).forEach(function(e) {
1577
1588
  Object.defineProperty(a, e, Object.getOwnPropertyDescriptor(n, e));
1578
1589
  });
1579
1590
  }
1580
1591
  return a;
1581
1592
  }
1582
- var je = {
1593
+ var Ee = {
1583
1594
  bindI18n: "languageChanged",
1584
1595
  bindI18nStore: "",
1585
1596
  transEmptyNodeValue: "",
@@ -1587,16 +1598,16 @@ var je = {
1587
1598
  transWrapTextNodes: "",
1588
1599
  transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
1589
1600
  useSuspense: !0,
1590
- unescape: en
1591
- }, ct, pt = St();
1592
- function tn() {
1601
+ unescape: nn
1602
+ }, ct, pt = xt();
1603
+ function rn() {
1593
1604
  var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1594
- je = $e($e({}, je), a);
1605
+ Ee = $e($e({}, Ee), a);
1595
1606
  }
1596
1607
  function dt() {
1597
- return je;
1608
+ return Ee;
1598
1609
  }
1599
- var nn = function() {
1610
+ var an = function() {
1600
1611
  function a() {
1601
1612
  H(this, a), this.usedNamespaces = {};
1602
1613
  }
@@ -1615,16 +1626,16 @@ var nn = function() {
1615
1626
  }
1616
1627
  }]), a;
1617
1628
  }();
1618
- function rn(a) {
1629
+ function on(a) {
1619
1630
  ct = a;
1620
1631
  }
1621
1632
  function gt() {
1622
1633
  return ct;
1623
1634
  }
1624
- var an = {
1635
+ var sn = {
1625
1636
  type: "3rdParty",
1626
1637
  init: function(t) {
1627
- tn(t.options.react), rn(t);
1638
+ rn(t.options.react), on(t);
1628
1639
  }
1629
1640
  };
1630
1641
  function se() {
@@ -1634,13 +1645,13 @@ function se() {
1634
1645
  typeof n[0] == "string" && (n[0] = "react-i18next:: ".concat(n[0])), (a = console).warn.apply(a, n);
1635
1646
  }
1636
1647
  }
1637
- var Ke = {};
1648
+ var ze = {};
1638
1649
  function le() {
1639
1650
  for (var a = arguments.length, t = new Array(a), n = 0; n < a; n++)
1640
1651
  t[n] = arguments[n];
1641
- typeof t[0] == "string" && Ke[t[0]] || (typeof t[0] == "string" && (Ke[t[0]] = new Date()), se.apply(void 0, t));
1652
+ typeof t[0] == "string" && ze[t[0]] || (typeof t[0] == "string" && (ze[t[0]] = /* @__PURE__ */ new Date()), se.apply(void 0, t));
1642
1653
  }
1643
- function ze(a, t, n) {
1654
+ function Ke(a, t, n) {
1644
1655
  a.loadNamespaces(t, function() {
1645
1656
  if (a.isInitialized)
1646
1657
  n();
@@ -1654,7 +1665,7 @@ function ze(a, t, n) {
1654
1665
  }
1655
1666
  });
1656
1667
  }
1657
- function on(a, t) {
1668
+ function un(a, t) {
1658
1669
  var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, e = t.languages[0], r = t.options ? t.options.fallbackLng : !1, i = t.languages[t.languages.length - 1];
1659
1670
  if (e.toLowerCase() === "cimode")
1660
1671
  return !0;
@@ -1664,7 +1675,7 @@ function on(a, t) {
1664
1675
  };
1665
1676
  return n.bindI18n && n.bindI18n.indexOf("languageChanging") > -1 && t.services.backendConnector.backend && t.isLanguageChangingTo && !o(t.isLanguageChangingTo, a) ? !1 : !!(t.hasResourceBundle(e, a) || !t.services.backendConnector.backend || t.options.resources && !t.options.partialBundledLanguages || o(e, a) && (!r || o(i, a)));
1666
1677
  }
1667
- function sn(a, t) {
1678
+ function fn(a, t) {
1668
1679
  var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
1669
1680
  if (!t.languages || !t.languages.length)
1670
1681
  return le("i18n.languages were undefined or empty", t.languages), !0;
@@ -1674,9 +1685,9 @@ function sn(a, t) {
1674
1685
  if (n.bindI18n && n.bindI18n.indexOf("languageChanging") > -1 && i.services.backendConnector.backend && i.isLanguageChangingTo && !o(i.isLanguageChangingTo, a))
1675
1686
  return !1;
1676
1687
  }
1677
- }) : on(a, t, n);
1688
+ }) : un(a, t, n);
1678
1689
  }
1679
- var un = ["format"], fn = ["children", "count", "parent", "i18nKey", "context", "tOptions", "values", "defaults", "components", "ns", "i18n", "t", "shouldUnescape"];
1690
+ var ln = ["format"], cn = ["children", "count", "parent", "i18nKey", "context", "tOptions", "values", "defaults", "components", "ns", "i18n", "t", "shouldUnescape"];
1680
1691
  function We(a, t) {
1681
1692
  var n = Object.keys(a);
1682
1693
  if (Object.getOwnPropertySymbols) {
@@ -1691,23 +1702,23 @@ function F(a) {
1691
1702
  for (var t = 1; t < arguments.length; t++) {
1692
1703
  var n = arguments[t] != null ? arguments[t] : {};
1693
1704
  t % 2 ? We(Object(n), !0).forEach(function(e) {
1694
- ve(a, e, n[e]);
1705
+ he(a, e, n[e]);
1695
1706
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(n)) : We(Object(n)).forEach(function(e) {
1696
1707
  Object.defineProperty(a, e, Object.getOwnPropertyDescriptor(n, e));
1697
1708
  });
1698
1709
  }
1699
1710
  return a;
1700
1711
  }
1701
- function Se(a, t) {
1712
+ function Oe(a, t) {
1702
1713
  if (!a)
1703
1714
  return !1;
1704
1715
  var n = a.props ? a.props.children : a.children;
1705
1716
  return t ? n.length > 0 : !!n;
1706
1717
  }
1707
- function xe(a) {
1718
+ function Se(a) {
1708
1719
  return a ? a.props ? a.props.children : a.children : [];
1709
1720
  }
1710
- function ln(a) {
1721
+ function pn(a) {
1711
1722
  return Object.prototype.toString.call(a) !== "[object Array]" ? !1 : a.every(function(t) {
1712
1723
  return ue(t);
1713
1724
  });
@@ -1715,7 +1726,7 @@ function ln(a) {
1715
1726
  function Z(a) {
1716
1727
  return Array.isArray(a) ? a : [a];
1717
1728
  }
1718
- function cn(a, t) {
1729
+ function dn(a, t) {
1719
1730
  var n = F({}, t);
1720
1731
  return n.props = Object.assign(a.props, t.props), n;
1721
1732
  }
@@ -1742,8 +1753,8 @@ function ht(a, t) {
1742
1753
  }
1743
1754
  } else if (i === null)
1744
1755
  se("Trans: the passed in value is invalid - seems you passed in a null child.");
1745
- else if (I(i) === "object") {
1746
- var p = i.format, v = ft(i, un), m = Object.keys(v);
1756
+ else if (_(i) === "object") {
1757
+ var p = i.format, v = ut(i, ln), m = Object.keys(v);
1747
1758
  if (m.length === 1) {
1748
1759
  var d = p ? "".concat(m[0], ", ").concat(p) : m[0];
1749
1760
  n += "{{".concat(d, "}}");
@@ -1753,7 +1764,7 @@ function ht(a, t) {
1753
1764
  se("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.", i);
1754
1765
  }), n;
1755
1766
  }
1756
- function pn(a, t, n, e, r, i) {
1767
+ function gn(a, t, n, e, r, i) {
1757
1768
  if (t === "")
1758
1769
  return [];
1759
1770
  var o = e.transKeepBasicHtmlNodesFor || [], s = t && new RegExp(o.join("|")).test(t);
@@ -1763,14 +1774,14 @@ function pn(a, t, n, e, r, i) {
1763
1774
  function f(h) {
1764
1775
  var b = Z(h);
1765
1776
  b.forEach(function(O) {
1766
- typeof O != "string" && (Se(O) ? f(xe(O)) : I(O) === "object" && !ue(O) && Object.assign(u, O));
1777
+ typeof O != "string" && (Oe(O) ? f(Se(O)) : _(O) === "object" && !ue(O) && Object.assign(u, O));
1767
1778
  });
1768
1779
  }
1769
1780
  f(a);
1770
- var c = Qt.parse("<0>".concat(t, "</0>")), p = F(F({}, u), r);
1781
+ var c = Yt.parse("<0>".concat(t, "</0>")), p = F(F({}, u), r);
1771
1782
  function v(h, b, O) {
1772
- var S = xe(h), A = d(S, b.children, O);
1773
- return ln(S) && A.length === 0 ? S : A;
1783
+ var S = Se(h), A = d(S, b.children, O);
1784
+ return pn(S) && A.length === 0 ? S : A;
1774
1785
  }
1775
1786
  function m(h, b, O, S, A) {
1776
1787
  h.dummy && (h.children = b), O.push(ne(h, F(F({}, h.props), {}, {
@@ -1784,13 +1795,13 @@ function pn(a, t, n, e, r, i) {
1784
1795
  if (w.type === "tag") {
1785
1796
  var C = S[parseInt(w.name, 10)];
1786
1797
  !C && O.length === 1 && O[0][w.name] && (C = O[0][w.name]), C || (C = {});
1787
- var L = Object.keys(w.attrs).length !== 0 ? cn({
1798
+ var L = Object.keys(w.attrs).length !== 0 ? dn({
1788
1799
  props: w.attrs
1789
- }, C) : C, E = ue(L), K = E && Se(w, !0) && !w.voidElement, U = s && I(L) === "object" && L.dummy && !E, l = I(a) === "object" && a !== null && Object.hasOwnProperty.call(a, w.name);
1800
+ }, C) : C, E = ue(L), z = E && Oe(w, !0) && !w.voidElement, U = s && _(L) === "object" && L.dummy && !E, l = _(a) === "object" && a !== null && Object.hasOwnProperty.call(a, w.name);
1790
1801
  if (typeof L == "string") {
1791
1802
  var g = n.services.interpolator.interpolate(L, p, n.language);
1792
1803
  k.push(g);
1793
- } else if (Se(L) || K) {
1804
+ } else if (Oe(L) || z) {
1794
1805
  var x = v(L, w, O);
1795
1806
  m(L, x, k, j);
1796
1807
  } else if (U) {
@@ -1819,9 +1830,9 @@ function pn(a, t, n, e, r, i) {
1819
1830
  var q = d(S, w.children, O);
1820
1831
  k.push("<".concat(w.name, ">").concat(q, "</").concat(w.name, ">"));
1821
1832
  }
1822
- else if (I(L) === "object" && !E) {
1823
- var _ = w.children[0] ? R : null;
1824
- _ && k.push(_);
1833
+ else if (_(L) === "object" && !E) {
1834
+ var I = w.children[0] ? R : null;
1835
+ I && k.push(I);
1825
1836
  } else
1826
1837
  w.children.length === 1 && R ? k.push(ne(L, F(F({}, L.props), {}, {
1827
1838
  key: j
@@ -1841,10 +1852,10 @@ function pn(a, t, n, e, r, i) {
1841
1852
  dummy: !0,
1842
1853
  children: a || []
1843
1854
  }], c, Z(a || []));
1844
- return xe(y[0]);
1855
+ return Se(y[0]);
1845
1856
  }
1846
- function dn(a) {
1847
- var t = a.children, n = a.count, e = a.parent, r = a.i18nKey, i = a.context, o = a.tOptions, s = o === void 0 ? {} : o, u = a.values, f = a.defaults, c = a.components, p = a.ns, v = a.i18n, m = a.t, d = a.shouldUnescape, y = ft(a, fn), h = it(pt) || {}, b = h.i18n, O = h.defaultNS, S = v || b || gt();
1857
+ function hn(a) {
1858
+ var t = a.children, n = a.count, e = a.parent, r = a.i18nKey, i = a.context, o = a.tOptions, s = o === void 0 ? {} : o, u = a.values, f = a.defaults, c = a.components, p = a.ns, v = a.i18n, m = a.t, d = a.shouldUnescape, y = ut(a, cn), h = at(pt) || {}, b = h.i18n, O = h.defaultNS, S = v || b || gt();
1848
1859
  if (!S)
1849
1860
  return le("You will need to pass in an i18next instance by using i18nextReactModule"), t;
1850
1861
  var A = m || S.t.bind(S) || function(g) {
@@ -1863,23 +1874,19 @@ function dn(a) {
1863
1874
  }, u), L), {}, {
1864
1875
  defaultValue: j,
1865
1876
  ns: w
1866
- }), K = C ? A(C, E) : j, U = pn(c || t, K, S, k, E, d), l = e !== void 0 ? e : k.defaultTransParent;
1877
+ }), z = C ? A(C, E) : j, U = gn(c || t, z, S, k, E, d), l = e !== void 0 ? e : k.defaultTransParent;
1867
1878
  return l ? ie(l, y, U) : U;
1868
1879
  }
1869
- function gn(a) {
1880
+ function vn(a) {
1870
1881
  if (Array.isArray(a))
1871
1882
  return a;
1872
1883
  }
1873
- function hn(a, t) {
1884
+ function mn(a, t) {
1874
1885
  var n = a == null ? null : typeof Symbol < "u" && a[Symbol.iterator] || a["@@iterator"];
1875
1886
  if (n != null) {
1876
1887
  var e, r, i, o, s = [], u = !0, f = !1;
1877
1888
  try {
1878
- if (i = (n = n.call(a)).next, t === 0) {
1879
- if (Object(n) !== n)
1880
- return;
1881
- u = !1;
1882
- } else
1889
+ if (i = (n = n.call(a)).next, t !== 0)
1883
1890
  for (; !(u = (e = i.call(n)).done) && (s.push(e.value), s.length !== t); u = !0)
1884
1891
  ;
1885
1892
  } catch (c) {
@@ -1902,8 +1909,8 @@ function Xe(a, t) {
1902
1909
  e[n] = a[n];
1903
1910
  return e;
1904
1911
  }
1905
- function vn(a, t) {
1906
- if (!!a) {
1912
+ function yn(a, t) {
1913
+ if (a) {
1907
1914
  if (typeof a == "string")
1908
1915
  return Xe(a, t);
1909
1916
  var n = Object.prototype.toString.call(a).slice(8, -1);
@@ -1913,12 +1920,12 @@ function vn(a, t) {
1913
1920
  return Xe(a, t);
1914
1921
  }
1915
1922
  }
1916
- function mn() {
1923
+ function bn() {
1917
1924
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1918
1925
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1919
1926
  }
1920
- function yn(a, t) {
1921
- return gn(a) || hn(a, t) || vn(a, t) || mn();
1927
+ function wn(a, t) {
1928
+ return vn(a) || mn(a, t) || yn(a, t) || bn();
1922
1929
  }
1923
1930
  function Je(a, t) {
1924
1931
  var n = Object.keys(a);
@@ -1930,26 +1937,26 @@ function Je(a, t) {
1930
1937
  }
1931
1938
  return n;
1932
1939
  }
1933
- function ke(a) {
1940
+ function xe(a) {
1934
1941
  for (var t = 1; t < arguments.length; t++) {
1935
1942
  var n = arguments[t] != null ? arguments[t] : {};
1936
1943
  t % 2 ? Je(Object(n), !0).forEach(function(e) {
1937
- ve(a, e, n[e]);
1944
+ he(a, e, n[e]);
1938
1945
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(n)) : Je(Object(n)).forEach(function(e) {
1939
1946
  Object.defineProperty(a, e, Object.getOwnPropertyDescriptor(n, e));
1940
1947
  });
1941
1948
  }
1942
1949
  return a;
1943
1950
  }
1944
- var bn = function(t, n) {
1945
- var e = Pe();
1946
- return Le(function() {
1947
- e.current = n ? e.current : t;
1951
+ var On = function(t, n) {
1952
+ var e = ke();
1953
+ return Pe(function() {
1954
+ e.current = t;
1948
1955
  }, [t, n]), e.current;
1949
1956
  };
1950
- function wn(a) {
1951
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.i18n, e = it(pt) || {}, r = e.i18n, i = e.defaultNS, o = n || r || gt();
1952
- if (o && !o.reportNamespaces && (o.reportNamespaces = new nn()), !o) {
1957
+ function Sn(a) {
1958
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.i18n, e = at(pt) || {}, r = e.i18n, i = e.defaultNS, o = n || r || gt();
1959
+ if (o && !o.reportNamespaces && (o.reportNamespaces = new an()), !o) {
1953
1960
  le("You will need to pass in an i18next instance by using initReactI18next");
1954
1961
  var s = function(C) {
1955
1962
  return Array.isArray(C) ? C[C.length - 1] : C;
@@ -1957,18 +1964,18 @@ function wn(a) {
1957
1964
  return u.t = s, u.i18n = {}, u.ready = !1, u;
1958
1965
  }
1959
1966
  o.options.react && o.options.react.wait !== void 0 && le("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
1960
- var f = ke(ke(ke({}, dt()), o.options.react), t), c = f.useSuspense, p = f.keyPrefix, v = a || i || o.options && o.options.defaultNS;
1967
+ var f = xe(xe(xe({}, dt()), o.options.react), t), c = f.useSuspense, p = f.keyPrefix, v = a || i || o.options && o.options.defaultNS;
1961
1968
  v = typeof v == "string" ? [v] : v || ["translation"], o.reportNamespaces.addUsedNamespaces && o.reportNamespaces.addUsedNamespaces(v);
1962
1969
  var m = (o.isInitialized || o.initializedStoreOnce) && v.every(function(R) {
1963
- return sn(R, o, f);
1970
+ return fn(R, o, f);
1964
1971
  });
1965
1972
  function d() {
1966
1973
  return o.getFixedT(null, f.nsMode === "fallback" ? v : v[0], p);
1967
1974
  }
1968
- var y = xt(d), h = yn(y, 2), b = h[0], O = h[1], S = v.join(), A = bn(S), k = Pe(!0);
1969
- Le(function() {
1975
+ var y = kt(d), h = wn(y, 2), b = h[0], O = h[1], S = v.join(), A = On(S), k = ke(!0);
1976
+ Pe(function() {
1970
1977
  var R = f.bindI18n, C = f.bindI18nStore;
1971
- k.current = !0, !m && !c && ze(o, v, function() {
1978
+ k.current = !0, !m && !c && Ke(o, v, function() {
1972
1979
  k.current && O(d);
1973
1980
  }), m && A && A !== S && k.current && O(d);
1974
1981
  function L() {
@@ -1982,48 +1989,49 @@ function wn(a) {
1982
1989
  });
1983
1990
  };
1984
1991
  }, [o, S]);
1985
- var w = Pe(!0);
1986
- Le(function() {
1992
+ var w = ke(!0);
1993
+ Pe(function() {
1987
1994
  k.current && !w.current && O(d), w.current = !1;
1988
1995
  }, [o, p]);
1989
1996
  var j = [b, o, m];
1990
1997
  if (j.t = b, j.i18n = o, j.ready = m, m || !m && !c)
1991
1998
  return j;
1992
1999
  throw new Promise(function(R) {
1993
- ze(o, v, function() {
2000
+ Ke(o, v, function() {
1994
2001
  R();
1995
2002
  });
1996
2003
  });
1997
2004
  }
1998
- function Re(a) {
1999
- return Re = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
2005
+ function je(a) {
2006
+ "@babel/helpers - typeof";
2007
+ return je = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
2000
2008
  return typeof t;
2001
2009
  } : function(t) {
2002
2010
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
2003
- }, Re(a);
2011
+ }, je(a);
2004
2012
  }
2005
- var vt = [], On = vt.forEach, Sn = vt.slice;
2006
- function Ce(a) {
2007
- return On.call(Sn.call(arguments, 1), function(t) {
2013
+ var vt = [], xn = vt.forEach, kn = vt.slice;
2014
+ function Re(a) {
2015
+ return xn.call(kn.call(arguments, 1), function(t) {
2008
2016
  if (t)
2009
2017
  for (var n in t)
2010
2018
  a[n] === void 0 && (a[n] = t[n]);
2011
2019
  }), a;
2012
2020
  }
2013
2021
  function mt() {
2014
- return typeof XMLHttpRequest == "function" || (typeof XMLHttpRequest > "u" ? "undefined" : Re(XMLHttpRequest)) === "object";
2022
+ return typeof XMLHttpRequest == "function" || (typeof XMLHttpRequest > "u" ? "undefined" : je(XMLHttpRequest)) === "object";
2015
2023
  }
2016
- function xn(a) {
2024
+ function Pn(a) {
2017
2025
  return !!a && typeof a.then == "function";
2018
2026
  }
2019
- function kn(a) {
2020
- return xn(a) ? a : Promise.resolve(a);
2027
+ function Ln(a) {
2028
+ return Pn(a) ? a : Promise.resolve(a);
2021
2029
  }
2022
- function Pn(a) {
2030
+ function En(a) {
2023
2031
  throw new Error('Could not dynamically require "' + a + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
2024
2032
  }
2025
- var ce = { exports: {} }, ae = { exports: {} }, Qe;
2026
- function Ln() {
2033
+ var Ce = { exports: {} }, ae = { exports: {} }, Qe;
2034
+ function jn() {
2027
2035
  return Qe || (Qe = 1, function(a, t) {
2028
2036
  var n = typeof self < "u" ? self : oe, e = function() {
2029
2037
  function i() {
@@ -2243,9 +2251,9 @@ function Ln() {
2243
2251
  var l = new E(null, { status: 0, statusText: "" });
2244
2252
  return l.type = "error", l;
2245
2253
  };
2246
- var K = [301, 302, 303, 307, 308];
2254
+ var z = [301, 302, 303, 307, 308];
2247
2255
  E.redirect = function(l, g) {
2248
- if (K.indexOf(g) === -1)
2256
+ if (z.indexOf(g) === -1)
2249
2257
  throw new RangeError("Invalid status code");
2250
2258
  return new E(null, { status: g, headers: { location: l } });
2251
2259
  }, o.DOMException = i.DOMException;
@@ -2268,22 +2276,22 @@ function Ln() {
2268
2276
  P.abort();
2269
2277
  }
2270
2278
  P.onload = function() {
2271
- var _ = {
2279
+ var I = {
2272
2280
  status: P.status,
2273
2281
  statusText: P.statusText,
2274
2282
  headers: L(P.getAllResponseHeaders() || "")
2275
2283
  };
2276
- _.url = "responseURL" in P ? P.responseURL : _.headers.get("X-Request-URL");
2284
+ I.url = "responseURL" in P ? P.responseURL : I.headers.get("X-Request-URL");
2277
2285
  var B = "response" in P ? P.response : P.responseText;
2278
- x(new E(B, _));
2286
+ x(new E(B, I));
2279
2287
  }, P.onerror = function() {
2280
2288
  T(new TypeError("Network request failed"));
2281
2289
  }, P.ontimeout = function() {
2282
2290
  T(new TypeError("Network request failed"));
2283
2291
  }, P.onabort = function() {
2284
2292
  T(new o.DOMException("Aborted", "AbortError"));
2285
- }, P.open(N.method, N.url, !0), N.credentials === "include" ? P.withCredentials = !0 : N.credentials === "omit" && (P.withCredentials = !1), "responseType" in P && s.blob && (P.responseType = "blob"), N.headers.forEach(function(_, B) {
2286
- P.setRequestHeader(B, _);
2293
+ }, P.open(N.method, N.url, !0), N.credentials === "include" ? P.withCredentials = !0 : N.credentials === "omit" && (P.withCredentials = !1), "responseType" in P && s.blob && (P.responseType = "blob"), N.headers.forEach(function(I, B) {
2294
+ P.setRequestHeader(B, I);
2287
2295
  }), N.signal && (N.signal.addEventListener("abort", q), P.onreadystatechange = function() {
2288
2296
  P.readyState === 4 && N.signal.removeEventListener("abort", q);
2289
2297
  }), P.send(typeof N._bodyInit > "u" ? null : N._bodyInit);
@@ -2298,32 +2306,34 @@ function Ln() {
2298
2306
  }
2299
2307
  (function(a, t) {
2300
2308
  var n;
2301
- if (typeof fetch == "function" && (typeof oe < "u" && oe.fetch ? n = oe.fetch : typeof window < "u" && window.fetch ? n = window.fetch : n = fetch), typeof Pn < "u" && (typeof window > "u" || typeof window.document > "u")) {
2302
- var e = n || Ln();
2309
+ if (typeof fetch == "function" && (typeof oe < "u" && oe.fetch ? n = oe.fetch : typeof window < "u" && window.fetch ? n = window.fetch : n = fetch), typeof En < "u" && (typeof window > "u" || typeof window.document > "u")) {
2310
+ var e = n || jn();
2303
2311
  e.default && (e = e.default), t.default = e, a.exports = t.default;
2304
2312
  }
2305
- })(ce, ce.exports);
2306
- const yt = ce.exports, Ge = /* @__PURE__ */ kt({
2313
+ })(Ce, Ce.exports);
2314
+ var yt = Ce.exports;
2315
+ const bt = /* @__PURE__ */ ft(yt), Ge = /* @__PURE__ */ Pt({
2307
2316
  __proto__: null,
2308
- default: yt
2309
- }, [ce.exports]);
2310
- function pe(a) {
2311
- return pe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
2317
+ default: bt
2318
+ }, [yt]);
2319
+ function ce(a) {
2320
+ "@babel/helpers - typeof";
2321
+ return ce = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
2312
2322
  return typeof t;
2313
2323
  } : function(t) {
2314
2324
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
2315
- }, pe(a);
2325
+ }, ce(a);
2316
2326
  }
2317
2327
  var $;
2318
2328
  typeof fetch == "function" && (typeof global < "u" && global.fetch ? $ = global.fetch : typeof window < "u" && window.fetch ? $ = window.fetch : $ = fetch);
2319
2329
  var te;
2320
2330
  mt() && (typeof global < "u" && global.XMLHttpRequest ? te = global.XMLHttpRequest : typeof window < "u" && window.XMLHttpRequest && (te = window.XMLHttpRequest));
2321
- var de;
2322
- typeof ActiveXObject == "function" && (typeof global < "u" && global.ActiveXObject ? de = global.ActiveXObject : typeof window < "u" && window.ActiveXObject && (de = window.ActiveXObject));
2323
- !$ && Ge && !te && !de && ($ = yt || Ge);
2331
+ var pe;
2332
+ typeof ActiveXObject == "function" && (typeof global < "u" && global.ActiveXObject ? pe = global.ActiveXObject : typeof window < "u" && window.ActiveXObject && (pe = window.ActiveXObject));
2333
+ !$ && Ge && !te && !pe && ($ = bt || Ge);
2324
2334
  typeof $ != "function" && ($ = void 0);
2325
2335
  var Ne = function(t, n) {
2326
- if (n && pe(n) === "object") {
2336
+ if (n && ce(n) === "object") {
2327
2337
  var e = "";
2328
2338
  for (var r in n)
2329
2339
  e += "&" + encodeURIComponent(r) + "=" + encodeURIComponent(n[r]);
@@ -2345,11 +2355,11 @@ var Ne = function(t, n) {
2345
2355
  });
2346
2356
  }).catch(e);
2347
2357
  }).catch(e);
2348
- }, Ze = !1, En = function(t, n, e, r) {
2358
+ }, Ze = !1, Rn = function(t, n, e, r) {
2349
2359
  t.queryStringParams && (n = Ne(n, t.queryStringParams));
2350
- var i = Ce({}, typeof t.customHeaders == "function" ? t.customHeaders() : t.customHeaders);
2360
+ var i = Re({}, typeof t.customHeaders == "function" ? t.customHeaders() : t.customHeaders);
2351
2361
  e && (i["Content-Type"] = "application/json");
2352
- var o = typeof t.requestOptions == "function" ? t.requestOptions(e) : t.requestOptions, s = Ce({
2362
+ var o = typeof t.requestOptions == "function" ? t.requestOptions(e) : t.requestOptions, s = Re({
2353
2363
  method: e ? "POST" : "GET",
2354
2364
  body: e ? t.stringify(e) : void 0,
2355
2365
  headers: i
@@ -2367,11 +2377,11 @@ var Ne = function(t, n) {
2367
2377
  r(f);
2368
2378
  }
2369
2379
  }
2370
- }, jn = function(t, n, e, r) {
2371
- e && pe(e) === "object" && (e = Ne("", e).slice(1)), t.queryStringParams && (n = Ne(n, t.queryStringParams));
2380
+ }, Cn = function(t, n, e, r) {
2381
+ e && ce(e) === "object" && (e = Ne("", e).slice(1)), t.queryStringParams && (n = Ne(n, t.queryStringParams));
2372
2382
  try {
2373
2383
  var i;
2374
- te ? i = new te() : i = new de("MSXML2.XMLHTTP.3.0"), i.open(e ? "POST" : "GET", n, 1), t.crossDomain || i.setRequestHeader("X-Requested-With", "XMLHttpRequest"), i.withCredentials = !!t.withCredentials, e && i.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"), i.overrideMimeType && i.overrideMimeType("application/json");
2384
+ te ? i = new te() : i = new pe("MSXML2.XMLHTTP.3.0"), i.open(e ? "POST" : "GET", n, 1), t.crossDomain || i.setRequestHeader("X-Requested-With", "XMLHttpRequest"), i.withCredentials = !!t.withCredentials, e && i.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"), i.overrideMimeType && i.overrideMimeType("application/json");
2375
2385
  var o = t.customHeaders;
2376
2386
  if (o = typeof o == "function" ? o() : o, o)
2377
2387
  for (var s in o)
@@ -2385,31 +2395,31 @@ var Ne = function(t, n) {
2385
2395
  } catch (u) {
2386
2396
  console && console.log(u);
2387
2397
  }
2388
- }, Rn = function(t, n, e, r) {
2398
+ }, Nn = function(t, n, e, r) {
2389
2399
  if (typeof e == "function" && (r = e, e = void 0), r = r || function() {
2390
2400
  }, $)
2391
- return En(t, n, e, r);
2401
+ return Rn(t, n, e, r);
2392
2402
  if (mt() || typeof ActiveXObject == "function")
2393
- return jn(t, n, e, r);
2403
+ return Cn(t, n, e, r);
2394
2404
  r(new Error("No fetch and no xhr implementation found!"));
2395
2405
  };
2396
- function Cn(a, t) {
2406
+ function An(a, t) {
2397
2407
  if (!(a instanceof t))
2398
2408
  throw new TypeError("Cannot call a class as a function");
2399
2409
  }
2400
- function et(a, t) {
2410
+ function Tn(a, t) {
2401
2411
  for (var n = 0; n < t.length; n++) {
2402
2412
  var e = t[n];
2403
2413
  e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(a, e.key, e);
2404
2414
  }
2405
2415
  }
2406
- function Nn(a, t, n) {
2407
- return t && et(a.prototype, t), n && et(a, n), Object.defineProperty(a, "prototype", { writable: !1 }), a;
2416
+ function Fn(a, t, n) {
2417
+ return t && Tn(a.prototype, t), Object.defineProperty(a, "prototype", { writable: !1 }), a;
2408
2418
  }
2409
- function An(a, t, n) {
2419
+ function Dn(a, t, n) {
2410
2420
  return t in a ? Object.defineProperty(a, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : a[t] = n, a;
2411
2421
  }
2412
- var Tn = function() {
2422
+ var _n = function() {
2413
2423
  return {
2414
2424
  loadPath: "/locales/{{lng}}/{{ns}}.json",
2415
2425
  addPath: "/locales/add/{{lng}}/{{ns}}",
@@ -2419,9 +2429,9 @@ var Tn = function() {
2419
2429
  },
2420
2430
  stringify: JSON.stringify,
2421
2431
  parsePayload: function(n, e, r) {
2422
- return An({}, e, r || "");
2432
+ return Dn({}, e, r || "");
2423
2433
  },
2424
- request: Rn,
2434
+ request: Nn,
2425
2435
  reloadInterval: typeof window < "u" ? !1 : 60 * 60 * 1e3,
2426
2436
  customHeaders: {},
2427
2437
  queryStringParams: {},
@@ -2434,16 +2444,16 @@ var Tn = function() {
2434
2444
  cache: "default"
2435
2445
  }
2436
2446
  };
2437
- }, bt = function() {
2447
+ }, wt = function() {
2438
2448
  function a(t) {
2439
2449
  var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2440
- Cn(this, a), this.services = t, this.options = n, this.allOptions = e, this.type = "backend", this.init(t, n, e);
2450
+ An(this, a), this.services = t, this.options = n, this.allOptions = e, this.type = "backend", this.init(t, n, e);
2441
2451
  }
2442
- return Nn(a, [{
2452
+ return Fn(a, [{
2443
2453
  key: "init",
2444
2454
  value: function(n) {
2445
2455
  var e = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2446
- this.services = n, this.options = Ce(r, this.options || {}, Tn()), this.allOptions = i, this.services && this.options.reloadInterval && setInterval(function() {
2456
+ this.services = n, this.options = Re(r, this.options || {}, _n()), this.allOptions = i, this.services && this.options.reloadInterval && setInterval(function() {
2447
2457
  return e.reload();
2448
2458
  }, this.options.reloadInterval);
2449
2459
  }
@@ -2461,7 +2471,7 @@ var Tn = function() {
2461
2471
  key: "_readAny",
2462
2472
  value: function(n, e, r, i, o) {
2463
2473
  var s = this, u = this.options.loadPath;
2464
- typeof this.options.loadPath == "function" && (u = this.options.loadPath(n, r)), u = kn(u), u.then(function(f) {
2474
+ typeof this.options.loadPath == "function" && (u = this.options.loadPath(n, r)), u = Ln(u), u.then(function(f) {
2465
2475
  if (!f)
2466
2476
  return o(null, {});
2467
2477
  var c = s.services.interpolator.interpolate(f, {
@@ -2499,7 +2509,7 @@ var Tn = function() {
2499
2509
  key: "create",
2500
2510
  value: function(n, e, r, i, o) {
2501
2511
  var s = this;
2502
- if (!!this.options.addPath) {
2512
+ if (this.options.addPath) {
2503
2513
  typeof n == "string" && (n = [n]);
2504
2514
  var u = this.options.parsePayload(e, r, i), f = 0, c = [], p = [];
2505
2515
  n.forEach(function(v) {
@@ -2539,16 +2549,16 @@ var Tn = function() {
2539
2549
  }
2540
2550
  }]), a;
2541
2551
  }();
2542
- bt.type = "backend";
2543
- var wt = [], Fn = wt.forEach, Dn = wt.slice;
2544
- function In(a) {
2545
- return Fn.call(Dn.call(arguments, 1), function(t) {
2552
+ wt.type = "backend";
2553
+ var Ot = [], In = Ot.forEach, Un = Ot.slice;
2554
+ function Bn(a) {
2555
+ return In.call(Un.call(arguments, 1), function(t) {
2546
2556
  if (t)
2547
2557
  for (var n in t)
2548
2558
  a[n] === void 0 && (a[n] = t[n]);
2549
2559
  }), a;
2550
2560
  }
2551
- var tt = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, _n = function(t, n, e) {
2561
+ var et = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Hn = function(t, n, e) {
2552
2562
  var r = e || {};
2553
2563
  r.path = r.path || "/";
2554
2564
  var i = encodeURIComponent(n), o = t + "=" + i;
@@ -2559,12 +2569,12 @@ var tt = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, _n = function(t, n, e) {
2559
2569
  o += "; Max-Age=" + Math.floor(s);
2560
2570
  }
2561
2571
  if (r.domain) {
2562
- if (!tt.test(r.domain))
2572
+ if (!et.test(r.domain))
2563
2573
  throw new TypeError("option domain is invalid");
2564
2574
  o += "; Domain=" + r.domain;
2565
2575
  }
2566
2576
  if (r.path) {
2567
- if (!tt.test(r.path))
2577
+ if (!et.test(r.path))
2568
2578
  throw new TypeError("option path is invalid");
2569
2579
  o += "; Path=" + r.path;
2570
2580
  }
@@ -2593,13 +2603,13 @@ var tt = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, _n = function(t, n, e) {
2593
2603
  }
2594
2604
  }
2595
2605
  return o;
2596
- }, nt = {
2606
+ }, tt = {
2597
2607
  create: function(t, n, e, r) {
2598
2608
  var i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
2599
2609
  path: "/",
2600
2610
  sameSite: "strict"
2601
2611
  };
2602
- e && (i.expires = new Date(), i.expires.setTime(i.expires.getTime() + e * 60 * 1e3)), r && (i.domain = r), document.cookie = _n(t, encodeURIComponent(n), i);
2612
+ e && (i.expires = /* @__PURE__ */ new Date(), i.expires.setTime(i.expires.getTime() + e * 60 * 1e3)), r && (i.domain = r), document.cookie = Hn(t, encodeURIComponent(n), i);
2603
2613
  },
2604
2614
  read: function(t) {
2605
2615
  for (var n = t + "=", e = document.cookie.split(";"), r = 0; r < e.length; r++) {
@@ -2613,20 +2623,20 @@ var tt = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, _n = function(t, n, e) {
2613
2623
  remove: function(t) {
2614
2624
  this.create(t, "", -1);
2615
2625
  }
2616
- }, Un = {
2626
+ }, Mn = {
2617
2627
  name: "cookie",
2618
2628
  lookup: function(t) {
2619
2629
  var n;
2620
2630
  if (t.lookupCookie && typeof document < "u") {
2621
- var e = nt.read(t.lookupCookie);
2631
+ var e = tt.read(t.lookupCookie);
2622
2632
  e && (n = e);
2623
2633
  }
2624
2634
  return n;
2625
2635
  },
2626
2636
  cacheUserLanguage: function(t, n) {
2627
- n.lookupCookie && typeof document < "u" && nt.create(n.lookupCookie, t, n.cookieMinutes, n.cookieDomain, n.cookieOptions);
2637
+ n.lookupCookie && typeof document < "u" && tt.create(n.lookupCookie, t, n.cookieMinutes, n.cookieDomain, n.cookieOptions);
2628
2638
  }
2629
- }, Bn = {
2639
+ }, qn = {
2630
2640
  name: "querystring",
2631
2641
  lookup: function(t) {
2632
2642
  var n;
@@ -2640,49 +2650,49 @@ var tt = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, _n = function(t, n, e) {
2640
2650
  }
2641
2651
  return n;
2642
2652
  }
2643
- }, ge;
2653
+ }, de;
2644
2654
  try {
2645
- ge = window !== "undefined" && window.localStorage !== null;
2646
- var rt = "i18next.translate.boo";
2647
- window.localStorage.setItem(rt, "foo"), window.localStorage.removeItem(rt);
2655
+ de = window !== "undefined" && window.localStorage !== null;
2656
+ var nt = "i18next.translate.boo";
2657
+ window.localStorage.setItem(nt, "foo"), window.localStorage.removeItem(nt);
2648
2658
  } catch {
2649
- ge = !1;
2659
+ de = !1;
2650
2660
  }
2651
- var Hn = {
2661
+ var Vn = {
2652
2662
  name: "localStorage",
2653
2663
  lookup: function(t) {
2654
2664
  var n;
2655
- if (t.lookupLocalStorage && ge) {
2665
+ if (t.lookupLocalStorage && de) {
2656
2666
  var e = window.localStorage.getItem(t.lookupLocalStorage);
2657
2667
  e && (n = e);
2658
2668
  }
2659
2669
  return n;
2660
2670
  },
2661
2671
  cacheUserLanguage: function(t, n) {
2662
- n.lookupLocalStorage && ge && window.localStorage.setItem(n.lookupLocalStorage, t);
2672
+ n.lookupLocalStorage && de && window.localStorage.setItem(n.lookupLocalStorage, t);
2663
2673
  }
2664
- }, he;
2674
+ }, ge;
2665
2675
  try {
2666
- he = window !== "undefined" && window.sessionStorage !== null;
2667
- var at = "i18next.translate.boo";
2668
- window.sessionStorage.setItem(at, "foo"), window.sessionStorage.removeItem(at);
2676
+ ge = window !== "undefined" && window.sessionStorage !== null;
2677
+ var rt = "i18next.translate.boo";
2678
+ window.sessionStorage.setItem(rt, "foo"), window.sessionStorage.removeItem(rt);
2669
2679
  } catch {
2670
- he = !1;
2680
+ ge = !1;
2671
2681
  }
2672
- var Mn = {
2682
+ var $n = {
2673
2683
  name: "sessionStorage",
2674
2684
  lookup: function(t) {
2675
2685
  var n;
2676
- if (t.lookupsessionStorage && he) {
2686
+ if (t.lookupsessionStorage && ge) {
2677
2687
  var e = window.sessionStorage.getItem(t.lookupsessionStorage);
2678
2688
  e && (n = e);
2679
2689
  }
2680
2690
  return n;
2681
2691
  },
2682
2692
  cacheUserLanguage: function(t, n) {
2683
- n.lookupsessionStorage && he && window.sessionStorage.setItem(n.lookupsessionStorage, t);
2693
+ n.lookupsessionStorage && ge && window.sessionStorage.setItem(n.lookupsessionStorage, t);
2684
2694
  }
2685
- }, qn = {
2695
+ }, zn = {
2686
2696
  name: "navigator",
2687
2697
  lookup: function(t) {
2688
2698
  var n = [];
@@ -2694,13 +2704,13 @@ var Mn = {
2694
2704
  }
2695
2705
  return n.length > 0 ? n : void 0;
2696
2706
  }
2697
- }, Vn = {
2707
+ }, Kn = {
2698
2708
  name: "htmlTag",
2699
2709
  lookup: function(t) {
2700
2710
  var n, e = t.htmlTag || (typeof document < "u" ? document.documentElement : null);
2701
2711
  return e && typeof e.getAttribute == "function" && (n = e.getAttribute("lang")), n;
2702
2712
  }
2703
- }, $n = {
2713
+ }, Wn = {
2704
2714
  name: "path",
2705
2715
  lookup: function(t) {
2706
2716
  var n;
@@ -2716,7 +2726,7 @@ var Mn = {
2716
2726
  }
2717
2727
  return n;
2718
2728
  }
2719
- }, Kn = {
2729
+ }, Xn = {
2720
2730
  name: "subdomain",
2721
2731
  lookup: function(t) {
2722
2732
  var n;
@@ -2727,17 +2737,20 @@ var Mn = {
2727
2737
  return n;
2728
2738
  }
2729
2739
  };
2730
- function zn() {
2740
+ function Jn() {
2731
2741
  return {
2732
2742
  order: ["querystring", "cookie", "localStorage", "sessionStorage", "navigator", "htmlTag"],
2733
2743
  lookupQuerystring: "lng",
2734
2744
  lookupCookie: "i18next",
2735
2745
  lookupLocalStorage: "i18nextLng",
2746
+ // cache user language
2736
2747
  caches: ["localStorage"],
2737
2748
  excludeCacheFor: ["cimode"]
2749
+ //cookieMinutes: 10,
2750
+ //cookieDomain: 'myDomain'
2738
2751
  };
2739
2752
  }
2740
- var Ot = /* @__PURE__ */ function() {
2753
+ var St = /* @__PURE__ */ function() {
2741
2754
  function a(t) {
2742
2755
  var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2743
2756
  H(this, a), this.type = "languageDetector", this.detectors = {}, this.init(t, n);
@@ -2746,7 +2759,7 @@ var Ot = /* @__PURE__ */ function() {
2746
2759
  key: "init",
2747
2760
  value: function(n) {
2748
2761
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2749
- this.services = n, this.options = In(e, this.options || {}, zn()), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = r, this.addDetector(Un), this.addDetector(Bn), this.addDetector(Hn), this.addDetector(Mn), this.addDetector(qn), this.addDetector(Vn), this.addDetector($n), this.addDetector(Kn);
2762
+ this.services = n, this.options = Bn(e, this.options || {}, Jn()), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = r, this.addDetector(Mn), this.addDetector(qn), this.addDetector(Vn), this.addDetector($n), this.addDetector(zn), this.addDetector(Kn), this.addDetector(Wn), this.addDetector(Xn);
2750
2763
  }
2751
2764
  }, {
2752
2765
  key: "addDetector",
@@ -2776,14 +2789,14 @@ var Ot = /* @__PURE__ */ function() {
2776
2789
  }
2777
2790
  }]), a;
2778
2791
  }();
2779
- Ot.type = "languageDetector";
2780
- function Xn({
2792
+ St.type = "languageDetector";
2793
+ function Gn({
2781
2794
  detectorConfig: a,
2782
2795
  translationPath: t,
2783
2796
  customDetectors: n,
2784
2797
  ...e
2785
2798
  }) {
2786
- const r = new Ot(), i = {
2799
+ const r = new St(), i = {
2787
2800
  name: "hashRouterQuerystringDetector",
2788
2801
  lookup: (f) => {
2789
2802
  try {
@@ -2803,39 +2816,52 @@ function Xn({
2803
2816
  });
2804
2817
  const u = {
2805
2818
  fallbackLng: "en-US",
2819
+ // set to false for production
2806
2820
  debug: !0,
2821
+ // used to traverse nesting in tree-like translation structures
2807
2822
  keySeparator: ".",
2808
2823
  backend: {
2824
+ /*
2825
+ * this is the path to your translation files
2826
+ * this can also take an absolute path as well as the current relative path
2827
+ * relative path currently points to public/locales
2828
+ */
2809
2829
  loadPath: t || "/locales/{{lng}}/{{ns}}.json"
2810
2830
  },
2811
2831
  interpolation: {
2832
+ // React takes care of interpolation for us
2812
2833
  escapeValue: !1
2813
2834
  },
2814
2835
  detection: a || {
2836
+ // order and from where user language should be detected
2815
2837
  order: [
2816
2838
  "querystring",
2817
2839
  "hashRouterQuerystringDetector",
2818
2840
  "cookie",
2819
2841
  "localStorage"
2820
2842
  ],
2843
+ // keys or params to lookup language from
2821
2844
  lookupQuerystring: "lang",
2822
2845
  lookupCookie: "lang",
2823
2846
  lookupSessionStorage: "lang",
2824
2847
  lookupLocalStorage: "lang",
2848
+ // cache user language on
2825
2849
  caches: ["localStorage", "cookie"],
2850
+ // languages to not persist (cookie, localStorage)
2826
2851
  excludeCacheFor: ["cimode"],
2852
+ // optional set cookie options, reference:[MDN Set-Cookie docs](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie)
2827
2853
  cookieOptions: { path: "/", sameSite: "strict" }
2828
2854
  },
2829
2855
  ...e
2830
2856
  };
2831
- return Vt.use(bt).use(r).use(an).init(u);
2857
+ return $t.use(wt).use(r).use(sn).init(u);
2832
2858
  }
2833
- const Jn = dn;
2834
- function Qn(a = "translation", t) {
2835
- return wn([a, "design-system"], t);
2859
+ const Yn = hn;
2860
+ function Zn(a = "translation", t) {
2861
+ return Sn([a, "design-system"], t);
2836
2862
  }
2837
2863
  export {
2838
- Jn as SpsLanguage,
2839
- Xn as localize,
2840
- Qn as useSpsLanguage
2864
+ Yn as SpsLanguage,
2865
+ Gn as localize,
2866
+ Zn as useSpsLanguage
2841
2867
  };