@ukpc-lib/react 0.2.30 → 0.2.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist/@types/resources.d.ts +457 -0
  2. package/dist/components/GlobalMenu/components/Tooltip.d.ts +8 -0
  3. package/dist/components/index.cjs +30 -30
  4. package/dist/components/index.js +2888 -2965
  5. package/dist/index.module-1f083a17.cjs +1088 -0
  6. package/dist/index.module-68397449.js +26213 -0
  7. package/dist/main.d.ts +0 -1
  8. package/dist/share/TranslationProvider/index.d.ts +4 -5
  9. package/dist/share/index.cjs +1 -1
  10. package/dist/share/index.js +20 -17
  11. package/package.json +3 -3
  12. package/web-components-bundle/access-denied/index.cjs +1 -1
  13. package/web-components-bundle/access-denied/index.js +2 -2
  14. package/web-components-bundle/global-menu/index.cjs +1 -1
  15. package/web-components-bundle/global-menu/index.js +2 -2
  16. package/web-components-bundle/global-topbar/index.cjs +1 -1
  17. package/web-components-bundle/global-topbar/index.js +4 -4
  18. package/web-components-bundle/has-permission/index.cjs +1 -1
  19. package/web-components-bundle/has-permission/index.js +4 -4
  20. package/web-components-bundle/index-090b40a1.cjs +3 -0
  21. package/web-components-bundle/{index-1db32fa4.cjs → index-2111aa4b.cjs} +80 -80
  22. package/web-components-bundle/{index-aa69d7f8.js → index-340d7782.js} +718 -723
  23. package/web-components-bundle/index-9d0c4c92.js +3506 -0
  24. package/web-components-bundle/{index-e20e66c0.js → index-c8cf7c0f.js} +1234 -1189
  25. package/web-components-bundle/{index-d3cefb44.cjs → index-fc7ef96b.cjs} +20 -20
  26. package/web-components-bundle/{react-to-web-component-cf652ce8.js → react-to-web-component-24d28041.js} +652 -645
  27. package/web-components-bundle/{react-to-web-component-fde3f1ba.cjs → react-to-web-component-5d347552.cjs} +9 -9
  28. package/dist/index.module-10fe74a9.js +0 -25593
  29. package/dist/index.module-5858fff5.cjs +0 -1087
  30. package/web-components-bundle/index-433c2a88.cjs +0 -2
  31. package/web-components-bundle/index-f9eb06fc.js +0 -3000
@@ -0,0 +1,3506 @@
1
+ import { r as $, _ as Vt, c as fe, b as Jt, s as Xt, j as E } from "./react-to-web-component-24d28041.js";
2
+ function Wt(i, e) {
3
+ for (var t = 0; t < e.length; t++) {
4
+ const n = e[t];
5
+ if (typeof n != "string" && !Array.isArray(n)) {
6
+ for (const r in n)
7
+ if (r !== "default" && !(r in i)) {
8
+ const a = Object.getOwnPropertyDescriptor(n, r);
9
+ a && Object.defineProperty(i, r, a.get ? a : {
10
+ enumerable: !0,
11
+ get: () => n[r]
12
+ });
13
+ }
14
+ }
15
+ }
16
+ return Object.freeze(Object.defineProperty(i, Symbol.toStringTag, { value: "Module" }));
17
+ }
18
+ function U(i) {
19
+ "@babel/helpers - typeof";
20
+ return U = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
21
+ return typeof e;
22
+ } : function(e) {
23
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
24
+ }, U(i);
25
+ }
26
+ function Gt(i, e) {
27
+ if (U(i) != "object" || !i)
28
+ return i;
29
+ var t = i[Symbol.toPrimitive];
30
+ if (t !== void 0) {
31
+ var n = t.call(i, e || "default");
32
+ if (U(n) != "object")
33
+ return n;
34
+ throw new TypeError("@@toPrimitive must return a primitive value.");
35
+ }
36
+ return (e === "string" ? String : Number)(i);
37
+ }
38
+ function Lt(i) {
39
+ var e = Gt(i, "string");
40
+ return U(e) == "symbol" ? e : String(e);
41
+ }
42
+ function Z(i) {
43
+ if (i === void 0)
44
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
45
+ return i;
46
+ }
47
+ function W(i, e, t) {
48
+ return e = Lt(e), e in i ? Object.defineProperty(i, e, {
49
+ value: t,
50
+ enumerable: !0,
51
+ configurable: !0,
52
+ writable: !0
53
+ }) : i[e] = t, i;
54
+ }
55
+ function Qt() {
56
+ if (console && console.warn) {
57
+ for (var i, e = arguments.length, t = new Array(e), n = 0; n < e; n++)
58
+ t[n] = arguments[n];
59
+ typeof t[0] == "string" && (t[0] = "react-i18next:: ".concat(t[0])), (i = console).warn.apply(i, t);
60
+ }
61
+ }
62
+ var $e = {};
63
+ function Ce() {
64
+ for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
65
+ e[t] = arguments[t];
66
+ typeof e[0] == "string" && $e[e[0]] || (typeof e[0] == "string" && ($e[e[0]] = /* @__PURE__ */ new Date()), Qt.apply(void 0, e));
67
+ }
68
+ var Rt = function(e, t) {
69
+ return function() {
70
+ if (e.isInitialized)
71
+ t();
72
+ else {
73
+ var n = function r() {
74
+ setTimeout(function() {
75
+ e.off("initialized", r);
76
+ }, 0), t();
77
+ };
78
+ e.on("initialized", n);
79
+ }
80
+ };
81
+ };
82
+ function qe(i, e, t) {
83
+ i.loadNamespaces(e, Rt(i, t));
84
+ }
85
+ function Ke(i, e, t, n) {
86
+ typeof t == "string" && (t = [t]), t.forEach(function(r) {
87
+ i.options.ns.indexOf(r) < 0 && i.options.ns.push(r);
88
+ }), i.loadLanguages(e, Rt(i, n));
89
+ }
90
+ function Yt(i, e) {
91
+ 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];
92
+ if (n.toLowerCase() === "cimode")
93
+ return !0;
94
+ var o = function(u, d) {
95
+ var c = e.services.backendConnector.state["".concat(u, "|").concat(d)];
96
+ return c === -1 || c === 2;
97
+ };
98
+ 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)));
99
+ }
100
+ function Zt(i, e) {
101
+ var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
102
+ if (!e.languages || !e.languages.length)
103
+ return Ce("i18n.languages were undefined or empty", e.languages), !0;
104
+ var n = e.options.ignoreJSONStructure !== void 0;
105
+ return n ? e.hasLoadedNamespace(i, {
106
+ lng: t.lng,
107
+ precheck: function(a, o) {
108
+ if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && a.services.backendConnector.backend && a.isLanguageChangingTo && !o(a.isLanguageChangingTo, i))
109
+ return !1;
110
+ }
111
+ }) : Yt(i, e, t);
112
+ }
113
+ var en = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, tn = {
114
+ "&amp;": "&",
115
+ "&#38;": "&",
116
+ "&lt;": "<",
117
+ "&#60;": "<",
118
+ "&gt;": ">",
119
+ "&#62;": ">",
120
+ "&apos;": "'",
121
+ "&#39;": "'",
122
+ "&quot;": '"',
123
+ "&#34;": '"',
124
+ "&nbsp;": " ",
125
+ "&#160;": " ",
126
+ "&copy;": "©",
127
+ "&#169;": "©",
128
+ "&reg;": "®",
129
+ "&#174;": "®",
130
+ "&hellip;": "…",
131
+ "&#8230;": "…",
132
+ "&#x2F;": "/",
133
+ "&#47;": "/"
134
+ }, nn = function(e) {
135
+ return tn[e];
136
+ }, rn = function(e) {
137
+ return e.replace(en, nn);
138
+ };
139
+ function ze(i, e) {
140
+ var t = Object.keys(i);
141
+ if (Object.getOwnPropertySymbols) {
142
+ var n = Object.getOwnPropertySymbols(i);
143
+ e && (n = n.filter(function(r) {
144
+ return Object.getOwnPropertyDescriptor(i, r).enumerable;
145
+ })), t.push.apply(t, n);
146
+ }
147
+ return t;
148
+ }
149
+ function Ve(i) {
150
+ for (var e = 1; e < arguments.length; e++) {
151
+ var t = arguments[e] != null ? arguments[e] : {};
152
+ e % 2 ? ze(Object(t), !0).forEach(function(n) {
153
+ W(i, n, t[n]);
154
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : ze(Object(t)).forEach(function(n) {
155
+ Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
156
+ });
157
+ }
158
+ return i;
159
+ }
160
+ var Te = {
161
+ bindI18n: "languageChanged",
162
+ bindI18nStore: "",
163
+ transEmptyNodeValue: "",
164
+ transSupportBasicHtmlNodes: !0,
165
+ transWrapTextNodes: "",
166
+ transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
167
+ useSuspense: !0,
168
+ unescape: rn
169
+ };
170
+ function an() {
171
+ var i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
172
+ Te = Ve(Ve({}, Te), i);
173
+ }
174
+ function on() {
175
+ return Te;
176
+ }
177
+ var Et;
178
+ function sn(i) {
179
+ Et = i;
180
+ }
181
+ function un() {
182
+ return Et;
183
+ }
184
+ function B(i, e) {
185
+ if (!(i instanceof e))
186
+ throw new TypeError("Cannot call a class as a function");
187
+ }
188
+ function Je(i, e) {
189
+ for (var t = 0; t < e.length; t++) {
190
+ var n = e[t];
191
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(i, Lt(n.key), n);
192
+ }
193
+ }
194
+ function H(i, e, t) {
195
+ return e && Je(i.prototype, e), t && Je(i, t), Object.defineProperty(i, "prototype", {
196
+ writable: !1
197
+ }), i;
198
+ }
199
+ var fn = {
200
+ type: "3rdParty",
201
+ init: function(e) {
202
+ an(e.options.react), sn(e);
203
+ }
204
+ }, _t = $.createContext(), cn = function() {
205
+ function i() {
206
+ B(this, i), this.usedNamespaces = {};
207
+ }
208
+ return H(i, [{
209
+ key: "addUsedNamespaces",
210
+ value: function(t) {
211
+ var n = this;
212
+ t.forEach(function(r) {
213
+ n.usedNamespaces[r] || (n.usedNamespaces[r] = !0);
214
+ });
215
+ }
216
+ }, {
217
+ key: "getUsedNamespaces",
218
+ value: function() {
219
+ return Object.keys(this.usedNamespaces);
220
+ }
221
+ }]), i;
222
+ }();
223
+ function Nt(i) {
224
+ if (Array.isArray(i))
225
+ return i;
226
+ }
227
+ function ln(i, e) {
228
+ var t = i == null ? null : typeof Symbol < "u" && i[Symbol.iterator] || i["@@iterator"];
229
+ if (t != null) {
230
+ var n, r, a, o, s = [], u = !0, d = !1;
231
+ try {
232
+ if (a = (t = t.call(i)).next, e === 0) {
233
+ if (Object(t) !== t)
234
+ return;
235
+ u = !1;
236
+ } else
237
+ for (; !(u = (n = a.call(t)).done) && (s.push(n.value), s.length !== e); u = !0)
238
+ ;
239
+ } catch (c) {
240
+ d = !0, r = c;
241
+ } finally {
242
+ try {
243
+ if (!u && t.return != null && (o = t.return(), Object(o) !== o))
244
+ return;
245
+ } finally {
246
+ if (d)
247
+ throw r;
248
+ }
249
+ }
250
+ return s;
251
+ }
252
+ }
253
+ function Xe(i, e) {
254
+ (e == null || e > i.length) && (e = i.length);
255
+ for (var t = 0, n = new Array(e); t < e; t++)
256
+ n[t] = i[t];
257
+ return n;
258
+ }
259
+ function Ct(i, e) {
260
+ if (i) {
261
+ if (typeof i == "string")
262
+ return Xe(i, e);
263
+ var t = Object.prototype.toString.call(i).slice(8, -1);
264
+ if (t === "Object" && i.constructor && (t = i.constructor.name), t === "Map" || t === "Set")
265
+ return Array.from(i);
266
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))
267
+ return Xe(i, e);
268
+ }
269
+ }
270
+ function Tt() {
271
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
272
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
273
+ }
274
+ function dn(i, e) {
275
+ return Nt(i) || ln(i, e) || Ct(i, e) || Tt();
276
+ }
277
+ function We(i, e) {
278
+ var t = Object.keys(i);
279
+ if (Object.getOwnPropertySymbols) {
280
+ var n = Object.getOwnPropertySymbols(i);
281
+ e && (n = n.filter(function(r) {
282
+ return Object.getOwnPropertyDescriptor(i, r).enumerable;
283
+ })), t.push.apply(t, n);
284
+ }
285
+ return t;
286
+ }
287
+ function Ee(i) {
288
+ for (var e = 1; e < arguments.length; e++) {
289
+ var t = arguments[e] != null ? arguments[e] : {};
290
+ e % 2 ? We(Object(t), !0).forEach(function(n) {
291
+ W(i, n, t[n]);
292
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : We(Object(t)).forEach(function(n) {
293
+ Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
294
+ });
295
+ }
296
+ return i;
297
+ }
298
+ var pn = function(e, t) {
299
+ var n = $.useRef();
300
+ return $.useEffect(function() {
301
+ n.current = t ? n.current : e;
302
+ }, [e, t]), n.current;
303
+ };
304
+ function gn(i) {
305
+ var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = e.i18n, n = $.useContext(_t) || {}, r = n.i18n, a = n.defaultNS, o = t || r || un();
306
+ if (o && !o.reportNamespaces && (o.reportNamespaces = new cn()), !o) {
307
+ Ce("You will need to pass in an i18next instance by using initReactI18next");
308
+ var s = function(R, _) {
309
+ return typeof _ == "string" ? _ : _ && U(_) === "object" && typeof _.defaultValue == "string" ? _.defaultValue : Array.isArray(R) ? R[R.length - 1] : R;
310
+ }, u = [s, {}, !1];
311
+ return u.t = s, u.i18n = {}, u.ready = !1, u;
312
+ }
313
+ o.options.react && o.options.react.wait !== void 0 && Ce("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
314
+ var d = Ee(Ee(Ee({}, on()), o.options.react), e), c = d.useSuspense, f = d.keyPrefix, p = i || a || o.options && o.options.defaultNS;
315
+ p = typeof p == "string" ? [p] : p || ["translation"], o.reportNamespaces.addUsedNamespaces && o.reportNamespaces.addUsedNamespaces(p);
316
+ var g = (o.isInitialized || o.initializedStoreOnce) && p.every(function(N) {
317
+ return Zt(N, o, d);
318
+ });
319
+ function y() {
320
+ return o.getFixedT(e.lng || null, d.nsMode === "fallback" ? p : p[0], f);
321
+ }
322
+ var b = $.useState(y), w = dn(b, 2), v = w[0], m = w[1], S = p.join();
323
+ e.lng && (S = "".concat(e.lng).concat(S));
324
+ var x = pn(S), k = $.useRef(!0);
325
+ $.useEffect(function() {
326
+ var N = d.bindI18n, R = d.bindI18nStore;
327
+ k.current = !0, !g && !c && (e.lng ? Ke(o, e.lng, p, function() {
328
+ k.current && m(y);
329
+ }) : qe(o, p, function() {
330
+ k.current && m(y);
331
+ })), g && x && x !== S && k.current && m(y);
332
+ function _() {
333
+ k.current && m(y);
334
+ }
335
+ return N && o && o.on(N, _), R && o && o.store.on(R, _), function() {
336
+ k.current = !1, N && o && N.split(" ").forEach(function(Y) {
337
+ return o.off(Y, _);
338
+ }), R && o && R.split(" ").forEach(function(Y) {
339
+ return o.store.off(Y, _);
340
+ });
341
+ };
342
+ }, [o, S]);
343
+ var D = $.useRef(!0);
344
+ $.useEffect(function() {
345
+ k.current && !D.current && m(y), D.current = !1;
346
+ }, [o, f]);
347
+ var I = [v, o, g];
348
+ if (I.t = v, I.i18n = o, I.ready = g, g || !g && !c)
349
+ return I;
350
+ throw new Promise(function(N) {
351
+ e.lng ? Ke(o, e.lng, p, function() {
352
+ return N();
353
+ }) : qe(o, p, function() {
354
+ return N();
355
+ });
356
+ });
357
+ }
358
+ function hn(i) {
359
+ var e = i.i18n, t = i.defaultNS, n = i.children, r = $.useMemo(function() {
360
+ return {
361
+ i18n: e,
362
+ defaultNS: t
363
+ };
364
+ }, [e, t]);
365
+ return $.createElement(_t.Provider, {
366
+ value: r
367
+ }, n);
368
+ }
369
+ function Se(i, e) {
370
+ if (typeof e != "function" && e !== null)
371
+ throw new TypeError("Super expression must either be null or a function");
372
+ i.prototype = Object.create(e && e.prototype, {
373
+ constructor: {
374
+ value: i,
375
+ writable: !0,
376
+ configurable: !0
377
+ }
378
+ }), Object.defineProperty(i, "prototype", {
379
+ writable: !1
380
+ }), e && Vt(i, e);
381
+ }
382
+ function de(i, e) {
383
+ if (e && (U(e) === "object" || typeof e == "function"))
384
+ return e;
385
+ if (e !== void 0)
386
+ throw new TypeError("Derived constructors may only return object or undefined");
387
+ return Z(i);
388
+ }
389
+ function X(i) {
390
+ return X = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
391
+ return t.__proto__ || Object.getPrototypeOf(t);
392
+ }, X(i);
393
+ }
394
+ function vn(i) {
395
+ if (typeof Symbol < "u" && i[Symbol.iterator] != null || i["@@iterator"] != null)
396
+ return Array.from(i);
397
+ }
398
+ function mn(i) {
399
+ return Nt(i) || vn(i) || Ct(i) || Tt();
400
+ }
401
+ function Ge(i, e) {
402
+ var t = Object.keys(i);
403
+ if (Object.getOwnPropertySymbols) {
404
+ var n = Object.getOwnPropertySymbols(i);
405
+ e && (n = n.filter(function(r) {
406
+ return Object.getOwnPropertyDescriptor(i, r).enumerable;
407
+ })), t.push.apply(t, n);
408
+ }
409
+ return t;
410
+ }
411
+ function Qe(i) {
412
+ for (var e = 1; e < arguments.length; e++) {
413
+ var t = arguments[e] != null ? arguments[e] : {};
414
+ e % 2 ? Ge(Object(t), !0).forEach(function(n) {
415
+ W(i, n, t[n]);
416
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : Ge(Object(t)).forEach(function(n) {
417
+ Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
418
+ });
419
+ }
420
+ return i;
421
+ }
422
+ var yn = {
423
+ type: "logger",
424
+ log: function(e) {
425
+ this.output("log", e);
426
+ },
427
+ warn: function(e) {
428
+ this.output("warn", e);
429
+ },
430
+ error: function(e) {
431
+ this.output("error", e);
432
+ },
433
+ output: function(e, t) {
434
+ console && console[e] && console[e].apply(console, t);
435
+ }
436
+ }, bn = function() {
437
+ function i(e) {
438
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
439
+ B(this, i), this.init(e, t);
440
+ }
441
+ return H(i, [{
442
+ key: "init",
443
+ value: function(t) {
444
+ var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
445
+ this.prefix = n.prefix || "i18next:", this.logger = t || yn, this.options = n, this.debug = n.debug;
446
+ }
447
+ }, {
448
+ key: "setDebug",
449
+ value: function(t) {
450
+ this.debug = t;
451
+ }
452
+ }, {
453
+ key: "log",
454
+ value: function() {
455
+ for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
456
+ n[r] = arguments[r];
457
+ return this.forward(n, "log", "", !0);
458
+ }
459
+ }, {
460
+ key: "warn",
461
+ value: function() {
462
+ for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
463
+ n[r] = arguments[r];
464
+ return this.forward(n, "warn", "", !0);
465
+ }
466
+ }, {
467
+ key: "error",
468
+ value: function() {
469
+ for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
470
+ n[r] = arguments[r];
471
+ return this.forward(n, "error", "");
472
+ }
473
+ }, {
474
+ key: "deprecate",
475
+ value: function() {
476
+ for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
477
+ n[r] = arguments[r];
478
+ return this.forward(n, "warn", "WARNING DEPRECATED: ", !0);
479
+ }
480
+ }, {
481
+ key: "forward",
482
+ value: function(t, n, r, a) {
483
+ return a && !this.debug ? null : (typeof t[0] == "string" && (t[0] = "".concat(r).concat(this.prefix, " ").concat(t[0])), this.logger[n](t));
484
+ }
485
+ }, {
486
+ key: "create",
487
+ value: function(t) {
488
+ return new i(this.logger, Qe(Qe({}, {
489
+ prefix: "".concat(this.prefix, ":").concat(t, ":")
490
+ }), this.options));
491
+ }
492
+ }, {
493
+ key: "clone",
494
+ value: function(t) {
495
+ return t = t || this.options, t.prefix = t.prefix || this.prefix, new i(this.logger, t);
496
+ }
497
+ }]), i;
498
+ }(), J = new bn(), ee = function() {
499
+ function i() {
500
+ B(this, i), this.observers = {};
501
+ }
502
+ return H(i, [{
503
+ key: "on",
504
+ value: function(t, n) {
505
+ var r = this;
506
+ return t.split(" ").forEach(function(a) {
507
+ r.observers[a] = r.observers[a] || [], r.observers[a].push(n);
508
+ }), this;
509
+ }
510
+ }, {
511
+ key: "off",
512
+ value: function(t, n) {
513
+ if (this.observers[t]) {
514
+ if (!n) {
515
+ delete this.observers[t];
516
+ return;
517
+ }
518
+ this.observers[t] = this.observers[t].filter(function(r) {
519
+ return r !== n;
520
+ });
521
+ }
522
+ }
523
+ }, {
524
+ key: "emit",
525
+ value: function(t) {
526
+ for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), a = 1; a < n; a++)
527
+ r[a - 1] = arguments[a];
528
+ if (this.observers[t]) {
529
+ var o = [].concat(this.observers[t]);
530
+ o.forEach(function(u) {
531
+ u.apply(void 0, r);
532
+ });
533
+ }
534
+ if (this.observers["*"]) {
535
+ var s = [].concat(this.observers["*"]);
536
+ s.forEach(function(u) {
537
+ u.apply(u, [t].concat(r));
538
+ });
539
+ }
540
+ }
541
+ }]), i;
542
+ }();
543
+ function oe() {
544
+ var i, e, t = new Promise(function(n, r) {
545
+ i = n, e = r;
546
+ });
547
+ return t.resolve = i, t.reject = e, t;
548
+ }
549
+ function Ye(i) {
550
+ return i == null ? "" : "" + i;
551
+ }
552
+ function wn(i, e, t) {
553
+ i.forEach(function(n) {
554
+ e[n] && (t[n] = e[n]);
555
+ });
556
+ }
557
+ function Fe(i, e, t) {
558
+ function n(s) {
559
+ return s && s.indexOf("###") > -1 ? s.replace(/###/g, ".") : s;
560
+ }
561
+ function r() {
562
+ return !i || typeof i == "string";
563
+ }
564
+ for (var a = typeof e != "string" ? [].concat(e) : e.split("."); a.length > 1; ) {
565
+ if (r())
566
+ return {};
567
+ var o = n(a.shift());
568
+ !i[o] && t && (i[o] = new t()), Object.prototype.hasOwnProperty.call(i, o) ? i = i[o] : i = {};
569
+ }
570
+ return r() ? {} : {
571
+ obj: i,
572
+ k: n(a.shift())
573
+ };
574
+ }
575
+ function Ze(i, e, t) {
576
+ var n = Fe(i, e, Object), r = n.obj, a = n.k;
577
+ r[a] = t;
578
+ }
579
+ function On(i, e, t, n) {
580
+ var r = Fe(i, e, Object), a = r.obj, o = r.k;
581
+ a[o] = a[o] || [], n && (a[o] = a[o].concat(t)), n || a[o].push(t);
582
+ }
583
+ function ye(i, e) {
584
+ var t = Fe(i, e), n = t.obj, r = t.k;
585
+ if (n)
586
+ return n[r];
587
+ }
588
+ function Sn(i, e, t) {
589
+ var n = ye(i, t);
590
+ return n !== void 0 ? n : ye(e, t);
591
+ }
592
+ function At(i, e, t) {
593
+ for (var n in e)
594
+ 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]) : At(i[n], e[n], t) : i[n] = e[n]);
595
+ return i;
596
+ }
597
+ function re(i) {
598
+ return i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
599
+ }
600
+ var xn = {
601
+ "&": "&amp;",
602
+ "<": "&lt;",
603
+ ">": "&gt;",
604
+ '"': "&quot;",
605
+ "'": "&#39;",
606
+ "/": "&#x2F;"
607
+ };
608
+ function Pn(i) {
609
+ return typeof i == "string" ? i.replace(/[&<>"'\/]/g, function(e) {
610
+ return xn[e];
611
+ }) : i;
612
+ }
613
+ var xe = typeof window < "u" && window.navigator && typeof window.navigator.userAgentData > "u" && window.navigator.userAgent && window.navigator.userAgent.indexOf("MSIE") > -1, jn = [" ", ",", "?", "!", ";"];
614
+ function kn(i, e, t) {
615
+ e = e || "", t = t || "";
616
+ var n = jn.filter(function(s) {
617
+ return e.indexOf(s) < 0 && t.indexOf(s) < 0;
618
+ });
619
+ if (n.length === 0)
620
+ return !0;
621
+ var r = new RegExp("(".concat(n.map(function(s) {
622
+ return s === "?" ? "\\?" : s;
623
+ }).join("|"), ")")), a = !r.test(i);
624
+ if (!a) {
625
+ var o = i.indexOf(t);
626
+ o > 0 && !r.test(i.substring(0, o)) && (a = !0);
627
+ }
628
+ return a;
629
+ }
630
+ function be(i, e) {
631
+ var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
632
+ if (i) {
633
+ if (i[e])
634
+ return i[e];
635
+ for (var n = e.split(t), r = i, a = 0; a < n.length; ++a) {
636
+ if (!r || typeof r[n[a]] == "string" && a + 1 < n.length)
637
+ return;
638
+ if (r[n[a]] === void 0) {
639
+ for (var o = 2, s = n.slice(a, a + o).join(t), u = r[s]; u === void 0 && n.length > a + o; )
640
+ o++, s = n.slice(a, a + o).join(t), u = r[s];
641
+ if (u === void 0)
642
+ return;
643
+ if (u === null)
644
+ return null;
645
+ if (e.endsWith(s)) {
646
+ if (typeof u == "string")
647
+ return u;
648
+ if (s && typeof u[s] == "string")
649
+ return u[s];
650
+ }
651
+ var d = n.slice(a + o).join(t);
652
+ return d ? be(u, d, t) : void 0;
653
+ }
654
+ r = r[n[a]];
655
+ }
656
+ return r;
657
+ }
658
+ }
659
+ function et(i, e) {
660
+ var t = Object.keys(i);
661
+ if (Object.getOwnPropertySymbols) {
662
+ var n = Object.getOwnPropertySymbols(i);
663
+ e && (n = n.filter(function(r) {
664
+ return Object.getOwnPropertyDescriptor(i, r).enumerable;
665
+ })), t.push.apply(t, n);
666
+ }
667
+ return t;
668
+ }
669
+ function ge(i) {
670
+ for (var e = 1; e < arguments.length; e++) {
671
+ var t = arguments[e] != null ? arguments[e] : {};
672
+ e % 2 ? et(Object(t), !0).forEach(function(n) {
673
+ W(i, n, t[n]);
674
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : et(Object(t)).forEach(function(n) {
675
+ Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
676
+ });
677
+ }
678
+ return i;
679
+ }
680
+ function Ln(i) {
681
+ var e = Rn();
682
+ return function() {
683
+ var n = X(i), r;
684
+ if (e) {
685
+ var a = X(this).constructor;
686
+ r = Reflect.construct(n, arguments, a);
687
+ } else
688
+ r = n.apply(this, arguments);
689
+ return de(this, r);
690
+ };
691
+ }
692
+ function Rn() {
693
+ if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
694
+ return !1;
695
+ if (typeof Proxy == "function")
696
+ return !0;
697
+ try {
698
+ return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
699
+ })), !0;
700
+ } catch {
701
+ return !1;
702
+ }
703
+ }
704
+ var En = function(i) {
705
+ Se(t, i);
706
+ var e = Ln(t);
707
+ function t(n) {
708
+ var r, a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
709
+ ns: ["translation"],
710
+ defaultNS: "translation"
711
+ };
712
+ 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;
713
+ }
714
+ return H(t, [{
715
+ key: "addNamespaces",
716
+ value: function(r) {
717
+ this.options.ns.indexOf(r) < 0 && this.options.ns.push(r);
718
+ }
719
+ }, {
720
+ key: "removeNamespaces",
721
+ value: function(r) {
722
+ var a = this.options.ns.indexOf(r);
723
+ a > -1 && this.options.ns.splice(a, 1);
724
+ }
725
+ }, {
726
+ key: "getResource",
727
+ value: function(r, a, o) {
728
+ 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];
729
+ 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("."));
730
+ var f = ye(this.data, c);
731
+ return f || !d || typeof o != "string" ? f : be(this.data && this.data[r] && this.data[r][a], o, u);
732
+ }
733
+ }, {
734
+ key: "addResource",
735
+ value: function(r, a, o, s) {
736
+ var u = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
737
+ silent: !1
738
+ }, d = u.keySeparator !== void 0 ? u.keySeparator : this.options.keySeparator, c = [r, a];
739
+ o && (c = c.concat(d ? o.split(d) : o)), r.indexOf(".") > -1 && (c = r.split("."), s = a, a = c[1]), this.addNamespaces(a), Ze(this.data, c, s), u.silent || this.emit("added", r, a, o, s);
740
+ }
741
+ }, {
742
+ key: "addResources",
743
+ value: function(r, a, o) {
744
+ var s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
745
+ silent: !1
746
+ };
747
+ for (var u in o)
748
+ (typeof o[u] == "string" || Object.prototype.toString.apply(o[u]) === "[object Array]") && this.addResource(r, a, u, o[u], {
749
+ silent: !0
750
+ });
751
+ s.silent || this.emit("added", r, a, o);
752
+ }
753
+ }, {
754
+ key: "addResourceBundle",
755
+ value: function(r, a, o, s, u) {
756
+ var d = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {
757
+ silent: !1
758
+ }, c = [r, a];
759
+ r.indexOf(".") > -1 && (c = r.split("."), s = o, o = a, a = c[1]), this.addNamespaces(a);
760
+ var f = ye(this.data, c) || {};
761
+ s ? At(f, o, u) : f = ge(ge({}, f), o), Ze(this.data, c, f), d.silent || this.emit("added", r, a, o);
762
+ }
763
+ }, {
764
+ key: "removeResourceBundle",
765
+ value: function(r, a) {
766
+ this.hasResourceBundle(r, a) && delete this.data[r][a], this.removeNamespaces(a), this.emit("removed", r, a);
767
+ }
768
+ }, {
769
+ key: "hasResourceBundle",
770
+ value: function(r, a) {
771
+ return this.getResource(r, a) !== void 0;
772
+ }
773
+ }, {
774
+ key: "getResourceBundle",
775
+ value: function(r, a) {
776
+ return a || (a = this.options.defaultNS), this.options.compatibilityAPI === "v1" ? ge(ge({}, {}), this.getResource(r, a)) : this.getResource(r, a);
777
+ }
778
+ }, {
779
+ key: "getDataByLanguage",
780
+ value: function(r) {
781
+ return this.data[r];
782
+ }
783
+ }, {
784
+ key: "hasLanguageSomeTranslations",
785
+ value: function(r) {
786
+ var a = this.getDataByLanguage(r), o = a && Object.keys(a) || [];
787
+ return !!o.find(function(s) {
788
+ return a[s] && Object.keys(a[s]).length > 0;
789
+ });
790
+ }
791
+ }, {
792
+ key: "toJSON",
793
+ value: function() {
794
+ return this.data;
795
+ }
796
+ }]), t;
797
+ }(ee), Dt = {
798
+ processors: {},
799
+ addPostProcessor: function(e) {
800
+ this.processors[e.name] = e;
801
+ },
802
+ handle: function(e, t, n, r, a) {
803
+ var o = this;
804
+ return e.forEach(function(s) {
805
+ o.processors[s] && (t = o.processors[s].process(t, n, r, a));
806
+ }), t;
807
+ }
808
+ };
809
+ function tt(i, e) {
810
+ var t = Object.keys(i);
811
+ if (Object.getOwnPropertySymbols) {
812
+ var n = Object.getOwnPropertySymbols(i);
813
+ e && (n = n.filter(function(r) {
814
+ return Object.getOwnPropertyDescriptor(i, r).enumerable;
815
+ })), t.push.apply(t, n);
816
+ }
817
+ return t;
818
+ }
819
+ function A(i) {
820
+ for (var e = 1; e < arguments.length; e++) {
821
+ var t = arguments[e] != null ? arguments[e] : {};
822
+ e % 2 ? tt(Object(t), !0).forEach(function(n) {
823
+ W(i, n, t[n]);
824
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : tt(Object(t)).forEach(function(n) {
825
+ Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
826
+ });
827
+ }
828
+ return i;
829
+ }
830
+ function _n(i) {
831
+ var e = Nn();
832
+ return function() {
833
+ var n = X(i), r;
834
+ if (e) {
835
+ var a = X(this).constructor;
836
+ r = Reflect.construct(n, arguments, a);
837
+ } else
838
+ r = n.apply(this, arguments);
839
+ return de(this, r);
840
+ };
841
+ }
842
+ function Nn() {
843
+ if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
844
+ return !1;
845
+ if (typeof Proxy == "function")
846
+ return !0;
847
+ try {
848
+ return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
849
+ })), !0;
850
+ } catch {
851
+ return !1;
852
+ }
853
+ }
854
+ var nt = {}, rt = function(i) {
855
+ Se(t, i);
856
+ var e = _n(t);
857
+ function t(n) {
858
+ var r, a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
859
+ return B(this, t), r = e.call(this), xe && ee.call(Z(r)), wn(["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;
860
+ }
861
+ return H(t, [{
862
+ key: "changeLanguage",
863
+ value: function(r) {
864
+ r && (this.language = r);
865
+ }
866
+ }, {
867
+ key: "exists",
868
+ value: function(r) {
869
+ var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
870
+ interpolation: {}
871
+ };
872
+ if (r == null)
873
+ return !1;
874
+ var o = this.resolve(r, a);
875
+ return o && o.res !== void 0;
876
+ }
877
+ }, {
878
+ key: "extractFromKey",
879
+ value: function(r, a) {
880
+ var o = a.nsSeparator !== void 0 ? a.nsSeparator : this.options.nsSeparator;
881
+ o === void 0 && (o = ":");
882
+ 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 && !kn(r, o, s);
883
+ if (d && !c) {
884
+ var f = r.match(this.interpolator.nestingRegexp);
885
+ if (f && f.length > 0)
886
+ return {
887
+ key: r,
888
+ namespaces: u
889
+ };
890
+ var p = r.split(o);
891
+ (o !== s || o === s && this.options.ns.indexOf(p[0]) > -1) && (u = p.shift()), r = p.join(s);
892
+ }
893
+ return typeof u == "string" && (u = [u]), {
894
+ key: r,
895
+ namespaces: u
896
+ };
897
+ }
898
+ }, {
899
+ key: "translate",
900
+ value: function(r, a, o) {
901
+ var s = this;
902
+ if (U(a) !== "object" && this.options.overloadTranslationOptionHandler && (a = this.options.overloadTranslationOptionHandler(arguments)), U(a) === "object" && (a = A({}, a)), a || (a = {}), r == null)
903
+ return "";
904
+ Array.isArray(r) || (r = [String(r)]);
905
+ 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], y = a.lng || this.language, b = a.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
906
+ if (y && y.toLowerCase() === "cimode") {
907
+ if (b) {
908
+ var w = a.nsSeparator || this.options.nsSeparator;
909
+ return u ? {
910
+ res: "".concat(g).concat(w).concat(f),
911
+ usedKey: f,
912
+ exactUsedKey: f,
913
+ usedLng: y,
914
+ usedNS: g
915
+ } : "".concat(g).concat(w).concat(f);
916
+ }
917
+ return u ? {
918
+ res: f,
919
+ usedKey: f,
920
+ exactUsedKey: f,
921
+ usedLng: y,
922
+ usedNS: g
923
+ } : f;
924
+ }
925
+ var v = this.resolve(r, a), m = v && v.res, S = v && v.usedKey || f, x = v && v.exactUsedKey || f, k = Object.prototype.toString.apply(m), D = ["[object Number]", "[object Function]", "[object RegExp]"], I = a.joinArrays !== void 0 ? a.joinArrays : this.options.joinArrays, N = !this.i18nFormat || this.i18nFormat.handleAsObject, R = typeof m != "string" && typeof m != "boolean" && typeof m != "number";
926
+ if (N && m && R && D.indexOf(k) < 0 && !(typeof I == "string" && k === "[object Array]")) {
927
+ if (!a.returnObjects && !this.options.returnObjects) {
928
+ this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
929
+ var _ = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(S, m, A(A({}, a), {}, {
930
+ ns: p
931
+ })) : "key '".concat(f, " (").concat(this.language, ")' returned an object instead of string.");
932
+ return u ? (v.res = _, v) : _;
933
+ }
934
+ if (d) {
935
+ var Y = k === "[object Array]", T = Y ? [] : {}, Pe = Y ? x : S;
936
+ for (var q in m)
937
+ if (Object.prototype.hasOwnProperty.call(m, q)) {
938
+ var l = "".concat(Pe).concat(d).concat(q);
939
+ T[q] = this.translate(l, A(A({}, a), {
940
+ joinArrays: !1,
941
+ ns: p
942
+ })), T[q] === l && (T[q] = m[q]);
943
+ }
944
+ m = T;
945
+ }
946
+ } else if (N && typeof I == "string" && k === "[object Array]")
947
+ m = m.join(I), m && (m = this.extendTranslation(m, r, a, o));
948
+ else {
949
+ var h = !1, O = !1, j = a.count !== void 0 && typeof a.count != "string", L = t.hasDefaultValue(a), P = j ? this.pluralResolver.getSuffix(y, a.count, a) : "", K = a["defaultValue".concat(P)] || a.defaultValue;
950
+ !this.isValidLookup(m) && L && (h = !0, m = K), this.isValidLookup(m) || (O = !0, m = f);
951
+ var je = a.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey, F = je && O ? void 0 : m, z = L && K !== m && this.options.updateMissing;
952
+ if (O || h || z) {
953
+ if (this.logger.log(z ? "updateKey" : "missingKey", y, g, f, z ? K : m), d) {
954
+ var Ue = this.resolve(f, A(A({}, a), {}, {
955
+ keySeparator: !1
956
+ }));
957
+ 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.");
958
+ }
959
+ var ae = [], pe = this.languageUtils.getFallbackCodes(this.options.fallbackLng, a.lng || this.language);
960
+ if (this.options.saveMissingTo === "fallback" && pe && pe[0])
961
+ for (var ke = 0; ke < pe.length; ke++)
962
+ ae.push(pe[ke]);
963
+ else
964
+ this.options.saveMissingTo === "all" ? ae = this.languageUtils.toResolveHierarchy(a.lng || this.language) : ae.push(a.lng || this.language);
965
+ var Be = function(ne, Re, He) {
966
+ var Me = L && He !== m ? He : F;
967
+ s.options.missingKeyHandler ? s.options.missingKeyHandler(ne, g, Re, Me, z, a) : s.backendConnector && s.backendConnector.saveMissing && s.backendConnector.saveMissing(ne, g, Re, Me, z, a), s.emit("missingKey", ne, g, Re, m);
968
+ };
969
+ this.options.saveMissing && (this.options.saveMissingPlurals && j ? ae.forEach(function(Le) {
970
+ s.pluralResolver.getSuffixes(Le, a).forEach(function(ne) {
971
+ Be([Le], f + ne, a["defaultValue".concat(ne)] || K);
972
+ });
973
+ }) : Be(ae, f, K));
974
+ }
975
+ 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));
976
+ }
977
+ return u ? (v.res = m, v) : m;
978
+ }
979
+ }, {
980
+ key: "extendTranslation",
981
+ value: function(r, a, o, s, u) {
982
+ var d = this;
983
+ if (this.i18nFormat && this.i18nFormat.parse)
984
+ r = this.i18nFormat.parse(r, A(A({}, this.options.interpolation.defaultVariables), o), s.usedLng, s.usedNS, s.usedKey, {
985
+ resolved: s
986
+ });
987
+ else if (!o.skipInterpolation) {
988
+ o.interpolation && this.interpolator.init(A(A({}, o), {
989
+ interpolation: A(A({}, this.options.interpolation), o.interpolation)
990
+ }));
991
+ var c = typeof r == "string" && (o && o.interpolation && o.interpolation.skipOnVariables !== void 0 ? o.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables), f;
992
+ if (c) {
993
+ var p = r.match(this.interpolator.nestingRegexp);
994
+ f = p && p.length;
995
+ }
996
+ var g = o.replace && typeof o.replace != "string" ? o.replace : o;
997
+ 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) {
998
+ var y = r.match(this.interpolator.nestingRegexp), b = y && y.length;
999
+ f < b && (o.nest = !1);
1000
+ }
1001
+ !o.lng && this.options.compatibilityAPI !== "v1" && s && s.res && (o.lng = s.usedLng), o.nest !== !1 && (r = this.interpolator.nest(r, function() {
1002
+ for (var m = arguments.length, S = new Array(m), x = 0; x < m; x++)
1003
+ S[x] = arguments[x];
1004
+ return u && u[0] === S[0] && !o.context ? (d.logger.warn("It seems you are nesting recursively key: ".concat(S[0], " in key: ").concat(a[0])), null) : d.translate.apply(d, S.concat([a]));
1005
+ }, o)), o.interpolation && this.interpolator.reset();
1006
+ }
1007
+ var w = o.postProcess || this.options.postProcess, v = typeof w == "string" ? [w] : w;
1008
+ return r != null && v && v.length && o.applyPostProcessor !== !1 && (r = Dt.handle(v, r, a, this.options && this.options.postProcessPassResolved ? A({
1009
+ i18nResolved: s
1010
+ }, o) : o, this)), r;
1011
+ }
1012
+ }, {
1013
+ key: "resolve",
1014
+ value: function(r) {
1015
+ var a = this, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s, u, d, c, f;
1016
+ return typeof r == "string" && (r = [r]), r.forEach(function(p) {
1017
+ if (!a.isValidLookup(s)) {
1018
+ var g = a.extractFromKey(p, o), y = g.key;
1019
+ u = y;
1020
+ var b = g.namespaces;
1021
+ a.options.fallbackNS && (b = b.concat(a.options.fallbackNS));
1022
+ 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);
1023
+ b.forEach(function(x) {
1024
+ a.isValidLookup(s) || (f = x, !nt["".concat(S[0], "-").concat(x)] && a.utils && a.utils.hasLoadedNamespace && !a.utils.hasLoadedNamespace(f) && (nt["".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) {
1025
+ if (!a.isValidLookup(s)) {
1026
+ c = k;
1027
+ var D = [y];
1028
+ if (a.i18nFormat && a.i18nFormat.addLookupKeys)
1029
+ a.i18nFormat.addLookupKeys(D, y, k, x, o);
1030
+ else {
1031
+ var I;
1032
+ w && (I = a.pluralResolver.getSuffix(k, o.count, o));
1033
+ var N = "".concat(a.options.pluralSeparator, "zero");
1034
+ if (w && (D.push(y + I), v && D.push(y + N)), m) {
1035
+ var R = "".concat(y).concat(a.options.contextSeparator).concat(o.context);
1036
+ D.push(R), w && (D.push(R + I), v && D.push(R + N));
1037
+ }
1038
+ }
1039
+ for (var _; _ = D.pop(); )
1040
+ a.isValidLookup(s) || (d = _, s = a.getResource(k, x, _, o));
1041
+ }
1042
+ }));
1043
+ });
1044
+ }
1045
+ }), {
1046
+ res: s,
1047
+ usedKey: u,
1048
+ exactUsedKey: d,
1049
+ usedLng: c,
1050
+ usedNS: f
1051
+ };
1052
+ }
1053
+ }, {
1054
+ key: "isValidLookup",
1055
+ value: function(r) {
1056
+ return r !== void 0 && !(!this.options.returnNull && r === null) && !(!this.options.returnEmptyString && r === "");
1057
+ }
1058
+ }, {
1059
+ key: "getResource",
1060
+ value: function(r, a, o) {
1061
+ var s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
1062
+ return this.i18nFormat && this.i18nFormat.getResource ? this.i18nFormat.getResource(r, a, o, s) : this.resourceStore.getResource(r, a, o, s);
1063
+ }
1064
+ }], [{
1065
+ key: "hasDefaultValue",
1066
+ value: function(r) {
1067
+ var a = "defaultValue";
1068
+ for (var o in r)
1069
+ if (Object.prototype.hasOwnProperty.call(r, o) && a === o.substring(0, a.length) && r[o] !== void 0)
1070
+ return !0;
1071
+ return !1;
1072
+ }
1073
+ }]), t;
1074
+ }(ee);
1075
+ function _e(i) {
1076
+ return i.charAt(0).toUpperCase() + i.slice(1);
1077
+ }
1078
+ var it = function() {
1079
+ function i(e) {
1080
+ B(this, i), this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = J.create("languageUtils");
1081
+ }
1082
+ return H(i, [{
1083
+ key: "getScriptPartFromCode",
1084
+ value: function(t) {
1085
+ if (!t || t.indexOf("-") < 0)
1086
+ return null;
1087
+ var n = t.split("-");
1088
+ return n.length === 2 || (n.pop(), n[n.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(n.join("-"));
1089
+ }
1090
+ }, {
1091
+ key: "getLanguagePartFromCode",
1092
+ value: function(t) {
1093
+ if (!t || t.indexOf("-") < 0)
1094
+ return t;
1095
+ var n = t.split("-");
1096
+ return this.formatLanguageCode(n[0]);
1097
+ }
1098
+ }, {
1099
+ key: "formatLanguageCode",
1100
+ value: function(t) {
1101
+ if (typeof t == "string" && t.indexOf("-") > -1) {
1102
+ var n = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"], r = t.split("-");
1103
+ return this.options.lowerCaseLng ? r = r.map(function(a) {
1104
+ return a.toLowerCase();
1105
+ }) : r.length === 2 ? (r[0] = r[0].toLowerCase(), r[1] = r[1].toUpperCase(), n.indexOf(r[1].toLowerCase()) > -1 && (r[1] = _e(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] = _e(r[1].toLowerCase())), n.indexOf(r[2].toLowerCase()) > -1 && (r[2] = _e(r[2].toLowerCase()))), r.join("-");
1106
+ }
1107
+ return this.options.cleanCode || this.options.lowerCaseLng ? t.toLowerCase() : t;
1108
+ }
1109
+ }, {
1110
+ key: "isSupportedCode",
1111
+ value: function(t) {
1112
+ return (this.options.load === "languageOnly" || this.options.nonExplicitSupportedLngs) && (t = this.getLanguagePartFromCode(t)), !this.supportedLngs || !this.supportedLngs.length || this.supportedLngs.indexOf(t) > -1;
1113
+ }
1114
+ }, {
1115
+ key: "getBestMatchFromCodes",
1116
+ value: function(t) {
1117
+ var n = this;
1118
+ if (!t)
1119
+ return null;
1120
+ var r;
1121
+ return t.forEach(function(a) {
1122
+ if (!r) {
1123
+ var o = n.formatLanguageCode(a);
1124
+ (!n.options.supportedLngs || n.isSupportedCode(o)) && (r = o);
1125
+ }
1126
+ }), !r && this.options.supportedLngs && t.forEach(function(a) {
1127
+ if (!r) {
1128
+ var o = n.getLanguagePartFromCode(a);
1129
+ if (n.isSupportedCode(o))
1130
+ return r = o;
1131
+ r = n.options.supportedLngs.find(function(s) {
1132
+ if (s === o)
1133
+ return s;
1134
+ if (!(s.indexOf("-") < 0 && o.indexOf("-") < 0) && s.indexOf(o) === 0)
1135
+ return s;
1136
+ });
1137
+ }
1138
+ }), r || (r = this.getFallbackCodes(this.options.fallbackLng)[0]), r;
1139
+ }
1140
+ }, {
1141
+ key: "getFallbackCodes",
1142
+ value: function(t, n) {
1143
+ if (!t)
1144
+ return [];
1145
+ if (typeof t == "function" && (t = t(n)), typeof t == "string" && (t = [t]), Object.prototype.toString.apply(t) === "[object Array]")
1146
+ return t;
1147
+ if (!n)
1148
+ return t.default || [];
1149
+ var r = t[n];
1150
+ return r || (r = t[this.getScriptPartFromCode(n)]), r || (r = t[this.formatLanguageCode(n)]), r || (r = t[this.getLanguagePartFromCode(n)]), r || (r = t.default), r || [];
1151
+ }
1152
+ }, {
1153
+ key: "toResolveHierarchy",
1154
+ value: function(t, n) {
1155
+ var r = this, a = this.getFallbackCodes(n || this.options.fallbackLng || [], t), o = [], s = function(d) {
1156
+ d && (r.isSupportedCode(d) ? o.push(d) : r.logger.warn("rejecting language code not found in supportedLngs: ".concat(d)));
1157
+ };
1158
+ return typeof t == "string" && t.indexOf("-") > -1 ? (this.options.load !== "languageOnly" && s(this.formatLanguageCode(t)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && s(this.getScriptPartFromCode(t)), this.options.load !== "currentOnly" && s(this.getLanguagePartFromCode(t))) : typeof t == "string" && s(this.formatLanguageCode(t)), a.forEach(function(u) {
1159
+ o.indexOf(u) < 0 && s(r.formatLanguageCode(u));
1160
+ }), o;
1161
+ }
1162
+ }]), i;
1163
+ }(), Cn = [{
1164
+ lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
1165
+ nr: [1, 2],
1166
+ fc: 1
1167
+ }, {
1168
+ lngs: ["af", "an", "ast", "az", "bg", "bn", "ca", "da", "de", "dev", "el", "en", "eo", "es", "et", "eu", "fi", "fo", "fur", "fy", "gl", "gu", "ha", "hi", "hu", "hy", "ia", "it", "kk", "kn", "ku", "lb", "mai", "ml", "mn", "mr", "nah", "nap", "nb", "ne", "nl", "nn", "no", "nso", "pa", "pap", "pms", "ps", "pt-PT", "rm", "sco", "se", "si", "so", "son", "sq", "sv", "sw", "ta", "te", "tk", "ur", "yo"],
1169
+ nr: [1, 2],
1170
+ fc: 2
1171
+ }, {
1172
+ lngs: ["ay", "bo", "cgg", "fa", "ht", "id", "ja", "jbo", "ka", "km", "ko", "ky", "lo", "ms", "sah", "su", "th", "tt", "ug", "vi", "wo", "zh"],
1173
+ nr: [1],
1174
+ fc: 3
1175
+ }, {
1176
+ lngs: ["be", "bs", "cnr", "dz", "hr", "ru", "sr", "uk"],
1177
+ nr: [1, 2, 5],
1178
+ fc: 4
1179
+ }, {
1180
+ lngs: ["ar"],
1181
+ nr: [0, 1, 2, 3, 11, 100],
1182
+ fc: 5
1183
+ }, {
1184
+ lngs: ["cs", "sk"],
1185
+ nr: [1, 2, 5],
1186
+ fc: 6
1187
+ }, {
1188
+ lngs: ["csb", "pl"],
1189
+ nr: [1, 2, 5],
1190
+ fc: 7
1191
+ }, {
1192
+ lngs: ["cy"],
1193
+ nr: [1, 2, 3, 8],
1194
+ fc: 8
1195
+ }, {
1196
+ lngs: ["fr"],
1197
+ nr: [1, 2],
1198
+ fc: 9
1199
+ }, {
1200
+ lngs: ["ga"],
1201
+ nr: [1, 2, 3, 7, 11],
1202
+ fc: 10
1203
+ }, {
1204
+ lngs: ["gd"],
1205
+ nr: [1, 2, 3, 20],
1206
+ fc: 11
1207
+ }, {
1208
+ lngs: ["is"],
1209
+ nr: [1, 2],
1210
+ fc: 12
1211
+ }, {
1212
+ lngs: ["jv"],
1213
+ nr: [0, 1],
1214
+ fc: 13
1215
+ }, {
1216
+ lngs: ["kw"],
1217
+ nr: [1, 2, 3, 4],
1218
+ fc: 14
1219
+ }, {
1220
+ lngs: ["lt"],
1221
+ nr: [1, 2, 10],
1222
+ fc: 15
1223
+ }, {
1224
+ lngs: ["lv"],
1225
+ nr: [1, 2, 0],
1226
+ fc: 16
1227
+ }, {
1228
+ lngs: ["mk"],
1229
+ nr: [1, 2],
1230
+ fc: 17
1231
+ }, {
1232
+ lngs: ["mnk"],
1233
+ nr: [0, 1, 2],
1234
+ fc: 18
1235
+ }, {
1236
+ lngs: ["mt"],
1237
+ nr: [1, 2, 11, 20],
1238
+ fc: 19
1239
+ }, {
1240
+ lngs: ["or"],
1241
+ nr: [2, 1],
1242
+ fc: 2
1243
+ }, {
1244
+ lngs: ["ro"],
1245
+ nr: [1, 2, 20],
1246
+ fc: 20
1247
+ }, {
1248
+ lngs: ["sl"],
1249
+ nr: [5, 1, 2, 3],
1250
+ fc: 21
1251
+ }, {
1252
+ lngs: ["he", "iw"],
1253
+ nr: [1, 2, 20, 21],
1254
+ fc: 22
1255
+ }], Tn = {
1256
+ 1: function(e) {
1257
+ return +(e > 1);
1258
+ },
1259
+ 2: function(e) {
1260
+ return +(e != 1);
1261
+ },
1262
+ 3: function(e) {
1263
+ return 0;
1264
+ },
1265
+ 4: function(e) {
1266
+ return e % 10 == 1 && e % 100 != 11 ? 0 : e % 10 >= 2 && e % 10 <= 4 && (e % 100 < 10 || e % 100 >= 20) ? 1 : 2;
1267
+ },
1268
+ 5: function(e) {
1269
+ return e == 0 ? 0 : e == 1 ? 1 : e == 2 ? 2 : e % 100 >= 3 && e % 100 <= 10 ? 3 : e % 100 >= 11 ? 4 : 5;
1270
+ },
1271
+ 6: function(e) {
1272
+ return e == 1 ? 0 : e >= 2 && e <= 4 ? 1 : 2;
1273
+ },
1274
+ 7: function(e) {
1275
+ return e == 1 ? 0 : e % 10 >= 2 && e % 10 <= 4 && (e % 100 < 10 || e % 100 >= 20) ? 1 : 2;
1276
+ },
1277
+ 8: function(e) {
1278
+ return e == 1 ? 0 : e == 2 ? 1 : e != 8 && e != 11 ? 2 : 3;
1279
+ },
1280
+ 9: function(e) {
1281
+ return +(e >= 2);
1282
+ },
1283
+ 10: function(e) {
1284
+ return e == 1 ? 0 : e == 2 ? 1 : e < 7 ? 2 : e < 11 ? 3 : 4;
1285
+ },
1286
+ 11: function(e) {
1287
+ return e == 1 || e == 11 ? 0 : e == 2 || e == 12 ? 1 : e > 2 && e < 20 ? 2 : 3;
1288
+ },
1289
+ 12: function(e) {
1290
+ return +(e % 10 != 1 || e % 100 == 11);
1291
+ },
1292
+ 13: function(e) {
1293
+ return +(e !== 0);
1294
+ },
1295
+ 14: function(e) {
1296
+ return e == 1 ? 0 : e == 2 ? 1 : e == 3 ? 2 : 3;
1297
+ },
1298
+ 15: function(e) {
1299
+ return e % 10 == 1 && e % 100 != 11 ? 0 : e % 10 >= 2 && (e % 100 < 10 || e % 100 >= 20) ? 1 : 2;
1300
+ },
1301
+ 16: function(e) {
1302
+ return e % 10 == 1 && e % 100 != 11 ? 0 : e !== 0 ? 1 : 2;
1303
+ },
1304
+ 17: function(e) {
1305
+ return e == 1 || e % 10 == 1 && e % 100 != 11 ? 0 : 1;
1306
+ },
1307
+ 18: function(e) {
1308
+ return e == 0 ? 0 : e == 1 ? 1 : 2;
1309
+ },
1310
+ 19: function(e) {
1311
+ return e == 1 ? 0 : e == 0 || e % 100 > 1 && e % 100 < 11 ? 1 : e % 100 > 10 && e % 100 < 20 ? 2 : 3;
1312
+ },
1313
+ 20: function(e) {
1314
+ return e == 1 ? 0 : e == 0 || e % 100 > 0 && e % 100 < 20 ? 1 : 2;
1315
+ },
1316
+ 21: function(e) {
1317
+ return e % 100 == 1 ? 1 : e % 100 == 2 ? 2 : e % 100 == 3 || e % 100 == 4 ? 3 : 0;
1318
+ },
1319
+ 22: function(e) {
1320
+ return e == 1 ? 0 : e == 2 ? 1 : (e < 0 || e > 10) && e % 10 == 0 ? 2 : 3;
1321
+ }
1322
+ }, An = ["v1", "v2", "v3"], at = {
1323
+ zero: 0,
1324
+ one: 1,
1325
+ two: 2,
1326
+ few: 3,
1327
+ many: 4,
1328
+ other: 5
1329
+ };
1330
+ function Dn() {
1331
+ var i = {};
1332
+ return Cn.forEach(function(e) {
1333
+ e.lngs.forEach(function(t) {
1334
+ i[t] = {
1335
+ numbers: e.nr,
1336
+ plurals: Tn[e.fc]
1337
+ };
1338
+ });
1339
+ }), i;
1340
+ }
1341
+ var In = function() {
1342
+ function i(e) {
1343
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1344
+ 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 = Dn();
1345
+ }
1346
+ return H(i, [{
1347
+ key: "addRule",
1348
+ value: function(t, n) {
1349
+ this.rules[t] = n;
1350
+ }
1351
+ }, {
1352
+ key: "getRule",
1353
+ value: function(t) {
1354
+ var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1355
+ if (this.shouldUseIntlApi())
1356
+ try {
1357
+ return new Intl.PluralRules(t, {
1358
+ type: n.ordinal ? "ordinal" : "cardinal"
1359
+ });
1360
+ } catch {
1361
+ return;
1362
+ }
1363
+ return this.rules[t] || this.rules[this.languageUtils.getLanguagePartFromCode(t)];
1364
+ }
1365
+ }, {
1366
+ key: "needsPlural",
1367
+ value: function(t) {
1368
+ var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = this.getRule(t, n);
1369
+ return this.shouldUseIntlApi() ? r && r.resolvedOptions().pluralCategories.length > 1 : r && r.numbers.length > 1;
1370
+ }
1371
+ }, {
1372
+ key: "getPluralFormsOfKey",
1373
+ value: function(t, n) {
1374
+ var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
1375
+ return this.getSuffixes(t, r).map(function(a) {
1376
+ return "".concat(n).concat(a);
1377
+ });
1378
+ }
1379
+ }, {
1380
+ key: "getSuffixes",
1381
+ value: function(t) {
1382
+ var n = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = this.getRule(t, r);
1383
+ return a ? this.shouldUseIntlApi() ? a.resolvedOptions().pluralCategories.sort(function(o, s) {
1384
+ return at[o] - at[s];
1385
+ }).map(function(o) {
1386
+ return "".concat(n.options.prepend).concat(o);
1387
+ }) : a.numbers.map(function(o) {
1388
+ return n.getSuffix(t, o, r);
1389
+ }) : [];
1390
+ }
1391
+ }, {
1392
+ key: "getSuffix",
1393
+ value: function(t, n) {
1394
+ var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, a = this.getRule(t, r);
1395
+ return a ? this.shouldUseIntlApi() ? "".concat(this.options.prepend).concat(a.select(n)) : this.getSuffixRetroCompatible(a, n) : (this.logger.warn("no plural rule found for: ".concat(t)), "");
1396
+ }
1397
+ }, {
1398
+ key: "getSuffixRetroCompatible",
1399
+ value: function(t, n) {
1400
+ var r = this, a = t.noAbs ? t.plurals(n) : t.plurals(Math.abs(n)), o = t.numbers[a];
1401
+ this.options.simplifyPluralSuffix && t.numbers.length === 2 && t.numbers[0] === 1 && (o === 2 ? o = "plural" : o === 1 && (o = ""));
1402
+ var s = function() {
1403
+ return r.options.prepend && o.toString() ? r.options.prepend + o.toString() : o.toString();
1404
+ };
1405
+ return this.options.compatibilityJSON === "v1" ? o === 1 ? "" : typeof o == "number" ? "_plural_".concat(o.toString()) : s() : this.options.compatibilityJSON === "v2" || this.options.simplifyPluralSuffix && t.numbers.length === 2 && t.numbers[0] === 1 ? s() : this.options.prepend && a.toString() ? this.options.prepend + a.toString() : a.toString();
1406
+ }
1407
+ }, {
1408
+ key: "shouldUseIntlApi",
1409
+ value: function() {
1410
+ return !An.includes(this.options.compatibilityJSON);
1411
+ }
1412
+ }]), i;
1413
+ }();
1414
+ function ot(i, e) {
1415
+ var t = Object.keys(i);
1416
+ if (Object.getOwnPropertySymbols) {
1417
+ var n = Object.getOwnPropertySymbols(i);
1418
+ e && (n = n.filter(function(r) {
1419
+ return Object.getOwnPropertyDescriptor(i, r).enumerable;
1420
+ })), t.push.apply(t, n);
1421
+ }
1422
+ return t;
1423
+ }
1424
+ function M(i) {
1425
+ for (var e = 1; e < arguments.length; e++) {
1426
+ var t = arguments[e] != null ? arguments[e] : {};
1427
+ e % 2 ? ot(Object(t), !0).forEach(function(n) {
1428
+ W(i, n, t[n]);
1429
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : ot(Object(t)).forEach(function(n) {
1430
+ Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
1431
+ });
1432
+ }
1433
+ return i;
1434
+ }
1435
+ function st(i, e, t) {
1436
+ var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", r = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, a = Sn(i, e, t);
1437
+ return !a && r && typeof t == "string" && (a = be(i, t, n), a === void 0 && (a = be(e, t, n))), a;
1438
+ }
1439
+ var Fn = function() {
1440
+ function i() {
1441
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1442
+ B(this, i), this.logger = J.create("interpolator"), this.options = e, this.format = e.interpolation && e.interpolation.format || function(t) {
1443
+ return t;
1444
+ }, this.init(e);
1445
+ }
1446
+ return H(i, [{
1447
+ key: "init",
1448
+ value: function() {
1449
+ var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1450
+ t.interpolation || (t.interpolation = {
1451
+ escapeValue: !0
1452
+ });
1453
+ var n = t.interpolation;
1454
+ this.escape = n.escape !== void 0 ? n.escape : Pn, 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();
1455
+ }
1456
+ }, {
1457
+ key: "reset",
1458
+ value: function() {
1459
+ this.options && this.init(this.options);
1460
+ }
1461
+ }, {
1462
+ key: "resetRegExp",
1463
+ value: function() {
1464
+ var t = "".concat(this.prefix, "(.+?)").concat(this.suffix);
1465
+ this.regexp = new RegExp(t, "g");
1466
+ var n = "".concat(this.prefix).concat(this.unescapePrefix, "(.+?)").concat(this.unescapeSuffix).concat(this.suffix);
1467
+ this.regexpUnescape = new RegExp(n, "g");
1468
+ var r = "".concat(this.nestingPrefix, "(.+?)").concat(this.nestingSuffix);
1469
+ this.nestingRegexp = new RegExp(r, "g");
1470
+ }
1471
+ }, {
1472
+ key: "interpolate",
1473
+ value: function(t, n, r, a) {
1474
+ var o = this, s, u, d, c = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {};
1475
+ function f(w) {
1476
+ return w.replace(/\$/g, "$$$$");
1477
+ }
1478
+ var p = function(v) {
1479
+ if (v.indexOf(o.formatSeparator) < 0) {
1480
+ var m = st(n, c, v, o.options.keySeparator, o.options.ignoreJSONStructure);
1481
+ return o.alwaysFormat ? o.format(m, void 0, r, M(M(M({}, a), n), {}, {
1482
+ interpolationkey: v
1483
+ })) : m;
1484
+ }
1485
+ var S = v.split(o.formatSeparator), x = S.shift().trim(), k = S.join(o.formatSeparator).trim();
1486
+ return o.format(st(n, c, x, o.options.keySeparator, o.options.ignoreJSONStructure), k, r, M(M(M({}, a), n), {}, {
1487
+ interpolationkey: x
1488
+ }));
1489
+ };
1490
+ this.resetRegExp();
1491
+ var g = a && a.missingInterpolationHandler || this.options.missingInterpolationHandler, y = a && a.interpolation && a.interpolation.skipOnVariables !== void 0 ? a.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables, b = [{
1492
+ regex: this.regexpUnescape,
1493
+ safeValue: function(v) {
1494
+ return f(v);
1495
+ }
1496
+ }, {
1497
+ regex: this.regexp,
1498
+ safeValue: function(v) {
1499
+ return o.escapeValue ? f(o.escape(v)) : f(v);
1500
+ }
1501
+ }];
1502
+ return b.forEach(function(w) {
1503
+ for (d = 0; s = w.regex.exec(t); ) {
1504
+ var v = s[1].trim();
1505
+ if (u = p(v), u === void 0)
1506
+ if (typeof g == "function") {
1507
+ var m = g(t, s, a);
1508
+ u = typeof m == "string" ? m : "";
1509
+ } else if (a && Object.prototype.hasOwnProperty.call(a, v))
1510
+ u = "";
1511
+ else if (y) {
1512
+ u = s[0];
1513
+ continue;
1514
+ } else
1515
+ o.logger.warn("missed to pass in variable ".concat(v, " for interpolating ").concat(t)), u = "";
1516
+ else
1517
+ typeof u != "string" && !o.useRawValueToEscape && (u = Ye(u));
1518
+ var S = w.safeValue(u);
1519
+ if (t = t.replace(s[0], S), y ? (w.regex.lastIndex += u.length, w.regex.lastIndex -= s[0].length) : w.regex.lastIndex = 0, d++, d >= o.maxReplaces)
1520
+ break;
1521
+ }
1522
+ }), t;
1523
+ }
1524
+ }, {
1525
+ key: "nest",
1526
+ value: function(t, n) {
1527
+ var r = this, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o, s, u;
1528
+ function d(g, y) {
1529
+ var b = this.nestingOptionsSeparator;
1530
+ if (g.indexOf(b) < 0)
1531
+ return g;
1532
+ var w = g.split(new RegExp("".concat(b, "[ ]*{"))), v = "{".concat(w[1]);
1533
+ g = w[0], v = this.interpolate(v, u);
1534
+ var m = v.match(/'/g), S = v.match(/"/g);
1535
+ (m && m.length % 2 === 0 && !S || S.length % 2 !== 0) && (v = v.replace(/'/g, '"'));
1536
+ try {
1537
+ u = JSON.parse(v), y && (u = M(M({}, y), u));
1538
+ } catch (x) {
1539
+ return this.logger.warn("failed parsing options string in nesting for key ".concat(g), x), "".concat(g).concat(b).concat(v);
1540
+ }
1541
+ return delete u.defaultValue, g;
1542
+ }
1543
+ for (; o = this.nestingRegexp.exec(t); ) {
1544
+ var c = [];
1545
+ u = M({}, a), u = u.replace && typeof u.replace != "string" ? u.replace : u, u.applyPostProcessor = !1, delete u.defaultValue;
1546
+ var f = !1;
1547
+ if (o[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(o[1])) {
1548
+ var p = o[1].split(this.formatSeparator).map(function(g) {
1549
+ return g.trim();
1550
+ });
1551
+ o[1] = p.shift(), c = p, f = !0;
1552
+ }
1553
+ if (s = n(d.call(this, o[1].trim(), u), u), s && o[0] === t && typeof s != "string")
1554
+ return s;
1555
+ typeof s != "string" && (s = Ye(s)), s || (this.logger.warn("missed to resolve ".concat(o[1], " for nesting ").concat(t)), s = ""), f && (s = c.reduce(function(g, y) {
1556
+ return r.format(g, y, a.lng, M(M({}, a), {}, {
1557
+ interpolationkey: o[1].trim()
1558
+ }));
1559
+ }, s.trim())), t = t.replace(o[0], s), this.regexp.lastIndex = 0;
1560
+ }
1561
+ return t;
1562
+ }
1563
+ }]), i;
1564
+ }();
1565
+ function ut(i, e) {
1566
+ var t = Object.keys(i);
1567
+ if (Object.getOwnPropertySymbols) {
1568
+ var n = Object.getOwnPropertySymbols(i);
1569
+ e && (n = n.filter(function(r) {
1570
+ return Object.getOwnPropertyDescriptor(i, r).enumerable;
1571
+ })), t.push.apply(t, n);
1572
+ }
1573
+ return t;
1574
+ }
1575
+ function G(i) {
1576
+ for (var e = 1; e < arguments.length; e++) {
1577
+ var t = arguments[e] != null ? arguments[e] : {};
1578
+ e % 2 ? ut(Object(t), !0).forEach(function(n) {
1579
+ W(i, n, t[n]);
1580
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : ut(Object(t)).forEach(function(n) {
1581
+ Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
1582
+ });
1583
+ }
1584
+ return i;
1585
+ }
1586
+ function Un(i) {
1587
+ var e = i.toLowerCase().trim(), t = {};
1588
+ if (i.indexOf("(") > -1) {
1589
+ var n = i.split("(");
1590
+ e = n[0].toLowerCase().trim();
1591
+ var r = n[1].substring(0, n[1].length - 1);
1592
+ if (e === "currency" && r.indexOf(":") < 0)
1593
+ t.currency || (t.currency = r.trim());
1594
+ else if (e === "relativetime" && r.indexOf(":") < 0)
1595
+ t.range || (t.range = r.trim());
1596
+ else {
1597
+ var a = r.split(";");
1598
+ a.forEach(function(o) {
1599
+ if (o) {
1600
+ var s = o.split(":"), u = mn(s), d = u[0], c = u.slice(1), f = c.join(":").trim().replace(/^'+|'+$/g, "");
1601
+ 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));
1602
+ }
1603
+ });
1604
+ }
1605
+ }
1606
+ return {
1607
+ formatName: e,
1608
+ formatOptions: t
1609
+ };
1610
+ }
1611
+ function ie(i) {
1612
+ var e = {};
1613
+ return function(n, r, a) {
1614
+ var o = r + JSON.stringify(a), s = e[o];
1615
+ return s || (s = i(r, a), e[o] = s), s(n);
1616
+ };
1617
+ }
1618
+ var Bn = function() {
1619
+ function i() {
1620
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1621
+ B(this, i), this.logger = J.create("formatter"), this.options = e, this.formats = {
1622
+ number: ie(function(t, n) {
1623
+ var r = new Intl.NumberFormat(t, G({}, n));
1624
+ return function(a) {
1625
+ return r.format(a);
1626
+ };
1627
+ }),
1628
+ currency: ie(function(t, n) {
1629
+ var r = new Intl.NumberFormat(t, G(G({}, n), {}, {
1630
+ style: "currency"
1631
+ }));
1632
+ return function(a) {
1633
+ return r.format(a);
1634
+ };
1635
+ }),
1636
+ datetime: ie(function(t, n) {
1637
+ var r = new Intl.DateTimeFormat(t, G({}, n));
1638
+ return function(a) {
1639
+ return r.format(a);
1640
+ };
1641
+ }),
1642
+ relativetime: ie(function(t, n) {
1643
+ var r = new Intl.RelativeTimeFormat(t, G({}, n));
1644
+ return function(a) {
1645
+ return r.format(a, n.range || "day");
1646
+ };
1647
+ }),
1648
+ list: ie(function(t, n) {
1649
+ var r = new Intl.ListFormat(t, G({}, n));
1650
+ return function(a) {
1651
+ return r.format(a);
1652
+ };
1653
+ })
1654
+ }, this.init(e);
1655
+ }
1656
+ return H(i, [{
1657
+ key: "init",
1658
+ value: function(t) {
1659
+ var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
1660
+ interpolation: {}
1661
+ }, r = n.interpolation;
1662
+ this.formatSeparator = r.formatSeparator ? r.formatSeparator : r.formatSeparator || ",";
1663
+ }
1664
+ }, {
1665
+ key: "add",
1666
+ value: function(t, n) {
1667
+ this.formats[t.toLowerCase().trim()] = n;
1668
+ }
1669
+ }, {
1670
+ key: "addCached",
1671
+ value: function(t, n) {
1672
+ this.formats[t.toLowerCase().trim()] = ie(n);
1673
+ }
1674
+ }, {
1675
+ key: "format",
1676
+ value: function(t, n, r) {
1677
+ var a = this, o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, s = n.split(this.formatSeparator), u = s.reduce(function(d, c) {
1678
+ var f = Un(c), p = f.formatName, g = f.formatOptions;
1679
+ if (a.formats[p]) {
1680
+ var y = d;
1681
+ try {
1682
+ var b = o && o.formatParams && o.formatParams[o.interpolationkey] || {}, w = b.locale || b.lng || o.locale || o.lng || r;
1683
+ y = a.formats[p](d, w, G(G(G({}, g), o), b));
1684
+ } catch (v) {
1685
+ a.logger.warn(v);
1686
+ }
1687
+ return y;
1688
+ } else
1689
+ a.logger.warn("there was no format function for ".concat(p));
1690
+ return d;
1691
+ }, t);
1692
+ return u;
1693
+ }
1694
+ }]), i;
1695
+ }();
1696
+ function ft(i, e) {
1697
+ var t = Object.keys(i);
1698
+ if (Object.getOwnPropertySymbols) {
1699
+ var n = Object.getOwnPropertySymbols(i);
1700
+ e && (n = n.filter(function(r) {
1701
+ return Object.getOwnPropertyDescriptor(i, r).enumerable;
1702
+ })), t.push.apply(t, n);
1703
+ }
1704
+ return t;
1705
+ }
1706
+ function ct(i) {
1707
+ for (var e = 1; e < arguments.length; e++) {
1708
+ var t = arguments[e] != null ? arguments[e] : {};
1709
+ e % 2 ? ft(Object(t), !0).forEach(function(n) {
1710
+ W(i, n, t[n]);
1711
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : ft(Object(t)).forEach(function(n) {
1712
+ Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
1713
+ });
1714
+ }
1715
+ return i;
1716
+ }
1717
+ function Hn(i) {
1718
+ var e = Mn();
1719
+ return function() {
1720
+ var n = X(i), r;
1721
+ if (e) {
1722
+ var a = X(this).constructor;
1723
+ r = Reflect.construct(n, arguments, a);
1724
+ } else
1725
+ r = n.apply(this, arguments);
1726
+ return de(this, r);
1727
+ };
1728
+ }
1729
+ function Mn() {
1730
+ if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
1731
+ return !1;
1732
+ if (typeof Proxy == "function")
1733
+ return !0;
1734
+ try {
1735
+ return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
1736
+ })), !0;
1737
+ } catch {
1738
+ return !1;
1739
+ }
1740
+ }
1741
+ function $n(i, e) {
1742
+ i.pending[e] !== void 0 && (delete i.pending[e], i.pendingCount--);
1743
+ }
1744
+ var qn = function(i) {
1745
+ Se(t, i);
1746
+ var e = Hn(t);
1747
+ function t(n, r, a) {
1748
+ var o, s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
1749
+ 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;
1750
+ }
1751
+ return H(t, [{
1752
+ key: "queueLoad",
1753
+ value: function(r, a, o, s) {
1754
+ var u = this, d = {}, c = {}, f = {}, p = {};
1755
+ return r.forEach(function(g) {
1756
+ var y = !0;
1757
+ a.forEach(function(b) {
1758
+ var w = "".concat(g, "|").concat(b);
1759
+ !o.reload && u.store.hasResourceBundle(g, b) ? u.state[w] = 2 : u.state[w] < 0 || (u.state[w] === 1 ? c[w] === void 0 && (c[w] = !0) : (u.state[w] = 1, y = !1, c[w] === void 0 && (c[w] = !0), d[w] === void 0 && (d[w] = !0), p[b] === void 0 && (p[b] = !0)));
1760
+ }), y || (f[g] = !0);
1761
+ }), (Object.keys(d).length || Object.keys(c).length) && this.queue.push({
1762
+ pending: c,
1763
+ pendingCount: Object.keys(c).length,
1764
+ loaded: {},
1765
+ errors: [],
1766
+ callback: s
1767
+ }), {
1768
+ toLoad: Object.keys(d),
1769
+ pending: Object.keys(c),
1770
+ toLoadLanguages: Object.keys(f),
1771
+ toLoadNamespaces: Object.keys(p)
1772
+ };
1773
+ }
1774
+ }, {
1775
+ key: "loaded",
1776
+ value: function(r, a, o) {
1777
+ var s = r.split("|"), u = s[0], d = s[1];
1778
+ a && this.emit("failedLoading", u, d, a), o && this.store.addResourceBundle(u, d, o), this.state[r] = a ? -1 : 2;
1779
+ var c = {};
1780
+ this.queue.forEach(function(f) {
1781
+ On(f.loaded, [u], d), $n(f, r), a && f.errors.push(a), f.pendingCount === 0 && !f.done && (Object.keys(f.loaded).forEach(function(p) {
1782
+ c[p] || (c[p] = {});
1783
+ var g = f.loaded[p];
1784
+ g.length && g.forEach(function(y) {
1785
+ c[p][y] === void 0 && (c[p][y] = !0);
1786
+ });
1787
+ }), f.done = !0, f.errors.length ? f.callback(f.errors) : f.callback());
1788
+ }), this.emit("loaded", c), this.queue = this.queue.filter(function(f) {
1789
+ return !f.done;
1790
+ });
1791
+ }
1792
+ }, {
1793
+ key: "read",
1794
+ value: function(r, a, o) {
1795
+ var s = this, u = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0, d = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : this.retryTimeout, c = arguments.length > 5 ? arguments[5] : void 0;
1796
+ if (!r.length)
1797
+ return c(null, {});
1798
+ if (this.readingCalls >= this.maxParallelReads) {
1799
+ this.waitingReads.push({
1800
+ lng: r,
1801
+ ns: a,
1802
+ fcName: o,
1803
+ tried: u,
1804
+ wait: d,
1805
+ callback: c
1806
+ });
1807
+ return;
1808
+ }
1809
+ this.readingCalls++;
1810
+ var f = function(b, w) {
1811
+ if (s.readingCalls--, s.waitingReads.length > 0) {
1812
+ var v = s.waitingReads.shift();
1813
+ s.read(v.lng, v.ns, v.fcName, v.tried, v.wait, v.callback);
1814
+ }
1815
+ if (b && w && u < s.maxRetries) {
1816
+ setTimeout(function() {
1817
+ s.read.call(s, r, a, o, u + 1, d * 2, c);
1818
+ }, d);
1819
+ return;
1820
+ }
1821
+ c(b, w);
1822
+ }, p = this.backend[o].bind(this.backend);
1823
+ if (p.length === 2) {
1824
+ try {
1825
+ var g = p(r, a);
1826
+ g && typeof g.then == "function" ? g.then(function(y) {
1827
+ return f(null, y);
1828
+ }).catch(f) : f(null, g);
1829
+ } catch (y) {
1830
+ f(y);
1831
+ }
1832
+ return;
1833
+ }
1834
+ return p(r, a, f);
1835
+ }
1836
+ }, {
1837
+ key: "prepareLoading",
1838
+ value: function(r, a) {
1839
+ var o = this, s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, u = arguments.length > 3 ? arguments[3] : void 0;
1840
+ if (!this.backend)
1841
+ return this.logger.warn("No backend was added via i18next.use. Will not load resources."), u && u();
1842
+ typeof r == "string" && (r = this.languageUtils.toResolveHierarchy(r)), typeof a == "string" && (a = [a]);
1843
+ var d = this.queueLoad(r, a, s, u);
1844
+ if (!d.toLoad.length)
1845
+ return d.pending.length || u(), null;
1846
+ d.toLoad.forEach(function(c) {
1847
+ o.loadOne(c);
1848
+ });
1849
+ }
1850
+ }, {
1851
+ key: "load",
1852
+ value: function(r, a, o) {
1853
+ this.prepareLoading(r, a, {}, o);
1854
+ }
1855
+ }, {
1856
+ key: "reload",
1857
+ value: function(r, a, o) {
1858
+ this.prepareLoading(r, a, {
1859
+ reload: !0
1860
+ }, o);
1861
+ }
1862
+ }, {
1863
+ key: "loadOne",
1864
+ value: function(r) {
1865
+ var a = this, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", s = r.split("|"), u = s[0], d = s[1];
1866
+ this.read(u, d, "read", void 0, void 0, function(c, f) {
1867
+ c && a.logger.warn("".concat(o, "loading namespace ").concat(d, " for language ").concat(u, " failed"), c), !c && f && a.logger.log("".concat(o, "loaded namespace ").concat(d, " for language ").concat(u), f), a.loaded(r, c, f);
1868
+ });
1869
+ }
1870
+ }, {
1871
+ key: "saveMissing",
1872
+ value: function(r, a, o, s, u) {
1873
+ var d = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {}, c = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : function() {
1874
+ };
1875
+ if (this.services.utils && this.services.utils.hasLoadedNamespace && !this.services.utils.hasLoadedNamespace(a)) {
1876
+ this.logger.warn('did not save key "'.concat(o, '" as the namespace "').concat(a, '" 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!!!");
1877
+ return;
1878
+ }
1879
+ if (!(o == null || o === "")) {
1880
+ if (this.backend && this.backend.create) {
1881
+ var f = ct(ct({}, d), {}, {
1882
+ isUpdate: u
1883
+ }), p = this.backend.create.bind(this.backend);
1884
+ if (p.length < 6)
1885
+ try {
1886
+ var g;
1887
+ p.length === 5 ? g = p(r, a, o, s, f) : g = p(r, a, o, s), g && typeof g.then == "function" ? g.then(function(y) {
1888
+ return c(null, y);
1889
+ }).catch(c) : c(null, g);
1890
+ } catch (y) {
1891
+ c(y);
1892
+ }
1893
+ else
1894
+ p(r, a, o, s, c, f);
1895
+ }
1896
+ !r || !r[0] || this.store.addResource(r[0], a, o, s);
1897
+ }
1898
+ }
1899
+ }]), t;
1900
+ }(ee);
1901
+ function lt() {
1902
+ return {
1903
+ debug: !1,
1904
+ initImmediate: !0,
1905
+ ns: ["translation"],
1906
+ defaultNS: ["translation"],
1907
+ fallbackLng: ["dev"],
1908
+ fallbackNS: !1,
1909
+ supportedLngs: !1,
1910
+ nonExplicitSupportedLngs: !1,
1911
+ load: "all",
1912
+ preload: !1,
1913
+ simplifyPluralSuffix: !0,
1914
+ keySeparator: ".",
1915
+ nsSeparator: ":",
1916
+ pluralSeparator: "_",
1917
+ contextSeparator: "_",
1918
+ partialBundledLanguages: !1,
1919
+ saveMissing: !1,
1920
+ updateMissing: !1,
1921
+ saveMissingTo: "fallback",
1922
+ saveMissingPlurals: !0,
1923
+ missingKeyHandler: !1,
1924
+ missingInterpolationHandler: !1,
1925
+ postProcess: !1,
1926
+ postProcessPassResolved: !1,
1927
+ returnNull: !0,
1928
+ returnEmptyString: !0,
1929
+ returnObjects: !1,
1930
+ joinArrays: !1,
1931
+ returnedObjectHandler: !1,
1932
+ parseMissingKeyHandler: !1,
1933
+ appendNamespaceToMissingKey: !1,
1934
+ appendNamespaceToCIMode: !1,
1935
+ overloadTranslationOptionHandler: function(e) {
1936
+ var t = {};
1937
+ if (U(e[1]) === "object" && (t = e[1]), typeof e[1] == "string" && (t.defaultValue = e[1]), typeof e[2] == "string" && (t.tDescription = e[2]), U(e[2]) === "object" || U(e[3]) === "object") {
1938
+ var n = e[3] || e[2];
1939
+ Object.keys(n).forEach(function(r) {
1940
+ t[r] = n[r];
1941
+ });
1942
+ }
1943
+ return t;
1944
+ },
1945
+ interpolation: {
1946
+ escapeValue: !0,
1947
+ format: function(e, t, n, r) {
1948
+ return e;
1949
+ },
1950
+ prefix: "{{",
1951
+ suffix: "}}",
1952
+ formatSeparator: ",",
1953
+ unescapePrefix: "-",
1954
+ nestingPrefix: "$t(",
1955
+ nestingSuffix: ")",
1956
+ nestingOptionsSeparator: ",",
1957
+ maxReplaces: 1e3,
1958
+ skipOnVariables: !0
1959
+ }
1960
+ };
1961
+ }
1962
+ function dt(i) {
1963
+ 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;
1964
+ }
1965
+ function pt(i, e) {
1966
+ var t = Object.keys(i);
1967
+ if (Object.getOwnPropertySymbols) {
1968
+ var n = Object.getOwnPropertySymbols(i);
1969
+ e && (n = n.filter(function(r) {
1970
+ return Object.getOwnPropertyDescriptor(i, r).enumerable;
1971
+ })), t.push.apply(t, n);
1972
+ }
1973
+ return t;
1974
+ }
1975
+ function V(i) {
1976
+ for (var e = 1; e < arguments.length; e++) {
1977
+ var t = arguments[e] != null ? arguments[e] : {};
1978
+ e % 2 ? pt(Object(t), !0).forEach(function(n) {
1979
+ W(i, n, t[n]);
1980
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : pt(Object(t)).forEach(function(n) {
1981
+ Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
1982
+ });
1983
+ }
1984
+ return i;
1985
+ }
1986
+ function Kn(i) {
1987
+ var e = zn();
1988
+ return function() {
1989
+ var n = X(i), r;
1990
+ if (e) {
1991
+ var a = X(this).constructor;
1992
+ r = Reflect.construct(n, arguments, a);
1993
+ } else
1994
+ r = n.apply(this, arguments);
1995
+ return de(this, r);
1996
+ };
1997
+ }
1998
+ function zn() {
1999
+ if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
2000
+ return !1;
2001
+ if (typeof Proxy == "function")
2002
+ return !0;
2003
+ try {
2004
+ return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
2005
+ })), !0;
2006
+ } catch {
2007
+ return !1;
2008
+ }
2009
+ }
2010
+ function he() {
2011
+ }
2012
+ function Vn(i) {
2013
+ var e = Object.getOwnPropertyNames(Object.getPrototypeOf(i));
2014
+ e.forEach(function(t) {
2015
+ typeof i[t] == "function" && (i[t] = i[t].bind(i));
2016
+ });
2017
+ }
2018
+ var we = function(i) {
2019
+ Se(t, i);
2020
+ var e = Kn(t);
2021
+ function t() {
2022
+ var n, r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = arguments.length > 1 ? arguments[1] : void 0;
2023
+ if (B(this, t), n = e.call(this), xe && ee.call(Z(n)), n.options = dt(r), n.services = {}, n.logger = J, n.modules = {
2024
+ external: []
2025
+ }, Vn(Z(n)), a && !n.isInitialized && !r.isClone) {
2026
+ if (!n.options.initImmediate)
2027
+ return n.init(r, a), de(n, Z(n));
2028
+ setTimeout(function() {
2029
+ n.init(r, a);
2030
+ }, 0);
2031
+ }
2032
+ return n;
2033
+ }
2034
+ return H(t, [{
2035
+ key: "init",
2036
+ value: function() {
2037
+ var r = this, a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, o = arguments.length > 1 ? arguments[1] : void 0;
2038
+ 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]));
2039
+ var s = lt();
2040
+ this.options = V(V(V({}, s), this.options), dt(a)), this.options.compatibilityAPI !== "v1" && (this.options.interpolation = V(V({}, s.interpolation), this.options.interpolation)), a.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = a.keySeparator), a.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = a.nsSeparator);
2041
+ function u(v) {
2042
+ return v ? typeof v == "function" ? new v() : v : null;
2043
+ }
2044
+ if (!this.options.isClone) {
2045
+ this.modules.logger ? J.init(u(this.modules.logger), this.options) : J.init(null, this.options);
2046
+ var d;
2047
+ this.modules.formatter ? d = this.modules.formatter : typeof Intl < "u" && (d = Bn);
2048
+ var c = new it(this.options);
2049
+ this.store = new En(this.options.resources, this.options);
2050
+ var f = this.services;
2051
+ f.logger = J, f.resourceStore = this.store, f.languageUtils = c, f.pluralResolver = new In(c, {
2052
+ prepend: this.options.pluralSeparator,
2053
+ compatibilityJSON: this.options.compatibilityJSON,
2054
+ simplifyPluralSuffix: this.options.simplifyPluralSuffix
2055
+ }), 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 Fn(this.options), f.utils = {
2056
+ hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
2057
+ }, f.backendConnector = new qn(u(this.modules.backend), f.resourceStore, f, this.options), f.backendConnector.on("*", function(v) {
2058
+ for (var m = arguments.length, S = new Array(m > 1 ? m - 1 : 0), x = 1; x < m; x++)
2059
+ S[x - 1] = arguments[x];
2060
+ r.emit.apply(r, [v].concat(S));
2061
+ }), 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 rt(this.services, this.options), this.translator.on("*", function(v) {
2062
+ for (var m = arguments.length, S = new Array(m > 1 ? m - 1 : 0), x = 1; x < m; x++)
2063
+ S[x - 1] = arguments[x];
2064
+ r.emit.apply(r, [v].concat(S));
2065
+ }), this.modules.external.forEach(function(v) {
2066
+ v.init && v.init(r);
2067
+ });
2068
+ }
2069
+ if (this.format = this.options.interpolation.format, o || (o = he), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
2070
+ var p = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
2071
+ p.length > 0 && p[0] !== "dev" && (this.options.lng = p[0]);
2072
+ }
2073
+ !this.services.languageDetector && !this.options.lng && this.logger.warn("init: no languageDetector is used and no lng is defined");
2074
+ var g = ["getResource", "hasResourceBundle", "getResourceBundle", "getDataByLanguage"];
2075
+ g.forEach(function(v) {
2076
+ r[v] = function() {
2077
+ var m;
2078
+ return (m = r.store)[v].apply(m, arguments);
2079
+ };
2080
+ });
2081
+ var y = ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"];
2082
+ y.forEach(function(v) {
2083
+ r[v] = function() {
2084
+ var m;
2085
+ return (m = r.store)[v].apply(m, arguments), r;
2086
+ };
2087
+ });
2088
+ var b = oe(), w = function() {
2089
+ var m = function(x, k) {
2090
+ r.isInitialized && !r.initializedStoreOnce && r.logger.warn("init: i18next is already initialized. You should call init just once!"), r.isInitialized = !0, r.options.isClone || r.logger.log("initialized", r.options), r.emit("initialized", r.options), b.resolve(k), o(x, k);
2091
+ };
2092
+ if (r.languages && r.options.compatibilityAPI !== "v1" && !r.isInitialized)
2093
+ return m(null, r.t.bind(r));
2094
+ r.changeLanguage(r.options.lng, m);
2095
+ };
2096
+ return this.options.resources || !this.options.initImmediate ? w() : setTimeout(w, 0), b;
2097
+ }
2098
+ }, {
2099
+ key: "loadResources",
2100
+ value: function(r) {
2101
+ var a = this, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : he, s = o, u = typeof r == "string" ? r : this.language;
2102
+ if (typeof r == "function" && (s = r), !this.options.resources || this.options.partialBundledLanguages) {
2103
+ if (u && u.toLowerCase() === "cimode")
2104
+ return s();
2105
+ var d = [], c = function(g) {
2106
+ if (g) {
2107
+ var y = a.services.languageUtils.toResolveHierarchy(g);
2108
+ y.forEach(function(b) {
2109
+ d.indexOf(b) < 0 && d.push(b);
2110
+ });
2111
+ }
2112
+ };
2113
+ if (u)
2114
+ c(u);
2115
+ else {
2116
+ var f = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
2117
+ f.forEach(function(p) {
2118
+ return c(p);
2119
+ });
2120
+ }
2121
+ this.options.preload && this.options.preload.forEach(function(p) {
2122
+ return c(p);
2123
+ }), this.services.backendConnector.load(d, this.options.ns, function(p) {
2124
+ !p && !a.resolvedLanguage && a.language && a.setResolvedLanguage(a.language), s(p);
2125
+ });
2126
+ } else
2127
+ s(null);
2128
+ }
2129
+ }, {
2130
+ key: "reloadResources",
2131
+ value: function(r, a, o) {
2132
+ var s = oe();
2133
+ return r || (r = this.languages), a || (a = this.options.ns), o || (o = he), this.services.backendConnector.reload(r, a, function(u) {
2134
+ s.resolve(), o(u);
2135
+ }), s;
2136
+ }
2137
+ }, {
2138
+ key: "use",
2139
+ value: function(r) {
2140
+ if (!r)
2141
+ throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
2142
+ if (!r.type)
2143
+ throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
2144
+ 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" && Dt.addPostProcessor(r), r.type === "formatter" && (this.modules.formatter = r), r.type === "3rdParty" && this.modules.external.push(r), this;
2145
+ }
2146
+ }, {
2147
+ key: "setResolvedLanguage",
2148
+ value: function(r) {
2149
+ if (!(!r || !this.languages) && !(["cimode", "dev"].indexOf(r) > -1))
2150
+ for (var a = 0; a < this.languages.length; a++) {
2151
+ var o = this.languages[a];
2152
+ if (!(["cimode", "dev"].indexOf(o) > -1) && this.store.hasLanguageSomeTranslations(o)) {
2153
+ this.resolvedLanguage = o;
2154
+ break;
2155
+ }
2156
+ }
2157
+ }
2158
+ }, {
2159
+ key: "changeLanguage",
2160
+ value: function(r, a) {
2161
+ var o = this;
2162
+ this.isLanguageChangingTo = r;
2163
+ var s = oe();
2164
+ this.emit("languageChanging", r);
2165
+ var u = function(p) {
2166
+ o.language = p, o.languages = o.services.languageUtils.toResolveHierarchy(p), o.resolvedLanguage = void 0, o.setResolvedLanguage(p);
2167
+ }, d = function(p, g) {
2168
+ g ? (u(g), o.translator.changeLanguage(g), o.isLanguageChangingTo = void 0, o.emit("languageChanged", g), o.logger.log("languageChanged", g)) : o.isLanguageChangingTo = void 0, s.resolve(function() {
2169
+ return o.t.apply(o, arguments);
2170
+ }), a && a(p, function() {
2171
+ return o.t.apply(o, arguments);
2172
+ });
2173
+ }, c = function(p) {
2174
+ !r && !p && o.services.languageDetector && (p = []);
2175
+ var g = typeof p == "string" ? p : o.services.languageUtils.getBestMatchFromCodes(p);
2176
+ g && (o.language || u(g), o.translator.language || o.translator.changeLanguage(g), o.services.languageDetector && o.services.languageDetector.cacheUserLanguage && o.services.languageDetector.cacheUserLanguage(g)), o.loadResources(g, function(y) {
2177
+ d(y, g);
2178
+ });
2179
+ };
2180
+ return !r && this.services.languageDetector && !this.services.languageDetector.async ? c(this.services.languageDetector.detect()) : !r && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(c) : this.services.languageDetector.detect(c) : c(r), s;
2181
+ }
2182
+ }, {
2183
+ key: "getFixedT",
2184
+ value: function(r, a, o) {
2185
+ var s = this, u = function d(c, f) {
2186
+ var p;
2187
+ if (U(f) !== "object") {
2188
+ for (var g = arguments.length, y = new Array(g > 2 ? g - 2 : 0), b = 2; b < g; b++)
2189
+ y[b - 2] = arguments[b];
2190
+ p = s.options.overloadTranslationOptionHandler([c, f].concat(y));
2191
+ } else
2192
+ p = V({}, f);
2193
+ p.lng = p.lng || d.lng, p.lngs = p.lngs || d.lngs, p.ns = p.ns || d.ns, p.keyPrefix = p.keyPrefix || o || d.keyPrefix;
2194
+ var w = s.options.keySeparator || ".", v;
2195
+ return p.keyPrefix && Array.isArray(c) ? v = c.map(function(m) {
2196
+ return "".concat(p.keyPrefix).concat(w).concat(m);
2197
+ }) : v = p.keyPrefix ? "".concat(p.keyPrefix).concat(w).concat(c) : c, s.t(v, p);
2198
+ };
2199
+ return typeof r == "string" ? u.lng = r : u.lngs = r, u.ns = a, u.keyPrefix = o, u;
2200
+ }
2201
+ }, {
2202
+ key: "t",
2203
+ value: function() {
2204
+ var r;
2205
+ return this.translator && (r = this.translator).translate.apply(r, arguments);
2206
+ }
2207
+ }, {
2208
+ key: "exists",
2209
+ value: function() {
2210
+ var r;
2211
+ return this.translator && (r = this.translator).exists.apply(r, arguments);
2212
+ }
2213
+ }, {
2214
+ key: "setDefaultNamespace",
2215
+ value: function(r) {
2216
+ this.options.defaultNS = r;
2217
+ }
2218
+ }, {
2219
+ key: "hasLoadedNamespace",
2220
+ value: function(r) {
2221
+ var a = this, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2222
+ if (!this.isInitialized)
2223
+ return this.logger.warn("hasLoadedNamespace: i18next was not initialized", this.languages), !1;
2224
+ if (!this.languages || !this.languages.length)
2225
+ return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty", this.languages), !1;
2226
+ var s = o.lng || this.resolvedLanguage || this.languages[0], u = this.options ? this.options.fallbackLng : !1, d = this.languages[this.languages.length - 1];
2227
+ if (s.toLowerCase() === "cimode")
2228
+ return !0;
2229
+ var c = function(g, y) {
2230
+ var b = a.services.backendConnector.state["".concat(g, "|").concat(y)];
2231
+ return b === -1 || b === 2;
2232
+ };
2233
+ if (o.precheck) {
2234
+ var f = o.precheck(this, c);
2235
+ if (f !== void 0)
2236
+ return f;
2237
+ }
2238
+ return !!(this.hasResourceBundle(s, r) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || c(s, r) && (!u || c(d, r)));
2239
+ }
2240
+ }, {
2241
+ key: "loadNamespaces",
2242
+ value: function(r, a) {
2243
+ var o = this, s = oe();
2244
+ return this.options.ns ? (typeof r == "string" && (r = [r]), r.forEach(function(u) {
2245
+ o.options.ns.indexOf(u) < 0 && o.options.ns.push(u);
2246
+ }), this.loadResources(function(u) {
2247
+ s.resolve(), a && a(u);
2248
+ }), s) : (a && a(), Promise.resolve());
2249
+ }
2250
+ }, {
2251
+ key: "loadLanguages",
2252
+ value: function(r, a) {
2253
+ var o = oe();
2254
+ typeof r == "string" && (r = [r]);
2255
+ var s = this.options.preload || [], u = r.filter(function(d) {
2256
+ return s.indexOf(d) < 0;
2257
+ });
2258
+ return u.length ? (this.options.preload = s.concat(u), this.loadResources(function(d) {
2259
+ o.resolve(), a && a(d);
2260
+ }), o) : (a && a(), Promise.resolve());
2261
+ }
2262
+ }, {
2263
+ key: "dir",
2264
+ value: function(r) {
2265
+ if (r || (r = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !r)
2266
+ return "rtl";
2267
+ 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 it(lt());
2268
+ return a.indexOf(o.getLanguagePartFromCode(r)) > -1 || r.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
2269
+ }
2270
+ }, {
2271
+ key: "cloneInstance",
2272
+ value: function() {
2273
+ 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 = V(V(V({}, this.options), a), {
2274
+ isClone: !0
2275
+ }), u = new t(s);
2276
+ (a.debug !== void 0 || a.prefix !== void 0) && (u.logger = u.logger.clone(a));
2277
+ var d = ["store", "services", "language"];
2278
+ return d.forEach(function(c) {
2279
+ u[c] = r[c];
2280
+ }), u.services = V({}, this.services), u.services.utils = {
2281
+ hasLoadedNamespace: u.hasLoadedNamespace.bind(u)
2282
+ }, u.translator = new rt(u.services, u.options), u.translator.on("*", function(c) {
2283
+ for (var f = arguments.length, p = new Array(f > 1 ? f - 1 : 0), g = 1; g < f; g++)
2284
+ p[g - 1] = arguments[g];
2285
+ u.emit.apply(u, [c].concat(p));
2286
+ }), u.init(s, o), u.translator.options = u.options, u.translator.backendConnector.services.utils = {
2287
+ hasLoadedNamespace: u.hasLoadedNamespace.bind(u)
2288
+ }, u;
2289
+ }
2290
+ }, {
2291
+ key: "toJSON",
2292
+ value: function() {
2293
+ return {
2294
+ options: this.options,
2295
+ store: this.store,
2296
+ language: this.language,
2297
+ languages: this.languages,
2298
+ resolvedLanguage: this.resolvedLanguage
2299
+ };
2300
+ }
2301
+ }]), t;
2302
+ }(ee);
2303
+ W(we, "createInstance", function() {
2304
+ var i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = arguments.length > 1 ? arguments[1] : void 0;
2305
+ return new we(i, e);
2306
+ });
2307
+ var C = we.createInstance();
2308
+ C.createInstance = we.createInstance;
2309
+ C.createInstance;
2310
+ C.dir;
2311
+ C.init;
2312
+ C.loadResources;
2313
+ C.reloadResources;
2314
+ C.use;
2315
+ C.changeLanguage;
2316
+ C.getFixedT;
2317
+ C.t;
2318
+ C.exists;
2319
+ C.setDefaultNamespace;
2320
+ C.hasLoadedNamespace;
2321
+ C.loadNamespaces;
2322
+ C.loadLanguages;
2323
+ var It = [], Jn = It.forEach, Xn = It.slice;
2324
+ function Wn(i) {
2325
+ return Jn.call(Xn.call(arguments, 1), function(e) {
2326
+ if (e)
2327
+ for (var t in e)
2328
+ i[t] === void 0 && (i[t] = e[t]);
2329
+ }), i;
2330
+ }
2331
+ var gt = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Gn = function(e, t, n) {
2332
+ var r = n || {};
2333
+ r.path = r.path || "/";
2334
+ var a = encodeURIComponent(t), o = "".concat(e, "=").concat(a);
2335
+ if (r.maxAge > 0) {
2336
+ var s = r.maxAge - 0;
2337
+ if (Number.isNaN(s))
2338
+ throw new Error("maxAge should be a Number");
2339
+ o += "; Max-Age=".concat(Math.floor(s));
2340
+ }
2341
+ if (r.domain) {
2342
+ if (!gt.test(r.domain))
2343
+ throw new TypeError("option domain is invalid");
2344
+ o += "; Domain=".concat(r.domain);
2345
+ }
2346
+ if (r.path) {
2347
+ if (!gt.test(r.path))
2348
+ throw new TypeError("option path is invalid");
2349
+ o += "; Path=".concat(r.path);
2350
+ }
2351
+ if (r.expires) {
2352
+ if (typeof r.expires.toUTCString != "function")
2353
+ throw new TypeError("option expires is invalid");
2354
+ o += "; Expires=".concat(r.expires.toUTCString());
2355
+ }
2356
+ if (r.httpOnly && (o += "; HttpOnly"), r.secure && (o += "; Secure"), r.sameSite) {
2357
+ var u = typeof r.sameSite == "string" ? r.sameSite.toLowerCase() : r.sameSite;
2358
+ switch (u) {
2359
+ case !0:
2360
+ o += "; SameSite=Strict";
2361
+ break;
2362
+ case "lax":
2363
+ o += "; SameSite=Lax";
2364
+ break;
2365
+ case "strict":
2366
+ o += "; SameSite=Strict";
2367
+ break;
2368
+ case "none":
2369
+ o += "; SameSite=None";
2370
+ break;
2371
+ default:
2372
+ throw new TypeError("option sameSite is invalid");
2373
+ }
2374
+ }
2375
+ return o;
2376
+ }, ht = {
2377
+ create: function(e, t, n, r) {
2378
+ var a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
2379
+ path: "/",
2380
+ sameSite: "strict"
2381
+ };
2382
+ n && (a.expires = /* @__PURE__ */ new Date(), a.expires.setTime(a.expires.getTime() + n * 60 * 1e3)), r && (a.domain = r), document.cookie = Gn(e, encodeURIComponent(t), a);
2383
+ },
2384
+ read: function(e) {
2385
+ for (var t = "".concat(e, "="), n = document.cookie.split(";"), r = 0; r < n.length; r++) {
2386
+ for (var a = n[r]; a.charAt(0) === " "; )
2387
+ a = a.substring(1, a.length);
2388
+ if (a.indexOf(t) === 0)
2389
+ return a.substring(t.length, a.length);
2390
+ }
2391
+ return null;
2392
+ },
2393
+ remove: function(e) {
2394
+ this.create(e, "", -1);
2395
+ }
2396
+ }, Qn = {
2397
+ name: "cookie",
2398
+ lookup: function(e) {
2399
+ var t;
2400
+ if (e.lookupCookie && typeof document < "u") {
2401
+ var n = ht.read(e.lookupCookie);
2402
+ n && (t = n);
2403
+ }
2404
+ return t;
2405
+ },
2406
+ cacheUserLanguage: function(e, t) {
2407
+ t.lookupCookie && typeof document < "u" && ht.create(t.lookupCookie, e, t.cookieMinutes, t.cookieDomain, t.cookieOptions);
2408
+ }
2409
+ }, Yn = {
2410
+ name: "querystring",
2411
+ lookup: function(e) {
2412
+ var t;
2413
+ if (typeof window < "u") {
2414
+ var n = window.location.search;
2415
+ !window.location.search && window.location.hash && window.location.hash.indexOf("?") > -1 && (n = window.location.hash.substring(window.location.hash.indexOf("?")));
2416
+ for (var r = n.substring(1), a = r.split("&"), o = 0; o < a.length; o++) {
2417
+ var s = a[o].indexOf("=");
2418
+ if (s > 0) {
2419
+ var u = a[o].substring(0, s);
2420
+ u === e.lookupQuerystring && (t = a[o].substring(s + 1));
2421
+ }
2422
+ }
2423
+ }
2424
+ return t;
2425
+ }
2426
+ }, se = null, vt = function() {
2427
+ if (se !== null)
2428
+ return se;
2429
+ try {
2430
+ se = window !== "undefined" && window.localStorage !== null;
2431
+ var e = "i18next.translate.boo";
2432
+ window.localStorage.setItem(e, "foo"), window.localStorage.removeItem(e);
2433
+ } catch {
2434
+ se = !1;
2435
+ }
2436
+ return se;
2437
+ }, Zn = {
2438
+ name: "localStorage",
2439
+ lookup: function(e) {
2440
+ var t;
2441
+ if (e.lookupLocalStorage && vt()) {
2442
+ var n = window.localStorage.getItem(e.lookupLocalStorage);
2443
+ n && (t = n);
2444
+ }
2445
+ return t;
2446
+ },
2447
+ cacheUserLanguage: function(e, t) {
2448
+ t.lookupLocalStorage && vt() && window.localStorage.setItem(t.lookupLocalStorage, e);
2449
+ }
2450
+ }, ue = null, mt = function() {
2451
+ if (ue !== null)
2452
+ return ue;
2453
+ try {
2454
+ ue = window !== "undefined" && window.sessionStorage !== null;
2455
+ var e = "i18next.translate.boo";
2456
+ window.sessionStorage.setItem(e, "foo"), window.sessionStorage.removeItem(e);
2457
+ } catch {
2458
+ ue = !1;
2459
+ }
2460
+ return ue;
2461
+ }, er = {
2462
+ name: "sessionStorage",
2463
+ lookup: function(e) {
2464
+ var t;
2465
+ if (e.lookupSessionStorage && mt()) {
2466
+ var n = window.sessionStorage.getItem(e.lookupSessionStorage);
2467
+ n && (t = n);
2468
+ }
2469
+ return t;
2470
+ },
2471
+ cacheUserLanguage: function(e, t) {
2472
+ t.lookupSessionStorage && mt() && window.sessionStorage.setItem(t.lookupSessionStorage, e);
2473
+ }
2474
+ }, tr = {
2475
+ name: "navigator",
2476
+ lookup: function(e) {
2477
+ var t = [];
2478
+ if (typeof navigator < "u") {
2479
+ if (navigator.languages)
2480
+ for (var n = 0; n < navigator.languages.length; n++)
2481
+ t.push(navigator.languages[n]);
2482
+ navigator.userLanguage && t.push(navigator.userLanguage), navigator.language && t.push(navigator.language);
2483
+ }
2484
+ return t.length > 0 ? t : void 0;
2485
+ }
2486
+ }, nr = {
2487
+ name: "htmlTag",
2488
+ lookup: function(e) {
2489
+ var t, n = e.htmlTag || (typeof document < "u" ? document.documentElement : null);
2490
+ return n && typeof n.getAttribute == "function" && (t = n.getAttribute("lang")), t;
2491
+ }
2492
+ }, rr = {
2493
+ name: "path",
2494
+ lookup: function(e) {
2495
+ var t;
2496
+ if (typeof window < "u") {
2497
+ var n = window.location.pathname.match(/\/([a-zA-Z-]*)/g);
2498
+ if (n instanceof Array)
2499
+ if (typeof e.lookupFromPathIndex == "number") {
2500
+ if (typeof n[e.lookupFromPathIndex] != "string")
2501
+ return;
2502
+ t = n[e.lookupFromPathIndex].replace("/", "");
2503
+ } else
2504
+ t = n[0].replace("/", "");
2505
+ }
2506
+ return t;
2507
+ }
2508
+ }, ir = {
2509
+ name: "subdomain",
2510
+ lookup: function(e) {
2511
+ 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);
2512
+ if (n)
2513
+ return n[t];
2514
+ }
2515
+ };
2516
+ function ar() {
2517
+ return {
2518
+ order: ["querystring", "cookie", "localStorage", "sessionStorage", "navigator", "htmlTag"],
2519
+ lookupQuerystring: "lng",
2520
+ lookupCookie: "i18next",
2521
+ lookupLocalStorage: "i18nextLng",
2522
+ lookupSessionStorage: "i18nextLng",
2523
+ // cache user language
2524
+ caches: ["localStorage"],
2525
+ excludeCacheFor: ["cimode"],
2526
+ // cookieMinutes: 10,
2527
+ // cookieDomain: 'myDomain'
2528
+ convertDetectedLanguage: function(e) {
2529
+ return e;
2530
+ }
2531
+ };
2532
+ }
2533
+ var Ft = /* @__PURE__ */ function() {
2534
+ function i(e) {
2535
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2536
+ B(this, i), this.type = "languageDetector", this.detectors = {}, this.init(e, t);
2537
+ }
2538
+ return H(i, [{
2539
+ key: "init",
2540
+ value: function(t) {
2541
+ var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2542
+ this.services = t || {
2543
+ languageUtils: {}
2544
+ }, this.options = Wn(n, this.options || {}, ar()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = function(a) {
2545
+ return a.replace("-", "_");
2546
+ }), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = r, this.addDetector(Qn), this.addDetector(Yn), this.addDetector(Zn), this.addDetector(er), this.addDetector(tr), this.addDetector(nr), this.addDetector(rr), this.addDetector(ir);
2547
+ }
2548
+ }, {
2549
+ key: "addDetector",
2550
+ value: function(t) {
2551
+ this.detectors[t.name] = t;
2552
+ }
2553
+ }, {
2554
+ key: "detect",
2555
+ value: function(t) {
2556
+ var n = this;
2557
+ t || (t = this.options.order);
2558
+ var r = [];
2559
+ return t.forEach(function(a) {
2560
+ if (n.detectors[a]) {
2561
+ var o = n.detectors[a].lookup(n.options);
2562
+ o && typeof o == "string" && (o = [o]), o && (r = r.concat(o));
2563
+ }
2564
+ }), r = r.map(function(a) {
2565
+ return n.options.convertDetectedLanguage(a);
2566
+ }), this.services.languageUtils.getBestMatchFromCodes ? r : r.length > 0 ? r[0] : null;
2567
+ }
2568
+ }, {
2569
+ key: "cacheUserLanguage",
2570
+ value: function(t, n) {
2571
+ var r = this;
2572
+ n || (n = this.options.caches), n && (this.options.excludeCacheFor && this.options.excludeCacheFor.indexOf(t) > -1 || n.forEach(function(a) {
2573
+ r.detectors[a] && r.detectors[a].cacheUserLanguage(t, r.options);
2574
+ }));
2575
+ }
2576
+ }]), i;
2577
+ }();
2578
+ Ft.type = "languageDetector";
2579
+ var Ut = [], or = Ut.forEach, sr = Ut.slice;
2580
+ function ur(i) {
2581
+ return or.call(sr.call(arguments, 1), function(e) {
2582
+ if (e)
2583
+ for (var t in e)
2584
+ i[t] === void 0 && (i[t] = e[t]);
2585
+ }), i;
2586
+ }
2587
+ function fr(i) {
2588
+ return i ? typeof i == "function" ? new i() : i : null;
2589
+ }
2590
+ function cr() {
2591
+ return {
2592
+ handleEmptyResourcesAsFailed: !0,
2593
+ cacheHitMode: "none"
2594
+ // reloadInterval: typeof window !== 'undefined' ? false : 60 * 60 * 1000
2595
+ // refreshExpirationTime: 60 * 60 * 1000
2596
+ };
2597
+ }
2598
+ function yt(i, e, t, n) {
2599
+ var r = i.read.bind(i);
2600
+ if (r.length === 2) {
2601
+ try {
2602
+ var a = r(e, t);
2603
+ a && typeof a.then == "function" ? a.then(function(o) {
2604
+ return n(null, o);
2605
+ }).catch(n) : n(null, a);
2606
+ } catch (o) {
2607
+ n(o);
2608
+ }
2609
+ return;
2610
+ }
2611
+ r(e, t, n);
2612
+ }
2613
+ var Bt = /* @__PURE__ */ function() {
2614
+ function i(e) {
2615
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2616
+ B(this, i), this.backends = [], this.type = "backend", this.allOptions = n, this.init(e, t);
2617
+ }
2618
+ return H(i, [{
2619
+ key: "init",
2620
+ value: function(t) {
2621
+ var n = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2622
+ this.services = t, this.options = ur(r, this.options || {}, cr()), this.allOptions = a, this.options.backends && this.options.backends.forEach(function(o, s) {
2623
+ n.backends[s] = n.backends[s] || fr(o), n.backends[s].init(t, n.options.backendOptions && n.options.backendOptions[s] || {}, a);
2624
+ }), this.services && this.options.reloadInterval && setInterval(function() {
2625
+ return n.reload();
2626
+ }, this.options.reloadInterval);
2627
+ }
2628
+ }, {
2629
+ key: "read",
2630
+ value: function(t, n, r) {
2631
+ var a = this, o = this.backends.length, s = function d(c) {
2632
+ if (c >= o)
2633
+ return r(new Error("non of the backend loaded data", !0));
2634
+ var f = c === o - 1, p = a.options.handleEmptyResourcesAsFailed && !f ? 0 : -1, g = a.backends[c];
2635
+ g.read ? yt(g, t, n, function(y, b, w) {
2636
+ if (!y && b && Object.keys(b).length > p) {
2637
+ if (r(null, b, c), u(c - 1, b), g.save && a.options.cacheHitMode && ["refresh", "refreshAndUpdateStore"].indexOf(a.options.cacheHitMode) > -1) {
2638
+ if (w && a.options.refreshExpirationTime && w + a.options.refreshExpirationTime > Date.now())
2639
+ return;
2640
+ var v = a.backends[c + 1];
2641
+ v && v.read && yt(v, t, n, function(m, S) {
2642
+ 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)));
2643
+ });
2644
+ }
2645
+ } else
2646
+ d(c + 1);
2647
+ }) : d(c + 1);
2648
+ }, u = function d(c, f) {
2649
+ if (!(c < 0)) {
2650
+ var p = a.backends[c];
2651
+ p.save && p.save(t, n, f), d(c - 1, f);
2652
+ }
2653
+ };
2654
+ s(0);
2655
+ }
2656
+ }, {
2657
+ key: "create",
2658
+ value: function(t, n, r, a) {
2659
+ var o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : function() {
2660
+ }, s = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {};
2661
+ this.backends.forEach(function(u) {
2662
+ if (u.create) {
2663
+ var d = u.create.bind(u);
2664
+ if (d.length < 6) {
2665
+ try {
2666
+ var c;
2667
+ d.length === 5 ? c = d(t, n, r, a, s) : c = d(t, n, r, a), c && typeof c.then == "function" ? c.then(function(f) {
2668
+ return o(null, f);
2669
+ }).catch(o) : o(null, c);
2670
+ } catch (f) {
2671
+ o(f);
2672
+ }
2673
+ return;
2674
+ }
2675
+ d(t, n, r, a, o, s);
2676
+ }
2677
+ });
2678
+ }
2679
+ }, {
2680
+ key: "reload",
2681
+ value: function() {
2682
+ var t = this, n = this.services, r = n.backendConnector, a = n.languageUtils, o = n.logger, s = r.language;
2683
+ if (!(s && s.toLowerCase() === "cimode")) {
2684
+ var u = [], d = function(f) {
2685
+ var p = a.toResolveHierarchy(f);
2686
+ p.forEach(function(g) {
2687
+ u.indexOf(g) < 0 && u.push(g);
2688
+ });
2689
+ };
2690
+ d(s), this.allOptions.preload && this.allOptions.preload.forEach(function(c) {
2691
+ return d(c);
2692
+ }), u.forEach(function(c) {
2693
+ t.allOptions.ns.forEach(function(f) {
2694
+ r.read(c, f, "read", null, null, function(p, g) {
2695
+ p && o.warn("loading namespace ".concat(f, " for language ").concat(c, " failed"), p), !p && g && o.log("loaded namespace ".concat(f, " for language ").concat(c), g), r.loaded("".concat(c, "|").concat(f), p, g);
2696
+ });
2697
+ });
2698
+ });
2699
+ }
2700
+ }
2701
+ }]), i;
2702
+ }();
2703
+ Bt.type = "backend";
2704
+ function Ae(i) {
2705
+ "@babel/helpers - typeof";
2706
+ return Ae = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2707
+ return typeof e;
2708
+ } : function(e) {
2709
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2710
+ }, Ae(i);
2711
+ }
2712
+ function Ht() {
2713
+ return typeof XMLHttpRequest == "function" || (typeof XMLHttpRequest > "u" ? "undefined" : Ae(XMLHttpRequest)) === "object";
2714
+ }
2715
+ function lr(i) {
2716
+ return !!i && typeof i.then == "function";
2717
+ }
2718
+ function dr(i) {
2719
+ return lr(i) ? i : Promise.resolve(i);
2720
+ }
2721
+ function pr(i) {
2722
+ 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.');
2723
+ }
2724
+ var De = { exports: {} }, ve = { exports: {} }, bt;
2725
+ function gr() {
2726
+ return bt || (bt = 1, function(i, e) {
2727
+ var t = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof fe < "u" && fe, n = function() {
2728
+ function a() {
2729
+ this.fetch = !1, this.DOMException = t.DOMException;
2730
+ }
2731
+ return a.prototype = t, new a();
2732
+ }();
2733
+ (function(a) {
2734
+ (function(o) {
2735
+ var s = typeof a < "u" && a || typeof self < "u" && self || typeof s < "u" && s, u = {
2736
+ searchParams: "URLSearchParams" in s,
2737
+ iterable: "Symbol" in s && "iterator" in Symbol,
2738
+ blob: "FileReader" in s && "Blob" in s && function() {
2739
+ try {
2740
+ return new Blob(), !0;
2741
+ } catch {
2742
+ return !1;
2743
+ }
2744
+ }(),
2745
+ formData: "FormData" in s,
2746
+ arrayBuffer: "ArrayBuffer" in s
2747
+ };
2748
+ function d(l) {
2749
+ return l && DataView.prototype.isPrototypeOf(l);
2750
+ }
2751
+ if (u.arrayBuffer)
2752
+ var c = [
2753
+ "[object Int8Array]",
2754
+ "[object Uint8Array]",
2755
+ "[object Uint8ClampedArray]",
2756
+ "[object Int16Array]",
2757
+ "[object Uint16Array]",
2758
+ "[object Int32Array]",
2759
+ "[object Uint32Array]",
2760
+ "[object Float32Array]",
2761
+ "[object Float64Array]"
2762
+ ], f = ArrayBuffer.isView || function(l) {
2763
+ return l && c.indexOf(Object.prototype.toString.call(l)) > -1;
2764
+ };
2765
+ function p(l) {
2766
+ if (typeof l != "string" && (l = String(l)), /[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(l) || l === "")
2767
+ throw new TypeError('Invalid character in header field name: "' + l + '"');
2768
+ return l.toLowerCase();
2769
+ }
2770
+ function g(l) {
2771
+ return typeof l != "string" && (l = String(l)), l;
2772
+ }
2773
+ function y(l) {
2774
+ var h = {
2775
+ next: function() {
2776
+ var O = l.shift();
2777
+ return { done: O === void 0, value: O };
2778
+ }
2779
+ };
2780
+ return u.iterable && (h[Symbol.iterator] = function() {
2781
+ return h;
2782
+ }), h;
2783
+ }
2784
+ function b(l) {
2785
+ this.map = {}, l instanceof b ? l.forEach(function(h, O) {
2786
+ this.append(O, h);
2787
+ }, this) : Array.isArray(l) ? l.forEach(function(h) {
2788
+ this.append(h[0], h[1]);
2789
+ }, this) : l && Object.getOwnPropertyNames(l).forEach(function(h) {
2790
+ this.append(h, l[h]);
2791
+ }, this);
2792
+ }
2793
+ b.prototype.append = function(l, h) {
2794
+ l = p(l), h = g(h);
2795
+ var O = this.map[l];
2796
+ this.map[l] = O ? O + ", " + h : h;
2797
+ }, b.prototype.delete = function(l) {
2798
+ delete this.map[p(l)];
2799
+ }, b.prototype.get = function(l) {
2800
+ return l = p(l), this.has(l) ? this.map[l] : null;
2801
+ }, b.prototype.has = function(l) {
2802
+ return this.map.hasOwnProperty(p(l));
2803
+ }, b.prototype.set = function(l, h) {
2804
+ this.map[p(l)] = g(h);
2805
+ }, b.prototype.forEach = function(l, h) {
2806
+ for (var O in this.map)
2807
+ this.map.hasOwnProperty(O) && l.call(h, this.map[O], O, this);
2808
+ }, b.prototype.keys = function() {
2809
+ var l = [];
2810
+ return this.forEach(function(h, O) {
2811
+ l.push(O);
2812
+ }), y(l);
2813
+ }, b.prototype.values = function() {
2814
+ var l = [];
2815
+ return this.forEach(function(h) {
2816
+ l.push(h);
2817
+ }), y(l);
2818
+ }, b.prototype.entries = function() {
2819
+ var l = [];
2820
+ return this.forEach(function(h, O) {
2821
+ l.push([O, h]);
2822
+ }), y(l);
2823
+ }, u.iterable && (b.prototype[Symbol.iterator] = b.prototype.entries);
2824
+ function w(l) {
2825
+ if (l.bodyUsed)
2826
+ return Promise.reject(new TypeError("Already read"));
2827
+ l.bodyUsed = !0;
2828
+ }
2829
+ function v(l) {
2830
+ return new Promise(function(h, O) {
2831
+ l.onload = function() {
2832
+ h(l.result);
2833
+ }, l.onerror = function() {
2834
+ O(l.error);
2835
+ };
2836
+ });
2837
+ }
2838
+ function m(l) {
2839
+ var h = new FileReader(), O = v(h);
2840
+ return h.readAsArrayBuffer(l), O;
2841
+ }
2842
+ function S(l) {
2843
+ var h = new FileReader(), O = v(h);
2844
+ return h.readAsText(l), O;
2845
+ }
2846
+ function x(l) {
2847
+ for (var h = new Uint8Array(l), O = new Array(h.length), j = 0; j < h.length; j++)
2848
+ O[j] = String.fromCharCode(h[j]);
2849
+ return O.join("");
2850
+ }
2851
+ function k(l) {
2852
+ if (l.slice)
2853
+ return l.slice(0);
2854
+ var h = new Uint8Array(l.byteLength);
2855
+ return h.set(new Uint8Array(l)), h.buffer;
2856
+ }
2857
+ function D() {
2858
+ return this.bodyUsed = !1, this._initBody = function(l) {
2859
+ this.bodyUsed = this.bodyUsed, this._bodyInit = l, l ? typeof l == "string" ? this._bodyText = l : u.blob && Blob.prototype.isPrototypeOf(l) ? this._bodyBlob = l : u.formData && FormData.prototype.isPrototypeOf(l) ? this._bodyFormData = l : u.searchParams && URLSearchParams.prototype.isPrototypeOf(l) ? this._bodyText = l.toString() : u.arrayBuffer && u.blob && d(l) ? (this._bodyArrayBuffer = k(l.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : u.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(l) || f(l)) ? this._bodyArrayBuffer = k(l) : this._bodyText = l = Object.prototype.toString.call(l) : this._bodyText = "", this.headers.get("content-type") || (typeof l == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : u.searchParams && URLSearchParams.prototype.isPrototypeOf(l) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
2860
+ }, u.blob && (this.blob = function() {
2861
+ var l = w(this);
2862
+ if (l)
2863
+ return l;
2864
+ if (this._bodyBlob)
2865
+ return Promise.resolve(this._bodyBlob);
2866
+ if (this._bodyArrayBuffer)
2867
+ return Promise.resolve(new Blob([this._bodyArrayBuffer]));
2868
+ if (this._bodyFormData)
2869
+ throw new Error("could not read FormData body as blob");
2870
+ return Promise.resolve(new Blob([this._bodyText]));
2871
+ }, this.arrayBuffer = function() {
2872
+ if (this._bodyArrayBuffer) {
2873
+ var l = w(this);
2874
+ return l || (ArrayBuffer.isView(this._bodyArrayBuffer) ? Promise.resolve(
2875
+ this._bodyArrayBuffer.buffer.slice(
2876
+ this._bodyArrayBuffer.byteOffset,
2877
+ this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength
2878
+ )
2879
+ ) : Promise.resolve(this._bodyArrayBuffer));
2880
+ } else
2881
+ return this.blob().then(m);
2882
+ }), this.text = function() {
2883
+ var l = w(this);
2884
+ if (l)
2885
+ return l;
2886
+ if (this._bodyBlob)
2887
+ return S(this._bodyBlob);
2888
+ if (this._bodyArrayBuffer)
2889
+ return Promise.resolve(x(this._bodyArrayBuffer));
2890
+ if (this._bodyFormData)
2891
+ throw new Error("could not read FormData body as text");
2892
+ return Promise.resolve(this._bodyText);
2893
+ }, u.formData && (this.formData = function() {
2894
+ return this.text().then(_);
2895
+ }), this.json = function() {
2896
+ return this.text().then(JSON.parse);
2897
+ }, this;
2898
+ }
2899
+ var I = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"];
2900
+ function N(l) {
2901
+ var h = l.toUpperCase();
2902
+ return I.indexOf(h) > -1 ? h : l;
2903
+ }
2904
+ function R(l, h) {
2905
+ if (!(this instanceof R))
2906
+ throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
2907
+ h = h || {};
2908
+ var O = h.body;
2909
+ if (l instanceof R) {
2910
+ if (l.bodyUsed)
2911
+ throw new TypeError("Already read");
2912
+ this.url = l.url, this.credentials = l.credentials, h.headers || (this.headers = new b(l.headers)), this.method = l.method, this.mode = l.mode, this.signal = l.signal, !O && l._bodyInit != null && (O = l._bodyInit, l.bodyUsed = !0);
2913
+ } else
2914
+ this.url = String(l);
2915
+ if (this.credentials = h.credentials || this.credentials || "same-origin", (h.headers || !this.headers) && (this.headers = new b(h.headers)), this.method = N(h.method || this.method || "GET"), this.mode = h.mode || this.mode || null, this.signal = h.signal || this.signal, this.referrer = null, (this.method === "GET" || this.method === "HEAD") && O)
2916
+ throw new TypeError("Body not allowed for GET or HEAD requests");
2917
+ if (this._initBody(O), (this.method === "GET" || this.method === "HEAD") && (h.cache === "no-store" || h.cache === "no-cache")) {
2918
+ var j = /([?&])_=[^&]*/;
2919
+ if (j.test(this.url))
2920
+ this.url = this.url.replace(j, "$1_=" + (/* @__PURE__ */ new Date()).getTime());
2921
+ else {
2922
+ var L = /\?/;
2923
+ this.url += (L.test(this.url) ? "&" : "?") + "_=" + (/* @__PURE__ */ new Date()).getTime();
2924
+ }
2925
+ }
2926
+ }
2927
+ R.prototype.clone = function() {
2928
+ return new R(this, { body: this._bodyInit });
2929
+ };
2930
+ function _(l) {
2931
+ var h = new FormData();
2932
+ return l.trim().split("&").forEach(function(O) {
2933
+ if (O) {
2934
+ var j = O.split("="), L = j.shift().replace(/\+/g, " "), P = j.join("=").replace(/\+/g, " ");
2935
+ h.append(decodeURIComponent(L), decodeURIComponent(P));
2936
+ }
2937
+ }), h;
2938
+ }
2939
+ function Y(l) {
2940
+ var h = new b(), O = l.replace(/\r?\n[\t ]+/g, " ");
2941
+ return O.split("\r").map(function(j) {
2942
+ return j.indexOf(`
2943
+ `) === 0 ? j.substr(1, j.length) : j;
2944
+ }).forEach(function(j) {
2945
+ var L = j.split(":"), P = L.shift().trim();
2946
+ if (P) {
2947
+ var K = L.join(":").trim();
2948
+ h.append(P, K);
2949
+ }
2950
+ }), h;
2951
+ }
2952
+ D.call(R.prototype);
2953
+ function T(l, h) {
2954
+ if (!(this instanceof T))
2955
+ throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
2956
+ 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 b(h.headers), this.url = h.url || "", this._initBody(l);
2957
+ }
2958
+ D.call(T.prototype), T.prototype.clone = function() {
2959
+ return new T(this._bodyInit, {
2960
+ status: this.status,
2961
+ statusText: this.statusText,
2962
+ headers: new b(this.headers),
2963
+ url: this.url
2964
+ });
2965
+ }, T.error = function() {
2966
+ var l = new T(null, { status: 0, statusText: "" });
2967
+ return l.type = "error", l;
2968
+ };
2969
+ var Pe = [301, 302, 303, 307, 308];
2970
+ T.redirect = function(l, h) {
2971
+ if (Pe.indexOf(h) === -1)
2972
+ throw new RangeError("Invalid status code");
2973
+ return new T(null, { status: h, headers: { location: l } });
2974
+ }, o.DOMException = s.DOMException;
2975
+ try {
2976
+ new o.DOMException();
2977
+ } catch {
2978
+ o.DOMException = function(h, O) {
2979
+ this.message = h, this.name = O;
2980
+ var j = Error(h);
2981
+ this.stack = j.stack;
2982
+ }, o.DOMException.prototype = Object.create(Error.prototype), o.DOMException.prototype.constructor = o.DOMException;
2983
+ }
2984
+ function q(l, h) {
2985
+ return new Promise(function(O, j) {
2986
+ var L = new R(l, h);
2987
+ if (L.signal && L.signal.aborted)
2988
+ return j(new o.DOMException("Aborted", "AbortError"));
2989
+ var P = new XMLHttpRequest();
2990
+ function K() {
2991
+ P.abort();
2992
+ }
2993
+ P.onload = function() {
2994
+ var F = {
2995
+ status: P.status,
2996
+ statusText: P.statusText,
2997
+ headers: Y(P.getAllResponseHeaders() || "")
2998
+ };
2999
+ F.url = "responseURL" in P ? P.responseURL : F.headers.get("X-Request-URL");
3000
+ var z = "response" in P ? P.response : P.responseText;
3001
+ setTimeout(function() {
3002
+ O(new T(z, F));
3003
+ }, 0);
3004
+ }, P.onerror = function() {
3005
+ setTimeout(function() {
3006
+ j(new TypeError("Network request failed"));
3007
+ }, 0);
3008
+ }, P.ontimeout = function() {
3009
+ setTimeout(function() {
3010
+ j(new TypeError("Network request failed"));
3011
+ }, 0);
3012
+ }, P.onabort = function() {
3013
+ setTimeout(function() {
3014
+ j(new o.DOMException("Aborted", "AbortError"));
3015
+ }, 0);
3016
+ };
3017
+ function je(F) {
3018
+ try {
3019
+ return F === "" && s.location.href ? s.location.href : F;
3020
+ } catch {
3021
+ return F;
3022
+ }
3023
+ }
3024
+ 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 b) ? Object.getOwnPropertyNames(h.headers).forEach(function(F) {
3025
+ P.setRequestHeader(F, g(h.headers[F]));
3026
+ }) : L.headers.forEach(function(F, z) {
3027
+ P.setRequestHeader(z, F);
3028
+ }), L.signal && (L.signal.addEventListener("abort", K), P.onreadystatechange = function() {
3029
+ P.readyState === 4 && L.signal.removeEventListener("abort", K);
3030
+ }), P.send(typeof L._bodyInit > "u" ? null : L._bodyInit);
3031
+ });
3032
+ }
3033
+ return q.polyfill = !0, s.fetch || (s.fetch = q, s.Headers = b, s.Request = R, s.Response = T), o.Headers = b, o.Request = R, o.Response = T, o.fetch = q, o;
3034
+ })({});
3035
+ })(n), n.fetch.ponyfill = !0, delete n.fetch.polyfill;
3036
+ var r = t.fetch ? t : n;
3037
+ 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;
3038
+ }(ve, ve.exports)), ve.exports;
3039
+ }
3040
+ (function(i, e) {
3041
+ var t;
3042
+ if (typeof fetch == "function" && (typeof fe < "u" && fe.fetch ? t = fe.fetch : typeof window < "u" && window.fetch ? t = window.fetch : t = fetch), typeof pr < "u" && (typeof window > "u" || typeof window.document > "u")) {
3043
+ var n = t || gr();
3044
+ n.default && (n = n.default), e.default = n, i.exports = e.default;
3045
+ }
3046
+ })(De, De.exports);
3047
+ var Mt = De.exports;
3048
+ const $t = /* @__PURE__ */ Jt(Mt), wt = /* @__PURE__ */ Wt({
3049
+ __proto__: null,
3050
+ default: $t
3051
+ }, [Mt]);
3052
+ function Ot(i, e) {
3053
+ var t = Object.keys(i);
3054
+ if (Object.getOwnPropertySymbols) {
3055
+ var n = Object.getOwnPropertySymbols(i);
3056
+ e && (n = n.filter(function(r) {
3057
+ return Object.getOwnPropertyDescriptor(i, r).enumerable;
3058
+ })), t.push.apply(t, n);
3059
+ }
3060
+ return t;
3061
+ }
3062
+ function St(i) {
3063
+ for (var e = 1; e < arguments.length; e++) {
3064
+ var t = arguments[e] != null ? arguments[e] : {};
3065
+ e % 2 ? Ot(Object(t), !0).forEach(function(n) {
3066
+ hr(i, n, t[n]);
3067
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : Ot(Object(t)).forEach(function(n) {
3068
+ Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
3069
+ });
3070
+ }
3071
+ return i;
3072
+ }
3073
+ function hr(i, e, t) {
3074
+ return e = vr(e), e in i ? Object.defineProperty(i, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : i[e] = t, i;
3075
+ }
3076
+ function vr(i) {
3077
+ var e = mr(i, "string");
3078
+ return te(e) == "symbol" ? e : String(e);
3079
+ }
3080
+ function mr(i, e) {
3081
+ if (te(i) != "object" || !i)
3082
+ return i;
3083
+ var t = i[Symbol.toPrimitive];
3084
+ if (t !== void 0) {
3085
+ var n = t.call(i, e || "default");
3086
+ if (te(n) != "object")
3087
+ return n;
3088
+ throw new TypeError("@@toPrimitive must return a primitive value.");
3089
+ }
3090
+ return (e === "string" ? String : Number)(i);
3091
+ }
3092
+ function te(i) {
3093
+ "@babel/helpers - typeof";
3094
+ return te = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
3095
+ return typeof e;
3096
+ } : function(e) {
3097
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
3098
+ }, te(i);
3099
+ }
3100
+ var Q;
3101
+ typeof fetch == "function" && (typeof global < "u" && global.fetch ? Q = global.fetch : typeof window < "u" && window.fetch ? Q = window.fetch : Q = fetch);
3102
+ var ce;
3103
+ Ht() && (typeof global < "u" && global.XMLHttpRequest ? ce = global.XMLHttpRequest : typeof window < "u" && window.XMLHttpRequest && (ce = window.XMLHttpRequest));
3104
+ var Oe;
3105
+ typeof ActiveXObject == "function" && (typeof global < "u" && global.ActiveXObject ? Oe = global.ActiveXObject : typeof window < "u" && window.ActiveXObject && (Oe = window.ActiveXObject));
3106
+ !Q && wt && !ce && !Oe && (Q = $t || wt);
3107
+ typeof Q != "function" && (Q = void 0);
3108
+ var Ie = function(e, t) {
3109
+ if (t && te(t) === "object") {
3110
+ var n = "";
3111
+ for (var r in t)
3112
+ n += "&" + encodeURIComponent(r) + "=" + encodeURIComponent(t[r]);
3113
+ if (!n)
3114
+ return e;
3115
+ e = e + (e.indexOf("?") !== -1 ? "&" : "?") + n.slice(1);
3116
+ }
3117
+ return e;
3118
+ }, xt = function(e, t, n, r) {
3119
+ var a = function(u) {
3120
+ if (!u.ok)
3121
+ return n(u.statusText || "Error", {
3122
+ status: u.status
3123
+ });
3124
+ u.text().then(function(d) {
3125
+ n(null, {
3126
+ status: u.status,
3127
+ data: d
3128
+ });
3129
+ }).catch(n);
3130
+ };
3131
+ if (r) {
3132
+ var o = r(e, t);
3133
+ if (o instanceof Promise) {
3134
+ o.then(a).catch(n);
3135
+ return;
3136
+ }
3137
+ }
3138
+ typeof fetch == "function" ? fetch(e, t).then(a).catch(n) : Q(e, t).then(a).catch(n);
3139
+ }, Pt = !1, yr = function(e, t, n, r) {
3140
+ e.queryStringParams && (t = Ie(t, e.queryStringParams));
3141
+ var a = St({}, typeof e.customHeaders == "function" ? e.customHeaders() : e.customHeaders);
3142
+ 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");
3143
+ var o = typeof e.requestOptions == "function" ? e.requestOptions(n) : e.requestOptions, s = St({
3144
+ method: n ? "POST" : "GET",
3145
+ body: n ? e.stringify(n) : void 0,
3146
+ headers: a
3147
+ }, Pt ? {} : o), u = typeof e.alternateFetch == "function" && e.alternateFetch.length >= 1 ? e.alternateFetch : void 0;
3148
+ try {
3149
+ xt(t, s, r, u);
3150
+ } catch (d) {
3151
+ if (!o || Object.keys(o).length === 0 || !d.message || d.message.indexOf("not implemented") < 0)
3152
+ return r(d);
3153
+ try {
3154
+ Object.keys(o).forEach(function(c) {
3155
+ delete s[c];
3156
+ }), xt(t, s, r, u), Pt = !0;
3157
+ } catch (c) {
3158
+ r(c);
3159
+ }
3160
+ }
3161
+ }, br = function(e, t, n, r) {
3162
+ n && te(n) === "object" && (n = Ie("", n).slice(1)), e.queryStringParams && (t = Ie(t, e.queryStringParams));
3163
+ try {
3164
+ var a;
3165
+ ce ? a = new ce() : 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");
3166
+ var o = e.customHeaders;
3167
+ if (o = typeof o == "function" ? o() : o, o)
3168
+ for (var s in o)
3169
+ a.setRequestHeader(s, o[s]);
3170
+ a.onreadystatechange = function() {
3171
+ a.readyState > 3 && r(a.status >= 400 ? a.statusText : null, {
3172
+ status: a.status,
3173
+ data: a.responseText
3174
+ });
3175
+ }, a.send(n);
3176
+ } catch (u) {
3177
+ console && console.log(u);
3178
+ }
3179
+ }, wr = function(e, t, n, r) {
3180
+ if (typeof n == "function" && (r = n, n = void 0), r = r || function() {
3181
+ }, Q && t.indexOf("file:") !== 0)
3182
+ return yr(e, t, n, r);
3183
+ if (Ht() || typeof ActiveXObject == "function")
3184
+ return br(e, t, n, r);
3185
+ r(new Error("No fetch and no xhr implementation found!"));
3186
+ };
3187
+ function le(i) {
3188
+ "@babel/helpers - typeof";
3189
+ return le = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
3190
+ return typeof e;
3191
+ } : function(e) {
3192
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
3193
+ }, le(i);
3194
+ }
3195
+ function jt(i, e) {
3196
+ var t = Object.keys(i);
3197
+ if (Object.getOwnPropertySymbols) {
3198
+ var n = Object.getOwnPropertySymbols(i);
3199
+ e && (n = n.filter(function(r) {
3200
+ return Object.getOwnPropertyDescriptor(i, r).enumerable;
3201
+ })), t.push.apply(t, n);
3202
+ }
3203
+ return t;
3204
+ }
3205
+ function Ne(i) {
3206
+ for (var e = 1; e < arguments.length; e++) {
3207
+ var t = arguments[e] != null ? arguments[e] : {};
3208
+ e % 2 ? jt(Object(t), !0).forEach(function(n) {
3209
+ qt(i, n, t[n]);
3210
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : jt(Object(t)).forEach(function(n) {
3211
+ Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
3212
+ });
3213
+ }
3214
+ return i;
3215
+ }
3216
+ function Or(i, e) {
3217
+ if (!(i instanceof e))
3218
+ throw new TypeError("Cannot call a class as a function");
3219
+ }
3220
+ function kt(i, e) {
3221
+ for (var t = 0; t < e.length; t++) {
3222
+ var n = e[t];
3223
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(i, Kt(n.key), n);
3224
+ }
3225
+ }
3226
+ function Sr(i, e, t) {
3227
+ return e && kt(i.prototype, e), t && kt(i, t), Object.defineProperty(i, "prototype", { writable: !1 }), i;
3228
+ }
3229
+ function qt(i, e, t) {
3230
+ return e = Kt(e), e in i ? Object.defineProperty(i, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : i[e] = t, i;
3231
+ }
3232
+ function Kt(i) {
3233
+ var e = xr(i, "string");
3234
+ return le(e) == "symbol" ? e : String(e);
3235
+ }
3236
+ function xr(i, e) {
3237
+ if (le(i) != "object" || !i)
3238
+ return i;
3239
+ var t = i[Symbol.toPrimitive];
3240
+ if (t !== void 0) {
3241
+ var n = t.call(i, e || "default");
3242
+ if (le(n) != "object")
3243
+ return n;
3244
+ throw new TypeError("@@toPrimitive must return a primitive value.");
3245
+ }
3246
+ return (e === "string" ? String : Number)(i);
3247
+ }
3248
+ var Pr = function() {
3249
+ return {
3250
+ loadPath: "/locales/{{lng}}/{{ns}}.json",
3251
+ addPath: "/locales/add/{{lng}}/{{ns}}",
3252
+ parse: function(t) {
3253
+ return JSON.parse(t);
3254
+ },
3255
+ stringify: JSON.stringify,
3256
+ parsePayload: function(t, n, r) {
3257
+ return qt({}, n, r || "");
3258
+ },
3259
+ parseLoadPayload: function(t, n) {
3260
+ },
3261
+ request: wr,
3262
+ reloadInterval: typeof window < "u" ? !1 : 60 * 60 * 1e3,
3263
+ customHeaders: {},
3264
+ queryStringParams: {},
3265
+ crossDomain: !1,
3266
+ withCredentials: !1,
3267
+ overrideMimeType: !1,
3268
+ requestOptions: {
3269
+ mode: "cors",
3270
+ credentials: "same-origin",
3271
+ cache: "default"
3272
+ }
3273
+ };
3274
+ }, zt = function() {
3275
+ function i(e) {
3276
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
3277
+ Or(this, i), this.services = e, this.options = t, this.allOptions = n, this.type = "backend", this.init(e, t, n);
3278
+ }
3279
+ return Sr(i, [{
3280
+ key: "init",
3281
+ value: function(t) {
3282
+ var n = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
3283
+ this.services = t, this.options = Ne(Ne(Ne({}, Pr()), this.options || {}), r), this.allOptions = a, this.services && this.options.reloadInterval && setInterval(function() {
3284
+ return n.reload();
3285
+ }, this.options.reloadInterval);
3286
+ }
3287
+ }, {
3288
+ key: "readMulti",
3289
+ value: function(t, n, r) {
3290
+ this._readAny(t, t, n, n, r);
3291
+ }
3292
+ }, {
3293
+ key: "read",
3294
+ value: function(t, n, r) {
3295
+ this._readAny([t], t, [n], n, r);
3296
+ }
3297
+ }, {
3298
+ key: "_readAny",
3299
+ value: function(t, n, r, a, o) {
3300
+ var s = this, u = this.options.loadPath;
3301
+ typeof this.options.loadPath == "function" && (u = this.options.loadPath(t, r)), u = dr(u), u.then(function(d) {
3302
+ if (!d)
3303
+ return o(null, {});
3304
+ var c = s.services.interpolator.interpolate(d, {
3305
+ lng: t.join("+"),
3306
+ ns: r.join("+")
3307
+ });
3308
+ s.loadUrl(c, o, n, a);
3309
+ });
3310
+ }
3311
+ }, {
3312
+ key: "loadUrl",
3313
+ value: function(t, n, r, a) {
3314
+ var o = this, s = typeof r == "string" ? [r] : r, u = typeof a == "string" ? [a] : a, d = this.options.parseLoadPayload(s, u);
3315
+ this.options.request(this.options, t, d, function(c, f) {
3316
+ if (f && (f.status >= 500 && f.status < 600 || !f.status))
3317
+ return n("failed loading " + t + "; status code: " + f.status, !0);
3318
+ if (f && f.status >= 400 && f.status < 500)
3319
+ return n("failed loading " + t + "; status code: " + f.status, !1);
3320
+ if (!f && c && c.message && c.message.indexOf("Failed to fetch") > -1)
3321
+ return n("failed loading " + t + ": " + c.message, !0);
3322
+ if (c)
3323
+ return n(c, !1);
3324
+ var p, g;
3325
+ try {
3326
+ typeof f.data == "string" ? p = o.options.parse(f.data, r, a) : p = f.data;
3327
+ } catch {
3328
+ g = "failed parsing " + t + " to json";
3329
+ }
3330
+ if (g)
3331
+ return n(g, !1);
3332
+ n(null, p);
3333
+ });
3334
+ }
3335
+ }, {
3336
+ key: "create",
3337
+ value: function(t, n, r, a, o) {
3338
+ var s = this;
3339
+ if (this.options.addPath) {
3340
+ typeof t == "string" && (t = [t]);
3341
+ var u = this.options.parsePayload(n, r, a), d = 0, c = [], f = [];
3342
+ t.forEach(function(p) {
3343
+ var g = s.options.addPath;
3344
+ typeof s.options.addPath == "function" && (g = s.options.addPath(p, n));
3345
+ var y = s.services.interpolator.interpolate(g, {
3346
+ lng: p,
3347
+ ns: n
3348
+ });
3349
+ s.options.request(s.options, y, u, function(b, w) {
3350
+ d += 1, c.push(b), f.push(w), d === t.length && typeof o == "function" && o(c, f);
3351
+ });
3352
+ });
3353
+ }
3354
+ }
3355
+ }, {
3356
+ key: "reload",
3357
+ value: function() {
3358
+ var t = this, n = this.services, r = n.backendConnector, a = n.languageUtils, o = n.logger, s = r.language;
3359
+ if (!(s && s.toLowerCase() === "cimode")) {
3360
+ var u = [], d = function(f) {
3361
+ var p = a.toResolveHierarchy(f);
3362
+ p.forEach(function(g) {
3363
+ u.indexOf(g) < 0 && u.push(g);
3364
+ });
3365
+ };
3366
+ d(s), this.allOptions.preload && this.allOptions.preload.forEach(function(c) {
3367
+ return d(c);
3368
+ }), u.forEach(function(c) {
3369
+ t.allOptions.ns.forEach(function(f) {
3370
+ r.read(c, f, "read", null, null, function(p, g) {
3371
+ p && o.warn("loading namespace ".concat(f, " for language ").concat(c, " failed"), p), !p && g && o.log("loaded namespace ".concat(f, " for language ").concat(c), g), r.loaded("".concat(c, "|").concat(f), p, g);
3372
+ });
3373
+ });
3374
+ });
3375
+ }
3376
+ }
3377
+ }]), i;
3378
+ }();
3379
+ zt.type = "backend";
3380
+ var jr = /* @__PURE__ */ ((i) => (i.en = "en", i.de = "de", i))(jr || {});
3381
+ C.use(Bt).use(fn).use(Ft).init({
3382
+ // defaultNS: "translation",
3383
+ // resources,
3384
+ initImmediate: !0,
3385
+ fallbackLng: "en",
3386
+ partialBundledLanguages: !0,
3387
+ resources: {},
3388
+ backend: {
3389
+ backends: [zt],
3390
+ backendOptions: [
3391
+ {
3392
+ loadPath: "https://ukpcsaprod.blob.core.windows.net/lib/translations/{{lng}}/{{ns}}.json",
3393
+ crossDomain: !0
3394
+ }
3395
+ ]
3396
+ }
3397
+ });
3398
+ const me = {
3399
+ "page-container": "_page-container_6iqty_1",
3400
+ "page-main-content": "_page-main-content_6iqty_8",
3401
+ "page-title": "_page-title_6iqty_19",
3402
+ "text-base": "_text-base_6iqty_25",
3403
+ "mt-4": "_mt-4_6iqty_32"
3404
+ }, kr = () => {
3405
+ const { t: i } = gn();
3406
+ 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: [
3407
+ /* @__PURE__ */ E.jsx(Lr, {}),
3408
+ /* @__PURE__ */ E.jsxs("div", { className: "unauth__main-text flex flex-col gap-[8px] items-center justify-center text-center", children: [
3409
+ /* @__PURE__ */ E.jsx("h2", { className: "unauth__main-text__title " + me["page-title"], children: i("components.unauthorizedPage.title") }),
3410
+ /* @__PURE__ */ E.jsxs("p", { className: "unauth__main-text__desc " + me["text-base"], children: [
3411
+ i("components.unauthorizedPage.description1"),
3412
+ " ",
3413
+ /* @__PURE__ */ E.jsx("br", {}),
3414
+ " ",
3415
+ i("components.unauthorizedPage.description2")
3416
+ ] })
3417
+ ] })
3418
+ ] }) });
3419
+ }, Lr = () => /* @__PURE__ */ E.jsxs(
3420
+ "svg",
3421
+ {
3422
+ width: "61",
3423
+ height: "60",
3424
+ viewBox: "0 0 61 60",
3425
+ fill: "none",
3426
+ xmlns: "http://www.w3.org/2000/svg",
3427
+ children: [
3428
+ /* @__PURE__ */ E.jsxs("g", { filter: "url(#filter0_d_10800_50471)", children: [
3429
+ /* @__PURE__ */ E.jsx("rect", { x: "2.5", y: "1", width: "56", height: "56", rx: "28", fill: "white" }),
3430
+ /* @__PURE__ */ E.jsx(
3431
+ "path",
3432
+ {
3433
+ d: "M24.6667 27.833V23.1663C24.6667 21.6192 25.2812 20.1355 26.3752 19.0416C27.4692 17.9476 28.9529 17.333 30.5 17.333C32.0471 17.333 33.5308 17.9476 34.6248 19.0416C35.7188 20.1355 36.3333 21.6192 36.3333 23.1663V27.833M22.3333 27.833H38.6667C39.9553 27.833 41 28.8777 41 30.1663V38.333C41 39.6217 39.9553 40.6663 38.6667 40.6663H22.3333C21.0447 40.6663 20 39.6217 20 38.333V30.1663C20 28.8777 21.0447 27.833 22.3333 27.833Z",
3434
+ stroke: "#292929",
3435
+ "stroke-width": "2.33333",
3436
+ "stroke-linecap": "round",
3437
+ "stroke-linejoin": "round"
3438
+ }
3439
+ )
3440
+ ] }),
3441
+ /* @__PURE__ */ E.jsx("defs", { children: /* @__PURE__ */ E.jsxs(
3442
+ "filter",
3443
+ {
3444
+ id: "filter0_d_10800_50471",
3445
+ x: "0.5",
3446
+ y: "0",
3447
+ width: "60",
3448
+ height: "60",
3449
+ filterUnits: "userSpaceOnUse",
3450
+ "color-interpolation-filters": "sRGB",
3451
+ children: [
3452
+ /* @__PURE__ */ E.jsx("feFlood", { "flood-opacity": "0", result: "BackgroundImageFix" }),
3453
+ /* @__PURE__ */ E.jsx(
3454
+ "feColorMatrix",
3455
+ {
3456
+ in: "SourceAlpha",
3457
+ type: "matrix",
3458
+ values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
3459
+ result: "hardAlpha"
3460
+ }
3461
+ ),
3462
+ /* @__PURE__ */ E.jsx("feOffset", { dy: "1" }),
3463
+ /* @__PURE__ */ E.jsx("feGaussianBlur", { stdDeviation: "1" }),
3464
+ /* @__PURE__ */ E.jsx(
3465
+ "feColorMatrix",
3466
+ {
3467
+ type: "matrix",
3468
+ values: "0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0"
3469
+ }
3470
+ ),
3471
+ /* @__PURE__ */ E.jsx(
3472
+ "feBlend",
3473
+ {
3474
+ mode: "normal",
3475
+ in2: "BackgroundImageFix",
3476
+ result: "effect1_dropShadow_10800_50471"
3477
+ }
3478
+ ),
3479
+ /* @__PURE__ */ E.jsx(
3480
+ "feBlend",
3481
+ {
3482
+ mode: "normal",
3483
+ in: "SourceGraphic",
3484
+ in2: "effect1_dropShadow_10800_50471",
3485
+ result: "shape"
3486
+ }
3487
+ )
3488
+ ]
3489
+ }
3490
+ ) })
3491
+ ]
3492
+ }
3493
+ );
3494
+ function Rr() {
3495
+ return /* @__PURE__ */ E.jsx(hn, { i18n: C, children: /* @__PURE__ */ E.jsx(kr, {}) });
3496
+ }
3497
+ {
3498
+ const i = Xt(Rr);
3499
+ customElements.define("access-denied", i);
3500
+ }
3501
+ export {
3502
+ jr as L,
3503
+ kr as U,
3504
+ Z as _,
3505
+ C as i
3506
+ };