@feedmepos/mf-report 5.27.54 → 5.28.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.
- package/dist/{App-C6xpf-Q0.js → App-BDhSFQX_.js} +45 -44
- package/dist/DateRangeSelect-CRsKMi0U.js +437 -0
- package/dist/{Default.vue_vue_type_script_setup_true_lang-BwPZXC_d.js → Default.vue_vue_type_script_setup_true_lang-WGOOX2b8.js} +12 -11
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-BpgXiPBY.js → DynamicWidget.vue_vue_type_script_setup_true_lang-CQM-l5Rk.js} +182 -181
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CVShUWJC.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CMioHpn1.js} +5091 -5717
- package/dist/{InsightView-BYW66Wrv.js → InsightView-lnOobZAr.js} +17 -15
- package/dist/{Integration-DQPJBE-0.js → Integration-D5ssimUg.js} +27 -25
- package/dist/{Integrations-BW4H9lUS.js → Integrations-CaqGvkzI.js} +8 -7
- package/dist/{Layout-CMlh08aB.js → Layout-DS0XCT_E.js} +1 -1
- package/dist/LocationSelect.vue_vue_type_script_setup_true_lang-DC9QYJk-.js +8055 -0
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-BUvD1_b0.js → MenuTab.vue_vue_type_script_setup_true_lang-nOukNXp3.js} +11 -10
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-TpeQ_Wm1.js → NavigationTab.vue_vue_type_script_setup_true_lang-DXNbt08D.js} +9636 -17677
- package/dist/{OverviewView-BtGpQkBY.js → OverviewView-BkIozvMs.js} +5 -5
- package/dist/{Report-CJ9myNLK.js → Report-HiSGRNhn.js} +27 -25
- package/dist/ReportCanvasView-ILVhB1KL.js +448 -0
- package/dist/{ReportEditor-DtnTBbY1.js → ReportEditor-B4tyVB8s.js} +30 -28
- package/dist/{ReportView-Ci8nFyI9.js → ReportView-CIQQHvWT.js} +14 -13
- package/dist/ReportViewRoute-B3KwVB0v.js +18 -0
- package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-Ckn2p74A.js → SelectComponent.vue_vue_type_script_setup_true_lang-DW7Dk7iQ.js} +1 -1
- package/dist/{Setting-QSiMSAQk.js → Setting-CvToMUKq.js} +5 -5
- package/dist/{Template-CAPlAQO9.js → Template-BBQEaHrM.js} +10 -9
- package/dist/{TileEditor-e7ZCWMU9.js → TileEditor-Cqy98LmJ.js} +19 -17
- package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-B4g3YPzM.js → TilePageStack.vue_vue_type_script_setup_true_lang-CzggUdfI.js} +3 -3
- package/dist/{TransitionFade-DqIazHHG.js → TransitionFade-D-8BYs6T.js} +36 -33
- package/dist/{_plugin-vue_export-helper-kkiiQoKl.js → _plugin-vue_export-helper-C6QDExPN.js} +276 -291
- package/dist/{app-BAgs-zHf.js → app-Bjt_JuJi.js} +670 -567
- package/dist/app.js +1 -1
- package/dist/assets/{formatChartData.worker-epD1fsTW.js → formatChartData.worker-BeBGCyYW.js} +1 -1
- package/dist/assets/{processTableData.worker-BJZ_Z45H.js → processTableData.worker-frTYV0ok.js} +39 -39
- package/dist/global-loader-BuxFfehu.js +19 -0
- package/dist/index-CtZE4sab.js +82 -0
- package/dist/report-DjGDWvm3.js +635 -0
- package/dist/report-canvas-frame.html +888 -0
- package/dist/report-canvas-libs/chart.js-4.js +14 -0
- package/dist/report-canvas-libs/fm-ui-1.js +904 -0
- package/dist/style.css +1 -1
- package/dist/{useRestaurantPermission-ChYMJfXG.js → useRestaurantPermission-Dkbh_cv8.js} +4 -4
- package/package.json +1 -1
- package/dist/DateRangeSelect-DYVOvSCA.js +0 -517
package/dist/{_plugin-vue_export-helper-kkiiQoKl.js → _plugin-vue_export-helper-C6QDExPN.js}
RENAMED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { getCurrentInstance as Ct, inject as
|
|
1
|
+
import { getCurrentInstance as Ct, inject as Un, ref as wn, shallowRef as Vn, computed as Pe, watch as Vt, onMounted as Wn, onUnmounted as $n, defineComponent as bt, h as dn, createVNode as Yn, Text as Gn, Fragment as En } from "vue";
|
|
2
2
|
import "@vue/devtools-api";
|
|
3
|
-
import { defineStore as Kn } from "pinia";
|
|
4
3
|
/*!
|
|
5
4
|
* shared v11.1.1
|
|
6
5
|
* (c) 2025 kazuya kawaguchi
|
|
@@ -17,26 +16,26 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
17
16
|
e.measure(t, n, r), e.clearMarks(n), e.clearMarks(r);
|
|
18
17
|
});
|
|
19
18
|
}
|
|
20
|
-
const
|
|
19
|
+
const Kn = /\{([0-9a-zA-Z]+)\}/g;
|
|
21
20
|
function xe(e, ...t) {
|
|
22
|
-
return t.length === 1 && F(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(
|
|
21
|
+
return t.length === 1 && F(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(Kn, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
|
|
23
22
|
}
|
|
24
|
-
const ie = (e, t = !1) => t ? Symbol.for(e) : Symbol(e),
|
|
23
|
+
const ie = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Hn = (e, t, n) => xn({ l: e, k: t, s: n }), xn = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), X = (e) => typeof e == "number" && isFinite(e), Bn = (e) => St(e) === "[object Date]", Ge = (e) => St(e) === "[object RegExp]", Be = (e) => M(e) && Object.keys(e).length === 0, j = Object.assign, Xn = Object.create, V = (e = null) => Xn(e);
|
|
25
24
|
let Wt;
|
|
26
25
|
const pe = () => Wt || (Wt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : V());
|
|
27
26
|
function $t(e) {
|
|
28
27
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
29
28
|
}
|
|
30
|
-
const
|
|
29
|
+
const jn = Object.prototype.hasOwnProperty;
|
|
31
30
|
function ne(e, t) {
|
|
32
|
-
return
|
|
31
|
+
return jn.call(e, t);
|
|
33
32
|
}
|
|
34
|
-
const B = Array.isArray, W = (e) => typeof e == "function", C = (e) => typeof e == "string", K = (e) => typeof e == "boolean", F = (e) => e !== null && typeof e == "object",
|
|
33
|
+
const B = Array.isArray, W = (e) => typeof e == "function", C = (e) => typeof e == "string", K = (e) => typeof e == "boolean", F = (e) => e !== null && typeof e == "object", Jn = (e) => F(e) && W(e.then) && W(e.catch), Nn = Object.prototype.toString, St = (e) => Nn.call(e), M = (e) => St(e) === "[object Object]", Qn = (e) => e == null ? "" : B(e) || M(e) && e.toString === Nn ? JSON.stringify(e, null, 2) : String(e);
|
|
35
34
|
function Dt(e, t = "") {
|
|
36
35
|
return e.reduce((n, r, a) => a === 0 ? n + r : n + t + r, "");
|
|
37
36
|
}
|
|
38
37
|
const Yt = 2;
|
|
39
|
-
function
|
|
38
|
+
function qn(e, t = 0, n = e.length) {
|
|
40
39
|
const r = e.split(/\r?\n/);
|
|
41
40
|
let a = 0;
|
|
42
41
|
const s = [];
|
|
@@ -68,10 +67,10 @@ function fe(e, t) {
|
|
|
68
67
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
69
68
|
}
|
|
70
69
|
const Gt = {};
|
|
71
|
-
function
|
|
70
|
+
function Zn(e) {
|
|
72
71
|
Gt[e] || (Gt[e] = !0, fe(e));
|
|
73
72
|
}
|
|
74
|
-
function
|
|
73
|
+
function zn() {
|
|
75
74
|
const e = /* @__PURE__ */ new Map();
|
|
76
75
|
return {
|
|
77
76
|
events: e,
|
|
@@ -105,7 +104,7 @@ function Ye(e, t) {
|
|
|
105
104
|
* (c) 2025 kazuya kawaguchi
|
|
106
105
|
* Released under the MIT License.
|
|
107
106
|
*/
|
|
108
|
-
function
|
|
107
|
+
function er(e, t, n) {
|
|
109
108
|
return { line: e, column: t, offset: n };
|
|
110
109
|
}
|
|
111
110
|
function dt(e, t, n) {
|
|
@@ -132,7 +131,7 @@ const P = {
|
|
|
132
131
|
UNHANDLED_CODEGEN_NODE_TYPE: 15,
|
|
133
132
|
// minifier error codes
|
|
134
133
|
UNHANDLED_MINIFIER_NODE_TYPE: 16
|
|
135
|
-
},
|
|
134
|
+
}, tr = 17, nr = {
|
|
136
135
|
// tokenizer error messages
|
|
137
136
|
[P.EXPECTED_TOKEN]: "Expected token: '{0}'",
|
|
138
137
|
[P.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
|
|
@@ -154,19 +153,19 @@ const P = {
|
|
|
154
153
|
// minimizer error messages
|
|
155
154
|
[P.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
|
|
156
155
|
};
|
|
157
|
-
function
|
|
158
|
-
const { domain: r, messages: a, args: s } = n, i = process.env.NODE_ENV !== "production" ? xe((a ||
|
|
156
|
+
function Ce(e, t, n = {}) {
|
|
157
|
+
const { domain: r, messages: a, args: s } = n, i = process.env.NODE_ENV !== "production" ? xe((a || nr)[e] || "", ...s || []) : e, u = new SyntaxError(String(i));
|
|
159
158
|
return u.code = e, t && (u.location = t), u.domain = r, u;
|
|
160
159
|
}
|
|
161
|
-
function
|
|
160
|
+
function rr(e) {
|
|
162
161
|
throw e;
|
|
163
162
|
}
|
|
164
|
-
const
|
|
165
|
-
`,
|
|
166
|
-
function
|
|
163
|
+
const ar = /<\/?[\w\s="/.':;#-\/]+>/, sr = (e) => ar.test(e), se = " ", or = "\r", q = `
|
|
164
|
+
`, lr = "\u2028", ir = "\u2029";
|
|
165
|
+
function cr(e) {
|
|
167
166
|
const t = e;
|
|
168
167
|
let n = 0, r = 1, a = 1, s = 0;
|
|
169
|
-
const i = (N) => t[N] ===
|
|
168
|
+
const i = (N) => t[N] === or && t[N + 1] === q, u = (N) => t[N] === q, c = (N) => t[N] === ir, p = (N) => t[N] === lr, g = (N) => i(N) || u(N) || c(N) || p(N), h = () => n, T = () => r, S = () => a, v = () => s, b = (N) => i(N) || c(N) || p(N) ? q : t[N], D = () => b(n), f = () => b(n + s);
|
|
170
169
|
function m() {
|
|
171
170
|
return s = 0, g(n) && (r++, a = 0), i(n) && n++, n++, a++, t[n];
|
|
172
171
|
}
|
|
@@ -200,9 +199,9 @@ function ur(e) {
|
|
|
200
199
|
skipToPeek: A
|
|
201
200
|
};
|
|
202
201
|
}
|
|
203
|
-
const ce = void 0,
|
|
204
|
-
function
|
|
205
|
-
const n = t.location !== !1, r =
|
|
202
|
+
const ce = void 0, ur = ".", Kt = "'", fr = "tokenizer";
|
|
203
|
+
function _r(e, t = {}) {
|
|
204
|
+
const n = t.location !== !1, r = cr(e), a = () => r.index(), s = () => er(r.line(), r.column(), r.index()), i = s(), u = a(), c = {
|
|
206
205
|
currentType: 13,
|
|
207
206
|
offset: u,
|
|
208
207
|
startLoc: i,
|
|
@@ -218,8 +217,8 @@ function mr(e, t = {}) {
|
|
|
218
217
|
function h(o, l, E, ...R) {
|
|
219
218
|
const $ = p();
|
|
220
219
|
if (l.column += E, l.offset += E, g) {
|
|
221
|
-
const Y = n ? dt($.startLoc, l) : null, k =
|
|
222
|
-
domain:
|
|
220
|
+
const Y = n ? dt($.startLoc, l) : null, k = Ce(o, Y, {
|
|
221
|
+
domain: fr,
|
|
223
222
|
args: R
|
|
224
223
|
});
|
|
225
224
|
g(k);
|
|
@@ -375,7 +374,7 @@ function mr(e, t = {}) {
|
|
|
375
374
|
function ae(o) {
|
|
376
375
|
return x(o, et);
|
|
377
376
|
}
|
|
378
|
-
function
|
|
377
|
+
function be(o) {
|
|
379
378
|
let l = "", E = "";
|
|
380
379
|
for (; l = ze(o); )
|
|
381
380
|
E += l;
|
|
@@ -410,7 +409,7 @@ function mr(e, t = {}) {
|
|
|
410
409
|
function rt(o) {
|
|
411
410
|
D(o);
|
|
412
411
|
let l = "";
|
|
413
|
-
return o.currentChar() === "-" ? (o.next(), l += `-${
|
|
412
|
+
return o.currentChar() === "-" ? (o.next(), l += `-${be(o)}`) : l += be(o), o.currentChar() === ce && h(P.UNTERMINATED_CLOSING_BRACE, s(), 0), l;
|
|
414
413
|
}
|
|
415
414
|
function at(o) {
|
|
416
415
|
return o !== Kt && o !== q;
|
|
@@ -473,7 +472,7 @@ function mr(e, t = {}) {
|
|
|
473
472
|
};
|
|
474
473
|
return l("");
|
|
475
474
|
}
|
|
476
|
-
function
|
|
475
|
+
function Se(o) {
|
|
477
476
|
D(o);
|
|
478
477
|
const l = v(
|
|
479
478
|
o,
|
|
@@ -482,7 +481,7 @@ function mr(e, t = {}) {
|
|
|
482
481
|
);
|
|
483
482
|
return D(o), l;
|
|
484
483
|
}
|
|
485
|
-
function
|
|
484
|
+
function De(o, l) {
|
|
486
485
|
let E = null;
|
|
487
486
|
switch (o.currentChar()) {
|
|
488
487
|
case "{":
|
|
@@ -504,9 +503,9 @@ function mr(e, t = {}) {
|
|
|
504
503
|
default: {
|
|
505
504
|
let $ = !0, Y = !0, k = !0;
|
|
506
505
|
if (H(o))
|
|
507
|
-
return l.braceNest > 0 && h(P.UNTERMINATED_CLOSING_BRACE, s(), 0), E = T(l, 1,
|
|
506
|
+
return l.braceNest > 0 && h(P.UNTERMINATED_CLOSING_BRACE, s(), 0), E = T(l, 1, Se(o)), l.braceNest = 0, l.inLinked = !1, E;
|
|
508
507
|
if (l.braceNest > 0 && (l.currentType === 4 || l.currentType === 5 || l.currentType === 6))
|
|
509
|
-
return h(P.UNTERMINATED_CLOSING_BRACE, s(), 0), l.braceNest = 0,
|
|
508
|
+
return h(P.UNTERMINATED_CLOSING_BRACE, s(), 0), l.braceNest = 0, Re(o, l);
|
|
510
509
|
if ($ = O(o, l))
|
|
511
510
|
return E = T(l, 4, nt(o)), D(o), E;
|
|
512
511
|
if (Y = d(o, l))
|
|
@@ -547,21 +546,21 @@ function mr(e, t = {}) {
|
|
|
547
546
|
/* TokenChars.LinkedDelimiter */
|
|
548
547
|
);
|
|
549
548
|
default:
|
|
550
|
-
return H(o) ? (R = T(l, 1,
|
|
549
|
+
return H(o) ? (R = T(l, 1, Se(o)), l.braceNest = 0, l.inLinked = !1, R) : A(o, l) || y(o, l) ? (D(o), de(o, l)) : N(o, l) ? (D(o), T(l, 11, it(o))) : w(o, l) ? (D(o), $ === "{" ? De(o, l) || R : T(l, 10, ct(o))) : (E === 7 && h(P.INVALID_LINKED_FORMAT, s(), 0), l.braceNest = 0, l.inLinked = !1, Re(o, l));
|
|
551
550
|
}
|
|
552
551
|
}
|
|
553
|
-
function
|
|
552
|
+
function Re(o, l) {
|
|
554
553
|
let E = {
|
|
555
554
|
type: 13
|
|
556
555
|
/* TokenTypes.EOF */
|
|
557
556
|
};
|
|
558
557
|
if (l.braceNest > 0)
|
|
559
|
-
return
|
|
558
|
+
return De(o, l) || S(l);
|
|
560
559
|
if (l.inLinked)
|
|
561
560
|
return de(o, l) || S(l);
|
|
562
561
|
switch (o.currentChar()) {
|
|
563
562
|
case "{":
|
|
564
|
-
return
|
|
563
|
+
return De(o, l) || S(l);
|
|
565
564
|
case "}":
|
|
566
565
|
return h(P.UNBALANCED_CLOSING_BRACE, s(), 0), o.next(), T(
|
|
567
566
|
l,
|
|
@@ -573,7 +572,7 @@ function mr(e, t = {}) {
|
|
|
573
572
|
return de(o, l) || S(l);
|
|
574
573
|
default: {
|
|
575
574
|
if (H(o))
|
|
576
|
-
return E = T(l, 1,
|
|
575
|
+
return E = T(l, 1, Se(o)), l.braceNest = 0, l.inLinked = !1, E;
|
|
577
576
|
if (te(o))
|
|
578
577
|
return T(l, 0, tt(o));
|
|
579
578
|
break;
|
|
@@ -587,7 +586,7 @@ function mr(e, t = {}) {
|
|
|
587
586
|
c,
|
|
588
587
|
13
|
|
589
588
|
/* TokenTypes.EOF */
|
|
590
|
-
) :
|
|
589
|
+
) : Re(r, c);
|
|
591
590
|
}
|
|
592
591
|
return {
|
|
593
592
|
nextToken: ut,
|
|
@@ -596,8 +595,8 @@ function mr(e, t = {}) {
|
|
|
596
595
|
context: p
|
|
597
596
|
};
|
|
598
597
|
}
|
|
599
|
-
const
|
|
600
|
-
function
|
|
598
|
+
const mr = "parser", dr = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
599
|
+
function Er(e, t, n) {
|
|
601
600
|
switch (e) {
|
|
602
601
|
case "\\\\":
|
|
603
602
|
return "\\";
|
|
@@ -609,13 +608,13 @@ function Nr(e, t, n) {
|
|
|
609
608
|
}
|
|
610
609
|
}
|
|
611
610
|
}
|
|
612
|
-
function
|
|
611
|
+
function Nr(e = {}) {
|
|
613
612
|
const t = e.location !== !1, { onError: n } = e;
|
|
614
613
|
function r(f, m, O, d, ...I) {
|
|
615
614
|
const A = f.currentPosition();
|
|
616
615
|
if (A.offset += d, A.column += d, n) {
|
|
617
|
-
const N = t ? dt(O, A) : null, y =
|
|
618
|
-
domain:
|
|
616
|
+
const N = t ? dt(O, A) : null, y = Ce(m, N, {
|
|
617
|
+
domain: mr,
|
|
619
618
|
args: I
|
|
620
619
|
});
|
|
621
620
|
n(y);
|
|
@@ -642,7 +641,7 @@ function pr(e = {}) {
|
|
|
642
641
|
}
|
|
643
642
|
function p(f, m) {
|
|
644
643
|
const O = f.context(), { lastOffset: d, lastStartLoc: I } = O, A = a(9, d, I);
|
|
645
|
-
return A.value = m.replace(
|
|
644
|
+
return A.value = m.replace(dr, Er), f.nextToken(), s(A, f.currentOffset(), f.currentPosition()), A;
|
|
646
645
|
}
|
|
647
646
|
function g(f) {
|
|
648
647
|
const m = f.nextToken(), O = f.context(), { lastOffset: d, lastStartLoc: I } = O, A = a(8, d, I);
|
|
@@ -735,7 +734,7 @@ function pr(e = {}) {
|
|
|
735
734
|
return m.currentType === 13 ? I : v(f, O, d, I);
|
|
736
735
|
}
|
|
737
736
|
function D(f) {
|
|
738
|
-
const m =
|
|
737
|
+
const m = _r(f, j({}, e)), O = m.context(), d = a(0, O.offset, O.startLoc);
|
|
739
738
|
return t && d.loc && (d.loc.source = f), d.body = b(m), e.onCacheKey && (d.cacheKey = e.onCacheKey(f)), O.currentType !== 13 && r(m, P.UNEXPECTED_LEXICAL_ANALYSIS, O.lastStartLoc, 0, f[O.offset] || ""), s(d, m.currentOffset(), m.currentPosition()), d;
|
|
740
739
|
}
|
|
741
740
|
return { parse: D };
|
|
@@ -746,7 +745,7 @@ function re(e) {
|
|
|
746
745
|
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
747
746
|
return t.length > 10 ? t.slice(0, 9) + "…" : t;
|
|
748
747
|
}
|
|
749
|
-
function
|
|
748
|
+
function pr(e, t = {}) {
|
|
750
749
|
const n = {
|
|
751
750
|
ast: e,
|
|
752
751
|
helpers: /* @__PURE__ */ new Set()
|
|
@@ -798,8 +797,8 @@ function Rt(e, t) {
|
|
|
798
797
|
break;
|
|
799
798
|
}
|
|
800
799
|
}
|
|
801
|
-
function
|
|
802
|
-
const n =
|
|
800
|
+
function Lr(e, t = {}) {
|
|
801
|
+
const n = pr(e);
|
|
803
802
|
n.helper(
|
|
804
803
|
"normalize"
|
|
805
804
|
/* HelperNameMap.NORMALIZE */
|
|
@@ -807,7 +806,7 @@ function Tr(e, t = {}) {
|
|
|
807
806
|
const r = n.context();
|
|
808
807
|
e.helpers = Array.from(r.helpers);
|
|
809
808
|
}
|
|
810
|
-
function
|
|
809
|
+
function Tr(e) {
|
|
811
810
|
const t = e.body;
|
|
812
811
|
return t.type === 2 ? xt(t) : t.cases.forEach((n) => xt(n)), e;
|
|
813
812
|
}
|
|
@@ -832,25 +831,25 @@ function xt(e) {
|
|
|
832
831
|
}
|
|
833
832
|
}
|
|
834
833
|
}
|
|
835
|
-
const
|
|
836
|
-
function
|
|
834
|
+
const Or = "minifier";
|
|
835
|
+
function Ae(e) {
|
|
837
836
|
switch (e.t = e.type, e.type) {
|
|
838
837
|
case 0: {
|
|
839
838
|
const t = e;
|
|
840
|
-
|
|
839
|
+
Ae(t.body), t.b = t.body, delete t.body;
|
|
841
840
|
break;
|
|
842
841
|
}
|
|
843
842
|
case 1: {
|
|
844
843
|
const t = e, n = t.cases;
|
|
845
844
|
for (let r = 0; r < n.length; r++)
|
|
846
|
-
|
|
845
|
+
Ae(n[r]);
|
|
847
846
|
t.c = n, delete t.cases;
|
|
848
847
|
break;
|
|
849
848
|
}
|
|
850
849
|
case 2: {
|
|
851
850
|
const t = e, n = t.items;
|
|
852
851
|
for (let r = 0; r < n.length; r++)
|
|
853
|
-
|
|
852
|
+
Ae(n[r]);
|
|
854
853
|
t.i = n, delete t.items, t.static && (t.s = t.static, delete t.static);
|
|
855
854
|
break;
|
|
856
855
|
}
|
|
@@ -864,7 +863,7 @@ function he(e) {
|
|
|
864
863
|
}
|
|
865
864
|
case 6: {
|
|
866
865
|
const t = e;
|
|
867
|
-
|
|
866
|
+
Ae(t.key), t.k = t.key, delete t.key, t.modifier && (Ae(t.modifier), t.m = t.modifier, delete t.modifier);
|
|
868
867
|
break;
|
|
869
868
|
}
|
|
870
869
|
case 5: {
|
|
@@ -879,15 +878,15 @@ function he(e) {
|
|
|
879
878
|
}
|
|
880
879
|
default:
|
|
881
880
|
if (process.env.NODE_ENV !== "production")
|
|
882
|
-
throw
|
|
883
|
-
domain:
|
|
881
|
+
throw Ce(P.UNHANDLED_MINIFIER_NODE_TYPE, null, {
|
|
882
|
+
domain: Or,
|
|
884
883
|
args: [e.type]
|
|
885
884
|
});
|
|
886
885
|
}
|
|
887
886
|
delete e.type;
|
|
888
887
|
}
|
|
889
|
-
const
|
|
890
|
-
function
|
|
888
|
+
const gr = "parser";
|
|
889
|
+
function Ir(e, t) {
|
|
891
890
|
const { filename: n, breakLineCode: r, needIndent: a } = t, s = t.location !== !1, i = {
|
|
892
891
|
filename: n,
|
|
893
892
|
code: "",
|
|
@@ -929,25 +928,25 @@ function Ar(e, t) {
|
|
|
929
928
|
needIndent: () => i.needIndent
|
|
930
929
|
};
|
|
931
930
|
}
|
|
932
|
-
function
|
|
931
|
+
function Ar(e, t) {
|
|
933
932
|
const { helper: n } = e;
|
|
934
933
|
e.push(`${n(
|
|
935
934
|
"linked"
|
|
936
935
|
/* HelperNameMap.LINKED */
|
|
937
|
-
)}(`),
|
|
936
|
+
)}(`), he(e, t.key), t.modifier ? (e.push(", "), he(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
938
937
|
}
|
|
939
|
-
function
|
|
938
|
+
function hr(e, t) {
|
|
940
939
|
const { helper: n, needIndent: r } = e;
|
|
941
940
|
e.push(`${n(
|
|
942
941
|
"normalize"
|
|
943
942
|
/* HelperNameMap.NORMALIZE */
|
|
944
943
|
)}([`), e.indent(r());
|
|
945
944
|
const a = t.items.length;
|
|
946
|
-
for (let s = 0; s < a && (
|
|
945
|
+
for (let s = 0; s < a && (he(e, t.items[s]), s !== a - 1); s++)
|
|
947
946
|
e.push(", ");
|
|
948
947
|
e.deindent(r()), e.push("])");
|
|
949
948
|
}
|
|
950
|
-
function
|
|
949
|
+
function Cr(e, t) {
|
|
951
950
|
const { helper: n, needIndent: r } = e;
|
|
952
951
|
if (t.cases.length > 1) {
|
|
953
952
|
e.push(`${n(
|
|
@@ -955,28 +954,28 @@ function br(e, t) {
|
|
|
955
954
|
/* HelperNameMap.PLURAL */
|
|
956
955
|
)}([`), e.indent(r());
|
|
957
956
|
const a = t.cases.length;
|
|
958
|
-
for (let s = 0; s < a && (
|
|
957
|
+
for (let s = 0; s < a && (he(e, t.cases[s]), s !== a - 1); s++)
|
|
959
958
|
e.push(", ");
|
|
960
959
|
e.deindent(r()), e.push("])");
|
|
961
960
|
}
|
|
962
961
|
}
|
|
963
|
-
function
|
|
964
|
-
t.body ?
|
|
962
|
+
function br(e, t) {
|
|
963
|
+
t.body ? he(e, t.body) : e.push("null");
|
|
965
964
|
}
|
|
966
|
-
function
|
|
965
|
+
function he(e, t) {
|
|
967
966
|
const { helper: n } = e;
|
|
968
967
|
switch (t.type) {
|
|
969
968
|
case 0:
|
|
970
|
-
|
|
969
|
+
br(e, t);
|
|
971
970
|
break;
|
|
972
971
|
case 1:
|
|
973
|
-
|
|
972
|
+
Cr(e, t);
|
|
974
973
|
break;
|
|
975
974
|
case 2:
|
|
976
|
-
|
|
975
|
+
hr(e, t);
|
|
977
976
|
break;
|
|
978
977
|
case 6:
|
|
979
|
-
|
|
978
|
+
Ar(e, t);
|
|
980
979
|
break;
|
|
981
980
|
case 8:
|
|
982
981
|
e.push(JSON.stringify(t.value), t);
|
|
@@ -1010,22 +1009,22 @@ function Ce(e, t) {
|
|
|
1010
1009
|
break;
|
|
1011
1010
|
default:
|
|
1012
1011
|
if (process.env.NODE_ENV !== "production")
|
|
1013
|
-
throw
|
|
1014
|
-
domain:
|
|
1012
|
+
throw Ce(P.UNHANDLED_CODEGEN_NODE_TYPE, null, {
|
|
1013
|
+
domain: gr,
|
|
1015
1014
|
args: [t.type]
|
|
1016
1015
|
});
|
|
1017
1016
|
}
|
|
1018
1017
|
}
|
|
1019
|
-
const
|
|
1018
|
+
const Sr = (e, t = {}) => {
|
|
1020
1019
|
const n = C(t.mode) ? t.mode : "normal", r = C(t.filename) ? t.filename : "message.intl";
|
|
1021
1020
|
t.sourceMap;
|
|
1022
1021
|
const a = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
1023
|
-
`, s = t.needIndent ? t.needIndent : n !== "arrow", i = e.helpers || [], u =
|
|
1022
|
+
`, s = t.needIndent ? t.needIndent : n !== "arrow", i = e.helpers || [], u = Ir(e, {
|
|
1024
1023
|
filename: r,
|
|
1025
1024
|
breakLineCode: a,
|
|
1026
1025
|
needIndent: s
|
|
1027
1026
|
});
|
|
1028
|
-
u.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), u.indent(s), i.length > 0 && (u.push(`const { ${Dt(i.map((g) => `${g}: _${g}`), ", ")} } = ctx`), u.newline()), u.push("return "),
|
|
1027
|
+
u.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), u.indent(s), i.length > 0 && (u.push(`const { ${Dt(i.map((g) => `${g}: _${g}`), ", ")} } = ctx`), u.newline()), u.push("return "), he(u, e), u.deindent(s), u.push("}"), delete e.helpers;
|
|
1029
1028
|
const { code: c, map: p } = u.context();
|
|
1030
1029
|
return {
|
|
1031
1030
|
ast: e,
|
|
@@ -1034,30 +1033,30 @@ const Dr = (e, t = {}) => {
|
|
|
1034
1033
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1035
1034
|
};
|
|
1036
1035
|
};
|
|
1037
|
-
function
|
|
1038
|
-
const n = j({}, t), r = !!n.jit, a = !!n.minify, s = n.optimize == null ? !0 : n.optimize, u =
|
|
1039
|
-
return r ? (s &&
|
|
1036
|
+
function Dr(e, t = {}) {
|
|
1037
|
+
const n = j({}, t), r = !!n.jit, a = !!n.minify, s = n.optimize == null ? !0 : n.optimize, u = Nr(n).parse(e);
|
|
1038
|
+
return r ? (s && Tr(u), a && Ae(u), { ast: u, code: "" }) : (Lr(u, n), Sr(u, n));
|
|
1040
1039
|
}
|
|
1041
1040
|
/*!
|
|
1042
1041
|
* core-base v11.1.1
|
|
1043
1042
|
* (c) 2025 kazuya kawaguchi
|
|
1044
1043
|
* Released under the MIT License.
|
|
1045
1044
|
*/
|
|
1046
|
-
function
|
|
1045
|
+
function Rr() {
|
|
1047
1046
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (pe().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (pe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
1048
1047
|
}
|
|
1049
1048
|
function ft(e) {
|
|
1050
|
-
return (n) =>
|
|
1049
|
+
return (n) => Pr(n, e);
|
|
1051
1050
|
}
|
|
1052
|
-
function
|
|
1053
|
-
const n =
|
|
1051
|
+
function Pr(e, t) {
|
|
1052
|
+
const n = yr(t);
|
|
1054
1053
|
if (n == null)
|
|
1055
1054
|
throw ye(
|
|
1056
1055
|
0
|
|
1057
1056
|
/* NodeTypes.Resource */
|
|
1058
1057
|
);
|
|
1059
1058
|
if (Pt(n) === 1) {
|
|
1060
|
-
const s =
|
|
1059
|
+
const s = Mr(n);
|
|
1061
1060
|
return e.plural(s.reduce((i, u) => [
|
|
1062
1061
|
...i,
|
|
1063
1062
|
Bt(e, u)
|
|
@@ -1065,30 +1064,30 @@ function vr(e, t) {
|
|
|
1065
1064
|
} else
|
|
1066
1065
|
return Bt(e, n);
|
|
1067
1066
|
}
|
|
1068
|
-
const
|
|
1069
|
-
function
|
|
1070
|
-
return _e(e,
|
|
1067
|
+
const vr = ["b", "body"];
|
|
1068
|
+
function yr(e) {
|
|
1069
|
+
return _e(e, vr);
|
|
1071
1070
|
}
|
|
1072
|
-
const
|
|
1073
|
-
function
|
|
1074
|
-
return _e(e,
|
|
1071
|
+
const kr = ["c", "cases"];
|
|
1072
|
+
function Mr(e) {
|
|
1073
|
+
return _e(e, kr, []);
|
|
1075
1074
|
}
|
|
1076
1075
|
function Bt(e, t) {
|
|
1077
|
-
const n =
|
|
1076
|
+
const n = Ur(t);
|
|
1078
1077
|
if (n != null)
|
|
1079
1078
|
return e.type === "text" ? n : e.normalize([n]);
|
|
1080
1079
|
{
|
|
1081
|
-
const r =
|
|
1080
|
+
const r = Vr(t).reduce((a, s) => [...a, Et(e, s)], []);
|
|
1082
1081
|
return e.normalize(r);
|
|
1083
1082
|
}
|
|
1084
1083
|
}
|
|
1085
|
-
const
|
|
1086
|
-
function
|
|
1087
|
-
return _e(e,
|
|
1084
|
+
const Fr = ["s", "static"];
|
|
1085
|
+
function Ur(e) {
|
|
1086
|
+
return _e(e, Fr);
|
|
1088
1087
|
}
|
|
1089
|
-
const
|
|
1090
|
-
function
|
|
1091
|
-
return _e(e,
|
|
1088
|
+
const wr = ["i", "items"];
|
|
1089
|
+
function Vr(e) {
|
|
1090
|
+
return _e(e, wr, []);
|
|
1092
1091
|
}
|
|
1093
1092
|
function Et(e, t) {
|
|
1094
1093
|
const n = Pt(t);
|
|
@@ -1114,7 +1113,7 @@ function Et(e, t) {
|
|
|
1114
1113
|
throw ye(n);
|
|
1115
1114
|
}
|
|
1116
1115
|
case 6: {
|
|
1117
|
-
const r = t, a =
|
|
1116
|
+
const r = t, a = Gr(r), s = Hr(r);
|
|
1118
1117
|
return e.linked(Et(e, s), a ? Et(e, a) : void 0, e.type);
|
|
1119
1118
|
}
|
|
1120
1119
|
case 7:
|
|
@@ -1125,24 +1124,24 @@ function Et(e, t) {
|
|
|
1125
1124
|
throw new Error(`unhandled node on format message part: ${n}`);
|
|
1126
1125
|
}
|
|
1127
1126
|
}
|
|
1128
|
-
const
|
|
1127
|
+
const Wr = ["t", "type"];
|
|
1129
1128
|
function Pt(e) {
|
|
1130
|
-
return _e(e,
|
|
1129
|
+
return _e(e, Wr);
|
|
1131
1130
|
}
|
|
1132
|
-
const
|
|
1131
|
+
const $r = ["v", "value"];
|
|
1133
1132
|
function We(e, t) {
|
|
1134
|
-
const n = _e(e,
|
|
1133
|
+
const n = _e(e, $r);
|
|
1135
1134
|
if (n)
|
|
1136
1135
|
return n;
|
|
1137
1136
|
throw ye(t);
|
|
1138
1137
|
}
|
|
1139
|
-
const
|
|
1140
|
-
function
|
|
1141
|
-
return _e(e,
|
|
1138
|
+
const Yr = ["m", "modifier"];
|
|
1139
|
+
function Gr(e) {
|
|
1140
|
+
return _e(e, Yr);
|
|
1142
1141
|
}
|
|
1143
|
-
const
|
|
1144
|
-
function
|
|
1145
|
-
const t = _e(e,
|
|
1142
|
+
const Kr = ["k", "key"];
|
|
1143
|
+
function Hr(e) {
|
|
1144
|
+
const t = _e(e, Kr);
|
|
1146
1145
|
if (t)
|
|
1147
1146
|
return t;
|
|
1148
1147
|
throw ye(
|
|
@@ -1161,31 +1160,31 @@ function _e(e, t, n) {
|
|
|
1161
1160
|
function ye(e) {
|
|
1162
1161
|
return new Error(`unhandled node type: ${e}`);
|
|
1163
1162
|
}
|
|
1164
|
-
const
|
|
1165
|
-
function
|
|
1166
|
-
t &&
|
|
1163
|
+
const xr = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
|
|
1164
|
+
function Br(e, t) {
|
|
1165
|
+
t && sr(e) && fe(xe(xr, { source: e }));
|
|
1167
1166
|
}
|
|
1168
|
-
const
|
|
1167
|
+
const Xr = (e) => e;
|
|
1169
1168
|
let $e = V();
|
|
1170
1169
|
function Te(e) {
|
|
1171
1170
|
return F(e) && Pt(e) === 0 && (ne(e, "b") || ne(e, "body"));
|
|
1172
1171
|
}
|
|
1173
|
-
function
|
|
1172
|
+
function jr(e, t = {}) {
|
|
1174
1173
|
let n = !1;
|
|
1175
|
-
const r = t.onError ||
|
|
1174
|
+
const r = t.onError || rr;
|
|
1176
1175
|
return t.onError = (a) => {
|
|
1177
1176
|
n = !0, r(a);
|
|
1178
|
-
}, { ...
|
|
1177
|
+
}, { ...Dr(e, t), detectError: n };
|
|
1179
1178
|
}
|
|
1180
1179
|
// @__NO_SIDE_EFFECTS__
|
|
1181
|
-
function
|
|
1180
|
+
function Jr(e, t) {
|
|
1182
1181
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && C(e)) {
|
|
1183
1182
|
const n = K(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
|
|
1184
|
-
process.env.NODE_ENV !== "production" &&
|
|
1185
|
-
const a = (t.onCacheKey ||
|
|
1183
|
+
process.env.NODE_ENV !== "production" && Br(e, n);
|
|
1184
|
+
const a = (t.onCacheKey || Xr)(e), s = $e[a];
|
|
1186
1185
|
if (s)
|
|
1187
1186
|
return s;
|
|
1188
|
-
const { ast: i, detectError: u } =
|
|
1187
|
+
const { ast: i, detectError: u } = jr(e, {
|
|
1189
1188
|
...t,
|
|
1190
1189
|
location: process.env.NODE_ENV !== "production",
|
|
1191
1190
|
jit: !0
|
|
@@ -1203,10 +1202,10 @@ function Qr(e, t) {
|
|
|
1203
1202
|
}
|
|
1204
1203
|
}
|
|
1205
1204
|
let ke = null;
|
|
1206
|
-
function
|
|
1205
|
+
function Qr(e) {
|
|
1207
1206
|
ke = e;
|
|
1208
1207
|
}
|
|
1209
|
-
function
|
|
1208
|
+
function qr(e, t, n) {
|
|
1210
1209
|
ke && ke.emit("i18n:init", {
|
|
1211
1210
|
timestamp: Date.now(),
|
|
1212
1211
|
i18n: e,
|
|
@@ -1214,12 +1213,12 @@ function Zr(e, t, n) {
|
|
|
1214
1213
|
meta: n
|
|
1215
1214
|
});
|
|
1216
1215
|
}
|
|
1217
|
-
const
|
|
1218
|
-
function
|
|
1216
|
+
const Zr = /* @__PURE__ */ zr("function:translate");
|
|
1217
|
+
function zr(e) {
|
|
1219
1218
|
return (t) => ke && ke.emit(e, t);
|
|
1220
1219
|
}
|
|
1221
1220
|
const Q = {
|
|
1222
|
-
INVALID_ARGUMENT:
|
|
1221
|
+
INVALID_ARGUMENT: tr,
|
|
1223
1222
|
// 17
|
|
1224
1223
|
INVALID_DATE_ARGUMENT: 18,
|
|
1225
1224
|
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
@@ -1227,11 +1226,11 @@ const Q = {
|
|
|
1227
1226
|
NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
|
|
1228
1227
|
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
1229
1228
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1230
|
-
},
|
|
1229
|
+
}, ea = 24;
|
|
1231
1230
|
function oe(e) {
|
|
1232
|
-
return
|
|
1231
|
+
return Ce(e, null, process.env.NODE_ENV !== "production" ? { messages: ta } : void 0);
|
|
1233
1232
|
}
|
|
1234
|
-
const
|
|
1233
|
+
const ta = {
|
|
1235
1234
|
[Q.INVALID_ARGUMENT]: "Invalid arguments",
|
|
1236
1235
|
[Q.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
|
|
1237
1236
|
[Q.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
|
|
@@ -1252,7 +1251,7 @@ function Xt(e) {
|
|
|
1252
1251
|
return _t;
|
|
1253
1252
|
if (e.constructor.name === "Function") {
|
|
1254
1253
|
const t = e();
|
|
1255
|
-
if (
|
|
1254
|
+
if (Jn(t))
|
|
1256
1255
|
throw oe(Q.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1257
1256
|
return _t = t;
|
|
1258
1257
|
} else
|
|
@@ -1260,13 +1259,13 @@ function Xt(e) {
|
|
|
1260
1259
|
} else
|
|
1261
1260
|
throw oe(Q.NOT_SUPPORT_LOCALE_TYPE);
|
|
1262
1261
|
}
|
|
1263
|
-
function
|
|
1262
|
+
function na(e, t, n) {
|
|
1264
1263
|
return [.../* @__PURE__ */ new Set([
|
|
1265
1264
|
n,
|
|
1266
1265
|
...B(t) ? t : F(t) ? Object.keys(t) : C(t) ? [t] : [n]
|
|
1267
1266
|
])];
|
|
1268
1267
|
}
|
|
1269
|
-
function
|
|
1268
|
+
function pn(e, t, n) {
|
|
1270
1269
|
const r = C(n) ? n : Ke, a = e;
|
|
1271
1270
|
a.__localeChainCache || (a.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1272
1271
|
let s = a.__localeChainCache.get(r);
|
|
@@ -1284,20 +1283,20 @@ function jt(e, t, n) {
|
|
|
1284
1283
|
let r = !0;
|
|
1285
1284
|
for (let a = 0; a < t.length && K(r); a++) {
|
|
1286
1285
|
const s = t[a];
|
|
1287
|
-
C(s) && (r =
|
|
1286
|
+
C(s) && (r = ra(e, t[a], n));
|
|
1288
1287
|
}
|
|
1289
1288
|
return r;
|
|
1290
1289
|
}
|
|
1291
|
-
function
|
|
1290
|
+
function ra(e, t, n) {
|
|
1292
1291
|
let r;
|
|
1293
1292
|
const a = t.split("-");
|
|
1294
1293
|
do {
|
|
1295
1294
|
const s = a.join("-");
|
|
1296
|
-
r =
|
|
1295
|
+
r = aa(e, s, n), a.splice(-1, 1);
|
|
1297
1296
|
} while (a.length && r === !0);
|
|
1298
1297
|
return r;
|
|
1299
1298
|
}
|
|
1300
|
-
function
|
|
1299
|
+
function aa(e, t, n) {
|
|
1301
1300
|
let r = !1;
|
|
1302
1301
|
if (!e.includes(t) && (r = !0, t)) {
|
|
1303
1302
|
r = t[t.length - 1] !== "!";
|
|
@@ -1467,15 +1466,15 @@ me[
|
|
|
1467
1466
|
/* Actions.APPEND */
|
|
1468
1467
|
]
|
|
1469
1468
|
};
|
|
1470
|
-
const
|
|
1471
|
-
function
|
|
1472
|
-
return
|
|
1469
|
+
const sa = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1470
|
+
function oa(e) {
|
|
1471
|
+
return sa.test(e);
|
|
1473
1472
|
}
|
|
1474
|
-
function
|
|
1473
|
+
function la(e) {
|
|
1475
1474
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
1476
1475
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1477
1476
|
}
|
|
1478
|
-
function
|
|
1477
|
+
function ia(e) {
|
|
1479
1478
|
if (e == null)
|
|
1480
1479
|
return "o";
|
|
1481
1480
|
switch (e.charCodeAt(0)) {
|
|
@@ -1500,11 +1499,11 @@ function ca(e) {
|
|
|
1500
1499
|
}
|
|
1501
1500
|
return "i";
|
|
1502
1501
|
}
|
|
1503
|
-
function
|
|
1502
|
+
function ca(e) {
|
|
1504
1503
|
const t = e.trim();
|
|
1505
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 :
|
|
1504
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : oa(t) ? la(t) : "*" + t;
|
|
1506
1505
|
}
|
|
1507
|
-
function
|
|
1506
|
+
function ua(e) {
|
|
1508
1507
|
const t = [];
|
|
1509
1508
|
let n = -1, r = 0, a = 0, s, i, u, c, p, g, h;
|
|
1510
1509
|
const T = [];
|
|
@@ -1536,7 +1535,7 @@ function fa(e) {
|
|
|
1536
1535
|
/* Actions.APPEND */
|
|
1537
1536
|
]();
|
|
1538
1537
|
else {
|
|
1539
|
-
if (a = 0, i === void 0 || (i =
|
|
1538
|
+
if (a = 0, i === void 0 || (i = ca(i), i === !1))
|
|
1540
1539
|
return !1;
|
|
1541
1540
|
T[
|
|
1542
1541
|
1
|
|
@@ -1554,21 +1553,21 @@ function fa(e) {
|
|
|
1554
1553
|
}
|
|
1555
1554
|
for (; r !== null; )
|
|
1556
1555
|
if (n++, s = e[n], !(s === "\\" && S())) {
|
|
1557
|
-
if (c =
|
|
1556
|
+
if (c = ia(s), h = me[r], p = h[c] || h.l || 8, p === 8 || (r = p[0], p[1] !== void 0 && (g = T[p[1]], g && (u = s, g() === !1))))
|
|
1558
1557
|
return;
|
|
1559
1558
|
if (r === 7)
|
|
1560
1559
|
return t;
|
|
1561
1560
|
}
|
|
1562
1561
|
}
|
|
1563
1562
|
const Jt = /* @__PURE__ */ new Map();
|
|
1564
|
-
function
|
|
1563
|
+
function fa(e, t) {
|
|
1565
1564
|
return F(e) ? e[t] : null;
|
|
1566
1565
|
}
|
|
1567
|
-
function
|
|
1566
|
+
function _a(e, t) {
|
|
1568
1567
|
if (!F(e))
|
|
1569
1568
|
return null;
|
|
1570
1569
|
let n = Jt.get(t);
|
|
1571
|
-
if (n || (n =
|
|
1570
|
+
if (n || (n = ua(t), n && Jt.set(t, n)), !n)
|
|
1572
1571
|
return null;
|
|
1573
1572
|
const r = n.length;
|
|
1574
1573
|
let a = e, s = 0;
|
|
@@ -1588,7 +1587,7 @@ const Z = {
|
|
|
1588
1587
|
CANNOT_FORMAT_DATE: 5,
|
|
1589
1588
|
FALLBACK_TO_DATE_FORMAT: 6,
|
|
1590
1589
|
EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7
|
|
1591
|
-
},
|
|
1590
|
+
}, ma = 8, da = {
|
|
1592
1591
|
[Z.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
|
|
1593
1592
|
[Z.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
|
|
1594
1593
|
[Z.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
|
|
@@ -1598,16 +1597,20 @@ const Z = {
|
|
|
1598
1597
|
[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."
|
|
1599
1598
|
};
|
|
1600
1599
|
function Oe(e, ...t) {
|
|
1601
|
-
return xe(
|
|
1600
|
+
return xe(da[e], ...t);
|
|
1602
1601
|
}
|
|
1603
|
-
const
|
|
1604
|
-
function
|
|
1602
|
+
const Ea = "11.1.1", Xe = -1, Ke = "en-US", He = "", Qt = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1603
|
+
function Na() {
|
|
1605
1604
|
return {
|
|
1606
1605
|
upper: (e, t) => t === "text" && C(e) ? e.toUpperCase() : t === "vnode" && F(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1607
1606
|
lower: (e, t) => t === "text" && C(e) ? e.toLowerCase() : t === "vnode" && F(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1608
1607
|
capitalize: (e, t) => t === "text" && C(e) ? Qt(e) : t === "vnode" && F(e) && "__v_isVNode" in e ? Qt(e.children) : e
|
|
1609
1608
|
};
|
|
1610
1609
|
}
|
|
1610
|
+
let Ln;
|
|
1611
|
+
function pa(e) {
|
|
1612
|
+
Ln = e;
|
|
1613
|
+
}
|
|
1611
1614
|
let Tn;
|
|
1612
1615
|
function La(e) {
|
|
1613
1616
|
Tn = e;
|
|
@@ -1616,23 +1619,19 @@ let On;
|
|
|
1616
1619
|
function Ta(e) {
|
|
1617
1620
|
On = e;
|
|
1618
1621
|
}
|
|
1619
|
-
let gn;
|
|
1620
|
-
|
|
1622
|
+
let gn = null;
|
|
1623
|
+
const Oa = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
1621
1624
|
gn = e;
|
|
1622
|
-
}
|
|
1625
|
+
}, ga = /* @__NO_SIDE_EFFECTS__ */ () => gn;
|
|
1623
1626
|
let In = null;
|
|
1624
|
-
const ga = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
1625
|
-
In = e;
|
|
1626
|
-
}, Ia = /* @__NO_SIDE_EFFECTS__ */ () => In;
|
|
1627
|
-
let An = null;
|
|
1628
1627
|
const qt = (e) => {
|
|
1629
|
-
|
|
1630
|
-
},
|
|
1628
|
+
In = e;
|
|
1629
|
+
}, Ia = () => In;
|
|
1631
1630
|
let Zt = 0;
|
|
1632
|
-
function
|
|
1633
|
-
const t = W(e.onWarn) ? e.onWarn : fe, n = C(e.version) ? e.version :
|
|
1634
|
-
process.env.NODE_ENV !== "production" && W(e.messageCompiler) &&
|
|
1635
|
-
const I = W(e.messageResolver) ? e.messageResolver :
|
|
1631
|
+
function Aa(e = {}) {
|
|
1632
|
+
const t = W(e.onWarn) ? e.onWarn : fe, n = C(e.version) ? e.version : Ea, r = C(e.locale) || W(e.locale) ? e.locale : Ke, a = W(r) ? Ke : r, s = B(e.fallbackLocale) || M(e.fallbackLocale) || C(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, i = M(e.messages) ? e.messages : mt(a), u = M(e.datetimeFormats) ? e.datetimeFormats : mt(a), c = M(e.numberFormats) ? e.numberFormats : mt(a), p = j(V(), e.modifiers, Na()), g = e.pluralRules || V(), h = W(e.missing) ? e.missing : null, T = K(e.missingWarn) || Ge(e.missingWarn) ? e.missingWarn : !0, S = K(e.fallbackWarn) || Ge(e.fallbackWarn) ? e.fallbackWarn : !0, v = !!e.fallbackFormat, b = !!e.unresolving, D = W(e.postTranslation) ? e.postTranslation : null, f = M(e.processor) ? e.processor : null, m = K(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, O = !!e.escapeParameter, d = W(e.messageCompiler) ? e.messageCompiler : Ln;
|
|
1633
|
+
process.env.NODE_ENV !== "production" && W(e.messageCompiler) && Zn(Oe(Z.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
1634
|
+
const I = W(e.messageResolver) ? e.messageResolver : Tn || fa, A = W(e.localeFallbacker) ? e.localeFallbacker : On || na, N = F(e.fallbackContext) ? e.fallbackContext : void 0, y = e, w = F(y.__datetimeFormatters) ? y.__datetimeFormatters : /* @__PURE__ */ new Map(), H = F(y.__numberFormatters) ? y.__numberFormatters : /* @__PURE__ */ new Map(), te = F(y.__meta) ? y.__meta : {};
|
|
1636
1635
|
Zt++;
|
|
1637
1636
|
const x = {
|
|
1638
1637
|
version: n,
|
|
@@ -1658,13 +1657,13 @@ function ha(e = {}) {
|
|
|
1658
1657
|
onWarn: t,
|
|
1659
1658
|
__meta: te
|
|
1660
1659
|
};
|
|
1661
|
-
return x.datetimeFormats = u, x.numberFormats = c, x.__datetimeFormatters = w, x.__numberFormatters = H, process.env.NODE_ENV !== "production" && (x.__v_emitter = y.__v_emitter != null ? y.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) &&
|
|
1660
|
+
return x.datetimeFormats = u, x.numberFormats = c, x.__datetimeFormatters = w, x.__numberFormatters = H, process.env.NODE_ENV !== "production" && (x.__v_emitter = y.__v_emitter != null ? y.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && qr(x, n, te), x;
|
|
1662
1661
|
}
|
|
1663
1662
|
const mt = (e) => ({ [e]: V() });
|
|
1664
1663
|
function je(e, t) {
|
|
1665
1664
|
return e instanceof RegExp ? e.test(t) : e;
|
|
1666
1665
|
}
|
|
1667
|
-
function
|
|
1666
|
+
function An(e, t) {
|
|
1668
1667
|
return e instanceof RegExp ? e.test(t) : e;
|
|
1669
1668
|
}
|
|
1670
1669
|
function yt(e, t, n, r, a) {
|
|
@@ -1682,31 +1681,31 @@ function yt(e, t, n, r, a) {
|
|
|
1682
1681
|
const u = s(e, n, t, a);
|
|
1683
1682
|
return C(u) ? u : t;
|
|
1684
1683
|
} else
|
|
1685
|
-
return process.env.NODE_ENV !== "production" &&
|
|
1684
|
+
return process.env.NODE_ENV !== "production" && An(r, t) && i(Oe(Z.NOT_FOUND_KEY, { key: t, locale: n })), t;
|
|
1686
1685
|
}
|
|
1687
1686
|
function ve(e, t, n) {
|
|
1688
1687
|
const r = e;
|
|
1689
1688
|
r.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
1690
1689
|
}
|
|
1691
|
-
function
|
|
1690
|
+
function hn(e, t) {
|
|
1692
1691
|
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
1693
1692
|
}
|
|
1694
|
-
function
|
|
1693
|
+
function ha(e, t) {
|
|
1695
1694
|
const n = t.indexOf(e);
|
|
1696
1695
|
if (n === -1)
|
|
1697
1696
|
return !1;
|
|
1698
1697
|
for (let r = n + 1; r < t.length; r++)
|
|
1699
|
-
if (
|
|
1698
|
+
if (hn(e, t[r]))
|
|
1700
1699
|
return !0;
|
|
1701
1700
|
return !1;
|
|
1702
1701
|
}
|
|
1703
|
-
const zt = typeof Intl < "u",
|
|
1702
|
+
const zt = typeof Intl < "u", Cn = {
|
|
1704
1703
|
dateTimeFormat: zt && typeof Intl.DateTimeFormat < "u",
|
|
1705
1704
|
numberFormat: zt && typeof Intl.NumberFormat < "u"
|
|
1706
1705
|
};
|
|
1707
1706
|
function en(e, ...t) {
|
|
1708
1707
|
const { datetimeFormats: n, unresolving: r, fallbackLocale: a, onWarn: s, localeFallbacker: i } = e, { __datetimeFormatters: u } = e;
|
|
1709
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
1708
|
+
if (process.env.NODE_ENV !== "production" && !Cn.dateTimeFormat)
|
|
1710
1709
|
return s(Oe(Z.CANNOT_FORMAT_DATE)), He;
|
|
1711
1710
|
const [c, p, g, h] = Nt(...t), T = K(g.missingWarn) ? g.missingWarn : e.missingWarn, S = K(g.fallbackWarn) ? g.fallbackWarn : e.fallbackWarn, v = !!g.part, b = vt(e, g), D = i(
|
|
1712
1711
|
e,
|
|
@@ -1743,7 +1742,7 @@ function en(e, ...t) {
|
|
|
1743
1742
|
let y = u.get(N);
|
|
1744
1743
|
return y || (y = new Intl.DateTimeFormat(m, j({}, O, h)), u.set(N, y)), v ? y.formatToParts(p) : y.format(p);
|
|
1745
1744
|
}
|
|
1746
|
-
const
|
|
1745
|
+
const bn = [
|
|
1747
1746
|
"localeMatcher",
|
|
1748
1747
|
"weekday",
|
|
1749
1748
|
"era",
|
|
@@ -1779,7 +1778,7 @@ function Nt(...e) {
|
|
|
1779
1778
|
} catch {
|
|
1780
1779
|
throw oe(Q.INVALID_ISO_DATE_ARGUMENT);
|
|
1781
1780
|
}
|
|
1782
|
-
} else if (
|
|
1781
|
+
} else if (Bn(t)) {
|
|
1783
1782
|
if (isNaN(t.getTime()))
|
|
1784
1783
|
throw oe(Q.INVALID_DATE_ARGUMENT);
|
|
1785
1784
|
u = t;
|
|
@@ -1788,7 +1787,7 @@ function Nt(...e) {
|
|
|
1788
1787
|
else
|
|
1789
1788
|
throw oe(Q.INVALID_ARGUMENT);
|
|
1790
1789
|
return C(n) ? s.key = n : M(n) && Object.keys(n).forEach((c) => {
|
|
1791
|
-
|
|
1790
|
+
bn.includes(c) ? i[c] = n[c] : s[c] = n[c];
|
|
1792
1791
|
}), C(r) ? s.locale = r : M(r) && (i = r), M(a) && (i = a), [s.key || "", u, s, i];
|
|
1793
1792
|
}
|
|
1794
1793
|
function tn(e, t, n) {
|
|
@@ -1800,7 +1799,7 @@ function tn(e, t, n) {
|
|
|
1800
1799
|
}
|
|
1801
1800
|
function nn(e, ...t) {
|
|
1802
1801
|
const { numberFormats: n, unresolving: r, fallbackLocale: a, onWarn: s, localeFallbacker: i } = e, { __numberFormatters: u } = e;
|
|
1803
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
1802
|
+
if (process.env.NODE_ENV !== "production" && !Cn.numberFormat)
|
|
1804
1803
|
return s(Oe(Z.CANNOT_FORMAT_NUMBER)), He;
|
|
1805
1804
|
const [c, p, g, h] = pt(...t), T = K(g.missingWarn) ? g.missingWarn : e.missingWarn, S = K(g.fallbackWarn) ? g.fallbackWarn : e.fallbackWarn, v = !!g.part, b = vt(e, g), D = i(
|
|
1806
1805
|
e,
|
|
@@ -1837,7 +1836,7 @@ function nn(e, ...t) {
|
|
|
1837
1836
|
let y = u.get(N);
|
|
1838
1837
|
return y || (y = new Intl.NumberFormat(m, j({}, O, h)), u.set(N, y)), v ? y.formatToParts(p) : y.format(p);
|
|
1839
1838
|
}
|
|
1840
|
-
const
|
|
1839
|
+
const Sn = [
|
|
1841
1840
|
"localeMatcher",
|
|
1842
1841
|
"style",
|
|
1843
1842
|
"currency",
|
|
@@ -1866,7 +1865,7 @@ function pt(...e) {
|
|
|
1866
1865
|
throw oe(Q.INVALID_ARGUMENT);
|
|
1867
1866
|
const u = t;
|
|
1868
1867
|
return C(n) ? s.key = n : M(n) && Object.keys(n).forEach((c) => {
|
|
1869
|
-
|
|
1868
|
+
Sn.includes(c) ? i[c] = n[c] : s[c] = n[c];
|
|
1870
1869
|
}), C(r) ? s.locale = r : M(r) && (i = r), M(a) && (i = a), [s.key || "", u, s, i];
|
|
1871
1870
|
}
|
|
1872
1871
|
function rn(e, t, n) {
|
|
@@ -1876,26 +1875,26 @@ function rn(e, t, n) {
|
|
|
1876
1875
|
r.__numberFormatters.has(s) && r.__numberFormatters.delete(s);
|
|
1877
1876
|
}
|
|
1878
1877
|
}
|
|
1879
|
-
const
|
|
1878
|
+
const Ca = (e) => e, ba = (e) => "", Sa = "text", Da = (e) => e.length === 0 ? "" : Dt(e), Ra = Qn;
|
|
1880
1879
|
function an(e, t) {
|
|
1881
1880
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1882
1881
|
}
|
|
1883
|
-
function
|
|
1882
|
+
function Pa(e) {
|
|
1884
1883
|
const t = X(e.pluralIndex) ? e.pluralIndex : -1;
|
|
1885
1884
|
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;
|
|
1886
1885
|
}
|
|
1887
|
-
function
|
|
1886
|
+
function va(e, t) {
|
|
1888
1887
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
1889
1888
|
}
|
|
1890
|
-
function
|
|
1891
|
-
const t = e.locale, n =
|
|
1892
|
-
X(e.pluralIndex) &&
|
|
1889
|
+
function ya(e = {}) {
|
|
1890
|
+
const t = e.locale, n = Pa(e), r = F(e.pluralRules) && C(t) && W(e.pluralRules[t]) ? e.pluralRules[t] : an, a = F(e.pluralRules) && C(t) && W(e.pluralRules[t]) ? an : void 0, s = (f) => f[r(n, f.length, a)], i = e.list || [], u = (f) => i[f], c = e.named || V();
|
|
1891
|
+
X(e.pluralIndex) && va(n, c);
|
|
1893
1892
|
const p = (f) => c[f];
|
|
1894
1893
|
function g(f, m) {
|
|
1895
1894
|
const O = W(e.messages) ? e.messages(f, !!m) : F(e.messages) ? e.messages[f] : !1;
|
|
1896
|
-
return O || (e.parent ? e.parent.message(f) :
|
|
1895
|
+
return O || (e.parent ? e.parent.message(f) : ba);
|
|
1897
1896
|
}
|
|
1898
|
-
const h = (f) => e.modifiers ? e.modifiers[f] :
|
|
1897
|
+
const h = (f) => e.modifiers ? e.modifiers[f] : Ca, T = M(e.processor) && W(e.processor.normalize) ? e.processor.normalize : Da, S = M(e.processor) && W(e.processor.interpolate) ? e.processor.interpolate : Ra, v = M(e.processor) && C(e.processor.type) ? e.processor.type : Sa, D = {
|
|
1899
1898
|
list: u,
|
|
1900
1899
|
named: p,
|
|
1901
1900
|
plural: s,
|
|
@@ -1920,12 +1919,12 @@ function ka(e = {}) {
|
|
|
1920
1919
|
const sn = () => "", ee = (e) => W(e);
|
|
1921
1920
|
function on(e, ...t) {
|
|
1922
1921
|
const { fallbackFormat: n, postTranslation: r, unresolving: a, messageCompiler: s, fallbackLocale: i, messages: u } = e, [c, p] = Lt(...t), g = K(p.missingWarn) ? p.missingWarn : e.missingWarn, h = K(p.fallbackWarn) ? p.fallbackWarn : e.fallbackWarn, T = K(p.escapeParameter) ? p.escapeParameter : e.escapeParameter, S = !!p.resolvedMessage, v = C(p.default) || K(p.default) ? K(p.default) ? s ? c : () => c : p.default : n ? s ? c : () => c : null, b = n || v != null && (C(v) || W(v)), D = vt(e, p);
|
|
1923
|
-
T &&
|
|
1922
|
+
T && ka(p);
|
|
1924
1923
|
let [f, m, O] = S ? [
|
|
1925
1924
|
c,
|
|
1926
1925
|
D,
|
|
1927
1926
|
u[D] || V()
|
|
1928
|
-
] :
|
|
1927
|
+
] : Dn(e, c, D, i, h, g), d = f, I = c;
|
|
1929
1928
|
if (!S && !(C(d) || Te(d) || ee(d)) && b && (d = v, I = d), !S && (!(C(d) || Te(d) || ee(d)) || !C(m)))
|
|
1930
1929
|
return a ? Xe : c;
|
|
1931
1930
|
if (process.env.NODE_ENV !== "production" && C(d) && e.messageCompiler == null)
|
|
@@ -1933,10 +1932,10 @@ function on(e, ...t) {
|
|
|
1933
1932
|
let A = !1;
|
|
1934
1933
|
const N = () => {
|
|
1935
1934
|
A = !0;
|
|
1936
|
-
}, y = ee(d) ? d :
|
|
1935
|
+
}, y = ee(d) ? d : Rn(e, c, m, d, I, N);
|
|
1937
1936
|
if (A)
|
|
1938
1937
|
return d;
|
|
1939
|
-
const w =
|
|
1938
|
+
const w = wa(e, m, O, p), H = ya(w), te = Ma(e, y, H), x = r ? r(te, c) : te;
|
|
1940
1939
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
1941
1940
|
const ge = {
|
|
1942
1941
|
timestamp: Date.now(),
|
|
@@ -1945,21 +1944,21 @@ function on(e, ...t) {
|
|
|
1945
1944
|
format: C(d) ? d : ee(d) ? d.source : "",
|
|
1946
1945
|
message: x
|
|
1947
1946
|
};
|
|
1948
|
-
ge.meta = j({}, e.__meta, /* @__PURE__ */
|
|
1947
|
+
ge.meta = j({}, e.__meta, /* @__PURE__ */ ga() || {}), Zr(ge);
|
|
1949
1948
|
}
|
|
1950
1949
|
return x;
|
|
1951
1950
|
}
|
|
1952
|
-
function
|
|
1951
|
+
function ka(e) {
|
|
1953
1952
|
B(e.list) ? e.list = e.list.map((t) => C(t) ? $t(t) : t) : F(e.named) && Object.keys(e.named).forEach((t) => {
|
|
1954
1953
|
C(e.named[t]) && (e.named[t] = $t(e.named[t]));
|
|
1955
1954
|
});
|
|
1956
1955
|
}
|
|
1957
|
-
function
|
|
1956
|
+
function Dn(e, t, n, r, a, s) {
|
|
1958
1957
|
const { messages: i, onWarn: u, messageResolver: c, localeFallbacker: p } = e, g = p(e, r, n);
|
|
1959
1958
|
let h = V(), T, S = null, v = n, b = null;
|
|
1960
1959
|
const D = "translate";
|
|
1961
1960
|
for (let f = 0; f < g.length; f++) {
|
|
1962
|
-
if (T = b = g[f], process.env.NODE_ENV !== "production" && n !== T && !
|
|
1961
|
+
if (T = b = g[f], process.env.NODE_ENV !== "production" && n !== T && !hn(n, T) && je(a, t) && u(Oe(Z.FALLBACK_TO_TRANSLATE, {
|
|
1963
1962
|
key: t,
|
|
1964
1963
|
target: T
|
|
1965
1964
|
})), process.env.NODE_ENV !== "production" && n !== T) {
|
|
@@ -1986,7 +1985,7 @@ function Rn(e, t, n, r, a, s) {
|
|
|
1986
1985
|
}
|
|
1987
1986
|
if (C(S) || Te(S) || ee(S))
|
|
1988
1987
|
break;
|
|
1989
|
-
if (!
|
|
1988
|
+
if (!ha(T, g)) {
|
|
1990
1989
|
const I = yt(
|
|
1991
1990
|
e,
|
|
1992
1991
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
@@ -2001,7 +2000,7 @@ function Rn(e, t, n, r, a, s) {
|
|
|
2001
2000
|
}
|
|
2002
2001
|
return [S, T, h];
|
|
2003
2002
|
}
|
|
2004
|
-
function
|
|
2003
|
+
function Rn(e, t, n, r, a, s) {
|
|
2005
2004
|
const { messageCompiler: i, warnHtmlMessage: u } = e;
|
|
2006
2005
|
if (ee(r)) {
|
|
2007
2006
|
const T = r;
|
|
@@ -2013,7 +2012,7 @@ function Pn(e, t, n, r, a, s) {
|
|
|
2013
2012
|
}
|
|
2014
2013
|
let c = null, p, g;
|
|
2015
2014
|
process.env.NODE_ENV !== "production" && le && (c = window.performance.now(), p = "intlify-message-compilation-start", g = "intlify-message-compilation-end", z && z(p));
|
|
2016
|
-
const h = i(r,
|
|
2015
|
+
const h = i(r, Fa(e, n, a, r, u, s));
|
|
2017
2016
|
if (process.env.NODE_ENV !== "production" && le) {
|
|
2018
2017
|
const T = window.performance.now(), S = e.__v_emitter;
|
|
2019
2018
|
S && c && S.emit("message-compilation", {
|
|
@@ -2025,7 +2024,7 @@ function Pn(e, t, n, r, a, s) {
|
|
|
2025
2024
|
}
|
|
2026
2025
|
return h.locale = n, h.key = t, h.source = r, h;
|
|
2027
2026
|
}
|
|
2028
|
-
function
|
|
2027
|
+
function Ma(e, t, n) {
|
|
2029
2028
|
let r = null, a, s;
|
|
2030
2029
|
process.env.NODE_ENV !== "production" && le && (r = window.performance.now(), a = "intlify-message-evaluation-start", s = "intlify-message-evaluation-end", z && z(a));
|
|
2031
2030
|
const i = t(n);
|
|
@@ -2047,14 +2046,14 @@ function Lt(...e) {
|
|
|
2047
2046
|
const s = X(t) ? String(t) : (ee(t), t);
|
|
2048
2047
|
return X(n) ? a.plural = n : C(n) ? a.default = n : M(n) && !Be(n) ? a.named = n : B(n) && (a.list = n), X(r) ? a.plural = r : C(r) ? a.default = r : M(r) && j(a, r), [s, a];
|
|
2049
2048
|
}
|
|
2050
|
-
function
|
|
2049
|
+
function Fa(e, t, n, r, a, s) {
|
|
2051
2050
|
return {
|
|
2052
2051
|
locale: t,
|
|
2053
2052
|
key: n,
|
|
2054
2053
|
warnHtmlMessage: a,
|
|
2055
2054
|
onError: (i) => {
|
|
2056
2055
|
if (s && s(i), process.env.NODE_ENV !== "production") {
|
|
2057
|
-
const u =
|
|
2056
|
+
const u = Ua(r), c = `Message compilation error: ${i.message}`, p = i.location && u && qn(u, i.location.start.offset, i.location.end.offset), g = e.__v_emitter;
|
|
2058
2057
|
g && u && g.emit("compile-error", {
|
|
2059
2058
|
message: u,
|
|
2060
2059
|
error: i.message,
|
|
@@ -2066,16 +2065,16 @@ ${p}` : c);
|
|
|
2066
2065
|
} else
|
|
2067
2066
|
throw i;
|
|
2068
2067
|
},
|
|
2069
|
-
onCacheKey: (i) =>
|
|
2068
|
+
onCacheKey: (i) => Hn(t, n, i)
|
|
2070
2069
|
};
|
|
2071
2070
|
}
|
|
2072
|
-
function
|
|
2071
|
+
function Ua(e) {
|
|
2073
2072
|
if (C(e))
|
|
2074
2073
|
return e;
|
|
2075
2074
|
if (e.loc && e.loc.source)
|
|
2076
2075
|
return e.loc.source;
|
|
2077
2076
|
}
|
|
2078
|
-
function
|
|
2077
|
+
function wa(e, t, n, r) {
|
|
2079
2078
|
const { modifiers: a, pluralRules: s, messageResolver: i, fallbackLocale: u, fallbackWarn: c, missingWarn: p, fallbackContext: g } = e, T = {
|
|
2080
2079
|
locale: t,
|
|
2081
2080
|
modifiers: a,
|
|
@@ -2083,7 +2082,7 @@ function Va(e, t, n, r) {
|
|
|
2083
2082
|
messages: (S, v) => {
|
|
2084
2083
|
let b = i(n, S);
|
|
2085
2084
|
if (b == null && (g || v)) {
|
|
2086
|
-
const [, , D] =
|
|
2085
|
+
const [, , D] = Dn(
|
|
2087
2086
|
g || e,
|
|
2088
2087
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
2089
2088
|
S,
|
|
@@ -2096,7 +2095,7 @@ function Va(e, t, n, r) {
|
|
|
2096
2095
|
}
|
|
2097
2096
|
if (C(b) || Te(b)) {
|
|
2098
2097
|
let D = !1;
|
|
2099
|
-
const m =
|
|
2098
|
+
const m = Rn(e, S, t, b, S, () => {
|
|
2100
2099
|
D = !0;
|
|
2101
2100
|
});
|
|
2102
2101
|
return D ? sn : m;
|
|
@@ -2105,19 +2104,19 @@ function Va(e, t, n, r) {
|
|
|
2105
2104
|
};
|
|
2106
2105
|
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;
|
|
2107
2106
|
}
|
|
2108
|
-
|
|
2107
|
+
Rr();
|
|
2109
2108
|
/*!
|
|
2110
2109
|
* vue-i18n v11.1.1
|
|
2111
2110
|
* (c) 2025 kazuya kawaguchi
|
|
2112
2111
|
* Released under the MIT License.
|
|
2113
2112
|
*/
|
|
2114
|
-
const
|
|
2115
|
-
function
|
|
2113
|
+
const Va = "11.1.1";
|
|
2114
|
+
function Wa() {
|
|
2116
2115
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (pe().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (pe().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (pe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (pe().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
2117
2116
|
}
|
|
2118
2117
|
const J = {
|
|
2119
2118
|
// composer module errors
|
|
2120
|
-
UNEXPECTED_RETURN_TYPE:
|
|
2119
|
+
UNEXPECTED_RETURN_TYPE: ea,
|
|
2121
2120
|
// 24
|
|
2122
2121
|
// legacy module errors
|
|
2123
2122
|
INVALID_ARGUMENT: 25,
|
|
@@ -2138,9 +2137,9 @@ const J = {
|
|
|
2138
2137
|
NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
|
|
2139
2138
|
};
|
|
2140
2139
|
function Me(e, ...t) {
|
|
2141
|
-
return
|
|
2140
|
+
return Ce(e, null, process.env.NODE_ENV !== "production" ? { messages: $a, args: t } : void 0);
|
|
2142
2141
|
}
|
|
2143
|
-
const
|
|
2142
|
+
const $a = {
|
|
2144
2143
|
[J.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
|
2145
2144
|
[J.INVALID_ARGUMENT]: "Invalid argument",
|
|
2146
2145
|
[J.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
|
|
@@ -2152,8 +2151,8 @@ const Ya = {
|
|
|
2152
2151
|
[J.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
|
|
2153
2152
|
[J.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
|
2154
2153
|
[J.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
|
|
2155
|
-
}, Tt = /* @__PURE__ */ ie("__translateVNode"), Ot = /* @__PURE__ */ ie("__datetimeParts"), gt = /* @__PURE__ */ ie("__numberParts"), It = /* @__PURE__ */ ie("__enableEmitter"), At = /* @__PURE__ */ ie("__disableEmitter"),
|
|
2156
|
-
FALLBACK_TO_ROOT:
|
|
2154
|
+
}, Tt = /* @__PURE__ */ ie("__translateVNode"), Ot = /* @__PURE__ */ ie("__datetimeParts"), gt = /* @__PURE__ */ ie("__numberParts"), It = /* @__PURE__ */ ie("__enableEmitter"), At = /* @__PURE__ */ ie("__disableEmitter"), Ya = ie("__setPluralRules"), Pn = /* @__PURE__ */ ie("__injectWithOption"), ht = /* @__PURE__ */ ie("__dispose"), ue = {
|
|
2155
|
+
FALLBACK_TO_ROOT: ma,
|
|
2157
2156
|
// 8
|
|
2158
2157
|
NOT_FOUND_PARENT_SCOPE: 9,
|
|
2159
2158
|
IGNORE_OBJ_FLATTEN: 10,
|
|
@@ -2165,7 +2164,7 @@ const Ya = {
|
|
|
2165
2164
|
* @deprecated will be removed at vue-i18n v12
|
|
2166
2165
|
*/
|
|
2167
2166
|
DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE: 12
|
|
2168
|
-
},
|
|
2167
|
+
}, Ga = {
|
|
2169
2168
|
[ue.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
|
|
2170
2169
|
[ue.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
|
|
2171
2170
|
[ue.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
|
|
@@ -2180,7 +2179,7 @@ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guid
|
|
|
2180
2179
|
[ue.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]: "'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead."
|
|
2181
2180
|
};
|
|
2182
2181
|
function kt(e, ...t) {
|
|
2183
|
-
return xe(
|
|
2182
|
+
return xe(Ga[e], ...t);
|
|
2184
2183
|
}
|
|
2185
2184
|
function Fe(e) {
|
|
2186
2185
|
if (!F(e))
|
|
@@ -2205,7 +2204,7 @@ function Fe(e) {
|
|
|
2205
2204
|
}
|
|
2206
2205
|
return e;
|
|
2207
2206
|
}
|
|
2208
|
-
function
|
|
2207
|
+
function vn(e, t) {
|
|
2209
2208
|
const { messages: n, __i18n: r, messageResolver: a, flatJson: s } = t, i = M(n) ? n : B(r) ? V() : { [e]: V() };
|
|
2210
2209
|
if (B(r) && r.forEach((u) => {
|
|
2211
2210
|
if ("locale" in u && "resource" in u) {
|
|
@@ -2218,12 +2217,12 @@ function yn(e, t) {
|
|
|
2218
2217
|
ne(i, u) && Fe(i[u]);
|
|
2219
2218
|
return i;
|
|
2220
2219
|
}
|
|
2221
|
-
function
|
|
2220
|
+
function yn(e) {
|
|
2222
2221
|
return e.type;
|
|
2223
2222
|
}
|
|
2224
|
-
function
|
|
2223
|
+
function Ka(e, t, n) {
|
|
2225
2224
|
let r = F(t.messages) ? t.messages : V();
|
|
2226
|
-
"__i18nGlobal" in n && (r =
|
|
2225
|
+
"__i18nGlobal" in n && (r = vn(e.locale.value, {
|
|
2227
2226
|
messages: r,
|
|
2228
2227
|
__i18n: n.__i18nGlobal
|
|
2229
2228
|
}));
|
|
@@ -2249,18 +2248,18 @@ function Ha(e, t, n) {
|
|
|
2249
2248
|
function ln(e) {
|
|
2250
2249
|
return Yn(Gn, null, e, 0);
|
|
2251
2250
|
}
|
|
2252
|
-
const cn = "__INTLIFY_META__", un = () => [],
|
|
2251
|
+
const cn = "__INTLIFY_META__", un = () => [], Ha = () => !1;
|
|
2253
2252
|
let fn = 0;
|
|
2254
2253
|
function _n(e) {
|
|
2255
2254
|
return (t, n, r, a) => e(n, r, Ct() || void 0, a);
|
|
2256
2255
|
}
|
|
2257
|
-
const
|
|
2256
|
+
const xa = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
2258
2257
|
const e = Ct();
|
|
2259
2258
|
let t = null;
|
|
2260
|
-
return e && (t =
|
|
2259
|
+
return e && (t = yn(e)[cn]) ? { [cn]: t } : null;
|
|
2261
2260
|
};
|
|
2262
|
-
function
|
|
2263
|
-
const { __root: t, __injectWithOption: n } = e, r = t === void 0, a = e.flatJson, s = le ?
|
|
2261
|
+
function Ba(e = {}) {
|
|
2262
|
+
const { __root: t, __injectWithOption: n } = e, r = t === void 0, a = e.flatJson, s = le ? wn : Vn;
|
|
2264
2263
|
let i = K(e.inheritLocale) ? e.inheritLocale : !0;
|
|
2265
2264
|
const u = s(
|
|
2266
2265
|
// prettier-ignore
|
|
@@ -2268,14 +2267,14 @@ function Xa(e = {}) {
|
|
|
2268
2267
|
), c = s(
|
|
2269
2268
|
// prettier-ignore
|
|
2270
2269
|
t && i ? t.fallbackLocale.value : C(e.fallbackLocale) || B(e.fallbackLocale) || M(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : u.value
|
|
2271
|
-
), p = s(
|
|
2270
|
+
), p = s(vn(u.value, e)), g = s(M(e.datetimeFormats) ? e.datetimeFormats : { [u.value]: {} }), h = s(M(e.numberFormats) ? e.numberFormats : { [u.value]: {} });
|
|
2272
2271
|
let T = t ? t.missingWarn : K(e.missingWarn) || Ge(e.missingWarn) ? e.missingWarn : !0, S = t ? t.fallbackWarn : K(e.fallbackWarn) || Ge(e.fallbackWarn) ? e.fallbackWarn : !0, v = t ? t.fallbackRoot : K(e.fallbackRoot) ? e.fallbackRoot : !0, b = !!e.fallbackFormat, D = W(e.missing) ? e.missing : null, f = W(e.missing) ? _n(e.missing) : null, m = W(e.postTranslation) ? e.postTranslation : null, O = t ? t.warnHtmlMessage : K(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, d = !!e.escapeParameter;
|
|
2273
2272
|
const I = t ? t.modifiers : M(e.modifiers) ? e.modifiers : {};
|
|
2274
2273
|
let A = e.pluralRules || t && t.pluralRules, N;
|
|
2275
2274
|
N = (() => {
|
|
2276
2275
|
r && qt(null);
|
|
2277
2276
|
const _ = {
|
|
2278
|
-
version:
|
|
2277
|
+
version: Va,
|
|
2279
2278
|
locale: u.value,
|
|
2280
2279
|
fallbackLocale: c.value,
|
|
2281
2280
|
messages: p.value,
|
|
@@ -2294,7 +2293,7 @@ function Xa(e = {}) {
|
|
|
2294
2293
|
__meta: { framework: "vue" }
|
|
2295
2294
|
};
|
|
2296
2295
|
_.datetimeFormats = g.value, _.numberFormats = h.value, _.__datetimeFormatters = M(N) ? N.__datetimeFormatters : void 0, _.__numberFormatters = M(N) ? N.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (_.__v_emitter = M(N) ? N.__v_emitter : void 0);
|
|
2297
|
-
const L =
|
|
2296
|
+
const L = Aa(_);
|
|
2298
2297
|
return r && qt(L), L;
|
|
2299
2298
|
})(), ve(N, u.value, c.value);
|
|
2300
2299
|
function w() {
|
|
@@ -2306,17 +2305,17 @@ function Xa(e = {}) {
|
|
|
2306
2305
|
h.value
|
|
2307
2306
|
];
|
|
2308
2307
|
}
|
|
2309
|
-
const H =
|
|
2308
|
+
const H = Pe({
|
|
2310
2309
|
get: () => u.value,
|
|
2311
2310
|
set: (_) => {
|
|
2312
2311
|
N.locale = _, u.value = _;
|
|
2313
2312
|
}
|
|
2314
|
-
}), te =
|
|
2313
|
+
}), te = Pe({
|
|
2315
2314
|
get: () => c.value,
|
|
2316
2315
|
set: (_) => {
|
|
2317
2316
|
N.fallbackLocale = _, c.value = _, ve(N, u.value, _);
|
|
2318
2317
|
}
|
|
2319
|
-
}), x =
|
|
2318
|
+
}), x = Pe(() => p.value), ge = /* @__PURE__ */ Pe(() => g.value), Je = /* @__PURE__ */ Pe(() => h.value);
|
|
2320
2319
|
function Qe() {
|
|
2321
2320
|
return W(m) ? m : null;
|
|
2322
2321
|
}
|
|
@@ -2336,14 +2335,14 @@ function Xa(e = {}) {
|
|
|
2336
2335
|
w();
|
|
2337
2336
|
let Ie;
|
|
2338
2337
|
try {
|
|
2339
|
-
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (N.fallbackContext = t ?
|
|
2338
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (N.fallbackContext = t ? Ia() : void 0), Ie = _(N);
|
|
2340
2339
|
} finally {
|
|
2341
2340
|
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (N.fallbackContext = void 0);
|
|
2342
2341
|
}
|
|
2343
2342
|
if (U !== "translate exists" && // for not `te` (e.g `t`)
|
|
2344
2343
|
X(Ie) && Ie === Xe || U === "translate exists" && !Ie) {
|
|
2345
|
-
const [Ne,
|
|
2346
|
-
if (process.env.NODE_ENV !== "production" && t && C(Ne) && et(U,
|
|
2344
|
+
const [Ne, Fn] = L();
|
|
2345
|
+
if (process.env.NODE_ENV !== "production" && t && C(Ne) && et(U, Fn) && (v && (je(S, Ne) || An(T, Ne)) && fe(kt(ue.FALLBACK_TO_ROOT, {
|
|
2347
2346
|
key: Ne,
|
|
2348
2347
|
type: U
|
|
2349
2348
|
})), process.env.NODE_ENV !== "production")) {
|
|
@@ -2362,14 +2361,14 @@ function Xa(e = {}) {
|
|
|
2362
2361
|
throw Me(J.UNEXPECTED_RETURN_TYPE);
|
|
2363
2362
|
}
|
|
2364
2363
|
};
|
|
2365
|
-
function
|
|
2364
|
+
function be(..._) {
|
|
2366
2365
|
return ae((L) => Reflect.apply(on, null, [L, ..._]), () => Lt(..._), "translate", (L) => Reflect.apply(L.t, L, [..._]), (L) => L, (L) => C(L));
|
|
2367
2366
|
}
|
|
2368
2367
|
function tt(..._) {
|
|
2369
2368
|
const [L, U, G] = _;
|
|
2370
2369
|
if (G && !F(G))
|
|
2371
2370
|
throw Me(J.INVALID_ARGUMENT);
|
|
2372
|
-
return
|
|
2371
|
+
return be(L, U, j({ resolvedMessage: !0 }, G || {}));
|
|
2373
2372
|
}
|
|
2374
2373
|
function nt(..._) {
|
|
2375
2374
|
return ae((L) => Reflect.apply(en, null, [L, ..._]), () => Nt(..._), "datetime format", (L) => Reflect.apply(L.d, L, [..._]), () => He, (L) => C(L));
|
|
@@ -2412,11 +2411,11 @@ function Xa(e = {}) {
|
|
|
2412
2411
|
return !1;
|
|
2413
2412
|
const U = C(L) ? L : u.value, G = de(U), Ee = N.messageResolver(G, _);
|
|
2414
2413
|
return Te(Ee) || ee(Ee) || C(Ee);
|
|
2415
|
-
}, () => [_], "translate exists", (U) => Reflect.apply(U.te, U, [_, L]),
|
|
2414
|
+
}, () => [_], "translate exists", (U) => Reflect.apply(U.te, U, [_, L]), Ha, (U) => K(U));
|
|
2416
2415
|
}
|
|
2417
|
-
function
|
|
2416
|
+
function Se(_) {
|
|
2418
2417
|
let L = null;
|
|
2419
|
-
const U =
|
|
2418
|
+
const U = pn(N, c.value, u.value);
|
|
2420
2419
|
for (let G = 0; G < U.length; G++) {
|
|
2421
2420
|
const Ee = p.value[U[G]] || {}, we = N.messageResolver(Ee, _);
|
|
2422
2421
|
if (we != null) {
|
|
@@ -2426,14 +2425,14 @@ function Xa(e = {}) {
|
|
|
2426
2425
|
}
|
|
2427
2426
|
return L;
|
|
2428
2427
|
}
|
|
2429
|
-
function
|
|
2430
|
-
const L =
|
|
2428
|
+
function De(_) {
|
|
2429
|
+
const L = Se(_);
|
|
2431
2430
|
return L ?? (t ? t.tm(_) || {} : {});
|
|
2432
2431
|
}
|
|
2433
2432
|
function de(_) {
|
|
2434
2433
|
return p.value[_] || {};
|
|
2435
2434
|
}
|
|
2436
|
-
function
|
|
2435
|
+
function Re(_, L) {
|
|
2437
2436
|
if (a) {
|
|
2438
2437
|
const U = { [_]: L };
|
|
2439
2438
|
for (const G in U)
|
|
@@ -2532,17 +2531,17 @@ function Xa(e = {}) {
|
|
|
2532
2531
|
set escapeParameter(_) {
|
|
2533
2532
|
d = _, N.escapeParameter = _;
|
|
2534
2533
|
},
|
|
2535
|
-
t:
|
|
2534
|
+
t: be,
|
|
2536
2535
|
getLocaleMessage: de,
|
|
2537
|
-
setLocaleMessage:
|
|
2536
|
+
setLocaleMessage: Re,
|
|
2538
2537
|
mergeLocaleMessage: ut,
|
|
2539
2538
|
getPostTranslationHandler: Qe,
|
|
2540
2539
|
setPostTranslationHandler: qe,
|
|
2541
2540
|
getMissingHandler: Ze,
|
|
2542
2541
|
setMissingHandler: ze,
|
|
2543
|
-
[
|
|
2542
|
+
[Ya]: it
|
|
2544
2543
|
};
|
|
2545
|
-
return k.datetimeFormats = ge, k.numberFormats = Je, k.rt = tt, k.te = ct, k.tm =
|
|
2544
|
+
return k.datetimeFormats = ge, k.numberFormats = Je, k.rt = tt, k.te = ct, k.tm = De, k.d = nt, k.n = rt, k.getDateTimeFormat = o, k.setDateTimeFormat = l, k.mergeDateTimeFormat = E, k.getNumberFormat = R, k.setNumberFormat = $, k.mergeNumberFormat = Y, k[Pn] = n, k[Tt] = Ue, k[Ot] = lt, k[gt] = ot, process.env.NODE_ENV !== "production" && (k[It] = (_) => {
|
|
2546
2545
|
N.__v_emitter = _;
|
|
2547
2546
|
}, k[At] = () => {
|
|
2548
2547
|
N.__v_emitter = void 0;
|
|
@@ -2568,18 +2567,18 @@ const Mt = {
|
|
|
2568
2567
|
type: Object
|
|
2569
2568
|
}
|
|
2570
2569
|
};
|
|
2571
|
-
function
|
|
2570
|
+
function Xa({ slots: e }, t) {
|
|
2572
2571
|
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, a) => [
|
|
2573
2572
|
...r,
|
|
2574
2573
|
// prettier-ignore
|
|
2575
|
-
...a.type ===
|
|
2574
|
+
...a.type === En ? a.children : [a]
|
|
2576
2575
|
], []) : t.reduce((n, r) => {
|
|
2577
2576
|
const a = e[r];
|
|
2578
2577
|
return a && (n[r] = a()), n;
|
|
2579
2578
|
}, V());
|
|
2580
2579
|
}
|
|
2581
|
-
function
|
|
2582
|
-
return
|
|
2580
|
+
function kn() {
|
|
2581
|
+
return En;
|
|
2583
2582
|
}
|
|
2584
2583
|
j({
|
|
2585
2584
|
keypath: {
|
|
@@ -2591,10 +2590,10 @@ j({
|
|
|
2591
2590
|
validator: (e) => X(e) || !isNaN(e)
|
|
2592
2591
|
}
|
|
2593
2592
|
}, Mt);
|
|
2594
|
-
function
|
|
2593
|
+
function ja(e) {
|
|
2595
2594
|
return B(e) && !C(e[0]);
|
|
2596
2595
|
}
|
|
2597
|
-
function
|
|
2596
|
+
function Mn(e, t, n, r) {
|
|
2598
2597
|
const { slots: a, attrs: s } = t;
|
|
2599
2598
|
return () => {
|
|
2600
2599
|
const i = { part: !0 };
|
|
@@ -2604,10 +2603,10 @@ function Fn(e, t, n, r) {
|
|
|
2604
2603
|
let p = [i.key];
|
|
2605
2604
|
B(c) ? p = c.map((T, S) => {
|
|
2606
2605
|
const v = a[T.type], b = v ? v({ [T.type]: T.value, index: S, parts: c }) : [T.value];
|
|
2607
|
-
return
|
|
2606
|
+
return ja(b) && (b[0].key = `${T.type}-${S}`), b;
|
|
2608
2607
|
}) : C(c) && (p = [c]);
|
|
2609
|
-
const g = j(V(), s), h = C(e.tag) || F(e.tag) ? e.tag :
|
|
2610
|
-
return
|
|
2608
|
+
const g = j(V(), s), h = C(e.tag) || F(e.tag) ? e.tag : kn();
|
|
2609
|
+
return dn(h, g, p);
|
|
2611
2610
|
};
|
|
2612
2611
|
}
|
|
2613
2612
|
j({
|
|
@@ -2619,51 +2618,51 @@ j({
|
|
|
2619
2618
|
type: [String, Object]
|
|
2620
2619
|
}
|
|
2621
2620
|
}, Mt);
|
|
2622
|
-
const
|
|
2621
|
+
const Ja = /* @__PURE__ */ ie("global-vue-i18n");
|
|
2623
2622
|
function Ft(e = {}) {
|
|
2624
2623
|
const t = Ct();
|
|
2625
2624
|
if (t == null)
|
|
2626
2625
|
throw Me(J.MUST_BE_CALL_SETUP_TOP);
|
|
2627
2626
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
2628
2627
|
throw Me(J.NOT_INSTALLED);
|
|
2629
|
-
const n =
|
|
2628
|
+
const n = Qa(t), r = Za(n), a = yn(t), s = qa(e, a);
|
|
2630
2629
|
if (s === "global")
|
|
2631
|
-
return
|
|
2630
|
+
return Ka(r, e, a), r;
|
|
2632
2631
|
if (s === "parent") {
|
|
2633
|
-
let c =
|
|
2632
|
+
let c = za(n, t, e.__useComponent);
|
|
2634
2633
|
return c == null && (process.env.NODE_ENV !== "production" && fe(kt(ue.NOT_FOUND_PARENT_SCOPE)), c = r), c;
|
|
2635
2634
|
}
|
|
2636
2635
|
const i = n;
|
|
2637
2636
|
let u = i.__getInstance(t);
|
|
2638
2637
|
if (u == null) {
|
|
2639
2638
|
const c = j({}, e);
|
|
2640
|
-
"__i18n" in a && (c.__i18n = a.__i18n), r && (c.__root = r), u =
|
|
2639
|
+
"__i18n" in a && (c.__i18n = a.__i18n), r && (c.__root = r), u = Ba(c), i.__composerExtend && (u[ht] = i.__composerExtend(u)), ts(i, t, u), i.__setInstance(t, u);
|
|
2641
2640
|
}
|
|
2642
2641
|
return u;
|
|
2643
2642
|
}
|
|
2644
|
-
function
|
|
2645
|
-
const t =
|
|
2643
|
+
function Qa(e) {
|
|
2644
|
+
const t = Un(e.isCE ? Ja : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
2646
2645
|
if (!t)
|
|
2647
2646
|
throw Me(e.isCE ? J.NOT_INSTALLED_WITH_PROVIDE : J.UNEXPECTED_ERROR);
|
|
2648
2647
|
return t;
|
|
2649
2648
|
}
|
|
2650
|
-
function
|
|
2649
|
+
function qa(e, t) {
|
|
2651
2650
|
return Be(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
2652
2651
|
}
|
|
2653
|
-
function
|
|
2652
|
+
function Za(e) {
|
|
2654
2653
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
2655
2654
|
}
|
|
2656
|
-
function
|
|
2655
|
+
function za(e, t, n = !1) {
|
|
2657
2656
|
let r = null;
|
|
2658
2657
|
const a = t.root;
|
|
2659
|
-
let s =
|
|
2658
|
+
let s = es(t, n);
|
|
2660
2659
|
for (; s != null; ) {
|
|
2661
2660
|
const i = e;
|
|
2662
2661
|
if (e.mode === "composition")
|
|
2663
2662
|
r = i.__getInstance(s);
|
|
2664
2663
|
else if (__VUE_I18N_LEGACY_API__) {
|
|
2665
2664
|
const u = i.__getInstance(s);
|
|
2666
|
-
u != null && (r = u.__composer, n && r && !r[
|
|
2665
|
+
u != null && (r = u.__composer, n && r && !r[Pn] && (r = null));
|
|
2667
2666
|
}
|
|
2668
2667
|
if (r != null || a === s)
|
|
2669
2668
|
break;
|
|
@@ -2671,14 +2670,14 @@ function es(e, t, n = !1) {
|
|
|
2671
2670
|
}
|
|
2672
2671
|
return r;
|
|
2673
2672
|
}
|
|
2674
|
-
function
|
|
2673
|
+
function es(e, t = !1) {
|
|
2675
2674
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
2676
2675
|
}
|
|
2677
|
-
function
|
|
2676
|
+
function ts(e, t, n) {
|
|
2678
2677
|
let r = null;
|
|
2679
2678
|
Wn(() => {
|
|
2680
2679
|
if (process.env.NODE_ENV !== "production" && t.vnode.el) {
|
|
2681
|
-
t.vnode.el.__VUE_I18N__ = n, r =
|
|
2680
|
+
t.vnode.el.__VUE_I18N__ = n, r = zn();
|
|
2682
2681
|
const a = n;
|
|
2683
2682
|
a[It] && a[It](r), r.on("*", mn);
|
|
2684
2683
|
}
|
|
@@ -2698,36 +2697,22 @@ j({
|
|
|
2698
2697
|
type: [String, Object]
|
|
2699
2698
|
}
|
|
2700
2699
|
}, Mt);
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2700
|
+
Wa();
|
|
2701
|
+
pa(Jr);
|
|
2702
|
+
La(_a);
|
|
2703
|
+
Ta(pn);
|
|
2705
2704
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
2706
2705
|
const e = pe();
|
|
2707
|
-
e.__INTLIFY__ = !0,
|
|
2706
|
+
e.__INTLIFY__ = !0, Qr(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
2708
2707
|
}
|
|
2709
2708
|
process.env.NODE_ENV;
|
|
2710
|
-
const
|
|
2711
|
-
const e = Ae(() => t.value > 0), t = dn(0);
|
|
2712
|
-
async function n(r) {
|
|
2713
|
-
try {
|
|
2714
|
-
return t.value++, await r();
|
|
2715
|
-
} finally {
|
|
2716
|
-
t.value--;
|
|
2717
|
-
}
|
|
2718
|
-
}
|
|
2719
|
-
return {
|
|
2720
|
-
isLoading: e,
|
|
2721
|
-
promptLoader: n
|
|
2722
|
-
};
|
|
2723
|
-
}), is = (e, t) => {
|
|
2709
|
+
const as = (e, t) => {
|
|
2724
2710
|
const n = e.__vccOpts || e;
|
|
2725
2711
|
for (const [r, a] of t)
|
|
2726
2712
|
n[r] = a;
|
|
2727
2713
|
return n;
|
|
2728
2714
|
};
|
|
2729
2715
|
export {
|
|
2730
|
-
|
|
2731
|
-
ls as a,
|
|
2716
|
+
as as _,
|
|
2732
2717
|
Ft as u
|
|
2733
2718
|
};
|