@linagora/linid-im-front-corelib 0.0.54 → 0.0.55
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 +646 -639
- package/dist/core-lib.umd.js +12 -12
- package/dist/package.json +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/types/src/composables/useFieldValidation.d.ts +1 -0
- package/dist/types/src/composables/useQuasarFieldValidation.d.ts +1 -0
- package/dist/types/src/index.d.ts +1 -1
- package/dist/types/src/types/uiDesign.d.ts +11 -3
- package/package.json +1 -1
package/dist/core-lib.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as bn from "vue";
|
|
2
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 Ju(e) {
|
|
5
5
|
if ($t !== null) {
|
|
6
6
|
console.warn(
|
|
7
7
|
"[LinID CoreLib] Module Federation has already been initialized. Re-initialization is ignored."
|
|
@@ -88,19 +88,19 @@ function vr(e) {
|
|
|
88
88
|
function Cr(e, t, n, r) {
|
|
89
89
|
const { state: s, actions: o, getters: i } = t, a = n.state.value[e];
|
|
90
90
|
let c;
|
|
91
|
-
function
|
|
91
|
+
function u() {
|
|
92
92
|
!a && (process.env.NODE_ENV === "production" || !r) && (n.state.value[e] = s ? s() : {});
|
|
93
|
-
const
|
|
93
|
+
const f = process.env.NODE_ENV !== "production" && r ? (
|
|
94
94
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
95
95
|
Sr(Qt(s ? s() : {}).value)
|
|
96
96
|
) : Sr(n.state.value[e]);
|
|
97
|
-
return _e(
|
|
97
|
+
return _e(f, o, Object.keys(i || {}).reduce((m, p) => (process.env.NODE_ENV !== "production" && p in f && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${p}" in store "${e}".`), m[p] = mt(Ue(() => {
|
|
98
98
|
Bt(n);
|
|
99
|
-
const
|
|
100
|
-
return i[
|
|
101
|
-
})),
|
|
99
|
+
const T = n._s.get(e);
|
|
100
|
+
return i[p].call(T, T);
|
|
101
|
+
})), m), {}));
|
|
102
102
|
}
|
|
103
|
-
return c = Un(e,
|
|
103
|
+
return c = Un(e, u, t, n, r, !0), c;
|
|
104
104
|
}
|
|
105
105
|
function Un(e, t, n = {}, r, s, o) {
|
|
106
106
|
let i;
|
|
@@ -109,29 +109,29 @@ function Un(e, t, n = {}, r, s, o) {
|
|
|
109
109
|
throw new Error("Pinia destroyed");
|
|
110
110
|
const c = { deep: !0 };
|
|
111
111
|
process.env.NODE_ENV !== "production" && (c.onTrigger = (I) => {
|
|
112
|
-
|
|
112
|
+
u ? T = I : u == !1 && !h._hotUpdating && (Array.isArray(T) ? T.push(I) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
|
113
113
|
});
|
|
114
|
-
let
|
|
114
|
+
let u, f, m = /* @__PURE__ */ new Set(), p = /* @__PURE__ */ new Set(), T;
|
|
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
|
-
function
|
|
119
|
+
function _(I) {
|
|
120
120
|
let P;
|
|
121
|
-
|
|
121
|
+
u = f = !1, process.env.NODE_ENV !== "production" && (T = []), typeof I == "function" ? (I(r.state.value[e]), P = {
|
|
122
122
|
type: _t.patchFunction,
|
|
123
123
|
storeId: e,
|
|
124
|
-
events:
|
|
124
|
+
events: T
|
|
125
125
|
}) : (Fn(r.state.value[e], I), P = {
|
|
126
126
|
type: _t.patchObject,
|
|
127
127
|
payload: I,
|
|
128
128
|
storeId: e,
|
|
129
|
-
events:
|
|
129
|
+
events: T
|
|
130
130
|
});
|
|
131
131
|
const k = N = /* @__PURE__ */ Symbol();
|
|
132
132
|
Or().then(() => {
|
|
133
|
-
N === k && (
|
|
134
|
-
}),
|
|
133
|
+
N === k && (u = !0);
|
|
134
|
+
}), f = !0, ze(m, P, r.state.value[e]);
|
|
135
135
|
}
|
|
136
136
|
const O = o ? function() {
|
|
137
137
|
const { state: P } = n, k = P ? P() : {};
|
|
@@ -144,8 +144,8 @@ function Un(e, t, n = {}, r, s, o) {
|
|
|
144
144
|
throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`);
|
|
145
145
|
} : Ds
|
|
146
146
|
);
|
|
147
|
-
function
|
|
148
|
-
i.stop(),
|
|
147
|
+
function A() {
|
|
148
|
+
i.stop(), m.clear(), p.clear(), r._s.delete(e);
|
|
149
149
|
}
|
|
150
150
|
const y = (I, P = "") => {
|
|
151
151
|
if (Rr in I)
|
|
@@ -159,7 +159,7 @@ function Un(e, t, n = {}, r, s, o) {
|
|
|
159
159
|
function ke(Z) {
|
|
160
160
|
Ne.add(Z);
|
|
161
161
|
}
|
|
162
|
-
ze(
|
|
162
|
+
ze(p, {
|
|
163
163
|
args: q,
|
|
164
164
|
name: k[On],
|
|
165
165
|
store: h,
|
|
@@ -184,20 +184,20 @@ function Un(e, t, n = {}, r, s, o) {
|
|
|
184
184
|
_p: r,
|
|
185
185
|
// _s: scope,
|
|
186
186
|
$id: e,
|
|
187
|
-
$onAction: Lr.bind(null,
|
|
188
|
-
$patch:
|
|
187
|
+
$onAction: Lr.bind(null, p),
|
|
188
|
+
$patch: _,
|
|
189
189
|
$reset: O,
|
|
190
190
|
$subscribe(I, P = {}) {
|
|
191
|
-
const k = Lr(
|
|
192
|
-
(P.flush === "sync" ?
|
|
191
|
+
const k = Lr(m, I, P.detached, () => q()), q = i.run(() => Dn(() => r.state.value[e], (se) => {
|
|
192
|
+
(P.flush === "sync" ? f : u) && I({
|
|
193
193
|
storeId: e,
|
|
194
194
|
type: _t.direct,
|
|
195
|
-
events:
|
|
195
|
+
events: T
|
|
196
196
|
}, se);
|
|
197
197
|
}, _e({}, c, P)));
|
|
198
198
|
return k;
|
|
199
199
|
},
|
|
200
|
-
$dispose:
|
|
200
|
+
$dispose: A
|
|
201
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,
|
|
@@ -228,7 +228,7 @@ function Un(e, t, n = {}, r, s, o) {
|
|
|
228
228
|
set: (I) => {
|
|
229
229
|
if (process.env.NODE_ENV !== "production" && s)
|
|
230
230
|
throw new Error("cannot set hotState");
|
|
231
|
-
|
|
231
|
+
_((P) => {
|
|
232
232
|
_e(P, I);
|
|
233
233
|
});
|
|
234
234
|
}
|
|
@@ -241,8 +241,8 @@ function Un(e, t, n = {}, r, s, o) {
|
|
|
241
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
|
-
}),
|
|
245
|
-
|
|
244
|
+
}), u = !1, f = !1, r.state.value[e] = yn(I._hmrPayload, "hotState"), f = !0, Or().then(() => {
|
|
245
|
+
u = !0;
|
|
246
246
|
});
|
|
247
247
|
for (const P in I._hmrPayload.actions) {
|
|
248
248
|
const k = I[P];
|
|
@@ -291,7 +291,7 @@ function Un(e, t, n = {}, r, s, o) {
|
|
|
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 && o && n.hydrate && n.hydrate(h.$state, g),
|
|
294
|
+
Found in store "${h.$id}".`), g && o && n.hydrate && n.hydrate(h.$state, g), u = !0, f = !0, h;
|
|
295
295
|
}
|
|
296
296
|
// @__NO_SIDE_EFFECTS__
|
|
297
297
|
function Zt(e, t, n) {
|
|
@@ -307,25 +307,25 @@ function Zt(e, t, n) {
|
|
|
307
307
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
308
308
|
This will fail in production.`);
|
|
309
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
|
-
const
|
|
310
|
+
const u = i._s.get(e);
|
|
311
311
|
if (process.env.NODE_ENV !== "production" && a) {
|
|
312
|
-
const
|
|
313
|
-
a._hotUpdate(
|
|
312
|
+
const f = "__hot:" + e, m = s ? Un(f, t, r, i, !0) : Cr(f, _e({}, r), i, !0);
|
|
313
|
+
a._hotUpdate(m), delete i.state.value[f], i._s.delete(f);
|
|
314
314
|
}
|
|
315
315
|
if (process.env.NODE_ENV !== "production" && tt) {
|
|
316
|
-
const
|
|
317
|
-
if (
|
|
316
|
+
const f = Bo();
|
|
317
|
+
if (f && f.proxy && // avoid adding stores that are just built for hot module replacement
|
|
318
318
|
!a) {
|
|
319
|
-
const
|
|
320
|
-
|
|
319
|
+
const m = f.proxy, p = "_pStores" in m ? m._pStores : m._pStores = {};
|
|
320
|
+
p[e] = u;
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
|
-
return
|
|
323
|
+
return u;
|
|
324
324
|
}
|
|
325
325
|
return o.$id = e, o;
|
|
326
326
|
}
|
|
327
327
|
let jt = null;
|
|
328
|
-
function
|
|
328
|
+
function Qu(e) {
|
|
329
329
|
if (jt !== null) {
|
|
330
330
|
console.warn(
|
|
331
331
|
"[LinID CoreLib] Pinia store has already been initialized. Re-initialization is ignored."
|
|
@@ -364,7 +364,7 @@ const ai = () => ci(en()), ci = /* @__PURE__ */ Zt("linidZoneStore", {
|
|
|
364
364
|
this.zones[e]?.some(({ plugin: n }) => n === t.plugin) || this.register(e, t);
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
|
-
}),
|
|
367
|
+
}), zu = /* @__PURE__ */ zt({
|
|
368
368
|
inheritAttrs: !1,
|
|
369
369
|
__name: "LinidZoneRenderer",
|
|
370
370
|
props: {
|
|
@@ -470,8 +470,8 @@ var nn = (function() {
|
|
|
470
470
|
if (this._parentage = null, Array.isArray(i))
|
|
471
471
|
try {
|
|
472
472
|
for (var a = xn(i), c = a.next(); !c.done; c = a.next()) {
|
|
473
|
-
var
|
|
474
|
-
|
|
473
|
+
var u = c.value;
|
|
474
|
+
u.remove(this);
|
|
475
475
|
}
|
|
476
476
|
} catch (b) {
|
|
477
477
|
t = { error: b };
|
|
@@ -484,19 +484,19 @@ var nn = (function() {
|
|
|
484
484
|
}
|
|
485
485
|
else
|
|
486
486
|
i.remove(this);
|
|
487
|
-
var
|
|
488
|
-
if (Ce(
|
|
487
|
+
var f = this.initialTeardown;
|
|
488
|
+
if (Ce(f))
|
|
489
489
|
try {
|
|
490
|
-
|
|
490
|
+
f();
|
|
491
491
|
} catch (b) {
|
|
492
492
|
o = b instanceof Sn ? b.errors : [b];
|
|
493
493
|
}
|
|
494
|
-
var
|
|
495
|
-
if (
|
|
494
|
+
var m = this._finalizers;
|
|
495
|
+
if (m) {
|
|
496
496
|
this._finalizers = null;
|
|
497
497
|
try {
|
|
498
|
-
for (var
|
|
499
|
-
var g =
|
|
498
|
+
for (var p = xn(m), T = p.next(); !T.done; T = p.next()) {
|
|
499
|
+
var g = T.value;
|
|
500
500
|
try {
|
|
501
501
|
Ir(g);
|
|
502
502
|
} catch (b) {
|
|
@@ -507,7 +507,7 @@ var nn = (function() {
|
|
|
507
507
|
r = { error: b };
|
|
508
508
|
} finally {
|
|
509
509
|
try {
|
|
510
|
-
|
|
510
|
+
T && !T.done && (s = p.return) && s.call(p);
|
|
511
511
|
} finally {
|
|
512
512
|
if (r) throw r.error;
|
|
513
513
|
}
|
|
@@ -770,8 +770,8 @@ var yi = ks(function(e) {
|
|
|
770
770
|
var c = a.value;
|
|
771
771
|
c.next(n);
|
|
772
772
|
}
|
|
773
|
-
} catch (
|
|
774
|
-
s = { error:
|
|
773
|
+
} catch (u) {
|
|
774
|
+
s = { error: u };
|
|
775
775
|
} finally {
|
|
776
776
|
try {
|
|
777
777
|
a && !a.done && (o = i.return) && o.call(i);
|
|
@@ -847,7 +847,7 @@ var yi = ks(function(e) {
|
|
|
847
847
|
}, t;
|
|
848
848
|
})(xs);
|
|
849
849
|
const Vs = new xs();
|
|
850
|
-
function
|
|
850
|
+
function Zu(e, t) {
|
|
851
851
|
const n = Qt(!1);
|
|
852
852
|
let r;
|
|
853
853
|
function s(o) {
|
|
@@ -1223,10 +1223,10 @@ function an(e, t, n) {
|
|
|
1223
1223
|
return !E.isUndefined(N[b]);
|
|
1224
1224
|
}
|
|
1225
1225
|
);
|
|
1226
|
-
const r = n.metaTokens, s = n.visitor ||
|
|
1226
|
+
const r = n.metaTokens, s = n.visitor || f, o = n.dots, i = n.indexes, c = (n.Blob || typeof Blob < "u" && Blob) && E.isSpecCompliantForm(t);
|
|
1227
1227
|
if (!E.isFunction(s))
|
|
1228
1228
|
throw new TypeError("visitor must be a function");
|
|
1229
|
-
function
|
|
1229
|
+
function u(g) {
|
|
1230
1230
|
if (g === null) return "";
|
|
1231
1231
|
if (E.isDate(g))
|
|
1232
1232
|
return g.toISOString();
|
|
@@ -1236,41 +1236,41 @@ function an(e, t, n) {
|
|
|
1236
1236
|
throw new U("Blob is not supported. Use a Buffer instead.");
|
|
1237
1237
|
return E.isArrayBuffer(g) || E.isTypedArray(g) ? c && typeof Blob == "function" ? new Blob([g]) : Buffer.from(g) : g;
|
|
1238
1238
|
}
|
|
1239
|
-
function
|
|
1240
|
-
let
|
|
1239
|
+
function f(g, b, N) {
|
|
1240
|
+
let _ = g;
|
|
1241
1241
|
if (E.isReactNative(t) && E.isReactNativeBlob(g))
|
|
1242
|
-
return t.append(Tn(N, b, o),
|
|
1242
|
+
return t.append(Tn(N, b, o), u(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
|
-
else if (E.isArray(g) && ua(g) || (E.isFileList(g) || E.endsWith(b, "[]")) && (
|
|
1247
|
-
return b = Xs(b),
|
|
1248
|
-
!(E.isUndefined(
|
|
1246
|
+
else if (E.isArray(g) && ua(g) || (E.isFileList(g) || E.endsWith(b, "[]")) && (_ = E.toArray(g)))
|
|
1247
|
+
return b = Xs(b), _.forEach(function(A, y) {
|
|
1248
|
+
!(E.isUndefined(A) || A === null) && t.append(
|
|
1249
1249
|
// eslint-disable-next-line no-nested-ternary
|
|
1250
1250
|
i === !0 ? Tn([b], y, o) : i === null ? b : b + "[]",
|
|
1251
|
-
|
|
1251
|
+
u(A)
|
|
1252
1252
|
);
|
|
1253
1253
|
}), !1;
|
|
1254
1254
|
}
|
|
1255
|
-
return qn(g) ? !0 : (t.append(Tn(N, b, o),
|
|
1255
|
+
return qn(g) ? !0 : (t.append(Tn(N, b, o), u(g)), !1);
|
|
1256
1256
|
}
|
|
1257
|
-
const
|
|
1258
|
-
defaultVisitor:
|
|
1259
|
-
convertValue:
|
|
1257
|
+
const m = [], p = Object.assign(fa, {
|
|
1258
|
+
defaultVisitor: f,
|
|
1259
|
+
convertValue: u,
|
|
1260
1260
|
isVisitable: qn
|
|
1261
1261
|
});
|
|
1262
|
-
function
|
|
1262
|
+
function T(g, b) {
|
|
1263
1263
|
if (!E.isUndefined(g)) {
|
|
1264
|
-
if (
|
|
1264
|
+
if (m.indexOf(g) !== -1)
|
|
1265
1265
|
throw Error("Circular reference detected in " + b.join("."));
|
|
1266
|
-
|
|
1267
|
-
(!(E.isUndefined(
|
|
1268
|
-
}),
|
|
1266
|
+
m.push(g), E.forEach(g, function(_, O) {
|
|
1267
|
+
(!(E.isUndefined(_) || _ === null) && s.call(t, _, E.isString(O) ? O.trim() : O, b, p)) === !0 && T(_, b ? b.concat(O) : [O]);
|
|
1268
|
+
}), m.pop();
|
|
1269
1269
|
}
|
|
1270
1270
|
}
|
|
1271
1271
|
if (!E.isObject(e))
|
|
1272
1272
|
throw new TypeError("data must be an object");
|
|
1273
|
-
return
|
|
1273
|
+
return T(e), t;
|
|
1274
1274
|
}
|
|
1275
1275
|
function xr(e) {
|
|
1276
1276
|
const t = {
|
|
@@ -1585,24 +1585,24 @@ let fe = class {
|
|
|
1585
1585
|
}
|
|
1586
1586
|
set(t, n, r) {
|
|
1587
1587
|
const s = this;
|
|
1588
|
-
function o(a, c,
|
|
1589
|
-
const
|
|
1590
|
-
if (!
|
|
1588
|
+
function o(a, c, u) {
|
|
1589
|
+
const f = dt(c);
|
|
1590
|
+
if (!f)
|
|
1591
1591
|
throw new Error("header name must be a non-empty string");
|
|
1592
|
-
const
|
|
1593
|
-
(!
|
|
1592
|
+
const m = E.findKey(s, f);
|
|
1593
|
+
(!m || s[m] === void 0 || u === !0 || u === void 0 && s[m] !== !1) && (s[m || c] = Ft(a));
|
|
1594
1594
|
}
|
|
1595
|
-
const i = (a, c) => E.forEach(a, (
|
|
1595
|
+
const i = (a, c) => E.forEach(a, (u, f) => o(u, f, 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))
|
|
1599
1599
|
i(La(t), n);
|
|
1600
1600
|
else if (E.isObject(t) && E.isIterable(t)) {
|
|
1601
|
-
let a = {}, c,
|
|
1602
|
-
for (const
|
|
1603
|
-
if (!E.isArray(
|
|
1601
|
+
let a = {}, c, u;
|
|
1602
|
+
for (const f of t) {
|
|
1603
|
+
if (!E.isArray(f))
|
|
1604
1604
|
throw TypeError("Object iterator must return a key-value pair");
|
|
1605
|
-
a[
|
|
1605
|
+
a[u = f[0]] = (c = a[u]) ? E.isArray(c) ? [...c, f[1]] : [c, f[1]] : f[1];
|
|
1606
1606
|
}
|
|
1607
1607
|
i(a, n);
|
|
1608
1608
|
} else
|
|
@@ -1768,47 +1768,47 @@ function wa(e, t) {
|
|
|
1768
1768
|
const n = new Array(e), r = new Array(e);
|
|
1769
1769
|
let s = 0, o = 0, i;
|
|
1770
1770
|
return t = t !== void 0 ? t : 1e3, function(c) {
|
|
1771
|
-
const
|
|
1772
|
-
i || (i =
|
|
1773
|
-
let
|
|
1774
|
-
for (;
|
|
1775
|
-
|
|
1776
|
-
if (s = (s + 1) % e, s === o && (o = (o + 1) % e),
|
|
1771
|
+
const u = Date.now(), f = r[o];
|
|
1772
|
+
i || (i = u), n[s] = c, r[s] = u;
|
|
1773
|
+
let m = o, p = 0;
|
|
1774
|
+
for (; m !== s; )
|
|
1775
|
+
p += n[m++], m = m % e;
|
|
1776
|
+
if (s = (s + 1) % e, s === o && (o = (o + 1) % e), u - i < t)
|
|
1777
1777
|
return;
|
|
1778
|
-
const
|
|
1779
|
-
return
|
|
1778
|
+
const T = f && u - f;
|
|
1779
|
+
return T ? Math.round(p * 1e3 / T) : void 0;
|
|
1780
1780
|
};
|
|
1781
1781
|
}
|
|
1782
1782
|
function Da(e, t) {
|
|
1783
1783
|
let n = 0, r = 1e3 / t, s, o;
|
|
1784
|
-
const i = (
|
|
1785
|
-
n =
|
|
1784
|
+
const i = (u, f = Date.now()) => {
|
|
1785
|
+
n = f, s = null, o && (clearTimeout(o), o = null), e(...u);
|
|
1786
1786
|
};
|
|
1787
|
-
return [(...
|
|
1788
|
-
const
|
|
1789
|
-
|
|
1787
|
+
return [(...u) => {
|
|
1788
|
+
const f = Date.now(), m = f - n;
|
|
1789
|
+
m >= r ? i(u, f) : (s = u, o || (o = setTimeout(() => {
|
|
1790
1790
|
o = null, i(s);
|
|
1791
|
-
}, r -
|
|
1791
|
+
}, r - m)));
|
|
1792
1792
|
}, () => s && i(s)];
|
|
1793
1793
|
}
|
|
1794
1794
|
const Ht = (e, t, n = 3) => {
|
|
1795
1795
|
let r = 0;
|
|
1796
1796
|
const s = wa(50, 250);
|
|
1797
1797
|
return Da((o) => {
|
|
1798
|
-
const i = o.loaded, a = o.lengthComputable ? o.total : void 0, c = i - r,
|
|
1798
|
+
const i = o.loaded, a = o.lengthComputable ? o.total : void 0, c = i - r, u = s(c), f = i <= a;
|
|
1799
1799
|
r = i;
|
|
1800
|
-
const
|
|
1800
|
+
const m = {
|
|
1801
1801
|
loaded: i,
|
|
1802
1802
|
total: a,
|
|
1803
1803
|
progress: a ? i / a : void 0,
|
|
1804
1804
|
bytes: c,
|
|
1805
|
-
rate:
|
|
1806
|
-
estimated:
|
|
1805
|
+
rate: u || void 0,
|
|
1806
|
+
estimated: u && a && f ? (a - i) / u : void 0,
|
|
1807
1807
|
event: o,
|
|
1808
1808
|
lengthComputable: a != null,
|
|
1809
1809
|
[t ? "download" : "upload"]: !0
|
|
1810
1810
|
};
|
|
1811
|
-
e(
|
|
1811
|
+
e(m);
|
|
1812
1812
|
}, n);
|
|
1813
1813
|
}, Br = (e, t) => {
|
|
1814
1814
|
const n = e != null;
|
|
@@ -1866,30 +1866,30 @@ const Hr = (e) => e instanceof fe ? { ...e } : e;
|
|
|
1866
1866
|
function Xe(e, t) {
|
|
1867
1867
|
t = t || {};
|
|
1868
1868
|
const n = {};
|
|
1869
|
-
function r(f,
|
|
1870
|
-
return E.isPlainObject(
|
|
1869
|
+
function r(u, f, m, p) {
|
|
1870
|
+
return E.isPlainObject(u) && E.isPlainObject(f) ? E.merge.call({ caseless: p }, u, f) : E.isPlainObject(f) ? E.merge({}, f) : E.isArray(f) ? f.slice() : f;
|
|
1871
1871
|
}
|
|
1872
|
-
function s(f,
|
|
1873
|
-
if (E.isUndefined(
|
|
1874
|
-
if (!E.isUndefined(
|
|
1875
|
-
return r(void 0,
|
|
1876
|
-
} else return r(f,
|
|
1872
|
+
function s(u, f, m, p) {
|
|
1873
|
+
if (E.isUndefined(f)) {
|
|
1874
|
+
if (!E.isUndefined(u))
|
|
1875
|
+
return r(void 0, u, m, p);
|
|
1876
|
+
} else return r(u, f, m, p);
|
|
1877
1877
|
}
|
|
1878
|
-
function o(
|
|
1879
|
-
if (!E.isUndefined(
|
|
1880
|
-
return r(void 0,
|
|
1878
|
+
function o(u, f) {
|
|
1879
|
+
if (!E.isUndefined(f))
|
|
1880
|
+
return r(void 0, f);
|
|
1881
1881
|
}
|
|
1882
|
-
function i(
|
|
1883
|
-
if (E.isUndefined(
|
|
1884
|
-
if (!E.isUndefined(
|
|
1885
|
-
return r(void 0,
|
|
1886
|
-
} else return r(void 0,
|
|
1882
|
+
function i(u, f) {
|
|
1883
|
+
if (E.isUndefined(f)) {
|
|
1884
|
+
if (!E.isUndefined(u))
|
|
1885
|
+
return r(void 0, u);
|
|
1886
|
+
} else return r(void 0, f);
|
|
1887
1887
|
}
|
|
1888
|
-
function a(
|
|
1889
|
-
if (
|
|
1890
|
-
return r(
|
|
1891
|
-
if (
|
|
1892
|
-
return r(void 0,
|
|
1888
|
+
function a(u, f, m) {
|
|
1889
|
+
if (m in t)
|
|
1890
|
+
return r(u, f);
|
|
1891
|
+
if (m in e)
|
|
1892
|
+
return r(void 0, u);
|
|
1893
1893
|
}
|
|
1894
1894
|
const c = {
|
|
1895
1895
|
url: o,
|
|
@@ -1920,12 +1920,12 @@ function Xe(e, t) {
|
|
|
1920
1920
|
socketPath: i,
|
|
1921
1921
|
responseEncoding: i,
|
|
1922
1922
|
validateStatus: a,
|
|
1923
|
-
headers: (
|
|
1923
|
+
headers: (u, f, m) => s(Hr(u), Hr(f), m, !0)
|
|
1924
1924
|
};
|
|
1925
|
-
return E.forEach(Object.keys({ ...e, ...t }), function(
|
|
1926
|
-
if (
|
|
1927
|
-
const
|
|
1928
|
-
E.isUndefined(
|
|
1925
|
+
return E.forEach(Object.keys({ ...e, ...t }), function(f) {
|
|
1926
|
+
if (f === "__proto__" || f === "constructor" || f === "prototype") return;
|
|
1927
|
+
const m = E.hasOwnProp(c, f) ? c[f] : s, p = m(e[f], t[f], f);
|
|
1928
|
+
E.isUndefined(p) && m !== a || (n[f] = p);
|
|
1929
1929
|
}), n;
|
|
1930
1930
|
}
|
|
1931
1931
|
const no = (e) => {
|
|
@@ -1944,9 +1944,9 @@ const no = (e) => {
|
|
|
1944
1944
|
if (ce.hasStandardBrowserEnv || ce.hasStandardBrowserWebWorkerEnv)
|
|
1945
1945
|
i.setContentType(void 0);
|
|
1946
1946
|
else if (E.isFunction(n.getHeaders)) {
|
|
1947
|
-
const c = n.getHeaders(),
|
|
1948
|
-
Object.entries(c).forEach(([
|
|
1949
|
-
|
|
1947
|
+
const c = n.getHeaders(), u = ["content-type", "content-length"];
|
|
1948
|
+
Object.entries(c).forEach(([f, m]) => {
|
|
1949
|
+
u.includes(f.toLowerCase()) && i.set(f, m);
|
|
1950
1950
|
});
|
|
1951
1951
|
}
|
|
1952
1952
|
}
|
|
@@ -1960,22 +1960,22 @@ const no = (e) => {
|
|
|
1960
1960
|
const s = no(e);
|
|
1961
1961
|
let o = s.data;
|
|
1962
1962
|
const i = fe.from(s.headers).normalize();
|
|
1963
|
-
let { responseType: a, onUploadProgress: c, onDownloadProgress:
|
|
1963
|
+
let { responseType: a, onUploadProgress: c, onDownloadProgress: u } = s, f, m, p, T, g;
|
|
1964
1964
|
function b() {
|
|
1965
|
-
|
|
1965
|
+
T && T(), g && g(), s.cancelToken && s.cancelToken.unsubscribe(f), s.signal && s.signal.removeEventListener("abort", f);
|
|
1966
1966
|
}
|
|
1967
1967
|
let N = new XMLHttpRequest();
|
|
1968
1968
|
N.open(s.method.toUpperCase(), s.url, !0), N.timeout = s.timeout;
|
|
1969
|
-
function
|
|
1969
|
+
function _() {
|
|
1970
1970
|
if (!N)
|
|
1971
1971
|
return;
|
|
1972
|
-
const
|
|
1972
|
+
const A = fe.from(
|
|
1973
1973
|
"getAllResponseHeaders" in N && N.getAllResponseHeaders()
|
|
1974
1974
|
), v = {
|
|
1975
1975
|
data: !a || a === "text" || a === "json" ? N.responseText : N.response,
|
|
1976
1976
|
status: N.status,
|
|
1977
1977
|
statusText: N.statusText,
|
|
1978
|
-
headers:
|
|
1978
|
+
headers: A,
|
|
1979
1979
|
config: e,
|
|
1980
1980
|
request: N
|
|
1981
1981
|
};
|
|
@@ -1989,8 +1989,8 @@ const no = (e) => {
|
|
|
1989
1989
|
v
|
|
1990
1990
|
), N = null;
|
|
1991
1991
|
}
|
|
1992
|
-
"onloadend" in N ? N.onloadend =
|
|
1993
|
-
!N || N.readyState !== 4 || N.status === 0 && !(N.responseURL && N.responseURL.indexOf("file:") === 0) || setTimeout(
|
|
1992
|
+
"onloadend" in N ? N.onloadend = _ : N.onreadystatechange = function() {
|
|
1993
|
+
!N || N.readyState !== 4 || N.status === 0 && !(N.responseURL && N.responseURL.indexOf("file:") === 0) || setTimeout(_);
|
|
1994
1994
|
}, N.onabort = function() {
|
|
1995
1995
|
N && (r(new U("Request aborted", U.ECONNABORTED, e, N)), N = null);
|
|
1996
1996
|
}, N.onerror = function(y) {
|
|
@@ -2009,9 +2009,9 @@ const no = (e) => {
|
|
|
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(s.withCredentials) || (N.withCredentials = !!s.withCredentials), a && a !== "json" && (N.responseType = s.responseType),
|
|
2013
|
-
N && (r(!
|
|
2014
|
-
}, s.cancelToken && s.cancelToken.subscribe(
|
|
2012
|
+
}), E.isUndefined(s.withCredentials) || (N.withCredentials = !!s.withCredentials), a && a !== "json" && (N.responseType = s.responseType), u && ([p, g] = Ht(u, !0), N.addEventListener("progress", p)), c && N.upload && ([m, T] = Ht(c), N.upload.addEventListener("progress", m), N.upload.addEventListener("loadend", T)), (s.cancelToken || s.signal) && (f = (A) => {
|
|
2013
|
+
N && (r(!A || A.type ? new At(null, e, N) : A), N.abort(), N = null);
|
|
2014
|
+
}, s.cancelToken && s.cancelToken.subscribe(f), s.signal && (s.signal.aborted ? f() : s.signal.addEventListener("abort", f)));
|
|
2015
2015
|
const O = Pa(s.url);
|
|
2016
2016
|
if (O && ce.protocols.indexOf(O) === -1) {
|
|
2017
2017
|
r(
|
|
@@ -2029,12 +2029,12 @@ const no = (e) => {
|
|
|
2029
2029
|
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
2030
2030
|
if (t || n) {
|
|
2031
2031
|
let r = new AbortController(), s;
|
|
2032
|
-
const o = function(
|
|
2032
|
+
const o = function(u) {
|
|
2033
2033
|
if (!s) {
|
|
2034
2034
|
s = !0, a();
|
|
2035
|
-
const
|
|
2035
|
+
const f = u instanceof Error ? u : this.reason;
|
|
2036
2036
|
r.abort(
|
|
2037
|
-
|
|
2037
|
+
f instanceof U ? f : new At(f instanceof Error ? f.message : f)
|
|
2038
2038
|
);
|
|
2039
2039
|
}
|
|
2040
2040
|
};
|
|
@@ -2042,11 +2042,11 @@ const no = (e) => {
|
|
|
2042
2042
|
i = null, o(new U(`timeout of ${t}ms exceeded`, U.ETIMEDOUT));
|
|
2043
2043
|
}, t);
|
|
2044
2044
|
const a = () => {
|
|
2045
|
-
e && (i && clearTimeout(i), i = null, e.forEach((
|
|
2046
|
-
|
|
2045
|
+
e && (i && clearTimeout(i), i = null, e.forEach((u) => {
|
|
2046
|
+
u.unsubscribe ? u.unsubscribe(o) : u.removeEventListener("abort", o);
|
|
2047
2047
|
}), e = null);
|
|
2048
2048
|
};
|
|
2049
|
-
e.forEach((
|
|
2049
|
+
e.forEach((u) => u.addEventListener("abort", o));
|
|
2050
2050
|
const { signal: c } = r;
|
|
2051
2051
|
return c.unsubscribe = () => E.asap(a), c;
|
|
2052
2052
|
}
|
|
@@ -2087,19 +2087,19 @@ const no = (e) => {
|
|
|
2087
2087
|
{
|
|
2088
2088
|
async pull(c) {
|
|
2089
2089
|
try {
|
|
2090
|
-
const { done:
|
|
2091
|
-
if (
|
|
2090
|
+
const { done: u, value: f } = await s.next();
|
|
2091
|
+
if (u) {
|
|
2092
2092
|
a(), c.close();
|
|
2093
2093
|
return;
|
|
2094
2094
|
}
|
|
2095
|
-
let
|
|
2095
|
+
let m = f.byteLength;
|
|
2096
2096
|
if (n) {
|
|
2097
|
-
let
|
|
2098
|
-
n(
|
|
2097
|
+
let p = o += m;
|
|
2098
|
+
n(p);
|
|
2099
2099
|
}
|
|
2100
|
-
c.enqueue(new Uint8Array(
|
|
2101
|
-
} catch (
|
|
2102
|
-
throw a(
|
|
2100
|
+
c.enqueue(new Uint8Array(f));
|
|
2101
|
+
} catch (u) {
|
|
2102
|
+
throw a(u), u;
|
|
2103
2103
|
}
|
|
2104
2104
|
},
|
|
2105
2105
|
cancel(c) {
|
|
@@ -2130,7 +2130,7 @@ const no = (e) => {
|
|
|
2130
2130
|
const { fetch: t, Request: n, Response: r } = e, s = t ? Ct(t) : typeof fetch == "function", o = Ct(n), i = Ct(r);
|
|
2131
2131
|
if (!s)
|
|
2132
2132
|
return !1;
|
|
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())),
|
|
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())), u = o && a && Kr(() => {
|
|
2134
2134
|
let g = !1;
|
|
2135
2135
|
const b = new n(ce.origin, {
|
|
2136
2136
|
body: new Gr(),
|
|
@@ -2140,14 +2140,14 @@ const no = (e) => {
|
|
|
2140
2140
|
}
|
|
2141
2141
|
}).headers.has("Content-Type");
|
|
2142
2142
|
return g && !b;
|
|
2143
|
-
}),
|
|
2144
|
-
stream:
|
|
2143
|
+
}), f = i && a && Kr(() => E.isReadableStream(new r("").body)), m = {
|
|
2144
|
+
stream: f && ((g) => g.body)
|
|
2145
2145
|
};
|
|
2146
2146
|
s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((g) => {
|
|
2147
|
-
!
|
|
2148
|
-
let
|
|
2149
|
-
if (
|
|
2150
|
-
return
|
|
2147
|
+
!m[g] && (m[g] = (b, N) => {
|
|
2148
|
+
let _ = b && b[g];
|
|
2149
|
+
if (_)
|
|
2150
|
+
return _.call(b);
|
|
2151
2151
|
throw new U(
|
|
2152
2152
|
`Response type '${g}' is not supported`,
|
|
2153
2153
|
U.ERR_NOT_SUPPORT,
|
|
@@ -2155,7 +2155,7 @@ const no = (e) => {
|
|
|
2155
2155
|
);
|
|
2156
2156
|
});
|
|
2157
2157
|
});
|
|
2158
|
-
const
|
|
2158
|
+
const p = async (g) => {
|
|
2159
2159
|
if (g == null)
|
|
2160
2160
|
return 0;
|
|
2161
2161
|
if (E.isBlob(g))
|
|
@@ -2169,17 +2169,17 @@ const no = (e) => {
|
|
|
2169
2169
|
return g.byteLength;
|
|
2170
2170
|
if (E.isURLSearchParams(g) && (g = g + ""), E.isString(g))
|
|
2171
2171
|
return (await c(g)).byteLength;
|
|
2172
|
-
},
|
|
2172
|
+
}, T = async (g, b) => {
|
|
2173
2173
|
const N = E.toFiniteNumber(g.getContentLength());
|
|
2174
|
-
return N ??
|
|
2174
|
+
return N ?? p(b);
|
|
2175
2175
|
};
|
|
2176
2176
|
return async (g) => {
|
|
2177
2177
|
let {
|
|
2178
2178
|
url: b,
|
|
2179
2179
|
method: N,
|
|
2180
|
-
data:
|
|
2180
|
+
data: _,
|
|
2181
2181
|
signal: O,
|
|
2182
|
-
cancelToken:
|
|
2182
|
+
cancelToken: A,
|
|
2183
2183
|
timeout: y,
|
|
2184
2184
|
onDownloadProgress: v,
|
|
2185
2185
|
onUploadProgress: C,
|
|
@@ -2190,7 +2190,7 @@ const no = (e) => {
|
|
|
2190
2190
|
} = no(g), P = t || fetch;
|
|
2191
2191
|
h = h ? (h + "").toLowerCase() : "text";
|
|
2192
2192
|
let k = $a(
|
|
2193
|
-
[O,
|
|
2193
|
+
[O, A && A.toAbortSignal()],
|
|
2194
2194
|
y
|
|
2195
2195
|
), q = null;
|
|
2196
2196
|
const se = k && k.unsubscribe && (() => {
|
|
@@ -2198,18 +2198,18 @@ const no = (e) => {
|
|
|
2198
2198
|
});
|
|
2199
2199
|
let Ne;
|
|
2200
2200
|
try {
|
|
2201
|
-
if (C &&
|
|
2201
|
+
if (C && u && N !== "get" && N !== "head" && (Ne = await T(x, _)) !== 0) {
|
|
2202
2202
|
let le = new n(b, {
|
|
2203
2203
|
method: "POST",
|
|
2204
|
-
body:
|
|
2204
|
+
body: _,
|
|
2205
2205
|
duplex: "half"
|
|
2206
2206
|
}), Oe;
|
|
2207
|
-
if (E.isFormData(
|
|
2207
|
+
if (E.isFormData(_) && (Oe = le.headers.get("content-type")) && x.setContentType(Oe), le.body) {
|
|
2208
2208
|
const [Ve, Fe] = Br(
|
|
2209
2209
|
Ne,
|
|
2210
2210
|
Ht(jr(C))
|
|
2211
2211
|
);
|
|
2212
|
-
|
|
2212
|
+
_ = qr(le.body, Wr, Ve, Fe);
|
|
2213
2213
|
}
|
|
2214
2214
|
}
|
|
2215
2215
|
E.isString(M) || (M = M ? "include" : "omit");
|
|
@@ -2218,14 +2218,14 @@ const no = (e) => {
|
|
|
2218
2218
|
signal: k,
|
|
2219
2219
|
method: N.toUpperCase(),
|
|
2220
2220
|
headers: x.normalize().toJSON(),
|
|
2221
|
-
body:
|
|
2221
|
+
body: _,
|
|
2222
2222
|
duplex: "half",
|
|
2223
2223
|
credentials: z ? M : void 0
|
|
2224
2224
|
};
|
|
2225
2225
|
q = o && new n(b, ke);
|
|
2226
2226
|
let ee = await (o ? P(q, I) : P(b, ke));
|
|
2227
|
-
const Z =
|
|
2228
|
-
if (
|
|
2227
|
+
const Z = f && (h === "stream" || h === "response");
|
|
2228
|
+
if (f && (v || Z && se)) {
|
|
2229
2229
|
const le = {};
|
|
2230
2230
|
["status", "statusText", "headers"].forEach((Qe) => {
|
|
2231
2231
|
le[Qe] = ee[Qe];
|
|
@@ -2242,7 +2242,7 @@ const no = (e) => {
|
|
|
2242
2242
|
);
|
|
2243
2243
|
}
|
|
2244
2244
|
h = h || "text";
|
|
2245
|
-
let ge = await
|
|
2245
|
+
let ge = await m[E.findKey(m, h) || "text"](
|
|
2246
2246
|
ee,
|
|
2247
2247
|
g
|
|
2248
2248
|
);
|
|
@@ -2274,10 +2274,10 @@ const no = (e) => {
|
|
|
2274
2274
|
}, Ga = /* @__PURE__ */ new Map(), ro = (e) => {
|
|
2275
2275
|
let t = e && e.env || {};
|
|
2276
2276
|
const { fetch: n, Request: r, Response: s } = t, o = [r, s, n];
|
|
2277
|
-
let i = o.length, a = i, c,
|
|
2277
|
+
let i = o.length, a = i, c, u, f = Ga;
|
|
2278
2278
|
for (; a--; )
|
|
2279
|
-
c = o[a],
|
|
2280
|
-
return
|
|
2279
|
+
c = o[a], u = f.get(c), u === void 0 && f.set(c, u = a ? /* @__PURE__ */ new Map() : Wa(t)), f = u;
|
|
2280
|
+
return u;
|
|
2281
2281
|
};
|
|
2282
2282
|
ro();
|
|
2283
2283
|
const fr = {
|
|
@@ -2313,7 +2313,7 @@ function Ka(e, t) {
|
|
|
2313
2313
|
}
|
|
2314
2314
|
if (!s) {
|
|
2315
2315
|
const i = Object.entries(o).map(
|
|
2316
|
-
([c,
|
|
2316
|
+
([c, u]) => `adapter ${c} ` + (u === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
2317
2317
|
);
|
|
2318
2318
|
let a = n ? i.length > 1 ? `since :
|
|
2319
2319
|
` + i.map(Xr).join(`
|
|
@@ -2481,36 +2481,36 @@ let Ye = class {
|
|
|
2481
2481
|
const N = n.transitional || lr;
|
|
2482
2482
|
N && N.legacyInterceptorReqResOrdering ? a.unshift(b.fulfilled, b.rejected) : a.push(b.fulfilled, b.rejected);
|
|
2483
2483
|
});
|
|
2484
|
-
const
|
|
2484
|
+
const u = [];
|
|
2485
2485
|
this.interceptors.response.forEach(function(b) {
|
|
2486
|
-
|
|
2486
|
+
u.push(b.fulfilled, b.rejected);
|
|
2487
2487
|
});
|
|
2488
|
-
let
|
|
2488
|
+
let f, m = 0, p;
|
|
2489
2489
|
if (!c) {
|
|
2490
2490
|
const g = [Jr.bind(this), void 0];
|
|
2491
|
-
for (g.unshift(...a), g.push(...
|
|
2492
|
-
|
|
2493
|
-
return
|
|
2491
|
+
for (g.unshift(...a), g.push(...u), p = g.length, f = Promise.resolve(n); m < p; )
|
|
2492
|
+
f = f.then(g[m++], g[m++]);
|
|
2493
|
+
return f;
|
|
2494
2494
|
}
|
|
2495
|
-
|
|
2496
|
-
let
|
|
2497
|
-
for (;
|
|
2498
|
-
const g = a[
|
|
2495
|
+
p = a.length;
|
|
2496
|
+
let T = n;
|
|
2497
|
+
for (; m < p; ) {
|
|
2498
|
+
const g = a[m++], b = a[m++];
|
|
2499
2499
|
try {
|
|
2500
|
-
|
|
2500
|
+
T = g(T);
|
|
2501
2501
|
} catch (N) {
|
|
2502
2502
|
b.call(this, N);
|
|
2503
2503
|
break;
|
|
2504
2504
|
}
|
|
2505
2505
|
}
|
|
2506
2506
|
try {
|
|
2507
|
-
|
|
2507
|
+
f = Jr.call(this, T);
|
|
2508
2508
|
} catch (g) {
|
|
2509
2509
|
return Promise.reject(g);
|
|
2510
2510
|
}
|
|
2511
|
-
for (
|
|
2512
|
-
|
|
2513
|
-
return
|
|
2511
|
+
for (m = 0, p = u.length; m < p; )
|
|
2512
|
+
f = f.then(u[m++], u[m++]);
|
|
2513
|
+
return f;
|
|
2514
2514
|
}
|
|
2515
2515
|
getUri(t) {
|
|
2516
2516
|
t = Xe(this.defaults, t);
|
|
@@ -2728,25 +2728,25 @@ Q.getAdapter = so.getAdapter;
|
|
|
2728
2728
|
Q.HttpStatusCode = Gn;
|
|
2729
2729
|
Q.default = Q;
|
|
2730
2730
|
const {
|
|
2731
|
-
Axios:
|
|
2732
|
-
AxiosError:
|
|
2733
|
-
CanceledError:
|
|
2734
|
-
isCancel:
|
|
2735
|
-
CancelToken:
|
|
2736
|
-
VERSION:
|
|
2737
|
-
all:
|
|
2738
|
-
Cancel:
|
|
2739
|
-
isAxiosError:
|
|
2740
|
-
spread:
|
|
2741
|
-
toFormData:
|
|
2742
|
-
AxiosHeaders:
|
|
2731
|
+
Axios: rf,
|
|
2732
|
+
AxiosError: sf,
|
|
2733
|
+
CanceledError: of,
|
|
2734
|
+
isCancel: af,
|
|
2735
|
+
CancelToken: cf,
|
|
2736
|
+
VERSION: lf,
|
|
2737
|
+
all: uf,
|
|
2738
|
+
Cancel: ff,
|
|
2739
|
+
isAxiosError: df,
|
|
2740
|
+
spread: pf,
|
|
2741
|
+
toFormData: mf,
|
|
2742
|
+
AxiosHeaders: _f,
|
|
2743
2743
|
HttpStatusCode: zr,
|
|
2744
|
-
formToJSON:
|
|
2745
|
-
getAdapter:
|
|
2746
|
-
mergeConfig:
|
|
2744
|
+
formToJSON: hf,
|
|
2745
|
+
getAdapter: Ef,
|
|
2746
|
+
mergeConfig: gf
|
|
2747
2747
|
} = Q;
|
|
2748
2748
|
let qt = null;
|
|
2749
|
-
function
|
|
2749
|
+
function bf(e) {
|
|
2750
2750
|
if (qt !== null) {
|
|
2751
2751
|
console.warn(
|
|
2752
2752
|
"[LinID CoreLib] HTTP client has already been initialized. Re-initialization is ignored."
|
|
@@ -2763,7 +2763,7 @@ function we() {
|
|
|
2763
2763
|
return qt;
|
|
2764
2764
|
}
|
|
2765
2765
|
const co = /* @__PURE__ */ new Map();
|
|
2766
|
-
function
|
|
2766
|
+
function yf(e) {
|
|
2767
2767
|
co.set(e.instanceId, e);
|
|
2768
2768
|
}
|
|
2769
2769
|
function at(e) {
|
|
@@ -2774,25 +2774,25 @@ function at(e) {
|
|
|
2774
2774
|
);
|
|
2775
2775
|
return t;
|
|
2776
2776
|
}
|
|
2777
|
-
async function
|
|
2777
|
+
async function Nf(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 Of(e, t, n) {
|
|
2782
2782
|
const r = at(e);
|
|
2783
2783
|
return we().put(`/${r.apiEndpoint}/${t}`, n).then(({ data: s }) => s);
|
|
2784
2784
|
}
|
|
2785
|
-
async function
|
|
2785
|
+
async function Sf(e, t, n) {
|
|
2786
2786
|
const r = at(e);
|
|
2787
2787
|
return we().get(`/${r.apiEndpoint}`, {
|
|
2788
2788
|
params: { ...t, ...n }
|
|
2789
2789
|
}).then(({ data: s }) => s);
|
|
2790
2790
|
}
|
|
2791
|
-
async function
|
|
2791
|
+
async function Tf(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 Af(e, t) {
|
|
2796
2796
|
const n = at(e);
|
|
2797
2797
|
return we().delete(`/${n.apiEndpoint}/${t}`);
|
|
2798
2798
|
}
|
|
@@ -2812,7 +2812,7 @@ function ec(e, t) {
|
|
|
2812
2812
|
n[r] = ec(e[r], t[r]);
|
|
2813
2813
|
return n;
|
|
2814
2814
|
}
|
|
2815
|
-
function
|
|
2815
|
+
function Lf(e) {
|
|
2816
2816
|
const t = {};
|
|
2817
2817
|
for (const [n, r] of Object.entries(e)) {
|
|
2818
2818
|
const s = n.split(".");
|
|
@@ -2928,16 +2928,16 @@ function fc(e, t = 0, n = e.length) {
|
|
|
2928
2928
|
continue;
|
|
2929
2929
|
const c = a + 1;
|
|
2930
2930
|
o.push(`${c}${" ".repeat(3 - String(c).length)}| ${r[a]}`);
|
|
2931
|
-
const
|
|
2931
|
+
const u = r[a].length;
|
|
2932
2932
|
if (a === i) {
|
|
2933
|
-
const
|
|
2934
|
-
o.push(" | " + " ".repeat(
|
|
2933
|
+
const f = t - (s - u) + 1, m = Math.max(1, n > s ? u - f : n - t);
|
|
2934
|
+
o.push(" | " + " ".repeat(f) + "^".repeat(m));
|
|
2935
2935
|
} else if (a > i) {
|
|
2936
2936
|
if (n > s) {
|
|
2937
|
-
const
|
|
2938
|
-
o.push(" | " + "^".repeat(
|
|
2937
|
+
const f = Math.max(Math.min(n - s, u), 1);
|
|
2938
|
+
o.push(" | " + "^".repeat(f));
|
|
2939
2939
|
}
|
|
2940
|
-
s +=
|
|
2940
|
+
s += u + 1;
|
|
2941
2941
|
}
|
|
2942
2942
|
}
|
|
2943
2943
|
break;
|
|
@@ -3035,11 +3035,11 @@ const Ec = /<\/?[\w\s="/.':;#-\/]+>/, gc = (e) => Ec.test(e), Se = " ", bc = "\r
|
|
|
3035
3035
|
function Oc(e) {
|
|
3036
3036
|
const t = e;
|
|
3037
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,
|
|
3038
|
+
const i = (h) => t[h] === bc && t[h + 1] === ie, a = (h) => t[h] === ie, c = (h) => t[h] === Nc, u = (h) => t[h] === yc, f = (h) => i(h) || a(h) || c(h) || u(h), m = () => n, p = () => r, T = () => s, g = () => o, b = (h) => i(h) || c(h) || u(h) ? ie : t[h], N = () => b(n), _ = () => b(n + o);
|
|
3039
3039
|
function O() {
|
|
3040
|
-
return o = 0,
|
|
3040
|
+
return o = 0, f(n) && (r++, s = 0), i(n) && n++, n++, s++, t[n];
|
|
3041
3041
|
}
|
|
3042
|
-
function
|
|
3042
|
+
function A() {
|
|
3043
3043
|
return i(n + o) && o++, o++, t[n + o];
|
|
3044
3044
|
}
|
|
3045
3045
|
function y() {
|
|
@@ -3055,15 +3055,15 @@ function Oc(e) {
|
|
|
3055
3055
|
o = 0;
|
|
3056
3056
|
}
|
|
3057
3057
|
return {
|
|
3058
|
-
index:
|
|
3059
|
-
line:
|
|
3060
|
-
column:
|
|
3058
|
+
index: m,
|
|
3059
|
+
line: p,
|
|
3060
|
+
column: T,
|
|
3061
3061
|
peekOffset: g,
|
|
3062
3062
|
charAt: b,
|
|
3063
3063
|
currentChar: N,
|
|
3064
|
-
currentPeek:
|
|
3064
|
+
currentPeek: _,
|
|
3065
3065
|
next: O,
|
|
3066
|
-
peek:
|
|
3066
|
+
peek: A,
|
|
3067
3067
|
reset: y,
|
|
3068
3068
|
resetPeek: v,
|
|
3069
3069
|
skipToPeek: C
|
|
@@ -3083,29 +3083,29 @@ function Ac(e, t = {}) {
|
|
|
3083
3083
|
braceNest: 0,
|
|
3084
3084
|
inLinked: !1,
|
|
3085
3085
|
text: ""
|
|
3086
|
-
},
|
|
3087
|
-
function
|
|
3088
|
-
const W =
|
|
3089
|
-
if (d.column +=
|
|
3086
|
+
}, u = () => c, { onError: f } = t;
|
|
3087
|
+
function m(l, d, L, ...w) {
|
|
3088
|
+
const W = u();
|
|
3089
|
+
if (d.column += L, d.offset += L, f) {
|
|
3090
3090
|
const K = n ? Kn(W.startLoc, d) : null, V = ct(l, K, {
|
|
3091
3091
|
domain: Tc,
|
|
3092
3092
|
args: w
|
|
3093
3093
|
});
|
|
3094
|
-
|
|
3094
|
+
f(V);
|
|
3095
3095
|
}
|
|
3096
3096
|
}
|
|
3097
|
-
function
|
|
3097
|
+
function p(l, d, L) {
|
|
3098
3098
|
l.endLoc = o(), l.currentType = d;
|
|
3099
3099
|
const w = { type: d };
|
|
3100
|
-
return n && (w.loc = Kn(l.startLoc, l.endLoc)),
|
|
3100
|
+
return n && (w.loc = Kn(l.startLoc, l.endLoc)), L != null && (w.value = L), w;
|
|
3101
3101
|
}
|
|
3102
|
-
const
|
|
3102
|
+
const T = (l) => p(
|
|
3103
3103
|
l,
|
|
3104
3104
|
13
|
|
3105
3105
|
/* TokenTypes.EOF */
|
|
3106
3106
|
);
|
|
3107
3107
|
function g(l, d) {
|
|
3108
|
-
return l.currentChar() === d ? (l.next(), d) : (
|
|
3108
|
+
return l.currentChar() === d ? (l.next(), d) : (m(F.EXPECTED_TOKEN, o(), 0, d), "");
|
|
3109
3109
|
}
|
|
3110
3110
|
function b(l) {
|
|
3111
3111
|
let d = "";
|
|
@@ -3117,7 +3117,7 @@ function Ac(e, t = {}) {
|
|
|
3117
3117
|
const d = b(l);
|
|
3118
3118
|
return l.skipToPeek(), d;
|
|
3119
3119
|
}
|
|
3120
|
-
function
|
|
3120
|
+
function _(l) {
|
|
3121
3121
|
if (l === Re)
|
|
3122
3122
|
return !1;
|
|
3123
3123
|
const d = l.charCodeAt(0);
|
|
@@ -3131,61 +3131,61 @@ function Ac(e, t = {}) {
|
|
|
3131
3131
|
const d = l.charCodeAt(0);
|
|
3132
3132
|
return d >= 48 && d <= 57;
|
|
3133
3133
|
}
|
|
3134
|
-
function
|
|
3135
|
-
const { currentType:
|
|
3136
|
-
if (
|
|
3134
|
+
function A(l, d) {
|
|
3135
|
+
const { currentType: L } = d;
|
|
3136
|
+
if (L !== 2)
|
|
3137
3137
|
return !1;
|
|
3138
3138
|
b(l);
|
|
3139
|
-
const w =
|
|
3139
|
+
const w = _(l.currentPeek());
|
|
3140
3140
|
return l.resetPeek(), w;
|
|
3141
3141
|
}
|
|
3142
3142
|
function y(l, d) {
|
|
3143
|
-
const { currentType:
|
|
3144
|
-
if (
|
|
3143
|
+
const { currentType: L } = d;
|
|
3144
|
+
if (L !== 2)
|
|
3145
3145
|
return !1;
|
|
3146
3146
|
b(l);
|
|
3147
3147
|
const w = l.currentPeek() === "-" ? l.peek() : l.currentPeek(), W = O(w);
|
|
3148
3148
|
return l.resetPeek(), W;
|
|
3149
3149
|
}
|
|
3150
3150
|
function v(l, d) {
|
|
3151
|
-
const { currentType:
|
|
3152
|
-
if (
|
|
3151
|
+
const { currentType: L } = d;
|
|
3152
|
+
if (L !== 2)
|
|
3153
3153
|
return !1;
|
|
3154
3154
|
b(l);
|
|
3155
3155
|
const w = l.currentPeek() === ss;
|
|
3156
3156
|
return l.resetPeek(), w;
|
|
3157
3157
|
}
|
|
3158
3158
|
function C(l, d) {
|
|
3159
|
-
const { currentType:
|
|
3160
|
-
if (
|
|
3159
|
+
const { currentType: L } = d;
|
|
3160
|
+
if (L !== 7)
|
|
3161
3161
|
return !1;
|
|
3162
3162
|
b(l);
|
|
3163
3163
|
const w = l.currentPeek() === ".";
|
|
3164
3164
|
return l.resetPeek(), w;
|
|
3165
3165
|
}
|
|
3166
3166
|
function h(l, d) {
|
|
3167
|
-
const { currentType:
|
|
3168
|
-
if (
|
|
3167
|
+
const { currentType: L } = d;
|
|
3168
|
+
if (L !== 8)
|
|
3169
3169
|
return !1;
|
|
3170
3170
|
b(l);
|
|
3171
|
-
const w =
|
|
3171
|
+
const w = _(l.currentPeek());
|
|
3172
3172
|
return l.resetPeek(), w;
|
|
3173
3173
|
}
|
|
3174
3174
|
function x(l, d) {
|
|
3175
|
-
const { currentType:
|
|
3176
|
-
if (!(
|
|
3175
|
+
const { currentType: L } = d;
|
|
3176
|
+
if (!(L === 7 || L === 11))
|
|
3177
3177
|
return !1;
|
|
3178
3178
|
b(l);
|
|
3179
3179
|
const w = l.currentPeek() === ":";
|
|
3180
3180
|
return l.resetPeek(), w;
|
|
3181
3181
|
}
|
|
3182
3182
|
function M(l, d) {
|
|
3183
|
-
const { currentType:
|
|
3184
|
-
if (
|
|
3183
|
+
const { currentType: L } = d;
|
|
3184
|
+
if (L !== 9)
|
|
3185
3185
|
return !1;
|
|
3186
3186
|
const w = () => {
|
|
3187
3187
|
const K = l.currentPeek();
|
|
3188
|
-
return K === "{" ?
|
|
3188
|
+
return K === "{" ? _(l.peek()) : K === "@" || K === "|" || K === ":" || K === "." || K === Se || !K ? !1 : K === ie ? (l.peek(), w()) : P(l, !1);
|
|
3189
3189
|
}, W = w();
|
|
3190
3190
|
return l.resetPeek(), W;
|
|
3191
3191
|
}
|
|
@@ -3195,15 +3195,15 @@ function Ac(e, t = {}) {
|
|
|
3195
3195
|
return l.resetPeek(), d;
|
|
3196
3196
|
}
|
|
3197
3197
|
function P(l, d = !0) {
|
|
3198
|
-
const
|
|
3198
|
+
const L = (W = !1, K = "") => {
|
|
3199
3199
|
const V = l.currentPeek();
|
|
3200
|
-
return V === "{" || V === "@" || !V ? W : V === "|" ? !(K === Se || K === ie) : V === Se ? (l.peek(),
|
|
3201
|
-
}, w =
|
|
3200
|
+
return V === "{" || V === "@" || !V ? W : V === "|" ? !(K === Se || K === ie) : V === Se ? (l.peek(), L(!0, Se)) : V === ie ? (l.peek(), L(!0, ie)) : !0;
|
|
3201
|
+
}, w = L();
|
|
3202
3202
|
return d && l.resetPeek(), w;
|
|
3203
3203
|
}
|
|
3204
3204
|
function k(l, d) {
|
|
3205
|
-
const
|
|
3206
|
-
return
|
|
3205
|
+
const L = l.currentChar();
|
|
3206
|
+
return L === Re ? Re : d(L) ? (l.next(), L) : null;
|
|
3207
3207
|
}
|
|
3208
3208
|
function q(l) {
|
|
3209
3209
|
const d = l.charCodeAt(0);
|
|
@@ -3245,62 +3245,62 @@ function Ac(e, t = {}) {
|
|
|
3245
3245
|
return k(l, Z);
|
|
3246
3246
|
}
|
|
3247
3247
|
function le(l) {
|
|
3248
|
-
let d = "",
|
|
3248
|
+
let d = "", L = "";
|
|
3249
3249
|
for (; d = ee(l); )
|
|
3250
|
-
|
|
3251
|
-
return
|
|
3250
|
+
L += d;
|
|
3251
|
+
return L;
|
|
3252
3252
|
}
|
|
3253
3253
|
function Oe(l) {
|
|
3254
3254
|
let d = "";
|
|
3255
3255
|
for (; ; ) {
|
|
3256
|
-
const
|
|
3257
|
-
if (
|
|
3256
|
+
const L = l.currentChar();
|
|
3257
|
+
if (L === "\\") {
|
|
3258
3258
|
const w = l.peek();
|
|
3259
|
-
w === "{" || w === "}" || w === "@" || w === "|" || w === "\\" ? (d +=
|
|
3259
|
+
w === "{" || w === "}" || w === "@" || w === "|" || w === "\\" ? (d += L + w, l.next(), l.next()) : (l.resetPeek(), d += L, l.next());
|
|
3260
3260
|
} else {
|
|
3261
|
-
if (
|
|
3261
|
+
if (L === "{" || L === "}" || L === "@" || L === "|" || !L)
|
|
3262
3262
|
break;
|
|
3263
|
-
if (
|
|
3263
|
+
if (L === Se || L === ie)
|
|
3264
3264
|
if (P(l))
|
|
3265
|
-
d +=
|
|
3265
|
+
d += L, l.next();
|
|
3266
3266
|
else {
|
|
3267
3267
|
if (I(l))
|
|
3268
3268
|
break;
|
|
3269
|
-
d +=
|
|
3269
|
+
d += L, l.next();
|
|
3270
3270
|
}
|
|
3271
3271
|
else
|
|
3272
|
-
d +=
|
|
3272
|
+
d += L, l.next();
|
|
3273
3273
|
}
|
|
3274
3274
|
}
|
|
3275
3275
|
return d;
|
|
3276
3276
|
}
|
|
3277
3277
|
function Ve(l) {
|
|
3278
3278
|
N(l);
|
|
3279
|
-
let d = "",
|
|
3279
|
+
let d = "", L = "";
|
|
3280
3280
|
for (; d = z(l); )
|
|
3281
|
-
|
|
3281
|
+
L += d;
|
|
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
|
|
3285
|
+
return m(F.INVALID_TOKEN_IN_PLACEHOLDER, o(), 0, L + W), L + W;
|
|
3286
3286
|
}
|
|
3287
|
-
return l.currentChar() === Re &&
|
|
3287
|
+
return l.currentChar() === Re && m(F.UNTERMINATED_CLOSING_BRACE, o(), 0), L;
|
|
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 &&
|
|
3292
|
+
return l.currentChar() === "-" ? (l.next(), d += `-${le(l)}`) : d += le(l), l.currentChar() === Re && m(F.UNTERMINATED_CLOSING_BRACE, o(), 0), d;
|
|
3293
3293
|
}
|
|
3294
3294
|
function Qe(l) {
|
|
3295
3295
|
return l !== ss && l !== ie;
|
|
3296
3296
|
}
|
|
3297
3297
|
function yr(l) {
|
|
3298
3298
|
N(l), g(l, "'");
|
|
3299
|
-
let d = "",
|
|
3299
|
+
let d = "", L = "";
|
|
3300
3300
|
for (; d = k(l, Qe); )
|
|
3301
|
-
d === "\\" ?
|
|
3301
|
+
d === "\\" ? L += mn(l) : L += d;
|
|
3302
3302
|
const w = l.currentChar();
|
|
3303
|
-
return w === ie || w === Re ? (
|
|
3303
|
+
return w === ie || w === Re ? (m(F.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, o(), 0), w === ie && (l.next(), g(l, "'")), L) : (g(l, "'"), L);
|
|
3304
3304
|
}
|
|
3305
3305
|
function mn(l) {
|
|
3306
3306
|
const d = l.currentChar();
|
|
@@ -3313,16 +3313,16 @@ function Ac(e, t = {}) {
|
|
|
3313
3313
|
case "U":
|
|
3314
3314
|
return Lt(l, d, 6);
|
|
3315
3315
|
default:
|
|
3316
|
-
return
|
|
3316
|
+
return m(F.UNKNOWN_ESCAPE_SEQUENCE, o(), 0, d), "";
|
|
3317
3317
|
}
|
|
3318
3318
|
}
|
|
3319
|
-
function Lt(l, d,
|
|
3319
|
+
function Lt(l, d, L) {
|
|
3320
3320
|
g(l, d);
|
|
3321
3321
|
let w = "";
|
|
3322
|
-
for (let W = 0; W <
|
|
3322
|
+
for (let W = 0; W < L; W++) {
|
|
3323
3323
|
const K = ge(l);
|
|
3324
3324
|
if (!K) {
|
|
3325
|
-
|
|
3325
|
+
m(F.INVALID_UNICODE_ESCAPE_SEQUENCE, o(), 0, `\\${d}${w}${l.currentChar()}`);
|
|
3326
3326
|
break;
|
|
3327
3327
|
}
|
|
3328
3328
|
w += K;
|
|
@@ -3334,21 +3334,21 @@ function Ac(e, t = {}) {
|
|
|
3334
3334
|
}
|
|
3335
3335
|
function Rt(l) {
|
|
3336
3336
|
N(l);
|
|
3337
|
-
let d = "",
|
|
3337
|
+
let d = "", L = "";
|
|
3338
3338
|
for (; d = k(l, _n); )
|
|
3339
|
-
|
|
3340
|
-
return
|
|
3339
|
+
L += d;
|
|
3340
|
+
return L;
|
|
3341
3341
|
}
|
|
3342
3342
|
function hn(l) {
|
|
3343
|
-
let d = "",
|
|
3343
|
+
let d = "", L = "";
|
|
3344
3344
|
for (; d = se(l); )
|
|
3345
|
-
|
|
3346
|
-
return
|
|
3345
|
+
L += d;
|
|
3346
|
+
return L;
|
|
3347
3347
|
}
|
|
3348
3348
|
function En(l) {
|
|
3349
|
-
const d = (
|
|
3349
|
+
const d = (L) => {
|
|
3350
3350
|
const w = l.currentChar();
|
|
3351
|
-
return w === "{" || w === "@" || w === "|" || w === "(" || w === ")" || !w || w === Se ?
|
|
3351
|
+
return w === "{" || w === "@" || w === "|" || w === "(" || w === ")" || !w || w === Se ? L : (L += w, l.next(), d(L));
|
|
3352
3352
|
};
|
|
3353
3353
|
return d("");
|
|
3354
3354
|
}
|
|
@@ -3362,107 +3362,107 @@ function Ac(e, t = {}) {
|
|
|
3362
3362
|
return N(l), d;
|
|
3363
3363
|
}
|
|
3364
3364
|
function ut(l, d) {
|
|
3365
|
-
let
|
|
3365
|
+
let L = null;
|
|
3366
3366
|
switch (l.currentChar()) {
|
|
3367
3367
|
case "{":
|
|
3368
|
-
return d.braceNest >= 1 &&
|
|
3368
|
+
return d.braceNest >= 1 && m(F.NOT_ALLOW_NEST_PLACEHOLDER, o(), 0), l.next(), L = p(
|
|
3369
3369
|
d,
|
|
3370
3370
|
2,
|
|
3371
3371
|
"{"
|
|
3372
3372
|
/* TokenChars.BraceLeft */
|
|
3373
|
-
), N(l), d.braceNest++,
|
|
3373
|
+
), N(l), d.braceNest++, L;
|
|
3374
3374
|
case "}":
|
|
3375
|
-
return d.braceNest > 0 && d.currentType === 2 &&
|
|
3375
|
+
return d.braceNest > 0 && d.currentType === 2 && m(F.EMPTY_PLACEHOLDER, o(), 0), l.next(), L = p(
|
|
3376
3376
|
d,
|
|
3377
3377
|
3,
|
|
3378
3378
|
"}"
|
|
3379
3379
|
/* TokenChars.BraceRight */
|
|
3380
|
-
), d.braceNest--, d.braceNest > 0 && N(l), d.inLinked && d.braceNest === 0 && (d.inLinked = !1),
|
|
3380
|
+
), d.braceNest--, d.braceNest > 0 && N(l), d.inLinked && d.braceNest === 0 && (d.inLinked = !1), L;
|
|
3381
3381
|
case "@":
|
|
3382
|
-
return d.braceNest > 0 &&
|
|
3382
|
+
return d.braceNest > 0 && m(F.UNTERMINATED_CLOSING_BRACE, o(), 0), L = $e(l, d) || T(d), d.braceNest = 0, L;
|
|
3383
3383
|
default: {
|
|
3384
3384
|
let W = !0, K = !0, V = !0;
|
|
3385
3385
|
if (I(l))
|
|
3386
|
-
return d.braceNest > 0 &&
|
|
3386
|
+
return d.braceNest > 0 && m(F.UNTERMINATED_CLOSING_BRACE, o(), 0), L = p(d, 1, lt(l)), d.braceNest = 0, d.inLinked = !1, L;
|
|
3387
3387
|
if (d.braceNest > 0 && (d.currentType === 4 || d.currentType === 5 || d.currentType === 6))
|
|
3388
|
-
return
|
|
3389
|
-
if (W =
|
|
3390
|
-
return
|
|
3388
|
+
return m(F.UNTERMINATED_CLOSING_BRACE, o(), 0), d.braceNest = 0, ft(l, d);
|
|
3389
|
+
if (W = A(l, d))
|
|
3390
|
+
return L = p(d, 4, Ve(l)), N(l), L;
|
|
3391
3391
|
if (K = y(l, d))
|
|
3392
|
-
return
|
|
3392
|
+
return L = p(d, 5, Fe(l)), N(l), L;
|
|
3393
3393
|
if (V = v(l, d))
|
|
3394
|
-
return
|
|
3394
|
+
return L = p(d, 6, yr(l)), N(l), L;
|
|
3395
3395
|
if (!W && !K && !V)
|
|
3396
|
-
return
|
|
3396
|
+
return L = p(d, 12, Rt(l)), m(F.INVALID_TOKEN_IN_PLACEHOLDER, o(), 0, L.value), N(l), L;
|
|
3397
3397
|
break;
|
|
3398
3398
|
}
|
|
3399
3399
|
}
|
|
3400
|
-
return
|
|
3400
|
+
return L;
|
|
3401
3401
|
}
|
|
3402
3402
|
function $e(l, d) {
|
|
3403
|
-
const { currentType:
|
|
3403
|
+
const { currentType: L } = d;
|
|
3404
3404
|
let w = null;
|
|
3405
3405
|
const W = l.currentChar();
|
|
3406
|
-
switch ((
|
|
3406
|
+
switch ((L === 7 || L === 8 || L === 11 || L === 9) && (W === ie || W === Se) && m(F.INVALID_LINKED_FORMAT, o(), 0), W) {
|
|
3407
3407
|
case "@":
|
|
3408
|
-
return l.next(), w =
|
|
3408
|
+
return l.next(), w = p(
|
|
3409
3409
|
d,
|
|
3410
3410
|
7,
|
|
3411
3411
|
"@"
|
|
3412
3412
|
/* TokenChars.LinkedAlias */
|
|
3413
3413
|
), d.inLinked = !0, w;
|
|
3414
3414
|
case ".":
|
|
3415
|
-
return N(l), l.next(),
|
|
3415
|
+
return N(l), l.next(), p(
|
|
3416
3416
|
d,
|
|
3417
3417
|
8,
|
|
3418
3418
|
"."
|
|
3419
3419
|
/* TokenChars.LinkedDot */
|
|
3420
3420
|
);
|
|
3421
3421
|
case ":":
|
|
3422
|
-
return N(l), l.next(),
|
|
3422
|
+
return N(l), l.next(), p(
|
|
3423
3423
|
d,
|
|
3424
3424
|
9,
|
|
3425
3425
|
":"
|
|
3426
3426
|
/* TokenChars.LinkedDelimiter */
|
|
3427
3427
|
);
|
|
3428
3428
|
default:
|
|
3429
|
-
return I(l) ? (w =
|
|
3429
|
+
return I(l) ? (w = p(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), p(d, 11, hn(l))) : M(l, d) ? (N(l), W === "{" ? ut(l, d) || w : p(d, 10, En(l))) : (L === 7 && m(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) {
|
|
3433
|
-
let
|
|
3433
|
+
let L = {
|
|
3434
3434
|
type: 13
|
|
3435
3435
|
/* TokenTypes.EOF */
|
|
3436
3436
|
};
|
|
3437
3437
|
if (d.braceNest > 0)
|
|
3438
|
-
return ut(l, d) ||
|
|
3438
|
+
return ut(l, d) || T(d);
|
|
3439
3439
|
if (d.inLinked)
|
|
3440
|
-
return $e(l, d) ||
|
|
3440
|
+
return $e(l, d) || T(d);
|
|
3441
3441
|
switch (l.currentChar()) {
|
|
3442
3442
|
case "{":
|
|
3443
|
-
return ut(l, d) ||
|
|
3443
|
+
return ut(l, d) || T(d);
|
|
3444
3444
|
case "}":
|
|
3445
|
-
return
|
|
3445
|
+
return m(F.UNBALANCED_CLOSING_BRACE, o(), 0), l.next(), p(
|
|
3446
3446
|
d,
|
|
3447
3447
|
3,
|
|
3448
3448
|
"}"
|
|
3449
3449
|
/* TokenChars.BraceRight */
|
|
3450
3450
|
);
|
|
3451
3451
|
case "@":
|
|
3452
|
-
return $e(l, d) ||
|
|
3452
|
+
return $e(l, d) || T(d);
|
|
3453
3453
|
default: {
|
|
3454
3454
|
if (I(l))
|
|
3455
|
-
return
|
|
3455
|
+
return L = p(d, 1, lt(l)), d.braceNest = 0, d.inLinked = !1, L;
|
|
3456
3456
|
if (P(l))
|
|
3457
|
-
return
|
|
3457
|
+
return p(d, 0, Oe(l));
|
|
3458
3458
|
break;
|
|
3459
3459
|
}
|
|
3460
3460
|
}
|
|
3461
|
-
return
|
|
3461
|
+
return L;
|
|
3462
3462
|
}
|
|
3463
3463
|
function gn() {
|
|
3464
|
-
const { currentType: l, offset: d, startLoc:
|
|
3465
|
-
return c.lastType = l, c.lastOffset = d, c.lastStartLoc =
|
|
3464
|
+
const { currentType: l, offset: d, startLoc: L, endLoc: w } = c;
|
|
3465
|
+
return c.lastType = l, c.lastOffset = d, c.lastStartLoc = L, c.lastEndLoc = w, c.offset = s(), c.startLoc = o(), r.currentChar() === Re ? p(
|
|
3466
3466
|
c,
|
|
3467
3467
|
13
|
|
3468
3468
|
/* TokenTypes.EOF */
|
|
@@ -3472,7 +3472,7 @@ function Ac(e, t = {}) {
|
|
|
3472
3472
|
nextToken: gn,
|
|
3473
3473
|
currentOffset: s,
|
|
3474
3474
|
currentPosition: o,
|
|
3475
|
-
context:
|
|
3475
|
+
context: u
|
|
3476
3476
|
};
|
|
3477
3477
|
}
|
|
3478
3478
|
const Lc = "parser", Rc = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g, vc = /\\([\\@{}|])/g;
|
|
@@ -3494,132 +3494,132 @@ function Ic(e, t, n) {
|
|
|
3494
3494
|
}
|
|
3495
3495
|
function Pc(e = {}) {
|
|
3496
3496
|
const t = e.location !== !1, { onError: n } = e;
|
|
3497
|
-
function r(
|
|
3498
|
-
const C =
|
|
3497
|
+
function r(_, O, A, y, ...v) {
|
|
3498
|
+
const C = _.currentPosition();
|
|
3499
3499
|
if (C.offset += y, C.column += y, n) {
|
|
3500
|
-
const h = t ? Kn(
|
|
3500
|
+
const h = t ? Kn(A, 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 s(
|
|
3508
|
-
const y = { type:
|
|
3509
|
-
return t && (y.start = O, y.end = O, y.loc = { start:
|
|
3507
|
+
function s(_, O, A) {
|
|
3508
|
+
const y = { type: _ };
|
|
3509
|
+
return t && (y.start = O, y.end = O, y.loc = { start: A, end: A }), y;
|
|
3510
3510
|
}
|
|
3511
|
-
function o(
|
|
3512
|
-
t && (
|
|
3511
|
+
function o(_, O, A, y) {
|
|
3512
|
+
t && (_.end = O, _.loc && (_.loc.end = A));
|
|
3513
3513
|
}
|
|
3514
|
-
function i(
|
|
3515
|
-
const
|
|
3516
|
-
return y.value = O.replace(vc, Cc), o(y,
|
|
3514
|
+
function i(_, O) {
|
|
3515
|
+
const A = _.context(), y = s(3, A.offset, A.startLoc);
|
|
3516
|
+
return y.value = O.replace(vc, Cc), o(y, _.currentOffset(), _.currentPosition()), y;
|
|
3517
3517
|
}
|
|
3518
|
-
function a(
|
|
3519
|
-
const
|
|
3520
|
-
return C.index = parseInt(O, 10),
|
|
3518
|
+
function a(_, O) {
|
|
3519
|
+
const A = _.context(), { lastOffset: y, lastStartLoc: v } = A, C = s(5, y, v);
|
|
3520
|
+
return C.index = parseInt(O, 10), _.nextToken(), o(C, _.currentOffset(), _.currentPosition()), C;
|
|
3521
3521
|
}
|
|
3522
|
-
function c(
|
|
3523
|
-
const
|
|
3524
|
-
return C.key = O,
|
|
3522
|
+
function c(_, O) {
|
|
3523
|
+
const A = _.context(), { lastOffset: y, lastStartLoc: v } = A, C = s(4, y, v);
|
|
3524
|
+
return C.key = O, _.nextToken(), o(C, _.currentOffset(), _.currentPosition()), C;
|
|
3525
3525
|
}
|
|
3526
|
-
function
|
|
3527
|
-
const
|
|
3528
|
-
return C.value = O.replace(Rc, Ic),
|
|
3526
|
+
function u(_, O) {
|
|
3527
|
+
const A = _.context(), { lastOffset: y, lastStartLoc: v } = A, C = s(9, y, v);
|
|
3528
|
+
return C.value = O.replace(Rc, Ic), _.nextToken(), o(C, _.currentOffset(), _.currentPosition()), C;
|
|
3529
3529
|
}
|
|
3530
|
-
function
|
|
3531
|
-
const O =
|
|
3532
|
-
return O.type !== 11 ? (r(
|
|
3530
|
+
function f(_) {
|
|
3531
|
+
const O = _.nextToken(), A = _.context(), { lastOffset: y, lastStartLoc: v } = A, C = s(8, y, v);
|
|
3532
|
+
return O.type !== 11 ? (r(_, F.UNEXPECTED_EMPTY_LINKED_MODIFIER, A.lastStartLoc, 0), C.value = "", o(C, y, v), {
|
|
3533
3533
|
nextConsumeToken: O,
|
|
3534
3534
|
node: C
|
|
3535
|
-
}) : (O.value == null && r(
|
|
3535
|
+
}) : (O.value == null && r(_, F.UNEXPECTED_LEXICAL_ANALYSIS, A.lastStartLoc, 0, Te(O)), C.value = O.value || "", o(C, _.currentOffset(), _.currentPosition()), {
|
|
3536
3536
|
node: C
|
|
3537
3537
|
});
|
|
3538
3538
|
}
|
|
3539
|
-
function
|
|
3540
|
-
const
|
|
3541
|
-
return y.value = O, o(y,
|
|
3539
|
+
function m(_, O) {
|
|
3540
|
+
const A = _.context(), y = s(7, A.offset, A.startLoc);
|
|
3541
|
+
return y.value = O, o(y, _.currentOffset(), _.currentPosition()), y;
|
|
3542
3542
|
}
|
|
3543
|
-
function _
|
|
3544
|
-
const O =
|
|
3545
|
-
let y =
|
|
3543
|
+
function p(_) {
|
|
3544
|
+
const O = _.context(), A = s(6, O.offset, O.startLoc);
|
|
3545
|
+
let y = _.nextToken();
|
|
3546
3546
|
if (y.type === 8) {
|
|
3547
|
-
const v =
|
|
3548
|
-
|
|
3547
|
+
const v = f(_);
|
|
3548
|
+
A.modifier = v.node, y = v.nextConsumeToken || _.nextToken();
|
|
3549
3549
|
}
|
|
3550
|
-
switch (y.type !== 9 && r(
|
|
3550
|
+
switch (y.type !== 9 && r(_, F.UNEXPECTED_LEXICAL_ANALYSIS, O.lastStartLoc, 0, Te(y)), y = _.nextToken(), y.type === 2 && (y = _.nextToken()), y.type) {
|
|
3551
3551
|
case 10:
|
|
3552
|
-
y.value == null && r(
|
|
3552
|
+
y.value == null && r(_, F.UNEXPECTED_LEXICAL_ANALYSIS, O.lastStartLoc, 0, Te(y)), A.key = m(_, y.value || "");
|
|
3553
3553
|
break;
|
|
3554
3554
|
case 4:
|
|
3555
|
-
y.value == null && r(
|
|
3555
|
+
y.value == null && r(_, F.UNEXPECTED_LEXICAL_ANALYSIS, O.lastStartLoc, 0, Te(y)), A.key = c(_, y.value || "");
|
|
3556
3556
|
break;
|
|
3557
3557
|
case 5:
|
|
3558
|
-
y.value == null && r(
|
|
3558
|
+
y.value == null && r(_, F.UNEXPECTED_LEXICAL_ANALYSIS, O.lastStartLoc, 0, Te(y)), A.key = a(_, y.value || "");
|
|
3559
3559
|
break;
|
|
3560
3560
|
case 6:
|
|
3561
|
-
y.value == null && r(
|
|
3561
|
+
y.value == null && r(_, F.UNEXPECTED_LEXICAL_ANALYSIS, O.lastStartLoc, 0, Te(y)), A.key = u(_, y.value || "");
|
|
3562
3562
|
break;
|
|
3563
3563
|
default: {
|
|
3564
|
-
r(
|
|
3565
|
-
const v =
|
|
3566
|
-
return C.value = "", o(C, v.offset, v.startLoc),
|
|
3564
|
+
r(_, F.UNEXPECTED_EMPTY_LINKED_KEY, O.lastStartLoc, 0);
|
|
3565
|
+
const v = _.context(), C = s(7, v.offset, v.startLoc);
|
|
3566
|
+
return C.value = "", o(C, v.offset, v.startLoc), A.key = C, o(A, v.offset, v.startLoc), {
|
|
3567
3567
|
nextConsumeToken: y,
|
|
3568
|
-
node:
|
|
3568
|
+
node: A
|
|
3569
3569
|
};
|
|
3570
3570
|
}
|
|
3571
3571
|
}
|
|
3572
|
-
return o(
|
|
3573
|
-
node:
|
|
3572
|
+
return o(A, _.currentOffset(), _.currentPosition()), {
|
|
3573
|
+
node: A
|
|
3574
3574
|
};
|
|
3575
3575
|
}
|
|
3576
|
-
function
|
|
3577
|
-
const O =
|
|
3576
|
+
function T(_) {
|
|
3577
|
+
const O = _.context(), A = O.currentType === 1 ? _.currentOffset() : O.offset, y = O.currentType === 1 ? O.endLoc : O.startLoc, v = s(2, A, y);
|
|
3578
3578
|
v.items = [];
|
|
3579
3579
|
let C = null;
|
|
3580
3580
|
do {
|
|
3581
|
-
const M = C ||
|
|
3581
|
+
const M = C || _.nextToken();
|
|
3582
3582
|
switch (C = null, M.type) {
|
|
3583
3583
|
case 0:
|
|
3584
|
-
M.value == null && r(
|
|
3584
|
+
M.value == null && r(_, F.UNEXPECTED_LEXICAL_ANALYSIS, O.lastStartLoc, 0, Te(M)), v.items.push(i(_, M.value || ""));
|
|
3585
3585
|
break;
|
|
3586
3586
|
case 5:
|
|
3587
|
-
M.value == null && r(
|
|
3587
|
+
M.value == null && r(_, F.UNEXPECTED_LEXICAL_ANALYSIS, O.lastStartLoc, 0, Te(M)), v.items.push(a(_, M.value || ""));
|
|
3588
3588
|
break;
|
|
3589
3589
|
case 4:
|
|
3590
|
-
M.value == null && r(
|
|
3590
|
+
M.value == null && r(_, F.UNEXPECTED_LEXICAL_ANALYSIS, O.lastStartLoc, 0, Te(M)), v.items.push(c(_, M.value || ""));
|
|
3591
3591
|
break;
|
|
3592
3592
|
case 6:
|
|
3593
|
-
M.value == null && r(
|
|
3593
|
+
M.value == null && r(_, F.UNEXPECTED_LEXICAL_ANALYSIS, O.lastStartLoc, 0, Te(M)), v.items.push(u(_, M.value || ""));
|
|
3594
3594
|
break;
|
|
3595
3595
|
case 7: {
|
|
3596
|
-
const I = _
|
|
3596
|
+
const I = p(_);
|
|
3597
3597
|
v.items.push(I.node), C = I.nextConsumeToken || null;
|
|
3598
3598
|
break;
|
|
3599
3599
|
}
|
|
3600
3600
|
}
|
|
3601
3601
|
} while (O.currentType !== 13 && O.currentType !== 1);
|
|
3602
|
-
const h = O.currentType === 1 ? O.lastOffset :
|
|
3602
|
+
const h = O.currentType === 1 ? O.lastOffset : _.currentOffset(), x = O.currentType === 1 ? O.lastEndLoc : _.currentPosition();
|
|
3603
3603
|
return o(v, h, x), v;
|
|
3604
3604
|
}
|
|
3605
|
-
function g(
|
|
3606
|
-
const v =
|
|
3605
|
+
function g(_, O, A, y) {
|
|
3606
|
+
const v = _.context();
|
|
3607
3607
|
let C = y.items.length === 0;
|
|
3608
|
-
const h = s(1, O,
|
|
3608
|
+
const h = s(1, O, A);
|
|
3609
3609
|
h.cases = [], h.cases.push(y);
|
|
3610
3610
|
do {
|
|
3611
|
-
const x =
|
|
3611
|
+
const x = T(_);
|
|
3612
3612
|
C || (C = x.items.length === 0), h.cases.push(x);
|
|
3613
3613
|
} while (v.currentType !== 13);
|
|
3614
|
-
return C && r(
|
|
3614
|
+
return C && r(_, F.MUST_HAVE_MESSAGES_IN_PLURAL, A, 0), o(h, _.currentOffset(), _.currentPosition()), h;
|
|
3615
3615
|
}
|
|
3616
|
-
function b(
|
|
3617
|
-
const O =
|
|
3618
|
-
return O.currentType === 13 ? v : g(
|
|
3616
|
+
function b(_) {
|
|
3617
|
+
const O = _.context(), { offset: A, startLoc: y } = O, v = T(_);
|
|
3618
|
+
return O.currentType === 13 ? v : g(_, A, y, v);
|
|
3619
3619
|
}
|
|
3620
|
-
function N(
|
|
3621
|
-
const O = Ac(
|
|
3622
|
-
return t && y.loc && (y.loc.source =
|
|
3620
|
+
function N(_) {
|
|
3621
|
+
const O = Ac(_, re({}, e)), A = O.context(), y = s(0, A.offset, A.startLoc);
|
|
3622
|
+
return t && y.loc && (y.loc.source = _), y.body = b(O), e.onCacheKey && (y.cacheKey = e.onCacheKey(_)), A.currentType !== 13 && r(O, F.UNEXPECTED_LEXICAL_ANALYSIS, A.lastStartLoc, 0, _[A.offset] || ""), o(y, O.currentOffset(), O.currentPosition()), y;
|
|
3623
3623
|
}
|
|
3624
3624
|
return { parse: N };
|
|
3625
3625
|
}
|
|
@@ -3787,27 +3787,27 @@ function Mc(e, t) {
|
|
|
3787
3787
|
function c(b, N) {
|
|
3788
3788
|
i.code += b;
|
|
3789
3789
|
}
|
|
3790
|
-
function
|
|
3791
|
-
const
|
|
3792
|
-
c(s ?
|
|
3790
|
+
function u(b, N = !0) {
|
|
3791
|
+
const _ = N ? r : "";
|
|
3792
|
+
c(s ? _ + " ".repeat(b) : _);
|
|
3793
3793
|
}
|
|
3794
|
-
function
|
|
3794
|
+
function f(b = !0) {
|
|
3795
3795
|
const N = ++i.indentLevel;
|
|
3796
|
-
b &&
|
|
3796
|
+
b && u(N);
|
|
3797
3797
|
}
|
|
3798
|
-
function
|
|
3798
|
+
function m(b = !0) {
|
|
3799
3799
|
const N = --i.indentLevel;
|
|
3800
|
-
b &&
|
|
3800
|
+
b && u(N);
|
|
3801
3801
|
}
|
|
3802
|
-
function
|
|
3803
|
-
|
|
3802
|
+
function p() {
|
|
3803
|
+
u(i.indentLevel);
|
|
3804
3804
|
}
|
|
3805
3805
|
return {
|
|
3806
3806
|
context: a,
|
|
3807
3807
|
push: c,
|
|
3808
|
-
indent:
|
|
3809
|
-
deindent:
|
|
3810
|
-
newline:
|
|
3808
|
+
indent: f,
|
|
3809
|
+
deindent: m,
|
|
3810
|
+
newline: p,
|
|
3811
3811
|
helper: (b) => `_${b}`,
|
|
3812
3812
|
needIndent: () => i.needIndent
|
|
3813
3813
|
};
|
|
@@ -3908,12 +3908,12 @@ const jc = (e, t = {}) => {
|
|
|
3908
3908
|
breakLineCode: s,
|
|
3909
3909
|
needIndent: o
|
|
3910
3910
|
});
|
|
3911
|
-
a.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), a.indent(o), i.length > 0 && (a.push(`const { ${pr(i.map((
|
|
3912
|
-
const { code: c, map:
|
|
3911
|
+
a.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), a.indent(o), i.length > 0 && (a.push(`const { ${pr(i.map((f) => `${f}: _${f}`), ", ")} } = ctx`), a.newline()), a.push("return "), st(a, e), a.deindent(o), a.push("}"), delete e.helpers;
|
|
3912
|
+
const { code: c, map: u } = a.context();
|
|
3913
3913
|
return {
|
|
3914
3914
|
ast: e,
|
|
3915
3915
|
code: c,
|
|
3916
|
-
map:
|
|
3916
|
+
map: u ? u.toJSON() : void 0
|
|
3917
3917
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
3918
3918
|
};
|
|
3919
3919
|
};
|
|
@@ -4406,55 +4406,55 @@ function hl(e) {
|
|
|
4406
4406
|
}
|
|
4407
4407
|
function El(e) {
|
|
4408
4408
|
const t = [];
|
|
4409
|
-
let n = -1, r = 0, s = 0, o, i, a, c,
|
|
4410
|
-
const
|
|
4411
|
-
|
|
4409
|
+
let n = -1, r = 0, s = 0, o, i, a, c, u, f, m;
|
|
4410
|
+
const p = [];
|
|
4411
|
+
p[
|
|
4412
4412
|
0
|
|
4413
4413
|
/* Actions.APPEND */
|
|
4414
4414
|
] = () => {
|
|
4415
4415
|
i === void 0 ? i = a : i += a;
|
|
4416
|
-
},
|
|
4416
|
+
}, p[
|
|
4417
4417
|
1
|
|
4418
4418
|
/* Actions.PUSH */
|
|
4419
4419
|
] = () => {
|
|
4420
4420
|
i !== void 0 && (t.push(i), i = void 0);
|
|
4421
|
-
},
|
|
4421
|
+
}, p[
|
|
4422
4422
|
2
|
|
4423
4423
|
/* Actions.INC_SUB_PATH_DEPTH */
|
|
4424
4424
|
] = () => {
|
|
4425
|
-
|
|
4425
|
+
p[
|
|
4426
4426
|
0
|
|
4427
4427
|
/* Actions.APPEND */
|
|
4428
4428
|
](), s++;
|
|
4429
|
-
},
|
|
4429
|
+
}, p[
|
|
4430
4430
|
3
|
|
4431
4431
|
/* Actions.PUSH_SUB_PATH */
|
|
4432
4432
|
] = () => {
|
|
4433
4433
|
if (s > 0)
|
|
4434
|
-
s--, r = 4,
|
|
4434
|
+
s--, r = 4, p[
|
|
4435
4435
|
0
|
|
4436
4436
|
/* Actions.APPEND */
|
|
4437
4437
|
]();
|
|
4438
4438
|
else {
|
|
4439
4439
|
if (s = 0, i === void 0 || (i = hl(i), i === !1))
|
|
4440
4440
|
return !1;
|
|
4441
|
-
|
|
4441
|
+
p[
|
|
4442
4442
|
1
|
|
4443
4443
|
/* Actions.PUSH */
|
|
4444
4444
|
]();
|
|
4445
4445
|
}
|
|
4446
4446
|
};
|
|
4447
|
-
function
|
|
4447
|
+
function T() {
|
|
4448
4448
|
const g = e[n + 1];
|
|
4449
4449
|
if (r === 5 && g === "'" || r === 6 && g === '"')
|
|
4450
|
-
return n++, a = "\\" + g,
|
|
4450
|
+
return n++, a = "\\" + g, p[
|
|
4451
4451
|
0
|
|
4452
4452
|
/* Actions.APPEND */
|
|
4453
4453
|
](), !0;
|
|
4454
4454
|
}
|
|
4455
4455
|
for (; r !== null; )
|
|
4456
|
-
if (n++, o = e[n], !(o === "\\" &&
|
|
4457
|
-
if (c = _l(o),
|
|
4456
|
+
if (n++, o = e[n], !(o === "\\" && T())) {
|
|
4457
|
+
if (c = _l(o), m = xe[r], u = m[c] || m.l || 8, u === 8 || (r = u[0], u[1] !== void 0 && (f = p[u[1]], f && (a = o, f() === !1))))
|
|
4458
4458
|
return;
|
|
4459
4459
|
if (r === 7)
|
|
4460
4460
|
return t;
|
|
@@ -4537,7 +4537,7 @@ const ds = (e) => {
|
|
|
4537
4537
|
}, vl = () => Lo;
|
|
4538
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, 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),
|
|
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), u = re(H(), e.modifiers, Ol()), f = e.pluralRules || H(), m = G(e.missing) ? e.missing : null, p = X(e.missingWarn) || Wt(e.missingWarn) ? e.missingWarn : !0, T = X(e.fallbackWarn) || Wt(e.fallbackWarn) ? e.fallbackWarn : !0, g = !!e.fallbackFormat, b = !!e.unresolving, N = G(e.postTranslation) ? e.postTranslation : null, _ = j(e.processor) ? e.processor : null, O = X(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, A = !!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
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
4543
|
ps++;
|
|
@@ -4547,17 +4547,17 @@ function Cl(e = {}) {
|
|
|
4547
4547
|
locale: r,
|
|
4548
4548
|
fallbackLocale: o,
|
|
4549
4549
|
messages: i,
|
|
4550
|
-
modifiers:
|
|
4551
|
-
pluralRules:
|
|
4552
|
-
missing:
|
|
4553
|
-
missingWarn:
|
|
4554
|
-
fallbackWarn:
|
|
4550
|
+
modifiers: u,
|
|
4551
|
+
pluralRules: f,
|
|
4552
|
+
missing: m,
|
|
4553
|
+
missingWarn: p,
|
|
4554
|
+
fallbackWarn: T,
|
|
4555
4555
|
fallbackFormat: g,
|
|
4556
4556
|
unresolving: b,
|
|
4557
4557
|
postTranslation: N,
|
|
4558
|
-
processor:
|
|
4558
|
+
processor: _,
|
|
4559
4559
|
warnHtmlMessage: O,
|
|
4560
|
-
escapeParameter:
|
|
4560
|
+
escapeParameter: A,
|
|
4561
4561
|
messageCompiler: y,
|
|
4562
4562
|
messageResolver: v,
|
|
4563
4563
|
localeFallbacker: C,
|
|
@@ -4619,18 +4619,18 @@ function _s(e, ...t) {
|
|
|
4619
4619
|
return process.env.NODE_ENV !== "production" && o(Ie(te.INVALID_DATE_ARGUMENT, {
|
|
4620
4620
|
value: String(t[0])
|
|
4621
4621
|
})), ot;
|
|
4622
|
-
const [c,
|
|
4622
|
+
const [c, u, f, m] = Qn(...t), p = X(f.missingWarn) ? f.missingWarn : e.missingWarn, T = X(f.fallbackWarn) ? f.fallbackWarn : e.fallbackWarn, g = !!f.part, b = hr(e, f), 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 === "")
|
|
4629
|
-
return new Intl.DateTimeFormat(b.replace(/!/g, ""),
|
|
4630
|
-
let
|
|
4629
|
+
return new Intl.DateTimeFormat(b.replace(/!/g, ""), m).format(u);
|
|
4630
|
+
let _ = {}, O, A = 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 && dn(
|
|
4633
|
+
if (O = v = N[M], process.env.NODE_ENV !== "production" && b !== O && dn(T, 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) {
|
|
@@ -4643,16 +4643,16 @@ function _s(e, ...t) {
|
|
|
4643
4643
|
groupId: `${C}:${c}`
|
|
4644
4644
|
});
|
|
4645
4645
|
}
|
|
4646
|
-
if (
|
|
4646
|
+
if (_ = n[O] || {}, A = _[c], j(A))
|
|
4647
4647
|
break;
|
|
4648
|
-
Er(e, c, O,
|
|
4648
|
+
Er(e, c, O, p, C), y = v;
|
|
4649
4649
|
}
|
|
4650
|
-
if (!j(
|
|
4650
|
+
if (!j(A) || !D(O))
|
|
4651
4651
|
return r ? fn : c;
|
|
4652
4652
|
let h = `${O}__${c}`;
|
|
4653
|
-
un(
|
|
4653
|
+
un(m) || (h = `${h}__${JSON.stringify(m)}`);
|
|
4654
4654
|
let x = a.get(h);
|
|
4655
|
-
return x || (x = new Intl.DateTimeFormat(O, re({},
|
|
4655
|
+
return x || (x = new Intl.DateTimeFormat(O, re({}, A, m)), a.set(h, x)), g ? x.formatToParts(u) : x.format(u);
|
|
4656
4656
|
}
|
|
4657
4657
|
const Io = [
|
|
4658
4658
|
"localeMatcher",
|
|
@@ -4683,8 +4683,8 @@ function Qn(...e) {
|
|
|
4683
4683
|
const c = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
4684
4684
|
if (!c)
|
|
4685
4685
|
throw ve(ae.INVALID_ISO_DATE_ARGUMENT);
|
|
4686
|
-
const
|
|
4687
|
-
a = new Date(
|
|
4686
|
+
const u = c[3] ? c[3].trim().startsWith("T") ? `${c[1].trim()}${c[3].trim()}` : `${c[1].trim()}T${c[3].trim()}` : c[1].trim();
|
|
4687
|
+
a = new Date(u);
|
|
4688
4688
|
try {
|
|
4689
4689
|
a.toISOString();
|
|
4690
4690
|
} catch {
|
|
@@ -4717,18 +4717,18 @@ function Es(e, ...t) {
|
|
|
4717
4717
|
return process.env.NODE_ENV !== "production" && o(Ie(te.INVALID_NUMBER_ARGUMENT, {
|
|
4718
4718
|
value: String(t[0])
|
|
4719
4719
|
})), ot;
|
|
4720
|
-
const [c,
|
|
4720
|
+
const [c, u, f, m] = zn(...t), p = X(f.missingWarn) ? f.missingWarn : e.missingWarn, T = X(f.fallbackWarn) ? f.fallbackWarn : e.fallbackWarn, g = !!f.part, b = hr(e, f), 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 === "")
|
|
4727
|
-
return new Intl.NumberFormat(b.replace(/!/g, ""),
|
|
4728
|
-
let
|
|
4727
|
+
return new Intl.NumberFormat(b.replace(/!/g, ""), m).format(u);
|
|
4728
|
+
let _ = {}, O, A = 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 && dn(
|
|
4731
|
+
if (O = v = N[M], process.env.NODE_ENV !== "production" && b !== O && dn(T, 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) {
|
|
@@ -4741,16 +4741,16 @@ function Es(e, ...t) {
|
|
|
4741
4741
|
groupId: `${C}:${c}`
|
|
4742
4742
|
});
|
|
4743
4743
|
}
|
|
4744
|
-
if (
|
|
4744
|
+
if (_ = n[O] || {}, A = _[c], j(A))
|
|
4745
4745
|
break;
|
|
4746
|
-
Er(e, c, O,
|
|
4746
|
+
Er(e, c, O, p, C), y = v;
|
|
4747
4747
|
}
|
|
4748
|
-
if (!j(
|
|
4748
|
+
if (!j(A) || !D(O))
|
|
4749
4749
|
return r ? fn : c;
|
|
4750
4750
|
let h = `${O}__${c}`;
|
|
4751
|
-
un(
|
|
4751
|
+
un(m) || (h = `${h}__${JSON.stringify(m)}`);
|
|
4752
4752
|
let x = a.get(h);
|
|
4753
|
-
return x || (x = new Intl.NumberFormat(O, re({},
|
|
4753
|
+
return x || (x = new Intl.NumberFormat(O, re({}, A, m)), a.set(h, x)), g ? x.formatToParts(u) : x.format(u);
|
|
4754
4754
|
}
|
|
4755
4755
|
const Po = [
|
|
4756
4756
|
"localeMatcher",
|
|
@@ -4800,45 +4800,45 @@ 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] : Pn, s = r === Pn ? void 0 : Pn, o = (
|
|
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 = (_) => _[r(n, _.length, s)], i = e.list || [], a = (_) => i[_], c = e.named || H();
|
|
4804
4804
|
ne(e.pluralIndex) && (c.count ||= e.pluralIndex, c.n ||= e.pluralIndex);
|
|
4805
|
-
const
|
|
4806
|
-
function
|
|
4807
|
-
const
|
|
4808
|
-
return
|
|
4805
|
+
const u = (_) => c[_];
|
|
4806
|
+
function f(_, O) {
|
|
4807
|
+
const A = G(e.messages) ? e.messages(_, !!O) : B(e.messages) ? e.messages[_] : !1;
|
|
4808
|
+
return A || (e.parent ? e.parent.message(_) : wl);
|
|
4809
4809
|
}
|
|
4810
|
-
const
|
|
4810
|
+
const m = (_) => e.modifiers ? e.modifiers[_] : Pl, p = G(e.processor?.normalize) ? e.processor.normalize : kl, T = G(e.processor?.interpolate) ? e.processor.interpolate : Fl, g = D(e.processor?.type) ? e.processor.type : Dl, N = {
|
|
4811
4811
|
list: a,
|
|
4812
|
-
named:
|
|
4812
|
+
named: u,
|
|
4813
4813
|
plural: o,
|
|
4814
|
-
linked: (
|
|
4815
|
-
const [
|
|
4814
|
+
linked: (_, ...O) => {
|
|
4815
|
+
const [A, y] = O;
|
|
4816
4816
|
let v = "text", C = "";
|
|
4817
|
-
O.length === 1 ? B(
|
|
4818
|
-
const h =
|
|
4817
|
+
O.length === 1 ? B(A) ? (C = A.modifier || C, v = A.type || v) : D(A) && (C = A || C) : O.length === 2 && (D(A) && (C = A || C), D(y) && (v = y || v));
|
|
4818
|
+
const h = f(_, !0)(N), x = h === "" || h === void 0 ? _ : h, M = (
|
|
4819
4819
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
4820
4820
|
v === "vnode" && J(x) && C ? x[0] : x
|
|
4821
4821
|
);
|
|
4822
|
-
return C ?
|
|
4822
|
+
return C ? m(C)(M, v) : M;
|
|
4823
4823
|
},
|
|
4824
|
-
message:
|
|
4824
|
+
message: f,
|
|
4825
4825
|
type: g,
|
|
4826
|
-
interpolate:
|
|
4827
|
-
normalize:
|
|
4826
|
+
interpolate: T,
|
|
4827
|
+
normalize: p,
|
|
4828
4828
|
values: re(H(), i, c)
|
|
4829
4829
|
};
|
|
4830
4830
|
return N;
|
|
4831
4831
|
}
|
|
4832
4832
|
const bs = () => "", he = (e) => G(e);
|
|
4833
4833
|
function ys(e, ...t) {
|
|
4834
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: s, messageCompiler: o, fallbackLocale: i, messages: a } = e, [c,
|
|
4835
|
-
|
|
4836
|
-
let [
|
|
4834
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: s, messageCompiler: o, fallbackLocale: i, messages: a } = e, [c, u] = Zn(...t), f = X(u.missingWarn) ? u.missingWarn : e.missingWarn, m = X(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn, p = X(u.escapeParameter) ? u.escapeParameter : e.escapeParameter, T = !!u.resolvedMessage, g = D(u.default) || X(u.default) ? X(u.default) ? o ? c : () => c : u.default : n ? o ? c : () => c : null, b = n || g != null && (D(g) || G(g)), N = hr(e, u);
|
|
4835
|
+
p && xl(u);
|
|
4836
|
+
let [_, O, A] = T ? [
|
|
4837
4837
|
c,
|
|
4838
4838
|
N,
|
|
4839
4839
|
a[N] || H()
|
|
4840
|
-
] : wo(e, c, N, i,
|
|
4841
|
-
if (!
|
|
4840
|
+
] : wo(e, c, N, i, m, f), y = _, v = c;
|
|
4841
|
+
if (!T && !(D(y) || be(y) || he(y)) && b && (y = g, v = y), !T && (!(D(y) || be(y) || he(y)) || !D(O)))
|
|
4842
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;
|
|
@@ -4848,9 +4848,9 @@ function ys(e, ...t) {
|
|
|
4848
4848
|
}, x = he(y) ? y : Do(e, c, O, y, v, h);
|
|
4849
4849
|
if (C)
|
|
4850
4850
|
return y;
|
|
4851
|
-
const M = jl(e, O,
|
|
4851
|
+
const M = jl(e, O, A, u), I = Ml(M), P = Vl(e, x, I);
|
|
4852
4852
|
let k = r ? r(P, c) : P;
|
|
4853
|
-
if (
|
|
4853
|
+
if (p && D(k) && (k = ac(k)), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
4854
4854
|
const q = {
|
|
4855
4855
|
timestamp: Date.now(),
|
|
4856
4856
|
key: D(c) ? c : he(y) ? y.key : "",
|
|
@@ -4868,14 +4868,14 @@ function xl(e) {
|
|
|
4868
4868
|
});
|
|
4869
4869
|
}
|
|
4870
4870
|
function wo(e, t, n, r, s, o) {
|
|
4871
|
-
const { messages: i, onWarn: a, messageResolver: c, localeFallbacker:
|
|
4872
|
-
let
|
|
4871
|
+
const { messages: i, onWarn: a, messageResolver: c, localeFallbacker: u } = e, f = u(e, r, n);
|
|
4872
|
+
let m = H(), p, T = null, g = n, b = null;
|
|
4873
4873
|
const N = "translate";
|
|
4874
|
-
for (let
|
|
4875
|
-
if (
|
|
4874
|
+
for (let _ = 0; _ < f.length; _++) {
|
|
4875
|
+
if (p = b = f[_], process.env.NODE_ENV !== "production" && n !== p && !vo(n, p) && dn(s, t) && a(Ie(te.FALLBACK_TO_TRANSLATE, {
|
|
4876
4876
|
key: t,
|
|
4877
|
-
target:
|
|
4878
|
-
})), process.env.NODE_ENV !== "production" && n !==
|
|
4877
|
+
target: p
|
|
4878
|
+
})), process.env.NODE_ENV !== "production" && n !== p) {
|
|
4879
4879
|
const v = e.__v_emitter;
|
|
4880
4880
|
v && v.emit("fallback", {
|
|
4881
4881
|
type: N,
|
|
@@ -4885,58 +4885,58 @@ function wo(e, t, n, r, s, o) {
|
|
|
4885
4885
|
groupId: `${N}:${t}`
|
|
4886
4886
|
});
|
|
4887
4887
|
}
|
|
4888
|
-
|
|
4889
|
-
let O = null,
|
|
4890
|
-
if (process.env.NODE_ENV !== "production" && Pe && (O = window.performance.now(),
|
|
4888
|
+
m = i[p] || H();
|
|
4889
|
+
let O = null, A, y;
|
|
4890
|
+
if (process.env.NODE_ENV !== "production" && Pe && (O = window.performance.now(), A = "intlify-message-resolve-start", y = "intlify-message-resolve-end", de && de(A)), (T = c(m, t)) === null && (T = m[t]), process.env.NODE_ENV !== "production" && Pe) {
|
|
4891
4891
|
const v = window.performance.now(), C = e.__v_emitter;
|
|
4892
|
-
C && O &&
|
|
4892
|
+
C && O && T && C.emit("message-resolve", {
|
|
4893
4893
|
type: "message-resolve",
|
|
4894
4894
|
key: t,
|
|
4895
|
-
message:
|
|
4895
|
+
message: T,
|
|
4896
4896
|
time: v - O,
|
|
4897
4897
|
groupId: `${N}:${t}`
|
|
4898
|
-
}),
|
|
4898
|
+
}), A && y && de && Je && (de(y), Je("intlify message resolve", A, y));
|
|
4899
4899
|
}
|
|
4900
|
-
if (D(
|
|
4900
|
+
if (D(T) || be(T) || he(T))
|
|
4901
4901
|
break;
|
|
4902
|
-
if (!Il(
|
|
4902
|
+
if (!Il(p, f)) {
|
|
4903
4903
|
const v = Er(
|
|
4904
4904
|
e,
|
|
4905
4905
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
4906
4906
|
t,
|
|
4907
|
-
|
|
4907
|
+
p,
|
|
4908
4908
|
o,
|
|
4909
4909
|
N
|
|
4910
4910
|
);
|
|
4911
|
-
v !== t && (
|
|
4911
|
+
v !== t && (T = v);
|
|
4912
4912
|
}
|
|
4913
4913
|
g = b;
|
|
4914
4914
|
}
|
|
4915
|
-
return [
|
|
4915
|
+
return [T, p, m];
|
|
4916
4916
|
}
|
|
4917
4917
|
function Do(e, t, n, r, s, o) {
|
|
4918
4918
|
const { messageCompiler: i, warnHtmlMessage: a } = e;
|
|
4919
4919
|
if (he(r)) {
|
|
4920
|
-
const
|
|
4921
|
-
return
|
|
4920
|
+
const p = r;
|
|
4921
|
+
return p.locale = p.locale || n, p.key = p.key || t, p;
|
|
4922
4922
|
}
|
|
4923
4923
|
if (i == null) {
|
|
4924
|
-
const
|
|
4925
|
-
return
|
|
4924
|
+
const p = (() => r);
|
|
4925
|
+
return p.locale = n, p.key = t, p;
|
|
4926
4926
|
}
|
|
4927
|
-
let c = null,
|
|
4928
|
-
process.env.NODE_ENV !== "production" && Pe && (c = window.performance.now(),
|
|
4929
|
-
const
|
|
4927
|
+
let c = null, u, f;
|
|
4928
|
+
process.env.NODE_ENV !== "production" && Pe && (c = window.performance.now(), u = "intlify-message-compilation-start", f = "intlify-message-compilation-end", de && de(u));
|
|
4929
|
+
const m = i(r, $l(e, n, s, r, a, o));
|
|
4930
4930
|
if (process.env.NODE_ENV !== "production" && Pe) {
|
|
4931
|
-
const
|
|
4932
|
-
|
|
4931
|
+
const p = window.performance.now(), T = e.__v_emitter;
|
|
4932
|
+
T && c && T.emit("message-compilation", {
|
|
4933
4933
|
type: "message-compilation",
|
|
4934
4934
|
message: r,
|
|
4935
|
-
time:
|
|
4935
|
+
time: p - c,
|
|
4936
4936
|
groupId: `translate:${t}`
|
|
4937
|
-
}),
|
|
4937
|
+
}), u && f && de && Je && (de(f), Je("intlify message compilation", u, f));
|
|
4938
4938
|
}
|
|
4939
|
-
return
|
|
4939
|
+
return m.locale = n, m.key = t, m.source = r, m;
|
|
4940
4940
|
}
|
|
4941
4941
|
function Vl(e, t, n) {
|
|
4942
4942
|
let r = null, s, o;
|
|
@@ -4967,17 +4967,17 @@ function $l(e, t, n, r, s, o) {
|
|
|
4967
4967
|
warnHtmlMessage: s,
|
|
4968
4968
|
onError: (i) => {
|
|
4969
4969
|
if (o && o(i), process.env.NODE_ENV !== "production") {
|
|
4970
|
-
const a = Bl(r), c = i.location && a && fc(a, i.location.start.offset, i.location.end.offset),
|
|
4971
|
-
|
|
4970
|
+
const a = Bl(r), c = i.location && a && fc(a, i.location.start.offset, i.location.end.offset), u = e.__v_emitter;
|
|
4971
|
+
u && a && u.emit("compile-error", {
|
|
4972
4972
|
message: a,
|
|
4973
4973
|
error: i.message,
|
|
4974
4974
|
start: i.location && i.location.start.offset,
|
|
4975
4975
|
end: i.location && i.location.end.offset,
|
|
4976
4976
|
groupId: `translate:${n}`
|
|
4977
4977
|
});
|
|
4978
|
-
const
|
|
4979
|
-
throw new SyntaxError(c ? `${
|
|
4980
|
-
${c}` :
|
|
4978
|
+
const f = `Message compilation error: ${i.message}`;
|
|
4979
|
+
throw new SyntaxError(c ? `${f}
|
|
4980
|
+
${c}` : f);
|
|
4981
4981
|
}
|
|
4982
4982
|
throw i;
|
|
4983
4983
|
},
|
|
@@ -4991,34 +4991,34 @@ function Bl(e) {
|
|
|
4991
4991
|
return e.loc.source;
|
|
4992
4992
|
}
|
|
4993
4993
|
function jl(e, t, n, r) {
|
|
4994
|
-
const { modifiers: s, pluralRules: o, messageResolver: i, fallbackLocale: a, fallbackWarn: c, missingWarn:
|
|
4994
|
+
const { modifiers: s, pluralRules: o, messageResolver: i, fallbackLocale: a, fallbackWarn: c, missingWarn: u, fallbackContext: f } = e, p = {
|
|
4995
4995
|
locale: t,
|
|
4996
4996
|
modifiers: s,
|
|
4997
4997
|
pluralRules: o,
|
|
4998
|
-
messages: (
|
|
4999
|
-
let b = i(n,
|
|
5000
|
-
if (b == null && (
|
|
4998
|
+
messages: (T, g) => {
|
|
4999
|
+
let b = i(n, T);
|
|
5000
|
+
if (b == null && (f || g)) {
|
|
5001
5001
|
const [, , N] = wo(
|
|
5002
|
-
|
|
5002
|
+
f || e,
|
|
5003
5003
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
5004
|
-
|
|
5004
|
+
T,
|
|
5005
5005
|
t,
|
|
5006
5006
|
a,
|
|
5007
5007
|
c,
|
|
5008
|
-
|
|
5008
|
+
u
|
|
5009
5009
|
);
|
|
5010
|
-
b = i(N,
|
|
5010
|
+
b = i(N, T);
|
|
5011
5011
|
}
|
|
5012
5012
|
if (D(b) || be(b)) {
|
|
5013
5013
|
let N = !1;
|
|
5014
|
-
const O = Do(e,
|
|
5014
|
+
const O = Do(e, T, t, b, T, () => {
|
|
5015
5015
|
N = !0;
|
|
5016
5016
|
});
|
|
5017
5017
|
return N ? bs : O;
|
|
5018
5018
|
} else return he(b) ? b : bs;
|
|
5019
5019
|
}
|
|
5020
5020
|
};
|
|
5021
|
-
return e.processor && (
|
|
5021
|
+
return e.processor && (p.processor = e.processor), r.list && (p.list = r.list), r.named && (p.named = r.named), ne(r.plural) && (p.pluralIndex = r.plural), p;
|
|
5022
5022
|
}
|
|
5023
5023
|
qc();
|
|
5024
5024
|
const Hl = "11.3.0";
|
|
@@ -5127,8 +5127,8 @@ function Fo(e, t) {
|
|
|
5127
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
|
-
const { locale: c, resource:
|
|
5131
|
-
c ? (i[c] = i[c] || H(), Mt(
|
|
5130
|
+
const { locale: c, resource: u } = a;
|
|
5131
|
+
c ? (i[c] = i[c] || H(), Mt(u, i[c])) : Mt(u, i);
|
|
5132
5132
|
} else
|
|
5133
5133
|
D(a) && Mt(JSON.parse(a), i);
|
|
5134
5134
|
}), s == null && o)
|
|
@@ -5190,8 +5190,8 @@ function Ql(e = {}) {
|
|
|
5190
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
|
-
),
|
|
5194
|
-
let
|
|
5193
|
+
), u = o(Fo(a.value, e)), f = o(j(e.datetimeFormats) ? e.datetimeFormats : { [a.value]: {} }), m = o(j(e.numberFormats) ? e.numberFormats : { [a.value]: {} });
|
|
5194
|
+
let p = t ? t.missingWarn : X(e.missingWarn) || Wt(e.missingWarn) ? e.missingWarn : !0, T = 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, _ = G(e.missing) ? As(e.missing) : null, O = G(e.postTranslation) ? e.postTranslation : null, A = 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 = (() => {
|
|
@@ -5200,22 +5200,22 @@ function Ql(e = {}) {
|
|
|
5200
5200
|
version: Hl,
|
|
5201
5201
|
locale: a.value,
|
|
5202
5202
|
fallbackLocale: c.value,
|
|
5203
|
-
messages:
|
|
5203
|
+
messages: u.value,
|
|
5204
5204
|
modifiers: v,
|
|
5205
5205
|
pluralRules: C,
|
|
5206
|
-
missing:
|
|
5207
|
-
missingWarn:
|
|
5208
|
-
fallbackWarn:
|
|
5206
|
+
missing: _ === null ? void 0 : _,
|
|
5207
|
+
missingWarn: p,
|
|
5208
|
+
fallbackWarn: T,
|
|
5209
5209
|
fallbackFormat: b,
|
|
5210
5210
|
unresolving: !0,
|
|
5211
5211
|
postTranslation: O === null ? void 0 : O,
|
|
5212
|
-
warnHtmlMessage:
|
|
5212
|
+
warnHtmlMessage: A,
|
|
5213
5213
|
escapeParameter: y,
|
|
5214
5214
|
messageResolver: e.messageResolver,
|
|
5215
5215
|
messageCompiler: e.messageCompiler,
|
|
5216
5216
|
__meta: { framework: "vue" }
|
|
5217
5217
|
};
|
|
5218
|
-
S.datetimeFormats =
|
|
5218
|
+
S.datetimeFormats = f.value, S.numberFormats = m.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
5220
|
return r && ds(R), R;
|
|
5221
5221
|
})(), pt(h, a.value, c.value);
|
|
@@ -5223,9 +5223,9 @@ function Ql(e = {}) {
|
|
|
5223
5223
|
return [
|
|
5224
5224
|
a.value,
|
|
5225
5225
|
c.value,
|
|
5226
|
-
f.value,
|
|
5227
5226
|
u.value,
|
|
5228
|
-
|
|
5227
|
+
f.value,
|
|
5228
|
+
m.value
|
|
5229
5229
|
];
|
|
5230
5230
|
}
|
|
5231
5231
|
const I = Ue({
|
|
@@ -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(() =>
|
|
5241
|
+
}), k = Ue(() => u.value), q = /* @__PURE__ */ Ue(() => f.value), se = /* @__PURE__ */ Ue(() => m.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 && (
|
|
5252
|
+
S !== null && (_ = As(S)), N = S, h.missing = _;
|
|
5253
5253
|
}
|
|
5254
5254
|
function Z(S, R) {
|
|
5255
5255
|
return S !== "translate" || !R.resolvedMessage;
|
|
@@ -5265,7 +5265,7 @@ function Ql(e = {}) {
|
|
|
5265
5265
|
if ($ !== "translate exists" && // for not `te` (e.g `t`)
|
|
5266
5266
|
ne(pe) && pe === fn || $ === "translate exists" && !pe) {
|
|
5267
5267
|
const [He, Vo] = R();
|
|
5268
|
-
if (process.env.NODE_ENV !== "production" && t && D(He) && Z($, Vo) && (g && (dn(
|
|
5268
|
+
if (process.env.NODE_ENV !== "production" && t && D(He) && Z($, Vo) && (g && (dn(T, He) || Ro(p, He)) && Le(Yt(Ae.FALLBACK_TO_ROOT, {
|
|
5269
5269
|
key: He,
|
|
5270
5270
|
type: $
|
|
5271
5271
|
})), process.env.NODE_ENV !== "production")) {
|
|
@@ -5346,7 +5346,7 @@ function Ql(e = {}) {
|
|
|
5346
5346
|
let R = null;
|
|
5347
5347
|
const $ = Jn(h, c.value, a.value);
|
|
5348
5348
|
for (let Y = 0; Y < $.length; Y++) {
|
|
5349
|
-
const Be =
|
|
5349
|
+
const Be = u.value[$[Y]] || {}, je = h.messageResolver(Be, S);
|
|
5350
5350
|
if (je != null) {
|
|
5351
5351
|
R = je;
|
|
5352
5352
|
break;
|
|
@@ -5359,7 +5359,7 @@ function Ql(e = {}) {
|
|
|
5359
5359
|
return R ?? (t ? t.tm(S) || {} : {});
|
|
5360
5360
|
}
|
|
5361
5361
|
function $e(S) {
|
|
5362
|
-
return
|
|
5362
|
+
return u.value[S] || {};
|
|
5363
5363
|
}
|
|
5364
5364
|
function ft(S, R) {
|
|
5365
5365
|
if (s) {
|
|
@@ -5368,33 +5368,33 @@ function Ql(e = {}) {
|
|
|
5368
5368
|
Ee($, Y) && yt($[Y]);
|
|
5369
5369
|
R = $[S];
|
|
5370
5370
|
}
|
|
5371
|
-
|
|
5371
|
+
u.value[S] = R, h.messages = u.value;
|
|
5372
5372
|
}
|
|
5373
5373
|
function gn(S, R) {
|
|
5374
|
-
|
|
5374
|
+
u.value[S] = u.value[S] || {};
|
|
5375
5375
|
const $ = { [S]: R };
|
|
5376
5376
|
if (s)
|
|
5377
5377
|
for (const Y in $)
|
|
5378
5378
|
Ee($, Y) && yt($[Y]);
|
|
5379
|
-
R = $[S], Mt(R,
|
|
5379
|
+
R = $[S], Mt(R, u.value[S]), h.messages = u.value;
|
|
5380
5380
|
}
|
|
5381
5381
|
function l(S) {
|
|
5382
|
-
return
|
|
5382
|
+
return f.value[S] || {};
|
|
5383
5383
|
}
|
|
5384
5384
|
function d(S, R) {
|
|
5385
|
-
|
|
5385
|
+
f.value[S] = R, h.datetimeFormats = f.value, hs(h, S, R);
|
|
5386
5386
|
}
|
|
5387
|
-
function
|
|
5388
|
-
|
|
5387
|
+
function L(S, R) {
|
|
5388
|
+
f.value[S] = re(f.value[S] || {}, R), h.datetimeFormats = f.value, hs(h, S, R);
|
|
5389
5389
|
}
|
|
5390
5390
|
function w(S) {
|
|
5391
|
-
return
|
|
5391
|
+
return m.value[S] || {};
|
|
5392
5392
|
}
|
|
5393
5393
|
function W(S, R) {
|
|
5394
|
-
|
|
5394
|
+
m.value[S] = R, h.numberFormats = m.value, gs(h, S, R);
|
|
5395
5395
|
}
|
|
5396
5396
|
function K(S, R) {
|
|
5397
|
-
|
|
5397
|
+
m.value[S] = re(m.value[S] || {}, R), h.numberFormats = m.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));
|
|
@@ -5412,7 +5412,7 @@ function Ql(e = {}) {
|
|
|
5412
5412
|
i = S, S && t && (a.value = t.locale.value, c.value = t.fallbackLocale.value, pt(h, a.value, c.value));
|
|
5413
5413
|
},
|
|
5414
5414
|
get availableLocales() {
|
|
5415
|
-
return Object.keys(
|
|
5415
|
+
return Object.keys(u.value).sort();
|
|
5416
5416
|
},
|
|
5417
5417
|
messages: k,
|
|
5418
5418
|
get modifiers() {
|
|
@@ -5425,16 +5425,16 @@ function Ql(e = {}) {
|
|
|
5425
5425
|
return r;
|
|
5426
5426
|
},
|
|
5427
5427
|
get missingWarn() {
|
|
5428
|
-
return
|
|
5428
|
+
return p;
|
|
5429
5429
|
},
|
|
5430
5430
|
set missingWarn(S) {
|
|
5431
|
-
|
|
5431
|
+
p = S, h.missingWarn = p;
|
|
5432
5432
|
},
|
|
5433
5433
|
get fallbackWarn() {
|
|
5434
|
-
return
|
|
5434
|
+
return T;
|
|
5435
5435
|
},
|
|
5436
5436
|
set fallbackWarn(S) {
|
|
5437
|
-
|
|
5437
|
+
T = S, h.fallbackWarn = T;
|
|
5438
5438
|
},
|
|
5439
5439
|
get fallbackRoot() {
|
|
5440
5440
|
return g;
|
|
@@ -5449,10 +5449,10 @@ function Ql(e = {}) {
|
|
|
5449
5449
|
b = S, h.fallbackFormat = b;
|
|
5450
5450
|
},
|
|
5451
5451
|
get warnHtmlMessage() {
|
|
5452
|
-
return
|
|
5452
|
+
return A;
|
|
5453
5453
|
},
|
|
5454
5454
|
set warnHtmlMessage(S) {
|
|
5455
|
-
|
|
5455
|
+
A = S, h.warnHtmlMessage = S;
|
|
5456
5456
|
},
|
|
5457
5457
|
get escapeParameter() {
|
|
5458
5458
|
return y;
|
|
@@ -5470,7 +5470,7 @@ function Ql(e = {}) {
|
|
|
5470
5470
|
setMissingHandler: ee,
|
|
5471
5471
|
[Gl]: hn
|
|
5472
5472
|
};
|
|
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 =
|
|
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 = L, 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
5475
|
}, V[sr] = () => {
|
|
5476
5476
|
h.__v_emitter = void 0;
|
|
@@ -5527,15 +5527,15 @@ function xo(e, t, n, r) {
|
|
|
5527
5527
|
return () => {
|
|
5528
5528
|
const i = { part: !0 };
|
|
5529
5529
|
let a = H();
|
|
5530
|
-
e.locale && (i.locale = e.locale), D(e.format) ? i.key = e.format : B(e.format) && (D(e.format.key) && (i.key = e.format.key), a = Object.keys(e.format).reduce((
|
|
5530
|
+
e.locale && (i.locale = e.locale), D(e.format) ? i.key = e.format : B(e.format) && (D(e.format.key) && (i.key = e.format.key), a = Object.keys(e.format).reduce((p, T) => n.includes(T) ? re(H(), p, { [T]: e.format[T] }) : p, H()));
|
|
5531
5531
|
const c = r(e.value, i, a);
|
|
5532
|
-
let
|
|
5533
|
-
J(c) ?
|
|
5534
|
-
const g = s[
|
|
5535
|
-
return Zl(b) && (b[0].key = `${
|
|
5536
|
-
}) : D(c) && (
|
|
5537
|
-
const
|
|
5538
|
-
return Ps(
|
|
5532
|
+
let u = [i.key];
|
|
5533
|
+
J(c) ? u = c.map((p, T) => {
|
|
5534
|
+
const g = s[p.type], b = g ? g({ [p.type]: p.value, index: T, parts: c }) : [p.value];
|
|
5535
|
+
return Zl(b) && (b[0].key = `${p.type}-${T}`), b;
|
|
5536
|
+
}) : D(c) && (u = [c]);
|
|
5537
|
+
const f = re(H(), o), m = D(e.tag) || B(e.tag) ? e.tag : Mo();
|
|
5538
|
+
return Ps(m, f, u);
|
|
5539
5539
|
};
|
|
5540
5540
|
}
|
|
5541
5541
|
re({
|
|
@@ -5637,7 +5637,7 @@ if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
|
5637
5637
|
}
|
|
5638
5638
|
process.env.NODE_ENV;
|
|
5639
5639
|
let Kt = null;
|
|
5640
|
-
function
|
|
5640
|
+
function Rf(e) {
|
|
5641
5641
|
if (Kt !== null) {
|
|
5642
5642
|
console.warn(
|
|
5643
5643
|
"[LinID CoreLib] I18n has already been initialized. Re-initialization is ignored."
|
|
@@ -5659,8 +5659,8 @@ function cu(e) {
|
|
|
5659
5659
|
__i18n: au().global
|
|
5660
5660
|
});
|
|
5661
5661
|
function s(...c) {
|
|
5662
|
-
const [
|
|
5663
|
-
return t(typeof
|
|
5662
|
+
const [u, f, m] = c;
|
|
5663
|
+
return t(typeof f == "number" ? `${e}.${u}` : `${e}.${u}`, f, m);
|
|
5664
5664
|
}
|
|
5665
5665
|
function o(c) {
|
|
5666
5666
|
return n(`${e}.${c}`);
|
|
@@ -5668,8 +5668,8 @@ function cu(e) {
|
|
|
5668
5668
|
function i(c) {
|
|
5669
5669
|
return r(`${e}.${c}`);
|
|
5670
5670
|
}
|
|
5671
|
-
function a(c, ...
|
|
5672
|
-
return o(
|
|
5671
|
+
function a(c, ...u) {
|
|
5672
|
+
return o(u[0]) ? s(...u) : c;
|
|
5673
5673
|
}
|
|
5674
5674
|
return {
|
|
5675
5675
|
t: s,
|
|
@@ -5690,43 +5690,47 @@ function fu(e, t) {
|
|
|
5690
5690
|
async function r(p) {
|
|
5691
5691
|
try {
|
|
5692
5692
|
return await Za(e, t, p), !0;
|
|
5693
|
-
} catch (
|
|
5694
|
-
return uu(
|
|
5693
|
+
} catch (T) {
|
|
5694
|
+
return uu(T) ? T.response.data.error : n("validation.unknownError");
|
|
5695
5695
|
}
|
|
5696
5696
|
}
|
|
5697
5697
|
function s(p) {
|
|
5698
5698
|
return p == null || p === "" ? n("validation.required") : !0;
|
|
5699
5699
|
}
|
|
5700
|
-
function o(p
|
|
5701
|
-
return p !=
|
|
5700
|
+
function o(p) {
|
|
5701
|
+
return typeof p != "string" || !/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i.test(p) ? n("validation.email") : !0;
|
|
5702
|
+
}
|
|
5703
|
+
function i(p, T) {
|
|
5704
|
+
return p != null && p.length < T ? n("validation.minLength", { min: T }) : !0;
|
|
5702
5705
|
}
|
|
5703
|
-
function
|
|
5704
|
-
return p != null && p.length >
|
|
5706
|
+
function a(p, T) {
|
|
5707
|
+
return p != null && p.length > T ? n("validation.maxLength", { max: T }) : !0;
|
|
5705
5708
|
}
|
|
5706
|
-
function
|
|
5707
|
-
return
|
|
5709
|
+
function c(p, T) {
|
|
5710
|
+
return T > p ? n("validation.min", { min: T }) : !0;
|
|
5708
5711
|
}
|
|
5709
|
-
function
|
|
5710
|
-
return p >
|
|
5712
|
+
function u(p, T) {
|
|
5713
|
+
return p > T ? n("validation.max", { max: T }) : !0;
|
|
5711
5714
|
}
|
|
5712
|
-
function f(p,
|
|
5713
|
-
return new RegExp(
|
|
5715
|
+
function f(p, T) {
|
|
5716
|
+
return new RegExp(T).test(p) ? !0 : n("validation.pattern", { pattern: T.toString() });
|
|
5714
5717
|
}
|
|
5715
|
-
function
|
|
5716
|
-
return p == null ? !0 : (typeof p == "object" ?
|
|
5718
|
+
function m(p, T) {
|
|
5719
|
+
return p == null ? !0 : (typeof p == "object" ? T.some((b) => Yn(p, b)) : T.some((b) => b != null && String(b) === String(p))) ? n("validation.unique") : !0;
|
|
5717
5720
|
}
|
|
5718
5721
|
return {
|
|
5719
5722
|
validateFromApi: r,
|
|
5720
5723
|
required: s,
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
|
|
5724
|
-
|
|
5724
|
+
email: o,
|
|
5725
|
+
minLength: i,
|
|
5726
|
+
maxLength: a,
|
|
5727
|
+
min: c,
|
|
5728
|
+
max: u,
|
|
5725
5729
|
pattern: f,
|
|
5726
|
-
unique:
|
|
5730
|
+
unique: m
|
|
5727
5731
|
};
|
|
5728
5732
|
}
|
|
5729
|
-
function
|
|
5733
|
+
function vf() {
|
|
5730
5734
|
function e(t) {
|
|
5731
5735
|
Vs.next({
|
|
5732
5736
|
key: "notify",
|
|
@@ -5735,7 +5739,7 @@ function Rf() {
|
|
|
5735
5739
|
}
|
|
5736
5740
|
return { Notify: e };
|
|
5737
5741
|
}
|
|
5738
|
-
function
|
|
5742
|
+
function Cf() {
|
|
5739
5743
|
function e(n) {
|
|
5740
5744
|
return {
|
|
5741
5745
|
page: (n.page || 1) - 1,
|
|
@@ -5760,25 +5764,27 @@ function du(e, t) {
|
|
|
5760
5764
|
const {
|
|
5761
5765
|
validateFromApi: n,
|
|
5762
5766
|
required: r,
|
|
5763
|
-
|
|
5764
|
-
|
|
5765
|
-
|
|
5766
|
-
|
|
5767
|
-
|
|
5767
|
+
email: s,
|
|
5768
|
+
minLength: o,
|
|
5769
|
+
maxLength: i,
|
|
5770
|
+
min: a,
|
|
5771
|
+
max: c,
|
|
5772
|
+
pattern: u,
|
|
5768
5773
|
unique: f
|
|
5769
5774
|
} = fu(e, t);
|
|
5770
5775
|
return {
|
|
5771
5776
|
validateFromApi: n,
|
|
5772
5777
|
required: r,
|
|
5773
|
-
|
|
5774
|
-
|
|
5775
|
-
|
|
5776
|
-
|
|
5777
|
-
|
|
5778
|
-
|
|
5778
|
+
email: s,
|
|
5779
|
+
min: (m) => (p) => a(typeof p == "string" ? parseFloat(p) : p, m),
|
|
5780
|
+
max: (m) => (p) => c(typeof p == "string" ? parseFloat(p) : p, m),
|
|
5781
|
+
minLength: (m) => (p) => o(p, m),
|
|
5782
|
+
maxLength: (m) => (p) => i(p, m),
|
|
5783
|
+
pattern: (m) => (p) => u(p, m),
|
|
5784
|
+
unique: (m) => (p) => f(p, m)
|
|
5779
5785
|
};
|
|
5780
5786
|
}
|
|
5781
|
-
function
|
|
5787
|
+
function If(e, t, n) {
|
|
5782
5788
|
if (!t.hasValidations)
|
|
5783
5789
|
return [];
|
|
5784
5790
|
const { required: r, validateFromApi: s, ...o } = du(e, t.name), i = n.filter((a) => t.inputSettings?.[a] != null).map(
|
|
@@ -5793,7 +5799,7 @@ function Cf(e, t, n) {
|
|
|
5793
5799
|
];
|
|
5794
5800
|
}
|
|
5795
5801
|
let Xt = null;
|
|
5796
|
-
function
|
|
5802
|
+
function Pf(e) {
|
|
5797
5803
|
if (Xt !== null) {
|
|
5798
5804
|
console.warn(
|
|
5799
5805
|
"[LinID CoreLib] UI Design has already been initialized. Re-initialization is ignored."
|
|
@@ -6156,7 +6162,7 @@ const mu = [
|
|
|
6156
6162
|
"noErrorFocus",
|
|
6157
6163
|
"noResetFocus",
|
|
6158
6164
|
"greedy"
|
|
6159
|
-
], Vu = ["lines", "overline", "caption", "header"], Rs = {
|
|
6165
|
+
], Vu = ["lines", "overline", "caption", "header"], $u = ["inlineActions", "dense", "rounded", "dark"], Rs = {
|
|
6160
6166
|
"q-avatar": yu,
|
|
6161
6167
|
"q-badge": Nu,
|
|
6162
6168
|
"q-btn": mu,
|
|
@@ -6182,7 +6188,8 @@ const mu = [
|
|
|
6182
6188
|
"q-tabs": _u,
|
|
6183
6189
|
"q-toggle": Lu,
|
|
6184
6190
|
"q-toolbar": gu,
|
|
6185
|
-
"q-toolbar-title": bu
|
|
6191
|
+
"q-toolbar-title": bu,
|
|
6192
|
+
"q-banner": $u
|
|
6186
6193
|
};
|
|
6187
6194
|
function vs(e, t) {
|
|
6188
6195
|
return t.split(".").reduce((n, r) => {
|
|
@@ -6190,7 +6197,7 @@ function vs(e, t) {
|
|
|
6190
6197
|
return n[r];
|
|
6191
6198
|
}, e);
|
|
6192
6199
|
}
|
|
6193
|
-
function
|
|
6200
|
+
function Bu(e, t, n) {
|
|
6194
6201
|
let r = vs(e, `${t}.${n}`);
|
|
6195
6202
|
if (r === void 0 && (r = vs(e, `default.${n}`)), typeof r == "object")
|
|
6196
6203
|
throw new Error(
|
|
@@ -6198,39 +6205,39 @@ function $u(e, t, n) {
|
|
|
6198
6205
|
);
|
|
6199
6206
|
return r;
|
|
6200
6207
|
}
|
|
6201
|
-
function
|
|
6208
|
+
function ju(e) {
|
|
6202
6209
|
if (!(e in Rs))
|
|
6203
6210
|
throw new Error(
|
|
6204
6211
|
`[UiDesign] The component '${e}' is not supported for UI design retrieval.`
|
|
6205
6212
|
);
|
|
6206
6213
|
return Rs[e];
|
|
6207
6214
|
}
|
|
6208
|
-
function
|
|
6215
|
+
function wf() {
|
|
6209
6216
|
const e = Ue(() => pu());
|
|
6210
6217
|
function t(n, r, s) {
|
|
6211
|
-
const o =
|
|
6218
|
+
const o = ju(r), i = {};
|
|
6212
6219
|
for (const a of o) {
|
|
6213
|
-
const c = s?.[a] ??
|
|
6220
|
+
const c = s?.[a] ?? Bu(e.value, n, `${r}.${String(a)}`);
|
|
6214
6221
|
c !== void 0 && (i[a] = c);
|
|
6215
6222
|
}
|
|
6216
6223
|
return i;
|
|
6217
6224
|
}
|
|
6218
6225
|
return { ui: t };
|
|
6219
6226
|
}
|
|
6220
|
-
async function
|
|
6227
|
+
async function Hu() {
|
|
6221
6228
|
return (await we().get("/metadata/entities")).data;
|
|
6222
6229
|
}
|
|
6223
|
-
async function
|
|
6230
|
+
async function Df(e) {
|
|
6224
6231
|
return (await we().get(
|
|
6225
6232
|
`/metadata/entities/${e}`
|
|
6226
6233
|
)).data;
|
|
6227
6234
|
}
|
|
6228
|
-
async function
|
|
6235
|
+
async function qu() {
|
|
6229
6236
|
return (await we().get(
|
|
6230
6237
|
"/metadata/routes"
|
|
6231
6238
|
)).data;
|
|
6232
6239
|
}
|
|
6233
|
-
const
|
|
6240
|
+
const kf = () => Wu(en()), Wu = /* @__PURE__ */ Zt("LinidConfigurationStore", {
|
|
6234
6241
|
state: () => ({
|
|
6235
6242
|
entities: [],
|
|
6236
6243
|
apiEndpoints: [],
|
|
@@ -6261,8 +6268,8 @@ const Df = () => qu(en()), qu = /* @__PURE__ */ Zt("LinidConfigurationStore", {
|
|
|
6261
6268
|
this.loading = !0, this.error = null;
|
|
6262
6269
|
try {
|
|
6263
6270
|
const [e, t] = await Promise.all([
|
|
6264
|
-
|
|
6265
|
-
|
|
6271
|
+
Hu(),
|
|
6272
|
+
qu()
|
|
6266
6273
|
]);
|
|
6267
6274
|
this.entities = e, this.apiEndpoints = t;
|
|
6268
6275
|
} catch (e) {
|
|
@@ -6272,7 +6279,7 @@ const Df = () => qu(en()), qu = /* @__PURE__ */ Zt("LinidConfigurationStore", {
|
|
|
6272
6279
|
}
|
|
6273
6280
|
}
|
|
6274
6281
|
}
|
|
6275
|
-
}),
|
|
6282
|
+
}), Ff = () => Gu(en()), Gu = /* @__PURE__ */ Zt("LinidUiStore", {
|
|
6276
6283
|
state: () => ({
|
|
6277
6284
|
mainNavigationItems: []
|
|
6278
6285
|
}),
|
|
@@ -6285,7 +6292,7 @@ const Df = () => qu(en()), qu = /* @__PURE__ */ Zt("LinidConfigurationStore", {
|
|
|
6285
6292
|
this.mainNavigationItems.push(...e);
|
|
6286
6293
|
}
|
|
6287
6294
|
}
|
|
6288
|
-
}),
|
|
6295
|
+
}), Uf = () => Yu(en()), Yu = /* @__PURE__ */ Zt("LinidUserStore", {
|
|
6289
6296
|
/**
|
|
6290
6297
|
* State properties of the user store.
|
|
6291
6298
|
* @returns The initial state of the user store.
|
|
@@ -6313,7 +6320,7 @@ const Df = () => qu(en()), qu = /* @__PURE__ */ Zt("LinidConfigurationStore", {
|
|
|
6313
6320
|
}
|
|
6314
6321
|
});
|
|
6315
6322
|
let Jt = null;
|
|
6316
|
-
function
|
|
6323
|
+
function Mf(e) {
|
|
6317
6324
|
if (Jt !== null) {
|
|
6318
6325
|
console.warn(
|
|
6319
6326
|
"[LinID CoreLib] Nunjucks environment has already been initialized. Re-initialization is ignored."
|
|
@@ -6322,15 +6329,15 @@ function Uf(e) {
|
|
|
6322
6329
|
}
|
|
6323
6330
|
Jt = e;
|
|
6324
6331
|
}
|
|
6325
|
-
function
|
|
6332
|
+
function xf() {
|
|
6326
6333
|
if (Jt === null)
|
|
6327
6334
|
throw new Error(
|
|
6328
6335
|
"[LinID CoreLib] Nunjucks environment is not initialized. Call setNunjucksEnv() first."
|
|
6329
6336
|
);
|
|
6330
6337
|
return Jt;
|
|
6331
6338
|
}
|
|
6332
|
-
var
|
|
6333
|
-
class
|
|
6339
|
+
var Ku = /* @__PURE__ */ ((e) => (e.SETUP = "setup", e.CONFIGURE = "configure", e.INITIALIZE = "initialize", e.READY = "ready", e.POST_INIT = "postInit", e))(Ku || {});
|
|
6340
|
+
class Vf {
|
|
6334
6341
|
/**
|
|
6335
6342
|
* Unique identifier for the module.
|
|
6336
6343
|
*
|
|
@@ -6434,49 +6441,49 @@ class xf {
|
|
|
6434
6441
|
}
|
|
6435
6442
|
}
|
|
6436
6443
|
export {
|
|
6437
|
-
|
|
6438
|
-
|
|
6439
|
-
|
|
6444
|
+
Vf as BasicRemoteModule,
|
|
6445
|
+
zu as LinidZoneRenderer,
|
|
6446
|
+
Ku as ModuleLifecyclePhase,
|
|
6440
6447
|
lo as deepEqual,
|
|
6441
6448
|
Yn as deepEqualUnordered,
|
|
6442
|
-
|
|
6443
|
-
|
|
6444
|
-
|
|
6445
|
-
|
|
6446
|
-
|
|
6447
|
-
|
|
6448
|
-
|
|
6449
|
+
Af as deleteEntityById,
|
|
6450
|
+
Lf as fromDot,
|
|
6451
|
+
qu as getApiEndpointsConfiguration,
|
|
6452
|
+
Sf as getEntities,
|
|
6453
|
+
Hu as getEntitiesConfiguration,
|
|
6454
|
+
Tf as getEntityById,
|
|
6455
|
+
Df as getEntityConfiguration,
|
|
6449
6456
|
we as getHttpClient,
|
|
6450
6457
|
au as getI18nInstance,
|
|
6451
6458
|
ni as getModuleFederation,
|
|
6452
6459
|
at as getModuleHostConfiguration,
|
|
6453
|
-
|
|
6460
|
+
xf as getNunjucksEnv,
|
|
6454
6461
|
en as getPiniaStore,
|
|
6455
6462
|
pu as getUiDesign,
|
|
6456
6463
|
rt as isObject,
|
|
6457
6464
|
ri as loadAsyncComponent,
|
|
6458
6465
|
ec as merge,
|
|
6459
|
-
|
|
6466
|
+
yf as registerModuleHostConfiguration,
|
|
6460
6467
|
tc as renameKeys,
|
|
6461
|
-
|
|
6462
|
-
|
|
6463
|
-
|
|
6464
|
-
|
|
6465
|
-
|
|
6466
|
-
|
|
6467
|
-
|
|
6468
|
+
Nf as saveEntity,
|
|
6469
|
+
bf as setHttpClient,
|
|
6470
|
+
Rf as setI18nInstance,
|
|
6471
|
+
Ju as setModuleFederation,
|
|
6472
|
+
Mf as setNunjucksEnv,
|
|
6473
|
+
Qu as setPiniaStore,
|
|
6474
|
+
Pf as setUiDesign,
|
|
6468
6475
|
Vs as uiEventSubject,
|
|
6469
|
-
|
|
6470
|
-
|
|
6476
|
+
Of as updateEntity,
|
|
6477
|
+
Zu as useDialog,
|
|
6471
6478
|
fu as useFieldValidation,
|
|
6472
|
-
|
|
6473
|
-
|
|
6474
|
-
|
|
6479
|
+
kf as useLinidConfigurationStore,
|
|
6480
|
+
Ff as useLinidUiStore,
|
|
6481
|
+
Uf as useLinidUserStore,
|
|
6475
6482
|
ai as useLinidZoneStore,
|
|
6476
|
-
|
|
6477
|
-
|
|
6483
|
+
vf as useNotify,
|
|
6484
|
+
Cf as usePagination,
|
|
6478
6485
|
du as useQuasarFieldValidation,
|
|
6479
|
-
|
|
6486
|
+
If as useQuasarRules,
|
|
6480
6487
|
cu as useScopedI18n,
|
|
6481
|
-
|
|
6488
|
+
wf as useUiDesign
|
|
6482
6489
|
};
|