@invoice-sdk/widget 1.117.1 → 1.117.3
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/{index-TWFbGebD.js → index-C0svoYBT.js} +386 -351
- package/dist/{index-BWxjs_7n.js → index-CeiOdPnU.js} +672 -672
- package/dist/index.esm.js +1 -1
- package/dist/index.umd.js +95 -95
- package/dist/{loading-DzLDwR0A.js → loading-rwAF7i1q.js} +2 -2
- package/dist/{widget-C5goKFKI.js → widget-DirvUEFw.js} +2 -2
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ var Vt = Object.defineProperty, $t = Object.defineProperties;
|
|
|
2
2
|
var _t = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Je = Object.getOwnPropertySymbols;
|
|
4
4
|
var Ai = Object.prototype.hasOwnProperty, ei = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var eA = (e, A) => (A = Symbol[e]) ? A : Symbol.for("Symbol." + e), ti = (e) => {
|
|
6
6
|
throw TypeError(e);
|
|
7
7
|
};
|
|
8
8
|
var ye = (e, A, t) => A in e ? Vt(e, A, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[A] = t, l = (e, A) => {
|
|
@@ -28,37 +28,37 @@ var v = (e, A, t) => new Promise((i, n) => {
|
|
|
28
28
|
}
|
|
29
29
|
}, C = (s) => s.done ? i(s.value) : Promise.resolve(s.value).then(o, r);
|
|
30
30
|
C((t = t.apply(e, A)).next());
|
|
31
|
-
}),
|
|
31
|
+
}), X = function(e, A) {
|
|
32
32
|
this[0] = e, this[1] = A;
|
|
33
33
|
}, UA = (e, A, t) => {
|
|
34
34
|
var i = (r, C, s, a) => {
|
|
35
35
|
try {
|
|
36
|
-
var I = t[r](C), g = (C = I.value) instanceof
|
|
36
|
+
var I = t[r](C), g = (C = I.value) instanceof X, B = I.done;
|
|
37
37
|
Promise.resolve(g ? C[0] : C).then((Q) => g ? i(r === "return" ? r : "next", C[1] ? { done: Q.done, value: Q.value } : Q, s, a) : s({ value: Q, done: B })).catch((Q) => i("throw", Q, s, a));
|
|
38
38
|
} catch (Q) {
|
|
39
39
|
a(Q);
|
|
40
40
|
}
|
|
41
41
|
}, n = (r) => o[r] = (C) => new Promise((s, a) => i(r, C, s, a)), o = {};
|
|
42
|
-
return t = t.apply(e, A), o[
|
|
42
|
+
return t = t.apply(e, A), o[eA("asyncIterator")] = () => o, n("next"), n("throw"), n("return"), o;
|
|
43
43
|
}, WA = (e) => {
|
|
44
|
-
var A = e[
|
|
45
|
-
return A == null ? (A = e[
|
|
44
|
+
var A = e[eA("asyncIterator")], t = !1, i, n = {};
|
|
45
|
+
return A == null ? (A = e[eA("iterator")](), i = (o) => n[o] = (r) => A[o](r)) : (A = A.call(e), i = (o) => n[o] = (r) => {
|
|
46
46
|
if (t) {
|
|
47
47
|
if (t = !1, o === "throw") throw r;
|
|
48
48
|
return r;
|
|
49
49
|
}
|
|
50
50
|
return t = !0, {
|
|
51
51
|
done: !1,
|
|
52
|
-
value: new
|
|
52
|
+
value: new X(new Promise((C) => {
|
|
53
53
|
var s = A[o](r);
|
|
54
54
|
s instanceof Object || ti("Object expected"), C(s);
|
|
55
55
|
}), 1)
|
|
56
56
|
};
|
|
57
|
-
}), n[
|
|
57
|
+
}), n[eA("iterator")] = () => n, i("next"), "throw" in A ? i("throw") : n.throw = (o) => {
|
|
58
58
|
throw o;
|
|
59
59
|
}, "return" in A && i("return"), n;
|
|
60
|
-
}, ze = (e, A, t) => (A = e[
|
|
61
|
-
const h = (e) => typeof e == "string",
|
|
60
|
+
}, ze = (e, A, t) => (A = e[eA("asyncIterator")]) ? A.call(e) : (e = e[eA("iterator")](), A = {}, t = (i, n) => (n = e[i]) && (A[i] = (o) => new Promise((r, C, s) => (o = n.call(e, o), s = o.done, Promise.resolve(o.value).then((a) => r({ value: a, done: s }), C)))), t("next"), t("return"), A);
|
|
61
|
+
const h = (e) => typeof e == "string", gA = () => {
|
|
62
62
|
let e, A;
|
|
63
63
|
const t = new Promise((i, n) => {
|
|
64
64
|
e = i, A = n;
|
|
@@ -68,7 +68,7 @@ const h = (e) => typeof e == "string", EA = () => {
|
|
|
68
68
|
e.forEach((i) => {
|
|
69
69
|
A[i] && (t[i] = A[i]);
|
|
70
70
|
});
|
|
71
|
-
}, ni = /###/g, Ke = (e) => e && e.indexOf("###") > -1 ? e.replace(ni, ".") : e, ve = (e) => !e || h(e),
|
|
71
|
+
}, ni = /###/g, Ke = (e) => e && e.indexOf("###") > -1 ? e.replace(ni, ".") : e, ve = (e) => !e || h(e), QA = (e, A, t) => {
|
|
72
72
|
const i = h(A) ? A.split(".") : A;
|
|
73
73
|
let n = 0;
|
|
74
74
|
for (; n < i.length - 1; ) {
|
|
@@ -84,36 +84,36 @@ const h = (e) => typeof e == "string", EA = () => {
|
|
|
84
84
|
const {
|
|
85
85
|
obj: i,
|
|
86
86
|
k: n
|
|
87
|
-
} =
|
|
87
|
+
} = QA(e, A, Object);
|
|
88
88
|
if (i !== void 0 || A.length === 1) {
|
|
89
89
|
i[n] = t;
|
|
90
90
|
return;
|
|
91
91
|
}
|
|
92
|
-
let o = A[A.length - 1], r = A.slice(0, A.length - 1), C =
|
|
92
|
+
let o = A[A.length - 1], r = A.slice(0, A.length - 1), C = QA(e, r, Object);
|
|
93
93
|
for (; C.obj === void 0 && r.length; )
|
|
94
|
-
o = `${r[r.length - 1]}.${o}`, r = r.slice(0, r.length - 1), C =
|
|
94
|
+
o = `${r[r.length - 1]}.${o}`, r = r.slice(0, r.length - 1), C = QA(e, r, Object), C != null && C.obj && typeof C.obj[`${C.k}.${o}`] != "undefined" && (C.obj = void 0);
|
|
95
95
|
C.obj[`${C.k}.${o}`] = t;
|
|
96
96
|
}, oi = (e, A, t, i) => {
|
|
97
97
|
const {
|
|
98
98
|
obj: n,
|
|
99
99
|
k: o
|
|
100
|
-
} =
|
|
100
|
+
} = QA(e, A, Object);
|
|
101
101
|
n[o] = n[o] || [], n[o].push(t);
|
|
102
|
-
},
|
|
102
|
+
}, kA = (e, A) => {
|
|
103
103
|
const {
|
|
104
104
|
obj: t,
|
|
105
105
|
k: i
|
|
106
|
-
} =
|
|
106
|
+
} = QA(e, A);
|
|
107
107
|
if (t && Object.prototype.hasOwnProperty.call(t, i))
|
|
108
108
|
return t[i];
|
|
109
109
|
}, ri = (e, A, t) => {
|
|
110
|
-
const i =
|
|
111
|
-
return i !== void 0 ? i :
|
|
110
|
+
const i = kA(e, t);
|
|
111
|
+
return i !== void 0 ? i : kA(A, t);
|
|
112
112
|
}, Qt = (e, A, t) => {
|
|
113
113
|
for (const i in A)
|
|
114
114
|
i !== "__proto__" && i !== "constructor" && (i in e ? h(e[i]) || e[i] instanceof String || h(A[i]) || A[i] instanceof String ? t && (e[i] = A[i]) : Qt(e[i], A[i], t) : e[i] = A[i]);
|
|
115
115
|
return e;
|
|
116
|
-
},
|
|
116
|
+
}, tA = (e) => e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
117
117
|
var Ci = {
|
|
118
118
|
"&": "&",
|
|
119
119
|
"<": "<",
|
|
@@ -166,7 +166,7 @@ const Ii = [" ", ",", "?", "!", ";"], gi = new ai(20), Ei = (e, A, t) => {
|
|
|
166
166
|
n = r;
|
|
167
167
|
}
|
|
168
168
|
return n;
|
|
169
|
-
},
|
|
169
|
+
}, uA = (e) => e == null ? void 0 : e.replace("_", "-"), ci = {
|
|
170
170
|
type: "logger",
|
|
171
171
|
log(e) {
|
|
172
172
|
this.output("log", e);
|
|
@@ -182,7 +182,7 @@ const Ii = [" ", ",", "?", "!", ";"], gi = new ai(20), Ei = (e, A, t) => {
|
|
|
182
182
|
(i = (t = console == null ? void 0 : console[e]) == null ? void 0 : t.apply) == null || i.call(t, console, A);
|
|
183
183
|
}
|
|
184
184
|
};
|
|
185
|
-
class
|
|
185
|
+
class DA {
|
|
186
186
|
constructor(A, t = {}) {
|
|
187
187
|
this.init(A, t);
|
|
188
188
|
}
|
|
@@ -205,16 +205,16 @@ class RA {
|
|
|
205
205
|
return n && !this.debug ? null : (h(A[0]) && (A[0] = `${i}${this.prefix} ${A[0]}`), this.logger[t](A));
|
|
206
206
|
}
|
|
207
207
|
create(A) {
|
|
208
|
-
return new
|
|
208
|
+
return new DA(this.logger, l({
|
|
209
209
|
prefix: `${this.prefix}:${A}:`
|
|
210
210
|
}, this.options));
|
|
211
211
|
}
|
|
212
212
|
clone(A) {
|
|
213
|
-
return A = A || this.options, A.prefix = A.prefix || this.prefix, new
|
|
213
|
+
return A = A || this.options, A.prefix = A.prefix || this.prefix, new DA(this.logger, A);
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
|
-
var
|
|
217
|
-
class
|
|
216
|
+
var F = new DA();
|
|
217
|
+
class HA {
|
|
218
218
|
constructor() {
|
|
219
219
|
this.observers = {};
|
|
220
220
|
}
|
|
@@ -244,7 +244,7 @@ class jA {
|
|
|
244
244
|
});
|
|
245
245
|
}
|
|
246
246
|
}
|
|
247
|
-
class De extends
|
|
247
|
+
class De extends HA {
|
|
248
248
|
constructor(A, t = {
|
|
249
249
|
ns: ["translation"],
|
|
250
250
|
defaultNS: "translation"
|
|
@@ -263,7 +263,7 @@ class De extends jA {
|
|
|
263
263
|
const o = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator, r = n.ignoreJSONStructure !== void 0 ? n.ignoreJSONStructure : this.options.ignoreJSONStructure;
|
|
264
264
|
let C;
|
|
265
265
|
A.indexOf(".") > -1 ? C = A.split(".") : (C = [A, t], i && (Array.isArray(i) ? C.push(...i) : h(i) && o ? C.push(...i.split(o)) : C.push(i)));
|
|
266
|
-
const s =
|
|
266
|
+
const s = kA(this.data, C);
|
|
267
267
|
return !s && !t && !i && A.indexOf(".") > -1 && (A = C[0], t = C[1], i = C.slice(2).join(".")), s || !r || !h(i) ? s : oe((I = (a = this.data) == null ? void 0 : a[A]) == null ? void 0 : I[t], i, o);
|
|
268
268
|
}
|
|
269
269
|
addResource(A, t, i, n, o = {
|
|
@@ -288,7 +288,7 @@ class De extends jA {
|
|
|
288
288
|
}) {
|
|
289
289
|
let C = [A, t];
|
|
290
290
|
A.indexOf(".") > -1 && (C = A.split("."), n = i, i = t, t = C[1]), this.addNamespaces(t);
|
|
291
|
-
let s =
|
|
291
|
+
let s = kA(this.data, C) || {};
|
|
292
292
|
r.skipCopy || (i = JSON.parse(JSON.stringify(i))), n ? Qt(s, i, o) : s = l(l({}, s), i), ke(this.data, C, s), r.silent || this.emit("added", A, t, i);
|
|
293
293
|
}
|
|
294
294
|
removeResourceBundle(A, t) {
|
|
@@ -324,9 +324,9 @@ var Bt = {
|
|
|
324
324
|
}
|
|
325
325
|
};
|
|
326
326
|
const Re = {}, Le = (e) => !h(e) && typeof e != "boolean" && typeof e != "number";
|
|
327
|
-
class
|
|
327
|
+
class RA extends HA {
|
|
328
328
|
constructor(A, t = {}) {
|
|
329
|
-
super(), ii(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], A, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger =
|
|
329
|
+
super(), ii(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], A, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = F.create("translator");
|
|
330
330
|
}
|
|
331
331
|
changeLanguage(A) {
|
|
332
332
|
A && (this.language = A);
|
|
@@ -388,71 +388,71 @@ class LA extends jA {
|
|
|
388
388
|
usedParams: this.getUsedParamsDetails(n)
|
|
389
389
|
} : C;
|
|
390
390
|
const Q = this.resolve(A, n);
|
|
391
|
-
let
|
|
392
|
-
const
|
|
391
|
+
let E = Q == null ? void 0 : Q.res;
|
|
392
|
+
const u = (Q == null ? void 0 : Q.usedKey) || C, d = (Q == null ? void 0 : Q.exactUsedKey) || C, q = ["[object Number]", "[object Function]", "[object RegExp]"], m = n.joinArrays !== void 0 ? n.joinArrays : this.options.joinArrays, w = !this.i18nFormat || this.i18nFormat.handleAsObject, J = n.count !== void 0 && !h(n.count), M = RA.hasDefaultValue(n), D = J ? this.pluralResolver.getSuffix(g, n.count, n) : "", z = n.ordinal && J ? this.pluralResolver.getSuffix(g, n.count, {
|
|
393
393
|
ordinal: !1
|
|
394
|
-
}) : "",
|
|
395
|
-
let k =
|
|
396
|
-
w && !
|
|
397
|
-
const
|
|
398
|
-
if (w && k &&
|
|
394
|
+
}) : "", j = J && !n.ordinal && n.count === 0, K = j && n[`defaultValue${this.options.pluralSeparator}zero`] || n[`defaultValue${D}`] || n[`defaultValue${z}`] || n.defaultValue;
|
|
395
|
+
let k = E;
|
|
396
|
+
w && !E && M && (k = K);
|
|
397
|
+
const ZA = Le(k), W = Object.prototype.toString.apply(k);
|
|
398
|
+
if (w && k && ZA && q.indexOf(W) < 0 && !(h(m) && Array.isArray(k))) {
|
|
399
399
|
if (!n.returnObjects && !this.options.returnObjects) {
|
|
400
400
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
401
|
-
const
|
|
401
|
+
const f = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(u, k, L(l({}, n), {
|
|
402
402
|
ns: s
|
|
403
403
|
})) : `key '${C} (${this.language})' returned an object instead of string.`;
|
|
404
|
-
return o ? (Q.res =
|
|
404
|
+
return o ? (Q.res = f, Q.usedParams = this.getUsedParamsDetails(n), Q) : f;
|
|
405
405
|
}
|
|
406
406
|
if (r) {
|
|
407
|
-
const
|
|
408
|
-
for (const
|
|
409
|
-
if (Object.prototype.hasOwnProperty.call(k,
|
|
410
|
-
const
|
|
411
|
-
|
|
412
|
-
defaultValue: Le(K) ? K[
|
|
407
|
+
const f = Array.isArray(k), N = f ? [] : {}, qe = f ? d : u;
|
|
408
|
+
for (const x in k)
|
|
409
|
+
if (Object.prototype.hasOwnProperty.call(k, x)) {
|
|
410
|
+
const Z = `${qe}${r}${x}`;
|
|
411
|
+
M && !E ? N[x] = this.translate(Z, L(l({}, n), {
|
|
412
|
+
defaultValue: Le(K) ? K[x] : void 0,
|
|
413
413
|
joinArrays: !1,
|
|
414
414
|
ns: s
|
|
415
|
-
})) :
|
|
415
|
+
})) : N[x] = this.translate(Z, L(l({}, n), {
|
|
416
416
|
joinArrays: !1,
|
|
417
417
|
ns: s
|
|
418
|
-
})),
|
|
418
|
+
})), N[x] === Z && (N[x] = k[x]);
|
|
419
419
|
}
|
|
420
|
-
|
|
420
|
+
E = N;
|
|
421
421
|
}
|
|
422
|
-
} else if (w && h(
|
|
423
|
-
|
|
422
|
+
} else if (w && h(m) && Array.isArray(E))
|
|
423
|
+
E = E.join(m), E && (E = this.extendTranslation(E, A, n, i));
|
|
424
424
|
else {
|
|
425
|
-
let
|
|
426
|
-
!this.isValidLookup(
|
|
427
|
-
const
|
|
428
|
-
if (
|
|
429
|
-
if (this.logger.log(
|
|
430
|
-
const
|
|
425
|
+
let f = !1, N = !1;
|
|
426
|
+
!this.isValidLookup(E) && M && (f = !0, E = K), this.isValidLookup(E) || (N = !0, E = C);
|
|
427
|
+
const x = (n.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && N ? void 0 : E, Z = M && K !== E && this.options.updateMissing;
|
|
428
|
+
if (N || f || Z) {
|
|
429
|
+
if (this.logger.log(Z ? "updateKey" : "missingKey", g, a, C, Z ? K : E), r) {
|
|
430
|
+
const Y = this.resolve(C, L(l({}, n), {
|
|
431
431
|
keySeparator: !1
|
|
432
432
|
}));
|
|
433
|
-
|
|
433
|
+
Y && Y.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.");
|
|
434
434
|
}
|
|
435
|
-
let
|
|
436
|
-
const
|
|
437
|
-
if (this.options.saveMissingTo === "fallback" &&
|
|
438
|
-
for (let
|
|
439
|
-
|
|
440
|
-
else this.options.saveMissingTo === "all" ?
|
|
441
|
-
const fe = (
|
|
435
|
+
let aA = [];
|
|
436
|
+
const wA = this.languageUtils.getFallbackCodes(this.options.fallbackLng, n.lng || this.language);
|
|
437
|
+
if (this.options.saveMissingTo === "fallback" && wA && wA[0])
|
|
438
|
+
for (let Y = 0; Y < wA.length; Y++)
|
|
439
|
+
aA.push(wA[Y]);
|
|
440
|
+
else this.options.saveMissingTo === "all" ? aA = this.languageUtils.toResolveHierarchy(n.lng || this.language) : aA.push(n.lng || this.language);
|
|
441
|
+
const fe = (Y, T, IA) => {
|
|
442
442
|
var Me;
|
|
443
|
-
const we =
|
|
444
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(
|
|
443
|
+
const we = M && IA !== E ? IA : x;
|
|
444
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(Y, a, T, we, Z, n) : (Me = this.backendConnector) != null && Me.saveMissing && this.backendConnector.saveMissing(Y, a, T, we, Z, n), this.emit("missingKey", Y, a, T, E);
|
|
445
445
|
};
|
|
446
|
-
this.options.saveMissing && (this.options.saveMissingPlurals &&
|
|
447
|
-
const
|
|
448
|
-
|
|
449
|
-
fe([
|
|
446
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && J ? aA.forEach((Y) => {
|
|
447
|
+
const T = this.pluralResolver.getSuffixes(Y, n);
|
|
448
|
+
j && n[`defaultValue${this.options.pluralSeparator}zero`] && T.indexOf(`${this.options.pluralSeparator}zero`) < 0 && T.push(`${this.options.pluralSeparator}zero`), T.forEach((IA) => {
|
|
449
|
+
fe([Y], C + IA, n[`defaultValue${IA}`] || K);
|
|
450
450
|
});
|
|
451
|
-
}) : fe(
|
|
451
|
+
}) : fe(aA, C, K));
|
|
452
452
|
}
|
|
453
|
-
|
|
453
|
+
E = this.extendTranslation(E, A, n, Q, i), N && E === C && this.options.appendNamespaceToMissingKey && (E = `${a}${I}${C}`), (N || f) && this.options.parseMissingKeyHandler && (E = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${a}${I}${C}` : C, f ? E : void 0, n));
|
|
454
454
|
}
|
|
455
|
-
return o ? (Q.res =
|
|
455
|
+
return o ? (Q.res = E, Q.usedParams = this.getUsedParamsDetails(n), Q) : E;
|
|
456
456
|
}
|
|
457
457
|
extendTranslation(A, t, i, n, o) {
|
|
458
458
|
var s, a;
|
|
@@ -472,8 +472,8 @@ class LA extends jA {
|
|
|
472
472
|
}
|
|
473
473
|
let B = i.replace && !h(i.replace) ? i.replace : i;
|
|
474
474
|
if (this.options.interpolation.defaultVariables && (B = l(l({}, this.options.interpolation.defaultVariables), B)), A = this.interpolator.interpolate(A, B, i.lng || this.language || n.usedLng, i), I) {
|
|
475
|
-
const Q = A.match(this.interpolator.nestingRegexp),
|
|
476
|
-
g <
|
|
475
|
+
const Q = A.match(this.interpolator.nestingRegexp), E = Q && Q.length;
|
|
476
|
+
g < E && (i.nest = !1);
|
|
477
477
|
}
|
|
478
478
|
!i.lng && n && n.res && (i.lng = this.language || n.usedLng), i.nest !== !1 && (A = this.interpolator.nest(A, (...Q) => (o == null ? void 0 : o[0]) === Q[0] && !i.context ? (this.logger.warn(`It seems you are nesting recursively key: ${Q[0]} in key: ${t[0]}`), null) : this.translate(...Q, t), i)), i.interpolation && this.interpolator.reset();
|
|
479
479
|
}
|
|
@@ -492,28 +492,28 @@ class LA extends jA {
|
|
|
492
492
|
n = I;
|
|
493
493
|
let g = a.namespaces;
|
|
494
494
|
this.options.fallbackNS && (g = g.concat(this.options.fallbackNS));
|
|
495
|
-
const B = t.count !== void 0 && !h(t.count), Q = B && !t.ordinal && t.count === 0,
|
|
496
|
-
g.forEach((
|
|
497
|
-
var
|
|
498
|
-
this.isValidLookup(i) || (C =
|
|
495
|
+
const B = t.count !== void 0 && !h(t.count), Q = B && !t.ordinal && t.count === 0, E = t.context !== void 0 && (h(t.context) || typeof t.context == "number") && t.context !== "", u = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
|
|
496
|
+
g.forEach((d) => {
|
|
497
|
+
var q, m;
|
|
498
|
+
this.isValidLookup(i) || (C = d, !Re[`${u[0]}-${d}`] && ((q = this.utils) != null && q.hasLoadedNamespace) && !((m = this.utils) != null && m.hasLoadedNamespace(C)) && (Re[`${u[0]}-${d}`] = !0, this.logger.warn(`key "${n}" for languages "${u.join(", ")}" won't get resolved as namespace "${C}" 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!!!")), u.forEach((w) => {
|
|
499
499
|
var D;
|
|
500
500
|
if (this.isValidLookup(i)) return;
|
|
501
501
|
r = w;
|
|
502
|
-
const
|
|
502
|
+
const J = [I];
|
|
503
503
|
if ((D = this.i18nFormat) != null && D.addLookupKeys)
|
|
504
|
-
this.i18nFormat.addLookupKeys(
|
|
504
|
+
this.i18nFormat.addLookupKeys(J, I, w, d, t);
|
|
505
505
|
else {
|
|
506
506
|
let z;
|
|
507
507
|
B && (z = this.pluralResolver.getSuffix(w, t.count, t));
|
|
508
|
-
const
|
|
509
|
-
if (B && (
|
|
508
|
+
const j = `${this.options.pluralSeparator}zero`, K = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
509
|
+
if (B && (J.push(I + z), t.ordinal && z.indexOf(K) === 0 && J.push(I + z.replace(K, this.options.pluralSeparator)), Q && J.push(I + j)), E) {
|
|
510
510
|
const k = `${I}${this.options.contextSeparator}${t.context}`;
|
|
511
|
-
|
|
511
|
+
J.push(k), B && (J.push(k + z), t.ordinal && z.indexOf(K) === 0 && J.push(k + z.replace(K, this.options.pluralSeparator)), Q && J.push(k + j));
|
|
512
512
|
}
|
|
513
513
|
}
|
|
514
|
-
let
|
|
515
|
-
for (;
|
|
516
|
-
this.isValidLookup(i) || (o =
|
|
514
|
+
let M;
|
|
515
|
+
for (; M = J.pop(); )
|
|
516
|
+
this.isValidLookup(i) || (o = M, i = this.getResource(w, d, M, t));
|
|
517
517
|
}));
|
|
518
518
|
});
|
|
519
519
|
}), {
|
|
@@ -549,17 +549,17 @@ class LA extends jA {
|
|
|
549
549
|
return !1;
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
|
-
class
|
|
552
|
+
class Ge {
|
|
553
553
|
constructor(A) {
|
|
554
|
-
this.options = A, this.supportedLngs = this.options.supportedLngs || !1, this.logger =
|
|
554
|
+
this.options = A, this.supportedLngs = this.options.supportedLngs || !1, this.logger = F.create("languageUtils");
|
|
555
555
|
}
|
|
556
556
|
getScriptPartFromCode(A) {
|
|
557
|
-
if (A =
|
|
557
|
+
if (A = uA(A), !A || A.indexOf("-") < 0) return null;
|
|
558
558
|
const t = A.split("-");
|
|
559
559
|
return t.length === 2 || (t.pop(), t[t.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(t.join("-"));
|
|
560
560
|
}
|
|
561
561
|
getLanguagePartFromCode(A) {
|
|
562
|
-
if (A =
|
|
562
|
+
if (A = uA(A), !A || A.indexOf("-") < 0) return A;
|
|
563
563
|
const t = A.split("-");
|
|
564
564
|
return this.formatLanguageCode(t[0]);
|
|
565
565
|
}
|
|
@@ -613,7 +613,7 @@ class Oe {
|
|
|
613
613
|
}), n;
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
|
-
const
|
|
616
|
+
const Oe = {
|
|
617
617
|
zero: 0,
|
|
618
618
|
one: 1,
|
|
619
619
|
two: 2,
|
|
@@ -628,7 +628,7 @@ const Ge = {
|
|
|
628
628
|
};
|
|
629
629
|
class Qi {
|
|
630
630
|
constructor(A, t = {}) {
|
|
631
|
-
this.languageUtils = A, this.options = t, this.logger =
|
|
631
|
+
this.languageUtils = A, this.options = t, this.logger = F.create("pluralResolver"), this.pluralRulesCache = {};
|
|
632
632
|
}
|
|
633
633
|
addRule(A, t) {
|
|
634
634
|
this.rules[A] = t;
|
|
@@ -637,7 +637,7 @@ class Qi {
|
|
|
637
637
|
this.pluralRulesCache = {};
|
|
638
638
|
}
|
|
639
639
|
getRule(A, t = {}) {
|
|
640
|
-
const i =
|
|
640
|
+
const i = uA(A === "dev" ? "en" : A), n = t.ordinal ? "ordinal" : "cardinal", o = JSON.stringify({
|
|
641
641
|
cleanedCode: i,
|
|
642
642
|
type: n
|
|
643
643
|
});
|
|
@@ -666,7 +666,7 @@ class Qi {
|
|
|
666
666
|
}
|
|
667
667
|
getSuffixes(A, t = {}) {
|
|
668
668
|
let i = this.getRule(A, t);
|
|
669
|
-
return i || (i = this.getRule("dev", t)), i ? i.resolvedOptions().pluralCategories.sort((n, o) =>
|
|
669
|
+
return i || (i = this.getRule("dev", t)), i ? i.resolvedOptions().pluralCategories.sort((n, o) => Oe[n] - Oe[o]).map((n) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${n}`) : [];
|
|
670
670
|
}
|
|
671
671
|
getSuffix(A, t, i = {}) {
|
|
672
672
|
const n = this.getRule(A, i);
|
|
@@ -680,7 +680,7 @@ const je = (e, A, t, i = ".", n = !0) => {
|
|
|
680
680
|
class Bi {
|
|
681
681
|
constructor(A = {}) {
|
|
682
682
|
var t;
|
|
683
|
-
this.logger =
|
|
683
|
+
this.logger = F.create("interpolator"), this.options = A, this.format = ((t = A == null ? void 0 : A.interpolation) == null ? void 0 : t.format) || ((i) => i), this.init(A);
|
|
684
684
|
}
|
|
685
685
|
init(A = {}) {
|
|
686
686
|
A.interpolation || (A.interpolation = {
|
|
@@ -699,13 +699,13 @@ class Bi {
|
|
|
699
699
|
unescapePrefix: g,
|
|
700
700
|
nestingPrefix: B,
|
|
701
701
|
nestingPrefixEscaped: Q,
|
|
702
|
-
nestingSuffix:
|
|
703
|
-
nestingSuffixEscaped:
|
|
704
|
-
nestingOptionsSeparator:
|
|
705
|
-
maxReplaces:
|
|
706
|
-
alwaysFormat:
|
|
702
|
+
nestingSuffix: E,
|
|
703
|
+
nestingSuffixEscaped: u,
|
|
704
|
+
nestingOptionsSeparator: d,
|
|
705
|
+
maxReplaces: q,
|
|
706
|
+
alwaysFormat: m
|
|
707
707
|
} = A.interpolation;
|
|
708
|
-
this.escape = t !== void 0 ? t : si, this.escapeValue = i !== void 0 ? i : !0, this.useRawValueToEscape = n !== void 0 ? n : !1, this.prefix = o ?
|
|
708
|
+
this.escape = t !== void 0 ? t : si, this.escapeValue = i !== void 0 ? i : !0, this.useRawValueToEscape = n !== void 0 ? n : !1, this.prefix = o ? tA(o) : r || "{{", this.suffix = C ? tA(C) : s || "}}", this.formatSeparator = a || ",", this.unescapePrefix = I ? "" : g || "-", this.unescapeSuffix = this.unescapePrefix ? "" : I || "", this.nestingPrefix = B ? tA(B) : Q || tA("$t("), this.nestingSuffix = E ? tA(E) : u || tA(")"), this.nestingOptionsSeparator = d || ",", this.maxReplaces = q || 1e3, this.alwaysFormat = m !== void 0 ? m : !1, this.resetRegExp();
|
|
709
709
|
}
|
|
710
710
|
reset() {
|
|
711
711
|
this.options && this.init(this.options);
|
|
@@ -717,43 +717,43 @@ class Bi {
|
|
|
717
717
|
interpolate(A, t, i, n) {
|
|
718
718
|
var Q;
|
|
719
719
|
let o, r, C;
|
|
720
|
-
const s = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, a = (
|
|
721
|
-
if (
|
|
722
|
-
const
|
|
723
|
-
return this.alwaysFormat ? this.format(
|
|
724
|
-
interpolationkey:
|
|
725
|
-
})) :
|
|
720
|
+
const s = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, a = (E) => {
|
|
721
|
+
if (E.indexOf(this.formatSeparator) < 0) {
|
|
722
|
+
const m = je(t, s, E, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
723
|
+
return this.alwaysFormat ? this.format(m, void 0, i, L(l(l({}, n), t), {
|
|
724
|
+
interpolationkey: E
|
|
725
|
+
})) : m;
|
|
726
726
|
}
|
|
727
|
-
const
|
|
728
|
-
return this.format(je(t, s,
|
|
729
|
-
interpolationkey:
|
|
727
|
+
const u = E.split(this.formatSeparator), d = u.shift().trim(), q = u.join(this.formatSeparator).trim();
|
|
728
|
+
return this.format(je(t, s, d, this.options.keySeparator, this.options.ignoreJSONStructure), q, i, L(l(l({}, n), t), {
|
|
729
|
+
interpolationkey: d
|
|
730
730
|
}));
|
|
731
731
|
};
|
|
732
732
|
this.resetRegExp();
|
|
733
733
|
const I = (n == null ? void 0 : n.missingInterpolationHandler) || this.options.missingInterpolationHandler, g = ((Q = n == null ? void 0 : n.interpolation) == null ? void 0 : Q.skipOnVariables) !== void 0 ? n.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
|
734
734
|
return [{
|
|
735
735
|
regex: this.regexpUnescape,
|
|
736
|
-
safeValue: (
|
|
736
|
+
safeValue: (E) => TA(E)
|
|
737
737
|
}, {
|
|
738
738
|
regex: this.regexp,
|
|
739
|
-
safeValue: (
|
|
740
|
-
}].forEach((
|
|
741
|
-
for (C = 0; o =
|
|
742
|
-
const
|
|
743
|
-
if (r = a(
|
|
739
|
+
safeValue: (E) => this.escapeValue ? TA(this.escape(E)) : TA(E)
|
|
740
|
+
}].forEach((E) => {
|
|
741
|
+
for (C = 0; o = E.regex.exec(A); ) {
|
|
742
|
+
const u = o[1].trim();
|
|
743
|
+
if (r = a(u), r === void 0)
|
|
744
744
|
if (typeof I == "function") {
|
|
745
|
-
const
|
|
746
|
-
r = h(
|
|
747
|
-
} else if (n && Object.prototype.hasOwnProperty.call(n,
|
|
745
|
+
const q = I(A, o, n);
|
|
746
|
+
r = h(q) ? q : "";
|
|
747
|
+
} else if (n && Object.prototype.hasOwnProperty.call(n, u))
|
|
748
748
|
r = "";
|
|
749
749
|
else if (g) {
|
|
750
750
|
r = o[0];
|
|
751
751
|
continue;
|
|
752
752
|
} else
|
|
753
|
-
this.logger.warn(`missed to pass in variable ${
|
|
753
|
+
this.logger.warn(`missed to pass in variable ${u} for interpolating ${A}`), r = "";
|
|
754
754
|
else !h(r) && !this.useRawValueToEscape && (r = Se(r));
|
|
755
|
-
const
|
|
756
|
-
if (A = A.replace(o[0],
|
|
755
|
+
const d = E.safeValue(r);
|
|
756
|
+
if (A = A.replace(o[0], d), g ? (E.regex.lastIndex += r.length, E.regex.lastIndex -= o[0].length) : E.regex.lastIndex = 0, C++, C >= this.maxReplaces)
|
|
757
757
|
break;
|
|
758
758
|
}
|
|
759
759
|
}), A;
|
|
@@ -761,18 +761,18 @@ class Bi {
|
|
|
761
761
|
nest(A, t, i = {}) {
|
|
762
762
|
let n, o, r;
|
|
763
763
|
const C = (s, a) => {
|
|
764
|
-
var
|
|
764
|
+
var u;
|
|
765
765
|
const I = this.nestingOptionsSeparator;
|
|
766
766
|
if (s.indexOf(I) < 0) return s;
|
|
767
767
|
const g = s.split(new RegExp(`${I}[ ]*{`));
|
|
768
768
|
let B = `{${g[1]}`;
|
|
769
769
|
s = g[0], B = this.interpolate(B, r);
|
|
770
|
-
const Q = B.match(/'/g),
|
|
771
|
-
(((
|
|
770
|
+
const Q = B.match(/'/g), E = B.match(/"/g);
|
|
771
|
+
(((u = Q == null ? void 0 : Q.length) != null ? u : 0) % 2 === 0 && !E || E.length % 2 !== 0) && (B = B.replace(/'/g, '"'));
|
|
772
772
|
try {
|
|
773
773
|
r = JSON.parse(B), a && (r = l(l({}, a), r));
|
|
774
|
-
} catch (
|
|
775
|
-
return this.logger.warn(`failed parsing options string in nesting for key ${s}`,
|
|
774
|
+
} catch (d) {
|
|
775
|
+
return this.logger.warn(`failed parsing options string in nesting for key ${s}`, d), `${s}${I}${B}`;
|
|
776
776
|
}
|
|
777
777
|
return r.defaultValue && r.defaultValue.indexOf(this.prefix) > -1 && delete r.defaultValue, s;
|
|
778
778
|
};
|
|
@@ -815,12 +815,12 @@ const ui = (e) => {
|
|
|
815
815
|
}));
|
|
816
816
|
const r = i + JSON.stringify(o);
|
|
817
817
|
let C = A[r];
|
|
818
|
-
return C || (C = e(
|
|
818
|
+
return C || (C = e(uA(i), n), A[r] = C), C(t);
|
|
819
819
|
};
|
|
820
|
-
}, di = (e) => (A, t, i) => e(
|
|
820
|
+
}, di = (e) => (A, t, i) => e(uA(t), i)(A);
|
|
821
821
|
class li {
|
|
822
822
|
constructor(A = {}) {
|
|
823
|
-
this.logger =
|
|
823
|
+
this.logger = F.create("formatter"), this.options = A, this.init(A);
|
|
824
824
|
}
|
|
825
825
|
init(A, t = {
|
|
826
826
|
interpolation: {}
|
|
@@ -873,8 +873,8 @@ class li {
|
|
|
873
873
|
if (this.formats[a]) {
|
|
874
874
|
let B = C;
|
|
875
875
|
try {
|
|
876
|
-
const Q = ((g = n == null ? void 0 : n.formatParams) == null ? void 0 : g[n.interpolationkey]) || {},
|
|
877
|
-
B = this.formats[a](C,
|
|
876
|
+
const Q = ((g = n == null ? void 0 : n.formatParams) == null ? void 0 : g[n.interpolationkey]) || {}, E = Q.locale || Q.lng || n.locale || n.lng || i;
|
|
877
|
+
B = this.formats[a](C, E, l(l(l({}, I), n), Q));
|
|
878
878
|
} catch (Q) {
|
|
879
879
|
this.logger.warn(Q);
|
|
880
880
|
}
|
|
@@ -888,10 +888,10 @@ class li {
|
|
|
888
888
|
const hi = (e, A) => {
|
|
889
889
|
e.pending[A] !== void 0 && (delete e.pending[A], e.pendingCount--);
|
|
890
890
|
};
|
|
891
|
-
class mi extends
|
|
891
|
+
class mi extends HA {
|
|
892
892
|
constructor(A, t, i, n = {}) {
|
|
893
893
|
var o, r;
|
|
894
|
-
super(), this.backend = A, this.store = t, this.services = i, this.languageUtils = i.languageUtils, this.options = n, this.logger =
|
|
894
|
+
super(), this.backend = A, this.store = t, this.services = i, this.languageUtils = i.languageUtils, this.options = n, this.logger = F.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = n.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = n.maxRetries >= 0 ? n.maxRetries : 5, this.retryTimeout = n.retryTimeout >= 1 ? n.retryTimeout : 350, this.state = {}, this.queue = [], (r = (o = this.backend) == null ? void 0 : o.init) == null || r.call(o, i, n.backend, n);
|
|
895
895
|
}
|
|
896
896
|
queueLoad(A, t, i, n) {
|
|
897
897
|
const o = {}, r = {}, C = {}, s = {};
|
|
@@ -1004,16 +1004,16 @@ class mi extends jA {
|
|
|
1004
1004
|
if ((B = this.backend) != null && B.create) {
|
|
1005
1005
|
const Q = L(l({}, r), {
|
|
1006
1006
|
isUpdate: o
|
|
1007
|
-
}),
|
|
1008
|
-
if (
|
|
1007
|
+
}), E = this.backend.create.bind(this.backend);
|
|
1008
|
+
if (E.length < 6)
|
|
1009
1009
|
try {
|
|
1010
|
-
let
|
|
1011
|
-
|
|
1012
|
-
} catch (
|
|
1013
|
-
C(
|
|
1010
|
+
let u;
|
|
1011
|
+
E.length === 5 ? u = E(A, t, i, n, Q) : u = E(A, t, i, n), u && typeof u.then == "function" ? u.then((d) => C(null, d)).catch(C) : C(null, u);
|
|
1012
|
+
} catch (u) {
|
|
1013
|
+
C(u);
|
|
1014
1014
|
}
|
|
1015
1015
|
else
|
|
1016
|
-
|
|
1016
|
+
E(A, t, i, n, C, Q);
|
|
1017
1017
|
}
|
|
1018
1018
|
!A || !A[0] || this.store.addResource(A[0], t, i, n);
|
|
1019
1019
|
}
|
|
@@ -1079,15 +1079,15 @@ const Ye = () => ({
|
|
|
1079
1079
|
}), be = (e) => {
|
|
1080
1080
|
var A, t;
|
|
1081
1081
|
return h(e.ns) && (e.ns = [e.ns]), h(e.fallbackLng) && (e.fallbackLng = [e.fallbackLng]), h(e.fallbackNS) && (e.fallbackNS = [e.fallbackNS]), ((t = (A = e.supportedLngs) == null ? void 0 : A.indexOf) == null ? void 0 : t.call(A, "cimode")) < 0 && (e.supportedLngs = e.supportedLngs.concat(["cimode"])), typeof e.initImmediate == "boolean" && (e.initAsync = e.initImmediate), e;
|
|
1082
|
-
},
|
|
1082
|
+
}, MA = () => {
|
|
1083
1083
|
}, pi = (e) => {
|
|
1084
1084
|
Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((t) => {
|
|
1085
1085
|
typeof e[t] == "function" && (e[t] = e[t].bind(e));
|
|
1086
1086
|
});
|
|
1087
1087
|
};
|
|
1088
|
-
class
|
|
1088
|
+
class dA extends HA {
|
|
1089
1089
|
constructor(A = {}, t) {
|
|
1090
|
-
if (super(), this.options = be(A), this.services = {}, this.logger =
|
|
1090
|
+
if (super(), this.options = be(A), this.services = {}, this.logger = F, this.modules = {
|
|
1091
1091
|
external: []
|
|
1092
1092
|
}, pi(this), t && !this.isInitialized && !A.isClone) {
|
|
1093
1093
|
if (!this.options.initAsync)
|
|
@@ -1103,26 +1103,26 @@ class lA extends jA {
|
|
|
1103
1103
|
this.options = l(l(l({}, i), this.options), be(A)), this.options.interpolation = l(l({}, i.interpolation), this.options.interpolation), A.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = A.keySeparator), A.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = A.nsSeparator);
|
|
1104
1104
|
const n = (a) => a ? typeof a == "function" ? new a() : a : null;
|
|
1105
1105
|
if (!this.options.isClone) {
|
|
1106
|
-
this.modules.logger ?
|
|
1106
|
+
this.modules.logger ? F.init(n(this.modules.logger), this.options) : F.init(null, this.options);
|
|
1107
1107
|
let a;
|
|
1108
1108
|
this.modules.formatter ? a = this.modules.formatter : a = li;
|
|
1109
|
-
const I = new
|
|
1109
|
+
const I = new Ge(this.options);
|
|
1110
1110
|
this.store = new De(this.options.resources, this.options);
|
|
1111
1111
|
const g = this.services;
|
|
1112
|
-
g.logger =
|
|
1112
|
+
g.logger = F, g.resourceStore = this.store, g.languageUtils = I, g.pluralResolver = new Qi(I, {
|
|
1113
1113
|
prepend: this.options.pluralSeparator,
|
|
1114
1114
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
1115
1115
|
}), this.options.interpolation.format && this.options.interpolation.format !== i.interpolation.format && this.logger.warn("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"), a && (!this.options.interpolation.format || this.options.interpolation.format === i.interpolation.format) && (g.formatter = n(a), g.formatter.init && g.formatter.init(g, this.options), this.options.interpolation.format = g.formatter.format.bind(g.formatter)), g.interpolator = new Bi(this.options), g.utils = {
|
|
1116
1116
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
1117
|
-
}, g.backendConnector = new mi(n(this.modules.backend), g.resourceStore, g, this.options), g.backendConnector.on("*", (Q, ...
|
|
1118
|
-
this.emit(Q, ...
|
|
1119
|
-
}), this.modules.languageDetector && (g.languageDetector = n(this.modules.languageDetector), g.languageDetector.init && g.languageDetector.init(g, this.options.detection, this.options)), this.modules.i18nFormat && (g.i18nFormat = n(this.modules.i18nFormat), g.i18nFormat.init && g.i18nFormat.init(this)), this.translator = new
|
|
1120
|
-
this.emit(Q, ...
|
|
1117
|
+
}, g.backendConnector = new mi(n(this.modules.backend), g.resourceStore, g, this.options), g.backendConnector.on("*", (Q, ...E) => {
|
|
1118
|
+
this.emit(Q, ...E);
|
|
1119
|
+
}), this.modules.languageDetector && (g.languageDetector = n(this.modules.languageDetector), g.languageDetector.init && g.languageDetector.init(g, this.options.detection, this.options)), this.modules.i18nFormat && (g.i18nFormat = n(this.modules.i18nFormat), g.i18nFormat.init && g.i18nFormat.init(this)), this.translator = new RA(this.services, this.options), this.translator.on("*", (Q, ...E) => {
|
|
1120
|
+
this.emit(Q, ...E);
|
|
1121
1121
|
}), this.modules.external.forEach((Q) => {
|
|
1122
1122
|
Q.init && Q.init(this);
|
|
1123
1123
|
});
|
|
1124
1124
|
}
|
|
1125
|
-
if (this.format = this.options.interpolation.format, t || (t =
|
|
1125
|
+
if (this.format = this.options.interpolation.format, t || (t = MA), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
|
|
1126
1126
|
const a = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
|
|
1127
1127
|
a.length > 0 && a[0] !== "dev" && (this.options.lng = a[0]);
|
|
1128
1128
|
}
|
|
@@ -1131,7 +1131,7 @@ class lA extends jA {
|
|
|
1131
1131
|
}), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((a) => {
|
|
1132
1132
|
this[a] = (...I) => (this.store[a](...I), this);
|
|
1133
1133
|
});
|
|
1134
|
-
const C =
|
|
1134
|
+
const C = gA(), s = () => {
|
|
1135
1135
|
const a = (I, g) => {
|
|
1136
1136
|
this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), C.resolve(g), t(I, g);
|
|
1137
1137
|
};
|
|
@@ -1140,7 +1140,7 @@ class lA extends jA {
|
|
|
1140
1140
|
};
|
|
1141
1141
|
return this.options.resources || !this.options.initAsync ? s() : setTimeout(s, 0), C;
|
|
1142
1142
|
}
|
|
1143
|
-
loadResources(A, t =
|
|
1143
|
+
loadResources(A, t = MA) {
|
|
1144
1144
|
var o, r;
|
|
1145
1145
|
let i = t;
|
|
1146
1146
|
const n = h(A) ? A : this.language;
|
|
@@ -1159,8 +1159,8 @@ class lA extends jA {
|
|
|
1159
1159
|
i(null);
|
|
1160
1160
|
}
|
|
1161
1161
|
reloadResources(A, t, i) {
|
|
1162
|
-
const n =
|
|
1163
|
-
return typeof A == "function" && (i = A, A = void 0), typeof t == "function" && (i = t, t = void 0), A || (A = this.languages), t || (t = this.options.ns), i || (i =
|
|
1162
|
+
const n = gA();
|
|
1163
|
+
return typeof A == "function" && (i = A, A = void 0), typeof t == "function" && (i = t, t = void 0), A || (A = this.languages), t || (t = this.options.ns), i || (i = MA), this.services.backendConnector.reload(A, t, (o) => {
|
|
1164
1164
|
n.resolve(), i(o);
|
|
1165
1165
|
}), n;
|
|
1166
1166
|
}
|
|
@@ -1183,7 +1183,7 @@ class lA extends jA {
|
|
|
1183
1183
|
}
|
|
1184
1184
|
changeLanguage(A, t) {
|
|
1185
1185
|
this.isLanguageChangingTo = A;
|
|
1186
|
-
const i =
|
|
1186
|
+
const i = gA();
|
|
1187
1187
|
this.emit("languageChanging", A);
|
|
1188
1188
|
const n = (C) => {
|
|
1189
1189
|
this.language = C, this.languages = this.services.languageUtils.toResolveHierarchy(C), this.resolvedLanguage = void 0, this.setResolvedLanguage(C);
|
|
@@ -1238,7 +1238,7 @@ class lA extends jA {
|
|
|
1238
1238
|
return !!(this.hasResourceBundle(i, A) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || r(i, A) && (!n || r(o, A)));
|
|
1239
1239
|
}
|
|
1240
1240
|
loadNamespaces(A, t) {
|
|
1241
|
-
const i =
|
|
1241
|
+
const i = gA();
|
|
1242
1242
|
return this.options.ns ? (h(A) && (A = [A]), A.forEach((n) => {
|
|
1243
1243
|
this.options.ns.indexOf(n) < 0 && this.options.ns.push(n);
|
|
1244
1244
|
}), this.loadResources((n) => {
|
|
@@ -1246,7 +1246,7 @@ class lA extends jA {
|
|
|
1246
1246
|
}), i) : (t && t(), Promise.resolve());
|
|
1247
1247
|
}
|
|
1248
1248
|
loadLanguages(A, t) {
|
|
1249
|
-
const i =
|
|
1249
|
+
const i = gA();
|
|
1250
1250
|
h(A) && (A = [A]);
|
|
1251
1251
|
const n = this.options.preload || [], o = A.filter((r) => n.indexOf(r) < 0 && this.services.languageUtils.isSupportedCode(r));
|
|
1252
1252
|
return o.length ? (this.options.preload = n.concat(o), this.loadResources((r) => {
|
|
@@ -1264,18 +1264,18 @@ class lA extends jA {
|
|
|
1264
1264
|
}
|
|
1265
1265
|
} catch (r) {
|
|
1266
1266
|
}
|
|
1267
|
-
const t = ["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"], i = ((o = this.services) == null ? void 0 : o.languageUtils) || new
|
|
1267
|
+
const t = ["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"], i = ((o = this.services) == null ? void 0 : o.languageUtils) || new Ge(Ye());
|
|
1268
1268
|
return A.toLowerCase().indexOf("-latn") > 1 ? "ltr" : t.indexOf(i.getLanguagePartFromCode(A)) > -1 || A.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
|
|
1269
1269
|
}
|
|
1270
1270
|
static createInstance(A = {}, t) {
|
|
1271
|
-
return new
|
|
1271
|
+
return new dA(A, t);
|
|
1272
1272
|
}
|
|
1273
|
-
cloneInstance(A = {}, t =
|
|
1273
|
+
cloneInstance(A = {}, t = MA) {
|
|
1274
1274
|
const i = A.forkResourceStore;
|
|
1275
1275
|
i && delete A.forkResourceStore;
|
|
1276
1276
|
const n = L(l(l({}, this.options), A), {
|
|
1277
1277
|
isClone: !0
|
|
1278
|
-
}), o = new
|
|
1278
|
+
}), o = new dA(n);
|
|
1279
1279
|
if ((A.debug !== void 0 || A.prefix !== void 0) && (o.logger = o.logger.clone(A)), ["store", "services", "language"].forEach((C) => {
|
|
1280
1280
|
o[C] = this[C];
|
|
1281
1281
|
}), o.services = l({}, this.services), o.services.utils = {
|
|
@@ -1284,7 +1284,7 @@ class lA extends jA {
|
|
|
1284
1284
|
const C = Object.keys(this.store.data).reduce((s, a) => (s[a] = l({}, this.store.data[a]), s[a] = Object.keys(s[a]).reduce((I, g) => (I[g] = l({}, s[a][g]), I), s[a]), s), {});
|
|
1285
1285
|
o.store = new De(C, n), o.services.resourceStore = o.store;
|
|
1286
1286
|
}
|
|
1287
|
-
return o.translator = new
|
|
1287
|
+
return o.translator = new RA(o.services, n), o.translator.on("*", (C, ...s) => {
|
|
1288
1288
|
o.emit(C, ...s);
|
|
1289
1289
|
}), o.init(n, t), o.translator.options = n, o.translator.backendConnector.services.utils = {
|
|
1290
1290
|
hasLoadedNamespace: o.hasLoadedNamespace.bind(o)
|
|
@@ -1300,8 +1300,8 @@ class lA extends jA {
|
|
|
1300
1300
|
};
|
|
1301
1301
|
}
|
|
1302
1302
|
}
|
|
1303
|
-
const S =
|
|
1304
|
-
S.createInstance =
|
|
1303
|
+
const S = dA.createInstance();
|
|
1304
|
+
S.createInstance = dA.createInstance;
|
|
1305
1305
|
S.createInstance;
|
|
1306
1306
|
S.dir;
|
|
1307
1307
|
S.init;
|
|
@@ -1316,7 +1316,7 @@ S.setDefaultNamespace;
|
|
|
1316
1316
|
S.hasLoadedNamespace;
|
|
1317
1317
|
S.loadNamespaces;
|
|
1318
1318
|
S.loadLanguages;
|
|
1319
|
-
const qi = "Account Name", fi = "Account Number", wi = "Unit Address", Mi = "I agree with", Ji = "and", yi = "Apply", zi = "Apply promotion", Si = "Back", Ki = "Back ID Card", vi = "Bank Name", ki = "Beneficiary Bank", Di = "Business Registration License", Ri = "Cancel", Li = "Cancel Transaction",
|
|
1319
|
+
const qi = "Account Name", fi = "Account Number", wi = "Unit Address", Mi = "I agree with", Ji = "and", yi = "Apply", zi = "Apply promotion", Si = "Back", Ki = "Back ID Card", vi = "Bank Name", ki = "Beneficiary Bank", Di = "Business Registration License", Ri = "Cancel", Li = "Cancel Transaction", Gi = "Close", Oi = "Tax authority code type", Hi = "C (With tax authority code)", ji = "K (Without code)", Ni = "C: With tax authority code, K: Without code", Yi = "Coming Soon", bi = "Unit Name", xi = "Complete your payment within", Pi = "Complete registration", Fi = "Confirm", Zi = "Important Notice:", Ui = "3. Contact Person Information:", Wi = "Copy", Ti = "Country", Xi = "2 custom characters (default: YY)", Vi = "Custom quantity", $i = "Date of Birth", _i = "Day", An = "Decrease", en = "Digital Signature Package", tn = "Discount", nn = "District", on = "Duration", rn = "E-Contract", Cn = "E-Invoice Registration", sn = "E-Invoice Renewal", an = "Edit", In = "e-invoices", gn = "Email", En = "Enter ID Card Number", cn = "Enter Invoice Symbol", Qn = "Enter Passport Number", Bn = "Enter Provider Name", un = "Enter Tax Authority Code", dn = "Failed to check customer status", ln = "Failed to create order", hn = "This package is not eligible for promotions", mn = "This package is not eligible for promotions. Would you like to choose a different package?", pn = "Error fetching tax information.", qn = "File format not supported", fn = "File size is too large", wn = "Access denied", Mn = "Address cannot contain special characters", Jn = "Invalid ID card", yn = "Invalid date of birth", zn = "Invalid email address", Sn = "Invalid ID card number", Kn = "Invalid full name", vn = "Invalid phone number", kn = "Invalid provider name", Dn = "Invalid request", Rn = "Invalid tax authority code", Ln = "Invalid tax code", Gn = "Failed to load data", On = "Failed to load registration packages", Hn = "Failed to load invoice packages", jn = "Failed to load signature packages", Nn = "Unable to connect to the network, please try again later", Yn = "Data not found", bn = "Unable to check order payment status. Please try again.", xn = "Unable to generate QR payment code. Please try again.", Pn = "This field is required", Fn = "Failed to search packages", Zn = "Server error, please try again later", Un = "Service temporarily unavailable", Wn = "Too many requests, please try again later", Tn = "Unauthorized access", Xn = "An error occurred", Vn = "Invalid data", $n = "Expired date", _n = "Female", Ao = "Format", eo = "Form differentiation code", to = "Front ID Card", io = "Full Name", no = "Gender", oo = "Gift", ro = "Have you used e-invoices?", Co = "Are you using another e-invoice provider other than M-invoice?", so = "(Free Consulting and Support Hotline)", ao = "Hotline:", Io = "ID Card Number", go = "Increase", Eo = "Information sent to the provider", co = "Invoice issuance year", Qo = "Invoice Package", Bo = "Invoice Symbol", uo = "Invoice Template", lo = { 1: "1 (VAT Invoice)", 2: "2 (Sales Invoice)", 3: "3 (Public Asset Sales)", 4: "4 (National Reserve Sales)", 5: "5 (Stamps, Tickets, Other Cards)", 6: "6 (Internal Documents)", 7: "7 (Commercial Invoice)", 8: "8 (VAT with Integrated Tax)", 9: "9 (Sales with Integrated Tax)" }, ho = "B (Agent)", mo = "D (Asset)", po = "G (VAT Stamp)", qo = "H (Sales Stamp)", fo = "L (Tax Authority)", wo = "M (Cash Register)", Mo = "N (Internal)", Jo = "T (Registration)", yo = "Invoice type", zo = "X (Commercial)", So = "4. E-INVOICE USAGE INFORMATION:", Ko = "invoices", vo = "2. Legal Representative Information:", ko = "Please check and enter the correct legal representative name according to the uploaded business license.", Do = "Loading...", Ro = "Male", Lo = "Max 500KB", Go = "Month", Oo = "Most Suitable Package", Ho = "Continue", jo = "No data available", No = "No package found.", Yo = "No results found", bo = "Please check your email inbox regularly to receive account information notifications from the provider.", xo = "If you have not received the email account information (username/password) within 2 hours, please contact the information below for the fastest support:", Po = "of", Fo = "OK", Zo = "Optional", Uo = "or", Wo = "Order created successfully", To = "Order has expired", Xo = "Order Information", Vo = "Order Summary", $o = "Organization Registration Certificate", _o = "Passport", Ar = "Payment Amount", er = "Payment Failed", tr = ["Open your banking app or digital wallet on your phone", "Select the QR Code scan feature in the app", "Scan the QR code on this page and make payment"], ir = "QR Payment Instructions", nr = "Payment Method:", or = "Payment Successful!", rr = "Payment timeout", Cr = "Payment timeout! Please try again.", sr = "Payment", ar = "Permanent address", Ir = "Phone Number", gr = "Product", Er = "Promotion", cr = "Provider", Qr = "Provider Name", Br = "Province/City", ur = "QR Code Payment", dr = "Scan QR Code to Pay", lr = "Quantity", hr = "Registration Fee", mr = "Required", pr = "Return Home", qr = "Return to step 1", fr = "Invoice template number", wr = "Invoice template number (1-9)", Mr = "Save", Jr = "Search", yr = "Number of e-invoices", zr = "Select", Sr = "Select File", Kr = "Select E-Invoice Package", vr = "Select Provider", kr = "Select Digital Signature Package", Dr = "Select Subscription Package", Rr = "Selected Products", Lr = "Settings", Gr = "Digital Signature Package", Or = "E-invoice software license", Hr = "Information", jr = "Confirmation & Payment", Nr = "Invoice Package", Yr = "Subscription Package", br = "Tax Authority", xr = "5 characters issued by the Authority for cash register bills", Pr = "Tax Code/CCCD", Fr = "With customer is a household business, display according to the CCCD number.", Zr = "Terms and Usage Policy", Ur = "Time Left", Wr = "Total", Tr = "Total Amount", Xr = "Total Price", Vr = "Transaction has been canceled. Returning to registration page.", $r = "Try again", _r = "Type of e-invoice", AC = "Unit", eC = "1. Unit Information", tC = "units", iC = "Unit Price", nC = "units", oC = "Upload Back ID Card", rC = "Upload File", CC = "Upload Front ID Card", sC = "Upload ID Card", aC = "Upload Logo", IC = "Usage Policy", gC = "Validity Period", EC = "Ward", cC = "Please check the image or manually enter information according to the sample", QC = "Please check the information before moving to the next step", BC = "Website", uC = "Year", dC = "Release year (last 2 digits)", lC = "The tax code has been registered with M-Invoice.", hC = "Please check the transaction before making the payment to ensure it is processed correctly.", mC = 'Contact information: <a href="mailto:hotro247@atomsolution.vn" class="wgt:font-semibold wgt:underline">hotro247@atomsolution.vn</a>', pC = "<strong>Note:</strong> To ensure the renewal information is accurate, please review and reload the information with the latest data.", qC = "The transaction does not match the order information.", fC = "Handling instructions", wC = 'For assistance, please send an email to: <a href="mailto:{email}" style="color: #335CFF; text-decoration: none; font-weight: 500;">{email}</a>, with the following information:', MC = "with the following information:", JC = "Tax code or company/ household business name", yC = "Transaction amount and time", zC = "Transaction ID or receipt image (if available)", SC = "Providing complete information will help us process your request more quickly and accurately.", KC = "This tax code has already been registered on M-Invoice, so you cannot create a new one with this information.", vC = "Free Order", kC = "You don’t need to make a payment for this order. Please confirm to complete your registration.", DC = "Confirm Order", RC = "Processing...", LC = "Confirmed", GC = "Next Steps", OC = "Press the “Confirm Order” button below to complete the process.", HC = "The system will automatically process your order.", jC = "You will be redirected to the confirmation page once it's done.", NC = "Check your email for registration details.", YC = "Your order has a value of 0₫", bC = "Registration information has been successfully recorded!", xC = "E-Invoice Information", PC = "Please fill in complete information to issue invoice", FC = "Order Code", ZC = "Address", UC = "Total Amount", WC = "Individual", TC = "Business", XC = "* Customers are fully responsible for the information provided when requesting invoice issuance. In case of incorrect information, the system does not support re-issuing invoices.", VC = "Preview", $C = "E-invoice request sent successfully!", _C = "E-invoice information will be sent to your registered email.", As = "Request failed", es = "Please check your information or try again later.", ts = "Invoice Created", is = "The e-invoice request for your order has been recorded. Please check your email for the information.", ns = "Invoice Issuance Time Has Expired", os = "The transaction has exceeded the time limit for invoice issuance as per regulations. Please contact the store for support.", rs = "(Note: E-invoices can only be issued on the same day the order is created)", Cs = "Company without tax code (Foreign company)", ss = "Enter tax code", as = "Get Information", Is = "Representative Name", gs = "Enter representative name", Es = "Buyer Address", cs = "Enter buyer address", Qs = "Performer Name", Bs = "Enter performer name", us = "abc@gmail.com", ds = "Enter phone number", ls = "E-Invoice Information", hs = "Please check the invoice information carefully before confirming.", ms = "Order Code:", ps = "Address:", qs = "Total Amount:", fs = "Tax Code:", ws = "Representative Name:", Ms = "Buyer Address:", Js = "Performer Name:", ys = "Email:", zs = "Phone Number:", Ss = "Order Not Found!", Ks = "Business registration type", vs = "Company", ks = "Household business", Ds = {
|
|
1320
1320
|
accountName: qi,
|
|
1321
1321
|
accountNumber: fi,
|
|
1322
1322
|
address: wi,
|
|
@@ -1331,8 +1331,8 @@ const qi = "Account Name", fi = "Account Number", wi = "Unit Address", Mi = "I a
|
|
|
1331
1331
|
businessLicense: Di,
|
|
1332
1332
|
cancel: Ri,
|
|
1333
1333
|
cancelTransaction: Li,
|
|
1334
|
-
close:
|
|
1335
|
-
codeType:
|
|
1334
|
+
close: Gi,
|
|
1335
|
+
codeType: Oi,
|
|
1336
1336
|
codeTypeC: Hi,
|
|
1337
1337
|
codeTypeK: ji,
|
|
1338
1338
|
codeTypeTooltip: Ni,
|
|
@@ -1385,8 +1385,8 @@ const qi = "Account Name", fi = "Account Number", wi = "Unit Address", Mi = "I a
|
|
|
1385
1385
|
errorInvalidRequest: Dn,
|
|
1386
1386
|
errorInvalidTaxAuthorityCode: Rn,
|
|
1387
1387
|
errorInvalidTaxCode: Ln,
|
|
1388
|
-
errorLoadingData:
|
|
1389
|
-
errorLoadingInitPackages:
|
|
1388
|
+
errorLoadingData: Gn,
|
|
1389
|
+
errorLoadingInitPackages: On,
|
|
1390
1390
|
errorLoadingInvoicePackages: Hn,
|
|
1391
1391
|
errorLoadingSignaturePackages: jn,
|
|
1392
1392
|
errorNetwork: Nn,
|
|
@@ -1438,8 +1438,8 @@ const qi = "Account Name", fi = "Account Number", wi = "Unit Address", Mi = "I a
|
|
|
1438
1438
|
loading: Do,
|
|
1439
1439
|
male: Ro,
|
|
1440
1440
|
maxFileSize: Lo,
|
|
1441
|
-
month:
|
|
1442
|
-
mostSuitablePackage:
|
|
1441
|
+
month: Go,
|
|
1442
|
+
mostSuitablePackage: Oo,
|
|
1443
1443
|
next: Ho,
|
|
1444
1444
|
noDataAvailable: jo,
|
|
1445
1445
|
noPackageFound: No,
|
|
@@ -1495,8 +1495,8 @@ const qi = "Account Name", fi = "Account Number", wi = "Unit Address", Mi = "I a
|
|
|
1495
1495
|
selectSubscriptionPackage: Dr,
|
|
1496
1496
|
selectedProducts: Rr,
|
|
1497
1497
|
settings: Lr,
|
|
1498
|
-
signaturePackage:
|
|
1499
|
-
softwareLicense:
|
|
1498
|
+
signaturePackage: Gr,
|
|
1499
|
+
softwareLicense: Or,
|
|
1500
1500
|
stepInfo: Hr,
|
|
1501
1501
|
stepPayment: jr,
|
|
1502
1502
|
stepPlan: Nr,
|
|
@@ -1549,8 +1549,8 @@ const qi = "Account Name", fi = "Account Number", wi = "Unit Address", Mi = "I a
|
|
|
1549
1549
|
confirmFreeOrder: DC,
|
|
1550
1550
|
processing: RC,
|
|
1551
1551
|
confirmed: LC,
|
|
1552
|
-
freeOrderStepsTitle:
|
|
1553
|
-
freeOrderStep1:
|
|
1552
|
+
freeOrderStepsTitle: GC,
|
|
1553
|
+
freeOrderStep1: OC,
|
|
1554
1554
|
freeOrderStep2: HC,
|
|
1555
1555
|
freeOrderStep3: jC,
|
|
1556
1556
|
freeOrderStep4: NC,
|
|
@@ -1600,11 +1600,11 @@ const qi = "Account Name", fi = "Account Number", wi = "Unit Address", Mi = "I a
|
|
|
1600
1600
|
businessRegistrationType: Ks,
|
|
1601
1601
|
company: vs,
|
|
1602
1602
|
householdBusiness: ks
|
|
1603
|
-
}, Rs = "Tên tài khoản", Ls = "Số tài khoản",
|
|
1603
|
+
}, Rs = "Tên tài khoản", Ls = "Số tài khoản", Gs = "Địa chỉ đơn vị", Os = "Tôi đồng ý với", Hs = "và", js = "Áp dụng", Ns = "Áp dụng khuyến mãi", Ys = "Quay lại", bs = "Mặt sau CCCD", xs = "Ngân hàng", Ps = "Ngân hàng thụ hưởng", Fs = "Giấy phép đăng ký kinh doanh", Zs = "Hủy", Us = "Hủy giao dịch", Ws = "Đóng", Ts = "C (Có mã CQT)", Xs = "K (Không mã)", Vs = "C: Có mã CQT, K: Không mã", $s = "Sắp ra mắt", _s = "Tên đơn vị", Aa = "Hoàn tất thanh toán của bạn trong", ea = "Hoàn tất đăng ký", ta = "Xác nhận", ia = "Thông tin lưu ý:", na = "3. Thông tin người liên hệ:", oa = "Bản", ra = "Quốc gia", Ca = "2 ký tự tùy chọn (mặc định: YY)", sa = "Số lượng tùy chỉnh", aa = "Ngày sinh", Ia = "Ngày", ga = "Giảm", Ea = "Gói chữ ký số", ca = "Giảm giá", Qa = "Quận/Huyện", Ba = "Thời hạn", ua = "E-Contract", da = "Chỉnh sửa", la = "hóa đơn điện tử", ha = "Email", ma = "Nhập số CMND/CCCD", pa = "Nhập ký hiệu hóa đơn", qa = "Nhập số hộ chiếu", fa = "Nhập tên nhà cung cấp", wa = "Nhập mã CQT cấp", Ma = "Không thể kiểm tra trạng thái khách hàng", Ja = "Không thể tạo đơn hàng", ya = "Gói không áp dụng khuyến mãi", za = "Gói này không áp dụng khuyến mãi. Bạn có muốn thay đổi gói khác không?", Sa = "Lỗi khi lấy thông tin mã số thuế.", Ka = "Định dạng tệp không được hỗ trợ", va = "Kích thước tệp quá lớn", ka = "Truy cập bị từ chối", Da = "Địa chỉ không được chứa ký tự đặc biệt", Ra = "CCCD không hợp lệ", La = "Ngày sinh không hợp lệ", Ga = "Email không hợp lệ", Oa = "Số CCCD không hợp lệ", Ha = "Họ và tên không hợp lệ", ja = "Số điện thoại không hợp lệ", Na = "Tên nhà cung cấp không hợp lệ", Ya = "Yêu cầu không hợp lệ", ba = "Mã CQT cấp không hợp lệ", xa = "Mã số thuế không hợp lệ", Pa = "Không thể tải dữ liệu", Fa = "Không thể tải gói đăng ký", Za = "Không thể tải gói hóa đơn", Ua = "Không thể tải gói chữ ký số", Wa = "Không thể kết nối mạng, vui lòng thử lại sau", Ta = "Không tìm thấy dữ liệu", Xa = "Không thể kiểm tra trạng thái thanh toán đơn hàng. Vui lòng thử lại.", Va = "Không thể tạo mã QR thanh toán. Vui lòng thử lại.", $a = "Trường này là bắt buộc", _a = "Không thể tìm kiếm gói", AI = "Lỗi máy chủ, vui lòng thử lại sau", eI = "Dịch vụ tạm thời không khả dụng", tI = "Quá nhiều yêu cầu, vui lòng thử lại sau", iI = "Không có quyền truy cập", nI = "Đã xảy ra lỗi", oI = "Dữ liệu không hợp lệ", rI = "Hết ngày", CI = "Nữ", sI = "Định dạng", aI = "Mặt trước CCCD", II = "Họ và tên", gI = "Giới tính", EI = "Quà tặng", cI = "Bạn đã sử dụng hoá đơn điện tử?", QI = "Bạn đang sử dụng nhà NCC hoá đơn điện tử khác M-invoice không?", BI = "(Tổng đài Tư vấn, Hỗ trợ miễn phí)", uI = "Hotline:", dI = "CCCD", lI = "Tải lên ảnh CCCD", hI = "Tăng", mI = "Đã gửi thông tin sang nhà cung cấp", pI = "Gói hóa đơn", qI = "Ký hiệu hóa đơn", fI = "Mẫu số", wI = { 1: "1 (Hóa đơn GTGT)", 2: "2 (Hóa đơn bán hàng)", 3: "3 (Bán tài sản công)", 4: "4 (Bán dự trữ quốc gia)", 5: "5 (Tem, vé, thẻ khác)", 6: "6 (Chứng từ nội bộ)", 7: "7 (Hóa đơn thương mại)", 8: "8 (GTGT tích hợp thuế)", 9: "9 (Bán hàng tích hợp thuế)" }, MI = "B (Đại lý)", JI = "D (Tài sản)", yI = "G (Tem GTGT)", zI = "H (Tem bán hàng)", SI = "L (CQT)", KI = "M (Máy tính tiền)", vI = "N (Nội bộ)", kI = "T (Đăng ký)", DI = "Loại hóa đơn", RI = "X (Thương mại)", LI = "4. THÔNG TIN SỬ DỤNG HDDT:", GI = "hóa đơn", OI = "2. Thông tin người đại diện pháp luật:", HI = "Vui lòng kiểm tra và nhập đúng tên người đại diện theo Giấy phép kinh doanh đã tải lên.", jI = "Với khách hàng là hộ kinh doanh, hiển thị theo số CCCD.", NI = "Đang tải...", YI = "Nam", bI = "Tối đa 500Kb", xI = "Tháng", PI = "Gói phù hợp nhất", FI = "Tiếp tục", ZI = "Không có dữ liệu", UI = "Không tìm thấy gói nào.", WI = "Không tìm thấy kết quả", TI = "Vui lòng thường xuyên kiểm tra hộp thư Email nhận thông báo thông tin tài khoản từ nhà cung cấp", XI = "Trong vòng 2 giờ nếu chưa nhận được thông tin Email tài khoản (username/password). Bạn có thể liên hệ thông tin phía bên dưới để được hỗ trợ sớm nhất:", VI = "của", $I = "OK", _I = "Tùy chọn", Ag = "hoặc", eg = "Đơn hàng đã được tạo thành công", tg = "Đơn hàng đã hết hạn", ig = "Thông tin đơn hàng", ng = "Tóm tắt đơn hàng", og = "Giấy chứng nhận đăng ký doanh nghiệp", rg = "Hộ chiếu", Cg = "Số tiền thanh toán", sg = "Thanh toán thất bại", ag = ["Mở ứng dụng Ngân hàng hoặc Ví điện tử trên điện thoại", "Trên ứng dụng chọn tính năng Quét mã QR", "Quét mã QR ở trang này và thanh toán"], Ig = "Hướng dẫn thanh toán QR", gg = "Hình thức thanh toán:", Eg = "Thanh toán thành công!", cg = "Hết thời gian thanh toán", Qg = "Hết thời gian thanh toán! Vui lòng thử lại.", Bg = "Thanh toán", ug = "Địa chỉ thường trú", dg = "Số điện thoại", lg = "Sản phẩm", hg = "Chương trình khuyến mãi", mg = "Nhà cung cấp", pg = "Tên NCC", qg = "Tỉnh/Thành phố", fg = "Thanh toán qua mã QR", wg = "Quét mã QR để thanh toán", Mg = "Số lượng", Jg = "Phí đăng ký", yg = "Bắt buộc", zg = "Trở về trang chủ", Sg = "Quay lại bước 1", Kg = "Mẫu số hóa đơn (1-9)", vg = "Lưu", kg = "Tìm kiếm", Dg = "Số lượng hóa đơn điện tử", Rg = "Chọn", Lg = "Chọn tệp", Gg = "Chọn gói hóa đơn điện tử", Og = "Chọn nhà cung cấp", Hg = "Chọn gói chữ ký số", jg = "Chọn gói đăng ký", Ng = "Sản phẩm đã chọn", Yg = "Thiết lập", bg = "Gói chữ ký số", xg = "Bản quyền phần mềm hóa đơn điện tử", Pg = "Thông Tin", Fg = "Xác Nhận Và Thanh Toán", Zg = "Gói Hóa Đơn", Ug = "Gói đăng ký", Wg = "CQT quản lý", Tg = "5 ký tự do CQT cấp cho loại hóa đơn máy tính tiền", Xg = "Mã số thuế/CCCD", Vg = "Điều khoản và Chính sách sử dụng", $g = "Thời gian còn lại", _g = "Tổng cộng", AE = "Tổng tiền", eE = "Thành tiền", tE = "Giao dịch đã được hủy. Quay về trang đăng ký.", iE = "Thử lại", nE = "Đơn vị tính", oE = "1. Thông tin đơn vị", rE = "đơn", CE = "Đơn giá", sE = "đơn", aE = "Tải lên mặt sau CCCD", IE = "Tải lên tệp", gE = "Tải lên mặt trước CCCD", EE = "Tải logo lên", cE = "Chính sách sử dụng", QE = "Thời gian áp dụng", BE = "Phường/Xã", uE = "Vui lòng kiểm tra lại hình ảnh hoặc nhập dữ liệu theo thông tin mẫu bên cạnh", dE = "Website", lE = "Đăng ký hóa đơn điện tử", hE = "Gia hạn hóa đơn điện tử", mE = "Năm", pE = "Năm phát hành (2 chữ số cuối)", qE = "Vui lòng kiểm tra thông tin trước khi chuyển sang bước tiếp theo", fE = "Ký hiệu mẫu số hóa đơn điện tử", wE = "Loại mã cơ quan thuế", ME = "Năm phát hành hóa đơn", JE = "Loại hóa đơn điện tử", yE = "Ký hiệu phân biệt mẫu", zE = "Mã số thuế đã được đăng ký với M-Invoice.", SE = "Vui lòng kiểm tra giao dịch trước khi thanh toán để đảm bảo giao dịch được thực hiện chính xác", KE = 'Thông tin liên hệ: <a href="mailto:hotro247@atomsolution.vn" class="wgt:font-semibold wgt:underline">hotro247@atomsolution.vn</a>', vE = "<strong>Lưu ý:</strong> Để đảm bảo thông tin gia hạn được chính xác, vui lòng kiểm tra và tải lại các thông tin với dữ liệu mới nhất.", kE = "Giao dịch không khớp với thông tin đơn hàng", DE = "Hướng dẫn xử lý", RE = 'Để được hỗ trợ xử lý, vui lòng gửi email đến: <a href="mailto:{email}" style="color: #335CFF; text-decoration: none; font-weight: 500;">{email}</a>, kèm theo các thông tin sau:', LE = "kèm theo các thông tin sau:", GE = "Mã số thuế hoặc tên doanh nghiệp/ Hộ kinh doanh", OE = "Số tiền và thời gian giao dịch", HE = "Mã giao dịch hoặc ảnh chứng từ (nếu có)", jE = "Cung cấp đủ thông tin sẽ giúp chúng tôi xử lý yêu cầu của bạn nhanh chóng và chính xác hơn.", NE = "Mã số thuế này đã được đăng ký trên M-Invoice, vì vậy bạn không thể tạo mới với thông tin này.", YE = "Đơn hàng miễn phí", bE = "Bạn không cần thanh toán cho đơn hàng này. Vui lòng xác nhận để hoàn tất đăng ký.", xE = "Xác nhận đơn hàng", PE = "Đang xử lí...", FE = "Đã xác nhận", ZE = "Các bước tiếp theo", UE = "Nhấn nút “Xác nhận đơn hàng” bên dưới để hoàn tất", WE = "Hệ thống sẽ tự động xử lí đơn hàng của bạn", TE = "Bạn sẽ được chuyển đến trang xác nhận sau khi hoàn tất", XE = "Kiểm tra email để nhận thông tin đăng kí", VE = "Đơn hàng của bạn có giá trị 0đ", $E = "Thông tin đăng ký đã được ghi nhận thành công!", _E = "Thông tin hóa đơn điện tử", Ac = "Vui lòng nhập đầy đủ thông tin để xuất hóa đơn", ec = "Mã đơn hàng", tc = "Địa chỉ", ic = "Tổng tiền", nc = "Cá nhân", oc = "Doanh nghiệp", rc = "* Khách hàng hoàn toàn chịu trách nhiệm với thông tin cung cấp khi yêu cầu xuất hóa đơn, trường hợp thông tin sai hệ thống không hỗ trợ xuất lại hóa đơn.", Cc = "Xem trước", sc = "Yêu cầu xuất hóa đơn điện tử gửi thành công!", ac = "Thông tin hóa đơn điện tử sẽ được gửi đến Email bạn khai báo.", Ic = "Gửi yêu cầu thất bại", gc = "Vui lòng kiểm tra lại thông tin hoặc thử lại sau.", Ec = "Hoá đơn đã được tạo", cc = "Yêu cầu xuất hóa đơn điện tử cho đơn hàng đã được ghi nhận. Quý khách vui lòng kiểm tra email để xem thông tin.", Qc = "Thời gian xuất hóa đơn đã quá hạn", Bc = "Giao dịch đã quá hạn thời gian được lập hóa đơn theo quy định. Vui lòng liên hệ của hàng để được hỗ trợ.", uc = "(Lưu ý: Hóa đơn điện tử chỉ được xuất trong cùng ngày tạo đơn hàng)", dc = "Đơn vị không có mã số thuế (Công ty nước ngoài)", lc = "Nhập mã số thuế", hc = "Lấy thông tin", mc = "Tên người đại diện", pc = "Nhập tên người đại diện", qc = "Địa chỉ người mua", fc = "Nhập địa chỉ người mua", wc = "Tên người thực hiện", Mc = "Nhập tên người thực hiện", Jc = "abc@gmail.com", yc = "Nhập số điện thoại", zc = "Thông tin hoá đơn điện tử", Sc = "Quý khách vui lòng kiểm tra thông tin xuất hóa đơn chính xác trước khi bấm xác nhận.", Kc = "Mã đơn hàng:", vc = "Địa chỉ:", kc = "Tổng tiền:", Dc = "Mã số thuế:", Rc = "Tên người đại diện:", Lc = "Địa chỉ người mua:", Gc = "Tên người thực hiện:", Oc = "Email:", Hc = "Số điện thoại:", jc = "Đơn hàng không tồn tại!", Nc = "Hình thức đăng kí kinh doanh", Yc = "Doanh nghiệp", bc = "Hộ kinh doanh", xc = {
|
|
1604
1604
|
accountName: Rs,
|
|
1605
1605
|
accountNumber: Ls,
|
|
1606
|
-
address:
|
|
1607
|
-
agreeWith:
|
|
1606
|
+
address: Gs,
|
|
1607
|
+
agreeWith: Os,
|
|
1608
1608
|
and: Hs,
|
|
1609
1609
|
apply: js,
|
|
1610
1610
|
applyPromotion: Ns,
|
|
@@ -1658,8 +1658,8 @@ const qi = "Account Name", fi = "Account Number", wi = "Unit Address", Mi = "I a
|
|
|
1658
1658
|
errorInvalidAddress: Da,
|
|
1659
1659
|
errorInvalidCard: Ra,
|
|
1660
1660
|
errorInvalidDate: La,
|
|
1661
|
-
errorInvalidEmail:
|
|
1662
|
-
errorInvalidIdCard:
|
|
1661
|
+
errorInvalidEmail: Ga,
|
|
1662
|
+
errorInvalidIdCard: Oa,
|
|
1663
1663
|
errorInvalidName: Ha,
|
|
1664
1664
|
errorInvalidPhone: ja,
|
|
1665
1665
|
errorInvalidProviderName: Na,
|
|
@@ -1712,8 +1712,8 @@ const qi = "Account Name", fi = "Account Number", wi = "Unit Address", Mi = "I a
|
|
|
1712
1712
|
invoiceTypeTooltip: DI,
|
|
1713
1713
|
invoiceTypeX: RI,
|
|
1714
1714
|
invoiceUsageInfo: LI,
|
|
1715
|
-
invoicesPerMonth:
|
|
1716
|
-
legalRepInfo:
|
|
1715
|
+
invoicesPerMonth: GI,
|
|
1716
|
+
legalRepInfo: OI,
|
|
1717
1717
|
legalRepNote: HI,
|
|
1718
1718
|
taxNote: jI,
|
|
1719
1719
|
loading: NI,
|
|
@@ -1769,8 +1769,8 @@ const qi = "Account Name", fi = "Account Number", wi = "Unit Address", Mi = "I a
|
|
|
1769
1769
|
searchUnits: Dg,
|
|
1770
1770
|
select: Rg,
|
|
1771
1771
|
selectFile: Lg,
|
|
1772
|
-
selectInvoicePackage:
|
|
1773
|
-
selectProvider:
|
|
1772
|
+
selectInvoicePackage: Gg,
|
|
1773
|
+
selectProvider: Og,
|
|
1774
1774
|
selectSignaturePackage: Hg,
|
|
1775
1775
|
selectSubscriptionPackage: jg,
|
|
1776
1776
|
selectedProducts: Ng,
|
|
@@ -1823,8 +1823,8 @@ const qi = "Account Name", fi = "Account Number", wi = "Unit Address", Mi = "I a
|
|
|
1823
1823
|
handlingInstructions: DE,
|
|
1824
1824
|
email_support_info: RE,
|
|
1825
1825
|
includeInfo: LE,
|
|
1826
|
-
taxOrCompany:
|
|
1827
|
-
transactionAmountTime:
|
|
1826
|
+
taxOrCompany: GE,
|
|
1827
|
+
transactionAmountTime: OE,
|
|
1828
1828
|
transactionIdReceipt: HE,
|
|
1829
1829
|
completeInfoHelp: jE,
|
|
1830
1830
|
register_note: NE,
|
|
@@ -1877,8 +1877,8 @@ const qi = "Account Name", fi = "Account Number", wi = "Unit Address", Mi = "I a
|
|
|
1877
1877
|
confirmation_popup_taxCode: Dc,
|
|
1878
1878
|
confirmation_popup_representativeName: Rc,
|
|
1879
1879
|
confirmation_popup_buyerAddress: Lc,
|
|
1880
|
-
confirmation_popup_performerName:
|
|
1881
|
-
confirmation_popup_email:
|
|
1880
|
+
confirmation_popup_performerName: Gc,
|
|
1881
|
+
confirmation_popup_email: Oc,
|
|
1882
1882
|
confirmation_popup_phone: Hc,
|
|
1883
1883
|
order_not_found_title: jc,
|
|
1884
1884
|
businessRegistrationType: Nc,
|
|
@@ -2035,18 +2035,18 @@ var Tc = {
|
|
|
2035
2035
|
return i;
|
|
2036
2036
|
}
|
|
2037
2037
|
};
|
|
2038
|
-
let
|
|
2038
|
+
let iA = null;
|
|
2039
2039
|
const Fe = () => {
|
|
2040
|
-
if (
|
|
2040
|
+
if (iA !== null) return iA;
|
|
2041
2041
|
try {
|
|
2042
|
-
if (
|
|
2042
|
+
if (iA = typeof window != "undefined" && window.localStorage !== null, !iA)
|
|
2043
2043
|
return !1;
|
|
2044
2044
|
const e = "i18next.translate.boo";
|
|
2045
2045
|
window.localStorage.setItem(e, "foo"), window.localStorage.removeItem(e);
|
|
2046
2046
|
} catch (e) {
|
|
2047
|
-
|
|
2047
|
+
iA = !1;
|
|
2048
2048
|
}
|
|
2049
|
-
return
|
|
2049
|
+
return iA;
|
|
2050
2050
|
};
|
|
2051
2051
|
var $c = {
|
|
2052
2052
|
name: "localStorage",
|
|
@@ -2066,18 +2066,18 @@ var $c = {
|
|
|
2066
2066
|
t && Fe() && window.localStorage.setItem(t, e);
|
|
2067
2067
|
}
|
|
2068
2068
|
};
|
|
2069
|
-
let
|
|
2069
|
+
let nA = null;
|
|
2070
2070
|
const Ze = () => {
|
|
2071
|
-
if (
|
|
2071
|
+
if (nA !== null) return nA;
|
|
2072
2072
|
try {
|
|
2073
|
-
if (
|
|
2073
|
+
if (nA = typeof window != "undefined" && window.sessionStorage !== null, !nA)
|
|
2074
2074
|
return !1;
|
|
2075
2075
|
const e = "i18next.translate.boo";
|
|
2076
2076
|
window.sessionStorage.setItem(e, "foo"), window.sessionStorage.removeItem(e);
|
|
2077
2077
|
} catch (e) {
|
|
2078
|
-
|
|
2078
|
+
nA = !1;
|
|
2079
2079
|
}
|
|
2080
|
-
return
|
|
2080
|
+
return nA;
|
|
2081
2081
|
};
|
|
2082
2082
|
var _c = {
|
|
2083
2083
|
name: "sessionStorage",
|
|
@@ -2239,43 +2239,43 @@ function CQ(e, A, t) {
|
|
|
2239
2239
|
}
|
|
2240
2240
|
function sQ(e) {
|
|
2241
2241
|
var A = aQ(e, "string");
|
|
2242
|
-
return
|
|
2242
|
+
return _(A) == "symbol" ? A : A + "";
|
|
2243
2243
|
}
|
|
2244
2244
|
function aQ(e, A) {
|
|
2245
|
-
if (
|
|
2245
|
+
if (_(e) != "object" || !e) return e;
|
|
2246
2246
|
var t = e[Symbol.toPrimitive];
|
|
2247
2247
|
if (t !== void 0) {
|
|
2248
2248
|
var i = t.call(e, A);
|
|
2249
|
-
if (
|
|
2249
|
+
if (_(i) != "object") return i;
|
|
2250
2250
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2251
2251
|
}
|
|
2252
2252
|
return (A === "string" ? String : Number)(e);
|
|
2253
2253
|
}
|
|
2254
|
-
function
|
|
2254
|
+
function _(e) {
|
|
2255
2255
|
"@babel/helpers - typeof";
|
|
2256
|
-
return
|
|
2256
|
+
return _ = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(A) {
|
|
2257
2257
|
return typeof A;
|
|
2258
2258
|
} : function(A) {
|
|
2259
2259
|
return A && typeof Symbol == "function" && A.constructor === Symbol && A !== Symbol.prototype ? "symbol" : typeof A;
|
|
2260
|
-
},
|
|
2260
|
+
}, _(e);
|
|
2261
2261
|
}
|
|
2262
|
-
var
|
|
2263
|
-
typeof global != "undefined" && global.fetch ?
|
|
2264
|
-
var
|
|
2265
|
-
ht() && (typeof global != "undefined" && global.XMLHttpRequest ?
|
|
2266
|
-
var
|
|
2267
|
-
typeof ActiveXObject == "function" && (typeof global != "undefined" && global.ActiveXObject ?
|
|
2268
|
-
typeof
|
|
2269
|
-
if (!
|
|
2262
|
+
var U = typeof fetch == "function" ? fetch : void 0;
|
|
2263
|
+
typeof global != "undefined" && global.fetch ? U = global.fetch : typeof window != "undefined" && window.fetch && (U = window.fetch);
|
|
2264
|
+
var lA;
|
|
2265
|
+
ht() && (typeof global != "undefined" && global.XMLHttpRequest ? lA = global.XMLHttpRequest : typeof window != "undefined" && window.XMLHttpRequest && (lA = window.XMLHttpRequest));
|
|
2266
|
+
var LA;
|
|
2267
|
+
typeof ActiveXObject == "function" && (typeof global != "undefined" && global.ActiveXObject ? LA = global.ActiveXObject : typeof window != "undefined" && window.ActiveXObject && (LA = window.ActiveXObject));
|
|
2268
|
+
typeof U != "function" && (U = void 0);
|
|
2269
|
+
if (!U && !lA && !LA)
|
|
2270
2270
|
try {
|
|
2271
2271
|
import("./browser-ponyfill-BxQPfTD2.js").then((e) => e.b).then(function(e) {
|
|
2272
|
-
|
|
2272
|
+
U = e.default;
|
|
2273
2273
|
}).catch(function() {
|
|
2274
2274
|
});
|
|
2275
2275
|
} catch (e) {
|
|
2276
2276
|
}
|
|
2277
2277
|
var Ce = function(A, t) {
|
|
2278
|
-
if (t &&
|
|
2278
|
+
if (t && _(t) === "object") {
|
|
2279
2279
|
var i = "";
|
|
2280
2280
|
for (var n in t)
|
|
2281
2281
|
i += "&" + encodeURIComponent(n) + "=" + encodeURIComponent(t[n]);
|
|
@@ -2302,7 +2302,7 @@ var Ce = function(A, t) {
|
|
|
2302
2302
|
return;
|
|
2303
2303
|
}
|
|
2304
2304
|
}
|
|
2305
|
-
typeof fetch == "function" ? fetch(A, t).then(o).catch(i) :
|
|
2305
|
+
typeof fetch == "function" ? fetch(A, t).then(o).catch(i) : U(A, t).then(o).catch(i);
|
|
2306
2306
|
}, Xe = !1, IQ = function(A, t, i, n) {
|
|
2307
2307
|
A.queryStringParams && (t = Ce(t, A.queryStringParams));
|
|
2308
2308
|
var o = We({}, typeof A.customHeaders == "function" ? A.customHeaders() : A.customHeaders);
|
|
@@ -2326,9 +2326,9 @@ var Ce = function(A, t) {
|
|
|
2326
2326
|
}
|
|
2327
2327
|
}
|
|
2328
2328
|
}, gQ = function(A, t, i, n) {
|
|
2329
|
-
i &&
|
|
2329
|
+
i && _(i) === "object" && (i = Ce("", i).slice(1)), A.queryStringParams && (t = Ce(t, A.queryStringParams));
|
|
2330
2330
|
try {
|
|
2331
|
-
var o =
|
|
2331
|
+
var o = lA ? new lA() : new LA("MSXML2.XMLHTTP.3.0");
|
|
2332
2332
|
o.open(i ? "POST" : "GET", t, 1), A.crossDomain || o.setRequestHeader("X-Requested-With", "XMLHttpRequest"), o.withCredentials = !!A.withCredentials, i && o.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"), o.overrideMimeType && o.overrideMimeType("application/json");
|
|
2333
2333
|
var r = A.customHeaders;
|
|
2334
2334
|
if (r = typeof r == "function" ? r() : r, r)
|
|
@@ -2345,19 +2345,19 @@ var Ce = function(A, t) {
|
|
|
2345
2345
|
}
|
|
2346
2346
|
}, EQ = function(A, t, i, n) {
|
|
2347
2347
|
if (typeof i == "function" && (n = i, i = void 0), n = n || function() {
|
|
2348
|
-
},
|
|
2348
|
+
}, U && t.indexOf("file:") !== 0)
|
|
2349
2349
|
return IQ(A, t, i, n);
|
|
2350
2350
|
if (ht() || typeof ActiveXObject == "function")
|
|
2351
2351
|
return gQ(A, t, i, n);
|
|
2352
2352
|
n(new Error("No fetch and no xhr implementation found!"));
|
|
2353
2353
|
};
|
|
2354
|
-
function
|
|
2354
|
+
function oA(e) {
|
|
2355
2355
|
"@babel/helpers - typeof";
|
|
2356
|
-
return
|
|
2356
|
+
return oA = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(A) {
|
|
2357
2357
|
return typeof A;
|
|
2358
2358
|
} : function(A) {
|
|
2359
2359
|
return A && typeof Symbol == "function" && A.constructor === Symbol && A !== Symbol.prototype ? "symbol" : typeof A;
|
|
2360
|
-
},
|
|
2360
|
+
}, oA(e);
|
|
2361
2361
|
}
|
|
2362
2362
|
function Ve(e, A) {
|
|
2363
2363
|
var t = Object.keys(e);
|
|
@@ -2397,14 +2397,14 @@ function mt(e, A, t) {
|
|
|
2397
2397
|
}
|
|
2398
2398
|
function pt(e) {
|
|
2399
2399
|
var A = uQ(e, "string");
|
|
2400
|
-
return
|
|
2400
|
+
return oA(A) == "symbol" ? A : A + "";
|
|
2401
2401
|
}
|
|
2402
2402
|
function uQ(e, A) {
|
|
2403
|
-
if (
|
|
2403
|
+
if (oA(e) != "object" || !e) return e;
|
|
2404
2404
|
var t = e[Symbol.toPrimitive];
|
|
2405
2405
|
if (t !== void 0) {
|
|
2406
2406
|
var i = t.call(e, A);
|
|
2407
|
-
if (
|
|
2407
|
+
if (oA(i) != "object") return i;
|
|
2408
2408
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2409
2409
|
}
|
|
2410
2410
|
return String(e);
|
|
@@ -2448,7 +2448,7 @@ var dQ = function() {
|
|
|
2448
2448
|
var r = setInterval(function() {
|
|
2449
2449
|
return i.reload();
|
|
2450
2450
|
}, this.options.reloadInterval);
|
|
2451
|
-
|
|
2451
|
+
oA(r) === "object" && typeof r.unref == "function" && r.unref();
|
|
2452
2452
|
}
|
|
2453
2453
|
}
|
|
2454
2454
|
}, {
|
|
@@ -2482,21 +2482,21 @@ var dQ = function() {
|
|
|
2482
2482
|
if (g && (g.status >= 500 && g.status < 600 || !g.status)) return i("failed loading " + t + "; status code: " + g.status, !0);
|
|
2483
2483
|
if (g && g.status >= 400 && g.status < 500) return i("failed loading " + t + "; status code: " + g.status, !1);
|
|
2484
2484
|
if (!g && I && I.message) {
|
|
2485
|
-
var B = I.message.toLowerCase(), Q = ["failed", "fetch", "network", "load"].find(function(
|
|
2486
|
-
return B.indexOf(
|
|
2485
|
+
var B = I.message.toLowerCase(), Q = ["failed", "fetch", "network", "load"].find(function(d) {
|
|
2486
|
+
return B.indexOf(d) > -1;
|
|
2487
2487
|
});
|
|
2488
2488
|
if (Q)
|
|
2489
2489
|
return i("failed loading " + t + ": " + I.message, !0);
|
|
2490
2490
|
}
|
|
2491
2491
|
if (I) return i(I, !1);
|
|
2492
|
-
var
|
|
2492
|
+
var E, u;
|
|
2493
2493
|
try {
|
|
2494
|
-
typeof g.data == "string" ?
|
|
2495
|
-
} catch (
|
|
2496
|
-
|
|
2494
|
+
typeof g.data == "string" ? E = r.options.parse(g.data, n, o) : E = g.data;
|
|
2495
|
+
} catch (d) {
|
|
2496
|
+
u = "failed parsing " + t + " to json";
|
|
2497
2497
|
}
|
|
2498
|
-
if (
|
|
2499
|
-
i(null,
|
|
2498
|
+
if (u) return i(u, !1);
|
|
2499
|
+
i(null, E);
|
|
2500
2500
|
});
|
|
2501
2501
|
}
|
|
2502
2502
|
}, {
|
|
@@ -2509,12 +2509,12 @@ var dQ = function() {
|
|
|
2509
2509
|
t.forEach(function(B) {
|
|
2510
2510
|
var Q = C.options.addPath;
|
|
2511
2511
|
typeof C.options.addPath == "function" && (Q = C.options.addPath(B, i));
|
|
2512
|
-
var
|
|
2512
|
+
var E = C.services.interpolator.interpolate(Q, {
|
|
2513
2513
|
lng: B,
|
|
2514
2514
|
ns: i
|
|
2515
2515
|
});
|
|
2516
|
-
C.options.request(C.options,
|
|
2517
|
-
a += 1, I.push(
|
|
2516
|
+
C.options.request(C.options, E, s, function(u, d) {
|
|
2517
|
+
a += 1, I.push(u), g.push(d), a === t.length && typeof r == "function" && r(I, g);
|
|
2518
2518
|
});
|
|
2519
2519
|
});
|
|
2520
2520
|
}
|
|
@@ -2563,7 +2563,7 @@ function lQ(e) {
|
|
|
2563
2563
|
function wu() {
|
|
2564
2564
|
return S.language;
|
|
2565
2565
|
}
|
|
2566
|
-
function
|
|
2566
|
+
function G(e, A) {
|
|
2567
2567
|
return S.t(e, l({ returnObjects: !0 }, A));
|
|
2568
2568
|
}
|
|
2569
2569
|
let se = {
|
|
@@ -2599,13 +2599,13 @@ function hQ(e, A) {
|
|
|
2599
2599
|
function mQ(e = "dev") {
|
|
2600
2600
|
return se[e] || se.dev;
|
|
2601
2601
|
}
|
|
2602
|
-
let
|
|
2602
|
+
let JA = null, ae = !1;
|
|
2603
2603
|
function pQ(e) {
|
|
2604
2604
|
if (!["dev", "uat", "prod", "stag", "pilot"].includes(e))
|
|
2605
2605
|
throw new Error(
|
|
2606
2606
|
`Invalid mode: ${e}. Valid modes are 'dev', 'uat', 'prod', 'stag', 'pilot'.`
|
|
2607
2607
|
);
|
|
2608
|
-
|
|
2608
|
+
JA = e, ae = !0;
|
|
2609
2609
|
try {
|
|
2610
2610
|
localStorage.setItem("currentMode", e);
|
|
2611
2611
|
} catch (A) {
|
|
@@ -2613,12 +2613,12 @@ function pQ(e) {
|
|
|
2613
2613
|
}
|
|
2614
2614
|
}
|
|
2615
2615
|
function qQ() {
|
|
2616
|
-
if (ae &&
|
|
2617
|
-
return
|
|
2616
|
+
if (ae && JA)
|
|
2617
|
+
return JA;
|
|
2618
2618
|
try {
|
|
2619
2619
|
const e = localStorage.getItem("currentMode");
|
|
2620
2620
|
if (e)
|
|
2621
|
-
return
|
|
2621
|
+
return JA = e, ae = !0, e;
|
|
2622
2622
|
} catch (e) {
|
|
2623
2623
|
console.warn("Could not read from localStorage:", e);
|
|
2624
2624
|
}
|
|
@@ -2859,10 +2859,10 @@ const wQ = "data:image/svg+xml,%3csvg%20width='79'%20height='32'%20viewBox='0%20
|
|
|
2859
2859
|
}
|
|
2860
2860
|
}
|
|
2861
2861
|
}, VA = /* @__PURE__ */ new Map();
|
|
2862
|
-
function
|
|
2862
|
+
function cA(e, A) {
|
|
2863
2863
|
const t = l({}, e);
|
|
2864
2864
|
for (const i in A)
|
|
2865
|
-
A[i] && typeof A[i] == "object" && !Array.isArray(A[i]) ? t[i] =
|
|
2865
|
+
A[i] && typeof A[i] == "object" && !Array.isArray(A[i]) ? t[i] = cA(t[i] || {}, A[i]) : t[i] = A[i];
|
|
2866
2866
|
return t;
|
|
2867
2867
|
}
|
|
2868
2868
|
function zQ(e, A) {
|
|
@@ -2890,8 +2890,8 @@ function wt(e, A, t) {
|
|
|
2890
2890
|
if (VA.has(i))
|
|
2891
2891
|
return VA.get(i);
|
|
2892
2892
|
try {
|
|
2893
|
-
let s =
|
|
2894
|
-
return (n = $e[e]) != null && n[t] && (s =
|
|
2893
|
+
let s = cA({}, ft[t]);
|
|
2894
|
+
return (n = $e[e]) != null && n[t] && (s = cA(s, $e[e][t])), (o = _e[A]) != null && o[t] && (s = cA(s, _e[A][t])), (C = (r = At[e]) == null ? void 0 : r[A]) != null && C[t] && (s = cA(
|
|
2895
2895
|
s,
|
|
2896
2896
|
At[e][A][t]
|
|
2897
2897
|
)), zQ(s, t) ? (VA.set(i, s), s) : (console.error(
|
|
@@ -2940,45 +2940,45 @@ function Mt(e, A) {
|
|
|
2940
2940
|
return e.apply(A, arguments);
|
|
2941
2941
|
};
|
|
2942
2942
|
}
|
|
2943
|
-
const { toString:
|
|
2944
|
-
const t =
|
|
2943
|
+
const { toString: GQ } = Object.prototype, { getPrototypeOf: ue } = Object, { iterator: jA, toStringTag: Jt } = Symbol, NA = /* @__PURE__ */ ((e) => (A) => {
|
|
2944
|
+
const t = GQ.call(A);
|
|
2945
2945
|
return e[t] || (e[t] = t.slice(8, -1).toLowerCase());
|
|
2946
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
2947
|
-
function
|
|
2948
|
-
return e !== null && !
|
|
2946
|
+
})(/* @__PURE__ */ Object.create(null)), b = (e) => (e = e.toLowerCase(), (A) => NA(A) === e), YA = (e) => (A) => typeof A === e, { isArray: CA } = Array, hA = YA("undefined");
|
|
2947
|
+
function mA(e) {
|
|
2948
|
+
return e !== null && !hA(e) && e.constructor !== null && !hA(e.constructor) && O(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
2949
2949
|
}
|
|
2950
|
-
const yt =
|
|
2951
|
-
function
|
|
2950
|
+
const yt = b("ArrayBuffer");
|
|
2951
|
+
function OQ(e) {
|
|
2952
2952
|
let A;
|
|
2953
2953
|
return typeof ArrayBuffer != "undefined" && ArrayBuffer.isView ? A = ArrayBuffer.isView(e) : A = e && e.buffer && yt(e.buffer), A;
|
|
2954
2954
|
}
|
|
2955
|
-
const HQ =
|
|
2956
|
-
if (
|
|
2955
|
+
const HQ = YA("string"), O = YA("function"), zt = YA("number"), pA = (e) => e !== null && typeof e == "object", jQ = (e) => e === !0 || e === !1, yA = (e) => {
|
|
2956
|
+
if (NA(e) !== "object")
|
|
2957
2957
|
return !1;
|
|
2958
2958
|
const A = ue(e);
|
|
2959
|
-
return (A === null || A === Object.prototype || Object.getPrototypeOf(A) === null) && !(Jt in e) && !(
|
|
2959
|
+
return (A === null || A === Object.prototype || Object.getPrototypeOf(A) === null) && !(Jt in e) && !(jA in e);
|
|
2960
2960
|
}, NQ = (e) => {
|
|
2961
|
-
if (!
|
|
2961
|
+
if (!pA(e) || mA(e))
|
|
2962
2962
|
return !1;
|
|
2963
2963
|
try {
|
|
2964
2964
|
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
2965
2965
|
} catch (A) {
|
|
2966
2966
|
return !1;
|
|
2967
2967
|
}
|
|
2968
|
-
}, YQ =
|
|
2968
|
+
}, YQ = b("Date"), bQ = b("File"), xQ = b("Blob"), PQ = b("FileList"), FQ = (e) => pA(e) && O(e.pipe), ZQ = (e) => {
|
|
2969
2969
|
let A;
|
|
2970
|
-
return e && (typeof FormData == "function" && e instanceof FormData ||
|
|
2971
|
-
A === "object" &&
|
|
2972
|
-
}, UQ =
|
|
2973
|
-
function
|
|
2970
|
+
return e && (typeof FormData == "function" && e instanceof FormData || O(e.append) && ((A = NA(e)) === "formdata" || // detect form-data instance
|
|
2971
|
+
A === "object" && O(e.toString) && e.toString() === "[object FormData]"));
|
|
2972
|
+
}, UQ = b("URLSearchParams"), [WQ, TQ, XQ, VQ] = ["ReadableStream", "Request", "Response", "Headers"].map(b), $Q = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
2973
|
+
function qA(e, A, { allOwnKeys: t = !1 } = {}) {
|
|
2974
2974
|
if (e === null || typeof e == "undefined")
|
|
2975
2975
|
return;
|
|
2976
2976
|
let i, n;
|
|
2977
|
-
if (typeof e != "object" && (e = [e]),
|
|
2977
|
+
if (typeof e != "object" && (e = [e]), CA(e))
|
|
2978
2978
|
for (i = 0, n = e.length; i < n; i++)
|
|
2979
2979
|
A.call(null, e[i], i, e);
|
|
2980
2980
|
else {
|
|
2981
|
-
if (
|
|
2981
|
+
if (mA(e))
|
|
2982
2982
|
return;
|
|
2983
2983
|
const o = t ? Object.getOwnPropertyNames(e) : Object.keys(e), r = o.length;
|
|
2984
2984
|
let C;
|
|
@@ -2987,7 +2987,7 @@ function fA(e, A, { allOwnKeys: t = !1 } = {}) {
|
|
|
2987
2987
|
}
|
|
2988
2988
|
}
|
|
2989
2989
|
function St(e, A) {
|
|
2990
|
-
if (
|
|
2990
|
+
if (mA(e))
|
|
2991
2991
|
return null;
|
|
2992
2992
|
A = A.toLowerCase();
|
|
2993
2993
|
const t = Object.keys(e);
|
|
@@ -2997,18 +2997,18 @@ function St(e, A) {
|
|
|
2997
2997
|
return n;
|
|
2998
2998
|
return null;
|
|
2999
2999
|
}
|
|
3000
|
-
const
|
|
3000
|
+
const V = typeof globalThis != "undefined" ? globalThis : typeof self != "undefined" ? self : typeof window != "undefined" ? window : global, Kt = (e) => !hA(e) && e !== V;
|
|
3001
3001
|
function Ie() {
|
|
3002
3002
|
const { caseless: e } = Kt(this) && this || {}, A = {}, t = (i, n) => {
|
|
3003
3003
|
const o = e && St(A, n) || n;
|
|
3004
|
-
|
|
3004
|
+
yA(A[o]) && yA(i) ? A[o] = Ie(A[o], i) : yA(i) ? A[o] = Ie({}, i) : CA(i) ? A[o] = i.slice() : A[o] = i;
|
|
3005
3005
|
};
|
|
3006
3006
|
for (let i = 0, n = arguments.length; i < n; i++)
|
|
3007
|
-
arguments[i] &&
|
|
3007
|
+
arguments[i] && qA(arguments[i], t);
|
|
3008
3008
|
return A;
|
|
3009
3009
|
}
|
|
3010
|
-
const _Q = (e, A, t, { allOwnKeys: i } = {}) => (
|
|
3011
|
-
t &&
|
|
3010
|
+
const _Q = (e, A, t, { allOwnKeys: i } = {}) => (qA(A, (n, o) => {
|
|
3011
|
+
t && O(n) ? e[o] = Mt(n, t) : e[o] = n;
|
|
3012
3012
|
}, { allOwnKeys: i }), e), AB = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), eB = (e, A, t, i) => {
|
|
3013
3013
|
e.prototype = Object.create(A.prototype, i), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
3014
3014
|
value: A.prototype
|
|
@@ -3029,7 +3029,7 @@ const _Q = (e, A, t, { allOwnKeys: i } = {}) => (fA(A, (n, o) => {
|
|
|
3029
3029
|
return i !== -1 && i === t;
|
|
3030
3030
|
}, nB = (e) => {
|
|
3031
3031
|
if (!e) return null;
|
|
3032
|
-
if (
|
|
3032
|
+
if (CA(e)) return e;
|
|
3033
3033
|
let A = e.length;
|
|
3034
3034
|
if (!zt(A)) return null;
|
|
3035
3035
|
const t = new Array(A);
|
|
@@ -3037,7 +3037,7 @@ const _Q = (e, A, t, { allOwnKeys: i } = {}) => (fA(A, (n, o) => {
|
|
|
3037
3037
|
t[A] = e[A];
|
|
3038
3038
|
return t;
|
|
3039
3039
|
}, oB = /* @__PURE__ */ ((e) => (A) => e && A instanceof e)(typeof Uint8Array != "undefined" && ue(Uint8Array)), rB = (e, A) => {
|
|
3040
|
-
const i = (e && e[
|
|
3040
|
+
const i = (e && e[jA]).call(e);
|
|
3041
3041
|
let n;
|
|
3042
3042
|
for (; (n = i.next()) && !n.done; ) {
|
|
3043
3043
|
const o = n.value;
|
|
@@ -3049,23 +3049,23 @@ const _Q = (e, A, t, { allOwnKeys: i } = {}) => (fA(A, (n, o) => {
|
|
|
3049
3049
|
for (; (t = e.exec(A)) !== null; )
|
|
3050
3050
|
i.push(t);
|
|
3051
3051
|
return i;
|
|
3052
|
-
}, sB =
|
|
3052
|
+
}, sB = b("HTMLFormElement"), aB = (e) => e.toLowerCase().replace(
|
|
3053
3053
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
3054
3054
|
function(t, i, n) {
|
|
3055
3055
|
return i.toUpperCase() + n;
|
|
3056
3056
|
}
|
|
3057
|
-
), et = (({ hasOwnProperty: e }) => (A, t) => e.call(A, t))(Object.prototype), IB =
|
|
3057
|
+
), et = (({ hasOwnProperty: e }) => (A, t) => e.call(A, t))(Object.prototype), IB = b("RegExp"), vt = (e, A) => {
|
|
3058
3058
|
const t = Object.getOwnPropertyDescriptors(e), i = {};
|
|
3059
|
-
|
|
3059
|
+
qA(t, (n, o) => {
|
|
3060
3060
|
let r;
|
|
3061
3061
|
(r = A(n, o, e)) !== !1 && (i[o] = r || n);
|
|
3062
3062
|
}), Object.defineProperties(e, i);
|
|
3063
3063
|
}, gB = (e) => {
|
|
3064
3064
|
vt(e, (A, t) => {
|
|
3065
|
-
if (
|
|
3065
|
+
if (O(e) && ["arguments", "caller", "callee"].indexOf(t) !== -1)
|
|
3066
3066
|
return !1;
|
|
3067
3067
|
const i = e[t];
|
|
3068
|
-
if (
|
|
3068
|
+
if (O(i)) {
|
|
3069
3069
|
if (A.enumerable = !1, "writable" in A) {
|
|
3070
3070
|
A.writable = !1;
|
|
3071
3071
|
return;
|
|
@@ -3081,73 +3081,73 @@ const _Q = (e, A, t, { allOwnKeys: i } = {}) => (fA(A, (n, o) => {
|
|
|
3081
3081
|
t[o] = !0;
|
|
3082
3082
|
});
|
|
3083
3083
|
};
|
|
3084
|
-
return
|
|
3084
|
+
return CA(e) ? i(e) : i(String(e).split(A)), t;
|
|
3085
3085
|
}, cB = () => {
|
|
3086
3086
|
}, QB = (e, A) => e != null && Number.isFinite(e = +e) ? e : A;
|
|
3087
3087
|
function BB(e) {
|
|
3088
|
-
return !!(e &&
|
|
3088
|
+
return !!(e && O(e.append) && e[Jt] === "FormData" && e[jA]);
|
|
3089
3089
|
}
|
|
3090
3090
|
const uB = (e) => {
|
|
3091
3091
|
const A = new Array(10), t = (i, n) => {
|
|
3092
|
-
if (
|
|
3092
|
+
if (pA(i)) {
|
|
3093
3093
|
if (A.indexOf(i) >= 0)
|
|
3094
3094
|
return;
|
|
3095
|
-
if (
|
|
3095
|
+
if (mA(i))
|
|
3096
3096
|
return i;
|
|
3097
3097
|
if (!("toJSON" in i)) {
|
|
3098
3098
|
A[n] = i;
|
|
3099
|
-
const o =
|
|
3100
|
-
return
|
|
3099
|
+
const o = CA(i) ? [] : {};
|
|
3100
|
+
return qA(i, (r, C) => {
|
|
3101
3101
|
const s = t(r, n + 1);
|
|
3102
|
-
!
|
|
3102
|
+
!hA(s) && (o[C] = s);
|
|
3103
3103
|
}), A[n] = void 0, o;
|
|
3104
3104
|
}
|
|
3105
3105
|
}
|
|
3106
3106
|
return i;
|
|
3107
3107
|
};
|
|
3108
3108
|
return t(e, 0);
|
|
3109
|
-
}, dB =
|
|
3110
|
-
n ===
|
|
3109
|
+
}, dB = b("AsyncFunction"), lB = (e) => e && (pA(e) || O(e)) && O(e.then) && O(e.catch), kt = ((e, A) => e ? setImmediate : A ? ((t, i) => (V.addEventListener("message", ({ source: n, data: o }) => {
|
|
3110
|
+
n === V && o === t && i.length && i.shift()();
|
|
3111
3111
|
}, !1), (n) => {
|
|
3112
|
-
i.push(n),
|
|
3112
|
+
i.push(n), V.postMessage(t, "*");
|
|
3113
3113
|
}))(`axios@${Math.random()}`, []) : (t) => setTimeout(t))(
|
|
3114
3114
|
typeof setImmediate == "function",
|
|
3115
|
-
|
|
3116
|
-
), hB = typeof queueMicrotask != "undefined" ? queueMicrotask.bind(
|
|
3117
|
-
isArray:
|
|
3115
|
+
O(V.postMessage)
|
|
3116
|
+
), hB = typeof queueMicrotask != "undefined" ? queueMicrotask.bind(V) : typeof process != "undefined" && process.nextTick || kt, mB = (e) => e != null && O(e[jA]), c = {
|
|
3117
|
+
isArray: CA,
|
|
3118
3118
|
isArrayBuffer: yt,
|
|
3119
|
-
isBuffer:
|
|
3119
|
+
isBuffer: mA,
|
|
3120
3120
|
isFormData: ZQ,
|
|
3121
|
-
isArrayBufferView:
|
|
3121
|
+
isArrayBufferView: OQ,
|
|
3122
3122
|
isString: HQ,
|
|
3123
3123
|
isNumber: zt,
|
|
3124
3124
|
isBoolean: jQ,
|
|
3125
|
-
isObject:
|
|
3126
|
-
isPlainObject:
|
|
3125
|
+
isObject: pA,
|
|
3126
|
+
isPlainObject: yA,
|
|
3127
3127
|
isEmptyObject: NQ,
|
|
3128
3128
|
isReadableStream: WQ,
|
|
3129
3129
|
isRequest: TQ,
|
|
3130
3130
|
isResponse: XQ,
|
|
3131
3131
|
isHeaders: VQ,
|
|
3132
|
-
isUndefined:
|
|
3132
|
+
isUndefined: hA,
|
|
3133
3133
|
isDate: YQ,
|
|
3134
3134
|
isFile: bQ,
|
|
3135
3135
|
isBlob: xQ,
|
|
3136
3136
|
isRegExp: IB,
|
|
3137
|
-
isFunction:
|
|
3137
|
+
isFunction: O,
|
|
3138
3138
|
isStream: FQ,
|
|
3139
3139
|
isURLSearchParams: UQ,
|
|
3140
3140
|
isTypedArray: oB,
|
|
3141
3141
|
isFileList: PQ,
|
|
3142
|
-
forEach:
|
|
3142
|
+
forEach: qA,
|
|
3143
3143
|
merge: Ie,
|
|
3144
3144
|
extend: _Q,
|
|
3145
3145
|
trim: $Q,
|
|
3146
3146
|
stripBOM: AB,
|
|
3147
3147
|
inherits: eB,
|
|
3148
3148
|
toFlatObject: tB,
|
|
3149
|
-
kindOf:
|
|
3150
|
-
kindOfTest:
|
|
3149
|
+
kindOf: NA,
|
|
3150
|
+
kindOfTest: b,
|
|
3151
3151
|
endsWith: iB,
|
|
3152
3152
|
toArray: nB,
|
|
3153
3153
|
forEachEntry: rB,
|
|
@@ -3163,7 +3163,7 @@ const uB = (e) => {
|
|
|
3163
3163
|
noop: cB,
|
|
3164
3164
|
toFiniteNumber: QB,
|
|
3165
3165
|
findKey: St,
|
|
3166
|
-
global:
|
|
3166
|
+
global: V,
|
|
3167
3167
|
isContextDefined: Kt,
|
|
3168
3168
|
isSpecCompliantForm: BB,
|
|
3169
3169
|
toJSONObject: uB,
|
|
@@ -3176,7 +3176,7 @@ const uB = (e) => {
|
|
|
3176
3176
|
function p(e, A, t, i, n) {
|
|
3177
3177
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", A && (this.code = A), t && (this.config = t), i && (this.request = i), n && (this.response = n, this.status = n.status ? n.status : null);
|
|
3178
3178
|
}
|
|
3179
|
-
|
|
3179
|
+
c.inherits(p, Error, {
|
|
3180
3180
|
toJSON: function() {
|
|
3181
3181
|
return {
|
|
3182
3182
|
// Standard
|
|
@@ -3191,7 +3191,7 @@ E.inherits(p, Error, {
|
|
|
3191
3191
|
columnNumber: this.columnNumber,
|
|
3192
3192
|
stack: this.stack,
|
|
3193
3193
|
// Axios
|
|
3194
|
-
config:
|
|
3194
|
+
config: c.toJSONObject(this.config),
|
|
3195
3195
|
code: this.code,
|
|
3196
3196
|
status: this.status
|
|
3197
3197
|
};
|
|
@@ -3219,16 +3219,16 @@ Object.defineProperties(p, Rt);
|
|
|
3219
3219
|
Object.defineProperty(Dt, "isAxiosError", { value: !0 });
|
|
3220
3220
|
p.from = (e, A, t, i, n, o) => {
|
|
3221
3221
|
const r = Object.create(Dt);
|
|
3222
|
-
return
|
|
3222
|
+
return c.toFlatObject(e, r, function(s) {
|
|
3223
3223
|
return s !== Error.prototype;
|
|
3224
3224
|
}, (C) => C !== "isAxiosError"), p.call(r, e.message, A, t, i, n), r.cause = e, r.name = e.name, o && Object.assign(r, o), r;
|
|
3225
3225
|
};
|
|
3226
3226
|
const pB = null;
|
|
3227
3227
|
function ge(e) {
|
|
3228
|
-
return
|
|
3228
|
+
return c.isPlainObject(e) || c.isArray(e);
|
|
3229
3229
|
}
|
|
3230
3230
|
function Lt(e) {
|
|
3231
|
-
return
|
|
3231
|
+
return c.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
3232
3232
|
}
|
|
3233
3233
|
function tt(e, A, t) {
|
|
3234
3234
|
return e ? e.concat(A).map(function(n, o) {
|
|
@@ -3236,71 +3236,71 @@ function tt(e, A, t) {
|
|
|
3236
3236
|
}).join(t ? "." : "") : A;
|
|
3237
3237
|
}
|
|
3238
3238
|
function qB(e) {
|
|
3239
|
-
return
|
|
3239
|
+
return c.isArray(e) && !e.some(ge);
|
|
3240
3240
|
}
|
|
3241
|
-
const fB =
|
|
3241
|
+
const fB = c.toFlatObject(c, {}, null, function(A) {
|
|
3242
3242
|
return /^is[A-Z]/.test(A);
|
|
3243
3243
|
});
|
|
3244
|
-
function
|
|
3245
|
-
if (!
|
|
3244
|
+
function bA(e, A, t) {
|
|
3245
|
+
if (!c.isObject(e))
|
|
3246
3246
|
throw new TypeError("target must be an object");
|
|
3247
|
-
A = A || new FormData(), t =
|
|
3247
|
+
A = A || new FormData(), t = c.toFlatObject(t, {
|
|
3248
3248
|
metaTokens: !0,
|
|
3249
3249
|
dots: !1,
|
|
3250
3250
|
indexes: !1
|
|
3251
|
-
}, !1, function(
|
|
3252
|
-
return !
|
|
3251
|
+
}, !1, function(u, d) {
|
|
3252
|
+
return !c.isUndefined(d[u]);
|
|
3253
3253
|
});
|
|
3254
|
-
const i = t.metaTokens, n = t.visitor || I, o = t.dots, r = t.indexes, s = (t.Blob || typeof Blob != "undefined" && Blob) &&
|
|
3255
|
-
if (!
|
|
3254
|
+
const i = t.metaTokens, n = t.visitor || I, o = t.dots, r = t.indexes, s = (t.Blob || typeof Blob != "undefined" && Blob) && c.isSpecCompliantForm(A);
|
|
3255
|
+
if (!c.isFunction(n))
|
|
3256
3256
|
throw new TypeError("visitor must be a function");
|
|
3257
|
-
function a(
|
|
3258
|
-
if (
|
|
3259
|
-
if (
|
|
3260
|
-
return
|
|
3261
|
-
if (
|
|
3262
|
-
return
|
|
3263
|
-
if (!s &&
|
|
3257
|
+
function a(E) {
|
|
3258
|
+
if (E === null) return "";
|
|
3259
|
+
if (c.isDate(E))
|
|
3260
|
+
return E.toISOString();
|
|
3261
|
+
if (c.isBoolean(E))
|
|
3262
|
+
return E.toString();
|
|
3263
|
+
if (!s && c.isBlob(E))
|
|
3264
3264
|
throw new p("Blob is not supported. Use a Buffer instead.");
|
|
3265
|
-
return
|
|
3266
|
-
}
|
|
3267
|
-
function I(
|
|
3268
|
-
let
|
|
3269
|
-
if (
|
|
3270
|
-
if (
|
|
3271
|
-
|
|
3272
|
-
else if (
|
|
3273
|
-
return
|
|
3274
|
-
!(
|
|
3265
|
+
return c.isArrayBuffer(E) || c.isTypedArray(E) ? s && typeof Blob == "function" ? new Blob([E]) : Buffer.from(E) : E;
|
|
3266
|
+
}
|
|
3267
|
+
function I(E, u, d) {
|
|
3268
|
+
let q = E;
|
|
3269
|
+
if (E && !d && typeof E == "object") {
|
|
3270
|
+
if (c.endsWith(u, "{}"))
|
|
3271
|
+
u = i ? u : u.slice(0, -2), E = JSON.stringify(E);
|
|
3272
|
+
else if (c.isArray(E) && qB(E) || (c.isFileList(E) || c.endsWith(u, "[]")) && (q = c.toArray(E)))
|
|
3273
|
+
return u = Lt(u), q.forEach(function(w, J) {
|
|
3274
|
+
!(c.isUndefined(w) || w === null) && A.append(
|
|
3275
3275
|
// eslint-disable-next-line no-nested-ternary
|
|
3276
|
-
r === !0 ? tt([
|
|
3276
|
+
r === !0 ? tt([u], J, o) : r === null ? u : u + "[]",
|
|
3277
3277
|
a(w)
|
|
3278
3278
|
);
|
|
3279
3279
|
}), !1;
|
|
3280
3280
|
}
|
|
3281
|
-
return ge(
|
|
3281
|
+
return ge(E) ? !0 : (A.append(tt(d, u, o), a(E)), !1);
|
|
3282
3282
|
}
|
|
3283
3283
|
const g = [], B = Object.assign(fB, {
|
|
3284
3284
|
defaultVisitor: I,
|
|
3285
3285
|
convertValue: a,
|
|
3286
3286
|
isVisitable: ge
|
|
3287
3287
|
});
|
|
3288
|
-
function Q(
|
|
3289
|
-
if (!
|
|
3290
|
-
if (g.indexOf(
|
|
3291
|
-
throw Error("Circular reference detected in " +
|
|
3292
|
-
g.push(
|
|
3293
|
-
(!(
|
|
3288
|
+
function Q(E, u) {
|
|
3289
|
+
if (!c.isUndefined(E)) {
|
|
3290
|
+
if (g.indexOf(E) !== -1)
|
|
3291
|
+
throw Error("Circular reference detected in " + u.join("."));
|
|
3292
|
+
g.push(E), c.forEach(E, function(q, m) {
|
|
3293
|
+
(!(c.isUndefined(q) || q === null) && n.call(
|
|
3294
3294
|
A,
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3295
|
+
q,
|
|
3296
|
+
c.isString(m) ? m.trim() : m,
|
|
3297
|
+
u,
|
|
3298
3298
|
B
|
|
3299
|
-
)) === !0 && Q(
|
|
3299
|
+
)) === !0 && Q(q, u ? u.concat(m) : [m]);
|
|
3300
3300
|
}), g.pop();
|
|
3301
3301
|
}
|
|
3302
3302
|
}
|
|
3303
|
-
if (!
|
|
3303
|
+
if (!c.isObject(e))
|
|
3304
3304
|
throw new TypeError("data must be an object");
|
|
3305
3305
|
return Q(e), A;
|
|
3306
3306
|
}
|
|
@@ -3319,13 +3319,13 @@ function it(e) {
|
|
|
3319
3319
|
});
|
|
3320
3320
|
}
|
|
3321
3321
|
function de(e, A) {
|
|
3322
|
-
this._pairs = [], e &&
|
|
3322
|
+
this._pairs = [], e && bA(e, this, A);
|
|
3323
3323
|
}
|
|
3324
|
-
const
|
|
3325
|
-
|
|
3324
|
+
const Gt = de.prototype;
|
|
3325
|
+
Gt.append = function(A, t) {
|
|
3326
3326
|
this._pairs.push([A, t]);
|
|
3327
3327
|
};
|
|
3328
|
-
|
|
3328
|
+
Gt.toString = function(A) {
|
|
3329
3329
|
const t = A ? function(i) {
|
|
3330
3330
|
return A.call(this, i, it);
|
|
3331
3331
|
} : it;
|
|
@@ -3336,16 +3336,16 @@ Ot.toString = function(A) {
|
|
|
3336
3336
|
function wB(e) {
|
|
3337
3337
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
3338
3338
|
}
|
|
3339
|
-
function
|
|
3339
|
+
function Ot(e, A, t) {
|
|
3340
3340
|
if (!A)
|
|
3341
3341
|
return e;
|
|
3342
3342
|
const i = t && t.encode || wB;
|
|
3343
|
-
|
|
3343
|
+
c.isFunction(t) && (t = {
|
|
3344
3344
|
serialize: t
|
|
3345
3345
|
});
|
|
3346
3346
|
const n = t && t.serialize;
|
|
3347
3347
|
let o;
|
|
3348
|
-
if (n ? o = n(A, t) : o =
|
|
3348
|
+
if (n ? o = n(A, t) : o = c.isURLSearchParams(A) ? A.toString() : new de(A, t).toString(i), o) {
|
|
3349
3349
|
const r = e.indexOf("#");
|
|
3350
3350
|
r !== -1 && (e = e.slice(0, r)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
|
|
3351
3351
|
}
|
|
@@ -3400,7 +3400,7 @@ class nt {
|
|
|
3400
3400
|
* @returns {void}
|
|
3401
3401
|
*/
|
|
3402
3402
|
forEach(A) {
|
|
3403
|
-
|
|
3403
|
+
c.forEach(this.handlers, function(i) {
|
|
3404
3404
|
i !== null && A(i);
|
|
3405
3405
|
});
|
|
3406
3406
|
}
|
|
@@ -3427,14 +3427,14 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", vB
|
|
|
3427
3427
|
origin: vB
|
|
3428
3428
|
}, Symbol.toStringTag, { value: "Module" })), R = l(l({}, kB), zB);
|
|
3429
3429
|
function DB(e, A) {
|
|
3430
|
-
return
|
|
3430
|
+
return bA(e, new R.classes.URLSearchParams(), l({
|
|
3431
3431
|
visitor: function(t, i, n, o) {
|
|
3432
|
-
return R.isNode &&
|
|
3432
|
+
return R.isNode && c.isBuffer(t) ? (this.append(i, t.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
3433
3433
|
}
|
|
3434
3434
|
}, A));
|
|
3435
3435
|
}
|
|
3436
3436
|
function RB(e) {
|
|
3437
|
-
return
|
|
3437
|
+
return c.matchAll(/\w+|\[(\w*)]/g, e).map((A) => A[0] === "[]" ? "" : A[1] || A[0]);
|
|
3438
3438
|
}
|
|
3439
3439
|
function LB(e) {
|
|
3440
3440
|
const A = {}, t = Object.keys(e);
|
|
@@ -3450,59 +3450,59 @@ function jt(e) {
|
|
|
3450
3450
|
let r = t[o++];
|
|
3451
3451
|
if (r === "__proto__") return !0;
|
|
3452
3452
|
const C = Number.isFinite(+r), s = o >= t.length;
|
|
3453
|
-
return r = !r &&
|
|
3453
|
+
return r = !r && c.isArray(n) ? n.length : r, s ? (c.hasOwnProp(n, r) ? n[r] = [n[r], i] : n[r] = i, !C) : ((!n[r] || !c.isObject(n[r])) && (n[r] = []), A(t, i, n[r], o) && c.isArray(n[r]) && (n[r] = LB(n[r])), !C);
|
|
3454
3454
|
}
|
|
3455
|
-
if (
|
|
3455
|
+
if (c.isFormData(e) && c.isFunction(e.entries)) {
|
|
3456
3456
|
const t = {};
|
|
3457
|
-
return
|
|
3457
|
+
return c.forEachEntry(e, (i, n) => {
|
|
3458
3458
|
A(RB(i), n, t, 0);
|
|
3459
3459
|
}), t;
|
|
3460
3460
|
}
|
|
3461
3461
|
return null;
|
|
3462
3462
|
}
|
|
3463
|
-
function
|
|
3464
|
-
if (
|
|
3463
|
+
function GB(e, A, t) {
|
|
3464
|
+
if (c.isString(e))
|
|
3465
3465
|
try {
|
|
3466
|
-
return (A || JSON.parse)(e),
|
|
3466
|
+
return (A || JSON.parse)(e), c.trim(e);
|
|
3467
3467
|
} catch (i) {
|
|
3468
3468
|
if (i.name !== "SyntaxError")
|
|
3469
3469
|
throw i;
|
|
3470
3470
|
}
|
|
3471
3471
|
return (t || JSON.stringify)(e);
|
|
3472
3472
|
}
|
|
3473
|
-
const
|
|
3473
|
+
const fA = {
|
|
3474
3474
|
transitional: Ht,
|
|
3475
3475
|
adapter: ["xhr", "http", "fetch"],
|
|
3476
3476
|
transformRequest: [function(A, t) {
|
|
3477
|
-
const i = t.getContentType() || "", n = i.indexOf("application/json") > -1, o =
|
|
3478
|
-
if (o &&
|
|
3477
|
+
const i = t.getContentType() || "", n = i.indexOf("application/json") > -1, o = c.isObject(A);
|
|
3478
|
+
if (o && c.isHTMLForm(A) && (A = new FormData(A)), c.isFormData(A))
|
|
3479
3479
|
return n ? JSON.stringify(jt(A)) : A;
|
|
3480
|
-
if (
|
|
3480
|
+
if (c.isArrayBuffer(A) || c.isBuffer(A) || c.isStream(A) || c.isFile(A) || c.isBlob(A) || c.isReadableStream(A))
|
|
3481
3481
|
return A;
|
|
3482
|
-
if (
|
|
3482
|
+
if (c.isArrayBufferView(A))
|
|
3483
3483
|
return A.buffer;
|
|
3484
|
-
if (
|
|
3484
|
+
if (c.isURLSearchParams(A))
|
|
3485
3485
|
return t.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), A.toString();
|
|
3486
3486
|
let C;
|
|
3487
3487
|
if (o) {
|
|
3488
3488
|
if (i.indexOf("application/x-www-form-urlencoded") > -1)
|
|
3489
3489
|
return DB(A, this.formSerializer).toString();
|
|
3490
|
-
if ((C =
|
|
3490
|
+
if ((C = c.isFileList(A)) || i.indexOf("multipart/form-data") > -1) {
|
|
3491
3491
|
const s = this.env && this.env.FormData;
|
|
3492
|
-
return
|
|
3492
|
+
return bA(
|
|
3493
3493
|
C ? { "files[]": A } : A,
|
|
3494
3494
|
s && new s(),
|
|
3495
3495
|
this.formSerializer
|
|
3496
3496
|
);
|
|
3497
3497
|
}
|
|
3498
3498
|
}
|
|
3499
|
-
return o || n ? (t.setContentType("application/json", !1),
|
|
3499
|
+
return o || n ? (t.setContentType("application/json", !1), GB(A)) : A;
|
|
3500
3500
|
}],
|
|
3501
3501
|
transformResponse: [function(A) {
|
|
3502
|
-
const t = this.transitional ||
|
|
3503
|
-
if (
|
|
3502
|
+
const t = this.transitional || fA.transitional, i = t && t.forcedJSONParsing, n = this.responseType === "json";
|
|
3503
|
+
if (c.isResponse(A) || c.isReadableStream(A))
|
|
3504
3504
|
return A;
|
|
3505
|
-
if (A &&
|
|
3505
|
+
if (A && c.isString(A) && (i && !this.responseType || n)) {
|
|
3506
3506
|
const r = !(t && t.silentJSONParsing) && n;
|
|
3507
3507
|
try {
|
|
3508
3508
|
return JSON.parse(A);
|
|
@@ -3536,10 +3536,10 @@ const wA = {
|
|
|
3536
3536
|
}
|
|
3537
3537
|
}
|
|
3538
3538
|
};
|
|
3539
|
-
|
|
3540
|
-
|
|
3539
|
+
c.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
3540
|
+
fA.headers[e] = {};
|
|
3541
3541
|
});
|
|
3542
|
-
const
|
|
3542
|
+
const OB = c.toObjectSet([
|
|
3543
3543
|
"age",
|
|
3544
3544
|
"authorization",
|
|
3545
3545
|
"content-length",
|
|
@@ -3562,14 +3562,14 @@ const GB = E.toObjectSet([
|
|
|
3562
3562
|
let t, i, n;
|
|
3563
3563
|
return e && e.split(`
|
|
3564
3564
|
`).forEach(function(r) {
|
|
3565
|
-
n = r.indexOf(":"), t = r.substring(0, n).trim().toLowerCase(), i = r.substring(n + 1).trim(), !(!t || A[t] &&
|
|
3565
|
+
n = r.indexOf(":"), t = r.substring(0, n).trim().toLowerCase(), i = r.substring(n + 1).trim(), !(!t || A[t] && OB[t]) && (t === "set-cookie" ? A[t] ? A[t].push(i) : A[t] = [i] : A[t] = A[t] ? A[t] + ", " + i : i);
|
|
3566
3566
|
}), A;
|
|
3567
3567
|
}, ot = Symbol("internals");
|
|
3568
|
-
function
|
|
3568
|
+
function EA(e) {
|
|
3569
3569
|
return e && String(e).trim().toLowerCase();
|
|
3570
3570
|
}
|
|
3571
|
-
function
|
|
3572
|
-
return e === !1 || e == null ? e :
|
|
3571
|
+
function zA(e) {
|
|
3572
|
+
return e === !1 || e == null ? e : c.isArray(e) ? e.map(zA) : String(e);
|
|
3573
3573
|
}
|
|
3574
3574
|
function jB(e) {
|
|
3575
3575
|
const A = /* @__PURE__ */ Object.create(null), t = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -3580,12 +3580,12 @@ function jB(e) {
|
|
|
3580
3580
|
}
|
|
3581
3581
|
const NB = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
3582
3582
|
function _A(e, A, t, i, n) {
|
|
3583
|
-
if (
|
|
3583
|
+
if (c.isFunction(i))
|
|
3584
3584
|
return i.call(this, A, t);
|
|
3585
|
-
if (n && (A = t), !!
|
|
3586
|
-
if (
|
|
3585
|
+
if (n && (A = t), !!c.isString(A)) {
|
|
3586
|
+
if (c.isString(i))
|
|
3587
3587
|
return A.indexOf(i) !== -1;
|
|
3588
|
-
if (
|
|
3588
|
+
if (c.isRegExp(i))
|
|
3589
3589
|
return i.test(A);
|
|
3590
3590
|
}
|
|
3591
3591
|
}
|
|
@@ -3593,7 +3593,7 @@ function YB(e) {
|
|
|
3593
3593
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (A, t, i) => t.toUpperCase() + i);
|
|
3594
3594
|
}
|
|
3595
3595
|
function bB(e, A) {
|
|
3596
|
-
const t =
|
|
3596
|
+
const t = c.toCamelCase(" " + A);
|
|
3597
3597
|
["get", "set", "has"].forEach((i) => {
|
|
3598
3598
|
Object.defineProperty(e, i + t, {
|
|
3599
3599
|
value: function(n, o, r) {
|
|
@@ -3610,23 +3610,23 @@ let H = class {
|
|
|
3610
3610
|
set(A, t, i) {
|
|
3611
3611
|
const n = this;
|
|
3612
3612
|
function o(C, s, a) {
|
|
3613
|
-
const I =
|
|
3613
|
+
const I = EA(s);
|
|
3614
3614
|
if (!I)
|
|
3615
3615
|
throw new Error("header name must be a non-empty string");
|
|
3616
|
-
const g =
|
|
3617
|
-
(!g || n[g] === void 0 || a === !0 || a === void 0 && n[g] !== !1) && (n[g || s] =
|
|
3616
|
+
const g = c.findKey(n, I);
|
|
3617
|
+
(!g || n[g] === void 0 || a === !0 || a === void 0 && n[g] !== !1) && (n[g || s] = zA(C));
|
|
3618
3618
|
}
|
|
3619
|
-
const r = (C, s) =>
|
|
3620
|
-
if (
|
|
3619
|
+
const r = (C, s) => c.forEach(C, (a, I) => o(a, I, s));
|
|
3620
|
+
if (c.isPlainObject(A) || A instanceof this.constructor)
|
|
3621
3621
|
r(A, t);
|
|
3622
|
-
else if (
|
|
3622
|
+
else if (c.isString(A) && (A = A.trim()) && !NB(A))
|
|
3623
3623
|
r(HB(A), t);
|
|
3624
|
-
else if (
|
|
3624
|
+
else if (c.isObject(A) && c.isIterable(A)) {
|
|
3625
3625
|
let C = {}, s, a;
|
|
3626
3626
|
for (const I of A) {
|
|
3627
|
-
if (!
|
|
3627
|
+
if (!c.isArray(I))
|
|
3628
3628
|
throw TypeError("Object iterator must return a key-value pair");
|
|
3629
|
-
C[a = I[0]] = (s = C[a]) ?
|
|
3629
|
+
C[a = I[0]] = (s = C[a]) ? c.isArray(s) ? [...s, I[1]] : [s, I[1]] : I[1];
|
|
3630
3630
|
}
|
|
3631
3631
|
r(C, t);
|
|
3632
3632
|
} else
|
|
@@ -3634,25 +3634,25 @@ let H = class {
|
|
|
3634
3634
|
return this;
|
|
3635
3635
|
}
|
|
3636
3636
|
get(A, t) {
|
|
3637
|
-
if (A =
|
|
3638
|
-
const i =
|
|
3637
|
+
if (A = EA(A), A) {
|
|
3638
|
+
const i = c.findKey(this, A);
|
|
3639
3639
|
if (i) {
|
|
3640
3640
|
const n = this[i];
|
|
3641
3641
|
if (!t)
|
|
3642
3642
|
return n;
|
|
3643
3643
|
if (t === !0)
|
|
3644
3644
|
return jB(n);
|
|
3645
|
-
if (
|
|
3645
|
+
if (c.isFunction(t))
|
|
3646
3646
|
return t.call(this, n, i);
|
|
3647
|
-
if (
|
|
3647
|
+
if (c.isRegExp(t))
|
|
3648
3648
|
return t.exec(n);
|
|
3649
3649
|
throw new TypeError("parser must be boolean|regexp|function");
|
|
3650
3650
|
}
|
|
3651
3651
|
}
|
|
3652
3652
|
}
|
|
3653
3653
|
has(A, t) {
|
|
3654
|
-
if (A =
|
|
3655
|
-
const i =
|
|
3654
|
+
if (A = EA(A), A) {
|
|
3655
|
+
const i = c.findKey(this, A);
|
|
3656
3656
|
return !!(i && this[i] !== void 0 && (!t || _A(this, this[i], i, t)));
|
|
3657
3657
|
}
|
|
3658
3658
|
return !1;
|
|
@@ -3661,12 +3661,12 @@ let H = class {
|
|
|
3661
3661
|
const i = this;
|
|
3662
3662
|
let n = !1;
|
|
3663
3663
|
function o(r) {
|
|
3664
|
-
if (r =
|
|
3665
|
-
const C =
|
|
3664
|
+
if (r = EA(r), r) {
|
|
3665
|
+
const C = c.findKey(i, r);
|
|
3666
3666
|
C && (!t || _A(i, i[C], C, t)) && (delete i[C], n = !0);
|
|
3667
3667
|
}
|
|
3668
3668
|
}
|
|
3669
|
-
return
|
|
3669
|
+
return c.isArray(A) ? A.forEach(o) : o(A), n;
|
|
3670
3670
|
}
|
|
3671
3671
|
clear(A) {
|
|
3672
3672
|
const t = Object.keys(this);
|
|
@@ -3679,14 +3679,14 @@ let H = class {
|
|
|
3679
3679
|
}
|
|
3680
3680
|
normalize(A) {
|
|
3681
3681
|
const t = this, i = {};
|
|
3682
|
-
return
|
|
3683
|
-
const r =
|
|
3682
|
+
return c.forEach(this, (n, o) => {
|
|
3683
|
+
const r = c.findKey(i, o);
|
|
3684
3684
|
if (r) {
|
|
3685
|
-
t[r] =
|
|
3685
|
+
t[r] = zA(n), delete t[o];
|
|
3686
3686
|
return;
|
|
3687
3687
|
}
|
|
3688
3688
|
const C = A ? YB(o) : String(o).trim();
|
|
3689
|
-
C !== o && delete t[o], t[C] =
|
|
3689
|
+
C !== o && delete t[o], t[C] = zA(n), i[C] = !0;
|
|
3690
3690
|
}), this;
|
|
3691
3691
|
}
|
|
3692
3692
|
concat(...A) {
|
|
@@ -3694,8 +3694,8 @@ let H = class {
|
|
|
3694
3694
|
}
|
|
3695
3695
|
toJSON(A) {
|
|
3696
3696
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3697
|
-
return
|
|
3698
|
-
i != null && i !== !1 && (t[n] = A &&
|
|
3697
|
+
return c.forEach(this, (i, n) => {
|
|
3698
|
+
i != null && i !== !1 && (t[n] = A && c.isArray(i) ? i.join(", ") : i);
|
|
3699
3699
|
}), t;
|
|
3700
3700
|
}
|
|
3701
3701
|
[Symbol.iterator]() {
|
|
@@ -3723,14 +3723,14 @@ let H = class {
|
|
|
3723
3723
|
accessors: {}
|
|
3724
3724
|
}).accessors, n = this.prototype;
|
|
3725
3725
|
function o(r) {
|
|
3726
|
-
const C =
|
|
3726
|
+
const C = EA(r);
|
|
3727
3727
|
i[C] || (bB(n, r), i[C] = !0);
|
|
3728
3728
|
}
|
|
3729
|
-
return
|
|
3729
|
+
return c.isArray(A) ? A.forEach(o) : o(A), this;
|
|
3730
3730
|
}
|
|
3731
3731
|
};
|
|
3732
3732
|
H.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
3733
|
-
|
|
3733
|
+
c.reduceDescriptors(H.prototype, ({ value: e }, A) => {
|
|
3734
3734
|
let t = A[0].toUpperCase() + A.slice(1);
|
|
3735
3735
|
return {
|
|
3736
3736
|
get: () => e,
|
|
@@ -3739,21 +3739,21 @@ E.reduceDescriptors(H.prototype, ({ value: e }, A) => {
|
|
|
3739
3739
|
}
|
|
3740
3740
|
};
|
|
3741
3741
|
});
|
|
3742
|
-
|
|
3742
|
+
c.freezeMethods(H);
|
|
3743
3743
|
function Ae(e, A) {
|
|
3744
|
-
const t = this ||
|
|
3744
|
+
const t = this || fA, i = A || t, n = H.from(i.headers);
|
|
3745
3745
|
let o = i.data;
|
|
3746
|
-
return
|
|
3746
|
+
return c.forEach(e, function(C) {
|
|
3747
3747
|
o = C.call(t, o, n.normalize(), A ? A.status : void 0);
|
|
3748
3748
|
}), n.normalize(), o;
|
|
3749
3749
|
}
|
|
3750
3750
|
function Nt(e) {
|
|
3751
3751
|
return !!(e && e.__CANCEL__);
|
|
3752
3752
|
}
|
|
3753
|
-
function
|
|
3753
|
+
function sA(e, A, t) {
|
|
3754
3754
|
p.call(this, e == null ? "canceled" : e, p.ERR_CANCELED, A, t), this.name = "CanceledError";
|
|
3755
3755
|
}
|
|
3756
|
-
|
|
3756
|
+
c.inherits(sA, p, {
|
|
3757
3757
|
__CANCEL__: !0
|
|
3758
3758
|
});
|
|
3759
3759
|
function Yt(e, A, t) {
|
|
@@ -3824,7 +3824,7 @@ const GA = (e, A, t = 3) => {
|
|
|
3824
3824
|
total: e,
|
|
3825
3825
|
loaded: i
|
|
3826
3826
|
}), A[1]];
|
|
3827
|
-
}, Ct = (e) => (...A) =>
|
|
3827
|
+
}, Ct = (e) => (...A) => c.asap(() => e(...A)), ZB = R.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, A) => (t) => (t = new URL(t, R.origin), e.protocol === t.protocol && e.host === t.host && (A || e.port === t.port)))(
|
|
3828
3828
|
new URL(R.origin),
|
|
3829
3829
|
R.navigator && /(msie|trident)/i.test(R.navigator.userAgent)
|
|
3830
3830
|
) : () => !0, UB = R.hasStandardBrowserEnv ? (
|
|
@@ -3832,7 +3832,7 @@ const GA = (e, A, t = 3) => {
|
|
|
3832
3832
|
{
|
|
3833
3833
|
write(e, A, t, i, n, o) {
|
|
3834
3834
|
const r = [e + "=" + encodeURIComponent(A)];
|
|
3835
|
-
|
|
3835
|
+
c.isNumber(t) && r.push("expires=" + new Date(t).toGMTString()), c.isString(i) && r.push("path=" + i), c.isString(n) && r.push("domain=" + n), o === !0 && r.push("secure"), document.cookie = r.join("; ");
|
|
3836
3836
|
},
|
|
3837
3837
|
read(e) {
|
|
3838
3838
|
const A = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
|
|
@@ -3865,25 +3865,25 @@ function bt(e, A, t) {
|
|
|
3865
3865
|
return e && (i || t == !1) ? TB(e, A) : A;
|
|
3866
3866
|
}
|
|
3867
3867
|
const st = (e) => e instanceof H ? l({}, e) : e;
|
|
3868
|
-
function
|
|
3868
|
+
function AA(e, A) {
|
|
3869
3869
|
A = A || {};
|
|
3870
3870
|
const t = {};
|
|
3871
3871
|
function i(a, I, g, B) {
|
|
3872
|
-
return
|
|
3872
|
+
return c.isPlainObject(a) && c.isPlainObject(I) ? c.merge.call({ caseless: B }, a, I) : c.isPlainObject(I) ? c.merge({}, I) : c.isArray(I) ? I.slice() : I;
|
|
3873
3873
|
}
|
|
3874
3874
|
function n(a, I, g, B) {
|
|
3875
|
-
if (
|
|
3876
|
-
if (!
|
|
3875
|
+
if (c.isUndefined(I)) {
|
|
3876
|
+
if (!c.isUndefined(a))
|
|
3877
3877
|
return i(void 0, a, g, B);
|
|
3878
3878
|
} else return i(a, I, g, B);
|
|
3879
3879
|
}
|
|
3880
3880
|
function o(a, I) {
|
|
3881
|
-
if (!
|
|
3881
|
+
if (!c.isUndefined(I))
|
|
3882
3882
|
return i(void 0, I);
|
|
3883
3883
|
}
|
|
3884
3884
|
function r(a, I) {
|
|
3885
|
-
if (
|
|
3886
|
-
if (!
|
|
3885
|
+
if (c.isUndefined(I)) {
|
|
3886
|
+
if (!c.isUndefined(a))
|
|
3887
3887
|
return i(void 0, a);
|
|
3888
3888
|
} else return i(void 0, I);
|
|
3889
3889
|
}
|
|
@@ -3924,20 +3924,20 @@ function eA(e, A) {
|
|
|
3924
3924
|
validateStatus: C,
|
|
3925
3925
|
headers: (a, I, g) => n(st(a), st(I), g, !0)
|
|
3926
3926
|
};
|
|
3927
|
-
return
|
|
3927
|
+
return c.forEach(Object.keys(l(l({}, e), A)), function(I) {
|
|
3928
3928
|
const g = s[I] || n, B = g(e[I], A[I], I);
|
|
3929
|
-
|
|
3929
|
+
c.isUndefined(B) && g !== C || (t[I] = B);
|
|
3930
3930
|
}), t;
|
|
3931
3931
|
}
|
|
3932
3932
|
const xt = (e) => {
|
|
3933
|
-
const A =
|
|
3933
|
+
const A = AA({}, e);
|
|
3934
3934
|
let { data: t, withXSRFToken: i, xsrfHeaderName: n, xsrfCookieName: o, headers: r, auth: C } = A;
|
|
3935
|
-
A.headers = r = H.from(r), A.url =
|
|
3935
|
+
A.headers = r = H.from(r), A.url = Ot(bt(A.baseURL, A.url, A.allowAbsoluteUrls), e.params, e.paramsSerializer), C && r.set(
|
|
3936
3936
|
"Authorization",
|
|
3937
3937
|
"Basic " + btoa((C.username || "") + ":" + (C.password ? unescape(encodeURIComponent(C.password)) : ""))
|
|
3938
3938
|
);
|
|
3939
3939
|
let s;
|
|
3940
|
-
if (
|
|
3940
|
+
if (c.isFormData(t)) {
|
|
3941
3941
|
if (R.hasStandardBrowserEnv || R.hasStandardBrowserWebWorkerEnv)
|
|
3942
3942
|
r.setContentType(void 0);
|
|
3943
3943
|
else if ((s = r.getContentType()) !== !1) {
|
|
@@ -3945,7 +3945,7 @@ const xt = (e) => {
|
|
|
3945
3945
|
r.setContentType([a || "multipart/form-data", ...I].join("; "));
|
|
3946
3946
|
}
|
|
3947
3947
|
}
|
|
3948
|
-
if (R.hasStandardBrowserEnv && (i &&
|
|
3948
|
+
if (R.hasStandardBrowserEnv && (i && c.isFunction(i) && (i = i(A)), i || i !== !1 && ZB(A.url))) {
|
|
3949
3949
|
const a = n && o && UB.read(o);
|
|
3950
3950
|
a && r.set(n, a);
|
|
3951
3951
|
}
|
|
@@ -3955,57 +3955,57 @@ const xt = (e) => {
|
|
|
3955
3955
|
const n = xt(e);
|
|
3956
3956
|
let o = n.data;
|
|
3957
3957
|
const r = H.from(n.headers).normalize();
|
|
3958
|
-
let { responseType: C, onUploadProgress: s, onDownloadProgress: a } = n, I, g, B, Q,
|
|
3959
|
-
function
|
|
3960
|
-
Q && Q(),
|
|
3958
|
+
let { responseType: C, onUploadProgress: s, onDownloadProgress: a } = n, I, g, B, Q, E;
|
|
3959
|
+
function u() {
|
|
3960
|
+
Q && Q(), E && E(), n.cancelToken && n.cancelToken.unsubscribe(I), n.signal && n.signal.removeEventListener("abort", I);
|
|
3961
3961
|
}
|
|
3962
|
-
let
|
|
3963
|
-
|
|
3964
|
-
function
|
|
3965
|
-
if (!
|
|
3962
|
+
let d = new XMLHttpRequest();
|
|
3963
|
+
d.open(n.method.toUpperCase(), n.url, !0), d.timeout = n.timeout;
|
|
3964
|
+
function q() {
|
|
3965
|
+
if (!d)
|
|
3966
3966
|
return;
|
|
3967
3967
|
const w = H.from(
|
|
3968
|
-
"getAllResponseHeaders" in
|
|
3969
|
-
),
|
|
3970
|
-
data: !C || C === "text" || C === "json" ?
|
|
3971
|
-
status:
|
|
3972
|
-
statusText:
|
|
3968
|
+
"getAllResponseHeaders" in d && d.getAllResponseHeaders()
|
|
3969
|
+
), M = {
|
|
3970
|
+
data: !C || C === "text" || C === "json" ? d.responseText : d.response,
|
|
3971
|
+
status: d.status,
|
|
3972
|
+
statusText: d.statusText,
|
|
3973
3973
|
headers: w,
|
|
3974
3974
|
config: e,
|
|
3975
|
-
request:
|
|
3975
|
+
request: d
|
|
3976
3976
|
};
|
|
3977
3977
|
Yt(function(z) {
|
|
3978
|
-
t(z),
|
|
3978
|
+
t(z), u();
|
|
3979
3979
|
}, function(z) {
|
|
3980
|
-
i(z),
|
|
3981
|
-
},
|
|
3980
|
+
i(z), u();
|
|
3981
|
+
}, M), d = null;
|
|
3982
3982
|
}
|
|
3983
|
-
"onloadend" in
|
|
3984
|
-
!
|
|
3985
|
-
},
|
|
3986
|
-
|
|
3987
|
-
},
|
|
3988
|
-
i(new p("Network Error", p.ERR_NETWORK, e,
|
|
3989
|
-
},
|
|
3990
|
-
let
|
|
3991
|
-
const
|
|
3992
|
-
n.timeoutErrorMessage && (
|
|
3993
|
-
|
|
3994
|
-
|
|
3983
|
+
"onloadend" in d ? d.onloadend = q : d.onreadystatechange = function() {
|
|
3984
|
+
!d || d.readyState !== 4 || d.status === 0 && !(d.responseURL && d.responseURL.indexOf("file:") === 0) || setTimeout(q);
|
|
3985
|
+
}, d.onabort = function() {
|
|
3986
|
+
d && (i(new p("Request aborted", p.ECONNABORTED, e, d)), d = null);
|
|
3987
|
+
}, d.onerror = function() {
|
|
3988
|
+
i(new p("Network Error", p.ERR_NETWORK, e, d)), d = null;
|
|
3989
|
+
}, d.ontimeout = function() {
|
|
3990
|
+
let J = n.timeout ? "timeout of " + n.timeout + "ms exceeded" : "timeout exceeded";
|
|
3991
|
+
const M = n.transitional || Ht;
|
|
3992
|
+
n.timeoutErrorMessage && (J = n.timeoutErrorMessage), i(new p(
|
|
3993
|
+
J,
|
|
3994
|
+
M.clarifyTimeoutError ? p.ETIMEDOUT : p.ECONNABORTED,
|
|
3995
3995
|
e,
|
|
3996
|
-
|
|
3997
|
-
)),
|
|
3998
|
-
}, o === void 0 && r.setContentType(null), "setRequestHeader" in
|
|
3999
|
-
|
|
4000
|
-
}),
|
|
4001
|
-
|
|
3996
|
+
d
|
|
3997
|
+
)), d = null;
|
|
3998
|
+
}, o === void 0 && r.setContentType(null), "setRequestHeader" in d && c.forEach(r.toJSON(), function(J, M) {
|
|
3999
|
+
d.setRequestHeader(M, J);
|
|
4000
|
+
}), c.isUndefined(n.withCredentials) || (d.withCredentials = !!n.withCredentials), C && C !== "json" && (d.responseType = n.responseType), a && ([B, E] = GA(a, !0), d.addEventListener("progress", B)), s && d.upload && ([g, Q] = GA(s), d.upload.addEventListener("progress", g), d.upload.addEventListener("loadend", Q)), (n.cancelToken || n.signal) && (I = (w) => {
|
|
4001
|
+
d && (i(!w || w.type ? new sA(null, e, d) : w), d.abort(), d = null);
|
|
4002
4002
|
}, n.cancelToken && n.cancelToken.subscribe(I), n.signal && (n.signal.aborted ? I() : n.signal.addEventListener("abort", I)));
|
|
4003
|
-
const
|
|
4004
|
-
if (
|
|
4005
|
-
i(new p("Unsupported protocol " +
|
|
4003
|
+
const m = xB(n.url);
|
|
4004
|
+
if (m && R.protocols.indexOf(m) === -1) {
|
|
4005
|
+
i(new p("Unsupported protocol " + m + ":", p.ERR_BAD_REQUEST, e));
|
|
4006
4006
|
return;
|
|
4007
4007
|
}
|
|
4008
|
-
|
|
4008
|
+
d.send(o || null);
|
|
4009
4009
|
});
|
|
4010
4010
|
}, $B = (e, A) => {
|
|
4011
4011
|
const { length: t } = e = e ? e.filter(Boolean) : [];
|
|
@@ -4015,7 +4015,7 @@ const xt = (e) => {
|
|
|
4015
4015
|
if (!n) {
|
|
4016
4016
|
n = !0, C();
|
|
4017
4017
|
const I = a instanceof Error ? a : this.reason;
|
|
4018
|
-
i.abort(I instanceof p ? I : new
|
|
4018
|
+
i.abort(I instanceof p ? I : new sA(I instanceof Error ? I.message : I));
|
|
4019
4019
|
}
|
|
4020
4020
|
};
|
|
4021
4021
|
let r = A && setTimeout(() => {
|
|
@@ -4028,7 +4028,7 @@ const xt = (e) => {
|
|
|
4028
4028
|
};
|
|
4029
4029
|
e.forEach((a) => a.addEventListener("abort", o));
|
|
4030
4030
|
const { signal: s } = i;
|
|
4031
|
-
return s.unsubscribe = () =>
|
|
4031
|
+
return s.unsubscribe = () => c.asap(C), s;
|
|
4032
4032
|
}
|
|
4033
4033
|
}, _B = function* (e, A) {
|
|
4034
4034
|
let t = e.byteLength;
|
|
@@ -4042,7 +4042,7 @@ const xt = (e) => {
|
|
|
4042
4042
|
}, Au = function(e, A) {
|
|
4043
4043
|
return UA(this, null, function* () {
|
|
4044
4044
|
try {
|
|
4045
|
-
for (var t = ze(eu(e)), i, n, o; i = !(n = yield new
|
|
4045
|
+
for (var t = ze(eu(e)), i, n, o; i = !(n = yield new X(t.next())).done; i = !1) {
|
|
4046
4046
|
const r = n.value;
|
|
4047
4047
|
yield* WA(_B(r, A));
|
|
4048
4048
|
}
|
|
@@ -4050,7 +4050,7 @@ const xt = (e) => {
|
|
|
4050
4050
|
o = [n];
|
|
4051
4051
|
} finally {
|
|
4052
4052
|
try {
|
|
4053
|
-
i && (n = t.return) && (yield new
|
|
4053
|
+
i && (n = t.return) && (yield new X(n.call(t)));
|
|
4054
4054
|
} finally {
|
|
4055
4055
|
if (o)
|
|
4056
4056
|
throw o[0];
|
|
@@ -4066,13 +4066,13 @@ const xt = (e) => {
|
|
|
4066
4066
|
const A = e.getReader();
|
|
4067
4067
|
try {
|
|
4068
4068
|
for (; ; ) {
|
|
4069
|
-
const { done: t, value: i } = yield new
|
|
4069
|
+
const { done: t, value: i } = yield new X(A.read());
|
|
4070
4070
|
if (t)
|
|
4071
4071
|
break;
|
|
4072
4072
|
yield i;
|
|
4073
4073
|
}
|
|
4074
4074
|
} finally {
|
|
4075
|
-
yield new
|
|
4075
|
+
yield new X(A.cancel());
|
|
4076
4076
|
}
|
|
4077
4077
|
});
|
|
4078
4078
|
}, at = (e, A, t, i) => {
|
|
@@ -4106,7 +4106,7 @@ const xt = (e) => {
|
|
|
4106
4106
|
}, {
|
|
4107
4107
|
highWaterMark: 2
|
|
4108
4108
|
});
|
|
4109
|
-
},
|
|
4109
|
+
}, xA = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Pt = xA && typeof ReadableStream == "function", tu = xA && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (A) => e.encode(A))(new TextEncoder()) : (e) => v(null, null, function* () {
|
|
4110
4110
|
return new Uint8Array(yield new Response(e).arrayBuffer());
|
|
4111
4111
|
})), Ft = (e, ...A) => {
|
|
4112
4112
|
try {
|
|
@@ -4124,12 +4124,12 @@ const xt = (e) => {
|
|
|
4124
4124
|
}
|
|
4125
4125
|
}).headers.has("Content-Type");
|
|
4126
4126
|
return e && !A;
|
|
4127
|
-
}), It = 64 * 1024, ce = Pt && Ft(() =>
|
|
4127
|
+
}), It = 64 * 1024, ce = Pt && Ft(() => c.isReadableStream(new Response("").body)), OA = {
|
|
4128
4128
|
stream: ce && ((e) => e.body)
|
|
4129
4129
|
};
|
|
4130
|
-
|
|
4130
|
+
xA && ((e) => {
|
|
4131
4131
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((A) => {
|
|
4132
|
-
!
|
|
4132
|
+
!OA[A] && (OA[A] = c.isFunction(e[A]) ? (t) => t[A]() : (t, i) => {
|
|
4133
4133
|
throw new p(`Response type '${A}' is not supported`, p.ERR_NOT_SUPPORT, i);
|
|
4134
4134
|
});
|
|
4135
4135
|
});
|
|
@@ -4137,21 +4137,21 @@ PA && ((e) => {
|
|
|
4137
4137
|
const nu = (e) => v(null, null, function* () {
|
|
4138
4138
|
if (e == null)
|
|
4139
4139
|
return 0;
|
|
4140
|
-
if (
|
|
4140
|
+
if (c.isBlob(e))
|
|
4141
4141
|
return e.size;
|
|
4142
|
-
if (
|
|
4142
|
+
if (c.isSpecCompliantForm(e))
|
|
4143
4143
|
return (yield new Request(R.origin, {
|
|
4144
4144
|
method: "POST",
|
|
4145
4145
|
body: e
|
|
4146
4146
|
}).arrayBuffer()).byteLength;
|
|
4147
|
-
if (
|
|
4147
|
+
if (c.isArrayBufferView(e) || c.isArrayBuffer(e))
|
|
4148
4148
|
return e.byteLength;
|
|
4149
|
-
if (
|
|
4149
|
+
if (c.isURLSearchParams(e) && (e = e + ""), c.isString(e))
|
|
4150
4150
|
return (yield tu(e)).byteLength;
|
|
4151
4151
|
}), ou = (e, A) => v(null, null, function* () {
|
|
4152
|
-
const t =
|
|
4152
|
+
const t = c.toFiniteNumber(e.getContentLength());
|
|
4153
4153
|
return t == null ? nu(A) : t;
|
|
4154
|
-
}), ru =
|
|
4154
|
+
}), ru = xA && ((e) => v(null, null, function* () {
|
|
4155
4155
|
let {
|
|
4156
4156
|
url: A,
|
|
4157
4157
|
method: t,
|
|
@@ -4167,80 +4167,80 @@ const nu = (e) => v(null, null, function* () {
|
|
|
4167
4167
|
fetchOptions: B
|
|
4168
4168
|
} = xt(e);
|
|
4169
4169
|
a = a ? (a + "").toLowerCase() : "text";
|
|
4170
|
-
let Q = $B([n, o && o.toAbortSignal()], r),
|
|
4171
|
-
const
|
|
4170
|
+
let Q = $B([n, o && o.toAbortSignal()], r), E;
|
|
4171
|
+
const u = Q && Q.unsubscribe && (() => {
|
|
4172
4172
|
Q.unsubscribe();
|
|
4173
4173
|
});
|
|
4174
|
-
let
|
|
4174
|
+
let d;
|
|
4175
4175
|
try {
|
|
4176
|
-
if (s && iu && t !== "get" && t !== "head" && (
|
|
4177
|
-
let
|
|
4176
|
+
if (s && iu && t !== "get" && t !== "head" && (d = yield ou(I, i)) !== 0) {
|
|
4177
|
+
let M = new Request(A, {
|
|
4178
4178
|
method: "POST",
|
|
4179
4179
|
body: i,
|
|
4180
4180
|
duplex: "half"
|
|
4181
4181
|
}), D;
|
|
4182
|
-
if (
|
|
4183
|
-
const [z,
|
|
4184
|
-
|
|
4182
|
+
if (c.isFormData(i) && (D = M.headers.get("content-type")) && I.setContentType(D), M.body) {
|
|
4183
|
+
const [z, j] = rt(
|
|
4184
|
+
d,
|
|
4185
4185
|
GA(Ct(s))
|
|
4186
4186
|
);
|
|
4187
|
-
i = at(
|
|
4187
|
+
i = at(M.body, It, z, j);
|
|
4188
4188
|
}
|
|
4189
4189
|
}
|
|
4190
|
-
|
|
4191
|
-
const
|
|
4192
|
-
|
|
4190
|
+
c.isString(g) || (g = g ? "include" : "omit");
|
|
4191
|
+
const q = "credentials" in Request.prototype;
|
|
4192
|
+
E = new Request(A, L(l({}, B), {
|
|
4193
4193
|
signal: Q,
|
|
4194
4194
|
method: t.toUpperCase(),
|
|
4195
4195
|
headers: I.normalize().toJSON(),
|
|
4196
4196
|
body: i,
|
|
4197
4197
|
duplex: "half",
|
|
4198
|
-
credentials:
|
|
4198
|
+
credentials: q ? g : void 0
|
|
4199
4199
|
}));
|
|
4200
|
-
let
|
|
4200
|
+
let m = yield fetch(E, B);
|
|
4201
4201
|
const w = ce && (a === "stream" || a === "response");
|
|
4202
|
-
if (ce && (C || w &&
|
|
4203
|
-
const
|
|
4202
|
+
if (ce && (C || w && u)) {
|
|
4203
|
+
const M = {};
|
|
4204
4204
|
["status", "statusText", "headers"].forEach((K) => {
|
|
4205
|
-
|
|
4205
|
+
M[K] = m[K];
|
|
4206
4206
|
});
|
|
4207
|
-
const D =
|
|
4207
|
+
const D = c.toFiniteNumber(m.headers.get("content-length")), [z, j] = C && rt(
|
|
4208
4208
|
D,
|
|
4209
4209
|
GA(Ct(C), !0)
|
|
4210
4210
|
) || [];
|
|
4211
|
-
|
|
4212
|
-
at(
|
|
4213
|
-
|
|
4211
|
+
m = new Response(
|
|
4212
|
+
at(m.body, It, z, () => {
|
|
4213
|
+
j && j(), u && u();
|
|
4214
4214
|
}),
|
|
4215
|
-
|
|
4215
|
+
M
|
|
4216
4216
|
);
|
|
4217
4217
|
}
|
|
4218
4218
|
a = a || "text";
|
|
4219
|
-
let
|
|
4220
|
-
return !w &&
|
|
4221
|
-
Yt(
|
|
4222
|
-
data:
|
|
4223
|
-
headers: H.from(
|
|
4224
|
-
status:
|
|
4225
|
-
statusText:
|
|
4219
|
+
let J = yield OA[c.findKey(OA, a) || "text"](m, e);
|
|
4220
|
+
return !w && u && u(), yield new Promise((M, D) => {
|
|
4221
|
+
Yt(M, D, {
|
|
4222
|
+
data: J,
|
|
4223
|
+
headers: H.from(m.headers),
|
|
4224
|
+
status: m.status,
|
|
4225
|
+
statusText: m.statusText,
|
|
4226
4226
|
config: e,
|
|
4227
|
-
request:
|
|
4227
|
+
request: E
|
|
4228
4228
|
});
|
|
4229
4229
|
});
|
|
4230
|
-
} catch (
|
|
4231
|
-
throw
|
|
4232
|
-
new p("Network Error", p.ERR_NETWORK, e,
|
|
4230
|
+
} catch (q) {
|
|
4231
|
+
throw u && u(), q && q.name === "TypeError" && /Load failed|fetch/i.test(q.message) ? Object.assign(
|
|
4232
|
+
new p("Network Error", p.ERR_NETWORK, e, E),
|
|
4233
4233
|
{
|
|
4234
|
-
cause:
|
|
4234
|
+
cause: q.cause || q
|
|
4235
4235
|
}
|
|
4236
|
-
) : p.from(
|
|
4236
|
+
) : p.from(q, q && q.code, e, E);
|
|
4237
4237
|
}
|
|
4238
4238
|
})), Qe = {
|
|
4239
4239
|
http: pB,
|
|
4240
4240
|
xhr: VB,
|
|
4241
4241
|
fetch: ru
|
|
4242
4242
|
};
|
|
4243
|
-
|
|
4243
|
+
c.forEach(Qe, (e, A) => {
|
|
4244
4244
|
if (e) {
|
|
4245
4245
|
try {
|
|
4246
4246
|
Object.defineProperty(e, "name", { value: A });
|
|
@@ -4249,9 +4249,9 @@ E.forEach(Qe, (e, A) => {
|
|
|
4249
4249
|
Object.defineProperty(e, "adapterName", { value: A });
|
|
4250
4250
|
}
|
|
4251
4251
|
});
|
|
4252
|
-
const gt = (e) => `- ${e}`, Cu = (e) =>
|
|
4252
|
+
const gt = (e) => `- ${e}`, Cu = (e) => c.isFunction(e) || e === null || e === !1, Zt = {
|
|
4253
4253
|
getAdapter: (e) => {
|
|
4254
|
-
e =
|
|
4254
|
+
e = c.isArray(e) ? e : [e];
|
|
4255
4255
|
const { length: A } = e;
|
|
4256
4256
|
let t, i;
|
|
4257
4257
|
const n = {};
|
|
@@ -4282,13 +4282,13 @@ const gt = (e) => `- ${e}`, Cu = (e) => E.isFunction(e) || e === null || e === !
|
|
|
4282
4282
|
};
|
|
4283
4283
|
function ee(e) {
|
|
4284
4284
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
4285
|
-
throw new
|
|
4285
|
+
throw new sA(null, e);
|
|
4286
4286
|
}
|
|
4287
4287
|
function Et(e) {
|
|
4288
4288
|
return ee(e), e.headers = H.from(e.headers), e.data = Ae.call(
|
|
4289
4289
|
e,
|
|
4290
4290
|
e.transformRequest
|
|
4291
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Zt.getAdapter(e.adapter ||
|
|
4291
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Zt.getAdapter(e.adapter || fA.adapter)(e).then(function(i) {
|
|
4292
4292
|
return ee(e), i.data = Ae.call(
|
|
4293
4293
|
e,
|
|
4294
4294
|
e.transformResponse,
|
|
@@ -4302,14 +4302,14 @@ function Et(e) {
|
|
|
4302
4302
|
), i.response.headers = H.from(i.response.headers))), Promise.reject(i);
|
|
4303
4303
|
});
|
|
4304
4304
|
}
|
|
4305
|
-
const Ut = "1.11.0",
|
|
4305
|
+
const Ut = "1.11.0", PA = {};
|
|
4306
4306
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, A) => {
|
|
4307
|
-
|
|
4307
|
+
PA[e] = function(i) {
|
|
4308
4308
|
return typeof i === e || "a" + (A < 1 ? "n " : " ") + e;
|
|
4309
4309
|
};
|
|
4310
4310
|
});
|
|
4311
4311
|
const ct = {};
|
|
4312
|
-
|
|
4312
|
+
PA.transitional = function(A, t, i) {
|
|
4313
4313
|
function n(o, r) {
|
|
4314
4314
|
return "[Axios v" + Ut + "] Transitional option '" + o + "'" + r + (i ? ". " + i : "");
|
|
4315
4315
|
}
|
|
@@ -4327,7 +4327,7 @@ FA.transitional = function(A, t, i) {
|
|
|
4327
4327
|
)), A ? A(o, r, C) : !0;
|
|
4328
4328
|
};
|
|
4329
4329
|
};
|
|
4330
|
-
|
|
4330
|
+
PA.spelling = function(A) {
|
|
4331
4331
|
return (t, i) => (console.warn(`${i} is likely a misspelling of ${A}`), !0);
|
|
4332
4332
|
};
|
|
4333
4333
|
function su(e, A, t) {
|
|
@@ -4347,11 +4347,11 @@ function su(e, A, t) {
|
|
|
4347
4347
|
throw new p("Unknown option " + o, p.ERR_BAD_OPTION);
|
|
4348
4348
|
}
|
|
4349
4349
|
}
|
|
4350
|
-
const
|
|
4350
|
+
const SA = {
|
|
4351
4351
|
assertOptions: su,
|
|
4352
|
-
validators:
|
|
4353
|
-
},
|
|
4354
|
-
let
|
|
4352
|
+
validators: PA
|
|
4353
|
+
}, P = SA.validators;
|
|
4354
|
+
let $ = class {
|
|
4355
4355
|
constructor(A) {
|
|
4356
4356
|
this.defaults = A || {}, this.interceptors = {
|
|
4357
4357
|
request: new nt(),
|
|
@@ -4386,86 +4386,86 @@ let _ = class {
|
|
|
4386
4386
|
});
|
|
4387
4387
|
}
|
|
4388
4388
|
_request(A, t) {
|
|
4389
|
-
typeof A == "string" ? (t = t || {}, t.url = A) : t = A || {}, t =
|
|
4389
|
+
typeof A == "string" ? (t = t || {}, t.url = A) : t = A || {}, t = AA(this.defaults, t);
|
|
4390
4390
|
const { transitional: i, paramsSerializer: n, headers: o } = t;
|
|
4391
|
-
i !== void 0 &&
|
|
4392
|
-
silentJSONParsing:
|
|
4393
|
-
forcedJSONParsing:
|
|
4394
|
-
clarifyTimeoutError:
|
|
4395
|
-
}, !1), n != null && (
|
|
4391
|
+
i !== void 0 && SA.assertOptions(i, {
|
|
4392
|
+
silentJSONParsing: P.transitional(P.boolean),
|
|
4393
|
+
forcedJSONParsing: P.transitional(P.boolean),
|
|
4394
|
+
clarifyTimeoutError: P.transitional(P.boolean)
|
|
4395
|
+
}, !1), n != null && (c.isFunction(n) ? t.paramsSerializer = {
|
|
4396
4396
|
serialize: n
|
|
4397
|
-
} :
|
|
4398
|
-
encode:
|
|
4399
|
-
serialize:
|
|
4400
|
-
}, !0)), t.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? t.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : t.allowAbsoluteUrls = !0),
|
|
4401
|
-
baseUrl:
|
|
4402
|
-
withXsrfToken:
|
|
4397
|
+
} : SA.assertOptions(n, {
|
|
4398
|
+
encode: P.function,
|
|
4399
|
+
serialize: P.function
|
|
4400
|
+
}, !0)), t.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? t.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : t.allowAbsoluteUrls = !0), SA.assertOptions(t, {
|
|
4401
|
+
baseUrl: P.spelling("baseURL"),
|
|
4402
|
+
withXsrfToken: P.spelling("withXSRFToken")
|
|
4403
4403
|
}, !0), t.method = (t.method || this.defaults.method || "get").toLowerCase();
|
|
4404
|
-
let r = o &&
|
|
4404
|
+
let r = o && c.merge(
|
|
4405
4405
|
o.common,
|
|
4406
4406
|
o[t.method]
|
|
4407
4407
|
);
|
|
4408
|
-
o &&
|
|
4408
|
+
o && c.forEach(
|
|
4409
4409
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
4410
|
-
(
|
|
4411
|
-
delete o[
|
|
4410
|
+
(E) => {
|
|
4411
|
+
delete o[E];
|
|
4412
4412
|
}
|
|
4413
4413
|
), t.headers = H.concat(r, o);
|
|
4414
4414
|
const C = [];
|
|
4415
4415
|
let s = !0;
|
|
4416
|
-
this.interceptors.request.forEach(function(
|
|
4417
|
-
typeof
|
|
4416
|
+
this.interceptors.request.forEach(function(u) {
|
|
4417
|
+
typeof u.runWhen == "function" && u.runWhen(t) === !1 || (s = s && u.synchronous, C.unshift(u.fulfilled, u.rejected));
|
|
4418
4418
|
});
|
|
4419
4419
|
const a = [];
|
|
4420
|
-
this.interceptors.response.forEach(function(
|
|
4421
|
-
a.push(
|
|
4420
|
+
this.interceptors.response.forEach(function(u) {
|
|
4421
|
+
a.push(u.fulfilled, u.rejected);
|
|
4422
4422
|
});
|
|
4423
4423
|
let I, g = 0, B;
|
|
4424
4424
|
if (!s) {
|
|
4425
|
-
const
|
|
4426
|
-
for (
|
|
4427
|
-
I = I.then(
|
|
4425
|
+
const E = [Et.bind(this), void 0];
|
|
4426
|
+
for (E.unshift(...C), E.push(...a), B = E.length, I = Promise.resolve(t); g < B; )
|
|
4427
|
+
I = I.then(E[g++], E[g++]);
|
|
4428
4428
|
return I;
|
|
4429
4429
|
}
|
|
4430
4430
|
B = C.length;
|
|
4431
4431
|
let Q = t;
|
|
4432
4432
|
for (g = 0; g < B; ) {
|
|
4433
|
-
const
|
|
4433
|
+
const E = C[g++], u = C[g++];
|
|
4434
4434
|
try {
|
|
4435
|
-
Q =
|
|
4436
|
-
} catch (
|
|
4437
|
-
|
|
4435
|
+
Q = E(Q);
|
|
4436
|
+
} catch (d) {
|
|
4437
|
+
u.call(this, d);
|
|
4438
4438
|
break;
|
|
4439
4439
|
}
|
|
4440
4440
|
}
|
|
4441
4441
|
try {
|
|
4442
4442
|
I = Et.call(this, Q);
|
|
4443
|
-
} catch (
|
|
4444
|
-
return Promise.reject(
|
|
4443
|
+
} catch (E) {
|
|
4444
|
+
return Promise.reject(E);
|
|
4445
4445
|
}
|
|
4446
4446
|
for (g = 0, B = a.length; g < B; )
|
|
4447
4447
|
I = I.then(a[g++], a[g++]);
|
|
4448
4448
|
return I;
|
|
4449
4449
|
}
|
|
4450
4450
|
getUri(A) {
|
|
4451
|
-
A =
|
|
4451
|
+
A = AA(this.defaults, A);
|
|
4452
4452
|
const t = bt(A.baseURL, A.url, A.allowAbsoluteUrls);
|
|
4453
|
-
return
|
|
4453
|
+
return Ot(t, A.params, A.paramsSerializer);
|
|
4454
4454
|
}
|
|
4455
4455
|
};
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
return this.request(
|
|
4456
|
+
c.forEach(["delete", "get", "head", "options"], function(A) {
|
|
4457
|
+
$.prototype[A] = function(t, i) {
|
|
4458
|
+
return this.request(AA(i || {}, {
|
|
4459
4459
|
method: A,
|
|
4460
4460
|
url: t,
|
|
4461
4461
|
data: (i || {}).data
|
|
4462
4462
|
}));
|
|
4463
4463
|
};
|
|
4464
4464
|
});
|
|
4465
|
-
|
|
4465
|
+
c.forEach(["post", "put", "patch"], function(A) {
|
|
4466
4466
|
function t(i) {
|
|
4467
4467
|
return function(o, r, C) {
|
|
4468
|
-
return this.request(
|
|
4468
|
+
return this.request(AA(C || {}, {
|
|
4469
4469
|
method: A,
|
|
4470
4470
|
headers: i ? {
|
|
4471
4471
|
"Content-Type": "multipart/form-data"
|
|
@@ -4475,7 +4475,7 @@ E.forEach(["post", "put", "patch"], function(A) {
|
|
|
4475
4475
|
}));
|
|
4476
4476
|
};
|
|
4477
4477
|
}
|
|
4478
|
-
|
|
4478
|
+
$.prototype[A] = t(), $.prototype[A + "Form"] = t(!0);
|
|
4479
4479
|
});
|
|
4480
4480
|
let au = class Wt {
|
|
4481
4481
|
constructor(A) {
|
|
@@ -4501,7 +4501,7 @@ let au = class Wt {
|
|
|
4501
4501
|
i.unsubscribe(o);
|
|
4502
4502
|
}, r;
|
|
4503
4503
|
}, A(function(o, r, C) {
|
|
4504
|
-
i.reason || (i.reason = new
|
|
4504
|
+
i.reason || (i.reason = new sA(o, r, C), t(i.reason));
|
|
4505
4505
|
});
|
|
4506
4506
|
}
|
|
4507
4507
|
/**
|
|
@@ -4556,7 +4556,7 @@ function Iu(e) {
|
|
|
4556
4556
|
};
|
|
4557
4557
|
}
|
|
4558
4558
|
function gu(e) {
|
|
4559
|
-
return
|
|
4559
|
+
return c.isObject(e) && e.isAxiosError === !0;
|
|
4560
4560
|
}
|
|
4561
4561
|
const Be = {
|
|
4562
4562
|
Continue: 100,
|
|
@@ -4627,18 +4627,18 @@ Object.entries(Be).forEach(([e, A]) => {
|
|
|
4627
4627
|
Be[A] = e;
|
|
4628
4628
|
});
|
|
4629
4629
|
function Tt(e) {
|
|
4630
|
-
const A = new
|
|
4631
|
-
return
|
|
4632
|
-
return Tt(
|
|
4630
|
+
const A = new $(e), t = Mt($.prototype.request, A);
|
|
4631
|
+
return c.extend(t, $.prototype, A, { allOwnKeys: !0 }), c.extend(t, A, null, { allOwnKeys: !0 }), t.create = function(n) {
|
|
4632
|
+
return Tt(AA(e, n));
|
|
4633
4633
|
}, t;
|
|
4634
4634
|
}
|
|
4635
|
-
const y = Tt(
|
|
4636
|
-
y.Axios =
|
|
4637
|
-
y.CanceledError =
|
|
4635
|
+
const y = Tt(fA);
|
|
4636
|
+
y.Axios = $;
|
|
4637
|
+
y.CanceledError = sA;
|
|
4638
4638
|
y.CancelToken = au;
|
|
4639
4639
|
y.isCancel = Nt;
|
|
4640
4640
|
y.VERSION = Ut;
|
|
4641
|
-
y.toFormData =
|
|
4641
|
+
y.toFormData = bA;
|
|
4642
4642
|
y.AxiosError = p;
|
|
4643
4643
|
y.Cancel = y.CanceledError;
|
|
4644
4644
|
y.all = function(A) {
|
|
@@ -4646,9 +4646,9 @@ y.all = function(A) {
|
|
|
4646
4646
|
};
|
|
4647
4647
|
y.spread = Iu;
|
|
4648
4648
|
y.isAxiosError = gu;
|
|
4649
|
-
y.mergeConfig =
|
|
4649
|
+
y.mergeConfig = AA;
|
|
4650
4650
|
y.AxiosHeaders = H;
|
|
4651
|
-
y.formToJSON = (e) => jt(
|
|
4651
|
+
y.formToJSON = (e) => jt(c.isHTMLForm(e) ? new FormData(e) : e);
|
|
4652
4652
|
y.getAdapter = Zt.getAdapter;
|
|
4653
4653
|
y.HttpStatusCode = Be;
|
|
4654
4654
|
y.default = y;
|
|
@@ -4681,9 +4681,9 @@ function Bu(e) {
|
|
|
4681
4681
|
return A[e] || A.ocb;
|
|
4682
4682
|
}
|
|
4683
4683
|
function uu({
|
|
4684
|
-
message: e =
|
|
4684
|
+
message: e = G("paymentSuccess"),
|
|
4685
4685
|
description: A = null,
|
|
4686
|
-
okLabel: t =
|
|
4686
|
+
okLabel: t = G("ok"),
|
|
4687
4687
|
cancelLabel: i = null,
|
|
4688
4688
|
onClose: n,
|
|
4689
4689
|
isSuccess: o = !0,
|
|
@@ -4691,17 +4691,17 @@ function uu({
|
|
|
4691
4691
|
isWarning: C = !1,
|
|
4692
4692
|
preventClose: s = !1,
|
|
4693
4693
|
theme: a = null,
|
|
4694
|
-
|
|
4695
|
-
|
|
4694
|
+
hideOkButton: I = !1,
|
|
4695
|
+
closeOnClickOutside: g = !0
|
|
4696
4696
|
} = {}) {
|
|
4697
|
-
document.querySelectorAll('[data-wgt-popup="true"]').forEach((
|
|
4698
|
-
let
|
|
4699
|
-
if (!
|
|
4700
|
-
const
|
|
4701
|
-
|
|
4702
|
-
}
|
|
4703
|
-
const
|
|
4704
|
-
|
|
4697
|
+
document.querySelectorAll('[data-wgt-popup="true"]').forEach((f) => f.remove());
|
|
4698
|
+
let B = a;
|
|
4699
|
+
if (!B) {
|
|
4700
|
+
const f = document.body.className;
|
|
4701
|
+
f.includes("bvb") ? B = "bvb" : f.includes("shb") ? B = "shb" : f.includes("agr") ? B = "agr" : f.includes("nama") ? B = "nama" : B = "ocb";
|
|
4702
|
+
}
|
|
4703
|
+
const Q = Bu(B), E = document.createElement("div");
|
|
4704
|
+
E.setAttribute("data-wgt-popup", "true"), E.setAttribute("data-theme", B), E.setAttribute("role", "dialog"), E.setAttribute("aria-modal", "true"), E.style.cssText = `
|
|
4705
4705
|
position: fixed;
|
|
4706
4706
|
inset: 0;
|
|
4707
4707
|
z-index: 50;
|
|
@@ -4711,8 +4711,8 @@ function uu({
|
|
|
4711
4711
|
background: rgba(255,255,255,0.8);
|
|
4712
4712
|
backdrop-filter: blur(4px);
|
|
4713
4713
|
`;
|
|
4714
|
-
const
|
|
4715
|
-
|
|
4714
|
+
const u = document.createElement("div");
|
|
4715
|
+
u.tabIndex = -1, u.style.cssText = `
|
|
4716
4716
|
position: relative;
|
|
4717
4717
|
width: 100%;
|
|
4718
4718
|
max-width: 28rem;
|
|
@@ -4722,7 +4722,7 @@ function uu({
|
|
|
4722
4722
|
padding: 1.5rem;
|
|
4723
4723
|
text-align: center;
|
|
4724
4724
|
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
|
|
4725
|
-
`,
|
|
4725
|
+
`, E.appendChild(u);
|
|
4726
4726
|
const d = document.createElement("div");
|
|
4727
4727
|
if (d.style.cssText = "display:flex;justify-content:center", r)
|
|
4728
4728
|
d.innerHTML = `
|
|
@@ -4738,35 +4738,35 @@ function uu({
|
|
|
4738
4738
|
">Failed</div>
|
|
4739
4739
|
`;
|
|
4740
4740
|
else {
|
|
4741
|
-
const
|
|
4742
|
-
|
|
4741
|
+
const f = document.createElement("img");
|
|
4742
|
+
f.src = C ? Qu : o ? Eu : cu, f.alt = "status", f.style.cssText = o ? "width:120px;height:120px" : "width:40px;height:40px", d.appendChild(f);
|
|
4743
4743
|
}
|
|
4744
|
-
|
|
4745
|
-
const
|
|
4746
|
-
if (
|
|
4744
|
+
u.appendChild(d);
|
|
4745
|
+
const q = document.createElement("h2");
|
|
4746
|
+
if (q.textContent = e, q.style.cssText = `
|
|
4747
4747
|
margin:1rem 0 0.5rem;
|
|
4748
4748
|
font-size:1.25rem;
|
|
4749
4749
|
font-weight:600;
|
|
4750
4750
|
color:#1f2937;
|
|
4751
|
-
`,
|
|
4752
|
-
const
|
|
4753
|
-
|
|
4751
|
+
`, u.appendChild(q), A) {
|
|
4752
|
+
const f = document.createElement("p");
|
|
4753
|
+
f.textContent = A, f.style.cssText = `
|
|
4754
4754
|
margin-bottom:1.5rem;
|
|
4755
4755
|
font-size:0.875rem;
|
|
4756
4756
|
color:#0E121B;
|
|
4757
4757
|
line-height:1.5;
|
|
4758
|
-
`,
|
|
4758
|
+
`, u.appendChild(f);
|
|
4759
4759
|
}
|
|
4760
|
-
let m = null,
|
|
4760
|
+
let m = null, w = null;
|
|
4761
4761
|
if (!I || !!i) {
|
|
4762
|
-
const
|
|
4763
|
-
|
|
4762
|
+
const f = document.createElement("div");
|
|
4763
|
+
f.style.cssText = `
|
|
4764
4764
|
display:flex;
|
|
4765
4765
|
gap:1rem;
|
|
4766
4766
|
justify-content:center;
|
|
4767
4767
|
margin-top:${A ? "0" : "1.5rem"};
|
|
4768
|
-
`,
|
|
4769
|
-
const
|
|
4768
|
+
`, u.appendChild(f);
|
|
4769
|
+
const N = !o && !C;
|
|
4770
4770
|
I || (m = document.createElement("button"), m.type = "button", m.textContent = t, m.style.cssText = `
|
|
4771
4771
|
width:100%;
|
|
4772
4772
|
padding:0.75rem 1rem;
|
|
@@ -4776,8 +4776,8 @@ function uu({
|
|
|
4776
4776
|
font-size:1rem;
|
|
4777
4777
|
font-weight:500;
|
|
4778
4778
|
color:#fff;
|
|
4779
|
-
background:${
|
|
4780
|
-
`,
|
|
4779
|
+
background:${N ? "#ef4444" : Q};
|
|
4780
|
+
`, f.appendChild(m)), i && (w = document.createElement("button"), w.type = "button", w.textContent = i, w.style.cssText = `
|
|
4781
4781
|
width:100%;
|
|
4782
4782
|
padding:0.75rem 1rem;
|
|
4783
4783
|
border-radius:4px;
|
|
@@ -4786,27 +4786,27 @@ function uu({
|
|
|
4786
4786
|
font-size:1rem;
|
|
4787
4787
|
background:#d1d5db;
|
|
4788
4788
|
color:#374151;
|
|
4789
|
-
`,
|
|
4789
|
+
`, f.appendChild(w));
|
|
4790
4790
|
}
|
|
4791
|
-
let
|
|
4792
|
-
const
|
|
4793
|
-
|
|
4794
|
-
},
|
|
4795
|
-
|
|
4791
|
+
let M = !1, D = !1;
|
|
4792
|
+
const z = (f) => {
|
|
4793
|
+
f.target === E && g && !s && W();
|
|
4794
|
+
}, j = (f) => {
|
|
4795
|
+
f.key === "Escape" && g && !s && W();
|
|
4796
4796
|
};
|
|
4797
|
-
function N() {
|
|
4798
|
-
Q.addEventListener("click", D), window.addEventListener("keydown", z), m && m.addEventListener("click", () => T(!0)), q && q.addEventListener("click", () => T(!1));
|
|
4799
|
-
}
|
|
4800
4797
|
function K() {
|
|
4801
|
-
|
|
4798
|
+
E.addEventListener("click", z), window.addEventListener("keydown", j), m && m.addEventListener("click", () => W(!0)), w && w.addEventListener("click", () => W(!1));
|
|
4802
4799
|
}
|
|
4803
4800
|
function k() {
|
|
4804
|
-
|
|
4801
|
+
E.removeEventListener("click", z), window.removeEventListener("keydown", j);
|
|
4802
|
+
}
|
|
4803
|
+
function ZA() {
|
|
4804
|
+
M || (M = !0, document.body.appendChild(E), E.style.display = "flex", K(), setTimeout(() => m == null ? void 0 : m.focus(), 0));
|
|
4805
4805
|
}
|
|
4806
|
-
function
|
|
4807
|
-
!
|
|
4806
|
+
function W(f = !0) {
|
|
4807
|
+
!M || D || (D = !0, M = !1, k(), E.remove(), f && typeof n == "function" && n());
|
|
4808
4808
|
}
|
|
4809
|
-
return { container:
|
|
4809
|
+
return { container: E, open: ZA, close: W };
|
|
4810
4810
|
}
|
|
4811
4811
|
function du(e, A = {}) {
|
|
4812
4812
|
const {
|
|
@@ -4815,40 +4815,40 @@ function du(e, A = {}) {
|
|
|
4815
4815
|
customMessage: n = null,
|
|
4816
4816
|
onError: o = null
|
|
4817
4817
|
} = A;
|
|
4818
|
-
let r = n ||
|
|
4818
|
+
let r = n || G("errorUnknown");
|
|
4819
4819
|
if (e != null && e.response) {
|
|
4820
4820
|
const C = e.response.status, s = e.response.data;
|
|
4821
4821
|
switch (C) {
|
|
4822
4822
|
case 400:
|
|
4823
|
-
r = (s == null ? void 0 : s.message) ||
|
|
4823
|
+
r = (s == null ? void 0 : s.message) || G("errorInvalidRequest");
|
|
4824
4824
|
break;
|
|
4825
4825
|
case 401:
|
|
4826
|
-
r =
|
|
4826
|
+
r = G("errorUnauthorized");
|
|
4827
4827
|
break;
|
|
4828
4828
|
case 403:
|
|
4829
|
-
r =
|
|
4829
|
+
r = G("errorForbidden");
|
|
4830
4830
|
break;
|
|
4831
4831
|
case 404:
|
|
4832
|
-
r =
|
|
4832
|
+
r = G("errorNotFound");
|
|
4833
4833
|
break;
|
|
4834
4834
|
case 422:
|
|
4835
|
-
r = (s == null ? void 0 : s.message) ||
|
|
4835
|
+
r = (s == null ? void 0 : s.message) || G("errorValidation");
|
|
4836
4836
|
break;
|
|
4837
4837
|
case 429:
|
|
4838
|
-
r =
|
|
4838
|
+
r = G("errorTooManyRequests");
|
|
4839
4839
|
break;
|
|
4840
4840
|
case 500:
|
|
4841
|
-
r =
|
|
4841
|
+
r = G("errorServer");
|
|
4842
4842
|
break;
|
|
4843
4843
|
case 502:
|
|
4844
4844
|
case 503:
|
|
4845
4845
|
case 504:
|
|
4846
|
-
r =
|
|
4846
|
+
r = G("errorServiceUnavailable");
|
|
4847
4847
|
break;
|
|
4848
4848
|
default:
|
|
4849
|
-
r = (s == null ? void 0 : s.message) ||
|
|
4849
|
+
r = (s == null ? void 0 : s.message) || G("errorUnknown");
|
|
4850
4850
|
}
|
|
4851
|
-
} else e != null && e.request ? r =
|
|
4851
|
+
} else e != null && e.request ? r = G("errorNetwork") : r = (e == null ? void 0 : e.message) || G("errorUnknown");
|
|
4852
4852
|
if (typeof o == "function")
|
|
4853
4853
|
try {
|
|
4854
4854
|
o(e, r);
|
|
@@ -4869,7 +4869,7 @@ function Xt(e, A = {}) {
|
|
|
4869
4869
|
}
|
|
4870
4870
|
function Ad(e, A = {}) {
|
|
4871
4871
|
const {
|
|
4872
|
-
okLabel: t =
|
|
4872
|
+
okLabel: t = G("ok"),
|
|
4873
4873
|
onClose: i = null,
|
|
4874
4874
|
isOffline: n = !1,
|
|
4875
4875
|
cancelLabel: o = null,
|
|
@@ -4892,13 +4892,13 @@ function Ad(e, A = {}) {
|
|
|
4892
4892
|
});
|
|
4893
4893
|
return document.body.appendChild(C.container), C.open(), C;
|
|
4894
4894
|
}
|
|
4895
|
-
const
|
|
4895
|
+
const FA = y.create({
|
|
4896
4896
|
headers: {
|
|
4897
4897
|
Accept: "application/json"
|
|
4898
4898
|
},
|
|
4899
4899
|
withCredentials: !1
|
|
4900
4900
|
});
|
|
4901
|
-
|
|
4901
|
+
FA.interceptors.request.use(
|
|
4902
4902
|
function(e) {
|
|
4903
4903
|
return e.baseURL = fQ().invoiceHubBaseUrl, e;
|
|
4904
4904
|
},
|
|
@@ -4906,10 +4906,10 @@ ZA.interceptors.request.use(
|
|
|
4906
4906
|
return Promise.reject(e);
|
|
4907
4907
|
}
|
|
4908
4908
|
);
|
|
4909
|
-
Xt(
|
|
4909
|
+
Xt(FA, {});
|
|
4910
4910
|
function ed(A) {
|
|
4911
4911
|
return v(this, arguments, function* ({ orderId: e }) {
|
|
4912
|
-
return yield
|
|
4912
|
+
return yield FA.get(`${DQ}/${e}`, {
|
|
4913
4913
|
headers: {
|
|
4914
4914
|
"Content-Type": "application/json"
|
|
4915
4915
|
}
|
|
@@ -4918,7 +4918,7 @@ function ed(A) {
|
|
|
4918
4918
|
}
|
|
4919
4919
|
function lu(A) {
|
|
4920
4920
|
return v(this, arguments, function* ({ orderId: e }) {
|
|
4921
|
-
return yield
|
|
4921
|
+
return yield FA.get(
|
|
4922
4922
|
`${RQ}/${e}`,
|
|
4923
4923
|
{
|
|
4924
4924
|
headers: {
|
|
@@ -4932,17 +4932,17 @@ let he = "accessToken";
|
|
|
4932
4932
|
function hu(e) {
|
|
4933
4933
|
he = e;
|
|
4934
4934
|
}
|
|
4935
|
-
let
|
|
4935
|
+
let KA = null;
|
|
4936
4936
|
function mu(e) {
|
|
4937
|
-
|
|
4937
|
+
KA = e;
|
|
4938
4938
|
}
|
|
4939
|
-
let
|
|
4940
|
-
const
|
|
4939
|
+
let BA = [], vA = !1;
|
|
4940
|
+
const rA = y.create({
|
|
4941
4941
|
headers: {
|
|
4942
4942
|
Accept: "application/json"
|
|
4943
4943
|
}
|
|
4944
4944
|
});
|
|
4945
|
-
|
|
4945
|
+
rA.interceptors.request.use(
|
|
4946
4946
|
function(e) {
|
|
4947
4947
|
return e.headers.Authorization = `Bearer ${localStorage.getItem(
|
|
4948
4948
|
he
|
|
@@ -4956,24 +4956,24 @@ function pu(e, A) {
|
|
|
4956
4956
|
return v(this, null, function* () {
|
|
4957
4957
|
var i, n;
|
|
4958
4958
|
const t = A != null ? A : localStorage.getItem(he);
|
|
4959
|
-
for (;
|
|
4960
|
-
const o =
|
|
4959
|
+
for (; BA.length; ) {
|
|
4960
|
+
const o = BA.shift();
|
|
4961
4961
|
if (o)
|
|
4962
4962
|
try {
|
|
4963
|
-
o.request.headers = (i = o.request.headers) != null ? i : {}, t && (o.request.headers.Authorization = `Bearer ${t}`), o.resolve(
|
|
4963
|
+
o.request.headers = (i = o.request.headers) != null ? i : {}, t && (o.request.headers.Authorization = `Bearer ${t}`), o.resolve(rA(o.request));
|
|
4964
4964
|
} catch (r) {
|
|
4965
4965
|
o.reject(r);
|
|
4966
4966
|
}
|
|
4967
4967
|
}
|
|
4968
4968
|
e.headers = (n = e.headers) != null ? n : {}, A && (e.headers.Authorization = `Bearer ${A}`);
|
|
4969
4969
|
try {
|
|
4970
|
-
return yield
|
|
4970
|
+
return yield rA(e);
|
|
4971
4971
|
} finally {
|
|
4972
|
-
|
|
4972
|
+
vA = !1;
|
|
4973
4973
|
}
|
|
4974
4974
|
});
|
|
4975
4975
|
}
|
|
4976
|
-
|
|
4976
|
+
rA.interceptors.response.use(
|
|
4977
4977
|
(e) => e,
|
|
4978
4978
|
(e) => v(null, null, function* () {
|
|
4979
4979
|
const A = e == null ? void 0 : e.config;
|
|
@@ -4981,27 +4981,27 @@ CA.interceptors.response.use(
|
|
|
4981
4981
|
return Promise.reject(e);
|
|
4982
4982
|
if (e.response.status === 401 || e.response.status === 403)
|
|
4983
4983
|
try {
|
|
4984
|
-
if (
|
|
4984
|
+
if (vA)
|
|
4985
4985
|
return new Promise((i, n) => {
|
|
4986
|
-
|
|
4986
|
+
BA.push({ resolve: i, reject: n, request: A });
|
|
4987
4987
|
});
|
|
4988
|
-
|
|
4989
|
-
const t = yield
|
|
4988
|
+
vA = !0;
|
|
4989
|
+
const t = yield KA == null ? void 0 : KA();
|
|
4990
4990
|
return pu(A, t == null ? void 0 : t.accessToken);
|
|
4991
4991
|
} catch (t) {
|
|
4992
|
-
for (;
|
|
4993
|
-
const i =
|
|
4992
|
+
for (; BA.length; ) {
|
|
4993
|
+
const i = BA.shift();
|
|
4994
4994
|
i && i.reject(t);
|
|
4995
4995
|
}
|
|
4996
|
-
return
|
|
4996
|
+
return vA = !1, Promise.reject(t);
|
|
4997
4997
|
}
|
|
4998
4998
|
return Promise.reject(e);
|
|
4999
4999
|
})
|
|
5000
5000
|
);
|
|
5001
|
-
Xt(
|
|
5001
|
+
Xt(rA, {});
|
|
5002
5002
|
function td(e) {
|
|
5003
5003
|
return v(this, null, function* () {
|
|
5004
|
-
const A = yield
|
|
5004
|
+
const A = yield rA.post(
|
|
5005
5005
|
LQ,
|
|
5006
5006
|
{
|
|
5007
5007
|
bill_number: e.orderId,
|
|
@@ -5036,7 +5036,7 @@ function qu(e) {
|
|
|
5036
5036
|
function id(e) {
|
|
5037
5037
|
return v(this, null, function* () {
|
|
5038
5038
|
if (pe(e), !ie) {
|
|
5039
|
-
const { InvoiceRegisterWidget: i } = yield import("./widget-
|
|
5039
|
+
const { InvoiceRegisterWidget: i } = yield import("./widget-DirvUEFw.js");
|
|
5040
5040
|
ie = i;
|
|
5041
5041
|
}
|
|
5042
5042
|
const A = me(e.selector), t = yield ie(
|
|
@@ -5059,7 +5059,7 @@ function id(e) {
|
|
|
5059
5059
|
function nd(e) {
|
|
5060
5060
|
return v(this, null, function* () {
|
|
5061
5061
|
if (pe(e), !te) {
|
|
5062
|
-
const { EContractWidget: t } = yield import("./widget-
|
|
5062
|
+
const { EContractWidget: t } = yield import("./widget-DirvUEFw.js");
|
|
5063
5063
|
te = t;
|
|
5064
5064
|
}
|
|
5065
5065
|
const A = me(e.selector);
|
|
@@ -5089,7 +5089,7 @@ function Cd(e) {
|
|
|
5089
5089
|
if (pe(e), !(e != null && e.uuid))
|
|
5090
5090
|
throw new Error("[WidgetSDK] Missing uuid for export e-invoice flow");
|
|
5091
5091
|
const A = me(e.selector);
|
|
5092
|
-
ne || (ne = (yield import("./index-
|
|
5092
|
+
ne || (ne = (yield import("./index-C0svoYBT.js")).createInvoiceRequestFlow), A.innerHTML = "";
|
|
5093
5093
|
const t = ne({
|
|
5094
5094
|
uuid: e.uuid,
|
|
5095
5095
|
orderInfo: e.orderInfo || { code: "", address: "", total: "" },
|
|
@@ -5132,7 +5132,7 @@ export {
|
|
|
5132
5132
|
Du as q,
|
|
5133
5133
|
id as r,
|
|
5134
5134
|
Ad as s,
|
|
5135
|
-
|
|
5135
|
+
G as t,
|
|
5136
5136
|
nd as u,
|
|
5137
5137
|
yQ as v,
|
|
5138
5138
|
od as w,
|