pd-ui-package 1.1.0 → 1.1.1

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.
package/pd-ui-package.js CHANGED
@@ -1,10 +1,2779 @@
1
- import { defineAsyncComponent as p } from "vue";
2
- const s = /* @__PURE__ */ Object.assign({ "./pd-ui/pd-PwdChangeForm/pd-PwdChangeForm.vue": () => import("./pd-PwdChangeForm-CSVR5aUh.js"), "./pd-ui/pd-Test/pd-Test.vue": () => import("./pd-Test-T5hV5jAw.js") }), m = (o) => {
3
- for (const [e, n] of Object.entries(s)) {
4
- const t = e.slice(e.lastIndexOf("/") + 1, e.lastIndexOf("."));
5
- o.component(t, p(n));
1
+ import { ref as oe, computed as le, watch as Ke, getCurrentInstance as Wt, isRef as zt, h as ie, Fragment as xt, inject as en, onMounted as tn, onUnmounted as nn, createVNode as gt, Text as pt, defineAsyncComponent as rn } from "vue";
2
+ const te = typeof window < "u";
3
+ let U, ne;
4
+ if (process.env.NODE_ENV !== "production") {
5
+ const e = te && window.performance;
6
+ e && e.mark && e.measure && e.clearMarks && e.clearMeasures && (U = (t) => e.mark(t), ne = (t, n, r) => {
7
+ e.measure(t, n, r), e.clearMarks(n), e.clearMarks(r);
8
+ });
9
+ }
10
+ const an = /\{([0-9a-zA-Z]+)\}/g;
11
+ function Ie(e, ...t) {
12
+ return t.length === 1 && j(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(an, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
13
+ }
14
+ const sn = typeof Symbol == "function" && typeof Symbol.toStringTag == "symbol", re = (e) => sn ? Symbol(e) : e, on = (e, t, n) => ln({ l: e, k: t, s: n }), ln = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), V = (e) => typeof e == "number" && isFinite(e), cn = (e) => at(e) === "[object Date]", Le = (e) => at(e) === "[object RegExp]", Pe = (e) => F(e) && Object.keys(e).length === 0;
15
+ function ae(e, t) {
16
+ typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
17
+ }
18
+ let _t;
19
+ const un = () => _t || (_t = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
20
+ function bt(e) {
21
+ return e.replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;");
22
+ }
23
+ const x = Array.isArray, W = (e) => typeof e == "function", T = (e) => typeof e == "string", $ = (e) => typeof e == "boolean", j = (e) => (
24
+ // eslint-disable-line
25
+ e !== null && typeof e == "object"
26
+ ), At = Object.prototype.toString, at = (e) => At.call(e), F = (e) => at(e) === "[object Object]", fn = (e) => e == null ? "" : x(e) || F(e) && e.toString === At ? JSON.stringify(e, null, 2) : String(e), ht = 2;
27
+ function mn(e, t = 0, n = e.length) {
28
+ const r = e.split(/\r?\n/);
29
+ let a = 0;
30
+ const s = [];
31
+ for (let o = 0; o < r.length; o++)
32
+ if (a += r[o].length + 1, a >= t) {
33
+ for (let c = o - ht; c <= o + ht || n > a; c++) {
34
+ if (c < 0 || c >= r.length)
35
+ continue;
36
+ const g = c + 1;
37
+ s.push(`${g}${" ".repeat(3 - String(g).length)}| ${r[c]}`);
38
+ const p = r[c].length;
39
+ if (c === o) {
40
+ const h = t - (a - p) + 1, w = Math.max(1, n > a ? p - h : n - t);
41
+ s.push(" | " + " ".repeat(h) + "^".repeat(w));
42
+ } else if (c > o) {
43
+ if (n > a) {
44
+ const h = Math.max(Math.min(n - a, p), 1);
45
+ s.push(" | " + "^".repeat(h));
46
+ }
47
+ a += p + 1;
48
+ }
49
+ }
50
+ break;
51
+ }
52
+ return s.join(`
53
+ `);
54
+ }
55
+ process.env.NODE_ENV;
56
+ const dn = (e) => (
57
+ // eslint-disable-line
58
+ e !== null && typeof e == "object"
59
+ ), Z = [];
60
+ Z[
61
+ 0
62
+ /* BEFORE_PATH */
63
+ ] = {
64
+ w: [
65
+ 0
66
+ /* BEFORE_PATH */
67
+ ],
68
+ i: [
69
+ 3,
70
+ 0
71
+ /* APPEND */
72
+ ],
73
+ "[": [
74
+ 4
75
+ /* IN_SUB_PATH */
76
+ ],
77
+ o: [
78
+ 7
79
+ /* AFTER_PATH */
80
+ ]
81
+ };
82
+ Z[
83
+ 1
84
+ /* IN_PATH */
85
+ ] = {
86
+ w: [
87
+ 1
88
+ /* IN_PATH */
89
+ ],
90
+ ".": [
91
+ 2
92
+ /* BEFORE_IDENT */
93
+ ],
94
+ "[": [
95
+ 4
96
+ /* IN_SUB_PATH */
97
+ ],
98
+ o: [
99
+ 7
100
+ /* AFTER_PATH */
101
+ ]
102
+ };
103
+ Z[
104
+ 2
105
+ /* BEFORE_IDENT */
106
+ ] = {
107
+ w: [
108
+ 2
109
+ /* BEFORE_IDENT */
110
+ ],
111
+ i: [
112
+ 3,
113
+ 0
114
+ /* APPEND */
115
+ ],
116
+ 0: [
117
+ 3,
118
+ 0
119
+ /* APPEND */
120
+ ]
121
+ };
122
+ Z[
123
+ 3
124
+ /* IN_IDENT */
125
+ ] = {
126
+ i: [
127
+ 3,
128
+ 0
129
+ /* APPEND */
130
+ ],
131
+ 0: [
132
+ 3,
133
+ 0
134
+ /* APPEND */
135
+ ],
136
+ w: [
137
+ 1,
138
+ 1
139
+ /* PUSH */
140
+ ],
141
+ ".": [
142
+ 2,
143
+ 1
144
+ /* PUSH */
145
+ ],
146
+ "[": [
147
+ 4,
148
+ 1
149
+ /* PUSH */
150
+ ],
151
+ o: [
152
+ 7,
153
+ 1
154
+ /* PUSH */
155
+ ]
156
+ };
157
+ Z[
158
+ 4
159
+ /* IN_SUB_PATH */
160
+ ] = {
161
+ "'": [
162
+ 5,
163
+ 0
164
+ /* APPEND */
165
+ ],
166
+ '"': [
167
+ 6,
168
+ 0
169
+ /* APPEND */
170
+ ],
171
+ "[": [
172
+ 4,
173
+ 2
174
+ /* INC_SUB_PATH_DEPTH */
175
+ ],
176
+ "]": [
177
+ 1,
178
+ 3
179
+ /* PUSH_SUB_PATH */
180
+ ],
181
+ o: 8,
182
+ l: [
183
+ 4,
184
+ 0
185
+ /* APPEND */
186
+ ]
187
+ };
188
+ Z[
189
+ 5
190
+ /* IN_SINGLE_QUOTE */
191
+ ] = {
192
+ "'": [
193
+ 4,
194
+ 0
195
+ /* APPEND */
196
+ ],
197
+ o: 8,
198
+ l: [
199
+ 5,
200
+ 0
201
+ /* APPEND */
202
+ ]
203
+ };
204
+ Z[
205
+ 6
206
+ /* IN_DOUBLE_QUOTE */
207
+ ] = {
208
+ '"': [
209
+ 4,
210
+ 0
211
+ /* APPEND */
212
+ ],
213
+ o: 8,
214
+ l: [
215
+ 6,
216
+ 0
217
+ /* APPEND */
218
+ ]
219
+ };
220
+ const gn = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
221
+ function pn(e) {
222
+ return gn.test(e);
223
+ }
224
+ function _n(e) {
225
+ const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
226
+ return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
227
+ }
228
+ function bn(e) {
229
+ if (e == null)
230
+ return "o";
231
+ switch (e.charCodeAt(0)) {
232
+ case 91:
233
+ // [
234
+ case 93:
235
+ // ]
236
+ case 46:
237
+ // .
238
+ case 34:
239
+ // "
240
+ case 39:
241
+ return e;
242
+ case 95:
243
+ // _
244
+ case 36:
245
+ // $
246
+ case 45:
247
+ return "i";
248
+ case 9:
249
+ // Tab (HT)
250
+ case 10:
251
+ // Newline (LF)
252
+ case 13:
253
+ // Return (CR)
254
+ case 160:
255
+ // No-break space (NBSP)
256
+ case 65279:
257
+ // Byte Order Mark (BOM)
258
+ case 8232:
259
+ // Line Separator (LS)
260
+ case 8233:
261
+ return "w";
262
+ }
263
+ return "i";
264
+ }
265
+ function hn(e) {
266
+ const t = e.trim();
267
+ return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : pn(t) ? _n(t) : "*" + t;
268
+ }
269
+ function vn(e) {
270
+ const t = [];
271
+ let n = -1, r = 0, a = 0, s, o, c, g, p, h, w;
272
+ const k = [];
273
+ k[
274
+ 0
275
+ /* APPEND */
276
+ ] = () => {
277
+ o === void 0 ? o = c : o += c;
278
+ }, k[
279
+ 1
280
+ /* PUSH */
281
+ ] = () => {
282
+ o !== void 0 && (t.push(o), o = void 0);
283
+ }, k[
284
+ 2
285
+ /* INC_SUB_PATH_DEPTH */
286
+ ] = () => {
287
+ k[
288
+ 0
289
+ /* APPEND */
290
+ ](), a++;
291
+ }, k[
292
+ 3
293
+ /* PUSH_SUB_PATH */
294
+ ] = () => {
295
+ if (a > 0)
296
+ a--, r = 4, k[
297
+ 0
298
+ /* APPEND */
299
+ ]();
300
+ else {
301
+ if (a = 0, o === void 0 || (o = hn(o), o === !1))
302
+ return !1;
303
+ k[
304
+ 1
305
+ /* PUSH */
306
+ ]();
307
+ }
308
+ };
309
+ function C() {
310
+ const N = e[n + 1];
311
+ if (r === 5 && N === "'" || r === 6 && N === '"')
312
+ return n++, c = "\\" + N, k[
313
+ 0
314
+ /* APPEND */
315
+ ](), !0;
316
+ }
317
+ for (; r !== null; )
318
+ if (n++, s = e[n], !(s === "\\" && C())) {
319
+ if (g = bn(s), w = Z[r], p = w[g] || w.l || 8, p === 8 || (r = p[0], p[1] !== void 0 && (h = k[p[1]], h && (c = s, h() === !1))))
320
+ return;
321
+ if (r === 7)
322
+ return t;
323
+ }
324
+ }
325
+ const vt = /* @__PURE__ */ new Map();
326
+ function Ee(e, t) {
327
+ if (!dn(e))
328
+ return null;
329
+ let n = vt.get(t);
330
+ if (n || (n = vn(t), n && vt.set(t, n)), !n)
331
+ return null;
332
+ const r = n.length;
333
+ let a = e, s = 0;
334
+ for (; s < r; ) {
335
+ const o = a[n[s]];
336
+ if (o === void 0)
337
+ return null;
338
+ a = o, s++;
339
+ }
340
+ return a;
341
+ }
342
+ const yn = (e) => e, kn = (e) => "", wn = "text", Nn = (e) => e.length === 0 ? "" : e.join(""), Ln = fn;
343
+ function yt(e, t) {
344
+ return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
345
+ }
346
+ function En(e) {
347
+ const t = V(e.pluralIndex) ? e.pluralIndex : -1;
348
+ return e.named && (V(e.named.count) || V(e.named.n)) ? V(e.named.count) ? e.named.count : V(e.named.n) ? e.named.n : t : t;
349
+ }
350
+ function On(e, t) {
351
+ t.count || (t.count = e), t.n || (t.n = e);
352
+ }
353
+ function Tn(e = {}) {
354
+ const t = e.locale, n = En(e), r = j(e.pluralRules) && T(t) && W(e.pluralRules[t]) ? e.pluralRules[t] : yt, a = j(e.pluralRules) && T(t) && W(e.pluralRules[t]) ? yt : void 0, s = (L) => L[r(n, L.length, a)], o = e.list || [], c = (L) => o[L], g = e.named || {};
355
+ V(e.pluralIndex) && On(n, g);
356
+ const p = (L) => g[L];
357
+ function h(L) {
358
+ const u = W(e.messages) ? e.messages(L) : j(e.messages) ? e.messages[L] : !1;
359
+ return u || (e.parent ? e.parent.message(L) : kn);
360
+ }
361
+ const w = (L) => e.modifiers ? e.modifiers[L] : yn, k = F(e.processor) && W(e.processor.normalize) ? e.processor.normalize : Nn, C = F(e.processor) && W(e.processor.interpolate) ? e.processor.interpolate : Ln, N = F(e.processor) && T(e.processor.type) ? e.processor.type : wn, I = {
362
+ list: c,
363
+ named: p,
364
+ plural: s,
365
+ linked: (L, u) => {
366
+ const _ = h(L)(I);
367
+ return T(u) ? w(u)(_) : _;
368
+ },
369
+ message: h,
370
+ type: N,
371
+ interpolate: C,
372
+ normalize: k
373
+ };
374
+ return I;
375
+ }
376
+ const Sn = {
377
+ // tokenizer error messages
378
+ 0: "Expected token: '{0}'",
379
+ 1: "Invalid token in placeholder: '{0}'",
380
+ 2: "Unterminated single quote in placeholder",
381
+ 3: "Unknown escape sequence: \\{0}",
382
+ 4: "Invalid unicode escape sequence: {0}",
383
+ 5: "Unbalanced closing brace",
384
+ 6: "Unterminated closing brace",
385
+ 7: "Empty placeholder",
386
+ 8: "Not allowed nest placeholder",
387
+ 9: "Invalid linked format",
388
+ // parser error messages
389
+ 10: "Plural must have messages",
390
+ 11: "Unexpected empty linked modifier",
391
+ 12: "Unexpected empty linked key",
392
+ 13: "Unexpected lexical analysis in token: '{0}'"
393
+ };
394
+ function Fe(e, t, n = {}) {
395
+ const { domain: r, messages: a, args: s } = n, o = process.env.NODE_ENV !== "production" ? Ie((a || Sn)[e] || "", ...s || []) : e, c = new SyntaxError(String(o));
396
+ return c.code = e, t && (c.location = t), c.domain = r, c;
397
+ }
398
+ function In(e) {
399
+ throw e;
400
+ }
401
+ function Pn(e, t, n) {
402
+ return { line: e, column: t, offset: n };
403
+ }
404
+ function qe(e, t, n) {
405
+ return { start: e, end: t };
406
+ }
407
+ const B = " ", Fn = "\r", A = `
408
+ `, Cn = "\u2028", Dn = "\u2029";
409
+ function Mn(e) {
410
+ const t = e;
411
+ let n = 0, r = 1, a = 1, s = 0;
412
+ const o = (S) => t[S] === Fn && t[S + 1] === A, c = (S) => t[S] === A, g = (S) => t[S] === Dn, p = (S) => t[S] === Cn, h = (S) => o(S) || c(S) || g(S) || p(S), w = () => n, k = () => r, C = () => a, N = () => s, I = (S) => o(S) || g(S) || p(S) ? A : t[S], L = () => I(n), u = () => I(n + s);
413
+ function _() {
414
+ return s = 0, h(n) && (r++, a = 0), o(n) && n++, n++, a++, t[n];
415
+ }
416
+ function v() {
417
+ return o(n + s) && s++, s++, t[n + s];
418
+ }
419
+ function f() {
420
+ n = 0, r = 1, a = 1, s = 0;
421
+ }
422
+ function E(S = 0) {
423
+ s = S;
424
+ }
425
+ function O() {
426
+ const S = n + s;
427
+ for (; S !== n; )
428
+ _();
429
+ s = 0;
430
+ }
431
+ return {
432
+ index: w,
433
+ line: k,
434
+ column: C,
435
+ peekOffset: N,
436
+ charAt: I,
437
+ currentChar: L,
438
+ currentPeek: u,
439
+ next: _,
440
+ peek: v,
441
+ reset: f,
442
+ resetPeek: E,
443
+ skipToPeek: O
444
+ };
445
+ }
446
+ const Q = void 0, kt = "'", $n = "tokenizer";
447
+ function Rn(e, t = {}) {
448
+ const n = t.location !== !1, r = Mn(e), a = () => r.index(), s = () => Pn(r.line(), r.column(), r.index()), o = s(), c = a(), g = {
449
+ currentType: 14,
450
+ offset: c,
451
+ startLoc: o,
452
+ endLoc: o,
453
+ lastType: 14,
454
+ lastOffset: c,
455
+ lastStartLoc: o,
456
+ lastEndLoc: o,
457
+ braceNest: 0,
458
+ inLinked: !1,
459
+ text: ""
460
+ }, p = () => g, { onError: h } = t;
461
+ function w(l, i, d, ...b) {
462
+ const P = p();
463
+ if (i.column += d, i.offset += d, h) {
464
+ const D = qe(P.startLoc, i), H = Fe(l, D, {
465
+ domain: $n,
466
+ args: b
467
+ });
468
+ h(H);
469
+ }
470
+ }
471
+ function k(l, i, d) {
472
+ l.endLoc = s(), l.currentType = i;
473
+ const b = { type: i };
474
+ return n && (b.loc = qe(l.startLoc, l.endLoc)), d != null && (b.value = d), b;
475
+ }
476
+ const C = (l) => k(
477
+ l,
478
+ 14
479
+ /* EOF */
480
+ );
481
+ function N(l, i) {
482
+ return l.currentChar() === i ? (l.next(), i) : (w(0, s(), 0, i), "");
483
+ }
484
+ function I(l) {
485
+ let i = "";
486
+ for (; l.currentPeek() === B || l.currentPeek() === A; )
487
+ i += l.currentPeek(), l.peek();
488
+ return i;
489
+ }
490
+ function L(l) {
491
+ const i = I(l);
492
+ return l.skipToPeek(), i;
493
+ }
494
+ function u(l) {
495
+ if (l === Q)
496
+ return !1;
497
+ const i = l.charCodeAt(0);
498
+ return i >= 97 && i <= 122 || // a-z
499
+ i >= 65 && i <= 90;
500
+ }
501
+ function _(l) {
502
+ if (l === Q)
503
+ return !1;
504
+ const i = l.charCodeAt(0);
505
+ return i >= 48 && i <= 57;
506
+ }
507
+ function v(l, i) {
508
+ const { currentType: d } = i;
509
+ if (d !== 2)
510
+ return !1;
511
+ I(l);
512
+ const b = u(l.currentPeek());
513
+ return l.resetPeek(), b;
514
+ }
515
+ function f(l, i) {
516
+ const { currentType: d } = i;
517
+ if (d !== 2)
518
+ return !1;
519
+ I(l);
520
+ const b = l.currentPeek() === "-" ? l.peek() : l.currentPeek(), P = _(b);
521
+ return l.resetPeek(), P;
522
+ }
523
+ function E(l, i) {
524
+ const { currentType: d } = i;
525
+ if (d !== 2)
526
+ return !1;
527
+ I(l);
528
+ const b = l.currentPeek() === kt;
529
+ return l.resetPeek(), b;
530
+ }
531
+ function O(l, i) {
532
+ const { currentType: d } = i;
533
+ if (d !== 8)
534
+ return !1;
535
+ I(l);
536
+ const b = l.currentPeek() === ".";
537
+ return l.resetPeek(), b;
538
+ }
539
+ function S(l, i) {
540
+ const { currentType: d } = i;
541
+ if (d !== 9)
542
+ return !1;
543
+ I(l);
544
+ const b = u(l.currentPeek());
545
+ return l.resetPeek(), b;
546
+ }
547
+ function R(l, i) {
548
+ const { currentType: d } = i;
549
+ if (!(d === 8 || d === 12))
550
+ return !1;
551
+ I(l);
552
+ const b = l.currentPeek() === ":";
553
+ return l.resetPeek(), b;
554
+ }
555
+ function M(l, i) {
556
+ const { currentType: d } = i;
557
+ if (d !== 10)
558
+ return !1;
559
+ const b = () => {
560
+ const D = l.currentPeek();
561
+ return D === "{" ? u(l.peek()) : D === "@" || D === "%" || D === "|" || D === ":" || D === "." || D === B || !D ? !1 : D === A ? (l.peek(), b()) : u(D);
562
+ }, P = b();
563
+ return l.resetPeek(), P;
564
+ }
565
+ function q(l) {
566
+ I(l);
567
+ const i = l.currentPeek() === "|";
568
+ return l.resetPeek(), i;
569
+ }
570
+ function me(l, i = !0) {
571
+ const d = (P = !1, D = "", H = !1) => {
572
+ const m = l.currentPeek();
573
+ return m === "{" ? D === "%" ? !1 : P : m === "@" || !m ? D === "%" ? !0 : P : m === "%" ? (l.peek(), d(P, "%", !0)) : m === "|" ? D === "%" || H ? !0 : !(D === B || D === A) : m === B ? (l.peek(), d(!0, B, H)) : m === A ? (l.peek(), d(!0, A, H)) : !0;
574
+ }, b = d();
575
+ return i && l.resetPeek(), b;
576
+ }
577
+ function X(l, i) {
578
+ const d = l.currentChar();
579
+ return d === Q ? Q : i(d) ? (l.next(), d) : null;
580
+ }
581
+ function he(l) {
582
+ return X(l, (d) => {
583
+ const b = d.charCodeAt(0);
584
+ return b >= 97 && b <= 122 || // a-z
585
+ b >= 65 && b <= 90 || // A-Z
586
+ b >= 48 && b <= 57 || // 0-9
587
+ b === 95 || b === 36;
588
+ });
589
+ }
590
+ function $e(l) {
591
+ return X(l, (d) => {
592
+ const b = d.charCodeAt(0);
593
+ return b >= 48 && b <= 57;
594
+ });
595
+ }
596
+ function J(l) {
597
+ return X(l, (d) => {
598
+ const b = d.charCodeAt(0);
599
+ return b >= 48 && b <= 57 || // 0-9
600
+ b >= 65 && b <= 70 || // A-F
601
+ b >= 97 && b <= 102;
602
+ });
603
+ }
604
+ function ve(l) {
605
+ let i = "", d = "";
606
+ for (; i = $e(l); )
607
+ d += i;
608
+ return d;
609
+ }
610
+ function Re(l) {
611
+ const i = (d) => {
612
+ const b = l.currentChar();
613
+ return b === "{" || b === "}" || b === "@" || !b ? d : b === "%" ? me(l) ? (d += b, l.next(), i(d)) : d : b === "|" ? d : b === B || b === A ? me(l) ? (d += b, l.next(), i(d)) : q(l) ? d : (d += b, l.next(), i(d)) : (d += b, l.next(), i(d));
614
+ };
615
+ return i("");
616
+ }
617
+ function Ve(l) {
618
+ L(l);
619
+ let i = "", d = "";
620
+ for (; i = he(l); )
621
+ d += i;
622
+ return l.currentChar() === Q && w(6, s(), 0), d;
623
+ }
624
+ function We(l) {
625
+ L(l);
626
+ let i = "";
627
+ return l.currentChar() === "-" ? (l.next(), i += `-${ve(l)}`) : i += ve(l), l.currentChar() === Q && w(6, s(), 0), i;
628
+ }
629
+ function ft(l) {
630
+ L(l), N(l, "'");
631
+ let i = "", d = "";
632
+ const b = (D) => D !== kt && D !== A;
633
+ for (; i = X(l, b); )
634
+ i === "\\" ? d += xe(l) : d += i;
635
+ const P = l.currentChar();
636
+ return P === A || P === Q ? (w(2, s(), 0), P === A && (l.next(), N(l, "'")), d) : (N(l, "'"), d);
637
+ }
638
+ function xe(l) {
639
+ const i = l.currentChar();
640
+ switch (i) {
641
+ case "\\":
642
+ case "'":
643
+ return l.next(), `\\${i}`;
644
+ case "u":
645
+ return ye(l, i, 4);
646
+ case "U":
647
+ return ye(l, i, 6);
648
+ default:
649
+ return w(3, s(), 0, i), "";
650
+ }
651
+ }
652
+ function ye(l, i, d) {
653
+ N(l, i);
654
+ let b = "";
655
+ for (let P = 0; P < d; P++) {
656
+ const D = J(l);
657
+ if (!D) {
658
+ w(4, s(), 0, `\\${i}${b}${l.currentChar()}`);
659
+ break;
660
+ }
661
+ b += D;
662
+ }
663
+ return `\\${i}${b}`;
664
+ }
665
+ function Ae(l) {
666
+ L(l);
667
+ let i = "", d = "";
668
+ const b = (P) => P !== "{" && P !== "}" && P !== B && P !== A;
669
+ for (; i = X(l, b); )
670
+ d += i;
671
+ return d;
672
+ }
673
+ function je(l) {
674
+ let i = "", d = "";
675
+ for (; i = he(l); )
676
+ d += i;
677
+ return d;
678
+ }
679
+ function Ue(l) {
680
+ const i = (d = !1, b) => {
681
+ const P = l.currentChar();
682
+ return P === "{" || P === "%" || P === "@" || P === "|" || !P || P === B ? b : P === A ? (b += P, l.next(), i(d, b)) : (b += P, l.next(), i(!0, b));
683
+ };
684
+ return i(!1, "");
685
+ }
686
+ function de(l) {
687
+ L(l);
688
+ const i = N(
689
+ l,
690
+ "|"
691
+ /* Pipe */
692
+ );
693
+ return L(l), i;
694
+ }
695
+ function ge(l, i) {
696
+ let d = null;
697
+ switch (l.currentChar()) {
698
+ case "{":
699
+ return i.braceNest >= 1 && w(8, s(), 0), l.next(), d = k(
700
+ i,
701
+ 2,
702
+ "{"
703
+ /* BraceLeft */
704
+ ), L(l), i.braceNest++, d;
705
+ case "}":
706
+ return i.braceNest > 0 && i.currentType === 2 && w(7, s(), 0), l.next(), d = k(
707
+ i,
708
+ 3,
709
+ "}"
710
+ /* BraceRight */
711
+ ), i.braceNest--, i.braceNest > 0 && L(l), i.inLinked && i.braceNest === 0 && (i.inLinked = !1), d;
712
+ case "@":
713
+ return i.braceNest > 0 && w(6, s(), 0), d = z(l, i) || C(i), i.braceNest = 0, d;
714
+ default:
715
+ let P = !0, D = !0, H = !0;
716
+ if (q(l))
717
+ return i.braceNest > 0 && w(6, s(), 0), d = k(i, 1, de(l)), i.braceNest = 0, i.inLinked = !1, d;
718
+ if (i.braceNest > 0 && (i.currentType === 5 || i.currentType === 6 || i.currentType === 7))
719
+ return w(6, s(), 0), i.braceNest = 0, pe(l, i);
720
+ if (P = v(l, i))
721
+ return d = k(i, 5, Ve(l)), L(l), d;
722
+ if (D = f(l, i))
723
+ return d = k(i, 6, We(l)), L(l), d;
724
+ if (H = E(l, i))
725
+ return d = k(i, 7, ft(l)), L(l), d;
726
+ if (!P && !D && !H)
727
+ return d = k(i, 13, Ae(l)), w(1, s(), 0, d.value), L(l), d;
728
+ break;
729
+ }
730
+ return d;
731
+ }
732
+ function z(l, i) {
733
+ const { currentType: d } = i;
734
+ let b = null;
735
+ const P = l.currentChar();
736
+ switch ((d === 8 || d === 9 || d === 12 || d === 10) && (P === A || P === B) && w(9, s(), 0), P) {
737
+ case "@":
738
+ return l.next(), b = k(
739
+ i,
740
+ 8,
741
+ "@"
742
+ /* LinkedAlias */
743
+ ), i.inLinked = !0, b;
744
+ case ".":
745
+ return L(l), l.next(), k(
746
+ i,
747
+ 9,
748
+ "."
749
+ /* LinkedDot */
750
+ );
751
+ case ":":
752
+ return L(l), l.next(), k(
753
+ i,
754
+ 10,
755
+ ":"
756
+ /* LinkedDelimiter */
757
+ );
758
+ default:
759
+ return q(l) ? (b = k(i, 1, de(l)), i.braceNest = 0, i.inLinked = !1, b) : O(l, i) || R(l, i) ? (L(l), z(l, i)) : S(l, i) ? (L(l), k(i, 12, je(l))) : M(l, i) ? (L(l), P === "{" ? ge(l, i) || b : k(i, 11, Ue(l))) : (d === 8 && w(9, s(), 0), i.braceNest = 0, i.inLinked = !1, pe(l, i));
760
+ }
761
+ }
762
+ function pe(l, i) {
763
+ let d = {
764
+ type: 14
765
+ /* EOF */
766
+ };
767
+ if (i.braceNest > 0)
768
+ return ge(l, i) || C(i);
769
+ if (i.inLinked)
770
+ return z(l, i) || C(i);
771
+ const b = l.currentChar();
772
+ switch (b) {
773
+ case "{":
774
+ return ge(l, i) || C(i);
775
+ case "}":
776
+ return w(5, s(), 0), l.next(), k(
777
+ i,
778
+ 3,
779
+ "}"
780
+ /* BraceRight */
781
+ );
782
+ case "@":
783
+ return z(l, i) || C(i);
784
+ default:
785
+ if (q(l))
786
+ return d = k(i, 1, de(l)), i.braceNest = 0, i.inLinked = !1, d;
787
+ if (me(l))
788
+ return k(i, 0, Re(l));
789
+ if (b === "%")
790
+ return l.next(), k(
791
+ i,
792
+ 4,
793
+ "%"
794
+ /* Modulo */
795
+ );
796
+ break;
797
+ }
798
+ return d;
799
+ }
800
+ function He() {
801
+ const { currentType: l, offset: i, startLoc: d, endLoc: b } = g;
802
+ return g.lastType = l, g.lastOffset = i, g.lastStartLoc = d, g.lastEndLoc = b, g.offset = a(), g.startLoc = s(), r.currentChar() === Q ? k(
803
+ g,
804
+ 14
805
+ /* EOF */
806
+ ) : pe(r, g);
807
+ }
808
+ return {
809
+ nextToken: He,
810
+ currentOffset: a,
811
+ currentPosition: s,
812
+ context: p
813
+ };
814
+ }
815
+ const Vn = "parser", Wn = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
816
+ function xn(e, t, n) {
817
+ switch (e) {
818
+ case "\\\\":
819
+ return "\\";
820
+ case "\\'":
821
+ return "'";
822
+ default: {
823
+ const r = parseInt(t || n, 16);
824
+ return r <= 55295 || r >= 57344 ? String.fromCodePoint(r) : "�";
825
+ }
826
+ }
827
+ }
828
+ function An(e = {}) {
829
+ const t = e.location !== !1, { onError: n } = e;
830
+ function r(u, _, v, f, ...E) {
831
+ const O = u.currentPosition();
832
+ if (O.offset += f, O.column += f, n) {
833
+ const S = qe(v, O), R = Fe(_, S, {
834
+ domain: Vn,
835
+ args: E
836
+ });
837
+ n(R);
838
+ }
839
+ }
840
+ function a(u, _, v) {
841
+ const f = {
842
+ type: u,
843
+ start: _,
844
+ end: _
845
+ };
846
+ return t && (f.loc = { start: v, end: v }), f;
847
+ }
848
+ function s(u, _, v, f) {
849
+ u.end = _, t && u.loc && (u.loc.end = v);
850
+ }
851
+ function o(u, _) {
852
+ const v = u.context(), f = a(3, v.offset, v.startLoc);
853
+ return f.value = _, s(f, u.currentOffset(), u.currentPosition()), f;
854
+ }
855
+ function c(u, _) {
856
+ const v = u.context(), { lastOffset: f, lastStartLoc: E } = v, O = a(5, f, E);
857
+ return O.index = parseInt(_, 10), u.nextToken(), s(O, u.currentOffset(), u.currentPosition()), O;
858
+ }
859
+ function g(u, _) {
860
+ const v = u.context(), { lastOffset: f, lastStartLoc: E } = v, O = a(4, f, E);
861
+ return O.key = _, u.nextToken(), s(O, u.currentOffset(), u.currentPosition()), O;
862
+ }
863
+ function p(u, _) {
864
+ const v = u.context(), { lastOffset: f, lastStartLoc: E } = v, O = a(9, f, E);
865
+ return O.value = _.replace(Wn, xn), u.nextToken(), s(O, u.currentOffset(), u.currentPosition()), O;
866
+ }
867
+ function h(u) {
868
+ const _ = u.nextToken(), v = u.context(), { lastOffset: f, lastStartLoc: E } = v, O = a(8, f, E);
869
+ return _.type !== 12 ? (r(u, 11, v.lastStartLoc, 0), O.value = "", s(O, f, E), {
870
+ nextConsumeToken: _,
871
+ node: O
872
+ }) : (_.value == null && r(u, 13, v.lastStartLoc, 0, K(_)), O.value = _.value || "", s(O, u.currentOffset(), u.currentPosition()), {
873
+ node: O
874
+ });
875
+ }
876
+ function w(u, _) {
877
+ const v = u.context(), f = a(7, v.offset, v.startLoc);
878
+ return f.value = _, s(f, u.currentOffset(), u.currentPosition()), f;
879
+ }
880
+ function k(u) {
881
+ const _ = u.context(), v = a(6, _.offset, _.startLoc);
882
+ let f = u.nextToken();
883
+ if (f.type === 9) {
884
+ const E = h(u);
885
+ v.modifier = E.node, f = E.nextConsumeToken || u.nextToken();
886
+ }
887
+ switch (f.type !== 10 && r(u, 13, _.lastStartLoc, 0, K(f)), f = u.nextToken(), f.type === 2 && (f = u.nextToken()), f.type) {
888
+ case 11:
889
+ f.value == null && r(u, 13, _.lastStartLoc, 0, K(f)), v.key = w(u, f.value || "");
890
+ break;
891
+ case 5:
892
+ f.value == null && r(u, 13, _.lastStartLoc, 0, K(f)), v.key = g(u, f.value || "");
893
+ break;
894
+ case 6:
895
+ f.value == null && r(u, 13, _.lastStartLoc, 0, K(f)), v.key = c(u, f.value || "");
896
+ break;
897
+ case 7:
898
+ f.value == null && r(u, 13, _.lastStartLoc, 0, K(f)), v.key = p(u, f.value || "");
899
+ break;
900
+ default:
901
+ r(u, 12, _.lastStartLoc, 0);
902
+ const E = u.context(), O = a(7, E.offset, E.startLoc);
903
+ return O.value = "", s(O, E.offset, E.startLoc), v.key = O, s(v, E.offset, E.startLoc), {
904
+ nextConsumeToken: f,
905
+ node: v
906
+ };
907
+ }
908
+ return s(v, u.currentOffset(), u.currentPosition()), {
909
+ node: v
910
+ };
911
+ }
912
+ function C(u) {
913
+ const _ = u.context(), v = _.currentType === 1 ? u.currentOffset() : _.offset, f = _.currentType === 1 ? _.endLoc : _.startLoc, E = a(2, v, f);
914
+ E.items = [];
915
+ let O = null;
916
+ do {
917
+ const M = O || u.nextToken();
918
+ switch (O = null, M.type) {
919
+ case 0:
920
+ M.value == null && r(u, 13, _.lastStartLoc, 0, K(M)), E.items.push(o(u, M.value || ""));
921
+ break;
922
+ case 6:
923
+ M.value == null && r(u, 13, _.lastStartLoc, 0, K(M)), E.items.push(c(u, M.value || ""));
924
+ break;
925
+ case 5:
926
+ M.value == null && r(u, 13, _.lastStartLoc, 0, K(M)), E.items.push(g(u, M.value || ""));
927
+ break;
928
+ case 7:
929
+ M.value == null && r(u, 13, _.lastStartLoc, 0, K(M)), E.items.push(p(u, M.value || ""));
930
+ break;
931
+ case 8:
932
+ const q = k(u);
933
+ E.items.push(q.node), O = q.nextConsumeToken || null;
934
+ break;
935
+ }
936
+ } while (_.currentType !== 14 && _.currentType !== 1);
937
+ const S = _.currentType === 1 ? _.lastOffset : u.currentOffset(), R = _.currentType === 1 ? _.lastEndLoc : u.currentPosition();
938
+ return s(E, S, R), E;
939
+ }
940
+ function N(u, _, v, f) {
941
+ const E = u.context();
942
+ let O = f.items.length === 0;
943
+ const S = a(1, _, v);
944
+ S.cases = [], S.cases.push(f);
945
+ do {
946
+ const R = C(u);
947
+ O || (O = R.items.length === 0), S.cases.push(R);
948
+ } while (E.currentType !== 14);
949
+ return O && r(u, 10, v, 0), s(S, u.currentOffset(), u.currentPosition()), S;
950
+ }
951
+ function I(u) {
952
+ const _ = u.context(), { offset: v, startLoc: f } = _, E = C(u);
953
+ return _.currentType === 14 ? E : N(u, v, f, E);
954
+ }
955
+ function L(u) {
956
+ const _ = Rn(u, { ...e }), v = _.context(), f = a(0, v.offset, v.startLoc);
957
+ return t && f.loc && (f.loc.source = u), f.body = I(_), v.currentType !== 14 && r(_, 13, v.lastStartLoc, 0, u[v.offset] || ""), s(f, _.currentOffset(), _.currentPosition()), f;
958
+ }
959
+ return { parse: L };
960
+ }
961
+ function K(e) {
962
+ if (e.type === 14)
963
+ return "EOF";
964
+ const t = (e.value || "").replace(/\r?\n/gu, "\\n");
965
+ return t.length > 10 ? t.slice(0, 9) + "…" : t;
966
+ }
967
+ function jn(e, t = {}) {
968
+ const n = {
969
+ ast: e,
970
+ helpers: /* @__PURE__ */ new Set()
971
+ };
972
+ return { context: () => n, helper: (s) => (n.helpers.add(s), s) };
973
+ }
974
+ function wt(e, t) {
975
+ for (let n = 0; n < e.length; n++)
976
+ st(e[n], t);
977
+ }
978
+ function st(e, t) {
979
+ switch (e.type) {
980
+ case 1:
981
+ wt(e.cases, t), t.helper(
982
+ "plural"
983
+ /* PLURAL */
984
+ );
985
+ break;
986
+ case 2:
987
+ wt(e.items, t);
988
+ break;
989
+ case 6:
990
+ st(e.key, t), t.helper(
991
+ "linked"
992
+ /* LINKED */
993
+ );
994
+ break;
995
+ case 5:
996
+ t.helper(
997
+ "interpolate"
998
+ /* INTERPOLATE */
999
+ ), t.helper(
1000
+ "list"
1001
+ /* LIST */
1002
+ );
1003
+ break;
1004
+ case 4:
1005
+ t.helper(
1006
+ "interpolate"
1007
+ /* INTERPOLATE */
1008
+ ), t.helper(
1009
+ "named"
1010
+ /* NAMED */
1011
+ );
1012
+ break;
1013
+ }
1014
+ }
1015
+ function Un(e, t = {}) {
1016
+ const n = jn(e);
1017
+ n.helper(
1018
+ "normalize"
1019
+ /* NORMALIZE */
1020
+ ), e.body && st(e.body, n);
1021
+ const r = n.context();
1022
+ e.helpers = Array.from(r.helpers);
1023
+ }
1024
+ function Hn(e, t) {
1025
+ const { filename: n, breakLineCode: r, needIndent: a } = t, s = {
1026
+ source: e.loc.source,
1027
+ filename: n,
1028
+ code: "",
1029
+ column: 1,
1030
+ line: 1,
1031
+ offset: 0,
1032
+ map: void 0,
1033
+ breakLineCode: r,
1034
+ needIndent: a,
1035
+ indentLevel: 0
1036
+ }, o = () => s;
1037
+ function c(N, I) {
1038
+ s.code += N;
1039
+ }
1040
+ function g(N, I = !0) {
1041
+ const L = I ? r : "";
1042
+ c(a ? L + " ".repeat(N) : L);
1043
+ }
1044
+ function p(N = !0) {
1045
+ const I = ++s.indentLevel;
1046
+ N && g(I);
1047
+ }
1048
+ function h(N = !0) {
1049
+ const I = --s.indentLevel;
1050
+ N && g(I);
1051
+ }
1052
+ function w() {
1053
+ g(s.indentLevel);
1054
+ }
1055
+ return {
1056
+ context: o,
1057
+ push: c,
1058
+ indent: p,
1059
+ deindent: h,
1060
+ newline: w,
1061
+ helper: (N) => `_${N}`,
1062
+ needIndent: () => s.needIndent
1063
+ };
1064
+ }
1065
+ function Gn(e, t) {
1066
+ const { helper: n } = e;
1067
+ e.push(`${n(
1068
+ "linked"
1069
+ /* LINKED */
1070
+ )}(`), ue(e, t.key), t.modifier && (e.push(", "), ue(e, t.modifier)), e.push(")");
1071
+ }
1072
+ function Yn(e, t) {
1073
+ const { helper: n, needIndent: r } = e;
1074
+ e.push(`${n(
1075
+ "normalize"
1076
+ /* NORMALIZE */
1077
+ )}([`), e.indent(r());
1078
+ const a = t.items.length;
1079
+ for (let s = 0; s < a && (ue(e, t.items[s]), s !== a - 1); s++)
1080
+ e.push(", ");
1081
+ e.deindent(r()), e.push("])");
1082
+ }
1083
+ function Kn(e, t) {
1084
+ const { helper: n, needIndent: r } = e;
1085
+ if (t.cases.length > 1) {
1086
+ e.push(`${n(
1087
+ "plural"
1088
+ /* PLURAL */
1089
+ )}([`), e.indent(r());
1090
+ const a = t.cases.length;
1091
+ for (let s = 0; s < a && (ue(e, t.cases[s]), s !== a - 1); s++)
1092
+ e.push(", ");
1093
+ e.deindent(r()), e.push("])");
1094
+ }
1095
+ }
1096
+ function qn(e, t) {
1097
+ t.body ? ue(e, t.body) : e.push("null");
1098
+ }
1099
+ function ue(e, t) {
1100
+ const { helper: n } = e;
1101
+ switch (t.type) {
1102
+ case 0:
1103
+ qn(e, t);
1104
+ break;
1105
+ case 1:
1106
+ Kn(e, t);
1107
+ break;
1108
+ case 2:
1109
+ Yn(e, t);
1110
+ break;
1111
+ case 6:
1112
+ Gn(e, t);
1113
+ break;
1114
+ case 8:
1115
+ e.push(JSON.stringify(t.value), t);
1116
+ break;
1117
+ case 7:
1118
+ e.push(JSON.stringify(t.value), t);
1119
+ break;
1120
+ case 5:
1121
+ e.push(`${n(
1122
+ "interpolate"
1123
+ /* INTERPOLATE */
1124
+ )}(${n(
1125
+ "list"
1126
+ /* LIST */
1127
+ )}(${t.index}))`, t);
1128
+ break;
1129
+ case 4:
1130
+ e.push(`${n(
1131
+ "interpolate"
1132
+ /* INTERPOLATE */
1133
+ )}(${n(
1134
+ "named"
1135
+ /* NAMED */
1136
+ )}(${JSON.stringify(t.key)}))`, t);
1137
+ break;
1138
+ case 9:
1139
+ e.push(JSON.stringify(t.value), t);
1140
+ break;
1141
+ case 3:
1142
+ e.push(JSON.stringify(t.value), t);
1143
+ break;
1144
+ default:
1145
+ if (process.env.NODE_ENV !== "production")
1146
+ throw new Error(`unhandled codegen node type: ${t.type}`);
1147
+ }
1148
+ }
1149
+ const Bn = (e, t = {}) => {
1150
+ const n = T(t.mode) ? t.mode : "normal", r = T(t.filename) ? t.filename : "message.intl";
1151
+ t.sourceMap;
1152
+ const a = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
1153
+ `, s = t.needIndent ? t.needIndent : n !== "arrow", o = e.helpers || [], c = Hn(e, {
1154
+ filename: r,
1155
+ breakLineCode: a,
1156
+ needIndent: s
1157
+ });
1158
+ c.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), c.indent(s), o.length > 0 && (c.push(`const { ${o.map((h) => `${h}: _${h}`).join(", ")} } = ctx`), c.newline()), c.push("return "), ue(c, e), c.deindent(s), c.push("}");
1159
+ const { code: g, map: p } = c.context();
1160
+ return {
1161
+ ast: e,
1162
+ code: g,
1163
+ map: p ? p.toJSON() : void 0
1164
+ // eslint-disable-line @typescript-eslint/no-explicit-any
1165
+ };
1166
+ };
1167
+ function Jn(e, t = {}) {
1168
+ const r = An({ ...t }).parse(e);
1169
+ return Un(r, { ...t }), Bn(r, { ...t });
1170
+ }
1171
+ const Qn = {
1172
+ 0: "Not found '{key}' key in '{locale}' locale messages.",
1173
+ 1: "Fall back to translate '{key}' key with '{target}' locale.",
1174
+ 2: "Cannot format a number value due to not supported Intl.NumberFormat.",
1175
+ 3: "Fall back to number format '{key}' key with '{target}' locale.",
1176
+ 4: "Cannot format a date value due to not supported Intl.DateTimeFormat.",
1177
+ 5: "Fall back to datetime format '{key}' key with '{target}' locale."
1178
+ };
1179
+ function fe(e, ...t) {
1180
+ return Ie(Qn[e], ...t);
1181
+ }
1182
+ const Ce = -1, Oe = "";
1183
+ function Zn() {
1184
+ return {
1185
+ upper: (e) => T(e) ? e.toUpperCase() : e,
1186
+ lower: (e) => T(e) ? e.toLowerCase() : e,
1187
+ // prettier-ignore
1188
+ capitalize: (e) => T(e) ? `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}` : e
1189
+ };
1190
+ }
1191
+ let jt;
1192
+ function Xn(e) {
1193
+ jt = e;
1194
+ }
1195
+ function zn(e = {}) {
1196
+ const t = T(e.locale) ? e.locale : "en-US", n = x(e.fallbackLocale) || F(e.fallbackLocale) || T(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, r = F(e.messages) ? e.messages : { [t]: {} }, a = F(e.datetimeFormats) ? e.datetimeFormats : { [t]: {} }, s = F(e.numberFormats) ? e.numberFormats : { [t]: {} }, o = Object.assign({}, e.modifiers || {}, Zn()), c = e.pluralRules || {}, g = W(e.missing) ? e.missing : null, p = $(e.missingWarn) || Le(e.missingWarn) ? e.missingWarn : !0, h = $(e.fallbackWarn) || Le(e.fallbackWarn) ? e.fallbackWarn : !0, w = !!e.fallbackFormat, k = !!e.unresolving, C = W(e.postTranslation) ? e.postTranslation : null, N = F(e.processor) ? e.processor : null, I = $(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, L = !!e.escapeParameter, u = W(e.messageCompiler) ? e.messageCompiler : jt, _ = W(e.onWarn) ? e.onWarn : ae, v = e, f = j(v.__datetimeFormatters) ? v.__datetimeFormatters : /* @__PURE__ */ new Map(), E = j(v.__numberFormatters) ? v.__numberFormatters : /* @__PURE__ */ new Map(), O = {
1197
+ locale: t,
1198
+ fallbackLocale: n,
1199
+ messages: r,
1200
+ datetimeFormats: a,
1201
+ numberFormats: s,
1202
+ modifiers: o,
1203
+ pluralRules: c,
1204
+ missing: g,
1205
+ missingWarn: p,
1206
+ fallbackWarn: h,
1207
+ fallbackFormat: w,
1208
+ unresolving: k,
1209
+ postTranslation: C,
1210
+ processor: N,
1211
+ warnHtmlMessage: I,
1212
+ escapeParameter: L,
1213
+ messageCompiler: u,
1214
+ onWarn: _,
1215
+ __datetimeFormatters: f,
1216
+ __numberFormatters: E
1217
+ };
1218
+ return process.env.NODE_ENV !== "production" && (O.__emitter = v.__emitter != null ? v.__emitter : void 0), O;
1219
+ }
1220
+ function ot(e, t) {
1221
+ return e instanceof RegExp ? e.test(t) : e;
1222
+ }
1223
+ function er(e, t) {
1224
+ return e instanceof RegExp ? e.test(t) : e;
1225
+ }
1226
+ function lt(e, t, n, r, a) {
1227
+ const { missing: s, onWarn: o } = e;
1228
+ if (process.env.NODE_ENV !== "production") {
1229
+ const c = e.__emitter;
1230
+ c && c.emit("missing", {
1231
+ locale: n,
1232
+ key: t,
1233
+ type: a,
1234
+ groupId: `${a}:${t}`
1235
+ });
1236
+ }
1237
+ if (s !== null) {
1238
+ const c = s(e, n, t, a);
1239
+ return T(c) ? c : t;
1240
+ } else
1241
+ return process.env.NODE_ENV !== "production" && er(r, t) && o(fe(0, { key: t, locale: n })), t;
1242
+ }
1243
+ function De(e, t, n) {
1244
+ const r = e;
1245
+ r.__localeChainCache || (r.__localeChainCache = /* @__PURE__ */ new Map());
1246
+ let a = r.__localeChainCache.get(n);
1247
+ if (!a) {
1248
+ a = [];
1249
+ let s = [n];
1250
+ for (; x(s); )
1251
+ s = Nt(a, s, t);
1252
+ const o = x(t) ? t : F(t) ? t.default ? t.default : null : t;
1253
+ s = T(o) ? [o] : o, x(s) && Nt(a, s, !1), r.__localeChainCache.set(n, a);
1254
+ }
1255
+ return a;
1256
+ }
1257
+ function Nt(e, t, n) {
1258
+ let r = !0;
1259
+ for (let a = 0; a < t.length && $(r); a++) {
1260
+ const s = t[a];
1261
+ T(s) && (r = tr(e, t[a], n));
1262
+ }
1263
+ return r;
1264
+ }
1265
+ function tr(e, t, n) {
1266
+ let r;
1267
+ const a = t.split("-");
1268
+ do {
1269
+ const s = a.join("-");
1270
+ r = nr(e, s, n), a.splice(-1, 1);
1271
+ } while (a.length && r === !0);
1272
+ return r;
1273
+ }
1274
+ function nr(e, t, n) {
1275
+ let r = !1;
1276
+ if (!e.includes(t) && (r = !0, t)) {
1277
+ r = t[t.length - 1] !== "!";
1278
+ const a = t.replace(/!/g, "");
1279
+ e.push(a), (x(n) || F(n)) && n[a] && (r = n[a]);
1280
+ }
1281
+ return r;
1282
+ }
1283
+ function _e(e, t, n) {
1284
+ const r = e;
1285
+ r.__localeChainCache = /* @__PURE__ */ new Map(), De(e, n, t);
1286
+ }
1287
+ const rr = /<\/?[\w\s="/.':;#-\/]+>/, ar = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
1288
+ function sr(e, t) {
1289
+ ($(t.warnHtmlMessage) ? t.warnHtmlMessage : !0) && rr.test(e) && ae(Ie(ar, { source: e }));
1290
+ }
1291
+ const or = (e) => e;
1292
+ let Lt = /* @__PURE__ */ Object.create(null);
1293
+ function lr(e, t = {}) {
1294
+ {
1295
+ process.env.NODE_ENV !== "production" && sr(e, t);
1296
+ const r = (t.onCacheKey || or)(e), a = Lt[r];
1297
+ if (a)
1298
+ return a;
1299
+ let s = !1;
1300
+ const o = t.onError || In;
1301
+ t.onError = (p) => {
1302
+ s = !0, o(p);
1303
+ };
1304
+ const { code: c } = Jn(e, t), g = new Function(`return ${c}`)();
1305
+ return s ? g : Lt[r] = g;
1306
+ }
1307
+ }
1308
+ function ce(e) {
1309
+ return Fe(e, null, process.env.NODE_ENV !== "production" ? { messages: cr } : void 0);
1310
+ }
1311
+ const cr = {
1312
+ 14: "Invalid arguments",
1313
+ 15: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
1314
+ 16: "The argument provided is not a valid ISO date string"
1315
+ }, Et = () => "", Te = (e) => W(e);
1316
+ function Ot(e, ...t) {
1317
+ const { fallbackFormat: n, postTranslation: r, unresolving: a, fallbackLocale: s } = e, [o, c] = Be(...t), g = $(c.missingWarn) ? c.missingWarn : e.missingWarn, p = $(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, h = $(c.escapeParameter) ? c.escapeParameter : e.escapeParameter, w = T(c.default) || $(c.default) ? $(c.default) ? o : c.default : n ? o : "", k = n || w !== "", C = T(c.locale) ? c.locale : e.locale;
1318
+ h && ir(c);
1319
+ let [N, I, L] = ur(e, o, C, s, p, g), u = o;
1320
+ if (T(N) || Te(N) || k && (N = w, u = N), !(T(N) || Te(N)) || !T(I))
1321
+ return a ? Ce : o;
1322
+ if (process.env.NODE_ENV !== "production" && T(N) && e.messageCompiler == null)
1323
+ return ae(`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 '${o}'.`), o;
1324
+ let _ = !1;
1325
+ const f = Ut(e, o, I, N, u, () => {
1326
+ _ = !0;
1327
+ });
1328
+ if (_)
1329
+ return N;
1330
+ const E = dr(e, I, L, c), O = Tn(E), S = fr(e, f, O);
1331
+ return r ? r(S) : S;
1332
+ }
1333
+ function ir(e) {
1334
+ x(e.list) ? e.list = e.list.map((t) => T(t) ? bt(t) : t) : j(e.named) && Object.keys(e.named).forEach((t) => {
1335
+ T(e.named[t]) && (e.named[t] = bt(e.named[t]));
1336
+ });
1337
+ }
1338
+ function ur(e, t, n, r, a, s) {
1339
+ const { messages: o, onWarn: c } = e, g = De(e, r, n);
1340
+ let p = {}, h, w = null, k = n, C = null;
1341
+ const N = "translate";
1342
+ for (let I = 0; I < g.length; I++) {
1343
+ if (h = C = g[I], process.env.NODE_ENV !== "production" && n !== h && ot(a, t) && c(fe(1, {
1344
+ key: t,
1345
+ target: h
1346
+ })), process.env.NODE_ENV !== "production" && n !== h) {
1347
+ const f = e.__emitter;
1348
+ f && f.emit("fallback", {
1349
+ type: N,
1350
+ key: t,
1351
+ from: k,
1352
+ to: C,
1353
+ groupId: `${N}:${t}`
1354
+ });
1355
+ }
1356
+ p = o[h] || {};
1357
+ let L = null, u, _;
1358
+ if (process.env.NODE_ENV !== "production" && te && (L = window.performance.now(), u = "intlify-message-resolve-start", _ = "intlify-message-resolve-end", U && U(u)), (w = Ee(p, t)) === null && (w = p[t]), process.env.NODE_ENV !== "production" && te) {
1359
+ const f = window.performance.now(), E = e.__emitter;
1360
+ E && L && w && E.emit("message-resolve", {
1361
+ type: "message-resolve",
1362
+ key: t,
1363
+ message: w,
1364
+ time: f - L,
1365
+ groupId: `${N}:${t}`
1366
+ }), u && _ && U && ne && (U(_), ne("intlify message resolve", u, _));
1367
+ }
1368
+ if (T(w) || W(w))
1369
+ break;
1370
+ const v = lt(e, t, h, s, N);
1371
+ v !== t && (w = v), k = C;
1372
+ }
1373
+ return [w, h, p];
1374
+ }
1375
+ function Ut(e, t, n, r, a, s) {
1376
+ const { messageCompiler: o, warnHtmlMessage: c } = e;
1377
+ if (Te(r)) {
1378
+ const k = r;
1379
+ return k.locale = k.locale || n, k.key = k.key || t, k;
1380
+ }
1381
+ let g = null, p, h;
1382
+ process.env.NODE_ENV !== "production" && te && (g = window.performance.now(), p = "intlify-message-compilation-start", h = "intlify-message-compilation-end", U && U(p));
1383
+ const w = o(r, mr(e, n, a, r, c, s));
1384
+ if (process.env.NODE_ENV !== "production" && te) {
1385
+ const k = window.performance.now(), C = e.__emitter;
1386
+ C && g && C.emit("message-compilation", {
1387
+ type: "message-compilation",
1388
+ message: r,
1389
+ time: k - g,
1390
+ groupId: `translate:${t}`
1391
+ }), p && h && U && ne && (U(h), ne("intlify message compilation", p, h));
1392
+ }
1393
+ return w.locale = n, w.key = t, w.source = r, w;
1394
+ }
1395
+ function fr(e, t, n) {
1396
+ let r = null, a, s;
1397
+ process.env.NODE_ENV !== "production" && te && (r = window.performance.now(), a = "intlify-message-evaluation-start", s = "intlify-message-evaluation-end", U && U(a));
1398
+ const o = t(n);
1399
+ if (process.env.NODE_ENV !== "production" && te) {
1400
+ const c = window.performance.now(), g = e.__emitter;
1401
+ g && r && g.emit("message-evaluation", {
1402
+ type: "message-evaluation",
1403
+ value: o,
1404
+ time: c - r,
1405
+ groupId: `translate:${t.key}`
1406
+ }), a && s && U && ne && (U(s), ne("intlify message evaluation", a, s));
1407
+ }
1408
+ return o;
1409
+ }
1410
+ function Be(...e) {
1411
+ const [t, n, r] = e, a = {};
1412
+ if (!T(t) && !V(t))
1413
+ throw ce(
1414
+ 14
1415
+ /* INVALID_ARGUMENT */
1416
+ );
1417
+ const s = V(t) ? String(t) : t;
1418
+ return V(n) ? a.plural = n : T(n) ? a.default = n : F(n) && !Pe(n) ? a.named = n : x(n) && (a.list = n), V(r) ? a.plural = r : T(r) ? a.default = r : F(r) && Object.assign(a, r), [s, a];
1419
+ }
1420
+ function mr(e, t, n, r, a, s) {
1421
+ return {
1422
+ warnHtmlMessage: a,
1423
+ onError: (o) => {
1424
+ if (s && s(o), process.env.NODE_ENV !== "production") {
1425
+ const c = `Message compilation error: ${o.message}`, g = o.location && mn(r, o.location.start.offset, o.location.end.offset), p = e.__emitter;
1426
+ p && p.emit("compile-error", {
1427
+ message: r,
1428
+ error: o.message,
1429
+ start: o.location && o.location.start.offset,
1430
+ end: o.location && o.location.end.offset,
1431
+ groupId: `translate:${n}`
1432
+ }), console.error(g ? `${c}
1433
+ ${g}` : c);
1434
+ } else
1435
+ throw o;
1436
+ },
1437
+ onCacheKey: (o) => on(t, n, o)
1438
+ };
1439
+ }
1440
+ function dr(e, t, n, r) {
1441
+ const { modifiers: a, pluralRules: s } = e, c = {
1442
+ locale: t,
1443
+ modifiers: a,
1444
+ pluralRules: s,
1445
+ messages: (g) => {
1446
+ const p = Ee(n, g);
1447
+ if (T(p)) {
1448
+ let h = !1;
1449
+ const k = Ut(e, g, t, p, g, () => {
1450
+ h = !0;
1451
+ });
1452
+ return h ? Et : k;
1453
+ } else return Te(p) ? p : Et;
1454
+ }
1455
+ };
1456
+ return e.processor && (c.processor = e.processor), r.list && (c.list = r.list), r.named && (c.named = r.named), V(r.plural) && (c.pluralIndex = r.plural), c;
1457
+ }
1458
+ const Tt = typeof Intl < "u", Ht = {
1459
+ dateTimeFormat: Tt && typeof Intl.DateTimeFormat < "u",
1460
+ numberFormat: Tt && typeof Intl.NumberFormat < "u"
1461
+ };
1462
+ function St(e, ...t) {
1463
+ const { datetimeFormats: n, unresolving: r, fallbackLocale: a, onWarn: s } = e, { __datetimeFormatters: o } = e;
1464
+ if (process.env.NODE_ENV !== "production" && !Ht.dateTimeFormat)
1465
+ return s(fe(
1466
+ 4
1467
+ /* CANNOT_FORMAT_DATE */
1468
+ )), Oe;
1469
+ const [c, g, p, h] = Je(...t), w = $(p.missingWarn) ? p.missingWarn : e.missingWarn, k = $(p.fallbackWarn) ? p.fallbackWarn : e.fallbackWarn, C = !!p.part, N = T(p.locale) ? p.locale : e.locale, I = De(e, a, N);
1470
+ if (!T(c) || c === "")
1471
+ return new Intl.DateTimeFormat(N).format(g);
1472
+ let L = {}, u, _ = null, v = N, f = null;
1473
+ const E = "datetime format";
1474
+ for (let R = 0; R < I.length; R++) {
1475
+ if (u = f = I[R], process.env.NODE_ENV !== "production" && N !== u && ot(k, c) && s(fe(5, {
1476
+ key: c,
1477
+ target: u
1478
+ })), process.env.NODE_ENV !== "production" && N !== u) {
1479
+ const M = e.__emitter;
1480
+ M && M.emit("fallback", {
1481
+ type: E,
1482
+ key: c,
1483
+ from: v,
1484
+ to: f,
1485
+ groupId: `${E}:${c}`
1486
+ });
1487
+ }
1488
+ if (L = n[u] || {}, _ = L[c], F(_))
1489
+ break;
1490
+ lt(e, c, u, w, E), v = f;
1491
+ }
1492
+ if (!F(_) || !T(u))
1493
+ return r ? Ce : c;
1494
+ let O = `${u}__${c}`;
1495
+ Pe(h) || (O = `${O}__${JSON.stringify(h)}`);
1496
+ let S = o.get(O);
1497
+ return S || (S = new Intl.DateTimeFormat(u, Object.assign({}, _, h)), o.set(O, S)), C ? S.formatToParts(g) : S.format(g);
1498
+ }
1499
+ function Je(...e) {
1500
+ const [t, n, r, a] = e;
1501
+ let s = {}, o = {}, c;
1502
+ if (T(t)) {
1503
+ if (!/\d{4}-\d{2}-\d{2}(T.*)?/.test(t))
1504
+ throw ce(
1505
+ 16
1506
+ /* INVALID_ISO_DATE_ARGUMENT */
1507
+ );
1508
+ c = new Date(t);
1509
+ try {
1510
+ c.toISOString();
1511
+ } catch {
1512
+ throw ce(
1513
+ 16
1514
+ /* INVALID_ISO_DATE_ARGUMENT */
1515
+ );
1516
+ }
1517
+ } else if (cn(t)) {
1518
+ if (isNaN(t.getTime()))
1519
+ throw ce(
1520
+ 15
1521
+ /* INVALID_DATE_ARGUMENT */
1522
+ );
1523
+ c = t;
1524
+ } else if (V(t))
1525
+ c = t;
1526
+ else
1527
+ throw ce(
1528
+ 14
1529
+ /* INVALID_ARGUMENT */
1530
+ );
1531
+ return T(n) ? s.key = n : F(n) && (s = n), T(r) ? s.locale = r : F(r) && (o = r), F(a) && (o = a), [s.key || "", c, s, o];
1532
+ }
1533
+ function It(e, t, n) {
1534
+ const r = e;
1535
+ for (const a in n) {
1536
+ const s = `${t}__${a}`;
1537
+ r.__datetimeFormatters.has(s) && r.__datetimeFormatters.delete(s);
1538
+ }
1539
+ }
1540
+ function Pt(e, ...t) {
1541
+ const { numberFormats: n, unresolving: r, fallbackLocale: a, onWarn: s } = e, { __numberFormatters: o } = e;
1542
+ if (process.env.NODE_ENV !== "production" && !Ht.numberFormat)
1543
+ return s(fe(
1544
+ 2
1545
+ /* CANNOT_FORMAT_NUMBER */
1546
+ )), Oe;
1547
+ const [c, g, p, h] = Qe(...t), w = $(p.missingWarn) ? p.missingWarn : e.missingWarn, k = $(p.fallbackWarn) ? p.fallbackWarn : e.fallbackWarn, C = !!p.part, N = T(p.locale) ? p.locale : e.locale, I = De(e, a, N);
1548
+ if (!T(c) || c === "")
1549
+ return new Intl.NumberFormat(N).format(g);
1550
+ let L = {}, u, _ = null, v = N, f = null;
1551
+ const E = "number format";
1552
+ for (let R = 0; R < I.length; R++) {
1553
+ if (u = f = I[R], process.env.NODE_ENV !== "production" && N !== u && ot(k, c) && s(fe(3, {
1554
+ key: c,
1555
+ target: u
1556
+ })), process.env.NODE_ENV !== "production" && N !== u) {
1557
+ const M = e.__emitter;
1558
+ M && M.emit("fallback", {
1559
+ type: E,
1560
+ key: c,
1561
+ from: v,
1562
+ to: f,
1563
+ groupId: `${E}:${c}`
1564
+ });
1565
+ }
1566
+ if (L = n[u] || {}, _ = L[c], F(_))
1567
+ break;
1568
+ lt(e, c, u, w, E), v = f;
1569
+ }
1570
+ if (!F(_) || !T(u))
1571
+ return r ? Ce : c;
1572
+ let O = `${u}__${c}`;
1573
+ Pe(h) || (O = `${O}__${JSON.stringify(h)}`);
1574
+ let S = o.get(O);
1575
+ return S || (S = new Intl.NumberFormat(u, Object.assign({}, _, h)), o.set(O, S)), C ? S.formatToParts(g) : S.format(g);
1576
+ }
1577
+ function Qe(...e) {
1578
+ const [t, n, r, a] = e;
1579
+ let s = {}, o = {};
1580
+ if (!V(t))
1581
+ throw ce(
1582
+ 14
1583
+ /* INVALID_ARGUMENT */
1584
+ );
1585
+ const c = t;
1586
+ return T(n) ? s.key = n : F(n) && (s = n), T(r) ? s.locale = r : F(r) && (o = r), F(a) && (o = a), [s.key || "", c, s, o];
1587
+ }
1588
+ function Ft(e, t, n) {
1589
+ const r = e;
1590
+ for (const a in n) {
1591
+ const s = `${t}__${a}`;
1592
+ r.__numberFormatters.has(s) && r.__numberFormatters.delete(s);
1593
+ }
1594
+ }
1595
+ const Ge = {
1596
+ "vue-devtools-plugin-vue-i18n": "Vue I18n devtools",
1597
+ "vue-i18n-resource-inspector": "I18n Resources",
1598
+ "vue-i18n-timeline": "Vue I18n"
1599
+ }, gr = {
1600
+ "vue-i18n-resource-inspector": "Search for scopes ..."
1601
+ }, pr = {
1602
+ "vue-i18n-timeline": 16764185
1603
+ };
1604
+ function Gt() {
1605
+ const e = /* @__PURE__ */ new Map();
1606
+ return {
1607
+ events: e,
1608
+ on(n, r) {
1609
+ const a = e.get(n);
1610
+ a && a.push(r) || e.set(n, [r]);
1611
+ },
1612
+ off(n, r) {
1613
+ const a = e.get(n);
1614
+ a && a.splice(a.indexOf(r) >>> 0, 1);
1615
+ },
1616
+ emit(n, r) {
1617
+ (e.get(n) || []).slice().map((a) => a(r)), (e.get("*") || []).slice().map((a) => a(n, r));
1618
+ }
1619
+ };
1620
+ }
1621
+ function _r() {
1622
+ return Yt().__VUE_DEVTOOLS_GLOBAL_HOOK__;
1623
+ }
1624
+ function Yt() {
1625
+ return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
1626
+ }
1627
+ const br = typeof Proxy == "function", hr = "devtools-plugin:setup", vr = "plugin:settings:set";
1628
+ let se, Ze;
1629
+ function yr() {
1630
+ var e;
1631
+ return se !== void 0 || (typeof window < "u" && window.performance ? (se = !0, Ze = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (se = !0, Ze = globalThis.perf_hooks.performance) : se = !1), se;
1632
+ }
1633
+ function kr() {
1634
+ return yr() ? Ze.now() : Date.now();
1635
+ }
1636
+ class wr {
1637
+ constructor(t, n) {
1638
+ this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
1639
+ const r = {};
1640
+ if (t.settings)
1641
+ for (const o in t.settings) {
1642
+ const c = t.settings[o];
1643
+ r[o] = c.defaultValue;
1644
+ }
1645
+ const a = `__vue-devtools-plugin-settings__${t.id}`;
1646
+ let s = Object.assign({}, r);
1647
+ try {
1648
+ const o = localStorage.getItem(a), c = JSON.parse(o);
1649
+ Object.assign(s, c);
1650
+ } catch {
1651
+ }
1652
+ this.fallbacks = {
1653
+ getSettings() {
1654
+ return s;
1655
+ },
1656
+ setSettings(o) {
1657
+ try {
1658
+ localStorage.setItem(a, JSON.stringify(o));
1659
+ } catch {
1660
+ }
1661
+ s = o;
1662
+ },
1663
+ now() {
1664
+ return kr();
1665
+ }
1666
+ }, n && n.on(vr, (o, c) => {
1667
+ o === this.plugin.id && this.fallbacks.setSettings(c);
1668
+ }), this.proxiedOn = new Proxy({}, {
1669
+ get: (o, c) => this.target ? this.target.on[c] : (...g) => {
1670
+ this.onQueue.push({
1671
+ method: c,
1672
+ args: g
1673
+ });
1674
+ }
1675
+ }), this.proxiedTarget = new Proxy({}, {
1676
+ get: (o, c) => this.target ? this.target[c] : c === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(c) ? (...g) => (this.targetQueue.push({
1677
+ method: c,
1678
+ args: g,
1679
+ resolve: () => {
1680
+ }
1681
+ }), this.fallbacks[c](...g)) : (...g) => new Promise((p) => {
1682
+ this.targetQueue.push({
1683
+ method: c,
1684
+ args: g,
1685
+ resolve: p
1686
+ });
1687
+ })
1688
+ });
1689
+ }
1690
+ async setRealTarget(t) {
1691
+ this.target = t;
1692
+ for (const n of this.onQueue)
1693
+ this.target.on[n.method](...n.args);
1694
+ for (const n of this.targetQueue)
1695
+ n.resolve(await this.target[n.method](...n.args));
1696
+ }
1697
+ }
1698
+ function Nr(e, t) {
1699
+ const n = e, r = Yt(), a = _r(), s = br && n.enableEarlyProxy;
1700
+ if (a && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !s))
1701
+ a.emit(hr, e, t);
1702
+ else {
1703
+ const o = s ? new wr(n, a) : null;
1704
+ (r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
1705
+ pluginDescriptor: n,
1706
+ setupFn: t,
1707
+ proxy: o
1708
+ }), o && t(o.proxiedTarget);
1709
+ }
1710
+ }
1711
+ function Lr() {
1712
+ let e = !1;
1713
+ process.env.NODE_ENV;
1714
+ }
1715
+ function Er() {
1716
+ const e = un();
1717
+ e.__INTLIFY__ = !0, console.info(`You are running a development build of vue-i18n.
1718
+ Make sure to use the production build (*.prod.js) when deploying for production.`);
1719
+ }
1720
+ const Or = {
1721
+ 6: "Fall back to {type} '{key}' with root locale.",
1722
+ 7: "Not supported 'preserve'.",
1723
+ 8: "Not supported 'formatter'.",
1724
+ 9: "Not supported 'preserveDirectiveContent'.",
1725
+ 10: "Not supported 'getChoiceIndex'.",
1726
+ 11: "Component name legacy compatible: '{name}' -> 'i18n'",
1727
+ 12: "Not found parent scope. use the global scope."
1728
+ };
1729
+ function Me(e, ...t) {
1730
+ return Ie(Or[e], ...t);
1731
+ }
1732
+ function G(e, ...t) {
1733
+ return Fe(e, null, process.env.NODE_ENV !== "production" ? { messages: Tr, args: t } : void 0);
1734
+ }
1735
+ const Tr = {
1736
+ 14: "Unexpected return type in composer",
1737
+ 15: "Invalid argument",
1738
+ 16: "Must be called at the top of a `setup` function",
1739
+ 17: "Need to install with `app.use` function",
1740
+ 22: "Unexpected error",
1741
+ 18: "Not available in legacy mode",
1742
+ 19: "Required in value: {0}",
1743
+ 20: "Invalid value",
1744
+ 21: "Cannot setup vue-devtools plugin"
1745
+ }, Xe = re("__transrateVNode"), ze = re("__datetimeParts"), et = re("__numberParts"), be = re("__enableEmitter"), tt = re("__disableEmitter"), Sr = re("__setPluralRules");
1746
+ let Ct = 0;
1747
+ function Dt(e) {
1748
+ return ((t, n, r, a) => e(n, r, Wt() || void 0, a));
1749
+ }
1750
+ function Kt(e, t) {
1751
+ const { messages: n, __i18n: r } = t, a = F(n) ? n : x(r) ? {} : { [e]: {} };
1752
+ return x(r) && r.forEach(({ locale: s, resource: o }) => {
1753
+ s ? (a[s] = a[s] || {}, Se(o, a[s])) : Se(o, a);
1754
+ }), a;
1755
+ }
1756
+ const Ir = Object.prototype.hasOwnProperty;
1757
+ function Pr(e, t) {
1758
+ return Ir.call(e, t);
1759
+ }
1760
+ const Ne = (e) => !j(e) || x(e);
1761
+ function Se(e, t) {
1762
+ if (Ne(e) || Ne(t))
1763
+ throw G(
1764
+ 20
1765
+ /* INVALID_VALUE */
1766
+ );
1767
+ for (const n in e)
1768
+ Pr(e, n) && (Ne(e[n]) || Ne(t[n]) ? t[n] = e[n] : Se(e[n], t[n]));
1769
+ }
1770
+ function qt(e = {}) {
1771
+ const { __root: t } = e, n = t === void 0;
1772
+ let r = $(e.inheritLocale) ? e.inheritLocale : !0;
1773
+ const a = oe(
1774
+ // prettier-ignore
1775
+ t && r ? t.locale.value : T(e.locale) ? e.locale : "en-US"
1776
+ ), s = oe(
1777
+ // prettier-ignore
1778
+ t && r ? t.fallbackLocale.value : T(e.fallbackLocale) || x(e.fallbackLocale) || F(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a.value
1779
+ ), o = oe(Kt(a.value, e)), c = oe(F(e.datetimeFormats) ? e.datetimeFormats : { [a.value]: {} }), g = oe(F(e.numberFormats) ? e.numberFormats : { [a.value]: {} });
1780
+ let p = t ? t.missingWarn : $(e.missingWarn) || Le(e.missingWarn) ? e.missingWarn : !0, h = t ? t.fallbackWarn : $(e.fallbackWarn) || Le(e.fallbackWarn) ? e.fallbackWarn : !0, w = t ? t.fallbackRoot : $(e.fallbackRoot) ? e.fallbackRoot : !0, k = !!e.fallbackFormat, C = W(e.missing) ? e.missing : null, N = W(e.missing) ? Dt(e.missing) : null, I = W(e.postTranslation) ? e.postTranslation : null, L = $(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, u = !!e.escapeParameter;
1781
+ const _ = t ? t.modifiers : F(e.modifiers) ? e.modifiers : {};
1782
+ let v = e.pluralRules || t && t.pluralRules, f;
1783
+ function E() {
1784
+ return zn({
1785
+ locale: a.value,
1786
+ fallbackLocale: s.value,
1787
+ messages: o.value,
1788
+ datetimeFormats: c.value,
1789
+ numberFormats: g.value,
1790
+ modifiers: _,
1791
+ pluralRules: v,
1792
+ missing: N === null ? void 0 : N,
1793
+ missingWarn: p,
1794
+ fallbackWarn: h,
1795
+ fallbackFormat: k,
1796
+ unresolving: !0,
1797
+ postTranslation: I === null ? void 0 : I,
1798
+ warnHtmlMessage: L,
1799
+ escapeParameter: u,
1800
+ __datetimeFormatters: F(f) ? f.__datetimeFormatters : void 0,
1801
+ __numberFormatters: F(f) ? f.__numberFormatters : void 0,
1802
+ __emitter: F(f) ? f.__emitter : void 0
1803
+ });
1804
+ }
1805
+ f = E(), _e(f, a.value, s.value);
1806
+ const O = le({
1807
+ get: () => a.value,
1808
+ set: (m) => {
1809
+ a.value = m, f.locale = a.value;
1810
+ }
1811
+ }), S = le({
1812
+ get: () => s.value,
1813
+ set: (m) => {
1814
+ s.value = m, f.fallbackLocale = s.value, _e(f, a.value, m);
1815
+ }
1816
+ }), R = le(() => o.value), M = le(() => c.value), q = le(() => g.value);
1817
+ function me() {
1818
+ return W(I) ? I : null;
1819
+ }
1820
+ function X(m) {
1821
+ I = m, f.postTranslation = m;
1822
+ }
1823
+ function he() {
1824
+ return C;
1825
+ }
1826
+ function $e(m) {
1827
+ m !== null && (N = Dt(m)), C = m, f.missing = N;
1828
+ }
1829
+ function J(m, y, Y, ee, Zt, Xt) {
1830
+ const mt = E(), ke = m(mt);
1831
+ if (V(ke) && ke === Ce) {
1832
+ const we = y();
1833
+ if (process.env.NODE_ENV !== "production" && t && (w || ae(Me(6, {
1834
+ key: we,
1835
+ type: Y
1836
+ })), process.env.NODE_ENV !== "production")) {
1837
+ const { __emitter: dt } = mt;
1838
+ dt && dt.emit("fallback", {
1839
+ type: Y,
1840
+ key: we,
1841
+ to: "global",
1842
+ groupId: `${Y}:${we}`
1843
+ });
1844
+ }
1845
+ return t && w ? ee(t) : Zt(we);
1846
+ } else {
1847
+ if (Xt(ke))
1848
+ return ke;
1849
+ throw G(
1850
+ 14
1851
+ /* UNEXPECTED_RETURN_TYPE */
1852
+ );
1853
+ }
1854
+ }
1855
+ function ve(...m) {
1856
+ return J((y) => Ot(y, ...m), () => Be(...m)[0], "translate", (y) => y.t(...m), (y) => y, (y) => T(y));
1857
+ }
1858
+ function Re(...m) {
1859
+ return J((y) => St(y, ...m), () => Je(...m)[0], "datetime format", (y) => y.d(...m), () => Oe, (y) => T(y));
1860
+ }
1861
+ function Ve(...m) {
1862
+ return J((y) => Pt(y, ...m), () => Qe(...m)[0], "number format", (y) => y.n(...m), () => Oe, (y) => T(y));
1863
+ }
1864
+ function We(m) {
1865
+ return m.map((y) => T(y) ? gt(pt, null, y, 0) : y);
1866
+ }
1867
+ const xe = {
1868
+ normalize: We,
1869
+ interpolate: (m) => m,
1870
+ type: "vnode"
1871
+ };
1872
+ function ye(...m) {
1873
+ return J(
1874
+ (y) => {
1875
+ let Y;
1876
+ const ee = y;
1877
+ try {
1878
+ ee.processor = xe, Y = Ot(ee, ...m);
1879
+ } finally {
1880
+ ee.processor = null;
1881
+ }
1882
+ return Y;
1883
+ },
1884
+ () => Be(...m)[0],
1885
+ "translate",
1886
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1887
+ (y) => y[Xe](...m),
1888
+ (y) => [gt(pt, null, y, 0)],
1889
+ (y) => x(y)
1890
+ );
1891
+ }
1892
+ function Ae(...m) {
1893
+ return J(
1894
+ (y) => Pt(y, ...m),
1895
+ () => Qe(...m)[0],
1896
+ "number format",
1897
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1898
+ (y) => y[et](...m),
1899
+ () => [],
1900
+ (y) => T(y) || x(y)
1901
+ );
1902
+ }
1903
+ function je(...m) {
1904
+ return J(
1905
+ (y) => St(y, ...m),
1906
+ () => Je(...m)[0],
1907
+ "datetime format",
1908
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1909
+ (y) => y[ze](...m),
1910
+ () => [],
1911
+ (y) => T(y) || x(y)
1912
+ );
1913
+ }
1914
+ function Ue(m) {
1915
+ v = m, f.pluralRules = v;
1916
+ }
1917
+ function de(m, y) {
1918
+ const Y = T(y) ? y : a.value, ee = z(Y);
1919
+ return Ee(ee, m) !== null;
1920
+ }
1921
+ function ge(m) {
1922
+ const y = o.value[a.value] || {}, Y = Ee(y, m);
1923
+ return Y ?? (t ? t.tm(m) || {} : {});
1924
+ }
1925
+ function z(m) {
1926
+ return o.value[m] || {};
1927
+ }
1928
+ function pe(m, y) {
1929
+ o.value[m] = y, f.messages = o.value;
1930
+ }
1931
+ function He(m, y) {
1932
+ o.value[m] = o.value[m] || {}, Se(y, o.value[m]), f.messages = o.value;
1933
+ }
1934
+ function l(m) {
1935
+ return c.value[m] || {};
1936
+ }
1937
+ function i(m, y) {
1938
+ c.value[m] = y, f.datetimeFormats = c.value, It(f, m, y);
1939
+ }
1940
+ function d(m, y) {
1941
+ c.value[m] = Object.assign(c.value[m] || {}, y), f.datetimeFormats = c.value, It(f, m, y);
1942
+ }
1943
+ function b(m) {
1944
+ return g.value[m] || {};
1945
+ }
1946
+ function P(m, y) {
1947
+ g.value[m] = y, f.numberFormats = g.value, Ft(f, m, y);
1948
+ }
1949
+ function D(m, y) {
1950
+ g.value[m] = Object.assign(g.value[m] || {}, y), f.numberFormats = g.value, Ft(f, m, y);
1951
+ }
1952
+ Ct++, t && (Ke(t.locale, (m) => {
1953
+ r && (a.value = m, f.locale = m, _e(f, a.value, s.value));
1954
+ }), Ke(t.fallbackLocale, (m) => {
1955
+ r && (s.value = m, f.fallbackLocale = m, _e(f, a.value, s.value));
1956
+ }));
1957
+ const H = {
1958
+ id: Ct,
1959
+ locale: O,
1960
+ fallbackLocale: S,
1961
+ get inheritLocale() {
1962
+ return r;
1963
+ },
1964
+ set inheritLocale(m) {
1965
+ r = m, m && t && (a.value = t.locale.value, s.value = t.fallbackLocale.value, _e(f, a.value, s.value));
1966
+ },
1967
+ get availableLocales() {
1968
+ return Object.keys(o.value).sort();
1969
+ },
1970
+ messages: R,
1971
+ datetimeFormats: M,
1972
+ numberFormats: q,
1973
+ get modifiers() {
1974
+ return _;
1975
+ },
1976
+ get pluralRules() {
1977
+ return v || {};
1978
+ },
1979
+ get isGlobal() {
1980
+ return n;
1981
+ },
1982
+ get missingWarn() {
1983
+ return p;
1984
+ },
1985
+ set missingWarn(m) {
1986
+ p = m, f.missingWarn = p;
1987
+ },
1988
+ get fallbackWarn() {
1989
+ return h;
1990
+ },
1991
+ set fallbackWarn(m) {
1992
+ h = m, f.fallbackWarn = h;
1993
+ },
1994
+ get fallbackRoot() {
1995
+ return w;
1996
+ },
1997
+ set fallbackRoot(m) {
1998
+ w = m;
1999
+ },
2000
+ get fallbackFormat() {
2001
+ return k;
2002
+ },
2003
+ set fallbackFormat(m) {
2004
+ k = m, f.fallbackFormat = k;
2005
+ },
2006
+ get warnHtmlMessage() {
2007
+ return L;
2008
+ },
2009
+ set warnHtmlMessage(m) {
2010
+ L = m, f.warnHtmlMessage = m;
2011
+ },
2012
+ get escapeParameter() {
2013
+ return u;
2014
+ },
2015
+ set escapeParameter(m) {
2016
+ u = m, f.escapeParameter = m;
2017
+ },
2018
+ t: ve,
2019
+ d: Re,
2020
+ n: Ve,
2021
+ te: de,
2022
+ tm: ge,
2023
+ getLocaleMessage: z,
2024
+ setLocaleMessage: pe,
2025
+ mergeLocaleMessage: He,
2026
+ getDateTimeFormat: l,
2027
+ setDateTimeFormat: i,
2028
+ mergeDateTimeFormat: d,
2029
+ getNumberFormat: b,
2030
+ setNumberFormat: P,
2031
+ mergeNumberFormat: D,
2032
+ getPostTranslationHandler: me,
2033
+ setPostTranslationHandler: X,
2034
+ getMissingHandler: he,
2035
+ setMissingHandler: $e,
2036
+ [Xe]: ye,
2037
+ [et]: Ae,
2038
+ [ze]: je,
2039
+ [Sr]: Ue
2040
+ };
2041
+ return process.env.NODE_ENV !== "production" && (H[be] = (m) => {
2042
+ f.__emitter = m;
2043
+ }, H[tt] = () => {
2044
+ f.__emitter = void 0;
2045
+ }), H;
2046
+ }
2047
+ const ct = {
2048
+ tag: {
2049
+ type: [String, Object]
2050
+ },
2051
+ locale: {
2052
+ type: String
2053
+ },
2054
+ scope: {
2055
+ type: String,
2056
+ validator: (e) => e === "parent" || e === "global",
2057
+ default: "parent"
2058
+ }
2059
+ }, Ye = {
2060
+ /* eslint-disable */
2061
+ name: "i18n-t",
2062
+ props: {
2063
+ ...ct,
2064
+ keypath: {
2065
+ type: String,
2066
+ required: !0
2067
+ },
2068
+ plural: {
2069
+ type: [Number, String],
2070
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2071
+ validator: (e) => V(e) || !isNaN(e)
2072
+ }
2073
+ },
2074
+ /* eslint-enable */
2075
+ setup(e, t) {
2076
+ const { slots: n, attrs: r } = t, a = ut({ useScope: e.scope }), s = Object.keys(n).filter((o) => o !== "_");
2077
+ return () => {
2078
+ const o = {};
2079
+ e.locale && (o.locale = e.locale), e.plural !== void 0 && (o.plural = T(e.plural) ? +e.plural : e.plural);
2080
+ const c = Fr(t, s), g = a[Xe](e.keypath, c, o);
2081
+ return T(e.tag) ? ie(e.tag, { ...r }, g) : j(e.tag) ? ie(e.tag, { ...r }, g) : ie(xt, { ...r }, g);
2082
+ };
2083
+ }
2084
+ };
2085
+ function Fr({ slots: e }, t) {
2086
+ return t.length === 1 && t[0] === "default" ? e.default ? e.default() : [] : t.reduce((n, r) => {
2087
+ const a = e[r];
2088
+ return a && (n[r] = a()), n;
2089
+ }, {});
2090
+ }
2091
+ function Bt(e, t, n, r) {
2092
+ const { slots: a, attrs: s } = t;
2093
+ return () => {
2094
+ const o = { part: !0 };
2095
+ let c = {};
2096
+ e.locale && (o.locale = e.locale), T(e.format) ? o.key = e.format : j(e.format) && (T(e.format.key) && (o.key = e.format.key), c = Object.keys(e.format).reduce((h, w) => n.includes(w) ? Object.assign({}, h, { [w]: e.format[w] }) : h, {}));
2097
+ const g = r(e.value, o, c);
2098
+ let p = [o.key];
2099
+ return x(g) ? p = g.map((h, w) => {
2100
+ const k = a[h.type];
2101
+ return k ? k({ [h.type]: h.value, index: w, parts: g }) : [h.value];
2102
+ }) : T(g) && (p = [g]), T(e.tag) ? ie(e.tag, { ...s }, p) : j(e.tag) ? ie(e.tag, { ...s }, p) : ie(xt, { ...s }, p);
2103
+ };
2104
+ }
2105
+ const Cr = [
2106
+ "localeMatcher",
2107
+ "style",
2108
+ "unit",
2109
+ "unitDisplay",
2110
+ "currency",
2111
+ "currencyDisplay",
2112
+ "useGrouping",
2113
+ "numberingSystem",
2114
+ "minimumIntegerDigits",
2115
+ "minimumFractionDigits",
2116
+ "maximumFractionDigits",
2117
+ "minimumSignificantDigits",
2118
+ "maximumSignificantDigits",
2119
+ "notation",
2120
+ "formatMatcher"
2121
+ ], Mt = {
2122
+ /* eslint-disable */
2123
+ name: "i18n-n",
2124
+ props: {
2125
+ ...ct,
2126
+ value: {
2127
+ type: Number,
2128
+ required: !0
2129
+ },
2130
+ format: {
2131
+ type: [String, Object]
2132
+ }
2133
+ },
2134
+ /* eslint-enable */
2135
+ setup(e, t) {
2136
+ const n = ut({ useScope: "parent" });
2137
+ return Bt(e, t, Cr, (...r) => (
2138
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2139
+ n[et](...r)
2140
+ ));
2141
+ }
2142
+ }, Dr = [
2143
+ "dateStyle",
2144
+ "timeStyle",
2145
+ "fractionalSecondDigits",
2146
+ "calendar",
2147
+ "dayPeriod",
2148
+ "numberingSystem",
2149
+ "localeMatcher",
2150
+ "timeZone",
2151
+ "hour12",
2152
+ "hourCycle",
2153
+ "formatMatcher",
2154
+ "weekday",
2155
+ "era",
2156
+ "year",
2157
+ "month",
2158
+ "day",
2159
+ "hour",
2160
+ "minute",
2161
+ "second",
2162
+ "timeZoneName"
2163
+ ], $t = {
2164
+ /* eslint-disable */
2165
+ name: "i18n-d",
2166
+ props: {
2167
+ ...ct,
2168
+ value: {
2169
+ type: [Number, Date],
2170
+ required: !0
2171
+ },
2172
+ format: {
2173
+ type: [String, Object]
2174
+ }
2175
+ },
2176
+ /* eslint-enable */
2177
+ setup(e, t) {
2178
+ const n = ut({ useScope: "parent" });
2179
+ return Bt(e, t, Dr, (...r) => (
2180
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2181
+ n[ze](...r)
2182
+ ));
2183
+ }
2184
+ };
2185
+ function Mr(e, t) {
2186
+ const n = e;
2187
+ if (e.mode === "composition")
2188
+ return n.__getInstance(t) || e.global;
2189
+ {
2190
+ const r = n.__getInstance(t);
2191
+ return r != null ? r.__composer : e.global.__composer;
2192
+ }
2193
+ }
2194
+ function $r(e) {
2195
+ const t = (n, { instance: r, value: a, modifiers: s }) => {
2196
+ if (!r || !r.$)
2197
+ throw G(
2198
+ 22
2199
+ /* UNEXPECTED_ERROR */
2200
+ );
2201
+ const o = Mr(e, r.$);
2202
+ process.env.NODE_ENV !== "production" && s.preserve && ae(Me(
2203
+ 7
2204
+ /* NOT_SUPPORTED_PRESERVE */
2205
+ ));
2206
+ const c = Rr(a);
2207
+ n.textContent = o.t(...Vr(c));
2208
+ };
2209
+ return {
2210
+ beforeMount: t,
2211
+ beforeUpdate: t
2212
+ };
2213
+ }
2214
+ function Rr(e) {
2215
+ if (T(e))
2216
+ return { path: e };
2217
+ if (F(e)) {
2218
+ if (!("path" in e))
2219
+ throw G(19, "path");
2220
+ return e;
2221
+ } else
2222
+ throw G(
2223
+ 20
2224
+ /* INVALID_VALUE */
2225
+ );
2226
+ }
2227
+ function Vr(e) {
2228
+ const { path: t, locale: n, args: r, choice: a, plural: s } = e, o = {}, c = r || {};
2229
+ return T(n) && (o.locale = n), V(a) && (o.plural = a), V(s) && (o.plural = s), [t, c, o];
2230
+ }
2231
+ function Wr(e, t, ...n) {
2232
+ const r = F(n[0]) ? n[0] : {}, a = !!r.useI18nComponentName, s = $(r.globalInstall) ? r.globalInstall : !0;
2233
+ process.env.NODE_ENV !== "production" && s && a && ae(Me(11, {
2234
+ name: Ye.name
2235
+ })), s && (e.component(a ? "i18n" : Ye.name, Ye), e.component(Mt.name, Mt), e.component($t.name, $t)), e.directive("t", $r(t));
2236
+ }
2237
+ let nt;
2238
+ async function xr(e, t) {
2239
+ return new Promise((n, r) => {
2240
+ try {
2241
+ Nr({
2242
+ id: "vue-devtools-plugin-vue-i18n",
2243
+ label: Ge[
2244
+ "vue-devtools-plugin-vue-i18n"
2245
+ /* PLUGIN */
2246
+ ],
2247
+ app: e
2248
+ }, (a) => {
2249
+ nt = a, a.on.walkComponentTree((s, o) => {
2250
+ Jt(o.currentAppRecord, s.componentTreeData, t);
2251
+ }), a.on.inspectComponent((s) => {
2252
+ const o = s.componentInstance;
2253
+ o.vnode.el.__INTLIFY__ && s.instanceData && (t.mode === "legacy" ? o.vnode.el.__INTLIFY__ !== t.global.__composer && Rt(s.instanceData, o.vnode.el.__INTLIFY__) : Rt(s.instanceData, o.vnode.el.__INTLIFY__));
2254
+ }), a.addInspector({
2255
+ id: "vue-i18n-resource-inspector",
2256
+ label: Ge[
2257
+ "vue-i18n-resource-inspector"
2258
+ /* CUSTOM_INSPECTOR */
2259
+ ],
2260
+ icon: "language",
2261
+ treeFilterPlaceholder: gr[
2262
+ "vue-i18n-resource-inspector"
2263
+ /* CUSTOM_INSPECTOR */
2264
+ ]
2265
+ }), a.on.getInspectorTree((s) => {
2266
+ s.app === e && s.inspectorId === "vue-i18n-resource-inspector" && Gr(s, t);
2267
+ }), a.on.getInspectorState((s) => {
2268
+ s.app === e && s.inspectorId === "vue-i18n-resource-inspector" && Yr(s, t);
2269
+ }), a.addTimelineLayer({
2270
+ id: "vue-i18n-timeline",
2271
+ label: Ge[
2272
+ "vue-i18n-timeline"
2273
+ /* TIMELINE */
2274
+ ],
2275
+ color: pr[
2276
+ "vue-i18n-timeline"
2277
+ /* TIMELINE */
2278
+ ]
2279
+ }), n(!0);
2280
+ });
2281
+ } catch (a) {
2282
+ console.error(a), r(!1);
2283
+ }
2284
+ });
2285
+ }
2286
+ function Jt(e, t, n) {
2287
+ const r = n.mode === "composition" ? n.global : n.global.__composer;
2288
+ for (const a of t) {
2289
+ const s = e.instanceMap.get(a.id);
2290
+ if (s && s.vnode.el.__INTLIFY__ && s.vnode.el.__INTLIFY__ !== r) {
2291
+ const c = {
2292
+ label: `i18n (${s.type.name || s.type.displayName || s.type.__file} Scope)`,
2293
+ textColor: 0,
2294
+ backgroundColor: 16764185
2295
+ };
2296
+ a.tags.push(c);
2297
+ }
2298
+ Jt(e, a.children, n);
2299
+ }
2300
+ }
2301
+ function Rt(e, t) {
2302
+ const n = "vue-i18n: composer properties";
2303
+ e.state.push({
2304
+ type: n,
2305
+ key: "locale",
2306
+ editable: !1,
2307
+ value: t.locale.value
2308
+ }), e.state.push({
2309
+ type: n,
2310
+ key: "availableLocales",
2311
+ editable: !1,
2312
+ value: t.availableLocales
2313
+ }), e.state.push({
2314
+ type: n,
2315
+ key: "fallbackLocale",
2316
+ editable: !1,
2317
+ value: t.fallbackLocale.value
2318
+ }), e.state.push({
2319
+ type: n,
2320
+ key: "inheritLocale",
2321
+ editable: !1,
2322
+ value: t.inheritLocale
2323
+ }), e.state.push({
2324
+ type: n,
2325
+ key: "messages",
2326
+ editable: !1,
2327
+ value: it(t.messages.value)
2328
+ }), e.state.push({
2329
+ type: n,
2330
+ key: "datetimeFormats",
2331
+ editable: !1,
2332
+ value: t.datetimeFormats.value
2333
+ }), e.state.push({
2334
+ type: n,
2335
+ key: "numberFormats",
2336
+ editable: !1,
2337
+ value: t.numberFormats.value
2338
+ });
2339
+ }
2340
+ function it(e) {
2341
+ const t = {};
2342
+ return Object.keys(e).forEach((n) => {
2343
+ const r = e[n];
2344
+ W(r) && "source" in r ? t[n] = Hr(r) : j(r) ? t[n] = it(r) : t[n] = r;
2345
+ }), t;
2346
+ }
2347
+ const Ar = {
2348
+ "<": "&lt;",
2349
+ ">": "&gt;",
2350
+ '"': "&quot;",
2351
+ "&": "&amp;"
2352
+ };
2353
+ function jr(e) {
2354
+ return e.replace(/[<>"&]/g, Ur);
2355
+ }
2356
+ function Ur(e) {
2357
+ return Ar[e] || e;
2358
+ }
2359
+ function Hr(e) {
2360
+ return {
2361
+ _custom: {
2362
+ type: "function",
2363
+ display: `<span>ƒ</span> ${e.source ? `("${jr(e.source)}")` : "(?)"}`
2364
+ }
2365
+ };
2366
+ }
2367
+ function Gr(e, t) {
2368
+ e.rootNodes.push({
2369
+ id: "global",
2370
+ label: "Global Scope"
2371
+ });
2372
+ const n = t.mode === "composition" ? t.global : t.global.__composer;
2373
+ for (const [r, a] of t.__instances) {
2374
+ const s = t.mode === "composition" ? a : a.__composer;
2375
+ if (n === s)
2376
+ continue;
2377
+ const o = r.type.name || r.type.displayName || r.type.__file;
2378
+ e.rootNodes.push({
2379
+ id: s.id.toString(),
2380
+ label: `${o} Scope`
2381
+ });
2382
+ }
2383
+ }
2384
+ function Yr(e, t) {
2385
+ if (e.nodeId === "global")
2386
+ e.state = Vt(t.mode === "composition" ? t.global : t.global.__composer);
2387
+ else {
2388
+ const n = Array.from(t.__instances.values()).find((r) => r.id.toString() === e.nodeId);
2389
+ if (n) {
2390
+ const r = t.mode === "composition" ? n : n.__composer;
2391
+ e.state = Vt(r);
2392
+ }
2393
+ }
2394
+ }
2395
+ function Vt(e) {
2396
+ const t = {}, n = "Locale related info", r = [
2397
+ {
2398
+ type: n,
2399
+ key: "locale",
2400
+ editable: !1,
2401
+ value: e.locale.value
2402
+ },
2403
+ {
2404
+ type: n,
2405
+ key: "fallbackLocale",
2406
+ editable: !1,
2407
+ value: e.fallbackLocale.value
2408
+ },
2409
+ {
2410
+ type: n,
2411
+ key: "availableLocales",
2412
+ editable: !1,
2413
+ value: e.availableLocales
2414
+ },
2415
+ {
2416
+ type: n,
2417
+ key: "inheritLocale",
2418
+ editable: !1,
2419
+ value: e.inheritLocale
2420
+ }
2421
+ ];
2422
+ t[n] = r;
2423
+ const a = "Locale messages info", s = [
2424
+ {
2425
+ type: a,
2426
+ key: "messages",
2427
+ editable: !1,
2428
+ value: it(e.messages.value)
2429
+ }
2430
+ ];
2431
+ t[a] = s;
2432
+ const o = "Datetime formats info", c = [
2433
+ {
2434
+ type: o,
2435
+ key: "datetimeFormats",
2436
+ editable: !1,
2437
+ value: e.datetimeFormats.value
2438
+ }
2439
+ ];
2440
+ t[o] = c;
2441
+ const g = "Datetime formats info", p = [
2442
+ {
2443
+ type: g,
2444
+ key: "numberFormats",
2445
+ editable: !1,
2446
+ value: e.numberFormats.value
2447
+ }
2448
+ ];
2449
+ return t[g] = p, t;
2450
+ }
2451
+ function rt(e, t) {
2452
+ if (nt) {
2453
+ let n;
2454
+ t && "groupId" in t && (n = t.groupId, delete t.groupId), nt.addTimelineEvent({
2455
+ layerId: "vue-i18n-timeline",
2456
+ event: {
2457
+ title: e,
2458
+ groupId: n,
2459
+ time: Date.now(),
2460
+ meta: {},
2461
+ data: t || {},
2462
+ logType: e === "compile-error" ? "error" : e === "fallback" || e === "missing" ? "warning" : "default"
2463
+ }
2464
+ });
2465
+ }
2466
+ }
2467
+ function Kr(e = {}) {
2468
+ const t = !!e.globalInjection, n = /* @__PURE__ */ new Map(), r = qt(e), a = re(process.env.NODE_ENV !== "production" ? "vue-i18n" : ""), s = {
2469
+ // mode
2470
+ get mode() {
2471
+ return "composition";
2472
+ },
2473
+ // install plugin
2474
+ async install(o, ...c) {
2475
+ if (process.env.NODE_ENV !== "production" && (o.__VUE_I18N__ = s), o.__VUE_I18N_SYMBOL__ = a, o.provide(o.__VUE_I18N_SYMBOL__, s), t && Zr(o, s.global), Wr(o, s, ...c), process.env.NODE_ENV !== "production") {
2476
+ if (!await xr(o, s))
2477
+ throw G(
2478
+ 21
2479
+ /* CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN */
2480
+ );
2481
+ const p = Gt();
2482
+ {
2483
+ const h = r;
2484
+ h[be] && h[be](p);
2485
+ }
2486
+ p.on("*", rt);
2487
+ }
2488
+ },
2489
+ // global accessor
2490
+ get global() {
2491
+ return r;
2492
+ },
2493
+ // @internal
2494
+ __instances: n,
2495
+ // @internal
2496
+ __getInstance(o) {
2497
+ return n.get(o) || null;
2498
+ },
2499
+ // @internal
2500
+ __setInstance(o, c) {
2501
+ n.set(o, c);
2502
+ },
2503
+ // @internal
2504
+ __deleteInstance(o) {
2505
+ n.delete(o);
2506
+ }
2507
+ };
2508
+ return s;
2509
+ }
2510
+ function ut(e = {}) {
2511
+ const t = Wt();
2512
+ if (t == null)
2513
+ throw G(
2514
+ 16
2515
+ /* MUST_BE_CALL_SETUP_TOP */
2516
+ );
2517
+ if (!t.appContext.app.__VUE_I18N_SYMBOL__)
2518
+ throw G(
2519
+ 17
2520
+ /* NOT_INSLALLED */
2521
+ );
2522
+ const n = en(t.appContext.app.__VUE_I18N_SYMBOL__);
2523
+ if (!n)
2524
+ throw G(
2525
+ 22
2526
+ /* UNEXPECTED_ERROR */
2527
+ );
2528
+ const r = n.mode === "composition" ? n.global : n.global.__composer, a = Pe(e) ? "__i18n" in t.type ? "local" : "global" : e.useScope ? e.useScope : "local";
2529
+ if (a === "global") {
2530
+ let c = j(e.messages) ? e.messages : {};
2531
+ "__i18nGlobal" in t.type && (c = Kt(r.locale.value, {
2532
+ messages: c,
2533
+ __i18n: t.type.__i18nGlobal
2534
+ }));
2535
+ const g = Object.keys(c);
2536
+ if (g.length && g.forEach((p) => {
2537
+ r.mergeLocaleMessage(p, c[p]);
2538
+ }), j(e.datetimeFormats)) {
2539
+ const p = Object.keys(e.datetimeFormats);
2540
+ p.length && p.forEach((h) => {
2541
+ r.mergeDateTimeFormat(h, e.datetimeFormats[h]);
2542
+ });
2543
+ }
2544
+ if (j(e.numberFormats)) {
2545
+ const p = Object.keys(e.numberFormats);
2546
+ p.length && p.forEach((h) => {
2547
+ r.mergeNumberFormat(h, e.numberFormats[h]);
2548
+ });
2549
+ }
2550
+ return r;
2551
+ }
2552
+ if (a === "parent") {
2553
+ let c = qr(n, t);
2554
+ return c == null && (process.env.NODE_ENV !== "production" && ae(Me(
2555
+ 12
2556
+ /* NOT_FOUND_PARENT_SCOPE */
2557
+ )), c = r), c;
2558
+ }
2559
+ if (n.mode === "legacy")
2560
+ throw G(
2561
+ 18
2562
+ /* NOT_AVAILABLE_IN_LEGACY_MODE */
2563
+ );
2564
+ const s = n;
2565
+ let o = s.__getInstance(t);
2566
+ if (o == null) {
2567
+ const c = t.type, g = {
2568
+ ...e
2569
+ };
2570
+ c.__i18n && (g.__i18n = c.__i18n), r && (g.__root = r), o = qt(g), Br(s, t, o), s.__setInstance(t, o);
2571
+ }
2572
+ return o;
2573
+ }
2574
+ function qr(e, t) {
2575
+ let n = null;
2576
+ const r = t.root;
2577
+ let a = t.parent;
2578
+ for (; a != null; ) {
2579
+ const s = e;
2580
+ if (e.mode === "composition")
2581
+ n = s.__getInstance(a);
2582
+ else {
2583
+ const o = s.__getInstance(a);
2584
+ o != null && (n = o.__composer);
2585
+ }
2586
+ if (n != null || r === a)
2587
+ break;
2588
+ a = a.parent;
2589
+ }
2590
+ return n;
2591
+ }
2592
+ function Br(e, t, n) {
2593
+ let r = null;
2594
+ tn(() => {
2595
+ if (process.env.NODE_ENV !== "production" && t.vnode.el) {
2596
+ t.vnode.el.__INTLIFY__ = n, r = Gt();
2597
+ const a = n;
2598
+ a[be] && a[be](r), r.on("*", rt);
2599
+ }
2600
+ }, t), nn(() => {
2601
+ if (process.env.NODE_ENV !== "production" && t.vnode.el && t.vnode.el.__INTLIFY__) {
2602
+ r && r.off("*", rt);
2603
+ const a = n;
2604
+ a[tt] && a[tt](), delete t.vnode.el.__INTLIFY__;
2605
+ }
2606
+ e.__deleteInstance(t);
2607
+ }, t);
2608
+ }
2609
+ const Jr = [
2610
+ "locale",
2611
+ "fallbackLocale",
2612
+ "availableLocales"
2613
+ ], Qr = ["t", "d", "n", "tm"];
2614
+ function Zr(e, t) {
2615
+ const n = /* @__PURE__ */ Object.create(null);
2616
+ Jr.forEach((r) => {
2617
+ const a = Object.getOwnPropertyDescriptor(t, r);
2618
+ if (!a)
2619
+ throw G(
2620
+ 22
2621
+ /* UNEXPECTED_ERROR */
2622
+ );
2623
+ const s = zt(a.value) ? {
2624
+ get() {
2625
+ return a.value.value;
2626
+ },
2627
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2628
+ set(o) {
2629
+ a.value.value = o;
2630
+ }
2631
+ } : {
2632
+ get() {
2633
+ return a.get && a.get();
2634
+ }
2635
+ };
2636
+ Object.defineProperty(n, r, s);
2637
+ }), e.config.globalProperties.$i18n = n, Qr.forEach((r) => {
2638
+ const a = Object.getOwnPropertyDescriptor(t, r);
2639
+ if (!a)
2640
+ throw G(
2641
+ 22
2642
+ /* UNEXPECTED_ERROR */
2643
+ );
2644
+ Object.defineProperty(e.config.globalProperties, `$${r}`, a);
2645
+ });
2646
+ }
2647
+ Xn(lr);
2648
+ Lr();
2649
+ process.env.NODE_ENV !== "production" && Er();
2650
+ const Xr = {
2651
+ global: {
2652
+ locales: "zh-cn"
2653
+ },
2654
+ test: {
2655
+ button: "这是测试按钮"
2656
+ },
2657
+ pwdChangeForm: {
2658
+ title: "修改密码",
2659
+ oldPwd: "旧密码",
2660
+ newPwd: "新密码",
2661
+ confirmPwd: "确认密码",
2662
+ submit: "确认",
2663
+ oldPwdPlaceholder: "请输入旧密码",
2664
+ newPwdPlaceholder: "请输入新密码",
2665
+ confirmPwdPlaceholder: "请确认新密码",
2666
+ confirmPwdError: "两次输入密码不一致",
2667
+ pwdChangeSuccess: "密码修改成功",
2668
+ pwdChangeError: "密码修改失败"
2669
+ }
2670
+ }, zr = {
2671
+ global: {
2672
+ locales: "en"
2673
+ },
2674
+ test: {
2675
+ button: "Test Button"
2676
+ },
2677
+ pwdChangeForm: {
2678
+ title: "Change Password",
2679
+ oldPwd: "Old Password",
2680
+ newPwd: "New Password",
2681
+ confirmPwd: "Confirm Password",
2682
+ submit: "Confirm",
2683
+ oldPwdPlaceholder: "Please input old password",
2684
+ newPwdPlaceholder: "Please input new password",
2685
+ confirmPwdPlaceholder: "Please confirm new password",
2686
+ confirmPwdError: "Passwords do not match",
2687
+ pwdChangeSuccess: "Password changed successfully",
2688
+ pwdChangeError: "Password change failed"
2689
+ }
2690
+ }, ea = "zh-cn", ta = {
2691
+ "zh-cn": Xr,
2692
+ en: zr
2693
+ };
2694
+ function na(e) {
2695
+ const t = e?.locale || ea, n = { ...ta, ...e?.messages };
2696
+ return Kr({
2697
+ // 使用 Composition API 模式
2698
+ locale: t,
2699
+ fallbackLocale: "zh-cn",
2700
+ messages: n,
2701
+ missingWarn: !1,
2702
+ fallbackWarn: !1,
2703
+ missing: (r, a) => a
2704
+ });
2705
+ }
2706
+ let Qt = null;
2707
+ function ra(e) {
2708
+ Qt = e;
2709
+ }
2710
+ function aa() {
2711
+ return Qt;
2712
+ }
2713
+ function la() {
2714
+ const e = aa();
2715
+ if (!e)
2716
+ return {
2717
+ t: (r, a) => r,
2718
+ locale: oe("zh-cn"),
2719
+ changeLocale: (r) => {
2720
+ }
2721
+ };
2722
+ const { t, locale: n } = e.global;
2723
+ return {
2724
+ // 翻译函数
2725
+ t: (r, a) => {
2726
+ const s = t(r, a);
2727
+ return typeof s == "string" ? s : r;
2728
+ },
2729
+ // 当前语言(响应式)
2730
+ locale: n,
2731
+ // 切换语言
2732
+ changeLocale: (r) => {
2733
+ n.value = r;
2734
+ }
2735
+ };
2736
+ }
2737
+ const sa = /* @__PURE__ */ Object.assign({
2738
+ "./pd-ui/pd-PwdChangeForm/pd-PwdChangeForm.vue": () => import("./pd-PwdChangeForm-tFrLQ1xa.js"),
2739
+ "./pd-ui/pd-Test/pd-Test.vue": () => import("./pd-Test-DP_M-9m_.js")
2740
+ }), ca = {
2741
+ install(e, t = {}) {
2742
+ let n = t.i18n;
2743
+ if (!n) {
2744
+ const r = typeof t.locale == "function" ? t.locale() : t.locale;
2745
+ n = na({
2746
+ locale: r,
2747
+ messages: t.messages
2748
+ }), e.use(n);
2749
+ }
2750
+ ra(n);
2751
+ for (const [r, a] of Object.entries(sa)) {
2752
+ const s = r.slice(r.lastIndexOf("/") + 1, r.lastIndexOf("."));
2753
+ e.component(s, rn(a));
2754
+ }
2755
+ if (e.provide("pd-ui-config", {
2756
+ locale: n.global.locale,
2757
+ t: n.global.t
2758
+ }), typeof t.locale == "function") {
2759
+ const r = le(() => {
2760
+ const a = t.locale;
2761
+ return a();
2762
+ });
2763
+ Ke(r, (a) => {
2764
+ n && n.global && (n.global.locale.value = a);
2765
+ });
2766
+ }
6
2767
  }
7
2768
  };
8
2769
  export {
9
- m as default
2770
+ na as createPdI18n,
2771
+ ca as default,
2772
+ ea as defaultLocale,
2773
+ zr as en,
2774
+ aa as getGlobalI18n,
2775
+ ta as messages,
2776
+ ra as setGlobalI18n,
2777
+ la as useLocale,
2778
+ Xr as zhcn
10
2779
  };