gc_i18n 1.2.6 → 1.2.7
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/lang/index.js +1 -0
- package/lib/gc_i18n.css +1 -1
- package/lib/gc_i18n.js +765 -790
- package/lib/gc_i18n.umd.cjs +10 -10
- package/package.json +1 -1
- package/packages/components/config.vue +16 -62
- package/packages/index.js +6 -15
- package/packages/libs/service.js +24 -18
package/lib/gc_i18n.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import './gc_i18n.css';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import wa from "keyboardjs";
|
|
3
|
+
import fn, { Message as et } from "view-ui-plus";
|
|
4
4
|
import "view-ui-plus/dist/styles/viewuiplus.css";
|
|
5
|
-
import { defineComponent as
|
|
5
|
+
import { defineComponent as jt, h as qn, getCurrentInstance as Ye, effectScope as Ua, inject as Va, onMounted as Wa, onUnmounted as xa, Fragment as Xt, ref as $a, shallowRef as Ga, computed as Ge, watch as Rt, isRef as Ka, createVNode as re, Text as Ya, resolveComponent as z, resolveDirective as Ha, createBlock as fe, openBlock as se, withCtx as ne, createElementBlock as _n, createCommentVNode as mn, createElementVNode as Ne, withDirectives as Ba, createTextVNode as At, renderList as ja, toDisplayString as dn, createApp as Xa } from "vue";
|
|
6
6
|
import G from "lodash-es";
|
|
7
7
|
import lt from "axios";
|
|
8
8
|
import pe from "store2";
|
|
9
|
-
import { jws as
|
|
9
|
+
import { jws as Ja } from "jsrsasign";
|
|
10
10
|
/*!
|
|
11
11
|
* shared v11.1.3
|
|
12
12
|
* (c) 2025 kazuya kawaguchi
|
|
@@ -23,44 +23,44 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
23
23
|
e.measure(t, n, a), e.clearMarks(n), e.clearMarks(a);
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
|
-
const
|
|
26
|
+
const Qa = /\{([0-9a-zA-Z]+)\}/g;
|
|
27
27
|
function it(e, ...t) {
|
|
28
|
-
return t.length === 1 && M(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(
|
|
28
|
+
return t.length === 1 && M(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(Qa, (n, a) => t.hasOwnProperty(a) ? t[a] : "");
|
|
29
29
|
}
|
|
30
|
-
const de = (e, t = !1) => t ? Symbol.for(e) : Symbol(e),
|
|
31
|
-
let
|
|
32
|
-
const Se = () =>
|
|
33
|
-
function
|
|
30
|
+
const de = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), qa = (e, t, n) => Za({ l: e, k: t, s: n }), Za = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), j = (e) => typeof e == "number" && isFinite(e), za = (e) => Jt(e) === "[object Date]", Fe = (e) => Jt(e) === "[object RegExp]", ct = (e) => R(e) && Object.keys(e).length === 0, Q = Object.assign, es = Object.create, W = (e = null) => es(e);
|
|
31
|
+
let gn;
|
|
32
|
+
const Se = () => gn || (gn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : W());
|
|
33
|
+
function En(e) {
|
|
34
34
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
35
35
|
}
|
|
36
|
-
const
|
|
36
|
+
const ts = Object.prototype.hasOwnProperty;
|
|
37
37
|
function ce(e, t) {
|
|
38
|
-
return
|
|
38
|
+
return ts.call(e, t);
|
|
39
39
|
}
|
|
40
|
-
const B = Array.isArray, x = (e) => typeof e == "function", I = (e) => typeof e == "string", F = (e) => typeof e == "boolean", M = (e) => e !== null && typeof e == "object",
|
|
41
|
-
function
|
|
40
|
+
const B = Array.isArray, x = (e) => typeof e == "function", I = (e) => typeof e == "string", F = (e) => typeof e == "boolean", M = (e) => e !== null && typeof e == "object", ns = (e) => M(e) && x(e.then) && x(e.catch), Zn = Object.prototype.toString, Jt = (e) => Zn.call(e), R = (e) => Jt(e) === "[object Object]", as = (e) => e == null ? "" : B(e) || R(e) && e.toString === Zn ? JSON.stringify(e, null, 2) : String(e);
|
|
41
|
+
function Qt(e, t = "") {
|
|
42
42
|
return e.reduce((n, a, s) => s === 0 ? n + a : n + t + a, "");
|
|
43
43
|
}
|
|
44
|
-
const
|
|
45
|
-
function
|
|
44
|
+
const pn = 2;
|
|
45
|
+
function ss(e, t = 0, n = e.length) {
|
|
46
46
|
const a = e.split(/\r?\n/);
|
|
47
47
|
let s = 0;
|
|
48
48
|
const r = [];
|
|
49
49
|
for (let o = 0; o < a.length; o++)
|
|
50
50
|
if (s += a[o].length + 1, s >= t) {
|
|
51
|
-
for (let l = o -
|
|
51
|
+
for (let l = o - pn; l <= o + pn || n > s; l++) {
|
|
52
52
|
if (l < 0 || l >= a.length)
|
|
53
53
|
continue;
|
|
54
54
|
const u = l + 1;
|
|
55
55
|
r.push(`${u}${" ".repeat(3 - String(u).length)}| ${a[l]}`);
|
|
56
56
|
const _ = a[l].length;
|
|
57
57
|
if (l === o) {
|
|
58
|
-
const
|
|
59
|
-
r.push(" | " + " ".repeat(
|
|
58
|
+
const E = t - (s - _) + 1, N = Math.max(1, n > s ? _ - E : n - t);
|
|
59
|
+
r.push(" | " + " ".repeat(E) + "^".repeat(N));
|
|
60
60
|
} else if (l > o) {
|
|
61
61
|
if (n > s) {
|
|
62
|
-
const
|
|
63
|
-
r.push(" | " + "^".repeat(
|
|
62
|
+
const E = Math.max(Math.min(n - s, _), 1);
|
|
63
|
+
r.push(" | " + "^".repeat(E));
|
|
64
64
|
}
|
|
65
65
|
s += _ + 1;
|
|
66
66
|
}
|
|
@@ -73,11 +73,11 @@ function rs(e, t = 0, n = e.length) {
|
|
|
73
73
|
function Le(e, t) {
|
|
74
74
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
75
75
|
}
|
|
76
|
-
const
|
|
77
|
-
function
|
|
78
|
-
|
|
76
|
+
const hn = {};
|
|
77
|
+
function qt(e) {
|
|
78
|
+
hn[e] || (hn[e] = !0, Le(e));
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function Zt() {
|
|
81
81
|
const e = /* @__PURE__ */ new Map();
|
|
82
82
|
return {
|
|
83
83
|
events: e,
|
|
@@ -111,10 +111,10 @@ function st(e, t) {
|
|
|
111
111
|
* (c) 2025 kazuya kawaguchi
|
|
112
112
|
* Released under the MIT License.
|
|
113
113
|
*/
|
|
114
|
-
function
|
|
114
|
+
function rs(e, t, n) {
|
|
115
115
|
return { line: e, column: t, offset: n };
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function Mt(e, t, n) {
|
|
118
118
|
return { start: e, end: t };
|
|
119
119
|
}
|
|
120
120
|
const k = {
|
|
@@ -138,7 +138,7 @@ const k = {
|
|
|
138
138
|
UNHANDLED_CODEGEN_NODE_TYPE: 15,
|
|
139
139
|
// minifier error codes
|
|
140
140
|
UNHANDLED_MINIFIER_NODE_TYPE: 16
|
|
141
|
-
},
|
|
141
|
+
}, os = 17, ls = {
|
|
142
142
|
// tokenizer error messages
|
|
143
143
|
[k.EXPECTED_TOKEN]: "Expected token: '{0}'",
|
|
144
144
|
[k.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
|
|
@@ -161,20 +161,20 @@ const k = {
|
|
|
161
161
|
[k.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
|
|
162
162
|
};
|
|
163
163
|
function Ue(e, t, n = {}) {
|
|
164
|
-
const { domain: a, messages: s, args: r } = n, o = process.env.NODE_ENV !== "production" ? it((s ||
|
|
164
|
+
const { domain: a, messages: s, args: r } = n, o = process.env.NODE_ENV !== "production" ? it((s || ls)[e] || "", ...r || []) : e, l = new SyntaxError(String(o));
|
|
165
165
|
return l.code = e, t && (l.location = t), l.domain = a, l;
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function is(e) {
|
|
168
168
|
throw e;
|
|
169
169
|
}
|
|
170
|
-
const
|
|
171
|
-
`,
|
|
172
|
-
function
|
|
170
|
+
const cs = /<\/?[\w\s="/.':;#-\/]+>/, us = (e) => cs.test(e), Ee = " ", fs = "\r", Z = `
|
|
171
|
+
`, _s = "\u2028", ms = "\u2029";
|
|
172
|
+
function ds(e) {
|
|
173
173
|
const t = e;
|
|
174
174
|
let n = 0, a = 1, s = 1, r = 0;
|
|
175
|
-
const o = (h) => t[h] ===
|
|
175
|
+
const o = (h) => t[h] === fs && t[h + 1] === Z, l = (h) => t[h] === Z, u = (h) => t[h] === ms, _ = (h) => t[h] === _s, E = (h) => o(h) || l(h) || u(h) || _(h), N = () => n, p = () => a, S = () => s, D = () => r, v = (h) => o(h) || u(h) || _(h) ? Z : t[h], A = () => v(n), f = () => v(n + r);
|
|
176
176
|
function g() {
|
|
177
|
-
return r = 0,
|
|
177
|
+
return r = 0, E(n) && (a++, s = 0), o(n) && n++, n++, s++, t[n];
|
|
178
178
|
}
|
|
179
179
|
function b() {
|
|
180
180
|
return o(n + r) && r++, r++, t[n + r];
|
|
@@ -193,7 +193,7 @@ function gs(e) {
|
|
|
193
193
|
}
|
|
194
194
|
return {
|
|
195
195
|
index: N,
|
|
196
|
-
line:
|
|
196
|
+
line: p,
|
|
197
197
|
column: S,
|
|
198
198
|
peekOffset: D,
|
|
199
199
|
charAt: v,
|
|
@@ -206,9 +206,9 @@ function gs(e) {
|
|
|
206
206
|
skipToPeek: y
|
|
207
207
|
};
|
|
208
208
|
}
|
|
209
|
-
const Te = void 0,
|
|
210
|
-
function
|
|
211
|
-
const n = t.location !== !1, a =
|
|
209
|
+
const Te = void 0, gs = ".", Nn = "'", Es = "tokenizer";
|
|
210
|
+
function ps(e, t = {}) {
|
|
211
|
+
const n = t.location !== !1, a = ds(e), s = () => a.index(), r = () => rs(a.line(), a.column(), a.index()), o = r(), l = s(), u = {
|
|
212
212
|
currentType: 13,
|
|
213
213
|
offset: l,
|
|
214
214
|
startLoc: o,
|
|
@@ -220,23 +220,23 @@ function hs(e, t = {}) {
|
|
|
220
220
|
braceNest: 0,
|
|
221
221
|
inLinked: !1,
|
|
222
222
|
text: ""
|
|
223
|
-
}, _ = () => u, { onError:
|
|
223
|
+
}, _ = () => u, { onError: E } = t;
|
|
224
224
|
function N(i, c, T, ...C) {
|
|
225
225
|
const K = _();
|
|
226
|
-
if (c.column += T, c.offset += T,
|
|
227
|
-
const Y = n ?
|
|
228
|
-
domain:
|
|
226
|
+
if (c.column += T, c.offset += T, E) {
|
|
227
|
+
const Y = n ? Mt(K.startLoc, c) : null, w = Ue(i, Y, {
|
|
228
|
+
domain: Es,
|
|
229
229
|
args: C
|
|
230
230
|
});
|
|
231
|
-
|
|
231
|
+
E(w);
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
|
-
function
|
|
234
|
+
function p(i, c, T) {
|
|
235
235
|
i.endLoc = r(), i.currentType = c;
|
|
236
236
|
const C = { type: c };
|
|
237
|
-
return n && (C.loc =
|
|
237
|
+
return n && (C.loc = Mt(i.startLoc, i.endLoc)), T != null && (C.value = T), C;
|
|
238
238
|
}
|
|
239
|
-
const S = (i) =>
|
|
239
|
+
const S = (i) => p(
|
|
240
240
|
i,
|
|
241
241
|
13
|
|
242
242
|
/* TokenTypes.EOF */
|
|
@@ -289,7 +289,7 @@ function hs(e, t = {}) {
|
|
|
289
289
|
if (T !== 2)
|
|
290
290
|
return !1;
|
|
291
291
|
v(i);
|
|
292
|
-
const C = i.currentPeek() ===
|
|
292
|
+
const C = i.currentPeek() === Nn;
|
|
293
293
|
return i.resetPeek(), C;
|
|
294
294
|
}
|
|
295
295
|
function y(i, c) {
|
|
@@ -350,10 +350,10 @@ function hs(e, t = {}) {
|
|
|
350
350
|
c === 95 || // _
|
|
351
351
|
c === 36;
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function _t(i) {
|
|
354
354
|
return J(i, ke);
|
|
355
355
|
}
|
|
356
|
-
function
|
|
356
|
+
function mt(i) {
|
|
357
357
|
const c = i.charCodeAt(0);
|
|
358
358
|
return c >= 97 && c <= 122 || // a-z
|
|
359
359
|
c >= 65 && c <= 90 || // A-Z
|
|
@@ -362,32 +362,32 @@ function hs(e, t = {}) {
|
|
|
362
362
|
c === 36 || // $
|
|
363
363
|
c === 45;
|
|
364
364
|
}
|
|
365
|
-
function
|
|
366
|
-
return J(i,
|
|
365
|
+
function dt(i) {
|
|
366
|
+
return J(i, mt);
|
|
367
367
|
}
|
|
368
|
-
function
|
|
368
|
+
function gt(i) {
|
|
369
369
|
const c = i.charCodeAt(0);
|
|
370
370
|
return c >= 48 && c <= 57;
|
|
371
371
|
}
|
|
372
|
-
function
|
|
373
|
-
return J(i,
|
|
372
|
+
function Et(i) {
|
|
373
|
+
return J(i, gt);
|
|
374
374
|
}
|
|
375
|
-
function
|
|
375
|
+
function pt(i) {
|
|
376
376
|
const c = i.charCodeAt(0);
|
|
377
377
|
return c >= 48 && c <= 57 || // 0-9
|
|
378
378
|
c >= 65 && c <= 70 || // A-F
|
|
379
379
|
c >= 97 && c <= 102;
|
|
380
380
|
}
|
|
381
381
|
function ge(i) {
|
|
382
|
-
return J(i,
|
|
382
|
+
return J(i, pt);
|
|
383
383
|
}
|
|
384
384
|
function Ve(i) {
|
|
385
385
|
let c = "", T = "";
|
|
386
|
-
for (; c =
|
|
386
|
+
for (; c = Et(i); )
|
|
387
387
|
T += c;
|
|
388
388
|
return T;
|
|
389
389
|
}
|
|
390
|
-
function
|
|
390
|
+
function ht(i) {
|
|
391
391
|
let c = "";
|
|
392
392
|
for (; ; ) {
|
|
393
393
|
const T = i.currentChar();
|
|
@@ -406,30 +406,30 @@ function hs(e, t = {}) {
|
|
|
406
406
|
}
|
|
407
407
|
return c;
|
|
408
408
|
}
|
|
409
|
-
function
|
|
409
|
+
function Nt(i) {
|
|
410
410
|
A(i);
|
|
411
411
|
let c = "", T = "";
|
|
412
|
-
for (; c =
|
|
412
|
+
for (; c = dt(i); )
|
|
413
413
|
T += c;
|
|
414
414
|
return i.currentChar() === Te && N(k.UNTERMINATED_CLOSING_BRACE, r(), 0), T;
|
|
415
415
|
}
|
|
416
|
-
function
|
|
416
|
+
function Tt(i) {
|
|
417
417
|
A(i);
|
|
418
418
|
let c = "";
|
|
419
419
|
return i.currentChar() === "-" ? (i.next(), c += `-${Ve(i)}`) : c += Ve(i), i.currentChar() === Te && N(k.UNTERMINATED_CLOSING_BRACE, r(), 0), c;
|
|
420
420
|
}
|
|
421
|
-
function
|
|
422
|
-
return i !==
|
|
421
|
+
function Lt(i) {
|
|
422
|
+
return i !== Nn && i !== Z;
|
|
423
423
|
}
|
|
424
|
-
function
|
|
424
|
+
function cn(i) {
|
|
425
425
|
A(i), D(i, "'");
|
|
426
426
|
let c = "", T = "";
|
|
427
|
-
for (; c = J(i,
|
|
428
|
-
c === "\\" ? T +=
|
|
427
|
+
for (; c = J(i, Lt); )
|
|
428
|
+
c === "\\" ? T += bt(i) : T += c;
|
|
429
429
|
const C = i.currentChar();
|
|
430
430
|
return C === Z || C === Te ? (N(k.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, r(), 0), C === Z && (i.next(), D(i, "'")), T) : (D(i, "'"), T);
|
|
431
431
|
}
|
|
432
|
-
function
|
|
432
|
+
function bt(i) {
|
|
433
433
|
const c = i.currentChar();
|
|
434
434
|
switch (c) {
|
|
435
435
|
case "\\":
|
|
@@ -456,23 +456,23 @@ function hs(e, t = {}) {
|
|
|
456
456
|
}
|
|
457
457
|
return `\\${c}${C}`;
|
|
458
458
|
}
|
|
459
|
-
function
|
|
459
|
+
function Ot(i) {
|
|
460
460
|
return i !== "{" && i !== "}" && i !== Ee && i !== Z;
|
|
461
461
|
}
|
|
462
|
-
function
|
|
462
|
+
function It(i) {
|
|
463
463
|
A(i);
|
|
464
464
|
let c = "", T = "";
|
|
465
|
-
for (; c = J(i,
|
|
465
|
+
for (; c = J(i, Ot); )
|
|
466
466
|
T += c;
|
|
467
467
|
return T;
|
|
468
468
|
}
|
|
469
|
-
function
|
|
469
|
+
function vt(i) {
|
|
470
470
|
let c = "", T = "";
|
|
471
|
-
for (; c =
|
|
471
|
+
for (; c = _t(i); )
|
|
472
472
|
T += c;
|
|
473
473
|
return T;
|
|
474
474
|
}
|
|
475
|
-
function
|
|
475
|
+
function yt(i) {
|
|
476
476
|
const c = (T) => {
|
|
477
477
|
const C = i.currentChar();
|
|
478
478
|
return C === "{" || C === "@" || C === "|" || C === "(" || C === ")" || !C || C === Ee ? T : (T += C, i.next(), c(T));
|
|
@@ -492,14 +492,14 @@ function hs(e, t = {}) {
|
|
|
492
492
|
let T = null;
|
|
493
493
|
switch (i.currentChar()) {
|
|
494
494
|
case "{":
|
|
495
|
-
return c.braceNest >= 1 && N(k.NOT_ALLOW_NEST_PLACEHOLDER, r(), 0), i.next(), T =
|
|
495
|
+
return c.braceNest >= 1 && N(k.NOT_ALLOW_NEST_PLACEHOLDER, r(), 0), i.next(), T = p(
|
|
496
496
|
c,
|
|
497
497
|
2,
|
|
498
498
|
"{"
|
|
499
499
|
/* TokenChars.BraceLeft */
|
|
500
500
|
), A(i), c.braceNest++, T;
|
|
501
501
|
case "}":
|
|
502
|
-
return c.braceNest > 0 && c.currentType === 2 && N(k.EMPTY_PLACEHOLDER, r(), 0), i.next(), T =
|
|
502
|
+
return c.braceNest > 0 && c.currentType === 2 && N(k.EMPTY_PLACEHOLDER, r(), 0), i.next(), T = p(
|
|
503
503
|
c,
|
|
504
504
|
3,
|
|
505
505
|
"}"
|
|
@@ -510,17 +510,17 @@ function hs(e, t = {}) {
|
|
|
510
510
|
default: {
|
|
511
511
|
let K = !0, Y = !0, w = !0;
|
|
512
512
|
if (X(i))
|
|
513
|
-
return c.braceNest > 0 && N(k.UNTERMINATED_CLOSING_BRACE, r(), 0), T =
|
|
513
|
+
return c.braceNest > 0 && N(k.UNTERMINATED_CLOSING_BRACE, r(), 0), T = p(c, 1, We(i)), c.braceNest = 0, c.inLinked = !1, T;
|
|
514
514
|
if (c.braceNest > 0 && (c.currentType === 4 || c.currentType === 5 || c.currentType === 6))
|
|
515
515
|
return N(k.UNTERMINATED_CLOSING_BRACE, r(), 0), c.braceNest = 0, $e(i, c);
|
|
516
516
|
if (K = b(i, c))
|
|
517
|
-
return T =
|
|
517
|
+
return T = p(c, 4, Nt(i)), A(i), T;
|
|
518
518
|
if (Y = m(i, c))
|
|
519
|
-
return T =
|
|
519
|
+
return T = p(c, 5, Tt(i)), A(i), T;
|
|
520
520
|
if (w = O(i, c))
|
|
521
|
-
return T =
|
|
521
|
+
return T = p(c, 6, cn(i)), A(i), T;
|
|
522
522
|
if (!K && !Y && !w)
|
|
523
|
-
return T =
|
|
523
|
+
return T = p(c, 12, It(i)), N(k.INVALID_TOKEN_IN_PLACEHOLDER, r(), 0, T.value), A(i), T;
|
|
524
524
|
break;
|
|
525
525
|
}
|
|
526
526
|
}
|
|
@@ -532,28 +532,28 @@ function hs(e, t = {}) {
|
|
|
532
532
|
const K = i.currentChar();
|
|
533
533
|
switch ((T === 7 || T === 8 || T === 11 || T === 9) && (K === Z || K === Ee) && N(k.INVALID_LINKED_FORMAT, r(), 0), K) {
|
|
534
534
|
case "@":
|
|
535
|
-
return i.next(), C =
|
|
535
|
+
return i.next(), C = p(
|
|
536
536
|
c,
|
|
537
537
|
7,
|
|
538
538
|
"@"
|
|
539
539
|
/* TokenChars.LinkedAlias */
|
|
540
540
|
), c.inLinked = !0, C;
|
|
541
541
|
case ".":
|
|
542
|
-
return A(i), i.next(),
|
|
542
|
+
return A(i), i.next(), p(
|
|
543
543
|
c,
|
|
544
544
|
8,
|
|
545
545
|
"."
|
|
546
546
|
/* TokenChars.LinkedDot */
|
|
547
547
|
);
|
|
548
548
|
case ":":
|
|
549
|
-
return A(i), i.next(),
|
|
549
|
+
return A(i), i.next(), p(
|
|
550
550
|
c,
|
|
551
551
|
9,
|
|
552
552
|
":"
|
|
553
553
|
/* TokenChars.LinkedDelimiter */
|
|
554
554
|
);
|
|
555
555
|
default:
|
|
556
|
-
return X(i) ? (C =
|
|
556
|
+
return X(i) ? (C = p(c, 1, We(i)), c.braceNest = 0, c.inLinked = !1, C) : y(i, c) || P(i, c) ? (A(i), Ie(i, c)) : h(i, c) ? (A(i), p(c, 11, vt(i))) : U(i, c) ? (A(i), K === "{" ? xe(i, c) || C : p(c, 10, yt(i))) : (T === 7 && N(k.INVALID_LINKED_FORMAT, r(), 0), c.braceNest = 0, c.inLinked = !1, $e(i, c));
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
559
|
function $e(i, c) {
|
|
@@ -569,7 +569,7 @@ function hs(e, t = {}) {
|
|
|
569
569
|
case "{":
|
|
570
570
|
return xe(i, c) || S(c);
|
|
571
571
|
case "}":
|
|
572
|
-
return N(k.UNBALANCED_CLOSING_BRACE, r(), 0), i.next(),
|
|
572
|
+
return N(k.UNBALANCED_CLOSING_BRACE, r(), 0), i.next(), p(
|
|
573
573
|
c,
|
|
574
574
|
3,
|
|
575
575
|
"}"
|
|
@@ -579,31 +579,31 @@ function hs(e, t = {}) {
|
|
|
579
579
|
return Ie(i, c) || S(c);
|
|
580
580
|
default: {
|
|
581
581
|
if (X(i))
|
|
582
|
-
return T =
|
|
582
|
+
return T = p(c, 1, We(i)), c.braceNest = 0, c.inLinked = !1, T;
|
|
583
583
|
if (ie(i))
|
|
584
|
-
return
|
|
584
|
+
return p(c, 0, ht(i));
|
|
585
585
|
break;
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
588
|
return T;
|
|
589
589
|
}
|
|
590
|
-
function
|
|
590
|
+
function St() {
|
|
591
591
|
const { currentType: i, offset: c, startLoc: T, endLoc: C } = u;
|
|
592
|
-
return u.lastType = i, u.lastOffset = c, u.lastStartLoc = T, u.lastEndLoc = C, u.offset = s(), u.startLoc = r(), a.currentChar() === Te ?
|
|
592
|
+
return u.lastType = i, u.lastOffset = c, u.lastStartLoc = T, u.lastEndLoc = C, u.offset = s(), u.startLoc = r(), a.currentChar() === Te ? p(
|
|
593
593
|
u,
|
|
594
594
|
13
|
|
595
595
|
/* TokenTypes.EOF */
|
|
596
596
|
) : $e(a, u);
|
|
597
597
|
}
|
|
598
598
|
return {
|
|
599
|
-
nextToken:
|
|
599
|
+
nextToken: St,
|
|
600
600
|
currentOffset: s,
|
|
601
601
|
currentPosition: r,
|
|
602
602
|
context: _
|
|
603
603
|
};
|
|
604
604
|
}
|
|
605
|
-
const
|
|
606
|
-
function
|
|
605
|
+
const hs = "parser", Ns = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
606
|
+
function Ts(e, t, n) {
|
|
607
607
|
switch (e) {
|
|
608
608
|
case "\\\\":
|
|
609
609
|
return "\\";
|
|
@@ -616,13 +616,13 @@ function Ls(e, t, n) {
|
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
|
-
function
|
|
619
|
+
function Ls(e = {}) {
|
|
620
620
|
const t = e.location !== !1, { onError: n } = e;
|
|
621
621
|
function a(f, g, b, m, ...O) {
|
|
622
622
|
const y = f.currentPosition();
|
|
623
623
|
if (y.offset += m, y.column += m, n) {
|
|
624
|
-
const h = t ?
|
|
625
|
-
domain:
|
|
624
|
+
const h = t ? Mt(b, y) : null, P = Ue(g, h, {
|
|
625
|
+
domain: hs,
|
|
626
626
|
args: O
|
|
627
627
|
});
|
|
628
628
|
n(P);
|
|
@@ -649,9 +649,9 @@ function bs(e = {}) {
|
|
|
649
649
|
}
|
|
650
650
|
function _(f, g) {
|
|
651
651
|
const b = f.context(), { lastOffset: m, lastStartLoc: O } = b, y = s(9, m, O);
|
|
652
|
-
return y.value = g.replace(
|
|
652
|
+
return y.value = g.replace(Ns, Ts), f.nextToken(), r(y, f.currentOffset(), f.currentPosition()), y;
|
|
653
653
|
}
|
|
654
|
-
function
|
|
654
|
+
function E(f) {
|
|
655
655
|
const g = f.nextToken(), b = f.context(), { lastOffset: m, lastStartLoc: O } = b, y = s(8, m, O);
|
|
656
656
|
return g.type !== 11 ? (a(f, k.UNEXPECTED_EMPTY_LINKED_MODIFIER, b.lastStartLoc, 0), y.value = "", r(y, m, O), {
|
|
657
657
|
nextConsumeToken: g,
|
|
@@ -664,11 +664,11 @@ function bs(e = {}) {
|
|
|
664
664
|
const b = f.context(), m = s(7, b.offset, b.startLoc);
|
|
665
665
|
return m.value = g, r(m, f.currentOffset(), f.currentPosition()), m;
|
|
666
666
|
}
|
|
667
|
-
function
|
|
667
|
+
function p(f) {
|
|
668
668
|
const g = f.context(), b = s(6, g.offset, g.startLoc);
|
|
669
669
|
let m = f.nextToken();
|
|
670
670
|
if (m.type === 8) {
|
|
671
|
-
const O =
|
|
671
|
+
const O = E(f);
|
|
672
672
|
b.modifier = O.node, m = O.nextConsumeToken || f.nextToken();
|
|
673
673
|
}
|
|
674
674
|
switch (m.type !== 9 && a(f, k.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, _e(m)), m = f.nextToken(), m.type === 2 && (m = f.nextToken()), m.type) {
|
|
@@ -717,7 +717,7 @@ function bs(e = {}) {
|
|
|
717
717
|
U.value == null && a(f, k.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, _e(U)), O.items.push(_(f, U.value || ""));
|
|
718
718
|
break;
|
|
719
719
|
case 7: {
|
|
720
|
-
const X =
|
|
720
|
+
const X = p(f);
|
|
721
721
|
O.items.push(X.node), y = X.nextConsumeToken || null;
|
|
722
722
|
break;
|
|
723
723
|
}
|
|
@@ -742,7 +742,7 @@ function bs(e = {}) {
|
|
|
742
742
|
return g.currentType === 13 ? O : D(f, b, m, O);
|
|
743
743
|
}
|
|
744
744
|
function A(f) {
|
|
745
|
-
const g =
|
|
745
|
+
const g = ps(f, Q({}, e)), b = g.context(), m = s(0, b.offset, b.startLoc);
|
|
746
746
|
return t && m.loc && (m.loc.source = f), m.body = v(g), e.onCacheKey && (m.cacheKey = e.onCacheKey(f)), b.currentType !== 13 && a(g, k.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, f[b.offset] || ""), r(m, g.currentOffset(), g.currentPosition()), m;
|
|
747
747
|
}
|
|
748
748
|
return { parse: A };
|
|
@@ -753,30 +753,30 @@ function _e(e) {
|
|
|
753
753
|
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
754
754
|
return t.length > 10 ? t.slice(0, 9) + "…" : t;
|
|
755
755
|
}
|
|
756
|
-
function
|
|
756
|
+
function bs(e, t = {}) {
|
|
757
757
|
const n = {
|
|
758
758
|
ast: e,
|
|
759
759
|
helpers: /* @__PURE__ */ new Set()
|
|
760
760
|
};
|
|
761
761
|
return { context: () => n, helper: (r) => (n.helpers.add(r), r) };
|
|
762
762
|
}
|
|
763
|
-
function
|
|
763
|
+
function Tn(e, t) {
|
|
764
764
|
for (let n = 0; n < e.length; n++)
|
|
765
|
-
|
|
765
|
+
zt(e[n], t);
|
|
766
766
|
}
|
|
767
|
-
function
|
|
767
|
+
function zt(e, t) {
|
|
768
768
|
switch (e.type) {
|
|
769
769
|
case 1:
|
|
770
|
-
|
|
770
|
+
Tn(e.cases, t), t.helper(
|
|
771
771
|
"plural"
|
|
772
772
|
/* HelperNameMap.PLURAL */
|
|
773
773
|
);
|
|
774
774
|
break;
|
|
775
775
|
case 2:
|
|
776
|
-
|
|
776
|
+
Tn(e.items, t);
|
|
777
777
|
break;
|
|
778
778
|
case 6: {
|
|
779
|
-
|
|
779
|
+
zt(e.key, t), t.helper(
|
|
780
780
|
"linked"
|
|
781
781
|
/* HelperNameMap.LINKED */
|
|
782
782
|
), t.helper(
|
|
@@ -805,20 +805,20 @@ function en(e, t) {
|
|
|
805
805
|
break;
|
|
806
806
|
}
|
|
807
807
|
}
|
|
808
|
-
function
|
|
809
|
-
const n =
|
|
808
|
+
function Os(e, t = {}) {
|
|
809
|
+
const n = bs(e);
|
|
810
810
|
n.helper(
|
|
811
811
|
"normalize"
|
|
812
812
|
/* HelperNameMap.NORMALIZE */
|
|
813
|
-
), e.body &&
|
|
813
|
+
), e.body && zt(e.body, n);
|
|
814
814
|
const a = n.context();
|
|
815
815
|
e.helpers = Array.from(a.helpers);
|
|
816
816
|
}
|
|
817
|
-
function
|
|
817
|
+
function Is(e) {
|
|
818
818
|
const t = e.body;
|
|
819
|
-
return t.type === 2 ?
|
|
819
|
+
return t.type === 2 ? Ln(t) : t.cases.forEach((n) => Ln(n)), e;
|
|
820
820
|
}
|
|
821
|
-
function
|
|
821
|
+
function Ln(e) {
|
|
822
822
|
if (e.items.length === 1) {
|
|
823
823
|
const t = e.items[0];
|
|
824
824
|
(t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
|
|
@@ -831,7 +831,7 @@ function bn(e) {
|
|
|
831
831
|
t.push(a.value);
|
|
832
832
|
}
|
|
833
833
|
if (t.length === e.items.length) {
|
|
834
|
-
e.static =
|
|
834
|
+
e.static = Qt(t);
|
|
835
835
|
for (let n = 0; n < e.items.length; n++) {
|
|
836
836
|
const a = e.items[n];
|
|
837
837
|
(a.type === 3 || a.type === 9) && delete a.value;
|
|
@@ -839,7 +839,7 @@ function bn(e) {
|
|
|
839
839
|
}
|
|
840
840
|
}
|
|
841
841
|
}
|
|
842
|
-
const
|
|
842
|
+
const vs = "minifier";
|
|
843
843
|
function Me(e) {
|
|
844
844
|
switch (e.t = e.type, e.type) {
|
|
845
845
|
case 0: {
|
|
@@ -887,14 +887,14 @@ function Me(e) {
|
|
|
887
887
|
default:
|
|
888
888
|
if (process.env.NODE_ENV !== "production")
|
|
889
889
|
throw Ue(k.UNHANDLED_MINIFIER_NODE_TYPE, null, {
|
|
890
|
-
domain:
|
|
890
|
+
domain: vs,
|
|
891
891
|
args: [e.type]
|
|
892
892
|
});
|
|
893
893
|
}
|
|
894
894
|
delete e.type;
|
|
895
895
|
}
|
|
896
|
-
const
|
|
897
|
-
function
|
|
896
|
+
const ys = "parser";
|
|
897
|
+
function Ss(e, t) {
|
|
898
898
|
const { filename: n, breakLineCode: a, needIndent: s } = t, r = t.location !== !1, o = {
|
|
899
899
|
filename: n,
|
|
900
900
|
code: "",
|
|
@@ -915,7 +915,7 @@ function As(e, t) {
|
|
|
915
915
|
const f = A ? a : "";
|
|
916
916
|
u(s ? f + " ".repeat(v) : f);
|
|
917
917
|
}
|
|
918
|
-
function
|
|
918
|
+
function E(v = !0) {
|
|
919
919
|
const A = ++o.indentLevel;
|
|
920
920
|
v && _(A);
|
|
921
921
|
}
|
|
@@ -923,27 +923,27 @@ function As(e, t) {
|
|
|
923
923
|
const A = --o.indentLevel;
|
|
924
924
|
v && _(A);
|
|
925
925
|
}
|
|
926
|
-
function
|
|
926
|
+
function p() {
|
|
927
927
|
_(o.indentLevel);
|
|
928
928
|
}
|
|
929
929
|
return {
|
|
930
930
|
context: l,
|
|
931
931
|
push: u,
|
|
932
|
-
indent:
|
|
932
|
+
indent: E,
|
|
933
933
|
deindent: N,
|
|
934
|
-
newline:
|
|
934
|
+
newline: p,
|
|
935
935
|
helper: (v) => `_${v}`,
|
|
936
936
|
needIndent: () => o.needIndent
|
|
937
937
|
};
|
|
938
938
|
}
|
|
939
|
-
function
|
|
939
|
+
function As(e, t) {
|
|
940
940
|
const { helper: n } = e;
|
|
941
941
|
e.push(`${n(
|
|
942
942
|
"linked"
|
|
943
943
|
/* HelperNameMap.LINKED */
|
|
944
944
|
)}(`), we(e, t.key), t.modifier ? (e.push(", "), we(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
945
945
|
}
|
|
946
|
-
function
|
|
946
|
+
function Cs(e, t) {
|
|
947
947
|
const { helper: n, needIndent: a } = e;
|
|
948
948
|
e.push(`${n(
|
|
949
949
|
"normalize"
|
|
@@ -954,7 +954,7 @@ function Ds(e, t) {
|
|
|
954
954
|
e.push(", ");
|
|
955
955
|
e.deindent(a()), e.push("])");
|
|
956
956
|
}
|
|
957
|
-
function
|
|
957
|
+
function Ds(e, t) {
|
|
958
958
|
const { helper: n, needIndent: a } = e;
|
|
959
959
|
if (t.cases.length > 1) {
|
|
960
960
|
e.push(`${n(
|
|
@@ -967,23 +967,23 @@ function ks(e, t) {
|
|
|
967
967
|
e.deindent(a()), e.push("])");
|
|
968
968
|
}
|
|
969
969
|
}
|
|
970
|
-
function
|
|
970
|
+
function ks(e, t) {
|
|
971
971
|
t.body ? we(e, t.body) : e.push("null");
|
|
972
972
|
}
|
|
973
973
|
function we(e, t) {
|
|
974
974
|
const { helper: n } = e;
|
|
975
975
|
switch (t.type) {
|
|
976
976
|
case 0:
|
|
977
|
-
|
|
977
|
+
ks(e, t);
|
|
978
978
|
break;
|
|
979
979
|
case 1:
|
|
980
|
-
|
|
980
|
+
Ds(e, t);
|
|
981
981
|
break;
|
|
982
982
|
case 2:
|
|
983
|
-
|
|
983
|
+
Cs(e, t);
|
|
984
984
|
break;
|
|
985
985
|
case 6:
|
|
986
|
-
|
|
986
|
+
As(e, t);
|
|
987
987
|
break;
|
|
988
988
|
case 8:
|
|
989
989
|
e.push(JSON.stringify(t.value), t);
|
|
@@ -1018,21 +1018,21 @@ function we(e, t) {
|
|
|
1018
1018
|
default:
|
|
1019
1019
|
if (process.env.NODE_ENV !== "production")
|
|
1020
1020
|
throw Ue(k.UNHANDLED_CODEGEN_NODE_TYPE, null, {
|
|
1021
|
-
domain:
|
|
1021
|
+
domain: ys,
|
|
1022
1022
|
args: [t.type]
|
|
1023
1023
|
});
|
|
1024
1024
|
}
|
|
1025
1025
|
}
|
|
1026
|
-
const
|
|
1026
|
+
const Ps = (e, t = {}) => {
|
|
1027
1027
|
const n = I(t.mode) ? t.mode : "normal", a = I(t.filename) ? t.filename : "message.intl";
|
|
1028
1028
|
t.sourceMap;
|
|
1029
1029
|
const s = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
1030
|
-
`, r = t.needIndent ? t.needIndent : n !== "arrow", o = e.helpers || [], l =
|
|
1030
|
+
`, r = t.needIndent ? t.needIndent : n !== "arrow", o = e.helpers || [], l = Ss(e, {
|
|
1031
1031
|
filename: a,
|
|
1032
1032
|
breakLineCode: s,
|
|
1033
1033
|
needIndent: r
|
|
1034
1034
|
});
|
|
1035
|
-
l.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), l.indent(r), o.length > 0 && (l.push(`const { ${
|
|
1035
|
+
l.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), l.indent(r), o.length > 0 && (l.push(`const { ${Qt(o.map((E) => `${E}: _${E}`), ", ")} } = ctx`), l.newline()), l.push("return "), we(l, e), l.deindent(r), l.push("}"), delete e.helpers;
|
|
1036
1036
|
const { code: u, map: _ } = l.context();
|
|
1037
1037
|
return {
|
|
1038
1038
|
ast: e,
|
|
@@ -1041,55 +1041,55 @@ const Rs = (e, t = {}) => {
|
|
|
1041
1041
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1042
1042
|
};
|
|
1043
1043
|
};
|
|
1044
|
-
function
|
|
1045
|
-
const n = Q({}, t), a = !!n.jit, s = !!n.minify, r = n.optimize == null ? !0 : n.optimize, l =
|
|
1046
|
-
return a ? (r &&
|
|
1044
|
+
function Rs(e, t = {}) {
|
|
1045
|
+
const n = Q({}, t), a = !!n.jit, s = !!n.minify, r = n.optimize == null ? !0 : n.optimize, l = Ls(n).parse(e);
|
|
1046
|
+
return a ? (r && Is(l), s && Me(l), { ast: l, code: "" }) : (Os(l, n), Ps(l, n));
|
|
1047
1047
|
}
|
|
1048
1048
|
/*!
|
|
1049
1049
|
* core-base v11.1.3
|
|
1050
1050
|
* (c) 2025 kazuya kawaguchi
|
|
1051
1051
|
* Released under the MIT License.
|
|
1052
1052
|
*/
|
|
1053
|
-
function
|
|
1053
|
+
function Ms() {
|
|
1054
1054
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Se().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Se().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
1055
1055
|
}
|
|
1056
1056
|
function le(e) {
|
|
1057
|
-
return M(e) &&
|
|
1057
|
+
return M(e) && en(e) === 0 && (ce(e, "b") || ce(e, "body"));
|
|
1058
1058
|
}
|
|
1059
|
-
const
|
|
1059
|
+
const zn = ["b", "body"];
|
|
1060
|
+
function Fs(e) {
|
|
1061
|
+
return be(e, zn);
|
|
1062
|
+
}
|
|
1063
|
+
const ea = ["c", "cases"];
|
|
1060
1064
|
function ws(e) {
|
|
1061
|
-
return be(e, ea);
|
|
1065
|
+
return be(e, ea, []);
|
|
1062
1066
|
}
|
|
1063
|
-
const ta = ["
|
|
1067
|
+
const ta = ["s", "static"];
|
|
1064
1068
|
function Us(e) {
|
|
1065
|
-
return be(e, ta
|
|
1069
|
+
return be(e, ta);
|
|
1066
1070
|
}
|
|
1067
|
-
const na = ["
|
|
1071
|
+
const na = ["i", "items"];
|
|
1068
1072
|
function Vs(e) {
|
|
1069
|
-
return be(e, na);
|
|
1070
|
-
}
|
|
1071
|
-
const aa = ["i", "items"];
|
|
1072
|
-
function Ws(e) {
|
|
1073
|
-
return be(e, aa, []);
|
|
1073
|
+
return be(e, na, []);
|
|
1074
1074
|
}
|
|
1075
|
-
const
|
|
1076
|
-
function
|
|
1077
|
-
return be(e,
|
|
1075
|
+
const aa = ["t", "type"];
|
|
1076
|
+
function en(e) {
|
|
1077
|
+
return be(e, aa);
|
|
1078
1078
|
}
|
|
1079
|
-
const
|
|
1079
|
+
const sa = ["v", "value"];
|
|
1080
1080
|
function nt(e, t) {
|
|
1081
|
-
const n = be(e,
|
|
1081
|
+
const n = be(e, sa);
|
|
1082
1082
|
if (n != null)
|
|
1083
1083
|
return n;
|
|
1084
1084
|
throw He(t);
|
|
1085
1085
|
}
|
|
1086
|
-
const
|
|
1087
|
-
function
|
|
1088
|
-
return be(e,
|
|
1086
|
+
const ra = ["m", "modifier"];
|
|
1087
|
+
function Ws(e) {
|
|
1088
|
+
return be(e, ra);
|
|
1089
1089
|
}
|
|
1090
|
-
const
|
|
1091
|
-
function
|
|
1092
|
-
const t = be(e,
|
|
1090
|
+
const oa = ["k", "key"];
|
|
1091
|
+
function xs(e) {
|
|
1092
|
+
const t = be(e, oa);
|
|
1093
1093
|
if (t)
|
|
1094
1094
|
return t;
|
|
1095
1095
|
throw He(
|
|
@@ -1105,49 +1105,49 @@ function be(e, t, n) {
|
|
|
1105
1105
|
}
|
|
1106
1106
|
return n;
|
|
1107
1107
|
}
|
|
1108
|
-
const
|
|
1108
|
+
const la = [
|
|
1109
|
+
...zn,
|
|
1109
1110
|
...ea,
|
|
1110
1111
|
...ta,
|
|
1111
1112
|
...na,
|
|
1112
|
-
...aa,
|
|
1113
|
-
...la,
|
|
1114
1113
|
...oa,
|
|
1115
1114
|
...ra,
|
|
1116
|
-
...sa
|
|
1115
|
+
...sa,
|
|
1116
|
+
...aa
|
|
1117
1117
|
];
|
|
1118
1118
|
function He(e) {
|
|
1119
1119
|
return new Error(`unhandled node type: ${e}`);
|
|
1120
1120
|
}
|
|
1121
|
-
function
|
|
1122
|
-
return (n) =>
|
|
1121
|
+
function Ct(e) {
|
|
1122
|
+
return (n) => $s(n, e);
|
|
1123
1123
|
}
|
|
1124
|
-
function
|
|
1125
|
-
const n =
|
|
1124
|
+
function $s(e, t) {
|
|
1125
|
+
const n = Fs(t);
|
|
1126
1126
|
if (n == null)
|
|
1127
1127
|
throw He(
|
|
1128
1128
|
0
|
|
1129
1129
|
/* NodeTypes.Resource */
|
|
1130
1130
|
);
|
|
1131
|
-
if (
|
|
1132
|
-
const r =
|
|
1131
|
+
if (en(n) === 1) {
|
|
1132
|
+
const r = ws(n);
|
|
1133
1133
|
return e.plural(r.reduce((o, l) => [
|
|
1134
1134
|
...o,
|
|
1135
|
-
|
|
1135
|
+
bn(e, l)
|
|
1136
1136
|
], []));
|
|
1137
1137
|
} else
|
|
1138
|
-
return
|
|
1138
|
+
return bn(e, n);
|
|
1139
1139
|
}
|
|
1140
|
-
function
|
|
1141
|
-
const n =
|
|
1140
|
+
function bn(e, t) {
|
|
1141
|
+
const n = Us(t);
|
|
1142
1142
|
if (n != null)
|
|
1143
1143
|
return e.type === "text" ? n : e.normalize([n]);
|
|
1144
1144
|
{
|
|
1145
|
-
const a =
|
|
1145
|
+
const a = Vs(t).reduce((s, r) => [...s, Ft(e, r)], []);
|
|
1146
1146
|
return e.normalize(a);
|
|
1147
1147
|
}
|
|
1148
1148
|
}
|
|
1149
|
-
function
|
|
1150
|
-
const n =
|
|
1149
|
+
function Ft(e, t) {
|
|
1150
|
+
const n = en(t);
|
|
1151
1151
|
switch (n) {
|
|
1152
1152
|
case 3:
|
|
1153
1153
|
return nt(t, n);
|
|
@@ -1170,8 +1170,8 @@ function wt(e, t) {
|
|
|
1170
1170
|
throw He(n);
|
|
1171
1171
|
}
|
|
1172
1172
|
case 6: {
|
|
1173
|
-
const a = t, s =
|
|
1174
|
-
return e.linked(
|
|
1173
|
+
const a = t, s = Ws(a), r = xs(a);
|
|
1174
|
+
return e.linked(Ft(e, r), s ? Ft(e, s) : void 0, e.type);
|
|
1175
1175
|
}
|
|
1176
1176
|
case 7:
|
|
1177
1177
|
return nt(t, n);
|
|
@@ -1181,32 +1181,32 @@ function wt(e, t) {
|
|
|
1181
1181
|
throw new Error(`unhandled node on format message part: ${n}`);
|
|
1182
1182
|
}
|
|
1183
1183
|
}
|
|
1184
|
-
const
|
|
1185
|
-
function
|
|
1186
|
-
t &&
|
|
1184
|
+
const Gs = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
|
|
1185
|
+
function Ks(e, t) {
|
|
1186
|
+
t && us(e) && Le(it(Gs, { source: e }));
|
|
1187
1187
|
}
|
|
1188
|
-
const
|
|
1188
|
+
const Ys = (e) => e;
|
|
1189
1189
|
let at = W();
|
|
1190
|
-
function
|
|
1190
|
+
function Hs(e, t = {}) {
|
|
1191
1191
|
let n = !1;
|
|
1192
|
-
const a = t.onError ||
|
|
1192
|
+
const a = t.onError || is;
|
|
1193
1193
|
return t.onError = (s) => {
|
|
1194
1194
|
n = !0, a(s);
|
|
1195
|
-
}, { ...
|
|
1195
|
+
}, { ...Rs(e, t), detectError: n };
|
|
1196
1196
|
}
|
|
1197
1197
|
// @__NO_SIDE_EFFECTS__
|
|
1198
|
-
function
|
|
1198
|
+
function Bs(e, t) {
|
|
1199
1199
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && I(e)) {
|
|
1200
1200
|
const n = F(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
|
|
1201
|
-
process.env.NODE_ENV !== "production" &&
|
|
1202
|
-
const s = (t.onCacheKey ||
|
|
1201
|
+
process.env.NODE_ENV !== "production" && Ks(e, n);
|
|
1202
|
+
const s = (t.onCacheKey || Ys)(e), r = at[s];
|
|
1203
1203
|
if (r)
|
|
1204
1204
|
return r;
|
|
1205
|
-
const { ast: o, detectError: l } =
|
|
1205
|
+
const { ast: o, detectError: l } = Hs(e, {
|
|
1206
1206
|
...t,
|
|
1207
1207
|
location: process.env.NODE_ENV !== "production",
|
|
1208
1208
|
jit: !0
|
|
1209
|
-
}), u =
|
|
1209
|
+
}), u = Ct(o);
|
|
1210
1210
|
return l ? u : at[s] = u;
|
|
1211
1211
|
} else {
|
|
1212
1212
|
if (process.env.NODE_ENV !== "production" && !le(e))
|
|
@@ -1214,16 +1214,16 @@ function js(e, t) {
|
|
|
1214
1214
|
const n = e.cacheKey;
|
|
1215
1215
|
if (n) {
|
|
1216
1216
|
const a = at[n];
|
|
1217
|
-
return a || (at[n] =
|
|
1217
|
+
return a || (at[n] = Ct(e));
|
|
1218
1218
|
} else
|
|
1219
|
-
return
|
|
1219
|
+
return Ct(e);
|
|
1220
1220
|
}
|
|
1221
1221
|
}
|
|
1222
1222
|
let Be = null;
|
|
1223
|
-
function
|
|
1223
|
+
function js(e) {
|
|
1224
1224
|
Be = e;
|
|
1225
1225
|
}
|
|
1226
|
-
function
|
|
1226
|
+
function Xs(e, t, n) {
|
|
1227
1227
|
Be && Be.emit("i18n:init", {
|
|
1228
1228
|
timestamp: Date.now(),
|
|
1229
1229
|
i18n: e,
|
|
@@ -1231,12 +1231,12 @@ function Js(e, t, n) {
|
|
|
1231
1231
|
meta: n
|
|
1232
1232
|
});
|
|
1233
1233
|
}
|
|
1234
|
-
const
|
|
1235
|
-
function
|
|
1234
|
+
const Js = /* @__PURE__ */ Qs("function:translate");
|
|
1235
|
+
function Qs(e) {
|
|
1236
1236
|
return (t) => Be && Be.emit(e, t);
|
|
1237
1237
|
}
|
|
1238
1238
|
const q = {
|
|
1239
|
-
INVALID_ARGUMENT:
|
|
1239
|
+
INVALID_ARGUMENT: os,
|
|
1240
1240
|
// 17
|
|
1241
1241
|
INVALID_DATE_ARGUMENT: 18,
|
|
1242
1242
|
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
@@ -1244,11 +1244,11 @@ const q = {
|
|
|
1244
1244
|
NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
|
|
1245
1245
|
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
1246
1246
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1247
|
-
},
|
|
1247
|
+
}, qs = 24;
|
|
1248
1248
|
function he(e) {
|
|
1249
|
-
return Ue(e, null, process.env.NODE_ENV !== "production" ? { messages:
|
|
1249
|
+
return Ue(e, null, process.env.NODE_ENV !== "production" ? { messages: Zs } : void 0);
|
|
1250
1250
|
}
|
|
1251
|
-
const
|
|
1251
|
+
const Zs = {
|
|
1252
1252
|
[q.INVALID_ARGUMENT]: "Invalid arguments",
|
|
1253
1253
|
[q.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
|
|
1254
1254
|
[q.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
|
|
@@ -1257,33 +1257,33 @@ const zs = {
|
|
|
1257
1257
|
[q.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: "cannot support async function",
|
|
1258
1258
|
[q.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
|
|
1259
1259
|
};
|
|
1260
|
-
function
|
|
1261
|
-
return t.locale != null ?
|
|
1260
|
+
function tn(e, t) {
|
|
1261
|
+
return t.locale != null ? On(t.locale) : On(e.locale);
|
|
1262
1262
|
}
|
|
1263
|
-
let
|
|
1264
|
-
function
|
|
1263
|
+
let Dt;
|
|
1264
|
+
function On(e) {
|
|
1265
1265
|
if (I(e))
|
|
1266
1266
|
return e;
|
|
1267
1267
|
if (x(e)) {
|
|
1268
|
-
if (e.resolvedOnce &&
|
|
1269
|
-
return
|
|
1268
|
+
if (e.resolvedOnce && Dt != null)
|
|
1269
|
+
return Dt;
|
|
1270
1270
|
if (e.constructor.name === "Function") {
|
|
1271
1271
|
const t = e();
|
|
1272
|
-
if (
|
|
1272
|
+
if (ns(t))
|
|
1273
1273
|
throw he(q.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1274
|
-
return
|
|
1274
|
+
return Dt = t;
|
|
1275
1275
|
} else
|
|
1276
1276
|
throw he(q.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
1277
1277
|
} else
|
|
1278
1278
|
throw he(q.NOT_SUPPORT_LOCALE_TYPE);
|
|
1279
1279
|
}
|
|
1280
|
-
function
|
|
1280
|
+
function zs(e, t, n) {
|
|
1281
1281
|
return [.../* @__PURE__ */ new Set([
|
|
1282
1282
|
n,
|
|
1283
1283
|
...B(t) ? t : M(t) ? Object.keys(t) : I(t) ? [t] : [n]
|
|
1284
1284
|
])];
|
|
1285
1285
|
}
|
|
1286
|
-
function
|
|
1286
|
+
function ia(e, t, n) {
|
|
1287
1287
|
const a = I(n) ? n : je, s = e;
|
|
1288
1288
|
s.__localeChainCache || (s.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1289
1289
|
let r = s.__localeChainCache.get(a);
|
|
@@ -1291,30 +1291,30 @@ function ca(e, t, n) {
|
|
|
1291
1291
|
r = [];
|
|
1292
1292
|
let o = [n];
|
|
1293
1293
|
for (; B(o); )
|
|
1294
|
-
o =
|
|
1294
|
+
o = In(r, o, t);
|
|
1295
1295
|
const l = B(t) || !R(t) ? t : t.default ? t.default : null;
|
|
1296
|
-
o = I(l) ? [l] : l, B(o) &&
|
|
1296
|
+
o = I(l) ? [l] : l, B(o) && In(r, o, !1), s.__localeChainCache.set(a, r);
|
|
1297
1297
|
}
|
|
1298
1298
|
return r;
|
|
1299
1299
|
}
|
|
1300
|
-
function
|
|
1300
|
+
function In(e, t, n) {
|
|
1301
1301
|
let a = !0;
|
|
1302
1302
|
for (let s = 0; s < t.length && F(a); s++) {
|
|
1303
1303
|
const r = t[s];
|
|
1304
|
-
I(r) && (a =
|
|
1304
|
+
I(r) && (a = er(e, t[s], n));
|
|
1305
1305
|
}
|
|
1306
1306
|
return a;
|
|
1307
1307
|
}
|
|
1308
|
-
function
|
|
1308
|
+
function er(e, t, n) {
|
|
1309
1309
|
let a;
|
|
1310
1310
|
const s = t.split("-");
|
|
1311
1311
|
do {
|
|
1312
1312
|
const r = s.join("-");
|
|
1313
|
-
a =
|
|
1313
|
+
a = tr(e, r, n), s.splice(-1, 1);
|
|
1314
1314
|
} while (s.length && a === !0);
|
|
1315
1315
|
return a;
|
|
1316
1316
|
}
|
|
1317
|
-
function
|
|
1317
|
+
function tr(e, t, n) {
|
|
1318
1318
|
let a = !1;
|
|
1319
1319
|
if (!e.includes(t) && (a = !0, t)) {
|
|
1320
1320
|
a = t[t.length - 1] !== "!";
|
|
@@ -1484,15 +1484,15 @@ Oe[
|
|
|
1484
1484
|
/* Actions.APPEND */
|
|
1485
1485
|
]
|
|
1486
1486
|
};
|
|
1487
|
-
const
|
|
1488
|
-
function
|
|
1489
|
-
return
|
|
1487
|
+
const nr = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1488
|
+
function ar(e) {
|
|
1489
|
+
return nr.test(e);
|
|
1490
1490
|
}
|
|
1491
|
-
function
|
|
1491
|
+
function sr(e) {
|
|
1492
1492
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
1493
1493
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1494
1494
|
}
|
|
1495
|
-
function
|
|
1495
|
+
function rr(e) {
|
|
1496
1496
|
if (e == null)
|
|
1497
1497
|
return "o";
|
|
1498
1498
|
switch (e.charCodeAt(0)) {
|
|
@@ -1529,45 +1529,45 @@ function or(e) {
|
|
|
1529
1529
|
}
|
|
1530
1530
|
return "i";
|
|
1531
1531
|
}
|
|
1532
|
-
function
|
|
1532
|
+
function or(e) {
|
|
1533
1533
|
const t = e.trim();
|
|
1534
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 :
|
|
1534
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : ar(t) ? sr(t) : "*" + t;
|
|
1535
1535
|
}
|
|
1536
|
-
function
|
|
1536
|
+
function lr(e) {
|
|
1537
1537
|
const t = [];
|
|
1538
|
-
let n = -1, a = 0, s = 0, r, o, l, u, _,
|
|
1539
|
-
const
|
|
1540
|
-
|
|
1538
|
+
let n = -1, a = 0, s = 0, r, o, l, u, _, E, N;
|
|
1539
|
+
const p = [];
|
|
1540
|
+
p[
|
|
1541
1541
|
0
|
|
1542
1542
|
/* Actions.APPEND */
|
|
1543
1543
|
] = () => {
|
|
1544
1544
|
o === void 0 ? o = l : o += l;
|
|
1545
|
-
},
|
|
1545
|
+
}, p[
|
|
1546
1546
|
1
|
|
1547
1547
|
/* Actions.PUSH */
|
|
1548
1548
|
] = () => {
|
|
1549
1549
|
o !== void 0 && (t.push(o), o = void 0);
|
|
1550
|
-
},
|
|
1550
|
+
}, p[
|
|
1551
1551
|
2
|
|
1552
1552
|
/* Actions.INC_SUB_PATH_DEPTH */
|
|
1553
1553
|
] = () => {
|
|
1554
|
-
|
|
1554
|
+
p[
|
|
1555
1555
|
0
|
|
1556
1556
|
/* Actions.APPEND */
|
|
1557
1557
|
](), s++;
|
|
1558
|
-
},
|
|
1558
|
+
}, p[
|
|
1559
1559
|
3
|
|
1560
1560
|
/* Actions.PUSH_SUB_PATH */
|
|
1561
1561
|
] = () => {
|
|
1562
1562
|
if (s > 0)
|
|
1563
|
-
s--, a = 4,
|
|
1563
|
+
s--, a = 4, p[
|
|
1564
1564
|
0
|
|
1565
1565
|
/* Actions.APPEND */
|
|
1566
1566
|
]();
|
|
1567
1567
|
else {
|
|
1568
|
-
if (s = 0, o === void 0 || (o =
|
|
1568
|
+
if (s = 0, o === void 0 || (o = or(o), o === !1))
|
|
1569
1569
|
return !1;
|
|
1570
|
-
|
|
1570
|
+
p[
|
|
1571
1571
|
1
|
|
1572
1572
|
/* Actions.PUSH */
|
|
1573
1573
|
]();
|
|
@@ -1576,34 +1576,34 @@ function ir(e) {
|
|
|
1576
1576
|
function S() {
|
|
1577
1577
|
const D = e[n + 1];
|
|
1578
1578
|
if (a === 5 && D === "'" || a === 6 && D === '"')
|
|
1579
|
-
return n++, l = "\\" + D,
|
|
1579
|
+
return n++, l = "\\" + D, p[
|
|
1580
1580
|
0
|
|
1581
1581
|
/* Actions.APPEND */
|
|
1582
1582
|
](), !0;
|
|
1583
1583
|
}
|
|
1584
1584
|
for (; a !== null; )
|
|
1585
1585
|
if (n++, r = e[n], !(r === "\\" && S())) {
|
|
1586
|
-
if (u =
|
|
1586
|
+
if (u = rr(r), N = Oe[a], _ = N[u] || N.l || 8, _ === 8 || (a = _[0], _[1] !== void 0 && (E = p[_[1]], E && (l = r, E() === !1))))
|
|
1587
1587
|
return;
|
|
1588
1588
|
if (a === 7)
|
|
1589
1589
|
return t;
|
|
1590
1590
|
}
|
|
1591
1591
|
}
|
|
1592
|
-
const
|
|
1593
|
-
function
|
|
1592
|
+
const vn = /* @__PURE__ */ new Map();
|
|
1593
|
+
function ir(e, t) {
|
|
1594
1594
|
return M(e) ? e[t] : null;
|
|
1595
1595
|
}
|
|
1596
|
-
function
|
|
1596
|
+
function cr(e, t) {
|
|
1597
1597
|
if (!M(e))
|
|
1598
1598
|
return null;
|
|
1599
|
-
let n =
|
|
1600
|
-
if (n || (n =
|
|
1599
|
+
let n = vn.get(t);
|
|
1600
|
+
if (n || (n = lr(t), n && vn.set(t, n)), !n)
|
|
1601
1601
|
return null;
|
|
1602
1602
|
const a = n.length;
|
|
1603
1603
|
let s = e, r = 0;
|
|
1604
1604
|
for (; r < a; ) {
|
|
1605
1605
|
const o = n[r];
|
|
1606
|
-
if (
|
|
1606
|
+
if (la.includes(o) && le(s))
|
|
1607
1607
|
return null;
|
|
1608
1608
|
const l = s[o];
|
|
1609
1609
|
if (l === void 0 || x(s))
|
|
@@ -1620,7 +1620,7 @@ const ee = {
|
|
|
1620
1620
|
CANNOT_FORMAT_DATE: 5,
|
|
1621
1621
|
FALLBACK_TO_DATE_FORMAT: 6,
|
|
1622
1622
|
EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7
|
|
1623
|
-
},
|
|
1623
|
+
}, ur = 8, fr = {
|
|
1624
1624
|
[ee.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
|
|
1625
1625
|
[ee.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
|
|
1626
1626
|
[ee.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
|
|
@@ -1630,16 +1630,20 @@ const ee = {
|
|
|
1630
1630
|
[ee.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]: "This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."
|
|
1631
1631
|
};
|
|
1632
1632
|
function Ce(e, ...t) {
|
|
1633
|
-
return it(
|
|
1633
|
+
return it(fr[e], ...t);
|
|
1634
1634
|
}
|
|
1635
|
-
const
|
|
1636
|
-
function
|
|
1635
|
+
const _r = "11.1.3", ut = -1, je = "en-US", rt = "", yn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1636
|
+
function mr() {
|
|
1637
1637
|
return {
|
|
1638
1638
|
upper: (e, t) => t === "text" && I(e) ? e.toUpperCase() : t === "vnode" && M(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1639
1639
|
lower: (e, t) => t === "text" && I(e) ? e.toLowerCase() : t === "vnode" && M(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1640
|
-
capitalize: (e, t) => t === "text" && I(e) ?
|
|
1640
|
+
capitalize: (e, t) => t === "text" && I(e) ? yn(e) : t === "vnode" && M(e) && "__v_isVNode" in e ? yn(e.children) : e
|
|
1641
1641
|
};
|
|
1642
1642
|
}
|
|
1643
|
+
let ca;
|
|
1644
|
+
function dr(e) {
|
|
1645
|
+
ca = e;
|
|
1646
|
+
}
|
|
1643
1647
|
let ua;
|
|
1644
1648
|
function gr(e) {
|
|
1645
1649
|
ua = e;
|
|
@@ -1648,34 +1652,30 @@ let fa;
|
|
|
1648
1652
|
function Er(e) {
|
|
1649
1653
|
fa = e;
|
|
1650
1654
|
}
|
|
1651
|
-
let _a;
|
|
1652
|
-
|
|
1655
|
+
let _a = null;
|
|
1656
|
+
const pr = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
1653
1657
|
_a = e;
|
|
1654
|
-
}
|
|
1658
|
+
}, hr = /* @__NO_SIDE_EFFECTS__ */ () => _a;
|
|
1655
1659
|
let ma = null;
|
|
1656
|
-
const
|
|
1660
|
+
const Sn = (e) => {
|
|
1657
1661
|
ma = e;
|
|
1658
|
-
}, Nr =
|
|
1659
|
-
let
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
const t = x(e.onWarn) ? e.onWarn : Le, n = I(e.version) ? e.version : mr, a = I(e.locale) || x(e.locale) ? e.locale : je, s = x(a) ? je : a, r = B(e.fallbackLocale) || R(e.fallbackLocale) || I(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s, o = R(e.messages) ? e.messages : Pt(s), l = R(e.datetimeFormats) ? e.datetimeFormats : Pt(s), u = R(e.numberFormats) ? e.numberFormats : Pt(s), _ = Q(W(), e.modifiers, dr()), p = e.pluralRules || W(), N = x(e.missing) ? e.missing : null, E = F(e.missingWarn) || Fe(e.missingWarn) ? e.missingWarn : !0, S = F(e.fallbackWarn) || Fe(e.fallbackWarn) ? e.fallbackWarn : !0, D = !!e.fallbackFormat, v = !!e.unresolving, A = x(e.postTranslation) ? e.postTranslation : null, f = R(e.processor) ? e.processor : null, g = F(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, b = !!e.escapeParameter, m = x(e.messageCompiler) ? e.messageCompiler : ua;
|
|
1666
|
-
process.env.NODE_ENV !== "production" && x(e.messageCompiler) && Zt(Ce(ee.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
1667
|
-
const O = x(e.messageResolver) ? e.messageResolver : fa || cr, y = x(e.localeFallbacker) ? e.localeFallbacker : _a || er, h = M(e.fallbackContext) ? e.fallbackContext : void 0, P = e, U = M(P.__datetimeFormatters) ? P.__datetimeFormatters : /* @__PURE__ */ new Map(), X = M(P.__numberFormatters) ? P.__numberFormatters : /* @__PURE__ */ new Map(), ie = M(P.__meta) ? P.__meta : {};
|
|
1668
|
-
Cn++;
|
|
1662
|
+
}, Nr = () => ma;
|
|
1663
|
+
let An = 0;
|
|
1664
|
+
function Tr(e = {}) {
|
|
1665
|
+
const t = x(e.onWarn) ? e.onWarn : Le, n = I(e.version) ? e.version : _r, a = I(e.locale) || x(e.locale) ? e.locale : je, s = x(a) ? je : a, r = B(e.fallbackLocale) || R(e.fallbackLocale) || I(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s, o = R(e.messages) ? e.messages : kt(s), l = R(e.datetimeFormats) ? e.datetimeFormats : kt(s), u = R(e.numberFormats) ? e.numberFormats : kt(s), _ = Q(W(), e.modifiers, mr()), E = e.pluralRules || W(), N = x(e.missing) ? e.missing : null, p = F(e.missingWarn) || Fe(e.missingWarn) ? e.missingWarn : !0, S = F(e.fallbackWarn) || Fe(e.fallbackWarn) ? e.fallbackWarn : !0, D = !!e.fallbackFormat, v = !!e.unresolving, A = x(e.postTranslation) ? e.postTranslation : null, f = R(e.processor) ? e.processor : null, g = F(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, b = !!e.escapeParameter, m = x(e.messageCompiler) ? e.messageCompiler : ca;
|
|
1666
|
+
process.env.NODE_ENV !== "production" && x(e.messageCompiler) && qt(Ce(ee.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
1667
|
+
const O = x(e.messageResolver) ? e.messageResolver : ua || ir, y = x(e.localeFallbacker) ? e.localeFallbacker : fa || zs, h = M(e.fallbackContext) ? e.fallbackContext : void 0, P = e, U = M(P.__datetimeFormatters) ? P.__datetimeFormatters : /* @__PURE__ */ new Map(), X = M(P.__numberFormatters) ? P.__numberFormatters : /* @__PURE__ */ new Map(), ie = M(P.__meta) ? P.__meta : {};
|
|
1668
|
+
An++;
|
|
1669
1669
|
const J = {
|
|
1670
1670
|
version: n,
|
|
1671
|
-
cid:
|
|
1671
|
+
cid: An,
|
|
1672
1672
|
locale: a,
|
|
1673
1673
|
fallbackLocale: r,
|
|
1674
1674
|
messages: o,
|
|
1675
1675
|
modifiers: _,
|
|
1676
|
-
pluralRules:
|
|
1676
|
+
pluralRules: E,
|
|
1677
1677
|
missing: N,
|
|
1678
|
-
missingWarn:
|
|
1678
|
+
missingWarn: p,
|
|
1679
1679
|
fallbackWarn: S,
|
|
1680
1680
|
fallbackFormat: D,
|
|
1681
1681
|
unresolving: v,
|
|
@@ -1690,16 +1690,16 @@ function Lr(e = {}) {
|
|
|
1690
1690
|
onWarn: t,
|
|
1691
1691
|
__meta: ie
|
|
1692
1692
|
};
|
|
1693
|
-
return J.datetimeFormats = l, J.numberFormats = u, J.__datetimeFormatters = U, J.__numberFormatters = X, process.env.NODE_ENV !== "production" && (J.__v_emitter = P.__v_emitter != null ? P.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) &&
|
|
1693
|
+
return J.datetimeFormats = l, J.numberFormats = u, J.__datetimeFormatters = U, J.__numberFormatters = X, process.env.NODE_ENV !== "production" && (J.__v_emitter = P.__v_emitter != null ? P.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && Xs(J, n, ie), J;
|
|
1694
1694
|
}
|
|
1695
|
-
const
|
|
1695
|
+
const kt = (e) => ({ [e]: W() });
|
|
1696
1696
|
function ft(e, t) {
|
|
1697
1697
|
return e instanceof RegExp ? e.test(t) : e;
|
|
1698
1698
|
}
|
|
1699
|
-
function
|
|
1699
|
+
function da(e, t) {
|
|
1700
1700
|
return e instanceof RegExp ? e.test(t) : e;
|
|
1701
1701
|
}
|
|
1702
|
-
function
|
|
1702
|
+
function nn(e, t, n, a, s) {
|
|
1703
1703
|
const { missing: r, onWarn: o } = e;
|
|
1704
1704
|
if (process.env.NODE_ENV !== "production") {
|
|
1705
1705
|
const l = e.__v_emitter;
|
|
@@ -1714,33 +1714,33 @@ function an(e, t, n, a, s) {
|
|
|
1714
1714
|
const l = r(e, n, t, s);
|
|
1715
1715
|
return I(l) ? l : t;
|
|
1716
1716
|
} else
|
|
1717
|
-
return process.env.NODE_ENV !== "production" &&
|
|
1717
|
+
return process.env.NODE_ENV !== "production" && da(a, t) && o(Ce(ee.NOT_FOUND_KEY, { key: t, locale: n })), t;
|
|
1718
1718
|
}
|
|
1719
1719
|
function Ke(e, t, n) {
|
|
1720
1720
|
const a = e;
|
|
1721
1721
|
a.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
1722
1722
|
}
|
|
1723
|
-
function
|
|
1723
|
+
function ga(e, t) {
|
|
1724
1724
|
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
1725
1725
|
}
|
|
1726
|
-
function
|
|
1726
|
+
function Lr(e, t) {
|
|
1727
1727
|
const n = t.indexOf(e);
|
|
1728
1728
|
if (n === -1)
|
|
1729
1729
|
return !1;
|
|
1730
1730
|
for (let a = n + 1; a < t.length; a++)
|
|
1731
|
-
if (
|
|
1731
|
+
if (ga(e, t[a]))
|
|
1732
1732
|
return !0;
|
|
1733
1733
|
return !1;
|
|
1734
1734
|
}
|
|
1735
|
-
const
|
|
1736
|
-
dateTimeFormat:
|
|
1737
|
-
numberFormat:
|
|
1735
|
+
const Cn = typeof Intl < "u", Ea = {
|
|
1736
|
+
dateTimeFormat: Cn && typeof Intl.DateTimeFormat < "u",
|
|
1737
|
+
numberFormat: Cn && typeof Intl.NumberFormat < "u"
|
|
1738
1738
|
};
|
|
1739
|
-
function
|
|
1739
|
+
function Dn(e, ...t) {
|
|
1740
1740
|
const { datetimeFormats: n, unresolving: a, fallbackLocale: s, onWarn: r, localeFallbacker: o } = e, { __datetimeFormatters: l } = e;
|
|
1741
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
1741
|
+
if (process.env.NODE_ENV !== "production" && !Ea.dateTimeFormat)
|
|
1742
1742
|
return r(Ce(ee.CANNOT_FORMAT_DATE)), rt;
|
|
1743
|
-
const [u, _,
|
|
1743
|
+
const [u, _, E, N] = wt(...t), p = F(E.missingWarn) ? E.missingWarn : e.missingWarn, S = F(E.fallbackWarn) ? E.fallbackWarn : e.fallbackWarn, D = !!E.part, v = tn(e, E), A = o(
|
|
1744
1744
|
e,
|
|
1745
1745
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1746
1746
|
s,
|
|
@@ -1766,7 +1766,7 @@ function kn(e, ...t) {
|
|
|
1766
1766
|
}
|
|
1767
1767
|
if (f = n[g] || {}, b = f[u], R(b))
|
|
1768
1768
|
break;
|
|
1769
|
-
|
|
1769
|
+
nn(e, u, g, p, y), m = O;
|
|
1770
1770
|
}
|
|
1771
1771
|
if (!R(b) || !I(g))
|
|
1772
1772
|
return a ? ut : u;
|
|
@@ -1775,7 +1775,7 @@ function kn(e, ...t) {
|
|
|
1775
1775
|
let P = l.get(h);
|
|
1776
1776
|
return P || (P = new Intl.DateTimeFormat(g, Q({}, b, N)), l.set(h, P)), D ? P.formatToParts(_) : P.format(_);
|
|
1777
1777
|
}
|
|
1778
|
-
const
|
|
1778
|
+
const pa = [
|
|
1779
1779
|
"localeMatcher",
|
|
1780
1780
|
"weekday",
|
|
1781
1781
|
"era",
|
|
@@ -1797,7 +1797,7 @@ const ha = [
|
|
|
1797
1797
|
"hourCycle",
|
|
1798
1798
|
"fractionalSecondDigits"
|
|
1799
1799
|
];
|
|
1800
|
-
function
|
|
1800
|
+
function wt(...e) {
|
|
1801
1801
|
const [t, n, a, s] = e, r = W();
|
|
1802
1802
|
let o = W(), l;
|
|
1803
1803
|
if (I(t)) {
|
|
@@ -1811,7 +1811,7 @@ function Ut(...e) {
|
|
|
1811
1811
|
} catch {
|
|
1812
1812
|
throw he(q.INVALID_ISO_DATE_ARGUMENT);
|
|
1813
1813
|
}
|
|
1814
|
-
} else if (
|
|
1814
|
+
} else if (za(t)) {
|
|
1815
1815
|
if (isNaN(t.getTime()))
|
|
1816
1816
|
throw he(q.INVALID_DATE_ARGUMENT);
|
|
1817
1817
|
l = t;
|
|
@@ -1820,21 +1820,21 @@ function Ut(...e) {
|
|
|
1820
1820
|
else
|
|
1821
1821
|
throw he(q.INVALID_ARGUMENT);
|
|
1822
1822
|
return I(n) ? r.key = n : R(n) && Object.keys(n).forEach((u) => {
|
|
1823
|
-
|
|
1823
|
+
pa.includes(u) ? o[u] = n[u] : r[u] = n[u];
|
|
1824
1824
|
}), I(a) ? r.locale = a : R(a) && (o = a), R(s) && (o = s), [r.key || "", l, r, o];
|
|
1825
1825
|
}
|
|
1826
|
-
function
|
|
1826
|
+
function kn(e, t, n) {
|
|
1827
1827
|
const a = e;
|
|
1828
1828
|
for (const s in n) {
|
|
1829
1829
|
const r = `${t}__${s}`;
|
|
1830
1830
|
a.__datetimeFormatters.has(r) && a.__datetimeFormatters.delete(r);
|
|
1831
1831
|
}
|
|
1832
1832
|
}
|
|
1833
|
-
function
|
|
1833
|
+
function Pn(e, ...t) {
|
|
1834
1834
|
const { numberFormats: n, unresolving: a, fallbackLocale: s, onWarn: r, localeFallbacker: o } = e, { __numberFormatters: l } = e;
|
|
1835
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
1835
|
+
if (process.env.NODE_ENV !== "production" && !Ea.numberFormat)
|
|
1836
1836
|
return r(Ce(ee.CANNOT_FORMAT_NUMBER)), rt;
|
|
1837
|
-
const [u, _,
|
|
1837
|
+
const [u, _, E, N] = Ut(...t), p = F(E.missingWarn) ? E.missingWarn : e.missingWarn, S = F(E.fallbackWarn) ? E.fallbackWarn : e.fallbackWarn, D = !!E.part, v = tn(e, E), A = o(
|
|
1838
1838
|
e,
|
|
1839
1839
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1840
1840
|
s,
|
|
@@ -1860,7 +1860,7 @@ function Rn(e, ...t) {
|
|
|
1860
1860
|
}
|
|
1861
1861
|
if (f = n[g] || {}, b = f[u], R(b))
|
|
1862
1862
|
break;
|
|
1863
|
-
|
|
1863
|
+
nn(e, u, g, p, y), m = O;
|
|
1864
1864
|
}
|
|
1865
1865
|
if (!R(b) || !I(g))
|
|
1866
1866
|
return a ? ut : u;
|
|
@@ -1869,7 +1869,7 @@ function Rn(e, ...t) {
|
|
|
1869
1869
|
let P = l.get(h);
|
|
1870
1870
|
return P || (P = new Intl.NumberFormat(g, Q({}, b, N)), l.set(h, P)), D ? P.formatToParts(_) : P.format(_);
|
|
1871
1871
|
}
|
|
1872
|
-
const
|
|
1872
|
+
const ha = [
|
|
1873
1873
|
"localeMatcher",
|
|
1874
1874
|
"style",
|
|
1875
1875
|
"currency",
|
|
@@ -1891,43 +1891,43 @@ const Na = [
|
|
|
1891
1891
|
"roundingIncrement",
|
|
1892
1892
|
"trailingZeroDisplay"
|
|
1893
1893
|
];
|
|
1894
|
-
function
|
|
1894
|
+
function Ut(...e) {
|
|
1895
1895
|
const [t, n, a, s] = e, r = W();
|
|
1896
1896
|
let o = W();
|
|
1897
1897
|
if (!j(t))
|
|
1898
1898
|
throw he(q.INVALID_ARGUMENT);
|
|
1899
1899
|
const l = t;
|
|
1900
1900
|
return I(n) ? r.key = n : R(n) && Object.keys(n).forEach((u) => {
|
|
1901
|
-
|
|
1901
|
+
ha.includes(u) ? o[u] = n[u] : r[u] = n[u];
|
|
1902
1902
|
}), I(a) ? r.locale = a : R(a) && (o = a), R(s) && (o = s), [r.key || "", l, r, o];
|
|
1903
1903
|
}
|
|
1904
|
-
function
|
|
1904
|
+
function Rn(e, t, n) {
|
|
1905
1905
|
const a = e;
|
|
1906
1906
|
for (const s in n) {
|
|
1907
1907
|
const r = `${t}__${s}`;
|
|
1908
1908
|
a.__numberFormatters.has(r) && a.__numberFormatters.delete(r);
|
|
1909
1909
|
}
|
|
1910
1910
|
}
|
|
1911
|
-
const
|
|
1912
|
-
function
|
|
1911
|
+
const br = (e) => e, Or = (e) => "", Ir = "text", vr = (e) => e.length === 0 ? "" : Qt(e), yr = as;
|
|
1912
|
+
function Mn(e, t) {
|
|
1913
1913
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1914
1914
|
}
|
|
1915
|
-
function
|
|
1915
|
+
function Sr(e) {
|
|
1916
1916
|
const t = j(e.pluralIndex) ? e.pluralIndex : -1;
|
|
1917
1917
|
return e.named && (j(e.named.count) || j(e.named.n)) ? j(e.named.count) ? e.named.count : j(e.named.n) ? e.named.n : t : t;
|
|
1918
1918
|
}
|
|
1919
|
-
function
|
|
1919
|
+
function Ar(e, t) {
|
|
1920
1920
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
1921
1921
|
}
|
|
1922
|
-
function
|
|
1923
|
-
const t = e.locale, n =
|
|
1924
|
-
j(e.pluralIndex) &&
|
|
1922
|
+
function Cr(e = {}) {
|
|
1923
|
+
const t = e.locale, n = Sr(e), a = M(e.pluralRules) && I(t) && x(e.pluralRules[t]) ? e.pluralRules[t] : Mn, s = M(e.pluralRules) && I(t) && x(e.pluralRules[t]) ? Mn : void 0, r = (f) => f[a(n, f.length, s)], o = e.list || [], l = (f) => o[f], u = e.named || W();
|
|
1924
|
+
j(e.pluralIndex) && Ar(n, u);
|
|
1925
1925
|
const _ = (f) => u[f];
|
|
1926
|
-
function
|
|
1926
|
+
function E(f, g) {
|
|
1927
1927
|
const b = x(e.messages) ? e.messages(f, !!g) : M(e.messages) ? e.messages[f] : !1;
|
|
1928
|
-
return b || (e.parent ? e.parent.message(f) :
|
|
1928
|
+
return b || (e.parent ? e.parent.message(f) : Or);
|
|
1929
1929
|
}
|
|
1930
|
-
const N = (f) => e.modifiers ? e.modifiers[f] :
|
|
1930
|
+
const N = (f) => e.modifiers ? e.modifiers[f] : br, p = R(e.processor) && x(e.processor.normalize) ? e.processor.normalize : vr, S = R(e.processor) && x(e.processor.interpolate) ? e.processor.interpolate : yr, D = R(e.processor) && I(e.processor.type) ? e.processor.type : Ir, A = {
|
|
1931
1931
|
list: l,
|
|
1932
1932
|
named: _,
|
|
1933
1933
|
plural: r,
|
|
@@ -1935,29 +1935,29 @@ function Dr(e = {}) {
|
|
|
1935
1935
|
const [b, m] = g;
|
|
1936
1936
|
let O = "text", y = "";
|
|
1937
1937
|
g.length === 1 ? M(b) ? (y = b.modifier || y, O = b.type || O) : I(b) && (y = b || y) : g.length === 2 && (I(b) && (y = b || y), I(m) && (O = m || O));
|
|
1938
|
-
const h =
|
|
1938
|
+
const h = E(f, !0)(A), P = (
|
|
1939
1939
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1940
1940
|
O === "vnode" && B(h) && y ? h[0] : h
|
|
1941
1941
|
);
|
|
1942
1942
|
return y ? N(y)(P, O) : P;
|
|
1943
1943
|
},
|
|
1944
|
-
message:
|
|
1944
|
+
message: E,
|
|
1945
1945
|
type: D,
|
|
1946
1946
|
interpolate: S,
|
|
1947
|
-
normalize:
|
|
1947
|
+
normalize: p,
|
|
1948
1948
|
values: Q(W(), o, u)
|
|
1949
1949
|
};
|
|
1950
1950
|
return A;
|
|
1951
1951
|
}
|
|
1952
|
-
const
|
|
1953
|
-
function
|
|
1954
|
-
const { fallbackFormat: n, postTranslation: a, unresolving: s, messageCompiler: r, fallbackLocale: o, messages: l } = e, [u, _] =
|
|
1955
|
-
|
|
1952
|
+
const Fn = () => "", oe = (e) => x(e);
|
|
1953
|
+
function wn(e, ...t) {
|
|
1954
|
+
const { fallbackFormat: n, postTranslation: a, unresolving: s, messageCompiler: r, fallbackLocale: o, messages: l } = e, [u, _] = Vt(...t), E = F(_.missingWarn) ? _.missingWarn : e.missingWarn, N = F(_.fallbackWarn) ? _.fallbackWarn : e.fallbackWarn, p = F(_.escapeParameter) ? _.escapeParameter : e.escapeParameter, S = !!_.resolvedMessage, D = I(_.default) || F(_.default) ? F(_.default) ? r ? u : () => u : _.default : n ? r ? u : () => u : null, v = n || D != null && (I(D) || x(D)), A = tn(e, _);
|
|
1955
|
+
p && Dr(_);
|
|
1956
1956
|
let [f, g, b] = S ? [
|
|
1957
1957
|
u,
|
|
1958
1958
|
A,
|
|
1959
1959
|
l[A] || W()
|
|
1960
|
-
] :
|
|
1960
|
+
] : Na(e, u, A, o, N, E), m = f, O = u;
|
|
1961
1961
|
if (!S && !(I(m) || le(m) || oe(m)) && v && (m = D, O = m), !S && (!(I(m) || le(m) || oe(m)) || !I(g)))
|
|
1962
1962
|
return s ? ut : u;
|
|
1963
1963
|
if (process.env.NODE_ENV !== "production" && I(m) && e.messageCompiler == null)
|
|
@@ -1965,10 +1965,10 @@ function Un(e, ...t) {
|
|
|
1965
1965
|
let y = !1;
|
|
1966
1966
|
const h = () => {
|
|
1967
1967
|
y = !0;
|
|
1968
|
-
}, P = oe(m) ? m :
|
|
1968
|
+
}, P = oe(m) ? m : Ta(e, u, g, m, O, h);
|
|
1969
1969
|
if (y)
|
|
1970
1970
|
return m;
|
|
1971
|
-
const U =
|
|
1971
|
+
const U = Mr(e, g, b, _), X = Cr(U), ie = kr(e, P, X), J = a ? a(ie, u) : ie;
|
|
1972
1972
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
1973
1973
|
const ke = {
|
|
1974
1974
|
timestamp: Date.now(),
|
|
@@ -1977,24 +1977,24 @@ function Un(e, ...t) {
|
|
|
1977
1977
|
format: I(m) ? m : oe(m) ? m.source : "",
|
|
1978
1978
|
message: J
|
|
1979
1979
|
};
|
|
1980
|
-
ke.meta = Q({}, e.__meta, /* @__PURE__ */
|
|
1980
|
+
ke.meta = Q({}, e.__meta, /* @__PURE__ */ hr() || {}), Js(ke);
|
|
1981
1981
|
}
|
|
1982
1982
|
return J;
|
|
1983
1983
|
}
|
|
1984
|
-
function
|
|
1985
|
-
B(e.list) ? e.list = e.list.map((t) => I(t) ?
|
|
1986
|
-
I(e.named[t]) && (e.named[t] =
|
|
1984
|
+
function Dr(e) {
|
|
1985
|
+
B(e.list) ? e.list = e.list.map((t) => I(t) ? En(t) : t) : M(e.named) && Object.keys(e.named).forEach((t) => {
|
|
1986
|
+
I(e.named[t]) && (e.named[t] = En(e.named[t]));
|
|
1987
1987
|
});
|
|
1988
1988
|
}
|
|
1989
|
-
function
|
|
1990
|
-
const { messages: o, onWarn: l, messageResolver: u, localeFallbacker: _ } = e,
|
|
1991
|
-
let N = W(),
|
|
1989
|
+
function Na(e, t, n, a, s, r) {
|
|
1990
|
+
const { messages: o, onWarn: l, messageResolver: u, localeFallbacker: _ } = e, E = _(e, a, n);
|
|
1991
|
+
let N = W(), p, S = null, D = n, v = null;
|
|
1992
1992
|
const A = "translate";
|
|
1993
|
-
for (let f = 0; f <
|
|
1994
|
-
if (
|
|
1993
|
+
for (let f = 0; f < E.length; f++) {
|
|
1994
|
+
if (p = v = E[f], process.env.NODE_ENV !== "production" && n !== p && !ga(n, p) && ft(s, t) && l(Ce(ee.FALLBACK_TO_TRANSLATE, {
|
|
1995
1995
|
key: t,
|
|
1996
|
-
target:
|
|
1997
|
-
})), process.env.NODE_ENV !== "production" && n !==
|
|
1996
|
+
target: p
|
|
1997
|
+
})), process.env.NODE_ENV !== "production" && n !== p) {
|
|
1998
1998
|
const O = e.__v_emitter;
|
|
1999
1999
|
O && O.emit("fallback", {
|
|
2000
2000
|
type: A,
|
|
@@ -2004,7 +2004,7 @@ function Ta(e, t, n, a, s, r) {
|
|
|
2004
2004
|
groupId: `${A}:${t}`
|
|
2005
2005
|
});
|
|
2006
2006
|
}
|
|
2007
|
-
N = o[
|
|
2007
|
+
N = o[p] || W();
|
|
2008
2008
|
let g = null, b, m;
|
|
2009
2009
|
if (process.env.NODE_ENV !== "production" && ue && (g = window.performance.now(), b = "intlify-message-resolve-start", m = "intlify-message-resolve-end", ae && ae(b)), (S = u(N, t)) === null && (S = N[t]), process.env.NODE_ENV !== "production" && ue) {
|
|
2010
2010
|
const O = window.performance.now(), y = e.__v_emitter;
|
|
@@ -2018,12 +2018,12 @@ function Ta(e, t, n, a, s, r) {
|
|
|
2018
2018
|
}
|
|
2019
2019
|
if (I(S) || le(S) || oe(S))
|
|
2020
2020
|
break;
|
|
2021
|
-
if (!
|
|
2022
|
-
const O =
|
|
2021
|
+
if (!Lr(p, E)) {
|
|
2022
|
+
const O = nn(
|
|
2023
2023
|
e,
|
|
2024
2024
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2025
2025
|
t,
|
|
2026
|
-
|
|
2026
|
+
p,
|
|
2027
2027
|
r,
|
|
2028
2028
|
A
|
|
2029
2029
|
);
|
|
@@ -2031,33 +2031,33 @@ function Ta(e, t, n, a, s, r) {
|
|
|
2031
2031
|
}
|
|
2032
2032
|
D = v;
|
|
2033
2033
|
}
|
|
2034
|
-
return [S,
|
|
2034
|
+
return [S, p, N];
|
|
2035
2035
|
}
|
|
2036
|
-
function
|
|
2036
|
+
function Ta(e, t, n, a, s, r) {
|
|
2037
2037
|
const { messageCompiler: o, warnHtmlMessage: l } = e;
|
|
2038
2038
|
if (oe(a)) {
|
|
2039
|
-
const
|
|
2040
|
-
return
|
|
2039
|
+
const p = a;
|
|
2040
|
+
return p.locale = p.locale || n, p.key = p.key || t, p;
|
|
2041
2041
|
}
|
|
2042
2042
|
if (o == null) {
|
|
2043
|
-
const
|
|
2044
|
-
return
|
|
2043
|
+
const p = () => a;
|
|
2044
|
+
return p.locale = n, p.key = t, p;
|
|
2045
2045
|
}
|
|
2046
|
-
let u = null, _,
|
|
2047
|
-
process.env.NODE_ENV !== "production" && ue && (u = window.performance.now(), _ = "intlify-message-compilation-start",
|
|
2048
|
-
const N = o(a,
|
|
2046
|
+
let u = null, _, E;
|
|
2047
|
+
process.env.NODE_ENV !== "production" && ue && (u = window.performance.now(), _ = "intlify-message-compilation-start", E = "intlify-message-compilation-end", ae && ae(_));
|
|
2048
|
+
const N = o(a, Pr(e, n, s, a, l, r));
|
|
2049
2049
|
if (process.env.NODE_ENV !== "production" && ue) {
|
|
2050
|
-
const
|
|
2050
|
+
const p = window.performance.now(), S = e.__v_emitter;
|
|
2051
2051
|
S && u && S.emit("message-compilation", {
|
|
2052
2052
|
type: "message-compilation",
|
|
2053
2053
|
message: a,
|
|
2054
|
-
time:
|
|
2054
|
+
time: p - u,
|
|
2055
2055
|
groupId: `translate:${t}`
|
|
2056
|
-
}), _ &&
|
|
2056
|
+
}), _ && E && ae && Ae && (ae(E), Ae("intlify message compilation", _, E));
|
|
2057
2057
|
}
|
|
2058
2058
|
return N.locale = n, N.key = t, N.source = a, N;
|
|
2059
2059
|
}
|
|
2060
|
-
function
|
|
2060
|
+
function kr(e, t, n) {
|
|
2061
2061
|
let a = null, s, r;
|
|
2062
2062
|
process.env.NODE_ENV !== "production" && ue && (a = window.performance.now(), s = "intlify-message-evaluation-start", r = "intlify-message-evaluation-end", ae && ae(s));
|
|
2063
2063
|
const o = t(n);
|
|
@@ -2072,22 +2072,22 @@ function Pr(e, t, n) {
|
|
|
2072
2072
|
}
|
|
2073
2073
|
return o;
|
|
2074
2074
|
}
|
|
2075
|
-
function
|
|
2075
|
+
function Vt(...e) {
|
|
2076
2076
|
const [t, n, a] = e, s = W();
|
|
2077
2077
|
if (!I(t) && !j(t) && !oe(t) && !le(t))
|
|
2078
2078
|
throw he(q.INVALID_ARGUMENT);
|
|
2079
2079
|
const r = j(t) ? String(t) : (oe(t), t);
|
|
2080
2080
|
return j(n) ? s.plural = n : I(n) ? s.default = n : R(n) && !ct(n) ? s.named = n : B(n) && (s.list = n), j(a) ? s.plural = a : I(a) ? s.default = a : R(a) && Q(s, a), [r, s];
|
|
2081
2081
|
}
|
|
2082
|
-
function
|
|
2082
|
+
function Pr(e, t, n, a, s, r) {
|
|
2083
2083
|
return {
|
|
2084
2084
|
locale: t,
|
|
2085
2085
|
key: n,
|
|
2086
2086
|
warnHtmlMessage: s,
|
|
2087
2087
|
onError: (o) => {
|
|
2088
2088
|
if (r && r(o), process.env.NODE_ENV !== "production") {
|
|
2089
|
-
const l =
|
|
2090
|
-
|
|
2089
|
+
const l = Rr(a), u = `Message compilation error: ${o.message}`, _ = o.location && l && ss(l, o.location.start.offset, o.location.end.offset), E = e.__v_emitter;
|
|
2090
|
+
E && l && E.emit("compile-error", {
|
|
2091
2091
|
message: l,
|
|
2092
2092
|
error: o.message,
|
|
2093
2093
|
start: o.location && o.location.start.offset,
|
|
@@ -2098,25 +2098,25 @@ ${_}` : u);
|
|
|
2098
2098
|
} else
|
|
2099
2099
|
throw o;
|
|
2100
2100
|
},
|
|
2101
|
-
onCacheKey: (o) =>
|
|
2101
|
+
onCacheKey: (o) => qa(t, n, o)
|
|
2102
2102
|
};
|
|
2103
2103
|
}
|
|
2104
|
-
function
|
|
2104
|
+
function Rr(e) {
|
|
2105
2105
|
if (I(e))
|
|
2106
2106
|
return e;
|
|
2107
2107
|
if (e.loc && e.loc.source)
|
|
2108
2108
|
return e.loc.source;
|
|
2109
2109
|
}
|
|
2110
|
-
function
|
|
2111
|
-
const { modifiers: s, pluralRules: r, messageResolver: o, fallbackLocale: l, fallbackWarn: u, missingWarn: _, fallbackContext:
|
|
2110
|
+
function Mr(e, t, n, a) {
|
|
2111
|
+
const { modifiers: s, pluralRules: r, messageResolver: o, fallbackLocale: l, fallbackWarn: u, missingWarn: _, fallbackContext: E } = e, p = {
|
|
2112
2112
|
locale: t,
|
|
2113
2113
|
modifiers: s,
|
|
2114
2114
|
pluralRules: r,
|
|
2115
2115
|
messages: (S, D) => {
|
|
2116
2116
|
let v = o(n, S);
|
|
2117
|
-
if (v == null && (
|
|
2118
|
-
const [, , A] =
|
|
2119
|
-
|
|
2117
|
+
if (v == null && (E || D)) {
|
|
2118
|
+
const [, , A] = Na(
|
|
2119
|
+
E || e,
|
|
2120
2120
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
2121
2121
|
S,
|
|
2122
2122
|
t,
|
|
@@ -2128,32 +2128,32 @@ function Fr(e, t, n, a) {
|
|
|
2128
2128
|
}
|
|
2129
2129
|
if (I(v) || le(v)) {
|
|
2130
2130
|
let A = !1;
|
|
2131
|
-
const g =
|
|
2131
|
+
const g = Ta(e, S, t, v, S, () => {
|
|
2132
2132
|
A = !0;
|
|
2133
2133
|
});
|
|
2134
|
-
return A ?
|
|
2135
|
-
} else return oe(v) ? v :
|
|
2134
|
+
return A ? Fn : g;
|
|
2135
|
+
} else return oe(v) ? v : Fn;
|
|
2136
2136
|
}
|
|
2137
2137
|
};
|
|
2138
|
-
return e.processor && (
|
|
2138
|
+
return e.processor && (p.processor = e.processor), a.list && (p.list = a.list), a.named && (p.named = a.named), j(a.plural) && (p.pluralIndex = a.plural), p;
|
|
2139
2139
|
}
|
|
2140
|
-
|
|
2141
|
-
function
|
|
2142
|
-
return
|
|
2140
|
+
Ms();
|
|
2141
|
+
function Fr() {
|
|
2142
|
+
return La().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
2143
2143
|
}
|
|
2144
|
-
function
|
|
2144
|
+
function La() {
|
|
2145
2145
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
2146
2146
|
}
|
|
2147
|
-
const
|
|
2148
|
-
let Re,
|
|
2149
|
-
function
|
|
2147
|
+
const wr = typeof Proxy == "function", Ur = "devtools-plugin:setup", Vr = "plugin:settings:set";
|
|
2148
|
+
let Re, Wt;
|
|
2149
|
+
function Wr() {
|
|
2150
2150
|
var e;
|
|
2151
|
-
return Re !== void 0 || (typeof window < "u" && window.performance ? (Re = !0,
|
|
2151
|
+
return Re !== void 0 || (typeof window < "u" && window.performance ? (Re = !0, Wt = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (Re = !0, Wt = globalThis.perf_hooks.performance) : Re = !1), Re;
|
|
2152
2152
|
}
|
|
2153
|
-
function
|
|
2154
|
-
return
|
|
2153
|
+
function xr() {
|
|
2154
|
+
return Wr() ? Wt.now() : Date.now();
|
|
2155
2155
|
}
|
|
2156
|
-
class
|
|
2156
|
+
class $r {
|
|
2157
2157
|
constructor(t, n) {
|
|
2158
2158
|
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
|
|
2159
2159
|
const a = {};
|
|
@@ -2181,9 +2181,9 @@ class Gr {
|
|
|
2181
2181
|
r = o;
|
|
2182
2182
|
},
|
|
2183
2183
|
now() {
|
|
2184
|
-
return
|
|
2184
|
+
return xr();
|
|
2185
2185
|
}
|
|
2186
|
-
}, n && n.on(
|
|
2186
|
+
}, n && n.on(Vr, (o, l) => {
|
|
2187
2187
|
o === this.plugin.id && this.fallbacks.setSettings(l);
|
|
2188
2188
|
}), this.proxiedOn = new Proxy({}, {
|
|
2189
2189
|
get: (o, l) => this.target ? this.target.on[l] : (...u) => {
|
|
@@ -2215,12 +2215,12 @@ class Gr {
|
|
|
2215
2215
|
n.resolve(await this.target[n.method](...n.args));
|
|
2216
2216
|
}
|
|
2217
2217
|
}
|
|
2218
|
-
function
|
|
2219
|
-
const n = e, a =
|
|
2218
|
+
function Gr(e, t) {
|
|
2219
|
+
const n = e, a = La(), s = Fr(), r = wr && n.enableEarlyProxy;
|
|
2220
2220
|
if (s && (a.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !r))
|
|
2221
|
-
s.emit(
|
|
2221
|
+
s.emit(Ur, e, t);
|
|
2222
2222
|
else {
|
|
2223
|
-
const o = r ? new
|
|
2223
|
+
const o = r ? new $r(n, s) : null;
|
|
2224
2224
|
(a.__VUE_DEVTOOLS_PLUGINS__ = a.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
2225
2225
|
pluginDescriptor: n,
|
|
2226
2226
|
setupFn: t,
|
|
@@ -2233,13 +2233,13 @@ function Kr(e, t) {
|
|
|
2233
2233
|
* (c) 2025 kazuya kawaguchi
|
|
2234
2234
|
* Released under the MIT License.
|
|
2235
2235
|
*/
|
|
2236
|
-
const
|
|
2237
|
-
function
|
|
2236
|
+
const Kr = "11.1.3";
|
|
2237
|
+
function Yr() {
|
|
2238
2238
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Se().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Se().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Se().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Se().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
2239
2239
|
}
|
|
2240
2240
|
const $ = {
|
|
2241
2241
|
// composer module errors
|
|
2242
|
-
UNEXPECTED_RETURN_TYPE:
|
|
2242
|
+
UNEXPECTED_RETURN_TYPE: qs,
|
|
2243
2243
|
// 24
|
|
2244
2244
|
// legacy module errors
|
|
2245
2245
|
INVALID_ARGUMENT: 25,
|
|
@@ -2260,9 +2260,9 @@ const $ = {
|
|
|
2260
2260
|
NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
|
|
2261
2261
|
};
|
|
2262
2262
|
function te(e, ...t) {
|
|
2263
|
-
return Ue(e, null, process.env.NODE_ENV !== "production" ? { messages:
|
|
2263
|
+
return Ue(e, null, process.env.NODE_ENV !== "production" ? { messages: Hr, args: t } : void 0);
|
|
2264
2264
|
}
|
|
2265
|
-
const
|
|
2265
|
+
const Hr = {
|
|
2266
2266
|
[$.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
|
2267
2267
|
[$.INVALID_ARGUMENT]: "Invalid argument",
|
|
2268
2268
|
[$.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
|
|
@@ -2274,8 +2274,8 @@ const Br = {
|
|
|
2274
2274
|
[$.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
|
|
2275
2275
|
[$.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
|
2276
2276
|
[$.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
|
|
2277
|
-
},
|
|
2278
|
-
FALLBACK_TO_ROOT:
|
|
2277
|
+
}, xt = /* @__PURE__ */ de("__translateVNode"), $t = /* @__PURE__ */ de("__datetimeParts"), Gt = /* @__PURE__ */ de("__numberParts"), De = /* @__PURE__ */ de("__enableEmitter"), Xe = /* @__PURE__ */ de("__disableEmitter"), ba = de("__setPluralRules"), Oa = /* @__PURE__ */ de("__injectWithOption"), Kt = /* @__PURE__ */ de("__dispose"), me = {
|
|
2278
|
+
FALLBACK_TO_ROOT: ur,
|
|
2279
2279
|
// 8
|
|
2280
2280
|
NOT_FOUND_PARENT_SCOPE: 9,
|
|
2281
2281
|
IGNORE_OBJ_FLATTEN: 10,
|
|
@@ -2287,7 +2287,7 @@ const Br = {
|
|
|
2287
2287
|
* @deprecated will be removed at vue-i18n v12
|
|
2288
2288
|
*/
|
|
2289
2289
|
DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE: 12
|
|
2290
|
-
},
|
|
2290
|
+
}, Br = {
|
|
2291
2291
|
[me.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
|
|
2292
2292
|
[me.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
|
|
2293
2293
|
[me.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
|
|
@@ -2302,7 +2302,7 @@ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guid
|
|
|
2302
2302
|
[me.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]: "'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead."
|
|
2303
2303
|
};
|
|
2304
2304
|
function qe(e, ...t) {
|
|
2305
|
-
return it(
|
|
2305
|
+
return it(Br[e], ...t);
|
|
2306
2306
|
}
|
|
2307
2307
|
function Je(e) {
|
|
2308
2308
|
if (!M(e) || le(e))
|
|
@@ -2325,14 +2325,14 @@ function Je(e) {
|
|
|
2325
2325
|
}
|
|
2326
2326
|
s = s[n[o]];
|
|
2327
2327
|
}
|
|
2328
|
-
if (r || (le(s) ?
|
|
2328
|
+
if (r || (le(s) ? la.includes(n[a]) || delete e[t] : (s[n[a]] = e[t], delete e[t])), !le(s)) {
|
|
2329
2329
|
const o = s[n[a]];
|
|
2330
2330
|
M(o) && Je(o);
|
|
2331
2331
|
}
|
|
2332
2332
|
}
|
|
2333
2333
|
return e;
|
|
2334
2334
|
}
|
|
2335
|
-
function
|
|
2335
|
+
function an(e, t) {
|
|
2336
2336
|
const { messages: n, __i18n: a, messageResolver: s, flatJson: r } = t, o = R(n) ? n : B(a) ? W() : { [e]: W() };
|
|
2337
2337
|
if (B(a) && a.forEach((l) => {
|
|
2338
2338
|
if ("locale" in l && "resource" in l) {
|
|
@@ -2345,12 +2345,12 @@ function sn(e, t) {
|
|
|
2345
2345
|
ce(o, l) && Je(o[l]);
|
|
2346
2346
|
return o;
|
|
2347
2347
|
}
|
|
2348
|
-
function
|
|
2348
|
+
function Ia(e) {
|
|
2349
2349
|
return e.type;
|
|
2350
2350
|
}
|
|
2351
|
-
function
|
|
2351
|
+
function va(e, t, n) {
|
|
2352
2352
|
let a = M(t.messages) ? t.messages : W();
|
|
2353
|
-
"__i18nGlobal" in n && (a =
|
|
2353
|
+
"__i18nGlobal" in n && (a = an(e.locale.value, {
|
|
2354
2354
|
messages: a,
|
|
2355
2355
|
__i18n: n.__i18nGlobal
|
|
2356
2356
|
}));
|
|
@@ -2373,21 +2373,21 @@ function ya(e, t, n) {
|
|
|
2373
2373
|
}
|
|
2374
2374
|
}
|
|
2375
2375
|
}
|
|
2376
|
-
function
|
|
2377
|
-
return re(
|
|
2376
|
+
function Un(e) {
|
|
2377
|
+
return re(Ya, null, e, 0);
|
|
2378
2378
|
}
|
|
2379
|
-
const
|
|
2380
|
-
let
|
|
2381
|
-
function
|
|
2379
|
+
const Vn = "__INTLIFY_META__", Wn = () => [], jr = () => !1;
|
|
2380
|
+
let xn = 0;
|
|
2381
|
+
function $n(e) {
|
|
2382
2382
|
return (t, n, a, s) => e(n, a, Ye() || void 0, s);
|
|
2383
2383
|
}
|
|
2384
|
-
const
|
|
2384
|
+
const Xr = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
2385
2385
|
const e = Ye();
|
|
2386
2386
|
let t = null;
|
|
2387
|
-
return e && (t =
|
|
2387
|
+
return e && (t = Ia(e)[Vn]) ? { [Vn]: t } : null;
|
|
2388
2388
|
};
|
|
2389
|
-
function
|
|
2390
|
-
const { __root: t, __injectWithOption: n } = e, a = t === void 0, s = e.flatJson, r = ue ?
|
|
2389
|
+
function sn(e = {}) {
|
|
2390
|
+
const { __root: t, __injectWithOption: n } = e, a = t === void 0, s = e.flatJson, r = ue ? $a : Ga;
|
|
2391
2391
|
let o = F(e.inheritLocale) ? e.inheritLocale : !0;
|
|
2392
2392
|
const l = r(
|
|
2393
2393
|
// prettier-ignore
|
|
@@ -2395,21 +2395,21 @@ function rn(e = {}) {
|
|
|
2395
2395
|
), u = r(
|
|
2396
2396
|
// prettier-ignore
|
|
2397
2397
|
t && o ? t.fallbackLocale.value : I(e.fallbackLocale) || B(e.fallbackLocale) || R(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l.value
|
|
2398
|
-
), _ = r(
|
|
2399
|
-
let
|
|
2398
|
+
), _ = r(an(l.value, e)), E = r(R(e.datetimeFormats) ? e.datetimeFormats : { [l.value]: {} }), N = r(R(e.numberFormats) ? e.numberFormats : { [l.value]: {} });
|
|
2399
|
+
let p = t ? t.missingWarn : F(e.missingWarn) || Fe(e.missingWarn) ? e.missingWarn : !0, S = t ? t.fallbackWarn : F(e.fallbackWarn) || Fe(e.fallbackWarn) ? e.fallbackWarn : !0, D = t ? t.fallbackRoot : F(e.fallbackRoot) ? e.fallbackRoot : !0, v = !!e.fallbackFormat, A = x(e.missing) ? e.missing : null, f = x(e.missing) ? $n(e.missing) : null, g = x(e.postTranslation) ? e.postTranslation : null, b = t ? t.warnHtmlMessage : F(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, m = !!e.escapeParameter;
|
|
2400
2400
|
const O = t ? t.modifiers : R(e.modifiers) ? e.modifiers : {};
|
|
2401
2401
|
let y = e.pluralRules || t && t.pluralRules, h;
|
|
2402
2402
|
h = (() => {
|
|
2403
|
-
a &&
|
|
2403
|
+
a && Sn(null);
|
|
2404
2404
|
const d = {
|
|
2405
|
-
version:
|
|
2405
|
+
version: Kr,
|
|
2406
2406
|
locale: l.value,
|
|
2407
2407
|
fallbackLocale: u.value,
|
|
2408
2408
|
messages: _.value,
|
|
2409
2409
|
modifiers: O,
|
|
2410
2410
|
pluralRules: y,
|
|
2411
2411
|
missing: f === null ? void 0 : f,
|
|
2412
|
-
missingWarn:
|
|
2412
|
+
missingWarn: p,
|
|
2413
2413
|
fallbackWarn: S,
|
|
2414
2414
|
fallbackFormat: v,
|
|
2415
2415
|
unresolving: !0,
|
|
@@ -2420,16 +2420,16 @@ function rn(e = {}) {
|
|
|
2420
2420
|
messageCompiler: e.messageCompiler,
|
|
2421
2421
|
__meta: { framework: "vue" }
|
|
2422
2422
|
};
|
|
2423
|
-
d.datetimeFormats =
|
|
2424
|
-
const L =
|
|
2425
|
-
return a &&
|
|
2423
|
+
d.datetimeFormats = E.value, d.numberFormats = N.value, d.__datetimeFormatters = R(h) ? h.__datetimeFormatters : void 0, d.__numberFormatters = R(h) ? h.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (d.__v_emitter = R(h) ? h.__v_emitter : void 0);
|
|
2424
|
+
const L = Tr(d);
|
|
2425
|
+
return a && Sn(L), L;
|
|
2426
2426
|
})(), Ke(h, l.value, u.value);
|
|
2427
2427
|
function U() {
|
|
2428
2428
|
return [
|
|
2429
2429
|
l.value,
|
|
2430
2430
|
u.value,
|
|
2431
2431
|
_.value,
|
|
2432
|
-
|
|
2432
|
+
E.value,
|
|
2433
2433
|
N.value
|
|
2434
2434
|
];
|
|
2435
2435
|
}
|
|
@@ -2443,39 +2443,39 @@ function rn(e = {}) {
|
|
|
2443
2443
|
set: (d) => {
|
|
2444
2444
|
h.fallbackLocale = d, u.value = d, Ke(h, l.value, d);
|
|
2445
2445
|
}
|
|
2446
|
-
}), J = Ge(() => _.value), ke = /* @__PURE__ */ Ge(() =>
|
|
2447
|
-
function
|
|
2446
|
+
}), J = Ge(() => _.value), ke = /* @__PURE__ */ Ge(() => E.value), _t = /* @__PURE__ */ Ge(() => N.value);
|
|
2447
|
+
function mt() {
|
|
2448
2448
|
return x(g) ? g : null;
|
|
2449
2449
|
}
|
|
2450
|
-
function
|
|
2450
|
+
function dt(d) {
|
|
2451
2451
|
g = d, h.postTranslation = d;
|
|
2452
2452
|
}
|
|
2453
|
-
function
|
|
2453
|
+
function gt() {
|
|
2454
2454
|
return A;
|
|
2455
2455
|
}
|
|
2456
|
-
function
|
|
2457
|
-
d !== null && (f =
|
|
2456
|
+
function Et(d) {
|
|
2457
|
+
d !== null && (f = $n(d)), A = d, h.missing = f;
|
|
2458
2458
|
}
|
|
2459
|
-
function
|
|
2459
|
+
function pt(d, L) {
|
|
2460
2460
|
return d !== "translate" || !L.resolvedMessage;
|
|
2461
2461
|
}
|
|
2462
2462
|
const ge = (d, L, V, H, ve, ze) => {
|
|
2463
2463
|
U();
|
|
2464
2464
|
let Pe;
|
|
2465
2465
|
try {
|
|
2466
|
-
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, a || (h.fallbackContext = t ?
|
|
2466
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, a || (h.fallbackContext = t ? Nr() : void 0), Pe = d(h);
|
|
2467
2467
|
} finally {
|
|
2468
2468
|
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, a || (h.fallbackContext = void 0);
|
|
2469
2469
|
}
|
|
2470
2470
|
if (V !== "translate exists" && // for not `te` (e.g `t`)
|
|
2471
2471
|
j(Pe) && Pe === ut || V === "translate exists" && !Pe) {
|
|
2472
|
-
const [ye,
|
|
2473
|
-
if (process.env.NODE_ENV !== "production" && t && I(ye) &&
|
|
2472
|
+
const [ye, Fa] = L();
|
|
2473
|
+
if (process.env.NODE_ENV !== "production" && t && I(ye) && pt(V, Fa) && (D && (ft(S, ye) || da(p, ye)) && Le(qe(me.FALLBACK_TO_ROOT, {
|
|
2474
2474
|
key: ye,
|
|
2475
2475
|
type: V
|
|
2476
2476
|
})), process.env.NODE_ENV !== "production")) {
|
|
2477
|
-
const { __v_emitter:
|
|
2478
|
-
|
|
2477
|
+
const { __v_emitter: un } = h;
|
|
2478
|
+
un && D && un.emit("fallback", {
|
|
2479
2479
|
type: V,
|
|
2480
2480
|
key: ye,
|
|
2481
2481
|
to: "global",
|
|
@@ -2490,25 +2490,25 @@ function rn(e = {}) {
|
|
|
2490
2490
|
}
|
|
2491
2491
|
};
|
|
2492
2492
|
function Ve(...d) {
|
|
2493
|
-
return ge((L) => Reflect.apply(
|
|
2493
|
+
return ge((L) => Reflect.apply(wn, null, [L, ...d]), () => Vt(...d), "translate", (L) => Reflect.apply(L.t, L, [...d]), (L) => L, (L) => I(L));
|
|
2494
2494
|
}
|
|
2495
|
-
function
|
|
2495
|
+
function ht(...d) {
|
|
2496
2496
|
const [L, V, H] = d;
|
|
2497
2497
|
if (H && !M(H))
|
|
2498
2498
|
throw te($.INVALID_ARGUMENT);
|
|
2499
2499
|
return Ve(L, V, Q({ resolvedMessage: !0 }, H || {}));
|
|
2500
2500
|
}
|
|
2501
|
-
function
|
|
2502
|
-
return ge((L) => Reflect.apply(
|
|
2501
|
+
function Nt(...d) {
|
|
2502
|
+
return ge((L) => Reflect.apply(Dn, null, [L, ...d]), () => wt(...d), "datetime format", (L) => Reflect.apply(L.d, L, [...d]), () => rt, (L) => I(L));
|
|
2503
2503
|
}
|
|
2504
|
-
function
|
|
2505
|
-
return ge((L) => Reflect.apply(
|
|
2504
|
+
function Tt(...d) {
|
|
2505
|
+
return ge((L) => Reflect.apply(Pn, null, [L, ...d]), () => Ut(...d), "number format", (L) => Reflect.apply(L.n, L, [...d]), () => rt, (L) => I(L));
|
|
2506
2506
|
}
|
|
2507
|
-
function
|
|
2508
|
-
return d.map((L) => I(L) || j(L) || F(L) ?
|
|
2507
|
+
function Lt(d) {
|
|
2508
|
+
return d.map((L) => I(L) || j(L) || F(L) ? Un(String(L)) : L);
|
|
2509
2509
|
}
|
|
2510
|
-
const
|
|
2511
|
-
normalize:
|
|
2510
|
+
const bt = {
|
|
2511
|
+
normalize: Lt,
|
|
2512
2512
|
interpolate: (d) => d,
|
|
2513
2513
|
type: "vnode"
|
|
2514
2514
|
};
|
|
@@ -2517,33 +2517,33 @@ function rn(e = {}) {
|
|
|
2517
2517
|
let V;
|
|
2518
2518
|
const H = L;
|
|
2519
2519
|
try {
|
|
2520
|
-
H.processor =
|
|
2520
|
+
H.processor = bt, V = Reflect.apply(wn, null, [H, ...d]);
|
|
2521
2521
|
} finally {
|
|
2522
2522
|
H.processor = null;
|
|
2523
2523
|
}
|
|
2524
2524
|
return V;
|
|
2525
|
-
}, () =>
|
|
2525
|
+
}, () => Vt(...d), "translate", (L) => L[xt](...d), (L) => [Un(L)], (L) => B(L));
|
|
2526
2526
|
}
|
|
2527
|
-
function
|
|
2528
|
-
return ge((L) => Reflect.apply(
|
|
2527
|
+
function Ot(...d) {
|
|
2528
|
+
return ge((L) => Reflect.apply(Pn, null, [L, ...d]), () => Ut(...d), "number format", (L) => L[Gt](...d), Wn, (L) => I(L) || B(L));
|
|
2529
2529
|
}
|
|
2530
|
-
function
|
|
2531
|
-
return ge((L) => Reflect.apply(
|
|
2530
|
+
function It(...d) {
|
|
2531
|
+
return ge((L) => Reflect.apply(Dn, null, [L, ...d]), () => wt(...d), "datetime format", (L) => L[$t](...d), Wn, (L) => I(L) || B(L));
|
|
2532
2532
|
}
|
|
2533
|
-
function
|
|
2533
|
+
function vt(d) {
|
|
2534
2534
|
y = d, h.pluralRules = y;
|
|
2535
2535
|
}
|
|
2536
|
-
function
|
|
2536
|
+
function yt(d, L) {
|
|
2537
2537
|
return ge(() => {
|
|
2538
2538
|
if (!d)
|
|
2539
2539
|
return !1;
|
|
2540
2540
|
const V = I(L) ? L : l.value, H = Ie(V), ve = h.messageResolver(H, d);
|
|
2541
2541
|
return le(ve) || oe(ve) || I(ve);
|
|
2542
|
-
}, () => [d], "translate exists", (V) => Reflect.apply(V.te, V, [d, L]),
|
|
2542
|
+
}, () => [d], "translate exists", (V) => Reflect.apply(V.te, V, [d, L]), jr, (V) => F(V));
|
|
2543
2543
|
}
|
|
2544
2544
|
function We(d) {
|
|
2545
2545
|
let L = null;
|
|
2546
|
-
const V =
|
|
2546
|
+
const V = ia(h, u.value, l.value);
|
|
2547
2547
|
for (let H = 0; H < V.length; H++) {
|
|
2548
2548
|
const ve = _.value[V[H]] || {}, ze = h.messageResolver(ve, d);
|
|
2549
2549
|
if (ze != null) {
|
|
@@ -2569,7 +2569,7 @@ function rn(e = {}) {
|
|
|
2569
2569
|
}
|
|
2570
2570
|
_.value[d] = L, h.messages = _.value;
|
|
2571
2571
|
}
|
|
2572
|
-
function
|
|
2572
|
+
function St(d, L) {
|
|
2573
2573
|
_.value[d] = _.value[d] || {};
|
|
2574
2574
|
const V = { [d]: L };
|
|
2575
2575
|
if (s)
|
|
@@ -2578,30 +2578,30 @@ function rn(e = {}) {
|
|
|
2578
2578
|
L = V[d], st(L, _.value[d]), h.messages = _.value;
|
|
2579
2579
|
}
|
|
2580
2580
|
function i(d) {
|
|
2581
|
-
return
|
|
2581
|
+
return E.value[d] || {};
|
|
2582
2582
|
}
|
|
2583
2583
|
function c(d, L) {
|
|
2584
|
-
|
|
2584
|
+
E.value[d] = L, h.datetimeFormats = E.value, kn(h, d, L);
|
|
2585
2585
|
}
|
|
2586
2586
|
function T(d, L) {
|
|
2587
|
-
|
|
2587
|
+
E.value[d] = Q(E.value[d] || {}, L), h.datetimeFormats = E.value, kn(h, d, L);
|
|
2588
2588
|
}
|
|
2589
2589
|
function C(d) {
|
|
2590
2590
|
return N.value[d] || {};
|
|
2591
2591
|
}
|
|
2592
2592
|
function K(d, L) {
|
|
2593
|
-
N.value[d] = L, h.numberFormats = N.value,
|
|
2593
|
+
N.value[d] = L, h.numberFormats = N.value, Rn(h, d, L);
|
|
2594
2594
|
}
|
|
2595
2595
|
function Y(d, L) {
|
|
2596
|
-
N.value[d] = Q(N.value[d] || {}, L), h.numberFormats = N.value,
|
|
2596
|
+
N.value[d] = Q(N.value[d] || {}, L), h.numberFormats = N.value, Rn(h, d, L);
|
|
2597
2597
|
}
|
|
2598
|
-
|
|
2598
|
+
xn++, t && ue && (Rt(t.locale, (d) => {
|
|
2599
2599
|
o && (l.value = d, h.locale = d, Ke(h, l.value, u.value));
|
|
2600
|
-
}),
|
|
2600
|
+
}), Rt(t.fallbackLocale, (d) => {
|
|
2601
2601
|
o && (u.value = d, h.fallbackLocale = d, Ke(h, l.value, u.value));
|
|
2602
2602
|
}));
|
|
2603
2603
|
const w = {
|
|
2604
|
-
id:
|
|
2604
|
+
id: xn,
|
|
2605
2605
|
locale: X,
|
|
2606
2606
|
fallbackLocale: ie,
|
|
2607
2607
|
get inheritLocale() {
|
|
@@ -2624,10 +2624,10 @@ function rn(e = {}) {
|
|
|
2624
2624
|
return a;
|
|
2625
2625
|
},
|
|
2626
2626
|
get missingWarn() {
|
|
2627
|
-
return
|
|
2627
|
+
return p;
|
|
2628
2628
|
},
|
|
2629
2629
|
set missingWarn(d) {
|
|
2630
|
-
|
|
2630
|
+
p = d, h.missingWarn = p;
|
|
2631
2631
|
},
|
|
2632
2632
|
get fallbackWarn() {
|
|
2633
2633
|
return S;
|
|
@@ -2662,73 +2662,73 @@ function rn(e = {}) {
|
|
|
2662
2662
|
t: Ve,
|
|
2663
2663
|
getLocaleMessage: Ie,
|
|
2664
2664
|
setLocaleMessage: $e,
|
|
2665
|
-
mergeLocaleMessage:
|
|
2666
|
-
getPostTranslationHandler:
|
|
2667
|
-
setPostTranslationHandler:
|
|
2668
|
-
getMissingHandler:
|
|
2669
|
-
setMissingHandler:
|
|
2670
|
-
[
|
|
2665
|
+
mergeLocaleMessage: St,
|
|
2666
|
+
getPostTranslationHandler: mt,
|
|
2667
|
+
setPostTranslationHandler: dt,
|
|
2668
|
+
getMissingHandler: gt,
|
|
2669
|
+
setMissingHandler: Et,
|
|
2670
|
+
[ba]: vt
|
|
2671
2671
|
};
|
|
2672
|
-
return w.datetimeFormats = ke, w.numberFormats =
|
|
2672
|
+
return w.datetimeFormats = ke, w.numberFormats = _t, w.rt = ht, w.te = yt, w.tm = xe, w.d = Nt, w.n = Tt, w.getDateTimeFormat = i, w.setDateTimeFormat = c, w.mergeDateTimeFormat = T, w.getNumberFormat = C, w.setNumberFormat = K, w.mergeNumberFormat = Y, w[Oa] = n, w[xt] = Ze, w[$t] = It, w[Gt] = Ot, process.env.NODE_ENV !== "production" && (w[De] = (d) => {
|
|
2673
2673
|
h.__v_emitter = d;
|
|
2674
2674
|
}, w[Xe] = () => {
|
|
2675
2675
|
h.__v_emitter = void 0;
|
|
2676
2676
|
}), w;
|
|
2677
2677
|
}
|
|
2678
|
-
const
|
|
2678
|
+
const ya = "vue-i18n: composer properties", Pt = {
|
|
2679
2679
|
"vue-devtools-plugin-vue-i18n": "Vue I18n DevTools",
|
|
2680
2680
|
"vue-i18n-resource-inspector": "Vue I18n DevTools",
|
|
2681
2681
|
"vue-i18n-timeline": "Vue I18n"
|
|
2682
|
-
},
|
|
2682
|
+
}, Jr = {
|
|
2683
2683
|
"vue-i18n-resource-inspector": "Search for scopes ..."
|
|
2684
|
-
},
|
|
2684
|
+
}, Qr = {
|
|
2685
2685
|
"vue-i18n-timeline": 16764185
|
|
2686
2686
|
};
|
|
2687
|
-
let
|
|
2688
|
-
async function
|
|
2687
|
+
let Yt;
|
|
2688
|
+
async function qr(e, t) {
|
|
2689
2689
|
return new Promise((n, a) => {
|
|
2690
2690
|
try {
|
|
2691
|
-
|
|
2691
|
+
Gr({
|
|
2692
2692
|
id: "vue-devtools-plugin-vue-i18n",
|
|
2693
|
-
label:
|
|
2693
|
+
label: Pt["vue-devtools-plugin-vue-i18n"],
|
|
2694
2694
|
packageName: "vue-i18n",
|
|
2695
2695
|
homepage: "https://vue-i18n.intlify.dev",
|
|
2696
2696
|
logo: "https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",
|
|
2697
|
-
componentStateTypes: [
|
|
2697
|
+
componentStateTypes: [ya],
|
|
2698
2698
|
app: e
|
|
2699
2699
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2700
2700
|
}, (s) => {
|
|
2701
|
-
|
|
2702
|
-
|
|
2701
|
+
Yt = s, s.on.visitComponentTree(({ componentInstance: o, treeNode: l }) => {
|
|
2702
|
+
Zr(o, l, t);
|
|
2703
2703
|
}), s.on.inspectComponent(({ componentInstance: o, instanceData: l }) => {
|
|
2704
|
-
o.vnode.el && o.vnode.el.__VUE_I18N__ && l && (t.mode === "legacy" ? o.vnode.el.__VUE_I18N__ !== t.global.__composer &&
|
|
2704
|
+
o.vnode.el && o.vnode.el.__VUE_I18N__ && l && (t.mode === "legacy" ? o.vnode.el.__VUE_I18N__ !== t.global.__composer && Gn(l, o.vnode.el.__VUE_I18N__) : Gn(l, o.vnode.el.__VUE_I18N__));
|
|
2705
2705
|
}), s.addInspector({
|
|
2706
2706
|
id: "vue-i18n-resource-inspector",
|
|
2707
|
-
label:
|
|
2707
|
+
label: Pt["vue-i18n-resource-inspector"],
|
|
2708
2708
|
icon: "language",
|
|
2709
|
-
treeFilterPlaceholder:
|
|
2709
|
+
treeFilterPlaceholder: Jr["vue-i18n-resource-inspector"]
|
|
2710
2710
|
}), s.on.getInspectorTree((o) => {
|
|
2711
|
-
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" &&
|
|
2711
|
+
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" && ao(o, t);
|
|
2712
2712
|
});
|
|
2713
2713
|
const r = /* @__PURE__ */ new Map();
|
|
2714
2714
|
s.on.getInspectorState(async (o) => {
|
|
2715
2715
|
if (o.app === e && o.inspectorId === "vue-i18n-resource-inspector")
|
|
2716
|
-
if (s.unhighlightElement(),
|
|
2716
|
+
if (s.unhighlightElement(), ro(o, t), o.nodeId === "global") {
|
|
2717
2717
|
if (!r.has(o.app)) {
|
|
2718
2718
|
const [l] = await s.getComponentInstances(o.app);
|
|
2719
2719
|
r.set(o.app, l);
|
|
2720
2720
|
}
|
|
2721
2721
|
s.highlightElement(r.get(o.app));
|
|
2722
2722
|
} else {
|
|
2723
|
-
const l =
|
|
2723
|
+
const l = so(o.nodeId, t);
|
|
2724
2724
|
l && s.highlightElement(l);
|
|
2725
2725
|
}
|
|
2726
2726
|
}), s.on.editInspectorState((o) => {
|
|
2727
|
-
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" &&
|
|
2727
|
+
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" && lo(o, t);
|
|
2728
2728
|
}), s.addTimelineLayer({
|
|
2729
2729
|
id: "vue-i18n-timeline",
|
|
2730
|
-
label:
|
|
2731
|
-
color:
|
|
2730
|
+
label: Pt["vue-i18n-timeline"],
|
|
2731
|
+
color: Qr["vue-i18n-timeline"]
|
|
2732
2732
|
}), n(!0);
|
|
2733
2733
|
});
|
|
2734
2734
|
} catch (s) {
|
|
@@ -2736,22 +2736,22 @@ async function Zr(e, t) {
|
|
|
2736
2736
|
}
|
|
2737
2737
|
});
|
|
2738
2738
|
}
|
|
2739
|
-
function
|
|
2739
|
+
function Sa(e) {
|
|
2740
2740
|
return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
|
|
2741
2741
|
}
|
|
2742
|
-
function
|
|
2742
|
+
function Zr(e, t, n) {
|
|
2743
2743
|
const a = n.mode === "composition" ? n.global : n.global.__composer;
|
|
2744
2744
|
if (e && e.vnode.el && e.vnode.el.__VUE_I18N__ && e.vnode.el.__VUE_I18N__ !== a) {
|
|
2745
2745
|
const s = {
|
|
2746
|
-
label: `i18n (${
|
|
2746
|
+
label: `i18n (${Sa(e)} Scope)`,
|
|
2747
2747
|
textColor: 0,
|
|
2748
2748
|
backgroundColor: 16764185
|
|
2749
2749
|
};
|
|
2750
2750
|
t.tags.push(s);
|
|
2751
2751
|
}
|
|
2752
2752
|
}
|
|
2753
|
-
function
|
|
2754
|
-
const n =
|
|
2753
|
+
function Gn(e, t) {
|
|
2754
|
+
const n = ya;
|
|
2755
2755
|
e.state.push({
|
|
2756
2756
|
type: n,
|
|
2757
2757
|
key: "locale",
|
|
@@ -2776,7 +2776,7 @@ function Kn(e, t) {
|
|
|
2776
2776
|
type: n,
|
|
2777
2777
|
key: "messages",
|
|
2778
2778
|
editable: !1,
|
|
2779
|
-
value:
|
|
2779
|
+
value: rn(t.messages.value)
|
|
2780
2780
|
}), e.state.push({
|
|
2781
2781
|
type: n,
|
|
2782
2782
|
key: "datetimeFormats",
|
|
@@ -2789,34 +2789,34 @@ function Kn(e, t) {
|
|
|
2789
2789
|
value: t.numberFormats.value
|
|
2790
2790
|
});
|
|
2791
2791
|
}
|
|
2792
|
-
function
|
|
2792
|
+
function rn(e) {
|
|
2793
2793
|
const t = {};
|
|
2794
2794
|
return Object.keys(e).forEach((n) => {
|
|
2795
2795
|
const a = e[n];
|
|
2796
|
-
x(a) && "source" in a ? t[n] =
|
|
2796
|
+
x(a) && "source" in a ? t[n] = no(a) : le(a) && a.loc && a.loc.source ? t[n] = a.loc.source : M(a) ? t[n] = rn(a) : t[n] = a;
|
|
2797
2797
|
}), t;
|
|
2798
2798
|
}
|
|
2799
|
-
const
|
|
2799
|
+
const zr = {
|
|
2800
2800
|
"<": "<",
|
|
2801
2801
|
">": ">",
|
|
2802
2802
|
'"': """,
|
|
2803
2803
|
"&": "&"
|
|
2804
2804
|
};
|
|
2805
|
+
function eo(e) {
|
|
2806
|
+
return e.replace(/[<>"&]/g, to);
|
|
2807
|
+
}
|
|
2805
2808
|
function to(e) {
|
|
2806
|
-
return e
|
|
2809
|
+
return zr[e] || e;
|
|
2807
2810
|
}
|
|
2808
2811
|
function no(e) {
|
|
2809
|
-
return eo[e] || e;
|
|
2810
|
-
}
|
|
2811
|
-
function ao(e) {
|
|
2812
2812
|
return {
|
|
2813
2813
|
_custom: {
|
|
2814
2814
|
type: "function",
|
|
2815
|
-
display: `<span>ƒ</span> ${e.source ? `("${
|
|
2815
|
+
display: `<span>ƒ</span> ${e.source ? `("${eo(e.source)}")` : "(?)"}`
|
|
2816
2816
|
}
|
|
2817
2817
|
};
|
|
2818
2818
|
}
|
|
2819
|
-
function
|
|
2819
|
+
function ao(e, t) {
|
|
2820
2820
|
e.rootNodes.push({
|
|
2821
2821
|
id: "global",
|
|
2822
2822
|
label: "Global Scope"
|
|
@@ -2826,11 +2826,11 @@ function so(e, t) {
|
|
|
2826
2826
|
const r = t.mode === "composition" ? s : s.__composer;
|
|
2827
2827
|
n !== r && e.rootNodes.push({
|
|
2828
2828
|
id: r.id.toString(),
|
|
2829
|
-
label: `${
|
|
2829
|
+
label: `${Sa(a)} Scope`
|
|
2830
2830
|
});
|
|
2831
2831
|
}
|
|
2832
2832
|
}
|
|
2833
|
-
function
|
|
2833
|
+
function so(e, t) {
|
|
2834
2834
|
let n = null;
|
|
2835
2835
|
if (e !== "global") {
|
|
2836
2836
|
for (const [a, s] of t.__instances.entries())
|
|
@@ -2841,7 +2841,7 @@ function ro(e, t) {
|
|
|
2841
2841
|
}
|
|
2842
2842
|
return n;
|
|
2843
2843
|
}
|
|
2844
|
-
function
|
|
2844
|
+
function Aa(e, t) {
|
|
2845
2845
|
if (e === "global")
|
|
2846
2846
|
return t.mode === "composition" ? t.global : t.global.__composer;
|
|
2847
2847
|
{
|
|
@@ -2849,11 +2849,11 @@ function Ca(e, t) {
|
|
|
2849
2849
|
return n ? t.mode === "composition" ? n : n.__composer : null;
|
|
2850
2850
|
}
|
|
2851
2851
|
}
|
|
2852
|
-
function
|
|
2853
|
-
const n =
|
|
2854
|
-
return n && (e.state =
|
|
2852
|
+
function ro(e, t) {
|
|
2853
|
+
const n = Aa(e.nodeId, t);
|
|
2854
|
+
return n && (e.state = oo(n)), null;
|
|
2855
2855
|
}
|
|
2856
|
-
function
|
|
2856
|
+
function oo(e) {
|
|
2857
2857
|
const t = {}, n = "Locale related info", a = [
|
|
2858
2858
|
{
|
|
2859
2859
|
type: n,
|
|
@@ -2886,7 +2886,7 @@ function lo(e) {
|
|
|
2886
2886
|
type: s,
|
|
2887
2887
|
key: "messages",
|
|
2888
2888
|
editable: !1,
|
|
2889
|
-
value:
|
|
2889
|
+
value: rn(e.messages.value)
|
|
2890
2890
|
}
|
|
2891
2891
|
];
|
|
2892
2892
|
t[s] = r;
|
|
@@ -2913,9 +2913,9 @@ function lo(e) {
|
|
|
2913
2913
|
return t;
|
|
2914
2914
|
}
|
|
2915
2915
|
function Qe(e, t) {
|
|
2916
|
-
if (
|
|
2916
|
+
if (Yt) {
|
|
2917
2917
|
let n;
|
|
2918
|
-
t && "groupId" in t && (n = t.groupId, delete t.groupId),
|
|
2918
|
+
t && "groupId" in t && (n = t.groupId, delete t.groupId), Yt.addTimelineEvent({
|
|
2919
2919
|
layerId: "vue-i18n-timeline",
|
|
2920
2920
|
event: {
|
|
2921
2921
|
title: e,
|
|
@@ -2928,15 +2928,15 @@ function Qe(e, t) {
|
|
|
2928
2928
|
});
|
|
2929
2929
|
}
|
|
2930
2930
|
}
|
|
2931
|
-
function
|
|
2932
|
-
const n =
|
|
2931
|
+
function lo(e, t) {
|
|
2932
|
+
const n = Aa(e.nodeId, t);
|
|
2933
2933
|
if (n) {
|
|
2934
2934
|
const [a] = e.path;
|
|
2935
2935
|
a === "locale" && I(e.state.value) ? n.locale.value = e.state.value : a === "fallbackLocale" && (I(e.state.value) || B(e.state.value) || M(e.state.value)) ? n.fallbackLocale.value = e.state.value : a === "inheritLocale" && F(e.state.value) && (n.inheritLocale = e.state.value);
|
|
2936
2936
|
}
|
|
2937
2937
|
}
|
|
2938
|
-
function
|
|
2939
|
-
const t = I(e.locale) ? e.locale : je, n = I(e.fallbackLocale) || B(e.fallbackLocale) || R(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, a = x(e.missing) ? e.missing : void 0, s = F(e.silentTranslationWarn) || Fe(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, r = F(e.silentFallbackWarn) || Fe(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, o = F(e.fallbackRoot) ? e.fallbackRoot : !0, l = !!e.formatFallbackMessages, u = R(e.modifiers) ? e.modifiers : {}, _ = e.pluralizationRules,
|
|
2938
|
+
function io(e) {
|
|
2939
|
+
const t = I(e.locale) ? e.locale : je, n = I(e.fallbackLocale) || B(e.fallbackLocale) || R(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, a = x(e.missing) ? e.missing : void 0, s = F(e.silentTranslationWarn) || Fe(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, r = F(e.silentFallbackWarn) || Fe(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, o = F(e.fallbackRoot) ? e.fallbackRoot : !0, l = !!e.formatFallbackMessages, u = R(e.modifiers) ? e.modifiers : {}, _ = e.pluralizationRules, E = x(e.postTranslation) ? e.postTranslation : void 0, N = I(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, p = !!e.escapeParameterHtml, S = F(e.sync) ? e.sync : !0;
|
|
2940
2940
|
let D = e.messages;
|
|
2941
2941
|
if (R(e.sharedMessages)) {
|
|
2942
2942
|
const O = e.sharedMessages;
|
|
@@ -2960,9 +2960,9 @@ function co(e) {
|
|
|
2960
2960
|
fallbackFormat: l,
|
|
2961
2961
|
modifiers: u,
|
|
2962
2962
|
pluralRules: _,
|
|
2963
|
-
postTranslation:
|
|
2963
|
+
postTranslation: E,
|
|
2964
2964
|
warnHtmlMessage: N,
|
|
2965
|
-
escapeParameter:
|
|
2965
|
+
escapeParameter: p,
|
|
2966
2966
|
messageResolver: e.messageResolver,
|
|
2967
2967
|
inheritLocale: S,
|
|
2968
2968
|
__i18n: v,
|
|
@@ -2970,8 +2970,8 @@ function co(e) {
|
|
|
2970
2970
|
__injectWithOption: f
|
|
2971
2971
|
};
|
|
2972
2972
|
}
|
|
2973
|
-
function
|
|
2974
|
-
const t =
|
|
2973
|
+
function Ht(e = {}) {
|
|
2974
|
+
const t = sn(io(e)), { __extender: n } = e, a = {
|
|
2975
2975
|
// id
|
|
2976
2976
|
id: t.id,
|
|
2977
2977
|
// locale
|
|
@@ -3139,7 +3139,7 @@ function Bt(e = {}) {
|
|
|
3139
3139
|
s[Xe] && s[Xe]();
|
|
3140
3140
|
}), a;
|
|
3141
3141
|
}
|
|
3142
|
-
function
|
|
3142
|
+
function co(e, t, n) {
|
|
3143
3143
|
return {
|
|
3144
3144
|
beforeCreate() {
|
|
3145
3145
|
const a = Ye();
|
|
@@ -3149,17 +3149,17 @@ function uo(e, t, n) {
|
|
|
3149
3149
|
if (s.i18n) {
|
|
3150
3150
|
const r = s.i18n;
|
|
3151
3151
|
if (s.__i18n && (r.__i18n = s.__i18n), r.__root = t, this === this.$root)
|
|
3152
|
-
this.$i18n =
|
|
3152
|
+
this.$i18n = Kn(e, r);
|
|
3153
3153
|
else {
|
|
3154
|
-
r.__injectWithOption = !0, r.__extender = n.__vueI18nExtend, this.$i18n =
|
|
3154
|
+
r.__injectWithOption = !0, r.__extender = n.__vueI18nExtend, this.$i18n = Ht(r);
|
|
3155
3155
|
const o = this.$i18n;
|
|
3156
3156
|
o.__extender && (o.__disposer = o.__extender(this.$i18n));
|
|
3157
3157
|
}
|
|
3158
3158
|
} else if (s.__i18n)
|
|
3159
3159
|
if (this === this.$root)
|
|
3160
|
-
this.$i18n =
|
|
3160
|
+
this.$i18n = Kn(e, s);
|
|
3161
3161
|
else {
|
|
3162
|
-
this.$i18n =
|
|
3162
|
+
this.$i18n = Ht({
|
|
3163
3163
|
__i18n: s.__i18n,
|
|
3164
3164
|
__injectWithOption: !0,
|
|
3165
3165
|
__extender: n.__vueI18nExtend,
|
|
@@ -3170,13 +3170,13 @@ function uo(e, t, n) {
|
|
|
3170
3170
|
}
|
|
3171
3171
|
else
|
|
3172
3172
|
this.$i18n = e;
|
|
3173
|
-
s.__i18nGlobal &&
|
|
3173
|
+
s.__i18nGlobal && va(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), n.__setInstance(a, this.$i18n);
|
|
3174
3174
|
},
|
|
3175
3175
|
mounted() {
|
|
3176
3176
|
if (process.env.NODE_ENV !== "production" && this.$el && this.$i18n) {
|
|
3177
3177
|
const a = this.$i18n;
|
|
3178
3178
|
this.$el.__VUE_I18N__ = a.__composer;
|
|
3179
|
-
const s = this.__v_emitter =
|
|
3179
|
+
const s = this.__v_emitter = Zt();
|
|
3180
3180
|
a.__enableEmitter && a.__enableEmitter(s), s.on("*", Qe);
|
|
3181
3181
|
}
|
|
3182
3182
|
},
|
|
@@ -3189,15 +3189,15 @@ function uo(e, t, n) {
|
|
|
3189
3189
|
}
|
|
3190
3190
|
};
|
|
3191
3191
|
}
|
|
3192
|
-
function
|
|
3193
|
-
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[
|
|
3194
|
-
const n =
|
|
3192
|
+
function Kn(e, t) {
|
|
3193
|
+
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[ba](t.pluralizationRules || e.pluralizationRules);
|
|
3194
|
+
const n = an(e.locale, {
|
|
3195
3195
|
messages: t.messages,
|
|
3196
3196
|
__i18n: t.__i18n
|
|
3197
3197
|
});
|
|
3198
3198
|
return Object.keys(n).forEach((a) => e.mergeLocaleMessage(a, n[a])), t.datetimeFormats && Object.keys(t.datetimeFormats).forEach((a) => e.mergeDateTimeFormat(a, t.datetimeFormats[a])), t.numberFormats && Object.keys(t.numberFormats).forEach((a) => e.mergeNumberFormat(a, t.numberFormats[a])), e;
|
|
3199
3199
|
}
|
|
3200
|
-
const
|
|
3200
|
+
const on = {
|
|
3201
3201
|
tag: {
|
|
3202
3202
|
type: [String, Object]
|
|
3203
3203
|
},
|
|
@@ -3215,20 +3215,20 @@ const ln = {
|
|
|
3215
3215
|
type: Object
|
|
3216
3216
|
}
|
|
3217
3217
|
};
|
|
3218
|
-
function
|
|
3218
|
+
function uo({ slots: e }, t) {
|
|
3219
3219
|
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((a, s) => [
|
|
3220
3220
|
...a,
|
|
3221
3221
|
// prettier-ignore
|
|
3222
|
-
...s.type ===
|
|
3222
|
+
...s.type === Xt ? s.children : [s]
|
|
3223
3223
|
], []) : t.reduce((n, a) => {
|
|
3224
3224
|
const s = e[a];
|
|
3225
3225
|
return s && (n[a] = s()), n;
|
|
3226
3226
|
}, W());
|
|
3227
3227
|
}
|
|
3228
|
-
function
|
|
3229
|
-
return
|
|
3228
|
+
function Ca() {
|
|
3229
|
+
return Xt;
|
|
3230
3230
|
}
|
|
3231
|
-
const
|
|
3231
|
+
const fo = /* @__PURE__ */ jt({
|
|
3232
3232
|
/* eslint-disable */
|
|
3233
3233
|
name: "i18n-t",
|
|
3234
3234
|
props: Q({
|
|
@@ -3240,42 +3240,42 @@ const _o = /* @__PURE__ */ Xt({
|
|
|
3240
3240
|
type: [Number, String],
|
|
3241
3241
|
validator: (e) => j(e) || !isNaN(e)
|
|
3242
3242
|
}
|
|
3243
|
-
},
|
|
3243
|
+
}, on),
|
|
3244
3244
|
/* eslint-enable */
|
|
3245
3245
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3246
3246
|
setup(e, t) {
|
|
3247
|
-
const { slots: n, attrs: a } = t, s = e.i18n ||
|
|
3247
|
+
const { slots: n, attrs: a } = t, s = e.i18n || ln({
|
|
3248
3248
|
useScope: e.scope,
|
|
3249
3249
|
__useComponent: !0
|
|
3250
3250
|
});
|
|
3251
3251
|
return () => {
|
|
3252
3252
|
const r = Object.keys(n).filter((N) => N !== "_"), o = W();
|
|
3253
3253
|
e.locale && (o.locale = e.locale), e.plural !== void 0 && (o.plural = I(e.plural) ? +e.plural : e.plural);
|
|
3254
|
-
const l =
|
|
3255
|
-
return
|
|
3254
|
+
const l = uo(t, r), u = s[xt](e.keypath, l, o), _ = Q(W(), a), E = I(e.tag) || M(e.tag) ? e.tag : Ca();
|
|
3255
|
+
return qn(E, _, u);
|
|
3256
3256
|
};
|
|
3257
3257
|
}
|
|
3258
|
-
}),
|
|
3259
|
-
function
|
|
3258
|
+
}), Yn = fo;
|
|
3259
|
+
function _o(e) {
|
|
3260
3260
|
return B(e) && !I(e[0]);
|
|
3261
3261
|
}
|
|
3262
|
-
function
|
|
3262
|
+
function Da(e, t, n, a) {
|
|
3263
3263
|
const { slots: s, attrs: r } = t;
|
|
3264
3264
|
return () => {
|
|
3265
3265
|
const o = { part: !0 };
|
|
3266
3266
|
let l = W();
|
|
3267
|
-
e.locale && (o.locale = e.locale), I(e.format) ? o.key = e.format : M(e.format) && (I(e.format.key) && (o.key = e.format.key), l = Object.keys(e.format).reduce((
|
|
3267
|
+
e.locale && (o.locale = e.locale), I(e.format) ? o.key = e.format : M(e.format) && (I(e.format.key) && (o.key = e.format.key), l = Object.keys(e.format).reduce((p, S) => n.includes(S) ? Q(W(), p, { [S]: e.format[S] }) : p, W()));
|
|
3268
3268
|
const u = a(e.value, o, l);
|
|
3269
3269
|
let _ = [o.key];
|
|
3270
|
-
B(u) ? _ = u.map((
|
|
3271
|
-
const D = s[
|
|
3272
|
-
return
|
|
3270
|
+
B(u) ? _ = u.map((p, S) => {
|
|
3271
|
+
const D = s[p.type], v = D ? D({ [p.type]: p.value, index: S, parts: u }) : [p.value];
|
|
3272
|
+
return _o(v) && (v[0].key = `${p.type}-${S}`), v;
|
|
3273
3273
|
}) : I(u) && (_ = [u]);
|
|
3274
|
-
const
|
|
3275
|
-
return
|
|
3274
|
+
const E = Q(W(), r), N = I(e.tag) || M(e.tag) ? e.tag : Ca();
|
|
3275
|
+
return qn(N, E, _);
|
|
3276
3276
|
};
|
|
3277
3277
|
}
|
|
3278
|
-
const
|
|
3278
|
+
const mo = /* @__PURE__ */ jt({
|
|
3279
3279
|
/* eslint-disable */
|
|
3280
3280
|
name: "i18n-n",
|
|
3281
3281
|
props: Q({
|
|
@@ -3286,21 +3286,21 @@ const go = /* @__PURE__ */ Xt({
|
|
|
3286
3286
|
format: {
|
|
3287
3287
|
type: [String, Object]
|
|
3288
3288
|
}
|
|
3289
|
-
},
|
|
3289
|
+
}, on),
|
|
3290
3290
|
/* eslint-enable */
|
|
3291
3291
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3292
3292
|
setup(e, t) {
|
|
3293
|
-
const n = e.i18n ||
|
|
3293
|
+
const n = e.i18n || ln({
|
|
3294
3294
|
useScope: e.scope,
|
|
3295
3295
|
__useComponent: !0
|
|
3296
3296
|
});
|
|
3297
|
-
return
|
|
3297
|
+
return Da(e, t, ha, (...a) => (
|
|
3298
3298
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3299
|
-
n[
|
|
3299
|
+
n[Gt](...a)
|
|
3300
3300
|
));
|
|
3301
3301
|
}
|
|
3302
|
-
}),
|
|
3303
|
-
function
|
|
3302
|
+
}), Hn = mo;
|
|
3303
|
+
function go(e, t) {
|
|
3304
3304
|
const n = e;
|
|
3305
3305
|
if (e.mode === "composition")
|
|
3306
3306
|
return n.__getInstance(t) || e.global;
|
|
@@ -3309,22 +3309,22 @@ function Eo(e, t) {
|
|
|
3309
3309
|
return a != null ? a.__composer : e.global.__composer;
|
|
3310
3310
|
}
|
|
3311
3311
|
}
|
|
3312
|
-
function
|
|
3312
|
+
function Eo(e) {
|
|
3313
3313
|
const t = (o) => {
|
|
3314
|
-
process.env.NODE_ENV !== "production" &&
|
|
3314
|
+
process.env.NODE_ENV !== "production" && qt(qe(me.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));
|
|
3315
3315
|
const { instance: l, value: u } = o;
|
|
3316
3316
|
if (!l || !l.$)
|
|
3317
3317
|
throw te($.UNEXPECTED_ERROR);
|
|
3318
|
-
const _ =
|
|
3318
|
+
const _ = go(e, l.$), E = Bn(u);
|
|
3319
3319
|
return [
|
|
3320
|
-
Reflect.apply(_.t, _, [...
|
|
3320
|
+
Reflect.apply(_.t, _, [...jn(E)]),
|
|
3321
3321
|
_
|
|
3322
3322
|
];
|
|
3323
3323
|
};
|
|
3324
3324
|
return {
|
|
3325
3325
|
created: (o, l) => {
|
|
3326
3326
|
const [u, _] = t(l);
|
|
3327
|
-
ue && e.global === _ && (o.__i18nWatcher =
|
|
3327
|
+
ue && e.global === _ && (o.__i18nWatcher = Rt(_.locale, () => {
|
|
3328
3328
|
l.instance && l.instance.$forceUpdate();
|
|
3329
3329
|
})), o.__composer = _, o.textContent = u;
|
|
3330
3330
|
},
|
|
@@ -3333,9 +3333,9 @@ function po(e) {
|
|
|
3333
3333
|
},
|
|
3334
3334
|
beforeUpdate: (o, { value: l }) => {
|
|
3335
3335
|
if (o.__composer) {
|
|
3336
|
-
const u = o.__composer, _ =
|
|
3336
|
+
const u = o.__composer, _ = Bn(l);
|
|
3337
3337
|
o.textContent = Reflect.apply(u.t, u, [
|
|
3338
|
-
...
|
|
3338
|
+
...jn(_)
|
|
3339
3339
|
]);
|
|
3340
3340
|
}
|
|
3341
3341
|
},
|
|
@@ -3345,7 +3345,7 @@ function po(e) {
|
|
|
3345
3345
|
}
|
|
3346
3346
|
};
|
|
3347
3347
|
}
|
|
3348
|
-
function
|
|
3348
|
+
function Bn(e) {
|
|
3349
3349
|
if (I(e))
|
|
3350
3350
|
return { path: e };
|
|
3351
3351
|
if (R(e)) {
|
|
@@ -3355,48 +3355,48 @@ function jn(e) {
|
|
|
3355
3355
|
} else
|
|
3356
3356
|
throw te($.INVALID_VALUE);
|
|
3357
3357
|
}
|
|
3358
|
-
function
|
|
3358
|
+
function jn(e) {
|
|
3359
3359
|
const { path: t, locale: n, args: a, choice: s, plural: r } = e, o = {}, l = a || {};
|
|
3360
3360
|
return I(n) && (o.locale = n), j(s) && (o.plural = s), j(r) && (o.plural = r), [t, l, o];
|
|
3361
3361
|
}
|
|
3362
|
-
function
|
|
3362
|
+
function po(e, t, ...n) {
|
|
3363
3363
|
const a = R(n[0]) ? n[0] : {};
|
|
3364
|
-
(F(a.globalInstall) ? a.globalInstall : !0) && ([
|
|
3364
|
+
(F(a.globalInstall) ? a.globalInstall : !0) && ([Yn.name, "I18nT"].forEach((r) => e.component(r, Yn)), [Hn.name, "I18nN"].forEach((r) => e.component(r, Hn)), [Jn.name, "I18nD"].forEach((r) => e.component(r, Jn))), e.directive("t", Eo(t));
|
|
3365
3365
|
}
|
|
3366
|
-
const
|
|
3367
|
-
function
|
|
3366
|
+
const ho = /* @__PURE__ */ de("global-vue-i18n");
|
|
3367
|
+
function No(e = {}) {
|
|
3368
3368
|
const t = __VUE_I18N_LEGACY_API__ && F(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__;
|
|
3369
|
-
process.env.NODE_ENV !== "production" && t &&
|
|
3370
|
-
const n = F(e.globalInjection) ? e.globalInjection : !0, a = /* @__PURE__ */ new Map(), [s, r] =
|
|
3369
|
+
process.env.NODE_ENV !== "production" && t && qt(qe(me.DEPRECATE_LEGACY_MODE));
|
|
3370
|
+
const n = F(e.globalInjection) ? e.globalInjection : !0, a = /* @__PURE__ */ new Map(), [s, r] = To(e, t), o = /* @__PURE__ */ de(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
|
|
3371
3371
|
function l(N) {
|
|
3372
3372
|
return a.get(N) || null;
|
|
3373
3373
|
}
|
|
3374
|
-
function u(N,
|
|
3375
|
-
a.set(N,
|
|
3374
|
+
function u(N, p) {
|
|
3375
|
+
a.set(N, p);
|
|
3376
3376
|
}
|
|
3377
3377
|
function _(N) {
|
|
3378
3378
|
a.delete(N);
|
|
3379
3379
|
}
|
|
3380
|
-
const
|
|
3380
|
+
const E = {
|
|
3381
3381
|
// mode
|
|
3382
3382
|
get mode() {
|
|
3383
3383
|
return __VUE_I18N_LEGACY_API__ && t ? "legacy" : "composition";
|
|
3384
3384
|
},
|
|
3385
3385
|
// install plugin
|
|
3386
|
-
async install(N, ...
|
|
3387
|
-
if (process.env.NODE_ENV !== "production" && (N.__VUE_I18N__ =
|
|
3388
|
-
const v =
|
|
3389
|
-
|
|
3386
|
+
async install(N, ...p) {
|
|
3387
|
+
if (process.env.NODE_ENV !== "production" && (N.__VUE_I18N__ = E), N.__VUE_I18N_SYMBOL__ = o, N.provide(N.__VUE_I18N_SYMBOL__, E), R(p[0])) {
|
|
3388
|
+
const v = p[0];
|
|
3389
|
+
E.__composerExtend = v.__composerExtend, E.__vueI18nExtend = v.__vueI18nExtend;
|
|
3390
3390
|
}
|
|
3391
3391
|
let S = null;
|
|
3392
|
-
!t && n && (S =
|
|
3392
|
+
!t && n && (S = Ao(N, E.global)), __VUE_I18N_FULL_INSTALL__ && po(N, E, ...p), __VUE_I18N_LEGACY_API__ && t && N.mixin(co(r, r.__composer, E));
|
|
3393
3393
|
const D = N.unmount;
|
|
3394
3394
|
if (N.unmount = () => {
|
|
3395
|
-
S && S(),
|
|
3395
|
+
S && S(), E.dispose(), D();
|
|
3396
3396
|
}, process.env.NODE_ENV !== "production") {
|
|
3397
|
-
if (!await
|
|
3397
|
+
if (!await qr(N, E))
|
|
3398
3398
|
throw te($.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
3399
|
-
const A =
|
|
3399
|
+
const A = Zt();
|
|
3400
3400
|
if (t) {
|
|
3401
3401
|
const f = r;
|
|
3402
3402
|
f.__enableEmitter && f.__enableEmitter(A);
|
|
@@ -3423,58 +3423,58 @@ function To(e = {}) {
|
|
|
3423
3423
|
// @internal
|
|
3424
3424
|
__deleteInstance: _
|
|
3425
3425
|
};
|
|
3426
|
-
return
|
|
3426
|
+
return E;
|
|
3427
3427
|
}
|
|
3428
|
-
function
|
|
3428
|
+
function ln(e = {}) {
|
|
3429
3429
|
const t = Ye();
|
|
3430
3430
|
if (t == null)
|
|
3431
3431
|
throw te($.MUST_BE_CALL_SETUP_TOP);
|
|
3432
3432
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
3433
3433
|
throw te($.NOT_INSTALLED);
|
|
3434
|
-
const n =
|
|
3434
|
+
const n = Lo(t), a = Oo(n), s = Ia(t), r = bo(e, s);
|
|
3435
3435
|
if (r === "global")
|
|
3436
|
-
return
|
|
3436
|
+
return va(a, e, s), a;
|
|
3437
3437
|
if (r === "parent") {
|
|
3438
|
-
let u =
|
|
3438
|
+
let u = Io(n, t, e.__useComponent);
|
|
3439
3439
|
return u == null && (process.env.NODE_ENV !== "production" && Le(qe(me.NOT_FOUND_PARENT_SCOPE)), u = a), u;
|
|
3440
3440
|
}
|
|
3441
3441
|
const o = n;
|
|
3442
3442
|
let l = o.__getInstance(t);
|
|
3443
3443
|
if (l == null) {
|
|
3444
3444
|
const u = Q({}, e);
|
|
3445
|
-
"__i18n" in s && (u.__i18n = s.__i18n), a && (u.__root = a), l =
|
|
3445
|
+
"__i18n" in s && (u.__i18n = s.__i18n), a && (u.__root = a), l = sn(u), o.__composerExtend && (l[Kt] = o.__composerExtend(l)), yo(o, t, l), o.__setInstance(t, l);
|
|
3446
3446
|
}
|
|
3447
3447
|
return l;
|
|
3448
3448
|
}
|
|
3449
|
-
function
|
|
3450
|
-
const n =
|
|
3449
|
+
function To(e, t) {
|
|
3450
|
+
const n = Ua(), a = __VUE_I18N_LEGACY_API__ && t ? n.run(() => Ht(e)) : n.run(() => sn(e));
|
|
3451
3451
|
if (a == null)
|
|
3452
3452
|
throw te($.UNEXPECTED_ERROR);
|
|
3453
3453
|
return [n, a];
|
|
3454
3454
|
}
|
|
3455
|
-
function
|
|
3456
|
-
const t =
|
|
3455
|
+
function Lo(e) {
|
|
3456
|
+
const t = Va(e.isCE ? ho : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
3457
3457
|
if (!t)
|
|
3458
3458
|
throw te(e.isCE ? $.NOT_INSTALLED_WITH_PROVIDE : $.UNEXPECTED_ERROR);
|
|
3459
3459
|
return t;
|
|
3460
3460
|
}
|
|
3461
|
-
function
|
|
3461
|
+
function bo(e, t) {
|
|
3462
3462
|
return ct(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
3463
3463
|
}
|
|
3464
|
-
function
|
|
3464
|
+
function Oo(e) {
|
|
3465
3465
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
3466
3466
|
}
|
|
3467
|
-
function
|
|
3467
|
+
function Io(e, t, n = !1) {
|
|
3468
3468
|
let a = null;
|
|
3469
3469
|
const s = t.root;
|
|
3470
|
-
let r =
|
|
3470
|
+
let r = vo(t, n);
|
|
3471
3471
|
for (; r != null; ) {
|
|
3472
3472
|
const o = e;
|
|
3473
3473
|
if (e.mode === "composition")
|
|
3474
3474
|
a = o.__getInstance(r);
|
|
3475
3475
|
else if (__VUE_I18N_LEGACY_API__) {
|
|
3476
3476
|
const l = o.__getInstance(r);
|
|
3477
|
-
l != null && (a = l.__composer, n && a && !a[
|
|
3477
|
+
l != null && (a = l.__composer, n && a && !a[Oa] && (a = null));
|
|
3478
3478
|
}
|
|
3479
3479
|
if (a != null || s === r)
|
|
3480
3480
|
break;
|
|
@@ -3482,36 +3482,36 @@ function vo(e, t, n = !1) {
|
|
|
3482
3482
|
}
|
|
3483
3483
|
return a;
|
|
3484
3484
|
}
|
|
3485
|
-
function
|
|
3485
|
+
function vo(e, t = !1) {
|
|
3486
3486
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
3487
3487
|
}
|
|
3488
|
-
function
|
|
3488
|
+
function yo(e, t, n) {
|
|
3489
3489
|
let a = null;
|
|
3490
|
-
|
|
3490
|
+
Wa(() => {
|
|
3491
3491
|
if (process.env.NODE_ENV !== "production" && t.vnode.el) {
|
|
3492
|
-
t.vnode.el.__VUE_I18N__ = n, a =
|
|
3492
|
+
t.vnode.el.__VUE_I18N__ = n, a = Zt();
|
|
3493
3493
|
const s = n;
|
|
3494
3494
|
s[De] && s[De](a), a.on("*", Qe);
|
|
3495
3495
|
}
|
|
3496
|
-
}, t),
|
|
3496
|
+
}, t), xa(() => {
|
|
3497
3497
|
const s = n;
|
|
3498
3498
|
process.env.NODE_ENV !== "production" && t.vnode.el && t.vnode.el.__VUE_I18N__ && (a && a.off("*", Qe), s[Xe] && s[Xe](), delete t.vnode.el.__VUE_I18N__), e.__deleteInstance(t);
|
|
3499
|
-
const r = s[
|
|
3500
|
-
r && (r(), delete s[
|
|
3499
|
+
const r = s[Kt];
|
|
3500
|
+
r && (r(), delete s[Kt]);
|
|
3501
3501
|
}, t);
|
|
3502
3502
|
}
|
|
3503
|
-
const
|
|
3503
|
+
const So = [
|
|
3504
3504
|
"locale",
|
|
3505
3505
|
"fallbackLocale",
|
|
3506
3506
|
"availableLocales"
|
|
3507
|
-
],
|
|
3508
|
-
function
|
|
3507
|
+
], Xn = ["t", "rt", "d", "n", "tm", "te"];
|
|
3508
|
+
function Ao(e, t) {
|
|
3509
3509
|
const n = /* @__PURE__ */ Object.create(null);
|
|
3510
|
-
return
|
|
3510
|
+
return So.forEach((s) => {
|
|
3511
3511
|
const r = Object.getOwnPropertyDescriptor(t, s);
|
|
3512
3512
|
if (!r)
|
|
3513
3513
|
throw te($.UNEXPECTED_ERROR);
|
|
3514
|
-
const o =
|
|
3514
|
+
const o = Ka(r.value) ? {
|
|
3515
3515
|
get() {
|
|
3516
3516
|
return r.value.value;
|
|
3517
3517
|
},
|
|
@@ -3525,18 +3525,18 @@ function Co(e, t) {
|
|
|
3525
3525
|
}
|
|
3526
3526
|
};
|
|
3527
3527
|
Object.defineProperty(n, s, o);
|
|
3528
|
-
}), e.config.globalProperties.$i18n = n,
|
|
3528
|
+
}), e.config.globalProperties.$i18n = n, Xn.forEach((s) => {
|
|
3529
3529
|
const r = Object.getOwnPropertyDescriptor(t, s);
|
|
3530
3530
|
if (!r || !r.value)
|
|
3531
3531
|
throw te($.UNEXPECTED_ERROR);
|
|
3532
3532
|
Object.defineProperty(e.config.globalProperties, `$${s}`, r);
|
|
3533
3533
|
}), () => {
|
|
3534
|
-
delete e.config.globalProperties.$i18n,
|
|
3534
|
+
delete e.config.globalProperties.$i18n, Xn.forEach((s) => {
|
|
3535
3535
|
delete e.config.globalProperties[`$${s}`];
|
|
3536
3536
|
});
|
|
3537
3537
|
};
|
|
3538
3538
|
}
|
|
3539
|
-
const
|
|
3539
|
+
const Co = /* @__PURE__ */ jt({
|
|
3540
3540
|
/* eslint-disable */
|
|
3541
3541
|
name: "i18n-d",
|
|
3542
3542
|
props: Q({
|
|
@@ -3547,101 +3547,108 @@ const Do = /* @__PURE__ */ Xt({
|
|
|
3547
3547
|
format: {
|
|
3548
3548
|
type: [String, Object]
|
|
3549
3549
|
}
|
|
3550
|
-
},
|
|
3550
|
+
}, on),
|
|
3551
3551
|
/* eslint-enable */
|
|
3552
3552
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3553
3553
|
setup(e, t) {
|
|
3554
|
-
const n = e.i18n ||
|
|
3554
|
+
const n = e.i18n || ln({
|
|
3555
3555
|
useScope: e.scope,
|
|
3556
3556
|
__useComponent: !0
|
|
3557
3557
|
});
|
|
3558
|
-
return
|
|
3558
|
+
return Da(e, t, pa, (...a) => (
|
|
3559
3559
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3560
|
-
n[
|
|
3560
|
+
n[$t](...a)
|
|
3561
3561
|
));
|
|
3562
3562
|
}
|
|
3563
|
-
}),
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3563
|
+
}), Jn = Co;
|
|
3564
|
+
Yr();
|
|
3565
|
+
dr(Bs);
|
|
3566
|
+
gr(cr);
|
|
3567
|
+
Er(ia);
|
|
3568
3568
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
3569
3569
|
const e = Se();
|
|
3570
|
-
e.__INTLIFY__ = !0,
|
|
3570
|
+
e.__INTLIFY__ = !0, js(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
3571
3571
|
}
|
|
3572
3572
|
process.env.NODE_ENV;
|
|
3573
|
-
const
|
|
3573
|
+
const Do = (e) => {
|
|
3574
3574
|
const t = {};
|
|
3575
3575
|
for (const n of e)
|
|
3576
3576
|
t[n.key] = n.value;
|
|
3577
3577
|
return t;
|
|
3578
|
-
},
|
|
3578
|
+
}, ko = (e, t) => (t.forEach((n) => {
|
|
3579
3579
|
const a = G.find(e, { key: n.key });
|
|
3580
3580
|
a ? G.merge(a, n) : e.push(n);
|
|
3581
|
-
}), e),
|
|
3581
|
+
}), e), ka = async ({ baseUrl: e, token: t }) => lt.get(e + "/i18n-web/sysoption/getsupportedlangs", {
|
|
3582
3582
|
headers: {
|
|
3583
|
-
Authorization:
|
|
3583
|
+
Authorization: t
|
|
3584
3584
|
}
|
|
3585
|
-
}),
|
|
3585
|
+
}), Qn = async ({
|
|
3586
3586
|
appCode: e,
|
|
3587
3587
|
language: t = "zh-CN",
|
|
3588
3588
|
page: n,
|
|
3589
3589
|
lastPullDate: a,
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3590
|
+
baseUrl: s,
|
|
3591
|
+
token: r
|
|
3592
|
+
}) => new Promise(async (o, l) => {
|
|
3593
|
+
const u = s + "/i18n-web/kv_translate/kv_translates", _ = a ? u + "?lastPullDate=" + a : u, E = await lt({
|
|
3594
|
+
url: _,
|
|
3594
3595
|
method: "GET",
|
|
3595
3596
|
headers: {
|
|
3596
3597
|
appCode: e,
|
|
3597
3598
|
page: n,
|
|
3598
3599
|
language: t,
|
|
3599
|
-
Authorization:
|
|
3600
|
+
Authorization: r
|
|
3600
3601
|
}
|
|
3601
3602
|
});
|
|
3602
|
-
|
|
3603
|
-
}),
|
|
3604
|
-
url:
|
|
3603
|
+
E.data && E.data.result == 0 ? o(E.data.retVal) : o(E);
|
|
3604
|
+
}), Po = async ({ data: e, token: t, baseUrl: n }) => lt({
|
|
3605
|
+
url: n + "/i18n-web/kv_translate/userDicts",
|
|
3605
3606
|
method: "POST",
|
|
3606
3607
|
headers: {
|
|
3607
3608
|
Authorization: t
|
|
3608
3609
|
},
|
|
3609
3610
|
data: e
|
|
3610
|
-
}),
|
|
3611
|
-
url:
|
|
3611
|
+
}), Ro = async ({ data: e, token: t, baseUrl: n }) => lt({
|
|
3612
|
+
url: n + "/i18n-web/kv_translate/batch",
|
|
3612
3613
|
method: "POST",
|
|
3613
3614
|
data: e,
|
|
3614
3615
|
headers: {
|
|
3615
3616
|
Authorization: t
|
|
3616
3617
|
}
|
|
3617
|
-
}),
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3618
|
+
}), Mo = async ({
|
|
3619
|
+
baseUrl: e,
|
|
3620
|
+
appCode: t,
|
|
3621
|
+
language: n = "zh-CN",
|
|
3622
|
+
token: a
|
|
3623
|
+
}) => new Promise(async (s, r) => {
|
|
3624
|
+
const o = pe.namespace(`I18N_${G.toUpper(t)}`), l = {
|
|
3625
|
+
baseUrl: e,
|
|
3626
|
+
appCode: t,
|
|
3627
|
+
language: n,
|
|
3628
|
+
token: a
|
|
3629
|
+
}, u = o.get(n);
|
|
3630
|
+
if (!u || !u.lastPullDate) {
|
|
3631
|
+
const _ = await Qn(l);
|
|
3632
|
+
_ && (o.set(n, _), s(_.translatesDTOs));
|
|
3626
3633
|
} else {
|
|
3627
|
-
const { lastPullDate:
|
|
3628
|
-
...
|
|
3629
|
-
lastPullDate:
|
|
3634
|
+
const { lastPullDate: _ } = u, E = await Qn({
|
|
3635
|
+
...l,
|
|
3636
|
+
lastPullDate: _
|
|
3630
3637
|
});
|
|
3631
|
-
if (
|
|
3632
|
-
const
|
|
3633
|
-
if (G.isEmpty(
|
|
3634
|
-
|
|
3638
|
+
if (E) {
|
|
3639
|
+
const N = G.get(u, "translatesDTOs");
|
|
3640
|
+
if (G.isEmpty(E.translatesDTOs))
|
|
3641
|
+
s(N);
|
|
3635
3642
|
else {
|
|
3636
|
-
const
|
|
3637
|
-
lastPullDate:
|
|
3638
|
-
translatesDTOs:
|
|
3643
|
+
const p = ko(N, E.translatesDTOs), S = {
|
|
3644
|
+
lastPullDate: E.lastPullDate,
|
|
3645
|
+
translatesDTOs: p
|
|
3639
3646
|
};
|
|
3640
|
-
pe.namespace(`I18N_${G.toUpper(
|
|
3647
|
+
pe.namespace(`I18N_${G.toUpper(t)}`).set(n, S, ":"), s(p);
|
|
3641
3648
|
}
|
|
3642
3649
|
}
|
|
3643
3650
|
}
|
|
3644
|
-
}),
|
|
3651
|
+
}), Fo = {
|
|
3645
3652
|
data() {
|
|
3646
3653
|
return {
|
|
3647
3654
|
LanguageSettingVisible: !1,
|
|
@@ -3666,67 +3673,20 @@ const ko = (e) => {
|
|
|
3666
3673
|
return this.page.firstResult / this.page.pageSize + 1;
|
|
3667
3674
|
},
|
|
3668
3675
|
columns() {
|
|
3669
|
-
let e = [
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
// placement="top"
|
|
3684
|
-
// transfer
|
|
3685
|
-
// >
|
|
3686
|
-
// <Icon type="ios-alert-outline" />
|
|
3687
|
-
// </Tooltip>
|
|
3688
|
-
// </span>
|
|
3689
|
-
// ) : row.page === this.name ? (
|
|
3690
|
-
// <span style={{ color: "green" }}>当前页</span>
|
|
3691
|
-
// ) : (
|
|
3692
|
-
// <span>
|
|
3693
|
-
// 全局{" "}
|
|
3694
|
-
// <Tooltip
|
|
3695
|
-
// maxWidth={150}
|
|
3696
|
-
// content="编辑该字段转化为当前页,不会覆盖全局"
|
|
3697
|
-
// placement="top"
|
|
3698
|
-
// transfer
|
|
3699
|
-
// >
|
|
3700
|
-
// <Icon type="ios-alert-outline" />
|
|
3701
|
-
// </Tooltip>
|
|
3702
|
-
// </span>
|
|
3703
|
-
// );
|
|
3704
|
-
// }
|
|
3705
|
-
// },
|
|
3706
|
-
// {
|
|
3707
|
-
// title: "关键词",
|
|
3708
|
-
// fixed: "left",
|
|
3709
|
-
// width: 90,
|
|
3710
|
-
// key: "dictKey"
|
|
3711
|
-
// }
|
|
3712
|
-
// ]
|
|
3713
|
-
// : [
|
|
3714
|
-
{
|
|
3715
|
-
title: "状态",
|
|
3716
|
-
fixed: "left",
|
|
3717
|
-
width: 90,
|
|
3718
|
-
key: "page",
|
|
3719
|
-
render: (t, {
|
|
3720
|
-
row: n
|
|
3721
|
-
}) => t("span", {}, n.page === "common" ? "全局" : n.page === this.name ? "当前页" : "登录页")
|
|
3722
|
-
},
|
|
3723
|
-
{
|
|
3724
|
-
title: "关键词",
|
|
3725
|
-
fixed: "left",
|
|
3726
|
-
width: 90,
|
|
3727
|
-
key: "dictKey"
|
|
3728
|
-
}
|
|
3729
|
-
];
|
|
3676
|
+
let e = [{
|
|
3677
|
+
title: "状态",
|
|
3678
|
+
fixed: "left",
|
|
3679
|
+
width: 90,
|
|
3680
|
+
key: "page",
|
|
3681
|
+
render: (t, {
|
|
3682
|
+
row: n
|
|
3683
|
+
}) => t("span", {}, n.page === "common" ? "全局" : n.page === this.name ? "当前页" : "登录页")
|
|
3684
|
+
}, {
|
|
3685
|
+
title: "关键词",
|
|
3686
|
+
fixed: "left",
|
|
3687
|
+
width: 90,
|
|
3688
|
+
key: "dictKey"
|
|
3689
|
+
}];
|
|
3730
3690
|
return G.map(this.languages, (t) => {
|
|
3731
3691
|
const n = t.code;
|
|
3732
3692
|
if (!t.unChecked)
|
|
@@ -3744,11 +3704,9 @@ const ko = (e) => {
|
|
|
3744
3704
|
modelValue: o,
|
|
3745
3705
|
onOnChange: (u) => {
|
|
3746
3706
|
const _ = u.target.value, {
|
|
3747
|
-
dictKey:
|
|
3748
|
-
} = s
|
|
3749
|
-
|
|
3750
|
-
const N = G.findIndex(this.mySaveData, {
|
|
3751
|
-
dictKey: p
|
|
3707
|
+
dictKey: E
|
|
3708
|
+
} = s, N = G.findIndex(this.mySaveData, {
|
|
3709
|
+
dictKey: E
|
|
3752
3710
|
});
|
|
3753
3711
|
N > -1 ? this.mySaveData[N][n] = _ : this.mySaveData.push({
|
|
3754
3712
|
...s,
|
|
@@ -3766,6 +3724,8 @@ const ko = (e) => {
|
|
|
3766
3724
|
appCode: String,
|
|
3767
3725
|
setLanguage: Function,
|
|
3768
3726
|
token: String,
|
|
3727
|
+
baseUrl: String,
|
|
3728
|
+
// 基础URL
|
|
3769
3729
|
translationKeys: Array,
|
|
3770
3730
|
loginRouteName: String,
|
|
3771
3731
|
// 登录页路由名称
|
|
@@ -3782,7 +3742,7 @@ const ko = (e) => {
|
|
|
3782
3742
|
methods: {
|
|
3783
3743
|
saveLanguageSetting(e) {
|
|
3784
3744
|
const t = G.map(G.filter(this.languages, (n) => n.unChecked), "code");
|
|
3785
|
-
|
|
3745
|
+
pe.set("I18N_LANGUAGE_SETTING", t);
|
|
3786
3746
|
},
|
|
3787
3747
|
handleLanguageSettingOpen() {
|
|
3788
3748
|
this.LanguageSettingVisible = !this.LanguageSettingVisible;
|
|
@@ -3823,11 +3783,15 @@ const ko = (e) => {
|
|
|
3823
3783
|
});
|
|
3824
3784
|
return;
|
|
3825
3785
|
}
|
|
3826
|
-
const a = await
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3786
|
+
const a = await Ro({
|
|
3787
|
+
baseUrl: this.baseUrl,
|
|
3788
|
+
data: {
|
|
3789
|
+
appCode: this.appCode,
|
|
3790
|
+
isLocal: "F",
|
|
3791
|
+
data: n
|
|
3792
|
+
},
|
|
3793
|
+
token: this.token
|
|
3794
|
+
});
|
|
3831
3795
|
a && a.data.result === 0 ? (et.success({
|
|
3832
3796
|
content: e || a.data.msg
|
|
3833
3797
|
}), this.setLanguage(), this.initialData = G.cloneDeep(this.data.datas), t && this.closeModal(), this.mySaveData = []) : et.error({
|
|
@@ -3861,14 +3825,18 @@ const ko = (e) => {
|
|
|
3861
3825
|
},
|
|
3862
3826
|
async search(e, t) {
|
|
3863
3827
|
this.loading = !0;
|
|
3864
|
-
const n = await
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3828
|
+
const n = await Po({
|
|
3829
|
+
baseUrl: this.baseUrl,
|
|
3830
|
+
data: {
|
|
3831
|
+
appCode: this.appCode,
|
|
3832
|
+
searchBlur: this.searchText,
|
|
3833
|
+
commaSeparatedLangs: G.map(this.languages, "code").toString(),
|
|
3834
|
+
page: t === "loginData" ? this.loginRouteName : t === "pageData" ? this.name : "common",
|
|
3835
|
+
pageSize: 10,
|
|
3836
|
+
...e
|
|
3837
|
+
},
|
|
3838
|
+
token: this.token
|
|
3839
|
+
});
|
|
3872
3840
|
if (n) {
|
|
3873
3841
|
this.initialData = G.cloneDeep(n.data.retVal.datas);
|
|
3874
3842
|
let a = n.data.retVal.datas;
|
|
@@ -3884,7 +3852,10 @@ const ko = (e) => {
|
|
|
3884
3852
|
this.type = e, e === "data" ? this.search() : e === "pageData" ? this.getPageData() : e === "loginData" && this.getLoginData();
|
|
3885
3853
|
},
|
|
3886
3854
|
async init() {
|
|
3887
|
-
const e = await
|
|
3855
|
+
const e = await ka({
|
|
3856
|
+
token: this.token,
|
|
3857
|
+
baseUrl: this.baseUrl
|
|
3858
|
+
});
|
|
3888
3859
|
if (e && e.data.result == 0) {
|
|
3889
3860
|
let t = e.data.retVal;
|
|
3890
3861
|
G.map(t, (n) => {
|
|
@@ -3894,14 +3865,14 @@ const ko = (e) => {
|
|
|
3894
3865
|
et.error("获取语言失败,出错了");
|
|
3895
3866
|
}
|
|
3896
3867
|
}
|
|
3897
|
-
},
|
|
3868
|
+
}, wo = (e, t) => {
|
|
3898
3869
|
const n = e.__vccOpts || e;
|
|
3899
3870
|
for (const [a, s] of t)
|
|
3900
3871
|
n[a] = s;
|
|
3901
3872
|
return n;
|
|
3902
|
-
},
|
|
3903
|
-
function
|
|
3904
|
-
const o = z("Spin"), l = z("Table"), u = z("TabPane"), _ = z("Icon"),
|
|
3873
|
+
}, Uo = { key: 0 }, Vo = { class: "extra" }, Wo = { class: "gc_i18n_page" }, xo = { style: { display: "flex" } };
|
|
3874
|
+
function $o(e, t, n, a, s, r) {
|
|
3875
|
+
const o = z("Spin"), l = z("Table"), u = z("TabPane"), _ = z("Icon"), E = z("Checkbox"), N = z("DropdownItem"), p = z("DropdownMenu"), S = z("Dropdown"), D = z("Input"), v = z("Tabs"), A = z("Page"), f = z("Button"), g = z("Modal"), b = Ha("click-away");
|
|
3905
3876
|
return se(), fe(g, {
|
|
3906
3877
|
modelValue: s.isModalVisible,
|
|
3907
3878
|
"onUpdate:modelValue": t[4] || (t[4] = (m) => s.isModalVisible = m),
|
|
@@ -3912,7 +3883,7 @@ function Go(e, t, n, a, s, r) {
|
|
|
3912
3883
|
onOnCancel: r.closeModal
|
|
3913
3884
|
}, {
|
|
3914
3885
|
default: ne(() => [
|
|
3915
|
-
s.isModalVisible ? (se(),
|
|
3886
|
+
s.isModalVisible ? (se(), _n("div", Uo, [
|
|
3916
3887
|
re(v, {
|
|
3917
3888
|
modelValue: s.type,
|
|
3918
3889
|
"onUpdate:modelValue": t[2] || (t[2] = (m) => s.type = m),
|
|
@@ -3921,8 +3892,8 @@ function Go(e, t, n, a, s, r) {
|
|
|
3921
3892
|
onOnClick: r.changeTab
|
|
3922
3893
|
}, {
|
|
3923
3894
|
extra: ne(() => [
|
|
3924
|
-
Ne("div",
|
|
3925
|
-
|
|
3895
|
+
Ne("div", Vo, [
|
|
3896
|
+
Ba((se(), fe(S, {
|
|
3926
3897
|
style: { width: "80px" },
|
|
3927
3898
|
transfer: "",
|
|
3928
3899
|
trigger: "custom",
|
|
@@ -3930,13 +3901,13 @@ function Go(e, t, n, a, s, r) {
|
|
|
3930
3901
|
visible: s.LanguageSettingVisible
|
|
3931
3902
|
}, {
|
|
3932
3903
|
list: ne(() => [
|
|
3933
|
-
re(
|
|
3904
|
+
re(p, null, {
|
|
3934
3905
|
default: ne(() => [
|
|
3935
|
-
(se(!0),
|
|
3906
|
+
(se(!0), _n(Xt, null, ja(s.languages, (m) => (se(), fe(N, {
|
|
3936
3907
|
key: m.code
|
|
3937
3908
|
}, {
|
|
3938
3909
|
default: ne(() => [
|
|
3939
|
-
re(
|
|
3910
|
+
re(E, {
|
|
3940
3911
|
modelValue: m.unChecked,
|
|
3941
3912
|
"onUpdate:modelValue": (O) => m.unChecked = O,
|
|
3942
3913
|
onOnChange: r.saveLanguageSetting,
|
|
@@ -3944,7 +3915,7 @@ function Go(e, t, n, a, s, r) {
|
|
|
3944
3915
|
"false-value": !0
|
|
3945
3916
|
}, {
|
|
3946
3917
|
default: ne(() => [
|
|
3947
|
-
Ne("span", null,
|
|
3918
|
+
Ne("span", null, dn(m.name), 1)
|
|
3948
3919
|
]),
|
|
3949
3920
|
_: 2
|
|
3950
3921
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onOnChange"])
|
|
@@ -3960,7 +3931,7 @@ function Go(e, t, n, a, s, r) {
|
|
|
3960
3931
|
href: "javascript:void(0)",
|
|
3961
3932
|
onClick: t[0] || (t[0] = (...m) => r.handleLanguageSettingOpen && r.handleLanguageSettingOpen(...m))
|
|
3962
3933
|
}, [
|
|
3963
|
-
t[5] || (t[5] =
|
|
3934
|
+
t[5] || (t[5] = At(" 语言 ")),
|
|
3964
3935
|
re(_, { type: "ios-arrow-down" })
|
|
3965
3936
|
])
|
|
3966
3937
|
]),
|
|
@@ -4035,12 +4006,12 @@ function Go(e, t, n, a, s, r) {
|
|
|
4035
4006
|
}, null, 8, ["columns", "data"]))
|
|
4036
4007
|
]),
|
|
4037
4008
|
_: 1
|
|
4038
|
-
})) :
|
|
4009
|
+
})) : mn("", !0)
|
|
4039
4010
|
]),
|
|
4040
4011
|
_: 1
|
|
4041
4012
|
}, 8, ["modelValue", "onOnClick"]),
|
|
4042
|
-
Ne("div",
|
|
4043
|
-
Ne("div",
|
|
4013
|
+
Ne("div", Wo, [
|
|
4014
|
+
Ne("div", xo, [
|
|
4044
4015
|
re(A, {
|
|
4045
4016
|
modelValue: r.firstResult,
|
|
4046
4017
|
"onUpdate:modelValue": t[3] || (t[3] = (m) => r.firstResult = m),
|
|
@@ -4051,7 +4022,7 @@ function Go(e, t, n, a, s, r) {
|
|
|
4051
4022
|
onOnChange: r.changePage
|
|
4052
4023
|
}, null, 8, ["modelValue", "total", "onOnChange"]),
|
|
4053
4024
|
Ne("div", null, [
|
|
4054
|
-
Ne("span", null, " 共 " +
|
|
4025
|
+
Ne("span", null, " 共 " + dn(s.page.totalRows) + " 项当前页数据 ", 1)
|
|
4055
4026
|
])
|
|
4056
4027
|
]),
|
|
4057
4028
|
Ne("div", null, [
|
|
@@ -4060,7 +4031,7 @@ function Go(e, t, n, a, s, r) {
|
|
|
4060
4031
|
onClick: r.closeModal
|
|
4061
4032
|
}, {
|
|
4062
4033
|
default: ne(() => t[6] || (t[6] = [
|
|
4063
|
-
|
|
4034
|
+
At("关闭")
|
|
4064
4035
|
])),
|
|
4065
4036
|
_: 1
|
|
4066
4037
|
}, 8, ["onClick"]),
|
|
@@ -4069,19 +4040,19 @@ function Go(e, t, n, a, s, r) {
|
|
|
4069
4040
|
onClick: r.saveData
|
|
4070
4041
|
}, {
|
|
4071
4042
|
default: ne(() => t[7] || (t[7] = [
|
|
4072
|
-
|
|
4043
|
+
At("保存")
|
|
4073
4044
|
])),
|
|
4074
4045
|
_: 1
|
|
4075
4046
|
}, 8, ["onClick"])
|
|
4076
4047
|
])
|
|
4077
4048
|
])
|
|
4078
|
-
])) :
|
|
4049
|
+
])) : mn("", !0)
|
|
4079
4050
|
]),
|
|
4080
4051
|
_: 1
|
|
4081
4052
|
}, 8, ["modelValue", "onOnCancel"]);
|
|
4082
4053
|
}
|
|
4083
|
-
const
|
|
4084
|
-
function
|
|
4054
|
+
const Go = /* @__PURE__ */ wo(Fo, [["render", $o], ["__scopeId", "data-v-f6cb4a04"]]);
|
|
4055
|
+
function Bt(e) {
|
|
4085
4056
|
const t = [], n = /(?:\$t|_ctx\.\$t)\s*\(\s*(['"])([^'"]+?)\1/gs;
|
|
4086
4057
|
if (e.template) {
|
|
4087
4058
|
let a;
|
|
@@ -4110,11 +4081,11 @@ function jt(e) {
|
|
|
4110
4081
|
if (e.components)
|
|
4111
4082
|
for (const a in e.components) {
|
|
4112
4083
|
const s = e.components[a];
|
|
4113
|
-
t.push(...
|
|
4084
|
+
t.push(...Bt(s));
|
|
4114
4085
|
}
|
|
4115
4086
|
return [...new Set(t)];
|
|
4116
4087
|
}
|
|
4117
|
-
function
|
|
4088
|
+
function Ko(e) {
|
|
4118
4089
|
return { all: e = e || /* @__PURE__ */ new Map(), on: function(t, n) {
|
|
4119
4090
|
var a = e.get(t);
|
|
4120
4091
|
a ? a.push(n) : e.set(t, [n]);
|
|
@@ -4130,40 +4101,40 @@ function Yo(e) {
|
|
|
4130
4101
|
});
|
|
4131
4102
|
} };
|
|
4132
4103
|
}
|
|
4133
|
-
const
|
|
4104
|
+
const Pa = function() {
|
|
4134
4105
|
return document.ontouchstart !== null ? "click" : "touchstart";
|
|
4135
|
-
}, ot = "__vue_click_away__",
|
|
4136
|
-
|
|
4106
|
+
}, ot = "__vue_click_away__", Ra = function(e, t, n) {
|
|
4107
|
+
Ma(e);
|
|
4137
4108
|
let a = n.context, s = t.value, r = !1;
|
|
4138
4109
|
setTimeout(function() {
|
|
4139
4110
|
r = !0;
|
|
4140
4111
|
}, 0), e[ot] = function(o) {
|
|
4141
4112
|
if ((!e || !e.contains(o.target)) && s && r && typeof s == "function")
|
|
4142
4113
|
return s.call(a, o);
|
|
4143
|
-
}, document.addEventListener(
|
|
4144
|
-
},
|
|
4145
|
-
document.removeEventListener(
|
|
4146
|
-
},
|
|
4147
|
-
t.value !== t.oldValue &&
|
|
4148
|
-
},
|
|
4114
|
+
}, document.addEventListener(Pa(), e[ot], !1);
|
|
4115
|
+
}, Ma = function(e) {
|
|
4116
|
+
document.removeEventListener(Pa(), e[ot], !1), delete e[ot];
|
|
4117
|
+
}, Yo = function(e, t, n) {
|
|
4118
|
+
t.value !== t.oldValue && Ra(e, t, n);
|
|
4119
|
+
}, Ho = {
|
|
4149
4120
|
install: function(e) {
|
|
4150
|
-
e.directive("click-away",
|
|
4121
|
+
e.directive("click-away", Bo);
|
|
4151
4122
|
}
|
|
4152
|
-
},
|
|
4153
|
-
mounted:
|
|
4154
|
-
updated:
|
|
4155
|
-
unmounted:
|
|
4123
|
+
}, Bo = {
|
|
4124
|
+
mounted: Ra,
|
|
4125
|
+
updated: Yo,
|
|
4126
|
+
unmounted: Ma
|
|
4156
4127
|
};
|
|
4157
|
-
function
|
|
4128
|
+
function jo(e) {
|
|
4158
4129
|
const t = {
|
|
4159
4130
|
alg: "HS512"
|
|
4160
4131
|
// 算法
|
|
4161
4132
|
}, n = {
|
|
4162
4133
|
orgCode: e
|
|
4163
4134
|
}, a = JSON.stringify(t), s = JSON.stringify(n);
|
|
4164
|
-
return
|
|
4135
|
+
return Ja.JWS.sign("HS512", a, s, "");
|
|
4165
4136
|
}
|
|
4166
|
-
class
|
|
4137
|
+
class nl {
|
|
4167
4138
|
constructor(t = {}) {
|
|
4168
4139
|
const {
|
|
4169
4140
|
router: n,
|
|
@@ -4175,7 +4146,7 @@ class al {
|
|
|
4175
4146
|
login: u,
|
|
4176
4147
|
keyboard: _
|
|
4177
4148
|
} = t;
|
|
4178
|
-
this.token = r ||
|
|
4149
|
+
this.token = r || jo(o), this.loadI18n = !0, this.appCode = a, this.router = n, this.locale = pe.get("I18N_LANGUAGE") || navigator.language || "zh-CN", this.name = "", this.messages = s || {}, this.translationKeys = [], this.loginRouteName = l || "login", this.login = u, this.loginTranslationKeys = [], this.keyboard = _ || "shift>t", this.baseUrl = t.dev ? "https://test.ihotel.cn" : "https://trans.ihotel.cn", this.initRouterGuards(), this.initI18n(t), wa.bind(this.keyboard, (E) => {
|
|
4179
4150
|
!this.configInstance && this.name != this.loginRouteName && (this.configInstance = this.createModal(this.name), this.configInstance.openModal({ name: this.name }));
|
|
4180
4151
|
}), this.setupLanguageChangeListener();
|
|
4181
4152
|
}
|
|
@@ -4201,7 +4172,7 @@ class al {
|
|
|
4201
4172
|
console.error("加载异步组件时出错:", _), a();
|
|
4202
4173
|
return;
|
|
4203
4174
|
}
|
|
4204
|
-
const u =
|
|
4175
|
+
const u = Bt(l);
|
|
4205
4176
|
this.loginTranslationKeys = u;
|
|
4206
4177
|
}
|
|
4207
4178
|
if (t.matched.length > 0) {
|
|
@@ -4211,13 +4182,13 @@ class al {
|
|
|
4211
4182
|
if (typeof _ == "function" && _.toString().includes("import("))
|
|
4212
4183
|
try {
|
|
4213
4184
|
_ = await _(), _ = _.default;
|
|
4214
|
-
} catch (
|
|
4215
|
-
console.error("加载异步组件时出错:",
|
|
4185
|
+
} catch (E) {
|
|
4186
|
+
console.error("加载异步组件时出错:", E), a();
|
|
4216
4187
|
return;
|
|
4217
4188
|
}
|
|
4218
4189
|
if (_) {
|
|
4219
|
-
const
|
|
4220
|
-
l.push(...
|
|
4190
|
+
const E = Bt(_);
|
|
4191
|
+
l.push(...E);
|
|
4221
4192
|
}
|
|
4222
4193
|
}
|
|
4223
4194
|
this.translationKeys = l;
|
|
@@ -4227,7 +4198,7 @@ class al {
|
|
|
4227
4198
|
}
|
|
4228
4199
|
// 初始化 i18n 实例
|
|
4229
4200
|
initI18n(t) {
|
|
4230
|
-
this.i18n =
|
|
4201
|
+
this.i18n = No({
|
|
4231
4202
|
locale: this.locale,
|
|
4232
4203
|
globalInjection: !0,
|
|
4233
4204
|
legacy: !1,
|
|
@@ -4242,12 +4213,12 @@ class al {
|
|
|
4242
4213
|
var o, l, u;
|
|
4243
4214
|
const r = (u = (l = (o = this.router) == null ? void 0 : o.currentRoute) == null ? void 0 : l.value) == null ? void 0 : u.name;
|
|
4244
4215
|
if (r) {
|
|
4245
|
-
const _ = `${r}.${a}`,
|
|
4246
|
-
if (
|
|
4247
|
-
return
|
|
4216
|
+
const _ = `${r}.${a}`, E = n(_);
|
|
4217
|
+
if (E !== _)
|
|
4218
|
+
return E;
|
|
4248
4219
|
{
|
|
4249
|
-
const N = `common.${a}`,
|
|
4250
|
-
return
|
|
4220
|
+
const N = `common.${a}`, p = n(N);
|
|
4221
|
+
return p !== N ? p : n(a, s);
|
|
4251
4222
|
}
|
|
4252
4223
|
} else
|
|
4253
4224
|
return n(a, s);
|
|
@@ -4268,7 +4239,8 @@ class al {
|
|
|
4268
4239
|
if (n && !t)
|
|
4269
4240
|
return n;
|
|
4270
4241
|
{
|
|
4271
|
-
const a = await
|
|
4242
|
+
const a = await ka({
|
|
4243
|
+
baseUrl: this.baseUrl,
|
|
4272
4244
|
appCode: this.appCode,
|
|
4273
4245
|
token: this.token
|
|
4274
4246
|
});
|
|
@@ -4280,13 +4252,14 @@ class al {
|
|
|
4280
4252
|
}
|
|
4281
4253
|
async setLanguage(t) {
|
|
4282
4254
|
return new Promise(async (n, a) => {
|
|
4283
|
-
const s = await
|
|
4255
|
+
const s = await Mo({
|
|
4256
|
+
baseUrl: this.baseUrl,
|
|
4284
4257
|
appCode: this.appCode,
|
|
4285
4258
|
language: t || this.locale,
|
|
4286
4259
|
token: this.token
|
|
4287
4260
|
});
|
|
4288
4261
|
if (s) {
|
|
4289
|
-
const r =
|
|
4262
|
+
const r = Do(s), o = G.assign(
|
|
4290
4263
|
{},
|
|
4291
4264
|
G.get(this.messages, t),
|
|
4292
4265
|
r
|
|
@@ -4297,10 +4270,10 @@ class al {
|
|
|
4297
4270
|
});
|
|
4298
4271
|
}
|
|
4299
4272
|
createModal(t) {
|
|
4300
|
-
const n =
|
|
4273
|
+
const n = Ko();
|
|
4301
4274
|
return n.on("closeModal", (a) => {
|
|
4302
4275
|
this.configInstance = null;
|
|
4303
|
-
}),
|
|
4276
|
+
}), Xa(Go, {
|
|
4304
4277
|
appCode: this.appCode,
|
|
4305
4278
|
token: this.token,
|
|
4306
4279
|
setLanguage: this.setLanguage.bind(this, this.locale),
|
|
@@ -4310,16 +4283,18 @@ class al {
|
|
|
4310
4283
|
// 登录页路由名称
|
|
4311
4284
|
loginTranslationKeys: this.loginTranslationKeys,
|
|
4312
4285
|
login: this.login,
|
|
4286
|
+
baseUrl: this.baseUrl,
|
|
4287
|
+
// 基础URL
|
|
4313
4288
|
emitter: n
|
|
4314
4289
|
// 将事件总线作为 prop 传递
|
|
4315
|
-
}).use(
|
|
4290
|
+
}).use(fn).use(Ho).mount(document.createElement("div"));
|
|
4316
4291
|
}
|
|
4317
4292
|
install(t, n = {}) {
|
|
4318
|
-
t.use(
|
|
4293
|
+
t.use(fn, {
|
|
4319
4294
|
i18n: this.i18n
|
|
4320
4295
|
}), t.use(this.i18n);
|
|
4321
4296
|
}
|
|
4322
4297
|
}
|
|
4323
4298
|
export {
|
|
4324
|
-
|
|
4299
|
+
nl as default
|
|
4325
4300
|
};
|