jmash-core 0.0.4 → 0.0.5
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/{401-DoLCxv3l.mjs → 401-DZeMj80g.mjs} +3 -3
- package/dist/{BarChart-C1VgkGMN.mjs → BarChart-BYm859ri.mjs} +3 -3
- package/dist/{FileSaver.min-CbZYb_R2.mjs → FileSaver.min-DJ2XURfB.mjs} +1 -1
- package/dist/{PieChart-D4hXD0SH.mjs → PieChart-BRbbIH3_.mjs} +1 -1
- package/dist/{PieChart.vue_vue_type_script_setup_true_lang-BzbbPmOh.mjs → PieChart.vue_vue_type_script_setup_true_lang-XjLBqCzM.mjs} +2 -2
- package/dist/{RadarChart-BIL7VT1H.mjs → RadarChart-Bk_uy6Km.mjs} +1 -1
- package/dist/{RadarChart.vue_vue_type_script_setup_true_lang-DcuctIiI.mjs → RadarChart.vue_vue_type_script_setup_true_lang-COsDkkQU.mjs} +2 -2
- package/dist/{caret-bottom-Cm1qBSrY.mjs → caret-bottom-DGvkHVYd.mjs} +8 -8
- package/dist/{debounce-C0G0JMal.mjs → debounce-XYByYe_I.mjs} +18 -18
- package/dist/{dropdown2-BiRFTrOq.mjs → dropdown2-D_RJXnOl.mjs} +13 -13
- package/dist/{edit-DLx0iRHQ.mjs → edit-BTjApg1x.mjs} +49 -50
- package/dist/{edit-D3-EslTs.mjs → edit-BcLHrCSo.mjs} +1 -1
- package/dist/{edit-CYWeo3RE.mjs → edit-DC3SyT6J.mjs} +1 -1
- package/dist/{edit-Cde8RIRN.mjs → edit-DmP9tv3r.mjs} +1 -1
- package/dist/{edit-NICINRFG.mjs → edit-Dr-9X4r3.mjs} +1 -1
- package/dist/{edit-Bpt21Eir.mjs → edit-FjRAXd1B.mjs} +74 -75
- package/dist/edit-bpHMc65Q.mjs +4 -0
- package/dist/edit-lB54egzx.mjs +4 -0
- package/dist/{edit.vue_vue_type_script_setup_true_lang-C_NNjRjK.mjs → edit.vue_vue_type_script_setup_true_lang-BKutjIoX.mjs} +45 -46
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DBxZMZyS.mjs → edit.vue_vue_type_script_setup_true_lang-BVXBx_a-.mjs} +19 -20
- package/dist/{edit.vue_vue_type_script_setup_true_lang-_tHqd9tg.mjs → edit.vue_vue_type_script_setup_true_lang-Bm1SAtWP.mjs} +47 -48
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BYoUZaYJ.mjs → edit.vue_vue_type_script_setup_true_lang-CYZNHUnm.mjs} +17 -18
- package/dist/{edit.vue_vue_type_script_setup_true_lang-mM66jf9N.mjs → edit.vue_vue_type_script_setup_true_lang-CZmh3q4f.mjs} +20 -21
- package/dist/{edit.vue_vue_type_script_setup_true_lang-CFHGaytm.mjs → edit.vue_vue_type_script_setup_true_lang-DqZ2GCoE.mjs} +13 -14
- package/dist/{el-card-BIRVdEQY.mjs → el-card-Da9MvaWO.mjs} +4 -4
- package/dist/{el-checkbox-miY6QbQ8.mjs → el-checkbox-B44P9jFr.mjs} +62 -62
- package/dist/{el-col-BOgRUJYE.mjs → el-col-BY0nB6k3.mjs} +19 -19
- package/dist/{el-date-picker-D9yvdcj2.mjs → el-date-picker-CVwJoDEA.mjs} +5 -5
- package/dist/{el-dialog-BSTwker5.mjs → el-dialog-CSWvTJrq.mjs} +72 -72
- package/dist/{el-dropdown-item-YDb2-w9y.mjs → el-dropdown-item-CD8hUpml.mjs} +68 -68
- package/dist/{el-form-item-BzKoZc6I.mjs → el-form-item-f-baJSfe.mjs} +118 -118
- package/dist/{el-popover-DuRdut0P.mjs → el-popover-D8RrIMbA.mjs} +24 -24
- package/dist/{el-popper-AjIjI4wK.mjs → el-popper-C13p_dqu.mjs} +1 -1
- package/dist/{el-progress-BPv5gfee.mjs → el-progress-CHUzIxT1.mjs} +60 -60
- package/dist/{el-radio-NC-gfUsx.mjs → el-radio-BpdPD-RN.mjs} +52 -52
- package/dist/{el-scrollbar-p0O6uID0.mjs → el-scrollbar-B8QteGV0.mjs} +82 -82
- package/dist/{el-select-DAMII7lv.mjs → el-select-ChOy6agQ.mjs} +128 -128
- package/dist/{el-switch-C2AFgHGW.mjs → el-switch-cqWxQwcb.mjs} +44 -44
- package/dist/{el-table-IQFrP3zv.mjs → el-table-c9Sup56w.mjs} +143 -143
- package/dist/{el-tree-select-CyDKS6nF.mjs → el-tree-select-CKOwMXR7.mjs} +85 -85
- package/dist/{importUpload.vue_vue_type_script_setup_true_lang-DWWbxFGH.mjs → importUpload.vue_vue_type_script_setup_true_lang-DWrcOBGS.mjs} +30 -31
- package/dist/index-B6wY38lY.mjs +13173 -0
- package/dist/{index-Bs3AcT6R.mjs → index-BH-_mfRR.mjs} +18 -18
- package/dist/{index-B46NFfoE.mjs → index-BfhiNV8H.mjs} +27 -28
- package/dist/{index-mkT_dTWL.mjs → index-BuHauank.mjs} +1 -1
- package/dist/{index-xtDIXRPY.mjs → index-CBJwB8q2.mjs} +65 -65
- package/dist/{index-Url6hMpl.mjs → index-CGCQHwLq.mjs} +78 -79
- package/dist/{index-BWx4KWAY.mjs → index-CU0iVHXP.mjs} +24 -25
- package/dist/{index-BWyb1bu2.mjs → index-CYxGYOaT.mjs} +95 -96
- package/dist/{index-A3UILhe-.mjs → index-Cjii0qCc.mjs} +35 -36
- package/dist/{index-C0vV2_4K.mjs → index-Czh2Pqwr.mjs} +7 -7
- package/dist/index-DUKlDGLk.mjs +2589 -0
- package/dist/{index-CCFtIl_h.mjs → index-DUVtKaDI.mjs} +49 -50
- package/dist/{index-Cd3TOW5i.mjs → index-Dgd4Zhxz.mjs} +9 -9
- package/dist/{index-BvixCbHl.mjs → index-Di5--Hao.mjs} +17 -18
- package/dist/{index-CurzO9C6.mjs → index-DrKW_cyG.mjs} +26 -27
- package/dist/{index-CgNPGcHv.mjs → index-LuiPOgGW.mjs} +58 -59
- package/dist/{index-CoOFKDgw.mjs → index-VD-Tf32c.mjs} +5 -5
- package/dist/{index-C0UgbyoZ.mjs → index-cRrjzkNb.mjs} +46 -46
- package/dist/{index-BnbEfNmI.mjs → index-cp7l4CIE.mjs} +5 -5
- package/dist/{index-BpAihYhN.mjs → index-dKz1IRM_.mjs} +35 -36
- package/dist/{index-CBB_r4G5.mjs → index-dLPnFa10.mjs} +34 -35
- package/dist/{index-eT2JltVa.mjs → index-vp1_Sd0A.mjs} +8 -8
- package/dist/index.mjs +13 -10
- package/dist/{index.vue_vue_type_script_setup_true_lang-C6yk_vUt.mjs → index.vue_vue_type_script_setup_true_lang-DcIQIMBC.mjs} +22 -22
- package/dist/{index.vue_vue_type_script_setup_true_lang-BoxqootF.mjs → index.vue_vue_type_script_setup_true_lang-DidEhco6.mjs} +5 -5
- package/dist/{picture-kPnmHaoS.mjs → picture-kDaEiPHi.mjs} +16 -16
- package/dist/{profile-RVQuIwXg.mjs → profile-Sn98YUfh.mjs} +23 -23
- package/dist/{refs-S3PYDmaW.mjs → refs-COP_DuTD.mjs} +1 -1
- package/dist/{types-CCG3Dvqs.mjs → types-BolK_Oyb.mjs} +16 -16
- package/dist/{updatePwd-2UsTmJa5.mjs → updatePwd-B3rEU05i.mjs} +1 -1
- package/dist/{updatePwd.vue_vue_type_script_setup_true_lang-_Uadc2g3.mjs → updatePwd.vue_vue_type_script_setup_true_lang-1LEdjkQ3.mjs} +5 -5
- package/dist/{useColumnToggleTable-D_QF8Uy9.mjs → useColumnToggleTable-CC9EXcfR.mjs} +5 -5
- package/dts/src/App.vue.d.ts +1 -1
- package/dts/src/api/auth/index.d.ts +41 -0
- package/dts/src/api/auth/types.d.ts +180 -0
- package/dts/src/api/file/index.d.ts +14 -0
- package/dts/src/api/file/types.d.ts +7 -0
- package/dts/src/api/system/dept/index.d.ts +91 -0
- package/dts/src/api/system/dept/types.d.ts +63 -0
- package/dts/src/api/system/index.d.ts +7 -0
- package/dts/src/api/system/job/index.d.ts +42 -0
- package/dts/src/api/system/job/types.d.ts +60 -0
- package/dts/src/api/system/log/index.d.ts +29 -0
- package/dts/src/api/system/log/types.d.ts +42 -0
- package/dts/src/api/system/menu/index.d.ts +103 -0
- package/dts/src/api/system/menu/types.d.ts +96 -0
- package/dts/src/api/system/module/index.d.ts +57 -0
- package/dts/src/api/system/module/types.d.ts +13 -0
- package/dts/src/api/system/operation/index.d.ts +51 -0
- package/dts/src/api/system/operation/types.d.ts +12 -0
- package/dts/src/api/system/permission/index.d.ts +50 -0
- package/dts/src/api/system/permission/types.d.ts +12 -0
- package/dts/src/api/system/role/index.d.ts +77 -0
- package/dts/src/api/system/role/types.d.ts +26 -0
- package/dts/src/api/system/user/index.d.ts +133 -0
- package/dts/src/api/system/user/types.d.ts +53 -0
- package/dts/src/api/system/userLog/index.d.ts +29 -0
- package/dts/src/api/system/userLog/types.d.ts +22 -0
- package/dts/src/assets/icons/index.d.ts +0 -0
- package/dts/src/components/{TheWelcome.vue.d.ts → Breadcrumb/index.vue.d.ts} +1 -1
- package/dts/src/components/DictRadio/index.vue.d.ts +23 -0
- package/dts/src/components/DictSelect/index.vue.d.ts +41 -0
- package/dts/src/components/Dictionary/index.vue.d.ts +47 -0
- package/dts/src/components/{icons/IconEcosystem.vue.d.ts → GithubCorner/index.vue.d.ts} +1 -1
- package/dts/src/components/Hamburger/index.vue.d.ts +18 -0
- package/dts/src/components/IconSelect/index.vue.d.ts +20 -0
- package/dts/src/components/IconSelect/requireIcons.d.ts +2 -0
- package/dts/src/components/{icons/IconCommunity.vue.d.ts → LangSelect/index.vue.d.ts} +1 -1
- package/dts/src/components/Pagination/index.vue.d.ts +88 -0
- package/dts/src/components/RightPanel/index.vue.d.ts +21 -0
- package/dts/src/components/{icons/IconDocumentation.vue.d.ts → SizeSelect/index.vue.d.ts} +1 -1
- package/dts/src/components/SvgIcon/index.vue.d.ts +43 -0
- package/dts/src/components/Table/index.vue.d.ts +73 -0
- package/dts/src/components/TableSet/index.vue.d.ts +29 -0
- package/dts/src/components/Upload/MultiUpload.vue.d.ts +65 -0
- package/dts/src/components/Upload/SingleUpload.vue.d.ts +18 -0
- package/dts/src/components/Upload/importUpload.vue.d.ts +31 -0
- package/dts/src/components/Upload/index.vue.d.ts +18 -0
- package/dts/src/components/WangEditor/index.vue.d.ts +18 -0
- package/dts/src/directive/index.d.ts +5 -0
- package/dts/src/directive/permission/index.d.ts +9 -0
- package/dts/src/enums/MenuTypeEnum.d.ts +18 -0
- package/dts/src/hooks/useColumnToggleTable.d.ts +7 -0
- package/dts/src/index.d.ts +29 -3
- package/dts/src/lang/index.d.ts +534 -0
- package/dts/src/lang/package/en.d.ts +261 -0
- package/dts/src/lang/package/zh-cn.d.ts +275 -0
- package/dts/src/layout/components/AppMain.vue.d.ts +2 -0
- package/dts/src/layout/components/NavBar/NavRight.vue.d.ts +2 -0
- package/dts/src/layout/components/NavBar/index.vue.d.ts +2 -0
- package/dts/src/layout/components/Settings/index.vue.d.ts +2 -0
- package/dts/src/layout/components/Sidebar/Item.vue.d.ts +23 -0
- package/dts/src/layout/components/Sidebar/LeftMenu.vue.d.ts +24 -0
- package/dts/src/layout/components/Sidebar/Link.vue.d.ts +19 -0
- package/dts/src/layout/components/Sidebar/Logo.vue.d.ts +12 -0
- package/dts/src/layout/components/Sidebar/SidebarItem.vue.d.ts +42 -0
- package/dts/src/layout/components/Sidebar/TopMenu.vue.d.ts +2 -0
- package/dts/src/layout/components/Sidebar/index.vue.d.ts +2 -0
- package/dts/src/layout/components/TagsView/ScrollPane.vue.d.ts +16 -0
- package/dts/src/layout/components/TagsView/index.vue.d.ts +2 -0
- package/dts/src/layout/components/index.d.ts +4 -0
- package/dts/src/layout/index.vue.d.ts +2 -0
- package/dts/src/layout/main.vue.d.ts +2 -0
- package/dts/src/main.d.ts +5 -1
- package/dts/src/permission.d.ts +1 -0
- package/dts/src/router/index.d.ts +10 -0
- package/dts/src/settings.d.ts +13 -0
- package/dts/src/stores/index.d.ts +7 -0
- package/dts/src/stores/modules/tagsView.d.ts +82 -0
- package/dts/src/utils/common.d.ts +6 -0
- package/dts/src/utils/grpc.d.ts +2 -0
- package/dts/src/utils/i18n.d.ts +1 -0
- package/dts/src/utils/index.d.ts +24 -0
- package/dts/src/utils/request.d.ts +2 -0
- package/dts/src/utils/resize.d.ts +1 -0
- package/dts/src/utils/scroll-to.d.ts +6 -0
- package/dts/src/views/dashboard/components/BarChart.vue.d.ts +45 -0
- package/dts/src/views/dashboard/components/FunnelChart.vue.d.ts +45 -0
- package/dts/src/views/dashboard/components/PieChart.vue.d.ts +45 -0
- package/dts/src/views/dashboard/components/RadarChart.vue.d.ts +45 -0
- package/dts/src/views/dashboard/index.vue.d.ts +2 -0
- package/dts/src/views/error-page/401.vue.d.ts +2 -0
- package/dts/src/views/error-page/404.vue.d.ts +2 -0
- package/dts/src/views/login/components/types.vue.d.ts +2 -0
- package/dts/src/views/login/index.vue.d.ts +2 -0
- package/dts/src/views/my/profile.vue.d.ts +2 -0
- package/dts/src/views/my/updatePwd.vue.d.ts +18 -0
- package/dts/src/views/redirect/index.vue.d.ts +2 -0
- package/dts/src/views/system/dept/edit.vue.d.ts +31 -0
- package/dts/src/views/system/dept/index.vue.d.ts +2 -0
- package/dts/src/views/system/job/edit.vue.d.ts +30 -0
- package/dts/src/views/system/job/index.vue.d.ts +2 -0
- package/dts/src/views/system/log/index.vue.d.ts +2 -0
- package/dts/src/views/system/log/oplog/index.vue.d.ts +2 -0
- package/dts/src/views/system/log/userLog/index.vue.d.ts +2 -0
- package/dts/src/views/system/menu/edit.vue.d.ts +31 -0
- package/dts/src/views/system/menu/index.vue.d.ts +2 -0
- package/dts/src/views/system/module/edit.vue.d.ts +31 -0
- package/dts/src/views/system/module/index.vue.d.ts +2 -0
- package/dts/src/views/system/operation/edit.vue.d.ts +31 -0
- package/dts/src/views/system/operation/index.vue.d.ts +2 -0
- package/dts/src/views/system/permission/edit.vue.d.ts +30 -0
- package/dts/src/views/system/permission/index.vue.d.ts +2 -0
- package/dts/src/views/system/role/edit.vue.d.ts +31 -0
- package/dts/src/views/system/role/index.vue.d.ts +2 -0
- package/dts/src/views/system/user/edit.vue.d.ts +31 -0
- package/dts/src/views/system/user/index.vue.d.ts +2 -0
- package/dts/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/edit-Vk23bJyE.mjs +0 -4
- package/dist/edit-sqzPOfBX.mjs +0 -4
- package/dist/index-Ax_8ZsXK.mjs +0 -3163
- package/dist/index-CrNYgyNm.mjs +0 -8800
- package/dist/vue-i18n-CE6tUbcO.mjs +0 -3808
- package/dts/src/components/HelloWorld.vue.d.ts +0 -15
- package/dts/src/components/WelcomeItem.vue.d.ts +0 -11
- package/dts/src/components/icons/IconSupport.vue.d.ts +0 -2
- package/dts/src/components/icons/IconTooling.vue.d.ts +0 -2
- package/dts/src/stores/counter.d.ts +0 -13
- package/dts/src/views/AboutView.vue.d.ts +0 -2
- package/dts/src/views/HomeView.vue.d.ts +0 -2
|
@@ -1,3808 +0,0 @@
|
|
|
1
|
-
import { defineComponent as kt, h as Cn, getCurrentInstance as tt, inject as dr, onMounted as gr, onUnmounted as Nr, shallowRef as Pn, ref as We, computed as _e, onBeforeMount as pr, watch as Tt, Fragment as Sn, effectScope as Tr, isRef as Or, createVNode as Lr, Text as Ir } from "vue";
|
|
2
|
-
/*!
|
|
3
|
-
* shared v9.10.1
|
|
4
|
-
* (c) 2024 kazuya kawaguchi
|
|
5
|
-
* Released under the MIT License.
|
|
6
|
-
*/
|
|
7
|
-
const ie = typeof window < "u";
|
|
8
|
-
let re, Se;
|
|
9
|
-
if (process.env.NODE_ENV !== "production") {
|
|
10
|
-
const e = ie && window.performance;
|
|
11
|
-
e && e.mark && e.measure && e.clearMarks && // @ts-ignore browser compat
|
|
12
|
-
e.clearMeasures && (re = (t) => {
|
|
13
|
-
e.mark(t);
|
|
14
|
-
}, Se = (t, n, a) => {
|
|
15
|
-
e.measure(t, n, a), e.clearMarks(n), e.clearMarks(a);
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
const vr = /\{([0-9a-zA-Z]+)\}/g;
|
|
19
|
-
function yt(e, ...t) {
|
|
20
|
-
return t.length === 1 && V(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(vr, (n, a) => t.hasOwnProperty(a) ? t[a] : "");
|
|
21
|
-
}
|
|
22
|
-
const Ee = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), br = (e, t, n) => hr({ l: e, k: t, s: n }), hr = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), B = (e) => typeof e == "number" && isFinite(e), Ar = (e) => Rn(e) === "[object Date]", Ie = (e) => Rn(e) === "[object RegExp]", ft = (e) => M(e) && Object.keys(e).length === 0, Z = Object.assign;
|
|
23
|
-
let Yt;
|
|
24
|
-
const pe = () => Yt || (Yt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
|
|
25
|
-
function Kt(e) {
|
|
26
|
-
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
27
|
-
}
|
|
28
|
-
const Cr = Object.prototype.hasOwnProperty;
|
|
29
|
-
function ct(e, t) {
|
|
30
|
-
return Cr.call(e, t);
|
|
31
|
-
}
|
|
32
|
-
const H = Array.isArray, G = (e) => typeof e == "function", v = (e) => typeof e == "string", U = (e) => typeof e == "boolean", V = (e) => e !== null && typeof e == "object", Pr = (e) => V(e) && G(e.then) && G(e.catch), Dn = Object.prototype.toString, Rn = (e) => Dn.call(e), M = (e) => {
|
|
33
|
-
if (!V(e))
|
|
34
|
-
return !1;
|
|
35
|
-
const t = Object.getPrototypeOf(e);
|
|
36
|
-
return t === null || t.constructor === Object;
|
|
37
|
-
}, Sr = (e) => e == null ? "" : H(e) || M(e) && e.toString === Dn ? JSON.stringify(e, null, 2) : String(e);
|
|
38
|
-
function Dr(e, t = "") {
|
|
39
|
-
return e.reduce((n, a, s) => s === 0 ? n + a : n + t + a, "");
|
|
40
|
-
}
|
|
41
|
-
const jt = 2;
|
|
42
|
-
function Rr(e, t = 0, n = e.length) {
|
|
43
|
-
const a = e.split(/\r?\n/);
|
|
44
|
-
let s = 0;
|
|
45
|
-
const r = [];
|
|
46
|
-
for (let l = 0; l < a.length; l++)
|
|
47
|
-
if (s += a[l].length + 1, s >= t) {
|
|
48
|
-
for (let i = l - jt; i <= l + jt || n > s; i++) {
|
|
49
|
-
if (i < 0 || i >= a.length)
|
|
50
|
-
continue;
|
|
51
|
-
const u = i + 1;
|
|
52
|
-
r.push(`${u}${" ".repeat(3 - String(u).length)}| ${a[i]}`);
|
|
53
|
-
const _ = a[i].length;
|
|
54
|
-
if (i === l) {
|
|
55
|
-
const p = t - (s - _) + 1, T = Math.max(1, n > s ? _ - p : n - t);
|
|
56
|
-
r.push(" | " + " ".repeat(p) + "^".repeat(T));
|
|
57
|
-
} else if (i > l) {
|
|
58
|
-
if (n > s) {
|
|
59
|
-
const p = Math.max(Math.min(n - s, _), 1);
|
|
60
|
-
r.push(" | " + "^".repeat(p));
|
|
61
|
-
}
|
|
62
|
-
s += _ + 1;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
break;
|
|
66
|
-
}
|
|
67
|
-
return r.join(`
|
|
68
|
-
`);
|
|
69
|
-
}
|
|
70
|
-
function Mt(e) {
|
|
71
|
-
let t = e;
|
|
72
|
-
return () => ++t;
|
|
73
|
-
}
|
|
74
|
-
function q(e, t) {
|
|
75
|
-
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
76
|
-
}
|
|
77
|
-
const Bt = {};
|
|
78
|
-
function kn(e) {
|
|
79
|
-
Bt[e] || (Bt[e] = !0, q(e));
|
|
80
|
-
}
|
|
81
|
-
function Ft() {
|
|
82
|
-
const e = /* @__PURE__ */ new Map();
|
|
83
|
-
return {
|
|
84
|
-
events: e,
|
|
85
|
-
on(n, a) {
|
|
86
|
-
const s = e.get(n);
|
|
87
|
-
s && s.push(a) || e.set(n, [a]);
|
|
88
|
-
},
|
|
89
|
-
off(n, a) {
|
|
90
|
-
const s = e.get(n);
|
|
91
|
-
s && s.splice(s.indexOf(a) >>> 0, 1);
|
|
92
|
-
},
|
|
93
|
-
emit(n, a) {
|
|
94
|
-
(e.get(n) || []).slice().map((s) => s(a)), (e.get("*") || []).slice().map((s) => s(n, a));
|
|
95
|
-
}
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
const ot = (e) => !V(e) || H(e);
|
|
99
|
-
function it(e, t) {
|
|
100
|
-
if (ot(e) || ot(t))
|
|
101
|
-
throw new Error("Invalid value");
|
|
102
|
-
const n = [{ src: e, des: t }];
|
|
103
|
-
for (; n.length; ) {
|
|
104
|
-
const { src: a, des: s } = n.pop();
|
|
105
|
-
Object.keys(a).forEach((r) => {
|
|
106
|
-
ot(a[r]) || ot(s[r]) ? s[r] = a[r] : n.push({ src: a[r], des: s[r] });
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
/*!
|
|
111
|
-
* message-compiler v9.10.1
|
|
112
|
-
* (c) 2024 kazuya kawaguchi
|
|
113
|
-
* Released under the MIT License.
|
|
114
|
-
*/
|
|
115
|
-
function kr(e, t, n) {
|
|
116
|
-
return { line: e, column: t, offset: n };
|
|
117
|
-
}
|
|
118
|
-
function Ot(e, t, n) {
|
|
119
|
-
const a = { start: e, end: t };
|
|
120
|
-
return n != null && (a.source = n), a;
|
|
121
|
-
}
|
|
122
|
-
const yr = /\{([0-9a-zA-Z]+)\}/g;
|
|
123
|
-
function Mr(e, ...t) {
|
|
124
|
-
return t.length === 1 && Fr(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(yr, (n, a) => t.hasOwnProperty(a) ? t[a] : "");
|
|
125
|
-
}
|
|
126
|
-
const yn = Object.assign, Xt = (e) => typeof e == "string", Fr = (e) => e !== null && typeof e == "object";
|
|
127
|
-
function Mn(e, t = "") {
|
|
128
|
-
return e.reduce((n, a, s) => s === 0 ? n + a : n + t + a, "");
|
|
129
|
-
}
|
|
130
|
-
const k = {
|
|
131
|
-
// tokenizer error codes
|
|
132
|
-
EXPECTED_TOKEN: 1,
|
|
133
|
-
INVALID_TOKEN_IN_PLACEHOLDER: 2,
|
|
134
|
-
UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER: 3,
|
|
135
|
-
UNKNOWN_ESCAPE_SEQUENCE: 4,
|
|
136
|
-
INVALID_UNICODE_ESCAPE_SEQUENCE: 5,
|
|
137
|
-
UNBALANCED_CLOSING_BRACE: 6,
|
|
138
|
-
UNTERMINATED_CLOSING_BRACE: 7,
|
|
139
|
-
EMPTY_PLACEHOLDER: 8,
|
|
140
|
-
NOT_ALLOW_NEST_PLACEHOLDER: 9,
|
|
141
|
-
INVALID_LINKED_FORMAT: 10,
|
|
142
|
-
// parser error codes
|
|
143
|
-
MUST_HAVE_MESSAGES_IN_PLURAL: 11,
|
|
144
|
-
UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
|
|
145
|
-
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
146
|
-
UNEXPECTED_LEXICAL_ANALYSIS: 14,
|
|
147
|
-
// generator error codes
|
|
148
|
-
UNHANDLED_CODEGEN_NODE_TYPE: 15,
|
|
149
|
-
// minifier error codes
|
|
150
|
-
UNHANDLED_MINIFIER_NODE_TYPE: 16,
|
|
151
|
-
// Special value for higher-order compilers to pick up the last code
|
|
152
|
-
// to avoid collision of error codes. This should always be kept as the last
|
|
153
|
-
// item.
|
|
154
|
-
__EXTEND_POINT__: 17
|
|
155
|
-
}, Ur = {
|
|
156
|
-
// tokenizer error messages
|
|
157
|
-
[k.EXPECTED_TOKEN]: "Expected token: '{0}'",
|
|
158
|
-
[k.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
|
|
159
|
-
[k.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]: "Unterminated single quote in placeholder",
|
|
160
|
-
[k.UNKNOWN_ESCAPE_SEQUENCE]: "Unknown escape sequence: \\{0}",
|
|
161
|
-
[k.INVALID_UNICODE_ESCAPE_SEQUENCE]: "Invalid unicode escape sequence: {0}",
|
|
162
|
-
[k.UNBALANCED_CLOSING_BRACE]: "Unbalanced closing brace",
|
|
163
|
-
[k.UNTERMINATED_CLOSING_BRACE]: "Unterminated closing brace",
|
|
164
|
-
[k.EMPTY_PLACEHOLDER]: "Empty placeholder",
|
|
165
|
-
[k.NOT_ALLOW_NEST_PLACEHOLDER]: "Not allowed nest placeholder",
|
|
166
|
-
[k.INVALID_LINKED_FORMAT]: "Invalid linked format",
|
|
167
|
-
// parser error messages
|
|
168
|
-
[k.MUST_HAVE_MESSAGES_IN_PLURAL]: "Plural must have messages",
|
|
169
|
-
[k.UNEXPECTED_EMPTY_LINKED_MODIFIER]: "Unexpected empty linked modifier",
|
|
170
|
-
[k.UNEXPECTED_EMPTY_LINKED_KEY]: "Unexpected empty linked key",
|
|
171
|
-
[k.UNEXPECTED_LEXICAL_ANALYSIS]: "Unexpected lexical analysis in token: '{0}'",
|
|
172
|
-
// generator error messages
|
|
173
|
-
[k.UNHANDLED_CODEGEN_NODE_TYPE]: "unhandled codegen node type: '{0}'",
|
|
174
|
-
// minimizer error messages
|
|
175
|
-
[k.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
|
|
176
|
-
};
|
|
177
|
-
function Ke(e, t, n = {}) {
|
|
178
|
-
const { domain: a, messages: s, args: r } = n, l = Mr((s || Ur)[e] || "", ...r || []), i = new SyntaxError(String(l));
|
|
179
|
-
return i.code = e, t && (i.location = t), i.domain = a, i;
|
|
180
|
-
}
|
|
181
|
-
function wr(e) {
|
|
182
|
-
throw e;
|
|
183
|
-
}
|
|
184
|
-
const Vr = /<\/?[\w\s="/.':;#-\/]+>/, $r = (e) => Vr.test(e), ge = " ", Wr = "\r", z = `
|
|
185
|
-
`, Gr = "\u2028", Hr = "\u2029";
|
|
186
|
-
function xr(e) {
|
|
187
|
-
const t = e;
|
|
188
|
-
let n = 0, a = 1, s = 1, r = 0;
|
|
189
|
-
const l = (D) => t[D] === Wr && t[D + 1] === z, i = (D) => t[D] === z, u = (D) => t[D] === Hr, _ = (D) => t[D] === Gr, p = (D) => l(D) || i(D) || u(D) || _(D), T = () => n, d = () => a, I = () => s, R = () => r, S = (D) => l(D) || u(D) || _(D) ? z : t[D], P = () => S(n), f = () => S(n + r);
|
|
190
|
-
function g() {
|
|
191
|
-
return r = 0, p(n) && (a++, s = 0), l(n) && n++, n++, s++, t[n];
|
|
192
|
-
}
|
|
193
|
-
function O() {
|
|
194
|
-
return l(n + r) && r++, r++, t[n + r];
|
|
195
|
-
}
|
|
196
|
-
function N() {
|
|
197
|
-
n = 0, a = 1, s = 1, r = 0;
|
|
198
|
-
}
|
|
199
|
-
function A(D = 0) {
|
|
200
|
-
r = D;
|
|
201
|
-
}
|
|
202
|
-
function h() {
|
|
203
|
-
const D = n + r;
|
|
204
|
-
for (; D !== n; )
|
|
205
|
-
g();
|
|
206
|
-
r = 0;
|
|
207
|
-
}
|
|
208
|
-
return {
|
|
209
|
-
index: T,
|
|
210
|
-
line: d,
|
|
211
|
-
column: I,
|
|
212
|
-
peekOffset: R,
|
|
213
|
-
charAt: S,
|
|
214
|
-
currentChar: P,
|
|
215
|
-
currentPeek: f,
|
|
216
|
-
next: g,
|
|
217
|
-
peek: O,
|
|
218
|
-
reset: N,
|
|
219
|
-
resetPeek: A,
|
|
220
|
-
skipToPeek: h
|
|
221
|
-
};
|
|
222
|
-
}
|
|
223
|
-
const Le = void 0, Yr = ".", Jt = "'", Kr = "tokenizer";
|
|
224
|
-
function jr(e, t = {}) {
|
|
225
|
-
const n = t.location !== !1, a = xr(e), s = () => a.index(), r = () => kr(a.line(), a.column(), a.index()), l = r(), i = s(), u = {
|
|
226
|
-
currentType: 14,
|
|
227
|
-
offset: i,
|
|
228
|
-
startLoc: l,
|
|
229
|
-
endLoc: l,
|
|
230
|
-
lastType: 14,
|
|
231
|
-
lastOffset: i,
|
|
232
|
-
lastStartLoc: l,
|
|
233
|
-
lastEndLoc: l,
|
|
234
|
-
braceNest: 0,
|
|
235
|
-
inLinked: !1,
|
|
236
|
-
text: ""
|
|
237
|
-
}, _ = () => u, { onError: p } = t;
|
|
238
|
-
function T(c, o, m, ...C) {
|
|
239
|
-
const y = _();
|
|
240
|
-
if (o.column += m, o.offset += m, p) {
|
|
241
|
-
const $ = n ? Ot(y.startLoc, o) : null, ue = Ke(c, $, {
|
|
242
|
-
domain: Kr,
|
|
243
|
-
args: C
|
|
244
|
-
});
|
|
245
|
-
p(ue);
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
function d(c, o, m) {
|
|
249
|
-
c.endLoc = r(), c.currentType = o;
|
|
250
|
-
const C = { type: o };
|
|
251
|
-
return n && (C.loc = Ot(c.startLoc, c.endLoc)), m != null && (C.value = m), C;
|
|
252
|
-
}
|
|
253
|
-
const I = (c) => d(
|
|
254
|
-
c,
|
|
255
|
-
14
|
|
256
|
-
/* TokenTypes.EOF */
|
|
257
|
-
);
|
|
258
|
-
function R(c, o) {
|
|
259
|
-
return c.currentChar() === o ? (c.next(), o) : (T(k.EXPECTED_TOKEN, r(), 0, o), "");
|
|
260
|
-
}
|
|
261
|
-
function S(c) {
|
|
262
|
-
let o = "";
|
|
263
|
-
for (; c.currentPeek() === ge || c.currentPeek() === z; )
|
|
264
|
-
o += c.currentPeek(), c.peek();
|
|
265
|
-
return o;
|
|
266
|
-
}
|
|
267
|
-
function P(c) {
|
|
268
|
-
const o = S(c);
|
|
269
|
-
return c.skipToPeek(), o;
|
|
270
|
-
}
|
|
271
|
-
function f(c) {
|
|
272
|
-
if (c === Le)
|
|
273
|
-
return !1;
|
|
274
|
-
const o = c.charCodeAt(0);
|
|
275
|
-
return o >= 97 && o <= 122 || // a-z
|
|
276
|
-
o >= 65 && o <= 90 || // A-Z
|
|
277
|
-
o === 95;
|
|
278
|
-
}
|
|
279
|
-
function g(c) {
|
|
280
|
-
if (c === Le)
|
|
281
|
-
return !1;
|
|
282
|
-
const o = c.charCodeAt(0);
|
|
283
|
-
return o >= 48 && o <= 57;
|
|
284
|
-
}
|
|
285
|
-
function O(c, o) {
|
|
286
|
-
const { currentType: m } = o;
|
|
287
|
-
if (m !== 2)
|
|
288
|
-
return !1;
|
|
289
|
-
S(c);
|
|
290
|
-
const C = f(c.currentPeek());
|
|
291
|
-
return c.resetPeek(), C;
|
|
292
|
-
}
|
|
293
|
-
function N(c, o) {
|
|
294
|
-
const { currentType: m } = o;
|
|
295
|
-
if (m !== 2)
|
|
296
|
-
return !1;
|
|
297
|
-
S(c);
|
|
298
|
-
const C = c.currentPeek() === "-" ? c.peek() : c.currentPeek(), y = g(C);
|
|
299
|
-
return c.resetPeek(), y;
|
|
300
|
-
}
|
|
301
|
-
function A(c, o) {
|
|
302
|
-
const { currentType: m } = o;
|
|
303
|
-
if (m !== 2)
|
|
304
|
-
return !1;
|
|
305
|
-
S(c);
|
|
306
|
-
const C = c.currentPeek() === Jt;
|
|
307
|
-
return c.resetPeek(), C;
|
|
308
|
-
}
|
|
309
|
-
function h(c, o) {
|
|
310
|
-
const { currentType: m } = o;
|
|
311
|
-
if (m !== 8)
|
|
312
|
-
return !1;
|
|
313
|
-
S(c);
|
|
314
|
-
const C = c.currentPeek() === ".";
|
|
315
|
-
return c.resetPeek(), C;
|
|
316
|
-
}
|
|
317
|
-
function D(c, o) {
|
|
318
|
-
const { currentType: m } = o;
|
|
319
|
-
if (m !== 9)
|
|
320
|
-
return !1;
|
|
321
|
-
S(c);
|
|
322
|
-
const C = f(c.currentPeek());
|
|
323
|
-
return c.resetPeek(), C;
|
|
324
|
-
}
|
|
325
|
-
function F(c, o) {
|
|
326
|
-
const { currentType: m } = o;
|
|
327
|
-
if (!(m === 8 || m === 12))
|
|
328
|
-
return !1;
|
|
329
|
-
S(c);
|
|
330
|
-
const C = c.currentPeek() === ":";
|
|
331
|
-
return c.resetPeek(), C;
|
|
332
|
-
}
|
|
333
|
-
function b(c, o) {
|
|
334
|
-
const { currentType: m } = o;
|
|
335
|
-
if (m !== 10)
|
|
336
|
-
return !1;
|
|
337
|
-
const C = () => {
|
|
338
|
-
const $ = c.currentPeek();
|
|
339
|
-
return $ === "{" ? f(c.peek()) : $ === "@" || $ === "%" || $ === "|" || $ === ":" || $ === "." || $ === ge || !$ ? !1 : $ === z ? (c.peek(), C()) : f($);
|
|
340
|
-
}, y = C();
|
|
341
|
-
return c.resetPeek(), y;
|
|
342
|
-
}
|
|
343
|
-
function Y(c) {
|
|
344
|
-
S(c);
|
|
345
|
-
const o = c.currentPeek() === "|";
|
|
346
|
-
return c.resetPeek(), o;
|
|
347
|
-
}
|
|
348
|
-
function le(c) {
|
|
349
|
-
const o = S(c), m = c.currentPeek() === "%" && c.peek() === "{";
|
|
350
|
-
return c.resetPeek(), {
|
|
351
|
-
isModulo: m,
|
|
352
|
-
hasSpace: o.length > 0
|
|
353
|
-
};
|
|
354
|
-
}
|
|
355
|
-
function J(c, o = !0) {
|
|
356
|
-
const m = (y = !1, $ = "", ue = !1) => {
|
|
357
|
-
const de = c.currentPeek();
|
|
358
|
-
return de === "{" ? $ === "%" ? !1 : y : de === "@" || !de ? $ === "%" ? !0 : y : de === "%" ? (c.peek(), m(y, "%", !0)) : de === "|" ? $ === "%" || ue ? !0 : !($ === ge || $ === z) : de === ge ? (c.peek(), m(!0, ge, ue)) : de === z ? (c.peek(), m(!0, z, ue)) : !0;
|
|
359
|
-
}, C = m();
|
|
360
|
-
return o && c.resetPeek(), C;
|
|
361
|
-
}
|
|
362
|
-
function ae(c, o) {
|
|
363
|
-
const m = c.currentChar();
|
|
364
|
-
return m === Le ? Le : o(m) ? (c.next(), m) : null;
|
|
365
|
-
}
|
|
366
|
-
function ke(c) {
|
|
367
|
-
return ae(c, (m) => {
|
|
368
|
-
const C = m.charCodeAt(0);
|
|
369
|
-
return C >= 97 && C <= 122 || // a-z
|
|
370
|
-
C >= 65 && C <= 90 || // A-Z
|
|
371
|
-
C >= 48 && C <= 57 || // 0-9
|
|
372
|
-
C === 95 || // _
|
|
373
|
-
C === 36;
|
|
374
|
-
});
|
|
375
|
-
}
|
|
376
|
-
function je(c) {
|
|
377
|
-
return ae(c, (m) => {
|
|
378
|
-
const C = m.charCodeAt(0);
|
|
379
|
-
return C >= 48 && C <= 57;
|
|
380
|
-
});
|
|
381
|
-
}
|
|
382
|
-
function ce(c) {
|
|
383
|
-
return ae(c, (m) => {
|
|
384
|
-
const C = m.charCodeAt(0);
|
|
385
|
-
return C >= 48 && C <= 57 || // 0-9
|
|
386
|
-
C >= 65 && C <= 70 || // A-F
|
|
387
|
-
C >= 97 && C <= 102;
|
|
388
|
-
});
|
|
389
|
-
}
|
|
390
|
-
function ye(c) {
|
|
391
|
-
let o = "", m = "";
|
|
392
|
-
for (; o = je(c); )
|
|
393
|
-
m += o;
|
|
394
|
-
return m;
|
|
395
|
-
}
|
|
396
|
-
function Be(c) {
|
|
397
|
-
P(c);
|
|
398
|
-
const o = c.currentChar();
|
|
399
|
-
return o !== "%" && T(k.EXPECTED_TOKEN, r(), 0, o), c.next(), "%";
|
|
400
|
-
}
|
|
401
|
-
function Me(c) {
|
|
402
|
-
let o = "";
|
|
403
|
-
for (; ; ) {
|
|
404
|
-
const m = c.currentChar();
|
|
405
|
-
if (m === "{" || m === "}" || m === "@" || m === "|" || !m)
|
|
406
|
-
break;
|
|
407
|
-
if (m === "%")
|
|
408
|
-
if (J(c))
|
|
409
|
-
o += m, c.next();
|
|
410
|
-
else
|
|
411
|
-
break;
|
|
412
|
-
else if (m === ge || m === z)
|
|
413
|
-
if (J(c))
|
|
414
|
-
o += m, c.next();
|
|
415
|
-
else {
|
|
416
|
-
if (Y(c))
|
|
417
|
-
break;
|
|
418
|
-
o += m, c.next();
|
|
419
|
-
}
|
|
420
|
-
else
|
|
421
|
-
o += m, c.next();
|
|
422
|
-
}
|
|
423
|
-
return o;
|
|
424
|
-
}
|
|
425
|
-
function Xe(c) {
|
|
426
|
-
P(c);
|
|
427
|
-
let o = "", m = "";
|
|
428
|
-
for (; o = ke(c); )
|
|
429
|
-
m += o;
|
|
430
|
-
return c.currentChar() === Le && T(k.UNTERMINATED_CLOSING_BRACE, r(), 0), m;
|
|
431
|
-
}
|
|
432
|
-
function Je(c) {
|
|
433
|
-
P(c);
|
|
434
|
-
let o = "";
|
|
435
|
-
return c.currentChar() === "-" ? (c.next(), o += `-${ye(c)}`) : o += ye(c), c.currentChar() === Le && T(k.UNTERMINATED_CLOSING_BRACE, r(), 0), o;
|
|
436
|
-
}
|
|
437
|
-
function oe(c) {
|
|
438
|
-
P(c), R(c, "'");
|
|
439
|
-
let o = "", m = "";
|
|
440
|
-
const C = ($) => $ !== Jt && $ !== z;
|
|
441
|
-
for (; o = ae(c, C); )
|
|
442
|
-
o === "\\" ? m += Fe(c) : m += o;
|
|
443
|
-
const y = c.currentChar();
|
|
444
|
-
return y === z || y === Le ? (T(k.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, r(), 0), y === z && (c.next(), R(c, "'")), m) : (R(c, "'"), m);
|
|
445
|
-
}
|
|
446
|
-
function Fe(c) {
|
|
447
|
-
const o = c.currentChar();
|
|
448
|
-
switch (o) {
|
|
449
|
-
case "\\":
|
|
450
|
-
case "'":
|
|
451
|
-
return c.next(), `\\${o}`;
|
|
452
|
-
case "u":
|
|
453
|
-
return Ue(c, o, 4);
|
|
454
|
-
case "U":
|
|
455
|
-
return Ue(c, o, 6);
|
|
456
|
-
default:
|
|
457
|
-
return T(k.UNKNOWN_ESCAPE_SEQUENCE, r(), 0, o), "";
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
function Ue(c, o, m) {
|
|
461
|
-
R(c, o);
|
|
462
|
-
let C = "";
|
|
463
|
-
for (let y = 0; y < m; y++) {
|
|
464
|
-
const $ = ce(c);
|
|
465
|
-
if (!$) {
|
|
466
|
-
T(k.INVALID_UNICODE_ESCAPE_SEQUENCE, r(), 0, `\\${o}${C}${c.currentChar()}`);
|
|
467
|
-
break;
|
|
468
|
-
}
|
|
469
|
-
C += $;
|
|
470
|
-
}
|
|
471
|
-
return `\\${o}${C}`;
|
|
472
|
-
}
|
|
473
|
-
function Qe(c) {
|
|
474
|
-
P(c);
|
|
475
|
-
let o = "", m = "";
|
|
476
|
-
const C = (y) => y !== "{" && y !== "}" && y !== ge && y !== z;
|
|
477
|
-
for (; o = ae(c, C); )
|
|
478
|
-
m += o;
|
|
479
|
-
return m;
|
|
480
|
-
}
|
|
481
|
-
function qe(c) {
|
|
482
|
-
let o = "", m = "";
|
|
483
|
-
for (; o = ke(c); )
|
|
484
|
-
m += o;
|
|
485
|
-
return m;
|
|
486
|
-
}
|
|
487
|
-
function Ze(c) {
|
|
488
|
-
const o = (m = !1, C) => {
|
|
489
|
-
const y = c.currentChar();
|
|
490
|
-
return y === "{" || y === "%" || y === "@" || y === "|" || y === "(" || y === ")" || !y || y === ge ? C : y === z || y === Yr ? (C += y, c.next(), o(m, C)) : (C += y, c.next(), o(!0, C));
|
|
491
|
-
};
|
|
492
|
-
return o(!1, "");
|
|
493
|
-
}
|
|
494
|
-
function we(c) {
|
|
495
|
-
P(c);
|
|
496
|
-
const o = R(
|
|
497
|
-
c,
|
|
498
|
-
"|"
|
|
499
|
-
/* TokenChars.Pipe */
|
|
500
|
-
);
|
|
501
|
-
return P(c), o;
|
|
502
|
-
}
|
|
503
|
-
function he(c, o) {
|
|
504
|
-
let m = null;
|
|
505
|
-
switch (c.currentChar()) {
|
|
506
|
-
case "{":
|
|
507
|
-
return o.braceNest >= 1 && T(k.NOT_ALLOW_NEST_PLACEHOLDER, r(), 0), c.next(), m = d(
|
|
508
|
-
o,
|
|
509
|
-
2,
|
|
510
|
-
"{"
|
|
511
|
-
/* TokenChars.BraceLeft */
|
|
512
|
-
), P(c), o.braceNest++, m;
|
|
513
|
-
case "}":
|
|
514
|
-
return o.braceNest > 0 && o.currentType === 2 && T(k.EMPTY_PLACEHOLDER, r(), 0), c.next(), m = d(
|
|
515
|
-
o,
|
|
516
|
-
3,
|
|
517
|
-
"}"
|
|
518
|
-
/* TokenChars.BraceRight */
|
|
519
|
-
), o.braceNest--, o.braceNest > 0 && P(c), o.inLinked && o.braceNest === 0 && (o.inLinked = !1), m;
|
|
520
|
-
case "@":
|
|
521
|
-
return o.braceNest > 0 && T(k.UNTERMINATED_CLOSING_BRACE, r(), 0), m = Te(c, o) || I(o), o.braceNest = 0, m;
|
|
522
|
-
default:
|
|
523
|
-
let y = !0, $ = !0, ue = !0;
|
|
524
|
-
if (Y(c))
|
|
525
|
-
return o.braceNest > 0 && T(k.UNTERMINATED_CLOSING_BRACE, r(), 0), m = d(o, 1, we(c)), o.braceNest = 0, o.inLinked = !1, m;
|
|
526
|
-
if (o.braceNest > 0 && (o.currentType === 5 || o.currentType === 6 || o.currentType === 7))
|
|
527
|
-
return T(k.UNTERMINATED_CLOSING_BRACE, r(), 0), o.braceNest = 0, Ae(c, o);
|
|
528
|
-
if (y = O(c, o))
|
|
529
|
-
return m = d(o, 5, Xe(c)), P(c), m;
|
|
530
|
-
if ($ = N(c, o))
|
|
531
|
-
return m = d(o, 6, Je(c)), P(c), m;
|
|
532
|
-
if (ue = A(c, o))
|
|
533
|
-
return m = d(o, 7, oe(c)), P(c), m;
|
|
534
|
-
if (!y && !$ && !ue)
|
|
535
|
-
return m = d(o, 13, Qe(c)), T(k.INVALID_TOKEN_IN_PLACEHOLDER, r(), 0, m.value), P(c), m;
|
|
536
|
-
break;
|
|
537
|
-
}
|
|
538
|
-
return m;
|
|
539
|
-
}
|
|
540
|
-
function Te(c, o) {
|
|
541
|
-
const { currentType: m } = o;
|
|
542
|
-
let C = null;
|
|
543
|
-
const y = c.currentChar();
|
|
544
|
-
switch ((m === 8 || m === 9 || m === 12 || m === 10) && (y === z || y === ge) && T(k.INVALID_LINKED_FORMAT, r(), 0), y) {
|
|
545
|
-
case "@":
|
|
546
|
-
return c.next(), C = d(
|
|
547
|
-
o,
|
|
548
|
-
8,
|
|
549
|
-
"@"
|
|
550
|
-
/* TokenChars.LinkedAlias */
|
|
551
|
-
), o.inLinked = !0, C;
|
|
552
|
-
case ".":
|
|
553
|
-
return P(c), c.next(), d(
|
|
554
|
-
o,
|
|
555
|
-
9,
|
|
556
|
-
"."
|
|
557
|
-
/* TokenChars.LinkedDot */
|
|
558
|
-
);
|
|
559
|
-
case ":":
|
|
560
|
-
return P(c), c.next(), d(
|
|
561
|
-
o,
|
|
562
|
-
10,
|
|
563
|
-
":"
|
|
564
|
-
/* TokenChars.LinkedDelimiter */
|
|
565
|
-
);
|
|
566
|
-
default:
|
|
567
|
-
return Y(c) ? (C = d(o, 1, we(c)), o.braceNest = 0, o.inLinked = !1, C) : h(c, o) || F(c, o) ? (P(c), Te(c, o)) : D(c, o) ? (P(c), d(o, 12, qe(c))) : b(c, o) ? (P(c), y === "{" ? he(c, o) || C : d(o, 11, Ze(c))) : (m === 8 && T(k.INVALID_LINKED_FORMAT, r(), 0), o.braceNest = 0, o.inLinked = !1, Ae(c, o));
|
|
568
|
-
}
|
|
569
|
-
}
|
|
570
|
-
function Ae(c, o) {
|
|
571
|
-
let m = {
|
|
572
|
-
type: 14
|
|
573
|
-
/* TokenTypes.EOF */
|
|
574
|
-
};
|
|
575
|
-
if (o.braceNest > 0)
|
|
576
|
-
return he(c, o) || I(o);
|
|
577
|
-
if (o.inLinked)
|
|
578
|
-
return Te(c, o) || I(o);
|
|
579
|
-
switch (c.currentChar()) {
|
|
580
|
-
case "{":
|
|
581
|
-
return he(c, o) || I(o);
|
|
582
|
-
case "}":
|
|
583
|
-
return T(k.UNBALANCED_CLOSING_BRACE, r(), 0), c.next(), d(
|
|
584
|
-
o,
|
|
585
|
-
3,
|
|
586
|
-
"}"
|
|
587
|
-
/* TokenChars.BraceRight */
|
|
588
|
-
);
|
|
589
|
-
case "@":
|
|
590
|
-
return Te(c, o) || I(o);
|
|
591
|
-
default:
|
|
592
|
-
if (Y(c))
|
|
593
|
-
return m = d(o, 1, we(c)), o.braceNest = 0, o.inLinked = !1, m;
|
|
594
|
-
const { isModulo: y, hasSpace: $ } = le(c);
|
|
595
|
-
if (y)
|
|
596
|
-
return $ ? d(o, 0, Me(c)) : d(o, 4, Be(c));
|
|
597
|
-
if (J(c))
|
|
598
|
-
return d(o, 0, Me(c));
|
|
599
|
-
break;
|
|
600
|
-
}
|
|
601
|
-
return m;
|
|
602
|
-
}
|
|
603
|
-
function ze() {
|
|
604
|
-
const { currentType: c, offset: o, startLoc: m, endLoc: C } = u;
|
|
605
|
-
return u.lastType = c, u.lastOffset = o, u.lastStartLoc = m, u.lastEndLoc = C, u.offset = s(), u.startLoc = r(), a.currentChar() === Le ? d(
|
|
606
|
-
u,
|
|
607
|
-
14
|
|
608
|
-
/* TokenTypes.EOF */
|
|
609
|
-
) : Ae(a, u);
|
|
610
|
-
}
|
|
611
|
-
return {
|
|
612
|
-
nextToken: ze,
|
|
613
|
-
currentOffset: s,
|
|
614
|
-
currentPosition: r,
|
|
615
|
-
context: _
|
|
616
|
-
};
|
|
617
|
-
}
|
|
618
|
-
const Br = "parser", Xr = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
619
|
-
function Jr(e, t, n) {
|
|
620
|
-
switch (e) {
|
|
621
|
-
case "\\\\":
|
|
622
|
-
return "\\";
|
|
623
|
-
case "\\'":
|
|
624
|
-
return "'";
|
|
625
|
-
default: {
|
|
626
|
-
const a = parseInt(t || n, 16);
|
|
627
|
-
return a <= 55295 || a >= 57344 ? String.fromCodePoint(a) : "�";
|
|
628
|
-
}
|
|
629
|
-
}
|
|
630
|
-
}
|
|
631
|
-
function Qr(e = {}) {
|
|
632
|
-
const t = e.location !== !1, { onError: n } = e;
|
|
633
|
-
function a(f, g, O, N, ...A) {
|
|
634
|
-
const h = f.currentPosition();
|
|
635
|
-
if (h.offset += N, h.column += N, n) {
|
|
636
|
-
const D = t ? Ot(O, h) : null, F = Ke(g, D, {
|
|
637
|
-
domain: Br,
|
|
638
|
-
args: A
|
|
639
|
-
});
|
|
640
|
-
n(F);
|
|
641
|
-
}
|
|
642
|
-
}
|
|
643
|
-
function s(f, g, O) {
|
|
644
|
-
const N = { type: f };
|
|
645
|
-
return t && (N.start = g, N.end = g, N.loc = { start: O, end: O }), N;
|
|
646
|
-
}
|
|
647
|
-
function r(f, g, O, N) {
|
|
648
|
-
N && (f.type = N), t && (f.end = g, f.loc && (f.loc.end = O));
|
|
649
|
-
}
|
|
650
|
-
function l(f, g) {
|
|
651
|
-
const O = f.context(), N = s(3, O.offset, O.startLoc);
|
|
652
|
-
return N.value = g, r(N, f.currentOffset(), f.currentPosition()), N;
|
|
653
|
-
}
|
|
654
|
-
function i(f, g) {
|
|
655
|
-
const O = f.context(), { lastOffset: N, lastStartLoc: A } = O, h = s(5, N, A);
|
|
656
|
-
return h.index = parseInt(g, 10), f.nextToken(), r(h, f.currentOffset(), f.currentPosition()), h;
|
|
657
|
-
}
|
|
658
|
-
function u(f, g) {
|
|
659
|
-
const O = f.context(), { lastOffset: N, lastStartLoc: A } = O, h = s(4, N, A);
|
|
660
|
-
return h.key = g, f.nextToken(), r(h, f.currentOffset(), f.currentPosition()), h;
|
|
661
|
-
}
|
|
662
|
-
function _(f, g) {
|
|
663
|
-
const O = f.context(), { lastOffset: N, lastStartLoc: A } = O, h = s(9, N, A);
|
|
664
|
-
return h.value = g.replace(Xr, Jr), f.nextToken(), r(h, f.currentOffset(), f.currentPosition()), h;
|
|
665
|
-
}
|
|
666
|
-
function p(f) {
|
|
667
|
-
const g = f.nextToken(), O = f.context(), { lastOffset: N, lastStartLoc: A } = O, h = s(8, N, A);
|
|
668
|
-
return g.type !== 12 ? (a(f, k.UNEXPECTED_EMPTY_LINKED_MODIFIER, O.lastStartLoc, 0), h.value = "", r(h, N, A), {
|
|
669
|
-
nextConsumeToken: g,
|
|
670
|
-
node: h
|
|
671
|
-
}) : (g.value == null && a(f, k.UNEXPECTED_LEXICAL_ANALYSIS, O.lastStartLoc, 0, fe(g)), h.value = g.value || "", r(h, f.currentOffset(), f.currentPosition()), {
|
|
672
|
-
node: h
|
|
673
|
-
});
|
|
674
|
-
}
|
|
675
|
-
function T(f, g) {
|
|
676
|
-
const O = f.context(), N = s(7, O.offset, O.startLoc);
|
|
677
|
-
return N.value = g, r(N, f.currentOffset(), f.currentPosition()), N;
|
|
678
|
-
}
|
|
679
|
-
function d(f) {
|
|
680
|
-
const g = f.context(), O = s(6, g.offset, g.startLoc);
|
|
681
|
-
let N = f.nextToken();
|
|
682
|
-
if (N.type === 9) {
|
|
683
|
-
const A = p(f);
|
|
684
|
-
O.modifier = A.node, N = A.nextConsumeToken || f.nextToken();
|
|
685
|
-
}
|
|
686
|
-
switch (N.type !== 10 && a(f, k.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, fe(N)), N = f.nextToken(), N.type === 2 && (N = f.nextToken()), N.type) {
|
|
687
|
-
case 11:
|
|
688
|
-
N.value == null && a(f, k.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, fe(N)), O.key = T(f, N.value || "");
|
|
689
|
-
break;
|
|
690
|
-
case 5:
|
|
691
|
-
N.value == null && a(f, k.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, fe(N)), O.key = u(f, N.value || "");
|
|
692
|
-
break;
|
|
693
|
-
case 6:
|
|
694
|
-
N.value == null && a(f, k.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, fe(N)), O.key = i(f, N.value || "");
|
|
695
|
-
break;
|
|
696
|
-
case 7:
|
|
697
|
-
N.value == null && a(f, k.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, fe(N)), O.key = _(f, N.value || "");
|
|
698
|
-
break;
|
|
699
|
-
default:
|
|
700
|
-
a(f, k.UNEXPECTED_EMPTY_LINKED_KEY, g.lastStartLoc, 0);
|
|
701
|
-
const A = f.context(), h = s(7, A.offset, A.startLoc);
|
|
702
|
-
return h.value = "", r(h, A.offset, A.startLoc), O.key = h, r(O, A.offset, A.startLoc), {
|
|
703
|
-
nextConsumeToken: N,
|
|
704
|
-
node: O
|
|
705
|
-
};
|
|
706
|
-
}
|
|
707
|
-
return r(O, f.currentOffset(), f.currentPosition()), {
|
|
708
|
-
node: O
|
|
709
|
-
};
|
|
710
|
-
}
|
|
711
|
-
function I(f) {
|
|
712
|
-
const g = f.context(), O = g.currentType === 1 ? f.currentOffset() : g.offset, N = g.currentType === 1 ? g.endLoc : g.startLoc, A = s(2, O, N);
|
|
713
|
-
A.items = [];
|
|
714
|
-
let h = null;
|
|
715
|
-
do {
|
|
716
|
-
const b = h || f.nextToken();
|
|
717
|
-
switch (h = null, b.type) {
|
|
718
|
-
case 0:
|
|
719
|
-
b.value == null && a(f, k.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, fe(b)), A.items.push(l(f, b.value || ""));
|
|
720
|
-
break;
|
|
721
|
-
case 6:
|
|
722
|
-
b.value == null && a(f, k.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, fe(b)), A.items.push(i(f, b.value || ""));
|
|
723
|
-
break;
|
|
724
|
-
case 5:
|
|
725
|
-
b.value == null && a(f, k.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, fe(b)), A.items.push(u(f, b.value || ""));
|
|
726
|
-
break;
|
|
727
|
-
case 7:
|
|
728
|
-
b.value == null && a(f, k.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, fe(b)), A.items.push(_(f, b.value || ""));
|
|
729
|
-
break;
|
|
730
|
-
case 8:
|
|
731
|
-
const Y = d(f);
|
|
732
|
-
A.items.push(Y.node), h = Y.nextConsumeToken || null;
|
|
733
|
-
break;
|
|
734
|
-
}
|
|
735
|
-
} while (g.currentType !== 14 && g.currentType !== 1);
|
|
736
|
-
const D = g.currentType === 1 ? g.lastOffset : f.currentOffset(), F = g.currentType === 1 ? g.lastEndLoc : f.currentPosition();
|
|
737
|
-
return r(A, D, F), A;
|
|
738
|
-
}
|
|
739
|
-
function R(f, g, O, N) {
|
|
740
|
-
const A = f.context();
|
|
741
|
-
let h = N.items.length === 0;
|
|
742
|
-
const D = s(1, g, O);
|
|
743
|
-
D.cases = [], D.cases.push(N);
|
|
744
|
-
do {
|
|
745
|
-
const F = I(f);
|
|
746
|
-
h || (h = F.items.length === 0), D.cases.push(F);
|
|
747
|
-
} while (A.currentType !== 14);
|
|
748
|
-
return h && a(f, k.MUST_HAVE_MESSAGES_IN_PLURAL, O, 0), r(D, f.currentOffset(), f.currentPosition()), D;
|
|
749
|
-
}
|
|
750
|
-
function S(f) {
|
|
751
|
-
const g = f.context(), { offset: O, startLoc: N } = g, A = I(f);
|
|
752
|
-
return g.currentType === 14 ? A : R(f, O, N, A);
|
|
753
|
-
}
|
|
754
|
-
function P(f) {
|
|
755
|
-
const g = jr(f, yn({}, e)), O = g.context(), N = s(0, O.offset, O.startLoc);
|
|
756
|
-
return t && N.loc && (N.loc.source = f), N.body = S(g), e.onCacheKey && (N.cacheKey = e.onCacheKey(f)), O.currentType !== 14 && a(g, k.UNEXPECTED_LEXICAL_ANALYSIS, O.lastStartLoc, 0, f[O.offset] || ""), r(N, g.currentOffset(), g.currentPosition()), N;
|
|
757
|
-
}
|
|
758
|
-
return { parse: P };
|
|
759
|
-
}
|
|
760
|
-
function fe(e) {
|
|
761
|
-
if (e.type === 14)
|
|
762
|
-
return "EOF";
|
|
763
|
-
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
764
|
-
return t.length > 10 ? t.slice(0, 9) + "…" : t;
|
|
765
|
-
}
|
|
766
|
-
function qr(e, t = {}) {
|
|
767
|
-
const n = {
|
|
768
|
-
ast: e,
|
|
769
|
-
helpers: /* @__PURE__ */ new Set()
|
|
770
|
-
};
|
|
771
|
-
return { context: () => n, helper: (r) => (n.helpers.add(r), r) };
|
|
772
|
-
}
|
|
773
|
-
function Qt(e, t) {
|
|
774
|
-
for (let n = 0; n < e.length; n++)
|
|
775
|
-
Ut(e[n], t);
|
|
776
|
-
}
|
|
777
|
-
function Ut(e, t) {
|
|
778
|
-
switch (e.type) {
|
|
779
|
-
case 1:
|
|
780
|
-
Qt(e.cases, t), t.helper(
|
|
781
|
-
"plural"
|
|
782
|
-
/* HelperNameMap.PLURAL */
|
|
783
|
-
);
|
|
784
|
-
break;
|
|
785
|
-
case 2:
|
|
786
|
-
Qt(e.items, t);
|
|
787
|
-
break;
|
|
788
|
-
case 6:
|
|
789
|
-
Ut(e.key, t), t.helper(
|
|
790
|
-
"linked"
|
|
791
|
-
/* HelperNameMap.LINKED */
|
|
792
|
-
), t.helper(
|
|
793
|
-
"type"
|
|
794
|
-
/* HelperNameMap.TYPE */
|
|
795
|
-
);
|
|
796
|
-
break;
|
|
797
|
-
case 5:
|
|
798
|
-
t.helper(
|
|
799
|
-
"interpolate"
|
|
800
|
-
/* HelperNameMap.INTERPOLATE */
|
|
801
|
-
), t.helper(
|
|
802
|
-
"list"
|
|
803
|
-
/* HelperNameMap.LIST */
|
|
804
|
-
);
|
|
805
|
-
break;
|
|
806
|
-
case 4:
|
|
807
|
-
t.helper(
|
|
808
|
-
"interpolate"
|
|
809
|
-
/* HelperNameMap.INTERPOLATE */
|
|
810
|
-
), t.helper(
|
|
811
|
-
"named"
|
|
812
|
-
/* HelperNameMap.NAMED */
|
|
813
|
-
);
|
|
814
|
-
break;
|
|
815
|
-
}
|
|
816
|
-
}
|
|
817
|
-
function Zr(e, t = {}) {
|
|
818
|
-
const n = qr(e);
|
|
819
|
-
n.helper(
|
|
820
|
-
"normalize"
|
|
821
|
-
/* HelperNameMap.NORMALIZE */
|
|
822
|
-
), e.body && Ut(e.body, n);
|
|
823
|
-
const a = n.context();
|
|
824
|
-
e.helpers = Array.from(a.helpers);
|
|
825
|
-
}
|
|
826
|
-
function zr(e) {
|
|
827
|
-
const t = e.body;
|
|
828
|
-
return t.type === 2 ? qt(t) : t.cases.forEach((n) => qt(n)), e;
|
|
829
|
-
}
|
|
830
|
-
function qt(e) {
|
|
831
|
-
if (e.items.length === 1) {
|
|
832
|
-
const t = e.items[0];
|
|
833
|
-
(t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
|
|
834
|
-
} else {
|
|
835
|
-
const t = [];
|
|
836
|
-
for (let n = 0; n < e.items.length; n++) {
|
|
837
|
-
const a = e.items[n];
|
|
838
|
-
if (!(a.type === 3 || a.type === 9) || a.value == null)
|
|
839
|
-
break;
|
|
840
|
-
t.push(a.value);
|
|
841
|
-
}
|
|
842
|
-
if (t.length === e.items.length) {
|
|
843
|
-
e.static = Mn(t);
|
|
844
|
-
for (let n = 0; n < e.items.length; n++) {
|
|
845
|
-
const a = e.items[n];
|
|
846
|
-
(a.type === 3 || a.type === 9) && delete a.value;
|
|
847
|
-
}
|
|
848
|
-
}
|
|
849
|
-
}
|
|
850
|
-
}
|
|
851
|
-
const ea = "minifier";
|
|
852
|
-
function Ge(e) {
|
|
853
|
-
switch (e.t = e.type, e.type) {
|
|
854
|
-
case 0:
|
|
855
|
-
const t = e;
|
|
856
|
-
Ge(t.body), t.b = t.body, delete t.body;
|
|
857
|
-
break;
|
|
858
|
-
case 1:
|
|
859
|
-
const n = e, a = n.cases;
|
|
860
|
-
for (let p = 0; p < a.length; p++)
|
|
861
|
-
Ge(a[p]);
|
|
862
|
-
n.c = a, delete n.cases;
|
|
863
|
-
break;
|
|
864
|
-
case 2:
|
|
865
|
-
const s = e, r = s.items;
|
|
866
|
-
for (let p = 0; p < r.length; p++)
|
|
867
|
-
Ge(r[p]);
|
|
868
|
-
s.i = r, delete s.items, s.static && (s.s = s.static, delete s.static);
|
|
869
|
-
break;
|
|
870
|
-
case 3:
|
|
871
|
-
case 9:
|
|
872
|
-
case 8:
|
|
873
|
-
case 7:
|
|
874
|
-
const l = e;
|
|
875
|
-
l.value && (l.v = l.value, delete l.value);
|
|
876
|
-
break;
|
|
877
|
-
case 6:
|
|
878
|
-
const i = e;
|
|
879
|
-
Ge(i.key), i.k = i.key, delete i.key, i.modifier && (Ge(i.modifier), i.m = i.modifier, delete i.modifier);
|
|
880
|
-
break;
|
|
881
|
-
case 5:
|
|
882
|
-
const u = e;
|
|
883
|
-
u.i = u.index, delete u.index;
|
|
884
|
-
break;
|
|
885
|
-
case 4:
|
|
886
|
-
const _ = e;
|
|
887
|
-
_.k = _.key, delete _.key;
|
|
888
|
-
break;
|
|
889
|
-
default:
|
|
890
|
-
throw Ke(k.UNHANDLED_MINIFIER_NODE_TYPE, null, {
|
|
891
|
-
domain: ea,
|
|
892
|
-
args: [e.type]
|
|
893
|
-
});
|
|
894
|
-
}
|
|
895
|
-
delete e.type;
|
|
896
|
-
}
|
|
897
|
-
const ta = "parser";
|
|
898
|
-
function na(e, t) {
|
|
899
|
-
const { sourceMap: n, filename: a, breakLineCode: s, needIndent: r } = t, l = t.location !== !1, i = {
|
|
900
|
-
filename: a,
|
|
901
|
-
code: "",
|
|
902
|
-
column: 1,
|
|
903
|
-
line: 1,
|
|
904
|
-
offset: 0,
|
|
905
|
-
map: void 0,
|
|
906
|
-
breakLineCode: s,
|
|
907
|
-
needIndent: r,
|
|
908
|
-
indentLevel: 0
|
|
909
|
-
};
|
|
910
|
-
l && e.loc && (i.source = e.loc.source);
|
|
911
|
-
const u = () => i;
|
|
912
|
-
function _(P, f) {
|
|
913
|
-
i.code += P;
|
|
914
|
-
}
|
|
915
|
-
function p(P, f = !0) {
|
|
916
|
-
const g = f ? s : "";
|
|
917
|
-
_(r ? g + " ".repeat(P) : g);
|
|
918
|
-
}
|
|
919
|
-
function T(P = !0) {
|
|
920
|
-
const f = ++i.indentLevel;
|
|
921
|
-
P && p(f);
|
|
922
|
-
}
|
|
923
|
-
function d(P = !0) {
|
|
924
|
-
const f = --i.indentLevel;
|
|
925
|
-
P && p(f);
|
|
926
|
-
}
|
|
927
|
-
function I() {
|
|
928
|
-
p(i.indentLevel);
|
|
929
|
-
}
|
|
930
|
-
return {
|
|
931
|
-
context: u,
|
|
932
|
-
push: _,
|
|
933
|
-
indent: T,
|
|
934
|
-
deindent: d,
|
|
935
|
-
newline: I,
|
|
936
|
-
helper: (P) => `_${P}`,
|
|
937
|
-
needIndent: () => i.needIndent
|
|
938
|
-
};
|
|
939
|
-
}
|
|
940
|
-
function ra(e, t) {
|
|
941
|
-
const { helper: n } = e;
|
|
942
|
-
e.push(`${n(
|
|
943
|
-
"linked"
|
|
944
|
-
/* HelperNameMap.LINKED */
|
|
945
|
-
)}(`), xe(e, t.key), t.modifier ? (e.push(", "), xe(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
946
|
-
}
|
|
947
|
-
function aa(e, t) {
|
|
948
|
-
const { helper: n, needIndent: a } = e;
|
|
949
|
-
e.push(`${n(
|
|
950
|
-
"normalize"
|
|
951
|
-
/* HelperNameMap.NORMALIZE */
|
|
952
|
-
)}([`), e.indent(a());
|
|
953
|
-
const s = t.items.length;
|
|
954
|
-
for (let r = 0; r < s && (xe(e, t.items[r]), r !== s - 1); r++)
|
|
955
|
-
e.push(", ");
|
|
956
|
-
e.deindent(a()), e.push("])");
|
|
957
|
-
}
|
|
958
|
-
function sa(e, t) {
|
|
959
|
-
const { helper: n, needIndent: a } = e;
|
|
960
|
-
if (t.cases.length > 1) {
|
|
961
|
-
e.push(`${n(
|
|
962
|
-
"plural"
|
|
963
|
-
/* HelperNameMap.PLURAL */
|
|
964
|
-
)}([`), e.indent(a());
|
|
965
|
-
const s = t.cases.length;
|
|
966
|
-
for (let r = 0; r < s && (xe(e, t.cases[r]), r !== s - 1); r++)
|
|
967
|
-
e.push(", ");
|
|
968
|
-
e.deindent(a()), e.push("])");
|
|
969
|
-
}
|
|
970
|
-
}
|
|
971
|
-
function la(e, t) {
|
|
972
|
-
t.body ? xe(e, t.body) : e.push("null");
|
|
973
|
-
}
|
|
974
|
-
function xe(e, t) {
|
|
975
|
-
const { helper: n } = e;
|
|
976
|
-
switch (t.type) {
|
|
977
|
-
case 0:
|
|
978
|
-
la(e, t);
|
|
979
|
-
break;
|
|
980
|
-
case 1:
|
|
981
|
-
sa(e, t);
|
|
982
|
-
break;
|
|
983
|
-
case 2:
|
|
984
|
-
aa(e, t);
|
|
985
|
-
break;
|
|
986
|
-
case 6:
|
|
987
|
-
ra(e, t);
|
|
988
|
-
break;
|
|
989
|
-
case 8:
|
|
990
|
-
e.push(JSON.stringify(t.value), t);
|
|
991
|
-
break;
|
|
992
|
-
case 7:
|
|
993
|
-
e.push(JSON.stringify(t.value), t);
|
|
994
|
-
break;
|
|
995
|
-
case 5:
|
|
996
|
-
e.push(`${n(
|
|
997
|
-
"interpolate"
|
|
998
|
-
/* HelperNameMap.INTERPOLATE */
|
|
999
|
-
)}(${n(
|
|
1000
|
-
"list"
|
|
1001
|
-
/* HelperNameMap.LIST */
|
|
1002
|
-
)}(${t.index}))`, t);
|
|
1003
|
-
break;
|
|
1004
|
-
case 4:
|
|
1005
|
-
e.push(`${n(
|
|
1006
|
-
"interpolate"
|
|
1007
|
-
/* HelperNameMap.INTERPOLATE */
|
|
1008
|
-
)}(${n(
|
|
1009
|
-
"named"
|
|
1010
|
-
/* HelperNameMap.NAMED */
|
|
1011
|
-
)}(${JSON.stringify(t.key)}))`, t);
|
|
1012
|
-
break;
|
|
1013
|
-
case 9:
|
|
1014
|
-
e.push(JSON.stringify(t.value), t);
|
|
1015
|
-
break;
|
|
1016
|
-
case 3:
|
|
1017
|
-
e.push(JSON.stringify(t.value), t);
|
|
1018
|
-
break;
|
|
1019
|
-
default:
|
|
1020
|
-
throw Ke(k.UNHANDLED_CODEGEN_NODE_TYPE, null, {
|
|
1021
|
-
domain: ta,
|
|
1022
|
-
args: [t.type]
|
|
1023
|
-
});
|
|
1024
|
-
}
|
|
1025
|
-
}
|
|
1026
|
-
const oa = (e, t = {}) => {
|
|
1027
|
-
const n = Xt(t.mode) ? t.mode : "normal", a = Xt(t.filename) ? t.filename : "message.intl", s = !!t.sourceMap, r = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
1028
|
-
`, l = t.needIndent ? t.needIndent : n !== "arrow", i = e.helpers || [], u = na(e, {
|
|
1029
|
-
mode: n,
|
|
1030
|
-
filename: a,
|
|
1031
|
-
sourceMap: s,
|
|
1032
|
-
breakLineCode: r,
|
|
1033
|
-
needIndent: l
|
|
1034
|
-
});
|
|
1035
|
-
u.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), u.indent(l), i.length > 0 && (u.push(`const { ${Mn(i.map((T) => `${T}: _${T}`), ", ")} } = ctx`), u.newline()), u.push("return "), xe(u, e), u.deindent(l), u.push("}"), delete e.helpers;
|
|
1036
|
-
const { code: _, map: p } = u.context();
|
|
1037
|
-
return {
|
|
1038
|
-
ast: e,
|
|
1039
|
-
code: _,
|
|
1040
|
-
map: p ? p.toJSON() : void 0
|
|
1041
|
-
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1042
|
-
};
|
|
1043
|
-
};
|
|
1044
|
-
function ia(e, t = {}) {
|
|
1045
|
-
const n = yn({}, t), a = !!n.jit, s = !!n.minify, r = n.optimize == null ? !0 : n.optimize, i = Qr(n).parse(e);
|
|
1046
|
-
return a ? (r && zr(i), s && Ge(i), { ast: i, code: "" }) : (Zr(i, n), oa(i, n));
|
|
1047
|
-
}
|
|
1048
|
-
/*!
|
|
1049
|
-
* core-base v9.10.1
|
|
1050
|
-
* (c) 2024 kazuya kawaguchi
|
|
1051
|
-
* Released under the MIT License.
|
|
1052
|
-
*/
|
|
1053
|
-
function ca() {
|
|
1054
|
-
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (pe().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_JIT_COMPILATION__ != "boolean" && (pe().__INTLIFY_JIT_COMPILATION__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (pe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
1055
|
-
}
|
|
1056
|
-
const be = [];
|
|
1057
|
-
be[
|
|
1058
|
-
0
|
|
1059
|
-
/* States.BEFORE_PATH */
|
|
1060
|
-
] = {
|
|
1061
|
-
w: [
|
|
1062
|
-
0
|
|
1063
|
-
/* States.BEFORE_PATH */
|
|
1064
|
-
],
|
|
1065
|
-
i: [
|
|
1066
|
-
3,
|
|
1067
|
-
0
|
|
1068
|
-
/* Actions.APPEND */
|
|
1069
|
-
],
|
|
1070
|
-
"[": [
|
|
1071
|
-
4
|
|
1072
|
-
/* States.IN_SUB_PATH */
|
|
1073
|
-
],
|
|
1074
|
-
o: [
|
|
1075
|
-
7
|
|
1076
|
-
/* States.AFTER_PATH */
|
|
1077
|
-
]
|
|
1078
|
-
};
|
|
1079
|
-
be[
|
|
1080
|
-
1
|
|
1081
|
-
/* States.IN_PATH */
|
|
1082
|
-
] = {
|
|
1083
|
-
w: [
|
|
1084
|
-
1
|
|
1085
|
-
/* States.IN_PATH */
|
|
1086
|
-
],
|
|
1087
|
-
".": [
|
|
1088
|
-
2
|
|
1089
|
-
/* States.BEFORE_IDENT */
|
|
1090
|
-
],
|
|
1091
|
-
"[": [
|
|
1092
|
-
4
|
|
1093
|
-
/* States.IN_SUB_PATH */
|
|
1094
|
-
],
|
|
1095
|
-
o: [
|
|
1096
|
-
7
|
|
1097
|
-
/* States.AFTER_PATH */
|
|
1098
|
-
]
|
|
1099
|
-
};
|
|
1100
|
-
be[
|
|
1101
|
-
2
|
|
1102
|
-
/* States.BEFORE_IDENT */
|
|
1103
|
-
] = {
|
|
1104
|
-
w: [
|
|
1105
|
-
2
|
|
1106
|
-
/* States.BEFORE_IDENT */
|
|
1107
|
-
],
|
|
1108
|
-
i: [
|
|
1109
|
-
3,
|
|
1110
|
-
0
|
|
1111
|
-
/* Actions.APPEND */
|
|
1112
|
-
],
|
|
1113
|
-
0: [
|
|
1114
|
-
3,
|
|
1115
|
-
0
|
|
1116
|
-
/* Actions.APPEND */
|
|
1117
|
-
]
|
|
1118
|
-
};
|
|
1119
|
-
be[
|
|
1120
|
-
3
|
|
1121
|
-
/* States.IN_IDENT */
|
|
1122
|
-
] = {
|
|
1123
|
-
i: [
|
|
1124
|
-
3,
|
|
1125
|
-
0
|
|
1126
|
-
/* Actions.APPEND */
|
|
1127
|
-
],
|
|
1128
|
-
0: [
|
|
1129
|
-
3,
|
|
1130
|
-
0
|
|
1131
|
-
/* Actions.APPEND */
|
|
1132
|
-
],
|
|
1133
|
-
w: [
|
|
1134
|
-
1,
|
|
1135
|
-
1
|
|
1136
|
-
/* Actions.PUSH */
|
|
1137
|
-
],
|
|
1138
|
-
".": [
|
|
1139
|
-
2,
|
|
1140
|
-
1
|
|
1141
|
-
/* Actions.PUSH */
|
|
1142
|
-
],
|
|
1143
|
-
"[": [
|
|
1144
|
-
4,
|
|
1145
|
-
1
|
|
1146
|
-
/* Actions.PUSH */
|
|
1147
|
-
],
|
|
1148
|
-
o: [
|
|
1149
|
-
7,
|
|
1150
|
-
1
|
|
1151
|
-
/* Actions.PUSH */
|
|
1152
|
-
]
|
|
1153
|
-
};
|
|
1154
|
-
be[
|
|
1155
|
-
4
|
|
1156
|
-
/* States.IN_SUB_PATH */
|
|
1157
|
-
] = {
|
|
1158
|
-
"'": [
|
|
1159
|
-
5,
|
|
1160
|
-
0
|
|
1161
|
-
/* Actions.APPEND */
|
|
1162
|
-
],
|
|
1163
|
-
'"': [
|
|
1164
|
-
6,
|
|
1165
|
-
0
|
|
1166
|
-
/* Actions.APPEND */
|
|
1167
|
-
],
|
|
1168
|
-
"[": [
|
|
1169
|
-
4,
|
|
1170
|
-
2
|
|
1171
|
-
/* Actions.INC_SUB_PATH_DEPTH */
|
|
1172
|
-
],
|
|
1173
|
-
"]": [
|
|
1174
|
-
1,
|
|
1175
|
-
3
|
|
1176
|
-
/* Actions.PUSH_SUB_PATH */
|
|
1177
|
-
],
|
|
1178
|
-
o: 8,
|
|
1179
|
-
l: [
|
|
1180
|
-
4,
|
|
1181
|
-
0
|
|
1182
|
-
/* Actions.APPEND */
|
|
1183
|
-
]
|
|
1184
|
-
};
|
|
1185
|
-
be[
|
|
1186
|
-
5
|
|
1187
|
-
/* States.IN_SINGLE_QUOTE */
|
|
1188
|
-
] = {
|
|
1189
|
-
"'": [
|
|
1190
|
-
4,
|
|
1191
|
-
0
|
|
1192
|
-
/* Actions.APPEND */
|
|
1193
|
-
],
|
|
1194
|
-
o: 8,
|
|
1195
|
-
l: [
|
|
1196
|
-
5,
|
|
1197
|
-
0
|
|
1198
|
-
/* Actions.APPEND */
|
|
1199
|
-
]
|
|
1200
|
-
};
|
|
1201
|
-
be[
|
|
1202
|
-
6
|
|
1203
|
-
/* States.IN_DOUBLE_QUOTE */
|
|
1204
|
-
] = {
|
|
1205
|
-
'"': [
|
|
1206
|
-
4,
|
|
1207
|
-
0
|
|
1208
|
-
/* Actions.APPEND */
|
|
1209
|
-
],
|
|
1210
|
-
o: 8,
|
|
1211
|
-
l: [
|
|
1212
|
-
6,
|
|
1213
|
-
0
|
|
1214
|
-
/* Actions.APPEND */
|
|
1215
|
-
]
|
|
1216
|
-
};
|
|
1217
|
-
const ua = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1218
|
-
function fa(e) {
|
|
1219
|
-
return ua.test(e);
|
|
1220
|
-
}
|
|
1221
|
-
function _a(e) {
|
|
1222
|
-
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
1223
|
-
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1224
|
-
}
|
|
1225
|
-
function ma(e) {
|
|
1226
|
-
if (e == null)
|
|
1227
|
-
return "o";
|
|
1228
|
-
switch (e.charCodeAt(0)) {
|
|
1229
|
-
case 91:
|
|
1230
|
-
case 93:
|
|
1231
|
-
case 46:
|
|
1232
|
-
case 34:
|
|
1233
|
-
case 39:
|
|
1234
|
-
return e;
|
|
1235
|
-
case 95:
|
|
1236
|
-
case 36:
|
|
1237
|
-
case 45:
|
|
1238
|
-
return "i";
|
|
1239
|
-
case 9:
|
|
1240
|
-
case 10:
|
|
1241
|
-
case 13:
|
|
1242
|
-
case 160:
|
|
1243
|
-
case 65279:
|
|
1244
|
-
case 8232:
|
|
1245
|
-
case 8233:
|
|
1246
|
-
return "w";
|
|
1247
|
-
}
|
|
1248
|
-
return "i";
|
|
1249
|
-
}
|
|
1250
|
-
function Ea(e) {
|
|
1251
|
-
const t = e.trim();
|
|
1252
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : fa(t) ? _a(t) : "*" + t;
|
|
1253
|
-
}
|
|
1254
|
-
function da(e) {
|
|
1255
|
-
const t = [];
|
|
1256
|
-
let n = -1, a = 0, s = 0, r, l, i, u, _, p, T;
|
|
1257
|
-
const d = [];
|
|
1258
|
-
d[
|
|
1259
|
-
0
|
|
1260
|
-
/* Actions.APPEND */
|
|
1261
|
-
] = () => {
|
|
1262
|
-
l === void 0 ? l = i : l += i;
|
|
1263
|
-
}, d[
|
|
1264
|
-
1
|
|
1265
|
-
/* Actions.PUSH */
|
|
1266
|
-
] = () => {
|
|
1267
|
-
l !== void 0 && (t.push(l), l = void 0);
|
|
1268
|
-
}, d[
|
|
1269
|
-
2
|
|
1270
|
-
/* Actions.INC_SUB_PATH_DEPTH */
|
|
1271
|
-
] = () => {
|
|
1272
|
-
d[
|
|
1273
|
-
0
|
|
1274
|
-
/* Actions.APPEND */
|
|
1275
|
-
](), s++;
|
|
1276
|
-
}, d[
|
|
1277
|
-
3
|
|
1278
|
-
/* Actions.PUSH_SUB_PATH */
|
|
1279
|
-
] = () => {
|
|
1280
|
-
if (s > 0)
|
|
1281
|
-
s--, a = 4, d[
|
|
1282
|
-
0
|
|
1283
|
-
/* Actions.APPEND */
|
|
1284
|
-
]();
|
|
1285
|
-
else {
|
|
1286
|
-
if (s = 0, l === void 0 || (l = Ea(l), l === !1))
|
|
1287
|
-
return !1;
|
|
1288
|
-
d[
|
|
1289
|
-
1
|
|
1290
|
-
/* Actions.PUSH */
|
|
1291
|
-
]();
|
|
1292
|
-
}
|
|
1293
|
-
};
|
|
1294
|
-
function I() {
|
|
1295
|
-
const R = e[n + 1];
|
|
1296
|
-
if (a === 5 && R === "'" || a === 6 && R === '"')
|
|
1297
|
-
return n++, i = "\\" + R, d[
|
|
1298
|
-
0
|
|
1299
|
-
/* Actions.APPEND */
|
|
1300
|
-
](), !0;
|
|
1301
|
-
}
|
|
1302
|
-
for (; a !== null; )
|
|
1303
|
-
if (n++, r = e[n], !(r === "\\" && I())) {
|
|
1304
|
-
if (u = ma(r), T = be[a], _ = T[u] || T.l || 8, _ === 8 || (a = _[0], _[1] !== void 0 && (p = d[_[1]], p && (i = r, p() === !1))))
|
|
1305
|
-
return;
|
|
1306
|
-
if (a === 7)
|
|
1307
|
-
return t;
|
|
1308
|
-
}
|
|
1309
|
-
}
|
|
1310
|
-
const Zt = /* @__PURE__ */ new Map();
|
|
1311
|
-
function ga(e, t) {
|
|
1312
|
-
return V(e) ? e[t] : null;
|
|
1313
|
-
}
|
|
1314
|
-
function Na(e, t) {
|
|
1315
|
-
if (!V(e))
|
|
1316
|
-
return null;
|
|
1317
|
-
let n = Zt.get(t);
|
|
1318
|
-
if (n || (n = da(t), n && Zt.set(t, n)), !n)
|
|
1319
|
-
return null;
|
|
1320
|
-
const a = n.length;
|
|
1321
|
-
let s = e, r = 0;
|
|
1322
|
-
for (; r < a; ) {
|
|
1323
|
-
const l = s[n[r]];
|
|
1324
|
-
if (l === void 0 || G(s))
|
|
1325
|
-
return null;
|
|
1326
|
-
s = l, r++;
|
|
1327
|
-
}
|
|
1328
|
-
return s;
|
|
1329
|
-
}
|
|
1330
|
-
const pa = (e) => e, Ta = (e) => "", Oa = "text", La = (e) => e.length === 0 ? "" : Dr(e), Ia = Sr;
|
|
1331
|
-
function zt(e, t) {
|
|
1332
|
-
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1333
|
-
}
|
|
1334
|
-
function va(e) {
|
|
1335
|
-
const t = B(e.pluralIndex) ? e.pluralIndex : -1;
|
|
1336
|
-
return e.named && (B(e.named.count) || B(e.named.n)) ? B(e.named.count) ? e.named.count : B(e.named.n) ? e.named.n : t : t;
|
|
1337
|
-
}
|
|
1338
|
-
function ba(e, t) {
|
|
1339
|
-
t.count || (t.count = e), t.n || (t.n = e);
|
|
1340
|
-
}
|
|
1341
|
-
function ha(e = {}) {
|
|
1342
|
-
const t = e.locale, n = va(e), a = V(e.pluralRules) && v(t) && G(e.pluralRules[t]) ? e.pluralRules[t] : zt, s = V(e.pluralRules) && v(t) && G(e.pluralRules[t]) ? zt : void 0, r = (f) => f[a(n, f.length, s)], l = e.list || [], i = (f) => l[f], u = e.named || {};
|
|
1343
|
-
B(e.pluralIndex) && ba(n, u);
|
|
1344
|
-
const _ = (f) => u[f];
|
|
1345
|
-
function p(f) {
|
|
1346
|
-
const g = G(e.messages) ? e.messages(f) : V(e.messages) ? e.messages[f] : !1;
|
|
1347
|
-
return g || (e.parent ? e.parent.message(f) : Ta);
|
|
1348
|
-
}
|
|
1349
|
-
const T = (f) => e.modifiers ? e.modifiers[f] : pa, d = M(e.processor) && G(e.processor.normalize) ? e.processor.normalize : La, I = M(e.processor) && G(e.processor.interpolate) ? e.processor.interpolate : Ia, R = M(e.processor) && v(e.processor.type) ? e.processor.type : Oa, P = {
|
|
1350
|
-
list: i,
|
|
1351
|
-
named: _,
|
|
1352
|
-
plural: r,
|
|
1353
|
-
linked: (f, ...g) => {
|
|
1354
|
-
const [O, N] = g;
|
|
1355
|
-
let A = "text", h = "";
|
|
1356
|
-
g.length === 1 ? V(O) ? (h = O.modifier || h, A = O.type || A) : v(O) && (h = O || h) : g.length === 2 && (v(O) && (h = O || h), v(N) && (A = N || A));
|
|
1357
|
-
const D = p(f)(P), F = (
|
|
1358
|
-
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1359
|
-
A === "vnode" && H(D) && h ? D[0] : D
|
|
1360
|
-
);
|
|
1361
|
-
return h ? T(h)(F, A) : F;
|
|
1362
|
-
},
|
|
1363
|
-
message: p,
|
|
1364
|
-
type: R,
|
|
1365
|
-
interpolate: I,
|
|
1366
|
-
normalize: d,
|
|
1367
|
-
values: Z({}, l, u)
|
|
1368
|
-
};
|
|
1369
|
-
return P;
|
|
1370
|
-
}
|
|
1371
|
-
let nt = null;
|
|
1372
|
-
function Aa(e) {
|
|
1373
|
-
nt = e;
|
|
1374
|
-
}
|
|
1375
|
-
function Ca(e, t, n) {
|
|
1376
|
-
nt && nt.emit("i18n:init", {
|
|
1377
|
-
timestamp: Date.now(),
|
|
1378
|
-
i18n: e,
|
|
1379
|
-
version: t,
|
|
1380
|
-
meta: n
|
|
1381
|
-
});
|
|
1382
|
-
}
|
|
1383
|
-
const Pa = /* @__PURE__ */ Sa(
|
|
1384
|
-
"function:translate"
|
|
1385
|
-
/* IntlifyDevToolsHooks.FunctionTranslate */
|
|
1386
|
-
);
|
|
1387
|
-
function Sa(e) {
|
|
1388
|
-
return (t) => nt && nt.emit(e, t);
|
|
1389
|
-
}
|
|
1390
|
-
const ee = {
|
|
1391
|
-
NOT_FOUND_KEY: 1,
|
|
1392
|
-
FALLBACK_TO_TRANSLATE: 2,
|
|
1393
|
-
CANNOT_FORMAT_NUMBER: 3,
|
|
1394
|
-
FALLBACK_TO_NUMBER_FORMAT: 4,
|
|
1395
|
-
CANNOT_FORMAT_DATE: 5,
|
|
1396
|
-
FALLBACK_TO_DATE_FORMAT: 6,
|
|
1397
|
-
EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7,
|
|
1398
|
-
__EXTEND_POINT__: 8
|
|
1399
|
-
}, Da = {
|
|
1400
|
-
[ee.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
|
|
1401
|
-
[ee.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
|
|
1402
|
-
[ee.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
|
|
1403
|
-
[ee.FALLBACK_TO_NUMBER_FORMAT]: "Fall back to number format '{key}' key with '{target}' locale.",
|
|
1404
|
-
[ee.CANNOT_FORMAT_DATE]: "Cannot format a date value due to not supported Intl.DateTimeFormat.",
|
|
1405
|
-
[ee.FALLBACK_TO_DATE_FORMAT]: "Fall back to datetime format '{key}' key with '{target}' locale.",
|
|
1406
|
-
[ee.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."
|
|
1407
|
-
};
|
|
1408
|
-
function De(e, ...t) {
|
|
1409
|
-
return yt(Da[e], ...t);
|
|
1410
|
-
}
|
|
1411
|
-
const Fn = k.__EXTEND_POINT__, Pe = Mt(Fn), Q = {
|
|
1412
|
-
INVALID_ARGUMENT: Fn,
|
|
1413
|
-
// 18
|
|
1414
|
-
INVALID_DATE_ARGUMENT: Pe(),
|
|
1415
|
-
// 19
|
|
1416
|
-
INVALID_ISO_DATE_ARGUMENT: Pe(),
|
|
1417
|
-
// 20
|
|
1418
|
-
NOT_SUPPORT_NON_STRING_MESSAGE: Pe(),
|
|
1419
|
-
// 21
|
|
1420
|
-
NOT_SUPPORT_LOCALE_PROMISE_VALUE: Pe(),
|
|
1421
|
-
// 22
|
|
1422
|
-
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: Pe(),
|
|
1423
|
-
// 23
|
|
1424
|
-
NOT_SUPPORT_LOCALE_TYPE: Pe(),
|
|
1425
|
-
// 24
|
|
1426
|
-
__EXTEND_POINT__: Pe()
|
|
1427
|
-
// 25
|
|
1428
|
-
};
|
|
1429
|
-
function me(e) {
|
|
1430
|
-
return Ke(e, null, process.env.NODE_ENV !== "production" ? { messages: Ra } : void 0);
|
|
1431
|
-
}
|
|
1432
|
-
const Ra = {
|
|
1433
|
-
[Q.INVALID_ARGUMENT]: "Invalid arguments",
|
|
1434
|
-
[Q.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
|
|
1435
|
-
[Q.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
|
|
1436
|
-
[Q.NOT_SUPPORT_NON_STRING_MESSAGE]: "Not support non-string message",
|
|
1437
|
-
[Q.NOT_SUPPORT_LOCALE_PROMISE_VALUE]: "cannot support promise value",
|
|
1438
|
-
[Q.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: "cannot support async function",
|
|
1439
|
-
[Q.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
|
|
1440
|
-
};
|
|
1441
|
-
function wt(e, t) {
|
|
1442
|
-
return t.locale != null ? en(t.locale) : en(e.locale);
|
|
1443
|
-
}
|
|
1444
|
-
let dt;
|
|
1445
|
-
function en(e) {
|
|
1446
|
-
if (v(e))
|
|
1447
|
-
return e;
|
|
1448
|
-
if (G(e)) {
|
|
1449
|
-
if (e.resolvedOnce && dt != null)
|
|
1450
|
-
return dt;
|
|
1451
|
-
if (e.constructor.name === "Function") {
|
|
1452
|
-
const t = e();
|
|
1453
|
-
if (Pr(t))
|
|
1454
|
-
throw me(Q.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1455
|
-
return dt = t;
|
|
1456
|
-
} else
|
|
1457
|
-
throw me(Q.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
1458
|
-
} else
|
|
1459
|
-
throw me(Q.NOT_SUPPORT_LOCALE_TYPE);
|
|
1460
|
-
}
|
|
1461
|
-
function ka(e, t, n) {
|
|
1462
|
-
return [.../* @__PURE__ */ new Set([
|
|
1463
|
-
n,
|
|
1464
|
-
...H(t) ? t : V(t) ? Object.keys(t) : v(t) ? [t] : [n]
|
|
1465
|
-
])];
|
|
1466
|
-
}
|
|
1467
|
-
function Un(e, t, n) {
|
|
1468
|
-
const a = v(n) ? n : Ye, s = e;
|
|
1469
|
-
s.__localeChainCache || (s.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1470
|
-
let r = s.__localeChainCache.get(a);
|
|
1471
|
-
if (!r) {
|
|
1472
|
-
r = [];
|
|
1473
|
-
let l = [n];
|
|
1474
|
-
for (; H(l); )
|
|
1475
|
-
l = tn(r, l, t);
|
|
1476
|
-
const i = H(t) || !M(t) ? t : t.default ? t.default : null;
|
|
1477
|
-
l = v(i) ? [i] : i, H(l) && tn(r, l, !1), s.__localeChainCache.set(a, r);
|
|
1478
|
-
}
|
|
1479
|
-
return r;
|
|
1480
|
-
}
|
|
1481
|
-
function tn(e, t, n) {
|
|
1482
|
-
let a = !0;
|
|
1483
|
-
for (let s = 0; s < t.length && U(a); s++) {
|
|
1484
|
-
const r = t[s];
|
|
1485
|
-
v(r) && (a = ya(e, t[s], n));
|
|
1486
|
-
}
|
|
1487
|
-
return a;
|
|
1488
|
-
}
|
|
1489
|
-
function ya(e, t, n) {
|
|
1490
|
-
let a;
|
|
1491
|
-
const s = t.split("-");
|
|
1492
|
-
do {
|
|
1493
|
-
const r = s.join("-");
|
|
1494
|
-
a = Ma(e, r, n), s.splice(-1, 1);
|
|
1495
|
-
} while (s.length && a === !0);
|
|
1496
|
-
return a;
|
|
1497
|
-
}
|
|
1498
|
-
function Ma(e, t, n) {
|
|
1499
|
-
let a = !1;
|
|
1500
|
-
if (!e.includes(t) && (a = !0, t)) {
|
|
1501
|
-
a = t[t.length - 1] !== "!";
|
|
1502
|
-
const s = t.replace(/!/g, "");
|
|
1503
|
-
e.push(s), (H(n) || M(n)) && n[s] && (a = n[s]);
|
|
1504
|
-
}
|
|
1505
|
-
return a;
|
|
1506
|
-
}
|
|
1507
|
-
const Fa = "9.10.1", _t = -1, Ye = "en-US", ut = "", nn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1508
|
-
function Ua() {
|
|
1509
|
-
return {
|
|
1510
|
-
upper: (e, t) => t === "text" && v(e) ? e.toUpperCase() : t === "vnode" && V(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1511
|
-
lower: (e, t) => t === "text" && v(e) ? e.toLowerCase() : t === "vnode" && V(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1512
|
-
capitalize: (e, t) => t === "text" && v(e) ? nn(e) : t === "vnode" && V(e) && "__v_isVNode" in e ? nn(e.children) : e
|
|
1513
|
-
};
|
|
1514
|
-
}
|
|
1515
|
-
let wn;
|
|
1516
|
-
function rn(e) {
|
|
1517
|
-
wn = e;
|
|
1518
|
-
}
|
|
1519
|
-
let Vn;
|
|
1520
|
-
function wa(e) {
|
|
1521
|
-
Vn = e;
|
|
1522
|
-
}
|
|
1523
|
-
let $n;
|
|
1524
|
-
function Va(e) {
|
|
1525
|
-
$n = e;
|
|
1526
|
-
}
|
|
1527
|
-
let Wn = null;
|
|
1528
|
-
const $a = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
1529
|
-
Wn = e;
|
|
1530
|
-
}, Wa = /* @__NO_SIDE_EFFECTS__ */ () => Wn;
|
|
1531
|
-
let Gn = null;
|
|
1532
|
-
const an = (e) => {
|
|
1533
|
-
Gn = e;
|
|
1534
|
-
}, Ga = () => Gn;
|
|
1535
|
-
let sn = 0;
|
|
1536
|
-
function Ha(e = {}) {
|
|
1537
|
-
const t = G(e.onWarn) ? e.onWarn : q, n = v(e.version) ? e.version : Fa, a = v(e.locale) || G(e.locale) ? e.locale : Ye, s = G(a) ? Ye : a, r = H(e.fallbackLocale) || M(e.fallbackLocale) || v(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s, l = M(e.messages) ? e.messages : { [s]: {} }, i = M(e.datetimeFormats) ? e.datetimeFormats : { [s]: {} }, u = M(e.numberFormats) ? e.numberFormats : { [s]: {} }, _ = Z({}, e.modifiers || {}, Ua()), p = e.pluralRules || {}, T = G(e.missing) ? e.missing : null, d = U(e.missingWarn) || Ie(e.missingWarn) ? e.missingWarn : !0, I = U(e.fallbackWarn) || Ie(e.fallbackWarn) ? e.fallbackWarn : !0, R = !!e.fallbackFormat, S = !!e.unresolving, P = G(e.postTranslation) ? e.postTranslation : null, f = M(e.processor) ? e.processor : null, g = U(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, O = !!e.escapeParameter, N = G(e.messageCompiler) ? e.messageCompiler : wn;
|
|
1538
|
-
process.env.NODE_ENV !== "production" && G(e.messageCompiler) && kn(De(ee.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
1539
|
-
const A = G(e.messageResolver) ? e.messageResolver : Vn || ga, h = G(e.localeFallbacker) ? e.localeFallbacker : $n || ka, D = V(e.fallbackContext) ? e.fallbackContext : void 0, F = e, b = V(F.__datetimeFormatters) ? F.__datetimeFormatters : /* @__PURE__ */ new Map(), Y = V(F.__numberFormatters) ? F.__numberFormatters : /* @__PURE__ */ new Map(), le = V(F.__meta) ? F.__meta : {};
|
|
1540
|
-
sn++;
|
|
1541
|
-
const J = {
|
|
1542
|
-
version: n,
|
|
1543
|
-
cid: sn,
|
|
1544
|
-
locale: a,
|
|
1545
|
-
fallbackLocale: r,
|
|
1546
|
-
messages: l,
|
|
1547
|
-
modifiers: _,
|
|
1548
|
-
pluralRules: p,
|
|
1549
|
-
missing: T,
|
|
1550
|
-
missingWarn: d,
|
|
1551
|
-
fallbackWarn: I,
|
|
1552
|
-
fallbackFormat: R,
|
|
1553
|
-
unresolving: S,
|
|
1554
|
-
postTranslation: P,
|
|
1555
|
-
processor: f,
|
|
1556
|
-
warnHtmlMessage: g,
|
|
1557
|
-
escapeParameter: O,
|
|
1558
|
-
messageCompiler: N,
|
|
1559
|
-
messageResolver: A,
|
|
1560
|
-
localeFallbacker: h,
|
|
1561
|
-
fallbackContext: D,
|
|
1562
|
-
onWarn: t,
|
|
1563
|
-
__meta: le
|
|
1564
|
-
};
|
|
1565
|
-
return J.datetimeFormats = i, J.numberFormats = u, J.__datetimeFormatters = b, J.__numberFormatters = Y, process.env.NODE_ENV !== "production" && (J.__v_emitter = F.__v_emitter != null ? F.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && Ca(J, n, le), J;
|
|
1566
|
-
}
|
|
1567
|
-
function mt(e, t) {
|
|
1568
|
-
return e instanceof RegExp ? e.test(t) : e;
|
|
1569
|
-
}
|
|
1570
|
-
function Hn(e, t) {
|
|
1571
|
-
return e instanceof RegExp ? e.test(t) : e;
|
|
1572
|
-
}
|
|
1573
|
-
function Vt(e, t, n, a, s) {
|
|
1574
|
-
const { missing: r, onWarn: l } = e;
|
|
1575
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1576
|
-
const i = e.__v_emitter;
|
|
1577
|
-
i && i.emit("missing", {
|
|
1578
|
-
locale: n,
|
|
1579
|
-
key: t,
|
|
1580
|
-
type: s,
|
|
1581
|
-
groupId: `${s}:${t}`
|
|
1582
|
-
});
|
|
1583
|
-
}
|
|
1584
|
-
if (r !== null) {
|
|
1585
|
-
const i = r(e, n, t, s);
|
|
1586
|
-
return v(i) ? i : t;
|
|
1587
|
-
} else
|
|
1588
|
-
return process.env.NODE_ENV !== "production" && Hn(a, t) && l(De(ee.NOT_FOUND_KEY, { key: t, locale: n })), t;
|
|
1589
|
-
}
|
|
1590
|
-
function et(e, t, n) {
|
|
1591
|
-
const a = e;
|
|
1592
|
-
a.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
1593
|
-
}
|
|
1594
|
-
function gt(e) {
|
|
1595
|
-
return (n) => xa(n, e);
|
|
1596
|
-
}
|
|
1597
|
-
function xa(e, t) {
|
|
1598
|
-
const n = t.b || t.body;
|
|
1599
|
-
if ((n.t || n.type) === 1) {
|
|
1600
|
-
const a = n, s = a.c || a.cases;
|
|
1601
|
-
return e.plural(s.reduce((r, l) => [
|
|
1602
|
-
...r,
|
|
1603
|
-
ln(e, l)
|
|
1604
|
-
], []));
|
|
1605
|
-
} else
|
|
1606
|
-
return ln(e, n);
|
|
1607
|
-
}
|
|
1608
|
-
function ln(e, t) {
|
|
1609
|
-
const n = t.s || t.static;
|
|
1610
|
-
if (n)
|
|
1611
|
-
return e.type === "text" ? n : e.normalize([n]);
|
|
1612
|
-
{
|
|
1613
|
-
const a = (t.i || t.items).reduce((s, r) => [...s, Lt(e, r)], []);
|
|
1614
|
-
return e.normalize(a);
|
|
1615
|
-
}
|
|
1616
|
-
}
|
|
1617
|
-
function Lt(e, t) {
|
|
1618
|
-
const n = t.t || t.type;
|
|
1619
|
-
switch (n) {
|
|
1620
|
-
case 3:
|
|
1621
|
-
const a = t;
|
|
1622
|
-
return a.v || a.value;
|
|
1623
|
-
case 9:
|
|
1624
|
-
const s = t;
|
|
1625
|
-
return s.v || s.value;
|
|
1626
|
-
case 4:
|
|
1627
|
-
const r = t;
|
|
1628
|
-
return e.interpolate(e.named(r.k || r.key));
|
|
1629
|
-
case 5:
|
|
1630
|
-
const l = t;
|
|
1631
|
-
return e.interpolate(e.list(l.i != null ? l.i : l.index));
|
|
1632
|
-
case 6:
|
|
1633
|
-
const i = t, u = i.m || i.modifier;
|
|
1634
|
-
return e.linked(Lt(e, i.k || i.key), u ? Lt(e, u) : void 0, e.type);
|
|
1635
|
-
case 7:
|
|
1636
|
-
const _ = t;
|
|
1637
|
-
return _.v || _.value;
|
|
1638
|
-
case 8:
|
|
1639
|
-
const p = t;
|
|
1640
|
-
return p.v || p.value;
|
|
1641
|
-
default:
|
|
1642
|
-
throw new Error(`unhandled node type on format message part: ${n}`);
|
|
1643
|
-
}
|
|
1644
|
-
}
|
|
1645
|
-
const Ya = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
|
|
1646
|
-
function xn(e, t) {
|
|
1647
|
-
t && $r(e) && q(yt(Ya, { source: e }));
|
|
1648
|
-
}
|
|
1649
|
-
const Yn = (e) => e;
|
|
1650
|
-
let He = /* @__PURE__ */ Object.create(null);
|
|
1651
|
-
const ve = (e) => V(e) && (e.t === 0 || e.type === 0) && ("b" in e || "body" in e);
|
|
1652
|
-
function Kn(e, t = {}) {
|
|
1653
|
-
let n = !1;
|
|
1654
|
-
const a = t.onError || wr;
|
|
1655
|
-
return t.onError = (s) => {
|
|
1656
|
-
n = !0, a(s);
|
|
1657
|
-
}, { ...ia(e, t), detectError: n };
|
|
1658
|
-
}
|
|
1659
|
-
const Ka = /* @__NO_SIDE_EFFECTS__ */ (e, t) => {
|
|
1660
|
-
if (!v(e))
|
|
1661
|
-
throw me(Q.NOT_SUPPORT_NON_STRING_MESSAGE);
|
|
1662
|
-
{
|
|
1663
|
-
const n = U(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
|
|
1664
|
-
process.env.NODE_ENV !== "production" && xn(e, n);
|
|
1665
|
-
const s = (t.onCacheKey || Yn)(e), r = He[s];
|
|
1666
|
-
if (r)
|
|
1667
|
-
return r;
|
|
1668
|
-
const { code: l, detectError: i } = Kn(e, t), u = new Function(`return ${l}`)();
|
|
1669
|
-
return i ? u : He[s] = u;
|
|
1670
|
-
}
|
|
1671
|
-
};
|
|
1672
|
-
function ja(e, t) {
|
|
1673
|
-
if (__INTLIFY_JIT_COMPILATION__ && !__INTLIFY_DROP_MESSAGE_COMPILER__ && v(e)) {
|
|
1674
|
-
const n = U(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
|
|
1675
|
-
process.env.NODE_ENV !== "production" && xn(e, n);
|
|
1676
|
-
const s = (t.onCacheKey || Yn)(e), r = He[s];
|
|
1677
|
-
if (r)
|
|
1678
|
-
return r;
|
|
1679
|
-
const { ast: l, detectError: i } = Kn(e, {
|
|
1680
|
-
...t,
|
|
1681
|
-
location: process.env.NODE_ENV !== "production",
|
|
1682
|
-
jit: !0
|
|
1683
|
-
}), u = gt(l);
|
|
1684
|
-
return i ? u : He[s] = u;
|
|
1685
|
-
} else {
|
|
1686
|
-
if (process.env.NODE_ENV !== "production" && !ve(e))
|
|
1687
|
-
return q(`the message that is resolve with key '${t.key}' is not supported for jit compilation`), () => e;
|
|
1688
|
-
const n = e.cacheKey;
|
|
1689
|
-
if (n) {
|
|
1690
|
-
const a = He[n];
|
|
1691
|
-
return a || (He[n] = gt(e));
|
|
1692
|
-
} else
|
|
1693
|
-
return gt(e);
|
|
1694
|
-
}
|
|
1695
|
-
}
|
|
1696
|
-
const on = () => "", se = (e) => G(e);
|
|
1697
|
-
function cn(e, ...t) {
|
|
1698
|
-
const { fallbackFormat: n, postTranslation: a, unresolving: s, messageCompiler: r, fallbackLocale: l, messages: i } = e, [u, _] = It(...t), p = U(_.missingWarn) ? _.missingWarn : e.missingWarn, T = U(_.fallbackWarn) ? _.fallbackWarn : e.fallbackWarn, d = U(_.escapeParameter) ? _.escapeParameter : e.escapeParameter, I = !!_.resolvedMessage, R = v(_.default) || U(_.default) ? U(_.default) ? r ? u : () => u : _.default : n ? r ? u : () => u : "", S = n || R !== "", P = wt(e, _);
|
|
1699
|
-
d && Ba(_);
|
|
1700
|
-
let [f, g, O] = I ? [
|
|
1701
|
-
u,
|
|
1702
|
-
P,
|
|
1703
|
-
i[P] || {}
|
|
1704
|
-
] : jn(e, u, P, l, T, p), N = f, A = u;
|
|
1705
|
-
if (!I && !(v(N) || ve(N) || se(N)) && S && (N = R, A = N), !I && (!(v(N) || ve(N) || se(N)) || !v(g)))
|
|
1706
|
-
return s ? _t : u;
|
|
1707
|
-
if (process.env.NODE_ENV !== "production" && v(N) && e.messageCompiler == null)
|
|
1708
|
-
return q(`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 '${u}'.`), u;
|
|
1709
|
-
let h = !1;
|
|
1710
|
-
const D = () => {
|
|
1711
|
-
h = !0;
|
|
1712
|
-
}, F = se(N) ? N : Bn(e, u, g, N, A, D);
|
|
1713
|
-
if (h)
|
|
1714
|
-
return N;
|
|
1715
|
-
const b = qa(e, g, O, _), Y = ha(b), le = Xa(e, F, Y), J = a ? a(le, u) : le;
|
|
1716
|
-
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
1717
|
-
const ae = {
|
|
1718
|
-
timestamp: Date.now(),
|
|
1719
|
-
key: v(u) ? u : se(N) ? N.key : "",
|
|
1720
|
-
locale: g || (se(N) ? N.locale : ""),
|
|
1721
|
-
format: v(N) ? N : se(N) ? N.source : "",
|
|
1722
|
-
message: J
|
|
1723
|
-
};
|
|
1724
|
-
ae.meta = Z({}, e.__meta, /* @__PURE__ */ Wa() || {}), Pa(ae);
|
|
1725
|
-
}
|
|
1726
|
-
return J;
|
|
1727
|
-
}
|
|
1728
|
-
function Ba(e) {
|
|
1729
|
-
H(e.list) ? e.list = e.list.map((t) => v(t) ? Kt(t) : t) : V(e.named) && Object.keys(e.named).forEach((t) => {
|
|
1730
|
-
v(e.named[t]) && (e.named[t] = Kt(e.named[t]));
|
|
1731
|
-
});
|
|
1732
|
-
}
|
|
1733
|
-
function jn(e, t, n, a, s, r) {
|
|
1734
|
-
const { messages: l, onWarn: i, messageResolver: u, localeFallbacker: _ } = e, p = _(e, a, n);
|
|
1735
|
-
let T = {}, d, I = null, R = n, S = null;
|
|
1736
|
-
const P = "translate";
|
|
1737
|
-
for (let f = 0; f < p.length; f++) {
|
|
1738
|
-
if (d = S = p[f], process.env.NODE_ENV !== "production" && n !== d && mt(s, t) && i(De(ee.FALLBACK_TO_TRANSLATE, {
|
|
1739
|
-
key: t,
|
|
1740
|
-
target: d
|
|
1741
|
-
})), process.env.NODE_ENV !== "production" && n !== d) {
|
|
1742
|
-
const h = e.__v_emitter;
|
|
1743
|
-
h && h.emit("fallback", {
|
|
1744
|
-
type: P,
|
|
1745
|
-
key: t,
|
|
1746
|
-
from: R,
|
|
1747
|
-
to: S,
|
|
1748
|
-
groupId: `${P}:${t}`
|
|
1749
|
-
});
|
|
1750
|
-
}
|
|
1751
|
-
T = l[d] || {};
|
|
1752
|
-
let g = null, O, N;
|
|
1753
|
-
if (process.env.NODE_ENV !== "production" && ie && (g = window.performance.now(), O = "intlify-message-resolve-start", N = "intlify-message-resolve-end", re && re(O)), (I = u(T, t)) === null && (I = T[t]), process.env.NODE_ENV !== "production" && ie) {
|
|
1754
|
-
const h = window.performance.now(), D = e.__v_emitter;
|
|
1755
|
-
D && g && I && D.emit("message-resolve", {
|
|
1756
|
-
type: "message-resolve",
|
|
1757
|
-
key: t,
|
|
1758
|
-
message: I,
|
|
1759
|
-
time: h - g,
|
|
1760
|
-
groupId: `${P}:${t}`
|
|
1761
|
-
}), O && N && re && Se && (re(N), Se("intlify message resolve", O, N));
|
|
1762
|
-
}
|
|
1763
|
-
if (v(I) || ve(I) || se(I))
|
|
1764
|
-
break;
|
|
1765
|
-
const A = Vt(
|
|
1766
|
-
e,
|
|
1767
|
-
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1768
|
-
t,
|
|
1769
|
-
d,
|
|
1770
|
-
r,
|
|
1771
|
-
P
|
|
1772
|
-
);
|
|
1773
|
-
A !== t && (I = A), R = S;
|
|
1774
|
-
}
|
|
1775
|
-
return [I, d, T];
|
|
1776
|
-
}
|
|
1777
|
-
function Bn(e, t, n, a, s, r) {
|
|
1778
|
-
const { messageCompiler: l, warnHtmlMessage: i } = e;
|
|
1779
|
-
if (se(a)) {
|
|
1780
|
-
const d = a;
|
|
1781
|
-
return d.locale = d.locale || n, d.key = d.key || t, d;
|
|
1782
|
-
}
|
|
1783
|
-
if (l == null) {
|
|
1784
|
-
const d = () => a;
|
|
1785
|
-
return d.locale = n, d.key = t, d;
|
|
1786
|
-
}
|
|
1787
|
-
let u = null, _, p;
|
|
1788
|
-
process.env.NODE_ENV !== "production" && ie && (u = window.performance.now(), _ = "intlify-message-compilation-start", p = "intlify-message-compilation-end", re && re(_));
|
|
1789
|
-
const T = l(a, Ja(e, n, s, a, i, r));
|
|
1790
|
-
if (process.env.NODE_ENV !== "production" && ie) {
|
|
1791
|
-
const d = window.performance.now(), I = e.__v_emitter;
|
|
1792
|
-
I && u && I.emit("message-compilation", {
|
|
1793
|
-
type: "message-compilation",
|
|
1794
|
-
message: a,
|
|
1795
|
-
time: d - u,
|
|
1796
|
-
groupId: `translate:${t}`
|
|
1797
|
-
}), _ && p && re && Se && (re(p), Se("intlify message compilation", _, p));
|
|
1798
|
-
}
|
|
1799
|
-
return T.locale = n, T.key = t, T.source = a, T;
|
|
1800
|
-
}
|
|
1801
|
-
function Xa(e, t, n) {
|
|
1802
|
-
let a = null, s, r;
|
|
1803
|
-
process.env.NODE_ENV !== "production" && ie && (a = window.performance.now(), s = "intlify-message-evaluation-start", r = "intlify-message-evaluation-end", re && re(s));
|
|
1804
|
-
const l = t(n);
|
|
1805
|
-
if (process.env.NODE_ENV !== "production" && ie) {
|
|
1806
|
-
const i = window.performance.now(), u = e.__v_emitter;
|
|
1807
|
-
u && a && u.emit("message-evaluation", {
|
|
1808
|
-
type: "message-evaluation",
|
|
1809
|
-
value: l,
|
|
1810
|
-
time: i - a,
|
|
1811
|
-
groupId: `translate:${t.key}`
|
|
1812
|
-
}), s && r && re && Se && (re(r), Se("intlify message evaluation", s, r));
|
|
1813
|
-
}
|
|
1814
|
-
return l;
|
|
1815
|
-
}
|
|
1816
|
-
function It(...e) {
|
|
1817
|
-
const [t, n, a] = e, s = {};
|
|
1818
|
-
if (!v(t) && !B(t) && !se(t) && !ve(t))
|
|
1819
|
-
throw me(Q.INVALID_ARGUMENT);
|
|
1820
|
-
const r = B(t) ? String(t) : (se(t), t);
|
|
1821
|
-
return B(n) ? s.plural = n : v(n) ? s.default = n : M(n) && !ft(n) ? s.named = n : H(n) && (s.list = n), B(a) ? s.plural = a : v(a) ? s.default = a : M(a) && Z(s, a), [r, s];
|
|
1822
|
-
}
|
|
1823
|
-
function Ja(e, t, n, a, s, r) {
|
|
1824
|
-
return {
|
|
1825
|
-
locale: t,
|
|
1826
|
-
key: n,
|
|
1827
|
-
warnHtmlMessage: s,
|
|
1828
|
-
onError: (l) => {
|
|
1829
|
-
if (r && r(l), process.env.NODE_ENV !== "production") {
|
|
1830
|
-
const i = Qa(a), u = `Message compilation error: ${l.message}`, _ = l.location && i && Rr(i, l.location.start.offset, l.location.end.offset), p = e.__v_emitter;
|
|
1831
|
-
p && i && p.emit("compile-error", {
|
|
1832
|
-
message: i,
|
|
1833
|
-
error: l.message,
|
|
1834
|
-
start: l.location && l.location.start.offset,
|
|
1835
|
-
end: l.location && l.location.end.offset,
|
|
1836
|
-
groupId: `translate:${n}`
|
|
1837
|
-
}), console.error(_ ? `${u}
|
|
1838
|
-
${_}` : u);
|
|
1839
|
-
} else
|
|
1840
|
-
throw l;
|
|
1841
|
-
},
|
|
1842
|
-
onCacheKey: (l) => br(t, n, l)
|
|
1843
|
-
};
|
|
1844
|
-
}
|
|
1845
|
-
function Qa(e) {
|
|
1846
|
-
if (v(e))
|
|
1847
|
-
return e;
|
|
1848
|
-
if (e.loc && e.loc.source)
|
|
1849
|
-
return e.loc.source;
|
|
1850
|
-
}
|
|
1851
|
-
function qa(e, t, n, a) {
|
|
1852
|
-
const { modifiers: s, pluralRules: r, messageResolver: l, fallbackLocale: i, fallbackWarn: u, missingWarn: _, fallbackContext: p } = e, d = {
|
|
1853
|
-
locale: t,
|
|
1854
|
-
modifiers: s,
|
|
1855
|
-
pluralRules: r,
|
|
1856
|
-
messages: (I) => {
|
|
1857
|
-
let R = l(n, I);
|
|
1858
|
-
if (R == null && p) {
|
|
1859
|
-
const [, , S] = jn(p, I, t, i, u, _);
|
|
1860
|
-
R = l(S, I);
|
|
1861
|
-
}
|
|
1862
|
-
if (v(R) || ve(R)) {
|
|
1863
|
-
let S = !1;
|
|
1864
|
-
const f = Bn(e, I, t, R, I, () => {
|
|
1865
|
-
S = !0;
|
|
1866
|
-
});
|
|
1867
|
-
return S ? on : f;
|
|
1868
|
-
} else
|
|
1869
|
-
return se(R) ? R : on;
|
|
1870
|
-
}
|
|
1871
|
-
};
|
|
1872
|
-
return e.processor && (d.processor = e.processor), a.list && (d.list = a.list), a.named && (d.named = a.named), B(a.plural) && (d.pluralIndex = a.plural), d;
|
|
1873
|
-
}
|
|
1874
|
-
const un = typeof Intl < "u", Xn = {
|
|
1875
|
-
dateTimeFormat: un && typeof Intl.DateTimeFormat < "u",
|
|
1876
|
-
numberFormat: un && typeof Intl.NumberFormat < "u"
|
|
1877
|
-
};
|
|
1878
|
-
function fn(e, ...t) {
|
|
1879
|
-
const { datetimeFormats: n, unresolving: a, fallbackLocale: s, onWarn: r, localeFallbacker: l } = e, { __datetimeFormatters: i } = e;
|
|
1880
|
-
if (process.env.NODE_ENV !== "production" && !Xn.dateTimeFormat)
|
|
1881
|
-
return r(De(ee.CANNOT_FORMAT_DATE)), ut;
|
|
1882
|
-
const [u, _, p, T] = vt(...t), d = U(p.missingWarn) ? p.missingWarn : e.missingWarn, I = U(p.fallbackWarn) ? p.fallbackWarn : e.fallbackWarn, R = !!p.part, S = wt(e, p), P = l(
|
|
1883
|
-
e,
|
|
1884
|
-
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1885
|
-
s,
|
|
1886
|
-
S
|
|
1887
|
-
);
|
|
1888
|
-
if (!v(u) || u === "")
|
|
1889
|
-
return new Intl.DateTimeFormat(S, T).format(_);
|
|
1890
|
-
let f = {}, g, O = null, N = S, A = null;
|
|
1891
|
-
const h = "datetime format";
|
|
1892
|
-
for (let b = 0; b < P.length; b++) {
|
|
1893
|
-
if (g = A = P[b], process.env.NODE_ENV !== "production" && S !== g && mt(I, u) && r(De(ee.FALLBACK_TO_DATE_FORMAT, {
|
|
1894
|
-
key: u,
|
|
1895
|
-
target: g
|
|
1896
|
-
})), process.env.NODE_ENV !== "production" && S !== g) {
|
|
1897
|
-
const Y = e.__v_emitter;
|
|
1898
|
-
Y && Y.emit("fallback", {
|
|
1899
|
-
type: h,
|
|
1900
|
-
key: u,
|
|
1901
|
-
from: N,
|
|
1902
|
-
to: A,
|
|
1903
|
-
groupId: `${h}:${u}`
|
|
1904
|
-
});
|
|
1905
|
-
}
|
|
1906
|
-
if (f = n[g] || {}, O = f[u], M(O))
|
|
1907
|
-
break;
|
|
1908
|
-
Vt(e, u, g, d, h), N = A;
|
|
1909
|
-
}
|
|
1910
|
-
if (!M(O) || !v(g))
|
|
1911
|
-
return a ? _t : u;
|
|
1912
|
-
let D = `${g}__${u}`;
|
|
1913
|
-
ft(T) || (D = `${D}__${JSON.stringify(T)}`);
|
|
1914
|
-
let F = i.get(D);
|
|
1915
|
-
return F || (F = new Intl.DateTimeFormat(g, Z({}, O, T)), i.set(D, F)), R ? F.formatToParts(_) : F.format(_);
|
|
1916
|
-
}
|
|
1917
|
-
const Jn = [
|
|
1918
|
-
"localeMatcher",
|
|
1919
|
-
"weekday",
|
|
1920
|
-
"era",
|
|
1921
|
-
"year",
|
|
1922
|
-
"month",
|
|
1923
|
-
"day",
|
|
1924
|
-
"hour",
|
|
1925
|
-
"minute",
|
|
1926
|
-
"second",
|
|
1927
|
-
"timeZoneName",
|
|
1928
|
-
"formatMatcher",
|
|
1929
|
-
"hour12",
|
|
1930
|
-
"timeZone",
|
|
1931
|
-
"dateStyle",
|
|
1932
|
-
"timeStyle",
|
|
1933
|
-
"calendar",
|
|
1934
|
-
"dayPeriod",
|
|
1935
|
-
"numberingSystem",
|
|
1936
|
-
"hourCycle",
|
|
1937
|
-
"fractionalSecondDigits"
|
|
1938
|
-
];
|
|
1939
|
-
function vt(...e) {
|
|
1940
|
-
const [t, n, a, s] = e, r = {};
|
|
1941
|
-
let l = {}, i;
|
|
1942
|
-
if (v(t)) {
|
|
1943
|
-
const u = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1944
|
-
if (!u)
|
|
1945
|
-
throw me(Q.INVALID_ISO_DATE_ARGUMENT);
|
|
1946
|
-
const _ = u[3] ? u[3].trim().startsWith("T") ? `${u[1].trim()}${u[3].trim()}` : `${u[1].trim()}T${u[3].trim()}` : u[1].trim();
|
|
1947
|
-
i = new Date(_);
|
|
1948
|
-
try {
|
|
1949
|
-
i.toISOString();
|
|
1950
|
-
} catch {
|
|
1951
|
-
throw me(Q.INVALID_ISO_DATE_ARGUMENT);
|
|
1952
|
-
}
|
|
1953
|
-
} else if (Ar(t)) {
|
|
1954
|
-
if (isNaN(t.getTime()))
|
|
1955
|
-
throw me(Q.INVALID_DATE_ARGUMENT);
|
|
1956
|
-
i = t;
|
|
1957
|
-
} else if (B(t))
|
|
1958
|
-
i = t;
|
|
1959
|
-
else
|
|
1960
|
-
throw me(Q.INVALID_ARGUMENT);
|
|
1961
|
-
return v(n) ? r.key = n : M(n) && Object.keys(n).forEach((u) => {
|
|
1962
|
-
Jn.includes(u) ? l[u] = n[u] : r[u] = n[u];
|
|
1963
|
-
}), v(a) ? r.locale = a : M(a) && (l = a), M(s) && (l = s), [r.key || "", i, r, l];
|
|
1964
|
-
}
|
|
1965
|
-
function _n(e, t, n) {
|
|
1966
|
-
const a = e;
|
|
1967
|
-
for (const s in n) {
|
|
1968
|
-
const r = `${t}__${s}`;
|
|
1969
|
-
a.__datetimeFormatters.has(r) && a.__datetimeFormatters.delete(r);
|
|
1970
|
-
}
|
|
1971
|
-
}
|
|
1972
|
-
function mn(e, ...t) {
|
|
1973
|
-
const { numberFormats: n, unresolving: a, fallbackLocale: s, onWarn: r, localeFallbacker: l } = e, { __numberFormatters: i } = e;
|
|
1974
|
-
if (process.env.NODE_ENV !== "production" && !Xn.numberFormat)
|
|
1975
|
-
return r(De(ee.CANNOT_FORMAT_NUMBER)), ut;
|
|
1976
|
-
const [u, _, p, T] = bt(...t), d = U(p.missingWarn) ? p.missingWarn : e.missingWarn, I = U(p.fallbackWarn) ? p.fallbackWarn : e.fallbackWarn, R = !!p.part, S = wt(e, p), P = l(
|
|
1977
|
-
e,
|
|
1978
|
-
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1979
|
-
s,
|
|
1980
|
-
S
|
|
1981
|
-
);
|
|
1982
|
-
if (!v(u) || u === "")
|
|
1983
|
-
return new Intl.NumberFormat(S, T).format(_);
|
|
1984
|
-
let f = {}, g, O = null, N = S, A = null;
|
|
1985
|
-
const h = "number format";
|
|
1986
|
-
for (let b = 0; b < P.length; b++) {
|
|
1987
|
-
if (g = A = P[b], process.env.NODE_ENV !== "production" && S !== g && mt(I, u) && r(De(ee.FALLBACK_TO_NUMBER_FORMAT, {
|
|
1988
|
-
key: u,
|
|
1989
|
-
target: g
|
|
1990
|
-
})), process.env.NODE_ENV !== "production" && S !== g) {
|
|
1991
|
-
const Y = e.__v_emitter;
|
|
1992
|
-
Y && Y.emit("fallback", {
|
|
1993
|
-
type: h,
|
|
1994
|
-
key: u,
|
|
1995
|
-
from: N,
|
|
1996
|
-
to: A,
|
|
1997
|
-
groupId: `${h}:${u}`
|
|
1998
|
-
});
|
|
1999
|
-
}
|
|
2000
|
-
if (f = n[g] || {}, O = f[u], M(O))
|
|
2001
|
-
break;
|
|
2002
|
-
Vt(e, u, g, d, h), N = A;
|
|
2003
|
-
}
|
|
2004
|
-
if (!M(O) || !v(g))
|
|
2005
|
-
return a ? _t : u;
|
|
2006
|
-
let D = `${g}__${u}`;
|
|
2007
|
-
ft(T) || (D = `${D}__${JSON.stringify(T)}`);
|
|
2008
|
-
let F = i.get(D);
|
|
2009
|
-
return F || (F = new Intl.NumberFormat(g, Z({}, O, T)), i.set(D, F)), R ? F.formatToParts(_) : F.format(_);
|
|
2010
|
-
}
|
|
2011
|
-
const Qn = [
|
|
2012
|
-
"localeMatcher",
|
|
2013
|
-
"style",
|
|
2014
|
-
"currency",
|
|
2015
|
-
"currencyDisplay",
|
|
2016
|
-
"currencySign",
|
|
2017
|
-
"useGrouping",
|
|
2018
|
-
"minimumIntegerDigits",
|
|
2019
|
-
"minimumFractionDigits",
|
|
2020
|
-
"maximumFractionDigits",
|
|
2021
|
-
"minimumSignificantDigits",
|
|
2022
|
-
"maximumSignificantDigits",
|
|
2023
|
-
"compactDisplay",
|
|
2024
|
-
"notation",
|
|
2025
|
-
"signDisplay",
|
|
2026
|
-
"unit",
|
|
2027
|
-
"unitDisplay",
|
|
2028
|
-
"roundingMode",
|
|
2029
|
-
"roundingPriority",
|
|
2030
|
-
"roundingIncrement",
|
|
2031
|
-
"trailingZeroDisplay"
|
|
2032
|
-
];
|
|
2033
|
-
function bt(...e) {
|
|
2034
|
-
const [t, n, a, s] = e, r = {};
|
|
2035
|
-
let l = {};
|
|
2036
|
-
if (!B(t))
|
|
2037
|
-
throw me(Q.INVALID_ARGUMENT);
|
|
2038
|
-
const i = t;
|
|
2039
|
-
return v(n) ? r.key = n : M(n) && Object.keys(n).forEach((u) => {
|
|
2040
|
-
Qn.includes(u) ? l[u] = n[u] : r[u] = n[u];
|
|
2041
|
-
}), v(a) ? r.locale = a : M(a) && (l = a), M(s) && (l = s), [r.key || "", i, r, l];
|
|
2042
|
-
}
|
|
2043
|
-
function En(e, t, n) {
|
|
2044
|
-
const a = e;
|
|
2045
|
-
for (const s in n) {
|
|
2046
|
-
const r = `${t}__${s}`;
|
|
2047
|
-
a.__numberFormatters.has(r) && a.__numberFormatters.delete(r);
|
|
2048
|
-
}
|
|
2049
|
-
}
|
|
2050
|
-
ca();
|
|
2051
|
-
function Za() {
|
|
2052
|
-
return qn().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
2053
|
-
}
|
|
2054
|
-
function qn() {
|
|
2055
|
-
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
2056
|
-
}
|
|
2057
|
-
const za = typeof Proxy == "function", es = "devtools-plugin:setup", ts = "plugin:settings:set";
|
|
2058
|
-
let $e, ht;
|
|
2059
|
-
function ns() {
|
|
2060
|
-
var e;
|
|
2061
|
-
return $e !== void 0 || (typeof window < "u" && window.performance ? ($e = !0, ht = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? ($e = !0, ht = globalThis.perf_hooks.performance) : $e = !1), $e;
|
|
2062
|
-
}
|
|
2063
|
-
function rs() {
|
|
2064
|
-
return ns() ? ht.now() : Date.now();
|
|
2065
|
-
}
|
|
2066
|
-
class as {
|
|
2067
|
-
constructor(t, n) {
|
|
2068
|
-
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
|
|
2069
|
-
const a = {};
|
|
2070
|
-
if (t.settings)
|
|
2071
|
-
for (const l in t.settings) {
|
|
2072
|
-
const i = t.settings[l];
|
|
2073
|
-
a[l] = i.defaultValue;
|
|
2074
|
-
}
|
|
2075
|
-
const s = `__vue-devtools-plugin-settings__${t.id}`;
|
|
2076
|
-
let r = Object.assign({}, a);
|
|
2077
|
-
try {
|
|
2078
|
-
const l = localStorage.getItem(s), i = JSON.parse(l);
|
|
2079
|
-
Object.assign(r, i);
|
|
2080
|
-
} catch {
|
|
2081
|
-
}
|
|
2082
|
-
this.fallbacks = {
|
|
2083
|
-
getSettings() {
|
|
2084
|
-
return r;
|
|
2085
|
-
},
|
|
2086
|
-
setSettings(l) {
|
|
2087
|
-
try {
|
|
2088
|
-
localStorage.setItem(s, JSON.stringify(l));
|
|
2089
|
-
} catch {
|
|
2090
|
-
}
|
|
2091
|
-
r = l;
|
|
2092
|
-
},
|
|
2093
|
-
now() {
|
|
2094
|
-
return rs();
|
|
2095
|
-
}
|
|
2096
|
-
}, n && n.on(ts, (l, i) => {
|
|
2097
|
-
l === this.plugin.id && this.fallbacks.setSettings(i);
|
|
2098
|
-
}), this.proxiedOn = new Proxy({}, {
|
|
2099
|
-
get: (l, i) => this.target ? this.target.on[i] : (...u) => {
|
|
2100
|
-
this.onQueue.push({
|
|
2101
|
-
method: i,
|
|
2102
|
-
args: u
|
|
2103
|
-
});
|
|
2104
|
-
}
|
|
2105
|
-
}), this.proxiedTarget = new Proxy({}, {
|
|
2106
|
-
get: (l, i) => this.target ? this.target[i] : i === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(i) ? (...u) => (this.targetQueue.push({
|
|
2107
|
-
method: i,
|
|
2108
|
-
args: u,
|
|
2109
|
-
resolve: () => {
|
|
2110
|
-
}
|
|
2111
|
-
}), this.fallbacks[i](...u)) : (...u) => new Promise((_) => {
|
|
2112
|
-
this.targetQueue.push({
|
|
2113
|
-
method: i,
|
|
2114
|
-
args: u,
|
|
2115
|
-
resolve: _
|
|
2116
|
-
});
|
|
2117
|
-
})
|
|
2118
|
-
});
|
|
2119
|
-
}
|
|
2120
|
-
async setRealTarget(t) {
|
|
2121
|
-
this.target = t;
|
|
2122
|
-
for (const n of this.onQueue)
|
|
2123
|
-
this.target.on[n.method](...n.args);
|
|
2124
|
-
for (const n of this.targetQueue)
|
|
2125
|
-
n.resolve(await this.target[n.method](...n.args));
|
|
2126
|
-
}
|
|
2127
|
-
}
|
|
2128
|
-
function ss(e, t) {
|
|
2129
|
-
const n = e, a = qn(), s = Za(), r = za && n.enableEarlyProxy;
|
|
2130
|
-
if (s && (a.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !r))
|
|
2131
|
-
s.emit(es, e, t);
|
|
2132
|
-
else {
|
|
2133
|
-
const l = r ? new as(n, s) : null;
|
|
2134
|
-
(a.__VUE_DEVTOOLS_PLUGINS__ = a.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
2135
|
-
pluginDescriptor: n,
|
|
2136
|
-
setupFn: t,
|
|
2137
|
-
proxy: l
|
|
2138
|
-
}), l && t(l.proxiedTarget);
|
|
2139
|
-
}
|
|
2140
|
-
}
|
|
2141
|
-
/*!
|
|
2142
|
-
* vue-i18n v9.10.1
|
|
2143
|
-
* (c) 2024 kazuya kawaguchi
|
|
2144
|
-
* Released under the MIT License.
|
|
2145
|
-
*/
|
|
2146
|
-
const ls = "9.10.1";
|
|
2147
|
-
function os() {
|
|
2148
|
-
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (pe().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (pe().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_JIT_COMPILATION__ != "boolean" && (pe().__INTLIFY_JIT_COMPILATION__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (pe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (pe().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
2149
|
-
}
|
|
2150
|
-
const Zn = ee.__EXTEND_POINT__, Ne = Mt(Zn), x = {
|
|
2151
|
-
FALLBACK_TO_ROOT: Zn,
|
|
2152
|
-
// 9
|
|
2153
|
-
NOT_SUPPORTED_PRESERVE: Ne(),
|
|
2154
|
-
// 10
|
|
2155
|
-
NOT_SUPPORTED_FORMATTER: Ne(),
|
|
2156
|
-
// 11
|
|
2157
|
-
NOT_SUPPORTED_PRESERVE_DIRECTIVE: Ne(),
|
|
2158
|
-
// 12
|
|
2159
|
-
NOT_SUPPORTED_GET_CHOICE_INDEX: Ne(),
|
|
2160
|
-
// 13
|
|
2161
|
-
COMPONENT_NAME_LEGACY_COMPATIBLE: Ne(),
|
|
2162
|
-
// 14
|
|
2163
|
-
NOT_FOUND_PARENT_SCOPE: Ne(),
|
|
2164
|
-
// 15
|
|
2165
|
-
IGNORE_OBJ_FLATTEN: Ne(),
|
|
2166
|
-
// 16
|
|
2167
|
-
NOTICE_DROP_ALLOW_COMPOSITION: Ne(),
|
|
2168
|
-
// 17
|
|
2169
|
-
NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG: Ne()
|
|
2170
|
-
// 18
|
|
2171
|
-
}, is = {
|
|
2172
|
-
[x.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
|
|
2173
|
-
[x.NOT_SUPPORTED_PRESERVE]: "Not supported 'preserve'.",
|
|
2174
|
-
[x.NOT_SUPPORTED_FORMATTER]: "Not supported 'formatter'.",
|
|
2175
|
-
[x.NOT_SUPPORTED_PRESERVE_DIRECTIVE]: "Not supported 'preserveDirectiveContent'.",
|
|
2176
|
-
[x.NOT_SUPPORTED_GET_CHOICE_INDEX]: "Not supported 'getChoiceIndex'.",
|
|
2177
|
-
[x.COMPONENT_NAME_LEGACY_COMPATIBLE]: "Component name legacy compatible: '{name}' -> 'i18n'",
|
|
2178
|
-
[x.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
|
|
2179
|
-
[x.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
|
|
2180
|
-
[x.NOTICE_DROP_ALLOW_COMPOSITION]: "'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze",
|
|
2181
|
-
[x.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]: "'translateExistCompatible' option will be dropped in the next major version."
|
|
2182
|
-
};
|
|
2183
|
-
function ne(e, ...t) {
|
|
2184
|
-
return yt(is[e], ...t);
|
|
2185
|
-
}
|
|
2186
|
-
const zn = Q.__EXTEND_POINT__, te = Mt(zn), w = {
|
|
2187
|
-
// composer module errors
|
|
2188
|
-
UNEXPECTED_RETURN_TYPE: zn,
|
|
2189
|
-
// 26
|
|
2190
|
-
// legacy module errors
|
|
2191
|
-
INVALID_ARGUMENT: te(),
|
|
2192
|
-
// 27
|
|
2193
|
-
// i18n module errors
|
|
2194
|
-
MUST_BE_CALL_SETUP_TOP: te(),
|
|
2195
|
-
// 28
|
|
2196
|
-
NOT_INSTALLED: te(),
|
|
2197
|
-
// 29
|
|
2198
|
-
NOT_AVAILABLE_IN_LEGACY_MODE: te(),
|
|
2199
|
-
// 30
|
|
2200
|
-
// directive module errors
|
|
2201
|
-
REQUIRED_VALUE: te(),
|
|
2202
|
-
// 31
|
|
2203
|
-
INVALID_VALUE: te(),
|
|
2204
|
-
// 32
|
|
2205
|
-
// vue-devtools errors
|
|
2206
|
-
CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN: te(),
|
|
2207
|
-
// 33
|
|
2208
|
-
NOT_INSTALLED_WITH_PROVIDE: te(),
|
|
2209
|
-
// 34
|
|
2210
|
-
// unexpected error
|
|
2211
|
-
UNEXPECTED_ERROR: te(),
|
|
2212
|
-
// 35
|
|
2213
|
-
// not compatible legacy vue-i18n constructor
|
|
2214
|
-
NOT_COMPATIBLE_LEGACY_VUE_I18N: te(),
|
|
2215
|
-
// 36
|
|
2216
|
-
// bridge support vue 2.x only
|
|
2217
|
-
BRIDGE_SUPPORT_VUE_2_ONLY: te(),
|
|
2218
|
-
// 37
|
|
2219
|
-
// need to define `i18n` option in `allowComposition: true` and `useScope: 'local' at `useI18n``
|
|
2220
|
-
MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION: te(),
|
|
2221
|
-
// 38
|
|
2222
|
-
// Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly
|
|
2223
|
-
NOT_AVAILABLE_COMPOSITION_IN_LEGACY: te(),
|
|
2224
|
-
// 39
|
|
2225
|
-
// for enhancement
|
|
2226
|
-
__EXTEND_POINT__: te()
|
|
2227
|
-
// 40
|
|
2228
|
-
};
|
|
2229
|
-
function X(e, ...t) {
|
|
2230
|
-
return Ke(e, null, process.env.NODE_ENV !== "production" ? { messages: cs, args: t } : void 0);
|
|
2231
|
-
}
|
|
2232
|
-
const cs = {
|
|
2233
|
-
[w.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
|
2234
|
-
[w.INVALID_ARGUMENT]: "Invalid argument",
|
|
2235
|
-
[w.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
|
|
2236
|
-
[w.NOT_INSTALLED]: "Need to install with `app.use` function",
|
|
2237
|
-
[w.UNEXPECTED_ERROR]: "Unexpected error",
|
|
2238
|
-
[w.NOT_AVAILABLE_IN_LEGACY_MODE]: "Not available in legacy mode",
|
|
2239
|
-
[w.REQUIRED_VALUE]: "Required in value: {0}",
|
|
2240
|
-
[w.INVALID_VALUE]: "Invalid value",
|
|
2241
|
-
[w.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]: "Cannot setup vue-devtools plugin",
|
|
2242
|
-
[w.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
|
|
2243
|
-
[w.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
|
2244
|
-
[w.BRIDGE_SUPPORT_VUE_2_ONLY]: "vue-i18n-bridge support Vue 2.x only",
|
|
2245
|
-
[w.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]: "Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",
|
|
2246
|
-
[w.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
|
|
2247
|
-
}, At = /* @__PURE__ */ Ee("__translateVNode"), Ct = /* @__PURE__ */ Ee("__datetimeParts"), Pt = /* @__PURE__ */ Ee("__numberParts"), Re = /* @__PURE__ */ Ee("__enableEmitter"), rt = /* @__PURE__ */ Ee("__disableEmitter"), er = Ee("__setPluralRules"), tr = /* @__PURE__ */ Ee("__injectWithOption"), St = /* @__PURE__ */ Ee("__dispose");
|
|
2248
|
-
function at(e) {
|
|
2249
|
-
if (!V(e))
|
|
2250
|
-
return e;
|
|
2251
|
-
for (const t in e)
|
|
2252
|
-
if (ct(e, t))
|
|
2253
|
-
if (!t.includes("."))
|
|
2254
|
-
V(e[t]) && at(e[t]);
|
|
2255
|
-
else {
|
|
2256
|
-
const n = t.split("."), a = n.length - 1;
|
|
2257
|
-
let s = e, r = !1;
|
|
2258
|
-
for (let l = 0; l < a; l++) {
|
|
2259
|
-
if (n[l] in s || (s[n[l]] = {}), !V(s[n[l]])) {
|
|
2260
|
-
process.env.NODE_ENV !== "production" && q(ne(x.IGNORE_OBJ_FLATTEN, {
|
|
2261
|
-
key: n[l]
|
|
2262
|
-
})), r = !0;
|
|
2263
|
-
break;
|
|
2264
|
-
}
|
|
2265
|
-
s = s[n[l]];
|
|
2266
|
-
}
|
|
2267
|
-
r || (s[n[a]] = e[t], delete e[t]), V(s[n[a]]) && at(s[n[a]]);
|
|
2268
|
-
}
|
|
2269
|
-
return e;
|
|
2270
|
-
}
|
|
2271
|
-
function Et(e, t) {
|
|
2272
|
-
const { messages: n, __i18n: a, messageResolver: s, flatJson: r } = t, l = M(n) ? n : H(a) ? {} : { [e]: {} };
|
|
2273
|
-
if (H(a) && a.forEach((i) => {
|
|
2274
|
-
if ("locale" in i && "resource" in i) {
|
|
2275
|
-
const { locale: u, resource: _ } = i;
|
|
2276
|
-
u ? (l[u] = l[u] || {}, it(_, l[u])) : it(_, l);
|
|
2277
|
-
} else
|
|
2278
|
-
v(i) && it(JSON.parse(i), l);
|
|
2279
|
-
}), s == null && r)
|
|
2280
|
-
for (const i in l)
|
|
2281
|
-
ct(l, i) && at(l[i]);
|
|
2282
|
-
return l;
|
|
2283
|
-
}
|
|
2284
|
-
function nr(e) {
|
|
2285
|
-
return e.type;
|
|
2286
|
-
}
|
|
2287
|
-
function rr(e, t, n) {
|
|
2288
|
-
let a = V(t.messages) ? t.messages : {};
|
|
2289
|
-
"__i18nGlobal" in n && (a = Et(e.locale.value, {
|
|
2290
|
-
messages: a,
|
|
2291
|
-
__i18n: n.__i18nGlobal
|
|
2292
|
-
}));
|
|
2293
|
-
const s = Object.keys(a);
|
|
2294
|
-
s.length && s.forEach((r) => {
|
|
2295
|
-
e.mergeLocaleMessage(r, a[r]);
|
|
2296
|
-
});
|
|
2297
|
-
{
|
|
2298
|
-
if (V(t.datetimeFormats)) {
|
|
2299
|
-
const r = Object.keys(t.datetimeFormats);
|
|
2300
|
-
r.length && r.forEach((l) => {
|
|
2301
|
-
e.mergeDateTimeFormat(l, t.datetimeFormats[l]);
|
|
2302
|
-
});
|
|
2303
|
-
}
|
|
2304
|
-
if (V(t.numberFormats)) {
|
|
2305
|
-
const r = Object.keys(t.numberFormats);
|
|
2306
|
-
r.length && r.forEach((l) => {
|
|
2307
|
-
e.mergeNumberFormat(l, t.numberFormats[l]);
|
|
2308
|
-
});
|
|
2309
|
-
}
|
|
2310
|
-
}
|
|
2311
|
-
}
|
|
2312
|
-
function dn(e) {
|
|
2313
|
-
return Lr(Ir, null, e, 0);
|
|
2314
|
-
}
|
|
2315
|
-
const gn = "__INTLIFY_META__", Nn = () => [], us = () => !1;
|
|
2316
|
-
let pn = 0;
|
|
2317
|
-
function Tn(e) {
|
|
2318
|
-
return (t, n, a, s) => e(n, a, tt() || void 0, s);
|
|
2319
|
-
}
|
|
2320
|
-
const fs = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
2321
|
-
const e = tt();
|
|
2322
|
-
let t = null;
|
|
2323
|
-
return e && (t = nr(e)[gn]) ? { [gn]: t } : null;
|
|
2324
|
-
};
|
|
2325
|
-
function $t(e = {}, t) {
|
|
2326
|
-
const { __root: n, __injectWithOption: a } = e, s = n === void 0, r = e.flatJson, l = ie ? We : Pn, i = !!e.translateExistCompatible;
|
|
2327
|
-
process.env.NODE_ENV !== "production" && i && kn(ne(x.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));
|
|
2328
|
-
let u = U(e.inheritLocale) ? e.inheritLocale : !0;
|
|
2329
|
-
const _ = l(
|
|
2330
|
-
// prettier-ignore
|
|
2331
|
-
n && u ? n.locale.value : v(e.locale) ? e.locale : Ye
|
|
2332
|
-
), p = l(
|
|
2333
|
-
// prettier-ignore
|
|
2334
|
-
n && u ? n.fallbackLocale.value : v(e.fallbackLocale) || H(e.fallbackLocale) || M(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : _.value
|
|
2335
|
-
), T = l(Et(_.value, e)), d = l(M(e.datetimeFormats) ? e.datetimeFormats : { [_.value]: {} }), I = l(M(e.numberFormats) ? e.numberFormats : { [_.value]: {} });
|
|
2336
|
-
let R = n ? n.missingWarn : U(e.missingWarn) || Ie(e.missingWarn) ? e.missingWarn : !0, S = n ? n.fallbackWarn : U(e.fallbackWarn) || Ie(e.fallbackWarn) ? e.fallbackWarn : !0, P = n ? n.fallbackRoot : U(e.fallbackRoot) ? e.fallbackRoot : !0, f = !!e.fallbackFormat, g = G(e.missing) ? e.missing : null, O = G(e.missing) ? Tn(e.missing) : null, N = G(e.postTranslation) ? e.postTranslation : null, A = n ? n.warnHtmlMessage : U(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, h = !!e.escapeParameter;
|
|
2337
|
-
const D = n ? n.modifiers : M(e.modifiers) ? e.modifiers : {};
|
|
2338
|
-
let F = e.pluralRules || n && n.pluralRules, b;
|
|
2339
|
-
b = (() => {
|
|
2340
|
-
s && an(null);
|
|
2341
|
-
const E = {
|
|
2342
|
-
version: ls,
|
|
2343
|
-
locale: _.value,
|
|
2344
|
-
fallbackLocale: p.value,
|
|
2345
|
-
messages: T.value,
|
|
2346
|
-
modifiers: D,
|
|
2347
|
-
pluralRules: F,
|
|
2348
|
-
missing: O === null ? void 0 : O,
|
|
2349
|
-
missingWarn: R,
|
|
2350
|
-
fallbackWarn: S,
|
|
2351
|
-
fallbackFormat: f,
|
|
2352
|
-
unresolving: !0,
|
|
2353
|
-
postTranslation: N === null ? void 0 : N,
|
|
2354
|
-
warnHtmlMessage: A,
|
|
2355
|
-
escapeParameter: h,
|
|
2356
|
-
messageResolver: e.messageResolver,
|
|
2357
|
-
messageCompiler: e.messageCompiler,
|
|
2358
|
-
__meta: { framework: "vue" }
|
|
2359
|
-
};
|
|
2360
|
-
E.datetimeFormats = d.value, E.numberFormats = I.value, E.__datetimeFormatters = M(b) ? b.__datetimeFormatters : void 0, E.__numberFormatters = M(b) ? b.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (E.__v_emitter = M(b) ? b.__v_emitter : void 0);
|
|
2361
|
-
const L = Ha(E);
|
|
2362
|
-
return s && an(L), L;
|
|
2363
|
-
})(), et(b, _.value, p.value);
|
|
2364
|
-
function le() {
|
|
2365
|
-
return [
|
|
2366
|
-
_.value,
|
|
2367
|
-
p.value,
|
|
2368
|
-
T.value,
|
|
2369
|
-
d.value,
|
|
2370
|
-
I.value
|
|
2371
|
-
];
|
|
2372
|
-
}
|
|
2373
|
-
const J = _e({
|
|
2374
|
-
get: () => _.value,
|
|
2375
|
-
set: (E) => {
|
|
2376
|
-
_.value = E, b.locale = _.value;
|
|
2377
|
-
}
|
|
2378
|
-
}), ae = _e({
|
|
2379
|
-
get: () => p.value,
|
|
2380
|
-
set: (E) => {
|
|
2381
|
-
p.value = E, b.fallbackLocale = p.value, et(b, _.value, E);
|
|
2382
|
-
}
|
|
2383
|
-
}), ke = _e(() => T.value), je = /* @__PURE__ */ _e(() => d.value), ce = /* @__PURE__ */ _e(() => I.value);
|
|
2384
|
-
function ye() {
|
|
2385
|
-
return G(N) ? N : null;
|
|
2386
|
-
}
|
|
2387
|
-
function Be(E) {
|
|
2388
|
-
N = E, b.postTranslation = E;
|
|
2389
|
-
}
|
|
2390
|
-
function Me() {
|
|
2391
|
-
return g;
|
|
2392
|
-
}
|
|
2393
|
-
function Xe(E) {
|
|
2394
|
-
E !== null && (O = Tn(E)), g = E, b.missing = O;
|
|
2395
|
-
}
|
|
2396
|
-
function Je(E, L) {
|
|
2397
|
-
return E !== "translate" || !L.resolvedMessage;
|
|
2398
|
-
}
|
|
2399
|
-
const oe = (E, L, W, K, Oe, lt) => {
|
|
2400
|
-
le();
|
|
2401
|
-
let Ve;
|
|
2402
|
-
try {
|
|
2403
|
-
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, s || (b.fallbackContext = n ? Ga() : void 0), Ve = E(b);
|
|
2404
|
-
} finally {
|
|
2405
|
-
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, s || (b.fallbackContext = void 0);
|
|
2406
|
-
}
|
|
2407
|
-
if (W !== "translate exists" && // for not `te` (e.g `t`)
|
|
2408
|
-
B(Ve) && Ve === _t || W === "translate exists" && !Ve) {
|
|
2409
|
-
const [Ce, Er] = L();
|
|
2410
|
-
if (process.env.NODE_ENV !== "production" && n && v(Ce) && Je(W, Er) && (P && (mt(S, Ce) || Hn(R, Ce)) && q(ne(x.FALLBACK_TO_ROOT, {
|
|
2411
|
-
key: Ce,
|
|
2412
|
-
type: W
|
|
2413
|
-
})), process.env.NODE_ENV !== "production")) {
|
|
2414
|
-
const { __v_emitter: xt } = b;
|
|
2415
|
-
xt && P && xt.emit("fallback", {
|
|
2416
|
-
type: W,
|
|
2417
|
-
key: Ce,
|
|
2418
|
-
to: "global",
|
|
2419
|
-
groupId: `${W}:${Ce}`
|
|
2420
|
-
});
|
|
2421
|
-
}
|
|
2422
|
-
return n && P ? K(n) : Oe(Ce);
|
|
2423
|
-
} else {
|
|
2424
|
-
if (lt(Ve))
|
|
2425
|
-
return Ve;
|
|
2426
|
-
throw X(w.UNEXPECTED_RETURN_TYPE);
|
|
2427
|
-
}
|
|
2428
|
-
};
|
|
2429
|
-
function Fe(...E) {
|
|
2430
|
-
return oe((L) => Reflect.apply(cn, null, [L, ...E]), () => It(...E), "translate", (L) => Reflect.apply(L.t, L, [...E]), (L) => L, (L) => v(L));
|
|
2431
|
-
}
|
|
2432
|
-
function Ue(...E) {
|
|
2433
|
-
const [L, W, K] = E;
|
|
2434
|
-
if (K && !V(K))
|
|
2435
|
-
throw X(w.INVALID_ARGUMENT);
|
|
2436
|
-
return Fe(L, W, Z({ resolvedMessage: !0 }, K || {}));
|
|
2437
|
-
}
|
|
2438
|
-
function Qe(...E) {
|
|
2439
|
-
return oe((L) => Reflect.apply(fn, null, [L, ...E]), () => vt(...E), "datetime format", (L) => Reflect.apply(L.d, L, [...E]), () => ut, (L) => v(L));
|
|
2440
|
-
}
|
|
2441
|
-
function qe(...E) {
|
|
2442
|
-
return oe((L) => Reflect.apply(mn, null, [L, ...E]), () => bt(...E), "number format", (L) => Reflect.apply(L.n, L, [...E]), () => ut, (L) => v(L));
|
|
2443
|
-
}
|
|
2444
|
-
function Ze(E) {
|
|
2445
|
-
return E.map((L) => v(L) || B(L) || U(L) ? dn(String(L)) : L);
|
|
2446
|
-
}
|
|
2447
|
-
const he = {
|
|
2448
|
-
normalize: Ze,
|
|
2449
|
-
interpolate: (E) => E,
|
|
2450
|
-
type: "vnode"
|
|
2451
|
-
};
|
|
2452
|
-
function Te(...E) {
|
|
2453
|
-
return oe(
|
|
2454
|
-
(L) => {
|
|
2455
|
-
let W;
|
|
2456
|
-
const K = L;
|
|
2457
|
-
try {
|
|
2458
|
-
K.processor = he, W = Reflect.apply(cn, null, [K, ...E]);
|
|
2459
|
-
} finally {
|
|
2460
|
-
K.processor = null;
|
|
2461
|
-
}
|
|
2462
|
-
return W;
|
|
2463
|
-
},
|
|
2464
|
-
() => It(...E),
|
|
2465
|
-
"translate",
|
|
2466
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2467
|
-
(L) => L[At](...E),
|
|
2468
|
-
(L) => [dn(L)],
|
|
2469
|
-
(L) => H(L)
|
|
2470
|
-
);
|
|
2471
|
-
}
|
|
2472
|
-
function Ae(...E) {
|
|
2473
|
-
return oe(
|
|
2474
|
-
(L) => Reflect.apply(mn, null, [L, ...E]),
|
|
2475
|
-
() => bt(...E),
|
|
2476
|
-
"number format",
|
|
2477
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2478
|
-
(L) => L[Pt](...E),
|
|
2479
|
-
Nn,
|
|
2480
|
-
(L) => v(L) || H(L)
|
|
2481
|
-
);
|
|
2482
|
-
}
|
|
2483
|
-
function ze(...E) {
|
|
2484
|
-
return oe(
|
|
2485
|
-
(L) => Reflect.apply(fn, null, [L, ...E]),
|
|
2486
|
-
() => vt(...E),
|
|
2487
|
-
"datetime format",
|
|
2488
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2489
|
-
(L) => L[Ct](...E),
|
|
2490
|
-
Nn,
|
|
2491
|
-
(L) => v(L) || H(L)
|
|
2492
|
-
);
|
|
2493
|
-
}
|
|
2494
|
-
function c(E) {
|
|
2495
|
-
F = E, b.pluralRules = F;
|
|
2496
|
-
}
|
|
2497
|
-
function o(E, L) {
|
|
2498
|
-
return oe(() => {
|
|
2499
|
-
if (!E)
|
|
2500
|
-
return !1;
|
|
2501
|
-
const W = v(L) ? L : _.value, K = y(W), Oe = b.messageResolver(K, E);
|
|
2502
|
-
return i ? Oe != null : ve(Oe) || se(Oe) || v(Oe);
|
|
2503
|
-
}, () => [E], "translate exists", (W) => Reflect.apply(W.te, W, [E, L]), us, (W) => U(W));
|
|
2504
|
-
}
|
|
2505
|
-
function m(E) {
|
|
2506
|
-
let L = null;
|
|
2507
|
-
const W = Un(b, p.value, _.value);
|
|
2508
|
-
for (let K = 0; K < W.length; K++) {
|
|
2509
|
-
const Oe = T.value[W[K]] || {}, lt = b.messageResolver(Oe, E);
|
|
2510
|
-
if (lt != null) {
|
|
2511
|
-
L = lt;
|
|
2512
|
-
break;
|
|
2513
|
-
}
|
|
2514
|
-
}
|
|
2515
|
-
return L;
|
|
2516
|
-
}
|
|
2517
|
-
function C(E) {
|
|
2518
|
-
const L = m(E);
|
|
2519
|
-
return L ?? (n ? n.tm(E) || {} : {});
|
|
2520
|
-
}
|
|
2521
|
-
function y(E) {
|
|
2522
|
-
return T.value[E] || {};
|
|
2523
|
-
}
|
|
2524
|
-
function $(E, L) {
|
|
2525
|
-
if (r) {
|
|
2526
|
-
const W = { [E]: L };
|
|
2527
|
-
for (const K in W)
|
|
2528
|
-
ct(W, K) && at(W[K]);
|
|
2529
|
-
L = W[E];
|
|
2530
|
-
}
|
|
2531
|
-
T.value[E] = L, b.messages = T.value;
|
|
2532
|
-
}
|
|
2533
|
-
function ue(E, L) {
|
|
2534
|
-
T.value[E] = T.value[E] || {};
|
|
2535
|
-
const W = { [E]: L };
|
|
2536
|
-
if (r)
|
|
2537
|
-
for (const K in W)
|
|
2538
|
-
ct(W, K) && at(W[K]);
|
|
2539
|
-
L = W[E], it(L, T.value[E]), b.messages = T.value;
|
|
2540
|
-
}
|
|
2541
|
-
function de(E) {
|
|
2542
|
-
return d.value[E] || {};
|
|
2543
|
-
}
|
|
2544
|
-
function cr(E, L) {
|
|
2545
|
-
d.value[E] = L, b.datetimeFormats = d.value, _n(b, E, L);
|
|
2546
|
-
}
|
|
2547
|
-
function ur(E, L) {
|
|
2548
|
-
d.value[E] = Z(d.value[E] || {}, L), b.datetimeFormats = d.value, _n(b, E, L);
|
|
2549
|
-
}
|
|
2550
|
-
function fr(E) {
|
|
2551
|
-
return I.value[E] || {};
|
|
2552
|
-
}
|
|
2553
|
-
function _r(E, L) {
|
|
2554
|
-
I.value[E] = L, b.numberFormats = I.value, En(b, E, L);
|
|
2555
|
-
}
|
|
2556
|
-
function mr(E, L) {
|
|
2557
|
-
I.value[E] = Z(I.value[E] || {}, L), b.numberFormats = I.value, En(b, E, L);
|
|
2558
|
-
}
|
|
2559
|
-
pn++, n && ie && (Tt(n.locale, (E) => {
|
|
2560
|
-
u && (_.value = E, b.locale = E, et(b, _.value, p.value));
|
|
2561
|
-
}), Tt(n.fallbackLocale, (E) => {
|
|
2562
|
-
u && (p.value = E, b.fallbackLocale = E, et(b, _.value, p.value));
|
|
2563
|
-
}));
|
|
2564
|
-
const j = {
|
|
2565
|
-
id: pn,
|
|
2566
|
-
locale: J,
|
|
2567
|
-
fallbackLocale: ae,
|
|
2568
|
-
get inheritLocale() {
|
|
2569
|
-
return u;
|
|
2570
|
-
},
|
|
2571
|
-
set inheritLocale(E) {
|
|
2572
|
-
u = E, E && n && (_.value = n.locale.value, p.value = n.fallbackLocale.value, et(b, _.value, p.value));
|
|
2573
|
-
},
|
|
2574
|
-
get availableLocales() {
|
|
2575
|
-
return Object.keys(T.value).sort();
|
|
2576
|
-
},
|
|
2577
|
-
messages: ke,
|
|
2578
|
-
get modifiers() {
|
|
2579
|
-
return D;
|
|
2580
|
-
},
|
|
2581
|
-
get pluralRules() {
|
|
2582
|
-
return F || {};
|
|
2583
|
-
},
|
|
2584
|
-
get isGlobal() {
|
|
2585
|
-
return s;
|
|
2586
|
-
},
|
|
2587
|
-
get missingWarn() {
|
|
2588
|
-
return R;
|
|
2589
|
-
},
|
|
2590
|
-
set missingWarn(E) {
|
|
2591
|
-
R = E, b.missingWarn = R;
|
|
2592
|
-
},
|
|
2593
|
-
get fallbackWarn() {
|
|
2594
|
-
return S;
|
|
2595
|
-
},
|
|
2596
|
-
set fallbackWarn(E) {
|
|
2597
|
-
S = E, b.fallbackWarn = S;
|
|
2598
|
-
},
|
|
2599
|
-
get fallbackRoot() {
|
|
2600
|
-
return P;
|
|
2601
|
-
},
|
|
2602
|
-
set fallbackRoot(E) {
|
|
2603
|
-
P = E;
|
|
2604
|
-
},
|
|
2605
|
-
get fallbackFormat() {
|
|
2606
|
-
return f;
|
|
2607
|
-
},
|
|
2608
|
-
set fallbackFormat(E) {
|
|
2609
|
-
f = E, b.fallbackFormat = f;
|
|
2610
|
-
},
|
|
2611
|
-
get warnHtmlMessage() {
|
|
2612
|
-
return A;
|
|
2613
|
-
},
|
|
2614
|
-
set warnHtmlMessage(E) {
|
|
2615
|
-
A = E, b.warnHtmlMessage = E;
|
|
2616
|
-
},
|
|
2617
|
-
get escapeParameter() {
|
|
2618
|
-
return h;
|
|
2619
|
-
},
|
|
2620
|
-
set escapeParameter(E) {
|
|
2621
|
-
h = E, b.escapeParameter = E;
|
|
2622
|
-
},
|
|
2623
|
-
t: Fe,
|
|
2624
|
-
getLocaleMessage: y,
|
|
2625
|
-
setLocaleMessage: $,
|
|
2626
|
-
mergeLocaleMessage: ue,
|
|
2627
|
-
getPostTranslationHandler: ye,
|
|
2628
|
-
setPostTranslationHandler: Be,
|
|
2629
|
-
getMissingHandler: Me,
|
|
2630
|
-
setMissingHandler: Xe,
|
|
2631
|
-
[er]: c
|
|
2632
|
-
};
|
|
2633
|
-
return j.datetimeFormats = je, j.numberFormats = ce, j.rt = Ue, j.te = o, j.tm = C, j.d = Qe, j.n = qe, j.getDateTimeFormat = de, j.setDateTimeFormat = cr, j.mergeDateTimeFormat = ur, j.getNumberFormat = fr, j.setNumberFormat = _r, j.mergeNumberFormat = mr, j[tr] = a, j[At] = Te, j[Ct] = ze, j[Pt] = Ae, process.env.NODE_ENV !== "production" && (j[Re] = (E) => {
|
|
2634
|
-
b.__v_emitter = E;
|
|
2635
|
-
}, j[rt] = () => {
|
|
2636
|
-
b.__v_emitter = void 0;
|
|
2637
|
-
}), j;
|
|
2638
|
-
}
|
|
2639
|
-
function _s(e) {
|
|
2640
|
-
const t = v(e.locale) ? e.locale : Ye, n = v(e.fallbackLocale) || H(e.fallbackLocale) || M(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, a = G(e.missing) ? e.missing : void 0, s = U(e.silentTranslationWarn) || Ie(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, r = U(e.silentFallbackWarn) || Ie(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, l = U(e.fallbackRoot) ? e.fallbackRoot : !0, i = !!e.formatFallbackMessages, u = M(e.modifiers) ? e.modifiers : {}, _ = e.pluralizationRules, p = G(e.postTranslation) ? e.postTranslation : void 0, T = v(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, d = !!e.escapeParameterHtml, I = U(e.sync) ? e.sync : !0;
|
|
2641
|
-
process.env.NODE_ENV !== "production" && e.formatter && q(ne(x.NOT_SUPPORTED_FORMATTER)), process.env.NODE_ENV !== "production" && e.preserveDirectiveContent && q(ne(x.NOT_SUPPORTED_PRESERVE_DIRECTIVE));
|
|
2642
|
-
let R = e.messages;
|
|
2643
|
-
if (M(e.sharedMessages)) {
|
|
2644
|
-
const h = e.sharedMessages;
|
|
2645
|
-
R = Object.keys(h).reduce((F, b) => {
|
|
2646
|
-
const Y = F[b] || (F[b] = {});
|
|
2647
|
-
return Z(Y, h[b]), F;
|
|
2648
|
-
}, R || {});
|
|
2649
|
-
}
|
|
2650
|
-
const { __i18n: S, __root: P, __injectWithOption: f } = e, g = e.datetimeFormats, O = e.numberFormats, N = e.flatJson, A = e.translateExistCompatible;
|
|
2651
|
-
return {
|
|
2652
|
-
locale: t,
|
|
2653
|
-
fallbackLocale: n,
|
|
2654
|
-
messages: R,
|
|
2655
|
-
flatJson: N,
|
|
2656
|
-
datetimeFormats: g,
|
|
2657
|
-
numberFormats: O,
|
|
2658
|
-
missing: a,
|
|
2659
|
-
missingWarn: s,
|
|
2660
|
-
fallbackWarn: r,
|
|
2661
|
-
fallbackRoot: l,
|
|
2662
|
-
fallbackFormat: i,
|
|
2663
|
-
modifiers: u,
|
|
2664
|
-
pluralRules: _,
|
|
2665
|
-
postTranslation: p,
|
|
2666
|
-
warnHtmlMessage: T,
|
|
2667
|
-
escapeParameter: d,
|
|
2668
|
-
messageResolver: e.messageResolver,
|
|
2669
|
-
inheritLocale: I,
|
|
2670
|
-
translateExistCompatible: A,
|
|
2671
|
-
__i18n: S,
|
|
2672
|
-
__root: P,
|
|
2673
|
-
__injectWithOption: f
|
|
2674
|
-
};
|
|
2675
|
-
}
|
|
2676
|
-
function Dt(e = {}, t) {
|
|
2677
|
-
{
|
|
2678
|
-
const n = $t(_s(e)), { __extender: a } = e, s = {
|
|
2679
|
-
// id
|
|
2680
|
-
id: n.id,
|
|
2681
|
-
// locale
|
|
2682
|
-
get locale() {
|
|
2683
|
-
return n.locale.value;
|
|
2684
|
-
},
|
|
2685
|
-
set locale(r) {
|
|
2686
|
-
n.locale.value = r;
|
|
2687
|
-
},
|
|
2688
|
-
// fallbackLocale
|
|
2689
|
-
get fallbackLocale() {
|
|
2690
|
-
return n.fallbackLocale.value;
|
|
2691
|
-
},
|
|
2692
|
-
set fallbackLocale(r) {
|
|
2693
|
-
n.fallbackLocale.value = r;
|
|
2694
|
-
},
|
|
2695
|
-
// messages
|
|
2696
|
-
get messages() {
|
|
2697
|
-
return n.messages.value;
|
|
2698
|
-
},
|
|
2699
|
-
// datetimeFormats
|
|
2700
|
-
get datetimeFormats() {
|
|
2701
|
-
return n.datetimeFormats.value;
|
|
2702
|
-
},
|
|
2703
|
-
// numberFormats
|
|
2704
|
-
get numberFormats() {
|
|
2705
|
-
return n.numberFormats.value;
|
|
2706
|
-
},
|
|
2707
|
-
// availableLocales
|
|
2708
|
-
get availableLocales() {
|
|
2709
|
-
return n.availableLocales;
|
|
2710
|
-
},
|
|
2711
|
-
// formatter
|
|
2712
|
-
get formatter() {
|
|
2713
|
-
return process.env.NODE_ENV !== "production" && q(ne(x.NOT_SUPPORTED_FORMATTER)), {
|
|
2714
|
-
interpolate() {
|
|
2715
|
-
return [];
|
|
2716
|
-
}
|
|
2717
|
-
};
|
|
2718
|
-
},
|
|
2719
|
-
set formatter(r) {
|
|
2720
|
-
process.env.NODE_ENV !== "production" && q(ne(x.NOT_SUPPORTED_FORMATTER));
|
|
2721
|
-
},
|
|
2722
|
-
// missing
|
|
2723
|
-
get missing() {
|
|
2724
|
-
return n.getMissingHandler();
|
|
2725
|
-
},
|
|
2726
|
-
set missing(r) {
|
|
2727
|
-
n.setMissingHandler(r);
|
|
2728
|
-
},
|
|
2729
|
-
// silentTranslationWarn
|
|
2730
|
-
get silentTranslationWarn() {
|
|
2731
|
-
return U(n.missingWarn) ? !n.missingWarn : n.missingWarn;
|
|
2732
|
-
},
|
|
2733
|
-
set silentTranslationWarn(r) {
|
|
2734
|
-
n.missingWarn = U(r) ? !r : r;
|
|
2735
|
-
},
|
|
2736
|
-
// silentFallbackWarn
|
|
2737
|
-
get silentFallbackWarn() {
|
|
2738
|
-
return U(n.fallbackWarn) ? !n.fallbackWarn : n.fallbackWarn;
|
|
2739
|
-
},
|
|
2740
|
-
set silentFallbackWarn(r) {
|
|
2741
|
-
n.fallbackWarn = U(r) ? !r : r;
|
|
2742
|
-
},
|
|
2743
|
-
// modifiers
|
|
2744
|
-
get modifiers() {
|
|
2745
|
-
return n.modifiers;
|
|
2746
|
-
},
|
|
2747
|
-
// formatFallbackMessages
|
|
2748
|
-
get formatFallbackMessages() {
|
|
2749
|
-
return n.fallbackFormat;
|
|
2750
|
-
},
|
|
2751
|
-
set formatFallbackMessages(r) {
|
|
2752
|
-
n.fallbackFormat = r;
|
|
2753
|
-
},
|
|
2754
|
-
// postTranslation
|
|
2755
|
-
get postTranslation() {
|
|
2756
|
-
return n.getPostTranslationHandler();
|
|
2757
|
-
},
|
|
2758
|
-
set postTranslation(r) {
|
|
2759
|
-
n.setPostTranslationHandler(r);
|
|
2760
|
-
},
|
|
2761
|
-
// sync
|
|
2762
|
-
get sync() {
|
|
2763
|
-
return n.inheritLocale;
|
|
2764
|
-
},
|
|
2765
|
-
set sync(r) {
|
|
2766
|
-
n.inheritLocale = r;
|
|
2767
|
-
},
|
|
2768
|
-
// warnInHtmlMessage
|
|
2769
|
-
get warnHtmlInMessage() {
|
|
2770
|
-
return n.warnHtmlMessage ? "warn" : "off";
|
|
2771
|
-
},
|
|
2772
|
-
set warnHtmlInMessage(r) {
|
|
2773
|
-
n.warnHtmlMessage = r !== "off";
|
|
2774
|
-
},
|
|
2775
|
-
// escapeParameterHtml
|
|
2776
|
-
get escapeParameterHtml() {
|
|
2777
|
-
return n.escapeParameter;
|
|
2778
|
-
},
|
|
2779
|
-
set escapeParameterHtml(r) {
|
|
2780
|
-
n.escapeParameter = r;
|
|
2781
|
-
},
|
|
2782
|
-
// preserveDirectiveContent
|
|
2783
|
-
get preserveDirectiveContent() {
|
|
2784
|
-
return process.env.NODE_ENV !== "production" && q(ne(x.NOT_SUPPORTED_PRESERVE_DIRECTIVE)), !0;
|
|
2785
|
-
},
|
|
2786
|
-
set preserveDirectiveContent(r) {
|
|
2787
|
-
process.env.NODE_ENV !== "production" && q(ne(x.NOT_SUPPORTED_PRESERVE_DIRECTIVE));
|
|
2788
|
-
},
|
|
2789
|
-
// pluralizationRules
|
|
2790
|
-
get pluralizationRules() {
|
|
2791
|
-
return n.pluralRules || {};
|
|
2792
|
-
},
|
|
2793
|
-
// for internal
|
|
2794
|
-
__composer: n,
|
|
2795
|
-
// t
|
|
2796
|
-
t(...r) {
|
|
2797
|
-
const [l, i, u] = r, _ = {};
|
|
2798
|
-
let p = null, T = null;
|
|
2799
|
-
if (!v(l))
|
|
2800
|
-
throw X(w.INVALID_ARGUMENT);
|
|
2801
|
-
const d = l;
|
|
2802
|
-
return v(i) ? _.locale = i : H(i) ? p = i : M(i) && (T = i), H(u) ? p = u : M(u) && (T = u), Reflect.apply(n.t, n, [
|
|
2803
|
-
d,
|
|
2804
|
-
p || T || {},
|
|
2805
|
-
_
|
|
2806
|
-
]);
|
|
2807
|
-
},
|
|
2808
|
-
rt(...r) {
|
|
2809
|
-
return Reflect.apply(n.rt, n, [...r]);
|
|
2810
|
-
},
|
|
2811
|
-
// tc
|
|
2812
|
-
tc(...r) {
|
|
2813
|
-
const [l, i, u] = r, _ = { plural: 1 };
|
|
2814
|
-
let p = null, T = null;
|
|
2815
|
-
if (!v(l))
|
|
2816
|
-
throw X(w.INVALID_ARGUMENT);
|
|
2817
|
-
const d = l;
|
|
2818
|
-
return v(i) ? _.locale = i : B(i) ? _.plural = i : H(i) ? p = i : M(i) && (T = i), v(u) ? _.locale = u : H(u) ? p = u : M(u) && (T = u), Reflect.apply(n.t, n, [
|
|
2819
|
-
d,
|
|
2820
|
-
p || T || {},
|
|
2821
|
-
_
|
|
2822
|
-
]);
|
|
2823
|
-
},
|
|
2824
|
-
// te
|
|
2825
|
-
te(r, l) {
|
|
2826
|
-
return n.te(r, l);
|
|
2827
|
-
},
|
|
2828
|
-
// tm
|
|
2829
|
-
tm(r) {
|
|
2830
|
-
return n.tm(r);
|
|
2831
|
-
},
|
|
2832
|
-
// getLocaleMessage
|
|
2833
|
-
getLocaleMessage(r) {
|
|
2834
|
-
return n.getLocaleMessage(r);
|
|
2835
|
-
},
|
|
2836
|
-
// setLocaleMessage
|
|
2837
|
-
setLocaleMessage(r, l) {
|
|
2838
|
-
n.setLocaleMessage(r, l);
|
|
2839
|
-
},
|
|
2840
|
-
// mergeLocaleMessage
|
|
2841
|
-
mergeLocaleMessage(r, l) {
|
|
2842
|
-
n.mergeLocaleMessage(r, l);
|
|
2843
|
-
},
|
|
2844
|
-
// d
|
|
2845
|
-
d(...r) {
|
|
2846
|
-
return Reflect.apply(n.d, n, [...r]);
|
|
2847
|
-
},
|
|
2848
|
-
// getDateTimeFormat
|
|
2849
|
-
getDateTimeFormat(r) {
|
|
2850
|
-
return n.getDateTimeFormat(r);
|
|
2851
|
-
},
|
|
2852
|
-
// setDateTimeFormat
|
|
2853
|
-
setDateTimeFormat(r, l) {
|
|
2854
|
-
n.setDateTimeFormat(r, l);
|
|
2855
|
-
},
|
|
2856
|
-
// mergeDateTimeFormat
|
|
2857
|
-
mergeDateTimeFormat(r, l) {
|
|
2858
|
-
n.mergeDateTimeFormat(r, l);
|
|
2859
|
-
},
|
|
2860
|
-
// n
|
|
2861
|
-
n(...r) {
|
|
2862
|
-
return Reflect.apply(n.n, n, [...r]);
|
|
2863
|
-
},
|
|
2864
|
-
// getNumberFormat
|
|
2865
|
-
getNumberFormat(r) {
|
|
2866
|
-
return n.getNumberFormat(r);
|
|
2867
|
-
},
|
|
2868
|
-
// setNumberFormat
|
|
2869
|
-
setNumberFormat(r, l) {
|
|
2870
|
-
n.setNumberFormat(r, l);
|
|
2871
|
-
},
|
|
2872
|
-
// mergeNumberFormat
|
|
2873
|
-
mergeNumberFormat(r, l) {
|
|
2874
|
-
n.mergeNumberFormat(r, l);
|
|
2875
|
-
},
|
|
2876
|
-
// getChoiceIndex
|
|
2877
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2878
|
-
getChoiceIndex(r, l) {
|
|
2879
|
-
return process.env.NODE_ENV !== "production" && q(ne(x.NOT_SUPPORTED_GET_CHOICE_INDEX)), -1;
|
|
2880
|
-
}
|
|
2881
|
-
};
|
|
2882
|
-
return s.__extender = a, process.env.NODE_ENV !== "production" && (s.__enableEmitter = (r) => {
|
|
2883
|
-
const l = n;
|
|
2884
|
-
l[Re] && l[Re](r);
|
|
2885
|
-
}, s.__disableEmitter = () => {
|
|
2886
|
-
const r = n;
|
|
2887
|
-
r[rt] && r[rt]();
|
|
2888
|
-
}), s;
|
|
2889
|
-
}
|
|
2890
|
-
}
|
|
2891
|
-
const Wt = {
|
|
2892
|
-
tag: {
|
|
2893
|
-
type: [String, Object]
|
|
2894
|
-
},
|
|
2895
|
-
locale: {
|
|
2896
|
-
type: String
|
|
2897
|
-
},
|
|
2898
|
-
scope: {
|
|
2899
|
-
type: String,
|
|
2900
|
-
// NOTE: avoid https://github.com/microsoft/rushstack/issues/1050
|
|
2901
|
-
validator: (e) => e === "parent" || e === "global",
|
|
2902
|
-
default: "parent"
|
|
2903
|
-
/* ComponentI18nScope */
|
|
2904
|
-
},
|
|
2905
|
-
i18n: {
|
|
2906
|
-
type: Object
|
|
2907
|
-
}
|
|
2908
|
-
};
|
|
2909
|
-
function ms({ slots: e }, t) {
|
|
2910
|
-
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((a, s) => [
|
|
2911
|
-
...a,
|
|
2912
|
-
// prettier-ignore
|
|
2913
|
-
...s.type === Sn ? s.children : [s]
|
|
2914
|
-
], []) : t.reduce((n, a) => {
|
|
2915
|
-
const s = e[a];
|
|
2916
|
-
return s && (n[a] = s()), n;
|
|
2917
|
-
}, {});
|
|
2918
|
-
}
|
|
2919
|
-
function ar(e) {
|
|
2920
|
-
return Sn;
|
|
2921
|
-
}
|
|
2922
|
-
const Es = /* @__PURE__ */ kt({
|
|
2923
|
-
/* eslint-disable */
|
|
2924
|
-
name: "i18n-t",
|
|
2925
|
-
props: Z({
|
|
2926
|
-
keypath: {
|
|
2927
|
-
type: String,
|
|
2928
|
-
required: !0
|
|
2929
|
-
},
|
|
2930
|
-
plural: {
|
|
2931
|
-
type: [Number, String],
|
|
2932
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2933
|
-
validator: (e) => B(e) || !isNaN(e)
|
|
2934
|
-
}
|
|
2935
|
-
}, Wt),
|
|
2936
|
-
/* eslint-enable */
|
|
2937
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2938
|
-
setup(e, t) {
|
|
2939
|
-
const { slots: n, attrs: a } = t, s = e.i18n || Ht({
|
|
2940
|
-
useScope: e.scope,
|
|
2941
|
-
__useComponent: !0
|
|
2942
|
-
});
|
|
2943
|
-
return () => {
|
|
2944
|
-
const r = Object.keys(n).filter((T) => T !== "_"), l = {};
|
|
2945
|
-
e.locale && (l.locale = e.locale), e.plural !== void 0 && (l.plural = v(e.plural) ? +e.plural : e.plural);
|
|
2946
|
-
const i = ms(t, r), u = s[At](e.keypath, i, l), _ = Z({}, a), p = v(e.tag) || V(e.tag) ? e.tag : ar();
|
|
2947
|
-
return Cn(p, _, u);
|
|
2948
|
-
};
|
|
2949
|
-
}
|
|
2950
|
-
}), Nt = Es;
|
|
2951
|
-
function ds(e) {
|
|
2952
|
-
return H(e) && !v(e[0]);
|
|
2953
|
-
}
|
|
2954
|
-
function sr(e, t, n, a) {
|
|
2955
|
-
const { slots: s, attrs: r } = t;
|
|
2956
|
-
return () => {
|
|
2957
|
-
const l = { part: !0 };
|
|
2958
|
-
let i = {};
|
|
2959
|
-
e.locale && (l.locale = e.locale), v(e.format) ? l.key = e.format : V(e.format) && (v(e.format.key) && (l.key = e.format.key), i = Object.keys(e.format).reduce((d, I) => n.includes(I) ? Z({}, d, { [I]: e.format[I] }) : d, {}));
|
|
2960
|
-
const u = a(e.value, l, i);
|
|
2961
|
-
let _ = [l.key];
|
|
2962
|
-
H(u) ? _ = u.map((d, I) => {
|
|
2963
|
-
const R = s[d.type], S = R ? R({ [d.type]: d.value, index: I, parts: u }) : [d.value];
|
|
2964
|
-
return ds(S) && (S[0].key = `${d.type}-${I}`), S;
|
|
2965
|
-
}) : v(u) && (_ = [u]);
|
|
2966
|
-
const p = Z({}, r), T = v(e.tag) || V(e.tag) ? e.tag : ar();
|
|
2967
|
-
return Cn(T, p, _);
|
|
2968
|
-
};
|
|
2969
|
-
}
|
|
2970
|
-
const gs = /* @__PURE__ */ kt({
|
|
2971
|
-
/* eslint-disable */
|
|
2972
|
-
name: "i18n-n",
|
|
2973
|
-
props: Z({
|
|
2974
|
-
value: {
|
|
2975
|
-
type: Number,
|
|
2976
|
-
required: !0
|
|
2977
|
-
},
|
|
2978
|
-
format: {
|
|
2979
|
-
type: [String, Object]
|
|
2980
|
-
}
|
|
2981
|
-
}, Wt),
|
|
2982
|
-
/* eslint-enable */
|
|
2983
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2984
|
-
setup(e, t) {
|
|
2985
|
-
const n = e.i18n || Ht({
|
|
2986
|
-
useScope: "parent",
|
|
2987
|
-
__useComponent: !0
|
|
2988
|
-
});
|
|
2989
|
-
return sr(e, t, Qn, (...a) => (
|
|
2990
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2991
|
-
n[Pt](...a)
|
|
2992
|
-
));
|
|
2993
|
-
}
|
|
2994
|
-
}), On = gs, Ns = /* @__PURE__ */ kt({
|
|
2995
|
-
/* eslint-disable */
|
|
2996
|
-
name: "i18n-d",
|
|
2997
|
-
props: Z({
|
|
2998
|
-
value: {
|
|
2999
|
-
type: [Number, Date],
|
|
3000
|
-
required: !0
|
|
3001
|
-
},
|
|
3002
|
-
format: {
|
|
3003
|
-
type: [String, Object]
|
|
3004
|
-
}
|
|
3005
|
-
}, Wt),
|
|
3006
|
-
/* eslint-enable */
|
|
3007
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3008
|
-
setup(e, t) {
|
|
3009
|
-
const n = e.i18n || Ht({
|
|
3010
|
-
useScope: "parent",
|
|
3011
|
-
__useComponent: !0
|
|
3012
|
-
});
|
|
3013
|
-
return sr(e, t, Jn, (...a) => (
|
|
3014
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3015
|
-
n[Ct](...a)
|
|
3016
|
-
));
|
|
3017
|
-
}
|
|
3018
|
-
}), Ln = Ns;
|
|
3019
|
-
function ps(e, t) {
|
|
3020
|
-
const n = e;
|
|
3021
|
-
if (e.mode === "composition")
|
|
3022
|
-
return n.__getInstance(t) || e.global;
|
|
3023
|
-
{
|
|
3024
|
-
const a = n.__getInstance(t);
|
|
3025
|
-
return a != null ? a.__composer : e.global.__composer;
|
|
3026
|
-
}
|
|
3027
|
-
}
|
|
3028
|
-
function Ts(e) {
|
|
3029
|
-
const t = (l) => {
|
|
3030
|
-
const { instance: i, modifiers: u, value: _ } = l;
|
|
3031
|
-
if (!i || !i.$)
|
|
3032
|
-
throw X(w.UNEXPECTED_ERROR);
|
|
3033
|
-
const p = ps(e, i.$);
|
|
3034
|
-
process.env.NODE_ENV !== "production" && u.preserve && q(ne(x.NOT_SUPPORTED_PRESERVE));
|
|
3035
|
-
const T = In(_);
|
|
3036
|
-
return [
|
|
3037
|
-
Reflect.apply(p.t, p, [...vn(T)]),
|
|
3038
|
-
p
|
|
3039
|
-
];
|
|
3040
|
-
};
|
|
3041
|
-
return {
|
|
3042
|
-
created: (l, i) => {
|
|
3043
|
-
const [u, _] = t(i);
|
|
3044
|
-
ie && e.global === _ && (l.__i18nWatcher = Tt(_.locale, () => {
|
|
3045
|
-
i.instance && i.instance.$forceUpdate();
|
|
3046
|
-
})), l.__composer = _, l.textContent = u;
|
|
3047
|
-
},
|
|
3048
|
-
unmounted: (l) => {
|
|
3049
|
-
ie && l.__i18nWatcher && (l.__i18nWatcher(), l.__i18nWatcher = void 0, delete l.__i18nWatcher), l.__composer && (l.__composer = void 0, delete l.__composer);
|
|
3050
|
-
},
|
|
3051
|
-
beforeUpdate: (l, { value: i }) => {
|
|
3052
|
-
if (l.__composer) {
|
|
3053
|
-
const u = l.__composer, _ = In(i);
|
|
3054
|
-
l.textContent = Reflect.apply(u.t, u, [
|
|
3055
|
-
...vn(_)
|
|
3056
|
-
]);
|
|
3057
|
-
}
|
|
3058
|
-
},
|
|
3059
|
-
getSSRProps: (l) => {
|
|
3060
|
-
const [i] = t(l);
|
|
3061
|
-
return { textContent: i };
|
|
3062
|
-
}
|
|
3063
|
-
};
|
|
3064
|
-
}
|
|
3065
|
-
function In(e) {
|
|
3066
|
-
if (v(e))
|
|
3067
|
-
return { path: e };
|
|
3068
|
-
if (M(e)) {
|
|
3069
|
-
if (!("path" in e))
|
|
3070
|
-
throw X(w.REQUIRED_VALUE, "path");
|
|
3071
|
-
return e;
|
|
3072
|
-
} else
|
|
3073
|
-
throw X(w.INVALID_VALUE);
|
|
3074
|
-
}
|
|
3075
|
-
function vn(e) {
|
|
3076
|
-
const { path: t, locale: n, args: a, choice: s, plural: r } = e, l = {}, i = a || {};
|
|
3077
|
-
return v(n) && (l.locale = n), B(s) && (l.plural = s), B(r) && (l.plural = r), [t, i, l];
|
|
3078
|
-
}
|
|
3079
|
-
function Os(e, t, ...n) {
|
|
3080
|
-
const a = M(n[0]) ? n[0] : {}, s = !!a.useI18nComponentName, r = U(a.globalInstall) ? a.globalInstall : !0;
|
|
3081
|
-
process.env.NODE_ENV !== "production" && r && s && q(ne(x.COMPONENT_NAME_LEGACY_COMPATIBLE, {
|
|
3082
|
-
name: Nt.name
|
|
3083
|
-
})), r && ([s ? "i18n" : Nt.name, "I18nT"].forEach((l) => e.component(l, Nt)), [On.name, "I18nN"].forEach((l) => e.component(l, On)), [Ln.name, "I18nD"].forEach((l) => e.component(l, Ln))), e.directive("t", Ts(t));
|
|
3084
|
-
}
|
|
3085
|
-
const pt = {
|
|
3086
|
-
"vue-devtools-plugin-vue-i18n": "Vue I18n devtools",
|
|
3087
|
-
"vue-i18n-resource-inspector": "I18n Resources",
|
|
3088
|
-
"vue-i18n-timeline": "Vue I18n"
|
|
3089
|
-
}, Ls = {
|
|
3090
|
-
"vue-i18n-resource-inspector": "Search for scopes ..."
|
|
3091
|
-
}, Is = {
|
|
3092
|
-
"vue-i18n-timeline": 16764185
|
|
3093
|
-
}, lr = "vue-i18n: composer properties";
|
|
3094
|
-
let Rt;
|
|
3095
|
-
async function vs(e, t) {
|
|
3096
|
-
return new Promise((n, a) => {
|
|
3097
|
-
try {
|
|
3098
|
-
ss({
|
|
3099
|
-
id: "vue-devtools-plugin-vue-i18n",
|
|
3100
|
-
label: pt[
|
|
3101
|
-
"vue-devtools-plugin-vue-i18n"
|
|
3102
|
-
/* VueDevToolsIDs.PLUGIN */
|
|
3103
|
-
],
|
|
3104
|
-
packageName: "vue-i18n",
|
|
3105
|
-
homepage: "https://vue-i18n.intlify.dev",
|
|
3106
|
-
logo: "https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",
|
|
3107
|
-
componentStateTypes: [lr],
|
|
3108
|
-
app: e
|
|
3109
|
-
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
3110
|
-
}, (s) => {
|
|
3111
|
-
Rt = s, s.on.visitComponentTree(({ componentInstance: l, treeNode: i }) => {
|
|
3112
|
-
bs(l, i, t);
|
|
3113
|
-
}), s.on.inspectComponent(({ componentInstance: l, instanceData: i }) => {
|
|
3114
|
-
l.vnode.el && l.vnode.el.__VUE_I18N__ && i && (t.mode === "legacy" ? l.vnode.el.__VUE_I18N__ !== t.global.__composer && bn(i, l.vnode.el.__VUE_I18N__) : bn(i, l.vnode.el.__VUE_I18N__));
|
|
3115
|
-
}), s.addInspector({
|
|
3116
|
-
id: "vue-i18n-resource-inspector",
|
|
3117
|
-
label: pt[
|
|
3118
|
-
"vue-i18n-resource-inspector"
|
|
3119
|
-
/* VueDevToolsIDs.CUSTOM_INSPECTOR */
|
|
3120
|
-
],
|
|
3121
|
-
icon: "language",
|
|
3122
|
-
treeFilterPlaceholder: Ls[
|
|
3123
|
-
"vue-i18n-resource-inspector"
|
|
3124
|
-
/* VueDevToolsIDs.CUSTOM_INSPECTOR */
|
|
3125
|
-
]
|
|
3126
|
-
}), s.on.getInspectorTree((l) => {
|
|
3127
|
-
l.app === e && l.inspectorId === "vue-i18n-resource-inspector" && Ss(l, t);
|
|
3128
|
-
});
|
|
3129
|
-
const r = /* @__PURE__ */ new Map();
|
|
3130
|
-
s.on.getInspectorState(async (l) => {
|
|
3131
|
-
if (l.app === e && l.inspectorId === "vue-i18n-resource-inspector")
|
|
3132
|
-
if (s.unhighlightElement(), Rs(l, t), l.nodeId === "global") {
|
|
3133
|
-
if (!r.has(l.app)) {
|
|
3134
|
-
const [i] = await s.getComponentInstances(l.app);
|
|
3135
|
-
r.set(l.app, i);
|
|
3136
|
-
}
|
|
3137
|
-
s.highlightElement(r.get(l.app));
|
|
3138
|
-
} else {
|
|
3139
|
-
const i = Ds(l.nodeId, t);
|
|
3140
|
-
i && s.highlightElement(i);
|
|
3141
|
-
}
|
|
3142
|
-
}), s.on.editInspectorState((l) => {
|
|
3143
|
-
l.app === e && l.inspectorId === "vue-i18n-resource-inspector" && ys(l, t);
|
|
3144
|
-
}), s.addTimelineLayer({
|
|
3145
|
-
id: "vue-i18n-timeline",
|
|
3146
|
-
label: pt[
|
|
3147
|
-
"vue-i18n-timeline"
|
|
3148
|
-
/* VueDevToolsIDs.TIMELINE */
|
|
3149
|
-
],
|
|
3150
|
-
color: Is[
|
|
3151
|
-
"vue-i18n-timeline"
|
|
3152
|
-
/* VueDevToolsIDs.TIMELINE */
|
|
3153
|
-
]
|
|
3154
|
-
}), n(!0);
|
|
3155
|
-
});
|
|
3156
|
-
} catch (s) {
|
|
3157
|
-
console.error(s), a(!1);
|
|
3158
|
-
}
|
|
3159
|
-
});
|
|
3160
|
-
}
|
|
3161
|
-
function or(e) {
|
|
3162
|
-
return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
|
|
3163
|
-
}
|
|
3164
|
-
function bs(e, t, n) {
|
|
3165
|
-
const a = n.mode === "composition" ? n.global : n.global.__composer;
|
|
3166
|
-
if (e && e.vnode.el && e.vnode.el.__VUE_I18N__ && e.vnode.el.__VUE_I18N__ !== a) {
|
|
3167
|
-
const s = {
|
|
3168
|
-
label: `i18n (${or(e)} Scope)`,
|
|
3169
|
-
textColor: 0,
|
|
3170
|
-
backgroundColor: 16764185
|
|
3171
|
-
};
|
|
3172
|
-
t.tags.push(s);
|
|
3173
|
-
}
|
|
3174
|
-
}
|
|
3175
|
-
function bn(e, t) {
|
|
3176
|
-
const n = lr;
|
|
3177
|
-
e.state.push({
|
|
3178
|
-
type: n,
|
|
3179
|
-
key: "locale",
|
|
3180
|
-
editable: !0,
|
|
3181
|
-
value: t.locale.value
|
|
3182
|
-
}), e.state.push({
|
|
3183
|
-
type: n,
|
|
3184
|
-
key: "availableLocales",
|
|
3185
|
-
editable: !1,
|
|
3186
|
-
value: t.availableLocales
|
|
3187
|
-
}), e.state.push({
|
|
3188
|
-
type: n,
|
|
3189
|
-
key: "fallbackLocale",
|
|
3190
|
-
editable: !0,
|
|
3191
|
-
value: t.fallbackLocale.value
|
|
3192
|
-
}), e.state.push({
|
|
3193
|
-
type: n,
|
|
3194
|
-
key: "inheritLocale",
|
|
3195
|
-
editable: !0,
|
|
3196
|
-
value: t.inheritLocale
|
|
3197
|
-
}), e.state.push({
|
|
3198
|
-
type: n,
|
|
3199
|
-
key: "messages",
|
|
3200
|
-
editable: !1,
|
|
3201
|
-
value: Gt(t.messages.value)
|
|
3202
|
-
}), e.state.push({
|
|
3203
|
-
type: n,
|
|
3204
|
-
key: "datetimeFormats",
|
|
3205
|
-
editable: !1,
|
|
3206
|
-
value: t.datetimeFormats.value
|
|
3207
|
-
}), e.state.push({
|
|
3208
|
-
type: n,
|
|
3209
|
-
key: "numberFormats",
|
|
3210
|
-
editable: !1,
|
|
3211
|
-
value: t.numberFormats.value
|
|
3212
|
-
});
|
|
3213
|
-
}
|
|
3214
|
-
function Gt(e) {
|
|
3215
|
-
const t = {};
|
|
3216
|
-
return Object.keys(e).forEach((n) => {
|
|
3217
|
-
const a = e[n];
|
|
3218
|
-
G(a) && "source" in a ? t[n] = Ps(a) : ve(a) && a.loc && a.loc.source ? t[n] = a.loc.source : V(a) ? t[n] = Gt(a) : t[n] = a;
|
|
3219
|
-
}), t;
|
|
3220
|
-
}
|
|
3221
|
-
const hs = {
|
|
3222
|
-
"<": "<",
|
|
3223
|
-
">": ">",
|
|
3224
|
-
'"': """,
|
|
3225
|
-
"&": "&"
|
|
3226
|
-
};
|
|
3227
|
-
function As(e) {
|
|
3228
|
-
return e.replace(/[<>"&]/g, Cs);
|
|
3229
|
-
}
|
|
3230
|
-
function Cs(e) {
|
|
3231
|
-
return hs[e] || e;
|
|
3232
|
-
}
|
|
3233
|
-
function Ps(e) {
|
|
3234
|
-
return {
|
|
3235
|
-
_custom: {
|
|
3236
|
-
type: "function",
|
|
3237
|
-
display: `<span>ƒ</span> ${e.source ? `("${As(e.source)}")` : "(?)"}`
|
|
3238
|
-
}
|
|
3239
|
-
};
|
|
3240
|
-
}
|
|
3241
|
-
function Ss(e, t) {
|
|
3242
|
-
e.rootNodes.push({
|
|
3243
|
-
id: "global",
|
|
3244
|
-
label: "Global Scope"
|
|
3245
|
-
});
|
|
3246
|
-
const n = t.mode === "composition" ? t.global : t.global.__composer;
|
|
3247
|
-
for (const [a, s] of t.__instances) {
|
|
3248
|
-
const r = t.mode === "composition" ? s : s.__composer;
|
|
3249
|
-
n !== r && e.rootNodes.push({
|
|
3250
|
-
id: r.id.toString(),
|
|
3251
|
-
label: `${or(a)} Scope`
|
|
3252
|
-
});
|
|
3253
|
-
}
|
|
3254
|
-
}
|
|
3255
|
-
function Ds(e, t) {
|
|
3256
|
-
let n = null;
|
|
3257
|
-
if (e !== "global") {
|
|
3258
|
-
for (const [a, s] of t.__instances.entries())
|
|
3259
|
-
if (s.id.toString() === e) {
|
|
3260
|
-
n = a;
|
|
3261
|
-
break;
|
|
3262
|
-
}
|
|
3263
|
-
}
|
|
3264
|
-
return n;
|
|
3265
|
-
}
|
|
3266
|
-
function ir(e, t) {
|
|
3267
|
-
if (e === "global")
|
|
3268
|
-
return t.mode === "composition" ? t.global : t.global.__composer;
|
|
3269
|
-
{
|
|
3270
|
-
const n = Array.from(t.__instances.values()).find((a) => a.id.toString() === e);
|
|
3271
|
-
return n ? t.mode === "composition" ? n : n.__composer : null;
|
|
3272
|
-
}
|
|
3273
|
-
}
|
|
3274
|
-
function Rs(e, t) {
|
|
3275
|
-
const n = ir(e.nodeId, t);
|
|
3276
|
-
return n && (e.state = ks(n)), null;
|
|
3277
|
-
}
|
|
3278
|
-
function ks(e) {
|
|
3279
|
-
const t = {}, n = "Locale related info", a = [
|
|
3280
|
-
{
|
|
3281
|
-
type: n,
|
|
3282
|
-
key: "locale",
|
|
3283
|
-
editable: !0,
|
|
3284
|
-
value: e.locale.value
|
|
3285
|
-
},
|
|
3286
|
-
{
|
|
3287
|
-
type: n,
|
|
3288
|
-
key: "fallbackLocale",
|
|
3289
|
-
editable: !0,
|
|
3290
|
-
value: e.fallbackLocale.value
|
|
3291
|
-
},
|
|
3292
|
-
{
|
|
3293
|
-
type: n,
|
|
3294
|
-
key: "availableLocales",
|
|
3295
|
-
editable: !1,
|
|
3296
|
-
value: e.availableLocales
|
|
3297
|
-
},
|
|
3298
|
-
{
|
|
3299
|
-
type: n,
|
|
3300
|
-
key: "inheritLocale",
|
|
3301
|
-
editable: !0,
|
|
3302
|
-
value: e.inheritLocale
|
|
3303
|
-
}
|
|
3304
|
-
];
|
|
3305
|
-
t[n] = a;
|
|
3306
|
-
const s = "Locale messages info", r = [
|
|
3307
|
-
{
|
|
3308
|
-
type: s,
|
|
3309
|
-
key: "messages",
|
|
3310
|
-
editable: !1,
|
|
3311
|
-
value: Gt(e.messages.value)
|
|
3312
|
-
}
|
|
3313
|
-
];
|
|
3314
|
-
t[s] = r;
|
|
3315
|
-
{
|
|
3316
|
-
const l = "Datetime formats info", i = [
|
|
3317
|
-
{
|
|
3318
|
-
type: l,
|
|
3319
|
-
key: "datetimeFormats",
|
|
3320
|
-
editable: !1,
|
|
3321
|
-
value: e.datetimeFormats.value
|
|
3322
|
-
}
|
|
3323
|
-
];
|
|
3324
|
-
t[l] = i;
|
|
3325
|
-
const u = "Datetime formats info", _ = [
|
|
3326
|
-
{
|
|
3327
|
-
type: u,
|
|
3328
|
-
key: "numberFormats",
|
|
3329
|
-
editable: !1,
|
|
3330
|
-
value: e.numberFormats.value
|
|
3331
|
-
}
|
|
3332
|
-
];
|
|
3333
|
-
t[u] = _;
|
|
3334
|
-
}
|
|
3335
|
-
return t;
|
|
3336
|
-
}
|
|
3337
|
-
function st(e, t) {
|
|
3338
|
-
if (Rt) {
|
|
3339
|
-
let n;
|
|
3340
|
-
t && "groupId" in t && (n = t.groupId, delete t.groupId), Rt.addTimelineEvent({
|
|
3341
|
-
layerId: "vue-i18n-timeline",
|
|
3342
|
-
event: {
|
|
3343
|
-
title: e,
|
|
3344
|
-
groupId: n,
|
|
3345
|
-
time: Date.now(),
|
|
3346
|
-
meta: {},
|
|
3347
|
-
data: t || {},
|
|
3348
|
-
logType: e === "compile-error" ? "error" : e === "fallback" || e === "missing" ? "warning" : "default"
|
|
3349
|
-
}
|
|
3350
|
-
});
|
|
3351
|
-
}
|
|
3352
|
-
}
|
|
3353
|
-
function ys(e, t) {
|
|
3354
|
-
const n = ir(e.nodeId, t);
|
|
3355
|
-
if (n) {
|
|
3356
|
-
const [a] = e.path;
|
|
3357
|
-
a === "locale" && v(e.state.value) ? n.locale.value = e.state.value : a === "fallbackLocale" && (v(e.state.value) || H(e.state.value) || V(e.state.value)) ? n.fallbackLocale.value = e.state.value : a === "inheritLocale" && U(e.state.value) && (n.inheritLocale = e.state.value);
|
|
3358
|
-
}
|
|
3359
|
-
}
|
|
3360
|
-
function Ms(e, t, n) {
|
|
3361
|
-
return {
|
|
3362
|
-
beforeCreate() {
|
|
3363
|
-
const a = tt();
|
|
3364
|
-
if (!a)
|
|
3365
|
-
throw X(w.UNEXPECTED_ERROR);
|
|
3366
|
-
const s = this.$options;
|
|
3367
|
-
if (s.i18n) {
|
|
3368
|
-
const r = s.i18n;
|
|
3369
|
-
if (s.__i18n && (r.__i18n = s.__i18n), r.__root = t, this === this.$root)
|
|
3370
|
-
this.$i18n = hn(e, r);
|
|
3371
|
-
else {
|
|
3372
|
-
r.__injectWithOption = !0, r.__extender = n.__vueI18nExtend, this.$i18n = Dt(r);
|
|
3373
|
-
const l = this.$i18n;
|
|
3374
|
-
l.__extender && (l.__disposer = l.__extender(this.$i18n));
|
|
3375
|
-
}
|
|
3376
|
-
} else if (s.__i18n)
|
|
3377
|
-
if (this === this.$root)
|
|
3378
|
-
this.$i18n = hn(e, s);
|
|
3379
|
-
else {
|
|
3380
|
-
this.$i18n = Dt({
|
|
3381
|
-
__i18n: s.__i18n,
|
|
3382
|
-
__injectWithOption: !0,
|
|
3383
|
-
__extender: n.__vueI18nExtend,
|
|
3384
|
-
__root: t
|
|
3385
|
-
});
|
|
3386
|
-
const r = this.$i18n;
|
|
3387
|
-
r.__extender && (r.__disposer = r.__extender(this.$i18n));
|
|
3388
|
-
}
|
|
3389
|
-
else
|
|
3390
|
-
this.$i18n = e;
|
|
3391
|
-
s.__i18nGlobal && rr(t, s, s), this.$t = (...r) => this.$i18n.t(...r), this.$rt = (...r) => this.$i18n.rt(...r), this.$tc = (...r) => this.$i18n.tc(...r), this.$te = (r, l) => this.$i18n.te(r, l), this.$d = (...r) => this.$i18n.d(...r), this.$n = (...r) => this.$i18n.n(...r), this.$tm = (r) => this.$i18n.tm(r), n.__setInstance(a, this.$i18n);
|
|
3392
|
-
},
|
|
3393
|
-
mounted() {
|
|
3394
|
-
if (process.env.NODE_ENV !== "production" && this.$el && this.$i18n) {
|
|
3395
|
-
const a = this.$i18n;
|
|
3396
|
-
this.$el.__VUE_I18N__ = a.__composer;
|
|
3397
|
-
const s = this.__v_emitter = Ft();
|
|
3398
|
-
a.__enableEmitter && a.__enableEmitter(s), s.on("*", st);
|
|
3399
|
-
}
|
|
3400
|
-
},
|
|
3401
|
-
unmounted() {
|
|
3402
|
-
const a = tt();
|
|
3403
|
-
if (!a)
|
|
3404
|
-
throw X(w.UNEXPECTED_ERROR);
|
|
3405
|
-
const s = this.$i18n;
|
|
3406
|
-
process.env.NODE_ENV !== "production" && this.$el && this.$el.__VUE_I18N__ && (this.__v_emitter && (this.__v_emitter.off("*", st), delete this.__v_emitter), this.$i18n && (s.__disableEmitter && s.__disableEmitter(), delete this.$el.__VUE_I18N__)), delete this.$t, delete this.$rt, delete this.$tc, delete this.$te, delete this.$d, delete this.$n, delete this.$tm, s.__disposer && (s.__disposer(), delete s.__disposer, delete s.__extender), n.__deleteInstance(a), delete this.$i18n;
|
|
3407
|
-
}
|
|
3408
|
-
};
|
|
3409
|
-
}
|
|
3410
|
-
function hn(e, t) {
|
|
3411
|
-
e.locale = t.locale || e.locale, e.fallbackLocale = t.fallbackLocale || e.fallbackLocale, e.missing = t.missing || e.missing, e.silentTranslationWarn = t.silentTranslationWarn || e.silentFallbackWarn, e.silentFallbackWarn = t.silentFallbackWarn || e.silentFallbackWarn, e.formatFallbackMessages = t.formatFallbackMessages || e.formatFallbackMessages, e.postTranslation = t.postTranslation || e.postTranslation, e.warnHtmlInMessage = t.warnHtmlInMessage || e.warnHtmlInMessage, e.escapeParameterHtml = t.escapeParameterHtml || e.escapeParameterHtml, e.sync = t.sync || e.sync, e.__composer[er](t.pluralizationRules || e.pluralizationRules);
|
|
3412
|
-
const n = Et(e.locale, {
|
|
3413
|
-
messages: t.messages,
|
|
3414
|
-
__i18n: t.__i18n
|
|
3415
|
-
});
|
|
3416
|
-
return Object.keys(n).forEach((a) => e.mergeLocaleMessage(a, n[a])), t.datetimeFormats && Object.keys(t.datetimeFormats).forEach((a) => e.mergeDateTimeFormat(a, t.datetimeFormats[a])), t.numberFormats && Object.keys(t.numberFormats).forEach((a) => e.mergeNumberFormat(a, t.numberFormats[a])), e;
|
|
3417
|
-
}
|
|
3418
|
-
const Fs = /* @__PURE__ */ Ee("global-vue-i18n");
|
|
3419
|
-
function Bs(e = {}, t) {
|
|
3420
|
-
const n = __VUE_I18N_LEGACY_API__ && U(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__, a = U(e.globalInjection) ? e.globalInjection : !0, s = __VUE_I18N_LEGACY_API__ && n ? !!e.allowComposition : !0, r = /* @__PURE__ */ new Map(), [l, i] = Us(e, n), u = /* @__PURE__ */ Ee(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
|
|
3421
|
-
process.env.NODE_ENV !== "production" && n && s && q(ne(x.NOTICE_DROP_ALLOW_COMPOSITION));
|
|
3422
|
-
function _(d) {
|
|
3423
|
-
return r.get(d) || null;
|
|
3424
|
-
}
|
|
3425
|
-
function p(d, I) {
|
|
3426
|
-
r.set(d, I);
|
|
3427
|
-
}
|
|
3428
|
-
function T(d) {
|
|
3429
|
-
r.delete(d);
|
|
3430
|
-
}
|
|
3431
|
-
{
|
|
3432
|
-
const d = {
|
|
3433
|
-
// mode
|
|
3434
|
-
get mode() {
|
|
3435
|
-
return __VUE_I18N_LEGACY_API__ && n ? "legacy" : "composition";
|
|
3436
|
-
},
|
|
3437
|
-
// allowComposition
|
|
3438
|
-
get allowComposition() {
|
|
3439
|
-
return s;
|
|
3440
|
-
},
|
|
3441
|
-
// install plugin
|
|
3442
|
-
async install(I, ...R) {
|
|
3443
|
-
if (process.env.NODE_ENV !== "production" && (I.__VUE_I18N__ = d), I.__VUE_I18N_SYMBOL__ = u, I.provide(I.__VUE_I18N_SYMBOL__, d), M(R[0])) {
|
|
3444
|
-
const f = R[0];
|
|
3445
|
-
d.__composerExtend = f.__composerExtend, d.__vueI18nExtend = f.__vueI18nExtend;
|
|
3446
|
-
}
|
|
3447
|
-
let S = null;
|
|
3448
|
-
!n && a && (S = Ks(I, d.global)), __VUE_I18N_FULL_INSTALL__ && Os(I, d, ...R), __VUE_I18N_LEGACY_API__ && n && I.mixin(Ms(i, i.__composer, d));
|
|
3449
|
-
const P = I.unmount;
|
|
3450
|
-
if (I.unmount = () => {
|
|
3451
|
-
S && S(), d.dispose(), P();
|
|
3452
|
-
}, process.env.NODE_ENV !== "production") {
|
|
3453
|
-
if (!await vs(I, d))
|
|
3454
|
-
throw X(w.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
3455
|
-
const g = Ft();
|
|
3456
|
-
if (n) {
|
|
3457
|
-
const O = i;
|
|
3458
|
-
O.__enableEmitter && O.__enableEmitter(g);
|
|
3459
|
-
} else {
|
|
3460
|
-
const O = i;
|
|
3461
|
-
O[Re] && O[Re](g);
|
|
3462
|
-
}
|
|
3463
|
-
g.on("*", st);
|
|
3464
|
-
}
|
|
3465
|
-
},
|
|
3466
|
-
// global accessor
|
|
3467
|
-
get global() {
|
|
3468
|
-
return i;
|
|
3469
|
-
},
|
|
3470
|
-
dispose() {
|
|
3471
|
-
l.stop();
|
|
3472
|
-
},
|
|
3473
|
-
// @internal
|
|
3474
|
-
__instances: r,
|
|
3475
|
-
// @internal
|
|
3476
|
-
__getInstance: _,
|
|
3477
|
-
// @internal
|
|
3478
|
-
__setInstance: p,
|
|
3479
|
-
// @internal
|
|
3480
|
-
__deleteInstance: T
|
|
3481
|
-
};
|
|
3482
|
-
return d;
|
|
3483
|
-
}
|
|
3484
|
-
}
|
|
3485
|
-
function Ht(e = {}) {
|
|
3486
|
-
const t = tt();
|
|
3487
|
-
if (t == null)
|
|
3488
|
-
throw X(w.MUST_BE_CALL_SETUP_TOP);
|
|
3489
|
-
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
3490
|
-
throw X(w.NOT_INSTALLED);
|
|
3491
|
-
const n = ws(t), a = $s(n), s = nr(t), r = Vs(e, s);
|
|
3492
|
-
if (__VUE_I18N_LEGACY_API__ && n.mode === "legacy" && !e.__useComponent) {
|
|
3493
|
-
if (!n.allowComposition)
|
|
3494
|
-
throw X(w.NOT_AVAILABLE_IN_LEGACY_MODE);
|
|
3495
|
-
return xs(t, r, a, e);
|
|
3496
|
-
}
|
|
3497
|
-
if (r === "global")
|
|
3498
|
-
return rr(a, e, s), a;
|
|
3499
|
-
if (r === "parent") {
|
|
3500
|
-
let u = Ws(n, t, e.__useComponent);
|
|
3501
|
-
return u == null && (process.env.NODE_ENV !== "production" && q(ne(x.NOT_FOUND_PARENT_SCOPE)), u = a), u;
|
|
3502
|
-
}
|
|
3503
|
-
const l = n;
|
|
3504
|
-
let i = l.__getInstance(t);
|
|
3505
|
-
if (i == null) {
|
|
3506
|
-
const u = Z({}, e);
|
|
3507
|
-
"__i18n" in s && (u.__i18n = s.__i18n), a && (u.__root = a), i = $t(u), l.__composerExtend && (i[St] = l.__composerExtend(i)), Hs(l, t, i), l.__setInstance(t, i);
|
|
3508
|
-
}
|
|
3509
|
-
return i;
|
|
3510
|
-
}
|
|
3511
|
-
function Us(e, t, n) {
|
|
3512
|
-
const a = Tr();
|
|
3513
|
-
{
|
|
3514
|
-
const s = __VUE_I18N_LEGACY_API__ && t ? a.run(() => Dt(e)) : a.run(() => $t(e));
|
|
3515
|
-
if (s == null)
|
|
3516
|
-
throw X(w.UNEXPECTED_ERROR);
|
|
3517
|
-
return [a, s];
|
|
3518
|
-
}
|
|
3519
|
-
}
|
|
3520
|
-
function ws(e) {
|
|
3521
|
-
{
|
|
3522
|
-
const t = dr(e.isCE ? Fs : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
3523
|
-
if (!t)
|
|
3524
|
-
throw X(e.isCE ? w.NOT_INSTALLED_WITH_PROVIDE : w.UNEXPECTED_ERROR);
|
|
3525
|
-
return t;
|
|
3526
|
-
}
|
|
3527
|
-
}
|
|
3528
|
-
function Vs(e, t) {
|
|
3529
|
-
return ft(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
3530
|
-
}
|
|
3531
|
-
function $s(e) {
|
|
3532
|
-
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
3533
|
-
}
|
|
3534
|
-
function Ws(e, t, n = !1) {
|
|
3535
|
-
let a = null;
|
|
3536
|
-
const s = t.root;
|
|
3537
|
-
let r = Gs(t, n);
|
|
3538
|
-
for (; r != null; ) {
|
|
3539
|
-
const l = e;
|
|
3540
|
-
if (e.mode === "composition")
|
|
3541
|
-
a = l.__getInstance(r);
|
|
3542
|
-
else if (__VUE_I18N_LEGACY_API__) {
|
|
3543
|
-
const i = l.__getInstance(r);
|
|
3544
|
-
i != null && (a = i.__composer, n && a && !a[tr] && (a = null));
|
|
3545
|
-
}
|
|
3546
|
-
if (a != null || s === r)
|
|
3547
|
-
break;
|
|
3548
|
-
r = r.parent;
|
|
3549
|
-
}
|
|
3550
|
-
return a;
|
|
3551
|
-
}
|
|
3552
|
-
function Gs(e, t = !1) {
|
|
3553
|
-
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
3554
|
-
}
|
|
3555
|
-
function Hs(e, t, n) {
|
|
3556
|
-
let a = null;
|
|
3557
|
-
gr(() => {
|
|
3558
|
-
if (process.env.NODE_ENV !== "production" && t.vnode.el) {
|
|
3559
|
-
t.vnode.el.__VUE_I18N__ = n, a = Ft();
|
|
3560
|
-
const s = n;
|
|
3561
|
-
s[Re] && s[Re](a), a.on("*", st);
|
|
3562
|
-
}
|
|
3563
|
-
}, t), Nr(() => {
|
|
3564
|
-
const s = n;
|
|
3565
|
-
process.env.NODE_ENV !== "production" && t.vnode.el && t.vnode.el.__VUE_I18N__ && (a && a.off("*", st), s[rt] && s[rt](), delete t.vnode.el.__VUE_I18N__), e.__deleteInstance(t);
|
|
3566
|
-
const r = s[St];
|
|
3567
|
-
r && (r(), delete s[St]);
|
|
3568
|
-
}, t);
|
|
3569
|
-
}
|
|
3570
|
-
function xs(e, t, n, a = {}) {
|
|
3571
|
-
const s = t === "local", r = Pn(null);
|
|
3572
|
-
if (s && e.proxy && !(e.proxy.$options.i18n || e.proxy.$options.__i18n))
|
|
3573
|
-
throw X(w.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);
|
|
3574
|
-
const l = U(a.inheritLocale) ? a.inheritLocale : !v(a.locale), i = We(
|
|
3575
|
-
// prettier-ignore
|
|
3576
|
-
!s || l ? n.locale.value : v(a.locale) ? a.locale : Ye
|
|
3577
|
-
), u = We(
|
|
3578
|
-
// prettier-ignore
|
|
3579
|
-
!s || l ? n.fallbackLocale.value : v(a.fallbackLocale) || H(a.fallbackLocale) || M(a.fallbackLocale) || a.fallbackLocale === !1 ? a.fallbackLocale : i.value
|
|
3580
|
-
), _ = We(Et(i.value, a)), p = We(M(a.datetimeFormats) ? a.datetimeFormats : { [i.value]: {} }), T = We(M(a.numberFormats) ? a.numberFormats : { [i.value]: {} }), d = s ? n.missingWarn : U(a.missingWarn) || Ie(a.missingWarn) ? a.missingWarn : !0, I = s ? n.fallbackWarn : U(a.fallbackWarn) || Ie(a.fallbackWarn) ? a.fallbackWarn : !0, R = s ? n.fallbackRoot : U(a.fallbackRoot) ? a.fallbackRoot : !0, S = !!a.fallbackFormat, P = G(a.missing) ? a.missing : null, f = G(a.postTranslation) ? a.postTranslation : null, g = s ? n.warnHtmlMessage : U(a.warnHtmlMessage) ? a.warnHtmlMessage : !0, O = !!a.escapeParameter, N = s ? n.modifiers : M(a.modifiers) ? a.modifiers : {}, A = a.pluralRules || s && n.pluralRules;
|
|
3581
|
-
function h() {
|
|
3582
|
-
return [
|
|
3583
|
-
i.value,
|
|
3584
|
-
u.value,
|
|
3585
|
-
_.value,
|
|
3586
|
-
p.value,
|
|
3587
|
-
T.value
|
|
3588
|
-
];
|
|
3589
|
-
}
|
|
3590
|
-
const D = _e({
|
|
3591
|
-
get: () => r.value ? r.value.locale.value : i.value,
|
|
3592
|
-
set: (o) => {
|
|
3593
|
-
r.value && (r.value.locale.value = o), i.value = o;
|
|
3594
|
-
}
|
|
3595
|
-
}), F = _e({
|
|
3596
|
-
get: () => r.value ? r.value.fallbackLocale.value : u.value,
|
|
3597
|
-
set: (o) => {
|
|
3598
|
-
r.value && (r.value.fallbackLocale.value = o), u.value = o;
|
|
3599
|
-
}
|
|
3600
|
-
}), b = _e(() => r.value ? r.value.messages.value : _.value), Y = _e(() => p.value), le = _e(() => T.value);
|
|
3601
|
-
function J() {
|
|
3602
|
-
return r.value ? r.value.getPostTranslationHandler() : f;
|
|
3603
|
-
}
|
|
3604
|
-
function ae(o) {
|
|
3605
|
-
r.value && r.value.setPostTranslationHandler(o);
|
|
3606
|
-
}
|
|
3607
|
-
function ke() {
|
|
3608
|
-
return r.value ? r.value.getMissingHandler() : P;
|
|
3609
|
-
}
|
|
3610
|
-
function je(o) {
|
|
3611
|
-
r.value && r.value.setMissingHandler(o);
|
|
3612
|
-
}
|
|
3613
|
-
function ce(o) {
|
|
3614
|
-
return h(), o();
|
|
3615
|
-
}
|
|
3616
|
-
function ye(...o) {
|
|
3617
|
-
return r.value ? ce(() => Reflect.apply(r.value.t, null, [...o])) : ce(() => "");
|
|
3618
|
-
}
|
|
3619
|
-
function Be(...o) {
|
|
3620
|
-
return r.value ? Reflect.apply(r.value.rt, null, [...o]) : "";
|
|
3621
|
-
}
|
|
3622
|
-
function Me(...o) {
|
|
3623
|
-
return r.value ? ce(() => Reflect.apply(r.value.d, null, [...o])) : ce(() => "");
|
|
3624
|
-
}
|
|
3625
|
-
function Xe(...o) {
|
|
3626
|
-
return r.value ? ce(() => Reflect.apply(r.value.n, null, [...o])) : ce(() => "");
|
|
3627
|
-
}
|
|
3628
|
-
function Je(o) {
|
|
3629
|
-
return r.value ? r.value.tm(o) : {};
|
|
3630
|
-
}
|
|
3631
|
-
function oe(o, m) {
|
|
3632
|
-
return r.value ? r.value.te(o, m) : !1;
|
|
3633
|
-
}
|
|
3634
|
-
function Fe(o) {
|
|
3635
|
-
return r.value ? r.value.getLocaleMessage(o) : {};
|
|
3636
|
-
}
|
|
3637
|
-
function Ue(o, m) {
|
|
3638
|
-
r.value && (r.value.setLocaleMessage(o, m), _.value[o] = m);
|
|
3639
|
-
}
|
|
3640
|
-
function Qe(o, m) {
|
|
3641
|
-
r.value && r.value.mergeLocaleMessage(o, m);
|
|
3642
|
-
}
|
|
3643
|
-
function qe(o) {
|
|
3644
|
-
return r.value ? r.value.getDateTimeFormat(o) : {};
|
|
3645
|
-
}
|
|
3646
|
-
function Ze(o, m) {
|
|
3647
|
-
r.value && (r.value.setDateTimeFormat(o, m), p.value[o] = m);
|
|
3648
|
-
}
|
|
3649
|
-
function we(o, m) {
|
|
3650
|
-
r.value && r.value.mergeDateTimeFormat(o, m);
|
|
3651
|
-
}
|
|
3652
|
-
function he(o) {
|
|
3653
|
-
return r.value ? r.value.getNumberFormat(o) : {};
|
|
3654
|
-
}
|
|
3655
|
-
function Te(o, m) {
|
|
3656
|
-
r.value && (r.value.setNumberFormat(o, m), T.value[o] = m);
|
|
3657
|
-
}
|
|
3658
|
-
function Ae(o, m) {
|
|
3659
|
-
r.value && r.value.mergeNumberFormat(o, m);
|
|
3660
|
-
}
|
|
3661
|
-
const ze = {
|
|
3662
|
-
get id() {
|
|
3663
|
-
return r.value ? r.value.id : -1;
|
|
3664
|
-
},
|
|
3665
|
-
locale: D,
|
|
3666
|
-
fallbackLocale: F,
|
|
3667
|
-
messages: b,
|
|
3668
|
-
datetimeFormats: Y,
|
|
3669
|
-
numberFormats: le,
|
|
3670
|
-
get inheritLocale() {
|
|
3671
|
-
return r.value ? r.value.inheritLocale : l;
|
|
3672
|
-
},
|
|
3673
|
-
set inheritLocale(o) {
|
|
3674
|
-
r.value && (r.value.inheritLocale = o);
|
|
3675
|
-
},
|
|
3676
|
-
get availableLocales() {
|
|
3677
|
-
return r.value ? r.value.availableLocales : Object.keys(_.value);
|
|
3678
|
-
},
|
|
3679
|
-
get modifiers() {
|
|
3680
|
-
return r.value ? r.value.modifiers : N;
|
|
3681
|
-
},
|
|
3682
|
-
get pluralRules() {
|
|
3683
|
-
return r.value ? r.value.pluralRules : A;
|
|
3684
|
-
},
|
|
3685
|
-
get isGlobal() {
|
|
3686
|
-
return r.value ? r.value.isGlobal : !1;
|
|
3687
|
-
},
|
|
3688
|
-
get missingWarn() {
|
|
3689
|
-
return r.value ? r.value.missingWarn : d;
|
|
3690
|
-
},
|
|
3691
|
-
set missingWarn(o) {
|
|
3692
|
-
r.value && (r.value.missingWarn = o);
|
|
3693
|
-
},
|
|
3694
|
-
get fallbackWarn() {
|
|
3695
|
-
return r.value ? r.value.fallbackWarn : I;
|
|
3696
|
-
},
|
|
3697
|
-
set fallbackWarn(o) {
|
|
3698
|
-
r.value && (r.value.missingWarn = o);
|
|
3699
|
-
},
|
|
3700
|
-
get fallbackRoot() {
|
|
3701
|
-
return r.value ? r.value.fallbackRoot : R;
|
|
3702
|
-
},
|
|
3703
|
-
set fallbackRoot(o) {
|
|
3704
|
-
r.value && (r.value.fallbackRoot = o);
|
|
3705
|
-
},
|
|
3706
|
-
get fallbackFormat() {
|
|
3707
|
-
return r.value ? r.value.fallbackFormat : S;
|
|
3708
|
-
},
|
|
3709
|
-
set fallbackFormat(o) {
|
|
3710
|
-
r.value && (r.value.fallbackFormat = o);
|
|
3711
|
-
},
|
|
3712
|
-
get warnHtmlMessage() {
|
|
3713
|
-
return r.value ? r.value.warnHtmlMessage : g;
|
|
3714
|
-
},
|
|
3715
|
-
set warnHtmlMessage(o) {
|
|
3716
|
-
r.value && (r.value.warnHtmlMessage = o);
|
|
3717
|
-
},
|
|
3718
|
-
get escapeParameter() {
|
|
3719
|
-
return r.value ? r.value.escapeParameter : O;
|
|
3720
|
-
},
|
|
3721
|
-
set escapeParameter(o) {
|
|
3722
|
-
r.value && (r.value.escapeParameter = o);
|
|
3723
|
-
},
|
|
3724
|
-
t: ye,
|
|
3725
|
-
getPostTranslationHandler: J,
|
|
3726
|
-
setPostTranslationHandler: ae,
|
|
3727
|
-
getMissingHandler: ke,
|
|
3728
|
-
setMissingHandler: je,
|
|
3729
|
-
rt: Be,
|
|
3730
|
-
d: Me,
|
|
3731
|
-
n: Xe,
|
|
3732
|
-
tm: Je,
|
|
3733
|
-
te: oe,
|
|
3734
|
-
getLocaleMessage: Fe,
|
|
3735
|
-
setLocaleMessage: Ue,
|
|
3736
|
-
mergeLocaleMessage: Qe,
|
|
3737
|
-
getDateTimeFormat: qe,
|
|
3738
|
-
setDateTimeFormat: Ze,
|
|
3739
|
-
mergeDateTimeFormat: we,
|
|
3740
|
-
getNumberFormat: he,
|
|
3741
|
-
setNumberFormat: Te,
|
|
3742
|
-
mergeNumberFormat: Ae
|
|
3743
|
-
};
|
|
3744
|
-
function c(o) {
|
|
3745
|
-
o.locale.value = i.value, o.fallbackLocale.value = u.value, Object.keys(_.value).forEach((m) => {
|
|
3746
|
-
o.mergeLocaleMessage(m, _.value[m]);
|
|
3747
|
-
}), Object.keys(p.value).forEach((m) => {
|
|
3748
|
-
o.mergeDateTimeFormat(m, p.value[m]);
|
|
3749
|
-
}), Object.keys(T.value).forEach((m) => {
|
|
3750
|
-
o.mergeNumberFormat(m, T.value[m]);
|
|
3751
|
-
}), o.escapeParameter = O, o.fallbackFormat = S, o.fallbackRoot = R, o.fallbackWarn = I, o.missingWarn = d, o.warnHtmlMessage = g;
|
|
3752
|
-
}
|
|
3753
|
-
return pr(() => {
|
|
3754
|
-
if (e.proxy == null || e.proxy.$i18n == null)
|
|
3755
|
-
throw X(w.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);
|
|
3756
|
-
const o = r.value = e.proxy.$i18n.__composer;
|
|
3757
|
-
t === "global" ? (i.value = o.locale.value, u.value = o.fallbackLocale.value, _.value = o.messages.value, p.value = o.datetimeFormats.value, T.value = o.numberFormats.value) : s && c(o);
|
|
3758
|
-
}), ze;
|
|
3759
|
-
}
|
|
3760
|
-
const Ys = [
|
|
3761
|
-
"locale",
|
|
3762
|
-
"fallbackLocale",
|
|
3763
|
-
"availableLocales"
|
|
3764
|
-
], An = ["t", "rt", "d", "n", "tm", "te"];
|
|
3765
|
-
function Ks(e, t) {
|
|
3766
|
-
const n = /* @__PURE__ */ Object.create(null);
|
|
3767
|
-
return Ys.forEach((s) => {
|
|
3768
|
-
const r = Object.getOwnPropertyDescriptor(t, s);
|
|
3769
|
-
if (!r)
|
|
3770
|
-
throw X(w.UNEXPECTED_ERROR);
|
|
3771
|
-
const l = Or(r.value) ? {
|
|
3772
|
-
get() {
|
|
3773
|
-
return r.value.value;
|
|
3774
|
-
},
|
|
3775
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3776
|
-
set(i) {
|
|
3777
|
-
r.value.value = i;
|
|
3778
|
-
}
|
|
3779
|
-
} : {
|
|
3780
|
-
get() {
|
|
3781
|
-
return r.get && r.get();
|
|
3782
|
-
}
|
|
3783
|
-
};
|
|
3784
|
-
Object.defineProperty(n, s, l);
|
|
3785
|
-
}), e.config.globalProperties.$i18n = n, An.forEach((s) => {
|
|
3786
|
-
const r = Object.getOwnPropertyDescriptor(t, s);
|
|
3787
|
-
if (!r || !r.value)
|
|
3788
|
-
throw X(w.UNEXPECTED_ERROR);
|
|
3789
|
-
Object.defineProperty(e.config.globalProperties, `$${s}`, r);
|
|
3790
|
-
}), () => {
|
|
3791
|
-
delete e.config.globalProperties.$i18n, An.forEach((s) => {
|
|
3792
|
-
delete e.config.globalProperties[`$${s}`];
|
|
3793
|
-
});
|
|
3794
|
-
};
|
|
3795
|
-
}
|
|
3796
|
-
os();
|
|
3797
|
-
__INTLIFY_JIT_COMPILATION__ ? rn(ja) : rn(Ka);
|
|
3798
|
-
wa(Na);
|
|
3799
|
-
Va(Un);
|
|
3800
|
-
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
3801
|
-
const e = pe();
|
|
3802
|
-
e.__INTLIFY__ = !0, Aa(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
3803
|
-
}
|
|
3804
|
-
process.env.NODE_ENV;
|
|
3805
|
-
export {
|
|
3806
|
-
Bs as c,
|
|
3807
|
-
Ht as u
|
|
3808
|
-
};
|