@konnectio/core 4.0.56-rc55 → 4.0.56-rc56

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