@ansidev-oss/vitepress-theme-ansidev 1.0.12 → 1.1.0

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