@ukpc-lib/react 0.9.16 → 0.9.17

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