@linagora/linid-im-front-corelib 0.0.39 → 0.0.40
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/core-lib.es.js +794 -753
- package/dist/core-lib.umd.js +14 -14
- package/dist/package.json +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/types/src/composables/useDialog.d.ts +10 -0
- package/dist/types/src/index.d.ts +3 -1
- package/dist/types/src/types/dialogType.d.ts +17 -0
- package/dist/types/src/types/uiDesign.d.ts +11 -3
- package/package.json +1 -1
package/dist/core-lib.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _n from "vue";
|
|
2
|
-
import { defineAsyncComponent as
|
|
2
|
+
import { defineAsyncComponent as Do, hasInjectionContext as An, inject as Ut, getCurrentInstance as ko, ref as et, reactive as Fo, markRaw as dt, effectScope as Uo, isRef as mt, isReactive as Qn, toRef as hn, toRaw as Mo, nextTick as _r, getCurrentScope as xo, onScopeDispose as Vo, watch as vn, computed as ke, toRefs as hr, defineComponent as Jt, watchEffect as $o, openBlock as En, createElementBlock as Er, Fragment as Mt, renderList as Bo, createBlock as jo, resolveDynamicComponent as Ho, mergeProps as Wo, renderSlot as qo, createElementVNode as Go, createCommentVNode as Yo, onMounted as Ns, onUnmounted as Os, shallowRef as Ko, h as Ss, createVNode as Xo, Text as Jo } from "vue";
|
|
3
3
|
let xt = null;
|
|
4
|
-
function
|
|
4
|
+
function Fu(e) {
|
|
5
5
|
if (xt !== null) {
|
|
6
6
|
console.warn(
|
|
7
7
|
"[LinID CoreLib] Module Federation has already been initialized. Re-initialization is ignored."
|
|
@@ -10,23 +10,23 @@ function ku(e) {
|
|
|
10
10
|
}
|
|
11
11
|
xt = e;
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function zo() {
|
|
14
14
|
if (xt === null)
|
|
15
15
|
throw new Error(
|
|
16
16
|
"[LinID CoreLib] Module Federation is not initialized. Call setModuleFederation() first."
|
|
17
17
|
);
|
|
18
18
|
return xt;
|
|
19
19
|
}
|
|
20
|
-
const
|
|
21
|
-
() =>
|
|
20
|
+
const Qo = (e) => Do(
|
|
21
|
+
() => zo().loadRemote(e).then((t) => {
|
|
22
22
|
if (!t?.default)
|
|
23
23
|
throw new Error(`Failed to load component from ${e}`);
|
|
24
24
|
return t.default;
|
|
25
25
|
})
|
|
26
26
|
);
|
|
27
27
|
const Ze = typeof window < "u";
|
|
28
|
-
let
|
|
29
|
-
const Vt = (e) =>
|
|
28
|
+
let Be;
|
|
29
|
+
const Vt = (e) => Be = e;
|
|
30
30
|
process.env.NODE_ENV;
|
|
31
31
|
const Cn = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
|
|
32
32
|
/* istanbul ignore next */
|
|
@@ -35,35 +35,35 @@ const Cn = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
|
|
|
35
35
|
function qe(e) {
|
|
36
36
|
return e && typeof e == "object" && Object.prototype.toString.call(e) === "[object Object]" && typeof e.toJSON != "function";
|
|
37
37
|
}
|
|
38
|
-
var
|
|
38
|
+
var pt;
|
|
39
39
|
(function(e) {
|
|
40
40
|
e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
|
|
41
|
-
})(
|
|
42
|
-
function
|
|
41
|
+
})(pt || (pt = {}));
|
|
42
|
+
function Ts(e, t) {
|
|
43
43
|
for (const n in t) {
|
|
44
44
|
const r = t[n];
|
|
45
45
|
if (!(n in e))
|
|
46
46
|
continue;
|
|
47
47
|
const s = e[n];
|
|
48
|
-
qe(s) && qe(r) && !mt(r) && !Qn(r) ? e[n] =
|
|
48
|
+
qe(s) && qe(r) && !mt(r) && !Qn(r) ? e[n] = Ts(s, r) : e[n] = r;
|
|
49
49
|
}
|
|
50
50
|
return e;
|
|
51
51
|
}
|
|
52
|
-
const
|
|
52
|
+
const Ls = () => {
|
|
53
53
|
};
|
|
54
|
-
function gr(e, t, n, r =
|
|
54
|
+
function gr(e, t, n, r = Ls) {
|
|
55
55
|
e.add(t);
|
|
56
56
|
const s = () => {
|
|
57
57
|
e.delete(t) && r();
|
|
58
58
|
};
|
|
59
|
-
return !n &&
|
|
59
|
+
return !n && xo() && Vo(s), s;
|
|
60
60
|
}
|
|
61
61
|
function ze(e, ...t) {
|
|
62
62
|
e.forEach((n) => {
|
|
63
63
|
n(...t);
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
|
-
const
|
|
66
|
+
const Zo = (e) => e(), br = Symbol(), gn = Symbol();
|
|
67
67
|
function Rn(e, t) {
|
|
68
68
|
e instanceof Map && t instanceof Map ? t.forEach((n, r) => e.set(r, n)) : e instanceof Set && t instanceof Set && t.forEach(e.add, e);
|
|
69
69
|
for (const n in t) {
|
|
@@ -74,12 +74,12 @@ function Rn(e, t) {
|
|
|
74
74
|
}
|
|
75
75
|
return e;
|
|
76
76
|
}
|
|
77
|
-
const
|
|
77
|
+
const ei = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
|
|
78
78
|
/* istanbul ignore next */
|
|
79
79
|
Symbol()
|
|
80
80
|
);
|
|
81
|
-
function
|
|
82
|
-
return !qe(e) || !Object.prototype.hasOwnProperty.call(e,
|
|
81
|
+
function ti(e) {
|
|
82
|
+
return !qe(e) || !Object.prototype.hasOwnProperty.call(e, ei);
|
|
83
83
|
}
|
|
84
84
|
const { assign: pe } = Object;
|
|
85
85
|
function yr(e) {
|
|
@@ -92,9 +92,9 @@ function Nr(e, t, n, r) {
|
|
|
92
92
|
!a && (process.env.NODE_ENV === "production" || !r) && (n.state.value[e] = s ? s() : {});
|
|
93
93
|
const l = process.env.NODE_ENV !== "production" && r ? (
|
|
94
94
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
95
|
-
hr(
|
|
95
|
+
hr(et(s ? s() : {}).value)
|
|
96
96
|
) : hr(n.state.value[e]);
|
|
97
|
-
return pe(l, o, Object.keys(i || {}).reduce((p, g) => (process.env.NODE_ENV !== "production" && g in l && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${g}" in store "${e}".`), p[g] =
|
|
97
|
+
return pe(l, o, Object.keys(i || {}).reduce((p, g) => (process.env.NODE_ENV !== "production" && g in l && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${g}" in store "${e}".`), p[g] = dt(ke(() => {
|
|
98
98
|
Vt(n);
|
|
99
99
|
const A = n._s.get(e);
|
|
100
100
|
return i[g].call(A, A);
|
|
@@ -114,16 +114,16 @@ function In(e, t, n = {}, r, s, o) {
|
|
|
114
114
|
let u, l, p = /* @__PURE__ */ new Set(), g = /* @__PURE__ */ new Set(), A;
|
|
115
115
|
const E = r.state.value[e];
|
|
116
116
|
!o && !E && (process.env.NODE_ENV === "production" || !s) && (r.state.value[e] = {});
|
|
117
|
-
const b =
|
|
117
|
+
const b = et({});
|
|
118
118
|
let S;
|
|
119
119
|
function m(I) {
|
|
120
120
|
let P;
|
|
121
121
|
u = l = !1, process.env.NODE_ENV !== "production" && (A = []), typeof I == "function" ? (I(r.state.value[e]), P = {
|
|
122
|
-
type:
|
|
122
|
+
type: pt.patchFunction,
|
|
123
123
|
storeId: e,
|
|
124
124
|
events: A
|
|
125
125
|
}) : (Rn(r.state.value[e], I), P = {
|
|
126
|
-
type:
|
|
126
|
+
type: pt.patchObject,
|
|
127
127
|
payload: I,
|
|
128
128
|
storeId: e,
|
|
129
129
|
events: A
|
|
@@ -142,7 +142,7 @@ function In(e, t, n = {}, r, s, o) {
|
|
|
142
142
|
/* istanbul ignore next */
|
|
143
143
|
process.env.NODE_ENV !== "production" ? () => {
|
|
144
144
|
throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`);
|
|
145
|
-
} :
|
|
145
|
+
} : Ls
|
|
146
146
|
);
|
|
147
147
|
function T() {
|
|
148
148
|
i.stop(), p.clear(), g.clear(), r._s.delete(e);
|
|
@@ -175,7 +175,7 @@ function In(e, t, n = {}, r, s, o) {
|
|
|
175
175
|
return Z instanceof Promise ? Z.then((Q) => (ze(ne, Q), Q)).catch((Q) => (ze(be, Q), Promise.reject(Q))) : (ze(ne, Z), Z);
|
|
176
176
|
};
|
|
177
177
|
return k[br] = !0, k[gn] = P, k;
|
|
178
|
-
}, C = /* @__PURE__ */
|
|
178
|
+
}, C = /* @__PURE__ */ dt({
|
|
179
179
|
actions: {},
|
|
180
180
|
getters: {},
|
|
181
181
|
state: [],
|
|
@@ -191,17 +191,17 @@ function In(e, t, n = {}, r, s, o) {
|
|
|
191
191
|
const k = gr(p, I, P.detached, () => W()), W = i.run(() => vn(() => r.state.value[e], (ne) => {
|
|
192
192
|
(P.flush === "sync" ? l : u) && I({
|
|
193
193
|
storeId: e,
|
|
194
|
-
type:
|
|
194
|
+
type: pt.direct,
|
|
195
195
|
events: A
|
|
196
196
|
}, ne);
|
|
197
197
|
}, pe({}, c, P)));
|
|
198
198
|
return k;
|
|
199
199
|
},
|
|
200
200
|
$dispose: T
|
|
201
|
-
}, _ =
|
|
201
|
+
}, _ = Fo(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ze ? pe(
|
|
202
202
|
{
|
|
203
203
|
_hmrPayload: C,
|
|
204
|
-
_customProperties:
|
|
204
|
+
_customProperties: dt(/* @__PURE__ */ new Set())
|
|
205
205
|
// devtools custom properties
|
|
206
206
|
},
|
|
207
207
|
R
|
|
@@ -209,11 +209,11 @@ function In(e, t, n = {}, r, s, o) {
|
|
|
209
209
|
// setupStore
|
|
210
210
|
) : R);
|
|
211
211
|
r._s.set(e, _);
|
|
212
|
-
const U = (r._a && r._a.runWithContext ||
|
|
212
|
+
const U = (r._a && r._a.runWithContext || Zo)(() => r._e.run(() => (i = Uo()).run(() => t({ action: y }))));
|
|
213
213
|
for (const I in U) {
|
|
214
214
|
const P = U[I];
|
|
215
215
|
if (mt(P) && !yr(P) || Qn(P))
|
|
216
|
-
process.env.NODE_ENV !== "production" && s ? b.value[I] = hn(U, I) : o || (E &&
|
|
216
|
+
process.env.NODE_ENV !== "production" && s ? b.value[I] = hn(U, I) : o || (E && ti(P) && (mt(P) ? P.value = E[I] : Rn(P, E[I])), r.state.value[e][I] = P), process.env.NODE_ENV !== "production" && C.state.push(I);
|
|
217
217
|
else if (typeof P == "function") {
|
|
218
218
|
const k = process.env.NODE_ENV !== "production" && s ? P : y(P, I);
|
|
219
219
|
U[I] = k, process.env.NODE_ENV !== "production" && (C.actions[I] = P), a.actions[I] = P;
|
|
@@ -221,9 +221,9 @@ function In(e, t, n = {}, r, s, o) {
|
|
|
221
221
|
// @ts-expect-error
|
|
222
222
|
n.getters[I]
|
|
223
223
|
) : P, Ze && (U._getters || // @ts-expect-error: same
|
|
224
|
-
(U._getters =
|
|
224
|
+
(U._getters = dt([]))).push(I));
|
|
225
225
|
}
|
|
226
|
-
if (pe(_, U), pe(
|
|
226
|
+
if (pe(_, U), pe(Mo(_), U), Object.defineProperty(_, "$state", {
|
|
227
227
|
get: () => process.env.NODE_ENV !== "production" && s ? b.value : r.state.value[e],
|
|
228
228
|
set: (I) => {
|
|
229
229
|
if (process.env.NODE_ENV !== "production" && s)
|
|
@@ -232,11 +232,11 @@ function In(e, t, n = {}, r, s, o) {
|
|
|
232
232
|
pe(P, I);
|
|
233
233
|
});
|
|
234
234
|
}
|
|
235
|
-
}), process.env.NODE_ENV !== "production" && (_._hotUpdate =
|
|
235
|
+
}), process.env.NODE_ENV !== "production" && (_._hotUpdate = dt((I) => {
|
|
236
236
|
_._hotUpdating = !0, I._hmrPayload.state.forEach((P) => {
|
|
237
237
|
if (P in _.$state) {
|
|
238
238
|
const k = I.$state[P], W = _.$state[P];
|
|
239
|
-
typeof k == "object" && qe(k) && qe(W) ?
|
|
239
|
+
typeof k == "object" && qe(k) && qe(W) ? Ts(k, W) : I.$state[P] = W;
|
|
240
240
|
}
|
|
241
241
|
_[P] = hn(I.$state, P);
|
|
242
242
|
}), Object.keys(_.$state).forEach((P) => {
|
|
@@ -302,18 +302,18 @@ function Zn(e, t, n) {
|
|
|
302
302
|
const c = An();
|
|
303
303
|
if (i = // in test mode, ignore the argument provided as we can always retrieve a
|
|
304
304
|
// pinia instance with getActivePinia()
|
|
305
|
-
(process.env.NODE_ENV === "test" &&
|
|
305
|
+
(process.env.NODE_ENV === "test" && Be && Be._testing ? null : i) || (c ? Ut(Cn, null) : null), i && Vt(i), process.env.NODE_ENV !== "production" && !Be)
|
|
306
306
|
throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
307
307
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
308
308
|
This will fail in production.`);
|
|
309
|
-
i =
|
|
309
|
+
i = Be, i._s.has(e) || (s ? In(e, t, r, i) : Nr(e, r, i), process.env.NODE_ENV !== "production" && (o._pinia = i));
|
|
310
310
|
const u = i._s.get(e);
|
|
311
311
|
if (process.env.NODE_ENV !== "production" && a) {
|
|
312
312
|
const l = "__hot:" + e, p = s ? In(l, t, r, i, !0) : Nr(l, pe({}, r), i, !0);
|
|
313
313
|
a._hotUpdate(p), delete i.state.value[l], i._s.delete(l);
|
|
314
314
|
}
|
|
315
315
|
if (process.env.NODE_ENV !== "production" && Ze) {
|
|
316
|
-
const l =
|
|
316
|
+
const l = ko();
|
|
317
317
|
if (l && l.proxy && // avoid adding stores that are just built for hot module replacement
|
|
318
318
|
!a) {
|
|
319
319
|
const p = l.proxy, g = "_pStores" in p ? p._pStores : p._pStores = {};
|
|
@@ -325,7 +325,7 @@ This will fail in production.`);
|
|
|
325
325
|
return o.$id = e, o;
|
|
326
326
|
}
|
|
327
327
|
let $t = null;
|
|
328
|
-
function
|
|
328
|
+
function Uu(e) {
|
|
329
329
|
if ($t !== null) {
|
|
330
330
|
console.warn(
|
|
331
331
|
"[LinID CoreLib] Pinia store has already been initialized. Re-initialization is ignored."
|
|
@@ -341,7 +341,7 @@ function er() {
|
|
|
341
341
|
);
|
|
342
342
|
return $t;
|
|
343
343
|
}
|
|
344
|
-
const
|
|
344
|
+
const ni = () => ri(er()), ri = /* @__PURE__ */ Zn("linidZoneStore", {
|
|
345
345
|
state: () => ({
|
|
346
346
|
zones: {}
|
|
347
347
|
}),
|
|
@@ -355,55 +355,55 @@ const ti = () => ni(er()), ni = /* @__PURE__ */ Zn("linidZoneStore", {
|
|
|
355
355
|
this.zones[e] || (this.zones[e] = []), this.zones[e].push(t);
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
|
-
}),
|
|
358
|
+
}), Mu = /* @__PURE__ */ Jt({
|
|
359
359
|
__name: "LinidZoneRenderer",
|
|
360
360
|
props: {
|
|
361
361
|
zone: {}
|
|
362
362
|
},
|
|
363
363
|
setup(e) {
|
|
364
|
-
const t = e, n =
|
|
365
|
-
return
|
|
364
|
+
const t = e, n = ni(), r = et([]), s = et(!1);
|
|
365
|
+
return $o(() => {
|
|
366
366
|
s.value = !1;
|
|
367
367
|
const o = n.zones[t.zone] || [];
|
|
368
368
|
r.value = o.map((i) => ({
|
|
369
369
|
...i,
|
|
370
|
-
component:
|
|
370
|
+
component: Qo(i.plugin)
|
|
371
371
|
})), Promise.resolve().then(() => {
|
|
372
372
|
s.value = !0;
|
|
373
373
|
});
|
|
374
374
|
}), (o, i) => (En(), Er(Mt, null, [
|
|
375
|
-
(En(!0), Er(Mt, null,
|
|
375
|
+
(En(!0), Er(Mt, null, Bo(r.value, (a, c) => (En(), jo(Ho(a.component), Wo({
|
|
376
376
|
key: a.plugin + c
|
|
377
377
|
}, { ref_for: !0 }, a.props), null, 16))), 128)),
|
|
378
|
-
s.value && r.value.length === 0 ?
|
|
379
|
-
i[0] || (i[0] =
|
|
380
|
-
]) :
|
|
378
|
+
s.value && r.value.length === 0 ? qo(o.$slots, "default", { key: 0 }, () => [
|
|
379
|
+
i[0] || (i[0] = Go("div", null, "No components to render in this zone.", -1))
|
|
380
|
+
]) : Yo("", !0)
|
|
381
381
|
], 64));
|
|
382
382
|
}
|
|
383
383
|
});
|
|
384
|
-
function
|
|
384
|
+
function As(e, t) {
|
|
385
385
|
return function() {
|
|
386
386
|
return e.apply(t, arguments);
|
|
387
387
|
};
|
|
388
388
|
}
|
|
389
|
-
const { toString:
|
|
390
|
-
const n =
|
|
389
|
+
const { toString: si } = Object.prototype, { getPrototypeOf: tr } = Object, { iterator: zt, toStringTag: vs } = Symbol, Qt = /* @__PURE__ */ ((e) => (t) => {
|
|
390
|
+
const n = si.call(t);
|
|
391
391
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
392
|
-
})(/* @__PURE__ */ Object.create(null)), ge = (e) => (e = e.toLowerCase(), (t) => Qt(t) === e), Zt = (e) => (t) => typeof t === e, { isArray:
|
|
392
|
+
})(/* @__PURE__ */ Object.create(null)), ge = (e) => (e = e.toLowerCase(), (t) => Qt(t) === e), Zt = (e) => (t) => typeof t === e, { isArray: rt } = Array, tt = Zt("undefined");
|
|
393
393
|
function bt(e) {
|
|
394
|
-
return e !== null && !
|
|
394
|
+
return e !== null && !tt(e) && e.constructor !== null && !tt(e.constructor) && ue(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
395
395
|
}
|
|
396
|
-
const
|
|
397
|
-
function
|
|
396
|
+
const Cs = ge("ArrayBuffer");
|
|
397
|
+
function oi(e) {
|
|
398
398
|
let t;
|
|
399
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer &&
|
|
399
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Cs(e.buffer), t;
|
|
400
400
|
}
|
|
401
|
-
const
|
|
401
|
+
const ii = Zt("string"), ue = Zt("function"), Rs = Zt("number"), yt = (e) => e !== null && typeof e == "object", ai = (e) => e === !0 || e === !1, Pt = (e) => {
|
|
402
402
|
if (Qt(e) !== "object")
|
|
403
403
|
return !1;
|
|
404
404
|
const t = tr(e);
|
|
405
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(
|
|
406
|
-
},
|
|
405
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(vs in e) && !(zt in e);
|
|
406
|
+
}, ci = (e) => {
|
|
407
407
|
if (!yt(e) || bt(e))
|
|
408
408
|
return !1;
|
|
409
409
|
try {
|
|
@@ -411,16 +411,16 @@ const oi = Zt("string"), ue = Zt("function"), vs = Zt("number"), yt = (e) => e !
|
|
|
411
411
|
} catch {
|
|
412
412
|
return !1;
|
|
413
413
|
}
|
|
414
|
-
},
|
|
414
|
+
}, li = ge("Date"), ui = ge("File"), fi = ge("Blob"), di = ge("FileList"), pi = (e) => yt(e) && ue(e.pipe), mi = (e) => {
|
|
415
415
|
let t;
|
|
416
416
|
return e && (typeof FormData == "function" && e instanceof FormData || ue(e.append) && ((t = Qt(e)) === "formdata" || // detect form-data instance
|
|
417
417
|
t === "object" && ue(e.toString) && e.toString() === "[object FormData]"));
|
|
418
|
-
},
|
|
418
|
+
}, _i = ge("URLSearchParams"), [hi, Ei, gi, bi] = ["ReadableStream", "Request", "Response", "Headers"].map(ge), yi = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
419
419
|
function Nt(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
420
420
|
if (e === null || typeof e > "u")
|
|
421
421
|
return;
|
|
422
422
|
let r, s;
|
|
423
|
-
if (typeof e != "object" && (e = [e]),
|
|
423
|
+
if (typeof e != "object" && (e = [e]), rt(e))
|
|
424
424
|
for (r = 0, s = e.length; r < s; r++)
|
|
425
425
|
t.call(null, e[r], r, e);
|
|
426
426
|
else {
|
|
@@ -432,7 +432,7 @@ function Nt(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
432
432
|
a = o[r], t.call(null, e[a], a, e);
|
|
433
433
|
}
|
|
434
434
|
}
|
|
435
|
-
function
|
|
435
|
+
function Is(e, t) {
|
|
436
436
|
if (bt(e))
|
|
437
437
|
return null;
|
|
438
438
|
t = t.toLowerCase();
|
|
@@ -443,23 +443,23 @@ function Cs(e, t) {
|
|
|
443
443
|
return s;
|
|
444
444
|
return null;
|
|
445
445
|
}
|
|
446
|
-
const
|
|
446
|
+
const je = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Ps = (e) => !tt(e) && e !== je;
|
|
447
447
|
function Pn() {
|
|
448
|
-
const { caseless: e, skipUndefined: t } =
|
|
449
|
-
const i = e &&
|
|
450
|
-
Pt(n[i]) && Pt(s) ? n[i] = Pn(n[i], s) : Pt(s) ? n[i] = Pn({}, s) :
|
|
448
|
+
const { caseless: e, skipUndefined: t } = Ps(this) && this || {}, n = {}, r = (s, o) => {
|
|
449
|
+
const i = e && Is(n, o) || o;
|
|
450
|
+
Pt(n[i]) && Pt(s) ? n[i] = Pn(n[i], s) : Pt(s) ? n[i] = Pn({}, s) : rt(s) ? n[i] = s.slice() : (!t || !tt(s)) && (n[i] = s);
|
|
451
451
|
};
|
|
452
452
|
for (let s = 0, o = arguments.length; s < o; s++)
|
|
453
453
|
arguments[s] && Nt(arguments[s], r);
|
|
454
454
|
return n;
|
|
455
455
|
}
|
|
456
|
-
const
|
|
457
|
-
n && ue(s) ? e[o] =
|
|
458
|
-
}, { allOwnKeys: r }), e),
|
|
456
|
+
const Ni = (e, t, n, { allOwnKeys: r } = {}) => (Nt(t, (s, o) => {
|
|
457
|
+
n && ue(s) ? e[o] = As(s, n) : e[o] = s;
|
|
458
|
+
}, { allOwnKeys: r }), e), Oi = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Si = (e, t, n, r) => {
|
|
459
459
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
460
460
|
value: t.prototype
|
|
461
461
|
}), n && Object.assign(e.prototype, n);
|
|
462
|
-
},
|
|
462
|
+
}, Ti = (e, t, n, r) => {
|
|
463
463
|
let s, o, i;
|
|
464
464
|
const a = {};
|
|
465
465
|
if (t = t || {}, e == null) return t;
|
|
@@ -469,45 +469,45 @@ const yi = (e, t, n, { allOwnKeys: r } = {}) => (Nt(t, (s, o) => {
|
|
|
469
469
|
e = n !== !1 && tr(e);
|
|
470
470
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
471
471
|
return t;
|
|
472
|
-
},
|
|
472
|
+
}, Li = (e, t, n) => {
|
|
473
473
|
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
474
474
|
const r = e.indexOf(t, n);
|
|
475
475
|
return r !== -1 && r === n;
|
|
476
|
-
},
|
|
476
|
+
}, Ai = (e) => {
|
|
477
477
|
if (!e) return null;
|
|
478
|
-
if (
|
|
478
|
+
if (rt(e)) return e;
|
|
479
479
|
let t = e.length;
|
|
480
|
-
if (!
|
|
480
|
+
if (!Rs(t)) return null;
|
|
481
481
|
const n = new Array(t);
|
|
482
482
|
for (; t-- > 0; )
|
|
483
483
|
n[t] = e[t];
|
|
484
484
|
return n;
|
|
485
|
-
},
|
|
485
|
+
}, vi = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && tr(Uint8Array)), Ci = (e, t) => {
|
|
486
486
|
const r = (e && e[zt]).call(e);
|
|
487
487
|
let s;
|
|
488
488
|
for (; (s = r.next()) && !s.done; ) {
|
|
489
489
|
const o = s.value;
|
|
490
490
|
t.call(e, o[0], o[1]);
|
|
491
491
|
}
|
|
492
|
-
},
|
|
492
|
+
}, Ri = (e, t) => {
|
|
493
493
|
let n;
|
|
494
494
|
const r = [];
|
|
495
495
|
for (; (n = e.exec(t)) !== null; )
|
|
496
496
|
r.push(n);
|
|
497
497
|
return r;
|
|
498
|
-
},
|
|
498
|
+
}, Ii = ge("HTMLFormElement"), Pi = (e) => e.toLowerCase().replace(
|
|
499
499
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
500
500
|
function(n, r, s) {
|
|
501
501
|
return r.toUpperCase() + s;
|
|
502
502
|
}
|
|
503
|
-
), Or = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype),
|
|
503
|
+
), Or = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), wi = ge("RegExp"), ws = (e, t) => {
|
|
504
504
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
505
505
|
Nt(n, (s, o) => {
|
|
506
506
|
let i;
|
|
507
507
|
(i = t(s, o, e)) !== !1 && (r[o] = i || s);
|
|
508
508
|
}), Object.defineProperties(e, r);
|
|
509
|
-
},
|
|
510
|
-
|
|
509
|
+
}, Di = (e) => {
|
|
510
|
+
ws(e, (t, n) => {
|
|
511
511
|
if (ue(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
512
512
|
return !1;
|
|
513
513
|
const r = e[n];
|
|
@@ -521,19 +521,19 @@ const yi = (e, t, n, { allOwnKeys: r } = {}) => (Nt(t, (s, o) => {
|
|
|
521
521
|
});
|
|
522
522
|
}
|
|
523
523
|
});
|
|
524
|
-
},
|
|
524
|
+
}, ki = (e, t) => {
|
|
525
525
|
const n = {}, r = (s) => {
|
|
526
526
|
s.forEach((o) => {
|
|
527
527
|
n[o] = !0;
|
|
528
528
|
});
|
|
529
529
|
};
|
|
530
|
-
return
|
|
531
|
-
},
|
|
532
|
-
},
|
|
533
|
-
function
|
|
534
|
-
return !!(e && ue(e.append) && e[
|
|
530
|
+
return rt(e) ? r(e) : r(String(e).split(t)), n;
|
|
531
|
+
}, Fi = () => {
|
|
532
|
+
}, Ui = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
533
|
+
function Mi(e) {
|
|
534
|
+
return !!(e && ue(e.append) && e[vs] === "FormData" && e[zt]);
|
|
535
535
|
}
|
|
536
|
-
const
|
|
536
|
+
const xi = (e) => {
|
|
537
537
|
const t = new Array(10), n = (r, s) => {
|
|
538
538
|
if (yt(r)) {
|
|
539
539
|
if (t.indexOf(r) >= 0)
|
|
@@ -542,81 +542,81 @@ const Mi = (e) => {
|
|
|
542
542
|
return r;
|
|
543
543
|
if (!("toJSON" in r)) {
|
|
544
544
|
t[s] = r;
|
|
545
|
-
const o =
|
|
545
|
+
const o = rt(r) ? [] : {};
|
|
546
546
|
return Nt(r, (i, a) => {
|
|
547
547
|
const c = n(i, s + 1);
|
|
548
|
-
!
|
|
548
|
+
!tt(c) && (o[a] = c);
|
|
549
549
|
}), t[s] = void 0, o;
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
552
|
return r;
|
|
553
553
|
};
|
|
554
554
|
return n(e, 0);
|
|
555
|
-
},
|
|
556
|
-
s ===
|
|
555
|
+
}, Vi = ge("AsyncFunction"), $i = (e) => e && (yt(e) || ue(e)) && ue(e.then) && ue(e.catch), Ds = ((e, t) => e ? setImmediate : t ? ((n, r) => (je.addEventListener("message", ({ source: s, data: o }) => {
|
|
556
|
+
s === je && o === n && r.length && r.shift()();
|
|
557
557
|
}, !1), (s) => {
|
|
558
|
-
r.push(s),
|
|
558
|
+
r.push(s), je.postMessage(n, "*");
|
|
559
559
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
560
560
|
typeof setImmediate == "function",
|
|
561
|
-
ue(
|
|
562
|
-
),
|
|
563
|
-
isArray:
|
|
564
|
-
isArrayBuffer:
|
|
561
|
+
ue(je.postMessage)
|
|
562
|
+
), Bi = typeof queueMicrotask < "u" ? queueMicrotask.bind(je) : typeof process < "u" && process.nextTick || Ds, ji = (e) => e != null && ue(e[zt]), h = {
|
|
563
|
+
isArray: rt,
|
|
564
|
+
isArrayBuffer: Cs,
|
|
565
565
|
isBuffer: bt,
|
|
566
|
-
isFormData:
|
|
567
|
-
isArrayBufferView:
|
|
568
|
-
isString:
|
|
569
|
-
isNumber:
|
|
570
|
-
isBoolean:
|
|
566
|
+
isFormData: mi,
|
|
567
|
+
isArrayBufferView: oi,
|
|
568
|
+
isString: ii,
|
|
569
|
+
isNumber: Rs,
|
|
570
|
+
isBoolean: ai,
|
|
571
571
|
isObject: yt,
|
|
572
572
|
isPlainObject: Pt,
|
|
573
|
-
isEmptyObject:
|
|
574
|
-
isReadableStream:
|
|
575
|
-
isRequest:
|
|
576
|
-
isResponse:
|
|
577
|
-
isHeaders:
|
|
578
|
-
isUndefined:
|
|
579
|
-
isDate:
|
|
580
|
-
isFile:
|
|
581
|
-
isBlob:
|
|
582
|
-
isRegExp:
|
|
573
|
+
isEmptyObject: ci,
|
|
574
|
+
isReadableStream: hi,
|
|
575
|
+
isRequest: Ei,
|
|
576
|
+
isResponse: gi,
|
|
577
|
+
isHeaders: bi,
|
|
578
|
+
isUndefined: tt,
|
|
579
|
+
isDate: li,
|
|
580
|
+
isFile: ui,
|
|
581
|
+
isBlob: fi,
|
|
582
|
+
isRegExp: wi,
|
|
583
583
|
isFunction: ue,
|
|
584
|
-
isStream:
|
|
585
|
-
isURLSearchParams:
|
|
586
|
-
isTypedArray:
|
|
587
|
-
isFileList:
|
|
584
|
+
isStream: pi,
|
|
585
|
+
isURLSearchParams: _i,
|
|
586
|
+
isTypedArray: vi,
|
|
587
|
+
isFileList: di,
|
|
588
588
|
forEach: Nt,
|
|
589
589
|
merge: Pn,
|
|
590
|
-
extend:
|
|
591
|
-
trim:
|
|
592
|
-
stripBOM:
|
|
593
|
-
inherits:
|
|
594
|
-
toFlatObject:
|
|
590
|
+
extend: Ni,
|
|
591
|
+
trim: yi,
|
|
592
|
+
stripBOM: Oi,
|
|
593
|
+
inherits: Si,
|
|
594
|
+
toFlatObject: Ti,
|
|
595
595
|
kindOf: Qt,
|
|
596
596
|
kindOfTest: ge,
|
|
597
|
-
endsWith:
|
|
598
|
-
toArray:
|
|
599
|
-
forEachEntry:
|
|
600
|
-
matchAll:
|
|
601
|
-
isHTMLForm:
|
|
597
|
+
endsWith: Li,
|
|
598
|
+
toArray: Ai,
|
|
599
|
+
forEachEntry: Ci,
|
|
600
|
+
matchAll: Ri,
|
|
601
|
+
isHTMLForm: Ii,
|
|
602
602
|
hasOwnProperty: Or,
|
|
603
603
|
hasOwnProp: Or,
|
|
604
604
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
605
|
-
reduceDescriptors:
|
|
606
|
-
freezeMethods:
|
|
607
|
-
toObjectSet:
|
|
608
|
-
toCamelCase:
|
|
609
|
-
noop:
|
|
610
|
-
toFiniteNumber:
|
|
611
|
-
findKey:
|
|
612
|
-
global:
|
|
613
|
-
isContextDefined:
|
|
614
|
-
isSpecCompliantForm:
|
|
615
|
-
toJSONObject:
|
|
616
|
-
isAsyncFn:
|
|
617
|
-
isThenable:
|
|
618
|
-
setImmediate:
|
|
619
|
-
asap:
|
|
605
|
+
reduceDescriptors: ws,
|
|
606
|
+
freezeMethods: Di,
|
|
607
|
+
toObjectSet: ki,
|
|
608
|
+
toCamelCase: Pi,
|
|
609
|
+
noop: Fi,
|
|
610
|
+
toFiniteNumber: Ui,
|
|
611
|
+
findKey: Is,
|
|
612
|
+
global: je,
|
|
613
|
+
isContextDefined: Ps,
|
|
614
|
+
isSpecCompliantForm: Mi,
|
|
615
|
+
toJSONObject: xi,
|
|
616
|
+
isAsyncFn: Vi,
|
|
617
|
+
isThenable: $i,
|
|
618
|
+
setImmediate: Ds,
|
|
619
|
+
asap: Bi,
|
|
620
620
|
isIterable: ji
|
|
621
621
|
};
|
|
622
622
|
function M(e, t, n, r, s) {
|
|
@@ -643,7 +643,7 @@ h.inherits(M, Error, {
|
|
|
643
643
|
};
|
|
644
644
|
}
|
|
645
645
|
});
|
|
646
|
-
const
|
|
646
|
+
const ks = M.prototype, Fs = {};
|
|
647
647
|
[
|
|
648
648
|
"ERR_BAD_OPTION_VALUE",
|
|
649
649
|
"ERR_BAD_OPTION",
|
|
@@ -659,34 +659,34 @@ const ws = M.prototype, Ds = {};
|
|
|
659
659
|
"ERR_INVALID_URL"
|
|
660
660
|
// eslint-disable-next-line func-names
|
|
661
661
|
].forEach((e) => {
|
|
662
|
-
|
|
662
|
+
Fs[e] = { value: e };
|
|
663
663
|
});
|
|
664
|
-
Object.defineProperties(M,
|
|
665
|
-
Object.defineProperty(
|
|
664
|
+
Object.defineProperties(M, Fs);
|
|
665
|
+
Object.defineProperty(ks, "isAxiosError", { value: !0 });
|
|
666
666
|
M.from = (e, t, n, r, s, o) => {
|
|
667
|
-
const i = Object.create(
|
|
667
|
+
const i = Object.create(ks);
|
|
668
668
|
h.toFlatObject(e, i, function(l) {
|
|
669
669
|
return l !== Error.prototype;
|
|
670
670
|
}, (u) => u !== "isAxiosError");
|
|
671
671
|
const a = e && e.message ? e.message : "Error", c = t == null && e ? e.code : t;
|
|
672
672
|
return M.call(i, a, c, n, r, s), e && i.cause == null && Object.defineProperty(i, "cause", { value: e, configurable: !0 }), i.name = e && e.name || "Error", o && Object.assign(i, o), i;
|
|
673
673
|
};
|
|
674
|
-
const
|
|
674
|
+
const Hi = null;
|
|
675
675
|
function wn(e) {
|
|
676
676
|
return h.isPlainObject(e) || h.isArray(e);
|
|
677
677
|
}
|
|
678
|
-
function
|
|
678
|
+
function Us(e) {
|
|
679
679
|
return h.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
680
680
|
}
|
|
681
681
|
function Sr(e, t, n) {
|
|
682
682
|
return e ? e.concat(t).map(function(s, o) {
|
|
683
|
-
return s =
|
|
683
|
+
return s = Us(s), !n && o ? "[" + s + "]" : s;
|
|
684
684
|
}).join(n ? "." : "") : t;
|
|
685
685
|
}
|
|
686
|
-
function
|
|
686
|
+
function Wi(e) {
|
|
687
687
|
return h.isArray(e) && !e.some(wn);
|
|
688
688
|
}
|
|
689
|
-
const
|
|
689
|
+
const qi = h.toFlatObject(h, {}, null, function(t) {
|
|
690
690
|
return /^is[A-Z]/.test(t);
|
|
691
691
|
});
|
|
692
692
|
function en(e, t, n) {
|
|
@@ -717,8 +717,8 @@ function en(e, t, n) {
|
|
|
717
717
|
if (E && !S && typeof E == "object") {
|
|
718
718
|
if (h.endsWith(b, "{}"))
|
|
719
719
|
b = r ? b : b.slice(0, -2), E = JSON.stringify(E);
|
|
720
|
-
else if (h.isArray(E) &&
|
|
721
|
-
return b =
|
|
720
|
+
else if (h.isArray(E) && Wi(E) || (h.isFileList(E) || h.endsWith(b, "[]")) && (m = h.toArray(E)))
|
|
721
|
+
return b = Us(b), m.forEach(function(T, y) {
|
|
722
722
|
!(h.isUndefined(T) || T === null) && t.append(
|
|
723
723
|
// eslint-disable-next-line no-nested-ternary
|
|
724
724
|
i === !0 ? Sr([b], y, o) : i === null ? b : b + "[]",
|
|
@@ -728,7 +728,7 @@ function en(e, t, n) {
|
|
|
728
728
|
}
|
|
729
729
|
return wn(E) ? !0 : (t.append(Sr(S, b, o), u(E)), !1);
|
|
730
730
|
}
|
|
731
|
-
const p = [], g = Object.assign(
|
|
731
|
+
const p = [], g = Object.assign(qi, {
|
|
732
732
|
defaultVisitor: l,
|
|
733
733
|
convertValue: u,
|
|
734
734
|
isVisitable: wn
|
|
@@ -769,11 +769,11 @@ function Tr(e) {
|
|
|
769
769
|
function nr(e, t) {
|
|
770
770
|
this._pairs = [], e && en(e, this, t);
|
|
771
771
|
}
|
|
772
|
-
const
|
|
773
|
-
|
|
772
|
+
const Ms = nr.prototype;
|
|
773
|
+
Ms.append = function(t, n) {
|
|
774
774
|
this._pairs.push([t, n]);
|
|
775
775
|
};
|
|
776
|
-
|
|
776
|
+
Ms.toString = function(t) {
|
|
777
777
|
const n = t ? function(r) {
|
|
778
778
|
return t.call(this, r, Tr);
|
|
779
779
|
} : Tr;
|
|
@@ -781,13 +781,13 @@ Fs.toString = function(t) {
|
|
|
781
781
|
return n(s[0]) + "=" + n(s[1]);
|
|
782
782
|
}, "").join("&");
|
|
783
783
|
};
|
|
784
|
-
function
|
|
784
|
+
function Gi(e) {
|
|
785
785
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
786
786
|
}
|
|
787
|
-
function
|
|
787
|
+
function xs(e, t, n) {
|
|
788
788
|
if (!t)
|
|
789
789
|
return e;
|
|
790
|
-
const r = n && n.encode ||
|
|
790
|
+
const r = n && n.encode || Gi;
|
|
791
791
|
h.isFunction(n) && (n = {
|
|
792
792
|
serialize: n
|
|
793
793
|
});
|
|
@@ -853,31 +853,31 @@ class Lr {
|
|
|
853
853
|
});
|
|
854
854
|
}
|
|
855
855
|
}
|
|
856
|
-
const
|
|
856
|
+
const Vs = {
|
|
857
857
|
silentJSONParsing: !0,
|
|
858
858
|
forcedJSONParsing: !0,
|
|
859
859
|
clarifyTimeoutError: !1
|
|
860
|
-
},
|
|
860
|
+
}, Yi = typeof URLSearchParams < "u" ? URLSearchParams : nr, Ki = typeof FormData < "u" ? FormData : null, Xi = typeof Blob < "u" ? Blob : null, Ji = {
|
|
861
861
|
isBrowser: !0,
|
|
862
862
|
classes: {
|
|
863
|
-
URLSearchParams:
|
|
864
|
-
FormData:
|
|
865
|
-
Blob:
|
|
863
|
+
URLSearchParams: Yi,
|
|
864
|
+
FormData: Ki,
|
|
865
|
+
Blob: Xi
|
|
866
866
|
},
|
|
867
867
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
868
|
-
}, rr = typeof window < "u" && typeof document < "u", Dn = typeof navigator == "object" && navigator || void 0,
|
|
869
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
868
|
+
}, rr = typeof window < "u" && typeof document < "u", Dn = typeof navigator == "object" && navigator || void 0, zi = rr && (!Dn || ["ReactNative", "NativeScript", "NS"].indexOf(Dn.product) < 0), Qi = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
869
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Zi = rr && window.location.href || "http://localhost", ea = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
870
870
|
__proto__: null,
|
|
871
871
|
hasBrowserEnv: rr,
|
|
872
|
-
hasStandardBrowserEnv:
|
|
873
|
-
hasStandardBrowserWebWorkerEnv:
|
|
872
|
+
hasStandardBrowserEnv: zi,
|
|
873
|
+
hasStandardBrowserWebWorkerEnv: Qi,
|
|
874
874
|
navigator: Dn,
|
|
875
|
-
origin:
|
|
875
|
+
origin: Zi
|
|
876
876
|
}, Symbol.toStringTag, { value: "Module" })), ae = {
|
|
877
|
-
...
|
|
878
|
-
...
|
|
877
|
+
...ea,
|
|
878
|
+
...Ji
|
|
879
879
|
};
|
|
880
|
-
function
|
|
880
|
+
function ta(e, t) {
|
|
881
881
|
return en(e, new ae.classes.URLSearchParams(), {
|
|
882
882
|
visitor: function(n, r, s, o) {
|
|
883
883
|
return ae.isNode && h.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
@@ -885,10 +885,10 @@ function ea(e, t) {
|
|
|
885
885
|
...t
|
|
886
886
|
});
|
|
887
887
|
}
|
|
888
|
-
function
|
|
888
|
+
function na(e) {
|
|
889
889
|
return h.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
890
890
|
}
|
|
891
|
-
function
|
|
891
|
+
function ra(e) {
|
|
892
892
|
const t = {}, n = Object.keys(e);
|
|
893
893
|
let r;
|
|
894
894
|
const s = n.length;
|
|
@@ -897,22 +897,22 @@ function na(e) {
|
|
|
897
897
|
o = n[r], t[o] = e[o];
|
|
898
898
|
return t;
|
|
899
899
|
}
|
|
900
|
-
function
|
|
900
|
+
function $s(e) {
|
|
901
901
|
function t(n, r, s, o) {
|
|
902
902
|
let i = n[o++];
|
|
903
903
|
if (i === "__proto__") return !0;
|
|
904
904
|
const a = Number.isFinite(+i), c = o >= n.length;
|
|
905
|
-
return i = !i && h.isArray(s) ? s.length : i, c ? (h.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !a) : ((!s[i] || !h.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && h.isArray(s[i]) && (s[i] =
|
|
905
|
+
return i = !i && h.isArray(s) ? s.length : i, c ? (h.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !a) : ((!s[i] || !h.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && h.isArray(s[i]) && (s[i] = ra(s[i])), !a);
|
|
906
906
|
}
|
|
907
907
|
if (h.isFormData(e) && h.isFunction(e.entries)) {
|
|
908
908
|
const n = {};
|
|
909
909
|
return h.forEachEntry(e, (r, s) => {
|
|
910
|
-
t(
|
|
910
|
+
t(na(r), s, n, 0);
|
|
911
911
|
}), n;
|
|
912
912
|
}
|
|
913
913
|
return null;
|
|
914
914
|
}
|
|
915
|
-
function
|
|
915
|
+
function sa(e, t, n) {
|
|
916
916
|
if (h.isString(e))
|
|
917
917
|
try {
|
|
918
918
|
return (t || JSON.parse)(e), h.trim(e);
|
|
@@ -923,12 +923,12 @@ function ra(e, t, n) {
|
|
|
923
923
|
return (n || JSON.stringify)(e);
|
|
924
924
|
}
|
|
925
925
|
const Ot = {
|
|
926
|
-
transitional:
|
|
926
|
+
transitional: Vs,
|
|
927
927
|
adapter: ["xhr", "http", "fetch"],
|
|
928
928
|
transformRequest: [function(t, n) {
|
|
929
929
|
const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = h.isObject(t);
|
|
930
930
|
if (o && h.isHTMLForm(t) && (t = new FormData(t)), h.isFormData(t))
|
|
931
|
-
return s ? JSON.stringify(
|
|
931
|
+
return s ? JSON.stringify($s(t)) : t;
|
|
932
932
|
if (h.isArrayBuffer(t) || h.isBuffer(t) || h.isStream(t) || h.isFile(t) || h.isBlob(t) || h.isReadableStream(t))
|
|
933
933
|
return t;
|
|
934
934
|
if (h.isArrayBufferView(t))
|
|
@@ -938,7 +938,7 @@ const Ot = {
|
|
|
938
938
|
let a;
|
|
939
939
|
if (o) {
|
|
940
940
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
941
|
-
return
|
|
941
|
+
return ta(t, this.formSerializer).toString();
|
|
942
942
|
if ((a = h.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
943
943
|
const c = this.env && this.env.FormData;
|
|
944
944
|
return en(
|
|
@@ -948,7 +948,7 @@ const Ot = {
|
|
|
948
948
|
);
|
|
949
949
|
}
|
|
950
950
|
}
|
|
951
|
-
return o || s ? (n.setContentType("application/json", !1),
|
|
951
|
+
return o || s ? (n.setContentType("application/json", !1), sa(t)) : t;
|
|
952
952
|
}],
|
|
953
953
|
transformResponse: [function(t) {
|
|
954
954
|
const n = this.transitional || Ot.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
|
|
@@ -991,7 +991,7 @@ const Ot = {
|
|
|
991
991
|
h.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
992
992
|
Ot.headers[e] = {};
|
|
993
993
|
});
|
|
994
|
-
const
|
|
994
|
+
const oa = h.toObjectSet([
|
|
995
995
|
"age",
|
|
996
996
|
"authorization",
|
|
997
997
|
"content-length",
|
|
@@ -1009,28 +1009,28 @@ const sa = h.toObjectSet([
|
|
|
1009
1009
|
"referer",
|
|
1010
1010
|
"retry-after",
|
|
1011
1011
|
"user-agent"
|
|
1012
|
-
]),
|
|
1012
|
+
]), ia = (e) => {
|
|
1013
1013
|
const t = {};
|
|
1014
1014
|
let n, r, s;
|
|
1015
1015
|
return e && e.split(`
|
|
1016
1016
|
`).forEach(function(i) {
|
|
1017
|
-
s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] &&
|
|
1017
|
+
s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && oa[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
1018
1018
|
}), t;
|
|
1019
1019
|
}, Ar = Symbol("internals");
|
|
1020
|
-
function
|
|
1020
|
+
function ut(e) {
|
|
1021
1021
|
return e && String(e).trim().toLowerCase();
|
|
1022
1022
|
}
|
|
1023
1023
|
function wt(e) {
|
|
1024
1024
|
return e === !1 || e == null ? e : h.isArray(e) ? e.map(wt) : String(e);
|
|
1025
1025
|
}
|
|
1026
|
-
function
|
|
1026
|
+
function aa(e) {
|
|
1027
1027
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
1028
1028
|
let r;
|
|
1029
1029
|
for (; r = n.exec(e); )
|
|
1030
1030
|
t[r[1]] = r[2];
|
|
1031
1031
|
return t;
|
|
1032
1032
|
}
|
|
1033
|
-
const
|
|
1033
|
+
const ca = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
1034
1034
|
function bn(e, t, n, r, s) {
|
|
1035
1035
|
if (h.isFunction(r))
|
|
1036
1036
|
return r.call(this, t, n);
|
|
@@ -1041,10 +1041,10 @@ function bn(e, t, n, r, s) {
|
|
|
1041
1041
|
return r.test(t);
|
|
1042
1042
|
}
|
|
1043
1043
|
}
|
|
1044
|
-
function
|
|
1044
|
+
function la(e) {
|
|
1045
1045
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
|
|
1046
1046
|
}
|
|
1047
|
-
function
|
|
1047
|
+
function ua(e, t) {
|
|
1048
1048
|
const n = h.toCamelCase(" " + t);
|
|
1049
1049
|
["get", "set", "has"].forEach((r) => {
|
|
1050
1050
|
Object.defineProperty(e, r + n, {
|
|
@@ -1062,7 +1062,7 @@ let fe = class {
|
|
|
1062
1062
|
set(t, n, r) {
|
|
1063
1063
|
const s = this;
|
|
1064
1064
|
function o(a, c, u) {
|
|
1065
|
-
const l =
|
|
1065
|
+
const l = ut(c);
|
|
1066
1066
|
if (!l)
|
|
1067
1067
|
throw new Error("header name must be a non-empty string");
|
|
1068
1068
|
const p = h.findKey(s, l);
|
|
@@ -1071,8 +1071,8 @@ let fe = class {
|
|
|
1071
1071
|
const i = (a, c) => h.forEach(a, (u, l) => o(u, l, c));
|
|
1072
1072
|
if (h.isPlainObject(t) || t instanceof this.constructor)
|
|
1073
1073
|
i(t, n);
|
|
1074
|
-
else if (h.isString(t) && (t = t.trim()) && !
|
|
1075
|
-
i(
|
|
1074
|
+
else if (h.isString(t) && (t = t.trim()) && !ca(t))
|
|
1075
|
+
i(ia(t), n);
|
|
1076
1076
|
else if (h.isObject(t) && h.isIterable(t)) {
|
|
1077
1077
|
let a = {}, c, u;
|
|
1078
1078
|
for (const l of t) {
|
|
@@ -1086,14 +1086,14 @@ let fe = class {
|
|
|
1086
1086
|
return this;
|
|
1087
1087
|
}
|
|
1088
1088
|
get(t, n) {
|
|
1089
|
-
if (t =
|
|
1089
|
+
if (t = ut(t), t) {
|
|
1090
1090
|
const r = h.findKey(this, t);
|
|
1091
1091
|
if (r) {
|
|
1092
1092
|
const s = this[r];
|
|
1093
1093
|
if (!n)
|
|
1094
1094
|
return s;
|
|
1095
1095
|
if (n === !0)
|
|
1096
|
-
return
|
|
1096
|
+
return aa(s);
|
|
1097
1097
|
if (h.isFunction(n))
|
|
1098
1098
|
return n.call(this, s, r);
|
|
1099
1099
|
if (h.isRegExp(n))
|
|
@@ -1103,7 +1103,7 @@ let fe = class {
|
|
|
1103
1103
|
}
|
|
1104
1104
|
}
|
|
1105
1105
|
has(t, n) {
|
|
1106
|
-
if (t =
|
|
1106
|
+
if (t = ut(t), t) {
|
|
1107
1107
|
const r = h.findKey(this, t);
|
|
1108
1108
|
return !!(r && this[r] !== void 0 && (!n || bn(this, this[r], r, n)));
|
|
1109
1109
|
}
|
|
@@ -1113,7 +1113,7 @@ let fe = class {
|
|
|
1113
1113
|
const r = this;
|
|
1114
1114
|
let s = !1;
|
|
1115
1115
|
function o(i) {
|
|
1116
|
-
if (i =
|
|
1116
|
+
if (i = ut(i), i) {
|
|
1117
1117
|
const a = h.findKey(r, i);
|
|
1118
1118
|
a && (!n || bn(r, r[a], a, n)) && (delete r[a], s = !0);
|
|
1119
1119
|
}
|
|
@@ -1137,7 +1137,7 @@ let fe = class {
|
|
|
1137
1137
|
n[i] = wt(s), delete n[o];
|
|
1138
1138
|
return;
|
|
1139
1139
|
}
|
|
1140
|
-
const a = t ?
|
|
1140
|
+
const a = t ? la(o) : String(o).trim();
|
|
1141
1141
|
a !== o && delete n[o], n[a] = wt(s), r[a] = !0;
|
|
1142
1142
|
}), this;
|
|
1143
1143
|
}
|
|
@@ -1175,8 +1175,8 @@ let fe = class {
|
|
|
1175
1175
|
accessors: {}
|
|
1176
1176
|
}).accessors, s = this.prototype;
|
|
1177
1177
|
function o(i) {
|
|
1178
|
-
const a =
|
|
1179
|
-
r[a] || (
|
|
1178
|
+
const a = ut(i);
|
|
1179
|
+
r[a] || (ua(s, i), r[a] = !0);
|
|
1180
1180
|
}
|
|
1181
1181
|
return h.isArray(t) ? t.forEach(o) : o(t), this;
|
|
1182
1182
|
}
|
|
@@ -1199,16 +1199,16 @@ function yn(e, t) {
|
|
|
1199
1199
|
o = a.call(n, o, s.normalize(), t ? t.status : void 0);
|
|
1200
1200
|
}), s.normalize(), o;
|
|
1201
1201
|
}
|
|
1202
|
-
function
|
|
1202
|
+
function Bs(e) {
|
|
1203
1203
|
return !!(e && e.__CANCEL__);
|
|
1204
1204
|
}
|
|
1205
|
-
function
|
|
1205
|
+
function st(e, t, n) {
|
|
1206
1206
|
M.call(this, e ?? "canceled", M.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
1207
1207
|
}
|
|
1208
|
-
h.inherits(
|
|
1208
|
+
h.inherits(st, M, {
|
|
1209
1209
|
__CANCEL__: !0
|
|
1210
1210
|
});
|
|
1211
|
-
function
|
|
1211
|
+
function js(e, t, n) {
|
|
1212
1212
|
const r = n.config.validateStatus;
|
|
1213
1213
|
!n.status || !r || r(n.status) ? e(n) : t(new M(
|
|
1214
1214
|
"Request failed with status code " + n.status,
|
|
@@ -1218,11 +1218,11 @@ function $s(e, t, n) {
|
|
|
1218
1218
|
n
|
|
1219
1219
|
));
|
|
1220
1220
|
}
|
|
1221
|
-
function
|
|
1221
|
+
function fa(e) {
|
|
1222
1222
|
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
1223
1223
|
return t && t[1] || "";
|
|
1224
1224
|
}
|
|
1225
|
-
function
|
|
1225
|
+
function da(e, t) {
|
|
1226
1226
|
e = e || 10;
|
|
1227
1227
|
const n = new Array(e), r = new Array(e);
|
|
1228
1228
|
let s = 0, o = 0, i;
|
|
@@ -1238,7 +1238,7 @@ function fa(e, t) {
|
|
|
1238
1238
|
return A ? Math.round(g * 1e3 / A) : void 0;
|
|
1239
1239
|
};
|
|
1240
1240
|
}
|
|
1241
|
-
function
|
|
1241
|
+
function pa(e, t) {
|
|
1242
1242
|
let n = 0, r = 1e3 / t, s, o;
|
|
1243
1243
|
const i = (u, l = Date.now()) => {
|
|
1244
1244
|
n = l, s = null, o && (clearTimeout(o), o = null), e(...u);
|
|
@@ -1250,10 +1250,10 @@ function da(e, t) {
|
|
|
1250
1250
|
}, r - p)));
|
|
1251
1251
|
}, () => s && i(s)];
|
|
1252
1252
|
}
|
|
1253
|
-
const
|
|
1253
|
+
const Bt = (e, t, n = 3) => {
|
|
1254
1254
|
let r = 0;
|
|
1255
|
-
const s =
|
|
1256
|
-
return
|
|
1255
|
+
const s = da(50, 250);
|
|
1256
|
+
return pa((o) => {
|
|
1257
1257
|
const i = o.loaded, a = o.lengthComputable ? o.total : void 0, c = i - r, u = s(c), l = i <= a;
|
|
1258
1258
|
r = i;
|
|
1259
1259
|
const p = {
|
|
@@ -1276,10 +1276,10 @@ const jt = (e, t, n = 3) => {
|
|
|
1276
1276
|
total: e,
|
|
1277
1277
|
loaded: r
|
|
1278
1278
|
}), t[1]];
|
|
1279
|
-
}, Cr = (e) => (...t) => h.asap(() => e(...t)),
|
|
1279
|
+
}, Cr = (e) => (...t) => h.asap(() => e(...t)), ma = ae.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, ae.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
|
|
1280
1280
|
new URL(ae.origin),
|
|
1281
1281
|
ae.navigator && /(msie|trident)/i.test(ae.navigator.userAgent)
|
|
1282
|
-
) : () => !0,
|
|
1282
|
+
) : () => !0, _a = ae.hasStandardBrowserEnv ? (
|
|
1283
1283
|
// Standard browser envs support document.cookie
|
|
1284
1284
|
{
|
|
1285
1285
|
write(e, t, n, r, s, o, i) {
|
|
@@ -1308,15 +1308,15 @@ const jt = (e, t, n = 3) => {
|
|
|
1308
1308
|
}
|
|
1309
1309
|
}
|
|
1310
1310
|
);
|
|
1311
|
-
function
|
|
1311
|
+
function ha(e) {
|
|
1312
1312
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
1313
1313
|
}
|
|
1314
|
-
function
|
|
1314
|
+
function Ea(e, t) {
|
|
1315
1315
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
1316
1316
|
}
|
|
1317
|
-
function
|
|
1318
|
-
let r = !
|
|
1319
|
-
return e && (r || n == !1) ?
|
|
1317
|
+
function Hs(e, t, n) {
|
|
1318
|
+
let r = !ha(t);
|
|
1319
|
+
return e && (r || n == !1) ? Ea(e, t) : t;
|
|
1320
1320
|
}
|
|
1321
1321
|
const Rr = (e) => e instanceof fe ? { ...e } : e;
|
|
1322
1322
|
function Ge(e, t) {
|
|
@@ -1383,10 +1383,10 @@ function Ge(e, t) {
|
|
|
1383
1383
|
h.isUndefined(g) && p !== a || (n[l] = g);
|
|
1384
1384
|
}), n;
|
|
1385
1385
|
}
|
|
1386
|
-
const
|
|
1386
|
+
const Ws = (e) => {
|
|
1387
1387
|
const t = Ge({}, e);
|
|
1388
1388
|
let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: a } = t;
|
|
1389
|
-
if (t.headers = i = fe.from(i), t.url =
|
|
1389
|
+
if (t.headers = i = fe.from(i), t.url = xs(Hs(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), a && i.set(
|
|
1390
1390
|
"Authorization",
|
|
1391
1391
|
"Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
|
|
1392
1392
|
), h.isFormData(n)) {
|
|
@@ -1399,14 +1399,14 @@ const Bs = (e) => {
|
|
|
1399
1399
|
});
|
|
1400
1400
|
}
|
|
1401
1401
|
}
|
|
1402
|
-
if (ae.hasStandardBrowserEnv && (r && h.isFunction(r) && (r = r(t)), r || r !== !1 &&
|
|
1403
|
-
const c = s && o &&
|
|
1402
|
+
if (ae.hasStandardBrowserEnv && (r && h.isFunction(r) && (r = r(t)), r || r !== !1 && ma(t.url))) {
|
|
1403
|
+
const c = s && o && _a.read(o);
|
|
1404
1404
|
c && i.set(s, c);
|
|
1405
1405
|
}
|
|
1406
1406
|
return t;
|
|
1407
|
-
},
|
|
1407
|
+
}, ga = typeof XMLHttpRequest < "u", ba = ga && function(e) {
|
|
1408
1408
|
return new Promise(function(n, r) {
|
|
1409
|
-
const s =
|
|
1409
|
+
const s = Ws(e);
|
|
1410
1410
|
let o = s.data;
|
|
1411
1411
|
const i = fe.from(s.headers).normalize();
|
|
1412
1412
|
let { responseType: a, onUploadProgress: c, onDownloadProgress: u } = s, l, p, g, A, E;
|
|
@@ -1428,7 +1428,7 @@ const Bs = (e) => {
|
|
|
1428
1428
|
config: e,
|
|
1429
1429
|
request: S
|
|
1430
1430
|
};
|
|
1431
|
-
|
|
1431
|
+
js(function(_) {
|
|
1432
1432
|
n(_), b();
|
|
1433
1433
|
}, function(_) {
|
|
1434
1434
|
r(_), b();
|
|
@@ -1443,7 +1443,7 @@ const Bs = (e) => {
|
|
|
1443
1443
|
R.event = y || null, r(R), S = null;
|
|
1444
1444
|
}, S.ontimeout = function() {
|
|
1445
1445
|
let y = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
1446
|
-
const C = s.transitional ||
|
|
1446
|
+
const C = s.transitional || Vs;
|
|
1447
1447
|
s.timeoutErrorMessage && (y = s.timeoutErrorMessage), r(new M(
|
|
1448
1448
|
y,
|
|
1449
1449
|
C.clarifyTimeoutError ? M.ETIMEDOUT : M.ECONNABORTED,
|
|
@@ -1452,17 +1452,17 @@ const Bs = (e) => {
|
|
|
1452
1452
|
)), S = null;
|
|
1453
1453
|
}, o === void 0 && i.setContentType(null), "setRequestHeader" in S && h.forEach(i.toJSON(), function(y, C) {
|
|
1454
1454
|
S.setRequestHeader(C, y);
|
|
1455
|
-
}), h.isUndefined(s.withCredentials) || (S.withCredentials = !!s.withCredentials), a && a !== "json" && (S.responseType = s.responseType), u && ([g, E] =
|
|
1456
|
-
S && (r(!T || T.type ? new
|
|
1455
|
+
}), h.isUndefined(s.withCredentials) || (S.withCredentials = !!s.withCredentials), a && a !== "json" && (S.responseType = s.responseType), u && ([g, E] = Bt(u, !0), S.addEventListener("progress", g)), c && S.upload && ([p, A] = Bt(c), S.upload.addEventListener("progress", p), S.upload.addEventListener("loadend", A)), (s.cancelToken || s.signal) && (l = (T) => {
|
|
1456
|
+
S && (r(!T || T.type ? new st(null, e, S) : T), S.abort(), S = null);
|
|
1457
1457
|
}, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
|
|
1458
|
-
const N =
|
|
1458
|
+
const N = fa(s.url);
|
|
1459
1459
|
if (N && ae.protocols.indexOf(N) === -1) {
|
|
1460
1460
|
r(new M("Unsupported protocol " + N + ":", M.ERR_BAD_REQUEST, e));
|
|
1461
1461
|
return;
|
|
1462
1462
|
}
|
|
1463
1463
|
S.send(o || null);
|
|
1464
1464
|
});
|
|
1465
|
-
},
|
|
1465
|
+
}, ya = (e, t) => {
|
|
1466
1466
|
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
1467
1467
|
if (t || n) {
|
|
1468
1468
|
let r = new AbortController(), s;
|
|
@@ -1470,7 +1470,7 @@ const Bs = (e) => {
|
|
|
1470
1470
|
if (!s) {
|
|
1471
1471
|
s = !0, a();
|
|
1472
1472
|
const l = u instanceof Error ? u : this.reason;
|
|
1473
|
-
r.abort(l instanceof M ? l : new
|
|
1473
|
+
r.abort(l instanceof M ? l : new st(l instanceof Error ? l.message : l));
|
|
1474
1474
|
}
|
|
1475
1475
|
};
|
|
1476
1476
|
let i = t && setTimeout(() => {
|
|
@@ -1485,7 +1485,7 @@ const Bs = (e) => {
|
|
|
1485
1485
|
const { signal: c } = r;
|
|
1486
1486
|
return c.unsubscribe = () => h.asap(a), c;
|
|
1487
1487
|
}
|
|
1488
|
-
},
|
|
1488
|
+
}, Na = function* (e, t) {
|
|
1489
1489
|
let n = e.byteLength;
|
|
1490
1490
|
if (n < t) {
|
|
1491
1491
|
yield e;
|
|
@@ -1494,10 +1494,10 @@ const Bs = (e) => {
|
|
|
1494
1494
|
let r = 0, s;
|
|
1495
1495
|
for (; r < n; )
|
|
1496
1496
|
s = r + t, yield e.slice(r, s), r = s;
|
|
1497
|
-
},
|
|
1498
|
-
for await (const n of
|
|
1499
|
-
yield*
|
|
1500
|
-
},
|
|
1497
|
+
}, Oa = async function* (e, t) {
|
|
1498
|
+
for await (const n of Sa(e))
|
|
1499
|
+
yield* Na(n, t);
|
|
1500
|
+
}, Sa = async function* (e) {
|
|
1501
1501
|
if (e[Symbol.asyncIterator]) {
|
|
1502
1502
|
yield* e;
|
|
1503
1503
|
return;
|
|
@@ -1514,7 +1514,7 @@ const Bs = (e) => {
|
|
|
1514
1514
|
await t.cancel();
|
|
1515
1515
|
}
|
|
1516
1516
|
}, Ir = (e, t, n, r) => {
|
|
1517
|
-
const s =
|
|
1517
|
+
const s = Oa(e, t);
|
|
1518
1518
|
let o = 0, i, a = (c) => {
|
|
1519
1519
|
i || (i = !0, r && r(c));
|
|
1520
1520
|
};
|
|
@@ -1542,7 +1542,7 @@ const Bs = (e) => {
|
|
|
1542
1542
|
}, {
|
|
1543
1543
|
highWaterMark: 2
|
|
1544
1544
|
});
|
|
1545
|
-
}, Pr = 64 * 1024, { isFunction: At } = h,
|
|
1545
|
+
}, Pr = 64 * 1024, { isFunction: At } = h, Ta = (({ Request: e, Response: t }) => ({
|
|
1546
1546
|
Request: e,
|
|
1547
1547
|
Response: t
|
|
1548
1548
|
}))(h.global), {
|
|
@@ -1554,10 +1554,10 @@ const Bs = (e) => {
|
|
|
1554
1554
|
} catch {
|
|
1555
1555
|
return !1;
|
|
1556
1556
|
}
|
|
1557
|
-
},
|
|
1557
|
+
}, La = (e) => {
|
|
1558
1558
|
e = h.merge.call({
|
|
1559
1559
|
skipUndefined: !0
|
|
1560
|
-
},
|
|
1560
|
+
}, Ta, e);
|
|
1561
1561
|
const { fetch: t, Request: n, Response: r } = e, s = t ? At(t) : typeof fetch == "function", o = At(n), i = At(r);
|
|
1562
1562
|
if (!s)
|
|
1563
1563
|
return !1;
|
|
@@ -1614,9 +1614,9 @@ const Bs = (e) => {
|
|
|
1614
1614
|
headers: x,
|
|
1615
1615
|
withCredentials: U = "same-origin",
|
|
1616
1616
|
fetchOptions: I
|
|
1617
|
-
} =
|
|
1617
|
+
} = Ws(E), P = t || fetch;
|
|
1618
1618
|
_ = _ ? (_ + "").toLowerCase() : "text";
|
|
1619
|
-
let k =
|
|
1619
|
+
let k = ya([N, T && T.toAbortSignal()], y), W = null;
|
|
1620
1620
|
const ne = k && k.unsubscribe && (() => {
|
|
1621
1621
|
k.unsubscribe();
|
|
1622
1622
|
});
|
|
@@ -1631,7 +1631,7 @@ const Bs = (e) => {
|
|
|
1631
1631
|
if (h.isFormData(m) && (ye = ce.headers.get("content-type")) && x.setContentType(ye), ce.body) {
|
|
1632
1632
|
const [Me, De] = vr(
|
|
1633
1633
|
be,
|
|
1634
|
-
|
|
1634
|
+
Bt(Cr(R))
|
|
1635
1635
|
);
|
|
1636
1636
|
m = Ir(ce.body, Pr, Me, De);
|
|
1637
1637
|
}
|
|
@@ -1656,7 +1656,7 @@ const Bs = (e) => {
|
|
|
1656
1656
|
});
|
|
1657
1657
|
const ye = h.toFiniteNumber(Z.headers.get("content-length")), [Me, De] = C && vr(
|
|
1658
1658
|
ye,
|
|
1659
|
-
|
|
1659
|
+
Bt(Cr(C), !0)
|
|
1660
1660
|
) || [];
|
|
1661
1661
|
Z = new r(
|
|
1662
1662
|
Ir(Z.body, Pr, Me, () => {
|
|
@@ -1668,7 +1668,7 @@ const Bs = (e) => {
|
|
|
1668
1668
|
_ = _ || "text";
|
|
1669
1669
|
let _e = await p[h.findKey(p, _) || "text"](Z, E);
|
|
1670
1670
|
return !Q && ne && ne(), await new Promise((ce, ye) => {
|
|
1671
|
-
|
|
1671
|
+
js(ce, ye, {
|
|
1672
1672
|
data: _e,
|
|
1673
1673
|
headers: fe.from(Z.headers),
|
|
1674
1674
|
status: Z.status,
|
|
@@ -1686,24 +1686,24 @@ const Bs = (e) => {
|
|
|
1686
1686
|
) : M.from(se, se && se.code, E, W);
|
|
1687
1687
|
}
|
|
1688
1688
|
};
|
|
1689
|
-
},
|
|
1689
|
+
}, Aa = /* @__PURE__ */ new Map(), qs = (e) => {
|
|
1690
1690
|
let t = e && e.env || {};
|
|
1691
1691
|
const { fetch: n, Request: r, Response: s } = t, o = [
|
|
1692
1692
|
r,
|
|
1693
1693
|
s,
|
|
1694
1694
|
n
|
|
1695
1695
|
];
|
|
1696
|
-
let i = o.length, a = i, c, u, l =
|
|
1696
|
+
let i = o.length, a = i, c, u, l = Aa;
|
|
1697
1697
|
for (; a--; )
|
|
1698
|
-
c = o[a], u = l.get(c), u === void 0 && l.set(c, u = a ? /* @__PURE__ */ new Map() :
|
|
1698
|
+
c = o[a], u = l.get(c), u === void 0 && l.set(c, u = a ? /* @__PURE__ */ new Map() : La(t)), l = u;
|
|
1699
1699
|
return u;
|
|
1700
1700
|
};
|
|
1701
|
-
|
|
1701
|
+
qs();
|
|
1702
1702
|
const sr = {
|
|
1703
|
-
http:
|
|
1704
|
-
xhr:
|
|
1703
|
+
http: Hi,
|
|
1704
|
+
xhr: ba,
|
|
1705
1705
|
fetch: {
|
|
1706
|
-
get:
|
|
1706
|
+
get: qs
|
|
1707
1707
|
}
|
|
1708
1708
|
};
|
|
1709
1709
|
h.forEach(sr, (e, t) => {
|
|
@@ -1715,8 +1715,8 @@ h.forEach(sr, (e, t) => {
|
|
|
1715
1715
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
1716
1716
|
}
|
|
1717
1717
|
});
|
|
1718
|
-
const Fr = (e) => `- ${e}`,
|
|
1719
|
-
function
|
|
1718
|
+
const Fr = (e) => `- ${e}`, va = (e) => h.isFunction(e) || e === null || e === !1;
|
|
1719
|
+
function Ca(e, t) {
|
|
1720
1720
|
e = h.isArray(e) ? e : [e];
|
|
1721
1721
|
const { length: n } = e;
|
|
1722
1722
|
let r, s;
|
|
@@ -1724,7 +1724,7 @@ function va(e, t) {
|
|
|
1724
1724
|
for (let i = 0; i < n; i++) {
|
|
1725
1725
|
r = e[i];
|
|
1726
1726
|
let a;
|
|
1727
|
-
if (s = r, !
|
|
1727
|
+
if (s = r, !va(r) && (s = sr[(a = String(r)).toLowerCase()], s === void 0))
|
|
1728
1728
|
throw new M(`Unknown adapter '${a}'`);
|
|
1729
1729
|
if (s && (h.isFunction(s) || (s = s.get(t))))
|
|
1730
1730
|
break;
|
|
@@ -1744,12 +1744,12 @@ function va(e, t) {
|
|
|
1744
1744
|
}
|
|
1745
1745
|
return s;
|
|
1746
1746
|
}
|
|
1747
|
-
const
|
|
1747
|
+
const Gs = {
|
|
1748
1748
|
/**
|
|
1749
1749
|
* Resolve an adapter from a list of adapter names or functions.
|
|
1750
1750
|
* @type {Function}
|
|
1751
1751
|
*/
|
|
1752
|
-
getAdapter:
|
|
1752
|
+
getAdapter: Ca,
|
|
1753
1753
|
/**
|
|
1754
1754
|
* Exposes all known adapters
|
|
1755
1755
|
* @type {Object<string, Function|Object>}
|
|
@@ -1758,27 +1758,27 @@ const Ws = {
|
|
|
1758
1758
|
};
|
|
1759
1759
|
function Nn(e) {
|
|
1760
1760
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1761
|
-
throw new
|
|
1761
|
+
throw new st(null, e);
|
|
1762
1762
|
}
|
|
1763
1763
|
function Ur(e) {
|
|
1764
1764
|
return Nn(e), e.headers = fe.from(e.headers), e.data = yn.call(
|
|
1765
1765
|
e,
|
|
1766
1766
|
e.transformRequest
|
|
1767
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
1767
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Gs.getAdapter(e.adapter || Ot.adapter, e)(e).then(function(r) {
|
|
1768
1768
|
return Nn(e), r.data = yn.call(
|
|
1769
1769
|
e,
|
|
1770
1770
|
e.transformResponse,
|
|
1771
1771
|
r
|
|
1772
1772
|
), r.headers = fe.from(r.headers), r;
|
|
1773
1773
|
}, function(r) {
|
|
1774
|
-
return
|
|
1774
|
+
return Bs(r) || (Nn(e), r && r.response && (r.response.data = yn.call(
|
|
1775
1775
|
e,
|
|
1776
1776
|
e.transformResponse,
|
|
1777
1777
|
r.response
|
|
1778
1778
|
), r.response.headers = fe.from(r.response.headers))), Promise.reject(r);
|
|
1779
1779
|
});
|
|
1780
1780
|
}
|
|
1781
|
-
const
|
|
1781
|
+
const Ys = "1.13.2", tn = {};
|
|
1782
1782
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1783
1783
|
tn[e] = function(r) {
|
|
1784
1784
|
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
@@ -1787,7 +1787,7 @@ const qs = "1.13.2", tn = {};
|
|
|
1787
1787
|
const Mr = {};
|
|
1788
1788
|
tn.transitional = function(t, n, r) {
|
|
1789
1789
|
function s(o, i) {
|
|
1790
|
-
return "[Axios v" +
|
|
1790
|
+
return "[Axios v" + Ys + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
|
|
1791
1791
|
}
|
|
1792
1792
|
return (o, i, a) => {
|
|
1793
1793
|
if (t === !1)
|
|
@@ -1806,7 +1806,7 @@ tn.transitional = function(t, n, r) {
|
|
|
1806
1806
|
tn.spelling = function(t) {
|
|
1807
1807
|
return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
|
|
1808
1808
|
};
|
|
1809
|
-
function
|
|
1809
|
+
function Ra(e, t, n) {
|
|
1810
1810
|
if (typeof e != "object")
|
|
1811
1811
|
throw new M("options must be an object", M.ERR_BAD_OPTION_VALUE);
|
|
1812
1812
|
const r = Object.keys(e);
|
|
@@ -1824,7 +1824,7 @@ function Ca(e, t, n) {
|
|
|
1824
1824
|
}
|
|
1825
1825
|
}
|
|
1826
1826
|
const Dt = {
|
|
1827
|
-
assertOptions:
|
|
1827
|
+
assertOptions: Ra,
|
|
1828
1828
|
validators: tn
|
|
1829
1829
|
}, Ne = Dt.validators;
|
|
1830
1830
|
let We = class {
|
|
@@ -1923,8 +1923,8 @@ let We = class {
|
|
|
1923
1923
|
}
|
|
1924
1924
|
getUri(t) {
|
|
1925
1925
|
t = Ge(this.defaults, t);
|
|
1926
|
-
const n =
|
|
1927
|
-
return
|
|
1926
|
+
const n = Hs(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
1927
|
+
return xs(n, t.params, t.paramsSerializer);
|
|
1928
1928
|
}
|
|
1929
1929
|
};
|
|
1930
1930
|
h.forEach(["delete", "get", "head", "options"], function(t) {
|
|
@@ -1951,7 +1951,7 @@ h.forEach(["post", "put", "patch"], function(t) {
|
|
|
1951
1951
|
}
|
|
1952
1952
|
We.prototype[t] = n(), We.prototype[t + "Form"] = n(!0);
|
|
1953
1953
|
});
|
|
1954
|
-
let
|
|
1954
|
+
let Ia = class Ks {
|
|
1955
1955
|
constructor(t) {
|
|
1956
1956
|
if (typeof t != "function")
|
|
1957
1957
|
throw new TypeError("executor must be a function.");
|
|
@@ -1975,7 +1975,7 @@ let Ra = class Gs {
|
|
|
1975
1975
|
r.unsubscribe(o);
|
|
1976
1976
|
}, i;
|
|
1977
1977
|
}, t(function(o, i, a) {
|
|
1978
|
-
r.reason || (r.reason = new
|
|
1978
|
+
r.reason || (r.reason = new st(o, i, a), n(r.reason));
|
|
1979
1979
|
});
|
|
1980
1980
|
}
|
|
1981
1981
|
/**
|
|
@@ -2017,19 +2017,19 @@ let Ra = class Gs {
|
|
|
2017
2017
|
static source() {
|
|
2018
2018
|
let t;
|
|
2019
2019
|
return {
|
|
2020
|
-
token: new
|
|
2020
|
+
token: new Ks(function(s) {
|
|
2021
2021
|
t = s;
|
|
2022
2022
|
}),
|
|
2023
2023
|
cancel: t
|
|
2024
2024
|
};
|
|
2025
2025
|
}
|
|
2026
2026
|
};
|
|
2027
|
-
function
|
|
2027
|
+
function Pa(e) {
|
|
2028
2028
|
return function(n) {
|
|
2029
2029
|
return e.apply(null, n);
|
|
2030
2030
|
};
|
|
2031
2031
|
}
|
|
2032
|
-
function
|
|
2032
|
+
function wa(e) {
|
|
2033
2033
|
return h.isObject(e) && e.isAxiosError === !0;
|
|
2034
2034
|
}
|
|
2035
2035
|
const kn = {
|
|
@@ -2106,103 +2106,103 @@ const kn = {
|
|
|
2106
2106
|
Object.entries(kn).forEach(([e, t]) => {
|
|
2107
2107
|
kn[t] = e;
|
|
2108
2108
|
});
|
|
2109
|
-
function
|
|
2110
|
-
const t = new We(e), n =
|
|
2109
|
+
function Xs(e) {
|
|
2110
|
+
const t = new We(e), n = As(We.prototype.request, t);
|
|
2111
2111
|
return h.extend(n, We.prototype, t, { allOwnKeys: !0 }), h.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
2112
|
-
return
|
|
2112
|
+
return Xs(Ge(e, s));
|
|
2113
2113
|
}, n;
|
|
2114
2114
|
}
|
|
2115
|
-
const z =
|
|
2115
|
+
const z = Xs(Ot);
|
|
2116
2116
|
z.Axios = We;
|
|
2117
|
-
z.CanceledError =
|
|
2118
|
-
z.CancelToken =
|
|
2119
|
-
z.isCancel =
|
|
2120
|
-
z.VERSION =
|
|
2117
|
+
z.CanceledError = st;
|
|
2118
|
+
z.CancelToken = Ia;
|
|
2119
|
+
z.isCancel = Bs;
|
|
2120
|
+
z.VERSION = Ys;
|
|
2121
2121
|
z.toFormData = en;
|
|
2122
2122
|
z.AxiosError = M;
|
|
2123
2123
|
z.Cancel = z.CanceledError;
|
|
2124
2124
|
z.all = function(t) {
|
|
2125
2125
|
return Promise.all(t);
|
|
2126
2126
|
};
|
|
2127
|
-
z.spread =
|
|
2128
|
-
z.isAxiosError =
|
|
2127
|
+
z.spread = Pa;
|
|
2128
|
+
z.isAxiosError = wa;
|
|
2129
2129
|
z.mergeConfig = Ge;
|
|
2130
2130
|
z.AxiosHeaders = fe;
|
|
2131
|
-
z.formToJSON = (e) =>
|
|
2132
|
-
z.getAdapter =
|
|
2131
|
+
z.formToJSON = (e) => $s(h.isHTMLForm(e) ? new FormData(e) : e);
|
|
2132
|
+
z.getAdapter = Gs.getAdapter;
|
|
2133
2133
|
z.HttpStatusCode = kn;
|
|
2134
2134
|
z.default = z;
|
|
2135
2135
|
const {
|
|
2136
|
-
Axios:
|
|
2137
|
-
AxiosError:
|
|
2136
|
+
Axios: $u,
|
|
2137
|
+
AxiosError: Bu,
|
|
2138
2138
|
CanceledError: ju,
|
|
2139
|
-
isCancel:
|
|
2140
|
-
CancelToken:
|
|
2141
|
-
VERSION:
|
|
2142
|
-
all:
|
|
2143
|
-
Cancel:
|
|
2144
|
-
isAxiosError:
|
|
2145
|
-
spread:
|
|
2146
|
-
toFormData:
|
|
2147
|
-
AxiosHeaders:
|
|
2139
|
+
isCancel: Hu,
|
|
2140
|
+
CancelToken: Wu,
|
|
2141
|
+
VERSION: qu,
|
|
2142
|
+
all: Gu,
|
|
2143
|
+
Cancel: Yu,
|
|
2144
|
+
isAxiosError: Ku,
|
|
2145
|
+
spread: Xu,
|
|
2146
|
+
toFormData: Ju,
|
|
2147
|
+
AxiosHeaders: zu,
|
|
2148
2148
|
HttpStatusCode: xr,
|
|
2149
|
-
formToJSON:
|
|
2150
|
-
getAdapter:
|
|
2151
|
-
mergeConfig:
|
|
2149
|
+
formToJSON: Qu,
|
|
2150
|
+
getAdapter: Zu,
|
|
2151
|
+
mergeConfig: ef
|
|
2152
2152
|
} = z;
|
|
2153
|
-
let
|
|
2154
|
-
function
|
|
2155
|
-
if (
|
|
2153
|
+
let jt = null;
|
|
2154
|
+
function tf(e) {
|
|
2155
|
+
if (jt !== null) {
|
|
2156
2156
|
console.warn(
|
|
2157
2157
|
"[LinID CoreLib] HTTP client has already been initialized. Re-initialization is ignored."
|
|
2158
2158
|
);
|
|
2159
2159
|
return;
|
|
2160
2160
|
}
|
|
2161
|
-
|
|
2161
|
+
jt = e;
|
|
2162
2162
|
}
|
|
2163
2163
|
function Ie() {
|
|
2164
|
-
if (
|
|
2164
|
+
if (jt === null)
|
|
2165
2165
|
throw new Error(
|
|
2166
2166
|
"[LinID CoreLib] HTTP client is not initialized. Call setHttpClient() first."
|
|
2167
2167
|
);
|
|
2168
|
-
return
|
|
2168
|
+
return jt;
|
|
2169
2169
|
}
|
|
2170
|
-
const
|
|
2171
|
-
function
|
|
2172
|
-
|
|
2170
|
+
const Js = /* @__PURE__ */ new Map();
|
|
2171
|
+
function nf(e) {
|
|
2172
|
+
Js.set(e.instanceId, e);
|
|
2173
2173
|
}
|
|
2174
|
-
function
|
|
2175
|
-
const t =
|
|
2174
|
+
function ot(e) {
|
|
2175
|
+
const t = Js.get(e);
|
|
2176
2176
|
if (!t)
|
|
2177
2177
|
throw new Error(
|
|
2178
2178
|
`[LinID CoreLib] No module host configuration found for instanceId: ${e}`
|
|
2179
2179
|
);
|
|
2180
2180
|
return t;
|
|
2181
2181
|
}
|
|
2182
|
-
async function
|
|
2183
|
-
const n =
|
|
2182
|
+
async function rf(e, t) {
|
|
2183
|
+
const n = ot(e);
|
|
2184
2184
|
return Ie().post(`/${n.apiEndpoint}`, t).then(({ data: r }) => r);
|
|
2185
2185
|
}
|
|
2186
|
-
async function
|
|
2187
|
-
const r =
|
|
2186
|
+
async function sf(e, t, n) {
|
|
2187
|
+
const r = ot(e);
|
|
2188
2188
|
return Ie().put(`/${r.apiEndpoint}/${t}`, n).then(({ data: s }) => s);
|
|
2189
2189
|
}
|
|
2190
|
-
async function
|
|
2191
|
-
const r =
|
|
2190
|
+
async function of(e, t, n) {
|
|
2191
|
+
const r = ot(e);
|
|
2192
2192
|
return Ie().get(`/${r.apiEndpoint}`, {
|
|
2193
2193
|
params: { ...t, ...n }
|
|
2194
2194
|
}).then(({ data: s }) => s);
|
|
2195
2195
|
}
|
|
2196
|
-
async function
|
|
2197
|
-
const n =
|
|
2196
|
+
async function af(e, t) {
|
|
2197
|
+
const n = ot(e);
|
|
2198
2198
|
return Ie().get(`/${n.apiEndpoint}/${t}`).then(({ data: r }) => r);
|
|
2199
2199
|
}
|
|
2200
|
-
async function
|
|
2201
|
-
const n =
|
|
2200
|
+
async function cf(e, t) {
|
|
2201
|
+
const n = ot(e);
|
|
2202
2202
|
return Ie().delete(`/${n.apiEndpoint}/${t}`);
|
|
2203
2203
|
}
|
|
2204
|
-
async function
|
|
2205
|
-
const r =
|
|
2204
|
+
async function Da(e, t, n) {
|
|
2205
|
+
const r = ot(e);
|
|
2206
2206
|
await Ie().post(
|
|
2207
2207
|
`/${r.apiEndpoint}/validate/${t}`,
|
|
2208
2208
|
n,
|
|
@@ -2213,7 +2213,7 @@ function Le(e, t) {
|
|
|
2213
2213
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
2214
2214
|
}
|
|
2215
2215
|
const Vr = {};
|
|
2216
|
-
function
|
|
2216
|
+
function ka(e) {
|
|
2217
2217
|
Vr[e] || (Vr[e] = !0, Le(e));
|
|
2218
2218
|
}
|
|
2219
2219
|
const Re = typeof window < "u";
|
|
@@ -2227,21 +2227,21 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
2227
2227
|
e.measure(t, n, r), e.clearMarks(n), e.clearMarks(r);
|
|
2228
2228
|
});
|
|
2229
2229
|
}
|
|
2230
|
-
const
|
|
2230
|
+
const Fa = /\{([0-9a-zA-Z]+)\}/g;
|
|
2231
2231
|
function nn(e, ...t) {
|
|
2232
|
-
return t.length === 1 &&
|
|
2232
|
+
return t.length === 1 && B(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(Fa, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
|
|
2233
2233
|
}
|
|
2234
|
-
const Pe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e),
|
|
2234
|
+
const Pe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Ua = (e, t, n) => Ma({ l: e, k: t, s: n }), Ma = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ee = (e) => typeof e == "number" && isFinite(e), xa = (e) => or(e) === "[object Date]", Ht = (e) => or(e) === "[object RegExp]", rn = (e) => $(e) && Object.keys(e).length === 0, te = Object.assign, Va = Object.create, H = (e = null) => Va(e);
|
|
2235
2235
|
let $r;
|
|
2236
2236
|
const He = () => $r || ($r = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : H());
|
|
2237
|
-
function
|
|
2237
|
+
function Br(e) {
|
|
2238
2238
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/\//g, "/").replace(/=/g, "=");
|
|
2239
2239
|
}
|
|
2240
|
-
function
|
|
2240
|
+
function jr(e) {
|
|
2241
2241
|
return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
|
|
2242
2242
|
}
|
|
2243
|
-
function
|
|
2244
|
-
return e = e.replace(/(\w+)\s*=\s*"([^"]*)"/g, (r, s, o) => `${s}="${
|
|
2243
|
+
function $a(e) {
|
|
2244
|
+
return e = e.replace(/(\w+)\s*=\s*"([^"]*)"/g, (r, s, o) => `${s}="${jr(o)}"`), e = e.replace(/(\w+)\s*=\s*'([^']*)'/g, (r, s, o) => `${s}='${jr(o)}'`), /\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e) && (process.env.NODE_ENV !== "production" && Le("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."), e = e.replace(/(\s+)(on)(\w+\s*=)/gi, "$1on$3")), [
|
|
2245
2245
|
// In href, src, action, formaction attributes
|
|
2246
2246
|
/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,
|
|
2247
2247
|
// In style attributes within url()
|
|
@@ -2250,16 +2250,16 @@ function Va(e) {
|
|
|
2250
2250
|
e = e.replace(r, "$1javascript:");
|
|
2251
2251
|
}), e;
|
|
2252
2252
|
}
|
|
2253
|
-
const
|
|
2253
|
+
const Ba = Object.prototype.hasOwnProperty;
|
|
2254
2254
|
function he(e, t) {
|
|
2255
|
-
return
|
|
2255
|
+
return Ba.call(e, t);
|
|
2256
2256
|
}
|
|
2257
|
-
const J = Array.isArray, G = (e) => typeof e == "function", w = (e) => typeof e == "string", X = (e) => typeof e == "boolean",
|
|
2257
|
+
const J = Array.isArray, G = (e) => typeof e == "function", w = (e) => typeof e == "string", X = (e) => typeof e == "boolean", B = (e) => e !== null && typeof e == "object", ja = (e) => B(e) && G(e.then) && G(e.catch), zs = Object.prototype.toString, or = (e) => zs.call(e), $ = (e) => or(e) === "[object Object]", Ha = (e) => e == null ? "" : J(e) || $(e) && e.toString === zs ? JSON.stringify(e, null, 2) : String(e);
|
|
2258
2258
|
function ir(e, t = "") {
|
|
2259
2259
|
return e.reduce((n, r, s) => s === 0 ? n + r : n + t + r, "");
|
|
2260
2260
|
}
|
|
2261
2261
|
const Hr = 2;
|
|
2262
|
-
function
|
|
2262
|
+
function Wa(e, t = 0, n = e.length) {
|
|
2263
2263
|
const r = e.split(/\r?\n/);
|
|
2264
2264
|
let s = 0;
|
|
2265
2265
|
const o = [];
|
|
@@ -2287,7 +2287,7 @@ function Ha(e, t = 0, n = e.length) {
|
|
|
2287
2287
|
return o.join(`
|
|
2288
2288
|
`);
|
|
2289
2289
|
}
|
|
2290
|
-
function
|
|
2290
|
+
function qa() {
|
|
2291
2291
|
const e = /* @__PURE__ */ new Map();
|
|
2292
2292
|
return {
|
|
2293
2293
|
events: e,
|
|
@@ -2304,7 +2304,7 @@ function Wa() {
|
|
|
2304
2304
|
}
|
|
2305
2305
|
};
|
|
2306
2306
|
}
|
|
2307
|
-
const vt = (e) => !
|
|
2307
|
+
const vt = (e) => !B(e) || J(e);
|
|
2308
2308
|
function kt(e, t) {
|
|
2309
2309
|
if (vt(e) || vt(t))
|
|
2310
2310
|
throw new Error("Invalid value");
|
|
@@ -2312,11 +2312,11 @@ function kt(e, t) {
|
|
|
2312
2312
|
for (; n.length; ) {
|
|
2313
2313
|
const { src: r, des: s } = n.pop();
|
|
2314
2314
|
Object.keys(r).forEach((o) => {
|
|
2315
|
-
o !== "__proto__" && (
|
|
2315
|
+
o !== "__proto__" && (B(r[o]) && !B(s[o]) && (s[o] = Array.isArray(r[o]) ? [] : H()), vt(s[o]) || vt(r[o]) ? s[o] = r[o] : n.push({ src: r[o], des: s[o] }));
|
|
2316
2316
|
});
|
|
2317
2317
|
}
|
|
2318
2318
|
}
|
|
2319
|
-
function
|
|
2319
|
+
function Ga(e, t, n) {
|
|
2320
2320
|
return { line: e, column: t, offset: n };
|
|
2321
2321
|
}
|
|
2322
2322
|
function Fn(e, t, n) {
|
|
@@ -2343,7 +2343,7 @@ const F = {
|
|
|
2343
2343
|
UNHANDLED_CODEGEN_NODE_TYPE: 15,
|
|
2344
2344
|
// minifier error codes
|
|
2345
2345
|
UNHANDLED_MINIFIER_NODE_TYPE: 16
|
|
2346
|
-
},
|
|
2346
|
+
}, Ya = 17, Ka = {
|
|
2347
2347
|
// tokenizer error messages
|
|
2348
2348
|
[F.EXPECTED_TOKEN]: "Expected token: '{0}'",
|
|
2349
2349
|
[F.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
|
|
@@ -2365,19 +2365,19 @@ const F = {
|
|
|
2365
2365
|
// minimizer error messages
|
|
2366
2366
|
[F.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
|
|
2367
2367
|
};
|
|
2368
|
-
function
|
|
2369
|
-
const { domain: r, messages: s, args: o } = n, i = process.env.NODE_ENV !== "production" ? nn((s ||
|
|
2368
|
+
function it(e, t, n = {}) {
|
|
2369
|
+
const { domain: r, messages: s, args: o } = n, i = process.env.NODE_ENV !== "production" ? nn((s || Ka)[e] || "", ...o || []) : e, a = new SyntaxError(String(i));
|
|
2370
2370
|
return a.code = e, t && (a.location = t), a.domain = r, a;
|
|
2371
2371
|
}
|
|
2372
|
-
function
|
|
2372
|
+
function Xa(e) {
|
|
2373
2373
|
throw e;
|
|
2374
2374
|
}
|
|
2375
|
-
const
|
|
2376
|
-
`,
|
|
2377
|
-
function
|
|
2375
|
+
const Ja = /<\/?[\w\s="/.':;#-\/]+>/, za = (e) => Ja.test(e), Oe = " ", Qa = "\r", oe = `
|
|
2376
|
+
`, Za = "\u2028", ec = "\u2029";
|
|
2377
|
+
function tc(e) {
|
|
2378
2378
|
const t = e;
|
|
2379
2379
|
let n = 0, r = 1, s = 1, o = 0;
|
|
2380
|
-
const i = (_) => t[_] ===
|
|
2380
|
+
const i = (_) => t[_] === Qa && t[_ + 1] === oe, a = (_) => t[_] === oe, c = (_) => t[_] === ec, u = (_) => t[_] === Za, l = (_) => i(_) || a(_) || c(_) || u(_), p = () => n, g = () => r, A = () => s, E = () => o, b = (_) => i(_) || c(_) || u(_) ? oe : t[_], S = () => b(n), m = () => b(n + o);
|
|
2381
2381
|
function N() {
|
|
2382
2382
|
return o = 0, l(n) && (r++, s = 0), i(n) && n++, n++, s++, t[n];
|
|
2383
2383
|
}
|
|
@@ -2411,9 +2411,9 @@ function ec(e) {
|
|
|
2411
2411
|
skipToPeek: R
|
|
2412
2412
|
};
|
|
2413
2413
|
}
|
|
2414
|
-
const Ae = void 0,
|
|
2415
|
-
function
|
|
2416
|
-
const n = t.location !== !1, r =
|
|
2414
|
+
const Ae = void 0, nc = ".", Wr = "'", rc = "tokenizer";
|
|
2415
|
+
function sc(e, t = {}) {
|
|
2416
|
+
const n = t.location !== !1, r = tc(e), s = () => r.index(), o = () => Ga(r.line(), r.column(), r.index()), i = o(), a = s(), c = {
|
|
2417
2417
|
currentType: 13,
|
|
2418
2418
|
offset: a,
|
|
2419
2419
|
startLoc: i,
|
|
@@ -2429,8 +2429,8 @@ function rc(e, t = {}) {
|
|
|
2429
2429
|
function p(f, d, L, ...D) {
|
|
2430
2430
|
const q = u();
|
|
2431
2431
|
if (d.column += L, d.offset += L, l) {
|
|
2432
|
-
const Y = n ? Fn(q.startLoc, d) : null, V =
|
|
2433
|
-
domain:
|
|
2432
|
+
const Y = n ? Fn(q.startLoc, d) : null, V = it(f, Y, {
|
|
2433
|
+
domain: rc,
|
|
2434
2434
|
args: D
|
|
2435
2435
|
});
|
|
2436
2436
|
l(V);
|
|
@@ -2689,7 +2689,7 @@ function rc(e, t = {}) {
|
|
|
2689
2689
|
};
|
|
2690
2690
|
return d("");
|
|
2691
2691
|
}
|
|
2692
|
-
function
|
|
2692
|
+
function at(f) {
|
|
2693
2693
|
S(f);
|
|
2694
2694
|
const d = E(
|
|
2695
2695
|
f,
|
|
@@ -2698,7 +2698,7 @@ function rc(e, t = {}) {
|
|
|
2698
2698
|
);
|
|
2699
2699
|
return S(f), d;
|
|
2700
2700
|
}
|
|
2701
|
-
function
|
|
2701
|
+
function ct(f, d) {
|
|
2702
2702
|
let L = null;
|
|
2703
2703
|
switch (f.currentChar()) {
|
|
2704
2704
|
case "{":
|
|
@@ -2720,9 +2720,9 @@ function rc(e, t = {}) {
|
|
|
2720
2720
|
default: {
|
|
2721
2721
|
let q = !0, Y = !0, V = !0;
|
|
2722
2722
|
if (I(f))
|
|
2723
|
-
return d.braceNest > 0 && p(F.UNTERMINATED_CLOSING_BRACE, o(), 0), L = g(d, 1,
|
|
2723
|
+
return d.braceNest > 0 && p(F.UNTERMINATED_CLOSING_BRACE, o(), 0), L = g(d, 1, at(f)), d.braceNest = 0, d.inLinked = !1, L;
|
|
2724
2724
|
if (d.braceNest > 0 && (d.currentType === 4 || d.currentType === 5 || d.currentType === 6))
|
|
2725
|
-
return p(F.UNTERMINATED_CLOSING_BRACE, o(), 0), d.braceNest = 0,
|
|
2725
|
+
return p(F.UNTERMINATED_CLOSING_BRACE, o(), 0), d.braceNest = 0, lt(f, d);
|
|
2726
2726
|
if (q = T(f, d))
|
|
2727
2727
|
return L = g(d, 4, Me(f)), S(f), L;
|
|
2728
2728
|
if (Y = y(f, d))
|
|
@@ -2763,21 +2763,21 @@ function rc(e, t = {}) {
|
|
|
2763
2763
|
/* TokenChars.LinkedDelimiter */
|
|
2764
2764
|
);
|
|
2765
2765
|
default:
|
|
2766
|
-
return I(f) ? (D = g(d, 1,
|
|
2766
|
+
return I(f) ? (D = g(d, 1, at(f)), d.braceNest = 0, d.inLinked = !1, D) : R(f, d) || x(f, d) ? (S(f), xe(f, d)) : _(f, d) ? (S(f), g(d, 11, dn(f))) : U(f, d) ? (S(f), q === "{" ? ct(f, d) || D : g(d, 10, pn(f))) : (L === 7 && p(F.INVALID_LINKED_FORMAT, o(), 0), d.braceNest = 0, d.inLinked = !1, lt(f, d));
|
|
2767
2767
|
}
|
|
2768
2768
|
}
|
|
2769
|
-
function
|
|
2769
|
+
function lt(f, d) {
|
|
2770
2770
|
let L = {
|
|
2771
2771
|
type: 13
|
|
2772
2772
|
/* TokenTypes.EOF */
|
|
2773
2773
|
};
|
|
2774
2774
|
if (d.braceNest > 0)
|
|
2775
|
-
return
|
|
2775
|
+
return ct(f, d) || A(d);
|
|
2776
2776
|
if (d.inLinked)
|
|
2777
2777
|
return xe(f, d) || A(d);
|
|
2778
2778
|
switch (f.currentChar()) {
|
|
2779
2779
|
case "{":
|
|
2780
|
-
return
|
|
2780
|
+
return ct(f, d) || A(d);
|
|
2781
2781
|
case "}":
|
|
2782
2782
|
return p(F.UNBALANCED_CLOSING_BRACE, o(), 0), f.next(), g(
|
|
2783
2783
|
d,
|
|
@@ -2789,7 +2789,7 @@ function rc(e, t = {}) {
|
|
|
2789
2789
|
return xe(f, d) || A(d);
|
|
2790
2790
|
default: {
|
|
2791
2791
|
if (I(f))
|
|
2792
|
-
return L = g(d, 1,
|
|
2792
|
+
return L = g(d, 1, at(f)), d.braceNest = 0, d.inLinked = !1, L;
|
|
2793
2793
|
if (P(f))
|
|
2794
2794
|
return g(d, 0, ye(f));
|
|
2795
2795
|
break;
|
|
@@ -2803,7 +2803,7 @@ function rc(e, t = {}) {
|
|
|
2803
2803
|
c,
|
|
2804
2804
|
13
|
|
2805
2805
|
/* TokenTypes.EOF */
|
|
2806
|
-
) :
|
|
2806
|
+
) : lt(r, c);
|
|
2807
2807
|
}
|
|
2808
2808
|
return {
|
|
2809
2809
|
nextToken: mn,
|
|
@@ -2812,8 +2812,8 @@ function rc(e, t = {}) {
|
|
|
2812
2812
|
context: u
|
|
2813
2813
|
};
|
|
2814
2814
|
}
|
|
2815
|
-
const
|
|
2816
|
-
function
|
|
2815
|
+
const oc = "parser", ic = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
2816
|
+
function ac(e, t, n) {
|
|
2817
2817
|
switch (e) {
|
|
2818
2818
|
case "\\\\":
|
|
2819
2819
|
return "\\";
|
|
@@ -2826,13 +2826,13 @@ function ic(e, t, n) {
|
|
|
2826
2826
|
}
|
|
2827
2827
|
}
|
|
2828
2828
|
}
|
|
2829
|
-
function
|
|
2829
|
+
function cc(e = {}) {
|
|
2830
2830
|
const t = e.location !== !1, { onError: n } = e;
|
|
2831
2831
|
function r(m, N, T, y, ...C) {
|
|
2832
2832
|
const R = m.currentPosition();
|
|
2833
2833
|
if (R.offset += y, R.column += y, n) {
|
|
2834
|
-
const _ = t ? Fn(T, R) : null, x =
|
|
2835
|
-
domain:
|
|
2834
|
+
const _ = t ? Fn(T, R) : null, x = it(N, _, {
|
|
2835
|
+
domain: oc,
|
|
2836
2836
|
args: C
|
|
2837
2837
|
});
|
|
2838
2838
|
n(x);
|
|
@@ -2859,7 +2859,7 @@ function ac(e = {}) {
|
|
|
2859
2859
|
}
|
|
2860
2860
|
function u(m, N) {
|
|
2861
2861
|
const T = m.context(), { lastOffset: y, lastStartLoc: C } = T, R = s(9, y, C);
|
|
2862
|
-
return R.value = N.replace(
|
|
2862
|
+
return R.value = N.replace(ic, ac), m.nextToken(), o(R, m.currentOffset(), m.currentPosition()), R;
|
|
2863
2863
|
}
|
|
2864
2864
|
function l(m) {
|
|
2865
2865
|
const N = m.nextToken(), T = m.context(), { lastOffset: y, lastStartLoc: C } = T, R = s(8, y, C);
|
|
@@ -2952,7 +2952,7 @@ function ac(e = {}) {
|
|
|
2952
2952
|
return N.currentType === 13 ? C : E(m, T, y, C);
|
|
2953
2953
|
}
|
|
2954
2954
|
function S(m) {
|
|
2955
|
-
const N =
|
|
2955
|
+
const N = sc(m, te({}, e)), T = N.context(), y = s(0, T.offset, T.startLoc);
|
|
2956
2956
|
return t && y.loc && (y.loc.source = m), y.body = b(N), e.onCacheKey && (y.cacheKey = e.onCacheKey(m)), T.currentType !== 13 && r(N, F.UNEXPECTED_LEXICAL_ANALYSIS, T.lastStartLoc, 0, m[T.offset] || ""), o(y, N.currentOffset(), N.currentPosition()), y;
|
|
2957
2957
|
}
|
|
2958
2958
|
return { parse: S };
|
|
@@ -2963,7 +2963,7 @@ function Se(e) {
|
|
|
2963
2963
|
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
2964
2964
|
return t.length > 10 ? t.slice(0, 9) + "…" : t;
|
|
2965
2965
|
}
|
|
2966
|
-
function
|
|
2966
|
+
function lc(e, t = {}) {
|
|
2967
2967
|
const n = {
|
|
2968
2968
|
ast: e,
|
|
2969
2969
|
helpers: /* @__PURE__ */ new Set()
|
|
@@ -3015,8 +3015,8 @@ function ar(e, t) {
|
|
|
3015
3015
|
break;
|
|
3016
3016
|
}
|
|
3017
3017
|
}
|
|
3018
|
-
function
|
|
3019
|
-
const n =
|
|
3018
|
+
function uc(e, t = {}) {
|
|
3019
|
+
const n = lc(e);
|
|
3020
3020
|
n.helper(
|
|
3021
3021
|
"normalize"
|
|
3022
3022
|
/* HelperNameMap.NORMALIZE */
|
|
@@ -3024,7 +3024,7 @@ function lc(e, t = {}) {
|
|
|
3024
3024
|
const r = n.context();
|
|
3025
3025
|
e.helpers = Array.from(r.helpers);
|
|
3026
3026
|
}
|
|
3027
|
-
function
|
|
3027
|
+
function fc(e) {
|
|
3028
3028
|
const t = e.body;
|
|
3029
3029
|
return t.type === 2 ? Gr(t) : t.cases.forEach((n) => Gr(n)), e;
|
|
3030
3030
|
}
|
|
@@ -3049,7 +3049,7 @@ function Gr(e) {
|
|
|
3049
3049
|
}
|
|
3050
3050
|
}
|
|
3051
3051
|
}
|
|
3052
|
-
const
|
|
3052
|
+
const dc = "minifier";
|
|
3053
3053
|
function Qe(e) {
|
|
3054
3054
|
switch (e.t = e.type, e.type) {
|
|
3055
3055
|
case 0: {
|
|
@@ -3096,15 +3096,15 @@ function Qe(e) {
|
|
|
3096
3096
|
}
|
|
3097
3097
|
default:
|
|
3098
3098
|
if (process.env.NODE_ENV !== "production")
|
|
3099
|
-
throw
|
|
3100
|
-
domain:
|
|
3099
|
+
throw it(F.UNHANDLED_MINIFIER_NODE_TYPE, null, {
|
|
3100
|
+
domain: dc,
|
|
3101
3101
|
args: [e.type]
|
|
3102
3102
|
});
|
|
3103
3103
|
}
|
|
3104
3104
|
delete e.type;
|
|
3105
3105
|
}
|
|
3106
|
-
const
|
|
3107
|
-
function
|
|
3106
|
+
const pc = "parser";
|
|
3107
|
+
function mc(e, t) {
|
|
3108
3108
|
const { filename: n, breakLineCode: r, needIndent: s } = t, o = t.location !== !1, i = {
|
|
3109
3109
|
filename: n,
|
|
3110
3110
|
code: "",
|
|
@@ -3146,25 +3146,25 @@ function pc(e, t) {
|
|
|
3146
3146
|
needIndent: () => i.needIndent
|
|
3147
3147
|
};
|
|
3148
3148
|
}
|
|
3149
|
-
function
|
|
3149
|
+
function _c(e, t) {
|
|
3150
3150
|
const { helper: n } = e;
|
|
3151
3151
|
e.push(`${n(
|
|
3152
3152
|
"linked"
|
|
3153
3153
|
/* HelperNameMap.LINKED */
|
|
3154
|
-
)}(`),
|
|
3154
|
+
)}(`), nt(e, t.key), t.modifier ? (e.push(", "), nt(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
3155
3155
|
}
|
|
3156
|
-
function
|
|
3156
|
+
function hc(e, t) {
|
|
3157
3157
|
const { helper: n, needIndent: r } = e;
|
|
3158
3158
|
e.push(`${n(
|
|
3159
3159
|
"normalize"
|
|
3160
3160
|
/* HelperNameMap.NORMALIZE */
|
|
3161
3161
|
)}([`), e.indent(r());
|
|
3162
3162
|
const s = t.items.length;
|
|
3163
|
-
for (let o = 0; o < s && (
|
|
3163
|
+
for (let o = 0; o < s && (nt(e, t.items[o]), o !== s - 1); o++)
|
|
3164
3164
|
e.push(", ");
|
|
3165
3165
|
e.deindent(r()), e.push("])");
|
|
3166
3166
|
}
|
|
3167
|
-
function
|
|
3167
|
+
function Ec(e, t) {
|
|
3168
3168
|
const { helper: n, needIndent: r } = e;
|
|
3169
3169
|
if (t.cases.length > 1) {
|
|
3170
3170
|
e.push(`${n(
|
|
@@ -3172,28 +3172,28 @@ function hc(e, t) {
|
|
|
3172
3172
|
/* HelperNameMap.PLURAL */
|
|
3173
3173
|
)}([`), e.indent(r());
|
|
3174
3174
|
const s = t.cases.length;
|
|
3175
|
-
for (let o = 0; o < s && (
|
|
3175
|
+
for (let o = 0; o < s && (nt(e, t.cases[o]), o !== s - 1); o++)
|
|
3176
3176
|
e.push(", ");
|
|
3177
3177
|
e.deindent(r()), e.push("])");
|
|
3178
3178
|
}
|
|
3179
3179
|
}
|
|
3180
|
-
function
|
|
3181
|
-
t.body ?
|
|
3180
|
+
function gc(e, t) {
|
|
3181
|
+
t.body ? nt(e, t.body) : e.push("null");
|
|
3182
3182
|
}
|
|
3183
|
-
function
|
|
3183
|
+
function nt(e, t) {
|
|
3184
3184
|
const { helper: n } = e;
|
|
3185
3185
|
switch (t.type) {
|
|
3186
3186
|
case 0:
|
|
3187
|
-
|
|
3187
|
+
gc(e, t);
|
|
3188
3188
|
break;
|
|
3189
3189
|
case 1:
|
|
3190
|
-
|
|
3190
|
+
Ec(e, t);
|
|
3191
3191
|
break;
|
|
3192
3192
|
case 2:
|
|
3193
|
-
|
|
3193
|
+
hc(e, t);
|
|
3194
3194
|
break;
|
|
3195
3195
|
case 6:
|
|
3196
|
-
|
|
3196
|
+
_c(e, t);
|
|
3197
3197
|
break;
|
|
3198
3198
|
case 8:
|
|
3199
3199
|
e.push(JSON.stringify(t.value), t);
|
|
@@ -3227,22 +3227,22 @@ function tt(e, t) {
|
|
|
3227
3227
|
break;
|
|
3228
3228
|
default:
|
|
3229
3229
|
if (process.env.NODE_ENV !== "production")
|
|
3230
|
-
throw
|
|
3231
|
-
domain:
|
|
3230
|
+
throw it(F.UNHANDLED_CODEGEN_NODE_TYPE, null, {
|
|
3231
|
+
domain: pc,
|
|
3232
3232
|
args: [t.type]
|
|
3233
3233
|
});
|
|
3234
3234
|
}
|
|
3235
3235
|
}
|
|
3236
|
-
const
|
|
3236
|
+
const bc = (e, t = {}) => {
|
|
3237
3237
|
const n = w(t.mode) ? t.mode : "normal", r = w(t.filename) ? t.filename : "message.intl";
|
|
3238
3238
|
t.sourceMap;
|
|
3239
3239
|
const s = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
3240
|
-
`, o = t.needIndent ? t.needIndent : n !== "arrow", i = e.helpers || [], a =
|
|
3240
|
+
`, o = t.needIndent ? t.needIndent : n !== "arrow", i = e.helpers || [], a = mc(e, {
|
|
3241
3241
|
filename: r,
|
|
3242
3242
|
breakLineCode: s,
|
|
3243
3243
|
needIndent: o
|
|
3244
3244
|
});
|
|
3245
|
-
a.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), a.indent(o), i.length > 0 && (a.push(`const { ${ir(i.map((l) => `${l}: _${l}`), ", ")} } = ctx`), a.newline()), a.push("return "),
|
|
3245
|
+
a.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), a.indent(o), i.length > 0 && (a.push(`const { ${ir(i.map((l) => `${l}: _${l}`), ", ")} } = ctx`), a.newline()), a.push("return "), nt(a, e), a.deindent(o), a.push("}"), delete e.helpers;
|
|
3246
3246
|
const { code: c, map: u } = a.context();
|
|
3247
3247
|
return {
|
|
3248
3248
|
ast: e,
|
|
@@ -3251,50 +3251,50 @@ const gc = (e, t = {}) => {
|
|
|
3251
3251
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
3252
3252
|
};
|
|
3253
3253
|
};
|
|
3254
|
-
function
|
|
3255
|
-
const n = te({}, t), r = !!n.jit, s = !!n.minify, o = n.optimize == null ? !0 : n.optimize, a =
|
|
3256
|
-
return r ? (o &&
|
|
3254
|
+
function yc(e, t = {}) {
|
|
3255
|
+
const n = te({}, t), r = !!n.jit, s = !!n.minify, o = n.optimize == null ? !0 : n.optimize, a = cc(n).parse(e);
|
|
3256
|
+
return r ? (o && fc(a), s && Qe(a), { ast: a, code: "" }) : (uc(a, n), bc(a, n));
|
|
3257
3257
|
}
|
|
3258
|
-
function
|
|
3258
|
+
function Nc() {
|
|
3259
3259
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (He().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (He().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
3260
3260
|
}
|
|
3261
3261
|
function Ee(e) {
|
|
3262
|
-
return
|
|
3262
|
+
return B(e) && cr(e) === 0 && (he(e, "b") || he(e, "body"));
|
|
3263
3263
|
}
|
|
3264
|
-
const
|
|
3265
|
-
function Nc(e) {
|
|
3266
|
-
return Fe(e, Js);
|
|
3267
|
-
}
|
|
3268
|
-
const zs = ["c", "cases"];
|
|
3264
|
+
const Qs = ["b", "body"];
|
|
3269
3265
|
function Oc(e) {
|
|
3270
|
-
return Fe(e,
|
|
3266
|
+
return Fe(e, Qs);
|
|
3271
3267
|
}
|
|
3272
|
-
const
|
|
3268
|
+
const Zs = ["c", "cases"];
|
|
3273
3269
|
function Sc(e) {
|
|
3274
|
-
return Fe(e,
|
|
3270
|
+
return Fe(e, Zs, []);
|
|
3275
3271
|
}
|
|
3276
|
-
const
|
|
3272
|
+
const eo = ["s", "static"];
|
|
3277
3273
|
function Tc(e) {
|
|
3278
|
-
return Fe(e,
|
|
3274
|
+
return Fe(e, eo);
|
|
3279
3275
|
}
|
|
3280
|
-
const
|
|
3276
|
+
const to = ["i", "items"];
|
|
3277
|
+
function Lc(e) {
|
|
3278
|
+
return Fe(e, to, []);
|
|
3279
|
+
}
|
|
3280
|
+
const no = ["t", "type"];
|
|
3281
3281
|
function cr(e) {
|
|
3282
|
-
return Fe(e,
|
|
3282
|
+
return Fe(e, no);
|
|
3283
3283
|
}
|
|
3284
|
-
const
|
|
3284
|
+
const ro = ["v", "value"];
|
|
3285
3285
|
function Ct(e, t) {
|
|
3286
|
-
const n = Fe(e,
|
|
3286
|
+
const n = Fe(e, ro);
|
|
3287
3287
|
if (n != null)
|
|
3288
3288
|
return n;
|
|
3289
3289
|
throw _t(t);
|
|
3290
3290
|
}
|
|
3291
|
-
const
|
|
3292
|
-
function Lc(e) {
|
|
3293
|
-
return Fe(e, no);
|
|
3294
|
-
}
|
|
3295
|
-
const ro = ["k", "key"];
|
|
3291
|
+
const so = ["m", "modifier"];
|
|
3296
3292
|
function Ac(e) {
|
|
3297
|
-
|
|
3293
|
+
return Fe(e, so);
|
|
3294
|
+
}
|
|
3295
|
+
const oo = ["k", "key"];
|
|
3296
|
+
function vc(e) {
|
|
3297
|
+
const t = Fe(e, oo);
|
|
3298
3298
|
if (t)
|
|
3299
3299
|
return t;
|
|
3300
3300
|
throw _t(
|
|
@@ -3310,31 +3310,31 @@ function Fe(e, t, n) {
|
|
|
3310
3310
|
}
|
|
3311
3311
|
return n;
|
|
3312
3312
|
}
|
|
3313
|
-
const
|
|
3314
|
-
...Js,
|
|
3315
|
-
...zs,
|
|
3313
|
+
const io = [
|
|
3316
3314
|
...Qs,
|
|
3317
3315
|
...Zs,
|
|
3318
|
-
...
|
|
3319
|
-
...no,
|
|
3316
|
+
...eo,
|
|
3320
3317
|
...to,
|
|
3321
|
-
...
|
|
3318
|
+
...oo,
|
|
3319
|
+
...so,
|
|
3320
|
+
...ro,
|
|
3321
|
+
...no
|
|
3322
3322
|
];
|
|
3323
3323
|
function _t(e) {
|
|
3324
3324
|
return new Error(`unhandled node type: ${e}`);
|
|
3325
3325
|
}
|
|
3326
3326
|
function On(e) {
|
|
3327
|
-
return (n) =>
|
|
3327
|
+
return (n) => Cc(n, e);
|
|
3328
3328
|
}
|
|
3329
|
-
function
|
|
3330
|
-
const n =
|
|
3329
|
+
function Cc(e, t) {
|
|
3330
|
+
const n = Oc(t);
|
|
3331
3331
|
if (n == null)
|
|
3332
3332
|
throw _t(
|
|
3333
3333
|
0
|
|
3334
3334
|
/* NodeTypes.Resource */
|
|
3335
3335
|
);
|
|
3336
3336
|
if (cr(n) === 1) {
|
|
3337
|
-
const o =
|
|
3337
|
+
const o = Sc(n);
|
|
3338
3338
|
return e.plural(o.reduce((i, a) => [
|
|
3339
3339
|
...i,
|
|
3340
3340
|
Yr(e, a)
|
|
@@ -3343,11 +3343,11 @@ function vc(e, t) {
|
|
|
3343
3343
|
return Yr(e, n);
|
|
3344
3344
|
}
|
|
3345
3345
|
function Yr(e, t) {
|
|
3346
|
-
const n =
|
|
3346
|
+
const n = Tc(t);
|
|
3347
3347
|
if (n != null)
|
|
3348
3348
|
return e.type === "text" ? n : e.normalize([n]);
|
|
3349
3349
|
{
|
|
3350
|
-
const r =
|
|
3350
|
+
const r = Lc(t).reduce((s, o) => [...s, Un(e, o)], []);
|
|
3351
3351
|
return e.normalize(r);
|
|
3352
3352
|
}
|
|
3353
3353
|
}
|
|
@@ -3375,7 +3375,7 @@ function Un(e, t) {
|
|
|
3375
3375
|
throw _t(n);
|
|
3376
3376
|
}
|
|
3377
3377
|
case 6: {
|
|
3378
|
-
const r = t, s =
|
|
3378
|
+
const r = t, s = Ac(r), o = vc(r);
|
|
3379
3379
|
return e.linked(Un(e, o), s ? Un(e, s) : void 0, e.type);
|
|
3380
3380
|
}
|
|
3381
3381
|
case 7:
|
|
@@ -3386,28 +3386,28 @@ function Un(e, t) {
|
|
|
3386
3386
|
throw new Error(`unhandled node on format message part: ${n}`);
|
|
3387
3387
|
}
|
|
3388
3388
|
}
|
|
3389
|
-
const
|
|
3390
|
-
function
|
|
3391
|
-
t &&
|
|
3389
|
+
const Rc = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
|
|
3390
|
+
function Ic(e, t) {
|
|
3391
|
+
t && za(e) && Le(nn(Rc, { source: e }));
|
|
3392
3392
|
}
|
|
3393
|
-
const
|
|
3393
|
+
const Pc = (e) => e;
|
|
3394
3394
|
let Rt = H();
|
|
3395
|
-
function
|
|
3395
|
+
function wc(e, t = {}) {
|
|
3396
3396
|
let n = !1;
|
|
3397
|
-
const r = t.onError ||
|
|
3397
|
+
const r = t.onError || Xa;
|
|
3398
3398
|
return t.onError = (s) => {
|
|
3399
3399
|
n = !0, r(s);
|
|
3400
|
-
}, { ...
|
|
3400
|
+
}, { ...yc(e, t), detectError: n };
|
|
3401
3401
|
}
|
|
3402
3402
|
// @__NO_SIDE_EFFECTS__
|
|
3403
|
-
function
|
|
3403
|
+
function Dc(e, t) {
|
|
3404
3404
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && w(e)) {
|
|
3405
3405
|
const n = X(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
|
|
3406
|
-
process.env.NODE_ENV !== "production" &&
|
|
3407
|
-
const s = (t.onCacheKey ||
|
|
3406
|
+
process.env.NODE_ENV !== "production" && Ic(e, n);
|
|
3407
|
+
const s = (t.onCacheKey || Pc)(e), o = Rt[s];
|
|
3408
3408
|
if (o)
|
|
3409
3409
|
return o;
|
|
3410
|
-
const { ast: i, detectError: a } =
|
|
3410
|
+
const { ast: i, detectError: a } = wc(e, {
|
|
3411
3411
|
...t,
|
|
3412
3412
|
location: process.env.NODE_ENV !== "production",
|
|
3413
3413
|
jit: !0
|
|
@@ -3425,10 +3425,10 @@ function wc(e, t) {
|
|
|
3425
3425
|
}
|
|
3426
3426
|
}
|
|
3427
3427
|
let ht = null;
|
|
3428
|
-
function
|
|
3428
|
+
function kc(e) {
|
|
3429
3429
|
ht = e;
|
|
3430
3430
|
}
|
|
3431
|
-
function
|
|
3431
|
+
function Fc(e, t, n) {
|
|
3432
3432
|
ht && ht.emit("i18n:init", {
|
|
3433
3433
|
timestamp: Date.now(),
|
|
3434
3434
|
i18n: e,
|
|
@@ -3436,12 +3436,12 @@ function kc(e, t, n) {
|
|
|
3436
3436
|
meta: n
|
|
3437
3437
|
});
|
|
3438
3438
|
}
|
|
3439
|
-
const
|
|
3440
|
-
function
|
|
3439
|
+
const Uc = /* @__PURE__ */ Mc("function:translate");
|
|
3440
|
+
function Mc(e) {
|
|
3441
3441
|
return (t) => ht && ht.emit(e, t);
|
|
3442
3442
|
}
|
|
3443
3443
|
const ie = {
|
|
3444
|
-
INVALID_ARGUMENT:
|
|
3444
|
+
INVALID_ARGUMENT: Ya,
|
|
3445
3445
|
// 17
|
|
3446
3446
|
INVALID_DATE_ARGUMENT: 18,
|
|
3447
3447
|
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
@@ -3449,11 +3449,11 @@ const ie = {
|
|
|
3449
3449
|
NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
|
|
3450
3450
|
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
3451
3451
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
3452
|
-
},
|
|
3452
|
+
}, xc = 24;
|
|
3453
3453
|
function ve(e) {
|
|
3454
|
-
return
|
|
3454
|
+
return it(e, null, process.env.NODE_ENV !== "production" ? { messages: Vc } : void 0);
|
|
3455
3455
|
}
|
|
3456
|
-
const
|
|
3456
|
+
const Vc = {
|
|
3457
3457
|
[ie.INVALID_ARGUMENT]: "Invalid arguments",
|
|
3458
3458
|
[ie.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
|
|
3459
3459
|
[ie.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
|
|
@@ -3482,13 +3482,13 @@ function Kr(e) {
|
|
|
3482
3482
|
} else
|
|
3483
3483
|
throw ve(ie.NOT_SUPPORT_LOCALE_TYPE);
|
|
3484
3484
|
}
|
|
3485
|
-
function
|
|
3485
|
+
function $c(e, t, n) {
|
|
3486
3486
|
return [.../* @__PURE__ */ new Set([
|
|
3487
3487
|
n,
|
|
3488
|
-
...J(t) ? t :
|
|
3488
|
+
...J(t) ? t : B(t) ? Object.keys(t) : w(t) ? [t] : [n]
|
|
3489
3489
|
])];
|
|
3490
3490
|
}
|
|
3491
|
-
function
|
|
3491
|
+
function ao(e, t, n) {
|
|
3492
3492
|
const r = w(n) ? n : Wt, s = e;
|
|
3493
3493
|
s.__localeChainCache || (s.__localeChainCache = /* @__PURE__ */ new Map());
|
|
3494
3494
|
let o = s.__localeChainCache.get(r);
|
|
@@ -3506,11 +3506,11 @@ function Xr(e, t, n) {
|
|
|
3506
3506
|
let r = !0;
|
|
3507
3507
|
for (let s = 0; s < t.length && X(r); s++) {
|
|
3508
3508
|
const o = t[s];
|
|
3509
|
-
w(o) && (r =
|
|
3509
|
+
w(o) && (r = Bc(e, t[s], n));
|
|
3510
3510
|
}
|
|
3511
3511
|
return r;
|
|
3512
3512
|
}
|
|
3513
|
-
function
|
|
3513
|
+
function Bc(e, t, n) {
|
|
3514
3514
|
let r;
|
|
3515
3515
|
const s = t.split("-");
|
|
3516
3516
|
do {
|
|
@@ -3689,15 +3689,15 @@ Ue[
|
|
|
3689
3689
|
/* Actions.APPEND */
|
|
3690
3690
|
]
|
|
3691
3691
|
};
|
|
3692
|
-
const
|
|
3693
|
-
function Hc(e) {
|
|
3694
|
-
return Bc.test(e);
|
|
3695
|
-
}
|
|
3692
|
+
const Hc = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
3696
3693
|
function Wc(e) {
|
|
3694
|
+
return Hc.test(e);
|
|
3695
|
+
}
|
|
3696
|
+
function qc(e) {
|
|
3697
3697
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
3698
3698
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
3699
3699
|
}
|
|
3700
|
-
function
|
|
3700
|
+
function Gc(e) {
|
|
3701
3701
|
if (e == null)
|
|
3702
3702
|
return "o";
|
|
3703
3703
|
switch (e.charCodeAt(0)) {
|
|
@@ -3734,11 +3734,11 @@ function qc(e) {
|
|
|
3734
3734
|
}
|
|
3735
3735
|
return "i";
|
|
3736
3736
|
}
|
|
3737
|
-
function
|
|
3737
|
+
function Yc(e) {
|
|
3738
3738
|
const t = e.trim();
|
|
3739
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 :
|
|
3739
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Wc(t) ? qc(t) : "*" + t;
|
|
3740
3740
|
}
|
|
3741
|
-
function
|
|
3741
|
+
function Kc(e) {
|
|
3742
3742
|
const t = [];
|
|
3743
3743
|
let n = -1, r = 0, s = 0, o, i, a, c, u, l, p;
|
|
3744
3744
|
const g = [];
|
|
@@ -3770,7 +3770,7 @@ function Yc(e) {
|
|
|
3770
3770
|
/* Actions.APPEND */
|
|
3771
3771
|
]();
|
|
3772
3772
|
else {
|
|
3773
|
-
if (s = 0, i === void 0 || (i =
|
|
3773
|
+
if (s = 0, i === void 0 || (i = Yc(i), i === !1))
|
|
3774
3774
|
return !1;
|
|
3775
3775
|
g[
|
|
3776
3776
|
1
|
|
@@ -3788,27 +3788,27 @@ function Yc(e) {
|
|
|
3788
3788
|
}
|
|
3789
3789
|
for (; r !== null; )
|
|
3790
3790
|
if (n++, o = e[n], !(o === "\\" && A())) {
|
|
3791
|
-
if (c =
|
|
3791
|
+
if (c = Gc(o), p = Ue[r], u = p[c] || p.l || 8, u === 8 || (r = u[0], u[1] !== void 0 && (l = g[u[1]], l && (a = o, l() === !1))))
|
|
3792
3792
|
return;
|
|
3793
3793
|
if (r === 7)
|
|
3794
3794
|
return t;
|
|
3795
3795
|
}
|
|
3796
3796
|
}
|
|
3797
3797
|
const Jr = /* @__PURE__ */ new Map();
|
|
3798
|
-
function Kc(e, t) {
|
|
3799
|
-
return j(e) ? e[t] : null;
|
|
3800
|
-
}
|
|
3801
3798
|
function Xc(e, t) {
|
|
3802
|
-
|
|
3799
|
+
return B(e) ? e[t] : null;
|
|
3800
|
+
}
|
|
3801
|
+
function Jc(e, t) {
|
|
3802
|
+
if (!B(e))
|
|
3803
3803
|
return null;
|
|
3804
3804
|
let n = Jr.get(t);
|
|
3805
|
-
if (n || (n =
|
|
3805
|
+
if (n || (n = Kc(t), n && Jr.set(t, n)), !n)
|
|
3806
3806
|
return null;
|
|
3807
3807
|
const r = n.length;
|
|
3808
3808
|
let s = e, o = 0;
|
|
3809
3809
|
for (; o < r; ) {
|
|
3810
3810
|
const i = n[o];
|
|
3811
|
-
if (
|
|
3811
|
+
if (io.includes(i) && Ee(s))
|
|
3812
3812
|
return null;
|
|
3813
3813
|
const a = s[i];
|
|
3814
3814
|
if (a === void 0 || G(s))
|
|
@@ -3825,7 +3825,7 @@ const le = {
|
|
|
3825
3825
|
CANNOT_FORMAT_DATE: 5,
|
|
3826
3826
|
FALLBACK_TO_DATE_FORMAT: 6,
|
|
3827
3827
|
EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7
|
|
3828
|
-
},
|
|
3828
|
+
}, zc = 8, Qc = {
|
|
3829
3829
|
[le.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
|
|
3830
3830
|
[le.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
|
|
3831
3831
|
[le.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
|
|
@@ -3835,41 +3835,41 @@ const le = {
|
|
|
3835
3835
|
[le.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]: "This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."
|
|
3836
3836
|
};
|
|
3837
3837
|
function Ke(e, ...t) {
|
|
3838
|
-
return nn(
|
|
3838
|
+
return nn(Qc[e], ...t);
|
|
3839
3839
|
}
|
|
3840
|
-
const
|
|
3841
|
-
function
|
|
3840
|
+
const Zc = "11.2.2", sn = -1, Wt = "en-US", qt = "", zr = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
3841
|
+
function el() {
|
|
3842
3842
|
return {
|
|
3843
|
-
upper: (e, t) => t === "text" && w(e) ? e.toUpperCase() : t === "vnode" &&
|
|
3844
|
-
lower: (e, t) => t === "text" && w(e) ? e.toLowerCase() : t === "vnode" &&
|
|
3845
|
-
capitalize: (e, t) => t === "text" && w(e) ? zr(e) : t === "vnode" &&
|
|
3843
|
+
upper: (e, t) => t === "text" && w(e) ? e.toUpperCase() : t === "vnode" && B(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
3844
|
+
lower: (e, t) => t === "text" && w(e) ? e.toLowerCase() : t === "vnode" && B(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
3845
|
+
capitalize: (e, t) => t === "text" && w(e) ? zr(e) : t === "vnode" && B(e) && "__v_isVNode" in e ? zr(e.children) : e
|
|
3846
3846
|
};
|
|
3847
3847
|
}
|
|
3848
|
-
let io;
|
|
3849
|
-
function el(e) {
|
|
3850
|
-
io = e;
|
|
3851
|
-
}
|
|
3852
|
-
let ao;
|
|
3853
|
-
function tl(e) {
|
|
3854
|
-
ao = e;
|
|
3855
|
-
}
|
|
3856
3848
|
let co;
|
|
3857
|
-
function
|
|
3849
|
+
function tl(e) {
|
|
3858
3850
|
co = e;
|
|
3859
3851
|
}
|
|
3860
|
-
let lo
|
|
3861
|
-
|
|
3852
|
+
let lo;
|
|
3853
|
+
function nl(e) {
|
|
3862
3854
|
lo = e;
|
|
3863
|
-
}
|
|
3864
|
-
let uo
|
|
3865
|
-
|
|
3855
|
+
}
|
|
3856
|
+
let uo;
|
|
3857
|
+
function rl(e) {
|
|
3866
3858
|
uo = e;
|
|
3867
|
-
}
|
|
3859
|
+
}
|
|
3860
|
+
let fo = null;
|
|
3861
|
+
const sl = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
3862
|
+
fo = e;
|
|
3863
|
+
}, ol = /* @__NO_SIDE_EFFECTS__ */ () => fo;
|
|
3864
|
+
let po = null;
|
|
3865
|
+
const Qr = (e) => {
|
|
3866
|
+
po = e;
|
|
3867
|
+
}, il = () => po;
|
|
3868
3868
|
let Zr = 0;
|
|
3869
|
-
function
|
|
3870
|
-
const t = G(e.onWarn) ? e.onWarn : Le, n = w(e.version) ? e.version :
|
|
3871
|
-
process.env.NODE_ENV !== "production" && G(e.messageCompiler) &&
|
|
3872
|
-
const C = G(e.messageResolver) ? e.messageResolver :
|
|
3869
|
+
function al(e = {}) {
|
|
3870
|
+
const t = G(e.onWarn) ? e.onWarn : Le, n = w(e.version) ? e.version : Zc, r = w(e.locale) || G(e.locale) ? e.locale : Wt, s = G(r) ? Wt : r, o = J(e.fallbackLocale) || $(e.fallbackLocale) || w(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s, i = $(e.messages) ? e.messages : Tn(s), a = $(e.datetimeFormats) ? e.datetimeFormats : Tn(s), c = $(e.numberFormats) ? e.numberFormats : Tn(s), u = te(H(), e.modifiers, el()), l = e.pluralRules || H(), p = G(e.missing) ? e.missing : null, g = X(e.missingWarn) || Ht(e.missingWarn) ? e.missingWarn : !0, A = X(e.fallbackWarn) || Ht(e.fallbackWarn) ? e.fallbackWarn : !0, E = !!e.fallbackFormat, b = !!e.unresolving, S = G(e.postTranslation) ? e.postTranslation : null, m = $(e.processor) ? e.processor : null, N = X(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, T = !!e.escapeParameter, y = G(e.messageCompiler) ? e.messageCompiler : co;
|
|
3871
|
+
process.env.NODE_ENV !== "production" && G(e.messageCompiler) && ka(Ke(le.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
3872
|
+
const C = G(e.messageResolver) ? e.messageResolver : lo || Xc, R = G(e.localeFallbacker) ? e.localeFallbacker : uo || $c, _ = B(e.fallbackContext) ? e.fallbackContext : void 0, x = e, U = B(x.__datetimeFormatters) ? x.__datetimeFormatters : /* @__PURE__ */ new Map(), I = B(x.__numberFormatters) ? x.__numberFormatters : /* @__PURE__ */ new Map(), P = B(x.__meta) ? x.__meta : {};
|
|
3873
3873
|
Zr++;
|
|
3874
3874
|
const k = {
|
|
3875
3875
|
version: n,
|
|
@@ -3895,13 +3895,13 @@ function il(e = {}) {
|
|
|
3895
3895
|
onWarn: t,
|
|
3896
3896
|
__meta: P
|
|
3897
3897
|
};
|
|
3898
|
-
return k.datetimeFormats = a, k.numberFormats = c, k.__datetimeFormatters = U, k.__numberFormatters = I, process.env.NODE_ENV !== "production" && (k.__v_emitter = x.__v_emitter != null ? x.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) &&
|
|
3898
|
+
return k.datetimeFormats = a, k.numberFormats = c, k.__datetimeFormatters = U, k.__numberFormatters = I, process.env.NODE_ENV !== "production" && (k.__v_emitter = x.__v_emitter != null ? x.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && Fc(k, n, P), k;
|
|
3899
3899
|
}
|
|
3900
3900
|
const Tn = (e) => ({ [e]: H() });
|
|
3901
3901
|
function on(e, t) {
|
|
3902
3902
|
return e instanceof RegExp ? e.test(t) : e;
|
|
3903
3903
|
}
|
|
3904
|
-
function
|
|
3904
|
+
function mo(e, t) {
|
|
3905
3905
|
return e instanceof RegExp ? e.test(t) : e;
|
|
3906
3906
|
}
|
|
3907
3907
|
function ur(e, t, n, r, s) {
|
|
@@ -3919,31 +3919,31 @@ function ur(e, t, n, r, s) {
|
|
|
3919
3919
|
const a = o(e, n, t, s);
|
|
3920
3920
|
return w(a) ? a : t;
|
|
3921
3921
|
} else
|
|
3922
|
-
return process.env.NODE_ENV !== "production" &&
|
|
3922
|
+
return process.env.NODE_ENV !== "production" && mo(r, t) && i(Ke(le.NOT_FOUND_KEY, { key: t, locale: n })), t;
|
|
3923
3923
|
}
|
|
3924
|
-
function
|
|
3924
|
+
function ft(e, t, n) {
|
|
3925
3925
|
const r = e;
|
|
3926
3926
|
r.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
3927
3927
|
}
|
|
3928
|
-
function
|
|
3928
|
+
function _o(e, t) {
|
|
3929
3929
|
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
3930
3930
|
}
|
|
3931
|
-
function
|
|
3931
|
+
function cl(e, t) {
|
|
3932
3932
|
const n = t.indexOf(e);
|
|
3933
3933
|
if (n === -1)
|
|
3934
3934
|
return !1;
|
|
3935
3935
|
for (let r = n + 1; r < t.length; r++)
|
|
3936
|
-
if (
|
|
3936
|
+
if (_o(e, t[r]))
|
|
3937
3937
|
return !0;
|
|
3938
3938
|
return !1;
|
|
3939
3939
|
}
|
|
3940
|
-
const es = typeof Intl < "u",
|
|
3940
|
+
const es = typeof Intl < "u", ho = {
|
|
3941
3941
|
dateTimeFormat: es && typeof Intl.DateTimeFormat < "u",
|
|
3942
3942
|
numberFormat: es && typeof Intl.NumberFormat < "u"
|
|
3943
3943
|
};
|
|
3944
3944
|
function ts(e, ...t) {
|
|
3945
3945
|
const { datetimeFormats: n, unresolving: r, fallbackLocale: s, onWarn: o, localeFallbacker: i } = e, { __datetimeFormatters: a } = e;
|
|
3946
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
3946
|
+
if (process.env.NODE_ENV !== "production" && !ho.dateTimeFormat)
|
|
3947
3947
|
return o(Ke(le.CANNOT_FORMAT_DATE)), qt;
|
|
3948
3948
|
const [c, u, l, p] = Mn(...t), g = X(l.missingWarn) ? l.missingWarn : e.missingWarn, A = X(l.fallbackWarn) ? l.fallbackWarn : e.fallbackWarn, E = !!l.part, b = lr(e, l), S = i(
|
|
3949
3949
|
e,
|
|
@@ -3980,7 +3980,7 @@ function ts(e, ...t) {
|
|
|
3980
3980
|
let x = a.get(_);
|
|
3981
3981
|
return x || (x = new Intl.DateTimeFormat(N, te({}, T, p)), a.set(_, x)), E ? x.formatToParts(u) : x.format(u);
|
|
3982
3982
|
}
|
|
3983
|
-
const
|
|
3983
|
+
const Eo = [
|
|
3984
3984
|
"localeMatcher",
|
|
3985
3985
|
"weekday",
|
|
3986
3986
|
"era",
|
|
@@ -4016,7 +4016,7 @@ function Mn(...e) {
|
|
|
4016
4016
|
} catch {
|
|
4017
4017
|
throw ve(ie.INVALID_ISO_DATE_ARGUMENT);
|
|
4018
4018
|
}
|
|
4019
|
-
} else if (
|
|
4019
|
+
} else if (xa(t)) {
|
|
4020
4020
|
if (isNaN(t.getTime()))
|
|
4021
4021
|
throw ve(ie.INVALID_DATE_ARGUMENT);
|
|
4022
4022
|
a = t;
|
|
@@ -4025,7 +4025,7 @@ function Mn(...e) {
|
|
|
4025
4025
|
else
|
|
4026
4026
|
throw ve(ie.INVALID_ARGUMENT);
|
|
4027
4027
|
return w(n) ? o.key = n : $(n) && Object.keys(n).forEach((c) => {
|
|
4028
|
-
|
|
4028
|
+
Eo.includes(c) ? i[c] = n[c] : o[c] = n[c];
|
|
4029
4029
|
}), w(r) ? o.locale = r : $(r) && (i = r), $(s) && (i = s), [o.key || "", a, o, i];
|
|
4030
4030
|
}
|
|
4031
4031
|
function ns(e, t, n) {
|
|
@@ -4037,7 +4037,7 @@ function ns(e, t, n) {
|
|
|
4037
4037
|
}
|
|
4038
4038
|
function rs(e, ...t) {
|
|
4039
4039
|
const { numberFormats: n, unresolving: r, fallbackLocale: s, onWarn: o, localeFallbacker: i } = e, { __numberFormatters: a } = e;
|
|
4040
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
4040
|
+
if (process.env.NODE_ENV !== "production" && !ho.numberFormat)
|
|
4041
4041
|
return o(Ke(le.CANNOT_FORMAT_NUMBER)), qt;
|
|
4042
4042
|
const [c, u, l, p] = xn(...t), g = X(l.missingWarn) ? l.missingWarn : e.missingWarn, A = X(l.fallbackWarn) ? l.fallbackWarn : e.fallbackWarn, E = !!l.part, b = lr(e, l), S = i(
|
|
4043
4043
|
e,
|
|
@@ -4074,7 +4074,7 @@ function rs(e, ...t) {
|
|
|
4074
4074
|
let x = a.get(_);
|
|
4075
4075
|
return x || (x = new Intl.NumberFormat(N, te({}, T, p)), a.set(_, x)), E ? x.formatToParts(u) : x.format(u);
|
|
4076
4076
|
}
|
|
4077
|
-
const
|
|
4077
|
+
const go = [
|
|
4078
4078
|
"localeMatcher",
|
|
4079
4079
|
"style",
|
|
4080
4080
|
"currency",
|
|
@@ -4103,7 +4103,7 @@ function xn(...e) {
|
|
|
4103
4103
|
throw ve(ie.INVALID_ARGUMENT);
|
|
4104
4104
|
const a = t;
|
|
4105
4105
|
return w(n) ? o.key = n : $(n) && Object.keys(n).forEach((c) => {
|
|
4106
|
-
|
|
4106
|
+
go.includes(c) ? i[c] = n[c] : o[c] = n[c];
|
|
4107
4107
|
}), w(r) ? o.locale = r : $(r) && (i = r), $(s) && (i = s), [o.key || "", a, o, i];
|
|
4108
4108
|
}
|
|
4109
4109
|
function ss(e, t, n) {
|
|
@@ -4113,33 +4113,33 @@ function ss(e, t, n) {
|
|
|
4113
4113
|
r.__numberFormatters.has(o) && r.__numberFormatters.delete(o);
|
|
4114
4114
|
}
|
|
4115
4115
|
}
|
|
4116
|
-
const
|
|
4116
|
+
const ll = (e) => e, ul = (e) => "", fl = "text", dl = (e) => e.length === 0 ? "" : ir(e), pl = Ha;
|
|
4117
4117
|
function os(e, t) {
|
|
4118
4118
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
4119
4119
|
}
|
|
4120
|
-
function
|
|
4120
|
+
function ml(e) {
|
|
4121
4121
|
const t = ee(e.pluralIndex) ? e.pluralIndex : -1;
|
|
4122
4122
|
return e.named && (ee(e.named.count) || ee(e.named.n)) ? ee(e.named.count) ? e.named.count : ee(e.named.n) ? e.named.n : t : t;
|
|
4123
4123
|
}
|
|
4124
|
-
function
|
|
4124
|
+
function _l(e, t) {
|
|
4125
4125
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
4126
4126
|
}
|
|
4127
|
-
function
|
|
4128
|
-
const t = e.locale, n =
|
|
4129
|
-
ee(e.pluralIndex) &&
|
|
4127
|
+
function hl(e = {}) {
|
|
4128
|
+
const t = e.locale, n = ml(e), r = B(e.pluralRules) && w(t) && G(e.pluralRules[t]) ? e.pluralRules[t] : os, s = B(e.pluralRules) && w(t) && G(e.pluralRules[t]) ? os : void 0, o = (m) => m[r(n, m.length, s)], i = e.list || [], a = (m) => i[m], c = e.named || H();
|
|
4129
|
+
ee(e.pluralIndex) && _l(n, c);
|
|
4130
4130
|
const u = (m) => c[m];
|
|
4131
4131
|
function l(m, N) {
|
|
4132
|
-
const T = G(e.messages) ? e.messages(m, !!N) :
|
|
4133
|
-
return T || (e.parent ? e.parent.message(m) :
|
|
4132
|
+
const T = G(e.messages) ? e.messages(m, !!N) : B(e.messages) ? e.messages[m] : !1;
|
|
4133
|
+
return T || (e.parent ? e.parent.message(m) : ul);
|
|
4134
4134
|
}
|
|
4135
|
-
const p = (m) => e.modifiers ? e.modifiers[m] :
|
|
4135
|
+
const p = (m) => e.modifiers ? e.modifiers[m] : ll, g = $(e.processor) && G(e.processor.normalize) ? e.processor.normalize : dl, A = $(e.processor) && G(e.processor.interpolate) ? e.processor.interpolate : pl, E = $(e.processor) && w(e.processor.type) ? e.processor.type : fl, S = {
|
|
4136
4136
|
list: a,
|
|
4137
4137
|
named: u,
|
|
4138
4138
|
plural: o,
|
|
4139
4139
|
linked: (m, ...N) => {
|
|
4140
4140
|
const [T, y] = N;
|
|
4141
4141
|
let C = "text", R = "";
|
|
4142
|
-
N.length === 1 ?
|
|
4142
|
+
N.length === 1 ? B(T) ? (R = T.modifier || R, C = T.type || C) : w(T) && (R = T || R) : N.length === 2 && (w(T) && (R = T || R), w(y) && (C = y || C));
|
|
4143
4143
|
const _ = l(m, !0)(S), x = (
|
|
4144
4144
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
4145
4145
|
C === "vnode" && J(_) && R ? _[0] : _
|
|
@@ -4157,12 +4157,12 @@ function _l(e = {}) {
|
|
|
4157
4157
|
const is = () => "", me = (e) => G(e);
|
|
4158
4158
|
function as(e, ...t) {
|
|
4159
4159
|
const { fallbackFormat: n, postTranslation: r, unresolving: s, messageCompiler: o, fallbackLocale: i, messages: a } = e, [c, u] = Vn(...t), l = X(u.missingWarn) ? u.missingWarn : e.missingWarn, p = X(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn, g = X(u.escapeParameter) ? u.escapeParameter : e.escapeParameter, A = !!u.resolvedMessage, E = w(u.default) || X(u.default) ? X(u.default) ? o ? c : () => c : u.default : n ? o ? c : () => c : null, b = n || E != null && (w(E) || G(E)), S = lr(e, u);
|
|
4160
|
-
g &&
|
|
4160
|
+
g && El(u);
|
|
4161
4161
|
let [m, N, T] = A ? [
|
|
4162
4162
|
c,
|
|
4163
4163
|
S,
|
|
4164
4164
|
a[S] || H()
|
|
4165
|
-
] :
|
|
4165
|
+
] : bo(e, c, S, i, p, l), y = m, C = c;
|
|
4166
4166
|
if (!A && !(w(y) || Ee(y) || me(y)) && b && (y = E, C = y), !A && (!(w(y) || Ee(y) || me(y)) || !w(N)))
|
|
4167
4167
|
return s ? sn : c;
|
|
4168
4168
|
if (process.env.NODE_ENV !== "production" && w(y) && e.messageCompiler == null)
|
|
@@ -4170,12 +4170,12 @@ function as(e, ...t) {
|
|
|
4170
4170
|
let R = !1;
|
|
4171
4171
|
const _ = () => {
|
|
4172
4172
|
R = !0;
|
|
4173
|
-
}, x = me(y) ? y :
|
|
4173
|
+
}, x = me(y) ? y : yo(e, c, N, y, C, _);
|
|
4174
4174
|
if (R)
|
|
4175
4175
|
return y;
|
|
4176
|
-
const U =
|
|
4176
|
+
const U = Nl(e, N, T, u), I = hl(U), P = gl(e, x, I);
|
|
4177
4177
|
let k = r ? r(P, c) : P;
|
|
4178
|
-
if (g && w(k) && (k =
|
|
4178
|
+
if (g && w(k) && (k = $a(k)), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
4179
4179
|
const W = {
|
|
4180
4180
|
timestamp: Date.now(),
|
|
4181
4181
|
key: w(c) ? c : me(y) ? y.key : "",
|
|
@@ -4183,21 +4183,21 @@ function as(e, ...t) {
|
|
|
4183
4183
|
format: w(y) ? y : me(y) ? y.source : "",
|
|
4184
4184
|
message: k
|
|
4185
4185
|
};
|
|
4186
|
-
W.meta = te({}, e.__meta, /* @__PURE__ */
|
|
4186
|
+
W.meta = te({}, e.__meta, /* @__PURE__ */ ol() || {}), Uc(W);
|
|
4187
4187
|
}
|
|
4188
4188
|
return k;
|
|
4189
4189
|
}
|
|
4190
|
-
function
|
|
4191
|
-
J(e.list) ? e.list = e.list.map((t) => w(t) ?
|
|
4192
|
-
w(e.named[t]) && (e.named[t] =
|
|
4190
|
+
function El(e) {
|
|
4191
|
+
J(e.list) ? e.list = e.list.map((t) => w(t) ? Br(t) : t) : B(e.named) && Object.keys(e.named).forEach((t) => {
|
|
4192
|
+
w(e.named[t]) && (e.named[t] = Br(e.named[t]));
|
|
4193
4193
|
});
|
|
4194
4194
|
}
|
|
4195
|
-
function
|
|
4195
|
+
function bo(e, t, n, r, s, o) {
|
|
4196
4196
|
const { messages: i, onWarn: a, messageResolver: c, localeFallbacker: u } = e, l = u(e, r, n);
|
|
4197
4197
|
let p = H(), g, A = null, E = n, b = null;
|
|
4198
4198
|
const S = "translate";
|
|
4199
4199
|
for (let m = 0; m < l.length; m++) {
|
|
4200
|
-
if (g = b = l[m], process.env.NODE_ENV !== "production" && n !== g && !
|
|
4200
|
+
if (g = b = l[m], process.env.NODE_ENV !== "production" && n !== g && !_o(n, g) && on(s, t) && a(Ke(le.FALLBACK_TO_TRANSLATE, {
|
|
4201
4201
|
key: t,
|
|
4202
4202
|
target: g
|
|
4203
4203
|
})), process.env.NODE_ENV !== "production" && n !== g) {
|
|
@@ -4224,7 +4224,7 @@ function Eo(e, t, n, r, s, o) {
|
|
|
4224
4224
|
}
|
|
4225
4225
|
if (w(A) || Ee(A) || me(A))
|
|
4226
4226
|
break;
|
|
4227
|
-
if (!
|
|
4227
|
+
if (!cl(g, l)) {
|
|
4228
4228
|
const C = ur(
|
|
4229
4229
|
e,
|
|
4230
4230
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
@@ -4239,7 +4239,7 @@ function Eo(e, t, n, r, s, o) {
|
|
|
4239
4239
|
}
|
|
4240
4240
|
return [A, g, p];
|
|
4241
4241
|
}
|
|
4242
|
-
function
|
|
4242
|
+
function yo(e, t, n, r, s, o) {
|
|
4243
4243
|
const { messageCompiler: i, warnHtmlMessage: a } = e;
|
|
4244
4244
|
if (me(r)) {
|
|
4245
4245
|
const g = r;
|
|
@@ -4251,7 +4251,7 @@ function go(e, t, n, r, s, o) {
|
|
|
4251
4251
|
}
|
|
4252
4252
|
let c = null, u, l;
|
|
4253
4253
|
process.env.NODE_ENV !== "production" && Re && (c = window.performance.now(), u = "intlify-message-compilation-start", l = "intlify-message-compilation-end", de && de(u));
|
|
4254
|
-
const p = i(r,
|
|
4254
|
+
const p = i(r, bl(e, n, s, r, a, o));
|
|
4255
4255
|
if (process.env.NODE_ENV !== "production" && Re) {
|
|
4256
4256
|
const g = window.performance.now(), A = e.__v_emitter;
|
|
4257
4257
|
A && c && A.emit("message-compilation", {
|
|
@@ -4263,7 +4263,7 @@ function go(e, t, n, r, s, o) {
|
|
|
4263
4263
|
}
|
|
4264
4264
|
return p.locale = n, p.key = t, p.source = r, p;
|
|
4265
4265
|
}
|
|
4266
|
-
function
|
|
4266
|
+
function gl(e, t, n) {
|
|
4267
4267
|
let r = null, s, o;
|
|
4268
4268
|
process.env.NODE_ENV !== "production" && Re && (r = window.performance.now(), s = "intlify-message-evaluation-start", o = "intlify-message-evaluation-end", de && de(s));
|
|
4269
4269
|
const i = t(n);
|
|
@@ -4285,14 +4285,14 @@ function Vn(...e) {
|
|
|
4285
4285
|
const o = ee(t) ? String(t) : (me(t), t);
|
|
4286
4286
|
return ee(n) ? s.plural = n : w(n) ? s.default = n : $(n) && !rn(n) ? s.named = n : J(n) && (s.list = n), ee(r) ? s.plural = r : w(r) ? s.default = r : $(r) && te(s, r), [o, s];
|
|
4287
4287
|
}
|
|
4288
|
-
function
|
|
4288
|
+
function bl(e, t, n, r, s, o) {
|
|
4289
4289
|
return {
|
|
4290
4290
|
locale: t,
|
|
4291
4291
|
key: n,
|
|
4292
4292
|
warnHtmlMessage: s,
|
|
4293
4293
|
onError: (i) => {
|
|
4294
4294
|
if (o && o(i), process.env.NODE_ENV !== "production") {
|
|
4295
|
-
const a =
|
|
4295
|
+
const a = yl(r), c = `Message compilation error: ${i.message}`, u = i.location && a && Wa(a, i.location.start.offset, i.location.end.offset), l = e.__v_emitter;
|
|
4296
4296
|
l && a && l.emit("compile-error", {
|
|
4297
4297
|
message: a,
|
|
4298
4298
|
error: i.message,
|
|
@@ -4304,16 +4304,16 @@ ${u}` : c);
|
|
|
4304
4304
|
} else
|
|
4305
4305
|
throw i;
|
|
4306
4306
|
},
|
|
4307
|
-
onCacheKey: (i) =>
|
|
4307
|
+
onCacheKey: (i) => Ua(t, n, i)
|
|
4308
4308
|
};
|
|
4309
4309
|
}
|
|
4310
|
-
function
|
|
4310
|
+
function yl(e) {
|
|
4311
4311
|
if (w(e))
|
|
4312
4312
|
return e;
|
|
4313
4313
|
if (e.loc && e.loc.source)
|
|
4314
4314
|
return e.loc.source;
|
|
4315
4315
|
}
|
|
4316
|
-
function
|
|
4316
|
+
function Nl(e, t, n, r) {
|
|
4317
4317
|
const { modifiers: s, pluralRules: o, messageResolver: i, fallbackLocale: a, fallbackWarn: c, missingWarn: u, fallbackContext: l } = e, g = {
|
|
4318
4318
|
locale: t,
|
|
4319
4319
|
modifiers: s,
|
|
@@ -4321,7 +4321,7 @@ function yl(e, t, n, r) {
|
|
|
4321
4321
|
messages: (A, E) => {
|
|
4322
4322
|
let b = i(n, A);
|
|
4323
4323
|
if (b == null && (l || E)) {
|
|
4324
|
-
const [, , S] =
|
|
4324
|
+
const [, , S] = bo(
|
|
4325
4325
|
l || e,
|
|
4326
4326
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
4327
4327
|
A,
|
|
@@ -4334,7 +4334,7 @@ function yl(e, t, n, r) {
|
|
|
4334
4334
|
}
|
|
4335
4335
|
if (w(b) || Ee(b)) {
|
|
4336
4336
|
let S = !1;
|
|
4337
|
-
const N =
|
|
4337
|
+
const N = yo(e, A, t, b, A, () => {
|
|
4338
4338
|
S = !0;
|
|
4339
4339
|
});
|
|
4340
4340
|
return S ? is : N;
|
|
@@ -4343,14 +4343,14 @@ function yl(e, t, n, r) {
|
|
|
4343
4343
|
};
|
|
4344
4344
|
return e.processor && (g.processor = e.processor), r.list && (g.list = r.list), r.named && (g.named = r.named), ee(r.plural) && (g.pluralIndex = r.plural), g;
|
|
4345
4345
|
}
|
|
4346
|
-
|
|
4347
|
-
const
|
|
4348
|
-
function
|
|
4346
|
+
Nc();
|
|
4347
|
+
const Ol = "11.2.2";
|
|
4348
|
+
function Sl() {
|
|
4349
4349
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (He().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (He().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (He().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (He().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
4350
4350
|
}
|
|
4351
4351
|
const re = {
|
|
4352
4352
|
// composer module errors
|
|
4353
|
-
UNEXPECTED_RETURN_TYPE:
|
|
4353
|
+
UNEXPECTED_RETURN_TYPE: xc,
|
|
4354
4354
|
// 24
|
|
4355
4355
|
// legacy module errors
|
|
4356
4356
|
INVALID_ARGUMENT: 25,
|
|
@@ -4371,9 +4371,9 @@ const re = {
|
|
|
4371
4371
|
NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
|
|
4372
4372
|
};
|
|
4373
4373
|
function Et(e, ...t) {
|
|
4374
|
-
return
|
|
4374
|
+
return it(e, null, process.env.NODE_ENV !== "production" ? { messages: Tl, args: t } : void 0);
|
|
4375
4375
|
}
|
|
4376
|
-
const
|
|
4376
|
+
const Tl = {
|
|
4377
4377
|
[re.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
|
4378
4378
|
[re.INVALID_ARGUMENT]: "Invalid argument",
|
|
4379
4379
|
[re.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
|
|
@@ -4385,8 +4385,8 @@ const Sl = {
|
|
|
4385
4385
|
[re.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
|
|
4386
4386
|
[re.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
|
4387
4387
|
[re.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
|
|
4388
|
-
}, $n = /* @__PURE__ */ Pe("__translateVNode"),
|
|
4389
|
-
FALLBACK_TO_ROOT:
|
|
4388
|
+
}, $n = /* @__PURE__ */ Pe("__translateVNode"), Bn = /* @__PURE__ */ Pe("__datetimeParts"), jn = /* @__PURE__ */ Pe("__numberParts"), Hn = /* @__PURE__ */ Pe("__enableEmitter"), Wn = /* @__PURE__ */ Pe("__disableEmitter"), Ll = Pe("__setPluralRules"), No = /* @__PURE__ */ Pe("__injectWithOption"), qn = /* @__PURE__ */ Pe("__dispose"), Te = {
|
|
4389
|
+
FALLBACK_TO_ROOT: zc,
|
|
4390
4390
|
// 8
|
|
4391
4391
|
NOT_FOUND_PARENT_SCOPE: 9,
|
|
4392
4392
|
IGNORE_OBJ_FLATTEN: 10,
|
|
@@ -4400,7 +4400,7 @@ const Sl = {
|
|
|
4400
4400
|
DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE: 12,
|
|
4401
4401
|
// duplicate `useI18n` calling
|
|
4402
4402
|
DUPLICATE_USE_I18N_CALLING: 13
|
|
4403
|
-
},
|
|
4403
|
+
}, Al = {
|
|
4404
4404
|
[Te.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
|
|
4405
4405
|
[Te.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
|
|
4406
4406
|
[Te.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
|
|
@@ -4416,22 +4416,22 @@ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guid
|
|
|
4416
4416
|
[Te.DUPLICATE_USE_I18N_CALLING]: "Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."
|
|
4417
4417
|
};
|
|
4418
4418
|
function Gt(e, ...t) {
|
|
4419
|
-
return nn(
|
|
4419
|
+
return nn(Al[e], ...t);
|
|
4420
4420
|
}
|
|
4421
4421
|
function gt(e) {
|
|
4422
|
-
if (!
|
|
4422
|
+
if (!B(e) || Ee(e))
|
|
4423
4423
|
return e;
|
|
4424
4424
|
for (const t in e)
|
|
4425
4425
|
if (he(e, t))
|
|
4426
4426
|
if (!t.includes("."))
|
|
4427
|
-
|
|
4427
|
+
B(e[t]) && gt(e[t]);
|
|
4428
4428
|
else {
|
|
4429
4429
|
const n = t.split("."), r = n.length - 1;
|
|
4430
4430
|
let s = e, o = !1;
|
|
4431
4431
|
for (let i = 0; i < r; i++) {
|
|
4432
4432
|
if (n[i] === "__proto__")
|
|
4433
4433
|
throw new Error(`unsafe key: ${n[i]}`);
|
|
4434
|
-
if (n[i] in s || (s[n[i]] = H()), !
|
|
4434
|
+
if (n[i] in s || (s[n[i]] = H()), !B(s[n[i]])) {
|
|
4435
4435
|
process.env.NODE_ENV !== "production" && Le(Gt(Te.IGNORE_OBJ_FLATTEN, {
|
|
4436
4436
|
key: n[i]
|
|
4437
4437
|
})), o = !0;
|
|
@@ -4439,14 +4439,14 @@ function gt(e) {
|
|
|
4439
4439
|
}
|
|
4440
4440
|
s = s[n[i]];
|
|
4441
4441
|
}
|
|
4442
|
-
if (o || (Ee(s) ?
|
|
4442
|
+
if (o || (Ee(s) ? io.includes(n[r]) || delete e[t] : (s[n[r]] = e[t], delete e[t])), !Ee(s)) {
|
|
4443
4443
|
const i = s[n[r]];
|
|
4444
|
-
|
|
4444
|
+
B(i) && gt(i);
|
|
4445
4445
|
}
|
|
4446
4446
|
}
|
|
4447
4447
|
return e;
|
|
4448
4448
|
}
|
|
4449
|
-
function
|
|
4449
|
+
function Oo(e, t) {
|
|
4450
4450
|
const { messages: n, __i18n: r, messageResolver: s, flatJson: o } = t, i = $(n) ? n : J(r) ? H() : { [e]: H() };
|
|
4451
4451
|
if (J(r) && r.forEach((a) => {
|
|
4452
4452
|
if ("locale" in a && "resource" in a) {
|
|
@@ -4459,12 +4459,12 @@ function yo(e, t) {
|
|
|
4459
4459
|
he(i, a) && gt(i[a]);
|
|
4460
4460
|
return i;
|
|
4461
4461
|
}
|
|
4462
|
-
function
|
|
4462
|
+
function So(e) {
|
|
4463
4463
|
return e.type;
|
|
4464
4464
|
}
|
|
4465
|
-
function
|
|
4466
|
-
let r =
|
|
4467
|
-
"__i18nGlobal" in n && (r =
|
|
4465
|
+
function vl(e, t, n) {
|
|
4466
|
+
let r = B(t.messages) ? t.messages : H();
|
|
4467
|
+
"__i18nGlobal" in n && (r = Oo(e.locale.value, {
|
|
4468
4468
|
messages: r,
|
|
4469
4469
|
__i18n: n.__i18nGlobal
|
|
4470
4470
|
}));
|
|
@@ -4473,13 +4473,13 @@ function Al(e, t, n) {
|
|
|
4473
4473
|
e.mergeLocaleMessage(o, r[o]);
|
|
4474
4474
|
});
|
|
4475
4475
|
{
|
|
4476
|
-
if (
|
|
4476
|
+
if (B(t.datetimeFormats)) {
|
|
4477
4477
|
const o = Object.keys(t.datetimeFormats);
|
|
4478
4478
|
o.length && o.forEach((i) => {
|
|
4479
4479
|
e.mergeDateTimeFormat(i, t.datetimeFormats[i]);
|
|
4480
4480
|
});
|
|
4481
4481
|
}
|
|
4482
|
-
if (
|
|
4482
|
+
if (B(t.numberFormats)) {
|
|
4483
4483
|
const o = Object.keys(t.numberFormats);
|
|
4484
4484
|
o.length && o.forEach((i) => {
|
|
4485
4485
|
e.mergeNumberFormat(i, t.numberFormats[i]);
|
|
@@ -4488,23 +4488,23 @@ function Al(e, t, n) {
|
|
|
4488
4488
|
}
|
|
4489
4489
|
}
|
|
4490
4490
|
function cs(e) {
|
|
4491
|
-
return
|
|
4491
|
+
return Xo(Jo, null, e, 0);
|
|
4492
4492
|
}
|
|
4493
4493
|
function fr() {
|
|
4494
4494
|
return "currentInstance" in _n ? _n["currentInstance"] : _n.getCurrentInstance();
|
|
4495
4495
|
}
|
|
4496
|
-
const ls = "__INTLIFY_META__", us = () => [],
|
|
4496
|
+
const ls = "__INTLIFY_META__", us = () => [], Cl = () => !1;
|
|
4497
4497
|
let fs = 0;
|
|
4498
4498
|
function ds(e) {
|
|
4499
4499
|
return ((t, n, r, s) => e(n, r, fr() || void 0, s));
|
|
4500
4500
|
}
|
|
4501
|
-
const
|
|
4501
|
+
const Rl = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
4502
4502
|
const e = fr();
|
|
4503
4503
|
let t = null;
|
|
4504
|
-
return e && (t =
|
|
4504
|
+
return e && (t = So(e)[ls]) ? { [ls]: t } : null;
|
|
4505
4505
|
};
|
|
4506
|
-
function
|
|
4507
|
-
const { __root: t, __injectWithOption: n } = e, r = t === void 0, s = e.flatJson, o = Re ?
|
|
4506
|
+
function Il(e = {}) {
|
|
4507
|
+
const { __root: t, __injectWithOption: n } = e, r = t === void 0, s = e.flatJson, o = Re ? et : Ko;
|
|
4508
4508
|
let i = X(e.inheritLocale) ? e.inheritLocale : !0;
|
|
4509
4509
|
const a = o(
|
|
4510
4510
|
// prettier-ignore
|
|
@@ -4512,14 +4512,14 @@ function Rl(e = {}) {
|
|
|
4512
4512
|
), c = o(
|
|
4513
4513
|
// prettier-ignore
|
|
4514
4514
|
t && i ? t.fallbackLocale.value : w(e.fallbackLocale) || J(e.fallbackLocale) || $(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a.value
|
|
4515
|
-
), u = o(
|
|
4515
|
+
), u = o(Oo(a.value, e)), l = o($(e.datetimeFormats) ? e.datetimeFormats : { [a.value]: {} }), p = o($(e.numberFormats) ? e.numberFormats : { [a.value]: {} });
|
|
4516
4516
|
let g = t ? t.missingWarn : X(e.missingWarn) || Ht(e.missingWarn) ? e.missingWarn : !0, A = t ? t.fallbackWarn : X(e.fallbackWarn) || Ht(e.fallbackWarn) ? e.fallbackWarn : !0, E = t ? t.fallbackRoot : X(e.fallbackRoot) ? e.fallbackRoot : !0, b = !!e.fallbackFormat, S = G(e.missing) ? e.missing : null, m = G(e.missing) ? ds(e.missing) : null, N = G(e.postTranslation) ? e.postTranslation : null, T = t ? t.warnHtmlMessage : X(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, y = !!e.escapeParameter;
|
|
4517
4517
|
const C = t ? t.modifiers : $(e.modifiers) ? e.modifiers : {};
|
|
4518
4518
|
let R = e.pluralRules || t && t.pluralRules, _;
|
|
4519
4519
|
_ = (() => {
|
|
4520
4520
|
r && Qr(null);
|
|
4521
4521
|
const O = {
|
|
4522
|
-
version:
|
|
4522
|
+
version: Ol,
|
|
4523
4523
|
locale: a.value,
|
|
4524
4524
|
fallbackLocale: c.value,
|
|
4525
4525
|
messages: u.value,
|
|
@@ -4538,9 +4538,9 @@ function Rl(e = {}) {
|
|
|
4538
4538
|
__meta: { framework: "vue" }
|
|
4539
4539
|
};
|
|
4540
4540
|
O.datetimeFormats = l.value, O.numberFormats = p.value, O.__datetimeFormatters = $(_) ? _.__datetimeFormatters : void 0, O.__numberFormatters = $(_) ? _.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (O.__v_emitter = $(_) ? _.__v_emitter : void 0);
|
|
4541
|
-
const v =
|
|
4541
|
+
const v = al(O);
|
|
4542
4542
|
return r && Qr(v), v;
|
|
4543
|
-
})(),
|
|
4543
|
+
})(), ft(_, a.value, c.value);
|
|
4544
4544
|
function U() {
|
|
4545
4545
|
return [
|
|
4546
4546
|
a.value,
|
|
@@ -4558,7 +4558,7 @@ function Rl(e = {}) {
|
|
|
4558
4558
|
}), P = ke({
|
|
4559
4559
|
get: () => c.value,
|
|
4560
4560
|
set: (O) => {
|
|
4561
|
-
_.fallbackLocale = O, c.value = O,
|
|
4561
|
+
_.fallbackLocale = O, c.value = O, ft(_, a.value, O);
|
|
4562
4562
|
}
|
|
4563
4563
|
}), k = ke(() => u.value), W = /* @__PURE__ */ ke(() => l.value), ne = /* @__PURE__ */ ke(() => p.value);
|
|
4564
4564
|
function be() {
|
|
@@ -4576,27 +4576,27 @@ function Rl(e = {}) {
|
|
|
4576
4576
|
function Q(O, v) {
|
|
4577
4577
|
return O !== "translate" || !v.resolvedMessage;
|
|
4578
4578
|
}
|
|
4579
|
-
const _e = (O, v,
|
|
4579
|
+
const _e = (O, v, j, K, Ve, Lt) => {
|
|
4580
4580
|
U();
|
|
4581
4581
|
let Je;
|
|
4582
4582
|
try {
|
|
4583
|
-
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (_.fallbackContext = t ?
|
|
4583
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (_.fallbackContext = t ? il() : void 0), Je = O(_);
|
|
4584
4584
|
} finally {
|
|
4585
4585
|
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (_.fallbackContext = void 0);
|
|
4586
4586
|
}
|
|
4587
|
-
if (
|
|
4588
|
-
ee(Je) && Je === sn ||
|
|
4589
|
-
const [$e,
|
|
4590
|
-
if (process.env.NODE_ENV !== "production" && t && w($e) && Q(
|
|
4587
|
+
if (j !== "translate exists" && // for not `te` (e.g `t`)
|
|
4588
|
+
ee(Je) && Je === sn || j === "translate exists" && !Je) {
|
|
4589
|
+
const [$e, wo] = v();
|
|
4590
|
+
if (process.env.NODE_ENV !== "production" && t && w($e) && Q(j, wo) && (E && (on(A, $e) || mo(g, $e)) && Le(Gt(Te.FALLBACK_TO_ROOT, {
|
|
4591
4591
|
key: $e,
|
|
4592
|
-
type:
|
|
4592
|
+
type: j
|
|
4593
4593
|
})), process.env.NODE_ENV !== "production")) {
|
|
4594
4594
|
const { __v_emitter: mr } = _;
|
|
4595
4595
|
mr && E && mr.emit("fallback", {
|
|
4596
|
-
type:
|
|
4596
|
+
type: j,
|
|
4597
4597
|
key: $e,
|
|
4598
4598
|
to: "global",
|
|
4599
|
-
groupId: `${
|
|
4599
|
+
groupId: `${j}:${$e}`
|
|
4600
4600
|
});
|
|
4601
4601
|
}
|
|
4602
4602
|
return t && E ? K(t) : Ve($e);
|
|
@@ -4610,10 +4610,10 @@ function Rl(e = {}) {
|
|
|
4610
4610
|
return _e((v) => Reflect.apply(as, null, [v, ...O]), () => Vn(...O), "translate", (v) => Reflect.apply(v.t, v, [...O]), (v) => v, (v) => w(v));
|
|
4611
4611
|
}
|
|
4612
4612
|
function ye(...O) {
|
|
4613
|
-
const [v,
|
|
4614
|
-
if (K && !
|
|
4613
|
+
const [v, j, K] = O;
|
|
4614
|
+
if (K && !B(K))
|
|
4615
4615
|
throw Et(re.INVALID_ARGUMENT);
|
|
4616
|
-
return ce(v,
|
|
4616
|
+
return ce(v, j, te({ resolvedMessage: !0 }, K || {}));
|
|
4617
4617
|
}
|
|
4618
4618
|
function Me(...O) {
|
|
4619
4619
|
return _e((v) => Reflect.apply(ts, null, [v, ...O]), () => Mn(...O), "datetime format", (v) => Reflect.apply(v.d, v, [...O]), () => qt, (v) => w(v) || J(v));
|
|
@@ -4631,21 +4631,21 @@ function Rl(e = {}) {
|
|
|
4631
4631
|
};
|
|
4632
4632
|
function St(...O) {
|
|
4633
4633
|
return _e((v) => {
|
|
4634
|
-
let
|
|
4634
|
+
let j;
|
|
4635
4635
|
const K = v;
|
|
4636
4636
|
try {
|
|
4637
|
-
K.processor = un,
|
|
4637
|
+
K.processor = un, j = Reflect.apply(as, null, [K, ...O]);
|
|
4638
4638
|
} finally {
|
|
4639
4639
|
K.processor = null;
|
|
4640
4640
|
}
|
|
4641
|
-
return
|
|
4641
|
+
return j;
|
|
4642
4642
|
}, () => Vn(...O), "translate", (v) => v[$n](...O), (v) => [cs(v)], (v) => J(v));
|
|
4643
4643
|
}
|
|
4644
4644
|
function fn(...O) {
|
|
4645
|
-
return _e((v) => Reflect.apply(rs, null, [v, ...O]), () => xn(...O), "number format", (v) => v[
|
|
4645
|
+
return _e((v) => Reflect.apply(rs, null, [v, ...O]), () => xn(...O), "number format", (v) => v[jn](...O), us, (v) => w(v) || J(v));
|
|
4646
4646
|
}
|
|
4647
4647
|
function Tt(...O) {
|
|
4648
|
-
return _e((v) => Reflect.apply(ts, null, [v, ...O]), () => Mn(...O), "datetime format", (v) => v[
|
|
4648
|
+
return _e((v) => Reflect.apply(ts, null, [v, ...O]), () => Mn(...O), "datetime format", (v) => v[Bn](...O), us, (v) => w(v) || J(v));
|
|
4649
4649
|
}
|
|
4650
4650
|
function dn(O) {
|
|
4651
4651
|
R = O, _.pluralRules = R;
|
|
@@ -4654,15 +4654,15 @@ function Rl(e = {}) {
|
|
|
4654
4654
|
return _e(() => {
|
|
4655
4655
|
if (!O)
|
|
4656
4656
|
return !1;
|
|
4657
|
-
const
|
|
4657
|
+
const j = w(v) ? v : a.value, K = xe(j), Ve = _.messageResolver(K, O);
|
|
4658
4658
|
return Ee(Ve) || me(Ve) || w(Ve);
|
|
4659
|
-
}, () => [O], "translate exists", (
|
|
4659
|
+
}, () => [O], "translate exists", (j) => Reflect.apply(j.te, j, [O, v]), Cl, (j) => X(j));
|
|
4660
4660
|
}
|
|
4661
|
-
function
|
|
4661
|
+
function at(O) {
|
|
4662
4662
|
let v = null;
|
|
4663
|
-
const
|
|
4664
|
-
for (let K = 0; K <
|
|
4665
|
-
const Ve = u.value[
|
|
4663
|
+
const j = ao(_, c.value, a.value);
|
|
4664
|
+
for (let K = 0; K < j.length; K++) {
|
|
4665
|
+
const Ve = u.value[j[K]] || {}, Lt = _.messageResolver(Ve, O);
|
|
4666
4666
|
if (Lt != null) {
|
|
4667
4667
|
v = Lt;
|
|
4668
4668
|
break;
|
|
@@ -4670,29 +4670,29 @@ function Rl(e = {}) {
|
|
|
4670
4670
|
}
|
|
4671
4671
|
return v;
|
|
4672
4672
|
}
|
|
4673
|
-
function
|
|
4674
|
-
const v =
|
|
4673
|
+
function ct(O) {
|
|
4674
|
+
const v = at(O);
|
|
4675
4675
|
return v ?? (t ? t.tm(O) || {} : {});
|
|
4676
4676
|
}
|
|
4677
4677
|
function xe(O) {
|
|
4678
4678
|
return u.value[O] || {};
|
|
4679
4679
|
}
|
|
4680
|
-
function
|
|
4680
|
+
function lt(O, v) {
|
|
4681
4681
|
if (s) {
|
|
4682
|
-
const
|
|
4683
|
-
for (const K in
|
|
4684
|
-
he(
|
|
4685
|
-
v =
|
|
4682
|
+
const j = { [O]: v };
|
|
4683
|
+
for (const K in j)
|
|
4684
|
+
he(j, K) && gt(j[K]);
|
|
4685
|
+
v = j[O];
|
|
4686
4686
|
}
|
|
4687
4687
|
u.value[O] = v, _.messages = u.value;
|
|
4688
4688
|
}
|
|
4689
4689
|
function mn(O, v) {
|
|
4690
4690
|
u.value[O] = u.value[O] || {};
|
|
4691
|
-
const
|
|
4691
|
+
const j = { [O]: v };
|
|
4692
4692
|
if (s)
|
|
4693
|
-
for (const K in
|
|
4694
|
-
he(
|
|
4695
|
-
v =
|
|
4693
|
+
for (const K in j)
|
|
4694
|
+
he(j, K) && gt(j[K]);
|
|
4695
|
+
v = j[O], kt(v, u.value[O]), _.messages = u.value;
|
|
4696
4696
|
}
|
|
4697
4697
|
function f(O) {
|
|
4698
4698
|
return l.value[O] || {};
|
|
@@ -4713,9 +4713,9 @@ function Rl(e = {}) {
|
|
|
4713
4713
|
p.value[O] = te(p.value[O] || {}, v), _.numberFormats = p.value, ss(_, O, v);
|
|
4714
4714
|
}
|
|
4715
4715
|
fs++, t && Re && (vn(t.locale, (O) => {
|
|
4716
|
-
i && (a.value = O, _.locale = O,
|
|
4716
|
+
i && (a.value = O, _.locale = O, ft(_, a.value, c.value));
|
|
4717
4717
|
}), vn(t.fallbackLocale, (O) => {
|
|
4718
|
-
i && (c.value = O, _.fallbackLocale = O,
|
|
4718
|
+
i && (c.value = O, _.fallbackLocale = O, ft(_, a.value, c.value));
|
|
4719
4719
|
}));
|
|
4720
4720
|
const V = {
|
|
4721
4721
|
id: fs,
|
|
@@ -4725,7 +4725,7 @@ function Rl(e = {}) {
|
|
|
4725
4725
|
return i;
|
|
4726
4726
|
},
|
|
4727
4727
|
set inheritLocale(O) {
|
|
4728
|
-
i = O, O && t && (a.value = t.locale.value, c.value = t.fallbackLocale.value,
|
|
4728
|
+
i = O, O && t && (a.value = t.locale.value, c.value = t.fallbackLocale.value, ft(_, a.value, c.value));
|
|
4729
4729
|
},
|
|
4730
4730
|
get availableLocales() {
|
|
4731
4731
|
return Object.keys(u.value).sort();
|
|
@@ -4778,15 +4778,15 @@ function Rl(e = {}) {
|
|
|
4778
4778
|
},
|
|
4779
4779
|
t: ce,
|
|
4780
4780
|
getLocaleMessage: xe,
|
|
4781
|
-
setLocaleMessage:
|
|
4781
|
+
setLocaleMessage: lt,
|
|
4782
4782
|
mergeLocaleMessage: mn,
|
|
4783
4783
|
getPostTranslationHandler: be,
|
|
4784
4784
|
setPostTranslationHandler: se,
|
|
4785
4785
|
getMissingHandler: we,
|
|
4786
4786
|
setMissingHandler: Z,
|
|
4787
|
-
[
|
|
4787
|
+
[Ll]: dn
|
|
4788
4788
|
};
|
|
4789
|
-
return V.datetimeFormats = W, V.numberFormats = ne, V.rt = ye, V.te = pn, V.tm =
|
|
4789
|
+
return V.datetimeFormats = W, V.numberFormats = ne, V.rt = ye, V.te = pn, V.tm = ct, V.d = Me, V.n = De, V.getDateTimeFormat = f, V.setDateTimeFormat = d, V.mergeDateTimeFormat = L, V.getNumberFormat = D, V.setNumberFormat = q, V.mergeNumberFormat = Y, V[No] = n, V[$n] = St, V[Bn] = Tt, V[jn] = fn, process.env.NODE_ENV !== "production" && (V[Hn] = (O) => {
|
|
4790
4790
|
_.__v_emitter = O;
|
|
4791
4791
|
}, V[Wn] = () => {
|
|
4792
4792
|
_.__v_emitter = void 0;
|
|
@@ -4812,7 +4812,7 @@ const dr = {
|
|
|
4812
4812
|
type: Object
|
|
4813
4813
|
}
|
|
4814
4814
|
};
|
|
4815
|
-
function
|
|
4815
|
+
function Pl({ slots: e }, t) {
|
|
4816
4816
|
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, s) => [
|
|
4817
4817
|
...r,
|
|
4818
4818
|
// prettier-ignore
|
|
@@ -4822,7 +4822,7 @@ function Il({ slots: e }, t) {
|
|
|
4822
4822
|
return s && (n[r] = s()), n;
|
|
4823
4823
|
}, H());
|
|
4824
4824
|
}
|
|
4825
|
-
function
|
|
4825
|
+
function To() {
|
|
4826
4826
|
return Mt;
|
|
4827
4827
|
}
|
|
4828
4828
|
te({
|
|
@@ -4835,23 +4835,23 @@ te({
|
|
|
4835
4835
|
validator: (e) => ee(e) || !isNaN(e)
|
|
4836
4836
|
}
|
|
4837
4837
|
}, dr);
|
|
4838
|
-
function
|
|
4838
|
+
function wl(e) {
|
|
4839
4839
|
return J(e) && !w(e[0]);
|
|
4840
4840
|
}
|
|
4841
|
-
function
|
|
4841
|
+
function Lo(e, t, n, r) {
|
|
4842
4842
|
const { slots: s, attrs: o } = t;
|
|
4843
4843
|
return () => {
|
|
4844
4844
|
const i = { part: !0 };
|
|
4845
4845
|
let a = H();
|
|
4846
|
-
e.locale && (i.locale = e.locale), w(e.format) ? i.key = e.format :
|
|
4846
|
+
e.locale && (i.locale = e.locale), w(e.format) ? i.key = e.format : B(e.format) && (w(e.format.key) && (i.key = e.format.key), a = Object.keys(e.format).reduce((g, A) => n.includes(A) ? te(H(), g, { [A]: e.format[A] }) : g, H()));
|
|
4847
4847
|
const c = r(e.value, i, a);
|
|
4848
4848
|
let u = [i.key];
|
|
4849
4849
|
J(c) ? u = c.map((g, A) => {
|
|
4850
4850
|
const E = s[g.type], b = E ? E({ [g.type]: g.value, index: A, parts: c }) : [g.value];
|
|
4851
|
-
return
|
|
4851
|
+
return wl(b) && (b[0].key = `${g.type}-${A}`), b;
|
|
4852
4852
|
}) : w(c) && (u = [c]);
|
|
4853
|
-
const l = te(H(), o), p = w(e.tag) ||
|
|
4854
|
-
return
|
|
4853
|
+
const l = te(H(), o), p = w(e.tag) || B(e.tag) ? e.tag : To();
|
|
4854
|
+
return Ss(p, l, u);
|
|
4855
4855
|
};
|
|
4856
4856
|
}
|
|
4857
4857
|
te({
|
|
@@ -4863,52 +4863,52 @@ te({
|
|
|
4863
4863
|
type: [String, Object]
|
|
4864
4864
|
}
|
|
4865
4865
|
}, dr);
|
|
4866
|
-
const
|
|
4866
|
+
const Dl = /* @__PURE__ */ Pe("global-vue-i18n");
|
|
4867
4867
|
function an(e = {}) {
|
|
4868
4868
|
const t = fr();
|
|
4869
4869
|
if (t == null)
|
|
4870
4870
|
throw Et(re.MUST_BE_CALL_SETUP_TOP);
|
|
4871
4871
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
4872
4872
|
throw Et(re.NOT_INSTALLED);
|
|
4873
|
-
const n =
|
|
4873
|
+
const n = kl(t), r = Ul(n), s = So(t), o = Fl(e, s);
|
|
4874
4874
|
if (o === "global")
|
|
4875
|
-
return
|
|
4875
|
+
return vl(r, e, s), r;
|
|
4876
4876
|
if (o === "parent") {
|
|
4877
|
-
let c =
|
|
4877
|
+
let c = Ml(n, t, e.__useComponent);
|
|
4878
4878
|
return c == null && (process.env.NODE_ENV !== "production" && Le(Gt(Te.NOT_FOUND_PARENT_SCOPE)), c = r), c;
|
|
4879
4879
|
}
|
|
4880
4880
|
const i = n;
|
|
4881
4881
|
let a = i.__getInstance(t);
|
|
4882
4882
|
if (a == null) {
|
|
4883
4883
|
const c = te({}, e);
|
|
4884
|
-
"__i18n" in s && (c.__i18n = s.__i18n), r && (c.__root = r), a =
|
|
4884
|
+
"__i18n" in s && (c.__i18n = s.__i18n), r && (c.__root = r), a = Il(c), i.__composerExtend && (a[qn] = i.__composerExtend(a)), Vl(i, t, a), i.__setInstance(t, a);
|
|
4885
4885
|
} else
|
|
4886
4886
|
process.env.NODE_ENV !== "production" && o === "local" && Le(Gt(Te.DUPLICATE_USE_I18N_CALLING));
|
|
4887
4887
|
return a;
|
|
4888
4888
|
}
|
|
4889
|
-
function
|
|
4890
|
-
const t = Ut(e.isCE ?
|
|
4889
|
+
function kl(e) {
|
|
4890
|
+
const t = Ut(e.isCE ? Dl : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
4891
4891
|
if (!t)
|
|
4892
4892
|
throw Et(e.isCE ? re.NOT_INSTALLED_WITH_PROVIDE : re.UNEXPECTED_ERROR);
|
|
4893
4893
|
return t;
|
|
4894
4894
|
}
|
|
4895
|
-
function
|
|
4895
|
+
function Fl(e, t) {
|
|
4896
4896
|
return rn(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
4897
4897
|
}
|
|
4898
|
-
function
|
|
4898
|
+
function Ul(e) {
|
|
4899
4899
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
4900
4900
|
}
|
|
4901
|
-
function
|
|
4901
|
+
function Ml(e, t, n = !1) {
|
|
4902
4902
|
let r = null;
|
|
4903
4903
|
const s = t.root;
|
|
4904
|
-
let o =
|
|
4904
|
+
let o = xl(t, n);
|
|
4905
4905
|
for (; o != null; ) {
|
|
4906
4906
|
const i = e;
|
|
4907
4907
|
if (e.mode === "composition")
|
|
4908
4908
|
r = i.__getInstance(o);
|
|
4909
4909
|
else if (__VUE_I18N_LEGACY_API__) {
|
|
4910
4910
|
const a = i.__getInstance(o);
|
|
4911
|
-
a != null && (r = a.__composer, n && r && !r[
|
|
4911
|
+
a != null && (r = a.__composer, n && r && !r[No] && (r = null));
|
|
4912
4912
|
}
|
|
4913
4913
|
if (r != null || s === o)
|
|
4914
4914
|
break;
|
|
@@ -4916,18 +4916,18 @@ function Ul(e, t, n = !1) {
|
|
|
4916
4916
|
}
|
|
4917
4917
|
return r;
|
|
4918
4918
|
}
|
|
4919
|
-
function
|
|
4919
|
+
function xl(e, t = !1) {
|
|
4920
4920
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
4921
4921
|
}
|
|
4922
|
-
function
|
|
4922
|
+
function Vl(e, t, n) {
|
|
4923
4923
|
let r = null;
|
|
4924
|
-
|
|
4924
|
+
Ns(() => {
|
|
4925
4925
|
if (process.env.NODE_ENV !== "production") {
|
|
4926
|
-
t.__VUE_I18N__ = n, r =
|
|
4926
|
+
t.__VUE_I18N__ = n, r = qa();
|
|
4927
4927
|
const s = n;
|
|
4928
4928
|
s[Hn] && s[Hn](r), r.on("*", ps);
|
|
4929
4929
|
}
|
|
4930
|
-
}, t),
|
|
4930
|
+
}, t), Os(() => {
|
|
4931
4931
|
const s = n;
|
|
4932
4932
|
process.env.NODE_ENV !== "production" && (r && r.off("*", ps), s[Wn] && s[Wn](), delete t.__VUE_I18N__), e.__deleteInstance(t);
|
|
4933
4933
|
const o = s[qn];
|
|
@@ -4943,17 +4943,17 @@ te({
|
|
|
4943
4943
|
type: [String, Object]
|
|
4944
4944
|
}
|
|
4945
4945
|
}, dr);
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
|
|
4946
|
+
Sl();
|
|
4947
|
+
tl(Dc);
|
|
4948
|
+
nl(Jc);
|
|
4949
|
+
rl(ao);
|
|
4950
4950
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
4951
4951
|
const e = He();
|
|
4952
|
-
e.__INTLIFY__ = !0,
|
|
4952
|
+
e.__INTLIFY__ = !0, kc(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
4953
4953
|
}
|
|
4954
4954
|
process.env.NODE_ENV;
|
|
4955
4955
|
let Yt = null;
|
|
4956
|
-
function
|
|
4956
|
+
function lf(e) {
|
|
4957
4957
|
if (Yt !== null) {
|
|
4958
4958
|
console.warn(
|
|
4959
4959
|
"[LinID CoreLib] I18n has already been initialized. Re-initialization is ignored."
|
|
@@ -4962,17 +4962,17 @@ function cf(e) {
|
|
|
4962
4962
|
}
|
|
4963
4963
|
Yt = e;
|
|
4964
4964
|
}
|
|
4965
|
-
function
|
|
4965
|
+
function $l() {
|
|
4966
4966
|
if (Yt === null)
|
|
4967
4967
|
throw new Error(
|
|
4968
4968
|
"[LinID CoreLib] I18n is not initialized. Call setI18nInstance() first."
|
|
4969
4969
|
);
|
|
4970
4970
|
return Yt;
|
|
4971
4971
|
}
|
|
4972
|
-
function
|
|
4972
|
+
function Bl(e) {
|
|
4973
4973
|
const { t, te: n, tm: r } = an({
|
|
4974
4974
|
useScope: "global",
|
|
4975
|
-
__i18n:
|
|
4975
|
+
__i18n: $l().global
|
|
4976
4976
|
});
|
|
4977
4977
|
function s(...c) {
|
|
4978
4978
|
const [u, l, p] = c;
|
|
@@ -4998,16 +4998,16 @@ const jl = /* @__PURE__ */ new Set([
|
|
|
4998
4998
|
xr.BadRequest,
|
|
4999
4999
|
xr.NotFound
|
|
5000
5000
|
]);
|
|
5001
|
-
function
|
|
5001
|
+
function Hl(e) {
|
|
5002
5002
|
return z.isAxiosError(e) && e.response?.status != null && jl.has(e.response.status);
|
|
5003
5003
|
}
|
|
5004
|
-
function
|
|
5005
|
-
const { t: n } =
|
|
5004
|
+
function Wl(e, t) {
|
|
5005
|
+
const { t: n } = Bl(`${e}.fields.${t}`);
|
|
5006
5006
|
async function r(l) {
|
|
5007
5007
|
try {
|
|
5008
|
-
return await
|
|
5008
|
+
return await Da(e, t, l), !0;
|
|
5009
5009
|
} catch (p) {
|
|
5010
|
-
return
|
|
5010
|
+
return Hl(p) ? p.response.data.error : n("validation.unknownError");
|
|
5011
5011
|
}
|
|
5012
5012
|
}
|
|
5013
5013
|
function s(l) {
|
|
@@ -5081,13 +5081,13 @@ function Xn(e, t, n) {
|
|
|
5081
5081
|
function Ce(e) {
|
|
5082
5082
|
return typeof e == "function";
|
|
5083
5083
|
}
|
|
5084
|
-
function
|
|
5084
|
+
function Ao(e) {
|
|
5085
5085
|
var t = function(r) {
|
|
5086
5086
|
Error.call(r), r.stack = new Error().stack;
|
|
5087
5087
|
}, n = e(t);
|
|
5088
5088
|
return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n;
|
|
5089
5089
|
}
|
|
5090
|
-
var Ln =
|
|
5090
|
+
var Ln = Ao(function(e) {
|
|
5091
5091
|
return function(n) {
|
|
5092
5092
|
e(this), this.message = n ? n.length + ` errors occurred during unsubscription:
|
|
5093
5093
|
` + n.map(function(r, s) {
|
|
@@ -5190,16 +5190,16 @@ var ln = (function() {
|
|
|
5190
5190
|
var t = new e();
|
|
5191
5191
|
return t.closed = !0, t;
|
|
5192
5192
|
})(), e;
|
|
5193
|
-
})(),
|
|
5194
|
-
function
|
|
5193
|
+
})(), vo = ln.EMPTY;
|
|
5194
|
+
function Co(e) {
|
|
5195
5195
|
return e instanceof ln || e && "closed" in e && Ce(e.remove) && Ce(e.add) && Ce(e.unsubscribe);
|
|
5196
5196
|
}
|
|
5197
5197
|
function ms(e) {
|
|
5198
5198
|
Ce(e) ? e() : e.unsubscribe();
|
|
5199
5199
|
}
|
|
5200
|
-
var
|
|
5200
|
+
var ql = {
|
|
5201
5201
|
Promise: void 0
|
|
5202
|
-
},
|
|
5202
|
+
}, Gl = {
|
|
5203
5203
|
setTimeout: function(e, t) {
|
|
5204
5204
|
for (var n = [], r = 2; r < arguments.length; r++)
|
|
5205
5205
|
n[r - 2] = arguments[r];
|
|
@@ -5210,8 +5210,8 @@ var Wl = {
|
|
|
5210
5210
|
},
|
|
5211
5211
|
delegate: void 0
|
|
5212
5212
|
};
|
|
5213
|
-
function
|
|
5214
|
-
|
|
5213
|
+
function Yl(e) {
|
|
5214
|
+
Gl.setTimeout(function() {
|
|
5215
5215
|
throw e;
|
|
5216
5216
|
});
|
|
5217
5217
|
}
|
|
@@ -5220,11 +5220,11 @@ function _s() {
|
|
|
5220
5220
|
function Ft(e) {
|
|
5221
5221
|
e();
|
|
5222
5222
|
}
|
|
5223
|
-
var
|
|
5223
|
+
var Ro = (function(e) {
|
|
5224
5224
|
cn(t, e);
|
|
5225
5225
|
function t(n) {
|
|
5226
5226
|
var r = e.call(this) || this;
|
|
5227
|
-
return r.isStopped = !1, n ? (r.destination = n,
|
|
5227
|
+
return r.isStopped = !1, n ? (r.destination = n, Co(n) && n.add(r)) : r.destination = Jl, r;
|
|
5228
5228
|
}
|
|
5229
5229
|
return t.create = function(n, r, s) {
|
|
5230
5230
|
return new zn(n, r, s);
|
|
@@ -5251,7 +5251,7 @@ var vo = (function(e) {
|
|
|
5251
5251
|
this.unsubscribe();
|
|
5252
5252
|
}
|
|
5253
5253
|
}, t;
|
|
5254
|
-
})(ln),
|
|
5254
|
+
})(ln), Kl = (function() {
|
|
5255
5255
|
function e(t) {
|
|
5256
5256
|
this.partialObserver = t;
|
|
5257
5257
|
}
|
|
@@ -5290,29 +5290,29 @@ var vo = (function(e) {
|
|
|
5290
5290
|
next: n ?? void 0,
|
|
5291
5291
|
error: r ?? void 0,
|
|
5292
5292
|
complete: s ?? void 0
|
|
5293
|
-
} : i = n, o.destination = new
|
|
5293
|
+
} : i = n, o.destination = new Kl(i), o;
|
|
5294
5294
|
}
|
|
5295
5295
|
return t;
|
|
5296
|
-
})(
|
|
5296
|
+
})(Ro);
|
|
5297
5297
|
function It(e) {
|
|
5298
|
-
|
|
5298
|
+
Yl(e);
|
|
5299
5299
|
}
|
|
5300
|
-
function
|
|
5300
|
+
function Xl(e) {
|
|
5301
5301
|
throw e;
|
|
5302
5302
|
}
|
|
5303
|
-
var
|
|
5303
|
+
var Jl = {
|
|
5304
5304
|
closed: !0,
|
|
5305
5305
|
next: _s,
|
|
5306
|
-
error:
|
|
5306
|
+
error: Xl,
|
|
5307
5307
|
complete: _s
|
|
5308
|
-
},
|
|
5308
|
+
}, zl = (function() {
|
|
5309
5309
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
5310
5310
|
})();
|
|
5311
|
-
function
|
|
5311
|
+
function Ql(e) {
|
|
5312
5312
|
return e;
|
|
5313
5313
|
}
|
|
5314
|
-
function
|
|
5315
|
-
return e.length === 0 ?
|
|
5314
|
+
function Zl(e) {
|
|
5315
|
+
return e.length === 0 ? Ql : e.length === 1 ? e[0] : function(n) {
|
|
5316
5316
|
return e.reduce(function(r, s) {
|
|
5317
5317
|
return s(r);
|
|
5318
5318
|
}, n);
|
|
@@ -5326,7 +5326,7 @@ var hs = (function() {
|
|
|
5326
5326
|
var n = new e();
|
|
5327
5327
|
return n.source = this, n.operator = t, n;
|
|
5328
5328
|
}, e.prototype.subscribe = function(t, n, r) {
|
|
5329
|
-
var s = this, o =
|
|
5329
|
+
var s = this, o = tu(t) ? t : new zn(t, n, r);
|
|
5330
5330
|
return Ft(function() {
|
|
5331
5331
|
var i = s, a = i.operator, c = i.source;
|
|
5332
5332
|
o.add(a ? a.call(o, c) : c ? s._subscribe(o) : s._trySubscribe(o));
|
|
@@ -5356,12 +5356,12 @@ var hs = (function() {
|
|
|
5356
5356
|
}, e.prototype._subscribe = function(t) {
|
|
5357
5357
|
var n;
|
|
5358
5358
|
return (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(t);
|
|
5359
|
-
}, e.prototype[
|
|
5359
|
+
}, e.prototype[zl] = function() {
|
|
5360
5360
|
return this;
|
|
5361
5361
|
}, e.prototype.pipe = function() {
|
|
5362
5362
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
5363
5363
|
t[n] = arguments[n];
|
|
5364
|
-
return
|
|
5364
|
+
return Zl(t)(this);
|
|
5365
5365
|
}, e.prototype.toPromise = function(t) {
|
|
5366
5366
|
var n = this;
|
|
5367
5367
|
return t = Es(t), new t(function(r, s) {
|
|
@@ -5380,19 +5380,19 @@ var hs = (function() {
|
|
|
5380
5380
|
})();
|
|
5381
5381
|
function Es(e) {
|
|
5382
5382
|
var t;
|
|
5383
|
-
return (t = e ??
|
|
5383
|
+
return (t = e ?? ql.Promise) !== null && t !== void 0 ? t : Promise;
|
|
5384
5384
|
}
|
|
5385
|
-
function
|
|
5385
|
+
function eu(e) {
|
|
5386
5386
|
return e && Ce(e.next) && Ce(e.error) && Ce(e.complete);
|
|
5387
5387
|
}
|
|
5388
|
-
function
|
|
5389
|
-
return e && e instanceof
|
|
5388
|
+
function tu(e) {
|
|
5389
|
+
return e && e instanceof Ro || eu(e) && Co(e);
|
|
5390
5390
|
}
|
|
5391
|
-
var
|
|
5391
|
+
var nu = Ao(function(e) {
|
|
5392
5392
|
return function() {
|
|
5393
5393
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
5394
5394
|
};
|
|
5395
|
-
}),
|
|
5395
|
+
}), Io = (function(e) {
|
|
5396
5396
|
cn(t, e);
|
|
5397
5397
|
function t() {
|
|
5398
5398
|
var n = e.call(this) || this;
|
|
@@ -5403,7 +5403,7 @@ var tu = To(function(e) {
|
|
|
5403
5403
|
return r.operator = n, r;
|
|
5404
5404
|
}, t.prototype._throwIfClosed = function() {
|
|
5405
5405
|
if (this.closed)
|
|
5406
|
-
throw new
|
|
5406
|
+
throw new nu();
|
|
5407
5407
|
}, t.prototype.next = function(n) {
|
|
5408
5408
|
var r = this;
|
|
5409
5409
|
Ft(function() {
|
|
@@ -5459,7 +5459,7 @@ var tu = To(function(e) {
|
|
|
5459
5459
|
return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
|
|
5460
5460
|
}, t.prototype._innerSubscribe = function(n) {
|
|
5461
5461
|
var r = this, s = this, o = s.hasError, i = s.isStopped, a = s.observers;
|
|
5462
|
-
return o || i ?
|
|
5462
|
+
return o || i ? vo : (this.currentObservers = null, a.push(n), new ln(function() {
|
|
5463
5463
|
r.currentObservers = null, Jn(a, n);
|
|
5464
5464
|
}));
|
|
5465
5465
|
}, t.prototype._checkFinalizedStatuses = function(n) {
|
|
@@ -5488,20 +5488,39 @@ var tu = To(function(e) {
|
|
|
5488
5488
|
(r = (n = this.destination) === null || n === void 0 ? void 0 : n.complete) === null || r === void 0 || r.call(n);
|
|
5489
5489
|
}, t.prototype._subscribe = function(n) {
|
|
5490
5490
|
var r, s;
|
|
5491
|
-
return (s = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && s !== void 0 ? s :
|
|
5491
|
+
return (s = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && s !== void 0 ? s : vo;
|
|
5492
5492
|
}, t;
|
|
5493
|
-
})(
|
|
5494
|
-
const
|
|
5495
|
-
function
|
|
5493
|
+
})(Io);
|
|
5494
|
+
const Po = new Io();
|
|
5495
|
+
function uf() {
|
|
5496
5496
|
function e(t) {
|
|
5497
|
-
|
|
5497
|
+
Po.next({
|
|
5498
5498
|
key: "notify",
|
|
5499
5499
|
data: t
|
|
5500
5500
|
});
|
|
5501
5501
|
}
|
|
5502
5502
|
return { Notify: e };
|
|
5503
5503
|
}
|
|
5504
|
-
function
|
|
5504
|
+
function ff(e, t) {
|
|
5505
|
+
const n = et(!1);
|
|
5506
|
+
let r;
|
|
5507
|
+
function s(o) {
|
|
5508
|
+
if (o.key !== e)
|
|
5509
|
+
return;
|
|
5510
|
+
const i = o.data;
|
|
5511
|
+
if (i.type === "close") {
|
|
5512
|
+
n.value = !1;
|
|
5513
|
+
return;
|
|
5514
|
+
}
|
|
5515
|
+
n.value = !0, t?.(i);
|
|
5516
|
+
}
|
|
5517
|
+
return Ns(() => {
|
|
5518
|
+
r = Po.subscribe(s);
|
|
5519
|
+
}), Os(() => {
|
|
5520
|
+
r?.unsubscribe();
|
|
5521
|
+
}), { show: n };
|
|
5522
|
+
}
|
|
5523
|
+
function df() {
|
|
5505
5524
|
function e(n) {
|
|
5506
5525
|
return {
|
|
5507
5526
|
page: (n.page || 1) - 1,
|
|
@@ -5523,7 +5542,7 @@ function uf() {
|
|
|
5523
5542
|
};
|
|
5524
5543
|
}
|
|
5525
5544
|
function ru(e, t) {
|
|
5526
|
-
const { validateFromApi: n, required: r, minLength: s, maxLength: o, min: i, max: a, pattern: c } =
|
|
5545
|
+
const { validateFromApi: n, required: r, minLength: s, maxLength: o, min: i, max: a, pattern: c } = Wl(e, t);
|
|
5527
5546
|
return {
|
|
5528
5547
|
validateFromApi: n,
|
|
5529
5548
|
required: r,
|
|
@@ -5534,7 +5553,7 @@ function ru(e, t) {
|
|
|
5534
5553
|
pattern: (u) => (l) => c(l, u)
|
|
5535
5554
|
};
|
|
5536
5555
|
}
|
|
5537
|
-
function
|
|
5556
|
+
function pf(e, t, n) {
|
|
5538
5557
|
if (!t.hasValidations)
|
|
5539
5558
|
return [];
|
|
5540
5559
|
const { required: r, validateFromApi: s, ...o } = ru(e, t.name), i = n.filter((a) => t.inputSettings?.[a] != null).map(
|
|
@@ -5549,7 +5568,7 @@ function ff(e, t, n) {
|
|
|
5549
5568
|
];
|
|
5550
5569
|
}
|
|
5551
5570
|
let Kt = null;
|
|
5552
|
-
function
|
|
5571
|
+
function mf(e) {
|
|
5553
5572
|
if (Kt !== null) {
|
|
5554
5573
|
console.warn(
|
|
5555
5574
|
"[LinID CoreLib] UI Design has already been initialized. Re-initialization is ignored."
|
|
@@ -5821,6 +5840,26 @@ const ou = [
|
|
|
5821
5840
|
"virtualScrollItemSize",
|
|
5822
5841
|
"virtualScrollStickySizeStart",
|
|
5823
5842
|
"virtualScrollStickySizeEnd"
|
|
5843
|
+
], Su = [
|
|
5844
|
+
"persistent",
|
|
5845
|
+
"noEscDismiss",
|
|
5846
|
+
"noBackdropDismiss",
|
|
5847
|
+
"noRouteDismiss",
|
|
5848
|
+
"autoClose",
|
|
5849
|
+
"noRefocus",
|
|
5850
|
+
"noFocus",
|
|
5851
|
+
"noShake",
|
|
5852
|
+
"allowFocusOutside",
|
|
5853
|
+
"seamless",
|
|
5854
|
+
"maximized",
|
|
5855
|
+
"fullWidth",
|
|
5856
|
+
"fullHeight",
|
|
5857
|
+
"position",
|
|
5858
|
+
"backdropFilter",
|
|
5859
|
+
"square",
|
|
5860
|
+
"transitionShow",
|
|
5861
|
+
"transitionHide",
|
|
5862
|
+
"transitionDuration"
|
|
5824
5863
|
], bs = {
|
|
5825
5864
|
"q-btn": ou,
|
|
5826
5865
|
"q-tabs": iu,
|
|
@@ -5839,7 +5878,8 @@ const ou = [
|
|
|
5839
5878
|
"q-date": bu,
|
|
5840
5879
|
"q-img": yu,
|
|
5841
5880
|
"q-file": Nu,
|
|
5842
|
-
"q-select": Ou
|
|
5881
|
+
"q-select": Ou,
|
|
5882
|
+
"q-dialog": Su
|
|
5843
5883
|
};
|
|
5844
5884
|
function ys(e, t) {
|
|
5845
5885
|
return t.split(".").reduce((n, r) => {
|
|
@@ -5847,7 +5887,7 @@ function ys(e, t) {
|
|
|
5847
5887
|
return n[r];
|
|
5848
5888
|
}, e);
|
|
5849
5889
|
}
|
|
5850
|
-
function
|
|
5890
|
+
function Tu(e, t, n) {
|
|
5851
5891
|
let r = ys(e, `${t}.${n}`);
|
|
5852
5892
|
if (r === void 0 && (r = ys(e, `default.${n}`)), typeof r == "object")
|
|
5853
5893
|
throw new Error(
|
|
@@ -5855,39 +5895,39 @@ function Su(e, t, n) {
|
|
|
5855
5895
|
);
|
|
5856
5896
|
return r;
|
|
5857
5897
|
}
|
|
5858
|
-
function
|
|
5898
|
+
function Lu(e) {
|
|
5859
5899
|
if (!(e in bs))
|
|
5860
5900
|
throw new Error(
|
|
5861
5901
|
`[UiDesign] The component '${e}' is not supported for UI design retrieval.`
|
|
5862
5902
|
);
|
|
5863
5903
|
return bs[e];
|
|
5864
5904
|
}
|
|
5865
|
-
function
|
|
5905
|
+
function _f() {
|
|
5866
5906
|
const e = ke(() => su());
|
|
5867
5907
|
function t(n, r, s) {
|
|
5868
|
-
const o =
|
|
5908
|
+
const o = Lu(r), i = {};
|
|
5869
5909
|
for (const a of o) {
|
|
5870
|
-
const c = s?.[a] ??
|
|
5910
|
+
const c = s?.[a] ?? Tu(e.value, n, `${r}.${String(a)}`);
|
|
5871
5911
|
c !== void 0 && (i[a] = c);
|
|
5872
5912
|
}
|
|
5873
5913
|
return i;
|
|
5874
5914
|
}
|
|
5875
5915
|
return { ui: t };
|
|
5876
5916
|
}
|
|
5877
|
-
async function
|
|
5917
|
+
async function Au() {
|
|
5878
5918
|
return (await Ie().get("/metadata/entities")).data;
|
|
5879
5919
|
}
|
|
5880
|
-
async function
|
|
5920
|
+
async function hf(e) {
|
|
5881
5921
|
return (await Ie().get(
|
|
5882
5922
|
`/metadata/entities/${e}`
|
|
5883
5923
|
)).data;
|
|
5884
5924
|
}
|
|
5885
|
-
async function
|
|
5925
|
+
async function vu() {
|
|
5886
5926
|
return (await Ie().get(
|
|
5887
5927
|
"/metadata/routes"
|
|
5888
5928
|
)).data;
|
|
5889
5929
|
}
|
|
5890
|
-
const
|
|
5930
|
+
const Ef = () => Cu(er()), Cu = /* @__PURE__ */ Zn("LinidConfigurationStore", {
|
|
5891
5931
|
state: () => ({
|
|
5892
5932
|
entities: [],
|
|
5893
5933
|
apiEndpoints: [],
|
|
@@ -5918,8 +5958,8 @@ const _f = () => vu(er()), vu = /* @__PURE__ */ Zn("LinidConfigurationStore", {
|
|
|
5918
5958
|
this.loading = !0, this.error = null;
|
|
5919
5959
|
try {
|
|
5920
5960
|
const [e, t] = await Promise.all([
|
|
5921
|
-
|
|
5922
|
-
|
|
5961
|
+
Au(),
|
|
5962
|
+
vu()
|
|
5923
5963
|
]);
|
|
5924
5964
|
this.entities = e, this.apiEndpoints = t;
|
|
5925
5965
|
} catch (e) {
|
|
@@ -5929,7 +5969,7 @@ const _f = () => vu(er()), vu = /* @__PURE__ */ Zn("LinidConfigurationStore", {
|
|
|
5929
5969
|
}
|
|
5930
5970
|
}
|
|
5931
5971
|
}
|
|
5932
|
-
}),
|
|
5972
|
+
}), gf = () => Ru(er()), Ru = /* @__PURE__ */ Zn("LinidUiStore", {
|
|
5933
5973
|
state: () => ({
|
|
5934
5974
|
mainNavigationItems: []
|
|
5935
5975
|
}),
|
|
@@ -5943,15 +5983,15 @@ const _f = () => vu(er()), vu = /* @__PURE__ */ Zn("LinidConfigurationStore", {
|
|
|
5943
5983
|
}
|
|
5944
5984
|
}
|
|
5945
5985
|
});
|
|
5946
|
-
function
|
|
5986
|
+
function Iu(e, t) {
|
|
5947
5987
|
if (!Xt(e) || !Xt(t))
|
|
5948
5988
|
return t;
|
|
5949
5989
|
const n = { ...e };
|
|
5950
5990
|
for (const r of Object.keys(t))
|
|
5951
|
-
n[r] =
|
|
5991
|
+
n[r] = Iu(e[r], t[r]);
|
|
5952
5992
|
return n;
|
|
5953
5993
|
}
|
|
5954
|
-
function
|
|
5994
|
+
function bf(e) {
|
|
5955
5995
|
const t = {};
|
|
5956
5996
|
for (const [n, r] of Object.entries(e)) {
|
|
5957
5997
|
const s = n.split(".");
|
|
@@ -5965,15 +6005,15 @@ function Ef(e) {
|
|
|
5965
6005
|
function Xt(e) {
|
|
5966
6006
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
5967
6007
|
}
|
|
5968
|
-
function
|
|
6008
|
+
function Pu(e, t) {
|
|
5969
6009
|
return typeof e != "object" || e === null ? e : Object.fromEntries(
|
|
5970
6010
|
Object.entries(e).map(([n, r]) => {
|
|
5971
|
-
const s = t(n), o = Xt(r) ?
|
|
6011
|
+
const s = t(n), o = Xt(r) ? Pu(r, t) : r;
|
|
5972
6012
|
return [s, o];
|
|
5973
6013
|
})
|
|
5974
6014
|
);
|
|
5975
6015
|
}
|
|
5976
|
-
function
|
|
6016
|
+
function wu(e, t) {
|
|
5977
6017
|
if (e === t || typeof e == "number" && typeof t == "number" && Number.isNaN(e) && Number.isNaN(t))
|
|
5978
6018
|
return !0;
|
|
5979
6019
|
if (e == null || t == null || typeof e != "object" || typeof t != "object" || Array.isArray(e) !== Array.isArray(t))
|
|
@@ -5983,11 +6023,11 @@ function Pu(e, t) {
|
|
|
5983
6023
|
return !1;
|
|
5984
6024
|
const s = e, o = t;
|
|
5985
6025
|
return n.every(
|
|
5986
|
-
(i) => Object.prototype.hasOwnProperty.call(o, i) &&
|
|
6026
|
+
(i) => Object.prototype.hasOwnProperty.call(o, i) && wu(s[i], o[i])
|
|
5987
6027
|
);
|
|
5988
6028
|
}
|
|
5989
|
-
var
|
|
5990
|
-
class
|
|
6029
|
+
var Du = /* @__PURE__ */ ((e) => (e.SETUP = "setup", e.CONFIGURE = "configure", e.INITIALIZE = "initialize", e.READY = "ready", e.POST_INIT = "postInit", e))(Du || {});
|
|
6030
|
+
class yf {
|
|
5991
6031
|
/**
|
|
5992
6032
|
* Unique identifier for the module.
|
|
5993
6033
|
*
|
|
@@ -6091,44 +6131,45 @@ class gf {
|
|
|
6091
6131
|
}
|
|
6092
6132
|
}
|
|
6093
6133
|
export {
|
|
6094
|
-
|
|
6095
|
-
|
|
6096
|
-
|
|
6097
|
-
|
|
6098
|
-
|
|
6099
|
-
|
|
6100
|
-
|
|
6101
|
-
|
|
6102
|
-
|
|
6103
|
-
|
|
6104
|
-
|
|
6134
|
+
yf as BasicRemoteModule,
|
|
6135
|
+
Mu as LinidZoneRenderer,
|
|
6136
|
+
Du as ModuleLifecyclePhase,
|
|
6137
|
+
wu as deepEqual,
|
|
6138
|
+
cf as deleteEntityById,
|
|
6139
|
+
bf as fromDot,
|
|
6140
|
+
vu as getApiEndpointsConfiguration,
|
|
6141
|
+
of as getEntities,
|
|
6142
|
+
Au as getEntitiesConfiguration,
|
|
6143
|
+
af as getEntityById,
|
|
6144
|
+
hf as getEntityConfiguration,
|
|
6105
6145
|
Ie as getHttpClient,
|
|
6106
|
-
|
|
6107
|
-
|
|
6108
|
-
|
|
6146
|
+
$l as getI18nInstance,
|
|
6147
|
+
zo as getModuleFederation,
|
|
6148
|
+
ot as getModuleHostConfiguration,
|
|
6109
6149
|
er as getPiniaStore,
|
|
6110
6150
|
su as getUiDesign,
|
|
6111
6151
|
Xt as isObject,
|
|
6112
|
-
|
|
6113
|
-
|
|
6114
|
-
|
|
6115
|
-
|
|
6116
|
-
|
|
6117
|
-
|
|
6118
|
-
|
|
6119
|
-
|
|
6120
|
-
|
|
6121
|
-
|
|
6122
|
-
|
|
6123
|
-
|
|
6124
|
-
|
|
6125
|
-
|
|
6126
|
-
|
|
6127
|
-
|
|
6128
|
-
|
|
6129
|
-
uf as
|
|
6152
|
+
Qo as loadAsyncComponent,
|
|
6153
|
+
Iu as merge,
|
|
6154
|
+
nf as registerModuleHostConfiguration,
|
|
6155
|
+
Pu as renameKeys,
|
|
6156
|
+
rf as saveEntity,
|
|
6157
|
+
tf as setHttpClient,
|
|
6158
|
+
lf as setI18nInstance,
|
|
6159
|
+
Fu as setModuleFederation,
|
|
6160
|
+
Uu as setPiniaStore,
|
|
6161
|
+
mf as setUiDesign,
|
|
6162
|
+
Po as uiEventSubject,
|
|
6163
|
+
sf as updateEntity,
|
|
6164
|
+
ff as useDialog,
|
|
6165
|
+
Wl as useFieldValidation,
|
|
6166
|
+
Ef as useLinidConfigurationStore,
|
|
6167
|
+
gf as useLinidUiStore,
|
|
6168
|
+
ni as useLinidZoneStore,
|
|
6169
|
+
uf as useNotify,
|
|
6170
|
+
df as usePagination,
|
|
6130
6171
|
ru as useQuasarFieldValidation,
|
|
6131
|
-
|
|
6132
|
-
|
|
6133
|
-
|
|
6172
|
+
pf as useQuasarRules,
|
|
6173
|
+
Bl as useScopedI18n,
|
|
6174
|
+
_f as useUiDesign
|
|
6134
6175
|
};
|