sy-form-designer 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3113 @@
1
+ import { ref as mt, getCurrentInstance as Ct, inject as wn, shallowRef as Vn, computed as De, watch as Wt, onMounted as Wn, onUnmounted as xn, defineComponent as St, h as En, createVNode as $n, Text as Hn, Fragment as pn } from "vue";
2
+ const Yn = [{
3
+ name: "容器",
4
+ components: [{
5
+ key: 10001,
6
+ type: "grid",
7
+ category: "container",
8
+ icon: "grid",
9
+ cols: [{
10
+ key: 10002
11
+ }, {
12
+ key: 10002
13
+ }],
14
+ options: {
15
+ name: "",
16
+ hidden: !1,
17
+ gutter: 12,
18
+ colHeight: null,
19
+ customClass: []
20
+ },
21
+ id: ""
22
+ }, {
23
+ key: 10002,
24
+ display: !1,
25
+ type: "grid-col",
26
+ category: "container",
27
+ icon: "grid-col",
28
+ internal: !0,
29
+ widgetList: [],
30
+ options: {
31
+ name: "",
32
+ hidden: !1,
33
+ span: 12,
34
+ offset: 0,
35
+ push: 0,
36
+ pull: 0,
37
+ responsive: !1,
38
+ md: 12,
39
+ sm: 12,
40
+ xs: 12,
41
+ customClass: []
42
+ },
43
+ id: ""
44
+ }]
45
+ }, {
46
+ name: "基础字段",
47
+ components: [{
48
+ key: 20001,
49
+ type: "input",
50
+ icon: "text-field",
51
+ formItemFlag: !0,
52
+ options: {
53
+ name: "",
54
+ label: "input",
55
+ labelAlign: "",
56
+ type: "text",
57
+ defaultValue: "",
58
+ submitType: "",
59
+ placeholder: "",
60
+ columnWidth: "200px",
61
+ size: "",
62
+ labelWidth: null,
63
+ labelHidden: !1,
64
+ readonly: !1,
65
+ disabled: !1,
66
+ hidden: !1,
67
+ clearable: !0,
68
+ showPassword: !1,
69
+ required: !1,
70
+ requiredHint: "",
71
+ validation: "",
72
+ validationHint: "",
73
+ customClass: [],
74
+ labelIconClass: null,
75
+ labelIconPosition: "rear",
76
+ labelTooltip: null,
77
+ minLength: null,
78
+ maxLength: null,
79
+ showWordLimit: !1,
80
+ prefixIcon: "",
81
+ suffixIcon: "",
82
+ appendButton: !1,
83
+ appendButtonDisabled: !1,
84
+ buttonIcon: "custom-search",
85
+ onCreated: "",
86
+ onMounted: "",
87
+ onInput: "",
88
+ onChange: "",
89
+ onFocus: "",
90
+ onBlur: "",
91
+ onValidate: "",
92
+ onAppendButtonClick: ""
93
+ },
94
+ id: ""
95
+ }, {
96
+ key: 20002,
97
+ type: "textarea",
98
+ icon: "textarea-field",
99
+ formItemFlag: !0,
100
+ options: {
101
+ name: "",
102
+ label: "textarea",
103
+ labelAlign: "",
104
+ rows: 3,
105
+ defaultValue: "",
106
+ submitType: "",
107
+ placeholder: "",
108
+ columnWidth: "200px",
109
+ size: "",
110
+ labelWidth: null,
111
+ labelHidden: !1,
112
+ readonly: !1,
113
+ disabled: !1,
114
+ hidden: !1,
115
+ required: !1,
116
+ requiredHint: "",
117
+ validation: "",
118
+ validationHint: "",
119
+ customClass: [],
120
+ labelIconClass: null,
121
+ labelIconPosition: "rear",
122
+ labelTooltip: null,
123
+ minLength: null,
124
+ maxLength: null,
125
+ showWordLimit: !1,
126
+ onCreated: "",
127
+ onMounted: "",
128
+ onInput: "",
129
+ onChange: "",
130
+ onFocus: "",
131
+ onBlur: "",
132
+ onValidate: ""
133
+ },
134
+ id: ""
135
+ }, {
136
+ key: 20003,
137
+ type: "radio",
138
+ icon: "radio-field",
139
+ formItemFlag: !0,
140
+ options: {
141
+ name: "",
142
+ label: "radio",
143
+ labelAlign: "",
144
+ defaultValue: null,
145
+ submitType: "",
146
+ columnWidth: "200px",
147
+ size: "",
148
+ displayStyle: "inline",
149
+ buttonStyle: !1,
150
+ border: !1,
151
+ labelWidth: null,
152
+ labelHidden: !1,
153
+ disabled: !1,
154
+ hidden: !1,
155
+ optionItems: [
156
+ {
157
+ label: "radio 1",
158
+ value: 1
159
+ },
160
+ {
161
+ label: "radio 2",
162
+ value: 2
163
+ },
164
+ {
165
+ label: "radio 3",
166
+ value: 3
167
+ }
168
+ ],
169
+ required: !1,
170
+ requiredHint: "",
171
+ validation: "",
172
+ validationHint: "",
173
+ customClass: "",
174
+ labelIconClass: null,
175
+ labelIconPosition: "rear",
176
+ labelTooltip: null,
177
+ onCreated: "",
178
+ onMounted: "",
179
+ onChange: "",
180
+ onValidate: ""
181
+ },
182
+ id: ""
183
+ }, {
184
+ key: 20004,
185
+ type: "checkbox",
186
+ icon: "checkbox-field",
187
+ formItemFlag: !0,
188
+ options: {
189
+ name: "",
190
+ label: "checkbox",
191
+ labelAlign: "",
192
+ defaultValue: [],
193
+ submitType: "",
194
+ columnWidth: "200px",
195
+ size: "",
196
+ displayStyle: "inline",
197
+ buttonStyle: !1,
198
+ border: !1,
199
+ labelWidth: null,
200
+ labelHidden: !1,
201
+ disabled: !1,
202
+ hidden: !1,
203
+ optionItems: [
204
+ {
205
+ label: "check 1",
206
+ value: 1
207
+ },
208
+ {
209
+ label: "check 2",
210
+ value: 2
211
+ },
212
+ {
213
+ label: "check 3",
214
+ value: 3
215
+ }
216
+ ],
217
+ required: !1,
218
+ requiredHint: "",
219
+ validation: "",
220
+ validationHint: "",
221
+ customClass: [],
222
+ labelIconClass: null,
223
+ labelIconPosition: "rear",
224
+ labelTooltip: null,
225
+ onCreated: "",
226
+ onMounted: "",
227
+ onChange: "",
228
+ onValidate: ""
229
+ },
230
+ id: ""
231
+ }, {
232
+ key: 20005,
233
+ type: "select",
234
+ icon: "select-field",
235
+ formItemFlag: !0,
236
+ options: {
237
+ name: "",
238
+ label: "select",
239
+ labelAlign: "",
240
+ defaultValue: "",
241
+ submitType: "",
242
+ placeholder: "",
243
+ columnWidth: "200px",
244
+ size: "",
245
+ labelWidth: null,
246
+ labelHidden: !1,
247
+ disabled: !1,
248
+ hidden: !1,
249
+ clearable: !0,
250
+ filterable: !1,
251
+ allowCreate: !1,
252
+ remote: !1,
253
+ automaticDropdown: !1,
254
+ multiple: !1,
255
+ multipleLimit: 0,
256
+ optionItems: [
257
+ {
258
+ label: "select 1",
259
+ value: 1
260
+ },
261
+ {
262
+ label: "select 2",
263
+ value: 2
264
+ },
265
+ {
266
+ label: "select 3",
267
+ value: 3
268
+ }
269
+ ],
270
+ required: !1,
271
+ requiredHint: "",
272
+ validation: "",
273
+ validationHint: "",
274
+ customClass: "",
275
+ labelIconClass: null,
276
+ labelIconPosition: "rear",
277
+ labelTooltip: null,
278
+ onCreated: "",
279
+ onMounted: "",
280
+ onRemoteQuery: "",
281
+ onChange: "",
282
+ onFocus: "",
283
+ onBlur: "",
284
+ onValidate: ""
285
+ },
286
+ id: ""
287
+ }, {
288
+ key: 20006,
289
+ type: "static-title",
290
+ icon: "static-text",
291
+ formItemFlag: !1,
292
+ options: {
293
+ name: "",
294
+ titleLevel: 1,
295
+ columnWidth: "200px",
296
+ hidden: !1,
297
+ textContent: "static text",
298
+ textAlign: "center",
299
+ fontSize: "13px",
300
+ preWrap: !1,
301
+ customClass: "",
302
+ onCreated: "",
303
+ onMounted: "",
304
+ label: "static title"
305
+ },
306
+ id: ""
307
+ }]
308
+ }, {
309
+ name: "高级字段",
310
+ components: [{
311
+ key: 30001,
312
+ type: "picture-upload",
313
+ icon: "picture-upload-field",
314
+ formItemFlag: !0,
315
+ options: {
316
+ name: "",
317
+ label: "picture-upload",
318
+ labelAlign: "",
319
+ defaultBg: "",
320
+ labelWidth: null,
321
+ labelHidden: !1,
322
+ columnWidth: "200px",
323
+ disabled: !1,
324
+ hidden: !1,
325
+ required: !1,
326
+ requiredHint: "",
327
+ customRule: "",
328
+ customRuleHint: "",
329
+ uploadURL: "",
330
+ isShowTip: !1,
331
+ uploadTip: "",
332
+ withCredentials: !1,
333
+ multipleSelect: !1,
334
+ showFileList: !0,
335
+ limit: 3,
336
+ fileMaxSize: 5,
337
+ fileTypes: [
338
+ "jpg",
339
+ "jpeg",
340
+ "png"
341
+ ],
342
+ customClass: "",
343
+ labelIconClass: null,
344
+ labelIconPosition: "rear",
345
+ labelTooltip: null,
346
+ signatureUrl: "",
347
+ // oss signature
348
+ requireMd5: !1,
349
+ queryFileMd5Url: "",
350
+ addFileMd5Url: "",
351
+ onCreated: "",
352
+ onMounted: "",
353
+ onBeforeUpload: "",
354
+ onUploadSuccess: "",
355
+ onUploadError: "",
356
+ onFileRemove: "",
357
+ onValidate: ""
358
+ },
359
+ id: ""
360
+ }]
361
+ }];
362
+ function Gn(e) {
363
+ return e + (Date.parse(/* @__PURE__ */ new Date()) + Math.floor(Math.random() * 9e4 + 1e4));
364
+ }
365
+ function Kn(e) {
366
+ return e.split("-").map((n, r) => r == 0 ? n : n.substr(0, 1).toUpperCase() + n.substr(1)).join("");
367
+ }
368
+ function sl() {
369
+ const e = JSON.parse(JSON.stringify(Yn)), t = mt(e), n = mt({});
370
+ n.value = e.reduce((a, i) => (i.components.map((u) => {
371
+ a[u.key] = u;
372
+ }), a), {});
373
+ const r = (a) => {
374
+ if (!a.options) {
375
+ const i = JSON.parse(JSON.stringify(n.value[a.key]));
376
+ Object.assign(a, i);
377
+ }
378
+ a.id = Gn(a.type), a.options.name = Kn(a.id), a.category == "container" && (a.type == "grid" ? a.cols.forEach((i) => {
379
+ r(i);
380
+ }) : a.type == "grid-col" && a.widgetList.forEach((i) => {
381
+ r(i);
382
+ }));
383
+ };
384
+ return { initComp: r, cloneItem: (a) => {
385
+ const i = JSON.parse(JSON.stringify(a));
386
+ return r(i), i;
387
+ }, allComponents: t, componentsMap: n };
388
+ }
389
+ /*!
390
+ * shared v11.1.2
391
+ * (c) 2025 kazuya kawaguchi
392
+ * Released under the MIT License.
393
+ */
394
+ const oe = typeof window < "u";
395
+ let z, ge;
396
+ if (process.env.NODE_ENV !== "production") {
397
+ const e = oe && window.performance;
398
+ e && e.mark && e.measure && e.clearMarks && // @ts-ignore browser compat
399
+ e.clearMeasures && (z = (t) => {
400
+ e.mark(t);
401
+ }, ge = (t, n, r) => {
402
+ e.measure(t, n, r), e.clearMarks(n), e.clearMarks(r);
403
+ });
404
+ }
405
+ const Bn = /\{([0-9a-zA-Z]+)\}/g;
406
+ function Ke(e, ...t) {
407
+ return t.length === 1 && F(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(Bn, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
408
+ }
409
+ const ie = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Xn = (e, t, n) => jn({ l: e, k: t, s: n }), jn = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), X = (e) => typeof e == "number" && isFinite(e), qn = (e) => yt(e) === "[object Date]", He = (e) => yt(e) === "[object RegExp]", Be = (e) => M(e) && Object.keys(e).length === 0, j = Object.assign, Jn = Object.create, V = (e = null) => Jn(e);
410
+ let xt;
411
+ const Ne = () => xt || (xt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : V());
412
+ function $t(e) {
413
+ return e.replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;");
414
+ }
415
+ const Qn = Object.prototype.hasOwnProperty;
416
+ function ne(e, t) {
417
+ return Qn.call(e, t);
418
+ }
419
+ const B = Array.isArray, W = (e) => typeof e == "function", A = (e) => typeof e == "string", Y = (e) => typeof e == "boolean", F = (e) => e !== null && typeof e == "object", Zn = (e) => F(e) && W(e.then) && W(e.catch), Nn = Object.prototype.toString, yt = (e) => Nn.call(e), M = (e) => yt(e) === "[object Object]", zn = (e) => e == null ? "" : B(e) || M(e) && e.toString === Nn ? JSON.stringify(e, null, 2) : String(e);
420
+ function vt(e, t = "") {
421
+ return e.reduce((n, r, l) => l === 0 ? n + r : n + t + r, "");
422
+ }
423
+ const Ht = 2;
424
+ function er(e, t = 0, n = e.length) {
425
+ const r = e.split(/\r?\n/);
426
+ let l = 0;
427
+ const a = [];
428
+ for (let i = 0; i < r.length; i++)
429
+ if (l += r[i].length + 1, l >= t) {
430
+ for (let u = i - Ht; u <= i + Ht || n > l; u++) {
431
+ if (u < 0 || u >= r.length)
432
+ continue;
433
+ const c = u + 1;
434
+ a.push(`${c}${" ".repeat(3 - String(c).length)}| ${r[u]}`);
435
+ const N = r[u].length;
436
+ if (u === i) {
437
+ const O = t - (l - N) + 1, b = Math.max(1, n > l ? N - O : n - t);
438
+ a.push(" | " + " ".repeat(O) + "^".repeat(b));
439
+ } else if (u > i) {
440
+ if (n > l) {
441
+ const O = Math.max(Math.min(n - l, N), 1);
442
+ a.push(" | " + "^".repeat(O));
443
+ }
444
+ l += N + 1;
445
+ }
446
+ }
447
+ break;
448
+ }
449
+ return a.join(`
450
+ `);
451
+ }
452
+ function fe(e, t) {
453
+ typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
454
+ }
455
+ const Yt = {};
456
+ function tr(e) {
457
+ Yt[e] || (Yt[e] = !0, fe(e));
458
+ }
459
+ function nr() {
460
+ const e = /* @__PURE__ */ new Map();
461
+ return {
462
+ events: e,
463
+ on(n, r) {
464
+ const l = e.get(n);
465
+ l && l.push(r) || e.set(n, [r]);
466
+ },
467
+ off(n, r) {
468
+ const l = e.get(n);
469
+ l && l.splice(l.indexOf(r) >>> 0, 1);
470
+ },
471
+ emit(n, r) {
472
+ (e.get(n) || []).slice().map((l) => l(r)), (e.get("*") || []).slice().map((l) => l(n, r));
473
+ }
474
+ };
475
+ }
476
+ const Ve = (e) => !F(e) || B(e);
477
+ function $e(e, t) {
478
+ if (Ve(e) || Ve(t))
479
+ throw new Error("Invalid value");
480
+ const n = [{ src: e, des: t }];
481
+ for (; n.length; ) {
482
+ const { src: r, des: l } = n.pop();
483
+ Object.keys(r).forEach((a) => {
484
+ a !== "__proto__" && (F(r[a]) && !F(l[a]) && (l[a] = Array.isArray(r[a]) ? [] : V()), Ve(l[a]) || Ve(r[a]) ? l[a] = r[a] : n.push({ src: r[a], des: l[a] }));
485
+ });
486
+ }
487
+ }
488
+ /*!
489
+ * message-compiler v11.1.2
490
+ * (c) 2025 kazuya kawaguchi
491
+ * Released under the MIT License.
492
+ */
493
+ function rr(e, t, n) {
494
+ return { line: e, column: t, offset: n };
495
+ }
496
+ function Et(e, t, n) {
497
+ return { start: e, end: t };
498
+ }
499
+ const D = {
500
+ // tokenizer error codes
501
+ EXPECTED_TOKEN: 1,
502
+ INVALID_TOKEN_IN_PLACEHOLDER: 2,
503
+ UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER: 3,
504
+ UNKNOWN_ESCAPE_SEQUENCE: 4,
505
+ INVALID_UNICODE_ESCAPE_SEQUENCE: 5,
506
+ UNBALANCED_CLOSING_BRACE: 6,
507
+ UNTERMINATED_CLOSING_BRACE: 7,
508
+ EMPTY_PLACEHOLDER: 8,
509
+ NOT_ALLOW_NEST_PLACEHOLDER: 9,
510
+ INVALID_LINKED_FORMAT: 10,
511
+ // parser error codes
512
+ MUST_HAVE_MESSAGES_IN_PLURAL: 11,
513
+ UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
514
+ UNEXPECTED_EMPTY_LINKED_KEY: 13,
515
+ UNEXPECTED_LEXICAL_ANALYSIS: 14,
516
+ // generator error codes
517
+ UNHANDLED_CODEGEN_NODE_TYPE: 15,
518
+ // minifier error codes
519
+ UNHANDLED_MINIFIER_NODE_TYPE: 16
520
+ }, ar = 17, lr = {
521
+ // tokenizer error messages
522
+ [D.EXPECTED_TOKEN]: "Expected token: '{0}'",
523
+ [D.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
524
+ [D.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]: "Unterminated single quote in placeholder",
525
+ [D.UNKNOWN_ESCAPE_SEQUENCE]: "Unknown escape sequence: \\{0}",
526
+ [D.INVALID_UNICODE_ESCAPE_SEQUENCE]: "Invalid unicode escape sequence: {0}",
527
+ [D.UNBALANCED_CLOSING_BRACE]: "Unbalanced closing brace",
528
+ [D.UNTERMINATED_CLOSING_BRACE]: "Unterminated closing brace",
529
+ [D.EMPTY_PLACEHOLDER]: "Empty placeholder",
530
+ [D.NOT_ALLOW_NEST_PLACEHOLDER]: "Not allowed nest placeholder",
531
+ [D.INVALID_LINKED_FORMAT]: "Invalid linked format",
532
+ // parser error messages
533
+ [D.MUST_HAVE_MESSAGES_IN_PLURAL]: "Plural must have messages",
534
+ [D.UNEXPECTED_EMPTY_LINKED_MODIFIER]: "Unexpected empty linked modifier",
535
+ [D.UNEXPECTED_EMPTY_LINKED_KEY]: "Unexpected empty linked key",
536
+ [D.UNEXPECTED_LEXICAL_ANALYSIS]: "Unexpected lexical analysis in token: '{0}'",
537
+ // generator error messages
538
+ [D.UNHANDLED_CODEGEN_NODE_TYPE]: "unhandled codegen node type: '{0}'",
539
+ // minimizer error messages
540
+ [D.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
541
+ };
542
+ function Ae(e, t, n = {}) {
543
+ const { domain: r, messages: l, args: a } = n, i = process.env.NODE_ENV !== "production" ? Ke((l || lr)[e] || "", ...a || []) : e, u = new SyntaxError(String(i));
544
+ return u.code = e, t && (u.location = t), u.domain = r, u;
545
+ }
546
+ function sr(e) {
547
+ throw e;
548
+ }
549
+ const or = /<\/?[\w\s="/.':;#-\/]+>/, ir = (e) => or.test(e), le = " ", cr = "\r", Q = `
550
+ `, ur = "\u2028", fr = "\u2029";
551
+ function _r(e) {
552
+ const t = e;
553
+ let n = 0, r = 1, l = 1, a = 0;
554
+ const i = (p) => t[p] === cr && t[p + 1] === Q, u = (p) => t[p] === Q, c = (p) => t[p] === fr, N = (p) => t[p] === ur, O = (p) => i(p) || u(p) || c(p) || N(p), b = () => n, T = () => r, S = () => l, P = () => a, C = (p) => i(p) || c(p) || N(p) ? Q : t[p], y = () => C(n), f = () => C(n + a);
555
+ function d() {
556
+ return a = 0, O(n) && (r++, l = 0), i(n) && n++, n++, l++, t[n];
557
+ }
558
+ function L() {
559
+ return i(n + a) && a++, a++, t[n + a];
560
+ }
561
+ function m() {
562
+ n = 0, r = 1, l = 1, a = 0;
563
+ }
564
+ function I(p = 0) {
565
+ a = p;
566
+ }
567
+ function h() {
568
+ const p = n + a;
569
+ for (; p !== n; )
570
+ d();
571
+ a = 0;
572
+ }
573
+ return {
574
+ index: b,
575
+ line: T,
576
+ column: S,
577
+ peekOffset: P,
578
+ charAt: C,
579
+ currentChar: y,
580
+ currentPeek: f,
581
+ next: d,
582
+ peek: L,
583
+ reset: m,
584
+ resetPeek: I,
585
+ skipToPeek: h
586
+ };
587
+ }
588
+ const ce = void 0, dr = ".", Gt = "'", mr = "tokenizer";
589
+ function Er(e, t = {}) {
590
+ const n = t.location !== !1, r = _r(e), l = () => r.index(), a = () => rr(r.line(), r.column(), r.index()), i = a(), u = l(), c = {
591
+ currentType: 13,
592
+ offset: u,
593
+ startLoc: i,
594
+ endLoc: i,
595
+ lastType: 13,
596
+ lastOffset: u,
597
+ lastStartLoc: i,
598
+ lastEndLoc: i,
599
+ braceNest: 0,
600
+ inLinked: !1,
601
+ text: ""
602
+ }, N = () => c, { onError: O } = t;
603
+ function b(s, o, E, ...v) {
604
+ const x = N();
605
+ if (o.column += E, o.offset += E, O) {
606
+ const $ = n ? Et(x.startLoc, o) : null, k = Ae(s, $, {
607
+ domain: mr,
608
+ args: v
609
+ });
610
+ O(k);
611
+ }
612
+ }
613
+ function T(s, o, E) {
614
+ s.endLoc = a(), s.currentType = o;
615
+ const v = { type: o };
616
+ return n && (v.loc = Et(s.startLoc, s.endLoc)), E != null && (v.value = E), v;
617
+ }
618
+ const S = (s) => T(
619
+ s,
620
+ 13
621
+ /* TokenTypes.EOF */
622
+ );
623
+ function P(s, o) {
624
+ return s.currentChar() === o ? (s.next(), o) : (b(D.EXPECTED_TOKEN, a(), 0, o), "");
625
+ }
626
+ function C(s) {
627
+ let o = "";
628
+ for (; s.currentPeek() === le || s.currentPeek() === Q; )
629
+ o += s.currentPeek(), s.peek();
630
+ return o;
631
+ }
632
+ function y(s) {
633
+ const o = C(s);
634
+ return s.skipToPeek(), o;
635
+ }
636
+ function f(s) {
637
+ if (s === ce)
638
+ return !1;
639
+ const o = s.charCodeAt(0);
640
+ return o >= 97 && o <= 122 || // a-z
641
+ o >= 65 && o <= 90 || // A-Z
642
+ o === 95;
643
+ }
644
+ function d(s) {
645
+ if (s === ce)
646
+ return !1;
647
+ const o = s.charCodeAt(0);
648
+ return o >= 48 && o <= 57;
649
+ }
650
+ function L(s, o) {
651
+ const { currentType: E } = o;
652
+ if (E !== 2)
653
+ return !1;
654
+ C(s);
655
+ const v = f(s.currentPeek());
656
+ return s.resetPeek(), v;
657
+ }
658
+ function m(s, o) {
659
+ const { currentType: E } = o;
660
+ if (E !== 2)
661
+ return !1;
662
+ C(s);
663
+ const v = s.currentPeek() === "-" ? s.peek() : s.currentPeek(), x = d(v);
664
+ return s.resetPeek(), x;
665
+ }
666
+ function I(s, o) {
667
+ const { currentType: E } = o;
668
+ if (E !== 2)
669
+ return !1;
670
+ C(s);
671
+ const v = s.currentPeek() === Gt;
672
+ return s.resetPeek(), v;
673
+ }
674
+ function h(s, o) {
675
+ const { currentType: E } = o;
676
+ if (E !== 7)
677
+ return !1;
678
+ C(s);
679
+ const v = s.currentPeek() === ".";
680
+ return s.resetPeek(), v;
681
+ }
682
+ function p(s, o) {
683
+ const { currentType: E } = o;
684
+ if (E !== 8)
685
+ return !1;
686
+ C(s);
687
+ const v = f(s.currentPeek());
688
+ return s.resetPeek(), v;
689
+ }
690
+ function R(s, o) {
691
+ const { currentType: E } = o;
692
+ if (!(E === 7 || E === 11))
693
+ return !1;
694
+ C(s);
695
+ const v = s.currentPeek() === ":";
696
+ return s.resetPeek(), v;
697
+ }
698
+ function w(s, o) {
699
+ const { currentType: E } = o;
700
+ if (E !== 9)
701
+ return !1;
702
+ const v = () => {
703
+ const $ = s.currentPeek();
704
+ return $ === "{" ? f(s.peek()) : $ === "@" || $ === "|" || $ === ":" || $ === "." || $ === le || !$ ? !1 : $ === Q ? (s.peek(), v()) : te(s, !1);
705
+ }, x = v();
706
+ return s.resetPeek(), x;
707
+ }
708
+ function G(s) {
709
+ C(s);
710
+ const o = s.currentPeek() === "|";
711
+ return s.resetPeek(), o;
712
+ }
713
+ function te(s, o = !0) {
714
+ const E = (x = !1, $ = "") => {
715
+ const k = s.currentPeek();
716
+ return k === "{" || k === "@" || !k ? x : k === "|" ? !($ === le || $ === Q) : k === le ? (s.peek(), E(!0, le)) : k === Q ? (s.peek(), E(!0, Q)) : !0;
717
+ }, v = E();
718
+ return o && s.resetPeek(), v;
719
+ }
720
+ function K(s, o) {
721
+ const E = s.currentChar();
722
+ return E === ce ? ce : o(E) ? (s.next(), E) : null;
723
+ }
724
+ function Oe(s) {
725
+ const o = s.charCodeAt(0);
726
+ return o >= 97 && o <= 122 || // a-z
727
+ o >= 65 && o <= 90 || // A-Z
728
+ o >= 48 && o <= 57 || // 0-9
729
+ o === 95 || // _
730
+ o === 36;
731
+ }
732
+ function qe(s) {
733
+ return K(s, Oe);
734
+ }
735
+ function Je(s) {
736
+ const o = s.charCodeAt(0);
737
+ return o >= 97 && o <= 122 || // a-z
738
+ o >= 65 && o <= 90 || // A-Z
739
+ o >= 48 && o <= 57 || // 0-9
740
+ o === 95 || // _
741
+ o === 36 || // $
742
+ o === 45;
743
+ }
744
+ function Qe(s) {
745
+ return K(s, Je);
746
+ }
747
+ function Ze(s) {
748
+ const o = s.charCodeAt(0);
749
+ return o >= 48 && o <= 57;
750
+ }
751
+ function ze(s) {
752
+ return K(s, Ze);
753
+ }
754
+ function et(s) {
755
+ const o = s.charCodeAt(0);
756
+ return o >= 48 && o <= 57 || // 0-9
757
+ o >= 65 && o <= 70 || // A-F
758
+ o >= 97 && o <= 102;
759
+ }
760
+ function ae(s) {
761
+ return K(s, et);
762
+ }
763
+ function Ce(s) {
764
+ let o = "", E = "";
765
+ for (; o = ze(s); )
766
+ E += o;
767
+ return E;
768
+ }
769
+ function tt(s) {
770
+ let o = "";
771
+ for (; ; ) {
772
+ const E = s.currentChar();
773
+ if (E === "{" || E === "}" || E === "@" || E === "|" || !E)
774
+ break;
775
+ if (E === le || E === Q)
776
+ if (te(s))
777
+ o += E, s.next();
778
+ else {
779
+ if (G(s))
780
+ break;
781
+ o += E, s.next();
782
+ }
783
+ else
784
+ o += E, s.next();
785
+ }
786
+ return o;
787
+ }
788
+ function nt(s) {
789
+ y(s);
790
+ let o = "", E = "";
791
+ for (; o = Qe(s); )
792
+ E += o;
793
+ return s.currentChar() === ce && b(D.UNTERMINATED_CLOSING_BRACE, a(), 0), E;
794
+ }
795
+ function rt(s) {
796
+ y(s);
797
+ let o = "";
798
+ return s.currentChar() === "-" ? (s.next(), o += `-${Ce(s)}`) : o += Ce(s), s.currentChar() === ce && b(D.UNTERMINATED_CLOSING_BRACE, a(), 0), o;
799
+ }
800
+ function at(s) {
801
+ return s !== Gt && s !== Q;
802
+ }
803
+ function wt(s) {
804
+ y(s), P(s, "'");
805
+ let o = "", E = "";
806
+ for (; o = K(s, at); )
807
+ o === "\\" ? E += lt(s) : E += o;
808
+ const v = s.currentChar();
809
+ return v === Q || v === ce ? (b(D.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), v === Q && (s.next(), P(s, "'")), E) : (P(s, "'"), E);
810
+ }
811
+ function lt(s) {
812
+ const o = s.currentChar();
813
+ switch (o) {
814
+ case "\\":
815
+ case "'":
816
+ return s.next(), `\\${o}`;
817
+ case "u":
818
+ return Ue(s, o, 4);
819
+ case "U":
820
+ return Ue(s, o, 6);
821
+ default:
822
+ return b(D.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, o), "";
823
+ }
824
+ }
825
+ function Ue(s, o, E) {
826
+ P(s, o);
827
+ let v = "";
828
+ for (let x = 0; x < E; x++) {
829
+ const $ = ae(s);
830
+ if (!$) {
831
+ b(D.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${o}${v}${s.currentChar()}`);
832
+ break;
833
+ }
834
+ v += $;
835
+ }
836
+ return `\\${o}${v}`;
837
+ }
838
+ function st(s) {
839
+ return s !== "{" && s !== "}" && s !== le && s !== Q;
840
+ }
841
+ function ot(s) {
842
+ y(s);
843
+ let o = "", E = "";
844
+ for (; o = K(s, st); )
845
+ E += o;
846
+ return E;
847
+ }
848
+ function it(s) {
849
+ let o = "", E = "";
850
+ for (; o = qe(s); )
851
+ E += o;
852
+ return E;
853
+ }
854
+ function ct(s) {
855
+ const o = (E) => {
856
+ const v = s.currentChar();
857
+ return v === "{" || v === "@" || v === "|" || v === "(" || v === ")" || !v || v === le ? E : (E += v, s.next(), o(E));
858
+ };
859
+ return o("");
860
+ }
861
+ function Se(s) {
862
+ y(s);
863
+ const o = P(
864
+ s,
865
+ "|"
866
+ /* TokenChars.Pipe */
867
+ );
868
+ return y(s), o;
869
+ }
870
+ function ye(s, o) {
871
+ let E = null;
872
+ switch (s.currentChar()) {
873
+ case "{":
874
+ return o.braceNest >= 1 && b(D.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), s.next(), E = T(
875
+ o,
876
+ 2,
877
+ "{"
878
+ /* TokenChars.BraceLeft */
879
+ ), y(s), o.braceNest++, E;
880
+ case "}":
881
+ return o.braceNest > 0 && o.currentType === 2 && b(D.EMPTY_PLACEHOLDER, a(), 0), s.next(), E = T(
882
+ o,
883
+ 3,
884
+ "}"
885
+ /* TokenChars.BraceRight */
886
+ ), o.braceNest--, o.braceNest > 0 && y(s), o.inLinked && o.braceNest === 0 && (o.inLinked = !1), E;
887
+ case "@":
888
+ return o.braceNest > 0 && b(D.UNTERMINATED_CLOSING_BRACE, a(), 0), E = me(s, o) || S(o), o.braceNest = 0, E;
889
+ default: {
890
+ let x = !0, $ = !0, k = !0;
891
+ if (G(s))
892
+ return o.braceNest > 0 && b(D.UNTERMINATED_CLOSING_BRACE, a(), 0), E = T(o, 1, Se(s)), o.braceNest = 0, o.inLinked = !1, E;
893
+ if (o.braceNest > 0 && (o.currentType === 4 || o.currentType === 5 || o.currentType === 6))
894
+ return b(D.UNTERMINATED_CLOSING_BRACE, a(), 0), o.braceNest = 0, ve(s, o);
895
+ if (x = L(s, o))
896
+ return E = T(o, 4, nt(s)), y(s), E;
897
+ if ($ = m(s, o))
898
+ return E = T(o, 5, rt(s)), y(s), E;
899
+ if (k = I(s, o))
900
+ return E = T(o, 6, wt(s)), y(s), E;
901
+ if (!x && !$ && !k)
902
+ return E = T(o, 12, ot(s)), b(D.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, E.value), y(s), E;
903
+ break;
904
+ }
905
+ }
906
+ return E;
907
+ }
908
+ function me(s, o) {
909
+ const { currentType: E } = o;
910
+ let v = null;
911
+ const x = s.currentChar();
912
+ switch ((E === 7 || E === 8 || E === 11 || E === 9) && (x === Q || x === le) && b(D.INVALID_LINKED_FORMAT, a(), 0), x) {
913
+ case "@":
914
+ return s.next(), v = T(
915
+ o,
916
+ 7,
917
+ "@"
918
+ /* TokenChars.LinkedAlias */
919
+ ), o.inLinked = !0, v;
920
+ case ".":
921
+ return y(s), s.next(), T(
922
+ o,
923
+ 8,
924
+ "."
925
+ /* TokenChars.LinkedDot */
926
+ );
927
+ case ":":
928
+ return y(s), s.next(), T(
929
+ o,
930
+ 9,
931
+ ":"
932
+ /* TokenChars.LinkedDelimiter */
933
+ );
934
+ default:
935
+ return G(s) ? (v = T(o, 1, Se(s)), o.braceNest = 0, o.inLinked = !1, v) : h(s, o) || R(s, o) ? (y(s), me(s, o)) : p(s, o) ? (y(s), T(o, 11, it(s))) : w(s, o) ? (y(s), x === "{" ? ye(s, o) || v : T(o, 10, ct(s))) : (E === 7 && b(D.INVALID_LINKED_FORMAT, a(), 0), o.braceNest = 0, o.inLinked = !1, ve(s, o));
936
+ }
937
+ }
938
+ function ve(s, o) {
939
+ let E = {
940
+ type: 13
941
+ /* TokenTypes.EOF */
942
+ };
943
+ if (o.braceNest > 0)
944
+ return ye(s, o) || S(o);
945
+ if (o.inLinked)
946
+ return me(s, o) || S(o);
947
+ switch (s.currentChar()) {
948
+ case "{":
949
+ return ye(s, o) || S(o);
950
+ case "}":
951
+ return b(D.UNBALANCED_CLOSING_BRACE, a(), 0), s.next(), T(
952
+ o,
953
+ 3,
954
+ "}"
955
+ /* TokenChars.BraceRight */
956
+ );
957
+ case "@":
958
+ return me(s, o) || S(o);
959
+ default: {
960
+ if (G(s))
961
+ return E = T(o, 1, Se(s)), o.braceNest = 0, o.inLinked = !1, E;
962
+ if (te(s))
963
+ return T(o, 0, tt(s));
964
+ break;
965
+ }
966
+ }
967
+ return E;
968
+ }
969
+ function ut() {
970
+ const { currentType: s, offset: o, startLoc: E, endLoc: v } = c;
971
+ return c.lastType = s, c.lastOffset = o, c.lastStartLoc = E, c.lastEndLoc = v, c.offset = l(), c.startLoc = a(), r.currentChar() === ce ? T(
972
+ c,
973
+ 13
974
+ /* TokenTypes.EOF */
975
+ ) : ve(r, c);
976
+ }
977
+ return {
978
+ nextToken: ut,
979
+ currentOffset: l,
980
+ currentPosition: a,
981
+ context: N
982
+ };
983
+ }
984
+ const pr = "parser", Nr = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
985
+ function gr(e, t, n) {
986
+ switch (e) {
987
+ case "\\\\":
988
+ return "\\";
989
+ // eslint-disable-next-line no-useless-escape
990
+ case "\\'":
991
+ return "'";
992
+ default: {
993
+ const r = parseInt(t || n, 16);
994
+ return r <= 55295 || r >= 57344 ? String.fromCodePoint(r) : "�";
995
+ }
996
+ }
997
+ }
998
+ function Tr(e = {}) {
999
+ const t = e.location !== !1, { onError: n } = e;
1000
+ function r(f, d, L, m, ...I) {
1001
+ const h = f.currentPosition();
1002
+ if (h.offset += m, h.column += m, n) {
1003
+ const p = t ? Et(L, h) : null, R = Ae(d, p, {
1004
+ domain: pr,
1005
+ args: I
1006
+ });
1007
+ n(R);
1008
+ }
1009
+ }
1010
+ function l(f, d, L) {
1011
+ const m = { type: f };
1012
+ return t && (m.start = d, m.end = d, m.loc = { start: L, end: L }), m;
1013
+ }
1014
+ function a(f, d, L, m) {
1015
+ t && (f.end = d, f.loc && (f.loc.end = L));
1016
+ }
1017
+ function i(f, d) {
1018
+ const L = f.context(), m = l(3, L.offset, L.startLoc);
1019
+ return m.value = d, a(m, f.currentOffset(), f.currentPosition()), m;
1020
+ }
1021
+ function u(f, d) {
1022
+ const L = f.context(), { lastOffset: m, lastStartLoc: I } = L, h = l(5, m, I);
1023
+ return h.index = parseInt(d, 10), f.nextToken(), a(h, f.currentOffset(), f.currentPosition()), h;
1024
+ }
1025
+ function c(f, d) {
1026
+ const L = f.context(), { lastOffset: m, lastStartLoc: I } = L, h = l(4, m, I);
1027
+ return h.key = d, f.nextToken(), a(h, f.currentOffset(), f.currentPosition()), h;
1028
+ }
1029
+ function N(f, d) {
1030
+ const L = f.context(), { lastOffset: m, lastStartLoc: I } = L, h = l(9, m, I);
1031
+ return h.value = d.replace(Nr, gr), f.nextToken(), a(h, f.currentOffset(), f.currentPosition()), h;
1032
+ }
1033
+ function O(f) {
1034
+ const d = f.nextToken(), L = f.context(), { lastOffset: m, lastStartLoc: I } = L, h = l(8, m, I);
1035
+ return d.type !== 11 ? (r(f, D.UNEXPECTED_EMPTY_LINKED_MODIFIER, L.lastStartLoc, 0), h.value = "", a(h, m, I), {
1036
+ nextConsumeToken: d,
1037
+ node: h
1038
+ }) : (d.value == null && r(f, D.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, re(d)), h.value = d.value || "", a(h, f.currentOffset(), f.currentPosition()), {
1039
+ node: h
1040
+ });
1041
+ }
1042
+ function b(f, d) {
1043
+ const L = f.context(), m = l(7, L.offset, L.startLoc);
1044
+ return m.value = d, a(m, f.currentOffset(), f.currentPosition()), m;
1045
+ }
1046
+ function T(f) {
1047
+ const d = f.context(), L = l(6, d.offset, d.startLoc);
1048
+ let m = f.nextToken();
1049
+ if (m.type === 8) {
1050
+ const I = O(f);
1051
+ L.modifier = I.node, m = I.nextConsumeToken || f.nextToken();
1052
+ }
1053
+ switch (m.type !== 9 && r(f, D.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, re(m)), m = f.nextToken(), m.type === 2 && (m = f.nextToken()), m.type) {
1054
+ case 10:
1055
+ m.value == null && r(f, D.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, re(m)), L.key = b(f, m.value || "");
1056
+ break;
1057
+ case 4:
1058
+ m.value == null && r(f, D.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, re(m)), L.key = c(f, m.value || "");
1059
+ break;
1060
+ case 5:
1061
+ m.value == null && r(f, D.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, re(m)), L.key = u(f, m.value || "");
1062
+ break;
1063
+ case 6:
1064
+ m.value == null && r(f, D.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, re(m)), L.key = N(f, m.value || "");
1065
+ break;
1066
+ default: {
1067
+ r(f, D.UNEXPECTED_EMPTY_LINKED_KEY, d.lastStartLoc, 0);
1068
+ const I = f.context(), h = l(7, I.offset, I.startLoc);
1069
+ return h.value = "", a(h, I.offset, I.startLoc), L.key = h, a(L, I.offset, I.startLoc), {
1070
+ nextConsumeToken: m,
1071
+ node: L
1072
+ };
1073
+ }
1074
+ }
1075
+ return a(L, f.currentOffset(), f.currentPosition()), {
1076
+ node: L
1077
+ };
1078
+ }
1079
+ function S(f) {
1080
+ const d = f.context(), L = d.currentType === 1 ? f.currentOffset() : d.offset, m = d.currentType === 1 ? d.endLoc : d.startLoc, I = l(2, L, m);
1081
+ I.items = [];
1082
+ let h = null;
1083
+ do {
1084
+ const w = h || f.nextToken();
1085
+ switch (h = null, w.type) {
1086
+ case 0:
1087
+ w.value == null && r(f, D.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, re(w)), I.items.push(i(f, w.value || ""));
1088
+ break;
1089
+ case 5:
1090
+ w.value == null && r(f, D.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, re(w)), I.items.push(u(f, w.value || ""));
1091
+ break;
1092
+ case 4:
1093
+ w.value == null && r(f, D.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, re(w)), I.items.push(c(f, w.value || ""));
1094
+ break;
1095
+ case 6:
1096
+ w.value == null && r(f, D.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, re(w)), I.items.push(N(f, w.value || ""));
1097
+ break;
1098
+ case 7: {
1099
+ const G = T(f);
1100
+ I.items.push(G.node), h = G.nextConsumeToken || null;
1101
+ break;
1102
+ }
1103
+ }
1104
+ } while (d.currentType !== 13 && d.currentType !== 1);
1105
+ const p = d.currentType === 1 ? d.lastOffset : f.currentOffset(), R = d.currentType === 1 ? d.lastEndLoc : f.currentPosition();
1106
+ return a(I, p, R), I;
1107
+ }
1108
+ function P(f, d, L, m) {
1109
+ const I = f.context();
1110
+ let h = m.items.length === 0;
1111
+ const p = l(1, d, L);
1112
+ p.cases = [], p.cases.push(m);
1113
+ do {
1114
+ const R = S(f);
1115
+ h || (h = R.items.length === 0), p.cases.push(R);
1116
+ } while (I.currentType !== 13);
1117
+ return h && r(f, D.MUST_HAVE_MESSAGES_IN_PLURAL, L, 0), a(p, f.currentOffset(), f.currentPosition()), p;
1118
+ }
1119
+ function C(f) {
1120
+ const d = f.context(), { offset: L, startLoc: m } = d, I = S(f);
1121
+ return d.currentType === 13 ? I : P(f, L, m, I);
1122
+ }
1123
+ function y(f) {
1124
+ const d = Er(f, j({}, e)), L = d.context(), m = l(0, L.offset, L.startLoc);
1125
+ return t && m.loc && (m.loc.source = f), m.body = C(d), e.onCacheKey && (m.cacheKey = e.onCacheKey(f)), L.currentType !== 13 && r(d, D.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, f[L.offset] || ""), a(m, d.currentOffset(), d.currentPosition()), m;
1126
+ }
1127
+ return { parse: y };
1128
+ }
1129
+ function re(e) {
1130
+ if (e.type === 13)
1131
+ return "EOF";
1132
+ const t = (e.value || "").replace(/\r?\n/gu, "\\n");
1133
+ return t.length > 10 ? t.slice(0, 9) + "…" : t;
1134
+ }
1135
+ function Lr(e, t = {}) {
1136
+ const n = {
1137
+ ast: e,
1138
+ helpers: /* @__PURE__ */ new Set()
1139
+ };
1140
+ return { context: () => n, helper: (a) => (n.helpers.add(a), a) };
1141
+ }
1142
+ function Kt(e, t) {
1143
+ for (let n = 0; n < e.length; n++)
1144
+ Dt(e[n], t);
1145
+ }
1146
+ function Dt(e, t) {
1147
+ switch (e.type) {
1148
+ case 1:
1149
+ Kt(e.cases, t), t.helper(
1150
+ "plural"
1151
+ /* HelperNameMap.PLURAL */
1152
+ );
1153
+ break;
1154
+ case 2:
1155
+ Kt(e.items, t);
1156
+ break;
1157
+ case 6: {
1158
+ Dt(e.key, t), t.helper(
1159
+ "linked"
1160
+ /* HelperNameMap.LINKED */
1161
+ ), t.helper(
1162
+ "type"
1163
+ /* HelperNameMap.TYPE */
1164
+ );
1165
+ break;
1166
+ }
1167
+ case 5:
1168
+ t.helper(
1169
+ "interpolate"
1170
+ /* HelperNameMap.INTERPOLATE */
1171
+ ), t.helper(
1172
+ "list"
1173
+ /* HelperNameMap.LIST */
1174
+ );
1175
+ break;
1176
+ case 4:
1177
+ t.helper(
1178
+ "interpolate"
1179
+ /* HelperNameMap.INTERPOLATE */
1180
+ ), t.helper(
1181
+ "named"
1182
+ /* HelperNameMap.NAMED */
1183
+ );
1184
+ break;
1185
+ }
1186
+ }
1187
+ function Or(e, t = {}) {
1188
+ const n = Lr(e);
1189
+ n.helper(
1190
+ "normalize"
1191
+ /* HelperNameMap.NORMALIZE */
1192
+ ), e.body && Dt(e.body, n);
1193
+ const r = n.context();
1194
+ e.helpers = Array.from(r.helpers);
1195
+ }
1196
+ function Ir(e) {
1197
+ const t = e.body;
1198
+ return t.type === 2 ? Bt(t) : t.cases.forEach((n) => Bt(n)), e;
1199
+ }
1200
+ function Bt(e) {
1201
+ if (e.items.length === 1) {
1202
+ const t = e.items[0];
1203
+ (t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
1204
+ } else {
1205
+ const t = [];
1206
+ for (let n = 0; n < e.items.length; n++) {
1207
+ const r = e.items[n];
1208
+ if (!(r.type === 3 || r.type === 9) || r.value == null)
1209
+ break;
1210
+ t.push(r.value);
1211
+ }
1212
+ if (t.length === e.items.length) {
1213
+ e.static = vt(t);
1214
+ for (let n = 0; n < e.items.length; n++) {
1215
+ const r = e.items[n];
1216
+ (r.type === 3 || r.type === 9) && delete r.value;
1217
+ }
1218
+ }
1219
+ }
1220
+ }
1221
+ const hr = "minifier";
1222
+ function he(e) {
1223
+ switch (e.t = e.type, e.type) {
1224
+ case 0: {
1225
+ const t = e;
1226
+ he(t.body), t.b = t.body, delete t.body;
1227
+ break;
1228
+ }
1229
+ case 1: {
1230
+ const t = e, n = t.cases;
1231
+ for (let r = 0; r < n.length; r++)
1232
+ he(n[r]);
1233
+ t.c = n, delete t.cases;
1234
+ break;
1235
+ }
1236
+ case 2: {
1237
+ const t = e, n = t.items;
1238
+ for (let r = 0; r < n.length; r++)
1239
+ he(n[r]);
1240
+ t.i = n, delete t.items, t.static && (t.s = t.static, delete t.static);
1241
+ break;
1242
+ }
1243
+ case 3:
1244
+ case 9:
1245
+ case 8:
1246
+ case 7: {
1247
+ const t = e;
1248
+ t.value && (t.v = t.value, delete t.value);
1249
+ break;
1250
+ }
1251
+ case 6: {
1252
+ const t = e;
1253
+ he(t.key), t.k = t.key, delete t.key, t.modifier && (he(t.modifier), t.m = t.modifier, delete t.modifier);
1254
+ break;
1255
+ }
1256
+ case 5: {
1257
+ const t = e;
1258
+ t.i = t.index, delete t.index;
1259
+ break;
1260
+ }
1261
+ case 4: {
1262
+ const t = e;
1263
+ t.k = t.key, delete t.key;
1264
+ break;
1265
+ }
1266
+ default:
1267
+ if (process.env.NODE_ENV !== "production")
1268
+ throw Ae(D.UNHANDLED_MINIFIER_NODE_TYPE, null, {
1269
+ domain: hr,
1270
+ args: [e.type]
1271
+ });
1272
+ }
1273
+ delete e.type;
1274
+ }
1275
+ const br = "parser";
1276
+ function Ar(e, t) {
1277
+ const { filename: n, breakLineCode: r, needIndent: l } = t, a = t.location !== !1, i = {
1278
+ filename: n,
1279
+ code: "",
1280
+ column: 1,
1281
+ line: 1,
1282
+ offset: 0,
1283
+ map: void 0,
1284
+ breakLineCode: r,
1285
+ needIndent: l,
1286
+ indentLevel: 0
1287
+ };
1288
+ a && e.loc && (i.source = e.loc.source);
1289
+ const u = () => i;
1290
+ function c(C, y) {
1291
+ i.code += C;
1292
+ }
1293
+ function N(C, y = !0) {
1294
+ const f = y ? r : "";
1295
+ c(l ? f + " ".repeat(C) : f);
1296
+ }
1297
+ function O(C = !0) {
1298
+ const y = ++i.indentLevel;
1299
+ C && N(y);
1300
+ }
1301
+ function b(C = !0) {
1302
+ const y = --i.indentLevel;
1303
+ C && N(y);
1304
+ }
1305
+ function T() {
1306
+ N(i.indentLevel);
1307
+ }
1308
+ return {
1309
+ context: u,
1310
+ push: c,
1311
+ indent: O,
1312
+ deindent: b,
1313
+ newline: T,
1314
+ helper: (C) => `_${C}`,
1315
+ needIndent: () => i.needIndent
1316
+ };
1317
+ }
1318
+ function Cr(e, t) {
1319
+ const { helper: n } = e;
1320
+ e.push(`${n(
1321
+ "linked"
1322
+ /* HelperNameMap.LINKED */
1323
+ )}(`), be(e, t.key), t.modifier ? (e.push(", "), be(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
1324
+ }
1325
+ function Sr(e, t) {
1326
+ const { helper: n, needIndent: r } = e;
1327
+ e.push(`${n(
1328
+ "normalize"
1329
+ /* HelperNameMap.NORMALIZE */
1330
+ )}([`), e.indent(r());
1331
+ const l = t.items.length;
1332
+ for (let a = 0; a < l && (be(e, t.items[a]), a !== l - 1); a++)
1333
+ e.push(", ");
1334
+ e.deindent(r()), e.push("])");
1335
+ }
1336
+ function yr(e, t) {
1337
+ const { helper: n, needIndent: r } = e;
1338
+ if (t.cases.length > 1) {
1339
+ e.push(`${n(
1340
+ "plural"
1341
+ /* HelperNameMap.PLURAL */
1342
+ )}([`), e.indent(r());
1343
+ const l = t.cases.length;
1344
+ for (let a = 0; a < l && (be(e, t.cases[a]), a !== l - 1); a++)
1345
+ e.push(", ");
1346
+ e.deindent(r()), e.push("])");
1347
+ }
1348
+ }
1349
+ function vr(e, t) {
1350
+ t.body ? be(e, t.body) : e.push("null");
1351
+ }
1352
+ function be(e, t) {
1353
+ const { helper: n } = e;
1354
+ switch (t.type) {
1355
+ case 0:
1356
+ vr(e, t);
1357
+ break;
1358
+ case 1:
1359
+ yr(e, t);
1360
+ break;
1361
+ case 2:
1362
+ Sr(e, t);
1363
+ break;
1364
+ case 6:
1365
+ Cr(e, t);
1366
+ break;
1367
+ case 8:
1368
+ e.push(JSON.stringify(t.value), t);
1369
+ break;
1370
+ case 7:
1371
+ e.push(JSON.stringify(t.value), t);
1372
+ break;
1373
+ case 5:
1374
+ e.push(`${n(
1375
+ "interpolate"
1376
+ /* HelperNameMap.INTERPOLATE */
1377
+ )}(${n(
1378
+ "list"
1379
+ /* HelperNameMap.LIST */
1380
+ )}(${t.index}))`, t);
1381
+ break;
1382
+ case 4:
1383
+ e.push(`${n(
1384
+ "interpolate"
1385
+ /* HelperNameMap.INTERPOLATE */
1386
+ )}(${n(
1387
+ "named"
1388
+ /* HelperNameMap.NAMED */
1389
+ )}(${JSON.stringify(t.key)}))`, t);
1390
+ break;
1391
+ case 9:
1392
+ e.push(JSON.stringify(t.value), t);
1393
+ break;
1394
+ case 3:
1395
+ e.push(JSON.stringify(t.value), t);
1396
+ break;
1397
+ default:
1398
+ if (process.env.NODE_ENV !== "production")
1399
+ throw Ae(D.UNHANDLED_CODEGEN_NODE_TYPE, null, {
1400
+ domain: br,
1401
+ args: [t.type]
1402
+ });
1403
+ }
1404
+ }
1405
+ const Dr = (e, t = {}) => {
1406
+ const n = A(t.mode) ? t.mode : "normal", r = A(t.filename) ? t.filename : "message.intl";
1407
+ t.sourceMap;
1408
+ const l = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
1409
+ `, a = t.needIndent ? t.needIndent : n !== "arrow", i = e.helpers || [], u = Ar(e, {
1410
+ filename: r,
1411
+ breakLineCode: l,
1412
+ needIndent: a
1413
+ });
1414
+ u.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), u.indent(a), i.length > 0 && (u.push(`const { ${vt(i.map((O) => `${O}: _${O}`), ", ")} } = ctx`), u.newline()), u.push("return "), be(u, e), u.deindent(a), u.push("}"), delete e.helpers;
1415
+ const { code: c, map: N } = u.context();
1416
+ return {
1417
+ ast: e,
1418
+ code: c,
1419
+ map: N ? N.toJSON() : void 0
1420
+ // eslint-disable-line @typescript-eslint/no-explicit-any
1421
+ };
1422
+ };
1423
+ function Pr(e, t = {}) {
1424
+ const n = j({}, t), r = !!n.jit, l = !!n.minify, a = n.optimize == null ? !0 : n.optimize, u = Tr(n).parse(e);
1425
+ return r ? (a && Ir(u), l && he(u), { ast: u, code: "" }) : (Or(u, n), Dr(u, n));
1426
+ }
1427
+ /*!
1428
+ * core-base v11.1.2
1429
+ * (c) 2025 kazuya kawaguchi
1430
+ * Released under the MIT License.
1431
+ */
1432
+ function Rr() {
1433
+ typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Ne().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Ne().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
1434
+ }
1435
+ function ft(e) {
1436
+ return (n) => kr(n, e);
1437
+ }
1438
+ function kr(e, t) {
1439
+ const n = Fr(t);
1440
+ if (n == null)
1441
+ throw Re(
1442
+ 0
1443
+ /* NodeTypes.Resource */
1444
+ );
1445
+ if (Pt(n) === 1) {
1446
+ const a = wr(n);
1447
+ return e.plural(a.reduce((i, u) => [
1448
+ ...i,
1449
+ Xt(e, u)
1450
+ ], []));
1451
+ } else
1452
+ return Xt(e, n);
1453
+ }
1454
+ const Mr = ["b", "body"];
1455
+ function Fr(e) {
1456
+ return _e(e, Mr);
1457
+ }
1458
+ const Ur = ["c", "cases"];
1459
+ function wr(e) {
1460
+ return _e(e, Ur, []);
1461
+ }
1462
+ function Xt(e, t) {
1463
+ const n = Wr(t);
1464
+ if (n != null)
1465
+ return e.type === "text" ? n : e.normalize([n]);
1466
+ {
1467
+ const r = $r(t).reduce((l, a) => [...l, pt(e, a)], []);
1468
+ return e.normalize(r);
1469
+ }
1470
+ }
1471
+ const Vr = ["s", "static"];
1472
+ function Wr(e) {
1473
+ return _e(e, Vr);
1474
+ }
1475
+ const xr = ["i", "items"];
1476
+ function $r(e) {
1477
+ return _e(e, xr, []);
1478
+ }
1479
+ function pt(e, t) {
1480
+ const n = Pt(t);
1481
+ switch (n) {
1482
+ case 3:
1483
+ return We(t, n);
1484
+ case 9:
1485
+ return We(t, n);
1486
+ case 4: {
1487
+ const r = t;
1488
+ if (ne(r, "k") && r.k)
1489
+ return e.interpolate(e.named(r.k));
1490
+ if (ne(r, "key") && r.key)
1491
+ return e.interpolate(e.named(r.key));
1492
+ throw Re(n);
1493
+ }
1494
+ case 5: {
1495
+ const r = t;
1496
+ if (ne(r, "i") && X(r.i))
1497
+ return e.interpolate(e.list(r.i));
1498
+ if (ne(r, "index") && X(r.index))
1499
+ return e.interpolate(e.list(r.index));
1500
+ throw Re(n);
1501
+ }
1502
+ case 6: {
1503
+ const r = t, l = Kr(r), a = Xr(r);
1504
+ return e.linked(pt(e, a), l ? pt(e, l) : void 0, e.type);
1505
+ }
1506
+ case 7:
1507
+ return We(t, n);
1508
+ case 8:
1509
+ return We(t, n);
1510
+ default:
1511
+ throw new Error(`unhandled node on format message part: ${n}`);
1512
+ }
1513
+ }
1514
+ const Hr = ["t", "type"];
1515
+ function Pt(e) {
1516
+ return _e(e, Hr);
1517
+ }
1518
+ const Yr = ["v", "value"];
1519
+ function We(e, t) {
1520
+ const n = _e(e, Yr);
1521
+ if (n)
1522
+ return n;
1523
+ throw Re(t);
1524
+ }
1525
+ const Gr = ["m", "modifier"];
1526
+ function Kr(e) {
1527
+ return _e(e, Gr);
1528
+ }
1529
+ const Br = ["k", "key"];
1530
+ function Xr(e) {
1531
+ const t = _e(e, Br);
1532
+ if (t)
1533
+ return t;
1534
+ throw Re(
1535
+ 6
1536
+ /* NodeTypes.Linked */
1537
+ );
1538
+ }
1539
+ function _e(e, t, n) {
1540
+ for (let r = 0; r < t.length; r++) {
1541
+ const l = t[r];
1542
+ if (ne(e, l) && e[l] != null)
1543
+ return e[l];
1544
+ }
1545
+ return n;
1546
+ }
1547
+ function Re(e) {
1548
+ return new Error(`unhandled node type: ${e}`);
1549
+ }
1550
+ const jr = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
1551
+ function qr(e, t) {
1552
+ t && ir(e) && fe(Ke(jr, { source: e }));
1553
+ }
1554
+ const Jr = (e) => e;
1555
+ let xe = V();
1556
+ function Te(e) {
1557
+ return F(e) && Pt(e) === 0 && (ne(e, "b") || ne(e, "body"));
1558
+ }
1559
+ function Qr(e, t = {}) {
1560
+ let n = !1;
1561
+ const r = t.onError || sr;
1562
+ return t.onError = (l) => {
1563
+ n = !0, r(l);
1564
+ }, { ...Pr(e, t), detectError: n };
1565
+ }
1566
+ // @__NO_SIDE_EFFECTS__
1567
+ function Zr(e, t) {
1568
+ if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && A(e)) {
1569
+ const n = Y(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
1570
+ process.env.NODE_ENV !== "production" && qr(e, n);
1571
+ const l = (t.onCacheKey || Jr)(e), a = xe[l];
1572
+ if (a)
1573
+ return a;
1574
+ const { ast: i, detectError: u } = Qr(e, {
1575
+ ...t,
1576
+ location: process.env.NODE_ENV !== "production",
1577
+ jit: !0
1578
+ }), c = ft(i);
1579
+ return u ? c : xe[l] = c;
1580
+ } else {
1581
+ if (process.env.NODE_ENV !== "production" && !Te(e))
1582
+ return fe(`the message that is resolve with key '${t.key}' is not supported for jit compilation`), () => e;
1583
+ const n = e.cacheKey;
1584
+ if (n) {
1585
+ const r = xe[n];
1586
+ return r || (xe[n] = ft(e));
1587
+ } else
1588
+ return ft(e);
1589
+ }
1590
+ }
1591
+ let ke = null;
1592
+ function zr(e) {
1593
+ ke = e;
1594
+ }
1595
+ function ea(e, t, n) {
1596
+ ke && ke.emit("i18n:init", {
1597
+ timestamp: Date.now(),
1598
+ i18n: e,
1599
+ version: t,
1600
+ meta: n
1601
+ });
1602
+ }
1603
+ const ta = /* @__PURE__ */ na("function:translate");
1604
+ function na(e) {
1605
+ return (t) => ke && ke.emit(e, t);
1606
+ }
1607
+ const J = {
1608
+ INVALID_ARGUMENT: ar,
1609
+ // 17
1610
+ INVALID_DATE_ARGUMENT: 18,
1611
+ INVALID_ISO_DATE_ARGUMENT: 19,
1612
+ NOT_SUPPORT_NON_STRING_MESSAGE: 20,
1613
+ NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
1614
+ NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
1615
+ NOT_SUPPORT_LOCALE_TYPE: 23
1616
+ }, ra = 24;
1617
+ function se(e) {
1618
+ return Ae(e, null, process.env.NODE_ENV !== "production" ? { messages: aa } : void 0);
1619
+ }
1620
+ const aa = {
1621
+ [J.INVALID_ARGUMENT]: "Invalid arguments",
1622
+ [J.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
1623
+ [J.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
1624
+ [J.NOT_SUPPORT_NON_STRING_MESSAGE]: "Not support non-string message",
1625
+ [J.NOT_SUPPORT_LOCALE_PROMISE_VALUE]: "cannot support promise value",
1626
+ [J.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: "cannot support async function",
1627
+ [J.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
1628
+ };
1629
+ function Rt(e, t) {
1630
+ return t.locale != null ? jt(t.locale) : jt(e.locale);
1631
+ }
1632
+ let _t;
1633
+ function jt(e) {
1634
+ if (A(e))
1635
+ return e;
1636
+ if (W(e)) {
1637
+ if (e.resolvedOnce && _t != null)
1638
+ return _t;
1639
+ if (e.constructor.name === "Function") {
1640
+ const t = e();
1641
+ if (Zn(t))
1642
+ throw se(J.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
1643
+ return _t = t;
1644
+ } else
1645
+ throw se(J.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
1646
+ } else
1647
+ throw se(J.NOT_SUPPORT_LOCALE_TYPE);
1648
+ }
1649
+ function la(e, t, n) {
1650
+ return [.../* @__PURE__ */ new Set([
1651
+ n,
1652
+ ...B(t) ? t : F(t) ? Object.keys(t) : A(t) ? [t] : [n]
1653
+ ])];
1654
+ }
1655
+ function gn(e, t, n) {
1656
+ const r = A(n) ? n : Ye, l = e;
1657
+ l.__localeChainCache || (l.__localeChainCache = /* @__PURE__ */ new Map());
1658
+ let a = l.__localeChainCache.get(r);
1659
+ if (!a) {
1660
+ a = [];
1661
+ let i = [n];
1662
+ for (; B(i); )
1663
+ i = qt(a, i, t);
1664
+ const u = B(t) || !M(t) ? t : t.default ? t.default : null;
1665
+ i = A(u) ? [u] : u, B(i) && qt(a, i, !1), l.__localeChainCache.set(r, a);
1666
+ }
1667
+ return a;
1668
+ }
1669
+ function qt(e, t, n) {
1670
+ let r = !0;
1671
+ for (let l = 0; l < t.length && Y(r); l++) {
1672
+ const a = t[l];
1673
+ A(a) && (r = sa(e, t[l], n));
1674
+ }
1675
+ return r;
1676
+ }
1677
+ function sa(e, t, n) {
1678
+ let r;
1679
+ const l = t.split("-");
1680
+ do {
1681
+ const a = l.join("-");
1682
+ r = oa(e, a, n), l.splice(-1, 1);
1683
+ } while (l.length && r === !0);
1684
+ return r;
1685
+ }
1686
+ function oa(e, t, n) {
1687
+ let r = !1;
1688
+ if (!e.includes(t) && (r = !0, t)) {
1689
+ r = t[t.length - 1] !== "!";
1690
+ const l = t.replace(/!/g, "");
1691
+ e.push(l), (B(n) || M(n)) && n[l] && (r = n[l]);
1692
+ }
1693
+ return r;
1694
+ }
1695
+ const de = [];
1696
+ de[
1697
+ 0
1698
+ /* States.BEFORE_PATH */
1699
+ ] = {
1700
+ w: [
1701
+ 0
1702
+ /* States.BEFORE_PATH */
1703
+ ],
1704
+ i: [
1705
+ 3,
1706
+ 0
1707
+ /* Actions.APPEND */
1708
+ ],
1709
+ "[": [
1710
+ 4
1711
+ /* States.IN_SUB_PATH */
1712
+ ],
1713
+ o: [
1714
+ 7
1715
+ /* States.AFTER_PATH */
1716
+ ]
1717
+ };
1718
+ de[
1719
+ 1
1720
+ /* States.IN_PATH */
1721
+ ] = {
1722
+ w: [
1723
+ 1
1724
+ /* States.IN_PATH */
1725
+ ],
1726
+ ".": [
1727
+ 2
1728
+ /* States.BEFORE_IDENT */
1729
+ ],
1730
+ "[": [
1731
+ 4
1732
+ /* States.IN_SUB_PATH */
1733
+ ],
1734
+ o: [
1735
+ 7
1736
+ /* States.AFTER_PATH */
1737
+ ]
1738
+ };
1739
+ de[
1740
+ 2
1741
+ /* States.BEFORE_IDENT */
1742
+ ] = {
1743
+ w: [
1744
+ 2
1745
+ /* States.BEFORE_IDENT */
1746
+ ],
1747
+ i: [
1748
+ 3,
1749
+ 0
1750
+ /* Actions.APPEND */
1751
+ ],
1752
+ 0: [
1753
+ 3,
1754
+ 0
1755
+ /* Actions.APPEND */
1756
+ ]
1757
+ };
1758
+ de[
1759
+ 3
1760
+ /* States.IN_IDENT */
1761
+ ] = {
1762
+ i: [
1763
+ 3,
1764
+ 0
1765
+ /* Actions.APPEND */
1766
+ ],
1767
+ 0: [
1768
+ 3,
1769
+ 0
1770
+ /* Actions.APPEND */
1771
+ ],
1772
+ w: [
1773
+ 1,
1774
+ 1
1775
+ /* Actions.PUSH */
1776
+ ],
1777
+ ".": [
1778
+ 2,
1779
+ 1
1780
+ /* Actions.PUSH */
1781
+ ],
1782
+ "[": [
1783
+ 4,
1784
+ 1
1785
+ /* Actions.PUSH */
1786
+ ],
1787
+ o: [
1788
+ 7,
1789
+ 1
1790
+ /* Actions.PUSH */
1791
+ ]
1792
+ };
1793
+ de[
1794
+ 4
1795
+ /* States.IN_SUB_PATH */
1796
+ ] = {
1797
+ "'": [
1798
+ 5,
1799
+ 0
1800
+ /* Actions.APPEND */
1801
+ ],
1802
+ '"': [
1803
+ 6,
1804
+ 0
1805
+ /* Actions.APPEND */
1806
+ ],
1807
+ "[": [
1808
+ 4,
1809
+ 2
1810
+ /* Actions.INC_SUB_PATH_DEPTH */
1811
+ ],
1812
+ "]": [
1813
+ 1,
1814
+ 3
1815
+ /* Actions.PUSH_SUB_PATH */
1816
+ ],
1817
+ o: 8,
1818
+ l: [
1819
+ 4,
1820
+ 0
1821
+ /* Actions.APPEND */
1822
+ ]
1823
+ };
1824
+ de[
1825
+ 5
1826
+ /* States.IN_SINGLE_QUOTE */
1827
+ ] = {
1828
+ "'": [
1829
+ 4,
1830
+ 0
1831
+ /* Actions.APPEND */
1832
+ ],
1833
+ o: 8,
1834
+ l: [
1835
+ 5,
1836
+ 0
1837
+ /* Actions.APPEND */
1838
+ ]
1839
+ };
1840
+ de[
1841
+ 6
1842
+ /* States.IN_DOUBLE_QUOTE */
1843
+ ] = {
1844
+ '"': [
1845
+ 4,
1846
+ 0
1847
+ /* Actions.APPEND */
1848
+ ],
1849
+ o: 8,
1850
+ l: [
1851
+ 6,
1852
+ 0
1853
+ /* Actions.APPEND */
1854
+ ]
1855
+ };
1856
+ const ia = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
1857
+ function ca(e) {
1858
+ return ia.test(e);
1859
+ }
1860
+ function ua(e) {
1861
+ const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
1862
+ return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
1863
+ }
1864
+ function fa(e) {
1865
+ if (e == null)
1866
+ return "o";
1867
+ switch (e.charCodeAt(0)) {
1868
+ case 91:
1869
+ // [
1870
+ case 93:
1871
+ // ]
1872
+ case 46:
1873
+ // .
1874
+ case 34:
1875
+ // "
1876
+ case 39:
1877
+ return e;
1878
+ case 95:
1879
+ // _
1880
+ case 36:
1881
+ // $
1882
+ case 45:
1883
+ return "i";
1884
+ case 9:
1885
+ // Tab (HT)
1886
+ case 10:
1887
+ // Newline (LF)
1888
+ case 13:
1889
+ // Return (CR)
1890
+ case 160:
1891
+ // No-break space (NBSP)
1892
+ case 65279:
1893
+ // Byte Order Mark (BOM)
1894
+ case 8232:
1895
+ // Line Separator (LS)
1896
+ case 8233:
1897
+ return "w";
1898
+ }
1899
+ return "i";
1900
+ }
1901
+ function _a(e) {
1902
+ const t = e.trim();
1903
+ return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : ca(t) ? ua(t) : "*" + t;
1904
+ }
1905
+ function da(e) {
1906
+ const t = [];
1907
+ let n = -1, r = 0, l = 0, a, i, u, c, N, O, b;
1908
+ const T = [];
1909
+ T[
1910
+ 0
1911
+ /* Actions.APPEND */
1912
+ ] = () => {
1913
+ i === void 0 ? i = u : i += u;
1914
+ }, T[
1915
+ 1
1916
+ /* Actions.PUSH */
1917
+ ] = () => {
1918
+ i !== void 0 && (t.push(i), i = void 0);
1919
+ }, T[
1920
+ 2
1921
+ /* Actions.INC_SUB_PATH_DEPTH */
1922
+ ] = () => {
1923
+ T[
1924
+ 0
1925
+ /* Actions.APPEND */
1926
+ ](), l++;
1927
+ }, T[
1928
+ 3
1929
+ /* Actions.PUSH_SUB_PATH */
1930
+ ] = () => {
1931
+ if (l > 0)
1932
+ l--, r = 4, T[
1933
+ 0
1934
+ /* Actions.APPEND */
1935
+ ]();
1936
+ else {
1937
+ if (l = 0, i === void 0 || (i = _a(i), i === !1))
1938
+ return !1;
1939
+ T[
1940
+ 1
1941
+ /* Actions.PUSH */
1942
+ ]();
1943
+ }
1944
+ };
1945
+ function S() {
1946
+ const P = e[n + 1];
1947
+ if (r === 5 && P === "'" || r === 6 && P === '"')
1948
+ return n++, u = "\\" + P, T[
1949
+ 0
1950
+ /* Actions.APPEND */
1951
+ ](), !0;
1952
+ }
1953
+ for (; r !== null; )
1954
+ if (n++, a = e[n], !(a === "\\" && S())) {
1955
+ if (c = fa(a), b = de[r], N = b[c] || b.l || 8, N === 8 || (r = N[0], N[1] !== void 0 && (O = T[N[1]], O && (u = a, O() === !1))))
1956
+ return;
1957
+ if (r === 7)
1958
+ return t;
1959
+ }
1960
+ }
1961
+ const Jt = /* @__PURE__ */ new Map();
1962
+ function ma(e, t) {
1963
+ return F(e) ? e[t] : null;
1964
+ }
1965
+ function Ea(e, t) {
1966
+ if (!F(e))
1967
+ return null;
1968
+ let n = Jt.get(t);
1969
+ if (n || (n = da(t), n && Jt.set(t, n)), !n)
1970
+ return null;
1971
+ const r = n.length;
1972
+ let l = e, a = 0;
1973
+ for (; a < r; ) {
1974
+ const i = l[n[a]];
1975
+ if (i === void 0 || W(l))
1976
+ return null;
1977
+ l = i, a++;
1978
+ }
1979
+ return l;
1980
+ }
1981
+ const Z = {
1982
+ NOT_FOUND_KEY: 1,
1983
+ FALLBACK_TO_TRANSLATE: 2,
1984
+ CANNOT_FORMAT_NUMBER: 3,
1985
+ FALLBACK_TO_NUMBER_FORMAT: 4,
1986
+ CANNOT_FORMAT_DATE: 5,
1987
+ FALLBACK_TO_DATE_FORMAT: 6,
1988
+ EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7
1989
+ }, pa = 8, Na = {
1990
+ [Z.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
1991
+ [Z.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
1992
+ [Z.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
1993
+ [Z.FALLBACK_TO_NUMBER_FORMAT]: "Fall back to number format '{key}' key with '{target}' locale.",
1994
+ [Z.CANNOT_FORMAT_DATE]: "Cannot format a date value due to not supported Intl.DateTimeFormat.",
1995
+ [Z.FALLBACK_TO_DATE_FORMAT]: "Fall back to datetime format '{key}' key with '{target}' locale.",
1996
+ [Z.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]: "This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."
1997
+ };
1998
+ function Le(e, ...t) {
1999
+ return Ke(Na[e], ...t);
2000
+ }
2001
+ const ga = "11.1.2", Xe = -1, Ye = "en-US", Ge = "", Qt = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
2002
+ function Ta() {
2003
+ return {
2004
+ upper: (e, t) => t === "text" && A(e) ? e.toUpperCase() : t === "vnode" && F(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
2005
+ lower: (e, t) => t === "text" && A(e) ? e.toLowerCase() : t === "vnode" && F(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
2006
+ capitalize: (e, t) => t === "text" && A(e) ? Qt(e) : t === "vnode" && F(e) && "__v_isVNode" in e ? Qt(e.children) : e
2007
+ };
2008
+ }
2009
+ let Tn;
2010
+ function La(e) {
2011
+ Tn = e;
2012
+ }
2013
+ let Ln;
2014
+ function Oa(e) {
2015
+ Ln = e;
2016
+ }
2017
+ let On;
2018
+ function Ia(e) {
2019
+ On = e;
2020
+ }
2021
+ let In = null;
2022
+ const ha = /* @__NO_SIDE_EFFECTS__ */ (e) => {
2023
+ In = e;
2024
+ }, ba = /* @__NO_SIDE_EFFECTS__ */ () => In;
2025
+ let hn = null;
2026
+ const Zt = (e) => {
2027
+ hn = e;
2028
+ }, Aa = () => hn;
2029
+ let zt = 0;
2030
+ function Ca(e = {}) {
2031
+ const t = W(e.onWarn) ? e.onWarn : fe, n = A(e.version) ? e.version : ga, r = A(e.locale) || W(e.locale) ? e.locale : Ye, l = W(r) ? Ye : r, a = B(e.fallbackLocale) || M(e.fallbackLocale) || A(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l, i = M(e.messages) ? e.messages : dt(l), u = M(e.datetimeFormats) ? e.datetimeFormats : dt(l), c = M(e.numberFormats) ? e.numberFormats : dt(l), N = j(V(), e.modifiers, Ta()), O = e.pluralRules || V(), b = W(e.missing) ? e.missing : null, T = Y(e.missingWarn) || He(e.missingWarn) ? e.missingWarn : !0, S = Y(e.fallbackWarn) || He(e.fallbackWarn) ? e.fallbackWarn : !0, P = !!e.fallbackFormat, C = !!e.unresolving, y = W(e.postTranslation) ? e.postTranslation : null, f = M(e.processor) ? e.processor : null, d = Y(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, L = !!e.escapeParameter, m = W(e.messageCompiler) ? e.messageCompiler : Tn;
2032
+ process.env.NODE_ENV !== "production" && W(e.messageCompiler) && tr(Le(Z.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
2033
+ const I = W(e.messageResolver) ? e.messageResolver : Ln || ma, h = W(e.localeFallbacker) ? e.localeFallbacker : On || la, p = F(e.fallbackContext) ? e.fallbackContext : void 0, R = e, w = F(R.__datetimeFormatters) ? R.__datetimeFormatters : /* @__PURE__ */ new Map(), G = F(R.__numberFormatters) ? R.__numberFormatters : /* @__PURE__ */ new Map(), te = F(R.__meta) ? R.__meta : {};
2034
+ zt++;
2035
+ const K = {
2036
+ version: n,
2037
+ cid: zt,
2038
+ locale: r,
2039
+ fallbackLocale: a,
2040
+ messages: i,
2041
+ modifiers: N,
2042
+ pluralRules: O,
2043
+ missing: b,
2044
+ missingWarn: T,
2045
+ fallbackWarn: S,
2046
+ fallbackFormat: P,
2047
+ unresolving: C,
2048
+ postTranslation: y,
2049
+ processor: f,
2050
+ warnHtmlMessage: d,
2051
+ escapeParameter: L,
2052
+ messageCompiler: m,
2053
+ messageResolver: I,
2054
+ localeFallbacker: h,
2055
+ fallbackContext: p,
2056
+ onWarn: t,
2057
+ __meta: te
2058
+ };
2059
+ return K.datetimeFormats = u, K.numberFormats = c, K.__datetimeFormatters = w, K.__numberFormatters = G, process.env.NODE_ENV !== "production" && (K.__v_emitter = R.__v_emitter != null ? R.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && ea(K, n, te), K;
2060
+ }
2061
+ const dt = (e) => ({ [e]: V() });
2062
+ function je(e, t) {
2063
+ return e instanceof RegExp ? e.test(t) : e;
2064
+ }
2065
+ function bn(e, t) {
2066
+ return e instanceof RegExp ? e.test(t) : e;
2067
+ }
2068
+ function kt(e, t, n, r, l) {
2069
+ const { missing: a, onWarn: i } = e;
2070
+ if (process.env.NODE_ENV !== "production") {
2071
+ const u = e.__v_emitter;
2072
+ u && u.emit("missing", {
2073
+ locale: n,
2074
+ key: t,
2075
+ type: l,
2076
+ groupId: `${l}:${t}`
2077
+ });
2078
+ }
2079
+ if (a !== null) {
2080
+ const u = a(e, n, t, l);
2081
+ return A(u) ? u : t;
2082
+ } else
2083
+ return process.env.NODE_ENV !== "production" && bn(r, t) && i(Le(Z.NOT_FOUND_KEY, { key: t, locale: n })), t;
2084
+ }
2085
+ function Pe(e, t, n) {
2086
+ const r = e;
2087
+ r.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
2088
+ }
2089
+ function An(e, t) {
2090
+ return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
2091
+ }
2092
+ function Sa(e, t) {
2093
+ const n = t.indexOf(e);
2094
+ if (n === -1)
2095
+ return !1;
2096
+ for (let r = n + 1; r < t.length; r++)
2097
+ if (An(e, t[r]))
2098
+ return !0;
2099
+ return !1;
2100
+ }
2101
+ const en = typeof Intl < "u", Cn = {
2102
+ dateTimeFormat: en && typeof Intl.DateTimeFormat < "u",
2103
+ numberFormat: en && typeof Intl.NumberFormat < "u"
2104
+ };
2105
+ function tn(e, ...t) {
2106
+ const { datetimeFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker: i } = e, { __datetimeFormatters: u } = e;
2107
+ if (process.env.NODE_ENV !== "production" && !Cn.dateTimeFormat)
2108
+ return a(Le(Z.CANNOT_FORMAT_DATE)), Ge;
2109
+ const [c, N, O, b] = Nt(...t), T = Y(O.missingWarn) ? O.missingWarn : e.missingWarn, S = Y(O.fallbackWarn) ? O.fallbackWarn : e.fallbackWarn, P = !!O.part, C = Rt(e, O), y = i(
2110
+ e,
2111
+ // eslint-disable-line @typescript-eslint/no-explicit-any
2112
+ l,
2113
+ C
2114
+ );
2115
+ if (!A(c) || c === "")
2116
+ return new Intl.DateTimeFormat(C, b).format(N);
2117
+ let f = {}, d, L = null, m = C, I = null;
2118
+ const h = "datetime format";
2119
+ for (let w = 0; w < y.length; w++) {
2120
+ if (d = I = y[w], process.env.NODE_ENV !== "production" && C !== d && je(S, c) && a(Le(Z.FALLBACK_TO_DATE_FORMAT, {
2121
+ key: c,
2122
+ target: d
2123
+ })), process.env.NODE_ENV !== "production" && C !== d) {
2124
+ const G = e.__v_emitter;
2125
+ G && G.emit("fallback", {
2126
+ type: h,
2127
+ key: c,
2128
+ from: m,
2129
+ to: I,
2130
+ groupId: `${h}:${c}`
2131
+ });
2132
+ }
2133
+ if (f = n[d] || {}, L = f[c], M(L))
2134
+ break;
2135
+ kt(e, c, d, T, h), m = I;
2136
+ }
2137
+ if (!M(L) || !A(d))
2138
+ return r ? Xe : c;
2139
+ let p = `${d}__${c}`;
2140
+ Be(b) || (p = `${p}__${JSON.stringify(b)}`);
2141
+ let R = u.get(p);
2142
+ return R || (R = new Intl.DateTimeFormat(d, j({}, L, b)), u.set(p, R)), P ? R.formatToParts(N) : R.format(N);
2143
+ }
2144
+ const Sn = [
2145
+ "localeMatcher",
2146
+ "weekday",
2147
+ "era",
2148
+ "year",
2149
+ "month",
2150
+ "day",
2151
+ "hour",
2152
+ "minute",
2153
+ "second",
2154
+ "timeZoneName",
2155
+ "formatMatcher",
2156
+ "hour12",
2157
+ "timeZone",
2158
+ "dateStyle",
2159
+ "timeStyle",
2160
+ "calendar",
2161
+ "dayPeriod",
2162
+ "numberingSystem",
2163
+ "hourCycle",
2164
+ "fractionalSecondDigits"
2165
+ ];
2166
+ function Nt(...e) {
2167
+ const [t, n, r, l] = e, a = V();
2168
+ let i = V(), u;
2169
+ if (A(t)) {
2170
+ const c = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
2171
+ if (!c)
2172
+ throw se(J.INVALID_ISO_DATE_ARGUMENT);
2173
+ const N = c[3] ? c[3].trim().startsWith("T") ? `${c[1].trim()}${c[3].trim()}` : `${c[1].trim()}T${c[3].trim()}` : c[1].trim();
2174
+ u = new Date(N);
2175
+ try {
2176
+ u.toISOString();
2177
+ } catch {
2178
+ throw se(J.INVALID_ISO_DATE_ARGUMENT);
2179
+ }
2180
+ } else if (qn(t)) {
2181
+ if (isNaN(t.getTime()))
2182
+ throw se(J.INVALID_DATE_ARGUMENT);
2183
+ u = t;
2184
+ } else if (X(t))
2185
+ u = t;
2186
+ else
2187
+ throw se(J.INVALID_ARGUMENT);
2188
+ return A(n) ? a.key = n : M(n) && Object.keys(n).forEach((c) => {
2189
+ Sn.includes(c) ? i[c] = n[c] : a[c] = n[c];
2190
+ }), A(r) ? a.locale = r : M(r) && (i = r), M(l) && (i = l), [a.key || "", u, a, i];
2191
+ }
2192
+ function nn(e, t, n) {
2193
+ const r = e;
2194
+ for (const l in n) {
2195
+ const a = `${t}__${l}`;
2196
+ r.__datetimeFormatters.has(a) && r.__datetimeFormatters.delete(a);
2197
+ }
2198
+ }
2199
+ function rn(e, ...t) {
2200
+ const { numberFormats: n, unresolving: r, fallbackLocale: l, onWarn: a, localeFallbacker: i } = e, { __numberFormatters: u } = e;
2201
+ if (process.env.NODE_ENV !== "production" && !Cn.numberFormat)
2202
+ return a(Le(Z.CANNOT_FORMAT_NUMBER)), Ge;
2203
+ const [c, N, O, b] = gt(...t), T = Y(O.missingWarn) ? O.missingWarn : e.missingWarn, S = Y(O.fallbackWarn) ? O.fallbackWarn : e.fallbackWarn, P = !!O.part, C = Rt(e, O), y = i(
2204
+ e,
2205
+ // eslint-disable-line @typescript-eslint/no-explicit-any
2206
+ l,
2207
+ C
2208
+ );
2209
+ if (!A(c) || c === "")
2210
+ return new Intl.NumberFormat(C, b).format(N);
2211
+ let f = {}, d, L = null, m = C, I = null;
2212
+ const h = "number format";
2213
+ for (let w = 0; w < y.length; w++) {
2214
+ if (d = I = y[w], process.env.NODE_ENV !== "production" && C !== d && je(S, c) && a(Le(Z.FALLBACK_TO_NUMBER_FORMAT, {
2215
+ key: c,
2216
+ target: d
2217
+ })), process.env.NODE_ENV !== "production" && C !== d) {
2218
+ const G = e.__v_emitter;
2219
+ G && G.emit("fallback", {
2220
+ type: h,
2221
+ key: c,
2222
+ from: m,
2223
+ to: I,
2224
+ groupId: `${h}:${c}`
2225
+ });
2226
+ }
2227
+ if (f = n[d] || {}, L = f[c], M(L))
2228
+ break;
2229
+ kt(e, c, d, T, h), m = I;
2230
+ }
2231
+ if (!M(L) || !A(d))
2232
+ return r ? Xe : c;
2233
+ let p = `${d}__${c}`;
2234
+ Be(b) || (p = `${p}__${JSON.stringify(b)}`);
2235
+ let R = u.get(p);
2236
+ return R || (R = new Intl.NumberFormat(d, j({}, L, b)), u.set(p, R)), P ? R.formatToParts(N) : R.format(N);
2237
+ }
2238
+ const yn = [
2239
+ "localeMatcher",
2240
+ "style",
2241
+ "currency",
2242
+ "currencyDisplay",
2243
+ "currencySign",
2244
+ "useGrouping",
2245
+ "minimumIntegerDigits",
2246
+ "minimumFractionDigits",
2247
+ "maximumFractionDigits",
2248
+ "minimumSignificantDigits",
2249
+ "maximumSignificantDigits",
2250
+ "compactDisplay",
2251
+ "notation",
2252
+ "signDisplay",
2253
+ "unit",
2254
+ "unitDisplay",
2255
+ "roundingMode",
2256
+ "roundingPriority",
2257
+ "roundingIncrement",
2258
+ "trailingZeroDisplay"
2259
+ ];
2260
+ function gt(...e) {
2261
+ const [t, n, r, l] = e, a = V();
2262
+ let i = V();
2263
+ if (!X(t))
2264
+ throw se(J.INVALID_ARGUMENT);
2265
+ const u = t;
2266
+ return A(n) ? a.key = n : M(n) && Object.keys(n).forEach((c) => {
2267
+ yn.includes(c) ? i[c] = n[c] : a[c] = n[c];
2268
+ }), A(r) ? a.locale = r : M(r) && (i = r), M(l) && (i = l), [a.key || "", u, a, i];
2269
+ }
2270
+ function an(e, t, n) {
2271
+ const r = e;
2272
+ for (const l in n) {
2273
+ const a = `${t}__${l}`;
2274
+ r.__numberFormatters.has(a) && r.__numberFormatters.delete(a);
2275
+ }
2276
+ }
2277
+ const ya = (e) => e, va = (e) => "", Da = "text", Pa = (e) => e.length === 0 ? "" : vt(e), Ra = zn;
2278
+ function ln(e, t) {
2279
+ return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
2280
+ }
2281
+ function ka(e) {
2282
+ const t = X(e.pluralIndex) ? e.pluralIndex : -1;
2283
+ return e.named && (X(e.named.count) || X(e.named.n)) ? X(e.named.count) ? e.named.count : X(e.named.n) ? e.named.n : t : t;
2284
+ }
2285
+ function Ma(e, t) {
2286
+ t.count || (t.count = e), t.n || (t.n = e);
2287
+ }
2288
+ function Fa(e = {}) {
2289
+ const t = e.locale, n = ka(e), r = F(e.pluralRules) && A(t) && W(e.pluralRules[t]) ? e.pluralRules[t] : ln, l = F(e.pluralRules) && A(t) && W(e.pluralRules[t]) ? ln : void 0, a = (f) => f[r(n, f.length, l)], i = e.list || [], u = (f) => i[f], c = e.named || V();
2290
+ X(e.pluralIndex) && Ma(n, c);
2291
+ const N = (f) => c[f];
2292
+ function O(f, d) {
2293
+ const L = W(e.messages) ? e.messages(f, !!d) : F(e.messages) ? e.messages[f] : !1;
2294
+ return L || (e.parent ? e.parent.message(f) : va);
2295
+ }
2296
+ const b = (f) => e.modifiers ? e.modifiers[f] : ya, T = M(e.processor) && W(e.processor.normalize) ? e.processor.normalize : Pa, S = M(e.processor) && W(e.processor.interpolate) ? e.processor.interpolate : Ra, P = M(e.processor) && A(e.processor.type) ? e.processor.type : Da, y = {
2297
+ list: u,
2298
+ named: N,
2299
+ plural: a,
2300
+ linked: (f, ...d) => {
2301
+ const [L, m] = d;
2302
+ let I = "text", h = "";
2303
+ d.length === 1 ? F(L) ? (h = L.modifier || h, I = L.type || I) : A(L) && (h = L || h) : d.length === 2 && (A(L) && (h = L || h), A(m) && (I = m || I));
2304
+ const p = O(f, !0)(y), R = (
2305
+ // The message in vnode resolved with linked are returned as an array by processor.nomalize
2306
+ I === "vnode" && B(p) && h ? p[0] : p
2307
+ );
2308
+ return h ? b(h)(R, I) : R;
2309
+ },
2310
+ message: O,
2311
+ type: P,
2312
+ interpolate: S,
2313
+ normalize: T,
2314
+ values: j(V(), i, c)
2315
+ };
2316
+ return y;
2317
+ }
2318
+ const sn = () => "", ee = (e) => W(e);
2319
+ function on(e, ...t) {
2320
+ const { fallbackFormat: n, postTranslation: r, unresolving: l, messageCompiler: a, fallbackLocale: i, messages: u } = e, [c, N] = Tt(...t), O = Y(N.missingWarn) ? N.missingWarn : e.missingWarn, b = Y(N.fallbackWarn) ? N.fallbackWarn : e.fallbackWarn, T = Y(N.escapeParameter) ? N.escapeParameter : e.escapeParameter, S = !!N.resolvedMessage, P = A(N.default) || Y(N.default) ? Y(N.default) ? a ? c : () => c : N.default : n ? a ? c : () => c : null, C = n || P != null && (A(P) || W(P)), y = Rt(e, N);
2321
+ T && Ua(N);
2322
+ let [f, d, L] = S ? [
2323
+ c,
2324
+ y,
2325
+ u[y] || V()
2326
+ ] : vn(e, c, y, i, b, O), m = f, I = c;
2327
+ if (!S && !(A(m) || Te(m) || ee(m)) && C && (m = P, I = m), !S && (!(A(m) || Te(m) || ee(m)) || !A(d)))
2328
+ return l ? Xe : c;
2329
+ if (process.env.NODE_ENV !== "production" && A(m) && e.messageCompiler == null)
2330
+ return fe(`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;
2331
+ let h = !1;
2332
+ const p = () => {
2333
+ h = !0;
2334
+ }, R = ee(m) ? m : Dn(e, c, d, m, I, p);
2335
+ if (h)
2336
+ return m;
2337
+ const w = xa(e, d, L, N), G = Fa(w), te = wa(e, R, G), K = r ? r(te, c) : te;
2338
+ if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
2339
+ const Oe = {
2340
+ timestamp: Date.now(),
2341
+ key: A(c) ? c : ee(m) ? m.key : "",
2342
+ locale: d || (ee(m) ? m.locale : ""),
2343
+ format: A(m) ? m : ee(m) ? m.source : "",
2344
+ message: K
2345
+ };
2346
+ Oe.meta = j({}, e.__meta, /* @__PURE__ */ ba() || {}), ta(Oe);
2347
+ }
2348
+ return K;
2349
+ }
2350
+ function Ua(e) {
2351
+ B(e.list) ? e.list = e.list.map((t) => A(t) ? $t(t) : t) : F(e.named) && Object.keys(e.named).forEach((t) => {
2352
+ A(e.named[t]) && (e.named[t] = $t(e.named[t]));
2353
+ });
2354
+ }
2355
+ function vn(e, t, n, r, l, a) {
2356
+ const { messages: i, onWarn: u, messageResolver: c, localeFallbacker: N } = e, O = N(e, r, n);
2357
+ let b = V(), T, S = null, P = n, C = null;
2358
+ const y = "translate";
2359
+ for (let f = 0; f < O.length; f++) {
2360
+ if (T = C = O[f], process.env.NODE_ENV !== "production" && n !== T && !An(n, T) && je(l, t) && u(Le(Z.FALLBACK_TO_TRANSLATE, {
2361
+ key: t,
2362
+ target: T
2363
+ })), process.env.NODE_ENV !== "production" && n !== T) {
2364
+ const I = e.__v_emitter;
2365
+ I && I.emit("fallback", {
2366
+ type: y,
2367
+ key: t,
2368
+ from: P,
2369
+ to: C,
2370
+ groupId: `${y}:${t}`
2371
+ });
2372
+ }
2373
+ b = i[T] || V();
2374
+ let d = null, L, m;
2375
+ if (process.env.NODE_ENV !== "production" && oe && (d = window.performance.now(), L = "intlify-message-resolve-start", m = "intlify-message-resolve-end", z && z(L)), (S = c(b, t)) === null && (S = b[t]), process.env.NODE_ENV !== "production" && oe) {
2376
+ const I = window.performance.now(), h = e.__v_emitter;
2377
+ h && d && S && h.emit("message-resolve", {
2378
+ type: "message-resolve",
2379
+ key: t,
2380
+ message: S,
2381
+ time: I - d,
2382
+ groupId: `${y}:${t}`
2383
+ }), L && m && z && ge && (z(m), ge("intlify message resolve", L, m));
2384
+ }
2385
+ if (A(S) || Te(S) || ee(S))
2386
+ break;
2387
+ if (!Sa(T, O)) {
2388
+ const I = kt(
2389
+ e,
2390
+ // eslint-disable-line @typescript-eslint/no-explicit-any
2391
+ t,
2392
+ T,
2393
+ a,
2394
+ y
2395
+ );
2396
+ I !== t && (S = I);
2397
+ }
2398
+ P = C;
2399
+ }
2400
+ return [S, T, b];
2401
+ }
2402
+ function Dn(e, t, n, r, l, a) {
2403
+ const { messageCompiler: i, warnHtmlMessage: u } = e;
2404
+ if (ee(r)) {
2405
+ const T = r;
2406
+ return T.locale = T.locale || n, T.key = T.key || t, T;
2407
+ }
2408
+ if (i == null) {
2409
+ const T = () => r;
2410
+ return T.locale = n, T.key = t, T;
2411
+ }
2412
+ let c = null, N, O;
2413
+ process.env.NODE_ENV !== "production" && oe && (c = window.performance.now(), N = "intlify-message-compilation-start", O = "intlify-message-compilation-end", z && z(N));
2414
+ const b = i(r, Va(e, n, l, r, u, a));
2415
+ if (process.env.NODE_ENV !== "production" && oe) {
2416
+ const T = window.performance.now(), S = e.__v_emitter;
2417
+ S && c && S.emit("message-compilation", {
2418
+ type: "message-compilation",
2419
+ message: r,
2420
+ time: T - c,
2421
+ groupId: `translate:${t}`
2422
+ }), N && O && z && ge && (z(O), ge("intlify message compilation", N, O));
2423
+ }
2424
+ return b.locale = n, b.key = t, b.source = r, b;
2425
+ }
2426
+ function wa(e, t, n) {
2427
+ let r = null, l, a;
2428
+ process.env.NODE_ENV !== "production" && oe && (r = window.performance.now(), l = "intlify-message-evaluation-start", a = "intlify-message-evaluation-end", z && z(l));
2429
+ const i = t(n);
2430
+ if (process.env.NODE_ENV !== "production" && oe) {
2431
+ const u = window.performance.now(), c = e.__v_emitter;
2432
+ c && r && c.emit("message-evaluation", {
2433
+ type: "message-evaluation",
2434
+ value: i,
2435
+ time: u - r,
2436
+ groupId: `translate:${t.key}`
2437
+ }), l && a && z && ge && (z(a), ge("intlify message evaluation", l, a));
2438
+ }
2439
+ return i;
2440
+ }
2441
+ function Tt(...e) {
2442
+ const [t, n, r] = e, l = V();
2443
+ if (!A(t) && !X(t) && !ee(t) && !Te(t))
2444
+ throw se(J.INVALID_ARGUMENT);
2445
+ const a = X(t) ? String(t) : (ee(t), t);
2446
+ return X(n) ? l.plural = n : A(n) ? l.default = n : M(n) && !Be(n) ? l.named = n : B(n) && (l.list = n), X(r) ? l.plural = r : A(r) ? l.default = r : M(r) && j(l, r), [a, l];
2447
+ }
2448
+ function Va(e, t, n, r, l, a) {
2449
+ return {
2450
+ locale: t,
2451
+ key: n,
2452
+ warnHtmlMessage: l,
2453
+ onError: (i) => {
2454
+ if (a && a(i), process.env.NODE_ENV !== "production") {
2455
+ const u = Wa(r), c = `Message compilation error: ${i.message}`, N = i.location && u && er(u, i.location.start.offset, i.location.end.offset), O = e.__v_emitter;
2456
+ O && u && O.emit("compile-error", {
2457
+ message: u,
2458
+ error: i.message,
2459
+ start: i.location && i.location.start.offset,
2460
+ end: i.location && i.location.end.offset,
2461
+ groupId: `translate:${n}`
2462
+ }), console.error(N ? `${c}
2463
+ ${N}` : c);
2464
+ } else
2465
+ throw i;
2466
+ },
2467
+ onCacheKey: (i) => Xn(t, n, i)
2468
+ };
2469
+ }
2470
+ function Wa(e) {
2471
+ if (A(e))
2472
+ return e;
2473
+ if (e.loc && e.loc.source)
2474
+ return e.loc.source;
2475
+ }
2476
+ function xa(e, t, n, r) {
2477
+ const { modifiers: l, pluralRules: a, messageResolver: i, fallbackLocale: u, fallbackWarn: c, missingWarn: N, fallbackContext: O } = e, T = {
2478
+ locale: t,
2479
+ modifiers: l,
2480
+ pluralRules: a,
2481
+ messages: (S, P) => {
2482
+ let C = i(n, S);
2483
+ if (C == null && (O || P)) {
2484
+ const [, , y] = vn(
2485
+ O || e,
2486
+ // NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
2487
+ S,
2488
+ t,
2489
+ u,
2490
+ c,
2491
+ N
2492
+ );
2493
+ C = i(y, S);
2494
+ }
2495
+ if (A(C) || Te(C)) {
2496
+ let y = !1;
2497
+ const d = Dn(e, S, t, C, S, () => {
2498
+ y = !0;
2499
+ });
2500
+ return y ? sn : d;
2501
+ } else return ee(C) ? C : sn;
2502
+ }
2503
+ };
2504
+ return e.processor && (T.processor = e.processor), r.list && (T.list = r.list), r.named && (T.named = r.named), X(r.plural) && (T.pluralIndex = r.plural), T;
2505
+ }
2506
+ Rr();
2507
+ /*!
2508
+ * vue-i18n v11.1.2
2509
+ * (c) 2025 kazuya kawaguchi
2510
+ * Released under the MIT License.
2511
+ */
2512
+ const $a = "11.1.2";
2513
+ function Ha() {
2514
+ typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Ne().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Ne().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Ne().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Ne().__INTLIFY_PROD_DEVTOOLS__ = !1);
2515
+ }
2516
+ const q = {
2517
+ // composer module errors
2518
+ UNEXPECTED_RETURN_TYPE: ra,
2519
+ // 24
2520
+ // legacy module errors
2521
+ INVALID_ARGUMENT: 25,
2522
+ // i18n module errors
2523
+ MUST_BE_CALL_SETUP_TOP: 26,
2524
+ NOT_INSTALLED: 27,
2525
+ // directive module errors
2526
+ REQUIRED_VALUE: 28,
2527
+ INVALID_VALUE: 29,
2528
+ // vue-devtools errors
2529
+ CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN: 30,
2530
+ NOT_INSTALLED_WITH_PROVIDE: 31,
2531
+ // unexpected error
2532
+ UNEXPECTED_ERROR: 32,
2533
+ // not compatible legacy vue-i18n constructor
2534
+ NOT_COMPATIBLE_LEGACY_VUE_I18N: 33,
2535
+ // Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly
2536
+ NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
2537
+ };
2538
+ function Me(e, ...t) {
2539
+ return Ae(e, null, process.env.NODE_ENV !== "production" ? { messages: Ya, args: t } : void 0);
2540
+ }
2541
+ const Ya = {
2542
+ [q.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
2543
+ [q.INVALID_ARGUMENT]: "Invalid argument",
2544
+ [q.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
2545
+ [q.NOT_INSTALLED]: "Need to install with `app.use` function",
2546
+ [q.UNEXPECTED_ERROR]: "Unexpected error",
2547
+ [q.REQUIRED_VALUE]: "Required in value: {0}",
2548
+ [q.INVALID_VALUE]: "Invalid value",
2549
+ [q.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]: "Cannot setup vue-devtools plugin",
2550
+ [q.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
2551
+ [q.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
2552
+ [q.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
2553
+ }, Lt = /* @__PURE__ */ ie("__translateVNode"), Ot = /* @__PURE__ */ ie("__datetimeParts"), It = /* @__PURE__ */ ie("__numberParts"), ht = /* @__PURE__ */ ie("__enableEmitter"), bt = /* @__PURE__ */ ie("__disableEmitter"), Ga = ie("__setPluralRules"), Pn = /* @__PURE__ */ ie("__injectWithOption"), At = /* @__PURE__ */ ie("__dispose"), ue = {
2554
+ FALLBACK_TO_ROOT: pa,
2555
+ // 8
2556
+ NOT_FOUND_PARENT_SCOPE: 9,
2557
+ IGNORE_OBJ_FLATTEN: 10,
2558
+ /**
2559
+ * @deprecated will be removed at vue-i18n v12
2560
+ */
2561
+ DEPRECATE_LEGACY_MODE: 11,
2562
+ /**
2563
+ * @deprecated will be removed at vue-i18n v12
2564
+ */
2565
+ DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE: 12
2566
+ }, Ka = {
2567
+ [ue.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
2568
+ [ue.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
2569
+ [ue.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
2570
+ /**
2571
+ * @deprecated will be removed at vue-i18n v12
2572
+ */
2573
+ [ue.DEPRECATE_LEGACY_MODE]: `Legacy API mode has been deprecated in v11. Use Composition API mode instead.
2574
+ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,
2575
+ /**
2576
+ * @deprecated will be removed at vue-i18n v12
2577
+ */
2578
+ [ue.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]: "'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead."
2579
+ };
2580
+ function Mt(e, ...t) {
2581
+ return Ke(Ka[e], ...t);
2582
+ }
2583
+ function Fe(e) {
2584
+ if (!F(e))
2585
+ return e;
2586
+ for (const t in e)
2587
+ if (ne(e, t))
2588
+ if (!t.includes("."))
2589
+ F(e[t]) && Fe(e[t]);
2590
+ else {
2591
+ const n = t.split("."), r = n.length - 1;
2592
+ let l = e, a = !1;
2593
+ for (let i = 0; i < r; i++) {
2594
+ if (n[i] === "__proto__")
2595
+ throw new Error(`unsafe key: ${n[i]}`);
2596
+ if (n[i] in l || (l[n[i]] = V()), !F(l[n[i]])) {
2597
+ process.env.NODE_ENV !== "production" && fe(Mt(ue.IGNORE_OBJ_FLATTEN, {
2598
+ key: n[i]
2599
+ })), a = !0;
2600
+ break;
2601
+ }
2602
+ l = l[n[i]];
2603
+ }
2604
+ a || (l[n[r]] = e[t], delete e[t]), F(l[n[r]]) && Fe(l[n[r]]);
2605
+ }
2606
+ return e;
2607
+ }
2608
+ function Rn(e, t) {
2609
+ const { messages: n, __i18n: r, messageResolver: l, flatJson: a } = t, i = M(n) ? n : B(r) ? V() : { [e]: V() };
2610
+ if (B(r) && r.forEach((u) => {
2611
+ if ("locale" in u && "resource" in u) {
2612
+ const { locale: c, resource: N } = u;
2613
+ c ? (i[c] = i[c] || V(), $e(N, i[c])) : $e(N, i);
2614
+ } else
2615
+ A(u) && $e(JSON.parse(u), i);
2616
+ }), l == null && a)
2617
+ for (const u in i)
2618
+ ne(i, u) && Fe(i[u]);
2619
+ return i;
2620
+ }
2621
+ function kn(e) {
2622
+ return e.type;
2623
+ }
2624
+ function Ba(e, t, n) {
2625
+ let r = F(t.messages) ? t.messages : V();
2626
+ "__i18nGlobal" in n && (r = Rn(e.locale.value, {
2627
+ messages: r,
2628
+ __i18n: n.__i18nGlobal
2629
+ }));
2630
+ const l = Object.keys(r);
2631
+ l.length && l.forEach((a) => {
2632
+ e.mergeLocaleMessage(a, r[a]);
2633
+ });
2634
+ {
2635
+ if (F(t.datetimeFormats)) {
2636
+ const a = Object.keys(t.datetimeFormats);
2637
+ a.length && a.forEach((i) => {
2638
+ e.mergeDateTimeFormat(i, t.datetimeFormats[i]);
2639
+ });
2640
+ }
2641
+ if (F(t.numberFormats)) {
2642
+ const a = Object.keys(t.numberFormats);
2643
+ a.length && a.forEach((i) => {
2644
+ e.mergeNumberFormat(i, t.numberFormats[i]);
2645
+ });
2646
+ }
2647
+ }
2648
+ }
2649
+ function cn(e) {
2650
+ return $n(Hn, null, e, 0);
2651
+ }
2652
+ const un = "__INTLIFY_META__", fn = () => [], Xa = () => !1;
2653
+ let _n = 0;
2654
+ function dn(e) {
2655
+ return (t, n, r, l) => e(n, r, Ct() || void 0, l);
2656
+ }
2657
+ const ja = /* @__NO_SIDE_EFFECTS__ */ () => {
2658
+ const e = Ct();
2659
+ let t = null;
2660
+ return e && (t = kn(e)[un]) ? { [un]: t } : null;
2661
+ };
2662
+ function qa(e = {}) {
2663
+ const { __root: t, __injectWithOption: n } = e, r = t === void 0, l = e.flatJson, a = oe ? mt : Vn;
2664
+ let i = Y(e.inheritLocale) ? e.inheritLocale : !0;
2665
+ const u = a(
2666
+ // prettier-ignore
2667
+ t && i ? t.locale.value : A(e.locale) ? e.locale : Ye
2668
+ ), c = a(
2669
+ // prettier-ignore
2670
+ t && i ? t.fallbackLocale.value : A(e.fallbackLocale) || B(e.fallbackLocale) || M(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : u.value
2671
+ ), N = a(Rn(u.value, e)), O = a(M(e.datetimeFormats) ? e.datetimeFormats : { [u.value]: {} }), b = a(M(e.numberFormats) ? e.numberFormats : { [u.value]: {} });
2672
+ let T = t ? t.missingWarn : Y(e.missingWarn) || He(e.missingWarn) ? e.missingWarn : !0, S = t ? t.fallbackWarn : Y(e.fallbackWarn) || He(e.fallbackWarn) ? e.fallbackWarn : !0, P = t ? t.fallbackRoot : Y(e.fallbackRoot) ? e.fallbackRoot : !0, C = !!e.fallbackFormat, y = W(e.missing) ? e.missing : null, f = W(e.missing) ? dn(e.missing) : null, d = W(e.postTranslation) ? e.postTranslation : null, L = t ? t.warnHtmlMessage : Y(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, m = !!e.escapeParameter;
2673
+ const I = t ? t.modifiers : M(e.modifiers) ? e.modifiers : {};
2674
+ let h = e.pluralRules || t && t.pluralRules, p;
2675
+ p = (() => {
2676
+ r && Zt(null);
2677
+ const _ = {
2678
+ version: $a,
2679
+ locale: u.value,
2680
+ fallbackLocale: c.value,
2681
+ messages: N.value,
2682
+ modifiers: I,
2683
+ pluralRules: h,
2684
+ missing: f === null ? void 0 : f,
2685
+ missingWarn: T,
2686
+ fallbackWarn: S,
2687
+ fallbackFormat: C,
2688
+ unresolving: !0,
2689
+ postTranslation: d === null ? void 0 : d,
2690
+ warnHtmlMessage: L,
2691
+ escapeParameter: m,
2692
+ messageResolver: e.messageResolver,
2693
+ messageCompiler: e.messageCompiler,
2694
+ __meta: { framework: "vue" }
2695
+ };
2696
+ _.datetimeFormats = O.value, _.numberFormats = b.value, _.__datetimeFormatters = M(p) ? p.__datetimeFormatters : void 0, _.__numberFormatters = M(p) ? p.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (_.__v_emitter = M(p) ? p.__v_emitter : void 0);
2697
+ const g = Ca(_);
2698
+ return r && Zt(g), g;
2699
+ })(), Pe(p, u.value, c.value);
2700
+ function w() {
2701
+ return [
2702
+ u.value,
2703
+ c.value,
2704
+ N.value,
2705
+ O.value,
2706
+ b.value
2707
+ ];
2708
+ }
2709
+ const G = De({
2710
+ get: () => u.value,
2711
+ set: (_) => {
2712
+ p.locale = _, u.value = _;
2713
+ }
2714
+ }), te = De({
2715
+ get: () => c.value,
2716
+ set: (_) => {
2717
+ p.fallbackLocale = _, c.value = _, Pe(p, u.value, _);
2718
+ }
2719
+ }), K = De(() => N.value), Oe = /* @__PURE__ */ De(() => O.value), qe = /* @__PURE__ */ De(() => b.value);
2720
+ function Je() {
2721
+ return W(d) ? d : null;
2722
+ }
2723
+ function Qe(_) {
2724
+ d = _, p.postTranslation = _;
2725
+ }
2726
+ function Ze() {
2727
+ return y;
2728
+ }
2729
+ function ze(_) {
2730
+ _ !== null && (f = dn(_)), y = _, p.missing = f;
2731
+ }
2732
+ function et(_, g) {
2733
+ return _ !== "translate" || !g.resolvedMessage;
2734
+ }
2735
+ const ae = (_, g, U, H, Ee, we) => {
2736
+ w();
2737
+ let Ie;
2738
+ try {
2739
+ process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (p.fallbackContext = t ? Aa() : void 0), Ie = _(p);
2740
+ } finally {
2741
+ process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (p.fallbackContext = void 0);
2742
+ }
2743
+ if (U !== "translate exists" && // for not `te` (e.g `t`)
2744
+ X(Ie) && Ie === Xe || U === "translate exists" && !Ie) {
2745
+ const [pe, Un] = g();
2746
+ if (process.env.NODE_ENV !== "production" && t && A(pe) && et(U, Un) && (P && (je(S, pe) || bn(T, pe)) && fe(Mt(ue.FALLBACK_TO_ROOT, {
2747
+ key: pe,
2748
+ type: U
2749
+ })), process.env.NODE_ENV !== "production")) {
2750
+ const { __v_emitter: Vt } = p;
2751
+ Vt && P && Vt.emit("fallback", {
2752
+ type: U,
2753
+ key: pe,
2754
+ to: "global",
2755
+ groupId: `${U}:${pe}`
2756
+ });
2757
+ }
2758
+ return t && P ? H(t) : Ee(pe);
2759
+ } else {
2760
+ if (we(Ie))
2761
+ return Ie;
2762
+ throw Me(q.UNEXPECTED_RETURN_TYPE);
2763
+ }
2764
+ };
2765
+ function Ce(..._) {
2766
+ return ae((g) => Reflect.apply(on, null, [g, ..._]), () => Tt(..._), "translate", (g) => Reflect.apply(g.t, g, [..._]), (g) => g, (g) => A(g));
2767
+ }
2768
+ function tt(..._) {
2769
+ const [g, U, H] = _;
2770
+ if (H && !F(H))
2771
+ throw Me(q.INVALID_ARGUMENT);
2772
+ return Ce(g, U, j({ resolvedMessage: !0 }, H || {}));
2773
+ }
2774
+ function nt(..._) {
2775
+ return ae((g) => Reflect.apply(tn, null, [g, ..._]), () => Nt(..._), "datetime format", (g) => Reflect.apply(g.d, g, [..._]), () => Ge, (g) => A(g));
2776
+ }
2777
+ function rt(..._) {
2778
+ return ae((g) => Reflect.apply(rn, null, [g, ..._]), () => gt(..._), "number format", (g) => Reflect.apply(g.n, g, [..._]), () => Ge, (g) => A(g));
2779
+ }
2780
+ function at(_) {
2781
+ return _.map((g) => A(g) || X(g) || Y(g) ? cn(String(g)) : g);
2782
+ }
2783
+ const lt = {
2784
+ normalize: at,
2785
+ interpolate: (_) => _,
2786
+ type: "vnode"
2787
+ };
2788
+ function Ue(..._) {
2789
+ return ae((g) => {
2790
+ let U;
2791
+ const H = g;
2792
+ try {
2793
+ H.processor = lt, U = Reflect.apply(on, null, [H, ..._]);
2794
+ } finally {
2795
+ H.processor = null;
2796
+ }
2797
+ return U;
2798
+ }, () => Tt(..._), "translate", (g) => g[Lt](..._), (g) => [cn(g)], (g) => B(g));
2799
+ }
2800
+ function st(..._) {
2801
+ return ae((g) => Reflect.apply(rn, null, [g, ..._]), () => gt(..._), "number format", (g) => g[It](..._), fn, (g) => A(g) || B(g));
2802
+ }
2803
+ function ot(..._) {
2804
+ return ae((g) => Reflect.apply(tn, null, [g, ..._]), () => Nt(..._), "datetime format", (g) => g[Ot](..._), fn, (g) => A(g) || B(g));
2805
+ }
2806
+ function it(_) {
2807
+ h = _, p.pluralRules = h;
2808
+ }
2809
+ function ct(_, g) {
2810
+ return ae(() => {
2811
+ if (!_)
2812
+ return !1;
2813
+ const U = A(g) ? g : u.value, H = me(U), Ee = p.messageResolver(H, _);
2814
+ return Te(Ee) || ee(Ee) || A(Ee);
2815
+ }, () => [_], "translate exists", (U) => Reflect.apply(U.te, U, [_, g]), Xa, (U) => Y(U));
2816
+ }
2817
+ function Se(_) {
2818
+ let g = null;
2819
+ const U = gn(p, c.value, u.value);
2820
+ for (let H = 0; H < U.length; H++) {
2821
+ const Ee = N.value[U[H]] || {}, we = p.messageResolver(Ee, _);
2822
+ if (we != null) {
2823
+ g = we;
2824
+ break;
2825
+ }
2826
+ }
2827
+ return g;
2828
+ }
2829
+ function ye(_) {
2830
+ const g = Se(_);
2831
+ return g ?? (t ? t.tm(_) || {} : {});
2832
+ }
2833
+ function me(_) {
2834
+ return N.value[_] || {};
2835
+ }
2836
+ function ve(_, g) {
2837
+ if (l) {
2838
+ const U = { [_]: g };
2839
+ for (const H in U)
2840
+ ne(U, H) && Fe(U[H]);
2841
+ g = U[_];
2842
+ }
2843
+ N.value[_] = g, p.messages = N.value;
2844
+ }
2845
+ function ut(_, g) {
2846
+ N.value[_] = N.value[_] || {};
2847
+ const U = { [_]: g };
2848
+ if (l)
2849
+ for (const H in U)
2850
+ ne(U, H) && Fe(U[H]);
2851
+ g = U[_], $e(g, N.value[_]), p.messages = N.value;
2852
+ }
2853
+ function s(_) {
2854
+ return O.value[_] || {};
2855
+ }
2856
+ function o(_, g) {
2857
+ O.value[_] = g, p.datetimeFormats = O.value, nn(p, _, g);
2858
+ }
2859
+ function E(_, g) {
2860
+ O.value[_] = j(O.value[_] || {}, g), p.datetimeFormats = O.value, nn(p, _, g);
2861
+ }
2862
+ function v(_) {
2863
+ return b.value[_] || {};
2864
+ }
2865
+ function x(_, g) {
2866
+ b.value[_] = g, p.numberFormats = b.value, an(p, _, g);
2867
+ }
2868
+ function $(_, g) {
2869
+ b.value[_] = j(b.value[_] || {}, g), p.numberFormats = b.value, an(p, _, g);
2870
+ }
2871
+ _n++, t && oe && (Wt(t.locale, (_) => {
2872
+ i && (u.value = _, p.locale = _, Pe(p, u.value, c.value));
2873
+ }), Wt(t.fallbackLocale, (_) => {
2874
+ i && (c.value = _, p.fallbackLocale = _, Pe(p, u.value, c.value));
2875
+ }));
2876
+ const k = {
2877
+ id: _n,
2878
+ locale: G,
2879
+ fallbackLocale: te,
2880
+ get inheritLocale() {
2881
+ return i;
2882
+ },
2883
+ set inheritLocale(_) {
2884
+ i = _, _ && t && (u.value = t.locale.value, c.value = t.fallbackLocale.value, Pe(p, u.value, c.value));
2885
+ },
2886
+ get availableLocales() {
2887
+ return Object.keys(N.value).sort();
2888
+ },
2889
+ messages: K,
2890
+ get modifiers() {
2891
+ return I;
2892
+ },
2893
+ get pluralRules() {
2894
+ return h || {};
2895
+ },
2896
+ get isGlobal() {
2897
+ return r;
2898
+ },
2899
+ get missingWarn() {
2900
+ return T;
2901
+ },
2902
+ set missingWarn(_) {
2903
+ T = _, p.missingWarn = T;
2904
+ },
2905
+ get fallbackWarn() {
2906
+ return S;
2907
+ },
2908
+ set fallbackWarn(_) {
2909
+ S = _, p.fallbackWarn = S;
2910
+ },
2911
+ get fallbackRoot() {
2912
+ return P;
2913
+ },
2914
+ set fallbackRoot(_) {
2915
+ P = _;
2916
+ },
2917
+ get fallbackFormat() {
2918
+ return C;
2919
+ },
2920
+ set fallbackFormat(_) {
2921
+ C = _, p.fallbackFormat = C;
2922
+ },
2923
+ get warnHtmlMessage() {
2924
+ return L;
2925
+ },
2926
+ set warnHtmlMessage(_) {
2927
+ L = _, p.warnHtmlMessage = _;
2928
+ },
2929
+ get escapeParameter() {
2930
+ return m;
2931
+ },
2932
+ set escapeParameter(_) {
2933
+ m = _, p.escapeParameter = _;
2934
+ },
2935
+ t: Ce,
2936
+ getLocaleMessage: me,
2937
+ setLocaleMessage: ve,
2938
+ mergeLocaleMessage: ut,
2939
+ getPostTranslationHandler: Je,
2940
+ setPostTranslationHandler: Qe,
2941
+ getMissingHandler: Ze,
2942
+ setMissingHandler: ze,
2943
+ [Ga]: it
2944
+ };
2945
+ return k.datetimeFormats = Oe, k.numberFormats = qe, k.rt = tt, k.te = ct, k.tm = ye, k.d = nt, k.n = rt, k.getDateTimeFormat = s, k.setDateTimeFormat = o, k.mergeDateTimeFormat = E, k.getNumberFormat = v, k.setNumberFormat = x, k.mergeNumberFormat = $, k[Pn] = n, k[Lt] = Ue, k[Ot] = ot, k[It] = st, process.env.NODE_ENV !== "production" && (k[ht] = (_) => {
2946
+ p.__v_emitter = _;
2947
+ }, k[bt] = () => {
2948
+ p.__v_emitter = void 0;
2949
+ }), k;
2950
+ }
2951
+ function mn(e, t) {
2952
+ }
2953
+ const Ft = {
2954
+ tag: {
2955
+ type: [String, Object]
2956
+ },
2957
+ locale: {
2958
+ type: String
2959
+ },
2960
+ scope: {
2961
+ type: String,
2962
+ // NOTE: avoid https://github.com/microsoft/rushstack/issues/1050
2963
+ validator: (e) => e === "parent" || e === "global",
2964
+ default: "parent"
2965
+ /* ComponentI18nScope */
2966
+ },
2967
+ i18n: {
2968
+ type: Object
2969
+ }
2970
+ };
2971
+ function Ja({ slots: e }, t) {
2972
+ return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, l) => [
2973
+ ...r,
2974
+ // prettier-ignore
2975
+ ...l.type === pn ? l.children : [l]
2976
+ ], []) : t.reduce((n, r) => {
2977
+ const l = e[r];
2978
+ return l && (n[r] = l()), n;
2979
+ }, V());
2980
+ }
2981
+ function Mn() {
2982
+ return pn;
2983
+ }
2984
+ j({
2985
+ keypath: {
2986
+ type: String,
2987
+ required: !0
2988
+ },
2989
+ plural: {
2990
+ type: [Number, String],
2991
+ validator: (e) => X(e) || !isNaN(e)
2992
+ }
2993
+ }, Ft);
2994
+ function Qa(e) {
2995
+ return B(e) && !A(e[0]);
2996
+ }
2997
+ function Fn(e, t, n, r) {
2998
+ const { slots: l, attrs: a } = t;
2999
+ return () => {
3000
+ const i = { part: !0 };
3001
+ let u = V();
3002
+ e.locale && (i.locale = e.locale), A(e.format) ? i.key = e.format : F(e.format) && (A(e.format.key) && (i.key = e.format.key), u = Object.keys(e.format).reduce((T, S) => n.includes(S) ? j(V(), T, { [S]: e.format[S] }) : T, V()));
3003
+ const c = r(e.value, i, u);
3004
+ let N = [i.key];
3005
+ B(c) ? N = c.map((T, S) => {
3006
+ const P = l[T.type], C = P ? P({ [T.type]: T.value, index: S, parts: c }) : [T.value];
3007
+ return Qa(C) && (C[0].key = `${T.type}-${S}`), C;
3008
+ }) : A(c) && (N = [c]);
3009
+ const O = j(V(), a), b = A(e.tag) || F(e.tag) ? e.tag : Mn();
3010
+ return En(b, O, N);
3011
+ };
3012
+ }
3013
+ j({
3014
+ value: {
3015
+ type: Number,
3016
+ required: !0
3017
+ },
3018
+ format: {
3019
+ type: [String, Object]
3020
+ }
3021
+ }, Ft);
3022
+ const Za = /* @__PURE__ */ ie("global-vue-i18n");
3023
+ function Ut(e = {}) {
3024
+ const t = Ct();
3025
+ if (t == null)
3026
+ throw Me(q.MUST_BE_CALL_SETUP_TOP);
3027
+ if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
3028
+ throw Me(q.NOT_INSTALLED);
3029
+ const n = za(t), r = tl(n), l = kn(t), a = el(e, l);
3030
+ if (a === "global")
3031
+ return Ba(r, e, l), r;
3032
+ if (a === "parent") {
3033
+ let c = nl(n, t, e.__useComponent);
3034
+ return c == null && (process.env.NODE_ENV !== "production" && fe(Mt(ue.NOT_FOUND_PARENT_SCOPE)), c = r), c;
3035
+ }
3036
+ const i = n;
3037
+ let u = i.__getInstance(t);
3038
+ if (u == null) {
3039
+ const c = j({}, e);
3040
+ "__i18n" in l && (c.__i18n = l.__i18n), r && (c.__root = r), u = qa(c), i.__composerExtend && (u[At] = i.__composerExtend(u)), al(i, t, u), i.__setInstance(t, u);
3041
+ }
3042
+ return u;
3043
+ }
3044
+ function za(e) {
3045
+ const t = wn(e.isCE ? Za : e.appContext.app.__VUE_I18N_SYMBOL__);
3046
+ if (!t)
3047
+ throw Me(e.isCE ? q.NOT_INSTALLED_WITH_PROVIDE : q.UNEXPECTED_ERROR);
3048
+ return t;
3049
+ }
3050
+ function el(e, t) {
3051
+ return Be(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
3052
+ }
3053
+ function tl(e) {
3054
+ return e.mode === "composition" ? e.global : e.global.__composer;
3055
+ }
3056
+ function nl(e, t, n = !1) {
3057
+ let r = null;
3058
+ const l = t.root;
3059
+ let a = rl(t, n);
3060
+ for (; a != null; ) {
3061
+ const i = e;
3062
+ if (e.mode === "composition")
3063
+ r = i.__getInstance(a);
3064
+ else if (__VUE_I18N_LEGACY_API__) {
3065
+ const u = i.__getInstance(a);
3066
+ u != null && (r = u.__composer, n && r && !r[Pn] && (r = null));
3067
+ }
3068
+ if (r != null || l === a)
3069
+ break;
3070
+ a = a.parent;
3071
+ }
3072
+ return r;
3073
+ }
3074
+ function rl(e, t = !1) {
3075
+ return e == null ? null : t && e.vnode.ctx || e.parent;
3076
+ }
3077
+ function al(e, t, n) {
3078
+ let r = null;
3079
+ Wn(() => {
3080
+ if (process.env.NODE_ENV !== "production" && t.vnode.el) {
3081
+ t.vnode.el.__VUE_I18N__ = n, r = nr();
3082
+ const l = n;
3083
+ l[ht] && l[ht](r), r.on("*", mn);
3084
+ }
3085
+ }, t), xn(() => {
3086
+ const l = n;
3087
+ process.env.NODE_ENV !== "production" && t.vnode.el && t.vnode.el.__VUE_I18N__ && (r && r.off("*", mn), l[bt] && l[bt](), delete t.vnode.el.__VUE_I18N__), e.__deleteInstance(t);
3088
+ const a = l[At];
3089
+ a && (a(), delete l[At]);
3090
+ }, t);
3091
+ }
3092
+ j({
3093
+ value: {
3094
+ type: [Number, Date],
3095
+ required: !0
3096
+ },
3097
+ format: {
3098
+ type: [String, Object]
3099
+ }
3100
+ }, Ft);
3101
+ Ha();
3102
+ La(Zr);
3103
+ Oa(Ea);
3104
+ Ia(gn);
3105
+ if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
3106
+ const e = Ne();
3107
+ e.__INTLIFY__ = !0, zr(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
3108
+ }
3109
+ process.env.NODE_ENV;
3110
+ export {
3111
+ sl as a,
3112
+ Ut as u
3113
+ };