china-mobile-international-custom-components 0.0.26 → 0.0.28
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/es/ApplicationIcon.mjs +85 -0
- package/es/AvailableRangePreview.mjs +1 -1
- package/es/AvailableRangeSetting.mjs +68 -63
- package/es/CustomSidebar.mjs +1 -1
- package/es/assets/AvailableRangePreview.css +1 -0
- package/es/assets/AvailableRangeSetting.css +1 -0
- package/es/assets/CustomSidebar.css +1 -0
- package/es/assets/layout2.css +1 -1
- package/es/chunks/AvailableRangePreview.D4mZe1lQ.js +217 -0
- package/es/chunks/AvailableRangeSetting.BkSLnQ6N.js +215 -0
- package/es/chunks/CustomSidebar.BWGoPtLi.js +506 -0
- package/es/chunks/CustomTitle.BLZ7evms.js +5 -0
- package/es/chunks/CustomToggle.CP3M2_f3.js +165 -0
- package/es/chunks/PageContainer.D-G32lvP.js +329 -0
- package/es/chunks/_plugin-vue_export-helper.CVVE_0_F.js +13 -0
- package/es/chunks/_plugin-vue_export-helper.Cf-_TWPK.js +6 -0
- package/es/chunks/index.AHEDCg43.js +160 -0
- package/es/chunks/index.B67AnSJI.js +154 -0
- package/es/chunks/index.B9F4VYQK.js +118 -0
- package/es/chunks/index.BPxF6Amx.js +157 -0
- package/es/chunks/index.C2gKjqoA.js +209 -0
- package/es/chunks/index.DTtNnKDH.js +288 -0
- package/es/chunks/index.Dh5IGfxO.js +290 -0
- package/es/chunks/index.DtBeJlu6.js +142 -0
- package/es/chunks/index.kR57MtNP.js +211 -0
- package/es/chunks/index.wQj5YKPy.js +288 -0
- package/es/chunks/layout.BE8_kCeR.js +619 -0
- package/es/chunks/layout.C0EtkrZg.js +639 -0
- package/es/chunks/layout.C6AMos7n.js +17 -0
- package/es/chunks/layout.CWFXohJu.js +622 -0
- package/es/chunks/layout.R5FQNRjS.js +619 -0
- package/es/chunks/layout.nKB_kc-U.js +26 -0
- package/es/chunks/utils.BhlZXNZ6.js +19 -0
- package/es/index.mjs +643 -630
- package/lib/ApplicationIcon.js +1 -0
- package/lib/AvailableRangePreview.js +1 -1
- package/lib/AvailableRangeSetting.js +1 -1
- package/lib/CustomSidebar.js +1 -1
- package/lib/assets/AvailableRangePreview.css +1 -0
- package/lib/assets/AvailableRangeSetting.css +1 -0
- package/lib/assets/CustomSidebar.css +1 -0
- package/lib/assets/layout2.css +1 -1
- package/lib/chunks/AvailableRangePreview.CkgZsXP0.js +1 -0
- package/lib/chunks/AvailableRangeSetting.CF-jHm4x.js +1 -0
- package/lib/chunks/CustomSidebar.CMYJFb2P.js +1 -0
- package/lib/chunks/CustomTitle.BkFZ-ZIq.js +1 -0
- package/lib/chunks/CustomToggle.C0PpzKPP.js +1 -0
- package/lib/chunks/PageContainer.GH56wASV.js +1 -0
- package/lib/chunks/_plugin-vue_export-helper.C55-DZV2.js +1 -0
- package/lib/chunks/_plugin-vue_export-helper.DAGvX2Jf.js +1 -0
- package/lib/chunks/index.BfHfKST0.js +1 -0
- package/lib/chunks/index.Bk55us0s.js +1 -0
- package/lib/chunks/index.BlXappa4.js +1 -0
- package/lib/chunks/index.CCxHaoi4.js +1 -0
- package/lib/chunks/index.CSYGhK9M.js +1 -0
- package/lib/chunks/index.C_IlZrzE.js +1 -0
- package/lib/chunks/index.DUGtabLJ.js +1 -0
- package/lib/chunks/index.Dakz8S3g.js +1 -0
- package/lib/chunks/index.DydPD8Lc.js +1 -0
- package/lib/chunks/index.k_hSuA6i.js +1 -0
- package/lib/chunks/layout.BJjU9nKW.js +1 -0
- package/lib/chunks/layout.BO1q-dAZ.js +1 -0
- package/lib/chunks/layout.BQigNrr5.js +1 -0
- package/lib/chunks/layout.ClFtiz-t.js +1 -0
- package/lib/chunks/layout.CmDwUHZo.js +1 -0
- package/lib/chunks/layout.CqbDoD_v.js +1 -0
- package/lib/chunks/layout.CwJgDGuR.js +1 -0
- package/lib/chunks/utils.BT5Uuz2Q.js +1 -0
- package/lib/index.js +6 -6
- package/package.json +4 -4
package/es/index.mjs
CHANGED
|
@@ -1,32 +1,39 @@
|
|
|
1
|
-
import { CustomToggle as
|
|
1
|
+
import { CustomToggle as Lr } from "./CustomToggle.mjs";
|
|
2
2
|
import { CustomTitle as br } from "./CustomTitle.mjs";
|
|
3
3
|
import { COLUMN_TYPES as Or, MODES as Ir, PageContainer as Cr } from "./PageContainer.mjs";
|
|
4
|
-
import { l as
|
|
4
|
+
import { l as Ar, a as vr, n as Dr, M as Sr, N as Pr, S as Fr, T as yr, d as Rr, e as kr, f as Mr, h as wr, k as Ur, m as Vr, g as $r, j as xr, c as Br, b as Wr, i as Gr, p as Yr, t as Hr } from "./chunks/layout.C0EtkrZg.js";
|
|
5
5
|
import { AvailableRangeSetting as Kr } from "./AvailableRangeSetting.mjs";
|
|
6
|
-
import { A as jr,
|
|
7
|
-
import {
|
|
6
|
+
import { A as jr, D as Xr, M as Jr, R as Qr, T as qr, a as Zr, r as zr } from "./chunks/index.Dh5IGfxO.js";
|
|
7
|
+
import { APPLICATION_TYPE as ea, ApplicationIcon as ta, SOURCE_TYPE as na } from "./ApplicationIcon.mjs";
|
|
8
|
+
import { ElMessageBox as ra, dayjs as aa } from "element-plus";
|
|
8
9
|
import * as Nt from "vue";
|
|
9
|
-
import { effectScope as
|
|
10
|
+
import { effectScope as sa, ref as oa, shallowRef as la, computed as Ue, watch as It, isRef as ia, defineComponent as Ut, h as wn, Fragment as Un, inject as ua, onMounted as ca, onUnmounted as fa, createVNode as _a, Text as ma, getCurrentInstance as da } from "vue";
|
|
10
11
|
const ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11
12
|
__proto__: null,
|
|
13
|
+
APPLICATION_TYPE: ea,
|
|
14
|
+
ApplicationIcon: ta,
|
|
12
15
|
AvailableRangePreview: jr,
|
|
13
16
|
AvailableRangeSetting: Kr,
|
|
14
17
|
COLUMN_TYPES: Or,
|
|
15
|
-
CustomSidebar:
|
|
18
|
+
CustomSidebar: Ar,
|
|
16
19
|
CustomTitle: br,
|
|
17
|
-
CustomToggle:
|
|
18
|
-
|
|
20
|
+
CustomToggle: Lr,
|
|
21
|
+
DEFAULT_SHOW_COUNT: Xr,
|
|
22
|
+
MEMBER_DEPARTMENT_TYPES: Jr,
|
|
23
|
+
MENU_COLOR_STRATEGY: vr,
|
|
19
24
|
MENU_LOADING_STATES: Dr,
|
|
20
25
|
MENU_TYPE: Sr,
|
|
21
26
|
MODES: Ir,
|
|
22
|
-
NODE_CLICK_TYPES:
|
|
27
|
+
NODE_CLICK_TYPES: Pr,
|
|
23
28
|
PageContainer: Cr,
|
|
24
|
-
RANGE_TYPES:
|
|
25
|
-
|
|
29
|
+
RANGE_TYPES: Qr,
|
|
30
|
+
SOURCE_TYPE: na,
|
|
31
|
+
SPECIAL_ROUTES: Fr,
|
|
26
32
|
TREE_PROPS: yr,
|
|
27
|
-
TagList:
|
|
28
|
-
|
|
29
|
-
|
|
33
|
+
TagList: qr,
|
|
34
|
+
availableRangeTreeProps: Zr,
|
|
35
|
+
collapseNodeKeys: Rr,
|
|
36
|
+
expandNodeKeys: kr,
|
|
30
37
|
findExpandPath: Mr,
|
|
31
38
|
findExpandPathById: wr,
|
|
32
39
|
findMenuByPath: Ur,
|
|
@@ -37,7 +44,7 @@ const ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
37
44
|
isParentRouteActive: Wr,
|
|
38
45
|
isPathInMenu: Gr,
|
|
39
46
|
processMenuTreeWithLeaf: Yr,
|
|
40
|
-
rangeOptions:
|
|
47
|
+
rangeOptions: zr,
|
|
41
48
|
transformMenuData: Hr
|
|
42
49
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
43
50
|
function ue(e, t) {
|
|
@@ -48,21 +55,21 @@ function Vt(e) {
|
|
|
48
55
|
zt[e] || (zt[e] = !0, ue(e));
|
|
49
56
|
}
|
|
50
57
|
const oe = typeof window < "u";
|
|
51
|
-
let ee,
|
|
58
|
+
let ee, Te;
|
|
52
59
|
if (process.env.NODE_ENV !== "production") {
|
|
53
60
|
const e = oe && window.performance;
|
|
54
61
|
e && e.mark && e.measure && e.clearMarks && // @ts-ignore browser compat
|
|
55
62
|
e.clearMeasures && (ee = (t) => {
|
|
56
63
|
e.mark(t);
|
|
57
|
-
},
|
|
64
|
+
}, Te = (t, n, r) => {
|
|
58
65
|
e.measure(t, n, r), e.clearMarks(n), e.clearMarks(r);
|
|
59
66
|
});
|
|
60
67
|
}
|
|
61
|
-
const
|
|
68
|
+
const Ea = /\{([0-9a-zA-Z]+)\}/g;
|
|
62
69
|
function ze(e, ...t) {
|
|
63
|
-
return t.length === 1 &&
|
|
70
|
+
return t.length === 1 && k(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(Ea, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
|
|
64
71
|
}
|
|
65
|
-
const ce = (e, t = !1) => t ? Symbol.for(e) : Symbol(e),
|
|
72
|
+
const ce = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), ga = (e, t, n) => pa({ l: e, k: t, s: n }), pa = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), j = (e) => typeof e == "number" && isFinite(e), Na = (e) => $t(e) === "[object Date]", De = (e) => $t(e) === "[object RegExp]", et = (e) => R(e) && Object.keys(e).length === 0, J = Object.assign, ha = Object.create, $ = (e = null) => ha(e);
|
|
66
73
|
let en;
|
|
67
74
|
const he = () => en || (en = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : $());
|
|
68
75
|
function tn(e) {
|
|
@@ -71,7 +78,7 @@ function tn(e) {
|
|
|
71
78
|
function nn(e) {
|
|
72
79
|
return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
|
|
73
80
|
}
|
|
74
|
-
function
|
|
81
|
+
function Ta(e) {
|
|
75
82
|
return e = e.replace(/(\w+)\s*=\s*"([^"]*)"/g, (r, a, s) => `${a}="${nn(s)}"`), e = e.replace(/(\w+)\s*=\s*'([^']*)'/g, (r, a, s) => `${a}='${nn(s)}'`), /\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e) && (process.env.NODE_ENV !== "production" && ue("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."), e = e.replace(/(\s+)(on)(\w+\s*=)/gi, "$1on$3")), [
|
|
76
83
|
// In href, src, action, formaction attributes
|
|
77
84
|
/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,
|
|
@@ -81,16 +88,16 @@ function da(e) {
|
|
|
81
88
|
e = e.replace(r, "$1javascript:");
|
|
82
89
|
}), e;
|
|
83
90
|
}
|
|
84
|
-
const
|
|
91
|
+
const La = Object.prototype.hasOwnProperty;
|
|
85
92
|
function se(e, t) {
|
|
86
|
-
return
|
|
93
|
+
return La.call(e, t);
|
|
87
94
|
}
|
|
88
|
-
const G = Array.isArray, x = (e) => typeof e == "function", O = (e) => typeof e == "string", M = (e) => typeof e == "boolean",
|
|
95
|
+
const G = Array.isArray, x = (e) => typeof e == "function", O = (e) => typeof e == "string", M = (e) => typeof e == "boolean", k = (e) => e !== null && typeof e == "object", ba = (e) => k(e) && x(e.then) && x(e.catch), Vn = Object.prototype.toString, $t = (e) => Vn.call(e), R = (e) => $t(e) === "[object Object]", Oa = (e) => e == null ? "" : G(e) || R(e) && e.toString === Vn ? JSON.stringify(e, null, 2) : String(e);
|
|
89
96
|
function xt(e, t = "") {
|
|
90
97
|
return e.reduce((n, r, a) => a === 0 ? n + r : n + t + r, "");
|
|
91
98
|
}
|
|
92
99
|
const rn = 2;
|
|
93
|
-
function
|
|
100
|
+
function Ia(e, t = 0, n = e.length) {
|
|
94
101
|
const r = e.split(/\r?\n/);
|
|
95
102
|
let a = 0;
|
|
96
103
|
const s = [];
|
|
@@ -103,8 +110,8 @@ function Na(e, t = 0, n = e.length) {
|
|
|
103
110
|
s.push(`${c}${" ".repeat(3 - String(c).length)}| ${r[i]}`);
|
|
104
111
|
const E = r[i].length;
|
|
105
112
|
if (i === o) {
|
|
106
|
-
const b = t - (a - E) + 1,
|
|
107
|
-
s.push(" | " + " ".repeat(b) + "^".repeat(
|
|
113
|
+
const b = t - (a - E) + 1, T = Math.max(1, n > a ? E - b : n - t);
|
|
114
|
+
s.push(" | " + " ".repeat(b) + "^".repeat(T));
|
|
108
115
|
} else if (i > o) {
|
|
109
116
|
if (n > a) {
|
|
110
117
|
const b = Math.max(Math.min(n - a, E), 1);
|
|
@@ -135,7 +142,7 @@ function Bt() {
|
|
|
135
142
|
}
|
|
136
143
|
};
|
|
137
144
|
}
|
|
138
|
-
const Xe = (e) => !
|
|
145
|
+
const Xe = (e) => !k(e) || G(e);
|
|
139
146
|
function qe(e, t) {
|
|
140
147
|
if (Xe(e) || Xe(t))
|
|
141
148
|
throw new Error("Invalid value");
|
|
@@ -143,17 +150,17 @@ function qe(e, t) {
|
|
|
143
150
|
for (; n.length; ) {
|
|
144
151
|
const { src: r, des: a } = n.pop();
|
|
145
152
|
Object.keys(r).forEach((s) => {
|
|
146
|
-
s !== "__proto__" && (
|
|
153
|
+
s !== "__proto__" && (k(r[s]) && !k(a[s]) && (a[s] = Array.isArray(r[s]) ? [] : $()), Xe(a[s]) || Xe(r[s]) ? a[s] = r[s] : n.push({ src: r[s], des: a[s] }));
|
|
147
154
|
});
|
|
148
155
|
}
|
|
149
156
|
}
|
|
150
|
-
function
|
|
157
|
+
function Ca(e, t, n) {
|
|
151
158
|
return { line: e, column: t, offset: n };
|
|
152
159
|
}
|
|
153
160
|
function Ct(e, t, n) {
|
|
154
161
|
return { start: e, end: t };
|
|
155
162
|
}
|
|
156
|
-
const
|
|
163
|
+
const P = {
|
|
157
164
|
// tokenizer error codes
|
|
158
165
|
EXPECTED_TOKEN: 1,
|
|
159
166
|
INVALID_TOKEN_IN_PLACEHOLDER: 2,
|
|
@@ -174,45 +181,45 @@ const F = {
|
|
|
174
181
|
UNHANDLED_CODEGEN_NODE_TYPE: 15,
|
|
175
182
|
// minifier error codes
|
|
176
183
|
UNHANDLED_MINIFIER_NODE_TYPE: 16
|
|
177
|
-
},
|
|
184
|
+
}, Aa = 17, va = {
|
|
178
185
|
// tokenizer error messages
|
|
179
|
-
[
|
|
180
|
-
[
|
|
181
|
-
[
|
|
182
|
-
[
|
|
183
|
-
[
|
|
184
|
-
[
|
|
185
|
-
[
|
|
186
|
-
[
|
|
187
|
-
[
|
|
188
|
-
[
|
|
186
|
+
[P.EXPECTED_TOKEN]: "Expected token: '{0}'",
|
|
187
|
+
[P.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
|
|
188
|
+
[P.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]: "Unterminated single quote in placeholder",
|
|
189
|
+
[P.UNKNOWN_ESCAPE_SEQUENCE]: "Unknown escape sequence: \\{0}",
|
|
190
|
+
[P.INVALID_UNICODE_ESCAPE_SEQUENCE]: "Invalid unicode escape sequence: {0}",
|
|
191
|
+
[P.UNBALANCED_CLOSING_BRACE]: "Unbalanced closing brace",
|
|
192
|
+
[P.UNTERMINATED_CLOSING_BRACE]: "Unterminated closing brace",
|
|
193
|
+
[P.EMPTY_PLACEHOLDER]: "Empty placeholder",
|
|
194
|
+
[P.NOT_ALLOW_NEST_PLACEHOLDER]: "Not allowed nest placeholder",
|
|
195
|
+
[P.INVALID_LINKED_FORMAT]: "Invalid linked format",
|
|
189
196
|
// parser error messages
|
|
190
|
-
[
|
|
191
|
-
[
|
|
192
|
-
[
|
|
193
|
-
[
|
|
197
|
+
[P.MUST_HAVE_MESSAGES_IN_PLURAL]: "Plural must have messages",
|
|
198
|
+
[P.UNEXPECTED_EMPTY_LINKED_MODIFIER]: "Unexpected empty linked modifier",
|
|
199
|
+
[P.UNEXPECTED_EMPTY_LINKED_KEY]: "Unexpected empty linked key",
|
|
200
|
+
[P.UNEXPECTED_LEXICAL_ANALYSIS]: "Unexpected lexical analysis in token: '{0}'",
|
|
194
201
|
// generator error messages
|
|
195
|
-
[
|
|
202
|
+
[P.UNHANDLED_CODEGEN_NODE_TYPE]: "unhandled codegen node type: '{0}'",
|
|
196
203
|
// minimizer error messages
|
|
197
|
-
[
|
|
204
|
+
[P.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
|
|
198
205
|
};
|
|
199
206
|
function ye(e, t, n = {}) {
|
|
200
|
-
const { domain: r, messages: a, args: s } = n, o = process.env.NODE_ENV !== "production" ? ze((a ||
|
|
207
|
+
const { domain: r, messages: a, args: s } = n, o = process.env.NODE_ENV !== "production" ? ze((a || va)[e] || "", ...s || []) : e, i = new SyntaxError(String(o));
|
|
201
208
|
return i.code = e, t && (i.location = t), i.domain = r, i;
|
|
202
209
|
}
|
|
203
|
-
function
|
|
210
|
+
function Da(e) {
|
|
204
211
|
throw e;
|
|
205
212
|
}
|
|
206
|
-
const
|
|
207
|
-
`,
|
|
208
|
-
function
|
|
213
|
+
const Sa = /<\/?[\w\s="/.':;#-\/]+>/, Pa = (e) => Sa.test(e), le = " ", Fa = "\r", Q = `
|
|
214
|
+
`, ya = "\u2028", Ra = "\u2029";
|
|
215
|
+
function ka(e) {
|
|
209
216
|
const t = e;
|
|
210
217
|
let n = 0, r = 1, a = 1, s = 0;
|
|
211
|
-
const o = (g) => t[g] ===
|
|
218
|
+
const o = (g) => t[g] === Fa && t[g + 1] === Q, i = (g) => t[g] === Q, c = (g) => t[g] === Ra, E = (g) => t[g] === ya, b = (g) => o(g) || i(g) || c(g) || E(g), T = () => n, N = () => r, v = () => a, F = () => s, A = (g) => o(g) || c(g) || E(g) ? Q : t[g], D = () => A(n), f = () => A(n + s);
|
|
212
219
|
function m() {
|
|
213
220
|
return s = 0, b(n) && (r++, a = 0), o(n) && n++, n++, a++, t[n];
|
|
214
221
|
}
|
|
215
|
-
function
|
|
222
|
+
function L() {
|
|
216
223
|
return o(n + s) && s++, s++, t[n + s];
|
|
217
224
|
}
|
|
218
225
|
function d() {
|
|
@@ -228,23 +235,23 @@ function Da(e) {
|
|
|
228
235
|
s = 0;
|
|
229
236
|
}
|
|
230
237
|
return {
|
|
231
|
-
index:
|
|
238
|
+
index: T,
|
|
232
239
|
line: N,
|
|
233
|
-
column:
|
|
234
|
-
peekOffset:
|
|
235
|
-
charAt:
|
|
240
|
+
column: v,
|
|
241
|
+
peekOffset: F,
|
|
242
|
+
charAt: A,
|
|
236
243
|
currentChar: D,
|
|
237
244
|
currentPeek: f,
|
|
238
245
|
next: m,
|
|
239
|
-
peek:
|
|
246
|
+
peek: L,
|
|
240
247
|
reset: d,
|
|
241
248
|
resetPeek: I,
|
|
242
249
|
skipToPeek: C
|
|
243
250
|
};
|
|
244
251
|
}
|
|
245
|
-
const _e = void 0,
|
|
246
|
-
function
|
|
247
|
-
const n = t.location !== !1, r =
|
|
252
|
+
const _e = void 0, Ma = ".", an = "'", wa = "tokenizer";
|
|
253
|
+
function Ua(e, t = {}) {
|
|
254
|
+
const n = t.location !== !1, r = ka(e), a = () => r.index(), s = () => Ca(r.line(), r.column(), r.index()), o = s(), i = a(), c = {
|
|
248
255
|
currentType: 13,
|
|
249
256
|
offset: i,
|
|
250
257
|
startLoc: o,
|
|
@@ -257,11 +264,11 @@ function Pa(e, t = {}) {
|
|
|
257
264
|
inLinked: !1,
|
|
258
265
|
text: ""
|
|
259
266
|
}, E = () => c, { onError: b } = t;
|
|
260
|
-
function
|
|
267
|
+
function T(l, u, p, ...S) {
|
|
261
268
|
const W = E();
|
|
262
269
|
if (u.column += p, u.offset += p, b) {
|
|
263
270
|
const H = n ? Ct(W.startLoc, u) : null, w = ye(l, H, {
|
|
264
|
-
domain:
|
|
271
|
+
domain: wa,
|
|
265
272
|
args: S
|
|
266
273
|
});
|
|
267
274
|
b(w);
|
|
@@ -272,22 +279,22 @@ function Pa(e, t = {}) {
|
|
|
272
279
|
const S = { type: u };
|
|
273
280
|
return n && (S.loc = Ct(l.startLoc, l.endLoc)), p != null && (S.value = p), S;
|
|
274
281
|
}
|
|
275
|
-
const
|
|
282
|
+
const v = (l) => N(
|
|
276
283
|
l,
|
|
277
284
|
13
|
|
278
285
|
/* TokenTypes.EOF */
|
|
279
286
|
);
|
|
280
|
-
function
|
|
281
|
-
return l.currentChar() === u ? (l.next(), u) : (
|
|
287
|
+
function F(l, u) {
|
|
288
|
+
return l.currentChar() === u ? (l.next(), u) : (T(P.EXPECTED_TOKEN, s(), 0, u), "");
|
|
282
289
|
}
|
|
283
|
-
function
|
|
290
|
+
function A(l) {
|
|
284
291
|
let u = "";
|
|
285
292
|
for (; l.currentPeek() === le || l.currentPeek() === Q; )
|
|
286
293
|
u += l.currentPeek(), l.peek();
|
|
287
294
|
return u;
|
|
288
295
|
}
|
|
289
296
|
function D(l) {
|
|
290
|
-
const u =
|
|
297
|
+
const u = A(l);
|
|
291
298
|
return l.skipToPeek(), u;
|
|
292
299
|
}
|
|
293
300
|
function f(l) {
|
|
@@ -304,11 +311,11 @@ function Pa(e, t = {}) {
|
|
|
304
311
|
const u = l.charCodeAt(0);
|
|
305
312
|
return u >= 48 && u <= 57;
|
|
306
313
|
}
|
|
307
|
-
function
|
|
314
|
+
function L(l, u) {
|
|
308
315
|
const { currentType: p } = u;
|
|
309
316
|
if (p !== 2)
|
|
310
317
|
return !1;
|
|
311
|
-
|
|
318
|
+
A(l);
|
|
312
319
|
const S = f(l.currentPeek());
|
|
313
320
|
return l.resetPeek(), S;
|
|
314
321
|
}
|
|
@@ -316,7 +323,7 @@ function Pa(e, t = {}) {
|
|
|
316
323
|
const { currentType: p } = u;
|
|
317
324
|
if (p !== 2)
|
|
318
325
|
return !1;
|
|
319
|
-
|
|
326
|
+
A(l);
|
|
320
327
|
const S = l.currentPeek() === "-" ? l.peek() : l.currentPeek(), W = m(S);
|
|
321
328
|
return l.resetPeek(), W;
|
|
322
329
|
}
|
|
@@ -324,7 +331,7 @@ function Pa(e, t = {}) {
|
|
|
324
331
|
const { currentType: p } = u;
|
|
325
332
|
if (p !== 2)
|
|
326
333
|
return !1;
|
|
327
|
-
|
|
334
|
+
A(l);
|
|
328
335
|
const S = l.currentPeek() === an;
|
|
329
336
|
return l.resetPeek(), S;
|
|
330
337
|
}
|
|
@@ -332,7 +339,7 @@ function Pa(e, t = {}) {
|
|
|
332
339
|
const { currentType: p } = u;
|
|
333
340
|
if (p !== 7)
|
|
334
341
|
return !1;
|
|
335
|
-
|
|
342
|
+
A(l);
|
|
336
343
|
const S = l.currentPeek() === ".";
|
|
337
344
|
return l.resetPeek(), S;
|
|
338
345
|
}
|
|
@@ -340,7 +347,7 @@ function Pa(e, t = {}) {
|
|
|
340
347
|
const { currentType: p } = u;
|
|
341
348
|
if (p !== 8)
|
|
342
349
|
return !1;
|
|
343
|
-
|
|
350
|
+
A(l);
|
|
344
351
|
const S = f(l.currentPeek());
|
|
345
352
|
return l.resetPeek(), S;
|
|
346
353
|
}
|
|
@@ -348,7 +355,7 @@ function Pa(e, t = {}) {
|
|
|
348
355
|
const { currentType: p } = u;
|
|
349
356
|
if (!(p === 7 || p === 11))
|
|
350
357
|
return !1;
|
|
351
|
-
|
|
358
|
+
A(l);
|
|
352
359
|
const S = l.currentPeek() === ":";
|
|
353
360
|
return l.resetPeek(), S;
|
|
354
361
|
}
|
|
@@ -363,7 +370,7 @@ function Pa(e, t = {}) {
|
|
|
363
370
|
return l.resetPeek(), W;
|
|
364
371
|
}
|
|
365
372
|
function X(l) {
|
|
366
|
-
|
|
373
|
+
A(l);
|
|
367
374
|
const u = l.currentPeek() === "|";
|
|
368
375
|
return l.resetPeek(), u;
|
|
369
376
|
}
|
|
@@ -417,7 +424,7 @@ function Pa(e, t = {}) {
|
|
|
417
424
|
function fe(l) {
|
|
418
425
|
return Y(l, it);
|
|
419
426
|
}
|
|
420
|
-
function
|
|
427
|
+
function Re(l) {
|
|
421
428
|
let u = "", p = "";
|
|
422
429
|
for (; u = lt(l); )
|
|
423
430
|
p += u;
|
|
@@ -450,25 +457,25 @@ function Pa(e, t = {}) {
|
|
|
450
457
|
const S = l.currentChar();
|
|
451
458
|
if (S && S !== "}" && S !== _e && S !== le && S !== Q && S !== " ") {
|
|
452
459
|
const W = Ke(l);
|
|
453
|
-
return
|
|
460
|
+
return T(P.INVALID_TOKEN_IN_PLACEHOLDER, s(), 0, p + W), p + W;
|
|
454
461
|
}
|
|
455
|
-
return l.currentChar() === _e &&
|
|
462
|
+
return l.currentChar() === _e && T(P.UNTERMINATED_CLOSING_BRACE, s(), 0), p;
|
|
456
463
|
}
|
|
457
464
|
function ft(l) {
|
|
458
465
|
D(l);
|
|
459
466
|
let u = "";
|
|
460
|
-
return l.currentChar() === "-" ? (l.next(), u += `-${
|
|
467
|
+
return l.currentChar() === "-" ? (l.next(), u += `-${Re(l)}`) : u += Re(l), l.currentChar() === _e && T(P.UNTERMINATED_CLOSING_BRACE, s(), 0), u;
|
|
461
468
|
}
|
|
462
469
|
function _t(l) {
|
|
463
470
|
return l !== an && l !== Q;
|
|
464
471
|
}
|
|
465
472
|
function qt(l) {
|
|
466
|
-
D(l),
|
|
473
|
+
D(l), F(l, "'");
|
|
467
474
|
let u = "", p = "";
|
|
468
475
|
for (; u = Y(l, _t); )
|
|
469
476
|
u === "\\" ? p += mt(l) : p += u;
|
|
470
477
|
const S = l.currentChar();
|
|
471
|
-
return S === Q || S === _e ? (
|
|
478
|
+
return S === Q || S === _e ? (T(P.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, s(), 0), S === Q && (l.next(), F(l, "'")), p) : (F(l, "'"), p);
|
|
472
479
|
}
|
|
473
480
|
function mt(l) {
|
|
474
481
|
const u = l.currentChar();
|
|
@@ -481,16 +488,16 @@ function Pa(e, t = {}) {
|
|
|
481
488
|
case "U":
|
|
482
489
|
return He(l, u, 6);
|
|
483
490
|
default:
|
|
484
|
-
return
|
|
491
|
+
return T(P.UNKNOWN_ESCAPE_SEQUENCE, s(), 0, u), "";
|
|
485
492
|
}
|
|
486
493
|
}
|
|
487
494
|
function He(l, u, p) {
|
|
488
|
-
|
|
495
|
+
F(l, u);
|
|
489
496
|
let S = "";
|
|
490
497
|
for (let W = 0; W < p; W++) {
|
|
491
498
|
const H = fe(l);
|
|
492
499
|
if (!H) {
|
|
493
|
-
|
|
500
|
+
T(P.INVALID_UNICODE_ESCAPE_SEQUENCE, s(), 0, `\\${u}${S}${l.currentChar()}`);
|
|
494
501
|
break;
|
|
495
502
|
}
|
|
496
503
|
S += H;
|
|
@@ -520,9 +527,9 @@ function Pa(e, t = {}) {
|
|
|
520
527
|
};
|
|
521
528
|
return u("");
|
|
522
529
|
}
|
|
523
|
-
function
|
|
530
|
+
function ke(l) {
|
|
524
531
|
D(l);
|
|
525
|
-
const u =
|
|
532
|
+
const u = F(
|
|
526
533
|
l,
|
|
527
534
|
"|"
|
|
528
535
|
/* TokenChars.Pipe */
|
|
@@ -533,35 +540,35 @@ function Pa(e, t = {}) {
|
|
|
533
540
|
let p = null;
|
|
534
541
|
switch (l.currentChar()) {
|
|
535
542
|
case "{":
|
|
536
|
-
return u.braceNest >= 1 &&
|
|
543
|
+
return u.braceNest >= 1 && T(P.NOT_ALLOW_NEST_PLACEHOLDER, s(), 0), l.next(), p = N(
|
|
537
544
|
u,
|
|
538
545
|
2,
|
|
539
546
|
"{"
|
|
540
547
|
/* TokenChars.BraceLeft */
|
|
541
548
|
), D(l), u.braceNest++, p;
|
|
542
549
|
case "}":
|
|
543
|
-
return u.braceNest > 0 && u.currentType === 2 &&
|
|
550
|
+
return u.braceNest > 0 && u.currentType === 2 && T(P.EMPTY_PLACEHOLDER, s(), 0), l.next(), p = N(
|
|
544
551
|
u,
|
|
545
552
|
3,
|
|
546
553
|
"}"
|
|
547
554
|
/* TokenChars.BraceRight */
|
|
548
555
|
), u.braceNest--, u.braceNest > 0 && D(l), u.inLinked && u.braceNest === 0 && (u.inLinked = !1), p;
|
|
549
556
|
case "@":
|
|
550
|
-
return u.braceNest > 0 &&
|
|
557
|
+
return u.braceNest > 0 && T(P.UNTERMINATED_CLOSING_BRACE, s(), 0), p = ge(l, u) || v(u), u.braceNest = 0, p;
|
|
551
558
|
default: {
|
|
552
559
|
let W = !0, H = !0, w = !0;
|
|
553
560
|
if (X(l))
|
|
554
|
-
return u.braceNest > 0 &&
|
|
561
|
+
return u.braceNest > 0 && T(P.UNTERMINATED_CLOSING_BRACE, s(), 0), p = N(u, 1, ke(l)), u.braceNest = 0, u.inLinked = !1, p;
|
|
555
562
|
if (u.braceNest > 0 && (u.currentType === 4 || u.currentType === 5 || u.currentType === 6))
|
|
556
|
-
return
|
|
557
|
-
if (W =
|
|
563
|
+
return T(P.UNTERMINATED_CLOSING_BRACE, s(), 0), u.braceNest = 0, we(l, u);
|
|
564
|
+
if (W = L(l, u))
|
|
558
565
|
return p = N(u, 4, ct(l)), D(l), p;
|
|
559
566
|
if (H = d(l, u))
|
|
560
567
|
return p = N(u, 5, ft(l)), D(l), p;
|
|
561
568
|
if (w = I(l, u))
|
|
562
569
|
return p = N(u, 6, qt(l)), D(l), p;
|
|
563
570
|
if (!W && !H && !w)
|
|
564
|
-
return p = N(u, 12, Ke(l)),
|
|
571
|
+
return p = N(u, 12, Ke(l)), T(P.INVALID_TOKEN_IN_PLACEHOLDER, s(), 0, p.value), D(l), p;
|
|
565
572
|
break;
|
|
566
573
|
}
|
|
567
574
|
}
|
|
@@ -571,7 +578,7 @@ function Pa(e, t = {}) {
|
|
|
571
578
|
const { currentType: p } = u;
|
|
572
579
|
let S = null;
|
|
573
580
|
const W = l.currentChar();
|
|
574
|
-
switch ((p === 7 || p === 8 || p === 11 || p === 9) && (W === Q || W === le) &&
|
|
581
|
+
switch ((p === 7 || p === 8 || p === 11 || p === 9) && (W === Q || W === le) && T(P.INVALID_LINKED_FORMAT, s(), 0), W) {
|
|
575
582
|
case "@":
|
|
576
583
|
return l.next(), S = N(
|
|
577
584
|
u,
|
|
@@ -594,7 +601,7 @@ function Pa(e, t = {}) {
|
|
|
594
601
|
/* TokenChars.LinkedDelimiter */
|
|
595
602
|
);
|
|
596
603
|
default:
|
|
597
|
-
return X(l) ? (S = N(u, 1,
|
|
604
|
+
return X(l) ? (S = N(u, 1, ke(l)), u.braceNest = 0, u.inLinked = !1, S) : C(l, u) || y(l, u) ? (D(l), ge(l, u)) : g(l, u) ? (D(l), N(u, 11, Et(l))) : U(l, u) ? (D(l), W === "{" ? Me(l, u) || S : N(u, 10, gt(l))) : (p === 7 && T(P.INVALID_LINKED_FORMAT, s(), 0), u.braceNest = 0, u.inLinked = !1, we(l, u));
|
|
598
605
|
}
|
|
599
606
|
}
|
|
600
607
|
function we(l, u) {
|
|
@@ -603,24 +610,24 @@ function Pa(e, t = {}) {
|
|
|
603
610
|
/* TokenTypes.EOF */
|
|
604
611
|
};
|
|
605
612
|
if (u.braceNest > 0)
|
|
606
|
-
return Me(l, u) ||
|
|
613
|
+
return Me(l, u) || v(u);
|
|
607
614
|
if (u.inLinked)
|
|
608
|
-
return ge(l, u) ||
|
|
615
|
+
return ge(l, u) || v(u);
|
|
609
616
|
switch (l.currentChar()) {
|
|
610
617
|
case "{":
|
|
611
|
-
return Me(l, u) ||
|
|
618
|
+
return Me(l, u) || v(u);
|
|
612
619
|
case "}":
|
|
613
|
-
return
|
|
620
|
+
return T(P.UNBALANCED_CLOSING_BRACE, s(), 0), l.next(), N(
|
|
614
621
|
u,
|
|
615
622
|
3,
|
|
616
623
|
"}"
|
|
617
624
|
/* TokenChars.BraceRight */
|
|
618
625
|
);
|
|
619
626
|
case "@":
|
|
620
|
-
return ge(l, u) ||
|
|
627
|
+
return ge(l, u) || v(u);
|
|
621
628
|
default: {
|
|
622
629
|
if (X(l))
|
|
623
|
-
return p = N(u, 1,
|
|
630
|
+
return p = N(u, 1, ke(l)), u.braceNest = 0, u.inLinked = !1, p;
|
|
624
631
|
if (ae(l))
|
|
625
632
|
return N(u, 0, ut(l));
|
|
626
633
|
break;
|
|
@@ -643,8 +650,8 @@ function Pa(e, t = {}) {
|
|
|
643
650
|
context: E
|
|
644
651
|
};
|
|
645
652
|
}
|
|
646
|
-
const
|
|
647
|
-
function
|
|
653
|
+
const Va = "parser", $a = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
654
|
+
function xa(e, t, n) {
|
|
648
655
|
switch (e) {
|
|
649
656
|
case "\\\\":
|
|
650
657
|
return "\\";
|
|
@@ -657,105 +664,105 @@ function Ra(e, t, n) {
|
|
|
657
664
|
}
|
|
658
665
|
}
|
|
659
666
|
}
|
|
660
|
-
function
|
|
667
|
+
function Ba(e = {}) {
|
|
661
668
|
const t = e.location !== !1, { onError: n } = e;
|
|
662
|
-
function r(f, m,
|
|
669
|
+
function r(f, m, L, d, ...I) {
|
|
663
670
|
const C = f.currentPosition();
|
|
664
671
|
if (C.offset += d, C.column += d, n) {
|
|
665
|
-
const g = t ? Ct(
|
|
666
|
-
domain:
|
|
672
|
+
const g = t ? Ct(L, C) : null, y = ye(m, g, {
|
|
673
|
+
domain: Va,
|
|
667
674
|
args: I
|
|
668
675
|
});
|
|
669
676
|
n(y);
|
|
670
677
|
}
|
|
671
678
|
}
|
|
672
|
-
function a(f, m,
|
|
679
|
+
function a(f, m, L) {
|
|
673
680
|
const d = { type: f };
|
|
674
|
-
return t && (d.start = m, d.end = m, d.loc = { start:
|
|
681
|
+
return t && (d.start = m, d.end = m, d.loc = { start: L, end: L }), d;
|
|
675
682
|
}
|
|
676
|
-
function s(f, m,
|
|
677
|
-
t && (f.end = m, f.loc && (f.loc.end =
|
|
683
|
+
function s(f, m, L, d) {
|
|
684
|
+
t && (f.end = m, f.loc && (f.loc.end = L));
|
|
678
685
|
}
|
|
679
686
|
function o(f, m) {
|
|
680
|
-
const
|
|
687
|
+
const L = f.context(), d = a(3, L.offset, L.startLoc);
|
|
681
688
|
return d.value = m, s(d, f.currentOffset(), f.currentPosition()), d;
|
|
682
689
|
}
|
|
683
690
|
function i(f, m) {
|
|
684
|
-
const
|
|
691
|
+
const L = f.context(), { lastOffset: d, lastStartLoc: I } = L, C = a(5, d, I);
|
|
685
692
|
return C.index = parseInt(m, 10), f.nextToken(), s(C, f.currentOffset(), f.currentPosition()), C;
|
|
686
693
|
}
|
|
687
694
|
function c(f, m) {
|
|
688
|
-
const
|
|
695
|
+
const L = f.context(), { lastOffset: d, lastStartLoc: I } = L, C = a(4, d, I);
|
|
689
696
|
return C.key = m, f.nextToken(), s(C, f.currentOffset(), f.currentPosition()), C;
|
|
690
697
|
}
|
|
691
698
|
function E(f, m) {
|
|
692
|
-
const
|
|
693
|
-
return C.value = m.replace(
|
|
699
|
+
const L = f.context(), { lastOffset: d, lastStartLoc: I } = L, C = a(9, d, I);
|
|
700
|
+
return C.value = m.replace($a, xa), f.nextToken(), s(C, f.currentOffset(), f.currentPosition()), C;
|
|
694
701
|
}
|
|
695
702
|
function b(f) {
|
|
696
|
-
const m = f.nextToken(),
|
|
697
|
-
return m.type !== 11 ? (r(f,
|
|
703
|
+
const m = f.nextToken(), L = f.context(), { lastOffset: d, lastStartLoc: I } = L, C = a(8, d, I);
|
|
704
|
+
return m.type !== 11 ? (r(f, P.UNEXPECTED_EMPTY_LINKED_MODIFIER, L.lastStartLoc, 0), C.value = "", s(C, d, I), {
|
|
698
705
|
nextConsumeToken: m,
|
|
699
706
|
node: C
|
|
700
|
-
}) : (m.value == null && r(f,
|
|
707
|
+
}) : (m.value == null && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, ie(m)), C.value = m.value || "", s(C, f.currentOffset(), f.currentPosition()), {
|
|
701
708
|
node: C
|
|
702
709
|
});
|
|
703
710
|
}
|
|
704
|
-
function
|
|
705
|
-
const
|
|
711
|
+
function T(f, m) {
|
|
712
|
+
const L = f.context(), d = a(7, L.offset, L.startLoc);
|
|
706
713
|
return d.value = m, s(d, f.currentOffset(), f.currentPosition()), d;
|
|
707
714
|
}
|
|
708
715
|
function N(f) {
|
|
709
|
-
const m = f.context(),
|
|
716
|
+
const m = f.context(), L = a(6, m.offset, m.startLoc);
|
|
710
717
|
let d = f.nextToken();
|
|
711
718
|
if (d.type === 8) {
|
|
712
719
|
const I = b(f);
|
|
713
|
-
|
|
720
|
+
L.modifier = I.node, d = I.nextConsumeToken || f.nextToken();
|
|
714
721
|
}
|
|
715
|
-
switch (d.type !== 9 && r(f,
|
|
722
|
+
switch (d.type !== 9 && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ie(d)), d = f.nextToken(), d.type === 2 && (d = f.nextToken()), d.type) {
|
|
716
723
|
case 10:
|
|
717
|
-
d.value == null && r(f,
|
|
724
|
+
d.value == null && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ie(d)), L.key = T(f, d.value || "");
|
|
718
725
|
break;
|
|
719
726
|
case 4:
|
|
720
|
-
d.value == null && r(f,
|
|
727
|
+
d.value == null && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ie(d)), L.key = c(f, d.value || "");
|
|
721
728
|
break;
|
|
722
729
|
case 5:
|
|
723
|
-
d.value == null && r(f,
|
|
730
|
+
d.value == null && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ie(d)), L.key = i(f, d.value || "");
|
|
724
731
|
break;
|
|
725
732
|
case 6:
|
|
726
|
-
d.value == null && r(f,
|
|
733
|
+
d.value == null && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ie(d)), L.key = E(f, d.value || "");
|
|
727
734
|
break;
|
|
728
735
|
default: {
|
|
729
|
-
r(f,
|
|
736
|
+
r(f, P.UNEXPECTED_EMPTY_LINKED_KEY, m.lastStartLoc, 0);
|
|
730
737
|
const I = f.context(), C = a(7, I.offset, I.startLoc);
|
|
731
|
-
return C.value = "", s(C, I.offset, I.startLoc),
|
|
738
|
+
return C.value = "", s(C, I.offset, I.startLoc), L.key = C, s(L, I.offset, I.startLoc), {
|
|
732
739
|
nextConsumeToken: d,
|
|
733
|
-
node:
|
|
740
|
+
node: L
|
|
734
741
|
};
|
|
735
742
|
}
|
|
736
743
|
}
|
|
737
|
-
return s(
|
|
738
|
-
node:
|
|
744
|
+
return s(L, f.currentOffset(), f.currentPosition()), {
|
|
745
|
+
node: L
|
|
739
746
|
};
|
|
740
747
|
}
|
|
741
|
-
function
|
|
742
|
-
const m = f.context(),
|
|
748
|
+
function v(f) {
|
|
749
|
+
const m = f.context(), L = m.currentType === 1 ? f.currentOffset() : m.offset, d = m.currentType === 1 ? m.endLoc : m.startLoc, I = a(2, L, d);
|
|
743
750
|
I.items = [];
|
|
744
751
|
let C = null;
|
|
745
752
|
do {
|
|
746
753
|
const U = C || f.nextToken();
|
|
747
754
|
switch (C = null, U.type) {
|
|
748
755
|
case 0:
|
|
749
|
-
U.value == null && r(f,
|
|
756
|
+
U.value == null && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ie(U)), I.items.push(o(f, U.value || ""));
|
|
750
757
|
break;
|
|
751
758
|
case 5:
|
|
752
|
-
U.value == null && r(f,
|
|
759
|
+
U.value == null && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ie(U)), I.items.push(i(f, U.value || ""));
|
|
753
760
|
break;
|
|
754
761
|
case 4:
|
|
755
|
-
U.value == null && r(f,
|
|
762
|
+
U.value == null && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ie(U)), I.items.push(c(f, U.value || ""));
|
|
756
763
|
break;
|
|
757
764
|
case 6:
|
|
758
|
-
U.value == null && r(f,
|
|
765
|
+
U.value == null && r(f, P.UNEXPECTED_LEXICAL_ANALYSIS, m.lastStartLoc, 0, ie(U)), I.items.push(E(f, U.value || ""));
|
|
759
766
|
break;
|
|
760
767
|
case 7: {
|
|
761
768
|
const X = N(f);
|
|
@@ -767,24 +774,24 @@ function Ma(e = {}) {
|
|
|
767
774
|
const g = m.currentType === 1 ? m.lastOffset : f.currentOffset(), y = m.currentType === 1 ? m.lastEndLoc : f.currentPosition();
|
|
768
775
|
return s(I, g, y), I;
|
|
769
776
|
}
|
|
770
|
-
function
|
|
777
|
+
function F(f, m, L, d) {
|
|
771
778
|
const I = f.context();
|
|
772
779
|
let C = d.items.length === 0;
|
|
773
|
-
const g = a(1, m,
|
|
780
|
+
const g = a(1, m, L);
|
|
774
781
|
g.cases = [], g.cases.push(d);
|
|
775
782
|
do {
|
|
776
|
-
const y =
|
|
783
|
+
const y = v(f);
|
|
777
784
|
C || (C = y.items.length === 0), g.cases.push(y);
|
|
778
785
|
} while (I.currentType !== 13);
|
|
779
|
-
return C && r(f,
|
|
786
|
+
return C && r(f, P.MUST_HAVE_MESSAGES_IN_PLURAL, L, 0), s(g, f.currentOffset(), f.currentPosition()), g;
|
|
780
787
|
}
|
|
781
|
-
function
|
|
782
|
-
const m = f.context(), { offset:
|
|
783
|
-
return m.currentType === 13 ? I :
|
|
788
|
+
function A(f) {
|
|
789
|
+
const m = f.context(), { offset: L, startLoc: d } = m, I = v(f);
|
|
790
|
+
return m.currentType === 13 ? I : F(f, L, d, I);
|
|
784
791
|
}
|
|
785
792
|
function D(f) {
|
|
786
|
-
const m =
|
|
787
|
-
return t && d.loc && (d.loc.source = f), d.body =
|
|
793
|
+
const m = Ua(f, J({}, e)), L = m.context(), d = a(0, L.offset, L.startLoc);
|
|
794
|
+
return t && d.loc && (d.loc.source = f), d.body = A(m), e.onCacheKey && (d.cacheKey = e.onCacheKey(f)), L.currentType !== 13 && r(m, P.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, f[L.offset] || ""), s(d, m.currentOffset(), m.currentPosition()), d;
|
|
788
795
|
}
|
|
789
796
|
return { parse: D };
|
|
790
797
|
}
|
|
@@ -794,7 +801,7 @@ function ie(e) {
|
|
|
794
801
|
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
795
802
|
return t.length > 10 ? t.slice(0, 9) + "…" : t;
|
|
796
803
|
}
|
|
797
|
-
function
|
|
804
|
+
function Wa(e, t = {}) {
|
|
798
805
|
const n = {
|
|
799
806
|
ast: e,
|
|
800
807
|
helpers: /* @__PURE__ */ new Set()
|
|
@@ -846,8 +853,8 @@ function Wt(e, t) {
|
|
|
846
853
|
break;
|
|
847
854
|
}
|
|
848
855
|
}
|
|
849
|
-
function
|
|
850
|
-
const n =
|
|
856
|
+
function Ga(e, t = {}) {
|
|
857
|
+
const n = Wa(e);
|
|
851
858
|
n.helper(
|
|
852
859
|
"normalize"
|
|
853
860
|
/* HelperNameMap.NORMALIZE */
|
|
@@ -855,7 +862,7 @@ function Ua(e, t = {}) {
|
|
|
855
862
|
const r = n.context();
|
|
856
863
|
e.helpers = Array.from(r.helpers);
|
|
857
864
|
}
|
|
858
|
-
function
|
|
865
|
+
function Ya(e) {
|
|
859
866
|
const t = e.body;
|
|
860
867
|
return t.type === 2 ? on(t) : t.cases.forEach((n) => on(n)), e;
|
|
861
868
|
}
|
|
@@ -880,25 +887,25 @@ function on(e) {
|
|
|
880
887
|
}
|
|
881
888
|
}
|
|
882
889
|
}
|
|
883
|
-
const
|
|
884
|
-
function
|
|
890
|
+
const Ha = "minifier";
|
|
891
|
+
function Ae(e) {
|
|
885
892
|
switch (e.t = e.type, e.type) {
|
|
886
893
|
case 0: {
|
|
887
894
|
const t = e;
|
|
888
|
-
|
|
895
|
+
Ae(t.body), t.b = t.body, delete t.body;
|
|
889
896
|
break;
|
|
890
897
|
}
|
|
891
898
|
case 1: {
|
|
892
899
|
const t = e, n = t.cases;
|
|
893
900
|
for (let r = 0; r < n.length; r++)
|
|
894
|
-
|
|
901
|
+
Ae(n[r]);
|
|
895
902
|
t.c = n, delete t.cases;
|
|
896
903
|
break;
|
|
897
904
|
}
|
|
898
905
|
case 2: {
|
|
899
906
|
const t = e, n = t.items;
|
|
900
907
|
for (let r = 0; r < n.length; r++)
|
|
901
|
-
|
|
908
|
+
Ae(n[r]);
|
|
902
909
|
t.i = n, delete t.items, t.static && (t.s = t.static, delete t.static);
|
|
903
910
|
break;
|
|
904
911
|
}
|
|
@@ -912,7 +919,7 @@ function ve(e) {
|
|
|
912
919
|
}
|
|
913
920
|
case 6: {
|
|
914
921
|
const t = e;
|
|
915
|
-
|
|
922
|
+
Ae(t.key), t.k = t.key, delete t.key, t.modifier && (Ae(t.modifier), t.m = t.modifier, delete t.modifier);
|
|
916
923
|
break;
|
|
917
924
|
}
|
|
918
925
|
case 5: {
|
|
@@ -927,15 +934,15 @@ function ve(e) {
|
|
|
927
934
|
}
|
|
928
935
|
default:
|
|
929
936
|
if (process.env.NODE_ENV !== "production")
|
|
930
|
-
throw ye(
|
|
931
|
-
domain:
|
|
937
|
+
throw ye(P.UNHANDLED_MINIFIER_NODE_TYPE, null, {
|
|
938
|
+
domain: Ha,
|
|
932
939
|
args: [e.type]
|
|
933
940
|
});
|
|
934
941
|
}
|
|
935
942
|
delete e.type;
|
|
936
943
|
}
|
|
937
|
-
const
|
|
938
|
-
function
|
|
944
|
+
const Ka = "parser";
|
|
945
|
+
function ja(e, t) {
|
|
939
946
|
const { filename: n, breakLineCode: r, needIndent: a } = t, s = t.location !== !1, o = {
|
|
940
947
|
filename: n,
|
|
941
948
|
code: "",
|
|
@@ -949,20 +956,20 @@ function Ba(e, t) {
|
|
|
949
956
|
};
|
|
950
957
|
s && e.loc && (o.source = e.loc.source);
|
|
951
958
|
const i = () => o;
|
|
952
|
-
function c(
|
|
953
|
-
o.code +=
|
|
959
|
+
function c(A, D) {
|
|
960
|
+
o.code += A;
|
|
954
961
|
}
|
|
955
|
-
function E(
|
|
962
|
+
function E(A, D = !0) {
|
|
956
963
|
const f = D ? r : "";
|
|
957
|
-
c(a ? f + " ".repeat(
|
|
964
|
+
c(a ? f + " ".repeat(A) : f);
|
|
958
965
|
}
|
|
959
|
-
function b(
|
|
966
|
+
function b(A = !0) {
|
|
960
967
|
const D = ++o.indentLevel;
|
|
961
|
-
|
|
968
|
+
A && E(D);
|
|
962
969
|
}
|
|
963
|
-
function
|
|
970
|
+
function T(A = !0) {
|
|
964
971
|
const D = --o.indentLevel;
|
|
965
|
-
|
|
972
|
+
A && E(D);
|
|
966
973
|
}
|
|
967
974
|
function N() {
|
|
968
975
|
E(o.indentLevel);
|
|
@@ -971,20 +978,20 @@ function Ba(e, t) {
|
|
|
971
978
|
context: i,
|
|
972
979
|
push: c,
|
|
973
980
|
indent: b,
|
|
974
|
-
deindent:
|
|
981
|
+
deindent: T,
|
|
975
982
|
newline: N,
|
|
976
|
-
helper: (
|
|
983
|
+
helper: (A) => `_${A}`,
|
|
977
984
|
needIndent: () => o.needIndent
|
|
978
985
|
};
|
|
979
986
|
}
|
|
980
|
-
function
|
|
987
|
+
function Xa(e, t) {
|
|
981
988
|
const { helper: n } = e;
|
|
982
989
|
e.push(`${n(
|
|
983
990
|
"linked"
|
|
984
991
|
/* HelperNameMap.LINKED */
|
|
985
992
|
)}(`), Se(e, t.key), t.modifier ? (e.push(", "), Se(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
986
993
|
}
|
|
987
|
-
function
|
|
994
|
+
function Ja(e, t) {
|
|
988
995
|
const { helper: n, needIndent: r } = e;
|
|
989
996
|
e.push(`${n(
|
|
990
997
|
"normalize"
|
|
@@ -995,7 +1002,7 @@ function Ga(e, t) {
|
|
|
995
1002
|
e.push(", ");
|
|
996
1003
|
e.deindent(r()), e.push("])");
|
|
997
1004
|
}
|
|
998
|
-
function
|
|
1005
|
+
function Qa(e, t) {
|
|
999
1006
|
const { helper: n, needIndent: r } = e;
|
|
1000
1007
|
if (t.cases.length > 1) {
|
|
1001
1008
|
e.push(`${n(
|
|
@@ -1008,23 +1015,23 @@ function Ya(e, t) {
|
|
|
1008
1015
|
e.deindent(r()), e.push("])");
|
|
1009
1016
|
}
|
|
1010
1017
|
}
|
|
1011
|
-
function
|
|
1018
|
+
function qa(e, t) {
|
|
1012
1019
|
t.body ? Se(e, t.body) : e.push("null");
|
|
1013
1020
|
}
|
|
1014
1021
|
function Se(e, t) {
|
|
1015
1022
|
const { helper: n } = e;
|
|
1016
1023
|
switch (t.type) {
|
|
1017
1024
|
case 0:
|
|
1018
|
-
|
|
1025
|
+
qa(e, t);
|
|
1019
1026
|
break;
|
|
1020
1027
|
case 1:
|
|
1021
|
-
|
|
1028
|
+
Qa(e, t);
|
|
1022
1029
|
break;
|
|
1023
1030
|
case 2:
|
|
1024
|
-
|
|
1031
|
+
Ja(e, t);
|
|
1025
1032
|
break;
|
|
1026
1033
|
case 6:
|
|
1027
|
-
|
|
1034
|
+
Xa(e, t);
|
|
1028
1035
|
break;
|
|
1029
1036
|
case 8:
|
|
1030
1037
|
e.push(JSON.stringify(t.value), t);
|
|
@@ -1058,17 +1065,17 @@ function Se(e, t) {
|
|
|
1058
1065
|
break;
|
|
1059
1066
|
default:
|
|
1060
1067
|
if (process.env.NODE_ENV !== "production")
|
|
1061
|
-
throw ye(
|
|
1062
|
-
domain:
|
|
1068
|
+
throw ye(P.UNHANDLED_CODEGEN_NODE_TYPE, null, {
|
|
1069
|
+
domain: Ka,
|
|
1063
1070
|
args: [t.type]
|
|
1064
1071
|
});
|
|
1065
1072
|
}
|
|
1066
1073
|
}
|
|
1067
|
-
const
|
|
1074
|
+
const Za = (e, t = {}) => {
|
|
1068
1075
|
const n = O(t.mode) ? t.mode : "normal", r = O(t.filename) ? t.filename : "message.intl";
|
|
1069
1076
|
t.sourceMap;
|
|
1070
1077
|
const a = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
1071
|
-
`, s = t.needIndent ? t.needIndent : n !== "arrow", o = e.helpers || [], i =
|
|
1078
|
+
`, s = t.needIndent ? t.needIndent : n !== "arrow", o = e.helpers || [], i = ja(e, {
|
|
1072
1079
|
filename: r,
|
|
1073
1080
|
breakLineCode: a,
|
|
1074
1081
|
needIndent: s
|
|
@@ -1082,30 +1089,30 @@ const Ka = (e, t = {}) => {
|
|
|
1082
1089
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1083
1090
|
};
|
|
1084
1091
|
};
|
|
1085
|
-
function
|
|
1086
|
-
const n = J({}, t), r = !!n.jit, a = !!n.minify, s = n.optimize == null ? !0 : n.optimize, i =
|
|
1087
|
-
return r ? (s &&
|
|
1092
|
+
function za(e, t = {}) {
|
|
1093
|
+
const n = J({}, t), r = !!n.jit, a = !!n.minify, s = n.optimize == null ? !0 : n.optimize, i = Ba(n).parse(e);
|
|
1094
|
+
return r ? (s && Ya(i), a && Ae(i), { ast: i, code: "" }) : (Ga(i, n), Za(i, n));
|
|
1088
1095
|
}
|
|
1089
|
-
function
|
|
1096
|
+
function es() {
|
|
1090
1097
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (he().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (he().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
1091
1098
|
}
|
|
1092
1099
|
function re(e) {
|
|
1093
|
-
return
|
|
1100
|
+
return k(e) && Gt(e) === 0 && (se(e, "b") || se(e, "body"));
|
|
1094
1101
|
}
|
|
1095
1102
|
const $n = ["b", "body"];
|
|
1096
|
-
function
|
|
1103
|
+
function ts(e) {
|
|
1097
1104
|
return de(e, $n);
|
|
1098
1105
|
}
|
|
1099
1106
|
const xn = ["c", "cases"];
|
|
1100
|
-
function
|
|
1107
|
+
function ns(e) {
|
|
1101
1108
|
return de(e, xn, []);
|
|
1102
1109
|
}
|
|
1103
1110
|
const Bn = ["s", "static"];
|
|
1104
|
-
function
|
|
1111
|
+
function rs(e) {
|
|
1105
1112
|
return de(e, Bn);
|
|
1106
1113
|
}
|
|
1107
1114
|
const Wn = ["i", "items"];
|
|
1108
|
-
function
|
|
1115
|
+
function as(e) {
|
|
1109
1116
|
return de(e, Wn, []);
|
|
1110
1117
|
}
|
|
1111
1118
|
const Gn = ["t", "type"];
|
|
@@ -1120,11 +1127,11 @@ function Je(e, t) {
|
|
|
1120
1127
|
throw $e(t);
|
|
1121
1128
|
}
|
|
1122
1129
|
const Hn = ["m", "modifier"];
|
|
1123
|
-
function
|
|
1130
|
+
function ss(e) {
|
|
1124
1131
|
return de(e, Hn);
|
|
1125
1132
|
}
|
|
1126
1133
|
const Kn = ["k", "key"];
|
|
1127
|
-
function
|
|
1134
|
+
function os(e) {
|
|
1128
1135
|
const t = de(e, Kn);
|
|
1129
1136
|
if (t)
|
|
1130
1137
|
return t;
|
|
@@ -1154,18 +1161,18 @@ const jn = [
|
|
|
1154
1161
|
function $e(e) {
|
|
1155
1162
|
return new Error(`unhandled node type: ${e}`);
|
|
1156
1163
|
}
|
|
1157
|
-
function
|
|
1158
|
-
return (n) =>
|
|
1164
|
+
function Tt(e) {
|
|
1165
|
+
return (n) => ls(n, e);
|
|
1159
1166
|
}
|
|
1160
|
-
function
|
|
1161
|
-
const n =
|
|
1167
|
+
function ls(e, t) {
|
|
1168
|
+
const n = ts(t);
|
|
1162
1169
|
if (n == null)
|
|
1163
1170
|
throw $e(
|
|
1164
1171
|
0
|
|
1165
1172
|
/* NodeTypes.Resource */
|
|
1166
1173
|
);
|
|
1167
1174
|
if (Gt(n) === 1) {
|
|
1168
|
-
const s =
|
|
1175
|
+
const s = ns(n);
|
|
1169
1176
|
return e.plural(s.reduce((o, i) => [
|
|
1170
1177
|
...o,
|
|
1171
1178
|
ln(e, i)
|
|
@@ -1174,15 +1181,15 @@ function ts(e, t) {
|
|
|
1174
1181
|
return ln(e, n);
|
|
1175
1182
|
}
|
|
1176
1183
|
function ln(e, t) {
|
|
1177
|
-
const n =
|
|
1184
|
+
const n = rs(t);
|
|
1178
1185
|
if (n != null)
|
|
1179
1186
|
return e.type === "text" ? n : e.normalize([n]);
|
|
1180
1187
|
{
|
|
1181
|
-
const r =
|
|
1188
|
+
const r = as(t).reduce((a, s) => [...a, At(e, s)], []);
|
|
1182
1189
|
return e.normalize(r);
|
|
1183
1190
|
}
|
|
1184
1191
|
}
|
|
1185
|
-
function
|
|
1192
|
+
function At(e, t) {
|
|
1186
1193
|
const n = Gt(t);
|
|
1187
1194
|
switch (n) {
|
|
1188
1195
|
case 3:
|
|
@@ -1206,8 +1213,8 @@ function vt(e, t) {
|
|
|
1206
1213
|
throw $e(n);
|
|
1207
1214
|
}
|
|
1208
1215
|
case 6: {
|
|
1209
|
-
const r = t, a =
|
|
1210
|
-
return e.linked(
|
|
1216
|
+
const r = t, a = ss(r), s = os(r);
|
|
1217
|
+
return e.linked(At(e, s), a ? At(e, a) : void 0, e.type);
|
|
1211
1218
|
}
|
|
1212
1219
|
case 7:
|
|
1213
1220
|
return Je(t, n);
|
|
@@ -1217,32 +1224,32 @@ function vt(e, t) {
|
|
|
1217
1224
|
throw new Error(`unhandled node on format message part: ${n}`);
|
|
1218
1225
|
}
|
|
1219
1226
|
}
|
|
1220
|
-
const
|
|
1221
|
-
function
|
|
1222
|
-
t &&
|
|
1227
|
+
const is = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
|
|
1228
|
+
function us(e, t) {
|
|
1229
|
+
t && Pa(e) && ue(ze(is, { source: e }));
|
|
1223
1230
|
}
|
|
1224
|
-
const
|
|
1231
|
+
const cs = (e) => e;
|
|
1225
1232
|
let Qe = $();
|
|
1226
|
-
function
|
|
1233
|
+
function fs(e, t = {}) {
|
|
1227
1234
|
let n = !1;
|
|
1228
|
-
const r = t.onError ||
|
|
1235
|
+
const r = t.onError || Da;
|
|
1229
1236
|
return t.onError = (a) => {
|
|
1230
1237
|
n = !0, r(a);
|
|
1231
|
-
}, { ...
|
|
1238
|
+
}, { ...za(e, t), detectError: n };
|
|
1232
1239
|
}
|
|
1233
1240
|
// @__NO_SIDE_EFFECTS__
|
|
1234
|
-
function
|
|
1241
|
+
function _s(e, t) {
|
|
1235
1242
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && O(e)) {
|
|
1236
1243
|
const n = M(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
|
|
1237
|
-
process.env.NODE_ENV !== "production" &&
|
|
1238
|
-
const a = (t.onCacheKey ||
|
|
1244
|
+
process.env.NODE_ENV !== "production" && us(e, n);
|
|
1245
|
+
const a = (t.onCacheKey || cs)(e), s = Qe[a];
|
|
1239
1246
|
if (s)
|
|
1240
1247
|
return s;
|
|
1241
|
-
const { ast: o, detectError: i } =
|
|
1248
|
+
const { ast: o, detectError: i } = fs(e, {
|
|
1242
1249
|
...t,
|
|
1243
1250
|
location: process.env.NODE_ENV !== "production",
|
|
1244
1251
|
jit: !0
|
|
1245
|
-
}), c =
|
|
1252
|
+
}), c = Tt(o);
|
|
1246
1253
|
return i ? c : Qe[a] = c;
|
|
1247
1254
|
} else {
|
|
1248
1255
|
if (process.env.NODE_ENV !== "production" && !re(e))
|
|
@@ -1250,16 +1257,16 @@ function os(e, t) {
|
|
|
1250
1257
|
const n = e.cacheKey;
|
|
1251
1258
|
if (n) {
|
|
1252
1259
|
const r = Qe[n];
|
|
1253
|
-
return r || (Qe[n] =
|
|
1260
|
+
return r || (Qe[n] = Tt(e));
|
|
1254
1261
|
} else
|
|
1255
|
-
return
|
|
1262
|
+
return Tt(e);
|
|
1256
1263
|
}
|
|
1257
1264
|
}
|
|
1258
1265
|
let xe = null;
|
|
1259
|
-
function
|
|
1266
|
+
function ms(e) {
|
|
1260
1267
|
xe = e;
|
|
1261
1268
|
}
|
|
1262
|
-
function
|
|
1269
|
+
function ds(e, t, n) {
|
|
1263
1270
|
xe && xe.emit("i18n:init", {
|
|
1264
1271
|
timestamp: Date.now(),
|
|
1265
1272
|
i18n: e,
|
|
@@ -1267,12 +1274,12 @@ function is(e, t, n) {
|
|
|
1267
1274
|
meta: n
|
|
1268
1275
|
});
|
|
1269
1276
|
}
|
|
1270
|
-
const
|
|
1271
|
-
function
|
|
1277
|
+
const Es = /* @__PURE__ */ gs("function:translate");
|
|
1278
|
+
function gs(e) {
|
|
1272
1279
|
return (t) => xe && xe.emit(e, t);
|
|
1273
1280
|
}
|
|
1274
1281
|
const q = {
|
|
1275
|
-
INVALID_ARGUMENT:
|
|
1282
|
+
INVALID_ARGUMENT: Aa,
|
|
1276
1283
|
// 17
|
|
1277
1284
|
INVALID_DATE_ARGUMENT: 18,
|
|
1278
1285
|
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
@@ -1280,11 +1287,11 @@ const q = {
|
|
|
1280
1287
|
NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
|
|
1281
1288
|
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
1282
1289
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1283
|
-
},
|
|
1290
|
+
}, ps = 24;
|
|
1284
1291
|
function me(e) {
|
|
1285
|
-
return ye(e, null, process.env.NODE_ENV !== "production" ? { messages:
|
|
1292
|
+
return ye(e, null, process.env.NODE_ENV !== "production" ? { messages: Ns } : void 0);
|
|
1286
1293
|
}
|
|
1287
|
-
const
|
|
1294
|
+
const Ns = {
|
|
1288
1295
|
[q.INVALID_ARGUMENT]: "Invalid arguments",
|
|
1289
1296
|
[q.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
|
|
1290
1297
|
[q.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
|
|
@@ -1296,27 +1303,27 @@ const _s = {
|
|
|
1296
1303
|
function Yt(e, t) {
|
|
1297
1304
|
return t.locale != null ? un(t.locale) : un(e.locale);
|
|
1298
1305
|
}
|
|
1299
|
-
let
|
|
1306
|
+
let Lt;
|
|
1300
1307
|
function un(e) {
|
|
1301
1308
|
if (O(e))
|
|
1302
1309
|
return e;
|
|
1303
1310
|
if (x(e)) {
|
|
1304
|
-
if (e.resolvedOnce &&
|
|
1305
|
-
return
|
|
1311
|
+
if (e.resolvedOnce && Lt != null)
|
|
1312
|
+
return Lt;
|
|
1306
1313
|
if (e.constructor.name === "Function") {
|
|
1307
1314
|
const t = e();
|
|
1308
|
-
if (
|
|
1315
|
+
if (ba(t))
|
|
1309
1316
|
throw me(q.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1310
|
-
return
|
|
1317
|
+
return Lt = t;
|
|
1311
1318
|
} else
|
|
1312
1319
|
throw me(q.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
1313
1320
|
} else
|
|
1314
1321
|
throw me(q.NOT_SUPPORT_LOCALE_TYPE);
|
|
1315
1322
|
}
|
|
1316
|
-
function
|
|
1323
|
+
function hs(e, t, n) {
|
|
1317
1324
|
return [.../* @__PURE__ */ new Set([
|
|
1318
1325
|
n,
|
|
1319
|
-
...G(t) ? t :
|
|
1326
|
+
...G(t) ? t : k(t) ? Object.keys(t) : O(t) ? [t] : [n]
|
|
1320
1327
|
])];
|
|
1321
1328
|
}
|
|
1322
1329
|
function Xn(e, t, n) {
|
|
@@ -1328,7 +1335,7 @@ function Xn(e, t, n) {
|
|
|
1328
1335
|
let o = [n];
|
|
1329
1336
|
for (; G(o); )
|
|
1330
1337
|
o = cn(s, o, t);
|
|
1331
|
-
const i = G(t) || !
|
|
1338
|
+
const i = G(t) || !R(t) ? t : t.default ? t.default : null;
|
|
1332
1339
|
o = O(i) ? [i] : i, G(o) && cn(s, o, !1), a.__localeChainCache.set(r, s);
|
|
1333
1340
|
}
|
|
1334
1341
|
return s;
|
|
@@ -1337,25 +1344,25 @@ function cn(e, t, n) {
|
|
|
1337
1344
|
let r = !0;
|
|
1338
1345
|
for (let a = 0; a < t.length && M(r); a++) {
|
|
1339
1346
|
const s = t[a];
|
|
1340
|
-
O(s) && (r =
|
|
1347
|
+
O(s) && (r = Ts(e, t[a], n));
|
|
1341
1348
|
}
|
|
1342
1349
|
return r;
|
|
1343
1350
|
}
|
|
1344
|
-
function
|
|
1351
|
+
function Ts(e, t, n) {
|
|
1345
1352
|
let r;
|
|
1346
1353
|
const a = t.split("-");
|
|
1347
1354
|
do {
|
|
1348
1355
|
const s = a.join("-");
|
|
1349
|
-
r =
|
|
1356
|
+
r = Ls(e, s, n), a.splice(-1, 1);
|
|
1350
1357
|
} while (a.length && r === !0);
|
|
1351
1358
|
return r;
|
|
1352
1359
|
}
|
|
1353
|
-
function
|
|
1360
|
+
function Ls(e, t, n) {
|
|
1354
1361
|
let r = !1;
|
|
1355
1362
|
if (!e.includes(t) && (r = !0, t)) {
|
|
1356
1363
|
r = t[t.length - 1] !== "!";
|
|
1357
1364
|
const a = t.replace(/!/g, "");
|
|
1358
|
-
e.push(a), (G(n) ||
|
|
1365
|
+
e.push(a), (G(n) || R(n)) && n[a] && (r = n[a]);
|
|
1359
1366
|
}
|
|
1360
1367
|
return r;
|
|
1361
1368
|
}
|
|
@@ -1520,15 +1527,15 @@ Ee[
|
|
|
1520
1527
|
/* Actions.APPEND */
|
|
1521
1528
|
]
|
|
1522
1529
|
};
|
|
1523
|
-
const
|
|
1524
|
-
function
|
|
1525
|
-
return
|
|
1530
|
+
const bs = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1531
|
+
function Os(e) {
|
|
1532
|
+
return bs.test(e);
|
|
1526
1533
|
}
|
|
1527
|
-
function
|
|
1534
|
+
function Is(e) {
|
|
1528
1535
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
1529
1536
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1530
1537
|
}
|
|
1531
|
-
function
|
|
1538
|
+
function Cs(e) {
|
|
1532
1539
|
if (e == null)
|
|
1533
1540
|
return "o";
|
|
1534
1541
|
switch (e.charCodeAt(0)) {
|
|
@@ -1565,13 +1572,13 @@ function hs(e) {
|
|
|
1565
1572
|
}
|
|
1566
1573
|
return "i";
|
|
1567
1574
|
}
|
|
1568
|
-
function
|
|
1575
|
+
function As(e) {
|
|
1569
1576
|
const t = e.trim();
|
|
1570
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 :
|
|
1577
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Os(t) ? Is(t) : "*" + t;
|
|
1571
1578
|
}
|
|
1572
|
-
function
|
|
1579
|
+
function vs(e) {
|
|
1573
1580
|
const t = [];
|
|
1574
|
-
let n = -1, r = 0, a = 0, s, o, i, c, E, b,
|
|
1581
|
+
let n = -1, r = 0, a = 0, s, o, i, c, E, b, T;
|
|
1575
1582
|
const N = [];
|
|
1576
1583
|
N[
|
|
1577
1584
|
0
|
|
@@ -1601,7 +1608,7 @@ function Ts(e) {
|
|
|
1601
1608
|
/* Actions.APPEND */
|
|
1602
1609
|
]();
|
|
1603
1610
|
else {
|
|
1604
|
-
if (a = 0, o === void 0 || (o =
|
|
1611
|
+
if (a = 0, o === void 0 || (o = As(o), o === !1))
|
|
1605
1612
|
return !1;
|
|
1606
1613
|
N[
|
|
1607
1614
|
1
|
|
@@ -1609,31 +1616,31 @@ function Ts(e) {
|
|
|
1609
1616
|
]();
|
|
1610
1617
|
}
|
|
1611
1618
|
};
|
|
1612
|
-
function
|
|
1613
|
-
const
|
|
1614
|
-
if (r === 5 &&
|
|
1615
|
-
return n++, i = "\\" +
|
|
1619
|
+
function v() {
|
|
1620
|
+
const F = e[n + 1];
|
|
1621
|
+
if (r === 5 && F === "'" || r === 6 && F === '"')
|
|
1622
|
+
return n++, i = "\\" + F, N[
|
|
1616
1623
|
0
|
|
1617
1624
|
/* Actions.APPEND */
|
|
1618
1625
|
](), !0;
|
|
1619
1626
|
}
|
|
1620
1627
|
for (; r !== null; )
|
|
1621
|
-
if (n++, s = e[n], !(s === "\\" &&
|
|
1622
|
-
if (c =
|
|
1628
|
+
if (n++, s = e[n], !(s === "\\" && v())) {
|
|
1629
|
+
if (c = Cs(s), T = Ee[r], E = T[c] || T.l || 8, E === 8 || (r = E[0], E[1] !== void 0 && (b = N[E[1]], b && (i = s, b() === !1))))
|
|
1623
1630
|
return;
|
|
1624
1631
|
if (r === 7)
|
|
1625
1632
|
return t;
|
|
1626
1633
|
}
|
|
1627
1634
|
}
|
|
1628
1635
|
const fn = /* @__PURE__ */ new Map();
|
|
1629
|
-
function
|
|
1630
|
-
return
|
|
1636
|
+
function Ds(e, t) {
|
|
1637
|
+
return k(e) ? e[t] : null;
|
|
1631
1638
|
}
|
|
1632
|
-
function
|
|
1633
|
-
if (!
|
|
1639
|
+
function Ss(e, t) {
|
|
1640
|
+
if (!k(e))
|
|
1634
1641
|
return null;
|
|
1635
1642
|
let n = fn.get(t);
|
|
1636
|
-
if (n || (n =
|
|
1643
|
+
if (n || (n = vs(t), n && fn.set(t, n)), !n)
|
|
1637
1644
|
return null;
|
|
1638
1645
|
const r = n.length;
|
|
1639
1646
|
let a = e, s = 0;
|
|
@@ -1656,7 +1663,7 @@ const Z = {
|
|
|
1656
1663
|
CANNOT_FORMAT_DATE: 5,
|
|
1657
1664
|
FALLBACK_TO_DATE_FORMAT: 6,
|
|
1658
1665
|
EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7
|
|
1659
|
-
},
|
|
1666
|
+
}, Ps = 8, Fs = {
|
|
1660
1667
|
[Z.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
|
|
1661
1668
|
[Z.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
|
|
1662
1669
|
[Z.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
|
|
@@ -1665,42 +1672,42 @@ const Z = {
|
|
|
1665
1672
|
[Z.FALLBACK_TO_DATE_FORMAT]: "Fall back to datetime format '{key}' key with '{target}' locale.",
|
|
1666
1673
|
[Z.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."
|
|
1667
1674
|
};
|
|
1668
|
-
function
|
|
1669
|
-
return ze(
|
|
1675
|
+
function Le(e, ...t) {
|
|
1676
|
+
return ze(Fs[e], ...t);
|
|
1670
1677
|
}
|
|
1671
|
-
const
|
|
1672
|
-
function
|
|
1678
|
+
const ys = "11.2.7", tt = -1, Be = "en-US", Ze = "", _n = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1679
|
+
function Rs() {
|
|
1673
1680
|
return {
|
|
1674
|
-
upper: (e, t) => t === "text" && O(e) ? e.toUpperCase() : t === "vnode" &&
|
|
1675
|
-
lower: (e, t) => t === "text" && O(e) ? e.toLowerCase() : t === "vnode" &&
|
|
1676
|
-
capitalize: (e, t) => t === "text" && O(e) ? _n(e) : t === "vnode" &&
|
|
1681
|
+
upper: (e, t) => t === "text" && O(e) ? e.toUpperCase() : t === "vnode" && k(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1682
|
+
lower: (e, t) => t === "text" && O(e) ? e.toLowerCase() : t === "vnode" && k(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1683
|
+
capitalize: (e, t) => t === "text" && O(e) ? _n(e) : t === "vnode" && k(e) && "__v_isVNode" in e ? _n(e.children) : e
|
|
1677
1684
|
};
|
|
1678
1685
|
}
|
|
1679
1686
|
let Jn;
|
|
1680
|
-
function
|
|
1687
|
+
function ks(e) {
|
|
1681
1688
|
Jn = e;
|
|
1682
1689
|
}
|
|
1683
1690
|
let Qn;
|
|
1684
|
-
function
|
|
1691
|
+
function Ms(e) {
|
|
1685
1692
|
Qn = e;
|
|
1686
1693
|
}
|
|
1687
1694
|
let qn;
|
|
1688
|
-
function
|
|
1695
|
+
function ws(e) {
|
|
1689
1696
|
qn = e;
|
|
1690
1697
|
}
|
|
1691
1698
|
let Zn = null;
|
|
1692
|
-
const
|
|
1699
|
+
const Us = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
1693
1700
|
Zn = e;
|
|
1694
|
-
},
|
|
1701
|
+
}, Vs = /* @__NO_SIDE_EFFECTS__ */ () => Zn;
|
|
1695
1702
|
let zn = null;
|
|
1696
1703
|
const mn = (e) => {
|
|
1697
1704
|
zn = e;
|
|
1698
|
-
},
|
|
1705
|
+
}, $s = () => zn;
|
|
1699
1706
|
let dn = 0;
|
|
1700
|
-
function
|
|
1701
|
-
const t = x(e.onWarn) ? e.onWarn : ue, n = O(e.version) ? e.version :
|
|
1702
|
-
process.env.NODE_ENV !== "production" && x(e.messageCompiler) && Vt(
|
|
1703
|
-
const I = x(e.messageResolver) ? e.messageResolver : Qn ||
|
|
1707
|
+
function xs(e = {}) {
|
|
1708
|
+
const t = x(e.onWarn) ? e.onWarn : ue, n = O(e.version) ? e.version : ys, r = O(e.locale) || x(e.locale) ? e.locale : Be, a = x(r) ? Be : r, s = G(e.fallbackLocale) || R(e.fallbackLocale) || O(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, o = R(e.messages) ? e.messages : bt(a), i = R(e.datetimeFormats) ? e.datetimeFormats : bt(a), c = R(e.numberFormats) ? e.numberFormats : bt(a), E = J($(), e.modifiers, Rs()), b = e.pluralRules || $(), T = x(e.missing) ? e.missing : null, N = M(e.missingWarn) || De(e.missingWarn) ? e.missingWarn : !0, v = M(e.fallbackWarn) || De(e.fallbackWarn) ? e.fallbackWarn : !0, F = !!e.fallbackFormat, A = !!e.unresolving, D = x(e.postTranslation) ? e.postTranslation : null, f = R(e.processor) ? e.processor : null, m = M(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, L = !!e.escapeParameter, d = x(e.messageCompiler) ? e.messageCompiler : Jn;
|
|
1709
|
+
process.env.NODE_ENV !== "production" && x(e.messageCompiler) && Vt(Le(Z.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
1710
|
+
const I = x(e.messageResolver) ? e.messageResolver : Qn || Ds, C = x(e.localeFallbacker) ? e.localeFallbacker : qn || hs, g = k(e.fallbackContext) ? e.fallbackContext : void 0, y = e, U = k(y.__datetimeFormatters) ? y.__datetimeFormatters : /* @__PURE__ */ new Map(), X = k(y.__numberFormatters) ? y.__numberFormatters : /* @__PURE__ */ new Map(), ae = k(y.__meta) ? y.__meta : {};
|
|
1704
1711
|
dn++;
|
|
1705
1712
|
const Y = {
|
|
1706
1713
|
version: n,
|
|
@@ -1710,15 +1717,15 @@ function Rs(e = {}) {
|
|
|
1710
1717
|
messages: o,
|
|
1711
1718
|
modifiers: E,
|
|
1712
1719
|
pluralRules: b,
|
|
1713
|
-
missing:
|
|
1720
|
+
missing: T,
|
|
1714
1721
|
missingWarn: N,
|
|
1715
|
-
fallbackWarn:
|
|
1716
|
-
fallbackFormat:
|
|
1717
|
-
unresolving:
|
|
1722
|
+
fallbackWarn: v,
|
|
1723
|
+
fallbackFormat: F,
|
|
1724
|
+
unresolving: A,
|
|
1718
1725
|
postTranslation: D,
|
|
1719
1726
|
processor: f,
|
|
1720
1727
|
warnHtmlMessage: m,
|
|
1721
|
-
escapeParameter:
|
|
1728
|
+
escapeParameter: L,
|
|
1722
1729
|
messageCompiler: d,
|
|
1723
1730
|
messageResolver: I,
|
|
1724
1731
|
localeFallbacker: C,
|
|
@@ -1726,7 +1733,7 @@ function Rs(e = {}) {
|
|
|
1726
1733
|
onWarn: t,
|
|
1727
1734
|
__meta: ae
|
|
1728
1735
|
};
|
|
1729
|
-
return Y.datetimeFormats = i, Y.numberFormats = c, Y.__datetimeFormatters = U, Y.__numberFormatters = X, process.env.NODE_ENV !== "production" && (Y.__v_emitter = y.__v_emitter != null ? y.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) &&
|
|
1736
|
+
return Y.datetimeFormats = i, Y.numberFormats = c, Y.__datetimeFormatters = U, Y.__numberFormatters = X, process.env.NODE_ENV !== "production" && (Y.__v_emitter = y.__v_emitter != null ? y.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && ds(Y, n, ae), Y;
|
|
1730
1737
|
}
|
|
1731
1738
|
const bt = (e) => ({ [e]: $() });
|
|
1732
1739
|
function nt(e, t) {
|
|
@@ -1750,7 +1757,7 @@ function Ht(e, t, n, r, a) {
|
|
|
1750
1757
|
const i = s(e, n, t, a);
|
|
1751
1758
|
return O(i) ? i : t;
|
|
1752
1759
|
} else
|
|
1753
|
-
return process.env.NODE_ENV !== "production" && er(r, t) && o(
|
|
1760
|
+
return process.env.NODE_ENV !== "production" && er(r, t) && o(Le(Z.NOT_FOUND_KEY, { key: t, locale: n })), t;
|
|
1754
1761
|
}
|
|
1755
1762
|
function Ve(e, t, n) {
|
|
1756
1763
|
const r = e;
|
|
@@ -1759,7 +1766,7 @@ function Ve(e, t, n) {
|
|
|
1759
1766
|
function tr(e, t) {
|
|
1760
1767
|
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
1761
1768
|
}
|
|
1762
|
-
function
|
|
1769
|
+
function Bs(e, t) {
|
|
1763
1770
|
const n = t.indexOf(e);
|
|
1764
1771
|
if (n === -1)
|
|
1765
1772
|
return !1;
|
|
@@ -1775,22 +1782,22 @@ const En = typeof Intl < "u", nr = {
|
|
|
1775
1782
|
function gn(e, ...t) {
|
|
1776
1783
|
const { datetimeFormats: n, unresolving: r, fallbackLocale: a, onWarn: s, localeFallbacker: o } = e, { __datetimeFormatters: i } = e;
|
|
1777
1784
|
if (process.env.NODE_ENV !== "production" && !nr.dateTimeFormat)
|
|
1778
|
-
return s(
|
|
1779
|
-
const [c, E, b,
|
|
1785
|
+
return s(Le(Z.CANNOT_FORMAT_DATE)), Ze;
|
|
1786
|
+
const [c, E, b, T] = vt(...t), N = M(b.missingWarn) ? b.missingWarn : e.missingWarn, v = M(b.fallbackWarn) ? b.fallbackWarn : e.fallbackWarn, F = !!b.part, A = Yt(e, b), D = o(
|
|
1780
1787
|
e,
|
|
1781
1788
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1782
1789
|
a,
|
|
1783
|
-
|
|
1790
|
+
A
|
|
1784
1791
|
);
|
|
1785
1792
|
if (!O(c) || c === "")
|
|
1786
|
-
return new Intl.DateTimeFormat(
|
|
1787
|
-
let f = {}, m,
|
|
1793
|
+
return new Intl.DateTimeFormat(A, T).format(E);
|
|
1794
|
+
let f = {}, m, L = null, d = A, I = null;
|
|
1788
1795
|
const C = "datetime format";
|
|
1789
1796
|
for (let U = 0; U < D.length; U++) {
|
|
1790
|
-
if (m = I = D[U], process.env.NODE_ENV !== "production" &&
|
|
1797
|
+
if (m = I = D[U], process.env.NODE_ENV !== "production" && A !== m && nt(v, c) && s(Le(Z.FALLBACK_TO_DATE_FORMAT, {
|
|
1791
1798
|
key: c,
|
|
1792
1799
|
target: m
|
|
1793
|
-
})), process.env.NODE_ENV !== "production" &&
|
|
1800
|
+
})), process.env.NODE_ENV !== "production" && A !== m) {
|
|
1794
1801
|
const X = e.__v_emitter;
|
|
1795
1802
|
X && X.emit("fallback", {
|
|
1796
1803
|
type: C,
|
|
@@ -1800,16 +1807,16 @@ function gn(e, ...t) {
|
|
|
1800
1807
|
groupId: `${C}:${c}`
|
|
1801
1808
|
});
|
|
1802
1809
|
}
|
|
1803
|
-
if (f = n[m] || {},
|
|
1810
|
+
if (f = n[m] || {}, L = f[c], R(L))
|
|
1804
1811
|
break;
|
|
1805
1812
|
Ht(e, c, m, N, C), d = I;
|
|
1806
1813
|
}
|
|
1807
|
-
if (!
|
|
1814
|
+
if (!R(L) || !O(m))
|
|
1808
1815
|
return r ? tt : c;
|
|
1809
1816
|
let g = `${m}__${c}`;
|
|
1810
|
-
et(
|
|
1817
|
+
et(T) || (g = `${g}__${JSON.stringify(T)}`);
|
|
1811
1818
|
let y = i.get(g);
|
|
1812
|
-
return y || (y = new Intl.DateTimeFormat(m, J({},
|
|
1819
|
+
return y || (y = new Intl.DateTimeFormat(m, J({}, L, T)), i.set(g, y)), F ? y.formatToParts(E) : y.format(E);
|
|
1813
1820
|
}
|
|
1814
1821
|
const rr = [
|
|
1815
1822
|
"localeMatcher",
|
|
@@ -1833,7 +1840,7 @@ const rr = [
|
|
|
1833
1840
|
"hourCycle",
|
|
1834
1841
|
"fractionalSecondDigits"
|
|
1835
1842
|
];
|
|
1836
|
-
function
|
|
1843
|
+
function vt(...e) {
|
|
1837
1844
|
const [t, n, r, a] = e, s = $();
|
|
1838
1845
|
let o = $(), i;
|
|
1839
1846
|
if (O(t)) {
|
|
@@ -1847,7 +1854,7 @@ function At(...e) {
|
|
|
1847
1854
|
} catch {
|
|
1848
1855
|
throw me(q.INVALID_ISO_DATE_ARGUMENT);
|
|
1849
1856
|
}
|
|
1850
|
-
} else if (
|
|
1857
|
+
} else if (Na(t)) {
|
|
1851
1858
|
if (isNaN(t.getTime()))
|
|
1852
1859
|
throw me(q.INVALID_DATE_ARGUMENT);
|
|
1853
1860
|
i = t;
|
|
@@ -1855,9 +1862,9 @@ function At(...e) {
|
|
|
1855
1862
|
i = t;
|
|
1856
1863
|
else
|
|
1857
1864
|
throw me(q.INVALID_ARGUMENT);
|
|
1858
|
-
return O(n) ? s.key = n :
|
|
1865
|
+
return O(n) ? s.key = n : R(n) && Object.keys(n).forEach((c) => {
|
|
1859
1866
|
rr.includes(c) ? o[c] = n[c] : s[c] = n[c];
|
|
1860
|
-
}), O(r) ? s.locale = r :
|
|
1867
|
+
}), O(r) ? s.locale = r : R(r) && (o = r), R(a) && (o = a), [s.key || "", i, s, o];
|
|
1861
1868
|
}
|
|
1862
1869
|
function pn(e, t, n) {
|
|
1863
1870
|
const r = e;
|
|
@@ -1869,22 +1876,22 @@ function pn(e, t, n) {
|
|
|
1869
1876
|
function Nn(e, ...t) {
|
|
1870
1877
|
const { numberFormats: n, unresolving: r, fallbackLocale: a, onWarn: s, localeFallbacker: o } = e, { __numberFormatters: i } = e;
|
|
1871
1878
|
if (process.env.NODE_ENV !== "production" && !nr.numberFormat)
|
|
1872
|
-
return s(
|
|
1873
|
-
const [c, E, b,
|
|
1879
|
+
return s(Le(Z.CANNOT_FORMAT_NUMBER)), Ze;
|
|
1880
|
+
const [c, E, b, T] = Dt(...t), N = M(b.missingWarn) ? b.missingWarn : e.missingWarn, v = M(b.fallbackWarn) ? b.fallbackWarn : e.fallbackWarn, F = !!b.part, A = Yt(e, b), D = o(
|
|
1874
1881
|
e,
|
|
1875
1882
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1876
1883
|
a,
|
|
1877
|
-
|
|
1884
|
+
A
|
|
1878
1885
|
);
|
|
1879
1886
|
if (!O(c) || c === "")
|
|
1880
|
-
return new Intl.NumberFormat(
|
|
1881
|
-
let f = {}, m,
|
|
1887
|
+
return new Intl.NumberFormat(A, T).format(E);
|
|
1888
|
+
let f = {}, m, L = null, d = A, I = null;
|
|
1882
1889
|
const C = "number format";
|
|
1883
1890
|
for (let U = 0; U < D.length; U++) {
|
|
1884
|
-
if (m = I = D[U], process.env.NODE_ENV !== "production" &&
|
|
1891
|
+
if (m = I = D[U], process.env.NODE_ENV !== "production" && A !== m && nt(v, c) && s(Le(Z.FALLBACK_TO_NUMBER_FORMAT, {
|
|
1885
1892
|
key: c,
|
|
1886
1893
|
target: m
|
|
1887
|
-
})), process.env.NODE_ENV !== "production" &&
|
|
1894
|
+
})), process.env.NODE_ENV !== "production" && A !== m) {
|
|
1888
1895
|
const X = e.__v_emitter;
|
|
1889
1896
|
X && X.emit("fallback", {
|
|
1890
1897
|
type: C,
|
|
@@ -1894,16 +1901,16 @@ function Nn(e, ...t) {
|
|
|
1894
1901
|
groupId: `${C}:${c}`
|
|
1895
1902
|
});
|
|
1896
1903
|
}
|
|
1897
|
-
if (f = n[m] || {},
|
|
1904
|
+
if (f = n[m] || {}, L = f[c], R(L))
|
|
1898
1905
|
break;
|
|
1899
1906
|
Ht(e, c, m, N, C), d = I;
|
|
1900
1907
|
}
|
|
1901
|
-
if (!
|
|
1908
|
+
if (!R(L) || !O(m))
|
|
1902
1909
|
return r ? tt : c;
|
|
1903
1910
|
let g = `${m}__${c}`;
|
|
1904
|
-
et(
|
|
1911
|
+
et(T) || (g = `${g}__${JSON.stringify(T)}`);
|
|
1905
1912
|
let y = i.get(g);
|
|
1906
|
-
return y || (y = new Intl.NumberFormat(m, J({},
|
|
1913
|
+
return y || (y = new Intl.NumberFormat(m, J({}, L, T)), i.set(g, y)), F ? y.formatToParts(E) : y.format(E);
|
|
1907
1914
|
}
|
|
1908
1915
|
const ar = [
|
|
1909
1916
|
"localeMatcher",
|
|
@@ -1933,9 +1940,9 @@ function Dt(...e) {
|
|
|
1933
1940
|
if (!j(t))
|
|
1934
1941
|
throw me(q.INVALID_ARGUMENT);
|
|
1935
1942
|
const i = t;
|
|
1936
|
-
return O(n) ? s.key = n :
|
|
1943
|
+
return O(n) ? s.key = n : R(n) && Object.keys(n).forEach((c) => {
|
|
1937
1944
|
ar.includes(c) ? o[c] = n[c] : s[c] = n[c];
|
|
1938
|
-
}), O(r) ? s.locale = r :
|
|
1945
|
+
}), O(r) ? s.locale = r : R(r) && (o = r), R(a) && (o = a), [s.key || "", i, s, o];
|
|
1939
1946
|
}
|
|
1940
1947
|
function hn(e, t, n) {
|
|
1941
1948
|
const r = e;
|
|
@@ -1944,57 +1951,57 @@ function hn(e, t, n) {
|
|
|
1944
1951
|
r.__numberFormatters.has(s) && r.__numberFormatters.delete(s);
|
|
1945
1952
|
}
|
|
1946
1953
|
}
|
|
1947
|
-
const
|
|
1948
|
-
function
|
|
1954
|
+
const Ws = (e) => e, Gs = (e) => "", Ys = "text", Hs = (e) => e.length === 0 ? "" : xt(e), Ks = Oa;
|
|
1955
|
+
function Tn(e, t) {
|
|
1949
1956
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1950
1957
|
}
|
|
1951
|
-
function
|
|
1958
|
+
function js(e) {
|
|
1952
1959
|
const t = j(e.pluralIndex) ? e.pluralIndex : -1;
|
|
1953
1960
|
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;
|
|
1954
1961
|
}
|
|
1955
|
-
function
|
|
1962
|
+
function Xs(e, t) {
|
|
1956
1963
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
1957
1964
|
}
|
|
1958
|
-
function
|
|
1959
|
-
const t = e.locale, n =
|
|
1960
|
-
j(e.pluralIndex) &&
|
|
1965
|
+
function Js(e = {}) {
|
|
1966
|
+
const t = e.locale, n = js(e), r = k(e.pluralRules) && O(t) && x(e.pluralRules[t]) ? e.pluralRules[t] : Tn, a = k(e.pluralRules) && O(t) && x(e.pluralRules[t]) ? Tn : void 0, s = (f) => f[r(n, f.length, a)], o = e.list || [], i = (f) => o[f], c = e.named || $();
|
|
1967
|
+
j(e.pluralIndex) && Xs(n, c);
|
|
1961
1968
|
const E = (f) => c[f];
|
|
1962
1969
|
function b(f, m) {
|
|
1963
|
-
const
|
|
1964
|
-
return
|
|
1970
|
+
const L = x(e.messages) ? e.messages(f, !!m) : k(e.messages) ? e.messages[f] : !1;
|
|
1971
|
+
return L || (e.parent ? e.parent.message(f) : Gs);
|
|
1965
1972
|
}
|
|
1966
|
-
const
|
|
1973
|
+
const T = (f) => e.modifiers ? e.modifiers[f] : Ws, N = R(e.processor) && x(e.processor.normalize) ? e.processor.normalize : Hs, v = R(e.processor) && x(e.processor.interpolate) ? e.processor.interpolate : Ks, F = R(e.processor) && O(e.processor.type) ? e.processor.type : Ys, D = {
|
|
1967
1974
|
list: i,
|
|
1968
1975
|
named: E,
|
|
1969
1976
|
plural: s,
|
|
1970
1977
|
linked: (f, ...m) => {
|
|
1971
|
-
const [
|
|
1978
|
+
const [L, d] = m;
|
|
1972
1979
|
let I = "text", C = "";
|
|
1973
|
-
m.length === 1 ?
|
|
1980
|
+
m.length === 1 ? k(L) ? (C = L.modifier || C, I = L.type || I) : O(L) && (C = L || C) : m.length === 2 && (O(L) && (C = L || C), O(d) && (I = d || I));
|
|
1974
1981
|
const g = b(f, !0)(D), y = (
|
|
1975
1982
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1976
1983
|
I === "vnode" && G(g) && C ? g[0] : g
|
|
1977
1984
|
);
|
|
1978
|
-
return C ?
|
|
1985
|
+
return C ? T(C)(y, I) : y;
|
|
1979
1986
|
},
|
|
1980
1987
|
message: b,
|
|
1981
|
-
type:
|
|
1982
|
-
interpolate:
|
|
1988
|
+
type: F,
|
|
1989
|
+
interpolate: v,
|
|
1983
1990
|
normalize: N,
|
|
1984
1991
|
values: J($(), o, c)
|
|
1985
1992
|
};
|
|
1986
1993
|
return D;
|
|
1987
1994
|
}
|
|
1988
|
-
const
|
|
1995
|
+
const Ln = () => "", te = (e) => x(e);
|
|
1989
1996
|
function bn(e, ...t) {
|
|
1990
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: a, messageCompiler: s, fallbackLocale: o, messages: i } = e, [c, E] = St(...t), b = M(E.missingWarn) ? E.missingWarn : e.missingWarn,
|
|
1991
|
-
N &&
|
|
1992
|
-
let [f, m,
|
|
1997
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: a, messageCompiler: s, fallbackLocale: o, messages: i } = e, [c, E] = St(...t), b = M(E.missingWarn) ? E.missingWarn : e.missingWarn, T = M(E.fallbackWarn) ? E.fallbackWarn : e.fallbackWarn, N = M(E.escapeParameter) ? E.escapeParameter : e.escapeParameter, v = !!E.resolvedMessage, F = O(E.default) || M(E.default) ? M(E.default) ? s ? c : () => c : E.default : n ? s ? c : () => c : null, A = n || F != null && (O(F) || x(F)), D = Yt(e, E);
|
|
1998
|
+
N && Qs(E);
|
|
1999
|
+
let [f, m, L] = v ? [
|
|
1993
2000
|
c,
|
|
1994
2001
|
D,
|
|
1995
2002
|
i[D] || $()
|
|
1996
|
-
] : sr(e, c, D, o,
|
|
1997
|
-
if (!
|
|
2003
|
+
] : sr(e, c, D, o, T, b), d = f, I = c;
|
|
2004
|
+
if (!v && !(O(d) || re(d) || te(d)) && A && (d = F, I = d), !v && (!(O(d) || re(d) || te(d)) || !O(m)))
|
|
1998
2005
|
return a ? tt : c;
|
|
1999
2006
|
if (process.env.NODE_ENV !== "production" && O(d) && e.messageCompiler == null)
|
|
2000
2007
|
return ue(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${c}'.`), c;
|
|
@@ -2004,9 +2011,9 @@ function bn(e, ...t) {
|
|
|
2004
2011
|
}, y = te(d) ? d : or(e, c, m, d, I, g);
|
|
2005
2012
|
if (C)
|
|
2006
2013
|
return d;
|
|
2007
|
-
const U =
|
|
2014
|
+
const U = eo(e, m, L, E), X = Js(U), ae = qs(e, y, X);
|
|
2008
2015
|
let Y = r ? r(ae, c) : ae;
|
|
2009
|
-
if (N && O(Y) && (Y =
|
|
2016
|
+
if (N && O(Y) && (Y = Ta(Y)), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
2010
2017
|
const Oe = {
|
|
2011
2018
|
timestamp: Date.now(),
|
|
2012
2019
|
key: O(c) ? c : te(d) ? d.key : "",
|
|
@@ -2014,21 +2021,21 @@ function bn(e, ...t) {
|
|
|
2014
2021
|
format: O(d) ? d : te(d) ? d.source : "",
|
|
2015
2022
|
message: Y
|
|
2016
2023
|
};
|
|
2017
|
-
Oe.meta = J({}, e.__meta, /* @__PURE__ */
|
|
2024
|
+
Oe.meta = J({}, e.__meta, /* @__PURE__ */ Vs() || {}), Es(Oe);
|
|
2018
2025
|
}
|
|
2019
2026
|
return Y;
|
|
2020
2027
|
}
|
|
2021
|
-
function
|
|
2022
|
-
G(e.list) ? e.list = e.list.map((t) => O(t) ? tn(t) : t) :
|
|
2028
|
+
function Qs(e) {
|
|
2029
|
+
G(e.list) ? e.list = e.list.map((t) => O(t) ? tn(t) : t) : k(e.named) && Object.keys(e.named).forEach((t) => {
|
|
2023
2030
|
O(e.named[t]) && (e.named[t] = tn(e.named[t]));
|
|
2024
2031
|
});
|
|
2025
2032
|
}
|
|
2026
2033
|
function sr(e, t, n, r, a, s) {
|
|
2027
2034
|
const { messages: o, onWarn: i, messageResolver: c, localeFallbacker: E } = e, b = E(e, r, n);
|
|
2028
|
-
let
|
|
2035
|
+
let T = $(), N, v = null, F = n, A = null;
|
|
2029
2036
|
const D = "translate";
|
|
2030
2037
|
for (let f = 0; f < b.length; f++) {
|
|
2031
|
-
if (N =
|
|
2038
|
+
if (N = A = b[f], process.env.NODE_ENV !== "production" && n !== N && !tr(n, N) && nt(a, t) && i(Le(Z.FALLBACK_TO_TRANSLATE, {
|
|
2032
2039
|
key: t,
|
|
2033
2040
|
target: N
|
|
2034
2041
|
})), process.env.NODE_ENV !== "production" && n !== N) {
|
|
@@ -2036,26 +2043,26 @@ function sr(e, t, n, r, a, s) {
|
|
|
2036
2043
|
I && I.emit("fallback", {
|
|
2037
2044
|
type: D,
|
|
2038
2045
|
key: t,
|
|
2039
|
-
from:
|
|
2040
|
-
to:
|
|
2046
|
+
from: F,
|
|
2047
|
+
to: A,
|
|
2041
2048
|
groupId: `${D}:${t}`
|
|
2042
2049
|
});
|
|
2043
2050
|
}
|
|
2044
|
-
|
|
2045
|
-
let m = null,
|
|
2046
|
-
if (process.env.NODE_ENV !== "production" && oe && (m = window.performance.now(),
|
|
2051
|
+
T = o[N] || $();
|
|
2052
|
+
let m = null, L, d;
|
|
2053
|
+
if (process.env.NODE_ENV !== "production" && oe && (m = window.performance.now(), L = "intlify-message-resolve-start", d = "intlify-message-resolve-end", ee && ee(L)), (v = c(T, t)) === null && (v = T[t]), process.env.NODE_ENV !== "production" && oe) {
|
|
2047
2054
|
const I = window.performance.now(), C = e.__v_emitter;
|
|
2048
|
-
C && m &&
|
|
2055
|
+
C && m && v && C.emit("message-resolve", {
|
|
2049
2056
|
type: "message-resolve",
|
|
2050
2057
|
key: t,
|
|
2051
|
-
message:
|
|
2058
|
+
message: v,
|
|
2052
2059
|
time: I - m,
|
|
2053
2060
|
groupId: `${D}:${t}`
|
|
2054
|
-
}),
|
|
2061
|
+
}), L && d && ee && Te && (ee(d), Te("intlify message resolve", L, d));
|
|
2055
2062
|
}
|
|
2056
|
-
if (O(
|
|
2063
|
+
if (O(v) || re(v) || te(v))
|
|
2057
2064
|
break;
|
|
2058
|
-
if (!
|
|
2065
|
+
if (!Bs(N, b)) {
|
|
2059
2066
|
const I = Ht(
|
|
2060
2067
|
e,
|
|
2061
2068
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
@@ -2064,11 +2071,11 @@ function sr(e, t, n, r, a, s) {
|
|
|
2064
2071
|
s,
|
|
2065
2072
|
D
|
|
2066
2073
|
);
|
|
2067
|
-
I !== t && (
|
|
2074
|
+
I !== t && (v = I);
|
|
2068
2075
|
}
|
|
2069
|
-
|
|
2076
|
+
F = A;
|
|
2070
2077
|
}
|
|
2071
|
-
return [
|
|
2078
|
+
return [v, N, T];
|
|
2072
2079
|
}
|
|
2073
2080
|
function or(e, t, n, r, a, s) {
|
|
2074
2081
|
const { messageCompiler: o, warnHtmlMessage: i } = e;
|
|
@@ -2082,19 +2089,19 @@ function or(e, t, n, r, a, s) {
|
|
|
2082
2089
|
}
|
|
2083
2090
|
let c = null, E, b;
|
|
2084
2091
|
process.env.NODE_ENV !== "production" && oe && (c = window.performance.now(), E = "intlify-message-compilation-start", b = "intlify-message-compilation-end", ee && ee(E));
|
|
2085
|
-
const
|
|
2092
|
+
const T = o(r, Zs(e, n, a, r, i, s));
|
|
2086
2093
|
if (process.env.NODE_ENV !== "production" && oe) {
|
|
2087
|
-
const N = window.performance.now(),
|
|
2088
|
-
|
|
2094
|
+
const N = window.performance.now(), v = e.__v_emitter;
|
|
2095
|
+
v && c && v.emit("message-compilation", {
|
|
2089
2096
|
type: "message-compilation",
|
|
2090
2097
|
message: r,
|
|
2091
2098
|
time: N - c,
|
|
2092
2099
|
groupId: `translate:${t}`
|
|
2093
|
-
}), E && b && ee &&
|
|
2100
|
+
}), E && b && ee && Te && (ee(b), Te("intlify message compilation", E, b));
|
|
2094
2101
|
}
|
|
2095
|
-
return
|
|
2102
|
+
return T.locale = n, T.key = t, T.source = r, T;
|
|
2096
2103
|
}
|
|
2097
|
-
function
|
|
2104
|
+
function qs(e, t, n) {
|
|
2098
2105
|
let r = null, a, s;
|
|
2099
2106
|
process.env.NODE_ENV !== "production" && oe && (r = window.performance.now(), a = "intlify-message-evaluation-start", s = "intlify-message-evaluation-end", ee && ee(a));
|
|
2100
2107
|
const o = t(n);
|
|
@@ -2105,7 +2112,7 @@ function Hs(e, t, n) {
|
|
|
2105
2112
|
value: o,
|
|
2106
2113
|
time: i - r,
|
|
2107
2114
|
groupId: `translate:${t.key}`
|
|
2108
|
-
}), a && s && ee &&
|
|
2115
|
+
}), a && s && ee && Te && (ee(s), Te("intlify message evaluation", a, s));
|
|
2109
2116
|
}
|
|
2110
2117
|
return o;
|
|
2111
2118
|
}
|
|
@@ -2114,16 +2121,16 @@ function St(...e) {
|
|
|
2114
2121
|
if (!O(t) && !j(t) && !te(t) && !re(t))
|
|
2115
2122
|
throw me(q.INVALID_ARGUMENT);
|
|
2116
2123
|
const s = j(t) ? String(t) : (te(t), t);
|
|
2117
|
-
return j(n) ? a.plural = n : O(n) ? a.default = n :
|
|
2124
|
+
return j(n) ? a.plural = n : O(n) ? a.default = n : R(n) && !et(n) ? a.named = n : G(n) && (a.list = n), j(r) ? a.plural = r : O(r) ? a.default = r : R(r) && J(a, r), [s, a];
|
|
2118
2125
|
}
|
|
2119
|
-
function
|
|
2126
|
+
function Zs(e, t, n, r, a, s) {
|
|
2120
2127
|
return {
|
|
2121
2128
|
locale: t,
|
|
2122
2129
|
key: n,
|
|
2123
2130
|
warnHtmlMessage: a,
|
|
2124
2131
|
onError: (o) => {
|
|
2125
2132
|
if (s && s(o), process.env.NODE_ENV !== "production") {
|
|
2126
|
-
const i =
|
|
2133
|
+
const i = zs(r), c = `Message compilation error: ${o.message}`, E = o.location && i && Ia(i, o.location.start.offset, o.location.end.offset), b = e.__v_emitter;
|
|
2127
2134
|
b && i && b.emit("compile-error", {
|
|
2128
2135
|
message: i,
|
|
2129
2136
|
error: o.message,
|
|
@@ -2135,62 +2142,62 @@ ${E}` : c);
|
|
|
2135
2142
|
} else
|
|
2136
2143
|
throw o;
|
|
2137
2144
|
},
|
|
2138
|
-
onCacheKey: (o) =>
|
|
2145
|
+
onCacheKey: (o) => ga(t, n, o)
|
|
2139
2146
|
};
|
|
2140
2147
|
}
|
|
2141
|
-
function
|
|
2148
|
+
function zs(e) {
|
|
2142
2149
|
if (O(e))
|
|
2143
2150
|
return e;
|
|
2144
2151
|
if (e.loc && e.loc.source)
|
|
2145
2152
|
return e.loc.source;
|
|
2146
2153
|
}
|
|
2147
|
-
function
|
|
2154
|
+
function eo(e, t, n, r) {
|
|
2148
2155
|
const { modifiers: a, pluralRules: s, messageResolver: o, fallbackLocale: i, fallbackWarn: c, missingWarn: E, fallbackContext: b } = e, N = {
|
|
2149
2156
|
locale: t,
|
|
2150
2157
|
modifiers: a,
|
|
2151
2158
|
pluralRules: s,
|
|
2152
|
-
messages: (
|
|
2153
|
-
let
|
|
2154
|
-
if (
|
|
2159
|
+
messages: (v, F) => {
|
|
2160
|
+
let A = o(n, v);
|
|
2161
|
+
if (A == null && (b || F)) {
|
|
2155
2162
|
const [, , D] = sr(
|
|
2156
2163
|
b || e,
|
|
2157
2164
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
2158
|
-
|
|
2165
|
+
v,
|
|
2159
2166
|
t,
|
|
2160
2167
|
i,
|
|
2161
2168
|
c,
|
|
2162
2169
|
E
|
|
2163
2170
|
);
|
|
2164
|
-
|
|
2171
|
+
A = o(D, v);
|
|
2165
2172
|
}
|
|
2166
|
-
if (O(
|
|
2173
|
+
if (O(A) || re(A)) {
|
|
2167
2174
|
let D = !1;
|
|
2168
|
-
const m = or(e,
|
|
2175
|
+
const m = or(e, v, t, A, v, () => {
|
|
2169
2176
|
D = !0;
|
|
2170
2177
|
});
|
|
2171
|
-
return D ?
|
|
2172
|
-
} else return te(
|
|
2178
|
+
return D ? Ln : m;
|
|
2179
|
+
} else return te(A) ? A : Ln;
|
|
2173
2180
|
}
|
|
2174
2181
|
};
|
|
2175
2182
|
return e.processor && (N.processor = e.processor), r.list && (N.list = r.list), r.named && (N.named = r.named), j(r.plural) && (N.pluralIndex = r.plural), N;
|
|
2176
2183
|
}
|
|
2177
|
-
|
|
2178
|
-
function
|
|
2184
|
+
es();
|
|
2185
|
+
function to() {
|
|
2179
2186
|
return lr().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
2180
2187
|
}
|
|
2181
2188
|
function lr() {
|
|
2182
2189
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
2183
2190
|
}
|
|
2184
|
-
const
|
|
2185
|
-
let Ce,
|
|
2186
|
-
function
|
|
2191
|
+
const no = typeof Proxy == "function", ro = "devtools-plugin:setup", ao = "plugin:settings:set";
|
|
2192
|
+
let Ce, Pt;
|
|
2193
|
+
function so() {
|
|
2187
2194
|
var e;
|
|
2188
|
-
return Ce !== void 0 || (typeof window < "u" && window.performance ? (Ce = !0,
|
|
2195
|
+
return Ce !== void 0 || (typeof window < "u" && window.performance ? (Ce = !0, Pt = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (Ce = !0, Pt = globalThis.perf_hooks.performance) : Ce = !1), Ce;
|
|
2189
2196
|
}
|
|
2190
|
-
function
|
|
2191
|
-
return
|
|
2197
|
+
function oo() {
|
|
2198
|
+
return so() ? Pt.now() : Date.now();
|
|
2192
2199
|
}
|
|
2193
|
-
class
|
|
2200
|
+
class lo {
|
|
2194
2201
|
constructor(t, n) {
|
|
2195
2202
|
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
|
|
2196
2203
|
const r = {};
|
|
@@ -2218,9 +2225,9 @@ class to {
|
|
|
2218
2225
|
s = o;
|
|
2219
2226
|
},
|
|
2220
2227
|
now() {
|
|
2221
|
-
return
|
|
2228
|
+
return oo();
|
|
2222
2229
|
}
|
|
2223
|
-
}, n && n.on(
|
|
2230
|
+
}, n && n.on(ao, (o, i) => {
|
|
2224
2231
|
o === this.plugin.id && this.fallbacks.setSettings(i);
|
|
2225
2232
|
}), this.proxiedOn = new Proxy({}, {
|
|
2226
2233
|
get: (o, i) => this.target ? this.target.on[i] : (...c) => {
|
|
@@ -2252,12 +2259,12 @@ class to {
|
|
|
2252
2259
|
n.resolve(await this.target[n.method](...n.args));
|
|
2253
2260
|
}
|
|
2254
2261
|
}
|
|
2255
|
-
function
|
|
2256
|
-
const n = e, r = lr(), a =
|
|
2262
|
+
function io(e, t) {
|
|
2263
|
+
const n = e, r = lr(), a = to(), s = no && n.enableEarlyProxy;
|
|
2257
2264
|
if (a && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !s))
|
|
2258
|
-
a.emit(
|
|
2265
|
+
a.emit(ro, e, t);
|
|
2259
2266
|
else {
|
|
2260
|
-
const o = s ? new
|
|
2267
|
+
const o = s ? new lo(n, a) : null;
|
|
2261
2268
|
(r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
2262
2269
|
pluginDescriptor: n,
|
|
2263
2270
|
setupFn: t,
|
|
@@ -2265,13 +2272,13 @@ function no(e, t) {
|
|
|
2265
2272
|
}), o && t(o.proxiedTarget);
|
|
2266
2273
|
}
|
|
2267
2274
|
}
|
|
2268
|
-
const
|
|
2269
|
-
function
|
|
2275
|
+
const uo = "11.2.7";
|
|
2276
|
+
function co() {
|
|
2270
2277
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (he().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (he().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (he().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (he().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
2271
2278
|
}
|
|
2272
2279
|
const B = {
|
|
2273
2280
|
// composer module errors
|
|
2274
|
-
UNEXPECTED_RETURN_TYPE:
|
|
2281
|
+
UNEXPECTED_RETURN_TYPE: ps,
|
|
2275
2282
|
// 24
|
|
2276
2283
|
// legacy module errors
|
|
2277
2284
|
INVALID_ARGUMENT: 25,
|
|
@@ -2292,9 +2299,9 @@ const B = {
|
|
|
2292
2299
|
NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
|
|
2293
2300
|
};
|
|
2294
2301
|
function z(e, ...t) {
|
|
2295
|
-
return ye(e, null, process.env.NODE_ENV !== "production" ? { messages:
|
|
2302
|
+
return ye(e, null, process.env.NODE_ENV !== "production" ? { messages: fo, args: t } : void 0);
|
|
2296
2303
|
}
|
|
2297
|
-
const
|
|
2304
|
+
const fo = {
|
|
2298
2305
|
[B.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
|
2299
2306
|
[B.INVALID_ARGUMENT]: "Invalid argument",
|
|
2300
2307
|
[B.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
|
|
@@ -2306,8 +2313,8 @@ const so = {
|
|
|
2306
2313
|
[B.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
|
|
2307
2314
|
[B.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
|
2308
2315
|
[B.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
|
|
2309
|
-
},
|
|
2310
|
-
FALLBACK_TO_ROOT:
|
|
2316
|
+
}, Ft = /* @__PURE__ */ ce("__translateVNode"), yt = /* @__PURE__ */ ce("__datetimeParts"), Rt = /* @__PURE__ */ ce("__numberParts"), be = /* @__PURE__ */ ce("__enableEmitter"), We = /* @__PURE__ */ ce("__disableEmitter"), ir = ce("__setPluralRules"), ur = /* @__PURE__ */ ce("__injectWithOption"), kt = /* @__PURE__ */ ce("__dispose"), ne = {
|
|
2317
|
+
FALLBACK_TO_ROOT: Ps,
|
|
2311
2318
|
// 8
|
|
2312
2319
|
NOT_FOUND_PARENT_SCOPE: 9,
|
|
2313
2320
|
IGNORE_OBJ_FLATTEN: 10,
|
|
@@ -2321,7 +2328,7 @@ const so = {
|
|
|
2321
2328
|
DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE: 12,
|
|
2322
2329
|
// duplicate `useI18n` calling
|
|
2323
2330
|
DUPLICATE_USE_I18N_CALLING: 13
|
|
2324
|
-
},
|
|
2331
|
+
}, _o = {
|
|
2325
2332
|
[ne.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
|
|
2326
2333
|
[ne.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
|
|
2327
2334
|
[ne.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
|
|
@@ -2336,24 +2343,24 @@ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guid
|
|
|
2336
2343
|
[ne.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]: "'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",
|
|
2337
2344
|
[ne.DUPLICATE_USE_I18N_CALLING]: "Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."
|
|
2338
2345
|
};
|
|
2339
|
-
function
|
|
2340
|
-
return ze(
|
|
2346
|
+
function Pe(e, ...t) {
|
|
2347
|
+
return ze(_o[e], ...t);
|
|
2341
2348
|
}
|
|
2342
2349
|
function Ge(e) {
|
|
2343
|
-
if (!
|
|
2350
|
+
if (!k(e) || re(e))
|
|
2344
2351
|
return e;
|
|
2345
2352
|
for (const t in e)
|
|
2346
2353
|
if (se(e, t))
|
|
2347
2354
|
if (!t.includes("."))
|
|
2348
|
-
|
|
2355
|
+
k(e[t]) && Ge(e[t]);
|
|
2349
2356
|
else {
|
|
2350
2357
|
const n = t.split("."), r = n.length - 1;
|
|
2351
2358
|
let a = e, s = !1;
|
|
2352
2359
|
for (let o = 0; o < r; o++) {
|
|
2353
2360
|
if (n[o] === "__proto__")
|
|
2354
2361
|
throw new Error(`unsafe key: ${n[o]}`);
|
|
2355
|
-
if (n[o] in a || (a[n[o]] = $()), !
|
|
2356
|
-
process.env.NODE_ENV !== "production" && ue(
|
|
2362
|
+
if (n[o] in a || (a[n[o]] = $()), !k(a[n[o]])) {
|
|
2363
|
+
process.env.NODE_ENV !== "production" && ue(Pe(ne.IGNORE_OBJ_FLATTEN, {
|
|
2357
2364
|
key: n[o]
|
|
2358
2365
|
})), s = !0;
|
|
2359
2366
|
break;
|
|
@@ -2362,13 +2369,13 @@ function Ge(e) {
|
|
|
2362
2369
|
}
|
|
2363
2370
|
if (s || (re(a) ? jn.includes(n[r]) || delete e[t] : (a[n[r]] = e[t], delete e[t])), !re(a)) {
|
|
2364
2371
|
const o = a[n[r]];
|
|
2365
|
-
|
|
2372
|
+
k(o) && Ge(o);
|
|
2366
2373
|
}
|
|
2367
2374
|
}
|
|
2368
2375
|
return e;
|
|
2369
2376
|
}
|
|
2370
2377
|
function Kt(e, t) {
|
|
2371
|
-
const { messages: n, __i18n: r, messageResolver: a, flatJson: s } = t, o =
|
|
2378
|
+
const { messages: n, __i18n: r, messageResolver: a, flatJson: s } = t, o = R(n) ? n : G(r) ? $() : { [e]: $() };
|
|
2372
2379
|
if (G(r) && r.forEach((i) => {
|
|
2373
2380
|
if ("locale" in i && "resource" in i) {
|
|
2374
2381
|
const { locale: c, resource: E } = i;
|
|
@@ -2384,7 +2391,7 @@ function cr(e) {
|
|
|
2384
2391
|
return e.type;
|
|
2385
2392
|
}
|
|
2386
2393
|
function fr(e, t, n) {
|
|
2387
|
-
let r =
|
|
2394
|
+
let r = k(t.messages) ? t.messages : $();
|
|
2388
2395
|
"__i18nGlobal" in n && (r = Kt(e.locale.value, {
|
|
2389
2396
|
messages: r,
|
|
2390
2397
|
__i18n: n.__i18nGlobal
|
|
@@ -2394,13 +2401,13 @@ function fr(e, t, n) {
|
|
|
2394
2401
|
e.mergeLocaleMessage(s, r[s]);
|
|
2395
2402
|
});
|
|
2396
2403
|
{
|
|
2397
|
-
if (
|
|
2404
|
+
if (k(t.datetimeFormats)) {
|
|
2398
2405
|
const s = Object.keys(t.datetimeFormats);
|
|
2399
2406
|
s.length && s.forEach((o) => {
|
|
2400
2407
|
e.mergeDateTimeFormat(o, t.datetimeFormats[o]);
|
|
2401
2408
|
});
|
|
2402
2409
|
}
|
|
2403
|
-
if (
|
|
2410
|
+
if (k(t.numberFormats)) {
|
|
2404
2411
|
const s = Object.keys(t.numberFormats);
|
|
2405
2412
|
s.length && s.forEach((o) => {
|
|
2406
2413
|
e.mergeNumberFormat(o, t.numberFormats[o]);
|
|
@@ -2409,39 +2416,39 @@ function fr(e, t, n) {
|
|
|
2409
2416
|
}
|
|
2410
2417
|
}
|
|
2411
2418
|
function On(e) {
|
|
2412
|
-
return
|
|
2419
|
+
return _a(ma, null, e, 0);
|
|
2413
2420
|
}
|
|
2414
|
-
function
|
|
2421
|
+
function ve() {
|
|
2415
2422
|
const e = "currentInstance";
|
|
2416
2423
|
return e in Nt ? Nt[e] : Nt.getCurrentInstance();
|
|
2417
2424
|
}
|
|
2418
|
-
const In = "__INTLIFY_META__", Cn = () => [],
|
|
2419
|
-
let
|
|
2420
|
-
function
|
|
2421
|
-
return ((t, n, r, a) => e(n, r,
|
|
2425
|
+
const In = "__INTLIFY_META__", Cn = () => [], mo = () => !1;
|
|
2426
|
+
let An = 0;
|
|
2427
|
+
function vn(e) {
|
|
2428
|
+
return ((t, n, r, a) => e(n, r, ve() || void 0, a));
|
|
2422
2429
|
}
|
|
2423
|
-
const
|
|
2424
|
-
const e =
|
|
2430
|
+
const Eo = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
2431
|
+
const e = ve();
|
|
2425
2432
|
let t = null;
|
|
2426
2433
|
return e && (t = cr(e)[In]) ? { [In]: t } : null;
|
|
2427
2434
|
};
|
|
2428
2435
|
function jt(e = {}) {
|
|
2429
|
-
const { __root: t, __injectWithOption: n } = e, r = t === void 0, a = e.flatJson, s = oe ?
|
|
2436
|
+
const { __root: t, __injectWithOption: n } = e, r = t === void 0, a = e.flatJson, s = oe ? oa : la;
|
|
2430
2437
|
let o = M(e.inheritLocale) ? e.inheritLocale : !0;
|
|
2431
2438
|
const i = s(
|
|
2432
2439
|
// prettier-ignore
|
|
2433
2440
|
t && o ? t.locale.value : O(e.locale) ? e.locale : Be
|
|
2434
2441
|
), c = s(
|
|
2435
2442
|
// prettier-ignore
|
|
2436
|
-
t && o ? t.fallbackLocale.value : O(e.fallbackLocale) || G(e.fallbackLocale) ||
|
|
2437
|
-
), E = s(Kt(i.value, e)), b = s(
|
|
2438
|
-
let N = t ? t.missingWarn : M(e.missingWarn) || De(e.missingWarn) ? e.missingWarn : !0,
|
|
2439
|
-
const I = t ? t.modifiers :
|
|
2443
|
+
t && o ? t.fallbackLocale.value : O(e.fallbackLocale) || G(e.fallbackLocale) || R(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : i.value
|
|
2444
|
+
), E = s(Kt(i.value, e)), b = s(R(e.datetimeFormats) ? e.datetimeFormats : { [i.value]: {} }), T = s(R(e.numberFormats) ? e.numberFormats : { [i.value]: {} });
|
|
2445
|
+
let N = t ? t.missingWarn : M(e.missingWarn) || De(e.missingWarn) ? e.missingWarn : !0, v = t ? t.fallbackWarn : M(e.fallbackWarn) || De(e.fallbackWarn) ? e.fallbackWarn : !0, F = t ? t.fallbackRoot : M(e.fallbackRoot) ? e.fallbackRoot : !0, A = !!e.fallbackFormat, D = x(e.missing) ? e.missing : null, f = x(e.missing) ? vn(e.missing) : null, m = x(e.postTranslation) ? e.postTranslation : null, L = t ? t.warnHtmlMessage : M(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, d = !!e.escapeParameter;
|
|
2446
|
+
const I = t ? t.modifiers : R(e.modifiers) ? e.modifiers : {};
|
|
2440
2447
|
let C = e.pluralRules || t && t.pluralRules, g;
|
|
2441
2448
|
g = (() => {
|
|
2442
2449
|
r && mn(null);
|
|
2443
2450
|
const _ = {
|
|
2444
|
-
version:
|
|
2451
|
+
version: uo,
|
|
2445
2452
|
locale: i.value,
|
|
2446
2453
|
fallbackLocale: c.value,
|
|
2447
2454
|
messages: E.value,
|
|
@@ -2449,18 +2456,18 @@ function jt(e = {}) {
|
|
|
2449
2456
|
pluralRules: C,
|
|
2450
2457
|
missing: f === null ? void 0 : f,
|
|
2451
2458
|
missingWarn: N,
|
|
2452
|
-
fallbackWarn:
|
|
2453
|
-
fallbackFormat:
|
|
2459
|
+
fallbackWarn: v,
|
|
2460
|
+
fallbackFormat: A,
|
|
2454
2461
|
unresolving: !0,
|
|
2455
2462
|
postTranslation: m === null ? void 0 : m,
|
|
2456
|
-
warnHtmlMessage:
|
|
2463
|
+
warnHtmlMessage: L,
|
|
2457
2464
|
escapeParameter: d,
|
|
2458
2465
|
messageResolver: e.messageResolver,
|
|
2459
2466
|
messageCompiler: e.messageCompiler,
|
|
2460
2467
|
__meta: { framework: "vue" }
|
|
2461
2468
|
};
|
|
2462
|
-
_.datetimeFormats = b.value, _.numberFormats =
|
|
2463
|
-
const h =
|
|
2469
|
+
_.datetimeFormats = b.value, _.numberFormats = T.value, _.__datetimeFormatters = R(g) ? g.__datetimeFormatters : void 0, _.__numberFormatters = R(g) ? g.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (_.__v_emitter = R(g) ? g.__v_emitter : void 0);
|
|
2470
|
+
const h = xs(_);
|
|
2464
2471
|
return r && mn(h), h;
|
|
2465
2472
|
})(), Ve(g, i.value, c.value);
|
|
2466
2473
|
function U() {
|
|
@@ -2469,7 +2476,7 @@ function jt(e = {}) {
|
|
|
2469
2476
|
c.value,
|
|
2470
2477
|
E.value,
|
|
2471
2478
|
b.value,
|
|
2472
|
-
|
|
2479
|
+
T.value
|
|
2473
2480
|
];
|
|
2474
2481
|
}
|
|
2475
2482
|
const X = Ue({
|
|
@@ -2482,7 +2489,7 @@ function jt(e = {}) {
|
|
|
2482
2489
|
set: (_) => {
|
|
2483
2490
|
g.fallbackLocale = _, c.value = _, Ve(g, i.value, _);
|
|
2484
2491
|
}
|
|
2485
|
-
}), Y = Ue(() => E.value), Oe = /* @__PURE__ */ Ue(() => b.value), rt = /* @__PURE__ */ Ue(() =>
|
|
2492
|
+
}), Y = Ue(() => E.value), Oe = /* @__PURE__ */ Ue(() => b.value), rt = /* @__PURE__ */ Ue(() => T.value);
|
|
2486
2493
|
function at() {
|
|
2487
2494
|
return x(m) ? m : null;
|
|
2488
2495
|
}
|
|
@@ -2493,7 +2500,7 @@ function jt(e = {}) {
|
|
|
2493
2500
|
return D;
|
|
2494
2501
|
}
|
|
2495
2502
|
function lt(_) {
|
|
2496
|
-
_ !== null && (f =
|
|
2503
|
+
_ !== null && (f = vn(_)), D = _, g.missing = f;
|
|
2497
2504
|
}
|
|
2498
2505
|
function it(_, h) {
|
|
2499
2506
|
return _ !== "translate" || !h.resolvedMessage;
|
|
@@ -2502,43 +2509,43 @@ function jt(e = {}) {
|
|
|
2502
2509
|
U();
|
|
2503
2510
|
let Ie;
|
|
2504
2511
|
try {
|
|
2505
|
-
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (g.fallbackContext = t ?
|
|
2512
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (g.fallbackContext = t ? $s() : void 0), Ie = _(g);
|
|
2506
2513
|
} finally {
|
|
2507
2514
|
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (g.fallbackContext = void 0);
|
|
2508
2515
|
}
|
|
2509
2516
|
if (V !== "translate exists" && // for not `te` (e.g `t`)
|
|
2510
2517
|
j(Ie) && Ie === tt || V === "translate exists" && !Ie) {
|
|
2511
|
-
const [Ne,
|
|
2512
|
-
if (process.env.NODE_ENV !== "production" && t && O(Ne) && it(V,
|
|
2518
|
+
const [Ne, Tr] = h();
|
|
2519
|
+
if (process.env.NODE_ENV !== "production" && t && O(Ne) && it(V, Tr) && (F && (nt(v, Ne) || er(N, Ne)) && ue(Pe(ne.FALLBACK_TO_ROOT, {
|
|
2513
2520
|
key: Ne,
|
|
2514
2521
|
type: V
|
|
2515
2522
|
})), process.env.NODE_ENV !== "production")) {
|
|
2516
2523
|
const { __v_emitter: Zt } = g;
|
|
2517
|
-
Zt &&
|
|
2524
|
+
Zt && F && Zt.emit("fallback", {
|
|
2518
2525
|
type: V,
|
|
2519
2526
|
key: Ne,
|
|
2520
2527
|
to: "global",
|
|
2521
2528
|
groupId: `${V}:${Ne}`
|
|
2522
2529
|
});
|
|
2523
2530
|
}
|
|
2524
|
-
return t &&
|
|
2531
|
+
return t && F ? K(t) : pe(Ne);
|
|
2525
2532
|
} else {
|
|
2526
2533
|
if (je(Ie))
|
|
2527
2534
|
return Ie;
|
|
2528
2535
|
throw z(B.UNEXPECTED_RETURN_TYPE);
|
|
2529
2536
|
}
|
|
2530
2537
|
};
|
|
2531
|
-
function
|
|
2538
|
+
function Re(..._) {
|
|
2532
2539
|
return fe((h) => Reflect.apply(bn, null, [h, ..._]), () => St(..._), "translate", (h) => Reflect.apply(h.t, h, [..._]), (h) => h, (h) => O(h));
|
|
2533
2540
|
}
|
|
2534
2541
|
function ut(..._) {
|
|
2535
2542
|
const [h, V, K] = _;
|
|
2536
|
-
if (K && !
|
|
2543
|
+
if (K && !k(K))
|
|
2537
2544
|
throw z(B.INVALID_ARGUMENT);
|
|
2538
|
-
return
|
|
2545
|
+
return Re(h, V, J({ resolvedMessage: !0 }, K || {}));
|
|
2539
2546
|
}
|
|
2540
2547
|
function ct(..._) {
|
|
2541
|
-
return fe((h) => Reflect.apply(gn, null, [h, ..._]), () =>
|
|
2548
|
+
return fe((h) => Reflect.apply(gn, null, [h, ..._]), () => vt(..._), "datetime format", (h) => Reflect.apply(h.d, h, [..._]), () => Ze, (h) => O(h) || G(h));
|
|
2542
2549
|
}
|
|
2543
2550
|
function ft(..._) {
|
|
2544
2551
|
return fe((h) => Reflect.apply(Nn, null, [h, ..._]), () => Dt(..._), "number format", (h) => Reflect.apply(h.n, h, [..._]), () => Ze, (h) => O(h) || G(h));
|
|
@@ -2561,13 +2568,13 @@ function jt(e = {}) {
|
|
|
2561
2568
|
K.processor = null;
|
|
2562
2569
|
}
|
|
2563
2570
|
return V;
|
|
2564
|
-
}, () => St(..._), "translate", (h) => h[
|
|
2571
|
+
}, () => St(..._), "translate", (h) => h[Ft](..._), (h) => [On(h)], (h) => G(h));
|
|
2565
2572
|
}
|
|
2566
2573
|
function dt(..._) {
|
|
2567
|
-
return fe((h) => Reflect.apply(Nn, null, [h, ..._]), () => Dt(..._), "number format", (h) => h[
|
|
2574
|
+
return fe((h) => Reflect.apply(Nn, null, [h, ..._]), () => Dt(..._), "number format", (h) => h[Rt](..._), Cn, (h) => O(h) || G(h));
|
|
2568
2575
|
}
|
|
2569
2576
|
function Ke(..._) {
|
|
2570
|
-
return fe((h) => Reflect.apply(gn, null, [h, ..._]), () =>
|
|
2577
|
+
return fe((h) => Reflect.apply(gn, null, [h, ..._]), () => vt(..._), "datetime format", (h) => h[yt](..._), Cn, (h) => O(h) || G(h));
|
|
2571
2578
|
}
|
|
2572
2579
|
function Et(_) {
|
|
2573
2580
|
C = _, g.pluralRules = C;
|
|
@@ -2578,9 +2585,9 @@ function jt(e = {}) {
|
|
|
2578
2585
|
return !1;
|
|
2579
2586
|
const V = O(h) ? h : i.value, K = ge(V), pe = g.messageResolver(K, _);
|
|
2580
2587
|
return re(pe) || te(pe) || O(pe);
|
|
2581
|
-
}, () => [_], "translate exists", (V) => Reflect.apply(V.te, V, [_, h]),
|
|
2588
|
+
}, () => [_], "translate exists", (V) => Reflect.apply(V.te, V, [_, h]), mo, (V) => M(V));
|
|
2582
2589
|
}
|
|
2583
|
-
function
|
|
2590
|
+
function ke(_) {
|
|
2584
2591
|
let h = null;
|
|
2585
2592
|
const V = Xn(g, c.value, i.value);
|
|
2586
2593
|
for (let K = 0; K < V.length; K++) {
|
|
@@ -2593,7 +2600,7 @@ function jt(e = {}) {
|
|
|
2593
2600
|
return h;
|
|
2594
2601
|
}
|
|
2595
2602
|
function Me(_) {
|
|
2596
|
-
const h =
|
|
2603
|
+
const h = ke(_);
|
|
2597
2604
|
return h ?? (t ? t.tm(_) || {} : {});
|
|
2598
2605
|
}
|
|
2599
2606
|
function ge(_) {
|
|
@@ -2626,21 +2633,21 @@ function jt(e = {}) {
|
|
|
2626
2633
|
b.value[_] = J(b.value[_] || {}, h), g.datetimeFormats = b.value, pn(g, _, h);
|
|
2627
2634
|
}
|
|
2628
2635
|
function S(_) {
|
|
2629
|
-
return
|
|
2636
|
+
return T.value[_] || {};
|
|
2630
2637
|
}
|
|
2631
2638
|
function W(_, h) {
|
|
2632
|
-
|
|
2639
|
+
T.value[_] = h, g.numberFormats = T.value, hn(g, _, h);
|
|
2633
2640
|
}
|
|
2634
2641
|
function H(_, h) {
|
|
2635
|
-
|
|
2642
|
+
T.value[_] = J(T.value[_] || {}, h), g.numberFormats = T.value, hn(g, _, h);
|
|
2636
2643
|
}
|
|
2637
|
-
|
|
2644
|
+
An++, t && oe && (It(t.locale, (_) => {
|
|
2638
2645
|
o && (i.value = _, g.locale = _, Ve(g, i.value, c.value));
|
|
2639
2646
|
}), It(t.fallbackLocale, (_) => {
|
|
2640
2647
|
o && (c.value = _, g.fallbackLocale = _, Ve(g, i.value, c.value));
|
|
2641
2648
|
}));
|
|
2642
2649
|
const w = {
|
|
2643
|
-
id:
|
|
2650
|
+
id: An,
|
|
2644
2651
|
locale: X,
|
|
2645
2652
|
fallbackLocale: ae,
|
|
2646
2653
|
get inheritLocale() {
|
|
@@ -2669,28 +2676,28 @@ function jt(e = {}) {
|
|
|
2669
2676
|
N = _, g.missingWarn = N;
|
|
2670
2677
|
},
|
|
2671
2678
|
get fallbackWarn() {
|
|
2672
|
-
return
|
|
2679
|
+
return v;
|
|
2673
2680
|
},
|
|
2674
2681
|
set fallbackWarn(_) {
|
|
2675
|
-
|
|
2682
|
+
v = _, g.fallbackWarn = v;
|
|
2676
2683
|
},
|
|
2677
2684
|
get fallbackRoot() {
|
|
2678
|
-
return
|
|
2685
|
+
return F;
|
|
2679
2686
|
},
|
|
2680
2687
|
set fallbackRoot(_) {
|
|
2681
|
-
|
|
2688
|
+
F = _;
|
|
2682
2689
|
},
|
|
2683
2690
|
get fallbackFormat() {
|
|
2684
|
-
return
|
|
2691
|
+
return A;
|
|
2685
2692
|
},
|
|
2686
2693
|
set fallbackFormat(_) {
|
|
2687
|
-
|
|
2694
|
+
A = _, g.fallbackFormat = A;
|
|
2688
2695
|
},
|
|
2689
2696
|
get warnHtmlMessage() {
|
|
2690
|
-
return
|
|
2697
|
+
return L;
|
|
2691
2698
|
},
|
|
2692
2699
|
set warnHtmlMessage(_) {
|
|
2693
|
-
|
|
2700
|
+
L = _, g.warnHtmlMessage = _;
|
|
2694
2701
|
},
|
|
2695
2702
|
get escapeParameter() {
|
|
2696
2703
|
return d;
|
|
@@ -2698,7 +2705,7 @@ function jt(e = {}) {
|
|
|
2698
2705
|
set escapeParameter(_) {
|
|
2699
2706
|
d = _, g.escapeParameter = _;
|
|
2700
2707
|
},
|
|
2701
|
-
t:
|
|
2708
|
+
t: Re,
|
|
2702
2709
|
getLocaleMessage: ge,
|
|
2703
2710
|
setLocaleMessage: we,
|
|
2704
2711
|
mergeLocaleMessage: pt,
|
|
@@ -2708,7 +2715,7 @@ function jt(e = {}) {
|
|
|
2708
2715
|
setMissingHandler: lt,
|
|
2709
2716
|
[ir]: Et
|
|
2710
2717
|
};
|
|
2711
|
-
return w.datetimeFormats = Oe, w.numberFormats = rt, w.rt = ut, w.te = gt, w.tm = Me, w.d = ct, w.n = ft, w.getDateTimeFormat = l, w.setDateTimeFormat = u, w.mergeDateTimeFormat = p, w.getNumberFormat = S, w.setNumberFormat = W, w.mergeNumberFormat = H, w[ur] = n, w[
|
|
2718
|
+
return w.datetimeFormats = Oe, w.numberFormats = rt, w.rt = ut, w.te = gt, w.tm = Me, w.d = ct, w.n = ft, w.getDateTimeFormat = l, w.setDateTimeFormat = u, w.mergeDateTimeFormat = p, w.getNumberFormat = S, w.setNumberFormat = W, w.mergeNumberFormat = H, w[ur] = n, w[Ft] = He, w[yt] = Ke, w[Rt] = dt, process.env.NODE_ENV !== "production" && (w[be] = (_) => {
|
|
2712
2719
|
g.__v_emitter = _;
|
|
2713
2720
|
}, w[We] = () => {
|
|
2714
2721
|
g.__v_emitter = void 0;
|
|
@@ -2718,16 +2725,16 @@ const _r = "vue-i18n: composer properties", Ot = {
|
|
|
2718
2725
|
"vue-devtools-plugin-vue-i18n": "Vue I18n DevTools",
|
|
2719
2726
|
"vue-i18n-resource-inspector": "Vue I18n DevTools",
|
|
2720
2727
|
"vue-i18n-timeline": "Vue I18n"
|
|
2721
|
-
},
|
|
2728
|
+
}, go = {
|
|
2722
2729
|
"vue-i18n-resource-inspector": "Search for scopes ..."
|
|
2723
|
-
},
|
|
2730
|
+
}, po = {
|
|
2724
2731
|
"vue-i18n-timeline": 16764185
|
|
2725
2732
|
};
|
|
2726
2733
|
let Mt;
|
|
2727
|
-
async function
|
|
2734
|
+
async function No(e, t) {
|
|
2728
2735
|
return new Promise((n, r) => {
|
|
2729
2736
|
try {
|
|
2730
|
-
|
|
2737
|
+
io({
|
|
2731
2738
|
id: "vue-devtools-plugin-vue-i18n",
|
|
2732
2739
|
label: Ot["vue-devtools-plugin-vue-i18n"],
|
|
2733
2740
|
packageName: "vue-i18n",
|
|
@@ -2738,36 +2745,36 @@ async function fo(e, t) {
|
|
|
2738
2745
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2739
2746
|
}, (a) => {
|
|
2740
2747
|
Mt = a, a.on.visitComponentTree(({ componentInstance: o, treeNode: i }) => {
|
|
2741
|
-
|
|
2748
|
+
ho(o, i, t);
|
|
2742
2749
|
}), a.on.inspectComponent(({ componentInstance: o, instanceData: i }) => {
|
|
2743
2750
|
o.__VUE_I18N__ && i && (t.mode === "legacy" ? o.__VUE_I18N__ !== t.global.__composer && Dn(i, o.__VUE_I18N__) : Dn(i, o.__VUE_I18N__));
|
|
2744
2751
|
}), a.addInspector({
|
|
2745
2752
|
id: "vue-i18n-resource-inspector",
|
|
2746
2753
|
label: Ot["vue-i18n-resource-inspector"],
|
|
2747
2754
|
icon: "language",
|
|
2748
|
-
treeFilterPlaceholder:
|
|
2755
|
+
treeFilterPlaceholder: go["vue-i18n-resource-inspector"]
|
|
2749
2756
|
}), a.on.getInspectorTree((o) => {
|
|
2750
|
-
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" &&
|
|
2757
|
+
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" && Io(o, t);
|
|
2751
2758
|
});
|
|
2752
2759
|
const s = /* @__PURE__ */ new Map();
|
|
2753
2760
|
a.on.getInspectorState(async (o) => {
|
|
2754
2761
|
if (o.app === e && o.inspectorId === "vue-i18n-resource-inspector")
|
|
2755
|
-
if (a.unhighlightElement(),
|
|
2762
|
+
if (a.unhighlightElement(), Ao(o, t), o.nodeId === "global") {
|
|
2756
2763
|
if (!s.has(o.app)) {
|
|
2757
2764
|
const [i] = await a.getComponentInstances(o.app);
|
|
2758
2765
|
s.set(o.app, i);
|
|
2759
2766
|
}
|
|
2760
2767
|
a.highlightElement(s.get(o.app));
|
|
2761
2768
|
} else {
|
|
2762
|
-
const i =
|
|
2769
|
+
const i = Co(o.nodeId, t);
|
|
2763
2770
|
i && a.highlightElement(i);
|
|
2764
2771
|
}
|
|
2765
2772
|
}), a.on.editInspectorState((o) => {
|
|
2766
|
-
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" &&
|
|
2773
|
+
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" && Do(o, t);
|
|
2767
2774
|
}), a.addTimelineLayer({
|
|
2768
2775
|
id: "vue-i18n-timeline",
|
|
2769
2776
|
label: Ot["vue-i18n-timeline"],
|
|
2770
|
-
color:
|
|
2777
|
+
color: po["vue-i18n-timeline"]
|
|
2771
2778
|
}), n(!0);
|
|
2772
2779
|
});
|
|
2773
2780
|
} catch (a) {
|
|
@@ -2778,7 +2785,7 @@ async function fo(e, t) {
|
|
|
2778
2785
|
function mr(e) {
|
|
2779
2786
|
return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
|
|
2780
2787
|
}
|
|
2781
|
-
function
|
|
2788
|
+
function ho(e, t, n) {
|
|
2782
2789
|
const r = n.mode === "composition" ? n.global : n.global.__composer;
|
|
2783
2790
|
if (e && e.__VUE_I18N__ && e.__VUE_I18N__ !== r) {
|
|
2784
2791
|
const a = {
|
|
@@ -2832,30 +2839,30 @@ function Xt(e) {
|
|
|
2832
2839
|
const t = {};
|
|
2833
2840
|
return Object.keys(e).forEach((n) => {
|
|
2834
2841
|
const r = e[n];
|
|
2835
|
-
x(r) && "source" in r ? t[n] =
|
|
2842
|
+
x(r) && "source" in r ? t[n] = Oo(r) : re(r) && r.loc && r.loc.source ? t[n] = r.loc.source : k(r) ? t[n] = Xt(r) : t[n] = r;
|
|
2836
2843
|
}), t;
|
|
2837
2844
|
}
|
|
2838
|
-
const
|
|
2845
|
+
const To = {
|
|
2839
2846
|
"<": "<",
|
|
2840
2847
|
">": ">",
|
|
2841
2848
|
'"': """,
|
|
2842
2849
|
"&": "&"
|
|
2843
2850
|
};
|
|
2844
|
-
function
|
|
2845
|
-
return e.replace(/[<>"&]/g,
|
|
2851
|
+
function Lo(e) {
|
|
2852
|
+
return e.replace(/[<>"&]/g, bo);
|
|
2846
2853
|
}
|
|
2847
|
-
function
|
|
2848
|
-
return
|
|
2854
|
+
function bo(e) {
|
|
2855
|
+
return To[e] || e;
|
|
2849
2856
|
}
|
|
2850
|
-
function
|
|
2857
|
+
function Oo(e) {
|
|
2851
2858
|
return {
|
|
2852
2859
|
_custom: {
|
|
2853
2860
|
type: "function",
|
|
2854
|
-
display: `<span>ƒ</span> ${e.source ? `("${
|
|
2861
|
+
display: `<span>ƒ</span> ${e.source ? `("${Lo(e.source)}")` : "(?)"}`
|
|
2855
2862
|
}
|
|
2856
2863
|
};
|
|
2857
2864
|
}
|
|
2858
|
-
function
|
|
2865
|
+
function Io(e, t) {
|
|
2859
2866
|
e.rootNodes.push({
|
|
2860
2867
|
id: "global",
|
|
2861
2868
|
label: "Global Scope"
|
|
@@ -2869,7 +2876,7 @@ function No(e, t) {
|
|
|
2869
2876
|
});
|
|
2870
2877
|
}
|
|
2871
2878
|
}
|
|
2872
|
-
function
|
|
2879
|
+
function Co(e, t) {
|
|
2873
2880
|
let n = null;
|
|
2874
2881
|
if (e !== "global") {
|
|
2875
2882
|
for (const [r, a] of t.__instances.entries())
|
|
@@ -2888,11 +2895,11 @@ function dr(e, t) {
|
|
|
2888
2895
|
return n ? t.mode === "composition" ? n : n.__composer : null;
|
|
2889
2896
|
}
|
|
2890
2897
|
}
|
|
2891
|
-
function
|
|
2898
|
+
function Ao(e, t) {
|
|
2892
2899
|
const n = dr(e.nodeId, t);
|
|
2893
|
-
return n && (e.state =
|
|
2900
|
+
return n && (e.state = vo(n)), null;
|
|
2894
2901
|
}
|
|
2895
|
-
function
|
|
2902
|
+
function vo(e) {
|
|
2896
2903
|
const t = {}, n = "Locale related info", r = [
|
|
2897
2904
|
{
|
|
2898
2905
|
type: n,
|
|
@@ -2967,31 +2974,31 @@ function Ye(e, t) {
|
|
|
2967
2974
|
});
|
|
2968
2975
|
}
|
|
2969
2976
|
}
|
|
2970
|
-
function
|
|
2977
|
+
function Do(e, t) {
|
|
2971
2978
|
const n = dr(e.nodeId, t);
|
|
2972
2979
|
if (n) {
|
|
2973
2980
|
const [r] = e.path;
|
|
2974
|
-
r === "locale" && O(e.state.value) ? n.locale.value = e.state.value : r === "fallbackLocale" && (O(e.state.value) || G(e.state.value) ||
|
|
2981
|
+
r === "locale" && O(e.state.value) ? n.locale.value = e.state.value : r === "fallbackLocale" && (O(e.state.value) || G(e.state.value) || k(e.state.value)) ? n.fallbackLocale.value = e.state.value : r === "inheritLocale" && M(e.state.value) && (n.inheritLocale = e.state.value);
|
|
2975
2982
|
}
|
|
2976
2983
|
}
|
|
2977
|
-
function
|
|
2978
|
-
const t = O(e.locale) ? e.locale : Be, n = O(e.fallbackLocale) || G(e.fallbackLocale) ||
|
|
2979
|
-
let
|
|
2980
|
-
if (
|
|
2984
|
+
function So(e) {
|
|
2985
|
+
const t = O(e.locale) ? e.locale : Be, n = O(e.fallbackLocale) || G(e.fallbackLocale) || R(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, r = x(e.missing) ? e.missing : void 0, a = M(e.silentTranslationWarn) || De(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, s = M(e.silentFallbackWarn) || De(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, o = M(e.fallbackRoot) ? e.fallbackRoot : !0, i = !!e.formatFallbackMessages, c = R(e.modifiers) ? e.modifiers : {}, E = e.pluralizationRules, b = x(e.postTranslation) ? e.postTranslation : void 0, T = O(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, N = !!e.escapeParameterHtml, v = M(e.sync) ? e.sync : !0;
|
|
2986
|
+
let F = e.messages;
|
|
2987
|
+
if (R(e.sharedMessages)) {
|
|
2981
2988
|
const I = e.sharedMessages;
|
|
2982
|
-
|
|
2989
|
+
F = Object.keys(I).reduce((g, y) => {
|
|
2983
2990
|
const U = g[y] || (g[y] = {});
|
|
2984
2991
|
return J(U, I[y]), g;
|
|
2985
|
-
},
|
|
2992
|
+
}, F || {});
|
|
2986
2993
|
}
|
|
2987
|
-
const { __i18n:
|
|
2994
|
+
const { __i18n: A, __root: D, __injectWithOption: f } = e, m = e.datetimeFormats, L = e.numberFormats, d = e.flatJson;
|
|
2988
2995
|
return {
|
|
2989
2996
|
locale: t,
|
|
2990
2997
|
fallbackLocale: n,
|
|
2991
|
-
messages:
|
|
2998
|
+
messages: F,
|
|
2992
2999
|
flatJson: d,
|
|
2993
3000
|
datetimeFormats: m,
|
|
2994
|
-
numberFormats:
|
|
3001
|
+
numberFormats: L,
|
|
2995
3002
|
missing: r,
|
|
2996
3003
|
missingWarn: a,
|
|
2997
3004
|
fallbackWarn: s,
|
|
@@ -3000,17 +3007,17 @@ function Oo(e) {
|
|
|
3000
3007
|
modifiers: c,
|
|
3001
3008
|
pluralRules: E,
|
|
3002
3009
|
postTranslation: b,
|
|
3003
|
-
warnHtmlMessage:
|
|
3010
|
+
warnHtmlMessage: T,
|
|
3004
3011
|
escapeParameter: N,
|
|
3005
3012
|
messageResolver: e.messageResolver,
|
|
3006
|
-
inheritLocale:
|
|
3007
|
-
__i18n:
|
|
3013
|
+
inheritLocale: v,
|
|
3014
|
+
__i18n: A,
|
|
3008
3015
|
__root: D,
|
|
3009
3016
|
__injectWithOption: f
|
|
3010
3017
|
};
|
|
3011
3018
|
}
|
|
3012
3019
|
function wt(e = {}) {
|
|
3013
|
-
const t = jt(
|
|
3020
|
+
const t = jt(So(e)), { __extender: n } = e, r = {
|
|
3014
3021
|
// id
|
|
3015
3022
|
id: t.id,
|
|
3016
3023
|
// locale
|
|
@@ -3178,10 +3185,10 @@ function wt(e = {}) {
|
|
|
3178
3185
|
a[We] && a[We]();
|
|
3179
3186
|
}), r;
|
|
3180
3187
|
}
|
|
3181
|
-
function
|
|
3188
|
+
function Po(e, t, n) {
|
|
3182
3189
|
return {
|
|
3183
3190
|
beforeCreate() {
|
|
3184
|
-
const r =
|
|
3191
|
+
const r = ve();
|
|
3185
3192
|
if (!r)
|
|
3186
3193
|
throw z(B.UNEXPECTED_ERROR);
|
|
3187
3194
|
const a = this.$options;
|
|
@@ -3213,7 +3220,7 @@ function Io(e, t, n) {
|
|
|
3213
3220
|
},
|
|
3214
3221
|
mounted() {
|
|
3215
3222
|
if (process.env.NODE_ENV !== "production" && this.$i18n) {
|
|
3216
|
-
const r =
|
|
3223
|
+
const r = ve();
|
|
3217
3224
|
if (!r)
|
|
3218
3225
|
return;
|
|
3219
3226
|
const a = this.$i18n;
|
|
@@ -3223,7 +3230,7 @@ function Io(e, t, n) {
|
|
|
3223
3230
|
}
|
|
3224
3231
|
},
|
|
3225
3232
|
unmounted() {
|
|
3226
|
-
const r =
|
|
3233
|
+
const r = ve();
|
|
3227
3234
|
if (!r)
|
|
3228
3235
|
throw z(B.UNEXPECTED_ERROR);
|
|
3229
3236
|
const a = this.$i18n;
|
|
@@ -3257,7 +3264,7 @@ const Jt = {
|
|
|
3257
3264
|
type: Object
|
|
3258
3265
|
}
|
|
3259
3266
|
};
|
|
3260
|
-
function
|
|
3267
|
+
function Fo({ slots: e }, t) {
|
|
3261
3268
|
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, a) => [
|
|
3262
3269
|
...r,
|
|
3263
3270
|
// prettier-ignore
|
|
@@ -3270,7 +3277,7 @@ function Co({ slots: e }, t) {
|
|
|
3270
3277
|
function Er() {
|
|
3271
3278
|
return Un;
|
|
3272
3279
|
}
|
|
3273
|
-
const
|
|
3280
|
+
const yo = /* @__PURE__ */ Ut({
|
|
3274
3281
|
/* eslint-disable */
|
|
3275
3282
|
name: "i18n-t",
|
|
3276
3283
|
props: J({
|
|
@@ -3291,14 +3298,14 @@ const vo = /* @__PURE__ */ Ut({
|
|
|
3291
3298
|
__useComponent: !0
|
|
3292
3299
|
});
|
|
3293
3300
|
return () => {
|
|
3294
|
-
const s = Object.keys(n).filter((
|
|
3301
|
+
const s = Object.keys(n).filter((T) => T[0] !== "_"), o = $();
|
|
3295
3302
|
e.locale && (o.locale = e.locale), e.plural !== void 0 && (o.plural = O(e.plural) ? +e.plural : e.plural);
|
|
3296
|
-
const i =
|
|
3303
|
+
const i = Fo(t, s), c = a[Ft](e.keypath, i, o), E = J($(), r), b = O(e.tag) || k(e.tag) ? e.tag : Er();
|
|
3297
3304
|
return wn(b, E, c);
|
|
3298
3305
|
};
|
|
3299
3306
|
}
|
|
3300
|
-
}),
|
|
3301
|
-
function
|
|
3307
|
+
}), Pn = yo;
|
|
3308
|
+
function Ro(e) {
|
|
3302
3309
|
return G(e) && !O(e[0]);
|
|
3303
3310
|
}
|
|
3304
3311
|
function gr(e, t, n, r) {
|
|
@@ -3306,18 +3313,18 @@ function gr(e, t, n, r) {
|
|
|
3306
3313
|
return () => {
|
|
3307
3314
|
const o = { part: !0 };
|
|
3308
3315
|
let i = $();
|
|
3309
|
-
e.locale && (o.locale = e.locale), O(e.format) ? o.key = e.format :
|
|
3316
|
+
e.locale && (o.locale = e.locale), O(e.format) ? o.key = e.format : k(e.format) && (O(e.format.key) && (o.key = e.format.key), i = Object.keys(e.format).reduce((N, v) => n.includes(v) ? J($(), N, { [v]: e.format[v] }) : N, $()));
|
|
3310
3317
|
const c = r(e.value, o, i);
|
|
3311
3318
|
let E = [o.key];
|
|
3312
|
-
G(c) ? E = c.map((N,
|
|
3313
|
-
const
|
|
3314
|
-
return
|
|
3319
|
+
G(c) ? E = c.map((N, v) => {
|
|
3320
|
+
const F = a[N.type], A = F ? F({ [N.type]: N.value, index: v, parts: c }) : [N.value];
|
|
3321
|
+
return Ro(A) && (A[0].key = `${N.type}-${v}`), A;
|
|
3315
3322
|
}) : O(c) && (E = [c]);
|
|
3316
|
-
const b = J($(), s),
|
|
3317
|
-
return wn(
|
|
3323
|
+
const b = J($(), s), T = O(e.tag) || k(e.tag) ? e.tag : Er();
|
|
3324
|
+
return wn(T, b, E);
|
|
3318
3325
|
};
|
|
3319
3326
|
}
|
|
3320
|
-
const
|
|
3327
|
+
const ko = /* @__PURE__ */ Ut({
|
|
3321
3328
|
/* eslint-disable */
|
|
3322
3329
|
name: "i18n-n",
|
|
3323
3330
|
props: J({
|
|
@@ -3338,11 +3345,11 @@ const Do = /* @__PURE__ */ Ut({
|
|
|
3338
3345
|
});
|
|
3339
3346
|
return gr(e, t, ar, (...r) => (
|
|
3340
3347
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3341
|
-
n[
|
|
3348
|
+
n[Rt](...r)
|
|
3342
3349
|
));
|
|
3343
3350
|
}
|
|
3344
|
-
}),
|
|
3345
|
-
function
|
|
3351
|
+
}), Fn = ko;
|
|
3352
|
+
function Mo(e, t) {
|
|
3346
3353
|
const n = e;
|
|
3347
3354
|
if (e.mode === "composition")
|
|
3348
3355
|
return n.__getInstance(t) || e.global;
|
|
@@ -3351,15 +3358,15 @@ function So(e, t) {
|
|
|
3351
3358
|
return r != null ? r.__composer : e.global.__composer;
|
|
3352
3359
|
}
|
|
3353
3360
|
}
|
|
3354
|
-
function
|
|
3361
|
+
function wo(e) {
|
|
3355
3362
|
const t = (o) => {
|
|
3356
|
-
process.env.NODE_ENV !== "production" && Vt(
|
|
3363
|
+
process.env.NODE_ENV !== "production" && Vt(Pe(ne.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));
|
|
3357
3364
|
const { instance: i, value: c } = o;
|
|
3358
3365
|
if (!i || !i.$)
|
|
3359
3366
|
throw z(B.UNEXPECTED_ERROR);
|
|
3360
|
-
const E =
|
|
3367
|
+
const E = Mo(e, i.$), b = yn(c);
|
|
3361
3368
|
return [
|
|
3362
|
-
Reflect.apply(E.t, E, [...
|
|
3369
|
+
Reflect.apply(E.t, E, [...Rn(b)]),
|
|
3363
3370
|
E
|
|
3364
3371
|
];
|
|
3365
3372
|
};
|
|
@@ -3377,7 +3384,7 @@ function Fo(e) {
|
|
|
3377
3384
|
if (o.__composer) {
|
|
3378
3385
|
const c = o.__composer, E = yn(i);
|
|
3379
3386
|
o.textContent = Reflect.apply(c.t, c, [
|
|
3380
|
-
...
|
|
3387
|
+
...Rn(E)
|
|
3381
3388
|
]);
|
|
3382
3389
|
}
|
|
3383
3390
|
},
|
|
@@ -3390,34 +3397,34 @@ function Fo(e) {
|
|
|
3390
3397
|
function yn(e) {
|
|
3391
3398
|
if (O(e))
|
|
3392
3399
|
return { path: e };
|
|
3393
|
-
if (
|
|
3400
|
+
if (R(e)) {
|
|
3394
3401
|
if (!("path" in e))
|
|
3395
3402
|
throw z(B.REQUIRED_VALUE, "path");
|
|
3396
3403
|
return e;
|
|
3397
3404
|
} else
|
|
3398
3405
|
throw z(B.INVALID_VALUE);
|
|
3399
3406
|
}
|
|
3400
|
-
function
|
|
3407
|
+
function Rn(e) {
|
|
3401
3408
|
const { path: t, locale: n, args: r, choice: a, plural: s } = e, o = {}, i = r || {};
|
|
3402
3409
|
return O(n) && (o.locale = n), j(a) && (o.plural = a), j(s) && (o.plural = s), [t, i, o];
|
|
3403
3410
|
}
|
|
3404
|
-
function
|
|
3405
|
-
const r =
|
|
3406
|
-
(!M(r.globalInstall) || r.globalInstall) && ([
|
|
3411
|
+
function Uo(e, t, ...n) {
|
|
3412
|
+
const r = R(n[0]) ? n[0] : {};
|
|
3413
|
+
(!M(r.globalInstall) || r.globalInstall) && ([Pn.name, "I18nT"].forEach((s) => e.component(s, Pn)), [Fn.name, "I18nN"].forEach((s) => e.component(s, Fn)), [Mn.name, "I18nD"].forEach((s) => e.component(s, Mn))), e.directive("t", wo(t));
|
|
3407
3414
|
}
|
|
3408
|
-
const
|
|
3409
|
-
function
|
|
3415
|
+
const Vo = /* @__PURE__ */ ce("global-vue-i18n");
|
|
3416
|
+
function $o(e = {}) {
|
|
3410
3417
|
const t = __VUE_I18N_LEGACY_API__ && M(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__;
|
|
3411
|
-
process.env.NODE_ENV !== "production" && t && Vt(
|
|
3412
|
-
const n = M(e.globalInjection) ? e.globalInjection : !0, r = /* @__PURE__ */ new Map(), [a, s] =
|
|
3413
|
-
function i(
|
|
3414
|
-
return r.get(
|
|
3418
|
+
process.env.NODE_ENV !== "production" && t && Vt(Pe(ne.DEPRECATE_LEGACY_MODE));
|
|
3419
|
+
const n = M(e.globalInjection) ? e.globalInjection : !0, r = /* @__PURE__ */ new Map(), [a, s] = xo(e, t), o = /* @__PURE__ */ ce(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
|
|
3420
|
+
function i(T) {
|
|
3421
|
+
return r.get(T) || null;
|
|
3415
3422
|
}
|
|
3416
|
-
function c(
|
|
3417
|
-
r.set(
|
|
3423
|
+
function c(T, N) {
|
|
3424
|
+
r.set(T, N);
|
|
3418
3425
|
}
|
|
3419
|
-
function E(
|
|
3420
|
-
r.delete(
|
|
3426
|
+
function E(T) {
|
|
3427
|
+
r.delete(T);
|
|
3421
3428
|
}
|
|
3422
3429
|
const b = {
|
|
3423
3430
|
// mode
|
|
@@ -3425,18 +3432,18 @@ function ko(e = {}) {
|
|
|
3425
3432
|
return __VUE_I18N_LEGACY_API__ && t ? "legacy" : "composition";
|
|
3426
3433
|
},
|
|
3427
3434
|
// install plugin
|
|
3428
|
-
async install(
|
|
3429
|
-
if (process.env.NODE_ENV !== "production" && (
|
|
3430
|
-
const
|
|
3431
|
-
b.__composerExtend =
|
|
3435
|
+
async install(T, ...N) {
|
|
3436
|
+
if (process.env.NODE_ENV !== "production" && (T.__VUE_I18N__ = b), T.__VUE_I18N_SYMBOL__ = o, T.provide(T.__VUE_I18N_SYMBOL__, b), R(N[0])) {
|
|
3437
|
+
const A = N[0];
|
|
3438
|
+
b.__composerExtend = A.__composerExtend, b.__vueI18nExtend = A.__vueI18nExtend;
|
|
3432
3439
|
}
|
|
3433
|
-
let
|
|
3434
|
-
!t && n && (
|
|
3435
|
-
const
|
|
3436
|
-
if (
|
|
3437
|
-
|
|
3440
|
+
let v = null;
|
|
3441
|
+
!t && n && (v = Xo(T, b.global)), __VUE_I18N_FULL_INSTALL__ && Uo(T, b, ...N), __VUE_I18N_LEGACY_API__ && t && T.mixin(Po(s, s.__composer, b));
|
|
3442
|
+
const F = T.unmount;
|
|
3443
|
+
if (T.unmount = () => {
|
|
3444
|
+
v && v(), b.dispose(), F();
|
|
3438
3445
|
}, process.env.NODE_ENV !== "production") {
|
|
3439
|
-
if (!await
|
|
3446
|
+
if (!await No(T, b))
|
|
3440
3447
|
throw z(B.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
3441
3448
|
const D = Bt();
|
|
3442
3449
|
if (t) {
|
|
@@ -3468,49 +3475,49 @@ function ko(e = {}) {
|
|
|
3468
3475
|
return b;
|
|
3469
3476
|
}
|
|
3470
3477
|
function Qt(e = {}) {
|
|
3471
|
-
const t =
|
|
3478
|
+
const t = ve();
|
|
3472
3479
|
if (t == null)
|
|
3473
3480
|
throw z(B.MUST_BE_CALL_SETUP_TOP);
|
|
3474
3481
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
3475
3482
|
throw z(B.NOT_INSTALLED);
|
|
3476
|
-
const n =
|
|
3483
|
+
const n = Bo(t), r = Go(n), a = cr(t), s = Wo(e, a);
|
|
3477
3484
|
if (s === "global")
|
|
3478
3485
|
return fr(r, e, a), r;
|
|
3479
3486
|
if (s === "parent") {
|
|
3480
|
-
let c =
|
|
3481
|
-
return c == null && (process.env.NODE_ENV !== "production" && ue(
|
|
3487
|
+
let c = Yo(n, t, e.__useComponent);
|
|
3488
|
+
return c == null && (process.env.NODE_ENV !== "production" && ue(Pe(ne.NOT_FOUND_PARENT_SCOPE)), c = r), c;
|
|
3482
3489
|
}
|
|
3483
3490
|
const o = n;
|
|
3484
3491
|
let i = o.__getInstance(t);
|
|
3485
3492
|
if (i == null) {
|
|
3486
3493
|
const c = J({}, e);
|
|
3487
|
-
"__i18n" in a && (c.__i18n = a.__i18n), r && (c.__root = r), i = jt(c), o.__composerExtend && (i[
|
|
3494
|
+
"__i18n" in a && (c.__i18n = a.__i18n), r && (c.__root = r), i = jt(c), o.__composerExtend && (i[kt] = o.__composerExtend(i)), Ko(o, t, i), o.__setInstance(t, i);
|
|
3488
3495
|
} else
|
|
3489
|
-
process.env.NODE_ENV !== "production" && s === "local" && ue(
|
|
3496
|
+
process.env.NODE_ENV !== "production" && s === "local" && ue(Pe(ne.DUPLICATE_USE_I18N_CALLING));
|
|
3490
3497
|
return i;
|
|
3491
3498
|
}
|
|
3492
|
-
function
|
|
3493
|
-
const n =
|
|
3499
|
+
function xo(e, t) {
|
|
3500
|
+
const n = sa(), r = __VUE_I18N_LEGACY_API__ && t ? n.run(() => wt(e)) : n.run(() => jt(e));
|
|
3494
3501
|
if (r == null)
|
|
3495
3502
|
throw z(B.UNEXPECTED_ERROR);
|
|
3496
3503
|
return [n, r];
|
|
3497
3504
|
}
|
|
3498
|
-
function
|
|
3499
|
-
const t =
|
|
3505
|
+
function Bo(e) {
|
|
3506
|
+
const t = ua(e.isCE ? Vo : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
3500
3507
|
if (!t)
|
|
3501
3508
|
throw z(e.isCE ? B.NOT_INSTALLED_WITH_PROVIDE : B.UNEXPECTED_ERROR);
|
|
3502
3509
|
return t;
|
|
3503
3510
|
}
|
|
3504
|
-
function
|
|
3511
|
+
function Wo(e, t) {
|
|
3505
3512
|
return et(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
3506
3513
|
}
|
|
3507
|
-
function
|
|
3514
|
+
function Go(e) {
|
|
3508
3515
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
3509
3516
|
}
|
|
3510
|
-
function
|
|
3517
|
+
function Yo(e, t, n = !1) {
|
|
3511
3518
|
let r = null;
|
|
3512
3519
|
const a = t.root;
|
|
3513
|
-
let s =
|
|
3520
|
+
let s = Ho(t, n);
|
|
3514
3521
|
for (; s != null; ) {
|
|
3515
3522
|
const o = e;
|
|
3516
3523
|
if (e.mode === "composition")
|
|
@@ -3525,36 +3532,36 @@ function Vo(e, t, n = !1) {
|
|
|
3525
3532
|
}
|
|
3526
3533
|
return r;
|
|
3527
3534
|
}
|
|
3528
|
-
function
|
|
3535
|
+
function Ho(e, t = !1) {
|
|
3529
3536
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
3530
3537
|
}
|
|
3531
|
-
function
|
|
3538
|
+
function Ko(e, t, n) {
|
|
3532
3539
|
let r = null;
|
|
3533
|
-
|
|
3540
|
+
ca(() => {
|
|
3534
3541
|
if (process.env.NODE_ENV !== "production") {
|
|
3535
3542
|
t.__VUE_I18N__ = n, r = Bt();
|
|
3536
3543
|
const a = n;
|
|
3537
3544
|
a[be] && a[be](r), r.on("*", Ye);
|
|
3538
3545
|
}
|
|
3539
|
-
}, t),
|
|
3546
|
+
}, t), fa(() => {
|
|
3540
3547
|
const a = n;
|
|
3541
3548
|
process.env.NODE_ENV !== "production" && (r && r.off("*", Ye), a[We] && a[We](), delete t.__VUE_I18N__), e.__deleteInstance(t);
|
|
3542
|
-
const s = a[
|
|
3543
|
-
s && (s(), delete a[
|
|
3549
|
+
const s = a[kt];
|
|
3550
|
+
s && (s(), delete a[kt]);
|
|
3544
3551
|
}, t);
|
|
3545
3552
|
}
|
|
3546
|
-
const
|
|
3553
|
+
const jo = [
|
|
3547
3554
|
"locale",
|
|
3548
3555
|
"fallbackLocale",
|
|
3549
3556
|
"availableLocales"
|
|
3550
|
-
],
|
|
3551
|
-
function
|
|
3557
|
+
], kn = ["t", "rt", "d", "n", "tm", "te"];
|
|
3558
|
+
function Xo(e, t) {
|
|
3552
3559
|
const n = /* @__PURE__ */ Object.create(null);
|
|
3553
|
-
return
|
|
3560
|
+
return jo.forEach((a) => {
|
|
3554
3561
|
const s = Object.getOwnPropertyDescriptor(t, a);
|
|
3555
3562
|
if (!s)
|
|
3556
3563
|
throw z(B.UNEXPECTED_ERROR);
|
|
3557
|
-
const o =
|
|
3564
|
+
const o = ia(s.value) ? {
|
|
3558
3565
|
get() {
|
|
3559
3566
|
return s.value.value;
|
|
3560
3567
|
},
|
|
@@ -3568,18 +3575,18 @@ function Wo(e, t) {
|
|
|
3568
3575
|
}
|
|
3569
3576
|
};
|
|
3570
3577
|
Object.defineProperty(n, a, o);
|
|
3571
|
-
}), e.config.globalProperties.$i18n = n,
|
|
3578
|
+
}), e.config.globalProperties.$i18n = n, kn.forEach((a) => {
|
|
3572
3579
|
const s = Object.getOwnPropertyDescriptor(t, a);
|
|
3573
3580
|
if (!s || !s.value)
|
|
3574
3581
|
throw z(B.UNEXPECTED_ERROR);
|
|
3575
3582
|
Object.defineProperty(e.config.globalProperties, `$${a}`, s);
|
|
3576
3583
|
}), () => {
|
|
3577
|
-
delete e.config.globalProperties.$i18n,
|
|
3584
|
+
delete e.config.globalProperties.$i18n, kn.forEach((a) => {
|
|
3578
3585
|
delete e.config.globalProperties[`$${a}`];
|
|
3579
3586
|
});
|
|
3580
3587
|
};
|
|
3581
3588
|
}
|
|
3582
|
-
const
|
|
3589
|
+
const Jo = /* @__PURE__ */ Ut({
|
|
3583
3590
|
/* eslint-disable */
|
|
3584
3591
|
name: "i18n-d",
|
|
3585
3592
|
props: J({
|
|
@@ -3603,14 +3610,14 @@ const Go = /* @__PURE__ */ Ut({
|
|
|
3603
3610
|
n[yt](...r)
|
|
3604
3611
|
));
|
|
3605
3612
|
}
|
|
3606
|
-
}), Mn =
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
Ss
|
|
3610
|
-
|
|
3613
|
+
}), Mn = Jo;
|
|
3614
|
+
co();
|
|
3615
|
+
ks(_s);
|
|
3616
|
+
Ms(Ss);
|
|
3617
|
+
ws(Xn);
|
|
3611
3618
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
3612
3619
|
const e = he();
|
|
3613
|
-
e.__INTLIFY__ = !0,
|
|
3620
|
+
e.__INTLIFY__ = !0, ms(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
3614
3621
|
}
|
|
3615
3622
|
process.env.NODE_ENV;
|
|
3616
3623
|
var pr = {
|
|
@@ -3807,7 +3814,7 @@ var pr = {
|
|
|
3807
3814
|
}
|
|
3808
3815
|
}
|
|
3809
3816
|
};
|
|
3810
|
-
var
|
|
3817
|
+
var Qo = {
|
|
3811
3818
|
name: "en",
|
|
3812
3819
|
el: {
|
|
3813
3820
|
breadcrumb: {
|
|
@@ -4001,24 +4008,24 @@ var Yo = {
|
|
|
4001
4008
|
}
|
|
4002
4009
|
}
|
|
4003
4010
|
};
|
|
4004
|
-
const
|
|
4011
|
+
const Fe = {
|
|
4005
4012
|
zhCn: "zh-cn",
|
|
4006
4013
|
en: "en"
|
|
4007
|
-
},
|
|
4008
|
-
[
|
|
4009
|
-
[
|
|
4010
|
-
}, Nr = () => (navigator?.language || navigator?.userLanguage)?.startsWith("zh") ?
|
|
4011
|
-
const e = Nr() ||
|
|
4012
|
-
return
|
|
4013
|
-
},
|
|
4014
|
+
}, qo = {
|
|
4015
|
+
[Fe.zhCn]: pr,
|
|
4016
|
+
[Fe.en]: Qo
|
|
4017
|
+
}, Nr = () => (navigator?.language || navigator?.userLanguage)?.startsWith("zh") ? Fe.zhCn : Fe.en, il = () => {
|
|
4018
|
+
const e = Nr() || Fe.en;
|
|
4019
|
+
return qo[e] || pr;
|
|
4020
|
+
}, ul = (e = {}) => $o({
|
|
4014
4021
|
legacy: !1,
|
|
4015
4022
|
locale: Nr(),
|
|
4016
|
-
fallbackLocale:
|
|
4023
|
+
fallbackLocale: Fe.zhCn,
|
|
4017
4024
|
messages: e,
|
|
4018
4025
|
globalInjection: !0
|
|
4019
|
-
}),
|
|
4026
|
+
}), cl = (e) => (t, n = {}) => e.global.t(t, n), hr = () => {
|
|
4020
4027
|
setTimeout(async () => {
|
|
4021
|
-
|
|
4028
|
+
ra.confirm(
|
|
4022
4029
|
"语言设置已更新<br/>是否重新加载页面以应用新的语言设置",
|
|
4023
4030
|
"重新加载提醒",
|
|
4024
4031
|
{
|
|
@@ -4032,62 +4039,68 @@ const Pe = {
|
|
|
4032
4039
|
window.location.reload();
|
|
4033
4040
|
});
|
|
4034
4041
|
}, 0);
|
|
4035
|
-
},
|
|
4042
|
+
}, fl = () => {
|
|
4036
4043
|
window.addEventListener("languagechange", hr);
|
|
4037
|
-
},
|
|
4044
|
+
}, _l = () => {
|
|
4038
4045
|
window.removeEventListener("languagechange", hr);
|
|
4039
|
-
},
|
|
4040
|
-
const { t: e } =
|
|
4046
|
+
}, ml = () => {
|
|
4047
|
+
const { t: e } = da().appContext.config.globalProperties;
|
|
4041
4048
|
return {
|
|
4042
4049
|
t: e
|
|
4043
4050
|
};
|
|
4044
4051
|
};
|
|
4045
|
-
|
|
4046
|
-
const
|
|
4052
|
+
aa.en.weekStart = 1;
|
|
4053
|
+
const Zo = (e) => {
|
|
4047
4054
|
for (const t in ht)
|
|
4048
4055
|
ht[t].install && e.use(ht[t]);
|
|
4049
|
-
},
|
|
4050
|
-
install:
|
|
4056
|
+
}, dl = {
|
|
4057
|
+
install: Zo
|
|
4051
4058
|
};
|
|
4052
4059
|
export {
|
|
4060
|
+
ea as APPLICATION_TYPE,
|
|
4061
|
+
ta as ApplicationIcon,
|
|
4053
4062
|
jr as AvailableRangePreview,
|
|
4054
4063
|
Kr as AvailableRangeSetting,
|
|
4055
4064
|
Or as COLUMN_TYPES,
|
|
4056
|
-
|
|
4065
|
+
Ar as CustomSidebar,
|
|
4057
4066
|
br as CustomTitle,
|
|
4058
|
-
|
|
4059
|
-
|
|
4067
|
+
Lr as CustomToggle,
|
|
4068
|
+
Xr as DEFAULT_SHOW_COUNT,
|
|
4069
|
+
Jr as MEMBER_DEPARTMENT_TYPES,
|
|
4070
|
+
vr as MENU_COLOR_STRATEGY,
|
|
4060
4071
|
Dr as MENU_LOADING_STATES,
|
|
4061
4072
|
Sr as MENU_TYPE,
|
|
4062
4073
|
Ir as MODES,
|
|
4063
|
-
|
|
4074
|
+
Pr as NODE_CLICK_TYPES,
|
|
4064
4075
|
Cr as PageContainer,
|
|
4065
|
-
|
|
4066
|
-
|
|
4076
|
+
Qr as RANGE_TYPES,
|
|
4077
|
+
na as SOURCE_TYPE,
|
|
4078
|
+
Fr as SPECIAL_ROUTES,
|
|
4067
4079
|
yr as TREE_PROPS,
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
4080
|
+
qr as TagList,
|
|
4081
|
+
Zr as availableRangeTreeProps,
|
|
4082
|
+
_l as cancelLanguageChangeListener,
|
|
4083
|
+
Rr as collapseNodeKeys,
|
|
4084
|
+
ul as createI18nInstance,
|
|
4085
|
+
cl as createTranslationHelper,
|
|
4086
|
+
dl as default,
|
|
4087
|
+
kr as expandNodeKeys,
|
|
4075
4088
|
Mr as findExpandPath,
|
|
4076
4089
|
wr as findExpandPathById,
|
|
4077
4090
|
Ur as findMenuByPath,
|
|
4078
4091
|
Nr as getBrowserLanguage,
|
|
4079
|
-
|
|
4092
|
+
il as getCurrentLocale,
|
|
4080
4093
|
Vr as getFirstLeafMenu,
|
|
4081
4094
|
$r as getMenuIconColorById,
|
|
4082
4095
|
xr as getParentNodeIdsById,
|
|
4083
4096
|
Br as isParentMenuActive,
|
|
4084
4097
|
Wr as isParentRouteActive,
|
|
4085
4098
|
Gr as isPathInMenu,
|
|
4086
|
-
|
|
4087
|
-
|
|
4099
|
+
Fe as languageMap,
|
|
4100
|
+
qo as localeMap,
|
|
4088
4101
|
Yr as processMenuTreeWithLeaf,
|
|
4089
|
-
|
|
4090
|
-
|
|
4102
|
+
zr as rangeOptions,
|
|
4103
|
+
fl as setupLanguageChangeListener,
|
|
4091
4104
|
Hr as transformMenuData,
|
|
4092
|
-
|
|
4105
|
+
ml as useI18n
|
|
4093
4106
|
};
|