simple-web-lib 0.0.1 → 0.0.2
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.
|
@@ -0,0 +1,4073 @@
|
|
|
1
|
+
import { defineComponent as dt, ref as Re, createElementBlock as Bn, openBlock as jn, toDisplayString as Lt, createElementVNode as Nt, renderSlot as Yr, effectScope as Br, shallowRef as Kn, computed as ge, watch as Ut, isRef as jr, getCurrentInstance as it, h as Xn, Fragment as Jn, inject as Kr, onBeforeMount as Xr, onMounted as Jr, onUnmounted as Qr, createVNode as qr, Text as Zr } from "vue";
|
|
2
|
+
const zr = {
|
|
3
|
+
name: "SimpleButton"
|
|
4
|
+
}, ea = /* @__PURE__ */ dt({
|
|
5
|
+
...zr,
|
|
6
|
+
setup(e) {
|
|
7
|
+
const t = Re(0), n = () => {
|
|
8
|
+
t.value++;
|
|
9
|
+
};
|
|
10
|
+
return (a, s) => (jn(), Bn("button", {
|
|
11
|
+
class: "simple-button",
|
|
12
|
+
onClick: n
|
|
13
|
+
}, Lt(a.$t("simpleButton.clickMe")) + " (" + Lt(t.value) + ") ", 1));
|
|
14
|
+
}
|
|
15
|
+
}), Qn = (e, t) => {
|
|
16
|
+
const n = e.__vccOpts || e;
|
|
17
|
+
for (const [a, s] of t)
|
|
18
|
+
n[a] = s;
|
|
19
|
+
return n;
|
|
20
|
+
}, sn = /* @__PURE__ */ Qn(ea, [["__scopeId", "data-v-916874a8"]]);
|
|
21
|
+
function ta(e) {
|
|
22
|
+
e.component(sn.name || "SimpleButton", sn);
|
|
23
|
+
}
|
|
24
|
+
const na = {
|
|
25
|
+
install: ta
|
|
26
|
+
}, ra = { class: "simple-card" }, aa = { class: "simple-card__header" }, sa = { class: "simple-card__body" }, la = {
|
|
27
|
+
name: "SimpleCard"
|
|
28
|
+
}, oa = /* @__PURE__ */ dt({
|
|
29
|
+
...la,
|
|
30
|
+
setup(e) {
|
|
31
|
+
return (t, n) => (jn(), Bn("div", ra, [
|
|
32
|
+
Nt("div", aa, [
|
|
33
|
+
Nt("h3", null, Lt(t.$t("simpleCard.title")), 1)
|
|
34
|
+
]),
|
|
35
|
+
Nt("div", sa, [
|
|
36
|
+
Nt("p", null, Lt(t.$t("simpleCard.content")), 1),
|
|
37
|
+
Yr(t.$slots, "default", {}, void 0, !0)
|
|
38
|
+
])
|
|
39
|
+
]));
|
|
40
|
+
}
|
|
41
|
+
}), ln = /* @__PURE__ */ Qn(oa, [["__scopeId", "data-v-df720db0"]]);
|
|
42
|
+
function ia(e) {
|
|
43
|
+
e.component(ln.name || "SimpleCard", ln);
|
|
44
|
+
}
|
|
45
|
+
const ca = {
|
|
46
|
+
install: ia
|
|
47
|
+
};
|
|
48
|
+
/*!
|
|
49
|
+
* shared v9.14.5
|
|
50
|
+
* (c) 2025 kazuya kawaguchi
|
|
51
|
+
* Released under the MIT License.
|
|
52
|
+
*/
|
|
53
|
+
function Z(e, t) {
|
|
54
|
+
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
55
|
+
}
|
|
56
|
+
const on = {};
|
|
57
|
+
function qn(e) {
|
|
58
|
+
on[e] || (on[e] = !0, Z(e));
|
|
59
|
+
}
|
|
60
|
+
const de = typeof window < "u";
|
|
61
|
+
let ie, ke;
|
|
62
|
+
if (process.env.NODE_ENV !== "production") {
|
|
63
|
+
const e = de && window.performance;
|
|
64
|
+
e && e.mark && e.measure && e.clearMarks && // @ts-ignore browser compat
|
|
65
|
+
e.clearMeasures && (ie = (t) => {
|
|
66
|
+
e.mark(t);
|
|
67
|
+
}, ke = (t, n, a) => {
|
|
68
|
+
e.measure(t, n, a), e.clearMarks(n), e.clearMarks(a);
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
const ua = /\{([0-9a-zA-Z]+)\}/g;
|
|
72
|
+
function Xt(e, ...t) {
|
|
73
|
+
return t.length === 1 && V(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(ua, (n, a) => t.hasOwnProperty(a) ? t[a] : "");
|
|
74
|
+
}
|
|
75
|
+
const pe = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), fa = (e, t, n) => _a({ l: e, k: t, s: n }), _a = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), q = (e) => typeof e == "number" && isFinite(e), ma = (e) => zn(e) === "[object Date]", be = (e) => zn(e) === "[object RegExp]", bt = (e) => F(e) && Object.keys(e).length === 0, te = Object.assign, da = Object.create, Y = (e = null) => da(e);
|
|
76
|
+
let cn;
|
|
77
|
+
const Le = () => cn || (cn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : Y());
|
|
78
|
+
function un(e) {
|
|
79
|
+
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/\//g, "/").replace(/=/g, "=");
|
|
80
|
+
}
|
|
81
|
+
function fn(e) {
|
|
82
|
+
return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
|
|
83
|
+
}
|
|
84
|
+
function Ea(e) {
|
|
85
|
+
return e = e.replace(/(\w+)\s*=\s*"([^"]*)"/g, (a, s, r) => `${s}="${fn(r)}"`), e = e.replace(/(\w+)\s*=\s*'([^']*)'/g, (a, s, r) => `${s}='${fn(r)}'`), /\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e) && (process.env.NODE_ENV !== "production" && Z("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")), [
|
|
86
|
+
// In href, src, action, formaction attributes
|
|
87
|
+
/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,
|
|
88
|
+
// In style attributes within url()
|
|
89
|
+
/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi
|
|
90
|
+
].forEach((a) => {
|
|
91
|
+
e = e.replace(a, "$1javascript:");
|
|
92
|
+
}), e;
|
|
93
|
+
}
|
|
94
|
+
const ga = Object.prototype.hasOwnProperty;
|
|
95
|
+
function me(e, t) {
|
|
96
|
+
return ga.call(e, t);
|
|
97
|
+
}
|
|
98
|
+
const K = Array.isArray, x = (e) => typeof e == "function", h = (e) => typeof e == "string", U = (e) => typeof e == "boolean", V = (e) => e !== null && typeof e == "object", Na = (e) => V(e) && x(e.then) && x(e.catch), Zn = Object.prototype.toString, zn = (e) => Zn.call(e), F = (e) => {
|
|
99
|
+
if (!V(e))
|
|
100
|
+
return !1;
|
|
101
|
+
const t = Object.getPrototypeOf(e);
|
|
102
|
+
return t === null || t.constructor === Object;
|
|
103
|
+
}, pa = (e) => e == null ? "" : K(e) || F(e) && e.toString === Zn ? JSON.stringify(e, null, 2) : String(e);
|
|
104
|
+
function Ta(e, t = "") {
|
|
105
|
+
return e.reduce((n, a, s) => s === 0 ? n + a : n + t + a, "");
|
|
106
|
+
}
|
|
107
|
+
const _n = 2;
|
|
108
|
+
function Oa(e, t = 0, n = e.length) {
|
|
109
|
+
const a = e.split(/\r?\n/);
|
|
110
|
+
let s = 0;
|
|
111
|
+
const r = [];
|
|
112
|
+
for (let l = 0; l < a.length; l++)
|
|
113
|
+
if (s += a[l].length + 1, s >= t) {
|
|
114
|
+
for (let o = l - _n; o <= l + _n || n > s; o++) {
|
|
115
|
+
if (o < 0 || o >= a.length)
|
|
116
|
+
continue;
|
|
117
|
+
const u = o + 1;
|
|
118
|
+
r.push(`${u}${" ".repeat(3 - String(u).length)}| ${a[o]}`);
|
|
119
|
+
const _ = a[o].length;
|
|
120
|
+
if (o === l) {
|
|
121
|
+
const p = t - (s - _) + 1, T = Math.max(1, n > s ? _ - p : n - t);
|
|
122
|
+
r.push(" | " + " ".repeat(p) + "^".repeat(T));
|
|
123
|
+
} else if (o > l) {
|
|
124
|
+
if (n > s) {
|
|
125
|
+
const p = Math.max(Math.min(n - s, _), 1);
|
|
126
|
+
r.push(" | " + "^".repeat(p));
|
|
127
|
+
}
|
|
128
|
+
s += _ + 1;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
break;
|
|
132
|
+
}
|
|
133
|
+
return r.join(`
|
|
134
|
+
`);
|
|
135
|
+
}
|
|
136
|
+
function ht(e) {
|
|
137
|
+
let t = e;
|
|
138
|
+
return () => ++t;
|
|
139
|
+
}
|
|
140
|
+
function Jt() {
|
|
141
|
+
const e = /* @__PURE__ */ new Map();
|
|
142
|
+
return {
|
|
143
|
+
events: e,
|
|
144
|
+
on(n, a) {
|
|
145
|
+
const s = e.get(n);
|
|
146
|
+
s && s.push(a) || e.set(n, [a]);
|
|
147
|
+
},
|
|
148
|
+
off(n, a) {
|
|
149
|
+
const s = e.get(n);
|
|
150
|
+
s && s.splice(s.indexOf(a) >>> 0, 1);
|
|
151
|
+
},
|
|
152
|
+
emit(n, a) {
|
|
153
|
+
(e.get(n) || []).slice().map((s) => s(a)), (e.get("*") || []).slice().map((s) => s(n, a));
|
|
154
|
+
}
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
const pt = (e) => !V(e) || K(e);
|
|
158
|
+
function Ot(e, t) {
|
|
159
|
+
if (pt(e) || pt(t))
|
|
160
|
+
throw new Error("Invalid value");
|
|
161
|
+
const n = [{ src: e, des: t }];
|
|
162
|
+
for (; n.length; ) {
|
|
163
|
+
const { src: a, des: s } = n.pop();
|
|
164
|
+
Object.keys(a).forEach((r) => {
|
|
165
|
+
r !== "__proto__" && (V(a[r]) && !V(s[r]) && (s[r] = Array.isArray(a[r]) ? [] : Y()), pt(s[r]) || pt(a[r]) ? s[r] = a[r] : n.push({ src: a[r], des: s[r] }));
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
/*!
|
|
170
|
+
* message-compiler v9.14.5
|
|
171
|
+
* (c) 2025 kazuya kawaguchi
|
|
172
|
+
* Released under the MIT License.
|
|
173
|
+
*/
|
|
174
|
+
function La(e, t, n) {
|
|
175
|
+
return { line: e, column: t, offset: n };
|
|
176
|
+
}
|
|
177
|
+
function vt(e, t, n) {
|
|
178
|
+
return { start: e, end: t };
|
|
179
|
+
}
|
|
180
|
+
const va = /\{([0-9a-zA-Z]+)\}/g;
|
|
181
|
+
function er(e, ...t) {
|
|
182
|
+
return t.length === 1 && Ia(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(va, (n, a) => t.hasOwnProperty(a) ? t[a] : "");
|
|
183
|
+
}
|
|
184
|
+
const tr = Object.assign, mn = (e) => typeof e == "string", Ia = (e) => e !== null && typeof e == "object";
|
|
185
|
+
function nr(e, t = "") {
|
|
186
|
+
return e.reduce((n, a, s) => s === 0 ? n + a : n + t + a, "");
|
|
187
|
+
}
|
|
188
|
+
const At = {
|
|
189
|
+
USE_MODULO_SYNTAX: 1,
|
|
190
|
+
__EXTEND_POINT__: 2
|
|
191
|
+
}, ba = {
|
|
192
|
+
[At.USE_MODULO_SYNTAX]: "Use modulo before '{{0}}'."
|
|
193
|
+
};
|
|
194
|
+
function ha(e, t, ...n) {
|
|
195
|
+
const a = er(ba[e], ...n || []), s = { message: String(a), code: e };
|
|
196
|
+
return t && (s.location = t), s;
|
|
197
|
+
}
|
|
198
|
+
const M = {
|
|
199
|
+
// tokenizer error codes
|
|
200
|
+
EXPECTED_TOKEN: 1,
|
|
201
|
+
INVALID_TOKEN_IN_PLACEHOLDER: 2,
|
|
202
|
+
UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER: 3,
|
|
203
|
+
UNKNOWN_ESCAPE_SEQUENCE: 4,
|
|
204
|
+
INVALID_UNICODE_ESCAPE_SEQUENCE: 5,
|
|
205
|
+
UNBALANCED_CLOSING_BRACE: 6,
|
|
206
|
+
UNTERMINATED_CLOSING_BRACE: 7,
|
|
207
|
+
EMPTY_PLACEHOLDER: 8,
|
|
208
|
+
NOT_ALLOW_NEST_PLACEHOLDER: 9,
|
|
209
|
+
INVALID_LINKED_FORMAT: 10,
|
|
210
|
+
// parser error codes
|
|
211
|
+
MUST_HAVE_MESSAGES_IN_PLURAL: 11,
|
|
212
|
+
UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
|
|
213
|
+
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
214
|
+
UNEXPECTED_LEXICAL_ANALYSIS: 14,
|
|
215
|
+
// generator error codes
|
|
216
|
+
UNHANDLED_CODEGEN_NODE_TYPE: 15,
|
|
217
|
+
// minifier error codes
|
|
218
|
+
UNHANDLED_MINIFIER_NODE_TYPE: 16,
|
|
219
|
+
// Special value for higher-order compilers to pick up the last code
|
|
220
|
+
// to avoid collision of error codes. This should always be kept as the last
|
|
221
|
+
// item.
|
|
222
|
+
__EXTEND_POINT__: 17
|
|
223
|
+
}, Aa = {
|
|
224
|
+
// tokenizer error messages
|
|
225
|
+
[M.EXPECTED_TOKEN]: "Expected token: '{0}'",
|
|
226
|
+
[M.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
|
|
227
|
+
[M.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]: "Unterminated single quote in placeholder",
|
|
228
|
+
[M.UNKNOWN_ESCAPE_SEQUENCE]: "Unknown escape sequence: \\{0}",
|
|
229
|
+
[M.INVALID_UNICODE_ESCAPE_SEQUENCE]: "Invalid unicode escape sequence: {0}",
|
|
230
|
+
[M.UNBALANCED_CLOSING_BRACE]: "Unbalanced closing brace",
|
|
231
|
+
[M.UNTERMINATED_CLOSING_BRACE]: "Unterminated closing brace",
|
|
232
|
+
[M.EMPTY_PLACEHOLDER]: "Empty placeholder",
|
|
233
|
+
[M.NOT_ALLOW_NEST_PLACEHOLDER]: "Not allowed nest placeholder",
|
|
234
|
+
[M.INVALID_LINKED_FORMAT]: "Invalid linked format",
|
|
235
|
+
// parser error messages
|
|
236
|
+
[M.MUST_HAVE_MESSAGES_IN_PLURAL]: "Plural must have messages",
|
|
237
|
+
[M.UNEXPECTED_EMPTY_LINKED_MODIFIER]: "Unexpected empty linked modifier",
|
|
238
|
+
[M.UNEXPECTED_EMPTY_LINKED_KEY]: "Unexpected empty linked key",
|
|
239
|
+
[M.UNEXPECTED_LEXICAL_ANALYSIS]: "Unexpected lexical analysis in token: '{0}'",
|
|
240
|
+
// generator error messages
|
|
241
|
+
[M.UNHANDLED_CODEGEN_NODE_TYPE]: "unhandled codegen node type: '{0}'",
|
|
242
|
+
// minimizer error messages
|
|
243
|
+
[M.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
|
|
244
|
+
};
|
|
245
|
+
function Ye(e, t, n = {}) {
|
|
246
|
+
const { domain: a, messages: s, args: r } = n, l = er((s || Aa)[e] || "", ...r || []), o = new SyntaxError(String(l));
|
|
247
|
+
return o.code = e, t && (o.location = t), o.domain = a, o;
|
|
248
|
+
}
|
|
249
|
+
function Ca(e) {
|
|
250
|
+
throw e;
|
|
251
|
+
}
|
|
252
|
+
const Pa = /<\/?[\w\s="/.':;#-\/]+>/, Sa = (e) => Pa.test(e), Te = " ", Da = "\r", re = `
|
|
253
|
+
`, Ra = "\u2028", ka = "\u2029";
|
|
254
|
+
function ya(e) {
|
|
255
|
+
const t = e;
|
|
256
|
+
let n = 0, a = 1, s = 1, r = 0;
|
|
257
|
+
const l = (v) => t[v] === Da && t[v + 1] === re, o = (v) => t[v] === re, u = (v) => t[v] === ka, _ = (v) => t[v] === Ra, p = (v) => l(v) || o(v) || u(v) || _(v), T = () => n, d = () => a, A = () => s, D = () => r, P = (v) => l(v) || u(v) || _(v) ? re : t[v], S = () => P(n), y = () => P(n + r);
|
|
258
|
+
function R() {
|
|
259
|
+
return r = 0, p(n) && (a++, s = 0), l(n) && n++, n++, s++, t[n];
|
|
260
|
+
}
|
|
261
|
+
function f() {
|
|
262
|
+
return l(n + r) && r++, r++, t[n + r];
|
|
263
|
+
}
|
|
264
|
+
function E() {
|
|
265
|
+
n = 0, a = 1, s = 1, r = 0;
|
|
266
|
+
}
|
|
267
|
+
function L(v = 0) {
|
|
268
|
+
r = v;
|
|
269
|
+
}
|
|
270
|
+
function g() {
|
|
271
|
+
const v = n + r;
|
|
272
|
+
for (; v !== n; )
|
|
273
|
+
R();
|
|
274
|
+
r = 0;
|
|
275
|
+
}
|
|
276
|
+
return {
|
|
277
|
+
index: T,
|
|
278
|
+
line: d,
|
|
279
|
+
column: A,
|
|
280
|
+
peekOffset: D,
|
|
281
|
+
charAt: P,
|
|
282
|
+
currentChar: S,
|
|
283
|
+
currentPeek: y,
|
|
284
|
+
next: R,
|
|
285
|
+
peek: f,
|
|
286
|
+
reset: E,
|
|
287
|
+
resetPeek: L,
|
|
288
|
+
skipToPeek: g
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
const Ie = void 0, Ma = ".", dn = "'", Fa = "tokenizer";
|
|
292
|
+
function Ua(e, t = {}) {
|
|
293
|
+
const n = t.location !== !1, a = ya(e), s = () => a.index(), r = () => La(a.line(), a.column(), a.index()), l = r(), o = s(), u = {
|
|
294
|
+
currentType: 14,
|
|
295
|
+
offset: o,
|
|
296
|
+
startLoc: l,
|
|
297
|
+
endLoc: l,
|
|
298
|
+
lastType: 14,
|
|
299
|
+
lastOffset: o,
|
|
300
|
+
lastStartLoc: l,
|
|
301
|
+
lastEndLoc: l,
|
|
302
|
+
braceNest: 0,
|
|
303
|
+
inLinked: !1,
|
|
304
|
+
text: ""
|
|
305
|
+
}, _ = () => u, { onError: p } = t;
|
|
306
|
+
function T(i, c, N, ...k) {
|
|
307
|
+
const X = _();
|
|
308
|
+
if (c.column += N, c.offset += N, p) {
|
|
309
|
+
const B = n ? vt(X.startLoc, c) : null, H = Ye(i, B, {
|
|
310
|
+
domain: Fa,
|
|
311
|
+
args: k
|
|
312
|
+
});
|
|
313
|
+
p(H);
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
function d(i, c, N) {
|
|
317
|
+
i.endLoc = r(), i.currentType = c;
|
|
318
|
+
const k = { type: c };
|
|
319
|
+
return n && (k.loc = vt(i.startLoc, i.endLoc)), N != null && (k.value = N), k;
|
|
320
|
+
}
|
|
321
|
+
const A = (i) => d(
|
|
322
|
+
i,
|
|
323
|
+
14
|
|
324
|
+
/* TokenTypes.EOF */
|
|
325
|
+
);
|
|
326
|
+
function D(i, c) {
|
|
327
|
+
return i.currentChar() === c ? (i.next(), c) : (T(M.EXPECTED_TOKEN, r(), 0, c), "");
|
|
328
|
+
}
|
|
329
|
+
function P(i) {
|
|
330
|
+
let c = "";
|
|
331
|
+
for (; i.currentPeek() === Te || i.currentPeek() === re; )
|
|
332
|
+
c += i.currentPeek(), i.peek();
|
|
333
|
+
return c;
|
|
334
|
+
}
|
|
335
|
+
function S(i) {
|
|
336
|
+
const c = P(i);
|
|
337
|
+
return i.skipToPeek(), c;
|
|
338
|
+
}
|
|
339
|
+
function y(i) {
|
|
340
|
+
if (i === Ie)
|
|
341
|
+
return !1;
|
|
342
|
+
const c = i.charCodeAt(0);
|
|
343
|
+
return c >= 97 && c <= 122 || // a-z
|
|
344
|
+
c >= 65 && c <= 90 || // A-Z
|
|
345
|
+
c === 95;
|
|
346
|
+
}
|
|
347
|
+
function R(i) {
|
|
348
|
+
if (i === Ie)
|
|
349
|
+
return !1;
|
|
350
|
+
const c = i.charCodeAt(0);
|
|
351
|
+
return c >= 48 && c <= 57;
|
|
352
|
+
}
|
|
353
|
+
function f(i, c) {
|
|
354
|
+
const { currentType: N } = c;
|
|
355
|
+
if (N !== 2)
|
|
356
|
+
return !1;
|
|
357
|
+
P(i);
|
|
358
|
+
const k = y(i.currentPeek());
|
|
359
|
+
return i.resetPeek(), k;
|
|
360
|
+
}
|
|
361
|
+
function E(i, c) {
|
|
362
|
+
const { currentType: N } = c;
|
|
363
|
+
if (N !== 2)
|
|
364
|
+
return !1;
|
|
365
|
+
P(i);
|
|
366
|
+
const k = i.currentPeek() === "-" ? i.peek() : i.currentPeek(), X = R(k);
|
|
367
|
+
return i.resetPeek(), X;
|
|
368
|
+
}
|
|
369
|
+
function L(i, c) {
|
|
370
|
+
const { currentType: N } = c;
|
|
371
|
+
if (N !== 2)
|
|
372
|
+
return !1;
|
|
373
|
+
P(i);
|
|
374
|
+
const k = i.currentPeek() === dn;
|
|
375
|
+
return i.resetPeek(), k;
|
|
376
|
+
}
|
|
377
|
+
function g(i, c) {
|
|
378
|
+
const { currentType: N } = c;
|
|
379
|
+
if (N !== 8)
|
|
380
|
+
return !1;
|
|
381
|
+
P(i);
|
|
382
|
+
const k = i.currentPeek() === ".";
|
|
383
|
+
return i.resetPeek(), k;
|
|
384
|
+
}
|
|
385
|
+
function v(i, c) {
|
|
386
|
+
const { currentType: N } = c;
|
|
387
|
+
if (N !== 9)
|
|
388
|
+
return !1;
|
|
389
|
+
P(i);
|
|
390
|
+
const k = y(i.currentPeek());
|
|
391
|
+
return i.resetPeek(), k;
|
|
392
|
+
}
|
|
393
|
+
function C(i, c) {
|
|
394
|
+
const { currentType: N } = c;
|
|
395
|
+
if (!(N === 8 || N === 12))
|
|
396
|
+
return !1;
|
|
397
|
+
P(i);
|
|
398
|
+
const k = i.currentPeek() === ":";
|
|
399
|
+
return i.resetPeek(), k;
|
|
400
|
+
}
|
|
401
|
+
function I(i, c) {
|
|
402
|
+
const { currentType: N } = c;
|
|
403
|
+
if (N !== 10)
|
|
404
|
+
return !1;
|
|
405
|
+
const k = () => {
|
|
406
|
+
const B = i.currentPeek();
|
|
407
|
+
return B === "{" ? y(i.peek()) : B === "@" || B === "%" || B === "|" || B === ":" || B === "." || B === Te || !B ? !1 : B === re ? (i.peek(), k()) : w(i, !1);
|
|
408
|
+
}, X = k();
|
|
409
|
+
return i.resetPeek(), X;
|
|
410
|
+
}
|
|
411
|
+
function j(i) {
|
|
412
|
+
P(i);
|
|
413
|
+
const c = i.currentPeek() === "|";
|
|
414
|
+
return i.resetPeek(), c;
|
|
415
|
+
}
|
|
416
|
+
function oe(i) {
|
|
417
|
+
const c = P(i), N = i.currentPeek() === "%" && i.peek() === "{";
|
|
418
|
+
return i.resetPeek(), {
|
|
419
|
+
isModulo: N,
|
|
420
|
+
hasSpace: c.length > 0
|
|
421
|
+
};
|
|
422
|
+
}
|
|
423
|
+
function w(i, c = !0) {
|
|
424
|
+
const N = (X = !1, B = "", H = !1) => {
|
|
425
|
+
const m = i.currentPeek();
|
|
426
|
+
return m === "{" ? B === "%" ? !1 : X : m === "@" || !m ? B === "%" ? !0 : X : m === "%" ? (i.peek(), N(X, "%", !0)) : m === "|" ? B === "%" || H ? !0 : !(B === Te || B === re) : m === Te ? (i.peek(), N(!0, Te, H)) : m === re ? (i.peek(), N(!0, re, H)) : !0;
|
|
427
|
+
}, k = N();
|
|
428
|
+
return c && i.resetPeek(), k;
|
|
429
|
+
}
|
|
430
|
+
function ne(i, c) {
|
|
431
|
+
const N = i.currentChar();
|
|
432
|
+
return N === Ie ? Ie : c(N) ? (i.next(), N) : null;
|
|
433
|
+
}
|
|
434
|
+
function Be(i) {
|
|
435
|
+
const c = i.charCodeAt(0);
|
|
436
|
+
return c >= 97 && c <= 122 || // a-z
|
|
437
|
+
c >= 65 && c <= 90 || // A-Z
|
|
438
|
+
c >= 48 && c <= 57 || // 0-9
|
|
439
|
+
c === 95 || // _
|
|
440
|
+
c === 36;
|
|
441
|
+
}
|
|
442
|
+
function je(i) {
|
|
443
|
+
return ne(i, Be);
|
|
444
|
+
}
|
|
445
|
+
function Ee(i) {
|
|
446
|
+
const c = i.charCodeAt(0);
|
|
447
|
+
return c >= 97 && c <= 122 || // a-z
|
|
448
|
+
c >= 65 && c <= 90 || // A-Z
|
|
449
|
+
c >= 48 && c <= 57 || // 0-9
|
|
450
|
+
c === 95 || // _
|
|
451
|
+
c === 36 || // $
|
|
452
|
+
c === 45;
|
|
453
|
+
}
|
|
454
|
+
function Ke(i) {
|
|
455
|
+
return ne(i, Ee);
|
|
456
|
+
}
|
|
457
|
+
function Xe(i) {
|
|
458
|
+
const c = i.charCodeAt(0);
|
|
459
|
+
return c >= 48 && c <= 57;
|
|
460
|
+
}
|
|
461
|
+
function Je(i) {
|
|
462
|
+
return ne(i, Xe);
|
|
463
|
+
}
|
|
464
|
+
function Qe(i) {
|
|
465
|
+
const c = i.charCodeAt(0);
|
|
466
|
+
return c >= 48 && c <= 57 || // 0-9
|
|
467
|
+
c >= 65 && c <= 70 || // A-F
|
|
468
|
+
c >= 97 && c <= 102;
|
|
469
|
+
}
|
|
470
|
+
function qe(i) {
|
|
471
|
+
return ne(i, Qe);
|
|
472
|
+
}
|
|
473
|
+
function ce(i) {
|
|
474
|
+
let c = "", N = "";
|
|
475
|
+
for (; c = Je(i); )
|
|
476
|
+
N += c;
|
|
477
|
+
return N;
|
|
478
|
+
}
|
|
479
|
+
function Fe(i) {
|
|
480
|
+
S(i);
|
|
481
|
+
const c = i.currentChar();
|
|
482
|
+
return c !== "%" && T(M.EXPECTED_TOKEN, r(), 0, c), i.next(), "%";
|
|
483
|
+
}
|
|
484
|
+
function Ue(i) {
|
|
485
|
+
let c = "";
|
|
486
|
+
for (; ; ) {
|
|
487
|
+
const N = i.currentChar();
|
|
488
|
+
if (N === "{" || N === "}" || N === "@" || N === "|" || !N)
|
|
489
|
+
break;
|
|
490
|
+
if (N === "%")
|
|
491
|
+
if (w(i))
|
|
492
|
+
c += N, i.next();
|
|
493
|
+
else
|
|
494
|
+
break;
|
|
495
|
+
else if (N === Te || N === re)
|
|
496
|
+
if (w(i))
|
|
497
|
+
c += N, i.next();
|
|
498
|
+
else {
|
|
499
|
+
if (j(i))
|
|
500
|
+
break;
|
|
501
|
+
c += N, i.next();
|
|
502
|
+
}
|
|
503
|
+
else
|
|
504
|
+
c += N, i.next();
|
|
505
|
+
}
|
|
506
|
+
return c;
|
|
507
|
+
}
|
|
508
|
+
function Ze(i) {
|
|
509
|
+
S(i);
|
|
510
|
+
let c = "", N = "";
|
|
511
|
+
for (; c = Ke(i); )
|
|
512
|
+
N += c;
|
|
513
|
+
return i.currentChar() === Ie && T(M.UNTERMINATED_CLOSING_BRACE, r(), 0), N;
|
|
514
|
+
}
|
|
515
|
+
function ze(i) {
|
|
516
|
+
S(i);
|
|
517
|
+
let c = "";
|
|
518
|
+
return i.currentChar() === "-" ? (i.next(), c += `-${ce(i)}`) : c += ce(i), i.currentChar() === Ie && T(M.UNTERMINATED_CLOSING_BRACE, r(), 0), c;
|
|
519
|
+
}
|
|
520
|
+
function et(i) {
|
|
521
|
+
return i !== dn && i !== re;
|
|
522
|
+
}
|
|
523
|
+
function Et(i) {
|
|
524
|
+
S(i), D(i, "'");
|
|
525
|
+
let c = "", N = "";
|
|
526
|
+
for (; c = ne(i, et); )
|
|
527
|
+
c === "\\" ? N += tt(i) : N += c;
|
|
528
|
+
const k = i.currentChar();
|
|
529
|
+
return k === re || k === Ie ? (T(M.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, r(), 0), k === re && (i.next(), D(i, "'")), N) : (D(i, "'"), N);
|
|
530
|
+
}
|
|
531
|
+
function tt(i) {
|
|
532
|
+
const c = i.currentChar();
|
|
533
|
+
switch (c) {
|
|
534
|
+
case "\\":
|
|
535
|
+
case "'":
|
|
536
|
+
return i.next(), `\\${c}`;
|
|
537
|
+
case "u":
|
|
538
|
+
return we(i, c, 4);
|
|
539
|
+
case "U":
|
|
540
|
+
return we(i, c, 6);
|
|
541
|
+
default:
|
|
542
|
+
return T(M.UNKNOWN_ESCAPE_SEQUENCE, r(), 0, c), "";
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
function we(i, c, N) {
|
|
546
|
+
D(i, c);
|
|
547
|
+
let k = "";
|
|
548
|
+
for (let X = 0; X < N; X++) {
|
|
549
|
+
const B = qe(i);
|
|
550
|
+
if (!B) {
|
|
551
|
+
T(M.INVALID_UNICODE_ESCAPE_SEQUENCE, r(), 0, `\\${c}${k}${i.currentChar()}`);
|
|
552
|
+
break;
|
|
553
|
+
}
|
|
554
|
+
k += B;
|
|
555
|
+
}
|
|
556
|
+
return `\\${c}${k}`;
|
|
557
|
+
}
|
|
558
|
+
function nt(i) {
|
|
559
|
+
return i !== "{" && i !== "}" && i !== Te && i !== re;
|
|
560
|
+
}
|
|
561
|
+
function rt(i) {
|
|
562
|
+
S(i);
|
|
563
|
+
let c = "", N = "";
|
|
564
|
+
for (; c = ne(i, nt); )
|
|
565
|
+
N += c;
|
|
566
|
+
return N;
|
|
567
|
+
}
|
|
568
|
+
function at(i) {
|
|
569
|
+
let c = "", N = "";
|
|
570
|
+
for (; c = je(i); )
|
|
571
|
+
N += c;
|
|
572
|
+
return N;
|
|
573
|
+
}
|
|
574
|
+
function b(i) {
|
|
575
|
+
const c = (N) => {
|
|
576
|
+
const k = i.currentChar();
|
|
577
|
+
return k === "{" || k === "%" || k === "@" || k === "|" || k === "(" || k === ")" || !k || k === Te ? N : (N += k, i.next(), c(N));
|
|
578
|
+
};
|
|
579
|
+
return c("");
|
|
580
|
+
}
|
|
581
|
+
function W(i) {
|
|
582
|
+
S(i);
|
|
583
|
+
const c = D(
|
|
584
|
+
i,
|
|
585
|
+
"|"
|
|
586
|
+
/* TokenChars.Pipe */
|
|
587
|
+
);
|
|
588
|
+
return S(i), c;
|
|
589
|
+
}
|
|
590
|
+
function st(i, c) {
|
|
591
|
+
let N = null;
|
|
592
|
+
switch (i.currentChar()) {
|
|
593
|
+
case "{":
|
|
594
|
+
return c.braceNest >= 1 && T(M.NOT_ALLOW_NEST_PLACEHOLDER, r(), 0), i.next(), N = d(
|
|
595
|
+
c,
|
|
596
|
+
2,
|
|
597
|
+
"{"
|
|
598
|
+
/* TokenChars.BraceLeft */
|
|
599
|
+
), S(i), c.braceNest++, N;
|
|
600
|
+
case "}":
|
|
601
|
+
return c.braceNest > 0 && c.currentType === 2 && T(M.EMPTY_PLACEHOLDER, r(), 0), i.next(), N = d(
|
|
602
|
+
c,
|
|
603
|
+
3,
|
|
604
|
+
"}"
|
|
605
|
+
/* TokenChars.BraceRight */
|
|
606
|
+
), c.braceNest--, c.braceNest > 0 && S(i), c.inLinked && c.braceNest === 0 && (c.inLinked = !1), N;
|
|
607
|
+
case "@":
|
|
608
|
+
return c.braceNest > 0 && T(M.UNTERMINATED_CLOSING_BRACE, r(), 0), N = Ce(i, c) || A(c), c.braceNest = 0, N;
|
|
609
|
+
default: {
|
|
610
|
+
let X = !0, B = !0, H = !0;
|
|
611
|
+
if (j(i))
|
|
612
|
+
return c.braceNest > 0 && T(M.UNTERMINATED_CLOSING_BRACE, r(), 0), N = d(c, 1, W(i)), c.braceNest = 0, c.inLinked = !1, N;
|
|
613
|
+
if (c.braceNest > 0 && (c.currentType === 5 || c.currentType === 6 || c.currentType === 7))
|
|
614
|
+
return T(M.UNTERMINATED_CLOSING_BRACE, r(), 0), c.braceNest = 0, lt(i, c);
|
|
615
|
+
if (X = f(i, c))
|
|
616
|
+
return N = d(c, 5, Ze(i)), S(i), N;
|
|
617
|
+
if (B = E(i, c))
|
|
618
|
+
return N = d(c, 6, ze(i)), S(i), N;
|
|
619
|
+
if (H = L(i, c))
|
|
620
|
+
return N = d(c, 7, Et(i)), S(i), N;
|
|
621
|
+
if (!X && !B && !H)
|
|
622
|
+
return N = d(c, 13, rt(i)), T(M.INVALID_TOKEN_IN_PLACEHOLDER, r(), 0, N.value), S(i), N;
|
|
623
|
+
break;
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
return N;
|
|
627
|
+
}
|
|
628
|
+
function Ce(i, c) {
|
|
629
|
+
const { currentType: N } = c;
|
|
630
|
+
let k = null;
|
|
631
|
+
const X = i.currentChar();
|
|
632
|
+
switch ((N === 8 || N === 9 || N === 12 || N === 10) && (X === re || X === Te) && T(M.INVALID_LINKED_FORMAT, r(), 0), X) {
|
|
633
|
+
case "@":
|
|
634
|
+
return i.next(), k = d(
|
|
635
|
+
c,
|
|
636
|
+
8,
|
|
637
|
+
"@"
|
|
638
|
+
/* TokenChars.LinkedAlias */
|
|
639
|
+
), c.inLinked = !0, k;
|
|
640
|
+
case ".":
|
|
641
|
+
return S(i), i.next(), d(
|
|
642
|
+
c,
|
|
643
|
+
9,
|
|
644
|
+
"."
|
|
645
|
+
/* TokenChars.LinkedDot */
|
|
646
|
+
);
|
|
647
|
+
case ":":
|
|
648
|
+
return S(i), i.next(), d(
|
|
649
|
+
c,
|
|
650
|
+
10,
|
|
651
|
+
":"
|
|
652
|
+
/* TokenChars.LinkedDelimiter */
|
|
653
|
+
);
|
|
654
|
+
default:
|
|
655
|
+
return j(i) ? (k = d(c, 1, W(i)), c.braceNest = 0, c.inLinked = !1, k) : g(i, c) || C(i, c) ? (S(i), Ce(i, c)) : v(i, c) ? (S(i), d(c, 12, at(i))) : I(i, c) ? (S(i), X === "{" ? st(i, c) || k : d(c, 11, b(i))) : (N === 8 && T(M.INVALID_LINKED_FORMAT, r(), 0), c.braceNest = 0, c.inLinked = !1, lt(i, c));
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
function lt(i, c) {
|
|
659
|
+
let N = {
|
|
660
|
+
type: 14
|
|
661
|
+
/* TokenTypes.EOF */
|
|
662
|
+
};
|
|
663
|
+
if (c.braceNest > 0)
|
|
664
|
+
return st(i, c) || A(c);
|
|
665
|
+
if (c.inLinked)
|
|
666
|
+
return Ce(i, c) || A(c);
|
|
667
|
+
switch (i.currentChar()) {
|
|
668
|
+
case "{":
|
|
669
|
+
return st(i, c) || A(c);
|
|
670
|
+
case "}":
|
|
671
|
+
return T(M.UNBALANCED_CLOSING_BRACE, r(), 0), i.next(), d(
|
|
672
|
+
c,
|
|
673
|
+
3,
|
|
674
|
+
"}"
|
|
675
|
+
/* TokenChars.BraceRight */
|
|
676
|
+
);
|
|
677
|
+
case "@":
|
|
678
|
+
return Ce(i, c) || A(c);
|
|
679
|
+
default: {
|
|
680
|
+
if (j(i))
|
|
681
|
+
return N = d(c, 1, W(i)), c.braceNest = 0, c.inLinked = !1, N;
|
|
682
|
+
const { isModulo: X, hasSpace: B } = oe(i);
|
|
683
|
+
if (X)
|
|
684
|
+
return B ? d(c, 0, Ue(i)) : d(c, 4, Fe(i));
|
|
685
|
+
if (w(i))
|
|
686
|
+
return d(c, 0, Ue(i));
|
|
687
|
+
break;
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
return N;
|
|
691
|
+
}
|
|
692
|
+
function Dt() {
|
|
693
|
+
const { currentType: i, offset: c, startLoc: N, endLoc: k } = u;
|
|
694
|
+
return u.lastType = i, u.lastOffset = c, u.lastStartLoc = N, u.lastEndLoc = k, u.offset = s(), u.startLoc = r(), a.currentChar() === Ie ? d(
|
|
695
|
+
u,
|
|
696
|
+
14
|
|
697
|
+
/* TokenTypes.EOF */
|
|
698
|
+
) : lt(a, u);
|
|
699
|
+
}
|
|
700
|
+
return {
|
|
701
|
+
nextToken: Dt,
|
|
702
|
+
currentOffset: s,
|
|
703
|
+
currentPosition: r,
|
|
704
|
+
context: _
|
|
705
|
+
};
|
|
706
|
+
}
|
|
707
|
+
const wa = "parser", Va = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
708
|
+
function $a(e, t, n) {
|
|
709
|
+
switch (e) {
|
|
710
|
+
case "\\\\":
|
|
711
|
+
return "\\";
|
|
712
|
+
case "\\'":
|
|
713
|
+
return "'";
|
|
714
|
+
default: {
|
|
715
|
+
const a = parseInt(t || n, 16);
|
|
716
|
+
return a <= 55295 || a >= 57344 ? String.fromCodePoint(a) : "�";
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
function Wa(e = {}) {
|
|
721
|
+
const t = e.location !== !1, { onError: n, onWarn: a } = e;
|
|
722
|
+
function s(f, E, L, g, ...v) {
|
|
723
|
+
const C = f.currentPosition();
|
|
724
|
+
if (C.offset += g, C.column += g, n) {
|
|
725
|
+
const I = t ? vt(L, C) : null, j = Ye(E, I, {
|
|
726
|
+
domain: wa,
|
|
727
|
+
args: v
|
|
728
|
+
});
|
|
729
|
+
n(j);
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
function r(f, E, L, g, ...v) {
|
|
733
|
+
const C = f.currentPosition();
|
|
734
|
+
if (C.offset += g, C.column += g, a) {
|
|
735
|
+
const I = t ? vt(L, C) : null;
|
|
736
|
+
a(ha(E, I, v));
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
function l(f, E, L) {
|
|
740
|
+
const g = { type: f };
|
|
741
|
+
return t && (g.start = E, g.end = E, g.loc = { start: L, end: L }), g;
|
|
742
|
+
}
|
|
743
|
+
function o(f, E, L, g) {
|
|
744
|
+
t && (f.end = E, f.loc && (f.loc.end = L));
|
|
745
|
+
}
|
|
746
|
+
function u(f, E) {
|
|
747
|
+
const L = f.context(), g = l(3, L.offset, L.startLoc);
|
|
748
|
+
return g.value = E, o(g, f.currentOffset(), f.currentPosition()), g;
|
|
749
|
+
}
|
|
750
|
+
function _(f, E) {
|
|
751
|
+
const L = f.context(), { lastOffset: g, lastStartLoc: v } = L, C = l(5, g, v);
|
|
752
|
+
return C.index = parseInt(E, 10), f.nextToken(), o(C, f.currentOffset(), f.currentPosition()), C;
|
|
753
|
+
}
|
|
754
|
+
function p(f, E, L) {
|
|
755
|
+
const g = f.context(), { lastOffset: v, lastStartLoc: C } = g, I = l(4, v, C);
|
|
756
|
+
return I.key = E, L === !0 && (I.modulo = !0), f.nextToken(), o(I, f.currentOffset(), f.currentPosition()), I;
|
|
757
|
+
}
|
|
758
|
+
function T(f, E) {
|
|
759
|
+
const L = f.context(), { lastOffset: g, lastStartLoc: v } = L, C = l(9, g, v);
|
|
760
|
+
return C.value = E.replace(Va, $a), f.nextToken(), o(C, f.currentOffset(), f.currentPosition()), C;
|
|
761
|
+
}
|
|
762
|
+
function d(f) {
|
|
763
|
+
const E = f.nextToken(), L = f.context(), { lastOffset: g, lastStartLoc: v } = L, C = l(8, g, v);
|
|
764
|
+
return E.type !== 12 ? (s(f, M.UNEXPECTED_EMPTY_LINKED_MODIFIER, L.lastStartLoc, 0), C.value = "", o(C, g, v), {
|
|
765
|
+
nextConsumeToken: E,
|
|
766
|
+
node: C
|
|
767
|
+
}) : (E.value == null && s(f, M.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, _e(E)), C.value = E.value || "", o(C, f.currentOffset(), f.currentPosition()), {
|
|
768
|
+
node: C
|
|
769
|
+
});
|
|
770
|
+
}
|
|
771
|
+
function A(f, E) {
|
|
772
|
+
const L = f.context(), g = l(7, L.offset, L.startLoc);
|
|
773
|
+
return g.value = E, o(g, f.currentOffset(), f.currentPosition()), g;
|
|
774
|
+
}
|
|
775
|
+
function D(f) {
|
|
776
|
+
const E = f.context(), L = l(6, E.offset, E.startLoc);
|
|
777
|
+
let g = f.nextToken();
|
|
778
|
+
if (g.type === 9) {
|
|
779
|
+
const v = d(f);
|
|
780
|
+
L.modifier = v.node, g = v.nextConsumeToken || f.nextToken();
|
|
781
|
+
}
|
|
782
|
+
switch (g.type !== 10 && s(f, M.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, _e(g)), g = f.nextToken(), g.type === 2 && (g = f.nextToken()), g.type) {
|
|
783
|
+
case 11:
|
|
784
|
+
g.value == null && s(f, M.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, _e(g)), L.key = A(f, g.value || "");
|
|
785
|
+
break;
|
|
786
|
+
case 5:
|
|
787
|
+
g.value == null && s(f, M.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, _e(g)), L.key = p(f, g.value || "");
|
|
788
|
+
break;
|
|
789
|
+
case 6:
|
|
790
|
+
g.value == null && s(f, M.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, _e(g)), L.key = _(f, g.value || "");
|
|
791
|
+
break;
|
|
792
|
+
case 7:
|
|
793
|
+
g.value == null && s(f, M.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, _e(g)), L.key = T(f, g.value || "");
|
|
794
|
+
break;
|
|
795
|
+
default: {
|
|
796
|
+
s(f, M.UNEXPECTED_EMPTY_LINKED_KEY, E.lastStartLoc, 0);
|
|
797
|
+
const v = f.context(), C = l(7, v.offset, v.startLoc);
|
|
798
|
+
return C.value = "", o(C, v.offset, v.startLoc), L.key = C, o(L, v.offset, v.startLoc), {
|
|
799
|
+
nextConsumeToken: g,
|
|
800
|
+
node: L
|
|
801
|
+
};
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
return o(L, f.currentOffset(), f.currentPosition()), {
|
|
805
|
+
node: L
|
|
806
|
+
};
|
|
807
|
+
}
|
|
808
|
+
function P(f) {
|
|
809
|
+
const E = f.context(), L = E.currentType === 1 ? f.currentOffset() : E.offset, g = E.currentType === 1 ? E.endLoc : E.startLoc, v = l(2, L, g);
|
|
810
|
+
v.items = [];
|
|
811
|
+
let C = null, I = null;
|
|
812
|
+
do {
|
|
813
|
+
const w = C || f.nextToken();
|
|
814
|
+
switch (C = null, w.type) {
|
|
815
|
+
case 0:
|
|
816
|
+
w.value == null && s(f, M.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, _e(w)), v.items.push(u(f, w.value || ""));
|
|
817
|
+
break;
|
|
818
|
+
case 6:
|
|
819
|
+
w.value == null && s(f, M.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, _e(w)), v.items.push(_(f, w.value || ""));
|
|
820
|
+
break;
|
|
821
|
+
case 4:
|
|
822
|
+
I = !0;
|
|
823
|
+
break;
|
|
824
|
+
case 5:
|
|
825
|
+
w.value == null && s(f, M.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, _e(w)), v.items.push(p(f, w.value || "", !!I)), I && (r(f, At.USE_MODULO_SYNTAX, E.lastStartLoc, 0, _e(w)), I = null);
|
|
826
|
+
break;
|
|
827
|
+
case 7:
|
|
828
|
+
w.value == null && s(f, M.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, _e(w)), v.items.push(T(f, w.value || ""));
|
|
829
|
+
break;
|
|
830
|
+
case 8: {
|
|
831
|
+
const ne = D(f);
|
|
832
|
+
v.items.push(ne.node), C = ne.nextConsumeToken || null;
|
|
833
|
+
break;
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
} while (E.currentType !== 14 && E.currentType !== 1);
|
|
837
|
+
const j = E.currentType === 1 ? E.lastOffset : f.currentOffset(), oe = E.currentType === 1 ? E.lastEndLoc : f.currentPosition();
|
|
838
|
+
return o(v, j, oe), v;
|
|
839
|
+
}
|
|
840
|
+
function S(f, E, L, g) {
|
|
841
|
+
const v = f.context();
|
|
842
|
+
let C = g.items.length === 0;
|
|
843
|
+
const I = l(1, E, L);
|
|
844
|
+
I.cases = [], I.cases.push(g);
|
|
845
|
+
do {
|
|
846
|
+
const j = P(f);
|
|
847
|
+
C || (C = j.items.length === 0), I.cases.push(j);
|
|
848
|
+
} while (v.currentType !== 14);
|
|
849
|
+
return C && s(f, M.MUST_HAVE_MESSAGES_IN_PLURAL, L, 0), o(I, f.currentOffset(), f.currentPosition()), I;
|
|
850
|
+
}
|
|
851
|
+
function y(f) {
|
|
852
|
+
const E = f.context(), { offset: L, startLoc: g } = E, v = P(f);
|
|
853
|
+
return E.currentType === 14 ? v : S(f, L, g, v);
|
|
854
|
+
}
|
|
855
|
+
function R(f) {
|
|
856
|
+
const E = Ua(f, tr({}, e)), L = E.context(), g = l(0, L.offset, L.startLoc);
|
|
857
|
+
return t && g.loc && (g.loc.source = f), g.body = y(E), e.onCacheKey && (g.cacheKey = e.onCacheKey(f)), L.currentType !== 14 && s(E, M.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, f[L.offset] || ""), o(g, E.currentOffset(), E.currentPosition()), g;
|
|
858
|
+
}
|
|
859
|
+
return { parse: R };
|
|
860
|
+
}
|
|
861
|
+
function _e(e) {
|
|
862
|
+
if (e.type === 14)
|
|
863
|
+
return "EOF";
|
|
864
|
+
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
865
|
+
return t.length > 10 ? t.slice(0, 9) + "…" : t;
|
|
866
|
+
}
|
|
867
|
+
function Ga(e, t = {}) {
|
|
868
|
+
const n = {
|
|
869
|
+
ast: e,
|
|
870
|
+
helpers: /* @__PURE__ */ new Set()
|
|
871
|
+
};
|
|
872
|
+
return { context: () => n, helper: (r) => (n.helpers.add(r), r) };
|
|
873
|
+
}
|
|
874
|
+
function En(e, t) {
|
|
875
|
+
for (let n = 0; n < e.length; n++)
|
|
876
|
+
Qt(e[n], t);
|
|
877
|
+
}
|
|
878
|
+
function Qt(e, t) {
|
|
879
|
+
switch (e.type) {
|
|
880
|
+
case 1:
|
|
881
|
+
En(e.cases, t), t.helper(
|
|
882
|
+
"plural"
|
|
883
|
+
/* HelperNameMap.PLURAL */
|
|
884
|
+
);
|
|
885
|
+
break;
|
|
886
|
+
case 2:
|
|
887
|
+
En(e.items, t);
|
|
888
|
+
break;
|
|
889
|
+
case 6: {
|
|
890
|
+
Qt(e.key, t), t.helper(
|
|
891
|
+
"linked"
|
|
892
|
+
/* HelperNameMap.LINKED */
|
|
893
|
+
), t.helper(
|
|
894
|
+
"type"
|
|
895
|
+
/* HelperNameMap.TYPE */
|
|
896
|
+
);
|
|
897
|
+
break;
|
|
898
|
+
}
|
|
899
|
+
case 5:
|
|
900
|
+
t.helper(
|
|
901
|
+
"interpolate"
|
|
902
|
+
/* HelperNameMap.INTERPOLATE */
|
|
903
|
+
), t.helper(
|
|
904
|
+
"list"
|
|
905
|
+
/* HelperNameMap.LIST */
|
|
906
|
+
);
|
|
907
|
+
break;
|
|
908
|
+
case 4:
|
|
909
|
+
t.helper(
|
|
910
|
+
"interpolate"
|
|
911
|
+
/* HelperNameMap.INTERPOLATE */
|
|
912
|
+
), t.helper(
|
|
913
|
+
"named"
|
|
914
|
+
/* HelperNameMap.NAMED */
|
|
915
|
+
);
|
|
916
|
+
break;
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
function Ha(e, t = {}) {
|
|
920
|
+
const n = Ga(e);
|
|
921
|
+
n.helper(
|
|
922
|
+
"normalize"
|
|
923
|
+
/* HelperNameMap.NORMALIZE */
|
|
924
|
+
), e.body && Qt(e.body, n);
|
|
925
|
+
const a = n.context();
|
|
926
|
+
e.helpers = Array.from(a.helpers);
|
|
927
|
+
}
|
|
928
|
+
function xa(e) {
|
|
929
|
+
const t = e.body;
|
|
930
|
+
return t.type === 2 ? gn(t) : t.cases.forEach((n) => gn(n)), e;
|
|
931
|
+
}
|
|
932
|
+
function gn(e) {
|
|
933
|
+
if (e.items.length === 1) {
|
|
934
|
+
const t = e.items[0];
|
|
935
|
+
(t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
|
|
936
|
+
} else {
|
|
937
|
+
const t = [];
|
|
938
|
+
for (let n = 0; n < e.items.length; n++) {
|
|
939
|
+
const a = e.items[n];
|
|
940
|
+
if (!(a.type === 3 || a.type === 9) || a.value == null)
|
|
941
|
+
break;
|
|
942
|
+
t.push(a.value);
|
|
943
|
+
}
|
|
944
|
+
if (t.length === e.items.length) {
|
|
945
|
+
e.static = nr(t);
|
|
946
|
+
for (let n = 0; n < e.items.length; n++) {
|
|
947
|
+
const a = e.items[n];
|
|
948
|
+
(a.type === 3 || a.type === 9) && delete a.value;
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
const Ya = "minifier";
|
|
954
|
+
function We(e) {
|
|
955
|
+
switch (e.t = e.type, e.type) {
|
|
956
|
+
case 0: {
|
|
957
|
+
const t = e;
|
|
958
|
+
We(t.body), t.b = t.body, delete t.body;
|
|
959
|
+
break;
|
|
960
|
+
}
|
|
961
|
+
case 1: {
|
|
962
|
+
const t = e, n = t.cases;
|
|
963
|
+
for (let a = 0; a < n.length; a++)
|
|
964
|
+
We(n[a]);
|
|
965
|
+
t.c = n, delete t.cases;
|
|
966
|
+
break;
|
|
967
|
+
}
|
|
968
|
+
case 2: {
|
|
969
|
+
const t = e, n = t.items;
|
|
970
|
+
for (let a = 0; a < n.length; a++)
|
|
971
|
+
We(n[a]);
|
|
972
|
+
t.i = n, delete t.items, t.static && (t.s = t.static, delete t.static);
|
|
973
|
+
break;
|
|
974
|
+
}
|
|
975
|
+
case 3:
|
|
976
|
+
case 9:
|
|
977
|
+
case 8:
|
|
978
|
+
case 7: {
|
|
979
|
+
const t = e;
|
|
980
|
+
t.value && (t.v = t.value, delete t.value);
|
|
981
|
+
break;
|
|
982
|
+
}
|
|
983
|
+
case 6: {
|
|
984
|
+
const t = e;
|
|
985
|
+
We(t.key), t.k = t.key, delete t.key, t.modifier && (We(t.modifier), t.m = t.modifier, delete t.modifier);
|
|
986
|
+
break;
|
|
987
|
+
}
|
|
988
|
+
case 5: {
|
|
989
|
+
const t = e;
|
|
990
|
+
t.i = t.index, delete t.index;
|
|
991
|
+
break;
|
|
992
|
+
}
|
|
993
|
+
case 4: {
|
|
994
|
+
const t = e;
|
|
995
|
+
t.k = t.key, delete t.key;
|
|
996
|
+
break;
|
|
997
|
+
}
|
|
998
|
+
default:
|
|
999
|
+
throw Ye(M.UNHANDLED_MINIFIER_NODE_TYPE, null, {
|
|
1000
|
+
domain: Ya,
|
|
1001
|
+
args: [e.type]
|
|
1002
|
+
});
|
|
1003
|
+
}
|
|
1004
|
+
delete e.type;
|
|
1005
|
+
}
|
|
1006
|
+
const Ba = "parser";
|
|
1007
|
+
function ja(e, t) {
|
|
1008
|
+
const { filename: n, breakLineCode: a, needIndent: s } = t, r = t.location !== !1, l = {
|
|
1009
|
+
filename: n,
|
|
1010
|
+
code: "",
|
|
1011
|
+
column: 1,
|
|
1012
|
+
line: 1,
|
|
1013
|
+
offset: 0,
|
|
1014
|
+
map: void 0,
|
|
1015
|
+
breakLineCode: a,
|
|
1016
|
+
needIndent: s,
|
|
1017
|
+
indentLevel: 0
|
|
1018
|
+
};
|
|
1019
|
+
r && e.loc && (l.source = e.loc.source);
|
|
1020
|
+
const o = () => l;
|
|
1021
|
+
function u(P, S) {
|
|
1022
|
+
l.code += P;
|
|
1023
|
+
}
|
|
1024
|
+
function _(P, S = !0) {
|
|
1025
|
+
const y = S ? a : "";
|
|
1026
|
+
u(s ? y + " ".repeat(P) : y);
|
|
1027
|
+
}
|
|
1028
|
+
function p(P = !0) {
|
|
1029
|
+
const S = ++l.indentLevel;
|
|
1030
|
+
P && _(S);
|
|
1031
|
+
}
|
|
1032
|
+
function T(P = !0) {
|
|
1033
|
+
const S = --l.indentLevel;
|
|
1034
|
+
P && _(S);
|
|
1035
|
+
}
|
|
1036
|
+
function d() {
|
|
1037
|
+
_(l.indentLevel);
|
|
1038
|
+
}
|
|
1039
|
+
return {
|
|
1040
|
+
context: o,
|
|
1041
|
+
push: u,
|
|
1042
|
+
indent: p,
|
|
1043
|
+
deindent: T,
|
|
1044
|
+
newline: d,
|
|
1045
|
+
helper: (P) => `_${P}`,
|
|
1046
|
+
needIndent: () => l.needIndent
|
|
1047
|
+
};
|
|
1048
|
+
}
|
|
1049
|
+
function Ka(e, t) {
|
|
1050
|
+
const { helper: n } = e;
|
|
1051
|
+
e.push(`${n(
|
|
1052
|
+
"linked"
|
|
1053
|
+
/* HelperNameMap.LINKED */
|
|
1054
|
+
)}(`), He(e, t.key), t.modifier ? (e.push(", "), He(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
1055
|
+
}
|
|
1056
|
+
function Xa(e, t) {
|
|
1057
|
+
const { helper: n, needIndent: a } = e;
|
|
1058
|
+
e.push(`${n(
|
|
1059
|
+
"normalize"
|
|
1060
|
+
/* HelperNameMap.NORMALIZE */
|
|
1061
|
+
)}([`), e.indent(a());
|
|
1062
|
+
const s = t.items.length;
|
|
1063
|
+
for (let r = 0; r < s && (He(e, t.items[r]), r !== s - 1); r++)
|
|
1064
|
+
e.push(", ");
|
|
1065
|
+
e.deindent(a()), e.push("])");
|
|
1066
|
+
}
|
|
1067
|
+
function Ja(e, t) {
|
|
1068
|
+
const { helper: n, needIndent: a } = e;
|
|
1069
|
+
if (t.cases.length > 1) {
|
|
1070
|
+
e.push(`${n(
|
|
1071
|
+
"plural"
|
|
1072
|
+
/* HelperNameMap.PLURAL */
|
|
1073
|
+
)}([`), e.indent(a());
|
|
1074
|
+
const s = t.cases.length;
|
|
1075
|
+
for (let r = 0; r < s && (He(e, t.cases[r]), r !== s - 1); r++)
|
|
1076
|
+
e.push(", ");
|
|
1077
|
+
e.deindent(a()), e.push("])");
|
|
1078
|
+
}
|
|
1079
|
+
}
|
|
1080
|
+
function Qa(e, t) {
|
|
1081
|
+
t.body ? He(e, t.body) : e.push("null");
|
|
1082
|
+
}
|
|
1083
|
+
function He(e, t) {
|
|
1084
|
+
const { helper: n } = e;
|
|
1085
|
+
switch (t.type) {
|
|
1086
|
+
case 0:
|
|
1087
|
+
Qa(e, t);
|
|
1088
|
+
break;
|
|
1089
|
+
case 1:
|
|
1090
|
+
Ja(e, t);
|
|
1091
|
+
break;
|
|
1092
|
+
case 2:
|
|
1093
|
+
Xa(e, t);
|
|
1094
|
+
break;
|
|
1095
|
+
case 6:
|
|
1096
|
+
Ka(e, t);
|
|
1097
|
+
break;
|
|
1098
|
+
case 8:
|
|
1099
|
+
e.push(JSON.stringify(t.value), t);
|
|
1100
|
+
break;
|
|
1101
|
+
case 7:
|
|
1102
|
+
e.push(JSON.stringify(t.value), t);
|
|
1103
|
+
break;
|
|
1104
|
+
case 5:
|
|
1105
|
+
e.push(`${n(
|
|
1106
|
+
"interpolate"
|
|
1107
|
+
/* HelperNameMap.INTERPOLATE */
|
|
1108
|
+
)}(${n(
|
|
1109
|
+
"list"
|
|
1110
|
+
/* HelperNameMap.LIST */
|
|
1111
|
+
)}(${t.index}))`, t);
|
|
1112
|
+
break;
|
|
1113
|
+
case 4:
|
|
1114
|
+
e.push(`${n(
|
|
1115
|
+
"interpolate"
|
|
1116
|
+
/* HelperNameMap.INTERPOLATE */
|
|
1117
|
+
)}(${n(
|
|
1118
|
+
"named"
|
|
1119
|
+
/* HelperNameMap.NAMED */
|
|
1120
|
+
)}(${JSON.stringify(t.key)}))`, t);
|
|
1121
|
+
break;
|
|
1122
|
+
case 9:
|
|
1123
|
+
e.push(JSON.stringify(t.value), t);
|
|
1124
|
+
break;
|
|
1125
|
+
case 3:
|
|
1126
|
+
e.push(JSON.stringify(t.value), t);
|
|
1127
|
+
break;
|
|
1128
|
+
default:
|
|
1129
|
+
throw Ye(M.UNHANDLED_CODEGEN_NODE_TYPE, null, {
|
|
1130
|
+
domain: Ba,
|
|
1131
|
+
args: [t.type]
|
|
1132
|
+
});
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
const qa = (e, t = {}) => {
|
|
1136
|
+
const n = mn(t.mode) ? t.mode : "normal", a = mn(t.filename) ? t.filename : "message.intl";
|
|
1137
|
+
t.sourceMap;
|
|
1138
|
+
const s = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
1139
|
+
`, r = t.needIndent ? t.needIndent : n !== "arrow", l = e.helpers || [], o = ja(e, {
|
|
1140
|
+
filename: a,
|
|
1141
|
+
breakLineCode: s,
|
|
1142
|
+
needIndent: r
|
|
1143
|
+
});
|
|
1144
|
+
o.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), o.indent(r), l.length > 0 && (o.push(`const { ${nr(l.map((p) => `${p}: _${p}`), ", ")} } = ctx`), o.newline()), o.push("return "), He(o, e), o.deindent(r), o.push("}"), delete e.helpers;
|
|
1145
|
+
const { code: u, map: _ } = o.context();
|
|
1146
|
+
return {
|
|
1147
|
+
ast: e,
|
|
1148
|
+
code: u,
|
|
1149
|
+
map: _ ? _.toJSON() : void 0
|
|
1150
|
+
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1151
|
+
};
|
|
1152
|
+
};
|
|
1153
|
+
function Za(e, t = {}) {
|
|
1154
|
+
const n = tr({}, t), a = !!n.jit, s = !!n.minify, r = n.optimize == null ? !0 : n.optimize, o = Wa(n).parse(e);
|
|
1155
|
+
return a ? (r && xa(o), s && We(o), { ast: o, code: "" }) : (Ha(o, n), qa(o, n));
|
|
1156
|
+
}
|
|
1157
|
+
/*!
|
|
1158
|
+
* core-base v9.14.5
|
|
1159
|
+
* (c) 2025 kazuya kawaguchi
|
|
1160
|
+
* Released under the MIT License.
|
|
1161
|
+
*/
|
|
1162
|
+
function za() {
|
|
1163
|
+
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Le().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_JIT_COMPILATION__ != "boolean" && (Le().__INTLIFY_JIT_COMPILATION__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Le().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
1164
|
+
}
|
|
1165
|
+
function fe(e) {
|
|
1166
|
+
return V(e) && qt(e) === 0 && (me(e, "b") || me(e, "body"));
|
|
1167
|
+
}
|
|
1168
|
+
const rr = ["b", "body"];
|
|
1169
|
+
function es(e) {
|
|
1170
|
+
return he(e, rr);
|
|
1171
|
+
}
|
|
1172
|
+
const ar = ["c", "cases"];
|
|
1173
|
+
function ts(e) {
|
|
1174
|
+
return he(e, ar, []);
|
|
1175
|
+
}
|
|
1176
|
+
const sr = ["s", "static"];
|
|
1177
|
+
function ns(e) {
|
|
1178
|
+
return he(e, sr);
|
|
1179
|
+
}
|
|
1180
|
+
const lr = ["i", "items"];
|
|
1181
|
+
function rs(e) {
|
|
1182
|
+
return he(e, lr, []);
|
|
1183
|
+
}
|
|
1184
|
+
const or = ["t", "type"];
|
|
1185
|
+
function qt(e) {
|
|
1186
|
+
return he(e, or);
|
|
1187
|
+
}
|
|
1188
|
+
const ir = ["v", "value"];
|
|
1189
|
+
function Tt(e, t) {
|
|
1190
|
+
const n = he(e, ir);
|
|
1191
|
+
if (n != null)
|
|
1192
|
+
return n;
|
|
1193
|
+
throw ct(t);
|
|
1194
|
+
}
|
|
1195
|
+
const cr = ["m", "modifier"];
|
|
1196
|
+
function as(e) {
|
|
1197
|
+
return he(e, cr);
|
|
1198
|
+
}
|
|
1199
|
+
const ur = ["k", "key"];
|
|
1200
|
+
function ss(e) {
|
|
1201
|
+
const t = he(e, ur);
|
|
1202
|
+
if (t)
|
|
1203
|
+
return t;
|
|
1204
|
+
throw ct(
|
|
1205
|
+
6
|
|
1206
|
+
/* NodeTypes.Linked */
|
|
1207
|
+
);
|
|
1208
|
+
}
|
|
1209
|
+
function he(e, t, n) {
|
|
1210
|
+
for (let a = 0; a < t.length; a++) {
|
|
1211
|
+
const s = t[a];
|
|
1212
|
+
if (me(e, s) && e[s] != null)
|
|
1213
|
+
return e[s];
|
|
1214
|
+
}
|
|
1215
|
+
return n;
|
|
1216
|
+
}
|
|
1217
|
+
const fr = [
|
|
1218
|
+
...rr,
|
|
1219
|
+
...ar,
|
|
1220
|
+
...sr,
|
|
1221
|
+
...lr,
|
|
1222
|
+
...ur,
|
|
1223
|
+
...cr,
|
|
1224
|
+
...ir,
|
|
1225
|
+
...or
|
|
1226
|
+
];
|
|
1227
|
+
function ct(e) {
|
|
1228
|
+
return new Error(`unhandled node type: ${e}`);
|
|
1229
|
+
}
|
|
1230
|
+
const Ae = [];
|
|
1231
|
+
Ae[
|
|
1232
|
+
0
|
|
1233
|
+
/* States.BEFORE_PATH */
|
|
1234
|
+
] = {
|
|
1235
|
+
w: [
|
|
1236
|
+
0
|
|
1237
|
+
/* States.BEFORE_PATH */
|
|
1238
|
+
],
|
|
1239
|
+
i: [
|
|
1240
|
+
3,
|
|
1241
|
+
0
|
|
1242
|
+
/* Actions.APPEND */
|
|
1243
|
+
],
|
|
1244
|
+
"[": [
|
|
1245
|
+
4
|
|
1246
|
+
/* States.IN_SUB_PATH */
|
|
1247
|
+
],
|
|
1248
|
+
o: [
|
|
1249
|
+
7
|
|
1250
|
+
/* States.AFTER_PATH */
|
|
1251
|
+
]
|
|
1252
|
+
};
|
|
1253
|
+
Ae[
|
|
1254
|
+
1
|
|
1255
|
+
/* States.IN_PATH */
|
|
1256
|
+
] = {
|
|
1257
|
+
w: [
|
|
1258
|
+
1
|
|
1259
|
+
/* States.IN_PATH */
|
|
1260
|
+
],
|
|
1261
|
+
".": [
|
|
1262
|
+
2
|
|
1263
|
+
/* States.BEFORE_IDENT */
|
|
1264
|
+
],
|
|
1265
|
+
"[": [
|
|
1266
|
+
4
|
|
1267
|
+
/* States.IN_SUB_PATH */
|
|
1268
|
+
],
|
|
1269
|
+
o: [
|
|
1270
|
+
7
|
|
1271
|
+
/* States.AFTER_PATH */
|
|
1272
|
+
]
|
|
1273
|
+
};
|
|
1274
|
+
Ae[
|
|
1275
|
+
2
|
|
1276
|
+
/* States.BEFORE_IDENT */
|
|
1277
|
+
] = {
|
|
1278
|
+
w: [
|
|
1279
|
+
2
|
|
1280
|
+
/* States.BEFORE_IDENT */
|
|
1281
|
+
],
|
|
1282
|
+
i: [
|
|
1283
|
+
3,
|
|
1284
|
+
0
|
|
1285
|
+
/* Actions.APPEND */
|
|
1286
|
+
],
|
|
1287
|
+
0: [
|
|
1288
|
+
3,
|
|
1289
|
+
0
|
|
1290
|
+
/* Actions.APPEND */
|
|
1291
|
+
]
|
|
1292
|
+
};
|
|
1293
|
+
Ae[
|
|
1294
|
+
3
|
|
1295
|
+
/* States.IN_IDENT */
|
|
1296
|
+
] = {
|
|
1297
|
+
i: [
|
|
1298
|
+
3,
|
|
1299
|
+
0
|
|
1300
|
+
/* Actions.APPEND */
|
|
1301
|
+
],
|
|
1302
|
+
0: [
|
|
1303
|
+
3,
|
|
1304
|
+
0
|
|
1305
|
+
/* Actions.APPEND */
|
|
1306
|
+
],
|
|
1307
|
+
w: [
|
|
1308
|
+
1,
|
|
1309
|
+
1
|
|
1310
|
+
/* Actions.PUSH */
|
|
1311
|
+
],
|
|
1312
|
+
".": [
|
|
1313
|
+
2,
|
|
1314
|
+
1
|
|
1315
|
+
/* Actions.PUSH */
|
|
1316
|
+
],
|
|
1317
|
+
"[": [
|
|
1318
|
+
4,
|
|
1319
|
+
1
|
|
1320
|
+
/* Actions.PUSH */
|
|
1321
|
+
],
|
|
1322
|
+
o: [
|
|
1323
|
+
7,
|
|
1324
|
+
1
|
|
1325
|
+
/* Actions.PUSH */
|
|
1326
|
+
]
|
|
1327
|
+
};
|
|
1328
|
+
Ae[
|
|
1329
|
+
4
|
|
1330
|
+
/* States.IN_SUB_PATH */
|
|
1331
|
+
] = {
|
|
1332
|
+
"'": [
|
|
1333
|
+
5,
|
|
1334
|
+
0
|
|
1335
|
+
/* Actions.APPEND */
|
|
1336
|
+
],
|
|
1337
|
+
'"': [
|
|
1338
|
+
6,
|
|
1339
|
+
0
|
|
1340
|
+
/* Actions.APPEND */
|
|
1341
|
+
],
|
|
1342
|
+
"[": [
|
|
1343
|
+
4,
|
|
1344
|
+
2
|
|
1345
|
+
/* Actions.INC_SUB_PATH_DEPTH */
|
|
1346
|
+
],
|
|
1347
|
+
"]": [
|
|
1348
|
+
1,
|
|
1349
|
+
3
|
|
1350
|
+
/* Actions.PUSH_SUB_PATH */
|
|
1351
|
+
],
|
|
1352
|
+
o: 8,
|
|
1353
|
+
l: [
|
|
1354
|
+
4,
|
|
1355
|
+
0
|
|
1356
|
+
/* Actions.APPEND */
|
|
1357
|
+
]
|
|
1358
|
+
};
|
|
1359
|
+
Ae[
|
|
1360
|
+
5
|
|
1361
|
+
/* States.IN_SINGLE_QUOTE */
|
|
1362
|
+
] = {
|
|
1363
|
+
"'": [
|
|
1364
|
+
4,
|
|
1365
|
+
0
|
|
1366
|
+
/* Actions.APPEND */
|
|
1367
|
+
],
|
|
1368
|
+
o: 8,
|
|
1369
|
+
l: [
|
|
1370
|
+
5,
|
|
1371
|
+
0
|
|
1372
|
+
/* Actions.APPEND */
|
|
1373
|
+
]
|
|
1374
|
+
};
|
|
1375
|
+
Ae[
|
|
1376
|
+
6
|
|
1377
|
+
/* States.IN_DOUBLE_QUOTE */
|
|
1378
|
+
] = {
|
|
1379
|
+
'"': [
|
|
1380
|
+
4,
|
|
1381
|
+
0
|
|
1382
|
+
/* Actions.APPEND */
|
|
1383
|
+
],
|
|
1384
|
+
o: 8,
|
|
1385
|
+
l: [
|
|
1386
|
+
6,
|
|
1387
|
+
0
|
|
1388
|
+
/* Actions.APPEND */
|
|
1389
|
+
]
|
|
1390
|
+
};
|
|
1391
|
+
const ls = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1392
|
+
function os(e) {
|
|
1393
|
+
return ls.test(e);
|
|
1394
|
+
}
|
|
1395
|
+
function is(e) {
|
|
1396
|
+
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
1397
|
+
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1398
|
+
}
|
|
1399
|
+
function cs(e) {
|
|
1400
|
+
if (e == null)
|
|
1401
|
+
return "o";
|
|
1402
|
+
switch (e.charCodeAt(0)) {
|
|
1403
|
+
case 91:
|
|
1404
|
+
case 93:
|
|
1405
|
+
case 46:
|
|
1406
|
+
case 34:
|
|
1407
|
+
case 39:
|
|
1408
|
+
return e;
|
|
1409
|
+
case 95:
|
|
1410
|
+
case 36:
|
|
1411
|
+
case 45:
|
|
1412
|
+
return "i";
|
|
1413
|
+
case 9:
|
|
1414
|
+
case 10:
|
|
1415
|
+
case 13:
|
|
1416
|
+
case 160:
|
|
1417
|
+
case 65279:
|
|
1418
|
+
case 8232:
|
|
1419
|
+
case 8233:
|
|
1420
|
+
return "w";
|
|
1421
|
+
}
|
|
1422
|
+
return "i";
|
|
1423
|
+
}
|
|
1424
|
+
function us(e) {
|
|
1425
|
+
const t = e.trim();
|
|
1426
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : os(t) ? is(t) : "*" + t;
|
|
1427
|
+
}
|
|
1428
|
+
function fs(e) {
|
|
1429
|
+
const t = [];
|
|
1430
|
+
let n = -1, a = 0, s = 0, r, l, o, u, _, p, T;
|
|
1431
|
+
const d = [];
|
|
1432
|
+
d[
|
|
1433
|
+
0
|
|
1434
|
+
/* Actions.APPEND */
|
|
1435
|
+
] = () => {
|
|
1436
|
+
l === void 0 ? l = o : l += o;
|
|
1437
|
+
}, d[
|
|
1438
|
+
1
|
|
1439
|
+
/* Actions.PUSH */
|
|
1440
|
+
] = () => {
|
|
1441
|
+
l !== void 0 && (t.push(l), l = void 0);
|
|
1442
|
+
}, d[
|
|
1443
|
+
2
|
|
1444
|
+
/* Actions.INC_SUB_PATH_DEPTH */
|
|
1445
|
+
] = () => {
|
|
1446
|
+
d[
|
|
1447
|
+
0
|
|
1448
|
+
/* Actions.APPEND */
|
|
1449
|
+
](), s++;
|
|
1450
|
+
}, d[
|
|
1451
|
+
3
|
|
1452
|
+
/* Actions.PUSH_SUB_PATH */
|
|
1453
|
+
] = () => {
|
|
1454
|
+
if (s > 0)
|
|
1455
|
+
s--, a = 4, d[
|
|
1456
|
+
0
|
|
1457
|
+
/* Actions.APPEND */
|
|
1458
|
+
]();
|
|
1459
|
+
else {
|
|
1460
|
+
if (s = 0, l === void 0 || (l = us(l), l === !1))
|
|
1461
|
+
return !1;
|
|
1462
|
+
d[
|
|
1463
|
+
1
|
|
1464
|
+
/* Actions.PUSH */
|
|
1465
|
+
]();
|
|
1466
|
+
}
|
|
1467
|
+
};
|
|
1468
|
+
function A() {
|
|
1469
|
+
const D = e[n + 1];
|
|
1470
|
+
if (a === 5 && D === "'" || a === 6 && D === '"')
|
|
1471
|
+
return n++, o = "\\" + D, d[
|
|
1472
|
+
0
|
|
1473
|
+
/* Actions.APPEND */
|
|
1474
|
+
](), !0;
|
|
1475
|
+
}
|
|
1476
|
+
for (; a !== null; )
|
|
1477
|
+
if (n++, r = e[n], !(r === "\\" && A())) {
|
|
1478
|
+
if (u = cs(r), T = Ae[a], _ = T[u] || T.l || 8, _ === 8 || (a = _[0], _[1] !== void 0 && (p = d[_[1]], p && (o = r, p() === !1))))
|
|
1479
|
+
return;
|
|
1480
|
+
if (a === 7)
|
|
1481
|
+
return t;
|
|
1482
|
+
}
|
|
1483
|
+
}
|
|
1484
|
+
const Nn = /* @__PURE__ */ new Map();
|
|
1485
|
+
function _s(e, t) {
|
|
1486
|
+
return V(e) ? e[t] : null;
|
|
1487
|
+
}
|
|
1488
|
+
function ms(e, t) {
|
|
1489
|
+
if (!V(e))
|
|
1490
|
+
return null;
|
|
1491
|
+
let n = Nn.get(t);
|
|
1492
|
+
if (n || (n = fs(t), n && Nn.set(t, n)), !n)
|
|
1493
|
+
return null;
|
|
1494
|
+
const a = n.length;
|
|
1495
|
+
let s = e, r = 0;
|
|
1496
|
+
for (; r < a; ) {
|
|
1497
|
+
const l = n[r];
|
|
1498
|
+
if (fr.includes(l) && fe(s))
|
|
1499
|
+
return null;
|
|
1500
|
+
const o = s[l];
|
|
1501
|
+
if (o === void 0 || x(s))
|
|
1502
|
+
return null;
|
|
1503
|
+
s = o, r++;
|
|
1504
|
+
}
|
|
1505
|
+
return s;
|
|
1506
|
+
}
|
|
1507
|
+
const ds = (e) => e, Es = (e) => "", gs = "text", Ns = (e) => e.length === 0 ? "" : Ta(e), ps = pa;
|
|
1508
|
+
function pn(e, t) {
|
|
1509
|
+
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1510
|
+
}
|
|
1511
|
+
function Ts(e) {
|
|
1512
|
+
const t = q(e.pluralIndex) ? e.pluralIndex : -1;
|
|
1513
|
+
return e.named && (q(e.named.count) || q(e.named.n)) ? q(e.named.count) ? e.named.count : q(e.named.n) ? e.named.n : t : t;
|
|
1514
|
+
}
|
|
1515
|
+
function Os(e, t) {
|
|
1516
|
+
t.count || (t.count = e), t.n || (t.n = e);
|
|
1517
|
+
}
|
|
1518
|
+
function Ls(e = {}) {
|
|
1519
|
+
const t = e.locale, n = Ts(e), a = V(e.pluralRules) && h(t) && x(e.pluralRules[t]) ? e.pluralRules[t] : pn, s = V(e.pluralRules) && h(t) && x(e.pluralRules[t]) ? pn : void 0, r = (y) => y[a(n, y.length, s)], l = e.list || [], o = (y) => l[y], u = e.named || Y();
|
|
1520
|
+
q(e.pluralIndex) && Os(n, u);
|
|
1521
|
+
const _ = (y) => u[y];
|
|
1522
|
+
function p(y) {
|
|
1523
|
+
const R = x(e.messages) ? e.messages(y) : V(e.messages) ? e.messages[y] : !1;
|
|
1524
|
+
return R || (e.parent ? e.parent.message(y) : Es);
|
|
1525
|
+
}
|
|
1526
|
+
const T = (y) => e.modifiers ? e.modifiers[y] : ds, d = F(e.processor) && x(e.processor.normalize) ? e.processor.normalize : Ns, A = F(e.processor) && x(e.processor.interpolate) ? e.processor.interpolate : ps, D = F(e.processor) && h(e.processor.type) ? e.processor.type : gs, S = {
|
|
1527
|
+
list: o,
|
|
1528
|
+
named: _,
|
|
1529
|
+
plural: r,
|
|
1530
|
+
linked: (y, ...R) => {
|
|
1531
|
+
const [f, E] = R;
|
|
1532
|
+
let L = "text", g = "";
|
|
1533
|
+
R.length === 1 ? V(f) ? (g = f.modifier || g, L = f.type || L) : h(f) && (g = f || g) : R.length === 2 && (h(f) && (g = f || g), h(E) && (L = E || L));
|
|
1534
|
+
const v = p(y)(S), C = (
|
|
1535
|
+
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1536
|
+
L === "vnode" && K(v) && g ? v[0] : v
|
|
1537
|
+
);
|
|
1538
|
+
return g ? T(g)(C, L) : C;
|
|
1539
|
+
},
|
|
1540
|
+
message: p,
|
|
1541
|
+
type: D,
|
|
1542
|
+
interpolate: A,
|
|
1543
|
+
normalize: d,
|
|
1544
|
+
values: te(Y(), l, u)
|
|
1545
|
+
};
|
|
1546
|
+
return S;
|
|
1547
|
+
}
|
|
1548
|
+
let ut = null;
|
|
1549
|
+
function vs(e) {
|
|
1550
|
+
ut = e;
|
|
1551
|
+
}
|
|
1552
|
+
function Is(e, t, n) {
|
|
1553
|
+
ut && ut.emit("i18n:init", {
|
|
1554
|
+
timestamp: Date.now(),
|
|
1555
|
+
i18n: e,
|
|
1556
|
+
version: t,
|
|
1557
|
+
meta: n
|
|
1558
|
+
});
|
|
1559
|
+
}
|
|
1560
|
+
const bs = /* @__PURE__ */ hs(
|
|
1561
|
+
"function:translate"
|
|
1562
|
+
/* IntlifyDevToolsHooks.FunctionTranslate */
|
|
1563
|
+
);
|
|
1564
|
+
function hs(e) {
|
|
1565
|
+
return (t) => ut && ut.emit(e, t);
|
|
1566
|
+
}
|
|
1567
|
+
const _r = At.__EXTEND_POINT__, Se = ht(_r), ae = {
|
|
1568
|
+
NOT_FOUND_KEY: _r,
|
|
1569
|
+
// 2
|
|
1570
|
+
FALLBACK_TO_TRANSLATE: Se(),
|
|
1571
|
+
// 3
|
|
1572
|
+
CANNOT_FORMAT_NUMBER: Se(),
|
|
1573
|
+
// 4
|
|
1574
|
+
FALLBACK_TO_NUMBER_FORMAT: Se(),
|
|
1575
|
+
// 5
|
|
1576
|
+
CANNOT_FORMAT_DATE: Se(),
|
|
1577
|
+
// 6
|
|
1578
|
+
FALLBACK_TO_DATE_FORMAT: Se(),
|
|
1579
|
+
// 7
|
|
1580
|
+
EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: Se(),
|
|
1581
|
+
// 8
|
|
1582
|
+
__EXTEND_POINT__: Se()
|
|
1583
|
+
// 9
|
|
1584
|
+
}, As = {
|
|
1585
|
+
[ae.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
|
|
1586
|
+
[ae.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
|
|
1587
|
+
[ae.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
|
|
1588
|
+
[ae.FALLBACK_TO_NUMBER_FORMAT]: "Fall back to number format '{key}' key with '{target}' locale.",
|
|
1589
|
+
[ae.CANNOT_FORMAT_DATE]: "Cannot format a date value due to not supported Intl.DateTimeFormat.",
|
|
1590
|
+
[ae.FALLBACK_TO_DATE_FORMAT]: "Fall back to datetime format '{key}' key with '{target}' locale.",
|
|
1591
|
+
[ae.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."
|
|
1592
|
+
};
|
|
1593
|
+
function ye(e, ...t) {
|
|
1594
|
+
return Xt(As[e], ...t);
|
|
1595
|
+
}
|
|
1596
|
+
const mr = M.__EXTEND_POINT__, De = ht(mr), ee = {
|
|
1597
|
+
INVALID_ARGUMENT: mr,
|
|
1598
|
+
// 17
|
|
1599
|
+
INVALID_DATE_ARGUMENT: De(),
|
|
1600
|
+
// 18
|
|
1601
|
+
INVALID_ISO_DATE_ARGUMENT: De(),
|
|
1602
|
+
// 19
|
|
1603
|
+
NOT_SUPPORT_NON_STRING_MESSAGE: De(),
|
|
1604
|
+
// 20
|
|
1605
|
+
NOT_SUPPORT_LOCALE_PROMISE_VALUE: De(),
|
|
1606
|
+
// 21
|
|
1607
|
+
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: De(),
|
|
1608
|
+
// 22
|
|
1609
|
+
NOT_SUPPORT_LOCALE_TYPE: De(),
|
|
1610
|
+
// 23
|
|
1611
|
+
__EXTEND_POINT__: De()
|
|
1612
|
+
// 24
|
|
1613
|
+
};
|
|
1614
|
+
function Ne(e) {
|
|
1615
|
+
return Ye(e, null, process.env.NODE_ENV !== "production" ? { messages: Cs } : void 0);
|
|
1616
|
+
}
|
|
1617
|
+
const Cs = {
|
|
1618
|
+
[ee.INVALID_ARGUMENT]: "Invalid arguments",
|
|
1619
|
+
[ee.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
|
|
1620
|
+
[ee.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
|
|
1621
|
+
[ee.NOT_SUPPORT_NON_STRING_MESSAGE]: "Not support non-string message",
|
|
1622
|
+
[ee.NOT_SUPPORT_LOCALE_PROMISE_VALUE]: "cannot support promise value",
|
|
1623
|
+
[ee.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: "cannot support async function",
|
|
1624
|
+
[ee.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
|
|
1625
|
+
};
|
|
1626
|
+
function Zt(e, t) {
|
|
1627
|
+
return t.locale != null ? Tn(t.locale) : Tn(e.locale);
|
|
1628
|
+
}
|
|
1629
|
+
let Rt;
|
|
1630
|
+
function Tn(e) {
|
|
1631
|
+
if (h(e))
|
|
1632
|
+
return e;
|
|
1633
|
+
if (x(e)) {
|
|
1634
|
+
if (e.resolvedOnce && Rt != null)
|
|
1635
|
+
return Rt;
|
|
1636
|
+
if (e.constructor.name === "Function") {
|
|
1637
|
+
const t = e();
|
|
1638
|
+
if (Na(t))
|
|
1639
|
+
throw Ne(ee.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1640
|
+
return Rt = t;
|
|
1641
|
+
} else
|
|
1642
|
+
throw Ne(ee.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
1643
|
+
} else
|
|
1644
|
+
throw Ne(ee.NOT_SUPPORT_LOCALE_TYPE);
|
|
1645
|
+
}
|
|
1646
|
+
function Ps(e, t, n) {
|
|
1647
|
+
return [.../* @__PURE__ */ new Set([
|
|
1648
|
+
n,
|
|
1649
|
+
...K(t) ? t : V(t) ? Object.keys(t) : h(t) ? [t] : [n]
|
|
1650
|
+
])];
|
|
1651
|
+
}
|
|
1652
|
+
function dr(e, t, n) {
|
|
1653
|
+
const a = h(n) ? n : xe, s = e;
|
|
1654
|
+
s.__localeChainCache || (s.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1655
|
+
let r = s.__localeChainCache.get(a);
|
|
1656
|
+
if (!r) {
|
|
1657
|
+
r = [];
|
|
1658
|
+
let l = [n];
|
|
1659
|
+
for (; K(l); )
|
|
1660
|
+
l = On(r, l, t);
|
|
1661
|
+
const o = K(t) || !F(t) ? t : t.default ? t.default : null;
|
|
1662
|
+
l = h(o) ? [o] : o, K(l) && On(r, l, !1), s.__localeChainCache.set(a, r);
|
|
1663
|
+
}
|
|
1664
|
+
return r;
|
|
1665
|
+
}
|
|
1666
|
+
function On(e, t, n) {
|
|
1667
|
+
let a = !0;
|
|
1668
|
+
for (let s = 0; s < t.length && U(a); s++) {
|
|
1669
|
+
const r = t[s];
|
|
1670
|
+
h(r) && (a = Ss(e, t[s], n));
|
|
1671
|
+
}
|
|
1672
|
+
return a;
|
|
1673
|
+
}
|
|
1674
|
+
function Ss(e, t, n) {
|
|
1675
|
+
let a;
|
|
1676
|
+
const s = t.split("-");
|
|
1677
|
+
do {
|
|
1678
|
+
const r = s.join("-");
|
|
1679
|
+
a = Ds(e, r, n), s.splice(-1, 1);
|
|
1680
|
+
} while (s.length && a === !0);
|
|
1681
|
+
return a;
|
|
1682
|
+
}
|
|
1683
|
+
function Ds(e, t, n) {
|
|
1684
|
+
let a = !1;
|
|
1685
|
+
if (!e.includes(t) && (a = !0, t)) {
|
|
1686
|
+
a = t[t.length - 1] !== "!";
|
|
1687
|
+
const s = t.replace(/!/g, "");
|
|
1688
|
+
e.push(s), (K(n) || F(n)) && n[s] && (a = n[s]);
|
|
1689
|
+
}
|
|
1690
|
+
return a;
|
|
1691
|
+
}
|
|
1692
|
+
const Rs = "9.14.5", Ct = -1, xe = "en-US", It = "", Ln = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1693
|
+
function ks() {
|
|
1694
|
+
return {
|
|
1695
|
+
upper: (e, t) => t === "text" && h(e) ? e.toUpperCase() : t === "vnode" && V(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1696
|
+
lower: (e, t) => t === "text" && h(e) ? e.toLowerCase() : t === "vnode" && V(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1697
|
+
capitalize: (e, t) => t === "text" && h(e) ? Ln(e) : t === "vnode" && V(e) && "__v_isVNode" in e ? Ln(e.children) : e
|
|
1698
|
+
};
|
|
1699
|
+
}
|
|
1700
|
+
let Er;
|
|
1701
|
+
function vn(e) {
|
|
1702
|
+
Er = e;
|
|
1703
|
+
}
|
|
1704
|
+
let gr;
|
|
1705
|
+
function ys(e) {
|
|
1706
|
+
gr = e;
|
|
1707
|
+
}
|
|
1708
|
+
let Nr;
|
|
1709
|
+
function Ms(e) {
|
|
1710
|
+
Nr = e;
|
|
1711
|
+
}
|
|
1712
|
+
let pr = null;
|
|
1713
|
+
const Fs = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
1714
|
+
pr = e;
|
|
1715
|
+
}, Us = /* @__NO_SIDE_EFFECTS__ */ () => pr;
|
|
1716
|
+
let Tr = null;
|
|
1717
|
+
const In = (e) => {
|
|
1718
|
+
Tr = e;
|
|
1719
|
+
}, ws = () => Tr;
|
|
1720
|
+
let bn = 0;
|
|
1721
|
+
function Vs(e = {}) {
|
|
1722
|
+
const t = x(e.onWarn) ? e.onWarn : Z, n = h(e.version) ? e.version : Rs, a = h(e.locale) || x(e.locale) ? e.locale : xe, s = x(a) ? xe : a, r = K(e.fallbackLocale) || F(e.fallbackLocale) || h(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s, l = F(e.messages) ? e.messages : kt(s), o = F(e.datetimeFormats) ? e.datetimeFormats : kt(s), u = F(e.numberFormats) ? e.numberFormats : kt(s), _ = te(Y(), e.modifiers, ks()), p = e.pluralRules || Y(), T = x(e.missing) ? e.missing : null, d = U(e.missingWarn) || be(e.missingWarn) ? e.missingWarn : !0, A = U(e.fallbackWarn) || be(e.fallbackWarn) ? e.fallbackWarn : !0, D = !!e.fallbackFormat, P = !!e.unresolving, S = x(e.postTranslation) ? e.postTranslation : null, y = F(e.processor) ? e.processor : null, R = U(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, f = !!e.escapeParameter, E = x(e.messageCompiler) ? e.messageCompiler : Er;
|
|
1723
|
+
process.env.NODE_ENV !== "production" && x(e.messageCompiler) && qn(ye(ae.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
1724
|
+
const L = x(e.messageResolver) ? e.messageResolver : gr || _s, g = x(e.localeFallbacker) ? e.localeFallbacker : Nr || Ps, v = V(e.fallbackContext) ? e.fallbackContext : void 0, C = e, I = V(C.__datetimeFormatters) ? C.__datetimeFormatters : /* @__PURE__ */ new Map(), j = V(C.__numberFormatters) ? C.__numberFormatters : /* @__PURE__ */ new Map(), oe = V(C.__meta) ? C.__meta : {};
|
|
1725
|
+
bn++;
|
|
1726
|
+
const w = {
|
|
1727
|
+
version: n,
|
|
1728
|
+
cid: bn,
|
|
1729
|
+
locale: a,
|
|
1730
|
+
fallbackLocale: r,
|
|
1731
|
+
messages: l,
|
|
1732
|
+
modifiers: _,
|
|
1733
|
+
pluralRules: p,
|
|
1734
|
+
missing: T,
|
|
1735
|
+
missingWarn: d,
|
|
1736
|
+
fallbackWarn: A,
|
|
1737
|
+
fallbackFormat: D,
|
|
1738
|
+
unresolving: P,
|
|
1739
|
+
postTranslation: S,
|
|
1740
|
+
processor: y,
|
|
1741
|
+
warnHtmlMessage: R,
|
|
1742
|
+
escapeParameter: f,
|
|
1743
|
+
messageCompiler: E,
|
|
1744
|
+
messageResolver: L,
|
|
1745
|
+
localeFallbacker: g,
|
|
1746
|
+
fallbackContext: v,
|
|
1747
|
+
onWarn: t,
|
|
1748
|
+
__meta: oe
|
|
1749
|
+
};
|
|
1750
|
+
return w.datetimeFormats = o, w.numberFormats = u, w.__datetimeFormatters = I, w.__numberFormatters = j, process.env.NODE_ENV !== "production" && (w.__v_emitter = C.__v_emitter != null ? C.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && Is(w, n, oe), w;
|
|
1751
|
+
}
|
|
1752
|
+
const kt = (e) => ({ [e]: Y() });
|
|
1753
|
+
function Pt(e, t) {
|
|
1754
|
+
return e instanceof RegExp ? e.test(t) : e;
|
|
1755
|
+
}
|
|
1756
|
+
function Or(e, t) {
|
|
1757
|
+
return e instanceof RegExp ? e.test(t) : e;
|
|
1758
|
+
}
|
|
1759
|
+
function zt(e, t, n, a, s) {
|
|
1760
|
+
const { missing: r, onWarn: l } = e;
|
|
1761
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1762
|
+
const o = e.__v_emitter;
|
|
1763
|
+
o && o.emit("missing", {
|
|
1764
|
+
locale: n,
|
|
1765
|
+
key: t,
|
|
1766
|
+
type: s,
|
|
1767
|
+
groupId: `${s}:${t}`
|
|
1768
|
+
});
|
|
1769
|
+
}
|
|
1770
|
+
if (r !== null) {
|
|
1771
|
+
const o = r(e, n, t, s);
|
|
1772
|
+
return h(o) ? o : t;
|
|
1773
|
+
} else
|
|
1774
|
+
return process.env.NODE_ENV !== "production" && Or(a, t) && l(ye(ae.NOT_FOUND_KEY, { key: t, locale: n })), t;
|
|
1775
|
+
}
|
|
1776
|
+
function ot(e, t, n) {
|
|
1777
|
+
const a = e;
|
|
1778
|
+
a.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
1779
|
+
}
|
|
1780
|
+
function Lr(e, t) {
|
|
1781
|
+
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
1782
|
+
}
|
|
1783
|
+
function $s(e, t) {
|
|
1784
|
+
const n = t.indexOf(e);
|
|
1785
|
+
if (n === -1)
|
|
1786
|
+
return !1;
|
|
1787
|
+
for (let a = n + 1; a < t.length; a++)
|
|
1788
|
+
if (Lr(e, t[a]))
|
|
1789
|
+
return !0;
|
|
1790
|
+
return !1;
|
|
1791
|
+
}
|
|
1792
|
+
function yt(e) {
|
|
1793
|
+
return (n) => Ws(n, e);
|
|
1794
|
+
}
|
|
1795
|
+
function Ws(e, t) {
|
|
1796
|
+
const n = es(t);
|
|
1797
|
+
if (n == null)
|
|
1798
|
+
throw ct(
|
|
1799
|
+
0
|
|
1800
|
+
/* NodeTypes.Resource */
|
|
1801
|
+
);
|
|
1802
|
+
if (qt(n) === 1) {
|
|
1803
|
+
const r = ts(n);
|
|
1804
|
+
return e.plural(r.reduce((l, o) => [
|
|
1805
|
+
...l,
|
|
1806
|
+
hn(e, o)
|
|
1807
|
+
], []));
|
|
1808
|
+
} else
|
|
1809
|
+
return hn(e, n);
|
|
1810
|
+
}
|
|
1811
|
+
function hn(e, t) {
|
|
1812
|
+
const n = ns(t);
|
|
1813
|
+
if (n != null)
|
|
1814
|
+
return e.type === "text" ? n : e.normalize([n]);
|
|
1815
|
+
{
|
|
1816
|
+
const a = rs(t).reduce((s, r) => [...s, wt(e, r)], []);
|
|
1817
|
+
return e.normalize(a);
|
|
1818
|
+
}
|
|
1819
|
+
}
|
|
1820
|
+
function wt(e, t) {
|
|
1821
|
+
const n = qt(t);
|
|
1822
|
+
switch (n) {
|
|
1823
|
+
case 3:
|
|
1824
|
+
return Tt(t, n);
|
|
1825
|
+
case 9:
|
|
1826
|
+
return Tt(t, n);
|
|
1827
|
+
case 4: {
|
|
1828
|
+
const a = t;
|
|
1829
|
+
if (me(a, "k") && a.k)
|
|
1830
|
+
return e.interpolate(e.named(a.k));
|
|
1831
|
+
if (me(a, "key") && a.key)
|
|
1832
|
+
return e.interpolate(e.named(a.key));
|
|
1833
|
+
throw ct(n);
|
|
1834
|
+
}
|
|
1835
|
+
case 5: {
|
|
1836
|
+
const a = t;
|
|
1837
|
+
if (me(a, "i") && q(a.i))
|
|
1838
|
+
return e.interpolate(e.list(a.i));
|
|
1839
|
+
if (me(a, "index") && q(a.index))
|
|
1840
|
+
return e.interpolate(e.list(a.index));
|
|
1841
|
+
throw ct(n);
|
|
1842
|
+
}
|
|
1843
|
+
case 6: {
|
|
1844
|
+
const a = t, s = as(a), r = ss(a);
|
|
1845
|
+
return e.linked(wt(e, r), s ? wt(e, s) : void 0, e.type);
|
|
1846
|
+
}
|
|
1847
|
+
case 7:
|
|
1848
|
+
return Tt(t, n);
|
|
1849
|
+
case 8:
|
|
1850
|
+
return Tt(t, n);
|
|
1851
|
+
default:
|
|
1852
|
+
throw new Error(`unhandled node on format message part: ${n}`);
|
|
1853
|
+
}
|
|
1854
|
+
}
|
|
1855
|
+
const Gs = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
|
|
1856
|
+
function vr(e, t) {
|
|
1857
|
+
t && Sa(e) && Z(Xt(Gs, { source: e }));
|
|
1858
|
+
}
|
|
1859
|
+
const Ir = (e) => e;
|
|
1860
|
+
let Ge = Y();
|
|
1861
|
+
function br(e) {
|
|
1862
|
+
e.code === At.USE_MODULO_SYNTAX && Z(`The use of named interpolation with modulo syntax is deprecated. It will be removed in v10.
|
|
1863
|
+
reference: https://vue-i18n.intlify.dev/guide/essentials/syntax#rails-i18n-format
|
|
1864
|
+
(message compiler warning message: ${e.message})`);
|
|
1865
|
+
}
|
|
1866
|
+
function hr(e, t = {}) {
|
|
1867
|
+
let n = !1;
|
|
1868
|
+
const a = t.onError || Ca;
|
|
1869
|
+
return t.onError = (s) => {
|
|
1870
|
+
n = !0, a(s);
|
|
1871
|
+
}, { ...Za(e, t), detectError: n };
|
|
1872
|
+
}
|
|
1873
|
+
const Hs = /* @__NO_SIDE_EFFECTS__ */ (e, t) => {
|
|
1874
|
+
if (!h(e))
|
|
1875
|
+
throw Ne(ee.NOT_SUPPORT_NON_STRING_MESSAGE);
|
|
1876
|
+
process.env.NODE_ENV !== "production" && (t.onWarn = br);
|
|
1877
|
+
{
|
|
1878
|
+
const n = U(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
|
|
1879
|
+
process.env.NODE_ENV !== "production" && vr(e, n);
|
|
1880
|
+
const s = (t.onCacheKey || Ir)(e), r = Ge[s];
|
|
1881
|
+
if (r)
|
|
1882
|
+
return r;
|
|
1883
|
+
const { code: l, detectError: o } = hr(e, t), u = new Function(`return ${l}`)();
|
|
1884
|
+
return o ? u : Ge[s] = u;
|
|
1885
|
+
}
|
|
1886
|
+
};
|
|
1887
|
+
function xs(e, t) {
|
|
1888
|
+
if (process.env.NODE_ENV !== "production" && (t.onWarn = br), __INTLIFY_JIT_COMPILATION__ && !__INTLIFY_DROP_MESSAGE_COMPILER__ && h(e)) {
|
|
1889
|
+
const n = U(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
|
|
1890
|
+
process.env.NODE_ENV !== "production" && vr(e, n);
|
|
1891
|
+
const s = (t.onCacheKey || Ir)(e), r = Ge[s];
|
|
1892
|
+
if (r)
|
|
1893
|
+
return r;
|
|
1894
|
+
const { ast: l, detectError: o } = hr(e, {
|
|
1895
|
+
...t,
|
|
1896
|
+
location: process.env.NODE_ENV !== "production",
|
|
1897
|
+
jit: !0
|
|
1898
|
+
}), u = yt(l);
|
|
1899
|
+
return o ? u : Ge[s] = u;
|
|
1900
|
+
} else {
|
|
1901
|
+
if (process.env.NODE_ENV !== "production" && !fe(e))
|
|
1902
|
+
return Z(`the message that is resolve with key '${t.key}' is not supported for jit compilation`), () => e;
|
|
1903
|
+
const n = e.cacheKey;
|
|
1904
|
+
if (n) {
|
|
1905
|
+
const a = Ge[n];
|
|
1906
|
+
return a || (Ge[n] = yt(e));
|
|
1907
|
+
} else
|
|
1908
|
+
return yt(e);
|
|
1909
|
+
}
|
|
1910
|
+
}
|
|
1911
|
+
const An = () => "", ue = (e) => x(e);
|
|
1912
|
+
function Cn(e, ...t) {
|
|
1913
|
+
const { fallbackFormat: n, postTranslation: a, unresolving: s, messageCompiler: r, fallbackLocale: l, messages: o } = e, [u, _] = Vt(...t), p = U(_.missingWarn) ? _.missingWarn : e.missingWarn, T = U(_.fallbackWarn) ? _.fallbackWarn : e.fallbackWarn, d = U(_.escapeParameter) ? _.escapeParameter : e.escapeParameter, A = !!_.resolvedMessage, D = h(_.default) || U(_.default) ? U(_.default) ? r ? u : () => u : _.default : n ? r ? u : () => u : "", P = n || D !== "", S = Zt(e, _);
|
|
1914
|
+
d && Ys(_);
|
|
1915
|
+
let [y, R, f] = A ? [
|
|
1916
|
+
u,
|
|
1917
|
+
S,
|
|
1918
|
+
o[S] || Y()
|
|
1919
|
+
] : Ar(e, u, S, l, T, p), E = y, L = u;
|
|
1920
|
+
if (!A && !(h(E) || fe(E) || ue(E)) && P && (E = D, L = E), !A && (!(h(E) || fe(E) || ue(E)) || !h(R)))
|
|
1921
|
+
return s ? Ct : u;
|
|
1922
|
+
if (process.env.NODE_ENV !== "production" && h(E) && e.messageCompiler == null)
|
|
1923
|
+
return Z(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${u}'.`), u;
|
|
1924
|
+
let g = !1;
|
|
1925
|
+
const v = () => {
|
|
1926
|
+
g = !0;
|
|
1927
|
+
}, C = ue(E) ? E : Cr(e, u, R, E, L, v);
|
|
1928
|
+
if (g)
|
|
1929
|
+
return E;
|
|
1930
|
+
const I = Xs(e, R, f, _), j = Ls(I), oe = Bs(e, C, j);
|
|
1931
|
+
let w = a ? a(oe, u) : oe;
|
|
1932
|
+
if (d && h(w) && (w = Ea(w)), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
1933
|
+
const ne = {
|
|
1934
|
+
timestamp: Date.now(),
|
|
1935
|
+
key: h(u) ? u : ue(E) ? E.key : "",
|
|
1936
|
+
locale: R || (ue(E) ? E.locale : ""),
|
|
1937
|
+
format: h(E) ? E : ue(E) ? E.source : "",
|
|
1938
|
+
message: w
|
|
1939
|
+
};
|
|
1940
|
+
ne.meta = te({}, e.__meta, /* @__PURE__ */ Us() || {}), bs(ne);
|
|
1941
|
+
}
|
|
1942
|
+
return w;
|
|
1943
|
+
}
|
|
1944
|
+
function Ys(e) {
|
|
1945
|
+
K(e.list) ? e.list = e.list.map((t) => h(t) ? un(t) : t) : V(e.named) && Object.keys(e.named).forEach((t) => {
|
|
1946
|
+
h(e.named[t]) && (e.named[t] = un(e.named[t]));
|
|
1947
|
+
});
|
|
1948
|
+
}
|
|
1949
|
+
function Ar(e, t, n, a, s, r) {
|
|
1950
|
+
const { messages: l, onWarn: o, messageResolver: u, localeFallbacker: _ } = e, p = _(e, a, n);
|
|
1951
|
+
let T = Y(), d, A = null, D = n, P = null;
|
|
1952
|
+
const S = "translate";
|
|
1953
|
+
for (let y = 0; y < p.length; y++) {
|
|
1954
|
+
if (d = P = p[y], process.env.NODE_ENV !== "production" && n !== d && !Lr(n, d) && Pt(s, t) && o(ye(ae.FALLBACK_TO_TRANSLATE, {
|
|
1955
|
+
key: t,
|
|
1956
|
+
target: d
|
|
1957
|
+
})), process.env.NODE_ENV !== "production" && n !== d) {
|
|
1958
|
+
const L = e.__v_emitter;
|
|
1959
|
+
L && L.emit("fallback", {
|
|
1960
|
+
type: S,
|
|
1961
|
+
key: t,
|
|
1962
|
+
from: D,
|
|
1963
|
+
to: P,
|
|
1964
|
+
groupId: `${S}:${t}`
|
|
1965
|
+
});
|
|
1966
|
+
}
|
|
1967
|
+
T = l[d] || Y();
|
|
1968
|
+
let R = null, f, E;
|
|
1969
|
+
if (process.env.NODE_ENV !== "production" && de && (R = window.performance.now(), f = "intlify-message-resolve-start", E = "intlify-message-resolve-end", ie && ie(f)), (A = u(T, t)) === null && (A = T[t]), process.env.NODE_ENV !== "production" && de) {
|
|
1970
|
+
const L = window.performance.now(), g = e.__v_emitter;
|
|
1971
|
+
g && R && A && g.emit("message-resolve", {
|
|
1972
|
+
type: "message-resolve",
|
|
1973
|
+
key: t,
|
|
1974
|
+
message: A,
|
|
1975
|
+
time: L - R,
|
|
1976
|
+
groupId: `${S}:${t}`
|
|
1977
|
+
}), f && E && ie && ke && (ie(E), ke("intlify message resolve", f, E));
|
|
1978
|
+
}
|
|
1979
|
+
if (h(A) || fe(A) || ue(A))
|
|
1980
|
+
break;
|
|
1981
|
+
if (!$s(d, p)) {
|
|
1982
|
+
const L = zt(
|
|
1983
|
+
e,
|
|
1984
|
+
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1985
|
+
t,
|
|
1986
|
+
d,
|
|
1987
|
+
r,
|
|
1988
|
+
S
|
|
1989
|
+
);
|
|
1990
|
+
L !== t && (A = L);
|
|
1991
|
+
}
|
|
1992
|
+
D = P;
|
|
1993
|
+
}
|
|
1994
|
+
return [A, d, T];
|
|
1995
|
+
}
|
|
1996
|
+
function Cr(e, t, n, a, s, r) {
|
|
1997
|
+
const { messageCompiler: l, warnHtmlMessage: o } = e;
|
|
1998
|
+
if (ue(a)) {
|
|
1999
|
+
const d = a;
|
|
2000
|
+
return d.locale = d.locale || n, d.key = d.key || t, d;
|
|
2001
|
+
}
|
|
2002
|
+
if (l == null) {
|
|
2003
|
+
const d = () => a;
|
|
2004
|
+
return d.locale = n, d.key = t, d;
|
|
2005
|
+
}
|
|
2006
|
+
let u = null, _, p;
|
|
2007
|
+
process.env.NODE_ENV !== "production" && de && (u = window.performance.now(), _ = "intlify-message-compilation-start", p = "intlify-message-compilation-end", ie && ie(_));
|
|
2008
|
+
const T = l(a, js(e, n, s, a, o, r));
|
|
2009
|
+
if (process.env.NODE_ENV !== "production" && de) {
|
|
2010
|
+
const d = window.performance.now(), A = e.__v_emitter;
|
|
2011
|
+
A && u && A.emit("message-compilation", {
|
|
2012
|
+
type: "message-compilation",
|
|
2013
|
+
message: a,
|
|
2014
|
+
time: d - u,
|
|
2015
|
+
groupId: `translate:${t}`
|
|
2016
|
+
}), _ && p && ie && ke && (ie(p), ke("intlify message compilation", _, p));
|
|
2017
|
+
}
|
|
2018
|
+
return T.locale = n, T.key = t, T.source = a, T;
|
|
2019
|
+
}
|
|
2020
|
+
function Bs(e, t, n) {
|
|
2021
|
+
let a = null, s, r;
|
|
2022
|
+
process.env.NODE_ENV !== "production" && de && (a = window.performance.now(), s = "intlify-message-evaluation-start", r = "intlify-message-evaluation-end", ie && ie(s));
|
|
2023
|
+
const l = t(n);
|
|
2024
|
+
if (process.env.NODE_ENV !== "production" && de) {
|
|
2025
|
+
const o = window.performance.now(), u = e.__v_emitter;
|
|
2026
|
+
u && a && u.emit("message-evaluation", {
|
|
2027
|
+
type: "message-evaluation",
|
|
2028
|
+
value: l,
|
|
2029
|
+
time: o - a,
|
|
2030
|
+
groupId: `translate:${t.key}`
|
|
2031
|
+
}), s && r && ie && ke && (ie(r), ke("intlify message evaluation", s, r));
|
|
2032
|
+
}
|
|
2033
|
+
return l;
|
|
2034
|
+
}
|
|
2035
|
+
function Vt(...e) {
|
|
2036
|
+
const [t, n, a] = e, s = Y();
|
|
2037
|
+
if (!h(t) && !q(t) && !ue(t) && !fe(t))
|
|
2038
|
+
throw Ne(ee.INVALID_ARGUMENT);
|
|
2039
|
+
const r = q(t) ? String(t) : (ue(t), t);
|
|
2040
|
+
return q(n) ? s.plural = n : h(n) ? s.default = n : F(n) && !bt(n) ? s.named = n : K(n) && (s.list = n), q(a) ? s.plural = a : h(a) ? s.default = a : F(a) && te(s, a), [r, s];
|
|
2041
|
+
}
|
|
2042
|
+
function js(e, t, n, a, s, r) {
|
|
2043
|
+
return {
|
|
2044
|
+
locale: t,
|
|
2045
|
+
key: n,
|
|
2046
|
+
warnHtmlMessage: s,
|
|
2047
|
+
onError: (l) => {
|
|
2048
|
+
if (r && r(l), process.env.NODE_ENV !== "production") {
|
|
2049
|
+
const o = Ks(a), u = `Message compilation error: ${l.message}`, _ = l.location && o && Oa(o, l.location.start.offset, l.location.end.offset), p = e.__v_emitter;
|
|
2050
|
+
p && o && p.emit("compile-error", {
|
|
2051
|
+
message: o,
|
|
2052
|
+
error: l.message,
|
|
2053
|
+
start: l.location && l.location.start.offset,
|
|
2054
|
+
end: l.location && l.location.end.offset,
|
|
2055
|
+
groupId: `translate:${n}`
|
|
2056
|
+
}), console.error(_ ? `${u}
|
|
2057
|
+
${_}` : u);
|
|
2058
|
+
} else
|
|
2059
|
+
throw l;
|
|
2060
|
+
},
|
|
2061
|
+
onCacheKey: (l) => fa(t, n, l)
|
|
2062
|
+
};
|
|
2063
|
+
}
|
|
2064
|
+
function Ks(e) {
|
|
2065
|
+
if (h(e))
|
|
2066
|
+
return e;
|
|
2067
|
+
if (e.loc && e.loc.source)
|
|
2068
|
+
return e.loc.source;
|
|
2069
|
+
}
|
|
2070
|
+
function Xs(e, t, n, a) {
|
|
2071
|
+
const { modifiers: s, pluralRules: r, messageResolver: l, fallbackLocale: o, fallbackWarn: u, missingWarn: _, fallbackContext: p } = e, d = {
|
|
2072
|
+
locale: t,
|
|
2073
|
+
modifiers: s,
|
|
2074
|
+
pluralRules: r,
|
|
2075
|
+
messages: (A) => {
|
|
2076
|
+
let D = l(n, A);
|
|
2077
|
+
if (D == null && p) {
|
|
2078
|
+
const [, , P] = Ar(p, A, t, o, u, _);
|
|
2079
|
+
D = l(P, A);
|
|
2080
|
+
}
|
|
2081
|
+
if (h(D) || fe(D)) {
|
|
2082
|
+
let P = !1;
|
|
2083
|
+
const y = Cr(e, A, t, D, A, () => {
|
|
2084
|
+
P = !0;
|
|
2085
|
+
});
|
|
2086
|
+
return P ? An : y;
|
|
2087
|
+
} else return ue(D) ? D : An;
|
|
2088
|
+
}
|
|
2089
|
+
};
|
|
2090
|
+
return e.processor && (d.processor = e.processor), a.list && (d.list = a.list), a.named && (d.named = a.named), q(a.plural) && (d.pluralIndex = a.plural), d;
|
|
2091
|
+
}
|
|
2092
|
+
const Pn = typeof Intl < "u", Pr = {
|
|
2093
|
+
dateTimeFormat: Pn && typeof Intl.DateTimeFormat < "u",
|
|
2094
|
+
numberFormat: Pn && typeof Intl.NumberFormat < "u"
|
|
2095
|
+
};
|
|
2096
|
+
function Sn(e, ...t) {
|
|
2097
|
+
const { datetimeFormats: n, unresolving: a, fallbackLocale: s, onWarn: r, localeFallbacker: l } = e, { __datetimeFormatters: o } = e;
|
|
2098
|
+
if (process.env.NODE_ENV !== "production" && !Pr.dateTimeFormat)
|
|
2099
|
+
return r(ye(ae.CANNOT_FORMAT_DATE)), It;
|
|
2100
|
+
const [u, _, p, T] = $t(...t), d = U(p.missingWarn) ? p.missingWarn : e.missingWarn, A = U(p.fallbackWarn) ? p.fallbackWarn : e.fallbackWarn, D = !!p.part, P = Zt(e, p), S = l(
|
|
2101
|
+
e,
|
|
2102
|
+
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2103
|
+
s,
|
|
2104
|
+
P
|
|
2105
|
+
);
|
|
2106
|
+
if (!h(u) || u === "")
|
|
2107
|
+
return new Intl.DateTimeFormat(P, T).format(_);
|
|
2108
|
+
let y = {}, R, f = null, E = P, L = null;
|
|
2109
|
+
const g = "datetime format";
|
|
2110
|
+
for (let I = 0; I < S.length; I++) {
|
|
2111
|
+
if (R = L = S[I], process.env.NODE_ENV !== "production" && P !== R && Pt(A, u) && r(ye(ae.FALLBACK_TO_DATE_FORMAT, {
|
|
2112
|
+
key: u,
|
|
2113
|
+
target: R
|
|
2114
|
+
})), process.env.NODE_ENV !== "production" && P !== R) {
|
|
2115
|
+
const j = e.__v_emitter;
|
|
2116
|
+
j && j.emit("fallback", {
|
|
2117
|
+
type: g,
|
|
2118
|
+
key: u,
|
|
2119
|
+
from: E,
|
|
2120
|
+
to: L,
|
|
2121
|
+
groupId: `${g}:${u}`
|
|
2122
|
+
});
|
|
2123
|
+
}
|
|
2124
|
+
if (y = n[R] || {}, f = y[u], F(f))
|
|
2125
|
+
break;
|
|
2126
|
+
zt(e, u, R, d, g), E = L;
|
|
2127
|
+
}
|
|
2128
|
+
if (!F(f) || !h(R))
|
|
2129
|
+
return a ? Ct : u;
|
|
2130
|
+
let v = `${R}__${u}`;
|
|
2131
|
+
bt(T) || (v = `${v}__${JSON.stringify(T)}`);
|
|
2132
|
+
let C = o.get(v);
|
|
2133
|
+
return C || (C = new Intl.DateTimeFormat(R, te({}, f, T)), o.set(v, C)), D ? C.formatToParts(_) : C.format(_);
|
|
2134
|
+
}
|
|
2135
|
+
const Sr = [
|
|
2136
|
+
"localeMatcher",
|
|
2137
|
+
"weekday",
|
|
2138
|
+
"era",
|
|
2139
|
+
"year",
|
|
2140
|
+
"month",
|
|
2141
|
+
"day",
|
|
2142
|
+
"hour",
|
|
2143
|
+
"minute",
|
|
2144
|
+
"second",
|
|
2145
|
+
"timeZoneName",
|
|
2146
|
+
"formatMatcher",
|
|
2147
|
+
"hour12",
|
|
2148
|
+
"timeZone",
|
|
2149
|
+
"dateStyle",
|
|
2150
|
+
"timeStyle",
|
|
2151
|
+
"calendar",
|
|
2152
|
+
"dayPeriod",
|
|
2153
|
+
"numberingSystem",
|
|
2154
|
+
"hourCycle",
|
|
2155
|
+
"fractionalSecondDigits"
|
|
2156
|
+
];
|
|
2157
|
+
function $t(...e) {
|
|
2158
|
+
const [t, n, a, s] = e, r = Y();
|
|
2159
|
+
let l = Y(), o;
|
|
2160
|
+
if (h(t)) {
|
|
2161
|
+
const u = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
2162
|
+
if (!u)
|
|
2163
|
+
throw Ne(ee.INVALID_ISO_DATE_ARGUMENT);
|
|
2164
|
+
const _ = u[3] ? u[3].trim().startsWith("T") ? `${u[1].trim()}${u[3].trim()}` : `${u[1].trim()}T${u[3].trim()}` : u[1].trim();
|
|
2165
|
+
o = new Date(_);
|
|
2166
|
+
try {
|
|
2167
|
+
o.toISOString();
|
|
2168
|
+
} catch {
|
|
2169
|
+
throw Ne(ee.INVALID_ISO_DATE_ARGUMENT);
|
|
2170
|
+
}
|
|
2171
|
+
} else if (ma(t)) {
|
|
2172
|
+
if (isNaN(t.getTime()))
|
|
2173
|
+
throw Ne(ee.INVALID_DATE_ARGUMENT);
|
|
2174
|
+
o = t;
|
|
2175
|
+
} else if (q(t))
|
|
2176
|
+
o = t;
|
|
2177
|
+
else
|
|
2178
|
+
throw Ne(ee.INVALID_ARGUMENT);
|
|
2179
|
+
return h(n) ? r.key = n : F(n) && Object.keys(n).forEach((u) => {
|
|
2180
|
+
Sr.includes(u) ? l[u] = n[u] : r[u] = n[u];
|
|
2181
|
+
}), h(a) ? r.locale = a : F(a) && (l = a), F(s) && (l = s), [r.key || "", o, r, l];
|
|
2182
|
+
}
|
|
2183
|
+
function Dn(e, t, n) {
|
|
2184
|
+
const a = e;
|
|
2185
|
+
for (const s in n) {
|
|
2186
|
+
const r = `${t}__${s}`;
|
|
2187
|
+
a.__datetimeFormatters.has(r) && a.__datetimeFormatters.delete(r);
|
|
2188
|
+
}
|
|
2189
|
+
}
|
|
2190
|
+
function Rn(e, ...t) {
|
|
2191
|
+
const { numberFormats: n, unresolving: a, fallbackLocale: s, onWarn: r, localeFallbacker: l } = e, { __numberFormatters: o } = e;
|
|
2192
|
+
if (process.env.NODE_ENV !== "production" && !Pr.numberFormat)
|
|
2193
|
+
return r(ye(ae.CANNOT_FORMAT_NUMBER)), It;
|
|
2194
|
+
const [u, _, p, T] = Wt(...t), d = U(p.missingWarn) ? p.missingWarn : e.missingWarn, A = U(p.fallbackWarn) ? p.fallbackWarn : e.fallbackWarn, D = !!p.part, P = Zt(e, p), S = l(
|
|
2195
|
+
e,
|
|
2196
|
+
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2197
|
+
s,
|
|
2198
|
+
P
|
|
2199
|
+
);
|
|
2200
|
+
if (!h(u) || u === "")
|
|
2201
|
+
return new Intl.NumberFormat(P, T).format(_);
|
|
2202
|
+
let y = {}, R, f = null, E = P, L = null;
|
|
2203
|
+
const g = "number format";
|
|
2204
|
+
for (let I = 0; I < S.length; I++) {
|
|
2205
|
+
if (R = L = S[I], process.env.NODE_ENV !== "production" && P !== R && Pt(A, u) && r(ye(ae.FALLBACK_TO_NUMBER_FORMAT, {
|
|
2206
|
+
key: u,
|
|
2207
|
+
target: R
|
|
2208
|
+
})), process.env.NODE_ENV !== "production" && P !== R) {
|
|
2209
|
+
const j = e.__v_emitter;
|
|
2210
|
+
j && j.emit("fallback", {
|
|
2211
|
+
type: g,
|
|
2212
|
+
key: u,
|
|
2213
|
+
from: E,
|
|
2214
|
+
to: L,
|
|
2215
|
+
groupId: `${g}:${u}`
|
|
2216
|
+
});
|
|
2217
|
+
}
|
|
2218
|
+
if (y = n[R] || {}, f = y[u], F(f))
|
|
2219
|
+
break;
|
|
2220
|
+
zt(e, u, R, d, g), E = L;
|
|
2221
|
+
}
|
|
2222
|
+
if (!F(f) || !h(R))
|
|
2223
|
+
return a ? Ct : u;
|
|
2224
|
+
let v = `${R}__${u}`;
|
|
2225
|
+
bt(T) || (v = `${v}__${JSON.stringify(T)}`);
|
|
2226
|
+
let C = o.get(v);
|
|
2227
|
+
return C || (C = new Intl.NumberFormat(R, te({}, f, T)), o.set(v, C)), D ? C.formatToParts(_) : C.format(_);
|
|
2228
|
+
}
|
|
2229
|
+
const Dr = [
|
|
2230
|
+
"localeMatcher",
|
|
2231
|
+
"style",
|
|
2232
|
+
"currency",
|
|
2233
|
+
"currencyDisplay",
|
|
2234
|
+
"currencySign",
|
|
2235
|
+
"useGrouping",
|
|
2236
|
+
"minimumIntegerDigits",
|
|
2237
|
+
"minimumFractionDigits",
|
|
2238
|
+
"maximumFractionDigits",
|
|
2239
|
+
"minimumSignificantDigits",
|
|
2240
|
+
"maximumSignificantDigits",
|
|
2241
|
+
"compactDisplay",
|
|
2242
|
+
"notation",
|
|
2243
|
+
"signDisplay",
|
|
2244
|
+
"unit",
|
|
2245
|
+
"unitDisplay",
|
|
2246
|
+
"roundingMode",
|
|
2247
|
+
"roundingPriority",
|
|
2248
|
+
"roundingIncrement",
|
|
2249
|
+
"trailingZeroDisplay"
|
|
2250
|
+
];
|
|
2251
|
+
function Wt(...e) {
|
|
2252
|
+
const [t, n, a, s] = e, r = Y();
|
|
2253
|
+
let l = Y();
|
|
2254
|
+
if (!q(t))
|
|
2255
|
+
throw Ne(ee.INVALID_ARGUMENT);
|
|
2256
|
+
const o = t;
|
|
2257
|
+
return h(n) ? r.key = n : F(n) && Object.keys(n).forEach((u) => {
|
|
2258
|
+
Dr.includes(u) ? l[u] = n[u] : r[u] = n[u];
|
|
2259
|
+
}), h(a) ? r.locale = a : F(a) && (l = a), F(s) && (l = s), [r.key || "", o, r, l];
|
|
2260
|
+
}
|
|
2261
|
+
function kn(e, t, n) {
|
|
2262
|
+
const a = e;
|
|
2263
|
+
for (const s in n) {
|
|
2264
|
+
const r = `${t}__${s}`;
|
|
2265
|
+
a.__numberFormatters.has(r) && a.__numberFormatters.delete(r);
|
|
2266
|
+
}
|
|
2267
|
+
}
|
|
2268
|
+
za();
|
|
2269
|
+
function Js() {
|
|
2270
|
+
return Rr().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
2271
|
+
}
|
|
2272
|
+
function Rr() {
|
|
2273
|
+
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
2274
|
+
}
|
|
2275
|
+
const Qs = typeof Proxy == "function", qs = "devtools-plugin:setup", Zs = "plugin:settings:set";
|
|
2276
|
+
let $e, Gt;
|
|
2277
|
+
function zs() {
|
|
2278
|
+
var e;
|
|
2279
|
+
return $e !== void 0 || (typeof window < "u" && window.performance ? ($e = !0, Gt = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? ($e = !0, Gt = globalThis.perf_hooks.performance) : $e = !1), $e;
|
|
2280
|
+
}
|
|
2281
|
+
function el() {
|
|
2282
|
+
return zs() ? Gt.now() : Date.now();
|
|
2283
|
+
}
|
|
2284
|
+
class tl {
|
|
2285
|
+
constructor(t, n) {
|
|
2286
|
+
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
|
|
2287
|
+
const a = {};
|
|
2288
|
+
if (t.settings)
|
|
2289
|
+
for (const l in t.settings) {
|
|
2290
|
+
const o = t.settings[l];
|
|
2291
|
+
a[l] = o.defaultValue;
|
|
2292
|
+
}
|
|
2293
|
+
const s = `__vue-devtools-plugin-settings__${t.id}`;
|
|
2294
|
+
let r = Object.assign({}, a);
|
|
2295
|
+
try {
|
|
2296
|
+
const l = localStorage.getItem(s), o = JSON.parse(l);
|
|
2297
|
+
Object.assign(r, o);
|
|
2298
|
+
} catch {
|
|
2299
|
+
}
|
|
2300
|
+
this.fallbacks = {
|
|
2301
|
+
getSettings() {
|
|
2302
|
+
return r;
|
|
2303
|
+
},
|
|
2304
|
+
setSettings(l) {
|
|
2305
|
+
try {
|
|
2306
|
+
localStorage.setItem(s, JSON.stringify(l));
|
|
2307
|
+
} catch {
|
|
2308
|
+
}
|
|
2309
|
+
r = l;
|
|
2310
|
+
},
|
|
2311
|
+
now() {
|
|
2312
|
+
return el();
|
|
2313
|
+
}
|
|
2314
|
+
}, n && n.on(Zs, (l, o) => {
|
|
2315
|
+
l === this.plugin.id && this.fallbacks.setSettings(o);
|
|
2316
|
+
}), this.proxiedOn = new Proxy({}, {
|
|
2317
|
+
get: (l, o) => this.target ? this.target.on[o] : (...u) => {
|
|
2318
|
+
this.onQueue.push({
|
|
2319
|
+
method: o,
|
|
2320
|
+
args: u
|
|
2321
|
+
});
|
|
2322
|
+
}
|
|
2323
|
+
}), this.proxiedTarget = new Proxy({}, {
|
|
2324
|
+
get: (l, o) => this.target ? this.target[o] : o === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(o) ? (...u) => (this.targetQueue.push({
|
|
2325
|
+
method: o,
|
|
2326
|
+
args: u,
|
|
2327
|
+
resolve: () => {
|
|
2328
|
+
}
|
|
2329
|
+
}), this.fallbacks[o](...u)) : (...u) => new Promise((_) => {
|
|
2330
|
+
this.targetQueue.push({
|
|
2331
|
+
method: o,
|
|
2332
|
+
args: u,
|
|
2333
|
+
resolve: _
|
|
2334
|
+
});
|
|
2335
|
+
})
|
|
2336
|
+
});
|
|
2337
|
+
}
|
|
2338
|
+
async setRealTarget(t) {
|
|
2339
|
+
this.target = t;
|
|
2340
|
+
for (const n of this.onQueue)
|
|
2341
|
+
this.target.on[n.method](...n.args);
|
|
2342
|
+
for (const n of this.targetQueue)
|
|
2343
|
+
n.resolve(await this.target[n.method](...n.args));
|
|
2344
|
+
}
|
|
2345
|
+
}
|
|
2346
|
+
function nl(e, t) {
|
|
2347
|
+
const n = e, a = Rr(), s = Js(), r = Qs && n.enableEarlyProxy;
|
|
2348
|
+
if (s && (a.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !r))
|
|
2349
|
+
s.emit(qs, e, t);
|
|
2350
|
+
else {
|
|
2351
|
+
const l = r ? new tl(n, s) : null;
|
|
2352
|
+
(a.__VUE_DEVTOOLS_PLUGINS__ = a.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
2353
|
+
pluginDescriptor: n,
|
|
2354
|
+
setupFn: t,
|
|
2355
|
+
proxy: l
|
|
2356
|
+
}), l && t(l.proxiedTarget);
|
|
2357
|
+
}
|
|
2358
|
+
}
|
|
2359
|
+
/*!
|
|
2360
|
+
* vue-i18n v9.14.5
|
|
2361
|
+
* (c) 2025 kazuya kawaguchi
|
|
2362
|
+
* Released under the MIT License.
|
|
2363
|
+
*/
|
|
2364
|
+
const rl = "9.14.5";
|
|
2365
|
+
function al() {
|
|
2366
|
+
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Le().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Le().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_JIT_COMPILATION__ != "boolean" && (Le().__INTLIFY_JIT_COMPILATION__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Le().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Le().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
2367
|
+
}
|
|
2368
|
+
const kr = ae.__EXTEND_POINT__, Oe = ht(kr), J = {
|
|
2369
|
+
FALLBACK_TO_ROOT: kr,
|
|
2370
|
+
// 9
|
|
2371
|
+
NOT_SUPPORTED_PRESERVE: Oe(),
|
|
2372
|
+
// 10
|
|
2373
|
+
NOT_SUPPORTED_FORMATTER: Oe(),
|
|
2374
|
+
// 11
|
|
2375
|
+
NOT_SUPPORTED_PRESERVE_DIRECTIVE: Oe(),
|
|
2376
|
+
// 12
|
|
2377
|
+
NOT_SUPPORTED_GET_CHOICE_INDEX: Oe(),
|
|
2378
|
+
// 13
|
|
2379
|
+
COMPONENT_NAME_LEGACY_COMPATIBLE: Oe(),
|
|
2380
|
+
// 14
|
|
2381
|
+
NOT_FOUND_PARENT_SCOPE: Oe(),
|
|
2382
|
+
// 15
|
|
2383
|
+
IGNORE_OBJ_FLATTEN: Oe(),
|
|
2384
|
+
// 16
|
|
2385
|
+
NOTICE_DROP_ALLOW_COMPOSITION: Oe(),
|
|
2386
|
+
// 17
|
|
2387
|
+
NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG: Oe()
|
|
2388
|
+
// 18
|
|
2389
|
+
}, sl = {
|
|
2390
|
+
[J.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
|
|
2391
|
+
[J.NOT_SUPPORTED_PRESERVE]: "Not supported 'preserve'.",
|
|
2392
|
+
[J.NOT_SUPPORTED_FORMATTER]: "Not supported 'formatter'.",
|
|
2393
|
+
[J.NOT_SUPPORTED_PRESERVE_DIRECTIVE]: "Not supported 'preserveDirectiveContent'.",
|
|
2394
|
+
[J.NOT_SUPPORTED_GET_CHOICE_INDEX]: "Not supported 'getChoiceIndex'.",
|
|
2395
|
+
[J.COMPONENT_NAME_LEGACY_COMPATIBLE]: "Component name legacy compatible: '{name}' -> 'i18n'",
|
|
2396
|
+
[J.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
|
|
2397
|
+
[J.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
|
|
2398
|
+
[J.NOTICE_DROP_ALLOW_COMPOSITION]: "'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze",
|
|
2399
|
+
[J.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]: "'translateExistCompatible' option will be dropped in the next major version."
|
|
2400
|
+
};
|
|
2401
|
+
function le(e, ...t) {
|
|
2402
|
+
return Xt(sl[e], ...t);
|
|
2403
|
+
}
|
|
2404
|
+
const yr = ee.__EXTEND_POINT__, se = ht(yr), $ = {
|
|
2405
|
+
// composer module errors
|
|
2406
|
+
UNEXPECTED_RETURN_TYPE: yr,
|
|
2407
|
+
// 24
|
|
2408
|
+
// legacy module errors
|
|
2409
|
+
INVALID_ARGUMENT: se(),
|
|
2410
|
+
// 25
|
|
2411
|
+
// i18n module errors
|
|
2412
|
+
MUST_BE_CALL_SETUP_TOP: se(),
|
|
2413
|
+
// 26
|
|
2414
|
+
NOT_INSTALLED: se(),
|
|
2415
|
+
// 27
|
|
2416
|
+
NOT_AVAILABLE_IN_LEGACY_MODE: se(),
|
|
2417
|
+
// 28
|
|
2418
|
+
// directive module errors
|
|
2419
|
+
REQUIRED_VALUE: se(),
|
|
2420
|
+
// 29
|
|
2421
|
+
INVALID_VALUE: se(),
|
|
2422
|
+
// 30
|
|
2423
|
+
// vue-devtools errors
|
|
2424
|
+
CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN: se(),
|
|
2425
|
+
// 31
|
|
2426
|
+
NOT_INSTALLED_WITH_PROVIDE: se(),
|
|
2427
|
+
// 32
|
|
2428
|
+
// unexpected error
|
|
2429
|
+
UNEXPECTED_ERROR: se(),
|
|
2430
|
+
// 33
|
|
2431
|
+
// not compatible legacy vue-i18n constructor
|
|
2432
|
+
NOT_COMPATIBLE_LEGACY_VUE_I18N: se(),
|
|
2433
|
+
// 34
|
|
2434
|
+
// bridge support vue 2.x only
|
|
2435
|
+
BRIDGE_SUPPORT_VUE_2_ONLY: se(),
|
|
2436
|
+
// 35
|
|
2437
|
+
// need to define `i18n` option in `allowComposition: true` and `useScope: 'local' at `useI18n``
|
|
2438
|
+
MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION: se(),
|
|
2439
|
+
// 36
|
|
2440
|
+
// Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly
|
|
2441
|
+
NOT_AVAILABLE_COMPOSITION_IN_LEGACY: se(),
|
|
2442
|
+
// 37
|
|
2443
|
+
// for enhancement
|
|
2444
|
+
__EXTEND_POINT__: se()
|
|
2445
|
+
// 38
|
|
2446
|
+
};
|
|
2447
|
+
function z(e, ...t) {
|
|
2448
|
+
return Ye(e, null, process.env.NODE_ENV !== "production" ? { messages: ll, args: t } : void 0);
|
|
2449
|
+
}
|
|
2450
|
+
const ll = {
|
|
2451
|
+
[$.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
|
2452
|
+
[$.INVALID_ARGUMENT]: "Invalid argument",
|
|
2453
|
+
[$.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
|
|
2454
|
+
[$.NOT_INSTALLED]: "Need to install with `app.use` function",
|
|
2455
|
+
[$.UNEXPECTED_ERROR]: "Unexpected error",
|
|
2456
|
+
[$.NOT_AVAILABLE_IN_LEGACY_MODE]: "Not available in legacy mode",
|
|
2457
|
+
[$.REQUIRED_VALUE]: "Required in value: {0}",
|
|
2458
|
+
[$.INVALID_VALUE]: "Invalid value",
|
|
2459
|
+
[$.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]: "Cannot setup vue-devtools plugin",
|
|
2460
|
+
[$.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
|
|
2461
|
+
[$.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
|
2462
|
+
[$.BRIDGE_SUPPORT_VUE_2_ONLY]: "vue-i18n-bridge support Vue 2.x only",
|
|
2463
|
+
[$.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]: "Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",
|
|
2464
|
+
[$.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
|
|
2465
|
+
}, Ht = /* @__PURE__ */ pe("__translateVNode"), xt = /* @__PURE__ */ pe("__datetimeParts"), Yt = /* @__PURE__ */ pe("__numberParts"), Me = /* @__PURE__ */ pe("__enableEmitter"), ft = /* @__PURE__ */ pe("__disableEmitter"), Mr = pe("__setPluralRules"), Fr = /* @__PURE__ */ pe("__injectWithOption"), Bt = /* @__PURE__ */ pe("__dispose");
|
|
2466
|
+
function _t(e) {
|
|
2467
|
+
if (!V(e) || fe(e))
|
|
2468
|
+
return e;
|
|
2469
|
+
for (const t in e)
|
|
2470
|
+
if (me(e, t))
|
|
2471
|
+
if (!t.includes("."))
|
|
2472
|
+
V(e[t]) && _t(e[t]);
|
|
2473
|
+
else {
|
|
2474
|
+
const n = t.split("."), a = n.length - 1;
|
|
2475
|
+
let s = e, r = !1;
|
|
2476
|
+
for (let l = 0; l < a; l++) {
|
|
2477
|
+
if (n[l] === "__proto__")
|
|
2478
|
+
throw new Error(`unsafe key: ${n[l]}`);
|
|
2479
|
+
if (n[l] in s || (s[n[l]] = Y()), !V(s[n[l]])) {
|
|
2480
|
+
process.env.NODE_ENV !== "production" && Z(le(J.IGNORE_OBJ_FLATTEN, {
|
|
2481
|
+
key: n[l]
|
|
2482
|
+
})), r = !0;
|
|
2483
|
+
break;
|
|
2484
|
+
}
|
|
2485
|
+
s = s[n[l]];
|
|
2486
|
+
}
|
|
2487
|
+
if (r || (fe(s) ? fr.includes(n[a]) || delete e[t] : (s[n[a]] = e[t], delete e[t])), !fe(s)) {
|
|
2488
|
+
const l = s[n[a]];
|
|
2489
|
+
V(l) && _t(l);
|
|
2490
|
+
}
|
|
2491
|
+
}
|
|
2492
|
+
return e;
|
|
2493
|
+
}
|
|
2494
|
+
function St(e, t) {
|
|
2495
|
+
const { messages: n, __i18n: a, messageResolver: s, flatJson: r } = t, l = F(n) ? n : K(a) ? Y() : { [e]: Y() };
|
|
2496
|
+
if (K(a) && a.forEach((o) => {
|
|
2497
|
+
if ("locale" in o && "resource" in o) {
|
|
2498
|
+
const { locale: u, resource: _ } = o;
|
|
2499
|
+
u ? (l[u] = l[u] || Y(), Ot(_, l[u])) : Ot(_, l);
|
|
2500
|
+
} else
|
|
2501
|
+
h(o) && Ot(JSON.parse(o), l);
|
|
2502
|
+
}), s == null && r)
|
|
2503
|
+
for (const o in l)
|
|
2504
|
+
me(l, o) && _t(l[o]);
|
|
2505
|
+
return l;
|
|
2506
|
+
}
|
|
2507
|
+
function Ur(e) {
|
|
2508
|
+
return e.type;
|
|
2509
|
+
}
|
|
2510
|
+
function wr(e, t, n) {
|
|
2511
|
+
let a = V(t.messages) ? t.messages : Y();
|
|
2512
|
+
"__i18nGlobal" in n && (a = St(e.locale.value, {
|
|
2513
|
+
messages: a,
|
|
2514
|
+
__i18n: n.__i18nGlobal
|
|
2515
|
+
}));
|
|
2516
|
+
const s = Object.keys(a);
|
|
2517
|
+
s.length && s.forEach((r) => {
|
|
2518
|
+
e.mergeLocaleMessage(r, a[r]);
|
|
2519
|
+
});
|
|
2520
|
+
{
|
|
2521
|
+
if (V(t.datetimeFormats)) {
|
|
2522
|
+
const r = Object.keys(t.datetimeFormats);
|
|
2523
|
+
r.length && r.forEach((l) => {
|
|
2524
|
+
e.mergeDateTimeFormat(l, t.datetimeFormats[l]);
|
|
2525
|
+
});
|
|
2526
|
+
}
|
|
2527
|
+
if (V(t.numberFormats)) {
|
|
2528
|
+
const r = Object.keys(t.numberFormats);
|
|
2529
|
+
r.length && r.forEach((l) => {
|
|
2530
|
+
e.mergeNumberFormat(l, t.numberFormats[l]);
|
|
2531
|
+
});
|
|
2532
|
+
}
|
|
2533
|
+
}
|
|
2534
|
+
}
|
|
2535
|
+
function yn(e) {
|
|
2536
|
+
return qr(Zr, null, e, 0);
|
|
2537
|
+
}
|
|
2538
|
+
const Mn = "__INTLIFY_META__", Fn = () => [], ol = () => !1;
|
|
2539
|
+
let Un = 0;
|
|
2540
|
+
function wn(e) {
|
|
2541
|
+
return (t, n, a, s) => e(n, a, it() || void 0, s);
|
|
2542
|
+
}
|
|
2543
|
+
const il = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
2544
|
+
const e = it();
|
|
2545
|
+
let t = null;
|
|
2546
|
+
return e && (t = Ur(e)[Mn]) ? { [Mn]: t } : null;
|
|
2547
|
+
};
|
|
2548
|
+
function en(e = {}, t) {
|
|
2549
|
+
const { __root: n, __injectWithOption: a } = e, s = n === void 0, r = e.flatJson, l = de ? Re : Kn, o = !!e.translateExistCompatible;
|
|
2550
|
+
process.env.NODE_ENV !== "production" && o && qn(le(J.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));
|
|
2551
|
+
let u = U(e.inheritLocale) ? e.inheritLocale : !0;
|
|
2552
|
+
const _ = l(
|
|
2553
|
+
// prettier-ignore
|
|
2554
|
+
n && u ? n.locale.value : h(e.locale) ? e.locale : xe
|
|
2555
|
+
), p = l(
|
|
2556
|
+
// prettier-ignore
|
|
2557
|
+
n && u ? n.fallbackLocale.value : h(e.fallbackLocale) || K(e.fallbackLocale) || F(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : _.value
|
|
2558
|
+
), T = l(St(_.value, e)), d = l(F(e.datetimeFormats) ? e.datetimeFormats : { [_.value]: {} }), A = l(F(e.numberFormats) ? e.numberFormats : { [_.value]: {} });
|
|
2559
|
+
let D = n ? n.missingWarn : U(e.missingWarn) || be(e.missingWarn) ? e.missingWarn : !0, P = n ? n.fallbackWarn : U(e.fallbackWarn) || be(e.fallbackWarn) ? e.fallbackWarn : !0, S = n ? n.fallbackRoot : U(e.fallbackRoot) ? e.fallbackRoot : !0, y = !!e.fallbackFormat, R = x(e.missing) ? e.missing : null, f = x(e.missing) ? wn(e.missing) : null, E = x(e.postTranslation) ? e.postTranslation : null, L = n ? n.warnHtmlMessage : U(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, g = !!e.escapeParameter;
|
|
2560
|
+
const v = n ? n.modifiers : F(e.modifiers) ? e.modifiers : {};
|
|
2561
|
+
let C = e.pluralRules || n && n.pluralRules, I;
|
|
2562
|
+
I = (() => {
|
|
2563
|
+
s && In(null);
|
|
2564
|
+
const m = {
|
|
2565
|
+
version: rl,
|
|
2566
|
+
locale: _.value,
|
|
2567
|
+
fallbackLocale: p.value,
|
|
2568
|
+
messages: T.value,
|
|
2569
|
+
modifiers: v,
|
|
2570
|
+
pluralRules: C,
|
|
2571
|
+
missing: f === null ? void 0 : f,
|
|
2572
|
+
missingWarn: D,
|
|
2573
|
+
fallbackWarn: P,
|
|
2574
|
+
fallbackFormat: y,
|
|
2575
|
+
unresolving: !0,
|
|
2576
|
+
postTranslation: E === null ? void 0 : E,
|
|
2577
|
+
warnHtmlMessage: L,
|
|
2578
|
+
escapeParameter: g,
|
|
2579
|
+
messageResolver: e.messageResolver,
|
|
2580
|
+
messageCompiler: e.messageCompiler,
|
|
2581
|
+
__meta: { framework: "vue" }
|
|
2582
|
+
};
|
|
2583
|
+
m.datetimeFormats = d.value, m.numberFormats = A.value, m.__datetimeFormatters = F(I) ? I.__datetimeFormatters : void 0, m.__numberFormatters = F(I) ? I.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (m.__v_emitter = F(I) ? I.__v_emitter : void 0);
|
|
2584
|
+
const O = Vs(m);
|
|
2585
|
+
return s && In(O), O;
|
|
2586
|
+
})(), ot(I, _.value, p.value);
|
|
2587
|
+
function oe() {
|
|
2588
|
+
return [
|
|
2589
|
+
_.value,
|
|
2590
|
+
p.value,
|
|
2591
|
+
T.value,
|
|
2592
|
+
d.value,
|
|
2593
|
+
A.value
|
|
2594
|
+
];
|
|
2595
|
+
}
|
|
2596
|
+
const w = ge({
|
|
2597
|
+
get: () => _.value,
|
|
2598
|
+
set: (m) => {
|
|
2599
|
+
_.value = m, I.locale = _.value;
|
|
2600
|
+
}
|
|
2601
|
+
}), ne = ge({
|
|
2602
|
+
get: () => p.value,
|
|
2603
|
+
set: (m) => {
|
|
2604
|
+
p.value = m, I.fallbackLocale = p.value, ot(I, _.value, m);
|
|
2605
|
+
}
|
|
2606
|
+
}), Be = ge(() => T.value), je = /* @__PURE__ */ ge(() => d.value), Ee = /* @__PURE__ */ ge(() => A.value);
|
|
2607
|
+
function Ke() {
|
|
2608
|
+
return x(E) ? E : null;
|
|
2609
|
+
}
|
|
2610
|
+
function Xe(m) {
|
|
2611
|
+
E = m, I.postTranslation = m;
|
|
2612
|
+
}
|
|
2613
|
+
function Je() {
|
|
2614
|
+
return R;
|
|
2615
|
+
}
|
|
2616
|
+
function Qe(m) {
|
|
2617
|
+
m !== null && (f = wn(m)), R = m, I.missing = f;
|
|
2618
|
+
}
|
|
2619
|
+
function qe(m, O) {
|
|
2620
|
+
return m !== "translate" || !O.resolvedMessage;
|
|
2621
|
+
}
|
|
2622
|
+
const ce = (m, O, G, Q, ve, gt) => {
|
|
2623
|
+
oe();
|
|
2624
|
+
let Ve;
|
|
2625
|
+
try {
|
|
2626
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, s || (I.fallbackContext = n ? ws() : void 0), Ve = m(I);
|
|
2627
|
+
} finally {
|
|
2628
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, s || (I.fallbackContext = void 0);
|
|
2629
|
+
}
|
|
2630
|
+
if (G !== "translate exists" && // for not `te` (e.g `t`)
|
|
2631
|
+
q(Ve) && Ve === Ct || G === "translate exists" && !Ve) {
|
|
2632
|
+
const [Pe, xr] = O();
|
|
2633
|
+
if (process.env.NODE_ENV !== "production" && n && h(Pe) && qe(G, xr) && (S && (Pt(P, Pe) || Or(D, Pe)) && Z(le(J.FALLBACK_TO_ROOT, {
|
|
2634
|
+
key: Pe,
|
|
2635
|
+
type: G
|
|
2636
|
+
})), process.env.NODE_ENV !== "production")) {
|
|
2637
|
+
const { __v_emitter: an } = I;
|
|
2638
|
+
an && S && an.emit("fallback", {
|
|
2639
|
+
type: G,
|
|
2640
|
+
key: Pe,
|
|
2641
|
+
to: "global",
|
|
2642
|
+
groupId: `${G}:${Pe}`
|
|
2643
|
+
});
|
|
2644
|
+
}
|
|
2645
|
+
return n && S ? Q(n) : ve(Pe);
|
|
2646
|
+
} else {
|
|
2647
|
+
if (gt(Ve))
|
|
2648
|
+
return Ve;
|
|
2649
|
+
throw z($.UNEXPECTED_RETURN_TYPE);
|
|
2650
|
+
}
|
|
2651
|
+
};
|
|
2652
|
+
function Fe(...m) {
|
|
2653
|
+
return ce((O) => Reflect.apply(Cn, null, [O, ...m]), () => Vt(...m), "translate", (O) => Reflect.apply(O.t, O, [...m]), (O) => O, (O) => h(O));
|
|
2654
|
+
}
|
|
2655
|
+
function Ue(...m) {
|
|
2656
|
+
const [O, G, Q] = m;
|
|
2657
|
+
if (Q && !V(Q))
|
|
2658
|
+
throw z($.INVALID_ARGUMENT);
|
|
2659
|
+
return Fe(O, G, te({ resolvedMessage: !0 }, Q || {}));
|
|
2660
|
+
}
|
|
2661
|
+
function Ze(...m) {
|
|
2662
|
+
return ce((O) => Reflect.apply(Sn, null, [O, ...m]), () => $t(...m), "datetime format", (O) => Reflect.apply(O.d, O, [...m]), () => It, (O) => h(O));
|
|
2663
|
+
}
|
|
2664
|
+
function ze(...m) {
|
|
2665
|
+
return ce((O) => Reflect.apply(Rn, null, [O, ...m]), () => Wt(...m), "number format", (O) => Reflect.apply(O.n, O, [...m]), () => It, (O) => h(O));
|
|
2666
|
+
}
|
|
2667
|
+
function et(m) {
|
|
2668
|
+
return m.map((O) => h(O) || q(O) || U(O) ? yn(String(O)) : O);
|
|
2669
|
+
}
|
|
2670
|
+
const tt = {
|
|
2671
|
+
normalize: et,
|
|
2672
|
+
interpolate: (m) => m,
|
|
2673
|
+
type: "vnode"
|
|
2674
|
+
};
|
|
2675
|
+
function we(...m) {
|
|
2676
|
+
return ce(
|
|
2677
|
+
(O) => {
|
|
2678
|
+
let G;
|
|
2679
|
+
const Q = O;
|
|
2680
|
+
try {
|
|
2681
|
+
Q.processor = tt, G = Reflect.apply(Cn, null, [Q, ...m]);
|
|
2682
|
+
} finally {
|
|
2683
|
+
Q.processor = null;
|
|
2684
|
+
}
|
|
2685
|
+
return G;
|
|
2686
|
+
},
|
|
2687
|
+
() => Vt(...m),
|
|
2688
|
+
"translate",
|
|
2689
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2690
|
+
(O) => O[Ht](...m),
|
|
2691
|
+
(O) => [yn(O)],
|
|
2692
|
+
(O) => K(O)
|
|
2693
|
+
);
|
|
2694
|
+
}
|
|
2695
|
+
function nt(...m) {
|
|
2696
|
+
return ce(
|
|
2697
|
+
(O) => Reflect.apply(Rn, null, [O, ...m]),
|
|
2698
|
+
() => Wt(...m),
|
|
2699
|
+
"number format",
|
|
2700
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2701
|
+
(O) => O[Yt](...m),
|
|
2702
|
+
Fn,
|
|
2703
|
+
(O) => h(O) || K(O)
|
|
2704
|
+
);
|
|
2705
|
+
}
|
|
2706
|
+
function rt(...m) {
|
|
2707
|
+
return ce(
|
|
2708
|
+
(O) => Reflect.apply(Sn, null, [O, ...m]),
|
|
2709
|
+
() => $t(...m),
|
|
2710
|
+
"datetime format",
|
|
2711
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2712
|
+
(O) => O[xt](...m),
|
|
2713
|
+
Fn,
|
|
2714
|
+
(O) => h(O) || K(O)
|
|
2715
|
+
);
|
|
2716
|
+
}
|
|
2717
|
+
function at(m) {
|
|
2718
|
+
C = m, I.pluralRules = C;
|
|
2719
|
+
}
|
|
2720
|
+
function b(m, O) {
|
|
2721
|
+
return ce(() => {
|
|
2722
|
+
if (!m)
|
|
2723
|
+
return !1;
|
|
2724
|
+
const G = h(O) ? O : _.value, Q = Ce(G), ve = I.messageResolver(Q, m);
|
|
2725
|
+
return o ? ve != null : fe(ve) || ue(ve) || h(ve);
|
|
2726
|
+
}, () => [m], "translate exists", (G) => Reflect.apply(G.te, G, [m, O]), ol, (G) => U(G));
|
|
2727
|
+
}
|
|
2728
|
+
function W(m) {
|
|
2729
|
+
let O = null;
|
|
2730
|
+
const G = dr(I, p.value, _.value);
|
|
2731
|
+
for (let Q = 0; Q < G.length; Q++) {
|
|
2732
|
+
const ve = T.value[G[Q]] || {}, gt = I.messageResolver(ve, m);
|
|
2733
|
+
if (gt != null) {
|
|
2734
|
+
O = gt;
|
|
2735
|
+
break;
|
|
2736
|
+
}
|
|
2737
|
+
}
|
|
2738
|
+
return O;
|
|
2739
|
+
}
|
|
2740
|
+
function st(m) {
|
|
2741
|
+
const O = W(m);
|
|
2742
|
+
return O ?? (n ? n.tm(m) || {} : {});
|
|
2743
|
+
}
|
|
2744
|
+
function Ce(m) {
|
|
2745
|
+
return T.value[m] || {};
|
|
2746
|
+
}
|
|
2747
|
+
function lt(m, O) {
|
|
2748
|
+
if (r) {
|
|
2749
|
+
const G = { [m]: O };
|
|
2750
|
+
for (const Q in G)
|
|
2751
|
+
me(G, Q) && _t(G[Q]);
|
|
2752
|
+
O = G[m];
|
|
2753
|
+
}
|
|
2754
|
+
T.value[m] = O, I.messages = T.value;
|
|
2755
|
+
}
|
|
2756
|
+
function Dt(m, O) {
|
|
2757
|
+
T.value[m] = T.value[m] || {};
|
|
2758
|
+
const G = { [m]: O };
|
|
2759
|
+
if (r)
|
|
2760
|
+
for (const Q in G)
|
|
2761
|
+
me(G, Q) && _t(G[Q]);
|
|
2762
|
+
O = G[m], Ot(O, T.value[m]), I.messages = T.value;
|
|
2763
|
+
}
|
|
2764
|
+
function i(m) {
|
|
2765
|
+
return d.value[m] || {};
|
|
2766
|
+
}
|
|
2767
|
+
function c(m, O) {
|
|
2768
|
+
d.value[m] = O, I.datetimeFormats = d.value, Dn(I, m, O);
|
|
2769
|
+
}
|
|
2770
|
+
function N(m, O) {
|
|
2771
|
+
d.value[m] = te(d.value[m] || {}, O), I.datetimeFormats = d.value, Dn(I, m, O);
|
|
2772
|
+
}
|
|
2773
|
+
function k(m) {
|
|
2774
|
+
return A.value[m] || {};
|
|
2775
|
+
}
|
|
2776
|
+
function X(m, O) {
|
|
2777
|
+
A.value[m] = O, I.numberFormats = A.value, kn(I, m, O);
|
|
2778
|
+
}
|
|
2779
|
+
function B(m, O) {
|
|
2780
|
+
A.value[m] = te(A.value[m] || {}, O), I.numberFormats = A.value, kn(I, m, O);
|
|
2781
|
+
}
|
|
2782
|
+
Un++, n && de && (Ut(n.locale, (m) => {
|
|
2783
|
+
u && (_.value = m, I.locale = m, ot(I, _.value, p.value));
|
|
2784
|
+
}), Ut(n.fallbackLocale, (m) => {
|
|
2785
|
+
u && (p.value = m, I.fallbackLocale = m, ot(I, _.value, p.value));
|
|
2786
|
+
}));
|
|
2787
|
+
const H = {
|
|
2788
|
+
id: Un,
|
|
2789
|
+
locale: w,
|
|
2790
|
+
fallbackLocale: ne,
|
|
2791
|
+
get inheritLocale() {
|
|
2792
|
+
return u;
|
|
2793
|
+
},
|
|
2794
|
+
set inheritLocale(m) {
|
|
2795
|
+
u = m, m && n && (_.value = n.locale.value, p.value = n.fallbackLocale.value, ot(I, _.value, p.value));
|
|
2796
|
+
},
|
|
2797
|
+
get availableLocales() {
|
|
2798
|
+
return Object.keys(T.value).sort();
|
|
2799
|
+
},
|
|
2800
|
+
messages: Be,
|
|
2801
|
+
get modifiers() {
|
|
2802
|
+
return v;
|
|
2803
|
+
},
|
|
2804
|
+
get pluralRules() {
|
|
2805
|
+
return C || {};
|
|
2806
|
+
},
|
|
2807
|
+
get isGlobal() {
|
|
2808
|
+
return s;
|
|
2809
|
+
},
|
|
2810
|
+
get missingWarn() {
|
|
2811
|
+
return D;
|
|
2812
|
+
},
|
|
2813
|
+
set missingWarn(m) {
|
|
2814
|
+
D = m, I.missingWarn = D;
|
|
2815
|
+
},
|
|
2816
|
+
get fallbackWarn() {
|
|
2817
|
+
return P;
|
|
2818
|
+
},
|
|
2819
|
+
set fallbackWarn(m) {
|
|
2820
|
+
P = m, I.fallbackWarn = P;
|
|
2821
|
+
},
|
|
2822
|
+
get fallbackRoot() {
|
|
2823
|
+
return S;
|
|
2824
|
+
},
|
|
2825
|
+
set fallbackRoot(m) {
|
|
2826
|
+
S = m;
|
|
2827
|
+
},
|
|
2828
|
+
get fallbackFormat() {
|
|
2829
|
+
return y;
|
|
2830
|
+
},
|
|
2831
|
+
set fallbackFormat(m) {
|
|
2832
|
+
y = m, I.fallbackFormat = y;
|
|
2833
|
+
},
|
|
2834
|
+
get warnHtmlMessage() {
|
|
2835
|
+
return L;
|
|
2836
|
+
},
|
|
2837
|
+
set warnHtmlMessage(m) {
|
|
2838
|
+
L = m, I.warnHtmlMessage = m;
|
|
2839
|
+
},
|
|
2840
|
+
get escapeParameter() {
|
|
2841
|
+
return g;
|
|
2842
|
+
},
|
|
2843
|
+
set escapeParameter(m) {
|
|
2844
|
+
g = m, I.escapeParameter = m;
|
|
2845
|
+
},
|
|
2846
|
+
t: Fe,
|
|
2847
|
+
getLocaleMessage: Ce,
|
|
2848
|
+
setLocaleMessage: lt,
|
|
2849
|
+
mergeLocaleMessage: Dt,
|
|
2850
|
+
getPostTranslationHandler: Ke,
|
|
2851
|
+
setPostTranslationHandler: Xe,
|
|
2852
|
+
getMissingHandler: Je,
|
|
2853
|
+
setMissingHandler: Qe,
|
|
2854
|
+
[Mr]: at
|
|
2855
|
+
};
|
|
2856
|
+
return H.datetimeFormats = je, H.numberFormats = Ee, H.rt = Ue, H.te = b, H.tm = st, H.d = Ze, H.n = ze, H.getDateTimeFormat = i, H.setDateTimeFormat = c, H.mergeDateTimeFormat = N, H.getNumberFormat = k, H.setNumberFormat = X, H.mergeNumberFormat = B, H[Fr] = a, H[Ht] = we, H[xt] = rt, H[Yt] = nt, process.env.NODE_ENV !== "production" && (H[Me] = (m) => {
|
|
2857
|
+
I.__v_emitter = m;
|
|
2858
|
+
}, H[ft] = () => {
|
|
2859
|
+
I.__v_emitter = void 0;
|
|
2860
|
+
}), H;
|
|
2861
|
+
}
|
|
2862
|
+
function cl(e) {
|
|
2863
|
+
const t = h(e.locale) ? e.locale : xe, n = h(e.fallbackLocale) || K(e.fallbackLocale) || F(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, a = x(e.missing) ? e.missing : void 0, s = U(e.silentTranslationWarn) || be(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, r = U(e.silentFallbackWarn) || be(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, l = U(e.fallbackRoot) ? e.fallbackRoot : !0, o = !!e.formatFallbackMessages, u = F(e.modifiers) ? e.modifiers : {}, _ = e.pluralizationRules, p = x(e.postTranslation) ? e.postTranslation : void 0, T = h(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, d = !!e.escapeParameterHtml, A = U(e.sync) ? e.sync : !0;
|
|
2864
|
+
process.env.NODE_ENV !== "production" && e.formatter && Z(le(J.NOT_SUPPORTED_FORMATTER)), process.env.NODE_ENV !== "production" && e.preserveDirectiveContent && Z(le(J.NOT_SUPPORTED_PRESERVE_DIRECTIVE));
|
|
2865
|
+
let D = e.messages;
|
|
2866
|
+
if (F(e.sharedMessages)) {
|
|
2867
|
+
const g = e.sharedMessages;
|
|
2868
|
+
D = Object.keys(g).reduce((C, I) => {
|
|
2869
|
+
const j = C[I] || (C[I] = {});
|
|
2870
|
+
return te(j, g[I]), C;
|
|
2871
|
+
}, D || {});
|
|
2872
|
+
}
|
|
2873
|
+
const { __i18n: P, __root: S, __injectWithOption: y } = e, R = e.datetimeFormats, f = e.numberFormats, E = e.flatJson, L = e.translateExistCompatible;
|
|
2874
|
+
return {
|
|
2875
|
+
locale: t,
|
|
2876
|
+
fallbackLocale: n,
|
|
2877
|
+
messages: D,
|
|
2878
|
+
flatJson: E,
|
|
2879
|
+
datetimeFormats: R,
|
|
2880
|
+
numberFormats: f,
|
|
2881
|
+
missing: a,
|
|
2882
|
+
missingWarn: s,
|
|
2883
|
+
fallbackWarn: r,
|
|
2884
|
+
fallbackRoot: l,
|
|
2885
|
+
fallbackFormat: o,
|
|
2886
|
+
modifiers: u,
|
|
2887
|
+
pluralRules: _,
|
|
2888
|
+
postTranslation: p,
|
|
2889
|
+
warnHtmlMessage: T,
|
|
2890
|
+
escapeParameter: d,
|
|
2891
|
+
messageResolver: e.messageResolver,
|
|
2892
|
+
inheritLocale: A,
|
|
2893
|
+
translateExistCompatible: L,
|
|
2894
|
+
__i18n: P,
|
|
2895
|
+
__root: S,
|
|
2896
|
+
__injectWithOption: y
|
|
2897
|
+
};
|
|
2898
|
+
}
|
|
2899
|
+
function jt(e = {}, t) {
|
|
2900
|
+
{
|
|
2901
|
+
const n = en(cl(e)), { __extender: a } = e, s = {
|
|
2902
|
+
// id
|
|
2903
|
+
id: n.id,
|
|
2904
|
+
// locale
|
|
2905
|
+
get locale() {
|
|
2906
|
+
return n.locale.value;
|
|
2907
|
+
},
|
|
2908
|
+
set locale(r) {
|
|
2909
|
+
n.locale.value = r;
|
|
2910
|
+
},
|
|
2911
|
+
// fallbackLocale
|
|
2912
|
+
get fallbackLocale() {
|
|
2913
|
+
return n.fallbackLocale.value;
|
|
2914
|
+
},
|
|
2915
|
+
set fallbackLocale(r) {
|
|
2916
|
+
n.fallbackLocale.value = r;
|
|
2917
|
+
},
|
|
2918
|
+
// messages
|
|
2919
|
+
get messages() {
|
|
2920
|
+
return n.messages.value;
|
|
2921
|
+
},
|
|
2922
|
+
// datetimeFormats
|
|
2923
|
+
get datetimeFormats() {
|
|
2924
|
+
return n.datetimeFormats.value;
|
|
2925
|
+
},
|
|
2926
|
+
// numberFormats
|
|
2927
|
+
get numberFormats() {
|
|
2928
|
+
return n.numberFormats.value;
|
|
2929
|
+
},
|
|
2930
|
+
// availableLocales
|
|
2931
|
+
get availableLocales() {
|
|
2932
|
+
return n.availableLocales;
|
|
2933
|
+
},
|
|
2934
|
+
// formatter
|
|
2935
|
+
get formatter() {
|
|
2936
|
+
return process.env.NODE_ENV !== "production" && Z(le(J.NOT_SUPPORTED_FORMATTER)), {
|
|
2937
|
+
interpolate() {
|
|
2938
|
+
return [];
|
|
2939
|
+
}
|
|
2940
|
+
};
|
|
2941
|
+
},
|
|
2942
|
+
set formatter(r) {
|
|
2943
|
+
process.env.NODE_ENV !== "production" && Z(le(J.NOT_SUPPORTED_FORMATTER));
|
|
2944
|
+
},
|
|
2945
|
+
// missing
|
|
2946
|
+
get missing() {
|
|
2947
|
+
return n.getMissingHandler();
|
|
2948
|
+
},
|
|
2949
|
+
set missing(r) {
|
|
2950
|
+
n.setMissingHandler(r);
|
|
2951
|
+
},
|
|
2952
|
+
// silentTranslationWarn
|
|
2953
|
+
get silentTranslationWarn() {
|
|
2954
|
+
return U(n.missingWarn) ? !n.missingWarn : n.missingWarn;
|
|
2955
|
+
},
|
|
2956
|
+
set silentTranslationWarn(r) {
|
|
2957
|
+
n.missingWarn = U(r) ? !r : r;
|
|
2958
|
+
},
|
|
2959
|
+
// silentFallbackWarn
|
|
2960
|
+
get silentFallbackWarn() {
|
|
2961
|
+
return U(n.fallbackWarn) ? !n.fallbackWarn : n.fallbackWarn;
|
|
2962
|
+
},
|
|
2963
|
+
set silentFallbackWarn(r) {
|
|
2964
|
+
n.fallbackWarn = U(r) ? !r : r;
|
|
2965
|
+
},
|
|
2966
|
+
// modifiers
|
|
2967
|
+
get modifiers() {
|
|
2968
|
+
return n.modifiers;
|
|
2969
|
+
},
|
|
2970
|
+
// formatFallbackMessages
|
|
2971
|
+
get formatFallbackMessages() {
|
|
2972
|
+
return n.fallbackFormat;
|
|
2973
|
+
},
|
|
2974
|
+
set formatFallbackMessages(r) {
|
|
2975
|
+
n.fallbackFormat = r;
|
|
2976
|
+
},
|
|
2977
|
+
// postTranslation
|
|
2978
|
+
get postTranslation() {
|
|
2979
|
+
return n.getPostTranslationHandler();
|
|
2980
|
+
},
|
|
2981
|
+
set postTranslation(r) {
|
|
2982
|
+
n.setPostTranslationHandler(r);
|
|
2983
|
+
},
|
|
2984
|
+
// sync
|
|
2985
|
+
get sync() {
|
|
2986
|
+
return n.inheritLocale;
|
|
2987
|
+
},
|
|
2988
|
+
set sync(r) {
|
|
2989
|
+
n.inheritLocale = r;
|
|
2990
|
+
},
|
|
2991
|
+
// warnInHtmlMessage
|
|
2992
|
+
get warnHtmlInMessage() {
|
|
2993
|
+
return n.warnHtmlMessage ? "warn" : "off";
|
|
2994
|
+
},
|
|
2995
|
+
set warnHtmlInMessage(r) {
|
|
2996
|
+
n.warnHtmlMessage = r !== "off";
|
|
2997
|
+
},
|
|
2998
|
+
// escapeParameterHtml
|
|
2999
|
+
get escapeParameterHtml() {
|
|
3000
|
+
return n.escapeParameter;
|
|
3001
|
+
},
|
|
3002
|
+
set escapeParameterHtml(r) {
|
|
3003
|
+
n.escapeParameter = r;
|
|
3004
|
+
},
|
|
3005
|
+
// preserveDirectiveContent
|
|
3006
|
+
get preserveDirectiveContent() {
|
|
3007
|
+
return process.env.NODE_ENV !== "production" && Z(le(J.NOT_SUPPORTED_PRESERVE_DIRECTIVE)), !0;
|
|
3008
|
+
},
|
|
3009
|
+
set preserveDirectiveContent(r) {
|
|
3010
|
+
process.env.NODE_ENV !== "production" && Z(le(J.NOT_SUPPORTED_PRESERVE_DIRECTIVE));
|
|
3011
|
+
},
|
|
3012
|
+
// pluralizationRules
|
|
3013
|
+
get pluralizationRules() {
|
|
3014
|
+
return n.pluralRules || {};
|
|
3015
|
+
},
|
|
3016
|
+
// for internal
|
|
3017
|
+
__composer: n,
|
|
3018
|
+
// t
|
|
3019
|
+
t(...r) {
|
|
3020
|
+
const [l, o, u] = r, _ = {};
|
|
3021
|
+
let p = null, T = null;
|
|
3022
|
+
if (!h(l))
|
|
3023
|
+
throw z($.INVALID_ARGUMENT);
|
|
3024
|
+
const d = l;
|
|
3025
|
+
return h(o) ? _.locale = o : K(o) ? p = o : F(o) && (T = o), K(u) ? p = u : F(u) && (T = u), Reflect.apply(n.t, n, [
|
|
3026
|
+
d,
|
|
3027
|
+
p || T || {},
|
|
3028
|
+
_
|
|
3029
|
+
]);
|
|
3030
|
+
},
|
|
3031
|
+
rt(...r) {
|
|
3032
|
+
return Reflect.apply(n.rt, n, [...r]);
|
|
3033
|
+
},
|
|
3034
|
+
// tc
|
|
3035
|
+
tc(...r) {
|
|
3036
|
+
const [l, o, u] = r, _ = { plural: 1 };
|
|
3037
|
+
let p = null, T = null;
|
|
3038
|
+
if (!h(l))
|
|
3039
|
+
throw z($.INVALID_ARGUMENT);
|
|
3040
|
+
const d = l;
|
|
3041
|
+
return h(o) ? _.locale = o : q(o) ? _.plural = o : K(o) ? p = o : F(o) && (T = o), h(u) ? _.locale = u : K(u) ? p = u : F(u) && (T = u), Reflect.apply(n.t, n, [
|
|
3042
|
+
d,
|
|
3043
|
+
p || T || {},
|
|
3044
|
+
_
|
|
3045
|
+
]);
|
|
3046
|
+
},
|
|
3047
|
+
// te
|
|
3048
|
+
te(r, l) {
|
|
3049
|
+
return n.te(r, l);
|
|
3050
|
+
},
|
|
3051
|
+
// tm
|
|
3052
|
+
tm(r) {
|
|
3053
|
+
return n.tm(r);
|
|
3054
|
+
},
|
|
3055
|
+
// getLocaleMessage
|
|
3056
|
+
getLocaleMessage(r) {
|
|
3057
|
+
return n.getLocaleMessage(r);
|
|
3058
|
+
},
|
|
3059
|
+
// setLocaleMessage
|
|
3060
|
+
setLocaleMessage(r, l) {
|
|
3061
|
+
n.setLocaleMessage(r, l);
|
|
3062
|
+
},
|
|
3063
|
+
// mergeLocaleMessage
|
|
3064
|
+
mergeLocaleMessage(r, l) {
|
|
3065
|
+
n.mergeLocaleMessage(r, l);
|
|
3066
|
+
},
|
|
3067
|
+
// d
|
|
3068
|
+
d(...r) {
|
|
3069
|
+
return Reflect.apply(n.d, n, [...r]);
|
|
3070
|
+
},
|
|
3071
|
+
// getDateTimeFormat
|
|
3072
|
+
getDateTimeFormat(r) {
|
|
3073
|
+
return n.getDateTimeFormat(r);
|
|
3074
|
+
},
|
|
3075
|
+
// setDateTimeFormat
|
|
3076
|
+
setDateTimeFormat(r, l) {
|
|
3077
|
+
n.setDateTimeFormat(r, l);
|
|
3078
|
+
},
|
|
3079
|
+
// mergeDateTimeFormat
|
|
3080
|
+
mergeDateTimeFormat(r, l) {
|
|
3081
|
+
n.mergeDateTimeFormat(r, l);
|
|
3082
|
+
},
|
|
3083
|
+
// n
|
|
3084
|
+
n(...r) {
|
|
3085
|
+
return Reflect.apply(n.n, n, [...r]);
|
|
3086
|
+
},
|
|
3087
|
+
// getNumberFormat
|
|
3088
|
+
getNumberFormat(r) {
|
|
3089
|
+
return n.getNumberFormat(r);
|
|
3090
|
+
},
|
|
3091
|
+
// setNumberFormat
|
|
3092
|
+
setNumberFormat(r, l) {
|
|
3093
|
+
n.setNumberFormat(r, l);
|
|
3094
|
+
},
|
|
3095
|
+
// mergeNumberFormat
|
|
3096
|
+
mergeNumberFormat(r, l) {
|
|
3097
|
+
n.mergeNumberFormat(r, l);
|
|
3098
|
+
},
|
|
3099
|
+
// getChoiceIndex
|
|
3100
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
3101
|
+
getChoiceIndex(r, l) {
|
|
3102
|
+
return process.env.NODE_ENV !== "production" && Z(le(J.NOT_SUPPORTED_GET_CHOICE_INDEX)), -1;
|
|
3103
|
+
}
|
|
3104
|
+
};
|
|
3105
|
+
return s.__extender = a, process.env.NODE_ENV !== "production" && (s.__enableEmitter = (r) => {
|
|
3106
|
+
const l = n;
|
|
3107
|
+
l[Me] && l[Me](r);
|
|
3108
|
+
}, s.__disableEmitter = () => {
|
|
3109
|
+
const r = n;
|
|
3110
|
+
r[ft] && r[ft]();
|
|
3111
|
+
}), s;
|
|
3112
|
+
}
|
|
3113
|
+
}
|
|
3114
|
+
const tn = {
|
|
3115
|
+
tag: {
|
|
3116
|
+
type: [String, Object]
|
|
3117
|
+
},
|
|
3118
|
+
locale: {
|
|
3119
|
+
type: String
|
|
3120
|
+
},
|
|
3121
|
+
scope: {
|
|
3122
|
+
type: String,
|
|
3123
|
+
// NOTE: avoid https://github.com/microsoft/rushstack/issues/1050
|
|
3124
|
+
validator: (e) => e === "parent" || e === "global",
|
|
3125
|
+
default: "parent"
|
|
3126
|
+
/* ComponentI18nScope */
|
|
3127
|
+
},
|
|
3128
|
+
i18n: {
|
|
3129
|
+
type: Object
|
|
3130
|
+
}
|
|
3131
|
+
};
|
|
3132
|
+
function ul({ slots: e }, t) {
|
|
3133
|
+
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((a, s) => [
|
|
3134
|
+
...a,
|
|
3135
|
+
// prettier-ignore
|
|
3136
|
+
...s.type === Jn ? s.children : [s]
|
|
3137
|
+
], []) : t.reduce((n, a) => {
|
|
3138
|
+
const s = e[a];
|
|
3139
|
+
return s && (n[a] = s()), n;
|
|
3140
|
+
}, Y());
|
|
3141
|
+
}
|
|
3142
|
+
function Vr(e) {
|
|
3143
|
+
return Jn;
|
|
3144
|
+
}
|
|
3145
|
+
const fl = /* @__PURE__ */ dt({
|
|
3146
|
+
/* eslint-disable */
|
|
3147
|
+
name: "i18n-t",
|
|
3148
|
+
props: te({
|
|
3149
|
+
keypath: {
|
|
3150
|
+
type: String,
|
|
3151
|
+
required: !0
|
|
3152
|
+
},
|
|
3153
|
+
plural: {
|
|
3154
|
+
type: [Number, String],
|
|
3155
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3156
|
+
validator: (e) => q(e) || !isNaN(e)
|
|
3157
|
+
}
|
|
3158
|
+
}, tn),
|
|
3159
|
+
/* eslint-enable */
|
|
3160
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3161
|
+
setup(e, t) {
|
|
3162
|
+
const { slots: n, attrs: a } = t, s = e.i18n || rn({
|
|
3163
|
+
useScope: e.scope,
|
|
3164
|
+
__useComponent: !0
|
|
3165
|
+
});
|
|
3166
|
+
return () => {
|
|
3167
|
+
const r = Object.keys(n).filter((T) => T !== "_"), l = Y();
|
|
3168
|
+
e.locale && (l.locale = e.locale), e.plural !== void 0 && (l.plural = h(e.plural) ? +e.plural : e.plural);
|
|
3169
|
+
const o = ul(t, r), u = s[Ht](e.keypath, o, l), _ = te(Y(), a), p = h(e.tag) || V(e.tag) ? e.tag : Vr();
|
|
3170
|
+
return Xn(p, _, u);
|
|
3171
|
+
};
|
|
3172
|
+
}
|
|
3173
|
+
}), Mt = fl;
|
|
3174
|
+
function _l(e) {
|
|
3175
|
+
return K(e) && !h(e[0]);
|
|
3176
|
+
}
|
|
3177
|
+
function $r(e, t, n, a) {
|
|
3178
|
+
const { slots: s, attrs: r } = t;
|
|
3179
|
+
return () => {
|
|
3180
|
+
const l = { part: !0 };
|
|
3181
|
+
let o = Y();
|
|
3182
|
+
e.locale && (l.locale = e.locale), h(e.format) ? l.key = e.format : V(e.format) && (h(e.format.key) && (l.key = e.format.key), o = Object.keys(e.format).reduce((d, A) => n.includes(A) ? te(Y(), d, { [A]: e.format[A] }) : d, Y()));
|
|
3183
|
+
const u = a(e.value, l, o);
|
|
3184
|
+
let _ = [l.key];
|
|
3185
|
+
K(u) ? _ = u.map((d, A) => {
|
|
3186
|
+
const D = s[d.type], P = D ? D({ [d.type]: d.value, index: A, parts: u }) : [d.value];
|
|
3187
|
+
return _l(P) && (P[0].key = `${d.type}-${A}`), P;
|
|
3188
|
+
}) : h(u) && (_ = [u]);
|
|
3189
|
+
const p = te(Y(), r), T = h(e.tag) || V(e.tag) ? e.tag : Vr();
|
|
3190
|
+
return Xn(T, p, _);
|
|
3191
|
+
};
|
|
3192
|
+
}
|
|
3193
|
+
const ml = /* @__PURE__ */ dt({
|
|
3194
|
+
/* eslint-disable */
|
|
3195
|
+
name: "i18n-n",
|
|
3196
|
+
props: te({
|
|
3197
|
+
value: {
|
|
3198
|
+
type: Number,
|
|
3199
|
+
required: !0
|
|
3200
|
+
},
|
|
3201
|
+
format: {
|
|
3202
|
+
type: [String, Object]
|
|
3203
|
+
}
|
|
3204
|
+
}, tn),
|
|
3205
|
+
/* eslint-enable */
|
|
3206
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3207
|
+
setup(e, t) {
|
|
3208
|
+
const n = e.i18n || rn({
|
|
3209
|
+
useScope: e.scope,
|
|
3210
|
+
__useComponent: !0
|
|
3211
|
+
});
|
|
3212
|
+
return $r(e, t, Dr, (...a) => (
|
|
3213
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3214
|
+
n[Yt](...a)
|
|
3215
|
+
));
|
|
3216
|
+
}
|
|
3217
|
+
}), Vn = ml, dl = /* @__PURE__ */ dt({
|
|
3218
|
+
/* eslint-disable */
|
|
3219
|
+
name: "i18n-d",
|
|
3220
|
+
props: te({
|
|
3221
|
+
value: {
|
|
3222
|
+
type: [Number, Date],
|
|
3223
|
+
required: !0
|
|
3224
|
+
},
|
|
3225
|
+
format: {
|
|
3226
|
+
type: [String, Object]
|
|
3227
|
+
}
|
|
3228
|
+
}, tn),
|
|
3229
|
+
/* eslint-enable */
|
|
3230
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3231
|
+
setup(e, t) {
|
|
3232
|
+
const n = e.i18n || rn({
|
|
3233
|
+
useScope: e.scope,
|
|
3234
|
+
__useComponent: !0
|
|
3235
|
+
});
|
|
3236
|
+
return $r(e, t, Sr, (...a) => (
|
|
3237
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3238
|
+
n[xt](...a)
|
|
3239
|
+
));
|
|
3240
|
+
}
|
|
3241
|
+
}), $n = dl;
|
|
3242
|
+
function El(e, t) {
|
|
3243
|
+
const n = e;
|
|
3244
|
+
if (e.mode === "composition")
|
|
3245
|
+
return n.__getInstance(t) || e.global;
|
|
3246
|
+
{
|
|
3247
|
+
const a = n.__getInstance(t);
|
|
3248
|
+
return a != null ? a.__composer : e.global.__composer;
|
|
3249
|
+
}
|
|
3250
|
+
}
|
|
3251
|
+
function gl(e) {
|
|
3252
|
+
const t = (l) => {
|
|
3253
|
+
const { instance: o, modifiers: u, value: _ } = l;
|
|
3254
|
+
if (!o || !o.$)
|
|
3255
|
+
throw z($.UNEXPECTED_ERROR);
|
|
3256
|
+
const p = El(e, o.$);
|
|
3257
|
+
process.env.NODE_ENV !== "production" && u.preserve && Z(le(J.NOT_SUPPORTED_PRESERVE));
|
|
3258
|
+
const T = Wn(_);
|
|
3259
|
+
return [
|
|
3260
|
+
Reflect.apply(p.t, p, [...Gn(T)]),
|
|
3261
|
+
p
|
|
3262
|
+
];
|
|
3263
|
+
};
|
|
3264
|
+
return {
|
|
3265
|
+
created: (l, o) => {
|
|
3266
|
+
const [u, _] = t(o);
|
|
3267
|
+
de && e.global === _ && (l.__i18nWatcher = Ut(_.locale, () => {
|
|
3268
|
+
o.instance && o.instance.$forceUpdate();
|
|
3269
|
+
})), l.__composer = _, l.textContent = u;
|
|
3270
|
+
},
|
|
3271
|
+
unmounted: (l) => {
|
|
3272
|
+
de && l.__i18nWatcher && (l.__i18nWatcher(), l.__i18nWatcher = void 0, delete l.__i18nWatcher), l.__composer && (l.__composer = void 0, delete l.__composer);
|
|
3273
|
+
},
|
|
3274
|
+
beforeUpdate: (l, { value: o }) => {
|
|
3275
|
+
if (l.__composer) {
|
|
3276
|
+
const u = l.__composer, _ = Wn(o);
|
|
3277
|
+
l.textContent = Reflect.apply(u.t, u, [
|
|
3278
|
+
...Gn(_)
|
|
3279
|
+
]);
|
|
3280
|
+
}
|
|
3281
|
+
},
|
|
3282
|
+
getSSRProps: (l) => {
|
|
3283
|
+
const [o] = t(l);
|
|
3284
|
+
return { textContent: o };
|
|
3285
|
+
}
|
|
3286
|
+
};
|
|
3287
|
+
}
|
|
3288
|
+
function Wn(e) {
|
|
3289
|
+
if (h(e))
|
|
3290
|
+
return { path: e };
|
|
3291
|
+
if (F(e)) {
|
|
3292
|
+
if (!("path" in e))
|
|
3293
|
+
throw z($.REQUIRED_VALUE, "path");
|
|
3294
|
+
return e;
|
|
3295
|
+
} else
|
|
3296
|
+
throw z($.INVALID_VALUE);
|
|
3297
|
+
}
|
|
3298
|
+
function Gn(e) {
|
|
3299
|
+
const { path: t, locale: n, args: a, choice: s, plural: r } = e, l = {}, o = a || {};
|
|
3300
|
+
return h(n) && (l.locale = n), q(s) && (l.plural = s), q(r) && (l.plural = r), [t, o, l];
|
|
3301
|
+
}
|
|
3302
|
+
function Nl(e, t, ...n) {
|
|
3303
|
+
const a = F(n[0]) ? n[0] : {}, s = !!a.useI18nComponentName, r = U(a.globalInstall) ? a.globalInstall : !0;
|
|
3304
|
+
process.env.NODE_ENV !== "production" && r && s && Z(le(J.COMPONENT_NAME_LEGACY_COMPATIBLE, {
|
|
3305
|
+
name: Mt.name
|
|
3306
|
+
})), r && ([s ? "i18n" : Mt.name, "I18nT"].forEach((l) => e.component(l, Mt)), [Vn.name, "I18nN"].forEach((l) => e.component(l, Vn)), [$n.name, "I18nD"].forEach((l) => e.component(l, $n))), e.directive("t", gl(t));
|
|
3307
|
+
}
|
|
3308
|
+
const Ft = {
|
|
3309
|
+
"vue-devtools-plugin-vue-i18n": "Vue I18n devtools",
|
|
3310
|
+
"vue-i18n-resource-inspector": "I18n Resources",
|
|
3311
|
+
"vue-i18n-timeline": "Vue I18n"
|
|
3312
|
+
}, pl = {
|
|
3313
|
+
"vue-i18n-resource-inspector": "Search for scopes ..."
|
|
3314
|
+
}, Tl = {
|
|
3315
|
+
"vue-i18n-timeline": 16764185
|
|
3316
|
+
}, Wr = "vue-i18n: composer properties";
|
|
3317
|
+
let Kt;
|
|
3318
|
+
async function Ol(e, t) {
|
|
3319
|
+
return new Promise((n, a) => {
|
|
3320
|
+
try {
|
|
3321
|
+
nl({
|
|
3322
|
+
id: "vue-devtools-plugin-vue-i18n",
|
|
3323
|
+
label: Ft[
|
|
3324
|
+
"vue-devtools-plugin-vue-i18n"
|
|
3325
|
+
/* VueDevToolsIDs.PLUGIN */
|
|
3326
|
+
],
|
|
3327
|
+
packageName: "vue-i18n",
|
|
3328
|
+
homepage: "https://vue-i18n.intlify.dev",
|
|
3329
|
+
logo: "https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",
|
|
3330
|
+
componentStateTypes: [Wr],
|
|
3331
|
+
app: e
|
|
3332
|
+
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
3333
|
+
}, (s) => {
|
|
3334
|
+
Kt = s, s.on.visitComponentTree(({ componentInstance: l, treeNode: o }) => {
|
|
3335
|
+
Ll(l, o, t);
|
|
3336
|
+
}), s.on.inspectComponent(({ componentInstance: l, instanceData: o }) => {
|
|
3337
|
+
l.vnode.el && l.vnode.el.__VUE_I18N__ && o && (t.mode === "legacy" ? l.vnode.el.__VUE_I18N__ !== t.global.__composer && Hn(o, l.vnode.el.__VUE_I18N__) : Hn(o, l.vnode.el.__VUE_I18N__));
|
|
3338
|
+
}), s.addInspector({
|
|
3339
|
+
id: "vue-i18n-resource-inspector",
|
|
3340
|
+
label: Ft[
|
|
3341
|
+
"vue-i18n-resource-inspector"
|
|
3342
|
+
/* VueDevToolsIDs.CUSTOM_INSPECTOR */
|
|
3343
|
+
],
|
|
3344
|
+
icon: "language",
|
|
3345
|
+
treeFilterPlaceholder: pl[
|
|
3346
|
+
"vue-i18n-resource-inspector"
|
|
3347
|
+
/* VueDevToolsIDs.CUSTOM_INSPECTOR */
|
|
3348
|
+
]
|
|
3349
|
+
}), s.on.getInspectorTree((l) => {
|
|
3350
|
+
l.app === e && l.inspectorId === "vue-i18n-resource-inspector" && Al(l, t);
|
|
3351
|
+
});
|
|
3352
|
+
const r = /* @__PURE__ */ new Map();
|
|
3353
|
+
s.on.getInspectorState(async (l) => {
|
|
3354
|
+
if (l.app === e && l.inspectorId === "vue-i18n-resource-inspector")
|
|
3355
|
+
if (s.unhighlightElement(), Pl(l, t), l.nodeId === "global") {
|
|
3356
|
+
if (!r.has(l.app)) {
|
|
3357
|
+
const [o] = await s.getComponentInstances(l.app);
|
|
3358
|
+
r.set(l.app, o);
|
|
3359
|
+
}
|
|
3360
|
+
s.highlightElement(r.get(l.app));
|
|
3361
|
+
} else {
|
|
3362
|
+
const o = Cl(l.nodeId, t);
|
|
3363
|
+
o && s.highlightElement(o);
|
|
3364
|
+
}
|
|
3365
|
+
}), s.on.editInspectorState((l) => {
|
|
3366
|
+
l.app === e && l.inspectorId === "vue-i18n-resource-inspector" && Dl(l, t);
|
|
3367
|
+
}), s.addTimelineLayer({
|
|
3368
|
+
id: "vue-i18n-timeline",
|
|
3369
|
+
label: Ft[
|
|
3370
|
+
"vue-i18n-timeline"
|
|
3371
|
+
/* VueDevToolsIDs.TIMELINE */
|
|
3372
|
+
],
|
|
3373
|
+
color: Tl[
|
|
3374
|
+
"vue-i18n-timeline"
|
|
3375
|
+
/* VueDevToolsIDs.TIMELINE */
|
|
3376
|
+
]
|
|
3377
|
+
}), n(!0);
|
|
3378
|
+
});
|
|
3379
|
+
} catch (s) {
|
|
3380
|
+
console.error(s), a(!1);
|
|
3381
|
+
}
|
|
3382
|
+
});
|
|
3383
|
+
}
|
|
3384
|
+
function Gr(e) {
|
|
3385
|
+
return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
|
|
3386
|
+
}
|
|
3387
|
+
function Ll(e, t, n) {
|
|
3388
|
+
const a = n.mode === "composition" ? n.global : n.global.__composer;
|
|
3389
|
+
if (e && e.vnode.el && e.vnode.el.__VUE_I18N__ && e.vnode.el.__VUE_I18N__ !== a) {
|
|
3390
|
+
const s = {
|
|
3391
|
+
label: `i18n (${Gr(e)} Scope)`,
|
|
3392
|
+
textColor: 0,
|
|
3393
|
+
backgroundColor: 16764185
|
|
3394
|
+
};
|
|
3395
|
+
t.tags.push(s);
|
|
3396
|
+
}
|
|
3397
|
+
}
|
|
3398
|
+
function Hn(e, t) {
|
|
3399
|
+
const n = Wr;
|
|
3400
|
+
e.state.push({
|
|
3401
|
+
type: n,
|
|
3402
|
+
key: "locale",
|
|
3403
|
+
editable: !0,
|
|
3404
|
+
value: t.locale.value
|
|
3405
|
+
}), e.state.push({
|
|
3406
|
+
type: n,
|
|
3407
|
+
key: "availableLocales",
|
|
3408
|
+
editable: !1,
|
|
3409
|
+
value: t.availableLocales
|
|
3410
|
+
}), e.state.push({
|
|
3411
|
+
type: n,
|
|
3412
|
+
key: "fallbackLocale",
|
|
3413
|
+
editable: !0,
|
|
3414
|
+
value: t.fallbackLocale.value
|
|
3415
|
+
}), e.state.push({
|
|
3416
|
+
type: n,
|
|
3417
|
+
key: "inheritLocale",
|
|
3418
|
+
editable: !0,
|
|
3419
|
+
value: t.inheritLocale
|
|
3420
|
+
}), e.state.push({
|
|
3421
|
+
type: n,
|
|
3422
|
+
key: "messages",
|
|
3423
|
+
editable: !1,
|
|
3424
|
+
value: nn(t.messages.value)
|
|
3425
|
+
}), e.state.push({
|
|
3426
|
+
type: n,
|
|
3427
|
+
key: "datetimeFormats",
|
|
3428
|
+
editable: !1,
|
|
3429
|
+
value: t.datetimeFormats.value
|
|
3430
|
+
}), e.state.push({
|
|
3431
|
+
type: n,
|
|
3432
|
+
key: "numberFormats",
|
|
3433
|
+
editable: !1,
|
|
3434
|
+
value: t.numberFormats.value
|
|
3435
|
+
});
|
|
3436
|
+
}
|
|
3437
|
+
function nn(e) {
|
|
3438
|
+
const t = {};
|
|
3439
|
+
return Object.keys(e).forEach((n) => {
|
|
3440
|
+
const a = e[n];
|
|
3441
|
+
x(a) && "source" in a ? t[n] = hl(a) : fe(a) && a.loc && a.loc.source ? t[n] = a.loc.source : V(a) ? t[n] = nn(a) : t[n] = a;
|
|
3442
|
+
}), t;
|
|
3443
|
+
}
|
|
3444
|
+
const vl = {
|
|
3445
|
+
"<": "<",
|
|
3446
|
+
">": ">",
|
|
3447
|
+
'"': """,
|
|
3448
|
+
"&": "&"
|
|
3449
|
+
};
|
|
3450
|
+
function Il(e) {
|
|
3451
|
+
return e.replace(/[<>"&]/g, bl);
|
|
3452
|
+
}
|
|
3453
|
+
function bl(e) {
|
|
3454
|
+
return vl[e] || e;
|
|
3455
|
+
}
|
|
3456
|
+
function hl(e) {
|
|
3457
|
+
return {
|
|
3458
|
+
_custom: {
|
|
3459
|
+
type: "function",
|
|
3460
|
+
display: `<span>ƒ</span> ${e.source ? `("${Il(e.source)}")` : "(?)"}`
|
|
3461
|
+
}
|
|
3462
|
+
};
|
|
3463
|
+
}
|
|
3464
|
+
function Al(e, t) {
|
|
3465
|
+
e.rootNodes.push({
|
|
3466
|
+
id: "global",
|
|
3467
|
+
label: "Global Scope"
|
|
3468
|
+
});
|
|
3469
|
+
const n = t.mode === "composition" ? t.global : t.global.__composer;
|
|
3470
|
+
for (const [a, s] of t.__instances) {
|
|
3471
|
+
const r = t.mode === "composition" ? s : s.__composer;
|
|
3472
|
+
n !== r && e.rootNodes.push({
|
|
3473
|
+
id: r.id.toString(),
|
|
3474
|
+
label: `${Gr(a)} Scope`
|
|
3475
|
+
});
|
|
3476
|
+
}
|
|
3477
|
+
}
|
|
3478
|
+
function Cl(e, t) {
|
|
3479
|
+
let n = null;
|
|
3480
|
+
if (e !== "global") {
|
|
3481
|
+
for (const [a, s] of t.__instances.entries())
|
|
3482
|
+
if (s.id.toString() === e) {
|
|
3483
|
+
n = a;
|
|
3484
|
+
break;
|
|
3485
|
+
}
|
|
3486
|
+
}
|
|
3487
|
+
return n;
|
|
3488
|
+
}
|
|
3489
|
+
function Hr(e, t) {
|
|
3490
|
+
if (e === "global")
|
|
3491
|
+
return t.mode === "composition" ? t.global : t.global.__composer;
|
|
3492
|
+
{
|
|
3493
|
+
const n = Array.from(t.__instances.values()).find((a) => a.id.toString() === e);
|
|
3494
|
+
return n ? t.mode === "composition" ? n : n.__composer : null;
|
|
3495
|
+
}
|
|
3496
|
+
}
|
|
3497
|
+
function Pl(e, t) {
|
|
3498
|
+
const n = Hr(e.nodeId, t);
|
|
3499
|
+
return n && (e.state = Sl(n)), null;
|
|
3500
|
+
}
|
|
3501
|
+
function Sl(e) {
|
|
3502
|
+
const t = {}, n = "Locale related info", a = [
|
|
3503
|
+
{
|
|
3504
|
+
type: n,
|
|
3505
|
+
key: "locale",
|
|
3506
|
+
editable: !0,
|
|
3507
|
+
value: e.locale.value
|
|
3508
|
+
},
|
|
3509
|
+
{
|
|
3510
|
+
type: n,
|
|
3511
|
+
key: "fallbackLocale",
|
|
3512
|
+
editable: !0,
|
|
3513
|
+
value: e.fallbackLocale.value
|
|
3514
|
+
},
|
|
3515
|
+
{
|
|
3516
|
+
type: n,
|
|
3517
|
+
key: "availableLocales",
|
|
3518
|
+
editable: !1,
|
|
3519
|
+
value: e.availableLocales
|
|
3520
|
+
},
|
|
3521
|
+
{
|
|
3522
|
+
type: n,
|
|
3523
|
+
key: "inheritLocale",
|
|
3524
|
+
editable: !0,
|
|
3525
|
+
value: e.inheritLocale
|
|
3526
|
+
}
|
|
3527
|
+
];
|
|
3528
|
+
t[n] = a;
|
|
3529
|
+
const s = "Locale messages info", r = [
|
|
3530
|
+
{
|
|
3531
|
+
type: s,
|
|
3532
|
+
key: "messages",
|
|
3533
|
+
editable: !1,
|
|
3534
|
+
value: nn(e.messages.value)
|
|
3535
|
+
}
|
|
3536
|
+
];
|
|
3537
|
+
t[s] = r;
|
|
3538
|
+
{
|
|
3539
|
+
const l = "Datetime formats info", o = [
|
|
3540
|
+
{
|
|
3541
|
+
type: l,
|
|
3542
|
+
key: "datetimeFormats",
|
|
3543
|
+
editable: !1,
|
|
3544
|
+
value: e.datetimeFormats.value
|
|
3545
|
+
}
|
|
3546
|
+
];
|
|
3547
|
+
t[l] = o;
|
|
3548
|
+
const u = "Datetime formats info", _ = [
|
|
3549
|
+
{
|
|
3550
|
+
type: u,
|
|
3551
|
+
key: "numberFormats",
|
|
3552
|
+
editable: !1,
|
|
3553
|
+
value: e.numberFormats.value
|
|
3554
|
+
}
|
|
3555
|
+
];
|
|
3556
|
+
t[u] = _;
|
|
3557
|
+
}
|
|
3558
|
+
return t;
|
|
3559
|
+
}
|
|
3560
|
+
function mt(e, t) {
|
|
3561
|
+
if (Kt) {
|
|
3562
|
+
let n;
|
|
3563
|
+
t && "groupId" in t && (n = t.groupId, delete t.groupId), Kt.addTimelineEvent({
|
|
3564
|
+
layerId: "vue-i18n-timeline",
|
|
3565
|
+
event: {
|
|
3566
|
+
title: e,
|
|
3567
|
+
groupId: n,
|
|
3568
|
+
time: Date.now(),
|
|
3569
|
+
meta: {},
|
|
3570
|
+
data: t || {},
|
|
3571
|
+
logType: e === "compile-error" ? "error" : e === "fallback" || e === "missing" ? "warning" : "default"
|
|
3572
|
+
}
|
|
3573
|
+
});
|
|
3574
|
+
}
|
|
3575
|
+
}
|
|
3576
|
+
function Dl(e, t) {
|
|
3577
|
+
const n = Hr(e.nodeId, t);
|
|
3578
|
+
if (n) {
|
|
3579
|
+
const [a] = e.path;
|
|
3580
|
+
a === "locale" && h(e.state.value) ? n.locale.value = e.state.value : a === "fallbackLocale" && (h(e.state.value) || K(e.state.value) || V(e.state.value)) ? n.fallbackLocale.value = e.state.value : a === "inheritLocale" && U(e.state.value) && (n.inheritLocale = e.state.value);
|
|
3581
|
+
}
|
|
3582
|
+
}
|
|
3583
|
+
function Rl(e, t, n) {
|
|
3584
|
+
return {
|
|
3585
|
+
beforeCreate() {
|
|
3586
|
+
const a = it();
|
|
3587
|
+
if (!a)
|
|
3588
|
+
throw z($.UNEXPECTED_ERROR);
|
|
3589
|
+
const s = this.$options;
|
|
3590
|
+
if (s.i18n) {
|
|
3591
|
+
const r = s.i18n;
|
|
3592
|
+
if (s.__i18n && (r.__i18n = s.__i18n), r.__root = t, this === this.$root)
|
|
3593
|
+
this.$i18n = xn(e, r);
|
|
3594
|
+
else {
|
|
3595
|
+
r.__injectWithOption = !0, r.__extender = n.__vueI18nExtend, this.$i18n = jt(r);
|
|
3596
|
+
const l = this.$i18n;
|
|
3597
|
+
l.__extender && (l.__disposer = l.__extender(this.$i18n));
|
|
3598
|
+
}
|
|
3599
|
+
} else if (s.__i18n)
|
|
3600
|
+
if (this === this.$root)
|
|
3601
|
+
this.$i18n = xn(e, s);
|
|
3602
|
+
else {
|
|
3603
|
+
this.$i18n = jt({
|
|
3604
|
+
__i18n: s.__i18n,
|
|
3605
|
+
__injectWithOption: !0,
|
|
3606
|
+
__extender: n.__vueI18nExtend,
|
|
3607
|
+
__root: t
|
|
3608
|
+
});
|
|
3609
|
+
const r = this.$i18n;
|
|
3610
|
+
r.__extender && (r.__disposer = r.__extender(this.$i18n));
|
|
3611
|
+
}
|
|
3612
|
+
else
|
|
3613
|
+
this.$i18n = e;
|
|
3614
|
+
s.__i18nGlobal && wr(t, s, s), this.$t = (...r) => this.$i18n.t(...r), this.$rt = (...r) => this.$i18n.rt(...r), this.$tc = (...r) => this.$i18n.tc(...r), this.$te = (r, l) => this.$i18n.te(r, l), this.$d = (...r) => this.$i18n.d(...r), this.$n = (...r) => this.$i18n.n(...r), this.$tm = (r) => this.$i18n.tm(r), n.__setInstance(a, this.$i18n);
|
|
3615
|
+
},
|
|
3616
|
+
mounted() {
|
|
3617
|
+
if (process.env.NODE_ENV !== "production" && this.$el && this.$i18n) {
|
|
3618
|
+
const a = this.$i18n;
|
|
3619
|
+
this.$el.__VUE_I18N__ = a.__composer;
|
|
3620
|
+
const s = this.__v_emitter = Jt();
|
|
3621
|
+
a.__enableEmitter && a.__enableEmitter(s), s.on("*", mt);
|
|
3622
|
+
}
|
|
3623
|
+
},
|
|
3624
|
+
unmounted() {
|
|
3625
|
+
const a = it();
|
|
3626
|
+
if (!a)
|
|
3627
|
+
throw z($.UNEXPECTED_ERROR);
|
|
3628
|
+
const s = this.$i18n;
|
|
3629
|
+
process.env.NODE_ENV !== "production" && this.$el && this.$el.__VUE_I18N__ && (this.__v_emitter && (this.__v_emitter.off("*", mt), delete this.__v_emitter), this.$i18n && (s.__disableEmitter && s.__disableEmitter(), delete this.$el.__VUE_I18N__)), delete this.$t, delete this.$rt, delete this.$tc, delete this.$te, delete this.$d, delete this.$n, delete this.$tm, s.__disposer && (s.__disposer(), delete s.__disposer, delete s.__extender), n.__deleteInstance(a), delete this.$i18n;
|
|
3630
|
+
}
|
|
3631
|
+
};
|
|
3632
|
+
}
|
|
3633
|
+
function xn(e, t) {
|
|
3634
|
+
e.locale = t.locale || e.locale, e.fallbackLocale = t.fallbackLocale || e.fallbackLocale, e.missing = t.missing || e.missing, e.silentTranslationWarn = t.silentTranslationWarn || e.silentFallbackWarn, e.silentFallbackWarn = t.silentFallbackWarn || e.silentFallbackWarn, e.formatFallbackMessages = t.formatFallbackMessages || e.formatFallbackMessages, e.postTranslation = t.postTranslation || e.postTranslation, e.warnHtmlInMessage = t.warnHtmlInMessage || e.warnHtmlInMessage, e.escapeParameterHtml = t.escapeParameterHtml || e.escapeParameterHtml, e.sync = t.sync || e.sync, e.__composer[Mr](t.pluralizationRules || e.pluralizationRules);
|
|
3635
|
+
const n = St(e.locale, {
|
|
3636
|
+
messages: t.messages,
|
|
3637
|
+
__i18n: t.__i18n
|
|
3638
|
+
});
|
|
3639
|
+
return Object.keys(n).forEach((a) => e.mergeLocaleMessage(a, n[a])), t.datetimeFormats && Object.keys(t.datetimeFormats).forEach((a) => e.mergeDateTimeFormat(a, t.datetimeFormats[a])), t.numberFormats && Object.keys(t.numberFormats).forEach((a) => e.mergeNumberFormat(a, t.numberFormats[a])), e;
|
|
3640
|
+
}
|
|
3641
|
+
const kl = /* @__PURE__ */ pe("global-vue-i18n");
|
|
3642
|
+
function yl(e = {}, t) {
|
|
3643
|
+
const n = __VUE_I18N_LEGACY_API__ && U(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__, a = U(e.globalInjection) ? e.globalInjection : !0, s = __VUE_I18N_LEGACY_API__ && n ? !!e.allowComposition : !0, r = /* @__PURE__ */ new Map(), [l, o] = Ml(e, n), u = /* @__PURE__ */ pe(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
|
|
3644
|
+
process.env.NODE_ENV !== "production" && n && s && Z(le(J.NOTICE_DROP_ALLOW_COMPOSITION));
|
|
3645
|
+
function _(d) {
|
|
3646
|
+
return r.get(d) || null;
|
|
3647
|
+
}
|
|
3648
|
+
function p(d, A) {
|
|
3649
|
+
r.set(d, A);
|
|
3650
|
+
}
|
|
3651
|
+
function T(d) {
|
|
3652
|
+
r.delete(d);
|
|
3653
|
+
}
|
|
3654
|
+
{
|
|
3655
|
+
const d = {
|
|
3656
|
+
// mode
|
|
3657
|
+
get mode() {
|
|
3658
|
+
return __VUE_I18N_LEGACY_API__ && n ? "legacy" : "composition";
|
|
3659
|
+
},
|
|
3660
|
+
// allowComposition
|
|
3661
|
+
get allowComposition() {
|
|
3662
|
+
return s;
|
|
3663
|
+
},
|
|
3664
|
+
// install plugin
|
|
3665
|
+
async install(A, ...D) {
|
|
3666
|
+
if (process.env.NODE_ENV !== "production" && (A.__VUE_I18N__ = d), A.__VUE_I18N_SYMBOL__ = u, A.provide(A.__VUE_I18N_SYMBOL__, d), F(D[0])) {
|
|
3667
|
+
const y = D[0];
|
|
3668
|
+
d.__composerExtend = y.__composerExtend, d.__vueI18nExtend = y.__vueI18nExtend;
|
|
3669
|
+
}
|
|
3670
|
+
let P = null;
|
|
3671
|
+
!n && a && (P = xl(A, d.global)), __VUE_I18N_FULL_INSTALL__ && Nl(A, d, ...D), __VUE_I18N_LEGACY_API__ && n && A.mixin(Rl(o, o.__composer, d));
|
|
3672
|
+
const S = A.unmount;
|
|
3673
|
+
if (A.unmount = () => {
|
|
3674
|
+
P && P(), d.dispose(), S();
|
|
3675
|
+
}, process.env.NODE_ENV !== "production") {
|
|
3676
|
+
if (!await Ol(A, d))
|
|
3677
|
+
throw z($.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
3678
|
+
const R = Jt();
|
|
3679
|
+
if (n) {
|
|
3680
|
+
const f = o;
|
|
3681
|
+
f.__enableEmitter && f.__enableEmitter(R);
|
|
3682
|
+
} else {
|
|
3683
|
+
const f = o;
|
|
3684
|
+
f[Me] && f[Me](R);
|
|
3685
|
+
}
|
|
3686
|
+
R.on("*", mt);
|
|
3687
|
+
}
|
|
3688
|
+
},
|
|
3689
|
+
// global accessor
|
|
3690
|
+
get global() {
|
|
3691
|
+
return o;
|
|
3692
|
+
},
|
|
3693
|
+
dispose() {
|
|
3694
|
+
l.stop();
|
|
3695
|
+
},
|
|
3696
|
+
// @internal
|
|
3697
|
+
__instances: r,
|
|
3698
|
+
// @internal
|
|
3699
|
+
__getInstance: _,
|
|
3700
|
+
// @internal
|
|
3701
|
+
__setInstance: p,
|
|
3702
|
+
// @internal
|
|
3703
|
+
__deleteInstance: T
|
|
3704
|
+
};
|
|
3705
|
+
return d;
|
|
3706
|
+
}
|
|
3707
|
+
}
|
|
3708
|
+
function rn(e = {}) {
|
|
3709
|
+
const t = it();
|
|
3710
|
+
if (t == null)
|
|
3711
|
+
throw z($.MUST_BE_CALL_SETUP_TOP);
|
|
3712
|
+
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
3713
|
+
throw z($.NOT_INSTALLED);
|
|
3714
|
+
const n = Fl(t), a = wl(n), s = Ur(t), r = Ul(e, s);
|
|
3715
|
+
if (__VUE_I18N_LEGACY_API__ && n.mode === "legacy" && !e.__useComponent) {
|
|
3716
|
+
if (!n.allowComposition)
|
|
3717
|
+
throw z($.NOT_AVAILABLE_IN_LEGACY_MODE);
|
|
3718
|
+
return Gl(t, r, a, e);
|
|
3719
|
+
}
|
|
3720
|
+
if (r === "global")
|
|
3721
|
+
return wr(a, e, s), a;
|
|
3722
|
+
if (r === "parent") {
|
|
3723
|
+
let u = Vl(n, t, e.__useComponent);
|
|
3724
|
+
return u == null && (process.env.NODE_ENV !== "production" && Z(le(J.NOT_FOUND_PARENT_SCOPE)), u = a), u;
|
|
3725
|
+
}
|
|
3726
|
+
const l = n;
|
|
3727
|
+
let o = l.__getInstance(t);
|
|
3728
|
+
if (o == null) {
|
|
3729
|
+
const u = te({}, e);
|
|
3730
|
+
"__i18n" in s && (u.__i18n = s.__i18n), a && (u.__root = a), o = en(u), l.__composerExtend && (o[Bt] = l.__composerExtend(o)), Wl(l, t, o), l.__setInstance(t, o);
|
|
3731
|
+
}
|
|
3732
|
+
return o;
|
|
3733
|
+
}
|
|
3734
|
+
function Ml(e, t, n) {
|
|
3735
|
+
const a = Br();
|
|
3736
|
+
{
|
|
3737
|
+
const s = __VUE_I18N_LEGACY_API__ && t ? a.run(() => jt(e)) : a.run(() => en(e));
|
|
3738
|
+
if (s == null)
|
|
3739
|
+
throw z($.UNEXPECTED_ERROR);
|
|
3740
|
+
return [a, s];
|
|
3741
|
+
}
|
|
3742
|
+
}
|
|
3743
|
+
function Fl(e) {
|
|
3744
|
+
{
|
|
3745
|
+
const t = Kr(e.isCE ? kl : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
3746
|
+
if (!t)
|
|
3747
|
+
throw z(e.isCE ? $.NOT_INSTALLED_WITH_PROVIDE : $.UNEXPECTED_ERROR);
|
|
3748
|
+
return t;
|
|
3749
|
+
}
|
|
3750
|
+
}
|
|
3751
|
+
function Ul(e, t) {
|
|
3752
|
+
return bt(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
3753
|
+
}
|
|
3754
|
+
function wl(e) {
|
|
3755
|
+
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
3756
|
+
}
|
|
3757
|
+
function Vl(e, t, n = !1) {
|
|
3758
|
+
let a = null;
|
|
3759
|
+
const s = t.root;
|
|
3760
|
+
let r = $l(t, n);
|
|
3761
|
+
for (; r != null; ) {
|
|
3762
|
+
const l = e;
|
|
3763
|
+
if (e.mode === "composition")
|
|
3764
|
+
a = l.__getInstance(r);
|
|
3765
|
+
else if (__VUE_I18N_LEGACY_API__) {
|
|
3766
|
+
const o = l.__getInstance(r);
|
|
3767
|
+
o != null && (a = o.__composer, n && a && !a[Fr] && (a = null));
|
|
3768
|
+
}
|
|
3769
|
+
if (a != null || s === r)
|
|
3770
|
+
break;
|
|
3771
|
+
r = r.parent;
|
|
3772
|
+
}
|
|
3773
|
+
return a;
|
|
3774
|
+
}
|
|
3775
|
+
function $l(e, t = !1) {
|
|
3776
|
+
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
3777
|
+
}
|
|
3778
|
+
function Wl(e, t, n) {
|
|
3779
|
+
let a = null;
|
|
3780
|
+
Jr(() => {
|
|
3781
|
+
if (process.env.NODE_ENV !== "production" && t.vnode.el) {
|
|
3782
|
+
t.vnode.el.__VUE_I18N__ = n, a = Jt();
|
|
3783
|
+
const s = n;
|
|
3784
|
+
s[Me] && s[Me](a), a.on("*", mt);
|
|
3785
|
+
}
|
|
3786
|
+
}, t), Qr(() => {
|
|
3787
|
+
const s = n;
|
|
3788
|
+
process.env.NODE_ENV !== "production" && t.vnode.el && t.vnode.el.__VUE_I18N__ && (a && a.off("*", mt), s[ft] && s[ft](), delete t.vnode.el.__VUE_I18N__), e.__deleteInstance(t);
|
|
3789
|
+
const r = s[Bt];
|
|
3790
|
+
r && (r(), delete s[Bt]);
|
|
3791
|
+
}, t);
|
|
3792
|
+
}
|
|
3793
|
+
function Gl(e, t, n, a = {}) {
|
|
3794
|
+
const s = t === "local", r = Kn(null);
|
|
3795
|
+
if (s && e.proxy && !(e.proxy.$options.i18n || e.proxy.$options.__i18n))
|
|
3796
|
+
throw z($.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);
|
|
3797
|
+
const l = U(a.inheritLocale) ? a.inheritLocale : !h(a.locale), o = Re(
|
|
3798
|
+
// prettier-ignore
|
|
3799
|
+
!s || l ? n.locale.value : h(a.locale) ? a.locale : xe
|
|
3800
|
+
), u = Re(
|
|
3801
|
+
// prettier-ignore
|
|
3802
|
+
!s || l ? n.fallbackLocale.value : h(a.fallbackLocale) || K(a.fallbackLocale) || F(a.fallbackLocale) || a.fallbackLocale === !1 ? a.fallbackLocale : o.value
|
|
3803
|
+
), _ = Re(St(o.value, a)), p = Re(F(a.datetimeFormats) ? a.datetimeFormats : { [o.value]: {} }), T = Re(F(a.numberFormats) ? a.numberFormats : { [o.value]: {} }), d = s ? n.missingWarn : U(a.missingWarn) || be(a.missingWarn) ? a.missingWarn : !0, A = s ? n.fallbackWarn : U(a.fallbackWarn) || be(a.fallbackWarn) ? a.fallbackWarn : !0, D = s ? n.fallbackRoot : U(a.fallbackRoot) ? a.fallbackRoot : !0, P = !!a.fallbackFormat, S = x(a.missing) ? a.missing : null, y = x(a.postTranslation) ? a.postTranslation : null, R = s ? n.warnHtmlMessage : U(a.warnHtmlMessage) ? a.warnHtmlMessage : !0, f = !!a.escapeParameter, E = s ? n.modifiers : F(a.modifiers) ? a.modifiers : {}, L = a.pluralRules || s && n.pluralRules;
|
|
3804
|
+
function g() {
|
|
3805
|
+
return [
|
|
3806
|
+
o.value,
|
|
3807
|
+
u.value,
|
|
3808
|
+
_.value,
|
|
3809
|
+
p.value,
|
|
3810
|
+
T.value
|
|
3811
|
+
];
|
|
3812
|
+
}
|
|
3813
|
+
const v = ge({
|
|
3814
|
+
get: () => r.value ? r.value.locale.value : o.value,
|
|
3815
|
+
set: (b) => {
|
|
3816
|
+
r.value && (r.value.locale.value = b), o.value = b;
|
|
3817
|
+
}
|
|
3818
|
+
}), C = ge({
|
|
3819
|
+
get: () => r.value ? r.value.fallbackLocale.value : u.value,
|
|
3820
|
+
set: (b) => {
|
|
3821
|
+
r.value && (r.value.fallbackLocale.value = b), u.value = b;
|
|
3822
|
+
}
|
|
3823
|
+
}), I = ge(() => r.value ? r.value.messages.value : _.value), j = ge(() => p.value), oe = ge(() => T.value);
|
|
3824
|
+
function w() {
|
|
3825
|
+
return r.value ? r.value.getPostTranslationHandler() : y;
|
|
3826
|
+
}
|
|
3827
|
+
function ne(b) {
|
|
3828
|
+
r.value && r.value.setPostTranslationHandler(b);
|
|
3829
|
+
}
|
|
3830
|
+
function Be() {
|
|
3831
|
+
return r.value ? r.value.getMissingHandler() : S;
|
|
3832
|
+
}
|
|
3833
|
+
function je(b) {
|
|
3834
|
+
r.value && r.value.setMissingHandler(b);
|
|
3835
|
+
}
|
|
3836
|
+
function Ee(b) {
|
|
3837
|
+
return g(), b();
|
|
3838
|
+
}
|
|
3839
|
+
function Ke(...b) {
|
|
3840
|
+
return r.value ? Ee(() => Reflect.apply(r.value.t, null, [...b])) : Ee(() => "");
|
|
3841
|
+
}
|
|
3842
|
+
function Xe(...b) {
|
|
3843
|
+
return r.value ? Reflect.apply(r.value.rt, null, [...b]) : "";
|
|
3844
|
+
}
|
|
3845
|
+
function Je(...b) {
|
|
3846
|
+
return r.value ? Ee(() => Reflect.apply(r.value.d, null, [...b])) : Ee(() => "");
|
|
3847
|
+
}
|
|
3848
|
+
function Qe(...b) {
|
|
3849
|
+
return r.value ? Ee(() => Reflect.apply(r.value.n, null, [...b])) : Ee(() => "");
|
|
3850
|
+
}
|
|
3851
|
+
function qe(b) {
|
|
3852
|
+
return r.value ? r.value.tm(b) : {};
|
|
3853
|
+
}
|
|
3854
|
+
function ce(b, W) {
|
|
3855
|
+
return r.value ? r.value.te(b, W) : !1;
|
|
3856
|
+
}
|
|
3857
|
+
function Fe(b) {
|
|
3858
|
+
return r.value ? r.value.getLocaleMessage(b) : {};
|
|
3859
|
+
}
|
|
3860
|
+
function Ue(b, W) {
|
|
3861
|
+
r.value && (r.value.setLocaleMessage(b, W), _.value[b] = W);
|
|
3862
|
+
}
|
|
3863
|
+
function Ze(b, W) {
|
|
3864
|
+
r.value && r.value.mergeLocaleMessage(b, W);
|
|
3865
|
+
}
|
|
3866
|
+
function ze(b) {
|
|
3867
|
+
return r.value ? r.value.getDateTimeFormat(b) : {};
|
|
3868
|
+
}
|
|
3869
|
+
function et(b, W) {
|
|
3870
|
+
r.value && (r.value.setDateTimeFormat(b, W), p.value[b] = W);
|
|
3871
|
+
}
|
|
3872
|
+
function Et(b, W) {
|
|
3873
|
+
r.value && r.value.mergeDateTimeFormat(b, W);
|
|
3874
|
+
}
|
|
3875
|
+
function tt(b) {
|
|
3876
|
+
return r.value ? r.value.getNumberFormat(b) : {};
|
|
3877
|
+
}
|
|
3878
|
+
function we(b, W) {
|
|
3879
|
+
r.value && (r.value.setNumberFormat(b, W), T.value[b] = W);
|
|
3880
|
+
}
|
|
3881
|
+
function nt(b, W) {
|
|
3882
|
+
r.value && r.value.mergeNumberFormat(b, W);
|
|
3883
|
+
}
|
|
3884
|
+
const rt = {
|
|
3885
|
+
get id() {
|
|
3886
|
+
return r.value ? r.value.id : -1;
|
|
3887
|
+
},
|
|
3888
|
+
locale: v,
|
|
3889
|
+
fallbackLocale: C,
|
|
3890
|
+
messages: I,
|
|
3891
|
+
datetimeFormats: j,
|
|
3892
|
+
numberFormats: oe,
|
|
3893
|
+
get inheritLocale() {
|
|
3894
|
+
return r.value ? r.value.inheritLocale : l;
|
|
3895
|
+
},
|
|
3896
|
+
set inheritLocale(b) {
|
|
3897
|
+
r.value && (r.value.inheritLocale = b);
|
|
3898
|
+
},
|
|
3899
|
+
get availableLocales() {
|
|
3900
|
+
return r.value ? r.value.availableLocales : Object.keys(_.value);
|
|
3901
|
+
},
|
|
3902
|
+
get modifiers() {
|
|
3903
|
+
return r.value ? r.value.modifiers : E;
|
|
3904
|
+
},
|
|
3905
|
+
get pluralRules() {
|
|
3906
|
+
return r.value ? r.value.pluralRules : L;
|
|
3907
|
+
},
|
|
3908
|
+
get isGlobal() {
|
|
3909
|
+
return r.value ? r.value.isGlobal : !1;
|
|
3910
|
+
},
|
|
3911
|
+
get missingWarn() {
|
|
3912
|
+
return r.value ? r.value.missingWarn : d;
|
|
3913
|
+
},
|
|
3914
|
+
set missingWarn(b) {
|
|
3915
|
+
r.value && (r.value.missingWarn = b);
|
|
3916
|
+
},
|
|
3917
|
+
get fallbackWarn() {
|
|
3918
|
+
return r.value ? r.value.fallbackWarn : A;
|
|
3919
|
+
},
|
|
3920
|
+
set fallbackWarn(b) {
|
|
3921
|
+
r.value && (r.value.missingWarn = b);
|
|
3922
|
+
},
|
|
3923
|
+
get fallbackRoot() {
|
|
3924
|
+
return r.value ? r.value.fallbackRoot : D;
|
|
3925
|
+
},
|
|
3926
|
+
set fallbackRoot(b) {
|
|
3927
|
+
r.value && (r.value.fallbackRoot = b);
|
|
3928
|
+
},
|
|
3929
|
+
get fallbackFormat() {
|
|
3930
|
+
return r.value ? r.value.fallbackFormat : P;
|
|
3931
|
+
},
|
|
3932
|
+
set fallbackFormat(b) {
|
|
3933
|
+
r.value && (r.value.fallbackFormat = b);
|
|
3934
|
+
},
|
|
3935
|
+
get warnHtmlMessage() {
|
|
3936
|
+
return r.value ? r.value.warnHtmlMessage : R;
|
|
3937
|
+
},
|
|
3938
|
+
set warnHtmlMessage(b) {
|
|
3939
|
+
r.value && (r.value.warnHtmlMessage = b);
|
|
3940
|
+
},
|
|
3941
|
+
get escapeParameter() {
|
|
3942
|
+
return r.value ? r.value.escapeParameter : f;
|
|
3943
|
+
},
|
|
3944
|
+
set escapeParameter(b) {
|
|
3945
|
+
r.value && (r.value.escapeParameter = b);
|
|
3946
|
+
},
|
|
3947
|
+
t: Ke,
|
|
3948
|
+
getPostTranslationHandler: w,
|
|
3949
|
+
setPostTranslationHandler: ne,
|
|
3950
|
+
getMissingHandler: Be,
|
|
3951
|
+
setMissingHandler: je,
|
|
3952
|
+
rt: Xe,
|
|
3953
|
+
d: Je,
|
|
3954
|
+
n: Qe,
|
|
3955
|
+
tm: qe,
|
|
3956
|
+
te: ce,
|
|
3957
|
+
getLocaleMessage: Fe,
|
|
3958
|
+
setLocaleMessage: Ue,
|
|
3959
|
+
mergeLocaleMessage: Ze,
|
|
3960
|
+
getDateTimeFormat: ze,
|
|
3961
|
+
setDateTimeFormat: et,
|
|
3962
|
+
mergeDateTimeFormat: Et,
|
|
3963
|
+
getNumberFormat: tt,
|
|
3964
|
+
setNumberFormat: we,
|
|
3965
|
+
mergeNumberFormat: nt
|
|
3966
|
+
};
|
|
3967
|
+
function at(b) {
|
|
3968
|
+
b.locale.value = o.value, b.fallbackLocale.value = u.value, Object.keys(_.value).forEach((W) => {
|
|
3969
|
+
b.mergeLocaleMessage(W, _.value[W]);
|
|
3970
|
+
}), Object.keys(p.value).forEach((W) => {
|
|
3971
|
+
b.mergeDateTimeFormat(W, p.value[W]);
|
|
3972
|
+
}), Object.keys(T.value).forEach((W) => {
|
|
3973
|
+
b.mergeNumberFormat(W, T.value[W]);
|
|
3974
|
+
}), b.escapeParameter = f, b.fallbackFormat = P, b.fallbackRoot = D, b.fallbackWarn = A, b.missingWarn = d, b.warnHtmlMessage = R;
|
|
3975
|
+
}
|
|
3976
|
+
return Xr(() => {
|
|
3977
|
+
if (e.proxy == null || e.proxy.$i18n == null)
|
|
3978
|
+
throw z($.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);
|
|
3979
|
+
const b = r.value = e.proxy.$i18n.__composer;
|
|
3980
|
+
t === "global" ? (o.value = b.locale.value, u.value = b.fallbackLocale.value, _.value = b.messages.value, p.value = b.datetimeFormats.value, T.value = b.numberFormats.value) : s && at(b);
|
|
3981
|
+
}), rt;
|
|
3982
|
+
}
|
|
3983
|
+
const Hl = [
|
|
3984
|
+
"locale",
|
|
3985
|
+
"fallbackLocale",
|
|
3986
|
+
"availableLocales"
|
|
3987
|
+
], Yn = ["t", "rt", "d", "n", "tm", "te"];
|
|
3988
|
+
function xl(e, t) {
|
|
3989
|
+
const n = /* @__PURE__ */ Object.create(null);
|
|
3990
|
+
return Hl.forEach((s) => {
|
|
3991
|
+
const r = Object.getOwnPropertyDescriptor(t, s);
|
|
3992
|
+
if (!r)
|
|
3993
|
+
throw z($.UNEXPECTED_ERROR);
|
|
3994
|
+
const l = jr(r.value) ? {
|
|
3995
|
+
get() {
|
|
3996
|
+
return r.value.value;
|
|
3997
|
+
},
|
|
3998
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3999
|
+
set(o) {
|
|
4000
|
+
r.value.value = o;
|
|
4001
|
+
}
|
|
4002
|
+
} : {
|
|
4003
|
+
get() {
|
|
4004
|
+
return r.get && r.get();
|
|
4005
|
+
}
|
|
4006
|
+
};
|
|
4007
|
+
Object.defineProperty(n, s, l);
|
|
4008
|
+
}), e.config.globalProperties.$i18n = n, Yn.forEach((s) => {
|
|
4009
|
+
const r = Object.getOwnPropertyDescriptor(t, s);
|
|
4010
|
+
if (!r || !r.value)
|
|
4011
|
+
throw z($.UNEXPECTED_ERROR);
|
|
4012
|
+
Object.defineProperty(e.config.globalProperties, `$${s}`, r);
|
|
4013
|
+
}), () => {
|
|
4014
|
+
delete e.config.globalProperties.$i18n, Yn.forEach((s) => {
|
|
4015
|
+
delete e.config.globalProperties[`$${s}`];
|
|
4016
|
+
});
|
|
4017
|
+
};
|
|
4018
|
+
}
|
|
4019
|
+
al();
|
|
4020
|
+
__INTLIFY_JIT_COMPILATION__ ? vn(xs) : vn(Hs);
|
|
4021
|
+
ys(ms);
|
|
4022
|
+
Ms(dr);
|
|
4023
|
+
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
4024
|
+
const e = Le();
|
|
4025
|
+
e.__INTLIFY__ = !0, vs(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
4026
|
+
}
|
|
4027
|
+
process.env.NODE_ENV;
|
|
4028
|
+
const Yl = {
|
|
4029
|
+
simpleButton: {
|
|
4030
|
+
clickMe: "点击我",
|
|
4031
|
+
clicked: "已点击 {count} 次"
|
|
4032
|
+
},
|
|
4033
|
+
simpleCard: {
|
|
4034
|
+
title: "简单卡片",
|
|
4035
|
+
content: "这是一个简单的卡片组件"
|
|
4036
|
+
}
|
|
4037
|
+
}, Bl = {
|
|
4038
|
+
simpleButton: {
|
|
4039
|
+
clickMe: "Click Me",
|
|
4040
|
+
clicked: "Clicked {count} times"
|
|
4041
|
+
},
|
|
4042
|
+
simpleCard: {
|
|
4043
|
+
title: "Simple Card",
|
|
4044
|
+
content: "This is a simple card component"
|
|
4045
|
+
}
|
|
4046
|
+
}, jl = [
|
|
4047
|
+
na,
|
|
4048
|
+
ca
|
|
4049
|
+
], Kl = (e) => {
|
|
4050
|
+
jl.forEach((s) => {
|
|
4051
|
+
e.use(s);
|
|
4052
|
+
});
|
|
4053
|
+
const t = yl({
|
|
4054
|
+
legacy: !1,
|
|
4055
|
+
locale: "zh_CN",
|
|
4056
|
+
fallbackLocale: "zh_CN",
|
|
4057
|
+
messages: {
|
|
4058
|
+
zh_CN: Yl,
|
|
4059
|
+
en_US: Bl
|
|
4060
|
+
}
|
|
4061
|
+
});
|
|
4062
|
+
e.use(t), t.global.locale.value = "zh_CN", Object.assign(t, { switchLocale: (s) => {
|
|
4063
|
+
t.global.locale.value = s;
|
|
4064
|
+
}, mergeLocaleMessage: (s, r) => {
|
|
4065
|
+
t.global.mergeLocaleMessage(s, r);
|
|
4066
|
+
} });
|
|
4067
|
+
}, Jl = { install: Kl };
|
|
4068
|
+
export {
|
|
4069
|
+
na as SimpleButton,
|
|
4070
|
+
ca as SimpleCard,
|
|
4071
|
+
Jl as default,
|
|
4072
|
+
Kl as install
|
|
4073
|
+
};
|