@ukpc-lib/react 0.13.1-dev.11 → 0.13.1-dev.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/FavoriteMenu/components/MenuItem.d.ts +1 -0
- package/dist/components/index.cjs +19 -19
- package/dist/components/index.js +1647 -1617
- package/dist/{index.esm2017-XCT5rERk.cjs → index.esm2017-C48DXvhF.cjs} +28 -28
- package/dist/{index.esm2017-DK0KgGge.js → index.esm2017-D7ekKkN2.js} +331 -353
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +1 -1
- package/package.json +1 -1
- package/web-components-bundle/access-denied/index.js +2 -2
- package/web-components-bundle/base-breadcrumbs/index.js +5 -0
- package/web-components-bundle/clsx-DB4S2d7J.js +22 -0
- package/web-components-bundle/favorite-menu/index.js +6 -5
- package/web-components-bundle/global-menu/index.js +5 -4
- package/web-components-bundle/global-topbar/index.js +8 -7
- package/web-components-bundle/has-permission/index.js +5 -4
- package/web-components-bundle/{index-B2F-s5_G.js → index-B0EbOgi6.js} +16319 -21649
- package/web-components-bundle/{index-DyX6L9q-.js → index-B2-j-GrO.js} +215 -226
- package/web-components-bundle/index-B8-7QZsi.js +5410 -0
- package/web-components-bundle/{index-B1bJ4sn5.js → index-Cx0zTfOC.js} +1 -1
- package/web-components-bundle/page-not-found/index.js +2 -2
- package/web-components-bundle/{react-to-web-component-C4-Jmrxs.js → react-to-web-component-D7SoYMky.js} +1535 -1527
- package/web-components-bundle/{react-toastify.esm-C4-Xv2fh.js → react-toastify.esm-Y1WvK90L.js} +156 -175
- package/web-components-bundle/setPrototypeOf-BVKdEITT.js +14 -0
- package/web-components-bundle/toast-config/index.js +2 -2
- package/web-components-bundle/toast-config-notification/index.js +2 -2
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { r as $, c as ce, g as
|
|
1
|
+
import { r as $, c as ce, g as Jt, s as Xt, j as E } from "./react-to-web-component-D7SoYMky.js";
|
|
2
|
+
import { _ as Wt, a as Y } from "./setPrototypeOf-BVKdEITT.js";
|
|
2
3
|
function Gt(i, e) {
|
|
3
4
|
for (var t = 0; t < e.length; t++) {
|
|
4
5
|
const n = e[t];
|
|
@@ -39,31 +40,21 @@ function Qt(i, e) {
|
|
|
39
40
|
}
|
|
40
41
|
return (e === "string" ? String : Number)(i);
|
|
41
42
|
}
|
|
42
|
-
function
|
|
43
|
+
function kt(i) {
|
|
43
44
|
var e = Qt(i, "string");
|
|
44
45
|
return U(e) == "symbol" ? e : e + "";
|
|
45
46
|
}
|
|
46
|
-
function
|
|
47
|
+
function $e(i, e) {
|
|
47
48
|
for (var t = 0; t < e.length; t++) {
|
|
48
49
|
var n = e[t];
|
|
49
|
-
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(i,
|
|
50
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(i, kt(n.key), n);
|
|
50
51
|
}
|
|
51
52
|
}
|
|
52
53
|
function H(i, e, t) {
|
|
53
|
-
return e &&
|
|
54
|
+
return e && $e(i.prototype, e), t && $e(i, t), Object.defineProperty(i, "prototype", {
|
|
54
55
|
writable: !1
|
|
55
56
|
}), i;
|
|
56
57
|
}
|
|
57
|
-
function Y(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 Ne(i, e) {
|
|
63
|
-
return Ne = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, n) {
|
|
64
|
-
return t.__proto__ = n, t;
|
|
65
|
-
}, Ne(i, e);
|
|
66
|
-
}
|
|
67
58
|
function Se(i, e) {
|
|
68
59
|
if (typeof e != "function" && e !== null)
|
|
69
60
|
throw new TypeError("Super expression must either be null or a function");
|
|
@@ -75,7 +66,7 @@ function Se(i, e) {
|
|
|
75
66
|
}
|
|
76
67
|
}), Object.defineProperty(i, "prototype", {
|
|
77
68
|
writable: !1
|
|
78
|
-
}), e &&
|
|
69
|
+
}), e && Wt(i, e);
|
|
79
70
|
}
|
|
80
71
|
function de(i, e) {
|
|
81
72
|
if (e && (U(e) == "object" || typeof e == "function"))
|
|
@@ -90,14 +81,14 @@ function X(i) {
|
|
|
90
81
|
}, X(i);
|
|
91
82
|
}
|
|
92
83
|
function W(i, e, t) {
|
|
93
|
-
return (e =
|
|
84
|
+
return (e = kt(e)) in i ? Object.defineProperty(i, e, {
|
|
94
85
|
value: t,
|
|
95
86
|
enumerable: !0,
|
|
96
87
|
configurable: !0,
|
|
97
88
|
writable: !0
|
|
98
89
|
}) : i[e] = t, i;
|
|
99
90
|
}
|
|
100
|
-
function
|
|
91
|
+
function Lt(i) {
|
|
101
92
|
if (Array.isArray(i))
|
|
102
93
|
return i;
|
|
103
94
|
}
|
|
@@ -105,28 +96,28 @@ function Yt(i) {
|
|
|
105
96
|
if (typeof Symbol < "u" && i[Symbol.iterator] != null || i["@@iterator"] != null)
|
|
106
97
|
return Array.from(i);
|
|
107
98
|
}
|
|
108
|
-
function
|
|
99
|
+
function qe(i, e) {
|
|
109
100
|
(e == null || e > i.length) && (e = i.length);
|
|
110
101
|
for (var t = 0, n = Array(e); t < e; t++)
|
|
111
102
|
n[t] = i[t];
|
|
112
103
|
return n;
|
|
113
104
|
}
|
|
114
|
-
function
|
|
105
|
+
function Rt(i, e) {
|
|
115
106
|
if (i) {
|
|
116
107
|
if (typeof i == "string")
|
|
117
|
-
return
|
|
108
|
+
return qe(i, e);
|
|
118
109
|
var t = {}.toString.call(i).slice(8, -1);
|
|
119
|
-
return t === "Object" && i.constructor && (t = i.constructor.name), t === "Map" || t === "Set" ? Array.from(i) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ?
|
|
110
|
+
return t === "Object" && i.constructor && (t = i.constructor.name), t === "Map" || t === "Set" ? Array.from(i) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? qe(i, e) : void 0;
|
|
120
111
|
}
|
|
121
112
|
}
|
|
122
|
-
function
|
|
113
|
+
function Et() {
|
|
123
114
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
124
115
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
125
116
|
}
|
|
126
117
|
function Zt(i) {
|
|
127
|
-
return
|
|
118
|
+
return Lt(i) || Yt(i) || Rt(i) || Et();
|
|
128
119
|
}
|
|
129
|
-
function
|
|
120
|
+
function Ke(i, e) {
|
|
130
121
|
var t = Object.keys(i);
|
|
131
122
|
if (Object.getOwnPropertySymbols) {
|
|
132
123
|
var n = Object.getOwnPropertySymbols(i);
|
|
@@ -136,12 +127,12 @@ function Ve(i, e) {
|
|
|
136
127
|
}
|
|
137
128
|
return t;
|
|
138
129
|
}
|
|
139
|
-
function
|
|
130
|
+
function Ve(i) {
|
|
140
131
|
for (var e = 1; e < arguments.length; e++) {
|
|
141
132
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
142
|
-
e % 2 ?
|
|
133
|
+
e % 2 ? Ke(Object(t), !0).forEach(function(n) {
|
|
143
134
|
W(i, n, t[n]);
|
|
144
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) :
|
|
135
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : Ke(Object(t)).forEach(function(n) {
|
|
145
136
|
Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
|
|
146
137
|
});
|
|
147
138
|
}
|
|
@@ -213,7 +204,7 @@ var en = {
|
|
|
213
204
|
}, {
|
|
214
205
|
key: "create",
|
|
215
206
|
value: function(t) {
|
|
216
|
-
return new i(this.logger,
|
|
207
|
+
return new i(this.logger, Ve(Ve({}, {
|
|
217
208
|
prefix: "".concat(this.prefix, ":").concat(t, ":")
|
|
218
209
|
}), this.options));
|
|
219
210
|
}
|
|
@@ -274,7 +265,7 @@ function se() {
|
|
|
274
265
|
});
|
|
275
266
|
return t.resolve = i, t.reject = e, t;
|
|
276
267
|
}
|
|
277
|
-
function
|
|
268
|
+
function ze(i) {
|
|
278
269
|
return i == null ? "" : "" + i;
|
|
279
270
|
}
|
|
280
271
|
function nn(i, e, t) {
|
|
@@ -282,7 +273,7 @@ function nn(i, e, t) {
|
|
|
282
273
|
e[n] && (t[n] = e[n]);
|
|
283
274
|
});
|
|
284
275
|
}
|
|
285
|
-
function
|
|
276
|
+
function Fe(i, e, t) {
|
|
286
277
|
function n(s) {
|
|
287
278
|
return s && s.indexOf("###") > -1 ? s.replace(/###/g, ".") : s;
|
|
288
279
|
}
|
|
@@ -300,16 +291,16 @@ function Ue(i, e, t) {
|
|
|
300
291
|
k: n(a.shift())
|
|
301
292
|
};
|
|
302
293
|
}
|
|
303
|
-
function
|
|
304
|
-
var n =
|
|
294
|
+
function Je(i, e, t) {
|
|
295
|
+
var n = Fe(i, e, Object), r = n.obj, a = n.k;
|
|
305
296
|
r[a] = t;
|
|
306
297
|
}
|
|
307
298
|
function rn(i, e, t, n) {
|
|
308
|
-
var r =
|
|
299
|
+
var r = Fe(i, e, Object), a = r.obj, o = r.k;
|
|
309
300
|
a[o] = a[o] || [], a[o].push(t);
|
|
310
301
|
}
|
|
311
302
|
function ye(i, e) {
|
|
312
|
-
var t =
|
|
303
|
+
var t = Fe(i, e), n = t.obj, r = t.k;
|
|
313
304
|
if (n)
|
|
314
305
|
return n[r];
|
|
315
306
|
}
|
|
@@ -384,7 +375,7 @@ function be(i, e) {
|
|
|
384
375
|
return r;
|
|
385
376
|
}
|
|
386
377
|
}
|
|
387
|
-
function
|
|
378
|
+
function Xe(i, e) {
|
|
388
379
|
var t = Object.keys(i);
|
|
389
380
|
if (Object.getOwnPropertySymbols) {
|
|
390
381
|
var n = Object.getOwnPropertySymbols(i);
|
|
@@ -397,9 +388,9 @@ function We(i, e) {
|
|
|
397
388
|
function ge(i) {
|
|
398
389
|
for (var e = 1; e < arguments.length; e++) {
|
|
399
390
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
400
|
-
e % 2 ?
|
|
391
|
+
e % 2 ? Xe(Object(t), !0).forEach(function(n) {
|
|
401
392
|
W(i, n, t[n]);
|
|
402
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) :
|
|
393
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : Xe(Object(t)).forEach(function(n) {
|
|
403
394
|
Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
|
|
404
395
|
});
|
|
405
396
|
}
|
|
@@ -464,7 +455,7 @@ var dn = function(i) {
|
|
|
464
455
|
var u = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
465
456
|
silent: !1
|
|
466
457
|
}, d = u.keySeparator !== void 0 ? u.keySeparator : this.options.keySeparator, c = [r, a];
|
|
467
|
-
o && (c = c.concat(d ? o.split(d) : o)), r.indexOf(".") > -1 && (c = r.split("."), s = a, a = c[1]), this.addNamespaces(a),
|
|
458
|
+
o && (c = c.concat(d ? o.split(d) : o)), r.indexOf(".") > -1 && (c = r.split("."), s = a, a = c[1]), this.addNamespaces(a), Je(this.data, c, s), u.silent || this.emit("added", r, a, o, s);
|
|
468
459
|
}
|
|
469
460
|
}, {
|
|
470
461
|
key: "addResources",
|
|
@@ -486,7 +477,7 @@ var dn = function(i) {
|
|
|
486
477
|
}, c = [r, a];
|
|
487
478
|
r.indexOf(".") > -1 && (c = r.split("."), s = o, o = a, a = c[1]), this.addNamespaces(a);
|
|
488
479
|
var f = ye(this.data, c) || {};
|
|
489
|
-
s ? Ct(f, o, u) : f = ge(ge({}, f), o),
|
|
480
|
+
s ? Ct(f, o, u) : f = ge(ge({}, f), o), Je(this.data, c, f), d.silent || this.emit("added", r, a, o);
|
|
490
481
|
}
|
|
491
482
|
}, {
|
|
492
483
|
key: "removeResourceBundle",
|
|
@@ -522,7 +513,7 @@ var dn = function(i) {
|
|
|
522
513
|
return this.data;
|
|
523
514
|
}
|
|
524
515
|
}]), t;
|
|
525
|
-
}(Z),
|
|
516
|
+
}(Z), _t = {
|
|
526
517
|
processors: {},
|
|
527
518
|
addPostProcessor: function(e) {
|
|
528
519
|
this.processors[e.name] = e;
|
|
@@ -534,7 +525,7 @@ var dn = function(i) {
|
|
|
534
525
|
}), t;
|
|
535
526
|
}
|
|
536
527
|
};
|
|
537
|
-
function
|
|
528
|
+
function We(i, e) {
|
|
538
529
|
var t = Object.keys(i);
|
|
539
530
|
if (Object.getOwnPropertySymbols) {
|
|
540
531
|
var n = Object.getOwnPropertySymbols(i);
|
|
@@ -547,9 +538,9 @@ function Ge(i, e) {
|
|
|
547
538
|
function T(i) {
|
|
548
539
|
for (var e = 1; e < arguments.length; e++) {
|
|
549
540
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
550
|
-
e % 2 ?
|
|
541
|
+
e % 2 ? We(Object(t), !0).forEach(function(n) {
|
|
551
542
|
W(i, n, t[n]);
|
|
552
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) :
|
|
543
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : We(Object(t)).forEach(function(n) {
|
|
553
544
|
Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
|
|
554
545
|
});
|
|
555
546
|
}
|
|
@@ -579,7 +570,7 @@ function gn() {
|
|
|
579
570
|
return !1;
|
|
580
571
|
}
|
|
581
572
|
}
|
|
582
|
-
var
|
|
573
|
+
var Ge = {}, Qe = function(i) {
|
|
583
574
|
Se(t, i);
|
|
584
575
|
var e = pn(t);
|
|
585
576
|
function t(n) {
|
|
@@ -650,14 +641,14 @@ var Qe = {}, Ye = function(i) {
|
|
|
650
641
|
usedNS: g
|
|
651
642
|
} : f;
|
|
652
643
|
}
|
|
653
|
-
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,
|
|
654
|
-
if (
|
|
644
|
+
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, _ = !this.i18nFormat || this.i18nFormat.handleAsObject, R = typeof m != "string" && typeof m != "boolean" && typeof m != "number";
|
|
645
|
+
if (_ && m && R && D.indexOf(k) < 0 && !(typeof I == "string" && k === "[object Array]")) {
|
|
655
646
|
if (!a.returnObjects && !this.options.returnObjects) {
|
|
656
647
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
657
|
-
var
|
|
648
|
+
var C = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(S, m, T(T({}, a), {}, {
|
|
658
649
|
ns: p
|
|
659
650
|
})) : "key '".concat(f, " (").concat(this.language, ")' returned an object instead of string.");
|
|
660
|
-
return u ? (v.res =
|
|
651
|
+
return u ? (v.res = C, v) : C;
|
|
661
652
|
}
|
|
662
653
|
if (d) {
|
|
663
654
|
var Q = k === "[object Array]", A = Q ? [] : {}, Pe = Q ? x : S;
|
|
@@ -671,7 +662,7 @@ var Qe = {}, Ye = function(i) {
|
|
|
671
662
|
}
|
|
672
663
|
m = A;
|
|
673
664
|
}
|
|
674
|
-
} else if (
|
|
665
|
+
} else if (_ && typeof I == "string" && k === "[object Array]")
|
|
675
666
|
m = m.join(I), m && (m = this.extendTranslation(m, r, a, o));
|
|
676
667
|
else {
|
|
677
668
|
var h = !1, O = !1, j = a.count !== void 0 && typeof a.count != "string", L = t.hasDefaultValue(a), P = j ? this.pluralResolver.getSuffix(b, a.count, a) : "", K = a["defaultValue".concat(P)] || a.defaultValue;
|
|
@@ -679,10 +670,10 @@ var Qe = {}, Ye = function(i) {
|
|
|
679
670
|
var je = a.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey, F = je && O ? void 0 : m, V = L && K !== m && this.options.updateMissing;
|
|
680
671
|
if (O || h || V) {
|
|
681
672
|
if (this.logger.log(V ? "updateKey" : "missingKey", b, g, f, V ? K : m), d) {
|
|
682
|
-
var
|
|
673
|
+
var Ue = this.resolve(f, T(T({}, a), {}, {
|
|
683
674
|
keySeparator: !1
|
|
684
675
|
}));
|
|
685
|
-
|
|
676
|
+
Ue && Ue.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
|
|
686
677
|
}
|
|
687
678
|
var oe = [], pe = this.languageUtils.getFallbackCodes(this.options.fallbackLng, a.lng || this.language);
|
|
688
679
|
if (this.options.saveMissingTo === "fallback" && pe && pe[0])
|
|
@@ -690,15 +681,15 @@ var Qe = {}, Ye = function(i) {
|
|
|
690
681
|
oe.push(pe[ke]);
|
|
691
682
|
else
|
|
692
683
|
this.options.saveMissingTo === "all" ? oe = this.languageUtils.toResolveHierarchy(a.lng || this.language) : oe.push(a.lng || this.language);
|
|
693
|
-
var
|
|
694
|
-
var
|
|
695
|
-
s.options.missingKeyHandler ? s.options.missingKeyHandler(ne, g, Re,
|
|
684
|
+
var Be = function(ne, Re, He) {
|
|
685
|
+
var Me = L && He !== m ? He : F;
|
|
686
|
+
s.options.missingKeyHandler ? s.options.missingKeyHandler(ne, g, Re, Me, V, a) : s.backendConnector && s.backendConnector.saveMissing && s.backendConnector.saveMissing(ne, g, Re, Me, V, a), s.emit("missingKey", ne, g, Re, m);
|
|
696
687
|
};
|
|
697
688
|
this.options.saveMissing && (this.options.saveMissingPlurals && j ? oe.forEach(function(Le) {
|
|
698
689
|
s.pluralResolver.getSuffixes(Le, a).forEach(function(ne) {
|
|
699
|
-
|
|
690
|
+
Be([Le], f + ne, a["defaultValue".concat(ne)] || K);
|
|
700
691
|
});
|
|
701
|
-
}) :
|
|
692
|
+
}) : Be(oe, f, K));
|
|
702
693
|
}
|
|
703
694
|
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));
|
|
704
695
|
}
|
|
@@ -733,7 +724,7 @@ var Qe = {}, Ye = function(i) {
|
|
|
733
724
|
}, o)), o.interpolation && this.interpolator.reset();
|
|
734
725
|
}
|
|
735
726
|
var w = o.postProcess || this.options.postProcess, v = typeof w == "string" ? [w] : w;
|
|
736
|
-
return r != null && v && v.length && o.applyPostProcessor !== !1 && (r =
|
|
727
|
+
return r != null && v && v.length && o.applyPostProcessor !== !1 && (r = _t.handle(v, r, a, this.options && this.options.postProcessPassResolved ? T({
|
|
737
728
|
i18nResolved: s
|
|
738
729
|
}, o) : o, this)), r;
|
|
739
730
|
}
|
|
@@ -749,7 +740,7 @@ var Qe = {}, Ye = function(i) {
|
|
|
749
740
|
a.options.fallbackNS && (y = y.concat(a.options.fallbackNS));
|
|
750
741
|
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);
|
|
751
742
|
y.forEach(function(x) {
|
|
752
|
-
a.isValidLookup(s) || (f = x, !
|
|
743
|
+
a.isValidLookup(s) || (f = x, !Ge["".concat(S[0], "-").concat(x)] && a.utils && a.utils.hasLoadedNamespace && !a.utils.hasLoadedNamespace(f) && (Ge["".concat(S[0], "-").concat(x)] = !0, a.logger.warn('key "'.concat(u, '" for languages "').concat(S.join(", "), `" won't get resolved as namespace "`).concat(f, '" was not yet loaded'), "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), S.forEach(function(k) {
|
|
753
744
|
if (!a.isValidLookup(s)) {
|
|
754
745
|
c = k;
|
|
755
746
|
var D = [b];
|
|
@@ -758,14 +749,14 @@ var Qe = {}, Ye = function(i) {
|
|
|
758
749
|
else {
|
|
759
750
|
var I;
|
|
760
751
|
w && (I = a.pluralResolver.getSuffix(k, o.count, o));
|
|
761
|
-
var
|
|
762
|
-
if (w && (D.push(b + I), v && D.push(b +
|
|
752
|
+
var _ = "".concat(a.options.pluralSeparator, "zero");
|
|
753
|
+
if (w && (D.push(b + I), v && D.push(b + _)), m) {
|
|
763
754
|
var R = "".concat(b).concat(a.options.contextSeparator).concat(o.context);
|
|
764
|
-
D.push(R), w && (D.push(R + I), v && D.push(R +
|
|
755
|
+
D.push(R), w && (D.push(R + I), v && D.push(R + _));
|
|
765
756
|
}
|
|
766
757
|
}
|
|
767
|
-
for (var
|
|
768
|
-
a.isValidLookup(s) || (d =
|
|
758
|
+
for (var C; C = D.pop(); )
|
|
759
|
+
a.isValidLookup(s) || (d = C, s = a.getResource(k, x, C, o));
|
|
769
760
|
}
|
|
770
761
|
}));
|
|
771
762
|
});
|
|
@@ -803,7 +794,7 @@ var Qe = {}, Ye = function(i) {
|
|
|
803
794
|
function Ee(i) {
|
|
804
795
|
return i.charAt(0).toUpperCase() + i.slice(1);
|
|
805
796
|
}
|
|
806
|
-
var
|
|
797
|
+
var Ye = function() {
|
|
807
798
|
function i(e) {
|
|
808
799
|
B(this, i), this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = J.create("languageUtils");
|
|
809
800
|
}
|
|
@@ -1047,7 +1038,7 @@ var Ze = function() {
|
|
|
1047
1038
|
22: function(e) {
|
|
1048
1039
|
return e == 1 ? 0 : e == 2 ? 1 : (e < 0 || e > 10) && e % 10 == 0 ? 2 : 3;
|
|
1049
1040
|
}
|
|
1050
|
-
}, mn = ["v1", "v2", "v3"],
|
|
1041
|
+
}, mn = ["v1", "v2", "v3"], Ze = {
|
|
1051
1042
|
zero: 0,
|
|
1052
1043
|
one: 1,
|
|
1053
1044
|
two: 2,
|
|
@@ -1109,7 +1100,7 @@ var bn = function() {
|
|
|
1109
1100
|
value: function(t) {
|
|
1110
1101
|
var n = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = this.getRule(t, r);
|
|
1111
1102
|
return a ? this.shouldUseIntlApi() ? a.resolvedOptions().pluralCategories.sort(function(o, s) {
|
|
1112
|
-
return
|
|
1103
|
+
return Ze[o] - Ze[s];
|
|
1113
1104
|
}).map(function(o) {
|
|
1114
1105
|
return "".concat(n.options.prepend).concat(o);
|
|
1115
1106
|
}) : a.numbers.map(function(o) {
|
|
@@ -1139,7 +1130,7 @@ var bn = function() {
|
|
|
1139
1130
|
}
|
|
1140
1131
|
}]), i;
|
|
1141
1132
|
}();
|
|
1142
|
-
function
|
|
1133
|
+
function et(i, e) {
|
|
1143
1134
|
var t = Object.keys(i);
|
|
1144
1135
|
if (Object.getOwnPropertySymbols) {
|
|
1145
1136
|
var n = Object.getOwnPropertySymbols(i);
|
|
@@ -1152,15 +1143,15 @@ function tt(i, e) {
|
|
|
1152
1143
|
function M(i) {
|
|
1153
1144
|
for (var e = 1; e < arguments.length; e++) {
|
|
1154
1145
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
1155
|
-
e % 2 ?
|
|
1146
|
+
e % 2 ? et(Object(t), !0).forEach(function(n) {
|
|
1156
1147
|
W(i, n, t[n]);
|
|
1157
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) :
|
|
1148
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : et(Object(t)).forEach(function(n) {
|
|
1158
1149
|
Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
|
|
1159
1150
|
});
|
|
1160
1151
|
}
|
|
1161
1152
|
return i;
|
|
1162
1153
|
}
|
|
1163
|
-
function
|
|
1154
|
+
function tt(i, e, t) {
|
|
1164
1155
|
var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", r = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, a = an(i, e, t);
|
|
1165
1156
|
return !a && r && typeof t == "string" && (a = be(i, t, n), a === void 0 && (a = be(e, t, n))), a;
|
|
1166
1157
|
}
|
|
@@ -1205,13 +1196,13 @@ var wn = function() {
|
|
|
1205
1196
|
}
|
|
1206
1197
|
var p = function(v) {
|
|
1207
1198
|
if (v.indexOf(o.formatSeparator) < 0) {
|
|
1208
|
-
var m =
|
|
1199
|
+
var m = tt(n, c, v, o.options.keySeparator, o.options.ignoreJSONStructure);
|
|
1209
1200
|
return o.alwaysFormat ? o.format(m, void 0, r, M(M(M({}, a), n), {}, {
|
|
1210
1201
|
interpolationkey: v
|
|
1211
1202
|
})) : m;
|
|
1212
1203
|
}
|
|
1213
1204
|
var S = v.split(o.formatSeparator), x = S.shift().trim(), k = S.join(o.formatSeparator).trim();
|
|
1214
|
-
return o.format(
|
|
1205
|
+
return o.format(tt(n, c, x, o.options.keySeparator, o.options.ignoreJSONStructure), k, r, M(M(M({}, a), n), {}, {
|
|
1215
1206
|
interpolationkey: x
|
|
1216
1207
|
}));
|
|
1217
1208
|
};
|
|
@@ -1242,7 +1233,7 @@ var wn = function() {
|
|
|
1242
1233
|
} else
|
|
1243
1234
|
o.logger.warn("missed to pass in variable ".concat(v, " for interpolating ").concat(t)), u = "";
|
|
1244
1235
|
else
|
|
1245
|
-
typeof u != "string" && !o.useRawValueToEscape && (u =
|
|
1236
|
+
typeof u != "string" && !o.useRawValueToEscape && (u = ze(u));
|
|
1246
1237
|
var S = w.safeValue(u);
|
|
1247
1238
|
if (t = t.replace(s[0], S), b ? (w.regex.lastIndex += u.length, w.regex.lastIndex -= s[0].length) : w.regex.lastIndex = 0, d++, d >= o.maxReplaces)
|
|
1248
1239
|
break;
|
|
@@ -1280,7 +1271,7 @@ var wn = function() {
|
|
|
1280
1271
|
}
|
|
1281
1272
|
if (s = n(d.call(this, o[1].trim(), u), u), s && o[0] === t && typeof s != "string")
|
|
1282
1273
|
return s;
|
|
1283
|
-
typeof s != "string" && (s =
|
|
1274
|
+
typeof s != "string" && (s = ze(s)), s || (this.logger.warn("missed to resolve ".concat(o[1], " for nesting ").concat(t)), s = ""), f && (s = c.reduce(function(g, b) {
|
|
1284
1275
|
return r.format(g, b, a.lng, M(M({}, a), {}, {
|
|
1285
1276
|
interpolationkey: o[1].trim()
|
|
1286
1277
|
}));
|
|
@@ -1290,7 +1281,7 @@ var wn = function() {
|
|
|
1290
1281
|
}
|
|
1291
1282
|
}]), i;
|
|
1292
1283
|
}();
|
|
1293
|
-
function
|
|
1284
|
+
function nt(i, e) {
|
|
1294
1285
|
var t = Object.keys(i);
|
|
1295
1286
|
if (Object.getOwnPropertySymbols) {
|
|
1296
1287
|
var n = Object.getOwnPropertySymbols(i);
|
|
@@ -1303,9 +1294,9 @@ function rt(i, e) {
|
|
|
1303
1294
|
function G(i) {
|
|
1304
1295
|
for (var e = 1; e < arguments.length; e++) {
|
|
1305
1296
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
1306
|
-
e % 2 ?
|
|
1297
|
+
e % 2 ? nt(Object(t), !0).forEach(function(n) {
|
|
1307
1298
|
W(i, n, t[n]);
|
|
1308
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) :
|
|
1299
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : nt(Object(t)).forEach(function(n) {
|
|
1309
1300
|
Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
|
|
1310
1301
|
});
|
|
1311
1302
|
}
|
|
@@ -1421,7 +1412,7 @@ var Sn = function() {
|
|
|
1421
1412
|
}
|
|
1422
1413
|
}]), i;
|
|
1423
1414
|
}();
|
|
1424
|
-
function
|
|
1415
|
+
function rt(i, e) {
|
|
1425
1416
|
var t = Object.keys(i);
|
|
1426
1417
|
if (Object.getOwnPropertySymbols) {
|
|
1427
1418
|
var n = Object.getOwnPropertySymbols(i);
|
|
@@ -1431,12 +1422,12 @@ function it(i, e) {
|
|
|
1431
1422
|
}
|
|
1432
1423
|
return t;
|
|
1433
1424
|
}
|
|
1434
|
-
function
|
|
1425
|
+
function it(i) {
|
|
1435
1426
|
for (var e = 1; e < arguments.length; e++) {
|
|
1436
1427
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
1437
|
-
e % 2 ?
|
|
1428
|
+
e % 2 ? rt(Object(t), !0).forEach(function(n) {
|
|
1438
1429
|
W(i, n, t[n]);
|
|
1439
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) :
|
|
1430
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : rt(Object(t)).forEach(function(n) {
|
|
1440
1431
|
Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
|
|
1441
1432
|
});
|
|
1442
1433
|
}
|
|
@@ -1606,7 +1597,7 @@ var kn = function(i) {
|
|
|
1606
1597
|
}
|
|
1607
1598
|
if (!(o == null || o === "")) {
|
|
1608
1599
|
if (this.backend && this.backend.create) {
|
|
1609
|
-
var f =
|
|
1600
|
+
var f = it(it({}, d), {}, {
|
|
1610
1601
|
isUpdate: u
|
|
1611
1602
|
}), p = this.backend.create.bind(this.backend);
|
|
1612
1603
|
if (p.length < 6)
|
|
@@ -1626,7 +1617,7 @@ var kn = function(i) {
|
|
|
1626
1617
|
}
|
|
1627
1618
|
}]), t;
|
|
1628
1619
|
}(Z);
|
|
1629
|
-
function
|
|
1620
|
+
function at() {
|
|
1630
1621
|
return {
|
|
1631
1622
|
debug: !1,
|
|
1632
1623
|
initImmediate: !0,
|
|
@@ -1687,10 +1678,10 @@ function ot() {
|
|
|
1687
1678
|
}
|
|
1688
1679
|
};
|
|
1689
1680
|
}
|
|
1690
|
-
function
|
|
1681
|
+
function ot(i) {
|
|
1691
1682
|
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;
|
|
1692
1683
|
}
|
|
1693
|
-
function
|
|
1684
|
+
function st(i, e) {
|
|
1694
1685
|
var t = Object.keys(i);
|
|
1695
1686
|
if (Object.getOwnPropertySymbols) {
|
|
1696
1687
|
var n = Object.getOwnPropertySymbols(i);
|
|
@@ -1703,9 +1694,9 @@ function ut(i, e) {
|
|
|
1703
1694
|
function z(i) {
|
|
1704
1695
|
for (var e = 1; e < arguments.length; e++) {
|
|
1705
1696
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
1706
|
-
e % 2 ?
|
|
1697
|
+
e % 2 ? st(Object(t), !0).forEach(function(n) {
|
|
1707
1698
|
W(i, n, t[n]);
|
|
1708
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) :
|
|
1699
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : st(Object(t)).forEach(function(n) {
|
|
1709
1700
|
Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
|
|
1710
1701
|
});
|
|
1711
1702
|
}
|
|
@@ -1748,7 +1739,7 @@ var we = function(i) {
|
|
|
1748
1739
|
var e = Ln(t);
|
|
1749
1740
|
function t() {
|
|
1750
1741
|
var n, r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = arguments.length > 1 ? arguments[1] : void 0;
|
|
1751
|
-
if (B(this, t), n = e.call(this), xe && Z.call(Y(n)), n.options =
|
|
1742
|
+
if (B(this, t), n = e.call(this), xe && Z.call(Y(n)), n.options = ot(r), n.services = {}, n.logger = J, n.modules = {
|
|
1752
1743
|
external: []
|
|
1753
1744
|
}, En(Y(n)), a && !n.isInitialized && !r.isClone) {
|
|
1754
1745
|
if (!n.options.initImmediate)
|
|
@@ -1764,8 +1755,8 @@ var we = function(i) {
|
|
|
1764
1755
|
value: function() {
|
|
1765
1756
|
var r = this, a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, o = arguments.length > 1 ? arguments[1] : void 0;
|
|
1766
1757
|
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]));
|
|
1767
|
-
var s =
|
|
1768
|
-
this.options = z(z(z({}, s), this.options),
|
|
1758
|
+
var s = at();
|
|
1759
|
+
this.options = z(z(z({}, s), this.options), ot(a)), this.options.compatibilityAPI !== "v1" && (this.options.interpolation = z(z({}, s.interpolation), this.options.interpolation)), a.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = a.keySeparator), a.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = a.nsSeparator);
|
|
1769
1760
|
function u(v) {
|
|
1770
1761
|
return v ? typeof v == "function" ? new v() : v : null;
|
|
1771
1762
|
}
|
|
@@ -1773,7 +1764,7 @@ var we = function(i) {
|
|
|
1773
1764
|
this.modules.logger ? J.init(u(this.modules.logger), this.options) : J.init(null, this.options);
|
|
1774
1765
|
var d;
|
|
1775
1766
|
this.modules.formatter ? d = this.modules.formatter : typeof Intl < "u" && (d = Sn);
|
|
1776
|
-
var c = new
|
|
1767
|
+
var c = new Ye(this.options);
|
|
1777
1768
|
this.store = new dn(this.options.resources, this.options);
|
|
1778
1769
|
var f = this.services;
|
|
1779
1770
|
f.logger = J, f.resourceStore = this.store, f.languageUtils = c, f.pluralResolver = new bn(c, {
|
|
@@ -1786,7 +1777,7 @@ var we = function(i) {
|
|
|
1786
1777
|
for (var m = arguments.length, S = new Array(m > 1 ? m - 1 : 0), x = 1; x < m; x++)
|
|
1787
1778
|
S[x - 1] = arguments[x];
|
|
1788
1779
|
r.emit.apply(r, [v].concat(S));
|
|
1789
|
-
}), 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
|
|
1780
|
+
}), this.modules.languageDetector && (f.languageDetector = u(this.modules.languageDetector), f.languageDetector.init && f.languageDetector.init(f, this.options.detection, this.options)), this.modules.i18nFormat && (f.i18nFormat = u(this.modules.i18nFormat), f.i18nFormat.init && f.i18nFormat.init(this)), this.translator = new Qe(this.services, this.options), this.translator.on("*", function(v) {
|
|
1790
1781
|
for (var m = arguments.length, S = new Array(m > 1 ? m - 1 : 0), x = 1; x < m; x++)
|
|
1791
1782
|
S[x - 1] = arguments[x];
|
|
1792
1783
|
r.emit.apply(r, [v].concat(S));
|
|
@@ -1869,7 +1860,7 @@ var we = function(i) {
|
|
|
1869
1860
|
throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
|
1870
1861
|
if (!r.type)
|
|
1871
1862
|
throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
|
1872
|
-
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" &&
|
|
1863
|
+
return r.type === "backend" && (this.modules.backend = r), (r.type === "logger" || r.log && r.warn && r.error) && (this.modules.logger = r), r.type === "languageDetector" && (this.modules.languageDetector = r), r.type === "i18nFormat" && (this.modules.i18nFormat = r), r.type === "postProcessor" && _t.addPostProcessor(r), r.type === "formatter" && (this.modules.formatter = r), r.type === "3rdParty" && this.modules.external.push(r), this;
|
|
1873
1864
|
}
|
|
1874
1865
|
}, {
|
|
1875
1866
|
key: "setResolvedLanguage",
|
|
@@ -1992,7 +1983,7 @@ var we = function(i) {
|
|
|
1992
1983
|
value: function(r) {
|
|
1993
1984
|
if (r || (r = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !r)
|
|
1994
1985
|
return "rtl";
|
|
1995
|
-
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
|
|
1986
|
+
var a = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], o = this.services && this.services.languageUtils || new Ye(at());
|
|
1996
1987
|
return a.indexOf(o.getLanguagePartFromCode(r)) > -1 || r.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
|
|
1997
1988
|
}
|
|
1998
1989
|
}, {
|
|
@@ -2007,7 +1998,7 @@ var we = function(i) {
|
|
|
2007
1998
|
u[c] = r[c];
|
|
2008
1999
|
}), u.services = z({}, this.services), u.services.utils = {
|
|
2009
2000
|
hasLoadedNamespace: u.hasLoadedNamespace.bind(u)
|
|
2010
|
-
}, u.translator = new
|
|
2001
|
+
}, u.translator = new Qe(u.services, u.options), u.translator.on("*", function(c) {
|
|
2011
2002
|
for (var f = arguments.length, p = new Array(f > 1 ? f - 1 : 0), g = 1; g < f; g++)
|
|
2012
2003
|
p[g - 1] = arguments[g];
|
|
2013
2004
|
u.emit.apply(u, [c].concat(p));
|
|
@@ -2042,21 +2033,21 @@ N.reloadResources;
|
|
|
2042
2033
|
N.use;
|
|
2043
2034
|
N.changeLanguage;
|
|
2044
2035
|
N.getFixedT;
|
|
2045
|
-
var
|
|
2036
|
+
var Tr = N.t;
|
|
2046
2037
|
N.exists;
|
|
2047
2038
|
N.setDefaultNamespace;
|
|
2048
2039
|
N.hasLoadedNamespace;
|
|
2049
2040
|
N.loadNamespaces;
|
|
2050
2041
|
N.loadLanguages;
|
|
2051
|
-
var
|
|
2042
|
+
var Nt = [], Cn = Nt.forEach, _n = Nt.slice;
|
|
2052
2043
|
function Nn(i) {
|
|
2053
|
-
return
|
|
2044
|
+
return Cn.call(_n.call(arguments, 1), function(e) {
|
|
2054
2045
|
if (e)
|
|
2055
2046
|
for (var t in e)
|
|
2056
2047
|
i[t] === void 0 && (i[t] = e[t]);
|
|
2057
2048
|
}), i;
|
|
2058
2049
|
}
|
|
2059
|
-
var
|
|
2050
|
+
var ut = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, An = function(e, t, n) {
|
|
2060
2051
|
var r = n || {};
|
|
2061
2052
|
r.path = r.path || "/";
|
|
2062
2053
|
var a = encodeURIComponent(t), o = "".concat(e, "=").concat(a);
|
|
@@ -2067,12 +2058,12 @@ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, An = function(e, t, n) {
|
|
|
2067
2058
|
o += "; Max-Age=".concat(Math.floor(s));
|
|
2068
2059
|
}
|
|
2069
2060
|
if (r.domain) {
|
|
2070
|
-
if (!
|
|
2061
|
+
if (!ut.test(r.domain))
|
|
2071
2062
|
throw new TypeError("option domain is invalid");
|
|
2072
2063
|
o += "; Domain=".concat(r.domain);
|
|
2073
2064
|
}
|
|
2074
2065
|
if (r.path) {
|
|
2075
|
-
if (!
|
|
2066
|
+
if (!ut.test(r.path))
|
|
2076
2067
|
throw new TypeError("option path is invalid");
|
|
2077
2068
|
o += "; Path=".concat(r.path);
|
|
2078
2069
|
}
|
|
@@ -2101,7 +2092,7 @@ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, An = function(e, t, n) {
|
|
|
2101
2092
|
}
|
|
2102
2093
|
}
|
|
2103
2094
|
return o;
|
|
2104
|
-
},
|
|
2095
|
+
}, ft = {
|
|
2105
2096
|
create: function(e, t, n, r) {
|
|
2106
2097
|
var a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
2107
2098
|
path: "/",
|
|
@@ -2126,13 +2117,13 @@ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, An = function(e, t, n) {
|
|
|
2126
2117
|
lookup: function(e) {
|
|
2127
2118
|
var t;
|
|
2128
2119
|
if (e.lookupCookie && typeof document < "u") {
|
|
2129
|
-
var n =
|
|
2120
|
+
var n = ft.read(e.lookupCookie);
|
|
2130
2121
|
n && (t = n);
|
|
2131
2122
|
}
|
|
2132
2123
|
return t;
|
|
2133
2124
|
},
|
|
2134
2125
|
cacheUserLanguage: function(e, t) {
|
|
2135
|
-
t.lookupCookie && typeof document < "u" &&
|
|
2126
|
+
t.lookupCookie && typeof document < "u" && ft.create(t.lookupCookie, e, t.cookieMinutes, t.cookieDomain, t.cookieOptions);
|
|
2136
2127
|
}
|
|
2137
2128
|
}, Dn = {
|
|
2138
2129
|
name: "querystring",
|
|
@@ -2151,7 +2142,7 @@ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, An = function(e, t, n) {
|
|
|
2151
2142
|
}
|
|
2152
2143
|
return t;
|
|
2153
2144
|
}
|
|
2154
|
-
}, ue = null,
|
|
2145
|
+
}, ue = null, ct = function() {
|
|
2155
2146
|
if (ue !== null)
|
|
2156
2147
|
return ue;
|
|
2157
2148
|
try {
|
|
@@ -2166,16 +2157,16 @@ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, An = function(e, t, n) {
|
|
|
2166
2157
|
name: "localStorage",
|
|
2167
2158
|
lookup: function(e) {
|
|
2168
2159
|
var t;
|
|
2169
|
-
if (e.lookupLocalStorage &&
|
|
2160
|
+
if (e.lookupLocalStorage && ct()) {
|
|
2170
2161
|
var n = window.localStorage.getItem(e.lookupLocalStorage);
|
|
2171
2162
|
n && (t = n);
|
|
2172
2163
|
}
|
|
2173
2164
|
return t;
|
|
2174
2165
|
},
|
|
2175
2166
|
cacheUserLanguage: function(e, t) {
|
|
2176
|
-
t.lookupLocalStorage &&
|
|
2167
|
+
t.lookupLocalStorage && ct() && window.localStorage.setItem(t.lookupLocalStorage, e);
|
|
2177
2168
|
}
|
|
2178
|
-
}, fe = null,
|
|
2169
|
+
}, fe = null, lt = function() {
|
|
2179
2170
|
if (fe !== null)
|
|
2180
2171
|
return fe;
|
|
2181
2172
|
try {
|
|
@@ -2190,14 +2181,14 @@ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, An = function(e, t, n) {
|
|
|
2190
2181
|
name: "sessionStorage",
|
|
2191
2182
|
lookup: function(e) {
|
|
2192
2183
|
var t;
|
|
2193
|
-
if (e.lookupSessionStorage &&
|
|
2184
|
+
if (e.lookupSessionStorage && lt()) {
|
|
2194
2185
|
var n = window.sessionStorage.getItem(e.lookupSessionStorage);
|
|
2195
2186
|
n && (t = n);
|
|
2196
2187
|
}
|
|
2197
2188
|
return t;
|
|
2198
2189
|
},
|
|
2199
2190
|
cacheUserLanguage: function(e, t) {
|
|
2200
|
-
t.lookupSessionStorage &&
|
|
2191
|
+
t.lookupSessionStorage && lt() && window.sessionStorage.setItem(t.lookupSessionStorage, e);
|
|
2201
2192
|
}
|
|
2202
2193
|
}, Un = {
|
|
2203
2194
|
name: "navigator",
|
|
@@ -2240,16 +2231,16 @@ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, An = function(e, t, n) {
|
|
|
2240
2231
|
if (n)
|
|
2241
2232
|
return n[t];
|
|
2242
2233
|
}
|
|
2243
|
-
},
|
|
2234
|
+
}, At = !1;
|
|
2244
2235
|
try {
|
|
2245
|
-
document.cookie,
|
|
2236
|
+
document.cookie, At = !0;
|
|
2246
2237
|
} catch {
|
|
2247
2238
|
}
|
|
2248
|
-
var
|
|
2249
|
-
|
|
2239
|
+
var Tt = ["querystring", "cookie", "localStorage", "sessionStorage", "navigator", "htmlTag"];
|
|
2240
|
+
At || Tt.splice(1, 1);
|
|
2250
2241
|
function $n() {
|
|
2251
2242
|
return {
|
|
2252
|
-
order:
|
|
2243
|
+
order: Tt,
|
|
2253
2244
|
lookupQuerystring: "lng",
|
|
2254
2245
|
lookupCookie: "i18next",
|
|
2255
2246
|
lookupLocalStorage: "i18nextLng",
|
|
@@ -2264,7 +2255,7 @@ function $n() {
|
|
|
2264
2255
|
}
|
|
2265
2256
|
};
|
|
2266
2257
|
}
|
|
2267
|
-
var
|
|
2258
|
+
var Dt = /* @__PURE__ */ function() {
|
|
2268
2259
|
function i(e) {
|
|
2269
2260
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2270
2261
|
B(this, i), this.type = "languageDetector", this.detectors = {}, this.init(e, t);
|
|
@@ -2309,7 +2300,7 @@ var It = /* @__PURE__ */ function() {
|
|
|
2309
2300
|
}
|
|
2310
2301
|
}]);
|
|
2311
2302
|
}();
|
|
2312
|
-
|
|
2303
|
+
Dt.type = "languageDetector";
|
|
2313
2304
|
function qn() {
|
|
2314
2305
|
if (console && console.warn) {
|
|
2315
2306
|
for (var i, e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
@@ -2317,13 +2308,13 @@ function qn() {
|
|
|
2317
2308
|
typeof t[0] == "string" && (t[0] = "react-i18next:: ".concat(t[0])), (i = console).warn.apply(i, t);
|
|
2318
2309
|
}
|
|
2319
2310
|
}
|
|
2320
|
-
var
|
|
2321
|
-
function
|
|
2311
|
+
var dt = {};
|
|
2312
|
+
function Ne() {
|
|
2322
2313
|
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
|
2323
2314
|
e[t] = arguments[t];
|
|
2324
|
-
typeof e[0] == "string" &&
|
|
2315
|
+
typeof e[0] == "string" && dt[e[0]] || (typeof e[0] == "string" && (dt[e[0]] = /* @__PURE__ */ new Date()), qn.apply(void 0, e));
|
|
2325
2316
|
}
|
|
2326
|
-
var
|
|
2317
|
+
var It = function(e, t) {
|
|
2327
2318
|
return function() {
|
|
2328
2319
|
if (e.isInitialized)
|
|
2329
2320
|
t();
|
|
@@ -2337,13 +2328,13 @@ var Ft = function(e, t) {
|
|
|
2337
2328
|
}
|
|
2338
2329
|
};
|
|
2339
2330
|
};
|
|
2340
|
-
function
|
|
2341
|
-
i.loadNamespaces(e,
|
|
2331
|
+
function pt(i, e, t) {
|
|
2332
|
+
i.loadNamespaces(e, It(i, t));
|
|
2342
2333
|
}
|
|
2343
|
-
function
|
|
2334
|
+
function gt(i, e, t, n) {
|
|
2344
2335
|
typeof t == "string" && (t = [t]), t.forEach(function(r) {
|
|
2345
2336
|
i.options.ns.indexOf(r) < 0 && i.options.ns.push(r);
|
|
2346
|
-
}), i.loadLanguages(e,
|
|
2337
|
+
}), i.loadLanguages(e, It(i, n));
|
|
2347
2338
|
}
|
|
2348
2339
|
function Kn(i, e) {
|
|
2349
2340
|
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];
|
|
@@ -2358,7 +2349,7 @@ function Kn(i, e) {
|
|
|
2358
2349
|
function Vn(i, e) {
|
|
2359
2350
|
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
2360
2351
|
if (!e.languages || !e.languages.length)
|
|
2361
|
-
return
|
|
2352
|
+
return Ne("i18n.languages were undefined or empty", e.languages), !0;
|
|
2362
2353
|
var n = e.options.ignoreJSONStructure !== void 0;
|
|
2363
2354
|
return n ? e.hasLoadedNamespace(i, {
|
|
2364
2355
|
lng: t.lng,
|
|
@@ -2394,7 +2385,7 @@ var zn = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
|
|
|
2394
2385
|
}, Wn = function(e) {
|
|
2395
2386
|
return e.replace(zn, Xn);
|
|
2396
2387
|
};
|
|
2397
|
-
function
|
|
2388
|
+
function ht(i, e) {
|
|
2398
2389
|
var t = Object.keys(i);
|
|
2399
2390
|
if (Object.getOwnPropertySymbols) {
|
|
2400
2391
|
var n = Object.getOwnPropertySymbols(i);
|
|
@@ -2404,18 +2395,18 @@ function vt(i, e) {
|
|
|
2404
2395
|
}
|
|
2405
2396
|
return t;
|
|
2406
2397
|
}
|
|
2407
|
-
function
|
|
2398
|
+
function vt(i) {
|
|
2408
2399
|
for (var e = 1; e < arguments.length; e++) {
|
|
2409
2400
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
2410
|
-
e % 2 ?
|
|
2401
|
+
e % 2 ? ht(Object(t), !0).forEach(function(n) {
|
|
2411
2402
|
W(i, n, t[n]);
|
|
2412
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) :
|
|
2403
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : ht(Object(t)).forEach(function(n) {
|
|
2413
2404
|
Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
|
|
2414
2405
|
});
|
|
2415
2406
|
}
|
|
2416
2407
|
return i;
|
|
2417
2408
|
}
|
|
2418
|
-
var
|
|
2409
|
+
var Ae = {
|
|
2419
2410
|
bindI18n: "languageChanged",
|
|
2420
2411
|
bindI18nStore: "",
|
|
2421
2412
|
transEmptyNodeValue: "",
|
|
@@ -2427,24 +2418,24 @@ var Te = {
|
|
|
2427
2418
|
};
|
|
2428
2419
|
function Gn() {
|
|
2429
2420
|
var i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2430
|
-
|
|
2421
|
+
Ae = vt(vt({}, Ae), i);
|
|
2431
2422
|
}
|
|
2432
2423
|
function Qn() {
|
|
2433
|
-
return
|
|
2424
|
+
return Ae;
|
|
2434
2425
|
}
|
|
2435
|
-
var
|
|
2426
|
+
var Ft;
|
|
2436
2427
|
function Yn(i) {
|
|
2437
|
-
|
|
2428
|
+
Ft = i;
|
|
2438
2429
|
}
|
|
2439
2430
|
function Zn() {
|
|
2440
|
-
return
|
|
2431
|
+
return Ft;
|
|
2441
2432
|
}
|
|
2442
2433
|
var er = {
|
|
2443
2434
|
type: "3rdParty",
|
|
2444
2435
|
init: function(e) {
|
|
2445
2436
|
Gn(e.options.react), Yn(e);
|
|
2446
2437
|
}
|
|
2447
|
-
},
|
|
2438
|
+
}, Ut = $.createContext(), tr = function() {
|
|
2448
2439
|
function i() {
|
|
2449
2440
|
B(this, i), this.usedNamespaces = {};
|
|
2450
2441
|
}
|
|
@@ -2486,9 +2477,9 @@ function nr(i, e) {
|
|
|
2486
2477
|
}
|
|
2487
2478
|
}
|
|
2488
2479
|
function rr(i, e) {
|
|
2489
|
-
return
|
|
2480
|
+
return Lt(i) || nr(i, e) || Rt(i, e) || Et();
|
|
2490
2481
|
}
|
|
2491
|
-
function
|
|
2482
|
+
function mt(i, e) {
|
|
2492
2483
|
var t = Object.keys(i);
|
|
2493
2484
|
if (Object.getOwnPropertySymbols) {
|
|
2494
2485
|
var n = Object.getOwnPropertySymbols(i);
|
|
@@ -2498,12 +2489,12 @@ function yt(i, e) {
|
|
|
2498
2489
|
}
|
|
2499
2490
|
return t;
|
|
2500
2491
|
}
|
|
2501
|
-
function
|
|
2492
|
+
function Ce(i) {
|
|
2502
2493
|
for (var e = 1; e < arguments.length; e++) {
|
|
2503
2494
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
2504
|
-
e % 2 ?
|
|
2495
|
+
e % 2 ? mt(Object(t), !0).forEach(function(n) {
|
|
2505
2496
|
W(i, n, t[n]);
|
|
2506
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) :
|
|
2497
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : mt(Object(t)).forEach(function(n) {
|
|
2507
2498
|
Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
|
|
2508
2499
|
});
|
|
2509
2500
|
}
|
|
@@ -2516,19 +2507,19 @@ var ir = function(e, t) {
|
|
|
2516
2507
|
}, [e, t]), n.current;
|
|
2517
2508
|
};
|
|
2518
2509
|
function ar(i) {
|
|
2519
|
-
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = e.i18n, n = $.useContext(
|
|
2510
|
+
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 || Zn();
|
|
2520
2511
|
if (o && !o.reportNamespaces && (o.reportNamespaces = new tr()), !o) {
|
|
2521
|
-
|
|
2522
|
-
var s = function(R,
|
|
2523
|
-
return typeof
|
|
2512
|
+
Ne("You will need to pass in an i18next instance by using initReactI18next");
|
|
2513
|
+
var s = function(R, C) {
|
|
2514
|
+
return typeof C == "string" ? C : C && U(C) === "object" && typeof C.defaultValue == "string" ? C.defaultValue : Array.isArray(R) ? R[R.length - 1] : R;
|
|
2524
2515
|
}, u = [s, {}, !1];
|
|
2525
2516
|
return u.t = s, u.i18n = {}, u.ready = !1, u;
|
|
2526
2517
|
}
|
|
2527
|
-
o.options.react && o.options.react.wait !== void 0 &&
|
|
2528
|
-
var d =
|
|
2518
|
+
o.options.react && o.options.react.wait !== void 0 && Ne("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
|
2519
|
+
var d = Ce(Ce(Ce({}, Qn()), o.options.react), e), c = d.useSuspense, f = d.keyPrefix, p = a || o.options && o.options.defaultNS;
|
|
2529
2520
|
p = typeof p == "string" ? [p] : p || ["translation"], o.reportNamespaces.addUsedNamespaces && o.reportNamespaces.addUsedNamespaces(p);
|
|
2530
|
-
var g = (o.isInitialized || o.initializedStoreOnce) && p.every(function(
|
|
2531
|
-
return Vn(
|
|
2521
|
+
var g = (o.isInitialized || o.initializedStoreOnce) && p.every(function(_) {
|
|
2522
|
+
return Vn(_, o, d);
|
|
2532
2523
|
});
|
|
2533
2524
|
function b() {
|
|
2534
2525
|
return o.getFixedT(e.lng || null, d.nsMode === "fallback" ? p : p[0], f);
|
|
@@ -2537,20 +2528,20 @@ function ar(i) {
|
|
|
2537
2528
|
e.lng && (S = "".concat(e.lng).concat(S));
|
|
2538
2529
|
var x = ir(S), k = $.useRef(!0);
|
|
2539
2530
|
$.useEffect(function() {
|
|
2540
|
-
var
|
|
2541
|
-
k.current = !0, !g && !c && (e.lng ?
|
|
2531
|
+
var _ = d.bindI18n, R = d.bindI18nStore;
|
|
2532
|
+
k.current = !0, !g && !c && (e.lng ? gt(o, e.lng, p, function() {
|
|
2542
2533
|
k.current && m(b);
|
|
2543
|
-
}) :
|
|
2534
|
+
}) : pt(o, p, function() {
|
|
2544
2535
|
k.current && m(b);
|
|
2545
2536
|
})), g && x && x !== S && k.current && m(b);
|
|
2546
|
-
function
|
|
2537
|
+
function C() {
|
|
2547
2538
|
k.current && m(b);
|
|
2548
2539
|
}
|
|
2549
|
-
return
|
|
2550
|
-
k.current = !1,
|
|
2551
|
-
return o.off(Q,
|
|
2540
|
+
return _ && o && o.on(_, C), R && o && o.store.on(R, C), function() {
|
|
2541
|
+
k.current = !1, _ && o && _.split(" ").forEach(function(Q) {
|
|
2542
|
+
return o.off(Q, C);
|
|
2552
2543
|
}), R && o && R.split(" ").forEach(function(Q) {
|
|
2553
|
-
return o.store.off(Q,
|
|
2544
|
+
return o.store.off(Q, C);
|
|
2554
2545
|
});
|
|
2555
2546
|
};
|
|
2556
2547
|
}, [o, S]);
|
|
@@ -2561,11 +2552,11 @@ function ar(i) {
|
|
|
2561
2552
|
var I = [v, o, g];
|
|
2562
2553
|
if (I.t = v, I.i18n = o, I.ready = g, g || !g && !c)
|
|
2563
2554
|
return I;
|
|
2564
|
-
throw new Promise(function(
|
|
2565
|
-
e.lng ?
|
|
2566
|
-
return
|
|
2567
|
-
}) :
|
|
2568
|
-
return
|
|
2555
|
+
throw new Promise(function(_) {
|
|
2556
|
+
e.lng ? gt(o, e.lng, p, function() {
|
|
2557
|
+
return _();
|
|
2558
|
+
}) : pt(o, p, function() {
|
|
2559
|
+
return _();
|
|
2569
2560
|
});
|
|
2570
2561
|
});
|
|
2571
2562
|
}
|
|
@@ -2576,11 +2567,11 @@ function or(i) {
|
|
|
2576
2567
|
defaultNS: t
|
|
2577
2568
|
};
|
|
2578
2569
|
}, [e, t]);
|
|
2579
|
-
return $.createElement(
|
|
2570
|
+
return $.createElement(Ut.Provider, {
|
|
2580
2571
|
value: r
|
|
2581
2572
|
}, n);
|
|
2582
2573
|
}
|
|
2583
|
-
var
|
|
2574
|
+
var Bt = [], sr = Bt.forEach, ur = Bt.slice;
|
|
2584
2575
|
function fr(i) {
|
|
2585
2576
|
return sr.call(ur.call(arguments, 1), function(e) {
|
|
2586
2577
|
if (e)
|
|
@@ -2599,7 +2590,7 @@ function lr() {
|
|
|
2599
2590
|
// refreshExpirationTime: 60 * 60 * 1000
|
|
2600
2591
|
};
|
|
2601
2592
|
}
|
|
2602
|
-
function
|
|
2593
|
+
function yt(i, e, t, n) {
|
|
2603
2594
|
var r = i.read.bind(i);
|
|
2604
2595
|
if (r.length === 2) {
|
|
2605
2596
|
try {
|
|
@@ -2614,7 +2605,7 @@ function bt(i, e, t, n) {
|
|
|
2614
2605
|
}
|
|
2615
2606
|
r(e, t, n);
|
|
2616
2607
|
}
|
|
2617
|
-
var
|
|
2608
|
+
var Ht = /* @__PURE__ */ function() {
|
|
2618
2609
|
function i(e) {
|
|
2619
2610
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
2620
2611
|
B(this, i), this.backends = [], this.type = "backend", this.allOptions = n, this.init(e, t);
|
|
@@ -2636,13 +2627,13 @@ var Mt = /* @__PURE__ */ function() {
|
|
|
2636
2627
|
if (c >= o)
|
|
2637
2628
|
return r(new Error("non of the backend loaded data", !0));
|
|
2638
2629
|
var f = c === o - 1, p = a.options.handleEmptyResourcesAsFailed && !f ? 0 : -1, g = a.backends[c];
|
|
2639
|
-
g.read ?
|
|
2630
|
+
g.read ? yt(g, t, n, function(b, y, w) {
|
|
2640
2631
|
if (!b && y && Object.keys(y).length > p) {
|
|
2641
2632
|
if (r(null, y, c), u(c - 1, y), g.save && a.options.cacheHitMode && ["refresh", "refreshAndUpdateStore"].indexOf(a.options.cacheHitMode) > -1) {
|
|
2642
2633
|
if (w && a.options.refreshExpirationTime && w + a.options.refreshExpirationTime > Date.now())
|
|
2643
2634
|
return;
|
|
2644
2635
|
var v = a.backends[c + 1];
|
|
2645
|
-
v && v.read &&
|
|
2636
|
+
v && v.read && yt(v, t, n, function(m, S) {
|
|
2646
2637
|
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)));
|
|
2647
2638
|
});
|
|
2648
2639
|
}
|
|
@@ -2704,17 +2695,17 @@ var Mt = /* @__PURE__ */ function() {
|
|
|
2704
2695
|
}
|
|
2705
2696
|
}]), i;
|
|
2706
2697
|
}();
|
|
2707
|
-
|
|
2708
|
-
function
|
|
2698
|
+
Ht.type = "backend";
|
|
2699
|
+
function Te(i) {
|
|
2709
2700
|
"@babel/helpers - typeof";
|
|
2710
|
-
return
|
|
2701
|
+
return Te = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
2711
2702
|
return typeof e;
|
|
2712
2703
|
} : function(e) {
|
|
2713
2704
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
2714
|
-
},
|
|
2705
|
+
}, Te(i);
|
|
2715
2706
|
}
|
|
2716
|
-
function
|
|
2717
|
-
return typeof XMLHttpRequest == "function" || (typeof XMLHttpRequest > "u" ? "undefined" :
|
|
2707
|
+
function Mt() {
|
|
2708
|
+
return typeof XMLHttpRequest == "function" || (typeof XMLHttpRequest > "u" ? "undefined" : Te(XMLHttpRequest)) === "object";
|
|
2718
2709
|
}
|
|
2719
2710
|
function dr(i) {
|
|
2720
2711
|
return !!i && typeof i.then == "function";
|
|
@@ -2725,9 +2716,9 @@ function pr(i) {
|
|
|
2725
2716
|
function gr(i) {
|
|
2726
2717
|
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.');
|
|
2727
2718
|
}
|
|
2728
|
-
var
|
|
2719
|
+
var De = { exports: {} }, ve = { exports: {} }, bt;
|
|
2729
2720
|
function hr() {
|
|
2730
|
-
return
|
|
2721
|
+
return bt || (bt = 1, function(i, e) {
|
|
2731
2722
|
var t = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof ce < "u" && ce, n = function() {
|
|
2732
2723
|
function a() {
|
|
2733
2724
|
this.fetch = !1, this.DOMException = t.DOMException;
|
|
@@ -2895,13 +2886,13 @@ function hr() {
|
|
|
2895
2886
|
throw new Error("could not read FormData body as text");
|
|
2896
2887
|
return Promise.resolve(this._bodyText);
|
|
2897
2888
|
}, u.formData && (this.formData = function() {
|
|
2898
|
-
return this.text().then(
|
|
2889
|
+
return this.text().then(C);
|
|
2899
2890
|
}), this.json = function() {
|
|
2900
2891
|
return this.text().then(JSON.parse);
|
|
2901
2892
|
}, this;
|
|
2902
2893
|
}
|
|
2903
2894
|
var I = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"];
|
|
2904
|
-
function
|
|
2895
|
+
function _(l) {
|
|
2905
2896
|
var h = l.toUpperCase();
|
|
2906
2897
|
return I.indexOf(h) > -1 ? h : l;
|
|
2907
2898
|
}
|
|
@@ -2916,7 +2907,7 @@ function hr() {
|
|
|
2916
2907
|
this.url = l.url, this.credentials = l.credentials, h.headers || (this.headers = new y(l.headers)), this.method = l.method, this.mode = l.mode, this.signal = l.signal, !O && l._bodyInit != null && (O = l._bodyInit, l.bodyUsed = !0);
|
|
2917
2908
|
} else
|
|
2918
2909
|
this.url = String(l);
|
|
2919
|
-
if (this.credentials = h.credentials || this.credentials || "same-origin", (h.headers || !this.headers) && (this.headers = new y(h.headers)), this.method =
|
|
2910
|
+
if (this.credentials = h.credentials || this.credentials || "same-origin", (h.headers || !this.headers) && (this.headers = new y(h.headers)), this.method = _(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)
|
|
2920
2911
|
throw new TypeError("Body not allowed for GET or HEAD requests");
|
|
2921
2912
|
if (this._initBody(O), (this.method === "GET" || this.method === "HEAD") && (h.cache === "no-store" || h.cache === "no-cache")) {
|
|
2922
2913
|
var j = /([?&])_=[^&]*/;
|
|
@@ -2931,7 +2922,7 @@ function hr() {
|
|
|
2931
2922
|
R.prototype.clone = function() {
|
|
2932
2923
|
return new R(this, { body: this._bodyInit });
|
|
2933
2924
|
};
|
|
2934
|
-
function
|
|
2925
|
+
function C(l) {
|
|
2935
2926
|
var h = new FormData();
|
|
2936
2927
|
return l.trim().split("&").forEach(function(O) {
|
|
2937
2928
|
if (O) {
|
|
@@ -3047,13 +3038,13 @@ function hr() {
|
|
|
3047
3038
|
var n = t || hr();
|
|
3048
3039
|
n.default && (n = n.default), e.default = n, i.exports = e.default;
|
|
3049
3040
|
}
|
|
3050
|
-
})(
|
|
3051
|
-
var
|
|
3052
|
-
const
|
|
3041
|
+
})(De, De.exports);
|
|
3042
|
+
var $t = De.exports;
|
|
3043
|
+
const qt = /* @__PURE__ */ Jt($t), wt = /* @__PURE__ */ Gt({
|
|
3053
3044
|
__proto__: null,
|
|
3054
|
-
default:
|
|
3055
|
-
}, [
|
|
3056
|
-
function
|
|
3045
|
+
default: qt
|
|
3046
|
+
}, [$t]);
|
|
3047
|
+
function Ot(i, e) {
|
|
3057
3048
|
var t = Object.keys(i);
|
|
3058
3049
|
if (Object.getOwnPropertySymbols) {
|
|
3059
3050
|
var n = Object.getOwnPropertySymbols(i);
|
|
@@ -3063,12 +3054,12 @@ function St(i, e) {
|
|
|
3063
3054
|
}
|
|
3064
3055
|
return t;
|
|
3065
3056
|
}
|
|
3066
|
-
function
|
|
3057
|
+
function St(i) {
|
|
3067
3058
|
for (var e = 1; e < arguments.length; e++) {
|
|
3068
3059
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
3069
|
-
e % 2 ?
|
|
3060
|
+
e % 2 ? Ot(Object(t), !0).forEach(function(n) {
|
|
3070
3061
|
vr(i, n, t[n]);
|
|
3071
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) :
|
|
3062
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : Ot(Object(t)).forEach(function(n) {
|
|
3072
3063
|
Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
|
|
3073
3064
|
});
|
|
3074
3065
|
}
|
|
@@ -3104,12 +3095,12 @@ function te(i) {
|
|
|
3104
3095
|
var ee = typeof fetch == "function" ? fetch : void 0;
|
|
3105
3096
|
typeof global < "u" && global.fetch ? ee = global.fetch : typeof window < "u" && window.fetch && (ee = window.fetch);
|
|
3106
3097
|
var le;
|
|
3107
|
-
|
|
3098
|
+
Mt() && (typeof global < "u" && global.XMLHttpRequest ? le = global.XMLHttpRequest : typeof window < "u" && window.XMLHttpRequest && (le = window.XMLHttpRequest));
|
|
3108
3099
|
var Oe;
|
|
3109
3100
|
typeof ActiveXObject == "function" && (typeof global < "u" && global.ActiveXObject ? Oe = global.ActiveXObject : typeof window < "u" && window.ActiveXObject && (Oe = window.ActiveXObject));
|
|
3110
|
-
!ee &&
|
|
3101
|
+
!ee && wt && !le && !Oe && (ee = qt || wt);
|
|
3111
3102
|
typeof ee != "function" && (ee = void 0);
|
|
3112
|
-
var
|
|
3103
|
+
var Ie = function(e, t) {
|
|
3113
3104
|
if (t && te(t) === "object") {
|
|
3114
3105
|
var n = "";
|
|
3115
3106
|
for (var r in t)
|
|
@@ -3119,7 +3110,7 @@ var Fe = function(e, t) {
|
|
|
3119
3110
|
e = e + (e.indexOf("?") !== -1 ? "&" : "?") + n.slice(1);
|
|
3120
3111
|
}
|
|
3121
3112
|
return e;
|
|
3122
|
-
},
|
|
3113
|
+
}, xt = function(e, t, n, r) {
|
|
3123
3114
|
var a = function(u) {
|
|
3124
3115
|
if (!u.ok)
|
|
3125
3116
|
return n(u.statusText || "Error", {
|
|
@@ -3140,30 +3131,30 @@ var Fe = function(e, t) {
|
|
|
3140
3131
|
}
|
|
3141
3132
|
}
|
|
3142
3133
|
typeof fetch == "function" ? fetch(e, t).then(a).catch(n) : ee(e, t).then(a).catch(n);
|
|
3143
|
-
},
|
|
3144
|
-
e.queryStringParams && (t =
|
|
3145
|
-
var a =
|
|
3134
|
+
}, Pt = !1, br = function(e, t, n, r) {
|
|
3135
|
+
e.queryStringParams && (t = Ie(t, e.queryStringParams));
|
|
3136
|
+
var a = St({}, typeof e.customHeaders == "function" ? e.customHeaders() : e.customHeaders);
|
|
3146
3137
|
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");
|
|
3147
|
-
var o = typeof e.requestOptions == "function" ? e.requestOptions(n) : e.requestOptions, s =
|
|
3138
|
+
var o = typeof e.requestOptions == "function" ? e.requestOptions(n) : e.requestOptions, s = St({
|
|
3148
3139
|
method: n ? "POST" : "GET",
|
|
3149
3140
|
body: n ? e.stringify(n) : void 0,
|
|
3150
3141
|
headers: a
|
|
3151
|
-
},
|
|
3142
|
+
}, Pt ? {} : o), u = typeof e.alternateFetch == "function" && e.alternateFetch.length >= 1 ? e.alternateFetch : void 0;
|
|
3152
3143
|
try {
|
|
3153
|
-
|
|
3144
|
+
xt(t, s, r, u);
|
|
3154
3145
|
} catch (d) {
|
|
3155
3146
|
if (!o || Object.keys(o).length === 0 || !d.message || d.message.indexOf("not implemented") < 0)
|
|
3156
3147
|
return r(d);
|
|
3157
3148
|
try {
|
|
3158
3149
|
Object.keys(o).forEach(function(c) {
|
|
3159
3150
|
delete s[c];
|
|
3160
|
-
}),
|
|
3151
|
+
}), xt(t, s, r, u), Pt = !0;
|
|
3161
3152
|
} catch (c) {
|
|
3162
3153
|
r(c);
|
|
3163
3154
|
}
|
|
3164
3155
|
}
|
|
3165
3156
|
}, wr = function(e, t, n, r) {
|
|
3166
|
-
n && te(n) === "object" && (n =
|
|
3157
|
+
n && te(n) === "object" && (n = Ie("", n).slice(1)), e.queryStringParams && (t = Ie(t, e.queryStringParams));
|
|
3167
3158
|
try {
|
|
3168
3159
|
var a;
|
|
3169
3160
|
le ? a = new le() : a = new Oe("MSXML2.XMLHTTP.3.0"), a.open(n ? "POST" : "GET", t, 1), e.crossDomain || a.setRequestHeader("X-Requested-With", "XMLHttpRequest"), a.withCredentials = !!e.withCredentials, n && a.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"), a.overrideMimeType && a.overrideMimeType("application/json");
|
|
@@ -3184,7 +3175,7 @@ var Fe = function(e, t) {
|
|
|
3184
3175
|
if (typeof n == "function" && (r = n, n = void 0), r = r || function() {
|
|
3185
3176
|
}, ee && t.indexOf("file:") !== 0)
|
|
3186
3177
|
return br(e, t, n, r);
|
|
3187
|
-
if (
|
|
3178
|
+
if (Mt() || typeof ActiveXObject == "function")
|
|
3188
3179
|
return wr(e, t, n, r);
|
|
3189
3180
|
r(new Error("No fetch and no xhr implementation found!"));
|
|
3190
3181
|
};
|
|
@@ -3196,7 +3187,7 @@ function ae(i) {
|
|
|
3196
3187
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
3197
3188
|
}, ae(i);
|
|
3198
3189
|
}
|
|
3199
|
-
function
|
|
3190
|
+
function jt(i, e) {
|
|
3200
3191
|
var t = Object.keys(i);
|
|
3201
3192
|
if (Object.getOwnPropertySymbols) {
|
|
3202
3193
|
var n = Object.getOwnPropertySymbols(i);
|
|
@@ -3206,12 +3197,12 @@ function kt(i, e) {
|
|
|
3206
3197
|
}
|
|
3207
3198
|
return t;
|
|
3208
3199
|
}
|
|
3209
|
-
function
|
|
3200
|
+
function _e(i) {
|
|
3210
3201
|
for (var e = 1; e < arguments.length; e++) {
|
|
3211
3202
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
3212
|
-
e % 2 ?
|
|
3213
|
-
|
|
3214
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) :
|
|
3203
|
+
e % 2 ? jt(Object(t), !0).forEach(function(n) {
|
|
3204
|
+
Kt(i, n, t[n]);
|
|
3205
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : jt(Object(t)).forEach(function(n) {
|
|
3215
3206
|
Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
|
|
3216
3207
|
});
|
|
3217
3208
|
}
|
|
@@ -3224,16 +3215,16 @@ function Sr(i, e) {
|
|
|
3224
3215
|
function xr(i, e) {
|
|
3225
3216
|
for (var t = 0; t < e.length; t++) {
|
|
3226
3217
|
var n = e[t];
|
|
3227
|
-
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(i,
|
|
3218
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(i, Vt(n.key), n);
|
|
3228
3219
|
}
|
|
3229
3220
|
}
|
|
3230
3221
|
function Pr(i, e, t) {
|
|
3231
3222
|
return e && xr(i.prototype, e), Object.defineProperty(i, "prototype", { writable: !1 }), i;
|
|
3232
3223
|
}
|
|
3233
|
-
function
|
|
3234
|
-
return (e =
|
|
3224
|
+
function Kt(i, e, t) {
|
|
3225
|
+
return (e = Vt(e)) in i ? Object.defineProperty(i, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : i[e] = t, i;
|
|
3235
3226
|
}
|
|
3236
|
-
function
|
|
3227
|
+
function Vt(i) {
|
|
3237
3228
|
var e = jr(i, "string");
|
|
3238
3229
|
return ae(e) == "symbol" ? e : e + "";
|
|
3239
3230
|
}
|
|
@@ -3258,7 +3249,7 @@ var kr = function() {
|
|
|
3258
3249
|
},
|
|
3259
3250
|
stringify: JSON.stringify,
|
|
3260
3251
|
parsePayload: function(t, n, r) {
|
|
3261
|
-
return
|
|
3252
|
+
return Kt({}, n, r || "");
|
|
3262
3253
|
},
|
|
3263
3254
|
parseLoadPayload: function(t, n) {
|
|
3264
3255
|
},
|
|
@@ -3275,7 +3266,7 @@ var kr = function() {
|
|
|
3275
3266
|
cache: "default"
|
|
3276
3267
|
}
|
|
3277
3268
|
};
|
|
3278
|
-
},
|
|
3269
|
+
}, zt = function() {
|
|
3279
3270
|
function i(e) {
|
|
3280
3271
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
3281
3272
|
Sr(this, i), this.services = e, this.options = t, this.allOptions = n, this.type = "backend", this.init(e, t, n);
|
|
@@ -3284,7 +3275,7 @@ var kr = function() {
|
|
|
3284
3275
|
key: "init",
|
|
3285
3276
|
value: function(t) {
|
|
3286
3277
|
var n = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
3287
|
-
if (this.services = t, this.options =
|
|
3278
|
+
if (this.services = t, this.options = _e(_e(_e({}, kr()), this.options || {}), r), this.allOptions = a, this.services && this.options.reloadInterval) {
|
|
3288
3279
|
var o = setInterval(function() {
|
|
3289
3280
|
return n.reload();
|
|
3290
3281
|
}, this.options.reloadInterval);
|
|
@@ -3388,13 +3379,13 @@ var kr = function() {
|
|
|
3388
3379
|
}
|
|
3389
3380
|
}]);
|
|
3390
3381
|
}();
|
|
3391
|
-
|
|
3382
|
+
zt.type = "backend";
|
|
3392
3383
|
var Lr = /* @__PURE__ */ ((i) => (i.en = "en", i.de = "de", i))(Lr || {});
|
|
3393
3384
|
const Rr = {
|
|
3394
3385
|
en: "English",
|
|
3395
3386
|
de: "German"
|
|
3396
3387
|
};
|
|
3397
|
-
N.use(
|
|
3388
|
+
N.use(Ht).use(er).use(Dt).init({
|
|
3398
3389
|
// defaultNS: "translation",
|
|
3399
3390
|
// resources,
|
|
3400
3391
|
initImmediate: !0,
|
|
@@ -3407,7 +3398,7 @@ N.use(Mt).use(er).use(It).init({
|
|
|
3407
3398
|
escapeValue: !1
|
|
3408
3399
|
},
|
|
3409
3400
|
backend: {
|
|
3410
|
-
backends: [
|
|
3401
|
+
backends: [zt],
|
|
3411
3402
|
backendOptions: [
|
|
3412
3403
|
{
|
|
3413
3404
|
// loadPath: 'https://ukpcsaprod.blob.core.windows.net/lib/translations/{{lng}}/{{ns}}.json',
|
|
@@ -3433,7 +3424,7 @@ const me = {
|
|
|
3433
3424
|
}, Er = () => {
|
|
3434
3425
|
const { t: i } = ar();
|
|
3435
3426
|
return /* @__PURE__ */ E.jsx("div", { className: "unauth__container " + me["page-container"], children: /* @__PURE__ */ E.jsxs("div", { className: "unauth__main-content " + me["page-main-content"], children: [
|
|
3436
|
-
/* @__PURE__ */ E.jsx(
|
|
3427
|
+
/* @__PURE__ */ E.jsx(Cr, {}),
|
|
3437
3428
|
/* @__PURE__ */ E.jsxs("div", { className: "unauth__main-text", children: [
|
|
3438
3429
|
/* @__PURE__ */ E.jsx("h2", { className: "unauth__main-text__title " + me["page-title"], children: i("components.unauthorizedPage.title") }),
|
|
3439
3430
|
/* @__PURE__ */ E.jsxs("p", { className: "unauth__main-text__desc " + me["text-base"], children: [
|
|
@@ -3445,7 +3436,7 @@ const me = {
|
|
|
3445
3436
|
] })
|
|
3446
3437
|
] })
|
|
3447
3438
|
] }) });
|
|
3448
|
-
},
|
|
3439
|
+
}, Cr = () => /* @__PURE__ */ E.jsxs(
|
|
3449
3440
|
"svg",
|
|
3450
3441
|
{
|
|
3451
3442
|
width: "61",
|
|
@@ -3520,19 +3511,17 @@ const me = {
|
|
|
3520
3511
|
]
|
|
3521
3512
|
}
|
|
3522
3513
|
);
|
|
3523
|
-
function
|
|
3514
|
+
function _r() {
|
|
3524
3515
|
return /* @__PURE__ */ E.jsx(or, { i18n: N, children: /* @__PURE__ */ E.jsx(Er, {}) });
|
|
3525
3516
|
}
|
|
3526
3517
|
{
|
|
3527
|
-
const i =
|
|
3518
|
+
const i = Xt(_r);
|
|
3528
3519
|
customElements.define("access-denied", i);
|
|
3529
3520
|
}
|
|
3530
3521
|
export {
|
|
3531
3522
|
or as I,
|
|
3532
3523
|
Lr as L,
|
|
3533
3524
|
Er as U,
|
|
3534
|
-
Ne as _,
|
|
3535
|
-
Y as a,
|
|
3536
3525
|
N as i,
|
|
3537
|
-
|
|
3526
|
+
Tr as t
|
|
3538
3527
|
};
|