@skyfox2000/webui 1.5.11 → 1.5.13
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/lib/assets/modules/{baseLayout-CRSIlLKU.js → baseLayout-RbSDyZ-4.js} +3 -3
- package/lib/assets/modules/{file-upload-CrA5-gqr.js → file-upload-CBaDznKX.js} +1 -1
- package/lib/assets/modules/{index-Doi0zREW.js → index-BfdvI5gq.js} +2 -2
- package/lib/assets/modules/{index-CA_H2eOk.js → index-D6F_78jm.js} +1 -1
- package/lib/assets/modules/{index-CW7dVG4Z.js → index-DAtpSCmI.js} +2 -2
- package/lib/assets/modules/{menuTabs-DRoP9rnS.js → menuTabs-B2-8ewds.js} +3 -3
- package/lib/assets/modules/{toolIcon-CghIoh0a.js → toolIcon-BDDaZK7c.js} +1 -1
- package/lib/assets/modules/{upload-template-D6r6X3vP.js → upload-template-CfrQxGl8.js} +891 -876
- package/lib/assets/modules/{uploadList-CIGuBEpz.js → uploadList-CaL2Nk6S.js} +4 -4
- package/lib/es/AceEditor/index.js +3 -3
- package/lib/es/BasicLayout/index.js +2 -2
- package/lib/es/Error403/index.js +1 -1
- package/lib/es/Error404/index.js +1 -1
- package/lib/es/ExcelForm/index.js +4 -4
- package/lib/es/MenuLayout/index.js +2 -2
- package/lib/es/TemplateFile/index.js +4 -4
- package/lib/es/UploadForm/index.js +4 -4
- package/lib/locales/default.d.ts +123 -123
- package/lib/webui.es.js +13 -13
- package/package.json +1 -1
- package/src/components/layout/header/index.vue +1 -1
- package/src/locales/default.ts +126 -126
- package/src/locales/en-US.json +8 -2
- package/src/locales/index.ts +60 -40
|
@@ -2,15 +2,15 @@ var dr = Object.defineProperty;
|
|
|
2
2
|
var mr = (e, t, a) => t in e ? dr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
|
|
3
3
|
var ne = (e, t, a) => mr(e, typeof t != "symbol" ? t + "" : t, a);
|
|
4
4
|
import * as Ra from "vue";
|
|
5
|
-
import { effectScope as pr, ref as R, shallowRef as ke, computed as et, watch as
|
|
6
|
-
import { Switch as br, AutoComplete as
|
|
5
|
+
import { effectScope as pr, ref as R, shallowRef as ke, computed as et, watch as B, isRef as _r, defineComponent as De, h as ye, Fragment as Ke, inject as at, onMounted as Rt, onUnmounted as ut, createVNode as Ye, Text as gr, nextTick as hr, provide as wa, toRaw as fs, reactive as Er, createBlock as zt, createCommentVNode as rt, openBlock as le, unref as X, mergeProps as wt, useAttrs as Zt, onActivated as ea, createElementBlock as ge, withCtx as Me, createTextVNode as ta, toDisplayString as Be, renderList as an, normalizeClass as ds, createElementVNode as vr } from "vue";
|
|
6
|
+
import { Switch as br, AutoComplete as yr, Input as Ir, CheckboxGroup as Nr, Checkbox as Sr, RadioGroup as Tr, Radio as Lr, Select as Or, SelectOption as Ar } from "ant-design-vue";
|
|
7
7
|
import { createPinia as Pr, defineStore as kt } from "pinia";
|
|
8
8
|
import Rr from "pinia-plugin-persistedstate";
|
|
9
|
-
import { EnvConfig as Jt, AppAction as
|
|
9
|
+
import { EnvConfig as Jt, AppAction as Sn, AppSource as Tn, isMicroApp as Ce, isBaseMicroApp as wr, combineParams as Dt } from "@skyfox2000/microbase";
|
|
10
10
|
import { httpPost as Xe, ResStatus as ie, setToken as Ht, fieldMapping as kr, parseFieldTemplate as Qt, API_HOST as ka, SERVER_HOST as Dr } from "@skyfox2000/fapi";
|
|
11
11
|
import se from "vue-m-message";
|
|
12
12
|
import { createRouter as Cr, createWebHashHistory as Fr } from "vue-router";
|
|
13
|
-
import
|
|
13
|
+
import nn from "async-validator";
|
|
14
14
|
import "dayjs";
|
|
15
15
|
import "vue-draggable-next";
|
|
16
16
|
const Mr = Pr();
|
|
@@ -24,18 +24,18 @@ var Re = /* @__PURE__ */ ((e) => (e.PageControl = "Page.PageControl", e.EditorCo
|
|
|
24
24
|
function Le(e, t) {
|
|
25
25
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
26
26
|
}
|
|
27
|
-
const
|
|
28
|
-
function
|
|
29
|
-
|
|
27
|
+
const Ln = {};
|
|
28
|
+
function sn(e) {
|
|
29
|
+
Ln[e] || (Ln[e] = !0, Le(e));
|
|
30
30
|
}
|
|
31
31
|
const Ne = typeof window < "u";
|
|
32
|
-
let
|
|
32
|
+
let fe, je;
|
|
33
33
|
if (process.env.NODE_ENV !== "production") {
|
|
34
34
|
const e = Ne && window.performance;
|
|
35
35
|
e && e.mark && e.measure && e.clearMarks && // @ts-ignore browser compat
|
|
36
|
-
e.clearMeasures && (
|
|
36
|
+
e.clearMeasures && (fe = (t) => {
|
|
37
37
|
e.mark(t);
|
|
38
|
-
},
|
|
38
|
+
}, je = (t, a, n) => {
|
|
39
39
|
e.measure(t, a, n), e.clearMarks(a), e.clearMarks(n);
|
|
40
40
|
});
|
|
41
41
|
}
|
|
@@ -43,17 +43,17 @@ const Ur = /\{([0-9a-zA-Z]+)\}/g;
|
|
|
43
43
|
function aa(e, ...t) {
|
|
44
44
|
return t.length === 1 && U(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(Ur, (a, n) => t.hasOwnProperty(n) ? t[n] : "");
|
|
45
45
|
}
|
|
46
|
-
const Oe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), xr = (e, t, a) => Vr({ l: e, k: t, s: a }), Vr = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ee = (e) => typeof e == "number" && isFinite(e), $r = (e) =>
|
|
47
|
-
let
|
|
48
|
-
const We = () =>
|
|
49
|
-
function
|
|
46
|
+
const Oe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), xr = (e, t, a) => Vr({ l: e, k: t, s: a }), Vr = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ee = (e) => typeof e == "number" && isFinite(e), $r = (e) => rn(e) === "[object Date]", ot = (e) => rn(e) === "[object RegExp]", na = (e) => F(e) && Object.keys(e).length === 0, te = Object.assign, Hr = Object.create, W = (e = null) => Hr(e);
|
|
47
|
+
let On;
|
|
48
|
+
const We = () => On || (On = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : W());
|
|
49
|
+
function An(e) {
|
|
50
50
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/\//g, "/").replace(/=/g, "=");
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function Pn(e) {
|
|
53
53
|
return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
|
|
54
54
|
}
|
|
55
55
|
function Wr(e) {
|
|
56
|
-
return e = e.replace(/(\w+)\s*=\s*"([^"]*)"/g, (n, s, r) => `${s}="${
|
|
56
|
+
return e = e.replace(/(\w+)\s*=\s*"([^"]*)"/g, (n, s, r) => `${s}="${Pn(r)}"`), e = e.replace(/(\w+)\s*=\s*'([^']*)'/g, (n, s, r) => `${s}='${Pn(r)}'`), /\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e) && (process.env.NODE_ENV !== "production" && Le("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."), e = e.replace(/(\s+)(on)(\w+\s*=)/gi, "$1on$3")), [
|
|
57
57
|
// In href, src, action, formaction attributes
|
|
58
58
|
/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,
|
|
59
59
|
// In style attributes within url()
|
|
@@ -66,18 +66,18 @@ const Gr = Object.prototype.hasOwnProperty;
|
|
|
66
66
|
function be(e, t) {
|
|
67
67
|
return Gr.call(e, t);
|
|
68
68
|
}
|
|
69
|
-
const J = Array.isArray, G = (e) => typeof e == "function", A = (e) => typeof e == "string", x = (e) => typeof e == "boolean", U = (e) => e !== null && typeof e == "object", Kr = (e) => U(e) && G(e.then) && G(e.catch),
|
|
70
|
-
function
|
|
69
|
+
const J = Array.isArray, G = (e) => typeof e == "function", A = (e) => typeof e == "string", x = (e) => typeof e == "boolean", U = (e) => e !== null && typeof e == "object", Kr = (e) => U(e) && G(e.then) && G(e.catch), ms = Object.prototype.toString, rn = (e) => ms.call(e), F = (e) => rn(e) === "[object Object]", Yr = (e) => e == null ? "" : J(e) || F(e) && e.toString === ms ? JSON.stringify(e, null, 2) : String(e);
|
|
70
|
+
function on(e, t = "") {
|
|
71
71
|
return e.reduce((a, n, s) => s === 0 ? a + n : a + t + n, "");
|
|
72
72
|
}
|
|
73
|
-
const
|
|
74
|
-
function
|
|
73
|
+
const Rn = 2;
|
|
74
|
+
function Br(e, t = 0, a = e.length) {
|
|
75
75
|
const n = e.split(/\r?\n/);
|
|
76
76
|
let s = 0;
|
|
77
77
|
const r = [];
|
|
78
78
|
for (let o = 0; o < n.length; o++)
|
|
79
79
|
if (s += n[o].length + 1, s >= t) {
|
|
80
|
-
for (let l = o -
|
|
80
|
+
for (let l = o - Rn; l <= o + Rn || a > s; l++) {
|
|
81
81
|
if (l < 0 || l >= n.length)
|
|
82
82
|
continue;
|
|
83
83
|
const i = l + 1;
|
|
@@ -99,7 +99,7 @@ function jr(e, t = 0, a = e.length) {
|
|
|
99
99
|
return r.join(`
|
|
100
100
|
`);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function ln() {
|
|
103
103
|
const e = /* @__PURE__ */ new Map();
|
|
104
104
|
return {
|
|
105
105
|
events: e,
|
|
@@ -117,7 +117,7 @@ function un() {
|
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
119
|
const Wt = (e) => !U(e) || J(e);
|
|
120
|
-
function
|
|
120
|
+
function Bt(e, t) {
|
|
121
121
|
if (Wt(e) || Wt(t))
|
|
122
122
|
throw new Error("Invalid value");
|
|
123
123
|
const a = [{ src: e, des: t }];
|
|
@@ -133,10 +133,10 @@ function jt(e, t) {
|
|
|
133
133
|
* (c) 2025 kazuya kawaguchi
|
|
134
134
|
* Released under the MIT License.
|
|
135
135
|
*/
|
|
136
|
-
function
|
|
136
|
+
function jr(e, t, a) {
|
|
137
137
|
return { line: e, column: t, offset: a };
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function Va(e, t, a) {
|
|
140
140
|
return { start: e, end: t };
|
|
141
141
|
}
|
|
142
142
|
const D = {
|
|
@@ -194,11 +194,11 @@ const qr = /<\/?[\w\s="/.':;#-\/]+>/, zr = (e) => qr.test(e), Se = " ", Zr = "\r
|
|
|
194
194
|
function ao(e) {
|
|
195
195
|
const t = e;
|
|
196
196
|
let a = 0, n = 1, s = 1, r = 0;
|
|
197
|
-
const o = (v) => t[v] === Zr && t[v + 1] === re, l = (v) => t[v] === re, i = (v) => t[v] === to, c = (v) => t[v] === eo, m = (v) => o(v) || l(v) || i(v) || c(v), g = () => a, p = () => n,
|
|
197
|
+
const o = (v) => t[v] === Zr && t[v + 1] === re, l = (v) => t[v] === re, i = (v) => t[v] === to, c = (v) => t[v] === eo, m = (v) => o(v) || l(v) || i(v) || c(v), g = () => a, p = () => n, I = () => s, P = () => r, S = (v) => o(v) || i(v) || c(v) ? re : t[v], O = () => S(a), d = () => S(a + r);
|
|
198
198
|
function _() {
|
|
199
199
|
return r = 0, m(a) && (n++, s = 0), o(a) && a++, a++, s++, t[a];
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function y() {
|
|
202
202
|
return o(a + r) && r++, r++, t[a + r];
|
|
203
203
|
}
|
|
204
204
|
function E() {
|
|
@@ -216,21 +216,21 @@ function ao(e) {
|
|
|
216
216
|
return {
|
|
217
217
|
index: g,
|
|
218
218
|
line: p,
|
|
219
|
-
column:
|
|
219
|
+
column: I,
|
|
220
220
|
peekOffset: P,
|
|
221
221
|
charAt: S,
|
|
222
222
|
currentChar: O,
|
|
223
223
|
currentPeek: d,
|
|
224
224
|
next: _,
|
|
225
|
-
peek:
|
|
225
|
+
peek: y,
|
|
226
226
|
reset: E,
|
|
227
227
|
resetPeek: b,
|
|
228
228
|
skipToPeek: L
|
|
229
229
|
};
|
|
230
230
|
}
|
|
231
|
-
const Pe = void 0, no = ".",
|
|
231
|
+
const Pe = void 0, no = ".", wn = "'", so = "tokenizer";
|
|
232
232
|
function ro(e, t = {}) {
|
|
233
|
-
const a = t.location !== !1, n = ao(e), s = () => n.index(), r = () =>
|
|
233
|
+
const a = t.location !== !1, n = ao(e), s = () => n.index(), r = () => jr(n.line(), n.column(), n.index()), o = r(), l = s(), i = {
|
|
234
234
|
currentType: 13,
|
|
235
235
|
offset: l,
|
|
236
236
|
startLoc: o,
|
|
@@ -244,9 +244,9 @@ function ro(e, t = {}) {
|
|
|
244
244
|
text: ""
|
|
245
245
|
}, c = () => i, { onError: m } = t;
|
|
246
246
|
function g(u, f, N, ...k) {
|
|
247
|
-
const
|
|
247
|
+
const j = c();
|
|
248
248
|
if (f.column += N, f.offset += N, m) {
|
|
249
|
-
const q = a ?
|
|
249
|
+
const q = a ? Va(j.startLoc, f) : null, V = ft(u, q, {
|
|
250
250
|
domain: so,
|
|
251
251
|
args: k
|
|
252
252
|
});
|
|
@@ -256,9 +256,9 @@ function ro(e, t = {}) {
|
|
|
256
256
|
function p(u, f, N) {
|
|
257
257
|
u.endLoc = r(), u.currentType = f;
|
|
258
258
|
const k = { type: f };
|
|
259
|
-
return a && (k.loc =
|
|
259
|
+
return a && (k.loc = Va(u.startLoc, u.endLoc)), N != null && (k.value = N), k;
|
|
260
260
|
}
|
|
261
|
-
const
|
|
261
|
+
const I = (u) => p(
|
|
262
262
|
u,
|
|
263
263
|
13
|
|
264
264
|
/* TokenTypes.EOF */
|
|
@@ -290,7 +290,7 @@ function ro(e, t = {}) {
|
|
|
290
290
|
const f = u.charCodeAt(0);
|
|
291
291
|
return f >= 48 && f <= 57;
|
|
292
292
|
}
|
|
293
|
-
function
|
|
293
|
+
function y(u, f) {
|
|
294
294
|
const { currentType: N } = f;
|
|
295
295
|
if (N !== 2)
|
|
296
296
|
return !1;
|
|
@@ -303,15 +303,15 @@ function ro(e, t = {}) {
|
|
|
303
303
|
if (N !== 2)
|
|
304
304
|
return !1;
|
|
305
305
|
S(u);
|
|
306
|
-
const k = u.currentPeek() === "-" ? u.peek() : u.currentPeek(),
|
|
307
|
-
return u.resetPeek(),
|
|
306
|
+
const k = u.currentPeek() === "-" ? u.peek() : u.currentPeek(), j = _(k);
|
|
307
|
+
return u.resetPeek(), j;
|
|
308
308
|
}
|
|
309
309
|
function b(u, f) {
|
|
310
310
|
const { currentType: N } = f;
|
|
311
311
|
if (N !== 2)
|
|
312
312
|
return !1;
|
|
313
313
|
S(u);
|
|
314
|
-
const k = u.currentPeek() ===
|
|
314
|
+
const k = u.currentPeek() === wn;
|
|
315
315
|
return u.resetPeek(), k;
|
|
316
316
|
}
|
|
317
317
|
function L(u, f) {
|
|
@@ -345,8 +345,8 @@ function ro(e, t = {}) {
|
|
|
345
345
|
const k = () => {
|
|
346
346
|
const q = u.currentPeek();
|
|
347
347
|
return q === "{" ? d(u.peek()) : q === "@" || q === "|" || q === ":" || q === "." || q === Se || !q ? !1 : q === re ? (u.peek(), k()) : Ee(u, !1);
|
|
348
|
-
},
|
|
349
|
-
return u.resetPeek(),
|
|
348
|
+
}, j = k();
|
|
349
|
+
return u.resetPeek(), j;
|
|
350
350
|
}
|
|
351
351
|
function K(u) {
|
|
352
352
|
S(u);
|
|
@@ -354,9 +354,9 @@ function ro(e, t = {}) {
|
|
|
354
354
|
return u.resetPeek(), f;
|
|
355
355
|
}
|
|
356
356
|
function Ee(u, f = !0) {
|
|
357
|
-
const N = (
|
|
357
|
+
const N = (j = !1, q = "") => {
|
|
358
358
|
const V = u.currentPeek();
|
|
359
|
-
return V === "{" || V === "@" || !V ?
|
|
359
|
+
return V === "{" || V === "@" || !V ? j : V === "|" ? !(q === Se || q === re) : V === Se ? (u.peek(), N(!0, Se)) : V === re ? (u.peek(), N(!0, re)) : !0;
|
|
360
360
|
}, k = N();
|
|
361
361
|
return f && u.resetPeek(), k;
|
|
362
362
|
}
|
|
@@ -409,7 +409,7 @@ function ro(e, t = {}) {
|
|
|
409
409
|
N += f;
|
|
410
410
|
return N;
|
|
411
411
|
}
|
|
412
|
-
function
|
|
412
|
+
function ya(u) {
|
|
413
413
|
let f = "";
|
|
414
414
|
for (; ; ) {
|
|
415
415
|
const N = u.currentChar();
|
|
@@ -428,15 +428,15 @@ function ro(e, t = {}) {
|
|
|
428
428
|
}
|
|
429
429
|
return f;
|
|
430
430
|
}
|
|
431
|
-
function
|
|
431
|
+
function Ia(u) {
|
|
432
432
|
O(u);
|
|
433
433
|
let f = "", N = "";
|
|
434
434
|
for (; f = ha(u); )
|
|
435
435
|
N += f;
|
|
436
436
|
const k = u.currentChar();
|
|
437
437
|
if (k && k !== "}" && k !== Pe && k !== Se && k !== re && k !== " ") {
|
|
438
|
-
const
|
|
439
|
-
return g(D.INVALID_TOKEN_IN_PLACEHOLDER, r(), 0, N +
|
|
438
|
+
const j = Vt(u);
|
|
439
|
+
return g(D.INVALID_TOKEN_IN_PLACEHOLDER, r(), 0, N + j), N + j;
|
|
440
440
|
}
|
|
441
441
|
return u.currentChar() === Pe && g(D.UNTERMINATED_CLOSING_BRACE, r(), 0), N;
|
|
442
442
|
}
|
|
@@ -446,9 +446,9 @@ function ro(e, t = {}) {
|
|
|
446
446
|
return u.currentChar() === "-" ? (u.next(), f += `-${mt(u)}`) : f += mt(u), u.currentChar() === Pe && g(D.UNTERMINATED_CLOSING_BRACE, r(), 0), f;
|
|
447
447
|
}
|
|
448
448
|
function Sa(u) {
|
|
449
|
-
return u !==
|
|
449
|
+
return u !== wn && u !== re;
|
|
450
450
|
}
|
|
451
|
-
function
|
|
451
|
+
function In(u) {
|
|
452
452
|
O(u), P(u, "'");
|
|
453
453
|
let f = "", N = "";
|
|
454
454
|
for (; f = Q(u, Sa); )
|
|
@@ -473,7 +473,7 @@ function ro(e, t = {}) {
|
|
|
473
473
|
function xt(u, f, N) {
|
|
474
474
|
P(u, f);
|
|
475
475
|
let k = "";
|
|
476
|
-
for (let
|
|
476
|
+
for (let j = 0; j < N; j++) {
|
|
477
477
|
const q = Ae(u);
|
|
478
478
|
if (!q) {
|
|
479
479
|
g(D.INVALID_UNICODE_ESCAPE_SEQUENCE, r(), 0, `\\${f}${k}${u.currentChar()}`);
|
|
@@ -533,20 +533,20 @@ function ro(e, t = {}) {
|
|
|
533
533
|
/* TokenChars.BraceRight */
|
|
534
534
|
), f.braceNest--, f.braceNest > 0 && O(u), f.inLinked && f.braceNest === 0 && (f.inLinked = !1), N;
|
|
535
535
|
case "@":
|
|
536
|
-
return f.braceNest > 0 && g(D.UNTERMINATED_CLOSING_BRACE, r(), 0), N = Ve(u, f) ||
|
|
536
|
+
return f.braceNest > 0 && g(D.UNTERMINATED_CLOSING_BRACE, r(), 0), N = Ve(u, f) || I(f), f.braceNest = 0, N;
|
|
537
537
|
default: {
|
|
538
|
-
let
|
|
538
|
+
let j = !0, q = !0, V = !0;
|
|
539
539
|
if (K(u))
|
|
540
540
|
return f.braceNest > 0 && g(D.UNTERMINATED_CLOSING_BRACE, r(), 0), N = p(f, 1, pt(u)), f.braceNest = 0, f.inLinked = !1, N;
|
|
541
541
|
if (f.braceNest > 0 && (f.currentType === 4 || f.currentType === 5 || f.currentType === 6))
|
|
542
542
|
return g(D.UNTERMINATED_CLOSING_BRACE, r(), 0), f.braceNest = 0, gt(u, f);
|
|
543
|
-
if (
|
|
544
|
-
return N = p(f, 4,
|
|
543
|
+
if (j = y(u, f))
|
|
544
|
+
return N = p(f, 4, Ia(u)), O(u), N;
|
|
545
545
|
if (q = E(u, f))
|
|
546
546
|
return N = p(f, 5, Na(u)), O(u), N;
|
|
547
547
|
if (V = b(u, f))
|
|
548
|
-
return N = p(f, 6,
|
|
549
|
-
if (!
|
|
548
|
+
return N = p(f, 6, In(u)), O(u), N;
|
|
549
|
+
if (!j && !q && !V)
|
|
550
550
|
return N = p(f, 12, Vt(u)), g(D.INVALID_TOKEN_IN_PLACEHOLDER, r(), 0, N.value), O(u), N;
|
|
551
551
|
break;
|
|
552
552
|
}
|
|
@@ -556,8 +556,8 @@ function ro(e, t = {}) {
|
|
|
556
556
|
function Ve(u, f) {
|
|
557
557
|
const { currentType: N } = f;
|
|
558
558
|
let k = null;
|
|
559
|
-
const
|
|
560
|
-
switch ((N === 7 || N === 8 || N === 11 || N === 9) && (
|
|
559
|
+
const j = u.currentChar();
|
|
560
|
+
switch ((N === 7 || N === 8 || N === 11 || N === 9) && (j === re || j === Se) && g(D.INVALID_LINKED_FORMAT, r(), 0), j) {
|
|
561
561
|
case "@":
|
|
562
562
|
return u.next(), k = p(
|
|
563
563
|
f,
|
|
@@ -580,7 +580,7 @@ function ro(e, t = {}) {
|
|
|
580
580
|
/* TokenChars.LinkedDelimiter */
|
|
581
581
|
);
|
|
582
582
|
default:
|
|
583
|
-
return K(u) ? (k = p(f, 1, pt(u)), f.braceNest = 0, f.inLinked = !1, k) : L(u, f) || C(u, f) ? (O(u), Ve(u, f)) : v(u, f) ? (O(u), p(f, 11, Oa(u))) : M(u, f) ? (O(u),
|
|
583
|
+
return K(u) ? (k = p(f, 1, pt(u)), f.braceNest = 0, f.inLinked = !1, k) : L(u, f) || C(u, f) ? (O(u), Ve(u, f)) : v(u, f) ? (O(u), p(f, 11, Oa(u))) : M(u, f) ? (O(u), j === "{" ? _t(u, f) || k : p(f, 10, Aa(u))) : (N === 7 && g(D.INVALID_LINKED_FORMAT, r(), 0), f.braceNest = 0, f.inLinked = !1, gt(u, f));
|
|
584
584
|
}
|
|
585
585
|
}
|
|
586
586
|
function gt(u, f) {
|
|
@@ -589,12 +589,12 @@ function ro(e, t = {}) {
|
|
|
589
589
|
/* TokenTypes.EOF */
|
|
590
590
|
};
|
|
591
591
|
if (f.braceNest > 0)
|
|
592
|
-
return _t(u, f) ||
|
|
592
|
+
return _t(u, f) || I(f);
|
|
593
593
|
if (f.inLinked)
|
|
594
|
-
return Ve(u, f) ||
|
|
594
|
+
return Ve(u, f) || I(f);
|
|
595
595
|
switch (u.currentChar()) {
|
|
596
596
|
case "{":
|
|
597
|
-
return _t(u, f) ||
|
|
597
|
+
return _t(u, f) || I(f);
|
|
598
598
|
case "}":
|
|
599
599
|
return g(D.UNBALANCED_CLOSING_BRACE, r(), 0), u.next(), p(
|
|
600
600
|
f,
|
|
@@ -603,12 +603,12 @@ function ro(e, t = {}) {
|
|
|
603
603
|
/* TokenChars.BraceRight */
|
|
604
604
|
);
|
|
605
605
|
case "@":
|
|
606
|
-
return Ve(u, f) ||
|
|
606
|
+
return Ve(u, f) || I(f);
|
|
607
607
|
default: {
|
|
608
608
|
if (K(u))
|
|
609
609
|
return N = p(f, 1, pt(u)), f.braceNest = 0, f.inLinked = !1, N;
|
|
610
610
|
if (Ee(u))
|
|
611
|
-
return p(f, 0,
|
|
611
|
+
return p(f, 0, ya(u));
|
|
612
612
|
break;
|
|
613
613
|
}
|
|
614
614
|
}
|
|
@@ -645,87 +645,87 @@ function io(e, t, a) {
|
|
|
645
645
|
}
|
|
646
646
|
function co(e = {}) {
|
|
647
647
|
const t = e.location !== !1, { onError: a } = e;
|
|
648
|
-
function n(d, _,
|
|
648
|
+
function n(d, _, y, E, ...b) {
|
|
649
649
|
const L = d.currentPosition();
|
|
650
650
|
if (L.offset += E, L.column += E, a) {
|
|
651
|
-
const v = t ?
|
|
651
|
+
const v = t ? Va(y, L) : null, C = ft(_, v, {
|
|
652
652
|
domain: oo,
|
|
653
653
|
args: b
|
|
654
654
|
});
|
|
655
655
|
a(C);
|
|
656
656
|
}
|
|
657
657
|
}
|
|
658
|
-
function s(d, _,
|
|
658
|
+
function s(d, _, y) {
|
|
659
659
|
const E = { type: d };
|
|
660
|
-
return t && (E.start = _, E.end = _, E.loc = { start:
|
|
660
|
+
return t && (E.start = _, E.end = _, E.loc = { start: y, end: y }), E;
|
|
661
661
|
}
|
|
662
|
-
function r(d, _,
|
|
663
|
-
t && (d.end = _, d.loc && (d.loc.end =
|
|
662
|
+
function r(d, _, y, E) {
|
|
663
|
+
t && (d.end = _, d.loc && (d.loc.end = y));
|
|
664
664
|
}
|
|
665
665
|
function o(d, _) {
|
|
666
|
-
const
|
|
666
|
+
const y = d.context(), E = s(3, y.offset, y.startLoc);
|
|
667
667
|
return E.value = _, r(E, d.currentOffset(), d.currentPosition()), E;
|
|
668
668
|
}
|
|
669
669
|
function l(d, _) {
|
|
670
|
-
const
|
|
670
|
+
const y = d.context(), { lastOffset: E, lastStartLoc: b } = y, L = s(5, E, b);
|
|
671
671
|
return L.index = parseInt(_, 10), d.nextToken(), r(L, d.currentOffset(), d.currentPosition()), L;
|
|
672
672
|
}
|
|
673
673
|
function i(d, _) {
|
|
674
|
-
const
|
|
674
|
+
const y = d.context(), { lastOffset: E, lastStartLoc: b } = y, L = s(4, E, b);
|
|
675
675
|
return L.key = _, d.nextToken(), r(L, d.currentOffset(), d.currentPosition()), L;
|
|
676
676
|
}
|
|
677
677
|
function c(d, _) {
|
|
678
|
-
const
|
|
678
|
+
const y = d.context(), { lastOffset: E, lastStartLoc: b } = y, L = s(9, E, b);
|
|
679
679
|
return L.value = _.replace(lo, io), d.nextToken(), r(L, d.currentOffset(), d.currentPosition()), L;
|
|
680
680
|
}
|
|
681
681
|
function m(d) {
|
|
682
|
-
const _ = d.nextToken(),
|
|
683
|
-
return _.type !== 11 ? (n(d, D.UNEXPECTED_EMPTY_LINKED_MODIFIER,
|
|
682
|
+
const _ = d.nextToken(), y = d.context(), { lastOffset: E, lastStartLoc: b } = y, L = s(8, E, b);
|
|
683
|
+
return _.type !== 11 ? (n(d, D.UNEXPECTED_EMPTY_LINKED_MODIFIER, y.lastStartLoc, 0), L.value = "", r(L, E, b), {
|
|
684
684
|
nextConsumeToken: _,
|
|
685
685
|
node: L
|
|
686
|
-
}) : (_.value == null && n(d, D.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
686
|
+
}) : (_.value == null && n(d, D.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, Te(_)), L.value = _.value || "", r(L, d.currentOffset(), d.currentPosition()), {
|
|
687
687
|
node: L
|
|
688
688
|
});
|
|
689
689
|
}
|
|
690
690
|
function g(d, _) {
|
|
691
|
-
const
|
|
691
|
+
const y = d.context(), E = s(7, y.offset, y.startLoc);
|
|
692
692
|
return E.value = _, r(E, d.currentOffset(), d.currentPosition()), E;
|
|
693
693
|
}
|
|
694
694
|
function p(d) {
|
|
695
|
-
const _ = d.context(),
|
|
695
|
+
const _ = d.context(), y = s(6, _.offset, _.startLoc);
|
|
696
696
|
let E = d.nextToken();
|
|
697
697
|
if (E.type === 8) {
|
|
698
698
|
const b = m(d);
|
|
699
|
-
|
|
699
|
+
y.modifier = b.node, E = b.nextConsumeToken || d.nextToken();
|
|
700
700
|
}
|
|
701
701
|
switch (E.type !== 9 && n(d, D.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, Te(E)), E = d.nextToken(), E.type === 2 && (E = d.nextToken()), E.type) {
|
|
702
702
|
case 10:
|
|
703
|
-
E.value == null && n(d, D.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, Te(E)),
|
|
703
|
+
E.value == null && n(d, D.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, Te(E)), y.key = g(d, E.value || "");
|
|
704
704
|
break;
|
|
705
705
|
case 4:
|
|
706
|
-
E.value == null && n(d, D.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, Te(E)),
|
|
706
|
+
E.value == null && n(d, D.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, Te(E)), y.key = i(d, E.value || "");
|
|
707
707
|
break;
|
|
708
708
|
case 5:
|
|
709
|
-
E.value == null && n(d, D.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, Te(E)),
|
|
709
|
+
E.value == null && n(d, D.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, Te(E)), y.key = l(d, E.value || "");
|
|
710
710
|
break;
|
|
711
711
|
case 6:
|
|
712
|
-
E.value == null && n(d, D.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, Te(E)),
|
|
712
|
+
E.value == null && n(d, D.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, Te(E)), y.key = c(d, E.value || "");
|
|
713
713
|
break;
|
|
714
714
|
default: {
|
|
715
715
|
n(d, D.UNEXPECTED_EMPTY_LINKED_KEY, _.lastStartLoc, 0);
|
|
716
716
|
const b = d.context(), L = s(7, b.offset, b.startLoc);
|
|
717
|
-
return L.value = "", r(L, b.offset, b.startLoc),
|
|
717
|
+
return L.value = "", r(L, b.offset, b.startLoc), y.key = L, r(y, b.offset, b.startLoc), {
|
|
718
718
|
nextConsumeToken: E,
|
|
719
|
-
node:
|
|
719
|
+
node: y
|
|
720
720
|
};
|
|
721
721
|
}
|
|
722
722
|
}
|
|
723
|
-
return r(
|
|
724
|
-
node:
|
|
723
|
+
return r(y, d.currentOffset(), d.currentPosition()), {
|
|
724
|
+
node: y
|
|
725
725
|
};
|
|
726
726
|
}
|
|
727
|
-
function
|
|
728
|
-
const _ = d.context(),
|
|
727
|
+
function I(d) {
|
|
728
|
+
const _ = d.context(), y = _.currentType === 1 ? d.currentOffset() : _.offset, E = _.currentType === 1 ? _.endLoc : _.startLoc, b = s(2, y, E);
|
|
729
729
|
b.items = [];
|
|
730
730
|
let L = null;
|
|
731
731
|
do {
|
|
@@ -753,24 +753,24 @@ function co(e = {}) {
|
|
|
753
753
|
const v = _.currentType === 1 ? _.lastOffset : d.currentOffset(), C = _.currentType === 1 ? _.lastEndLoc : d.currentPosition();
|
|
754
754
|
return r(b, v, C), b;
|
|
755
755
|
}
|
|
756
|
-
function P(d, _,
|
|
756
|
+
function P(d, _, y, E) {
|
|
757
757
|
const b = d.context();
|
|
758
758
|
let L = E.items.length === 0;
|
|
759
|
-
const v = s(1, _,
|
|
759
|
+
const v = s(1, _, y);
|
|
760
760
|
v.cases = [], v.cases.push(E);
|
|
761
761
|
do {
|
|
762
|
-
const C =
|
|
762
|
+
const C = I(d);
|
|
763
763
|
L || (L = C.items.length === 0), v.cases.push(C);
|
|
764
764
|
} while (b.currentType !== 13);
|
|
765
|
-
return L && n(d, D.MUST_HAVE_MESSAGES_IN_PLURAL,
|
|
765
|
+
return L && n(d, D.MUST_HAVE_MESSAGES_IN_PLURAL, y, 0), r(v, d.currentOffset(), d.currentPosition()), v;
|
|
766
766
|
}
|
|
767
767
|
function S(d) {
|
|
768
|
-
const _ = d.context(), { offset:
|
|
769
|
-
return _.currentType === 13 ? b : P(d,
|
|
768
|
+
const _ = d.context(), { offset: y, startLoc: E } = _, b = I(d);
|
|
769
|
+
return _.currentType === 13 ? b : P(d, y, E, b);
|
|
770
770
|
}
|
|
771
771
|
function O(d) {
|
|
772
|
-
const _ = ro(d, te({}, e)),
|
|
773
|
-
return t && E.loc && (E.loc.source = d), E.body = S(_), e.onCacheKey && (E.cacheKey = e.onCacheKey(d)),
|
|
772
|
+
const _ = ro(d, te({}, e)), y = _.context(), E = s(0, y.offset, y.startLoc);
|
|
773
|
+
return t && E.loc && (E.loc.source = d), E.body = S(_), e.onCacheKey && (E.cacheKey = e.onCacheKey(d)), y.currentType !== 13 && n(_, D.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, d[y.offset] || ""), r(E, _.currentOffset(), _.currentPosition()), E;
|
|
774
774
|
}
|
|
775
775
|
return { parse: O };
|
|
776
776
|
}
|
|
@@ -787,23 +787,23 @@ function uo(e, t = {}) {
|
|
|
787
787
|
};
|
|
788
788
|
return { context: () => a, helper: (r) => (a.helpers.add(r), r) };
|
|
789
789
|
}
|
|
790
|
-
function
|
|
790
|
+
function kn(e, t) {
|
|
791
791
|
for (let a = 0; a < e.length; a++)
|
|
792
|
-
|
|
792
|
+
cn(e[a], t);
|
|
793
793
|
}
|
|
794
|
-
function
|
|
794
|
+
function cn(e, t) {
|
|
795
795
|
switch (e.type) {
|
|
796
796
|
case 1:
|
|
797
|
-
|
|
797
|
+
kn(e.cases, t), t.helper(
|
|
798
798
|
"plural"
|
|
799
799
|
/* HelperNameMap.PLURAL */
|
|
800
800
|
);
|
|
801
801
|
break;
|
|
802
802
|
case 2:
|
|
803
|
-
|
|
803
|
+
kn(e.items, t);
|
|
804
804
|
break;
|
|
805
805
|
case 6: {
|
|
806
|
-
|
|
806
|
+
cn(e.key, t), t.helper(
|
|
807
807
|
"linked"
|
|
808
808
|
/* HelperNameMap.LINKED */
|
|
809
809
|
), t.helper(
|
|
@@ -837,15 +837,15 @@ function fo(e, t = {}) {
|
|
|
837
837
|
a.helper(
|
|
838
838
|
"normalize"
|
|
839
839
|
/* HelperNameMap.NORMALIZE */
|
|
840
|
-
), e.body &&
|
|
840
|
+
), e.body && cn(e.body, a);
|
|
841
841
|
const n = a.context();
|
|
842
842
|
e.helpers = Array.from(n.helpers);
|
|
843
843
|
}
|
|
844
844
|
function mo(e) {
|
|
845
845
|
const t = e.body;
|
|
846
|
-
return t.type === 2 ?
|
|
846
|
+
return t.type === 2 ? Dn(t) : t.cases.forEach((a) => Dn(a)), e;
|
|
847
847
|
}
|
|
848
|
-
function
|
|
848
|
+
function Dn(e) {
|
|
849
849
|
if (e.items.length === 1) {
|
|
850
850
|
const t = e.items[0];
|
|
851
851
|
(t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
|
|
@@ -858,7 +858,7 @@ function Fn(e) {
|
|
|
858
858
|
t.push(n.value);
|
|
859
859
|
}
|
|
860
860
|
if (t.length === e.items.length) {
|
|
861
|
-
e.static =
|
|
861
|
+
e.static = on(t);
|
|
862
862
|
for (let a = 0; a < e.items.length; a++) {
|
|
863
863
|
const n = e.items[a];
|
|
864
864
|
(n.type === 3 || n.type === 9) && delete n.value;
|
|
@@ -1050,7 +1050,7 @@ function lt(e, t) {
|
|
|
1050
1050
|
});
|
|
1051
1051
|
}
|
|
1052
1052
|
}
|
|
1053
|
-
const
|
|
1053
|
+
const yo = (e, t = {}) => {
|
|
1054
1054
|
const a = A(t.mode) ? t.mode : "normal", n = A(t.filename) ? t.filename : "message.intl";
|
|
1055
1055
|
t.sourceMap;
|
|
1056
1056
|
const s = t.breakLineCode != null ? t.breakLineCode : a === "arrow" ? ";" : `
|
|
@@ -1059,7 +1059,7 @@ const Io = (e, t = {}) => {
|
|
|
1059
1059
|
breakLineCode: s,
|
|
1060
1060
|
needIndent: r
|
|
1061
1061
|
});
|
|
1062
|
-
l.push(a === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), l.indent(r), o.length > 0 && (l.push(`const { ${
|
|
1062
|
+
l.push(a === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), l.indent(r), o.length > 0 && (l.push(`const { ${on(o.map((m) => `${m}: _${m}`), ", ")} } = ctx`), l.newline()), l.push("return "), lt(l, e), l.deindent(r), l.push("}"), delete e.helpers;
|
|
1063
1063
|
const { code: i, map: c } = l.context();
|
|
1064
1064
|
return {
|
|
1065
1065
|
ast: e,
|
|
@@ -1068,9 +1068,9 @@ const Io = (e, t = {}) => {
|
|
|
1068
1068
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1069
1069
|
};
|
|
1070
1070
|
};
|
|
1071
|
-
function
|
|
1071
|
+
function Io(e, t = {}) {
|
|
1072
1072
|
const a = te({}, t), n = !!a.jit, s = !!a.minify, r = a.optimize == null ? !0 : a.optimize, l = co(a).parse(e);
|
|
1073
|
-
return n ? (r && mo(l), s && tt(l), { ast: l, code: "" }) : (fo(l, a),
|
|
1073
|
+
return n ? (r && mo(l), s && tt(l), { ast: l, code: "" }) : (fo(l, a), yo(l, a));
|
|
1074
1074
|
}
|
|
1075
1075
|
/*!
|
|
1076
1076
|
* core-base v11.2.7
|
|
@@ -1081,45 +1081,45 @@ function No() {
|
|
|
1081
1081
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (We().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (We().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
1082
1082
|
}
|
|
1083
1083
|
function he(e) {
|
|
1084
|
-
return U(e) &&
|
|
1084
|
+
return U(e) && un(e) === 0 && (be(e, "b") || be(e, "body"));
|
|
1085
1085
|
}
|
|
1086
|
-
const
|
|
1086
|
+
const ps = ["b", "body"];
|
|
1087
1087
|
function So(e) {
|
|
1088
|
-
return Ue(e,
|
|
1088
|
+
return Ue(e, ps);
|
|
1089
1089
|
}
|
|
1090
|
-
const
|
|
1090
|
+
const _s = ["c", "cases"];
|
|
1091
1091
|
function To(e) {
|
|
1092
|
-
return Ue(e,
|
|
1092
|
+
return Ue(e, _s, []);
|
|
1093
1093
|
}
|
|
1094
|
-
const
|
|
1094
|
+
const gs = ["s", "static"];
|
|
1095
1095
|
function Lo(e) {
|
|
1096
|
-
return Ue(e,
|
|
1096
|
+
return Ue(e, gs);
|
|
1097
1097
|
}
|
|
1098
|
-
const
|
|
1098
|
+
const hs = ["i", "items"];
|
|
1099
1099
|
function Oo(e) {
|
|
1100
|
-
return Ue(e,
|
|
1100
|
+
return Ue(e, hs, []);
|
|
1101
1101
|
}
|
|
1102
|
-
const
|
|
1103
|
-
function
|
|
1104
|
-
return Ue(e,
|
|
1102
|
+
const Es = ["t", "type"];
|
|
1103
|
+
function un(e) {
|
|
1104
|
+
return Ue(e, Es);
|
|
1105
1105
|
}
|
|
1106
|
-
const
|
|
1106
|
+
const vs = ["v", "value"];
|
|
1107
1107
|
function Gt(e, t) {
|
|
1108
|
-
const a = Ue(e,
|
|
1108
|
+
const a = Ue(e, vs);
|
|
1109
1109
|
if (a != null)
|
|
1110
1110
|
return a;
|
|
1111
|
-
throw
|
|
1111
|
+
throw It(t);
|
|
1112
1112
|
}
|
|
1113
|
-
const
|
|
1113
|
+
const bs = ["m", "modifier"];
|
|
1114
1114
|
function Ao(e) {
|
|
1115
|
-
return Ue(e,
|
|
1115
|
+
return Ue(e, bs);
|
|
1116
1116
|
}
|
|
1117
|
-
const
|
|
1117
|
+
const ys = ["k", "key"];
|
|
1118
1118
|
function Po(e) {
|
|
1119
|
-
const t = Ue(e,
|
|
1119
|
+
const t = Ue(e, ys);
|
|
1120
1120
|
if (t)
|
|
1121
1121
|
return t;
|
|
1122
|
-
throw
|
|
1122
|
+
throw It(
|
|
1123
1123
|
6
|
|
1124
1124
|
/* NodeTypes.Linked */
|
|
1125
1125
|
);
|
|
@@ -1132,17 +1132,17 @@ function Ue(e, t, a) {
|
|
|
1132
1132
|
}
|
|
1133
1133
|
return a;
|
|
1134
1134
|
}
|
|
1135
|
-
const
|
|
1135
|
+
const Is = [
|
|
1136
|
+
...ps,
|
|
1137
|
+
..._s,
|
|
1136
1138
|
...gs,
|
|
1137
1139
|
...hs,
|
|
1138
|
-
...Es,
|
|
1139
|
-
...vs,
|
|
1140
|
-
...Ns,
|
|
1141
1140
|
...ys,
|
|
1142
|
-
...
|
|
1143
|
-
...
|
|
1141
|
+
...bs,
|
|
1142
|
+
...vs,
|
|
1143
|
+
...Es
|
|
1144
1144
|
];
|
|
1145
|
-
function
|
|
1145
|
+
function It(e) {
|
|
1146
1146
|
return new Error(`unhandled node type: ${e}`);
|
|
1147
1147
|
}
|
|
1148
1148
|
function Da(e) {
|
|
@@ -1151,30 +1151,30 @@ function Da(e) {
|
|
|
1151
1151
|
function Ro(e, t) {
|
|
1152
1152
|
const a = So(t);
|
|
1153
1153
|
if (a == null)
|
|
1154
|
-
throw
|
|
1154
|
+
throw It(
|
|
1155
1155
|
0
|
|
1156
1156
|
/* NodeTypes.Resource */
|
|
1157
1157
|
);
|
|
1158
|
-
if (
|
|
1158
|
+
if (un(a) === 1) {
|
|
1159
1159
|
const r = To(a);
|
|
1160
1160
|
return e.plural(r.reduce((o, l) => [
|
|
1161
1161
|
...o,
|
|
1162
|
-
|
|
1162
|
+
Cn(e, l)
|
|
1163
1163
|
], []));
|
|
1164
1164
|
} else
|
|
1165
|
-
return
|
|
1165
|
+
return Cn(e, a);
|
|
1166
1166
|
}
|
|
1167
|
-
function
|
|
1167
|
+
function Cn(e, t) {
|
|
1168
1168
|
const a = Lo(t);
|
|
1169
1169
|
if (a != null)
|
|
1170
1170
|
return e.type === "text" ? a : e.normalize([a]);
|
|
1171
1171
|
{
|
|
1172
|
-
const n = Oo(t).reduce((s, r) => [...s,
|
|
1172
|
+
const n = Oo(t).reduce((s, r) => [...s, $a(e, r)], []);
|
|
1173
1173
|
return e.normalize(n);
|
|
1174
1174
|
}
|
|
1175
1175
|
}
|
|
1176
|
-
function
|
|
1177
|
-
const a =
|
|
1176
|
+
function $a(e, t) {
|
|
1177
|
+
const a = un(t);
|
|
1178
1178
|
switch (a) {
|
|
1179
1179
|
case 3:
|
|
1180
1180
|
return Gt(t, a);
|
|
@@ -1186,7 +1186,7 @@ function Ha(e, t) {
|
|
|
1186
1186
|
return e.interpolate(e.named(n.k));
|
|
1187
1187
|
if (be(n, "key") && n.key)
|
|
1188
1188
|
return e.interpolate(e.named(n.key));
|
|
1189
|
-
throw
|
|
1189
|
+
throw It(a);
|
|
1190
1190
|
}
|
|
1191
1191
|
case 5: {
|
|
1192
1192
|
const n = t;
|
|
@@ -1194,11 +1194,11 @@ function Ha(e, t) {
|
|
|
1194
1194
|
return e.interpolate(e.list(n.i));
|
|
1195
1195
|
if (be(n, "index") && ee(n.index))
|
|
1196
1196
|
return e.interpolate(e.list(n.index));
|
|
1197
|
-
throw
|
|
1197
|
+
throw It(a);
|
|
1198
1198
|
}
|
|
1199
1199
|
case 6: {
|
|
1200
1200
|
const n = t, s = Ao(n), r = Po(n);
|
|
1201
|
-
return e.linked(
|
|
1201
|
+
return e.linked($a(e, r), s ? $a(e, s) : void 0, e.type);
|
|
1202
1202
|
}
|
|
1203
1203
|
case 7:
|
|
1204
1204
|
return Gt(t, a);
|
|
@@ -1219,7 +1219,7 @@ function Co(e, t = {}) {
|
|
|
1219
1219
|
const n = t.onError || Xr;
|
|
1220
1220
|
return t.onError = (s) => {
|
|
1221
1221
|
a = !0, n(s);
|
|
1222
|
-
}, { ...
|
|
1222
|
+
}, { ...Io(e, t), detectError: a };
|
|
1223
1223
|
}
|
|
1224
1224
|
// @__NO_SIDE_EFFECTS__
|
|
1225
1225
|
function Fo(e, t) {
|
|
@@ -1284,11 +1284,11 @@ const Ho = {
|
|
|
1284
1284
|
[oe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: "cannot support async function",
|
|
1285
1285
|
[oe.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
|
|
1286
1286
|
};
|
|
1287
|
-
function
|
|
1288
|
-
return t.locale != null ?
|
|
1287
|
+
function fn(e, t) {
|
|
1288
|
+
return t.locale != null ? Fn(t.locale) : Fn(e.locale);
|
|
1289
1289
|
}
|
|
1290
1290
|
let Ca;
|
|
1291
|
-
function
|
|
1291
|
+
function Fn(e) {
|
|
1292
1292
|
if (A(e))
|
|
1293
1293
|
return e;
|
|
1294
1294
|
if (G(e)) {
|
|
@@ -1310,7 +1310,7 @@ function Wo(e, t, a) {
|
|
|
1310
1310
|
...J(t) ? t : U(t) ? Object.keys(t) : A(t) ? [t] : [a]
|
|
1311
1311
|
])];
|
|
1312
1312
|
}
|
|
1313
|
-
function
|
|
1313
|
+
function Ns(e, t, a) {
|
|
1314
1314
|
const n = A(a) ? a : St, s = e;
|
|
1315
1315
|
s.__localeChainCache || (s.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1316
1316
|
let r = s.__localeChainCache.get(n);
|
|
@@ -1318,13 +1318,13 @@ function Ts(e, t, a) {
|
|
|
1318
1318
|
r = [];
|
|
1319
1319
|
let o = [a];
|
|
1320
1320
|
for (; J(o); )
|
|
1321
|
-
o =
|
|
1321
|
+
o = Mn(r, o, t);
|
|
1322
1322
|
const l = J(t) || !F(t) ? t : t.default ? t.default : null;
|
|
1323
|
-
o = A(l) ? [l] : l, J(o) &&
|
|
1323
|
+
o = A(l) ? [l] : l, J(o) && Mn(r, o, !1), s.__localeChainCache.set(n, r);
|
|
1324
1324
|
}
|
|
1325
1325
|
return r;
|
|
1326
1326
|
}
|
|
1327
|
-
function
|
|
1327
|
+
function Mn(e, t, a) {
|
|
1328
1328
|
let n = !0;
|
|
1329
1329
|
for (let s = 0; s < t.length && x(n); s++) {
|
|
1330
1330
|
const r = t[s];
|
|
@@ -1512,10 +1512,10 @@ xe[
|
|
|
1512
1512
|
]
|
|
1513
1513
|
};
|
|
1514
1514
|
const Yo = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1515
|
-
function
|
|
1515
|
+
function Bo(e) {
|
|
1516
1516
|
return Yo.test(e);
|
|
1517
1517
|
}
|
|
1518
|
-
function
|
|
1518
|
+
function jo(e) {
|
|
1519
1519
|
const t = e.charCodeAt(0), a = e.charCodeAt(e.length - 1);
|
|
1520
1520
|
return t === a && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1521
1521
|
}
|
|
@@ -1558,7 +1558,7 @@ function Jo(e) {
|
|
|
1558
1558
|
}
|
|
1559
1559
|
function Qo(e) {
|
|
1560
1560
|
const t = e.trim();
|
|
1561
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 :
|
|
1561
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Bo(t) ? jo(t) : "*" + t;
|
|
1562
1562
|
}
|
|
1563
1563
|
function Xo(e) {
|
|
1564
1564
|
const t = [];
|
|
@@ -1600,7 +1600,7 @@ function Xo(e) {
|
|
|
1600
1600
|
]();
|
|
1601
1601
|
}
|
|
1602
1602
|
};
|
|
1603
|
-
function
|
|
1603
|
+
function I() {
|
|
1604
1604
|
const P = e[a + 1];
|
|
1605
1605
|
if (n === 5 && P === "'" || n === 6 && P === '"')
|
|
1606
1606
|
return a++, l = "\\" + P, p[
|
|
@@ -1609,28 +1609,28 @@ function Xo(e) {
|
|
|
1609
1609
|
](), !0;
|
|
1610
1610
|
}
|
|
1611
1611
|
for (; n !== null; )
|
|
1612
|
-
if (a++, r = e[a], !(r === "\\" &&
|
|
1612
|
+
if (a++, r = e[a], !(r === "\\" && I())) {
|
|
1613
1613
|
if (i = Jo(r), g = xe[n], c = g[i] || g.l || 8, c === 8 || (n = c[0], c[1] !== void 0 && (m = p[c[1]], m && (l = r, m() === !1))))
|
|
1614
1614
|
return;
|
|
1615
1615
|
if (n === 7)
|
|
1616
1616
|
return t;
|
|
1617
1617
|
}
|
|
1618
1618
|
}
|
|
1619
|
-
const
|
|
1619
|
+
const Un = /* @__PURE__ */ new Map();
|
|
1620
1620
|
function qo(e, t) {
|
|
1621
1621
|
return U(e) ? e[t] : null;
|
|
1622
1622
|
}
|
|
1623
1623
|
function zo(e, t) {
|
|
1624
1624
|
if (!U(e))
|
|
1625
1625
|
return null;
|
|
1626
|
-
let a =
|
|
1627
|
-
if (a || (a = Xo(t), a &&
|
|
1626
|
+
let a = Un.get(t);
|
|
1627
|
+
if (a || (a = Xo(t), a && Un.set(t, a)), !a)
|
|
1628
1628
|
return null;
|
|
1629
1629
|
const n = a.length;
|
|
1630
1630
|
let s = e, r = 0;
|
|
1631
1631
|
for (; r < n; ) {
|
|
1632
1632
|
const o = a[r];
|
|
1633
|
-
if (
|
|
1633
|
+
if (Is.includes(o) && he(s))
|
|
1634
1634
|
return null;
|
|
1635
1635
|
const l = s[o];
|
|
1636
1636
|
if (l === void 0 || G(s))
|
|
@@ -1659,43 +1659,43 @@ const ce = {
|
|
|
1659
1659
|
function Je(e, ...t) {
|
|
1660
1660
|
return aa(el[e], ...t);
|
|
1661
1661
|
}
|
|
1662
|
-
const tl = "11.2.7", sa = -1, St = "en-US", Xt = "",
|
|
1662
|
+
const tl = "11.2.7", sa = -1, St = "en-US", Xt = "", xn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1663
1663
|
function al() {
|
|
1664
1664
|
return {
|
|
1665
1665
|
upper: (e, t) => t === "text" && A(e) ? e.toUpperCase() : t === "vnode" && U(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1666
1666
|
lower: (e, t) => t === "text" && A(e) ? e.toLowerCase() : t === "vnode" && U(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1667
|
-
capitalize: (e, t) => t === "text" && A(e) ?
|
|
1667
|
+
capitalize: (e, t) => t === "text" && A(e) ? xn(e) : t === "vnode" && U(e) && "__v_isVNode" in e ? xn(e.children) : e
|
|
1668
1668
|
};
|
|
1669
1669
|
}
|
|
1670
|
-
let
|
|
1670
|
+
let Ss;
|
|
1671
1671
|
function nl(e) {
|
|
1672
|
-
|
|
1672
|
+
Ss = e;
|
|
1673
1673
|
}
|
|
1674
|
-
let
|
|
1674
|
+
let Ts;
|
|
1675
1675
|
function sl(e) {
|
|
1676
|
-
|
|
1676
|
+
Ts = e;
|
|
1677
1677
|
}
|
|
1678
|
-
let
|
|
1678
|
+
let Ls;
|
|
1679
1679
|
function rl(e) {
|
|
1680
|
-
|
|
1680
|
+
Ls = e;
|
|
1681
1681
|
}
|
|
1682
|
-
let
|
|
1682
|
+
let Os = null;
|
|
1683
1683
|
const ol = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
1684
|
-
|
|
1685
|
-
}, ll = /* @__NO_SIDE_EFFECTS__ */ () =>
|
|
1686
|
-
let
|
|
1687
|
-
const
|
|
1688
|
-
|
|
1689
|
-
}, il = () =>
|
|
1690
|
-
let
|
|
1684
|
+
Os = e;
|
|
1685
|
+
}, ll = /* @__NO_SIDE_EFFECTS__ */ () => Os;
|
|
1686
|
+
let As = null;
|
|
1687
|
+
const Vn = (e) => {
|
|
1688
|
+
As = e;
|
|
1689
|
+
}, il = () => As;
|
|
1690
|
+
let $n = 0;
|
|
1691
1691
|
function cl(e = {}) {
|
|
1692
|
-
const t = G(e.onWarn) ? e.onWarn : Le, a = A(e.version) ? e.version : tl, n = A(e.locale) || G(e.locale) ? e.locale : St, s = G(n) ? St : n, r = J(e.fallbackLocale) || F(e.fallbackLocale) || A(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s, o = F(e.messages) ? e.messages : Fa(s), l = F(e.datetimeFormats) ? e.datetimeFormats : Fa(s), i = F(e.numberFormats) ? e.numberFormats : Fa(s), c = te(W(), e.modifiers, al()), m = e.pluralRules || W(), g = G(e.missing) ? e.missing : null, p = x(e.missingWarn) || ot(e.missingWarn) ? e.missingWarn : !0,
|
|
1693
|
-
process.env.NODE_ENV !== "production" && G(e.messageCompiler) &&
|
|
1694
|
-
const b = G(e.messageResolver) ? e.messageResolver :
|
|
1695
|
-
|
|
1692
|
+
const t = G(e.onWarn) ? e.onWarn : Le, a = A(e.version) ? e.version : tl, n = A(e.locale) || G(e.locale) ? e.locale : St, s = G(n) ? St : n, r = J(e.fallbackLocale) || F(e.fallbackLocale) || A(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s, o = F(e.messages) ? e.messages : Fa(s), l = F(e.datetimeFormats) ? e.datetimeFormats : Fa(s), i = F(e.numberFormats) ? e.numberFormats : Fa(s), c = te(W(), e.modifiers, al()), m = e.pluralRules || W(), g = G(e.missing) ? e.missing : null, p = x(e.missingWarn) || ot(e.missingWarn) ? e.missingWarn : !0, I = x(e.fallbackWarn) || ot(e.fallbackWarn) ? e.fallbackWarn : !0, P = !!e.fallbackFormat, S = !!e.unresolving, O = G(e.postTranslation) ? e.postTranslation : null, d = F(e.processor) ? e.processor : null, _ = x(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, y = !!e.escapeParameter, E = G(e.messageCompiler) ? e.messageCompiler : Ss;
|
|
1693
|
+
process.env.NODE_ENV !== "production" && G(e.messageCompiler) && sn(Je(ce.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
1694
|
+
const b = G(e.messageResolver) ? e.messageResolver : Ts || qo, L = G(e.localeFallbacker) ? e.localeFallbacker : Ls || Wo, v = U(e.fallbackContext) ? e.fallbackContext : void 0, C = e, M = U(C.__datetimeFormatters) ? C.__datetimeFormatters : /* @__PURE__ */ new Map(), K = U(C.__numberFormatters) ? C.__numberFormatters : /* @__PURE__ */ new Map(), Ee = U(C.__meta) ? C.__meta : {};
|
|
1695
|
+
$n++;
|
|
1696
1696
|
const Q = {
|
|
1697
1697
|
version: a,
|
|
1698
|
-
cid:
|
|
1698
|
+
cid: $n,
|
|
1699
1699
|
locale: n,
|
|
1700
1700
|
fallbackLocale: r,
|
|
1701
1701
|
messages: o,
|
|
@@ -1703,13 +1703,13 @@ function cl(e = {}) {
|
|
|
1703
1703
|
pluralRules: m,
|
|
1704
1704
|
missing: g,
|
|
1705
1705
|
missingWarn: p,
|
|
1706
|
-
fallbackWarn:
|
|
1706
|
+
fallbackWarn: I,
|
|
1707
1707
|
fallbackFormat: P,
|
|
1708
1708
|
unresolving: S,
|
|
1709
1709
|
postTranslation: O,
|
|
1710
1710
|
processor: d,
|
|
1711
1711
|
warnHtmlMessage: _,
|
|
1712
|
-
escapeParameter:
|
|
1712
|
+
escapeParameter: y,
|
|
1713
1713
|
messageCompiler: E,
|
|
1714
1714
|
messageResolver: b,
|
|
1715
1715
|
localeFallbacker: L,
|
|
@@ -1723,10 +1723,10 @@ const Fa = (e) => ({ [e]: W() });
|
|
|
1723
1723
|
function ra(e, t) {
|
|
1724
1724
|
return e instanceof RegExp ? e.test(t) : e;
|
|
1725
1725
|
}
|
|
1726
|
-
function
|
|
1726
|
+
function Ps(e, t) {
|
|
1727
1727
|
return e instanceof RegExp ? e.test(t) : e;
|
|
1728
1728
|
}
|
|
1729
|
-
function
|
|
1729
|
+
function dn(e, t, a, n, s) {
|
|
1730
1730
|
const { missing: r, onWarn: o } = e;
|
|
1731
1731
|
if (process.env.NODE_ENV !== "production") {
|
|
1732
1732
|
const l = e.__v_emitter;
|
|
@@ -1741,13 +1741,13 @@ function pn(e, t, a, n, s) {
|
|
|
1741
1741
|
const l = r(e, a, t, s);
|
|
1742
1742
|
return A(l) ? l : t;
|
|
1743
1743
|
} else
|
|
1744
|
-
return process.env.NODE_ENV !== "production" &&
|
|
1744
|
+
return process.env.NODE_ENV !== "production" && Ps(n, t) && o(Je(ce.NOT_FOUND_KEY, { key: t, locale: a })), t;
|
|
1745
1745
|
}
|
|
1746
1746
|
function ht(e, t, a) {
|
|
1747
1747
|
const n = e;
|
|
1748
1748
|
n.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, a, t);
|
|
1749
1749
|
}
|
|
1750
|
-
function
|
|
1750
|
+
function Rs(e, t) {
|
|
1751
1751
|
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
1752
1752
|
}
|
|
1753
1753
|
function ul(e, t) {
|
|
@@ -1755,19 +1755,19 @@ function ul(e, t) {
|
|
|
1755
1755
|
if (a === -1)
|
|
1756
1756
|
return !1;
|
|
1757
1757
|
for (let n = a + 1; n < t.length; n++)
|
|
1758
|
-
if (
|
|
1758
|
+
if (Rs(e, t[n]))
|
|
1759
1759
|
return !0;
|
|
1760
1760
|
return !1;
|
|
1761
1761
|
}
|
|
1762
|
-
const
|
|
1763
|
-
dateTimeFormat:
|
|
1764
|
-
numberFormat:
|
|
1762
|
+
const Hn = typeof Intl < "u", ws = {
|
|
1763
|
+
dateTimeFormat: Hn && typeof Intl.DateTimeFormat < "u",
|
|
1764
|
+
numberFormat: Hn && typeof Intl.NumberFormat < "u"
|
|
1765
1765
|
};
|
|
1766
|
-
function
|
|
1766
|
+
function Wn(e, ...t) {
|
|
1767
1767
|
const { datetimeFormats: a, unresolving: n, fallbackLocale: s, onWarn: r, localeFallbacker: o } = e, { __datetimeFormatters: l } = e;
|
|
1768
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
1768
|
+
if (process.env.NODE_ENV !== "production" && !ws.dateTimeFormat)
|
|
1769
1769
|
return r(Je(ce.CANNOT_FORMAT_DATE)), Xt;
|
|
1770
|
-
const [i, c, m, g] =
|
|
1770
|
+
const [i, c, m, g] = Ha(...t), p = x(m.missingWarn) ? m.missingWarn : e.missingWarn, I = x(m.fallbackWarn) ? m.fallbackWarn : e.fallbackWarn, P = !!m.part, S = fn(e, m), O = o(
|
|
1771
1771
|
e,
|
|
1772
1772
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1773
1773
|
s,
|
|
@@ -1775,10 +1775,10 @@ function Kn(e, ...t) {
|
|
|
1775
1775
|
);
|
|
1776
1776
|
if (!A(i) || i === "")
|
|
1777
1777
|
return new Intl.DateTimeFormat(S, g).format(c);
|
|
1778
|
-
let d = {}, _,
|
|
1778
|
+
let d = {}, _, y = null, E = S, b = null;
|
|
1779
1779
|
const L = "datetime format";
|
|
1780
1780
|
for (let M = 0; M < O.length; M++) {
|
|
1781
|
-
if (_ = b = O[M], process.env.NODE_ENV !== "production" && S !== _ && ra(
|
|
1781
|
+
if (_ = b = O[M], process.env.NODE_ENV !== "production" && S !== _ && ra(I, i) && r(Je(ce.FALLBACK_TO_DATE_FORMAT, {
|
|
1782
1782
|
key: i,
|
|
1783
1783
|
target: _
|
|
1784
1784
|
})), process.env.NODE_ENV !== "production" && S !== _) {
|
|
@@ -1791,18 +1791,18 @@ function Kn(e, ...t) {
|
|
|
1791
1791
|
groupId: `${L}:${i}`
|
|
1792
1792
|
});
|
|
1793
1793
|
}
|
|
1794
|
-
if (d = a[_] || {},
|
|
1794
|
+
if (d = a[_] || {}, y = d[i], F(y))
|
|
1795
1795
|
break;
|
|
1796
|
-
|
|
1796
|
+
dn(e, i, _, p, L), E = b;
|
|
1797
1797
|
}
|
|
1798
|
-
if (!F(
|
|
1798
|
+
if (!F(y) || !A(_))
|
|
1799
1799
|
return n ? sa : i;
|
|
1800
1800
|
let v = `${_}__${i}`;
|
|
1801
1801
|
na(g) || (v = `${v}__${JSON.stringify(g)}`);
|
|
1802
1802
|
let C = l.get(v);
|
|
1803
|
-
return C || (C = new Intl.DateTimeFormat(_, te({},
|
|
1803
|
+
return C || (C = new Intl.DateTimeFormat(_, te({}, y, g)), l.set(v, C)), P ? C.formatToParts(c) : C.format(c);
|
|
1804
1804
|
}
|
|
1805
|
-
const
|
|
1805
|
+
const ks = [
|
|
1806
1806
|
"localeMatcher",
|
|
1807
1807
|
"weekday",
|
|
1808
1808
|
"era",
|
|
@@ -1824,7 +1824,7 @@ const Cs = [
|
|
|
1824
1824
|
"hourCycle",
|
|
1825
1825
|
"fractionalSecondDigits"
|
|
1826
1826
|
];
|
|
1827
|
-
function
|
|
1827
|
+
function Ha(...e) {
|
|
1828
1828
|
const [t, a, n, s] = e, r = W();
|
|
1829
1829
|
let o = W(), l;
|
|
1830
1830
|
if (A(t)) {
|
|
@@ -1847,21 +1847,21 @@ function Wa(...e) {
|
|
|
1847
1847
|
else
|
|
1848
1848
|
throw we(oe.INVALID_ARGUMENT);
|
|
1849
1849
|
return A(a) ? r.key = a : F(a) && Object.keys(a).forEach((i) => {
|
|
1850
|
-
|
|
1850
|
+
ks.includes(i) ? o[i] = a[i] : r[i] = a[i];
|
|
1851
1851
|
}), A(n) ? r.locale = n : F(n) && (o = n), F(s) && (o = s), [r.key || "", l, r, o];
|
|
1852
1852
|
}
|
|
1853
|
-
function
|
|
1853
|
+
function Gn(e, t, a) {
|
|
1854
1854
|
const n = e;
|
|
1855
1855
|
for (const s in a) {
|
|
1856
1856
|
const r = `${t}__${s}`;
|
|
1857
1857
|
n.__datetimeFormatters.has(r) && n.__datetimeFormatters.delete(r);
|
|
1858
1858
|
}
|
|
1859
1859
|
}
|
|
1860
|
-
function
|
|
1860
|
+
function Kn(e, ...t) {
|
|
1861
1861
|
const { numberFormats: a, unresolving: n, fallbackLocale: s, onWarn: r, localeFallbacker: o } = e, { __numberFormatters: l } = e;
|
|
1862
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
1862
|
+
if (process.env.NODE_ENV !== "production" && !ws.numberFormat)
|
|
1863
1863
|
return r(Je(ce.CANNOT_FORMAT_NUMBER)), Xt;
|
|
1864
|
-
const [i, c, m, g] =
|
|
1864
|
+
const [i, c, m, g] = Wa(...t), p = x(m.missingWarn) ? m.missingWarn : e.missingWarn, I = x(m.fallbackWarn) ? m.fallbackWarn : e.fallbackWarn, P = !!m.part, S = fn(e, m), O = o(
|
|
1865
1865
|
e,
|
|
1866
1866
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1867
1867
|
s,
|
|
@@ -1869,10 +1869,10 @@ function jn(e, ...t) {
|
|
|
1869
1869
|
);
|
|
1870
1870
|
if (!A(i) || i === "")
|
|
1871
1871
|
return new Intl.NumberFormat(S, g).format(c);
|
|
1872
|
-
let d = {}, _,
|
|
1872
|
+
let d = {}, _, y = null, E = S, b = null;
|
|
1873
1873
|
const L = "number format";
|
|
1874
1874
|
for (let M = 0; M < O.length; M++) {
|
|
1875
|
-
if (_ = b = O[M], process.env.NODE_ENV !== "production" && S !== _ && ra(
|
|
1875
|
+
if (_ = b = O[M], process.env.NODE_ENV !== "production" && S !== _ && ra(I, i) && r(Je(ce.FALLBACK_TO_NUMBER_FORMAT, {
|
|
1876
1876
|
key: i,
|
|
1877
1877
|
target: _
|
|
1878
1878
|
})), process.env.NODE_ENV !== "production" && S !== _) {
|
|
@@ -1885,18 +1885,18 @@ function jn(e, ...t) {
|
|
|
1885
1885
|
groupId: `${L}:${i}`
|
|
1886
1886
|
});
|
|
1887
1887
|
}
|
|
1888
|
-
if (d = a[_] || {},
|
|
1888
|
+
if (d = a[_] || {}, y = d[i], F(y))
|
|
1889
1889
|
break;
|
|
1890
|
-
|
|
1890
|
+
dn(e, i, _, p, L), E = b;
|
|
1891
1891
|
}
|
|
1892
|
-
if (!F(
|
|
1892
|
+
if (!F(y) || !A(_))
|
|
1893
1893
|
return n ? sa : i;
|
|
1894
1894
|
let v = `${_}__${i}`;
|
|
1895
1895
|
na(g) || (v = `${v}__${JSON.stringify(g)}`);
|
|
1896
1896
|
let C = l.get(v);
|
|
1897
|
-
return C || (C = new Intl.NumberFormat(_, te({},
|
|
1897
|
+
return C || (C = new Intl.NumberFormat(_, te({}, y, g)), l.set(v, C)), P ? C.formatToParts(c) : C.format(c);
|
|
1898
1898
|
}
|
|
1899
|
-
const
|
|
1899
|
+
const Ds = [
|
|
1900
1900
|
"localeMatcher",
|
|
1901
1901
|
"style",
|
|
1902
1902
|
"currency",
|
|
@@ -1918,25 +1918,25 @@ const Fs = [
|
|
|
1918
1918
|
"roundingIncrement",
|
|
1919
1919
|
"trailingZeroDisplay"
|
|
1920
1920
|
];
|
|
1921
|
-
function
|
|
1921
|
+
function Wa(...e) {
|
|
1922
1922
|
const [t, a, n, s] = e, r = W();
|
|
1923
1923
|
let o = W();
|
|
1924
1924
|
if (!ee(t))
|
|
1925
1925
|
throw we(oe.INVALID_ARGUMENT);
|
|
1926
1926
|
const l = t;
|
|
1927
1927
|
return A(a) ? r.key = a : F(a) && Object.keys(a).forEach((i) => {
|
|
1928
|
-
|
|
1928
|
+
Ds.includes(i) ? o[i] = a[i] : r[i] = a[i];
|
|
1929
1929
|
}), A(n) ? r.locale = n : F(n) && (o = n), F(s) && (o = s), [r.key || "", l, r, o];
|
|
1930
1930
|
}
|
|
1931
|
-
function
|
|
1931
|
+
function Yn(e, t, a) {
|
|
1932
1932
|
const n = e;
|
|
1933
1933
|
for (const s in a) {
|
|
1934
1934
|
const r = `${t}__${s}`;
|
|
1935
1935
|
n.__numberFormatters.has(r) && n.__numberFormatters.delete(r);
|
|
1936
1936
|
}
|
|
1937
1937
|
}
|
|
1938
|
-
const fl = (e) => e, dl = (e) => "", ml = "text", pl = (e) => e.length === 0 ? "" :
|
|
1939
|
-
function
|
|
1938
|
+
const fl = (e) => e, dl = (e) => "", ml = "text", pl = (e) => e.length === 0 ? "" : on(e), _l = Yr;
|
|
1939
|
+
function Bn(e, t) {
|
|
1940
1940
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1941
1941
|
}
|
|
1942
1942
|
function gl(e) {
|
|
@@ -1947,21 +1947,21 @@ function hl(e, t) {
|
|
|
1947
1947
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
1948
1948
|
}
|
|
1949
1949
|
function El(e = {}) {
|
|
1950
|
-
const t = e.locale, a = gl(e), n = U(e.pluralRules) && A(t) && G(e.pluralRules[t]) ? e.pluralRules[t] :
|
|
1950
|
+
const t = e.locale, a = gl(e), n = U(e.pluralRules) && A(t) && G(e.pluralRules[t]) ? e.pluralRules[t] : Bn, s = U(e.pluralRules) && A(t) && G(e.pluralRules[t]) ? Bn : void 0, r = (d) => d[n(a, d.length, s)], o = e.list || [], l = (d) => o[d], i = e.named || W();
|
|
1951
1951
|
ee(e.pluralIndex) && hl(a, i);
|
|
1952
1952
|
const c = (d) => i[d];
|
|
1953
1953
|
function m(d, _) {
|
|
1954
|
-
const
|
|
1955
|
-
return
|
|
1954
|
+
const y = G(e.messages) ? e.messages(d, !!_) : U(e.messages) ? e.messages[d] : !1;
|
|
1955
|
+
return y || (e.parent ? e.parent.message(d) : dl);
|
|
1956
1956
|
}
|
|
1957
|
-
const g = (d) => e.modifiers ? e.modifiers[d] : fl, p = F(e.processor) && G(e.processor.normalize) ? e.processor.normalize : pl,
|
|
1957
|
+
const g = (d) => e.modifiers ? e.modifiers[d] : fl, p = F(e.processor) && G(e.processor.normalize) ? e.processor.normalize : pl, I = F(e.processor) && G(e.processor.interpolate) ? e.processor.interpolate : _l, P = F(e.processor) && A(e.processor.type) ? e.processor.type : ml, O = {
|
|
1958
1958
|
list: l,
|
|
1959
1959
|
named: c,
|
|
1960
1960
|
plural: r,
|
|
1961
1961
|
linked: (d, ..._) => {
|
|
1962
|
-
const [
|
|
1962
|
+
const [y, E] = _;
|
|
1963
1963
|
let b = "text", L = "";
|
|
1964
|
-
_.length === 1 ? U(
|
|
1964
|
+
_.length === 1 ? U(y) ? (L = y.modifier || L, b = y.type || b) : A(y) && (L = y || L) : _.length === 2 && (A(y) && (L = y || L), A(E) && (b = E || b));
|
|
1965
1965
|
const v = m(d, !0)(O), C = (
|
|
1966
1966
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1967
1967
|
b === "vnode" && J(v) && L ? v[0] : v
|
|
@@ -1970,32 +1970,32 @@ function El(e = {}) {
|
|
|
1970
1970
|
},
|
|
1971
1971
|
message: m,
|
|
1972
1972
|
type: P,
|
|
1973
|
-
interpolate:
|
|
1973
|
+
interpolate: I,
|
|
1974
1974
|
normalize: p,
|
|
1975
1975
|
values: te(W(), o, i)
|
|
1976
1976
|
};
|
|
1977
1977
|
return O;
|
|
1978
1978
|
}
|
|
1979
|
-
const
|
|
1980
|
-
function
|
|
1981
|
-
const { fallbackFormat: a, postTranslation: n, unresolving: s, messageCompiler: r, fallbackLocale: o, messages: l } = e, [i, c] =
|
|
1979
|
+
const jn = () => "", pe = (e) => G(e);
|
|
1980
|
+
function Jn(e, ...t) {
|
|
1981
|
+
const { fallbackFormat: a, postTranslation: n, unresolving: s, messageCompiler: r, fallbackLocale: o, messages: l } = e, [i, c] = Ga(...t), m = x(c.missingWarn) ? c.missingWarn : e.missingWarn, g = x(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, p = x(c.escapeParameter) ? c.escapeParameter : e.escapeParameter, I = !!c.resolvedMessage, P = A(c.default) || x(c.default) ? x(c.default) ? r ? i : () => i : c.default : a ? r ? i : () => i : null, S = a || P != null && (A(P) || G(P)), O = fn(e, c);
|
|
1982
1982
|
p && vl(c);
|
|
1983
|
-
let [d, _,
|
|
1983
|
+
let [d, _, y] = I ? [
|
|
1984
1984
|
i,
|
|
1985
1985
|
O,
|
|
1986
1986
|
l[O] || W()
|
|
1987
|
-
] :
|
|
1988
|
-
if (!
|
|
1987
|
+
] : Cs(e, i, O, o, g, m), E = d, b = i;
|
|
1988
|
+
if (!I && !(A(E) || he(E) || pe(E)) && S && (E = P, b = E), !I && (!(A(E) || he(E) || pe(E)) || !A(_)))
|
|
1989
1989
|
return s ? sa : i;
|
|
1990
1990
|
if (process.env.NODE_ENV !== "production" && A(E) && e.messageCompiler == null)
|
|
1991
1991
|
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 '${i}'.`), i;
|
|
1992
1992
|
let L = !1;
|
|
1993
1993
|
const v = () => {
|
|
1994
1994
|
L = !0;
|
|
1995
|
-
}, C = pe(E) ? E :
|
|
1995
|
+
}, C = pe(E) ? E : Fs(e, i, _, E, b, v);
|
|
1996
1996
|
if (L)
|
|
1997
1997
|
return E;
|
|
1998
|
-
const M = Nl(e, _,
|
|
1998
|
+
const M = Nl(e, _, y, c), K = El(M), Ee = bl(e, C, K);
|
|
1999
1999
|
let Q = n ? n(Ee, i) : Ee;
|
|
2000
2000
|
if (p && A(Q) && (Q = Wr(Q)), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
2001
2001
|
const qe = {
|
|
@@ -2010,16 +2010,16 @@ function Xn(e, ...t) {
|
|
|
2010
2010
|
return Q;
|
|
2011
2011
|
}
|
|
2012
2012
|
function vl(e) {
|
|
2013
|
-
J(e.list) ? e.list = e.list.map((t) => A(t) ?
|
|
2014
|
-
A(e.named[t]) && (e.named[t] =
|
|
2013
|
+
J(e.list) ? e.list = e.list.map((t) => A(t) ? An(t) : t) : U(e.named) && Object.keys(e.named).forEach((t) => {
|
|
2014
|
+
A(e.named[t]) && (e.named[t] = An(e.named[t]));
|
|
2015
2015
|
});
|
|
2016
2016
|
}
|
|
2017
|
-
function
|
|
2017
|
+
function Cs(e, t, a, n, s, r) {
|
|
2018
2018
|
const { messages: o, onWarn: l, messageResolver: i, localeFallbacker: c } = e, m = c(e, n, a);
|
|
2019
|
-
let g = W(), p,
|
|
2019
|
+
let g = W(), p, I = null, P = a, S = null;
|
|
2020
2020
|
const O = "translate";
|
|
2021
2021
|
for (let d = 0; d < m.length; d++) {
|
|
2022
|
-
if (p = S = m[d], process.env.NODE_ENV !== "production" && a !== p && !
|
|
2022
|
+
if (p = S = m[d], process.env.NODE_ENV !== "production" && a !== p && !Rs(a, p) && ra(s, t) && l(Je(ce.FALLBACK_TO_TRANSLATE, {
|
|
2023
2023
|
key: t,
|
|
2024
2024
|
target: p
|
|
2025
2025
|
})), process.env.NODE_ENV !== "production" && a !== p) {
|
|
@@ -2033,21 +2033,21 @@ function Ms(e, t, a, n, s, r) {
|
|
|
2033
2033
|
});
|
|
2034
2034
|
}
|
|
2035
2035
|
g = o[p] || W();
|
|
2036
|
-
let _ = null,
|
|
2037
|
-
if (process.env.NODE_ENV !== "production" && Ne && (_ = window.performance.now(),
|
|
2036
|
+
let _ = null, y, E;
|
|
2037
|
+
if (process.env.NODE_ENV !== "production" && Ne && (_ = window.performance.now(), y = "intlify-message-resolve-start", E = "intlify-message-resolve-end", fe && fe(y)), (I = i(g, t)) === null && (I = g[t]), process.env.NODE_ENV !== "production" && Ne) {
|
|
2038
2038
|
const b = window.performance.now(), L = e.__v_emitter;
|
|
2039
|
-
L && _ &&
|
|
2039
|
+
L && _ && I && L.emit("message-resolve", {
|
|
2040
2040
|
type: "message-resolve",
|
|
2041
2041
|
key: t,
|
|
2042
|
-
message:
|
|
2042
|
+
message: I,
|
|
2043
2043
|
time: b - _,
|
|
2044
2044
|
groupId: `${O}:${t}`
|
|
2045
|
-
}),
|
|
2045
|
+
}), y && E && fe && je && (fe(E), je("intlify message resolve", y, E));
|
|
2046
2046
|
}
|
|
2047
|
-
if (A(
|
|
2047
|
+
if (A(I) || he(I) || pe(I))
|
|
2048
2048
|
break;
|
|
2049
2049
|
if (!ul(p, m)) {
|
|
2050
|
-
const b =
|
|
2050
|
+
const b = dn(
|
|
2051
2051
|
e,
|
|
2052
2052
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2053
2053
|
t,
|
|
@@ -2055,13 +2055,13 @@ function Ms(e, t, a, n, s, r) {
|
|
|
2055
2055
|
r,
|
|
2056
2056
|
O
|
|
2057
2057
|
);
|
|
2058
|
-
b !== t && (
|
|
2058
|
+
b !== t && (I = b);
|
|
2059
2059
|
}
|
|
2060
2060
|
P = S;
|
|
2061
2061
|
}
|
|
2062
|
-
return [
|
|
2062
|
+
return [I, p, g];
|
|
2063
2063
|
}
|
|
2064
|
-
function
|
|
2064
|
+
function Fs(e, t, a, n, s, r) {
|
|
2065
2065
|
const { messageCompiler: o, warnHtmlMessage: l } = e;
|
|
2066
2066
|
if (pe(n)) {
|
|
2067
2067
|
const p = n;
|
|
@@ -2072,22 +2072,22 @@ function Us(e, t, a, n, s, r) {
|
|
|
2072
2072
|
return p.locale = a, p.key = t, p;
|
|
2073
2073
|
}
|
|
2074
2074
|
let i = null, c, m;
|
|
2075
|
-
process.env.NODE_ENV !== "production" && Ne && (i = window.performance.now(), c = "intlify-message-compilation-start", m = "intlify-message-compilation-end",
|
|
2076
|
-
const g = o(n,
|
|
2075
|
+
process.env.NODE_ENV !== "production" && Ne && (i = window.performance.now(), c = "intlify-message-compilation-start", m = "intlify-message-compilation-end", fe && fe(c));
|
|
2076
|
+
const g = o(n, yl(e, a, s, n, l, r));
|
|
2077
2077
|
if (process.env.NODE_ENV !== "production" && Ne) {
|
|
2078
|
-
const p = window.performance.now(),
|
|
2079
|
-
|
|
2078
|
+
const p = window.performance.now(), I = e.__v_emitter;
|
|
2079
|
+
I && i && I.emit("message-compilation", {
|
|
2080
2080
|
type: "message-compilation",
|
|
2081
2081
|
message: n,
|
|
2082
2082
|
time: p - i,
|
|
2083
2083
|
groupId: `translate:${t}`
|
|
2084
|
-
}), c && m &&
|
|
2084
|
+
}), c && m && fe && je && (fe(m), je("intlify message compilation", c, m));
|
|
2085
2085
|
}
|
|
2086
2086
|
return g.locale = a, g.key = t, g.source = n, g;
|
|
2087
2087
|
}
|
|
2088
2088
|
function bl(e, t, a) {
|
|
2089
2089
|
let n = null, s, r;
|
|
2090
|
-
process.env.NODE_ENV !== "production" && Ne && (n = window.performance.now(), s = "intlify-message-evaluation-start", r = "intlify-message-evaluation-end",
|
|
2090
|
+
process.env.NODE_ENV !== "production" && Ne && (n = window.performance.now(), s = "intlify-message-evaluation-start", r = "intlify-message-evaluation-end", fe && fe(s));
|
|
2091
2091
|
const o = t(a);
|
|
2092
2092
|
if (process.env.NODE_ENV !== "production" && Ne) {
|
|
2093
2093
|
const l = window.performance.now(), i = e.__v_emitter;
|
|
@@ -2096,25 +2096,25 @@ function bl(e, t, a) {
|
|
|
2096
2096
|
value: o,
|
|
2097
2097
|
time: l - n,
|
|
2098
2098
|
groupId: `translate:${t.key}`
|
|
2099
|
-
}), s && r &&
|
|
2099
|
+
}), s && r && fe && je && (fe(r), je("intlify message evaluation", s, r));
|
|
2100
2100
|
}
|
|
2101
2101
|
return o;
|
|
2102
2102
|
}
|
|
2103
|
-
function
|
|
2103
|
+
function Ga(...e) {
|
|
2104
2104
|
const [t, a, n] = e, s = W();
|
|
2105
2105
|
if (!A(t) && !ee(t) && !pe(t) && !he(t))
|
|
2106
2106
|
throw we(oe.INVALID_ARGUMENT);
|
|
2107
2107
|
const r = ee(t) ? String(t) : (pe(t), t);
|
|
2108
2108
|
return ee(a) ? s.plural = a : A(a) ? s.default = a : F(a) && !na(a) ? s.named = a : J(a) && (s.list = a), ee(n) ? s.plural = n : A(n) ? s.default = n : F(n) && te(s, n), [r, s];
|
|
2109
2109
|
}
|
|
2110
|
-
function
|
|
2110
|
+
function yl(e, t, a, n, s, r) {
|
|
2111
2111
|
return {
|
|
2112
2112
|
locale: t,
|
|
2113
2113
|
key: a,
|
|
2114
2114
|
warnHtmlMessage: s,
|
|
2115
2115
|
onError: (o) => {
|
|
2116
2116
|
if (r && r(o), process.env.NODE_ENV !== "production") {
|
|
2117
|
-
const l =
|
|
2117
|
+
const l = Il(n), i = `Message compilation error: ${o.message}`, c = o.location && l && Br(l, o.location.start.offset, o.location.end.offset), m = e.__v_emitter;
|
|
2118
2118
|
m && l && m.emit("compile-error", {
|
|
2119
2119
|
message: l,
|
|
2120
2120
|
error: o.message,
|
|
@@ -2129,7 +2129,7 @@ ${c}` : i);
|
|
|
2129
2129
|
onCacheKey: (o) => xr(t, a, o)
|
|
2130
2130
|
};
|
|
2131
2131
|
}
|
|
2132
|
-
function
|
|
2132
|
+
function Il(e) {
|
|
2133
2133
|
if (A(e))
|
|
2134
2134
|
return e;
|
|
2135
2135
|
if (e.loc && e.loc.source)
|
|
@@ -2140,46 +2140,46 @@ function Nl(e, t, a, n) {
|
|
|
2140
2140
|
locale: t,
|
|
2141
2141
|
modifiers: s,
|
|
2142
2142
|
pluralRules: r,
|
|
2143
|
-
messages: (
|
|
2144
|
-
let S = o(a,
|
|
2143
|
+
messages: (I, P) => {
|
|
2144
|
+
let S = o(a, I);
|
|
2145
2145
|
if (S == null && (m || P)) {
|
|
2146
|
-
const [, , O] =
|
|
2146
|
+
const [, , O] = Cs(
|
|
2147
2147
|
m || e,
|
|
2148
2148
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
2149
|
-
|
|
2149
|
+
I,
|
|
2150
2150
|
t,
|
|
2151
2151
|
l,
|
|
2152
2152
|
i,
|
|
2153
2153
|
c
|
|
2154
2154
|
);
|
|
2155
|
-
S = o(O,
|
|
2155
|
+
S = o(O, I);
|
|
2156
2156
|
}
|
|
2157
2157
|
if (A(S) || he(S)) {
|
|
2158
2158
|
let O = !1;
|
|
2159
|
-
const _ =
|
|
2159
|
+
const _ = Fs(e, I, t, S, I, () => {
|
|
2160
2160
|
O = !0;
|
|
2161
2161
|
});
|
|
2162
|
-
return O ?
|
|
2163
|
-
} else return pe(S) ? S :
|
|
2162
|
+
return O ? jn : _;
|
|
2163
|
+
} else return pe(S) ? S : jn;
|
|
2164
2164
|
}
|
|
2165
2165
|
};
|
|
2166
2166
|
return e.processor && (p.processor = e.processor), n.list && (p.list = n.list), n.named && (p.named = n.named), ee(n.plural) && (p.pluralIndex = n.plural), p;
|
|
2167
2167
|
}
|
|
2168
2168
|
No();
|
|
2169
2169
|
function Sl() {
|
|
2170
|
-
return
|
|
2170
|
+
return Ms().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
2171
2171
|
}
|
|
2172
|
-
function
|
|
2172
|
+
function Ms() {
|
|
2173
2173
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
2174
2174
|
}
|
|
2175
2175
|
const Tl = typeof Proxy == "function", Ll = "devtools-plugin:setup", Ol = "plugin:settings:set";
|
|
2176
|
-
let Ze,
|
|
2176
|
+
let Ze, Ka;
|
|
2177
2177
|
function Al() {
|
|
2178
2178
|
var e;
|
|
2179
|
-
return Ze !== void 0 || (typeof window < "u" && window.performance ? (Ze = !0,
|
|
2179
|
+
return Ze !== void 0 || (typeof window < "u" && window.performance ? (Ze = !0, Ka = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (Ze = !0, Ka = globalThis.perf_hooks.performance) : Ze = !1), Ze;
|
|
2180
2180
|
}
|
|
2181
2181
|
function Pl() {
|
|
2182
|
-
return Al() ?
|
|
2182
|
+
return Al() ? Ka.now() : Date.now();
|
|
2183
2183
|
}
|
|
2184
2184
|
class Rl {
|
|
2185
2185
|
constructor(t, a) {
|
|
@@ -2244,7 +2244,7 @@ class Rl {
|
|
|
2244
2244
|
}
|
|
2245
2245
|
}
|
|
2246
2246
|
function wl(e, t) {
|
|
2247
|
-
const a = e, n =
|
|
2247
|
+
const a = e, n = Ms(), s = Sl(), r = Tl && a.enableEarlyProxy;
|
|
2248
2248
|
if (s && (n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !r))
|
|
2249
2249
|
s.emit(Ll, e, t);
|
|
2250
2250
|
else {
|
|
@@ -2302,7 +2302,7 @@ const Cl = {
|
|
|
2302
2302
|
[Y.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
|
|
2303
2303
|
[Y.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
|
2304
2304
|
[Y.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
|
|
2305
|
-
},
|
|
2305
|
+
}, Ya = /* @__PURE__ */ Oe("__translateVNode"), Ba = /* @__PURE__ */ Oe("__datetimeParts"), ja = /* @__PURE__ */ Oe("__numberParts"), Qe = /* @__PURE__ */ Oe("__enableEmitter"), Tt = /* @__PURE__ */ Oe("__disableEmitter"), Us = Oe("__setPluralRules"), xs = /* @__PURE__ */ Oe("__injectWithOption"), Ja = /* @__PURE__ */ Oe("__dispose"), _e = {
|
|
2306
2306
|
FALLBACK_TO_ROOT: Zo,
|
|
2307
2307
|
// 8
|
|
2308
2308
|
NOT_FOUND_PARENT_SCOPE: 9,
|
|
@@ -2356,32 +2356,32 @@ function Lt(e) {
|
|
|
2356
2356
|
}
|
|
2357
2357
|
s = s[a[o]];
|
|
2358
2358
|
}
|
|
2359
|
-
if (r || (he(s) ?
|
|
2359
|
+
if (r || (he(s) ? Is.includes(a[n]) || delete e[t] : (s[a[n]] = e[t], delete e[t])), !he(s)) {
|
|
2360
2360
|
const o = s[a[n]];
|
|
2361
2361
|
U(o) && Lt(o);
|
|
2362
2362
|
}
|
|
2363
2363
|
}
|
|
2364
2364
|
return e;
|
|
2365
2365
|
}
|
|
2366
|
-
function
|
|
2366
|
+
function mn(e, t) {
|
|
2367
2367
|
const { messages: a, __i18n: n, messageResolver: s, flatJson: r } = t, o = F(a) ? a : J(n) ? W() : { [e]: W() };
|
|
2368
2368
|
if (J(n) && n.forEach((l) => {
|
|
2369
2369
|
if ("locale" in l && "resource" in l) {
|
|
2370
2370
|
const { locale: i, resource: c } = l;
|
|
2371
|
-
i ? (o[i] = o[i] || W(),
|
|
2371
|
+
i ? (o[i] = o[i] || W(), Bt(c, o[i])) : Bt(c, o);
|
|
2372
2372
|
} else
|
|
2373
|
-
A(l) &&
|
|
2373
|
+
A(l) && Bt(JSON.parse(l), o);
|
|
2374
2374
|
}), s == null && r)
|
|
2375
2375
|
for (const l in o)
|
|
2376
2376
|
be(o, l) && Lt(o[l]);
|
|
2377
2377
|
return o;
|
|
2378
2378
|
}
|
|
2379
|
-
function
|
|
2379
|
+
function Vs(e) {
|
|
2380
2380
|
return e.type;
|
|
2381
2381
|
}
|
|
2382
|
-
function
|
|
2382
|
+
function $s(e, t, a) {
|
|
2383
2383
|
let n = U(t.messages) ? t.messages : W();
|
|
2384
|
-
"__i18nGlobal" in a && (n =
|
|
2384
|
+
"__i18nGlobal" in a && (n = mn(e.locale.value, {
|
|
2385
2385
|
messages: n,
|
|
2386
2386
|
__i18n: a.__i18nGlobal
|
|
2387
2387
|
}));
|
|
@@ -2404,24 +2404,24 @@ function Ws(e, t, a) {
|
|
|
2404
2404
|
}
|
|
2405
2405
|
}
|
|
2406
2406
|
}
|
|
2407
|
-
function
|
|
2407
|
+
function Qn(e) {
|
|
2408
2408
|
return Ye(gr, null, e, 0);
|
|
2409
2409
|
}
|
|
2410
2410
|
function st() {
|
|
2411
2411
|
const e = "currentInstance";
|
|
2412
2412
|
return e in Ra ? Ra[e] : Ra.getCurrentInstance();
|
|
2413
2413
|
}
|
|
2414
|
-
const
|
|
2415
|
-
let
|
|
2416
|
-
function
|
|
2414
|
+
const Xn = "__INTLIFY_META__", qn = () => [], Ml = () => !1;
|
|
2415
|
+
let zn = 0;
|
|
2416
|
+
function Zn(e) {
|
|
2417
2417
|
return ((t, a, n, s) => e(a, n, st() || void 0, s));
|
|
2418
2418
|
}
|
|
2419
2419
|
const Ul = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
2420
2420
|
const e = st();
|
|
2421
2421
|
let t = null;
|
|
2422
|
-
return e && (t =
|
|
2422
|
+
return e && (t = Vs(e)[Xn]) ? { [Xn]: t } : null;
|
|
2423
2423
|
};
|
|
2424
|
-
function
|
|
2424
|
+
function pn(e = {}) {
|
|
2425
2425
|
const { __root: t, __injectWithOption: a } = e, n = t === void 0, s = e.flatJson, r = Ne ? R : ke;
|
|
2426
2426
|
let o = x(e.inheritLocale) ? e.inheritLocale : !0;
|
|
2427
2427
|
const l = r(
|
|
@@ -2430,12 +2430,12 @@ function gn(e = {}) {
|
|
|
2430
2430
|
), i = r(
|
|
2431
2431
|
// prettier-ignore
|
|
2432
2432
|
t && o ? t.fallbackLocale.value : A(e.fallbackLocale) || J(e.fallbackLocale) || F(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l.value
|
|
2433
|
-
), c = r(
|
|
2434
|
-
let p = t ? t.missingWarn : x(e.missingWarn) || ot(e.missingWarn) ? e.missingWarn : !0,
|
|
2433
|
+
), c = r(mn(l.value, e)), m = r(F(e.datetimeFormats) ? e.datetimeFormats : { [l.value]: {} }), g = r(F(e.numberFormats) ? e.numberFormats : { [l.value]: {} });
|
|
2434
|
+
let p = t ? t.missingWarn : x(e.missingWarn) || ot(e.missingWarn) ? e.missingWarn : !0, I = t ? t.fallbackWarn : x(e.fallbackWarn) || ot(e.fallbackWarn) ? e.fallbackWarn : !0, P = t ? t.fallbackRoot : x(e.fallbackRoot) ? e.fallbackRoot : !0, S = !!e.fallbackFormat, O = G(e.missing) ? e.missing : null, d = G(e.missing) ? Zn(e.missing) : null, _ = G(e.postTranslation) ? e.postTranslation : null, y = t ? t.warnHtmlMessage : x(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, E = !!e.escapeParameter;
|
|
2435
2435
|
const b = t ? t.modifiers : F(e.modifiers) ? e.modifiers : {};
|
|
2436
2436
|
let L = e.pluralRules || t && t.pluralRules, v;
|
|
2437
2437
|
v = (() => {
|
|
2438
|
-
n &&
|
|
2438
|
+
n && Vn(null);
|
|
2439
2439
|
const h = {
|
|
2440
2440
|
version: kl,
|
|
2441
2441
|
locale: l.value,
|
|
@@ -2445,11 +2445,11 @@ function gn(e = {}) {
|
|
|
2445
2445
|
pluralRules: L,
|
|
2446
2446
|
missing: d === null ? void 0 : d,
|
|
2447
2447
|
missingWarn: p,
|
|
2448
|
-
fallbackWarn:
|
|
2448
|
+
fallbackWarn: I,
|
|
2449
2449
|
fallbackFormat: S,
|
|
2450
2450
|
unresolving: !0,
|
|
2451
2451
|
postTranslation: _ === null ? void 0 : _,
|
|
2452
|
-
warnHtmlMessage:
|
|
2452
|
+
warnHtmlMessage: y,
|
|
2453
2453
|
escapeParameter: E,
|
|
2454
2454
|
messageResolver: e.messageResolver,
|
|
2455
2455
|
messageCompiler: e.messageCompiler,
|
|
@@ -2457,7 +2457,7 @@ function gn(e = {}) {
|
|
|
2457
2457
|
};
|
|
2458
2458
|
h.datetimeFormats = m.value, h.numberFormats = g.value, h.__datetimeFormatters = F(v) ? v.__datetimeFormatters : void 0, h.__numberFormatters = F(v) ? v.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (h.__v_emitter = F(v) ? v.__v_emitter : void 0);
|
|
2459
2459
|
const T = cl(h);
|
|
2460
|
-
return n &&
|
|
2460
|
+
return n && Vn(T), T;
|
|
2461
2461
|
})(), ht(v, l.value, i.value);
|
|
2462
2462
|
function M() {
|
|
2463
2463
|
return [
|
|
@@ -2489,7 +2489,7 @@ function gn(e = {}) {
|
|
|
2489
2489
|
return O;
|
|
2490
2490
|
}
|
|
2491
2491
|
function va(h) {
|
|
2492
|
-
h !== null && (d =
|
|
2492
|
+
h !== null && (d = Zn(h)), O = h, v.missing = d;
|
|
2493
2493
|
}
|
|
2494
2494
|
function ba(h, T) {
|
|
2495
2495
|
return h !== "translate" || !T.resolvedMessage;
|
|
@@ -2505,12 +2505,12 @@ function gn(e = {}) {
|
|
|
2505
2505
|
if (H !== "translate exists" && // for not `te` (e.g `t`)
|
|
2506
2506
|
ee(ze) && ze === sa || H === "translate exists" && !ze) {
|
|
2507
2507
|
const [He, fr] = T();
|
|
2508
|
-
if (process.env.NODE_ENV !== "production" && t && A(He) && ba(H, fr) && (P && (ra(
|
|
2508
|
+
if (process.env.NODE_ENV !== "production" && t && A(He) && ba(H, fr) && (P && (ra(I, He) || Ps(p, He)) && Le(it(_e.FALLBACK_TO_ROOT, {
|
|
2509
2509
|
key: He,
|
|
2510
2510
|
type: H
|
|
2511
2511
|
})), process.env.NODE_ENV !== "production")) {
|
|
2512
|
-
const { __v_emitter:
|
|
2513
|
-
|
|
2512
|
+
const { __v_emitter: Nn } = v;
|
|
2513
|
+
Nn && P && Nn.emit("fallback", {
|
|
2514
2514
|
type: H,
|
|
2515
2515
|
key: He,
|
|
2516
2516
|
to: "global",
|
|
@@ -2525,22 +2525,22 @@ function gn(e = {}) {
|
|
|
2525
2525
|
}
|
|
2526
2526
|
};
|
|
2527
2527
|
function mt(...h) {
|
|
2528
|
-
return Ae((T) => Reflect.apply(
|
|
2528
|
+
return Ae((T) => Reflect.apply(Jn, null, [T, ...h]), () => Ga(...h), "translate", (T) => Reflect.apply(T.t, T, [...h]), (T) => T, (T) => A(T));
|
|
2529
2529
|
}
|
|
2530
|
-
function
|
|
2530
|
+
function ya(...h) {
|
|
2531
2531
|
const [T, H, z] = h;
|
|
2532
2532
|
if (z && !U(z))
|
|
2533
2533
|
throw ue(Y.INVALID_ARGUMENT);
|
|
2534
2534
|
return mt(T, H, te({ resolvedMessage: !0 }, z || {}));
|
|
2535
2535
|
}
|
|
2536
|
-
function
|
|
2537
|
-
return Ae((T) => Reflect.apply(
|
|
2536
|
+
function Ia(...h) {
|
|
2537
|
+
return Ae((T) => Reflect.apply(Wn, null, [T, ...h]), () => Ha(...h), "datetime format", (T) => Reflect.apply(T.d, T, [...h]), () => Xt, (T) => A(T) || J(T));
|
|
2538
2538
|
}
|
|
2539
2539
|
function Na(...h) {
|
|
2540
|
-
return Ae((T) => Reflect.apply(
|
|
2540
|
+
return Ae((T) => Reflect.apply(Kn, null, [T, ...h]), () => Wa(...h), "number format", (T) => Reflect.apply(T.n, T, [...h]), () => Xt, (T) => A(T) || J(T));
|
|
2541
2541
|
}
|
|
2542
2542
|
function Sa(h) {
|
|
2543
|
-
return h.map((T) => A(T) || ee(T) || x(T) ?
|
|
2543
|
+
return h.map((T) => A(T) || ee(T) || x(T) ? Qn(String(T)) : T);
|
|
2544
2544
|
}
|
|
2545
2545
|
const Ta = {
|
|
2546
2546
|
normalize: Sa,
|
|
@@ -2552,18 +2552,18 @@ function gn(e = {}) {
|
|
|
2552
2552
|
let H;
|
|
2553
2553
|
const z = T;
|
|
2554
2554
|
try {
|
|
2555
|
-
z.processor = Ta, H = Reflect.apply(
|
|
2555
|
+
z.processor = Ta, H = Reflect.apply(Jn, null, [z, ...h]);
|
|
2556
2556
|
} finally {
|
|
2557
2557
|
z.processor = null;
|
|
2558
2558
|
}
|
|
2559
2559
|
return H;
|
|
2560
|
-
}, () =>
|
|
2560
|
+
}, () => Ga(...h), "translate", (T) => T[Ya](...h), (T) => [Qn(T)], (T) => J(T));
|
|
2561
2561
|
}
|
|
2562
2562
|
function La(...h) {
|
|
2563
|
-
return Ae((T) => Reflect.apply(
|
|
2563
|
+
return Ae((T) => Reflect.apply(Kn, null, [T, ...h]), () => Wa(...h), "number format", (T) => T[ja](...h), qn, (T) => A(T) || J(T));
|
|
2564
2564
|
}
|
|
2565
2565
|
function Vt(...h) {
|
|
2566
|
-
return Ae((T) => Reflect.apply(
|
|
2566
|
+
return Ae((T) => Reflect.apply(Wn, null, [T, ...h]), () => Ha(...h), "datetime format", (T) => T[Ba](...h), qn, (T) => A(T) || J(T));
|
|
2567
2567
|
}
|
|
2568
2568
|
function Oa(h) {
|
|
2569
2569
|
L = h, v.pluralRules = L;
|
|
@@ -2578,7 +2578,7 @@ function gn(e = {}) {
|
|
|
2578
2578
|
}
|
|
2579
2579
|
function pt(h) {
|
|
2580
2580
|
let T = null;
|
|
2581
|
-
const H =
|
|
2581
|
+
const H = Ns(v, i.value, l.value);
|
|
2582
2582
|
for (let z = 0; z < H.length; z++) {
|
|
2583
2583
|
const $e = c.value[H[z]] || {}, $t = v.messageResolver($e, h);
|
|
2584
2584
|
if ($t != null) {
|
|
@@ -2610,33 +2610,33 @@ function gn(e = {}) {
|
|
|
2610
2610
|
if (s)
|
|
2611
2611
|
for (const z in H)
|
|
2612
2612
|
be(H, z) && Lt(H[z]);
|
|
2613
|
-
T = H[h],
|
|
2613
|
+
T = H[h], Bt(T, c.value[h]), v.messages = c.value;
|
|
2614
2614
|
}
|
|
2615
2615
|
function u(h) {
|
|
2616
2616
|
return m.value[h] || {};
|
|
2617
2617
|
}
|
|
2618
2618
|
function f(h, T) {
|
|
2619
|
-
m.value[h] = T, v.datetimeFormats = m.value,
|
|
2619
|
+
m.value[h] = T, v.datetimeFormats = m.value, Gn(v, h, T);
|
|
2620
2620
|
}
|
|
2621
2621
|
function N(h, T) {
|
|
2622
|
-
m.value[h] = te(m.value[h] || {}, T), v.datetimeFormats = m.value,
|
|
2622
|
+
m.value[h] = te(m.value[h] || {}, T), v.datetimeFormats = m.value, Gn(v, h, T);
|
|
2623
2623
|
}
|
|
2624
2624
|
function k(h) {
|
|
2625
2625
|
return g.value[h] || {};
|
|
2626
2626
|
}
|
|
2627
|
-
function
|
|
2628
|
-
g.value[h] = T, v.numberFormats = g.value,
|
|
2627
|
+
function j(h, T) {
|
|
2628
|
+
g.value[h] = T, v.numberFormats = g.value, Yn(v, h, T);
|
|
2629
2629
|
}
|
|
2630
2630
|
function q(h, T) {
|
|
2631
|
-
g.value[h] = te(g.value[h] || {}, T), v.numberFormats = g.value,
|
|
2631
|
+
g.value[h] = te(g.value[h] || {}, T), v.numberFormats = g.value, Yn(v, h, T);
|
|
2632
2632
|
}
|
|
2633
|
-
|
|
2633
|
+
zn++, t && Ne && (B(t.locale, (h) => {
|
|
2634
2634
|
o && (l.value = h, v.locale = h, ht(v, l.value, i.value));
|
|
2635
|
-
}),
|
|
2635
|
+
}), B(t.fallbackLocale, (h) => {
|
|
2636
2636
|
o && (i.value = h, v.fallbackLocale = h, ht(v, l.value, i.value));
|
|
2637
2637
|
}));
|
|
2638
2638
|
const V = {
|
|
2639
|
-
id:
|
|
2639
|
+
id: zn,
|
|
2640
2640
|
locale: K,
|
|
2641
2641
|
fallbackLocale: Ee,
|
|
2642
2642
|
get inheritLocale() {
|
|
@@ -2665,10 +2665,10 @@ function gn(e = {}) {
|
|
|
2665
2665
|
p = h, v.missingWarn = p;
|
|
2666
2666
|
},
|
|
2667
2667
|
get fallbackWarn() {
|
|
2668
|
-
return
|
|
2668
|
+
return I;
|
|
2669
2669
|
},
|
|
2670
2670
|
set fallbackWarn(h) {
|
|
2671
|
-
|
|
2671
|
+
I = h, v.fallbackWarn = I;
|
|
2672
2672
|
},
|
|
2673
2673
|
get fallbackRoot() {
|
|
2674
2674
|
return P;
|
|
@@ -2683,10 +2683,10 @@ function gn(e = {}) {
|
|
|
2683
2683
|
S = h, v.fallbackFormat = S;
|
|
2684
2684
|
},
|
|
2685
2685
|
get warnHtmlMessage() {
|
|
2686
|
-
return
|
|
2686
|
+
return y;
|
|
2687
2687
|
},
|
|
2688
2688
|
set warnHtmlMessage(h) {
|
|
2689
|
-
|
|
2689
|
+
y = h, v.warnHtmlMessage = h;
|
|
2690
2690
|
},
|
|
2691
2691
|
get escapeParameter() {
|
|
2692
2692
|
return E;
|
|
@@ -2702,15 +2702,15 @@ function gn(e = {}) {
|
|
|
2702
2702
|
setPostTranslationHandler: ha,
|
|
2703
2703
|
getMissingHandler: Ea,
|
|
2704
2704
|
setMissingHandler: va,
|
|
2705
|
-
[
|
|
2705
|
+
[Us]: Oa
|
|
2706
2706
|
};
|
|
2707
|
-
return V.datetimeFormats = qe, V.numberFormats = _a, V.rt =
|
|
2707
|
+
return V.datetimeFormats = qe, V.numberFormats = _a, V.rt = ya, V.te = Aa, V.tm = _t, V.d = Ia, V.n = Na, V.getDateTimeFormat = u, V.setDateTimeFormat = f, V.mergeDateTimeFormat = N, V.getNumberFormat = k, V.setNumberFormat = j, V.mergeNumberFormat = q, V[xs] = a, V[Ya] = xt, V[Ba] = Vt, V[ja] = La, process.env.NODE_ENV !== "production" && (V[Qe] = (h) => {
|
|
2708
2708
|
v.__v_emitter = h;
|
|
2709
2709
|
}, V[Tt] = () => {
|
|
2710
2710
|
v.__v_emitter = void 0;
|
|
2711
2711
|
}), V;
|
|
2712
2712
|
}
|
|
2713
|
-
const
|
|
2713
|
+
const Hs = "vue-i18n: composer properties", Ma = {
|
|
2714
2714
|
"vue-devtools-plugin-vue-i18n": "Vue I18n DevTools",
|
|
2715
2715
|
"vue-i18n-resource-inspector": "Vue I18n DevTools",
|
|
2716
2716
|
"vue-i18n-timeline": "Vue I18n"
|
|
@@ -2719,7 +2719,7 @@ const Gs = "vue-i18n: composer properties", Ma = {
|
|
|
2719
2719
|
}, Vl = {
|
|
2720
2720
|
"vue-i18n-timeline": 16764185
|
|
2721
2721
|
};
|
|
2722
|
-
let
|
|
2722
|
+
let Qa;
|
|
2723
2723
|
async function $l(e, t) {
|
|
2724
2724
|
return new Promise((a, n) => {
|
|
2725
2725
|
try {
|
|
@@ -2729,21 +2729,21 @@ async function $l(e, t) {
|
|
|
2729
2729
|
packageName: "vue-i18n",
|
|
2730
2730
|
homepage: "https://vue-i18n.intlify.dev",
|
|
2731
2731
|
logo: "https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",
|
|
2732
|
-
componentStateTypes: [
|
|
2732
|
+
componentStateTypes: [Hs],
|
|
2733
2733
|
app: e
|
|
2734
2734
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2735
2735
|
}, (s) => {
|
|
2736
|
-
|
|
2736
|
+
Qa = s, s.on.visitComponentTree(({ componentInstance: o, treeNode: l }) => {
|
|
2737
2737
|
Hl(o, l, t);
|
|
2738
2738
|
}), s.on.inspectComponent(({ componentInstance: o, instanceData: l }) => {
|
|
2739
|
-
o.__VUE_I18N__ && l && (t.mode === "legacy" ? o.__VUE_I18N__ !== t.global.__composer &&
|
|
2739
|
+
o.__VUE_I18N__ && l && (t.mode === "legacy" ? o.__VUE_I18N__ !== t.global.__composer && es(l, o.__VUE_I18N__) : es(l, o.__VUE_I18N__));
|
|
2740
2740
|
}), s.addInspector({
|
|
2741
2741
|
id: "vue-i18n-resource-inspector",
|
|
2742
2742
|
label: Ma["vue-i18n-resource-inspector"],
|
|
2743
2743
|
icon: "language",
|
|
2744
2744
|
treeFilterPlaceholder: xl["vue-i18n-resource-inspector"]
|
|
2745
2745
|
}), s.on.getInspectorTree((o) => {
|
|
2746
|
-
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" &&
|
|
2746
|
+
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" && Bl(o, t);
|
|
2747
2747
|
});
|
|
2748
2748
|
const r = /* @__PURE__ */ new Map();
|
|
2749
2749
|
s.on.getInspectorState(async (o) => {
|
|
@@ -2755,7 +2755,7 @@ async function $l(e, t) {
|
|
|
2755
2755
|
}
|
|
2756
2756
|
s.highlightElement(r.get(o.app));
|
|
2757
2757
|
} else {
|
|
2758
|
-
const l =
|
|
2758
|
+
const l = jl(o.nodeId, t);
|
|
2759
2759
|
l && s.highlightElement(l);
|
|
2760
2760
|
}
|
|
2761
2761
|
}), s.on.editInspectorState((o) => {
|
|
@@ -2771,22 +2771,22 @@ async function $l(e, t) {
|
|
|
2771
2771
|
}
|
|
2772
2772
|
});
|
|
2773
2773
|
}
|
|
2774
|
-
function
|
|
2774
|
+
function Ws(e) {
|
|
2775
2775
|
return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
|
|
2776
2776
|
}
|
|
2777
2777
|
function Hl(e, t, a) {
|
|
2778
2778
|
const n = a.mode === "composition" ? a.global : a.global.__composer;
|
|
2779
2779
|
if (e && e.__VUE_I18N__ && e.__VUE_I18N__ !== n) {
|
|
2780
2780
|
const s = {
|
|
2781
|
-
label: `i18n (${
|
|
2781
|
+
label: `i18n (${Ws(e)} Scope)`,
|
|
2782
2782
|
textColor: 0,
|
|
2783
2783
|
backgroundColor: 16764185
|
|
2784
2784
|
};
|
|
2785
2785
|
t.tags.push(s);
|
|
2786
2786
|
}
|
|
2787
2787
|
}
|
|
2788
|
-
function
|
|
2789
|
-
const a =
|
|
2788
|
+
function es(e, t) {
|
|
2789
|
+
const a = Hs;
|
|
2790
2790
|
e.state.push({
|
|
2791
2791
|
type: a,
|
|
2792
2792
|
key: "locale",
|
|
@@ -2811,7 +2811,7 @@ function as(e, t) {
|
|
|
2811
2811
|
type: a,
|
|
2812
2812
|
key: "messages",
|
|
2813
2813
|
editable: !1,
|
|
2814
|
-
value:
|
|
2814
|
+
value: _n(t.messages.value)
|
|
2815
2815
|
}), e.state.push({
|
|
2816
2816
|
type: a,
|
|
2817
2817
|
key: "datetimeFormats",
|
|
@@ -2824,11 +2824,11 @@ function as(e, t) {
|
|
|
2824
2824
|
value: t.numberFormats.value
|
|
2825
2825
|
});
|
|
2826
2826
|
}
|
|
2827
|
-
function
|
|
2827
|
+
function _n(e) {
|
|
2828
2828
|
const t = {};
|
|
2829
2829
|
return Object.keys(e).forEach((a) => {
|
|
2830
2830
|
const n = e[a];
|
|
2831
|
-
G(n) && "source" in n ? t[a] = Yl(n) : he(n) && n.loc && n.loc.source ? t[a] = n.loc.source : U(n) ? t[a] =
|
|
2831
|
+
G(n) && "source" in n ? t[a] = Yl(n) : he(n) && n.loc && n.loc.source ? t[a] = n.loc.source : U(n) ? t[a] = _n(n) : t[a] = n;
|
|
2832
2832
|
}), t;
|
|
2833
2833
|
}
|
|
2834
2834
|
const Wl = {
|
|
@@ -2851,7 +2851,7 @@ function Yl(e) {
|
|
|
2851
2851
|
}
|
|
2852
2852
|
};
|
|
2853
2853
|
}
|
|
2854
|
-
function
|
|
2854
|
+
function Bl(e, t) {
|
|
2855
2855
|
e.rootNodes.push({
|
|
2856
2856
|
id: "global",
|
|
2857
2857
|
label: "Global Scope"
|
|
@@ -2861,11 +2861,11 @@ function jl(e, t) {
|
|
|
2861
2861
|
const r = t.mode === "composition" ? s : s.__composer;
|
|
2862
2862
|
a !== r && e.rootNodes.push({
|
|
2863
2863
|
id: r.id.toString(),
|
|
2864
|
-
label: `${
|
|
2864
|
+
label: `${Ws(n)} Scope`
|
|
2865
2865
|
});
|
|
2866
2866
|
}
|
|
2867
2867
|
}
|
|
2868
|
-
function
|
|
2868
|
+
function jl(e, t) {
|
|
2869
2869
|
let a = null;
|
|
2870
2870
|
if (e !== "global") {
|
|
2871
2871
|
for (const [n, s] of t.__instances.entries())
|
|
@@ -2876,7 +2876,7 @@ function Bl(e, t) {
|
|
|
2876
2876
|
}
|
|
2877
2877
|
return a;
|
|
2878
2878
|
}
|
|
2879
|
-
function
|
|
2879
|
+
function Gs(e, t) {
|
|
2880
2880
|
if (e === "global")
|
|
2881
2881
|
return t.mode === "composition" ? t.global : t.global.__composer;
|
|
2882
2882
|
{
|
|
@@ -2885,7 +2885,7 @@ function Ys(e, t) {
|
|
|
2885
2885
|
}
|
|
2886
2886
|
}
|
|
2887
2887
|
function Jl(e, t) {
|
|
2888
|
-
const a =
|
|
2888
|
+
const a = Gs(e.nodeId, t);
|
|
2889
2889
|
return a && (e.state = Ql(a)), null;
|
|
2890
2890
|
}
|
|
2891
2891
|
function Ql(e) {
|
|
@@ -2921,7 +2921,7 @@ function Ql(e) {
|
|
|
2921
2921
|
type: s,
|
|
2922
2922
|
key: "messages",
|
|
2923
2923
|
editable: !1,
|
|
2924
|
-
value:
|
|
2924
|
+
value: _n(e.messages.value)
|
|
2925
2925
|
}
|
|
2926
2926
|
];
|
|
2927
2927
|
t[s] = r;
|
|
@@ -2948,9 +2948,9 @@ function Ql(e) {
|
|
|
2948
2948
|
return t;
|
|
2949
2949
|
}
|
|
2950
2950
|
function Ot(e, t) {
|
|
2951
|
-
if (
|
|
2951
|
+
if (Qa) {
|
|
2952
2952
|
let a;
|
|
2953
|
-
t && "groupId" in t && (a = t.groupId, delete t.groupId),
|
|
2953
|
+
t && "groupId" in t && (a = t.groupId, delete t.groupId), Qa.addTimelineEvent({
|
|
2954
2954
|
layerId: "vue-i18n-timeline",
|
|
2955
2955
|
event: {
|
|
2956
2956
|
title: e,
|
|
@@ -2964,14 +2964,14 @@ function Ot(e, t) {
|
|
|
2964
2964
|
}
|
|
2965
2965
|
}
|
|
2966
2966
|
function Xl(e, t) {
|
|
2967
|
-
const a =
|
|
2967
|
+
const a = Gs(e.nodeId, t);
|
|
2968
2968
|
if (a) {
|
|
2969
2969
|
const [n] = e.path;
|
|
2970
2970
|
n === "locale" && A(e.state.value) ? a.locale.value = e.state.value : n === "fallbackLocale" && (A(e.state.value) || J(e.state.value) || U(e.state.value)) ? a.fallbackLocale.value = e.state.value : n === "inheritLocale" && x(e.state.value) && (a.inheritLocale = e.state.value);
|
|
2971
2971
|
}
|
|
2972
2972
|
}
|
|
2973
2973
|
function ql(e) {
|
|
2974
|
-
const t = A(e.locale) ? e.locale : St, a = A(e.fallbackLocale) || J(e.fallbackLocale) || F(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, n = G(e.missing) ? e.missing : void 0, s = x(e.silentTranslationWarn) || ot(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, r = x(e.silentFallbackWarn) || ot(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, o = x(e.fallbackRoot) ? e.fallbackRoot : !0, l = !!e.formatFallbackMessages, i = F(e.modifiers) ? e.modifiers : {}, c = e.pluralizationRules, m = G(e.postTranslation) ? e.postTranslation : void 0, g = A(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, p = !!e.escapeParameterHtml,
|
|
2974
|
+
const t = A(e.locale) ? e.locale : St, a = A(e.fallbackLocale) || J(e.fallbackLocale) || F(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, n = G(e.missing) ? e.missing : void 0, s = x(e.silentTranslationWarn) || ot(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, r = x(e.silentFallbackWarn) || ot(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, o = x(e.fallbackRoot) ? e.fallbackRoot : !0, l = !!e.formatFallbackMessages, i = F(e.modifiers) ? e.modifiers : {}, c = e.pluralizationRules, m = G(e.postTranslation) ? e.postTranslation : void 0, g = A(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, p = !!e.escapeParameterHtml, I = x(e.sync) ? e.sync : !0;
|
|
2975
2975
|
let P = e.messages;
|
|
2976
2976
|
if (F(e.sharedMessages)) {
|
|
2977
2977
|
const b = e.sharedMessages;
|
|
@@ -2980,14 +2980,14 @@ function ql(e) {
|
|
|
2980
2980
|
return te(M, b[C]), v;
|
|
2981
2981
|
}, P || {});
|
|
2982
2982
|
}
|
|
2983
|
-
const { __i18n: S, __root: O, __injectWithOption: d } = e, _ = e.datetimeFormats,
|
|
2983
|
+
const { __i18n: S, __root: O, __injectWithOption: d } = e, _ = e.datetimeFormats, y = e.numberFormats, E = e.flatJson;
|
|
2984
2984
|
return {
|
|
2985
2985
|
locale: t,
|
|
2986
2986
|
fallbackLocale: a,
|
|
2987
2987
|
messages: P,
|
|
2988
2988
|
flatJson: E,
|
|
2989
2989
|
datetimeFormats: _,
|
|
2990
|
-
numberFormats:
|
|
2990
|
+
numberFormats: y,
|
|
2991
2991
|
missing: n,
|
|
2992
2992
|
missingWarn: s,
|
|
2993
2993
|
fallbackWarn: r,
|
|
@@ -2999,14 +2999,14 @@ function ql(e) {
|
|
|
2999
2999
|
warnHtmlMessage: g,
|
|
3000
3000
|
escapeParameter: p,
|
|
3001
3001
|
messageResolver: e.messageResolver,
|
|
3002
|
-
inheritLocale:
|
|
3002
|
+
inheritLocale: I,
|
|
3003
3003
|
__i18n: S,
|
|
3004
3004
|
__root: O,
|
|
3005
3005
|
__injectWithOption: d
|
|
3006
3006
|
};
|
|
3007
3007
|
}
|
|
3008
|
-
function
|
|
3009
|
-
const t =
|
|
3008
|
+
function Xa(e = {}) {
|
|
3009
|
+
const t = pn(ql(e)), { __extender: a } = e, n = {
|
|
3010
3010
|
// id
|
|
3011
3011
|
id: t.id,
|
|
3012
3012
|
// locale
|
|
@@ -3184,17 +3184,17 @@ function zl(e, t, a) {
|
|
|
3184
3184
|
if (s.i18n) {
|
|
3185
3185
|
const r = s.i18n;
|
|
3186
3186
|
if (s.__i18n && (r.__i18n = s.__i18n), r.__root = t, this === this.$root)
|
|
3187
|
-
this.$i18n =
|
|
3187
|
+
this.$i18n = ts(e, r);
|
|
3188
3188
|
else {
|
|
3189
|
-
r.__injectWithOption = !0, r.__extender = a.__vueI18nExtend, this.$i18n =
|
|
3189
|
+
r.__injectWithOption = !0, r.__extender = a.__vueI18nExtend, this.$i18n = Xa(r);
|
|
3190
3190
|
const o = this.$i18n;
|
|
3191
3191
|
o.__extender && (o.__disposer = o.__extender(this.$i18n));
|
|
3192
3192
|
}
|
|
3193
3193
|
} else if (s.__i18n)
|
|
3194
3194
|
if (this === this.$root)
|
|
3195
|
-
this.$i18n =
|
|
3195
|
+
this.$i18n = ts(e, s);
|
|
3196
3196
|
else {
|
|
3197
|
-
this.$i18n =
|
|
3197
|
+
this.$i18n = Xa({
|
|
3198
3198
|
__i18n: s.__i18n,
|
|
3199
3199
|
__injectWithOption: !0,
|
|
3200
3200
|
__extender: a.__vueI18nExtend,
|
|
@@ -3205,7 +3205,7 @@ function zl(e, t, a) {
|
|
|
3205
3205
|
}
|
|
3206
3206
|
else
|
|
3207
3207
|
this.$i18n = e;
|
|
3208
|
-
s.__i18nGlobal &&
|
|
3208
|
+
s.__i18nGlobal && $s(t, s, s), this.$t = (...r) => this.$i18n.t(...r), this.$rt = (...r) => this.$i18n.rt(...r), this.$te = (r, o) => this.$i18n.te(r, o), this.$d = (...r) => this.$i18n.d(...r), this.$n = (...r) => this.$i18n.n(...r), this.$tm = (r) => this.$i18n.tm(r), a.__setInstance(n, this.$i18n);
|
|
3209
3209
|
},
|
|
3210
3210
|
mounted() {
|
|
3211
3211
|
if (process.env.NODE_ENV !== "production" && this.$i18n) {
|
|
@@ -3214,7 +3214,7 @@ function zl(e, t, a) {
|
|
|
3214
3214
|
return;
|
|
3215
3215
|
const s = this.$i18n;
|
|
3216
3216
|
n.__VUE_I18N__ = s.__composer;
|
|
3217
|
-
const r = this.__v_emitter =
|
|
3217
|
+
const r = this.__v_emitter = ln();
|
|
3218
3218
|
s.__enableEmitter && s.__enableEmitter(r), r.on("*", Ot);
|
|
3219
3219
|
}
|
|
3220
3220
|
},
|
|
@@ -3227,15 +3227,15 @@ function zl(e, t, a) {
|
|
|
3227
3227
|
}
|
|
3228
3228
|
};
|
|
3229
3229
|
}
|
|
3230
|
-
function
|
|
3231
|
-
e.locale = t.locale || e.locale, e.fallbackLocale = t.fallbackLocale || e.fallbackLocale, e.missing = t.missing || e.missing, e.silentTranslationWarn = t.silentTranslationWarn || e.silentFallbackWarn, e.silentFallbackWarn = t.silentFallbackWarn || e.silentFallbackWarn, e.formatFallbackMessages = t.formatFallbackMessages || e.formatFallbackMessages, e.postTranslation = t.postTranslation || e.postTranslation, e.warnHtmlInMessage = t.warnHtmlInMessage || e.warnHtmlInMessage, e.escapeParameterHtml = t.escapeParameterHtml || e.escapeParameterHtml, e.sync = t.sync || e.sync, e.__composer[
|
|
3232
|
-
const a =
|
|
3230
|
+
function ts(e, t) {
|
|
3231
|
+
e.locale = t.locale || e.locale, e.fallbackLocale = t.fallbackLocale || e.fallbackLocale, e.missing = t.missing || e.missing, e.silentTranslationWarn = t.silentTranslationWarn || e.silentFallbackWarn, e.silentFallbackWarn = t.silentFallbackWarn || e.silentFallbackWarn, e.formatFallbackMessages = t.formatFallbackMessages || e.formatFallbackMessages, e.postTranslation = t.postTranslation || e.postTranslation, e.warnHtmlInMessage = t.warnHtmlInMessage || e.warnHtmlInMessage, e.escapeParameterHtml = t.escapeParameterHtml || e.escapeParameterHtml, e.sync = t.sync || e.sync, e.__composer[Us](t.pluralizationRules || e.pluralizationRules);
|
|
3232
|
+
const a = mn(e.locale, {
|
|
3233
3233
|
messages: t.messages,
|
|
3234
3234
|
__i18n: t.__i18n
|
|
3235
3235
|
});
|
|
3236
3236
|
return Object.keys(a).forEach((n) => e.mergeLocaleMessage(n, a[n])), t.datetimeFormats && Object.keys(t.datetimeFormats).forEach((n) => e.mergeDateTimeFormat(n, t.datetimeFormats[n])), t.numberFormats && Object.keys(t.numberFormats).forEach((n) => e.mergeNumberFormat(n, t.numberFormats[n])), e;
|
|
3237
3237
|
}
|
|
3238
|
-
const
|
|
3238
|
+
const gn = {
|
|
3239
3239
|
tag: {
|
|
3240
3240
|
type: [String, Object]
|
|
3241
3241
|
},
|
|
@@ -3263,7 +3263,7 @@ function Zl({ slots: e }, t) {
|
|
|
3263
3263
|
return s && (a[n] = s()), a;
|
|
3264
3264
|
}, W());
|
|
3265
3265
|
}
|
|
3266
|
-
function
|
|
3266
|
+
function Ks() {
|
|
3267
3267
|
return Ke;
|
|
3268
3268
|
}
|
|
3269
3269
|
const ei = /* @__PURE__ */ De({
|
|
@@ -3278,7 +3278,7 @@ const ei = /* @__PURE__ */ De({
|
|
|
3278
3278
|
type: [Number, String],
|
|
3279
3279
|
validator: (e) => ee(e) || !isNaN(e)
|
|
3280
3280
|
}
|
|
3281
|
-
},
|
|
3281
|
+
}, gn),
|
|
3282
3282
|
/* eslint-enable */
|
|
3283
3283
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3284
3284
|
setup(e, t) {
|
|
@@ -3289,28 +3289,28 @@ const ei = /* @__PURE__ */ De({
|
|
|
3289
3289
|
return () => {
|
|
3290
3290
|
const r = Object.keys(a).filter((g) => g[0] !== "_"), o = W();
|
|
3291
3291
|
e.locale && (o.locale = e.locale), e.plural !== void 0 && (o.plural = A(e.plural) ? +e.plural : e.plural);
|
|
3292
|
-
const l = Zl(t, r), i = s[
|
|
3293
|
-
return
|
|
3292
|
+
const l = Zl(t, r), i = s[Ya](e.keypath, l, o), c = te(W(), n), m = A(e.tag) || U(e.tag) ? e.tag : Ks();
|
|
3293
|
+
return ye(m, c, i);
|
|
3294
3294
|
};
|
|
3295
3295
|
}
|
|
3296
|
-
}),
|
|
3296
|
+
}), as = ei;
|
|
3297
3297
|
function ti(e) {
|
|
3298
3298
|
return J(e) && !A(e[0]);
|
|
3299
3299
|
}
|
|
3300
|
-
function
|
|
3300
|
+
function Ys(e, t, a, n) {
|
|
3301
3301
|
const { slots: s, attrs: r } = t;
|
|
3302
3302
|
return () => {
|
|
3303
3303
|
const o = { part: !0 };
|
|
3304
3304
|
let l = W();
|
|
3305
|
-
e.locale && (o.locale = e.locale), A(e.format) ? o.key = e.format : U(e.format) && (A(e.format.key) && (o.key = e.format.key), l = Object.keys(e.format).reduce((p,
|
|
3305
|
+
e.locale && (o.locale = e.locale), A(e.format) ? o.key = e.format : U(e.format) && (A(e.format.key) && (o.key = e.format.key), l = Object.keys(e.format).reduce((p, I) => a.includes(I) ? te(W(), p, { [I]: e.format[I] }) : p, W()));
|
|
3306
3306
|
const i = n(e.value, o, l);
|
|
3307
3307
|
let c = [o.key];
|
|
3308
|
-
J(i) ? c = i.map((p,
|
|
3309
|
-
const P = s[p.type], S = P ? P({ [p.type]: p.value, index:
|
|
3310
|
-
return ti(S) && (S[0].key = `${p.type}-${
|
|
3308
|
+
J(i) ? c = i.map((p, I) => {
|
|
3309
|
+
const P = s[p.type], S = P ? P({ [p.type]: p.value, index: I, parts: i }) : [p.value];
|
|
3310
|
+
return ti(S) && (S[0].key = `${p.type}-${I}`), S;
|
|
3311
3311
|
}) : A(i) && (c = [i]);
|
|
3312
|
-
const m = te(W(), r), g = A(e.tag) || U(e.tag) ? e.tag :
|
|
3313
|
-
return
|
|
3312
|
+
const m = te(W(), r), g = A(e.tag) || U(e.tag) ? e.tag : Ks();
|
|
3313
|
+
return ye(g, m, c);
|
|
3314
3314
|
};
|
|
3315
3315
|
}
|
|
3316
3316
|
const ai = /* @__PURE__ */ De({
|
|
@@ -3324,7 +3324,7 @@ const ai = /* @__PURE__ */ De({
|
|
|
3324
3324
|
format: {
|
|
3325
3325
|
type: [String, Object]
|
|
3326
3326
|
}
|
|
3327
|
-
},
|
|
3327
|
+
}, gn),
|
|
3328
3328
|
/* eslint-enable */
|
|
3329
3329
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3330
3330
|
setup(e, t) {
|
|
@@ -3332,12 +3332,12 @@ const ai = /* @__PURE__ */ De({
|
|
|
3332
3332
|
useScope: e.scope,
|
|
3333
3333
|
__useComponent: !0
|
|
3334
3334
|
});
|
|
3335
|
-
return
|
|
3335
|
+
return Ys(e, t, Ds, (...n) => (
|
|
3336
3336
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3337
|
-
a[
|
|
3337
|
+
a[ja](...n)
|
|
3338
3338
|
));
|
|
3339
3339
|
}
|
|
3340
|
-
}),
|
|
3340
|
+
}), ns = ai;
|
|
3341
3341
|
function ni(e, t) {
|
|
3342
3342
|
const a = e;
|
|
3343
3343
|
if (e.mode === "composition")
|
|
@@ -3349,20 +3349,20 @@ function ni(e, t) {
|
|
|
3349
3349
|
}
|
|
3350
3350
|
function si(e) {
|
|
3351
3351
|
const t = (o) => {
|
|
3352
|
-
process.env.NODE_ENV !== "production" &&
|
|
3352
|
+
process.env.NODE_ENV !== "production" && sn(it(_e.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));
|
|
3353
3353
|
const { instance: l, value: i } = o;
|
|
3354
3354
|
if (!l || !l.$)
|
|
3355
3355
|
throw ue(Y.UNEXPECTED_ERROR);
|
|
3356
|
-
const c = ni(e, l.$), m =
|
|
3356
|
+
const c = ni(e, l.$), m = ss(i);
|
|
3357
3357
|
return [
|
|
3358
|
-
Reflect.apply(c.t, c, [...
|
|
3358
|
+
Reflect.apply(c.t, c, [...rs(m)]),
|
|
3359
3359
|
c
|
|
3360
3360
|
];
|
|
3361
3361
|
};
|
|
3362
3362
|
return {
|
|
3363
3363
|
created: (o, l) => {
|
|
3364
3364
|
const [i, c] = t(l);
|
|
3365
|
-
Ne && e.global === c && (o.__i18nWatcher =
|
|
3365
|
+
Ne && e.global === c && (o.__i18nWatcher = B(c.locale, () => {
|
|
3366
3366
|
l.instance && l.instance.$forceUpdate();
|
|
3367
3367
|
})), o.__composer = c, o.textContent = i;
|
|
3368
3368
|
},
|
|
@@ -3371,9 +3371,9 @@ function si(e) {
|
|
|
3371
3371
|
},
|
|
3372
3372
|
beforeUpdate: (o, { value: l }) => {
|
|
3373
3373
|
if (o.__composer) {
|
|
3374
|
-
const i = o.__composer, c =
|
|
3374
|
+
const i = o.__composer, c = ss(l);
|
|
3375
3375
|
o.textContent = Reflect.apply(i.t, i, [
|
|
3376
|
-
...
|
|
3376
|
+
...rs(c)
|
|
3377
3377
|
]);
|
|
3378
3378
|
}
|
|
3379
3379
|
},
|
|
@@ -3383,7 +3383,7 @@ function si(e) {
|
|
|
3383
3383
|
}
|
|
3384
3384
|
};
|
|
3385
3385
|
}
|
|
3386
|
-
function
|
|
3386
|
+
function ss(e) {
|
|
3387
3387
|
if (A(e))
|
|
3388
3388
|
return { path: e };
|
|
3389
3389
|
if (F(e)) {
|
|
@@ -3393,18 +3393,18 @@ function os(e) {
|
|
|
3393
3393
|
} else
|
|
3394
3394
|
throw ue(Y.INVALID_VALUE);
|
|
3395
3395
|
}
|
|
3396
|
-
function
|
|
3396
|
+
function rs(e) {
|
|
3397
3397
|
const { path: t, locale: a, args: n, choice: s, plural: r } = e, o = {}, l = n || {};
|
|
3398
3398
|
return A(a) && (o.locale = a), ee(s) && (o.plural = s), ee(r) && (o.plural = r), [t, l, o];
|
|
3399
3399
|
}
|
|
3400
3400
|
function ri(e, t, ...a) {
|
|
3401
3401
|
const n = F(a[0]) ? a[0] : {};
|
|
3402
|
-
(x(n.globalInstall) ? n.globalInstall : !0) && ([
|
|
3402
|
+
(x(n.globalInstall) ? n.globalInstall : !0) && ([as.name, "I18nT"].forEach((r) => e.component(r, as)), [ns.name, "I18nN"].forEach((r) => e.component(r, ns)), [ls.name, "I18nD"].forEach((r) => e.component(r, ls))), e.directive("t", si(t));
|
|
3403
3403
|
}
|
|
3404
3404
|
const oi = /* @__PURE__ */ Oe("global-vue-i18n");
|
|
3405
3405
|
function li(e = {}) {
|
|
3406
3406
|
const t = __VUE_I18N_LEGACY_API__ && x(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__;
|
|
3407
|
-
process.env.NODE_ENV !== "production" && t &&
|
|
3407
|
+
process.env.NODE_ENV !== "production" && t && sn(it(_e.DEPRECATE_LEGACY_MODE));
|
|
3408
3408
|
const a = x(e.globalInjection) ? e.globalInjection : !0, n = /* @__PURE__ */ new Map(), [s, r] = ii(e, t), o = /* @__PURE__ */ Oe(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
|
|
3409
3409
|
function l(g) {
|
|
3410
3410
|
return n.get(g) || null;
|
|
@@ -3426,15 +3426,15 @@ function li(e = {}) {
|
|
|
3426
3426
|
const S = p[0];
|
|
3427
3427
|
m.__composerExtend = S.__composerExtend, m.__vueI18nExtend = S.__vueI18nExtend;
|
|
3428
3428
|
}
|
|
3429
|
-
let
|
|
3430
|
-
!t && a && (
|
|
3429
|
+
let I = null;
|
|
3430
|
+
!t && a && (I = gi(g, m.global)), __VUE_I18N_FULL_INSTALL__ && ri(g, m, ...p), __VUE_I18N_LEGACY_API__ && t && g.mixin(zl(r, r.__composer, m));
|
|
3431
3431
|
const P = g.unmount;
|
|
3432
3432
|
if (g.unmount = () => {
|
|
3433
|
-
|
|
3433
|
+
I && I(), m.dispose(), P();
|
|
3434
3434
|
}, process.env.NODE_ENV !== "production") {
|
|
3435
3435
|
if (!await $l(g, m))
|
|
3436
3436
|
throw ue(Y.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
3437
|
-
const O =
|
|
3437
|
+
const O = ln();
|
|
3438
3438
|
if (t) {
|
|
3439
3439
|
const d = r;
|
|
3440
3440
|
d.__enableEmitter && d.__enableEmitter(O);
|
|
@@ -3469,9 +3469,9 @@ function oa(e = {}) {
|
|
|
3469
3469
|
throw ue(Y.MUST_BE_CALL_SETUP_TOP);
|
|
3470
3470
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
3471
3471
|
throw ue(Y.NOT_INSTALLED);
|
|
3472
|
-
const a = ci(t), n = fi(a), s =
|
|
3472
|
+
const a = ci(t), n = fi(a), s = Vs(t), r = ui(e, s);
|
|
3473
3473
|
if (r === "global")
|
|
3474
|
-
return
|
|
3474
|
+
return $s(n, e, s), n;
|
|
3475
3475
|
if (r === "parent") {
|
|
3476
3476
|
let i = di(a, t, e.__useComponent);
|
|
3477
3477
|
return i == null && (process.env.NODE_ENV !== "production" && Le(it(_e.NOT_FOUND_PARENT_SCOPE)), i = n), i;
|
|
@@ -3480,13 +3480,13 @@ function oa(e = {}) {
|
|
|
3480
3480
|
let l = o.__getInstance(t);
|
|
3481
3481
|
if (l == null) {
|
|
3482
3482
|
const i = te({}, e);
|
|
3483
|
-
"__i18n" in s && (i.__i18n = s.__i18n), n && (i.__root = n), l =
|
|
3483
|
+
"__i18n" in s && (i.__i18n = s.__i18n), n && (i.__root = n), l = pn(i), o.__composerExtend && (l[Ja] = o.__composerExtend(l)), pi(o, t, l), o.__setInstance(t, l);
|
|
3484
3484
|
} else
|
|
3485
3485
|
process.env.NODE_ENV !== "production" && r === "local" && Le(it(_e.DUPLICATE_USE_I18N_CALLING));
|
|
3486
3486
|
return l;
|
|
3487
3487
|
}
|
|
3488
3488
|
function ii(e, t) {
|
|
3489
|
-
const a = pr(), n = __VUE_I18N_LEGACY_API__ && t ? a.run(() =>
|
|
3489
|
+
const a = pr(), n = __VUE_I18N_LEGACY_API__ && t ? a.run(() => Xa(e)) : a.run(() => pn(e));
|
|
3490
3490
|
if (n == null)
|
|
3491
3491
|
throw ue(Y.UNEXPECTED_ERROR);
|
|
3492
3492
|
return [a, n];
|
|
@@ -3513,7 +3513,7 @@ function di(e, t, a = !1) {
|
|
|
3513
3513
|
n = o.__getInstance(r);
|
|
3514
3514
|
else if (__VUE_I18N_LEGACY_API__) {
|
|
3515
3515
|
const l = o.__getInstance(r);
|
|
3516
|
-
l != null && (n = l.__composer, a && n && !n[
|
|
3516
|
+
l != null && (n = l.__composer, a && n && !n[xs] && (n = null));
|
|
3517
3517
|
}
|
|
3518
3518
|
if (n != null || s === r)
|
|
3519
3519
|
break;
|
|
@@ -3528,22 +3528,22 @@ function pi(e, t, a) {
|
|
|
3528
3528
|
let n = null;
|
|
3529
3529
|
Rt(() => {
|
|
3530
3530
|
if (process.env.NODE_ENV !== "production") {
|
|
3531
|
-
t.__VUE_I18N__ = a, n =
|
|
3531
|
+
t.__VUE_I18N__ = a, n = ln();
|
|
3532
3532
|
const s = a;
|
|
3533
3533
|
s[Qe] && s[Qe](n), n.on("*", Ot);
|
|
3534
3534
|
}
|
|
3535
3535
|
}, t), ut(() => {
|
|
3536
3536
|
const s = a;
|
|
3537
3537
|
process.env.NODE_ENV !== "production" && (n && n.off("*", Ot), s[Tt] && s[Tt](), delete t.__VUE_I18N__), e.__deleteInstance(t);
|
|
3538
|
-
const r = s[
|
|
3539
|
-
r && (r(), delete s[
|
|
3538
|
+
const r = s[Ja];
|
|
3539
|
+
r && (r(), delete s[Ja]);
|
|
3540
3540
|
}, t);
|
|
3541
3541
|
}
|
|
3542
3542
|
const _i = [
|
|
3543
3543
|
"locale",
|
|
3544
3544
|
"fallbackLocale",
|
|
3545
3545
|
"availableLocales"
|
|
3546
|
-
],
|
|
3546
|
+
], os = ["t", "rt", "d", "n", "tm", "te"];
|
|
3547
3547
|
function gi(e, t) {
|
|
3548
3548
|
const a = /* @__PURE__ */ Object.create(null);
|
|
3549
3549
|
return _i.forEach((s) => {
|
|
@@ -3564,13 +3564,13 @@ function gi(e, t) {
|
|
|
3564
3564
|
}
|
|
3565
3565
|
};
|
|
3566
3566
|
Object.defineProperty(a, s, o);
|
|
3567
|
-
}), e.config.globalProperties.$i18n = a,
|
|
3567
|
+
}), e.config.globalProperties.$i18n = a, os.forEach((s) => {
|
|
3568
3568
|
const r = Object.getOwnPropertyDescriptor(t, s);
|
|
3569
3569
|
if (!r || !r.value)
|
|
3570
3570
|
throw ue(Y.UNEXPECTED_ERROR);
|
|
3571
3571
|
Object.defineProperty(e.config.globalProperties, `$${s}`, r);
|
|
3572
3572
|
}), () => {
|
|
3573
|
-
delete e.config.globalProperties.$i18n,
|
|
3573
|
+
delete e.config.globalProperties.$i18n, os.forEach((s) => {
|
|
3574
3574
|
delete e.config.globalProperties[`$${s}`];
|
|
3575
3575
|
});
|
|
3576
3576
|
};
|
|
@@ -3586,7 +3586,7 @@ const hi = /* @__PURE__ */ De({
|
|
|
3586
3586
|
format: {
|
|
3587
3587
|
type: [String, Object]
|
|
3588
3588
|
}
|
|
3589
|
-
},
|
|
3589
|
+
}, gn),
|
|
3590
3590
|
/* eslint-enable */
|
|
3591
3591
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3592
3592
|
setup(e, t) {
|
|
@@ -3594,22 +3594,22 @@ const hi = /* @__PURE__ */ De({
|
|
|
3594
3594
|
useScope: e.scope,
|
|
3595
3595
|
__useComponent: !0
|
|
3596
3596
|
});
|
|
3597
|
-
return
|
|
3597
|
+
return Ys(e, t, ks, (...n) => (
|
|
3598
3598
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3599
3599
|
a[Ba](...n)
|
|
3600
3600
|
));
|
|
3601
3601
|
}
|
|
3602
|
-
}),
|
|
3602
|
+
}), ls = hi;
|
|
3603
3603
|
Dl();
|
|
3604
3604
|
nl(Fo);
|
|
3605
3605
|
sl(zo);
|
|
3606
|
-
rl(
|
|
3606
|
+
rl(Ns);
|
|
3607
3607
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
3608
3608
|
const e = We();
|
|
3609
3609
|
e.__INTLIFY__ = !0, Mo(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
3610
3610
|
}
|
|
3611
3611
|
process.env.NODE_ENV;
|
|
3612
|
-
const
|
|
3612
|
+
const Ei = {
|
|
3613
3613
|
webui: {
|
|
3614
3614
|
// 通用
|
|
3615
3615
|
common: {
|
|
@@ -3833,133 +3833,133 @@ const Ua = {
|
|
|
3833
3833
|
input: {
|
|
3834
3834
|
pleaseInput: "请输入{0}"
|
|
3835
3835
|
}
|
|
3836
|
+
}
|
|
3837
|
+
},
|
|
3838
|
+
// 状态存储相关
|
|
3839
|
+
stores: {
|
|
3840
|
+
userInfo: {
|
|
3841
|
+
tokenParseFailed: "Token解析失败",
|
|
3842
|
+
exiting: "正在退出...",
|
|
3843
|
+
logoutSuccess: "已退出登录",
|
|
3844
|
+
authInfoFailed: "获取授权信息失败",
|
|
3845
|
+
userInfoParseFailed: "用户信息解析失败"
|
|
3836
3846
|
},
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
userInfo: {
|
|
3840
|
-
tokenParseFailed: "Token解析失败",
|
|
3841
|
-
exiting: "正在退出...",
|
|
3842
|
-
logoutSuccess: "已退出登录",
|
|
3843
|
-
authInfoFailed: "获取授权信息失败",
|
|
3844
|
-
userInfoParseFailed: "用户信息解析失败"
|
|
3845
|
-
},
|
|
3846
|
-
hostInfo: {
|
|
3847
|
-
loading: "站点配置加载中……"
|
|
3848
|
-
},
|
|
3849
|
-
appInfo: {
|
|
3850
|
-
loadAppListFailed: "加载应用列表失败"
|
|
3851
|
-
}
|
|
3847
|
+
hostInfo: {
|
|
3848
|
+
loading: "站点配置加载中……"
|
|
3852
3849
|
},
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
},
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3850
|
+
appInfo: {
|
|
3851
|
+
loadAppListFailed: "加载应用列表失败"
|
|
3852
|
+
}
|
|
3853
|
+
},
|
|
3854
|
+
// 工具函数相关
|
|
3855
|
+
utils: {
|
|
3856
|
+
exportTable: {
|
|
3857
|
+
exportFailed: "导出失败",
|
|
3858
|
+
fileExportFailed: "文件导出失败,请稍后重试"
|
|
3859
|
+
},
|
|
3860
|
+
formValidate: {
|
|
3861
|
+
required: "不能为空",
|
|
3862
|
+
numberType: "必须是数字",
|
|
3863
|
+
enum: "必须是{enum}中的一个",
|
|
3864
|
+
stringLen: "长度必须为{len}",
|
|
3865
|
+
stringMin: "长度不能小于{min}",
|
|
3866
|
+
stringMax: "长度不能大于{max}",
|
|
3867
|
+
stringRange: "长度必须在{min}和{max}之间",
|
|
3868
|
+
numberLen: "必须为{len}",
|
|
3869
|
+
numberMin: "不能小于{min}",
|
|
3870
|
+
numberMax: "不能大于{max}",
|
|
3871
|
+
numberRange: "必须在{min}和{max}之间",
|
|
3872
|
+
arrayLen: "长度必须为{len}",
|
|
3873
|
+
arrayMin: "长度不能小于{min}",
|
|
3874
|
+
arrayMax: "长度不能大于{max}",
|
|
3875
|
+
arrayRange: "长度必须在{min}和{max}之间",
|
|
3876
|
+
formatValidationError: "格式化验证消息出错",
|
|
3877
|
+
processValidationError: "处理验证规则出错"
|
|
3878
|
+
},
|
|
3879
|
+
fileUpload: {
|
|
3880
|
+
pleaseSelectFile: "请选择上传的文件!",
|
|
3881
|
+
allUploadSuccess: "全部文件上传成功!",
|
|
3882
|
+
partialUploadFailed: "上传结束,部分文件上传失败!",
|
|
3883
|
+
saveUploadSuccess: "保存上传成功的文件!",
|
|
3884
|
+
partialUploadFailedCancel: "上传结束,部分文件上传失败,取消保存!",
|
|
3885
|
+
allUploadFailed: "上传结束,所有文件上传失败!",
|
|
3886
|
+
fileUploadSuccess: "文件上传成功!",
|
|
3887
|
+
fileUploadFailed: "上传文件失败!"
|
|
3888
|
+
},
|
|
3889
|
+
data: {
|
|
3890
|
+
executeSuccess: "执行成功!",
|
|
3891
|
+
noDataToSave: "错误!无保存数据!",
|
|
3892
|
+
saveSuccess: "保存成功!",
|
|
3893
|
+
conditionalDeleteForbidden: "错误!禁止无条件删除数据!",
|
|
3894
|
+
deleteSuccess: "删除成功!",
|
|
3895
|
+
urlNotSet: "URL未设置: {urlKey}"
|
|
3896
|
+
},
|
|
3897
|
+
download: {
|
|
3898
|
+
downloadFailed: "下载文件失败!",
|
|
3899
|
+
fileDownloadFailed: "文件下载失败,请稍后重试",
|
|
3900
|
+
fileTypeNotSupported: "文件类型不支持预览",
|
|
3901
|
+
filePreviewFailed: "文件预览失败!"
|
|
3902
|
+
},
|
|
3903
|
+
formExcel: {
|
|
3904
|
+
excelNoSheets: "Excel文件不包含工作表",
|
|
3905
|
+
excelInsufficientData: "Excel文件不包含足够的数据",
|
|
3906
|
+
validationError: "验证表格数据时发生错误",
|
|
3907
|
+
missingDuplicateFields: "表头缺少重复检测所需字段",
|
|
3908
|
+
fileNotExcel: "上传的文件不是Excel文件",
|
|
3909
|
+
processFailed: "Excel文件处理失败",
|
|
3910
|
+
validationSuccess: "数据验证成功",
|
|
3911
|
+
duplicateValidationPending: "待验证重复数据",
|
|
3912
|
+
validationFailed: "数据验证失败",
|
|
3913
|
+
validationPassed: "数据验证通过",
|
|
3914
|
+
duplicateDetected: "检测到重复数据",
|
|
3915
|
+
duplicateCheckPassed: "重复性检验通过"
|
|
3916
|
+
},
|
|
3917
|
+
options: {
|
|
3918
|
+
notConfigured: "未配置选项数据!",
|
|
3919
|
+
outFieldsFormatError: "outFields 格式错误:{sourceKey},必须是 ${index} 或者 ${index}.${key}"
|
|
3920
|
+
},
|
|
3921
|
+
excelPreview: {
|
|
3922
|
+
previewUrlNotConfigured: "预览URL或Excel控制器未配置",
|
|
3923
|
+
fileLoadFailed: "文件加载失败",
|
|
3924
|
+
csvProcessingFailed: "CSV格式处理失败",
|
|
3925
|
+
previewFile: "预览文件",
|
|
3926
|
+
previewFileXlsx: "预览文件.xlsx",
|
|
3927
|
+
previewFileCsv: "preview.csv",
|
|
3928
|
+
unsupportedRawFormat: "不支持的原始文件格式",
|
|
3929
|
+
unsupportedFileFormat: "不支持的文件格式",
|
|
3930
|
+
dataEmpty: "数据为空",
|
|
3931
|
+
excelProcessingFailed: "Excel处理失败"
|
|
3932
|
+
},
|
|
3933
|
+
tools: {
|
|
3934
|
+
noClickHandler: "未配置点击处理事件!",
|
|
3935
|
+
refreshTable: "刷新表格",
|
|
3936
|
+
expandSearch: "展开搜索栏",
|
|
3937
|
+
collapseSearch: "折叠搜索栏",
|
|
3938
|
+
rowHeight: "行高调整",
|
|
3939
|
+
templateManagement: "模板管理",
|
|
3940
|
+
showCheckbox: "显示多选框",
|
|
3941
|
+
hideCheckbox: "隐藏多选框",
|
|
3942
|
+
expandRows: "展开记录行",
|
|
3943
|
+
collapseRows: "折叠记录行",
|
|
3944
|
+
exportExcel: "导出Excel",
|
|
3945
|
+
exportAllRecords: "全部记录",
|
|
3946
|
+
exportSelectedRecords: "选中的记录",
|
|
3947
|
+
exportPDF: "导出PDF",
|
|
3948
|
+
tableHeaderSettings: "表头设置",
|
|
3949
|
+
setFullscreen: "设置全屏",
|
|
3950
|
+
exitFullscreen: "取消全屏"
|
|
3951
|
+
},
|
|
3952
|
+
iconLoader: {
|
|
3953
|
+
networkError: "网络异常,无法加载图标库!"
|
|
3954
|
+
},
|
|
3955
|
+
formCsv: {
|
|
3956
|
+
csvToExcelFailed: "CSV转Excel失败",
|
|
3957
|
+
csvProcessFailed: "CSV文件处理失败",
|
|
3958
|
+
unknownError: "未知错误"
|
|
3959
|
+
},
|
|
3960
|
+
microOpenapis: {
|
|
3961
|
+
interfaceNotConfigured: "未配置{method}接口!",
|
|
3962
|
+
apiCallTimeout: "API调用超时: {method}"
|
|
3963
3963
|
}
|
|
3964
3964
|
}
|
|
3965
3965
|
}
|
|
@@ -3972,21 +3972,21 @@ function At(e, t) {
|
|
|
3972
3972
|
t.hasOwnProperty(n) && (typeof t[n] == "object" && t[n] !== null && !Array.isArray(t[n]) ? a[n] = At(a[n] || {}, t[n]) : a[n] = Array.isArray(t[n]) ? [...t[n]] : t[n]);
|
|
3973
3973
|
return a;
|
|
3974
3974
|
}
|
|
3975
|
-
let
|
|
3975
|
+
let qa = "/", qt = {
|
|
3976
3976
|
"zh-CN": "简体中文"
|
|
3977
3977
|
};
|
|
3978
|
-
const
|
|
3979
|
-
function
|
|
3978
|
+
const Bs = {};
|
|
3979
|
+
function vi() {
|
|
3980
3980
|
return localStorage.getItem("language") || "zh-CN";
|
|
3981
3981
|
}
|
|
3982
|
-
const
|
|
3982
|
+
const me = li({
|
|
3983
3983
|
legacy: !1,
|
|
3984
3984
|
// 使用Composition API模式
|
|
3985
|
-
locale:
|
|
3985
|
+
locale: vi(),
|
|
3986
3986
|
// 从localStorage获取语言设置
|
|
3987
3987
|
fallbackLocale: "en-US",
|
|
3988
3988
|
// 回退语言
|
|
3989
|
-
messages:
|
|
3989
|
+
messages: Bs,
|
|
3990
3990
|
silentTranslationWarn: !0,
|
|
3991
3991
|
// 禁用翻译警告
|
|
3992
3992
|
fallbackWarn: !1,
|
|
@@ -3994,17 +3994,17 @@ const fe = li({
|
|
|
3994
3994
|
missingWarn: !1
|
|
3995
3995
|
// 禁用缺失警告
|
|
3996
3996
|
});
|
|
3997
|
-
async function
|
|
3997
|
+
async function bi(e) {
|
|
3998
3998
|
try {
|
|
3999
|
-
const t = await fetch(`${
|
|
3999
|
+
const t = await fetch(`${qa}locales/${e}.json`);
|
|
4000
4000
|
if (!t.ok)
|
|
4001
4001
|
throw new Error(`Failed to load locale ${e}`);
|
|
4002
4002
|
return await t.json();
|
|
4003
4003
|
} catch (t) {
|
|
4004
|
-
return console.error(`Error loading locale ${e}:`, t), {};
|
|
4004
|
+
return t instanceof TypeError && console.error(`Error loading locale ${e}:`, t), {};
|
|
4005
4005
|
}
|
|
4006
4006
|
}
|
|
4007
|
-
function
|
|
4007
|
+
function js(e) {
|
|
4008
4008
|
try {
|
|
4009
4009
|
const t = localStorage.getItem(`locale_cache_${e}`);
|
|
4010
4010
|
if (t)
|
|
@@ -4014,7 +4014,7 @@ function Js(e) {
|
|
|
4014
4014
|
}
|
|
4015
4015
|
return null;
|
|
4016
4016
|
}
|
|
4017
|
-
function
|
|
4017
|
+
function Js(e, t) {
|
|
4018
4018
|
try {
|
|
4019
4019
|
const a = {
|
|
4020
4020
|
messages: t,
|
|
@@ -4025,35 +4025,50 @@ function en(e, t) {
|
|
|
4025
4025
|
console.error(`Error caching locale ${e}:`, a);
|
|
4026
4026
|
}
|
|
4027
4027
|
}
|
|
4028
|
+
function za(e) {
|
|
4029
|
+
if (e === null || typeof e != "object")
|
|
4030
|
+
return e;
|
|
4031
|
+
if (e instanceof Date)
|
|
4032
|
+
return new Date(e.getTime());
|
|
4033
|
+
if (e instanceof Array)
|
|
4034
|
+
return e.map((t) => za(t));
|
|
4035
|
+
if (typeof e == "object") {
|
|
4036
|
+
const t = {};
|
|
4037
|
+
for (const a in e)
|
|
4038
|
+
e.hasOwnProperty(a) && (t[a] = za(e[a]));
|
|
4039
|
+
return t;
|
|
4040
|
+
}
|
|
4041
|
+
return e;
|
|
4042
|
+
}
|
|
4028
4043
|
async function Qs(e) {
|
|
4029
|
-
const t =
|
|
4030
|
-
let
|
|
4031
|
-
t ? a = At(JSON.parse(JSON.stringify(Ua)), t) : e === "zh-CN" ? a = JSON.parse(JSON.stringify(Ua)) : a = {}, Za[e] = a, fe.global.setLocaleMessage(e, a), en(e, a);
|
|
4044
|
+
const t = za(Ei), a = js(e);
|
|
4045
|
+
let n = {};
|
|
4032
4046
|
try {
|
|
4033
|
-
|
|
4034
|
-
Za[e] = s, fe.global.setLocaleMessage(e, s), en(e, s);
|
|
4047
|
+
n = await bi(e);
|
|
4035
4048
|
} catch {
|
|
4036
4049
|
}
|
|
4050
|
+
let s = t;
|
|
4051
|
+
a && Object.keys(a).length > 0 && (s = At(s, a)), n && Object.keys(n).length > 0 && (s = At(s, n)), Bs[e] = s, me.global.setLocaleMessage(e, s), Js(e, s);
|
|
4037
4052
|
}
|
|
4038
|
-
async function
|
|
4039
|
-
|
|
4053
|
+
async function hc(e = "/", t) {
|
|
4054
|
+
qa = e;
|
|
4040
4055
|
try {
|
|
4041
|
-
const n = await fetch(`${
|
|
4056
|
+
const n = await fetch(`${qa}locales/languages.json`);
|
|
4042
4057
|
n.ok && (qt = await n.json());
|
|
4043
4058
|
} catch (n) {
|
|
4044
4059
|
n instanceof TypeError && console.error("[Locale] Network error:", n);
|
|
4045
4060
|
}
|
|
4046
4061
|
const a = localStorage.getItem("language") || t || "zh-CN";
|
|
4047
|
-
|
|
4062
|
+
me.global.locale.value = a, localStorage.setItem("language", a), await Qs(a);
|
|
4048
4063
|
}
|
|
4049
|
-
async function
|
|
4050
|
-
await Qs(e),
|
|
4064
|
+
async function Ec(e) {
|
|
4065
|
+
await Qs(e), me.global.locale.value = e, localStorage.setItem("language", e);
|
|
4051
4066
|
}
|
|
4052
|
-
function
|
|
4053
|
-
const t =
|
|
4067
|
+
function vc(e = "code") {
|
|
4068
|
+
const t = me.global.locale.value;
|
|
4054
4069
|
return e === "display" ? qt[t] : t;
|
|
4055
4070
|
}
|
|
4056
|
-
function
|
|
4071
|
+
function bc() {
|
|
4057
4072
|
return Object.keys(qt).map((e) => ({
|
|
4058
4073
|
label: qt[e],
|
|
4059
4074
|
key: e
|
|
@@ -4061,15 +4076,15 @@ function vc() {
|
|
|
4061
4076
|
}
|
|
4062
4077
|
function w(e, t) {
|
|
4063
4078
|
try {
|
|
4064
|
-
const a =
|
|
4079
|
+
const a = me.global.t(e, t);
|
|
4065
4080
|
if (a === e) {
|
|
4066
|
-
const n =
|
|
4081
|
+
const n = me.global.getLocaleMessage(me.global.locale.value);
|
|
4067
4082
|
if (!n || Object.keys(n).length === 0) {
|
|
4068
|
-
const r =
|
|
4083
|
+
const r = js(me.global.locale.value);
|
|
4069
4084
|
if (r) {
|
|
4070
4085
|
const o = At({}, r);
|
|
4071
|
-
|
|
4072
|
-
const l =
|
|
4086
|
+
me.global.setLocaleMessage(me.global.locale.value, o), Js(me.global.locale.value, o);
|
|
4087
|
+
const l = me.global.t(e, t || {});
|
|
4073
4088
|
return l === e ? e : l;
|
|
4074
4089
|
}
|
|
4075
4090
|
}
|
|
@@ -4180,7 +4195,7 @@ ne($, "YesNo", []), /**
|
|
|
4180
4195
|
* - 女 F
|
|
4181
4196
|
*/
|
|
4182
4197
|
ne($, "MaleFemale", []);
|
|
4183
|
-
let
|
|
4198
|
+
let Za = $, Xs = "";
|
|
4184
4199
|
const la = {
|
|
4185
4200
|
login: {
|
|
4186
4201
|
api: "PLATFORM_API",
|
|
@@ -4210,7 +4225,7 @@ const la = {
|
|
|
4210
4225
|
hideErrorToast: !0
|
|
4211
4226
|
}
|
|
4212
4227
|
};
|
|
4213
|
-
function
|
|
4228
|
+
function yc() {
|
|
4214
4229
|
Xs = w("webui.stores.userInfo.tokenParseFailed"), la.logout.loadingText = w("webui.stores.userInfo.exiting"), qs.host.loadingText = w("webui.stores.hostInfo.loading");
|
|
4215
4230
|
}
|
|
4216
4231
|
const Ct = {
|
|
@@ -4276,24 +4291,24 @@ const Ct = {
|
|
|
4276
4291
|
type: Object,
|
|
4277
4292
|
required: !1
|
|
4278
4293
|
}
|
|
4279
|
-
}, ve = (e) => e == null || e === "" ? !0 : Array.isArray(e) ? e.length === 0 : typeof e == "object" ? Object.keys(e).length === 0 : !1,
|
|
4294
|
+
}, ve = (e) => e == null || e === "" ? !0 : Array.isArray(e) ? e.length === 0 : typeof e == "object" ? Object.keys(e).length === 0 : !1, is = "/login/", jt = [], yi = (e) => {
|
|
4280
4295
|
for (const t of e) {
|
|
4281
|
-
const a =
|
|
4282
|
-
a !== -1 &&
|
|
4296
|
+
const a = jt.findIndex((n) => n.path === t.path);
|
|
4297
|
+
a !== -1 && jt.splice(a, 1), jt.push(t), ia.addRoute(t);
|
|
4283
4298
|
}
|
|
4284
4299
|
}, zs = (e, t, a, n = "") => {
|
|
4285
4300
|
const s = n + (n ? "/" : "") + e.path;
|
|
4286
4301
|
t[s] = { ...e, parent: a }, e.children && e.children.forEach((r) => zs(r, t, e, s));
|
|
4287
4302
|
}, ia = Cr({
|
|
4288
4303
|
history: Fr("/"),
|
|
4289
|
-
routes:
|
|
4304
|
+
routes: jt
|
|
4290
4305
|
}), Ii = (e, t) => {
|
|
4291
4306
|
var s, r;
|
|
4292
4307
|
const a = ((s = e.meta) == null ? void 0 : s.roles) ?? [], n = (r = e.meta) == null ? void 0 : r.permission;
|
|
4293
4308
|
if (!t)
|
|
4294
4309
|
return a.length === 0 && !n;
|
|
4295
4310
|
if (t) {
|
|
4296
|
-
const o =
|
|
4311
|
+
const o = Ie();
|
|
4297
4312
|
if (Jt.VITE_PERMISSION_MODE === "role")
|
|
4298
4313
|
return a.length === 0 ? !0 : o.hasRole(a);
|
|
4299
4314
|
if (Jt.VITE_PERMISSION_MODE === "permit") {
|
|
@@ -4312,7 +4327,7 @@ const Ct = {
|
|
|
4312
4327
|
ia.beforeEach((e, t, a) => {
|
|
4313
4328
|
var l;
|
|
4314
4329
|
const n = e;
|
|
4315
|
-
if (e.path.startsWith("/error/") || e.path.startsWith(
|
|
4330
|
+
if (e.path.startsWith("/error/") || e.path.startsWith(is))
|
|
4316
4331
|
return a();
|
|
4317
4332
|
const s = n.meta, o = ((s == null ? void 0 : s.roles) ?? []).length > 0 || ((l = s == null ? void 0 : s.permission) == null ? void 0 : l.length);
|
|
4318
4333
|
if (e.path === "/") {
|
|
@@ -4332,9 +4347,9 @@ ia.beforeEach((e, t, a) => {
|
|
|
4332
4347
|
if (!o)
|
|
4333
4348
|
a();
|
|
4334
4349
|
else {
|
|
4335
|
-
const i =
|
|
4350
|
+
const i = Ie();
|
|
4336
4351
|
if (!i.isLogin)
|
|
4337
|
-
a({ path:
|
|
4352
|
+
a({ path: is });
|
|
4338
4353
|
else {
|
|
4339
4354
|
if (!Fe().menuLoaded) {
|
|
4340
4355
|
bt.value = {
|
|
@@ -4348,19 +4363,19 @@ ia.beforeEach((e, t, a) => {
|
|
|
4348
4363
|
}
|
|
4349
4364
|
}
|
|
4350
4365
|
});
|
|
4351
|
-
const
|
|
4366
|
+
const Ni = (e) => {
|
|
4352
4367
|
if (bt.value) {
|
|
4353
4368
|
const { to: t, next: a } = bt.value;
|
|
4354
4369
|
bt.value = null, t.path === "/" ? a(e) : a(t.path);
|
|
4355
4370
|
}
|
|
4356
|
-
},
|
|
4357
|
-
const t =
|
|
4371
|
+
}, Si = (e) => {
|
|
4372
|
+
const t = hn();
|
|
4358
4373
|
if (t.TabEnabled) {
|
|
4359
|
-
if (
|
|
4374
|
+
if (Ti(e.key, t.TabPanes))
|
|
4360
4375
|
return;
|
|
4361
4376
|
t.TabPanes.push(e);
|
|
4362
4377
|
}
|
|
4363
|
-
},
|
|
4378
|
+
}, Ti = (e, t) => t.find((a) => a.key === e), hn = kt("pageInfo", {
|
|
4364
4379
|
state: () => ({
|
|
4365
4380
|
TabActive: "",
|
|
4366
4381
|
TabPanes: [],
|
|
@@ -4405,7 +4420,7 @@ const yi = (e) => {
|
|
|
4405
4420
|
// 默认为true
|
|
4406
4421
|
keepAlive: !(a.meta && !a.meta.keepAlive)
|
|
4407
4422
|
};
|
|
4408
|
-
|
|
4423
|
+
Si(n), this.TabActive = e;
|
|
4409
4424
|
}
|
|
4410
4425
|
},
|
|
4411
4426
|
persist: !1
|
|
@@ -4507,7 +4522,7 @@ class ae {
|
|
|
4507
4522
|
}
|
|
4508
4523
|
ne(ae, "messageId", 0), ne(ae, "callbacks", /* @__PURE__ */ new Map()), ne(ae, "pendingRequests", /* @__PURE__ */ new Map());
|
|
4509
4524
|
ae.init();
|
|
4510
|
-
const
|
|
4525
|
+
const yt = {
|
|
4511
4526
|
getAppInfo: ae.getAppInfo.bind(ae),
|
|
4512
4527
|
getHostInfo: ae.getHostInfo.bind(ae),
|
|
4513
4528
|
getUserInfo: ae.getUserInfo.bind(ae),
|
|
@@ -4515,15 +4530,15 @@ const It = {
|
|
|
4515
4530
|
userLogout: ae.userLogout.bind(ae),
|
|
4516
4531
|
mainAppPush: ae.mainAppPush.bind(ae),
|
|
4517
4532
|
isInMicroApp: ae.isInMicroApp.bind(ae)
|
|
4518
|
-
},
|
|
4533
|
+
}, Li = {
|
|
4519
4534
|
appList: {
|
|
4520
4535
|
api: "PLATFORM_API",
|
|
4521
4536
|
authorize: !0,
|
|
4522
4537
|
url: "/api/RCTenanetOpSrv/getApps",
|
|
4523
4538
|
loadingText: !1
|
|
4524
4539
|
}
|
|
4525
|
-
},
|
|
4526
|
-
const t =
|
|
4540
|
+
}, Ua = /* @__PURE__ */ new Map(), Oi = (e) => {
|
|
4541
|
+
const t = Ie(), { roles: a, permission: n } = e.meta || {};
|
|
4527
4542
|
if (ve(a) && ve(n))
|
|
4528
4543
|
return !0;
|
|
4529
4544
|
if (Jt.VITE_PERMISSION_MODE === "role")
|
|
@@ -4535,7 +4550,7 @@ const It = {
|
|
|
4535
4550
|
return !1;
|
|
4536
4551
|
}, Zs = (e) => e.map((t) => {
|
|
4537
4552
|
const a = { ...t };
|
|
4538
|
-
return
|
|
4553
|
+
return Oi(a) ? (a.children && (a.children = Zs(a.children)), a) : null;
|
|
4539
4554
|
}).filter(Boolean), er = (e, t = "") => {
|
|
4540
4555
|
for (const a of e) {
|
|
4541
4556
|
if (!a.children && !a.redirect) {
|
|
@@ -4556,8 +4571,8 @@ const It = {
|
|
|
4556
4571
|
AppCode: "",
|
|
4557
4572
|
Version: "",
|
|
4558
4573
|
Host: "",
|
|
4559
|
-
Source:
|
|
4560
|
-
Action:
|
|
4574
|
+
Source: Tn.Manual,
|
|
4575
|
+
Action: Sn.App,
|
|
4561
4576
|
Path: "",
|
|
4562
4577
|
Icon: "",
|
|
4563
4578
|
Routes: [],
|
|
@@ -4582,7 +4597,7 @@ const It = {
|
|
|
4582
4597
|
});
|
|
4583
4598
|
},
|
|
4584
4599
|
async getRemoteAppList() {
|
|
4585
|
-
return Xe(
|
|
4600
|
+
return Xe(Li.appList, {
|
|
4586
4601
|
Query: {
|
|
4587
4602
|
AppCode: this.appInfo.AppCode,
|
|
4588
4603
|
Enabled: 1
|
|
@@ -4591,7 +4606,7 @@ const It = {
|
|
|
4591
4606
|
if ((e == null ? void 0 : e.status) === ie.SUCCESS && e.data)
|
|
4592
4607
|
this.appList.length = 0, this.appList.push(...e.data);
|
|
4593
4608
|
else if ((e == null ? void 0 : e.errno) == ca) {
|
|
4594
|
-
|
|
4609
|
+
Ie().logout(!1);
|
|
4595
4610
|
return;
|
|
4596
4611
|
}
|
|
4597
4612
|
});
|
|
@@ -4626,7 +4641,7 @@ const It = {
|
|
|
4626
4641
|
flattenRoutes: {},
|
|
4627
4642
|
Routes: t ?? [],
|
|
4628
4643
|
defaultPage: ""
|
|
4629
|
-
}), (!Ce() || !wr()) && (await
|
|
4644
|
+
}), (!Ce() || !wr()) && (await Ie().getRolePermits(a.Id), this.appInfo.Routes.length && this.setAppRoutes(this.appInfo.Routes)));
|
|
4630
4645
|
},
|
|
4631
4646
|
/**
|
|
4632
4647
|
* 设置当前应用路由信息
|
|
@@ -4645,14 +4660,14 @@ const It = {
|
|
|
4645
4660
|
if (Object.keys(t).forEach((a) => {
|
|
4646
4661
|
const n = t[a];
|
|
4647
4662
|
n.children || !n.component || (n.meta && n.meta.keepAlive === !1 ? this.ExcludeComponents.push(a) : this.CachedComponents.push(a));
|
|
4648
|
-
}),
|
|
4663
|
+
}), Ie().isLogin) {
|
|
4649
4664
|
const a = Zs(this.appInfo.Routes);
|
|
4650
|
-
if (
|
|
4665
|
+
if (yi(a), this.appInfo.defaultPage = er(a) || "", this.appInfo.defaultPage) {
|
|
4651
4666
|
if (this.menuLoaded = !0, Ce()) {
|
|
4652
4667
|
const n = this.formatRoute(this.appInfo.defaultPage);
|
|
4653
|
-
|
|
4668
|
+
yt.mainAppPush(n);
|
|
4654
4669
|
}
|
|
4655
|
-
|
|
4670
|
+
Ni(this.appInfo.defaultPage);
|
|
4656
4671
|
}
|
|
4657
4672
|
}
|
|
4658
4673
|
},
|
|
@@ -4670,10 +4685,10 @@ const It = {
|
|
|
4670
4685
|
* @param path 路由地址
|
|
4671
4686
|
*/
|
|
4672
4687
|
push(e) {
|
|
4673
|
-
this.findRoute(e) &&
|
|
4688
|
+
this.findRoute(e) && hn().setTabActive(e), hr(() => {
|
|
4674
4689
|
if (ia.push({ path: e }), Ce()) {
|
|
4675
4690
|
const a = this.formatRoute(e);
|
|
4676
|
-
|
|
4691
|
+
yt.mainAppPush(a);
|
|
4677
4692
|
}
|
|
4678
4693
|
});
|
|
4679
4694
|
},
|
|
@@ -4692,16 +4707,16 @@ const It = {
|
|
|
4692
4707
|
* @returns 组件实例
|
|
4693
4708
|
*/
|
|
4694
4709
|
cacheComponent(e, t) {
|
|
4695
|
-
let a =
|
|
4710
|
+
let a = Ua.get(t.path);
|
|
4696
4711
|
if (!a)
|
|
4697
4712
|
if (this.CachedComponents.includes(t.path))
|
|
4698
4713
|
a = {
|
|
4699
4714
|
// 设置组件包装器的名称为路由路径
|
|
4700
4715
|
name: t.path,
|
|
4701
4716
|
render() {
|
|
4702
|
-
return
|
|
4717
|
+
return ye(e);
|
|
4703
4718
|
}
|
|
4704
|
-
},
|
|
4719
|
+
}, Ua.set(t.path, a);
|
|
4705
4720
|
else return e;
|
|
4706
4721
|
return a;
|
|
4707
4722
|
},
|
|
@@ -4710,7 +4725,7 @@ const It = {
|
|
|
4710
4725
|
* @param path 路由地址
|
|
4711
4726
|
*/
|
|
4712
4727
|
excludeComponent(e) {
|
|
4713
|
-
this.ExcludeComponents.includes(e) || this.ExcludeComponents.push(e), this.CachedComponents.splice(this.CachedComponents.indexOf(e), 1),
|
|
4728
|
+
this.ExcludeComponents.includes(e) || this.ExcludeComponents.push(e), this.CachedComponents.splice(this.CachedComponents.indexOf(e), 1), Ua.delete(e);
|
|
4714
4729
|
},
|
|
4715
4730
|
/**
|
|
4716
4731
|
* 路由路径层级查询,返回面包屑
|
|
@@ -4730,8 +4745,8 @@ const It = {
|
|
|
4730
4745
|
AppCode: "",
|
|
4731
4746
|
Version: "",
|
|
4732
4747
|
Host: "",
|
|
4733
|
-
Source:
|
|
4734
|
-
Action:
|
|
4748
|
+
Source: Tn.Manual,
|
|
4749
|
+
Action: Sn.App,
|
|
4735
4750
|
Path: "",
|
|
4736
4751
|
Icon: "",
|
|
4737
4752
|
Routes: [],
|
|
@@ -4741,11 +4756,11 @@ const It = {
|
|
|
4741
4756
|
}, this.CachedComponents.splice(0, this.CachedComponents.length), this.ExcludeComponents.splice(0, this.ExcludeComponents.length), this.appList.splice(0, this.appList.length), this.menuLoaded = !1;
|
|
4742
4757
|
},
|
|
4743
4758
|
logout() {
|
|
4744
|
-
this.clean(), Ce() ?
|
|
4759
|
+
this.clean(), Ce() ? yt.mainAppPush("/") : window.location.assign("/");
|
|
4745
4760
|
}
|
|
4746
4761
|
},
|
|
4747
4762
|
persist: !1
|
|
4748
|
-
}), ca = 1400,
|
|
4763
|
+
}), ca = 1400, Ai = (e) => {
|
|
4749
4764
|
let t = {
|
|
4750
4765
|
Option: {
|
|
4751
4766
|
Mode: "MicroApp"
|
|
@@ -4753,7 +4768,7 @@ const It = {
|
|
|
4753
4768
|
Query: e
|
|
4754
4769
|
};
|
|
4755
4770
|
return Xe(la.login, t).then((a) => (a == null ? void 0 : a.status) === ie.SUCCESS ? a : null);
|
|
4756
|
-
},
|
|
4771
|
+
}, Pi = (e) => {
|
|
4757
4772
|
let t = {
|
|
4758
4773
|
Query: {
|
|
4759
4774
|
AppId: e
|
|
@@ -4763,25 +4778,25 @@ const It = {
|
|
|
4763
4778
|
if ((a == null ? void 0 : a.status) === ie.SUCCESS)
|
|
4764
4779
|
return a.data;
|
|
4765
4780
|
if ((a == null ? void 0 : a.errno) == ca) {
|
|
4766
|
-
|
|
4781
|
+
Ie().logout(!1);
|
|
4767
4782
|
return;
|
|
4768
4783
|
}
|
|
4769
4784
|
return se.error(w("webui.stores.userInfo.authInfoFailed") + "," + (a == null ? void 0 : a.msg)), null;
|
|
4770
4785
|
});
|
|
4771
|
-
},
|
|
4786
|
+
}, Ri = () => {
|
|
4772
4787
|
let e = {
|
|
4773
4788
|
Option: {},
|
|
4774
4789
|
Query: {}
|
|
4775
4790
|
};
|
|
4776
4791
|
return Xe(la.logout, e).then((t) => (t == null ? void 0 : t.status) === ie.SUCCESS ? t.data : null);
|
|
4777
|
-
},
|
|
4792
|
+
}, wi = (e) => {
|
|
4778
4793
|
try {
|
|
4779
4794
|
const t = JSON.parse(atob(e.token.split(".")[1]));
|
|
4780
4795
|
return t.user = JSON.parse(t.user), e.UserInfo = t.user, !0;
|
|
4781
4796
|
} catch (t) {
|
|
4782
4797
|
return console.error(Xs, t), !1;
|
|
4783
4798
|
}
|
|
4784
|
-
},
|
|
4799
|
+
}, de = R(""), Et = R(null), Ie = kt("userInfo", {
|
|
4785
4800
|
state: () => ({
|
|
4786
4801
|
isLogin: !1,
|
|
4787
4802
|
userInfo: {
|
|
@@ -4799,7 +4814,7 @@ const It = {
|
|
|
4799
4814
|
* 启动时初始化用户信息
|
|
4800
4815
|
*/
|
|
4801
4816
|
init() {
|
|
4802
|
-
Ce() || (this.token ? (Ht(this.token),
|
|
4817
|
+
Ce() || (this.token ? (Ht(this.token), de.value = this.userInfo.UserLevel, this.isLogin = !0) : this.clean());
|
|
4803
4818
|
},
|
|
4804
4819
|
/**
|
|
4805
4820
|
* 登录操作
|
|
@@ -4807,18 +4822,18 @@ const It = {
|
|
|
4807
4822
|
* @returns
|
|
4808
4823
|
*/
|
|
4809
4824
|
async login(e, t) {
|
|
4810
|
-
const a = await
|
|
4825
|
+
const a = await Ai(e);
|
|
4811
4826
|
if (a) {
|
|
4812
4827
|
const n = a;
|
|
4813
4828
|
if (n.errno)
|
|
4814
4829
|
return n;
|
|
4815
4830
|
{
|
|
4816
4831
|
const s = a.data;
|
|
4817
|
-
if (this.token = s.token, Ht(this.token), this.isLogin = !0,
|
|
4832
|
+
if (this.token = s.token, Ht(this.token), this.isLogin = !0, wi(s))
|
|
4818
4833
|
this.userInfo = {
|
|
4819
4834
|
...this.userInfo,
|
|
4820
4835
|
...s.UserInfo
|
|
4821
|
-
},
|
|
4836
|
+
}, de.value = s.UserInfo.UserLevel;
|
|
4822
4837
|
else {
|
|
4823
4838
|
se.error(w("webui.stores.userInfo.userInfoParseFailed"));
|
|
4824
4839
|
return;
|
|
@@ -4838,7 +4853,7 @@ const It = {
|
|
|
4838
4853
|
if (Et.value && Et.value.appId === e)
|
|
4839
4854
|
return !0;
|
|
4840
4855
|
try {
|
|
4841
|
-
const t = await
|
|
4856
|
+
const t = await Pi(e);
|
|
4842
4857
|
return t ? (Et.value = {
|
|
4843
4858
|
appId: e,
|
|
4844
4859
|
permits: t.permits || [],
|
|
@@ -4854,7 +4869,7 @@ const It = {
|
|
|
4854
4869
|
* @returns 是否有角色权限
|
|
4855
4870
|
*/
|
|
4856
4871
|
hasRole(e) {
|
|
4857
|
-
return
|
|
4872
|
+
return de.value ? Array.isArray(e) ? e.includes(de.value) : de.value === e : !1;
|
|
4858
4873
|
},
|
|
4859
4874
|
/**
|
|
4860
4875
|
* 检查功能权限
|
|
@@ -4881,7 +4896,7 @@ const It = {
|
|
|
4881
4896
|
* @param token 用户Token
|
|
4882
4897
|
*/
|
|
4883
4898
|
setUserInfo(e, t) {
|
|
4884
|
-
|
|
4899
|
+
de.value || (de.value = e.UserLevel, this.userInfo = {
|
|
4885
4900
|
...this.userInfo,
|
|
4886
4901
|
...e
|
|
4887
4902
|
}, this.token = t, Ht(this.token), this.isLogin = !0);
|
|
@@ -4897,20 +4912,20 @@ const It = {
|
|
|
4897
4912
|
* 是否超级管理员
|
|
4898
4913
|
*/
|
|
4899
4914
|
isSuperAdmin() {
|
|
4900
|
-
return
|
|
4915
|
+
return de.value === "Super";
|
|
4901
4916
|
},
|
|
4902
4917
|
/**
|
|
4903
4918
|
* 是否管理员
|
|
4904
4919
|
*/
|
|
4905
4920
|
isAdmin() {
|
|
4906
|
-
return
|
|
4921
|
+
return de.value === "Super" || de.value === "Admin";
|
|
4907
4922
|
},
|
|
4908
4923
|
/**
|
|
4909
4924
|
* 获取用户级别
|
|
4910
4925
|
* @returns 用户级别
|
|
4911
4926
|
*/
|
|
4912
4927
|
getUserLevel() {
|
|
4913
|
-
return
|
|
4928
|
+
return de.value;
|
|
4914
4929
|
},
|
|
4915
4930
|
/*
|
|
4916
4931
|
* 清理登录信息
|
|
@@ -4922,7 +4937,7 @@ const It = {
|
|
|
4922
4937
|
Code: "",
|
|
4923
4938
|
TenantId: "",
|
|
4924
4939
|
UserLevel: ""
|
|
4925
|
-
}, this.token = "", Ht(this.token), this.isLogin = !1, Et.value = null,
|
|
4940
|
+
}, this.token = "", Ht(this.token), this.isLogin = !1, Et.value = null, de.value = "", Fe().clean(), Promise.resolve();
|
|
4926
4941
|
},
|
|
4927
4942
|
/**
|
|
4928
4943
|
* 登出操作
|
|
@@ -4931,9 +4946,9 @@ const It = {
|
|
|
4931
4946
|
*/
|
|
4932
4947
|
async logout(e) {
|
|
4933
4948
|
if (Ce())
|
|
4934
|
-
return
|
|
4949
|
+
return yt.userLogout(), Promise.resolve();
|
|
4935
4950
|
try {
|
|
4936
|
-
e && await
|
|
4951
|
+
e && await Ri();
|
|
4937
4952
|
} catch (t) {
|
|
4938
4953
|
console.error("调用登出接口失败", t);
|
|
4939
4954
|
} finally {
|
|
@@ -4976,8 +4991,8 @@ const It = {
|
|
|
4976
4991
|
JSON.parse(JSON.stringify(n.params ?? {})),
|
|
4977
4992
|
JSON.parse(JSON.stringify(t.params ?? {}))
|
|
4978
4993
|
);
|
|
4979
|
-
return t.processParams && (s = t.processParams(s)), t.loadingState && (t.loadingState.value = !0), t.hideErrorToast && (n.hideErrorToast = !0), Xe(n, s).then((r) => (t.loadingState && (t.loadingState.value = !1), (r == null ? void 0 : r.errno) == ca ? (
|
|
4980
|
-
},
|
|
4994
|
+
return t.processParams && (s = t.processParams(s)), t.loadingState && (t.loadingState.value = !0), t.hideErrorToast && (n.hideErrorToast = !0), Xe(n, s).then((r) => (t.loadingState && (t.loadingState.value = !1), (r == null ? void 0 : r.errno) == ca ? (Ie().logout(!1), null) : r)).catch((r) => (t.loadingState && (t.loadingState.value = !1), null));
|
|
4995
|
+
}, En = (e, t) => {
|
|
4981
4996
|
t.params || (t.params = {}), t.params.Query || (t.params.Query = {});
|
|
4982
4997
|
const a = ua(e, t);
|
|
4983
4998
|
return t.url = a, fa(e, t);
|
|
@@ -4993,7 +5008,7 @@ const It = {
|
|
|
4993
5008
|
n.params.Query[a] = n.params.Data[a];
|
|
4994
5009
|
const s = ua(e, n);
|
|
4995
5010
|
return n.url = s, fa(e, n).then((r) => ((r == null ? void 0 : r.status) === ie.SUCCESS && (t.hideErrorToast || se.success(w("webui.utils.data.saveSuccess"))), r));
|
|
4996
|
-
},
|
|
5011
|
+
}, ki = (e, t, a = {}) => {
|
|
4997
5012
|
const n = a.primaryKey || "Id";
|
|
4998
5013
|
a.params || (a.params = {}), a.params.Query || (a.params.Query = {});
|
|
4999
5014
|
const s = {
|
|
@@ -5005,22 +5020,22 @@ const It = {
|
|
|
5005
5020
|
return se.error(w("webui.utils.data.forbidDeleteWithoutCondition")), Promise.resolve(null);
|
|
5006
5021
|
const r = ua(e, s);
|
|
5007
5022
|
return s.url = r, fa(e, s).then((o) => ((o == null ? void 0 : o.status) === ie.SUCCESS && (a.hideErrorToast || se.success(w("webui.utils.data.deleteSuccess"))), o));
|
|
5008
|
-
},
|
|
5023
|
+
}, Di = (e, t) => En(e, {
|
|
5009
5024
|
urlKey: "tree",
|
|
5010
5025
|
params: {},
|
|
5011
5026
|
loadingState: e.isTreeLoading,
|
|
5012
5027
|
loadingText: !1,
|
|
5013
5028
|
processParams: () => Dt(e.treeQuery, t)
|
|
5014
|
-
}).then((a) => (a == null ? void 0 : a.status) === ie.SUCCESS ? (e.data.value = a.data || [], e.afterLoad && e.afterLoad(e.data.value), e.data.value) : (e.afterLoad && e.afterLoad((a == null ? void 0 : a.data) || []), [])),
|
|
5029
|
+
}).then((a) => (a == null ? void 0 : a.status) === ie.SUCCESS ? (e.data.value = a.data || [], e.afterLoad && e.afterLoad(e.data.value), e.data.value) : (e.afterLoad && e.afterLoad((a == null ? void 0 : a.data) || []), [])), Ci = (e, t) => {
|
|
5015
5030
|
for (const a of e) {
|
|
5016
5031
|
if (a.key === t) return a;
|
|
5017
5032
|
if (a.children) {
|
|
5018
|
-
const n =
|
|
5033
|
+
const n = Ci(a.children, t);
|
|
5019
5034
|
if (n) return n;
|
|
5020
5035
|
}
|
|
5021
5036
|
}
|
|
5022
5037
|
return null;
|
|
5023
|
-
},
|
|
5038
|
+
}, Nc = kt("settingInfo", {
|
|
5024
5039
|
state: () => ({
|
|
5025
5040
|
fullscreen: !1,
|
|
5026
5041
|
menuCollapse: !1,
|
|
@@ -5064,8 +5079,8 @@ const It = {
|
|
|
5064
5079
|
persist: !1
|
|
5065
5080
|
});
|
|
5066
5081
|
let Pt;
|
|
5067
|
-
const
|
|
5068
|
-
Pt = new
|
|
5082
|
+
const Sc = (e) => {
|
|
5083
|
+
Pt = new nn({}), Pt.messages({
|
|
5069
5084
|
required: "${label}" + w("webui.utils.formValidate.required"),
|
|
5070
5085
|
types: {
|
|
5071
5086
|
number: "${label}" + w("webui.utils.formValidate.numberType")
|
|
@@ -5091,7 +5106,7 @@ const Nc = (e) => {
|
|
|
5091
5106
|
},
|
|
5092
5107
|
...e
|
|
5093
5108
|
});
|
|
5094
|
-
},
|
|
5109
|
+
}, Tc = (e) => {
|
|
5095
5110
|
if (!e || ve(e))
|
|
5096
5111
|
return [];
|
|
5097
5112
|
const t = [], a = Pt.messages(), n = (r, o, l) => {
|
|
@@ -5104,8 +5119,8 @@ const Nc = (e) => {
|
|
|
5104
5119
|
for (const m of c)
|
|
5105
5120
|
if (i === m && a[m]) {
|
|
5106
5121
|
const g = a[m], p = ["len", "min", "max", "range"];
|
|
5107
|
-
for (const
|
|
5108
|
-
|
|
5122
|
+
for (const I of p)
|
|
5123
|
+
I === "range" && o.min != null && o.max != null && g.range ? s(g.range, r, { min: o.min, max: o.max }, l) : I !== "range" && o[I] != null && g[I] && s(g[I], r, { [I]: o[I] }, l);
|
|
5109
5124
|
}
|
|
5110
5125
|
if (o.required && a.required && s(a.required, r, {}, l), o.pattern && a.pattern && s(o.message, r, {}, l), o.enum && Array.isArray(o.enum) && a.enum) {
|
|
5111
5126
|
const m = o.enum.join(", ");
|
|
@@ -5147,10 +5162,10 @@ const Nc = (e) => {
|
|
|
5147
5162
|
}), t;
|
|
5148
5163
|
}, Ft = async (e) => {
|
|
5149
5164
|
const t = e.formData.value, a = e.formRules.value;
|
|
5150
|
-
ve(a) || (
|
|
5165
|
+
ve(a) || (vn(e), e.ruleValidator || (e.ruleValidator = new nn({}), e.ruleValidator.messages(Pt.messages()), e.ruleValidator.define(a)), e.ruleResults.value = await e.ruleValidator.validate(t).then(() => {
|
|
5151
5166
|
}).catch(({ fields: n }) => n));
|
|
5152
|
-
},
|
|
5153
|
-
}).catch(({ fields: n }) => n)),
|
|
5167
|
+
}, Lc = async (e, t, a) => (a || (a = new nn({}), a.messages(Pt.messages()), a.define(t)), a.validate(e).then(() => {
|
|
5168
|
+
}).catch(({ fields: n }) => n)), vn = (e) => {
|
|
5154
5169
|
e.ruleResults.value = void 0;
|
|
5155
5170
|
}, ct = () => {
|
|
5156
5171
|
const e = at(Re.EditorControl, void 0), t = R(at(Re.LabelText, "")), a = R(at(Re.RuleKey, "")), n = at(Re.ErrInfo, void 0);
|
|
@@ -5160,7 +5175,7 @@ const Nc = (e) => {
|
|
|
5160
5175
|
ruleKey: a,
|
|
5161
5176
|
errInfo: n
|
|
5162
5177
|
};
|
|
5163
|
-
},
|
|
5178
|
+
}, Fi = (e, t) => {
|
|
5164
5179
|
let a = R({
|
|
5165
5180
|
msg: "",
|
|
5166
5181
|
errClass: ""
|
|
@@ -5168,24 +5183,24 @@ const Nc = (e) => {
|
|
|
5168
5183
|
if (!e.label || !e.rule)
|
|
5169
5184
|
return a;
|
|
5170
5185
|
const n = t == null ? void 0 : t.ruleResults;
|
|
5171
|
-
return
|
|
5186
|
+
return B(
|
|
5172
5187
|
() => n == null ? void 0 : n.value,
|
|
5173
5188
|
(s) => {
|
|
5174
5189
|
if (a.value.errClass = "", a.value.msg = "", !ve(s)) {
|
|
5175
|
-
const r =
|
|
5190
|
+
const r = Mi(
|
|
5176
5191
|
{
|
|
5177
5192
|
label: e.label,
|
|
5178
5193
|
rule: e.rule
|
|
5179
5194
|
},
|
|
5180
5195
|
t == null ? void 0 : t.formRules.value,
|
|
5181
|
-
|
|
5196
|
+
fs(s)
|
|
5182
5197
|
);
|
|
5183
5198
|
a.value.errClass = r.errClass.value, a.value.msg = r.msg.value;
|
|
5184
5199
|
}
|
|
5185
5200
|
},
|
|
5186
5201
|
{ deep: !0 }
|
|
5187
5202
|
), a;
|
|
5188
|
-
},
|
|
5203
|
+
}, Mi = (e, t, a) => {
|
|
5189
5204
|
const n = R([]), s = R(""), r = R("");
|
|
5190
5205
|
if (!e.rule || !t || !a)
|
|
5191
5206
|
return { msg: s, ruleErrors: n, errClass: r };
|
|
@@ -5212,29 +5227,29 @@ const Nc = (e) => {
|
|
|
5212
5227
|
});
|
|
5213
5228
|
}
|
|
5214
5229
|
}), n.value.length > 0 && (r.value = "error"), { msg: s, ruleErrors: n, errClass: r };
|
|
5215
|
-
},
|
|
5230
|
+
}, Oc = (e, t) => {
|
|
5216
5231
|
wa(Re.LabelText, e.label || ""), wa(Re.RuleKey, e.rule || "");
|
|
5217
|
-
const a =
|
|
5232
|
+
const a = Fi(e, t);
|
|
5218
5233
|
return wa(Re.ErrInfo, a), a;
|
|
5219
|
-
},
|
|
5234
|
+
}, Ui = (e, t) => {
|
|
5220
5235
|
if (!t)
|
|
5221
5236
|
return;
|
|
5222
5237
|
const [a, ...n] = e;
|
|
5223
5238
|
if (e.length === 1)
|
|
5224
5239
|
return t[a];
|
|
5225
5240
|
if (t[a])
|
|
5226
|
-
return
|
|
5227
|
-
}, Oc = (e) => {
|
|
5228
|
-
ar(e);
|
|
5241
|
+
return Ui(n, t[a].fields);
|
|
5229
5242
|
}, Ac = (e) => {
|
|
5243
|
+
ar(e);
|
|
5244
|
+
}, Pc = (e) => {
|
|
5230
5245
|
const t = e.page, a = e.formData.value;
|
|
5231
5246
|
a[e.primaryKey ?? t.primaryKey] = null, ar(e);
|
|
5232
|
-
},
|
|
5233
|
-
|
|
5247
|
+
}, Rc = (e) => {
|
|
5248
|
+
bn(e), e.visible.value = !1;
|
|
5234
5249
|
}, ar = async (e) => {
|
|
5235
5250
|
var n;
|
|
5236
5251
|
const t = e.page;
|
|
5237
|
-
if (e.isFormSaving.value = !0,
|
|
5252
|
+
if (e.isFormSaving.value = !0, vn(e), e.beforeSave && e.beforeSave() === !1)
|
|
5238
5253
|
return e.isFormSaving.value = !1, Promise.resolve();
|
|
5239
5254
|
if (e.formRules.value && await Ft(e), e.ruleResults.value)
|
|
5240
5255
|
return se.error(w("webui.utils.form.submitValidationFailed")), console.error("表单验证失败!", e.ruleResults.value), e.isFormSaving.value = !1, Promise.resolve();
|
|
@@ -5282,26 +5297,26 @@ const Nc = (e) => {
|
|
|
5282
5297
|
} else
|
|
5283
5298
|
se.error((s == null ? void 0 : s.msg) ?? w("webui.utils.form.saveFailed")), e.afterSave && e.afterSave(s);
|
|
5284
5299
|
});
|
|
5285
|
-
},
|
|
5300
|
+
}, wc = async (e) => {
|
|
5286
5301
|
const t = e.page, a = e.grid;
|
|
5287
5302
|
e.isFormLoading.value = !0;
|
|
5288
5303
|
const n = e.formData.value, s = e.primaryKey ?? t.primaryKey;
|
|
5289
5304
|
return rr(a, { [s]: n[s] }, e.detailUrl).then((r) => {
|
|
5290
5305
|
e.isFormLoading.value = !1, r && nr(e, r);
|
|
5291
5306
|
});
|
|
5292
|
-
},
|
|
5307
|
+
}, kc = (e) => {
|
|
5293
5308
|
const t = e.grid;
|
|
5294
|
-
t && (t.rowData.value = void 0), e && (
|
|
5309
|
+
t && (t.rowData.value = void 0), e && (bn(e), e.visible && (e.visible.value = !1), setTimeout(() => {
|
|
5295
5310
|
e.visible.value = !0;
|
|
5296
5311
|
}, 1));
|
|
5297
5312
|
}, nr = (e, t) => {
|
|
5298
|
-
|
|
5313
|
+
bn(e);
|
|
5299
5314
|
const a = { ...e.formData.value, ...t };
|
|
5300
5315
|
e.formData.value = JSON.parse(JSON.stringify(a));
|
|
5301
|
-
},
|
|
5302
|
-
e.formData.value = e.default ? JSON.parse(JSON.stringify(e.default)) : {},
|
|
5303
|
-
},
|
|
5304
|
-
const a =
|
|
5316
|
+
}, bn = (e) => {
|
|
5317
|
+
e.formData.value = e.default ? JSON.parse(JSON.stringify(e.default)) : {}, vn(e);
|
|
5318
|
+
}, Dc = (e, t) => {
|
|
5319
|
+
const a = Ie();
|
|
5305
5320
|
return e.filter((s) => s.role && !a.hasRole(s.role) || s.permit && !a.hasPermit(ia.currentRoute.value.path, s.permit) || s.enabled === !1 ? !1 : typeof s.enabled == "function" ? s.enabled() : !0).filter((s) => {
|
|
5306
5321
|
if (!t) {
|
|
5307
5322
|
if (s.visible === !1)
|
|
@@ -5311,7 +5326,7 @@ const Nc = (e) => {
|
|
|
5311
5326
|
}
|
|
5312
5327
|
return !0;
|
|
5313
5328
|
});
|
|
5314
|
-
},
|
|
5329
|
+
}, Cc = (e, t) => {
|
|
5315
5330
|
const a = t == null ? void 0 : t.filter((n) => {
|
|
5316
5331
|
const s = e.find(
|
|
5317
5332
|
(r) => r.dataIndex === n.dataIndex || r.key === n.key || r.title === n.title
|
|
@@ -5319,10 +5334,10 @@ const Nc = (e) => {
|
|
|
5319
5334
|
return s ? { ...n, ...s } : !1;
|
|
5320
5335
|
});
|
|
5321
5336
|
return [...a || [], ...e.filter((n) => !(a != null && a.includes(n)))];
|
|
5322
|
-
},
|
|
5337
|
+
}, xi = (e) => sr(e).then((t) => t.rows), sr = (e) => {
|
|
5323
5338
|
e.gridQuery || (e.gridQuery = {});
|
|
5324
5339
|
const t = e.remotePage ? "find" : "list";
|
|
5325
|
-
return
|
|
5340
|
+
return En(e, {
|
|
5326
5341
|
urlKey: t,
|
|
5327
5342
|
url: e.gridUrl,
|
|
5328
5343
|
params: e.gridQuery,
|
|
@@ -5347,7 +5362,7 @@ const Nc = (e) => {
|
|
|
5347
5362
|
rows: []
|
|
5348
5363
|
};
|
|
5349
5364
|
});
|
|
5350
|
-
},
|
|
5365
|
+
}, Vi = (e, t, a = {}) => tr(e, {
|
|
5351
5366
|
urlKey: "update",
|
|
5352
5367
|
url: e.updateUrl,
|
|
5353
5368
|
params: {
|
|
@@ -5358,37 +5373,37 @@ const Nc = (e) => {
|
|
|
5358
5373
|
...a
|
|
5359
5374
|
}).then((n) => ((n == null ? void 0 : n.status) === ie.SUCCESS && setTimeout(() => {
|
|
5360
5375
|
e.reload.value = !0, e.afterUpdate && e.afterUpdate(t);
|
|
5361
|
-
}, 50), n)),
|
|
5376
|
+
}, 50), n)), Fc = (e, t) => {
|
|
5362
5377
|
const a = {};
|
|
5363
|
-
return a[e.primaryKey] = t[e.primaryKey], a[e.statusKey] = t[e.statusKey],
|
|
5378
|
+
return a[e.primaryKey] = t[e.primaryKey], a[e.statusKey] = t[e.statusKey], Vi(e, a, {
|
|
5364
5379
|
loadingText: !1,
|
|
5365
5380
|
hideErrorToast: !0
|
|
5366
5381
|
});
|
|
5367
|
-
}, rr = async (e, t, a) => await
|
|
5382
|
+
}, rr = async (e, t, a) => await En(e, {
|
|
5368
5383
|
urlKey: "detail",
|
|
5369
5384
|
url: a,
|
|
5370
5385
|
params: t,
|
|
5371
5386
|
loadingState: e.isGridLoading
|
|
5372
|
-
}),
|
|
5387
|
+
}), Mc = (e, t) => {
|
|
5373
5388
|
const a = t;
|
|
5374
5389
|
return rr(e, { [e.primaryKey]: a[e.primaryKey] }).then((n) => ((n == null ? void 0 : n.status) === ie.SUCCESS && n.data && (e.expandRows.value[a[e.primaryKey]] = n), n));
|
|
5375
|
-
},
|
|
5390
|
+
}, Uc = (e, t) => {
|
|
5376
5391
|
let a = e.editor;
|
|
5377
5392
|
e.rowData.value = t, a && (nr(a, t), a.visible.value = !0);
|
|
5378
|
-
},
|
|
5393
|
+
}, xc = (e, t) => ki(e, t, {
|
|
5379
5394
|
url: e.deleteUrl,
|
|
5380
5395
|
primaryKey: e.primaryKey
|
|
5381
5396
|
}).then((a) => ((a == null ? void 0 : a.status) === ie.SUCCESS && setTimeout(() => {
|
|
5382
5397
|
e.reload.value = !0, e.afterDelete && !Array.isArray(t) && e.afterDelete(t);
|
|
5383
5398
|
}, 50), a));
|
|
5384
|
-
var
|
|
5385
|
-
class
|
|
5399
|
+
var en = /* @__PURE__ */ ((e) => (e.SelectReload = "Select.Reload", e.RadioReload = "Radio.Reload", e.CheckboxReload = "Checkbox.Reload", e.TreeSelectReload = "TreeSelect.Reload", e.TreeCheckReload = "TreeCheck.Reload", e))(en || {});
|
|
5400
|
+
class $i {
|
|
5386
5401
|
constructor() {
|
|
5387
5402
|
ne(this, "listeners", {});
|
|
5388
5403
|
}
|
|
5389
5404
|
// 检查事件名是否符合前缀
|
|
5390
5405
|
isValidPrefix(t) {
|
|
5391
|
-
return Object.values(
|
|
5406
|
+
return Object.values(en).some((a) => t.startsWith(a + "."));
|
|
5392
5407
|
}
|
|
5393
5408
|
/**
|
|
5394
5409
|
* 事件订阅
|
|
@@ -5397,7 +5412,7 @@ class Vi {
|
|
|
5397
5412
|
*/
|
|
5398
5413
|
on(t, a) {
|
|
5399
5414
|
if (!this.isValidPrefix(t)) {
|
|
5400
|
-
console.error(`事件前缀不正确: ${t}, 事件名必须以 ${Object.values(
|
|
5415
|
+
console.error(`事件前缀不正确: ${t}, 事件名必须以 ${Object.values(en).join(", ")} 开头`);
|
|
5401
5416
|
return;
|
|
5402
5417
|
}
|
|
5403
5418
|
this.listeners[t] || (this.listeners[t] = []), this.listeners[t].push(a);
|
|
@@ -5428,18 +5443,18 @@ class Vi {
|
|
|
5428
5443
|
this.listeners[t] && this.listeners[t].forEach((n) => n(t, ...a));
|
|
5429
5444
|
}
|
|
5430
5445
|
}
|
|
5431
|
-
const nt = new
|
|
5446
|
+
const nt = new $i(), dt = (e, t, a) => {
|
|
5432
5447
|
if (t.inputFactory && (a != null && a.reloadEvent)) {
|
|
5433
5448
|
const n = t.inputFactory.value;
|
|
5434
5449
|
n.reloadHandler = (s, r) => {
|
|
5435
|
-
|
|
5450
|
+
Hi(t.url, t, r);
|
|
5436
5451
|
}, nt.on(a.reloadEvent, n.reloadHandler);
|
|
5437
5452
|
}
|
|
5438
5453
|
if (a != null && a.data)
|
|
5439
|
-
|
|
5454
|
+
B(
|
|
5440
5455
|
() => a.data,
|
|
5441
5456
|
() => {
|
|
5442
|
-
|
|
5457
|
+
yn(t, a.data, !0);
|
|
5443
5458
|
},
|
|
5444
5459
|
{ deep: !0, immediate: !0 }
|
|
5445
5460
|
);
|
|
@@ -5451,7 +5466,7 @@ const nt = new Vi(), dt = (e, t, a) => {
|
|
|
5451
5466
|
duration: 5e3
|
|
5452
5467
|
});
|
|
5453
5468
|
}
|
|
5454
|
-
},
|
|
5469
|
+
}, yn = (e, t, a) => {
|
|
5455
5470
|
if (a) {
|
|
5456
5471
|
const n = {
|
|
5457
5472
|
...e.fieldMap
|
|
@@ -5462,17 +5477,17 @@ const nt = new Vi(), dt = (e, t, a) => {
|
|
|
5462
5477
|
label: w("webui.components.form.radio.all"),
|
|
5463
5478
|
value: e.allValue ?? void 0
|
|
5464
5479
|
}), e.options.value = t;
|
|
5465
|
-
},
|
|
5466
|
-
Array.isArray(a) ?
|
|
5480
|
+
}, Hi = (e, t, a) => {
|
|
5481
|
+
Array.isArray(a) ? yn(t, a, !0) : or(e, t, a);
|
|
5467
5482
|
}, Mt = (e, t) => {
|
|
5468
5483
|
var a;
|
|
5469
5484
|
(a = e.inputFactory) != null && a.value && t.reloadEvent && e.inputFactory.value.reloadHandler && nt.off(t.reloadEvent, e.inputFactory.value.reloadHandler);
|
|
5470
5485
|
}, or = (e, t, a) => {
|
|
5471
5486
|
const n = JSON.parse(JSON.stringify(e.params ?? {})), s = JSON.parse(JSON.stringify(t.params ?? {})), r = Dt(n, s, a);
|
|
5472
|
-
|
|
5473
|
-
|
|
5487
|
+
Wi(e, t, t.fieldMap, r).then((o) => {
|
|
5488
|
+
yn(t, o, !1);
|
|
5474
5489
|
});
|
|
5475
|
-
},
|
|
5490
|
+
}, Wi = (e, t, a, n) => {
|
|
5476
5491
|
const { fieldMap: s, ...r } = e, l = {
|
|
5477
5492
|
...{
|
|
5478
5493
|
url: "",
|
|
@@ -5489,14 +5504,14 @@ const nt = new Vi(), dt = (e, t, a) => {
|
|
|
5489
5504
|
if (i.data)
|
|
5490
5505
|
return i.data;
|
|
5491
5506
|
} else if ((i == null ? void 0 : i.errno) == ca) {
|
|
5492
|
-
|
|
5507
|
+
Ie().logout(!1);
|
|
5493
5508
|
return;
|
|
5494
5509
|
}
|
|
5495
5510
|
return [];
|
|
5496
5511
|
}).finally(() => {
|
|
5497
5512
|
t.isOptionLoading.value = !1;
|
|
5498
5513
|
});
|
|
5499
|
-
},
|
|
5514
|
+
}, Gi = (e, t, a) => {
|
|
5500
5515
|
if (e === void 0) return;
|
|
5501
5516
|
const n = (r) => {
|
|
5502
5517
|
const o = { ...r };
|
|
@@ -5557,7 +5572,7 @@ const nt = new Vi(), dt = (e, t, a) => {
|
|
|
5557
5572
|
var r, o;
|
|
5558
5573
|
const n = (r = e.inputFactory) == null ? void 0 : r.value;
|
|
5559
5574
|
n != null && n.editorCtrl && ((o = n.errInfo) != null && o.value.errClass) && Ft(n.editorCtrl), e.selected.value = a;
|
|
5560
|
-
const s =
|
|
5575
|
+
const s = Gi(a, e.options.value);
|
|
5561
5576
|
if (e.selectedOptions.value = s, t.formData && t.outFields && lr(t.formData, t.outFields, s), t.changeEvent) {
|
|
5562
5577
|
const [l, i] = t.changeEvent;
|
|
5563
5578
|
if (i)
|
|
@@ -5624,7 +5639,7 @@ const nt = new Vi(), dt = (e, t, a) => {
|
|
|
5624
5639
|
value: "Id"
|
|
5625
5640
|
}
|
|
5626
5641
|
}
|
|
5627
|
-
},
|
|
5642
|
+
}, Vc = (e) => {
|
|
5628
5643
|
Z.PageOption = {
|
|
5629
5644
|
...Z.PageOption,
|
|
5630
5645
|
...e.pageOption
|
|
@@ -5641,7 +5656,7 @@ const nt = new Vi(), dt = (e, t, a) => {
|
|
|
5641
5656
|
}, pa = (e) => {
|
|
5642
5657
|
for (let t in e.urls)
|
|
5643
5658
|
e.urls[t].api || (e.urls[t].api = e.api), e.urls[t].authorize === void 0 && (e.urls[t].authorize = e.authorize);
|
|
5644
|
-
},
|
|
5659
|
+
}, Ki = (e, t, a, n) => (pa(e), {
|
|
5645
5660
|
editorCtrl: {
|
|
5646
5661
|
...Z.EditorOption,
|
|
5647
5662
|
name: "",
|
|
@@ -5657,7 +5672,7 @@ const nt = new Vi(), dt = (e, t, a) => {
|
|
|
5657
5672
|
isFormSaving: R(!1),
|
|
5658
5673
|
isFormLoading: R(!1)
|
|
5659
5674
|
}
|
|
5660
|
-
}),
|
|
5675
|
+
}), Yi = (e, t, a) => {
|
|
5661
5676
|
pa(e);
|
|
5662
5677
|
const n = {
|
|
5663
5678
|
...Z.GridOption,
|
|
@@ -5686,17 +5701,17 @@ const nt = new Vi(), dt = (e, t, a) => {
|
|
|
5686
5701
|
updateUrl: e.urls.update,
|
|
5687
5702
|
deleteUrl: e.urls.delete
|
|
5688
5703
|
};
|
|
5689
|
-
return
|
|
5704
|
+
return B(
|
|
5690
5705
|
() => n.reload.value,
|
|
5691
5706
|
(s) => {
|
|
5692
5707
|
s && (setTimeout(() => {
|
|
5693
5708
|
n.reload.value = !1;
|
|
5694
|
-
}, 1), n.remotePage ? sr(n) :
|
|
5709
|
+
}, 1), n.remotePage ? sr(n) : xi(n));
|
|
5695
5710
|
}
|
|
5696
5711
|
), {
|
|
5697
5712
|
gridCtrl: n
|
|
5698
5713
|
};
|
|
5699
|
-
},
|
|
5714
|
+
}, $c = (e, t) => {
|
|
5700
5715
|
pa(e);
|
|
5701
5716
|
const a = {
|
|
5702
5717
|
...Z.TreeOption,
|
|
@@ -5707,12 +5722,12 @@ const nt = new Vi(), dt = (e, t, a) => {
|
|
|
5707
5722
|
data: ke(void 0),
|
|
5708
5723
|
isTreeLoading: R(!1)
|
|
5709
5724
|
};
|
|
5710
|
-
return
|
|
5725
|
+
return B(
|
|
5711
5726
|
() => a.reload.value,
|
|
5712
5727
|
(n) => {
|
|
5713
5728
|
n && (setTimeout(() => {
|
|
5714
5729
|
a.reload.value = !1;
|
|
5715
|
-
}, 1),
|
|
5730
|
+
}, 1), Di(a));
|
|
5716
5731
|
}
|
|
5717
5732
|
), {
|
|
5718
5733
|
treeCtrl: a
|
|
@@ -5729,7 +5744,7 @@ const nt = new Vi(), dt = (e, t, a) => {
|
|
|
5729
5744
|
options: R([]),
|
|
5730
5745
|
isOptionLoading: R(!1)
|
|
5731
5746
|
};
|
|
5732
|
-
return
|
|
5747
|
+
return B(
|
|
5733
5748
|
() => a.reload.value,
|
|
5734
5749
|
(n) => {
|
|
5735
5750
|
n && (setTimeout(() => {
|
|
@@ -5739,24 +5754,24 @@ const nt = new Vi(), dt = (e, t, a) => {
|
|
|
5739
5754
|
), {
|
|
5740
5755
|
optionCtrl: a
|
|
5741
5756
|
};
|
|
5742
|
-
},
|
|
5757
|
+
}, Hc = (e, t, a) => {
|
|
5743
5758
|
pa(e);
|
|
5744
5759
|
const n = {
|
|
5745
5760
|
...Z.PageOption,
|
|
5746
5761
|
...e
|
|
5747
|
-
}, { editorCtrl: s } =
|
|
5762
|
+
}, { editorCtrl: s } = Ki(e, n, t, a), { gridCtrl: r } = Yi(e, n);
|
|
5748
5763
|
return n.editor = s, n.grid = r, r.editor = s, r.tools = ["Reload", "RowHeight", "TableHeadset", "Fullscreen"], s.grid = r, {
|
|
5749
5764
|
pageCtrl: n,
|
|
5750
5765
|
editorCtrl: s,
|
|
5751
5766
|
gridCtrl: r
|
|
5752
5767
|
};
|
|
5753
|
-
},
|
|
5768
|
+
}, Bi = 10080 * 60 * 1e3, xa = /* @__PURE__ */ new Map(), cs = /* @__PURE__ */ new Set(), Ge = R({}), Wc = Ge, Gc = (e) => {
|
|
5754
5769
|
var s;
|
|
5755
|
-
if (!e.iconUrl) return
|
|
5770
|
+
if (!e.iconUrl) return tn;
|
|
5756
5771
|
const t = R(!0), a = R("");
|
|
5757
5772
|
let n = !0;
|
|
5758
5773
|
return (s = e.icons) != null && s.length && (n = e.icons.every((r) => Ge.value[r] !== void 0)), (e.icon && !Ge.value[e.icon] || !n) && ji(e, t).then(() => {
|
|
5759
|
-
|
|
5774
|
+
Xi(e.iconUrl, e.monoColor || !1), t.value = !0;
|
|
5760
5775
|
}), De({
|
|
5761
5776
|
props: {
|
|
5762
5777
|
icon: {
|
|
@@ -5787,25 +5802,25 @@ const nt = new Vi(), dt = (e, t, a) => {
|
|
|
5787
5802
|
const l = R(r.icon), i = R(0), c = () => {
|
|
5788
5803
|
r.icons && i.value++;
|
|
5789
5804
|
};
|
|
5790
|
-
return
|
|
5805
|
+
return B(
|
|
5791
5806
|
() => r.iconIndex,
|
|
5792
5807
|
(m) => {
|
|
5793
5808
|
m !== void 0 && (i.value = m);
|
|
5794
5809
|
},
|
|
5795
5810
|
{ immediate: !0 }
|
|
5796
|
-
),
|
|
5811
|
+
), B(
|
|
5797
5812
|
() => i.value,
|
|
5798
5813
|
(m) => {
|
|
5799
5814
|
r.icons && (m >= r.icons.length && (i.value = 0), l.value = r.icons[i.value], Yt(a, l, l.value), o("update:iconIndex", i.value));
|
|
5800
5815
|
},
|
|
5801
5816
|
{ immediate: !0 }
|
|
5802
|
-
),
|
|
5817
|
+
), B(
|
|
5803
5818
|
() => Ge.value,
|
|
5804
5819
|
() => {
|
|
5805
5820
|
Yt(a, l, l.value);
|
|
5806
5821
|
},
|
|
5807
5822
|
{ deep: !0 }
|
|
5808
|
-
),
|
|
5823
|
+
), B(
|
|
5809
5824
|
() => r.icon,
|
|
5810
5825
|
(m) => {
|
|
5811
5826
|
Yt(a, l, m);
|
|
@@ -5814,36 +5829,36 @@ const nt = new Vi(), dt = (e, t, a) => {
|
|
|
5814
5829
|
},
|
|
5815
5830
|
render() {
|
|
5816
5831
|
if (!t.value)
|
|
5817
|
-
return
|
|
5832
|
+
return tn;
|
|
5818
5833
|
let r = this.class, o = "";
|
|
5819
5834
|
Array.isArray(r) ? o = r.join(" ") : typeof r == "string" && (o = r);
|
|
5820
5835
|
let l = [o];
|
|
5821
|
-
return !/\bw-/.test(o) && !/$w-/.test(o) && l.push("w-4"), !/\bh-/.test(o) && !/$h-/.test(o) && l.push("h-4"), a.value ?
|
|
5836
|
+
return !/\bw-/.test(o) && !/$w-/.test(o) && l.push("w-4"), !/\bh-/.test(o) && !/$h-/.test(o) && l.push("h-4"), a.value ? ye(fs(a.value), {
|
|
5822
5837
|
onClick: this.$props.clickable ? this.handleClick : void 0,
|
|
5823
5838
|
class: `${l.join(" ")}`,
|
|
5824
5839
|
style: {
|
|
5825
5840
|
fill: "currentColor",
|
|
5826
5841
|
cursor: this.$props.clickable ? "pointer" : "default",
|
|
5827
|
-
transform:
|
|
5842
|
+
transform: zi(this.angle, this.flip)
|
|
5828
5843
|
}
|
|
5829
|
-
}) :
|
|
5844
|
+
}) : ye("div", { class: "w-[14px] h-[14px]" });
|
|
5830
5845
|
}
|
|
5831
5846
|
});
|
|
5832
5847
|
}, ji = (e, t) => {
|
|
5833
5848
|
let a = e.iconUrl;
|
|
5834
5849
|
if (!a)
|
|
5835
5850
|
return console.error("图标库地址不能为空"), Promise.resolve();
|
|
5836
|
-
if (
|
|
5851
|
+
if (xa.has(a))
|
|
5837
5852
|
return Promise.resolve();
|
|
5838
5853
|
const n = cr(a);
|
|
5839
5854
|
if (n)
|
|
5840
5855
|
return new Promise(async (r) => (ir(n.scriptContent), r()));
|
|
5841
5856
|
t.value = !1;
|
|
5842
5857
|
const s = new Promise(async (r) => {
|
|
5843
|
-
await
|
|
5858
|
+
await Ji(a, e.monoColor || !1), r(), xa.delete(a);
|
|
5844
5859
|
});
|
|
5845
|
-
return
|
|
5846
|
-
},
|
|
5860
|
+
return xa.set(a, s), s;
|
|
5861
|
+
}, Ji = async (e, t) => {
|
|
5847
5862
|
try {
|
|
5848
5863
|
const a = await fetch(e);
|
|
5849
5864
|
if (!a.ok) {
|
|
@@ -5856,7 +5871,7 @@ const nt = new Vi(), dt = (e, t, a) => {
|
|
|
5856
5871
|
const r = n.match(s);
|
|
5857
5872
|
if (r && r.length > 1) {
|
|
5858
5873
|
let o = r[1];
|
|
5859
|
-
|
|
5874
|
+
Qi(e, o, t, n);
|
|
5860
5875
|
}
|
|
5861
5876
|
ir(n);
|
|
5862
5877
|
return;
|
|
@@ -5866,13 +5881,13 @@ const nt = new Vi(), dt = (e, t, a) => {
|
|
|
5866
5881
|
}, ir = (e) => {
|
|
5867
5882
|
const t = document.createElement("script");
|
|
5868
5883
|
t.textContent = e, document.head.appendChild(t);
|
|
5869
|
-
},
|
|
5884
|
+
}, Qi = (e, t, a, n) => {
|
|
5870
5885
|
let s = `icon_cache:${e}`;
|
|
5871
5886
|
const r = {
|
|
5872
5887
|
windowKey: t,
|
|
5873
5888
|
monoColor: a,
|
|
5874
5889
|
scriptContent: n,
|
|
5875
|
-
expireTime: Date.now() +
|
|
5890
|
+
expireTime: Date.now() + Bi
|
|
5876
5891
|
// 缓存时间:7天
|
|
5877
5892
|
};
|
|
5878
5893
|
localStorage.setItem(s, JSON.stringify(r));
|
|
@@ -5887,7 +5902,7 @@ const nt = new Vi(), dt = (e, t, a) => {
|
|
|
5887
5902
|
return console.error("解析缓存失败:", s), null;
|
|
5888
5903
|
}
|
|
5889
5904
|
return n.expireTime < Date.now() ? (localStorage.removeItem(e), null) : n;
|
|
5890
|
-
},
|
|
5905
|
+
}, Kc = () => {
|
|
5891
5906
|
const e = Date.now();
|
|
5892
5907
|
for (const t in localStorage)
|
|
5893
5908
|
if (t.startsWith("icon_cache:")) {
|
|
@@ -5898,11 +5913,11 @@ const nt = new Vi(), dt = (e, t, a) => {
|
|
|
5898
5913
|
setTimeout(() => {
|
|
5899
5914
|
t.value = a, t.value && (e.value = Ge.value[t.value]);
|
|
5900
5915
|
}, 1);
|
|
5901
|
-
},
|
|
5916
|
+
}, tn = ye(
|
|
5902
5917
|
"svg",
|
|
5903
5918
|
{ class: "w-4 h-4", viewBox: "0 0 50 50", style: { animation: "rotate 2s linear infinite" } },
|
|
5904
5919
|
[
|
|
5905
|
-
|
|
5920
|
+
ye("circle", {
|
|
5906
5921
|
cx: "25",
|
|
5907
5922
|
cy: "25",
|
|
5908
5923
|
r: "20",
|
|
@@ -5911,54 +5926,54 @@ const nt = new Vi(), dt = (e, t, a) => {
|
|
|
5911
5926
|
style: { strokeWidth: "3 !important" }
|
|
5912
5927
|
// 强制应用线宽
|
|
5913
5928
|
}),
|
|
5914
|
-
|
|
5929
|
+
ye("circle", {
|
|
5915
5930
|
cx: "25",
|
|
5916
5931
|
cy: "6",
|
|
5917
5932
|
r: "6",
|
|
5918
5933
|
fill: "currentColor"
|
|
5919
5934
|
})
|
|
5920
5935
|
]
|
|
5921
|
-
),
|
|
5936
|
+
), Xi = (e, t) => {
|
|
5922
5937
|
const a = cr(e);
|
|
5923
5938
|
Object.keys(window).forEach((n) => {
|
|
5924
|
-
n.startsWith("_iconfont_svg_string_") && (a == null ? void 0 : a.windowKey) === n && !
|
|
5939
|
+
n.startsWith("_iconfont_svg_string_") && (a == null ? void 0 : a.windowKey) === n && !cs.has(n) && (cs.add(n), qi(n, t));
|
|
5925
5940
|
});
|
|
5926
|
-
},
|
|
5941
|
+
}, qi = (e, t) => {
|
|
5927
5942
|
const a = window[e], r = new DOMParser().parseFromString(a, "image/svg+xml").getElementsByTagName("symbol"), o = document.querySelectorAll("symbol");
|
|
5928
5943
|
for (const l of r) {
|
|
5929
5944
|
const i = l.id, c = Array.from(o).find((m) => m.id === i);
|
|
5930
5945
|
c && t && (c.innerHTML = l.innerHTML, c.querySelectorAll("*").forEach((m) => {
|
|
5931
5946
|
m.hasAttribute("fill") && m.removeAttribute("fill");
|
|
5932
|
-
})), Ge.value[i] || (Ge.value[i] =
|
|
5947
|
+
})), Ge.value[i] || (Ge.value[i] = ye("svg", { fill: "currentColor" }, [ye("use", { "xlink:href": `#${i}` })]));
|
|
5933
5948
|
}
|
|
5934
|
-
},
|
|
5949
|
+
}, zi = (e, t) => {
|
|
5935
5950
|
let a = "";
|
|
5936
5951
|
return e && (a += `rotate(${e}deg)`), t && (a += " scaleX(-1)"), a;
|
|
5937
|
-
},
|
|
5952
|
+
}, Yc = (e, t, a, n) => {
|
|
5938
5953
|
ur(e, [], a, n).forEach((r) => t.push(r));
|
|
5939
5954
|
}, ur = (e, t, a, n) => {
|
|
5940
5955
|
var o, l, i, c, m, g;
|
|
5941
|
-
const s = [], r =
|
|
5956
|
+
const s = [], r = Ie();
|
|
5942
5957
|
for (const p of e) {
|
|
5943
5958
|
if (p.redirect || (o = p.meta) != null && o.hidden || // 隐藏菜单
|
|
5944
5959
|
p.path.includes("/login") || p.path.includes("/error") || p.path.includes("/:page(.*)") || (i = (l = p.meta) == null ? void 0 : l.roles) != null && i.length && !r.hasRole(p.meta.roles) && (c = p.meta) != null && c.permission && !r.hasPermit(p.meta.permission, ":page"))
|
|
5945
5960
|
continue;
|
|
5946
|
-
const
|
|
5947
|
-
|
|
5948
|
-
const P = ur(p.children || [],
|
|
5949
|
-
key:
|
|
5961
|
+
const I = p.path.split("/");
|
|
5962
|
+
I.unshift(...t);
|
|
5963
|
+
const P = ur(p.children || [], I, a, n), S = {
|
|
5964
|
+
key: I.join("/"),
|
|
5950
5965
|
label: ((m = p.name) == null ? void 0 : m.toString()) ?? "",
|
|
5951
5966
|
title: ((g = p.name) == null ? void 0 : g.toString()) ?? "",
|
|
5952
|
-
icon: p.icon ?
|
|
5967
|
+
icon: p.icon ? ye(a, { ...n, icon: p.icon }) : void 0,
|
|
5953
5968
|
children: P.length > 0 ? P : void 0
|
|
5954
5969
|
};
|
|
5955
5970
|
(P.length > 0 || !p.children) && s.push(S);
|
|
5956
5971
|
}
|
|
5957
5972
|
return s;
|
|
5958
|
-
},
|
|
5959
|
-
|
|
5973
|
+
}, us = Er([]), Bc = () => {
|
|
5974
|
+
us.length = 0;
|
|
5960
5975
|
const e = Fe();
|
|
5961
|
-
let a =
|
|
5976
|
+
let a = hn().TabActive;
|
|
5962
5977
|
e.matchedRoutes(a).forEach((s, r) => {
|
|
5963
5978
|
var l;
|
|
5964
5979
|
const o = {
|
|
@@ -5966,7 +5981,7 @@ const nt = new Vi(), dt = (e, t, a) => {
|
|
|
5966
5981
|
path: s.path,
|
|
5967
5982
|
breadcrumbName: ((l = s.name) == null ? void 0 : l.toString()) ?? ""
|
|
5968
5983
|
};
|
|
5969
|
-
|
|
5984
|
+
us.push(o);
|
|
5970
5985
|
});
|
|
5971
5986
|
}, jc = kt("hostInfo", {
|
|
5972
5987
|
state: () => ({
|
|
@@ -5993,7 +6008,7 @@ const nt = new Vi(), dt = (e, t, a) => {
|
|
|
5993
6008
|
*/
|
|
5994
6009
|
async loadHostInfo(e, t) {
|
|
5995
6010
|
if (Ce()) {
|
|
5996
|
-
const n = await
|
|
6011
|
+
const n = await yt.getHostInfo();
|
|
5997
6012
|
this._setHostInfo(n);
|
|
5998
6013
|
return;
|
|
5999
6014
|
}
|
|
@@ -6058,7 +6073,7 @@ const nt = new Vi(), dt = (e, t, a) => {
|
|
|
6058
6073
|
// storage: localStorage,
|
|
6059
6074
|
// pick: ['hostInfo'],
|
|
6060
6075
|
// },
|
|
6061
|
-
}),
|
|
6076
|
+
}), Jc = /* @__PURE__ */ De({
|
|
6062
6077
|
__name: "index",
|
|
6063
6078
|
props: {
|
|
6064
6079
|
...Ct,
|
|
@@ -6079,10 +6094,10 @@ const nt = new Vi(), dt = (e, t, a) => {
|
|
|
6079
6094
|
const a = e, n = ct(), s = Ut(a.url, a), r = a.optionCtrl ?? s.optionCtrl;
|
|
6080
6095
|
r.inputFactory = ke(n);
|
|
6081
6096
|
const o = R([]);
|
|
6082
|
-
r &&
|
|
6097
|
+
r && B(
|
|
6083
6098
|
() => r.options.value,
|
|
6084
|
-
(
|
|
6085
|
-
o.value =
|
|
6099
|
+
(I) => {
|
|
6100
|
+
o.value = I || [];
|
|
6086
6101
|
},
|
|
6087
6102
|
{ immediate: !0, deep: !0 }
|
|
6088
6103
|
);
|
|
@@ -6093,8 +6108,8 @@ const nt = new Vi(), dt = (e, t, a) => {
|
|
|
6093
6108
|
default:
|
|
6094
6109
|
return "w-[58px]";
|
|
6095
6110
|
}
|
|
6096
|
-
}), p = (
|
|
6097
|
-
c != null && c.value.errClass && i && Ft(i), l("change",
|
|
6111
|
+
}), p = (I) => {
|
|
6112
|
+
c != null && c.value.errClass && i && Ft(i), l("change", I);
|
|
6098
6113
|
};
|
|
6099
6114
|
return Rt(() => {
|
|
6100
6115
|
if (!a.data || a.data.length != 2) {
|
|
@@ -6104,7 +6119,7 @@ const nt = new Vi(), dt = (e, t, a) => {
|
|
|
6104
6119
|
r && dt(r.autoload, r, a);
|
|
6105
6120
|
}), ut(() => {
|
|
6106
6121
|
r && Mt(r, a);
|
|
6107
|
-
}), (
|
|
6122
|
+
}), (I, P) => {
|
|
6108
6123
|
var S;
|
|
6109
6124
|
return o.value.length === 2 ? (le(), zt(X(br), wt({
|
|
6110
6125
|
key: 0,
|
|
@@ -6119,10 +6134,10 @@ const nt = new Vi(), dt = (e, t, a) => {
|
|
|
6119
6134
|
unCheckedChildren: o.value[1].label,
|
|
6120
6135
|
unCheckedValue: o.value[1].value,
|
|
6121
6136
|
onChange: p
|
|
6122
|
-
},
|
|
6137
|
+
}, I.$attrs), null, 16, ["size", "class", "checkedChildren", "checkedValue", "unCheckedChildren", "unCheckedValue"])) : rt("", !0);
|
|
6123
6138
|
};
|
|
6124
6139
|
}
|
|
6125
|
-
}),
|
|
6140
|
+
}), Qc = /* @__PURE__ */ De({
|
|
6126
6141
|
inheritAttrs: !1,
|
|
6127
6142
|
__name: "index",
|
|
6128
6143
|
props: {
|
|
@@ -6150,13 +6165,13 @@ const nt = new Vi(), dt = (e, t, a) => {
|
|
|
6150
6165
|
...o == null ? void 0 : o.fieldMap
|
|
6151
6166
|
};
|
|
6152
6167
|
const l = R(void 0);
|
|
6153
|
-
|
|
6168
|
+
B(
|
|
6154
6169
|
() => a.value,
|
|
6155
6170
|
() => {
|
|
6156
6171
|
l.value = a.value;
|
|
6157
6172
|
},
|
|
6158
6173
|
{ immediate: !0 }
|
|
6159
|
-
),
|
|
6174
|
+
), B(
|
|
6160
6175
|
() => l.value,
|
|
6161
6176
|
(S) => {
|
|
6162
6177
|
a.autoClean && a.formData && a.outFields && S !== a.value && lr(a.formData, a.outFields, null);
|
|
@@ -6165,14 +6180,14 @@ const nt = new Vi(), dt = (e, t, a) => {
|
|
|
6165
6180
|
const { editorCtrl: i, errInfo: c, labelText: m } = s, g = t;
|
|
6166
6181
|
s.inputEmit = g;
|
|
6167
6182
|
const p = R((o == null ? void 0 : o.options.value) || []);
|
|
6168
|
-
o &&
|
|
6183
|
+
o && B(
|
|
6169
6184
|
() => o.options.value,
|
|
6170
6185
|
(S) => {
|
|
6171
6186
|
p.value = S || [];
|
|
6172
6187
|
},
|
|
6173
6188
|
{ immediate: !0, deep: !0 }
|
|
6174
6189
|
);
|
|
6175
|
-
const
|
|
6190
|
+
const I = (S) => {
|
|
6176
6191
|
if (p.value = [], S === "") return;
|
|
6177
6192
|
let d = {
|
|
6178
6193
|
Query: {
|
|
@@ -6193,19 +6208,19 @@ const nt = new Vi(), dt = (e, t, a) => {
|
|
|
6193
6208
|
}), (S, O) => {
|
|
6194
6209
|
var d;
|
|
6195
6210
|
return le(), ge("div", null, [
|
|
6196
|
-
Ye(X(
|
|
6211
|
+
Ye(X(yr), wt({
|
|
6197
6212
|
value: l.value,
|
|
6198
6213
|
"onUpdate:value": O[0] || (O[0] = (_) => l.value = _),
|
|
6199
6214
|
class: ["w-full", (d = X(c)) == null ? void 0 : d.errClass],
|
|
6200
6215
|
options: p.value,
|
|
6201
|
-
onSearch:
|
|
6216
|
+
onSearch: I,
|
|
6202
6217
|
onSelect: P
|
|
6203
6218
|
}, X(n), { "allow-clear": !1 }), {
|
|
6204
6219
|
option: Me(({ label: _ }) => [
|
|
6205
|
-
ta(
|
|
6220
|
+
ta(Be(_), 1)
|
|
6206
6221
|
]),
|
|
6207
6222
|
default: Me(() => [
|
|
6208
|
-
Ye(X(
|
|
6223
|
+
Ye(X(Ir), {
|
|
6209
6224
|
"allow-clear": "",
|
|
6210
6225
|
placeholder: "请输入并选择" + X(m)
|
|
6211
6226
|
}, null, 8, ["placeholder"])
|
|
@@ -6215,10 +6230,10 @@ const nt = new Vi(), dt = (e, t, a) => {
|
|
|
6215
6230
|
]);
|
|
6216
6231
|
};
|
|
6217
6232
|
}
|
|
6218
|
-
}),
|
|
6233
|
+
}), Zi = { class: "min-h-[32px] pt-[5px]" }, ec = {
|
|
6219
6234
|
key: 1,
|
|
6220
6235
|
class: "text-center text-gray-500"
|
|
6221
|
-
},
|
|
6236
|
+
}, Xc = /* @__PURE__ */ De({
|
|
6222
6237
|
inheritAttrs: !1,
|
|
6223
6238
|
__name: "index",
|
|
6224
6239
|
props: {
|
|
@@ -6239,19 +6254,19 @@ const nt = new Vi(), dt = (e, t, a) => {
|
|
|
6239
6254
|
},
|
|
6240
6255
|
emits: ["change", "update:labels"],
|
|
6241
6256
|
setup(e, { emit: t }) {
|
|
6242
|
-
var p,
|
|
6257
|
+
var p, I, P;
|
|
6243
6258
|
const a = e, n = Zt(), s = ct(), r = Ut(a.url, a), o = a.optionCtrl ?? r.optionCtrl;
|
|
6244
6259
|
o.inputFactory = ke(s);
|
|
6245
6260
|
const l = R({
|
|
6246
6261
|
...o == null ? void 0 : o.url,
|
|
6247
6262
|
url: ((p = o == null ? void 0 : o.url) == null ? void 0 : p.url) || "",
|
|
6248
|
-
fieldMap: (o == null ? void 0 : o.fieldMap) || ((
|
|
6263
|
+
fieldMap: (o == null ? void 0 : o.fieldMap) || ((I = o == null ? void 0 : o.url) == null ? void 0 : I.fieldMap),
|
|
6249
6264
|
params: (o == null ? void 0 : o.params) || ((P = o == null ? void 0 : o.url) == null ? void 0 : P.params),
|
|
6250
6265
|
loadingText: !1
|
|
6251
6266
|
}), { errInfo: i } = s, c = t;
|
|
6252
6267
|
s.inputEmit = c;
|
|
6253
6268
|
const m = R((o == null ? void 0 : o.options.value) || []);
|
|
6254
|
-
o &&
|
|
6269
|
+
o && B(
|
|
6255
6270
|
() => o.options.value,
|
|
6256
6271
|
(S) => {
|
|
6257
6272
|
m.value = S || [];
|
|
@@ -6273,19 +6288,19 @@ const nt = new Vi(), dt = (e, t, a) => {
|
|
|
6273
6288
|
}), o && dt(o.autoload, o, a);
|
|
6274
6289
|
}), ut(() => {
|
|
6275
6290
|
o && Mt(o, a);
|
|
6276
|
-
}), (S, O) => (le(), ge("div",
|
|
6291
|
+
}), (S, O) => (le(), ge("div", Zi, [
|
|
6277
6292
|
Ye(X(Nr), wt({
|
|
6278
6293
|
onChange: g,
|
|
6279
6294
|
class: "w-full mb-[-3px]"
|
|
6280
6295
|
}, X(n)), {
|
|
6281
6296
|
default: Me(() => [
|
|
6282
|
-
m.value.length > 0 ? (le(!0), ge(Ke, { key: 0 },
|
|
6297
|
+
m.value.length > 0 ? (le(!0), ge(Ke, { key: 0 }, an(m.value, (d) => {
|
|
6283
6298
|
var _;
|
|
6284
6299
|
return le(), zt(X(Sr), {
|
|
6285
6300
|
key: d.value,
|
|
6286
6301
|
value: d.value,
|
|
6287
6302
|
disabled: d.disabled || d.value && e.disabledItems && e.disabledItems.indexOf(d.value.toString()) > -1,
|
|
6288
|
-
class:
|
|
6303
|
+
class: ds([
|
|
6289
6304
|
((_ = X(i)) == null ? void 0 : _.errClass) === "error" ? "error !text-red-400" : "",
|
|
6290
6305
|
"text-nowrap",
|
|
6291
6306
|
"pb-1",
|
|
@@ -6293,20 +6308,20 @@ const nt = new Vi(), dt = (e, t, a) => {
|
|
|
6293
6308
|
])
|
|
6294
6309
|
}, {
|
|
6295
6310
|
default: Me(() => [
|
|
6296
|
-
ta(
|
|
6311
|
+
ta(Be(d.label), 1)
|
|
6297
6312
|
]),
|
|
6298
6313
|
_: 2
|
|
6299
6314
|
}, 1032, ["value", "disabled", "class"]);
|
|
6300
|
-
}), 128)) : e.nodata ? (le(), ge("div",
|
|
6315
|
+
}), 128)) : e.nodata ? (le(), ge("div", ec, Be(e.nodata), 1)) : rt("", !0)
|
|
6301
6316
|
]),
|
|
6302
6317
|
_: 1
|
|
6303
6318
|
}, 16)
|
|
6304
6319
|
]));
|
|
6305
6320
|
}
|
|
6306
|
-
}),
|
|
6321
|
+
}), tc = { class: "min-h-[32px] pt-1" }, ac = {
|
|
6307
6322
|
key: 1,
|
|
6308
6323
|
class: "text-center text-gray-500"
|
|
6309
|
-
},
|
|
6324
|
+
}, qc = /* @__PURE__ */ De({
|
|
6310
6325
|
inheritAttrs: !1,
|
|
6311
6326
|
__name: "index",
|
|
6312
6327
|
props: {
|
|
@@ -6338,18 +6353,18 @@ const nt = new Vi(), dt = (e, t, a) => {
|
|
|
6338
6353
|
params: (o == null ? void 0 : o.params) || ((O = o == null ? void 0 : o.url) == null ? void 0 : O.params),
|
|
6339
6354
|
loadingText: !1
|
|
6340
6355
|
}), i = R(a.value), { errInfo: c } = s, m = R((o == null ? void 0 : o.options.value) || []), g = t;
|
|
6341
|
-
s.inputEmit = g, o &&
|
|
6356
|
+
s.inputEmit = g, o && B(
|
|
6342
6357
|
() => o.options.value,
|
|
6343
6358
|
(d) => {
|
|
6344
6359
|
m.value = d || [];
|
|
6345
6360
|
},
|
|
6346
6361
|
{ immediate: !0, deep: !0 }
|
|
6347
|
-
),
|
|
6362
|
+
), B(
|
|
6348
6363
|
() => a.value,
|
|
6349
6364
|
(d) => {
|
|
6350
6365
|
i.value = d;
|
|
6351
6366
|
}
|
|
6352
|
-
),
|
|
6367
|
+
), B(
|
|
6353
6368
|
() => i.value,
|
|
6354
6369
|
(d) => {
|
|
6355
6370
|
g("update:value", d);
|
|
@@ -6357,12 +6372,12 @@ const nt = new Vi(), dt = (e, t, a) => {
|
|
|
6357
6372
|
);
|
|
6358
6373
|
const p = (d, _) => {
|
|
6359
6374
|
if (typeof d == "object" && typeof _ == "object") {
|
|
6360
|
-
const
|
|
6361
|
-
return
|
|
6375
|
+
const y = JSON.stringify(d) === JSON.stringify(_);
|
|
6376
|
+
return y && (i.value = d), y;
|
|
6362
6377
|
}
|
|
6363
6378
|
return d === _;
|
|
6364
|
-
},
|
|
6365
|
-
const _ = d.target.value,
|
|
6379
|
+
}, I = (d) => {
|
|
6380
|
+
const _ = d.target.value, y = ma(o, a, _), E = da(y);
|
|
6366
6381
|
g("update:labels", E);
|
|
6367
6382
|
};
|
|
6368
6383
|
return ea(() => {
|
|
@@ -6375,25 +6390,25 @@ const nt = new Vi(), dt = (e, t, a) => {
|
|
|
6375
6390
|
}), o && dt(o.autoload, o, a);
|
|
6376
6391
|
}), ut(() => {
|
|
6377
6392
|
o && Mt(o, a);
|
|
6378
|
-
}), (d, _) => (le(), ge("div",
|
|
6393
|
+
}), (d, _) => (le(), ge("div", tc, [
|
|
6379
6394
|
Ye(X(Tr), wt({
|
|
6380
6395
|
value: i.value,
|
|
6381
|
-
"onUpdate:value": _[0] || (_[0] = (
|
|
6396
|
+
"onUpdate:value": _[0] || (_[0] = (y) => i.value = y),
|
|
6382
6397
|
autocheck: !1,
|
|
6383
|
-
onChange:
|
|
6398
|
+
onChange: I,
|
|
6384
6399
|
class: "w-full flex align-items flex-wrap mb-[-3px]"
|
|
6385
6400
|
}, X(n)), {
|
|
6386
6401
|
default: Me(() => [
|
|
6387
|
-
m.value.length > 0 ? (le(!0), ge(Ke, { key: 0 },
|
|
6402
|
+
m.value.length > 0 ? (le(!0), ge(Ke, { key: 0 }, an(m.value, (y) => {
|
|
6388
6403
|
var E;
|
|
6389
6404
|
return le(), ge(Ke, {
|
|
6390
|
-
key:
|
|
6405
|
+
key: y.value
|
|
6391
6406
|
}, [
|
|
6392
|
-
|
|
6407
|
+
y.visible !== !1 ? (le(), zt(X(Lr), {
|
|
6393
6408
|
key: 0,
|
|
6394
|
-
checked: p(
|
|
6395
|
-
value:
|
|
6396
|
-
class:
|
|
6409
|
+
checked: p(y.value, a.value),
|
|
6410
|
+
value: y.value,
|
|
6411
|
+
class: ds([
|
|
6397
6412
|
((E = X(c)) == null ? void 0 : E.errClass) === "error" ? "error !text-red-400" : "",
|
|
6398
6413
|
"text-nowrap",
|
|
6399
6414
|
"pb-1",
|
|
@@ -6401,21 +6416,21 @@ const nt = new Vi(), dt = (e, t, a) => {
|
|
|
6401
6416
|
])
|
|
6402
6417
|
}, {
|
|
6403
6418
|
default: Me(() => [
|
|
6404
|
-
ta(
|
|
6419
|
+
ta(Be(y.label), 1)
|
|
6405
6420
|
]),
|
|
6406
6421
|
_: 2
|
|
6407
6422
|
}, 1032, ["checked", "value", "class"])) : rt("", !0)
|
|
6408
6423
|
], 64);
|
|
6409
|
-
}), 128)) : e.nodata ? (le(), ge("div",
|
|
6424
|
+
}), 128)) : e.nodata ? (le(), ge("div", ac, Be(e.nodata), 1)) : rt("", !0)
|
|
6410
6425
|
]),
|
|
6411
6426
|
_: 1
|
|
6412
6427
|
}, 16, ["value"])
|
|
6413
6428
|
]));
|
|
6414
6429
|
}
|
|
6415
|
-
}),
|
|
6430
|
+
}), nc = {
|
|
6416
6431
|
key: 0,
|
|
6417
6432
|
class: "absolute z-10 mt-[5px] mr-[10px] text-[#999] flex items-center"
|
|
6418
|
-
},
|
|
6433
|
+
}, zc = /* @__PURE__ */ De({
|
|
6419
6434
|
inheritAttrs: !1,
|
|
6420
6435
|
__name: "index",
|
|
6421
6436
|
props: {
|
|
@@ -6450,62 +6465,62 @@ const nt = new Vi(), dt = (e, t, a) => {
|
|
|
6450
6465
|
},
|
|
6451
6466
|
emits: ["change", "update:value", "update:label", "update:labels"],
|
|
6452
6467
|
setup(e, { emit: t }) {
|
|
6453
|
-
var _,
|
|
6468
|
+
var _, y, E;
|
|
6454
6469
|
const a = e, n = a.value === void 0 ? !0 : a.undefValue, s = ct(), { editorCtrl: r, errInfo: o, labelText: l } = s, i = Ut(a.url, a), c = a.optionCtrl ?? i.optionCtrl;
|
|
6455
6470
|
c.inputFactory = ke(s);
|
|
6456
6471
|
const m = Zt(), g = R({
|
|
6457
6472
|
...c == null ? void 0 : c.url,
|
|
6458
6473
|
url: ((_ = c == null ? void 0 : c.url) == null ? void 0 : _.url) || "",
|
|
6459
|
-
fieldMap: (c == null ? void 0 : c.fieldMap) || ((
|
|
6474
|
+
fieldMap: (c == null ? void 0 : c.fieldMap) || ((y = c == null ? void 0 : c.url) == null ? void 0 : y.fieldMap),
|
|
6460
6475
|
params: (c == null ? void 0 : c.params) || ((E = c == null ? void 0 : c.url) == null ? void 0 : E.params),
|
|
6461
6476
|
loadingText: !1
|
|
6462
|
-
}), p = R(m.placeholder),
|
|
6477
|
+
}), p = R(m.placeholder), I = R(c == null ? void 0 : c.selected.value), P = t;
|
|
6463
6478
|
s.inputEmit = P;
|
|
6464
6479
|
const S = (b) => {
|
|
6465
6480
|
const L = ma(c, a, b), v = da(L);
|
|
6466
|
-
|
|
6481
|
+
I.value = b, P("update:labels", v), P("update:label", v.join(";")), P("change", b, L), o != null && o.value.errClass && r && Ft(r);
|
|
6467
6482
|
}, O = R((c == null ? void 0 : c.options.value) || []), d = (b) => {
|
|
6468
6483
|
if (b.length > 0 && ve(a.value) && a.selectFirst)
|
|
6469
6484
|
for (let L = 0; L < b.length; L++) {
|
|
6470
6485
|
const v = b[L];
|
|
6471
6486
|
if (v.disabled === void 0 || v.disabled === !1) {
|
|
6472
|
-
|
|
6487
|
+
I.value = v.value;
|
|
6473
6488
|
break;
|
|
6474
6489
|
}
|
|
6475
6490
|
}
|
|
6476
|
-
else b.length > 0 && (
|
|
6477
|
-
b.length > 0 &&
|
|
6491
|
+
else b.length > 0 && (I.value = a.value === null ? void 0 : a.value);
|
|
6492
|
+
b.length > 0 && I.value !== void 0 && S(I.value);
|
|
6478
6493
|
};
|
|
6479
|
-
return c && (
|
|
6494
|
+
return c && (B(
|
|
6480
6495
|
() => c.options.value,
|
|
6481
6496
|
(b) => {
|
|
6482
6497
|
O.value = b || [];
|
|
6483
6498
|
},
|
|
6484
6499
|
{ immediate: !0, deep: !0 }
|
|
6485
|
-
),
|
|
6500
|
+
), B(
|
|
6486
6501
|
() => c.selected.value,
|
|
6487
6502
|
(b) => {
|
|
6488
|
-
|
|
6503
|
+
I.value = b;
|
|
6489
6504
|
}
|
|
6490
|
-
)),
|
|
6505
|
+
)), B(
|
|
6491
6506
|
() => O.value,
|
|
6492
6507
|
(b) => {
|
|
6493
6508
|
d(b);
|
|
6494
6509
|
}
|
|
6495
|
-
),
|
|
6510
|
+
), B(
|
|
6496
6511
|
() => g.value.loading,
|
|
6497
6512
|
(b) => {
|
|
6498
6513
|
b ? p.value = "" : p.value || (p.value = w("webui.components.form.select.pleaseSelect", [l.value]));
|
|
6499
6514
|
},
|
|
6500
6515
|
{ immediate: !0 }
|
|
6501
|
-
),
|
|
6516
|
+
), B(
|
|
6502
6517
|
() => a.value,
|
|
6503
6518
|
(b) => {
|
|
6504
|
-
|
|
6519
|
+
I.value = b;
|
|
6505
6520
|
},
|
|
6506
6521
|
{ immediate: !0 }
|
|
6507
|
-
),
|
|
6508
|
-
() =>
|
|
6522
|
+
), B(
|
|
6523
|
+
() => I.value,
|
|
6509
6524
|
(b) => {
|
|
6510
6525
|
const L = b === void 0 ? n ? void 0 : null : b;
|
|
6511
6526
|
c && (c.selected.value = L), P("update:value", L);
|
|
@@ -6518,7 +6533,7 @@ const nt = new Vi(), dt = (e, t, a) => {
|
|
|
6518
6533
|
value: "Id",
|
|
6519
6534
|
key: "Id"
|
|
6520
6535
|
}), a.dataKey) {
|
|
6521
|
-
const b = JSON.parse(JSON.stringify(
|
|
6536
|
+
const b = JSON.parse(JSON.stringify(Za.getOptions(a.dataKey)));
|
|
6522
6537
|
O.value = b, d(b);
|
|
6523
6538
|
} else if (c) {
|
|
6524
6539
|
const b = c.options.value || [];
|
|
@@ -6529,21 +6544,21 @@ const nt = new Vi(), dt = (e, t, a) => {
|
|
|
6529
6544
|
}), (b, L) => {
|
|
6530
6545
|
var v, C, M;
|
|
6531
6546
|
return le(), ge("div", null, [
|
|
6532
|
-
(C = (v = X(c)) == null ? void 0 : v.url) != null && C.loading ? (le(), ge("div",
|
|
6533
|
-
Ye(X(
|
|
6534
|
-
vr("span", null,
|
|
6547
|
+
(C = (v = X(c)) == null ? void 0 : v.url) != null && C.loading ? (le(), ge("div", nc, [
|
|
6548
|
+
Ye(X(tn), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
|
|
6549
|
+
vr("span", null, Be(X(w)("webui.components.form.upload.dataLoading")), 1)
|
|
6535
6550
|
])) : rt("", !0),
|
|
6536
6551
|
Ye(X(Or), wt({
|
|
6537
6552
|
class: [(M = X(o)) == null ? void 0 : M.errClass, "w-full"],
|
|
6538
|
-
value:
|
|
6539
|
-
"onUpdate:value": L[0] || (L[0] = (K) =>
|
|
6553
|
+
value: I.value,
|
|
6554
|
+
"onUpdate:value": L[0] || (L[0] = (K) => I.value = K),
|
|
6540
6555
|
"allow-clear": !0,
|
|
6541
6556
|
onChange: S,
|
|
6542
6557
|
placeholder: p.value,
|
|
6543
6558
|
"label-in-value": !1
|
|
6544
6559
|
}, X(m)), {
|
|
6545
6560
|
default: Me(() => [
|
|
6546
|
-
(le(!0), ge(Ke, null,
|
|
6561
|
+
(le(!0), ge(Ke, null, an(O.value, (K) => (le(), ge(Ke, {
|
|
6547
6562
|
key: K.value
|
|
6548
6563
|
}, [
|
|
6549
6564
|
K.visible !== !1 ? (le(), zt(X(Ar), {
|
|
@@ -6551,7 +6566,7 @@ const nt = new Vi(), dt = (e, t, a) => {
|
|
|
6551
6566
|
value: K.value
|
|
6552
6567
|
}, {
|
|
6553
6568
|
default: Me(() => [
|
|
6554
|
-
ta(
|
|
6569
|
+
ta(Be(K.label), 1)
|
|
6555
6570
|
]),
|
|
6556
6571
|
_: 2
|
|
6557
6572
|
}, 1032, ["value"])) : rt("", !0)
|
|
@@ -6562,13 +6577,13 @@ const nt = new Vi(), dt = (e, t, a) => {
|
|
|
6562
6577
|
]);
|
|
6563
6578
|
};
|
|
6564
6579
|
}
|
|
6565
|
-
}),
|
|
6580
|
+
}), sc = R(!1), Zc = {
|
|
6566
6581
|
label: w("webui.utils.tools.templateManagement"),
|
|
6567
6582
|
key: "uploadTemp",
|
|
6568
6583
|
type: "primary",
|
|
6569
6584
|
icon: "icon-download",
|
|
6570
6585
|
click: () => {
|
|
6571
|
-
|
|
6586
|
+
sc.value = !0;
|
|
6572
6587
|
}
|
|
6573
6588
|
};
|
|
6574
6589
|
export {
|
|
@@ -6576,85 +6591,85 @@ export {
|
|
|
6576
6591
|
ma as A,
|
|
6577
6592
|
da as B,
|
|
6578
6593
|
Ft as C,
|
|
6579
|
-
|
|
6594
|
+
Xc as D,
|
|
6580
6595
|
oa as E,
|
|
6581
|
-
|
|
6582
|
-
|
|
6583
|
-
|
|
6596
|
+
qc as F,
|
|
6597
|
+
zc as G,
|
|
6598
|
+
En as H,
|
|
6584
6599
|
Mr as I,
|
|
6585
|
-
|
|
6586
|
-
|
|
6600
|
+
yc as J,
|
|
6601
|
+
Vc as K,
|
|
6587
6602
|
ca as L,
|
|
6588
|
-
|
|
6589
|
-
|
|
6590
|
-
|
|
6603
|
+
yt as M,
|
|
6604
|
+
Ki as N,
|
|
6605
|
+
Za as O,
|
|
6591
6606
|
Re as P,
|
|
6592
|
-
|
|
6593
|
-
|
|
6594
|
-
|
|
6595
|
-
|
|
6607
|
+
Yi as Q,
|
|
6608
|
+
$c as R,
|
|
6609
|
+
Hc as S,
|
|
6610
|
+
Gi as T,
|
|
6596
6611
|
lr as U,
|
|
6597
|
-
|
|
6598
|
-
|
|
6599
|
-
|
|
6600
|
-
|
|
6601
|
-
|
|
6602
|
-
|
|
6603
|
-
|
|
6604
|
-
|
|
6605
|
-
|
|
6612
|
+
Wc as V,
|
|
6613
|
+
Kc as W,
|
|
6614
|
+
qi as X,
|
|
6615
|
+
zi as Y,
|
|
6616
|
+
Yc as Z,
|
|
6617
|
+
Jc as _,
|
|
6618
|
+
Nc as a,
|
|
6619
|
+
us as a0,
|
|
6620
|
+
Bc as a1,
|
|
6606
6621
|
ar as a2,
|
|
6607
|
-
|
|
6622
|
+
wc as a3,
|
|
6608
6623
|
nr as a4,
|
|
6609
|
-
|
|
6610
|
-
|
|
6611
|
-
|
|
6612
|
-
|
|
6613
|
-
|
|
6614
|
-
|
|
6624
|
+
Sc as a5,
|
|
6625
|
+
Lc as a6,
|
|
6626
|
+
vn as a7,
|
|
6627
|
+
Tc as a8,
|
|
6628
|
+
Cc as a9,
|
|
6629
|
+
Vi as aa,
|
|
6615
6630
|
rr as ab,
|
|
6616
|
-
|
|
6631
|
+
Mc as ac,
|
|
6617
6632
|
Ic as ad,
|
|
6618
6633
|
tr as ae,
|
|
6619
|
-
|
|
6620
|
-
|
|
6634
|
+
ki as af,
|
|
6635
|
+
en as ag,
|
|
6621
6636
|
nt as ah,
|
|
6622
6637
|
bt as ai,
|
|
6623
|
-
|
|
6638
|
+
jt as aj,
|
|
6624
6639
|
Fe as ak,
|
|
6625
6640
|
jc as al,
|
|
6626
|
-
|
|
6627
|
-
|
|
6628
|
-
|
|
6629
|
-
|
|
6630
|
-
|
|
6631
|
-
|
|
6632
|
-
|
|
6633
|
-
|
|
6641
|
+
hn as am,
|
|
6642
|
+
sc as an,
|
|
6643
|
+
Zc as ao,
|
|
6644
|
+
me as ap,
|
|
6645
|
+
hc as aq,
|
|
6646
|
+
bc as ar,
|
|
6647
|
+
vc as as,
|
|
6648
|
+
Ec as at,
|
|
6634
6649
|
Pt as au,
|
|
6635
|
-
|
|
6636
|
-
|
|
6637
|
-
|
|
6638
|
-
|
|
6639
|
-
|
|
6640
|
-
|
|
6641
|
-
|
|
6650
|
+
Pc as b,
|
|
6651
|
+
Gc as c,
|
|
6652
|
+
Rc as d,
|
|
6653
|
+
Oc as e,
|
|
6654
|
+
Uc as f,
|
|
6655
|
+
Ui as g,
|
|
6656
|
+
xc as h,
|
|
6642
6657
|
ve as i,
|
|
6643
|
-
|
|
6644
|
-
|
|
6658
|
+
Dc as j,
|
|
6659
|
+
kc as k,
|
|
6645
6660
|
sr as l,
|
|
6646
|
-
|
|
6647
|
-
|
|
6648
|
-
|
|
6649
|
-
|
|
6650
|
-
|
|
6661
|
+
xi as m,
|
|
6662
|
+
Fc as n,
|
|
6663
|
+
Ac as o,
|
|
6664
|
+
Ci as p,
|
|
6665
|
+
Di as q,
|
|
6651
6666
|
ia as r,
|
|
6652
|
-
|
|
6667
|
+
Qc as s,
|
|
6653
6668
|
Ct as t,
|
|
6654
|
-
|
|
6669
|
+
Ie as u,
|
|
6655
6670
|
ct as v,
|
|
6656
6671
|
Ut as w,
|
|
6657
6672
|
dt as x,
|
|
6658
6673
|
Mt as y,
|
|
6659
|
-
|
|
6674
|
+
tn as z
|
|
6660
6675
|
};
|