@linagora/linid-im-front-corelib 0.0.62 → 0.0.64
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 +369 -357
- package/dist/core-lib.umd.js +1 -1
- package/dist/package.json +6 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/types/src/composables/useQuasarRules.d.ts +2 -1
- package/dist/types/src/composables/useTree.d.ts +1 -1
- package/dist/types/src/index.d.ts +1 -1
- package/dist/types/src/types/linidTree.d.ts +4 -4
- package/dist/types/src/types/uiDesign.d.ts +10 -2
- package/package.json +6 -1
package/dist/core-lib.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Nn from "vue";
|
|
2
|
-
import { defineAsyncComponent as Yo, hasInjectionContext as kn, inject as qt, getCurrentInstance as Go, ref as rn, reactive as Ko, markRaw as Nt, effectScope as Xo, isRef as St, isReactive as lr, toRef as On, toRaw as
|
|
2
|
+
import { defineAsyncComponent as Yo, hasInjectionContext as kn, inject as qt, getCurrentInstance as Go, ref as rn, reactive as Ko, markRaw as Nt, effectScope as Xo, isRef as St, isReactive as lr, toRef as On, toRaw as Qo, nextTick as Tr, getCurrentScope as Jo, onScopeDispose as zo, watch as Mn, computed as Ye, toRefs as Ar, defineComponent as sn, openBlock as Sn, createElementBlock as vr, Fragment as Wt, renderList as Zo, unref as Lr, createBlock as ei, resolveDynamicComponent as ti, mergeProps as ni, renderSlot as ri, createCommentVNode as si, onMounted as ks, onUnmounted as Ms, shallowRef as oi, h as Fs, createVNode as ii, Text as ai } from "vue";
|
|
3
3
|
let Yt = null;
|
|
4
|
-
function
|
|
4
|
+
function uf(e) {
|
|
5
5
|
if (Yt !== null) {
|
|
6
6
|
console.warn(
|
|
7
7
|
"[LinID CoreLib] Module Federation has already been initialized. Re-initialization is ignored."
|
|
@@ -56,7 +56,7 @@ function Rr(e, t, n, r = $s) {
|
|
|
56
56
|
const s = () => {
|
|
57
57
|
e.delete(t) && r();
|
|
58
58
|
};
|
|
59
|
-
return !n &&
|
|
59
|
+
return !n && Jo() && zo(s), s;
|
|
60
60
|
}
|
|
61
61
|
function it(e, ...t) {
|
|
62
62
|
e.forEach((n) => {
|
|
@@ -85,7 +85,7 @@ const { assign: Te } = Object;
|
|
|
85
85
|
function Ir(e) {
|
|
86
86
|
return !!(St(e) && e.effect);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function Pr(e, t, n, r) {
|
|
89
89
|
const { state: s, actions: o, getters: i } = t, a = n.state.value[e];
|
|
90
90
|
let c;
|
|
91
91
|
function l() {
|
|
@@ -180,7 +180,7 @@ function $n(e, t, n = {}, r, s, o) {
|
|
|
180
180
|
getters: {},
|
|
181
181
|
state: [],
|
|
182
182
|
hotState: b
|
|
183
|
-
}),
|
|
183
|
+
}), D = {
|
|
184
184
|
_p: r,
|
|
185
185
|
// _s: scope,
|
|
186
186
|
$id: e,
|
|
@@ -204,10 +204,10 @@ function $n(e, t, n = {}, r, s, o) {
|
|
|
204
204
|
_customProperties: Nt(/* @__PURE__ */ new Set())
|
|
205
205
|
// devtools custom properties
|
|
206
206
|
},
|
|
207
|
-
|
|
207
|
+
D
|
|
208
208
|
// must be added later
|
|
209
209
|
// setupStore
|
|
210
|
-
) :
|
|
210
|
+
) : D);
|
|
211
211
|
r._s.set(e, g);
|
|
212
212
|
const B = (r._a && r._a.runWithContext || ui)(() => r._e.run(() => (i = Xo()).run(() => t({ action: O }))));
|
|
213
213
|
for (const R in B) {
|
|
@@ -223,7 +223,7 @@ function $n(e, t, n = {}, r, s, o) {
|
|
|
223
223
|
) : v, lt && (B._getters || // @ts-expect-error: same
|
|
224
224
|
(B._getters = Nt([]))).push(R));
|
|
225
225
|
}
|
|
226
|
-
if (Te(g, B), Te(
|
|
226
|
+
if (Te(g, B), Te(Qo(g), B), Object.defineProperty(g, "$state", {
|
|
227
227
|
get: () => process.env.NODE_ENV !== "production" && s ? b.value : r.state.value[e],
|
|
228
228
|
set: (R) => {
|
|
229
229
|
if (process.env.NODE_ENV !== "production" && s)
|
|
@@ -306,10 +306,10 @@ function on(e, t, n) {
|
|
|
306
306
|
throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
307
307
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
308
308
|
This will fail in production.`);
|
|
309
|
-
i = Ze, i._s.has(e) || (s ? $n(e, t, r, i) :
|
|
309
|
+
i = Ze, i._s.has(e) || (s ? $n(e, t, r, i) : Pr(e, r, i), process.env.NODE_ENV !== "production" && (o._pinia = i));
|
|
310
310
|
const l = i._s.get(e);
|
|
311
311
|
if (process.env.NODE_ENV !== "production" && a) {
|
|
312
|
-
const f = "__hot:" + e, m = s ? $n(f, t, r, i, !0) :
|
|
312
|
+
const f = "__hot:" + e, m = s ? $n(f, t, r, i, !0) : Pr(f, Te({}, r), i, !0);
|
|
313
313
|
a._hotUpdate(m), delete i.state.value[f], i._s.delete(f);
|
|
314
314
|
}
|
|
315
315
|
if (process.env.NODE_ENV !== "production" && lt) {
|
|
@@ -325,7 +325,7 @@ This will fail in production.`);
|
|
|
325
325
|
return o.$id = e, o;
|
|
326
326
|
}
|
|
327
327
|
let Kt = null;
|
|
328
|
-
function
|
|
328
|
+
function ff(e) {
|
|
329
329
|
if (Kt !== null) {
|
|
330
330
|
console.warn(
|
|
331
331
|
"[LinID CoreLib] Pinia store has already been initialized. Re-initialization is ignored."
|
|
@@ -364,7 +364,7 @@ const pi = () => mi(an()), mi = /* @__PURE__ */ on("linidZoneStore", {
|
|
|
364
364
|
this.zones[e]?.some(({ plugin: n }) => n === t.plugin) || this.register(e, t);
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
|
-
}),
|
|
367
|
+
}), df = /* @__PURE__ */ sn({
|
|
368
368
|
inheritAttrs: !1,
|
|
369
369
|
__name: "LinidZoneRenderer",
|
|
370
370
|
props: {
|
|
@@ -498,7 +498,7 @@ var ln = (function() {
|
|
|
498
498
|
for (var E = Vn(m), _ = E.next(); !_.done; _ = E.next()) {
|
|
499
499
|
var p = _.value;
|
|
500
500
|
try {
|
|
501
|
-
|
|
501
|
+
Dr(p);
|
|
502
502
|
} catch (b) {
|
|
503
503
|
o = o ?? [], b instanceof An ? o = Bn(Bn([], jn(o)), jn(b.errors)) : o.push(b);
|
|
504
504
|
}
|
|
@@ -520,7 +520,7 @@ var ln = (function() {
|
|
|
520
520
|
var n;
|
|
521
521
|
if (t && t !== this)
|
|
522
522
|
if (this.closed)
|
|
523
|
-
|
|
523
|
+
Dr(t);
|
|
524
524
|
else {
|
|
525
525
|
if (t instanceof e) {
|
|
526
526
|
if (t.closed || t._hasParent(this))
|
|
@@ -549,7 +549,7 @@ var ln = (function() {
|
|
|
549
549
|
function js(e) {
|
|
550
550
|
return e instanceof ln || e && "closed" in e && je(e.remove) && je(e.add) && je(e.unsubscribe);
|
|
551
551
|
}
|
|
552
|
-
function
|
|
552
|
+
function Dr(e) {
|
|
553
553
|
je(e) ? e() : e.unsubscribe();
|
|
554
554
|
}
|
|
555
555
|
var hi = {
|
|
@@ -847,7 +847,7 @@ var vi = xs(function(e) {
|
|
|
847
847
|
}, t;
|
|
848
848
|
})(Hs);
|
|
849
849
|
const qs = new Hs();
|
|
850
|
-
function
|
|
850
|
+
function pf(e, t) {
|
|
851
851
|
const n = rn(!1);
|
|
852
852
|
let r;
|
|
853
853
|
function s(o) {
|
|
@@ -888,7 +888,7 @@ const Ci = dn("string"), ge = dn("function"), Ks = dn("number"), Ct = (e) => e !
|
|
|
888
888
|
return !1;
|
|
889
889
|
const t = ur(e);
|
|
890
890
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Ys in e) && !(un in e);
|
|
891
|
-
},
|
|
891
|
+
}, Pi = (e) => {
|
|
892
892
|
if (!Ct(e) || Rt(e))
|
|
893
893
|
return !1;
|
|
894
894
|
try {
|
|
@@ -896,7 +896,7 @@ const Ci = dn("string"), ge = dn("function"), Ks = dn("number"), Ct = (e) => e !
|
|
|
896
896
|
} catch {
|
|
897
897
|
return !1;
|
|
898
898
|
}
|
|
899
|
-
},
|
|
899
|
+
}, Di = Ie("Date"), wi = Ie("File"), ki = (e) => !!(e && typeof e.uri < "u"), Mi = (e) => e && typeof e.getParts < "u", Fi = Ie("Blob"), Ui = Ie("FileList"), $i = (e) => Ct(e) && ge(e.pipe);
|
|
900
900
|
function xi() {
|
|
901
901
|
return typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {};
|
|
902
902
|
}
|
|
@@ -937,9 +937,9 @@ function Xs(e, t) {
|
|
|
937
937
|
return s;
|
|
938
938
|
return null;
|
|
939
939
|
}
|
|
940
|
-
const et = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global,
|
|
940
|
+
const et = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Qs = (e) => !ut(e) && e !== et;
|
|
941
941
|
function Wn() {
|
|
942
|
-
const { caseless: e, skipUndefined: t } =
|
|
942
|
+
const { caseless: e, skipUndefined: t } = Qs(this) && this || {}, n = {}, r = (s, o) => {
|
|
943
943
|
if (o === "__proto__" || o === "constructor" || o === "prototype")
|
|
944
944
|
return;
|
|
945
945
|
const i = e && Xs(n, o) || o;
|
|
@@ -974,7 +974,7 @@ const Gi = (e, t, n, { allOwnKeys: r } = {}) => (It(
|
|
|
974
974
|
}), Object.defineProperty(e, "super", {
|
|
975
975
|
value: t.prototype
|
|
976
976
|
}), n && Object.assign(e.prototype, n);
|
|
977
|
-
},
|
|
977
|
+
}, Qi = (e, t, n, r) => {
|
|
978
978
|
let s, o, i;
|
|
979
979
|
const a = {};
|
|
980
980
|
if (t = t || {}, e == null) return t;
|
|
@@ -984,7 +984,7 @@ const Gi = (e, t, n, { allOwnKeys: r } = {}) => (It(
|
|
|
984
984
|
e = n !== !1 && ur(e);
|
|
985
985
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
986
986
|
return t;
|
|
987
|
-
},
|
|
987
|
+
}, Ji = (e, t, n) => {
|
|
988
988
|
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
989
989
|
const r = e.indexOf(t, n);
|
|
990
990
|
return r !== -1 && r === n;
|
|
@@ -1012,14 +1012,14 @@ const Gi = (e, t, n, { allOwnKeys: r } = {}) => (It(
|
|
|
1012
1012
|
return r;
|
|
1013
1013
|
}, na = Ie("HTMLFormElement"), ra = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(n, r, s) {
|
|
1014
1014
|
return r.toUpperCase() + s;
|
|
1015
|
-
}), xr = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), sa = Ie("RegExp"),
|
|
1015
|
+
}), xr = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), sa = Ie("RegExp"), Js = (e, t) => {
|
|
1016
1016
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
1017
1017
|
It(n, (s, o) => {
|
|
1018
1018
|
let i;
|
|
1019
1019
|
(i = t(s, o, e)) !== !1 && (r[o] = i || s);
|
|
1020
1020
|
}), Object.defineProperties(e, r);
|
|
1021
1021
|
}, oa = (e) => {
|
|
1022
|
-
|
|
1022
|
+
Js(e, (t, n) => {
|
|
1023
1023
|
if (ge(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
1024
1024
|
return !1;
|
|
1025
1025
|
const r = e[n];
|
|
@@ -1083,13 +1083,13 @@ const ua = (e) => {
|
|
|
1083
1083
|
isBoolean: Ii,
|
|
1084
1084
|
isObject: Ct,
|
|
1085
1085
|
isPlainObject: xt,
|
|
1086
|
-
isEmptyObject:
|
|
1086
|
+
isEmptyObject: Pi,
|
|
1087
1087
|
isReadableStream: Bi,
|
|
1088
1088
|
isRequest: Hi,
|
|
1089
1089
|
isResponse: qi,
|
|
1090
1090
|
isHeaders: Wi,
|
|
1091
1091
|
isUndefined: ut,
|
|
1092
|
-
isDate:
|
|
1092
|
+
isDate: Di,
|
|
1093
1093
|
isFile: wi,
|
|
1094
1094
|
isReactNativeBlob: ki,
|
|
1095
1095
|
isReactNative: Mi,
|
|
@@ -1106,10 +1106,10 @@ const ua = (e) => {
|
|
|
1106
1106
|
trim: Yi,
|
|
1107
1107
|
stripBOM: Ki,
|
|
1108
1108
|
inherits: Xi,
|
|
1109
|
-
toFlatObject:
|
|
1109
|
+
toFlatObject: Qi,
|
|
1110
1110
|
kindOf: fn,
|
|
1111
1111
|
kindOfTest: Ie,
|
|
1112
|
-
endsWith:
|
|
1112
|
+
endsWith: Ji,
|
|
1113
1113
|
toArray: zi,
|
|
1114
1114
|
forEachEntry: ea,
|
|
1115
1115
|
matchAll: ta,
|
|
@@ -1117,7 +1117,7 @@ const ua = (e) => {
|
|
|
1117
1117
|
hasOwnProperty: xr,
|
|
1118
1118
|
hasOwnProp: xr,
|
|
1119
1119
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
1120
|
-
reduceDescriptors:
|
|
1120
|
+
reduceDescriptors: Js,
|
|
1121
1121
|
freezeMethods: oa,
|
|
1122
1122
|
toObjectSet: ia,
|
|
1123
1123
|
toCamelCase: ra,
|
|
@@ -1125,7 +1125,7 @@ const ua = (e) => {
|
|
|
1125
1125
|
toFiniteNumber: ca,
|
|
1126
1126
|
findKey: Xs,
|
|
1127
1127
|
global: et,
|
|
1128
|
-
isContextDefined:
|
|
1128
|
+
isContextDefined: Qs,
|
|
1129
1129
|
isSpecCompliantForm: la,
|
|
1130
1130
|
toJSONObject: ua,
|
|
1131
1131
|
isAsyncFn: fa,
|
|
@@ -1442,7 +1442,7 @@ function Ia(e, t, n) {
|
|
|
1442
1442
|
}
|
|
1443
1443
|
return (n || JSON.stringify)(e);
|
|
1444
1444
|
}
|
|
1445
|
-
const
|
|
1445
|
+
const Pt = {
|
|
1446
1446
|
transitional: dr,
|
|
1447
1447
|
adapter: ["xhr", "http", "fetch"],
|
|
1448
1448
|
transformRequest: [
|
|
@@ -1474,7 +1474,7 @@ const Dt = {
|
|
|
1474
1474
|
],
|
|
1475
1475
|
transformResponse: [
|
|
1476
1476
|
function(t) {
|
|
1477
|
-
const n = this.transitional ||
|
|
1477
|
+
const n = this.transitional || Pt.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
|
|
1478
1478
|
if (y.isResponse(t) || y.isReadableStream(t))
|
|
1479
1479
|
return t;
|
|
1480
1480
|
if (t && y.isString(t) && (r && !this.responseType || s)) {
|
|
@@ -1513,9 +1513,9 @@ const Dt = {
|
|
|
1513
1513
|
}
|
|
1514
1514
|
};
|
|
1515
1515
|
y.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
1516
|
-
|
|
1516
|
+
Pt.headers[e] = {};
|
|
1517
1517
|
});
|
|
1518
|
-
const
|
|
1518
|
+
const Pa = y.toObjectSet([
|
|
1519
1519
|
"age",
|
|
1520
1520
|
"authorization",
|
|
1521
1521
|
"content-length",
|
|
@@ -1533,12 +1533,12 @@ const Da = y.toObjectSet([
|
|
|
1533
1533
|
"referer",
|
|
1534
1534
|
"retry-after",
|
|
1535
1535
|
"user-agent"
|
|
1536
|
-
]),
|
|
1536
|
+
]), Da = (e) => {
|
|
1537
1537
|
const t = {};
|
|
1538
1538
|
let n, r, s;
|
|
1539
1539
|
return e && e.split(`
|
|
1540
1540
|
`).forEach(function(i) {
|
|
1541
|
-
s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] &&
|
|
1541
|
+
s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && Pa[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
1542
1542
|
}), t;
|
|
1543
1543
|
}, Br = /* @__PURE__ */ Symbol("internals");
|
|
1544
1544
|
function yt(e) {
|
|
@@ -1596,7 +1596,7 @@ let ye = class {
|
|
|
1596
1596
|
if (y.isPlainObject(t) || t instanceof this.constructor)
|
|
1597
1597
|
i(t, n);
|
|
1598
1598
|
else if (y.isString(t) && (t = t.trim()) && !ka(t))
|
|
1599
|
-
i(
|
|
1599
|
+
i(Da(t), n);
|
|
1600
1600
|
else if (y.isObject(t) && y.isIterable(t)) {
|
|
1601
1601
|
let a = {}, c, l;
|
|
1602
1602
|
for (const f of t) {
|
|
@@ -1724,7 +1724,7 @@ y.reduceDescriptors(ye.prototype, ({ value: e }, t) => {
|
|
|
1724
1724
|
});
|
|
1725
1725
|
y.freezeMethods(ye);
|
|
1726
1726
|
function Rn(e, t) {
|
|
1727
|
-
const n = this ||
|
|
1727
|
+
const n = this || Pt, r = t || n, s = ye.from(r.headers);
|
|
1728
1728
|
let o = r.data;
|
|
1729
1729
|
return y.forEach(e, function(a) {
|
|
1730
1730
|
o = a.call(n, o, s.normalize(), t ? t.status : void 0);
|
|
@@ -1733,7 +1733,7 @@ function Rn(e, t) {
|
|
|
1733
1733
|
function so(e) {
|
|
1734
1734
|
return !!(e && e.__CANCEL__);
|
|
1735
1735
|
}
|
|
1736
|
-
let
|
|
1736
|
+
let Dt = class extends q {
|
|
1737
1737
|
/**
|
|
1738
1738
|
* A `CanceledError` is an object that is thrown when an operation is canceled.
|
|
1739
1739
|
*
|
|
@@ -1994,8 +1994,8 @@ const ao = (e) => {
|
|
|
1994
1994
|
}, N.onabort = function() {
|
|
1995
1995
|
N && (r(new q("Request aborted", q.ECONNABORTED, e, N)), N = null);
|
|
1996
1996
|
}, N.onerror = function(O) {
|
|
1997
|
-
const C = O && O.message ? O.message : "Network Error",
|
|
1998
|
-
|
|
1997
|
+
const C = O && O.message ? O.message : "Network Error", D = new q(C, q.ERR_NETWORK, e, N);
|
|
1998
|
+
D.event = O || null, r(D), N = null;
|
|
1999
1999
|
}, N.ontimeout = function() {
|
|
2000
2000
|
let O = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
2001
2001
|
const C = s.transitional || dr;
|
|
@@ -2010,7 +2010,7 @@ const ao = (e) => {
|
|
|
2010
2010
|
}, o === void 0 && i.setContentType(null), "setRequestHeader" in N && y.forEach(i.toJSON(), function(O, C) {
|
|
2011
2011
|
N.setRequestHeader(C, O);
|
|
2012
2012
|
}), y.isUndefined(s.withCredentials) || (N.withCredentials = !!s.withCredentials), a && a !== "json" && (N.responseType = s.responseType), l && ([E, p] = Xt(l, !0), N.addEventListener("progress", E)), c && N.upload && ([m, _] = Xt(c), N.upload.addEventListener("progress", m), N.upload.addEventListener("loadend", _)), (s.cancelToken || s.signal) && (f = (A) => {
|
|
2013
|
-
N && (r(!A || A.type ? new
|
|
2013
|
+
N && (r(!A || A.type ? new Dt(null, e, N) : A), N.abort(), N = null);
|
|
2014
2014
|
}, s.cancelToken && s.cancelToken.subscribe(f), s.signal && (s.signal.aborted ? f() : s.signal.addEventListener("abort", f)));
|
|
2015
2015
|
const S = Ua(s.url);
|
|
2016
2016
|
if (S && Ee.protocols.indexOf(S) === -1) {
|
|
@@ -2034,7 +2034,7 @@ const ao = (e) => {
|
|
|
2034
2034
|
s = !0, a();
|
|
2035
2035
|
const f = l instanceof Error ? l : this.reason;
|
|
2036
2036
|
r.abort(
|
|
2037
|
-
f instanceof q ? f : new
|
|
2037
|
+
f instanceof q ? f : new Dt(f instanceof Error ? f.message : f)
|
|
2038
2038
|
);
|
|
2039
2039
|
}
|
|
2040
2040
|
};
|
|
@@ -2110,27 +2110,27 @@ const ao = (e) => {
|
|
|
2110
2110
|
highWaterMark: 2
|
|
2111
2111
|
}
|
|
2112
2112
|
);
|
|
2113
|
-
}, Gr = 64 * 1024, { isFunction: kt } = y,
|
|
2113
|
+
}, Gr = 64 * 1024, { isFunction: kt } = y, Qa = (({ Request: e, Response: t }) => ({
|
|
2114
2114
|
Request: e,
|
|
2115
2115
|
Response: t
|
|
2116
|
-
}))(y.global), { ReadableStream: Kr, TextEncoder: Xr } = y.global,
|
|
2116
|
+
}))(y.global), { ReadableStream: Kr, TextEncoder: Xr } = y.global, Qr = (e, ...t) => {
|
|
2117
2117
|
try {
|
|
2118
2118
|
return !!e(...t);
|
|
2119
2119
|
} catch {
|
|
2120
2120
|
return !1;
|
|
2121
2121
|
}
|
|
2122
|
-
},
|
|
2122
|
+
}, Ja = (e) => {
|
|
2123
2123
|
e = y.merge.call(
|
|
2124
2124
|
{
|
|
2125
2125
|
skipUndefined: !0
|
|
2126
2126
|
},
|
|
2127
|
-
|
|
2127
|
+
Qa,
|
|
2128
2128
|
e
|
|
2129
2129
|
);
|
|
2130
2130
|
const { fetch: t, Request: n, Response: r } = e, s = t ? kt(t) : typeof fetch == "function", o = kt(n), i = kt(r);
|
|
2131
2131
|
if (!s)
|
|
2132
2132
|
return !1;
|
|
2133
|
-
const a = s && kt(Kr), c = s && (typeof Xr == "function" ? /* @__PURE__ */ ((p) => (b) => p.encode(b))(new Xr()) : async (p) => new Uint8Array(await new n(p).arrayBuffer())), l = o && a &&
|
|
2133
|
+
const a = s && kt(Kr), c = s && (typeof Xr == "function" ? /* @__PURE__ */ ((p) => (b) => p.encode(b))(new Xr()) : async (p) => new Uint8Array(await new n(p).arrayBuffer())), l = o && a && Qr(() => {
|
|
2134
2134
|
let p = !1;
|
|
2135
2135
|
const b = new n(Ee.origin, {
|
|
2136
2136
|
body: new Kr(),
|
|
@@ -2140,7 +2140,7 @@ const ao = (e) => {
|
|
|
2140
2140
|
}
|
|
2141
2141
|
}).headers.has("Content-Type");
|
|
2142
2142
|
return p && !b;
|
|
2143
|
-
}), f = i && a &&
|
|
2143
|
+
}), f = i && a && Qr(() => y.isReadableStream(new r("").body)), m = {
|
|
2144
2144
|
stream: f && ((p) => p.body)
|
|
2145
2145
|
};
|
|
2146
2146
|
s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((p) => {
|
|
@@ -2182,7 +2182,7 @@ const ao = (e) => {
|
|
|
2182
2182
|
cancelToken: A,
|
|
2183
2183
|
timeout: O,
|
|
2184
2184
|
onDownloadProgress: C,
|
|
2185
|
-
onUploadProgress:
|
|
2185
|
+
onUploadProgress: D,
|
|
2186
2186
|
responseType: g,
|
|
2187
2187
|
headers: W,
|
|
2188
2188
|
withCredentials: B = "same-origin",
|
|
@@ -2198,7 +2198,7 @@ const ao = (e) => {
|
|
|
2198
2198
|
});
|
|
2199
2199
|
let k;
|
|
2200
2200
|
try {
|
|
2201
|
-
if (
|
|
2201
|
+
if (D && l && N !== "get" && N !== "head" && (k = await _(W, h)) !== 0) {
|
|
2202
2202
|
let Y = new n(b, {
|
|
2203
2203
|
method: "POST",
|
|
2204
2204
|
body: h,
|
|
@@ -2207,7 +2207,7 @@ const ao = (e) => {
|
|
|
2207
2207
|
if (y.isFormData(h) && (G = Y.headers.get("content-type")) && W.setContentType(G), Y.body) {
|
|
2208
2208
|
const [ee, te] = Hr(
|
|
2209
2209
|
k,
|
|
2210
|
-
Xt(qr(
|
|
2210
|
+
Xt(qr(D))
|
|
2211
2211
|
);
|
|
2212
2212
|
h = Yr(Y.body, Gr, ee, te);
|
|
2213
2213
|
}
|
|
@@ -2276,7 +2276,7 @@ const ao = (e) => {
|
|
|
2276
2276
|
const { fetch: n, Request: r, Response: s } = t, o = [r, s, n];
|
|
2277
2277
|
let i = o.length, a = i, c, l, f = za;
|
|
2278
2278
|
for (; a--; )
|
|
2279
|
-
c = o[a], l = f.get(c), l === void 0 && f.set(c, l = a ? /* @__PURE__ */ new Map() :
|
|
2279
|
+
c = o[a], l = f.get(c), l === void 0 && f.set(c, l = a ? /* @__PURE__ */ new Map() : Ja(t)), f = l;
|
|
2280
2280
|
return l;
|
|
2281
2281
|
};
|
|
2282
2282
|
co();
|
|
@@ -2296,7 +2296,7 @@ y.forEach(mr, (e, t) => {
|
|
|
2296
2296
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
2297
2297
|
}
|
|
2298
2298
|
});
|
|
2299
|
-
const
|
|
2299
|
+
const Jr = (e) => `- ${e}`, Za = (e) => y.isFunction(e) || e === null || e === !1;
|
|
2300
2300
|
function ec(e, t) {
|
|
2301
2301
|
e = y.isArray(e) ? e : [e];
|
|
2302
2302
|
const { length: n } = e;
|
|
@@ -2316,8 +2316,8 @@ function ec(e, t) {
|
|
|
2316
2316
|
([c, l]) => `adapter ${c} ` + (l === !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
|
-
` + i.map(
|
|
2320
|
-
`) : " " +
|
|
2319
|
+
` + i.map(Jr).join(`
|
|
2320
|
+
`) : " " + Jr(i[0]) : "as no adapter specified";
|
|
2321
2321
|
throw new q(
|
|
2322
2322
|
"There is no suitable adapter to dispatch the request " + a,
|
|
2323
2323
|
"ERR_NOT_SUPPORT"
|
|
@@ -2339,10 +2339,10 @@ const lo = {
|
|
|
2339
2339
|
};
|
|
2340
2340
|
function Cn(e) {
|
|
2341
2341
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
2342
|
-
throw new
|
|
2342
|
+
throw new Dt(null, e);
|
|
2343
2343
|
}
|
|
2344
2344
|
function zr(e) {
|
|
2345
|
-
return Cn(e), e.headers = ye.from(e.headers), e.data = Rn.call(e, e.transformRequest), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), lo.getAdapter(e.adapter ||
|
|
2345
|
+
return Cn(e), e.headers = ye.from(e.headers), e.data = Rn.call(e, e.transformRequest), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), lo.getAdapter(e.adapter || Pt.adapter, e)(e).then(
|
|
2346
2346
|
function(r) {
|
|
2347
2347
|
return Cn(e), r.data = Rn.call(e, e.transformResponse, r), r.headers = ye.from(r.headers), r;
|
|
2348
2348
|
},
|
|
@@ -2570,7 +2570,7 @@ let nc = class fo {
|
|
|
2570
2570
|
r.unsubscribe(o);
|
|
2571
2571
|
}, i;
|
|
2572
2572
|
}, t(function(o, i, a) {
|
|
2573
|
-
r.reason || (r.reason = new
|
|
2573
|
+
r.reason || (r.reason = new Dt(o, i, a), n(r.reason));
|
|
2574
2574
|
});
|
|
2575
2575
|
}
|
|
2576
2576
|
/**
|
|
@@ -2707,9 +2707,9 @@ function po(e) {
|
|
|
2707
2707
|
return po(st(e, s));
|
|
2708
2708
|
}, n;
|
|
2709
2709
|
}
|
|
2710
|
-
const ce = po(
|
|
2710
|
+
const ce = po(Pt);
|
|
2711
2711
|
ce.Axios = nt;
|
|
2712
|
-
ce.CanceledError =
|
|
2712
|
+
ce.CanceledError = Dt;
|
|
2713
2713
|
ce.CancelToken = nc;
|
|
2714
2714
|
ce.isCancel = so;
|
|
2715
2715
|
ce.VERSION = uo;
|
|
@@ -2728,22 +2728,22 @@ ce.getAdapter = lo.getAdapter;
|
|
|
2728
2728
|
ce.HttpStatusCode = Kn;
|
|
2729
2729
|
ce.default = ce;
|
|
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: Ef,
|
|
2732
|
+
AxiosError: gf,
|
|
2733
|
+
CanceledError: yf,
|
|
2734
|
+
isCancel: bf,
|
|
2735
|
+
CancelToken: Nf,
|
|
2736
|
+
VERSION: Of,
|
|
2737
|
+
all: Sf,
|
|
2738
|
+
Cancel: Tf,
|
|
2739
|
+
isAxiosError: Af,
|
|
2740
|
+
spread: vf,
|
|
2741
|
+
toFormData: Lf,
|
|
2742
|
+
AxiosHeaders: Rf,
|
|
2743
2743
|
HttpStatusCode: es,
|
|
2744
|
-
formToJSON:
|
|
2745
|
-
getAdapter:
|
|
2746
|
-
mergeConfig:
|
|
2744
|
+
formToJSON: Cf,
|
|
2745
|
+
getAdapter: If,
|
|
2746
|
+
mergeConfig: Pf
|
|
2747
2747
|
} = ce;
|
|
2748
2748
|
function oc(e) {
|
|
2749
2749
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -2773,8 +2773,8 @@ function ac() {
|
|
|
2773
2773
|
return { M: m, y: _, w: f, d: l, D: p, h: c, m: a, s: i, ms: o, Q: E }[U] || String(U || "").toLowerCase().replace(/s$/, "");
|
|
2774
2774
|
}, u: function(U) {
|
|
2775
2775
|
return U === void 0;
|
|
2776
|
-
} }, C = "en",
|
|
2777
|
-
|
|
2776
|
+
} }, C = "en", D = {};
|
|
2777
|
+
D[C] = S;
|
|
2778
2778
|
var g = "$isDayjsObject", W = function(U) {
|
|
2779
2779
|
return U instanceof V || !(!U || !U[g]);
|
|
2780
2780
|
}, B = function U(k, I, $) {
|
|
@@ -2782,12 +2782,12 @@ function ac() {
|
|
|
2782
2782
|
if (!k) return C;
|
|
2783
2783
|
if (typeof k == "string") {
|
|
2784
2784
|
var x = k.toLowerCase();
|
|
2785
|
-
|
|
2785
|
+
D[x] && (w = x), I && (D[x] = I, w = x);
|
|
2786
2786
|
var j = k.split("-");
|
|
2787
2787
|
if (!w && j.length > 1) return U(j[0]);
|
|
2788
2788
|
} else {
|
|
2789
2789
|
var Y = k.name;
|
|
2790
|
-
|
|
2790
|
+
D[Y] = k, w = Y;
|
|
2791
2791
|
}
|
|
2792
2792
|
return !$ && w && (C = w), w || !$ && C;
|
|
2793
2793
|
}, R = function(U, k) {
|
|
@@ -2851,8 +2851,8 @@ function ac() {
|
|
|
2851
2851
|
case m:
|
|
2852
2852
|
return x ? Y(1, te) : Y(0, te + 1);
|
|
2853
2853
|
case f:
|
|
2854
|
-
var Le = this.$locale().weekStart || 0,
|
|
2855
|
-
return Y(x ? le -
|
|
2854
|
+
var Le = this.$locale().weekStart || 0, Pe = (ee < Le ? ee + 7 : ee) - Le;
|
|
2855
|
+
return Y(x ? le - Pe : le + (6 - Pe), te);
|
|
2856
2856
|
case l:
|
|
2857
2857
|
case p:
|
|
2858
2858
|
return G(Ue + "Hours", 0);
|
|
@@ -2896,13 +2896,13 @@ function ac() {
|
|
|
2896
2896
|
}, k.format = function(I) {
|
|
2897
2897
|
var $ = this, w = this.$locale();
|
|
2898
2898
|
if (!this.isValid()) return w.invalidDate || b;
|
|
2899
|
-
var x = I || "YYYY-MM-DDTHH:mm:ssZ", j = v.z(this), Y = this.$H, G = this.$m, ee = this.$M, te = w.weekdays, le = w.months, Ue = w.meridiem, Le = function(ue, Ne, $e,
|
|
2900
|
-
return ue && (ue[Ne] || ue($, x)) || $e[Ne].slice(0,
|
|
2901
|
-
},
|
|
2899
|
+
var x = I || "YYYY-MM-DDTHH:mm:ssZ", j = v.z(this), Y = this.$H, G = this.$m, ee = this.$M, te = w.weekdays, le = w.months, Ue = w.meridiem, Le = function(ue, Ne, $e, De) {
|
|
2900
|
+
return ue && (ue[Ne] || ue($, x)) || $e[Ne].slice(0, De);
|
|
2901
|
+
}, Pe = function(ue) {
|
|
2902
2902
|
return v.s(Y % 12 || 12, ue, "0");
|
|
2903
2903
|
}, Re = Ue || function(ue, Ne, $e) {
|
|
2904
|
-
var
|
|
2905
|
-
return $e ?
|
|
2904
|
+
var De = ue < 12 ? "AM" : "PM";
|
|
2905
|
+
return $e ? De.toLowerCase() : De;
|
|
2906
2906
|
};
|
|
2907
2907
|
return x.replace(h, (function(ue, Ne) {
|
|
2908
2908
|
return Ne || (function($e) {
|
|
@@ -2936,9 +2936,9 @@ function ac() {
|
|
|
2936
2936
|
case "HH":
|
|
2937
2937
|
return v.s(Y, 2, "0");
|
|
2938
2938
|
case "h":
|
|
2939
|
-
return
|
|
2939
|
+
return Pe(1);
|
|
2940
2940
|
case "hh":
|
|
2941
|
-
return
|
|
2941
|
+
return Pe(2);
|
|
2942
2942
|
case "a":
|
|
2943
2943
|
return Re(Y, G, !0);
|
|
2944
2944
|
case "A":
|
|
@@ -2997,7 +2997,7 @@ function ac() {
|
|
|
2997
2997
|
}, k.daysInMonth = function() {
|
|
2998
2998
|
return this.endOf(m).$D;
|
|
2999
2999
|
}, k.$locale = function() {
|
|
3000
|
-
return
|
|
3000
|
+
return D[this.$L];
|
|
3001
3001
|
}, k.locale = function(I, $) {
|
|
3002
3002
|
if (!I) return this.$L;
|
|
3003
3003
|
var w = this.clone(), x = B(I, $, !0);
|
|
@@ -3022,31 +3022,31 @@ function ac() {
|
|
|
3022
3022
|
return U.$i || (U(k, V, R), U.$i = !0), R;
|
|
3023
3023
|
}, R.locale = B, R.isDayjs = W, R.unix = function(U) {
|
|
3024
3024
|
return R(1e3 * U);
|
|
3025
|
-
}, R.en =
|
|
3025
|
+
}, R.en = D[C], R.Ls = D, R.p = {}, R;
|
|
3026
3026
|
}));
|
|
3027
3027
|
})(Bt)), Bt.exports;
|
|
3028
3028
|
}
|
|
3029
3029
|
var cc = ac();
|
|
3030
3030
|
const Xn = /* @__PURE__ */ oc(cc);
|
|
3031
|
-
let
|
|
3031
|
+
let Qt = null;
|
|
3032
3032
|
function Df(e) {
|
|
3033
|
-
if (
|
|
3033
|
+
if (Qt !== null) {
|
|
3034
3034
|
console.warn(
|
|
3035
3035
|
"[LinID CoreLib] HTTP client has already been initialized. Re-initialization is ignored."
|
|
3036
3036
|
);
|
|
3037
3037
|
return;
|
|
3038
3038
|
}
|
|
3039
|
-
|
|
3039
|
+
Qt = e;
|
|
3040
3040
|
}
|
|
3041
3041
|
function qe() {
|
|
3042
|
-
if (
|
|
3042
|
+
if (Qt === null)
|
|
3043
3043
|
throw new Error(
|
|
3044
3044
|
"[LinID CoreLib] HTTP client is not initialized. Call setHttpClient() first."
|
|
3045
3045
|
);
|
|
3046
|
-
return
|
|
3046
|
+
return Qt;
|
|
3047
3047
|
}
|
|
3048
3048
|
const mo = /* @__PURE__ */ new Map();
|
|
3049
|
-
function
|
|
3049
|
+
function wf(e) {
|
|
3050
3050
|
mo.set(e.instanceId, e);
|
|
3051
3051
|
}
|
|
3052
3052
|
function ht(e) {
|
|
@@ -3057,25 +3057,25 @@ function ht(e) {
|
|
|
3057
3057
|
);
|
|
3058
3058
|
return t;
|
|
3059
3059
|
}
|
|
3060
|
-
async function
|
|
3060
|
+
async function kf(e, t) {
|
|
3061
3061
|
const n = ht(e);
|
|
3062
3062
|
return qe().post(`/${n.apiEndpoint}`, t).then(({ data: r }) => r);
|
|
3063
3063
|
}
|
|
3064
|
-
async function
|
|
3064
|
+
async function Mf(e, t, n) {
|
|
3065
3065
|
const r = ht(e);
|
|
3066
3066
|
return qe().put(`/${r.apiEndpoint}/${t}`, n).then(({ data: s }) => s);
|
|
3067
3067
|
}
|
|
3068
|
-
async function
|
|
3068
|
+
async function Ff(e, t, n) {
|
|
3069
3069
|
const r = ht(e);
|
|
3070
3070
|
return qe().get(`/${r.apiEndpoint}`, {
|
|
3071
3071
|
params: { ...t, ...n }
|
|
3072
3072
|
}).then(({ data: s }) => s);
|
|
3073
3073
|
}
|
|
3074
|
-
async function
|
|
3074
|
+
async function Uf(e, t) {
|
|
3075
3075
|
const n = ht(e);
|
|
3076
3076
|
return qe().get(`/${n.apiEndpoint}/${t}`).then(({ data: r }) => r);
|
|
3077
3077
|
}
|
|
3078
|
-
async function
|
|
3078
|
+
async function $f(e, t) {
|
|
3079
3079
|
const n = ht(e);
|
|
3080
3080
|
return qe().delete(`/${n.apiEndpoint}/${t}`);
|
|
3081
3081
|
}
|
|
@@ -3095,7 +3095,7 @@ function uc(e, t) {
|
|
|
3095
3095
|
n[r] = uc(e[r], t[r]);
|
|
3096
3096
|
return n;
|
|
3097
3097
|
}
|
|
3098
|
-
function
|
|
3098
|
+
function xf(e) {
|
|
3099
3099
|
const t = {};
|
|
3100
3100
|
for (const [n, r] of Object.entries(e)) {
|
|
3101
3101
|
const s = n.split(".");
|
|
@@ -3130,14 +3130,14 @@ function ho(e, t) {
|
|
|
3130
3130
|
(i) => Object.prototype.hasOwnProperty.call(o, i) && ho(s[i], o[i])
|
|
3131
3131
|
);
|
|
3132
3132
|
}
|
|
3133
|
-
function
|
|
3133
|
+
function Qn(e, t) {
|
|
3134
3134
|
if (Array.isArray(e) && Array.isArray(t)) {
|
|
3135
3135
|
if (e.length !== t.length)
|
|
3136
3136
|
return !1;
|
|
3137
3137
|
const n = /* @__PURE__ */ new Set();
|
|
3138
3138
|
return e.every((r) => {
|
|
3139
3139
|
const s = t.findIndex(
|
|
3140
|
-
(o, i) => !n.has(i) &&
|
|
3140
|
+
(o, i) => !n.has(i) && Qn(r, o)
|
|
3141
3141
|
);
|
|
3142
3142
|
return s === -1 ? !1 : (n.add(s), !0);
|
|
3143
3143
|
});
|
|
@@ -3145,7 +3145,7 @@ function Jn(e, t) {
|
|
|
3145
3145
|
if (ft(e) && ft(t)) {
|
|
3146
3146
|
const n = Object.keys(e), r = Object.keys(t);
|
|
3147
3147
|
return n.length !== r.length ? !1 : n.every(
|
|
3148
|
-
(s) => Object.prototype.hasOwnProperty.call(t, s) &&
|
|
3148
|
+
(s) => Object.prototype.hasOwnProperty.call(t, s) && Qn(e[s], t[s])
|
|
3149
3149
|
);
|
|
3150
3150
|
}
|
|
3151
3151
|
return ho(e, t);
|
|
@@ -3170,9 +3170,9 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
3170
3170
|
}
|
|
3171
3171
|
const pc = /\{([0-9a-zA-Z]+)\}/g;
|
|
3172
3172
|
function hn(e, ...t) {
|
|
3173
|
-
return t.length === 1 &&
|
|
3173
|
+
return t.length === 1 && Q(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(pc, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
|
|
3174
3174
|
}
|
|
3175
|
-
const We = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), mc = (e, t, n) => hc({ l: e, k: t, s: n }), hc = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), de = (e) => typeof e == "number" && isFinite(e), _o = (e) => hr(e) === "[object Date]",
|
|
3175
|
+
const We = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), mc = (e, t, n) => hc({ l: e, k: t, s: n }), hc = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), de = (e) => typeof e == "number" && isFinite(e), _o = (e) => hr(e) === "[object Date]", Jt = (e) => hr(e) === "[object RegExp]", _n = (e) => J(e) && Object.keys(e).length === 0, pe = Object.assign, _c = Object.create, Z = (e = null) => _c(e);
|
|
3176
3176
|
let rs;
|
|
3177
3177
|
const tt = () => rs || (rs = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : Z());
|
|
3178
3178
|
function ss(e) {
|
|
@@ -3195,7 +3195,7 @@ const gc = Object.prototype.hasOwnProperty;
|
|
|
3195
3195
|
function ve(e, t) {
|
|
3196
3196
|
return gc.call(e, t);
|
|
3197
3197
|
}
|
|
3198
|
-
const ae = Array.isArray, re = (e) => typeof e == "function", F = (e) => typeof e == "string", ie = (e) => typeof e == "boolean",
|
|
3198
|
+
const ae = Array.isArray, re = (e) => typeof e == "function", F = (e) => typeof e == "string", ie = (e) => typeof e == "boolean", Q = (e) => e !== null && typeof e == "object", yc = (e) => Q(e) && re(e.then) && re(e.catch), Eo = Object.prototype.toString, hr = (e) => Eo.call(e), J = (e) => hr(e) === "[object Object]", bc = (e) => e == null ? "" : ae(e) || J(e) && e.toString === Eo ? JSON.stringify(e, null, 2) : String(e);
|
|
3199
3199
|
function _r(e, t = "") {
|
|
3200
3200
|
return e.reduce((n, r, s) => s === 0 ? n + r : n + t + r, "");
|
|
3201
3201
|
}
|
|
@@ -3245,7 +3245,7 @@ function Oc() {
|
|
|
3245
3245
|
}
|
|
3246
3246
|
};
|
|
3247
3247
|
}
|
|
3248
|
-
const Mt = (e) => !
|
|
3248
|
+
const Mt = (e) => !Q(e) || ae(e);
|
|
3249
3249
|
function Ht(e, t) {
|
|
3250
3250
|
if (Mt(e) || Mt(t))
|
|
3251
3251
|
throw new Error("Invalid value");
|
|
@@ -3253,14 +3253,14 @@ function Ht(e, t) {
|
|
|
3253
3253
|
for (; n.length; ) {
|
|
3254
3254
|
const { src: r, des: s } = n.pop();
|
|
3255
3255
|
Object.keys(r).forEach((o) => {
|
|
3256
|
-
o !== "__proto__" && (
|
|
3256
|
+
o !== "__proto__" && (Q(r[o]) && !Q(s[o]) && (s[o] = Array.isArray(r[o]) ? [] : Z()), Mt(s[o]) || Mt(r[o]) ? s[o] = r[o] : n.push({ src: r[o], des: s[o] }));
|
|
3257
3257
|
});
|
|
3258
3258
|
}
|
|
3259
3259
|
}
|
|
3260
3260
|
function Sc(e, t, n) {
|
|
3261
3261
|
return { line: e, column: t, offset: n };
|
|
3262
3262
|
}
|
|
3263
|
-
function
|
|
3263
|
+
function Jn(e, t, n) {
|
|
3264
3264
|
return { start: e, end: t };
|
|
3265
3265
|
}
|
|
3266
3266
|
const H = {
|
|
@@ -3314,11 +3314,11 @@ function vc(e) {
|
|
|
3314
3314
|
throw e;
|
|
3315
3315
|
}
|
|
3316
3316
|
const Lc = /<\/?[\w\s="/.':;#-\/]+>/, Rc = (e) => Lc.test(e), we = " ", Cc = "\r", he = `
|
|
3317
|
-
`, Ic = "\u2028",
|
|
3318
|
-
function
|
|
3317
|
+
`, Ic = "\u2028", Pc = "\u2029";
|
|
3318
|
+
function Dc(e) {
|
|
3319
3319
|
const t = e;
|
|
3320
3320
|
let n = 0, r = 1, s = 1, o = 0;
|
|
3321
|
-
const i = (g) => t[g] === Cc && t[g + 1] === he, a = (g) => t[g] === he, c = (g) => t[g] ===
|
|
3321
|
+
const i = (g) => t[g] === Cc && t[g + 1] === he, a = (g) => t[g] === he, c = (g) => t[g] === Pc, l = (g) => t[g] === Ic, f = (g) => i(g) || a(g) || c(g) || l(g), m = () => n, E = () => r, _ = () => s, p = () => o, b = (g) => i(g) || c(g) || l(g) ? he : t[g], N = () => b(n), h = () => b(n + o);
|
|
3322
3322
|
function S() {
|
|
3323
3323
|
return o = 0, f(n) && (r++, s = 0), i(n) && n++, n++, s++, t[n];
|
|
3324
3324
|
}
|
|
@@ -3331,7 +3331,7 @@ function Pc(e) {
|
|
|
3331
3331
|
function C(g = 0) {
|
|
3332
3332
|
o = g;
|
|
3333
3333
|
}
|
|
3334
|
-
function
|
|
3334
|
+
function D() {
|
|
3335
3335
|
const g = n + o;
|
|
3336
3336
|
for (; g !== n; )
|
|
3337
3337
|
S();
|
|
@@ -3349,12 +3349,12 @@ function Pc(e) {
|
|
|
3349
3349
|
peek: A,
|
|
3350
3350
|
reset: O,
|
|
3351
3351
|
resetPeek: C,
|
|
3352
|
-
skipToPeek:
|
|
3352
|
+
skipToPeek: D
|
|
3353
3353
|
};
|
|
3354
3354
|
}
|
|
3355
3355
|
const xe = void 0, wc = ".", as = "'", kc = "tokenizer";
|
|
3356
3356
|
function Mc(e, t = {}) {
|
|
3357
|
-
const n = t.location !== !1, r =
|
|
3357
|
+
const n = t.location !== !1, r = Dc(e), s = () => r.index(), o = () => Sc(r.line(), r.column(), r.index()), i = o(), a = s(), c = {
|
|
3358
3358
|
currentType: 13,
|
|
3359
3359
|
offset: a,
|
|
3360
3360
|
startLoc: i,
|
|
@@ -3370,7 +3370,7 @@ function Mc(e, t = {}) {
|
|
|
3370
3370
|
function m(u, d, L, ...M) {
|
|
3371
3371
|
const ne = l();
|
|
3372
3372
|
if (d.column += L, d.offset += L, f) {
|
|
3373
|
-
const oe = n ?
|
|
3373
|
+
const oe = n ? Jn(ne.startLoc, d) : null, K = _t(u, oe, {
|
|
3374
3374
|
domain: kc,
|
|
3375
3375
|
args: M
|
|
3376
3376
|
});
|
|
@@ -3380,7 +3380,7 @@ function Mc(e, t = {}) {
|
|
|
3380
3380
|
function E(u, d, L) {
|
|
3381
3381
|
u.endLoc = o(), u.currentType = d;
|
|
3382
3382
|
const M = { type: d };
|
|
3383
|
-
return n && (M.loc =
|
|
3383
|
+
return n && (M.loc = Jn(u.startLoc, u.endLoc)), L != null && (M.value = L), M;
|
|
3384
3384
|
}
|
|
3385
3385
|
const _ = (u) => E(
|
|
3386
3386
|
u,
|
|
@@ -3438,7 +3438,7 @@ function Mc(e, t = {}) {
|
|
|
3438
3438
|
const M = u.currentPeek() === as;
|
|
3439
3439
|
return u.resetPeek(), M;
|
|
3440
3440
|
}
|
|
3441
|
-
function
|
|
3441
|
+
function D(u, d) {
|
|
3442
3442
|
const { currentType: L } = d;
|
|
3443
3443
|
if (L !== 7)
|
|
3444
3444
|
return !1;
|
|
@@ -3592,14 +3592,14 @@ function Mc(e, t = {}) {
|
|
|
3592
3592
|
case "'":
|
|
3593
3593
|
return u.next(), `\\${d}`;
|
|
3594
3594
|
case "u":
|
|
3595
|
-
return
|
|
3595
|
+
return Pe(u, d, 4);
|
|
3596
3596
|
case "U":
|
|
3597
|
-
return
|
|
3597
|
+
return Pe(u, d, 6);
|
|
3598
3598
|
default:
|
|
3599
3599
|
return m(H.UNKNOWN_ESCAPE_SEQUENCE, o(), 0, d), "";
|
|
3600
3600
|
}
|
|
3601
3601
|
}
|
|
3602
|
-
function
|
|
3602
|
+
function Pe(u, d, L) {
|
|
3603
3603
|
p(u, d);
|
|
3604
3604
|
let M = "";
|
|
3605
3605
|
for (let ne = 0; ne < L; ne++) {
|
|
@@ -3635,7 +3635,7 @@ function Mc(e, t = {}) {
|
|
|
3635
3635
|
};
|
|
3636
3636
|
return d("");
|
|
3637
3637
|
}
|
|
3638
|
-
function
|
|
3638
|
+
function De(u) {
|
|
3639
3639
|
N(u);
|
|
3640
3640
|
const d = p(
|
|
3641
3641
|
u,
|
|
@@ -3666,7 +3666,7 @@ function Mc(e, t = {}) {
|
|
|
3666
3666
|
default: {
|
|
3667
3667
|
let ne = !0, oe = !0, K = !0;
|
|
3668
3668
|
if (R(u))
|
|
3669
|
-
return d.braceNest > 0 && m(H.UNTERMINATED_CLOSING_BRACE, o(), 0), L = E(d, 1,
|
|
3669
|
+
return d.braceNest > 0 && m(H.UNTERMINATED_CLOSING_BRACE, o(), 0), L = E(d, 1, De(u)), d.braceNest = 0, d.inLinked = !1, L;
|
|
3670
3670
|
if (d.braceNest > 0 && (d.currentType === 4 || d.currentType === 5 || d.currentType === 6))
|
|
3671
3671
|
return m(H.UNTERMINATED_CLOSING_BRACE, o(), 0), d.braceNest = 0, gt(u, d);
|
|
3672
3672
|
if (ne = A(u, d))
|
|
@@ -3709,7 +3709,7 @@ function Mc(e, t = {}) {
|
|
|
3709
3709
|
/* TokenChars.LinkedDelimiter */
|
|
3710
3710
|
);
|
|
3711
3711
|
default:
|
|
3712
|
-
return R(u) ? (M = E(d, 1,
|
|
3712
|
+
return R(u) ? (M = E(d, 1, De(u)), d.braceNest = 0, d.inLinked = !1, M) : D(u, d) || W(u, d) ? (N(u), Xe(u, d)) : g(u, d) ? (N(u), E(d, 11, Ne(u))) : B(u, d) ? (N(u), ne === "{" ? Et(u, d) || M : E(d, 10, $e(u))) : (L === 7 && m(H.INVALID_LINKED_FORMAT, o(), 0), d.braceNest = 0, d.inLinked = !1, gt(u, d));
|
|
3713
3713
|
}
|
|
3714
3714
|
}
|
|
3715
3715
|
function gt(u, d) {
|
|
@@ -3735,7 +3735,7 @@ function Mc(e, t = {}) {
|
|
|
3735
3735
|
return Xe(u, d) || _(d);
|
|
3736
3736
|
default: {
|
|
3737
3737
|
if (R(u))
|
|
3738
|
-
return L = E(d, 1,
|
|
3738
|
+
return L = E(d, 1, De(u)), d.braceNest = 0, d.inLinked = !1, L;
|
|
3739
3739
|
if (v(u))
|
|
3740
3740
|
return E(d, 0, G(u));
|
|
3741
3741
|
break;
|
|
@@ -3778,9 +3778,9 @@ function Vc(e, t, n) {
|
|
|
3778
3778
|
function jc(e = {}) {
|
|
3779
3779
|
const t = e.location !== !1, { onError: n } = e;
|
|
3780
3780
|
function r(h, S, A, O, ...C) {
|
|
3781
|
-
const
|
|
3782
|
-
if (
|
|
3783
|
-
const g = t ?
|
|
3781
|
+
const D = h.currentPosition();
|
|
3782
|
+
if (D.offset += O, D.column += O, n) {
|
|
3783
|
+
const g = t ? Jn(A, D) : null, W = _t(S, g, {
|
|
3784
3784
|
domain: Fc,
|
|
3785
3785
|
args: C
|
|
3786
3786
|
});
|
|
@@ -3799,24 +3799,24 @@ function jc(e = {}) {
|
|
|
3799
3799
|
return O.value = S.replace($c, xc), o(O, h.currentOffset(), h.currentPosition()), O;
|
|
3800
3800
|
}
|
|
3801
3801
|
function a(h, S) {
|
|
3802
|
-
const A = h.context(), { lastOffset: O, lastStartLoc: C } = A,
|
|
3803
|
-
return
|
|
3802
|
+
const A = h.context(), { lastOffset: O, lastStartLoc: C } = A, D = s(5, O, C);
|
|
3803
|
+
return D.index = parseInt(S, 10), h.nextToken(), o(D, h.currentOffset(), h.currentPosition()), D;
|
|
3804
3804
|
}
|
|
3805
3805
|
function c(h, S) {
|
|
3806
|
-
const A = h.context(), { lastOffset: O, lastStartLoc: C } = A,
|
|
3807
|
-
return
|
|
3806
|
+
const A = h.context(), { lastOffset: O, lastStartLoc: C } = A, D = s(4, O, C);
|
|
3807
|
+
return D.key = S, h.nextToken(), o(D, h.currentOffset(), h.currentPosition()), D;
|
|
3808
3808
|
}
|
|
3809
3809
|
function l(h, S) {
|
|
3810
|
-
const A = h.context(), { lastOffset: O, lastStartLoc: C } = A,
|
|
3811
|
-
return
|
|
3810
|
+
const A = h.context(), { lastOffset: O, lastStartLoc: C } = A, D = s(9, O, C);
|
|
3811
|
+
return D.value = S.replace(Uc, Vc), h.nextToken(), o(D, h.currentOffset(), h.currentPosition()), D;
|
|
3812
3812
|
}
|
|
3813
3813
|
function f(h) {
|
|
3814
|
-
const S = h.nextToken(), A = h.context(), { lastOffset: O, lastStartLoc: C } = A,
|
|
3815
|
-
return S.type !== 11 ? (r(h, H.UNEXPECTED_EMPTY_LINKED_MODIFIER, A.lastStartLoc, 0),
|
|
3814
|
+
const S = h.nextToken(), A = h.context(), { lastOffset: O, lastStartLoc: C } = A, D = s(8, O, C);
|
|
3815
|
+
return S.type !== 11 ? (r(h, H.UNEXPECTED_EMPTY_LINKED_MODIFIER, A.lastStartLoc, 0), D.value = "", o(D, O, C), {
|
|
3816
3816
|
nextConsumeToken: S,
|
|
3817
|
-
node:
|
|
3818
|
-
}) : (S.value == null && r(h, H.UNEXPECTED_LEXICAL_ANALYSIS, A.lastStartLoc, 0, ke(S)),
|
|
3819
|
-
node:
|
|
3817
|
+
node: D
|
|
3818
|
+
}) : (S.value == null && r(h, H.UNEXPECTED_LEXICAL_ANALYSIS, A.lastStartLoc, 0, ke(S)), D.value = S.value || "", o(D, h.currentOffset(), h.currentPosition()), {
|
|
3819
|
+
node: D
|
|
3820
3820
|
});
|
|
3821
3821
|
}
|
|
3822
3822
|
function m(h, S) {
|
|
@@ -3845,8 +3845,8 @@ function jc(e = {}) {
|
|
|
3845
3845
|
break;
|
|
3846
3846
|
default: {
|
|
3847
3847
|
r(h, H.UNEXPECTED_EMPTY_LINKED_KEY, S.lastStartLoc, 0);
|
|
3848
|
-
const C = h.context(),
|
|
3849
|
-
return
|
|
3848
|
+
const C = h.context(), D = s(7, C.offset, C.startLoc);
|
|
3849
|
+
return D.value = "", o(D, C.offset, C.startLoc), A.key = D, o(A, C.offset, C.startLoc), {
|
|
3850
3850
|
nextConsumeToken: O,
|
|
3851
3851
|
node: A
|
|
3852
3852
|
};
|
|
@@ -3859,10 +3859,10 @@ function jc(e = {}) {
|
|
|
3859
3859
|
function _(h) {
|
|
3860
3860
|
const S = h.context(), A = S.currentType === 1 ? h.currentOffset() : S.offset, O = S.currentType === 1 ? S.endLoc : S.startLoc, C = s(2, A, O);
|
|
3861
3861
|
C.items = [];
|
|
3862
|
-
let
|
|
3862
|
+
let D = null;
|
|
3863
3863
|
do {
|
|
3864
|
-
const B =
|
|
3865
|
-
switch (
|
|
3864
|
+
const B = D || h.nextToken();
|
|
3865
|
+
switch (D = null, B.type) {
|
|
3866
3866
|
case 0:
|
|
3867
3867
|
B.value == null && r(h, H.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, ke(B)), C.items.push(i(h, B.value || ""));
|
|
3868
3868
|
break;
|
|
@@ -3877,7 +3877,7 @@ function jc(e = {}) {
|
|
|
3877
3877
|
break;
|
|
3878
3878
|
case 7: {
|
|
3879
3879
|
const R = E(h);
|
|
3880
|
-
C.items.push(R.node),
|
|
3880
|
+
C.items.push(R.node), D = R.nextConsumeToken || null;
|
|
3881
3881
|
break;
|
|
3882
3882
|
}
|
|
3883
3883
|
}
|
|
@@ -3887,14 +3887,14 @@ function jc(e = {}) {
|
|
|
3887
3887
|
}
|
|
3888
3888
|
function p(h, S, A, O) {
|
|
3889
3889
|
const C = h.context();
|
|
3890
|
-
let
|
|
3890
|
+
let D = O.items.length === 0;
|
|
3891
3891
|
const g = s(1, S, A);
|
|
3892
3892
|
g.cases = [], g.cases.push(O);
|
|
3893
3893
|
do {
|
|
3894
3894
|
const W = _(h);
|
|
3895
|
-
|
|
3895
|
+
D || (D = W.items.length === 0), g.cases.push(W);
|
|
3896
3896
|
} while (C.currentType !== 13);
|
|
3897
|
-
return
|
|
3897
|
+
return D && r(h, H.MUST_HAVE_MESSAGES_IN_PLURAL, A, 0), o(g, h.currentOffset(), h.currentPosition()), g;
|
|
3898
3898
|
}
|
|
3899
3899
|
function b(h) {
|
|
3900
3900
|
const S = h.context(), { offset: A, startLoc: O } = S, C = _(h);
|
|
@@ -4113,7 +4113,7 @@ function Xc(e, t) {
|
|
|
4113
4113
|
e.push(", ");
|
|
4114
4114
|
e.deindent(r()), e.push("])");
|
|
4115
4115
|
}
|
|
4116
|
-
function
|
|
4116
|
+
function Qc(e, t) {
|
|
4117
4117
|
const { helper: n, needIndent: r } = e;
|
|
4118
4118
|
if (t.cases.length > 1) {
|
|
4119
4119
|
e.push(`${n(
|
|
@@ -4126,17 +4126,17 @@ function Jc(e, t) {
|
|
|
4126
4126
|
e.deindent(r()), e.push("])");
|
|
4127
4127
|
}
|
|
4128
4128
|
}
|
|
4129
|
-
function
|
|
4129
|
+
function Jc(e, t) {
|
|
4130
4130
|
t.body ? dt(e, t.body) : e.push("null");
|
|
4131
4131
|
}
|
|
4132
4132
|
function dt(e, t) {
|
|
4133
4133
|
const { helper: n } = e;
|
|
4134
4134
|
switch (t.type) {
|
|
4135
4135
|
case 0:
|
|
4136
|
-
|
|
4136
|
+
Jc(e, t);
|
|
4137
4137
|
break;
|
|
4138
4138
|
case 1:
|
|
4139
|
-
|
|
4139
|
+
Qc(e, t);
|
|
4140
4140
|
break;
|
|
4141
4141
|
case 2:
|
|
4142
4142
|
Xc(e, t);
|
|
@@ -4208,7 +4208,7 @@ function el() {
|
|
|
4208
4208
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (tt().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (tt().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
4209
4209
|
}
|
|
4210
4210
|
function Ce(e) {
|
|
4211
|
-
return
|
|
4211
|
+
return Q(e) && gr(e) === 0 && (ve(e, "b") || ve(e, "body"));
|
|
4212
4212
|
}
|
|
4213
4213
|
const go = ["b", "body"];
|
|
4214
4214
|
function tl(e) {
|
|
@@ -4414,18 +4414,18 @@ const gl = {
|
|
|
4414
4414
|
function yr(e, t) {
|
|
4415
4415
|
return t.locale != null ? fs(t.locale) : fs(e.locale);
|
|
4416
4416
|
}
|
|
4417
|
-
let
|
|
4417
|
+
let Pn;
|
|
4418
4418
|
function fs(e) {
|
|
4419
4419
|
if (F(e))
|
|
4420
4420
|
return e;
|
|
4421
4421
|
if (re(e)) {
|
|
4422
|
-
if (e.resolvedOnce &&
|
|
4423
|
-
return
|
|
4422
|
+
if (e.resolvedOnce && Pn != null)
|
|
4423
|
+
return Pn;
|
|
4424
4424
|
if (e.constructor.name === "Function") {
|
|
4425
4425
|
const t = e();
|
|
4426
4426
|
if (yc(t))
|
|
4427
4427
|
throw Ve(_e.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
4428
|
-
return
|
|
4428
|
+
return Pn = t;
|
|
4429
4429
|
} else
|
|
4430
4430
|
throw Ve(_e.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
4431
4431
|
} else
|
|
@@ -4434,7 +4434,7 @@ function fs(e) {
|
|
|
4434
4434
|
function yl(e, t, n) {
|
|
4435
4435
|
return [.../* @__PURE__ */ new Set([
|
|
4436
4436
|
n,
|
|
4437
|
-
...ae(t) ? t :
|
|
4437
|
+
...ae(t) ? t : Q(t) ? Object.keys(t) : F(t) ? [t] : [n]
|
|
4438
4438
|
])];
|
|
4439
4439
|
}
|
|
4440
4440
|
function Zn(e, t, n) {
|
|
@@ -4446,7 +4446,7 @@ function Zn(e, t, n) {
|
|
|
4446
4446
|
let i = [n];
|
|
4447
4447
|
for (; ae(i); )
|
|
4448
4448
|
i = ds(o, i, t);
|
|
4449
|
-
const a = ae(t) || !
|
|
4449
|
+
const a = ae(t) || !J(t) ? t : t.default ? t.default : null;
|
|
4450
4450
|
i = F(a) ? [a] : a, ae(i) && ds(o, i, !1), s.__localeChainCache.set(r, o);
|
|
4451
4451
|
}
|
|
4452
4452
|
return o;
|
|
@@ -4473,7 +4473,7 @@ function Nl(e, t, n) {
|
|
|
4473
4473
|
if (!e.includes(t) && (r = !0, t)) {
|
|
4474
4474
|
r = t[t.length - 1] !== "!";
|
|
4475
4475
|
const s = t.replace(/!/g, "");
|
|
4476
|
-
e.push(s), (ae(n) ||
|
|
4476
|
+
e.push(s), (ae(n) || J(n)) && n[s] && (r = n[s]);
|
|
4477
4477
|
}
|
|
4478
4478
|
return r;
|
|
4479
4479
|
}
|
|
@@ -4745,10 +4745,10 @@ function Ll(e) {
|
|
|
4745
4745
|
}
|
|
4746
4746
|
const ps = /* @__PURE__ */ new Map();
|
|
4747
4747
|
function Rl(e, t) {
|
|
4748
|
-
return
|
|
4748
|
+
return Q(e) ? e[t] : null;
|
|
4749
4749
|
}
|
|
4750
4750
|
function Cl(e, t) {
|
|
4751
|
-
if (!
|
|
4751
|
+
if (!Q(e))
|
|
4752
4752
|
return null;
|
|
4753
4753
|
let n = ps.get(t);
|
|
4754
4754
|
if (n || (n = Ll(t), n && ps.set(t, n)), !n)
|
|
@@ -4757,7 +4757,7 @@ function Cl(e, t) {
|
|
|
4757
4757
|
let s = e, o = 0;
|
|
4758
4758
|
for (; o < r; ) {
|
|
4759
4759
|
const i = n[o];
|
|
4760
|
-
if (vo.includes(i) && Ce(s) || !
|
|
4760
|
+
if (vo.includes(i) && Ce(s) || !Q(s) || !ve(s, i))
|
|
4761
4761
|
return null;
|
|
4762
4762
|
const a = s[i];
|
|
4763
4763
|
if (a === void 0 || re(s))
|
|
@@ -4790,12 +4790,12 @@ const fe = {
|
|
|
4790
4790
|
function Be(e, ...t) {
|
|
4791
4791
|
return hn(Il[e], ...t);
|
|
4792
4792
|
}
|
|
4793
|
-
const
|
|
4794
|
-
function
|
|
4793
|
+
const Pl = "11.3.0", En = -1, zt = "en-US", pt = "", ms = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
4794
|
+
function Dl() {
|
|
4795
4795
|
return {
|
|
4796
|
-
upper: (e, t) => t === "text" && F(e) ? e.toUpperCase() : t === "vnode" &&
|
|
4797
|
-
lower: (e, t) => t === "text" && F(e) ? e.toLowerCase() : t === "vnode" &&
|
|
4798
|
-
capitalize: (e, t) => t === "text" && F(e) ? ms(e) : t === "vnode" &&
|
|
4796
|
+
upper: (e, t) => t === "text" && F(e) ? e.toUpperCase() : t === "vnode" && Q(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
4797
|
+
lower: (e, t) => t === "text" && F(e) ? e.toLowerCase() : t === "vnode" && Q(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
4798
|
+
capitalize: (e, t) => t === "text" && F(e) ? ms(e) : t === "vnode" && Q(e) && "__v_isVNode" in e ? ms(e.children) : e
|
|
4799
4799
|
};
|
|
4800
4800
|
}
|
|
4801
4801
|
let Lo;
|
|
@@ -4814,15 +4814,15 @@ let Io = null;
|
|
|
4814
4814
|
const Fl = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
4815
4815
|
Io = e;
|
|
4816
4816
|
}, Ul = /* @__NO_SIDE_EFFECTS__ */ () => Io;
|
|
4817
|
-
let
|
|
4817
|
+
let Po = null;
|
|
4818
4818
|
const hs = (e) => {
|
|
4819
|
-
|
|
4820
|
-
}, $l = () =>
|
|
4819
|
+
Po = e;
|
|
4820
|
+
}, $l = () => Po;
|
|
4821
4821
|
let _s = 0;
|
|
4822
4822
|
function xl(e = {}) {
|
|
4823
|
-
const t = re(e.onWarn) ? e.onWarn : Fe, n = F(e.version) ? e.version :
|
|
4823
|
+
const t = re(e.onWarn) ? e.onWarn : Fe, n = F(e.version) ? e.version : Pl, r = F(e.locale) || re(e.locale) ? e.locale : zt, s = re(r) ? zt : r, o = ae(e.fallbackLocale) || J(e.fallbackLocale) || F(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s, i = J(e.messages) ? e.messages : Dn(s), a = J(e.datetimeFormats) ? e.datetimeFormats : Dn(s), c = J(e.numberFormats) ? e.numberFormats : Dn(s), l = pe(Z(), e.modifiers, Dl()), f = e.pluralRules || Z(), m = re(e.missing) ? e.missing : null, E = ie(e.missingWarn) || Jt(e.missingWarn) ? e.missingWarn : !0, _ = ie(e.fallbackWarn) || Jt(e.fallbackWarn) ? e.fallbackWarn : !0, p = !!e.fallbackFormat, b = !!e.unresolving, N = re(e.postTranslation) ? e.postTranslation : null, h = J(e.processor) ? e.processor : null, S = ie(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, A = !!e.escapeParameter, O = re(e.messageCompiler) ? e.messageCompiler : Lo;
|
|
4824
4824
|
process.env.NODE_ENV !== "production" && re(e.messageCompiler) && dc(Be(fe.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
4825
|
-
const C = re(e.messageResolver) ? e.messageResolver : Ro || Rl,
|
|
4825
|
+
const C = re(e.messageResolver) ? e.messageResolver : Ro || Rl, D = re(e.localeFallbacker) ? e.localeFallbacker : Co || yl, g = Q(e.fallbackContext) ? e.fallbackContext : void 0, W = e, B = Q(W.__datetimeFormatters) ? W.__datetimeFormatters : /* @__PURE__ */ new Map(), R = Q(W.__numberFormatters) ? W.__numberFormatters : /* @__PURE__ */ new Map(), v = Q(W.__meta) ? W.__meta : {};
|
|
4826
4826
|
_s++;
|
|
4827
4827
|
const V = {
|
|
4828
4828
|
version: n,
|
|
@@ -4843,18 +4843,18 @@ function xl(e = {}) {
|
|
|
4843
4843
|
escapeParameter: A,
|
|
4844
4844
|
messageCompiler: O,
|
|
4845
4845
|
messageResolver: C,
|
|
4846
|
-
localeFallbacker:
|
|
4846
|
+
localeFallbacker: D,
|
|
4847
4847
|
fallbackContext: g,
|
|
4848
4848
|
onWarn: t,
|
|
4849
4849
|
__meta: v
|
|
4850
4850
|
};
|
|
4851
4851
|
return V.datetimeFormats = a, V.numberFormats = c, V.__datetimeFormatters = B, V.__numberFormatters = R, process.env.NODE_ENV !== "production" && (V.__v_emitter = W.__v_emitter != null ? W.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && ml(V, n, v), V;
|
|
4852
4852
|
}
|
|
4853
|
-
const
|
|
4853
|
+
const Dn = (e) => ({ [e]: Z() });
|
|
4854
4854
|
function gn(e, t) {
|
|
4855
4855
|
return e instanceof RegExp ? e.test(t) : e;
|
|
4856
4856
|
}
|
|
4857
|
-
function
|
|
4857
|
+
function Do(e, t) {
|
|
4858
4858
|
return e instanceof RegExp ? e.test(t) : e;
|
|
4859
4859
|
}
|
|
4860
4860
|
function br(e, t, n, r, s) {
|
|
@@ -4872,7 +4872,7 @@ function br(e, t, n, r, s) {
|
|
|
4872
4872
|
const a = o(e, n, t, s);
|
|
4873
4873
|
return F(a) ? a : t;
|
|
4874
4874
|
} else
|
|
4875
|
-
return process.env.NODE_ENV !== "production" &&
|
|
4875
|
+
return process.env.NODE_ENV !== "production" && Do(r, t) && i(Be(fe.NOT_FOUND_KEY, { key: t, locale: n })), t;
|
|
4876
4876
|
}
|
|
4877
4877
|
function bt(e, t, n) {
|
|
4878
4878
|
const r = e;
|
|
@@ -4911,7 +4911,7 @@ function gs(e, ...t) {
|
|
|
4911
4911
|
if (!F(c) || c === "")
|
|
4912
4912
|
return new Intl.DateTimeFormat(b.replace(/!/g, ""), m).format(l);
|
|
4913
4913
|
let h = {}, S, A = null, O = b, C = null;
|
|
4914
|
-
const
|
|
4914
|
+
const D = "datetime format";
|
|
4915
4915
|
for (let B = 0; B < N.length; B++) {
|
|
4916
4916
|
if (S = C = N[B], process.env.NODE_ENV !== "production" && b !== S && gn(_, c) && o(Be(fe.FALLBACK_TO_DATE_FORMAT, {
|
|
4917
4917
|
key: c,
|
|
@@ -4919,18 +4919,18 @@ function gs(e, ...t) {
|
|
|
4919
4919
|
})), process.env.NODE_ENV !== "production" && b !== S) {
|
|
4920
4920
|
const R = e.__v_emitter;
|
|
4921
4921
|
R && R.emit("fallback", {
|
|
4922
|
-
type:
|
|
4922
|
+
type: D,
|
|
4923
4923
|
key: c,
|
|
4924
4924
|
from: O,
|
|
4925
4925
|
to: C,
|
|
4926
|
-
groupId: `${
|
|
4926
|
+
groupId: `${D}:${c}`
|
|
4927
4927
|
});
|
|
4928
4928
|
}
|
|
4929
|
-
if (h = n[S] || {}, A = h[c],
|
|
4929
|
+
if (h = n[S] || {}, A = h[c], J(A))
|
|
4930
4930
|
break;
|
|
4931
|
-
br(e, c, S, E,
|
|
4931
|
+
br(e, c, S, E, D), O = C;
|
|
4932
4932
|
}
|
|
4933
|
-
if (!
|
|
4933
|
+
if (!J(A) || !F(S))
|
|
4934
4934
|
return r ? En : c;
|
|
4935
4935
|
let g = `${S}__${c}`;
|
|
4936
4936
|
_n(m) || (g = `${g}__${JSON.stringify(m)}`);
|
|
@@ -4981,9 +4981,9 @@ function er(...e) {
|
|
|
4981
4981
|
a = t;
|
|
4982
4982
|
else
|
|
4983
4983
|
throw Ve(_e.INVALID_ARGUMENT);
|
|
4984
|
-
return F(n) ? o.key = n :
|
|
4984
|
+
return F(n) ? o.key = n : J(n) && Object.keys(n).forEach((c) => {
|
|
4985
4985
|
Mo.includes(c) ? i[c] = n[c] : o[c] = n[c];
|
|
4986
|
-
}), F(r) ? o.locale = r :
|
|
4986
|
+
}), F(r) ? o.locale = r : J(r) && (i = r), J(s) && (i = s), [o.key || "", a, o, i];
|
|
4987
4987
|
}
|
|
4988
4988
|
function ys(e, t, n) {
|
|
4989
4989
|
const r = e;
|
|
@@ -5009,7 +5009,7 @@ function bs(e, ...t) {
|
|
|
5009
5009
|
if (!F(c) || c === "")
|
|
5010
5010
|
return new Intl.NumberFormat(b.replace(/!/g, ""), m).format(l);
|
|
5011
5011
|
let h = {}, S, A = null, O = b, C = null;
|
|
5012
|
-
const
|
|
5012
|
+
const D = "number format";
|
|
5013
5013
|
for (let B = 0; B < N.length; B++) {
|
|
5014
5014
|
if (S = C = N[B], process.env.NODE_ENV !== "production" && b !== S && gn(_, c) && o(Be(fe.FALLBACK_TO_NUMBER_FORMAT, {
|
|
5015
5015
|
key: c,
|
|
@@ -5017,18 +5017,18 @@ function bs(e, ...t) {
|
|
|
5017
5017
|
})), process.env.NODE_ENV !== "production" && b !== S) {
|
|
5018
5018
|
const R = e.__v_emitter;
|
|
5019
5019
|
R && R.emit("fallback", {
|
|
5020
|
-
type:
|
|
5020
|
+
type: D,
|
|
5021
5021
|
key: c,
|
|
5022
5022
|
from: O,
|
|
5023
5023
|
to: C,
|
|
5024
|
-
groupId: `${
|
|
5024
|
+
groupId: `${D}:${c}`
|
|
5025
5025
|
});
|
|
5026
5026
|
}
|
|
5027
|
-
if (h = n[S] || {}, A = h[c],
|
|
5027
|
+
if (h = n[S] || {}, A = h[c], J(A))
|
|
5028
5028
|
break;
|
|
5029
|
-
br(e, c, S, E,
|
|
5029
|
+
br(e, c, S, E, D), O = C;
|
|
5030
5030
|
}
|
|
5031
|
-
if (!
|
|
5031
|
+
if (!J(A) || !F(S))
|
|
5032
5032
|
return r ? En : c;
|
|
5033
5033
|
let g = `${S}__${c}`;
|
|
5034
5034
|
_n(m) || (g = `${g}__${JSON.stringify(m)}`);
|
|
@@ -5063,9 +5063,9 @@ function tr(...e) {
|
|
|
5063
5063
|
if (!de(t))
|
|
5064
5064
|
throw Ve(_e.INVALID_ARGUMENT);
|
|
5065
5065
|
const a = t;
|
|
5066
|
-
return F(n) ? o.key = n :
|
|
5066
|
+
return F(n) ? o.key = n : J(n) && Object.keys(n).forEach((c) => {
|
|
5067
5067
|
Fo.includes(c) ? i[c] = n[c] : o[c] = n[c];
|
|
5068
|
-
}), F(r) ? o.locale = r :
|
|
5068
|
+
}), F(r) ? o.locale = r : J(r) && (i = r), J(s) && (i = s), [o.key || "", a, o, i];
|
|
5069
5069
|
}
|
|
5070
5070
|
function Ns(e, t, n) {
|
|
5071
5071
|
const r = e;
|
|
@@ -5087,7 +5087,7 @@ function Gl(e = {}) {
|
|
|
5087
5087
|
de(e.pluralIndex) && (c.count ||= e.pluralIndex, c.n ||= e.pluralIndex);
|
|
5088
5088
|
const l = (h) => c[h];
|
|
5089
5089
|
function f(h, S) {
|
|
5090
|
-
const A = re(e.messages) ? e.messages(h, !!S) :
|
|
5090
|
+
const A = re(e.messages) ? e.messages(h, !!S) : Q(e.messages) ? e.messages[h] : !1;
|
|
5091
5091
|
return A || (e.parent ? e.parent.message(h) : Bl);
|
|
5092
5092
|
}
|
|
5093
5093
|
const m = (h) => e.modifiers ? e.modifiers[h] : jl, E = re(e.processor?.normalize) ? e.processor.normalize : ql, _ = re(e.processor?.interpolate) ? e.processor.interpolate : Wl, p = F(e.processor?.type) ? e.processor.type : Hl, N = {
|
|
@@ -5096,13 +5096,13 @@ function Gl(e = {}) {
|
|
|
5096
5096
|
plural: o,
|
|
5097
5097
|
linked: (h, ...S) => {
|
|
5098
5098
|
const [A, O] = S;
|
|
5099
|
-
let C = "text",
|
|
5100
|
-
S.length === 1 ?
|
|
5099
|
+
let C = "text", D = "";
|
|
5100
|
+
S.length === 1 ? Q(A) ? (D = A.modifier || D, C = A.type || C) : F(A) && (D = A || D) : S.length === 2 && (F(A) && (D = A || D), F(O) && (C = O || C));
|
|
5101
5101
|
const g = f(h, !0)(N), W = g === "" || g === void 0 ? h : g, B = (
|
|
5102
5102
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
5103
|
-
C === "vnode" && ae(W) &&
|
|
5103
|
+
C === "vnode" && ae(W) && D ? W[0] : W
|
|
5104
5104
|
);
|
|
5105
|
-
return
|
|
5105
|
+
return D ? m(D)(B, C) : B;
|
|
5106
5106
|
},
|
|
5107
5107
|
message: f,
|
|
5108
5108
|
type: p,
|
|
@@ -5125,11 +5125,11 @@ function Ss(e, ...t) {
|
|
|
5125
5125
|
return s ? En : c;
|
|
5126
5126
|
if (process.env.NODE_ENV !== "production" && F(O) && e.messageCompiler == null)
|
|
5127
5127
|
return Fe(`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;
|
|
5128
|
-
let
|
|
5128
|
+
let D = !1;
|
|
5129
5129
|
const g = () => {
|
|
5130
|
-
|
|
5130
|
+
D = !0;
|
|
5131
5131
|
}, W = Ae(O) ? O : $o(e, c, S, O, C, g);
|
|
5132
|
-
if (
|
|
5132
|
+
if (D)
|
|
5133
5133
|
return O;
|
|
5134
5134
|
const B = zl(e, S, A, l), R = Gl(B), v = Xl(e, W, R);
|
|
5135
5135
|
let V = r ? r(v, c) : v;
|
|
@@ -5146,7 +5146,7 @@ function Ss(e, ...t) {
|
|
|
5146
5146
|
return V;
|
|
5147
5147
|
}
|
|
5148
5148
|
function Kl(e) {
|
|
5149
|
-
ae(e.list) ? e.list = e.list.map((t) => F(t) ? ss(t) : t) :
|
|
5149
|
+
ae(e.list) ? e.list = e.list.map((t) => F(t) ? ss(t) : t) : Q(e.named) && Object.keys(e.named).forEach((t) => {
|
|
5150
5150
|
F(e.named[t]) && (e.named[t] = ss(e.named[t]));
|
|
5151
5151
|
});
|
|
5152
5152
|
}
|
|
@@ -5171,8 +5171,8 @@ function Uo(e, t, n, r, s, o) {
|
|
|
5171
5171
|
m = i[E] || Z();
|
|
5172
5172
|
let S = null, A, O;
|
|
5173
5173
|
if (process.env.NODE_ENV !== "production" && He && (S = window.performance.now(), A = "intlify-message-resolve-start", O = "intlify-message-resolve-end", be && be(A)), (_ = c(m, t)) === null && (_ = m[t]), process.env.NODE_ENV !== "production" && He) {
|
|
5174
|
-
const C = window.performance.now(),
|
|
5175
|
-
|
|
5174
|
+
const C = window.performance.now(), D = e.__v_emitter;
|
|
5175
|
+
D && S && _ && D.emit("message-resolve", {
|
|
5176
5176
|
type: "message-resolve",
|
|
5177
5177
|
key: t,
|
|
5178
5178
|
message: _,
|
|
@@ -5209,7 +5209,7 @@ function $o(e, t, n, r, s, o) {
|
|
|
5209
5209
|
}
|
|
5210
5210
|
let c = null, l, f;
|
|
5211
5211
|
process.env.NODE_ENV !== "production" && He && (c = window.performance.now(), l = "intlify-message-compilation-start", f = "intlify-message-compilation-end", be && be(l));
|
|
5212
|
-
const m = i(r,
|
|
5212
|
+
const m = i(r, Ql(e, n, s, r, a, o));
|
|
5213
5213
|
if (process.env.NODE_ENV !== "production" && He) {
|
|
5214
5214
|
const E = window.performance.now(), _ = e.__v_emitter;
|
|
5215
5215
|
_ && c && _.emit("message-compilation", {
|
|
@@ -5241,16 +5241,16 @@ function nr(...e) {
|
|
|
5241
5241
|
if (!F(t) && !de(t) && !Ae(t) && !Ce(t))
|
|
5242
5242
|
throw Ve(_e.INVALID_ARGUMENT);
|
|
5243
5243
|
const o = de(t) ? String(t) : (Ae(t), t);
|
|
5244
|
-
return de(n) ? s.plural = n : F(n) ? s.default = n :
|
|
5244
|
+
return de(n) ? s.plural = n : F(n) ? s.default = n : J(n) && !_n(n) ? s.named = n : ae(n) && (s.list = n), de(r) ? s.plural = r : F(r) ? s.default = r : J(r) && pe(s, r), [o, s];
|
|
5245
5245
|
}
|
|
5246
|
-
function
|
|
5246
|
+
function Ql(e, t, n, r, s, o) {
|
|
5247
5247
|
return {
|
|
5248
5248
|
locale: t,
|
|
5249
5249
|
key: n,
|
|
5250
5250
|
warnHtmlMessage: s,
|
|
5251
5251
|
onError: (i) => {
|
|
5252
5252
|
if (o && o(i), process.env.NODE_ENV !== "production") {
|
|
5253
|
-
const a =
|
|
5253
|
+
const a = Jl(r), c = i.location && a && Nc(a, i.location.start.offset, i.location.end.offset), l = e.__v_emitter;
|
|
5254
5254
|
l && a && l.emit("compile-error", {
|
|
5255
5255
|
message: a,
|
|
5256
5256
|
error: i.message,
|
|
@@ -5267,7 +5267,7 @@ ${c}` : f);
|
|
|
5267
5267
|
onCacheKey: (i) => mc(t, n, i)
|
|
5268
5268
|
};
|
|
5269
5269
|
}
|
|
5270
|
-
function
|
|
5270
|
+
function Jl(e) {
|
|
5271
5271
|
if (F(e))
|
|
5272
5272
|
return e;
|
|
5273
5273
|
if (e.loc && e.loc.source)
|
|
@@ -5379,19 +5379,19 @@ function Zt(e, ...t) {
|
|
|
5379
5379
|
return hn(ru[e], ...t);
|
|
5380
5380
|
}
|
|
5381
5381
|
function Lt(e) {
|
|
5382
|
-
if (!
|
|
5382
|
+
if (!Q(e) || Ce(e))
|
|
5383
5383
|
return e;
|
|
5384
5384
|
for (const t in e)
|
|
5385
5385
|
if (ve(e, t))
|
|
5386
5386
|
if (!t.includes("."))
|
|
5387
|
-
|
|
5387
|
+
Q(e[t]) && Lt(e[t]);
|
|
5388
5388
|
else {
|
|
5389
5389
|
const n = t.split("."), r = n.length - 1;
|
|
5390
5390
|
let s = e, o = !1;
|
|
5391
5391
|
for (let i = 0; i < r; i++) {
|
|
5392
5392
|
if (n[i] === "__proto__")
|
|
5393
5393
|
throw new Error(`unsafe key: ${n[i]}`);
|
|
5394
|
-
if (n[i] in s || (s[n[i]] = Z()), !
|
|
5394
|
+
if (n[i] in s || (s[n[i]] = Z()), !Q(s[n[i]])) {
|
|
5395
5395
|
process.env.NODE_ENV !== "production" && Fe(Zt(Me.IGNORE_OBJ_FLATTEN, {
|
|
5396
5396
|
key: n[i]
|
|
5397
5397
|
})), o = !0;
|
|
@@ -5401,13 +5401,13 @@ function Lt(e) {
|
|
|
5401
5401
|
}
|
|
5402
5402
|
if (o || (Ce(s) ? vo.includes(n[r]) || delete e[t] : (s[n[r]] = e[t], delete e[t])), !Ce(s)) {
|
|
5403
5403
|
const i = s[n[r]];
|
|
5404
|
-
|
|
5404
|
+
Q(i) && Lt(i);
|
|
5405
5405
|
}
|
|
5406
5406
|
}
|
|
5407
5407
|
return e;
|
|
5408
5408
|
}
|
|
5409
5409
|
function Vo(e, t) {
|
|
5410
|
-
const { messages: n, __i18n: r, messageResolver: s, flatJson: o } = t, i =
|
|
5410
|
+
const { messages: n, __i18n: r, messageResolver: s, flatJson: o } = t, i = J(n) ? n : ae(r) ? Z() : { [e]: Z() };
|
|
5411
5411
|
if (ae(r) && r.forEach((a) => {
|
|
5412
5412
|
if ("locale" in a && "resource" in a) {
|
|
5413
5413
|
const { locale: c, resource: l } = a;
|
|
@@ -5423,7 +5423,7 @@ function jo(e) {
|
|
|
5423
5423
|
return e.type;
|
|
5424
5424
|
}
|
|
5425
5425
|
function su(e, t, n) {
|
|
5426
|
-
let r =
|
|
5426
|
+
let r = Q(t.messages) ? t.messages : Z();
|
|
5427
5427
|
"__i18nGlobal" in n && (r = Vo(e.locale.value, {
|
|
5428
5428
|
messages: r,
|
|
5429
5429
|
__i18n: n.__i18nGlobal
|
|
@@ -5433,13 +5433,13 @@ function su(e, t, n) {
|
|
|
5433
5433
|
e.mergeLocaleMessage(o, r[o]);
|
|
5434
5434
|
});
|
|
5435
5435
|
{
|
|
5436
|
-
if (
|
|
5436
|
+
if (Q(t.datetimeFormats)) {
|
|
5437
5437
|
const o = Object.keys(t.datetimeFormats);
|
|
5438
5438
|
o.length && o.forEach((i) => {
|
|
5439
5439
|
e.mergeDateTimeFormat(i, t.datetimeFormats[i]);
|
|
5440
5440
|
});
|
|
5441
5441
|
}
|
|
5442
|
-
if (
|
|
5442
|
+
if (Q(t.numberFormats)) {
|
|
5443
5443
|
const o = Object.keys(t.numberFormats);
|
|
5444
5444
|
o.length && o.forEach((i) => {
|
|
5445
5445
|
e.mergeNumberFormat(i, t.numberFormats[i]);
|
|
@@ -5472,11 +5472,11 @@ function au(e = {}) {
|
|
|
5472
5472
|
t && i ? t.locale.value : F(e.locale) ? e.locale : zt
|
|
5473
5473
|
), c = o(
|
|
5474
5474
|
// prettier-ignore
|
|
5475
|
-
t && i ? t.fallbackLocale.value : F(e.fallbackLocale) || ae(e.fallbackLocale) ||
|
|
5476
|
-
), l = o(Vo(a.value, e)), f = o(
|
|
5477
|
-
let E = t ? t.missingWarn : ie(e.missingWarn) ||
|
|
5478
|
-
const C = t ? t.modifiers :
|
|
5479
|
-
let
|
|
5475
|
+
t && i ? t.fallbackLocale.value : F(e.fallbackLocale) || ae(e.fallbackLocale) || J(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a.value
|
|
5476
|
+
), l = o(Vo(a.value, e)), f = o(J(e.datetimeFormats) ? e.datetimeFormats : { [a.value]: {} }), m = o(J(e.numberFormats) ? e.numberFormats : { [a.value]: {} });
|
|
5477
|
+
let E = t ? t.missingWarn : ie(e.missingWarn) || Jt(e.missingWarn) ? e.missingWarn : !0, _ = t ? t.fallbackWarn : ie(e.fallbackWarn) || Jt(e.fallbackWarn) ? e.fallbackWarn : !0, p = t ? t.fallbackRoot : ie(e.fallbackRoot) ? e.fallbackRoot : !0, b = !!e.fallbackFormat, N = re(e.missing) ? e.missing : null, h = re(e.missing) ? Rs(e.missing) : null, S = re(e.postTranslation) ? e.postTranslation : null, A = t ? t.warnHtmlMessage : ie(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, O = !!e.escapeParameter;
|
|
5478
|
+
const C = t ? t.modifiers : J(e.modifiers) ? e.modifiers : {};
|
|
5479
|
+
let D = e.pluralRules || t && t.pluralRules, g;
|
|
5480
5480
|
g = (() => {
|
|
5481
5481
|
r && hs(null);
|
|
5482
5482
|
const T = {
|
|
@@ -5485,7 +5485,7 @@ function au(e = {}) {
|
|
|
5485
5485
|
fallbackLocale: c.value,
|
|
5486
5486
|
messages: l.value,
|
|
5487
5487
|
modifiers: C,
|
|
5488
|
-
pluralRules:
|
|
5488
|
+
pluralRules: D,
|
|
5489
5489
|
missing: h === null ? void 0 : h,
|
|
5490
5490
|
missingWarn: E,
|
|
5491
5491
|
fallbackWarn: _,
|
|
@@ -5498,9 +5498,9 @@ function au(e = {}) {
|
|
|
5498
5498
|
messageCompiler: e.messageCompiler,
|
|
5499
5499
|
__meta: { framework: "vue" }
|
|
5500
5500
|
};
|
|
5501
|
-
T.datetimeFormats = f.value, T.numberFormats = m.value, T.__datetimeFormatters =
|
|
5502
|
-
const
|
|
5503
|
-
return r && hs(
|
|
5501
|
+
T.datetimeFormats = f.value, T.numberFormats = m.value, T.__datetimeFormatters = J(g) ? g.__datetimeFormatters : void 0, T.__numberFormatters = J(g) ? g.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (T.__v_emitter = J(g) ? g.__v_emitter : void 0);
|
|
5502
|
+
const P = xl(T);
|
|
5503
|
+
return r && hs(P), P;
|
|
5504
5504
|
})(), bt(g, a.value, c.value);
|
|
5505
5505
|
function B() {
|
|
5506
5506
|
return [
|
|
@@ -5534,10 +5534,10 @@ function au(e = {}) {
|
|
|
5534
5534
|
function w(T) {
|
|
5535
5535
|
T !== null && (h = Rs(T)), N = T, g.missing = h;
|
|
5536
5536
|
}
|
|
5537
|
-
function x(T,
|
|
5538
|
-
return T !== "translate" || !
|
|
5537
|
+
function x(T, P) {
|
|
5538
|
+
return T !== "translate" || !P.resolvedMessage;
|
|
5539
5539
|
}
|
|
5540
|
-
const j = (T,
|
|
5540
|
+
const j = (T, P, X, se, Qe, Je) => {
|
|
5541
5541
|
B();
|
|
5542
5542
|
let Oe;
|
|
5543
5543
|
try {
|
|
@@ -5547,8 +5547,8 @@ function au(e = {}) {
|
|
|
5547
5547
|
}
|
|
5548
5548
|
if (X !== "translate exists" && // for not `te` (e.g `t`)
|
|
5549
5549
|
de(Oe) && Oe === En || X === "translate exists" && !Oe) {
|
|
5550
|
-
const [ze, Wo] =
|
|
5551
|
-
if (process.env.NODE_ENV !== "production" && t && F(ze) && x(X, Wo) && (p && (gn(_, ze) ||
|
|
5550
|
+
const [ze, Wo] = P();
|
|
5551
|
+
if (process.env.NODE_ENV !== "production" && t && F(ze) && x(X, Wo) && (p && (gn(_, ze) || Do(E, ze)) && Fe(Zt(Me.FALLBACK_TO_ROOT, {
|
|
5552
5552
|
key: ze,
|
|
5553
5553
|
type: X
|
|
5554
5554
|
})), process.env.NODE_ENV !== "production")) {
|
|
@@ -5560,124 +5560,124 @@ function au(e = {}) {
|
|
|
5560
5560
|
groupId: `${X}:${ze}`
|
|
5561
5561
|
});
|
|
5562
5562
|
}
|
|
5563
|
-
return t && p ? se(t) :
|
|
5563
|
+
return t && p ? se(t) : Qe(ze);
|
|
5564
5564
|
} else {
|
|
5565
|
-
if (
|
|
5565
|
+
if (Je(Oe))
|
|
5566
5566
|
return Oe;
|
|
5567
5567
|
throw vt(me.UNEXPECTED_RETURN_TYPE);
|
|
5568
5568
|
}
|
|
5569
5569
|
};
|
|
5570
5570
|
function Y(...T) {
|
|
5571
|
-
return j((
|
|
5571
|
+
return j((P) => Reflect.apply(Ss, null, [P, ...T]), () => nr(...T), "translate", (P) => Reflect.apply(P.t, P, [...T]), (P) => P, (P) => F(P));
|
|
5572
5572
|
}
|
|
5573
5573
|
function G(...T) {
|
|
5574
|
-
const [
|
|
5575
|
-
if (se && !
|
|
5574
|
+
const [P, X, se] = T;
|
|
5575
|
+
if (se && !Q(se))
|
|
5576
5576
|
throw vt(me.INVALID_ARGUMENT);
|
|
5577
|
-
return Y(
|
|
5577
|
+
return Y(P, X, pe({ resolvedMessage: !0 }, se || {}));
|
|
5578
5578
|
}
|
|
5579
5579
|
function ee(...T) {
|
|
5580
|
-
return j((
|
|
5580
|
+
return j((P) => Reflect.apply(gs, null, [P, ...T]), () => er(...T), "datetime format", (P) => Reflect.apply(P.d, P, [...T]), () => pt, (P) => F(P) || ae(P));
|
|
5581
5581
|
}
|
|
5582
5582
|
function te(...T) {
|
|
5583
|
-
return j((
|
|
5583
|
+
return j((P) => Reflect.apply(bs, null, [P, ...T]), () => tr(...T), "number format", (P) => Reflect.apply(P.n, P, [...T]), () => pt, (P) => F(P) || ae(P));
|
|
5584
5584
|
}
|
|
5585
5585
|
function le(T) {
|
|
5586
|
-
return T.map((
|
|
5586
|
+
return T.map((P) => F(P) || de(P) || ie(P) ? Ts(String(P)) : P);
|
|
5587
5587
|
}
|
|
5588
5588
|
const Le = {
|
|
5589
5589
|
normalize: le,
|
|
5590
5590
|
interpolate: (T) => T,
|
|
5591
5591
|
type: "vnode"
|
|
5592
5592
|
};
|
|
5593
|
-
function
|
|
5594
|
-
return j((
|
|
5593
|
+
function Pe(...T) {
|
|
5594
|
+
return j((P) => {
|
|
5595
5595
|
let X;
|
|
5596
|
-
const se =
|
|
5596
|
+
const se = P;
|
|
5597
5597
|
try {
|
|
5598
5598
|
se.processor = Le, X = Reflect.apply(Ss, null, [se, ...T]);
|
|
5599
5599
|
} finally {
|
|
5600
5600
|
se.processor = null;
|
|
5601
5601
|
}
|
|
5602
5602
|
return X;
|
|
5603
|
-
}, () => nr(...T), "translate", (
|
|
5603
|
+
}, () => nr(...T), "translate", (P) => P[rr](...T), (P) => [Ts(P)], (P) => ae(P));
|
|
5604
5604
|
}
|
|
5605
5605
|
function Re(...T) {
|
|
5606
|
-
return j((
|
|
5606
|
+
return j((P) => Reflect.apply(bs, null, [P, ...T]), () => tr(...T), "number format", (P) => P[or](...T), vs, (P) => F(P) || ae(P));
|
|
5607
5607
|
}
|
|
5608
5608
|
function ue(...T) {
|
|
5609
|
-
return j((
|
|
5609
|
+
return j((P) => Reflect.apply(gs, null, [P, ...T]), () => er(...T), "datetime format", (P) => P[sr](...T), vs, (P) => F(P) || ae(P));
|
|
5610
5610
|
}
|
|
5611
5611
|
function Ne(T) {
|
|
5612
|
-
|
|
5612
|
+
D = T, g.pluralRules = D;
|
|
5613
5613
|
}
|
|
5614
|
-
function $e(T,
|
|
5614
|
+
function $e(T, P) {
|
|
5615
5615
|
return j(() => {
|
|
5616
5616
|
if (!T)
|
|
5617
5617
|
return !1;
|
|
5618
|
-
const X = F(
|
|
5619
|
-
for (let
|
|
5620
|
-
const
|
|
5621
|
-
let Oe = g.messageResolver(
|
|
5622
|
-
if (Oe === null && (Oe =
|
|
5618
|
+
const X = F(P) ? P : a.value, se = F(P) ? [X] : Zn(g, c.value, X);
|
|
5619
|
+
for (let Qe = 0; Qe < se.length; Qe++) {
|
|
5620
|
+
const Je = Xe(se[Qe]);
|
|
5621
|
+
let Oe = g.messageResolver(Je, T);
|
|
5622
|
+
if (Oe === null && (Oe = Je[T]), Ce(Oe) || Ae(Oe) || F(Oe))
|
|
5623
5623
|
return !0;
|
|
5624
5624
|
}
|
|
5625
5625
|
return !1;
|
|
5626
|
-
}, () => [T], "translate exists", (X) => Reflect.apply(X.te, X, [T,
|
|
5626
|
+
}, () => [T], "translate exists", (X) => Reflect.apply(X.te, X, [T, P]), ou, (X) => ie(X));
|
|
5627
5627
|
}
|
|
5628
|
-
function
|
|
5629
|
-
let
|
|
5628
|
+
function De(T) {
|
|
5629
|
+
let P = null;
|
|
5630
5630
|
const X = Zn(g, c.value, a.value);
|
|
5631
5631
|
for (let se = 0; se < X.length; se++) {
|
|
5632
|
-
const
|
|
5633
|
-
if (
|
|
5634
|
-
|
|
5632
|
+
const Qe = l.value[X[se]] || {}, Je = g.messageResolver(Qe, T);
|
|
5633
|
+
if (Je != null) {
|
|
5634
|
+
P = Je;
|
|
5635
5635
|
break;
|
|
5636
5636
|
}
|
|
5637
5637
|
}
|
|
5638
|
-
return
|
|
5638
|
+
return P;
|
|
5639
5639
|
}
|
|
5640
5640
|
function Et(T) {
|
|
5641
|
-
const
|
|
5642
|
-
return
|
|
5641
|
+
const P = De(T);
|
|
5642
|
+
return P ?? (t ? t.tm(T) || {} : {});
|
|
5643
5643
|
}
|
|
5644
5644
|
function Xe(T) {
|
|
5645
5645
|
return l.value[T] || {};
|
|
5646
5646
|
}
|
|
5647
|
-
function gt(T,
|
|
5647
|
+
function gt(T, P) {
|
|
5648
5648
|
if (s) {
|
|
5649
|
-
const X = { [T]:
|
|
5649
|
+
const X = { [T]: P };
|
|
5650
5650
|
for (const se in X)
|
|
5651
5651
|
ve(X, se) && Lt(X[se]);
|
|
5652
|
-
|
|
5652
|
+
P = X[T];
|
|
5653
5653
|
}
|
|
5654
|
-
l.value[T] =
|
|
5654
|
+
l.value[T] = P, g.messages = l.value;
|
|
5655
5655
|
}
|
|
5656
|
-
function bn(T,
|
|
5656
|
+
function bn(T, P) {
|
|
5657
5657
|
l.value[T] = l.value[T] || {};
|
|
5658
|
-
const X = { [T]:
|
|
5658
|
+
const X = { [T]: P };
|
|
5659
5659
|
if (s)
|
|
5660
5660
|
for (const se in X)
|
|
5661
5661
|
ve(X, se) && Lt(X[se]);
|
|
5662
|
-
|
|
5662
|
+
P = X[T], Ht(P, l.value[T]), g.messages = l.value;
|
|
5663
5663
|
}
|
|
5664
5664
|
function u(T) {
|
|
5665
5665
|
return f.value[T] || {};
|
|
5666
5666
|
}
|
|
5667
|
-
function d(T,
|
|
5668
|
-
f.value[T] =
|
|
5667
|
+
function d(T, P) {
|
|
5668
|
+
f.value[T] = P, g.datetimeFormats = f.value, ys(g, T, P);
|
|
5669
5669
|
}
|
|
5670
|
-
function L(T,
|
|
5671
|
-
f.value[T] = pe(f.value[T] || {},
|
|
5670
|
+
function L(T, P) {
|
|
5671
|
+
f.value[T] = pe(f.value[T] || {}, P), g.datetimeFormats = f.value, ys(g, T, P);
|
|
5672
5672
|
}
|
|
5673
5673
|
function M(T) {
|
|
5674
5674
|
return m.value[T] || {};
|
|
5675
5675
|
}
|
|
5676
|
-
function ne(T,
|
|
5677
|
-
m.value[T] =
|
|
5676
|
+
function ne(T, P) {
|
|
5677
|
+
m.value[T] = P, g.numberFormats = m.value, Ns(g, T, P);
|
|
5678
5678
|
}
|
|
5679
|
-
function oe(T,
|
|
5680
|
-
m.value[T] = pe(m.value[T] || {},
|
|
5679
|
+
function oe(T, P) {
|
|
5680
|
+
m.value[T] = pe(m.value[T] || {}, P), g.numberFormats = m.value, Ns(g, T, P);
|
|
5681
5681
|
}
|
|
5682
5682
|
Ls++, t && He && (Mn(t.locale, (T) => {
|
|
5683
5683
|
i && (a.value = T, g.locale = T, bt(g, a.value, c.value));
|
|
@@ -5702,7 +5702,7 @@ function au(e = {}) {
|
|
|
5702
5702
|
return C;
|
|
5703
5703
|
},
|
|
5704
5704
|
get pluralRules() {
|
|
5705
|
-
return
|
|
5705
|
+
return D || {};
|
|
5706
5706
|
},
|
|
5707
5707
|
get isGlobal() {
|
|
5708
5708
|
return r;
|
|
@@ -5753,7 +5753,7 @@ function au(e = {}) {
|
|
|
5753
5753
|
setMissingHandler: w,
|
|
5754
5754
|
[nu]: Ne
|
|
5755
5755
|
};
|
|
5756
|
-
return K.datetimeFormats = z, K.numberFormats = U, K.rt = G, K.te = $e, K.tm = Et, K.d = ee, K.n = te, K.getDateTimeFormat = u, K.setDateTimeFormat = d, K.mergeDateTimeFormat = L, K.getNumberFormat = M, K.setNumberFormat = ne, K.mergeNumberFormat = oe, K[xo] = n, K[rr] =
|
|
5756
|
+
return K.datetimeFormats = z, K.numberFormats = U, K.rt = G, K.te = $e, K.tm = Et, K.d = ee, K.n = te, K.getDateTimeFormat = u, K.setDateTimeFormat = d, K.mergeDateTimeFormat = L, K.getNumberFormat = M, K.setNumberFormat = ne, K.mergeNumberFormat = oe, K[xo] = n, K[rr] = Pe, K[sr] = ue, K[or] = Re, process.env.NODE_ENV !== "production" && (K[ir] = (T) => {
|
|
5757
5757
|
g.__v_emitter = T;
|
|
5758
5758
|
}, K[ar] = () => {
|
|
5759
5759
|
g.__v_emitter = void 0;
|
|
@@ -5810,14 +5810,14 @@ function Ho(e, t, n, r) {
|
|
|
5810
5810
|
return () => {
|
|
5811
5811
|
const i = { part: !0 };
|
|
5812
5812
|
let a = Z();
|
|
5813
|
-
e.locale && (i.locale = e.locale), F(e.format) ? i.key = e.format :
|
|
5813
|
+
e.locale && (i.locale = e.locale), F(e.format) ? i.key = e.format : Q(e.format) && (F(e.format.key) && (i.key = e.format.key), a = Object.keys(e.format).reduce((E, _) => n.includes(_) ? pe(Z(), E, { [_]: e.format[_] }) : E, Z()));
|
|
5814
5814
|
const c = r(e.value, i, a);
|
|
5815
5815
|
let l = [i.key];
|
|
5816
5816
|
ae(c) ? l = c.map((E, _) => {
|
|
5817
5817
|
const p = s[E.type], b = p ? p({ [E.type]: E.value, index: _, parts: c }) : [E.value];
|
|
5818
5818
|
return lu(b) && (b[0].key = `${E.type}-${_}`), b;
|
|
5819
5819
|
}) : F(c) && (l = [c]);
|
|
5820
|
-
const f = pe(Z(), o), m = F(e.tag) ||
|
|
5820
|
+
const f = pe(Z(), o), m = F(e.tag) || Q(e.tag) ? e.tag : Bo();
|
|
5821
5821
|
return Fs(m, f, l);
|
|
5822
5822
|
};
|
|
5823
5823
|
}
|
|
@@ -5920,7 +5920,7 @@ if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
|
5920
5920
|
}
|
|
5921
5921
|
process.env.NODE_ENV;
|
|
5922
5922
|
let en = null;
|
|
5923
|
-
function
|
|
5923
|
+
function Vf(e) {
|
|
5924
5924
|
if (en !== null) {
|
|
5925
5925
|
console.warn(
|
|
5926
5926
|
"[LinID CoreLib] I18n has already been initialized. Re-initialization is ignored."
|
|
@@ -6002,7 +6002,7 @@ function Nu(e) {
|
|
|
6002
6002
|
return new RegExp(p).test(_) ? !0 : t("validation.pattern", { pattern: p.toString() });
|
|
6003
6003
|
}
|
|
6004
6004
|
function f(_, p) {
|
|
6005
|
-
return _ == null ? !0 : (typeof _ == "object" ? p.some((N) =>
|
|
6005
|
+
return _ == null ? !0 : (typeof _ == "object" ? p.some((N) => Qn(_, N)) : p.some((N) => N != null && String(N) === String(_))) ? t("validation.unique") : !0;
|
|
6006
6006
|
}
|
|
6007
6007
|
function m(_, p) {
|
|
6008
6008
|
return _ == null || _ === "" || Is(_, p).isValid() ? !0 : t("validation.invalidDate", {
|
|
@@ -6026,7 +6026,7 @@ function Nu(e) {
|
|
|
6026
6026
|
dateNotInPast: E
|
|
6027
6027
|
};
|
|
6028
6028
|
}
|
|
6029
|
-
function
|
|
6029
|
+
function jf() {
|
|
6030
6030
|
function e(t) {
|
|
6031
6031
|
qs.next({
|
|
6032
6032
|
key: "notify",
|
|
@@ -6035,7 +6035,7 @@ function Vf() {
|
|
|
6035
6035
|
}
|
|
6036
6036
|
return { Notify: e };
|
|
6037
6037
|
}
|
|
6038
|
-
function
|
|
6038
|
+
function Bf() {
|
|
6039
6039
|
function e(n) {
|
|
6040
6040
|
return {
|
|
6041
6041
|
page: (n.page || 1) - 1,
|
|
@@ -6056,7 +6056,7 @@ function jf() {
|
|
|
6056
6056
|
toQuasarPagination: t
|
|
6057
6057
|
};
|
|
6058
6058
|
}
|
|
6059
|
-
const
|
|
6059
|
+
const Ps = "YYYY/MM/DD";
|
|
6060
6060
|
function Ou(e) {
|
|
6061
6061
|
const {
|
|
6062
6062
|
validateFromApi: t,
|
|
@@ -6081,23 +6081,23 @@ function Ou(e) {
|
|
|
6081
6081
|
maxLength: (E) => (_) => o(_, E),
|
|
6082
6082
|
pattern: (E) => (_) => c(_, E),
|
|
6083
6083
|
unique: (E) => (_) => l(_, E),
|
|
6084
|
-
validDate: (E) => (_) => f(_, E ||
|
|
6085
|
-
dateNotInPast: (E) => (_) => m(_, E ||
|
|
6084
|
+
validDate: (E) => (_) => f(_, E || Ps),
|
|
6085
|
+
dateNotInPast: (E) => (_) => m(_, E || Ps)
|
|
6086
6086
|
};
|
|
6087
6087
|
}
|
|
6088
|
-
function
|
|
6089
|
-
const { required:
|
|
6090
|
-
return n.forEach((
|
|
6091
|
-
if (
|
|
6092
|
-
|
|
6093
|
-
else if (
|
|
6094
|
-
const
|
|
6095
|
-
|
|
6088
|
+
function Hf(e, t, n, r) {
|
|
6089
|
+
const { required: s, email: o, validateFromApi: i, ...a } = Ou(r), c = t.required ? [s] : [];
|
|
6090
|
+
return n.forEach((l) => {
|
|
6091
|
+
if (l === "email")
|
|
6092
|
+
c.push(o);
|
|
6093
|
+
else if (a[l] && t.inputSettings?.[l] != null) {
|
|
6094
|
+
const f = t.inputSettings[l];
|
|
6095
|
+
c.push(a[l](f));
|
|
6096
6096
|
}
|
|
6097
|
-
}), t.hasValidations &&
|
|
6097
|
+
}), t.hasValidations && c.push(i(e, t.name)), c;
|
|
6098
6098
|
}
|
|
6099
6099
|
let tn = null;
|
|
6100
|
-
function
|
|
6100
|
+
function qf(e) {
|
|
6101
6101
|
if (tn !== null) {
|
|
6102
6102
|
console.warn(
|
|
6103
6103
|
"[LinID CoreLib] UI Design has already been initialized. Re-initialization is ignored."
|
|
@@ -6178,7 +6178,7 @@ const Tu = [
|
|
|
6178
6178
|
"textColor",
|
|
6179
6179
|
"square",
|
|
6180
6180
|
"rounded"
|
|
6181
|
-
],
|
|
6181
|
+
], Pu = [
|
|
6182
6182
|
"floating",
|
|
6183
6183
|
"multiLine",
|
|
6184
6184
|
"align",
|
|
@@ -6187,7 +6187,7 @@ const Tu = [
|
|
|
6187
6187
|
"transparent",
|
|
6188
6188
|
"outline",
|
|
6189
6189
|
"rounded"
|
|
6190
|
-
],
|
|
6190
|
+
], Du = [
|
|
6191
6191
|
"virtualScrollItemSize",
|
|
6192
6192
|
"virtualScrollStickySizeStart",
|
|
6193
6193
|
"virtualScrollStickySizeEnd",
|
|
@@ -6460,7 +6460,7 @@ const Tu = [
|
|
|
6460
6460
|
"noErrorFocus",
|
|
6461
6461
|
"noResetFocus",
|
|
6462
6462
|
"greedy"
|
|
6463
|
-
], Xu = ["lines", "overline", "caption", "header"],
|
|
6463
|
+
], Xu = ["lines", "overline", "caption", "header"], Qu = ["inlineActions", "dense", "rounded", "dark"], Ju = [
|
|
6464
6464
|
"contextMenu",
|
|
6465
6465
|
"touchPosition",
|
|
6466
6466
|
"persistent",
|
|
@@ -6496,10 +6496,21 @@ const Tu = [
|
|
|
6496
6496
|
"dense",
|
|
6497
6497
|
"dark",
|
|
6498
6498
|
"duration"
|
|
6499
|
-
],
|
|
6499
|
+
], Zu = [
|
|
6500
|
+
"horizontal",
|
|
6501
|
+
"limits",
|
|
6502
|
+
"reverse",
|
|
6503
|
+
"unit",
|
|
6504
|
+
"disable",
|
|
6505
|
+
"beforeClass",
|
|
6506
|
+
"afterClass",
|
|
6507
|
+
"separatorClass",
|
|
6508
|
+
"separatorStyle",
|
|
6509
|
+
"dark"
|
|
6510
|
+
], Ds = {
|
|
6500
6511
|
"q-avatar": Iu,
|
|
6501
|
-
"q-badge":
|
|
6502
|
-
"q-banner":
|
|
6512
|
+
"q-badge": Pu,
|
|
6513
|
+
"q-banner": Qu,
|
|
6503
6514
|
"q-btn": Tu,
|
|
6504
6515
|
"q-btn-dropdown": qu,
|
|
6505
6516
|
"q-card": wu,
|
|
@@ -6516,16 +6527,17 @@ const Tu = [
|
|
|
6516
6527
|
"q-item-label": Xu,
|
|
6517
6528
|
"q-item-section": Gu,
|
|
6518
6529
|
"q-list": Wu,
|
|
6519
|
-
"q-menu":
|
|
6530
|
+
"q-menu": Ju,
|
|
6520
6531
|
"q-route-tab": vu,
|
|
6521
6532
|
"q-select": ju,
|
|
6522
6533
|
"q-spinner": Hu,
|
|
6523
|
-
"q-table":
|
|
6534
|
+
"q-table": Du,
|
|
6524
6535
|
"q-tabs": Au,
|
|
6525
6536
|
"q-toggle": Fu,
|
|
6526
6537
|
"q-toolbar": Ru,
|
|
6527
6538
|
"q-toolbar-title": Cu,
|
|
6528
|
-
"q-tree": zu
|
|
6539
|
+
"q-tree": zu,
|
|
6540
|
+
"q-splitter": Zu
|
|
6529
6541
|
};
|
|
6530
6542
|
function ws(e, t) {
|
|
6531
6543
|
return t.split(".").reduce((n, r) => {
|
|
@@ -6533,7 +6545,7 @@ function ws(e, t) {
|
|
|
6533
6545
|
return n[r];
|
|
6534
6546
|
}, e);
|
|
6535
6547
|
}
|
|
6536
|
-
function
|
|
6548
|
+
function ef(e, t, n) {
|
|
6537
6549
|
let r = ws(e, `${t}.${n}`);
|
|
6538
6550
|
if (r === void 0 && (r = ws(e, `default.${n}`)), typeof r == "object")
|
|
6539
6551
|
throw new Error(
|
|
@@ -6541,26 +6553,26 @@ function Zu(e, t, n) {
|
|
|
6541
6553
|
);
|
|
6542
6554
|
return r;
|
|
6543
6555
|
}
|
|
6544
|
-
function
|
|
6545
|
-
if (!(e in
|
|
6556
|
+
function tf(e) {
|
|
6557
|
+
if (!(e in Ds))
|
|
6546
6558
|
throw new Error(
|
|
6547
6559
|
`[UiDesign] The component '${e}' is not supported for UI design retrieval.`
|
|
6548
6560
|
);
|
|
6549
|
-
return
|
|
6561
|
+
return Ds[e];
|
|
6550
6562
|
}
|
|
6551
|
-
function
|
|
6563
|
+
function Wf() {
|
|
6552
6564
|
const e = Ye(() => Su());
|
|
6553
6565
|
function t(n, r, s) {
|
|
6554
|
-
const o =
|
|
6566
|
+
const o = tf(r), i = {};
|
|
6555
6567
|
for (const a of o) {
|
|
6556
|
-
const c = s?.[a] ??
|
|
6568
|
+
const c = s?.[a] ?? ef(e.value, n, `${r}.${String(a)}`);
|
|
6557
6569
|
c !== void 0 && (i[a] = c);
|
|
6558
6570
|
}
|
|
6559
6571
|
return i;
|
|
6560
6572
|
}
|
|
6561
6573
|
return { ui: t };
|
|
6562
6574
|
}
|
|
6563
|
-
function
|
|
6575
|
+
function Yf() {
|
|
6564
6576
|
function e(t) {
|
|
6565
6577
|
return t.map((n) => ({
|
|
6566
6578
|
type: n.type,
|
|
@@ -6573,20 +6585,20 @@ function Wf() {
|
|
|
6573
6585
|
toQTreeNodes: e
|
|
6574
6586
|
};
|
|
6575
6587
|
}
|
|
6576
|
-
async function
|
|
6588
|
+
async function nf() {
|
|
6577
6589
|
return (await qe().get("/metadata/entities")).data;
|
|
6578
6590
|
}
|
|
6579
|
-
async function
|
|
6591
|
+
async function Gf(e) {
|
|
6580
6592
|
return (await qe().get(
|
|
6581
6593
|
`/metadata/entities/${e}`
|
|
6582
6594
|
)).data;
|
|
6583
6595
|
}
|
|
6584
|
-
async function
|
|
6596
|
+
async function rf() {
|
|
6585
6597
|
return (await qe().get(
|
|
6586
6598
|
"/metadata/routes"
|
|
6587
6599
|
)).data;
|
|
6588
6600
|
}
|
|
6589
|
-
const
|
|
6601
|
+
const Kf = () => sf(an()), sf = /* @__PURE__ */ on("LinidConfigurationStore", {
|
|
6590
6602
|
state: () => ({
|
|
6591
6603
|
entities: [],
|
|
6592
6604
|
apiEndpoints: [],
|
|
@@ -6617,8 +6629,8 @@ const Gf = () => rf(an()), rf = /* @__PURE__ */ on("LinidConfigurationStore", {
|
|
|
6617
6629
|
this.loading = !0, this.error = null;
|
|
6618
6630
|
try {
|
|
6619
6631
|
const [e, t] = await Promise.all([
|
|
6620
|
-
|
|
6621
|
-
|
|
6632
|
+
nf(),
|
|
6633
|
+
rf()
|
|
6622
6634
|
]);
|
|
6623
6635
|
this.entities = e, this.apiEndpoints = t;
|
|
6624
6636
|
} catch (e) {
|
|
@@ -6628,7 +6640,7 @@ const Gf = () => rf(an()), rf = /* @__PURE__ */ on("LinidConfigurationStore", {
|
|
|
6628
6640
|
}
|
|
6629
6641
|
}
|
|
6630
6642
|
}
|
|
6631
|
-
}),
|
|
6643
|
+
}), Xf = () => of(an()), of = /* @__PURE__ */ on("LinidUiStore", {
|
|
6632
6644
|
state: () => ({
|
|
6633
6645
|
mainNavigationItems: []
|
|
6634
6646
|
}),
|
|
@@ -6641,7 +6653,7 @@ const Gf = () => rf(an()), rf = /* @__PURE__ */ on("LinidConfigurationStore", {
|
|
|
6641
6653
|
this.mainNavigationItems.push(...e);
|
|
6642
6654
|
}
|
|
6643
6655
|
}
|
|
6644
|
-
}),
|
|
6656
|
+
}), Qf = () => af(an()), af = /* @__PURE__ */ on("LinidUserStore", {
|
|
6645
6657
|
/**
|
|
6646
6658
|
* State properties of the user store.
|
|
6647
6659
|
* @returns The initial state of the user store.
|
|
@@ -6678,15 +6690,15 @@ function Jf(e) {
|
|
|
6678
6690
|
}
|
|
6679
6691
|
nn = e;
|
|
6680
6692
|
}
|
|
6681
|
-
function
|
|
6693
|
+
function zf() {
|
|
6682
6694
|
if (nn === null)
|
|
6683
6695
|
throw new Error(
|
|
6684
6696
|
"[LinID CoreLib] Nunjucks environment is not initialized. Call setNunjucksEnv() first."
|
|
6685
6697
|
);
|
|
6686
6698
|
return nn;
|
|
6687
6699
|
}
|
|
6688
|
-
var
|
|
6689
|
-
class
|
|
6700
|
+
var cf = /* @__PURE__ */ ((e) => (e.SETUP = "setup", e.CONFIGURE = "configure", e.INITIALIZE = "initialize", e.READY = "ready", e.POST_INIT = "postInit", e))(cf || {});
|
|
6701
|
+
class Zf {
|
|
6690
6702
|
/**
|
|
6691
6703
|
* Unique identifier for the module.
|
|
6692
6704
|
*
|
|
@@ -6790,50 +6802,50 @@ class zf {
|
|
|
6790
6802
|
}
|
|
6791
6803
|
}
|
|
6792
6804
|
export {
|
|
6793
|
-
|
|
6794
|
-
|
|
6795
|
-
|
|
6805
|
+
Zf as BasicRemoteModule,
|
|
6806
|
+
df as LinidZoneRenderer,
|
|
6807
|
+
cf as ModuleLifecyclePhase,
|
|
6796
6808
|
ho as deepEqual,
|
|
6797
|
-
|
|
6798
|
-
|
|
6799
|
-
|
|
6800
|
-
|
|
6801
|
-
|
|
6802
|
-
|
|
6803
|
-
|
|
6804
|
-
|
|
6809
|
+
Qn as deepEqualUnordered,
|
|
6810
|
+
$f as deleteEntityById,
|
|
6811
|
+
xf as fromDot,
|
|
6812
|
+
rf as getApiEndpointsConfiguration,
|
|
6813
|
+
Ff as getEntities,
|
|
6814
|
+
nf as getEntitiesConfiguration,
|
|
6815
|
+
Uf as getEntityById,
|
|
6816
|
+
Gf as getEntityConfiguration,
|
|
6805
6817
|
qe as getHttpClient,
|
|
6806
6818
|
Eu as getI18nInstance,
|
|
6807
6819
|
ci as getModuleFederation,
|
|
6808
6820
|
ht as getModuleHostConfiguration,
|
|
6809
|
-
|
|
6821
|
+
zf as getNunjucksEnv,
|
|
6810
6822
|
an as getPiniaStore,
|
|
6811
6823
|
Su as getUiDesign,
|
|
6812
6824
|
ft as isObject,
|
|
6813
6825
|
li as loadAsyncComponent,
|
|
6814
6826
|
uc as merge,
|
|
6815
|
-
|
|
6827
|
+
wf as registerModuleHostConfiguration,
|
|
6816
6828
|
fc as renameKeys,
|
|
6817
|
-
|
|
6829
|
+
kf as saveEntity,
|
|
6818
6830
|
Df as setHttpClient,
|
|
6819
|
-
|
|
6820
|
-
|
|
6831
|
+
Vf as setI18nInstance,
|
|
6832
|
+
uf as setModuleFederation,
|
|
6821
6833
|
Jf as setNunjucksEnv,
|
|
6822
|
-
|
|
6823
|
-
|
|
6834
|
+
ff as setPiniaStore,
|
|
6835
|
+
qf as setUiDesign,
|
|
6824
6836
|
qs as uiEventSubject,
|
|
6825
|
-
|
|
6826
|
-
|
|
6837
|
+
Mf as updateEntity,
|
|
6838
|
+
pf as useDialog,
|
|
6827
6839
|
Nu as useFieldValidation,
|
|
6828
|
-
|
|
6829
|
-
|
|
6830
|
-
|
|
6840
|
+
Kf as useLinidConfigurationStore,
|
|
6841
|
+
Xf as useLinidUiStore,
|
|
6842
|
+
Qf as useLinidUserStore,
|
|
6831
6843
|
pi as useLinidZoneStore,
|
|
6832
|
-
|
|
6833
|
-
|
|
6844
|
+
jf as useNotify,
|
|
6845
|
+
Bf as usePagination,
|
|
6834
6846
|
Ou as useQuasarFieldValidation,
|
|
6835
|
-
|
|
6847
|
+
Hf as useQuasarRules,
|
|
6836
6848
|
gu as useScopedI18n,
|
|
6837
|
-
|
|
6838
|
-
|
|
6849
|
+
Yf as useTree,
|
|
6850
|
+
Wf as useUiDesign
|
|
6839
6851
|
};
|