@linagora/linid-im-front-corelib 0.0.52 → 0.0.54
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 +1100 -1073
- package/dist/core-lib.umd.js +13 -13
- package/dist/package.json +2 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/types/src/index.d.ts +2 -0
- package/dist/types/src/stores/linidUserStore.d.ts +25 -0
- package/dist/types/src/types/linidRoute.d.ts +2 -0
- package/dist/types/src/types/linidUser.d.ts +21 -0
- package/package.json +2 -1
package/dist/core-lib.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { defineAsyncComponent as $
|
|
1
|
+
import * as bn from "vue";
|
|
2
|
+
import { defineAsyncComponent as $o, hasInjectionContext as wn, inject as xt, getCurrentInstance as Bo, ref as Qt, reactive as jo, markRaw as mt, effectScope as Ho, isRef as ht, isReactive as ir, toRef as yn, toRaw as qo, nextTick as Or, getCurrentScope as Wo, onScopeDispose as Go, watch as Dn, computed as Ue, toRefs as Sr, defineComponent as zt, openBlock as Nn, createElementBlock as Tr, Fragment as Vt, renderList as Yo, unref as Ar, createBlock as Ko, resolveDynamicComponent as Xo, mergeProps as Jo, renderSlot as Qo, createCommentVNode as zo, onMounted as Cs, onUnmounted as Is, shallowRef as Zo, h as Ps, createVNode as ei, Text as ti } from "vue";
|
|
3
3
|
let $t = null;
|
|
4
|
-
function
|
|
4
|
+
function Xu(e) {
|
|
5
5
|
if ($t !== null) {
|
|
6
6
|
console.warn(
|
|
7
7
|
"[LinID CoreLib] Module Federation has already been initialized. Re-initialization is ignored."
|
|
@@ -17,7 +17,7 @@ function ni() {
|
|
|
17
17
|
);
|
|
18
18
|
return $t;
|
|
19
19
|
}
|
|
20
|
-
const ri = (e) => $
|
|
20
|
+
const ri = (e) => $o(
|
|
21
21
|
() => ni().loadRemote(e).then((t) => {
|
|
22
22
|
if (!t?.default)
|
|
23
23
|
throw new Error(`Failed to load component from ${e}`);
|
|
@@ -28,7 +28,7 @@ const tt = typeof window < "u";
|
|
|
28
28
|
let qe;
|
|
29
29
|
const Bt = (e) => qe = e;
|
|
30
30
|
process.env.NODE_ENV;
|
|
31
|
-
const
|
|
31
|
+
const kn = process.env.NODE_ENV !== "production" ? /* @__PURE__ */ Symbol("pinia") : (
|
|
32
32
|
/* istanbul ignore next */
|
|
33
33
|
/* @__PURE__ */ Symbol()
|
|
34
34
|
);
|
|
@@ -39,70 +39,70 @@ var _t;
|
|
|
39
39
|
(function(e) {
|
|
40
40
|
e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
|
|
41
41
|
})(_t || (_t = {}));
|
|
42
|
-
function
|
|
42
|
+
function ws(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
|
-
const
|
|
48
|
-
Ke(
|
|
47
|
+
const s = e[n];
|
|
48
|
+
Ke(s) && Ke(r) && !ht(r) && !ir(r) ? e[n] = ws(s, r) : e[n] = r;
|
|
49
49
|
}
|
|
50
50
|
return e;
|
|
51
51
|
}
|
|
52
|
-
const
|
|
52
|
+
const Ds = () => {
|
|
53
53
|
};
|
|
54
|
-
function Lr(e, t, n, r =
|
|
54
|
+
function Lr(e, t, n, r = Ds) {
|
|
55
55
|
e.add(t);
|
|
56
|
-
const
|
|
56
|
+
const s = () => {
|
|
57
57
|
e.delete(t) && r();
|
|
58
58
|
};
|
|
59
|
-
return !n &&
|
|
59
|
+
return !n && Wo() && Go(s), s;
|
|
60
60
|
}
|
|
61
61
|
function ze(e, ...t) {
|
|
62
62
|
e.forEach((n) => {
|
|
63
63
|
n(...t);
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
|
-
const
|
|
67
|
-
function
|
|
66
|
+
const si = (e) => e(), Rr = /* @__PURE__ */ Symbol(), On = /* @__PURE__ */ Symbol();
|
|
67
|
+
function Fn(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
|
-
const r = t[n],
|
|
73
|
-
Ke(
|
|
72
|
+
const r = t[n], s = e[n];
|
|
73
|
+
Ke(s) && Ke(r) && e.hasOwnProperty(n) && !ht(r) && !ir(r) ? e[n] = Fn(s, r) : e[n] = r;
|
|
74
74
|
}
|
|
75
75
|
return e;
|
|
76
76
|
}
|
|
77
|
-
const
|
|
77
|
+
const oi = process.env.NODE_ENV !== "production" ? /* @__PURE__ */ Symbol("pinia:skipHydration") : (
|
|
78
78
|
/* istanbul ignore next */
|
|
79
79
|
/* @__PURE__ */ Symbol()
|
|
80
80
|
);
|
|
81
81
|
function ii(e) {
|
|
82
|
-
return !Ke(e) || !Object.prototype.hasOwnProperty.call(e,
|
|
82
|
+
return !Ke(e) || !Object.prototype.hasOwnProperty.call(e, oi);
|
|
83
83
|
}
|
|
84
84
|
const { assign: _e } = Object;
|
|
85
85
|
function vr(e) {
|
|
86
86
|
return !!(ht(e) && e.effect);
|
|
87
87
|
}
|
|
88
88
|
function Cr(e, t, n, r) {
|
|
89
|
-
const { state:
|
|
89
|
+
const { state: s, actions: o, getters: i } = t, a = n.state.value[e];
|
|
90
90
|
let c;
|
|
91
91
|
function f() {
|
|
92
|
-
!a && (process.env.NODE_ENV === "production" || !r) && (n.state.value[e] =
|
|
92
|
+
!a && (process.env.NODE_ENV === "production" || !r) && (n.state.value[e] = s ? s() : {});
|
|
93
93
|
const u = process.env.NODE_ENV !== "production" && r ? (
|
|
94
94
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
95
|
-
Sr(Qt(
|
|
95
|
+
Sr(Qt(s ? s() : {}).value)
|
|
96
96
|
) : Sr(n.state.value[e]);
|
|
97
|
-
return _e(u,
|
|
97
|
+
return _e(u, o, Object.keys(i || {}).reduce((p, _) => (process.env.NODE_ENV !== "production" && _ in u && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${_}" in store "${e}".`), p[_] = mt(Ue(() => {
|
|
98
98
|
Bt(n);
|
|
99
99
|
const L = n._s.get(e);
|
|
100
100
|
return i[_].call(L, L);
|
|
101
101
|
})), p), {}));
|
|
102
102
|
}
|
|
103
|
-
return c =
|
|
103
|
+
return c = Un(e, f, t, n, r, !0), c;
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function Un(e, t, n = {}, r, s, o) {
|
|
106
106
|
let i;
|
|
107
107
|
const a = _e({ actions: {} }, n);
|
|
108
108
|
if (process.env.NODE_ENV !== "production" && !r._e.active)
|
|
@@ -113,7 +113,7 @@ function kn(e, t, n = {}, r, o, s) {
|
|
|
113
113
|
});
|
|
114
114
|
let f, u, p = /* @__PURE__ */ new Set(), _ = /* @__PURE__ */ new Set(), L;
|
|
115
115
|
const g = r.state.value[e];
|
|
116
|
-
!
|
|
116
|
+
!o && !g && (process.env.NODE_ENV === "production" || !s) && (r.state.value[e] = {});
|
|
117
117
|
const b = Qt({});
|
|
118
118
|
let N;
|
|
119
119
|
function m(I) {
|
|
@@ -122,7 +122,7 @@ function kn(e, t, n = {}, r, o, s) {
|
|
|
122
122
|
type: _t.patchFunction,
|
|
123
123
|
storeId: e,
|
|
124
124
|
events: L
|
|
125
|
-
}) : (
|
|
125
|
+
}) : (Fn(r.state.value[e], I), P = {
|
|
126
126
|
type: _t.patchObject,
|
|
127
127
|
payload: I,
|
|
128
128
|
storeId: e,
|
|
@@ -133,7 +133,7 @@ function kn(e, t, n = {}, r, o, s) {
|
|
|
133
133
|
N === k && (f = !0);
|
|
134
134
|
}), u = !0, ze(p, P, r.state.value[e]);
|
|
135
135
|
}
|
|
136
|
-
const O =
|
|
136
|
+
const O = o ? function() {
|
|
137
137
|
const { state: P } = n, k = P ? P() : {};
|
|
138
138
|
this.$patch((q) => {
|
|
139
139
|
_e(q, k);
|
|
@@ -142,26 +142,26 @@ function kn(e, t, n = {}, r, o, s) {
|
|
|
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
|
+
} : Ds
|
|
146
146
|
);
|
|
147
147
|
function T() {
|
|
148
148
|
i.stop(), p.clear(), _.clear(), r._s.delete(e);
|
|
149
149
|
}
|
|
150
150
|
const y = (I, P = "") => {
|
|
151
151
|
if (Rr in I)
|
|
152
|
-
return I[
|
|
152
|
+
return I[On] = P, I;
|
|
153
153
|
const k = function() {
|
|
154
154
|
Bt(r);
|
|
155
|
-
const q = Array.from(arguments),
|
|
155
|
+
const q = Array.from(arguments), se = /* @__PURE__ */ new Set(), Ne = /* @__PURE__ */ new Set();
|
|
156
156
|
function z(Z) {
|
|
157
|
-
|
|
157
|
+
se.add(Z);
|
|
158
158
|
}
|
|
159
159
|
function ke(Z) {
|
|
160
160
|
Ne.add(Z);
|
|
161
161
|
}
|
|
162
162
|
ze(_, {
|
|
163
163
|
args: q,
|
|
164
|
-
name: k[
|
|
164
|
+
name: k[On],
|
|
165
165
|
store: h,
|
|
166
166
|
after: z,
|
|
167
167
|
onError: ke
|
|
@@ -172,9 +172,9 @@ function kn(e, t, n = {}, r, o, s) {
|
|
|
172
172
|
} catch (Z) {
|
|
173
173
|
throw ze(Ne, Z), Z;
|
|
174
174
|
}
|
|
175
|
-
return ee instanceof Promise ? ee.then((Z) => (ze(
|
|
175
|
+
return ee instanceof Promise ? ee.then((Z) => (ze(se, Z), Z)).catch((Z) => (ze(Ne, Z), Promise.reject(Z))) : (ze(se, ee), ee);
|
|
176
176
|
};
|
|
177
|
-
return k[Rr] = !0, k[
|
|
177
|
+
return k[Rr] = !0, k[On] = P, k;
|
|
178
178
|
}, v = /* @__PURE__ */ mt({
|
|
179
179
|
actions: {},
|
|
180
180
|
getters: {},
|
|
@@ -188,17 +188,17 @@ function kn(e, t, n = {}, r, o, s) {
|
|
|
188
188
|
$patch: m,
|
|
189
189
|
$reset: O,
|
|
190
190
|
$subscribe(I, P = {}) {
|
|
191
|
-
const k = Lr(p, I, P.detached, () => q()), q = i.run(() =>
|
|
191
|
+
const k = Lr(p, I, P.detached, () => q()), q = i.run(() => Dn(() => r.state.value[e], (se) => {
|
|
192
192
|
(P.flush === "sync" ? u : f) && I({
|
|
193
193
|
storeId: e,
|
|
194
194
|
type: _t.direct,
|
|
195
195
|
events: L
|
|
196
|
-
},
|
|
196
|
+
}, se);
|
|
197
197
|
}, _e({}, c, P)));
|
|
198
198
|
return k;
|
|
199
199
|
},
|
|
200
200
|
$dispose: T
|
|
201
|
-
}, h =
|
|
201
|
+
}, h = jo(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && tt ? _e(
|
|
202
202
|
{
|
|
203
203
|
_hmrPayload: v,
|
|
204
204
|
_customProperties: mt(/* @__PURE__ */ new Set())
|
|
@@ -209,24 +209,24 @@ function kn(e, t, n = {}, r, o, s) {
|
|
|
209
209
|
// setupStore
|
|
210
210
|
) : C);
|
|
211
211
|
r._s.set(e, h);
|
|
212
|
-
const M = (r._a && r._a.runWithContext ||
|
|
212
|
+
const M = (r._a && r._a.runWithContext || si)(() => r._e.run(() => (i = Ho()).run(() => t({ action: y }))));
|
|
213
213
|
for (const I in M) {
|
|
214
214
|
const P = M[I];
|
|
215
|
-
if (ht(P) && !vr(P) ||
|
|
216
|
-
process.env.NODE_ENV !== "production" &&
|
|
215
|
+
if (ht(P) && !vr(P) || ir(P))
|
|
216
|
+
process.env.NODE_ENV !== "production" && s ? b.value[I] = yn(M, I) : o || (g && ii(P) && (ht(P) ? P.value = g[I] : Fn(P, g[I])), r.state.value[e][I] = P), process.env.NODE_ENV !== "production" && v.state.push(I);
|
|
217
217
|
else if (typeof P == "function") {
|
|
218
|
-
const k = process.env.NODE_ENV !== "production" &&
|
|
218
|
+
const k = process.env.NODE_ENV !== "production" && s ? P : y(P, I);
|
|
219
219
|
M[I] = k, process.env.NODE_ENV !== "production" && (v.actions[I] = P), a.actions[I] = P;
|
|
220
|
-
} else process.env.NODE_ENV !== "production" && vr(P) && (v.getters[I] =
|
|
220
|
+
} else process.env.NODE_ENV !== "production" && vr(P) && (v.getters[I] = o ? (
|
|
221
221
|
// @ts-expect-error
|
|
222
222
|
n.getters[I]
|
|
223
223
|
) : P, tt && (M._getters || // @ts-expect-error: same
|
|
224
224
|
(M._getters = mt([]))).push(I));
|
|
225
225
|
}
|
|
226
|
-
if (_e(h, M), _e(
|
|
227
|
-
get: () => process.env.NODE_ENV !== "production" &&
|
|
226
|
+
if (_e(h, M), _e(qo(h), M), Object.defineProperty(h, "$state", {
|
|
227
|
+
get: () => process.env.NODE_ENV !== "production" && s ? b.value : r.state.value[e],
|
|
228
228
|
set: (I) => {
|
|
229
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
229
|
+
if (process.env.NODE_ENV !== "production" && s)
|
|
230
230
|
throw new Error("cannot set hotState");
|
|
231
231
|
m((P) => {
|
|
232
232
|
_e(P, I);
|
|
@@ -236,12 +236,12 @@ function kn(e, t, n = {}, r, o, s) {
|
|
|
236
236
|
h._hotUpdating = !0, I._hmrPayload.state.forEach((P) => {
|
|
237
237
|
if (P in h.$state) {
|
|
238
238
|
const k = I.$state[P], q = h.$state[P];
|
|
239
|
-
typeof k == "object" && Ke(k) && Ke(q) ?
|
|
239
|
+
typeof k == "object" && Ke(k) && Ke(q) ? ws(k, q) : I.$state[P] = q;
|
|
240
240
|
}
|
|
241
|
-
h[P] =
|
|
241
|
+
h[P] = yn(I.$state, P);
|
|
242
242
|
}), Object.keys(h.$state).forEach((P) => {
|
|
243
243
|
P in I.$state || delete h[P];
|
|
244
|
-
}), f = !1, u = !1, r.state.value[e] =
|
|
244
|
+
}), f = !1, u = !1, r.state.value[e] = yn(I._hmrPayload, "hotState"), u = !0, Or().then(() => {
|
|
245
245
|
f = !0;
|
|
246
246
|
});
|
|
247
247
|
for (const P in I._hmrPayload.actions) {
|
|
@@ -250,7 +250,7 @@ function kn(e, t, n = {}, r, o, s) {
|
|
|
250
250
|
y(k, P);
|
|
251
251
|
}
|
|
252
252
|
for (const P in I._hmrPayload.getters) {
|
|
253
|
-
const k = I._hmrPayload.getters[P], q =
|
|
253
|
+
const k = I._hmrPayload.getters[P], q = o ? (
|
|
254
254
|
// special handling of options api
|
|
255
255
|
Ue(() => (Bt(r), k.call(h, h)))
|
|
256
256
|
) : k;
|
|
@@ -291,29 +291,29 @@ function kn(e, t, n = {}, r, o, s) {
|
|
|
291
291
|
})));
|
|
292
292
|
}), process.env.NODE_ENV !== "production" && h.$state && typeof h.$state == "object" && typeof h.$state.constructor == "function" && !h.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
293
293
|
state: () => new MyClass()
|
|
294
|
-
Found in store "${h.$id}".`), g &&
|
|
294
|
+
Found in store "${h.$id}".`), g && o && n.hydrate && n.hydrate(h.$state, g), f = !0, u = !0, h;
|
|
295
295
|
}
|
|
296
296
|
// @__NO_SIDE_EFFECTS__
|
|
297
|
-
function
|
|
297
|
+
function Zt(e, t, n) {
|
|
298
298
|
let r;
|
|
299
|
-
const
|
|
300
|
-
r =
|
|
301
|
-
function
|
|
302
|
-
const c =
|
|
299
|
+
const s = typeof t == "function";
|
|
300
|
+
r = s ? n : t;
|
|
301
|
+
function o(i, a) {
|
|
302
|
+
const c = wn();
|
|
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" && qe && qe._testing ? null : i) || (c ? xt(
|
|
305
|
+
(process.env.NODE_ENV === "test" && qe && qe._testing ? null : i) || (c ? xt(kn, null) : null), i && Bt(i), process.env.NODE_ENV !== "production" && !qe)
|
|
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 = qe, i._s.has(e) || (
|
|
309
|
+
i = qe, i._s.has(e) || (s ? Un(e, t, r, i) : Cr(e, r, i), process.env.NODE_ENV !== "production" && (o._pinia = i));
|
|
310
310
|
const f = i._s.get(e);
|
|
311
311
|
if (process.env.NODE_ENV !== "production" && a) {
|
|
312
|
-
const u = "__hot:" + e, p =
|
|
312
|
+
const u = "__hot:" + e, p = s ? Un(u, t, r, i, !0) : Cr(u, _e({}, r), i, !0);
|
|
313
313
|
a._hotUpdate(p), delete i.state.value[u], i._s.delete(u);
|
|
314
314
|
}
|
|
315
315
|
if (process.env.NODE_ENV !== "production" && tt) {
|
|
316
|
-
const u =
|
|
316
|
+
const u = Bo();
|
|
317
317
|
if (u && u.proxy && // avoid adding stores that are just built for hot module replacement
|
|
318
318
|
!a) {
|
|
319
319
|
const p = u.proxy, _ = "_pStores" in p ? p._pStores : p._pStores = {};
|
|
@@ -322,10 +322,10 @@ This will fail in production.`);
|
|
|
322
322
|
}
|
|
323
323
|
return f;
|
|
324
324
|
}
|
|
325
|
-
return
|
|
325
|
+
return o.$id = e, o;
|
|
326
326
|
}
|
|
327
327
|
let jt = null;
|
|
328
|
-
function
|
|
328
|
+
function Ju(e) {
|
|
329
329
|
if (jt !== null) {
|
|
330
330
|
console.warn(
|
|
331
331
|
"[LinID CoreLib] Pinia store has already been initialized. Re-initialization is ignored."
|
|
@@ -334,14 +334,14 @@ function Xu(e) {
|
|
|
334
334
|
}
|
|
335
335
|
jt = e;
|
|
336
336
|
}
|
|
337
|
-
function
|
|
337
|
+
function en() {
|
|
338
338
|
if (jt === null)
|
|
339
339
|
throw new Error(
|
|
340
340
|
"[LinID CoreLib] Pinia store is not initialized. Call setPiniaStore() first."
|
|
341
341
|
);
|
|
342
342
|
return jt;
|
|
343
343
|
}
|
|
344
|
-
const ai = () => ci(
|
|
344
|
+
const ai = () => ci(en()), ci = /* @__PURE__ */ Zt("linidZoneStore", {
|
|
345
345
|
state: () => ({
|
|
346
346
|
zones: {}
|
|
347
347
|
}),
|
|
@@ -364,7 +364,7 @@ const ai = () => ci(ir()), ci = /* @__PURE__ */ sr("linidZoneStore", {
|
|
|
364
364
|
this.zones[e]?.some(({ plugin: n }) => n === t.plugin) || this.register(e, t);
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
|
-
}),
|
|
367
|
+
}), Qu = /* @__PURE__ */ zt({
|
|
368
368
|
inheritAttrs: !1,
|
|
369
369
|
__name: "LinidZoneRenderer",
|
|
370
370
|
props: {
|
|
@@ -372,36 +372,36 @@ const ai = () => ci(ir()), ci = /* @__PURE__ */ sr("linidZoneStore", {
|
|
|
372
372
|
},
|
|
373
373
|
setup(e) {
|
|
374
374
|
const t = e, r = (ai().zones[t.zone] || []).map(
|
|
375
|
-
(
|
|
376
|
-
...
|
|
377
|
-
component: ri(
|
|
375
|
+
(s) => ({
|
|
376
|
+
...s,
|
|
377
|
+
component: ri(s.plugin)
|
|
378
378
|
})
|
|
379
379
|
);
|
|
380
|
-
return (
|
|
381
|
-
(
|
|
380
|
+
return (s, o) => (Nn(), Tr(Vt, null, [
|
|
381
|
+
(Nn(!0), Tr(Vt, null, Yo(Ar(r), (i, a) => (Nn(), Ko(Xo(i.component), Jo({
|
|
382
382
|
key: i.plugin + a
|
|
383
|
-
}, { ref_for: !0 }, { ...
|
|
384
|
-
Ar(r).length === 0 ?
|
|
383
|
+
}, { ref_for: !0 }, { ...s.$attrs, ...i.props }), null, 16))), 128)),
|
|
384
|
+
Ar(r).length === 0 ? Qo(s.$slots, "default", { key: 0 }) : zo("", !0)
|
|
385
385
|
], 64));
|
|
386
386
|
}
|
|
387
387
|
});
|
|
388
|
-
var
|
|
389
|
-
return
|
|
388
|
+
var Mn = function(e, t) {
|
|
389
|
+
return Mn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
390
390
|
n.__proto__ = r;
|
|
391
391
|
} || function(n, r) {
|
|
392
|
-
for (var
|
|
393
|
-
},
|
|
392
|
+
for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (n[s] = r[s]);
|
|
393
|
+
}, Mn(e, t);
|
|
394
394
|
};
|
|
395
|
-
function
|
|
395
|
+
function tn(e, t) {
|
|
396
396
|
if (typeof t != "function" && t !== null)
|
|
397
397
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
398
|
-
|
|
398
|
+
Mn(e, t);
|
|
399
399
|
function n() {
|
|
400
400
|
this.constructor = e;
|
|
401
401
|
}
|
|
402
402
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
403
403
|
}
|
|
404
|
-
function
|
|
404
|
+
function xn(e) {
|
|
405
405
|
var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
|
|
406
406
|
if (n) return n.call(e);
|
|
407
407
|
if (e && typeof e.length == "number") return {
|
|
@@ -411,65 +411,65 @@ function Un(e) {
|
|
|
411
411
|
};
|
|
412
412
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
413
413
|
}
|
|
414
|
-
function
|
|
414
|
+
function Vn(e, t) {
|
|
415
415
|
var n = typeof Symbol == "function" && e[Symbol.iterator];
|
|
416
416
|
if (!n) return e;
|
|
417
|
-
var r = n.call(e),
|
|
417
|
+
var r = n.call(e), s, o = [], i;
|
|
418
418
|
try {
|
|
419
|
-
for (; (t === void 0 || t-- > 0) && !(
|
|
419
|
+
for (; (t === void 0 || t-- > 0) && !(s = r.next()).done; ) o.push(s.value);
|
|
420
420
|
} catch (a) {
|
|
421
421
|
i = { error: a };
|
|
422
422
|
} finally {
|
|
423
423
|
try {
|
|
424
|
-
|
|
424
|
+
s && !s.done && (n = r.return) && n.call(r);
|
|
425
425
|
} finally {
|
|
426
426
|
if (i) throw i.error;
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
|
-
return
|
|
429
|
+
return o;
|
|
430
430
|
}
|
|
431
|
-
function
|
|
432
|
-
if (n || arguments.length === 2) for (var r = 0,
|
|
433
|
-
(
|
|
434
|
-
return e.concat(
|
|
431
|
+
function $n(e, t, n) {
|
|
432
|
+
if (n || arguments.length === 2) for (var r = 0, s = t.length, o; r < s; r++)
|
|
433
|
+
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
434
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
435
435
|
}
|
|
436
436
|
function Ce(e) {
|
|
437
437
|
return typeof e == "function";
|
|
438
438
|
}
|
|
439
|
-
function
|
|
439
|
+
function ks(e) {
|
|
440
440
|
var t = function(r) {
|
|
441
441
|
Error.call(r), r.stack = new Error().stack;
|
|
442
442
|
}, n = e(t);
|
|
443
443
|
return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n;
|
|
444
444
|
}
|
|
445
|
-
var
|
|
445
|
+
var Sn = ks(function(e) {
|
|
446
446
|
return function(n) {
|
|
447
447
|
e(this), this.message = n ? n.length + ` errors occurred during unsubscription:
|
|
448
|
-
` + n.map(function(r,
|
|
449
|
-
return
|
|
448
|
+
` + n.map(function(r, s) {
|
|
449
|
+
return s + 1 + ") " + r.toString();
|
|
450
450
|
}).join(`
|
|
451
451
|
`) : "", this.name = "UnsubscriptionError", this.errors = n;
|
|
452
452
|
};
|
|
453
453
|
});
|
|
454
|
-
function
|
|
454
|
+
function Bn(e, t) {
|
|
455
455
|
if (e) {
|
|
456
456
|
var n = e.indexOf(t);
|
|
457
457
|
0 <= n && e.splice(n, 1);
|
|
458
458
|
}
|
|
459
459
|
}
|
|
460
|
-
var
|
|
460
|
+
var nn = (function() {
|
|
461
461
|
function e(t) {
|
|
462
462
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
463
463
|
}
|
|
464
464
|
return e.prototype.unsubscribe = function() {
|
|
465
|
-
var t, n, r,
|
|
465
|
+
var t, n, r, s, o;
|
|
466
466
|
if (!this.closed) {
|
|
467
467
|
this.closed = !0;
|
|
468
468
|
var i = this._parentage;
|
|
469
469
|
if (i)
|
|
470
470
|
if (this._parentage = null, Array.isArray(i))
|
|
471
471
|
try {
|
|
472
|
-
for (var a =
|
|
472
|
+
for (var a = xn(i), c = a.next(); !c.done; c = a.next()) {
|
|
473
473
|
var f = c.value;
|
|
474
474
|
f.remove(this);
|
|
475
475
|
}
|
|
@@ -489,32 +489,32 @@ var en = (function() {
|
|
|
489
489
|
try {
|
|
490
490
|
u();
|
|
491
491
|
} catch (b) {
|
|
492
|
-
|
|
492
|
+
o = b instanceof Sn ? b.errors : [b];
|
|
493
493
|
}
|
|
494
494
|
var p = this._finalizers;
|
|
495
495
|
if (p) {
|
|
496
496
|
this._finalizers = null;
|
|
497
497
|
try {
|
|
498
|
-
for (var _ =
|
|
498
|
+
for (var _ = xn(p), L = _.next(); !L.done; L = _.next()) {
|
|
499
499
|
var g = L.value;
|
|
500
500
|
try {
|
|
501
501
|
Ir(g);
|
|
502
502
|
} catch (b) {
|
|
503
|
-
|
|
503
|
+
o = o ?? [], b instanceof Sn ? o = $n($n([], Vn(o)), Vn(b.errors)) : o.push(b);
|
|
504
504
|
}
|
|
505
505
|
}
|
|
506
506
|
} catch (b) {
|
|
507
507
|
r = { error: b };
|
|
508
508
|
} finally {
|
|
509
509
|
try {
|
|
510
|
-
L && !L.done && (
|
|
510
|
+
L && !L.done && (s = _.return) && s.call(_);
|
|
511
511
|
} finally {
|
|
512
512
|
if (r) throw r.error;
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
|
-
if (
|
|
517
|
-
throw new
|
|
516
|
+
if (o)
|
|
517
|
+
throw new Sn(o);
|
|
518
518
|
}
|
|
519
519
|
}, e.prototype.add = function(t) {
|
|
520
520
|
var n;
|
|
@@ -537,17 +537,17 @@ var en = (function() {
|
|
|
537
537
|
this._parentage = Array.isArray(n) ? (n.push(t), n) : n ? [n, t] : t;
|
|
538
538
|
}, e.prototype._removeParent = function(t) {
|
|
539
539
|
var n = this._parentage;
|
|
540
|
-
n === t ? this._parentage = null : Array.isArray(n) &&
|
|
540
|
+
n === t ? this._parentage = null : Array.isArray(n) && Bn(n, t);
|
|
541
541
|
}, e.prototype.remove = function(t) {
|
|
542
542
|
var n = this._finalizers;
|
|
543
|
-
n &&
|
|
543
|
+
n && Bn(n, t), t instanceof e && t._removeParent(this);
|
|
544
544
|
}, e.EMPTY = (function() {
|
|
545
545
|
var t = new e();
|
|
546
546
|
return t.closed = !0, t;
|
|
547
547
|
})(), e;
|
|
548
|
-
})(),
|
|
549
|
-
function
|
|
550
|
-
return e instanceof
|
|
548
|
+
})(), Fs = nn.EMPTY;
|
|
549
|
+
function Us(e) {
|
|
550
|
+
return e instanceof nn || e && "closed" in e && Ce(e.remove) && Ce(e.add) && Ce(e.unsubscribe);
|
|
551
551
|
}
|
|
552
552
|
function Ir(e) {
|
|
553
553
|
Ce(e) ? e() : e.unsubscribe();
|
|
@@ -558,7 +558,7 @@ var li = {
|
|
|
558
558
|
setTimeout: function(e, t) {
|
|
559
559
|
for (var n = [], r = 2; r < arguments.length; r++)
|
|
560
560
|
n[r - 2] = arguments[r];
|
|
561
|
-
return setTimeout.apply(void 0,
|
|
561
|
+
return setTimeout.apply(void 0, $n([e, t], Vn(n)));
|
|
562
562
|
},
|
|
563
563
|
clearTimeout: function(e) {
|
|
564
564
|
return clearTimeout(e);
|
|
@@ -575,14 +575,14 @@ function Pr() {
|
|
|
575
575
|
function Dt(e) {
|
|
576
576
|
e();
|
|
577
577
|
}
|
|
578
|
-
var
|
|
579
|
-
|
|
578
|
+
var Ms = (function(e) {
|
|
579
|
+
tn(t, e);
|
|
580
580
|
function t(n) {
|
|
581
581
|
var r = e.call(this) || this;
|
|
582
|
-
return r.isStopped = !1, n ? (r.destination = n,
|
|
582
|
+
return r.isStopped = !1, n ? (r.destination = n, Us(n) && n.add(r)) : r.destination = mi, r;
|
|
583
583
|
}
|
|
584
|
-
return t.create = function(n, r,
|
|
585
|
-
return new
|
|
584
|
+
return t.create = function(n, r, s) {
|
|
585
|
+
return new jn(n, r, s);
|
|
586
586
|
}, t.prototype.next = function(n) {
|
|
587
587
|
this.isStopped || this._next(n);
|
|
588
588
|
}, t.prototype.error = function(n) {
|
|
@@ -606,7 +606,7 @@ var xo = (function(e) {
|
|
|
606
606
|
this.unsubscribe();
|
|
607
607
|
}
|
|
608
608
|
}, t;
|
|
609
|
-
})(
|
|
609
|
+
})(nn), di = (function() {
|
|
610
610
|
function e(t) {
|
|
611
611
|
this.partialObserver = t;
|
|
612
612
|
}
|
|
@@ -637,18 +637,18 @@ var xo = (function(e) {
|
|
|
637
637
|
vt(n);
|
|
638
638
|
}
|
|
639
639
|
}, e;
|
|
640
|
-
})(),
|
|
641
|
-
|
|
642
|
-
function t(n, r,
|
|
643
|
-
var
|
|
640
|
+
})(), jn = (function(e) {
|
|
641
|
+
tn(t, e);
|
|
642
|
+
function t(n, r, s) {
|
|
643
|
+
var o = e.call(this) || this, i;
|
|
644
644
|
return Ce(n) || !n ? i = {
|
|
645
645
|
next: n ?? void 0,
|
|
646
646
|
error: r ?? void 0,
|
|
647
|
-
complete:
|
|
648
|
-
} : i = n,
|
|
647
|
+
complete: s ?? void 0
|
|
648
|
+
} : i = n, o.destination = new di(i), o;
|
|
649
649
|
}
|
|
650
650
|
return t;
|
|
651
|
-
})(
|
|
651
|
+
})(Ms);
|
|
652
652
|
function vt(e) {
|
|
653
653
|
fi(e);
|
|
654
654
|
}
|
|
@@ -668,8 +668,8 @@ function hi(e) {
|
|
|
668
668
|
}
|
|
669
669
|
function Ei(e) {
|
|
670
670
|
return e.length === 0 ? hi : e.length === 1 ? e[0] : function(n) {
|
|
671
|
-
return e.reduce(function(r,
|
|
672
|
-
return
|
|
671
|
+
return e.reduce(function(r, s) {
|
|
672
|
+
return s(r);
|
|
673
673
|
}, n);
|
|
674
674
|
};
|
|
675
675
|
}
|
|
@@ -681,11 +681,11 @@ var wr = (function() {
|
|
|
681
681
|
var n = new e();
|
|
682
682
|
return n.source = this, n.operator = t, n;
|
|
683
683
|
}, e.prototype.subscribe = function(t, n, r) {
|
|
684
|
-
var
|
|
684
|
+
var s = this, o = bi(t) ? t : new jn(t, n, r);
|
|
685
685
|
return Dt(function() {
|
|
686
|
-
var i =
|
|
687
|
-
|
|
688
|
-
}),
|
|
686
|
+
var i = s, a = i.operator, c = i.source;
|
|
687
|
+
o.add(a ? a.call(o, c) : c ? s._subscribe(o) : s._trySubscribe(o));
|
|
688
|
+
}), o;
|
|
689
689
|
}, e.prototype._trySubscribe = function(t) {
|
|
690
690
|
try {
|
|
691
691
|
return this._subscribe(t);
|
|
@@ -694,17 +694,17 @@ var wr = (function() {
|
|
|
694
694
|
}
|
|
695
695
|
}, e.prototype.forEach = function(t, n) {
|
|
696
696
|
var r = this;
|
|
697
|
-
return n = Dr(n), new n(function(
|
|
698
|
-
var i = new
|
|
697
|
+
return n = Dr(n), new n(function(s, o) {
|
|
698
|
+
var i = new jn({
|
|
699
699
|
next: function(a) {
|
|
700
700
|
try {
|
|
701
701
|
t(a);
|
|
702
702
|
} catch (c) {
|
|
703
|
-
|
|
703
|
+
o(c), i.unsubscribe();
|
|
704
704
|
}
|
|
705
705
|
},
|
|
706
|
-
error:
|
|
707
|
-
complete:
|
|
706
|
+
error: o,
|
|
707
|
+
complete: s
|
|
708
708
|
});
|
|
709
709
|
r.subscribe(i);
|
|
710
710
|
});
|
|
@@ -719,14 +719,14 @@ var wr = (function() {
|
|
|
719
719
|
return Ei(t)(this);
|
|
720
720
|
}, e.prototype.toPromise = function(t) {
|
|
721
721
|
var n = this;
|
|
722
|
-
return t = Dr(t), new t(function(r,
|
|
723
|
-
var
|
|
722
|
+
return t = Dr(t), new t(function(r, s) {
|
|
723
|
+
var o;
|
|
724
724
|
n.subscribe(function(i) {
|
|
725
|
-
return
|
|
725
|
+
return o = i;
|
|
726
726
|
}, function(i) {
|
|
727
|
-
return
|
|
727
|
+
return s(i);
|
|
728
728
|
}, function() {
|
|
729
|
-
return r(
|
|
729
|
+
return r(o);
|
|
730
730
|
});
|
|
731
731
|
});
|
|
732
732
|
}, e.create = function(t) {
|
|
@@ -741,14 +741,14 @@ function gi(e) {
|
|
|
741
741
|
return e && Ce(e.next) && Ce(e.error) && Ce(e.complete);
|
|
742
742
|
}
|
|
743
743
|
function bi(e) {
|
|
744
|
-
return e && e instanceof
|
|
744
|
+
return e && e instanceof Ms || gi(e) && Us(e);
|
|
745
745
|
}
|
|
746
|
-
var yi =
|
|
746
|
+
var yi = ks(function(e) {
|
|
747
747
|
return function() {
|
|
748
748
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
749
749
|
};
|
|
750
|
-
}),
|
|
751
|
-
|
|
750
|
+
}), xs = (function(e) {
|
|
751
|
+
tn(t, e);
|
|
752
752
|
function t() {
|
|
753
753
|
var n = e.call(this) || this;
|
|
754
754
|
return n.closed = !1, n.currentObservers = null, n.observers = [], n.isStopped = !1, n.hasError = !1, n.thrownError = null, n;
|
|
@@ -762,21 +762,21 @@ var yi = Fo(function(e) {
|
|
|
762
762
|
}, t.prototype.next = function(n) {
|
|
763
763
|
var r = this;
|
|
764
764
|
Dt(function() {
|
|
765
|
-
var
|
|
765
|
+
var s, o;
|
|
766
766
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
767
767
|
r.currentObservers || (r.currentObservers = Array.from(r.observers));
|
|
768
768
|
try {
|
|
769
|
-
for (var i =
|
|
769
|
+
for (var i = xn(r.currentObservers), a = i.next(); !a.done; a = i.next()) {
|
|
770
770
|
var c = a.value;
|
|
771
771
|
c.next(n);
|
|
772
772
|
}
|
|
773
773
|
} catch (f) {
|
|
774
|
-
|
|
774
|
+
s = { error: f };
|
|
775
775
|
} finally {
|
|
776
776
|
try {
|
|
777
|
-
a && !a.done && (
|
|
777
|
+
a && !a.done && (o = i.return) && o.call(i);
|
|
778
778
|
} finally {
|
|
779
|
-
if (
|
|
779
|
+
if (s) throw s.error;
|
|
780
780
|
}
|
|
781
781
|
}
|
|
782
782
|
}
|
|
@@ -786,8 +786,8 @@ var yi = Fo(function(e) {
|
|
|
786
786
|
Dt(function() {
|
|
787
787
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
788
788
|
r.hasError = r.isStopped = !0, r.thrownError = n;
|
|
789
|
-
for (var
|
|
790
|
-
|
|
789
|
+
for (var s = r.observers; s.length; )
|
|
790
|
+
s.shift().error(n);
|
|
791
791
|
}
|
|
792
792
|
});
|
|
793
793
|
}, t.prototype.complete = function() {
|
|
@@ -813,13 +813,13 @@ var yi = Fo(function(e) {
|
|
|
813
813
|
}, t.prototype._subscribe = function(n) {
|
|
814
814
|
return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
|
|
815
815
|
}, t.prototype._innerSubscribe = function(n) {
|
|
816
|
-
var r = this,
|
|
817
|
-
return
|
|
818
|
-
r.currentObservers = null,
|
|
816
|
+
var r = this, s = this, o = s.hasError, i = s.isStopped, a = s.observers;
|
|
817
|
+
return o || i ? Fs : (this.currentObservers = null, a.push(n), new nn(function() {
|
|
818
|
+
r.currentObservers = null, Bn(a, n);
|
|
819
819
|
}));
|
|
820
820
|
}, t.prototype._checkFinalizedStatuses = function(n) {
|
|
821
|
-
var r = this,
|
|
822
|
-
|
|
821
|
+
var r = this, s = r.hasError, o = r.thrownError, i = r.isStopped;
|
|
822
|
+
s ? n.error(o) : i && n.complete();
|
|
823
823
|
}, t.prototype.asObservable = function() {
|
|
824
824
|
var n = new wr();
|
|
825
825
|
return n.source = this, n;
|
|
@@ -827,67 +827,67 @@ var yi = Fo(function(e) {
|
|
|
827
827
|
return new kr(n, r);
|
|
828
828
|
}, t;
|
|
829
829
|
})(wr), kr = (function(e) {
|
|
830
|
-
|
|
830
|
+
tn(t, e);
|
|
831
831
|
function t(n, r) {
|
|
832
|
-
var
|
|
833
|
-
return
|
|
832
|
+
var s = e.call(this) || this;
|
|
833
|
+
return s.destination = n, s.source = r, s;
|
|
834
834
|
}
|
|
835
835
|
return t.prototype.next = function(n) {
|
|
836
|
-
var r,
|
|
837
|
-
(
|
|
836
|
+
var r, s;
|
|
837
|
+
(s = (r = this.destination) === null || r === void 0 ? void 0 : r.next) === null || s === void 0 || s.call(r, n);
|
|
838
838
|
}, t.prototype.error = function(n) {
|
|
839
|
-
var r,
|
|
840
|
-
(
|
|
839
|
+
var r, s;
|
|
840
|
+
(s = (r = this.destination) === null || r === void 0 ? void 0 : r.error) === null || s === void 0 || s.call(r, n);
|
|
841
841
|
}, t.prototype.complete = function() {
|
|
842
842
|
var n, r;
|
|
843
843
|
(r = (n = this.destination) === null || n === void 0 ? void 0 : n.complete) === null || r === void 0 || r.call(n);
|
|
844
844
|
}, t.prototype._subscribe = function(n) {
|
|
845
|
-
var r,
|
|
846
|
-
return (
|
|
845
|
+
var r, s;
|
|
846
|
+
return (s = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && s !== void 0 ? s : Fs;
|
|
847
847
|
}, t;
|
|
848
|
-
})(
|
|
849
|
-
const
|
|
850
|
-
function
|
|
848
|
+
})(xs);
|
|
849
|
+
const Vs = new xs();
|
|
850
|
+
function zu(e, t) {
|
|
851
851
|
const n = Qt(!1);
|
|
852
852
|
let r;
|
|
853
|
-
function o
|
|
854
|
-
if (
|
|
853
|
+
function s(o) {
|
|
854
|
+
if (o.key !== e)
|
|
855
855
|
return;
|
|
856
|
-
const i =
|
|
856
|
+
const i = o.data;
|
|
857
857
|
if (i.type === "close") {
|
|
858
858
|
n.value = !1;
|
|
859
859
|
return;
|
|
860
860
|
}
|
|
861
861
|
n.value = !0, t?.(i);
|
|
862
862
|
}
|
|
863
|
-
return
|
|
864
|
-
r =
|
|
865
|
-
}),
|
|
863
|
+
return Cs(() => {
|
|
864
|
+
r = Vs.subscribe(s);
|
|
865
|
+
}), Is(() => {
|
|
866
866
|
r?.unsubscribe();
|
|
867
867
|
}), { show: n };
|
|
868
868
|
}
|
|
869
|
-
function
|
|
869
|
+
function $s(e, t) {
|
|
870
870
|
return function() {
|
|
871
871
|
return e.apply(t, arguments);
|
|
872
872
|
};
|
|
873
873
|
}
|
|
874
|
-
const { toString: Ni } = Object.prototype, { getPrototypeOf: ar } = Object, { iterator:
|
|
874
|
+
const { toString: Ni } = Object.prototype, { getPrototypeOf: ar } = Object, { iterator: rn, toStringTag: Bs } = Symbol, sn = /* @__PURE__ */ ((e) => (t) => {
|
|
875
875
|
const n = Ni.call(t);
|
|
876
876
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
877
|
-
})(/* @__PURE__ */ Object.create(null)), ye = (e) => (e = e.toLowerCase(), (t) =>
|
|
877
|
+
})(/* @__PURE__ */ Object.create(null)), ye = (e) => (e = e.toLowerCase(), (t) => sn(t) === e), on = (e) => (t) => typeof t === e, { isArray: it } = Array, nt = on("undefined");
|
|
878
878
|
function Nt(e) {
|
|
879
879
|
return e !== null && !nt(e) && e.constructor !== null && !nt(e.constructor) && ue(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
880
880
|
}
|
|
881
|
-
const
|
|
881
|
+
const js = ye("ArrayBuffer");
|
|
882
882
|
function Oi(e) {
|
|
883
883
|
let t;
|
|
884
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer &&
|
|
884
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && js(e.buffer), t;
|
|
885
885
|
}
|
|
886
|
-
const Si =
|
|
887
|
-
if (
|
|
886
|
+
const Si = on("string"), ue = on("function"), Hs = on("number"), Ot = (e) => e !== null && typeof e == "object", Ti = (e) => e === !0 || e === !1, kt = (e) => {
|
|
887
|
+
if (sn(e) !== "object")
|
|
888
888
|
return !1;
|
|
889
889
|
const t = ar(e);
|
|
890
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(
|
|
890
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Bs in e) && !(rn in e);
|
|
891
891
|
}, Ai = (e) => {
|
|
892
892
|
if (!Ot(e) || Nt(e))
|
|
893
893
|
return !1;
|
|
@@ -902,7 +902,7 @@ function Di() {
|
|
|
902
902
|
}
|
|
903
903
|
const Fr = Di(), Ur = typeof Fr.FormData < "u" ? Fr.FormData : void 0, ki = (e) => {
|
|
904
904
|
let t;
|
|
905
|
-
return e && (Ur && e instanceof Ur || ue(e.append) && ((t =
|
|
905
|
+
return e && (Ur && e instanceof Ur || ue(e.append) && ((t = sn(e)) === "formdata" || // detect form-data instance
|
|
906
906
|
t === "object" && ue(e.toString) && e.toString() === "[object FormData]"));
|
|
907
907
|
}, Fi = ye("URLSearchParams"), [Ui, Mi, xi, Vi] = [
|
|
908
908
|
"ReadableStream",
|
|
@@ -913,52 +913,52 @@ const Fr = Di(), Ur = typeof Fr.FormData < "u" ? Fr.FormData : void 0, ki = (e)
|
|
|
913
913
|
function St(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
914
914
|
if (e === null || typeof e > "u")
|
|
915
915
|
return;
|
|
916
|
-
let r,
|
|
916
|
+
let r, s;
|
|
917
917
|
if (typeof e != "object" && (e = [e]), it(e))
|
|
918
|
-
for (r = 0,
|
|
918
|
+
for (r = 0, s = e.length; r < s; r++)
|
|
919
919
|
t.call(null, e[r], r, e);
|
|
920
920
|
else {
|
|
921
921
|
if (Nt(e))
|
|
922
922
|
return;
|
|
923
|
-
const
|
|
923
|
+
const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
|
|
924
924
|
let a;
|
|
925
925
|
for (r = 0; r < i; r++)
|
|
926
|
-
a =
|
|
926
|
+
a = o[r], t.call(null, e[a], a, e);
|
|
927
927
|
}
|
|
928
928
|
}
|
|
929
|
-
function
|
|
929
|
+
function qs(e, t) {
|
|
930
930
|
if (Nt(e))
|
|
931
931
|
return null;
|
|
932
932
|
t = t.toLowerCase();
|
|
933
933
|
const n = Object.keys(e);
|
|
934
|
-
let r = n.length,
|
|
934
|
+
let r = n.length, s;
|
|
935
935
|
for (; r-- > 0; )
|
|
936
|
-
if (
|
|
937
|
-
return
|
|
936
|
+
if (s = n[r], t === s.toLowerCase())
|
|
937
|
+
return s;
|
|
938
938
|
return null;
|
|
939
939
|
}
|
|
940
|
-
const We = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global,
|
|
941
|
-
function
|
|
942
|
-
const { caseless: e, skipUndefined: t } =
|
|
943
|
-
if (
|
|
940
|
+
const We = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Ws = (e) => !nt(e) && e !== We;
|
|
941
|
+
function Hn() {
|
|
942
|
+
const { caseless: e, skipUndefined: t } = Ws(this) && this || {}, n = {}, r = (s, o) => {
|
|
943
|
+
if (o === "__proto__" || o === "constructor" || o === "prototype")
|
|
944
944
|
return;
|
|
945
|
-
const i = e &&
|
|
946
|
-
kt(n[i]) && kt(
|
|
945
|
+
const i = e && qs(n, o) || o;
|
|
946
|
+
kt(n[i]) && kt(s) ? n[i] = Hn(n[i], s) : kt(s) ? n[i] = Hn({}, s) : it(s) ? n[i] = s.slice() : (!t || !nt(s)) && (n[i] = s);
|
|
947
947
|
};
|
|
948
|
-
for (let
|
|
949
|
-
arguments[
|
|
948
|
+
for (let s = 0, o = arguments.length; s < o; s++)
|
|
949
|
+
arguments[s] && St(arguments[s], r);
|
|
950
950
|
return n;
|
|
951
951
|
}
|
|
952
952
|
const Bi = (e, t, n, { allOwnKeys: r } = {}) => (St(
|
|
953
953
|
t,
|
|
954
|
-
(
|
|
955
|
-
n && ue(
|
|
956
|
-
value:
|
|
954
|
+
(s, o) => {
|
|
955
|
+
n && ue(s) ? Object.defineProperty(e, o, {
|
|
956
|
+
value: $s(s, n),
|
|
957
957
|
writable: !0,
|
|
958
958
|
enumerable: !0,
|
|
959
959
|
configurable: !0
|
|
960
|
-
}) : Object.defineProperty(e,
|
|
961
|
-
value:
|
|
960
|
+
}) : Object.defineProperty(e, o, {
|
|
961
|
+
value: s,
|
|
962
962
|
writable: !0,
|
|
963
963
|
enumerable: !0,
|
|
964
964
|
configurable: !0
|
|
@@ -975,12 +975,12 @@ const Bi = (e, t, n, { allOwnKeys: r } = {}) => (St(
|
|
|
975
975
|
value: t.prototype
|
|
976
976
|
}), n && Object.assign(e.prototype, n);
|
|
977
977
|
}, qi = (e, t, n, r) => {
|
|
978
|
-
let
|
|
978
|
+
let s, o, i;
|
|
979
979
|
const a = {};
|
|
980
980
|
if (t = t || {}, e == null) return t;
|
|
981
981
|
do {
|
|
982
|
-
for (
|
|
983
|
-
i = o
|
|
982
|
+
for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
|
|
983
|
+
i = s[o], (!r || r(i, e, t)) && !a[i] && (t[i] = e[i], a[i] = !0);
|
|
984
984
|
e = n !== !1 && ar(e);
|
|
985
985
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
986
986
|
return t;
|
|
@@ -992,17 +992,17 @@ const Bi = (e, t, n, { allOwnKeys: r } = {}) => (St(
|
|
|
992
992
|
if (!e) return null;
|
|
993
993
|
if (it(e)) return e;
|
|
994
994
|
let t = e.length;
|
|
995
|
-
if (!
|
|
995
|
+
if (!Hs(t)) return null;
|
|
996
996
|
const n = new Array(t);
|
|
997
997
|
for (; t-- > 0; )
|
|
998
998
|
n[t] = e[t];
|
|
999
999
|
return n;
|
|
1000
1000
|
}, Yi = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && ar(Uint8Array)), Ki = (e, t) => {
|
|
1001
|
-
const r = (e && e[
|
|
1002
|
-
let
|
|
1003
|
-
for (; (
|
|
1004
|
-
const
|
|
1005
|
-
t.call(e,
|
|
1001
|
+
const r = (e && e[rn]).call(e);
|
|
1002
|
+
let s;
|
|
1003
|
+
for (; (s = r.next()) && !s.done; ) {
|
|
1004
|
+
const o = s.value;
|
|
1005
|
+
t.call(e, o[0], o[1]);
|
|
1006
1006
|
}
|
|
1007
1007
|
}, Xi = (e, t) => {
|
|
1008
1008
|
let n;
|
|
@@ -1010,16 +1010,16 @@ const Bi = (e, t, n, { allOwnKeys: r } = {}) => (St(
|
|
|
1010
1010
|
for (; (n = e.exec(t)) !== null; )
|
|
1011
1011
|
r.push(n);
|
|
1012
1012
|
return r;
|
|
1013
|
-
}, Ji = ye("HTMLFormElement"), Qi = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(n, r,
|
|
1014
|
-
return r.toUpperCase() +
|
|
1015
|
-
}), Mr = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), zi = ye("RegExp"),
|
|
1013
|
+
}, Ji = ye("HTMLFormElement"), Qi = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(n, r, s) {
|
|
1014
|
+
return r.toUpperCase() + s;
|
|
1015
|
+
}), Mr = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), zi = ye("RegExp"), Gs = (e, t) => {
|
|
1016
1016
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
1017
|
-
St(n, (
|
|
1017
|
+
St(n, (s, o) => {
|
|
1018
1018
|
let i;
|
|
1019
|
-
(i = t(
|
|
1019
|
+
(i = t(s, o, e)) !== !1 && (r[o] = i || s);
|
|
1020
1020
|
}), Object.defineProperties(e, r);
|
|
1021
1021
|
}, Zi = (e) => {
|
|
1022
|
-
|
|
1022
|
+
Gs(e, (t, n) => {
|
|
1023
1023
|
if (ue(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
1024
1024
|
return !1;
|
|
1025
1025
|
const r = e[n];
|
|
@@ -1034,52 +1034,52 @@ const Bi = (e, t, n, { allOwnKeys: r } = {}) => (St(
|
|
|
1034
1034
|
}
|
|
1035
1035
|
});
|
|
1036
1036
|
}, ea = (e, t) => {
|
|
1037
|
-
const n = {}, r = (
|
|
1038
|
-
|
|
1039
|
-
n[
|
|
1037
|
+
const n = {}, r = (s) => {
|
|
1038
|
+
s.forEach((o) => {
|
|
1039
|
+
n[o] = !0;
|
|
1040
1040
|
});
|
|
1041
1041
|
};
|
|
1042
1042
|
return it(e) ? r(e) : r(String(e).split(t)), n;
|
|
1043
1043
|
}, ta = () => {
|
|
1044
1044
|
}, na = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
1045
1045
|
function ra(e) {
|
|
1046
|
-
return !!(e && ue(e.append) && e[
|
|
1046
|
+
return !!(e && ue(e.append) && e[Bs] === "FormData" && e[rn]);
|
|
1047
1047
|
}
|
|
1048
|
-
const
|
|
1049
|
-
const t = new Array(10), n = (r,
|
|
1048
|
+
const sa = (e) => {
|
|
1049
|
+
const t = new Array(10), n = (r, s) => {
|
|
1050
1050
|
if (Ot(r)) {
|
|
1051
1051
|
if (t.indexOf(r) >= 0)
|
|
1052
1052
|
return;
|
|
1053
1053
|
if (Nt(r))
|
|
1054
1054
|
return r;
|
|
1055
1055
|
if (!("toJSON" in r)) {
|
|
1056
|
-
t[
|
|
1057
|
-
const
|
|
1056
|
+
t[s] = r;
|
|
1057
|
+
const o = it(r) ? [] : {};
|
|
1058
1058
|
return St(r, (i, a) => {
|
|
1059
|
-
const c = n(i,
|
|
1060
|
-
!nt(c) && (
|
|
1061
|
-
}), t[
|
|
1059
|
+
const c = n(i, s + 1);
|
|
1060
|
+
!nt(c) && (o[a] = c);
|
|
1061
|
+
}), t[s] = void 0, o;
|
|
1062
1062
|
}
|
|
1063
1063
|
}
|
|
1064
1064
|
return r;
|
|
1065
1065
|
};
|
|
1066
1066
|
return n(e, 0);
|
|
1067
|
-
},
|
|
1067
|
+
}, oa = ye("AsyncFunction"), ia = (e) => e && (Ot(e) || ue(e)) && ue(e.then) && ue(e.catch), Ys = ((e, t) => e ? setImmediate : t ? ((n, r) => (We.addEventListener(
|
|
1068
1068
|
"message",
|
|
1069
|
-
({ source:
|
|
1070
|
-
|
|
1069
|
+
({ source: s, data: o }) => {
|
|
1070
|
+
s === We && o === n && r.length && r.shift()();
|
|
1071
1071
|
},
|
|
1072
1072
|
!1
|
|
1073
|
-
), (
|
|
1074
|
-
r.push(
|
|
1075
|
-
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(typeof setImmediate == "function", ue(We.postMessage)), aa = typeof queueMicrotask < "u" ? queueMicrotask.bind(We) : typeof process < "u" && process.nextTick ||
|
|
1073
|
+
), (s) => {
|
|
1074
|
+
r.push(s), We.postMessage(n, "*");
|
|
1075
|
+
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(typeof setImmediate == "function", ue(We.postMessage)), aa = typeof queueMicrotask < "u" ? queueMicrotask.bind(We) : typeof process < "u" && process.nextTick || Ys, ca = (e) => e != null && ue(e[rn]), E = {
|
|
1076
1076
|
isArray: it,
|
|
1077
|
-
isArrayBuffer:
|
|
1077
|
+
isArrayBuffer: js,
|
|
1078
1078
|
isBuffer: Nt,
|
|
1079
1079
|
isFormData: ki,
|
|
1080
1080
|
isArrayBufferView: Oi,
|
|
1081
1081
|
isString: Si,
|
|
1082
|
-
isNumber:
|
|
1082
|
+
isNumber: Hs,
|
|
1083
1083
|
isBoolean: Ti,
|
|
1084
1084
|
isObject: Ot,
|
|
1085
1085
|
isPlainObject: kt,
|
|
@@ -1101,13 +1101,13 @@ const oa = (e) => {
|
|
|
1101
1101
|
isTypedArray: Yi,
|
|
1102
1102
|
isFileList: Pi,
|
|
1103
1103
|
forEach: St,
|
|
1104
|
-
merge:
|
|
1104
|
+
merge: Hn,
|
|
1105
1105
|
extend: Bi,
|
|
1106
1106
|
trim: $i,
|
|
1107
1107
|
stripBOM: ji,
|
|
1108
1108
|
inherits: Hi,
|
|
1109
1109
|
toFlatObject: qi,
|
|
1110
|
-
kindOf:
|
|
1110
|
+
kindOf: sn,
|
|
1111
1111
|
kindOfTest: ye,
|
|
1112
1112
|
endsWith: Wi,
|
|
1113
1113
|
toArray: Gi,
|
|
@@ -1117,26 +1117,26 @@ const oa = (e) => {
|
|
|
1117
1117
|
hasOwnProperty: Mr,
|
|
1118
1118
|
hasOwnProp: Mr,
|
|
1119
1119
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
1120
|
-
reduceDescriptors:
|
|
1120
|
+
reduceDescriptors: Gs,
|
|
1121
1121
|
freezeMethods: Zi,
|
|
1122
1122
|
toObjectSet: ea,
|
|
1123
1123
|
toCamelCase: Qi,
|
|
1124
1124
|
noop: ta,
|
|
1125
1125
|
toFiniteNumber: na,
|
|
1126
|
-
findKey:
|
|
1126
|
+
findKey: qs,
|
|
1127
1127
|
global: We,
|
|
1128
|
-
isContextDefined:
|
|
1128
|
+
isContextDefined: Ws,
|
|
1129
1129
|
isSpecCompliantForm: ra,
|
|
1130
|
-
toJSONObject:
|
|
1131
|
-
isAsyncFn:
|
|
1130
|
+
toJSONObject: sa,
|
|
1131
|
+
isAsyncFn: oa,
|
|
1132
1132
|
isThenable: ia,
|
|
1133
|
-
setImmediate:
|
|
1133
|
+
setImmediate: Ys,
|
|
1134
1134
|
asap: aa,
|
|
1135
1135
|
isIterable: ca
|
|
1136
1136
|
};
|
|
1137
|
-
let U = class
|
|
1138
|
-
static from(t, n, r,
|
|
1139
|
-
const a = new
|
|
1137
|
+
let U = class Ks extends Error {
|
|
1138
|
+
static from(t, n, r, s, o, i) {
|
|
1139
|
+
const a = new Ks(t.message, n || t.code, r, s, o);
|
|
1140
1140
|
return a.cause = t, a.name = t.name, t.status != null && a.status == null && (a.status = t.status), i && Object.assign(a, i), a;
|
|
1141
1141
|
}
|
|
1142
1142
|
/**
|
|
@@ -1150,13 +1150,13 @@ let U = class Xo extends Error {
|
|
|
1150
1150
|
*
|
|
1151
1151
|
* @returns {Error} The created error.
|
|
1152
1152
|
*/
|
|
1153
|
-
constructor(t, n, r,
|
|
1153
|
+
constructor(t, n, r, s, o) {
|
|
1154
1154
|
super(t), Object.defineProperty(this, "message", {
|
|
1155
1155
|
value: t,
|
|
1156
1156
|
enumerable: !0,
|
|
1157
1157
|
writable: !0,
|
|
1158
1158
|
configurable: !0
|
|
1159
|
-
}), this.name = "AxiosError", this.isAxiosError = !0, n && (this.code = n), r && (this.config = r),
|
|
1159
|
+
}), this.name = "AxiosError", this.isAxiosError = !0, n && (this.code = n), r && (this.config = r), s && (this.request = s), o && (this.response = o, this.status = o.status);
|
|
1160
1160
|
}
|
|
1161
1161
|
toJSON() {
|
|
1162
1162
|
return {
|
|
@@ -1191,24 +1191,24 @@ U.ERR_CANCELED = "ERR_CANCELED";
|
|
|
1191
1191
|
U.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
1192
1192
|
U.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
1193
1193
|
const la = null;
|
|
1194
|
-
function
|
|
1194
|
+
function qn(e) {
|
|
1195
1195
|
return E.isPlainObject(e) || E.isArray(e);
|
|
1196
1196
|
}
|
|
1197
|
-
function
|
|
1197
|
+
function Xs(e) {
|
|
1198
1198
|
return E.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
1199
1199
|
}
|
|
1200
|
-
function
|
|
1201
|
-
return e ? e.concat(t).map(function(
|
|
1202
|
-
return
|
|
1200
|
+
function Tn(e, t, n) {
|
|
1201
|
+
return e ? e.concat(t).map(function(s, o) {
|
|
1202
|
+
return s = Xs(s), !n && o ? "[" + s + "]" : s;
|
|
1203
1203
|
}).join(n ? "." : "") : t;
|
|
1204
1204
|
}
|
|
1205
1205
|
function ua(e) {
|
|
1206
|
-
return E.isArray(e) && !e.some(
|
|
1206
|
+
return E.isArray(e) && !e.some(qn);
|
|
1207
1207
|
}
|
|
1208
1208
|
const fa = E.toFlatObject(E, {}, null, function(t) {
|
|
1209
1209
|
return /^is[A-Z]/.test(t);
|
|
1210
1210
|
});
|
|
1211
|
-
function
|
|
1211
|
+
function an(e, t, n) {
|
|
1212
1212
|
if (!E.isObject(e))
|
|
1213
1213
|
throw new TypeError("target must be an object");
|
|
1214
1214
|
t = t || new FormData(), n = E.toFlatObject(
|
|
@@ -1223,8 +1223,8 @@ function on(e, t, n) {
|
|
|
1223
1223
|
return !E.isUndefined(N[b]);
|
|
1224
1224
|
}
|
|
1225
1225
|
);
|
|
1226
|
-
const r = n.metaTokens,
|
|
1227
|
-
if (!E.isFunction(
|
|
1226
|
+
const r = n.metaTokens, s = n.visitor || u, o = n.dots, i = n.indexes, c = (n.Blob || typeof Blob < "u" && Blob) && E.isSpecCompliantForm(t);
|
|
1227
|
+
if (!E.isFunction(s))
|
|
1228
1228
|
throw new TypeError("visitor must be a function");
|
|
1229
1229
|
function f(g) {
|
|
1230
1230
|
if (g === null) return "";
|
|
@@ -1239,32 +1239,32 @@ function on(e, t, n) {
|
|
|
1239
1239
|
function u(g, b, N) {
|
|
1240
1240
|
let m = g;
|
|
1241
1241
|
if (E.isReactNative(t) && E.isReactNativeBlob(g))
|
|
1242
|
-
return t.append(
|
|
1242
|
+
return t.append(Tn(N, b, o), f(g)), !1;
|
|
1243
1243
|
if (g && !N && typeof g == "object") {
|
|
1244
1244
|
if (E.endsWith(b, "{}"))
|
|
1245
1245
|
b = r ? b : b.slice(0, -2), g = JSON.stringify(g);
|
|
1246
1246
|
else if (E.isArray(g) && ua(g) || (E.isFileList(g) || E.endsWith(b, "[]")) && (m = E.toArray(g)))
|
|
1247
|
-
return b =
|
|
1247
|
+
return b = Xs(b), m.forEach(function(T, y) {
|
|
1248
1248
|
!(E.isUndefined(T) || T === null) && t.append(
|
|
1249
1249
|
// eslint-disable-next-line no-nested-ternary
|
|
1250
|
-
i === !0 ?
|
|
1250
|
+
i === !0 ? Tn([b], y, o) : i === null ? b : b + "[]",
|
|
1251
1251
|
f(T)
|
|
1252
1252
|
);
|
|
1253
1253
|
}), !1;
|
|
1254
1254
|
}
|
|
1255
|
-
return
|
|
1255
|
+
return qn(g) ? !0 : (t.append(Tn(N, b, o), f(g)), !1);
|
|
1256
1256
|
}
|
|
1257
1257
|
const p = [], _ = Object.assign(fa, {
|
|
1258
1258
|
defaultVisitor: u,
|
|
1259
1259
|
convertValue: f,
|
|
1260
|
-
isVisitable:
|
|
1260
|
+
isVisitable: qn
|
|
1261
1261
|
});
|
|
1262
1262
|
function L(g, b) {
|
|
1263
1263
|
if (!E.isUndefined(g)) {
|
|
1264
1264
|
if (p.indexOf(g) !== -1)
|
|
1265
1265
|
throw Error("Circular reference detected in " + b.join("."));
|
|
1266
1266
|
p.push(g), E.forEach(g, function(m, O) {
|
|
1267
|
-
(!(E.isUndefined(m) || m === null) &&
|
|
1267
|
+
(!(E.isUndefined(m) || m === null) && s.call(t, m, E.isString(O) ? O.trim() : O, b, _)) === !0 && L(m, b ? b.concat(O) : [O]);
|
|
1268
1268
|
}), p.pop();
|
|
1269
1269
|
}
|
|
1270
1270
|
}
|
|
@@ -1287,31 +1287,31 @@ function xr(e) {
|
|
|
1287
1287
|
});
|
|
1288
1288
|
}
|
|
1289
1289
|
function cr(e, t) {
|
|
1290
|
-
this._pairs = [], e &&
|
|
1290
|
+
this._pairs = [], e && an(e, this, t);
|
|
1291
1291
|
}
|
|
1292
|
-
const
|
|
1293
|
-
|
|
1292
|
+
const Js = cr.prototype;
|
|
1293
|
+
Js.append = function(t, n) {
|
|
1294
1294
|
this._pairs.push([t, n]);
|
|
1295
1295
|
};
|
|
1296
|
-
|
|
1296
|
+
Js.toString = function(t) {
|
|
1297
1297
|
const n = t ? function(r) {
|
|
1298
1298
|
return t.call(this, r, xr);
|
|
1299
1299
|
} : xr;
|
|
1300
|
-
return this._pairs.map(function(
|
|
1301
|
-
return n(
|
|
1300
|
+
return this._pairs.map(function(s) {
|
|
1301
|
+
return n(s[0]) + "=" + n(s[1]);
|
|
1302
1302
|
}, "").join("&");
|
|
1303
1303
|
};
|
|
1304
1304
|
function da(e) {
|
|
1305
1305
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
1306
1306
|
}
|
|
1307
|
-
function
|
|
1307
|
+
function Qs(e, t, n) {
|
|
1308
1308
|
if (!t)
|
|
1309
1309
|
return e;
|
|
1310
|
-
const r = n && n.encode || da,
|
|
1310
|
+
const r = n && n.encode || da, s = E.isFunction(n) ? {
|
|
1311
1311
|
serialize: n
|
|
1312
|
-
} : n,
|
|
1312
|
+
} : n, o = s && s.serialize;
|
|
1313
1313
|
let i;
|
|
1314
|
-
if (
|
|
1314
|
+
if (o ? i = o(t, s) : i = E.isURLSearchParams(t) ? t.toString() : new cr(t, s).toString(r), i) {
|
|
1315
1315
|
const a = e.indexOf("#");
|
|
1316
1316
|
a !== -1 && (e = e.slice(0, a)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
|
|
1317
1317
|
}
|
|
@@ -1385,22 +1385,22 @@ const lr = {
|
|
|
1385
1385
|
Blob: _a
|
|
1386
1386
|
},
|
|
1387
1387
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
1388
|
-
}, ur = typeof window < "u" && typeof document < "u",
|
|
1388
|
+
}, ur = typeof window < "u" && typeof document < "u", Wn = typeof navigator == "object" && navigator || void 0, Ea = ur && (!Wn || ["ReactNative", "NativeScript", "NS"].indexOf(Wn.product) < 0), ga = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
1389
1389
|
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", ba = ur && window.location.href || "http://localhost", ya = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1390
1390
|
__proto__: null,
|
|
1391
1391
|
hasBrowserEnv: ur,
|
|
1392
1392
|
hasStandardBrowserEnv: Ea,
|
|
1393
1393
|
hasStandardBrowserWebWorkerEnv: ga,
|
|
1394
|
-
navigator:
|
|
1394
|
+
navigator: Wn,
|
|
1395
1395
|
origin: ba
|
|
1396
1396
|
}, Symbol.toStringTag, { value: "Module" })), ce = {
|
|
1397
1397
|
...ya,
|
|
1398
1398
|
...ha
|
|
1399
1399
|
};
|
|
1400
1400
|
function Na(e, t) {
|
|
1401
|
-
return
|
|
1402
|
-
visitor: function(n, r,
|
|
1403
|
-
return ce.isNode && E.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) :
|
|
1401
|
+
return an(e, new ce.classes.URLSearchParams(), {
|
|
1402
|
+
visitor: function(n, r, s, o) {
|
|
1403
|
+
return ce.isNode && E.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
1404
1404
|
},
|
|
1405
1405
|
...t
|
|
1406
1406
|
});
|
|
@@ -1411,23 +1411,23 @@ function Oa(e) {
|
|
|
1411
1411
|
function Sa(e) {
|
|
1412
1412
|
const t = {}, n = Object.keys(e);
|
|
1413
1413
|
let r;
|
|
1414
|
-
const
|
|
1415
|
-
let
|
|
1416
|
-
for (r = 0; r <
|
|
1417
|
-
|
|
1414
|
+
const s = n.length;
|
|
1415
|
+
let o;
|
|
1416
|
+
for (r = 0; r < s; r++)
|
|
1417
|
+
o = n[r], t[o] = e[o];
|
|
1418
1418
|
return t;
|
|
1419
1419
|
}
|
|
1420
|
-
function
|
|
1421
|
-
function t(n, r,
|
|
1422
|
-
let i = n[
|
|
1420
|
+
function zs(e) {
|
|
1421
|
+
function t(n, r, s, o) {
|
|
1422
|
+
let i = n[o++];
|
|
1423
1423
|
if (i === "__proto__") return !0;
|
|
1424
|
-
const a = Number.isFinite(+i), c =
|
|
1425
|
-
return i = !i && E.isArray(
|
|
1424
|
+
const a = Number.isFinite(+i), c = o >= n.length;
|
|
1425
|
+
return i = !i && E.isArray(s) ? s.length : i, c ? (E.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !a) : ((!s[i] || !E.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && E.isArray(s[i]) && (s[i] = Sa(s[i])), !a);
|
|
1426
1426
|
}
|
|
1427
1427
|
if (E.isFormData(e) && E.isFunction(e.entries)) {
|
|
1428
1428
|
const n = {};
|
|
1429
|
-
return E.forEachEntry(e, (r,
|
|
1430
|
-
t(Oa(r),
|
|
1429
|
+
return E.forEachEntry(e, (r, s) => {
|
|
1430
|
+
t(Oa(r), s, n, 0);
|
|
1431
1431
|
}), n;
|
|
1432
1432
|
}
|
|
1433
1433
|
return null;
|
|
@@ -1447,9 +1447,9 @@ const Tt = {
|
|
|
1447
1447
|
adapter: ["xhr", "http", "fetch"],
|
|
1448
1448
|
transformRequest: [
|
|
1449
1449
|
function(t, n) {
|
|
1450
|
-
const r = n.getContentType() || "",
|
|
1451
|
-
if (
|
|
1452
|
-
return
|
|
1450
|
+
const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = E.isObject(t);
|
|
1451
|
+
if (o && E.isHTMLForm(t) && (t = new FormData(t)), E.isFormData(t))
|
|
1452
|
+
return s ? JSON.stringify(zs(t)) : t;
|
|
1453
1453
|
if (E.isArrayBuffer(t) || E.isBuffer(t) || E.isStream(t) || E.isFile(t) || E.isBlob(t) || E.isReadableStream(t))
|
|
1454
1454
|
return t;
|
|
1455
1455
|
if (E.isArrayBufferView(t))
|
|
@@ -1457,28 +1457,28 @@ const Tt = {
|
|
|
1457
1457
|
if (E.isURLSearchParams(t))
|
|
1458
1458
|
return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
1459
1459
|
let a;
|
|
1460
|
-
if (
|
|
1460
|
+
if (o) {
|
|
1461
1461
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
1462
1462
|
return Na(t, this.formSerializer).toString();
|
|
1463
1463
|
if ((a = E.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
1464
1464
|
const c = this.env && this.env.FormData;
|
|
1465
|
-
return
|
|
1465
|
+
return an(
|
|
1466
1466
|
a ? { "files[]": t } : t,
|
|
1467
1467
|
c && new c(),
|
|
1468
1468
|
this.formSerializer
|
|
1469
1469
|
);
|
|
1470
1470
|
}
|
|
1471
1471
|
}
|
|
1472
|
-
return
|
|
1472
|
+
return o || s ? (n.setContentType("application/json", !1), Ta(t)) : t;
|
|
1473
1473
|
}
|
|
1474
1474
|
],
|
|
1475
1475
|
transformResponse: [
|
|
1476
1476
|
function(t) {
|
|
1477
|
-
const n = this.transitional || Tt.transitional, r = n && n.forcedJSONParsing,
|
|
1477
|
+
const n = this.transitional || Tt.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
|
|
1478
1478
|
if (E.isResponse(t) || E.isReadableStream(t))
|
|
1479
1479
|
return t;
|
|
1480
|
-
if (t && E.isString(t) && (r && !this.responseType ||
|
|
1481
|
-
const i = !(n && n.silentJSONParsing) &&
|
|
1480
|
+
if (t && E.isString(t) && (r && !this.responseType || s)) {
|
|
1481
|
+
const i = !(n && n.silentJSONParsing) && s;
|
|
1482
1482
|
try {
|
|
1483
1483
|
return JSON.parse(t, this.parseReviver);
|
|
1484
1484
|
} catch (a) {
|
|
@@ -1535,10 +1535,10 @@ const Aa = E.toObjectSet([
|
|
|
1535
1535
|
"user-agent"
|
|
1536
1536
|
]), La = (e) => {
|
|
1537
1537
|
const t = {};
|
|
1538
|
-
let n, r,
|
|
1538
|
+
let n, r, s;
|
|
1539
1539
|
return e && e.split(`
|
|
1540
1540
|
`).forEach(function(i) {
|
|
1541
|
-
|
|
1541
|
+
s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && Aa[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
1542
1542
|
}), t;
|
|
1543
1543
|
}, $r = /* @__PURE__ */ Symbol("internals");
|
|
1544
1544
|
function dt(e) {
|
|
@@ -1555,10 +1555,10 @@ function Ra(e) {
|
|
|
1555
1555
|
return t;
|
|
1556
1556
|
}
|
|
1557
1557
|
const va = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
1558
|
-
function
|
|
1558
|
+
function An(e, t, n, r, s) {
|
|
1559
1559
|
if (E.isFunction(r))
|
|
1560
1560
|
return r.call(this, t, n);
|
|
1561
|
-
if (
|
|
1561
|
+
if (s && (t = n), !!E.isString(t)) {
|
|
1562
1562
|
if (E.isString(r))
|
|
1563
1563
|
return t.indexOf(r) !== -1;
|
|
1564
1564
|
if (E.isRegExp(r))
|
|
@@ -1572,8 +1572,8 @@ function Ia(e, t) {
|
|
|
1572
1572
|
const n = E.toCamelCase(" " + t);
|
|
1573
1573
|
["get", "set", "has"].forEach((r) => {
|
|
1574
1574
|
Object.defineProperty(e, r + n, {
|
|
1575
|
-
value: function(
|
|
1576
|
-
return this[r].call(this, t,
|
|
1575
|
+
value: function(s, o, i) {
|
|
1576
|
+
return this[r].call(this, t, s, o, i);
|
|
1577
1577
|
},
|
|
1578
1578
|
configurable: !0
|
|
1579
1579
|
});
|
|
@@ -1584,15 +1584,15 @@ let fe = class {
|
|
|
1584
1584
|
t && this.set(t);
|
|
1585
1585
|
}
|
|
1586
1586
|
set(t, n, r) {
|
|
1587
|
-
const
|
|
1588
|
-
function
|
|
1587
|
+
const s = this;
|
|
1588
|
+
function o(a, c, f) {
|
|
1589
1589
|
const u = dt(c);
|
|
1590
1590
|
if (!u)
|
|
1591
1591
|
throw new Error("header name must be a non-empty string");
|
|
1592
|
-
const p = E.findKey(
|
|
1593
|
-
(!p ||
|
|
1592
|
+
const p = E.findKey(s, u);
|
|
1593
|
+
(!p || s[p] === void 0 || f === !0 || f === void 0 && s[p] !== !1) && (s[p || c] = Ft(a));
|
|
1594
1594
|
}
|
|
1595
|
-
const i = (a, c) => E.forEach(a, (f, u) =>
|
|
1595
|
+
const i = (a, c) => E.forEach(a, (f, u) => o(f, u, c));
|
|
1596
1596
|
if (E.isPlainObject(t) || t instanceof this.constructor)
|
|
1597
1597
|
i(t, n);
|
|
1598
1598
|
else if (E.isString(t) && (t = t.trim()) && !va(t))
|
|
@@ -1606,22 +1606,22 @@ let fe = class {
|
|
|
1606
1606
|
}
|
|
1607
1607
|
i(a, n);
|
|
1608
1608
|
} else
|
|
1609
|
-
t != null &&
|
|
1609
|
+
t != null && o(n, t, r);
|
|
1610
1610
|
return this;
|
|
1611
1611
|
}
|
|
1612
1612
|
get(t, n) {
|
|
1613
1613
|
if (t = dt(t), t) {
|
|
1614
1614
|
const r = E.findKey(this, t);
|
|
1615
1615
|
if (r) {
|
|
1616
|
-
const
|
|
1616
|
+
const s = this[r];
|
|
1617
1617
|
if (!n)
|
|
1618
|
-
return
|
|
1618
|
+
return s;
|
|
1619
1619
|
if (n === !0)
|
|
1620
|
-
return Ra(
|
|
1620
|
+
return Ra(s);
|
|
1621
1621
|
if (E.isFunction(n))
|
|
1622
|
-
return n.call(this,
|
|
1622
|
+
return n.call(this, s, r);
|
|
1623
1623
|
if (E.isRegExp(n))
|
|
1624
|
-
return n.exec(
|
|
1624
|
+
return n.exec(s);
|
|
1625
1625
|
throw new TypeError("parser must be boolean|regexp|function");
|
|
1626
1626
|
}
|
|
1627
1627
|
}
|
|
@@ -1629,40 +1629,40 @@ let fe = class {
|
|
|
1629
1629
|
has(t, n) {
|
|
1630
1630
|
if (t = dt(t), t) {
|
|
1631
1631
|
const r = E.findKey(this, t);
|
|
1632
|
-
return !!(r && this[r] !== void 0 && (!n ||
|
|
1632
|
+
return !!(r && this[r] !== void 0 && (!n || An(this, this[r], r, n)));
|
|
1633
1633
|
}
|
|
1634
1634
|
return !1;
|
|
1635
1635
|
}
|
|
1636
1636
|
delete(t, n) {
|
|
1637
1637
|
const r = this;
|
|
1638
|
-
let
|
|
1639
|
-
function
|
|
1638
|
+
let s = !1;
|
|
1639
|
+
function o(i) {
|
|
1640
1640
|
if (i = dt(i), i) {
|
|
1641
1641
|
const a = E.findKey(r, i);
|
|
1642
|
-
a && (!n ||
|
|
1642
|
+
a && (!n || An(r, r[a], a, n)) && (delete r[a], s = !0);
|
|
1643
1643
|
}
|
|
1644
1644
|
}
|
|
1645
|
-
return E.isArray(t) ? t.forEach(
|
|
1645
|
+
return E.isArray(t) ? t.forEach(o) : o(t), s;
|
|
1646
1646
|
}
|
|
1647
1647
|
clear(t) {
|
|
1648
1648
|
const n = Object.keys(this);
|
|
1649
|
-
let r = n.length,
|
|
1649
|
+
let r = n.length, s = !1;
|
|
1650
1650
|
for (; r--; ) {
|
|
1651
|
-
const
|
|
1652
|
-
(!t ||
|
|
1651
|
+
const o = n[r];
|
|
1652
|
+
(!t || An(this, this[o], o, t, !0)) && (delete this[o], s = !0);
|
|
1653
1653
|
}
|
|
1654
|
-
return
|
|
1654
|
+
return s;
|
|
1655
1655
|
}
|
|
1656
1656
|
normalize(t) {
|
|
1657
1657
|
const n = this, r = {};
|
|
1658
|
-
return E.forEach(this, (
|
|
1659
|
-
const i = E.findKey(r,
|
|
1658
|
+
return E.forEach(this, (s, o) => {
|
|
1659
|
+
const i = E.findKey(r, o);
|
|
1660
1660
|
if (i) {
|
|
1661
|
-
n[i] = Ft(
|
|
1661
|
+
n[i] = Ft(s), delete n[o];
|
|
1662
1662
|
return;
|
|
1663
1663
|
}
|
|
1664
|
-
const a = t ? Ca(
|
|
1665
|
-
a !==
|
|
1664
|
+
const a = t ? Ca(o) : String(o).trim();
|
|
1665
|
+
a !== o && delete n[o], n[a] = Ft(s), r[a] = !0;
|
|
1666
1666
|
}), this;
|
|
1667
1667
|
}
|
|
1668
1668
|
concat(...t) {
|
|
@@ -1670,8 +1670,8 @@ let fe = class {
|
|
|
1670
1670
|
}
|
|
1671
1671
|
toJSON(t) {
|
|
1672
1672
|
const n = /* @__PURE__ */ Object.create(null);
|
|
1673
|
-
return E.forEach(this, (r,
|
|
1674
|
-
r != null && r !== !1 && (n[
|
|
1673
|
+
return E.forEach(this, (r, s) => {
|
|
1674
|
+
r != null && r !== !1 && (n[s] = t && E.isArray(r) ? r.join(", ") : r);
|
|
1675
1675
|
}), n;
|
|
1676
1676
|
}
|
|
1677
1677
|
[Symbol.iterator]() {
|
|
@@ -1692,17 +1692,17 @@ let fe = class {
|
|
|
1692
1692
|
}
|
|
1693
1693
|
static concat(t, ...n) {
|
|
1694
1694
|
const r = new this(t);
|
|
1695
|
-
return n.forEach((
|
|
1695
|
+
return n.forEach((s) => r.set(s)), r;
|
|
1696
1696
|
}
|
|
1697
1697
|
static accessor(t) {
|
|
1698
1698
|
const r = (this[$r] = this[$r] = {
|
|
1699
1699
|
accessors: {}
|
|
1700
|
-
}).accessors,
|
|
1701
|
-
function
|
|
1700
|
+
}).accessors, s = this.prototype;
|
|
1701
|
+
function o(i) {
|
|
1702
1702
|
const a = dt(i);
|
|
1703
|
-
r[a] || (Ia(
|
|
1703
|
+
r[a] || (Ia(s, i), r[a] = !0);
|
|
1704
1704
|
}
|
|
1705
|
-
return E.isArray(t) ? t.forEach(
|
|
1705
|
+
return E.isArray(t) ? t.forEach(o) : o(t), this;
|
|
1706
1706
|
}
|
|
1707
1707
|
};
|
|
1708
1708
|
fe.accessor([
|
|
@@ -1723,14 +1723,14 @@ E.reduceDescriptors(fe.prototype, ({ value: e }, t) => {
|
|
|
1723
1723
|
};
|
|
1724
1724
|
});
|
|
1725
1725
|
E.freezeMethods(fe);
|
|
1726
|
-
function
|
|
1727
|
-
const n = this || Tt, r = t || n,
|
|
1728
|
-
let
|
|
1726
|
+
function Ln(e, t) {
|
|
1727
|
+
const n = this || Tt, r = t || n, s = fe.from(r.headers);
|
|
1728
|
+
let o = r.data;
|
|
1729
1729
|
return E.forEach(e, function(a) {
|
|
1730
|
-
|
|
1731
|
-
}),
|
|
1730
|
+
o = a.call(n, o, s.normalize(), t ? t.status : void 0);
|
|
1731
|
+
}), s.normalize(), o;
|
|
1732
1732
|
}
|
|
1733
|
-
function
|
|
1733
|
+
function Zs(e) {
|
|
1734
1734
|
return !!(e && e.__CANCEL__);
|
|
1735
1735
|
}
|
|
1736
1736
|
let At = class extends U {
|
|
@@ -1747,7 +1747,7 @@ let At = class extends U {
|
|
|
1747
1747
|
super(t ?? "canceled", U.ERR_CANCELED, n, r), this.name = "CanceledError", this.__CANCEL__ = !0;
|
|
1748
1748
|
}
|
|
1749
1749
|
};
|
|
1750
|
-
function
|
|
1750
|
+
function eo(e, t, n) {
|
|
1751
1751
|
const r = n.config.validateStatus;
|
|
1752
1752
|
!n.status || !r || r(n.status) ? e(n) : t(
|
|
1753
1753
|
new U(
|
|
@@ -1766,36 +1766,36 @@ function Pa(e) {
|
|
|
1766
1766
|
function wa(e, t) {
|
|
1767
1767
|
e = e || 10;
|
|
1768
1768
|
const n = new Array(e), r = new Array(e);
|
|
1769
|
-
let
|
|
1769
|
+
let s = 0, o = 0, i;
|
|
1770
1770
|
return t = t !== void 0 ? t : 1e3, function(c) {
|
|
1771
|
-
const f = Date.now(), u = r[
|
|
1772
|
-
i || (i = f), n[
|
|
1773
|
-
let p =
|
|
1774
|
-
for (; p !==
|
|
1771
|
+
const f = Date.now(), u = r[o];
|
|
1772
|
+
i || (i = f), n[s] = c, r[s] = f;
|
|
1773
|
+
let p = o, _ = 0;
|
|
1774
|
+
for (; p !== s; )
|
|
1775
1775
|
_ += n[p++], p = p % e;
|
|
1776
|
-
if (
|
|
1776
|
+
if (s = (s + 1) % e, s === o && (o = (o + 1) % e), f - i < t)
|
|
1777
1777
|
return;
|
|
1778
1778
|
const L = u && f - u;
|
|
1779
1779
|
return L ? Math.round(_ * 1e3 / L) : void 0;
|
|
1780
1780
|
};
|
|
1781
1781
|
}
|
|
1782
1782
|
function Da(e, t) {
|
|
1783
|
-
let n = 0, r = 1e3 / t,
|
|
1783
|
+
let n = 0, r = 1e3 / t, s, o;
|
|
1784
1784
|
const i = (f, u = Date.now()) => {
|
|
1785
|
-
n = u,
|
|
1785
|
+
n = u, s = null, o && (clearTimeout(o), o = null), e(...f);
|
|
1786
1786
|
};
|
|
1787
1787
|
return [(...f) => {
|
|
1788
1788
|
const u = Date.now(), p = u - n;
|
|
1789
|
-
p >= r ? i(f, u) : (
|
|
1790
|
-
|
|
1789
|
+
p >= r ? i(f, u) : (s = f, o || (o = setTimeout(() => {
|
|
1790
|
+
o = null, i(s);
|
|
1791
1791
|
}, r - p)));
|
|
1792
|
-
}, () =>
|
|
1792
|
+
}, () => s && i(s)];
|
|
1793
1793
|
}
|
|
1794
1794
|
const Ht = (e, t, n = 3) => {
|
|
1795
1795
|
let r = 0;
|
|
1796
|
-
const
|
|
1797
|
-
return Da((
|
|
1798
|
-
const i =
|
|
1796
|
+
const s = wa(50, 250);
|
|
1797
|
+
return Da((o) => {
|
|
1798
|
+
const i = o.loaded, a = o.lengthComputable ? o.total : void 0, c = i - r, f = s(c), u = i <= a;
|
|
1799
1799
|
r = i;
|
|
1800
1800
|
const p = {
|
|
1801
1801
|
loaded: i,
|
|
@@ -1804,7 +1804,7 @@ const Ht = (e, t, n = 3) => {
|
|
|
1804
1804
|
bytes: c,
|
|
1805
1805
|
rate: f || void 0,
|
|
1806
1806
|
estimated: f && a && u ? (a - i) / f : void 0,
|
|
1807
|
-
event:
|
|
1807
|
+
event: o,
|
|
1808
1808
|
lengthComputable: a != null,
|
|
1809
1809
|
[t ? "download" : "upload"]: !0
|
|
1810
1810
|
};
|
|
@@ -1826,10 +1826,10 @@ const Ht = (e, t, n = 3) => {
|
|
|
1826
1826
|
) : () => !0, Fa = ce.hasStandardBrowserEnv ? (
|
|
1827
1827
|
// Standard browser envs support document.cookie
|
|
1828
1828
|
{
|
|
1829
|
-
write(e, t, n, r,
|
|
1829
|
+
write(e, t, n, r, s, o, i) {
|
|
1830
1830
|
if (typeof document > "u") return;
|
|
1831
1831
|
const a = [`${e}=${encodeURIComponent(t)}`];
|
|
1832
|
-
E.isNumber(n) && a.push(`expires=${new Date(n).toUTCString()}`), E.isString(r) && a.push(`path=${r}`), E.isString(
|
|
1832
|
+
E.isNumber(n) && a.push(`expires=${new Date(n).toUTCString()}`), E.isString(r) && a.push(`path=${r}`), E.isString(s) && a.push(`domain=${s}`), o === !0 && a.push("secure"), E.isString(i) && a.push(`SameSite=${i}`), document.cookie = a.join("; ");
|
|
1833
1833
|
},
|
|
1834
1834
|
read(e) {
|
|
1835
1835
|
if (typeof document > "u") return null;
|
|
@@ -1858,7 +1858,7 @@ function Ua(e) {
|
|
|
1858
1858
|
function Ma(e, t) {
|
|
1859
1859
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
1860
1860
|
}
|
|
1861
|
-
function
|
|
1861
|
+
function to(e, t, n) {
|
|
1862
1862
|
let r = !Ua(t);
|
|
1863
1863
|
return e && (r || n == !1) ? Ma(e, t) : t;
|
|
1864
1864
|
}
|
|
@@ -1869,13 +1869,13 @@ function Xe(e, t) {
|
|
|
1869
1869
|
function r(f, u, p, _) {
|
|
1870
1870
|
return E.isPlainObject(f) && E.isPlainObject(u) ? E.merge.call({ caseless: _ }, f, u) : E.isPlainObject(u) ? E.merge({}, u) : E.isArray(u) ? u.slice() : u;
|
|
1871
1871
|
}
|
|
1872
|
-
function
|
|
1872
|
+
function s(f, u, p, _) {
|
|
1873
1873
|
if (E.isUndefined(u)) {
|
|
1874
1874
|
if (!E.isUndefined(f))
|
|
1875
1875
|
return r(void 0, f, p, _);
|
|
1876
1876
|
} else return r(f, u, p, _);
|
|
1877
1877
|
}
|
|
1878
|
-
function
|
|
1878
|
+
function o(f, u) {
|
|
1879
1879
|
if (!E.isUndefined(u))
|
|
1880
1880
|
return r(void 0, u);
|
|
1881
1881
|
}
|
|
@@ -1892,9 +1892,9 @@ function Xe(e, t) {
|
|
|
1892
1892
|
return r(void 0, f);
|
|
1893
1893
|
}
|
|
1894
1894
|
const c = {
|
|
1895
|
-
url:
|
|
1896
|
-
method:
|
|
1897
|
-
data:
|
|
1895
|
+
url: o,
|
|
1896
|
+
method: o,
|
|
1897
|
+
data: o,
|
|
1898
1898
|
baseURL: i,
|
|
1899
1899
|
transformRequest: i,
|
|
1900
1900
|
transformResponse: i,
|
|
@@ -1920,19 +1920,19 @@ function Xe(e, t) {
|
|
|
1920
1920
|
socketPath: i,
|
|
1921
1921
|
responseEncoding: i,
|
|
1922
1922
|
validateStatus: a,
|
|
1923
|
-
headers: (f, u, p) =>
|
|
1923
|
+
headers: (f, u, p) => s(Hr(f), Hr(u), p, !0)
|
|
1924
1924
|
};
|
|
1925
1925
|
return E.forEach(Object.keys({ ...e, ...t }), function(u) {
|
|
1926
1926
|
if (u === "__proto__" || u === "constructor" || u === "prototype") return;
|
|
1927
|
-
const p = E.hasOwnProp(c, u) ? c[u] :
|
|
1927
|
+
const p = E.hasOwnProp(c, u) ? c[u] : s, _ = p(e[u], t[u], u);
|
|
1928
1928
|
E.isUndefined(_) && p !== a || (n[u] = _);
|
|
1929
1929
|
}), n;
|
|
1930
1930
|
}
|
|
1931
|
-
const
|
|
1931
|
+
const no = (e) => {
|
|
1932
1932
|
const t = Xe({}, e);
|
|
1933
|
-
let { data: n, withXSRFToken: r, xsrfHeaderName:
|
|
1934
|
-
if (t.headers = i = fe.from(i), t.url =
|
|
1935
|
-
|
|
1933
|
+
let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: a } = t;
|
|
1934
|
+
if (t.headers = i = fe.from(i), t.url = Qs(
|
|
1935
|
+
to(t.baseURL, t.url, t.allowAbsoluteUrls),
|
|
1936
1936
|
e.params,
|
|
1937
1937
|
e.paramsSerializer
|
|
1938
1938
|
), a && i.set(
|
|
@@ -1951,21 +1951,21 @@ const rs = (e) => {
|
|
|
1951
1951
|
}
|
|
1952
1952
|
}
|
|
1953
1953
|
if (ce.hasStandardBrowserEnv && (r && E.isFunction(r) && (r = r(t)), r || r !== !1 && ka(t.url))) {
|
|
1954
|
-
const c =
|
|
1955
|
-
c && i.set(
|
|
1954
|
+
const c = s && o && Fa.read(o);
|
|
1955
|
+
c && i.set(s, c);
|
|
1956
1956
|
}
|
|
1957
1957
|
return t;
|
|
1958
1958
|
}, xa = typeof XMLHttpRequest < "u", Va = xa && function(e) {
|
|
1959
1959
|
return new Promise(function(n, r) {
|
|
1960
|
-
const
|
|
1961
|
-
let
|
|
1962
|
-
const i = fe.from(
|
|
1963
|
-
let { responseType: a, onUploadProgress: c, onDownloadProgress: f } =
|
|
1960
|
+
const s = no(e);
|
|
1961
|
+
let o = s.data;
|
|
1962
|
+
const i = fe.from(s.headers).normalize();
|
|
1963
|
+
let { responseType: a, onUploadProgress: c, onDownloadProgress: f } = s, u, p, _, L, g;
|
|
1964
1964
|
function b() {
|
|
1965
|
-
L && L(), g && g(),
|
|
1965
|
+
L && L(), g && g(), s.cancelToken && s.cancelToken.unsubscribe(u), s.signal && s.signal.removeEventListener("abort", u);
|
|
1966
1966
|
}
|
|
1967
1967
|
let N = new XMLHttpRequest();
|
|
1968
|
-
N.open(
|
|
1968
|
+
N.open(s.method.toUpperCase(), s.url, !0), N.timeout = s.timeout;
|
|
1969
1969
|
function m() {
|
|
1970
1970
|
if (!N)
|
|
1971
1971
|
return;
|
|
@@ -1979,7 +1979,7 @@ const rs = (e) => {
|
|
|
1979
1979
|
config: e,
|
|
1980
1980
|
request: N
|
|
1981
1981
|
};
|
|
1982
|
-
|
|
1982
|
+
eo(
|
|
1983
1983
|
function(h) {
|
|
1984
1984
|
n(h), b();
|
|
1985
1985
|
},
|
|
@@ -1997,9 +1997,9 @@ const rs = (e) => {
|
|
|
1997
1997
|
const v = y && y.message ? y.message : "Network Error", C = new U(v, U.ERR_NETWORK, e, N);
|
|
1998
1998
|
C.event = y || null, r(C), N = null;
|
|
1999
1999
|
}, N.ontimeout = function() {
|
|
2000
|
-
let y =
|
|
2001
|
-
const v =
|
|
2002
|
-
|
|
2000
|
+
let y = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
2001
|
+
const v = s.transitional || lr;
|
|
2002
|
+
s.timeoutErrorMessage && (y = s.timeoutErrorMessage), r(
|
|
2003
2003
|
new U(
|
|
2004
2004
|
y,
|
|
2005
2005
|
v.clarifyTimeoutError ? U.ETIMEDOUT : U.ECONNABORTED,
|
|
@@ -2007,12 +2007,12 @@ const rs = (e) => {
|
|
|
2007
2007
|
N
|
|
2008
2008
|
)
|
|
2009
2009
|
), N = null;
|
|
2010
|
-
},
|
|
2010
|
+
}, o === void 0 && i.setContentType(null), "setRequestHeader" in N && E.forEach(i.toJSON(), function(y, v) {
|
|
2011
2011
|
N.setRequestHeader(v, y);
|
|
2012
|
-
}), E.isUndefined(
|
|
2012
|
+
}), E.isUndefined(s.withCredentials) || (N.withCredentials = !!s.withCredentials), a && a !== "json" && (N.responseType = s.responseType), f && ([_, g] = Ht(f, !0), N.addEventListener("progress", _)), c && N.upload && ([p, L] = Ht(c), N.upload.addEventListener("progress", p), N.upload.addEventListener("loadend", L)), (s.cancelToken || s.signal) && (u = (T) => {
|
|
2013
2013
|
N && (r(!T || T.type ? new At(null, e, N) : T), N.abort(), N = null);
|
|
2014
|
-
},
|
|
2015
|
-
const O = Pa(
|
|
2014
|
+
}, s.cancelToken && s.cancelToken.subscribe(u), s.signal && (s.signal.aborted ? u() : s.signal.addEventListener("abort", u)));
|
|
2015
|
+
const O = Pa(s.url);
|
|
2016
2016
|
if (O && ce.protocols.indexOf(O) === -1) {
|
|
2017
2017
|
r(
|
|
2018
2018
|
new U(
|
|
@@ -2023,15 +2023,15 @@ const rs = (e) => {
|
|
|
2023
2023
|
);
|
|
2024
2024
|
return;
|
|
2025
2025
|
}
|
|
2026
|
-
N.send(
|
|
2026
|
+
N.send(o || null);
|
|
2027
2027
|
});
|
|
2028
2028
|
}, $a = (e, t) => {
|
|
2029
2029
|
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
2030
2030
|
if (t || n) {
|
|
2031
|
-
let r = new AbortController(),
|
|
2032
|
-
const
|
|
2033
|
-
if (!
|
|
2034
|
-
|
|
2031
|
+
let r = new AbortController(), s;
|
|
2032
|
+
const o = function(f) {
|
|
2033
|
+
if (!s) {
|
|
2034
|
+
s = !0, a();
|
|
2035
2035
|
const u = f instanceof Error ? f : this.reason;
|
|
2036
2036
|
r.abort(
|
|
2037
2037
|
u instanceof U ? u : new At(u instanceof Error ? u.message : u)
|
|
@@ -2039,14 +2039,14 @@ const rs = (e) => {
|
|
|
2039
2039
|
}
|
|
2040
2040
|
};
|
|
2041
2041
|
let i = t && setTimeout(() => {
|
|
2042
|
-
i = null,
|
|
2042
|
+
i = null, o(new U(`timeout of ${t}ms exceeded`, U.ETIMEDOUT));
|
|
2043
2043
|
}, t);
|
|
2044
2044
|
const a = () => {
|
|
2045
2045
|
e && (i && clearTimeout(i), i = null, e.forEach((f) => {
|
|
2046
|
-
f.unsubscribe ? f.unsubscribe(
|
|
2046
|
+
f.unsubscribe ? f.unsubscribe(o) : f.removeEventListener("abort", o);
|
|
2047
2047
|
}), e = null);
|
|
2048
2048
|
};
|
|
2049
|
-
e.forEach((f) => f.addEventListener("abort",
|
|
2049
|
+
e.forEach((f) => f.addEventListener("abort", o));
|
|
2050
2050
|
const { signal: c } = r;
|
|
2051
2051
|
return c.unsubscribe = () => E.asap(a), c;
|
|
2052
2052
|
}
|
|
@@ -2056,9 +2056,9 @@ const rs = (e) => {
|
|
|
2056
2056
|
yield e;
|
|
2057
2057
|
return;
|
|
2058
2058
|
}
|
|
2059
|
-
let r = 0,
|
|
2059
|
+
let r = 0, s;
|
|
2060
2060
|
for (; r < n; )
|
|
2061
|
-
|
|
2061
|
+
s = r + t, yield e.slice(r, s), r = s;
|
|
2062
2062
|
}, ja = async function* (e, t) {
|
|
2063
2063
|
for await (const n of Ha(e))
|
|
2064
2064
|
yield* Ba(n, t);
|
|
@@ -2079,22 +2079,22 @@ const rs = (e) => {
|
|
|
2079
2079
|
await t.cancel();
|
|
2080
2080
|
}
|
|
2081
2081
|
}, qr = (e, t, n, r) => {
|
|
2082
|
-
const
|
|
2083
|
-
let
|
|
2082
|
+
const s = ja(e, t);
|
|
2083
|
+
let o = 0, i, a = (c) => {
|
|
2084
2084
|
i || (i = !0, r && r(c));
|
|
2085
2085
|
};
|
|
2086
2086
|
return new ReadableStream(
|
|
2087
2087
|
{
|
|
2088
2088
|
async pull(c) {
|
|
2089
2089
|
try {
|
|
2090
|
-
const { done: f, value: u } = await
|
|
2090
|
+
const { done: f, value: u } = await s.next();
|
|
2091
2091
|
if (f) {
|
|
2092
2092
|
a(), c.close();
|
|
2093
2093
|
return;
|
|
2094
2094
|
}
|
|
2095
2095
|
let p = u.byteLength;
|
|
2096
2096
|
if (n) {
|
|
2097
|
-
let _ =
|
|
2097
|
+
let _ = o += p;
|
|
2098
2098
|
n(_);
|
|
2099
2099
|
}
|
|
2100
2100
|
c.enqueue(new Uint8Array(u));
|
|
@@ -2103,7 +2103,7 @@ const rs = (e) => {
|
|
|
2103
2103
|
}
|
|
2104
2104
|
},
|
|
2105
2105
|
cancel(c) {
|
|
2106
|
-
return a(c),
|
|
2106
|
+
return a(c), s.return();
|
|
2107
2107
|
}
|
|
2108
2108
|
},
|
|
2109
2109
|
{
|
|
@@ -2127,10 +2127,10 @@ const rs = (e) => {
|
|
|
2127
2127
|
qa,
|
|
2128
2128
|
e
|
|
2129
2129
|
);
|
|
2130
|
-
const { fetch: t, Request: n, Response: r } = e,
|
|
2131
|
-
if (!
|
|
2130
|
+
const { fetch: t, Request: n, Response: r } = e, s = t ? Ct(t) : typeof fetch == "function", o = Ct(n), i = Ct(r);
|
|
2131
|
+
if (!s)
|
|
2132
2132
|
return !1;
|
|
2133
|
-
const a =
|
|
2133
|
+
const a = s && Ct(Gr), c = s && (typeof Yr == "function" ? /* @__PURE__ */ ((g) => (b) => g.encode(b))(new Yr()) : async (g) => new Uint8Array(await new n(g).arrayBuffer())), f = o && a && Kr(() => {
|
|
2134
2134
|
let g = !1;
|
|
2135
2135
|
const b = new n(ce.origin, {
|
|
2136
2136
|
body: new Gr(),
|
|
@@ -2143,7 +2143,7 @@ const rs = (e) => {
|
|
|
2143
2143
|
}), u = i && a && Kr(() => E.isReadableStream(new r("").body)), p = {
|
|
2144
2144
|
stream: u && ((g) => g.body)
|
|
2145
2145
|
};
|
|
2146
|
-
|
|
2146
|
+
s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((g) => {
|
|
2147
2147
|
!p[g] && (p[g] = (b, N) => {
|
|
2148
2148
|
let m = b && b[g];
|
|
2149
2149
|
if (m)
|
|
@@ -2187,13 +2187,13 @@ const rs = (e) => {
|
|
|
2187
2187
|
headers: x,
|
|
2188
2188
|
withCredentials: M = "same-origin",
|
|
2189
2189
|
fetchOptions: I
|
|
2190
|
-
} =
|
|
2190
|
+
} = no(g), P = t || fetch;
|
|
2191
2191
|
h = h ? (h + "").toLowerCase() : "text";
|
|
2192
2192
|
let k = $a(
|
|
2193
2193
|
[O, T && T.toAbortSignal()],
|
|
2194
2194
|
y
|
|
2195
2195
|
), q = null;
|
|
2196
|
-
const
|
|
2196
|
+
const se = k && k.unsubscribe && (() => {
|
|
2197
2197
|
k.unsubscribe();
|
|
2198
2198
|
});
|
|
2199
2199
|
let Ne;
|
|
@@ -2213,7 +2213,7 @@ const rs = (e) => {
|
|
|
2213
2213
|
}
|
|
2214
2214
|
}
|
|
2215
2215
|
E.isString(M) || (M = M ? "include" : "omit");
|
|
2216
|
-
const z =
|
|
2216
|
+
const z = o && "credentials" in n.prototype, ke = {
|
|
2217
2217
|
...I,
|
|
2218
2218
|
signal: k,
|
|
2219
2219
|
method: N.toUpperCase(),
|
|
@@ -2222,10 +2222,10 @@ const rs = (e) => {
|
|
|
2222
2222
|
duplex: "half",
|
|
2223
2223
|
credentials: z ? M : void 0
|
|
2224
2224
|
};
|
|
2225
|
-
q =
|
|
2226
|
-
let ee = await (
|
|
2225
|
+
q = o && new n(b, ke);
|
|
2226
|
+
let ee = await (o ? P(q, I) : P(b, ke));
|
|
2227
2227
|
const Z = u && (h === "stream" || h === "response");
|
|
2228
|
-
if (u && (v || Z &&
|
|
2228
|
+
if (u && (v || Z && se)) {
|
|
2229
2229
|
const le = {};
|
|
2230
2230
|
["status", "statusText", "headers"].forEach((Qe) => {
|
|
2231
2231
|
le[Qe] = ee[Qe];
|
|
@@ -2236,7 +2236,7 @@ const rs = (e) => {
|
|
|
2236
2236
|
) || [];
|
|
2237
2237
|
ee = new r(
|
|
2238
2238
|
qr(ee.body, Wr, Ve, () => {
|
|
2239
|
-
Fe && Fe(),
|
|
2239
|
+
Fe && Fe(), se && se();
|
|
2240
2240
|
}),
|
|
2241
2241
|
le
|
|
2242
2242
|
);
|
|
@@ -2246,8 +2246,8 @@ const rs = (e) => {
|
|
|
2246
2246
|
ee,
|
|
2247
2247
|
g
|
|
2248
2248
|
);
|
|
2249
|
-
return !Z &&
|
|
2250
|
-
|
|
2249
|
+
return !Z && se && se(), await new Promise((le, Oe) => {
|
|
2250
|
+
eo(le, Oe, {
|
|
2251
2251
|
data: ge,
|
|
2252
2252
|
headers: fe.from(ee.headers),
|
|
2253
2253
|
status: ee.status,
|
|
@@ -2257,7 +2257,7 @@ const rs = (e) => {
|
|
|
2257
2257
|
});
|
|
2258
2258
|
});
|
|
2259
2259
|
} catch (z) {
|
|
2260
|
-
throw
|
|
2260
|
+
throw se && se(), z && z.name === "TypeError" && /Load failed|fetch/i.test(z.message) ? Object.assign(
|
|
2261
2261
|
new U(
|
|
2262
2262
|
"Network Error",
|
|
2263
2263
|
U.ERR_NETWORK,
|
|
@@ -2271,20 +2271,20 @@ const rs = (e) => {
|
|
|
2271
2271
|
) : U.from(z, z && z.code, g, q, z && z.response);
|
|
2272
2272
|
}
|
|
2273
2273
|
};
|
|
2274
|
-
}, Ga = /* @__PURE__ */ new Map(),
|
|
2274
|
+
}, Ga = /* @__PURE__ */ new Map(), ro = (e) => {
|
|
2275
2275
|
let t = e && e.env || {};
|
|
2276
|
-
const { fetch: n, Request: r, Response:
|
|
2277
|
-
let i =
|
|
2276
|
+
const { fetch: n, Request: r, Response: s } = t, o = [r, s, n];
|
|
2277
|
+
let i = o.length, a = i, c, f, u = Ga;
|
|
2278
2278
|
for (; a--; )
|
|
2279
|
-
c =
|
|
2279
|
+
c = o[a], f = u.get(c), f === void 0 && u.set(c, f = a ? /* @__PURE__ */ new Map() : Wa(t)), u = f;
|
|
2280
2280
|
return f;
|
|
2281
2281
|
};
|
|
2282
|
-
|
|
2282
|
+
ro();
|
|
2283
2283
|
const fr = {
|
|
2284
2284
|
http: la,
|
|
2285
2285
|
xhr: Va,
|
|
2286
2286
|
fetch: {
|
|
2287
|
-
get:
|
|
2287
|
+
get: ro
|
|
2288
2288
|
}
|
|
2289
2289
|
};
|
|
2290
2290
|
E.forEach(fr, (e, t) => {
|
|
@@ -2300,19 +2300,19 @@ const Xr = (e) => `- ${e}`, Ya = (e) => E.isFunction(e) || e === null || e === !
|
|
|
2300
2300
|
function Ka(e, t) {
|
|
2301
2301
|
e = E.isArray(e) ? e : [e];
|
|
2302
2302
|
const { length: n } = e;
|
|
2303
|
-
let r,
|
|
2304
|
-
const
|
|
2303
|
+
let r, s;
|
|
2304
|
+
const o = {};
|
|
2305
2305
|
for (let i = 0; i < n; i++) {
|
|
2306
2306
|
r = e[i];
|
|
2307
2307
|
let a;
|
|
2308
|
-
if (
|
|
2308
|
+
if (s = r, !Ya(r) && (s = fr[(a = String(r)).toLowerCase()], s === void 0))
|
|
2309
2309
|
throw new U(`Unknown adapter '${a}'`);
|
|
2310
|
-
if (
|
|
2310
|
+
if (s && (E.isFunction(s) || (s = s.get(t))))
|
|
2311
2311
|
break;
|
|
2312
|
-
|
|
2312
|
+
o[a || "#" + i] = s;
|
|
2313
2313
|
}
|
|
2314
|
-
if (!
|
|
2315
|
-
const i = Object.entries(
|
|
2314
|
+
if (!s) {
|
|
2315
|
+
const i = Object.entries(o).map(
|
|
2316
2316
|
([c, f]) => `adapter ${c} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
2317
2317
|
);
|
|
2318
2318
|
let a = n ? i.length > 1 ? `since :
|
|
@@ -2323,9 +2323,9 @@ function Ka(e, t) {
|
|
|
2323
2323
|
"ERR_NOT_SUPPORT"
|
|
2324
2324
|
);
|
|
2325
2325
|
}
|
|
2326
|
-
return
|
|
2326
|
+
return s;
|
|
2327
2327
|
}
|
|
2328
|
-
const
|
|
2328
|
+
const so = {
|
|
2329
2329
|
/**
|
|
2330
2330
|
* Resolve an adapter from a list of adapter names or functions.
|
|
2331
2331
|
* @type {Function}
|
|
@@ -2337,17 +2337,17 @@ const ss = {
|
|
|
2337
2337
|
*/
|
|
2338
2338
|
adapters: fr
|
|
2339
2339
|
};
|
|
2340
|
-
function
|
|
2340
|
+
function Rn(e) {
|
|
2341
2341
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
2342
2342
|
throw new At(null, e);
|
|
2343
2343
|
}
|
|
2344
2344
|
function Jr(e) {
|
|
2345
|
-
return
|
|
2345
|
+
return Rn(e), e.headers = fe.from(e.headers), e.data = Ln.call(e, e.transformRequest), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), so.getAdapter(e.adapter || Tt.adapter, e)(e).then(
|
|
2346
2346
|
function(r) {
|
|
2347
|
-
return
|
|
2347
|
+
return Rn(e), r.data = Ln.call(e, e.transformResponse, r), r.headers = fe.from(r.headers), r;
|
|
2348
2348
|
},
|
|
2349
2349
|
function(r) {
|
|
2350
|
-
return
|
|
2350
|
+
return Zs(r) || (Rn(e), r && r.response && (r.response.data = Ln.call(
|
|
2351
2351
|
e,
|
|
2352
2352
|
e.transformResponse,
|
|
2353
2353
|
r.response
|
|
@@ -2355,57 +2355,57 @@ function Jr(e) {
|
|
|
2355
2355
|
}
|
|
2356
2356
|
);
|
|
2357
2357
|
}
|
|
2358
|
-
const
|
|
2358
|
+
const oo = "1.13.6", cn = {};
|
|
2359
2359
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
2360
|
-
|
|
2360
|
+
cn[e] = function(r) {
|
|
2361
2361
|
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
2362
2362
|
};
|
|
2363
2363
|
});
|
|
2364
2364
|
const Qr = {};
|
|
2365
|
-
|
|
2366
|
-
function o
|
|
2367
|
-
return "[Axios v" +
|
|
2365
|
+
cn.transitional = function(t, n, r) {
|
|
2366
|
+
function s(o, i) {
|
|
2367
|
+
return "[Axios v" + oo + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
|
|
2368
2368
|
}
|
|
2369
|
-
return (
|
|
2369
|
+
return (o, i, a) => {
|
|
2370
2370
|
if (t === !1)
|
|
2371
2371
|
throw new U(
|
|
2372
|
-
|
|
2372
|
+
s(i, " has been removed" + (n ? " in " + n : "")),
|
|
2373
2373
|
U.ERR_DEPRECATED
|
|
2374
2374
|
);
|
|
2375
2375
|
return n && !Qr[i] && (Qr[i] = !0, console.warn(
|
|
2376
|
-
|
|
2376
|
+
s(
|
|
2377
2377
|
i,
|
|
2378
2378
|
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
2379
2379
|
)
|
|
2380
|
-
)), t ? t(
|
|
2380
|
+
)), t ? t(o, i, a) : !0;
|
|
2381
2381
|
};
|
|
2382
2382
|
};
|
|
2383
|
-
|
|
2383
|
+
cn.spelling = function(t) {
|
|
2384
2384
|
return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
|
|
2385
2385
|
};
|
|
2386
2386
|
function Xa(e, t, n) {
|
|
2387
2387
|
if (typeof e != "object")
|
|
2388
2388
|
throw new U("options must be an object", U.ERR_BAD_OPTION_VALUE);
|
|
2389
2389
|
const r = Object.keys(e);
|
|
2390
|
-
let
|
|
2391
|
-
for (;
|
|
2392
|
-
const
|
|
2390
|
+
let s = r.length;
|
|
2391
|
+
for (; s-- > 0; ) {
|
|
2392
|
+
const o = r[s], i = t[o];
|
|
2393
2393
|
if (i) {
|
|
2394
|
-
const a = e[
|
|
2394
|
+
const a = e[o], c = a === void 0 || i(a, o, e);
|
|
2395
2395
|
if (c !== !0)
|
|
2396
2396
|
throw new U(
|
|
2397
|
-
"option " +
|
|
2397
|
+
"option " + o + " must be " + c,
|
|
2398
2398
|
U.ERR_BAD_OPTION_VALUE
|
|
2399
2399
|
);
|
|
2400
2400
|
continue;
|
|
2401
2401
|
}
|
|
2402
2402
|
if (n !== !0)
|
|
2403
|
-
throw new U("Unknown option " +
|
|
2403
|
+
throw new U("Unknown option " + o, U.ERR_BAD_OPTION);
|
|
2404
2404
|
}
|
|
2405
2405
|
}
|
|
2406
2406
|
const Ut = {
|
|
2407
2407
|
assertOptions: Xa,
|
|
2408
|
-
validators:
|
|
2408
|
+
validators: cn
|
|
2409
2409
|
}, me = Ut.validators;
|
|
2410
2410
|
let Ye = class {
|
|
2411
2411
|
constructor(t) {
|
|
@@ -2427,12 +2427,12 @@ let Ye = class {
|
|
|
2427
2427
|
return await this._request(t, n);
|
|
2428
2428
|
} catch (r) {
|
|
2429
2429
|
if (r instanceof Error) {
|
|
2430
|
-
let
|
|
2431
|
-
Error.captureStackTrace ? Error.captureStackTrace(
|
|
2432
|
-
const
|
|
2430
|
+
let s = {};
|
|
2431
|
+
Error.captureStackTrace ? Error.captureStackTrace(s) : s = new Error();
|
|
2432
|
+
const o = s.stack ? s.stack.replace(/^.+\n/, "") : "";
|
|
2433
2433
|
try {
|
|
2434
|
-
r.stack ?
|
|
2435
|
-
` +
|
|
2434
|
+
r.stack ? o && !String(r.stack).endsWith(o.replace(/^.+\n.+\n/, "")) && (r.stack += `
|
|
2435
|
+
` + o) : r.stack = o;
|
|
2436
2436
|
} catch {
|
|
2437
2437
|
}
|
|
2438
2438
|
}
|
|
@@ -2441,7 +2441,7 @@ let Ye = class {
|
|
|
2441
2441
|
}
|
|
2442
2442
|
_request(t, n) {
|
|
2443
2443
|
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = Xe(this.defaults, n);
|
|
2444
|
-
const { transitional: r, paramsSerializer:
|
|
2444
|
+
const { transitional: r, paramsSerializer: s, headers: o } = n;
|
|
2445
2445
|
r !== void 0 && Ut.assertOptions(
|
|
2446
2446
|
r,
|
|
2447
2447
|
{
|
|
@@ -2451,10 +2451,10 @@ let Ye = class {
|
|
|
2451
2451
|
legacyInterceptorReqResOrdering: me.transitional(me.boolean)
|
|
2452
2452
|
},
|
|
2453
2453
|
!1
|
|
2454
|
-
),
|
|
2455
|
-
serialize:
|
|
2454
|
+
), s != null && (E.isFunction(s) ? n.paramsSerializer = {
|
|
2455
|
+
serialize: s
|
|
2456
2456
|
} : Ut.assertOptions(
|
|
2457
|
-
|
|
2457
|
+
s,
|
|
2458
2458
|
{
|
|
2459
2459
|
encode: me.function,
|
|
2460
2460
|
serialize: me.function
|
|
@@ -2468,10 +2468,10 @@ let Ye = class {
|
|
|
2468
2468
|
},
|
|
2469
2469
|
!0
|
|
2470
2470
|
), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
2471
|
-
let i =
|
|
2472
|
-
|
|
2473
|
-
delete
|
|
2474
|
-
}), n.headers = fe.concat(i,
|
|
2471
|
+
let i = o && E.merge(o.common, o[n.method]);
|
|
2472
|
+
o && E.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (g) => {
|
|
2473
|
+
delete o[g];
|
|
2474
|
+
}), n.headers = fe.concat(i, o);
|
|
2475
2475
|
const a = [];
|
|
2476
2476
|
let c = !0;
|
|
2477
2477
|
this.interceptors.request.forEach(function(b) {
|
|
@@ -2514,8 +2514,8 @@ let Ye = class {
|
|
|
2514
2514
|
}
|
|
2515
2515
|
getUri(t) {
|
|
2516
2516
|
t = Xe(this.defaults, t);
|
|
2517
|
-
const n =
|
|
2518
|
-
return
|
|
2517
|
+
const n = to(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
2518
|
+
return Qs(n, t.params, t.paramsSerializer);
|
|
2519
2519
|
}
|
|
2520
2520
|
};
|
|
2521
2521
|
E.forEach(["delete", "get", "head", "options"], function(t) {
|
|
@@ -2531,14 +2531,14 @@ E.forEach(["delete", "get", "head", "options"], function(t) {
|
|
|
2531
2531
|
});
|
|
2532
2532
|
E.forEach(["post", "put", "patch"], function(t) {
|
|
2533
2533
|
function n(r) {
|
|
2534
|
-
return function(
|
|
2534
|
+
return function(o, i, a) {
|
|
2535
2535
|
return this.request(
|
|
2536
2536
|
Xe(a || {}, {
|
|
2537
2537
|
method: t,
|
|
2538
2538
|
headers: r ? {
|
|
2539
2539
|
"Content-Type": "multipart/form-data"
|
|
2540
2540
|
} : {},
|
|
2541
|
-
url:
|
|
2541
|
+
url: o,
|
|
2542
2542
|
data: i
|
|
2543
2543
|
})
|
|
2544
2544
|
);
|
|
@@ -2546,31 +2546,31 @@ E.forEach(["post", "put", "patch"], function(t) {
|
|
|
2546
2546
|
}
|
|
2547
2547
|
Ye.prototype[t] = n(), Ye.prototype[t + "Form"] = n(!0);
|
|
2548
2548
|
});
|
|
2549
|
-
let Ja = class
|
|
2549
|
+
let Ja = class io {
|
|
2550
2550
|
constructor(t) {
|
|
2551
2551
|
if (typeof t != "function")
|
|
2552
2552
|
throw new TypeError("executor must be a function.");
|
|
2553
2553
|
let n;
|
|
2554
|
-
this.promise = new Promise(function(
|
|
2555
|
-
n =
|
|
2554
|
+
this.promise = new Promise(function(o) {
|
|
2555
|
+
n = o;
|
|
2556
2556
|
});
|
|
2557
2557
|
const r = this;
|
|
2558
|
-
this.promise.then((
|
|
2558
|
+
this.promise.then((s) => {
|
|
2559
2559
|
if (!r._listeners) return;
|
|
2560
|
-
let
|
|
2561
|
-
for (;
|
|
2562
|
-
r._listeners[
|
|
2560
|
+
let o = r._listeners.length;
|
|
2561
|
+
for (; o-- > 0; )
|
|
2562
|
+
r._listeners[o](s);
|
|
2563
2563
|
r._listeners = null;
|
|
2564
|
-
}), this.promise.then = (
|
|
2565
|
-
let
|
|
2564
|
+
}), this.promise.then = (s) => {
|
|
2565
|
+
let o;
|
|
2566
2566
|
const i = new Promise((a) => {
|
|
2567
|
-
r.subscribe(a),
|
|
2568
|
-
}).then(
|
|
2567
|
+
r.subscribe(a), o = a;
|
|
2568
|
+
}).then(s);
|
|
2569
2569
|
return i.cancel = function() {
|
|
2570
|
-
r.unsubscribe(
|
|
2570
|
+
r.unsubscribe(o);
|
|
2571
2571
|
}, i;
|
|
2572
|
-
}, t(function(
|
|
2573
|
-
r.reason || (r.reason = new At(
|
|
2572
|
+
}, t(function(o, i, a) {
|
|
2573
|
+
r.reason || (r.reason = new At(o, i, a), n(r.reason));
|
|
2574
2574
|
});
|
|
2575
2575
|
}
|
|
2576
2576
|
/**
|
|
@@ -2612,8 +2612,8 @@ let Ja = class as {
|
|
|
2612
2612
|
static source() {
|
|
2613
2613
|
let t;
|
|
2614
2614
|
return {
|
|
2615
|
-
token: new
|
|
2616
|
-
t =
|
|
2615
|
+
token: new io(function(s) {
|
|
2616
|
+
t = s;
|
|
2617
2617
|
}),
|
|
2618
2618
|
cancel: t
|
|
2619
2619
|
};
|
|
@@ -2627,7 +2627,7 @@ function Qa(e) {
|
|
|
2627
2627
|
function za(e) {
|
|
2628
2628
|
return E.isObject(e) && e.isAxiosError === !0;
|
|
2629
2629
|
}
|
|
2630
|
-
const
|
|
2630
|
+
const Gn = {
|
|
2631
2631
|
Continue: 100,
|
|
2632
2632
|
SwitchingProtocols: 101,
|
|
2633
2633
|
Processing: 102,
|
|
@@ -2698,22 +2698,22 @@ const qn = {
|
|
|
2698
2698
|
SslHandshakeFailed: 525,
|
|
2699
2699
|
InvalidSslCertificate: 526
|
|
2700
2700
|
};
|
|
2701
|
-
Object.entries(
|
|
2702
|
-
|
|
2701
|
+
Object.entries(Gn).forEach(([e, t]) => {
|
|
2702
|
+
Gn[t] = e;
|
|
2703
2703
|
});
|
|
2704
|
-
function
|
|
2705
|
-
const t = new Ye(e), n =
|
|
2706
|
-
return E.extend(n, Ye.prototype, t, { allOwnKeys: !0 }), E.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(
|
|
2707
|
-
return
|
|
2704
|
+
function ao(e) {
|
|
2705
|
+
const t = new Ye(e), n = $s(Ye.prototype.request, t);
|
|
2706
|
+
return E.extend(n, Ye.prototype, t, { allOwnKeys: !0 }), E.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
2707
|
+
return ao(Xe(e, s));
|
|
2708
2708
|
}, n;
|
|
2709
2709
|
}
|
|
2710
|
-
const Q =
|
|
2710
|
+
const Q = ao(Tt);
|
|
2711
2711
|
Q.Axios = Ye;
|
|
2712
2712
|
Q.CanceledError = At;
|
|
2713
2713
|
Q.CancelToken = Ja;
|
|
2714
|
-
Q.isCancel =
|
|
2715
|
-
Q.VERSION =
|
|
2716
|
-
Q.toFormData =
|
|
2714
|
+
Q.isCancel = Zs;
|
|
2715
|
+
Q.VERSION = oo;
|
|
2716
|
+
Q.toFormData = an;
|
|
2717
2717
|
Q.AxiosError = U;
|
|
2718
2718
|
Q.Cancel = Q.CanceledError;
|
|
2719
2719
|
Q.all = function(t) {
|
|
@@ -2723,30 +2723,30 @@ Q.spread = Qa;
|
|
|
2723
2723
|
Q.isAxiosError = za;
|
|
2724
2724
|
Q.mergeConfig = Xe;
|
|
2725
2725
|
Q.AxiosHeaders = fe;
|
|
2726
|
-
Q.formToJSON = (e) =>
|
|
2727
|
-
Q.getAdapter =
|
|
2728
|
-
Q.HttpStatusCode =
|
|
2726
|
+
Q.formToJSON = (e) => zs(E.isHTMLForm(e) ? new FormData(e) : e);
|
|
2727
|
+
Q.getAdapter = so.getAdapter;
|
|
2728
|
+
Q.HttpStatusCode = Gn;
|
|
2729
2729
|
Q.default = Q;
|
|
2730
2730
|
const {
|
|
2731
|
-
Axios:
|
|
2732
|
-
AxiosError:
|
|
2733
|
-
CanceledError:
|
|
2731
|
+
Axios: nf,
|
|
2732
|
+
AxiosError: rf,
|
|
2733
|
+
CanceledError: sf,
|
|
2734
2734
|
isCancel: of,
|
|
2735
|
-
CancelToken:
|
|
2736
|
-
VERSION:
|
|
2737
|
-
all:
|
|
2738
|
-
Cancel:
|
|
2739
|
-
isAxiosError:
|
|
2740
|
-
spread:
|
|
2741
|
-
toFormData:
|
|
2742
|
-
AxiosHeaders:
|
|
2735
|
+
CancelToken: af,
|
|
2736
|
+
VERSION: cf,
|
|
2737
|
+
all: lf,
|
|
2738
|
+
Cancel: uf,
|
|
2739
|
+
isAxiosError: ff,
|
|
2740
|
+
spread: df,
|
|
2741
|
+
toFormData: pf,
|
|
2742
|
+
AxiosHeaders: mf,
|
|
2743
2743
|
HttpStatusCode: zr,
|
|
2744
|
-
formToJSON:
|
|
2745
|
-
getAdapter:
|
|
2746
|
-
mergeConfig:
|
|
2744
|
+
formToJSON: _f,
|
|
2745
|
+
getAdapter: hf,
|
|
2746
|
+
mergeConfig: Ef
|
|
2747
2747
|
} = Q;
|
|
2748
2748
|
let qt = null;
|
|
2749
|
-
function
|
|
2749
|
+
function gf(e) {
|
|
2750
2750
|
if (qt !== null) {
|
|
2751
2751
|
console.warn(
|
|
2752
2752
|
"[LinID CoreLib] HTTP client has already been initialized. Re-initialization is ignored."
|
|
@@ -2762,37 +2762,37 @@ function we() {
|
|
|
2762
2762
|
);
|
|
2763
2763
|
return qt;
|
|
2764
2764
|
}
|
|
2765
|
-
const
|
|
2766
|
-
function
|
|
2767
|
-
|
|
2765
|
+
const co = /* @__PURE__ */ new Map();
|
|
2766
|
+
function bf(e) {
|
|
2767
|
+
co.set(e.instanceId, e);
|
|
2768
2768
|
}
|
|
2769
2769
|
function at(e) {
|
|
2770
|
-
const t =
|
|
2770
|
+
const t = co.get(e);
|
|
2771
2771
|
if (!t)
|
|
2772
2772
|
throw new Error(
|
|
2773
2773
|
`[LinID CoreLib] No module host configuration found for instanceId: ${e}`
|
|
2774
2774
|
);
|
|
2775
2775
|
return t;
|
|
2776
2776
|
}
|
|
2777
|
-
async function
|
|
2777
|
+
async function yf(e, t) {
|
|
2778
2778
|
const n = at(e);
|
|
2779
2779
|
return we().post(`/${n.apiEndpoint}`, t).then(({ data: r }) => r);
|
|
2780
2780
|
}
|
|
2781
|
-
async function
|
|
2781
|
+
async function Nf(e, t, n) {
|
|
2782
2782
|
const r = at(e);
|
|
2783
|
-
return we().put(`/${r.apiEndpoint}/${t}`, n).then(({ data:
|
|
2783
|
+
return we().put(`/${r.apiEndpoint}/${t}`, n).then(({ data: s }) => s);
|
|
2784
2784
|
}
|
|
2785
|
-
async function
|
|
2785
|
+
async function Of(e, t, n) {
|
|
2786
2786
|
const r = at(e);
|
|
2787
2787
|
return we().get(`/${r.apiEndpoint}`, {
|
|
2788
2788
|
params: { ...t, ...n }
|
|
2789
|
-
}).then(({ data:
|
|
2789
|
+
}).then(({ data: s }) => s);
|
|
2790
2790
|
}
|
|
2791
|
-
async function
|
|
2791
|
+
async function Sf(e, t) {
|
|
2792
2792
|
const n = at(e);
|
|
2793
2793
|
return we().get(`/${n.apiEndpoint}/${t}`).then(({ data: r }) => r);
|
|
2794
2794
|
}
|
|
2795
|
-
async function
|
|
2795
|
+
async function Tf(e, t) {
|
|
2796
2796
|
const n = at(e);
|
|
2797
2797
|
return we().delete(`/${n.apiEndpoint}/${t}`);
|
|
2798
2798
|
}
|
|
@@ -2812,13 +2812,13 @@ function ec(e, t) {
|
|
|
2812
2812
|
n[r] = ec(e[r], t[r]);
|
|
2813
2813
|
return n;
|
|
2814
2814
|
}
|
|
2815
|
-
function
|
|
2815
|
+
function Af(e) {
|
|
2816
2816
|
const t = {};
|
|
2817
2817
|
for (const [n, r] of Object.entries(e)) {
|
|
2818
|
-
const
|
|
2819
|
-
let
|
|
2820
|
-
|
|
2821
|
-
a ===
|
|
2818
|
+
const s = n.split(".");
|
|
2819
|
+
let o = t;
|
|
2820
|
+
s.forEach((i, a) => {
|
|
2821
|
+
a === s.length - 1 ? o[i] = r : (rt(o[i]) || (o[i] = {}), o = o[i]);
|
|
2822
2822
|
});
|
|
2823
2823
|
}
|
|
2824
2824
|
return t;
|
|
@@ -2829,12 +2829,12 @@ function rt(e) {
|
|
|
2829
2829
|
function tc(e, t) {
|
|
2830
2830
|
return typeof e != "object" || e === null ? e : Object.fromEntries(
|
|
2831
2831
|
Object.entries(e).map(([n, r]) => {
|
|
2832
|
-
const
|
|
2833
|
-
return [
|
|
2832
|
+
const s = t(n), o = rt(r) ? tc(r, t) : r;
|
|
2833
|
+
return [s, o];
|
|
2834
2834
|
})
|
|
2835
2835
|
);
|
|
2836
2836
|
}
|
|
2837
|
-
function
|
|
2837
|
+
function lo(e, t) {
|
|
2838
2838
|
if (e === t || typeof e == "number" && typeof t == "number" && Number.isNaN(e) && Number.isNaN(t))
|
|
2839
2839
|
return !0;
|
|
2840
2840
|
if (e == null || t == null || typeof e != "object" || typeof t != "object" || Array.isArray(e) !== Array.isArray(t))
|
|
@@ -2842,30 +2842,30 @@ function us(e, t) {
|
|
|
2842
2842
|
const n = Object.keys(e), r = Object.keys(t);
|
|
2843
2843
|
if (n.length !== r.length)
|
|
2844
2844
|
return !1;
|
|
2845
|
-
const
|
|
2845
|
+
const s = e, o = t;
|
|
2846
2846
|
return n.every(
|
|
2847
|
-
(i) => Object.prototype.hasOwnProperty.call(
|
|
2847
|
+
(i) => Object.prototype.hasOwnProperty.call(o, i) && lo(s[i], o[i])
|
|
2848
2848
|
);
|
|
2849
2849
|
}
|
|
2850
|
-
function
|
|
2850
|
+
function Yn(e, t) {
|
|
2851
2851
|
if (Array.isArray(e) && Array.isArray(t)) {
|
|
2852
2852
|
if (e.length !== t.length)
|
|
2853
2853
|
return !1;
|
|
2854
2854
|
const n = /* @__PURE__ */ new Set();
|
|
2855
2855
|
return e.every((r) => {
|
|
2856
|
-
const
|
|
2857
|
-
(
|
|
2856
|
+
const s = t.findIndex(
|
|
2857
|
+
(o, i) => !n.has(i) && Yn(r, o)
|
|
2858
2858
|
);
|
|
2859
|
-
return
|
|
2859
|
+
return s === -1 ? !1 : (n.add(s), !0);
|
|
2860
2860
|
});
|
|
2861
2861
|
}
|
|
2862
2862
|
if (rt(e) && rt(t)) {
|
|
2863
2863
|
const n = Object.keys(e), r = Object.keys(t);
|
|
2864
2864
|
return n.length !== r.length ? !1 : n.every(
|
|
2865
|
-
(
|
|
2865
|
+
(s) => Object.prototype.hasOwnProperty.call(t, s) && Yn(e[s], t[s])
|
|
2866
2866
|
);
|
|
2867
2867
|
}
|
|
2868
|
-
return
|
|
2868
|
+
return lo(e, t);
|
|
2869
2869
|
}
|
|
2870
2870
|
function Le(e, t) {
|
|
2871
2871
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
@@ -2886,20 +2886,20 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
2886
2886
|
});
|
|
2887
2887
|
}
|
|
2888
2888
|
const rc = /\{([0-9a-zA-Z]+)\}/g;
|
|
2889
|
-
function
|
|
2889
|
+
function ln(e, ...t) {
|
|
2890
2890
|
return t.length === 1 && B(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(rc, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
|
|
2891
2891
|
}
|
|
2892
|
-
const De = (e, t = !1) => t ? Symbol.for(e) : Symbol(e),
|
|
2893
|
-
let
|
|
2894
|
-
const Ge = () =>
|
|
2895
|
-
function
|
|
2892
|
+
const De = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), sc = (e, t, n) => oc({ l: e, k: t, s: n }), oc = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ne = (e) => typeof e == "number" && isFinite(e), uo = (e) => dr(e) === "[object Date]", Wt = (e) => dr(e) === "[object RegExp]", un = (e) => j(e) && Object.keys(e).length === 0, re = Object.assign, ic = Object.create, H = (e = null) => ic(e);
|
|
2893
|
+
let es;
|
|
2894
|
+
const Ge = () => es || (es = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : H());
|
|
2895
|
+
function ts(e) {
|
|
2896
2896
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/\//g, "/").replace(/=/g, "=");
|
|
2897
2897
|
}
|
|
2898
|
-
function
|
|
2898
|
+
function ns(e) {
|
|
2899
2899
|
return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
|
|
2900
2900
|
}
|
|
2901
2901
|
function ac(e) {
|
|
2902
|
-
return e = e.replace(/(\w+)\s*=\s*"([^"]*)"/g, (r,
|
|
2902
|
+
return e = e.replace(/(\w+)\s*=\s*"([^"]*)"/g, (r, s, o) => `${s}="${ns(o)}"`), e = e.replace(/(\w+)\s*=\s*'([^']*)'/g, (r, s, o) => `${s}='${ns(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")), [
|
|
2903
2903
|
// In href, src, action, formaction attributes
|
|
2904
2904
|
/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,
|
|
2905
2905
|
// In style attributes within url()
|
|
@@ -2912,37 +2912,37 @@ const cc = Object.prototype.hasOwnProperty;
|
|
|
2912
2912
|
function Ee(e, t) {
|
|
2913
2913
|
return cc.call(e, t);
|
|
2914
2914
|
}
|
|
2915
|
-
const J = Array.isArray, G = (e) => typeof e == "function", D = (e) => typeof e == "string", X = (e) => typeof e == "boolean", B = (e) => e !== null && typeof e == "object", lc = (e) => B(e) && G(e.then) && G(e.catch),
|
|
2915
|
+
const J = Array.isArray, G = (e) => typeof e == "function", D = (e) => typeof e == "string", X = (e) => typeof e == "boolean", B = (e) => e !== null && typeof e == "object", lc = (e) => B(e) && G(e.then) && G(e.catch), fo = Object.prototype.toString, dr = (e) => fo.call(e), j = (e) => dr(e) === "[object Object]", uc = (e) => e == null ? "" : J(e) || j(e) && e.toString === fo ? JSON.stringify(e, null, 2) : String(e);
|
|
2916
2916
|
function pr(e, t = "") {
|
|
2917
|
-
return e.reduce((n, r,
|
|
2917
|
+
return e.reduce((n, r, s) => s === 0 ? n + r : n + t + r, "");
|
|
2918
2918
|
}
|
|
2919
|
-
const
|
|
2919
|
+
const rs = 2;
|
|
2920
2920
|
function fc(e, t = 0, n = e.length) {
|
|
2921
2921
|
const r = e.split(/\r?\n/);
|
|
2922
|
-
let
|
|
2923
|
-
const
|
|
2922
|
+
let s = 0;
|
|
2923
|
+
const o = [];
|
|
2924
2924
|
for (let i = 0; i < r.length; i++)
|
|
2925
|
-
if (
|
|
2926
|
-
for (let a = i -
|
|
2925
|
+
if (s += r[i].length + 1, s >= t) {
|
|
2926
|
+
for (let a = i - rs; a <= i + rs || n > s; a++) {
|
|
2927
2927
|
if (a < 0 || a >= r.length)
|
|
2928
2928
|
continue;
|
|
2929
2929
|
const c = a + 1;
|
|
2930
|
-
|
|
2930
|
+
o.push(`${c}${" ".repeat(3 - String(c).length)}| ${r[a]}`);
|
|
2931
2931
|
const f = r[a].length;
|
|
2932
2932
|
if (a === i) {
|
|
2933
|
-
const u = t - (
|
|
2934
|
-
|
|
2933
|
+
const u = t - (s - f) + 1, p = Math.max(1, n > s ? f - u : n - t);
|
|
2934
|
+
o.push(" | " + " ".repeat(u) + "^".repeat(p));
|
|
2935
2935
|
} else if (a > i) {
|
|
2936
|
-
if (n >
|
|
2937
|
-
const u = Math.max(Math.min(n -
|
|
2938
|
-
|
|
2936
|
+
if (n > s) {
|
|
2937
|
+
const u = Math.max(Math.min(n - s, f), 1);
|
|
2938
|
+
o.push(" | " + "^".repeat(u));
|
|
2939
2939
|
}
|
|
2940
|
-
|
|
2940
|
+
s += f + 1;
|
|
2941
2941
|
}
|
|
2942
2942
|
}
|
|
2943
2943
|
break;
|
|
2944
2944
|
}
|
|
2945
|
-
return
|
|
2945
|
+
return o.join(`
|
|
2946
2946
|
`);
|
|
2947
2947
|
}
|
|
2948
2948
|
function dc() {
|
|
@@ -2950,15 +2950,15 @@ function dc() {
|
|
|
2950
2950
|
return {
|
|
2951
2951
|
events: e,
|
|
2952
2952
|
on(n, r) {
|
|
2953
|
-
const
|
|
2954
|
-
|
|
2953
|
+
const s = e.get(n);
|
|
2954
|
+
s && s.push(r) || e.set(n, [r]);
|
|
2955
2955
|
},
|
|
2956
2956
|
off(n, r) {
|
|
2957
|
-
const
|
|
2958
|
-
|
|
2957
|
+
const s = e.get(n);
|
|
2958
|
+
s && s.splice(s.indexOf(r) >>> 0, 1);
|
|
2959
2959
|
},
|
|
2960
2960
|
emit(n, r) {
|
|
2961
|
-
(e.get(n) || []).slice().map((
|
|
2961
|
+
(e.get(n) || []).slice().map((s) => s(r)), (e.get("*") || []).slice().map((s) => s(n, r));
|
|
2962
2962
|
}
|
|
2963
2963
|
};
|
|
2964
2964
|
}
|
|
@@ -2968,16 +2968,16 @@ function Mt(e, t) {
|
|
|
2968
2968
|
throw new Error("Invalid value");
|
|
2969
2969
|
const n = [{ src: e, des: t }];
|
|
2970
2970
|
for (; n.length; ) {
|
|
2971
|
-
const { src: r, des:
|
|
2972
|
-
Object.keys(r).forEach((
|
|
2973
|
-
|
|
2971
|
+
const { src: r, des: s } = n.pop();
|
|
2972
|
+
Object.keys(r).forEach((o) => {
|
|
2973
|
+
o !== "__proto__" && (B(r[o]) && !B(s[o]) && (s[o] = Array.isArray(r[o]) ? [] : H()), It(s[o]) || It(r[o]) ? s[o] = r[o] : n.push({ src: r[o], des: s[o] }));
|
|
2974
2974
|
});
|
|
2975
2975
|
}
|
|
2976
2976
|
}
|
|
2977
2977
|
function pc(e, t, n) {
|
|
2978
2978
|
return { line: e, column: t, offset: n };
|
|
2979
2979
|
}
|
|
2980
|
-
function
|
|
2980
|
+
function Kn(e, t, n) {
|
|
2981
2981
|
return { start: e, end: t };
|
|
2982
2982
|
}
|
|
2983
2983
|
const F = {
|
|
@@ -3024,7 +3024,7 @@ const F = {
|
|
|
3024
3024
|
[F.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
|
|
3025
3025
|
};
|
|
3026
3026
|
function ct(e, t, n = {}) {
|
|
3027
|
-
const { domain: r, messages:
|
|
3027
|
+
const { domain: r, messages: s, args: o } = n, i = process.env.NODE_ENV !== "production" ? ln((s || _c)[e] || "", ...o || []) : e, a = new SyntaxError(String(i));
|
|
3028
3028
|
return a.code = e, t && (a.location = t), a.domain = r, a;
|
|
3029
3029
|
}
|
|
3030
3030
|
function hc(e) {
|
|
@@ -3034,25 +3034,25 @@ const Ec = /<\/?[\w\s="/.':;#-\/]+>/, gc = (e) => Ec.test(e), Se = " ", bc = "\r
|
|
|
3034
3034
|
`, yc = "\u2028", Nc = "\u2029";
|
|
3035
3035
|
function Oc(e) {
|
|
3036
3036
|
const t = e;
|
|
3037
|
-
let n = 0, r = 1,
|
|
3038
|
-
const i = (h) => t[h] === bc && t[h + 1] === ie, a = (h) => t[h] === ie, c = (h) => t[h] === Nc, f = (h) => t[h] === yc, u = (h) => i(h) || a(h) || c(h) || f(h), p = () => n, _ = () => r, L = () =>
|
|
3037
|
+
let n = 0, r = 1, s = 1, o = 0;
|
|
3038
|
+
const i = (h) => t[h] === bc && t[h + 1] === ie, a = (h) => t[h] === ie, c = (h) => t[h] === Nc, f = (h) => t[h] === yc, u = (h) => i(h) || a(h) || c(h) || f(h), p = () => n, _ = () => r, L = () => s, g = () => o, b = (h) => i(h) || c(h) || f(h) ? ie : t[h], N = () => b(n), m = () => b(n + o);
|
|
3039
3039
|
function O() {
|
|
3040
|
-
return
|
|
3040
|
+
return o = 0, u(n) && (r++, s = 0), i(n) && n++, n++, s++, t[n];
|
|
3041
3041
|
}
|
|
3042
3042
|
function T() {
|
|
3043
|
-
return i(n +
|
|
3043
|
+
return i(n + o) && o++, o++, t[n + o];
|
|
3044
3044
|
}
|
|
3045
3045
|
function y() {
|
|
3046
|
-
n = 0, r = 1,
|
|
3046
|
+
n = 0, r = 1, s = 1, o = 0;
|
|
3047
3047
|
}
|
|
3048
3048
|
function v(h = 0) {
|
|
3049
|
-
|
|
3049
|
+
o = h;
|
|
3050
3050
|
}
|
|
3051
3051
|
function C() {
|
|
3052
|
-
const h = n +
|
|
3052
|
+
const h = n + o;
|
|
3053
3053
|
for (; h !== n; )
|
|
3054
3054
|
O();
|
|
3055
|
-
|
|
3055
|
+
o = 0;
|
|
3056
3056
|
}
|
|
3057
3057
|
return {
|
|
3058
3058
|
index: p,
|
|
@@ -3069,9 +3069,9 @@ function Oc(e) {
|
|
|
3069
3069
|
skipToPeek: C
|
|
3070
3070
|
};
|
|
3071
3071
|
}
|
|
3072
|
-
const Re = void 0, Sc = ".",
|
|
3072
|
+
const Re = void 0, Sc = ".", ss = "'", Tc = "tokenizer";
|
|
3073
3073
|
function Ac(e, t = {}) {
|
|
3074
|
-
const n = t.location !== !1, r = Oc(e),
|
|
3074
|
+
const n = t.location !== !1, r = Oc(e), s = () => r.index(), o = () => pc(r.line(), r.column(), r.index()), i = o(), a = s(), c = {
|
|
3075
3075
|
currentType: 13,
|
|
3076
3076
|
offset: a,
|
|
3077
3077
|
startLoc: i,
|
|
@@ -3087,7 +3087,7 @@ function Ac(e, t = {}) {
|
|
|
3087
3087
|
function p(l, d, A, ...w) {
|
|
3088
3088
|
const W = f();
|
|
3089
3089
|
if (d.column += A, d.offset += A, u) {
|
|
3090
|
-
const K = n ?
|
|
3090
|
+
const K = n ? Kn(W.startLoc, d) : null, V = ct(l, K, {
|
|
3091
3091
|
domain: Tc,
|
|
3092
3092
|
args: w
|
|
3093
3093
|
});
|
|
@@ -3095,9 +3095,9 @@ function Ac(e, t = {}) {
|
|
|
3095
3095
|
}
|
|
3096
3096
|
}
|
|
3097
3097
|
function _(l, d, A) {
|
|
3098
|
-
l.endLoc =
|
|
3098
|
+
l.endLoc = o(), l.currentType = d;
|
|
3099
3099
|
const w = { type: d };
|
|
3100
|
-
return n && (w.loc =
|
|
3100
|
+
return n && (w.loc = Kn(l.startLoc, l.endLoc)), A != null && (w.value = A), w;
|
|
3101
3101
|
}
|
|
3102
3102
|
const L = (l) => _(
|
|
3103
3103
|
l,
|
|
@@ -3105,7 +3105,7 @@ function Ac(e, t = {}) {
|
|
|
3105
3105
|
/* TokenTypes.EOF */
|
|
3106
3106
|
);
|
|
3107
3107
|
function g(l, d) {
|
|
3108
|
-
return l.currentChar() === d ? (l.next(), d) : (p(F.EXPECTED_TOKEN,
|
|
3108
|
+
return l.currentChar() === d ? (l.next(), d) : (p(F.EXPECTED_TOKEN, o(), 0, d), "");
|
|
3109
3109
|
}
|
|
3110
3110
|
function b(l) {
|
|
3111
3111
|
let d = "";
|
|
@@ -3152,7 +3152,7 @@ function Ac(e, t = {}) {
|
|
|
3152
3152
|
if (A !== 2)
|
|
3153
3153
|
return !1;
|
|
3154
3154
|
b(l);
|
|
3155
|
-
const w = l.currentPeek() ===
|
|
3155
|
+
const w = l.currentPeek() === ss;
|
|
3156
3156
|
return l.resetPeek(), w;
|
|
3157
3157
|
}
|
|
3158
3158
|
function C(l, d) {
|
|
@@ -3213,7 +3213,7 @@ function Ac(e, t = {}) {
|
|
|
3213
3213
|
d === 95 || // _
|
|
3214
3214
|
d === 36;
|
|
3215
3215
|
}
|
|
3216
|
-
function
|
|
3216
|
+
function se(l) {
|
|
3217
3217
|
return k(l, q);
|
|
3218
3218
|
}
|
|
3219
3219
|
function Ne(l) {
|
|
@@ -3282,27 +3282,27 @@ function Ac(e, t = {}) {
|
|
|
3282
3282
|
const w = l.currentChar();
|
|
3283
3283
|
if (w && w !== "}" && w !== Re && w !== Se && w !== ie && w !== " ") {
|
|
3284
3284
|
const W = Rt(l);
|
|
3285
|
-
return p(F.INVALID_TOKEN_IN_PLACEHOLDER,
|
|
3285
|
+
return p(F.INVALID_TOKEN_IN_PLACEHOLDER, o(), 0, A + W), A + W;
|
|
3286
3286
|
}
|
|
3287
|
-
return l.currentChar() === Re && p(F.UNTERMINATED_CLOSING_BRACE,
|
|
3287
|
+
return l.currentChar() === Re && p(F.UNTERMINATED_CLOSING_BRACE, o(), 0), A;
|
|
3288
3288
|
}
|
|
3289
3289
|
function Fe(l) {
|
|
3290
3290
|
N(l);
|
|
3291
3291
|
let d = "";
|
|
3292
|
-
return l.currentChar() === "-" ? (l.next(), d += `-${le(l)}`) : d += le(l), l.currentChar() === Re && p(F.UNTERMINATED_CLOSING_BRACE,
|
|
3292
|
+
return l.currentChar() === "-" ? (l.next(), d += `-${le(l)}`) : d += le(l), l.currentChar() === Re && p(F.UNTERMINATED_CLOSING_BRACE, o(), 0), d;
|
|
3293
3293
|
}
|
|
3294
3294
|
function Qe(l) {
|
|
3295
|
-
return l !==
|
|
3295
|
+
return l !== ss && l !== ie;
|
|
3296
3296
|
}
|
|
3297
3297
|
function yr(l) {
|
|
3298
3298
|
N(l), g(l, "'");
|
|
3299
3299
|
let d = "", A = "";
|
|
3300
3300
|
for (; d = k(l, Qe); )
|
|
3301
|
-
d === "\\" ? A +=
|
|
3301
|
+
d === "\\" ? A += mn(l) : A += d;
|
|
3302
3302
|
const w = l.currentChar();
|
|
3303
|
-
return w === ie || w === Re ? (p(F.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,
|
|
3303
|
+
return w === ie || w === Re ? (p(F.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, o(), 0), w === ie && (l.next(), g(l, "'")), A) : (g(l, "'"), A);
|
|
3304
3304
|
}
|
|
3305
|
-
function
|
|
3305
|
+
function mn(l) {
|
|
3306
3306
|
const d = l.currentChar();
|
|
3307
3307
|
switch (d) {
|
|
3308
3308
|
case "\\":
|
|
@@ -3313,7 +3313,7 @@ function Ac(e, t = {}) {
|
|
|
3313
3313
|
case "U":
|
|
3314
3314
|
return Lt(l, d, 6);
|
|
3315
3315
|
default:
|
|
3316
|
-
return p(F.UNKNOWN_ESCAPE_SEQUENCE,
|
|
3316
|
+
return p(F.UNKNOWN_ESCAPE_SEQUENCE, o(), 0, d), "";
|
|
3317
3317
|
}
|
|
3318
3318
|
}
|
|
3319
3319
|
function Lt(l, d, A) {
|
|
@@ -3322,30 +3322,30 @@ function Ac(e, t = {}) {
|
|
|
3322
3322
|
for (let W = 0; W < A; W++) {
|
|
3323
3323
|
const K = ge(l);
|
|
3324
3324
|
if (!K) {
|
|
3325
|
-
p(F.INVALID_UNICODE_ESCAPE_SEQUENCE,
|
|
3325
|
+
p(F.INVALID_UNICODE_ESCAPE_SEQUENCE, o(), 0, `\\${d}${w}${l.currentChar()}`);
|
|
3326
3326
|
break;
|
|
3327
3327
|
}
|
|
3328
3328
|
w += K;
|
|
3329
3329
|
}
|
|
3330
3330
|
return `\\${d}${w}`;
|
|
3331
3331
|
}
|
|
3332
|
-
function
|
|
3332
|
+
function _n(l) {
|
|
3333
3333
|
return l !== "{" && l !== "}" && l !== Se && l !== ie;
|
|
3334
3334
|
}
|
|
3335
3335
|
function Rt(l) {
|
|
3336
3336
|
N(l);
|
|
3337
3337
|
let d = "", A = "";
|
|
3338
|
-
for (; d = k(l,
|
|
3338
|
+
for (; d = k(l, _n); )
|
|
3339
3339
|
A += d;
|
|
3340
3340
|
return A;
|
|
3341
3341
|
}
|
|
3342
|
-
function
|
|
3342
|
+
function hn(l) {
|
|
3343
3343
|
let d = "", A = "";
|
|
3344
|
-
for (; d =
|
|
3344
|
+
for (; d = se(l); )
|
|
3345
3345
|
A += d;
|
|
3346
3346
|
return A;
|
|
3347
3347
|
}
|
|
3348
|
-
function
|
|
3348
|
+
function En(l) {
|
|
3349
3349
|
const d = (A) => {
|
|
3350
3350
|
const w = l.currentChar();
|
|
3351
3351
|
return w === "{" || w === "@" || w === "|" || w === "(" || w === ")" || !w || w === Se ? A : (A += w, l.next(), d(A));
|
|
@@ -3365,27 +3365,27 @@ function Ac(e, t = {}) {
|
|
|
3365
3365
|
let A = null;
|
|
3366
3366
|
switch (l.currentChar()) {
|
|
3367
3367
|
case "{":
|
|
3368
|
-
return d.braceNest >= 1 && p(F.NOT_ALLOW_NEST_PLACEHOLDER,
|
|
3368
|
+
return d.braceNest >= 1 && p(F.NOT_ALLOW_NEST_PLACEHOLDER, o(), 0), l.next(), A = _(
|
|
3369
3369
|
d,
|
|
3370
3370
|
2,
|
|
3371
3371
|
"{"
|
|
3372
3372
|
/* TokenChars.BraceLeft */
|
|
3373
3373
|
), N(l), d.braceNest++, A;
|
|
3374
3374
|
case "}":
|
|
3375
|
-
return d.braceNest > 0 && d.currentType === 2 && p(F.EMPTY_PLACEHOLDER,
|
|
3375
|
+
return d.braceNest > 0 && d.currentType === 2 && p(F.EMPTY_PLACEHOLDER, o(), 0), l.next(), A = _(
|
|
3376
3376
|
d,
|
|
3377
3377
|
3,
|
|
3378
3378
|
"}"
|
|
3379
3379
|
/* TokenChars.BraceRight */
|
|
3380
3380
|
), d.braceNest--, d.braceNest > 0 && N(l), d.inLinked && d.braceNest === 0 && (d.inLinked = !1), A;
|
|
3381
3381
|
case "@":
|
|
3382
|
-
return d.braceNest > 0 && p(F.UNTERMINATED_CLOSING_BRACE,
|
|
3382
|
+
return d.braceNest > 0 && p(F.UNTERMINATED_CLOSING_BRACE, o(), 0), A = $e(l, d) || L(d), d.braceNest = 0, A;
|
|
3383
3383
|
default: {
|
|
3384
3384
|
let W = !0, K = !0, V = !0;
|
|
3385
3385
|
if (I(l))
|
|
3386
|
-
return d.braceNest > 0 && p(F.UNTERMINATED_CLOSING_BRACE,
|
|
3386
|
+
return d.braceNest > 0 && p(F.UNTERMINATED_CLOSING_BRACE, o(), 0), A = _(d, 1, lt(l)), d.braceNest = 0, d.inLinked = !1, A;
|
|
3387
3387
|
if (d.braceNest > 0 && (d.currentType === 4 || d.currentType === 5 || d.currentType === 6))
|
|
3388
|
-
return p(F.UNTERMINATED_CLOSING_BRACE,
|
|
3388
|
+
return p(F.UNTERMINATED_CLOSING_BRACE, o(), 0), d.braceNest = 0, ft(l, d);
|
|
3389
3389
|
if (W = T(l, d))
|
|
3390
3390
|
return A = _(d, 4, Ve(l)), N(l), A;
|
|
3391
3391
|
if (K = y(l, d))
|
|
@@ -3393,7 +3393,7 @@ function Ac(e, t = {}) {
|
|
|
3393
3393
|
if (V = v(l, d))
|
|
3394
3394
|
return A = _(d, 6, yr(l)), N(l), A;
|
|
3395
3395
|
if (!W && !K && !V)
|
|
3396
|
-
return A = _(d, 12, Rt(l)), p(F.INVALID_TOKEN_IN_PLACEHOLDER,
|
|
3396
|
+
return A = _(d, 12, Rt(l)), p(F.INVALID_TOKEN_IN_PLACEHOLDER, o(), 0, A.value), N(l), A;
|
|
3397
3397
|
break;
|
|
3398
3398
|
}
|
|
3399
3399
|
}
|
|
@@ -3403,7 +3403,7 @@ function Ac(e, t = {}) {
|
|
|
3403
3403
|
const { currentType: A } = d;
|
|
3404
3404
|
let w = null;
|
|
3405
3405
|
const W = l.currentChar();
|
|
3406
|
-
switch ((A === 7 || A === 8 || A === 11 || A === 9) && (W === ie || W === Se) && p(F.INVALID_LINKED_FORMAT,
|
|
3406
|
+
switch ((A === 7 || A === 8 || A === 11 || A === 9) && (W === ie || W === Se) && p(F.INVALID_LINKED_FORMAT, o(), 0), W) {
|
|
3407
3407
|
case "@":
|
|
3408
3408
|
return l.next(), w = _(
|
|
3409
3409
|
d,
|
|
@@ -3426,7 +3426,7 @@ function Ac(e, t = {}) {
|
|
|
3426
3426
|
/* TokenChars.LinkedDelimiter */
|
|
3427
3427
|
);
|
|
3428
3428
|
default:
|
|
3429
|
-
return I(l) ? (w = _(d, 1, lt(l)), d.braceNest = 0, d.inLinked = !1, w) : C(l, d) || x(l, d) ? (N(l), $e(l, d)) : h(l, d) ? (N(l), _(d, 11,
|
|
3429
|
+
return I(l) ? (w = _(d, 1, lt(l)), d.braceNest = 0, d.inLinked = !1, w) : C(l, d) || x(l, d) ? (N(l), $e(l, d)) : h(l, d) ? (N(l), _(d, 11, hn(l))) : M(l, d) ? (N(l), W === "{" ? ut(l, d) || w : _(d, 10, En(l))) : (A === 7 && p(F.INVALID_LINKED_FORMAT, o(), 0), d.braceNest = 0, d.inLinked = !1, ft(l, d));
|
|
3430
3430
|
}
|
|
3431
3431
|
}
|
|
3432
3432
|
function ft(l, d) {
|
|
@@ -3442,7 +3442,7 @@ function Ac(e, t = {}) {
|
|
|
3442
3442
|
case "{":
|
|
3443
3443
|
return ut(l, d) || L(d);
|
|
3444
3444
|
case "}":
|
|
3445
|
-
return p(F.UNBALANCED_CLOSING_BRACE,
|
|
3445
|
+
return p(F.UNBALANCED_CLOSING_BRACE, o(), 0), l.next(), _(
|
|
3446
3446
|
d,
|
|
3447
3447
|
3,
|
|
3448
3448
|
"}"
|
|
@@ -3460,18 +3460,18 @@ function Ac(e, t = {}) {
|
|
|
3460
3460
|
}
|
|
3461
3461
|
return A;
|
|
3462
3462
|
}
|
|
3463
|
-
function
|
|
3463
|
+
function gn() {
|
|
3464
3464
|
const { currentType: l, offset: d, startLoc: A, endLoc: w } = c;
|
|
3465
|
-
return c.lastType = l, c.lastOffset = d, c.lastStartLoc = A, c.lastEndLoc = w, c.offset =
|
|
3465
|
+
return c.lastType = l, c.lastOffset = d, c.lastStartLoc = A, c.lastEndLoc = w, c.offset = s(), c.startLoc = o(), r.currentChar() === Re ? _(
|
|
3466
3466
|
c,
|
|
3467
3467
|
13
|
|
3468
3468
|
/* TokenTypes.EOF */
|
|
3469
3469
|
) : ft(r, c);
|
|
3470
3470
|
}
|
|
3471
3471
|
return {
|
|
3472
|
-
nextToken:
|
|
3473
|
-
currentOffset:
|
|
3474
|
-
currentPosition:
|
|
3472
|
+
nextToken: gn,
|
|
3473
|
+
currentOffset: s,
|
|
3474
|
+
currentPosition: o,
|
|
3475
3475
|
context: f
|
|
3476
3476
|
};
|
|
3477
3477
|
}
|
|
@@ -3497,51 +3497,51 @@ function Pc(e = {}) {
|
|
|
3497
3497
|
function r(m, O, T, y, ...v) {
|
|
3498
3498
|
const C = m.currentPosition();
|
|
3499
3499
|
if (C.offset += y, C.column += y, n) {
|
|
3500
|
-
const h = t ?
|
|
3500
|
+
const h = t ? Kn(T, C) : null, x = ct(O, h, {
|
|
3501
3501
|
domain: Lc,
|
|
3502
3502
|
args: v
|
|
3503
3503
|
});
|
|
3504
3504
|
n(x);
|
|
3505
3505
|
}
|
|
3506
3506
|
}
|
|
3507
|
-
function
|
|
3507
|
+
function s(m, O, T) {
|
|
3508
3508
|
const y = { type: m };
|
|
3509
3509
|
return t && (y.start = O, y.end = O, y.loc = { start: T, end: T }), y;
|
|
3510
3510
|
}
|
|
3511
|
-
function
|
|
3511
|
+
function o(m, O, T, y) {
|
|
3512
3512
|
t && (m.end = O, m.loc && (m.loc.end = T));
|
|
3513
3513
|
}
|
|
3514
3514
|
function i(m, O) {
|
|
3515
|
-
const T = m.context(), y =
|
|
3516
|
-
return y.value = O.replace(vc, Cc),
|
|
3515
|
+
const T = m.context(), y = s(3, T.offset, T.startLoc);
|
|
3516
|
+
return y.value = O.replace(vc, Cc), o(y, m.currentOffset(), m.currentPosition()), y;
|
|
3517
3517
|
}
|
|
3518
3518
|
function a(m, O) {
|
|
3519
|
-
const T = m.context(), { lastOffset: y, lastStartLoc: v } = T, C =
|
|
3520
|
-
return C.index = parseInt(O, 10), m.nextToken(),
|
|
3519
|
+
const T = m.context(), { lastOffset: y, lastStartLoc: v } = T, C = s(5, y, v);
|
|
3520
|
+
return C.index = parseInt(O, 10), m.nextToken(), o(C, m.currentOffset(), m.currentPosition()), C;
|
|
3521
3521
|
}
|
|
3522
3522
|
function c(m, O) {
|
|
3523
|
-
const T = m.context(), { lastOffset: y, lastStartLoc: v } = T, C =
|
|
3524
|
-
return C.key = O, m.nextToken(),
|
|
3523
|
+
const T = m.context(), { lastOffset: y, lastStartLoc: v } = T, C = s(4, y, v);
|
|
3524
|
+
return C.key = O, m.nextToken(), o(C, m.currentOffset(), m.currentPosition()), C;
|
|
3525
3525
|
}
|
|
3526
3526
|
function f(m, O) {
|
|
3527
|
-
const T = m.context(), { lastOffset: y, lastStartLoc: v } = T, C =
|
|
3528
|
-
return C.value = O.replace(Rc, Ic), m.nextToken(),
|
|
3527
|
+
const T = m.context(), { lastOffset: y, lastStartLoc: v } = T, C = s(9, y, v);
|
|
3528
|
+
return C.value = O.replace(Rc, Ic), m.nextToken(), o(C, m.currentOffset(), m.currentPosition()), C;
|
|
3529
3529
|
}
|
|
3530
3530
|
function u(m) {
|
|
3531
|
-
const O = m.nextToken(), T = m.context(), { lastOffset: y, lastStartLoc: v } = T, C =
|
|
3532
|
-
return O.type !== 11 ? (r(m, F.UNEXPECTED_EMPTY_LINKED_MODIFIER, T.lastStartLoc, 0), C.value = "",
|
|
3531
|
+
const O = m.nextToken(), T = m.context(), { lastOffset: y, lastStartLoc: v } = T, C = s(8, y, v);
|
|
3532
|
+
return O.type !== 11 ? (r(m, F.UNEXPECTED_EMPTY_LINKED_MODIFIER, T.lastStartLoc, 0), C.value = "", o(C, y, v), {
|
|
3533
3533
|
nextConsumeToken: O,
|
|
3534
3534
|
node: C
|
|
3535
|
-
}) : (O.value == null && r(m, F.UNEXPECTED_LEXICAL_ANALYSIS, T.lastStartLoc, 0, Te(O)), C.value = O.value || "",
|
|
3535
|
+
}) : (O.value == null && r(m, F.UNEXPECTED_LEXICAL_ANALYSIS, T.lastStartLoc, 0, Te(O)), C.value = O.value || "", o(C, m.currentOffset(), m.currentPosition()), {
|
|
3536
3536
|
node: C
|
|
3537
3537
|
});
|
|
3538
3538
|
}
|
|
3539
3539
|
function p(m, O) {
|
|
3540
|
-
const T = m.context(), y =
|
|
3541
|
-
return y.value = O,
|
|
3540
|
+
const T = m.context(), y = s(7, T.offset, T.startLoc);
|
|
3541
|
+
return y.value = O, o(y, m.currentOffset(), m.currentPosition()), y;
|
|
3542
3542
|
}
|
|
3543
3543
|
function _(m) {
|
|
3544
|
-
const O = m.context(), T =
|
|
3544
|
+
const O = m.context(), T = s(6, O.offset, O.startLoc);
|
|
3545
3545
|
let y = m.nextToken();
|
|
3546
3546
|
if (y.type === 8) {
|
|
3547
3547
|
const v = u(m);
|
|
@@ -3562,19 +3562,19 @@ function Pc(e = {}) {
|
|
|
3562
3562
|
break;
|
|
3563
3563
|
default: {
|
|
3564
3564
|
r(m, F.UNEXPECTED_EMPTY_LINKED_KEY, O.lastStartLoc, 0);
|
|
3565
|
-
const v = m.context(), C =
|
|
3566
|
-
return C.value = "",
|
|
3565
|
+
const v = m.context(), C = s(7, v.offset, v.startLoc);
|
|
3566
|
+
return C.value = "", o(C, v.offset, v.startLoc), T.key = C, o(T, v.offset, v.startLoc), {
|
|
3567
3567
|
nextConsumeToken: y,
|
|
3568
3568
|
node: T
|
|
3569
3569
|
};
|
|
3570
3570
|
}
|
|
3571
3571
|
}
|
|
3572
|
-
return
|
|
3572
|
+
return o(T, m.currentOffset(), m.currentPosition()), {
|
|
3573
3573
|
node: T
|
|
3574
3574
|
};
|
|
3575
3575
|
}
|
|
3576
3576
|
function L(m) {
|
|
3577
|
-
const O = m.context(), T = O.currentType === 1 ? m.currentOffset() : O.offset, y = O.currentType === 1 ? O.endLoc : O.startLoc, v =
|
|
3577
|
+
const O = m.context(), T = O.currentType === 1 ? m.currentOffset() : O.offset, y = O.currentType === 1 ? O.endLoc : O.startLoc, v = s(2, T, y);
|
|
3578
3578
|
v.items = [];
|
|
3579
3579
|
let C = null;
|
|
3580
3580
|
do {
|
|
@@ -3600,26 +3600,26 @@ function Pc(e = {}) {
|
|
|
3600
3600
|
}
|
|
3601
3601
|
} while (O.currentType !== 13 && O.currentType !== 1);
|
|
3602
3602
|
const h = O.currentType === 1 ? O.lastOffset : m.currentOffset(), x = O.currentType === 1 ? O.lastEndLoc : m.currentPosition();
|
|
3603
|
-
return
|
|
3603
|
+
return o(v, h, x), v;
|
|
3604
3604
|
}
|
|
3605
3605
|
function g(m, O, T, y) {
|
|
3606
3606
|
const v = m.context();
|
|
3607
3607
|
let C = y.items.length === 0;
|
|
3608
|
-
const h =
|
|
3608
|
+
const h = s(1, O, T);
|
|
3609
3609
|
h.cases = [], h.cases.push(y);
|
|
3610
3610
|
do {
|
|
3611
3611
|
const x = L(m);
|
|
3612
3612
|
C || (C = x.items.length === 0), h.cases.push(x);
|
|
3613
3613
|
} while (v.currentType !== 13);
|
|
3614
|
-
return C && r(m, F.MUST_HAVE_MESSAGES_IN_PLURAL, T, 0),
|
|
3614
|
+
return C && r(m, F.MUST_HAVE_MESSAGES_IN_PLURAL, T, 0), o(h, m.currentOffset(), m.currentPosition()), h;
|
|
3615
3615
|
}
|
|
3616
3616
|
function b(m) {
|
|
3617
3617
|
const O = m.context(), { offset: T, startLoc: y } = O, v = L(m);
|
|
3618
3618
|
return O.currentType === 13 ? v : g(m, T, y, v);
|
|
3619
3619
|
}
|
|
3620
3620
|
function N(m) {
|
|
3621
|
-
const O = Ac(m, re({}, e)), T = O.context(), y =
|
|
3622
|
-
return t && y.loc && (y.loc.source = m), y.body = b(O), e.onCacheKey && (y.cacheKey = e.onCacheKey(m)), T.currentType !== 13 && r(O, F.UNEXPECTED_LEXICAL_ANALYSIS, T.lastStartLoc, 0, m[T.offset] || ""),
|
|
3621
|
+
const O = Ac(m, re({}, e)), T = O.context(), y = s(0, T.offset, T.startLoc);
|
|
3622
|
+
return t && y.loc && (y.loc.source = m), y.body = b(O), e.onCacheKey && (y.cacheKey = e.onCacheKey(m)), T.currentType !== 13 && r(O, F.UNEXPECTED_LEXICAL_ANALYSIS, T.lastStartLoc, 0, m[T.offset] || ""), o(y, O.currentOffset(), O.currentPosition()), y;
|
|
3623
3623
|
}
|
|
3624
3624
|
return { parse: N };
|
|
3625
3625
|
}
|
|
@@ -3634,22 +3634,22 @@ function wc(e, t = {}) {
|
|
|
3634
3634
|
ast: e,
|
|
3635
3635
|
helpers: /* @__PURE__ */ new Set()
|
|
3636
3636
|
};
|
|
3637
|
-
return { context: () => n, helper: (
|
|
3637
|
+
return { context: () => n, helper: (o) => (n.helpers.add(o), o) };
|
|
3638
3638
|
}
|
|
3639
|
-
function
|
|
3639
|
+
function os(e, t) {
|
|
3640
3640
|
for (let n = 0; n < e.length; n++)
|
|
3641
3641
|
mr(e[n], t);
|
|
3642
3642
|
}
|
|
3643
3643
|
function mr(e, t) {
|
|
3644
3644
|
switch (e.type) {
|
|
3645
3645
|
case 1:
|
|
3646
|
-
|
|
3646
|
+
os(e.cases, t), t.helper(
|
|
3647
3647
|
"plural"
|
|
3648
3648
|
/* HelperNameMap.PLURAL */
|
|
3649
3649
|
);
|
|
3650
3650
|
break;
|
|
3651
3651
|
case 2:
|
|
3652
|
-
|
|
3652
|
+
os(e.items, t);
|
|
3653
3653
|
break;
|
|
3654
3654
|
case 6: {
|
|
3655
3655
|
mr(e.key, t), t.helper(
|
|
@@ -3692,9 +3692,9 @@ function Dc(e, t = {}) {
|
|
|
3692
3692
|
}
|
|
3693
3693
|
function kc(e) {
|
|
3694
3694
|
const t = e.body;
|
|
3695
|
-
return t.type === 2 ?
|
|
3695
|
+
return t.type === 2 ? is(t) : t.cases.forEach((n) => is(n)), e;
|
|
3696
3696
|
}
|
|
3697
|
-
function
|
|
3697
|
+
function is(e) {
|
|
3698
3698
|
if (e.items.length === 1) {
|
|
3699
3699
|
const t = e.items[0];
|
|
3700
3700
|
(t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
|
|
@@ -3771,7 +3771,7 @@ function et(e) {
|
|
|
3771
3771
|
}
|
|
3772
3772
|
const Uc = "parser";
|
|
3773
3773
|
function Mc(e, t) {
|
|
3774
|
-
const { filename: n, breakLineCode: r, needIndent:
|
|
3774
|
+
const { filename: n, breakLineCode: r, needIndent: s } = t, o = t.location !== !1, i = {
|
|
3775
3775
|
filename: n,
|
|
3776
3776
|
code: "",
|
|
3777
3777
|
column: 1,
|
|
@@ -3779,17 +3779,17 @@ function Mc(e, t) {
|
|
|
3779
3779
|
offset: 0,
|
|
3780
3780
|
map: void 0,
|
|
3781
3781
|
breakLineCode: r,
|
|
3782
|
-
needIndent:
|
|
3782
|
+
needIndent: s,
|
|
3783
3783
|
indentLevel: 0
|
|
3784
3784
|
};
|
|
3785
|
-
|
|
3785
|
+
o && e.loc && (i.source = e.loc.source);
|
|
3786
3786
|
const a = () => i;
|
|
3787
3787
|
function c(b, N) {
|
|
3788
3788
|
i.code += b;
|
|
3789
3789
|
}
|
|
3790
3790
|
function f(b, N = !0) {
|
|
3791
3791
|
const m = N ? r : "";
|
|
3792
|
-
c(
|
|
3792
|
+
c(s ? m + " ".repeat(b) : m);
|
|
3793
3793
|
}
|
|
3794
3794
|
function u(b = !0) {
|
|
3795
3795
|
const N = ++i.indentLevel;
|
|
@@ -3817,7 +3817,7 @@ function xc(e, t) {
|
|
|
3817
3817
|
e.push(`${n(
|
|
3818
3818
|
"linked"
|
|
3819
3819
|
/* HelperNameMap.LINKED */
|
|
3820
|
-
)}(`),
|
|
3820
|
+
)}(`), st(e, t.key), t.modifier ? (e.push(", "), st(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
3821
3821
|
}
|
|
3822
3822
|
function Vc(e, t) {
|
|
3823
3823
|
const { helper: n, needIndent: r } = e;
|
|
@@ -3825,8 +3825,8 @@ function Vc(e, t) {
|
|
|
3825
3825
|
"normalize"
|
|
3826
3826
|
/* HelperNameMap.NORMALIZE */
|
|
3827
3827
|
)}([`), e.indent(r());
|
|
3828
|
-
const
|
|
3829
|
-
for (let
|
|
3828
|
+
const s = t.items.length;
|
|
3829
|
+
for (let o = 0; o < s && (st(e, t.items[o]), o !== s - 1); o++)
|
|
3830
3830
|
e.push(", ");
|
|
3831
3831
|
e.deindent(r()), e.push("])");
|
|
3832
3832
|
}
|
|
@@ -3837,16 +3837,16 @@ function $c(e, t) {
|
|
|
3837
3837
|
"plural"
|
|
3838
3838
|
/* HelperNameMap.PLURAL */
|
|
3839
3839
|
)}([`), e.indent(r());
|
|
3840
|
-
const
|
|
3841
|
-
for (let
|
|
3840
|
+
const s = t.cases.length;
|
|
3841
|
+
for (let o = 0; o < s && (st(e, t.cases[o]), o !== s - 1); o++)
|
|
3842
3842
|
e.push(", ");
|
|
3843
3843
|
e.deindent(r()), e.push("])");
|
|
3844
3844
|
}
|
|
3845
3845
|
}
|
|
3846
3846
|
function Bc(e, t) {
|
|
3847
|
-
t.body ?
|
|
3847
|
+
t.body ? st(e, t.body) : e.push("null");
|
|
3848
3848
|
}
|
|
3849
|
-
function
|
|
3849
|
+
function st(e, t) {
|
|
3850
3850
|
const { helper: n } = e;
|
|
3851
3851
|
switch (t.type) {
|
|
3852
3852
|
case 0:
|
|
@@ -3902,13 +3902,13 @@ function ot(e, t) {
|
|
|
3902
3902
|
const jc = (e, t = {}) => {
|
|
3903
3903
|
const n = D(t.mode) ? t.mode : "normal", r = D(t.filename) ? t.filename : "message.intl";
|
|
3904
3904
|
t.sourceMap;
|
|
3905
|
-
const
|
|
3906
|
-
`,
|
|
3905
|
+
const s = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
3906
|
+
`, o = t.needIndent ? t.needIndent : n !== "arrow", i = e.helpers || [], a = Mc(e, {
|
|
3907
3907
|
filename: r,
|
|
3908
|
-
breakLineCode:
|
|
3909
|
-
needIndent:
|
|
3908
|
+
breakLineCode: s,
|
|
3909
|
+
needIndent: o
|
|
3910
3910
|
});
|
|
3911
|
-
a.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), a.indent(
|
|
3911
|
+
a.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), a.indent(o), i.length > 0 && (a.push(`const { ${pr(i.map((u) => `${u}: _${u}`), ", ")} } = ctx`), a.newline()), a.push("return "), st(a, e), a.deindent(o), a.push("}"), delete e.helpers;
|
|
3912
3912
|
const { code: c, map: f } = a.context();
|
|
3913
3913
|
return {
|
|
3914
3914
|
ast: e,
|
|
@@ -3918,8 +3918,8 @@ const jc = (e, t = {}) => {
|
|
|
3918
3918
|
};
|
|
3919
3919
|
};
|
|
3920
3920
|
function Hc(e, t = {}) {
|
|
3921
|
-
const n = re({}, t), r = !!n.jit,
|
|
3922
|
-
return r ? (
|
|
3921
|
+
const n = re({}, t), r = !!n.jit, s = !!n.minify, o = n.optimize == null ? !0 : n.optimize, a = Pc(n).parse(e);
|
|
3922
|
+
return r ? (o && kc(a), s && et(a), { ast: a, code: "" }) : (Dc(a, n), jc(a, n));
|
|
3923
3923
|
}
|
|
3924
3924
|
function qc() {
|
|
3925
3925
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Ge().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Ge().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
@@ -3927,40 +3927,40 @@ function qc() {
|
|
|
3927
3927
|
function be(e) {
|
|
3928
3928
|
return B(e) && _r(e) === 0 && (Ee(e, "b") || Ee(e, "body"));
|
|
3929
3929
|
}
|
|
3930
|
-
const
|
|
3930
|
+
const po = ["b", "body"];
|
|
3931
3931
|
function Wc(e) {
|
|
3932
|
-
return Me(e,
|
|
3932
|
+
return Me(e, po);
|
|
3933
3933
|
}
|
|
3934
|
-
const
|
|
3934
|
+
const mo = ["c", "cases"];
|
|
3935
3935
|
function Gc(e) {
|
|
3936
|
-
return Me(e,
|
|
3936
|
+
return Me(e, mo, []);
|
|
3937
3937
|
}
|
|
3938
|
-
const
|
|
3938
|
+
const _o = ["s", "static"];
|
|
3939
3939
|
function Yc(e) {
|
|
3940
|
-
return Me(e,
|
|
3940
|
+
return Me(e, _o);
|
|
3941
3941
|
}
|
|
3942
|
-
const
|
|
3942
|
+
const ho = ["i", "items"];
|
|
3943
3943
|
function Kc(e) {
|
|
3944
|
-
return Me(e,
|
|
3944
|
+
return Me(e, ho, []);
|
|
3945
3945
|
}
|
|
3946
|
-
const
|
|
3946
|
+
const Eo = ["t", "type"];
|
|
3947
3947
|
function _r(e) {
|
|
3948
|
-
return Me(e,
|
|
3948
|
+
return Me(e, Eo);
|
|
3949
3949
|
}
|
|
3950
|
-
const
|
|
3950
|
+
const go = ["v", "value"];
|
|
3951
3951
|
function Pt(e, t) {
|
|
3952
|
-
const n = Me(e,
|
|
3952
|
+
const n = Me(e, go);
|
|
3953
3953
|
if (n != null)
|
|
3954
3954
|
return n;
|
|
3955
3955
|
throw Et(t);
|
|
3956
3956
|
}
|
|
3957
|
-
const
|
|
3957
|
+
const bo = ["m", "modifier"];
|
|
3958
3958
|
function Xc(e) {
|
|
3959
|
-
return Me(e,
|
|
3959
|
+
return Me(e, bo);
|
|
3960
3960
|
}
|
|
3961
|
-
const
|
|
3961
|
+
const yo = ["k", "key"];
|
|
3962
3962
|
function Jc(e) {
|
|
3963
|
-
const t = Me(e,
|
|
3963
|
+
const t = Me(e, yo);
|
|
3964
3964
|
if (t)
|
|
3965
3965
|
return t;
|
|
3966
3966
|
throw Et(
|
|
@@ -3970,26 +3970,26 @@ function Jc(e) {
|
|
|
3970
3970
|
}
|
|
3971
3971
|
function Me(e, t, n) {
|
|
3972
3972
|
for (let r = 0; r < t.length; r++) {
|
|
3973
|
-
const
|
|
3974
|
-
if (Ee(e,
|
|
3975
|
-
return e[
|
|
3973
|
+
const s = t[r];
|
|
3974
|
+
if (Ee(e, s) && e[s] != null)
|
|
3975
|
+
return e[s];
|
|
3976
3976
|
}
|
|
3977
3977
|
return n;
|
|
3978
3978
|
}
|
|
3979
|
-
const
|
|
3980
|
-
...
|
|
3981
|
-
...
|
|
3982
|
-
...
|
|
3983
|
-
...
|
|
3984
|
-
...
|
|
3985
|
-
...
|
|
3986
|
-
...
|
|
3987
|
-
...
|
|
3979
|
+
const No = [
|
|
3980
|
+
...po,
|
|
3981
|
+
...mo,
|
|
3982
|
+
..._o,
|
|
3983
|
+
...ho,
|
|
3984
|
+
...yo,
|
|
3985
|
+
...bo,
|
|
3986
|
+
...go,
|
|
3987
|
+
...Eo
|
|
3988
3988
|
];
|
|
3989
3989
|
function Et(e) {
|
|
3990
3990
|
return new Error(`unhandled node type: ${e}`);
|
|
3991
3991
|
}
|
|
3992
|
-
function
|
|
3992
|
+
function vn(e) {
|
|
3993
3993
|
return (n) => Qc(n, e);
|
|
3994
3994
|
}
|
|
3995
3995
|
function Qc(e, t) {
|
|
@@ -4000,24 +4000,24 @@ function Qc(e, t) {
|
|
|
4000
4000
|
/* NodeTypes.Resource */
|
|
4001
4001
|
);
|
|
4002
4002
|
if (_r(n) === 1) {
|
|
4003
|
-
const
|
|
4004
|
-
return e.plural(
|
|
4003
|
+
const o = Gc(n);
|
|
4004
|
+
return e.plural(o.reduce((i, a) => [
|
|
4005
4005
|
...i,
|
|
4006
|
-
|
|
4006
|
+
as(e, a)
|
|
4007
4007
|
], []));
|
|
4008
4008
|
} else
|
|
4009
|
-
return
|
|
4009
|
+
return as(e, n);
|
|
4010
4010
|
}
|
|
4011
|
-
function
|
|
4011
|
+
function as(e, t) {
|
|
4012
4012
|
const n = Yc(t);
|
|
4013
4013
|
if (n != null)
|
|
4014
4014
|
return e.type === "text" ? n : e.normalize([n]);
|
|
4015
4015
|
{
|
|
4016
|
-
const r = Kc(t).reduce((
|
|
4016
|
+
const r = Kc(t).reduce((s, o) => [...s, Xn(e, o)], []);
|
|
4017
4017
|
return e.normalize(r);
|
|
4018
4018
|
}
|
|
4019
4019
|
}
|
|
4020
|
-
function
|
|
4020
|
+
function Xn(e, t) {
|
|
4021
4021
|
const n = _r(t);
|
|
4022
4022
|
switch (n) {
|
|
4023
4023
|
case 3:
|
|
@@ -4041,8 +4041,8 @@ function Yn(e, t) {
|
|
|
4041
4041
|
throw Et(n);
|
|
4042
4042
|
}
|
|
4043
4043
|
case 6: {
|
|
4044
|
-
const r = t,
|
|
4045
|
-
return e.linked(
|
|
4044
|
+
const r = t, s = Xc(r), o = Jc(r);
|
|
4045
|
+
return e.linked(Xn(e, o), s ? Xn(e, s) : void 0, e.type);
|
|
4046
4046
|
}
|
|
4047
4047
|
case 7:
|
|
4048
4048
|
return Pt(t, n);
|
|
@@ -4054,15 +4054,15 @@ function Yn(e, t) {
|
|
|
4054
4054
|
}
|
|
4055
4055
|
const zc = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
|
|
4056
4056
|
function Zc(e, t) {
|
|
4057
|
-
t && gc(e) && Le(
|
|
4057
|
+
t && gc(e) && Le(ln(zc, { source: e }));
|
|
4058
4058
|
}
|
|
4059
4059
|
const el = (e) => e;
|
|
4060
4060
|
let wt = H();
|
|
4061
4061
|
function tl(e, t = {}) {
|
|
4062
4062
|
let n = !1;
|
|
4063
4063
|
const r = t.onError || hc;
|
|
4064
|
-
return t.onError = (
|
|
4065
|
-
n = !0, r(
|
|
4064
|
+
return t.onError = (s) => {
|
|
4065
|
+
n = !0, r(s);
|
|
4066
4066
|
}, { ...Hc(e, t), detectError: n };
|
|
4067
4067
|
}
|
|
4068
4068
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -4070,31 +4070,31 @@ function nl(e, t) {
|
|
|
4070
4070
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && D(e)) {
|
|
4071
4071
|
const n = X(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
|
|
4072
4072
|
process.env.NODE_ENV !== "production" && Zc(e, n);
|
|
4073
|
-
const
|
|
4074
|
-
if (
|
|
4075
|
-
return
|
|
4073
|
+
const s = (t.onCacheKey || el)(e), o = wt[s];
|
|
4074
|
+
if (o)
|
|
4075
|
+
return o;
|
|
4076
4076
|
const { ast: i, detectError: a } = tl(e, {
|
|
4077
4077
|
...t,
|
|
4078
4078
|
location: process.env.NODE_ENV !== "production",
|
|
4079
4079
|
jit: !0
|
|
4080
|
-
}), c =
|
|
4081
|
-
return a ? c : wt[
|
|
4080
|
+
}), c = vn(i);
|
|
4081
|
+
return a ? c : wt[s] = c;
|
|
4082
4082
|
} else {
|
|
4083
4083
|
if (process.env.NODE_ENV !== "production" && !be(e))
|
|
4084
4084
|
return Le(`the message that is resolve with key '${t.key}' is not supported for jit compilation`), (() => e);
|
|
4085
4085
|
const n = e.cacheKey;
|
|
4086
4086
|
if (n) {
|
|
4087
4087
|
const r = wt[n];
|
|
4088
|
-
return r || (wt[n] =
|
|
4088
|
+
return r || (wt[n] = vn(e));
|
|
4089
4089
|
} else
|
|
4090
|
-
return
|
|
4090
|
+
return vn(e);
|
|
4091
4091
|
}
|
|
4092
4092
|
}
|
|
4093
4093
|
let gt = null;
|
|
4094
4094
|
function rl(e) {
|
|
4095
4095
|
gt = e;
|
|
4096
4096
|
}
|
|
4097
|
-
function
|
|
4097
|
+
function sl(e, t, n) {
|
|
4098
4098
|
gt && gt.emit("i18n:init", {
|
|
4099
4099
|
timestamp: Date.now(),
|
|
4100
4100
|
i18n: e,
|
|
@@ -4102,7 +4102,7 @@ function ol(e, t, n) {
|
|
|
4102
4102
|
meta: n
|
|
4103
4103
|
});
|
|
4104
4104
|
}
|
|
4105
|
-
const
|
|
4105
|
+
const ol = /* @__PURE__ */ il("function:translate");
|
|
4106
4106
|
function il(e) {
|
|
4107
4107
|
return (t) => gt && gt.emit(e, t);
|
|
4108
4108
|
}
|
|
@@ -4129,20 +4129,20 @@ const cl = {
|
|
|
4129
4129
|
[ae.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
|
|
4130
4130
|
};
|
|
4131
4131
|
function hr(e, t) {
|
|
4132
|
-
return t.locale != null ?
|
|
4132
|
+
return t.locale != null ? cs(t.locale) : cs(e.locale);
|
|
4133
4133
|
}
|
|
4134
|
-
let
|
|
4135
|
-
function
|
|
4134
|
+
let Cn;
|
|
4135
|
+
function cs(e) {
|
|
4136
4136
|
if (D(e))
|
|
4137
4137
|
return e;
|
|
4138
4138
|
if (G(e)) {
|
|
4139
|
-
if (e.resolvedOnce &&
|
|
4140
|
-
return
|
|
4139
|
+
if (e.resolvedOnce && Cn != null)
|
|
4140
|
+
return Cn;
|
|
4141
4141
|
if (e.constructor.name === "Function") {
|
|
4142
4142
|
const t = e();
|
|
4143
4143
|
if (lc(t))
|
|
4144
4144
|
throw ve(ae.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
4145
|
-
return
|
|
4145
|
+
return Cn = t;
|
|
4146
4146
|
} else
|
|
4147
4147
|
throw ve(ae.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
4148
4148
|
} else
|
|
@@ -4154,43 +4154,43 @@ function ll(e, t, n) {
|
|
|
4154
4154
|
...J(t) ? t : B(t) ? Object.keys(t) : D(t) ? [t] : [n]
|
|
4155
4155
|
])];
|
|
4156
4156
|
}
|
|
4157
|
-
function
|
|
4158
|
-
const r = D(n) ? n : Gt,
|
|
4159
|
-
|
|
4160
|
-
let
|
|
4161
|
-
if (!
|
|
4162
|
-
|
|
4157
|
+
function Jn(e, t, n) {
|
|
4158
|
+
const r = D(n) ? n : Gt, s = e;
|
|
4159
|
+
s.__localeChainCache || (s.__localeChainCache = /* @__PURE__ */ new Map());
|
|
4160
|
+
let o = s.__localeChainCache.get(r);
|
|
4161
|
+
if (!o) {
|
|
4162
|
+
o = [];
|
|
4163
4163
|
let i = [n];
|
|
4164
4164
|
for (; J(i); )
|
|
4165
|
-
i =
|
|
4165
|
+
i = ls(o, i, t);
|
|
4166
4166
|
const a = J(t) || !j(t) ? t : t.default ? t.default : null;
|
|
4167
|
-
i = D(a) ? [a] : a, J(i) &&
|
|
4167
|
+
i = D(a) ? [a] : a, J(i) && ls(o, i, !1), s.__localeChainCache.set(r, o);
|
|
4168
4168
|
}
|
|
4169
|
-
return
|
|
4169
|
+
return o;
|
|
4170
4170
|
}
|
|
4171
|
-
function
|
|
4171
|
+
function ls(e, t, n) {
|
|
4172
4172
|
let r = !0;
|
|
4173
|
-
for (let
|
|
4174
|
-
const
|
|
4175
|
-
D(
|
|
4173
|
+
for (let s = 0; s < t.length && X(r); s++) {
|
|
4174
|
+
const o = t[s];
|
|
4175
|
+
D(o) && (r = ul(e, t[s], n));
|
|
4176
4176
|
}
|
|
4177
4177
|
return r;
|
|
4178
4178
|
}
|
|
4179
4179
|
function ul(e, t, n) {
|
|
4180
4180
|
let r;
|
|
4181
|
-
const
|
|
4181
|
+
const s = t.split("-");
|
|
4182
4182
|
do {
|
|
4183
|
-
const
|
|
4184
|
-
r = fl(e,
|
|
4185
|
-
} while (
|
|
4183
|
+
const o = s.join("-");
|
|
4184
|
+
r = fl(e, o, n), s.splice(-1, 1);
|
|
4185
|
+
} while (s.length && r === !0);
|
|
4186
4186
|
return r;
|
|
4187
4187
|
}
|
|
4188
4188
|
function fl(e, t, n) {
|
|
4189
4189
|
let r = !1;
|
|
4190
4190
|
if (!e.includes(t) && (r = !0, t)) {
|
|
4191
4191
|
r = t[t.length - 1] !== "!";
|
|
4192
|
-
const
|
|
4193
|
-
e.push(
|
|
4192
|
+
const s = t.replace(/!/g, "");
|
|
4193
|
+
e.push(s), (J(n) || j(n)) && n[s] && (r = n[s]);
|
|
4194
4194
|
}
|
|
4195
4195
|
return r;
|
|
4196
4196
|
}
|
|
@@ -4406,7 +4406,7 @@ function hl(e) {
|
|
|
4406
4406
|
}
|
|
4407
4407
|
function El(e) {
|
|
4408
4408
|
const t = [];
|
|
4409
|
-
let n = -1, r = 0,
|
|
4409
|
+
let n = -1, r = 0, s = 0, o, i, a, c, f, u, p;
|
|
4410
4410
|
const _ = [];
|
|
4411
4411
|
_[
|
|
4412
4412
|
0
|
|
@@ -4425,18 +4425,18 @@ function El(e) {
|
|
|
4425
4425
|
_[
|
|
4426
4426
|
0
|
|
4427
4427
|
/* Actions.APPEND */
|
|
4428
|
-
](),
|
|
4428
|
+
](), s++;
|
|
4429
4429
|
}, _[
|
|
4430
4430
|
3
|
|
4431
4431
|
/* Actions.PUSH_SUB_PATH */
|
|
4432
4432
|
] = () => {
|
|
4433
|
-
if (
|
|
4434
|
-
|
|
4433
|
+
if (s > 0)
|
|
4434
|
+
s--, r = 4, _[
|
|
4435
4435
|
0
|
|
4436
4436
|
/* Actions.APPEND */
|
|
4437
4437
|
]();
|
|
4438
4438
|
else {
|
|
4439
|
-
if (
|
|
4439
|
+
if (s = 0, i === void 0 || (i = hl(i), i === !1))
|
|
4440
4440
|
return !1;
|
|
4441
4441
|
_[
|
|
4442
4442
|
1
|
|
@@ -4453,35 +4453,35 @@ function El(e) {
|
|
|
4453
4453
|
](), !0;
|
|
4454
4454
|
}
|
|
4455
4455
|
for (; r !== null; )
|
|
4456
|
-
if (n++,
|
|
4457
|
-
if (c = _l(
|
|
4456
|
+
if (n++, o = e[n], !(o === "\\" && L())) {
|
|
4457
|
+
if (c = _l(o), p = xe[r], f = p[c] || p.l || 8, f === 8 || (r = f[0], f[1] !== void 0 && (u = _[f[1]], u && (a = o, u() === !1))))
|
|
4458
4458
|
return;
|
|
4459
4459
|
if (r === 7)
|
|
4460
4460
|
return t;
|
|
4461
4461
|
}
|
|
4462
4462
|
}
|
|
4463
|
-
const
|
|
4463
|
+
const us = /* @__PURE__ */ new Map();
|
|
4464
4464
|
function gl(e, t) {
|
|
4465
4465
|
return B(e) ? e[t] : null;
|
|
4466
4466
|
}
|
|
4467
4467
|
function bl(e, t) {
|
|
4468
4468
|
if (!B(e))
|
|
4469
4469
|
return null;
|
|
4470
|
-
let n =
|
|
4471
|
-
if (n || (n = El(t), n &&
|
|
4470
|
+
let n = us.get(t);
|
|
4471
|
+
if (n || (n = El(t), n && us.set(t, n)), !n)
|
|
4472
4472
|
return null;
|
|
4473
4473
|
const r = n.length;
|
|
4474
|
-
let
|
|
4475
|
-
for (;
|
|
4476
|
-
const i = n[
|
|
4477
|
-
if (
|
|
4474
|
+
let s = e, o = 0;
|
|
4475
|
+
for (; o < r; ) {
|
|
4476
|
+
const i = n[o];
|
|
4477
|
+
if (No.includes(i) && be(s) || !B(s) || !Ee(s, i))
|
|
4478
4478
|
return null;
|
|
4479
|
-
const a =
|
|
4480
|
-
if (a === void 0 || G(
|
|
4479
|
+
const a = s[i];
|
|
4480
|
+
if (a === void 0 || G(s))
|
|
4481
4481
|
return null;
|
|
4482
|
-
|
|
4482
|
+
s = a, o++;
|
|
4483
4483
|
}
|
|
4484
|
-
return
|
|
4484
|
+
return s;
|
|
4485
4485
|
}
|
|
4486
4486
|
const te = {
|
|
4487
4487
|
NOT_FOUND_KEY: 1,
|
|
@@ -4505,47 +4505,47 @@ const te = {
|
|
|
4505
4505
|
[te.INVALID_DATE_ARGUMENT]: "Invalid argument for datetime formatting: expected a Date, number, or ISO string but received '{value}'."
|
|
4506
4506
|
};
|
|
4507
4507
|
function Ie(e, ...t) {
|
|
4508
|
-
return
|
|
4508
|
+
return ln(yl[e], ...t);
|
|
4509
4509
|
}
|
|
4510
|
-
const Nl = "11.3.0",
|
|
4510
|
+
const Nl = "11.3.0", fn = -1, Gt = "en-US", ot = "", fs = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
4511
4511
|
function Ol() {
|
|
4512
4512
|
return {
|
|
4513
4513
|
upper: (e, t) => t === "text" && D(e) ? e.toUpperCase() : t === "vnode" && B(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
4514
4514
|
lower: (e, t) => t === "text" && D(e) ? e.toLowerCase() : t === "vnode" && B(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
4515
|
-
capitalize: (e, t) => t === "text" && D(e) ?
|
|
4515
|
+
capitalize: (e, t) => t === "text" && D(e) ? fs(e) : t === "vnode" && B(e) && "__v_isVNode" in e ? fs(e.children) : e
|
|
4516
4516
|
};
|
|
4517
4517
|
}
|
|
4518
|
-
let
|
|
4518
|
+
let Oo;
|
|
4519
4519
|
function Sl(e) {
|
|
4520
|
-
|
|
4520
|
+
Oo = e;
|
|
4521
4521
|
}
|
|
4522
|
-
let
|
|
4522
|
+
let So;
|
|
4523
4523
|
function Tl(e) {
|
|
4524
|
-
|
|
4524
|
+
So = e;
|
|
4525
4525
|
}
|
|
4526
|
-
let
|
|
4526
|
+
let To;
|
|
4527
4527
|
function Al(e) {
|
|
4528
|
-
|
|
4528
|
+
To = e;
|
|
4529
4529
|
}
|
|
4530
|
-
let
|
|
4530
|
+
let Ao = null;
|
|
4531
4531
|
const Ll = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
4532
|
-
|
|
4533
|
-
}, Rl = /* @__NO_SIDE_EFFECTS__ */ () =>
|
|
4534
|
-
let
|
|
4535
|
-
const
|
|
4536
|
-
|
|
4537
|
-
}, vl = () =>
|
|
4538
|
-
let
|
|
4532
|
+
Ao = e;
|
|
4533
|
+
}, Rl = /* @__NO_SIDE_EFFECTS__ */ () => Ao;
|
|
4534
|
+
let Lo = null;
|
|
4535
|
+
const ds = (e) => {
|
|
4536
|
+
Lo = e;
|
|
4537
|
+
}, vl = () => Lo;
|
|
4538
|
+
let ps = 0;
|
|
4539
4539
|
function Cl(e = {}) {
|
|
4540
|
-
const t = G(e.onWarn) ? e.onWarn : Le, n = D(e.version) ? e.version : Nl, r = D(e.locale) || G(e.locale) ? e.locale : Gt,
|
|
4540
|
+
const t = G(e.onWarn) ? e.onWarn : Le, n = D(e.version) ? e.version : Nl, r = D(e.locale) || G(e.locale) ? e.locale : Gt, s = G(r) ? Gt : r, o = J(e.fallbackLocale) || j(e.fallbackLocale) || D(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s, i = j(e.messages) ? e.messages : In(s), a = j(e.datetimeFormats) ? e.datetimeFormats : In(s), c = j(e.numberFormats) ? e.numberFormats : In(s), f = re(H(), e.modifiers, Ol()), u = e.pluralRules || H(), p = G(e.missing) ? e.missing : null, _ = X(e.missingWarn) || Wt(e.missingWarn) ? e.missingWarn : !0, L = X(e.fallbackWarn) || Wt(e.fallbackWarn) ? e.fallbackWarn : !0, g = !!e.fallbackFormat, b = !!e.unresolving, N = G(e.postTranslation) ? e.postTranslation : null, m = j(e.processor) ? e.processor : null, O = X(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, T = !!e.escapeParameter, y = G(e.messageCompiler) ? e.messageCompiler : Oo;
|
|
4541
4541
|
process.env.NODE_ENV !== "production" && G(e.messageCompiler) && nc(Ie(te.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
4542
|
-
const v = G(e.messageResolver) ? e.messageResolver :
|
|
4543
|
-
|
|
4542
|
+
const v = G(e.messageResolver) ? e.messageResolver : So || gl, C = G(e.localeFallbacker) ? e.localeFallbacker : To || ll, h = B(e.fallbackContext) ? e.fallbackContext : void 0, x = e, M = B(x.__datetimeFormatters) ? x.__datetimeFormatters : /* @__PURE__ */ new Map(), I = B(x.__numberFormatters) ? x.__numberFormatters : /* @__PURE__ */ new Map(), P = B(x.__meta) ? x.__meta : {};
|
|
4543
|
+
ps++;
|
|
4544
4544
|
const k = {
|
|
4545
4545
|
version: n,
|
|
4546
|
-
cid:
|
|
4546
|
+
cid: ps,
|
|
4547
4547
|
locale: r,
|
|
4548
|
-
fallbackLocale:
|
|
4548
|
+
fallbackLocale: o,
|
|
4549
4549
|
messages: i,
|
|
4550
4550
|
modifiers: f,
|
|
4551
4551
|
pluralRules: u,
|
|
@@ -4565,37 +4565,37 @@ function Cl(e = {}) {
|
|
|
4565
4565
|
onWarn: t,
|
|
4566
4566
|
__meta: P
|
|
4567
4567
|
};
|
|
4568
|
-
return k.datetimeFormats = a, k.numberFormats = c, k.__datetimeFormatters = M, 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__) &&
|
|
4568
|
+
return k.datetimeFormats = a, k.numberFormats = c, k.__datetimeFormatters = M, 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__) && sl(k, n, P), k;
|
|
4569
4569
|
}
|
|
4570
|
-
const
|
|
4571
|
-
function
|
|
4570
|
+
const In = (e) => ({ [e]: H() });
|
|
4571
|
+
function dn(e, t) {
|
|
4572
4572
|
return e instanceof RegExp ? e.test(t) : e;
|
|
4573
4573
|
}
|
|
4574
|
-
function
|
|
4574
|
+
function Ro(e, t) {
|
|
4575
4575
|
return e instanceof RegExp ? e.test(t) : e;
|
|
4576
4576
|
}
|
|
4577
|
-
function Er(e, t, n, r,
|
|
4578
|
-
const { missing:
|
|
4577
|
+
function Er(e, t, n, r, s) {
|
|
4578
|
+
const { missing: o, onWarn: i } = e;
|
|
4579
4579
|
if (process.env.NODE_ENV !== "production") {
|
|
4580
4580
|
const a = e.__v_emitter;
|
|
4581
4581
|
a && a.emit("missing", {
|
|
4582
4582
|
locale: n,
|
|
4583
4583
|
key: t,
|
|
4584
|
-
type:
|
|
4585
|
-
groupId: `${
|
|
4584
|
+
type: s,
|
|
4585
|
+
groupId: `${s}:${t}`
|
|
4586
4586
|
});
|
|
4587
4587
|
}
|
|
4588
|
-
if (
|
|
4589
|
-
const a =
|
|
4588
|
+
if (o !== null) {
|
|
4589
|
+
const a = o(e, n, t, s);
|
|
4590
4590
|
return D(a) ? a : t;
|
|
4591
4591
|
} else
|
|
4592
|
-
return process.env.NODE_ENV !== "production" &&
|
|
4592
|
+
return process.env.NODE_ENV !== "production" && Ro(r, t) && i(Ie(te.NOT_FOUND_KEY, { key: t, locale: n })), t;
|
|
4593
4593
|
}
|
|
4594
4594
|
function pt(e, t, n) {
|
|
4595
4595
|
const r = e;
|
|
4596
4596
|
r.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
4597
4597
|
}
|
|
4598
|
-
function
|
|
4598
|
+
function vo(e, t) {
|
|
4599
4599
|
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
4600
4600
|
}
|
|
4601
4601
|
function Il(e, t) {
|
|
@@ -4603,26 +4603,26 @@ function Il(e, t) {
|
|
|
4603
4603
|
if (n === -1)
|
|
4604
4604
|
return !1;
|
|
4605
4605
|
for (let r = n + 1; r < t.length; r++)
|
|
4606
|
-
if (
|
|
4606
|
+
if (vo(e, t[r]))
|
|
4607
4607
|
return !0;
|
|
4608
4608
|
return !1;
|
|
4609
4609
|
}
|
|
4610
|
-
const
|
|
4611
|
-
dateTimeFormat:
|
|
4612
|
-
numberFormat:
|
|
4610
|
+
const ms = typeof Intl < "u", Co = {
|
|
4611
|
+
dateTimeFormat: ms && typeof Intl.DateTimeFormat < "u",
|
|
4612
|
+
numberFormat: ms && typeof Intl.NumberFormat < "u"
|
|
4613
4613
|
};
|
|
4614
|
-
function
|
|
4615
|
-
const { datetimeFormats: n, unresolving: r, fallbackLocale:
|
|
4616
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
4617
|
-
return
|
|
4618
|
-
if (!D(t[0]) && !
|
|
4619
|
-
return process.env.NODE_ENV !== "production" &&
|
|
4614
|
+
function _s(e, ...t) {
|
|
4615
|
+
const { datetimeFormats: n, unresolving: r, fallbackLocale: s, onWarn: o, localeFallbacker: i } = e, { __datetimeFormatters: a } = e;
|
|
4616
|
+
if (process.env.NODE_ENV !== "production" && !Co.dateTimeFormat)
|
|
4617
|
+
return o(Ie(te.CANNOT_FORMAT_DATE)), ot;
|
|
4618
|
+
if (!D(t[0]) && !uo(t[0]) && !ne(t[0]))
|
|
4619
|
+
return process.env.NODE_ENV !== "production" && o(Ie(te.INVALID_DATE_ARGUMENT, {
|
|
4620
4620
|
value: String(t[0])
|
|
4621
|
-
})),
|
|
4622
|
-
const [c, f, u, p] =
|
|
4621
|
+
})), ot;
|
|
4622
|
+
const [c, f, u, p] = Qn(...t), _ = X(u.missingWarn) ? u.missingWarn : e.missingWarn, L = X(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn, g = !!u.part, b = hr(e, u), N = i(
|
|
4623
4623
|
e,
|
|
4624
4624
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
4625
|
-
|
|
4625
|
+
s,
|
|
4626
4626
|
b
|
|
4627
4627
|
);
|
|
4628
4628
|
if (!D(c) || c === "")
|
|
@@ -4630,7 +4630,7 @@ function ho(e, ...t) {
|
|
|
4630
4630
|
let m = {}, O, T = null, y = b, v = null;
|
|
4631
4631
|
const C = "datetime format";
|
|
4632
4632
|
for (let M = 0; M < N.length; M++) {
|
|
4633
|
-
if (O = v = N[M], process.env.NODE_ENV !== "production" && b !== O &&
|
|
4633
|
+
if (O = v = N[M], process.env.NODE_ENV !== "production" && b !== O && dn(L, c) && o(Ie(te.FALLBACK_TO_DATE_FORMAT, {
|
|
4634
4634
|
key: c,
|
|
4635
4635
|
target: O
|
|
4636
4636
|
})), process.env.NODE_ENV !== "production" && b !== O) {
|
|
@@ -4648,13 +4648,13 @@ function ho(e, ...t) {
|
|
|
4648
4648
|
Er(e, c, O, _, C), y = v;
|
|
4649
4649
|
}
|
|
4650
4650
|
if (!j(T) || !D(O))
|
|
4651
|
-
return r ?
|
|
4651
|
+
return r ? fn : c;
|
|
4652
4652
|
let h = `${O}__${c}`;
|
|
4653
|
-
|
|
4653
|
+
un(p) || (h = `${h}__${JSON.stringify(p)}`);
|
|
4654
4654
|
let x = a.get(h);
|
|
4655
4655
|
return x || (x = new Intl.DateTimeFormat(O, re({}, T, p)), a.set(h, x)), g ? x.formatToParts(f) : x.format(f);
|
|
4656
4656
|
}
|
|
4657
|
-
const
|
|
4657
|
+
const Io = [
|
|
4658
4658
|
"localeMatcher",
|
|
4659
4659
|
"weekday",
|
|
4660
4660
|
"era",
|
|
@@ -4676,8 +4676,8 @@ const Is = [
|
|
|
4676
4676
|
"hourCycle",
|
|
4677
4677
|
"fractionalSecondDigits"
|
|
4678
4678
|
];
|
|
4679
|
-
function
|
|
4680
|
-
const [t, n, r,
|
|
4679
|
+
function Qn(...e) {
|
|
4680
|
+
const [t, n, r, s] = e, o = H();
|
|
4681
4681
|
let i = H(), a;
|
|
4682
4682
|
if (D(t)) {
|
|
4683
4683
|
const c = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
@@ -4690,7 +4690,7 @@ function Xn(...e) {
|
|
|
4690
4690
|
} catch {
|
|
4691
4691
|
throw ve(ae.INVALID_ISO_DATE_ARGUMENT);
|
|
4692
4692
|
}
|
|
4693
|
-
} else if (
|
|
4693
|
+
} else if (uo(t)) {
|
|
4694
4694
|
if (isNaN(t.getTime()))
|
|
4695
4695
|
throw ve(ae.INVALID_DATE_ARGUMENT);
|
|
4696
4696
|
a = t;
|
|
@@ -4698,29 +4698,29 @@ function Xn(...e) {
|
|
|
4698
4698
|
a = t;
|
|
4699
4699
|
else
|
|
4700
4700
|
throw ve(ae.INVALID_ARGUMENT);
|
|
4701
|
-
return D(n) ?
|
|
4702
|
-
|
|
4703
|
-
}), D(r) ?
|
|
4701
|
+
return D(n) ? o.key = n : j(n) && Object.keys(n).forEach((c) => {
|
|
4702
|
+
Io.includes(c) ? i[c] = n[c] : o[c] = n[c];
|
|
4703
|
+
}), D(r) ? o.locale = r : j(r) && (i = r), j(s) && (i = s), [o.key || "", a, o, i];
|
|
4704
4704
|
}
|
|
4705
|
-
function
|
|
4705
|
+
function hs(e, t, n) {
|
|
4706
4706
|
const r = e;
|
|
4707
|
-
for (const
|
|
4708
|
-
const
|
|
4709
|
-
r.__datetimeFormatters.has(
|
|
4707
|
+
for (const s in n) {
|
|
4708
|
+
const o = `${t}__${s}`;
|
|
4709
|
+
r.__datetimeFormatters.has(o) && r.__datetimeFormatters.delete(o);
|
|
4710
4710
|
}
|
|
4711
4711
|
}
|
|
4712
|
-
function
|
|
4713
|
-
const { numberFormats: n, unresolving: r, fallbackLocale:
|
|
4714
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
4715
|
-
return
|
|
4712
|
+
function Es(e, ...t) {
|
|
4713
|
+
const { numberFormats: n, unresolving: r, fallbackLocale: s, onWarn: o, localeFallbacker: i } = e, { __numberFormatters: a } = e;
|
|
4714
|
+
if (process.env.NODE_ENV !== "production" && !Co.numberFormat)
|
|
4715
|
+
return o(Ie(te.CANNOT_FORMAT_NUMBER)), ot;
|
|
4716
4716
|
if (!ne(t[0]))
|
|
4717
|
-
return process.env.NODE_ENV !== "production" &&
|
|
4717
|
+
return process.env.NODE_ENV !== "production" && o(Ie(te.INVALID_NUMBER_ARGUMENT, {
|
|
4718
4718
|
value: String(t[0])
|
|
4719
|
-
})),
|
|
4720
|
-
const [c, f, u, p] =
|
|
4719
|
+
})), ot;
|
|
4720
|
+
const [c, f, u, p] = zn(...t), _ = X(u.missingWarn) ? u.missingWarn : e.missingWarn, L = X(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn, g = !!u.part, b = hr(e, u), N = i(
|
|
4721
4721
|
e,
|
|
4722
4722
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
4723
|
-
|
|
4723
|
+
s,
|
|
4724
4724
|
b
|
|
4725
4725
|
);
|
|
4726
4726
|
if (!D(c) || c === "")
|
|
@@ -4728,7 +4728,7 @@ function go(e, ...t) {
|
|
|
4728
4728
|
let m = {}, O, T = null, y = b, v = null;
|
|
4729
4729
|
const C = "number format";
|
|
4730
4730
|
for (let M = 0; M < N.length; M++) {
|
|
4731
|
-
if (O = v = N[M], process.env.NODE_ENV !== "production" && b !== O &&
|
|
4731
|
+
if (O = v = N[M], process.env.NODE_ENV !== "production" && b !== O && dn(L, c) && o(Ie(te.FALLBACK_TO_NUMBER_FORMAT, {
|
|
4732
4732
|
key: c,
|
|
4733
4733
|
target: O
|
|
4734
4734
|
})), process.env.NODE_ENV !== "production" && b !== O) {
|
|
@@ -4746,13 +4746,13 @@ function go(e, ...t) {
|
|
|
4746
4746
|
Er(e, c, O, _, C), y = v;
|
|
4747
4747
|
}
|
|
4748
4748
|
if (!j(T) || !D(O))
|
|
4749
|
-
return r ?
|
|
4749
|
+
return r ? fn : c;
|
|
4750
4750
|
let h = `${O}__${c}`;
|
|
4751
|
-
|
|
4751
|
+
un(p) || (h = `${h}__${JSON.stringify(p)}`);
|
|
4752
4752
|
let x = a.get(h);
|
|
4753
4753
|
return x || (x = new Intl.NumberFormat(O, re({}, T, p)), a.set(h, x)), g ? x.formatToParts(f) : x.format(f);
|
|
4754
4754
|
}
|
|
4755
|
-
const
|
|
4755
|
+
const Po = [
|
|
4756
4756
|
"localeMatcher",
|
|
4757
4757
|
"style",
|
|
4758
4758
|
"currency",
|
|
@@ -4774,25 +4774,25 @@ const Ps = [
|
|
|
4774
4774
|
"roundingIncrement",
|
|
4775
4775
|
"trailingZeroDisplay"
|
|
4776
4776
|
];
|
|
4777
|
-
function
|
|
4778
|
-
const [t, n, r,
|
|
4777
|
+
function zn(...e) {
|
|
4778
|
+
const [t, n, r, s] = e, o = H();
|
|
4779
4779
|
let i = H();
|
|
4780
4780
|
if (!ne(t))
|
|
4781
4781
|
throw ve(ae.INVALID_ARGUMENT);
|
|
4782
4782
|
const a = t;
|
|
4783
|
-
return D(n) ?
|
|
4784
|
-
|
|
4785
|
-
}), D(r) ?
|
|
4783
|
+
return D(n) ? o.key = n : j(n) && Object.keys(n).forEach((c) => {
|
|
4784
|
+
Po.includes(c) ? i[c] = n[c] : o[c] = n[c];
|
|
4785
|
+
}), D(r) ? o.locale = r : j(r) && (i = r), j(s) && (i = s), [o.key || "", a, o, i];
|
|
4786
4786
|
}
|
|
4787
|
-
function
|
|
4787
|
+
function gs(e, t, n) {
|
|
4788
4788
|
const r = e;
|
|
4789
|
-
for (const
|
|
4790
|
-
const
|
|
4791
|
-
r.__numberFormatters.has(
|
|
4789
|
+
for (const s in n) {
|
|
4790
|
+
const o = `${t}__${s}`;
|
|
4791
|
+
r.__numberFormatters.has(o) && r.__numberFormatters.delete(o);
|
|
4792
4792
|
}
|
|
4793
4793
|
}
|
|
4794
4794
|
const Pl = (e) => e, wl = (e) => "", Dl = "text", kl = (e) => e.length === 0 ? "" : pr(e), Fl = uc;
|
|
4795
|
-
function
|
|
4795
|
+
function Pn(e, t) {
|
|
4796
4796
|
return e = Math.abs(e), t === 2 ? e === 1 ? 0 : 1 : Math.min(e, 2);
|
|
4797
4797
|
}
|
|
4798
4798
|
function Ul(e) {
|
|
@@ -4800,7 +4800,7 @@ function Ul(e) {
|
|
|
4800
4800
|
return ne(e.named?.count) ? e.named.count : ne(e.named?.n) ? e.named.n : t;
|
|
4801
4801
|
}
|
|
4802
4802
|
function Ml(e = {}) {
|
|
4803
|
-
const t = e.locale, n = Ul(e), r = D(t) && G(e.pluralRules?.[t]) ? e.pluralRules[t] :
|
|
4803
|
+
const t = e.locale, n = Ul(e), r = D(t) && G(e.pluralRules?.[t]) ? e.pluralRules[t] : Pn, s = r === Pn ? void 0 : Pn, o = (m) => m[r(n, m.length, s)], i = e.list || [], a = (m) => i[m], c = e.named || H();
|
|
4804
4804
|
ne(e.pluralIndex) && (c.count ||= e.pluralIndex, c.n ||= e.pluralIndex);
|
|
4805
4805
|
const f = (m) => c[m];
|
|
4806
4806
|
function u(m, O) {
|
|
@@ -4810,7 +4810,7 @@ function Ml(e = {}) {
|
|
|
4810
4810
|
const p = (m) => e.modifiers ? e.modifiers[m] : Pl, _ = G(e.processor?.normalize) ? e.processor.normalize : kl, L = G(e.processor?.interpolate) ? e.processor.interpolate : Fl, g = D(e.processor?.type) ? e.processor.type : Dl, N = {
|
|
4811
4811
|
list: a,
|
|
4812
4812
|
named: f,
|
|
4813
|
-
plural:
|
|
4813
|
+
plural: o,
|
|
4814
4814
|
linked: (m, ...O) => {
|
|
4815
4815
|
const [T, y] = O;
|
|
4816
4816
|
let v = "text", C = "";
|
|
@@ -4829,23 +4829,23 @@ function Ml(e = {}) {
|
|
|
4829
4829
|
};
|
|
4830
4830
|
return N;
|
|
4831
4831
|
}
|
|
4832
|
-
const
|
|
4833
|
-
function
|
|
4834
|
-
const { fallbackFormat: n, postTranslation: r, unresolving:
|
|
4832
|
+
const bs = () => "", he = (e) => G(e);
|
|
4833
|
+
function ys(e, ...t) {
|
|
4834
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: s, messageCompiler: o, fallbackLocale: i, messages: a } = e, [c, f] = Zn(...t), u = X(f.missingWarn) ? f.missingWarn : e.missingWarn, p = X(f.fallbackWarn) ? f.fallbackWarn : e.fallbackWarn, _ = X(f.escapeParameter) ? f.escapeParameter : e.escapeParameter, L = !!f.resolvedMessage, g = D(f.default) || X(f.default) ? X(f.default) ? o ? c : () => c : f.default : n ? o ? c : () => c : null, b = n || g != null && (D(g) || G(g)), N = hr(e, f);
|
|
4835
4835
|
_ && xl(f);
|
|
4836
4836
|
let [m, O, T] = L ? [
|
|
4837
4837
|
c,
|
|
4838
4838
|
N,
|
|
4839
4839
|
a[N] || H()
|
|
4840
|
-
] :
|
|
4840
|
+
] : wo(e, c, N, i, p, u), y = m, v = c;
|
|
4841
4841
|
if (!L && !(D(y) || be(y) || he(y)) && b && (y = g, v = y), !L && (!(D(y) || be(y) || he(y)) || !D(O)))
|
|
4842
|
-
return
|
|
4842
|
+
return s ? fn : c;
|
|
4843
4843
|
if (process.env.NODE_ENV !== "production" && D(y) && e.messageCompiler == null)
|
|
4844
4844
|
return Le(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${c}'.`), c;
|
|
4845
4845
|
let C = !1;
|
|
4846
4846
|
const h = () => {
|
|
4847
4847
|
C = !0;
|
|
4848
|
-
}, x = he(y) ? y :
|
|
4848
|
+
}, x = he(y) ? y : Do(e, c, O, y, v, h);
|
|
4849
4849
|
if (C)
|
|
4850
4850
|
return y;
|
|
4851
4851
|
const M = jl(e, O, T, f), I = Ml(M), P = Vl(e, x, I);
|
|
@@ -4858,21 +4858,21 @@ function No(e, ...t) {
|
|
|
4858
4858
|
format: D(y) ? y : he(y) ? y.source : "",
|
|
4859
4859
|
message: k
|
|
4860
4860
|
};
|
|
4861
|
-
q.meta = re({}, e.__meta, /* @__PURE__ */ Rl() || {}),
|
|
4861
|
+
q.meta = re({}, e.__meta, /* @__PURE__ */ Rl() || {}), ol(q);
|
|
4862
4862
|
}
|
|
4863
4863
|
return k;
|
|
4864
4864
|
}
|
|
4865
4865
|
function xl(e) {
|
|
4866
|
-
J(e.list) ? e.list = e.list.map((t) => D(t) ?
|
|
4867
|
-
D(e.named[t]) && (e.named[t] =
|
|
4866
|
+
J(e.list) ? e.list = e.list.map((t) => D(t) ? ts(t) : t) : B(e.named) && Object.keys(e.named).forEach((t) => {
|
|
4867
|
+
D(e.named[t]) && (e.named[t] = ts(e.named[t]));
|
|
4868
4868
|
});
|
|
4869
4869
|
}
|
|
4870
|
-
function
|
|
4870
|
+
function wo(e, t, n, r, s, o) {
|
|
4871
4871
|
const { messages: i, onWarn: a, messageResolver: c, localeFallbacker: f } = e, u = f(e, r, n);
|
|
4872
4872
|
let p = H(), _, L = null, g = n, b = null;
|
|
4873
4873
|
const N = "translate";
|
|
4874
4874
|
for (let m = 0; m < u.length; m++) {
|
|
4875
|
-
if (_ = b = u[m], process.env.NODE_ENV !== "production" && n !== _ && !
|
|
4875
|
+
if (_ = b = u[m], process.env.NODE_ENV !== "production" && n !== _ && !vo(n, _) && dn(s, t) && a(Ie(te.FALLBACK_TO_TRANSLATE, {
|
|
4876
4876
|
key: t,
|
|
4877
4877
|
target: _
|
|
4878
4878
|
})), process.env.NODE_ENV !== "production" && n !== _) {
|
|
@@ -4905,7 +4905,7 @@ function ws(e, t, n, r, o, s) {
|
|
|
4905
4905
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
4906
4906
|
t,
|
|
4907
4907
|
_,
|
|
4908
|
-
|
|
4908
|
+
o,
|
|
4909
4909
|
N
|
|
4910
4910
|
);
|
|
4911
4911
|
v !== t && (L = v);
|
|
@@ -4914,7 +4914,7 @@ function ws(e, t, n, r, o, s) {
|
|
|
4914
4914
|
}
|
|
4915
4915
|
return [L, _, p];
|
|
4916
4916
|
}
|
|
4917
|
-
function
|
|
4917
|
+
function Do(e, t, n, r, s, o) {
|
|
4918
4918
|
const { messageCompiler: i, warnHtmlMessage: a } = e;
|
|
4919
4919
|
if (he(r)) {
|
|
4920
4920
|
const _ = r;
|
|
@@ -4926,7 +4926,7 @@ function Ds(e, t, n, r, o, s) {
|
|
|
4926
4926
|
}
|
|
4927
4927
|
let c = null, f, u;
|
|
4928
4928
|
process.env.NODE_ENV !== "production" && Pe && (c = window.performance.now(), f = "intlify-message-compilation-start", u = "intlify-message-compilation-end", de && de(f));
|
|
4929
|
-
const p = i(r, $l(e, n,
|
|
4929
|
+
const p = i(r, $l(e, n, s, r, a, o));
|
|
4930
4930
|
if (process.env.NODE_ENV !== "production" && Pe) {
|
|
4931
4931
|
const _ = window.performance.now(), L = e.__v_emitter;
|
|
4932
4932
|
L && c && L.emit("message-compilation", {
|
|
@@ -4939,8 +4939,8 @@ function Ds(e, t, n, r, o, s) {
|
|
|
4939
4939
|
return p.locale = n, p.key = t, p.source = r, p;
|
|
4940
4940
|
}
|
|
4941
4941
|
function Vl(e, t, n) {
|
|
4942
|
-
let r = null,
|
|
4943
|
-
process.env.NODE_ENV !== "production" && Pe && (r = window.performance.now(),
|
|
4942
|
+
let r = null, s, o;
|
|
4943
|
+
process.env.NODE_ENV !== "production" && Pe && (r = window.performance.now(), s = "intlify-message-evaluation-start", o = "intlify-message-evaluation-end", de && de(s));
|
|
4944
4944
|
const i = t(n);
|
|
4945
4945
|
if (process.env.NODE_ENV !== "production" && Pe) {
|
|
4946
4946
|
const a = window.performance.now(), c = e.__v_emitter;
|
|
@@ -4949,24 +4949,24 @@ function Vl(e, t, n) {
|
|
|
4949
4949
|
value: i,
|
|
4950
4950
|
time: a - r,
|
|
4951
4951
|
groupId: `translate:${t.key}`
|
|
4952
|
-
}),
|
|
4952
|
+
}), s && o && de && Je && (de(o), Je("intlify message evaluation", s, o));
|
|
4953
4953
|
}
|
|
4954
4954
|
return i;
|
|
4955
4955
|
}
|
|
4956
|
-
function
|
|
4957
|
-
const [t, n, r] = e,
|
|
4956
|
+
function Zn(...e) {
|
|
4957
|
+
const [t, n, r] = e, s = H();
|
|
4958
4958
|
if (!D(t) && !ne(t) && !he(t) && !be(t))
|
|
4959
4959
|
throw ve(ae.INVALID_ARGUMENT);
|
|
4960
|
-
const
|
|
4961
|
-
return ne(n) ?
|
|
4960
|
+
const o = ne(t) ? String(t) : (he(t), t);
|
|
4961
|
+
return ne(n) ? s.plural = n : D(n) ? s.default = n : j(n) && !un(n) ? s.named = n : J(n) && (s.list = n), ne(r) ? s.plural = r : D(r) ? s.default = r : j(r) && re(s, r), [o, s];
|
|
4962
4962
|
}
|
|
4963
|
-
function $l(e, t, n, r,
|
|
4963
|
+
function $l(e, t, n, r, s, o) {
|
|
4964
4964
|
return {
|
|
4965
4965
|
locale: t,
|
|
4966
4966
|
key: n,
|
|
4967
|
-
warnHtmlMessage:
|
|
4967
|
+
warnHtmlMessage: s,
|
|
4968
4968
|
onError: (i) => {
|
|
4969
|
-
if (
|
|
4969
|
+
if (o && o(i), process.env.NODE_ENV !== "production") {
|
|
4970
4970
|
const a = Bl(r), c = i.location && a && fc(a, i.location.start.offset, i.location.end.offset), f = e.__v_emitter;
|
|
4971
4971
|
f && a && f.emit("compile-error", {
|
|
4972
4972
|
message: a,
|
|
@@ -4981,7 +4981,7 @@ ${c}` : u);
|
|
|
4981
4981
|
}
|
|
4982
4982
|
throw i;
|
|
4983
4983
|
},
|
|
4984
|
-
onCacheKey: (i) =>
|
|
4984
|
+
onCacheKey: (i) => sc(t, n, i)
|
|
4985
4985
|
};
|
|
4986
4986
|
}
|
|
4987
4987
|
function Bl(e) {
|
|
@@ -4991,14 +4991,14 @@ function Bl(e) {
|
|
|
4991
4991
|
return e.loc.source;
|
|
4992
4992
|
}
|
|
4993
4993
|
function jl(e, t, n, r) {
|
|
4994
|
-
const { modifiers:
|
|
4994
|
+
const { modifiers: s, pluralRules: o, messageResolver: i, fallbackLocale: a, fallbackWarn: c, missingWarn: f, fallbackContext: u } = e, _ = {
|
|
4995
4995
|
locale: t,
|
|
4996
|
-
modifiers:
|
|
4997
|
-
pluralRules:
|
|
4996
|
+
modifiers: s,
|
|
4997
|
+
pluralRules: o,
|
|
4998
4998
|
messages: (L, g) => {
|
|
4999
4999
|
let b = i(n, L);
|
|
5000
5000
|
if (b == null && (u || g)) {
|
|
5001
|
-
const [, , N] =
|
|
5001
|
+
const [, , N] = wo(
|
|
5002
5002
|
u || e,
|
|
5003
5003
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
5004
5004
|
L,
|
|
@@ -5011,11 +5011,11 @@ function jl(e, t, n, r) {
|
|
|
5011
5011
|
}
|
|
5012
5012
|
if (D(b) || be(b)) {
|
|
5013
5013
|
let N = !1;
|
|
5014
|
-
const O =
|
|
5014
|
+
const O = Do(e, L, t, b, L, () => {
|
|
5015
5015
|
N = !0;
|
|
5016
5016
|
});
|
|
5017
|
-
return N ?
|
|
5018
|
-
} else return he(b) ? b :
|
|
5017
|
+
return N ? bs : O;
|
|
5018
|
+
} else return he(b) ? b : bs;
|
|
5019
5019
|
}
|
|
5020
5020
|
};
|
|
5021
5021
|
return e.processor && (_.processor = e.processor), r.list && (_.list = r.list), r.named && (_.named = r.named), ne(r.plural) && (_.pluralIndex = r.plural), _;
|
|
@@ -5025,7 +5025,7 @@ const Hl = "11.3.0";
|
|
|
5025
5025
|
function ql() {
|
|
5026
5026
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Ge().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Ge().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Ge().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Ge().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
5027
5027
|
}
|
|
5028
|
-
const
|
|
5028
|
+
const oe = {
|
|
5029
5029
|
// composer module errors
|
|
5030
5030
|
UNEXPECTED_RETURN_TYPE: al,
|
|
5031
5031
|
// 24
|
|
@@ -5051,18 +5051,18 @@ function bt(e, ...t) {
|
|
|
5051
5051
|
return ct(e, null, process.env.NODE_ENV !== "production" ? { messages: Wl, args: t } : void 0);
|
|
5052
5052
|
}
|
|
5053
5053
|
const Wl = {
|
|
5054
|
-
[
|
|
5055
|
-
[
|
|
5056
|
-
[
|
|
5057
|
-
[
|
|
5058
|
-
[
|
|
5059
|
-
[
|
|
5060
|
-
[
|
|
5061
|
-
[
|
|
5062
|
-
[
|
|
5063
|
-
[
|
|
5064
|
-
[
|
|
5065
|
-
},
|
|
5054
|
+
[oe.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
|
5055
|
+
[oe.INVALID_ARGUMENT]: "Invalid argument",
|
|
5056
|
+
[oe.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
|
|
5057
|
+
[oe.NOT_INSTALLED]: "Need to install with `app.use` function",
|
|
5058
|
+
[oe.UNEXPECTED_ERROR]: "Unexpected error",
|
|
5059
|
+
[oe.REQUIRED_VALUE]: "Required in value: {0}",
|
|
5060
|
+
[oe.INVALID_VALUE]: "Invalid value",
|
|
5061
|
+
[oe.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]: "Cannot setup vue-devtools plugin",
|
|
5062
|
+
[oe.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
|
|
5063
|
+
[oe.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
|
5064
|
+
[oe.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
|
|
5065
|
+
}, er = /* @__PURE__ */ De("__translateVNode"), tr = /* @__PURE__ */ De("__datetimeParts"), nr = /* @__PURE__ */ De("__numberParts"), rr = /* @__PURE__ */ De("__enableEmitter"), sr = /* @__PURE__ */ De("__disableEmitter"), Gl = De("__setPluralRules"), ko = /* @__PURE__ */ De("__injectWithOption"), or = /* @__PURE__ */ De("__dispose"), Ae = {
|
|
5066
5066
|
FALLBACK_TO_ROOT: Ze,
|
|
5067
5067
|
// 10
|
|
5068
5068
|
NOT_FOUND_PARENT_SCOPE: Ze + 1,
|
|
@@ -5093,7 +5093,7 @@ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guid
|
|
|
5093
5093
|
[Ae.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."
|
|
5094
5094
|
};
|
|
5095
5095
|
function Yt(e, ...t) {
|
|
5096
|
-
return
|
|
5096
|
+
return ln(Yl[e], ...t);
|
|
5097
5097
|
}
|
|
5098
5098
|
function yt(e) {
|
|
5099
5099
|
if (!B(e) || be(e))
|
|
@@ -5104,98 +5104,98 @@ function yt(e) {
|
|
|
5104
5104
|
B(e[t]) && yt(e[t]);
|
|
5105
5105
|
else {
|
|
5106
5106
|
const n = t.split("."), r = n.length - 1;
|
|
5107
|
-
let
|
|
5107
|
+
let s = e, o = !1;
|
|
5108
5108
|
for (let i = 0; i < r; i++) {
|
|
5109
5109
|
if (n[i] === "__proto__")
|
|
5110
5110
|
throw new Error(`unsafe key: ${n[i]}`);
|
|
5111
|
-
if (n[i] in
|
|
5111
|
+
if (n[i] in s || (s[n[i]] = H()), !B(s[n[i]])) {
|
|
5112
5112
|
process.env.NODE_ENV !== "production" && Le(Yt(Ae.IGNORE_OBJ_FLATTEN, {
|
|
5113
5113
|
key: n[i]
|
|
5114
|
-
})),
|
|
5114
|
+
})), o = !0;
|
|
5115
5115
|
break;
|
|
5116
5116
|
}
|
|
5117
|
-
|
|
5117
|
+
s = s[n[i]];
|
|
5118
5118
|
}
|
|
5119
|
-
if (
|
|
5120
|
-
const i =
|
|
5119
|
+
if (o || (be(s) ? No.includes(n[r]) || delete e[t] : (s[n[r]] = e[t], delete e[t])), !be(s)) {
|
|
5120
|
+
const i = s[n[r]];
|
|
5121
5121
|
B(i) && yt(i);
|
|
5122
5122
|
}
|
|
5123
5123
|
}
|
|
5124
5124
|
return e;
|
|
5125
5125
|
}
|
|
5126
|
-
function
|
|
5127
|
-
const { messages: n, __i18n: r, messageResolver:
|
|
5126
|
+
function Fo(e, t) {
|
|
5127
|
+
const { messages: n, __i18n: r, messageResolver: s, flatJson: o } = t, i = j(n) ? n : J(r) ? H() : { [e]: H() };
|
|
5128
5128
|
if (J(r) && r.forEach((a) => {
|
|
5129
5129
|
if ("locale" in a && "resource" in a) {
|
|
5130
5130
|
const { locale: c, resource: f } = a;
|
|
5131
5131
|
c ? (i[c] = i[c] || H(), Mt(f, i[c])) : Mt(f, i);
|
|
5132
5132
|
} else
|
|
5133
5133
|
D(a) && Mt(JSON.parse(a), i);
|
|
5134
|
-
}),
|
|
5134
|
+
}), s == null && o)
|
|
5135
5135
|
for (const a in i)
|
|
5136
5136
|
Ee(i, a) && yt(i[a]);
|
|
5137
5137
|
return i;
|
|
5138
5138
|
}
|
|
5139
|
-
function
|
|
5139
|
+
function Uo(e) {
|
|
5140
5140
|
return e.type;
|
|
5141
5141
|
}
|
|
5142
5142
|
function Kl(e, t, n) {
|
|
5143
5143
|
let r = B(t.messages) ? t.messages : H();
|
|
5144
|
-
"__i18nGlobal" in n && (r =
|
|
5144
|
+
"__i18nGlobal" in n && (r = Fo(e.locale.value, {
|
|
5145
5145
|
messages: r,
|
|
5146
5146
|
__i18n: n.__i18nGlobal
|
|
5147
5147
|
}));
|
|
5148
|
-
const
|
|
5149
|
-
|
|
5150
|
-
e.mergeLocaleMessage(
|
|
5148
|
+
const s = Object.keys(r);
|
|
5149
|
+
s.length && s.forEach((o) => {
|
|
5150
|
+
e.mergeLocaleMessage(o, r[o]);
|
|
5151
5151
|
});
|
|
5152
5152
|
{
|
|
5153
5153
|
if (B(t.datetimeFormats)) {
|
|
5154
|
-
const
|
|
5155
|
-
|
|
5154
|
+
const o = Object.keys(t.datetimeFormats);
|
|
5155
|
+
o.length && o.forEach((i) => {
|
|
5156
5156
|
e.mergeDateTimeFormat(i, t.datetimeFormats[i]);
|
|
5157
5157
|
});
|
|
5158
5158
|
}
|
|
5159
5159
|
if (B(t.numberFormats)) {
|
|
5160
|
-
const
|
|
5161
|
-
|
|
5160
|
+
const o = Object.keys(t.numberFormats);
|
|
5161
|
+
o.length && o.forEach((i) => {
|
|
5162
5162
|
e.mergeNumberFormat(i, t.numberFormats[i]);
|
|
5163
5163
|
});
|
|
5164
5164
|
}
|
|
5165
5165
|
}
|
|
5166
5166
|
}
|
|
5167
|
-
function
|
|
5167
|
+
function Ns(e) {
|
|
5168
5168
|
return ei(ti, null, e, 0);
|
|
5169
5169
|
}
|
|
5170
5170
|
function gr() {
|
|
5171
5171
|
const e = "currentInstance";
|
|
5172
|
-
return e in
|
|
5172
|
+
return e in bn ? bn[e] : bn.getCurrentInstance();
|
|
5173
5173
|
}
|
|
5174
|
-
const
|
|
5175
|
-
let
|
|
5176
|
-
function
|
|
5177
|
-
return ((t, n, r,
|
|
5174
|
+
const Os = "__INTLIFY_META__", Ss = () => [], Xl = () => !1;
|
|
5175
|
+
let Ts = 0;
|
|
5176
|
+
function As(e) {
|
|
5177
|
+
return ((t, n, r, s) => e(n, r, gr() || void 0, s));
|
|
5178
5178
|
}
|
|
5179
5179
|
const Jl = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
5180
5180
|
const e = gr();
|
|
5181
5181
|
let t = null;
|
|
5182
|
-
return e && (t =
|
|
5182
|
+
return e && (t = Uo(e)[Os]) ? { [Os]: t } : null;
|
|
5183
5183
|
};
|
|
5184
5184
|
function Ql(e = {}) {
|
|
5185
|
-
const { __root: t, __injectWithOption: n } = e, r = t === void 0,
|
|
5185
|
+
const { __root: t, __injectWithOption: n } = e, r = t === void 0, s = e.flatJson, o = Pe ? Qt : Zo;
|
|
5186
5186
|
let i = X(e.inheritLocale) ? e.inheritLocale : !0;
|
|
5187
|
-
const a =
|
|
5187
|
+
const a = o(
|
|
5188
5188
|
// prettier-ignore
|
|
5189
5189
|
t && i ? t.locale.value : D(e.locale) ? e.locale : Gt
|
|
5190
|
-
), c =
|
|
5190
|
+
), c = o(
|
|
5191
5191
|
// prettier-ignore
|
|
5192
5192
|
t && i ? t.fallbackLocale.value : D(e.fallbackLocale) || J(e.fallbackLocale) || j(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a.value
|
|
5193
|
-
), f =
|
|
5194
|
-
let _ = t ? t.missingWarn : X(e.missingWarn) || Wt(e.missingWarn) ? e.missingWarn : !0, L = t ? t.fallbackWarn : X(e.fallbackWarn) || Wt(e.fallbackWarn) ? e.fallbackWarn : !0, g = t ? t.fallbackRoot : X(e.fallbackRoot) ? e.fallbackRoot : !0, b = !!e.fallbackFormat, N = G(e.missing) ? e.missing : null, m = G(e.missing) ?
|
|
5193
|
+
), f = o(Fo(a.value, e)), u = o(j(e.datetimeFormats) ? e.datetimeFormats : { [a.value]: {} }), p = o(j(e.numberFormats) ? e.numberFormats : { [a.value]: {} });
|
|
5194
|
+
let _ = t ? t.missingWarn : X(e.missingWarn) || Wt(e.missingWarn) ? e.missingWarn : !0, L = t ? t.fallbackWarn : X(e.fallbackWarn) || Wt(e.fallbackWarn) ? e.fallbackWarn : !0, g = t ? t.fallbackRoot : X(e.fallbackRoot) ? e.fallbackRoot : !0, b = !!e.fallbackFormat, N = G(e.missing) ? e.missing : null, m = G(e.missing) ? As(e.missing) : null, O = G(e.postTranslation) ? e.postTranslation : null, T = t ? t.warnHtmlMessage : X(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, y = !!e.escapeParameter;
|
|
5195
5195
|
const v = t ? t.modifiers : j(e.modifiers) ? e.modifiers : {};
|
|
5196
5196
|
let C = e.pluralRules || t && t.pluralRules, h;
|
|
5197
5197
|
h = (() => {
|
|
5198
|
-
r &&
|
|
5198
|
+
r && ds(null);
|
|
5199
5199
|
const S = {
|
|
5200
5200
|
version: Hl,
|
|
5201
5201
|
locale: a.value,
|
|
@@ -5217,7 +5217,7 @@ function Ql(e = {}) {
|
|
|
5217
5217
|
};
|
|
5218
5218
|
S.datetimeFormats = u.value, S.numberFormats = p.value, S.__datetimeFormatters = j(h) ? h.__datetimeFormatters : void 0, S.__numberFormatters = j(h) ? h.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (S.__v_emitter = j(h) ? h.__v_emitter : void 0);
|
|
5219
5219
|
const R = Cl(S);
|
|
5220
|
-
return r &&
|
|
5220
|
+
return r && ds(R), R;
|
|
5221
5221
|
})(), pt(h, a.value, c.value);
|
|
5222
5222
|
function M() {
|
|
5223
5223
|
return [
|
|
@@ -5238,7 +5238,7 @@ function Ql(e = {}) {
|
|
|
5238
5238
|
set: (S) => {
|
|
5239
5239
|
h.fallbackLocale = S, c.value = S, pt(h, a.value, S);
|
|
5240
5240
|
}
|
|
5241
|
-
}), k = Ue(() => f.value), q = /* @__PURE__ */ Ue(() => u.value),
|
|
5241
|
+
}), k = Ue(() => f.value), q = /* @__PURE__ */ Ue(() => u.value), se = /* @__PURE__ */ Ue(() => p.value);
|
|
5242
5242
|
function Ne() {
|
|
5243
5243
|
return G(O) ? O : null;
|
|
5244
5244
|
}
|
|
@@ -5249,7 +5249,7 @@ function Ql(e = {}) {
|
|
|
5249
5249
|
return N;
|
|
5250
5250
|
}
|
|
5251
5251
|
function ee(S) {
|
|
5252
|
-
S !== null && (m =
|
|
5252
|
+
S !== null && (m = As(S)), N = S, h.missing = m;
|
|
5253
5253
|
}
|
|
5254
5254
|
function Z(S, R) {
|
|
5255
5255
|
return S !== "translate" || !R.resolvedMessage;
|
|
@@ -5263,9 +5263,9 @@ function Ql(e = {}) {
|
|
|
5263
5263
|
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (h.fallbackContext = void 0);
|
|
5264
5264
|
}
|
|
5265
5265
|
if ($ !== "translate exists" && // for not `te` (e.g `t`)
|
|
5266
|
-
ne(pe) && pe ===
|
|
5267
|
-
const [He,
|
|
5268
|
-
if (process.env.NODE_ENV !== "production" && t && D(He) && Z($,
|
|
5266
|
+
ne(pe) && pe === fn || $ === "translate exists" && !pe) {
|
|
5267
|
+
const [He, Vo] = R();
|
|
5268
|
+
if (process.env.NODE_ENV !== "production" && t && D(He) && Z($, Vo) && (g && (dn(L, He) || Ro(_, He)) && Le(Yt(Ae.FALLBACK_TO_ROOT, {
|
|
5269
5269
|
key: He,
|
|
5270
5270
|
type: $
|
|
5271
5271
|
})), process.env.NODE_ENV !== "production")) {
|
|
@@ -5281,28 +5281,28 @@ function Ql(e = {}) {
|
|
|
5281
5281
|
} else {
|
|
5282
5282
|
if (je(pe))
|
|
5283
5283
|
return pe;
|
|
5284
|
-
throw bt(
|
|
5284
|
+
throw bt(oe.UNEXPECTED_RETURN_TYPE);
|
|
5285
5285
|
}
|
|
5286
5286
|
};
|
|
5287
5287
|
function le(...S) {
|
|
5288
|
-
return ge((R) => Reflect.apply(
|
|
5288
|
+
return ge((R) => Reflect.apply(ys, null, [R, ...S]), () => Zn(...S), "translate", (R) => Reflect.apply(R.t, R, [...S]), (R) => R, (R) => D(R));
|
|
5289
5289
|
}
|
|
5290
5290
|
function Oe(...S) {
|
|
5291
5291
|
const [R, $, Y] = S;
|
|
5292
5292
|
if (Y && !B(Y))
|
|
5293
|
-
throw bt(
|
|
5293
|
+
throw bt(oe.INVALID_ARGUMENT);
|
|
5294
5294
|
return le(R, $, re({ resolvedMessage: !0 }, Y || {}));
|
|
5295
5295
|
}
|
|
5296
5296
|
function Ve(...S) {
|
|
5297
|
-
return ge((R) => Reflect.apply(
|
|
5297
|
+
return ge((R) => Reflect.apply(_s, null, [R, ...S]), () => Qn(...S), "datetime format", (R) => Reflect.apply(R.d, R, [...S]), () => ot, (R) => D(R) || J(R));
|
|
5298
5298
|
}
|
|
5299
5299
|
function Fe(...S) {
|
|
5300
|
-
return ge((R) => Reflect.apply(
|
|
5300
|
+
return ge((R) => Reflect.apply(Es, null, [R, ...S]), () => zn(...S), "number format", (R) => Reflect.apply(R.n, R, [...S]), () => ot, (R) => D(R) || J(R));
|
|
5301
5301
|
}
|
|
5302
5302
|
function Qe(S) {
|
|
5303
|
-
return S.map((R) => D(R) || ne(R) || X(R) ?
|
|
5303
|
+
return S.map((R) => D(R) || ne(R) || X(R) ? Ns(String(R)) : R);
|
|
5304
5304
|
}
|
|
5305
|
-
const
|
|
5305
|
+
const mn = {
|
|
5306
5306
|
normalize: Qe,
|
|
5307
5307
|
interpolate: (S) => S,
|
|
5308
5308
|
type: "vnode"
|
|
@@ -5312,27 +5312,27 @@ function Ql(e = {}) {
|
|
|
5312
5312
|
let $;
|
|
5313
5313
|
const Y = R;
|
|
5314
5314
|
try {
|
|
5315
|
-
Y.processor =
|
|
5315
|
+
Y.processor = mn, $ = Reflect.apply(ys, null, [Y, ...S]);
|
|
5316
5316
|
} finally {
|
|
5317
5317
|
Y.processor = null;
|
|
5318
5318
|
}
|
|
5319
5319
|
return $;
|
|
5320
|
-
}, () =>
|
|
5320
|
+
}, () => Zn(...S), "translate", (R) => R[er](...S), (R) => [Ns(R)], (R) => J(R));
|
|
5321
5321
|
}
|
|
5322
|
-
function
|
|
5323
|
-
return ge((R) => Reflect.apply(
|
|
5322
|
+
function _n(...S) {
|
|
5323
|
+
return ge((R) => Reflect.apply(Es, null, [R, ...S]), () => zn(...S), "number format", (R) => R[nr](...S), Ss, (R) => D(R) || J(R));
|
|
5324
5324
|
}
|
|
5325
5325
|
function Rt(...S) {
|
|
5326
|
-
return ge((R) => Reflect.apply(
|
|
5326
|
+
return ge((R) => Reflect.apply(_s, null, [R, ...S]), () => Qn(...S), "datetime format", (R) => R[tr](...S), Ss, (R) => D(R) || J(R));
|
|
5327
5327
|
}
|
|
5328
|
-
function
|
|
5328
|
+
function hn(S) {
|
|
5329
5329
|
C = S, h.pluralRules = C;
|
|
5330
5330
|
}
|
|
5331
|
-
function
|
|
5331
|
+
function En(S, R) {
|
|
5332
5332
|
return ge(() => {
|
|
5333
5333
|
if (!S)
|
|
5334
5334
|
return !1;
|
|
5335
|
-
const $ = D(R) ? R : a.value, Y = D(R) ? [$] :
|
|
5335
|
+
const $ = D(R) ? R : a.value, Y = D(R) ? [$] : Jn(h, c.value, $);
|
|
5336
5336
|
for (let Be = 0; Be < Y.length; Be++) {
|
|
5337
5337
|
const je = $e(Y[Be]);
|
|
5338
5338
|
let pe = h.messageResolver(je, S);
|
|
@@ -5344,7 +5344,7 @@ function Ql(e = {}) {
|
|
|
5344
5344
|
}
|
|
5345
5345
|
function lt(S) {
|
|
5346
5346
|
let R = null;
|
|
5347
|
-
const $ =
|
|
5347
|
+
const $ = Jn(h, c.value, a.value);
|
|
5348
5348
|
for (let Y = 0; Y < $.length; Y++) {
|
|
5349
5349
|
const Be = f.value[$[Y]] || {}, je = h.messageResolver(Be, S);
|
|
5350
5350
|
if (je != null) {
|
|
@@ -5362,7 +5362,7 @@ function Ql(e = {}) {
|
|
|
5362
5362
|
return f.value[S] || {};
|
|
5363
5363
|
}
|
|
5364
5364
|
function ft(S, R) {
|
|
5365
|
-
if (
|
|
5365
|
+
if (s) {
|
|
5366
5366
|
const $ = { [S]: R };
|
|
5367
5367
|
for (const Y in $)
|
|
5368
5368
|
Ee($, Y) && yt($[Y]);
|
|
@@ -5370,10 +5370,10 @@ function Ql(e = {}) {
|
|
|
5370
5370
|
}
|
|
5371
5371
|
f.value[S] = R, h.messages = f.value;
|
|
5372
5372
|
}
|
|
5373
|
-
function
|
|
5373
|
+
function gn(S, R) {
|
|
5374
5374
|
f.value[S] = f.value[S] || {};
|
|
5375
5375
|
const $ = { [S]: R };
|
|
5376
|
-
if (
|
|
5376
|
+
if (s)
|
|
5377
5377
|
for (const Y in $)
|
|
5378
5378
|
Ee($, Y) && yt($[Y]);
|
|
5379
5379
|
R = $[S], Mt(R, f.value[S]), h.messages = f.value;
|
|
@@ -5382,27 +5382,27 @@ function Ql(e = {}) {
|
|
|
5382
5382
|
return u.value[S] || {};
|
|
5383
5383
|
}
|
|
5384
5384
|
function d(S, R) {
|
|
5385
|
-
u.value[S] = R, h.datetimeFormats = u.value,
|
|
5385
|
+
u.value[S] = R, h.datetimeFormats = u.value, hs(h, S, R);
|
|
5386
5386
|
}
|
|
5387
5387
|
function A(S, R) {
|
|
5388
|
-
u.value[S] = re(u.value[S] || {}, R), h.datetimeFormats = u.value,
|
|
5388
|
+
u.value[S] = re(u.value[S] || {}, R), h.datetimeFormats = u.value, hs(h, S, R);
|
|
5389
5389
|
}
|
|
5390
5390
|
function w(S) {
|
|
5391
5391
|
return p.value[S] || {};
|
|
5392
5392
|
}
|
|
5393
5393
|
function W(S, R) {
|
|
5394
|
-
p.value[S] = R, h.numberFormats = p.value,
|
|
5394
|
+
p.value[S] = R, h.numberFormats = p.value, gs(h, S, R);
|
|
5395
5395
|
}
|
|
5396
5396
|
function K(S, R) {
|
|
5397
|
-
p.value[S] = re(p.value[S] || {}, R), h.numberFormats = p.value,
|
|
5397
|
+
p.value[S] = re(p.value[S] || {}, R), h.numberFormats = p.value, gs(h, S, R);
|
|
5398
5398
|
}
|
|
5399
|
-
|
|
5399
|
+
Ts++, t && Pe && (Dn(t.locale, (S) => {
|
|
5400
5400
|
i && (a.value = S, h.locale = S, pt(h, a.value, c.value));
|
|
5401
|
-
}),
|
|
5401
|
+
}), Dn(t.fallbackLocale, (S) => {
|
|
5402
5402
|
i && (c.value = S, h.fallbackLocale = S, pt(h, a.value, c.value));
|
|
5403
5403
|
}));
|
|
5404
5404
|
const V = {
|
|
5405
|
-
id:
|
|
5405
|
+
id: Ts,
|
|
5406
5406
|
locale: I,
|
|
5407
5407
|
fallbackLocale: P,
|
|
5408
5408
|
get inheritLocale() {
|
|
@@ -5463,20 +5463,20 @@ function Ql(e = {}) {
|
|
|
5463
5463
|
t: le,
|
|
5464
5464
|
getLocaleMessage: $e,
|
|
5465
5465
|
setLocaleMessage: ft,
|
|
5466
|
-
mergeLocaleMessage:
|
|
5466
|
+
mergeLocaleMessage: gn,
|
|
5467
5467
|
getPostTranslationHandler: Ne,
|
|
5468
5468
|
setPostTranslationHandler: z,
|
|
5469
5469
|
getMissingHandler: ke,
|
|
5470
5470
|
setMissingHandler: ee,
|
|
5471
|
-
[Gl]:
|
|
5471
|
+
[Gl]: hn
|
|
5472
5472
|
};
|
|
5473
|
-
return V.datetimeFormats = q, V.numberFormats =
|
|
5473
|
+
return V.datetimeFormats = q, V.numberFormats = se, V.rt = Oe, V.te = En, V.tm = ut, V.d = Ve, V.n = Fe, V.getDateTimeFormat = l, V.setDateTimeFormat = d, V.mergeDateTimeFormat = A, V.getNumberFormat = w, V.setNumberFormat = W, V.mergeNumberFormat = K, V[ko] = n, V[er] = Lt, V[tr] = Rt, V[nr] = _n, process.env.NODE_ENV !== "production" && (V[rr] = (S) => {
|
|
5474
5474
|
h.__v_emitter = S;
|
|
5475
|
-
}, V[
|
|
5475
|
+
}, V[sr] = () => {
|
|
5476
5476
|
h.__v_emitter = void 0;
|
|
5477
5477
|
}), V;
|
|
5478
5478
|
}
|
|
5479
|
-
function
|
|
5479
|
+
function Ls(e, t) {
|
|
5480
5480
|
}
|
|
5481
5481
|
const br = {
|
|
5482
5482
|
tag: {
|
|
@@ -5497,16 +5497,16 @@ const br = {
|
|
|
5497
5497
|
}
|
|
5498
5498
|
};
|
|
5499
5499
|
function zl({ slots: e }, t) {
|
|
5500
|
-
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r,
|
|
5500
|
+
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, s) => [
|
|
5501
5501
|
...r,
|
|
5502
5502
|
// prettier-ignore
|
|
5503
|
-
...
|
|
5503
|
+
...s.type === Vt ? s.children : [s]
|
|
5504
5504
|
], []) : t.reduce((n, r) => {
|
|
5505
|
-
const
|
|
5506
|
-
return
|
|
5505
|
+
const s = e[r];
|
|
5506
|
+
return s && (n[r] = s()), n;
|
|
5507
5507
|
}, H());
|
|
5508
5508
|
}
|
|
5509
|
-
function
|
|
5509
|
+
function Mo() {
|
|
5510
5510
|
return Vt;
|
|
5511
5511
|
}
|
|
5512
5512
|
re({
|
|
@@ -5522,8 +5522,8 @@ re({
|
|
|
5522
5522
|
function Zl(e) {
|
|
5523
5523
|
return J(e) && !D(e[0]);
|
|
5524
5524
|
}
|
|
5525
|
-
function
|
|
5526
|
-
const { slots:
|
|
5525
|
+
function xo(e, t, n, r) {
|
|
5526
|
+
const { slots: s, attrs: o } = t;
|
|
5527
5527
|
return () => {
|
|
5528
5528
|
const i = { part: !0 };
|
|
5529
5529
|
let a = H();
|
|
@@ -5531,11 +5531,11 @@ function xs(e, t, n, r) {
|
|
|
5531
5531
|
const c = r(e.value, i, a);
|
|
5532
5532
|
let f = [i.key];
|
|
5533
5533
|
J(c) ? f = c.map((_, L) => {
|
|
5534
|
-
const g =
|
|
5534
|
+
const g = s[_.type], b = g ? g({ [_.type]: _.value, index: L, parts: c }) : [_.value];
|
|
5535
5535
|
return Zl(b) && (b[0].key = `${_.type}-${L}`), b;
|
|
5536
5536
|
}) : D(c) && (f = [c]);
|
|
5537
|
-
const u = re(H(),
|
|
5538
|
-
return
|
|
5537
|
+
const u = re(H(), o), p = D(e.tag) || B(e.tag) ? e.tag : Mo();
|
|
5538
|
+
return Ps(p, u, f);
|
|
5539
5539
|
};
|
|
5540
5540
|
}
|
|
5541
5541
|
re({
|
|
@@ -5548,74 +5548,74 @@ re({
|
|
|
5548
5548
|
}
|
|
5549
5549
|
}, br);
|
|
5550
5550
|
const eu = /* @__PURE__ */ De("global-vue-i18n");
|
|
5551
|
-
function
|
|
5551
|
+
function pn(e = {}) {
|
|
5552
5552
|
const t = gr();
|
|
5553
5553
|
if (t == null)
|
|
5554
|
-
throw bt(
|
|
5554
|
+
throw bt(oe.MUST_BE_CALL_SETUP_TOP);
|
|
5555
5555
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
5556
|
-
throw bt(
|
|
5557
|
-
const n = tu(t), r = ru(n),
|
|
5558
|
-
if (
|
|
5559
|
-
return Kl(r, e,
|
|
5560
|
-
if (
|
|
5561
|
-
let c =
|
|
5556
|
+
throw bt(oe.NOT_INSTALLED);
|
|
5557
|
+
const n = tu(t), r = ru(n), s = Uo(t), o = nu(e, s);
|
|
5558
|
+
if (o === "global")
|
|
5559
|
+
return Kl(r, e, s), r;
|
|
5560
|
+
if (o === "parent") {
|
|
5561
|
+
let c = su(n, t, e.__useComponent);
|
|
5562
5562
|
return c == null && (process.env.NODE_ENV !== "production" && Le(Yt(Ae.NOT_FOUND_PARENT_SCOPE)), c = r), c;
|
|
5563
5563
|
}
|
|
5564
5564
|
const i = n;
|
|
5565
5565
|
let a = i.__getInstance(t);
|
|
5566
5566
|
if (a == null) {
|
|
5567
5567
|
const c = re({}, e);
|
|
5568
|
-
"__i18n" in
|
|
5568
|
+
"__i18n" in s && (c.__i18n = s.__i18n), r && (c.__root = r), a = Ql(c), i.__composerExtend && (a[or] = i.__composerExtend(a)), iu(i, t, a), i.__setInstance(t, a);
|
|
5569
5569
|
} else
|
|
5570
|
-
process.env.NODE_ENV !== "production" &&
|
|
5570
|
+
process.env.NODE_ENV !== "production" && o === "local" && Le(Yt(Ae.DUPLICATE_USE_I18N_CALLING));
|
|
5571
5571
|
return a;
|
|
5572
5572
|
}
|
|
5573
5573
|
function tu(e) {
|
|
5574
5574
|
const t = xt(e.isCE ? eu : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
5575
5575
|
if (!t)
|
|
5576
|
-
throw bt(e.isCE ?
|
|
5576
|
+
throw bt(e.isCE ? oe.NOT_INSTALLED_WITH_PROVIDE : oe.UNEXPECTED_ERROR);
|
|
5577
5577
|
return t;
|
|
5578
5578
|
}
|
|
5579
5579
|
function nu(e, t) {
|
|
5580
|
-
return
|
|
5580
|
+
return un(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
5581
5581
|
}
|
|
5582
5582
|
function ru(e) {
|
|
5583
5583
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
5584
5584
|
}
|
|
5585
|
-
function
|
|
5585
|
+
function su(e, t, n = !1) {
|
|
5586
5586
|
let r = null;
|
|
5587
|
-
const
|
|
5588
|
-
let
|
|
5589
|
-
for (;
|
|
5587
|
+
const s = t.root;
|
|
5588
|
+
let o = ou(t, n);
|
|
5589
|
+
for (; o != null; ) {
|
|
5590
5590
|
const i = e;
|
|
5591
5591
|
if (e.mode === "composition")
|
|
5592
|
-
r = i.__getInstance(
|
|
5592
|
+
r = i.__getInstance(o);
|
|
5593
5593
|
else if (__VUE_I18N_LEGACY_API__) {
|
|
5594
|
-
const a = i.__getInstance(
|
|
5595
|
-
a != null && (r = a.__composer, n && r && !r[
|
|
5594
|
+
const a = i.__getInstance(o);
|
|
5595
|
+
a != null && (r = a.__composer, n && r && !r[ko] && (r = null));
|
|
5596
5596
|
}
|
|
5597
|
-
if (r != null ||
|
|
5597
|
+
if (r != null || s === o)
|
|
5598
5598
|
break;
|
|
5599
|
-
|
|
5599
|
+
o = o.parent;
|
|
5600
5600
|
}
|
|
5601
5601
|
return r;
|
|
5602
5602
|
}
|
|
5603
|
-
function
|
|
5603
|
+
function ou(e, t = !1) {
|
|
5604
5604
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
5605
5605
|
}
|
|
5606
5606
|
function iu(e, t, n) {
|
|
5607
5607
|
let r = null;
|
|
5608
|
-
|
|
5608
|
+
Cs(() => {
|
|
5609
5609
|
if (process.env.NODE_ENV !== "production") {
|
|
5610
5610
|
t.__VUE_I18N__ = n, r = dc();
|
|
5611
|
-
const
|
|
5612
|
-
|
|
5611
|
+
const s = n;
|
|
5612
|
+
s[rr] && s[rr](r), r.on("*", Ls);
|
|
5613
5613
|
}
|
|
5614
|
-
}, t),
|
|
5615
|
-
const
|
|
5616
|
-
process.env.NODE_ENV !== "production" && (r && r.off("*",
|
|
5617
|
-
const
|
|
5618
|
-
|
|
5614
|
+
}, t), Is(() => {
|
|
5615
|
+
const s = n;
|
|
5616
|
+
process.env.NODE_ENV !== "production" && (r && r.off("*", Ls), s[sr] && s[sr](), delete t.__VUE_I18N__), e.__deleteInstance(t);
|
|
5617
|
+
const o = s[or];
|
|
5618
|
+
o && (o(), delete s[or]);
|
|
5619
5619
|
}, t);
|
|
5620
5620
|
}
|
|
5621
5621
|
re({
|
|
@@ -5630,14 +5630,14 @@ re({
|
|
|
5630
5630
|
ql();
|
|
5631
5631
|
Sl(nl);
|
|
5632
5632
|
Tl(bl);
|
|
5633
|
-
Al(
|
|
5633
|
+
Al(Jn);
|
|
5634
5634
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
5635
5635
|
const e = Ge();
|
|
5636
5636
|
e.__INTLIFY__ = !0, rl(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
5637
5637
|
}
|
|
5638
5638
|
process.env.NODE_ENV;
|
|
5639
5639
|
let Kt = null;
|
|
5640
|
-
function
|
|
5640
|
+
function Lf(e) {
|
|
5641
5641
|
if (Kt !== null) {
|
|
5642
5642
|
console.warn(
|
|
5643
5643
|
"[LinID CoreLib] I18n has already been initialized. Re-initialization is ignored."
|
|
@@ -5654,26 +5654,26 @@ function au() {
|
|
|
5654
5654
|
return Kt;
|
|
5655
5655
|
}
|
|
5656
5656
|
function cu(e) {
|
|
5657
|
-
const { t, te: n, tm: r } =
|
|
5657
|
+
const { t, te: n, tm: r } = pn({
|
|
5658
5658
|
useScope: "global",
|
|
5659
5659
|
__i18n: au().global
|
|
5660
5660
|
});
|
|
5661
|
-
function
|
|
5661
|
+
function s(...c) {
|
|
5662
5662
|
const [f, u, p] = c;
|
|
5663
5663
|
return t(typeof u == "number" ? `${e}.${f}` : `${e}.${f}`, u, p);
|
|
5664
5664
|
}
|
|
5665
|
-
function
|
|
5665
|
+
function o(c) {
|
|
5666
5666
|
return n(`${e}.${c}`);
|
|
5667
5667
|
}
|
|
5668
5668
|
function i(c) {
|
|
5669
5669
|
return r(`${e}.${c}`);
|
|
5670
5670
|
}
|
|
5671
5671
|
function a(c, ...f) {
|
|
5672
|
-
return
|
|
5672
|
+
return o(f[0]) ? s(...f) : c;
|
|
5673
5673
|
}
|
|
5674
5674
|
return {
|
|
5675
|
-
t:
|
|
5676
|
-
te:
|
|
5675
|
+
t: s,
|
|
5676
|
+
te: o,
|
|
5677
5677
|
tm: i,
|
|
5678
5678
|
translateOrDefault: a
|
|
5679
5679
|
};
|
|
@@ -5694,10 +5694,10 @@ function fu(e, t) {
|
|
|
5694
5694
|
return uu(_) ? _.response.data.error : n("validation.unknownError");
|
|
5695
5695
|
}
|
|
5696
5696
|
}
|
|
5697
|
-
function
|
|
5697
|
+
function s(p) {
|
|
5698
5698
|
return p == null || p === "" ? n("validation.required") : !0;
|
|
5699
5699
|
}
|
|
5700
|
-
function
|
|
5700
|
+
function o(p, _) {
|
|
5701
5701
|
return p != null && p.length < _ ? n("validation.minLength", { min: _ }) : !0;
|
|
5702
5702
|
}
|
|
5703
5703
|
function i(p, _) {
|
|
@@ -5713,12 +5713,12 @@ function fu(e, t) {
|
|
|
5713
5713
|
return new RegExp(_).test(p) ? !0 : n("validation.pattern", { pattern: _.toString() });
|
|
5714
5714
|
}
|
|
5715
5715
|
function u(p, _) {
|
|
5716
|
-
return p == null ? !0 : (typeof p == "object" ? _.some((g) =>
|
|
5716
|
+
return p == null ? !0 : (typeof p == "object" ? _.some((g) => Yn(p, g)) : _.some((g) => g != null && String(g) === String(p))) ? n("validation.unique") : !0;
|
|
5717
5717
|
}
|
|
5718
5718
|
return {
|
|
5719
5719
|
validateFromApi: r,
|
|
5720
|
-
required:
|
|
5721
|
-
minLength:
|
|
5720
|
+
required: s,
|
|
5721
|
+
minLength: o,
|
|
5722
5722
|
maxLength: i,
|
|
5723
5723
|
min: a,
|
|
5724
5724
|
max: c,
|
|
@@ -5726,16 +5726,16 @@ function fu(e, t) {
|
|
|
5726
5726
|
unique: u
|
|
5727
5727
|
};
|
|
5728
5728
|
}
|
|
5729
|
-
function
|
|
5729
|
+
function Rf() {
|
|
5730
5730
|
function e(t) {
|
|
5731
|
-
|
|
5731
|
+
Vs.next({
|
|
5732
5732
|
key: "notify",
|
|
5733
5733
|
data: t
|
|
5734
5734
|
});
|
|
5735
5735
|
}
|
|
5736
5736
|
return { Notify: e };
|
|
5737
5737
|
}
|
|
5738
|
-
function
|
|
5738
|
+
function vf() {
|
|
5739
5739
|
function e(n) {
|
|
5740
5740
|
return {
|
|
5741
5741
|
page: (n.page || 1) - 1,
|
|
@@ -5760,8 +5760,8 @@ function du(e, t) {
|
|
|
5760
5760
|
const {
|
|
5761
5761
|
validateFromApi: n,
|
|
5762
5762
|
required: r,
|
|
5763
|
-
minLength:
|
|
5764
|
-
maxLength:
|
|
5763
|
+
minLength: s,
|
|
5764
|
+
maxLength: o,
|
|
5765
5765
|
min: i,
|
|
5766
5766
|
max: a,
|
|
5767
5767
|
pattern: c,
|
|
@@ -5772,28 +5772,28 @@ function du(e, t) {
|
|
|
5772
5772
|
required: r,
|
|
5773
5773
|
min: (u) => (p) => i(typeof p == "string" ? parseFloat(p) : p, u),
|
|
5774
5774
|
max: (u) => (p) => a(typeof p == "string" ? parseFloat(p) : p, u),
|
|
5775
|
-
minLength: (u) => (p) =>
|
|
5776
|
-
maxLength: (u) => (p) =>
|
|
5775
|
+
minLength: (u) => (p) => s(p, u),
|
|
5776
|
+
maxLength: (u) => (p) => o(p, u),
|
|
5777
5777
|
pattern: (u) => (p) => c(p, u),
|
|
5778
5778
|
unique: (u) => (p) => f(p, u)
|
|
5779
5779
|
};
|
|
5780
5780
|
}
|
|
5781
|
-
function
|
|
5781
|
+
function Cf(e, t, n) {
|
|
5782
5782
|
if (!t.hasValidations)
|
|
5783
5783
|
return [];
|
|
5784
|
-
const { required: r, validateFromApi:
|
|
5785
|
-
(a) =>
|
|
5784
|
+
const { required: r, validateFromApi: s, ...o } = du(e, t.name), i = n.filter((a) => t.inputSettings?.[a] != null).map(
|
|
5785
|
+
(a) => o[a]?.(
|
|
5786
5786
|
t.inputSettings?.[a]
|
|
5787
5787
|
)
|
|
5788
5788
|
).filter(Boolean);
|
|
5789
5789
|
return [
|
|
5790
5790
|
...t.required ? [r] : [],
|
|
5791
5791
|
...i,
|
|
5792
|
-
|
|
5792
|
+
s
|
|
5793
5793
|
];
|
|
5794
5794
|
}
|
|
5795
5795
|
let Xt = null;
|
|
5796
|
-
function
|
|
5796
|
+
function If(e) {
|
|
5797
5797
|
if (Xt !== null) {
|
|
5798
5798
|
console.warn(
|
|
5799
5799
|
"[LinID CoreLib] UI Design has already been initialized. Re-initialization is ignored."
|
|
@@ -6156,7 +6156,7 @@ const mu = [
|
|
|
6156
6156
|
"noErrorFocus",
|
|
6157
6157
|
"noResetFocus",
|
|
6158
6158
|
"greedy"
|
|
6159
|
-
], Vu = ["lines", "overline", "caption", "header"],
|
|
6159
|
+
], Vu = ["lines", "overline", "caption", "header"], Rs = {
|
|
6160
6160
|
"q-avatar": yu,
|
|
6161
6161
|
"q-badge": Nu,
|
|
6162
6162
|
"q-btn": mu,
|
|
@@ -6184,33 +6184,33 @@ const mu = [
|
|
|
6184
6184
|
"q-toolbar": gu,
|
|
6185
6185
|
"q-toolbar-title": bu
|
|
6186
6186
|
};
|
|
6187
|
-
function
|
|
6187
|
+
function vs(e, t) {
|
|
6188
6188
|
return t.split(".").reduce((n, r) => {
|
|
6189
6189
|
if (n && typeof n == "object")
|
|
6190
6190
|
return n[r];
|
|
6191
6191
|
}, e);
|
|
6192
6192
|
}
|
|
6193
6193
|
function $u(e, t, n) {
|
|
6194
|
-
let r =
|
|
6195
|
-
if (r === void 0 && (r =
|
|
6194
|
+
let r = vs(e, `${t}.${n}`);
|
|
6195
|
+
if (r === void 0 && (r = vs(e, `default.${n}`)), typeof r == "object")
|
|
6196
6196
|
throw new Error(
|
|
6197
6197
|
`[UiDesign] Value for '${t}.${n}' is a nested object or null, expected a primitive.`
|
|
6198
6198
|
);
|
|
6199
6199
|
return r;
|
|
6200
6200
|
}
|
|
6201
6201
|
function Bu(e) {
|
|
6202
|
-
if (!(e in
|
|
6202
|
+
if (!(e in Rs))
|
|
6203
6203
|
throw new Error(
|
|
6204
6204
|
`[UiDesign] The component '${e}' is not supported for UI design retrieval.`
|
|
6205
6205
|
);
|
|
6206
|
-
return
|
|
6206
|
+
return Rs[e];
|
|
6207
6207
|
}
|
|
6208
|
-
function
|
|
6208
|
+
function Pf() {
|
|
6209
6209
|
const e = Ue(() => pu());
|
|
6210
|
-
function t(n, r,
|
|
6211
|
-
const
|
|
6212
|
-
for (const a of
|
|
6213
|
-
const c =
|
|
6210
|
+
function t(n, r, s) {
|
|
6211
|
+
const o = Bu(r), i = {};
|
|
6212
|
+
for (const a of o) {
|
|
6213
|
+
const c = s?.[a] ?? $u(e.value, n, `${r}.${String(a)}`);
|
|
6214
6214
|
c !== void 0 && (i[a] = c);
|
|
6215
6215
|
}
|
|
6216
6216
|
return i;
|
|
@@ -6220,7 +6220,7 @@ function If() {
|
|
|
6220
6220
|
async function ju() {
|
|
6221
6221
|
return (await we().get("/metadata/entities")).data;
|
|
6222
6222
|
}
|
|
6223
|
-
async function
|
|
6223
|
+
async function wf(e) {
|
|
6224
6224
|
return (await we().get(
|
|
6225
6225
|
`/metadata/entities/${e}`
|
|
6226
6226
|
)).data;
|
|
@@ -6230,7 +6230,7 @@ async function Hu() {
|
|
|
6230
6230
|
"/metadata/routes"
|
|
6231
6231
|
)).data;
|
|
6232
6232
|
}
|
|
6233
|
-
const
|
|
6233
|
+
const Df = () => qu(en()), qu = /* @__PURE__ */ Zt("LinidConfigurationStore", {
|
|
6234
6234
|
state: () => ({
|
|
6235
6235
|
entities: [],
|
|
6236
6236
|
apiEndpoints: [],
|
|
@@ -6272,7 +6272,7 @@ const wf = () => qu(ir()), qu = /* @__PURE__ */ sr("LinidConfigurationStore", {
|
|
|
6272
6272
|
}
|
|
6273
6273
|
}
|
|
6274
6274
|
}
|
|
6275
|
-
}),
|
|
6275
|
+
}), kf = () => Wu(en()), Wu = /* @__PURE__ */ Zt("LinidUiStore", {
|
|
6276
6276
|
state: () => ({
|
|
6277
6277
|
mainNavigationItems: []
|
|
6278
6278
|
}),
|
|
@@ -6285,9 +6285,35 @@ const wf = () => qu(ir()), qu = /* @__PURE__ */ sr("LinidConfigurationStore", {
|
|
|
6285
6285
|
this.mainNavigationItems.push(...e);
|
|
6286
6286
|
}
|
|
6287
6287
|
}
|
|
6288
|
+
}), Ff = () => Gu(en()), Gu = /* @__PURE__ */ Zt("LinidUserStore", {
|
|
6289
|
+
/**
|
|
6290
|
+
* State properties of the user store.
|
|
6291
|
+
* @returns The initial state of the user store.
|
|
6292
|
+
*/
|
|
6293
|
+
state: () => ({
|
|
6294
|
+
user: { username: "", email: "", fullName: "", roles: [] },
|
|
6295
|
+
isAuthenticated: !1
|
|
6296
|
+
}),
|
|
6297
|
+
actions: {
|
|
6298
|
+
/**
|
|
6299
|
+
* Populates the store from the claims of an OIDC ID token.
|
|
6300
|
+
* Maps `sub` → username, `email`, `name` → fullName, `roles` → roles,
|
|
6301
|
+
* and flips `isAuthenticated` to true.
|
|
6302
|
+
* @param claims The decoded ID token claims provided by oidc-client-ts.
|
|
6303
|
+
*/
|
|
6304
|
+
setUserFromClaims(e) {
|
|
6305
|
+
const t = e.roles;
|
|
6306
|
+
this.user = {
|
|
6307
|
+
username: e.sub,
|
|
6308
|
+
email: typeof e.email == "string" ? e.email : "",
|
|
6309
|
+
fullName: typeof e.name == "string" ? e.name : "",
|
|
6310
|
+
roles: Array.isArray(t) ? t.filter((n) => typeof n == "string") : []
|
|
6311
|
+
}, this.isAuthenticated = !0;
|
|
6312
|
+
}
|
|
6313
|
+
}
|
|
6288
6314
|
});
|
|
6289
6315
|
let Jt = null;
|
|
6290
|
-
function
|
|
6316
|
+
function Uf(e) {
|
|
6291
6317
|
if (Jt !== null) {
|
|
6292
6318
|
console.warn(
|
|
6293
6319
|
"[LinID CoreLib] Nunjucks environment has already been initialized. Re-initialization is ignored."
|
|
@@ -6296,15 +6322,15 @@ function kf(e) {
|
|
|
6296
6322
|
}
|
|
6297
6323
|
Jt = e;
|
|
6298
6324
|
}
|
|
6299
|
-
function
|
|
6325
|
+
function Mf() {
|
|
6300
6326
|
if (Jt === null)
|
|
6301
6327
|
throw new Error(
|
|
6302
6328
|
"[LinID CoreLib] Nunjucks environment is not initialized. Call setNunjucksEnv() first."
|
|
6303
6329
|
);
|
|
6304
6330
|
return Jt;
|
|
6305
6331
|
}
|
|
6306
|
-
var
|
|
6307
|
-
class
|
|
6332
|
+
var Yu = /* @__PURE__ */ ((e) => (e.SETUP = "setup", e.CONFIGURE = "configure", e.INITIALIZE = "initialize", e.READY = "ready", e.POST_INIT = "postInit", e))(Yu || {});
|
|
6333
|
+
class xf {
|
|
6308
6334
|
/**
|
|
6309
6335
|
* Unique identifier for the module.
|
|
6310
6336
|
*
|
|
@@ -6330,8 +6356,8 @@ class Uf {
|
|
|
6330
6356
|
* @param version - Module version (semver).
|
|
6331
6357
|
* @param description - Optional module description.
|
|
6332
6358
|
*/
|
|
6333
|
-
constructor(t, n, r,
|
|
6334
|
-
this.id = t, this.name = n, this.version = r, this.description =
|
|
6359
|
+
constructor(t, n, r, s) {
|
|
6360
|
+
this.id = t, this.name = n, this.version = r, this.description = s;
|
|
6335
6361
|
}
|
|
6336
6362
|
/**
|
|
6337
6363
|
* Setup phase - validate dependencies and prepare the module.
|
|
@@ -6408,48 +6434,49 @@ class Uf {
|
|
|
6408
6434
|
}
|
|
6409
6435
|
}
|
|
6410
6436
|
export {
|
|
6411
|
-
|
|
6412
|
-
|
|
6413
|
-
|
|
6414
|
-
|
|
6415
|
-
|
|
6416
|
-
|
|
6417
|
-
|
|
6437
|
+
xf as BasicRemoteModule,
|
|
6438
|
+
Qu as LinidZoneRenderer,
|
|
6439
|
+
Yu as ModuleLifecyclePhase,
|
|
6440
|
+
lo as deepEqual,
|
|
6441
|
+
Yn as deepEqualUnordered,
|
|
6442
|
+
Tf as deleteEntityById,
|
|
6443
|
+
Af as fromDot,
|
|
6418
6444
|
Hu as getApiEndpointsConfiguration,
|
|
6419
|
-
|
|
6445
|
+
Of as getEntities,
|
|
6420
6446
|
ju as getEntitiesConfiguration,
|
|
6421
|
-
|
|
6422
|
-
|
|
6447
|
+
Sf as getEntityById,
|
|
6448
|
+
wf as getEntityConfiguration,
|
|
6423
6449
|
we as getHttpClient,
|
|
6424
6450
|
au as getI18nInstance,
|
|
6425
6451
|
ni as getModuleFederation,
|
|
6426
6452
|
at as getModuleHostConfiguration,
|
|
6427
|
-
|
|
6428
|
-
|
|
6453
|
+
Mf as getNunjucksEnv,
|
|
6454
|
+
en as getPiniaStore,
|
|
6429
6455
|
pu as getUiDesign,
|
|
6430
6456
|
rt as isObject,
|
|
6431
6457
|
ri as loadAsyncComponent,
|
|
6432
6458
|
ec as merge,
|
|
6433
|
-
|
|
6459
|
+
bf as registerModuleHostConfiguration,
|
|
6434
6460
|
tc as renameKeys,
|
|
6435
|
-
|
|
6436
|
-
|
|
6437
|
-
|
|
6438
|
-
|
|
6439
|
-
|
|
6440
|
-
|
|
6441
|
-
|
|
6442
|
-
|
|
6443
|
-
|
|
6444
|
-
|
|
6461
|
+
yf as saveEntity,
|
|
6462
|
+
gf as setHttpClient,
|
|
6463
|
+
Lf as setI18nInstance,
|
|
6464
|
+
Xu as setModuleFederation,
|
|
6465
|
+
Uf as setNunjucksEnv,
|
|
6466
|
+
Ju as setPiniaStore,
|
|
6467
|
+
If as setUiDesign,
|
|
6468
|
+
Vs as uiEventSubject,
|
|
6469
|
+
Nf as updateEntity,
|
|
6470
|
+
zu as useDialog,
|
|
6445
6471
|
fu as useFieldValidation,
|
|
6446
|
-
|
|
6447
|
-
|
|
6472
|
+
Df as useLinidConfigurationStore,
|
|
6473
|
+
kf as useLinidUiStore,
|
|
6474
|
+
Ff as useLinidUserStore,
|
|
6448
6475
|
ai as useLinidZoneStore,
|
|
6449
|
-
|
|
6450
|
-
|
|
6476
|
+
Rf as useNotify,
|
|
6477
|
+
vf as usePagination,
|
|
6451
6478
|
du as useQuasarFieldValidation,
|
|
6452
|
-
|
|
6479
|
+
Cf as useQuasarRules,
|
|
6453
6480
|
cu as useScopedI18n,
|
|
6454
|
-
|
|
6481
|
+
Pf as useUiDesign
|
|
6455
6482
|
};
|