@webitel/ui-sdk 26.6.57 → 26.6.59
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/{clients-Wwy51tyT.js → clients-BDtL1Ajm.js} +5 -5
- package/dist/{components-DfHInAL6.js → components-CK9vGYUg.js} +725 -719
- package/dist/{composables-C2o78NEs.js → composables-Ckg9IFyC.js} +3 -3
- package/dist/{debounce-DPzXwiOS.js → debounce-Bp3jy7S5.js} +2 -2
- package/dist/{deep-copy-CQw5yeEH.js → deep-copy-CTgLtgMO.js} +1 -1
- package/dist/{dist-BYiYpK00.js → dist-CAOIU8xq.js} +1 -1
- package/dist/{dist-05Bf47Wg.js → dist-Crpfx4FA.js} +1 -1
- package/dist/dist-uCh8HaP3.js +1910 -0
- package/dist/{floating-ui.dom-n2j9PKCB.js → floating-ui.dom-Ch9ml4Rx.js} +322 -352
- package/dist/{generateInstance-BD4pC4PS.js → generateInstance-C9d7J_TX.js} +1137 -869
- package/dist/{chunk-CY3AvKd6.js → rolldown-runtime-BEcgMyyN.js} +8 -1
- package/dist/{side-channel-Cyte-MzW.js → side-channel-8SnAuRMA.js} +18 -18
- package/dist/ui-sdk.js +819 -25965
- package/dist/ui-sdk.umd.cjs +1810 -7442
- package/dist/{useValidation-C43ysfVZ.js → useValidation-B0voza7s.js} +1 -1
- package/dist/{useVidstackSrc-jCDCYTce.js → useVidstackSrc-epUQZhkL.js} +6 -4
- package/dist/{useWtTable-tqmVOvve.js → useWtTable-DrrvvB6k.js} +1 -1
- package/dist/vidstack-BLEs9rMG-Agxpv9v8.js +11 -0
- package/dist/{vidstack-video-IgjC6GLU.js → vidstack-C6nBVWwn-BlZqtkYB.js} +11 -11
- package/dist/{vidstack-C9vIqaYT-C1EgPq17.js → vidstack-CDOoBnJL-BCwLE1fB.js} +2 -2
- package/dist/{vidstack-Bq6c3Bam-hoRopLll.js → vidstack-CI5oafcm-DAV7Lilr.js} +38 -37
- package/dist/{vidstack-D_-9AA6_-Dq3APB0-.js → vidstack-CXo4cwSP2-6kDG00FC.js} +3 -3
- package/dist/{vidstack-Dihypf8P-ibWMCHK-.js → vidstack-CZQo98ic-D3uTuzB9.js} +1 -1
- package/dist/{vidstack-DDXt6fpN-Don_e6LS.js → vidstack-CceZzgm4-C37rtwSQ.js} +13 -13
- package/dist/{vidstack-ChQTHmIQ-nTO94M6P.js → vidstack-CdfyZegh-Bn47J4h6.js} +3 -3
- package/dist/{vidstack-C2US-gSO-DeIgENrW.js → vidstack-CgfrU1hS-CNTJkyzm.js} +26 -26
- package/dist/{vidstack-BGSTndAW-CyKM_CM4.js → vidstack-D9mvYVIz-DesuYgKV.js} +179 -278
- package/dist/{vidstack-BQlOPwOu-ChhdffAJ.js → vidstack-DATGlkSz2-BnlUxvSa.js} +2 -2
- package/dist/{vidstack-D2pY00kU-dXPuSPZl.js → vidstack-DUnfBERX2-Cl6yTfB3.js} +6 -6
- package/dist/{vidstack-Ci54COQW-CAAXpwzv.js → vidstack-DYPyTdYw-BzqKxwCK.js} +49 -44
- package/dist/vidstack-IMa-zkAV-DevzBPj3.js +35 -0
- package/dist/{vidstack-B01xzxC4-DeYSgDZy.js → vidstack-_E7LrUjK-DaCLs8ge.js} +1 -1
- package/dist/{vidstack-audio-CCSR8cXr.js → vidstack-audio-CH4wIf0F.js} +2 -2
- package/dist/{vidstack-dash-CNcNULYU.js → vidstack-dash-CmlmZIFT.js} +31 -32
- package/dist/{vidstack-google-cast-Co5Q_rfL.js → vidstack-google-cast-COyApZ_Z.js} +17 -18
- package/dist/{vidstack-hls-BP6P23Cc.js → vidstack-hls-D1sxUvBd.js} +70 -71
- package/dist/vidstack-ijoHbXQB-DBClSWHE.js +32 -0
- package/dist/{vidstack-CTojmhKq-D7sZJxgm.js → vidstack-mvRkf9tF-CoFf7dS9.js} +7 -7
- package/dist/vidstack-q-9soyHT-CiZ4hFSF.js +50 -0
- package/dist/vidstack-video-iy3-Vo1A.js +2 -0
- package/dist/{vidstack-vimeo-EzzPpggD.js → vidstack-vimeo-BhNQpz6m.js} +58 -58
- package/dist/{vidstack-youtube-C1_NAfWa.js → vidstack-youtube-BIhUrYs-.js} +33 -30
- package/dist/{vue-i18n-B8Px6VcD.js → vue-i18n-lTFLGg_9.js} +796 -728
- package/dist/{wt-action-bar-B6AJf7QX.js → wt-action-bar-B17FBHD7.js} +1 -1
- package/dist/{wt-button-BieXVsvP.js → wt-button-0kP5bPMs.js} +1 -1
- package/dist/{wt-chat-emoji-CLfk3JVt.js → wt-chat-emoji-BiPhHNuw.js} +180 -155
- package/dist/{wt-datepicker-BhOalZat.js → wt-datepicker-baNcFWZ1.js} +764 -764
- package/dist/{wt-display-chip-items-BUWlvHn2.js → wt-display-chip-items-xm8cHws_.js} +1 -1
- package/dist/{wt-expansion-card-CJr62Q0Q.js → wt-expansion-card-C2qETdn0.js} +1 -1
- package/dist/{wt-galleria-B34y1Swo.js → wt-galleria-DL3svAQs.js} +2 -2
- package/dist/{wt-icon-0grToL89.js → wt-icon-DIdpwmpC.js} +220 -218
- package/dist/{wt-icon-action-D1Vq_ixS.js → wt-icon-action-C8WN2oVD.js} +1 -1
- package/dist/{wt-icon-btn-Czg40DXn.js → wt-icon-btn-BLnhJADA.js} +1 -1
- package/dist/{wt-notifications-bar-OGD1cukw.js → wt-notifications-bar-Dx1YPqFu.js} +6 -6
- package/dist/{wt-pagination-CZuQFM3-.js → wt-pagination-G2ZGU4Pi.js} +1 -1
- package/dist/{wt-player-YrvPar8x.js → wt-player-CCwEyUzv.js} +5 -5
- package/dist/{wt-popover-CJin-2BO.js → wt-popover-BdwrokVy.js} +1 -1
- package/dist/{wt-search-bar-gN_xHkW3.js → wt-search-bar-CiQJ9ViN.js} +2 -2
- package/dist/{wt-selection-popup-B77UY7Yu.js → wt-selection-popup-Bh9D7VtA.js} +1 -1
- package/dist/{wt-send-message-popup-pvipgSrX.js → wt-send-message-popup-D07uZ7eL.js} +3 -3
- package/dist/{wt-slider-BS3SoGht.js → wt-slider-BPzRTeYU.js} +1 -1
- package/dist/{wt-start-page-eN1PEokc.js → wt-start-page-DMXRhA9E.js} +1 -1
- package/dist/{wt-table-DK0LjVC0.js → wt-table-25p4E01H.js} +2 -2
- package/dist/{wt-table-column-select-DFF6z3a3.js → wt-table-column-select-C3ma6jxK.js} +3 -3
- package/dist/{wt-timepicker-FhXfhuFl.js → wt-timepicker-DyM1OQX4.js} +2 -2
- package/dist/{wt-toast-DrD3sFlE.js → wt-toast-KTAx-8zA.js} +2 -2
- package/dist/{wt-tree-ZyoPrNOl.js → wt-tree-DZ9ErOGj.js} +22 -12
- package/dist/{wt-tree-table-D1XoKDVw.js → wt-tree-table-BlZEw4tr.js} +2 -2
- package/dist/{wt-type-extension-value-input-B2fSsZQc.js → wt-type-extension-value-input-Tlnn-d1W.js} +3 -3
- package/dist/{wt-vidstack-player-DwCYvtSh.js → wt-vidstack-player-Dvto6FG2.js} +1600 -1452
- package/package.json +2 -2
- package/src/components/wt-toast/wt-toast.vue +2 -2
- package/types/components/wt-galleria/wt-galleria.vue.d.ts +2 -6
- package/types/components/wt-input-number/wt-input-number.vue.d.ts +2 -2
- package/types/components/wt-input-text/wt-input-text.vue.d.ts +2 -2
- package/types/components/wt-switcher/wt-switcher.vue.d.ts +2 -2
- package/types/components/wt-table/wt-table.vue.d.ts +1 -1
- package/types/components/wt-textarea/wt-textarea.vue.d.ts +1 -9
- package/types/modules/AuditForm/components/audit-form-question-write-wrapper.vue.d.ts +1 -5
- package/types/modules/AuditForm/components/audit-form.vue.d.ts +4 -10
- package/dist/dist-Dz55hlwp.js +0 -1371
- package/dist/usetoast-BECIyaas.js +0 -10
- package/dist/vidstack-D5EzK014-DOe01V3H.js +0 -14
- package/dist/vidstack-Dm1xEU9Q-VlefmrP8.js +0 -31
- package/dist/vidstack-DqAw8m9J-Dk1GT3Oe.js +0 -22
- package/dist/vidstack-krOAtKMi-DN1WZC3p.js +0 -30
|
@@ -1,57 +1,82 @@
|
|
|
1
|
-
import { n as e, t } from "./dist-
|
|
2
|
-
import { n, t as r } from "./dist-
|
|
1
|
+
import { n as e, t } from "./dist-CAOIU8xq.js";
|
|
2
|
+
import { n, t as r } from "./dist-Crpfx4FA.js";
|
|
3
3
|
import * as i from "vue";
|
|
4
|
-
import { Text as a, computed as o, createVNode as s,
|
|
4
|
+
import { Text as a, computed as o, createVNode as s, getCurrentScope as c, inject as l, onMounted as u, onScopeDispose as d, onUnmounted as f, ref as p, shallowRef as m, watch as h } from "vue";
|
|
5
5
|
e(), r();
|
|
6
|
-
function
|
|
6
|
+
function g(e, t) {
|
|
7
7
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
8
8
|
}
|
|
9
|
-
var
|
|
10
|
-
function
|
|
11
|
-
|
|
9
|
+
var _ = {};
|
|
10
|
+
function v(e) {
|
|
11
|
+
_[e] || (_[e] = !0, g(e));
|
|
12
12
|
}
|
|
13
|
-
var
|
|
13
|
+
var y = typeof window < "u", b, x;
|
|
14
14
|
if (n.env.NODE_ENV !== "production") {
|
|
15
|
-
let e =
|
|
16
|
-
e && e.mark && e.measure && e.clearMarks && e.clearMeasures && (
|
|
15
|
+
let e = y && window.performance;
|
|
16
|
+
e && e.mark && e.measure && e.clearMarks && e.clearMeasures && (b = (t) => {
|
|
17
17
|
e.mark(t);
|
|
18
|
-
},
|
|
18
|
+
}, x = (t, n, r) => {
|
|
19
19
|
e.measure(t, n, r), e.clearMarks(n), e.clearMarks(r);
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
|
-
var
|
|
23
|
-
function
|
|
24
|
-
return t.length === 1 && R(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(
|
|
22
|
+
var S = /\{([0-9a-zA-Z]+)\}/g;
|
|
23
|
+
function C(e, ...t) {
|
|
24
|
+
return t.length === 1 && R(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(S, (e, n) => t.hasOwnProperty(n) ? t[n] : "");
|
|
25
25
|
}
|
|
26
|
-
var
|
|
26
|
+
var w = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), T = (e, t, n) => E({
|
|
27
27
|
l: e,
|
|
28
28
|
k: t,
|
|
29
29
|
s: n
|
|
30
|
-
}),
|
|
31
|
-
function
|
|
30
|
+
}), E = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), D = (e) => typeof e == "number" && isFinite(e), O = (e) => pe(e) === "[object Date]", ee = (e) => pe(e) === "[object RegExp]", te = (e) => B(e) && Object.keys(e).length === 0, k = Object.assign, ne = Object.create, A = (e = null) => ne(e), j, M = () => j ||= typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : t === void 0 ? A() : t;
|
|
31
|
+
function re(e) {
|
|
32
32
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/\//g, "/").replace(/=/g, "=");
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function ie(e) {
|
|
35
35
|
return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
|
|
36
36
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
var ae = /^\s*javascript\s*(?::|�*58;?|�*3a;?|:?)/i, oe = /^(?:href|src|action|formaction)$/i;
|
|
38
|
+
function se(e) {
|
|
39
|
+
return ae.test(e);
|
|
40
|
+
}
|
|
41
|
+
function ce(e) {
|
|
42
|
+
let t = /url\s*\(/gi, n = "", r = 0, i;
|
|
43
|
+
for (; (i = t.exec(e)) !== null;) {
|
|
44
|
+
let a = i.index, o = t.lastIndex - 1, s = o + 1, c = 1, l = null;
|
|
45
|
+
for (; s < e.length; s++) {
|
|
46
|
+
let t = e[s];
|
|
47
|
+
if (l) {
|
|
48
|
+
t === l && (l = null);
|
|
49
|
+
continue;
|
|
50
|
+
}
|
|
51
|
+
if (t === "\"" || t === "'") l = t;
|
|
52
|
+
else if (t === "(") c++;
|
|
53
|
+
else if (t === ")" && (c--, c === 0)) break;
|
|
54
|
+
}
|
|
55
|
+
if (c !== 0) break;
|
|
56
|
+
let u = e.slice(o + 1, s).trim(), d = u.startsWith("\"") && u.endsWith("\"") || u.startsWith("'") && u.endsWith("'") ? u.slice(1, -1).trim() : u;
|
|
57
|
+
n += e.slice(r, a), n += se(d) ? "url(about:blank)" : e.slice(a, s + 1), r = s + 1;
|
|
58
|
+
}
|
|
59
|
+
return n + e.slice(r);
|
|
60
|
+
}
|
|
61
|
+
function le(e, t) {
|
|
62
|
+
return oe.test(e) && se(t) ? "about:blank" : ie(e.toLowerCase() === "style" ? ce(t) : t);
|
|
41
63
|
}
|
|
42
|
-
|
|
64
|
+
function ue(e) {
|
|
65
|
+
return e = e.replace(/([\w:-]+)\s*=\s*"([^"]*)"/g, (e, t, n) => `${t}="${le(t, n)}"`), e = e.replace(/([\w:-]+)\s*=\s*'([^']*)'/g, (e, t, n) => `${t}='${le(t, n)}'`), /\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e) && (n.env.NODE_ENV !== "production" && g("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."), e = e.replace(/(\s+)(on)(\w+\s*=)/gi, "$1on$3")), e = e.replace(/(\s+(?:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi, (e, t, n) => se(n) ? `${t}about:blank` : e), e;
|
|
66
|
+
}
|
|
67
|
+
var de = Object.prototype.hasOwnProperty;
|
|
43
68
|
function N(e, t) {
|
|
44
|
-
return
|
|
69
|
+
return de.call(e, t);
|
|
45
70
|
}
|
|
46
|
-
var P = Array.isArray, F = (e) => typeof e == "function", I = (e) => typeof e == "string", L = (e) => typeof e == "boolean", R = (e) => typeof e == "object" && !!e,
|
|
47
|
-
function
|
|
71
|
+
var P = Array.isArray, F = (e) => typeof e == "function", I = (e) => typeof e == "string", L = (e) => typeof e == "boolean", R = (e) => typeof e == "object" && !!e, z = (e) => R(e) && F(e.then) && F(e.catch), fe = Object.prototype.toString, pe = (e) => fe.call(e), B = (e) => pe(e) === "[object Object]", me = (e) => e == null ? "" : P(e) || B(e) && e.toString === fe ? JSON.stringify(e, null, 2) : String(e);
|
|
72
|
+
function he(e, t = "") {
|
|
48
73
|
return e.reduce((e, n, r) => r === 0 ? e + n : e + t + n, "");
|
|
49
74
|
}
|
|
50
|
-
var
|
|
51
|
-
function
|
|
75
|
+
var ge = 2;
|
|
76
|
+
function _e(e, t = 0, n = e.length) {
|
|
52
77
|
let r = e.split(/\r?\n/), i = 0, a = [];
|
|
53
78
|
for (let e = 0; e < r.length; e++) if (i += r[e].length + 1, i >= t) {
|
|
54
|
-
for (let o = e -
|
|
79
|
+
for (let o = e - ge; o <= e + ge || n > i; o++) {
|
|
55
80
|
if (o < 0 || o >= r.length) continue;
|
|
56
81
|
let s = o + 1;
|
|
57
82
|
a.push(`${s}${" ".repeat(3 - String(s).length)}| ${r[o]}`);
|
|
@@ -71,7 +96,7 @@ function de(e, t = 0, n = e.length) {
|
|
|
71
96
|
}
|
|
72
97
|
return a.join("\n");
|
|
73
98
|
}
|
|
74
|
-
function
|
|
99
|
+
function ve() {
|
|
75
100
|
let e = /* @__PURE__ */ new Map();
|
|
76
101
|
return {
|
|
77
102
|
events: e,
|
|
@@ -88,9 +113,9 @@ function B() {
|
|
|
88
113
|
}
|
|
89
114
|
};
|
|
90
115
|
}
|
|
91
|
-
var
|
|
92
|
-
function
|
|
93
|
-
if (
|
|
116
|
+
var ye = (e) => !R(e) || P(e);
|
|
117
|
+
function be(e, t) {
|
|
118
|
+
if (ye(e) || ye(t)) throw Error("Invalid value");
|
|
94
119
|
let n = [{
|
|
95
120
|
src: e,
|
|
96
121
|
des: t
|
|
@@ -98,7 +123,7 @@ function pe(e, t) {
|
|
|
98
123
|
for (; n.length;) {
|
|
99
124
|
let { src: e, des: t } = n.pop();
|
|
100
125
|
Object.keys(e).forEach((r) => {
|
|
101
|
-
r !== "__proto__" && (R(e[r]) && !R(t[r]) && (t[r] = Array.isArray(e[r]) ? [] : A()),
|
|
126
|
+
r !== "__proto__" && (R(e[r]) && !R(t[r]) && (t[r] = Array.isArray(e[r]) ? [] : A()), ye(t[r]) || ye(e[r]) ? t[r] = e[r] : n.push({
|
|
102
127
|
src: e[r],
|
|
103
128
|
des: t[r]
|
|
104
129
|
}));
|
|
@@ -108,14 +133,14 @@ function pe(e, t) {
|
|
|
108
133
|
//#endregion
|
|
109
134
|
//#region node_modules/@intlify/message-compiler/dist/message-compiler.mjs
|
|
110
135
|
r();
|
|
111
|
-
function
|
|
136
|
+
function xe(e, t, n) {
|
|
112
137
|
return {
|
|
113
138
|
line: e,
|
|
114
139
|
column: t,
|
|
115
140
|
offset: n
|
|
116
141
|
};
|
|
117
142
|
}
|
|
118
|
-
function
|
|
143
|
+
function Se(e, t, n) {
|
|
119
144
|
let r = {
|
|
120
145
|
start: e,
|
|
121
146
|
end: t
|
|
@@ -139,7 +164,7 @@ var V = {
|
|
|
139
164
|
UNEXPECTED_LEXICAL_ANALYSIS: 14,
|
|
140
165
|
UNHANDLED_CODEGEN_NODE_TYPE: 15,
|
|
141
166
|
UNHANDLED_MINIFIER_NODE_TYPE: 16
|
|
142
|
-
},
|
|
167
|
+
}, Ce = {
|
|
143
168
|
[V.EXPECTED_TOKEN]: "Expected token: '{0}'",
|
|
144
169
|
[V.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
|
|
145
170
|
[V.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]: "Unterminated single quote in placeholder",
|
|
@@ -157,16 +182,16 @@ var V = {
|
|
|
157
182
|
[V.UNHANDLED_CODEGEN_NODE_TYPE]: "unhandled codegen node type: '{0}'",
|
|
158
183
|
[V.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
|
|
159
184
|
};
|
|
160
|
-
function
|
|
161
|
-
let { domain: i, messages: a, args: o } = r, s = n.env.NODE_ENV === "production" ? e :
|
|
185
|
+
function we(e, t, r = {}) {
|
|
186
|
+
let { domain: i, messages: a, args: o } = r, s = n.env.NODE_ENV === "production" ? e : C((a || Ce)[e] || "", ...o || []), c = SyntaxError(String(s));
|
|
162
187
|
return c.code = e, t && (c.location = t), c.domain = i, c;
|
|
163
188
|
}
|
|
164
|
-
function
|
|
189
|
+
function Te(e) {
|
|
165
190
|
throw e;
|
|
166
191
|
}
|
|
167
|
-
var
|
|
168
|
-
function
|
|
169
|
-
let t = e, n = 0, r = 1, i = 1, a = 0, o = (e) => t[e] ===
|
|
192
|
+
var Ee = /<\/?[\w\s="/.':;#-\/]+>/, De = (e) => Ee.test(e), H = " ", Oe = "\r", U = "\n", ke = "\u2028", Ae = "\u2029";
|
|
193
|
+
function je(e) {
|
|
194
|
+
let t = e, n = 0, r = 1, i = 1, a = 0, o = (e) => t[e] === Oe && t[e + 1] === U, s = (e) => t[e] === U, c = (e) => t[e] === Ae, l = (e) => t[e] === ke, u = (e) => o(e) || s(e) || c(e) || l(e), d = () => n, f = () => r, p = () => i, m = () => a, h = (e) => o(e) || c(e) || l(e) ? U : t[e], g = () => h(n), _ = () => h(n + a);
|
|
170
195
|
function v() {
|
|
171
196
|
return a = 0, u(n) && (r++, i = 0), o(n) && n++, n++, i++, t[n];
|
|
172
197
|
}
|
|
@@ -199,9 +224,9 @@ function we(e) {
|
|
|
199
224
|
skipToPeek: S
|
|
200
225
|
};
|
|
201
226
|
}
|
|
202
|
-
var W = void 0,
|
|
203
|
-
function
|
|
204
|
-
let n = t.location !== !1, r =
|
|
227
|
+
var W = void 0, Me = "'", Ne = "tokenizer";
|
|
228
|
+
function Pe(e, t = {}) {
|
|
229
|
+
let n = t.location !== !1, r = je(e), i = () => r.index(), a = () => xe(r.line(), r.column(), r.index()), o = a(), s = i(), c = {
|
|
205
230
|
currentType: 13,
|
|
206
231
|
offset: s,
|
|
207
232
|
startLoc: o,
|
|
@@ -216,15 +241,15 @@ function De(e, t = {}) {
|
|
|
216
241
|
}, l = () => c, { onError: u } = t;
|
|
217
242
|
function d(e, t, r, ...i) {
|
|
218
243
|
let a = l();
|
|
219
|
-
t.column += r, t.offset += r, u && u(
|
|
220
|
-
domain:
|
|
244
|
+
t.column += r, t.offset += r, u && u(we(e, n ? Se(a.startLoc, t) : null, {
|
|
245
|
+
domain: Ne,
|
|
221
246
|
args: i
|
|
222
247
|
}));
|
|
223
248
|
}
|
|
224
249
|
function f(e, t, r) {
|
|
225
250
|
e.endLoc = a(), e.currentType = t;
|
|
226
251
|
let i = { type: t };
|
|
227
|
-
return n && (i.loc =
|
|
252
|
+
return n && (i.loc = Se(e.startLoc, e.endLoc)), r != null && (i.value = r), i;
|
|
228
253
|
}
|
|
229
254
|
let p = (e) => f(e, 13);
|
|
230
255
|
function m(e, t) {
|
|
@@ -267,7 +292,7 @@ function De(e, t = {}) {
|
|
|
267
292
|
let { currentType: n } = t;
|
|
268
293
|
if (n !== 2) return !1;
|
|
269
294
|
h(e);
|
|
270
|
-
let r = e.currentPeek() ===
|
|
295
|
+
let r = e.currentPeek() === Me;
|
|
271
296
|
return e.resetPeek(), r;
|
|
272
297
|
}
|
|
273
298
|
function S(e, t) {
|
|
@@ -316,88 +341,91 @@ function De(e, t = {}) {
|
|
|
316
341
|
let n = e.currentChar();
|
|
317
342
|
if (n !== W) return t(n) ? (e.next(), n) : null;
|
|
318
343
|
}
|
|
319
|
-
function
|
|
344
|
+
function ee(e) {
|
|
320
345
|
let t = e.charCodeAt(0);
|
|
321
346
|
return t >= 97 && t <= 122 || t >= 65 && t <= 90 || t >= 48 && t <= 57 || t === 95 || t === 36;
|
|
322
347
|
}
|
|
323
|
-
function
|
|
324
|
-
return O(e,
|
|
348
|
+
function te(e) {
|
|
349
|
+
return O(e, ee);
|
|
325
350
|
}
|
|
326
|
-
function
|
|
351
|
+
function k(e) {
|
|
327
352
|
let t = e.charCodeAt(0);
|
|
328
353
|
return t >= 97 && t <= 122 || t >= 65 && t <= 90 || t >= 48 && t <= 57 || t === 95 || t === 36 || t === 45;
|
|
329
354
|
}
|
|
330
|
-
function
|
|
331
|
-
return O(e,
|
|
355
|
+
function ne(e) {
|
|
356
|
+
return O(e, k);
|
|
332
357
|
}
|
|
333
|
-
function
|
|
358
|
+
function A(e) {
|
|
334
359
|
let t = e.charCodeAt(0);
|
|
335
360
|
return t >= 48 && t <= 57;
|
|
336
361
|
}
|
|
337
|
-
function
|
|
338
|
-
return O(e,
|
|
362
|
+
function j(e) {
|
|
363
|
+
return O(e, A);
|
|
339
364
|
}
|
|
340
|
-
function
|
|
365
|
+
function M(e) {
|
|
341
366
|
let t = e.charCodeAt(0);
|
|
342
367
|
return t >= 48 && t <= 57 || t >= 65 && t <= 70 || t >= 97 && t <= 102;
|
|
343
368
|
}
|
|
344
369
|
function re(e) {
|
|
345
|
-
return O(e,
|
|
370
|
+
return O(e, M);
|
|
346
371
|
}
|
|
347
372
|
function ie(e) {
|
|
348
373
|
let t = "", n = "";
|
|
349
|
-
for (; t =
|
|
374
|
+
for (; t = j(e);) n += t;
|
|
350
375
|
return n;
|
|
351
376
|
}
|
|
352
|
-
function
|
|
377
|
+
function ae(e) {
|
|
353
378
|
let t = "";
|
|
354
379
|
for (;;) {
|
|
355
380
|
let n = e.currentChar();
|
|
356
|
-
if (n === "
|
|
357
|
-
|
|
381
|
+
if (n === "\\") {
|
|
382
|
+
let r = e.peek();
|
|
383
|
+
r === "{" || r === "}" || r === "@" || r === "|" || r === "\\" ? (t += n + r, e.next(), e.next()) : (e.resetPeek(), t += n, e.next());
|
|
384
|
+
} else if (n === "{" || n === "}" || n === "@" || n === "|" || !n) break;
|
|
385
|
+
else if (n === H || n === U) if (D(e)) t += n, e.next();
|
|
358
386
|
else if (E(e)) break;
|
|
359
387
|
else t += n, e.next();
|
|
360
388
|
else t += n, e.next();
|
|
361
389
|
}
|
|
362
390
|
return t;
|
|
363
391
|
}
|
|
364
|
-
function
|
|
392
|
+
function oe(e) {
|
|
365
393
|
g(e);
|
|
366
394
|
let t = "", n = "";
|
|
367
|
-
for (; t =
|
|
395
|
+
for (; t = ne(e);) n += t;
|
|
368
396
|
let r = e.currentChar();
|
|
369
397
|
if (r && r !== "}" && r !== W && r !== H && r !== U && r !== " ") {
|
|
370
|
-
let t =
|
|
398
|
+
let t = P(e);
|
|
371
399
|
return d(V.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, n + t), n + t;
|
|
372
400
|
}
|
|
373
401
|
return e.currentChar() === W && d(V.UNTERMINATED_CLOSING_BRACE, a(), 0), n;
|
|
374
402
|
}
|
|
375
|
-
function
|
|
403
|
+
function se(e) {
|
|
376
404
|
g(e);
|
|
377
405
|
let t = "";
|
|
378
406
|
return e.currentChar() === "-" ? (e.next(), t += `-${ie(e)}`) : t += ie(e), e.currentChar() === W && d(V.UNTERMINATED_CLOSING_BRACE, a(), 0), t;
|
|
379
407
|
}
|
|
380
|
-
function
|
|
381
|
-
return e !==
|
|
408
|
+
function ce(e) {
|
|
409
|
+
return e !== Me && e !== U;
|
|
382
410
|
}
|
|
383
|
-
function
|
|
411
|
+
function le(e) {
|
|
384
412
|
g(e), m(e, "'");
|
|
385
413
|
let t = "", n = "";
|
|
386
|
-
for (; t = O(e,
|
|
414
|
+
for (; t = O(e, ce);) t === "\\" ? n += ue(e) : n += t;
|
|
387
415
|
let r = e.currentChar();
|
|
388
416
|
return r === U || r === W ? (d(V.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), r === U && (e.next(), m(e, "'")), n) : (m(e, "'"), n);
|
|
389
417
|
}
|
|
390
|
-
function
|
|
418
|
+
function ue(e) {
|
|
391
419
|
let t = e.currentChar();
|
|
392
420
|
switch (t) {
|
|
393
421
|
case "\\":
|
|
394
422
|
case "'": return e.next(), `\\${t}`;
|
|
395
|
-
case "u": return
|
|
396
|
-
case "U": return
|
|
423
|
+
case "u": return de(e, t, 4);
|
|
424
|
+
case "U": return de(e, t, 6);
|
|
397
425
|
default: return d(V.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, t), "";
|
|
398
426
|
}
|
|
399
427
|
}
|
|
400
|
-
function
|
|
428
|
+
function de(e, t, n) {
|
|
401
429
|
m(e, t);
|
|
402
430
|
let r = "";
|
|
403
431
|
for (let i = 0; i < n; i++) {
|
|
@@ -410,88 +438,91 @@ function De(e, t = {}) {
|
|
|
410
438
|
}
|
|
411
439
|
return `\\${t}${r}`;
|
|
412
440
|
}
|
|
413
|
-
function
|
|
441
|
+
function N(e) {
|
|
414
442
|
return e !== "{" && e !== "}" && e !== H && e !== U;
|
|
415
443
|
}
|
|
416
|
-
function
|
|
444
|
+
function P(e) {
|
|
417
445
|
g(e);
|
|
418
446
|
let t = "", n = "";
|
|
419
|
-
for (; t = O(e,
|
|
447
|
+
for (; t = O(e, N);) n += t;
|
|
420
448
|
return n;
|
|
421
449
|
}
|
|
422
|
-
function
|
|
450
|
+
function F(e) {
|
|
423
451
|
let t = "", n = "";
|
|
424
|
-
for (; t =
|
|
452
|
+
for (; t = te(e);) n += t;
|
|
425
453
|
return n;
|
|
426
454
|
}
|
|
427
|
-
function
|
|
455
|
+
function I(e) {
|
|
428
456
|
let t = (n) => {
|
|
429
457
|
let r = e.currentChar();
|
|
430
458
|
return r === "{" || r === "@" || r === "|" || r === "(" || r === ")" || !r || r === H ? n : (n += r, e.next(), t(n));
|
|
431
459
|
};
|
|
432
460
|
return t("");
|
|
433
461
|
}
|
|
434
|
-
function
|
|
462
|
+
function L(e) {
|
|
435
463
|
g(e);
|
|
436
464
|
let t = m(e, "|");
|
|
437
465
|
return g(e), t;
|
|
438
466
|
}
|
|
439
|
-
function
|
|
467
|
+
function R(e, t) {
|
|
440
468
|
let n = null;
|
|
441
469
|
switch (e.currentChar()) {
|
|
442
470
|
case "{": return t.braceNest >= 1 && d(V.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), e.next(), n = f(t, 2, "{"), g(e), t.braceNest++, n;
|
|
443
471
|
case "}": return t.braceNest > 0 && t.currentType === 2 && d(V.EMPTY_PLACEHOLDER, a(), 0), e.next(), n = f(t, 3, "}"), t.braceNest--, t.braceNest > 0 && g(e), t.inLinked && t.braceNest === 0 && (t.inLinked = !1), n;
|
|
444
|
-
case "@": return t.braceNest > 0 && d(V.UNTERMINATED_CLOSING_BRACE, a(), 0), n =
|
|
472
|
+
case "@": return t.braceNest > 0 && d(V.UNTERMINATED_CLOSING_BRACE, a(), 0), n = z(e, t) || p(t), t.braceNest = 0, n;
|
|
445
473
|
default: {
|
|
446
474
|
let r = !0, i = !0, o = !0;
|
|
447
|
-
if (E(e)) return t.braceNest > 0 && d(V.UNTERMINATED_CLOSING_BRACE, a(), 0), n = f(t, 1,
|
|
448
|
-
if (t.braceNest > 0 && (t.currentType === 4 || t.currentType === 5 || t.currentType === 6)) return d(V.UNTERMINATED_CLOSING_BRACE, a(), 0), t.braceNest = 0,
|
|
449
|
-
if (r = y(e, t)) return n = f(t, 4,
|
|
450
|
-
if (i = b(e, t)) return n = f(t, 5,
|
|
451
|
-
if (o = x(e, t)) return n = f(t, 6,
|
|
452
|
-
if (!r && !i && !o) return n = f(t, 12,
|
|
475
|
+
if (E(e)) return t.braceNest > 0 && d(V.UNTERMINATED_CLOSING_BRACE, a(), 0), n = f(t, 1, L(e)), t.braceNest = 0, t.inLinked = !1, n;
|
|
476
|
+
if (t.braceNest > 0 && (t.currentType === 4 || t.currentType === 5 || t.currentType === 6)) return d(V.UNTERMINATED_CLOSING_BRACE, a(), 0), t.braceNest = 0, fe(e, t);
|
|
477
|
+
if (r = y(e, t)) return n = f(t, 4, oe(e)), g(e), n;
|
|
478
|
+
if (i = b(e, t)) return n = f(t, 5, se(e)), g(e), n;
|
|
479
|
+
if (o = x(e, t)) return n = f(t, 6, le(e)), g(e), n;
|
|
480
|
+
if (!r && !i && !o) return n = f(t, 12, P(e)), d(V.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, n.value), g(e), n;
|
|
453
481
|
break;
|
|
454
482
|
}
|
|
455
483
|
}
|
|
456
484
|
return n;
|
|
457
485
|
}
|
|
458
|
-
function
|
|
486
|
+
function z(e, t) {
|
|
459
487
|
let { currentType: n } = t, r = null, i = e.currentChar();
|
|
460
488
|
switch ((n === 7 || n === 8 || n === 11 || n === 9) && (i === U || i === H) && d(V.INVALID_LINKED_FORMAT, a(), 0), i) {
|
|
461
489
|
case "@": return e.next(), r = f(t, 7, "@"), t.inLinked = !0, r;
|
|
462
490
|
case ".": return g(e), e.next(), f(t, 8, ".");
|
|
463
491
|
case ":": return g(e), e.next(), f(t, 9, ":");
|
|
464
|
-
default: return E(e) ? (r = f(t, 1,
|
|
492
|
+
default: return E(e) ? (r = f(t, 1, L(e)), t.braceNest = 0, t.inLinked = !1, r) : S(e, t) || w(e, t) ? (g(e), z(e, t)) : C(e, t) ? (g(e), f(t, 11, F(e))) : T(e, t) ? (g(e), i === "{" ? R(e, t) || r : f(t, 10, I(e))) : (n === 7 && d(V.INVALID_LINKED_FORMAT, a(), 0), t.braceNest = 0, t.inLinked = !1, fe(e, t));
|
|
465
493
|
}
|
|
466
494
|
}
|
|
467
|
-
function
|
|
495
|
+
function fe(e, t) {
|
|
468
496
|
let n = { type: 13 };
|
|
469
|
-
if (t.braceNest > 0) return
|
|
470
|
-
if (t.inLinked) return
|
|
497
|
+
if (t.braceNest > 0) return R(e, t) || p(t);
|
|
498
|
+
if (t.inLinked) return z(e, t) || p(t);
|
|
471
499
|
switch (e.currentChar()) {
|
|
472
|
-
case "{": return
|
|
500
|
+
case "{": return R(e, t) || p(t);
|
|
473
501
|
case "}": return d(V.UNBALANCED_CLOSING_BRACE, a(), 0), e.next(), f(t, 3, "}");
|
|
474
|
-
case "@": return
|
|
502
|
+
case "@": return z(e, t) || p(t);
|
|
475
503
|
default:
|
|
476
|
-
if (E(e)) return n = f(t, 1,
|
|
477
|
-
if (D(e)) return f(t, 0,
|
|
504
|
+
if (E(e)) return n = f(t, 1, L(e)), t.braceNest = 0, t.inLinked = !1, n;
|
|
505
|
+
if (D(e)) return f(t, 0, ae(e));
|
|
478
506
|
break;
|
|
479
507
|
}
|
|
480
508
|
return n;
|
|
481
509
|
}
|
|
482
|
-
function
|
|
510
|
+
function pe() {
|
|
483
511
|
let { currentType: e, offset: t, startLoc: n, endLoc: o } = c;
|
|
484
|
-
return c.lastType = e, c.lastOffset = t, c.lastStartLoc = n, c.lastEndLoc = o, c.offset = i(), c.startLoc = a(), r.currentChar() === W ? f(c, 13) :
|
|
512
|
+
return c.lastType = e, c.lastOffset = t, c.lastStartLoc = n, c.lastEndLoc = o, c.offset = i(), c.startLoc = a(), r.currentChar() === W ? f(c, 13) : fe(r, c);
|
|
485
513
|
}
|
|
486
514
|
return {
|
|
487
|
-
nextToken:
|
|
515
|
+
nextToken: pe,
|
|
488
516
|
currentOffset: i,
|
|
489
517
|
currentPosition: a,
|
|
490
518
|
context: l
|
|
491
519
|
};
|
|
492
520
|
}
|
|
493
|
-
var
|
|
494
|
-
function
|
|
521
|
+
var Fe = "parser", Ie = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g, Le = /\\([\\@{}|])/g;
|
|
522
|
+
function Re(e, t) {
|
|
523
|
+
return t;
|
|
524
|
+
}
|
|
525
|
+
function ze(e, t, n) {
|
|
495
526
|
switch (e) {
|
|
496
527
|
case "\\\\": return "\\";
|
|
497
528
|
case "\\'": return "'";
|
|
@@ -501,12 +532,12 @@ function Ae(e, t, n) {
|
|
|
501
532
|
}
|
|
502
533
|
}
|
|
503
534
|
}
|
|
504
|
-
function
|
|
535
|
+
function Be(e = {}) {
|
|
505
536
|
let t = e.location !== !1, { onError: n } = e;
|
|
506
537
|
function r(e, r, i, a, ...o) {
|
|
507
538
|
let s = e.currentPosition();
|
|
508
|
-
s.offset += a, s.column += a, n && n(
|
|
509
|
-
domain:
|
|
539
|
+
s.offset += a, s.column += a, n && n(we(r, t ? Se(i, s) : null, {
|
|
540
|
+
domain: Fe,
|
|
510
541
|
args: o
|
|
511
542
|
}));
|
|
512
543
|
}
|
|
@@ -522,7 +553,7 @@ function G(e = {}) {
|
|
|
522
553
|
}
|
|
523
554
|
function o(e, t) {
|
|
524
555
|
let n = e.context(), r = i(3, n.offset, n.startLoc);
|
|
525
|
-
return r.value = t, a(r, e.currentOffset(), e.currentPosition()), r;
|
|
556
|
+
return r.value = t.replace(Le, Re), a(r, e.currentOffset(), e.currentPosition()), r;
|
|
526
557
|
}
|
|
527
558
|
function s(e, t) {
|
|
528
559
|
let { lastOffset: n, lastStartLoc: r } = e.context(), o = i(5, n, r);
|
|
@@ -534,11 +565,11 @@ function G(e = {}) {
|
|
|
534
565
|
}
|
|
535
566
|
function l(e, t) {
|
|
536
567
|
let { lastOffset: n, lastStartLoc: r } = e.context(), o = i(9, n, r);
|
|
537
|
-
return o.value = t.replace(
|
|
568
|
+
return o.value = t.replace(Ie, ze), e.nextToken(), a(o, e.currentOffset(), e.currentPosition()), o;
|
|
538
569
|
}
|
|
539
570
|
function u(e) {
|
|
540
571
|
let t = e.nextToken(), n = e.context(), { lastOffset: o, lastStartLoc: s } = n, c = i(8, o, s);
|
|
541
|
-
return t.type === 11 ? (t.value ?? r(e, V.UNEXPECTED_LEXICAL_ANALYSIS, n.lastStartLoc, 0,
|
|
572
|
+
return t.type === 11 ? (t.value ?? r(e, V.UNEXPECTED_LEXICAL_ANALYSIS, n.lastStartLoc, 0, G(t)), c.value = t.value || "", a(c, e.currentOffset(), e.currentPosition()), { node: c }) : (r(e, V.UNEXPECTED_EMPTY_LINKED_MODIFIER, n.lastStartLoc, 0), c.value = "", a(c, o, s), {
|
|
542
573
|
nextConsumeToken: t,
|
|
543
574
|
node: c
|
|
544
575
|
});
|
|
@@ -553,18 +584,18 @@ function G(e = {}) {
|
|
|
553
584
|
let t = u(e);
|
|
554
585
|
n.modifier = t.node, o = t.nextConsumeToken || e.nextToken();
|
|
555
586
|
}
|
|
556
|
-
switch (o.type !== 9 && r(e, V.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0,
|
|
587
|
+
switch (o.type !== 9 && r(e, V.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, G(o)), o = e.nextToken(), o.type === 2 && (o = e.nextToken()), o.type) {
|
|
557
588
|
case 10:
|
|
558
|
-
o.value ?? r(e, V.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0,
|
|
589
|
+
o.value ?? r(e, V.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, G(o)), n.key = d(e, o.value || "");
|
|
559
590
|
break;
|
|
560
591
|
case 4:
|
|
561
|
-
o.value ?? r(e, V.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0,
|
|
592
|
+
o.value ?? r(e, V.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, G(o)), n.key = c(e, o.value || "");
|
|
562
593
|
break;
|
|
563
594
|
case 5:
|
|
564
|
-
o.value ?? r(e, V.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0,
|
|
595
|
+
o.value ?? r(e, V.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, G(o)), n.key = s(e, o.value || "");
|
|
565
596
|
break;
|
|
566
597
|
case 6:
|
|
567
|
-
o.value ?? r(e, V.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0,
|
|
598
|
+
o.value ?? r(e, V.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, G(o)), n.key = l(e, o.value || "");
|
|
568
599
|
break;
|
|
569
600
|
default: {
|
|
570
601
|
r(e, V.UNEXPECTED_EMPTY_LINKED_KEY, t.lastStartLoc, 0);
|
|
@@ -585,16 +616,16 @@ function G(e = {}) {
|
|
|
585
616
|
let i = u || e.nextToken();
|
|
586
617
|
switch (u = null, i.type) {
|
|
587
618
|
case 0:
|
|
588
|
-
i.value ?? r(e, V.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0,
|
|
619
|
+
i.value ?? r(e, V.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, G(i)), n.items.push(o(e, i.value || ""));
|
|
589
620
|
break;
|
|
590
621
|
case 5:
|
|
591
|
-
i.value ?? r(e, V.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0,
|
|
622
|
+
i.value ?? r(e, V.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, G(i)), n.items.push(s(e, i.value || ""));
|
|
592
623
|
break;
|
|
593
624
|
case 4:
|
|
594
|
-
i.value ?? r(e, V.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0,
|
|
625
|
+
i.value ?? r(e, V.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, G(i)), n.items.push(c(e, i.value || ""));
|
|
595
626
|
break;
|
|
596
627
|
case 6:
|
|
597
|
-
i.value ?? r(e, V.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0,
|
|
628
|
+
i.value ?? r(e, V.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, 0, G(i)), n.items.push(l(e, i.value || ""));
|
|
598
629
|
break;
|
|
599
630
|
case 7: {
|
|
600
631
|
let t = f(e);
|
|
@@ -619,17 +650,17 @@ function G(e = {}) {
|
|
|
619
650
|
return t.currentType === 13 ? i : m(e, n, r, i);
|
|
620
651
|
}
|
|
621
652
|
function g(n) {
|
|
622
|
-
let o =
|
|
653
|
+
let o = Pe(n, k({}, e)), s = o.context(), c = i(0, s.offset, s.startLoc);
|
|
623
654
|
return t && c.loc && (c.loc.source = n), c.body = h(o), e.onCacheKey && (c.cacheKey = e.onCacheKey(n)), s.currentType !== 13 && r(o, V.UNEXPECTED_LEXICAL_ANALYSIS, s.lastStartLoc, 0, n[s.offset] || ""), a(c, o.currentOffset(), o.currentPosition()), c;
|
|
624
655
|
}
|
|
625
656
|
return { parse: g };
|
|
626
657
|
}
|
|
627
|
-
function
|
|
658
|
+
function G(e) {
|
|
628
659
|
if (e.type === 13) return "EOF";
|
|
629
660
|
let t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
630
661
|
return t.length > 10 ? t.slice(0, 9) + "…" : t;
|
|
631
662
|
}
|
|
632
|
-
function
|
|
663
|
+
function Ve(e, t = {}) {
|
|
633
664
|
let n = {
|
|
634
665
|
ast: e,
|
|
635
666
|
helpers: /* @__PURE__ */ new Set()
|
|
@@ -639,19 +670,19 @@ function je(e, t = {}) {
|
|
|
639
670
|
helper: (e) => (n.helpers.add(e), e)
|
|
640
671
|
};
|
|
641
672
|
}
|
|
642
|
-
function
|
|
643
|
-
for (let n = 0; n < e.length; n++)
|
|
673
|
+
function He(e, t) {
|
|
674
|
+
for (let n = 0; n < e.length; n++) Ue(e[n], t);
|
|
644
675
|
}
|
|
645
|
-
function
|
|
676
|
+
function Ue(e, t) {
|
|
646
677
|
switch (e.type) {
|
|
647
678
|
case 1:
|
|
648
|
-
|
|
679
|
+
He(e.cases, t), t.helper("plural");
|
|
649
680
|
break;
|
|
650
681
|
case 2:
|
|
651
|
-
|
|
682
|
+
He(e.items, t);
|
|
652
683
|
break;
|
|
653
684
|
case 6:
|
|
654
|
-
|
|
685
|
+
Ue(e.key, t), t.helper("linked"), t.helper("type");
|
|
655
686
|
break;
|
|
656
687
|
case 5:
|
|
657
688
|
t.helper("interpolate"), t.helper("list");
|
|
@@ -661,17 +692,17 @@ function Ne(e, t) {
|
|
|
661
692
|
break;
|
|
662
693
|
}
|
|
663
694
|
}
|
|
664
|
-
function
|
|
665
|
-
let n =
|
|
666
|
-
n.helper("normalize"), e.body &&
|
|
695
|
+
function We(e, t = {}) {
|
|
696
|
+
let n = Ve(e);
|
|
697
|
+
n.helper("normalize"), e.body && Ue(e.body, n);
|
|
667
698
|
let r = n.context();
|
|
668
699
|
e.helpers = Array.from(r.helpers);
|
|
669
700
|
}
|
|
670
|
-
function
|
|
701
|
+
function Ge(e) {
|
|
671
702
|
let t = e.body;
|
|
672
|
-
return t.type === 2 ?
|
|
703
|
+
return t.type === 2 ? Ke(t) : t.cases.forEach((e) => Ke(e)), e;
|
|
673
704
|
}
|
|
674
|
-
function
|
|
705
|
+
function Ke(e) {
|
|
675
706
|
if (e.items.length === 1) {
|
|
676
707
|
let t = e.items[0];
|
|
677
708
|
(t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
|
|
@@ -683,7 +714,7 @@ function Ie(e) {
|
|
|
683
714
|
t.push(r.value);
|
|
684
715
|
}
|
|
685
716
|
if (t.length === e.items.length) {
|
|
686
|
-
e.static =
|
|
717
|
+
e.static = he(t);
|
|
687
718
|
for (let t = 0; t < e.items.length; t++) {
|
|
688
719
|
let n = e.items[t];
|
|
689
720
|
(n.type === 3 || n.type === 9) && delete n.value;
|
|
@@ -691,23 +722,23 @@ function Ie(e) {
|
|
|
691
722
|
}
|
|
692
723
|
}
|
|
693
724
|
}
|
|
694
|
-
var
|
|
695
|
-
function
|
|
725
|
+
var qe = "minifier";
|
|
726
|
+
function Je(e) {
|
|
696
727
|
switch (e.t = e.type, e.type) {
|
|
697
728
|
case 0: {
|
|
698
729
|
let t = e;
|
|
699
|
-
|
|
730
|
+
Je(t.body), t.b = t.body, delete t.body;
|
|
700
731
|
break;
|
|
701
732
|
}
|
|
702
733
|
case 1: {
|
|
703
734
|
let t = e, n = t.cases;
|
|
704
|
-
for (let e = 0; e < n.length; e++)
|
|
735
|
+
for (let e = 0; e < n.length; e++) Je(n[e]);
|
|
705
736
|
t.c = n, delete t.cases;
|
|
706
737
|
break;
|
|
707
738
|
}
|
|
708
739
|
case 2: {
|
|
709
740
|
let t = e, n = t.items;
|
|
710
|
-
for (let e = 0; e < n.length; e++)
|
|
741
|
+
for (let e = 0; e < n.length; e++) Je(n[e]);
|
|
711
742
|
t.i = n, delete t.items, t.static && (t.s = t.static, delete t.static);
|
|
712
743
|
break;
|
|
713
744
|
}
|
|
@@ -721,7 +752,7 @@ function Re(e) {
|
|
|
721
752
|
}
|
|
722
753
|
case 6: {
|
|
723
754
|
let t = e;
|
|
724
|
-
|
|
755
|
+
Je(t.key), t.k = t.key, delete t.key, t.modifier && (Je(t.modifier), t.m = t.modifier, delete t.modifier);
|
|
725
756
|
break;
|
|
726
757
|
}
|
|
727
758
|
case 5: {
|
|
@@ -734,93 +765,93 @@ function Re(e) {
|
|
|
734
765
|
t.k = t.key, delete t.key;
|
|
735
766
|
break;
|
|
736
767
|
}
|
|
737
|
-
default: if (n.env.NODE_ENV !== "production") throw
|
|
738
|
-
domain:
|
|
768
|
+
default: if (n.env.NODE_ENV !== "production") throw we(V.UNHANDLED_MINIFIER_NODE_TYPE, null, {
|
|
769
|
+
domain: qe,
|
|
739
770
|
args: [e.type]
|
|
740
771
|
});
|
|
741
772
|
}
|
|
742
773
|
delete e.type;
|
|
743
774
|
}
|
|
744
|
-
var
|
|
745
|
-
function
|
|
746
|
-
let {
|
|
747
|
-
filename:
|
|
775
|
+
var Ye = "parser";
|
|
776
|
+
function Xe(e, t) {
|
|
777
|
+
let { filename: n, breakLineCode: r, needIndent: i } = t, a = t.location !== !1, o = {
|
|
778
|
+
filename: n,
|
|
748
779
|
code: "",
|
|
749
780
|
column: 1,
|
|
750
781
|
line: 1,
|
|
751
782
|
offset: 0,
|
|
752
783
|
map: void 0,
|
|
753
|
-
breakLineCode:
|
|
754
|
-
needIndent:
|
|
784
|
+
breakLineCode: r,
|
|
785
|
+
needIndent: i,
|
|
755
786
|
indentLevel: 0
|
|
756
787
|
};
|
|
757
|
-
|
|
758
|
-
let
|
|
759
|
-
function
|
|
760
|
-
|
|
788
|
+
a && e.loc && (o.source = e.loc.source);
|
|
789
|
+
let s = () => o;
|
|
790
|
+
function c(e, t) {
|
|
791
|
+
o.code += e;
|
|
761
792
|
}
|
|
762
|
-
function
|
|
763
|
-
let n = t ?
|
|
764
|
-
|
|
793
|
+
function l(e, t = !0) {
|
|
794
|
+
let n = t ? r : "";
|
|
795
|
+
c(i ? n + " ".repeat(e) : n);
|
|
765
796
|
}
|
|
766
|
-
function
|
|
767
|
-
let t = ++
|
|
768
|
-
e &&
|
|
797
|
+
function u(e = !0) {
|
|
798
|
+
let t = ++o.indentLevel;
|
|
799
|
+
e && l(t);
|
|
769
800
|
}
|
|
770
|
-
function
|
|
771
|
-
let t = --
|
|
772
|
-
e &&
|
|
801
|
+
function d(e = !0) {
|
|
802
|
+
let t = --o.indentLevel;
|
|
803
|
+
e && l(t);
|
|
773
804
|
}
|
|
774
|
-
function
|
|
775
|
-
|
|
805
|
+
function f() {
|
|
806
|
+
l(o.indentLevel);
|
|
776
807
|
}
|
|
777
808
|
return {
|
|
778
|
-
context:
|
|
779
|
-
push:
|
|
780
|
-
indent:
|
|
781
|
-
deindent:
|
|
782
|
-
newline:
|
|
809
|
+
context: s,
|
|
810
|
+
push: c,
|
|
811
|
+
indent: u,
|
|
812
|
+
deindent: d,
|
|
813
|
+
newline: f,
|
|
783
814
|
helper: (e) => `_${e}`,
|
|
784
|
-
needIndent: () =>
|
|
815
|
+
needIndent: () => o.needIndent
|
|
785
816
|
};
|
|
786
817
|
}
|
|
787
|
-
function
|
|
818
|
+
function Ze(e, t) {
|
|
788
819
|
let { helper: n } = e;
|
|
789
|
-
e.push(`${n("linked")}(`),
|
|
820
|
+
e.push(`${n("linked")}(`), tt(e, t.key), t.modifier ? (e.push(", "), tt(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
790
821
|
}
|
|
791
|
-
function
|
|
822
|
+
function Qe(e, t) {
|
|
792
823
|
let { helper: n, needIndent: r } = e;
|
|
793
824
|
e.push(`${n("normalize")}([`), e.indent(r());
|
|
794
825
|
let i = t.items.length;
|
|
795
|
-
for (let n = 0; n < i && (
|
|
826
|
+
for (let n = 0; n < i && (tt(e, t.items[n]), n !== i - 1); n++) e.push(", ");
|
|
796
827
|
e.deindent(r()), e.push("])");
|
|
797
828
|
}
|
|
798
|
-
function
|
|
829
|
+
function $e(e, t) {
|
|
799
830
|
let { helper: n, needIndent: r } = e;
|
|
800
831
|
if (t.cases.length > 1) {
|
|
801
832
|
e.push(`${n("plural")}([`), e.indent(r());
|
|
802
833
|
let i = t.cases.length;
|
|
803
|
-
for (let n = 0; n < i && (
|
|
834
|
+
for (let n = 0; n < i && (tt(e, t.cases[n]), n !== i - 1); n++) e.push(", ");
|
|
804
835
|
e.deindent(r()), e.push("])");
|
|
805
836
|
}
|
|
806
837
|
}
|
|
807
|
-
function
|
|
808
|
-
t.body ?
|
|
838
|
+
function et(e, t) {
|
|
839
|
+
t.body ? tt(e, t.body) : e.push("null");
|
|
809
840
|
}
|
|
810
|
-
function
|
|
841
|
+
function tt(e, t) {
|
|
811
842
|
let { helper: r } = e;
|
|
812
843
|
switch (t.type) {
|
|
813
844
|
case 0:
|
|
814
|
-
|
|
845
|
+
et(e, t);
|
|
815
846
|
break;
|
|
816
847
|
case 1:
|
|
817
|
-
|
|
848
|
+
$e(e, t);
|
|
818
849
|
break;
|
|
819
850
|
case 2:
|
|
820
|
-
|
|
851
|
+
Qe(e, t);
|
|
821
852
|
break;
|
|
822
853
|
case 6:
|
|
823
|
-
|
|
854
|
+
Ze(e, t);
|
|
824
855
|
break;
|
|
825
856
|
case 8:
|
|
826
857
|
e.push(JSON.stringify(t.value), t);
|
|
@@ -840,195 +871,195 @@ function Ge(e, t) {
|
|
|
840
871
|
case 3:
|
|
841
872
|
e.push(JSON.stringify(t.value), t);
|
|
842
873
|
break;
|
|
843
|
-
default: if (n.env.NODE_ENV !== "production") throw
|
|
844
|
-
domain:
|
|
874
|
+
default: if (n.env.NODE_ENV !== "production") throw we(V.UNHANDLED_CODEGEN_NODE_TYPE, null, {
|
|
875
|
+
domain: Ye,
|
|
845
876
|
args: [t.type]
|
|
846
877
|
});
|
|
847
878
|
}
|
|
848
879
|
}
|
|
849
|
-
var
|
|
850
|
-
let n = I(t.mode) ? t.mode : "normal", r = I(t.filename) ? t.filename : "message.intl"
|
|
851
|
-
|
|
880
|
+
var nt = (e, t = {}) => {
|
|
881
|
+
let n = I(t.mode) ? t.mode : "normal", r = I(t.filename) ? t.filename : "message.intl";
|
|
882
|
+
t.sourceMap;
|
|
883
|
+
let i = t.breakLineCode == null ? n === "arrow" ? ";" : "\n" : t.breakLineCode, a = t.needIndent ? t.needIndent : n !== "arrow", o = e.helpers || [], s = Xe(e, {
|
|
852
884
|
filename: r,
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
needIndent: o
|
|
885
|
+
breakLineCode: i,
|
|
886
|
+
needIndent: a
|
|
856
887
|
});
|
|
857
|
-
|
|
858
|
-
let { code:
|
|
888
|
+
s.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), s.indent(a), o.length > 0 && (s.push(`const { ${he(o.map((e) => `${e}: _${e}`), ", ")} } = ctx`), s.newline()), s.push("return "), tt(s, e), s.deindent(a), s.push("}"), delete e.helpers;
|
|
889
|
+
let { code: c, map: l } = s.context();
|
|
859
890
|
return {
|
|
860
891
|
ast: e,
|
|
861
|
-
code:
|
|
862
|
-
map:
|
|
892
|
+
code: c,
|
|
893
|
+
map: l ? l.toJSON() : void 0
|
|
863
894
|
};
|
|
864
895
|
};
|
|
865
|
-
function
|
|
866
|
-
let n = k({}, t), r = !!n.jit, i = !!n.minify, a = n.optimize == null ? !0 : n.optimize, o =
|
|
867
|
-
return r ? (a &&
|
|
896
|
+
function rt(e, t = {}) {
|
|
897
|
+
let n = k({}, t), r = !!n.jit, i = !!n.minify, a = n.optimize == null ? !0 : n.optimize, o = Be(n).parse(e);
|
|
898
|
+
return r ? (a && Ge(o), i && Je(o), {
|
|
868
899
|
ast: o,
|
|
869
900
|
code: ""
|
|
870
|
-
}) : (
|
|
901
|
+
}) : (We(o, n), nt(o, n));
|
|
871
902
|
}
|
|
872
903
|
//#endregion
|
|
873
904
|
//#region node_modules/@intlify/core-base/dist/core-base.mjs
|
|
874
905
|
r();
|
|
875
|
-
function
|
|
876
|
-
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (
|
|
906
|
+
function it() {
|
|
907
|
+
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (M().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (M().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
877
908
|
}
|
|
878
|
-
function
|
|
879
|
-
return R(e) &&
|
|
909
|
+
function K(e) {
|
|
910
|
+
return R(e) && mt(e) === 0 && (N(e, "b") || N(e, "body"));
|
|
880
911
|
}
|
|
881
|
-
var
|
|
882
|
-
function
|
|
883
|
-
return
|
|
912
|
+
var at = ["b", "body"];
|
|
913
|
+
function ot(e) {
|
|
914
|
+
return xt(e, at);
|
|
884
915
|
}
|
|
885
|
-
var
|
|
886
|
-
function
|
|
887
|
-
return
|
|
916
|
+
var st = ["c", "cases"];
|
|
917
|
+
function ct(e) {
|
|
918
|
+
return xt(e, st, []);
|
|
888
919
|
}
|
|
889
|
-
var
|
|
890
|
-
function
|
|
891
|
-
return
|
|
920
|
+
var lt = ["s", "static"];
|
|
921
|
+
function ut(e) {
|
|
922
|
+
return xt(e, lt);
|
|
892
923
|
}
|
|
893
|
-
var
|
|
894
|
-
function
|
|
895
|
-
return
|
|
924
|
+
var dt = ["i", "items"];
|
|
925
|
+
function ft(e) {
|
|
926
|
+
return xt(e, dt, []);
|
|
896
927
|
}
|
|
897
|
-
var
|
|
898
|
-
function
|
|
899
|
-
return
|
|
928
|
+
var pt = ["t", "type"];
|
|
929
|
+
function mt(e) {
|
|
930
|
+
return xt(e, pt);
|
|
900
931
|
}
|
|
901
|
-
var
|
|
902
|
-
function
|
|
903
|
-
let n =
|
|
932
|
+
var ht = ["v", "value"];
|
|
933
|
+
function gt(e, t) {
|
|
934
|
+
let n = xt(e, ht);
|
|
904
935
|
if (n != null) return n;
|
|
905
|
-
throw
|
|
936
|
+
throw Ct(t);
|
|
906
937
|
}
|
|
907
|
-
var
|
|
908
|
-
function
|
|
909
|
-
return
|
|
938
|
+
var _t = ["m", "modifier"];
|
|
939
|
+
function vt(e) {
|
|
940
|
+
return xt(e, _t);
|
|
910
941
|
}
|
|
911
|
-
var
|
|
912
|
-
function
|
|
913
|
-
let t =
|
|
942
|
+
var yt = ["k", "key"];
|
|
943
|
+
function bt(e) {
|
|
944
|
+
let t = xt(e, yt);
|
|
914
945
|
if (t) return t;
|
|
915
|
-
throw
|
|
946
|
+
throw Ct(6);
|
|
916
947
|
}
|
|
917
|
-
function
|
|
948
|
+
function xt(e, t, n) {
|
|
918
949
|
for (let n = 0; n < t.length; n++) {
|
|
919
950
|
let r = t[n];
|
|
920
951
|
if (N(e, r) && e[r] != null) return e[r];
|
|
921
952
|
}
|
|
922
953
|
return n;
|
|
923
954
|
}
|
|
924
|
-
var
|
|
925
|
-
...Ye,
|
|
926
|
-
...Ze,
|
|
927
|
-
...$e,
|
|
928
|
-
...tt,
|
|
929
|
-
...lt,
|
|
930
|
-
...st,
|
|
955
|
+
var St = [
|
|
931
956
|
...at,
|
|
932
|
-
...
|
|
957
|
+
...st,
|
|
958
|
+
...lt,
|
|
959
|
+
...dt,
|
|
960
|
+
...yt,
|
|
961
|
+
..._t,
|
|
962
|
+
...ht,
|
|
963
|
+
...pt
|
|
933
964
|
];
|
|
934
|
-
function
|
|
965
|
+
function Ct(e) {
|
|
935
966
|
return /* @__PURE__ */ Error(`unhandled node type: ${e}`);
|
|
936
967
|
}
|
|
937
|
-
function
|
|
938
|
-
return (t) =>
|
|
968
|
+
function wt(e) {
|
|
969
|
+
return (t) => Tt(t, e);
|
|
939
970
|
}
|
|
940
|
-
function
|
|
941
|
-
let n =
|
|
942
|
-
if (n == null) throw
|
|
943
|
-
if (
|
|
944
|
-
let t =
|
|
945
|
-
return e.plural(t.reduce((t, n) => [...t,
|
|
946
|
-
} else return
|
|
971
|
+
function Tt(e, t) {
|
|
972
|
+
let n = ot(t);
|
|
973
|
+
if (n == null) throw Ct(0);
|
|
974
|
+
if (mt(n) === 1) {
|
|
975
|
+
let t = ct(n);
|
|
976
|
+
return e.plural(t.reduce((t, n) => [...t, Et(e, n)], []));
|
|
977
|
+
} else return Et(e, n);
|
|
947
978
|
}
|
|
948
|
-
function
|
|
949
|
-
let n =
|
|
979
|
+
function Et(e, t) {
|
|
980
|
+
let n = ut(t);
|
|
950
981
|
if (n != null) return e.type === "text" ? n : e.normalize([n]);
|
|
951
982
|
{
|
|
952
|
-
let n =
|
|
983
|
+
let n = ft(t).reduce((t, n) => [...t, Dt(e, n)], []);
|
|
953
984
|
return e.normalize(n);
|
|
954
985
|
}
|
|
955
986
|
}
|
|
956
|
-
function
|
|
957
|
-
let n =
|
|
987
|
+
function Dt(e, t) {
|
|
988
|
+
let n = mt(t);
|
|
958
989
|
switch (n) {
|
|
959
|
-
case 3: return
|
|
960
|
-
case 9: return
|
|
990
|
+
case 3: return gt(t, n);
|
|
991
|
+
case 9: return gt(t, n);
|
|
961
992
|
case 4: {
|
|
962
993
|
let r = t;
|
|
963
994
|
if (N(r, "k") && r.k) return e.interpolate(e.named(r.k));
|
|
964
995
|
if (N(r, "key") && r.key) return e.interpolate(e.named(r.key));
|
|
965
|
-
throw
|
|
996
|
+
throw Ct(n);
|
|
966
997
|
}
|
|
967
998
|
case 5: {
|
|
968
999
|
let r = t;
|
|
969
|
-
if (N(r, "i") &&
|
|
970
|
-
if (N(r, "index") &&
|
|
971
|
-
throw
|
|
1000
|
+
if (N(r, "i") && D(r.i)) return e.interpolate(e.list(r.i));
|
|
1001
|
+
if (N(r, "index") && D(r.index)) return e.interpolate(e.list(r.index));
|
|
1002
|
+
throw Ct(n);
|
|
972
1003
|
}
|
|
973
1004
|
case 6: {
|
|
974
|
-
let n = t, r =
|
|
975
|
-
return e.linked(
|
|
1005
|
+
let n = t, r = vt(n), i = bt(n);
|
|
1006
|
+
return e.linked(Dt(e, i), r ? Dt(e, r) : void 0, e.type);
|
|
976
1007
|
}
|
|
977
|
-
case 7: return
|
|
978
|
-
case 8: return
|
|
1008
|
+
case 7: return gt(t, n);
|
|
1009
|
+
case 8: return gt(t, n);
|
|
979
1010
|
default: throw Error(`unhandled node on format message part: ${n}`);
|
|
980
1011
|
}
|
|
981
1012
|
}
|
|
982
|
-
var
|
|
983
|
-
function
|
|
984
|
-
t &&
|
|
1013
|
+
var Ot = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
|
|
1014
|
+
function kt(e, t) {
|
|
1015
|
+
t && De(e) && g(C(Ot, { source: e }));
|
|
985
1016
|
}
|
|
986
|
-
var
|
|
987
|
-
function
|
|
988
|
-
let n = !1, r = t.onError ||
|
|
1017
|
+
var At = (e) => e, jt = A();
|
|
1018
|
+
function Mt(e, t = {}) {
|
|
1019
|
+
let n = !1, r = t.onError || Te;
|
|
989
1020
|
return t.onError = (e) => {
|
|
990
1021
|
n = !0, r(e);
|
|
991
1022
|
}, {
|
|
992
|
-
...
|
|
1023
|
+
...rt(e, t),
|
|
993
1024
|
detectError: n
|
|
994
1025
|
};
|
|
995
1026
|
}
|
|
996
1027
|
/* #__NO_SIDE_EFFECTS__ */
|
|
997
|
-
function
|
|
1028
|
+
function Nt(e, t) {
|
|
998
1029
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && I(e)) {
|
|
999
1030
|
let r = L(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
|
|
1000
|
-
n.env.NODE_ENV !== "production" &&
|
|
1001
|
-
let i = (t.onCacheKey ||
|
|
1031
|
+
n.env.NODE_ENV !== "production" && kt(e, r);
|
|
1032
|
+
let i = (t.onCacheKey || At)(e), a = jt[i];
|
|
1002
1033
|
if (a) return a;
|
|
1003
|
-
let { ast: o, detectError: s } =
|
|
1034
|
+
let { ast: o, detectError: s } = Mt(e, {
|
|
1004
1035
|
...t,
|
|
1005
1036
|
location: n.env.NODE_ENV !== "production",
|
|
1006
1037
|
jit: !0
|
|
1007
|
-
}), c =
|
|
1008
|
-
return s ? c :
|
|
1038
|
+
}), c = wt(o);
|
|
1039
|
+
return s ? c : jt[i] = c;
|
|
1009
1040
|
} else {
|
|
1010
|
-
if (n.env.NODE_ENV !== "production" && !
|
|
1041
|
+
if (n.env.NODE_ENV !== "production" && !K(e)) return g(`the message that is resolve with key '${t.key}' is not supported for jit compilation`), (() => e);
|
|
1011
1042
|
let r = e.cacheKey;
|
|
1012
|
-
return r ?
|
|
1043
|
+
return r ? jt[r] || (jt[r] = wt(e)) : wt(e);
|
|
1013
1044
|
}
|
|
1014
1045
|
}
|
|
1015
|
-
var
|
|
1016
|
-
function
|
|
1017
|
-
|
|
1046
|
+
var Pt = null;
|
|
1047
|
+
function Ft(e) {
|
|
1048
|
+
Pt = e;
|
|
1018
1049
|
}
|
|
1019
|
-
function
|
|
1020
|
-
|
|
1050
|
+
function It(e, t, n) {
|
|
1051
|
+
Pt && Pt.emit("i18n:init", {
|
|
1021
1052
|
timestamp: Date.now(),
|
|
1022
1053
|
i18n: e,
|
|
1023
1054
|
version: t,
|
|
1024
1055
|
meta: n
|
|
1025
1056
|
});
|
|
1026
1057
|
}
|
|
1027
|
-
var
|
|
1028
|
-
function
|
|
1029
|
-
return (t) =>
|
|
1058
|
+
var Lt = /* #__PURE__*/ Rt("function:translate");
|
|
1059
|
+
function Rt(e) {
|
|
1060
|
+
return (t) => Pt && Pt.emit(e, t);
|
|
1030
1061
|
}
|
|
1031
|
-
var
|
|
1062
|
+
var q = {
|
|
1032
1063
|
INVALID_ARGUMENT: 17,
|
|
1033
1064
|
INVALID_DATE_ARGUMENT: 18,
|
|
1034
1065
|
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
@@ -1037,120 +1068,120 @@ var J = {
|
|
|
1037
1068
|
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
1038
1069
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1039
1070
|
};
|
|
1040
|
-
function
|
|
1041
|
-
return
|
|
1042
|
-
}
|
|
1043
|
-
var
|
|
1044
|
-
[
|
|
1045
|
-
[
|
|
1046
|
-
[
|
|
1047
|
-
[
|
|
1048
|
-
[
|
|
1049
|
-
[
|
|
1050
|
-
[
|
|
1071
|
+
function J(e) {
|
|
1072
|
+
return we(e, null, n.env.NODE_ENV === "production" ? void 0 : { messages: zt });
|
|
1073
|
+
}
|
|
1074
|
+
var zt = {
|
|
1075
|
+
[q.INVALID_ARGUMENT]: "Invalid arguments",
|
|
1076
|
+
[q.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
|
|
1077
|
+
[q.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
|
|
1078
|
+
[q.NOT_SUPPORT_NON_STRING_MESSAGE]: "Not support non-string message",
|
|
1079
|
+
[q.NOT_SUPPORT_LOCALE_PROMISE_VALUE]: "cannot support promise value",
|
|
1080
|
+
[q.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: "cannot support async function",
|
|
1081
|
+
[q.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
|
|
1051
1082
|
};
|
|
1052
|
-
function
|
|
1053
|
-
return t.locale == null ?
|
|
1083
|
+
function Bt(e, t) {
|
|
1084
|
+
return t.locale == null ? Ht(e.locale) : Ht(t.locale);
|
|
1054
1085
|
}
|
|
1055
|
-
var
|
|
1056
|
-
function
|
|
1086
|
+
var Vt;
|
|
1087
|
+
function Ht(e) {
|
|
1057
1088
|
if (I(e)) return e;
|
|
1058
1089
|
if (F(e)) {
|
|
1059
|
-
if (e.resolvedOnce &&
|
|
1090
|
+
if (e.resolvedOnce && Vt != null) return Vt;
|
|
1060
1091
|
if (e.constructor.name === "Function") {
|
|
1061
1092
|
let t = e();
|
|
1062
|
-
if (
|
|
1063
|
-
return
|
|
1064
|
-
} else throw
|
|
1065
|
-
} else throw
|
|
1093
|
+
if (z(t)) throw J(q.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1094
|
+
return Vt = t;
|
|
1095
|
+
} else throw J(q.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
1096
|
+
} else throw J(q.NOT_SUPPORT_LOCALE_TYPE);
|
|
1066
1097
|
}
|
|
1067
|
-
function
|
|
1068
|
-
return [
|
|
1098
|
+
function Ut(e, t, n) {
|
|
1099
|
+
return [.../* @__PURE__ */ new Set([n, ...P(t) ? t : R(t) ? Object.keys(t) : I(t) ? [t] : [n]])];
|
|
1069
1100
|
}
|
|
1070
|
-
function
|
|
1071
|
-
let r = I(n) ? n :
|
|
1101
|
+
function Wt(e, t, n) {
|
|
1102
|
+
let r = I(n) ? n : sn, i = e;
|
|
1072
1103
|
i.__localeChainCache ||= /* @__PURE__ */ new Map();
|
|
1073
1104
|
let a = i.__localeChainCache.get(r);
|
|
1074
1105
|
if (!a) {
|
|
1075
1106
|
a = [];
|
|
1076
1107
|
let e = [n];
|
|
1077
|
-
for (; P(e);) e =
|
|
1078
|
-
let o = P(t) || !
|
|
1079
|
-
e = I(o) ? [o] : o, P(e) &&
|
|
1108
|
+
for (; P(e);) e = Gt(a, e, t);
|
|
1109
|
+
let o = P(t) || !B(t) ? t : t.default ? t.default : null;
|
|
1110
|
+
e = I(o) ? [o] : o, P(e) && Gt(a, e, !1), i.__localeChainCache.set(r, a);
|
|
1080
1111
|
}
|
|
1081
1112
|
return a;
|
|
1082
1113
|
}
|
|
1083
|
-
function
|
|
1114
|
+
function Gt(e, t, n) {
|
|
1084
1115
|
let r = !0;
|
|
1085
1116
|
for (let i = 0; i < t.length && L(r); i++) {
|
|
1086
1117
|
let a = t[i];
|
|
1087
|
-
I(a) && (r =
|
|
1118
|
+
I(a) && (r = Kt(e, t[i], n));
|
|
1088
1119
|
}
|
|
1089
1120
|
return r;
|
|
1090
1121
|
}
|
|
1091
|
-
function
|
|
1122
|
+
function Kt(e, t, n) {
|
|
1092
1123
|
let r, i = t.split("-");
|
|
1093
1124
|
do
|
|
1094
|
-
r =
|
|
1125
|
+
r = qt(e, i.join("-"), n), i.splice(-1, 1);
|
|
1095
1126
|
while (i.length && r === !0);
|
|
1096
1127
|
return r;
|
|
1097
1128
|
}
|
|
1098
|
-
function
|
|
1129
|
+
function qt(e, t, n) {
|
|
1099
1130
|
let r = !1;
|
|
1100
1131
|
if (!e.includes(t) && (r = !0, t)) {
|
|
1101
1132
|
r = t[t.length - 1] !== "!";
|
|
1102
1133
|
let i = t.replace(/!/g, "");
|
|
1103
|
-
e.push(i), (P(n) ||
|
|
1134
|
+
e.push(i), (P(n) || B(n)) && n[i] && (r = n[i]);
|
|
1104
1135
|
}
|
|
1105
1136
|
return r;
|
|
1106
1137
|
}
|
|
1107
|
-
var
|
|
1108
|
-
|
|
1138
|
+
var Jt = [];
|
|
1139
|
+
Jt[0] = {
|
|
1109
1140
|
w: [0],
|
|
1110
1141
|
i: [3, 0],
|
|
1111
1142
|
"[": [4],
|
|
1112
1143
|
o: [7]
|
|
1113
|
-
},
|
|
1144
|
+
}, Jt[1] = {
|
|
1114
1145
|
w: [1],
|
|
1115
1146
|
".": [2],
|
|
1116
1147
|
"[": [4],
|
|
1117
1148
|
o: [7]
|
|
1118
|
-
},
|
|
1149
|
+
}, Jt[2] = {
|
|
1119
1150
|
w: [2],
|
|
1120
1151
|
i: [3, 0],
|
|
1121
1152
|
0: [3, 0]
|
|
1122
|
-
},
|
|
1153
|
+
}, Jt[3] = {
|
|
1123
1154
|
i: [3, 0],
|
|
1124
1155
|
0: [3, 0],
|
|
1125
1156
|
w: [1, 1],
|
|
1126
1157
|
".": [2, 1],
|
|
1127
1158
|
"[": [4, 1],
|
|
1128
1159
|
o: [7, 1]
|
|
1129
|
-
},
|
|
1160
|
+
}, Jt[4] = {
|
|
1130
1161
|
"'": [5, 0],
|
|
1131
1162
|
"\"": [6, 0],
|
|
1132
1163
|
"[": [4, 2],
|
|
1133
1164
|
"]": [1, 3],
|
|
1134
1165
|
o: 8,
|
|
1135
1166
|
l: [4, 0]
|
|
1136
|
-
},
|
|
1167
|
+
}, Jt[5] = {
|
|
1137
1168
|
"'": [4, 0],
|
|
1138
1169
|
o: 8,
|
|
1139
1170
|
l: [5, 0]
|
|
1140
|
-
},
|
|
1171
|
+
}, Jt[6] = {
|
|
1141
1172
|
"\"": [4, 0],
|
|
1142
1173
|
o: 8,
|
|
1143
1174
|
l: [6, 0]
|
|
1144
1175
|
};
|
|
1145
|
-
var
|
|
1146
|
-
function
|
|
1147
|
-
return
|
|
1176
|
+
var Yt = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1177
|
+
function Xt(e) {
|
|
1178
|
+
return Yt.test(e);
|
|
1148
1179
|
}
|
|
1149
|
-
function
|
|
1180
|
+
function Zt(e) {
|
|
1150
1181
|
let t = e.charCodeAt(0);
|
|
1151
1182
|
return t === e.charCodeAt(e.length - 1) && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1152
1183
|
}
|
|
1153
|
-
function
|
|
1184
|
+
function Qt(e) {
|
|
1154
1185
|
if (e == null) return "o";
|
|
1155
1186
|
switch (e.charCodeAt(0)) {
|
|
1156
1187
|
case 91:
|
|
@@ -1171,11 +1202,11 @@ function Ht(e) {
|
|
|
1171
1202
|
}
|
|
1172
1203
|
return "i";
|
|
1173
1204
|
}
|
|
1174
|
-
function
|
|
1205
|
+
function $t(e) {
|
|
1175
1206
|
let t = e.trim();
|
|
1176
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 :
|
|
1207
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : Xt(t) ? Zt(t) : "*" + t;
|
|
1177
1208
|
}
|
|
1178
|
-
function
|
|
1209
|
+
function en(e) {
|
|
1179
1210
|
let t = [], n = -1, r = 0, i = 0, a, o, s, c, l, u, d, f = [];
|
|
1180
1211
|
f[0] = () => {
|
|
1181
1212
|
o === void 0 ? o = s : o += s;
|
|
@@ -1186,7 +1217,7 @@ function Wt(e) {
|
|
|
1186
1217
|
}, f[3] = () => {
|
|
1187
1218
|
if (i > 0) i--, r = 4, f[0]();
|
|
1188
1219
|
else {
|
|
1189
|
-
if (i = 0, o === void 0 || (o =
|
|
1220
|
+
if (i = 0, o === void 0 || (o = $t(o), o === !1)) return !1;
|
|
1190
1221
|
f[1]();
|
|
1191
1222
|
}
|
|
1192
1223
|
};
|
|
@@ -1195,79 +1226,83 @@ function Wt(e) {
|
|
|
1195
1226
|
if (r === 5 && t === "'" || r === 6 && t === "\"") return n++, s = "\\" + t, f[0](), !0;
|
|
1196
1227
|
}
|
|
1197
1228
|
for (; r !== null;) if (n++, a = e[n], !(a === "\\" && p())) {
|
|
1198
|
-
if (c =
|
|
1229
|
+
if (c = Qt(a), d = Jt[r], l = d[c] || d.l || 8, l === 8 || (r = l[0], l[1] !== void 0 && (u = f[l[1]], u && (s = a, u() === !1)))) return;
|
|
1199
1230
|
if (r === 7) return t;
|
|
1200
1231
|
}
|
|
1201
1232
|
}
|
|
1202
|
-
var
|
|
1203
|
-
function
|
|
1233
|
+
var tn = /* @__PURE__ */ new Map();
|
|
1234
|
+
function nn(e, t) {
|
|
1204
1235
|
return R(e) ? e[t] : null;
|
|
1205
1236
|
}
|
|
1206
|
-
function
|
|
1237
|
+
function rn(e, t) {
|
|
1207
1238
|
if (!R(e)) return null;
|
|
1208
|
-
let n =
|
|
1209
|
-
if (n || (n =
|
|
1239
|
+
let n = tn.get(t);
|
|
1240
|
+
if (n || (n = en(t), n && tn.set(t, n)), !n) return null;
|
|
1210
1241
|
let r = n.length, i = e, a = 0;
|
|
1211
1242
|
for (; a < r;) {
|
|
1212
1243
|
let e = n[a];
|
|
1213
|
-
if (
|
|
1244
|
+
if (St.includes(e) && K(i) || !R(i) || !N(i, e)) return null;
|
|
1214
1245
|
let t = i[e];
|
|
1215
1246
|
if (t === void 0 || F(i)) return null;
|
|
1216
1247
|
i = t, a++;
|
|
1217
1248
|
}
|
|
1218
1249
|
return i;
|
|
1219
1250
|
}
|
|
1220
|
-
var
|
|
1251
|
+
var Y = {
|
|
1221
1252
|
NOT_FOUND_KEY: 1,
|
|
1222
1253
|
FALLBACK_TO_TRANSLATE: 2,
|
|
1223
1254
|
CANNOT_FORMAT_NUMBER: 3,
|
|
1224
1255
|
FALLBACK_TO_NUMBER_FORMAT: 4,
|
|
1225
1256
|
CANNOT_FORMAT_DATE: 5,
|
|
1226
1257
|
FALLBACK_TO_DATE_FORMAT: 6,
|
|
1227
|
-
EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
[
|
|
1232
|
-
[
|
|
1233
|
-
[
|
|
1234
|
-
[
|
|
1235
|
-
[
|
|
1258
|
+
EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7,
|
|
1259
|
+
INVALID_NUMBER_ARGUMENT: 8,
|
|
1260
|
+
INVALID_DATE_ARGUMENT: 9
|
|
1261
|
+
}, an = {
|
|
1262
|
+
[Y.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
|
|
1263
|
+
[Y.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
|
|
1264
|
+
[Y.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
|
|
1265
|
+
[Y.FALLBACK_TO_NUMBER_FORMAT]: "Fall back to number format '{key}' key with '{target}' locale.",
|
|
1266
|
+
[Y.CANNOT_FORMAT_DATE]: "Cannot format a date value due to not supported Intl.DateTimeFormat.",
|
|
1267
|
+
[Y.FALLBACK_TO_DATE_FORMAT]: "Fall back to datetime format '{key}' key with '{target}' locale.",
|
|
1268
|
+
[Y.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]: "This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future.",
|
|
1269
|
+
[Y.INVALID_NUMBER_ARGUMENT]: "Invalid argument for number formatting: expected a number but received '{value}'.",
|
|
1270
|
+
[Y.INVALID_DATE_ARGUMENT]: "Invalid argument for datetime formatting: expected a Date, number, or ISO string but received '{value}'."
|
|
1236
1271
|
};
|
|
1237
|
-
function
|
|
1238
|
-
return
|
|
1272
|
+
function X(e, ...t) {
|
|
1273
|
+
return C(an[e], ...t);
|
|
1239
1274
|
}
|
|
1240
|
-
var
|
|
1241
|
-
function
|
|
1275
|
+
var on = "11.4.6", sn = "en-US", cn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1276
|
+
function ln() {
|
|
1242
1277
|
return {
|
|
1243
1278
|
upper: (e, t) => t === "text" && I(e) ? e.toUpperCase() : t === "vnode" && R(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1244
1279
|
lower: (e, t) => t === "text" && I(e) ? e.toLowerCase() : t === "vnode" && R(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1245
|
-
capitalize: (e, t) => t === "text" && I(e) ?
|
|
1280
|
+
capitalize: (e, t) => t === "text" && I(e) ? cn(e) : t === "vnode" && R(e) && "__v_isVNode" in e ? cn(e.children) : e
|
|
1246
1281
|
};
|
|
1247
1282
|
}
|
|
1248
|
-
var
|
|
1249
|
-
function
|
|
1250
|
-
|
|
1251
|
-
}
|
|
1252
|
-
var
|
|
1253
|
-
function
|
|
1254
|
-
|
|
1255
|
-
}
|
|
1256
|
-
var
|
|
1257
|
-
function
|
|
1258
|
-
|
|
1259
|
-
}
|
|
1260
|
-
var
|
|
1261
|
-
|
|
1262
|
-
},
|
|
1263
|
-
function
|
|
1264
|
-
let t = F(e.onWarn) ? e.onWarn :
|
|
1265
|
-
n.env.NODE_ENV !== "production" && F(e.messageCompiler) &&
|
|
1266
|
-
let w = F(e.messageResolver) ? e.messageResolver :
|
|
1267
|
-
|
|
1268
|
-
let
|
|
1283
|
+
var un;
|
|
1284
|
+
function dn(e) {
|
|
1285
|
+
un = e;
|
|
1286
|
+
}
|
|
1287
|
+
var fn;
|
|
1288
|
+
function pn(e) {
|
|
1289
|
+
fn = e;
|
|
1290
|
+
}
|
|
1291
|
+
var mn;
|
|
1292
|
+
function hn(e) {
|
|
1293
|
+
mn = e;
|
|
1294
|
+
}
|
|
1295
|
+
var gn = null, _n = /* @__NO_SIDE_EFFECTS__ */ () => gn, vn = null, yn = (e) => {
|
|
1296
|
+
vn = e;
|
|
1297
|
+
}, bn = () => vn, xn = 0;
|
|
1298
|
+
function Sn(e = {}) {
|
|
1299
|
+
let t = F(e.onWarn) ? e.onWarn : g, r = I(e.version) ? e.version : on, i = I(e.locale) || F(e.locale) ? e.locale : sn, a = F(i) ? sn : i, o = P(e.fallbackLocale) || B(e.fallbackLocale) || I(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, s = B(e.messages) ? e.messages : Cn(a), c = B(e.datetimeFormats) ? e.datetimeFormats : Cn(a), l = B(e.numberFormats) ? e.numberFormats : Cn(a), u = k(A(), e.modifiers, ln()), d = e.pluralRules || A(), f = F(e.missing) ? e.missing : null, p = L(e.missingWarn) || ee(e.missingWarn) ? e.missingWarn : !0, m = L(e.fallbackWarn) || ee(e.fallbackWarn) ? e.fallbackWarn : !0, h = !!e.fallbackFormat, _ = !!e.unresolving, y = F(e.postTranslation) ? e.postTranslation : null, b = B(e.processor) ? e.processor : null, x = L(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, S = !!e.escapeParameter, C = F(e.messageCompiler) ? e.messageCompiler : un;
|
|
1300
|
+
n.env.NODE_ENV !== "production" && F(e.messageCompiler) && v(X(Y.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
1301
|
+
let w = F(e.messageResolver) ? e.messageResolver : fn || nn, T = F(e.localeFallbacker) ? e.localeFallbacker : mn || Ut, E = R(e.fallbackContext) ? e.fallbackContext : void 0, D = e, O = R(D.__datetimeFormatters) ? D.__datetimeFormatters : /* @__PURE__ */ new Map(), te = R(D.__numberFormatters) ? D.__numberFormatters : /* @__PURE__ */ new Map(), ne = R(D.__meta) ? D.__meta : {};
|
|
1302
|
+
xn++;
|
|
1303
|
+
let j = {
|
|
1269
1304
|
version: r,
|
|
1270
|
-
cid:
|
|
1305
|
+
cid: xn,
|
|
1271
1306
|
locale: i,
|
|
1272
1307
|
fallbackLocale: o,
|
|
1273
1308
|
messages: s,
|
|
@@ -1275,9 +1310,9 @@ function pn(e = {}) {
|
|
|
1275
1310
|
pluralRules: d,
|
|
1276
1311
|
missing: f,
|
|
1277
1312
|
missingWarn: p,
|
|
1278
|
-
fallbackWarn:
|
|
1279
|
-
fallbackFormat:
|
|
1280
|
-
unresolving:
|
|
1313
|
+
fallbackWarn: m,
|
|
1314
|
+
fallbackFormat: h,
|
|
1315
|
+
unresolving: _,
|
|
1281
1316
|
postTranslation: y,
|
|
1282
1317
|
processor: b,
|
|
1283
1318
|
warnHtmlMessage: x,
|
|
@@ -1287,18 +1322,18 @@ function pn(e = {}) {
|
|
|
1287
1322
|
localeFallbacker: T,
|
|
1288
1323
|
fallbackContext: E,
|
|
1289
1324
|
onWarn: t,
|
|
1290
|
-
__meta:
|
|
1325
|
+
__meta: ne
|
|
1291
1326
|
};
|
|
1292
|
-
return
|
|
1327
|
+
return j.datetimeFormats = c, j.numberFormats = l, j.__datetimeFormatters = O, j.__numberFormatters = te, n.env.NODE_ENV !== "production" && (j.__v_emitter = D.__v_emitter == null ? void 0 : D.__v_emitter), (n.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && It(j, r, ne), j;
|
|
1293
1328
|
}
|
|
1294
|
-
var
|
|
1295
|
-
function
|
|
1329
|
+
var Cn = (e) => ({ [e]: A() });
|
|
1330
|
+
function wn(e, t) {
|
|
1296
1331
|
return e instanceof RegExp ? e.test(t) : e;
|
|
1297
1332
|
}
|
|
1298
|
-
function
|
|
1333
|
+
function Tn(e, t) {
|
|
1299
1334
|
return e instanceof RegExp ? e.test(t) : e;
|
|
1300
1335
|
}
|
|
1301
|
-
function
|
|
1336
|
+
function En(e, t, r, i, a) {
|
|
1302
1337
|
let { missing: o, onWarn: s } = e;
|
|
1303
1338
|
if (n.env.NODE_ENV !== "production") {
|
|
1304
1339
|
let n = e.__v_emitter;
|
|
@@ -1312,36 +1347,40 @@ function _n(e, t, r, i, a) {
|
|
|
1312
1347
|
if (o !== null) {
|
|
1313
1348
|
let n = o(e, r, t, a);
|
|
1314
1349
|
return I(n) ? n : t;
|
|
1315
|
-
} else return n.env.NODE_ENV !== "production" &&
|
|
1350
|
+
} else return n.env.NODE_ENV !== "production" && Tn(i, t) && s(X(Y.NOT_FOUND_KEY, {
|
|
1316
1351
|
key: t,
|
|
1317
1352
|
locale: r
|
|
1318
1353
|
})), t;
|
|
1319
1354
|
}
|
|
1320
|
-
function
|
|
1355
|
+
function Dn(e, t, n) {
|
|
1321
1356
|
let r = e;
|
|
1322
1357
|
r.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
1323
1358
|
}
|
|
1324
|
-
function
|
|
1359
|
+
function On(e, t) {
|
|
1325
1360
|
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
1326
1361
|
}
|
|
1327
|
-
function
|
|
1362
|
+
function kn(e, t) {
|
|
1328
1363
|
let n = t.indexOf(e);
|
|
1329
1364
|
if (n === -1) return !1;
|
|
1330
|
-
for (let r = n + 1; r < t.length; r++) if (
|
|
1365
|
+
for (let r = n + 1; r < t.length; r++) if (On(e, t[r])) return !0;
|
|
1331
1366
|
return !1;
|
|
1332
1367
|
}
|
|
1333
|
-
var
|
|
1334
|
-
dateTimeFormat:
|
|
1335
|
-
numberFormat:
|
|
1368
|
+
var An = typeof Intl < "u", jn = {
|
|
1369
|
+
dateTimeFormat: An && Intl.DateTimeFormat !== void 0,
|
|
1370
|
+
numberFormat: An && Intl.NumberFormat !== void 0
|
|
1336
1371
|
};
|
|
1337
|
-
function
|
|
1372
|
+
function Mn(e, ...t) {
|
|
1338
1373
|
let { datetimeFormats: r, unresolving: i, fallbackLocale: a, onWarn: o, localeFallbacker: s } = e, { __datetimeFormatters: c } = e;
|
|
1339
|
-
if (n.env.NODE_ENV !== "production" && !
|
|
1340
|
-
|
|
1341
|
-
|
|
1374
|
+
if (n.env.NODE_ENV !== "production" && !jn.dateTimeFormat) return o(X(Y.CANNOT_FORMAT_DATE)), "";
|
|
1375
|
+
if (!I(t[0]) && !O(t[0]) && !D(t[0])) return n.env.NODE_ENV !== "production" && o(X(Y.INVALID_DATE_ARGUMENT, { value: String(t[0]) })), "";
|
|
1376
|
+
let [l, u, d, f] = Pn(...t), p = L(d.missingWarn) ? d.missingWarn : e.missingWarn, m = L(d.fallbackWarn) ? d.fallbackWarn : e.fallbackWarn, h = !!d.part, g = Bt(e, d), _ = s(e, a, g);
|
|
1377
|
+
if (!I(l) || l === "") {
|
|
1378
|
+
let e = new Intl.DateTimeFormat(g.replace(/!/g, ""), f);
|
|
1379
|
+
return h ? e.formatToParts(u) : e.format(u);
|
|
1380
|
+
}
|
|
1342
1381
|
let v = {}, y, b = null, x = g, S = null, C = "datetime format";
|
|
1343
1382
|
for (let t = 0; t < _.length; t++) {
|
|
1344
|
-
if (y = S = _[t], n.env.NODE_ENV !== "production" && g !== y &&
|
|
1383
|
+
if (y = S = _[t], n.env.NODE_ENV !== "production" && g !== y && wn(m, l) && o(X(Y.FALLBACK_TO_DATE_FORMAT, {
|
|
1345
1384
|
key: l,
|
|
1346
1385
|
target: y
|
|
1347
1386
|
})), n.env.NODE_ENV !== "production" && g !== y) {
|
|
@@ -1354,16 +1393,16 @@ function Cn(e, ...t) {
|
|
|
1354
1393
|
groupId: `${C}:${l}`
|
|
1355
1394
|
});
|
|
1356
1395
|
}
|
|
1357
|
-
if (v = r[y] || {}, b = v[l],
|
|
1358
|
-
|
|
1396
|
+
if (v = r[y] || {}, b = v[l], B(b)) break;
|
|
1397
|
+
En(e, l, y, p, C), x = S;
|
|
1359
1398
|
}
|
|
1360
|
-
if (!
|
|
1399
|
+
if (!B(b) || !I(y)) return i ? -1 : l;
|
|
1361
1400
|
let w = `${y}__${l}`;
|
|
1362
|
-
|
|
1401
|
+
te(f) || (w = `${w}__${JSON.stringify(f)}`);
|
|
1363
1402
|
let T = c.get(w);
|
|
1364
1403
|
return T || (T = new Intl.DateTimeFormat(y, k({}, b, f)), c.set(w, T)), h ? T.formatToParts(u) : T.format(u);
|
|
1365
1404
|
}
|
|
1366
|
-
var
|
|
1405
|
+
var Nn = [
|
|
1367
1406
|
"localeMatcher",
|
|
1368
1407
|
"weekday",
|
|
1369
1408
|
"era",
|
|
@@ -1385,47 +1424,51 @@ var wn = [
|
|
|
1385
1424
|
"hourCycle",
|
|
1386
1425
|
"fractionalSecondDigits"
|
|
1387
1426
|
];
|
|
1388
|
-
function
|
|
1427
|
+
function Pn(...e) {
|
|
1389
1428
|
let [t, n, r, i] = e, a = A(), o = A(), s;
|
|
1390
1429
|
if (I(t)) {
|
|
1391
1430
|
let e = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1392
|
-
if (!e) throw
|
|
1431
|
+
if (!e) throw J(q.INVALID_ISO_DATE_ARGUMENT);
|
|
1393
1432
|
let n = e[3] ? e[3].trim().startsWith("T") ? `${e[1].trim()}${e[3].trim()}` : `${e[1].trim()}T${e[3].trim()}` : e[1].trim();
|
|
1394
1433
|
s = new Date(n);
|
|
1395
1434
|
try {
|
|
1396
1435
|
s.toISOString();
|
|
1397
1436
|
} catch {
|
|
1398
|
-
throw
|
|
1437
|
+
throw J(q.INVALID_ISO_DATE_ARGUMENT);
|
|
1399
1438
|
}
|
|
1400
|
-
} else if (
|
|
1401
|
-
if (isNaN(t.getTime())) throw
|
|
1439
|
+
} else if (O(t)) {
|
|
1440
|
+
if (isNaN(t.getTime())) throw J(q.INVALID_DATE_ARGUMENT);
|
|
1402
1441
|
s = t;
|
|
1403
|
-
} else if (
|
|
1404
|
-
else throw
|
|
1405
|
-
return I(n) ? a.key = n :
|
|
1406
|
-
|
|
1407
|
-
}), I(r) ? a.locale = r :
|
|
1442
|
+
} else if (D(t)) s = t;
|
|
1443
|
+
else throw J(q.INVALID_ARGUMENT);
|
|
1444
|
+
return I(n) ? a.key = n : B(n) && Object.keys(n).forEach((e) => {
|
|
1445
|
+
Nn.includes(e) ? o[e] = n[e] : a[e] = n[e];
|
|
1446
|
+
}), I(r) ? a.locale = r : B(r) && (o = r), B(i) && (o = i), [
|
|
1408
1447
|
a.key || "",
|
|
1409
1448
|
s,
|
|
1410
1449
|
a,
|
|
1411
1450
|
o
|
|
1412
1451
|
];
|
|
1413
1452
|
}
|
|
1414
|
-
function
|
|
1453
|
+
function Fn(e, t, n) {
|
|
1415
1454
|
let r = e;
|
|
1416
1455
|
for (let e in n) {
|
|
1417
1456
|
let n = `${t}__${e}`;
|
|
1418
1457
|
r.__datetimeFormatters.has(n) && r.__datetimeFormatters.delete(n);
|
|
1419
1458
|
}
|
|
1420
1459
|
}
|
|
1421
|
-
function
|
|
1460
|
+
function In(e, ...t) {
|
|
1422
1461
|
let { numberFormats: r, unresolving: i, fallbackLocale: a, onWarn: o, localeFallbacker: s } = e, { __numberFormatters: c } = e;
|
|
1423
|
-
if (n.env.NODE_ENV !== "production" && !
|
|
1424
|
-
|
|
1425
|
-
|
|
1462
|
+
if (n.env.NODE_ENV !== "production" && !jn.numberFormat) return o(X(Y.CANNOT_FORMAT_NUMBER)), "";
|
|
1463
|
+
if (!D(t[0])) return n.env.NODE_ENV !== "production" && o(X(Y.INVALID_NUMBER_ARGUMENT, { value: String(t[0]) })), "";
|
|
1464
|
+
let [l, u, d, f] = Rn(...t), p = L(d.missingWarn) ? d.missingWarn : e.missingWarn, m = L(d.fallbackWarn) ? d.fallbackWarn : e.fallbackWarn, h = !!d.part, g = Bt(e, d), _ = s(e, a, g);
|
|
1465
|
+
if (!I(l) || l === "") {
|
|
1466
|
+
let e = new Intl.NumberFormat(g.replace(/!/g, ""), f);
|
|
1467
|
+
return h ? e.formatToParts(u) : e.format(u);
|
|
1468
|
+
}
|
|
1426
1469
|
let v = {}, y, b = null, x = g, S = null, C = "number format";
|
|
1427
1470
|
for (let t = 0; t < _.length; t++) {
|
|
1428
|
-
if (y = S = _[t], n.env.NODE_ENV !== "production" && g !== y &&
|
|
1471
|
+
if (y = S = _[t], n.env.NODE_ENV !== "production" && g !== y && wn(m, l) && o(X(Y.FALLBACK_TO_NUMBER_FORMAT, {
|
|
1429
1472
|
key: l,
|
|
1430
1473
|
target: y
|
|
1431
1474
|
})), n.env.NODE_ENV !== "production" && g !== y) {
|
|
@@ -1438,16 +1481,16 @@ function Dn(e, ...t) {
|
|
|
1438
1481
|
groupId: `${C}:${l}`
|
|
1439
1482
|
});
|
|
1440
1483
|
}
|
|
1441
|
-
if (v = r[y] || {}, b = v[l],
|
|
1442
|
-
|
|
1484
|
+
if (v = r[y] || {}, b = v[l], B(b)) break;
|
|
1485
|
+
En(e, l, y, p, C), x = S;
|
|
1443
1486
|
}
|
|
1444
|
-
if (!
|
|
1487
|
+
if (!B(b) || !I(y)) return i ? -1 : l;
|
|
1445
1488
|
let w = `${y}__${l}`;
|
|
1446
|
-
|
|
1489
|
+
te(f) || (w = `${w}__${JSON.stringify(f)}`);
|
|
1447
1490
|
let T = c.get(w);
|
|
1448
1491
|
return T || (T = new Intl.NumberFormat(y, k({}, b, f)), c.set(w, T)), h ? T.formatToParts(u) : T.format(u);
|
|
1449
1492
|
}
|
|
1450
|
-
var
|
|
1493
|
+
var Ln = [
|
|
1451
1494
|
"localeMatcher",
|
|
1452
1495
|
"style",
|
|
1453
1496
|
"currency",
|
|
@@ -1469,79 +1512,76 @@ var On = [
|
|
|
1469
1512
|
"roundingIncrement",
|
|
1470
1513
|
"trailingZeroDisplay"
|
|
1471
1514
|
];
|
|
1472
|
-
function
|
|
1515
|
+
function Rn(...e) {
|
|
1473
1516
|
let [t, n, r, i] = e, a = A(), o = A();
|
|
1474
|
-
if (!
|
|
1517
|
+
if (!D(t)) throw J(q.INVALID_ARGUMENT);
|
|
1475
1518
|
let s = t;
|
|
1476
|
-
return I(n) ? a.key = n :
|
|
1477
|
-
|
|
1478
|
-
}), I(r) ? a.locale = r :
|
|
1519
|
+
return I(n) ? a.key = n : B(n) && Object.keys(n).forEach((e) => {
|
|
1520
|
+
Ln.includes(e) ? o[e] = n[e] : a[e] = n[e];
|
|
1521
|
+
}), I(r) ? a.locale = r : B(r) && (o = r), B(i) && (o = i), [
|
|
1479
1522
|
a.key || "",
|
|
1480
1523
|
s,
|
|
1481
1524
|
a,
|
|
1482
1525
|
o
|
|
1483
1526
|
];
|
|
1484
1527
|
}
|
|
1485
|
-
function
|
|
1528
|
+
function zn(e, t, n) {
|
|
1486
1529
|
let r = e;
|
|
1487
1530
|
for (let e in n) {
|
|
1488
1531
|
let n = `${t}__${e}`;
|
|
1489
1532
|
r.__numberFormatters.has(n) && r.__numberFormatters.delete(n);
|
|
1490
1533
|
}
|
|
1491
1534
|
}
|
|
1492
|
-
var
|
|
1493
|
-
function
|
|
1494
|
-
return e = Math.abs(e), t === 2 ? e
|
|
1535
|
+
var Bn = (e) => e, Vn = (e) => "", Hn = "text", Un = (e) => e.length === 0 ? "" : he(e), Wn = me;
|
|
1536
|
+
function Gn(e, t) {
|
|
1537
|
+
return e = Math.abs(e), t === 2 ? e === 1 ? 0 : 1 : Math.min(e, 2);
|
|
1495
1538
|
}
|
|
1496
|
-
function
|
|
1497
|
-
let t =
|
|
1498
|
-
return
|
|
1539
|
+
function Kn(e) {
|
|
1540
|
+
let t = D(e.pluralIndex) ? e.pluralIndex : -1;
|
|
1541
|
+
return D(e.named?.count) ? e.named.count : D(e.named?.n) ? e.named.n : t;
|
|
1499
1542
|
}
|
|
1500
|
-
function
|
|
1501
|
-
t.
|
|
1502
|
-
|
|
1503
|
-
function zn(e = {}) {
|
|
1504
|
-
let t = e.locale, n = Ln(e), r = R(e.pluralRules) && I(t) && F(e.pluralRules[t]) ? e.pluralRules[t] : In, i = R(e.pluralRules) && I(t) && F(e.pluralRules[t]) ? In : void 0, a = (e) => e[r(n, e.length, i)], o = e.list || [], s = (e) => o[e], c = e.named || A();
|
|
1505
|
-
T(e.pluralIndex) && Rn(n, c);
|
|
1543
|
+
function qn(e = {}) {
|
|
1544
|
+
let t = e.locale, n = Kn(e), r = I(t) && F(e.pluralRules?.[t]) ? e.pluralRules[t] : Gn, i = r === Gn ? void 0 : Gn, a = (e) => e[r(n, e.length, i)], o = e.list || [], s = (e) => o[e], c = e.named || A();
|
|
1545
|
+
D(e.pluralIndex) && (c.count ||= e.pluralIndex, c.n ||= e.pluralIndex);
|
|
1506
1546
|
let l = (e) => c[e];
|
|
1507
1547
|
function u(t, n) {
|
|
1508
|
-
return (F(e.messages) ? e.messages(t, !!n) : R(e.messages) ? e.messages[t] : !1) || (e.parent ? e.parent.message(t) :
|
|
1548
|
+
return (F(e.messages) ? e.messages(t, !!n) : R(e.messages) ? e.messages[t] : !1) || (e.parent ? e.parent.message(t) : Vn);
|
|
1509
1549
|
}
|
|
1510
|
-
let d = (t) => e.modifiers ? e.modifiers[t] :
|
|
1550
|
+
let d = (t) => e.modifiers ? e.modifiers[t] : Bn, f = F(e.processor?.normalize) ? e.processor.normalize : Un, p = F(e.processor?.interpolate) ? e.processor.interpolate : Wn, m = {
|
|
1511
1551
|
list: s,
|
|
1512
1552
|
named: l,
|
|
1513
1553
|
plural: a,
|
|
1514
1554
|
linked: (e, ...t) => {
|
|
1515
1555
|
let [n, r] = t, i = "text", a = "";
|
|
1516
1556
|
t.length === 1 ? R(n) ? (a = n.modifier || a, i = n.type || i) : I(n) && (a = n || a) : t.length === 2 && (I(n) && (a = n || a), I(r) && (i = r || i));
|
|
1517
|
-
let o = u(e, !0)(m), s = i === "vnode" && P(
|
|
1518
|
-
return a ? d(a)(
|
|
1557
|
+
let o = u(e, !0)(m), s = o === "" || o === void 0 ? e : o, c = i === "vnode" && P(s) && a ? s[0] : s;
|
|
1558
|
+
return a ? d(a)(c, i) : c;
|
|
1519
1559
|
},
|
|
1520
1560
|
message: u,
|
|
1521
|
-
type:
|
|
1561
|
+
type: I(e.processor?.type) ? e.processor.type : Hn,
|
|
1522
1562
|
interpolate: p,
|
|
1523
1563
|
normalize: f,
|
|
1524
1564
|
values: k(A(), o, c)
|
|
1525
1565
|
};
|
|
1526
1566
|
return m;
|
|
1527
1567
|
}
|
|
1528
|
-
var
|
|
1529
|
-
function
|
|
1530
|
-
let { fallbackFormat: r, postTranslation: i, unresolving: a, messageCompiler: o, fallbackLocale: s, messages: c } = e, [l, u] =
|
|
1531
|
-
p &&
|
|
1532
|
-
let [y, b, x] =
|
|
1568
|
+
var Jn = () => "", Z = (e) => F(e);
|
|
1569
|
+
function Yn(e, ...t) {
|
|
1570
|
+
let { fallbackFormat: r, postTranslation: i, unresolving: a, messageCompiler: o, fallbackLocale: s, messages: c } = e, [l, u] = er(...t), d = L(u.missingWarn) ? u.missingWarn : e.missingWarn, f = L(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn, p = L(u.escapeParameter) ? u.escapeParameter : e.escapeParameter, m = !!u.resolvedMessage, h = I(u.default) || L(u.default) ? L(u.default) ? o ? l : () => l : u.default : r ? o ? l : () => l : null, _ = r || h != null && (I(h) || F(h)), v = Bt(e, u);
|
|
1571
|
+
p && Xn(u);
|
|
1572
|
+
let [y, b, x] = m ? [
|
|
1533
1573
|
l,
|
|
1534
1574
|
v,
|
|
1535
1575
|
c[v] || A()
|
|
1536
|
-
] :
|
|
1537
|
-
if (!
|
|
1538
|
-
if (n.env.NODE_ENV !== "production" && I(S) && e.messageCompiler == null) return
|
|
1539
|
-
let w = !1, T = Z(S) ? S :
|
|
1576
|
+
] : Zn(e, l, v, s, f, d), S = y, C = l;
|
|
1577
|
+
if (!m && !(I(S) || K(S) || Z(S)) && _ && (S = h, C = S), !m && (!(I(S) || K(S) || Z(S)) || !I(b))) return a ? -1 : l;
|
|
1578
|
+
if (n.env.NODE_ENV !== "production" && I(S) && e.messageCompiler == null) return g(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${l}'.`), l;
|
|
1579
|
+
let w = !1, T = Z(S) ? S : Qn(e, l, b, S, C, () => {
|
|
1540
1580
|
w = !0;
|
|
1541
1581
|
});
|
|
1542
1582
|
if (w) return S;
|
|
1543
|
-
let E =
|
|
1544
|
-
if (p && I(D) && (D =
|
|
1583
|
+
let E = $n(e, T, qn(rr(e, b, x, u))), D = i ? i(E, l) : E;
|
|
1584
|
+
if (p && I(D) && (D = ue(D)), n.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
1545
1585
|
let t = {
|
|
1546
1586
|
timestamp: Date.now(),
|
|
1547
1587
|
key: I(l) ? l : Z(S) ? S.key : "",
|
|
@@ -1549,46 +1589,44 @@ function Vn(e, ...t) {
|
|
|
1549
1589
|
format: I(S) ? S : Z(S) ? S.source : "",
|
|
1550
1590
|
message: D
|
|
1551
1591
|
};
|
|
1552
|
-
t.meta = k({}, e.__meta, /* @__PURE__ */
|
|
1592
|
+
t.meta = k({}, e.__meta, /* @__PURE__ */ _n() || {}), Lt(t);
|
|
1553
1593
|
}
|
|
1554
1594
|
return D;
|
|
1555
1595
|
}
|
|
1556
|
-
function
|
|
1557
|
-
P(e.list) ? e.list = e.list.map((e) => I(e) ?
|
|
1558
|
-
I(e.named[t]) && (e.named[t] =
|
|
1596
|
+
function Xn(e) {
|
|
1597
|
+
P(e.list) ? e.list = e.list.map((e) => I(e) ? re(e) : e) : R(e.named) && Object.keys(e.named).forEach((t) => {
|
|
1598
|
+
I(e.named[t]) && (e.named[t] = re(e.named[t]));
|
|
1559
1599
|
});
|
|
1560
1600
|
}
|
|
1561
|
-
function
|
|
1562
|
-
let { messages: s, onWarn: c, messageResolver: l, localeFallbacker: u } = e, d = u(e, i, r), f = A(), p, m = null, h = r, g = null,
|
|
1601
|
+
function Zn(e, t, r, i, a, o) {
|
|
1602
|
+
let { messages: s, onWarn: c, messageResolver: l, localeFallbacker: u } = e, d = u(e, i, r), f = A(), p, m = null, h = r, g = null, _ = "translate";
|
|
1563
1603
|
for (let i = 0; i < d.length; i++) {
|
|
1564
|
-
|
|
1604
|
+
p = g = d[i], n.env.NODE_ENV !== "production" && r !== p && !On(r, p) && wn(a, t) && c(X(Y.FALLBACK_TO_TRANSLATE, {
|
|
1565
1605
|
key: t,
|
|
1566
1606
|
target: p
|
|
1567
|
-
}))
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
f =
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
let n = window.performance.now(), r = e.__v_emitter;
|
|
1581
|
-
r && u && m && r.emit("message-resolve", {
|
|
1607
|
+
}));
|
|
1608
|
+
let u = n.env.NODE_ENV === "production" ? void 0 : e.__v_emitter;
|
|
1609
|
+
n.env.NODE_ENV !== "production" && r !== p && u && u.emit("fallback", {
|
|
1610
|
+
type: _,
|
|
1611
|
+
key: t,
|
|
1612
|
+
from: h,
|
|
1613
|
+
to: g,
|
|
1614
|
+
groupId: `${_}:${t}`
|
|
1615
|
+
}), f = s[p] || A();
|
|
1616
|
+
let v = null, S, C;
|
|
1617
|
+
if (n.env.NODE_ENV !== "production" && y && u && (v = window.performance.now(), S = "intlify-message-resolve-start", C = "intlify-message-resolve-end", b && b(S)), (m = l(f, t)) === null && (m = f[t]), n.env.NODE_ENV !== "production" && y && u) {
|
|
1618
|
+
let e = window.performance.now();
|
|
1619
|
+
u && v && m && u.emit("message-resolve", {
|
|
1582
1620
|
type: "message-resolve",
|
|
1583
1621
|
key: t,
|
|
1584
1622
|
message: m,
|
|
1585
|
-
time:
|
|
1586
|
-
groupId: `${
|
|
1587
|
-
}),
|
|
1623
|
+
time: e - v,
|
|
1624
|
+
groupId: `${_}:${t}`
|
|
1625
|
+
}), S && C && b && x && (b(C), x("intlify message resolve", S, C));
|
|
1588
1626
|
}
|
|
1589
|
-
if (I(m) ||
|
|
1590
|
-
if (!
|
|
1591
|
-
let n =
|
|
1627
|
+
if (I(m) || K(m) || Z(m)) break;
|
|
1628
|
+
if (!kn(p, d)) {
|
|
1629
|
+
let n = En(e, t, p, o, _);
|
|
1592
1630
|
n !== t && (m = n);
|
|
1593
1631
|
}
|
|
1594
1632
|
h = g;
|
|
@@ -1599,7 +1637,7 @@ function Un(e, t, r, i, a, o) {
|
|
|
1599
1637
|
f
|
|
1600
1638
|
];
|
|
1601
1639
|
}
|
|
1602
|
-
function
|
|
1640
|
+
function Qn(e, t, r, i, a, o) {
|
|
1603
1641
|
let { messageCompiler: s, warnHtmlMessage: c } = e;
|
|
1604
1642
|
if (Z(i)) {
|
|
1605
1643
|
let e = i;
|
|
@@ -1609,66 +1647,69 @@ function Wn(e, t, r, i, a, o) {
|
|
|
1609
1647
|
let e = (() => i);
|
|
1610
1648
|
return e.locale = r, e.key = t, e;
|
|
1611
1649
|
}
|
|
1612
|
-
let l =
|
|
1613
|
-
n.env.NODE_ENV !== "production" &&
|
|
1614
|
-
let
|
|
1615
|
-
if (n.env.NODE_ENV !== "production" &&
|
|
1616
|
-
let
|
|
1617
|
-
|
|
1650
|
+
let l = n.env.NODE_ENV === "production" ? void 0 : e.__v_emitter, u = null, d, f;
|
|
1651
|
+
n.env.NODE_ENV !== "production" && y && l && (u = window.performance.now(), d = "intlify-message-compilation-start", f = "intlify-message-compilation-end", b && b(d));
|
|
1652
|
+
let p = s(i, tr(e, r, a, i, c, o));
|
|
1653
|
+
if (n.env.NODE_ENV !== "production" && y && l) {
|
|
1654
|
+
let e = window.performance.now();
|
|
1655
|
+
l && u && l.emit("message-compilation", {
|
|
1618
1656
|
type: "message-compilation",
|
|
1619
1657
|
message: i,
|
|
1620
|
-
time:
|
|
1658
|
+
time: e - u,
|
|
1621
1659
|
groupId: `translate:${t}`
|
|
1622
|
-
}),
|
|
1660
|
+
}), d && f && b && x && (b(f), x("intlify message compilation", d, f));
|
|
1623
1661
|
}
|
|
1624
|
-
return
|
|
1662
|
+
return p.locale = r, p.key = t, p.source = i, p;
|
|
1625
1663
|
}
|
|
1626
|
-
function
|
|
1627
|
-
let i =
|
|
1628
|
-
n.env.NODE_ENV !== "production" &&
|
|
1629
|
-
let
|
|
1630
|
-
if (n.env.NODE_ENV !== "production" &&
|
|
1631
|
-
let
|
|
1632
|
-
|
|
1664
|
+
function $n(e, t, r) {
|
|
1665
|
+
let i = n.env.NODE_ENV === "production" ? void 0 : e.__v_emitter, a = null, o, s;
|
|
1666
|
+
n.env.NODE_ENV !== "production" && y && i && (a = window.performance.now(), o = "intlify-message-evaluation-start", s = "intlify-message-evaluation-end", b && b(o));
|
|
1667
|
+
let c = t(r);
|
|
1668
|
+
if (n.env.NODE_ENV !== "production" && y && i) {
|
|
1669
|
+
let e = window.performance.now();
|
|
1670
|
+
i && a && i.emit("message-evaluation", {
|
|
1633
1671
|
type: "message-evaluation",
|
|
1634
|
-
value:
|
|
1635
|
-
time:
|
|
1672
|
+
value: c,
|
|
1673
|
+
time: e - a,
|
|
1636
1674
|
groupId: `translate:${t.key}`
|
|
1637
|
-
}),
|
|
1675
|
+
}), o && s && b && x && (b(s), x("intlify message evaluation", o, s));
|
|
1638
1676
|
}
|
|
1639
|
-
return
|
|
1677
|
+
return c;
|
|
1640
1678
|
}
|
|
1641
|
-
function
|
|
1679
|
+
function er(...e) {
|
|
1642
1680
|
let [t, n, r] = e, i = A();
|
|
1643
|
-
if (!I(t) && !
|
|
1644
|
-
let a =
|
|
1645
|
-
return
|
|
1681
|
+
if (!I(t) && !D(t) && !Z(t) && !K(t)) throw J(q.INVALID_ARGUMENT);
|
|
1682
|
+
let a = D(t) ? String(t) : (Z(t), t);
|
|
1683
|
+
return D(n) ? i.plural = n : I(n) ? i.default = n : B(n) && !te(n) ? i.named = n : P(n) && (i.list = n), D(r) ? i.plural = r : I(r) ? i.default = r : B(r) && k(i, r), [a, i];
|
|
1646
1684
|
}
|
|
1647
|
-
function
|
|
1685
|
+
function tr(e, t, r, i, a, o) {
|
|
1648
1686
|
return {
|
|
1649
1687
|
locale: t,
|
|
1650
1688
|
key: r,
|
|
1651
1689
|
warnHtmlMessage: a,
|
|
1652
1690
|
onError: (t) => {
|
|
1653
1691
|
if (o && o(t), n.env.NODE_ENV !== "production") {
|
|
1654
|
-
let n =
|
|
1655
|
-
|
|
1692
|
+
let n = nr(i), a = t.location && n && _e(n, t.location.start.offset, t.location.end.offset), o = e.__v_emitter;
|
|
1693
|
+
o && n && o.emit("compile-error", {
|
|
1656
1694
|
message: n,
|
|
1657
1695
|
error: t.message,
|
|
1658
1696
|
start: t.location && t.location.start.offset,
|
|
1659
1697
|
end: t.location && t.location.end.offset,
|
|
1660
1698
|
groupId: `translate:${r}`
|
|
1661
|
-
})
|
|
1662
|
-
|
|
1699
|
+
});
|
|
1700
|
+
let s = `Message compilation error: ${t.message}`;
|
|
1701
|
+
throw SyntaxError(a ? `${s}\n${a}` : s);
|
|
1702
|
+
}
|
|
1703
|
+
throw t;
|
|
1663
1704
|
},
|
|
1664
|
-
onCacheKey: (e) =>
|
|
1705
|
+
onCacheKey: (e) => T(t, r, e)
|
|
1665
1706
|
};
|
|
1666
1707
|
}
|
|
1667
|
-
function
|
|
1708
|
+
function nr(e) {
|
|
1668
1709
|
if (I(e)) return e;
|
|
1669
1710
|
if (e.loc && e.loc.source) return e.loc.source;
|
|
1670
1711
|
}
|
|
1671
|
-
function
|
|
1712
|
+
function rr(e, t, n, r) {
|
|
1672
1713
|
let { modifiers: i, pluralRules: a, messageResolver: o, fallbackLocale: s, fallbackWarn: c, missingWarn: l, fallbackContext: u } = e, d = {
|
|
1673
1714
|
locale: t,
|
|
1674
1715
|
modifiers: i,
|
|
@@ -1676,26 +1717,26 @@ function Yn(e, t, n, r) {
|
|
|
1676
1717
|
messages: (r, i) => {
|
|
1677
1718
|
let a = o(n, r);
|
|
1678
1719
|
if (a == null && (u || i)) {
|
|
1679
|
-
let [, ,
|
|
1680
|
-
a = o(
|
|
1720
|
+
let [n, , i] = Zn(u || e, r, t, s, c, l);
|
|
1721
|
+
a = n ?? o(i, r);
|
|
1681
1722
|
}
|
|
1682
|
-
if (I(a) ||
|
|
1683
|
-
let n = !1, i =
|
|
1723
|
+
if (I(a) || K(a)) {
|
|
1724
|
+
let n = !1, i = Qn(e, r, t, a, r, () => {
|
|
1684
1725
|
n = !0;
|
|
1685
1726
|
});
|
|
1686
|
-
return n ?
|
|
1727
|
+
return n ? Jn : i;
|
|
1687
1728
|
} else if (Z(a)) return a;
|
|
1688
|
-
else return
|
|
1729
|
+
else return Jn;
|
|
1689
1730
|
}
|
|
1690
1731
|
};
|
|
1691
|
-
return e.processor && (d.processor = e.processor), r.list && (d.list = r.list), r.named && (d.named = r.named),
|
|
1732
|
+
return e.processor && (d.processor = e.processor), r.list && (d.list = r.list), r.named && (d.named = r.named), D(r.plural) && (d.pluralIndex = r.plural), d;
|
|
1692
1733
|
}
|
|
1693
1734
|
//#endregion
|
|
1694
1735
|
//#region node_modules/vue-i18n/dist/vue-i18n.mjs
|
|
1695
|
-
|
|
1696
|
-
var
|
|
1697
|
-
function
|
|
1698
|
-
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (
|
|
1736
|
+
it(), r();
|
|
1737
|
+
var ir = "11.4.6";
|
|
1738
|
+
function ar() {
|
|
1739
|
+
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (M().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (M().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (M().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (M().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
1699
1740
|
}
|
|
1700
1741
|
var Q = {
|
|
1701
1742
|
UNEXPECTED_RETURN_TYPE: 24,
|
|
@@ -1710,13 +1751,13 @@ var Q = {
|
|
|
1710
1751
|
NOT_COMPATIBLE_LEGACY_VUE_I18N: 33,
|
|
1711
1752
|
NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
|
|
1712
1753
|
};
|
|
1713
|
-
function
|
|
1714
|
-
return
|
|
1715
|
-
messages:
|
|
1754
|
+
function or(e, ...t) {
|
|
1755
|
+
return we(e, null, n.env.NODE_ENV === "production" ? void 0 : {
|
|
1756
|
+
messages: sr,
|
|
1716
1757
|
args: t
|
|
1717
1758
|
});
|
|
1718
1759
|
}
|
|
1719
|
-
var
|
|
1760
|
+
var sr = {
|
|
1720
1761
|
[Q.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
|
1721
1762
|
[Q.INVALID_ARGUMENT]: "Invalid argument",
|
|
1722
1763
|
[Q.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
|
|
@@ -1728,16 +1769,16 @@ var $n = {
|
|
|
1728
1769
|
[Q.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
|
|
1729
1770
|
[Q.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
|
1730
1771
|
[Q.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
|
|
1731
|
-
},
|
|
1732
|
-
|
|
1733
|
-
var
|
|
1734
|
-
FALLBACK_TO_ROOT:
|
|
1735
|
-
NOT_FOUND_PARENT_SCOPE:
|
|
1736
|
-
IGNORE_OBJ_FLATTEN:
|
|
1737
|
-
DEPRECATE_LEGACY_MODE:
|
|
1738
|
-
DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:
|
|
1739
|
-
DUPLICATE_USE_I18N_CALLING:
|
|
1740
|
-
},
|
|
1772
|
+
}, cr = /* #__PURE__*/ w("__translateVNode"), lr = /* #__PURE__*/ w("__datetimeParts"), ur = /* #__PURE__*/ w("__numberParts"), dr = /* #__PURE__*/ w("__enableEmitter"), fr = /* #__PURE__*/ w("__disableEmitter"), pr = w("__setPluralRules");
|
|
1773
|
+
w("__intlifyMeta");
|
|
1774
|
+
var mr = /* #__PURE__*/ w("__injectWithOption"), hr = /* #__PURE__*/ w("__dispose"), $ = {
|
|
1775
|
+
FALLBACK_TO_ROOT: 10,
|
|
1776
|
+
NOT_FOUND_PARENT_SCOPE: 11,
|
|
1777
|
+
IGNORE_OBJ_FLATTEN: 12,
|
|
1778
|
+
DEPRECATE_LEGACY_MODE: 13,
|
|
1779
|
+
DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE: 14,
|
|
1780
|
+
DUPLICATE_USE_I18N_CALLING: 15
|
|
1781
|
+
}, gr = {
|
|
1741
1782
|
[$.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
|
|
1742
1783
|
[$.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
|
|
1743
1784
|
[$.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
|
|
@@ -1745,45 +1786,45 @@ var or = /* #__PURE__*/ S("__injectWithOption"), sr = /* #__PURE__*/ S("__dispos
|
|
|
1745
1786
|
[$.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]: "'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",
|
|
1746
1787
|
[$.DUPLICATE_USE_I18N_CALLING]: "Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."
|
|
1747
1788
|
};
|
|
1748
|
-
function
|
|
1749
|
-
return
|
|
1789
|
+
function _r(e, ...t) {
|
|
1790
|
+
return C(gr[e], ...t);
|
|
1750
1791
|
}
|
|
1751
|
-
function
|
|
1752
|
-
if (!R(e) ||
|
|
1753
|
-
for (let t in e) if (N(e, t)) if (!t.includes(".")) R(e[t]) &&
|
|
1792
|
+
function vr(e) {
|
|
1793
|
+
if (!R(e) || K(e)) return e;
|
|
1794
|
+
for (let t in e) if (N(e, t)) if (!t.includes(".")) R(e[t]) && vr(e[t]);
|
|
1754
1795
|
else {
|
|
1755
1796
|
let r = t.split("."), i = r.length - 1, a = e, o = !1;
|
|
1756
1797
|
for (let e = 0; e < i; e++) {
|
|
1757
1798
|
if (r[e] === "__proto__") throw Error(`unsafe key: ${r[e]}`);
|
|
1758
1799
|
if (r[e] in a || (a[r[e]] = A()), !R(a[r[e]])) {
|
|
1759
|
-
n.env.NODE_ENV !== "production" &&
|
|
1800
|
+
n.env.NODE_ENV !== "production" && g(_r($.IGNORE_OBJ_FLATTEN, { key: r[e] })), o = !0;
|
|
1760
1801
|
break;
|
|
1761
1802
|
}
|
|
1762
1803
|
a = a[r[e]];
|
|
1763
1804
|
}
|
|
1764
|
-
if (o || (
|
|
1805
|
+
if (o || (K(a) ? St.includes(r[i]) || delete e[t] : (a[r[i]] = e[t], delete e[t])), !K(a)) {
|
|
1765
1806
|
let e = a[r[i]];
|
|
1766
|
-
R(e) &&
|
|
1807
|
+
R(e) && vr(e);
|
|
1767
1808
|
}
|
|
1768
1809
|
}
|
|
1769
1810
|
return e;
|
|
1770
1811
|
}
|
|
1771
|
-
function
|
|
1772
|
-
let { messages: n, __i18n: r, messageResolver: i, flatJson: a } = t, o =
|
|
1812
|
+
function yr(e, t) {
|
|
1813
|
+
let { messages: n, __i18n: r, messageResolver: i, flatJson: a } = t, o = B(n) ? n : P(r) ? A() : { [e]: A() };
|
|
1773
1814
|
if (P(r) && r.forEach((e) => {
|
|
1774
1815
|
if ("locale" in e && "resource" in e) {
|
|
1775
1816
|
let { locale: t, resource: n } = e;
|
|
1776
|
-
t ? (o[t] = o[t] || A(),
|
|
1777
|
-
} else I(e) &&
|
|
1778
|
-
}), i == null && a) for (let e in o) N(o, e) &&
|
|
1817
|
+
t ? (o[t] = o[t] || A(), be(n, o[t])) : be(n, o);
|
|
1818
|
+
} else I(e) && be(JSON.parse(e), o);
|
|
1819
|
+
}), i == null && a) for (let e in o) N(o, e) && vr(o[e]);
|
|
1779
1820
|
return o;
|
|
1780
1821
|
}
|
|
1781
|
-
function
|
|
1822
|
+
function br(e) {
|
|
1782
1823
|
return e.type;
|
|
1783
1824
|
}
|
|
1784
|
-
function
|
|
1825
|
+
function xr(e, t, n) {
|
|
1785
1826
|
let r = R(t.messages) ? t.messages : A();
|
|
1786
|
-
"__i18nGlobal" in n && (r =
|
|
1827
|
+
"__i18nGlobal" in n && (r = yr(e.locale.value, {
|
|
1787
1828
|
messages: r,
|
|
1788
1829
|
__i18n: n.__i18nGlobal
|
|
1789
1830
|
}));
|
|
@@ -1803,93 +1844,94 @@ function pr(e, t, n) {
|
|
|
1803
1844
|
});
|
|
1804
1845
|
}
|
|
1805
1846
|
}
|
|
1806
|
-
function
|
|
1847
|
+
function Sr(e) {
|
|
1807
1848
|
return s(a, null, e, 0);
|
|
1808
1849
|
}
|
|
1809
|
-
function
|
|
1810
|
-
|
|
1850
|
+
function Cr() {
|
|
1851
|
+
let e = "currentInstance";
|
|
1852
|
+
return e in i ? i[e] : i.getCurrentInstance();
|
|
1811
1853
|
}
|
|
1812
|
-
var
|
|
1813
|
-
function
|
|
1814
|
-
return ((t, n, r, i) => e(n, r,
|
|
1854
|
+
var wr = () => [], Tr = () => !1, Er = 0;
|
|
1855
|
+
function Dr(e) {
|
|
1856
|
+
return ((t, n, r, i) => e(n, r, Cr() || void 0, i));
|
|
1815
1857
|
}
|
|
1816
|
-
function
|
|
1817
|
-
let { __root: t, __injectWithOption: r } = e, i = t === void 0, a = e.flatJson, s =
|
|
1818
|
-
|
|
1819
|
-
i &&
|
|
1858
|
+
function Or(e = {}) {
|
|
1859
|
+
let { __root: t, __injectWithOption: r } = e, i = t === void 0, a = e.flatJson, s = y ? p : m, c = L(e.inheritLocale) ? e.inheritLocale : !0, l = s(t && c ? t.locale.value : I(e.locale) ? e.locale : sn), u = s(t && c ? t.fallbackLocale.value : I(e.fallbackLocale) || P(e.fallbackLocale) || B(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l.value), d = s(yr(l.value, e)), f = s(B(e.datetimeFormats) ? e.datetimeFormats : { [l.value]: {} }), _ = s(B(e.numberFormats) ? e.numberFormats : { [l.value]: {} }), v = t ? t.missingWarn : L(e.missingWarn) || ee(e.missingWarn) ? e.missingWarn : !0, b = t ? t.fallbackWarn : L(e.fallbackWarn) || ee(e.fallbackWarn) ? e.fallbackWarn : !0, x = t ? t.fallbackRoot : L(e.fallbackRoot) ? e.fallbackRoot : !0, S = !!e.fallbackFormat, C = F(e.missing) ? e.missing : null, w = F(e.missing) ? Dr(e.missing) : null, T = F(e.postTranslation) ? e.postTranslation : null, E = t ? t.warnHtmlMessage : L(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, O = !!e.escapeParameter, te = t ? t.modifiers : B(e.modifiers) ? e.modifiers : {}, ne = e.pluralRules || t && t.pluralRules, A;
|
|
1860
|
+
A = (() => {
|
|
1861
|
+
i && yn(null);
|
|
1820
1862
|
let t = {
|
|
1821
|
-
version:
|
|
1863
|
+
version: ir,
|
|
1822
1864
|
locale: l.value,
|
|
1823
1865
|
fallbackLocale: u.value,
|
|
1824
|
-
messages:
|
|
1825
|
-
modifiers:
|
|
1826
|
-
pluralRules:
|
|
1866
|
+
messages: d.value,
|
|
1867
|
+
modifiers: te,
|
|
1868
|
+
pluralRules: ne,
|
|
1827
1869
|
missing: w === null ? void 0 : w,
|
|
1828
|
-
missingWarn:
|
|
1870
|
+
missingWarn: v,
|
|
1829
1871
|
fallbackWarn: b,
|
|
1830
1872
|
fallbackFormat: S,
|
|
1831
1873
|
unresolving: !0,
|
|
1832
|
-
postTranslation:
|
|
1833
|
-
warnHtmlMessage:
|
|
1834
|
-
escapeParameter:
|
|
1874
|
+
postTranslation: T === null ? void 0 : T,
|
|
1875
|
+
warnHtmlMessage: E,
|
|
1876
|
+
escapeParameter: O,
|
|
1835
1877
|
messageResolver: e.messageResolver,
|
|
1836
1878
|
messageCompiler: e.messageCompiler,
|
|
1837
1879
|
__meta: { framework: "vue" }
|
|
1838
1880
|
};
|
|
1839
|
-
t.datetimeFormats =
|
|
1840
|
-
let r =
|
|
1841
|
-
return i &&
|
|
1842
|
-
})(),
|
|
1843
|
-
function
|
|
1881
|
+
t.datetimeFormats = f.value, t.numberFormats = _.value, t.__datetimeFormatters = B(A) ? A.__datetimeFormatters : void 0, t.__numberFormatters = B(A) ? A.__numberFormatters : void 0, n.env.NODE_ENV !== "production" && (t.__v_emitter = B(A) ? A.__v_emitter : void 0);
|
|
1882
|
+
let r = Sn(t);
|
|
1883
|
+
return i && yn(r), r;
|
|
1884
|
+
})(), Dn(A, l.value, u.value);
|
|
1885
|
+
function j() {
|
|
1844
1886
|
return [
|
|
1845
1887
|
l.value,
|
|
1846
1888
|
u.value,
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1889
|
+
d.value,
|
|
1890
|
+
f.value,
|
|
1891
|
+
_.value
|
|
1850
1892
|
];
|
|
1851
1893
|
}
|
|
1852
|
-
let
|
|
1894
|
+
let M = o({
|
|
1853
1895
|
get: () => l.value,
|
|
1854
1896
|
set: (e) => {
|
|
1855
|
-
|
|
1897
|
+
A.locale = e, l.value = e;
|
|
1856
1898
|
}
|
|
1857
1899
|
}), re = o({
|
|
1858
1900
|
get: () => u.value,
|
|
1859
1901
|
set: (e) => {
|
|
1860
|
-
|
|
1902
|
+
A.fallbackLocale = e, u.value = e, Dn(A, l.value, e);
|
|
1861
1903
|
}
|
|
1862
|
-
}), ie = o(() =>
|
|
1904
|
+
}), ie = o(() => d.value), ae = /* #__PURE__*/ o(() => f.value), oe = /* #__PURE__*/ o(() => _.value);
|
|
1863
1905
|
function se() {
|
|
1864
|
-
return F(
|
|
1906
|
+
return F(T) ? T : null;
|
|
1865
1907
|
}
|
|
1866
1908
|
function ce(e) {
|
|
1867
|
-
|
|
1909
|
+
T = e, A.postTranslation = e;
|
|
1868
1910
|
}
|
|
1869
1911
|
function le() {
|
|
1870
1912
|
return C;
|
|
1871
1913
|
}
|
|
1872
1914
|
function ue(e) {
|
|
1873
|
-
e !== null && (w =
|
|
1915
|
+
e !== null && (w = Dr(e)), C = e, A.missing = w;
|
|
1874
1916
|
}
|
|
1875
1917
|
function de(e, t) {
|
|
1876
1918
|
return e !== "translate" || !t.resolvedMessage;
|
|
1877
1919
|
}
|
|
1878
|
-
let
|
|
1879
|
-
|
|
1920
|
+
let z = (e, r, a, o, s, c) => {
|
|
1921
|
+
j();
|
|
1880
1922
|
let l;
|
|
1881
1923
|
try {
|
|
1882
|
-
n.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, i || (
|
|
1924
|
+
n.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, i || (A.fallbackContext = t ? bn() : void 0), l = e(A);
|
|
1883
1925
|
} finally {
|
|
1884
|
-
n.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, i || (
|
|
1926
|
+
n.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, i || (A.fallbackContext = void 0);
|
|
1885
1927
|
}
|
|
1886
|
-
if (a !== "translate exists" &&
|
|
1928
|
+
if (a !== "translate exists" && D(l) && l === -1 || a === "translate exists" && !l) {
|
|
1887
1929
|
let [e, i] = r();
|
|
1888
|
-
if (n.env.NODE_ENV !== "production" && t && I(e) && de(a, i) && (x && (
|
|
1930
|
+
if (n.env.NODE_ENV !== "production" && t && I(e) && de(a, i) && (x && (wn(b, e) || Tn(v, e)) && g(_r($.FALLBACK_TO_ROOT, {
|
|
1889
1931
|
key: e,
|
|
1890
1932
|
type: a
|
|
1891
1933
|
})), n.env.NODE_ENV !== "production")) {
|
|
1892
|
-
let { __v_emitter: t } =
|
|
1934
|
+
let { __v_emitter: t } = A;
|
|
1893
1935
|
t && x && t.emit("fallback", {
|
|
1894
1936
|
type: a,
|
|
1895
1937
|
key: e,
|
|
@@ -1901,24 +1943,24 @@ function br(e = {}) {
|
|
|
1901
1943
|
} else if (c(l)) return l;
|
|
1902
1944
|
else
|
|
1903
1945
|
/* istanbul ignore next */
|
|
1904
|
-
throw
|
|
1946
|
+
throw or(Q.UNEXPECTED_RETURN_TYPE);
|
|
1905
1947
|
};
|
|
1906
1948
|
function fe(...e) {
|
|
1907
|
-
return
|
|
1949
|
+
return z((t) => Reflect.apply(Yn, null, [t, ...e]), () => er(...e), "translate", (t) => Reflect.apply(t.t, t, [...e]), (e) => e, (e) => I(e));
|
|
1908
1950
|
}
|
|
1909
|
-
function
|
|
1951
|
+
function pe(...e) {
|
|
1910
1952
|
let [t, n, r] = e;
|
|
1911
|
-
if (r && !R(r)) throw
|
|
1953
|
+
if (r && !R(r)) throw or(Q.INVALID_ARGUMENT);
|
|
1912
1954
|
return fe(t, n, k({ resolvedMessage: !0 }, r || {}));
|
|
1913
1955
|
}
|
|
1914
|
-
function
|
|
1915
|
-
return
|
|
1956
|
+
function me(...e) {
|
|
1957
|
+
return z((t) => Reflect.apply(Mn, null, [t, ...e]), () => Pn(...e), "datetime format", (t) => Reflect.apply(t.d, t, [...e]), () => "", (e) => I(e) || P(e));
|
|
1916
1958
|
}
|
|
1917
|
-
function
|
|
1918
|
-
return
|
|
1959
|
+
function he(...e) {
|
|
1960
|
+
return z((t) => Reflect.apply(In, null, [t, ...e]), () => Rn(...e), "number format", (t) => Reflect.apply(t.n, t, [...e]), () => "", (e) => I(e) || P(e));
|
|
1919
1961
|
}
|
|
1920
1962
|
function ge(e) {
|
|
1921
|
-
return e.map((e) => I(e) ||
|
|
1963
|
+
return e.map((e) => I(e) || D(e) || L(e) ? Sr(String(e)) : e);
|
|
1922
1964
|
}
|
|
1923
1965
|
let _e = {
|
|
1924
1966
|
normalize: ge,
|
|
@@ -1926,36 +1968,40 @@ function br(e = {}) {
|
|
|
1926
1968
|
type: "vnode"
|
|
1927
1969
|
};
|
|
1928
1970
|
function ve(...e) {
|
|
1929
|
-
return
|
|
1971
|
+
return z((t) => {
|
|
1930
1972
|
let n, r = t;
|
|
1931
1973
|
try {
|
|
1932
|
-
r.processor = _e, n = Reflect.apply(
|
|
1974
|
+
r.processor = _e, n = Reflect.apply(Yn, null, [r, ...e]);
|
|
1933
1975
|
} finally {
|
|
1934
1976
|
r.processor = null;
|
|
1935
1977
|
}
|
|
1936
1978
|
return n;
|
|
1937
|
-
}, () =>
|
|
1979
|
+
}, () => er(...e), "translate", (t) => t[cr](...e), (e) => [Sr(e)], (e) => P(e));
|
|
1938
1980
|
}
|
|
1939
1981
|
function ye(...e) {
|
|
1940
|
-
return
|
|
1982
|
+
return z((t) => Reflect.apply(In, null, [t, ...e]), () => Rn(...e), "number format", (t) => t[ur](...e), wr, (e) => I(e) || P(e));
|
|
1941
1983
|
}
|
|
1942
|
-
function
|
|
1943
|
-
return
|
|
1984
|
+
function xe(...e) {
|
|
1985
|
+
return z((t) => Reflect.apply(Mn, null, [t, ...e]), () => Pn(...e), "datetime format", (t) => t[lr](...e), wr, (e) => I(e) || P(e));
|
|
1944
1986
|
}
|
|
1945
|
-
function
|
|
1946
|
-
|
|
1987
|
+
function Se(e) {
|
|
1988
|
+
ne = e, A.pluralRules = ne;
|
|
1947
1989
|
}
|
|
1948
|
-
function
|
|
1949
|
-
return
|
|
1990
|
+
function V(e, t) {
|
|
1991
|
+
return z(() => {
|
|
1950
1992
|
if (!e) return !1;
|
|
1951
|
-
let n =
|
|
1952
|
-
|
|
1953
|
-
|
|
1993
|
+
let n = I(t) ? t : l.value, r = I(t) ? [n] : Wt(A, u.value, n);
|
|
1994
|
+
for (let t = 0; t < r.length; t++) {
|
|
1995
|
+
let n = Te(r[t]), i = A.messageResolver(n, e);
|
|
1996
|
+
if (i === null && (i = n[e]), K(i) || Z(i) || I(i)) return !0;
|
|
1997
|
+
}
|
|
1998
|
+
return !1;
|
|
1999
|
+
}, () => [e], "translate exists", (n) => Reflect.apply(n.te, n, [e, t]), Tr, (e) => L(e));
|
|
1954
2000
|
}
|
|
1955
|
-
function
|
|
1956
|
-
let t = null, n =
|
|
2001
|
+
function Ce(e) {
|
|
2002
|
+
let t = null, n = Wt(A, u.value, l.value);
|
|
1957
2003
|
for (let r = 0; r < n.length; r++) {
|
|
1958
|
-
let i =
|
|
2004
|
+
let i = d.value[n[r]] || {}, a = A.messageResolver(i, e);
|
|
1959
2005
|
if (a != null) {
|
|
1960
2006
|
t = a;
|
|
1961
2007
|
break;
|
|
@@ -1963,83 +2009,83 @@ function br(e = {}) {
|
|
|
1963
2009
|
}
|
|
1964
2010
|
return t;
|
|
1965
2011
|
}
|
|
1966
|
-
function
|
|
1967
|
-
return
|
|
2012
|
+
function we(e) {
|
|
2013
|
+
return Ce(e) ?? (t && t.tm(e) || {});
|
|
1968
2014
|
}
|
|
1969
|
-
function
|
|
1970
|
-
return
|
|
2015
|
+
function Te(e) {
|
|
2016
|
+
return d.value[e] || {};
|
|
1971
2017
|
}
|
|
1972
|
-
function
|
|
2018
|
+
function Ee(e, t) {
|
|
1973
2019
|
if (a) {
|
|
1974
2020
|
let n = { [e]: t };
|
|
1975
|
-
for (let e in n) N(n, e) &&
|
|
2021
|
+
for (let e in n) N(n, e) && vr(n[e]);
|
|
1976
2022
|
t = n[e];
|
|
1977
2023
|
}
|
|
1978
|
-
|
|
2024
|
+
d.value[e] = t, A.messages = d.value;
|
|
1979
2025
|
}
|
|
1980
|
-
function
|
|
1981
|
-
|
|
2026
|
+
function De(e, t) {
|
|
2027
|
+
d.value[e] = d.value[e] || {};
|
|
1982
2028
|
let n = { [e]: t };
|
|
1983
|
-
if (a) for (let e in n) N(n, e) &&
|
|
1984
|
-
t = n[e],
|
|
1985
|
-
}
|
|
1986
|
-
function Te(e) {
|
|
1987
|
-
return g.value[e] || {};
|
|
2029
|
+
if (a) for (let e in n) N(n, e) && vr(n[e]);
|
|
2030
|
+
t = n[e], be(t, d.value[e]), A.messages = d.value;
|
|
1988
2031
|
}
|
|
1989
|
-
function
|
|
1990
|
-
|
|
2032
|
+
function H(e) {
|
|
2033
|
+
return f.value[e] || {};
|
|
1991
2034
|
}
|
|
1992
|
-
function
|
|
1993
|
-
|
|
2035
|
+
function Oe(e, t) {
|
|
2036
|
+
f.value[e] = t, A.datetimeFormats = f.value, Fn(A, e, t);
|
|
1994
2037
|
}
|
|
1995
|
-
function
|
|
1996
|
-
|
|
2038
|
+
function U(e, t) {
|
|
2039
|
+
f.value[e] = k(f.value[e] || {}, t), A.datetimeFormats = f.value, Fn(A, e, t);
|
|
1997
2040
|
}
|
|
1998
|
-
function ke(e
|
|
1999
|
-
|
|
2041
|
+
function ke(e) {
|
|
2042
|
+
return _.value[e] || {};
|
|
2000
2043
|
}
|
|
2001
2044
|
function Ae(e, t) {
|
|
2002
|
-
|
|
2045
|
+
_.value[e] = t, A.numberFormats = _.value, zn(A, e, t);
|
|
2003
2046
|
}
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
}
|
|
2007
|
-
|
|
2047
|
+
function je(e, t) {
|
|
2048
|
+
_.value[e] = k(_.value[e] || {}, t), A.numberFormats = _.value, zn(A, e, t);
|
|
2049
|
+
}
|
|
2050
|
+
Er++, t && y && (h(t.locale, (e) => {
|
|
2051
|
+
c && (l.value = e, A.locale = e, Dn(A, l.value, u.value));
|
|
2052
|
+
}), h(t.fallbackLocale, (e) => {
|
|
2053
|
+
c && (u.value = e, A.fallbackLocale = e, Dn(A, l.value, u.value));
|
|
2008
2054
|
}));
|
|
2009
|
-
let
|
|
2010
|
-
id:
|
|
2011
|
-
locale:
|
|
2055
|
+
let W = {
|
|
2056
|
+
id: Er,
|
|
2057
|
+
locale: M,
|
|
2012
2058
|
fallbackLocale: re,
|
|
2013
2059
|
get inheritLocale() {
|
|
2014
2060
|
return c;
|
|
2015
2061
|
},
|
|
2016
2062
|
set inheritLocale(e) {
|
|
2017
|
-
c = e, e && t && (l.value = t.locale.value, u.value = t.fallbackLocale.value,
|
|
2063
|
+
c = e, e && t && (l.value = t.locale.value, u.value = t.fallbackLocale.value, Dn(A, l.value, u.value));
|
|
2018
2064
|
},
|
|
2019
2065
|
get availableLocales() {
|
|
2020
|
-
return Object.keys(
|
|
2066
|
+
return Object.keys(d.value).sort();
|
|
2021
2067
|
},
|
|
2022
2068
|
messages: ie,
|
|
2023
2069
|
get modifiers() {
|
|
2024
|
-
return
|
|
2070
|
+
return te;
|
|
2025
2071
|
},
|
|
2026
2072
|
get pluralRules() {
|
|
2027
|
-
return
|
|
2073
|
+
return ne || {};
|
|
2028
2074
|
},
|
|
2029
2075
|
get isGlobal() {
|
|
2030
2076
|
return i;
|
|
2031
2077
|
},
|
|
2032
2078
|
get missingWarn() {
|
|
2033
|
-
return
|
|
2079
|
+
return v;
|
|
2034
2080
|
},
|
|
2035
2081
|
set missingWarn(e) {
|
|
2036
|
-
|
|
2082
|
+
v = e, A.missingWarn = v;
|
|
2037
2083
|
},
|
|
2038
2084
|
get fallbackWarn() {
|
|
2039
2085
|
return b;
|
|
2040
2086
|
},
|
|
2041
2087
|
set fallbackWarn(e) {
|
|
2042
|
-
b = e,
|
|
2088
|
+
b = e, A.fallbackWarn = b;
|
|
2043
2089
|
},
|
|
2044
2090
|
get fallbackRoot() {
|
|
2045
2091
|
return x;
|
|
@@ -2051,41 +2097,41 @@ function br(e = {}) {
|
|
|
2051
2097
|
return S;
|
|
2052
2098
|
},
|
|
2053
2099
|
set fallbackFormat(e) {
|
|
2054
|
-
S = e,
|
|
2100
|
+
S = e, A.fallbackFormat = S;
|
|
2055
2101
|
},
|
|
2056
2102
|
get warnHtmlMessage() {
|
|
2057
|
-
return
|
|
2103
|
+
return E;
|
|
2058
2104
|
},
|
|
2059
2105
|
set warnHtmlMessage(e) {
|
|
2060
|
-
|
|
2106
|
+
E = e, A.warnHtmlMessage = e;
|
|
2061
2107
|
},
|
|
2062
2108
|
get escapeParameter() {
|
|
2063
|
-
return
|
|
2109
|
+
return O;
|
|
2064
2110
|
},
|
|
2065
2111
|
set escapeParameter(e) {
|
|
2066
|
-
|
|
2112
|
+
O = e, A.escapeParameter = e;
|
|
2067
2113
|
},
|
|
2068
2114
|
t: fe,
|
|
2069
|
-
getLocaleMessage:
|
|
2070
|
-
setLocaleMessage:
|
|
2071
|
-
mergeLocaleMessage:
|
|
2115
|
+
getLocaleMessage: Te,
|
|
2116
|
+
setLocaleMessage: Ee,
|
|
2117
|
+
mergeLocaleMessage: De,
|
|
2072
2118
|
getPostTranslationHandler: se,
|
|
2073
2119
|
setPostTranslationHandler: ce,
|
|
2074
2120
|
getMissingHandler: le,
|
|
2075
2121
|
setMissingHandler: ue,
|
|
2076
|
-
[
|
|
2122
|
+
[pr]: Se
|
|
2077
2123
|
};
|
|
2078
|
-
return
|
|
2079
|
-
|
|
2080
|
-
},
|
|
2081
|
-
|
|
2082
|
-
}),
|
|
2083
|
-
}
|
|
2084
|
-
var
|
|
2085
|
-
function
|
|
2086
|
-
if (
|
|
2124
|
+
return W.datetimeFormats = ae, W.numberFormats = oe, W.rt = pe, W.te = V, W.tm = we, W.d = me, W.n = he, W.getDateTimeFormat = H, W.setDateTimeFormat = Oe, W.mergeDateTimeFormat = U, W.getNumberFormat = ke, W.setNumberFormat = Ae, W.mergeNumberFormat = je, W[mr] = r, W[cr] = ve, W[lr] = xe, W[ur] = ye, n.env.NODE_ENV !== "production" && (W[dr] = (e) => {
|
|
2125
|
+
A.__v_emitter = e;
|
|
2126
|
+
}, W[fr] = () => {
|
|
2127
|
+
A.__v_emitter = void 0;
|
|
2128
|
+
}), W;
|
|
2129
|
+
}
|
|
2130
|
+
var kr;
|
|
2131
|
+
function Ar(e, t) {
|
|
2132
|
+
if (kr) {
|
|
2087
2133
|
let n;
|
|
2088
|
-
t && "groupId" in t && (n = t.groupId, delete t.groupId),
|
|
2134
|
+
t && "groupId" in t && (n = t.groupId, delete t.groupId), kr.addTimelineEvent({
|
|
2089
2135
|
layerId: "vue-i18n-timeline",
|
|
2090
2136
|
event: {
|
|
2091
2137
|
title: e,
|
|
@@ -2098,7 +2144,7 @@ function Sr(e, t) {
|
|
|
2098
2144
|
});
|
|
2099
2145
|
}
|
|
2100
2146
|
}
|
|
2101
|
-
var
|
|
2147
|
+
var jr = {
|
|
2102
2148
|
tag: { type: [String, Object] },
|
|
2103
2149
|
locale: { type: String },
|
|
2104
2150
|
scope: {
|
|
@@ -2115,75 +2161,97 @@ k({
|
|
|
2115
2161
|
},
|
|
2116
2162
|
plural: {
|
|
2117
2163
|
type: [Number, String],
|
|
2118
|
-
validator: (e) =>
|
|
2164
|
+
validator: (e) => D(e) || !isNaN(e)
|
|
2119
2165
|
}
|
|
2120
|
-
},
|
|
2166
|
+
}, jr), k({
|
|
2121
2167
|
value: {
|
|
2122
2168
|
type: Number,
|
|
2123
2169
|
required: !0
|
|
2124
2170
|
},
|
|
2125
2171
|
format: { type: [String, Object] }
|
|
2126
|
-
},
|
|
2127
|
-
var
|
|
2128
|
-
function
|
|
2129
|
-
let t =
|
|
2130
|
-
if (t == null) throw
|
|
2131
|
-
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__) throw
|
|
2132
|
-
let r =
|
|
2133
|
-
if (o === "global") return
|
|
2172
|
+
}, jr);
|
|
2173
|
+
var Mr = /* #__PURE__*/ w("global-vue-i18n");
|
|
2174
|
+
function Nr(e = {}) {
|
|
2175
|
+
let t = Cr();
|
|
2176
|
+
if (t == null) throw or(Q.MUST_BE_CALL_SETUP_TOP);
|
|
2177
|
+
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__) throw or(Q.NOT_INSTALLED);
|
|
2178
|
+
let r = Pr(t), i = Ir(r), a = br(t), o = Fr(e, a);
|
|
2179
|
+
if (o === "global") return xr(i, e, a), i;
|
|
2134
2180
|
if (o === "parent") {
|
|
2135
|
-
let a =
|
|
2136
|
-
return a ??= (n.env.NODE_ENV !== "production" &&
|
|
2181
|
+
let a = Lr(r, t, e.__useComponent);
|
|
2182
|
+
return a ??= (n.env.NODE_ENV !== "production" && g(_r($.NOT_FOUND_PARENT_SCOPE)), i), a;
|
|
2183
|
+
}
|
|
2184
|
+
if (o === "isolated") {
|
|
2185
|
+
if (r.mode !== "composition") throw or(Q.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);
|
|
2186
|
+
let a = r, o = k({}, e);
|
|
2187
|
+
o.__root = Lr(r, t) || i;
|
|
2188
|
+
let s = Or(o);
|
|
2189
|
+
a.__composerExtend && (s[hr] = a.__composerExtend(s));
|
|
2190
|
+
let l = null;
|
|
2191
|
+
if (n.env.NODE_ENV !== "production") {
|
|
2192
|
+
l = ve();
|
|
2193
|
+
let e = s;
|
|
2194
|
+
e[dr] && e[dr](l), l.on("*", Ar);
|
|
2195
|
+
}
|
|
2196
|
+
return c() && d(() => {
|
|
2197
|
+
if (n.env.NODE_ENV !== "production") {
|
|
2198
|
+
l && l.off("*", Ar);
|
|
2199
|
+
let e = s;
|
|
2200
|
+
e[fr] && e[fr]();
|
|
2201
|
+
}
|
|
2202
|
+
let e = s[hr];
|
|
2203
|
+
e && (e(), delete s[hr]);
|
|
2204
|
+
}), s;
|
|
2137
2205
|
}
|
|
2138
|
-
let s = r,
|
|
2139
|
-
if (
|
|
2206
|
+
let s = r, l = s.__getInstance(t);
|
|
2207
|
+
if (l == null) {
|
|
2140
2208
|
let n = k({}, e);
|
|
2141
|
-
"__i18n" in a && (n.__i18n = a.__i18n), i && (n.__root = i),
|
|
2142
|
-
} else n.env.NODE_ENV !== "production" && o === "local" &&
|
|
2143
|
-
return
|
|
2209
|
+
"__i18n" in a && (n.__i18n = a.__i18n), i && (n.__root = i), l = Or(n), s.__composerExtend && (l[hr] = s.__composerExtend(l)), zr(s, t, l), s.__setInstance(t, l);
|
|
2210
|
+
} else n.env.NODE_ENV !== "production" && o === "local" && g(_r($.DUPLICATE_USE_I18N_CALLING));
|
|
2211
|
+
return l;
|
|
2144
2212
|
}
|
|
2145
|
-
function
|
|
2146
|
-
let t =
|
|
2213
|
+
function Pr(e) {
|
|
2214
|
+
let t = l(e.isCE ? Mr : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
2147
2215
|
/* istanbul ignore if */
|
|
2148
|
-
if (!t) throw
|
|
2216
|
+
if (!t) throw or(e.isCE ? Q.NOT_INSTALLED_WITH_PROVIDE : Q.UNEXPECTED_ERROR);
|
|
2149
2217
|
return t;
|
|
2150
2218
|
}
|
|
2151
|
-
function
|
|
2152
|
-
return
|
|
2219
|
+
function Fr(e, t) {
|
|
2220
|
+
return te(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
2153
2221
|
}
|
|
2154
|
-
function
|
|
2222
|
+
function Ir(e) {
|
|
2155
2223
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
2156
2224
|
}
|
|
2157
|
-
function
|
|
2158
|
-
let r = null, i = t.root, a =
|
|
2225
|
+
function Lr(e, t, n = !1) {
|
|
2226
|
+
let r = null, i = t.root, a = Rr(t, n);
|
|
2159
2227
|
for (; a != null;) {
|
|
2160
2228
|
let t = e;
|
|
2161
2229
|
if (e.mode === "composition") r = t.__getInstance(a);
|
|
2162
2230
|
else if (__VUE_I18N_LEGACY_API__) {
|
|
2163
2231
|
let e = t.__getInstance(a);
|
|
2164
|
-
e != null && (r = e.__composer, n && r && !r[
|
|
2232
|
+
e != null && (r = e.__composer, n && r && !r[mr] && (r = null));
|
|
2165
2233
|
}
|
|
2166
2234
|
if (r != null || i === a) break;
|
|
2167
2235
|
a = a.parent;
|
|
2168
2236
|
}
|
|
2169
2237
|
return r;
|
|
2170
2238
|
}
|
|
2171
|
-
function
|
|
2239
|
+
function Rr(e, t = !1) {
|
|
2172
2240
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
2173
2241
|
}
|
|
2174
|
-
function
|
|
2242
|
+
function zr(e, t, r) {
|
|
2175
2243
|
let i = null;
|
|
2176
|
-
|
|
2244
|
+
u(() => {
|
|
2177
2245
|
if (n.env.NODE_ENV !== "production") {
|
|
2178
|
-
t.__VUE_I18N__ = r, i =
|
|
2246
|
+
t.__VUE_I18N__ = r, i = ve();
|
|
2179
2247
|
let e = r;
|
|
2180
|
-
e[
|
|
2248
|
+
e[dr] && e[dr](i), i.on("*", Ar);
|
|
2181
2249
|
}
|
|
2182
|
-
}, t),
|
|
2250
|
+
}, t), f(() => {
|
|
2183
2251
|
let a = r;
|
|
2184
|
-
n.env.NODE_ENV !== "production" && (i && i.off("*",
|
|
2185
|
-
let o = a[
|
|
2186
|
-
o && (o(), delete a[
|
|
2252
|
+
n.env.NODE_ENV !== "production" && (i && i.off("*", Ar), a[fr] && a[fr](), delete t.__VUE_I18N__), e.__deleteInstance(t);
|
|
2253
|
+
let o = a[hr];
|
|
2254
|
+
o && (o(), delete a[hr]);
|
|
2187
2255
|
}, t);
|
|
2188
2256
|
}
|
|
2189
2257
|
if (k({
|
|
@@ -2192,10 +2260,10 @@ if (k({
|
|
|
2192
2260
|
required: !0
|
|
2193
2261
|
},
|
|
2194
2262
|
format: { type: [String, Object] }
|
|
2195
|
-
},
|
|
2196
|
-
let e =
|
|
2197
|
-
e.__INTLIFY__ = !0,
|
|
2263
|
+
}, jr), ar(), dn(Nt), pn(rn), hn(Wt), n.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
2264
|
+
let e = M();
|
|
2265
|
+
e.__INTLIFY__ = !0, Ft(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
2198
2266
|
}
|
|
2199
2267
|
n.env.NODE_ENV;
|
|
2200
2268
|
//#endregion
|
|
2201
|
-
export {
|
|
2269
|
+
export { Nr as t };
|