oga-ui 0.1.60 → 0.1.69

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.
@@ -1,8 +1,3100 @@
1
- import { Fragment, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeModels, normalizeStyle, openBlock, renderList, renderSlot, resolveComponent, resolveDirective, useModel, withCtx, withDirectives } from "vue";
2
- var _hoisted_1 = { class: "oga-table" }, _hoisted_2 = { class: "oga-table-content" }, src_default = /* @__PURE__ */ ((e, p) => {
3
- let m = e.__vccOpts || e;
4
- for (let [e, h] of p) m[e] = h;
1
+ import * as Vue from "vue";
2
+ import { Fragment, Text, computed, createBlock, createCommentVNode, createElementBlock, createTextVNode, createVNode, defineComponent, effectScope, h, inject, isRef, mergeModels, normalizeStyle, onMounted, onUnmounted, openBlock, ref, renderList, renderSlot, resolveComponent, resolveDirective, shallowRef, toDisplayString, unref, useModel, watch, withCtx, withDirectives } from "vue";
3
+ function warn(e, t) {
4
+ typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
5
+ }
6
+ var hasWarned = {};
7
+ function warnOnce(e) {
8
+ hasWarned[e] || (hasWarned[e] = !0, warn(e));
9
+ }
10
+ var inBrowser = typeof window < "u", mark, measure;
11
+ if (process.env.NODE_ENV !== "production") {
12
+ let e = inBrowser && window.performance;
13
+ e && e.mark && e.measure && e.clearMarks && e.clearMeasures && (mark = (t) => {
14
+ e.mark(t);
15
+ }, measure = (t, n, r) => {
16
+ e.measure(t, n, r), e.clearMarks(n), e.clearMarks(r);
17
+ });
18
+ }
19
+ var RE_ARGS = /\{([0-9a-zA-Z]+)\}/g;
20
+ function format(e, ...t) {
21
+ return t.length === 1 && isObject(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(RE_ARGS, (e, n) => t.hasOwnProperty(n) ? t[n] : "");
22
+ }
23
+ var makeSymbol = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), generateFormatCacheKey = (e, t, n) => friendlyJSONstringify({
24
+ l: e,
25
+ k: t,
26
+ s: n
27
+ }), friendlyJSONstringify = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), isNumber = (e) => typeof e == "number" && isFinite(e), isDate = (e) => toTypeString(e) === "[object Date]", isRegExp = (e) => toTypeString(e) === "[object RegExp]", isEmptyObject = (e) => isPlainObject(e) && Object.keys(e).length === 0, assign = Object.assign, _create = Object.create, create = (e = null) => _create(e), _globalThis, getGlobalThis = () => _globalThis ||= typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : create();
28
+ function escapeHtml(e) {
29
+ return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;").replace(/\//g, "&#x2F;").replace(/=/g, "&#x3D;");
30
+ }
31
+ function escapeAttributeValue(e) {
32
+ return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g, "&amp;").replace(/"/g, "&quot;").replace(/'/g, "&apos;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
33
+ }
34
+ function sanitizeTranslatedHtml(e) {
35
+ return e = e.replace(/(\w+)\s*=\s*"([^"]*)"/g, (e, t, n) => `${t}="${escapeAttributeValue(n)}"`), e = e.replace(/(\w+)\s*=\s*'([^']*)'/g, (e, t, n) => `${t}='${escapeAttributeValue(n)}'`), /\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e) && (process.env.NODE_ENV !== "production" && warn("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."), e = e.replace(/(\s+)(on)(\w+\s*=)/gi, "$1&#111;n$3")), [/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi, /(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach((t) => {
36
+ e = e.replace(t, "$1javascript&#58;");
37
+ }), e;
38
+ }
39
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
40
+ function hasOwn(e, t) {
41
+ return hasOwnProperty.call(e, t);
42
+ }
43
+ var isArray = Array.isArray, isFunction = (e) => typeof e == "function", isString = (e) => typeof e == "string", isBoolean = (e) => typeof e == "boolean", isObject = (e) => typeof e == "object" && !!e, isPromise = (e) => isObject(e) && isFunction(e.then) && isFunction(e.catch), objectToString = Object.prototype.toString, toTypeString = (e) => objectToString.call(e), isPlainObject = (e) => toTypeString(e) === "[object Object]", toDisplayString$1 = (e) => e == null ? "" : isArray(e) || isPlainObject(e) && e.toString === objectToString ? JSON.stringify(e, null, 2) : String(e);
44
+ function join(e, t = "") {
45
+ return e.reduce((e, n, r) => r === 0 ? e + n : e + t + n, "");
46
+ }
47
+ var RANGE = 2;
48
+ function generateCodeFrame(e, t = 0, n = e.length) {
49
+ let r = e.split(/\r?\n/), i = 0, a = [];
50
+ for (let e = 0; e < r.length; e++) if (i += r[e].length + 1, i >= t) {
51
+ for (let o = e - RANGE; o <= e + RANGE || n > i; o++) {
52
+ if (o < 0 || o >= r.length) continue;
53
+ let s = o + 1;
54
+ a.push(`${s}${" ".repeat(3 - String(s).length)}| ${r[o]}`);
55
+ let c = r[o].length;
56
+ if (o === e) {
57
+ let e = t - (i - c) + 1, r = Math.max(1, n > i ? c - e : n - t);
58
+ a.push(" | " + " ".repeat(e) + "^".repeat(r));
59
+ } else if (o > e) {
60
+ if (n > i) {
61
+ let e = Math.max(Math.min(n - i, c), 1);
62
+ a.push(" | " + "^".repeat(e));
63
+ }
64
+ i += c + 1;
65
+ }
66
+ }
67
+ break;
68
+ }
69
+ return a.join("\n");
70
+ }
71
+ function createEmitter() {
72
+ let e = /* @__PURE__ */ new Map();
73
+ return {
74
+ events: e,
75
+ on(t, n) {
76
+ let r = e.get(t);
77
+ r && r.push(n) || e.set(t, [n]);
78
+ },
79
+ off(t, n) {
80
+ let r = e.get(t);
81
+ r && r.splice(r.indexOf(n) >>> 0, 1);
82
+ },
83
+ emit(t, n) {
84
+ (e.get(t) || []).slice().map((e) => e(n)), (e.get("*") || []).slice().map((e) => e(t, n));
85
+ }
86
+ };
87
+ }
88
+ var isNotObjectOrIsArray = (e) => !isObject(e) || isArray(e);
89
+ function deepCopy(e, t) {
90
+ if (isNotObjectOrIsArray(e) || isNotObjectOrIsArray(t)) throw Error("Invalid value");
91
+ let n = [{
92
+ src: e,
93
+ des: t
94
+ }];
95
+ for (; n.length;) {
96
+ let { src: e, des: t } = n.pop();
97
+ Object.keys(e).forEach((r) => {
98
+ r !== "__proto__" && (isObject(e[r]) && !isObject(t[r]) && (t[r] = Array.isArray(e[r]) ? [] : create()), isNotObjectOrIsArray(t[r]) || isNotObjectOrIsArray(e[r]) ? t[r] = e[r] : n.push({
99
+ src: e[r],
100
+ des: t[r]
101
+ }));
102
+ });
103
+ }
104
+ }
105
+ function createPosition(e, t, n) {
106
+ return {
107
+ line: e,
108
+ column: t,
109
+ offset: n
110
+ };
111
+ }
112
+ function createLocation(e, t, n) {
113
+ let r = {
114
+ start: e,
115
+ end: t
116
+ };
117
+ return n != null && (r.source = n), r;
118
+ }
119
+ var CompileErrorCodes = {
120
+ EXPECTED_TOKEN: 1,
121
+ INVALID_TOKEN_IN_PLACEHOLDER: 2,
122
+ UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER: 3,
123
+ UNKNOWN_ESCAPE_SEQUENCE: 4,
124
+ INVALID_UNICODE_ESCAPE_SEQUENCE: 5,
125
+ UNBALANCED_CLOSING_BRACE: 6,
126
+ UNTERMINATED_CLOSING_BRACE: 7,
127
+ EMPTY_PLACEHOLDER: 8,
128
+ NOT_ALLOW_NEST_PLACEHOLDER: 9,
129
+ INVALID_LINKED_FORMAT: 10,
130
+ MUST_HAVE_MESSAGES_IN_PLURAL: 11,
131
+ UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
132
+ UNEXPECTED_EMPTY_LINKED_KEY: 13,
133
+ UNEXPECTED_LEXICAL_ANALYSIS: 14,
134
+ UNHANDLED_CODEGEN_NODE_TYPE: 15,
135
+ UNHANDLED_MINIFIER_NODE_TYPE: 16
136
+ }, errorMessages$2 = {
137
+ [CompileErrorCodes.EXPECTED_TOKEN]: "Expected token: '{0}'",
138
+ [CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
139
+ [CompileErrorCodes.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]: "Unterminated single quote in placeholder",
140
+ [CompileErrorCodes.UNKNOWN_ESCAPE_SEQUENCE]: "Unknown escape sequence: \\{0}",
141
+ [CompileErrorCodes.INVALID_UNICODE_ESCAPE_SEQUENCE]: "Invalid unicode escape sequence: {0}",
142
+ [CompileErrorCodes.UNBALANCED_CLOSING_BRACE]: "Unbalanced closing brace",
143
+ [CompileErrorCodes.UNTERMINATED_CLOSING_BRACE]: "Unterminated closing brace",
144
+ [CompileErrorCodes.EMPTY_PLACEHOLDER]: "Empty placeholder",
145
+ [CompileErrorCodes.NOT_ALLOW_NEST_PLACEHOLDER]: "Not allowed nest placeholder",
146
+ [CompileErrorCodes.INVALID_LINKED_FORMAT]: "Invalid linked format",
147
+ [CompileErrorCodes.MUST_HAVE_MESSAGES_IN_PLURAL]: "Plural must have messages",
148
+ [CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_MODIFIER]: "Unexpected empty linked modifier",
149
+ [CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_KEY]: "Unexpected empty linked key",
150
+ [CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS]: "Unexpected lexical analysis in token: '{0}'",
151
+ [CompileErrorCodes.UNHANDLED_CODEGEN_NODE_TYPE]: "unhandled codegen node type: '{0}'",
152
+ [CompileErrorCodes.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
153
+ };
154
+ function createCompileError(e, t, n = {}) {
155
+ let { domain: r, messages: i, args: a } = n, o = process.env.NODE_ENV === "production" ? e : format((i || errorMessages$2)[e] || "", ...a || []), s = SyntaxError(String(o));
156
+ return s.code = e, t && (s.location = t), s.domain = r, s;
157
+ }
158
+ function defaultOnError(e) {
159
+ throw e;
160
+ }
161
+ var RE_HTML_TAG = /<\/?[\w\s="/.':;#-\/]+>/, detectHtmlTag = (e) => RE_HTML_TAG.test(e), CHAR_SP = " ", CHAR_CR = "\r", CHAR_LF = "\n", CHAR_LS = "\u2028", CHAR_PS = "\u2029";
162
+ function createScanner(e) {
163
+ let t = e, n = 0, r = 1, i = 1, a = 0, o = (e) => t[e] === CHAR_CR && t[e + 1] === CHAR_LF, s = (e) => t[e] === CHAR_LF, c = (e) => t[e] === CHAR_PS, l = (e) => t[e] === CHAR_LS, u = (e) => o(e) || s(e) || c(e) || l(e), d = () => n, f = () => r, p = () => i, m = () => a, g = (e) => o(e) || c(e) || l(e) ? CHAR_LF : t[e], _ = () => g(n), v = () => g(n + a);
164
+ function y() {
165
+ return a = 0, u(n) && (r++, i = 0), o(n) && n++, n++, i++, t[n];
166
+ }
167
+ function b() {
168
+ return o(n + a) && a++, a++, t[n + a];
169
+ }
170
+ function x() {
171
+ n = 0, r = 1, i = 1, a = 0;
172
+ }
173
+ function S(e = 0) {
174
+ a = e;
175
+ }
176
+ function C() {
177
+ let e = n + a;
178
+ for (; e !== n;) y();
179
+ a = 0;
180
+ }
181
+ return {
182
+ index: d,
183
+ line: f,
184
+ column: p,
185
+ peekOffset: m,
186
+ charAt: g,
187
+ currentChar: _,
188
+ currentPeek: v,
189
+ next: y,
190
+ peek: b,
191
+ reset: x,
192
+ resetPeek: S,
193
+ skipToPeek: C
194
+ };
195
+ }
196
+ var EOF = void 0, LITERAL_DELIMITER = "'", ERROR_DOMAIN$3 = "tokenizer";
197
+ function createTokenizer(e, t = {}) {
198
+ let n = t.location !== !1, r = createScanner(e), i = () => r.index(), a = () => createPosition(r.line(), r.column(), r.index()), o = a(), s = i(), c = {
199
+ currentType: 13,
200
+ offset: s,
201
+ startLoc: o,
202
+ endLoc: o,
203
+ lastType: 13,
204
+ lastOffset: s,
205
+ lastStartLoc: o,
206
+ lastEndLoc: o,
207
+ braceNest: 0,
208
+ inLinked: !1,
209
+ text: ""
210
+ }, l = () => c, { onError: u } = t;
211
+ function d(e, t, r, ...i) {
212
+ let a = l();
213
+ t.column += r, t.offset += r, u && u(createCompileError(e, n ? createLocation(a.startLoc, t) : null, {
214
+ domain: ERROR_DOMAIN$3,
215
+ args: i
216
+ }));
217
+ }
218
+ function f(e, t, r) {
219
+ e.endLoc = a(), e.currentType = t;
220
+ let i = { type: t };
221
+ return n && (i.loc = createLocation(e.startLoc, e.endLoc)), r != null && (i.value = r), i;
222
+ }
223
+ let p = (e) => f(e, 13);
224
+ function m(e, t) {
225
+ return e.currentChar() === t ? (e.next(), t) : (d(CompileErrorCodes.EXPECTED_TOKEN, a(), 0, t), "");
226
+ }
227
+ function g(e) {
228
+ let t = "";
229
+ for (; e.currentPeek() === CHAR_SP || e.currentPeek() === CHAR_LF;) t += e.currentPeek(), e.peek();
230
+ return t;
231
+ }
232
+ function _(e) {
233
+ let t = g(e);
234
+ return e.skipToPeek(), t;
235
+ }
236
+ function v(e) {
237
+ if (e === EOF) return !1;
238
+ let t = e.charCodeAt(0);
239
+ return t >= 97 && t <= 122 || t >= 65 && t <= 90 || t === 95;
240
+ }
241
+ function y(e) {
242
+ if (e === EOF) return !1;
243
+ let t = e.charCodeAt(0);
244
+ return t >= 48 && t <= 57;
245
+ }
246
+ function b(e, t) {
247
+ let { currentType: n } = t;
248
+ if (n !== 2) return !1;
249
+ g(e);
250
+ let r = v(e.currentPeek());
251
+ return e.resetPeek(), r;
252
+ }
253
+ function x(e, t) {
254
+ let { currentType: n } = t;
255
+ if (n !== 2) return !1;
256
+ g(e);
257
+ let r = y(e.currentPeek() === "-" ? e.peek() : e.currentPeek());
258
+ return e.resetPeek(), r;
259
+ }
260
+ function S(e, t) {
261
+ let { currentType: n } = t;
262
+ if (n !== 2) return !1;
263
+ g(e);
264
+ let r = e.currentPeek() === LITERAL_DELIMITER;
265
+ return e.resetPeek(), r;
266
+ }
267
+ function C(e, t) {
268
+ let { currentType: n } = t;
269
+ if (n !== 7) return !1;
270
+ g(e);
271
+ let r = e.currentPeek() === ".";
272
+ return e.resetPeek(), r;
273
+ }
274
+ function w(e, t) {
275
+ let { currentType: n } = t;
276
+ if (n !== 8) return !1;
277
+ g(e);
278
+ let r = v(e.currentPeek());
279
+ return e.resetPeek(), r;
280
+ }
281
+ function T(e, t) {
282
+ let { currentType: n } = t;
283
+ if (!(n === 7 || n === 11)) return !1;
284
+ g(e);
285
+ let r = e.currentPeek() === ":";
286
+ return e.resetPeek(), r;
287
+ }
288
+ function E(e, t) {
289
+ let { currentType: n } = t;
290
+ if (n !== 9) return !1;
291
+ let r = () => {
292
+ let t = e.currentPeek();
293
+ return t === "{" ? v(e.peek()) : t === "@" || t === "|" || t === ":" || t === "." || t === CHAR_SP || !t ? !1 : t === CHAR_LF ? (e.peek(), r()) : O(e, !1);
294
+ }, i = r();
295
+ return e.resetPeek(), i;
296
+ }
297
+ function D(e) {
298
+ g(e);
299
+ let t = e.currentPeek() === "|";
300
+ return e.resetPeek(), t;
301
+ }
302
+ function O(e, t = !0) {
303
+ let n = (t = !1, r = "") => {
304
+ let i = e.currentPeek();
305
+ return i === "{" || i === "@" || !i ? t : i === "|" ? !(r === CHAR_SP || r === CHAR_LF) : i === CHAR_SP ? (e.peek(), n(!0, CHAR_SP)) : i === CHAR_LF ? (e.peek(), n(!0, CHAR_LF)) : !0;
306
+ }, r = n();
307
+ return t && e.resetPeek(), r;
308
+ }
309
+ function k(e, t) {
310
+ let n = e.currentChar();
311
+ return n === EOF ? EOF : t(n) ? (e.next(), n) : null;
312
+ }
313
+ function A(e) {
314
+ let t = e.charCodeAt(0);
315
+ return t >= 97 && t <= 122 || t >= 65 && t <= 90 || t >= 48 && t <= 57 || t === 95 || t === 36;
316
+ }
317
+ function j(e) {
318
+ return k(e, A);
319
+ }
320
+ function Li(e) {
321
+ let t = e.charCodeAt(0);
322
+ return t >= 97 && t <= 122 || t >= 65 && t <= 90 || t >= 48 && t <= 57 || t === 95 || t === 36 || t === 45;
323
+ }
324
+ function M(e) {
325
+ return k(e, Li);
326
+ }
327
+ function N(e) {
328
+ let t = e.charCodeAt(0);
329
+ return t >= 48 && t <= 57;
330
+ }
331
+ function Ri(e) {
332
+ return k(e, N);
333
+ }
334
+ function P(e) {
335
+ let t = e.charCodeAt(0);
336
+ return t >= 48 && t <= 57 || t >= 65 && t <= 70 || t >= 97 && t <= 102;
337
+ }
338
+ function F(e) {
339
+ return k(e, P);
340
+ }
341
+ function I(e) {
342
+ let t = "", n = "";
343
+ for (; t = Ri(e);) n += t;
344
+ return n;
345
+ }
346
+ function L(e) {
347
+ let t = "";
348
+ for (;;) {
349
+ let n = e.currentChar();
350
+ if (n === "{" || n === "}" || n === "@" || n === "|" || !n) break;
351
+ if (n === CHAR_SP || n === CHAR_LF) if (O(e)) t += n, e.next();
352
+ else if (D(e)) break;
353
+ else t += n, e.next();
354
+ else t += n, e.next();
355
+ }
356
+ return t;
357
+ }
358
+ function R(e) {
359
+ _(e);
360
+ let t = "", n = "";
361
+ for (; t = M(e);) n += t;
362
+ let r = e.currentChar();
363
+ if (r && r !== "}" && r !== EOF && r !== CHAR_SP && r !== CHAR_LF && r !== " ") {
364
+ let t = W(e);
365
+ return d(CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, n + t), n + t;
366
+ }
367
+ return e.currentChar() === EOF && d(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, a(), 0), n;
368
+ }
369
+ function z(e) {
370
+ _(e);
371
+ let t = "";
372
+ return e.currentChar() === "-" ? (e.next(), t += `-${I(e)}`) : t += I(e), e.currentChar() === EOF && d(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, a(), 0), t;
373
+ }
374
+ function B(e) {
375
+ return e !== LITERAL_DELIMITER && e !== CHAR_LF;
376
+ }
377
+ function zi(e) {
378
+ _(e), m(e, "'");
379
+ let t = "", n = "";
380
+ for (; t = k(e, B);) t === "\\" ? n += V(e) : n += t;
381
+ let r = e.currentChar();
382
+ return r === CHAR_LF || r === EOF ? (d(CompileErrorCodes.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), r === CHAR_LF && (e.next(), m(e, "'")), n) : (m(e, "'"), n);
383
+ }
384
+ function V(e) {
385
+ let t = e.currentChar();
386
+ switch (t) {
387
+ case "\\":
388
+ case "'": return e.next(), `\\${t}`;
389
+ case "u": return H(e, t, 4);
390
+ case "U": return H(e, t, 6);
391
+ default: return d(CompileErrorCodes.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, t), "";
392
+ }
393
+ }
394
+ function H(e, t, n) {
395
+ m(e, t);
396
+ let r = "";
397
+ for (let i = 0; i < n; i++) {
398
+ let n = F(e);
399
+ if (!n) {
400
+ d(CompileErrorCodes.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${t}${r}${e.currentChar()}`);
401
+ break;
402
+ }
403
+ r += n;
404
+ }
405
+ return `\\${t}${r}`;
406
+ }
407
+ function U(e) {
408
+ return e !== "{" && e !== "}" && e !== CHAR_SP && e !== CHAR_LF;
409
+ }
410
+ function W(e) {
411
+ _(e);
412
+ let t = "", n = "";
413
+ for (; t = k(e, U);) n += t;
414
+ return n;
415
+ }
416
+ function G(e) {
417
+ let t = "", n = "";
418
+ for (; t = j(e);) n += t;
419
+ return n;
420
+ }
421
+ function K(e) {
422
+ let t = (n) => {
423
+ let r = e.currentChar();
424
+ return r === "{" || r === "@" || r === "|" || r === "(" || r === ")" || !r || r === CHAR_SP ? n : (n += r, e.next(), t(n));
425
+ };
426
+ return t("");
427
+ }
428
+ function q(e) {
429
+ _(e);
430
+ let t = m(e, "|");
431
+ return _(e), t;
432
+ }
433
+ function J(e, t) {
434
+ let n = null;
435
+ switch (e.currentChar()) {
436
+ case "{": return t.braceNest >= 1 && d(CompileErrorCodes.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), e.next(), n = f(t, 2, "{"), _(e), t.braceNest++, n;
437
+ case "}": return t.braceNest > 0 && t.currentType === 2 && d(CompileErrorCodes.EMPTY_PLACEHOLDER, a(), 0), e.next(), n = f(t, 3, "}"), t.braceNest--, t.braceNest > 0 && _(e), t.inLinked && t.braceNest === 0 && (t.inLinked = !1), n;
438
+ case "@": return t.braceNest > 0 && d(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, a(), 0), n = Y(e, t) || p(t), t.braceNest = 0, n;
439
+ default: {
440
+ let r = !0, i = !0, o = !0;
441
+ if (D(e)) return t.braceNest > 0 && d(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, a(), 0), n = f(t, 1, q(e)), t.braceNest = 0, t.inLinked = !1, n;
442
+ if (t.braceNest > 0 && (t.currentType === 4 || t.currentType === 5 || t.currentType === 6)) return d(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, a(), 0), t.braceNest = 0, X(e, t);
443
+ if (r = b(e, t)) return n = f(t, 4, R(e)), _(e), n;
444
+ if (i = x(e, t)) return n = f(t, 5, z(e)), _(e), n;
445
+ if (o = S(e, t)) return n = f(t, 6, zi(e)), _(e), n;
446
+ if (!r && !i && !o) return n = f(t, 12, W(e)), d(CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, n.value), _(e), n;
447
+ break;
448
+ }
449
+ }
450
+ return n;
451
+ }
452
+ function Y(e, t) {
453
+ let { currentType: n } = t, r = null, i = e.currentChar();
454
+ switch ((n === 7 || n === 8 || n === 11 || n === 9) && (i === CHAR_LF || i === CHAR_SP) && d(CompileErrorCodes.INVALID_LINKED_FORMAT, a(), 0), i) {
455
+ case "@": return e.next(), r = f(t, 7, "@"), t.inLinked = !0, r;
456
+ case ".": return _(e), e.next(), f(t, 8, ".");
457
+ case ":": return _(e), e.next(), f(t, 9, ":");
458
+ default: return D(e) ? (r = f(t, 1, q(e)), t.braceNest = 0, t.inLinked = !1, r) : C(e, t) || T(e, t) ? (_(e), Y(e, t)) : w(e, t) ? (_(e), f(t, 11, G(e))) : E(e, t) ? (_(e), i === "{" ? J(e, t) || r : f(t, 10, K(e))) : (n === 7 && d(CompileErrorCodes.INVALID_LINKED_FORMAT, a(), 0), t.braceNest = 0, t.inLinked = !1, X(e, t));
459
+ }
460
+ }
461
+ function X(e, t) {
462
+ let n = { type: 13 };
463
+ if (t.braceNest > 0) return J(e, t) || p(t);
464
+ if (t.inLinked) return Y(e, t) || p(t);
465
+ switch (e.currentChar()) {
466
+ case "{": return J(e, t) || p(t);
467
+ case "}": return d(CompileErrorCodes.UNBALANCED_CLOSING_BRACE, a(), 0), e.next(), f(t, 3, "}");
468
+ case "@": return Y(e, t) || p(t);
469
+ default:
470
+ if (D(e)) return n = f(t, 1, q(e)), t.braceNest = 0, t.inLinked = !1, n;
471
+ if (O(e)) return f(t, 0, L(e));
472
+ break;
473
+ }
474
+ return n;
475
+ }
476
+ function Z() {
477
+ let { currentType: e, offset: t, startLoc: n, endLoc: o } = c;
478
+ return c.lastType = e, c.lastOffset = t, c.lastStartLoc = n, c.lastEndLoc = o, c.offset = i(), c.startLoc = a(), r.currentChar() === EOF ? f(c, 13) : X(r, c);
479
+ }
480
+ return {
481
+ nextToken: Z,
482
+ currentOffset: i,
483
+ currentPosition: a,
484
+ context: l
485
+ };
486
+ }
487
+ var ERROR_DOMAIN$2 = "parser", KNOWN_ESCAPES = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
488
+ function fromEscapeSequence(e, t, n) {
489
+ switch (e) {
490
+ case "\\\\": return "\\";
491
+ case "\\'": return "'";
492
+ default: {
493
+ let e = parseInt(t || n, 16);
494
+ return e <= 55295 || e >= 57344 ? String.fromCodePoint(e) : "�";
495
+ }
496
+ }
497
+ }
498
+ function createParser(e = {}) {
499
+ let t = e.location !== !1, { onError: n } = e;
500
+ function r(e, r, i, a, ...o) {
501
+ let s = e.currentPosition();
502
+ s.offset += a, s.column += a, n && n(createCompileError(r, t ? createLocation(i, s) : null, {
503
+ domain: ERROR_DOMAIN$2,
504
+ args: o
505
+ }));
506
+ }
507
+ function i(e, n, r) {
508
+ let i = { type: e };
509
+ return t && (i.start = n, i.end = n, i.loc = {
510
+ start: r,
511
+ end: r
512
+ }), i;
513
+ }
514
+ function a(e, n, r, i) {
515
+ t && (e.end = n, e.loc && (e.loc.end = r));
516
+ }
517
+ function o(e, t) {
518
+ let n = e.context(), r = i(3, n.offset, n.startLoc);
519
+ return r.value = t, a(r, e.currentOffset(), e.currentPosition()), r;
520
+ }
521
+ function s(e, t) {
522
+ let { lastOffset: n, lastStartLoc: r } = e.context(), o = i(5, n, r);
523
+ return o.index = parseInt(t, 10), e.nextToken(), a(o, e.currentOffset(), e.currentPosition()), o;
524
+ }
525
+ function c(e, t) {
526
+ let { lastOffset: n, lastStartLoc: r } = e.context(), o = i(4, n, r);
527
+ return o.key = t, e.nextToken(), a(o, e.currentOffset(), e.currentPosition()), o;
528
+ }
529
+ function l(e, t) {
530
+ let { lastOffset: n, lastStartLoc: r } = e.context(), o = i(9, n, r);
531
+ return o.value = t.replace(KNOWN_ESCAPES, fromEscapeSequence), e.nextToken(), a(o, e.currentOffset(), e.currentPosition()), o;
532
+ }
533
+ function u(e) {
534
+ let t = e.nextToken(), n = e.context(), { lastOffset: o, lastStartLoc: s } = n, c = i(8, o, s);
535
+ return t.type === 11 ? (t.value ?? r(e, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, n.lastStartLoc, 0, getTokenCaption(t)), c.value = t.value || "", a(c, e.currentOffset(), e.currentPosition()), { node: c }) : (r(e, CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_MODIFIER, n.lastStartLoc, 0), c.value = "", a(c, o, s), {
536
+ nextConsumeToken: t,
537
+ node: c
538
+ });
539
+ }
540
+ function d(e, t) {
541
+ let n = e.context(), r = i(7, n.offset, n.startLoc);
542
+ return r.value = t, a(r, e.currentOffset(), e.currentPosition()), r;
543
+ }
544
+ function f(e) {
545
+ let t = e.context(), n = i(6, t.offset, t.startLoc), o = e.nextToken();
546
+ if (o.type === 8) {
547
+ let t = u(e);
548
+ n.modifier = t.node, o = t.nextConsumeToken || e.nextToken();
549
+ }
550
+ switch (o.type !== 9 && r(e, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, getTokenCaption(o)), o = e.nextToken(), o.type === 2 && (o = e.nextToken()), o.type) {
551
+ case 10:
552
+ o.value ?? r(e, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, getTokenCaption(o)), n.key = d(e, o.value || "");
553
+ break;
554
+ case 4:
555
+ o.value ?? r(e, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, getTokenCaption(o)), n.key = c(e, o.value || "");
556
+ break;
557
+ case 5:
558
+ o.value ?? r(e, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, getTokenCaption(o)), n.key = s(e, o.value || "");
559
+ break;
560
+ case 6:
561
+ o.value ?? r(e, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, getTokenCaption(o)), n.key = l(e, o.value || "");
562
+ break;
563
+ default: {
564
+ r(e, CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_KEY, t.lastStartLoc, 0);
565
+ let s = e.context(), c = i(7, s.offset, s.startLoc);
566
+ return c.value = "", a(c, s.offset, s.startLoc), n.key = c, a(n, s.offset, s.startLoc), {
567
+ nextConsumeToken: o,
568
+ node: n
569
+ };
570
+ }
571
+ }
572
+ return a(n, e.currentOffset(), e.currentPosition()), { node: n };
573
+ }
574
+ function p(e) {
575
+ let t = e.context(), n = i(2, t.currentType === 1 ? e.currentOffset() : t.offset, t.currentType === 1 ? t.endLoc : t.startLoc);
576
+ n.items = [];
577
+ let u = null;
578
+ do {
579
+ let i = u || e.nextToken();
580
+ switch (u = null, i.type) {
581
+ case 0:
582
+ i.value ?? r(e, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, getTokenCaption(i)), n.items.push(o(e, i.value || ""));
583
+ break;
584
+ case 5:
585
+ i.value ?? r(e, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, getTokenCaption(i)), n.items.push(s(e, i.value || ""));
586
+ break;
587
+ case 4:
588
+ i.value ?? r(e, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, getTokenCaption(i)), n.items.push(c(e, i.value || ""));
589
+ break;
590
+ case 6:
591
+ i.value ?? r(e, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, getTokenCaption(i)), n.items.push(l(e, i.value || ""));
592
+ break;
593
+ case 7: {
594
+ let t = f(e);
595
+ n.items.push(t.node), u = t.nextConsumeToken || null;
596
+ break;
597
+ }
598
+ }
599
+ } while (t.currentType !== 13 && t.currentType !== 1);
600
+ return a(n, t.currentType === 1 ? t.lastOffset : e.currentOffset(), t.currentType === 1 ? t.lastEndLoc : e.currentPosition()), n;
601
+ }
602
+ function m(e, t, n, o) {
603
+ let s = e.context(), c = o.items.length === 0, l = i(1, t, n);
604
+ l.cases = [], l.cases.push(o);
605
+ do {
606
+ let t = p(e);
607
+ c ||= t.items.length === 0, l.cases.push(t);
608
+ } while (s.currentType !== 13);
609
+ return c && r(e, CompileErrorCodes.MUST_HAVE_MESSAGES_IN_PLURAL, n, 0), a(l, e.currentOffset(), e.currentPosition()), l;
610
+ }
611
+ function g(e) {
612
+ let t = e.context(), { offset: n, startLoc: r } = t, i = p(e);
613
+ return t.currentType === 13 ? i : m(e, n, r, i);
614
+ }
615
+ function _(n) {
616
+ let o = createTokenizer(n, assign({}, e)), s = o.context(), c = i(0, s.offset, s.startLoc);
617
+ return t && c.loc && (c.loc.source = n), c.body = g(o), e.onCacheKey && (c.cacheKey = e.onCacheKey(n)), s.currentType !== 13 && r(o, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, s.lastStartLoc, 0, n[s.offset] || ""), a(c, o.currentOffset(), o.currentPosition()), c;
618
+ }
619
+ return { parse: _ };
620
+ }
621
+ function getTokenCaption(e) {
622
+ if (e.type === 13) return "EOF";
623
+ let t = (e.value || "").replace(/\r?\n/gu, "\\n");
624
+ return t.length > 10 ? t.slice(0, 9) + "…" : t;
625
+ }
626
+ function createTransformer(e, t = {}) {
627
+ let n = {
628
+ ast: e,
629
+ helpers: /* @__PURE__ */ new Set()
630
+ };
631
+ return {
632
+ context: () => n,
633
+ helper: (e) => (n.helpers.add(e), e)
634
+ };
635
+ }
636
+ function traverseNodes(e, t) {
637
+ for (let n = 0; n < e.length; n++) traverseNode(e[n], t);
638
+ }
639
+ function traverseNode(e, t) {
640
+ switch (e.type) {
641
+ case 1:
642
+ traverseNodes(e.cases, t), t.helper("plural");
643
+ break;
644
+ case 2:
645
+ traverseNodes(e.items, t);
646
+ break;
647
+ case 6:
648
+ traverseNode(e.key, t), t.helper("linked"), t.helper("type");
649
+ break;
650
+ case 5:
651
+ t.helper("interpolate"), t.helper("list");
652
+ break;
653
+ case 4:
654
+ t.helper("interpolate"), t.helper("named");
655
+ break;
656
+ }
657
+ }
658
+ function transform(e, t = {}) {
659
+ let n = createTransformer(e);
660
+ n.helper("normalize"), e.body && traverseNode(e.body, n);
661
+ let r = n.context();
662
+ e.helpers = Array.from(r.helpers);
663
+ }
664
+ function optimize(e) {
665
+ let t = e.body;
666
+ return t.type === 2 ? optimizeMessageNode(t) : t.cases.forEach((e) => optimizeMessageNode(e)), e;
667
+ }
668
+ function optimizeMessageNode(e) {
669
+ if (e.items.length === 1) {
670
+ let t = e.items[0];
671
+ (t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
672
+ } else {
673
+ let t = [];
674
+ for (let n = 0; n < e.items.length; n++) {
675
+ let r = e.items[n];
676
+ if (!(r.type === 3 || r.type === 9) || r.value == null) break;
677
+ t.push(r.value);
678
+ }
679
+ if (t.length === e.items.length) {
680
+ e.static = join(t);
681
+ for (let t = 0; t < e.items.length; t++) {
682
+ let n = e.items[t];
683
+ (n.type === 3 || n.type === 9) && delete n.value;
684
+ }
685
+ }
686
+ }
687
+ }
688
+ var ERROR_DOMAIN$1 = "minifier";
689
+ function minify(e) {
690
+ switch (e.t = e.type, e.type) {
691
+ case 0: {
692
+ let t = e;
693
+ minify(t.body), t.b = t.body, delete t.body;
694
+ break;
695
+ }
696
+ case 1: {
697
+ let t = e, n = t.cases;
698
+ for (let e = 0; e < n.length; e++) minify(n[e]);
699
+ t.c = n, delete t.cases;
700
+ break;
701
+ }
702
+ case 2: {
703
+ let t = e, n = t.items;
704
+ for (let e = 0; e < n.length; e++) minify(n[e]);
705
+ t.i = n, delete t.items, t.static && (t.s = t.static, delete t.static);
706
+ break;
707
+ }
708
+ case 3:
709
+ case 9:
710
+ case 8:
711
+ case 7: {
712
+ let t = e;
713
+ t.value && (t.v = t.value, delete t.value);
714
+ break;
715
+ }
716
+ case 6: {
717
+ let t = e;
718
+ minify(t.key), t.k = t.key, delete t.key, t.modifier && (minify(t.modifier), t.m = t.modifier, delete t.modifier);
719
+ break;
720
+ }
721
+ case 5: {
722
+ let t = e;
723
+ t.i = t.index, delete t.index;
724
+ break;
725
+ }
726
+ case 4: {
727
+ let t = e;
728
+ t.k = t.key, delete t.key;
729
+ break;
730
+ }
731
+ default: if (process.env.NODE_ENV !== "production") throw createCompileError(CompileErrorCodes.UNHANDLED_MINIFIER_NODE_TYPE, null, {
732
+ domain: ERROR_DOMAIN$1,
733
+ args: [e.type]
734
+ });
735
+ }
736
+ delete e.type;
737
+ }
738
+ var ERROR_DOMAIN = "parser";
739
+ function createCodeGenerator(e, t) {
740
+ let { sourceMap: n, filename: r, breakLineCode: i, needIndent: a } = t, o = t.location !== !1, s = {
741
+ filename: r,
742
+ code: "",
743
+ column: 1,
744
+ line: 1,
745
+ offset: 0,
746
+ map: void 0,
747
+ breakLineCode: i,
748
+ needIndent: a,
749
+ indentLevel: 0
750
+ };
751
+ o && e.loc && (s.source = e.loc.source);
752
+ let c = () => s;
753
+ function l(e, t) {
754
+ s.code += e;
755
+ }
756
+ function u(e, t = !0) {
757
+ let n = t ? i : "";
758
+ l(a ? n + " ".repeat(e) : n);
759
+ }
760
+ function d(e = !0) {
761
+ let t = ++s.indentLevel;
762
+ e && u(t);
763
+ }
764
+ function f(e = !0) {
765
+ let t = --s.indentLevel;
766
+ e && u(t);
767
+ }
768
+ function p() {
769
+ u(s.indentLevel);
770
+ }
771
+ return {
772
+ context: c,
773
+ push: l,
774
+ indent: d,
775
+ deindent: f,
776
+ newline: p,
777
+ helper: (e) => `_${e}`,
778
+ needIndent: () => s.needIndent
779
+ };
780
+ }
781
+ function generateLinkedNode(e, t) {
782
+ let { helper: n } = e;
783
+ e.push(`${n("linked")}(`), generateNode(e, t.key), t.modifier ? (e.push(", "), generateNode(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
784
+ }
785
+ function generateMessageNode(e, t) {
786
+ let { helper: n, needIndent: r } = e;
787
+ e.push(`${n("normalize")}([`), e.indent(r());
788
+ let i = t.items.length;
789
+ for (let n = 0; n < i && (generateNode(e, t.items[n]), n !== i - 1); n++) e.push(", ");
790
+ e.deindent(r()), e.push("])");
791
+ }
792
+ function generatePluralNode(e, t) {
793
+ let { helper: n, needIndent: r } = e;
794
+ if (t.cases.length > 1) {
795
+ e.push(`${n("plural")}([`), e.indent(r());
796
+ let i = t.cases.length;
797
+ for (let n = 0; n < i && (generateNode(e, t.cases[n]), n !== i - 1); n++) e.push(", ");
798
+ e.deindent(r()), e.push("])");
799
+ }
800
+ }
801
+ function generateResource(e, t) {
802
+ t.body ? generateNode(e, t.body) : e.push("null");
803
+ }
804
+ function generateNode(e, t) {
805
+ let { helper: n } = e;
806
+ switch (t.type) {
807
+ case 0:
808
+ generateResource(e, t);
809
+ break;
810
+ case 1:
811
+ generatePluralNode(e, t);
812
+ break;
813
+ case 2:
814
+ generateMessageNode(e, t);
815
+ break;
816
+ case 6:
817
+ generateLinkedNode(e, t);
818
+ break;
819
+ case 8:
820
+ e.push(JSON.stringify(t.value), t);
821
+ break;
822
+ case 7:
823
+ e.push(JSON.stringify(t.value), t);
824
+ break;
825
+ case 5:
826
+ e.push(`${n("interpolate")}(${n("list")}(${t.index}))`, t);
827
+ break;
828
+ case 4:
829
+ e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`, t);
830
+ break;
831
+ case 9:
832
+ e.push(JSON.stringify(t.value), t);
833
+ break;
834
+ case 3:
835
+ e.push(JSON.stringify(t.value), t);
836
+ break;
837
+ default: if (process.env.NODE_ENV !== "production") throw createCompileError(CompileErrorCodes.UNHANDLED_CODEGEN_NODE_TYPE, null, {
838
+ domain: ERROR_DOMAIN,
839
+ args: [t.type]
840
+ });
841
+ }
842
+ }
843
+ var generate = (e, t = {}) => {
844
+ let n = isString(t.mode) ? t.mode : "normal", r = isString(t.filename) ? t.filename : "message.intl", i = !!t.sourceMap, a = t.breakLineCode == null ? n === "arrow" ? ";" : "\n" : t.breakLineCode, o = t.needIndent ? t.needIndent : n !== "arrow", s = e.helpers || [], c = createCodeGenerator(e, {
845
+ mode: n,
846
+ filename: r,
847
+ sourceMap: i,
848
+ breakLineCode: a,
849
+ needIndent: o
850
+ });
851
+ c.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), c.indent(o), s.length > 0 && (c.push(`const { ${join(s.map((e) => `${e}: _${e}`), ", ")} } = ctx`), c.newline()), c.push("return "), generateNode(c, e), c.deindent(o), c.push("}"), delete e.helpers;
852
+ let { code: l, map: u } = c.context();
853
+ return {
854
+ ast: e,
855
+ code: l,
856
+ map: u ? u.toJSON() : void 0
857
+ };
858
+ };
859
+ function baseCompile(e, t = {}) {
860
+ let n = assign({}, t), r = !!n.jit, i = !!n.minify, a = n.optimize == null ? !0 : n.optimize, o = createParser(n).parse(e);
861
+ return r ? (a && optimize(o), i && minify(o), {
862
+ ast: o,
863
+ code: ""
864
+ }) : (transform(o, n), generate(o, n));
865
+ }
866
+ function initFeatureFlags$1() {
867
+ typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (getGlobalThis().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (getGlobalThis().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
868
+ }
869
+ function isMessageAST(e) {
870
+ return isObject(e) && resolveType(e) === 0 && (hasOwn(e, "b") || hasOwn(e, "body"));
871
+ }
872
+ var PROPS_BODY = ["b", "body"];
873
+ function resolveBody(e) {
874
+ return resolveProps(e, PROPS_BODY);
875
+ }
876
+ var PROPS_CASES = ["c", "cases"];
877
+ function resolveCases(e) {
878
+ return resolveProps(e, PROPS_CASES, []);
879
+ }
880
+ var PROPS_STATIC = ["s", "static"];
881
+ function resolveStatic(e) {
882
+ return resolveProps(e, PROPS_STATIC);
883
+ }
884
+ var PROPS_ITEMS = ["i", "items"];
885
+ function resolveItems(e) {
886
+ return resolveProps(e, PROPS_ITEMS, []);
887
+ }
888
+ var PROPS_TYPE = ["t", "type"];
889
+ function resolveType(e) {
890
+ return resolveProps(e, PROPS_TYPE);
891
+ }
892
+ var PROPS_VALUE = ["v", "value"];
893
+ function resolveValue$1(e, t) {
894
+ let n = resolveProps(e, PROPS_VALUE);
895
+ if (n != null) return n;
896
+ throw createUnhandleNodeError(t);
897
+ }
898
+ var PROPS_MODIFIER = ["m", "modifier"];
899
+ function resolveLinkedModifier(e) {
900
+ return resolveProps(e, PROPS_MODIFIER);
901
+ }
902
+ var PROPS_KEY = ["k", "key"];
903
+ function resolveLinkedKey(e) {
904
+ let t = resolveProps(e, PROPS_KEY);
905
+ if (t) return t;
906
+ throw createUnhandleNodeError(6);
907
+ }
908
+ function resolveProps(e, t, n) {
909
+ for (let n = 0; n < t.length; n++) {
910
+ let r = t[n];
911
+ if (hasOwn(e, r) && e[r] != null) return e[r];
912
+ }
913
+ return n;
914
+ }
915
+ var AST_NODE_PROPS_KEYS = [
916
+ ...PROPS_BODY,
917
+ ...PROPS_CASES,
918
+ ...PROPS_STATIC,
919
+ ...PROPS_ITEMS,
920
+ ...PROPS_KEY,
921
+ ...PROPS_MODIFIER,
922
+ ...PROPS_VALUE,
923
+ ...PROPS_TYPE
924
+ ];
925
+ function createUnhandleNodeError(e) {
926
+ return /* @__PURE__ */ Error(`unhandled node type: ${e}`);
927
+ }
928
+ function format$1(e) {
929
+ return (t) => formatParts(t, e);
930
+ }
931
+ function formatParts(e, t) {
932
+ let n = resolveBody(t);
933
+ if (n == null) throw createUnhandleNodeError(0);
934
+ if (resolveType(n) === 1) {
935
+ let t = resolveCases(n);
936
+ return e.plural(t.reduce((t, n) => [...t, formatMessageParts(e, n)], []));
937
+ } else return formatMessageParts(e, n);
938
+ }
939
+ function formatMessageParts(e, t) {
940
+ let n = resolveStatic(t);
941
+ if (n != null) return e.type === "text" ? n : e.normalize([n]);
942
+ {
943
+ let n = resolveItems(t).reduce((t, n) => [...t, formatMessagePart(e, n)], []);
944
+ return e.normalize(n);
945
+ }
946
+ }
947
+ function formatMessagePart(e, t) {
948
+ let n = resolveType(t);
949
+ switch (n) {
950
+ case 3: return resolveValue$1(t, n);
951
+ case 9: return resolveValue$1(t, n);
952
+ case 4: {
953
+ let r = t;
954
+ if (hasOwn(r, "k") && r.k) return e.interpolate(e.named(r.k));
955
+ if (hasOwn(r, "key") && r.key) return e.interpolate(e.named(r.key));
956
+ throw createUnhandleNodeError(n);
957
+ }
958
+ case 5: {
959
+ let r = t;
960
+ if (hasOwn(r, "i") && isNumber(r.i)) return e.interpolate(e.list(r.i));
961
+ if (hasOwn(r, "index") && isNumber(r.index)) return e.interpolate(e.list(r.index));
962
+ throw createUnhandleNodeError(n);
963
+ }
964
+ case 6: {
965
+ let n = t, r = resolveLinkedModifier(n), i = resolveLinkedKey(n);
966
+ return e.linked(formatMessagePart(e, i), r ? formatMessagePart(e, r) : void 0, e.type);
967
+ }
968
+ case 7: return resolveValue$1(t, n);
969
+ case 8: return resolveValue$1(t, n);
970
+ default: throw Error(`unhandled node on format message part: ${n}`);
971
+ }
972
+ }
973
+ var WARN_MESSAGE = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
974
+ function checkHtmlMessage(e, t) {
975
+ t && detectHtmlTag(e) && warn(format(WARN_MESSAGE, { source: e }));
976
+ }
977
+ var defaultOnCacheKey = (e) => e, compileCache = create();
978
+ function baseCompile$1(e, t = {}) {
979
+ let n = !1, r = t.onError || defaultOnError;
980
+ return t.onError = (e) => {
981
+ n = !0, r(e);
982
+ }, {
983
+ ...baseCompile(e, t),
984
+ detectError: n
985
+ };
986
+ }
987
+ /* @__NO_SIDE_EFFECTS__ */
988
+ function compile(e, t) {
989
+ if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && isString(e)) {
990
+ let n = isBoolean(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
991
+ process.env.NODE_ENV !== "production" && checkHtmlMessage(e, n);
992
+ let r = (t.onCacheKey || defaultOnCacheKey)(e), i = compileCache[r];
993
+ if (i) return i;
994
+ let { ast: a, detectError: o } = baseCompile$1(e, {
995
+ ...t,
996
+ location: process.env.NODE_ENV !== "production",
997
+ jit: !0
998
+ }), s = format$1(a);
999
+ return o ? s : compileCache[r] = s;
1000
+ } else {
1001
+ if (process.env.NODE_ENV !== "production" && !isMessageAST(e)) return warn(`the message that is resolve with key '${t.key}' is not supported for jit compilation`), (() => e);
1002
+ let n = e.cacheKey;
1003
+ return n ? compileCache[n] || (compileCache[n] = format$1(e)) : format$1(e);
1004
+ }
1005
+ }
1006
+ var devtools = null;
1007
+ function setDevToolsHook(e) {
1008
+ devtools = e;
1009
+ }
1010
+ function initI18nDevTools(e, t, n) {
1011
+ devtools && devtools.emit("i18n:init", {
1012
+ timestamp: Date.now(),
1013
+ i18n: e,
1014
+ version: t,
1015
+ meta: n
1016
+ });
1017
+ }
1018
+ var translateDevTools = /* @__PURE__ */ createDevToolsHook("function:translate");
1019
+ function createDevToolsHook(e) {
1020
+ return (t) => devtools && devtools.emit(e, t);
1021
+ }
1022
+ var CoreErrorCodes = {
1023
+ INVALID_ARGUMENT: 17,
1024
+ INVALID_DATE_ARGUMENT: 18,
1025
+ INVALID_ISO_DATE_ARGUMENT: 19,
1026
+ NOT_SUPPORT_NON_STRING_MESSAGE: 20,
1027
+ NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
1028
+ NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
1029
+ NOT_SUPPORT_LOCALE_TYPE: 23
1030
+ };
1031
+ function createCoreError(e) {
1032
+ return createCompileError(e, null, process.env.NODE_ENV === "production" ? void 0 : { messages: errorMessages$1 });
1033
+ }
1034
+ var errorMessages$1 = {
1035
+ [CoreErrorCodes.INVALID_ARGUMENT]: "Invalid arguments",
1036
+ [CoreErrorCodes.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
1037
+ [CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
1038
+ [CoreErrorCodes.NOT_SUPPORT_NON_STRING_MESSAGE]: "Not support non-string message",
1039
+ [CoreErrorCodes.NOT_SUPPORT_LOCALE_PROMISE_VALUE]: "cannot support promise value",
1040
+ [CoreErrorCodes.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: "cannot support async function",
1041
+ [CoreErrorCodes.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
1042
+ };
1043
+ function getLocale(e, t) {
1044
+ return t.locale == null ? resolveLocale(e.locale) : resolveLocale(t.locale);
1045
+ }
1046
+ var _resolveLocale;
1047
+ function resolveLocale(e) {
1048
+ if (isString(e)) return e;
1049
+ if (isFunction(e)) {
1050
+ if (e.resolvedOnce && _resolveLocale != null) return _resolveLocale;
1051
+ if (e.constructor.name === "Function") {
1052
+ let t = e();
1053
+ if (isPromise(t)) throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
1054
+ return _resolveLocale = t;
1055
+ } else throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
1056
+ } else throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_TYPE);
1057
+ }
1058
+ function fallbackWithSimple(e, t, n) {
1059
+ return [...new Set([n, ...isArray(t) ? t : isObject(t) ? Object.keys(t) : isString(t) ? [t] : [n]])];
1060
+ }
1061
+ function fallbackWithLocaleChain(e, t, n) {
1062
+ let r = isString(n) ? n : DEFAULT_LOCALE, i = e;
1063
+ i.__localeChainCache ||= /* @__PURE__ */ new Map();
1064
+ let a = i.__localeChainCache.get(r);
1065
+ if (!a) {
1066
+ a = [];
1067
+ let e = [n];
1068
+ for (; isArray(e);) e = appendBlockToChain(a, e, t);
1069
+ let o = isArray(t) || !isPlainObject(t) ? t : t.default ? t.default : null;
1070
+ e = isString(o) ? [o] : o, isArray(e) && appendBlockToChain(a, e, !1), i.__localeChainCache.set(r, a);
1071
+ }
1072
+ return a;
1073
+ }
1074
+ function appendBlockToChain(e, t, n) {
1075
+ let r = !0;
1076
+ for (let i = 0; i < t.length && isBoolean(r); i++) {
1077
+ let a = t[i];
1078
+ isString(a) && (r = appendLocaleToChain(e, t[i], n));
1079
+ }
1080
+ return r;
1081
+ }
1082
+ function appendLocaleToChain(e, t, n) {
1083
+ let r, i = t.split("-");
1084
+ do
1085
+ r = appendItemToChain(e, i.join("-"), n), i.splice(-1, 1);
1086
+ while (i.length && r === !0);
1087
+ return r;
1088
+ }
1089
+ function appendItemToChain(e, t, n) {
1090
+ let r = !1;
1091
+ if (!e.includes(t) && (r = !0, t)) {
1092
+ r = t[t.length - 1] !== "!";
1093
+ let i = t.replace(/!/g, "");
1094
+ e.push(i), (isArray(n) || isPlainObject(n)) && n[i] && (r = n[i]);
1095
+ }
1096
+ return r;
1097
+ }
1098
+ var pathStateMachine = [];
1099
+ pathStateMachine[0] = {
1100
+ w: [0],
1101
+ i: [3, 0],
1102
+ "[": [4],
1103
+ o: [7]
1104
+ }, pathStateMachine[1] = {
1105
+ w: [1],
1106
+ ".": [2],
1107
+ "[": [4],
1108
+ o: [7]
1109
+ }, pathStateMachine[2] = {
1110
+ w: [2],
1111
+ i: [3, 0],
1112
+ 0: [3, 0]
1113
+ }, pathStateMachine[3] = {
1114
+ i: [3, 0],
1115
+ 0: [3, 0],
1116
+ w: [1, 1],
1117
+ ".": [2, 1],
1118
+ "[": [4, 1],
1119
+ o: [7, 1]
1120
+ }, pathStateMachine[4] = {
1121
+ "'": [5, 0],
1122
+ "\"": [6, 0],
1123
+ "[": [4, 2],
1124
+ "]": [1, 3],
1125
+ o: 8,
1126
+ l: [4, 0]
1127
+ }, pathStateMachine[5] = {
1128
+ "'": [4, 0],
1129
+ o: 8,
1130
+ l: [5, 0]
1131
+ }, pathStateMachine[6] = {
1132
+ "\"": [4, 0],
1133
+ o: 8,
1134
+ l: [6, 0]
1135
+ };
1136
+ var literalValueRE = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
1137
+ function isLiteral(e) {
1138
+ return literalValueRE.test(e);
1139
+ }
1140
+ function stripQuotes(e) {
1141
+ let t = e.charCodeAt(0);
1142
+ return t === e.charCodeAt(e.length - 1) && (t === 34 || t === 39) ? e.slice(1, -1) : e;
1143
+ }
1144
+ function getPathCharType(e) {
1145
+ if (e == null) return "o";
1146
+ switch (e.charCodeAt(0)) {
1147
+ case 91:
1148
+ case 93:
1149
+ case 46:
1150
+ case 34:
1151
+ case 39: return e;
1152
+ case 95:
1153
+ case 36:
1154
+ case 45: return "i";
1155
+ case 9:
1156
+ case 10:
1157
+ case 13:
1158
+ case 160:
1159
+ case 65279:
1160
+ case 8232:
1161
+ case 8233: return "w";
1162
+ }
1163
+ return "i";
1164
+ }
1165
+ function formatSubPath(e) {
1166
+ let t = e.trim();
1167
+ return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : isLiteral(t) ? stripQuotes(t) : "*" + t;
1168
+ }
1169
+ function parse(e) {
1170
+ let t = [], n = -1, r = 0, i = 0, a, o, s, c, l, u, d, f = [];
1171
+ f[0] = () => {
1172
+ o === void 0 ? o = s : o += s;
1173
+ }, f[1] = () => {
1174
+ o !== void 0 && (t.push(o), o = void 0);
1175
+ }, f[2] = () => {
1176
+ f[0](), i++;
1177
+ }, f[3] = () => {
1178
+ if (i > 0) i--, r = 4, f[0]();
1179
+ else {
1180
+ if (i = 0, o === void 0 || (o = formatSubPath(o), o === !1)) return !1;
1181
+ f[1]();
1182
+ }
1183
+ };
1184
+ function p() {
1185
+ let t = e[n + 1];
1186
+ if (r === 5 && t === "'" || r === 6 && t === "\"") return n++, s = "\\" + t, f[0](), !0;
1187
+ }
1188
+ for (; r !== null;) if (n++, a = e[n], !(a === "\\" && p())) {
1189
+ if (c = getPathCharType(a), d = pathStateMachine[r], l = d[c] || d.l || 8, l === 8 || (r = l[0], l[1] !== void 0 && (u = f[l[1]], u && (s = a, u() === !1)))) return;
1190
+ if (r === 7) return t;
1191
+ }
1192
+ }
1193
+ var cache = /* @__PURE__ */ new Map();
1194
+ function resolveWithKeyValue(e, t) {
1195
+ return isObject(e) ? e[t] : null;
1196
+ }
1197
+ function resolveValue(e, t) {
1198
+ if (!isObject(e)) return null;
1199
+ let n = cache.get(t);
1200
+ if (n || (n = parse(t), n && cache.set(t, n)), !n) return null;
1201
+ let r = n.length, i = e, a = 0;
1202
+ for (; a < r;) {
1203
+ let e = n[a];
1204
+ if (AST_NODE_PROPS_KEYS.includes(e) && isMessageAST(i)) return null;
1205
+ let t = i[e];
1206
+ if (t === void 0 || isFunction(i)) return null;
1207
+ i = t, a++;
1208
+ }
1209
+ return i;
1210
+ }
1211
+ var CoreWarnCodes = {
1212
+ NOT_FOUND_KEY: 1,
1213
+ FALLBACK_TO_TRANSLATE: 2,
1214
+ CANNOT_FORMAT_NUMBER: 3,
1215
+ FALLBACK_TO_NUMBER_FORMAT: 4,
1216
+ CANNOT_FORMAT_DATE: 5,
1217
+ FALLBACK_TO_DATE_FORMAT: 6,
1218
+ EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7
1219
+ }, warnMessages$1 = {
1220
+ [CoreWarnCodes.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
1221
+ [CoreWarnCodes.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
1222
+ [CoreWarnCodes.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
1223
+ [CoreWarnCodes.FALLBACK_TO_NUMBER_FORMAT]: "Fall back to number format '{key}' key with '{target}' locale.",
1224
+ [CoreWarnCodes.CANNOT_FORMAT_DATE]: "Cannot format a date value due to not supported Intl.DateTimeFormat.",
1225
+ [CoreWarnCodes.FALLBACK_TO_DATE_FORMAT]: "Fall back to datetime format '{key}' key with '{target}' locale.",
1226
+ [CoreWarnCodes.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."
1227
+ };
1228
+ function getWarnMessage$1(e, ...t) {
1229
+ return format(warnMessages$1[e], ...t);
1230
+ }
1231
+ var VERSION$1 = "11.2.8", DEFAULT_LOCALE = "en-US", capitalize = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
1232
+ function getDefaultLinkedModifiers() {
1233
+ return {
1234
+ upper: (e, t) => t === "text" && isString(e) ? e.toUpperCase() : t === "vnode" && isObject(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
1235
+ lower: (e, t) => t === "text" && isString(e) ? e.toLowerCase() : t === "vnode" && isObject(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
1236
+ capitalize: (e, t) => t === "text" && isString(e) ? capitalize(e) : t === "vnode" && isObject(e) && "__v_isVNode" in e ? capitalize(e.children) : e
1237
+ };
1238
+ }
1239
+ var _compiler;
1240
+ function registerMessageCompiler(e) {
1241
+ _compiler = e;
1242
+ }
1243
+ var _resolver;
1244
+ function registerMessageResolver(e) {
1245
+ _resolver = e;
1246
+ }
1247
+ var _fallbacker;
1248
+ function registerLocaleFallbacker(e) {
1249
+ _fallbacker = e;
1250
+ }
1251
+ var _additionalMeta = null, getAdditionalMeta = /* @__NO_SIDE_EFFECTS__ */ () => _additionalMeta, _fallbackContext = null, setFallbackContext = (e) => {
1252
+ _fallbackContext = e;
1253
+ }, getFallbackContext = () => _fallbackContext, _cid = 0;
1254
+ function createCoreContext(e = {}) {
1255
+ let t = isFunction(e.onWarn) ? e.onWarn : warn, n = isString(e.version) ? e.version : VERSION$1, r = isString(e.locale) || isFunction(e.locale) ? e.locale : DEFAULT_LOCALE, i = isFunction(r) ? DEFAULT_LOCALE : r, a = isArray(e.fallbackLocale) || isPlainObject(e.fallbackLocale) || isString(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : i, o = isPlainObject(e.messages) ? e.messages : createResources(i), s = isPlainObject(e.datetimeFormats) ? e.datetimeFormats : createResources(i), c = isPlainObject(e.numberFormats) ? e.numberFormats : createResources(i), l = assign(create(), e.modifiers, getDefaultLinkedModifiers()), u = e.pluralRules || create(), d = isFunction(e.missing) ? e.missing : null, f = isBoolean(e.missingWarn) || isRegExp(e.missingWarn) ? e.missingWarn : !0, p = isBoolean(e.fallbackWarn) || isRegExp(e.fallbackWarn) ? e.fallbackWarn : !0, m = !!e.fallbackFormat, g = !!e.unresolving, _ = isFunction(e.postTranslation) ? e.postTranslation : null, v = isPlainObject(e.processor) ? e.processor : null, y = isBoolean(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, b = !!e.escapeParameter, x = isFunction(e.messageCompiler) ? e.messageCompiler : _compiler;
1256
+ process.env.NODE_ENV !== "production" && isFunction(e.messageCompiler) && warnOnce(getWarnMessage$1(CoreWarnCodes.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
1257
+ let S = isFunction(e.messageResolver) ? e.messageResolver : _resolver || resolveWithKeyValue, C = isFunction(e.localeFallbacker) ? e.localeFallbacker : _fallbacker || fallbackWithSimple, w = isObject(e.fallbackContext) ? e.fallbackContext : void 0, T = e, E = isObject(T.__datetimeFormatters) ? T.__datetimeFormatters : /* @__PURE__ */ new Map(), D = isObject(T.__numberFormatters) ? T.__numberFormatters : /* @__PURE__ */ new Map(), O = isObject(T.__meta) ? T.__meta : {};
1258
+ _cid++;
1259
+ let k = {
1260
+ version: n,
1261
+ cid: _cid,
1262
+ locale: r,
1263
+ fallbackLocale: a,
1264
+ messages: o,
1265
+ modifiers: l,
1266
+ pluralRules: u,
1267
+ missing: d,
1268
+ missingWarn: f,
1269
+ fallbackWarn: p,
1270
+ fallbackFormat: m,
1271
+ unresolving: g,
1272
+ postTranslation: _,
1273
+ processor: v,
1274
+ warnHtmlMessage: y,
1275
+ escapeParameter: b,
1276
+ messageCompiler: x,
1277
+ messageResolver: S,
1278
+ localeFallbacker: C,
1279
+ fallbackContext: w,
1280
+ onWarn: t,
1281
+ __meta: O
1282
+ };
1283
+ return k.datetimeFormats = s, k.numberFormats = c, k.__datetimeFormatters = E, k.__numberFormatters = D, process.env.NODE_ENV !== "production" && (k.__v_emitter = T.__v_emitter == null ? void 0 : T.__v_emitter), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && initI18nDevTools(k, n, O), k;
1284
+ }
1285
+ var createResources = (e) => ({ [e]: create() });
1286
+ function isTranslateFallbackWarn(e, t) {
1287
+ return e instanceof RegExp ? e.test(t) : e;
1288
+ }
1289
+ function isTranslateMissingWarn(e, t) {
1290
+ return e instanceof RegExp ? e.test(t) : e;
1291
+ }
1292
+ function handleMissing(e, t, n, r, i) {
1293
+ let { missing: a, onWarn: o } = e;
1294
+ if (process.env.NODE_ENV !== "production") {
1295
+ let r = e.__v_emitter;
1296
+ r && r.emit("missing", {
1297
+ locale: n,
1298
+ key: t,
1299
+ type: i,
1300
+ groupId: `${i}:${t}`
1301
+ });
1302
+ }
1303
+ if (a !== null) {
1304
+ let r = a(e, n, t, i);
1305
+ return isString(r) ? r : t;
1306
+ } else return process.env.NODE_ENV !== "production" && isTranslateMissingWarn(r, t) && o(getWarnMessage$1(CoreWarnCodes.NOT_FOUND_KEY, {
1307
+ key: t,
1308
+ locale: n
1309
+ })), t;
1310
+ }
1311
+ function updateFallbackLocale(e, t, n) {
1312
+ let r = e;
1313
+ r.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
1314
+ }
1315
+ function isAlmostSameLocale(e, t) {
1316
+ return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
1317
+ }
1318
+ function isImplicitFallback(e, t) {
1319
+ let n = t.indexOf(e);
1320
+ if (n === -1) return !1;
1321
+ for (let r = n + 1; r < t.length; r++) if (isAlmostSameLocale(e, t[r])) return !0;
1322
+ return !1;
1323
+ }
1324
+ var intlDefined = typeof Intl < "u", Availabilities = {
1325
+ dateTimeFormat: intlDefined && Intl.DateTimeFormat !== void 0,
1326
+ numberFormat: intlDefined && Intl.NumberFormat !== void 0
1327
+ };
1328
+ function datetime(e, ...t) {
1329
+ let { datetimeFormats: n, unresolving: r, fallbackLocale: i, onWarn: a, localeFallbacker: o } = e, { __datetimeFormatters: s } = e;
1330
+ if (process.env.NODE_ENV !== "production" && !Availabilities.dateTimeFormat) return a(getWarnMessage$1(CoreWarnCodes.CANNOT_FORMAT_DATE)), "";
1331
+ let [c, l, u, d] = parseDateTimeArgs(...t), f = isBoolean(u.missingWarn) ? u.missingWarn : e.missingWarn, p = isBoolean(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn, m = !!u.part, g = getLocale(e, u), _ = o(e, i, g);
1332
+ if (!isString(c) || c === "") return new Intl.DateTimeFormat(g, d).format(l);
1333
+ let v = {}, y, b = null, x = g, S = null, C = "datetime format";
1334
+ for (let t = 0; t < _.length; t++) {
1335
+ if (y = S = _[t], process.env.NODE_ENV !== "production" && g !== y && isTranslateFallbackWarn(p, c) && a(getWarnMessage$1(CoreWarnCodes.FALLBACK_TO_DATE_FORMAT, {
1336
+ key: c,
1337
+ target: y
1338
+ })), process.env.NODE_ENV !== "production" && g !== y) {
1339
+ let t = e.__v_emitter;
1340
+ t && t.emit("fallback", {
1341
+ type: C,
1342
+ key: c,
1343
+ from: x,
1344
+ to: S,
1345
+ groupId: `${C}:${c}`
1346
+ });
1347
+ }
1348
+ if (v = n[y] || {}, b = v[c], isPlainObject(b)) break;
1349
+ handleMissing(e, c, y, f, C), x = S;
1350
+ }
1351
+ if (!isPlainObject(b) || !isString(y)) return r ? -1 : c;
1352
+ let w = `${y}__${c}`;
1353
+ isEmptyObject(d) || (w = `${w}__${JSON.stringify(d)}`);
1354
+ let T = s.get(w);
1355
+ return T || (T = new Intl.DateTimeFormat(y, assign({}, b, d)), s.set(w, T)), m ? T.formatToParts(l) : T.format(l);
1356
+ }
1357
+ var DATETIME_FORMAT_OPTIONS_KEYS = [
1358
+ "localeMatcher",
1359
+ "weekday",
1360
+ "era",
1361
+ "year",
1362
+ "month",
1363
+ "day",
1364
+ "hour",
1365
+ "minute",
1366
+ "second",
1367
+ "timeZoneName",
1368
+ "formatMatcher",
1369
+ "hour12",
1370
+ "timeZone",
1371
+ "dateStyle",
1372
+ "timeStyle",
1373
+ "calendar",
1374
+ "dayPeriod",
1375
+ "numberingSystem",
1376
+ "hourCycle",
1377
+ "fractionalSecondDigits"
1378
+ ];
1379
+ function parseDateTimeArgs(...e) {
1380
+ let [t, n, r, i] = e, a = create(), o = create(), s;
1381
+ if (isString(t)) {
1382
+ let e = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
1383
+ if (!e) throw createCoreError(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT);
1384
+ let n = e[3] ? e[3].trim().startsWith("T") ? `${e[1].trim()}${e[3].trim()}` : `${e[1].trim()}T${e[3].trim()}` : e[1].trim();
1385
+ s = new Date(n);
1386
+ try {
1387
+ s.toISOString();
1388
+ } catch {
1389
+ throw createCoreError(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT);
1390
+ }
1391
+ } else if (isDate(t)) {
1392
+ if (isNaN(t.getTime())) throw createCoreError(CoreErrorCodes.INVALID_DATE_ARGUMENT);
1393
+ s = t;
1394
+ } else if (isNumber(t)) s = t;
1395
+ else throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);
1396
+ return isString(n) ? a.key = n : isPlainObject(n) && Object.keys(n).forEach((e) => {
1397
+ DATETIME_FORMAT_OPTIONS_KEYS.includes(e) ? o[e] = n[e] : a[e] = n[e];
1398
+ }), isString(r) ? a.locale = r : isPlainObject(r) && (o = r), isPlainObject(i) && (o = i), [
1399
+ a.key || "",
1400
+ s,
1401
+ a,
1402
+ o
1403
+ ];
1404
+ }
1405
+ function clearDateTimeFormat(e, t, n) {
1406
+ let r = e;
1407
+ for (let e in n) {
1408
+ let n = `${t}__${e}`;
1409
+ r.__datetimeFormatters.has(n) && r.__datetimeFormatters.delete(n);
1410
+ }
1411
+ }
1412
+ function number(e, ...t) {
1413
+ let { numberFormats: n, unresolving: r, fallbackLocale: i, onWarn: a, localeFallbacker: o } = e, { __numberFormatters: s } = e;
1414
+ if (process.env.NODE_ENV !== "production" && !Availabilities.numberFormat) return a(getWarnMessage$1(CoreWarnCodes.CANNOT_FORMAT_NUMBER)), "";
1415
+ let [c, l, u, d] = parseNumberArgs(...t), f = isBoolean(u.missingWarn) ? u.missingWarn : e.missingWarn, p = isBoolean(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn, m = !!u.part, g = getLocale(e, u), _ = o(e, i, g);
1416
+ if (!isString(c) || c === "") return new Intl.NumberFormat(g, d).format(l);
1417
+ let v = {}, y, b = null, x = g, S = null, C = "number format";
1418
+ for (let t = 0; t < _.length; t++) {
1419
+ if (y = S = _[t], process.env.NODE_ENV !== "production" && g !== y && isTranslateFallbackWarn(p, c) && a(getWarnMessage$1(CoreWarnCodes.FALLBACK_TO_NUMBER_FORMAT, {
1420
+ key: c,
1421
+ target: y
1422
+ })), process.env.NODE_ENV !== "production" && g !== y) {
1423
+ let t = e.__v_emitter;
1424
+ t && t.emit("fallback", {
1425
+ type: C,
1426
+ key: c,
1427
+ from: x,
1428
+ to: S,
1429
+ groupId: `${C}:${c}`
1430
+ });
1431
+ }
1432
+ if (v = n[y] || {}, b = v[c], isPlainObject(b)) break;
1433
+ handleMissing(e, c, y, f, C), x = S;
1434
+ }
1435
+ if (!isPlainObject(b) || !isString(y)) return r ? -1 : c;
1436
+ let w = `${y}__${c}`;
1437
+ isEmptyObject(d) || (w = `${w}__${JSON.stringify(d)}`);
1438
+ let T = s.get(w);
1439
+ return T || (T = new Intl.NumberFormat(y, assign({}, b, d)), s.set(w, T)), m ? T.formatToParts(l) : T.format(l);
1440
+ }
1441
+ var NUMBER_FORMAT_OPTIONS_KEYS = [
1442
+ "localeMatcher",
1443
+ "style",
1444
+ "currency",
1445
+ "currencyDisplay",
1446
+ "currencySign",
1447
+ "useGrouping",
1448
+ "minimumIntegerDigits",
1449
+ "minimumFractionDigits",
1450
+ "maximumFractionDigits",
1451
+ "minimumSignificantDigits",
1452
+ "maximumSignificantDigits",
1453
+ "compactDisplay",
1454
+ "notation",
1455
+ "signDisplay",
1456
+ "unit",
1457
+ "unitDisplay",
1458
+ "roundingMode",
1459
+ "roundingPriority",
1460
+ "roundingIncrement",
1461
+ "trailingZeroDisplay"
1462
+ ];
1463
+ function parseNumberArgs(...e) {
1464
+ let [t, n, r, i] = e, a = create(), o = create();
1465
+ if (!isNumber(t)) throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);
1466
+ let s = t;
1467
+ return isString(n) ? a.key = n : isPlainObject(n) && Object.keys(n).forEach((e) => {
1468
+ NUMBER_FORMAT_OPTIONS_KEYS.includes(e) ? o[e] = n[e] : a[e] = n[e];
1469
+ }), isString(r) ? a.locale = r : isPlainObject(r) && (o = r), isPlainObject(i) && (o = i), [
1470
+ a.key || "",
1471
+ s,
1472
+ a,
1473
+ o
1474
+ ];
1475
+ }
1476
+ function clearNumberFormat(e, t, n) {
1477
+ let r = e;
1478
+ for (let e in n) {
1479
+ let n = `${t}__${e}`;
1480
+ r.__numberFormatters.has(n) && r.__numberFormatters.delete(n);
1481
+ }
1482
+ }
1483
+ var DEFAULT_MODIFIER = (e) => e, DEFAULT_MESSAGE = (e) => "", DEFAULT_MESSAGE_DATA_TYPE = "text", DEFAULT_NORMALIZE = (e) => e.length === 0 ? "" : join(e), DEFAULT_INTERPOLATE = toDisplayString$1;
1484
+ function pluralDefault(e, t) {
1485
+ return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
1486
+ }
1487
+ function getPluralIndex(e) {
1488
+ let t = isNumber(e.pluralIndex) ? e.pluralIndex : -1;
1489
+ return e.named && (isNumber(e.named.count) || isNumber(e.named.n)) ? isNumber(e.named.count) ? e.named.count : isNumber(e.named.n) ? e.named.n : t : t;
1490
+ }
1491
+ function normalizeNamed(e, t) {
1492
+ t.count ||= e, t.n ||= e;
1493
+ }
1494
+ function createMessageContext(e = {}) {
1495
+ let t = e.locale, n = getPluralIndex(e), r = isObject(e.pluralRules) && isString(t) && isFunction(e.pluralRules[t]) ? e.pluralRules[t] : pluralDefault, i = isObject(e.pluralRules) && isString(t) && isFunction(e.pluralRules[t]) ? pluralDefault : void 0, a = (e) => e[r(n, e.length, i)], o = e.list || [], s = (e) => o[e], c = e.named || create();
1496
+ isNumber(e.pluralIndex) && normalizeNamed(n, c);
1497
+ let l = (e) => c[e];
1498
+ function u(t, n) {
1499
+ return (isFunction(e.messages) ? e.messages(t, !!n) : isObject(e.messages) ? e.messages[t] : !1) || (e.parent ? e.parent.message(t) : DEFAULT_MESSAGE);
1500
+ }
1501
+ let d = (t) => e.modifiers ? e.modifiers[t] : DEFAULT_MODIFIER, f = isPlainObject(e.processor) && isFunction(e.processor.normalize) ? e.processor.normalize : DEFAULT_NORMALIZE, p = isPlainObject(e.processor) && isFunction(e.processor.interpolate) ? e.processor.interpolate : DEFAULT_INTERPOLATE, m = {
1502
+ list: s,
1503
+ named: l,
1504
+ plural: a,
1505
+ linked: (e, ...t) => {
1506
+ let [n, r] = t, i = "text", a = "";
1507
+ t.length === 1 ? isObject(n) ? (a = n.modifier || a, i = n.type || i) : isString(n) && (a = n || a) : t.length === 2 && (isString(n) && (a = n || a), isString(r) && (i = r || i));
1508
+ let o = u(e, !0)(m), s = i === "vnode" && isArray(o) && a ? o[0] : o;
1509
+ return a ? d(a)(s, i) : s;
1510
+ },
1511
+ message: u,
1512
+ type: isPlainObject(e.processor) && isString(e.processor.type) ? e.processor.type : DEFAULT_MESSAGE_DATA_TYPE,
1513
+ interpolate: p,
1514
+ normalize: f,
1515
+ values: assign(create(), o, c)
1516
+ };
5
1517
  return m;
1518
+ }
1519
+ var NOOP_MESSAGE_FUNCTION = () => "", isMessageFunction = (e) => isFunction(e);
1520
+ function translate(e, ...t) {
1521
+ let { fallbackFormat: n, postTranslation: r, unresolving: i, messageCompiler: a, fallbackLocale: o, messages: s } = e, [c, l] = parseTranslateArgs(...t), u = isBoolean(l.missingWarn) ? l.missingWarn : e.missingWarn, d = isBoolean(l.fallbackWarn) ? l.fallbackWarn : e.fallbackWarn, f = isBoolean(l.escapeParameter) ? l.escapeParameter : e.escapeParameter, p = !!l.resolvedMessage, m = isString(l.default) || isBoolean(l.default) ? isBoolean(l.default) ? a ? c : () => c : l.default : n ? a ? c : () => c : null, g = n || m != null && (isString(m) || isFunction(m)), _ = getLocale(e, l);
1522
+ f && escapeParams(l);
1523
+ let [v, y, b] = p ? [
1524
+ c,
1525
+ _,
1526
+ s[_] || create()
1527
+ ] : resolveMessageFormat(e, c, _, o, d, u), x = v, S = c;
1528
+ if (!p && !(isString(x) || isMessageAST(x) || isMessageFunction(x)) && g && (x = m, S = x), !p && (!(isString(x) || isMessageAST(x) || isMessageFunction(x)) || !isString(y))) return i ? -1 : c;
1529
+ if (process.env.NODE_ENV !== "production" && isString(x) && e.messageCompiler == null) return warn(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${c}'.`), c;
1530
+ let C = !1, w = isMessageFunction(x) ? x : compileMessageFormat(e, c, y, x, S, () => {
1531
+ C = !0;
1532
+ });
1533
+ if (C) return x;
1534
+ let T = evaluateMessage(e, w, createMessageContext(getMessageContextOptions(e, y, b, l))), E = r ? r(T, c) : T;
1535
+ if (f && isString(E) && (E = sanitizeTranslatedHtml(E)), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
1536
+ let t = {
1537
+ timestamp: Date.now(),
1538
+ key: isString(c) ? c : isMessageFunction(x) ? x.key : "",
1539
+ locale: y || (isMessageFunction(x) ? x.locale : ""),
1540
+ format: isString(x) ? x : isMessageFunction(x) ? x.source : "",
1541
+ message: E
1542
+ };
1543
+ t.meta = assign({}, e.__meta, /* @__PURE__ */ getAdditionalMeta() || {}), translateDevTools(t);
1544
+ }
1545
+ return E;
1546
+ }
1547
+ function escapeParams(e) {
1548
+ isArray(e.list) ? e.list = e.list.map((e) => isString(e) ? escapeHtml(e) : e) : isObject(e.named) && Object.keys(e.named).forEach((t) => {
1549
+ isString(e.named[t]) && (e.named[t] = escapeHtml(e.named[t]));
1550
+ });
1551
+ }
1552
+ function resolveMessageFormat(e, t, n, r, i, a) {
1553
+ let { messages: o, onWarn: s, messageResolver: c, localeFallbacker: l } = e, u = l(e, r, n), d = create(), f, p = null, m = n, g = null, _ = "translate";
1554
+ for (let r = 0; r < u.length; r++) {
1555
+ if (f = g = u[r], process.env.NODE_ENV !== "production" && n !== f && !isAlmostSameLocale(n, f) && isTranslateFallbackWarn(i, t) && s(getWarnMessage$1(CoreWarnCodes.FALLBACK_TO_TRANSLATE, {
1556
+ key: t,
1557
+ target: f
1558
+ })), process.env.NODE_ENV !== "production" && n !== f) {
1559
+ let n = e.__v_emitter;
1560
+ n && n.emit("fallback", {
1561
+ type: _,
1562
+ key: t,
1563
+ from: m,
1564
+ to: g,
1565
+ groupId: `${_}:${t}`
1566
+ });
1567
+ }
1568
+ d = o[f] || create();
1569
+ let l = null, v, y;
1570
+ if (process.env.NODE_ENV !== "production" && inBrowser && (l = window.performance.now(), v = "intlify-message-resolve-start", y = "intlify-message-resolve-end", mark && mark(v)), (p = c(d, t)) === null && (p = d[t]), process.env.NODE_ENV !== "production" && inBrowser) {
1571
+ let n = window.performance.now(), r = e.__v_emitter;
1572
+ r && l && p && r.emit("message-resolve", {
1573
+ type: "message-resolve",
1574
+ key: t,
1575
+ message: p,
1576
+ time: n - l,
1577
+ groupId: `${_}:${t}`
1578
+ }), v && y && mark && measure && (mark(y), measure("intlify message resolve", v, y));
1579
+ }
1580
+ if (isString(p) || isMessageAST(p) || isMessageFunction(p)) break;
1581
+ if (!isImplicitFallback(f, u)) {
1582
+ let n = handleMissing(e, t, f, a, _);
1583
+ n !== t && (p = n);
1584
+ }
1585
+ m = g;
1586
+ }
1587
+ return [
1588
+ p,
1589
+ f,
1590
+ d
1591
+ ];
1592
+ }
1593
+ function compileMessageFormat(e, t, n, r, i, a) {
1594
+ let { messageCompiler: o, warnHtmlMessage: s } = e;
1595
+ if (isMessageFunction(r)) {
1596
+ let e = r;
1597
+ return e.locale = e.locale || n, e.key = e.key || t, e;
1598
+ }
1599
+ if (o == null) {
1600
+ let e = (() => r);
1601
+ return e.locale = n, e.key = t, e;
1602
+ }
1603
+ let c = null, l, u;
1604
+ process.env.NODE_ENV !== "production" && inBrowser && (c = window.performance.now(), l = "intlify-message-compilation-start", u = "intlify-message-compilation-end", mark && mark(l));
1605
+ let d = o(r, getCompileContext(e, n, i, r, s, a));
1606
+ if (process.env.NODE_ENV !== "production" && inBrowser) {
1607
+ let n = window.performance.now(), i = e.__v_emitter;
1608
+ i && c && i.emit("message-compilation", {
1609
+ type: "message-compilation",
1610
+ message: r,
1611
+ time: n - c,
1612
+ groupId: `translate:${t}`
1613
+ }), l && u && mark && measure && (mark(u), measure("intlify message compilation", l, u));
1614
+ }
1615
+ return d.locale = n, d.key = t, d.source = r, d;
1616
+ }
1617
+ function evaluateMessage(e, t, n) {
1618
+ let r = null, i, a;
1619
+ process.env.NODE_ENV !== "production" && inBrowser && (r = window.performance.now(), i = "intlify-message-evaluation-start", a = "intlify-message-evaluation-end", mark && mark(i));
1620
+ let o = t(n);
1621
+ if (process.env.NODE_ENV !== "production" && inBrowser) {
1622
+ let n = window.performance.now(), s = e.__v_emitter;
1623
+ s && r && s.emit("message-evaluation", {
1624
+ type: "message-evaluation",
1625
+ value: o,
1626
+ time: n - r,
1627
+ groupId: `translate:${t.key}`
1628
+ }), i && a && mark && measure && (mark(a), measure("intlify message evaluation", i, a));
1629
+ }
1630
+ return o;
1631
+ }
1632
+ function parseTranslateArgs(...e) {
1633
+ let [t, n, r] = e, i = create();
1634
+ if (!isString(t) && !isNumber(t) && !isMessageFunction(t) && !isMessageAST(t)) throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);
1635
+ let a = isNumber(t) ? String(t) : (isMessageFunction(t), t);
1636
+ return isNumber(n) ? i.plural = n : isString(n) ? i.default = n : isPlainObject(n) && !isEmptyObject(n) ? i.named = n : isArray(n) && (i.list = n), isNumber(r) ? i.plural = r : isString(r) ? i.default = r : isPlainObject(r) && assign(i, r), [a, i];
1637
+ }
1638
+ function getCompileContext(e, t, n, r, i, a) {
1639
+ return {
1640
+ locale: t,
1641
+ key: n,
1642
+ warnHtmlMessage: i,
1643
+ onError: (t) => {
1644
+ if (a && a(t), process.env.NODE_ENV !== "production") {
1645
+ let i = getSourceForCodeFrame(r), a = `Message compilation error: ${t.message}`, o = t.location && i && generateCodeFrame(i, t.location.start.offset, t.location.end.offset), s = e.__v_emitter;
1646
+ s && i && s.emit("compile-error", {
1647
+ message: i,
1648
+ error: t.message,
1649
+ start: t.location && t.location.start.offset,
1650
+ end: t.location && t.location.end.offset,
1651
+ groupId: `translate:${n}`
1652
+ }), console.error(o ? `${a}\n${o}` : a);
1653
+ } else throw t;
1654
+ },
1655
+ onCacheKey: (e) => generateFormatCacheKey(t, n, e)
1656
+ };
1657
+ }
1658
+ function getSourceForCodeFrame(e) {
1659
+ if (isString(e)) return e;
1660
+ if (e.loc && e.loc.source) return e.loc.source;
1661
+ }
1662
+ function getMessageContextOptions(e, t, n, r) {
1663
+ let { modifiers: i, pluralRules: a, messageResolver: o, fallbackLocale: s, fallbackWarn: c, missingWarn: l, fallbackContext: u } = e, d = {
1664
+ locale: t,
1665
+ modifiers: i,
1666
+ pluralRules: a,
1667
+ messages: (r, i) => {
1668
+ let a = o(n, r);
1669
+ if (a == null && (u || i)) {
1670
+ let [, , n] = resolveMessageFormat(u || e, r, t, s, c, l);
1671
+ a = o(n, r);
1672
+ }
1673
+ if (isString(a) || isMessageAST(a)) {
1674
+ let n = !1, i = compileMessageFormat(e, r, t, a, r, () => {
1675
+ n = !0;
1676
+ });
1677
+ return n ? NOOP_MESSAGE_FUNCTION : i;
1678
+ } else if (isMessageFunction(a)) return a;
1679
+ else return NOOP_MESSAGE_FUNCTION;
1680
+ }
1681
+ };
1682
+ return e.processor && (d.processor = e.processor), r.list && (d.list = r.list), r.named && (d.named = r.named), isNumber(r.plural) && (d.pluralIndex = r.plural), d;
1683
+ }
1684
+ initFeatureFlags$1();
1685
+ function getDevtoolsGlobalHook() {
1686
+ return getTarget().__VUE_DEVTOOLS_GLOBAL_HOOK__;
1687
+ }
1688
+ function getTarget() {
1689
+ return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
1690
+ }
1691
+ const isProxyAvailable = typeof Proxy == "function";
1692
+ var supported, perf;
1693
+ function isPerformanceSupported() {
1694
+ return supported === void 0 && (typeof window < "u" && window.performance ? (supported = !0, perf = window.performance) : typeof globalThis < "u" && globalThis.perf_hooks?.performance ? (supported = !0, perf = globalThis.perf_hooks.performance) : supported = !1), supported;
1695
+ }
1696
+ function now() {
1697
+ return isPerformanceSupported() ? perf.now() : Date.now();
1698
+ }
1699
+ var ApiProxy = class {
1700
+ constructor(e, t) {
1701
+ this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = e, this.hook = t;
1702
+ let n = {};
1703
+ if (e.settings) for (let t in e.settings) n[t] = e.settings[t].defaultValue;
1704
+ let r = `__vue-devtools-plugin-settings__${e.id}`, i = Object.assign({}, n);
1705
+ try {
1706
+ let e = localStorage.getItem(r), t = JSON.parse(e);
1707
+ Object.assign(i, t);
1708
+ } catch {}
1709
+ this.fallbacks = {
1710
+ getSettings() {
1711
+ return i;
1712
+ },
1713
+ setSettings(e) {
1714
+ try {
1715
+ localStorage.setItem(r, JSON.stringify(e));
1716
+ } catch {}
1717
+ i = e;
1718
+ },
1719
+ now() {
1720
+ return now();
1721
+ }
1722
+ }, t && t.on("plugin:settings:set", (e, t) => {
1723
+ e === this.plugin.id && this.fallbacks.setSettings(t);
1724
+ }), this.proxiedOn = new Proxy({}, { get: (e, t) => this.target ? this.target.on[t] : (...e) => {
1725
+ this.onQueue.push({
1726
+ method: t,
1727
+ args: e
1728
+ });
1729
+ } }), this.proxiedTarget = new Proxy({}, { get: (e, t) => this.target ? this.target[t] : t === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(t) ? (...e) => (this.targetQueue.push({
1730
+ method: t,
1731
+ args: e,
1732
+ resolve: () => {}
1733
+ }), this.fallbacks[t](...e)) : (...e) => new Promise((n) => {
1734
+ this.targetQueue.push({
1735
+ method: t,
1736
+ args: e,
1737
+ resolve: n
1738
+ });
1739
+ }) });
1740
+ }
1741
+ async setRealTarget(e) {
1742
+ this.target = e;
1743
+ for (let e of this.onQueue) this.target.on[e.method](...e.args);
1744
+ for (let e of this.targetQueue) e.resolve(await this.target[e.method](...e.args));
1745
+ }
1746
+ };
1747
+ function setupDevtoolsPlugin(e, t) {
1748
+ let n = e, r = getTarget(), i = getDevtoolsGlobalHook(), a = isProxyAvailable && n.enableEarlyProxy;
1749
+ if (i && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a)) i.emit("devtools-plugin:setup", e, t);
1750
+ else {
1751
+ let e = a ? new ApiProxy(n, i) : null;
1752
+ (r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
1753
+ pluginDescriptor: n,
1754
+ setupFn: t,
1755
+ proxy: e
1756
+ }), e && t(e.proxiedTarget);
1757
+ }
1758
+ }
1759
+ var VERSION = "11.2.8";
1760
+ function initFeatureFlags() {
1761
+ typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (getGlobalThis().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (getGlobalThis().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (getGlobalThis().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (getGlobalThis().__INTLIFY_PROD_DEVTOOLS__ = !1);
1762
+ }
1763
+ var I18nErrorCodes = {
1764
+ UNEXPECTED_RETURN_TYPE: 24,
1765
+ INVALID_ARGUMENT: 25,
1766
+ MUST_BE_CALL_SETUP_TOP: 26,
1767
+ NOT_INSTALLED: 27,
1768
+ REQUIRED_VALUE: 28,
1769
+ INVALID_VALUE: 29,
1770
+ CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN: 30,
1771
+ NOT_INSTALLED_WITH_PROVIDE: 31,
1772
+ UNEXPECTED_ERROR: 32,
1773
+ NOT_COMPATIBLE_LEGACY_VUE_I18N: 33,
1774
+ NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
1775
+ };
1776
+ function createI18nError(e, ...t) {
1777
+ return createCompileError(e, null, process.env.NODE_ENV === "production" ? void 0 : {
1778
+ messages: errorMessages,
1779
+ args: t
1780
+ });
1781
+ }
1782
+ var errorMessages = {
1783
+ [I18nErrorCodes.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
1784
+ [I18nErrorCodes.INVALID_ARGUMENT]: "Invalid argument",
1785
+ [I18nErrorCodes.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
1786
+ [I18nErrorCodes.NOT_INSTALLED]: "Need to install with `app.use` function",
1787
+ [I18nErrorCodes.UNEXPECTED_ERROR]: "Unexpected error",
1788
+ [I18nErrorCodes.REQUIRED_VALUE]: "Required in value: {0}",
1789
+ [I18nErrorCodes.INVALID_VALUE]: "Invalid value",
1790
+ [I18nErrorCodes.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]: "Cannot setup vue-devtools plugin",
1791
+ [I18nErrorCodes.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
1792
+ [I18nErrorCodes.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
1793
+ [I18nErrorCodes.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
1794
+ }, TranslateVNodeSymbol = /* @__PURE__ */ makeSymbol("__translateVNode"), DatetimePartsSymbol = /* @__PURE__ */ makeSymbol("__datetimeParts"), NumberPartsSymbol = /* @__PURE__ */ makeSymbol("__numberParts"), EnableEmitter = /* @__PURE__ */ makeSymbol("__enableEmitter"), DisableEmitter = /* @__PURE__ */ makeSymbol("__disableEmitter"), SetPluralRulesSymbol = makeSymbol("__setPluralRules");
1795
+ makeSymbol("__intlifyMeta");
1796
+ var InejctWithOptionSymbol = /* @__PURE__ */ makeSymbol("__injectWithOption"), DisposeSymbol = /* @__PURE__ */ makeSymbol("__dispose"), I18nWarnCodes = {
1797
+ FALLBACK_TO_ROOT: 8,
1798
+ NOT_FOUND_PARENT_SCOPE: 9,
1799
+ IGNORE_OBJ_FLATTEN: 10,
1800
+ DEPRECATE_LEGACY_MODE: 11,
1801
+ DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE: 12,
1802
+ DUPLICATE_USE_I18N_CALLING: 13
1803
+ }, warnMessages = {
1804
+ [I18nWarnCodes.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
1805
+ [I18nWarnCodes.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
1806
+ [I18nWarnCodes.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
1807
+ [I18nWarnCodes.DEPRECATE_LEGACY_MODE]: "Legacy API mode has been deprecated in v11. Use Composition API mode instead.\nAbout how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html",
1808
+ [I18nWarnCodes.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]: "'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",
1809
+ [I18nWarnCodes.DUPLICATE_USE_I18N_CALLING]: "Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."
1810
+ };
1811
+ function getWarnMessage(e, ...t) {
1812
+ return format(warnMessages[e], ...t);
1813
+ }
1814
+ function handleFlatJson(e) {
1815
+ if (!isObject(e) || isMessageAST(e)) return e;
1816
+ for (let t in e) if (hasOwn(e, t)) if (!t.includes(".")) isObject(e[t]) && handleFlatJson(e[t]);
1817
+ else {
1818
+ let n = t.split("."), r = n.length - 1, i = e, a = !1;
1819
+ for (let e = 0; e < r; e++) {
1820
+ if (n[e] === "__proto__") throw Error(`unsafe key: ${n[e]}`);
1821
+ if (n[e] in i || (i[n[e]] = create()), !isObject(i[n[e]])) {
1822
+ process.env.NODE_ENV !== "production" && warn(getWarnMessage(I18nWarnCodes.IGNORE_OBJ_FLATTEN, { key: n[e] })), a = !0;
1823
+ break;
1824
+ }
1825
+ i = i[n[e]];
1826
+ }
1827
+ if (a || (isMessageAST(i) ? AST_NODE_PROPS_KEYS.includes(n[r]) || delete e[t] : (i[n[r]] = e[t], delete e[t])), !isMessageAST(i)) {
1828
+ let e = i[n[r]];
1829
+ isObject(e) && handleFlatJson(e);
1830
+ }
1831
+ }
1832
+ return e;
1833
+ }
1834
+ function getLocaleMessages(e, t) {
1835
+ let { messages: n, __i18n: r, messageResolver: i, flatJson: a } = t, o = isPlainObject(n) ? n : isArray(r) ? create() : { [e]: create() };
1836
+ if (isArray(r) && r.forEach((e) => {
1837
+ if ("locale" in e && "resource" in e) {
1838
+ let { locale: t, resource: n } = e;
1839
+ t ? (o[t] = o[t] || create(), deepCopy(n, o[t])) : deepCopy(n, o);
1840
+ } else isString(e) && deepCopy(JSON.parse(e), o);
1841
+ }), i == null && a) for (let e in o) hasOwn(o, e) && handleFlatJson(o[e]);
1842
+ return o;
1843
+ }
1844
+ function getComponentOptions(e) {
1845
+ return e.type;
1846
+ }
1847
+ function adjustI18nResources(e, t, n) {
1848
+ let r = isObject(t.messages) ? t.messages : create();
1849
+ "__i18nGlobal" in n && (r = getLocaleMessages(e.locale.value, {
1850
+ messages: r,
1851
+ __i18n: n.__i18nGlobal
1852
+ }));
1853
+ let i = Object.keys(r);
1854
+ if (i.length && i.forEach((t) => {
1855
+ e.mergeLocaleMessage(t, r[t]);
1856
+ }), isObject(t.datetimeFormats)) {
1857
+ let n = Object.keys(t.datetimeFormats);
1858
+ n.length && n.forEach((n) => {
1859
+ e.mergeDateTimeFormat(n, t.datetimeFormats[n]);
1860
+ });
1861
+ }
1862
+ if (isObject(t.numberFormats)) {
1863
+ let n = Object.keys(t.numberFormats);
1864
+ n.length && n.forEach((n) => {
1865
+ e.mergeNumberFormat(n, t.numberFormats[n]);
1866
+ });
1867
+ }
1868
+ }
1869
+ function createTextNode(e) {
1870
+ return createVNode(Text, null, e, 0);
1871
+ }
1872
+ function getCurrentInstance() {
1873
+ let t = "currentInstance";
1874
+ return t in Vue ? Vue[t] : Vue.getCurrentInstance();
1875
+ }
1876
+ var NOOP_RETURN_ARRAY = () => [], NOOP_RETURN_FALSE = () => !1, composerID = 0;
1877
+ function defineCoreMissingHandler(e) {
1878
+ return ((t, n, r, i) => e(n, r, getCurrentInstance() || void 0, i));
1879
+ }
1880
+ function createComposer(e = {}) {
1881
+ let { __root: t, __injectWithOption: n } = e, i = t === void 0, a = e.flatJson, o = inBrowser ? ref : shallowRef, s = isBoolean(e.inheritLocale) ? e.inheritLocale : !0, c = o(t && s ? t.locale.value : isString(e.locale) ? e.locale : DEFAULT_LOCALE), l = o(t && s ? t.fallbackLocale.value : isString(e.fallbackLocale) || isArray(e.fallbackLocale) || isPlainObject(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : c.value), u = o(getLocaleMessages(c.value, e)), d = o(isPlainObject(e.datetimeFormats) ? e.datetimeFormats : { [c.value]: {} }), f = o(isPlainObject(e.numberFormats) ? e.numberFormats : { [c.value]: {} }), p = t ? t.missingWarn : isBoolean(e.missingWarn) || isRegExp(e.missingWarn) ? e.missingWarn : !0, m = t ? t.fallbackWarn : isBoolean(e.fallbackWarn) || isRegExp(e.fallbackWarn) ? e.fallbackWarn : !0, g = t ? t.fallbackRoot : isBoolean(e.fallbackRoot) ? e.fallbackRoot : !0, _ = !!e.fallbackFormat, v = isFunction(e.missing) ? e.missing : null, y = isFunction(e.missing) ? defineCoreMissingHandler(e.missing) : null, x = isFunction(e.postTranslation) ? e.postTranslation : null, S = t ? t.warnHtmlMessage : isBoolean(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, C = !!e.escapeParameter, w = t ? t.modifiers : isPlainObject(e.modifiers) ? e.modifiers : {}, E = e.pluralRules || t && t.pluralRules, D;
1882
+ D = (() => {
1883
+ i && setFallbackContext(null);
1884
+ let t = {
1885
+ version: VERSION,
1886
+ locale: c.value,
1887
+ fallbackLocale: l.value,
1888
+ messages: u.value,
1889
+ modifiers: w,
1890
+ pluralRules: E,
1891
+ missing: y === null ? void 0 : y,
1892
+ missingWarn: p,
1893
+ fallbackWarn: m,
1894
+ fallbackFormat: _,
1895
+ unresolving: !0,
1896
+ postTranslation: x === null ? void 0 : x,
1897
+ warnHtmlMessage: S,
1898
+ escapeParameter: C,
1899
+ messageResolver: e.messageResolver,
1900
+ messageCompiler: e.messageCompiler,
1901
+ __meta: { framework: "vue" }
1902
+ };
1903
+ t.datetimeFormats = d.value, t.numberFormats = f.value, t.__datetimeFormatters = isPlainObject(D) ? D.__datetimeFormatters : void 0, t.__numberFormatters = isPlainObject(D) ? D.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (t.__v_emitter = isPlainObject(D) ? D.__v_emitter : void 0);
1904
+ let n = createCoreContext(t);
1905
+ return i && setFallbackContext(n), n;
1906
+ })(), updateFallbackLocale(D, c.value, l.value);
1907
+ function O() {
1908
+ return [
1909
+ c.value,
1910
+ l.value,
1911
+ u.value,
1912
+ d.value,
1913
+ f.value
1914
+ ];
1915
+ }
1916
+ let A = computed({
1917
+ get: () => c.value,
1918
+ set: (e) => {
1919
+ D.locale = e, c.value = e;
1920
+ }
1921
+ }), j = computed({
1922
+ get: () => l.value,
1923
+ set: (e) => {
1924
+ D.fallbackLocale = e, l.value = e, updateFallbackLocale(D, c.value, e);
1925
+ }
1926
+ }), M = computed(() => u.value), N = /* @__PURE__ */ computed(() => d.value), P = /* @__PURE__ */ computed(() => f.value);
1927
+ function F() {
1928
+ return isFunction(x) ? x : null;
1929
+ }
1930
+ function I(e) {
1931
+ x = e, D.postTranslation = e;
1932
+ }
1933
+ function L() {
1934
+ return v;
1935
+ }
1936
+ function R(e) {
1937
+ e !== null && (y = defineCoreMissingHandler(e)), v = e, D.missing = y;
1938
+ }
1939
+ function z(e, t) {
1940
+ return e !== "translate" || !t.resolvedMessage;
1941
+ }
1942
+ let B = (e, n, r, a, o, s) => {
1943
+ O();
1944
+ let c;
1945
+ try {
1946
+ process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, i || (D.fallbackContext = t ? getFallbackContext() : void 0), c = e(D);
1947
+ } finally {
1948
+ process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, i || (D.fallbackContext = void 0);
1949
+ }
1950
+ if (r !== "translate exists" && isNumber(c) && c === -1 || r === "translate exists" && !c) {
1951
+ let [e, i] = n();
1952
+ if (process.env.NODE_ENV !== "production" && t && isString(e) && z(r, i) && (g && (isTranslateFallbackWarn(m, e) || isTranslateMissingWarn(p, e)) && warn(getWarnMessage(I18nWarnCodes.FALLBACK_TO_ROOT, {
1953
+ key: e,
1954
+ type: r
1955
+ })), process.env.NODE_ENV !== "production")) {
1956
+ let { __v_emitter: t } = D;
1957
+ t && g && t.emit("fallback", {
1958
+ type: r,
1959
+ key: e,
1960
+ to: "global",
1961
+ groupId: `${r}:${e}`
1962
+ });
1963
+ }
1964
+ return t && g ? a(t) : o(e);
1965
+ } else if (s(c)) return c;
1966
+ else
1967
+ /* istanbul ignore next */
1968
+ throw createI18nError(I18nErrorCodes.UNEXPECTED_RETURN_TYPE);
1969
+ };
1970
+ function V(...e) {
1971
+ return B((t) => Reflect.apply(translate, null, [t, ...e]), () => parseTranslateArgs(...e), "translate", (t) => Reflect.apply(t.t, t, [...e]), (e) => e, (e) => isString(e));
1972
+ }
1973
+ function U(...e) {
1974
+ let [t, n, r] = e;
1975
+ if (r && !isObject(r)) throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);
1976
+ return V(t, n, assign({ resolvedMessage: !0 }, r || {}));
1977
+ }
1978
+ function G(...e) {
1979
+ return B((t) => Reflect.apply(datetime, null, [t, ...e]), () => parseDateTimeArgs(...e), "datetime format", (t) => Reflect.apply(t.d, t, [...e]), () => "", (e) => isString(e) || isArray(e));
1980
+ }
1981
+ function K(...e) {
1982
+ return B((t) => Reflect.apply(number, null, [t, ...e]), () => parseNumberArgs(...e), "number format", (t) => Reflect.apply(t.n, t, [...e]), () => "", (e) => isString(e) || isArray(e));
1983
+ }
1984
+ function q(e) {
1985
+ return e.map((e) => isString(e) || isNumber(e) || isBoolean(e) ? createTextNode(String(e)) : e);
1986
+ }
1987
+ let J = {
1988
+ normalize: q,
1989
+ interpolate: (e) => e,
1990
+ type: "vnode"
1991
+ };
1992
+ function Y(...e) {
1993
+ return B((t) => {
1994
+ let n, r = t;
1995
+ try {
1996
+ r.processor = J, n = Reflect.apply(translate, null, [r, ...e]);
1997
+ } finally {
1998
+ r.processor = null;
1999
+ }
2000
+ return n;
2001
+ }, () => parseTranslateArgs(...e), "translate", (t) => t[TranslateVNodeSymbol](...e), (e) => [createTextNode(e)], (e) => isArray(e));
2002
+ }
2003
+ function X(...e) {
2004
+ return B((t) => Reflect.apply(number, null, [t, ...e]), () => parseNumberArgs(...e), "number format", (t) => t[NumberPartsSymbol](...e), NOOP_RETURN_ARRAY, (e) => isString(e) || isArray(e));
2005
+ }
2006
+ function Z(...e) {
2007
+ return B((t) => Reflect.apply(datetime, null, [t, ...e]), () => parseDateTimeArgs(...e), "datetime format", (t) => t[DatetimePartsSymbol](...e), NOOP_RETURN_ARRAY, (e) => isString(e) || isArray(e));
2008
+ }
2009
+ function Bi(e) {
2010
+ E = e, D.pluralRules = E;
2011
+ }
2012
+ function Vi(e, t) {
2013
+ return B(() => {
2014
+ if (!e) return !1;
2015
+ let n = Q(isString(t) ? t : c.value), r = D.messageResolver(n, e);
2016
+ return isMessageAST(r) || isMessageFunction(r) || isString(r);
2017
+ }, () => [e], "translate exists", (n) => Reflect.apply(n.te, n, [e, t]), NOOP_RETURN_FALSE, (e) => isBoolean(e));
2018
+ }
2019
+ function Hi(e) {
2020
+ let t = null, n = fallbackWithLocaleChain(D, l.value, c.value);
2021
+ for (let r = 0; r < n.length; r++) {
2022
+ let i = u.value[n[r]] || {}, a = D.messageResolver(i, e);
2023
+ if (a != null) {
2024
+ t = a;
2025
+ break;
2026
+ }
2027
+ }
2028
+ return t;
2029
+ }
2030
+ function Ui(e) {
2031
+ return Hi(e) ?? (t && t.tm(e) || {});
2032
+ }
2033
+ function Q(e) {
2034
+ return u.value[e] || {};
2035
+ }
2036
+ function Wi(e, t) {
2037
+ if (a) {
2038
+ let n = { [e]: t };
2039
+ for (let e in n) hasOwn(n, e) && handleFlatJson(n[e]);
2040
+ t = n[e];
2041
+ }
2042
+ u.value[e] = t, D.messages = u.value;
2043
+ }
2044
+ function Gi(e, t) {
2045
+ u.value[e] = u.value[e] || {};
2046
+ let n = { [e]: t };
2047
+ if (a) for (let e in n) hasOwn(n, e) && handleFlatJson(n[e]);
2048
+ t = n[e], deepCopy(t, u.value[e]), D.messages = u.value;
2049
+ }
2050
+ function Ki(e) {
2051
+ return d.value[e] || {};
2052
+ }
2053
+ function qi(e, t) {
2054
+ d.value[e] = t, D.datetimeFormats = d.value, clearDateTimeFormat(D, e, t);
2055
+ }
2056
+ function Ji(e, t) {
2057
+ d.value[e] = assign(d.value[e] || {}, t), D.datetimeFormats = d.value, clearDateTimeFormat(D, e, t);
2058
+ }
2059
+ function Yi(e) {
2060
+ return f.value[e] || {};
2061
+ }
2062
+ function Xi(e, t) {
2063
+ f.value[e] = t, D.numberFormats = f.value, clearNumberFormat(D, e, t);
2064
+ }
2065
+ function Zi(e, t) {
2066
+ f.value[e] = assign(f.value[e] || {}, t), D.numberFormats = f.value, clearNumberFormat(D, e, t);
2067
+ }
2068
+ composerID++, t && inBrowser && (watch(t.locale, (e) => {
2069
+ s && (c.value = e, D.locale = e, updateFallbackLocale(D, c.value, l.value));
2070
+ }), watch(t.fallbackLocale, (e) => {
2071
+ s && (l.value = e, D.fallbackLocale = e, updateFallbackLocale(D, c.value, l.value));
2072
+ }));
2073
+ let $ = {
2074
+ id: composerID,
2075
+ locale: A,
2076
+ fallbackLocale: j,
2077
+ get inheritLocale() {
2078
+ return s;
2079
+ },
2080
+ set inheritLocale(e) {
2081
+ s = e, e && t && (c.value = t.locale.value, l.value = t.fallbackLocale.value, updateFallbackLocale(D, c.value, l.value));
2082
+ },
2083
+ get availableLocales() {
2084
+ return Object.keys(u.value).sort();
2085
+ },
2086
+ messages: M,
2087
+ get modifiers() {
2088
+ return w;
2089
+ },
2090
+ get pluralRules() {
2091
+ return E || {};
2092
+ },
2093
+ get isGlobal() {
2094
+ return i;
2095
+ },
2096
+ get missingWarn() {
2097
+ return p;
2098
+ },
2099
+ set missingWarn(e) {
2100
+ p = e, D.missingWarn = p;
2101
+ },
2102
+ get fallbackWarn() {
2103
+ return m;
2104
+ },
2105
+ set fallbackWarn(e) {
2106
+ m = e, D.fallbackWarn = m;
2107
+ },
2108
+ get fallbackRoot() {
2109
+ return g;
2110
+ },
2111
+ set fallbackRoot(e) {
2112
+ g = e;
2113
+ },
2114
+ get fallbackFormat() {
2115
+ return _;
2116
+ },
2117
+ set fallbackFormat(e) {
2118
+ _ = e, D.fallbackFormat = _;
2119
+ },
2120
+ get warnHtmlMessage() {
2121
+ return S;
2122
+ },
2123
+ set warnHtmlMessage(e) {
2124
+ S = e, D.warnHtmlMessage = e;
2125
+ },
2126
+ get escapeParameter() {
2127
+ return C;
2128
+ },
2129
+ set escapeParameter(e) {
2130
+ C = e, D.escapeParameter = e;
2131
+ },
2132
+ t: V,
2133
+ getLocaleMessage: Q,
2134
+ setLocaleMessage: Wi,
2135
+ mergeLocaleMessage: Gi,
2136
+ getPostTranslationHandler: F,
2137
+ setPostTranslationHandler: I,
2138
+ getMissingHandler: L,
2139
+ setMissingHandler: R,
2140
+ [SetPluralRulesSymbol]: Bi
2141
+ };
2142
+ return $.datetimeFormats = N, $.numberFormats = P, $.rt = U, $.te = Vi, $.tm = Ui, $.d = G, $.n = K, $.getDateTimeFormat = Ki, $.setDateTimeFormat = qi, $.mergeDateTimeFormat = Ji, $.getNumberFormat = Yi, $.setNumberFormat = Xi, $.mergeNumberFormat = Zi, $[InejctWithOptionSymbol] = n, $[TranslateVNodeSymbol] = Y, $[DatetimePartsSymbol] = Z, $[NumberPartsSymbol] = X, process.env.NODE_ENV !== "production" && ($[EnableEmitter] = (e) => {
2143
+ D.__v_emitter = e;
2144
+ }, $[DisableEmitter] = () => {
2145
+ D.__v_emitter = void 0;
2146
+ }), $;
2147
+ }
2148
+ var VUE_I18N_COMPONENT_TYPES = "vue-i18n: composer properties", VueDevToolsLabels = {
2149
+ "vue-devtools-plugin-vue-i18n": "Vue I18n DevTools",
2150
+ "vue-i18n-resource-inspector": "Vue I18n DevTools",
2151
+ "vue-i18n-timeline": "Vue I18n"
2152
+ }, VueDevToolsPlaceholders = { "vue-i18n-resource-inspector": "Search for scopes ..." }, VueDevToolsTimelineColors = { "vue-i18n-timeline": 16764185 }, devtoolsApi;
2153
+ async function enableDevTools(e, t) {
2154
+ return new Promise((n, r) => {
2155
+ try {
2156
+ setupDevtoolsPlugin({
2157
+ id: "vue-devtools-plugin-vue-i18n",
2158
+ label: VueDevToolsLabels["vue-devtools-plugin-vue-i18n"],
2159
+ packageName: "vue-i18n",
2160
+ homepage: "https://vue-i18n.intlify.dev",
2161
+ logo: "https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",
2162
+ componentStateTypes: [VUE_I18N_COMPONENT_TYPES],
2163
+ app: e
2164
+ }, (r) => {
2165
+ devtoolsApi = r, r.on.visitComponentTree(({ componentInstance: e, treeNode: n }) => {
2166
+ updateComponentTreeTags(e, n, t);
2167
+ }), r.on.inspectComponent(({ componentInstance: e, instanceData: n }) => {
2168
+ e.__VUE_I18N__ && n && (t.mode === "legacy" ? e.__VUE_I18N__ !== t.global.__composer && inspectComposer(n, e.__VUE_I18N__) : inspectComposer(n, e.__VUE_I18N__));
2169
+ }), r.addInspector({
2170
+ id: "vue-i18n-resource-inspector",
2171
+ label: VueDevToolsLabels["vue-i18n-resource-inspector"],
2172
+ icon: "language",
2173
+ treeFilterPlaceholder: VueDevToolsPlaceholders["vue-i18n-resource-inspector"]
2174
+ }), r.on.getInspectorTree((n) => {
2175
+ n.app === e && n.inspectorId === "vue-i18n-resource-inspector" && registerScope(n, t);
2176
+ });
2177
+ let i = /* @__PURE__ */ new Map();
2178
+ r.on.getInspectorState(async (n) => {
2179
+ if (n.app === e && n.inspectorId === "vue-i18n-resource-inspector") if (r.unhighlightElement(), inspectScope(n, t), n.nodeId === "global") {
2180
+ if (!i.has(n.app)) {
2181
+ let [e] = await r.getComponentInstances(n.app);
2182
+ i.set(n.app, e);
2183
+ }
2184
+ r.highlightElement(i.get(n.app));
2185
+ } else {
2186
+ let e = getComponentInstance(n.nodeId, t);
2187
+ e && r.highlightElement(e);
2188
+ }
2189
+ }), r.on.editInspectorState((n) => {
2190
+ n.app === e && n.inspectorId === "vue-i18n-resource-inspector" && editScope(n, t);
2191
+ }), r.addTimelineLayer({
2192
+ id: "vue-i18n-timeline",
2193
+ label: VueDevToolsLabels["vue-i18n-timeline"],
2194
+ color: VueDevToolsTimelineColors["vue-i18n-timeline"]
2195
+ }), n(!0);
2196
+ });
2197
+ } catch (e) {
2198
+ console.error(e), r(!1);
2199
+ }
2200
+ });
2201
+ }
2202
+ function getI18nScopeLable(e) {
2203
+ return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
2204
+ }
2205
+ function updateComponentTreeTags(e, t, n) {
2206
+ let r = n.mode === "composition" ? n.global : n.global.__composer;
2207
+ if (e && e.__VUE_I18N__ && e.__VUE_I18N__ !== r) {
2208
+ let n = {
2209
+ label: `i18n (${getI18nScopeLable(e)} Scope)`,
2210
+ textColor: 0,
2211
+ backgroundColor: 16764185
2212
+ };
2213
+ t.tags.push(n);
2214
+ }
2215
+ }
2216
+ function inspectComposer(e, t) {
2217
+ let n = VUE_I18N_COMPONENT_TYPES;
2218
+ e.state.push({
2219
+ type: n,
2220
+ key: "locale",
2221
+ editable: !0,
2222
+ value: t.locale.value
2223
+ }), e.state.push({
2224
+ type: n,
2225
+ key: "availableLocales",
2226
+ editable: !1,
2227
+ value: t.availableLocales
2228
+ }), e.state.push({
2229
+ type: n,
2230
+ key: "fallbackLocale",
2231
+ editable: !0,
2232
+ value: t.fallbackLocale.value
2233
+ }), e.state.push({
2234
+ type: n,
2235
+ key: "inheritLocale",
2236
+ editable: !0,
2237
+ value: t.inheritLocale
2238
+ }), e.state.push({
2239
+ type: n,
2240
+ key: "messages",
2241
+ editable: !1,
2242
+ value: getLocaleMessageValue(t.messages.value)
2243
+ }), e.state.push({
2244
+ type: n,
2245
+ key: "datetimeFormats",
2246
+ editable: !1,
2247
+ value: t.datetimeFormats.value
2248
+ }), e.state.push({
2249
+ type: n,
2250
+ key: "numberFormats",
2251
+ editable: !1,
2252
+ value: t.numberFormats.value
2253
+ });
2254
+ }
2255
+ function getLocaleMessageValue(e) {
2256
+ let t = {};
2257
+ return Object.keys(e).forEach((n) => {
2258
+ let r = e[n];
2259
+ isFunction(r) && "source" in r ? t[n] = getMessageFunctionDetails(r) : isMessageAST(r) && r.loc && r.loc.source ? t[n] = r.loc.source : isObject(r) ? t[n] = getLocaleMessageValue(r) : t[n] = r;
2260
+ }), t;
2261
+ }
2262
+ var ESC = {
2263
+ "<": "&lt;",
2264
+ ">": "&gt;",
2265
+ "\"": "&quot;",
2266
+ "&": "&amp;"
2267
+ };
2268
+ function escape(e) {
2269
+ return e.replace(/[<>"&]/g, escapeChar);
2270
+ }
2271
+ function escapeChar(e) {
2272
+ return ESC[e] || e;
2273
+ }
2274
+ function getMessageFunctionDetails(e) {
2275
+ return { _custom: {
2276
+ type: "function",
2277
+ display: `<span>ƒ</span> ${e.source ? `("${escape(e.source)}")` : "(?)"}`
2278
+ } };
2279
+ }
2280
+ function registerScope(e, t) {
2281
+ e.rootNodes.push({
2282
+ id: "global",
2283
+ label: "Global Scope"
2284
+ });
2285
+ let n = t.mode === "composition" ? t.global : t.global.__composer;
2286
+ for (let [r, i] of t.__instances) {
2287
+ let a = t.mode === "composition" ? i : i.__composer;
2288
+ n !== a && e.rootNodes.push({
2289
+ id: a.id.toString(),
2290
+ label: `${getI18nScopeLable(r)} Scope`
2291
+ });
2292
+ }
2293
+ }
2294
+ function getComponentInstance(e, t) {
2295
+ let n = null;
2296
+ if (e !== "global") {
2297
+ for (let [r, i] of t.__instances.entries()) if (i.id.toString() === e) {
2298
+ n = r;
2299
+ break;
2300
+ }
2301
+ }
2302
+ return n;
2303
+ }
2304
+ function getComposer$2(e, t) {
2305
+ if (e === "global") return t.mode === "composition" ? t.global : t.global.__composer;
2306
+ {
2307
+ let n = Array.from(t.__instances.values()).find((t) => t.id.toString() === e);
2308
+ return n ? t.mode === "composition" ? n : n.__composer : null;
2309
+ }
2310
+ }
2311
+ function inspectScope(e, t) {
2312
+ let n = getComposer$2(e.nodeId, t);
2313
+ return n && (e.state = makeScopeInspectState(n)), null;
2314
+ }
2315
+ function makeScopeInspectState(e) {
2316
+ let t = {}, n = "Locale related info";
2317
+ t[n] = [
2318
+ {
2319
+ type: n,
2320
+ key: "locale",
2321
+ editable: !0,
2322
+ value: e.locale.value
2323
+ },
2324
+ {
2325
+ type: n,
2326
+ key: "fallbackLocale",
2327
+ editable: !0,
2328
+ value: e.fallbackLocale.value
2329
+ },
2330
+ {
2331
+ type: n,
2332
+ key: "availableLocales",
2333
+ editable: !1,
2334
+ value: e.availableLocales
2335
+ },
2336
+ {
2337
+ type: n,
2338
+ key: "inheritLocale",
2339
+ editable: !0,
2340
+ value: e.inheritLocale
2341
+ }
2342
+ ];
2343
+ let r = "Locale messages info";
2344
+ t[r] = [{
2345
+ type: r,
2346
+ key: "messages",
2347
+ editable: !1,
2348
+ value: getLocaleMessageValue(e.messages.value)
2349
+ }];
2350
+ {
2351
+ let n = "Datetime formats info";
2352
+ t[n] = [{
2353
+ type: n,
2354
+ key: "datetimeFormats",
2355
+ editable: !1,
2356
+ value: e.datetimeFormats.value
2357
+ }];
2358
+ let r = "Datetime formats info";
2359
+ t[r] = [{
2360
+ type: r,
2361
+ key: "numberFormats",
2362
+ editable: !1,
2363
+ value: e.numberFormats.value
2364
+ }];
2365
+ }
2366
+ return t;
2367
+ }
2368
+ function addTimelineEvent(e, t) {
2369
+ if (devtoolsApi) {
2370
+ let n;
2371
+ t && "groupId" in t && (n = t.groupId, delete t.groupId), devtoolsApi.addTimelineEvent({
2372
+ layerId: "vue-i18n-timeline",
2373
+ event: {
2374
+ title: e,
2375
+ groupId: n,
2376
+ time: Date.now(),
2377
+ meta: {},
2378
+ data: t || {},
2379
+ logType: e === "compile-error" ? "error" : e === "fallback" || e === "missing" ? "warning" : "default"
2380
+ }
2381
+ });
2382
+ }
2383
+ }
2384
+ function editScope(e, t) {
2385
+ let n = getComposer$2(e.nodeId, t);
2386
+ if (n) {
2387
+ let [t] = e.path;
2388
+ t === "locale" && isString(e.state.value) ? n.locale.value = e.state.value : t === "fallbackLocale" && (isString(e.state.value) || isArray(e.state.value) || isObject(e.state.value)) ? n.fallbackLocale.value = e.state.value : t === "inheritLocale" && isBoolean(e.state.value) && (n.inheritLocale = e.state.value);
2389
+ }
2390
+ }
2391
+ function convertComposerOptions(e) {
2392
+ let t = isString(e.locale) ? e.locale : DEFAULT_LOCALE, n = isString(e.fallbackLocale) || isArray(e.fallbackLocale) || isPlainObject(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, r = isFunction(e.missing) ? e.missing : void 0, i = isBoolean(e.silentTranslationWarn) || isRegExp(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, a = isBoolean(e.silentFallbackWarn) || isRegExp(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, o = isBoolean(e.fallbackRoot) ? e.fallbackRoot : !0, s = !!e.formatFallbackMessages, c = isPlainObject(e.modifiers) ? e.modifiers : {}, l = e.pluralizationRules, u = isFunction(e.postTranslation) ? e.postTranslation : void 0, d = isString(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, f = !!e.escapeParameterHtml, p = isBoolean(e.sync) ? e.sync : !0, m = e.messages;
2393
+ if (isPlainObject(e.sharedMessages)) {
2394
+ let t = e.sharedMessages;
2395
+ m = Object.keys(t).reduce((e, n) => (assign(e[n] || (e[n] = {}), t[n]), e), m || {});
2396
+ }
2397
+ let { __i18n: g, __root: _, __injectWithOption: v } = e, y = e.datetimeFormats, b = e.numberFormats, x = e.flatJson;
2398
+ return {
2399
+ locale: t,
2400
+ fallbackLocale: n,
2401
+ messages: m,
2402
+ flatJson: x,
2403
+ datetimeFormats: y,
2404
+ numberFormats: b,
2405
+ missing: r,
2406
+ missingWarn: i,
2407
+ fallbackWarn: a,
2408
+ fallbackRoot: o,
2409
+ fallbackFormat: s,
2410
+ modifiers: c,
2411
+ pluralRules: l,
2412
+ postTranslation: u,
2413
+ warnHtmlMessage: d,
2414
+ escapeParameter: f,
2415
+ messageResolver: e.messageResolver,
2416
+ inheritLocale: p,
2417
+ __i18n: g,
2418
+ __root: _,
2419
+ __injectWithOption: v
2420
+ };
2421
+ }
2422
+ function createVueI18n(e = {}) {
2423
+ let t = createComposer(convertComposerOptions(e)), { __extender: n } = e, r = {
2424
+ id: t.id,
2425
+ get locale() {
2426
+ return t.locale.value;
2427
+ },
2428
+ set locale(e) {
2429
+ t.locale.value = e;
2430
+ },
2431
+ get fallbackLocale() {
2432
+ return t.fallbackLocale.value;
2433
+ },
2434
+ set fallbackLocale(e) {
2435
+ t.fallbackLocale.value = e;
2436
+ },
2437
+ get messages() {
2438
+ return t.messages.value;
2439
+ },
2440
+ get datetimeFormats() {
2441
+ return t.datetimeFormats.value;
2442
+ },
2443
+ get numberFormats() {
2444
+ return t.numberFormats.value;
2445
+ },
2446
+ get availableLocales() {
2447
+ return t.availableLocales;
2448
+ },
2449
+ get missing() {
2450
+ return t.getMissingHandler();
2451
+ },
2452
+ set missing(e) {
2453
+ t.setMissingHandler(e);
2454
+ },
2455
+ get silentTranslationWarn() {
2456
+ return isBoolean(t.missingWarn) ? !t.missingWarn : t.missingWarn;
2457
+ },
2458
+ set silentTranslationWarn(e) {
2459
+ t.missingWarn = isBoolean(e) ? !e : e;
2460
+ },
2461
+ get silentFallbackWarn() {
2462
+ return isBoolean(t.fallbackWarn) ? !t.fallbackWarn : t.fallbackWarn;
2463
+ },
2464
+ set silentFallbackWarn(e) {
2465
+ t.fallbackWarn = isBoolean(e) ? !e : e;
2466
+ },
2467
+ get modifiers() {
2468
+ return t.modifiers;
2469
+ },
2470
+ get formatFallbackMessages() {
2471
+ return t.fallbackFormat;
2472
+ },
2473
+ set formatFallbackMessages(e) {
2474
+ t.fallbackFormat = e;
2475
+ },
2476
+ get postTranslation() {
2477
+ return t.getPostTranslationHandler();
2478
+ },
2479
+ set postTranslation(e) {
2480
+ t.setPostTranslationHandler(e);
2481
+ },
2482
+ get sync() {
2483
+ return t.inheritLocale;
2484
+ },
2485
+ set sync(e) {
2486
+ t.inheritLocale = e;
2487
+ },
2488
+ get warnHtmlInMessage() {
2489
+ return t.warnHtmlMessage ? "warn" : "off";
2490
+ },
2491
+ set warnHtmlInMessage(e) {
2492
+ t.warnHtmlMessage = e !== "off";
2493
+ },
2494
+ get escapeParameterHtml() {
2495
+ return t.escapeParameter;
2496
+ },
2497
+ set escapeParameterHtml(e) {
2498
+ t.escapeParameter = e;
2499
+ },
2500
+ get pluralizationRules() {
2501
+ return t.pluralRules || {};
2502
+ },
2503
+ __composer: t,
2504
+ t(...e) {
2505
+ return Reflect.apply(t.t, t, [...e]);
2506
+ },
2507
+ rt(...e) {
2508
+ return Reflect.apply(t.rt, t, [...e]);
2509
+ },
2510
+ te(e, n) {
2511
+ return t.te(e, n);
2512
+ },
2513
+ tm(e) {
2514
+ return t.tm(e);
2515
+ },
2516
+ getLocaleMessage(e) {
2517
+ return t.getLocaleMessage(e);
2518
+ },
2519
+ setLocaleMessage(e, n) {
2520
+ t.setLocaleMessage(e, n);
2521
+ },
2522
+ mergeLocaleMessage(e, n) {
2523
+ t.mergeLocaleMessage(e, n);
2524
+ },
2525
+ d(...e) {
2526
+ return Reflect.apply(t.d, t, [...e]);
2527
+ },
2528
+ getDateTimeFormat(e) {
2529
+ return t.getDateTimeFormat(e);
2530
+ },
2531
+ setDateTimeFormat(e, n) {
2532
+ t.setDateTimeFormat(e, n);
2533
+ },
2534
+ mergeDateTimeFormat(e, n) {
2535
+ t.mergeDateTimeFormat(e, n);
2536
+ },
2537
+ n(...e) {
2538
+ return Reflect.apply(t.n, t, [...e]);
2539
+ },
2540
+ getNumberFormat(e) {
2541
+ return t.getNumberFormat(e);
2542
+ },
2543
+ setNumberFormat(e, n) {
2544
+ t.setNumberFormat(e, n);
2545
+ },
2546
+ mergeNumberFormat(e, n) {
2547
+ t.mergeNumberFormat(e, n);
2548
+ }
2549
+ };
2550
+ return r.__extender = n, process.env.NODE_ENV !== "production" && (r.__enableEmitter = (e) => {
2551
+ let n = t;
2552
+ n[EnableEmitter] && n[EnableEmitter](e);
2553
+ }, r.__disableEmitter = () => {
2554
+ let e = t;
2555
+ e[DisableEmitter] && e[DisableEmitter]();
2556
+ }), r;
2557
+ }
2558
+ function defineMixin(e, t, n) {
2559
+ return {
2560
+ beforeCreate() {
2561
+ let r = getCurrentInstance();
2562
+ /* istanbul ignore if */
2563
+ if (!r) throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);
2564
+ let i = this.$options;
2565
+ if (i.i18n) {
2566
+ let r = i.i18n;
2567
+ if (i.__i18n && (r.__i18n = i.__i18n), r.__root = t, this === this.$root) this.$i18n = mergeToGlobal(e, r);
2568
+ else {
2569
+ r.__injectWithOption = !0, r.__extender = n.__vueI18nExtend, this.$i18n = createVueI18n(r);
2570
+ let e = this.$i18n;
2571
+ e.__extender && (e.__disposer = e.__extender(this.$i18n));
2572
+ }
2573
+ } else if (i.__i18n) if (this === this.$root) this.$i18n = mergeToGlobal(e, i);
2574
+ else {
2575
+ this.$i18n = createVueI18n({
2576
+ __i18n: i.__i18n,
2577
+ __injectWithOption: !0,
2578
+ __extender: n.__vueI18nExtend,
2579
+ __root: t
2580
+ });
2581
+ let e = this.$i18n;
2582
+ e.__extender && (e.__disposer = e.__extender(this.$i18n));
2583
+ }
2584
+ else this.$i18n = e;
2585
+ i.__i18nGlobal && adjustI18nResources(t, i, i), this.$t = (...e) => this.$i18n.t(...e), this.$rt = (...e) => this.$i18n.rt(...e), this.$te = (e, t) => this.$i18n.te(e, t), this.$d = (...e) => this.$i18n.d(...e), this.$n = (...e) => this.$i18n.n(...e), this.$tm = (e) => this.$i18n.tm(e), n.__setInstance(r, this.$i18n);
2586
+ },
2587
+ mounted() {
2588
+ /* istanbul ignore if */
2589
+ if (process.env.NODE_ENV !== "production" && this.$i18n) {
2590
+ let e = getCurrentInstance();
2591
+ if (!e) return;
2592
+ let t = this.$i18n;
2593
+ e.__VUE_I18N__ = t.__composer;
2594
+ let n = this.__v_emitter = createEmitter();
2595
+ t.__enableEmitter && t.__enableEmitter(n), n.on("*", addTimelineEvent);
2596
+ }
2597
+ },
2598
+ unmounted() {
2599
+ let e = getCurrentInstance();
2600
+ /* istanbul ignore if */
2601
+ if (!e) throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);
2602
+ let t = this.$i18n;
2603
+ process.env.NODE_ENV !== "production" && e.__VUE_I18N__ && (this.__v_emitter && (this.__v_emitter.off("*", addTimelineEvent), delete this.__v_emitter), this.$i18n && (t.__disableEmitter && t.__disableEmitter(), delete e.__VUE_I18N__)), delete this.$t, delete this.$rt, delete this.$te, delete this.$d, delete this.$n, delete this.$tm, t.__disposer && (t.__disposer(), delete t.__disposer, delete t.__extender), n.__deleteInstance(e), delete this.$i18n;
2604
+ }
2605
+ };
2606
+ }
2607
+ function mergeToGlobal(e, t) {
2608
+ 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[SetPluralRulesSymbol](t.pluralizationRules || e.pluralizationRules);
2609
+ let n = getLocaleMessages(e.locale, {
2610
+ messages: t.messages,
2611
+ __i18n: t.__i18n
2612
+ });
2613
+ return Object.keys(n).forEach((t) => e.mergeLocaleMessage(t, n[t])), t.datetimeFormats && Object.keys(t.datetimeFormats).forEach((n) => e.mergeDateTimeFormat(n, t.datetimeFormats[n])), t.numberFormats && Object.keys(t.numberFormats).forEach((n) => e.mergeNumberFormat(n, t.numberFormats[n])), e;
2614
+ }
2615
+ var baseFormatProps = {
2616
+ tag: { type: [String, Object] },
2617
+ locale: { type: String },
2618
+ scope: {
2619
+ type: String,
2620
+ validator: (e) => e === "parent" || e === "global",
2621
+ default: "parent"
2622
+ },
2623
+ i18n: { type: Object }
2624
+ };
2625
+ function getInterpolateArg({ slots: e }, n) {
2626
+ return n.length === 1 && n[0] === "default" ? (e.default ? e.default() : []).reduce((e, n) => [...e, ...n.type === Fragment ? n.children : [n]], []) : n.reduce((t, n) => {
2627
+ let r = e[n];
2628
+ return r && (t[n] = r()), t;
2629
+ }, create());
2630
+ }
2631
+ function getFragmentableTag() {
2632
+ return Fragment;
2633
+ }
2634
+ var Translation = /* @__PURE__ */ defineComponent({
2635
+ name: "i18n-t",
2636
+ props: assign({
2637
+ keypath: {
2638
+ type: String,
2639
+ required: !0
2640
+ },
2641
+ plural: {
2642
+ type: [Number, String],
2643
+ validator: (e) => isNumber(e) || !isNaN(e)
2644
+ }
2645
+ }, baseFormatProps),
2646
+ setup(e, t) {
2647
+ let { slots: n, attrs: r } = t, i = e.i18n || useI18n({
2648
+ useScope: e.scope,
2649
+ __useComponent: !0
2650
+ });
2651
+ return () => {
2652
+ let a = Object.keys(n).filter((e) => e[0] !== "_"), o = create();
2653
+ e.locale && (o.locale = e.locale), e.plural !== void 0 && (o.plural = isString(e.plural) ? +e.plural : e.plural);
2654
+ let s = getInterpolateArg(t, a), c = i[TranslateVNodeSymbol](e.keypath, s, o), l = assign(create(), r);
2655
+ return h(isString(e.tag) || isObject(e.tag) ? e.tag : getFragmentableTag(), l, c);
2656
+ };
2657
+ }
2658
+ });
2659
+ function isVNode(e) {
2660
+ return isArray(e) && !isString(e[0]);
2661
+ }
2662
+ function renderFormatter(e, t, n, r) {
2663
+ let { slots: i, attrs: a } = t;
2664
+ return () => {
2665
+ let t = { part: !0 }, o = create();
2666
+ e.locale && (t.locale = e.locale), isString(e.format) ? t.key = e.format : isObject(e.format) && (isString(e.format.key) && (t.key = e.format.key), o = Object.keys(e.format).reduce((t, r) => n.includes(r) ? assign(create(), t, { [r]: e.format[r] }) : t, create()));
2667
+ let s = r(e.value, t, o), c = [t.key];
2668
+ isArray(s) ? c = s.map((e, t) => {
2669
+ let n = i[e.type], r = n ? n({
2670
+ [e.type]: e.value,
2671
+ index: t,
2672
+ parts: s
2673
+ }) : [e.value];
2674
+ return isVNode(r) && (r[0].key = `${e.type}-${t}`), r;
2675
+ }) : isString(s) && (c = [s]);
2676
+ let l = assign(create(), a);
2677
+ return h(isString(e.tag) || isObject(e.tag) ? e.tag : getFragmentableTag(), l, c);
2678
+ };
2679
+ }
2680
+ var NumberFormat = /* @__PURE__ */ defineComponent({
2681
+ name: "i18n-n",
2682
+ props: assign({
2683
+ value: {
2684
+ type: Number,
2685
+ required: !0
2686
+ },
2687
+ format: { type: [String, Object] }
2688
+ }, baseFormatProps),
2689
+ setup(e, t) {
2690
+ let n = e.i18n || useI18n({
2691
+ useScope: e.scope,
2692
+ __useComponent: !0
2693
+ });
2694
+ return renderFormatter(e, t, NUMBER_FORMAT_OPTIONS_KEYS, (...e) => n[NumberPartsSymbol](...e));
2695
+ }
2696
+ });
2697
+ function getComposer$1(e, t) {
2698
+ let n = e;
2699
+ if (e.mode === "composition") return n.__getInstance(t) || e.global;
2700
+ {
2701
+ let r = n.__getInstance(t);
2702
+ return r == null ? e.global.__composer : r.__composer;
2703
+ }
2704
+ }
2705
+ function vTDirective(e) {
2706
+ let t = (t) => {
2707
+ process.env.NODE_ENV !== "production" && warnOnce(getWarnMessage(I18nWarnCodes.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));
2708
+ let { instance: n, value: r } = t;
2709
+ /* istanbul ignore if */
2710
+ if (!n || !n.$) throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);
2711
+ let i = getComposer$1(e, n.$), a = parseValue(r);
2712
+ return [Reflect.apply(i.t, i, [...makeParams(a)]), i];
2713
+ };
2714
+ return {
2715
+ created: (n, r) => {
2716
+ let [i, a] = t(r);
2717
+ inBrowser && e.global === a && (n.__i18nWatcher = watch(a.locale, () => {
2718
+ r.instance && r.instance.$forceUpdate();
2719
+ })), n.__composer = a, n.textContent = i;
2720
+ },
2721
+ unmounted: (e) => {
2722
+ inBrowser && e.__i18nWatcher && (e.__i18nWatcher(), e.__i18nWatcher = void 0, delete e.__i18nWatcher), e.__composer && (e.__composer = void 0, delete e.__composer);
2723
+ },
2724
+ beforeUpdate: (e, { value: t }) => {
2725
+ if (e.__composer) {
2726
+ let n = e.__composer, r = parseValue(t);
2727
+ e.textContent = Reflect.apply(n.t, n, [...makeParams(r)]);
2728
+ }
2729
+ },
2730
+ getSSRProps: (e) => {
2731
+ let [n] = t(e);
2732
+ return { textContent: n };
2733
+ }
2734
+ };
2735
+ }
2736
+ function parseValue(e) {
2737
+ if (isString(e)) return { path: e };
2738
+ if (isPlainObject(e)) {
2739
+ if (!("path" in e)) throw createI18nError(I18nErrorCodes.REQUIRED_VALUE, "path");
2740
+ return e;
2741
+ } else throw createI18nError(I18nErrorCodes.INVALID_VALUE);
2742
+ }
2743
+ function makeParams(e) {
2744
+ let { path: t, locale: n, args: r, choice: i, plural: a } = e, o = {}, s = r || {};
2745
+ return isString(n) && (o.locale = n), isNumber(i) && (o.plural = i), isNumber(a) && (o.plural = a), [
2746
+ t,
2747
+ s,
2748
+ o
2749
+ ];
2750
+ }
2751
+ function apply(e, t, ...n) {
2752
+ let r = isPlainObject(n[0]) ? n[0] : {};
2753
+ (!isBoolean(r.globalInstall) || r.globalInstall) && ([Translation.name, "I18nT"].forEach((t) => e.component(t, Translation)), [NumberFormat.name, "I18nN"].forEach((t) => e.component(t, NumberFormat)), [DatetimeFormat.name, "I18nD"].forEach((t) => e.component(t, DatetimeFormat))), e.directive("t", vTDirective(t));
2754
+ }
2755
+ var I18nInjectionKey = /* @__PURE__ */ makeSymbol("global-vue-i18n");
2756
+ function createI18n(e = {}) {
2757
+ let t = __VUE_I18N_LEGACY_API__ && isBoolean(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__;
2758
+ process.env.NODE_ENV !== "production" && t && warnOnce(getWarnMessage(I18nWarnCodes.DEPRECATE_LEGACY_MODE));
2759
+ let n = isBoolean(e.globalInjection) ? e.globalInjection : !0, r = /* @__PURE__ */ new Map(), [i, a] = createGlobal(e, t), o = /* @__PURE__ */ makeSymbol(process.env.NODE_ENV === "production" ? "" : "vue-i18n");
2760
+ function s(e) {
2761
+ return r.get(e) || null;
2762
+ }
2763
+ function c(e, t) {
2764
+ r.set(e, t);
2765
+ }
2766
+ function l(e) {
2767
+ r.delete(e);
2768
+ }
2769
+ let u = {
2770
+ get mode() {
2771
+ return __VUE_I18N_LEGACY_API__ && t ? "legacy" : "composition";
2772
+ },
2773
+ async install(e, ...r) {
2774
+ if (process.env.NODE_ENV !== "production" && (e.__VUE_I18N__ = u), e.__VUE_I18N_SYMBOL__ = o, e.provide(e.__VUE_I18N_SYMBOL__, u), isPlainObject(r[0])) {
2775
+ let e = r[0];
2776
+ u.__composerExtend = e.__composerExtend, u.__vueI18nExtend = e.__vueI18nExtend;
2777
+ }
2778
+ let i = null;
2779
+ !t && n && (i = injectGlobalFields(e, u.global)), __VUE_I18N_FULL_INSTALL__ && apply(e, u, ...r), __VUE_I18N_LEGACY_API__ && t && e.mixin(defineMixin(a, a.__composer, u));
2780
+ let s = e.unmount;
2781
+ if (e.unmount = () => {
2782
+ i && i(), u.dispose(), s();
2783
+ }, process.env.NODE_ENV !== "production") {
2784
+ if (!await enableDevTools(e, u)) throw createI18nError(I18nErrorCodes.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
2785
+ let n = createEmitter();
2786
+ if (t) {
2787
+ let e = a;
2788
+ e.__enableEmitter && e.__enableEmitter(n);
2789
+ } else {
2790
+ let e = a;
2791
+ e[EnableEmitter] && e[EnableEmitter](n);
2792
+ }
2793
+ n.on("*", addTimelineEvent);
2794
+ }
2795
+ },
2796
+ get global() {
2797
+ return a;
2798
+ },
2799
+ dispose() {
2800
+ i.stop();
2801
+ },
2802
+ __instances: r,
2803
+ __getInstance: s,
2804
+ __setInstance: c,
2805
+ __deleteInstance: l
2806
+ };
2807
+ return u;
2808
+ }
2809
+ function useI18n(e = {}) {
2810
+ let t = getCurrentInstance();
2811
+ if (t == null) throw createI18nError(I18nErrorCodes.MUST_BE_CALL_SETUP_TOP);
2812
+ if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__) throw createI18nError(I18nErrorCodes.NOT_INSTALLED);
2813
+ let n = getI18nInstance(t), r = getGlobalComposer(n), i = getComponentOptions(t), a = getScope(e, i);
2814
+ if (a === "global") return adjustI18nResources(r, e, i), r;
2815
+ if (a === "parent") {
2816
+ let i = getComposer(n, t, e.__useComponent);
2817
+ return i ??= (process.env.NODE_ENV !== "production" && warn(getWarnMessage(I18nWarnCodes.NOT_FOUND_PARENT_SCOPE)), r), i;
2818
+ }
2819
+ let o = n, s = o.__getInstance(t);
2820
+ if (s == null) {
2821
+ let n = assign({}, e);
2822
+ "__i18n" in i && (n.__i18n = i.__i18n), r && (n.__root = r), s = createComposer(n), o.__composerExtend && (s[DisposeSymbol] = o.__composerExtend(s)), setupLifeCycle(o, t, s), o.__setInstance(t, s);
2823
+ } else process.env.NODE_ENV !== "production" && a === "local" && warn(getWarnMessage(I18nWarnCodes.DUPLICATE_USE_I18N_CALLING));
2824
+ return s;
2825
+ }
2826
+ function createGlobal(e, t) {
2827
+ let n = effectScope(), r = __VUE_I18N_LEGACY_API__ && t ? n.run(() => createVueI18n(e)) : n.run(() => createComposer(e));
2828
+ if (r == null) throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);
2829
+ return [n, r];
2830
+ }
2831
+ function getI18nInstance(e) {
2832
+ let t = inject(e.isCE ? I18nInjectionKey : e.appContext.app.__VUE_I18N_SYMBOL__);
2833
+ /* istanbul ignore if */
2834
+ if (!t) throw createI18nError(e.isCE ? I18nErrorCodes.NOT_INSTALLED_WITH_PROVIDE : I18nErrorCodes.UNEXPECTED_ERROR);
2835
+ return t;
2836
+ }
2837
+ function getScope(e, t) {
2838
+ return isEmptyObject(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
2839
+ }
2840
+ function getGlobalComposer(e) {
2841
+ return e.mode === "composition" ? e.global : e.global.__composer;
2842
+ }
2843
+ function getComposer(e, t, n = !1) {
2844
+ let r = null, i = t.root, a = getParentComponentInstance(t, n);
2845
+ for (; a != null;) {
2846
+ let t = e;
2847
+ if (e.mode === "composition") r = t.__getInstance(a);
2848
+ else if (__VUE_I18N_LEGACY_API__) {
2849
+ let e = t.__getInstance(a);
2850
+ e != null && (r = e.__composer, n && r && !r[InejctWithOptionSymbol] && (r = null));
2851
+ }
2852
+ if (r != null || i === a) break;
2853
+ a = a.parent;
2854
+ }
2855
+ return r;
2856
+ }
2857
+ function getParentComponentInstance(e, t = !1) {
2858
+ return e == null ? null : t && e.vnode.ctx || e.parent;
2859
+ }
2860
+ function setupLifeCycle(e, t, n) {
2861
+ let r = null;
2862
+ onMounted(() => {
2863
+ if (process.env.NODE_ENV !== "production") {
2864
+ t.__VUE_I18N__ = n, r = createEmitter();
2865
+ let e = n;
2866
+ e[EnableEmitter] && e[EnableEmitter](r), r.on("*", addTimelineEvent);
2867
+ }
2868
+ }, t), onUnmounted(() => {
2869
+ let i = n;
2870
+ process.env.NODE_ENV !== "production" && (r && r.off("*", addTimelineEvent), i[DisableEmitter] && i[DisableEmitter](), delete t.__VUE_I18N__), e.__deleteInstance(t);
2871
+ let a = i[DisposeSymbol];
2872
+ a && (a(), delete i[DisposeSymbol]);
2873
+ }, t);
2874
+ }
2875
+ var globalExportProps = [
2876
+ "locale",
2877
+ "fallbackLocale",
2878
+ "availableLocales"
2879
+ ], globalExportMethods = [
2880
+ "t",
2881
+ "rt",
2882
+ "d",
2883
+ "n",
2884
+ "tm",
2885
+ "te"
2886
+ ];
2887
+ function injectGlobalFields(e, t) {
2888
+ let n = Object.create(null);
2889
+ return globalExportProps.forEach((e) => {
2890
+ let r = Object.getOwnPropertyDescriptor(t, e);
2891
+ if (!r) throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);
2892
+ let i = isRef(r.value) ? {
2893
+ get() {
2894
+ return r.value.value;
2895
+ },
2896
+ set(e) {
2897
+ r.value.value = e;
2898
+ }
2899
+ } : { get() {
2900
+ return r.get && r.get();
2901
+ } };
2902
+ Object.defineProperty(n, e, i);
2903
+ }), e.config.globalProperties.$i18n = n, globalExportMethods.forEach((n) => {
2904
+ let r = Object.getOwnPropertyDescriptor(t, n);
2905
+ if (!r || !r.value) throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);
2906
+ Object.defineProperty(e.config.globalProperties, `$${n}`, r);
2907
+ }), () => {
2908
+ delete e.config.globalProperties.$i18n, globalExportMethods.forEach((t) => {
2909
+ delete e.config.globalProperties[`$${t}`];
2910
+ });
2911
+ };
2912
+ }
2913
+ var DatetimeFormat = /* @__PURE__ */ defineComponent({
2914
+ name: "i18n-d",
2915
+ props: assign({
2916
+ value: {
2917
+ type: [Number, Date],
2918
+ required: !0
2919
+ },
2920
+ format: { type: [String, Object] }
2921
+ }, baseFormatProps),
2922
+ setup(e, t) {
2923
+ let n = e.i18n || useI18n({
2924
+ useScope: e.scope,
2925
+ __useComponent: !0
2926
+ });
2927
+ return renderFormatter(e, t, DATETIME_FORMAT_OPTIONS_KEYS, (...e) => n[DatetimePartsSymbol](...e));
2928
+ }
2929
+ });
2930
+ if (initFeatureFlags(), registerMessageCompiler(compile), registerMessageResolver(resolveValue), registerLocaleFallbacker(fallbackWithLocaleChain), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
2931
+ let e = getGlobalThis();
2932
+ e.__INTLIFY__ = !0, setDevToolsHook(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
2933
+ }
2934
+ process.env.NODE_ENV;
2935
+ var en_default = {
2936
+ unsaved: {
2937
+ tips: "UNSAVED CHANGES",
2938
+ save: "SAVE",
2939
+ cancel: "CANCEL"
2940
+ },
2941
+ copied: "Copied to clipboard",
2942
+ notData: "No data",
2943
+ select: {
2944
+ multiple: "Selected",
2945
+ item: "items"
2946
+ },
2947
+ fileUpload: {
2948
+ label: "Attachment",
2949
+ remove: "Remove",
2950
+ placeholder: "Choose file",
2951
+ maxSize: "Maximum size of attachments {size} MB",
2952
+ limit: "Maximum size of attachments cannot exceed",
2953
+ drag: "Drop the file here or <em>click to upload</em>",
2954
+ fileName: "Attachment name",
2955
+ pass: "Password",
2956
+ setPass: "Set download password >",
2957
+ confirm: "Confirm",
2958
+ cancel: "Cancel",
2959
+ image: "Image upload",
2960
+ delete: {
2961
+ heading: "Delete this image?",
2962
+ subheading: "Are you sure you want to delete this image? This operation cannot be undone."
2963
+ },
2964
+ deleteFile: {
2965
+ heading: "Delete this file?",
2966
+ subheading: "Are you sure you want to delete this file? This operation cannot be undone."
2967
+ },
2968
+ alt: {
2969
+ label: "ALT",
2970
+ heading: "Edit Image Alt Information",
2971
+ subheading: "Add a short description to the image to improve its chances of being indexed by search engines"
2972
+ },
2973
+ entity: {
2974
+ coverImage: {
2975
+ label: "Cover Image",
2976
+ tips: "",
2977
+ placeholder: "Cover Image",
2978
+ required: "Please enter cover image",
2979
+ custom: ""
2980
+ },
2981
+ title: {
2982
+ label: "File Name",
2983
+ tips: "",
2984
+ placeholder: "File Name",
2985
+ required: "Please enter file name",
2986
+ custom: ""
2987
+ },
2988
+ url: {
2989
+ label: "File Address",
2990
+ tips: "",
2991
+ placeholder: "File Address",
2992
+ required: "Please enter file address",
2993
+ custom: ""
2994
+ },
2995
+ description: {
2996
+ label: "Brief Introduction",
2997
+ tips: "",
2998
+ placeholder: "Brief introduction",
2999
+ required: "Please enter a brief introduction",
3000
+ custom: ""
3001
+ }
3002
+ }
3003
+ },
3004
+ editor: { placeholder: "Type or paste your content here!" },
3005
+ back: "Back"
3006
+ }, zh_CN_default = {
3007
+ unsaved: {
3008
+ tips: "未保存的更改",
3009
+ save: "保存",
3010
+ cancel: "取消"
3011
+ },
3012
+ copied: "已复制到剪贴板",
3013
+ notData: "数据为空",
3014
+ select: { multiple: "已选中 {0} 个" },
3015
+ fileUpload: {
3016
+ label: "附件",
3017
+ remove: "移除",
3018
+ placeholder: "Choose file",
3019
+ maxSize: "附件最大 {size} MB",
3020
+ limit: "附件最大不能超过",
3021
+ drag: "将文件拖放到这里或 <em>点击上传</em>",
3022
+ fileName: "附件名称",
3023
+ pass: "密码",
3024
+ setPass: "设置下载密码 >",
3025
+ confirm: "确定",
3026
+ cancel: "取消",
3027
+ image: "图片上传",
3028
+ delete: {
3029
+ heading: "删除此图像?",
3030
+ subheading: "是否确实要删除此图像?此操作无法撤消。"
3031
+ },
3032
+ deleteFile: {
3033
+ heading: "删除此文件?",
3034
+ subheading: "是否确实要删除此文件?此操作无法撤消。"
3035
+ },
3036
+ alt: {
3037
+ label: "ALT",
3038
+ heading: "编辑图片 Alt 信息",
3039
+ subheading: "为图片添加简短的描述,提高被搜索引擎收录机会"
3040
+ },
3041
+ entity: {
3042
+ coverImage: {
3043
+ label: "封面图片",
3044
+ tips: "",
3045
+ placeholder: "封面图片",
3046
+ required: "请输入封面图片",
3047
+ custom: ""
3048
+ },
3049
+ title: {
3050
+ label: "文件名称",
3051
+ tips: "",
3052
+ placeholder: "文件名称",
3053
+ required: "请输入文件名称",
3054
+ custom: ""
3055
+ },
3056
+ url: {
3057
+ label: "文件地址",
3058
+ tips: "",
3059
+ placeholder: "文件地址",
3060
+ required: "请输入文件地址",
3061
+ custom: ""
3062
+ },
3063
+ description: {
3064
+ label: "简要介绍",
3065
+ tips: "",
3066
+ placeholder: "简要介绍",
3067
+ required: "请输入简要介绍",
3068
+ custom: ""
3069
+ }
3070
+ }
3071
+ },
3072
+ editor: { placeholder: "在此处输入或粘贴您的内容!" },
3073
+ back: "返回"
3074
+ }, base_default = createI18n({
3075
+ fallbackLocale: "en",
3076
+ globalInjection: !0,
3077
+ locale: (() => {
3078
+ let e = localStorage.getItem("ogaLocale");
3079
+ return e ||= navigator.language, e != null && (e = "en|zh-CN".indexOf(e) > -1 ? e : "en"), localStorage.setItem("ogaLocale", e), e;
3080
+ })(),
3081
+ messages: {
3082
+ "zh-CN": {
3083
+ ...zh_CN_default,
3084
+ main: {}
3085
+ },
3086
+ en: {
3087
+ ...en_default,
3088
+ main: {}
3089
+ }
3090
+ }
3091
+ }), _hoisted_1 = { class: "oga-table" }, _hoisted_2 = {
3092
+ key: 0,
3093
+ class: "oga-table-content"
3094
+ }, src_default = /* @__PURE__ */ ((e, t) => {
3095
+ let n = e.__vccOpts || e;
3096
+ for (let [e, r] of t) n[e] = r;
3097
+ return n;
6
3098
  })(/* @__PURE__ */ defineComponent({
7
3099
  __name: "index",
8
3100
  props: {
@@ -10,46 +3102,61 @@ var _hoisted_1 = { class: "oga-table" }, _hoisted_2 = { class: "oga-table-conten
10
3102
  modelModifiers: {}
11
3103
  },
12
3104
  emits: /* @__PURE__ */ mergeModels(["paging"], ["update:modelValue"]),
13
- setup(g, { emit: _ }) {
14
- let y = useModel(g, "modelValue"), b = _, x = (e) => {
15
- y.value.current = e, b("paging", !1);
16
- }, S = (e) => {
17
- y.value.size = e, b("paging", !1);
3105
+ setup(e, { emit: n }) {
3106
+ let r = useModel(e, "modelValue"), l = n, u = (e) => {
3107
+ r.value.current = e, l("paging", !1);
3108
+ }, d = () => {
3109
+ r.value !== void 0 && r.value.empty && r.value.empty.onClick && typeof r.value.empty.onClick == "function" && r.value.empty.onClick.call(this);
3110
+ }, f = (e) => {
3111
+ r.value.size = e, l("paging", !1);
18
3112
  };
19
- return (g, _) => {
20
- let v = resolveComponent("el-col"), b = resolveComponent("el-row"), C = resolveComponent("el-pagination"), w = resolveDirective("loading");
21
- return withDirectives((openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [createVNode(b, {
3113
+ return (e, n) => {
3114
+ let l = resolveComponent("el-col"), p = resolveComponent("el-row"), m = resolveComponent("el-button"), _ = resolveComponent("el-empty"), v = resolveComponent("el-pagination"), b = resolveDirective("loading");
3115
+ return withDirectives((openBlock(), createElementBlock("div", _hoisted_1, [r.value.records.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_2, [createVNode(p, {
22
3116
  class: "oga-table-row",
23
- style: normalizeStyle({ "--span": y.value.gutter ?? 20 }),
24
- gutter: y.value.gutter ?? 20
3117
+ style: normalizeStyle({ "--span": r.value.gutter ?? 20 }),
3118
+ gutter: r.value.gutter ?? 20
25
3119
  }, {
26
- default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(y.value.records, (e) => (openBlock(), createBlock(v, {
3120
+ default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(r.value.records, (t) => (openBlock(), createBlock(l, {
27
3121
  class: "oga-table-col",
28
- span: y.value.span ?? 12
3122
+ span: r.value.span ?? 12
29
3123
  }, {
30
- default: withCtx(() => [renderSlot(g.$slots, "default", { item: e }, void 0, !0)]),
3124
+ default: withCtx(() => [renderSlot(e.$slots, "default", { row: t }, void 0, !0)]),
31
3125
  _: 2
32
3126
  }, 1032, ["span"]))), 256))]),
33
3127
  _: 3
34
- }, 8, ["style", "gutter"])]), y.value.total > y.value.size ? (openBlock(), createBlock(C, {
35
- key: 0,
36
- "current-page": y.value.current,
37
- "page-size": y.value.size,
38
- layout: y.value.pageLayout,
39
- "page-sizes": y.value.pageSizes,
40
- total: y.value.total,
41
- onCurrentChange: x,
42
- onSizeChange: S
3128
+ }, 8, ["style", "gutter"])])) : (openBlock(), createBlock(_, {
3129
+ key: 1,
3130
+ description: r.value.empty?.content ?? unref(base_default).global.t("notData")
3131
+ }, {
3132
+ default: withCtx(() => [r.value.empty ? (openBlock(), createBlock(m, {
3133
+ key: 0,
3134
+ type: "text",
3135
+ onClick: d
3136
+ }, {
3137
+ default: withCtx(() => [createTextVNode(toDisplayString(r.value.empty?.buttonLabel ?? ""), 1)]),
3138
+ _: 1
3139
+ })) : createCommentVNode("v-if", !0)]),
3140
+ _: 1
3141
+ }, 8, ["description"])), r.value.total > r.value.size ? (openBlock(), createBlock(v, {
3142
+ key: 2,
3143
+ "current-page": r.value.current,
3144
+ "page-size": r.value.size,
3145
+ layout: r.value.pageLayout,
3146
+ "page-sizes": r.value.pageSizes,
3147
+ total: r.value.total,
3148
+ onCurrentChange: u,
3149
+ onSizeChange: f
43
3150
  }, null, 8, [
44
3151
  "current-page",
45
3152
  "page-size",
46
3153
  "layout",
47
3154
  "page-sizes",
48
3155
  "total"
49
- ])) : createCommentVNode("v-if", !0)])), [[w, y.value.loading]]);
3156
+ ])) : createCommentVNode("v-if", !0)])), [[b, r.value.loading]]);
50
3157
  };
51
3158
  }
52
- }), [["__scopeId", "data-v-d877ce81"]]), paging_default = { install(e) {
3159
+ }), [["__scopeId", "data-v-f0b81431"]]), paging_default = { install(e) {
53
3160
  e.component("OgaPaging", src_default);
54
3161
  } };
55
3162
  export { paging_default as default };