gc_i18n 1.2.5 → 1.2.6
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 +348 -340
- package/lib/gc_i18n.umd.cjs +1 -1
- package/package.json +1 -1
- package/packages/components/config.vue +5 -0
- package/packages/index.js +3 -0
package/lib/gc_i18n.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import './gc_i18n.css';
|
|
2
|
-
import
|
|
2
|
+
import Ua from "keyboardjs";
|
|
3
3
|
import _n, { Message as et } from "view-ui-plus";
|
|
4
4
|
import "view-ui-plus/dist/styles/viewuiplus.css";
|
|
5
|
-
import { defineComponent as Xt, h as
|
|
5
|
+
import { defineComponent as Xt, h as Zn, getCurrentInstance as Ye, effectScope as Va, inject as Wa, onMounted as xa, onUnmounted as $a, Fragment as Jt, ref as Ga, shallowRef as Ka, computed as Ge, watch as Mt, isRef as Ya, createVNode as re, Text as Ha, resolveComponent as z, resolveDirective as Ba, createBlock as fe, openBlock as se, withCtx as ne, createElementBlock as mn, createCommentVNode as dn, createElementVNode as Ne, withDirectives as ja, createTextVNode as Ct, renderList as Xa, toDisplayString as gn, createApp as Ja } from "vue";
|
|
6
6
|
import G from "lodash-es";
|
|
7
7
|
import lt from "axios";
|
|
8
8
|
import pe from "store2";
|
|
@@ -13,11 +13,11 @@ import { jws as Qa } from "jsrsasign";
|
|
|
13
13
|
* Released under the MIT License.
|
|
14
14
|
*/
|
|
15
15
|
const ue = typeof window < "u";
|
|
16
|
-
let
|
|
16
|
+
let ae, Ae;
|
|
17
17
|
if (process.env.NODE_ENV !== "production") {
|
|
18
18
|
const e = ue && window.performance;
|
|
19
19
|
e && e.mark && e.measure && e.clearMarks && // @ts-ignore browser compat
|
|
20
|
-
e.clearMeasures && (
|
|
20
|
+
e.clearMeasures && (ae = (t) => {
|
|
21
21
|
e.mark(t);
|
|
22
22
|
}, Ae = (t, n, a) => {
|
|
23
23
|
e.measure(t, n, a), e.clearMarks(n), e.clearMarks(a);
|
|
@@ -27,28 +27,28 @@ const qa = /\{([0-9a-zA-Z]+)\}/g;
|
|
|
27
27
|
function it(e, ...t) {
|
|
28
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
|
|
31
|
-
let
|
|
32
|
-
const Se = () =>
|
|
33
|
-
function
|
|
30
|
+
const de = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Za = (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), es = (e) => Qt(e) === "[object Date]", Fe = (e) => Qt(e) === "[object RegExp]", ct = (e) => R(e) && Object.keys(e).length === 0, Q = Object.assign, ts = Object.create, W = (e = null) => ts(e);
|
|
31
|
+
let En;
|
|
32
|
+
const Se = () => En || (En = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : W());
|
|
33
|
+
function pn(e) {
|
|
34
34
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
35
35
|
}
|
|
36
36
|
const ns = Object.prototype.hasOwnProperty;
|
|
37
37
|
function ce(e, t) {
|
|
38
38
|
return ns.call(e, t);
|
|
39
39
|
}
|
|
40
|
-
const B = Array.isArray,
|
|
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", as = (e) => M(e) && x(e.then) && x(e.catch), zn = Object.prototype.toString, Qt = (e) => zn.call(e), R = (e) => Qt(e) === "[object Object]", ss = (e) => e == null ? "" : B(e) || R(e) && e.toString === zn ? JSON.stringify(e, null, 2) : String(e);
|
|
41
41
|
function qt(e, t = "") {
|
|
42
42
|
return e.reduce((n, a, s) => s === 0 ? n + a : n + t + a, "");
|
|
43
43
|
}
|
|
44
|
-
const
|
|
44
|
+
const hn = 2;
|
|
45
45
|
function rs(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 - hn; l <= o + hn || n > s; l++) {
|
|
52
52
|
if (l < 0 || l >= a.length)
|
|
53
53
|
continue;
|
|
54
54
|
const u = l + 1;
|
|
@@ -73,9 +73,9 @@ 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
|
|
76
|
+
const Nn = {};
|
|
77
77
|
function Zt(e) {
|
|
78
|
-
|
|
78
|
+
Nn[e] || (Nn[e] = !0, Le(e));
|
|
79
79
|
}
|
|
80
80
|
function zt() {
|
|
81
81
|
const e = /* @__PURE__ */ new Map();
|
|
@@ -206,7 +206,7 @@ function gs(e) {
|
|
|
206
206
|
skipToPeek: y
|
|
207
207
|
};
|
|
208
208
|
}
|
|
209
|
-
const Te = void 0, Es = ".",
|
|
209
|
+
const Te = void 0, Es = ".", Tn = "'", ps = "tokenizer";
|
|
210
210
|
function hs(e, t = {}) {
|
|
211
211
|
const n = t.location !== !1, a = gs(e), s = () => a.index(), r = () => os(a.line(), a.column(), a.index()), o = r(), l = s(), u = {
|
|
212
212
|
currentType: 13,
|
|
@@ -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() === Tn;
|
|
293
293
|
return i.resetPeek(), C;
|
|
294
294
|
}
|
|
295
295
|
function y(i, c) {
|
|
@@ -322,7 +322,7 @@ function hs(e, t = {}) {
|
|
|
322
322
|
return !1;
|
|
323
323
|
const C = () => {
|
|
324
324
|
const Y = i.currentPeek();
|
|
325
|
-
return Y === "{" ? f(i.peek()) : Y === "@" || Y === "|" || Y === ":" || Y === "." || Y === Ee || !Y ? !1 : Y === Z ? (i.peek(), C()) :
|
|
325
|
+
return Y === "{" ? f(i.peek()) : Y === "@" || Y === "|" || Y === ":" || Y === "." || Y === Ee || !Y ? !1 : Y === Z ? (i.peek(), C()) : ie(i, !1);
|
|
326
326
|
}, K = C();
|
|
327
327
|
return i.resetPeek(), K;
|
|
328
328
|
}
|
|
@@ -331,7 +331,7 @@ function hs(e, t = {}) {
|
|
|
331
331
|
const c = i.currentPeek() === "|";
|
|
332
332
|
return i.resetPeek(), c;
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function ie(i, c = !0) {
|
|
335
335
|
const T = (K = !1, Y = "") => {
|
|
336
336
|
const w = i.currentPeek();
|
|
337
337
|
return w === "{" || w === "@" || !w ? K : w === "|" ? !(Y === Ee || Y === Z) : w === Ee ? (i.peek(), T(!0, Ee)) : w === Z ? (i.peek(), T(!0, Z)) : !0;
|
|
@@ -378,7 +378,7 @@ function hs(e, t = {}) {
|
|
|
378
378
|
c >= 65 && c <= 70 || // A-F
|
|
379
379
|
c >= 97 && c <= 102;
|
|
380
380
|
}
|
|
381
|
-
function
|
|
381
|
+
function ge(i) {
|
|
382
382
|
return J(i, ht);
|
|
383
383
|
}
|
|
384
384
|
function Ve(i) {
|
|
@@ -394,7 +394,7 @@ function hs(e, t = {}) {
|
|
|
394
394
|
if (T === "{" || T === "}" || T === "@" || T === "|" || !T)
|
|
395
395
|
break;
|
|
396
396
|
if (T === Ee || T === Z)
|
|
397
|
-
if (
|
|
397
|
+
if (ie(i))
|
|
398
398
|
c += T, i.next();
|
|
399
399
|
else {
|
|
400
400
|
if (X(i))
|
|
@@ -419,7 +419,7 @@ function hs(e, t = {}) {
|
|
|
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
421
|
function bt(i) {
|
|
422
|
-
return i !==
|
|
422
|
+
return i !== Tn && i !== Z;
|
|
423
423
|
}
|
|
424
424
|
function un(i) {
|
|
425
425
|
A(i), D(i, "'");
|
|
@@ -447,7 +447,7 @@ function hs(e, t = {}) {
|
|
|
447
447
|
D(i, c);
|
|
448
448
|
let C = "";
|
|
449
449
|
for (let K = 0; K < T; K++) {
|
|
450
|
-
const Y =
|
|
450
|
+
const Y = ge(i);
|
|
451
451
|
if (!Y) {
|
|
452
452
|
N(k.INVALID_UNICODE_ESCAPE_SEQUENCE, r(), 0, `\\${c}${C}${i.currentChar()}`);
|
|
453
453
|
break;
|
|
@@ -488,7 +488,7 @@ function hs(e, t = {}) {
|
|
|
488
488
|
);
|
|
489
489
|
return A(i), c;
|
|
490
490
|
}
|
|
491
|
-
function
|
|
491
|
+
function xe(i, c) {
|
|
492
492
|
let T = null;
|
|
493
493
|
switch (i.currentChar()) {
|
|
494
494
|
case "{":
|
|
@@ -512,7 +512,7 @@ function hs(e, t = {}) {
|
|
|
512
512
|
if (X(i))
|
|
513
513
|
return c.braceNest > 0 && N(k.UNTERMINATED_CLOSING_BRACE, r(), 0), T = E(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
|
-
return N(k.UNTERMINATED_CLOSING_BRACE, r(), 0), c.braceNest = 0,
|
|
515
|
+
return N(k.UNTERMINATED_CLOSING_BRACE, r(), 0), c.braceNest = 0, $e(i, c);
|
|
516
516
|
if (K = b(i, c))
|
|
517
517
|
return T = E(c, 4, Tt(i)), A(i), T;
|
|
518
518
|
if (Y = m(i, c))
|
|
@@ -553,21 +553,21 @@ function hs(e, t = {}) {
|
|
|
553
553
|
/* TokenChars.LinkedDelimiter */
|
|
554
554
|
);
|
|
555
555
|
default:
|
|
556
|
-
return X(i) ? (C = E(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), E(c, 11, yt(i))) : U(i, c) ? (A(i), K === "{" ?
|
|
556
|
+
return X(i) ? (C = E(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), E(c, 11, yt(i))) : U(i, c) ? (A(i), K === "{" ? xe(i, c) || C : E(c, 10, St(i))) : (T === 7 && N(k.INVALID_LINKED_FORMAT, r(), 0), c.braceNest = 0, c.inLinked = !1, $e(i, c));
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
|
-
function
|
|
559
|
+
function $e(i, c) {
|
|
560
560
|
let T = {
|
|
561
561
|
type: 13
|
|
562
562
|
/* TokenTypes.EOF */
|
|
563
563
|
};
|
|
564
564
|
if (c.braceNest > 0)
|
|
565
|
-
return
|
|
565
|
+
return xe(i, c) || S(c);
|
|
566
566
|
if (c.inLinked)
|
|
567
567
|
return Ie(i, c) || S(c);
|
|
568
568
|
switch (i.currentChar()) {
|
|
569
569
|
case "{":
|
|
570
|
-
return
|
|
570
|
+
return xe(i, c) || S(c);
|
|
571
571
|
case "}":
|
|
572
572
|
return N(k.UNBALANCED_CLOSING_BRACE, r(), 0), i.next(), E(
|
|
573
573
|
c,
|
|
@@ -580,7 +580,7 @@ function hs(e, t = {}) {
|
|
|
580
580
|
default: {
|
|
581
581
|
if (X(i))
|
|
582
582
|
return T = E(c, 1, We(i)), c.braceNest = 0, c.inLinked = !1, T;
|
|
583
|
-
if (
|
|
583
|
+
if (ie(i))
|
|
584
584
|
return E(c, 0, Nt(i));
|
|
585
585
|
break;
|
|
586
586
|
}
|
|
@@ -593,7 +593,7 @@ function hs(e, t = {}) {
|
|
|
593
593
|
u,
|
|
594
594
|
13
|
|
595
595
|
/* TokenTypes.EOF */
|
|
596
|
-
) :
|
|
596
|
+
) : $e(a, u);
|
|
597
597
|
}
|
|
598
598
|
return {
|
|
599
599
|
nextToken: At,
|
|
@@ -656,7 +656,7 @@ function bs(e = {}) {
|
|
|
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,
|
|
658
658
|
node: y
|
|
659
|
-
}) : (g.value == null && a(f, k.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0,
|
|
659
|
+
}) : (g.value == null && a(f, k.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, _e(g)), y.value = g.value || "", r(y, f.currentOffset(), f.currentPosition()), {
|
|
660
660
|
node: y
|
|
661
661
|
});
|
|
662
662
|
}
|
|
@@ -671,18 +671,18 @@ function bs(e = {}) {
|
|
|
671
671
|
const O = p(f);
|
|
672
672
|
b.modifier = O.node, m = O.nextConsumeToken || f.nextToken();
|
|
673
673
|
}
|
|
674
|
-
switch (m.type !== 9 && a(f, k.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0,
|
|
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) {
|
|
675
675
|
case 10:
|
|
676
|
-
m.value == null && a(f, k.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0,
|
|
676
|
+
m.value == null && a(f, k.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, _e(m)), b.key = N(f, m.value || "");
|
|
677
677
|
break;
|
|
678
678
|
case 4:
|
|
679
|
-
m.value == null && a(f, k.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0,
|
|
679
|
+
m.value == null && a(f, k.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, _e(m)), b.key = u(f, m.value || "");
|
|
680
680
|
break;
|
|
681
681
|
case 5:
|
|
682
|
-
m.value == null && a(f, k.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0,
|
|
682
|
+
m.value == null && a(f, k.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, _e(m)), b.key = l(f, m.value || "");
|
|
683
683
|
break;
|
|
684
684
|
case 6:
|
|
685
|
-
m.value == null && a(f, k.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0,
|
|
685
|
+
m.value == null && a(f, k.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, _e(m)), b.key = _(f, m.value || "");
|
|
686
686
|
break;
|
|
687
687
|
default: {
|
|
688
688
|
a(f, k.UNEXPECTED_EMPTY_LINKED_KEY, g.lastStartLoc, 0);
|
|
@@ -705,16 +705,16 @@ function bs(e = {}) {
|
|
|
705
705
|
const U = y || f.nextToken();
|
|
706
706
|
switch (y = null, U.type) {
|
|
707
707
|
case 0:
|
|
708
|
-
U.value == null && a(f, k.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0,
|
|
708
|
+
U.value == null && a(f, k.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, _e(U)), O.items.push(o(f, U.value || ""));
|
|
709
709
|
break;
|
|
710
710
|
case 5:
|
|
711
|
-
U.value == null && a(f, k.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0,
|
|
711
|
+
U.value == null && a(f, k.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, _e(U)), O.items.push(l(f, U.value || ""));
|
|
712
712
|
break;
|
|
713
713
|
case 4:
|
|
714
|
-
U.value == null && a(f, k.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0,
|
|
714
|
+
U.value == null && a(f, k.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, _e(U)), O.items.push(u(f, U.value || ""));
|
|
715
715
|
break;
|
|
716
716
|
case 6:
|
|
717
|
-
U.value == null && a(f, k.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0,
|
|
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
720
|
const X = E(f);
|
|
@@ -747,7 +747,7 @@ function bs(e = {}) {
|
|
|
747
747
|
}
|
|
748
748
|
return { parse: A };
|
|
749
749
|
}
|
|
750
|
-
function
|
|
750
|
+
function _e(e) {
|
|
751
751
|
if (e.type === 13)
|
|
752
752
|
return "EOF";
|
|
753
753
|
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
@@ -760,20 +760,20 @@ function Os(e, t = {}) {
|
|
|
760
760
|
};
|
|
761
761
|
return { context: () => n, helper: (r) => (n.helpers.add(r), r) };
|
|
762
762
|
}
|
|
763
|
-
function
|
|
763
|
+
function Ln(e, t) {
|
|
764
764
|
for (let n = 0; n < e.length; n++)
|
|
765
765
|
en(e[n], t);
|
|
766
766
|
}
|
|
767
767
|
function en(e, t) {
|
|
768
768
|
switch (e.type) {
|
|
769
769
|
case 1:
|
|
770
|
-
|
|
770
|
+
Ln(e.cases, t), t.helper(
|
|
771
771
|
"plural"
|
|
772
772
|
/* HelperNameMap.PLURAL */
|
|
773
773
|
);
|
|
774
774
|
break;
|
|
775
775
|
case 2:
|
|
776
|
-
|
|
776
|
+
Ln(e.items, t);
|
|
777
777
|
break;
|
|
778
778
|
case 6: {
|
|
779
779
|
en(e.key, t), t.helper(
|
|
@@ -816,9 +816,9 @@ function Is(e, t = {}) {
|
|
|
816
816
|
}
|
|
817
817
|
function vs(e) {
|
|
818
818
|
const t = e.body;
|
|
819
|
-
return t.type === 2 ?
|
|
819
|
+
return t.type === 2 ? bn(t) : t.cases.forEach((n) => bn(n)), e;
|
|
820
820
|
}
|
|
821
|
-
function
|
|
821
|
+
function bn(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);
|
|
@@ -1053,43 +1053,43 @@ function Ms(e, t = {}) {
|
|
|
1053
1053
|
function Fs() {
|
|
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
|
-
function
|
|
1056
|
+
function le(e) {
|
|
1057
1057
|
return M(e) && tn(e) === 0 && (ce(e, "b") || ce(e, "body"));
|
|
1058
1058
|
}
|
|
1059
|
-
const
|
|
1059
|
+
const ea = ["b", "body"];
|
|
1060
1060
|
function ws(e) {
|
|
1061
|
-
return be(e,
|
|
1061
|
+
return be(e, ea);
|
|
1062
1062
|
}
|
|
1063
|
-
const
|
|
1063
|
+
const ta = ["c", "cases"];
|
|
1064
1064
|
function Us(e) {
|
|
1065
|
-
return be(e,
|
|
1065
|
+
return be(e, ta, []);
|
|
1066
1066
|
}
|
|
1067
|
-
const
|
|
1067
|
+
const na = ["s", "static"];
|
|
1068
1068
|
function Vs(e) {
|
|
1069
|
-
return be(e,
|
|
1069
|
+
return be(e, na);
|
|
1070
1070
|
}
|
|
1071
|
-
const
|
|
1071
|
+
const aa = ["i", "items"];
|
|
1072
1072
|
function Ws(e) {
|
|
1073
|
-
return be(e,
|
|
1073
|
+
return be(e, aa, []);
|
|
1074
1074
|
}
|
|
1075
|
-
const
|
|
1075
|
+
const sa = ["t", "type"];
|
|
1076
1076
|
function tn(e) {
|
|
1077
|
-
return be(e,
|
|
1077
|
+
return be(e, sa);
|
|
1078
1078
|
}
|
|
1079
|
-
const
|
|
1079
|
+
const ra = ["v", "value"];
|
|
1080
1080
|
function nt(e, t) {
|
|
1081
|
-
const n = be(e,
|
|
1081
|
+
const n = be(e, ra);
|
|
1082
1082
|
if (n != null)
|
|
1083
1083
|
return n;
|
|
1084
1084
|
throw He(t);
|
|
1085
1085
|
}
|
|
1086
|
-
const
|
|
1087
|
-
function $s(e) {
|
|
1088
|
-
return be(e, ra);
|
|
1089
|
-
}
|
|
1090
|
-
const oa = ["k", "key"];
|
|
1086
|
+
const oa = ["m", "modifier"];
|
|
1091
1087
|
function xs(e) {
|
|
1092
|
-
|
|
1088
|
+
return be(e, oa);
|
|
1089
|
+
}
|
|
1090
|
+
const la = ["k", "key"];
|
|
1091
|
+
function $s(e) {
|
|
1092
|
+
const t = be(e, la);
|
|
1093
1093
|
if (t)
|
|
1094
1094
|
return t;
|
|
1095
1095
|
throw He(
|
|
@@ -1105,15 +1105,15 @@ function be(e, t, n) {
|
|
|
1105
1105
|
}
|
|
1106
1106
|
return n;
|
|
1107
1107
|
}
|
|
1108
|
-
const
|
|
1109
|
-
...zn,
|
|
1108
|
+
const ia = [
|
|
1110
1109
|
...ea,
|
|
1111
1110
|
...ta,
|
|
1112
1111
|
...na,
|
|
1112
|
+
...aa,
|
|
1113
|
+
...la,
|
|
1113
1114
|
...oa,
|
|
1114
1115
|
...ra,
|
|
1115
|
-
...sa
|
|
1116
|
-
...aa
|
|
1116
|
+
...sa
|
|
1117
1117
|
];
|
|
1118
1118
|
function He(e) {
|
|
1119
1119
|
return new Error(`unhandled node type: ${e}`);
|
|
@@ -1132,12 +1132,12 @@ function Gs(e, t) {
|
|
|
1132
1132
|
const r = Us(n);
|
|
1133
1133
|
return e.plural(r.reduce((o, l) => [
|
|
1134
1134
|
...o,
|
|
1135
|
-
|
|
1135
|
+
On(e, l)
|
|
1136
1136
|
], []));
|
|
1137
1137
|
} else
|
|
1138
|
-
return
|
|
1138
|
+
return On(e, n);
|
|
1139
1139
|
}
|
|
1140
|
-
function
|
|
1140
|
+
function On(e, t) {
|
|
1141
1141
|
const n = Vs(t);
|
|
1142
1142
|
if (n != null)
|
|
1143
1143
|
return e.type === "text" ? n : e.normalize([n]);
|
|
@@ -1170,7 +1170,7 @@ function wt(e, t) {
|
|
|
1170
1170
|
throw He(n);
|
|
1171
1171
|
}
|
|
1172
1172
|
case 6: {
|
|
1173
|
-
const a = t, s =
|
|
1173
|
+
const a = t, s = xs(a), r = $s(a);
|
|
1174
1174
|
return e.linked(wt(e, r), s ? wt(e, s) : void 0, e.type);
|
|
1175
1175
|
}
|
|
1176
1176
|
case 7:
|
|
@@ -1209,7 +1209,7 @@ function js(e, t) {
|
|
|
1209
1209
|
}), u = Dt(o);
|
|
1210
1210
|
return l ? u : at[s] = u;
|
|
1211
1211
|
} else {
|
|
1212
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
1212
|
+
if (process.env.NODE_ENV !== "production" && !le(e))
|
|
1213
1213
|
return Le(`the message that is resolve with key '${t.key}' is not supported for jit compilation`), () => e;
|
|
1214
1214
|
const n = e.cacheKey;
|
|
1215
1215
|
if (n) {
|
|
@@ -1258,13 +1258,13 @@ const zs = {
|
|
|
1258
1258
|
[q.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
|
|
1259
1259
|
};
|
|
1260
1260
|
function nn(e, t) {
|
|
1261
|
-
return t.locale != null ?
|
|
1261
|
+
return t.locale != null ? In(t.locale) : In(e.locale);
|
|
1262
1262
|
}
|
|
1263
1263
|
let kt;
|
|
1264
|
-
function
|
|
1264
|
+
function In(e) {
|
|
1265
1265
|
if (I(e))
|
|
1266
1266
|
return e;
|
|
1267
|
-
if (
|
|
1267
|
+
if (x(e)) {
|
|
1268
1268
|
if (e.resolvedOnce && kt != null)
|
|
1269
1269
|
return kt;
|
|
1270
1270
|
if (e.constructor.name === "Function") {
|
|
@@ -1283,7 +1283,7 @@ function er(e, t, n) {
|
|
|
1283
1283
|
...B(t) ? t : M(t) ? Object.keys(t) : I(t) ? [t] : [n]
|
|
1284
1284
|
])];
|
|
1285
1285
|
}
|
|
1286
|
-
function
|
|
1286
|
+
function ca(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,13 +1291,13 @@ function ia(e, t, n) {
|
|
|
1291
1291
|
r = [];
|
|
1292
1292
|
let o = [n];
|
|
1293
1293
|
for (; B(o); )
|
|
1294
|
-
o =
|
|
1294
|
+
o = vn(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) && vn(r, o, !1), s.__localeChainCache.set(a, r);
|
|
1297
1297
|
}
|
|
1298
1298
|
return r;
|
|
1299
1299
|
}
|
|
1300
|
-
function
|
|
1300
|
+
function vn(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];
|
|
@@ -1589,24 +1589,24 @@ function ir(e) {
|
|
|
1589
1589
|
return t;
|
|
1590
1590
|
}
|
|
1591
1591
|
}
|
|
1592
|
-
const
|
|
1592
|
+
const yn = /* @__PURE__ */ new Map();
|
|
1593
1593
|
function cr(e, t) {
|
|
1594
1594
|
return M(e) ? e[t] : null;
|
|
1595
1595
|
}
|
|
1596
1596
|
function ur(e, t) {
|
|
1597
1597
|
if (!M(e))
|
|
1598
1598
|
return null;
|
|
1599
|
-
let n =
|
|
1600
|
-
if (n || (n = ir(t), n &&
|
|
1599
|
+
let n = yn.get(t);
|
|
1600
|
+
if (n || (n = ir(t), n && yn.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 (ia.includes(o) && le(s))
|
|
1607
1607
|
return null;
|
|
1608
1608
|
const l = s[o];
|
|
1609
|
-
if (l === void 0 ||
|
|
1609
|
+
if (l === void 0 || x(s))
|
|
1610
1610
|
return null;
|
|
1611
1611
|
s = l, r++;
|
|
1612
1612
|
}
|
|
@@ -1632,43 +1632,43 @@ const ee = {
|
|
|
1632
1632
|
function Ce(e, ...t) {
|
|
1633
1633
|
return it(_r[e], ...t);
|
|
1634
1634
|
}
|
|
1635
|
-
const mr = "11.1.3", ut = -1, je = "en-US", rt = "",
|
|
1635
|
+
const mr = "11.1.3", ut = -1, je = "en-US", rt = "", Sn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1636
1636
|
function dr() {
|
|
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) ? Sn(e) : t === "vnode" && M(e) && "__v_isVNode" in e ? Sn(e.children) : e
|
|
1641
1641
|
};
|
|
1642
1642
|
}
|
|
1643
|
-
let ca;
|
|
1644
|
-
function gr(e) {
|
|
1645
|
-
ca = e;
|
|
1646
|
-
}
|
|
1647
1643
|
let ua;
|
|
1648
|
-
function
|
|
1644
|
+
function gr(e) {
|
|
1649
1645
|
ua = e;
|
|
1650
1646
|
}
|
|
1651
1647
|
let fa;
|
|
1652
|
-
function
|
|
1648
|
+
function Er(e) {
|
|
1653
1649
|
fa = e;
|
|
1654
1650
|
}
|
|
1655
|
-
let _a
|
|
1656
|
-
|
|
1651
|
+
let _a;
|
|
1652
|
+
function pr(e) {
|
|
1657
1653
|
_a = e;
|
|
1658
|
-
}
|
|
1654
|
+
}
|
|
1659
1655
|
let ma = null;
|
|
1660
|
-
const
|
|
1656
|
+
const hr = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
1661
1657
|
ma = e;
|
|
1662
|
-
},
|
|
1663
|
-
let
|
|
1658
|
+
}, Nr = /* @__NO_SIDE_EFFECTS__ */ () => ma;
|
|
1659
|
+
let da = null;
|
|
1660
|
+
const An = (e) => {
|
|
1661
|
+
da = e;
|
|
1662
|
+
}, Tr = () => da;
|
|
1663
|
+
let Cn = 0;
|
|
1664
1664
|
function Lr(e = {}) {
|
|
1665
|
-
const t =
|
|
1666
|
-
process.env.NODE_ENV !== "production" &&
|
|
1667
|
-
const O =
|
|
1668
|
-
|
|
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++;
|
|
1669
1669
|
const J = {
|
|
1670
1670
|
version: n,
|
|
1671
|
-
cid:
|
|
1671
|
+
cid: Cn,
|
|
1672
1672
|
locale: a,
|
|
1673
1673
|
fallbackLocale: r,
|
|
1674
1674
|
messages: o,
|
|
@@ -1688,15 +1688,15 @@ function Lr(e = {}) {
|
|
|
1688
1688
|
localeFallbacker: y,
|
|
1689
1689
|
fallbackContext: h,
|
|
1690
1690
|
onWarn: t,
|
|
1691
|
-
__meta:
|
|
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__) && Js(J, n,
|
|
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__) && Js(J, n, ie), J;
|
|
1694
1694
|
}
|
|
1695
1695
|
const Pt = (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 ga(e, t) {
|
|
1700
1700
|
return e instanceof RegExp ? e.test(t) : e;
|
|
1701
1701
|
}
|
|
1702
1702
|
function an(e, t, n, a, s) {
|
|
@@ -1714,13 +1714,13 @@ 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" && ga(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 Ea(e, t) {
|
|
1724
1724
|
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
1725
1725
|
}
|
|
1726
1726
|
function br(e, t) {
|
|
@@ -1728,17 +1728,17 @@ function br(e, t) {
|
|
|
1728
1728
|
if (n === -1)
|
|
1729
1729
|
return !1;
|
|
1730
1730
|
for (let a = n + 1; a < t.length; a++)
|
|
1731
|
-
if (
|
|
1731
|
+
if (Ea(e, t[a]))
|
|
1732
1732
|
return !0;
|
|
1733
1733
|
return !1;
|
|
1734
1734
|
}
|
|
1735
|
-
const
|
|
1736
|
-
dateTimeFormat:
|
|
1737
|
-
numberFormat:
|
|
1735
|
+
const Dn = typeof Intl < "u", pa = {
|
|
1736
|
+
dateTimeFormat: Dn && typeof Intl.DateTimeFormat < "u",
|
|
1737
|
+
numberFormat: Dn && typeof Intl.NumberFormat < "u"
|
|
1738
1738
|
};
|
|
1739
|
-
function
|
|
1739
|
+
function kn(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" && !pa.dateTimeFormat)
|
|
1742
1742
|
return r(Ce(ee.CANNOT_FORMAT_DATE)), rt;
|
|
1743
1743
|
const [u, _, p, N] = Ut(...t), E = F(p.missingWarn) ? p.missingWarn : e.missingWarn, S = F(p.fallbackWarn) ? p.fallbackWarn : e.fallbackWarn, D = !!p.part, v = nn(e, p), A = o(
|
|
1744
1744
|
e,
|
|
@@ -1775,7 +1775,7 @@ function Dn(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 ha = [
|
|
1779
1779
|
"localeMatcher",
|
|
1780
1780
|
"weekday",
|
|
1781
1781
|
"era",
|
|
@@ -1820,19 +1820,19 @@ 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
|
+
ha.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 Pn(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 Rn(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" && !pa.numberFormat)
|
|
1836
1836
|
return r(Ce(ee.CANNOT_FORMAT_NUMBER)), rt;
|
|
1837
1837
|
const [u, _, p, N] = Vt(...t), E = F(p.missingWarn) ? p.missingWarn : e.missingWarn, S = F(p.fallbackWarn) ? p.fallbackWarn : e.fallbackWarn, D = !!p.part, v = nn(e, p), A = o(
|
|
1838
1838
|
e,
|
|
@@ -1869,7 +1869,7 @@ function Pn(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 Na = [
|
|
1873
1873
|
"localeMatcher",
|
|
1874
1874
|
"style",
|
|
1875
1875
|
"currency",
|
|
@@ -1898,10 +1898,10 @@ function Vt(...e) {
|
|
|
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
|
+
Na.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 Mn(e, t, n) {
|
|
1905
1905
|
const a = e;
|
|
1906
1906
|
for (const s in n) {
|
|
1907
1907
|
const r = `${t}__${s}`;
|
|
@@ -1909,7 +1909,7 @@ function Rn(e, t, n) {
|
|
|
1909
1909
|
}
|
|
1910
1910
|
}
|
|
1911
1911
|
const Or = (e) => e, Ir = (e) => "", vr = "text", yr = (e) => e.length === 0 ? "" : qt(e), Sr = ss;
|
|
1912
|
-
function
|
|
1912
|
+
function Fn(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
1915
|
function Ar(e) {
|
|
@@ -1920,14 +1920,14 @@ function Cr(e, t) {
|
|
|
1920
1920
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
1921
1921
|
}
|
|
1922
1922
|
function Dr(e = {}) {
|
|
1923
|
-
const t = e.locale, n = Ar(e), a = M(e.pluralRules) && I(t) &&
|
|
1923
|
+
const t = e.locale, n = Ar(e), a = M(e.pluralRules) && I(t) && x(e.pluralRules[t]) ? e.pluralRules[t] : Fn, s = M(e.pluralRules) && I(t) && x(e.pluralRules[t]) ? Fn : void 0, r = (f) => f[a(n, f.length, s)], o = e.list || [], l = (f) => o[f], u = e.named || W();
|
|
1924
1924
|
j(e.pluralIndex) && Cr(n, u);
|
|
1925
1925
|
const _ = (f) => u[f];
|
|
1926
1926
|
function p(f, g) {
|
|
1927
|
-
const b =
|
|
1927
|
+
const b = x(e.messages) ? e.messages(f, !!g) : M(e.messages) ? e.messages[f] : !1;
|
|
1928
1928
|
return b || (e.parent ? e.parent.message(f) : Ir);
|
|
1929
1929
|
}
|
|
1930
|
-
const N = (f) => e.modifiers ? e.modifiers[f] : Or, E = R(e.processor) &&
|
|
1930
|
+
const N = (f) => e.modifiers ? e.modifiers[f] : Or, E = R(e.processor) && x(e.processor.normalize) ? e.processor.normalize : yr, S = R(e.processor) && x(e.processor.interpolate) ? e.processor.interpolate : Sr, D = R(e.processor) && I(e.processor.type) ? e.processor.type : vr, A = {
|
|
1931
1931
|
list: l,
|
|
1932
1932
|
named: _,
|
|
1933
1933
|
plural: r,
|
|
@@ -1949,32 +1949,32 @@ function Dr(e = {}) {
|
|
|
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, _] = Wt(...t), p = F(_.missingWarn) ? _.missingWarn : e.missingWarn, N = F(_.fallbackWarn) ? _.fallbackWarn : e.fallbackWarn, E = 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) ||
|
|
1952
|
+
const wn = () => "", oe = (e) => x(e);
|
|
1953
|
+
function Un(e, ...t) {
|
|
1954
|
+
const { fallbackFormat: n, postTranslation: a, unresolving: s, messageCompiler: r, fallbackLocale: o, messages: l } = e, [u, _] = Wt(...t), p = F(_.missingWarn) ? _.missingWarn : e.missingWarn, N = F(_.fallbackWarn) ? _.fallbackWarn : e.fallbackWarn, E = 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 = nn(e, _);
|
|
1955
1955
|
E && kr(_);
|
|
1956
1956
|
let [f, g, b] = S ? [
|
|
1957
1957
|
u,
|
|
1958
1958
|
A,
|
|
1959
1959
|
l[A] || W()
|
|
1960
|
-
] :
|
|
1961
|
-
if (!S && !(I(m) ||
|
|
1960
|
+
] : Ta(e, u, A, o, N, p), m = f, O = u;
|
|
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)
|
|
1964
1964
|
return Le(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${u}'.`), u;
|
|
1965
1965
|
let y = !1;
|
|
1966
1966
|
const h = () => {
|
|
1967
1967
|
y = !0;
|
|
1968
|
-
}, P =
|
|
1968
|
+
}, P = oe(m) ? m : La(e, u, g, m, O, h);
|
|
1969
1969
|
if (y)
|
|
1970
1970
|
return m;
|
|
1971
|
-
const U = Fr(e, g, b, _), X = Dr(U),
|
|
1971
|
+
const U = Fr(e, g, b, _), X = Dr(U), ie = Pr(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(),
|
|
1975
|
-
key: I(u) ? u :
|
|
1976
|
-
locale: g || (
|
|
1977
|
-
format: I(m) ? m :
|
|
1975
|
+
key: I(u) ? u : oe(m) ? m.key : "",
|
|
1976
|
+
locale: g || (oe(m) ? m.locale : ""),
|
|
1977
|
+
format: I(m) ? m : oe(m) ? m.source : "",
|
|
1978
1978
|
message: J
|
|
1979
1979
|
};
|
|
1980
1980
|
ke.meta = Q({}, e.__meta, /* @__PURE__ */ Nr() || {}), Qs(ke);
|
|
@@ -1982,16 +1982,16 @@ function wn(e, ...t) {
|
|
|
1982
1982
|
return J;
|
|
1983
1983
|
}
|
|
1984
1984
|
function kr(e) {
|
|
1985
|
-
B(e.list) ? e.list = e.list.map((t) => I(t) ?
|
|
1986
|
-
I(e.named[t]) && (e.named[t] =
|
|
1985
|
+
B(e.list) ? e.list = e.list.map((t) => I(t) ? pn(t) : t) : M(e.named) && Object.keys(e.named).forEach((t) => {
|
|
1986
|
+
I(e.named[t]) && (e.named[t] = pn(e.named[t]));
|
|
1987
1987
|
});
|
|
1988
1988
|
}
|
|
1989
|
-
function
|
|
1989
|
+
function Ta(e, t, n, a, s, r) {
|
|
1990
1990
|
const { messages: o, onWarn: l, messageResolver: u, localeFallbacker: _ } = e, p = _(e, a, n);
|
|
1991
1991
|
let N = W(), E, S = null, D = n, v = null;
|
|
1992
1992
|
const A = "translate";
|
|
1993
1993
|
for (let f = 0; f < p.length; f++) {
|
|
1994
|
-
if (E = v = p[f], process.env.NODE_ENV !== "production" && n !== E && !
|
|
1994
|
+
if (E = v = p[f], process.env.NODE_ENV !== "production" && n !== E && !Ea(n, E) && ft(s, t) && l(Ce(ee.FALLBACK_TO_TRANSLATE, {
|
|
1995
1995
|
key: t,
|
|
1996
1996
|
target: E
|
|
1997
1997
|
})), process.env.NODE_ENV !== "production" && n !== E) {
|
|
@@ -2006,7 +2006,7 @@ function Na(e, t, n, a, s, r) {
|
|
|
2006
2006
|
}
|
|
2007
2007
|
N = o[E] || W();
|
|
2008
2008
|
let g = null, b, m;
|
|
2009
|
-
if (process.env.NODE_ENV !== "production" && ue && (g = window.performance.now(), b = "intlify-message-resolve-start", m = "intlify-message-resolve-end",
|
|
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;
|
|
2011
2011
|
y && g && S && y.emit("message-resolve", {
|
|
2012
2012
|
type: "message-resolve",
|
|
@@ -2014,9 +2014,9 @@ function Na(e, t, n, a, s, r) {
|
|
|
2014
2014
|
message: S,
|
|
2015
2015
|
time: O - g,
|
|
2016
2016
|
groupId: `${A}:${t}`
|
|
2017
|
-
}), b && m &&
|
|
2017
|
+
}), b && m && ae && Ae && (ae(m), Ae("intlify message resolve", b, m));
|
|
2018
2018
|
}
|
|
2019
|
-
if (I(S) ||
|
|
2019
|
+
if (I(S) || le(S) || oe(S))
|
|
2020
2020
|
break;
|
|
2021
2021
|
if (!br(E, p)) {
|
|
2022
2022
|
const O = an(
|
|
@@ -2033,9 +2033,9 @@ function Na(e, t, n, a, s, r) {
|
|
|
2033
2033
|
}
|
|
2034
2034
|
return [S, E, N];
|
|
2035
2035
|
}
|
|
2036
|
-
function
|
|
2036
|
+
function La(e, t, n, a, s, r) {
|
|
2037
2037
|
const { messageCompiler: o, warnHtmlMessage: l } = e;
|
|
2038
|
-
if (
|
|
2038
|
+
if (oe(a)) {
|
|
2039
2039
|
const E = a;
|
|
2040
2040
|
return E.locale = E.locale || n, E.key = E.key || t, E;
|
|
2041
2041
|
}
|
|
@@ -2044,7 +2044,7 @@ function Ta(e, t, n, a, s, r) {
|
|
|
2044
2044
|
return E.locale = n, E.key = t, E;
|
|
2045
2045
|
}
|
|
2046
2046
|
let u = null, _, p;
|
|
2047
|
-
process.env.NODE_ENV !== "production" && ue && (u = window.performance.now(), _ = "intlify-message-compilation-start", p = "intlify-message-compilation-end",
|
|
2047
|
+
process.env.NODE_ENV !== "production" && ue && (u = window.performance.now(), _ = "intlify-message-compilation-start", p = "intlify-message-compilation-end", ae && ae(_));
|
|
2048
2048
|
const N = o(a, Rr(e, n, s, a, l, r));
|
|
2049
2049
|
if (process.env.NODE_ENV !== "production" && ue) {
|
|
2050
2050
|
const E = window.performance.now(), S = e.__v_emitter;
|
|
@@ -2053,13 +2053,13 @@ function Ta(e, t, n, a, s, r) {
|
|
|
2053
2053
|
message: a,
|
|
2054
2054
|
time: E - u,
|
|
2055
2055
|
groupId: `translate:${t}`
|
|
2056
|
-
}), _ && p &&
|
|
2056
|
+
}), _ && p && ae && Ae && (ae(p), Ae("intlify message compilation", _, p));
|
|
2057
2057
|
}
|
|
2058
2058
|
return N.locale = n, N.key = t, N.source = a, N;
|
|
2059
2059
|
}
|
|
2060
2060
|
function Pr(e, t, n) {
|
|
2061
2061
|
let a = null, s, r;
|
|
2062
|
-
process.env.NODE_ENV !== "production" && ue && (a = window.performance.now(), s = "intlify-message-evaluation-start", r = "intlify-message-evaluation-end",
|
|
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);
|
|
2064
2064
|
if (process.env.NODE_ENV !== "production" && ue) {
|
|
2065
2065
|
const l = window.performance.now(), u = e.__v_emitter;
|
|
@@ -2068,15 +2068,15 @@ function Pr(e, t, n) {
|
|
|
2068
2068
|
value: o,
|
|
2069
2069
|
time: l - a,
|
|
2070
2070
|
groupId: `translate:${t.key}`
|
|
2071
|
-
}), s && r &&
|
|
2071
|
+
}), s && r && ae && Ae && (ae(r), Ae("intlify message evaluation", s, r));
|
|
2072
2072
|
}
|
|
2073
2073
|
return o;
|
|
2074
2074
|
}
|
|
2075
2075
|
function Wt(...e) {
|
|
2076
2076
|
const [t, n, a] = e, s = W();
|
|
2077
|
-
if (!I(t) && !j(t) && !
|
|
2077
|
+
if (!I(t) && !j(t) && !oe(t) && !le(t))
|
|
2078
2078
|
throw he(q.INVALID_ARGUMENT);
|
|
2079
|
-
const r = j(t) ? String(t) : (
|
|
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
2082
|
function Rr(e, t, n, a, s, r) {
|
|
@@ -2115,7 +2115,7 @@ function Fr(e, t, n, a) {
|
|
|
2115
2115
|
messages: (S, D) => {
|
|
2116
2116
|
let v = o(n, S);
|
|
2117
2117
|
if (v == null && (p || D)) {
|
|
2118
|
-
const [, , A] =
|
|
2118
|
+
const [, , A] = Ta(
|
|
2119
2119
|
p || e,
|
|
2120
2120
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
2121
2121
|
S,
|
|
@@ -2126,32 +2126,32 @@ function Fr(e, t, n, a) {
|
|
|
2126
2126
|
);
|
|
2127
2127
|
v = o(A, S);
|
|
2128
2128
|
}
|
|
2129
|
-
if (I(v) ||
|
|
2129
|
+
if (I(v) || le(v)) {
|
|
2130
2130
|
let A = !1;
|
|
2131
|
-
const g =
|
|
2131
|
+
const g = La(e, S, t, v, S, () => {
|
|
2132
2132
|
A = !0;
|
|
2133
2133
|
});
|
|
2134
|
-
return A ?
|
|
2135
|
-
} else return
|
|
2134
|
+
return A ? wn : g;
|
|
2135
|
+
} else return oe(v) ? v : wn;
|
|
2136
2136
|
}
|
|
2137
2137
|
};
|
|
2138
2138
|
return e.processor && (E.processor = e.processor), a.list && (E.list = a.list), a.named && (E.named = a.named), j(a.plural) && (E.pluralIndex = a.plural), E;
|
|
2139
2139
|
}
|
|
2140
2140
|
Fs();
|
|
2141
2141
|
function wr() {
|
|
2142
|
-
return
|
|
2142
|
+
return ba().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
2143
2143
|
}
|
|
2144
|
-
function
|
|
2144
|
+
function ba() {
|
|
2145
2145
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
2146
2146
|
}
|
|
2147
2147
|
const Ur = typeof Proxy == "function", Vr = "devtools-plugin:setup", Wr = "plugin:settings:set";
|
|
2148
|
-
let Re,
|
|
2149
|
-
function
|
|
2148
|
+
let Re, xt;
|
|
2149
|
+
function xr() {
|
|
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, xt = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (Re = !0, xt = globalThis.perf_hooks.performance) : Re = !1), Re;
|
|
2152
2152
|
}
|
|
2153
|
-
function
|
|
2154
|
-
return
|
|
2153
|
+
function $r() {
|
|
2154
|
+
return xr() ? xt.now() : Date.now();
|
|
2155
2155
|
}
|
|
2156
2156
|
class Gr {
|
|
2157
2157
|
constructor(t, n) {
|
|
@@ -2181,7 +2181,7 @@ class Gr {
|
|
|
2181
2181
|
r = o;
|
|
2182
2182
|
},
|
|
2183
2183
|
now() {
|
|
2184
|
-
return
|
|
2184
|
+
return $r();
|
|
2185
2185
|
}
|
|
2186
2186
|
}, n && n.on(Wr, (o, l) => {
|
|
2187
2187
|
o === this.plugin.id && this.fallbacks.setSettings(l);
|
|
@@ -2216,7 +2216,7 @@ class Gr {
|
|
|
2216
2216
|
}
|
|
2217
2217
|
}
|
|
2218
2218
|
function Kr(e, t) {
|
|
2219
|
-
const n = e, a =
|
|
2219
|
+
const n = e, a = ba(), s = wr(), r = Ur && n.enableEarlyProxy;
|
|
2220
2220
|
if (s && (a.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !r))
|
|
2221
2221
|
s.emit(Vr, e, t);
|
|
2222
2222
|
else {
|
|
@@ -2237,7 +2237,7 @@ const Yr = "11.1.3";
|
|
|
2237
2237
|
function Hr() {
|
|
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
|
-
const
|
|
2240
|
+
const $ = {
|
|
2241
2241
|
// composer module errors
|
|
2242
2242
|
UNEXPECTED_RETURN_TYPE: Zs,
|
|
2243
2243
|
// 24
|
|
@@ -2263,18 +2263,18 @@ function te(e, ...t) {
|
|
|
2263
2263
|
return Ue(e, null, process.env.NODE_ENV !== "production" ? { messages: Br, args: t } : void 0);
|
|
2264
2264
|
}
|
|
2265
2265
|
const Br = {
|
|
2266
|
-
[
|
|
2267
|
-
[
|
|
2268
|
-
[
|
|
2269
|
-
[
|
|
2270
|
-
[
|
|
2271
|
-
[
|
|
2272
|
-
[
|
|
2273
|
-
[
|
|
2274
|
-
[
|
|
2275
|
-
[
|
|
2276
|
-
[
|
|
2277
|
-
},
|
|
2266
|
+
[$.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
|
2267
|
+
[$.INVALID_ARGUMENT]: "Invalid argument",
|
|
2268
|
+
[$.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
|
|
2269
|
+
[$.NOT_INSTALLED]: "Need to install with `app.use` function",
|
|
2270
|
+
[$.UNEXPECTED_ERROR]: "Unexpected error",
|
|
2271
|
+
[$.REQUIRED_VALUE]: "Required in value: {0}",
|
|
2272
|
+
[$.INVALID_VALUE]: "Invalid value",
|
|
2273
|
+
[$.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]: "Cannot setup vue-devtools plugin",
|
|
2274
|
+
[$.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
|
|
2275
|
+
[$.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
|
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
|
+
}, $t = /* @__PURE__ */ de("__translateVNode"), Gt = /* @__PURE__ */ de("__datetimeParts"), Kt = /* @__PURE__ */ de("__numberParts"), De = /* @__PURE__ */ de("__enableEmitter"), Xe = /* @__PURE__ */ de("__disableEmitter"), Oa = de("__setPluralRules"), Ia = /* @__PURE__ */ de("__injectWithOption"), Yt = /* @__PURE__ */ de("__dispose"), me = {
|
|
2278
2278
|
FALLBACK_TO_ROOT: fr,
|
|
2279
2279
|
// 8
|
|
2280
2280
|
NOT_FOUND_PARENT_SCOPE: 9,
|
|
@@ -2288,24 +2288,24 @@ const Br = {
|
|
|
2288
2288
|
*/
|
|
2289
2289
|
DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE: 12
|
|
2290
2290
|
}, jr = {
|
|
2291
|
-
[
|
|
2292
|
-
[
|
|
2293
|
-
[
|
|
2291
|
+
[me.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
|
|
2292
|
+
[me.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
|
|
2293
|
+
[me.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
|
|
2294
2294
|
/**
|
|
2295
2295
|
* @deprecated will be removed at vue-i18n v12
|
|
2296
2296
|
*/
|
|
2297
|
-
[
|
|
2297
|
+
[me.DEPRECATE_LEGACY_MODE]: `Legacy API mode has been deprecated in v11. Use Composition API mode instead.
|
|
2298
2298
|
About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,
|
|
2299
2299
|
/**
|
|
2300
2300
|
* @deprecated will be removed at vue-i18n v12
|
|
2301
2301
|
*/
|
|
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
2305
|
return it(jr[e], ...t);
|
|
2306
2306
|
}
|
|
2307
2307
|
function Je(e) {
|
|
2308
|
-
if (!M(e) ||
|
|
2308
|
+
if (!M(e) || le(e))
|
|
2309
2309
|
return e;
|
|
2310
2310
|
for (const t in e)
|
|
2311
2311
|
if (ce(e, t))
|
|
@@ -2318,14 +2318,14 @@ function Je(e) {
|
|
|
2318
2318
|
if (n[o] === "__proto__")
|
|
2319
2319
|
throw new Error(`unsafe key: ${n[o]}`);
|
|
2320
2320
|
if (n[o] in s || (s[n[o]] = W()), !M(s[n[o]])) {
|
|
2321
|
-
process.env.NODE_ENV !== "production" && Le(qe(
|
|
2321
|
+
process.env.NODE_ENV !== "production" && Le(qe(me.IGNORE_OBJ_FLATTEN, {
|
|
2322
2322
|
key: n[o]
|
|
2323
2323
|
})), r = !0;
|
|
2324
2324
|
break;
|
|
2325
2325
|
}
|
|
2326
2326
|
s = s[n[o]];
|
|
2327
2327
|
}
|
|
2328
|
-
if (r || (
|
|
2328
|
+
if (r || (le(s) ? ia.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
|
}
|
|
@@ -2345,10 +2345,10 @@ function sn(e, t) {
|
|
|
2345
2345
|
ce(o, l) && Je(o[l]);
|
|
2346
2346
|
return o;
|
|
2347
2347
|
}
|
|
2348
|
-
function
|
|
2348
|
+
function va(e) {
|
|
2349
2349
|
return e.type;
|
|
2350
2350
|
}
|
|
2351
|
-
function
|
|
2351
|
+
function ya(e, t, n) {
|
|
2352
2352
|
let a = M(t.messages) ? t.messages : W();
|
|
2353
2353
|
"__i18nGlobal" in n && (a = sn(e.locale.value, {
|
|
2354
2354
|
messages: a,
|
|
@@ -2373,21 +2373,21 @@ function va(e, t, n) {
|
|
|
2373
2373
|
}
|
|
2374
2374
|
}
|
|
2375
2375
|
}
|
|
2376
|
-
function
|
|
2377
|
-
return
|
|
2376
|
+
function Vn(e) {
|
|
2377
|
+
return re(Ha, null, e, 0);
|
|
2378
2378
|
}
|
|
2379
|
-
const
|
|
2379
|
+
const Wn = "__INTLIFY_META__", xn = () => [], Xr = () => !1;
|
|
2380
2380
|
let $n = 0;
|
|
2381
|
-
function
|
|
2381
|
+
function Gn(e) {
|
|
2382
2382
|
return (t, n, a, s) => e(n, a, Ye() || void 0, s);
|
|
2383
2383
|
}
|
|
2384
2384
|
const Jr = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
2385
2385
|
const e = Ye();
|
|
2386
2386
|
let t = null;
|
|
2387
|
-
return e && (t =
|
|
2387
|
+
return e && (t = va(e)[Wn]) ? { [Wn]: t } : null;
|
|
2388
2388
|
};
|
|
2389
2389
|
function rn(e = {}) {
|
|
2390
|
-
const { __root: t, __injectWithOption: n } = e, a = t === void 0, s = e.flatJson, r = ue ?
|
|
2390
|
+
const { __root: t, __injectWithOption: n } = e, a = t === void 0, s = e.flatJson, r = ue ? Ga : Ka;
|
|
2391
2391
|
let o = F(e.inheritLocale) ? e.inheritLocale : !0;
|
|
2392
2392
|
const l = r(
|
|
2393
2393
|
// prettier-ignore
|
|
@@ -2396,11 +2396,11 @@ function rn(e = {}) {
|
|
|
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
2398
|
), _ = r(sn(l.value, e)), p = r(R(e.datetimeFormats) ? e.datetimeFormats : { [l.value]: {} }), N = r(R(e.numberFormats) ? e.numberFormats : { [l.value]: {} });
|
|
2399
|
-
let E = 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 =
|
|
2399
|
+
let E = 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) ? Gn(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 && An(null);
|
|
2404
2404
|
const d = {
|
|
2405
2405
|
version: Yr,
|
|
2406
2406
|
locale: l.value,
|
|
@@ -2422,7 +2422,7 @@ function rn(e = {}) {
|
|
|
2422
2422
|
};
|
|
2423
2423
|
d.datetimeFormats = p.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
2424
|
const L = Lr(d);
|
|
2425
|
-
return a &&
|
|
2425
|
+
return a && An(L), L;
|
|
2426
2426
|
})(), Ke(h, l.value, u.value);
|
|
2427
2427
|
function U() {
|
|
2428
2428
|
return [
|
|
@@ -2438,14 +2438,14 @@ function rn(e = {}) {
|
|
|
2438
2438
|
set: (d) => {
|
|
2439
2439
|
h.locale = d, l.value = d;
|
|
2440
2440
|
}
|
|
2441
|
-
}),
|
|
2441
|
+
}), ie = Ge({
|
|
2442
2442
|
get: () => u.value,
|
|
2443
2443
|
set: (d) => {
|
|
2444
2444
|
h.fallbackLocale = d, u.value = d, Ke(h, l.value, d);
|
|
2445
2445
|
}
|
|
2446
2446
|
}), J = Ge(() => _.value), ke = /* @__PURE__ */ Ge(() => p.value), mt = /* @__PURE__ */ Ge(() => N.value);
|
|
2447
2447
|
function dt() {
|
|
2448
|
-
return
|
|
2448
|
+
return x(g) ? g : null;
|
|
2449
2449
|
}
|
|
2450
2450
|
function gt(d) {
|
|
2451
2451
|
g = d, h.postTranslation = d;
|
|
@@ -2454,12 +2454,12 @@ function rn(e = {}) {
|
|
|
2454
2454
|
return A;
|
|
2455
2455
|
}
|
|
2456
2456
|
function pt(d) {
|
|
2457
|
-
d !== null && (f =
|
|
2457
|
+
d !== null && (f = Gn(d)), A = d, h.missing = f;
|
|
2458
2458
|
}
|
|
2459
2459
|
function ht(d, L) {
|
|
2460
2460
|
return d !== "translate" || !L.resolvedMessage;
|
|
2461
2461
|
}
|
|
2462
|
-
const
|
|
2462
|
+
const ge = (d, L, V, H, ve, ze) => {
|
|
2463
2463
|
U();
|
|
2464
2464
|
let Pe;
|
|
2465
2465
|
try {
|
|
@@ -2469,8 +2469,8 @@ function rn(e = {}) {
|
|
|
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) && ht(V,
|
|
2472
|
+
const [ye, wa] = L();
|
|
2473
|
+
if (process.env.NODE_ENV !== "production" && t && I(ye) && ht(V, wa) && (D && (ft(S, ye) || ga(E, ye)) && Le(qe(me.FALLBACK_TO_ROOT, {
|
|
2474
2474
|
key: ye,
|
|
2475
2475
|
type: V
|
|
2476
2476
|
})), process.env.NODE_ENV !== "production")) {
|
|
@@ -2486,26 +2486,26 @@ function rn(e = {}) {
|
|
|
2486
2486
|
} else {
|
|
2487
2487
|
if (ze(Pe))
|
|
2488
2488
|
return Pe;
|
|
2489
|
-
throw te(
|
|
2489
|
+
throw te($.UNEXPECTED_RETURN_TYPE);
|
|
2490
2490
|
}
|
|
2491
2491
|
};
|
|
2492
2492
|
function Ve(...d) {
|
|
2493
|
-
return
|
|
2493
|
+
return ge((L) => Reflect.apply(Un, null, [L, ...d]), () => Wt(...d), "translate", (L) => Reflect.apply(L.t, L, [...d]), (L) => L, (L) => I(L));
|
|
2494
2494
|
}
|
|
2495
2495
|
function Nt(...d) {
|
|
2496
2496
|
const [L, V, H] = d;
|
|
2497
2497
|
if (H && !M(H))
|
|
2498
|
-
throw te(
|
|
2498
|
+
throw te($.INVALID_ARGUMENT);
|
|
2499
2499
|
return Ve(L, V, Q({ resolvedMessage: !0 }, H || {}));
|
|
2500
2500
|
}
|
|
2501
2501
|
function Tt(...d) {
|
|
2502
|
-
return
|
|
2502
|
+
return ge((L) => Reflect.apply(kn, null, [L, ...d]), () => Ut(...d), "datetime format", (L) => Reflect.apply(L.d, L, [...d]), () => rt, (L) => I(L));
|
|
2503
2503
|
}
|
|
2504
2504
|
function Lt(...d) {
|
|
2505
|
-
return
|
|
2505
|
+
return ge((L) => Reflect.apply(Rn, null, [L, ...d]), () => Vt(...d), "number format", (L) => Reflect.apply(L.n, L, [...d]), () => rt, (L) => I(L));
|
|
2506
2506
|
}
|
|
2507
2507
|
function bt(d) {
|
|
2508
|
-
return d.map((L) => I(L) || j(L) || F(L) ?
|
|
2508
|
+
return d.map((L) => I(L) || j(L) || F(L) ? Vn(String(L)) : L);
|
|
2509
2509
|
}
|
|
2510
2510
|
const Ot = {
|
|
2511
2511
|
normalize: bt,
|
|
@@ -2513,37 +2513,37 @@ function rn(e = {}) {
|
|
|
2513
2513
|
type: "vnode"
|
|
2514
2514
|
};
|
|
2515
2515
|
function Ze(...d) {
|
|
2516
|
-
return
|
|
2516
|
+
return ge((L) => {
|
|
2517
2517
|
let V;
|
|
2518
2518
|
const H = L;
|
|
2519
2519
|
try {
|
|
2520
|
-
H.processor = Ot, V = Reflect.apply(
|
|
2520
|
+
H.processor = Ot, V = Reflect.apply(Un, null, [H, ...d]);
|
|
2521
2521
|
} finally {
|
|
2522
2522
|
H.processor = null;
|
|
2523
2523
|
}
|
|
2524
2524
|
return V;
|
|
2525
|
-
}, () => Wt(...d), "translate", (L) => L[
|
|
2525
|
+
}, () => Wt(...d), "translate", (L) => L[$t](...d), (L) => [Vn(L)], (L) => B(L));
|
|
2526
2526
|
}
|
|
2527
2527
|
function It(...d) {
|
|
2528
|
-
return
|
|
2528
|
+
return ge((L) => Reflect.apply(Rn, null, [L, ...d]), () => Vt(...d), "number format", (L) => L[Kt](...d), xn, (L) => I(L) || B(L));
|
|
2529
2529
|
}
|
|
2530
2530
|
function vt(...d) {
|
|
2531
|
-
return
|
|
2531
|
+
return ge((L) => Reflect.apply(kn, null, [L, ...d]), () => Ut(...d), "datetime format", (L) => L[Gt](...d), xn, (L) => I(L) || B(L));
|
|
2532
2532
|
}
|
|
2533
2533
|
function yt(d) {
|
|
2534
2534
|
y = d, h.pluralRules = y;
|
|
2535
2535
|
}
|
|
2536
2536
|
function St(d, L) {
|
|
2537
|
-
return
|
|
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
|
-
return
|
|
2541
|
+
return le(ve) || oe(ve) || I(ve);
|
|
2542
2542
|
}, () => [d], "translate exists", (V) => Reflect.apply(V.te, V, [d, L]), Xr, (V) => F(V));
|
|
2543
2543
|
}
|
|
2544
2544
|
function We(d) {
|
|
2545
2545
|
let L = null;
|
|
2546
|
-
const V =
|
|
2546
|
+
const V = ca(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) {
|
|
@@ -2553,14 +2553,14 @@ function rn(e = {}) {
|
|
|
2553
2553
|
}
|
|
2554
2554
|
return L;
|
|
2555
2555
|
}
|
|
2556
|
-
function
|
|
2556
|
+
function xe(d) {
|
|
2557
2557
|
const L = We(d);
|
|
2558
2558
|
return L ?? (t ? t.tm(d) || {} : {});
|
|
2559
2559
|
}
|
|
2560
2560
|
function Ie(d) {
|
|
2561
2561
|
return _.value[d] || {};
|
|
2562
2562
|
}
|
|
2563
|
-
function
|
|
2563
|
+
function $e(d, L) {
|
|
2564
2564
|
if (s) {
|
|
2565
2565
|
const V = { [d]: L };
|
|
2566
2566
|
for (const H in V)
|
|
@@ -2581,19 +2581,19 @@ function rn(e = {}) {
|
|
|
2581
2581
|
return p.value[d] || {};
|
|
2582
2582
|
}
|
|
2583
2583
|
function c(d, L) {
|
|
2584
|
-
p.value[d] = L, h.datetimeFormats = p.value,
|
|
2584
|
+
p.value[d] = L, h.datetimeFormats = p.value, Pn(h, d, L);
|
|
2585
2585
|
}
|
|
2586
2586
|
function T(d, L) {
|
|
2587
|
-
p.value[d] = Q(p.value[d] || {}, L), h.datetimeFormats = p.value,
|
|
2587
|
+
p.value[d] = Q(p.value[d] || {}, L), h.datetimeFormats = p.value, Pn(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, Mn(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, Mn(h, d, L);
|
|
2597
2597
|
}
|
|
2598
2598
|
$n++, t && ue && (Mt(t.locale, (d) => {
|
|
2599
2599
|
o && (l.value = d, h.locale = d, Ke(h, l.value, u.value));
|
|
@@ -2603,7 +2603,7 @@ function rn(e = {}) {
|
|
|
2603
2603
|
const w = {
|
|
2604
2604
|
id: $n,
|
|
2605
2605
|
locale: X,
|
|
2606
|
-
fallbackLocale:
|
|
2606
|
+
fallbackLocale: ie,
|
|
2607
2607
|
get inheritLocale() {
|
|
2608
2608
|
return o;
|
|
2609
2609
|
},
|
|
@@ -2661,21 +2661,21 @@ function rn(e = {}) {
|
|
|
2661
2661
|
},
|
|
2662
2662
|
t: Ve,
|
|
2663
2663
|
getLocaleMessage: Ie,
|
|
2664
|
-
setLocaleMessage:
|
|
2664
|
+
setLocaleMessage: $e,
|
|
2665
2665
|
mergeLocaleMessage: At,
|
|
2666
2666
|
getPostTranslationHandler: dt,
|
|
2667
2667
|
setPostTranslationHandler: gt,
|
|
2668
2668
|
getMissingHandler: Et,
|
|
2669
2669
|
setMissingHandler: pt,
|
|
2670
|
-
[
|
|
2670
|
+
[Oa]: yt
|
|
2671
2671
|
};
|
|
2672
|
-
return w.datetimeFormats = ke, w.numberFormats = mt, w.rt = Nt, w.te = St, w.tm =
|
|
2672
|
+
return w.datetimeFormats = ke, w.numberFormats = mt, w.rt = Nt, w.te = St, w.tm = xe, w.d = Tt, w.n = Lt, w.getDateTimeFormat = i, w.setDateTimeFormat = c, w.mergeDateTimeFormat = T, w.getNumberFormat = C, w.setNumberFormat = K, w.mergeNumberFormat = Y, w[Ia] = n, w[$t] = Ze, w[Gt] = vt, w[Kt] = It, 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 Sa = "vue-i18n: composer properties", Rt = {
|
|
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"
|
|
@@ -2694,14 +2694,14 @@ async function Zr(e, t) {
|
|
|
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: [Sa],
|
|
2698
2698
|
app: e
|
|
2699
2699
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2700
2700
|
}, (s) => {
|
|
2701
2701
|
Ht = s, s.on.visitComponentTree(({ componentInstance: o, treeNode: l }) => {
|
|
2702
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 && Kn(l, o.vnode.el.__VUE_I18N__) : Kn(l, o.vnode.el.__VUE_I18N__));
|
|
2705
2705
|
}), s.addInspector({
|
|
2706
2706
|
id: "vue-i18n-resource-inspector",
|
|
2707
2707
|
label: Rt["vue-i18n-resource-inspector"],
|
|
@@ -2736,22 +2736,22 @@ async function Zr(e, t) {
|
|
|
2736
2736
|
}
|
|
2737
2737
|
});
|
|
2738
2738
|
}
|
|
2739
|
-
function
|
|
2739
|
+
function Aa(e) {
|
|
2740
2740
|
return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
|
|
2741
2741
|
}
|
|
2742
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 (${Aa(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 Kn(e, t) {
|
|
2754
|
+
const n = Sa;
|
|
2755
2755
|
e.state.push({
|
|
2756
2756
|
type: n,
|
|
2757
2757
|
key: "locale",
|
|
@@ -2793,7 +2793,7 @@ function on(e) {
|
|
|
2793
2793
|
const t = {};
|
|
2794
2794
|
return Object.keys(e).forEach((n) => {
|
|
2795
2795
|
const a = e[n];
|
|
2796
|
-
|
|
2796
|
+
x(a) && "source" in a ? t[n] = ao(a) : le(a) && a.loc && a.loc.source ? t[n] = a.loc.source : M(a) ? t[n] = on(a) : t[n] = a;
|
|
2797
2797
|
}), t;
|
|
2798
2798
|
}
|
|
2799
2799
|
const eo = {
|
|
@@ -2826,7 +2826,7 @@ 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: `${Aa(a)} Scope`
|
|
2830
2830
|
});
|
|
2831
2831
|
}
|
|
2832
2832
|
}
|
|
@@ -2841,7 +2841,7 @@ function ro(e, t) {
|
|
|
2841
2841
|
}
|
|
2842
2842
|
return n;
|
|
2843
2843
|
}
|
|
2844
|
-
function
|
|
2844
|
+
function Ca(e, t) {
|
|
2845
2845
|
if (e === "global")
|
|
2846
2846
|
return t.mode === "composition" ? t.global : t.global.__composer;
|
|
2847
2847
|
{
|
|
@@ -2850,7 +2850,7 @@ function Aa(e, t) {
|
|
|
2850
2850
|
}
|
|
2851
2851
|
}
|
|
2852
2852
|
function oo(e, t) {
|
|
2853
|
-
const n =
|
|
2853
|
+
const n = Ca(e.nodeId, t);
|
|
2854
2854
|
return n && (e.state = lo(n)), null;
|
|
2855
2855
|
}
|
|
2856
2856
|
function lo(e) {
|
|
@@ -2929,14 +2929,14 @@ function Qe(e, t) {
|
|
|
2929
2929
|
}
|
|
2930
2930
|
}
|
|
2931
2931
|
function io(e, t) {
|
|
2932
|
-
const n =
|
|
2932
|
+
const n = Ca(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
2938
|
function co(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 =
|
|
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, p = x(e.postTranslation) ? e.postTranslation : void 0, N = I(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, E = !!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;
|
|
@@ -3144,12 +3144,12 @@ function uo(e, t, n) {
|
|
|
3144
3144
|
beforeCreate() {
|
|
3145
3145
|
const a = Ye();
|
|
3146
3146
|
if (!a)
|
|
3147
|
-
throw te(
|
|
3147
|
+
throw te($.UNEXPECTED_ERROR);
|
|
3148
3148
|
const s = this.$options;
|
|
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 = Yn(e, r);
|
|
3153
3153
|
else {
|
|
3154
3154
|
r.__injectWithOption = !0, r.__extender = n.__vueI18nExtend, this.$i18n = Bt(r);
|
|
3155
3155
|
const o = this.$i18n;
|
|
@@ -3157,7 +3157,7 @@ function uo(e, t, n) {
|
|
|
3157
3157
|
}
|
|
3158
3158
|
} else if (s.__i18n)
|
|
3159
3159
|
if (this === this.$root)
|
|
3160
|
-
this.$i18n =
|
|
3160
|
+
this.$i18n = Yn(e, s);
|
|
3161
3161
|
else {
|
|
3162
3162
|
this.$i18n = Bt({
|
|
3163
3163
|
__i18n: s.__i18n,
|
|
@@ -3170,7 +3170,7 @@ function uo(e, t, n) {
|
|
|
3170
3170
|
}
|
|
3171
3171
|
else
|
|
3172
3172
|
this.$i18n = e;
|
|
3173
|
-
s.__i18nGlobal &&
|
|
3173
|
+
s.__i18nGlobal && ya(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) {
|
|
@@ -3183,14 +3183,14 @@ function uo(e, t, n) {
|
|
|
3183
3183
|
unmounted() {
|
|
3184
3184
|
const a = Ye();
|
|
3185
3185
|
if (!a)
|
|
3186
|
-
throw te(
|
|
3186
|
+
throw te($.UNEXPECTED_ERROR);
|
|
3187
3187
|
const s = this.$i18n;
|
|
3188
3188
|
process.env.NODE_ENV !== "production" && this.$el && this.$el.__VUE_I18N__ && (this.__v_emitter && (this.__v_emitter.off("*", Qe), delete this.__v_emitter), this.$i18n && (s.__disableEmitter && s.__disableEmitter(), delete this.$el.__VUE_I18N__)), delete this.$t, delete this.$rt, delete this.$te, delete this.$d, delete this.$n, delete this.$tm, s.__disposer && (s.__disposer(), delete s.__disposer, delete s.__extender), n.__deleteInstance(a), delete this.$i18n;
|
|
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[
|
|
3192
|
+
function Yn(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[Oa](t.pluralizationRules || e.pluralizationRules);
|
|
3194
3194
|
const n = sn(e.locale, {
|
|
3195
3195
|
messages: t.messages,
|
|
3196
3196
|
__i18n: t.__i18n
|
|
@@ -3225,7 +3225,7 @@ function fo({ slots: e }, t) {
|
|
|
3225
3225
|
return s && (n[a] = s()), n;
|
|
3226
3226
|
}, W());
|
|
3227
3227
|
}
|
|
3228
|
-
function
|
|
3228
|
+
function Da() {
|
|
3229
3229
|
return Jt;
|
|
3230
3230
|
}
|
|
3231
3231
|
const _o = /* @__PURE__ */ Xt({
|
|
@@ -3251,15 +3251,15 @@ const _o = /* @__PURE__ */ Xt({
|
|
|
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 = fo(t, r), u = s[
|
|
3255
|
-
return
|
|
3254
|
+
const l = fo(t, r), u = s[$t](e.keypath, l, o), _ = Q(W(), a), p = I(e.tag) || M(e.tag) ? e.tag : Da();
|
|
3255
|
+
return Zn(p, _, u);
|
|
3256
3256
|
};
|
|
3257
3257
|
}
|
|
3258
|
-
}),
|
|
3258
|
+
}), Hn = _o;
|
|
3259
3259
|
function mo(e) {
|
|
3260
3260
|
return B(e) && !I(e[0]);
|
|
3261
3261
|
}
|
|
3262
|
-
function
|
|
3262
|
+
function ka(e, t, n, a) {
|
|
3263
3263
|
const { slots: s, attrs: r } = t;
|
|
3264
3264
|
return () => {
|
|
3265
3265
|
const o = { part: !0 };
|
|
@@ -3271,8 +3271,8 @@ function Da(e, t, n, a) {
|
|
|
3271
3271
|
const D = s[E.type], v = D ? D({ [E.type]: E.value, index: S, parts: u }) : [E.value];
|
|
3272
3272
|
return mo(v) && (v[0].key = `${E.type}-${S}`), v;
|
|
3273
3273
|
}) : I(u) && (_ = [u]);
|
|
3274
|
-
const p = Q(W(), r), N = I(e.tag) || M(e.tag) ? e.tag :
|
|
3275
|
-
return
|
|
3274
|
+
const p = Q(W(), r), N = I(e.tag) || M(e.tag) ? e.tag : Da();
|
|
3275
|
+
return Zn(N, p, _);
|
|
3276
3276
|
};
|
|
3277
3277
|
}
|
|
3278
3278
|
const go = /* @__PURE__ */ Xt({
|
|
@@ -3294,12 +3294,12 @@ const go = /* @__PURE__ */ Xt({
|
|
|
3294
3294
|
useScope: e.scope,
|
|
3295
3295
|
__useComponent: !0
|
|
3296
3296
|
});
|
|
3297
|
-
return
|
|
3297
|
+
return ka(e, t, Na, (...a) => (
|
|
3298
3298
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3299
3299
|
n[Kt](...a)
|
|
3300
3300
|
));
|
|
3301
3301
|
}
|
|
3302
|
-
}),
|
|
3302
|
+
}), Bn = go;
|
|
3303
3303
|
function Eo(e, t) {
|
|
3304
3304
|
const n = e;
|
|
3305
3305
|
if (e.mode === "composition")
|
|
@@ -3311,13 +3311,13 @@ function Eo(e, t) {
|
|
|
3311
3311
|
}
|
|
3312
3312
|
function po(e) {
|
|
3313
3313
|
const t = (o) => {
|
|
3314
|
-
process.env.NODE_ENV !== "production" && Zt(qe(
|
|
3314
|
+
process.env.NODE_ENV !== "production" && Zt(qe(me.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));
|
|
3315
3315
|
const { instance: l, value: u } = o;
|
|
3316
3316
|
if (!l || !l.$)
|
|
3317
|
-
throw te(
|
|
3318
|
-
const _ = Eo(e, l.$), p =
|
|
3317
|
+
throw te($.UNEXPECTED_ERROR);
|
|
3318
|
+
const _ = Eo(e, l.$), p = jn(u);
|
|
3319
3319
|
return [
|
|
3320
|
-
Reflect.apply(_.t, _, [...
|
|
3320
|
+
Reflect.apply(_.t, _, [...Xn(p)]),
|
|
3321
3321
|
_
|
|
3322
3322
|
];
|
|
3323
3323
|
};
|
|
@@ -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, _ = jn(l);
|
|
3337
3337
|
o.textContent = Reflect.apply(u.t, u, [
|
|
3338
|
-
...
|
|
3338
|
+
...Xn(_)
|
|
3339
3339
|
]);
|
|
3340
3340
|
}
|
|
3341
3341
|
},
|
|
@@ -3345,29 +3345,29 @@ function po(e) {
|
|
|
3345
3345
|
}
|
|
3346
3346
|
};
|
|
3347
3347
|
}
|
|
3348
|
-
function
|
|
3348
|
+
function jn(e) {
|
|
3349
3349
|
if (I(e))
|
|
3350
3350
|
return { path: e };
|
|
3351
3351
|
if (R(e)) {
|
|
3352
3352
|
if (!("path" in e))
|
|
3353
|
-
throw te(
|
|
3353
|
+
throw te($.REQUIRED_VALUE, "path");
|
|
3354
3354
|
return e;
|
|
3355
3355
|
} else
|
|
3356
|
-
throw te(
|
|
3356
|
+
throw te($.INVALID_VALUE);
|
|
3357
3357
|
}
|
|
3358
|
-
function
|
|
3358
|
+
function Xn(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
3362
|
function ho(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) && ([Hn.name, "I18nT"].forEach((r) => e.component(r, Hn)), [Bn.name, "I18nN"].forEach((r) => e.component(r, Bn)), [Qn.name, "I18nD"].forEach((r) => e.component(r, Qn))), e.directive("t", po(t));
|
|
3365
3365
|
}
|
|
3366
|
-
const No = /* @__PURE__ */
|
|
3366
|
+
const No = /* @__PURE__ */ de("global-vue-i18n");
|
|
3367
3367
|
function To(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 && Zt(qe(
|
|
3370
|
-
const n = F(e.globalInjection) ? e.globalInjection : !0, a = /* @__PURE__ */ new Map(), [s, r] = Lo(e, t), o = /* @__PURE__ */
|
|
3369
|
+
process.env.NODE_ENV !== "production" && t && Zt(qe(me.DEPRECATE_LEGACY_MODE));
|
|
3370
|
+
const n = F(e.globalInjection) ? e.globalInjection : !0, a = /* @__PURE__ */ new Map(), [s, r] = Lo(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
|
}
|
|
@@ -3395,7 +3395,7 @@ function To(e = {}) {
|
|
|
3395
3395
|
S && S(), p.dispose(), D();
|
|
3396
3396
|
}, process.env.NODE_ENV !== "production") {
|
|
3397
3397
|
if (!await Zr(N, p))
|
|
3398
|
-
throw te(
|
|
3398
|
+
throw te($.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
3399
3399
|
const A = zt();
|
|
3400
3400
|
if (t) {
|
|
3401
3401
|
const f = r;
|
|
@@ -3428,15 +3428,15 @@ function To(e = {}) {
|
|
|
3428
3428
|
function cn(e = {}) {
|
|
3429
3429
|
const t = Ye();
|
|
3430
3430
|
if (t == null)
|
|
3431
|
-
throw te(
|
|
3431
|
+
throw te($.MUST_BE_CALL_SETUP_TOP);
|
|
3432
3432
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
3433
|
-
throw te(
|
|
3434
|
-
const n = bo(t), a = Io(n), s =
|
|
3433
|
+
throw te($.NOT_INSTALLED);
|
|
3434
|
+
const n = bo(t), a = Io(n), s = va(t), r = Oo(e, s);
|
|
3435
3435
|
if (r === "global")
|
|
3436
|
-
return
|
|
3436
|
+
return ya(a, e, s), a;
|
|
3437
3437
|
if (r === "parent") {
|
|
3438
3438
|
let u = vo(n, t, e.__useComponent);
|
|
3439
|
-
return u == null && (process.env.NODE_ENV !== "production" && Le(qe(
|
|
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);
|
|
@@ -3447,15 +3447,15 @@ function cn(e = {}) {
|
|
|
3447
3447
|
return l;
|
|
3448
3448
|
}
|
|
3449
3449
|
function Lo(e, t) {
|
|
3450
|
-
const n =
|
|
3450
|
+
const n = Va(), a = __VUE_I18N_LEGACY_API__ && t ? n.run(() => Bt(e)) : n.run(() => rn(e));
|
|
3451
3451
|
if (a == null)
|
|
3452
|
-
throw te(
|
|
3452
|
+
throw te($.UNEXPECTED_ERROR);
|
|
3453
3453
|
return [n, a];
|
|
3454
3454
|
}
|
|
3455
3455
|
function bo(e) {
|
|
3456
|
-
const t =
|
|
3456
|
+
const t = Wa(e.isCE ? No : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
3457
3457
|
if (!t)
|
|
3458
|
-
throw te(e.isCE ?
|
|
3458
|
+
throw te(e.isCE ? $.NOT_INSTALLED_WITH_PROVIDE : $.UNEXPECTED_ERROR);
|
|
3459
3459
|
return t;
|
|
3460
3460
|
}
|
|
3461
3461
|
function Oo(e, t) {
|
|
@@ -3474,7 +3474,7 @@ function vo(e, t, n = !1) {
|
|
|
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[Ia] && (a = null));
|
|
3478
3478
|
}
|
|
3479
3479
|
if (a != null || s === r)
|
|
3480
3480
|
break;
|
|
@@ -3487,7 +3487,7 @@ function yo(e, t = !1) {
|
|
|
3487
3487
|
}
|
|
3488
3488
|
function So(e, t, n) {
|
|
3489
3489
|
let a = null;
|
|
3490
|
-
|
|
3490
|
+
xa(() => {
|
|
3491
3491
|
if (process.env.NODE_ENV !== "production" && t.vnode.el) {
|
|
3492
3492
|
t.vnode.el.__VUE_I18N__ = n, a = zt();
|
|
3493
3493
|
const s = n;
|
|
@@ -3504,14 +3504,14 @@ const Ao = [
|
|
|
3504
3504
|
"locale",
|
|
3505
3505
|
"fallbackLocale",
|
|
3506
3506
|
"availableLocales"
|
|
3507
|
-
],
|
|
3507
|
+
], Jn = ["t", "rt", "d", "n", "tm", "te"];
|
|
3508
3508
|
function Co(e, t) {
|
|
3509
3509
|
const n = /* @__PURE__ */ Object.create(null);
|
|
3510
3510
|
return Ao.forEach((s) => {
|
|
3511
3511
|
const r = Object.getOwnPropertyDescriptor(t, s);
|
|
3512
3512
|
if (!r)
|
|
3513
|
-
throw te(
|
|
3514
|
-
const o =
|
|
3513
|
+
throw te($.UNEXPECTED_ERROR);
|
|
3514
|
+
const o = Ya(r.value) ? {
|
|
3515
3515
|
get() {
|
|
3516
3516
|
return r.value.value;
|
|
3517
3517
|
},
|
|
@@ -3525,13 +3525,13 @@ 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, Jn.forEach((s) => {
|
|
3529
3529
|
const r = Object.getOwnPropertyDescriptor(t, s);
|
|
3530
3530
|
if (!r || !r.value)
|
|
3531
|
-
throw te(
|
|
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, Jn.forEach((s) => {
|
|
3535
3535
|
delete e.config.globalProperties[`$${s}`];
|
|
3536
3536
|
});
|
|
3537
3537
|
};
|
|
@@ -3555,16 +3555,16 @@ const Do = /* @__PURE__ */ Xt({
|
|
|
3555
3555
|
useScope: e.scope,
|
|
3556
3556
|
__useComponent: !0
|
|
3557
3557
|
});
|
|
3558
|
-
return
|
|
3558
|
+
return ka(e, t, ha, (...a) => (
|
|
3559
3559
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3560
3560
|
n[Gt](...a)
|
|
3561
3561
|
));
|
|
3562
3562
|
}
|
|
3563
|
-
}),
|
|
3563
|
+
}), Qn = Do;
|
|
3564
3564
|
Hr();
|
|
3565
3565
|
gr(js);
|
|
3566
3566
|
Er(ur);
|
|
3567
|
-
pr(
|
|
3567
|
+
pr(ca);
|
|
3568
3568
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
3569
3569
|
const e = Se();
|
|
3570
3570
|
e.__INTLIFY__ = !0, Xs(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
@@ -3578,11 +3578,11 @@ const ko = (e) => {
|
|
|
3578
3578
|
}, Po = (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), _t = "https://test.ihotel.cn",
|
|
3581
|
+
}), e), _t = "https://test.ihotel.cn", Pa = async (e) => lt.get(_t + "/i18n-web/sysoption/getsupportedlangs", {
|
|
3582
3582
|
headers: {
|
|
3583
3583
|
Authorization: e
|
|
3584
3584
|
}
|
|
3585
|
-
}),
|
|
3585
|
+
}), qn = async ({
|
|
3586
3586
|
appCode: e,
|
|
3587
3587
|
language: t = "zh-CN",
|
|
3588
3588
|
page: n,
|
|
@@ -3621,10 +3621,10 @@ const ko = (e) => {
|
|
|
3621
3621
|
token: n
|
|
3622
3622
|
}, l = r.get(t);
|
|
3623
3623
|
if (!l || !l.lastPullDate) {
|
|
3624
|
-
const u = await
|
|
3624
|
+
const u = await qn(o);
|
|
3625
3625
|
u && (r.set(t, u), a(u.translatesDTOs));
|
|
3626
3626
|
} else {
|
|
3627
|
-
const { lastPullDate: u } = l, _ = await
|
|
3627
|
+
const { lastPullDate: u } = l, _ = await qn({
|
|
3628
3628
|
...o,
|
|
3629
3629
|
lastPullDate: u
|
|
3630
3630
|
});
|
|
@@ -3740,7 +3740,7 @@ const ko = (e) => {
|
|
|
3740
3740
|
const o = s[n], {
|
|
3741
3741
|
localhost: l
|
|
3742
3742
|
} = s;
|
|
3743
|
-
return l ? null :
|
|
3743
|
+
return l ? null : re(z("Input"), {
|
|
3744
3744
|
modelValue: o,
|
|
3745
3745
|
onOnChange: (u) => {
|
|
3746
3746
|
const _ = u.target.value, {
|
|
@@ -3771,6 +3771,11 @@ const ko = (e) => {
|
|
|
3771
3771
|
// 登录页路由名称
|
|
3772
3772
|
loginTranslationKeys: Array,
|
|
3773
3773
|
// 登录页翻译键
|
|
3774
|
+
login: {
|
|
3775
|
+
type: Boolean,
|
|
3776
|
+
default: !0
|
|
3777
|
+
// 是否显示登录页翻译
|
|
3778
|
+
},
|
|
3774
3779
|
emitter: Object
|
|
3775
3780
|
// 接收事件总线
|
|
3776
3781
|
},
|
|
@@ -3879,7 +3884,7 @@ const ko = (e) => {
|
|
|
3879
3884
|
this.type = e, e === "data" ? this.search() : e === "pageData" ? this.getPageData() : e === "loginData" && this.getLoginData();
|
|
3880
3885
|
},
|
|
3881
3886
|
async init() {
|
|
3882
|
-
const e = await
|
|
3887
|
+
const e = await Pa(this.token);
|
|
3883
3888
|
if (e && e.data.result == 0) {
|
|
3884
3889
|
let t = e.data.retVal;
|
|
3885
3890
|
G.map(t, (n) => {
|
|
@@ -3894,10 +3899,10 @@ const ko = (e) => {
|
|
|
3894
3899
|
for (const [a, s] of t)
|
|
3895
3900
|
n[a] = s;
|
|
3896
3901
|
return n;
|
|
3897
|
-
}, Vo = { key: 0 }, Wo = { class: "extra" },
|
|
3902
|
+
}, Vo = { key: 0 }, Wo = { class: "extra" }, xo = { class: "gc_i18n_page" }, $o = { style: { display: "flex" } };
|
|
3898
3903
|
function Go(e, t, n, a, s, r) {
|
|
3899
|
-
const o = z("Spin"), l = z("Table"), u = z("TabPane"), _ = z("Icon"), p = z("Checkbox"), N = z("DropdownItem"), E = z("DropdownMenu"), S = z("Dropdown"), D = z("Input"), v = z("Tabs"), A = z("Page"), f = z("Button"), g = z("Modal"), b =
|
|
3900
|
-
return
|
|
3904
|
+
const o = z("Spin"), l = z("Table"), u = z("TabPane"), _ = z("Icon"), p = z("Checkbox"), N = z("DropdownItem"), E = z("DropdownMenu"), S = z("Dropdown"), D = z("Input"), v = z("Tabs"), A = z("Page"), f = z("Button"), g = z("Modal"), b = Ba("click-away");
|
|
3905
|
+
return se(), fe(g, {
|
|
3901
3906
|
modelValue: s.isModalVisible,
|
|
3902
3907
|
"onUpdate:modelValue": t[4] || (t[4] = (m) => s.isModalVisible = m),
|
|
3903
3908
|
"mask-closable": !1,
|
|
@@ -3907,8 +3912,8 @@ function Go(e, t, n, a, s, r) {
|
|
|
3907
3912
|
onOnCancel: r.closeModal
|
|
3908
3913
|
}, {
|
|
3909
3914
|
default: ne(() => [
|
|
3910
|
-
s.isModalVisible ? (
|
|
3911
|
-
|
|
3915
|
+
s.isModalVisible ? (se(), mn("div", Vo, [
|
|
3916
|
+
re(v, {
|
|
3912
3917
|
modelValue: s.type,
|
|
3913
3918
|
"onUpdate:modelValue": t[2] || (t[2] = (m) => s.type = m),
|
|
3914
3919
|
type: "card",
|
|
@@ -3917,7 +3922,7 @@ function Go(e, t, n, a, s, r) {
|
|
|
3917
3922
|
}, {
|
|
3918
3923
|
extra: ne(() => [
|
|
3919
3924
|
Ne("div", Wo, [
|
|
3920
|
-
ja((
|
|
3925
|
+
ja((se(), fe(S, {
|
|
3921
3926
|
style: { width: "80px" },
|
|
3922
3927
|
transfer: "",
|
|
3923
3928
|
trigger: "custom",
|
|
@@ -3925,13 +3930,13 @@ function Go(e, t, n, a, s, r) {
|
|
|
3925
3930
|
visible: s.LanguageSettingVisible
|
|
3926
3931
|
}, {
|
|
3927
3932
|
list: ne(() => [
|
|
3928
|
-
|
|
3933
|
+
re(E, null, {
|
|
3929
3934
|
default: ne(() => [
|
|
3930
|
-
(
|
|
3935
|
+
(se(!0), mn(Jt, null, Xa(s.languages, (m) => (se(), fe(N, {
|
|
3931
3936
|
key: m.code
|
|
3932
3937
|
}, {
|
|
3933
3938
|
default: ne(() => [
|
|
3934
|
-
|
|
3939
|
+
re(p, {
|
|
3935
3940
|
modelValue: m.unChecked,
|
|
3936
3941
|
"onUpdate:modelValue": (O) => m.unChecked = O,
|
|
3937
3942
|
onOnChange: r.saveLanguageSetting,
|
|
@@ -3939,7 +3944,7 @@ function Go(e, t, n, a, s, r) {
|
|
|
3939
3944
|
"false-value": !0
|
|
3940
3945
|
}, {
|
|
3941
3946
|
default: ne(() => [
|
|
3942
|
-
Ne("span", null,
|
|
3947
|
+
Ne("span", null, gn(m.name), 1)
|
|
3943
3948
|
]),
|
|
3944
3949
|
_: 2
|
|
3945
3950
|
}, 1032, ["modelValue", "onUpdate:modelValue", "onOnChange"])
|
|
@@ -3956,14 +3961,14 @@ function Go(e, t, n, a, s, r) {
|
|
|
3956
3961
|
onClick: t[0] || (t[0] = (...m) => r.handleLanguageSettingOpen && r.handleLanguageSettingOpen(...m))
|
|
3957
3962
|
}, [
|
|
3958
3963
|
t[5] || (t[5] = Ct(" 语言 ")),
|
|
3959
|
-
|
|
3964
|
+
re(_, { type: "ios-arrow-down" })
|
|
3960
3965
|
])
|
|
3961
3966
|
]),
|
|
3962
3967
|
_: 1
|
|
3963
3968
|
}, 8, ["visible"])), [
|
|
3964
3969
|
[b, r.onClickOutside]
|
|
3965
3970
|
]),
|
|
3966
|
-
|
|
3971
|
+
re(D, {
|
|
3967
3972
|
class: "gc_i18n_search",
|
|
3968
3973
|
prefix: "ios-search",
|
|
3969
3974
|
placeholder: "请输入搜索内容",
|
|
@@ -3976,15 +3981,15 @@ function Go(e, t, n, a, s, r) {
|
|
|
3976
3981
|
])
|
|
3977
3982
|
]),
|
|
3978
3983
|
default: ne(() => [
|
|
3979
|
-
|
|
3984
|
+
re(u, {
|
|
3980
3985
|
name: "pageData",
|
|
3981
3986
|
label: "当前页面"
|
|
3982
3987
|
}, {
|
|
3983
3988
|
default: ne(() => [
|
|
3984
|
-
s.loading ? (
|
|
3989
|
+
s.loading ? (se(), fe(o, {
|
|
3985
3990
|
key: 0,
|
|
3986
3991
|
class: "gc_i18n_spin"
|
|
3987
|
-
})) : (
|
|
3992
|
+
})) : (se(), fe(l, {
|
|
3988
3993
|
key: 1,
|
|
3989
3994
|
border: "",
|
|
3990
3995
|
height: 380,
|
|
@@ -3994,15 +3999,15 @@ function Go(e, t, n, a, s, r) {
|
|
|
3994
3999
|
]),
|
|
3995
4000
|
_: 1
|
|
3996
4001
|
}),
|
|
3997
|
-
|
|
4002
|
+
re(u, {
|
|
3998
4003
|
name: "data",
|
|
3999
4004
|
label: "当前应用"
|
|
4000
4005
|
}, {
|
|
4001
4006
|
default: ne(() => [
|
|
4002
|
-
s.loading ? (
|
|
4007
|
+
s.loading ? (se(), fe(o, {
|
|
4003
4008
|
key: 0,
|
|
4004
4009
|
class: "gc_i18n_spin"
|
|
4005
|
-
})) : (
|
|
4010
|
+
})) : (se(), fe(l, {
|
|
4006
4011
|
key: 1,
|
|
4007
4012
|
border: "",
|
|
4008
4013
|
height: 380,
|
|
@@ -4012,15 +4017,16 @@ function Go(e, t, n, a, s, r) {
|
|
|
4012
4017
|
]),
|
|
4013
4018
|
_: 1
|
|
4014
4019
|
}),
|
|
4015
|
-
|
|
4020
|
+
n.login ? (se(), fe(u, {
|
|
4021
|
+
key: 0,
|
|
4016
4022
|
name: "loginData",
|
|
4017
4023
|
label: "登录页面"
|
|
4018
4024
|
}, {
|
|
4019
4025
|
default: ne(() => [
|
|
4020
|
-
s.loading ? (
|
|
4026
|
+
s.loading ? (se(), fe(o, {
|
|
4021
4027
|
key: 0,
|
|
4022
4028
|
class: "gc_i18n_spin"
|
|
4023
|
-
})) : (
|
|
4029
|
+
})) : (se(), fe(l, {
|
|
4024
4030
|
key: 1,
|
|
4025
4031
|
border: "",
|
|
4026
4032
|
height: 380,
|
|
@@ -4029,13 +4035,13 @@ function Go(e, t, n, a, s, r) {
|
|
|
4029
4035
|
}, null, 8, ["columns", "data"]))
|
|
4030
4036
|
]),
|
|
4031
4037
|
_: 1
|
|
4032
|
-
})
|
|
4038
|
+
})) : dn("", !0)
|
|
4033
4039
|
]),
|
|
4034
4040
|
_: 1
|
|
4035
4041
|
}, 8, ["modelValue", "onOnClick"]),
|
|
4036
|
-
Ne("div",
|
|
4037
|
-
Ne("div",
|
|
4038
|
-
|
|
4042
|
+
Ne("div", xo, [
|
|
4043
|
+
Ne("div", $o, [
|
|
4044
|
+
re(A, {
|
|
4039
4045
|
modelValue: r.firstResult,
|
|
4040
4046
|
"onUpdate:modelValue": t[3] || (t[3] = (m) => r.firstResult = m),
|
|
4041
4047
|
total: s.page.totalRows,
|
|
@@ -4045,11 +4051,11 @@ function Go(e, t, n, a, s, r) {
|
|
|
4045
4051
|
onOnChange: r.changePage
|
|
4046
4052
|
}, null, 8, ["modelValue", "total", "onOnChange"]),
|
|
4047
4053
|
Ne("div", null, [
|
|
4048
|
-
Ne("span", null, " 共 " +
|
|
4054
|
+
Ne("span", null, " 共 " + gn(s.page.totalRows) + " 项当前页数据 ", 1)
|
|
4049
4055
|
])
|
|
4050
4056
|
]),
|
|
4051
4057
|
Ne("div", null, [
|
|
4052
|
-
|
|
4058
|
+
re(f, {
|
|
4053
4059
|
style: { "margin-right": "10px" },
|
|
4054
4060
|
onClick: r.closeModal
|
|
4055
4061
|
}, {
|
|
@@ -4058,7 +4064,7 @@ function Go(e, t, n, a, s, r) {
|
|
|
4058
4064
|
])),
|
|
4059
4065
|
_: 1
|
|
4060
4066
|
}, 8, ["onClick"]),
|
|
4061
|
-
|
|
4067
|
+
re(f, {
|
|
4062
4068
|
type: "primary",
|
|
4063
4069
|
onClick: r.saveData
|
|
4064
4070
|
}, {
|
|
@@ -4069,12 +4075,12 @@ function Go(e, t, n, a, s, r) {
|
|
|
4069
4075
|
}, 8, ["onClick"])
|
|
4070
4076
|
])
|
|
4071
4077
|
])
|
|
4072
|
-
])) :
|
|
4078
|
+
])) : dn("", !0)
|
|
4073
4079
|
]),
|
|
4074
4080
|
_: 1
|
|
4075
4081
|
}, 8, ["modelValue", "onOnCancel"]);
|
|
4076
4082
|
}
|
|
4077
|
-
const Ko = /* @__PURE__ */ Uo(wo, [["render", Go], ["__scopeId", "data-v-
|
|
4083
|
+
const Ko = /* @__PURE__ */ Uo(wo, [["render", Go], ["__scopeId", "data-v-dc540002"]]);
|
|
4078
4084
|
function jt(e) {
|
|
4079
4085
|
const t = [], n = /(?:\$t|_ctx\.\$t)\s*\(\s*(['"])([^'"]+?)\1/gs;
|
|
4080
4086
|
if (e.template) {
|
|
@@ -4124,29 +4130,29 @@ function Yo(e) {
|
|
|
4124
4130
|
});
|
|
4125
4131
|
} };
|
|
4126
4132
|
}
|
|
4127
|
-
const
|
|
4133
|
+
const Ra = function() {
|
|
4128
4134
|
return document.ontouchstart !== null ? "click" : "touchstart";
|
|
4129
|
-
}, ot = "__vue_click_away__",
|
|
4130
|
-
|
|
4135
|
+
}, ot = "__vue_click_away__", Ma = function(e, t, n) {
|
|
4136
|
+
Fa(e);
|
|
4131
4137
|
let a = n.context, s = t.value, r = !1;
|
|
4132
4138
|
setTimeout(function() {
|
|
4133
4139
|
r = !0;
|
|
4134
4140
|
}, 0), e[ot] = function(o) {
|
|
4135
4141
|
if ((!e || !e.contains(o.target)) && s && r && typeof s == "function")
|
|
4136
4142
|
return s.call(a, o);
|
|
4137
|
-
}, document.addEventListener(
|
|
4138
|
-
},
|
|
4139
|
-
document.removeEventListener(
|
|
4143
|
+
}, document.addEventListener(Ra(), e[ot], !1);
|
|
4144
|
+
}, Fa = function(e) {
|
|
4145
|
+
document.removeEventListener(Ra(), e[ot], !1), delete e[ot];
|
|
4140
4146
|
}, Ho = function(e, t, n) {
|
|
4141
|
-
t.value !== t.oldValue &&
|
|
4147
|
+
t.value !== t.oldValue && Ma(e, t, n);
|
|
4142
4148
|
}, Bo = {
|
|
4143
4149
|
install: function(e) {
|
|
4144
4150
|
e.directive("click-away", jo);
|
|
4145
4151
|
}
|
|
4146
4152
|
}, jo = {
|
|
4147
|
-
mounted:
|
|
4153
|
+
mounted: Ma,
|
|
4148
4154
|
updated: Ho,
|
|
4149
|
-
unmounted:
|
|
4155
|
+
unmounted: Fa
|
|
4150
4156
|
};
|
|
4151
4157
|
function Xo(e) {
|
|
4152
4158
|
const t = {
|
|
@@ -4166,9 +4172,10 @@ class al {
|
|
|
4166
4172
|
token: r,
|
|
4167
4173
|
orgCode: o,
|
|
4168
4174
|
loginRouteName: l,
|
|
4169
|
-
|
|
4175
|
+
login: u,
|
|
4176
|
+
keyboard: _
|
|
4170
4177
|
} = t;
|
|
4171
|
-
this.token = r || Xo(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.loginTranslationKeys = [], this.keyboard =
|
|
4178
|
+
this.token = r || Xo(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.initRouterGuards(), this.initI18n(t), Ua.bind(this.keyboard, (p) => {
|
|
4172
4179
|
!this.configInstance && this.name != this.loginRouteName && (this.configInstance = this.createModal(this.name), this.configInstance.openModal({ name: this.name }));
|
|
4173
4180
|
}), this.setupLanguageChangeListener();
|
|
4174
4181
|
}
|
|
@@ -4261,7 +4268,7 @@ class al {
|
|
|
4261
4268
|
if (n && !t)
|
|
4262
4269
|
return n;
|
|
4263
4270
|
{
|
|
4264
|
-
const a = await
|
|
4271
|
+
const a = await Pa({
|
|
4265
4272
|
appCode: this.appCode,
|
|
4266
4273
|
token: this.token
|
|
4267
4274
|
});
|
|
@@ -4302,6 +4309,7 @@ class al {
|
|
|
4302
4309
|
loginRouteName: this.loginRouteName,
|
|
4303
4310
|
// 登录页路由名称
|
|
4304
4311
|
loginTranslationKeys: this.loginTranslationKeys,
|
|
4312
|
+
login: this.login,
|
|
4305
4313
|
emitter: n
|
|
4306
4314
|
// 将事件总线作为 prop 传递
|
|
4307
4315
|
}).use(_n).use(Bo).mount(document.createElement("div"));
|