@ukpc-lib/react 0.16.15 → 0.16.16-sandbox.saas-9356.patch-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.
@@ -1,6 +1,9 @@
1
- import { r as M, c as ce, g as Jt, s as Xt, j as E } from "./react-to-web-component-w5r1Fs9q.js";
2
- import { a as Wt, _ as Z } from "./setPrototypeOf-CP0c5ut2.js";
3
- function Gt(i, e) {
1
+ var Xt = Object.defineProperty;
2
+ var Wt = (i, e, t) => e in i ? Xt(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
3
+ var ge = (i, e, t) => (Wt(i, typeof e != "symbol" ? e + "" : e, t), t);
4
+ import { r as M, c as ce, g as Gt, s as Qt, j as E } from "./react-to-web-component-w5r1Fs9q.js";
5
+ import { a as Yt, _ as Z } from "./setPrototypeOf-CP0c5ut2.js";
6
+ function Zt(i, e) {
4
7
  for (var t = 0; t < e.length; t++) {
5
8
  const n = e[t];
6
9
  if (typeof n != "string" && !Array.isArray(n)) {
@@ -28,7 +31,7 @@ function B(i, e) {
28
31
  if (!(i instanceof e))
29
32
  throw new TypeError("Cannot call a class as a function");
30
33
  }
31
- function Qt(i, e) {
34
+ function en(i, e) {
32
35
  if (U(i) != "object" || !i)
33
36
  return i;
34
37
  var t = i[Symbol.toPrimitive];
@@ -40,22 +43,22 @@ function Qt(i, e) {
40
43
  }
41
44
  return (e === "string" ? String : Number)(i);
42
45
  }
43
- function kt(i) {
44
- var e = Qt(i, "string");
46
+ function Lt(i) {
47
+ var e = en(i, "string");
45
48
  return U(e) == "symbol" ? e : e + "";
46
49
  }
47
- function Me(i, e) {
50
+ function qe(i, e) {
48
51
  for (var t = 0; t < e.length; t++) {
49
52
  var n = e[t];
50
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(i, kt(n.key), n);
53
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(i, Lt(n.key), n);
51
54
  }
52
55
  }
53
56
  function H(i, e, t) {
54
- return e && Me(i.prototype, e), t && Me(i, t), Object.defineProperty(i, "prototype", {
57
+ return e && qe(i.prototype, e), t && qe(i, t), Object.defineProperty(i, "prototype", {
55
58
  writable: !1
56
59
  }), i;
57
60
  }
58
- function Se(i, e) {
61
+ function xe(i, e) {
59
62
  if (typeof e != "function" && e !== null)
60
63
  throw new TypeError("Super expression must either be null or a function");
61
64
  i.prototype = Object.create(e && e.prototype, {
@@ -66,7 +69,7 @@ function Se(i, e) {
66
69
  }
67
70
  }), Object.defineProperty(i, "prototype", {
68
71
  writable: !1
69
- }), e && Wt(i, e);
72
+ }), e && Yt(i, e);
70
73
  }
71
74
  function de(i, e) {
72
75
  if (e && (U(e) == "object" || typeof e == "function"))
@@ -81,43 +84,43 @@ function X(i) {
81
84
  }, X(i);
82
85
  }
83
86
  function W(i, e, t) {
84
- return (e = kt(e)) in i ? Object.defineProperty(i, e, {
87
+ return (e = Lt(e)) in i ? Object.defineProperty(i, e, {
85
88
  value: t,
86
89
  enumerable: !0,
87
90
  configurable: !0,
88
91
  writable: !0
89
92
  }) : i[e] = t, i;
90
93
  }
91
- function Lt(i) {
94
+ function Rt(i) {
92
95
  if (Array.isArray(i))
93
96
  return i;
94
97
  }
95
- function Yt(i) {
98
+ function tn(i) {
96
99
  if (typeof Symbol < "u" && i[Symbol.iterator] != null || i["@@iterator"] != null)
97
100
  return Array.from(i);
98
101
  }
99
- function qe(i, e) {
102
+ function Ke(i, e) {
100
103
  (e == null || e > i.length) && (e = i.length);
101
104
  for (var t = 0, n = Array(e); t < e; t++)
102
105
  n[t] = i[t];
103
106
  return n;
104
107
  }
105
- function Rt(i, e) {
108
+ function Et(i, e) {
106
109
  if (i) {
107
110
  if (typeof i == "string")
108
- return qe(i, e);
111
+ return Ke(i, e);
109
112
  var t = {}.toString.call(i).slice(8, -1);
110
- return t === "Object" && i.constructor && (t = i.constructor.name), t === "Map" || t === "Set" ? Array.from(i) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? qe(i, e) : void 0;
113
+ return t === "Object" && i.constructor && (t = i.constructor.name), t === "Map" || t === "Set" ? Array.from(i) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? Ke(i, e) : void 0;
111
114
  }
112
115
  }
113
- function Et() {
116
+ function Ct() {
114
117
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
115
118
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
116
119
  }
117
- function Zt(i) {
118
- return Lt(i) || Yt(i) || Rt(i) || Et();
120
+ function nn(i) {
121
+ return Rt(i) || tn(i) || Et(i) || Ct();
119
122
  }
120
- function Ke(i, e) {
123
+ function Ve(i, e) {
121
124
  var t = Object.keys(i);
122
125
  if (Object.getOwnPropertySymbols) {
123
126
  var n = Object.getOwnPropertySymbols(i);
@@ -127,18 +130,18 @@ function Ke(i, e) {
127
130
  }
128
131
  return t;
129
132
  }
130
- function Ve(i) {
133
+ function ze(i) {
131
134
  for (var e = 1; e < arguments.length; e++) {
132
135
  var t = arguments[e] != null ? arguments[e] : {};
133
- e % 2 ? Ke(Object(t), !0).forEach(function(n) {
136
+ e % 2 ? Ve(Object(t), !0).forEach(function(n) {
134
137
  W(i, n, t[n]);
135
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : Ke(Object(t)).forEach(function(n) {
138
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : Ve(Object(t)).forEach(function(n) {
136
139
  Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
137
140
  });
138
141
  }
139
142
  return i;
140
143
  }
141
- var en = {
144
+ var rn = {
142
145
  type: "logger",
143
146
  log: function(e) {
144
147
  this.output("log", e);
@@ -152,7 +155,7 @@ var en = {
152
155
  output: function(e, t) {
153
156
  console && console[e] && console[e].apply(console, t);
154
157
  }
155
- }, tn = function() {
158
+ }, an = function() {
156
159
  function i(e) {
157
160
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
158
161
  B(this, i), this.init(e, t);
@@ -161,7 +164,7 @@ var en = {
161
164
  key: "init",
162
165
  value: function(t) {
163
166
  var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
164
- this.prefix = n.prefix || "i18next:", this.logger = t || en, this.options = n, this.debug = n.debug;
167
+ this.prefix = n.prefix || "i18next:", this.logger = t || rn, this.options = n, this.debug = n.debug;
165
168
  }
166
169
  }, {
167
170
  key: "setDebug",
@@ -204,7 +207,7 @@ var en = {
204
207
  }, {
205
208
  key: "create",
206
209
  value: function(t) {
207
- return new i(this.logger, Ve(Ve({}, {
210
+ return new i(this.logger, ze(ze({}, {
208
211
  prefix: "".concat(this.prefix, ":").concat(t, ":")
209
212
  }), this.options));
210
213
  }
@@ -214,7 +217,7 @@ var en = {
214
217
  return t = t || this.options, t.prefix = t.prefix || this.prefix, new i(this.logger, t);
215
218
  }
216
219
  }]), i;
217
- }(), J = new tn(), ee = function() {
220
+ }(), J = new an(), ee = function() {
218
221
  function i() {
219
222
  B(this, i), this.observers = {};
220
223
  }
@@ -265,15 +268,15 @@ function se() {
265
268
  });
266
269
  return t.resolve = i, t.reject = e, t;
267
270
  }
268
- function ze(i) {
271
+ function Je(i) {
269
272
  return i == null ? "" : "" + i;
270
273
  }
271
- function nn(i, e, t) {
274
+ function on(i, e, t) {
272
275
  i.forEach(function(n) {
273
276
  e[n] && (t[n] = e[n]);
274
277
  });
275
278
  }
276
- function Fe(i, e, t) {
279
+ function Ue(i, e, t) {
277
280
  function n(s) {
278
281
  return s && s.indexOf("###") > -1 ? s.replace(/###/g, ".") : s;
279
282
  }
@@ -291,32 +294,32 @@ function Fe(i, e, t) {
291
294
  k: n(a.shift())
292
295
  };
293
296
  }
294
- function Je(i, e, t) {
295
- var n = Fe(i, e, Object), r = n.obj, a = n.k;
297
+ function Xe(i, e, t) {
298
+ var n = Ue(i, e, Object), r = n.obj, a = n.k;
296
299
  r[a] = t;
297
300
  }
298
- function rn(i, e, t, n) {
299
- var r = Fe(i, e, Object), a = r.obj, o = r.k;
301
+ function sn(i, e, t, n) {
302
+ var r = Ue(i, e, Object), a = r.obj, o = r.k;
300
303
  a[o] = a[o] || [], a[o].push(t);
301
304
  }
302
- function ye(i, e) {
303
- var t = Fe(i, e), n = t.obj, r = t.k;
305
+ function be(i, e) {
306
+ var t = Ue(i, e), n = t.obj, r = t.k;
304
307
  if (n)
305
308
  return n[r];
306
309
  }
307
- function an(i, e, t) {
308
- var n = ye(i, t);
309
- return n !== void 0 ? n : ye(e, t);
310
+ function un(i, e, t) {
311
+ var n = be(i, t);
312
+ return n !== void 0 ? n : be(e, t);
310
313
  }
311
- function Ct(i, e, t) {
314
+ function _t(i, e, t) {
312
315
  for (var n in e)
313
- n !== "__proto__" && n !== "constructor" && (n in i ? typeof i[n] == "string" || i[n] instanceof String || typeof e[n] == "string" || e[n] instanceof String ? t && (i[n] = e[n]) : Ct(i[n], e[n], t) : i[n] = e[n]);
316
+ n !== "__proto__" && n !== "constructor" && (n in i ? typeof i[n] == "string" || i[n] instanceof String || typeof e[n] == "string" || e[n] instanceof String ? t && (i[n] = e[n]) : _t(i[n], e[n], t) : i[n] = e[n]);
314
317
  return i;
315
318
  }
316
319
  function re(i) {
317
320
  return i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
318
321
  }
319
- var on = {
322
+ var fn = {
320
323
  "&": "&amp;",
321
324
  "<": "&lt;",
322
325
  ">": "&gt;",
@@ -324,15 +327,15 @@ var on = {
324
327
  "'": "&#39;",
325
328
  "/": "&#x2F;"
326
329
  };
327
- function sn(i) {
330
+ function cn(i) {
328
331
  return typeof i == "string" ? i.replace(/[&<>"'\/]/g, function(e) {
329
- return on[e];
332
+ return fn[e];
330
333
  }) : i;
331
334
  }
332
- var xe = typeof window < "u" && window.navigator && typeof window.navigator.userAgentData > "u" && window.navigator.userAgent && window.navigator.userAgent.indexOf("MSIE") > -1, un = [" ", ",", "?", "!", ";"];
333
- function fn(i, e, t) {
335
+ var Pe = typeof window < "u" && window.navigator && typeof window.navigator.userAgentData > "u" && window.navigator.userAgent && window.navigator.userAgent.indexOf("MSIE") > -1, ln = [" ", ",", "?", "!", ";"];
336
+ function dn(i, e, t) {
334
337
  e = e || "", t = t || "";
335
- var n = un.filter(function(s) {
338
+ var n = ln.filter(function(s) {
336
339
  return e.indexOf(s) < 0 && t.indexOf(s) < 0;
337
340
  });
338
341
  if (n.length === 0)
@@ -346,7 +349,7 @@ function fn(i, e, t) {
346
349
  }
347
350
  return a;
348
351
  }
349
- function be(i, e) {
352
+ function we(i, e) {
350
353
  var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
351
354
  if (i) {
352
355
  if (i[e])
@@ -368,14 +371,14 @@ function be(i, e) {
368
371
  return u[s];
369
372
  }
370
373
  var d = n.slice(a + o).join(t);
371
- return d ? be(u, d, t) : void 0;
374
+ return d ? we(u, d, t) : void 0;
372
375
  }
373
376
  r = r[n[a]];
374
377
  }
375
378
  return r;
376
379
  }
377
380
  }
378
- function Xe(i, e) {
381
+ function We(i, e) {
379
382
  var t = Object.keys(i);
380
383
  if (Object.getOwnPropertySymbols) {
381
384
  var n = Object.getOwnPropertySymbols(i);
@@ -385,19 +388,19 @@ function Xe(i, e) {
385
388
  }
386
389
  return t;
387
390
  }
388
- function ge(i) {
391
+ function he(i) {
389
392
  for (var e = 1; e < arguments.length; e++) {
390
393
  var t = arguments[e] != null ? arguments[e] : {};
391
- e % 2 ? Xe(Object(t), !0).forEach(function(n) {
394
+ e % 2 ? We(Object(t), !0).forEach(function(n) {
392
395
  W(i, n, t[n]);
393
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : Xe(Object(t)).forEach(function(n) {
396
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : We(Object(t)).forEach(function(n) {
394
397
  Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
395
398
  });
396
399
  }
397
400
  return i;
398
401
  }
399
- function cn(i) {
400
- var e = ln();
402
+ function pn(i) {
403
+ var e = gn();
401
404
  return function() {
402
405
  var n = X(i), r;
403
406
  if (e) {
@@ -408,7 +411,7 @@ function cn(i) {
408
411
  return de(this, r);
409
412
  };
410
413
  }
411
- function ln() {
414
+ function gn() {
412
415
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
413
416
  return !1;
414
417
  if (typeof Proxy == "function")
@@ -420,15 +423,15 @@ function ln() {
420
423
  return !1;
421
424
  }
422
425
  }
423
- var dn = function(i) {
424
- Se(t, i);
425
- var e = cn(t);
426
+ var hn = function(i) {
427
+ xe(t, i);
428
+ var e = pn(t);
426
429
  function t(n) {
427
430
  var r, a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
428
431
  ns: ["translation"],
429
432
  defaultNS: "translation"
430
433
  };
431
- return B(this, t), r = e.call(this), xe && ee.call(Z(r)), r.data = n || {}, r.options = a, r.options.keySeparator === void 0 && (r.options.keySeparator = "."), r.options.ignoreJSONStructure === void 0 && (r.options.ignoreJSONStructure = !0), r;
434
+ return B(this, t), r = e.call(this), Pe && ee.call(Z(r)), r.data = n || {}, r.options = a, r.options.keySeparator === void 0 && (r.options.keySeparator = "."), r.options.ignoreJSONStructure === void 0 && (r.options.ignoreJSONStructure = !0), r;
432
435
  }
433
436
  return H(t, [{
434
437
  key: "addNamespaces",
@@ -446,8 +449,8 @@ var dn = function(i) {
446
449
  value: function(r, a, o) {
447
450
  var s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, u = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator, d = s.ignoreJSONStructure !== void 0 ? s.ignoreJSONStructure : this.options.ignoreJSONStructure, c = [r, a];
448
451
  o && typeof o != "string" && (c = c.concat(o)), o && typeof o == "string" && (c = c.concat(u ? o.split(u) : o)), r.indexOf(".") > -1 && (c = r.split("."));
449
- var f = ye(this.data, c);
450
- return f || !d || typeof o != "string" ? f : be(this.data && this.data[r] && this.data[r][a], o, u);
452
+ var f = be(this.data, c);
453
+ return f || !d || typeof o != "string" ? f : we(this.data && this.data[r] && this.data[r][a], o, u);
451
454
  }
452
455
  }, {
453
456
  key: "addResource",
@@ -455,7 +458,7 @@ var dn = function(i) {
455
458
  var u = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
456
459
  silent: !1
457
460
  }, d = u.keySeparator !== void 0 ? u.keySeparator : this.options.keySeparator, c = [r, a];
458
- o && (c = c.concat(d ? o.split(d) : o)), r.indexOf(".") > -1 && (c = r.split("."), s = a, a = c[1]), this.addNamespaces(a), Je(this.data, c, s), u.silent || this.emit("added", r, a, o, s);
461
+ o && (c = c.concat(d ? o.split(d) : o)), r.indexOf(".") > -1 && (c = r.split("."), s = a, a = c[1]), this.addNamespaces(a), Xe(this.data, c, s), u.silent || this.emit("added", r, a, o, s);
459
462
  }
460
463
  }, {
461
464
  key: "addResources",
@@ -476,8 +479,8 @@ var dn = function(i) {
476
479
  silent: !1
477
480
  }, c = [r, a];
478
481
  r.indexOf(".") > -1 && (c = r.split("."), s = o, o = a, a = c[1]), this.addNamespaces(a);
479
- var f = ye(this.data, c) || {};
480
- s ? Ct(f, o, u) : f = ge(ge({}, f), o), Je(this.data, c, f), d.silent || this.emit("added", r, a, o);
482
+ var f = be(this.data, c) || {};
483
+ s ? _t(f, o, u) : f = he(he({}, f), o), Xe(this.data, c, f), d.silent || this.emit("added", r, a, o);
481
484
  }
482
485
  }, {
483
486
  key: "removeResourceBundle",
@@ -492,7 +495,7 @@ var dn = function(i) {
492
495
  }, {
493
496
  key: "getResourceBundle",
494
497
  value: function(r, a) {
495
- return a || (a = this.options.defaultNS), this.options.compatibilityAPI === "v1" ? ge(ge({}, {}), this.getResource(r, a)) : this.getResource(r, a);
498
+ return a || (a = this.options.defaultNS), this.options.compatibilityAPI === "v1" ? he(he({}, {}), this.getResource(r, a)) : this.getResource(r, a);
496
499
  }
497
500
  }, {
498
501
  key: "getDataByLanguage",
@@ -513,7 +516,7 @@ var dn = function(i) {
513
516
  return this.data;
514
517
  }
515
518
  }]), t;
516
- }(ee), _t = {
519
+ }(ee), Nt = {
517
520
  processors: {},
518
521
  addPostProcessor: function(e) {
519
522
  this.processors[e.name] = e;
@@ -525,7 +528,7 @@ var dn = function(i) {
525
528
  }), t;
526
529
  }
527
530
  };
528
- function We(i, e) {
531
+ function Ge(i, e) {
529
532
  var t = Object.keys(i);
530
533
  if (Object.getOwnPropertySymbols) {
531
534
  var n = Object.getOwnPropertySymbols(i);
@@ -535,19 +538,19 @@ function We(i, e) {
535
538
  }
536
539
  return t;
537
540
  }
538
- function T(i) {
541
+ function A(i) {
539
542
  for (var e = 1; e < arguments.length; e++) {
540
543
  var t = arguments[e] != null ? arguments[e] : {};
541
- e % 2 ? We(Object(t), !0).forEach(function(n) {
544
+ e % 2 ? Ge(Object(t), !0).forEach(function(n) {
542
545
  W(i, n, t[n]);
543
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : We(Object(t)).forEach(function(n) {
546
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : Ge(Object(t)).forEach(function(n) {
544
547
  Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
545
548
  });
546
549
  }
547
550
  return i;
548
551
  }
549
- function pn(i) {
550
- var e = gn();
552
+ function vn(i) {
553
+ var e = mn();
551
554
  return function() {
552
555
  var n = X(i), r;
553
556
  if (e) {
@@ -558,7 +561,7 @@ function pn(i) {
558
561
  return de(this, r);
559
562
  };
560
563
  }
561
- function gn() {
564
+ function mn() {
562
565
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
563
566
  return !1;
564
567
  if (typeof Proxy == "function")
@@ -570,12 +573,12 @@ function gn() {
570
573
  return !1;
571
574
  }
572
575
  }
573
- var Ge = {}, Qe = function(i) {
574
- Se(t, i);
575
- var e = pn(t);
576
+ var Qe = {}, Ye = function(i) {
577
+ xe(t, i);
578
+ var e = vn(t);
576
579
  function t(n) {
577
580
  var r, a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
578
- return B(this, t), r = e.call(this), xe && ee.call(Z(r)), nn(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], n, Z(r)), r.options = a, r.options.keySeparator === void 0 && (r.options.keySeparator = "."), r.logger = J.create("translator"), r;
581
+ return B(this, t), r = e.call(this), Pe && ee.call(Z(r)), on(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], n, Z(r)), r.options = a, r.options.keySeparator === void 0 && (r.options.keySeparator = "."), r.logger = J.create("translator"), r;
579
582
  }
580
583
  return H(t, [{
581
584
  key: "changeLanguage",
@@ -598,7 +601,7 @@ var Ge = {}, Qe = function(i) {
598
601
  value: function(r, a) {
599
602
  var o = a.nsSeparator !== void 0 ? a.nsSeparator : this.options.nsSeparator;
600
603
  o === void 0 && (o = ":");
601
- var s = a.keySeparator !== void 0 ? a.keySeparator : this.options.keySeparator, u = a.ns || this.options.defaultNS || [], d = o && r.indexOf(o) > -1, c = !this.options.userDefinedKeySeparator && !a.keySeparator && !this.options.userDefinedNsSeparator && !a.nsSeparator && !fn(r, o, s);
604
+ var s = a.keySeparator !== void 0 ? a.keySeparator : this.options.keySeparator, u = a.ns || this.options.defaultNS || [], d = o && r.indexOf(o) > -1, c = !this.options.userDefinedKeySeparator && !a.keySeparator && !this.options.userDefinedNsSeparator && !a.nsSeparator && !dn(r, o, s);
602
605
  if (d && !c) {
603
606
  var f = r.match(this.interpolator.nestingRegexp);
604
607
  if (f && f.length > 0)
@@ -618,7 +621,7 @@ var Ge = {}, Qe = function(i) {
618
621
  key: "translate",
619
622
  value: function(r, a, o) {
620
623
  var s = this;
621
- if (U(a) !== "object" && this.options.overloadTranslationOptionHandler && (a = this.options.overloadTranslationOptionHandler(arguments)), U(a) === "object" && (a = T({}, a)), a || (a = {}), r == null)
624
+ if (U(a) !== "object" && this.options.overloadTranslationOptionHandler && (a = this.options.overloadTranslationOptionHandler(arguments)), U(a) === "object" && (a = A({}, a)), a || (a = {}), r == null)
622
625
  return "";
623
626
  Array.isArray(r) || (r = [String(r)]);
624
627
  var u = a.returnDetails !== void 0 ? a.returnDetails : this.options.returnDetails, d = a.keySeparator !== void 0 ? a.keySeparator : this.options.keySeparator, c = this.extractFromKey(r[r.length - 1], a), f = c.key, p = c.namespaces, g = p[p.length - 1], b = a.lng || this.language, y = a.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
@@ -645,51 +648,51 @@ var Ge = {}, Qe = function(i) {
645
648
  if (_ && m && R && D.indexOf(k) < 0 && !(typeof I == "string" && k === "[object Array]")) {
646
649
  if (!a.returnObjects && !this.options.returnObjects) {
647
650
  this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
648
- var C = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(S, m, T(T({}, a), {}, {
651
+ var C = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(S, m, A(A({}, a), {}, {
649
652
  ns: p
650
653
  })) : "key '".concat(f, " (").concat(this.language, ")' returned an object instead of string.");
651
654
  return u ? (v.res = C, v) : C;
652
655
  }
653
656
  if (d) {
654
- var Y = k === "[object Array]", A = Y ? [] : {}, Pe = Y ? x : S;
657
+ var Y = k === "[object Array]", T = Y ? [] : {}, je = Y ? x : S;
655
658
  for (var q in m)
656
659
  if (Object.prototype.hasOwnProperty.call(m, q)) {
657
- var l = "".concat(Pe).concat(d).concat(q);
658
- A[q] = this.translate(l, T(T({}, a), {
660
+ var l = "".concat(je).concat(d).concat(q);
661
+ T[q] = this.translate(l, A(A({}, a), {
659
662
  joinArrays: !1,
660
663
  ns: p
661
- })), A[q] === l && (A[q] = m[q]);
664
+ })), T[q] === l && (T[q] = m[q]);
662
665
  }
663
- m = A;
666
+ m = T;
664
667
  }
665
668
  } else if (_ && typeof I == "string" && k === "[object Array]")
666
669
  m = m.join(I), m && (m = this.extendTranslation(m, r, a, o));
667
670
  else {
668
671
  var h = !1, O = !1, j = a.count !== void 0 && typeof a.count != "string", L = t.hasDefaultValue(a), P = j ? this.pluralResolver.getSuffix(b, a.count, a) : "", K = a["defaultValue".concat(P)] || a.defaultValue;
669
672
  !this.isValidLookup(m) && L && (h = !0, m = K), this.isValidLookup(m) || (O = !0, m = f);
670
- var je = a.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey, F = je && O ? void 0 : m, V = L && K !== m && this.options.updateMissing;
673
+ var ke = a.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey, F = ke && O ? void 0 : m, V = L && K !== m && this.options.updateMissing;
671
674
  if (O || h || V) {
672
675
  if (this.logger.log(V ? "updateKey" : "missingKey", b, g, f, V ? K : m), d) {
673
- var Ue = this.resolve(f, T(T({}, a), {}, {
676
+ var Be = this.resolve(f, A(A({}, a), {}, {
674
677
  keySeparator: !1
675
678
  }));
676
- Ue && Ue.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.");
679
+ Be && Be.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.");
677
680
  }
678
681
  var oe = [], pe = this.languageUtils.getFallbackCodes(this.options.fallbackLng, a.lng || this.language);
679
682
  if (this.options.saveMissingTo === "fallback" && pe && pe[0])
680
- for (var ke = 0; ke < pe.length; ke++)
681
- oe.push(pe[ke]);
683
+ for (var Le = 0; Le < pe.length; Le++)
684
+ oe.push(pe[Le]);
682
685
  else
683
686
  this.options.saveMissingTo === "all" ? oe = this.languageUtils.toResolveHierarchy(a.lng || this.language) : oe.push(a.lng || this.language);
684
- var Be = function(ne, Re, He) {
685
- var $e = L && He !== m ? He : F;
686
- s.options.missingKeyHandler ? s.options.missingKeyHandler(ne, g, Re, $e, V, a) : s.backendConnector && s.backendConnector.saveMissing && s.backendConnector.saveMissing(ne, g, Re, $e, V, a), s.emit("missingKey", ne, g, Re, m);
687
+ var He = function(ne, Ee, $e) {
688
+ var Me = L && $e !== m ? $e : F;
689
+ s.options.missingKeyHandler ? s.options.missingKeyHandler(ne, g, Ee, Me, V, a) : s.backendConnector && s.backendConnector.saveMissing && s.backendConnector.saveMissing(ne, g, Ee, Me, V, a), s.emit("missingKey", ne, g, Ee, m);
687
690
  };
688
- this.options.saveMissing && (this.options.saveMissingPlurals && j ? oe.forEach(function(Le) {
689
- s.pluralResolver.getSuffixes(Le, a).forEach(function(ne) {
690
- Be([Le], f + ne, a["defaultValue".concat(ne)] || K);
691
+ this.options.saveMissing && (this.options.saveMissingPlurals && j ? oe.forEach(function(Re) {
692
+ s.pluralResolver.getSuffixes(Re, a).forEach(function(ne) {
693
+ He([Re], f + ne, a["defaultValue".concat(ne)] || K);
691
694
  });
692
- }) : Be(oe, f, K));
695
+ }) : He(oe, f, K));
693
696
  }
694
697
  m = this.extendTranslation(m, r, a, v, o), O && m === f && this.options.appendNamespaceToMissingKey && (m = "".concat(g, ":").concat(f)), (O || h) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? m = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? "".concat(g, ":").concat(f) : f, h ? m : void 0) : m = this.options.parseMissingKeyHandler(m));
695
698
  }
@@ -700,12 +703,12 @@ var Ge = {}, Qe = function(i) {
700
703
  value: function(r, a, o, s, u) {
701
704
  var d = this;
702
705
  if (this.i18nFormat && this.i18nFormat.parse)
703
- r = this.i18nFormat.parse(r, T(T({}, this.options.interpolation.defaultVariables), o), s.usedLng, s.usedNS, s.usedKey, {
706
+ r = this.i18nFormat.parse(r, A(A({}, this.options.interpolation.defaultVariables), o), s.usedLng, s.usedNS, s.usedKey, {
704
707
  resolved: s
705
708
  });
706
709
  else if (!o.skipInterpolation) {
707
- o.interpolation && this.interpolator.init(T(T({}, o), {
708
- interpolation: T(T({}, this.options.interpolation), o.interpolation)
710
+ o.interpolation && this.interpolator.init(A(A({}, o), {
711
+ interpolation: A(A({}, this.options.interpolation), o.interpolation)
709
712
  }));
710
713
  var c = typeof r == "string" && (o && o.interpolation && o.interpolation.skipOnVariables !== void 0 ? o.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables), f;
711
714
  if (c) {
@@ -713,7 +716,7 @@ var Ge = {}, Qe = function(i) {
713
716
  f = p && p.length;
714
717
  }
715
718
  var g = o.replace && typeof o.replace != "string" ? o.replace : o;
716
- if (this.options.interpolation.defaultVariables && (g = T(T({}, this.options.interpolation.defaultVariables), g)), r = this.interpolator.interpolate(r, g, o.lng || this.language, o), c) {
719
+ if (this.options.interpolation.defaultVariables && (g = A(A({}, this.options.interpolation.defaultVariables), g)), r = this.interpolator.interpolate(r, g, o.lng || this.language, o), c) {
717
720
  var b = r.match(this.interpolator.nestingRegexp), y = b && b.length;
718
721
  f < y && (o.nest = !1);
719
722
  }
@@ -724,7 +727,7 @@ var Ge = {}, Qe = function(i) {
724
727
  }, o)), o.interpolation && this.interpolator.reset();
725
728
  }
726
729
  var w = o.postProcess || this.options.postProcess, v = typeof w == "string" ? [w] : w;
727
- return r != null && v && v.length && o.applyPostProcessor !== !1 && (r = _t.handle(v, r, a, this.options && this.options.postProcessPassResolved ? T({
730
+ return r != null && v && v.length && o.applyPostProcessor !== !1 && (r = Nt.handle(v, r, a, this.options && this.options.postProcessPassResolved ? A({
728
731
  i18nResolved: s
729
732
  }, o) : o, this)), r;
730
733
  }
@@ -740,7 +743,7 @@ var Ge = {}, Qe = function(i) {
740
743
  a.options.fallbackNS && (y = y.concat(a.options.fallbackNS));
741
744
  var w = o.count !== void 0 && typeof o.count != "string", v = w && !o.ordinal && o.count === 0 && a.pluralResolver.shouldUseIntlApi(), m = o.context !== void 0 && (typeof o.context == "string" || typeof o.context == "number") && o.context !== "", S = o.lngs ? o.lngs : a.languageUtils.toResolveHierarchy(o.lng || a.language, o.fallbackLng);
742
745
  y.forEach(function(x) {
743
- a.isValidLookup(s) || (f = x, !Ge["".concat(S[0], "-").concat(x)] && a.utils && a.utils.hasLoadedNamespace && !a.utils.hasLoadedNamespace(f) && (Ge["".concat(S[0], "-").concat(x)] = !0, a.logger.warn('key "'.concat(u, '" for languages "').concat(S.join(", "), `" won't get resolved as namespace "`).concat(f, '" 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!!!")), S.forEach(function(k) {
746
+ a.isValidLookup(s) || (f = x, !Qe["".concat(S[0], "-").concat(x)] && a.utils && a.utils.hasLoadedNamespace && !a.utils.hasLoadedNamespace(f) && (Qe["".concat(S[0], "-").concat(x)] = !0, a.logger.warn('key "'.concat(u, '" for languages "').concat(S.join(", "), `" won't get resolved as namespace "`).concat(f, '" 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!!!")), S.forEach(function(k) {
744
747
  if (!a.isValidLookup(s)) {
745
748
  c = k;
746
749
  var D = [b];
@@ -791,10 +794,10 @@ var Ge = {}, Qe = function(i) {
791
794
  }
792
795
  }]), t;
793
796
  }(ee);
794
- function Ee(i) {
797
+ function Ce(i) {
795
798
  return i.charAt(0).toUpperCase() + i.slice(1);
796
799
  }
797
- var Ye = function() {
800
+ var Ze = function() {
798
801
  function i(e) {
799
802
  B(this, i), this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = J.create("languageUtils");
800
803
  }
@@ -821,7 +824,7 @@ var Ye = function() {
821
824
  var n = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"], r = t.split("-");
822
825
  return this.options.lowerCaseLng ? r = r.map(function(a) {
823
826
  return a.toLowerCase();
824
- }) : r.length === 2 ? (r[0] = r[0].toLowerCase(), r[1] = r[1].toUpperCase(), n.indexOf(r[1].toLowerCase()) > -1 && (r[1] = Ee(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()), n.indexOf(r[1].toLowerCase()) > -1 && (r[1] = Ee(r[1].toLowerCase())), n.indexOf(r[2].toLowerCase()) > -1 && (r[2] = Ee(r[2].toLowerCase()))), r.join("-");
827
+ }) : r.length === 2 ? (r[0] = r[0].toLowerCase(), r[1] = r[1].toUpperCase(), n.indexOf(r[1].toLowerCase()) > -1 && (r[1] = Ce(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()), n.indexOf(r[1].toLowerCase()) > -1 && (r[1] = Ce(r[1].toLowerCase())), n.indexOf(r[2].toLowerCase()) > -1 && (r[2] = Ce(r[2].toLowerCase()))), r.join("-");
825
828
  }
826
829
  return this.options.cleanCode || this.options.lowerCaseLng ? t.toLowerCase() : t;
827
830
  }
@@ -879,7 +882,7 @@ var Ye = function() {
879
882
  }), o;
880
883
  }
881
884
  }]), i;
882
- }(), hn = [{
885
+ }(), yn = [{
883
886
  lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
884
887
  nr: [1, 2],
885
888
  fc: 1
@@ -971,7 +974,7 @@ var Ye = function() {
971
974
  lngs: ["he", "iw"],
972
975
  nr: [1, 2, 20, 21],
973
976
  fc: 22
974
- }], vn = {
977
+ }], bn = {
975
978
  1: function(e) {
976
979
  return +(e > 1);
977
980
  },
@@ -1038,7 +1041,7 @@ var Ye = function() {
1038
1041
  22: function(e) {
1039
1042
  return e == 1 ? 0 : e == 2 ? 1 : (e < 0 || e > 10) && e % 10 == 0 ? 2 : 3;
1040
1043
  }
1041
- }, mn = ["v1", "v2", "v3"], Ze = {
1044
+ }, wn = ["v1", "v2", "v3"], et = {
1042
1045
  zero: 0,
1043
1046
  one: 1,
1044
1047
  two: 2,
@@ -1046,21 +1049,21 @@ var Ye = function() {
1046
1049
  many: 4,
1047
1050
  other: 5
1048
1051
  };
1049
- function yn() {
1052
+ function On() {
1050
1053
  var i = {};
1051
- return hn.forEach(function(e) {
1054
+ return yn.forEach(function(e) {
1052
1055
  e.lngs.forEach(function(t) {
1053
1056
  i[t] = {
1054
1057
  numbers: e.nr,
1055
- plurals: vn[e.fc]
1058
+ plurals: bn[e.fc]
1056
1059
  };
1057
1060
  });
1058
1061
  }), i;
1059
1062
  }
1060
- var bn = function() {
1063
+ var Sn = function() {
1061
1064
  function i(e) {
1062
1065
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1063
- B(this, i), this.languageUtils = e, this.options = t, this.logger = J.create("pluralResolver"), (!this.options.compatibilityJSON || this.options.compatibilityJSON === "v4") && (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 = yn();
1066
+ B(this, i), this.languageUtils = e, this.options = t, this.logger = J.create("pluralResolver"), (!this.options.compatibilityJSON || this.options.compatibilityJSON === "v4") && (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 = On();
1064
1067
  }
1065
1068
  return H(i, [{
1066
1069
  key: "addRule",
@@ -1100,7 +1103,7 @@ var bn = function() {
1100
1103
  value: function(t) {
1101
1104
  var n = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = this.getRule(t, r);
1102
1105
  return a ? this.shouldUseIntlApi() ? a.resolvedOptions().pluralCategories.sort(function(o, s) {
1103
- return Ze[o] - Ze[s];
1106
+ return et[o] - et[s];
1104
1107
  }).map(function(o) {
1105
1108
  return "".concat(n.options.prepend).concat(o);
1106
1109
  }) : a.numbers.map(function(o) {
@@ -1126,11 +1129,11 @@ var bn = function() {
1126
1129
  }, {
1127
1130
  key: "shouldUseIntlApi",
1128
1131
  value: function() {
1129
- return !mn.includes(this.options.compatibilityJSON);
1132
+ return !wn.includes(this.options.compatibilityJSON);
1130
1133
  }
1131
1134
  }]), i;
1132
1135
  }();
1133
- function et(i, e) {
1136
+ function tt(i, e) {
1134
1137
  var t = Object.keys(i);
1135
1138
  if (Object.getOwnPropertySymbols) {
1136
1139
  var n = Object.getOwnPropertySymbols(i);
@@ -1143,19 +1146,19 @@ function et(i, e) {
1143
1146
  function $(i) {
1144
1147
  for (var e = 1; e < arguments.length; e++) {
1145
1148
  var t = arguments[e] != null ? arguments[e] : {};
1146
- e % 2 ? et(Object(t), !0).forEach(function(n) {
1149
+ e % 2 ? tt(Object(t), !0).forEach(function(n) {
1147
1150
  W(i, n, t[n]);
1148
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : et(Object(t)).forEach(function(n) {
1151
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : tt(Object(t)).forEach(function(n) {
1149
1152
  Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
1150
1153
  });
1151
1154
  }
1152
1155
  return i;
1153
1156
  }
1154
- function tt(i, e, t) {
1155
- var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", r = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, a = an(i, e, t);
1156
- return !a && r && typeof t == "string" && (a = be(i, t, n), a === void 0 && (a = be(e, t, n))), a;
1157
+ function nt(i, e, t) {
1158
+ var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", r = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, a = un(i, e, t);
1159
+ return !a && r && typeof t == "string" && (a = we(i, t, n), a === void 0 && (a = we(e, t, n))), a;
1157
1160
  }
1158
- var wn = function() {
1161
+ var xn = function() {
1159
1162
  function i() {
1160
1163
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1161
1164
  B(this, i), this.logger = J.create("interpolator"), this.options = e, this.format = e.interpolation && e.interpolation.format || function(t) {
@@ -1170,7 +1173,7 @@ var wn = function() {
1170
1173
  escapeValue: !0
1171
1174
  });
1172
1175
  var n = t.interpolation;
1173
- this.escape = n.escape !== void 0 ? n.escape : sn, this.escapeValue = n.escapeValue !== void 0 ? n.escapeValue : !0, this.useRawValueToEscape = n.useRawValueToEscape !== void 0 ? n.useRawValueToEscape : !1, this.prefix = n.prefix ? re(n.prefix) : n.prefixEscaped || "{{", this.suffix = n.suffix ? re(n.suffix) : n.suffixEscaped || "}}", this.formatSeparator = n.formatSeparator ? n.formatSeparator : n.formatSeparator || ",", this.unescapePrefix = n.unescapeSuffix ? "" : n.unescapePrefix || "-", this.unescapeSuffix = this.unescapePrefix ? "" : n.unescapeSuffix || "", this.nestingPrefix = n.nestingPrefix ? re(n.nestingPrefix) : n.nestingPrefixEscaped || re("$t("), this.nestingSuffix = n.nestingSuffix ? re(n.nestingSuffix) : n.nestingSuffixEscaped || re(")"), this.nestingOptionsSeparator = n.nestingOptionsSeparator ? n.nestingOptionsSeparator : n.nestingOptionsSeparator || ",", this.maxReplaces = n.maxReplaces ? n.maxReplaces : 1e3, this.alwaysFormat = n.alwaysFormat !== void 0 ? n.alwaysFormat : !1, this.resetRegExp();
1176
+ this.escape = n.escape !== void 0 ? n.escape : cn, this.escapeValue = n.escapeValue !== void 0 ? n.escapeValue : !0, this.useRawValueToEscape = n.useRawValueToEscape !== void 0 ? n.useRawValueToEscape : !1, this.prefix = n.prefix ? re(n.prefix) : n.prefixEscaped || "{{", this.suffix = n.suffix ? re(n.suffix) : n.suffixEscaped || "}}", this.formatSeparator = n.formatSeparator ? n.formatSeparator : n.formatSeparator || ",", this.unescapePrefix = n.unescapeSuffix ? "" : n.unescapePrefix || "-", this.unescapeSuffix = this.unescapePrefix ? "" : n.unescapeSuffix || "", this.nestingPrefix = n.nestingPrefix ? re(n.nestingPrefix) : n.nestingPrefixEscaped || re("$t("), this.nestingSuffix = n.nestingSuffix ? re(n.nestingSuffix) : n.nestingSuffixEscaped || re(")"), this.nestingOptionsSeparator = n.nestingOptionsSeparator ? n.nestingOptionsSeparator : n.nestingOptionsSeparator || ",", this.maxReplaces = n.maxReplaces ? n.maxReplaces : 1e3, this.alwaysFormat = n.alwaysFormat !== void 0 ? n.alwaysFormat : !1, this.resetRegExp();
1174
1177
  }
1175
1178
  }, {
1176
1179
  key: "reset",
@@ -1196,13 +1199,13 @@ var wn = function() {
1196
1199
  }
1197
1200
  var p = function(v) {
1198
1201
  if (v.indexOf(o.formatSeparator) < 0) {
1199
- var m = tt(n, c, v, o.options.keySeparator, o.options.ignoreJSONStructure);
1202
+ var m = nt(n, c, v, o.options.keySeparator, o.options.ignoreJSONStructure);
1200
1203
  return o.alwaysFormat ? o.format(m, void 0, r, $($($({}, a), n), {}, {
1201
1204
  interpolationkey: v
1202
1205
  })) : m;
1203
1206
  }
1204
1207
  var S = v.split(o.formatSeparator), x = S.shift().trim(), k = S.join(o.formatSeparator).trim();
1205
- return o.format(tt(n, c, x, o.options.keySeparator, o.options.ignoreJSONStructure), k, r, $($($({}, a), n), {}, {
1208
+ return o.format(nt(n, c, x, o.options.keySeparator, o.options.ignoreJSONStructure), k, r, $($($({}, a), n), {}, {
1206
1209
  interpolationkey: x
1207
1210
  }));
1208
1211
  };
@@ -1233,7 +1236,7 @@ var wn = function() {
1233
1236
  } else
1234
1237
  o.logger.warn("missed to pass in variable ".concat(v, " for interpolating ").concat(t)), u = "";
1235
1238
  else
1236
- typeof u != "string" && !o.useRawValueToEscape && (u = ze(u));
1239
+ typeof u != "string" && !o.useRawValueToEscape && (u = Je(u));
1237
1240
  var S = w.safeValue(u);
1238
1241
  if (t = t.replace(s[0], S), b ? (w.regex.lastIndex += u.length, w.regex.lastIndex -= s[0].length) : w.regex.lastIndex = 0, d++, d >= o.maxReplaces)
1239
1242
  break;
@@ -1271,7 +1274,7 @@ var wn = function() {
1271
1274
  }
1272
1275
  if (s = n(d.call(this, o[1].trim(), u), u), s && o[0] === t && typeof s != "string")
1273
1276
  return s;
1274
- typeof s != "string" && (s = ze(s)), s || (this.logger.warn("missed to resolve ".concat(o[1], " for nesting ").concat(t)), s = ""), f && (s = c.reduce(function(g, b) {
1277
+ typeof s != "string" && (s = Je(s)), s || (this.logger.warn("missed to resolve ".concat(o[1], " for nesting ").concat(t)), s = ""), f && (s = c.reduce(function(g, b) {
1275
1278
  return r.format(g, b, a.lng, $($({}, a), {}, {
1276
1279
  interpolationkey: o[1].trim()
1277
1280
  }));
@@ -1281,7 +1284,7 @@ var wn = function() {
1281
1284
  }
1282
1285
  }]), i;
1283
1286
  }();
1284
- function nt(i, e) {
1287
+ function rt(i, e) {
1285
1288
  var t = Object.keys(i);
1286
1289
  if (Object.getOwnPropertySymbols) {
1287
1290
  var n = Object.getOwnPropertySymbols(i);
@@ -1294,15 +1297,15 @@ function nt(i, e) {
1294
1297
  function G(i) {
1295
1298
  for (var e = 1; e < arguments.length; e++) {
1296
1299
  var t = arguments[e] != null ? arguments[e] : {};
1297
- e % 2 ? nt(Object(t), !0).forEach(function(n) {
1300
+ e % 2 ? rt(Object(t), !0).forEach(function(n) {
1298
1301
  W(i, n, t[n]);
1299
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : nt(Object(t)).forEach(function(n) {
1302
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : rt(Object(t)).forEach(function(n) {
1300
1303
  Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
1301
1304
  });
1302
1305
  }
1303
1306
  return i;
1304
1307
  }
1305
- function On(i) {
1308
+ function Pn(i) {
1306
1309
  var e = i.toLowerCase().trim(), t = {};
1307
1310
  if (i.indexOf("(") > -1) {
1308
1311
  var n = i.split("(");
@@ -1316,7 +1319,7 @@ function On(i) {
1316
1319
  var a = r.split(";");
1317
1320
  a.forEach(function(o) {
1318
1321
  if (o) {
1319
- var s = o.split(":"), u = Zt(s), d = u[0], c = u.slice(1), f = c.join(":").trim().replace(/^'+|'+$/g, "");
1322
+ var s = o.split(":"), u = nn(s), d = u[0], c = u.slice(1), f = c.join(":").trim().replace(/^'+|'+$/g, "");
1320
1323
  t[d.trim()] || (t[d.trim()] = f), f === "false" && (t[d.trim()] = !1), f === "true" && (t[d.trim()] = !0), isNaN(f) || (t[d.trim()] = parseInt(f, 10));
1321
1324
  }
1322
1325
  });
@@ -1334,7 +1337,7 @@ function ie(i) {
1334
1337
  return s || (s = i(r, a), e[o] = s), s(n);
1335
1338
  };
1336
1339
  }
1337
- var Sn = function() {
1340
+ var jn = function() {
1338
1341
  function i() {
1339
1342
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1340
1343
  B(this, i), this.logger = J.create("formatter"), this.options = e, this.formats = {
@@ -1394,7 +1397,7 @@ var Sn = function() {
1394
1397
  key: "format",
1395
1398
  value: function(t, n, r) {
1396
1399
  var a = this, o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, s = n.split(this.formatSeparator), u = s.reduce(function(d, c) {
1397
- var f = On(c), p = f.formatName, g = f.formatOptions;
1400
+ var f = Pn(c), p = f.formatName, g = f.formatOptions;
1398
1401
  if (a.formats[p]) {
1399
1402
  var b = d;
1400
1403
  try {
@@ -1412,7 +1415,7 @@ var Sn = function() {
1412
1415
  }
1413
1416
  }]), i;
1414
1417
  }();
1415
- function rt(i, e) {
1418
+ function it(i, e) {
1416
1419
  var t = Object.keys(i);
1417
1420
  if (Object.getOwnPropertySymbols) {
1418
1421
  var n = Object.getOwnPropertySymbols(i);
@@ -1422,19 +1425,19 @@ function rt(i, e) {
1422
1425
  }
1423
1426
  return t;
1424
1427
  }
1425
- function it(i) {
1428
+ function at(i) {
1426
1429
  for (var e = 1; e < arguments.length; e++) {
1427
1430
  var t = arguments[e] != null ? arguments[e] : {};
1428
- e % 2 ? rt(Object(t), !0).forEach(function(n) {
1431
+ e % 2 ? it(Object(t), !0).forEach(function(n) {
1429
1432
  W(i, n, t[n]);
1430
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : rt(Object(t)).forEach(function(n) {
1433
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : it(Object(t)).forEach(function(n) {
1431
1434
  Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
1432
1435
  });
1433
1436
  }
1434
1437
  return i;
1435
1438
  }
1436
- function xn(i) {
1437
- var e = Pn();
1439
+ function kn(i) {
1440
+ var e = Ln();
1438
1441
  return function() {
1439
1442
  var n = X(i), r;
1440
1443
  if (e) {
@@ -1445,7 +1448,7 @@ function xn(i) {
1445
1448
  return de(this, r);
1446
1449
  };
1447
1450
  }
1448
- function Pn() {
1451
+ function Ln() {
1449
1452
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
1450
1453
  return !1;
1451
1454
  if (typeof Proxy == "function")
@@ -1457,15 +1460,15 @@ function Pn() {
1457
1460
  return !1;
1458
1461
  }
1459
1462
  }
1460
- function jn(i, e) {
1463
+ function Rn(i, e) {
1461
1464
  i.pending[e] !== void 0 && (delete i.pending[e], i.pendingCount--);
1462
1465
  }
1463
- var kn = function(i) {
1464
- Se(t, i);
1465
- var e = xn(t);
1466
+ var En = function(i) {
1467
+ xe(t, i);
1468
+ var e = kn(t);
1466
1469
  function t(n, r, a) {
1467
1470
  var o, s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
1468
- return B(this, t), o = e.call(this), xe && ee.call(Z(o)), o.backend = n, o.store = r, o.services = a, o.languageUtils = a.languageUtils, o.options = s, o.logger = J.create("backendConnector"), o.waitingReads = [], o.maxParallelReads = s.maxParallelReads || 10, o.readingCalls = 0, o.maxRetries = s.maxRetries >= 0 ? s.maxRetries : 5, o.retryTimeout = s.retryTimeout >= 1 ? s.retryTimeout : 350, o.state = {}, o.queue = [], o.backend && o.backend.init && o.backend.init(a, s.backend, s), o;
1471
+ return B(this, t), o = e.call(this), Pe && ee.call(Z(o)), o.backend = n, o.store = r, o.services = a, o.languageUtils = a.languageUtils, o.options = s, o.logger = J.create("backendConnector"), o.waitingReads = [], o.maxParallelReads = s.maxParallelReads || 10, o.readingCalls = 0, o.maxRetries = s.maxRetries >= 0 ? s.maxRetries : 5, o.retryTimeout = s.retryTimeout >= 1 ? s.retryTimeout : 350, o.state = {}, o.queue = [], o.backend && o.backend.init && o.backend.init(a, s.backend, s), o;
1469
1472
  }
1470
1473
  return H(t, [{
1471
1474
  key: "queueLoad",
@@ -1497,7 +1500,7 @@ var kn = function(i) {
1497
1500
  a && this.emit("failedLoading", u, d, a), o && this.store.addResourceBundle(u, d, o), this.state[r] = a ? -1 : 2;
1498
1501
  var c = {};
1499
1502
  this.queue.forEach(function(f) {
1500
- rn(f.loaded, [u], d), jn(f, r), a && f.errors.push(a), f.pendingCount === 0 && !f.done && (Object.keys(f.loaded).forEach(function(p) {
1503
+ sn(f.loaded, [u], d), Rn(f, r), a && f.errors.push(a), f.pendingCount === 0 && !f.done && (Object.keys(f.loaded).forEach(function(p) {
1501
1504
  c[p] || (c[p] = {});
1502
1505
  var g = f.loaded[p];
1503
1506
  g.length && g.forEach(function(b) {
@@ -1597,7 +1600,7 @@ var kn = function(i) {
1597
1600
  }
1598
1601
  if (!(o == null || o === "")) {
1599
1602
  if (this.backend && this.backend.create) {
1600
- var f = it(it({}, d), {}, {
1603
+ var f = at(at({}, d), {}, {
1601
1604
  isUpdate: u
1602
1605
  }), p = this.backend.create.bind(this.backend);
1603
1606
  if (p.length < 6)
@@ -1617,7 +1620,7 @@ var kn = function(i) {
1617
1620
  }
1618
1621
  }]), t;
1619
1622
  }(ee);
1620
- function at() {
1623
+ function ot() {
1621
1624
  return {
1622
1625
  debug: !1,
1623
1626
  initImmediate: !0,
@@ -1678,10 +1681,10 @@ function at() {
1678
1681
  }
1679
1682
  };
1680
1683
  }
1681
- function ot(i) {
1684
+ function st(i) {
1682
1685
  return typeof i.ns == "string" && (i.ns = [i.ns]), typeof i.fallbackLng == "string" && (i.fallbackLng = [i.fallbackLng]), typeof i.fallbackNS == "string" && (i.fallbackNS = [i.fallbackNS]), i.supportedLngs && i.supportedLngs.indexOf("cimode") < 0 && (i.supportedLngs = i.supportedLngs.concat(["cimode"])), i;
1683
1686
  }
1684
- function st(i, e) {
1687
+ function ut(i, e) {
1685
1688
  var t = Object.keys(i);
1686
1689
  if (Object.getOwnPropertySymbols) {
1687
1690
  var n = Object.getOwnPropertySymbols(i);
@@ -1694,16 +1697,16 @@ function st(i, e) {
1694
1697
  function z(i) {
1695
1698
  for (var e = 1; e < arguments.length; e++) {
1696
1699
  var t = arguments[e] != null ? arguments[e] : {};
1697
- e % 2 ? st(Object(t), !0).forEach(function(n) {
1700
+ e % 2 ? ut(Object(t), !0).forEach(function(n) {
1698
1701
  W(i, n, t[n]);
1699
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : st(Object(t)).forEach(function(n) {
1702
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : ut(Object(t)).forEach(function(n) {
1700
1703
  Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
1701
1704
  });
1702
1705
  }
1703
1706
  return i;
1704
1707
  }
1705
- function Ln(i) {
1706
- var e = Rn();
1708
+ function Cn(i) {
1709
+ var e = _n();
1707
1710
  return function() {
1708
1711
  var n = X(i), r;
1709
1712
  if (e) {
@@ -1714,7 +1717,7 @@ function Ln(i) {
1714
1717
  return de(this, r);
1715
1718
  };
1716
1719
  }
1717
- function Rn() {
1720
+ function _n() {
1718
1721
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
1719
1722
  return !1;
1720
1723
  if (typeof Proxy == "function")
@@ -1726,22 +1729,22 @@ function Rn() {
1726
1729
  return !1;
1727
1730
  }
1728
1731
  }
1729
- function he() {
1732
+ function ve() {
1730
1733
  }
1731
- function En(i) {
1734
+ function Nn(i) {
1732
1735
  var e = Object.getOwnPropertyNames(Object.getPrototypeOf(i));
1733
1736
  e.forEach(function(t) {
1734
1737
  typeof i[t] == "function" && (i[t] = i[t].bind(i));
1735
1738
  });
1736
1739
  }
1737
- var we = function(i) {
1738
- Se(t, i);
1739
- var e = Ln(t);
1740
+ var Oe = function(i) {
1741
+ xe(t, i);
1742
+ var e = Cn(t);
1740
1743
  function t() {
1741
1744
  var n, r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = arguments.length > 1 ? arguments[1] : void 0;
1742
- if (B(this, t), n = e.call(this), xe && ee.call(Z(n)), n.options = ot(r), n.services = {}, n.logger = J, n.modules = {
1745
+ if (B(this, t), n = e.call(this), Pe && ee.call(Z(n)), n.options = st(r), n.services = {}, n.logger = J, n.modules = {
1743
1746
  external: []
1744
- }, En(Z(n)), a && !n.isInitialized && !r.isClone) {
1747
+ }, Nn(Z(n)), a && !n.isInitialized && !r.isClone) {
1745
1748
  if (!n.options.initImmediate)
1746
1749
  return n.init(r, a), de(n, Z(n));
1747
1750
  setTimeout(function() {
@@ -1755,29 +1758,29 @@ var we = function(i) {
1755
1758
  value: function() {
1756
1759
  var r = this, a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, o = arguments.length > 1 ? arguments[1] : void 0;
1757
1760
  typeof a == "function" && (o = a, a = {}), !a.defaultNS && a.defaultNS !== !1 && a.ns && (typeof a.ns == "string" ? a.defaultNS = a.ns : a.ns.indexOf("translation") < 0 && (a.defaultNS = a.ns[0]));
1758
- var s = at();
1759
- this.options = z(z(z({}, s), this.options), ot(a)), this.options.compatibilityAPI !== "v1" && (this.options.interpolation = z(z({}, s.interpolation), this.options.interpolation)), a.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = a.keySeparator), a.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = a.nsSeparator);
1761
+ var s = ot();
1762
+ this.options = z(z(z({}, s), this.options), st(a)), this.options.compatibilityAPI !== "v1" && (this.options.interpolation = z(z({}, s.interpolation), this.options.interpolation)), a.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = a.keySeparator), a.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = a.nsSeparator);
1760
1763
  function u(v) {
1761
1764
  return v ? typeof v == "function" ? new v() : v : null;
1762
1765
  }
1763
1766
  if (!this.options.isClone) {
1764
1767
  this.modules.logger ? J.init(u(this.modules.logger), this.options) : J.init(null, this.options);
1765
1768
  var d;
1766
- this.modules.formatter ? d = this.modules.formatter : typeof Intl < "u" && (d = Sn);
1767
- var c = new Ye(this.options);
1768
- this.store = new dn(this.options.resources, this.options);
1769
+ this.modules.formatter ? d = this.modules.formatter : typeof Intl < "u" && (d = jn);
1770
+ var c = new Ze(this.options);
1771
+ this.store = new hn(this.options.resources, this.options);
1769
1772
  var f = this.services;
1770
- f.logger = J, f.resourceStore = this.store, f.languageUtils = c, f.pluralResolver = new bn(c, {
1773
+ f.logger = J, f.resourceStore = this.store, f.languageUtils = c, f.pluralResolver = new Sn(c, {
1771
1774
  prepend: this.options.pluralSeparator,
1772
1775
  compatibilityJSON: this.options.compatibilityJSON,
1773
1776
  simplifyPluralSuffix: this.options.simplifyPluralSuffix
1774
- }), d && (!this.options.interpolation.format || this.options.interpolation.format === s.interpolation.format) && (f.formatter = u(d), f.formatter.init(f, this.options), this.options.interpolation.format = f.formatter.format.bind(f.formatter)), f.interpolator = new wn(this.options), f.utils = {
1777
+ }), d && (!this.options.interpolation.format || this.options.interpolation.format === s.interpolation.format) && (f.formatter = u(d), f.formatter.init(f, this.options), this.options.interpolation.format = f.formatter.format.bind(f.formatter)), f.interpolator = new xn(this.options), f.utils = {
1775
1778
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
1776
- }, f.backendConnector = new kn(u(this.modules.backend), f.resourceStore, f, this.options), f.backendConnector.on("*", function(v) {
1779
+ }, f.backendConnector = new En(u(this.modules.backend), f.resourceStore, f, this.options), f.backendConnector.on("*", function(v) {
1777
1780
  for (var m = arguments.length, S = new Array(m > 1 ? m - 1 : 0), x = 1; x < m; x++)
1778
1781
  S[x - 1] = arguments[x];
1779
1782
  r.emit.apply(r, [v].concat(S));
1780
- }), this.modules.languageDetector && (f.languageDetector = u(this.modules.languageDetector), f.languageDetector.init && f.languageDetector.init(f, this.options.detection, this.options)), this.modules.i18nFormat && (f.i18nFormat = u(this.modules.i18nFormat), f.i18nFormat.init && f.i18nFormat.init(this)), this.translator = new Qe(this.services, this.options), this.translator.on("*", function(v) {
1783
+ }), this.modules.languageDetector && (f.languageDetector = u(this.modules.languageDetector), f.languageDetector.init && f.languageDetector.init(f, this.options.detection, this.options)), this.modules.i18nFormat && (f.i18nFormat = u(this.modules.i18nFormat), f.i18nFormat.init && f.i18nFormat.init(this)), this.translator = new Ye(this.services, this.options), this.translator.on("*", function(v) {
1781
1784
  for (var m = arguments.length, S = new Array(m > 1 ? m - 1 : 0), x = 1; x < m; x++)
1782
1785
  S[x - 1] = arguments[x];
1783
1786
  r.emit.apply(r, [v].concat(S));
@@ -1785,7 +1788,7 @@ var we = function(i) {
1785
1788
  v.init && v.init(r);
1786
1789
  });
1787
1790
  }
1788
- if (this.format = this.options.interpolation.format, o || (o = he), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
1791
+ if (this.format = this.options.interpolation.format, o || (o = ve), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
1789
1792
  var p = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
1790
1793
  p.length > 0 && p[0] !== "dev" && (this.options.lng = p[0]);
1791
1794
  }
@@ -1817,7 +1820,7 @@ var we = function(i) {
1817
1820
  }, {
1818
1821
  key: "loadResources",
1819
1822
  value: function(r) {
1820
- var a = this, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : he, s = o, u = typeof r == "string" ? r : this.language;
1823
+ var a = this, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ve, s = o, u = typeof r == "string" ? r : this.language;
1821
1824
  if (typeof r == "function" && (s = r), !this.options.resources || this.options.partialBundledLanguages) {
1822
1825
  if (u && u.toLowerCase() === "cimode")
1823
1826
  return s();
@@ -1849,7 +1852,7 @@ var we = function(i) {
1849
1852
  key: "reloadResources",
1850
1853
  value: function(r, a, o) {
1851
1854
  var s = se();
1852
- return r || (r = this.languages), a || (a = this.options.ns), o || (o = he), this.services.backendConnector.reload(r, a, function(u) {
1855
+ return r || (r = this.languages), a || (a = this.options.ns), o || (o = ve), this.services.backendConnector.reload(r, a, function(u) {
1853
1856
  s.resolve(), o(u);
1854
1857
  }), s;
1855
1858
  }
@@ -1860,7 +1863,7 @@ var we = function(i) {
1860
1863
  throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
1861
1864
  if (!r.type)
1862
1865
  throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
1863
- return r.type === "backend" && (this.modules.backend = r), (r.type === "logger" || r.log && r.warn && r.error) && (this.modules.logger = r), r.type === "languageDetector" && (this.modules.languageDetector = r), r.type === "i18nFormat" && (this.modules.i18nFormat = r), r.type === "postProcessor" && _t.addPostProcessor(r), r.type === "formatter" && (this.modules.formatter = r), r.type === "3rdParty" && this.modules.external.push(r), this;
1866
+ return r.type === "backend" && (this.modules.backend = r), (r.type === "logger" || r.log && r.warn && r.error) && (this.modules.logger = r), r.type === "languageDetector" && (this.modules.languageDetector = r), r.type === "i18nFormat" && (this.modules.i18nFormat = r), r.type === "postProcessor" && Nt.addPostProcessor(r), r.type === "formatter" && (this.modules.formatter = r), r.type === "3rdParty" && this.modules.external.push(r), this;
1864
1867
  }
1865
1868
  }, {
1866
1869
  key: "setResolvedLanguage",
@@ -1983,13 +1986,13 @@ var we = function(i) {
1983
1986
  value: function(r) {
1984
1987
  if (r || (r = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !r)
1985
1988
  return "rtl";
1986
- var a = ["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"], o = this.services && this.services.languageUtils || new Ye(at());
1989
+ var a = ["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"], o = this.services && this.services.languageUtils || new Ze(ot());
1987
1990
  return a.indexOf(o.getLanguagePartFromCode(r)) > -1 || r.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
1988
1991
  }
1989
1992
  }, {
1990
1993
  key: "cloneInstance",
1991
1994
  value: function() {
1992
- var r = this, a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : he, s = z(z(z({}, this.options), a), {
1995
+ var r = this, a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ve, s = z(z(z({}, this.options), a), {
1993
1996
  isClone: !0
1994
1997
  }), u = new t(s);
1995
1998
  (a.debug !== void 0 || a.prefix !== void 0) && (u.logger = u.logger.clone(a));
@@ -1998,7 +2001,7 @@ var we = function(i) {
1998
2001
  u[c] = r[c];
1999
2002
  }), u.services = z({}, this.services), u.services.utils = {
2000
2003
  hasLoadedNamespace: u.hasLoadedNamespace.bind(u)
2001
- }, u.translator = new Qe(u.services, u.options), u.translator.on("*", function(c) {
2004
+ }, u.translator = new Ye(u.services, u.options), u.translator.on("*", function(c) {
2002
2005
  for (var f = arguments.length, p = new Array(f > 1 ? f - 1 : 0), g = 1; g < f; g++)
2003
2006
  p[g - 1] = arguments[g];
2004
2007
  u.emit.apply(u, [c].concat(p));
@@ -2019,12 +2022,12 @@ var we = function(i) {
2019
2022
  }
2020
2023
  }]), t;
2021
2024
  }(ee);
2022
- W(we, "createInstance", function() {
2025
+ W(Oe, "createInstance", function() {
2023
2026
  var i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = arguments.length > 1 ? arguments[1] : void 0;
2024
- return new we(i, e);
2027
+ return new Oe(i, e);
2025
2028
  });
2026
- var N = we.createInstance();
2027
- N.createInstance = we.createInstance;
2029
+ var N = Oe.createInstance();
2030
+ N.createInstance = Oe.createInstance;
2028
2031
  N.createInstance;
2029
2032
  N.dir;
2030
2033
  N.init;
@@ -2033,21 +2036,21 @@ N.reloadResources;
2033
2036
  N.use;
2034
2037
  N.changeLanguage;
2035
2038
  N.getFixedT;
2036
- var Ar = N.t;
2039
+ var Ur = N.t;
2037
2040
  N.exists;
2038
2041
  N.setDefaultNamespace;
2039
2042
  N.hasLoadedNamespace;
2040
2043
  N.loadNamespaces;
2041
2044
  N.loadLanguages;
2042
- var Nt = [], Cn = Nt.forEach, _n = Nt.slice;
2043
- function Nn(i) {
2044
- return Cn.call(_n.call(arguments, 1), function(e) {
2045
+ var Tt = [], Tn = Tt.forEach, An = Tt.slice;
2046
+ function Dn(i) {
2047
+ return Tn.call(An.call(arguments, 1), function(e) {
2045
2048
  if (e)
2046
2049
  for (var t in e)
2047
2050
  i[t] === void 0 && (i[t] = e[t]);
2048
2051
  }), i;
2049
2052
  }
2050
- var ut = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, An = function(e, t, n) {
2053
+ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, In = function(e, t, n) {
2051
2054
  var r = n || {};
2052
2055
  r.path = r.path || "/";
2053
2056
  var a = encodeURIComponent(t), o = "".concat(e, "=").concat(a);
@@ -2058,12 +2061,12 @@ var ut = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, An = function(e, t, n) {
2058
2061
  o += "; Max-Age=".concat(Math.floor(s));
2059
2062
  }
2060
2063
  if (r.domain) {
2061
- if (!ut.test(r.domain))
2064
+ if (!ft.test(r.domain))
2062
2065
  throw new TypeError("option domain is invalid");
2063
2066
  o += "; Domain=".concat(r.domain);
2064
2067
  }
2065
2068
  if (r.path) {
2066
- if (!ut.test(r.path))
2069
+ if (!ft.test(r.path))
2067
2070
  throw new TypeError("option path is invalid");
2068
2071
  o += "; Path=".concat(r.path);
2069
2072
  }
@@ -2092,13 +2095,13 @@ var ut = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, An = function(e, t, n) {
2092
2095
  }
2093
2096
  }
2094
2097
  return o;
2095
- }, ft = {
2098
+ }, ct = {
2096
2099
  create: function(e, t, n, r) {
2097
2100
  var a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
2098
2101
  path: "/",
2099
2102
  sameSite: "strict"
2100
2103
  };
2101
- n && (a.expires = /* @__PURE__ */ new Date(), a.expires.setTime(a.expires.getTime() + n * 60 * 1e3)), r && (a.domain = r), document.cookie = An(e, encodeURIComponent(t), a);
2104
+ n && (a.expires = /* @__PURE__ */ new Date(), a.expires.setTime(a.expires.getTime() + n * 60 * 1e3)), r && (a.domain = r), document.cookie = In(e, encodeURIComponent(t), a);
2102
2105
  },
2103
2106
  read: function(e) {
2104
2107
  for (var t = "".concat(e, "="), n = document.cookie.split(";"), r = 0; r < n.length; r++) {
@@ -2112,20 +2115,20 @@ var ut = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, An = function(e, t, n) {
2112
2115
  remove: function(e) {
2113
2116
  this.create(e, "", -1);
2114
2117
  }
2115
- }, Tn = {
2118
+ }, Fn = {
2116
2119
  name: "cookie",
2117
2120
  lookup: function(e) {
2118
2121
  var t;
2119
2122
  if (e.lookupCookie && typeof document < "u") {
2120
- var n = ft.read(e.lookupCookie);
2123
+ var n = ct.read(e.lookupCookie);
2121
2124
  n && (t = n);
2122
2125
  }
2123
2126
  return t;
2124
2127
  },
2125
2128
  cacheUserLanguage: function(e, t) {
2126
- t.lookupCookie && typeof document < "u" && ft.create(t.lookupCookie, e, t.cookieMinutes, t.cookieDomain, t.cookieOptions);
2129
+ t.lookupCookie && typeof document < "u" && ct.create(t.lookupCookie, e, t.cookieMinutes, t.cookieDomain, t.cookieOptions);
2127
2130
  }
2128
- }, Dn = {
2131
+ }, Un = {
2129
2132
  name: "querystring",
2130
2133
  lookup: function(e) {
2131
2134
  var t;
@@ -2142,7 +2145,7 @@ var ut = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, An = function(e, t, n) {
2142
2145
  }
2143
2146
  return t;
2144
2147
  }
2145
- }, ue = null, ct = function() {
2148
+ }, ue = null, lt = function() {
2146
2149
  if (ue !== null)
2147
2150
  return ue;
2148
2151
  try {
@@ -2153,20 +2156,20 @@ var ut = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, An = function(e, t, n) {
2153
2156
  ue = !1;
2154
2157
  }
2155
2158
  return ue;
2156
- }, In = {
2159
+ }, Bn = {
2157
2160
  name: "localStorage",
2158
2161
  lookup: function(e) {
2159
2162
  var t;
2160
- if (e.lookupLocalStorage && ct()) {
2163
+ if (e.lookupLocalStorage && lt()) {
2161
2164
  var n = window.localStorage.getItem(e.lookupLocalStorage);
2162
2165
  n && (t = n);
2163
2166
  }
2164
2167
  return t;
2165
2168
  },
2166
2169
  cacheUserLanguage: function(e, t) {
2167
- t.lookupLocalStorage && ct() && window.localStorage.setItem(t.lookupLocalStorage, e);
2170
+ t.lookupLocalStorage && lt() && window.localStorage.setItem(t.lookupLocalStorage, e);
2168
2171
  }
2169
- }, fe = null, lt = function() {
2172
+ }, fe = null, dt = function() {
2170
2173
  if (fe !== null)
2171
2174
  return fe;
2172
2175
  try {
@@ -2177,20 +2180,20 @@ var ut = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, An = function(e, t, n) {
2177
2180
  fe = !1;
2178
2181
  }
2179
2182
  return fe;
2180
- }, Fn = {
2183
+ }, Hn = {
2181
2184
  name: "sessionStorage",
2182
2185
  lookup: function(e) {
2183
2186
  var t;
2184
- if (e.lookupSessionStorage && lt()) {
2187
+ if (e.lookupSessionStorage && dt()) {
2185
2188
  var n = window.sessionStorage.getItem(e.lookupSessionStorage);
2186
2189
  n && (t = n);
2187
2190
  }
2188
2191
  return t;
2189
2192
  },
2190
2193
  cacheUserLanguage: function(e, t) {
2191
- t.lookupSessionStorage && lt() && window.sessionStorage.setItem(t.lookupSessionStorage, e);
2194
+ t.lookupSessionStorage && dt() && window.sessionStorage.setItem(t.lookupSessionStorage, e);
2192
2195
  }
2193
- }, Un = {
2196
+ }, $n = {
2194
2197
  name: "navigator",
2195
2198
  lookup: function(e) {
2196
2199
  var t = [];
@@ -2202,13 +2205,13 @@ var ut = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, An = function(e, t, n) {
2202
2205
  }
2203
2206
  return t.length > 0 ? t : void 0;
2204
2207
  }
2205
- }, Bn = {
2208
+ }, Mn = {
2206
2209
  name: "htmlTag",
2207
2210
  lookup: function(e) {
2208
2211
  var t, n = e.htmlTag || (typeof document < "u" ? document.documentElement : null);
2209
2212
  return n && typeof n.getAttribute == "function" && (t = n.getAttribute("lang")), t;
2210
2213
  }
2211
- }, Hn = {
2214
+ }, qn = {
2212
2215
  name: "path",
2213
2216
  lookup: function(e) {
2214
2217
  var t;
@@ -2224,7 +2227,7 @@ var ut = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, An = function(e, t, n) {
2224
2227
  }
2225
2228
  return t;
2226
2229
  }
2227
- }, $n = {
2230
+ }, Kn = {
2228
2231
  name: "subdomain",
2229
2232
  lookup: function(e) {
2230
2233
  var t = typeof e.lookupFromSubdomainIndex == "number" ? e.lookupFromSubdomainIndex + 1 : 1, n = typeof window < "u" && window.location && window.location.hostname && window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);
@@ -2236,11 +2239,11 @@ try {
2236
2239
  document.cookie, At = !0;
2237
2240
  } catch {
2238
2241
  }
2239
- var Tt = ["querystring", "cookie", "localStorage", "sessionStorage", "navigator", "htmlTag"];
2240
- At || Tt.splice(1, 1);
2241
- function Mn() {
2242
+ var Dt = ["querystring", "cookie", "localStorage", "sessionStorage", "navigator", "htmlTag"];
2243
+ At || Dt.splice(1, 1);
2244
+ function Vn() {
2242
2245
  return {
2243
- order: Tt,
2246
+ order: Dt,
2244
2247
  lookupQuerystring: "lng",
2245
2248
  lookupCookie: "i18next",
2246
2249
  lookupLocalStorage: "i18nextLng",
@@ -2255,7 +2258,7 @@ function Mn() {
2255
2258
  }
2256
2259
  };
2257
2260
  }
2258
- var Dt = /* @__PURE__ */ function() {
2261
+ var It = /* @__PURE__ */ function() {
2259
2262
  function i(e) {
2260
2263
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2261
2264
  B(this, i), this.type = "languageDetector", this.detectors = {}, this.init(e, t);
@@ -2266,9 +2269,9 @@ var Dt = /* @__PURE__ */ function() {
2266
2269
  var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2267
2270
  this.services = t || {
2268
2271
  languageUtils: {}
2269
- }, this.options = Nn(n, this.options || {}, Mn()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = function(a) {
2272
+ }, this.options = Dn(n, this.options || {}, Vn()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = function(a) {
2270
2273
  return a.replace("-", "_");
2271
- }), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = r, this.addDetector(Tn), this.addDetector(Dn), this.addDetector(In), this.addDetector(Fn), this.addDetector(Un), this.addDetector(Bn), this.addDetector(Hn), this.addDetector($n);
2274
+ }), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = r, this.addDetector(Fn), this.addDetector(Un), this.addDetector(Bn), this.addDetector(Hn), this.addDetector($n), this.addDetector(Mn), this.addDetector(qn), this.addDetector(Kn);
2272
2275
  }
2273
2276
  }, {
2274
2277
  key: "addDetector",
@@ -2300,21 +2303,21 @@ var Dt = /* @__PURE__ */ function() {
2300
2303
  }
2301
2304
  }]);
2302
2305
  }();
2303
- Dt.type = "languageDetector";
2304
- function qn() {
2306
+ It.type = "languageDetector";
2307
+ function zn() {
2305
2308
  if (console && console.warn) {
2306
2309
  for (var i, e = arguments.length, t = new Array(e), n = 0; n < e; n++)
2307
2310
  t[n] = arguments[n];
2308
2311
  typeof t[0] == "string" && (t[0] = "react-i18next:: ".concat(t[0])), (i = console).warn.apply(i, t);
2309
2312
  }
2310
2313
  }
2311
- var dt = {};
2312
- function Ne() {
2314
+ var pt = {};
2315
+ function Te() {
2313
2316
  for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
2314
2317
  e[t] = arguments[t];
2315
- typeof e[0] == "string" && dt[e[0]] || (typeof e[0] == "string" && (dt[e[0]] = /* @__PURE__ */ new Date()), qn.apply(void 0, e));
2318
+ typeof e[0] == "string" && pt[e[0]] || (typeof e[0] == "string" && (pt[e[0]] = /* @__PURE__ */ new Date()), zn.apply(void 0, e));
2316
2319
  }
2317
- var It = function(e, t) {
2320
+ var Ft = function(e, t) {
2318
2321
  return function() {
2319
2322
  if (e.isInitialized)
2320
2323
  t();
@@ -2328,15 +2331,15 @@ var It = function(e, t) {
2328
2331
  }
2329
2332
  };
2330
2333
  };
2331
- function pt(i, e, t) {
2332
- i.loadNamespaces(e, It(i, t));
2334
+ function gt(i, e, t) {
2335
+ i.loadNamespaces(e, Ft(i, t));
2333
2336
  }
2334
- function gt(i, e, t, n) {
2337
+ function ht(i, e, t, n) {
2335
2338
  typeof t == "string" && (t = [t]), t.forEach(function(r) {
2336
2339
  i.options.ns.indexOf(r) < 0 && i.options.ns.push(r);
2337
- }), i.loadLanguages(e, It(i, n));
2340
+ }), i.loadLanguages(e, Ft(i, n));
2338
2341
  }
2339
- function Kn(i, e) {
2342
+ function Jn(i, e) {
2340
2343
  var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = e.languages[0], r = e.options ? e.options.fallbackLng : !1, a = e.languages[e.languages.length - 1];
2341
2344
  if (n.toLowerCase() === "cimode")
2342
2345
  return !0;
@@ -2346,10 +2349,10 @@ function Kn(i, e) {
2346
2349
  };
2347
2350
  return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !o(e.isLanguageChangingTo, i) ? !1 : !!(e.hasResourceBundle(n, i) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || o(n, i) && (!r || o(a, i)));
2348
2351
  }
2349
- function Vn(i, e) {
2352
+ function Xn(i, e) {
2350
2353
  var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2351
2354
  if (!e.languages || !e.languages.length)
2352
- return Ne("i18n.languages were undefined or empty", e.languages), !0;
2355
+ return Te("i18n.languages were undefined or empty", e.languages), !0;
2353
2356
  var n = e.options.ignoreJSONStructure !== void 0;
2354
2357
  return n ? e.hasLoadedNamespace(i, {
2355
2358
  lng: t.lng,
@@ -2357,9 +2360,9 @@ function Vn(i, e) {
2357
2360
  if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && a.services.backendConnector.backend && a.isLanguageChangingTo && !o(a.isLanguageChangingTo, i))
2358
2361
  return !1;
2359
2362
  }
2360
- }) : Kn(i, e, t);
2363
+ }) : Jn(i, e, t);
2361
2364
  }
2362
- var zn = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Jn = {
2365
+ var Wn = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Gn = {
2363
2366
  "&amp;": "&",
2364
2367
  "&#38;": "&",
2365
2368
  "&lt;": "<",
@@ -2380,12 +2383,12 @@ var zn = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
2380
2383
  "&#8230;": "…",
2381
2384
  "&#x2F;": "/",
2382
2385
  "&#47;": "/"
2383
- }, Xn = function(e) {
2384
- return Jn[e];
2385
- }, Wn = function(e) {
2386
- return e.replace(zn, Xn);
2386
+ }, Qn = function(e) {
2387
+ return Gn[e];
2388
+ }, Yn = function(e) {
2389
+ return e.replace(Wn, Qn);
2387
2390
  };
2388
- function ht(i, e) {
2391
+ function vt(i, e) {
2389
2392
  var t = Object.keys(i);
2390
2393
  if (Object.getOwnPropertySymbols) {
2391
2394
  var n = Object.getOwnPropertySymbols(i);
@@ -2395,12 +2398,12 @@ function ht(i, e) {
2395
2398
  }
2396
2399
  return t;
2397
2400
  }
2398
- function vt(i) {
2401
+ function mt(i) {
2399
2402
  for (var e = 1; e < arguments.length; e++) {
2400
2403
  var t = arguments[e] != null ? arguments[e] : {};
2401
- e % 2 ? ht(Object(t), !0).forEach(function(n) {
2404
+ e % 2 ? vt(Object(t), !0).forEach(function(n) {
2402
2405
  W(i, n, t[n]);
2403
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : ht(Object(t)).forEach(function(n) {
2406
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : vt(Object(t)).forEach(function(n) {
2404
2407
  Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
2405
2408
  });
2406
2409
  }
@@ -2414,28 +2417,28 @@ var Ae = {
2414
2417
  transWrapTextNodes: "",
2415
2418
  transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
2416
2419
  useSuspense: !0,
2417
- unescape: Wn
2420
+ unescape: Yn
2418
2421
  };
2419
- function Gn() {
2422
+ function Zn() {
2420
2423
  var i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2421
- Ae = vt(vt({}, Ae), i);
2424
+ Ae = mt(mt({}, Ae), i);
2422
2425
  }
2423
- function Qn() {
2426
+ function er() {
2424
2427
  return Ae;
2425
2428
  }
2426
- var Ft;
2427
- function Yn(i) {
2428
- Ft = i;
2429
+ var Ut;
2430
+ function tr(i) {
2431
+ Ut = i;
2429
2432
  }
2430
- function Zn() {
2431
- return Ft;
2433
+ function nr() {
2434
+ return Ut;
2432
2435
  }
2433
- var er = {
2436
+ var rr = {
2434
2437
  type: "3rdParty",
2435
2438
  init: function(e) {
2436
- Gn(e.options.react), Yn(e);
2439
+ Zn(e.options.react), tr(e);
2437
2440
  }
2438
- }, Ut = M.createContext(), tr = function() {
2441
+ }, Bt = M.createContext(), ir = function() {
2439
2442
  function i() {
2440
2443
  B(this, i), this.usedNamespaces = {};
2441
2444
  }
@@ -2454,7 +2457,7 @@ var er = {
2454
2457
  }
2455
2458
  }]), i;
2456
2459
  }();
2457
- function nr(i, e) {
2460
+ function ar(i, e) {
2458
2461
  var t = i == null ? null : typeof Symbol < "u" && i[Symbol.iterator] || i["@@iterator"];
2459
2462
  if (t != null) {
2460
2463
  var n, r, a, o, s = [], u = !0, d = !1;
@@ -2476,10 +2479,10 @@ function nr(i, e) {
2476
2479
  return s;
2477
2480
  }
2478
2481
  }
2479
- function rr(i, e) {
2480
- return Lt(i) || nr(i, e) || Rt(i, e) || Et();
2482
+ function or(i, e) {
2483
+ return Rt(i) || ar(i, e) || Et(i, e) || Ct();
2481
2484
  }
2482
- function mt(i, e) {
2485
+ function yt(i, e) {
2483
2486
  var t = Object.keys(i);
2484
2487
  if (Object.getOwnPropertySymbols) {
2485
2488
  var n = Object.getOwnPropertySymbols(i);
@@ -2489,49 +2492,49 @@ function mt(i, e) {
2489
2492
  }
2490
2493
  return t;
2491
2494
  }
2492
- function Ce(i) {
2495
+ function _e(i) {
2493
2496
  for (var e = 1; e < arguments.length; e++) {
2494
2497
  var t = arguments[e] != null ? arguments[e] : {};
2495
- e % 2 ? mt(Object(t), !0).forEach(function(n) {
2498
+ e % 2 ? yt(Object(t), !0).forEach(function(n) {
2496
2499
  W(i, n, t[n]);
2497
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : mt(Object(t)).forEach(function(n) {
2500
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : yt(Object(t)).forEach(function(n) {
2498
2501
  Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
2499
2502
  });
2500
2503
  }
2501
2504
  return i;
2502
2505
  }
2503
- var ir = function(e, t) {
2506
+ var sr = function(e, t) {
2504
2507
  var n = M.useRef();
2505
2508
  return M.useEffect(function() {
2506
2509
  n.current = e;
2507
2510
  }, [e, t]), n.current;
2508
2511
  };
2509
- function ar(i) {
2510
- var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = e.i18n, n = M.useContext(Ut) || {}, r = n.i18n, a = n.defaultNS, o = t || r || Zn();
2511
- if (o && !o.reportNamespaces && (o.reportNamespaces = new tr()), !o) {
2512
- Ne("You will need to pass in an i18next instance by using initReactI18next");
2512
+ function ur(i) {
2513
+ var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = e.i18n, n = M.useContext(Bt) || {}, r = n.i18n, a = n.defaultNS, o = t || r || nr();
2514
+ if (o && !o.reportNamespaces && (o.reportNamespaces = new ir()), !o) {
2515
+ Te("You will need to pass in an i18next instance by using initReactI18next");
2513
2516
  var s = function(R, C) {
2514
2517
  return typeof C == "string" ? C : C && U(C) === "object" && typeof C.defaultValue == "string" ? C.defaultValue : Array.isArray(R) ? R[R.length - 1] : R;
2515
2518
  }, u = [s, {}, !1];
2516
2519
  return u.t = s, u.i18n = {}, u.ready = !1, u;
2517
2520
  }
2518
- o.options.react && o.options.react.wait !== void 0 && Ne("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
2519
- var d = Ce(Ce(Ce({}, Qn()), o.options.react), e), c = d.useSuspense, f = d.keyPrefix, p = a || o.options && o.options.defaultNS;
2521
+ o.options.react && o.options.react.wait !== void 0 && Te("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
2522
+ var d = _e(_e(_e({}, er()), o.options.react), e), c = d.useSuspense, f = d.keyPrefix, p = a || o.options && o.options.defaultNS;
2520
2523
  p = typeof p == "string" ? [p] : p || ["translation"], o.reportNamespaces.addUsedNamespaces && o.reportNamespaces.addUsedNamespaces(p);
2521
2524
  var g = (o.isInitialized || o.initializedStoreOnce) && p.every(function(_) {
2522
- return Vn(_, o, d);
2525
+ return Xn(_, o, d);
2523
2526
  });
2524
2527
  function b() {
2525
2528
  return o.getFixedT(e.lng || null, d.nsMode === "fallback" ? p : p[0], f);
2526
2529
  }
2527
- var y = M.useState(b), w = rr(y, 2), v = w[0], m = w[1], S = p.join();
2530
+ var y = M.useState(b), w = or(y, 2), v = w[0], m = w[1], S = p.join();
2528
2531
  e.lng && (S = "".concat(e.lng).concat(S));
2529
- var x = ir(S), k = M.useRef(!0);
2532
+ var x = sr(S), k = M.useRef(!0);
2530
2533
  M.useEffect(function() {
2531
2534
  var _ = d.bindI18n, R = d.bindI18nStore;
2532
- k.current = !0, !g && !c && (e.lng ? gt(o, e.lng, p, function() {
2535
+ k.current = !0, !g && !c && (e.lng ? ht(o, e.lng, p, function() {
2533
2536
  k.current && m(b);
2534
- }) : pt(o, p, function() {
2537
+ }) : gt(o, p, function() {
2535
2538
  k.current && m(b);
2536
2539
  })), g && x && x !== S && k.current && m(b);
2537
2540
  function C() {
@@ -2553,36 +2556,36 @@ function ar(i) {
2553
2556
  if (I.t = v, I.i18n = o, I.ready = g, g || !g && !c)
2554
2557
  return I;
2555
2558
  throw new Promise(function(_) {
2556
- e.lng ? gt(o, e.lng, p, function() {
2559
+ e.lng ? ht(o, e.lng, p, function() {
2557
2560
  return _();
2558
- }) : pt(o, p, function() {
2561
+ }) : gt(o, p, function() {
2559
2562
  return _();
2560
2563
  });
2561
2564
  });
2562
2565
  }
2563
- function or(i) {
2566
+ function fr(i) {
2564
2567
  var e = i.i18n, t = i.defaultNS, n = i.children, r = M.useMemo(function() {
2565
2568
  return {
2566
2569
  i18n: e,
2567
2570
  defaultNS: t
2568
2571
  };
2569
2572
  }, [e, t]);
2570
- return M.createElement(Ut.Provider, {
2573
+ return M.createElement(Bt.Provider, {
2571
2574
  value: r
2572
2575
  }, n);
2573
2576
  }
2574
- var Bt = [], sr = Bt.forEach, ur = Bt.slice;
2575
- function fr(i) {
2576
- return sr.call(ur.call(arguments, 1), function(e) {
2577
+ var Ht = [], cr = Ht.forEach, lr = Ht.slice;
2578
+ function dr(i) {
2579
+ return cr.call(lr.call(arguments, 1), function(e) {
2577
2580
  if (e)
2578
2581
  for (var t in e)
2579
2582
  i[t] === void 0 && (i[t] = e[t]);
2580
2583
  }), i;
2581
2584
  }
2582
- function cr(i) {
2585
+ function pr(i) {
2583
2586
  return i ? typeof i == "function" ? new i() : i : null;
2584
2587
  }
2585
- function lr() {
2588
+ function gr() {
2586
2589
  return {
2587
2590
  handleEmptyResourcesAsFailed: !0,
2588
2591
  cacheHitMode: "none"
@@ -2590,7 +2593,7 @@ function lr() {
2590
2593
  // refreshExpirationTime: 60 * 60 * 1000
2591
2594
  };
2592
2595
  }
2593
- function yt(i, e, t, n) {
2596
+ function bt(i, e, t, n) {
2594
2597
  var r = i.read.bind(i);
2595
2598
  if (r.length === 2) {
2596
2599
  try {
@@ -2605,7 +2608,7 @@ function yt(i, e, t, n) {
2605
2608
  }
2606
2609
  r(e, t, n);
2607
2610
  }
2608
- var Ht = /* @__PURE__ */ function() {
2611
+ var $t = /* @__PURE__ */ function() {
2609
2612
  function i(e) {
2610
2613
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2611
2614
  B(this, i), this.backends = [], this.type = "backend", this.allOptions = n, this.init(e, t);
@@ -2614,8 +2617,8 @@ var Ht = /* @__PURE__ */ function() {
2614
2617
  key: "init",
2615
2618
  value: function(t) {
2616
2619
  var n = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2617
- this.services = t, this.options = fr(r, this.options || {}, lr()), this.allOptions = a, this.options.backends && this.options.backends.forEach(function(o, s) {
2618
- n.backends[s] = n.backends[s] || cr(o), n.backends[s].init(t, n.options.backendOptions && n.options.backendOptions[s] || {}, a);
2620
+ this.services = t, this.options = dr(r, this.options || {}, gr()), this.allOptions = a, this.options.backends && this.options.backends.forEach(function(o, s) {
2621
+ n.backends[s] = n.backends[s] || pr(o), n.backends[s].init(t, n.options.backendOptions && n.options.backendOptions[s] || {}, a);
2619
2622
  }), this.services && this.options.reloadInterval && setInterval(function() {
2620
2623
  return n.reload();
2621
2624
  }, this.options.reloadInterval);
@@ -2627,13 +2630,13 @@ var Ht = /* @__PURE__ */ function() {
2627
2630
  if (c >= o)
2628
2631
  return r(new Error("non of the backend loaded data", !0));
2629
2632
  var f = c === o - 1, p = a.options.handleEmptyResourcesAsFailed && !f ? 0 : -1, g = a.backends[c];
2630
- g.read ? yt(g, t, n, function(b, y, w) {
2633
+ g.read ? bt(g, t, n, function(b, y, w) {
2631
2634
  if (!b && y && Object.keys(y).length > p) {
2632
2635
  if (r(null, y, c), u(c - 1, y), g.save && a.options.cacheHitMode && ["refresh", "refreshAndUpdateStore"].indexOf(a.options.cacheHitMode) > -1) {
2633
2636
  if (w && a.options.refreshExpirationTime && w + a.options.refreshExpirationTime > Date.now())
2634
2637
  return;
2635
2638
  var v = a.backends[c + 1];
2636
- v && v.read && yt(v, t, n, function(m, S) {
2639
+ v && v.read && bt(v, t, n, function(m, S) {
2637
2640
  m || S && (Object.keys(S).length <= p || (u(c, S), a.options.cacheHitMode === "refreshAndUpdateStore" && a.services && a.services.resourceStore && a.services.resourceStore.addResourceBundle(t, n, S)));
2638
2641
  });
2639
2642
  }
@@ -2695,30 +2698,30 @@ var Ht = /* @__PURE__ */ function() {
2695
2698
  }
2696
2699
  }]), i;
2697
2700
  }();
2698
- Ht.type = "backend";
2699
- function Te(i) {
2701
+ $t.type = "backend";
2702
+ function De(i) {
2700
2703
  "@babel/helpers - typeof";
2701
- return Te = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2704
+ return De = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2702
2705
  return typeof e;
2703
2706
  } : function(e) {
2704
2707
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2705
- }, Te(i);
2708
+ }, De(i);
2706
2709
  }
2707
- function $t() {
2708
- return typeof XMLHttpRequest == "function" || (typeof XMLHttpRequest > "u" ? "undefined" : Te(XMLHttpRequest)) === "object";
2710
+ function Mt() {
2711
+ return typeof XMLHttpRequest == "function" || (typeof XMLHttpRequest > "u" ? "undefined" : De(XMLHttpRequest)) === "object";
2709
2712
  }
2710
- function dr(i) {
2713
+ function hr(i) {
2711
2714
  return !!i && typeof i.then == "function";
2712
2715
  }
2713
- function pr(i) {
2714
- return dr(i) ? i : Promise.resolve(i);
2716
+ function vr(i) {
2717
+ return hr(i) ? i : Promise.resolve(i);
2715
2718
  }
2716
- function gr(i) {
2719
+ function mr(i) {
2717
2720
  throw new Error('Could not dynamically require "' + i + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
2718
2721
  }
2719
- var De = { exports: {} }, ve = { exports: {} }, bt;
2720
- function hr() {
2721
- return bt || (bt = 1, function(i, e) {
2722
+ var Ie = { exports: {} }, me = { exports: {} }, wt;
2723
+ function yr() {
2724
+ return wt || (wt = 1, function(i, e) {
2722
2725
  var t = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof ce < "u" && ce, n = function() {
2723
2726
  function a() {
2724
2727
  this.fetch = !1, this.DOMException = t.DOMException;
@@ -2945,27 +2948,27 @@ function hr() {
2945
2948
  }), h;
2946
2949
  }
2947
2950
  D.call(R.prototype);
2948
- function A(l, h) {
2949
- if (!(this instanceof A))
2951
+ function T(l, h) {
2952
+ if (!(this instanceof T))
2950
2953
  throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
2951
2954
  h || (h = {}), this.type = "default", this.status = h.status === void 0 ? 200 : h.status, this.ok = this.status >= 200 && this.status < 300, this.statusText = h.statusText === void 0 ? "" : "" + h.statusText, this.headers = new y(h.headers), this.url = h.url || "", this._initBody(l);
2952
2955
  }
2953
- D.call(A.prototype), A.prototype.clone = function() {
2954
- return new A(this._bodyInit, {
2956
+ D.call(T.prototype), T.prototype.clone = function() {
2957
+ return new T(this._bodyInit, {
2955
2958
  status: this.status,
2956
2959
  statusText: this.statusText,
2957
2960
  headers: new y(this.headers),
2958
2961
  url: this.url
2959
2962
  });
2960
- }, A.error = function() {
2961
- var l = new A(null, { status: 0, statusText: "" });
2963
+ }, T.error = function() {
2964
+ var l = new T(null, { status: 0, statusText: "" });
2962
2965
  return l.type = "error", l;
2963
2966
  };
2964
- var Pe = [301, 302, 303, 307, 308];
2965
- A.redirect = function(l, h) {
2966
- if (Pe.indexOf(h) === -1)
2967
+ var je = [301, 302, 303, 307, 308];
2968
+ T.redirect = function(l, h) {
2969
+ if (je.indexOf(h) === -1)
2967
2970
  throw new RangeError("Invalid status code");
2968
- return new A(null, { status: h, headers: { location: l } });
2971
+ return new T(null, { status: h, headers: { location: l } });
2969
2972
  }, o.DOMException = s.DOMException;
2970
2973
  try {
2971
2974
  new o.DOMException();
@@ -2994,7 +2997,7 @@ function hr() {
2994
2997
  F.url = "responseURL" in P ? P.responseURL : F.headers.get("X-Request-URL");
2995
2998
  var V = "response" in P ? P.response : P.responseText;
2996
2999
  setTimeout(function() {
2997
- O(new A(V, F));
3000
+ O(new T(V, F));
2998
3001
  }, 0);
2999
3002
  }, P.onerror = function() {
3000
3003
  setTimeout(function() {
@@ -3009,14 +3012,14 @@ function hr() {
3009
3012
  j(new o.DOMException("Aborted", "AbortError"));
3010
3013
  }, 0);
3011
3014
  };
3012
- function je(F) {
3015
+ function ke(F) {
3013
3016
  try {
3014
3017
  return F === "" && s.location.href ? s.location.href : F;
3015
3018
  } catch {
3016
3019
  return F;
3017
3020
  }
3018
3021
  }
3019
- P.open(L.method, je(L.url), !0), L.credentials === "include" ? P.withCredentials = !0 : L.credentials === "omit" && (P.withCredentials = !1), "responseType" in P && (u.blob ? P.responseType = "blob" : u.arrayBuffer && L.headers.get("Content-Type") && L.headers.get("Content-Type").indexOf("application/octet-stream") !== -1 && (P.responseType = "arraybuffer")), h && typeof h.headers == "object" && !(h.headers instanceof y) ? Object.getOwnPropertyNames(h.headers).forEach(function(F) {
3022
+ P.open(L.method, ke(L.url), !0), L.credentials === "include" ? P.withCredentials = !0 : L.credentials === "omit" && (P.withCredentials = !1), "responseType" in P && (u.blob ? P.responseType = "blob" : u.arrayBuffer && L.headers.get("Content-Type") && L.headers.get("Content-Type").indexOf("application/octet-stream") !== -1 && (P.responseType = "arraybuffer")), h && typeof h.headers == "object" && !(h.headers instanceof y) ? Object.getOwnPropertyNames(h.headers).forEach(function(F) {
3020
3023
  P.setRequestHeader(F, g(h.headers[F]));
3021
3024
  }) : L.headers.forEach(function(F, V) {
3022
3025
  P.setRequestHeader(V, F);
@@ -3025,26 +3028,26 @@ function hr() {
3025
3028
  }), P.send(typeof L._bodyInit > "u" ? null : L._bodyInit);
3026
3029
  });
3027
3030
  }
3028
- return q.polyfill = !0, s.fetch || (s.fetch = q, s.Headers = y, s.Request = R, s.Response = A), o.Headers = y, o.Request = R, o.Response = A, o.fetch = q, o;
3031
+ return q.polyfill = !0, s.fetch || (s.fetch = q, s.Headers = y, s.Request = R, s.Response = T), o.Headers = y, o.Request = R, o.Response = T, o.fetch = q, o;
3029
3032
  })({});
3030
3033
  })(n), n.fetch.ponyfill = !0, delete n.fetch.polyfill;
3031
3034
  var r = t.fetch ? t : n;
3032
3035
  e = r.fetch, e.default = r.fetch, e.fetch = r.fetch, e.Headers = r.Headers, e.Request = r.Request, e.Response = r.Response, i.exports = e;
3033
- }(ve, ve.exports)), ve.exports;
3036
+ }(me, me.exports)), me.exports;
3034
3037
  }
3035
3038
  (function(i, e) {
3036
3039
  var t;
3037
- if (typeof fetch == "function" && (typeof ce < "u" && ce.fetch ? t = ce.fetch : typeof window < "u" && window.fetch ? t = window.fetch : t = fetch), typeof gr < "u" && typeof window > "u") {
3038
- var n = t || hr();
3040
+ if (typeof fetch == "function" && (typeof ce < "u" && ce.fetch ? t = ce.fetch : typeof window < "u" && window.fetch ? t = window.fetch : t = fetch), typeof mr < "u" && typeof window > "u") {
3041
+ var n = t || yr();
3039
3042
  n.default && (n = n.default), e.default = n, i.exports = e.default;
3040
3043
  }
3041
- })(De, De.exports);
3042
- var Mt = De.exports;
3043
- const qt = /* @__PURE__ */ Jt(Mt), wt = /* @__PURE__ */ Gt({
3044
+ })(Ie, Ie.exports);
3045
+ var qt = Ie.exports;
3046
+ const Kt = /* @__PURE__ */ Gt(qt), Ot = /* @__PURE__ */ Zt({
3044
3047
  __proto__: null,
3045
- default: qt
3046
- }, [Mt]);
3047
- function Ot(i, e) {
3048
+ default: Kt
3049
+ }, [qt]);
3050
+ function St(i, e) {
3048
3051
  var t = Object.keys(i);
3049
3052
  if (Object.getOwnPropertySymbols) {
3050
3053
  var n = Object.getOwnPropertySymbols(i);
@@ -3054,25 +3057,25 @@ function Ot(i, e) {
3054
3057
  }
3055
3058
  return t;
3056
3059
  }
3057
- function St(i) {
3060
+ function xt(i) {
3058
3061
  for (var e = 1; e < arguments.length; e++) {
3059
3062
  var t = arguments[e] != null ? arguments[e] : {};
3060
- e % 2 ? Ot(Object(t), !0).forEach(function(n) {
3061
- vr(i, n, t[n]);
3062
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : Ot(Object(t)).forEach(function(n) {
3063
+ e % 2 ? St(Object(t), !0).forEach(function(n) {
3064
+ br(i, n, t[n]);
3065
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : St(Object(t)).forEach(function(n) {
3063
3066
  Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
3064
3067
  });
3065
3068
  }
3066
3069
  return i;
3067
3070
  }
3068
- function vr(i, e, t) {
3069
- return (e = mr(e)) in i ? Object.defineProperty(i, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : i[e] = t, i;
3071
+ function br(i, e, t) {
3072
+ return (e = wr(e)) in i ? Object.defineProperty(i, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : i[e] = t, i;
3070
3073
  }
3071
- function mr(i) {
3072
- var e = yr(i, "string");
3074
+ function wr(i) {
3075
+ var e = Or(i, "string");
3073
3076
  return te(e) == "symbol" ? e : e + "";
3074
3077
  }
3075
- function yr(i, e) {
3078
+ function Or(i, e) {
3076
3079
  if (te(i) != "object" || !i)
3077
3080
  return i;
3078
3081
  var t = i[Symbol.toPrimitive];
@@ -3095,12 +3098,12 @@ function te(i) {
3095
3098
  var Q;
3096
3099
  typeof fetch == "function" && (typeof global < "u" && global.fetch ? Q = global.fetch : typeof window < "u" && window.fetch ? Q = window.fetch : Q = fetch);
3097
3100
  var le;
3098
- $t() && (typeof global < "u" && global.XMLHttpRequest ? le = global.XMLHttpRequest : typeof window < "u" && window.XMLHttpRequest && (le = window.XMLHttpRequest));
3099
- var Oe;
3100
- typeof ActiveXObject == "function" && (typeof global < "u" && global.ActiveXObject ? Oe = global.ActiveXObject : typeof window < "u" && window.ActiveXObject && (Oe = window.ActiveXObject));
3101
- !Q && wt && !le && !Oe && (Q = qt || wt);
3101
+ Mt() && (typeof global < "u" && global.XMLHttpRequest ? le = global.XMLHttpRequest : typeof window < "u" && window.XMLHttpRequest && (le = window.XMLHttpRequest));
3102
+ var Se;
3103
+ typeof ActiveXObject == "function" && (typeof global < "u" && global.ActiveXObject ? Se = global.ActiveXObject : typeof window < "u" && window.ActiveXObject && (Se = window.ActiveXObject));
3104
+ !Q && Ot && !le && !Se && (Q = Kt || Ot);
3102
3105
  typeof Q != "function" && (Q = void 0);
3103
- var Ie = function(e, t) {
3106
+ var Fe = function(e, t) {
3104
3107
  if (t && te(t) === "object") {
3105
3108
  var n = "";
3106
3109
  for (var r in t)
@@ -3110,7 +3113,7 @@ var Ie = function(e, t) {
3110
3113
  e = e + (e.indexOf("?") !== -1 ? "&" : "?") + n.slice(1);
3111
3114
  }
3112
3115
  return e;
3113
- }, xt = function(e, t, n, r) {
3116
+ }, Pt = function(e, t, n, r) {
3114
3117
  var a = function(u) {
3115
3118
  if (!u.ok)
3116
3119
  return n(u.statusText || "Error", {
@@ -3131,33 +3134,33 @@ var Ie = function(e, t) {
3131
3134
  }
3132
3135
  }
3133
3136
  typeof fetch == "function" ? fetch(e, t).then(a).catch(n) : Q(e, t).then(a).catch(n);
3134
- }, Pt = !1, br = function(e, t, n, r) {
3135
- e.queryStringParams && (t = Ie(t, e.queryStringParams));
3136
- var a = St({}, typeof e.customHeaders == "function" ? e.customHeaders() : e.customHeaders);
3137
+ }, jt = !1, Sr = function(e, t, n, r) {
3138
+ e.queryStringParams && (t = Fe(t, e.queryStringParams));
3139
+ var a = xt({}, typeof e.customHeaders == "function" ? e.customHeaders() : e.customHeaders);
3137
3140
  typeof window > "u" && typeof global < "u" && typeof global.process < "u" && global.process.versions && global.process.versions.node && (a["User-Agent"] = "i18next-http-backend (node/".concat(global.process.version, "; ").concat(global.process.platform, " ").concat(global.process.arch, ")")), n && (a["Content-Type"] = "application/json");
3138
- var o = typeof e.requestOptions == "function" ? e.requestOptions(n) : e.requestOptions, s = St({
3141
+ var o = typeof e.requestOptions == "function" ? e.requestOptions(n) : e.requestOptions, s = xt({
3139
3142
  method: n ? "POST" : "GET",
3140
3143
  body: n ? e.stringify(n) : void 0,
3141
3144
  headers: a
3142
- }, Pt ? {} : o), u = typeof e.alternateFetch == "function" && e.alternateFetch.length >= 1 ? e.alternateFetch : void 0;
3145
+ }, jt ? {} : o), u = typeof e.alternateFetch == "function" && e.alternateFetch.length >= 1 ? e.alternateFetch : void 0;
3143
3146
  try {
3144
- xt(t, s, r, u);
3147
+ Pt(t, s, r, u);
3145
3148
  } catch (d) {
3146
3149
  if (!o || Object.keys(o).length === 0 || !d.message || d.message.indexOf("not implemented") < 0)
3147
3150
  return r(d);
3148
3151
  try {
3149
3152
  Object.keys(o).forEach(function(c) {
3150
3153
  delete s[c];
3151
- }), xt(t, s, r, u), Pt = !0;
3154
+ }), Pt(t, s, r, u), jt = !0;
3152
3155
  } catch (c) {
3153
3156
  r(c);
3154
3157
  }
3155
3158
  }
3156
- }, wr = function(e, t, n, r) {
3157
- n && te(n) === "object" && (n = Ie("", n).slice(1)), e.queryStringParams && (t = Ie(t, e.queryStringParams));
3159
+ }, xr = function(e, t, n, r) {
3160
+ n && te(n) === "object" && (n = Fe("", n).slice(1)), e.queryStringParams && (t = Fe(t, e.queryStringParams));
3158
3161
  try {
3159
3162
  var a;
3160
- le ? a = new le() : a = new Oe("MSXML2.XMLHTTP.3.0"), a.open(n ? "POST" : "GET", t, 1), e.crossDomain || a.setRequestHeader("X-Requested-With", "XMLHttpRequest"), a.withCredentials = !!e.withCredentials, n && a.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"), a.overrideMimeType && a.overrideMimeType("application/json");
3163
+ le ? a = new le() : a = new Se("MSXML2.XMLHTTP.3.0"), a.open(n ? "POST" : "GET", t, 1), e.crossDomain || a.setRequestHeader("X-Requested-With", "XMLHttpRequest"), a.withCredentials = !!e.withCredentials, n && a.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"), a.overrideMimeType && a.overrideMimeType("application/json");
3161
3164
  var o = e.customHeaders;
3162
3165
  if (o = typeof o == "function" ? o() : o, o)
3163
3166
  for (var s in o)
@@ -3171,12 +3174,12 @@ var Ie = function(e, t) {
3171
3174
  } catch (u) {
3172
3175
  console && console.log(u);
3173
3176
  }
3174
- }, Or = function(e, t, n, r) {
3177
+ }, Pr = function(e, t, n, r) {
3175
3178
  if (typeof n == "function" && (r = n, n = void 0), r = r || function() {
3176
3179
  }, Q && t.indexOf("file:") !== 0)
3177
- return br(e, t, n, r);
3178
- if ($t() || typeof ActiveXObject == "function")
3179
- return wr(e, t, n, r);
3180
+ return Sr(e, t, n, r);
3181
+ if (Mt() || typeof ActiveXObject == "function")
3182
+ return xr(e, t, n, r);
3180
3183
  r(new Error("No fetch and no xhr implementation found!"));
3181
3184
  };
3182
3185
  function ae(i) {
@@ -3187,7 +3190,7 @@ function ae(i) {
3187
3190
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
3188
3191
  }, ae(i);
3189
3192
  }
3190
- function jt(i, e) {
3193
+ function kt(i, e) {
3191
3194
  var t = Object.keys(i);
3192
3195
  if (Object.getOwnPropertySymbols) {
3193
3196
  var n = Object.getOwnPropertySymbols(i);
@@ -3197,38 +3200,38 @@ function jt(i, e) {
3197
3200
  }
3198
3201
  return t;
3199
3202
  }
3200
- function _e(i) {
3203
+ function Ne(i) {
3201
3204
  for (var e = 1; e < arguments.length; e++) {
3202
3205
  var t = arguments[e] != null ? arguments[e] : {};
3203
- e % 2 ? jt(Object(t), !0).forEach(function(n) {
3204
- Kt(i, n, t[n]);
3205
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : jt(Object(t)).forEach(function(n) {
3206
+ e % 2 ? kt(Object(t), !0).forEach(function(n) {
3207
+ Vt(i, n, t[n]);
3208
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : kt(Object(t)).forEach(function(n) {
3206
3209
  Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
3207
3210
  });
3208
3211
  }
3209
3212
  return i;
3210
3213
  }
3211
- function Sr(i, e) {
3214
+ function jr(i, e) {
3212
3215
  if (!(i instanceof e))
3213
3216
  throw new TypeError("Cannot call a class as a function");
3214
3217
  }
3215
- function xr(i, e) {
3218
+ function kr(i, e) {
3216
3219
  for (var t = 0; t < e.length; t++) {
3217
3220
  var n = e[t];
3218
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(i, Vt(n.key), n);
3221
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(i, zt(n.key), n);
3219
3222
  }
3220
3223
  }
3221
- function Pr(i, e, t) {
3222
- return e && xr(i.prototype, e), Object.defineProperty(i, "prototype", { writable: !1 }), i;
3224
+ function Lr(i, e, t) {
3225
+ return e && kr(i.prototype, e), Object.defineProperty(i, "prototype", { writable: !1 }), i;
3223
3226
  }
3224
- function Kt(i, e, t) {
3225
- return (e = Vt(e)) in i ? Object.defineProperty(i, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : i[e] = t, i;
3227
+ function Vt(i, e, t) {
3228
+ return (e = zt(e)) in i ? Object.defineProperty(i, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : i[e] = t, i;
3226
3229
  }
3227
- function Vt(i) {
3228
- var e = jr(i, "string");
3230
+ function zt(i) {
3231
+ var e = Rr(i, "string");
3229
3232
  return ae(e) == "symbol" ? e : e + "";
3230
3233
  }
3231
- function jr(i, e) {
3234
+ function Rr(i, e) {
3232
3235
  if (ae(i) != "object" || !i)
3233
3236
  return i;
3234
3237
  var t = i[Symbol.toPrimitive];
@@ -3240,7 +3243,7 @@ function jr(i, e) {
3240
3243
  }
3241
3244
  return String(i);
3242
3245
  }
3243
- var kr = function() {
3246
+ var Er = function() {
3244
3247
  return {
3245
3248
  loadPath: "/locales/{{lng}}/{{ns}}.json",
3246
3249
  addPath: "/locales/add/{{lng}}/{{ns}}",
@@ -3249,11 +3252,11 @@ var kr = function() {
3249
3252
  },
3250
3253
  stringify: JSON.stringify,
3251
3254
  parsePayload: function(t, n, r) {
3252
- return Kt({}, n, r || "");
3255
+ return Vt({}, n, r || "");
3253
3256
  },
3254
3257
  parseLoadPayload: function(t, n) {
3255
3258
  },
3256
- request: Or,
3259
+ request: Pr,
3257
3260
  reloadInterval: typeof window < "u" ? !1 : 60 * 60 * 1e3,
3258
3261
  customHeaders: {},
3259
3262
  queryStringParams: {},
@@ -3266,16 +3269,16 @@ var kr = function() {
3266
3269
  cache: "default"
3267
3270
  }
3268
3271
  };
3269
- }, zt = function() {
3272
+ }, Jt = function() {
3270
3273
  function i(e) {
3271
3274
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
3272
- Sr(this, i), this.services = e, this.options = t, this.allOptions = n, this.type = "backend", this.init(e, t, n);
3275
+ jr(this, i), this.services = e, this.options = t, this.allOptions = n, this.type = "backend", this.init(e, t, n);
3273
3276
  }
3274
- return Pr(i, [{
3277
+ return Lr(i, [{
3275
3278
  key: "init",
3276
3279
  value: function(t) {
3277
3280
  var n = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
3278
- if (this.services = t, this.options = _e(_e(_e({}, kr()), this.options || {}), r), this.allOptions = a, this.services && this.options.reloadInterval) {
3281
+ if (this.services = t, this.options = Ne(Ne(Ne({}, Er()), this.options || {}), r), this.allOptions = a, this.services && this.options.reloadInterval) {
3279
3282
  var o = setInterval(function() {
3280
3283
  return n.reload();
3281
3284
  }, this.options.reloadInterval);
@@ -3296,7 +3299,7 @@ var kr = function() {
3296
3299
  key: "_readAny",
3297
3300
  value: function(t, n, r, a, o) {
3298
3301
  var s = this, u = this.options.loadPath;
3299
- typeof this.options.loadPath == "function" && (u = this.options.loadPath(t, r)), u = pr(u), u.then(function(d) {
3302
+ typeof this.options.loadPath == "function" && (u = this.options.loadPath(t, r)), u = vr(u), u.then(function(d) {
3300
3303
  if (!d)
3301
3304
  return o(null, {});
3302
3305
  var c = s.services.interpolator.interpolate(d, {
@@ -3379,9 +3382,27 @@ var kr = function() {
3379
3382
  }
3380
3383
  }]);
3381
3384
  }();
3382
- zt.type = "backend";
3383
- var Lr = /* @__PURE__ */ ((i) => (i.en = "en", i.de = "de", i))(Lr || {});
3384
- N.use(Dt).use(Ht).use(er).init({
3385
+ Jt.type = "backend";
3386
+ var Cr = /* @__PURE__ */ ((i) => (i.en = "en", i.de = "de", i))(Cr || {});
3387
+ class _r {
3388
+ constructor(e, t = {}) {
3389
+ // Required i18next property to identify the type of plugin
3390
+ ge(this, "type", "backend");
3391
+ ge(this, "services");
3392
+ ge(this, "options");
3393
+ this.init(e, t);
3394
+ }
3395
+ init(e, t) {
3396
+ this.services = e, this.options = t;
3397
+ }
3398
+ read(e, t, n) {
3399
+ var a, o, s;
3400
+ let r = (s = (o = (a = window == null ? void 0 : window.parent) == null ? void 0 : a.translations) == null ? void 0 : o[e]) == null ? void 0 : s[t];
3401
+ r ? (console.log("🚀 ~ ParentCacheBackend ~ read ~ resources:", r), n(null, r)) : (n(new Error("No local or parent translation found"), null), console.log("🚀 ~ ParentCacheBackend ~ read ~ Error:"));
3402
+ }
3403
+ }
3404
+ N.use(It).use($t).use(rr).init({
3405
+ // 💥 CHANGED: Set to true to force immediate API load in the Shell on startup.
3385
3406
  initImmediate: !0,
3386
3407
  supportedLngs: [
3387
3408
  "en",
@@ -3391,8 +3412,10 @@ N.use(Dt).use(Ht).use(er).init({
3391
3412
  fallbackLng: "en",
3392
3413
  nonExplicitSupportedLngs: !0,
3393
3414
  load: "languageOnly",
3415
+ // ⚠️ IMPORTANT: List all expected top-level keys from your API response here as namespaces.
3394
3416
  ns: ["translation"],
3395
3417
  fallbackNS: "translation",
3418
+ // Use a reliable common namespace as fallback
3396
3419
  partialBundledLanguages: !0,
3397
3420
  resources: {},
3398
3421
  interpolation: { escapeValue: !1 },
@@ -3402,33 +3425,50 @@ N.use(Dt).use(Ht).use(er).init({
3402
3425
  convertDetectedLanguage: (i) => i == null ? void 0 : i.split("-")[0]
3403
3426
  },
3404
3427
  backend: {
3405
- backends: [zt],
3428
+ backends: [_r, Jt],
3406
3429
  backendOptions: [
3430
+ // Option for ParentCacheBackend
3431
+ {},
3432
+ // Option for HttpBackend
3407
3433
  {
3434
+ // ✅ FIX 1: Revert loadPath to exclude {{ns}}.json
3435
+ // The API returns ALL namespaces for a given language at this single endpoint.
3408
3436
  loadPath: (i) => {
3409
3437
  var r, a, o;
3410
3438
  const t = (Array.isArray(i) ? i[0] : i || "en").split("-")[0];
3411
3439
  return `${((r = window == null ? void 0 : window.env) == null ? void 0 : r.TRANSLATION_URL) ?? ((a = window == null ? void 0 : window.env) == null ? void 0 : a.VITE_BASE_URL) ?? ((o = window == null ? void 0 : window.env) == null ? void 0 : o.REACT_APP_BASE_URL) ?? `${location.protocol}//${location.host}`}/translations/${t}`;
3412
3440
  },
3413
- crossDomain: !0,
3414
- cacheHitMode: "refresh"
3441
+ request: async (i, e, t, n) => {
3442
+ try {
3443
+ console.log("🚀 ~ LoadTranslation URL:", e);
3444
+ const r = await fetch(e, { method: "GET" }), a = await r.json(), o = e.match(/\/translations\/([^/?]+)/), s = o ? o[1] : "en";
3445
+ console.log("🚀 ~ LoadTranslation URL Data:", a), window.translations = window.translations || {}, window.translations[s] = {
3446
+ translation: a
3447
+ }, console.log("🚀 ~ LoadTranslation URL window:", window.translations), n(null, {
3448
+ status: r.status,
3449
+ data: a
3450
+ });
3451
+ } catch (r) {
3452
+ n(r, { status: 500, data: {} });
3453
+ }
3454
+ }
3415
3455
  }
3416
3456
  ]
3417
3457
  }
3418
3458
  });
3419
- const me = {
3459
+ const ye = {
3420
3460
  "page-container": "_page-container_1pwo1_1",
3421
3461
  "page-main-content": "_page-main-content_1pwo1_8",
3422
3462
  "page-title": "_page-title_1pwo1_19",
3423
3463
  "text-base": "_text-base_1pwo1_26",
3424
3464
  "mt-4": "_mt-4_1pwo1_33"
3425
- }, Rr = () => {
3426
- const { t: i } = ar();
3427
- return /* @__PURE__ */ E.jsx("div", { className: "unauth__container " + me["page-container"], children: /* @__PURE__ */ E.jsxs("div", { className: "unauth__main-content " + me["page-main-content"], children: [
3428
- /* @__PURE__ */ E.jsx(Er, {}),
3465
+ }, Nr = () => {
3466
+ const { t: i } = ur();
3467
+ return /* @__PURE__ */ E.jsx("div", { className: "unauth__container " + ye["page-container"], children: /* @__PURE__ */ E.jsxs("div", { className: "unauth__main-content " + ye["page-main-content"], children: [
3468
+ /* @__PURE__ */ E.jsx(Tr, {}),
3429
3469
  /* @__PURE__ */ E.jsxs("div", { className: "unauth__main-text", children: [
3430
- /* @__PURE__ */ E.jsx("h2", { className: "unauth__main-text__title " + me["page-title"], children: i("components.unauthorizedPage.title") }),
3431
- /* @__PURE__ */ E.jsxs("p", { className: "unauth__main-text__desc " + me["text-base"], children: [
3470
+ /* @__PURE__ */ E.jsx("h2", { className: "unauth__main-text__title " + ye["page-title"], children: i("components.unauthorizedPage.title") }),
3471
+ /* @__PURE__ */ E.jsxs("p", { className: "unauth__main-text__desc " + ye["text-base"], children: [
3432
3472
  i("components.unauthorizedPage.description1"),
3433
3473
  " ",
3434
3474
  /* @__PURE__ */ E.jsx("br", {}),
@@ -3437,7 +3477,7 @@ const me = {
3437
3477
  ] })
3438
3478
  ] })
3439
3479
  ] }) });
3440
- }, Er = () => /* @__PURE__ */ E.jsxs(
3480
+ }, Tr = () => /* @__PURE__ */ E.jsxs(
3441
3481
  "svg",
3442
3482
  {
3443
3483
  width: "61",
@@ -3512,17 +3552,17 @@ const me = {
3512
3552
  ]
3513
3553
  }
3514
3554
  );
3515
- function Cr() {
3516
- return /* @__PURE__ */ E.jsx(or, { i18n: N, children: /* @__PURE__ */ E.jsx(Rr, {}) });
3555
+ function Ar() {
3556
+ return /* @__PURE__ */ E.jsx(fr, { i18n: N, children: /* @__PURE__ */ E.jsx(Nr, {}) });
3517
3557
  }
3518
3558
  {
3519
- const i = Xt(Cr);
3559
+ const i = Qt(Ar);
3520
3560
  customElements.define("access-denied", i);
3521
3561
  }
3522
3562
  export {
3523
- or as I,
3524
- Lr as L,
3525
- Rr as U,
3563
+ fr as I,
3564
+ Cr as L,
3565
+ Nr as U,
3526
3566
  N as i,
3527
- Ar as t
3567
+ Ur as t
3528
3568
  };