@linagora/linid-im-front-corelib 0.0.42 → 0.0.44
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 +1114 -1049
- package/dist/core-lib.umd.js +12 -12
- package/dist/package.json +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/types/src/index.d.ts +1 -1
- package/dist/types/src/types/linidConfiguration.d.ts +1 -1
- package/dist/types/src/types/uiDesign.d.ts +43 -3
- package/package.json +1 -1
package/dist/core-lib.es.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import * as _n from "vue";
|
|
2
|
-
import { defineAsyncComponent as
|
|
3
|
-
let
|
|
4
|
-
function
|
|
5
|
-
if (
|
|
2
|
+
import { defineAsyncComponent as ko, hasInjectionContext as An, inject as Ft, getCurrentInstance as Fo, ref as Xt, reactive as Uo, markRaw as ft, effectScope as Mo, isRef as pt, isReactive as zn, toRef as hn, toRaw as xo, nextTick as _r, getCurrentScope as Vo, onScopeDispose as $o, watch as vn, computed as ke, toRefs as hr, defineComponent as Jt, openBlock as En, createElementBlock as Er, Fragment as Ut, renderList as Bo, unref as gr, createBlock as jo, resolveDynamicComponent as Ho, mergeProps as Wo, renderSlot as qo, createCommentVNode as Go, onMounted as Os, onUnmounted as Ss, shallowRef as Yo, h as Ts, createVNode as Ko, Text as Xo } from "vue";
|
|
3
|
+
let Mt = null;
|
|
4
|
+
function $u(e) {
|
|
5
|
+
if (Mt !== null) {
|
|
6
6
|
console.warn(
|
|
7
7
|
"[LinID CoreLib] Module Federation has already been initialized. Re-initialization is ignored."
|
|
8
8
|
);
|
|
9
9
|
return;
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
Mt = e;
|
|
12
12
|
}
|
|
13
|
-
function
|
|
14
|
-
if (
|
|
13
|
+
function Jo() {
|
|
14
|
+
if (Mt === null)
|
|
15
15
|
throw new Error(
|
|
16
16
|
"[LinID CoreLib] Module Federation is not initialized. Call setModuleFederation() first."
|
|
17
17
|
);
|
|
18
|
-
return
|
|
18
|
+
return Mt;
|
|
19
19
|
}
|
|
20
|
-
const Qo = (e) =>
|
|
21
|
-
() =>
|
|
20
|
+
const Qo = (e) => ko(
|
|
21
|
+
() => Jo().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;
|
|
@@ -26,7 +26,7 @@ const Qo = (e) => Do(
|
|
|
26
26
|
);
|
|
27
27
|
const Ze = typeof window < "u";
|
|
28
28
|
let Be;
|
|
29
|
-
const
|
|
29
|
+
const xt = (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,67 +35,67 @@ 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 dt;
|
|
39
39
|
(function(e) {
|
|
40
40
|
e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
|
|
41
|
-
})(
|
|
42
|
-
function
|
|
41
|
+
})(dt || (dt = {}));
|
|
42
|
+
function Ls(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) && !
|
|
48
|
+
qe(s) && qe(r) && !pt(r) && !zn(r) ? e[n] = Ls(s, r) : e[n] = r;
|
|
49
49
|
}
|
|
50
50
|
return e;
|
|
51
51
|
}
|
|
52
|
-
const
|
|
52
|
+
const As = () => {
|
|
53
53
|
};
|
|
54
|
-
function
|
|
54
|
+
function br(e, t, n, r = As) {
|
|
55
55
|
e.add(t);
|
|
56
56
|
const s = () => {
|
|
57
57
|
e.delete(t) && r();
|
|
58
58
|
};
|
|
59
|
-
return !n &&
|
|
59
|
+
return !n && Vo() && $o(s), s;
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function Qe(e, ...t) {
|
|
62
62
|
e.forEach((n) => {
|
|
63
63
|
n(...t);
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
|
-
const
|
|
66
|
+
const zo = (e) => e(), yr = 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) {
|
|
70
70
|
if (!t.hasOwnProperty(n))
|
|
71
71
|
continue;
|
|
72
72
|
const r = t[n], s = e[n];
|
|
73
|
-
qe(s) && qe(r) && e.hasOwnProperty(n) && !
|
|
73
|
+
qe(s) && qe(r) && e.hasOwnProperty(n) && !pt(r) && !zn(r) ? e[n] = Rn(s, r) : e[n] = r;
|
|
74
74
|
}
|
|
75
75
|
return e;
|
|
76
76
|
}
|
|
77
|
-
const
|
|
77
|
+
const Zo = 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 ei(e) {
|
|
82
|
+
return !qe(e) || !Object.prototype.hasOwnProperty.call(e, Zo);
|
|
83
83
|
}
|
|
84
84
|
const { assign: pe } = Object;
|
|
85
|
-
function
|
|
86
|
-
return !!(
|
|
85
|
+
function Nr(e) {
|
|
86
|
+
return !!(pt(e) && e.effect);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function Or(e, t, n, r) {
|
|
89
89
|
const { state: s, actions: o, getters: i } = t, a = n.state.value[e];
|
|
90
90
|
let c;
|
|
91
91
|
function u() {
|
|
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(Xt(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] =
|
|
98
|
-
|
|
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] = ft(ke(() => {
|
|
98
|
+
xt(n);
|
|
99
99
|
const A = n._s.get(e);
|
|
100
100
|
return i[g].call(A, A);
|
|
101
101
|
})), p), {}));
|
|
@@ -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 = Xt({});
|
|
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: dt.patchFunction,
|
|
123
123
|
storeId: e,
|
|
124
124
|
events: A
|
|
125
125
|
}) : (Rn(r.state.value[e], I), P = {
|
|
126
|
-
type:
|
|
126
|
+
type: dt.patchObject,
|
|
127
127
|
payload: I,
|
|
128
128
|
storeId: e,
|
|
129
129
|
events: A
|
|
@@ -131,7 +131,7 @@ function In(e, t, n = {}, r, s, o) {
|
|
|
131
131
|
const k = S = Symbol();
|
|
132
132
|
_r().then(() => {
|
|
133
133
|
S === k && (u = !0);
|
|
134
|
-
}), l = !0,
|
|
134
|
+
}), l = !0, Qe(p, P, r.state.value[e]);
|
|
135
135
|
}
|
|
136
136
|
const N = o ? function() {
|
|
137
137
|
const { state: P } = n, k = P ? P() : {};
|
|
@@ -142,24 +142,24 @@ 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
|
+
} : As
|
|
146
146
|
);
|
|
147
147
|
function T() {
|
|
148
148
|
i.stop(), p.clear(), g.clear(), r._s.delete(e);
|
|
149
149
|
}
|
|
150
150
|
const y = (I, P = "") => {
|
|
151
|
-
if (
|
|
151
|
+
if (yr in I)
|
|
152
152
|
return I[gn] = P, I;
|
|
153
153
|
const k = function() {
|
|
154
|
-
|
|
154
|
+
xt(r);
|
|
155
155
|
const W = Array.from(arguments), ne = /* @__PURE__ */ new Set(), be = /* @__PURE__ */ new Set();
|
|
156
|
-
function se(
|
|
157
|
-
ne.add(
|
|
156
|
+
function se(z) {
|
|
157
|
+
ne.add(z);
|
|
158
158
|
}
|
|
159
|
-
function we(
|
|
160
|
-
be.add(
|
|
159
|
+
function we(z) {
|
|
160
|
+
be.add(z);
|
|
161
161
|
}
|
|
162
|
-
|
|
162
|
+
Qe(g, {
|
|
163
163
|
args: W,
|
|
164
164
|
name: k[gn],
|
|
165
165
|
store: _,
|
|
@@ -169,13 +169,13 @@ function In(e, t, n = {}, r, s, o) {
|
|
|
169
169
|
let Z;
|
|
170
170
|
try {
|
|
171
171
|
Z = I.apply(this && this.$id === e ? this : _, W);
|
|
172
|
-
} catch (
|
|
173
|
-
throw
|
|
172
|
+
} catch (z) {
|
|
173
|
+
throw Qe(be, z), z;
|
|
174
174
|
}
|
|
175
|
-
return Z instanceof Promise ? Z.then((
|
|
175
|
+
return Z instanceof Promise ? Z.then((z) => (Qe(ne, z), z)).catch((z) => (Qe(be, z), Promise.reject(z))) : (Qe(ne, Z), Z);
|
|
176
176
|
};
|
|
177
|
-
return k[
|
|
178
|
-
}, C = /* @__PURE__ */
|
|
177
|
+
return k[yr] = !0, k[gn] = P, k;
|
|
178
|
+
}, C = /* @__PURE__ */ ft({
|
|
179
179
|
actions: {},
|
|
180
180
|
getters: {},
|
|
181
181
|
state: [],
|
|
@@ -184,24 +184,24 @@ function In(e, t, n = {}, r, s, o) {
|
|
|
184
184
|
_p: r,
|
|
185
185
|
// _s: scope,
|
|
186
186
|
$id: e,
|
|
187
|
-
$onAction:
|
|
187
|
+
$onAction: br.bind(null, g),
|
|
188
188
|
$patch: m,
|
|
189
189
|
$reset: N,
|
|
190
190
|
$subscribe(I, P = {}) {
|
|
191
|
-
const k =
|
|
191
|
+
const k = br(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: dt.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
|
+
}, _ = Uo(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: ft(/* @__PURE__ */ new Set())
|
|
205
205
|
// devtools custom properties
|
|
206
206
|
},
|
|
207
207
|
R
|
|
@@ -209,21 +209,21 @@ 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 = Mo()).run(() => t({ action: y }))));
|
|
213
213
|
for (const I in U) {
|
|
214
214
|
const P = U[I];
|
|
215
|
-
if (
|
|
216
|
-
process.env.NODE_ENV !== "production" && s ? b.value[I] = hn(U, I) : o || (E &&
|
|
215
|
+
if (pt(P) && !Nr(P) || zn(P))
|
|
216
|
+
process.env.NODE_ENV !== "production" && s ? b.value[I] = hn(U, I) : o || (E && ei(P) && (pt(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;
|
|
220
|
-
} else process.env.NODE_ENV !== "production" &&
|
|
220
|
+
} else process.env.NODE_ENV !== "production" && Nr(P) && (C.getters[I] = 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 = ft([]))).push(I));
|
|
225
225
|
}
|
|
226
|
-
if (pe(_, U), pe(
|
|
226
|
+
if (pe(_, U), pe(xo(_), 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 = ft((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) ? Ls(k, W) : I.$state[P] = W;
|
|
240
240
|
}
|
|
241
241
|
_[P] = hn(I.$state, P);
|
|
242
242
|
}), Object.keys(_.$state).forEach((P) => {
|
|
@@ -252,7 +252,7 @@ function In(e, t, n = {}, r, s, o) {
|
|
|
252
252
|
for (const P in I._hmrPayload.getters) {
|
|
253
253
|
const k = I._hmrPayload.getters[P], W = o ? (
|
|
254
254
|
// special handling of options api
|
|
255
|
-
ke(() => (
|
|
255
|
+
ke(() => (xt(r), k.call(_, _)))
|
|
256
256
|
) : k;
|
|
257
257
|
_[P] = //
|
|
258
258
|
W;
|
|
@@ -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" && Be && Be._testing ? null : i) || (c ?
|
|
305
|
+
(process.env.NODE_ENV === "test" && Be && Be._testing ? null : i) || (c ? Ft(Cn, null) : null), i && xt(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 = Be, i._s.has(e) || (s ? In(e, t, r, i) :
|
|
309
|
+
i = Be, i._s.has(e) || (s ? In(e, t, r, i) : Or(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
|
-
const l = "__hot:" + e, p = s ? In(l, t, r, i, !0) :
|
|
312
|
+
const l = "__hot:" + e, p = s ? In(l, t, r, i, !0) : Or(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 = Fo();
|
|
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 = {};
|
|
@@ -324,24 +324,24 @@ This will fail in production.`);
|
|
|
324
324
|
}
|
|
325
325
|
return o.$id = e, o;
|
|
326
326
|
}
|
|
327
|
-
let
|
|
328
|
-
function
|
|
329
|
-
if (
|
|
327
|
+
let Vt = null;
|
|
328
|
+
function Bu(e) {
|
|
329
|
+
if (Vt !== null) {
|
|
330
330
|
console.warn(
|
|
331
331
|
"[LinID CoreLib] Pinia store has already been initialized. Re-initialization is ignored."
|
|
332
332
|
);
|
|
333
333
|
return;
|
|
334
334
|
}
|
|
335
|
-
|
|
335
|
+
Vt = e;
|
|
336
336
|
}
|
|
337
337
|
function er() {
|
|
338
|
-
if (
|
|
338
|
+
if (Vt === null)
|
|
339
339
|
throw new Error(
|
|
340
340
|
"[LinID CoreLib] Pinia store is not initialized. Call setPiniaStore() first."
|
|
341
341
|
);
|
|
342
|
-
return
|
|
342
|
+
return Vt;
|
|
343
343
|
}
|
|
344
|
-
const
|
|
344
|
+
const ti = () => ni(er()), ni = /* @__PURE__ */ Zn("linidZoneStore", {
|
|
345
345
|
state: () => ({
|
|
346
346
|
zones: {}
|
|
347
347
|
}),
|
|
@@ -364,76 +364,70 @@ const ni = () => ri(er()), ri = /* @__PURE__ */ Zn("linidZoneStore", {
|
|
|
364
364
|
this.zones[e]?.some(({ plugin: n }) => n === t.plugin) || this.register(e, t);
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
|
-
}),
|
|
367
|
+
}), ju = /* @__PURE__ */ Jt({
|
|
368
368
|
__name: "LinidZoneRenderer",
|
|
369
369
|
props: {
|
|
370
370
|
zone: {}
|
|
371
371
|
},
|
|
372
372
|
setup(e) {
|
|
373
|
-
const t = e,
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
})
|
|
383
|
-
|
|
384
|
-
(En(!0), Er(Mt, null, Bo(r.value, (a, c) => (En(), jo(Ho(a.component), Wo({
|
|
385
|
-
key: a.plugin + c
|
|
386
|
-
}, { ref_for: !0 }, a.props), null, 16))), 128)),
|
|
387
|
-
s.value && r.value.length === 0 ? qo(o.$slots, "default", { key: 0 }, () => [
|
|
388
|
-
i[0] || (i[0] = Go("div", null, "No components to render in this zone.", -1))
|
|
389
|
-
]) : Yo("", !0)
|
|
373
|
+
const t = e, r = (ti().zones[t.zone] || []).map(
|
|
374
|
+
(s) => ({
|
|
375
|
+
...s,
|
|
376
|
+
component: Qo(s.plugin)
|
|
377
|
+
})
|
|
378
|
+
);
|
|
379
|
+
return (s, o) => (En(), Er(Ut, null, [
|
|
380
|
+
(En(!0), Er(Ut, null, Bo(gr(r), (i, a) => (En(), jo(Ho(i.component), Wo({
|
|
381
|
+
key: i.plugin + a
|
|
382
|
+
}, { ref_for: !0 }, i.props), null, 16))), 128)),
|
|
383
|
+
gr(r).length === 0 ? qo(s.$slots, "default", { key: 0 }) : Go("", !0)
|
|
390
384
|
], 64));
|
|
391
385
|
}
|
|
392
386
|
});
|
|
393
|
-
function
|
|
387
|
+
function vs(e, t) {
|
|
394
388
|
return function() {
|
|
395
389
|
return e.apply(t, arguments);
|
|
396
390
|
};
|
|
397
391
|
}
|
|
398
|
-
const { toString:
|
|
399
|
-
const n =
|
|
392
|
+
const { toString: ri } = Object.prototype, { getPrototypeOf: tr } = Object, { iterator: Qt, toStringTag: Cs } = Symbol, zt = /* @__PURE__ */ ((e) => (t) => {
|
|
393
|
+
const n = ri.call(t);
|
|
400
394
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
401
|
-
})(/* @__PURE__ */ Object.create(null)), ge = (e) => (e = e.toLowerCase(), (t) =>
|
|
402
|
-
function
|
|
403
|
-
return e !== null && !
|
|
395
|
+
})(/* @__PURE__ */ Object.create(null)), ge = (e) => (e = e.toLowerCase(), (t) => zt(t) === e), Zt = (e) => (t) => typeof t === e, { isArray: nt } = Array, et = Zt("undefined");
|
|
396
|
+
function gt(e) {
|
|
397
|
+
return e !== null && !et(e) && e.constructor !== null && !et(e.constructor) && ue(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
404
398
|
}
|
|
405
|
-
const
|
|
406
|
-
function
|
|
399
|
+
const Rs = ge("ArrayBuffer");
|
|
400
|
+
function si(e) {
|
|
407
401
|
let t;
|
|
408
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer &&
|
|
402
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Rs(e.buffer), t;
|
|
409
403
|
}
|
|
410
|
-
const
|
|
411
|
-
if (
|
|
404
|
+
const oi = Zt("string"), ue = Zt("function"), Is = Zt("number"), bt = (e) => e !== null && typeof e == "object", ii = (e) => e === !0 || e === !1, It = (e) => {
|
|
405
|
+
if (zt(e) !== "object")
|
|
412
406
|
return !1;
|
|
413
407
|
const t = tr(e);
|
|
414
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(
|
|
415
|
-
},
|
|
416
|
-
if (!
|
|
408
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Cs in e) && !(Qt in e);
|
|
409
|
+
}, ai = (e) => {
|
|
410
|
+
if (!bt(e) || gt(e))
|
|
417
411
|
return !1;
|
|
418
412
|
try {
|
|
419
413
|
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
420
414
|
} catch {
|
|
421
415
|
return !1;
|
|
422
416
|
}
|
|
423
|
-
},
|
|
417
|
+
}, ci = ge("Date"), li = ge("File"), ui = ge("Blob"), fi = ge("FileList"), di = (e) => bt(e) && ue(e.pipe), pi = (e) => {
|
|
424
418
|
let t;
|
|
425
|
-
return e && (typeof FormData == "function" && e instanceof FormData || ue(e.append) && ((t =
|
|
419
|
+
return e && (typeof FormData == "function" && e instanceof FormData || ue(e.append) && ((t = zt(e)) === "formdata" || // detect form-data instance
|
|
426
420
|
t === "object" && ue(e.toString) && e.toString() === "[object FormData]"));
|
|
427
|
-
},
|
|
428
|
-
function
|
|
421
|
+
}, mi = ge("URLSearchParams"), [_i, hi, Ei, gi] = ["ReadableStream", "Request", "Response", "Headers"].map(ge), bi = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
422
|
+
function yt(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
429
423
|
if (e === null || typeof e > "u")
|
|
430
424
|
return;
|
|
431
425
|
let r, s;
|
|
432
|
-
if (typeof e != "object" && (e = [e]),
|
|
426
|
+
if (typeof e != "object" && (e = [e]), nt(e))
|
|
433
427
|
for (r = 0, s = e.length; r < s; r++)
|
|
434
428
|
t.call(null, e[r], r, e);
|
|
435
429
|
else {
|
|
436
|
-
if (
|
|
430
|
+
if (gt(e))
|
|
437
431
|
return;
|
|
438
432
|
const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
|
|
439
433
|
let a;
|
|
@@ -441,8 +435,8 @@ function Nt(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
441
435
|
a = o[r], t.call(null, e[a], a, e);
|
|
442
436
|
}
|
|
443
437
|
}
|
|
444
|
-
function
|
|
445
|
-
if (
|
|
438
|
+
function Ps(e, t) {
|
|
439
|
+
if (gt(e))
|
|
446
440
|
return null;
|
|
447
441
|
t = t.toLowerCase();
|
|
448
442
|
const n = Object.keys(e);
|
|
@@ -452,23 +446,23 @@ function Is(e, t) {
|
|
|
452
446
|
return s;
|
|
453
447
|
return null;
|
|
454
448
|
}
|
|
455
|
-
const je = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global,
|
|
449
|
+
const je = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, ws = (e) => !et(e) && e !== je;
|
|
456
450
|
function Pn() {
|
|
457
|
-
const { caseless: e, skipUndefined: t } =
|
|
458
|
-
const i = e &&
|
|
459
|
-
|
|
451
|
+
const { caseless: e, skipUndefined: t } = ws(this) && this || {}, n = {}, r = (s, o) => {
|
|
452
|
+
const i = e && Ps(n, o) || o;
|
|
453
|
+
It(n[i]) && It(s) ? n[i] = Pn(n[i], s) : It(s) ? n[i] = Pn({}, s) : nt(s) ? n[i] = s.slice() : (!t || !et(s)) && (n[i] = s);
|
|
460
454
|
};
|
|
461
455
|
for (let s = 0, o = arguments.length; s < o; s++)
|
|
462
|
-
arguments[s] &&
|
|
456
|
+
arguments[s] && yt(arguments[s], r);
|
|
463
457
|
return n;
|
|
464
458
|
}
|
|
465
|
-
const
|
|
466
|
-
n && ue(s) ? e[o] =
|
|
467
|
-
}, { allOwnKeys: r }), e),
|
|
459
|
+
const yi = (e, t, n, { allOwnKeys: r } = {}) => (yt(t, (s, o) => {
|
|
460
|
+
n && ue(s) ? e[o] = vs(s, n) : e[o] = s;
|
|
461
|
+
}, { allOwnKeys: r }), e), Ni = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Oi = (e, t, n, r) => {
|
|
468
462
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
469
463
|
value: t.prototype
|
|
470
464
|
}), n && Object.assign(e.prototype, n);
|
|
471
|
-
},
|
|
465
|
+
}, Si = (e, t, n, r) => {
|
|
472
466
|
let s, o, i;
|
|
473
467
|
const a = {};
|
|
474
468
|
if (t = t || {}, e == null) return t;
|
|
@@ -478,45 +472,45 @@ const Ni = (e, t, n, { allOwnKeys: r } = {}) => (Nt(t, (s, o) => {
|
|
|
478
472
|
e = n !== !1 && tr(e);
|
|
479
473
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
480
474
|
return t;
|
|
481
|
-
},
|
|
475
|
+
}, Ti = (e, t, n) => {
|
|
482
476
|
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
483
477
|
const r = e.indexOf(t, n);
|
|
484
478
|
return r !== -1 && r === n;
|
|
485
|
-
},
|
|
479
|
+
}, Li = (e) => {
|
|
486
480
|
if (!e) return null;
|
|
487
|
-
if (
|
|
481
|
+
if (nt(e)) return e;
|
|
488
482
|
let t = e.length;
|
|
489
|
-
if (!
|
|
483
|
+
if (!Is(t)) return null;
|
|
490
484
|
const n = new Array(t);
|
|
491
485
|
for (; t-- > 0; )
|
|
492
486
|
n[t] = e[t];
|
|
493
487
|
return n;
|
|
494
|
-
},
|
|
495
|
-
const r = (e && e[
|
|
488
|
+
}, Ai = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && tr(Uint8Array)), vi = (e, t) => {
|
|
489
|
+
const r = (e && e[Qt]).call(e);
|
|
496
490
|
let s;
|
|
497
491
|
for (; (s = r.next()) && !s.done; ) {
|
|
498
492
|
const o = s.value;
|
|
499
493
|
t.call(e, o[0], o[1]);
|
|
500
494
|
}
|
|
501
|
-
},
|
|
495
|
+
}, Ci = (e, t) => {
|
|
502
496
|
let n;
|
|
503
497
|
const r = [];
|
|
504
498
|
for (; (n = e.exec(t)) !== null; )
|
|
505
499
|
r.push(n);
|
|
506
500
|
return r;
|
|
507
|
-
},
|
|
501
|
+
}, Ri = ge("HTMLFormElement"), Ii = (e) => e.toLowerCase().replace(
|
|
508
502
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
509
503
|
function(n, r, s) {
|
|
510
504
|
return r.toUpperCase() + s;
|
|
511
505
|
}
|
|
512
|
-
),
|
|
506
|
+
), Sr = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Pi = ge("RegExp"), Ds = (e, t) => {
|
|
513
507
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
514
|
-
|
|
508
|
+
yt(n, (s, o) => {
|
|
515
509
|
let i;
|
|
516
510
|
(i = t(s, o, e)) !== !1 && (r[o] = i || s);
|
|
517
511
|
}), Object.defineProperties(e, r);
|
|
518
|
-
},
|
|
519
|
-
|
|
512
|
+
}, wi = (e) => {
|
|
513
|
+
Ds(e, (t, n) => {
|
|
520
514
|
if (ue(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
521
515
|
return !1;
|
|
522
516
|
const r = e[n];
|
|
@@ -530,103 +524,103 @@ const Ni = (e, t, n, { allOwnKeys: r } = {}) => (Nt(t, (s, o) => {
|
|
|
530
524
|
});
|
|
531
525
|
}
|
|
532
526
|
});
|
|
533
|
-
},
|
|
527
|
+
}, Di = (e, t) => {
|
|
534
528
|
const n = {}, r = (s) => {
|
|
535
529
|
s.forEach((o) => {
|
|
536
530
|
n[o] = !0;
|
|
537
531
|
});
|
|
538
532
|
};
|
|
539
|
-
return
|
|
540
|
-
},
|
|
541
|
-
},
|
|
542
|
-
function
|
|
543
|
-
return !!(e && ue(e.append) && e[
|
|
533
|
+
return nt(e) ? r(e) : r(String(e).split(t)), n;
|
|
534
|
+
}, ki = () => {
|
|
535
|
+
}, Fi = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
536
|
+
function Ui(e) {
|
|
537
|
+
return !!(e && ue(e.append) && e[Cs] === "FormData" && e[Qt]);
|
|
544
538
|
}
|
|
545
|
-
const
|
|
539
|
+
const Mi = (e) => {
|
|
546
540
|
const t = new Array(10), n = (r, s) => {
|
|
547
|
-
if (
|
|
541
|
+
if (bt(r)) {
|
|
548
542
|
if (t.indexOf(r) >= 0)
|
|
549
543
|
return;
|
|
550
|
-
if (
|
|
544
|
+
if (gt(r))
|
|
551
545
|
return r;
|
|
552
546
|
if (!("toJSON" in r)) {
|
|
553
547
|
t[s] = r;
|
|
554
|
-
const o =
|
|
555
|
-
return
|
|
548
|
+
const o = nt(r) ? [] : {};
|
|
549
|
+
return yt(r, (i, a) => {
|
|
556
550
|
const c = n(i, s + 1);
|
|
557
|
-
!
|
|
551
|
+
!et(c) && (o[a] = c);
|
|
558
552
|
}), t[s] = void 0, o;
|
|
559
553
|
}
|
|
560
554
|
}
|
|
561
555
|
return r;
|
|
562
556
|
};
|
|
563
557
|
return n(e, 0);
|
|
564
|
-
},
|
|
558
|
+
}, xi = ge("AsyncFunction"), Vi = (e) => e && (bt(e) || ue(e)) && ue(e.then) && ue(e.catch), ks = ((e, t) => e ? setImmediate : t ? ((n, r) => (je.addEventListener("message", ({ source: s, data: o }) => {
|
|
565
559
|
s === je && o === n && r.length && r.shift()();
|
|
566
560
|
}, !1), (s) => {
|
|
567
561
|
r.push(s), je.postMessage(n, "*");
|
|
568
562
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
569
563
|
typeof setImmediate == "function",
|
|
570
564
|
ue(je.postMessage)
|
|
571
|
-
),
|
|
572
|
-
isArray:
|
|
573
|
-
isArrayBuffer:
|
|
574
|
-
isBuffer:
|
|
575
|
-
isFormData:
|
|
576
|
-
isArrayBufferView:
|
|
577
|
-
isString:
|
|
578
|
-
isNumber:
|
|
579
|
-
isBoolean:
|
|
580
|
-
isObject:
|
|
581
|
-
isPlainObject:
|
|
582
|
-
isEmptyObject:
|
|
583
|
-
isReadableStream:
|
|
584
|
-
isRequest:
|
|
585
|
-
isResponse:
|
|
586
|
-
isHeaders:
|
|
587
|
-
isUndefined:
|
|
588
|
-
isDate:
|
|
589
|
-
isFile:
|
|
590
|
-
isBlob:
|
|
591
|
-
isRegExp:
|
|
565
|
+
), $i = typeof queueMicrotask < "u" ? queueMicrotask.bind(je) : typeof process < "u" && process.nextTick || ks, Bi = (e) => e != null && ue(e[Qt]), h = {
|
|
566
|
+
isArray: nt,
|
|
567
|
+
isArrayBuffer: Rs,
|
|
568
|
+
isBuffer: gt,
|
|
569
|
+
isFormData: pi,
|
|
570
|
+
isArrayBufferView: si,
|
|
571
|
+
isString: oi,
|
|
572
|
+
isNumber: Is,
|
|
573
|
+
isBoolean: ii,
|
|
574
|
+
isObject: bt,
|
|
575
|
+
isPlainObject: It,
|
|
576
|
+
isEmptyObject: ai,
|
|
577
|
+
isReadableStream: _i,
|
|
578
|
+
isRequest: hi,
|
|
579
|
+
isResponse: Ei,
|
|
580
|
+
isHeaders: gi,
|
|
581
|
+
isUndefined: et,
|
|
582
|
+
isDate: ci,
|
|
583
|
+
isFile: li,
|
|
584
|
+
isBlob: ui,
|
|
585
|
+
isRegExp: Pi,
|
|
592
586
|
isFunction: ue,
|
|
593
|
-
isStream:
|
|
594
|
-
isURLSearchParams:
|
|
595
|
-
isTypedArray:
|
|
596
|
-
isFileList:
|
|
597
|
-
forEach:
|
|
587
|
+
isStream: di,
|
|
588
|
+
isURLSearchParams: mi,
|
|
589
|
+
isTypedArray: Ai,
|
|
590
|
+
isFileList: fi,
|
|
591
|
+
forEach: yt,
|
|
598
592
|
merge: Pn,
|
|
599
|
-
extend:
|
|
600
|
-
trim:
|
|
601
|
-
stripBOM:
|
|
602
|
-
inherits:
|
|
603
|
-
toFlatObject:
|
|
604
|
-
kindOf:
|
|
593
|
+
extend: yi,
|
|
594
|
+
trim: bi,
|
|
595
|
+
stripBOM: Ni,
|
|
596
|
+
inherits: Oi,
|
|
597
|
+
toFlatObject: Si,
|
|
598
|
+
kindOf: zt,
|
|
605
599
|
kindOfTest: ge,
|
|
606
|
-
endsWith:
|
|
607
|
-
toArray:
|
|
608
|
-
forEachEntry:
|
|
609
|
-
matchAll:
|
|
610
|
-
isHTMLForm:
|
|
611
|
-
hasOwnProperty:
|
|
612
|
-
hasOwnProp:
|
|
600
|
+
endsWith: Ti,
|
|
601
|
+
toArray: Li,
|
|
602
|
+
forEachEntry: vi,
|
|
603
|
+
matchAll: Ci,
|
|
604
|
+
isHTMLForm: Ri,
|
|
605
|
+
hasOwnProperty: Sr,
|
|
606
|
+
hasOwnProp: Sr,
|
|
613
607
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
614
|
-
reduceDescriptors:
|
|
615
|
-
freezeMethods:
|
|
616
|
-
toObjectSet:
|
|
617
|
-
toCamelCase:
|
|
618
|
-
noop:
|
|
619
|
-
toFiniteNumber:
|
|
620
|
-
findKey:
|
|
608
|
+
reduceDescriptors: Ds,
|
|
609
|
+
freezeMethods: wi,
|
|
610
|
+
toObjectSet: Di,
|
|
611
|
+
toCamelCase: Ii,
|
|
612
|
+
noop: ki,
|
|
613
|
+
toFiniteNumber: Fi,
|
|
614
|
+
findKey: Ps,
|
|
621
615
|
global: je,
|
|
622
|
-
isContextDefined:
|
|
623
|
-
isSpecCompliantForm:
|
|
624
|
-
toJSONObject:
|
|
625
|
-
isAsyncFn:
|
|
626
|
-
isThenable:
|
|
627
|
-
setImmediate:
|
|
628
|
-
asap:
|
|
629
|
-
isIterable:
|
|
616
|
+
isContextDefined: ws,
|
|
617
|
+
isSpecCompliantForm: Ui,
|
|
618
|
+
toJSONObject: Mi,
|
|
619
|
+
isAsyncFn: xi,
|
|
620
|
+
isThenable: Vi,
|
|
621
|
+
setImmediate: ks,
|
|
622
|
+
asap: $i,
|
|
623
|
+
isIterable: Bi
|
|
630
624
|
};
|
|
631
625
|
function M(e, t, n, r, s) {
|
|
632
626
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), s && (this.response = s, this.status = s.status ? s.status : null);
|
|
@@ -652,7 +646,7 @@ h.inherits(M, Error, {
|
|
|
652
646
|
};
|
|
653
647
|
}
|
|
654
648
|
});
|
|
655
|
-
const
|
|
649
|
+
const Fs = M.prototype, Us = {};
|
|
656
650
|
[
|
|
657
651
|
"ERR_BAD_OPTION_VALUE",
|
|
658
652
|
"ERR_BAD_OPTION",
|
|
@@ -668,34 +662,34 @@ const ks = M.prototype, Fs = {};
|
|
|
668
662
|
"ERR_INVALID_URL"
|
|
669
663
|
// eslint-disable-next-line func-names
|
|
670
664
|
].forEach((e) => {
|
|
671
|
-
|
|
665
|
+
Us[e] = { value: e };
|
|
672
666
|
});
|
|
673
|
-
Object.defineProperties(M,
|
|
674
|
-
Object.defineProperty(
|
|
667
|
+
Object.defineProperties(M, Us);
|
|
668
|
+
Object.defineProperty(Fs, "isAxiosError", { value: !0 });
|
|
675
669
|
M.from = (e, t, n, r, s, o) => {
|
|
676
|
-
const i = Object.create(
|
|
670
|
+
const i = Object.create(Fs);
|
|
677
671
|
h.toFlatObject(e, i, function(l) {
|
|
678
672
|
return l !== Error.prototype;
|
|
679
673
|
}, (u) => u !== "isAxiosError");
|
|
680
674
|
const a = e && e.message ? e.message : "Error", c = t == null && e ? e.code : t;
|
|
681
675
|
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;
|
|
682
676
|
};
|
|
683
|
-
const
|
|
677
|
+
const ji = null;
|
|
684
678
|
function wn(e) {
|
|
685
679
|
return h.isPlainObject(e) || h.isArray(e);
|
|
686
680
|
}
|
|
687
|
-
function
|
|
681
|
+
function Ms(e) {
|
|
688
682
|
return h.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
689
683
|
}
|
|
690
|
-
function
|
|
684
|
+
function Tr(e, t, n) {
|
|
691
685
|
return e ? e.concat(t).map(function(s, o) {
|
|
692
|
-
return s =
|
|
686
|
+
return s = Ms(s), !n && o ? "[" + s + "]" : s;
|
|
693
687
|
}).join(n ? "." : "") : t;
|
|
694
688
|
}
|
|
695
|
-
function
|
|
689
|
+
function Hi(e) {
|
|
696
690
|
return h.isArray(e) && !e.some(wn);
|
|
697
691
|
}
|
|
698
|
-
const
|
|
692
|
+
const Wi = h.toFlatObject(h, {}, null, function(t) {
|
|
699
693
|
return /^is[A-Z]/.test(t);
|
|
700
694
|
});
|
|
701
695
|
function en(e, t, n) {
|
|
@@ -726,18 +720,18 @@ function en(e, t, n) {
|
|
|
726
720
|
if (E && !S && typeof E == "object") {
|
|
727
721
|
if (h.endsWith(b, "{}"))
|
|
728
722
|
b = r ? b : b.slice(0, -2), E = JSON.stringify(E);
|
|
729
|
-
else if (h.isArray(E) &&
|
|
730
|
-
return b =
|
|
723
|
+
else if (h.isArray(E) && Hi(E) || (h.isFileList(E) || h.endsWith(b, "[]")) && (m = h.toArray(E)))
|
|
724
|
+
return b = Ms(b), m.forEach(function(T, y) {
|
|
731
725
|
!(h.isUndefined(T) || T === null) && t.append(
|
|
732
726
|
// eslint-disable-next-line no-nested-ternary
|
|
733
|
-
i === !0 ?
|
|
727
|
+
i === !0 ? Tr([b], y, o) : i === null ? b : b + "[]",
|
|
734
728
|
u(T)
|
|
735
729
|
);
|
|
736
730
|
}), !1;
|
|
737
731
|
}
|
|
738
|
-
return wn(E) ? !0 : (t.append(
|
|
732
|
+
return wn(E) ? !0 : (t.append(Tr(S, b, o), u(E)), !1);
|
|
739
733
|
}
|
|
740
|
-
const p = [], g = Object.assign(
|
|
734
|
+
const p = [], g = Object.assign(Wi, {
|
|
741
735
|
defaultVisitor: l,
|
|
742
736
|
convertValue: u,
|
|
743
737
|
isVisitable: wn
|
|
@@ -761,7 +755,7 @@ function en(e, t, n) {
|
|
|
761
755
|
throw new TypeError("data must be an object");
|
|
762
756
|
return A(e), t;
|
|
763
757
|
}
|
|
764
|
-
function
|
|
758
|
+
function Lr(e) {
|
|
765
759
|
const t = {
|
|
766
760
|
"!": "%21",
|
|
767
761
|
"'": "%27",
|
|
@@ -778,25 +772,25 @@ function Tr(e) {
|
|
|
778
772
|
function nr(e, t) {
|
|
779
773
|
this._pairs = [], e && en(e, this, t);
|
|
780
774
|
}
|
|
781
|
-
const
|
|
782
|
-
|
|
775
|
+
const xs = nr.prototype;
|
|
776
|
+
xs.append = function(t, n) {
|
|
783
777
|
this._pairs.push([t, n]);
|
|
784
778
|
};
|
|
785
|
-
|
|
779
|
+
xs.toString = function(t) {
|
|
786
780
|
const n = t ? function(r) {
|
|
787
|
-
return t.call(this, r,
|
|
788
|
-
} :
|
|
781
|
+
return t.call(this, r, Lr);
|
|
782
|
+
} : Lr;
|
|
789
783
|
return this._pairs.map(function(s) {
|
|
790
784
|
return n(s[0]) + "=" + n(s[1]);
|
|
791
785
|
}, "").join("&");
|
|
792
786
|
};
|
|
793
|
-
function
|
|
787
|
+
function qi(e) {
|
|
794
788
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
795
789
|
}
|
|
796
|
-
function
|
|
790
|
+
function Vs(e, t, n) {
|
|
797
791
|
if (!t)
|
|
798
792
|
return e;
|
|
799
|
-
const r = n && n.encode ||
|
|
793
|
+
const r = n && n.encode || qi;
|
|
800
794
|
h.isFunction(n) && (n = {
|
|
801
795
|
serialize: n
|
|
802
796
|
});
|
|
@@ -808,7 +802,7 @@ function xs(e, t, n) {
|
|
|
808
802
|
}
|
|
809
803
|
return e;
|
|
810
804
|
}
|
|
811
|
-
class
|
|
805
|
+
class Ar {
|
|
812
806
|
constructor() {
|
|
813
807
|
this.handlers = [];
|
|
814
808
|
}
|
|
@@ -862,31 +856,31 @@ class Lr {
|
|
|
862
856
|
});
|
|
863
857
|
}
|
|
864
858
|
}
|
|
865
|
-
const
|
|
859
|
+
const $s = {
|
|
866
860
|
silentJSONParsing: !0,
|
|
867
861
|
forcedJSONParsing: !0,
|
|
868
862
|
clarifyTimeoutError: !1
|
|
869
|
-
},
|
|
863
|
+
}, Gi = typeof URLSearchParams < "u" ? URLSearchParams : nr, Yi = typeof FormData < "u" ? FormData : null, Ki = typeof Blob < "u" ? Blob : null, Xi = {
|
|
870
864
|
isBrowser: !0,
|
|
871
865
|
classes: {
|
|
872
|
-
URLSearchParams:
|
|
873
|
-
FormData:
|
|
874
|
-
Blob:
|
|
866
|
+
URLSearchParams: Gi,
|
|
867
|
+
FormData: Yi,
|
|
868
|
+
Blob: Ki
|
|
875
869
|
},
|
|
876
870
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
877
|
-
}, rr = typeof window < "u" && typeof document < "u", Dn = typeof navigator == "object" && navigator || void 0,
|
|
878
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
871
|
+
}, rr = typeof window < "u" && typeof document < "u", Dn = typeof navigator == "object" && navigator || void 0, Ji = rr && (!Dn || ["ReactNative", "NativeScript", "NS"].indexOf(Dn.product) < 0), Qi = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
872
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", zi = rr && window.location.href || "http://localhost", Zi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
879
873
|
__proto__: null,
|
|
880
874
|
hasBrowserEnv: rr,
|
|
881
|
-
hasStandardBrowserEnv:
|
|
875
|
+
hasStandardBrowserEnv: Ji,
|
|
882
876
|
hasStandardBrowserWebWorkerEnv: Qi,
|
|
883
877
|
navigator: Dn,
|
|
884
|
-
origin:
|
|
878
|
+
origin: zi
|
|
885
879
|
}, Symbol.toStringTag, { value: "Module" })), ae = {
|
|
886
|
-
...
|
|
887
|
-
...
|
|
880
|
+
...Zi,
|
|
881
|
+
...Xi
|
|
888
882
|
};
|
|
889
|
-
function
|
|
883
|
+
function ea(e, t) {
|
|
890
884
|
return en(e, new ae.classes.URLSearchParams(), {
|
|
891
885
|
visitor: function(n, r, s, o) {
|
|
892
886
|
return ae.isNode && h.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
@@ -894,10 +888,10 @@ function ta(e, t) {
|
|
|
894
888
|
...t
|
|
895
889
|
});
|
|
896
890
|
}
|
|
897
|
-
function
|
|
891
|
+
function ta(e) {
|
|
898
892
|
return h.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
899
893
|
}
|
|
900
|
-
function
|
|
894
|
+
function na(e) {
|
|
901
895
|
const t = {}, n = Object.keys(e);
|
|
902
896
|
let r;
|
|
903
897
|
const s = n.length;
|
|
@@ -906,22 +900,22 @@ function ra(e) {
|
|
|
906
900
|
o = n[r], t[o] = e[o];
|
|
907
901
|
return t;
|
|
908
902
|
}
|
|
909
|
-
function
|
|
903
|
+
function Bs(e) {
|
|
910
904
|
function t(n, r, s, o) {
|
|
911
905
|
let i = n[o++];
|
|
912
906
|
if (i === "__proto__") return !0;
|
|
913
907
|
const a = Number.isFinite(+i), c = o >= n.length;
|
|
914
|
-
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] =
|
|
908
|
+
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] = na(s[i])), !a);
|
|
915
909
|
}
|
|
916
910
|
if (h.isFormData(e) && h.isFunction(e.entries)) {
|
|
917
911
|
const n = {};
|
|
918
912
|
return h.forEachEntry(e, (r, s) => {
|
|
919
|
-
t(
|
|
913
|
+
t(ta(r), s, n, 0);
|
|
920
914
|
}), n;
|
|
921
915
|
}
|
|
922
916
|
return null;
|
|
923
917
|
}
|
|
924
|
-
function
|
|
918
|
+
function ra(e, t, n) {
|
|
925
919
|
if (h.isString(e))
|
|
926
920
|
try {
|
|
927
921
|
return (t || JSON.parse)(e), h.trim(e);
|
|
@@ -931,13 +925,13 @@ function sa(e, t, n) {
|
|
|
931
925
|
}
|
|
932
926
|
return (n || JSON.stringify)(e);
|
|
933
927
|
}
|
|
934
|
-
const
|
|
935
|
-
transitional:
|
|
928
|
+
const Nt = {
|
|
929
|
+
transitional: $s,
|
|
936
930
|
adapter: ["xhr", "http", "fetch"],
|
|
937
931
|
transformRequest: [function(t, n) {
|
|
938
932
|
const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = h.isObject(t);
|
|
939
933
|
if (o && h.isHTMLForm(t) && (t = new FormData(t)), h.isFormData(t))
|
|
940
|
-
return s ? JSON.stringify(
|
|
934
|
+
return s ? JSON.stringify(Bs(t)) : t;
|
|
941
935
|
if (h.isArrayBuffer(t) || h.isBuffer(t) || h.isStream(t) || h.isFile(t) || h.isBlob(t) || h.isReadableStream(t))
|
|
942
936
|
return t;
|
|
943
937
|
if (h.isArrayBufferView(t))
|
|
@@ -947,7 +941,7 @@ const Ot = {
|
|
|
947
941
|
let a;
|
|
948
942
|
if (o) {
|
|
949
943
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
950
|
-
return
|
|
944
|
+
return ea(t, this.formSerializer).toString();
|
|
951
945
|
if ((a = h.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
952
946
|
const c = this.env && this.env.FormData;
|
|
953
947
|
return en(
|
|
@@ -957,10 +951,10 @@ const Ot = {
|
|
|
957
951
|
);
|
|
958
952
|
}
|
|
959
953
|
}
|
|
960
|
-
return o || s ? (n.setContentType("application/json", !1),
|
|
954
|
+
return o || s ? (n.setContentType("application/json", !1), ra(t)) : t;
|
|
961
955
|
}],
|
|
962
956
|
transformResponse: [function(t) {
|
|
963
|
-
const n = this.transitional ||
|
|
957
|
+
const n = this.transitional || Nt.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
|
|
964
958
|
if (h.isResponse(t) || h.isReadableStream(t))
|
|
965
959
|
return t;
|
|
966
960
|
if (t && h.isString(t) && (r && !this.responseType || s)) {
|
|
@@ -998,9 +992,9 @@ const Ot = {
|
|
|
998
992
|
}
|
|
999
993
|
};
|
|
1000
994
|
h.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
1001
|
-
|
|
995
|
+
Nt.headers[e] = {};
|
|
1002
996
|
});
|
|
1003
|
-
const
|
|
997
|
+
const sa = h.toObjectSet([
|
|
1004
998
|
"age",
|
|
1005
999
|
"authorization",
|
|
1006
1000
|
"content-length",
|
|
@@ -1018,28 +1012,28 @@ const oa = h.toObjectSet([
|
|
|
1018
1012
|
"referer",
|
|
1019
1013
|
"retry-after",
|
|
1020
1014
|
"user-agent"
|
|
1021
|
-
]),
|
|
1015
|
+
]), oa = (e) => {
|
|
1022
1016
|
const t = {};
|
|
1023
1017
|
let n, r, s;
|
|
1024
1018
|
return e && e.split(`
|
|
1025
1019
|
`).forEach(function(i) {
|
|
1026
|
-
s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] &&
|
|
1020
|
+
s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && sa[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
1027
1021
|
}), t;
|
|
1028
|
-
},
|
|
1029
|
-
function
|
|
1022
|
+
}, vr = Symbol("internals");
|
|
1023
|
+
function lt(e) {
|
|
1030
1024
|
return e && String(e).trim().toLowerCase();
|
|
1031
1025
|
}
|
|
1032
|
-
function
|
|
1033
|
-
return e === !1 || e == null ? e : h.isArray(e) ? e.map(
|
|
1026
|
+
function Pt(e) {
|
|
1027
|
+
return e === !1 || e == null ? e : h.isArray(e) ? e.map(Pt) : String(e);
|
|
1034
1028
|
}
|
|
1035
|
-
function
|
|
1029
|
+
function ia(e) {
|
|
1036
1030
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
1037
1031
|
let r;
|
|
1038
1032
|
for (; r = n.exec(e); )
|
|
1039
1033
|
t[r[1]] = r[2];
|
|
1040
1034
|
return t;
|
|
1041
1035
|
}
|
|
1042
|
-
const
|
|
1036
|
+
const aa = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
1043
1037
|
function bn(e, t, n, r, s) {
|
|
1044
1038
|
if (h.isFunction(r))
|
|
1045
1039
|
return r.call(this, t, n);
|
|
@@ -1050,10 +1044,10 @@ function bn(e, t, n, r, s) {
|
|
|
1050
1044
|
return r.test(t);
|
|
1051
1045
|
}
|
|
1052
1046
|
}
|
|
1053
|
-
function
|
|
1047
|
+
function ca(e) {
|
|
1054
1048
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
|
|
1055
1049
|
}
|
|
1056
|
-
function
|
|
1050
|
+
function la(e, t) {
|
|
1057
1051
|
const n = h.toCamelCase(" " + t);
|
|
1058
1052
|
["get", "set", "has"].forEach((r) => {
|
|
1059
1053
|
Object.defineProperty(e, r + n, {
|
|
@@ -1071,17 +1065,17 @@ let fe = class {
|
|
|
1071
1065
|
set(t, n, r) {
|
|
1072
1066
|
const s = this;
|
|
1073
1067
|
function o(a, c, u) {
|
|
1074
|
-
const l =
|
|
1068
|
+
const l = lt(c);
|
|
1075
1069
|
if (!l)
|
|
1076
1070
|
throw new Error("header name must be a non-empty string");
|
|
1077
1071
|
const p = h.findKey(s, l);
|
|
1078
|
-
(!p || s[p] === void 0 || u === !0 || u === void 0 && s[p] !== !1) && (s[p || c] =
|
|
1072
|
+
(!p || s[p] === void 0 || u === !0 || u === void 0 && s[p] !== !1) && (s[p || c] = Pt(a));
|
|
1079
1073
|
}
|
|
1080
1074
|
const i = (a, c) => h.forEach(a, (u, l) => o(u, l, c));
|
|
1081
1075
|
if (h.isPlainObject(t) || t instanceof this.constructor)
|
|
1082
1076
|
i(t, n);
|
|
1083
|
-
else if (h.isString(t) && (t = t.trim()) && !
|
|
1084
|
-
i(
|
|
1077
|
+
else if (h.isString(t) && (t = t.trim()) && !aa(t))
|
|
1078
|
+
i(oa(t), n);
|
|
1085
1079
|
else if (h.isObject(t) && h.isIterable(t)) {
|
|
1086
1080
|
let a = {}, c, u;
|
|
1087
1081
|
for (const l of t) {
|
|
@@ -1095,14 +1089,14 @@ let fe = class {
|
|
|
1095
1089
|
return this;
|
|
1096
1090
|
}
|
|
1097
1091
|
get(t, n) {
|
|
1098
|
-
if (t =
|
|
1092
|
+
if (t = lt(t), t) {
|
|
1099
1093
|
const r = h.findKey(this, t);
|
|
1100
1094
|
if (r) {
|
|
1101
1095
|
const s = this[r];
|
|
1102
1096
|
if (!n)
|
|
1103
1097
|
return s;
|
|
1104
1098
|
if (n === !0)
|
|
1105
|
-
return
|
|
1099
|
+
return ia(s);
|
|
1106
1100
|
if (h.isFunction(n))
|
|
1107
1101
|
return n.call(this, s, r);
|
|
1108
1102
|
if (h.isRegExp(n))
|
|
@@ -1112,7 +1106,7 @@ let fe = class {
|
|
|
1112
1106
|
}
|
|
1113
1107
|
}
|
|
1114
1108
|
has(t, n) {
|
|
1115
|
-
if (t =
|
|
1109
|
+
if (t = lt(t), t) {
|
|
1116
1110
|
const r = h.findKey(this, t);
|
|
1117
1111
|
return !!(r && this[r] !== void 0 && (!n || bn(this, this[r], r, n)));
|
|
1118
1112
|
}
|
|
@@ -1122,7 +1116,7 @@ let fe = class {
|
|
|
1122
1116
|
const r = this;
|
|
1123
1117
|
let s = !1;
|
|
1124
1118
|
function o(i) {
|
|
1125
|
-
if (i =
|
|
1119
|
+
if (i = lt(i), i) {
|
|
1126
1120
|
const a = h.findKey(r, i);
|
|
1127
1121
|
a && (!n || bn(r, r[a], a, n)) && (delete r[a], s = !0);
|
|
1128
1122
|
}
|
|
@@ -1143,11 +1137,11 @@ let fe = class {
|
|
|
1143
1137
|
return h.forEach(this, (s, o) => {
|
|
1144
1138
|
const i = h.findKey(r, o);
|
|
1145
1139
|
if (i) {
|
|
1146
|
-
n[i] =
|
|
1140
|
+
n[i] = Pt(s), delete n[o];
|
|
1147
1141
|
return;
|
|
1148
1142
|
}
|
|
1149
|
-
const a = t ?
|
|
1150
|
-
a !== o && delete n[o], n[a] =
|
|
1143
|
+
const a = t ? ca(o) : String(o).trim();
|
|
1144
|
+
a !== o && delete n[o], n[a] = Pt(s), r[a] = !0;
|
|
1151
1145
|
}), this;
|
|
1152
1146
|
}
|
|
1153
1147
|
concat(...t) {
|
|
@@ -1180,12 +1174,12 @@ let fe = class {
|
|
|
1180
1174
|
return n.forEach((s) => r.set(s)), r;
|
|
1181
1175
|
}
|
|
1182
1176
|
static accessor(t) {
|
|
1183
|
-
const r = (this[
|
|
1177
|
+
const r = (this[vr] = this[vr] = {
|
|
1184
1178
|
accessors: {}
|
|
1185
1179
|
}).accessors, s = this.prototype;
|
|
1186
1180
|
function o(i) {
|
|
1187
|
-
const a =
|
|
1188
|
-
r[a] || (
|
|
1181
|
+
const a = lt(i);
|
|
1182
|
+
r[a] || (la(s, i), r[a] = !0);
|
|
1189
1183
|
}
|
|
1190
1184
|
return h.isArray(t) ? t.forEach(o) : o(t), this;
|
|
1191
1185
|
}
|
|
@@ -1202,22 +1196,22 @@ h.reduceDescriptors(fe.prototype, ({ value: e }, t) => {
|
|
|
1202
1196
|
});
|
|
1203
1197
|
h.freezeMethods(fe);
|
|
1204
1198
|
function yn(e, t) {
|
|
1205
|
-
const n = this ||
|
|
1199
|
+
const n = this || Nt, r = t || n, s = fe.from(r.headers);
|
|
1206
1200
|
let o = r.data;
|
|
1207
1201
|
return h.forEach(e, function(a) {
|
|
1208
1202
|
o = a.call(n, o, s.normalize(), t ? t.status : void 0);
|
|
1209
1203
|
}), s.normalize(), o;
|
|
1210
1204
|
}
|
|
1211
|
-
function
|
|
1205
|
+
function js(e) {
|
|
1212
1206
|
return !!(e && e.__CANCEL__);
|
|
1213
1207
|
}
|
|
1214
|
-
function
|
|
1208
|
+
function rt(e, t, n) {
|
|
1215
1209
|
M.call(this, e ?? "canceled", M.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
1216
1210
|
}
|
|
1217
|
-
h.inherits(
|
|
1211
|
+
h.inherits(rt, M, {
|
|
1218
1212
|
__CANCEL__: !0
|
|
1219
1213
|
});
|
|
1220
|
-
function
|
|
1214
|
+
function Hs(e, t, n) {
|
|
1221
1215
|
const r = n.config.validateStatus;
|
|
1222
1216
|
!n.status || !r || r(n.status) ? e(n) : t(new M(
|
|
1223
1217
|
"Request failed with status code " + n.status,
|
|
@@ -1227,11 +1221,11 @@ function js(e, t, n) {
|
|
|
1227
1221
|
n
|
|
1228
1222
|
));
|
|
1229
1223
|
}
|
|
1230
|
-
function
|
|
1224
|
+
function ua(e) {
|
|
1231
1225
|
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
1232
1226
|
return t && t[1] || "";
|
|
1233
1227
|
}
|
|
1234
|
-
function
|
|
1228
|
+
function fa(e, t) {
|
|
1235
1229
|
e = e || 10;
|
|
1236
1230
|
const n = new Array(e), r = new Array(e);
|
|
1237
1231
|
let s = 0, o = 0, i;
|
|
@@ -1247,7 +1241,7 @@ function da(e, t) {
|
|
|
1247
1241
|
return A ? Math.round(g * 1e3 / A) : void 0;
|
|
1248
1242
|
};
|
|
1249
1243
|
}
|
|
1250
|
-
function
|
|
1244
|
+
function da(e, t) {
|
|
1251
1245
|
let n = 0, r = 1e3 / t, s, o;
|
|
1252
1246
|
const i = (u, l = Date.now()) => {
|
|
1253
1247
|
n = l, s = null, o && (clearTimeout(o), o = null), e(...u);
|
|
@@ -1259,10 +1253,10 @@ function pa(e, t) {
|
|
|
1259
1253
|
}, r - p)));
|
|
1260
1254
|
}, () => s && i(s)];
|
|
1261
1255
|
}
|
|
1262
|
-
const
|
|
1256
|
+
const $t = (e, t, n = 3) => {
|
|
1263
1257
|
let r = 0;
|
|
1264
|
-
const s =
|
|
1265
|
-
return
|
|
1258
|
+
const s = fa(50, 250);
|
|
1259
|
+
return da((o) => {
|
|
1266
1260
|
const i = o.loaded, a = o.lengthComputable ? o.total : void 0, c = i - r, u = s(c), l = i <= a;
|
|
1267
1261
|
r = i;
|
|
1268
1262
|
const p = {
|
|
@@ -1278,17 +1272,17 @@ const Bt = (e, t, n = 3) => {
|
|
|
1278
1272
|
};
|
|
1279
1273
|
e(p);
|
|
1280
1274
|
}, n);
|
|
1281
|
-
},
|
|
1275
|
+
}, Cr = (e, t) => {
|
|
1282
1276
|
const n = e != null;
|
|
1283
1277
|
return [(r) => t[0]({
|
|
1284
1278
|
lengthComputable: n,
|
|
1285
1279
|
total: e,
|
|
1286
1280
|
loaded: r
|
|
1287
1281
|
}), t[1]];
|
|
1288
|
-
},
|
|
1282
|
+
}, Rr = (e) => (...t) => h.asap(() => e(...t)), pa = 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)))(
|
|
1289
1283
|
new URL(ae.origin),
|
|
1290
1284
|
ae.navigator && /(msie|trident)/i.test(ae.navigator.userAgent)
|
|
1291
|
-
) : () => !0,
|
|
1285
|
+
) : () => !0, ma = ae.hasStandardBrowserEnv ? (
|
|
1292
1286
|
// Standard browser envs support document.cookie
|
|
1293
1287
|
{
|
|
1294
1288
|
write(e, t, n, r, s, o, i) {
|
|
@@ -1317,17 +1311,17 @@ const Bt = (e, t, n = 3) => {
|
|
|
1317
1311
|
}
|
|
1318
1312
|
}
|
|
1319
1313
|
);
|
|
1320
|
-
function
|
|
1314
|
+
function _a(e) {
|
|
1321
1315
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
1322
1316
|
}
|
|
1323
|
-
function
|
|
1317
|
+
function ha(e, t) {
|
|
1324
1318
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
1325
1319
|
}
|
|
1326
|
-
function
|
|
1327
|
-
let r = !
|
|
1328
|
-
return e && (r || n == !1) ?
|
|
1320
|
+
function Ws(e, t, n) {
|
|
1321
|
+
let r = !_a(t);
|
|
1322
|
+
return e && (r || n == !1) ? ha(e, t) : t;
|
|
1329
1323
|
}
|
|
1330
|
-
const
|
|
1324
|
+
const Ir = (e) => e instanceof fe ? { ...e } : e;
|
|
1331
1325
|
function Ge(e, t) {
|
|
1332
1326
|
t = t || {};
|
|
1333
1327
|
const n = {};
|
|
@@ -1385,17 +1379,17 @@ function Ge(e, t) {
|
|
|
1385
1379
|
socketPath: i,
|
|
1386
1380
|
responseEncoding: i,
|
|
1387
1381
|
validateStatus: a,
|
|
1388
|
-
headers: (u, l, p) => s(
|
|
1382
|
+
headers: (u, l, p) => s(Ir(u), Ir(l), p, !0)
|
|
1389
1383
|
};
|
|
1390
1384
|
return h.forEach(Object.keys({ ...e, ...t }), function(l) {
|
|
1391
1385
|
const p = c[l] || s, g = p(e[l], t[l], l);
|
|
1392
1386
|
h.isUndefined(g) && p !== a || (n[l] = g);
|
|
1393
1387
|
}), n;
|
|
1394
1388
|
}
|
|
1395
|
-
const
|
|
1389
|
+
const qs = (e) => {
|
|
1396
1390
|
const t = Ge({}, e);
|
|
1397
1391
|
let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: a } = t;
|
|
1398
|
-
if (t.headers = i = fe.from(i), t.url =
|
|
1392
|
+
if (t.headers = i = fe.from(i), t.url = Vs(Ws(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), a && i.set(
|
|
1399
1393
|
"Authorization",
|
|
1400
1394
|
"Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
|
|
1401
1395
|
), h.isFormData(n)) {
|
|
@@ -1408,14 +1402,14 @@ const Ws = (e) => {
|
|
|
1408
1402
|
});
|
|
1409
1403
|
}
|
|
1410
1404
|
}
|
|
1411
|
-
if (ae.hasStandardBrowserEnv && (r && h.isFunction(r) && (r = r(t)), r || r !== !1 &&
|
|
1412
|
-
const c = s && o &&
|
|
1405
|
+
if (ae.hasStandardBrowserEnv && (r && h.isFunction(r) && (r = r(t)), r || r !== !1 && pa(t.url))) {
|
|
1406
|
+
const c = s && o && ma.read(o);
|
|
1413
1407
|
c && i.set(s, c);
|
|
1414
1408
|
}
|
|
1415
1409
|
return t;
|
|
1416
|
-
},
|
|
1410
|
+
}, Ea = typeof XMLHttpRequest < "u", ga = Ea && function(e) {
|
|
1417
1411
|
return new Promise(function(n, r) {
|
|
1418
|
-
const s =
|
|
1412
|
+
const s = qs(e);
|
|
1419
1413
|
let o = s.data;
|
|
1420
1414
|
const i = fe.from(s.headers).normalize();
|
|
1421
1415
|
let { responseType: a, onUploadProgress: c, onDownloadProgress: u } = s, l, p, g, A, E;
|
|
@@ -1437,7 +1431,7 @@ const Ws = (e) => {
|
|
|
1437
1431
|
config: e,
|
|
1438
1432
|
request: S
|
|
1439
1433
|
};
|
|
1440
|
-
|
|
1434
|
+
Hs(function(_) {
|
|
1441
1435
|
n(_), b();
|
|
1442
1436
|
}, function(_) {
|
|
1443
1437
|
r(_), b();
|
|
@@ -1452,7 +1446,7 @@ const Ws = (e) => {
|
|
|
1452
1446
|
R.event = y || null, r(R), S = null;
|
|
1453
1447
|
}, S.ontimeout = function() {
|
|
1454
1448
|
let y = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
1455
|
-
const C = s.transitional ||
|
|
1449
|
+
const C = s.transitional || $s;
|
|
1456
1450
|
s.timeoutErrorMessage && (y = s.timeoutErrorMessage), r(new M(
|
|
1457
1451
|
y,
|
|
1458
1452
|
C.clarifyTimeoutError ? M.ETIMEDOUT : M.ECONNABORTED,
|
|
@@ -1461,17 +1455,17 @@ const Ws = (e) => {
|
|
|
1461
1455
|
)), S = null;
|
|
1462
1456
|
}, o === void 0 && i.setContentType(null), "setRequestHeader" in S && h.forEach(i.toJSON(), function(y, C) {
|
|
1463
1457
|
S.setRequestHeader(C, y);
|
|
1464
|
-
}), h.isUndefined(s.withCredentials) || (S.withCredentials = !!s.withCredentials), a && a !== "json" && (S.responseType = s.responseType), u && ([g, E] =
|
|
1465
|
-
S && (r(!T || T.type ? new
|
|
1458
|
+
}), h.isUndefined(s.withCredentials) || (S.withCredentials = !!s.withCredentials), a && a !== "json" && (S.responseType = s.responseType), u && ([g, E] = $t(u, !0), S.addEventListener("progress", g)), c && S.upload && ([p, A] = $t(c), S.upload.addEventListener("progress", p), S.upload.addEventListener("loadend", A)), (s.cancelToken || s.signal) && (l = (T) => {
|
|
1459
|
+
S && (r(!T || T.type ? new rt(null, e, S) : T), S.abort(), S = null);
|
|
1466
1460
|
}, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
|
|
1467
|
-
const N =
|
|
1461
|
+
const N = ua(s.url);
|
|
1468
1462
|
if (N && ae.protocols.indexOf(N) === -1) {
|
|
1469
1463
|
r(new M("Unsupported protocol " + N + ":", M.ERR_BAD_REQUEST, e));
|
|
1470
1464
|
return;
|
|
1471
1465
|
}
|
|
1472
1466
|
S.send(o || null);
|
|
1473
1467
|
});
|
|
1474
|
-
},
|
|
1468
|
+
}, ba = (e, t) => {
|
|
1475
1469
|
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
1476
1470
|
if (t || n) {
|
|
1477
1471
|
let r = new AbortController(), s;
|
|
@@ -1479,7 +1473,7 @@ const Ws = (e) => {
|
|
|
1479
1473
|
if (!s) {
|
|
1480
1474
|
s = !0, a();
|
|
1481
1475
|
const l = u instanceof Error ? u : this.reason;
|
|
1482
|
-
r.abort(l instanceof M ? l : new
|
|
1476
|
+
r.abort(l instanceof M ? l : new rt(l instanceof Error ? l.message : l));
|
|
1483
1477
|
}
|
|
1484
1478
|
};
|
|
1485
1479
|
let i = t && setTimeout(() => {
|
|
@@ -1494,7 +1488,7 @@ const Ws = (e) => {
|
|
|
1494
1488
|
const { signal: c } = r;
|
|
1495
1489
|
return c.unsubscribe = () => h.asap(a), c;
|
|
1496
1490
|
}
|
|
1497
|
-
},
|
|
1491
|
+
}, ya = function* (e, t) {
|
|
1498
1492
|
let n = e.byteLength;
|
|
1499
1493
|
if (n < t) {
|
|
1500
1494
|
yield e;
|
|
@@ -1503,10 +1497,10 @@ const Ws = (e) => {
|
|
|
1503
1497
|
let r = 0, s;
|
|
1504
1498
|
for (; r < n; )
|
|
1505
1499
|
s = r + t, yield e.slice(r, s), r = s;
|
|
1506
|
-
},
|
|
1507
|
-
for await (const n of
|
|
1508
|
-
yield*
|
|
1509
|
-
},
|
|
1500
|
+
}, Na = async function* (e, t) {
|
|
1501
|
+
for await (const n of Oa(e))
|
|
1502
|
+
yield* ya(n, t);
|
|
1503
|
+
}, Oa = async function* (e) {
|
|
1510
1504
|
if (e[Symbol.asyncIterator]) {
|
|
1511
1505
|
yield* e;
|
|
1512
1506
|
return;
|
|
@@ -1522,8 +1516,8 @@ const Ws = (e) => {
|
|
|
1522
1516
|
} finally {
|
|
1523
1517
|
await t.cancel();
|
|
1524
1518
|
}
|
|
1525
|
-
},
|
|
1526
|
-
const s =
|
|
1519
|
+
}, Pr = (e, t, n, r) => {
|
|
1520
|
+
const s = Na(e, t);
|
|
1527
1521
|
let o = 0, i, a = (c) => {
|
|
1528
1522
|
i || (i = !0, r && r(c));
|
|
1529
1523
|
};
|
|
@@ -1551,36 +1545,36 @@ const Ws = (e) => {
|
|
|
1551
1545
|
}, {
|
|
1552
1546
|
highWaterMark: 2
|
|
1553
1547
|
});
|
|
1554
|
-
},
|
|
1548
|
+
}, wr = 64 * 1024, { isFunction: Lt } = h, Sa = (({ Request: e, Response: t }) => ({
|
|
1555
1549
|
Request: e,
|
|
1556
1550
|
Response: t
|
|
1557
1551
|
}))(h.global), {
|
|
1558
|
-
ReadableStream:
|
|
1559
|
-
TextEncoder:
|
|
1560
|
-
} = h.global,
|
|
1552
|
+
ReadableStream: Dr,
|
|
1553
|
+
TextEncoder: kr
|
|
1554
|
+
} = h.global, Fr = (e, ...t) => {
|
|
1561
1555
|
try {
|
|
1562
1556
|
return !!e(...t);
|
|
1563
1557
|
} catch {
|
|
1564
1558
|
return !1;
|
|
1565
1559
|
}
|
|
1566
|
-
},
|
|
1560
|
+
}, Ta = (e) => {
|
|
1567
1561
|
e = h.merge.call({
|
|
1568
1562
|
skipUndefined: !0
|
|
1569
|
-
},
|
|
1570
|
-
const { fetch: t, Request: n, Response: r } = e, s = t ?
|
|
1563
|
+
}, Sa, e);
|
|
1564
|
+
const { fetch: t, Request: n, Response: r } = e, s = t ? Lt(t) : typeof fetch == "function", o = Lt(n), i = Lt(r);
|
|
1571
1565
|
if (!s)
|
|
1572
1566
|
return !1;
|
|
1573
|
-
const a = s &&
|
|
1567
|
+
const a = s && Lt(Dr), c = s && (typeof kr == "function" ? /* @__PURE__ */ ((E) => (b) => E.encode(b))(new kr()) : async (E) => new Uint8Array(await new n(E).arrayBuffer())), u = o && a && Fr(() => {
|
|
1574
1568
|
let E = !1;
|
|
1575
1569
|
const b = new n(ae.origin, {
|
|
1576
|
-
body: new
|
|
1570
|
+
body: new Dr(),
|
|
1577
1571
|
method: "POST",
|
|
1578
1572
|
get duplex() {
|
|
1579
1573
|
return E = !0, "half";
|
|
1580
1574
|
}
|
|
1581
1575
|
}).headers.has("Content-Type");
|
|
1582
1576
|
return E && !b;
|
|
1583
|
-
}), l = i && a &&
|
|
1577
|
+
}), l = i && a && Fr(() => h.isReadableStream(new r("").body)), p = {
|
|
1584
1578
|
stream: l && ((E) => E.body)
|
|
1585
1579
|
};
|
|
1586
1580
|
s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((E) => {
|
|
@@ -1623,9 +1617,9 @@ const Ws = (e) => {
|
|
|
1623
1617
|
headers: x,
|
|
1624
1618
|
withCredentials: U = "same-origin",
|
|
1625
1619
|
fetchOptions: I
|
|
1626
|
-
} =
|
|
1620
|
+
} = qs(E), P = t || fetch;
|
|
1627
1621
|
_ = _ ? (_ + "").toLowerCase() : "text";
|
|
1628
|
-
let k =
|
|
1622
|
+
let k = ba([N, T && T.toAbortSignal()], y), W = null;
|
|
1629
1623
|
const ne = k && k.unsubscribe && (() => {
|
|
1630
1624
|
k.unsubscribe();
|
|
1631
1625
|
});
|
|
@@ -1638,11 +1632,11 @@ const Ws = (e) => {
|
|
|
1638
1632
|
duplex: "half"
|
|
1639
1633
|
}), ye;
|
|
1640
1634
|
if (h.isFormData(m) && (ye = ce.headers.get("content-type")) && x.setContentType(ye), ce.body) {
|
|
1641
|
-
const [Me, De] =
|
|
1635
|
+
const [Me, De] = Cr(
|
|
1642
1636
|
be,
|
|
1643
|
-
|
|
1637
|
+
$t(Rr(R))
|
|
1644
1638
|
);
|
|
1645
|
-
m =
|
|
1639
|
+
m = Pr(ce.body, wr, Me, De);
|
|
1646
1640
|
}
|
|
1647
1641
|
}
|
|
1648
1642
|
h.isString(U) || (U = U ? "include" : "omit");
|
|
@@ -1657,18 +1651,18 @@ const Ws = (e) => {
|
|
|
1657
1651
|
};
|
|
1658
1652
|
W = o && new n(b, we);
|
|
1659
1653
|
let Z = await (o ? P(W, I) : P(b, we));
|
|
1660
|
-
const
|
|
1661
|
-
if (l && (C ||
|
|
1654
|
+
const z = l && (_ === "stream" || _ === "response");
|
|
1655
|
+
if (l && (C || z && ne)) {
|
|
1662
1656
|
const ce = {};
|
|
1663
1657
|
["status", "statusText", "headers"].forEach((Xe) => {
|
|
1664
1658
|
ce[Xe] = Z[Xe];
|
|
1665
1659
|
});
|
|
1666
|
-
const ye = h.toFiniteNumber(Z.headers.get("content-length")), [Me, De] = C &&
|
|
1660
|
+
const ye = h.toFiniteNumber(Z.headers.get("content-length")), [Me, De] = C && Cr(
|
|
1667
1661
|
ye,
|
|
1668
|
-
|
|
1662
|
+
$t(Rr(C), !0)
|
|
1669
1663
|
) || [];
|
|
1670
1664
|
Z = new r(
|
|
1671
|
-
|
|
1665
|
+
Pr(Z.body, wr, Me, () => {
|
|
1672
1666
|
De && De(), ne && ne();
|
|
1673
1667
|
}),
|
|
1674
1668
|
ce
|
|
@@ -1676,8 +1670,8 @@ const Ws = (e) => {
|
|
|
1676
1670
|
}
|
|
1677
1671
|
_ = _ || "text";
|
|
1678
1672
|
let _e = await p[h.findKey(p, _) || "text"](Z, E);
|
|
1679
|
-
return !
|
|
1680
|
-
|
|
1673
|
+
return !z && ne && ne(), await new Promise((ce, ye) => {
|
|
1674
|
+
Hs(ce, ye, {
|
|
1681
1675
|
data: _e,
|
|
1682
1676
|
headers: fe.from(Z.headers),
|
|
1683
1677
|
status: Z.status,
|
|
@@ -1695,24 +1689,24 @@ const Ws = (e) => {
|
|
|
1695
1689
|
) : M.from(se, se && se.code, E, W);
|
|
1696
1690
|
}
|
|
1697
1691
|
};
|
|
1698
|
-
},
|
|
1692
|
+
}, La = /* @__PURE__ */ new Map(), Gs = (e) => {
|
|
1699
1693
|
let t = e && e.env || {};
|
|
1700
1694
|
const { fetch: n, Request: r, Response: s } = t, o = [
|
|
1701
1695
|
r,
|
|
1702
1696
|
s,
|
|
1703
1697
|
n
|
|
1704
1698
|
];
|
|
1705
|
-
let i = o.length, a = i, c, u, l =
|
|
1699
|
+
let i = o.length, a = i, c, u, l = La;
|
|
1706
1700
|
for (; a--; )
|
|
1707
|
-
c = o[a], u = l.get(c), u === void 0 && l.set(c, u = a ? /* @__PURE__ */ new Map() :
|
|
1701
|
+
c = o[a], u = l.get(c), u === void 0 && l.set(c, u = a ? /* @__PURE__ */ new Map() : Ta(t)), l = u;
|
|
1708
1702
|
return u;
|
|
1709
1703
|
};
|
|
1710
|
-
|
|
1704
|
+
Gs();
|
|
1711
1705
|
const sr = {
|
|
1712
|
-
http:
|
|
1713
|
-
xhr:
|
|
1706
|
+
http: ji,
|
|
1707
|
+
xhr: ga,
|
|
1714
1708
|
fetch: {
|
|
1715
|
-
get:
|
|
1709
|
+
get: Gs
|
|
1716
1710
|
}
|
|
1717
1711
|
};
|
|
1718
1712
|
h.forEach(sr, (e, t) => {
|
|
@@ -1724,8 +1718,8 @@ h.forEach(sr, (e, t) => {
|
|
|
1724
1718
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
1725
1719
|
}
|
|
1726
1720
|
});
|
|
1727
|
-
const
|
|
1728
|
-
function
|
|
1721
|
+
const Ur = (e) => `- ${e}`, Aa = (e) => h.isFunction(e) || e === null || e === !1;
|
|
1722
|
+
function va(e, t) {
|
|
1729
1723
|
e = h.isArray(e) ? e : [e];
|
|
1730
1724
|
const { length: n } = e;
|
|
1731
1725
|
let r, s;
|
|
@@ -1733,7 +1727,7 @@ function Ca(e, t) {
|
|
|
1733
1727
|
for (let i = 0; i < n; i++) {
|
|
1734
1728
|
r = e[i];
|
|
1735
1729
|
let a;
|
|
1736
|
-
if (s = r, !
|
|
1730
|
+
if (s = r, !Aa(r) && (s = sr[(a = String(r)).toLowerCase()], s === void 0))
|
|
1737
1731
|
throw new M(`Unknown adapter '${a}'`);
|
|
1738
1732
|
if (s && (h.isFunction(s) || (s = s.get(t))))
|
|
1739
1733
|
break;
|
|
@@ -1744,8 +1738,8 @@ function Ca(e, t) {
|
|
|
1744
1738
|
([c, u]) => `adapter ${c} ` + (u === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1745
1739
|
);
|
|
1746
1740
|
let a = n ? i.length > 1 ? `since :
|
|
1747
|
-
` + i.map(
|
|
1748
|
-
`) : " " +
|
|
1741
|
+
` + i.map(Ur).join(`
|
|
1742
|
+
`) : " " + Ur(i[0]) : "as no adapter specified";
|
|
1749
1743
|
throw new M(
|
|
1750
1744
|
"There is no suitable adapter to dispatch the request " + a,
|
|
1751
1745
|
"ERR_NOT_SUPPORT"
|
|
@@ -1753,12 +1747,12 @@ function Ca(e, t) {
|
|
|
1753
1747
|
}
|
|
1754
1748
|
return s;
|
|
1755
1749
|
}
|
|
1756
|
-
const
|
|
1750
|
+
const Ys = {
|
|
1757
1751
|
/**
|
|
1758
1752
|
* Resolve an adapter from a list of adapter names or functions.
|
|
1759
1753
|
* @type {Function}
|
|
1760
1754
|
*/
|
|
1761
|
-
getAdapter:
|
|
1755
|
+
getAdapter: va,
|
|
1762
1756
|
/**
|
|
1763
1757
|
* Exposes all known adapters
|
|
1764
1758
|
* @type {Object<string, Function|Object>}
|
|
@@ -1767,36 +1761,36 @@ const Gs = {
|
|
|
1767
1761
|
};
|
|
1768
1762
|
function Nn(e) {
|
|
1769
1763
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1770
|
-
throw new
|
|
1764
|
+
throw new rt(null, e);
|
|
1771
1765
|
}
|
|
1772
|
-
function
|
|
1766
|
+
function Mr(e) {
|
|
1773
1767
|
return Nn(e), e.headers = fe.from(e.headers), e.data = yn.call(
|
|
1774
1768
|
e,
|
|
1775
1769
|
e.transformRequest
|
|
1776
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
1770
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Ys.getAdapter(e.adapter || Nt.adapter, e)(e).then(function(r) {
|
|
1777
1771
|
return Nn(e), r.data = yn.call(
|
|
1778
1772
|
e,
|
|
1779
1773
|
e.transformResponse,
|
|
1780
1774
|
r
|
|
1781
1775
|
), r.headers = fe.from(r.headers), r;
|
|
1782
1776
|
}, function(r) {
|
|
1783
|
-
return
|
|
1777
|
+
return js(r) || (Nn(e), r && r.response && (r.response.data = yn.call(
|
|
1784
1778
|
e,
|
|
1785
1779
|
e.transformResponse,
|
|
1786
1780
|
r.response
|
|
1787
1781
|
), r.response.headers = fe.from(r.response.headers))), Promise.reject(r);
|
|
1788
1782
|
});
|
|
1789
1783
|
}
|
|
1790
|
-
const
|
|
1784
|
+
const Ks = "1.13.2", tn = {};
|
|
1791
1785
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1792
1786
|
tn[e] = function(r) {
|
|
1793
1787
|
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1794
1788
|
};
|
|
1795
1789
|
});
|
|
1796
|
-
const
|
|
1790
|
+
const xr = {};
|
|
1797
1791
|
tn.transitional = function(t, n, r) {
|
|
1798
1792
|
function s(o, i) {
|
|
1799
|
-
return "[Axios v" +
|
|
1793
|
+
return "[Axios v" + Ks + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
|
|
1800
1794
|
}
|
|
1801
1795
|
return (o, i, a) => {
|
|
1802
1796
|
if (t === !1)
|
|
@@ -1804,7 +1798,7 @@ tn.transitional = function(t, n, r) {
|
|
|
1804
1798
|
s(i, " has been removed" + (n ? " in " + n : "")),
|
|
1805
1799
|
M.ERR_DEPRECATED
|
|
1806
1800
|
);
|
|
1807
|
-
return n && !
|
|
1801
|
+
return n && !xr[i] && (xr[i] = !0, console.warn(
|
|
1808
1802
|
s(
|
|
1809
1803
|
i,
|
|
1810
1804
|
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
@@ -1815,7 +1809,7 @@ tn.transitional = function(t, n, r) {
|
|
|
1815
1809
|
tn.spelling = function(t) {
|
|
1816
1810
|
return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
|
|
1817
1811
|
};
|
|
1818
|
-
function
|
|
1812
|
+
function Ca(e, t, n) {
|
|
1819
1813
|
if (typeof e != "object")
|
|
1820
1814
|
throw new M("options must be an object", M.ERR_BAD_OPTION_VALUE);
|
|
1821
1815
|
const r = Object.keys(e);
|
|
@@ -1832,15 +1826,15 @@ function Ra(e, t, n) {
|
|
|
1832
1826
|
throw new M("Unknown option " + o, M.ERR_BAD_OPTION);
|
|
1833
1827
|
}
|
|
1834
1828
|
}
|
|
1835
|
-
const
|
|
1836
|
-
assertOptions:
|
|
1829
|
+
const wt = {
|
|
1830
|
+
assertOptions: Ca,
|
|
1837
1831
|
validators: tn
|
|
1838
|
-
}, Ne =
|
|
1832
|
+
}, Ne = wt.validators;
|
|
1839
1833
|
let We = class {
|
|
1840
1834
|
constructor(t) {
|
|
1841
1835
|
this.defaults = t || {}, this.interceptors = {
|
|
1842
|
-
request: new
|
|
1843
|
-
response: new
|
|
1836
|
+
request: new Ar(),
|
|
1837
|
+
response: new Ar()
|
|
1844
1838
|
};
|
|
1845
1839
|
}
|
|
1846
1840
|
/**
|
|
@@ -1871,16 +1865,16 @@ let We = class {
|
|
|
1871
1865
|
_request(t, n) {
|
|
1872
1866
|
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = Ge(this.defaults, n);
|
|
1873
1867
|
const { transitional: r, paramsSerializer: s, headers: o } = n;
|
|
1874
|
-
r !== void 0 &&
|
|
1868
|
+
r !== void 0 && wt.assertOptions(r, {
|
|
1875
1869
|
silentJSONParsing: Ne.transitional(Ne.boolean),
|
|
1876
1870
|
forcedJSONParsing: Ne.transitional(Ne.boolean),
|
|
1877
1871
|
clarifyTimeoutError: Ne.transitional(Ne.boolean)
|
|
1878
1872
|
}, !1), s != null && (h.isFunction(s) ? n.paramsSerializer = {
|
|
1879
1873
|
serialize: s
|
|
1880
|
-
} :
|
|
1874
|
+
} : wt.assertOptions(s, {
|
|
1881
1875
|
encode: Ne.function,
|
|
1882
1876
|
serialize: Ne.function
|
|
1883
|
-
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0),
|
|
1877
|
+
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), wt.assertOptions(n, {
|
|
1884
1878
|
baseUrl: Ne.spelling("baseURL"),
|
|
1885
1879
|
withXsrfToken: Ne.spelling("withXSRFToken")
|
|
1886
1880
|
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
@@ -1905,7 +1899,7 @@ let We = class {
|
|
|
1905
1899
|
});
|
|
1906
1900
|
let l, p = 0, g;
|
|
1907
1901
|
if (!c) {
|
|
1908
|
-
const E = [
|
|
1902
|
+
const E = [Mr.bind(this), void 0];
|
|
1909
1903
|
for (E.unshift(...a), E.push(...u), g = E.length, l = Promise.resolve(n); p < g; )
|
|
1910
1904
|
l = l.then(E[p++], E[p++]);
|
|
1911
1905
|
return l;
|
|
@@ -1922,7 +1916,7 @@ let We = class {
|
|
|
1922
1916
|
}
|
|
1923
1917
|
}
|
|
1924
1918
|
try {
|
|
1925
|
-
l =
|
|
1919
|
+
l = Mr.call(this, A);
|
|
1926
1920
|
} catch (E) {
|
|
1927
1921
|
return Promise.reject(E);
|
|
1928
1922
|
}
|
|
@@ -1932,8 +1926,8 @@ let We = class {
|
|
|
1932
1926
|
}
|
|
1933
1927
|
getUri(t) {
|
|
1934
1928
|
t = Ge(this.defaults, t);
|
|
1935
|
-
const n =
|
|
1936
|
-
return
|
|
1929
|
+
const n = Ws(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
1930
|
+
return Vs(n, t.params, t.paramsSerializer);
|
|
1937
1931
|
}
|
|
1938
1932
|
};
|
|
1939
1933
|
h.forEach(["delete", "get", "head", "options"], function(t) {
|
|
@@ -1960,7 +1954,7 @@ h.forEach(["post", "put", "patch"], function(t) {
|
|
|
1960
1954
|
}
|
|
1961
1955
|
We.prototype[t] = n(), We.prototype[t + "Form"] = n(!0);
|
|
1962
1956
|
});
|
|
1963
|
-
let
|
|
1957
|
+
let Ra = class Xs {
|
|
1964
1958
|
constructor(t) {
|
|
1965
1959
|
if (typeof t != "function")
|
|
1966
1960
|
throw new TypeError("executor must be a function.");
|
|
@@ -1984,7 +1978,7 @@ let Ia = class Ks {
|
|
|
1984
1978
|
r.unsubscribe(o);
|
|
1985
1979
|
}, i;
|
|
1986
1980
|
}, t(function(o, i, a) {
|
|
1987
|
-
r.reason || (r.reason = new
|
|
1981
|
+
r.reason || (r.reason = new rt(o, i, a), n(r.reason));
|
|
1988
1982
|
});
|
|
1989
1983
|
}
|
|
1990
1984
|
/**
|
|
@@ -2026,19 +2020,19 @@ let Ia = class Ks {
|
|
|
2026
2020
|
static source() {
|
|
2027
2021
|
let t;
|
|
2028
2022
|
return {
|
|
2029
|
-
token: new
|
|
2023
|
+
token: new Xs(function(s) {
|
|
2030
2024
|
t = s;
|
|
2031
2025
|
}),
|
|
2032
2026
|
cancel: t
|
|
2033
2027
|
};
|
|
2034
2028
|
}
|
|
2035
2029
|
};
|
|
2036
|
-
function
|
|
2030
|
+
function Ia(e) {
|
|
2037
2031
|
return function(n) {
|
|
2038
2032
|
return e.apply(null, n);
|
|
2039
2033
|
};
|
|
2040
2034
|
}
|
|
2041
|
-
function
|
|
2035
|
+
function Pa(e) {
|
|
2042
2036
|
return h.isObject(e) && e.isAxiosError === !0;
|
|
2043
2037
|
}
|
|
2044
2038
|
const kn = {
|
|
@@ -2115,103 +2109,103 @@ const kn = {
|
|
|
2115
2109
|
Object.entries(kn).forEach(([e, t]) => {
|
|
2116
2110
|
kn[t] = e;
|
|
2117
2111
|
});
|
|
2118
|
-
function
|
|
2119
|
-
const t = new We(e), n =
|
|
2112
|
+
function Js(e) {
|
|
2113
|
+
const t = new We(e), n = vs(We.prototype.request, t);
|
|
2120
2114
|
return h.extend(n, We.prototype, t, { allOwnKeys: !0 }), h.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
2121
|
-
return
|
|
2115
|
+
return Js(Ge(e, s));
|
|
2122
2116
|
}, n;
|
|
2123
2117
|
}
|
|
2124
|
-
const
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2118
|
+
const Q = Js(Nt);
|
|
2119
|
+
Q.Axios = We;
|
|
2120
|
+
Q.CanceledError = rt;
|
|
2121
|
+
Q.CancelToken = Ra;
|
|
2122
|
+
Q.isCancel = js;
|
|
2123
|
+
Q.VERSION = Ks;
|
|
2124
|
+
Q.toFormData = en;
|
|
2125
|
+
Q.AxiosError = M;
|
|
2126
|
+
Q.Cancel = Q.CanceledError;
|
|
2127
|
+
Q.all = function(t) {
|
|
2134
2128
|
return Promise.all(t);
|
|
2135
2129
|
};
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2130
|
+
Q.spread = Ia;
|
|
2131
|
+
Q.isAxiosError = Pa;
|
|
2132
|
+
Q.mergeConfig = Ge;
|
|
2133
|
+
Q.AxiosHeaders = fe;
|
|
2134
|
+
Q.formToJSON = (e) => Bs(h.isHTMLForm(e) ? new FormData(e) : e);
|
|
2135
|
+
Q.getAdapter = Ys.getAdapter;
|
|
2136
|
+
Q.HttpStatusCode = kn;
|
|
2137
|
+
Q.default = Q;
|
|
2144
2138
|
const {
|
|
2145
|
-
Axios:
|
|
2146
|
-
AxiosError:
|
|
2147
|
-
CanceledError:
|
|
2148
|
-
isCancel:
|
|
2149
|
-
CancelToken:
|
|
2150
|
-
VERSION:
|
|
2151
|
-
all:
|
|
2152
|
-
Cancel:
|
|
2153
|
-
isAxiosError:
|
|
2154
|
-
spread:
|
|
2155
|
-
toFormData:
|
|
2156
|
-
AxiosHeaders:
|
|
2157
|
-
HttpStatusCode:
|
|
2158
|
-
formToJSON:
|
|
2159
|
-
getAdapter:
|
|
2160
|
-
mergeConfig:
|
|
2161
|
-
} =
|
|
2162
|
-
let
|
|
2163
|
-
function
|
|
2164
|
-
if (
|
|
2139
|
+
Axios: qu,
|
|
2140
|
+
AxiosError: Gu,
|
|
2141
|
+
CanceledError: Yu,
|
|
2142
|
+
isCancel: Ku,
|
|
2143
|
+
CancelToken: Xu,
|
|
2144
|
+
VERSION: Ju,
|
|
2145
|
+
all: Qu,
|
|
2146
|
+
Cancel: zu,
|
|
2147
|
+
isAxiosError: Zu,
|
|
2148
|
+
spread: ef,
|
|
2149
|
+
toFormData: tf,
|
|
2150
|
+
AxiosHeaders: nf,
|
|
2151
|
+
HttpStatusCode: Vr,
|
|
2152
|
+
formToJSON: rf,
|
|
2153
|
+
getAdapter: sf,
|
|
2154
|
+
mergeConfig: of
|
|
2155
|
+
} = Q;
|
|
2156
|
+
let Bt = null;
|
|
2157
|
+
function af(e) {
|
|
2158
|
+
if (Bt !== null) {
|
|
2165
2159
|
console.warn(
|
|
2166
2160
|
"[LinID CoreLib] HTTP client has already been initialized. Re-initialization is ignored."
|
|
2167
2161
|
);
|
|
2168
2162
|
return;
|
|
2169
2163
|
}
|
|
2170
|
-
|
|
2164
|
+
Bt = e;
|
|
2171
2165
|
}
|
|
2172
2166
|
function Ie() {
|
|
2173
|
-
if (
|
|
2167
|
+
if (Bt === null)
|
|
2174
2168
|
throw new Error(
|
|
2175
2169
|
"[LinID CoreLib] HTTP client is not initialized. Call setHttpClient() first."
|
|
2176
2170
|
);
|
|
2177
|
-
return
|
|
2171
|
+
return Bt;
|
|
2178
2172
|
}
|
|
2179
|
-
const
|
|
2180
|
-
function
|
|
2181
|
-
|
|
2173
|
+
const Qs = /* @__PURE__ */ new Map();
|
|
2174
|
+
function cf(e) {
|
|
2175
|
+
Qs.set(e.instanceId, e);
|
|
2182
2176
|
}
|
|
2183
|
-
function
|
|
2184
|
-
const t =
|
|
2177
|
+
function st(e) {
|
|
2178
|
+
const t = Qs.get(e);
|
|
2185
2179
|
if (!t)
|
|
2186
2180
|
throw new Error(
|
|
2187
2181
|
`[LinID CoreLib] No module host configuration found for instanceId: ${e}`
|
|
2188
2182
|
);
|
|
2189
2183
|
return t;
|
|
2190
2184
|
}
|
|
2191
|
-
async function
|
|
2192
|
-
const n =
|
|
2185
|
+
async function lf(e, t) {
|
|
2186
|
+
const n = st(e);
|
|
2193
2187
|
return Ie().post(`/${n.apiEndpoint}`, t).then(({ data: r }) => r);
|
|
2194
2188
|
}
|
|
2195
|
-
async function
|
|
2196
|
-
const r =
|
|
2189
|
+
async function uf(e, t, n) {
|
|
2190
|
+
const r = st(e);
|
|
2197
2191
|
return Ie().put(`/${r.apiEndpoint}/${t}`, n).then(({ data: s }) => s);
|
|
2198
2192
|
}
|
|
2199
|
-
async function
|
|
2200
|
-
const r =
|
|
2193
|
+
async function ff(e, t, n) {
|
|
2194
|
+
const r = st(e);
|
|
2201
2195
|
return Ie().get(`/${r.apiEndpoint}`, {
|
|
2202
2196
|
params: { ...t, ...n }
|
|
2203
2197
|
}).then(({ data: s }) => s);
|
|
2204
2198
|
}
|
|
2205
|
-
async function
|
|
2206
|
-
const n =
|
|
2199
|
+
async function df(e, t) {
|
|
2200
|
+
const n = st(e);
|
|
2207
2201
|
return Ie().get(`/${n.apiEndpoint}/${t}`).then(({ data: r }) => r);
|
|
2208
2202
|
}
|
|
2209
|
-
async function
|
|
2210
|
-
const n =
|
|
2203
|
+
async function pf(e, t) {
|
|
2204
|
+
const n = st(e);
|
|
2211
2205
|
return Ie().delete(`/${n.apiEndpoint}/${t}`);
|
|
2212
2206
|
}
|
|
2213
|
-
async function
|
|
2214
|
-
const r =
|
|
2207
|
+
async function wa(e, t, n) {
|
|
2208
|
+
const r = st(e);
|
|
2215
2209
|
await Ie().post(
|
|
2216
2210
|
`/${r.apiEndpoint}/validate/${t}`,
|
|
2217
2211
|
n,
|
|
@@ -2221,9 +2215,9 @@ async function Da(e, t, n) {
|
|
|
2221
2215
|
function Le(e, t) {
|
|
2222
2216
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
2223
2217
|
}
|
|
2224
|
-
const
|
|
2225
|
-
function
|
|
2226
|
-
|
|
2218
|
+
const $r = {};
|
|
2219
|
+
function Da(e) {
|
|
2220
|
+
$r[e] || ($r[e] = !0, Le(e));
|
|
2227
2221
|
}
|
|
2228
2222
|
const Re = typeof window < "u";
|
|
2229
2223
|
let de, Ye;
|
|
@@ -2236,21 +2230,21 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
2236
2230
|
e.measure(t, n, r), e.clearMarks(n), e.clearMarks(r);
|
|
2237
2231
|
});
|
|
2238
2232
|
}
|
|
2239
|
-
const
|
|
2233
|
+
const ka = /\{([0-9a-zA-Z]+)\}/g;
|
|
2240
2234
|
function nn(e, ...t) {
|
|
2241
|
-
return t.length === 1 && B(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(
|
|
2235
|
+
return t.length === 1 && B(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(ka, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
|
|
2242
2236
|
}
|
|
2243
|
-
const Pe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e),
|
|
2244
|
-
let
|
|
2245
|
-
const He = () =>
|
|
2246
|
-
function
|
|
2237
|
+
const Pe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Fa = (e, t, n) => Ua({ l: e, k: t, s: n }), Ua = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ee = (e) => typeof e == "number" && isFinite(e), Ma = (e) => or(e) === "[object Date]", jt = (e) => or(e) === "[object RegExp]", rn = (e) => $(e) && Object.keys(e).length === 0, te = Object.assign, xa = Object.create, H = (e = null) => xa(e);
|
|
2238
|
+
let Br;
|
|
2239
|
+
const He = () => Br || (Br = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : H());
|
|
2240
|
+
function jr(e) {
|
|
2247
2241
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/\//g, "/").replace(/=/g, "=");
|
|
2248
2242
|
}
|
|
2249
|
-
function
|
|
2243
|
+
function Hr(e) {
|
|
2250
2244
|
return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
|
|
2251
2245
|
}
|
|
2252
|
-
function
|
|
2253
|
-
return e = e.replace(/(\w+)\s*=\s*"([^"]*)"/g, (r, s, o) => `${s}="${
|
|
2246
|
+
function Va(e) {
|
|
2247
|
+
return e = e.replace(/(\w+)\s*=\s*"([^"]*)"/g, (r, s, o) => `${s}="${Hr(o)}"`), e = e.replace(/(\w+)\s*=\s*'([^']*)'/g, (r, s, o) => `${s}='${Hr(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")), [
|
|
2254
2248
|
// In href, src, action, formaction attributes
|
|
2255
2249
|
/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,
|
|
2256
2250
|
// In style attributes within url()
|
|
@@ -2259,22 +2253,22 @@ function $a(e) {
|
|
|
2259
2253
|
e = e.replace(r, "$1javascript:");
|
|
2260
2254
|
}), e;
|
|
2261
2255
|
}
|
|
2262
|
-
const
|
|
2256
|
+
const $a = Object.prototype.hasOwnProperty;
|
|
2263
2257
|
function he(e, t) {
|
|
2264
|
-
return
|
|
2258
|
+
return $a.call(e, t);
|
|
2265
2259
|
}
|
|
2266
|
-
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",
|
|
2260
|
+
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", Ba = (e) => B(e) && G(e.then) && G(e.catch), zs = Object.prototype.toString, or = (e) => zs.call(e), $ = (e) => or(e) === "[object Object]", ja = (e) => e == null ? "" : J(e) || $(e) && e.toString === zs ? JSON.stringify(e, null, 2) : String(e);
|
|
2267
2261
|
function ir(e, t = "") {
|
|
2268
2262
|
return e.reduce((n, r, s) => s === 0 ? n + r : n + t + r, "");
|
|
2269
2263
|
}
|
|
2270
|
-
const
|
|
2271
|
-
function
|
|
2264
|
+
const Wr = 2;
|
|
2265
|
+
function Ha(e, t = 0, n = e.length) {
|
|
2272
2266
|
const r = e.split(/\r?\n/);
|
|
2273
2267
|
let s = 0;
|
|
2274
2268
|
const o = [];
|
|
2275
2269
|
for (let i = 0; i < r.length; i++)
|
|
2276
2270
|
if (s += r[i].length + 1, s >= t) {
|
|
2277
|
-
for (let a = i -
|
|
2271
|
+
for (let a = i - Wr; a <= i + Wr || n > s; a++) {
|
|
2278
2272
|
if (a < 0 || a >= r.length)
|
|
2279
2273
|
continue;
|
|
2280
2274
|
const c = a + 1;
|
|
@@ -2296,7 +2290,7 @@ function Wa(e, t = 0, n = e.length) {
|
|
|
2296
2290
|
return o.join(`
|
|
2297
2291
|
`);
|
|
2298
2292
|
}
|
|
2299
|
-
function
|
|
2293
|
+
function Wa() {
|
|
2300
2294
|
const e = /* @__PURE__ */ new Map();
|
|
2301
2295
|
return {
|
|
2302
2296
|
events: e,
|
|
@@ -2313,19 +2307,19 @@ function qa() {
|
|
|
2313
2307
|
}
|
|
2314
2308
|
};
|
|
2315
2309
|
}
|
|
2316
|
-
const
|
|
2317
|
-
function
|
|
2318
|
-
if (
|
|
2310
|
+
const At = (e) => !B(e) || J(e);
|
|
2311
|
+
function Dt(e, t) {
|
|
2312
|
+
if (At(e) || At(t))
|
|
2319
2313
|
throw new Error("Invalid value");
|
|
2320
2314
|
const n = [{ src: e, des: t }];
|
|
2321
2315
|
for (; n.length; ) {
|
|
2322
2316
|
const { src: r, des: s } = n.pop();
|
|
2323
2317
|
Object.keys(r).forEach((o) => {
|
|
2324
|
-
o !== "__proto__" && (B(r[o]) && !B(s[o]) && (s[o] = Array.isArray(r[o]) ? [] : H()),
|
|
2318
|
+
o !== "__proto__" && (B(r[o]) && !B(s[o]) && (s[o] = Array.isArray(r[o]) ? [] : H()), At(s[o]) || At(r[o]) ? s[o] = r[o] : n.push({ src: r[o], des: s[o] }));
|
|
2325
2319
|
});
|
|
2326
2320
|
}
|
|
2327
2321
|
}
|
|
2328
|
-
function
|
|
2322
|
+
function qa(e, t, n) {
|
|
2329
2323
|
return { line: e, column: t, offset: n };
|
|
2330
2324
|
}
|
|
2331
2325
|
function Fn(e, t, n) {
|
|
@@ -2352,7 +2346,7 @@ const F = {
|
|
|
2352
2346
|
UNHANDLED_CODEGEN_NODE_TYPE: 15,
|
|
2353
2347
|
// minifier error codes
|
|
2354
2348
|
UNHANDLED_MINIFIER_NODE_TYPE: 16
|
|
2355
|
-
},
|
|
2349
|
+
}, Ga = 17, Ya = {
|
|
2356
2350
|
// tokenizer error messages
|
|
2357
2351
|
[F.EXPECTED_TOKEN]: "Expected token: '{0}'",
|
|
2358
2352
|
[F.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
|
|
@@ -2374,19 +2368,19 @@ const F = {
|
|
|
2374
2368
|
// minimizer error messages
|
|
2375
2369
|
[F.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
|
|
2376
2370
|
};
|
|
2377
|
-
function
|
|
2378
|
-
const { domain: r, messages: s, args: o } = n, i = process.env.NODE_ENV !== "production" ? nn((s ||
|
|
2371
|
+
function ot(e, t, n = {}) {
|
|
2372
|
+
const { domain: r, messages: s, args: o } = n, i = process.env.NODE_ENV !== "production" ? nn((s || Ya)[e] || "", ...o || []) : e, a = new SyntaxError(String(i));
|
|
2379
2373
|
return a.code = e, t && (a.location = t), a.domain = r, a;
|
|
2380
2374
|
}
|
|
2381
|
-
function
|
|
2375
|
+
function Ka(e) {
|
|
2382
2376
|
throw e;
|
|
2383
2377
|
}
|
|
2384
|
-
const
|
|
2385
|
-
`,
|
|
2386
|
-
function
|
|
2378
|
+
const Xa = /<\/?[\w\s="/.':;#-\/]+>/, Ja = (e) => Xa.test(e), Oe = " ", Qa = "\r", oe = `
|
|
2379
|
+
`, za = "\u2028", Za = "\u2029";
|
|
2380
|
+
function ec(e) {
|
|
2387
2381
|
const t = e;
|
|
2388
2382
|
let n = 0, r = 1, s = 1, o = 0;
|
|
2389
|
-
const i = (_) => t[_] === Qa && t[_ + 1] === oe, a = (_) => t[_] === oe, c = (_) => t[_] ===
|
|
2383
|
+
const i = (_) => t[_] === Qa && t[_ + 1] === oe, a = (_) => t[_] === oe, c = (_) => t[_] === Za, 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);
|
|
2390
2384
|
function N() {
|
|
2391
2385
|
return o = 0, l(n) && (r++, s = 0), i(n) && n++, n++, s++, t[n];
|
|
2392
2386
|
}
|
|
@@ -2420,9 +2414,9 @@ function tc(e) {
|
|
|
2420
2414
|
skipToPeek: R
|
|
2421
2415
|
};
|
|
2422
2416
|
}
|
|
2423
|
-
const Ae = void 0,
|
|
2424
|
-
function
|
|
2425
|
-
const n = t.location !== !1, r =
|
|
2417
|
+
const Ae = void 0, tc = ".", qr = "'", nc = "tokenizer";
|
|
2418
|
+
function rc(e, t = {}) {
|
|
2419
|
+
const n = t.location !== !1, r = ec(e), s = () => r.index(), o = () => qa(r.line(), r.column(), r.index()), i = o(), a = s(), c = {
|
|
2426
2420
|
currentType: 13,
|
|
2427
2421
|
offset: a,
|
|
2428
2422
|
startLoc: i,
|
|
@@ -2438,8 +2432,8 @@ function sc(e, t = {}) {
|
|
|
2438
2432
|
function p(f, d, L, ...D) {
|
|
2439
2433
|
const q = u();
|
|
2440
2434
|
if (d.column += L, d.offset += L, l) {
|
|
2441
|
-
const Y = n ? Fn(q.startLoc, d) : null, V =
|
|
2442
|
-
domain:
|
|
2435
|
+
const Y = n ? Fn(q.startLoc, d) : null, V = ot(f, Y, {
|
|
2436
|
+
domain: nc,
|
|
2443
2437
|
args: D
|
|
2444
2438
|
});
|
|
2445
2439
|
l(V);
|
|
@@ -2503,7 +2497,7 @@ function sc(e, t = {}) {
|
|
|
2503
2497
|
if (L !== 2)
|
|
2504
2498
|
return !1;
|
|
2505
2499
|
b(f);
|
|
2506
|
-
const D = f.currentPeek() ===
|
|
2500
|
+
const D = f.currentPeek() === qr;
|
|
2507
2501
|
return f.resetPeek(), D;
|
|
2508
2502
|
}
|
|
2509
2503
|
function R(f, d) {
|
|
@@ -2586,14 +2580,14 @@ function sc(e, t = {}) {
|
|
|
2586
2580
|
function Z(f) {
|
|
2587
2581
|
return k(f, we);
|
|
2588
2582
|
}
|
|
2589
|
-
function
|
|
2583
|
+
function z(f) {
|
|
2590
2584
|
const d = f.charCodeAt(0);
|
|
2591
2585
|
return d >= 48 && d <= 57 || // 0-9
|
|
2592
2586
|
d >= 65 && d <= 70 || // A-F
|
|
2593
2587
|
d >= 97 && d <= 102;
|
|
2594
2588
|
}
|
|
2595
2589
|
function _e(f) {
|
|
2596
|
-
return k(f,
|
|
2590
|
+
return k(f, z);
|
|
2597
2591
|
}
|
|
2598
2592
|
function ce(f) {
|
|
2599
2593
|
let d = "", L = "";
|
|
@@ -2627,7 +2621,7 @@ function sc(e, t = {}) {
|
|
|
2627
2621
|
L += d;
|
|
2628
2622
|
const D = f.currentChar();
|
|
2629
2623
|
if (D && D !== "}" && D !== Ae && D !== Oe && D !== oe && D !== " ") {
|
|
2630
|
-
const q =
|
|
2624
|
+
const q = St(f);
|
|
2631
2625
|
return p(F.INVALID_TOKEN_IN_PLACEHOLDER, o(), 0, L + q), L + q;
|
|
2632
2626
|
}
|
|
2633
2627
|
return f.currentChar() === Ae && p(F.UNTERMINATED_CLOSING_BRACE, o(), 0), L;
|
|
@@ -2638,7 +2632,7 @@ function sc(e, t = {}) {
|
|
|
2638
2632
|
return f.currentChar() === "-" ? (f.next(), d += `-${ce(f)}`) : d += ce(f), f.currentChar() === Ae && p(F.UNTERMINATED_CLOSING_BRACE, o(), 0), d;
|
|
2639
2633
|
}
|
|
2640
2634
|
function Xe(f) {
|
|
2641
|
-
return f !==
|
|
2635
|
+
return f !== qr && f !== oe;
|
|
2642
2636
|
}
|
|
2643
2637
|
function pr(f) {
|
|
2644
2638
|
S(f), E(f, "'");
|
|
@@ -2655,14 +2649,14 @@ function sc(e, t = {}) {
|
|
|
2655
2649
|
case "'":
|
|
2656
2650
|
return f.next(), `\\${d}`;
|
|
2657
2651
|
case "u":
|
|
2658
|
-
return
|
|
2652
|
+
return Ot(f, d, 4);
|
|
2659
2653
|
case "U":
|
|
2660
|
-
return
|
|
2654
|
+
return Ot(f, d, 6);
|
|
2661
2655
|
default:
|
|
2662
2656
|
return p(F.UNKNOWN_ESCAPE_SEQUENCE, o(), 0, d), "";
|
|
2663
2657
|
}
|
|
2664
2658
|
}
|
|
2665
|
-
function
|
|
2659
|
+
function Ot(f, d, L) {
|
|
2666
2660
|
E(f, d);
|
|
2667
2661
|
let D = "";
|
|
2668
2662
|
for (let q = 0; q < L; q++) {
|
|
@@ -2678,7 +2672,7 @@ function sc(e, t = {}) {
|
|
|
2678
2672
|
function fn(f) {
|
|
2679
2673
|
return f !== "{" && f !== "}" && f !== Oe && f !== oe;
|
|
2680
2674
|
}
|
|
2681
|
-
function
|
|
2675
|
+
function St(f) {
|
|
2682
2676
|
S(f);
|
|
2683
2677
|
let d = "", L = "";
|
|
2684
2678
|
for (; d = k(f, fn); )
|
|
@@ -2698,7 +2692,7 @@ function sc(e, t = {}) {
|
|
|
2698
2692
|
};
|
|
2699
2693
|
return d("");
|
|
2700
2694
|
}
|
|
2701
|
-
function
|
|
2695
|
+
function it(f) {
|
|
2702
2696
|
S(f);
|
|
2703
2697
|
const d = E(
|
|
2704
2698
|
f,
|
|
@@ -2707,7 +2701,7 @@ function sc(e, t = {}) {
|
|
|
2707
2701
|
);
|
|
2708
2702
|
return S(f), d;
|
|
2709
2703
|
}
|
|
2710
|
-
function
|
|
2704
|
+
function at(f, d) {
|
|
2711
2705
|
let L = null;
|
|
2712
2706
|
switch (f.currentChar()) {
|
|
2713
2707
|
case "{":
|
|
@@ -2729,9 +2723,9 @@ function sc(e, t = {}) {
|
|
|
2729
2723
|
default: {
|
|
2730
2724
|
let q = !0, Y = !0, V = !0;
|
|
2731
2725
|
if (I(f))
|
|
2732
|
-
return d.braceNest > 0 && p(F.UNTERMINATED_CLOSING_BRACE, o(), 0), L = g(d, 1,
|
|
2726
|
+
return d.braceNest > 0 && p(F.UNTERMINATED_CLOSING_BRACE, o(), 0), L = g(d, 1, it(f)), d.braceNest = 0, d.inLinked = !1, L;
|
|
2733
2727
|
if (d.braceNest > 0 && (d.currentType === 4 || d.currentType === 5 || d.currentType === 6))
|
|
2734
|
-
return p(F.UNTERMINATED_CLOSING_BRACE, o(), 0), d.braceNest = 0,
|
|
2728
|
+
return p(F.UNTERMINATED_CLOSING_BRACE, o(), 0), d.braceNest = 0, ct(f, d);
|
|
2735
2729
|
if (q = T(f, d))
|
|
2736
2730
|
return L = g(d, 4, Me(f)), S(f), L;
|
|
2737
2731
|
if (Y = y(f, d))
|
|
@@ -2739,7 +2733,7 @@ function sc(e, t = {}) {
|
|
|
2739
2733
|
if (V = C(f, d))
|
|
2740
2734
|
return L = g(d, 6, pr(f)), S(f), L;
|
|
2741
2735
|
if (!q && !Y && !V)
|
|
2742
|
-
return L = g(d, 12,
|
|
2736
|
+
return L = g(d, 12, St(f)), p(F.INVALID_TOKEN_IN_PLACEHOLDER, o(), 0, L.value), S(f), L;
|
|
2743
2737
|
break;
|
|
2744
2738
|
}
|
|
2745
2739
|
}
|
|
@@ -2772,21 +2766,21 @@ function sc(e, t = {}) {
|
|
|
2772
2766
|
/* TokenChars.LinkedDelimiter */
|
|
2773
2767
|
);
|
|
2774
2768
|
default:
|
|
2775
|
-
return I(f) ? (D = g(d, 1,
|
|
2769
|
+
return I(f) ? (D = g(d, 1, it(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 === "{" ? at(f, d) || D : g(d, 10, pn(f))) : (L === 7 && p(F.INVALID_LINKED_FORMAT, o(), 0), d.braceNest = 0, d.inLinked = !1, ct(f, d));
|
|
2776
2770
|
}
|
|
2777
2771
|
}
|
|
2778
|
-
function
|
|
2772
|
+
function ct(f, d) {
|
|
2779
2773
|
let L = {
|
|
2780
2774
|
type: 13
|
|
2781
2775
|
/* TokenTypes.EOF */
|
|
2782
2776
|
};
|
|
2783
2777
|
if (d.braceNest > 0)
|
|
2784
|
-
return
|
|
2778
|
+
return at(f, d) || A(d);
|
|
2785
2779
|
if (d.inLinked)
|
|
2786
2780
|
return xe(f, d) || A(d);
|
|
2787
2781
|
switch (f.currentChar()) {
|
|
2788
2782
|
case "{":
|
|
2789
|
-
return
|
|
2783
|
+
return at(f, d) || A(d);
|
|
2790
2784
|
case "}":
|
|
2791
2785
|
return p(F.UNBALANCED_CLOSING_BRACE, o(), 0), f.next(), g(
|
|
2792
2786
|
d,
|
|
@@ -2798,7 +2792,7 @@ function sc(e, t = {}) {
|
|
|
2798
2792
|
return xe(f, d) || A(d);
|
|
2799
2793
|
default: {
|
|
2800
2794
|
if (I(f))
|
|
2801
|
-
return L = g(d, 1,
|
|
2795
|
+
return L = g(d, 1, it(f)), d.braceNest = 0, d.inLinked = !1, L;
|
|
2802
2796
|
if (P(f))
|
|
2803
2797
|
return g(d, 0, ye(f));
|
|
2804
2798
|
break;
|
|
@@ -2812,7 +2806,7 @@ function sc(e, t = {}) {
|
|
|
2812
2806
|
c,
|
|
2813
2807
|
13
|
|
2814
2808
|
/* TokenTypes.EOF */
|
|
2815
|
-
) :
|
|
2809
|
+
) : ct(r, c);
|
|
2816
2810
|
}
|
|
2817
2811
|
return {
|
|
2818
2812
|
nextToken: mn,
|
|
@@ -2821,8 +2815,8 @@ function sc(e, t = {}) {
|
|
|
2821
2815
|
context: u
|
|
2822
2816
|
};
|
|
2823
2817
|
}
|
|
2824
|
-
const
|
|
2825
|
-
function
|
|
2818
|
+
const sc = "parser", oc = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
2819
|
+
function ic(e, t, n) {
|
|
2826
2820
|
switch (e) {
|
|
2827
2821
|
case "\\\\":
|
|
2828
2822
|
return "\\";
|
|
@@ -2835,13 +2829,13 @@ function ac(e, t, n) {
|
|
|
2835
2829
|
}
|
|
2836
2830
|
}
|
|
2837
2831
|
}
|
|
2838
|
-
function
|
|
2832
|
+
function ac(e = {}) {
|
|
2839
2833
|
const t = e.location !== !1, { onError: n } = e;
|
|
2840
2834
|
function r(m, N, T, y, ...C) {
|
|
2841
2835
|
const R = m.currentPosition();
|
|
2842
2836
|
if (R.offset += y, R.column += y, n) {
|
|
2843
|
-
const _ = t ? Fn(T, R) : null, x =
|
|
2844
|
-
domain:
|
|
2837
|
+
const _ = t ? Fn(T, R) : null, x = ot(N, _, {
|
|
2838
|
+
domain: sc,
|
|
2845
2839
|
args: C
|
|
2846
2840
|
});
|
|
2847
2841
|
n(x);
|
|
@@ -2868,7 +2862,7 @@ function cc(e = {}) {
|
|
|
2868
2862
|
}
|
|
2869
2863
|
function u(m, N) {
|
|
2870
2864
|
const T = m.context(), { lastOffset: y, lastStartLoc: C } = T, R = s(9, y, C);
|
|
2871
|
-
return R.value = N.replace(
|
|
2865
|
+
return R.value = N.replace(oc, ic), m.nextToken(), o(R, m.currentOffset(), m.currentPosition()), R;
|
|
2872
2866
|
}
|
|
2873
2867
|
function l(m) {
|
|
2874
2868
|
const N = m.nextToken(), T = m.context(), { lastOffset: y, lastStartLoc: C } = T, R = s(8, y, C);
|
|
@@ -2961,7 +2955,7 @@ function cc(e = {}) {
|
|
|
2961
2955
|
return N.currentType === 13 ? C : E(m, T, y, C);
|
|
2962
2956
|
}
|
|
2963
2957
|
function S(m) {
|
|
2964
|
-
const N =
|
|
2958
|
+
const N = rc(m, te({}, e)), T = N.context(), y = s(0, T.offset, T.startLoc);
|
|
2965
2959
|
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;
|
|
2966
2960
|
}
|
|
2967
2961
|
return { parse: S };
|
|
@@ -2972,27 +2966,27 @@ function Se(e) {
|
|
|
2972
2966
|
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
2973
2967
|
return t.length > 10 ? t.slice(0, 9) + "…" : t;
|
|
2974
2968
|
}
|
|
2975
|
-
function
|
|
2969
|
+
function cc(e, t = {}) {
|
|
2976
2970
|
const n = {
|
|
2977
2971
|
ast: e,
|
|
2978
2972
|
helpers: /* @__PURE__ */ new Set()
|
|
2979
2973
|
};
|
|
2980
2974
|
return { context: () => n, helper: (o) => (n.helpers.add(o), o) };
|
|
2981
2975
|
}
|
|
2982
|
-
function
|
|
2976
|
+
function Gr(e, t) {
|
|
2983
2977
|
for (let n = 0; n < e.length; n++)
|
|
2984
2978
|
ar(e[n], t);
|
|
2985
2979
|
}
|
|
2986
2980
|
function ar(e, t) {
|
|
2987
2981
|
switch (e.type) {
|
|
2988
2982
|
case 1:
|
|
2989
|
-
|
|
2983
|
+
Gr(e.cases, t), t.helper(
|
|
2990
2984
|
"plural"
|
|
2991
2985
|
/* HelperNameMap.PLURAL */
|
|
2992
2986
|
);
|
|
2993
2987
|
break;
|
|
2994
2988
|
case 2:
|
|
2995
|
-
|
|
2989
|
+
Gr(e.items, t);
|
|
2996
2990
|
break;
|
|
2997
2991
|
case 6: {
|
|
2998
2992
|
ar(e.key, t), t.helper(
|
|
@@ -3024,8 +3018,8 @@ function ar(e, t) {
|
|
|
3024
3018
|
break;
|
|
3025
3019
|
}
|
|
3026
3020
|
}
|
|
3027
|
-
function
|
|
3028
|
-
const n =
|
|
3021
|
+
function lc(e, t = {}) {
|
|
3022
|
+
const n = cc(e);
|
|
3029
3023
|
n.helper(
|
|
3030
3024
|
"normalize"
|
|
3031
3025
|
/* HelperNameMap.NORMALIZE */
|
|
@@ -3033,11 +3027,11 @@ function uc(e, t = {}) {
|
|
|
3033
3027
|
const r = n.context();
|
|
3034
3028
|
e.helpers = Array.from(r.helpers);
|
|
3035
3029
|
}
|
|
3036
|
-
function
|
|
3030
|
+
function uc(e) {
|
|
3037
3031
|
const t = e.body;
|
|
3038
|
-
return t.type === 2 ?
|
|
3032
|
+
return t.type === 2 ? Yr(t) : t.cases.forEach((n) => Yr(n)), e;
|
|
3039
3033
|
}
|
|
3040
|
-
function
|
|
3034
|
+
function Yr(e) {
|
|
3041
3035
|
if (e.items.length === 1) {
|
|
3042
3036
|
const t = e.items[0];
|
|
3043
3037
|
(t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
|
|
@@ -3058,25 +3052,25 @@ function Gr(e) {
|
|
|
3058
3052
|
}
|
|
3059
3053
|
}
|
|
3060
3054
|
}
|
|
3061
|
-
const
|
|
3062
|
-
function
|
|
3055
|
+
const fc = "minifier";
|
|
3056
|
+
function ze(e) {
|
|
3063
3057
|
switch (e.t = e.type, e.type) {
|
|
3064
3058
|
case 0: {
|
|
3065
3059
|
const t = e;
|
|
3066
|
-
|
|
3060
|
+
ze(t.body), t.b = t.body, delete t.body;
|
|
3067
3061
|
break;
|
|
3068
3062
|
}
|
|
3069
3063
|
case 1: {
|
|
3070
3064
|
const t = e, n = t.cases;
|
|
3071
3065
|
for (let r = 0; r < n.length; r++)
|
|
3072
|
-
|
|
3066
|
+
ze(n[r]);
|
|
3073
3067
|
t.c = n, delete t.cases;
|
|
3074
3068
|
break;
|
|
3075
3069
|
}
|
|
3076
3070
|
case 2: {
|
|
3077
3071
|
const t = e, n = t.items;
|
|
3078
3072
|
for (let r = 0; r < n.length; r++)
|
|
3079
|
-
|
|
3073
|
+
ze(n[r]);
|
|
3080
3074
|
t.i = n, delete t.items, t.static && (t.s = t.static, delete t.static);
|
|
3081
3075
|
break;
|
|
3082
3076
|
}
|
|
@@ -3090,7 +3084,7 @@ function Qe(e) {
|
|
|
3090
3084
|
}
|
|
3091
3085
|
case 6: {
|
|
3092
3086
|
const t = e;
|
|
3093
|
-
|
|
3087
|
+
ze(t.key), t.k = t.key, delete t.key, t.modifier && (ze(t.modifier), t.m = t.modifier, delete t.modifier);
|
|
3094
3088
|
break;
|
|
3095
3089
|
}
|
|
3096
3090
|
case 5: {
|
|
@@ -3105,15 +3099,15 @@ function Qe(e) {
|
|
|
3105
3099
|
}
|
|
3106
3100
|
default:
|
|
3107
3101
|
if (process.env.NODE_ENV !== "production")
|
|
3108
|
-
throw
|
|
3109
|
-
domain:
|
|
3102
|
+
throw ot(F.UNHANDLED_MINIFIER_NODE_TYPE, null, {
|
|
3103
|
+
domain: fc,
|
|
3110
3104
|
args: [e.type]
|
|
3111
3105
|
});
|
|
3112
3106
|
}
|
|
3113
3107
|
delete e.type;
|
|
3114
3108
|
}
|
|
3115
|
-
const
|
|
3116
|
-
function
|
|
3109
|
+
const dc = "parser";
|
|
3110
|
+
function pc(e, t) {
|
|
3117
3111
|
const { filename: n, breakLineCode: r, needIndent: s } = t, o = t.location !== !1, i = {
|
|
3118
3112
|
filename: n,
|
|
3119
3113
|
code: "",
|
|
@@ -3155,25 +3149,25 @@ function mc(e, t) {
|
|
|
3155
3149
|
needIndent: () => i.needIndent
|
|
3156
3150
|
};
|
|
3157
3151
|
}
|
|
3158
|
-
function
|
|
3152
|
+
function mc(e, t) {
|
|
3159
3153
|
const { helper: n } = e;
|
|
3160
3154
|
e.push(`${n(
|
|
3161
3155
|
"linked"
|
|
3162
3156
|
/* HelperNameMap.LINKED */
|
|
3163
|
-
)}(`),
|
|
3157
|
+
)}(`), tt(e, t.key), t.modifier ? (e.push(", "), tt(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
3164
3158
|
}
|
|
3165
|
-
function
|
|
3159
|
+
function _c(e, t) {
|
|
3166
3160
|
const { helper: n, needIndent: r } = e;
|
|
3167
3161
|
e.push(`${n(
|
|
3168
3162
|
"normalize"
|
|
3169
3163
|
/* HelperNameMap.NORMALIZE */
|
|
3170
3164
|
)}([`), e.indent(r());
|
|
3171
3165
|
const s = t.items.length;
|
|
3172
|
-
for (let o = 0; o < s && (
|
|
3166
|
+
for (let o = 0; o < s && (tt(e, t.items[o]), o !== s - 1); o++)
|
|
3173
3167
|
e.push(", ");
|
|
3174
3168
|
e.deindent(r()), e.push("])");
|
|
3175
3169
|
}
|
|
3176
|
-
function
|
|
3170
|
+
function hc(e, t) {
|
|
3177
3171
|
const { helper: n, needIndent: r } = e;
|
|
3178
3172
|
if (t.cases.length > 1) {
|
|
3179
3173
|
e.push(`${n(
|
|
@@ -3181,28 +3175,28 @@ function Ec(e, t) {
|
|
|
3181
3175
|
/* HelperNameMap.PLURAL */
|
|
3182
3176
|
)}([`), e.indent(r());
|
|
3183
3177
|
const s = t.cases.length;
|
|
3184
|
-
for (let o = 0; o < s && (
|
|
3178
|
+
for (let o = 0; o < s && (tt(e, t.cases[o]), o !== s - 1); o++)
|
|
3185
3179
|
e.push(", ");
|
|
3186
3180
|
e.deindent(r()), e.push("])");
|
|
3187
3181
|
}
|
|
3188
3182
|
}
|
|
3189
|
-
function
|
|
3190
|
-
t.body ?
|
|
3183
|
+
function Ec(e, t) {
|
|
3184
|
+
t.body ? tt(e, t.body) : e.push("null");
|
|
3191
3185
|
}
|
|
3192
|
-
function
|
|
3186
|
+
function tt(e, t) {
|
|
3193
3187
|
const { helper: n } = e;
|
|
3194
3188
|
switch (t.type) {
|
|
3195
3189
|
case 0:
|
|
3196
|
-
|
|
3190
|
+
Ec(e, t);
|
|
3197
3191
|
break;
|
|
3198
3192
|
case 1:
|
|
3199
|
-
|
|
3193
|
+
hc(e, t);
|
|
3200
3194
|
break;
|
|
3201
3195
|
case 2:
|
|
3202
|
-
|
|
3196
|
+
_c(e, t);
|
|
3203
3197
|
break;
|
|
3204
3198
|
case 6:
|
|
3205
|
-
|
|
3199
|
+
mc(e, t);
|
|
3206
3200
|
break;
|
|
3207
3201
|
case 8:
|
|
3208
3202
|
e.push(JSON.stringify(t.value), t);
|
|
@@ -3236,22 +3230,22 @@ function nt(e, t) {
|
|
|
3236
3230
|
break;
|
|
3237
3231
|
default:
|
|
3238
3232
|
if (process.env.NODE_ENV !== "production")
|
|
3239
|
-
throw
|
|
3240
|
-
domain:
|
|
3233
|
+
throw ot(F.UNHANDLED_CODEGEN_NODE_TYPE, null, {
|
|
3234
|
+
domain: dc,
|
|
3241
3235
|
args: [t.type]
|
|
3242
3236
|
});
|
|
3243
3237
|
}
|
|
3244
3238
|
}
|
|
3245
|
-
const
|
|
3239
|
+
const gc = (e, t = {}) => {
|
|
3246
3240
|
const n = w(t.mode) ? t.mode : "normal", r = w(t.filename) ? t.filename : "message.intl";
|
|
3247
3241
|
t.sourceMap;
|
|
3248
3242
|
const s = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
3249
|
-
`, o = t.needIndent ? t.needIndent : n !== "arrow", i = e.helpers || [], a =
|
|
3243
|
+
`, o = t.needIndent ? t.needIndent : n !== "arrow", i = e.helpers || [], a = pc(e, {
|
|
3250
3244
|
filename: r,
|
|
3251
3245
|
breakLineCode: s,
|
|
3252
3246
|
needIndent: o
|
|
3253
3247
|
});
|
|
3254
|
-
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 "),
|
|
3248
|
+
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 "), tt(a, e), a.deindent(o), a.push("}"), delete e.helpers;
|
|
3255
3249
|
const { code: c, map: u } = a.context();
|
|
3256
3250
|
return {
|
|
3257
3251
|
ast: e,
|
|
@@ -3260,53 +3254,53 @@ const bc = (e, t = {}) => {
|
|
|
3260
3254
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
3261
3255
|
};
|
|
3262
3256
|
};
|
|
3263
|
-
function
|
|
3264
|
-
const n = te({}, t), r = !!n.jit, s = !!n.minify, o = n.optimize == null ? !0 : n.optimize, a =
|
|
3265
|
-
return r ? (o &&
|
|
3257
|
+
function bc(e, t = {}) {
|
|
3258
|
+
const n = te({}, t), r = !!n.jit, s = !!n.minify, o = n.optimize == null ? !0 : n.optimize, a = ac(n).parse(e);
|
|
3259
|
+
return r ? (o && uc(a), s && ze(a), { ast: a, code: "" }) : (lc(a, n), gc(a, n));
|
|
3266
3260
|
}
|
|
3267
|
-
function
|
|
3261
|
+
function yc() {
|
|
3268
3262
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (He().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (He().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
3269
3263
|
}
|
|
3270
3264
|
function Ee(e) {
|
|
3271
3265
|
return B(e) && cr(e) === 0 && (he(e, "b") || he(e, "body"));
|
|
3272
3266
|
}
|
|
3273
|
-
const
|
|
3267
|
+
const Zs = ["b", "body"];
|
|
3268
|
+
function Nc(e) {
|
|
3269
|
+
return Fe(e, Zs);
|
|
3270
|
+
}
|
|
3271
|
+
const eo = ["c", "cases"];
|
|
3274
3272
|
function Oc(e) {
|
|
3275
|
-
return Fe(e,
|
|
3273
|
+
return Fe(e, eo, []);
|
|
3276
3274
|
}
|
|
3277
|
-
const
|
|
3275
|
+
const to = ["s", "static"];
|
|
3278
3276
|
function Sc(e) {
|
|
3279
|
-
return Fe(e,
|
|
3277
|
+
return Fe(e, to);
|
|
3280
3278
|
}
|
|
3281
|
-
const
|
|
3279
|
+
const no = ["i", "items"];
|
|
3282
3280
|
function Tc(e) {
|
|
3283
|
-
return Fe(e,
|
|
3281
|
+
return Fe(e, no, []);
|
|
3284
3282
|
}
|
|
3285
|
-
const
|
|
3286
|
-
function Lc(e) {
|
|
3287
|
-
return Fe(e, to, []);
|
|
3288
|
-
}
|
|
3289
|
-
const no = ["t", "type"];
|
|
3283
|
+
const ro = ["t", "type"];
|
|
3290
3284
|
function cr(e) {
|
|
3291
|
-
return Fe(e,
|
|
3285
|
+
return Fe(e, ro);
|
|
3292
3286
|
}
|
|
3293
|
-
const
|
|
3294
|
-
function
|
|
3295
|
-
const n = Fe(e,
|
|
3287
|
+
const so = ["v", "value"];
|
|
3288
|
+
function vt(e, t) {
|
|
3289
|
+
const n = Fe(e, so);
|
|
3296
3290
|
if (n != null)
|
|
3297
3291
|
return n;
|
|
3298
|
-
throw
|
|
3292
|
+
throw mt(t);
|
|
3299
3293
|
}
|
|
3300
|
-
const
|
|
3301
|
-
function
|
|
3302
|
-
return Fe(e,
|
|
3294
|
+
const oo = ["m", "modifier"];
|
|
3295
|
+
function Lc(e) {
|
|
3296
|
+
return Fe(e, oo);
|
|
3303
3297
|
}
|
|
3304
|
-
const
|
|
3305
|
-
function
|
|
3306
|
-
const t = Fe(e,
|
|
3298
|
+
const io = ["k", "key"];
|
|
3299
|
+
function Ac(e) {
|
|
3300
|
+
const t = Fe(e, io);
|
|
3307
3301
|
if (t)
|
|
3308
3302
|
return t;
|
|
3309
|
-
throw
|
|
3303
|
+
throw mt(
|
|
3310
3304
|
6
|
|
3311
3305
|
/* NodeTypes.Linked */
|
|
3312
3306
|
);
|
|
@@ -3319,44 +3313,44 @@ function Fe(e, t, n) {
|
|
|
3319
3313
|
}
|
|
3320
3314
|
return n;
|
|
3321
3315
|
}
|
|
3322
|
-
const
|
|
3323
|
-
...Qs,
|
|
3316
|
+
const ao = [
|
|
3324
3317
|
...Zs,
|
|
3325
3318
|
...eo,
|
|
3326
3319
|
...to,
|
|
3320
|
+
...no,
|
|
3321
|
+
...io,
|
|
3327
3322
|
...oo,
|
|
3328
3323
|
...so,
|
|
3329
|
-
...ro
|
|
3330
|
-
...no
|
|
3324
|
+
...ro
|
|
3331
3325
|
];
|
|
3332
|
-
function
|
|
3326
|
+
function mt(e) {
|
|
3333
3327
|
return new Error(`unhandled node type: ${e}`);
|
|
3334
3328
|
}
|
|
3335
3329
|
function On(e) {
|
|
3336
|
-
return (n) =>
|
|
3330
|
+
return (n) => vc(n, e);
|
|
3337
3331
|
}
|
|
3338
|
-
function
|
|
3339
|
-
const n =
|
|
3332
|
+
function vc(e, t) {
|
|
3333
|
+
const n = Nc(t);
|
|
3340
3334
|
if (n == null)
|
|
3341
|
-
throw
|
|
3335
|
+
throw mt(
|
|
3342
3336
|
0
|
|
3343
3337
|
/* NodeTypes.Resource */
|
|
3344
3338
|
);
|
|
3345
3339
|
if (cr(n) === 1) {
|
|
3346
|
-
const o =
|
|
3340
|
+
const o = Oc(n);
|
|
3347
3341
|
return e.plural(o.reduce((i, a) => [
|
|
3348
3342
|
...i,
|
|
3349
|
-
|
|
3343
|
+
Kr(e, a)
|
|
3350
3344
|
], []));
|
|
3351
3345
|
} else
|
|
3352
|
-
return
|
|
3346
|
+
return Kr(e, n);
|
|
3353
3347
|
}
|
|
3354
|
-
function
|
|
3355
|
-
const n =
|
|
3348
|
+
function Kr(e, t) {
|
|
3349
|
+
const n = Sc(t);
|
|
3356
3350
|
if (n != null)
|
|
3357
3351
|
return e.type === "text" ? n : e.normalize([n]);
|
|
3358
3352
|
{
|
|
3359
|
-
const r =
|
|
3353
|
+
const r = Tc(t).reduce((s, o) => [...s, Un(e, o)], []);
|
|
3360
3354
|
return e.normalize(r);
|
|
3361
3355
|
}
|
|
3362
3356
|
}
|
|
@@ -3364,16 +3358,16 @@ function Un(e, t) {
|
|
|
3364
3358
|
const n = cr(t);
|
|
3365
3359
|
switch (n) {
|
|
3366
3360
|
case 3:
|
|
3367
|
-
return
|
|
3361
|
+
return vt(t, n);
|
|
3368
3362
|
case 9:
|
|
3369
|
-
return
|
|
3363
|
+
return vt(t, n);
|
|
3370
3364
|
case 4: {
|
|
3371
3365
|
const r = t;
|
|
3372
3366
|
if (he(r, "k") && r.k)
|
|
3373
3367
|
return e.interpolate(e.named(r.k));
|
|
3374
3368
|
if (he(r, "key") && r.key)
|
|
3375
3369
|
return e.interpolate(e.named(r.key));
|
|
3376
|
-
throw
|
|
3370
|
+
throw mt(n);
|
|
3377
3371
|
}
|
|
3378
3372
|
case 5: {
|
|
3379
3373
|
const r = t;
|
|
@@ -3381,76 +3375,76 @@ function Un(e, t) {
|
|
|
3381
3375
|
return e.interpolate(e.list(r.i));
|
|
3382
3376
|
if (he(r, "index") && ee(r.index))
|
|
3383
3377
|
return e.interpolate(e.list(r.index));
|
|
3384
|
-
throw
|
|
3378
|
+
throw mt(n);
|
|
3385
3379
|
}
|
|
3386
3380
|
case 6: {
|
|
3387
|
-
const r = t, s =
|
|
3381
|
+
const r = t, s = Lc(r), o = Ac(r);
|
|
3388
3382
|
return e.linked(Un(e, o), s ? Un(e, s) : void 0, e.type);
|
|
3389
3383
|
}
|
|
3390
3384
|
case 7:
|
|
3391
|
-
return
|
|
3385
|
+
return vt(t, n);
|
|
3392
3386
|
case 8:
|
|
3393
|
-
return
|
|
3387
|
+
return vt(t, n);
|
|
3394
3388
|
default:
|
|
3395
3389
|
throw new Error(`unhandled node on format message part: ${n}`);
|
|
3396
3390
|
}
|
|
3397
3391
|
}
|
|
3398
|
-
const
|
|
3399
|
-
function
|
|
3400
|
-
t &&
|
|
3392
|
+
const Cc = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
|
|
3393
|
+
function Rc(e, t) {
|
|
3394
|
+
t && Ja(e) && Le(nn(Cc, { source: e }));
|
|
3401
3395
|
}
|
|
3402
|
-
const
|
|
3403
|
-
let
|
|
3404
|
-
function
|
|
3396
|
+
const Ic = (e) => e;
|
|
3397
|
+
let Ct = H();
|
|
3398
|
+
function Pc(e, t = {}) {
|
|
3405
3399
|
let n = !1;
|
|
3406
|
-
const r = t.onError ||
|
|
3400
|
+
const r = t.onError || Ka;
|
|
3407
3401
|
return t.onError = (s) => {
|
|
3408
3402
|
n = !0, r(s);
|
|
3409
|
-
}, { ...
|
|
3403
|
+
}, { ...bc(e, t), detectError: n };
|
|
3410
3404
|
}
|
|
3411
3405
|
// @__NO_SIDE_EFFECTS__
|
|
3412
|
-
function
|
|
3406
|
+
function wc(e, t) {
|
|
3413
3407
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && w(e)) {
|
|
3414
3408
|
const n = X(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
|
|
3415
|
-
process.env.NODE_ENV !== "production" &&
|
|
3416
|
-
const s = (t.onCacheKey ||
|
|
3409
|
+
process.env.NODE_ENV !== "production" && Rc(e, n);
|
|
3410
|
+
const s = (t.onCacheKey || Ic)(e), o = Ct[s];
|
|
3417
3411
|
if (o)
|
|
3418
3412
|
return o;
|
|
3419
|
-
const { ast: i, detectError: a } =
|
|
3413
|
+
const { ast: i, detectError: a } = Pc(e, {
|
|
3420
3414
|
...t,
|
|
3421
3415
|
location: process.env.NODE_ENV !== "production",
|
|
3422
3416
|
jit: !0
|
|
3423
3417
|
}), c = On(i);
|
|
3424
|
-
return a ? c :
|
|
3418
|
+
return a ? c : Ct[s] = c;
|
|
3425
3419
|
} else {
|
|
3426
3420
|
if (process.env.NODE_ENV !== "production" && !Ee(e))
|
|
3427
3421
|
return Le(`the message that is resolve with key '${t.key}' is not supported for jit compilation`), (() => e);
|
|
3428
3422
|
const n = e.cacheKey;
|
|
3429
3423
|
if (n) {
|
|
3430
|
-
const r =
|
|
3431
|
-
return r || (
|
|
3424
|
+
const r = Ct[n];
|
|
3425
|
+
return r || (Ct[n] = On(e));
|
|
3432
3426
|
} else
|
|
3433
3427
|
return On(e);
|
|
3434
3428
|
}
|
|
3435
3429
|
}
|
|
3436
|
-
let
|
|
3437
|
-
function
|
|
3438
|
-
|
|
3430
|
+
let _t = null;
|
|
3431
|
+
function Dc(e) {
|
|
3432
|
+
_t = e;
|
|
3439
3433
|
}
|
|
3440
|
-
function
|
|
3441
|
-
|
|
3434
|
+
function kc(e, t, n) {
|
|
3435
|
+
_t && _t.emit("i18n:init", {
|
|
3442
3436
|
timestamp: Date.now(),
|
|
3443
3437
|
i18n: e,
|
|
3444
3438
|
version: t,
|
|
3445
3439
|
meta: n
|
|
3446
3440
|
});
|
|
3447
3441
|
}
|
|
3448
|
-
const
|
|
3449
|
-
function
|
|
3450
|
-
return (t) =>
|
|
3442
|
+
const Fc = /* @__PURE__ */ Uc("function:translate");
|
|
3443
|
+
function Uc(e) {
|
|
3444
|
+
return (t) => _t && _t.emit(e, t);
|
|
3451
3445
|
}
|
|
3452
3446
|
const ie = {
|
|
3453
|
-
INVALID_ARGUMENT:
|
|
3447
|
+
INVALID_ARGUMENT: Ga,
|
|
3454
3448
|
// 17
|
|
3455
3449
|
INVALID_DATE_ARGUMENT: 18,
|
|
3456
3450
|
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
@@ -3458,11 +3452,11 @@ const ie = {
|
|
|
3458
3452
|
NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
|
|
3459
3453
|
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
3460
3454
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
3461
|
-
},
|
|
3455
|
+
}, Mc = 24;
|
|
3462
3456
|
function ve(e) {
|
|
3463
|
-
return
|
|
3457
|
+
return ot(e, null, process.env.NODE_ENV !== "production" ? { messages: xc } : void 0);
|
|
3464
3458
|
}
|
|
3465
|
-
const
|
|
3459
|
+
const xc = {
|
|
3466
3460
|
[ie.INVALID_ARGUMENT]: "Invalid arguments",
|
|
3467
3461
|
[ie.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
|
|
3468
3462
|
[ie.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
|
|
@@ -3472,10 +3466,10 @@ const Vc = {
|
|
|
3472
3466
|
[ie.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
|
|
3473
3467
|
};
|
|
3474
3468
|
function lr(e, t) {
|
|
3475
|
-
return t.locale != null ?
|
|
3469
|
+
return t.locale != null ? Xr(t.locale) : Xr(e.locale);
|
|
3476
3470
|
}
|
|
3477
3471
|
let Sn;
|
|
3478
|
-
function
|
|
3472
|
+
function Xr(e) {
|
|
3479
3473
|
if (w(e))
|
|
3480
3474
|
return e;
|
|
3481
3475
|
if (G(e)) {
|
|
@@ -3483,7 +3477,7 @@ function Kr(e) {
|
|
|
3483
3477
|
return Sn;
|
|
3484
3478
|
if (e.constructor.name === "Function") {
|
|
3485
3479
|
const t = e();
|
|
3486
|
-
if (
|
|
3480
|
+
if (Ba(t))
|
|
3487
3481
|
throw ve(ie.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
3488
3482
|
return Sn = t;
|
|
3489
3483
|
} else
|
|
@@ -3491,44 +3485,44 @@ function Kr(e) {
|
|
|
3491
3485
|
} else
|
|
3492
3486
|
throw ve(ie.NOT_SUPPORT_LOCALE_TYPE);
|
|
3493
3487
|
}
|
|
3494
|
-
function
|
|
3488
|
+
function Vc(e, t, n) {
|
|
3495
3489
|
return [.../* @__PURE__ */ new Set([
|
|
3496
3490
|
n,
|
|
3497
3491
|
...J(t) ? t : B(t) ? Object.keys(t) : w(t) ? [t] : [n]
|
|
3498
3492
|
])];
|
|
3499
3493
|
}
|
|
3500
|
-
function
|
|
3501
|
-
const r = w(n) ? n :
|
|
3494
|
+
function co(e, t, n) {
|
|
3495
|
+
const r = w(n) ? n : Ht, s = e;
|
|
3502
3496
|
s.__localeChainCache || (s.__localeChainCache = /* @__PURE__ */ new Map());
|
|
3503
3497
|
let o = s.__localeChainCache.get(r);
|
|
3504
3498
|
if (!o) {
|
|
3505
3499
|
o = [];
|
|
3506
3500
|
let i = [n];
|
|
3507
3501
|
for (; J(i); )
|
|
3508
|
-
i =
|
|
3502
|
+
i = Jr(o, i, t);
|
|
3509
3503
|
const a = J(t) || !$(t) ? t : t.default ? t.default : null;
|
|
3510
|
-
i = w(a) ? [a] : a, J(i) &&
|
|
3504
|
+
i = w(a) ? [a] : a, J(i) && Jr(o, i, !1), s.__localeChainCache.set(r, o);
|
|
3511
3505
|
}
|
|
3512
3506
|
return o;
|
|
3513
3507
|
}
|
|
3514
|
-
function
|
|
3508
|
+
function Jr(e, t, n) {
|
|
3515
3509
|
let r = !0;
|
|
3516
3510
|
for (let s = 0; s < t.length && X(r); s++) {
|
|
3517
3511
|
const o = t[s];
|
|
3518
|
-
w(o) && (r =
|
|
3512
|
+
w(o) && (r = $c(e, t[s], n));
|
|
3519
3513
|
}
|
|
3520
3514
|
return r;
|
|
3521
3515
|
}
|
|
3522
|
-
function
|
|
3516
|
+
function $c(e, t, n) {
|
|
3523
3517
|
let r;
|
|
3524
3518
|
const s = t.split("-");
|
|
3525
3519
|
do {
|
|
3526
3520
|
const o = s.join("-");
|
|
3527
|
-
r =
|
|
3521
|
+
r = Bc(e, o, n), s.splice(-1, 1);
|
|
3528
3522
|
} while (s.length && r === !0);
|
|
3529
3523
|
return r;
|
|
3530
3524
|
}
|
|
3531
|
-
function
|
|
3525
|
+
function Bc(e, t, n) {
|
|
3532
3526
|
let r = !1;
|
|
3533
3527
|
if (!e.includes(t) && (r = !0, t)) {
|
|
3534
3528
|
r = t[t.length - 1] !== "!";
|
|
@@ -3698,15 +3692,15 @@ Ue[
|
|
|
3698
3692
|
/* Actions.APPEND */
|
|
3699
3693
|
]
|
|
3700
3694
|
};
|
|
3701
|
-
const
|
|
3702
|
-
function
|
|
3703
|
-
return
|
|
3695
|
+
const jc = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
3696
|
+
function Hc(e) {
|
|
3697
|
+
return jc.test(e);
|
|
3704
3698
|
}
|
|
3705
|
-
function
|
|
3699
|
+
function Wc(e) {
|
|
3706
3700
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
3707
3701
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
3708
3702
|
}
|
|
3709
|
-
function
|
|
3703
|
+
function qc(e) {
|
|
3710
3704
|
if (e == null)
|
|
3711
3705
|
return "o";
|
|
3712
3706
|
switch (e.charCodeAt(0)) {
|
|
@@ -3743,11 +3737,11 @@ function Gc(e) {
|
|
|
3743
3737
|
}
|
|
3744
3738
|
return "i";
|
|
3745
3739
|
}
|
|
3746
|
-
function
|
|
3740
|
+
function Gc(e) {
|
|
3747
3741
|
const t = e.trim();
|
|
3748
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 :
|
|
3742
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Hc(t) ? Wc(t) : "*" + t;
|
|
3749
3743
|
}
|
|
3750
|
-
function
|
|
3744
|
+
function Yc(e) {
|
|
3751
3745
|
const t = [];
|
|
3752
3746
|
let n = -1, r = 0, s = 0, o, i, a, c, u, l, p;
|
|
3753
3747
|
const g = [];
|
|
@@ -3779,7 +3773,7 @@ function Kc(e) {
|
|
|
3779
3773
|
/* Actions.APPEND */
|
|
3780
3774
|
]();
|
|
3781
3775
|
else {
|
|
3782
|
-
if (s = 0, i === void 0 || (i =
|
|
3776
|
+
if (s = 0, i === void 0 || (i = Gc(i), i === !1))
|
|
3783
3777
|
return !1;
|
|
3784
3778
|
g[
|
|
3785
3779
|
1
|
|
@@ -3797,27 +3791,27 @@ function Kc(e) {
|
|
|
3797
3791
|
}
|
|
3798
3792
|
for (; r !== null; )
|
|
3799
3793
|
if (n++, o = e[n], !(o === "\\" && A())) {
|
|
3800
|
-
if (c =
|
|
3794
|
+
if (c = qc(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))))
|
|
3801
3795
|
return;
|
|
3802
3796
|
if (r === 7)
|
|
3803
3797
|
return t;
|
|
3804
3798
|
}
|
|
3805
3799
|
}
|
|
3806
|
-
const
|
|
3807
|
-
function
|
|
3800
|
+
const Qr = /* @__PURE__ */ new Map();
|
|
3801
|
+
function Kc(e, t) {
|
|
3808
3802
|
return B(e) ? e[t] : null;
|
|
3809
3803
|
}
|
|
3810
|
-
function
|
|
3804
|
+
function Xc(e, t) {
|
|
3811
3805
|
if (!B(e))
|
|
3812
3806
|
return null;
|
|
3813
|
-
let n =
|
|
3814
|
-
if (n || (n =
|
|
3807
|
+
let n = Qr.get(t);
|
|
3808
|
+
if (n || (n = Yc(t), n && Qr.set(t, n)), !n)
|
|
3815
3809
|
return null;
|
|
3816
3810
|
const r = n.length;
|
|
3817
3811
|
let s = e, o = 0;
|
|
3818
3812
|
for (; o < r; ) {
|
|
3819
3813
|
const i = n[o];
|
|
3820
|
-
if (
|
|
3814
|
+
if (ao.includes(i) && Ee(s))
|
|
3821
3815
|
return null;
|
|
3822
3816
|
const a = s[i];
|
|
3823
3817
|
if (a === void 0 || G(s))
|
|
@@ -3834,7 +3828,7 @@ const le = {
|
|
|
3834
3828
|
CANNOT_FORMAT_DATE: 5,
|
|
3835
3829
|
FALLBACK_TO_DATE_FORMAT: 6,
|
|
3836
3830
|
EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7
|
|
3837
|
-
},
|
|
3831
|
+
}, Jc = 8, Qc = {
|
|
3838
3832
|
[le.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
|
|
3839
3833
|
[le.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
|
|
3840
3834
|
[le.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
|
|
@@ -3846,43 +3840,43 @@ const le = {
|
|
|
3846
3840
|
function Ke(e, ...t) {
|
|
3847
3841
|
return nn(Qc[e], ...t);
|
|
3848
3842
|
}
|
|
3849
|
-
const
|
|
3850
|
-
function
|
|
3843
|
+
const zc = "11.2.2", sn = -1, Ht = "en-US", Wt = "", zr = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
3844
|
+
function Zc() {
|
|
3851
3845
|
return {
|
|
3852
3846
|
upper: (e, t) => t === "text" && w(e) ? e.toUpperCase() : t === "vnode" && B(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
3853
3847
|
lower: (e, t) => t === "text" && w(e) ? e.toLowerCase() : t === "vnode" && B(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
3854
3848
|
capitalize: (e, t) => t === "text" && w(e) ? zr(e) : t === "vnode" && B(e) && "__v_isVNode" in e ? zr(e.children) : e
|
|
3855
3849
|
};
|
|
3856
3850
|
}
|
|
3857
|
-
let co;
|
|
3858
|
-
function tl(e) {
|
|
3859
|
-
co = e;
|
|
3860
|
-
}
|
|
3861
3851
|
let lo;
|
|
3862
|
-
function
|
|
3852
|
+
function el(e) {
|
|
3863
3853
|
lo = e;
|
|
3864
3854
|
}
|
|
3865
3855
|
let uo;
|
|
3866
|
-
function
|
|
3856
|
+
function tl(e) {
|
|
3867
3857
|
uo = e;
|
|
3868
3858
|
}
|
|
3869
|
-
let fo
|
|
3870
|
-
|
|
3859
|
+
let fo;
|
|
3860
|
+
function nl(e) {
|
|
3871
3861
|
fo = e;
|
|
3872
|
-
}
|
|
3862
|
+
}
|
|
3873
3863
|
let po = null;
|
|
3874
|
-
const
|
|
3864
|
+
const rl = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
3875
3865
|
po = e;
|
|
3876
|
-
},
|
|
3877
|
-
let
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3866
|
+
}, sl = /* @__NO_SIDE_EFFECTS__ */ () => po;
|
|
3867
|
+
let mo = null;
|
|
3868
|
+
const Zr = (e) => {
|
|
3869
|
+
mo = e;
|
|
3870
|
+
}, ol = () => mo;
|
|
3871
|
+
let es = 0;
|
|
3872
|
+
function il(e = {}) {
|
|
3873
|
+
const t = G(e.onWarn) ? e.onWarn : Le, n = w(e.version) ? e.version : zc, r = w(e.locale) || G(e.locale) ? e.locale : Ht, s = G(r) ? Ht : 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, Zc()), l = e.pluralRules || H(), p = G(e.missing) ? e.missing : null, g = X(e.missingWarn) || jt(e.missingWarn) ? e.missingWarn : !0, A = X(e.fallbackWarn) || jt(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 : lo;
|
|
3874
|
+
process.env.NODE_ENV !== "production" && G(e.messageCompiler) && Da(Ke(le.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
3875
|
+
const C = G(e.messageResolver) ? e.messageResolver : uo || Kc, R = G(e.localeFallbacker) ? e.localeFallbacker : fo || Vc, _ = 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 : {};
|
|
3876
|
+
es++;
|
|
3883
3877
|
const k = {
|
|
3884
3878
|
version: n,
|
|
3885
|
-
cid:
|
|
3879
|
+
cid: es,
|
|
3886
3880
|
locale: r,
|
|
3887
3881
|
fallbackLocale: o,
|
|
3888
3882
|
messages: i,
|
|
@@ -3904,13 +3898,13 @@ function al(e = {}) {
|
|
|
3904
3898
|
onWarn: t,
|
|
3905
3899
|
__meta: P
|
|
3906
3900
|
};
|
|
3907
|
-
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__) &&
|
|
3901
|
+
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__) && kc(k, n, P), k;
|
|
3908
3902
|
}
|
|
3909
3903
|
const Tn = (e) => ({ [e]: H() });
|
|
3910
3904
|
function on(e, t) {
|
|
3911
3905
|
return e instanceof RegExp ? e.test(t) : e;
|
|
3912
3906
|
}
|
|
3913
|
-
function
|
|
3907
|
+
function _o(e, t) {
|
|
3914
3908
|
return e instanceof RegExp ? e.test(t) : e;
|
|
3915
3909
|
}
|
|
3916
3910
|
function ur(e, t, n, r, s) {
|
|
@@ -3928,32 +3922,32 @@ function ur(e, t, n, r, s) {
|
|
|
3928
3922
|
const a = o(e, n, t, s);
|
|
3929
3923
|
return w(a) ? a : t;
|
|
3930
3924
|
} else
|
|
3931
|
-
return process.env.NODE_ENV !== "production" &&
|
|
3925
|
+
return process.env.NODE_ENV !== "production" && _o(r, t) && i(Ke(le.NOT_FOUND_KEY, { key: t, locale: n })), t;
|
|
3932
3926
|
}
|
|
3933
|
-
function
|
|
3927
|
+
function ut(e, t, n) {
|
|
3934
3928
|
const r = e;
|
|
3935
3929
|
r.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
3936
3930
|
}
|
|
3937
|
-
function
|
|
3931
|
+
function ho(e, t) {
|
|
3938
3932
|
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
3939
3933
|
}
|
|
3940
|
-
function
|
|
3934
|
+
function al(e, t) {
|
|
3941
3935
|
const n = t.indexOf(e);
|
|
3942
3936
|
if (n === -1)
|
|
3943
3937
|
return !1;
|
|
3944
3938
|
for (let r = n + 1; r < t.length; r++)
|
|
3945
|
-
if (
|
|
3939
|
+
if (ho(e, t[r]))
|
|
3946
3940
|
return !0;
|
|
3947
3941
|
return !1;
|
|
3948
3942
|
}
|
|
3949
|
-
const
|
|
3950
|
-
dateTimeFormat:
|
|
3951
|
-
numberFormat:
|
|
3943
|
+
const ts = typeof Intl < "u", Eo = {
|
|
3944
|
+
dateTimeFormat: ts && typeof Intl.DateTimeFormat < "u",
|
|
3945
|
+
numberFormat: ts && typeof Intl.NumberFormat < "u"
|
|
3952
3946
|
};
|
|
3953
|
-
function
|
|
3947
|
+
function ns(e, ...t) {
|
|
3954
3948
|
const { datetimeFormats: n, unresolving: r, fallbackLocale: s, onWarn: o, localeFallbacker: i } = e, { __datetimeFormatters: a } = e;
|
|
3955
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
3956
|
-
return o(Ke(le.CANNOT_FORMAT_DATE)),
|
|
3949
|
+
if (process.env.NODE_ENV !== "production" && !Eo.dateTimeFormat)
|
|
3950
|
+
return o(Ke(le.CANNOT_FORMAT_DATE)), Wt;
|
|
3957
3951
|
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(
|
|
3958
3952
|
e,
|
|
3959
3953
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
@@ -3989,7 +3983,7 @@ function ts(e, ...t) {
|
|
|
3989
3983
|
let x = a.get(_);
|
|
3990
3984
|
return x || (x = new Intl.DateTimeFormat(N, te({}, T, p)), a.set(_, x)), E ? x.formatToParts(u) : x.format(u);
|
|
3991
3985
|
}
|
|
3992
|
-
const
|
|
3986
|
+
const go = [
|
|
3993
3987
|
"localeMatcher",
|
|
3994
3988
|
"weekday",
|
|
3995
3989
|
"era",
|
|
@@ -4025,7 +4019,7 @@ function Mn(...e) {
|
|
|
4025
4019
|
} catch {
|
|
4026
4020
|
throw ve(ie.INVALID_ISO_DATE_ARGUMENT);
|
|
4027
4021
|
}
|
|
4028
|
-
} else if (
|
|
4022
|
+
} else if (Ma(t)) {
|
|
4029
4023
|
if (isNaN(t.getTime()))
|
|
4030
4024
|
throw ve(ie.INVALID_DATE_ARGUMENT);
|
|
4031
4025
|
a = t;
|
|
@@ -4034,20 +4028,20 @@ function Mn(...e) {
|
|
|
4034
4028
|
else
|
|
4035
4029
|
throw ve(ie.INVALID_ARGUMENT);
|
|
4036
4030
|
return w(n) ? o.key = n : $(n) && Object.keys(n).forEach((c) => {
|
|
4037
|
-
|
|
4031
|
+
go.includes(c) ? i[c] = n[c] : o[c] = n[c];
|
|
4038
4032
|
}), w(r) ? o.locale = r : $(r) && (i = r), $(s) && (i = s), [o.key || "", a, o, i];
|
|
4039
4033
|
}
|
|
4040
|
-
function
|
|
4034
|
+
function rs(e, t, n) {
|
|
4041
4035
|
const r = e;
|
|
4042
4036
|
for (const s in n) {
|
|
4043
4037
|
const o = `${t}__${s}`;
|
|
4044
4038
|
r.__datetimeFormatters.has(o) && r.__datetimeFormatters.delete(o);
|
|
4045
4039
|
}
|
|
4046
4040
|
}
|
|
4047
|
-
function
|
|
4041
|
+
function ss(e, ...t) {
|
|
4048
4042
|
const { numberFormats: n, unresolving: r, fallbackLocale: s, onWarn: o, localeFallbacker: i } = e, { __numberFormatters: a } = e;
|
|
4049
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
4050
|
-
return o(Ke(le.CANNOT_FORMAT_NUMBER)),
|
|
4043
|
+
if (process.env.NODE_ENV !== "production" && !Eo.numberFormat)
|
|
4044
|
+
return o(Ke(le.CANNOT_FORMAT_NUMBER)), Wt;
|
|
4051
4045
|
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(
|
|
4052
4046
|
e,
|
|
4053
4047
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
@@ -4083,7 +4077,7 @@ function rs(e, ...t) {
|
|
|
4083
4077
|
let x = a.get(_);
|
|
4084
4078
|
return x || (x = new Intl.NumberFormat(N, te({}, T, p)), a.set(_, x)), E ? x.formatToParts(u) : x.format(u);
|
|
4085
4079
|
}
|
|
4086
|
-
const
|
|
4080
|
+
const bo = [
|
|
4087
4081
|
"localeMatcher",
|
|
4088
4082
|
"style",
|
|
4089
4083
|
"currency",
|
|
@@ -4112,36 +4106,36 @@ function xn(...e) {
|
|
|
4112
4106
|
throw ve(ie.INVALID_ARGUMENT);
|
|
4113
4107
|
const a = t;
|
|
4114
4108
|
return w(n) ? o.key = n : $(n) && Object.keys(n).forEach((c) => {
|
|
4115
|
-
|
|
4109
|
+
bo.includes(c) ? i[c] = n[c] : o[c] = n[c];
|
|
4116
4110
|
}), w(r) ? o.locale = r : $(r) && (i = r), $(s) && (i = s), [o.key || "", a, o, i];
|
|
4117
4111
|
}
|
|
4118
|
-
function
|
|
4112
|
+
function os(e, t, n) {
|
|
4119
4113
|
const r = e;
|
|
4120
4114
|
for (const s in n) {
|
|
4121
4115
|
const o = `${t}__${s}`;
|
|
4122
4116
|
r.__numberFormatters.has(o) && r.__numberFormatters.delete(o);
|
|
4123
4117
|
}
|
|
4124
4118
|
}
|
|
4125
|
-
const
|
|
4126
|
-
function
|
|
4119
|
+
const cl = (e) => e, ll = (e) => "", ul = "text", fl = (e) => e.length === 0 ? "" : ir(e), dl = ja;
|
|
4120
|
+
function is(e, t) {
|
|
4127
4121
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
4128
4122
|
}
|
|
4129
|
-
function
|
|
4123
|
+
function pl(e) {
|
|
4130
4124
|
const t = ee(e.pluralIndex) ? e.pluralIndex : -1;
|
|
4131
4125
|
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;
|
|
4132
4126
|
}
|
|
4133
|
-
function
|
|
4127
|
+
function ml(e, t) {
|
|
4134
4128
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
4135
4129
|
}
|
|
4136
|
-
function
|
|
4137
|
-
const t = e.locale, n =
|
|
4138
|
-
ee(e.pluralIndex) &&
|
|
4130
|
+
function _l(e = {}) {
|
|
4131
|
+
const t = e.locale, n = pl(e), r = B(e.pluralRules) && w(t) && G(e.pluralRules[t]) ? e.pluralRules[t] : is, s = B(e.pluralRules) && w(t) && G(e.pluralRules[t]) ? is : void 0, o = (m) => m[r(n, m.length, s)], i = e.list || [], a = (m) => i[m], c = e.named || H();
|
|
4132
|
+
ee(e.pluralIndex) && ml(n, c);
|
|
4139
4133
|
const u = (m) => c[m];
|
|
4140
4134
|
function l(m, N) {
|
|
4141
4135
|
const T = G(e.messages) ? e.messages(m, !!N) : B(e.messages) ? e.messages[m] : !1;
|
|
4142
|
-
return T || (e.parent ? e.parent.message(m) :
|
|
4136
|
+
return T || (e.parent ? e.parent.message(m) : ll);
|
|
4143
4137
|
}
|
|
4144
|
-
const p = (m) => e.modifiers ? e.modifiers[m] :
|
|
4138
|
+
const p = (m) => e.modifiers ? e.modifiers[m] : cl, g = $(e.processor) && G(e.processor.normalize) ? e.processor.normalize : fl, A = $(e.processor) && G(e.processor.interpolate) ? e.processor.interpolate : dl, E = $(e.processor) && w(e.processor.type) ? e.processor.type : ul, S = {
|
|
4145
4139
|
list: a,
|
|
4146
4140
|
named: u,
|
|
4147
4141
|
plural: o,
|
|
@@ -4163,15 +4157,15 @@ function hl(e = {}) {
|
|
|
4163
4157
|
};
|
|
4164
4158
|
return S;
|
|
4165
4159
|
}
|
|
4166
|
-
const
|
|
4167
|
-
function
|
|
4160
|
+
const as = () => "", me = (e) => G(e);
|
|
4161
|
+
function cs(e, ...t) {
|
|
4168
4162
|
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);
|
|
4169
|
-
g &&
|
|
4163
|
+
g && hl(u);
|
|
4170
4164
|
let [m, N, T] = A ? [
|
|
4171
4165
|
c,
|
|
4172
4166
|
S,
|
|
4173
4167
|
a[S] || H()
|
|
4174
|
-
] :
|
|
4168
|
+
] : yo(e, c, S, i, p, l), y = m, C = c;
|
|
4175
4169
|
if (!A && !(w(y) || Ee(y) || me(y)) && b && (y = E, C = y), !A && (!(w(y) || Ee(y) || me(y)) || !w(N)))
|
|
4176
4170
|
return s ? sn : c;
|
|
4177
4171
|
if (process.env.NODE_ENV !== "production" && w(y) && e.messageCompiler == null)
|
|
@@ -4179,12 +4173,12 @@ function as(e, ...t) {
|
|
|
4179
4173
|
let R = !1;
|
|
4180
4174
|
const _ = () => {
|
|
4181
4175
|
R = !0;
|
|
4182
|
-
}, x = me(y) ? y :
|
|
4176
|
+
}, x = me(y) ? y : No(e, c, N, y, C, _);
|
|
4183
4177
|
if (R)
|
|
4184
4178
|
return y;
|
|
4185
|
-
const U =
|
|
4179
|
+
const U = yl(e, N, T, u), I = _l(U), P = El(e, x, I);
|
|
4186
4180
|
let k = r ? r(P, c) : P;
|
|
4187
|
-
if (g && w(k) && (k =
|
|
4181
|
+
if (g && w(k) && (k = Va(k)), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
4188
4182
|
const W = {
|
|
4189
4183
|
timestamp: Date.now(),
|
|
4190
4184
|
key: w(c) ? c : me(y) ? y.key : "",
|
|
@@ -4192,21 +4186,21 @@ function as(e, ...t) {
|
|
|
4192
4186
|
format: w(y) ? y : me(y) ? y.source : "",
|
|
4193
4187
|
message: k
|
|
4194
4188
|
};
|
|
4195
|
-
W.meta = te({}, e.__meta, /* @__PURE__ */
|
|
4189
|
+
W.meta = te({}, e.__meta, /* @__PURE__ */ sl() || {}), Fc(W);
|
|
4196
4190
|
}
|
|
4197
4191
|
return k;
|
|
4198
4192
|
}
|
|
4199
|
-
function
|
|
4200
|
-
J(e.list) ? e.list = e.list.map((t) => w(t) ?
|
|
4201
|
-
w(e.named[t]) && (e.named[t] =
|
|
4193
|
+
function hl(e) {
|
|
4194
|
+
J(e.list) ? e.list = e.list.map((t) => w(t) ? jr(t) : t) : B(e.named) && Object.keys(e.named).forEach((t) => {
|
|
4195
|
+
w(e.named[t]) && (e.named[t] = jr(e.named[t]));
|
|
4202
4196
|
});
|
|
4203
4197
|
}
|
|
4204
|
-
function
|
|
4198
|
+
function yo(e, t, n, r, s, o) {
|
|
4205
4199
|
const { messages: i, onWarn: a, messageResolver: c, localeFallbacker: u } = e, l = u(e, r, n);
|
|
4206
4200
|
let p = H(), g, A = null, E = n, b = null;
|
|
4207
4201
|
const S = "translate";
|
|
4208
4202
|
for (let m = 0; m < l.length; m++) {
|
|
4209
|
-
if (g = b = l[m], process.env.NODE_ENV !== "production" && n !== g && !
|
|
4203
|
+
if (g = b = l[m], process.env.NODE_ENV !== "production" && n !== g && !ho(n, g) && on(s, t) && a(Ke(le.FALLBACK_TO_TRANSLATE, {
|
|
4210
4204
|
key: t,
|
|
4211
4205
|
target: g
|
|
4212
4206
|
})), process.env.NODE_ENV !== "production" && n !== g) {
|
|
@@ -4233,7 +4227,7 @@ function bo(e, t, n, r, s, o) {
|
|
|
4233
4227
|
}
|
|
4234
4228
|
if (w(A) || Ee(A) || me(A))
|
|
4235
4229
|
break;
|
|
4236
|
-
if (!
|
|
4230
|
+
if (!al(g, l)) {
|
|
4237
4231
|
const C = ur(
|
|
4238
4232
|
e,
|
|
4239
4233
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
@@ -4248,7 +4242,7 @@ function bo(e, t, n, r, s, o) {
|
|
|
4248
4242
|
}
|
|
4249
4243
|
return [A, g, p];
|
|
4250
4244
|
}
|
|
4251
|
-
function
|
|
4245
|
+
function No(e, t, n, r, s, o) {
|
|
4252
4246
|
const { messageCompiler: i, warnHtmlMessage: a } = e;
|
|
4253
4247
|
if (me(r)) {
|
|
4254
4248
|
const g = r;
|
|
@@ -4260,7 +4254,7 @@ function yo(e, t, n, r, s, o) {
|
|
|
4260
4254
|
}
|
|
4261
4255
|
let c = null, u, l;
|
|
4262
4256
|
process.env.NODE_ENV !== "production" && Re && (c = window.performance.now(), u = "intlify-message-compilation-start", l = "intlify-message-compilation-end", de && de(u));
|
|
4263
|
-
const p = i(r,
|
|
4257
|
+
const p = i(r, gl(e, n, s, r, a, o));
|
|
4264
4258
|
if (process.env.NODE_ENV !== "production" && Re) {
|
|
4265
4259
|
const g = window.performance.now(), A = e.__v_emitter;
|
|
4266
4260
|
A && c && A.emit("message-compilation", {
|
|
@@ -4272,7 +4266,7 @@ function yo(e, t, n, r, s, o) {
|
|
|
4272
4266
|
}
|
|
4273
4267
|
return p.locale = n, p.key = t, p.source = r, p;
|
|
4274
4268
|
}
|
|
4275
|
-
function
|
|
4269
|
+
function El(e, t, n) {
|
|
4276
4270
|
let r = null, s, o;
|
|
4277
4271
|
process.env.NODE_ENV !== "production" && Re && (r = window.performance.now(), s = "intlify-message-evaluation-start", o = "intlify-message-evaluation-end", de && de(s));
|
|
4278
4272
|
const i = t(n);
|
|
@@ -4294,14 +4288,14 @@ function Vn(...e) {
|
|
|
4294
4288
|
const o = ee(t) ? String(t) : (me(t), t);
|
|
4295
4289
|
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];
|
|
4296
4290
|
}
|
|
4297
|
-
function
|
|
4291
|
+
function gl(e, t, n, r, s, o) {
|
|
4298
4292
|
return {
|
|
4299
4293
|
locale: t,
|
|
4300
4294
|
key: n,
|
|
4301
4295
|
warnHtmlMessage: s,
|
|
4302
4296
|
onError: (i) => {
|
|
4303
4297
|
if (o && o(i), process.env.NODE_ENV !== "production") {
|
|
4304
|
-
const a =
|
|
4298
|
+
const a = bl(r), c = `Message compilation error: ${i.message}`, u = i.location && a && Ha(a, i.location.start.offset, i.location.end.offset), l = e.__v_emitter;
|
|
4305
4299
|
l && a && l.emit("compile-error", {
|
|
4306
4300
|
message: a,
|
|
4307
4301
|
error: i.message,
|
|
@@ -4313,16 +4307,16 @@ ${u}` : c);
|
|
|
4313
4307
|
} else
|
|
4314
4308
|
throw i;
|
|
4315
4309
|
},
|
|
4316
|
-
onCacheKey: (i) =>
|
|
4310
|
+
onCacheKey: (i) => Fa(t, n, i)
|
|
4317
4311
|
};
|
|
4318
4312
|
}
|
|
4319
|
-
function
|
|
4313
|
+
function bl(e) {
|
|
4320
4314
|
if (w(e))
|
|
4321
4315
|
return e;
|
|
4322
4316
|
if (e.loc && e.loc.source)
|
|
4323
4317
|
return e.loc.source;
|
|
4324
4318
|
}
|
|
4325
|
-
function
|
|
4319
|
+
function yl(e, t, n, r) {
|
|
4326
4320
|
const { modifiers: s, pluralRules: o, messageResolver: i, fallbackLocale: a, fallbackWarn: c, missingWarn: u, fallbackContext: l } = e, g = {
|
|
4327
4321
|
locale: t,
|
|
4328
4322
|
modifiers: s,
|
|
@@ -4330,7 +4324,7 @@ function Nl(e, t, n, r) {
|
|
|
4330
4324
|
messages: (A, E) => {
|
|
4331
4325
|
let b = i(n, A);
|
|
4332
4326
|
if (b == null && (l || E)) {
|
|
4333
|
-
const [, , S] =
|
|
4327
|
+
const [, , S] = yo(
|
|
4334
4328
|
l || e,
|
|
4335
4329
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
4336
4330
|
A,
|
|
@@ -4343,23 +4337,23 @@ function Nl(e, t, n, r) {
|
|
|
4343
4337
|
}
|
|
4344
4338
|
if (w(b) || Ee(b)) {
|
|
4345
4339
|
let S = !1;
|
|
4346
|
-
const N =
|
|
4340
|
+
const N = No(e, A, t, b, A, () => {
|
|
4347
4341
|
S = !0;
|
|
4348
4342
|
});
|
|
4349
|
-
return S ?
|
|
4350
|
-
} else return me(b) ? b :
|
|
4343
|
+
return S ? as : N;
|
|
4344
|
+
} else return me(b) ? b : as;
|
|
4351
4345
|
}
|
|
4352
4346
|
};
|
|
4353
4347
|
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;
|
|
4354
4348
|
}
|
|
4355
|
-
|
|
4356
|
-
const
|
|
4357
|
-
function
|
|
4349
|
+
yc();
|
|
4350
|
+
const Nl = "11.2.2";
|
|
4351
|
+
function Ol() {
|
|
4358
4352
|
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);
|
|
4359
4353
|
}
|
|
4360
4354
|
const re = {
|
|
4361
4355
|
// composer module errors
|
|
4362
|
-
UNEXPECTED_RETURN_TYPE:
|
|
4356
|
+
UNEXPECTED_RETURN_TYPE: Mc,
|
|
4363
4357
|
// 24
|
|
4364
4358
|
// legacy module errors
|
|
4365
4359
|
INVALID_ARGUMENT: 25,
|
|
@@ -4379,10 +4373,10 @@ const re = {
|
|
|
4379
4373
|
// Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly
|
|
4380
4374
|
NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
|
|
4381
4375
|
};
|
|
4382
|
-
function
|
|
4383
|
-
return
|
|
4376
|
+
function ht(e, ...t) {
|
|
4377
|
+
return ot(e, null, process.env.NODE_ENV !== "production" ? { messages: Sl, args: t } : void 0);
|
|
4384
4378
|
}
|
|
4385
|
-
const
|
|
4379
|
+
const Sl = {
|
|
4386
4380
|
[re.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
|
4387
4381
|
[re.INVALID_ARGUMENT]: "Invalid argument",
|
|
4388
4382
|
[re.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
|
|
@@ -4394,8 +4388,8 @@ const Tl = {
|
|
|
4394
4388
|
[re.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
|
|
4395
4389
|
[re.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
|
4396
4390
|
[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"
|
|
4397
|
-
}, $n = /* @__PURE__ */ Pe("__translateVNode"), Bn = /* @__PURE__ */ Pe("__datetimeParts"), jn = /* @__PURE__ */ Pe("__numberParts"), Hn = /* @__PURE__ */ Pe("__enableEmitter"), Wn = /* @__PURE__ */ Pe("__disableEmitter"),
|
|
4398
|
-
FALLBACK_TO_ROOT:
|
|
4391
|
+
}, $n = /* @__PURE__ */ Pe("__translateVNode"), Bn = /* @__PURE__ */ Pe("__datetimeParts"), jn = /* @__PURE__ */ Pe("__numberParts"), Hn = /* @__PURE__ */ Pe("__enableEmitter"), Wn = /* @__PURE__ */ Pe("__disableEmitter"), Tl = Pe("__setPluralRules"), Oo = /* @__PURE__ */ Pe("__injectWithOption"), qn = /* @__PURE__ */ Pe("__dispose"), Te = {
|
|
4392
|
+
FALLBACK_TO_ROOT: Jc,
|
|
4399
4393
|
// 8
|
|
4400
4394
|
NOT_FOUND_PARENT_SCOPE: 9,
|
|
4401
4395
|
IGNORE_OBJ_FLATTEN: 10,
|
|
@@ -4409,7 +4403,7 @@ const Tl = {
|
|
|
4409
4403
|
DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE: 12,
|
|
4410
4404
|
// duplicate `useI18n` calling
|
|
4411
4405
|
DUPLICATE_USE_I18N_CALLING: 13
|
|
4412
|
-
},
|
|
4406
|
+
}, Ll = {
|
|
4413
4407
|
[Te.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
|
|
4414
4408
|
[Te.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
|
|
4415
4409
|
[Te.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
|
|
@@ -4424,16 +4418,16 @@ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guid
|
|
|
4424
4418
|
[Te.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]: "'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",
|
|
4425
4419
|
[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."
|
|
4426
4420
|
};
|
|
4427
|
-
function
|
|
4428
|
-
return nn(
|
|
4421
|
+
function qt(e, ...t) {
|
|
4422
|
+
return nn(Ll[e], ...t);
|
|
4429
4423
|
}
|
|
4430
|
-
function
|
|
4424
|
+
function Et(e) {
|
|
4431
4425
|
if (!B(e) || Ee(e))
|
|
4432
4426
|
return e;
|
|
4433
4427
|
for (const t in e)
|
|
4434
4428
|
if (he(e, t))
|
|
4435
4429
|
if (!t.includes("."))
|
|
4436
|
-
B(e[t]) &&
|
|
4430
|
+
B(e[t]) && Et(e[t]);
|
|
4437
4431
|
else {
|
|
4438
4432
|
const n = t.split("."), r = n.length - 1;
|
|
4439
4433
|
let s = e, o = !1;
|
|
@@ -4441,39 +4435,39 @@ function gt(e) {
|
|
|
4441
4435
|
if (n[i] === "__proto__")
|
|
4442
4436
|
throw new Error(`unsafe key: ${n[i]}`);
|
|
4443
4437
|
if (n[i] in s || (s[n[i]] = H()), !B(s[n[i]])) {
|
|
4444
|
-
process.env.NODE_ENV !== "production" && Le(
|
|
4438
|
+
process.env.NODE_ENV !== "production" && Le(qt(Te.IGNORE_OBJ_FLATTEN, {
|
|
4445
4439
|
key: n[i]
|
|
4446
4440
|
})), o = !0;
|
|
4447
4441
|
break;
|
|
4448
4442
|
}
|
|
4449
4443
|
s = s[n[i]];
|
|
4450
4444
|
}
|
|
4451
|
-
if (o || (Ee(s) ?
|
|
4445
|
+
if (o || (Ee(s) ? ao.includes(n[r]) || delete e[t] : (s[n[r]] = e[t], delete e[t])), !Ee(s)) {
|
|
4452
4446
|
const i = s[n[r]];
|
|
4453
|
-
B(i) &&
|
|
4447
|
+
B(i) && Et(i);
|
|
4454
4448
|
}
|
|
4455
4449
|
}
|
|
4456
4450
|
return e;
|
|
4457
4451
|
}
|
|
4458
|
-
function
|
|
4452
|
+
function So(e, t) {
|
|
4459
4453
|
const { messages: n, __i18n: r, messageResolver: s, flatJson: o } = t, i = $(n) ? n : J(r) ? H() : { [e]: H() };
|
|
4460
4454
|
if (J(r) && r.forEach((a) => {
|
|
4461
4455
|
if ("locale" in a && "resource" in a) {
|
|
4462
4456
|
const { locale: c, resource: u } = a;
|
|
4463
|
-
c ? (i[c] = i[c] || H(),
|
|
4457
|
+
c ? (i[c] = i[c] || H(), Dt(u, i[c])) : Dt(u, i);
|
|
4464
4458
|
} else
|
|
4465
|
-
w(a) &&
|
|
4459
|
+
w(a) && Dt(JSON.parse(a), i);
|
|
4466
4460
|
}), s == null && o)
|
|
4467
4461
|
for (const a in i)
|
|
4468
|
-
he(i, a) &&
|
|
4462
|
+
he(i, a) && Et(i[a]);
|
|
4469
4463
|
return i;
|
|
4470
4464
|
}
|
|
4471
|
-
function
|
|
4465
|
+
function To(e) {
|
|
4472
4466
|
return e.type;
|
|
4473
4467
|
}
|
|
4474
|
-
function
|
|
4468
|
+
function Al(e, t, n) {
|
|
4475
4469
|
let r = B(t.messages) ? t.messages : H();
|
|
4476
|
-
"__i18nGlobal" in n && (r =
|
|
4470
|
+
"__i18nGlobal" in n && (r = So(e.locale.value, {
|
|
4477
4471
|
messages: r,
|
|
4478
4472
|
__i18n: n.__i18nGlobal
|
|
4479
4473
|
}));
|
|
@@ -4496,39 +4490,39 @@ function vl(e, t, n) {
|
|
|
4496
4490
|
}
|
|
4497
4491
|
}
|
|
4498
4492
|
}
|
|
4499
|
-
function
|
|
4500
|
-
return Xo
|
|
4493
|
+
function ls(e) {
|
|
4494
|
+
return Ko(Xo, null, e, 0);
|
|
4501
4495
|
}
|
|
4502
4496
|
function fr() {
|
|
4503
4497
|
return "currentInstance" in _n ? _n["currentInstance"] : _n.getCurrentInstance();
|
|
4504
4498
|
}
|
|
4505
|
-
const
|
|
4506
|
-
let
|
|
4507
|
-
function
|
|
4499
|
+
const us = "__INTLIFY_META__", fs = () => [], vl = () => !1;
|
|
4500
|
+
let ds = 0;
|
|
4501
|
+
function ps(e) {
|
|
4508
4502
|
return ((t, n, r, s) => e(n, r, fr() || void 0, s));
|
|
4509
4503
|
}
|
|
4510
|
-
const
|
|
4504
|
+
const Cl = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
4511
4505
|
const e = fr();
|
|
4512
4506
|
let t = null;
|
|
4513
|
-
return e && (t =
|
|
4507
|
+
return e && (t = To(e)[us]) ? { [us]: t } : null;
|
|
4514
4508
|
};
|
|
4515
|
-
function
|
|
4516
|
-
const { __root: t, __injectWithOption: n } = e, r = t === void 0, s = e.flatJson, o = Re ?
|
|
4509
|
+
function Rl(e = {}) {
|
|
4510
|
+
const { __root: t, __injectWithOption: n } = e, r = t === void 0, s = e.flatJson, o = Re ? Xt : Yo;
|
|
4517
4511
|
let i = X(e.inheritLocale) ? e.inheritLocale : !0;
|
|
4518
4512
|
const a = o(
|
|
4519
4513
|
// prettier-ignore
|
|
4520
|
-
t && i ? t.locale.value : w(e.locale) ? e.locale :
|
|
4514
|
+
t && i ? t.locale.value : w(e.locale) ? e.locale : Ht
|
|
4521
4515
|
), c = o(
|
|
4522
4516
|
// prettier-ignore
|
|
4523
4517
|
t && i ? t.fallbackLocale.value : w(e.fallbackLocale) || J(e.fallbackLocale) || $(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a.value
|
|
4524
|
-
), u = o(
|
|
4525
|
-
let g = t ? t.missingWarn : X(e.missingWarn) ||
|
|
4518
|
+
), u = o(So(a.value, e)), l = o($(e.datetimeFormats) ? e.datetimeFormats : { [a.value]: {} }), p = o($(e.numberFormats) ? e.numberFormats : { [a.value]: {} });
|
|
4519
|
+
let g = t ? t.missingWarn : X(e.missingWarn) || jt(e.missingWarn) ? e.missingWarn : !0, A = t ? t.fallbackWarn : X(e.fallbackWarn) || jt(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) ? ps(e.missing) : null, N = G(e.postTranslation) ? e.postTranslation : null, T = t ? t.warnHtmlMessage : X(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, y = !!e.escapeParameter;
|
|
4526
4520
|
const C = t ? t.modifiers : $(e.modifiers) ? e.modifiers : {};
|
|
4527
4521
|
let R = e.pluralRules || t && t.pluralRules, _;
|
|
4528
4522
|
_ = (() => {
|
|
4529
|
-
r &&
|
|
4523
|
+
r && Zr(null);
|
|
4530
4524
|
const O = {
|
|
4531
|
-
version:
|
|
4525
|
+
version: Nl,
|
|
4532
4526
|
locale: a.value,
|
|
4533
4527
|
fallbackLocale: c.value,
|
|
4534
4528
|
messages: u.value,
|
|
@@ -4547,9 +4541,9 @@ function Il(e = {}) {
|
|
|
4547
4541
|
__meta: { framework: "vue" }
|
|
4548
4542
|
};
|
|
4549
4543
|
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);
|
|
4550
|
-
const v =
|
|
4551
|
-
return r &&
|
|
4552
|
-
})(),
|
|
4544
|
+
const v = il(O);
|
|
4545
|
+
return r && Zr(v), v;
|
|
4546
|
+
})(), ut(_, a.value, c.value);
|
|
4553
4547
|
function U() {
|
|
4554
4548
|
return [
|
|
4555
4549
|
a.value,
|
|
@@ -4567,7 +4561,7 @@ function Il(e = {}) {
|
|
|
4567
4561
|
}), P = ke({
|
|
4568
4562
|
get: () => c.value,
|
|
4569
4563
|
set: (O) => {
|
|
4570
|
-
_.fallbackLocale = O, c.value = O,
|
|
4564
|
+
_.fallbackLocale = O, c.value = O, ut(_, a.value, O);
|
|
4571
4565
|
}
|
|
4572
4566
|
}), k = ke(() => u.value), W = /* @__PURE__ */ ke(() => l.value), ne = /* @__PURE__ */ ke(() => p.value);
|
|
4573
4567
|
function be() {
|
|
@@ -4580,23 +4574,23 @@ function Il(e = {}) {
|
|
|
4580
4574
|
return S;
|
|
4581
4575
|
}
|
|
4582
4576
|
function Z(O) {
|
|
4583
|
-
O !== null && (m =
|
|
4577
|
+
O !== null && (m = ps(O)), S = O, _.missing = m;
|
|
4584
4578
|
}
|
|
4585
|
-
function
|
|
4579
|
+
function z(O, v) {
|
|
4586
4580
|
return O !== "translate" || !v.resolvedMessage;
|
|
4587
4581
|
}
|
|
4588
|
-
const _e = (O, v, j, K, Ve,
|
|
4582
|
+
const _e = (O, v, j, K, Ve, Tt) => {
|
|
4589
4583
|
U();
|
|
4590
4584
|
let Je;
|
|
4591
4585
|
try {
|
|
4592
|
-
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (_.fallbackContext = t ?
|
|
4586
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (_.fallbackContext = t ? ol() : void 0), Je = O(_);
|
|
4593
4587
|
} finally {
|
|
4594
4588
|
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (_.fallbackContext = void 0);
|
|
4595
4589
|
}
|
|
4596
4590
|
if (j !== "translate exists" && // for not `te` (e.g `t`)
|
|
4597
4591
|
ee(Je) && Je === sn || j === "translate exists" && !Je) {
|
|
4598
|
-
const [$e,
|
|
4599
|
-
if (process.env.NODE_ENV !== "production" && t && w($e) &&
|
|
4592
|
+
const [$e, Do] = v();
|
|
4593
|
+
if (process.env.NODE_ENV !== "production" && t && w($e) && z(j, Do) && (E && (on(A, $e) || _o(g, $e)) && Le(qt(Te.FALLBACK_TO_ROOT, {
|
|
4600
4594
|
key: $e,
|
|
4601
4595
|
type: j
|
|
4602
4596
|
})), process.env.NODE_ENV !== "production")) {
|
|
@@ -4610,51 +4604,51 @@ function Il(e = {}) {
|
|
|
4610
4604
|
}
|
|
4611
4605
|
return t && E ? K(t) : Ve($e);
|
|
4612
4606
|
} else {
|
|
4613
|
-
if (
|
|
4607
|
+
if (Tt(Je))
|
|
4614
4608
|
return Je;
|
|
4615
|
-
throw
|
|
4609
|
+
throw ht(re.UNEXPECTED_RETURN_TYPE);
|
|
4616
4610
|
}
|
|
4617
4611
|
};
|
|
4618
4612
|
function ce(...O) {
|
|
4619
|
-
return _e((v) => Reflect.apply(
|
|
4613
|
+
return _e((v) => Reflect.apply(cs, null, [v, ...O]), () => Vn(...O), "translate", (v) => Reflect.apply(v.t, v, [...O]), (v) => v, (v) => w(v));
|
|
4620
4614
|
}
|
|
4621
4615
|
function ye(...O) {
|
|
4622
4616
|
const [v, j, K] = O;
|
|
4623
4617
|
if (K && !B(K))
|
|
4624
|
-
throw
|
|
4618
|
+
throw ht(re.INVALID_ARGUMENT);
|
|
4625
4619
|
return ce(v, j, te({ resolvedMessage: !0 }, K || {}));
|
|
4626
4620
|
}
|
|
4627
4621
|
function Me(...O) {
|
|
4628
|
-
return _e((v) => Reflect.apply(
|
|
4622
|
+
return _e((v) => Reflect.apply(ns, null, [v, ...O]), () => Mn(...O), "datetime format", (v) => Reflect.apply(v.d, v, [...O]), () => Wt, (v) => w(v) || J(v));
|
|
4629
4623
|
}
|
|
4630
4624
|
function De(...O) {
|
|
4631
|
-
return _e((v) => Reflect.apply(
|
|
4625
|
+
return _e((v) => Reflect.apply(ss, null, [v, ...O]), () => xn(...O), "number format", (v) => Reflect.apply(v.n, v, [...O]), () => Wt, (v) => w(v) || J(v));
|
|
4632
4626
|
}
|
|
4633
4627
|
function Xe(O) {
|
|
4634
|
-
return O.map((v) => w(v) || ee(v) || X(v) ?
|
|
4628
|
+
return O.map((v) => w(v) || ee(v) || X(v) ? ls(String(v)) : v);
|
|
4635
4629
|
}
|
|
4636
4630
|
const un = {
|
|
4637
4631
|
normalize: Xe,
|
|
4638
4632
|
interpolate: (O) => O,
|
|
4639
4633
|
type: "vnode"
|
|
4640
4634
|
};
|
|
4641
|
-
function
|
|
4635
|
+
function Ot(...O) {
|
|
4642
4636
|
return _e((v) => {
|
|
4643
4637
|
let j;
|
|
4644
4638
|
const K = v;
|
|
4645
4639
|
try {
|
|
4646
|
-
K.processor = un, j = Reflect.apply(
|
|
4640
|
+
K.processor = un, j = Reflect.apply(cs, null, [K, ...O]);
|
|
4647
4641
|
} finally {
|
|
4648
4642
|
K.processor = null;
|
|
4649
4643
|
}
|
|
4650
4644
|
return j;
|
|
4651
|
-
}, () => Vn(...O), "translate", (v) => v[$n](...O), (v) => [
|
|
4645
|
+
}, () => Vn(...O), "translate", (v) => v[$n](...O), (v) => [ls(v)], (v) => J(v));
|
|
4652
4646
|
}
|
|
4653
4647
|
function fn(...O) {
|
|
4654
|
-
return _e((v) => Reflect.apply(
|
|
4648
|
+
return _e((v) => Reflect.apply(ss, null, [v, ...O]), () => xn(...O), "number format", (v) => v[jn](...O), fs, (v) => w(v) || J(v));
|
|
4655
4649
|
}
|
|
4656
|
-
function
|
|
4657
|
-
return _e((v) => Reflect.apply(
|
|
4650
|
+
function St(...O) {
|
|
4651
|
+
return _e((v) => Reflect.apply(ns, null, [v, ...O]), () => Mn(...O), "datetime format", (v) => v[Bn](...O), fs, (v) => w(v) || J(v));
|
|
4658
4652
|
}
|
|
4659
4653
|
function dn(O) {
|
|
4660
4654
|
R = O, _.pluralRules = R;
|
|
@@ -4665,32 +4659,32 @@ function Il(e = {}) {
|
|
|
4665
4659
|
return !1;
|
|
4666
4660
|
const j = w(v) ? v : a.value, K = xe(j), Ve = _.messageResolver(K, O);
|
|
4667
4661
|
return Ee(Ve) || me(Ve) || w(Ve);
|
|
4668
|
-
}, () => [O], "translate exists", (j) => Reflect.apply(j.te, j, [O, v]),
|
|
4662
|
+
}, () => [O], "translate exists", (j) => Reflect.apply(j.te, j, [O, v]), vl, (j) => X(j));
|
|
4669
4663
|
}
|
|
4670
|
-
function
|
|
4664
|
+
function it(O) {
|
|
4671
4665
|
let v = null;
|
|
4672
|
-
const j =
|
|
4666
|
+
const j = co(_, c.value, a.value);
|
|
4673
4667
|
for (let K = 0; K < j.length; K++) {
|
|
4674
|
-
const Ve = u.value[j[K]] || {},
|
|
4675
|
-
if (
|
|
4676
|
-
v =
|
|
4668
|
+
const Ve = u.value[j[K]] || {}, Tt = _.messageResolver(Ve, O);
|
|
4669
|
+
if (Tt != null) {
|
|
4670
|
+
v = Tt;
|
|
4677
4671
|
break;
|
|
4678
4672
|
}
|
|
4679
4673
|
}
|
|
4680
4674
|
return v;
|
|
4681
4675
|
}
|
|
4682
|
-
function
|
|
4683
|
-
const v =
|
|
4676
|
+
function at(O) {
|
|
4677
|
+
const v = it(O);
|
|
4684
4678
|
return v ?? (t ? t.tm(O) || {} : {});
|
|
4685
4679
|
}
|
|
4686
4680
|
function xe(O) {
|
|
4687
4681
|
return u.value[O] || {};
|
|
4688
4682
|
}
|
|
4689
|
-
function
|
|
4683
|
+
function ct(O, v) {
|
|
4690
4684
|
if (s) {
|
|
4691
4685
|
const j = { [O]: v };
|
|
4692
4686
|
for (const K in j)
|
|
4693
|
-
he(j, K) &&
|
|
4687
|
+
he(j, K) && Et(j[K]);
|
|
4694
4688
|
v = j[O];
|
|
4695
4689
|
}
|
|
4696
4690
|
u.value[O] = v, _.messages = u.value;
|
|
@@ -4700,41 +4694,41 @@ function Il(e = {}) {
|
|
|
4700
4694
|
const j = { [O]: v };
|
|
4701
4695
|
if (s)
|
|
4702
4696
|
for (const K in j)
|
|
4703
|
-
he(j, K) &&
|
|
4704
|
-
v = j[O],
|
|
4697
|
+
he(j, K) && Et(j[K]);
|
|
4698
|
+
v = j[O], Dt(v, u.value[O]), _.messages = u.value;
|
|
4705
4699
|
}
|
|
4706
4700
|
function f(O) {
|
|
4707
4701
|
return l.value[O] || {};
|
|
4708
4702
|
}
|
|
4709
4703
|
function d(O, v) {
|
|
4710
|
-
l.value[O] = v, _.datetimeFormats = l.value,
|
|
4704
|
+
l.value[O] = v, _.datetimeFormats = l.value, rs(_, O, v);
|
|
4711
4705
|
}
|
|
4712
4706
|
function L(O, v) {
|
|
4713
|
-
l.value[O] = te(l.value[O] || {}, v), _.datetimeFormats = l.value,
|
|
4707
|
+
l.value[O] = te(l.value[O] || {}, v), _.datetimeFormats = l.value, rs(_, O, v);
|
|
4714
4708
|
}
|
|
4715
4709
|
function D(O) {
|
|
4716
4710
|
return p.value[O] || {};
|
|
4717
4711
|
}
|
|
4718
4712
|
function q(O, v) {
|
|
4719
|
-
p.value[O] = v, _.numberFormats = p.value,
|
|
4713
|
+
p.value[O] = v, _.numberFormats = p.value, os(_, O, v);
|
|
4720
4714
|
}
|
|
4721
4715
|
function Y(O, v) {
|
|
4722
|
-
p.value[O] = te(p.value[O] || {}, v), _.numberFormats = p.value,
|
|
4716
|
+
p.value[O] = te(p.value[O] || {}, v), _.numberFormats = p.value, os(_, O, v);
|
|
4723
4717
|
}
|
|
4724
|
-
|
|
4725
|
-
i && (a.value = O, _.locale = O,
|
|
4718
|
+
ds++, t && Re && (vn(t.locale, (O) => {
|
|
4719
|
+
i && (a.value = O, _.locale = O, ut(_, a.value, c.value));
|
|
4726
4720
|
}), vn(t.fallbackLocale, (O) => {
|
|
4727
|
-
i && (c.value = O, _.fallbackLocale = O,
|
|
4721
|
+
i && (c.value = O, _.fallbackLocale = O, ut(_, a.value, c.value));
|
|
4728
4722
|
}));
|
|
4729
4723
|
const V = {
|
|
4730
|
-
id:
|
|
4724
|
+
id: ds,
|
|
4731
4725
|
locale: I,
|
|
4732
4726
|
fallbackLocale: P,
|
|
4733
4727
|
get inheritLocale() {
|
|
4734
4728
|
return i;
|
|
4735
4729
|
},
|
|
4736
4730
|
set inheritLocale(O) {
|
|
4737
|
-
i = O, O && t && (a.value = t.locale.value, c.value = t.fallbackLocale.value,
|
|
4731
|
+
i = O, O && t && (a.value = t.locale.value, c.value = t.fallbackLocale.value, ut(_, a.value, c.value));
|
|
4738
4732
|
},
|
|
4739
4733
|
get availableLocales() {
|
|
4740
4734
|
return Object.keys(u.value).sort();
|
|
@@ -4787,21 +4781,21 @@ function Il(e = {}) {
|
|
|
4787
4781
|
},
|
|
4788
4782
|
t: ce,
|
|
4789
4783
|
getLocaleMessage: xe,
|
|
4790
|
-
setLocaleMessage:
|
|
4784
|
+
setLocaleMessage: ct,
|
|
4791
4785
|
mergeLocaleMessage: mn,
|
|
4792
4786
|
getPostTranslationHandler: be,
|
|
4793
4787
|
setPostTranslationHandler: se,
|
|
4794
4788
|
getMissingHandler: we,
|
|
4795
4789
|
setMissingHandler: Z,
|
|
4796
|
-
[
|
|
4790
|
+
[Tl]: dn
|
|
4797
4791
|
};
|
|
4798
|
-
return V.datetimeFormats = W, V.numberFormats = ne, V.rt = ye, V.te = pn, V.tm =
|
|
4792
|
+
return V.datetimeFormats = W, V.numberFormats = ne, V.rt = ye, V.te = pn, V.tm = at, 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[Oo] = n, V[$n] = Ot, V[Bn] = St, V[jn] = fn, process.env.NODE_ENV !== "production" && (V[Hn] = (O) => {
|
|
4799
4793
|
_.__v_emitter = O;
|
|
4800
4794
|
}, V[Wn] = () => {
|
|
4801
4795
|
_.__v_emitter = void 0;
|
|
4802
4796
|
}), V;
|
|
4803
4797
|
}
|
|
4804
|
-
function
|
|
4798
|
+
function ms(e, t) {
|
|
4805
4799
|
}
|
|
4806
4800
|
const dr = {
|
|
4807
4801
|
tag: {
|
|
@@ -4821,18 +4815,18 @@ const dr = {
|
|
|
4821
4815
|
type: Object
|
|
4822
4816
|
}
|
|
4823
4817
|
};
|
|
4824
|
-
function
|
|
4818
|
+
function Il({ slots: e }, t) {
|
|
4825
4819
|
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, s) => [
|
|
4826
4820
|
...r,
|
|
4827
4821
|
// prettier-ignore
|
|
4828
|
-
...s.type ===
|
|
4822
|
+
...s.type === Ut ? s.children : [s]
|
|
4829
4823
|
], []) : t.reduce((n, r) => {
|
|
4830
4824
|
const s = e[r];
|
|
4831
4825
|
return s && (n[r] = s()), n;
|
|
4832
4826
|
}, H());
|
|
4833
4827
|
}
|
|
4834
|
-
function
|
|
4835
|
-
return
|
|
4828
|
+
function Lo() {
|
|
4829
|
+
return Ut;
|
|
4836
4830
|
}
|
|
4837
4831
|
te({
|
|
4838
4832
|
keypath: {
|
|
@@ -4844,10 +4838,10 @@ te({
|
|
|
4844
4838
|
validator: (e) => ee(e) || !isNaN(e)
|
|
4845
4839
|
}
|
|
4846
4840
|
}, dr);
|
|
4847
|
-
function
|
|
4841
|
+
function Pl(e) {
|
|
4848
4842
|
return J(e) && !w(e[0]);
|
|
4849
4843
|
}
|
|
4850
|
-
function
|
|
4844
|
+
function Ao(e, t, n, r) {
|
|
4851
4845
|
const { slots: s, attrs: o } = t;
|
|
4852
4846
|
return () => {
|
|
4853
4847
|
const i = { part: !0 };
|
|
@@ -4857,10 +4851,10 @@ function Lo(e, t, n, r) {
|
|
|
4857
4851
|
let u = [i.key];
|
|
4858
4852
|
J(c) ? u = c.map((g, A) => {
|
|
4859
4853
|
const E = s[g.type], b = E ? E({ [g.type]: g.value, index: A, parts: c }) : [g.value];
|
|
4860
|
-
return
|
|
4854
|
+
return Pl(b) && (b[0].key = `${g.type}-${A}`), b;
|
|
4861
4855
|
}) : w(c) && (u = [c]);
|
|
4862
|
-
const l = te(H(), o), p = w(e.tag) || B(e.tag) ? e.tag :
|
|
4863
|
-
return
|
|
4856
|
+
const l = te(H(), o), p = w(e.tag) || B(e.tag) ? e.tag : Lo();
|
|
4857
|
+
return Ts(p, l, u);
|
|
4864
4858
|
};
|
|
4865
4859
|
}
|
|
4866
4860
|
te({
|
|
@@ -4872,52 +4866,52 @@ te({
|
|
|
4872
4866
|
type: [String, Object]
|
|
4873
4867
|
}
|
|
4874
4868
|
}, dr);
|
|
4875
|
-
const
|
|
4869
|
+
const wl = /* @__PURE__ */ Pe("global-vue-i18n");
|
|
4876
4870
|
function an(e = {}) {
|
|
4877
4871
|
const t = fr();
|
|
4878
4872
|
if (t == null)
|
|
4879
|
-
throw
|
|
4873
|
+
throw ht(re.MUST_BE_CALL_SETUP_TOP);
|
|
4880
4874
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
4881
|
-
throw
|
|
4882
|
-
const n =
|
|
4875
|
+
throw ht(re.NOT_INSTALLED);
|
|
4876
|
+
const n = Dl(t), r = Fl(n), s = To(t), o = kl(e, s);
|
|
4883
4877
|
if (o === "global")
|
|
4884
|
-
return
|
|
4878
|
+
return Al(r, e, s), r;
|
|
4885
4879
|
if (o === "parent") {
|
|
4886
|
-
let c =
|
|
4887
|
-
return c == null && (process.env.NODE_ENV !== "production" && Le(
|
|
4880
|
+
let c = Ul(n, t, e.__useComponent);
|
|
4881
|
+
return c == null && (process.env.NODE_ENV !== "production" && Le(qt(Te.NOT_FOUND_PARENT_SCOPE)), c = r), c;
|
|
4888
4882
|
}
|
|
4889
4883
|
const i = n;
|
|
4890
4884
|
let a = i.__getInstance(t);
|
|
4891
4885
|
if (a == null) {
|
|
4892
4886
|
const c = te({}, e);
|
|
4893
|
-
"__i18n" in s && (c.__i18n = s.__i18n), r && (c.__root = r), a =
|
|
4887
|
+
"__i18n" in s && (c.__i18n = s.__i18n), r && (c.__root = r), a = Rl(c), i.__composerExtend && (a[qn] = i.__composerExtend(a)), xl(i, t, a), i.__setInstance(t, a);
|
|
4894
4888
|
} else
|
|
4895
|
-
process.env.NODE_ENV !== "production" && o === "local" && Le(
|
|
4889
|
+
process.env.NODE_ENV !== "production" && o === "local" && Le(qt(Te.DUPLICATE_USE_I18N_CALLING));
|
|
4896
4890
|
return a;
|
|
4897
4891
|
}
|
|
4898
|
-
function
|
|
4899
|
-
const t =
|
|
4892
|
+
function Dl(e) {
|
|
4893
|
+
const t = Ft(e.isCE ? wl : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
4900
4894
|
if (!t)
|
|
4901
|
-
throw
|
|
4895
|
+
throw ht(e.isCE ? re.NOT_INSTALLED_WITH_PROVIDE : re.UNEXPECTED_ERROR);
|
|
4902
4896
|
return t;
|
|
4903
4897
|
}
|
|
4904
|
-
function
|
|
4898
|
+
function kl(e, t) {
|
|
4905
4899
|
return rn(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
4906
4900
|
}
|
|
4907
|
-
function
|
|
4901
|
+
function Fl(e) {
|
|
4908
4902
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
4909
4903
|
}
|
|
4910
|
-
function
|
|
4904
|
+
function Ul(e, t, n = !1) {
|
|
4911
4905
|
let r = null;
|
|
4912
4906
|
const s = t.root;
|
|
4913
|
-
let o =
|
|
4907
|
+
let o = Ml(t, n);
|
|
4914
4908
|
for (; o != null; ) {
|
|
4915
4909
|
const i = e;
|
|
4916
4910
|
if (e.mode === "composition")
|
|
4917
4911
|
r = i.__getInstance(o);
|
|
4918
4912
|
else if (__VUE_I18N_LEGACY_API__) {
|
|
4919
4913
|
const a = i.__getInstance(o);
|
|
4920
|
-
a != null && (r = a.__composer, n && r && !r[
|
|
4914
|
+
a != null && (r = a.__composer, n && r && !r[Oo] && (r = null));
|
|
4921
4915
|
}
|
|
4922
4916
|
if (r != null || s === o)
|
|
4923
4917
|
break;
|
|
@@ -4925,20 +4919,20 @@ function Ml(e, t, n = !1) {
|
|
|
4925
4919
|
}
|
|
4926
4920
|
return r;
|
|
4927
4921
|
}
|
|
4928
|
-
function
|
|
4922
|
+
function Ml(e, t = !1) {
|
|
4929
4923
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
4930
4924
|
}
|
|
4931
|
-
function
|
|
4925
|
+
function xl(e, t, n) {
|
|
4932
4926
|
let r = null;
|
|
4933
|
-
|
|
4927
|
+
Os(() => {
|
|
4934
4928
|
if (process.env.NODE_ENV !== "production") {
|
|
4935
|
-
t.__VUE_I18N__ = n, r =
|
|
4929
|
+
t.__VUE_I18N__ = n, r = Wa();
|
|
4936
4930
|
const s = n;
|
|
4937
|
-
s[Hn] && s[Hn](r), r.on("*",
|
|
4931
|
+
s[Hn] && s[Hn](r), r.on("*", ms);
|
|
4938
4932
|
}
|
|
4939
|
-
}, t),
|
|
4933
|
+
}, t), Ss(() => {
|
|
4940
4934
|
const s = n;
|
|
4941
|
-
process.env.NODE_ENV !== "production" && (r && r.off("*",
|
|
4935
|
+
process.env.NODE_ENV !== "production" && (r && r.off("*", ms), s[Wn] && s[Wn](), delete t.__VUE_I18N__), e.__deleteInstance(t);
|
|
4942
4936
|
const o = s[qn];
|
|
4943
4937
|
o && (o(), delete s[qn]);
|
|
4944
4938
|
}, t);
|
|
@@ -4952,36 +4946,36 @@ te({
|
|
|
4952
4946
|
type: [String, Object]
|
|
4953
4947
|
}
|
|
4954
4948
|
}, dr);
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4949
|
+
Ol();
|
|
4950
|
+
el(wc);
|
|
4951
|
+
tl(Xc);
|
|
4952
|
+
nl(co);
|
|
4959
4953
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
4960
4954
|
const e = He();
|
|
4961
|
-
e.__INTLIFY__ = !0,
|
|
4955
|
+
e.__INTLIFY__ = !0, Dc(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
4962
4956
|
}
|
|
4963
4957
|
process.env.NODE_ENV;
|
|
4964
|
-
let
|
|
4965
|
-
function
|
|
4966
|
-
if (
|
|
4958
|
+
let Gt = null;
|
|
4959
|
+
function mf(e) {
|
|
4960
|
+
if (Gt !== null) {
|
|
4967
4961
|
console.warn(
|
|
4968
4962
|
"[LinID CoreLib] I18n has already been initialized. Re-initialization is ignored."
|
|
4969
4963
|
);
|
|
4970
4964
|
return;
|
|
4971
4965
|
}
|
|
4972
|
-
|
|
4966
|
+
Gt = e;
|
|
4973
4967
|
}
|
|
4974
|
-
function
|
|
4975
|
-
if (
|
|
4968
|
+
function Vl() {
|
|
4969
|
+
if (Gt === null)
|
|
4976
4970
|
throw new Error(
|
|
4977
4971
|
"[LinID CoreLib] I18n is not initialized. Call setI18nInstance() first."
|
|
4978
4972
|
);
|
|
4979
|
-
return
|
|
4973
|
+
return Gt;
|
|
4980
4974
|
}
|
|
4981
|
-
function
|
|
4975
|
+
function $l(e) {
|
|
4982
4976
|
const { t, te: n, tm: r } = an({
|
|
4983
4977
|
useScope: "global",
|
|
4984
|
-
__i18n:
|
|
4978
|
+
__i18n: Vl().global
|
|
4985
4979
|
});
|
|
4986
4980
|
function s(...c) {
|
|
4987
4981
|
const [u, l, p] = c;
|
|
@@ -5003,20 +4997,20 @@ function Bl(e) {
|
|
|
5003
4997
|
translateOrDefault: a
|
|
5004
4998
|
};
|
|
5005
4999
|
}
|
|
5006
|
-
const
|
|
5007
|
-
|
|
5008
|
-
|
|
5000
|
+
const Bl = /* @__PURE__ */ new Set([
|
|
5001
|
+
Vr.BadRequest,
|
|
5002
|
+
Vr.NotFound
|
|
5009
5003
|
]);
|
|
5010
|
-
function
|
|
5011
|
-
return
|
|
5004
|
+
function jl(e) {
|
|
5005
|
+
return Q.isAxiosError(e) && e.response?.status != null && Bl.has(e.response.status);
|
|
5012
5006
|
}
|
|
5013
|
-
function
|
|
5014
|
-
const { t: n } =
|
|
5007
|
+
function Hl(e, t) {
|
|
5008
|
+
const { t: n } = $l(`${e}.fields.${t}`);
|
|
5015
5009
|
async function r(l) {
|
|
5016
5010
|
try {
|
|
5017
|
-
return await
|
|
5011
|
+
return await wa(e, t, l), !0;
|
|
5018
5012
|
} catch (p) {
|
|
5019
|
-
return
|
|
5013
|
+
return jl(p) ? p.response.data.error : n("validation.unknownError");
|
|
5020
5014
|
}
|
|
5021
5015
|
}
|
|
5022
5016
|
function s(l) {
|
|
@@ -5090,13 +5084,13 @@ function Xn(e, t, n) {
|
|
|
5090
5084
|
function Ce(e) {
|
|
5091
5085
|
return typeof e == "function";
|
|
5092
5086
|
}
|
|
5093
|
-
function
|
|
5087
|
+
function vo(e) {
|
|
5094
5088
|
var t = function(r) {
|
|
5095
5089
|
Error.call(r), r.stack = new Error().stack;
|
|
5096
5090
|
}, n = e(t);
|
|
5097
5091
|
return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n;
|
|
5098
5092
|
}
|
|
5099
|
-
var Ln =
|
|
5093
|
+
var Ln = vo(function(e) {
|
|
5100
5094
|
return function(n) {
|
|
5101
5095
|
e(this), this.message = n ? n.length + ` errors occurred during unsubscription:
|
|
5102
5096
|
` + n.map(function(r, s) {
|
|
@@ -5152,7 +5146,7 @@ var ln = (function() {
|
|
|
5152
5146
|
for (var g = Yn(p), A = g.next(); !A.done; A = g.next()) {
|
|
5153
5147
|
var E = A.value;
|
|
5154
5148
|
try {
|
|
5155
|
-
|
|
5149
|
+
_s(E);
|
|
5156
5150
|
} catch (b) {
|
|
5157
5151
|
o = o ?? [], b instanceof Ln ? o = Xn(Xn([], Kn(o)), Kn(b.errors)) : o.push(b);
|
|
5158
5152
|
}
|
|
@@ -5174,7 +5168,7 @@ var ln = (function() {
|
|
|
5174
5168
|
var n;
|
|
5175
5169
|
if (t && t !== this)
|
|
5176
5170
|
if (this.closed)
|
|
5177
|
-
|
|
5171
|
+
_s(t);
|
|
5178
5172
|
else {
|
|
5179
5173
|
if (t instanceof e) {
|
|
5180
5174
|
if (t.closed || t._hasParent(this))
|
|
@@ -5199,16 +5193,16 @@ var ln = (function() {
|
|
|
5199
5193
|
var t = new e();
|
|
5200
5194
|
return t.closed = !0, t;
|
|
5201
5195
|
})(), e;
|
|
5202
|
-
})(),
|
|
5203
|
-
function
|
|
5196
|
+
})(), Co = ln.EMPTY;
|
|
5197
|
+
function Ro(e) {
|
|
5204
5198
|
return e instanceof ln || e && "closed" in e && Ce(e.remove) && Ce(e.add) && Ce(e.unsubscribe);
|
|
5205
5199
|
}
|
|
5206
|
-
function
|
|
5200
|
+
function _s(e) {
|
|
5207
5201
|
Ce(e) ? e() : e.unsubscribe();
|
|
5208
5202
|
}
|
|
5209
|
-
var
|
|
5203
|
+
var Wl = {
|
|
5210
5204
|
Promise: void 0
|
|
5211
|
-
},
|
|
5205
|
+
}, ql = {
|
|
5212
5206
|
setTimeout: function(e, t) {
|
|
5213
5207
|
for (var n = [], r = 2; r < arguments.length; r++)
|
|
5214
5208
|
n[r - 2] = arguments[r];
|
|
@@ -5219,24 +5213,24 @@ var ql = {
|
|
|
5219
5213
|
},
|
|
5220
5214
|
delegate: void 0
|
|
5221
5215
|
};
|
|
5222
|
-
function
|
|
5223
|
-
|
|
5216
|
+
function Gl(e) {
|
|
5217
|
+
ql.setTimeout(function() {
|
|
5224
5218
|
throw e;
|
|
5225
5219
|
});
|
|
5226
5220
|
}
|
|
5227
|
-
function
|
|
5221
|
+
function hs() {
|
|
5228
5222
|
}
|
|
5229
|
-
function
|
|
5223
|
+
function kt(e) {
|
|
5230
5224
|
e();
|
|
5231
5225
|
}
|
|
5232
|
-
var
|
|
5226
|
+
var Io = (function(e) {
|
|
5233
5227
|
cn(t, e);
|
|
5234
5228
|
function t(n) {
|
|
5235
5229
|
var r = e.call(this) || this;
|
|
5236
|
-
return r.isStopped = !1, n ? (r.destination = n,
|
|
5230
|
+
return r.isStopped = !1, n ? (r.destination = n, Ro(n) && n.add(r)) : r.destination = Xl, r;
|
|
5237
5231
|
}
|
|
5238
5232
|
return t.create = function(n, r, s) {
|
|
5239
|
-
return new
|
|
5233
|
+
return new Qn(n, r, s);
|
|
5240
5234
|
}, t.prototype.next = function(n) {
|
|
5241
5235
|
this.isStopped || this._next(n);
|
|
5242
5236
|
}, t.prototype.error = function(n) {
|
|
@@ -5260,7 +5254,7 @@ var Ro = (function(e) {
|
|
|
5260
5254
|
this.unsubscribe();
|
|
5261
5255
|
}
|
|
5262
5256
|
}, t;
|
|
5263
|
-
})(ln),
|
|
5257
|
+
})(ln), Yl = (function() {
|
|
5264
5258
|
function e(t) {
|
|
5265
5259
|
this.partialObserver = t;
|
|
5266
5260
|
}
|
|
@@ -5270,7 +5264,7 @@ var Ro = (function(e) {
|
|
|
5270
5264
|
try {
|
|
5271
5265
|
n.next(t);
|
|
5272
5266
|
} catch (r) {
|
|
5273
|
-
|
|
5267
|
+
Rt(r);
|
|
5274
5268
|
}
|
|
5275
5269
|
}, e.prototype.error = function(t) {
|
|
5276
5270
|
var n = this.partialObserver;
|
|
@@ -5278,20 +5272,20 @@ var Ro = (function(e) {
|
|
|
5278
5272
|
try {
|
|
5279
5273
|
n.error(t);
|
|
5280
5274
|
} catch (r) {
|
|
5281
|
-
|
|
5275
|
+
Rt(r);
|
|
5282
5276
|
}
|
|
5283
5277
|
else
|
|
5284
|
-
|
|
5278
|
+
Rt(t);
|
|
5285
5279
|
}, e.prototype.complete = function() {
|
|
5286
5280
|
var t = this.partialObserver;
|
|
5287
5281
|
if (t.complete)
|
|
5288
5282
|
try {
|
|
5289
5283
|
t.complete();
|
|
5290
5284
|
} catch (n) {
|
|
5291
|
-
|
|
5285
|
+
Rt(n);
|
|
5292
5286
|
}
|
|
5293
5287
|
}, e;
|
|
5294
|
-
})(),
|
|
5288
|
+
})(), Qn = (function(e) {
|
|
5295
5289
|
cn(t, e);
|
|
5296
5290
|
function t(n, r, s) {
|
|
5297
5291
|
var o = e.call(this) || this, i;
|
|
@@ -5299,35 +5293,35 @@ var Ro = (function(e) {
|
|
|
5299
5293
|
next: n ?? void 0,
|
|
5300
5294
|
error: r ?? void 0,
|
|
5301
5295
|
complete: s ?? void 0
|
|
5302
|
-
} : i = n, o.destination = new
|
|
5296
|
+
} : i = n, o.destination = new Yl(i), o;
|
|
5303
5297
|
}
|
|
5304
5298
|
return t;
|
|
5305
|
-
})(
|
|
5306
|
-
function
|
|
5307
|
-
|
|
5299
|
+
})(Io);
|
|
5300
|
+
function Rt(e) {
|
|
5301
|
+
Gl(e);
|
|
5308
5302
|
}
|
|
5309
|
-
function
|
|
5303
|
+
function Kl(e) {
|
|
5310
5304
|
throw e;
|
|
5311
5305
|
}
|
|
5312
|
-
var
|
|
5306
|
+
var Xl = {
|
|
5313
5307
|
closed: !0,
|
|
5314
|
-
next:
|
|
5315
|
-
error:
|
|
5316
|
-
complete:
|
|
5317
|
-
},
|
|
5308
|
+
next: hs,
|
|
5309
|
+
error: Kl,
|
|
5310
|
+
complete: hs
|
|
5311
|
+
}, Jl = (function() {
|
|
5318
5312
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
5319
5313
|
})();
|
|
5320
5314
|
function Ql(e) {
|
|
5321
5315
|
return e;
|
|
5322
5316
|
}
|
|
5323
|
-
function
|
|
5317
|
+
function zl(e) {
|
|
5324
5318
|
return e.length === 0 ? Ql : e.length === 1 ? e[0] : function(n) {
|
|
5325
5319
|
return e.reduce(function(r, s) {
|
|
5326
5320
|
return s(r);
|
|
5327
5321
|
}, n);
|
|
5328
5322
|
};
|
|
5329
5323
|
}
|
|
5330
|
-
var
|
|
5324
|
+
var Es = (function() {
|
|
5331
5325
|
function e(t) {
|
|
5332
5326
|
t && (this._subscribe = t);
|
|
5333
5327
|
}
|
|
@@ -5335,8 +5329,8 @@ var hs = (function() {
|
|
|
5335
5329
|
var n = new e();
|
|
5336
5330
|
return n.source = this, n.operator = t, n;
|
|
5337
5331
|
}, e.prototype.subscribe = function(t, n, r) {
|
|
5338
|
-
var s = this, o =
|
|
5339
|
-
return
|
|
5332
|
+
var s = this, o = eu(t) ? t : new Qn(t, n, r);
|
|
5333
|
+
return kt(function() {
|
|
5340
5334
|
var i = s, a = i.operator, c = i.source;
|
|
5341
5335
|
o.add(a ? a.call(o, c) : c ? s._subscribe(o) : s._trySubscribe(o));
|
|
5342
5336
|
}), o;
|
|
@@ -5348,8 +5342,8 @@ var hs = (function() {
|
|
|
5348
5342
|
}
|
|
5349
5343
|
}, e.prototype.forEach = function(t, n) {
|
|
5350
5344
|
var r = this;
|
|
5351
|
-
return n =
|
|
5352
|
-
var i = new
|
|
5345
|
+
return n = gs(n), new n(function(s, o) {
|
|
5346
|
+
var i = new Qn({
|
|
5353
5347
|
next: function(a) {
|
|
5354
5348
|
try {
|
|
5355
5349
|
t(a);
|
|
@@ -5365,15 +5359,15 @@ var hs = (function() {
|
|
|
5365
5359
|
}, e.prototype._subscribe = function(t) {
|
|
5366
5360
|
var n;
|
|
5367
5361
|
return (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(t);
|
|
5368
|
-
}, e.prototype[
|
|
5362
|
+
}, e.prototype[Jl] = function() {
|
|
5369
5363
|
return this;
|
|
5370
5364
|
}, e.prototype.pipe = function() {
|
|
5371
5365
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
5372
5366
|
t[n] = arguments[n];
|
|
5373
|
-
return
|
|
5367
|
+
return zl(t)(this);
|
|
5374
5368
|
}, e.prototype.toPromise = function(t) {
|
|
5375
5369
|
var n = this;
|
|
5376
|
-
return t =
|
|
5370
|
+
return t = gs(t), new t(function(r, s) {
|
|
5377
5371
|
var o;
|
|
5378
5372
|
n.subscribe(function(i) {
|
|
5379
5373
|
return o = i;
|
|
@@ -5387,35 +5381,35 @@ var hs = (function() {
|
|
|
5387
5381
|
return new e(t);
|
|
5388
5382
|
}, e;
|
|
5389
5383
|
})();
|
|
5390
|
-
function
|
|
5384
|
+
function gs(e) {
|
|
5391
5385
|
var t;
|
|
5392
|
-
return (t = e ??
|
|
5386
|
+
return (t = e ?? Wl.Promise) !== null && t !== void 0 ? t : Promise;
|
|
5393
5387
|
}
|
|
5394
|
-
function
|
|
5388
|
+
function Zl(e) {
|
|
5395
5389
|
return e && Ce(e.next) && Ce(e.error) && Ce(e.complete);
|
|
5396
5390
|
}
|
|
5397
|
-
function
|
|
5398
|
-
return e && e instanceof
|
|
5391
|
+
function eu(e) {
|
|
5392
|
+
return e && e instanceof Io || Zl(e) && Ro(e);
|
|
5399
5393
|
}
|
|
5400
|
-
var
|
|
5394
|
+
var tu = vo(function(e) {
|
|
5401
5395
|
return function() {
|
|
5402
5396
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
5403
5397
|
};
|
|
5404
|
-
}),
|
|
5398
|
+
}), Po = (function(e) {
|
|
5405
5399
|
cn(t, e);
|
|
5406
5400
|
function t() {
|
|
5407
5401
|
var n = e.call(this) || this;
|
|
5408
5402
|
return n.closed = !1, n.currentObservers = null, n.observers = [], n.isStopped = !1, n.hasError = !1, n.thrownError = null, n;
|
|
5409
5403
|
}
|
|
5410
5404
|
return t.prototype.lift = function(n) {
|
|
5411
|
-
var r = new
|
|
5405
|
+
var r = new bs(this, this);
|
|
5412
5406
|
return r.operator = n, r;
|
|
5413
5407
|
}, t.prototype._throwIfClosed = function() {
|
|
5414
5408
|
if (this.closed)
|
|
5415
|
-
throw new
|
|
5409
|
+
throw new tu();
|
|
5416
5410
|
}, t.prototype.next = function(n) {
|
|
5417
5411
|
var r = this;
|
|
5418
|
-
|
|
5412
|
+
kt(function() {
|
|
5419
5413
|
var s, o;
|
|
5420
5414
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
5421
5415
|
r.currentObservers || (r.currentObservers = Array.from(r.observers));
|
|
@@ -5437,7 +5431,7 @@ var nu = Ao(function(e) {
|
|
|
5437
5431
|
});
|
|
5438
5432
|
}, t.prototype.error = function(n) {
|
|
5439
5433
|
var r = this;
|
|
5440
|
-
|
|
5434
|
+
kt(function() {
|
|
5441
5435
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
5442
5436
|
r.hasError = r.isStopped = !0, r.thrownError = n;
|
|
5443
5437
|
for (var s = r.observers; s.length; )
|
|
@@ -5446,7 +5440,7 @@ var nu = Ao(function(e) {
|
|
|
5446
5440
|
});
|
|
5447
5441
|
}, t.prototype.complete = function() {
|
|
5448
5442
|
var n = this;
|
|
5449
|
-
|
|
5443
|
+
kt(function() {
|
|
5450
5444
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
5451
5445
|
n.isStopped = !0;
|
|
5452
5446
|
for (var r = n.observers; r.length; )
|
|
@@ -5468,19 +5462,19 @@ var nu = Ao(function(e) {
|
|
|
5468
5462
|
return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
|
|
5469
5463
|
}, t.prototype._innerSubscribe = function(n) {
|
|
5470
5464
|
var r = this, s = this, o = s.hasError, i = s.isStopped, a = s.observers;
|
|
5471
|
-
return o || i ?
|
|
5465
|
+
return o || i ? Co : (this.currentObservers = null, a.push(n), new ln(function() {
|
|
5472
5466
|
r.currentObservers = null, Jn(a, n);
|
|
5473
5467
|
}));
|
|
5474
5468
|
}, t.prototype._checkFinalizedStatuses = function(n) {
|
|
5475
5469
|
var r = this, s = r.hasError, o = r.thrownError, i = r.isStopped;
|
|
5476
5470
|
s ? n.error(o) : i && n.complete();
|
|
5477
5471
|
}, t.prototype.asObservable = function() {
|
|
5478
|
-
var n = new
|
|
5472
|
+
var n = new Es();
|
|
5479
5473
|
return n.source = this, n;
|
|
5480
5474
|
}, t.create = function(n, r) {
|
|
5481
|
-
return new
|
|
5475
|
+
return new bs(n, r);
|
|
5482
5476
|
}, t;
|
|
5483
|
-
})(
|
|
5477
|
+
})(Es), bs = (function(e) {
|
|
5484
5478
|
cn(t, e);
|
|
5485
5479
|
function t(n, r) {
|
|
5486
5480
|
var s = e.call(this) || this;
|
|
@@ -5497,21 +5491,21 @@ var nu = Ao(function(e) {
|
|
|
5497
5491
|
(r = (n = this.destination) === null || n === void 0 ? void 0 : n.complete) === null || r === void 0 || r.call(n);
|
|
5498
5492
|
}, t.prototype._subscribe = function(n) {
|
|
5499
5493
|
var r, s;
|
|
5500
|
-
return (s = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && s !== void 0 ? s :
|
|
5494
|
+
return (s = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && s !== void 0 ? s : Co;
|
|
5501
5495
|
}, t;
|
|
5502
|
-
})(
|
|
5503
|
-
const
|
|
5504
|
-
function
|
|
5496
|
+
})(Po);
|
|
5497
|
+
const wo = new Po();
|
|
5498
|
+
function _f() {
|
|
5505
5499
|
function e(t) {
|
|
5506
|
-
|
|
5500
|
+
wo.next({
|
|
5507
5501
|
key: "notify",
|
|
5508
5502
|
data: t
|
|
5509
5503
|
});
|
|
5510
5504
|
}
|
|
5511
5505
|
return { Notify: e };
|
|
5512
5506
|
}
|
|
5513
|
-
function
|
|
5514
|
-
const n =
|
|
5507
|
+
function hf(e, t) {
|
|
5508
|
+
const n = Xt(!1);
|
|
5515
5509
|
let r;
|
|
5516
5510
|
function s(o) {
|
|
5517
5511
|
if (o.key !== e)
|
|
@@ -5523,13 +5517,13 @@ function df(e, t) {
|
|
|
5523
5517
|
}
|
|
5524
5518
|
n.value = !0, t?.(i);
|
|
5525
5519
|
}
|
|
5526
|
-
return
|
|
5527
|
-
r =
|
|
5528
|
-
}),
|
|
5520
|
+
return Os(() => {
|
|
5521
|
+
r = wo.subscribe(s);
|
|
5522
|
+
}), Ss(() => {
|
|
5529
5523
|
r?.unsubscribe();
|
|
5530
5524
|
}), { show: n };
|
|
5531
5525
|
}
|
|
5532
|
-
function
|
|
5526
|
+
function Ef() {
|
|
5533
5527
|
function e(n) {
|
|
5534
5528
|
return {
|
|
5535
5529
|
page: (n.page || 1) - 1,
|
|
@@ -5550,8 +5544,8 @@ function pf() {
|
|
|
5550
5544
|
toQuasarPagination: t
|
|
5551
5545
|
};
|
|
5552
5546
|
}
|
|
5553
|
-
function
|
|
5554
|
-
const { validateFromApi: n, required: r, minLength: s, maxLength: o, min: i, max: a, pattern: c } =
|
|
5547
|
+
function nu(e, t) {
|
|
5548
|
+
const { validateFromApi: n, required: r, minLength: s, maxLength: o, min: i, max: a, pattern: c } = Hl(e, t);
|
|
5555
5549
|
return {
|
|
5556
5550
|
validateFromApi: n,
|
|
5557
5551
|
required: r,
|
|
@@ -5562,10 +5556,10 @@ function ru(e, t) {
|
|
|
5562
5556
|
pattern: (u) => (l) => c(l, u)
|
|
5563
5557
|
};
|
|
5564
5558
|
}
|
|
5565
|
-
function
|
|
5559
|
+
function gf(e, t, n) {
|
|
5566
5560
|
if (!t.hasValidations)
|
|
5567
5561
|
return [];
|
|
5568
|
-
const { required: r, validateFromApi: s, ...o } =
|
|
5562
|
+
const { required: r, validateFromApi: s, ...o } = nu(e, t.name), i = n.filter((a) => t.inputSettings?.[a] != null).map(
|
|
5569
5563
|
(a) => o[a]?.(
|
|
5570
5564
|
t.inputSettings?.[a]
|
|
5571
5565
|
)
|
|
@@ -5576,24 +5570,24 @@ function mf(e, t, n) {
|
|
|
5576
5570
|
s
|
|
5577
5571
|
];
|
|
5578
5572
|
}
|
|
5579
|
-
let
|
|
5580
|
-
function
|
|
5581
|
-
if (
|
|
5573
|
+
let Yt = null;
|
|
5574
|
+
function bf(e) {
|
|
5575
|
+
if (Yt !== null) {
|
|
5582
5576
|
console.warn(
|
|
5583
5577
|
"[LinID CoreLib] UI Design has already been initialized. Re-initialization is ignored."
|
|
5584
5578
|
);
|
|
5585
5579
|
return;
|
|
5586
5580
|
}
|
|
5587
|
-
|
|
5581
|
+
Yt = e;
|
|
5588
5582
|
}
|
|
5589
|
-
function
|
|
5590
|
-
if (
|
|
5583
|
+
function ru() {
|
|
5584
|
+
if (Yt === null)
|
|
5591
5585
|
throw new Error(
|
|
5592
5586
|
"[LinID CoreLib] UI Design is not initialized. Call setUiDesign() first."
|
|
5593
5587
|
);
|
|
5594
|
-
return
|
|
5588
|
+
return Yt;
|
|
5595
5589
|
}
|
|
5596
|
-
const
|
|
5590
|
+
const su = [
|
|
5597
5591
|
"icon",
|
|
5598
5592
|
"iconRight",
|
|
5599
5593
|
"noCaps",
|
|
@@ -5617,7 +5611,7 @@ const ou = [
|
|
|
5617
5611
|
"dense",
|
|
5618
5612
|
"ripple",
|
|
5619
5613
|
"round"
|
|
5620
|
-
],
|
|
5614
|
+
], ou = [
|
|
5621
5615
|
"vertical",
|
|
5622
5616
|
"outsideArrows",
|
|
5623
5617
|
"mobileArrows",
|
|
@@ -5637,7 +5631,7 @@ const ou = [
|
|
|
5637
5631
|
"contentClass",
|
|
5638
5632
|
"activeClass",
|
|
5639
5633
|
"dense"
|
|
5640
|
-
],
|
|
5634
|
+
], iu = [
|
|
5641
5635
|
"icon",
|
|
5642
5636
|
"activeClass",
|
|
5643
5637
|
"exactActiveClass",
|
|
@@ -5645,12 +5639,12 @@ const ou = [
|
|
|
5645
5639
|
"alert",
|
|
5646
5640
|
"contentClass",
|
|
5647
5641
|
"ripple"
|
|
5648
|
-
],
|
|
5642
|
+
], au = [
|
|
5649
5643
|
"reveal",
|
|
5650
5644
|
"revealOffset",
|
|
5651
5645
|
"elevated",
|
|
5652
5646
|
"bordered"
|
|
5653
|
-
],
|
|
5647
|
+
], cu = ["inset"], lu = ["shrink"], uu = [
|
|
5654
5648
|
"icon",
|
|
5655
5649
|
"size",
|
|
5656
5650
|
"fontSize",
|
|
@@ -5658,7 +5652,7 @@ const ou = [
|
|
|
5658
5652
|
"textColor",
|
|
5659
5653
|
"square",
|
|
5660
5654
|
"rounded"
|
|
5661
|
-
],
|
|
5655
|
+
], fu = [
|
|
5662
5656
|
"floating",
|
|
5663
5657
|
"multiLine",
|
|
5664
5658
|
"align",
|
|
@@ -5667,7 +5661,7 @@ const ou = [
|
|
|
5667
5661
|
"transparent",
|
|
5668
5662
|
"outline",
|
|
5669
5663
|
"rounded"
|
|
5670
|
-
],
|
|
5664
|
+
], du = [
|
|
5671
5665
|
"virtualScrollItemSize",
|
|
5672
5666
|
"virtualScrollStickySizeStart",
|
|
5673
5667
|
"virtualScrollStickySizeEnd",
|
|
@@ -5698,7 +5692,7 @@ const ou = [
|
|
|
5698
5692
|
"cardStyle",
|
|
5699
5693
|
"cardClass",
|
|
5700
5694
|
"titleClass"
|
|
5701
|
-
],
|
|
5695
|
+
], pu = ["dark", "square", "flat", "bordered"], mu = ["align", "vertical"], _u = ["left", "right", "name", "size", "color"], hu = [
|
|
5702
5696
|
"toggleOrder",
|
|
5703
5697
|
"toggleIndeterminate",
|
|
5704
5698
|
"keepColor",
|
|
@@ -5712,7 +5706,7 @@ const ou = [
|
|
|
5712
5706
|
"dark",
|
|
5713
5707
|
"dense",
|
|
5714
5708
|
"iconColor"
|
|
5715
|
-
],
|
|
5709
|
+
], Eu = [
|
|
5716
5710
|
"autofocus",
|
|
5717
5711
|
"stackLabel",
|
|
5718
5712
|
"hideHint",
|
|
@@ -5738,7 +5732,7 @@ const ou = [
|
|
|
5738
5732
|
"dense",
|
|
5739
5733
|
"itemAligned",
|
|
5740
5734
|
"noErrorIcon"
|
|
5741
|
-
],
|
|
5735
|
+
], gu = [
|
|
5742
5736
|
"landscape",
|
|
5743
5737
|
"yearsInMonthView",
|
|
5744
5738
|
"todayBtn",
|
|
@@ -5750,7 +5744,7 @@ const ou = [
|
|
|
5750
5744
|
"square",
|
|
5751
5745
|
"flat",
|
|
5752
5746
|
"bordered"
|
|
5753
|
-
],
|
|
5747
|
+
], bu = [
|
|
5754
5748
|
"loading",
|
|
5755
5749
|
"loadingShowDelay",
|
|
5756
5750
|
"noSpinner",
|
|
@@ -5772,7 +5766,7 @@ const ou = [
|
|
|
5772
5766
|
"imgStyle",
|
|
5773
5767
|
"spinnerColor",
|
|
5774
5768
|
"spinnerSize"
|
|
5775
|
-
],
|
|
5769
|
+
], yu = [
|
|
5776
5770
|
"autofocus",
|
|
5777
5771
|
"stackLabel",
|
|
5778
5772
|
"hideHint",
|
|
@@ -5795,7 +5789,7 @@ const ou = [
|
|
|
5795
5789
|
"inputClass",
|
|
5796
5790
|
"inputStyle",
|
|
5797
5791
|
"noErrorIcon"
|
|
5798
|
-
],
|
|
5792
|
+
], Nu = [
|
|
5799
5793
|
"virtualScrollHorizontal",
|
|
5800
5794
|
"clearable",
|
|
5801
5795
|
"autofocus",
|
|
@@ -5849,7 +5843,7 @@ const ou = [
|
|
|
5849
5843
|
"virtualScrollItemSize",
|
|
5850
5844
|
"virtualScrollStickySizeStart",
|
|
5851
5845
|
"virtualScrollStickySizeEnd"
|
|
5852
|
-
],
|
|
5846
|
+
], Ou = [
|
|
5853
5847
|
"persistent",
|
|
5854
5848
|
"noEscDismiss",
|
|
5855
5849
|
"noBackdropDismiss",
|
|
@@ -5869,75 +5863,146 @@ const ou = [
|
|
|
5869
5863
|
"transitionShow",
|
|
5870
5864
|
"transitionHide",
|
|
5871
5865
|
"transitionDuration"
|
|
5872
|
-
],
|
|
5873
|
-
"
|
|
5874
|
-
"
|
|
5875
|
-
"
|
|
5876
|
-
"
|
|
5877
|
-
"
|
|
5878
|
-
"
|
|
5879
|
-
"
|
|
5880
|
-
"
|
|
5881
|
-
"
|
|
5882
|
-
"
|
|
5883
|
-
"
|
|
5884
|
-
"
|
|
5885
|
-
"
|
|
5886
|
-
"
|
|
5887
|
-
"
|
|
5888
|
-
"
|
|
5889
|
-
"
|
|
5890
|
-
"
|
|
5891
|
-
"
|
|
5892
|
-
"
|
|
5866
|
+
], Su = ["size", "color", "thickness"], Tu = [
|
|
5867
|
+
"split",
|
|
5868
|
+
"disableMainBtn",
|
|
5869
|
+
"disableDropdown",
|
|
5870
|
+
"persistent",
|
|
5871
|
+
"noEscDismiss",
|
|
5872
|
+
"noRouteDismiss",
|
|
5873
|
+
"autoClose",
|
|
5874
|
+
"noRefocus",
|
|
5875
|
+
"noFocus",
|
|
5876
|
+
"icon",
|
|
5877
|
+
"iconRight",
|
|
5878
|
+
"noCaps",
|
|
5879
|
+
"noWrap",
|
|
5880
|
+
"align",
|
|
5881
|
+
"stack",
|
|
5882
|
+
"stretch",
|
|
5883
|
+
"dropdownIcon",
|
|
5884
|
+
"cover",
|
|
5885
|
+
"menuAnchor",
|
|
5886
|
+
"menuSelf",
|
|
5887
|
+
"menuOffset",
|
|
5888
|
+
"size",
|
|
5889
|
+
"outline",
|
|
5890
|
+
"flat",
|
|
5891
|
+
"unelevated",
|
|
5892
|
+
"rounded",
|
|
5893
|
+
"push",
|
|
5894
|
+
"square",
|
|
5895
|
+
"glossy",
|
|
5896
|
+
"fab",
|
|
5897
|
+
"fabMini",
|
|
5898
|
+
"padding",
|
|
5899
|
+
"color",
|
|
5900
|
+
"textColor",
|
|
5901
|
+
"dense",
|
|
5902
|
+
"ripple",
|
|
5903
|
+
"noIconAnimation",
|
|
5904
|
+
"contentStyle",
|
|
5905
|
+
"contentClass",
|
|
5906
|
+
"transitionShow",
|
|
5907
|
+
"transitionHide",
|
|
5908
|
+
"transitionDuration"
|
|
5909
|
+
], Lu = [
|
|
5910
|
+
"separator",
|
|
5911
|
+
"padding",
|
|
5912
|
+
"tag",
|
|
5913
|
+
"bordered",
|
|
5914
|
+
"dense",
|
|
5915
|
+
"dark"
|
|
5916
|
+
], Au = [
|
|
5917
|
+
"insetLevel",
|
|
5918
|
+
"tag",
|
|
5919
|
+
"activeClass",
|
|
5920
|
+
"exactActiveClass",
|
|
5921
|
+
"clickable",
|
|
5922
|
+
"manualFocus",
|
|
5923
|
+
"focused",
|
|
5924
|
+
"dark",
|
|
5925
|
+
"dense"
|
|
5926
|
+
], vu = [
|
|
5927
|
+
"avatar",
|
|
5928
|
+
"thumbnail",
|
|
5929
|
+
"side",
|
|
5930
|
+
"top",
|
|
5931
|
+
"noWrap"
|
|
5932
|
+
], Cu = ["lines", "overline", "caption", "header"], ys = {
|
|
5933
|
+
"q-btn": su,
|
|
5934
|
+
"q-tabs": ou,
|
|
5935
|
+
"q-route-tab": iu,
|
|
5936
|
+
"q-header": au,
|
|
5937
|
+
"q-toolbar": cu,
|
|
5938
|
+
"q-toolbar-title": lu,
|
|
5939
|
+
"q-avatar": uu,
|
|
5940
|
+
"q-badge": fu,
|
|
5941
|
+
"q-table": du,
|
|
5942
|
+
"q-card": pu,
|
|
5943
|
+
"q-card-actions": mu,
|
|
5944
|
+
"q-icon": _u,
|
|
5945
|
+
"q-toggle": hu,
|
|
5946
|
+
"q-input": Eu,
|
|
5947
|
+
"q-date": gu,
|
|
5948
|
+
"q-img": bu,
|
|
5949
|
+
"q-file": yu,
|
|
5950
|
+
"q-select": Nu,
|
|
5951
|
+
"q-dialog": Ou,
|
|
5952
|
+
"q-spinner": Su,
|
|
5953
|
+
"q-btn-dropdown": Tu,
|
|
5954
|
+
"q-list": Lu,
|
|
5955
|
+
"q-item": Au,
|
|
5956
|
+
"q-item-section": vu,
|
|
5957
|
+
"q-item-label": Cu
|
|
5893
5958
|
};
|
|
5894
|
-
function
|
|
5959
|
+
function Ns(e, t) {
|
|
5895
5960
|
return t.split(".").reduce((n, r) => {
|
|
5896
5961
|
if (n && typeof n == "object")
|
|
5897
5962
|
return n[r];
|
|
5898
5963
|
}, e);
|
|
5899
5964
|
}
|
|
5900
|
-
function
|
|
5901
|
-
let r =
|
|
5902
|
-
if (r === void 0 && (r =
|
|
5965
|
+
function Ru(e, t, n) {
|
|
5966
|
+
let r = Ns(e, `${t}.${n}`);
|
|
5967
|
+
if (r === void 0 && (r = Ns(e, `default.${n}`)), typeof r == "object")
|
|
5903
5968
|
throw new Error(
|
|
5904
5969
|
`[UiDesign] Value for '${t}.${n}' is a nested object or null, expected a primitive.`
|
|
5905
5970
|
);
|
|
5906
5971
|
return r;
|
|
5907
5972
|
}
|
|
5908
|
-
function
|
|
5909
|
-
if (!(e in
|
|
5973
|
+
function Iu(e) {
|
|
5974
|
+
if (!(e in ys))
|
|
5910
5975
|
throw new Error(
|
|
5911
5976
|
`[UiDesign] The component '${e}' is not supported for UI design retrieval.`
|
|
5912
5977
|
);
|
|
5913
|
-
return
|
|
5978
|
+
return ys[e];
|
|
5914
5979
|
}
|
|
5915
|
-
function
|
|
5916
|
-
const e = ke(() =>
|
|
5980
|
+
function yf() {
|
|
5981
|
+
const e = ke(() => ru());
|
|
5917
5982
|
function t(n, r, s) {
|
|
5918
|
-
const o =
|
|
5983
|
+
const o = Iu(r), i = {};
|
|
5919
5984
|
for (const a of o) {
|
|
5920
|
-
const c = s?.[a] ??
|
|
5985
|
+
const c = s?.[a] ?? Ru(e.value, n, `${r}.${String(a)}`);
|
|
5921
5986
|
c !== void 0 && (i[a] = c);
|
|
5922
5987
|
}
|
|
5923
5988
|
return i;
|
|
5924
5989
|
}
|
|
5925
5990
|
return { ui: t };
|
|
5926
5991
|
}
|
|
5927
|
-
async function
|
|
5992
|
+
async function Pu() {
|
|
5928
5993
|
return (await Ie().get("/metadata/entities")).data;
|
|
5929
5994
|
}
|
|
5930
|
-
async function
|
|
5995
|
+
async function Nf(e) {
|
|
5931
5996
|
return (await Ie().get(
|
|
5932
5997
|
`/metadata/entities/${e}`
|
|
5933
5998
|
)).data;
|
|
5934
5999
|
}
|
|
5935
|
-
async function
|
|
6000
|
+
async function wu() {
|
|
5936
6001
|
return (await Ie().get(
|
|
5937
6002
|
"/metadata/routes"
|
|
5938
6003
|
)).data;
|
|
5939
6004
|
}
|
|
5940
|
-
const
|
|
6005
|
+
const Of = () => Du(er()), Du = /* @__PURE__ */ Zn("LinidConfigurationStore", {
|
|
5941
6006
|
state: () => ({
|
|
5942
6007
|
entities: [],
|
|
5943
6008
|
apiEndpoints: [],
|
|
@@ -5968,8 +6033,8 @@ const gf = () => Ru(er()), Ru = /* @__PURE__ */ Zn("LinidConfigurationStore", {
|
|
|
5968
6033
|
this.loading = !0, this.error = null;
|
|
5969
6034
|
try {
|
|
5970
6035
|
const [e, t] = await Promise.all([
|
|
5971
|
-
|
|
5972
|
-
|
|
6036
|
+
Pu(),
|
|
6037
|
+
wu()
|
|
5973
6038
|
]);
|
|
5974
6039
|
this.entities = e, this.apiEndpoints = t;
|
|
5975
6040
|
} catch (e) {
|
|
@@ -5979,7 +6044,7 @@ const gf = () => Ru(er()), Ru = /* @__PURE__ */ Zn("LinidConfigurationStore", {
|
|
|
5979
6044
|
}
|
|
5980
6045
|
}
|
|
5981
6046
|
}
|
|
5982
|
-
}),
|
|
6047
|
+
}), Sf = () => ku(er()), ku = /* @__PURE__ */ Zn("LinidUiStore", {
|
|
5983
6048
|
state: () => ({
|
|
5984
6049
|
mainNavigationItems: []
|
|
5985
6050
|
}),
|
|
@@ -5993,37 +6058,37 @@ const gf = () => Ru(er()), Ru = /* @__PURE__ */ Zn("LinidConfigurationStore", {
|
|
|
5993
6058
|
}
|
|
5994
6059
|
}
|
|
5995
6060
|
});
|
|
5996
|
-
function
|
|
5997
|
-
if (!
|
|
6061
|
+
function Fu(e, t) {
|
|
6062
|
+
if (!Kt(e) || !Kt(t))
|
|
5998
6063
|
return t;
|
|
5999
6064
|
const n = { ...e };
|
|
6000
6065
|
for (const r of Object.keys(t))
|
|
6001
|
-
n[r] =
|
|
6066
|
+
n[r] = Fu(e[r], t[r]);
|
|
6002
6067
|
return n;
|
|
6003
6068
|
}
|
|
6004
|
-
function
|
|
6069
|
+
function Tf(e) {
|
|
6005
6070
|
const t = {};
|
|
6006
6071
|
for (const [n, r] of Object.entries(e)) {
|
|
6007
6072
|
const s = n.split(".");
|
|
6008
6073
|
let o = t;
|
|
6009
6074
|
s.forEach((i, a) => {
|
|
6010
|
-
a === s.length - 1 ? o[i] = r : (
|
|
6075
|
+
a === s.length - 1 ? o[i] = r : (Kt(o[i]) || (o[i] = {}), o = o[i]);
|
|
6011
6076
|
});
|
|
6012
6077
|
}
|
|
6013
6078
|
return t;
|
|
6014
6079
|
}
|
|
6015
|
-
function
|
|
6080
|
+
function Kt(e) {
|
|
6016
6081
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
6017
6082
|
}
|
|
6018
|
-
function
|
|
6083
|
+
function Uu(e, t) {
|
|
6019
6084
|
return typeof e != "object" || e === null ? e : Object.fromEntries(
|
|
6020
6085
|
Object.entries(e).map(([n, r]) => {
|
|
6021
|
-
const s = t(n), o =
|
|
6086
|
+
const s = t(n), o = Kt(r) ? Uu(r, t) : r;
|
|
6022
6087
|
return [s, o];
|
|
6023
6088
|
})
|
|
6024
6089
|
);
|
|
6025
6090
|
}
|
|
6026
|
-
function
|
|
6091
|
+
function Mu(e, t) {
|
|
6027
6092
|
if (e === t || typeof e == "number" && typeof t == "number" && Number.isNaN(e) && Number.isNaN(t))
|
|
6028
6093
|
return !0;
|
|
6029
6094
|
if (e == null || t == null || typeof e != "object" || typeof t != "object" || Array.isArray(e) !== Array.isArray(t))
|
|
@@ -6033,11 +6098,11 @@ function Du(e, t) {
|
|
|
6033
6098
|
return !1;
|
|
6034
6099
|
const s = e, o = t;
|
|
6035
6100
|
return n.every(
|
|
6036
|
-
(i) => Object.prototype.hasOwnProperty.call(o, i) &&
|
|
6101
|
+
(i) => Object.prototype.hasOwnProperty.call(o, i) && Mu(s[i], o[i])
|
|
6037
6102
|
);
|
|
6038
6103
|
}
|
|
6039
|
-
var
|
|
6040
|
-
class
|
|
6104
|
+
var xu = /* @__PURE__ */ ((e) => (e.SETUP = "setup", e.CONFIGURE = "configure", e.INITIALIZE = "initialize", e.READY = "ready", e.POST_INIT = "postInit", e))(xu || {});
|
|
6105
|
+
class Lf {
|
|
6041
6106
|
/**
|
|
6042
6107
|
* Unique identifier for the module.
|
|
6043
6108
|
*
|
|
@@ -6141,45 +6206,45 @@ class Nf {
|
|
|
6141
6206
|
}
|
|
6142
6207
|
}
|
|
6143
6208
|
export {
|
|
6144
|
-
|
|
6145
|
-
|
|
6146
|
-
|
|
6147
|
-
|
|
6148
|
-
|
|
6149
|
-
|
|
6150
|
-
|
|
6151
|
-
|
|
6152
|
-
|
|
6153
|
-
|
|
6154
|
-
|
|
6209
|
+
Lf as BasicRemoteModule,
|
|
6210
|
+
ju as LinidZoneRenderer,
|
|
6211
|
+
xu as ModuleLifecyclePhase,
|
|
6212
|
+
Mu as deepEqual,
|
|
6213
|
+
pf as deleteEntityById,
|
|
6214
|
+
Tf as fromDot,
|
|
6215
|
+
wu as getApiEndpointsConfiguration,
|
|
6216
|
+
ff as getEntities,
|
|
6217
|
+
Pu as getEntitiesConfiguration,
|
|
6218
|
+
df as getEntityById,
|
|
6219
|
+
Nf as getEntityConfiguration,
|
|
6155
6220
|
Ie as getHttpClient,
|
|
6156
|
-
|
|
6157
|
-
|
|
6158
|
-
|
|
6221
|
+
Vl as getI18nInstance,
|
|
6222
|
+
Jo as getModuleFederation,
|
|
6223
|
+
st as getModuleHostConfiguration,
|
|
6159
6224
|
er as getPiniaStore,
|
|
6160
|
-
|
|
6161
|
-
|
|
6225
|
+
ru as getUiDesign,
|
|
6226
|
+
Kt as isObject,
|
|
6162
6227
|
Qo as loadAsyncComponent,
|
|
6163
|
-
|
|
6164
|
-
|
|
6165
|
-
|
|
6166
|
-
|
|
6167
|
-
|
|
6168
|
-
|
|
6169
|
-
|
|
6170
|
-
|
|
6171
|
-
|
|
6172
|
-
|
|
6173
|
-
|
|
6174
|
-
|
|
6175
|
-
|
|
6176
|
-
|
|
6177
|
-
|
|
6178
|
-
|
|
6179
|
-
|
|
6180
|
-
|
|
6181
|
-
|
|
6182
|
-
|
|
6183
|
-
|
|
6184
|
-
|
|
6228
|
+
Fu as merge,
|
|
6229
|
+
cf as registerModuleHostConfiguration,
|
|
6230
|
+
Uu as renameKeys,
|
|
6231
|
+
lf as saveEntity,
|
|
6232
|
+
af as setHttpClient,
|
|
6233
|
+
mf as setI18nInstance,
|
|
6234
|
+
$u as setModuleFederation,
|
|
6235
|
+
Bu as setPiniaStore,
|
|
6236
|
+
bf as setUiDesign,
|
|
6237
|
+
wo as uiEventSubject,
|
|
6238
|
+
uf as updateEntity,
|
|
6239
|
+
hf as useDialog,
|
|
6240
|
+
Hl as useFieldValidation,
|
|
6241
|
+
Of as useLinidConfigurationStore,
|
|
6242
|
+
Sf as useLinidUiStore,
|
|
6243
|
+
ti as useLinidZoneStore,
|
|
6244
|
+
_f as useNotify,
|
|
6245
|
+
Ef as usePagination,
|
|
6246
|
+
nu as useQuasarFieldValidation,
|
|
6247
|
+
gf as useQuasarRules,
|
|
6248
|
+
$l as useScopedI18n,
|
|
6249
|
+
yf as useUiDesign
|
|
6185
6250
|
};
|