lty-protocol 1.0.15 → 1.0.17
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/components/Input.vue.d.ts +8 -10
- package/dist/components/InputNumber.vue.d.ts +9 -0
- package/dist/components/IpInput.vue.d.ts +8 -20
- package/dist/index.d.ts +2 -1
- package/dist/lty-protocol.mjs +687 -678
- package/dist/lty-protocol.umd.js +6 -6
- package/dist/plugin.d.ts +1 -0
- package/package.json +1 -1
package/dist/lty-protocol.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as St from "vue";
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
const Yr = /* @__PURE__ */
|
|
2
|
+
import { defineComponent as _e, openBlock as ue, createElementBlock as Ce, renderSlot as Jn, inject as Bt, ref as at, watch as ge, createBlock as Kt, resolveDynamicComponent as Qn, unref as jt, Fragment as ot, renderList as qn, toDisplayString as Ur, createVNode as Zn, effectScope as wr, computed as He, isRef as Vr, shallowRef as $r, h as zn, onMounted as Wr, onUnmounted as Gr, Text as xr, createApp as Hr } from "vue";
|
|
3
|
+
const Yr = /* @__PURE__ */ _e({
|
|
4
4
|
name: "MyButton",
|
|
5
5
|
__name: "MyButton",
|
|
6
6
|
emits: ["click"],
|
|
@@ -8,19 +8,19 @@ const Yr = /* @__PURE__ */ ge({
|
|
|
8
8
|
const n = t, r = () => {
|
|
9
9
|
n("click");
|
|
10
10
|
};
|
|
11
|
-
return (s, a) => (
|
|
11
|
+
return (s, a) => (ue(), Ce("button", {
|
|
12
12
|
class: "my-btn",
|
|
13
13
|
onClick: r
|
|
14
14
|
}, [
|
|
15
|
-
|
|
15
|
+
Jn(s.$slots, "default", {}, void 0, !0)
|
|
16
16
|
]));
|
|
17
17
|
}
|
|
18
|
-
}),
|
|
18
|
+
}), er = (e, t) => {
|
|
19
19
|
const n = e.__vccOpts || e;
|
|
20
20
|
for (const [r, s] of t)
|
|
21
21
|
n[r] = s;
|
|
22
22
|
return n;
|
|
23
|
-
}, Br = /* @__PURE__ */
|
|
23
|
+
}, Br = /* @__PURE__ */ er(Yr, [["__scopeId", "data-v-c654f959"]]), Kr = /* @__PURE__ */ _e({
|
|
24
24
|
name: "MyButton",
|
|
25
25
|
__name: "button2",
|
|
26
26
|
emits: ["click"],
|
|
@@ -28,52 +28,57 @@ const Yr = /* @__PURE__ */ ge({
|
|
|
28
28
|
const n = t, r = () => {
|
|
29
29
|
n("click");
|
|
30
30
|
};
|
|
31
|
-
return (s, a) => (
|
|
31
|
+
return (s, a) => (ue(), Ce("button", {
|
|
32
32
|
class: "my-btn",
|
|
33
33
|
onClick: r
|
|
34
34
|
}, [
|
|
35
|
-
|
|
35
|
+
Jn(s.$slots, "default", {}, void 0, !0)
|
|
36
36
|
]));
|
|
37
37
|
}
|
|
38
|
-
}), jr = /* @__PURE__ */
|
|
39
|
-
|
|
38
|
+
}), jr = /* @__PURE__ */ er(Kr, [["__scopeId", "data-v-1477cfc3"]]), tr = /* @__PURE__ */ _e({
|
|
39
|
+
__name: "Input",
|
|
40
40
|
props: {
|
|
41
|
-
modelValue:
|
|
41
|
+
modelValue: {}
|
|
42
42
|
},
|
|
43
43
|
emits: ["update:modelValue"],
|
|
44
44
|
setup(e, { emit: t }) {
|
|
45
|
-
const n =
|
|
46
|
-
return
|
|
45
|
+
const n = e, r = t, s = Bt("UIComponents").Input, a = at(n.modelValue);
|
|
46
|
+
return ge(() => n.modelValue, (o) => a.value = o), ge(a, (o) => r("update:modelValue", o)), (o, i) => (ue(), Kt(Qn(jt(s)), {
|
|
47
|
+
modelValue: a.value,
|
|
48
|
+
"onUpdate:modelValue": i[0] || (i[0] = (u) => a.value = u)
|
|
49
|
+
}, null, 8, ["modelValue"]));
|
|
50
|
+
}
|
|
51
|
+
}), Xr = { style: { display: "flex", gap: "4px" } }, Jr = /* @__PURE__ */ _e({
|
|
52
|
+
__name: "IpInput",
|
|
53
|
+
props: {
|
|
54
|
+
modelValue: {}
|
|
55
|
+
},
|
|
56
|
+
emits: ["update:modelValue"],
|
|
57
|
+
setup(e, { emit: t }) {
|
|
58
|
+
const n = e, r = t, s = at((n.modelValue || "0.0.0.0").split("."));
|
|
59
|
+
return ge(s, () => r("update:modelValue", s.value.join(".")), { deep: !0 }), ge(() => n.modelValue, (a) => s.value = (a || "0.0.0.0").split(".")), (a, o) => (ue(), Ce("div", Xr, [
|
|
60
|
+
(ue(!0), Ce(ot, null, qn(s.value, (i, u) => (ue(), Kt(tr, {
|
|
61
|
+
key: u,
|
|
62
|
+
modelValue: s.value[u],
|
|
63
|
+
"onUpdate:modelValue": (d) => s.value[u] = d
|
|
64
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"]))), 128))
|
|
65
|
+
]));
|
|
47
66
|
}
|
|
48
|
-
})
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
modelValue:
|
|
52
|
-
|
|
53
|
-
}, null, 8, ["modelValue"]);
|
|
54
|
-
}
|
|
55
|
-
const Qr = /* @__PURE__ */ ot(Xr, [["render", Jr]]), qr = ge({
|
|
56
|
-
name: "IpInput",
|
|
57
|
-
components: { Input: Qr },
|
|
58
|
-
props: { modelValue: String },
|
|
67
|
+
}), Qr = /* @__PURE__ */ _e({
|
|
68
|
+
__name: "InputNumber",
|
|
69
|
+
props: {
|
|
70
|
+
modelValue: {}
|
|
71
|
+
},
|
|
59
72
|
emits: ["update:modelValue"],
|
|
60
73
|
setup(e, { emit: t }) {
|
|
61
|
-
const n =
|
|
62
|
-
return
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
key: u,
|
|
70
|
-
modelValue: e.segments[u],
|
|
71
|
-
"onUpdate:modelValue": (d) => e.segments[u] = d
|
|
72
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"]))), 128))
|
|
73
|
-
]);
|
|
74
|
-
}
|
|
75
|
-
const Ni = /* @__PURE__ */ ot(qr, [["render", zr]]);
|
|
76
|
-
function Ti(e, t) {
|
|
74
|
+
const n = e, r = t, s = Bt("UIComponents").Input, a = at(n.modelValue);
|
|
75
|
+
return ge(() => n.modelValue, (o) => a.value = o), ge(a, (o) => r("update:modelValue", o)), (o, i) => (ue(), Kt(Qn(jt(s)), {
|
|
76
|
+
modelValue: a.value,
|
|
77
|
+
"onUpdate:modelValue": i[0] || (i[0] = (u) => a.value = u)
|
|
78
|
+
}, null, 8, ["modelValue"]));
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
function Ei(e, t) {
|
|
77
82
|
e.provide("UIComponents", t);
|
|
78
83
|
}
|
|
79
84
|
class re {
|
|
@@ -93,7 +98,7 @@ class re {
|
|
|
93
98
|
return n.fromPlain(t);
|
|
94
99
|
}
|
|
95
100
|
}
|
|
96
|
-
class
|
|
101
|
+
class qr {
|
|
97
102
|
static getDefaultConfig(t) {
|
|
98
103
|
console.log(1231231, t);
|
|
99
104
|
const n = t.baseInfo, r = t.configuration, s = t.tab;
|
|
@@ -104,58 +109,58 @@ class es {
|
|
|
104
109
|
};
|
|
105
110
|
}
|
|
106
111
|
}
|
|
107
|
-
const
|
|
108
|
-
type:
|
|
109
|
-
baseInfo:
|
|
110
|
-
tab:
|
|
111
|
-
configuration:
|
|
112
|
+
const Zr = "Ethernet", zr = [{ key: "name", name: { i18nKey: "name" }, defaultValue: "Ethernet" }, { key: "supplier", name: { i18nKey: "supplier" }, defaultValue: { i18nKey: "company" } }, { key: "version", name: { i18nKey: "verison" }, defaultValue: "1.0.0.0" }, { key: "description", name: { i18nKey: "description" }, defaultValue: { i18nKey: "descriptionMap.ethernet" } }, { key: "category", name: { i18nKey: "category" }, defaultValue: { i18nKey: "ethernet" } }], es = [{ name: { i18nKey: "general" }, key: "general" }, { name: { i18nKey: "ioMapping" }, key: "ioMapping" }], ts = { general: [{ key: "netInterface", name: { i18nKey: "netInterface" }, dataType: "string", componentType: "strInput", defaultValue: "" }, { key: "ipAddress", name: { i18nKey: "ipAddress" }, dataType: "string", componentType: "ipInput", defaultValue: "192.168.1.1" }, { key: "subnetMask", name: { i18nKey: "subnetMask" }, dataType: "string", componentType: "ipInput", defaultValue: "255.255.255.0" }, { key: "defaultGateway", name: { i18nKey: "defaultGateway" }, dataType: "string", componentType: "ipInput", defaultValue: "0.0.0.0" }, { key: "adaptedOSConfiguration", name: { i18nKey: "adaptedOSConfiguration" }, dataType: "boolean", componentType: "switch", defaultValue: !1 }], ioMapping: [{ key: "busCycleTask", name: { i18nKey: "busCycleTask" }, dataType: "string", componentType: "select", defaultValue: "-1" }] }, ns = {
|
|
113
|
+
type: Zr,
|
|
114
|
+
baseInfo: zr,
|
|
115
|
+
tab: es,
|
|
116
|
+
configuration: ts
|
|
112
117
|
};
|
|
113
118
|
class lt extends re {
|
|
114
|
-
type =
|
|
115
|
-
moduleType = it[
|
|
119
|
+
type = Ne.ETHERNET;
|
|
120
|
+
moduleType = it[Ne.ETHERNET];
|
|
116
121
|
baseInfo;
|
|
117
122
|
config;
|
|
118
123
|
tab;
|
|
119
124
|
constructor(t) {
|
|
120
125
|
super(t);
|
|
121
|
-
const { baseInfo: n, config: r, tab: s } =
|
|
126
|
+
const { baseInfo: n, config: r, tab: s } = qr.getDefaultConfig(ns);
|
|
122
127
|
this.baseInfo = n, this.config = r, this.tab = s;
|
|
123
128
|
}
|
|
124
129
|
static fromPlain(t) {
|
|
125
130
|
return new lt(t);
|
|
126
131
|
}
|
|
127
132
|
}
|
|
128
|
-
class
|
|
129
|
-
type =
|
|
130
|
-
moduleType = it[
|
|
133
|
+
class Xt extends re {
|
|
134
|
+
type = Ne.MODBUS_TCP_SERVER;
|
|
135
|
+
moduleType = it[Ne.MODBUS_TCP_SERVER];
|
|
131
136
|
constructor(t) {
|
|
132
137
|
super(t);
|
|
133
138
|
}
|
|
134
139
|
static fromPlain(t) {
|
|
135
|
-
return new
|
|
140
|
+
return new Xt(t);
|
|
136
141
|
}
|
|
137
142
|
}
|
|
138
|
-
class
|
|
139
|
-
type =
|
|
140
|
-
moduleType = it[
|
|
143
|
+
class Jt extends re {
|
|
144
|
+
type = Ne.MODBUS_TCP_CLIENT;
|
|
145
|
+
moduleType = it[Ne.MODBUS_TCP_CLIENT];
|
|
141
146
|
constructor(t) {
|
|
142
147
|
super(t);
|
|
143
148
|
}
|
|
144
149
|
static fromPlain(t) {
|
|
145
|
-
return new
|
|
150
|
+
return new Jt(t);
|
|
146
151
|
}
|
|
147
152
|
}
|
|
148
|
-
class
|
|
149
|
-
type =
|
|
150
|
-
moduleType = it[
|
|
153
|
+
class Qt extends re {
|
|
154
|
+
type = Ne.MODBUS_TCP_SLAVE_DEVICE;
|
|
155
|
+
moduleType = it[Ne.MODBUS_TCP_SLAVE_DEVICE];
|
|
151
156
|
constructor(t) {
|
|
152
157
|
super(t);
|
|
153
158
|
}
|
|
154
159
|
static fromPlain(t) {
|
|
155
|
-
return new
|
|
160
|
+
return new Qt(t);
|
|
156
161
|
}
|
|
157
162
|
}
|
|
158
|
-
var
|
|
163
|
+
var Ne = /* @__PURE__ */ ((e) => (e.ETHERNET = "Ethernet", e.MODBUS_TCP_SERVER = "ModbusTCPServer", e.MODBUS_TCP_CLIENT = "ModbusTCPClient", e.MODBUS_TCP_SLAVE_DEVICE = "ModbusTCPSlaveDevice", e.MODBUS_SERIAL_PORT = "ModbusSerialPort", e.MODBUS_MASTER = "ModbusMaster", e.MODBUS_SLAVE = "ModbusSlave", e.MODBUS_SERIAL = "ModbusSerial", e.OPCUA_SERVER = "OPCUAServer", e.ETHER_CAT_MASTER = "EtherCatMaster", e.ETHER_CAT_SLAVE = "EtherCatSlave", e.ETHER_CAT_MODULE = "EtherCatModule", e))(Ne || {});
|
|
159
164
|
const it = {
|
|
160
165
|
Pprogrammable: 4096,
|
|
161
166
|
// 根节点
|
|
@@ -210,10 +215,10 @@ const it = {
|
|
|
210
215
|
EtherCatModule: 16384
|
|
211
216
|
// Ethercat子模块
|
|
212
217
|
};
|
|
213
|
-
class
|
|
218
|
+
class rs {
|
|
214
219
|
map = /* @__PURE__ */ new Map();
|
|
215
220
|
constructor() {
|
|
216
|
-
re.register("Ethernet", lt), re.register("ModbusTCPServer",
|
|
221
|
+
re.register("Ethernet", lt), re.register("ModbusTCPServer", Xt), re.register("ModbusTCPClient", Jt), re.register("ModbusTCPSlaveDevice", Qt);
|
|
217
222
|
}
|
|
218
223
|
init(t) {
|
|
219
224
|
this.clear(), t.forEach((n) => {
|
|
@@ -240,36 +245,36 @@ class os {
|
|
|
240
245
|
this.map.clear();
|
|
241
246
|
}
|
|
242
247
|
}
|
|
243
|
-
const
|
|
248
|
+
const ss = /* @__PURE__ */ _e({
|
|
244
249
|
__name: "Ethernet",
|
|
245
250
|
props: {
|
|
246
251
|
config: {}
|
|
247
252
|
},
|
|
248
253
|
setup(e) {
|
|
249
|
-
return (t, n) => (
|
|
254
|
+
return (t, n) => (ue(!0), Ce(ot, null, qn(e.config.tab, (r) => (ue(), Ce("div", {
|
|
250
255
|
key: r.key
|
|
251
|
-
},
|
|
256
|
+
}, Ur(t.$t(r.name.i18nKey)), 1))), 128));
|
|
252
257
|
}
|
|
253
|
-
}),
|
|
258
|
+
}), as = /* @__PURE__ */ _e({
|
|
254
259
|
__name: "App",
|
|
255
260
|
setup(e) {
|
|
256
|
-
new
|
|
261
|
+
new rs();
|
|
257
262
|
const t = new lt({
|
|
258
263
|
id: 1,
|
|
259
264
|
deviceId: 1,
|
|
260
265
|
type: "Ethernet"
|
|
261
266
|
});
|
|
262
|
-
return (n, r) => (
|
|
263
|
-
|
|
267
|
+
return (n, r) => (ue(), Ce("div", null, [
|
|
268
|
+
Zn(ss, { config: jt(t) }, null, 8, ["config"])
|
|
264
269
|
]));
|
|
265
270
|
}
|
|
266
271
|
});
|
|
267
|
-
function
|
|
272
|
+
function fe(e, t) {
|
|
268
273
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
269
274
|
}
|
|
270
|
-
const
|
|
271
|
-
function
|
|
272
|
-
|
|
275
|
+
const mn = {};
|
|
276
|
+
function qt(e) {
|
|
277
|
+
mn[e] || (mn[e] = !0, fe(e));
|
|
273
278
|
}
|
|
274
279
|
const le = typeof window < "u";
|
|
275
280
|
let ee, Ae;
|
|
@@ -282,21 +287,21 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
282
287
|
e.measure(t, n, r), e.clearMarks(n), e.clearMarks(r);
|
|
283
288
|
});
|
|
284
289
|
}
|
|
285
|
-
const
|
|
290
|
+
const os = /\{([0-9a-zA-Z]+)\}/g;
|
|
286
291
|
function ct(e, ...t) {
|
|
287
|
-
return t.length === 1 && M(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(
|
|
292
|
+
return t.length === 1 && M(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(os, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
|
|
288
293
|
}
|
|
289
|
-
const
|
|
290
|
-
let
|
|
291
|
-
const
|
|
292
|
-
function
|
|
294
|
+
const me = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), ls = (e, t, n) => is({ l: e, k: t, s: n }), is = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), j = (e) => typeof e == "number" && isFinite(e), cs = (e) => Zt(e) === "[object Date]", Fe = (e) => Zt(e) === "[object RegExp]", ut = (e) => R(e) && Object.keys(e).length === 0, J = Object.assign, us = Object.create, $ = (e = null) => us(e);
|
|
295
|
+
let dn;
|
|
296
|
+
const ve = () => dn || (dn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : $());
|
|
297
|
+
function En(e) {
|
|
293
298
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/\//g, "/").replace(/=/g, "=");
|
|
294
299
|
}
|
|
295
|
-
function
|
|
300
|
+
function pn(e) {
|
|
296
301
|
return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
|
|
297
302
|
}
|
|
298
|
-
function
|
|
299
|
-
return e = e.replace(/(\w+)\s*=\s*"([^"]*)"/g, (r, s, a) => `${s}="${
|
|
303
|
+
function fs(e) {
|
|
304
|
+
return e = e.replace(/(\w+)\s*=\s*"([^"]*)"/g, (r, s, a) => `${s}="${pn(a)}"`), e = e.replace(/(\w+)\s*=\s*'([^']*)'/g, (r, s, a) => `${s}='${pn(a)}'`), /\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e) && (process.env.NODE_ENV !== "production" && fe("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."), e = e.replace(/(\s+)(on)(\w+\s*=)/gi, "$1on$3")), [
|
|
300
305
|
// In href, src, action, formaction attributes
|
|
301
306
|
/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,
|
|
302
307
|
// In style attributes within url()
|
|
@@ -305,22 +310,22 @@ function ds(e) {
|
|
|
305
310
|
e = e.replace(r, "$1javascript:");
|
|
306
311
|
}), e;
|
|
307
312
|
}
|
|
308
|
-
const
|
|
313
|
+
const _s = Object.prototype.hasOwnProperty;
|
|
309
314
|
function oe(e, t) {
|
|
310
|
-
return
|
|
315
|
+
return _s.call(e, t);
|
|
311
316
|
}
|
|
312
|
-
const H = Array.isArray, W = (e) => typeof e == "function", L = (e) => typeof e == "string", F = (e) => typeof e == "boolean", M = (e) => e !== null && typeof e == "object",
|
|
313
|
-
function
|
|
317
|
+
const H = Array.isArray, W = (e) => typeof e == "function", L = (e) => typeof e == "string", F = (e) => typeof e == "boolean", M = (e) => e !== null && typeof e == "object", ms = (e) => M(e) && W(e.then) && W(e.catch), nr = Object.prototype.toString, Zt = (e) => nr.call(e), R = (e) => Zt(e) === "[object Object]", ds = (e) => e == null ? "" : H(e) || R(e) && e.toString === nr ? JSON.stringify(e, null, 2) : String(e);
|
|
318
|
+
function zt(e, t = "") {
|
|
314
319
|
return e.reduce((n, r, s) => s === 0 ? n + r : n + t + r, "");
|
|
315
320
|
}
|
|
316
|
-
const
|
|
317
|
-
function
|
|
321
|
+
const gn = 2;
|
|
322
|
+
function Es(e, t = 0, n = e.length) {
|
|
318
323
|
const r = e.split(/\r?\n/);
|
|
319
324
|
let s = 0;
|
|
320
325
|
const a = [];
|
|
321
326
|
for (let o = 0; o < r.length; o++)
|
|
322
327
|
if (s += r[o].length + 1, s >= t) {
|
|
323
|
-
for (let i = o -
|
|
328
|
+
for (let i = o - gn; i <= o + gn || n > s; i++) {
|
|
324
329
|
if (i < 0 || i >= r.length)
|
|
325
330
|
continue;
|
|
326
331
|
const u = i + 1;
|
|
@@ -342,7 +347,7 @@ function Ns(e, t = 0, n = e.length) {
|
|
|
342
347
|
return a.join(`
|
|
343
348
|
`);
|
|
344
349
|
}
|
|
345
|
-
function
|
|
350
|
+
function en() {
|
|
346
351
|
const e = /* @__PURE__ */ new Map();
|
|
347
352
|
return {
|
|
348
353
|
events: e,
|
|
@@ -371,7 +376,7 @@ function rt(e, t) {
|
|
|
371
376
|
});
|
|
372
377
|
}
|
|
373
378
|
}
|
|
374
|
-
function
|
|
379
|
+
function ps(e, t, n) {
|
|
375
380
|
return { line: e, column: t, offset: n };
|
|
376
381
|
}
|
|
377
382
|
function Rt(e, t, n) {
|
|
@@ -398,7 +403,7 @@ const P = {
|
|
|
398
403
|
UNHANDLED_CODEGEN_NODE_TYPE: 15,
|
|
399
404
|
// minifier error codes
|
|
400
405
|
UNHANDLED_MINIFIER_NODE_TYPE: 16
|
|
401
|
-
},
|
|
406
|
+
}, gs = 17, Ns = {
|
|
402
407
|
// tokenizer error messages
|
|
403
408
|
[P.EXPECTED_TOKEN]: "Expected token: '{0}'",
|
|
404
409
|
[P.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
|
|
@@ -421,18 +426,18 @@ const P = {
|
|
|
421
426
|
[P.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
|
|
422
427
|
};
|
|
423
428
|
function Ve(e, t, n = {}) {
|
|
424
|
-
const { domain: r, messages: s, args: a } = n, o = process.env.NODE_ENV !== "production" ? ct((s ||
|
|
429
|
+
const { domain: r, messages: s, args: a } = n, o = process.env.NODE_ENV !== "production" ? ct((s || Ns)[e] || "", ...a || []) : e, i = new SyntaxError(String(o));
|
|
425
430
|
return i.code = e, t && (i.location = t), i.domain = r, i;
|
|
426
431
|
}
|
|
427
|
-
function
|
|
432
|
+
function Ts(e) {
|
|
428
433
|
throw e;
|
|
429
434
|
}
|
|
430
|
-
const
|
|
431
|
-
`,
|
|
432
|
-
function
|
|
435
|
+
const bs = /<\/?[\w\s="/.':;#-\/]+>/, hs = (e) => bs.test(e), ie = " ", Is = "\r", Q = `
|
|
436
|
+
`, Ls = "\u2028", Os = "\u2029";
|
|
437
|
+
function vs(e) {
|
|
433
438
|
const t = e;
|
|
434
439
|
let n = 0, r = 1, s = 1, a = 0;
|
|
435
|
-
const o = (p) => t[p] ===
|
|
440
|
+
const o = (p) => t[p] === Is && t[p + 1] === Q, i = (p) => t[p] === Q, u = (p) => t[p] === Os, d = (p) => t[p] === Ls, I = (p) => o(p) || i(p) || u(p) || d(p), b = () => n, N = () => r, A = () => s, D = () => a, C = (p) => o(p) || u(p) || d(p) ? Q : t[p], S = () => C(n), f = () => C(n + a);
|
|
436
441
|
function m() {
|
|
437
442
|
return a = 0, I(n) && (r++, s = 0), o(n) && n++, n++, s++, t[n];
|
|
438
443
|
}
|
|
@@ -466,9 +471,9 @@ function Ss(e) {
|
|
|
466
471
|
skipToPeek: v
|
|
467
472
|
};
|
|
468
473
|
}
|
|
469
|
-
const
|
|
470
|
-
function
|
|
471
|
-
const n = t.location !== !1, r =
|
|
474
|
+
const Ee = void 0, Cs = ".", Nn = "'", As = "tokenizer";
|
|
475
|
+
function Ss(e, t = {}) {
|
|
476
|
+
const n = t.location !== !1, r = vs(e), s = () => r.index(), a = () => ps(r.line(), r.column(), r.index()), o = a(), i = s(), u = {
|
|
472
477
|
currentType: 13,
|
|
473
478
|
offset: i,
|
|
474
479
|
startLoc: o,
|
|
@@ -485,7 +490,7 @@ function Ds(e, t = {}) {
|
|
|
485
490
|
const x = d();
|
|
486
491
|
if (c.column += g, c.offset += g, I) {
|
|
487
492
|
const B = n ? Rt(x.startLoc, c) : null, U = Ve(l, B, {
|
|
488
|
-
domain:
|
|
493
|
+
domain: As,
|
|
489
494
|
args: y
|
|
490
495
|
});
|
|
491
496
|
I(U);
|
|
@@ -515,7 +520,7 @@ function Ds(e, t = {}) {
|
|
|
515
520
|
return l.skipToPeek(), c;
|
|
516
521
|
}
|
|
517
522
|
function f(l) {
|
|
518
|
-
if (l ===
|
|
523
|
+
if (l === Ee)
|
|
519
524
|
return !1;
|
|
520
525
|
const c = l.charCodeAt(0);
|
|
521
526
|
return c >= 97 && c <= 122 || // a-z
|
|
@@ -523,7 +528,7 @@ function Ds(e, t = {}) {
|
|
|
523
528
|
c === 95;
|
|
524
529
|
}
|
|
525
530
|
function m(l) {
|
|
526
|
-
if (l ===
|
|
531
|
+
if (l === Ee)
|
|
527
532
|
return !1;
|
|
528
533
|
const c = l.charCodeAt(0);
|
|
529
534
|
return c >= 48 && c <= 57;
|
|
@@ -549,7 +554,7 @@ function Ds(e, t = {}) {
|
|
|
549
554
|
if (g !== 2)
|
|
550
555
|
return !1;
|
|
551
556
|
C(l);
|
|
552
|
-
const y = l.currentPeek() ===
|
|
557
|
+
const y = l.currentPeek() === Nn;
|
|
553
558
|
return l.resetPeek(), y;
|
|
554
559
|
}
|
|
555
560
|
function v(l, c) {
|
|
@@ -600,7 +605,7 @@ function Ds(e, t = {}) {
|
|
|
600
605
|
}
|
|
601
606
|
function Y(l, c) {
|
|
602
607
|
const g = l.currentChar();
|
|
603
|
-
return g ===
|
|
608
|
+
return g === Ee ? Ee : c(g) ? (l.next(), g) : null;
|
|
604
609
|
}
|
|
605
610
|
function Pe(l) {
|
|
606
611
|
const c = l.charCodeAt(0);
|
|
@@ -638,7 +643,7 @@ function Ds(e, t = {}) {
|
|
|
638
643
|
c >= 65 && c <= 70 || // A-F
|
|
639
644
|
c >= 97 && c <= 102;
|
|
640
645
|
}
|
|
641
|
-
function
|
|
646
|
+
function de(l) {
|
|
642
647
|
return Y(l, Nt);
|
|
643
648
|
}
|
|
644
649
|
function $e(l) {
|
|
@@ -672,27 +677,27 @@ function Ds(e, t = {}) {
|
|
|
672
677
|
for (; c = Et(l); )
|
|
673
678
|
g += c;
|
|
674
679
|
const y = l.currentChar();
|
|
675
|
-
if (y && y !== "}" && y !==
|
|
680
|
+
if (y && y !== "}" && y !== Ee && y !== ie && y !== Q && y !== " ") {
|
|
676
681
|
const x = Ze(l);
|
|
677
682
|
return b(P.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, g + x), g + x;
|
|
678
683
|
}
|
|
679
|
-
return l.currentChar() ===
|
|
684
|
+
return l.currentChar() === Ee && b(P.UNTERMINATED_CLOSING_BRACE, a(), 0), g;
|
|
680
685
|
}
|
|
681
686
|
function ht(l) {
|
|
682
687
|
S(l);
|
|
683
688
|
let c = "";
|
|
684
|
-
return l.currentChar() === "-" ? (l.next(), c += `-${$e(l)}`) : c += $e(l), l.currentChar() ===
|
|
689
|
+
return l.currentChar() === "-" ? (l.next(), c += `-${$e(l)}`) : c += $e(l), l.currentChar() === Ee && b(P.UNTERMINATED_CLOSING_BRACE, a(), 0), c;
|
|
685
690
|
}
|
|
686
691
|
function It(l) {
|
|
687
|
-
return l !==
|
|
692
|
+
return l !== Nn && l !== Q;
|
|
688
693
|
}
|
|
689
|
-
function
|
|
694
|
+
function fn(l) {
|
|
690
695
|
S(l), D(l, "'");
|
|
691
696
|
let c = "", g = "";
|
|
692
697
|
for (; c = Y(l, It); )
|
|
693
698
|
c === "\\" ? g += Lt(l) : g += c;
|
|
694
699
|
const y = l.currentChar();
|
|
695
|
-
return y === Q || y ===
|
|
700
|
+
return y === Q || y === Ee ? (b(P.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), y === Q && (l.next(), D(l, "'")), g) : (D(l, "'"), g);
|
|
696
701
|
}
|
|
697
702
|
function Lt(l) {
|
|
698
703
|
const c = l.currentChar();
|
|
@@ -712,7 +717,7 @@ function Ds(e, t = {}) {
|
|
|
712
717
|
D(l, c);
|
|
713
718
|
let y = "";
|
|
714
719
|
for (let x = 0; x < g; x++) {
|
|
715
|
-
const B =
|
|
720
|
+
const B = de(l);
|
|
716
721
|
if (!B) {
|
|
717
722
|
b(P.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${c}${y}${l.currentChar()}`);
|
|
718
723
|
break;
|
|
@@ -771,7 +776,7 @@ function Ds(e, t = {}) {
|
|
|
771
776
|
/* TokenChars.BraceRight */
|
|
772
777
|
), c.braceNest--, c.braceNest > 0 && S(l), c.inLinked && c.braceNest === 0 && (c.inLinked = !1), g;
|
|
773
778
|
case "@":
|
|
774
|
-
return c.braceNest > 0 && b(P.UNTERMINATED_CLOSING_BRACE, a(), 0), g =
|
|
779
|
+
return c.braceNest > 0 && b(P.UNTERMINATED_CLOSING_BRACE, a(), 0), g = he(l, c) || A(c), c.braceNest = 0, g;
|
|
775
780
|
default: {
|
|
776
781
|
let x = !0, B = !0, U = !0;
|
|
777
782
|
if (X(l))
|
|
@@ -783,7 +788,7 @@ function Ds(e, t = {}) {
|
|
|
783
788
|
if (B = E(l, c))
|
|
784
789
|
return g = N(c, 5, ht(l)), S(l), g;
|
|
785
790
|
if (U = O(l, c))
|
|
786
|
-
return g = N(c, 6,
|
|
791
|
+
return g = N(c, 6, fn(l)), S(l), g;
|
|
787
792
|
if (!x && !B && !U)
|
|
788
793
|
return g = N(c, 12, Ze(l)), b(P.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, g.value), S(l), g;
|
|
789
794
|
break;
|
|
@@ -791,7 +796,7 @@ function Ds(e, t = {}) {
|
|
|
791
796
|
}
|
|
792
797
|
return g;
|
|
793
798
|
}
|
|
794
|
-
function
|
|
799
|
+
function he(l, c) {
|
|
795
800
|
const { currentType: g } = c;
|
|
796
801
|
let y = null;
|
|
797
802
|
const x = l.currentChar();
|
|
@@ -818,7 +823,7 @@ function Ds(e, t = {}) {
|
|
|
818
823
|
/* TokenChars.LinkedDelimiter */
|
|
819
824
|
);
|
|
820
825
|
default:
|
|
821
|
-
return X(l) ? (y = N(c, 1, We(l)), c.braceNest = 0, c.inLinked = !1, y) : v(l, c) || k(l, c) ? (S(l),
|
|
826
|
+
return X(l) ? (y = N(c, 1, We(l)), c.braceNest = 0, c.inLinked = !1, y) : v(l, c) || k(l, c) ? (S(l), he(l, c)) : p(l, c) ? (S(l), N(c, 11, vt(l))) : w(l, c) ? (S(l), x === "{" ? Ge(l, c) || y : N(c, 10, Ct(l))) : (g === 7 && b(P.INVALID_LINKED_FORMAT, a(), 0), c.braceNest = 0, c.inLinked = !1, xe(l, c));
|
|
822
827
|
}
|
|
823
828
|
}
|
|
824
829
|
function xe(l, c) {
|
|
@@ -829,7 +834,7 @@ function Ds(e, t = {}) {
|
|
|
829
834
|
if (c.braceNest > 0)
|
|
830
835
|
return Ge(l, c) || A(c);
|
|
831
836
|
if (c.inLinked)
|
|
832
|
-
return
|
|
837
|
+
return he(l, c) || A(c);
|
|
833
838
|
switch (l.currentChar()) {
|
|
834
839
|
case "{":
|
|
835
840
|
return Ge(l, c) || A(c);
|
|
@@ -841,7 +846,7 @@ function Ds(e, t = {}) {
|
|
|
841
846
|
/* TokenChars.BraceRight */
|
|
842
847
|
);
|
|
843
848
|
case "@":
|
|
844
|
-
return
|
|
849
|
+
return he(l, c) || A(c);
|
|
845
850
|
default: {
|
|
846
851
|
if (X(l))
|
|
847
852
|
return g = N(c, 1, We(l)), c.braceNest = 0, c.inLinked = !1, g;
|
|
@@ -854,7 +859,7 @@ function Ds(e, t = {}) {
|
|
|
854
859
|
}
|
|
855
860
|
function At() {
|
|
856
861
|
const { currentType: l, offset: c, startLoc: g, endLoc: y } = u;
|
|
857
|
-
return u.lastType = l, u.lastOffset = c, u.lastStartLoc = g, u.lastEndLoc = y, u.offset = s(), u.startLoc = a(), r.currentChar() ===
|
|
862
|
+
return u.lastType = l, u.lastOffset = c, u.lastStartLoc = g, u.lastEndLoc = y, u.offset = s(), u.startLoc = a(), r.currentChar() === Ee ? N(
|
|
858
863
|
u,
|
|
859
864
|
13
|
|
860
865
|
/* TokenTypes.EOF */
|
|
@@ -867,8 +872,8 @@ function Ds(e, t = {}) {
|
|
|
867
872
|
context: d
|
|
868
873
|
};
|
|
869
874
|
}
|
|
870
|
-
const
|
|
871
|
-
function
|
|
875
|
+
const ys = "parser", Ps = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
876
|
+
function Ds(e, t, n) {
|
|
872
877
|
switch (e) {
|
|
873
878
|
case "\\\\":
|
|
874
879
|
return "\\";
|
|
@@ -881,13 +886,13 @@ function Ms(e, t, n) {
|
|
|
881
886
|
}
|
|
882
887
|
}
|
|
883
888
|
}
|
|
884
|
-
function
|
|
889
|
+
function ks(e = {}) {
|
|
885
890
|
const t = e.location !== !1, { onError: n } = e;
|
|
886
891
|
function r(f, m, h, E, ...O) {
|
|
887
892
|
const v = f.currentPosition();
|
|
888
893
|
if (v.offset += E, v.column += E, n) {
|
|
889
894
|
const p = t ? Rt(h, v) : null, k = Ve(m, p, {
|
|
890
|
-
domain:
|
|
895
|
+
domain: ys,
|
|
891
896
|
args: O
|
|
892
897
|
});
|
|
893
898
|
n(k);
|
|
@@ -914,7 +919,7 @@ function Fs(e = {}) {
|
|
|
914
919
|
}
|
|
915
920
|
function d(f, m) {
|
|
916
921
|
const h = f.context(), { lastOffset: E, lastStartLoc: O } = h, v = s(9, E, O);
|
|
917
|
-
return v.value = m.replace(
|
|
922
|
+
return v.value = m.replace(Ps, Ds), f.nextToken(), a(v, f.currentOffset(), f.currentPosition()), v;
|
|
918
923
|
}
|
|
919
924
|
function I(f) {
|
|
920
925
|
const m = f.nextToken(), h = f.context(), { lastOffset: E, lastStartLoc: O } = h, v = s(8, E, O);
|
|
@@ -1007,7 +1012,7 @@ function Fs(e = {}) {
|
|
|
1007
1012
|
return m.currentType === 13 ? O : D(f, h, E, O);
|
|
1008
1013
|
}
|
|
1009
1014
|
function S(f) {
|
|
1010
|
-
const m =
|
|
1015
|
+
const m = Ss(f, J({}, e)), h = m.context(), E = s(0, h.offset, h.startLoc);
|
|
1011
1016
|
return t && E.loc && (E.loc.source = f), E.body = C(m), e.onCacheKey && (E.cacheKey = e.onCacheKey(f)), h.currentType !== 13 && r(m, P.UNEXPECTED_LEXICAL_ANALYSIS, h.lastStartLoc, 0, f[h.offset] || ""), a(E, m.currentOffset(), m.currentPosition()), E;
|
|
1012
1017
|
}
|
|
1013
1018
|
return { parse: S };
|
|
@@ -1018,30 +1023,30 @@ function ce(e) {
|
|
|
1018
1023
|
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
1019
1024
|
return t.length > 10 ? t.slice(0, 9) + "…" : t;
|
|
1020
1025
|
}
|
|
1021
|
-
function
|
|
1026
|
+
function Rs(e, t = {}) {
|
|
1022
1027
|
const n = {
|
|
1023
1028
|
ast: e,
|
|
1024
1029
|
helpers: /* @__PURE__ */ new Set()
|
|
1025
1030
|
};
|
|
1026
1031
|
return { context: () => n, helper: (a) => (n.helpers.add(a), a) };
|
|
1027
1032
|
}
|
|
1028
|
-
function
|
|
1033
|
+
function Tn(e, t) {
|
|
1029
1034
|
for (let n = 0; n < e.length; n++)
|
|
1030
|
-
|
|
1035
|
+
tn(e[n], t);
|
|
1031
1036
|
}
|
|
1032
|
-
function
|
|
1037
|
+
function tn(e, t) {
|
|
1033
1038
|
switch (e.type) {
|
|
1034
1039
|
case 1:
|
|
1035
|
-
|
|
1040
|
+
Tn(e.cases, t), t.helper(
|
|
1036
1041
|
"plural"
|
|
1037
1042
|
/* HelperNameMap.PLURAL */
|
|
1038
1043
|
);
|
|
1039
1044
|
break;
|
|
1040
1045
|
case 2:
|
|
1041
|
-
|
|
1046
|
+
Tn(e.items, t);
|
|
1042
1047
|
break;
|
|
1043
1048
|
case 6: {
|
|
1044
|
-
|
|
1049
|
+
tn(e.key, t), t.helper(
|
|
1045
1050
|
"linked"
|
|
1046
1051
|
/* HelperNameMap.LINKED */
|
|
1047
1052
|
), t.helper(
|
|
@@ -1070,20 +1075,20 @@ function zt(e, t) {
|
|
|
1070
1075
|
break;
|
|
1071
1076
|
}
|
|
1072
1077
|
}
|
|
1073
|
-
function
|
|
1074
|
-
const n =
|
|
1078
|
+
function Ms(e, t = {}) {
|
|
1079
|
+
const n = Rs(e);
|
|
1075
1080
|
n.helper(
|
|
1076
1081
|
"normalize"
|
|
1077
1082
|
/* HelperNameMap.NORMALIZE */
|
|
1078
|
-
), e.body &&
|
|
1083
|
+
), e.body && tn(e.body, n);
|
|
1079
1084
|
const r = n.context();
|
|
1080
1085
|
e.helpers = Array.from(r.helpers);
|
|
1081
1086
|
}
|
|
1082
|
-
function
|
|
1087
|
+
function Fs(e) {
|
|
1083
1088
|
const t = e.body;
|
|
1084
|
-
return t.type === 2 ?
|
|
1089
|
+
return t.type === 2 ? bn(t) : t.cases.forEach((n) => bn(n)), e;
|
|
1085
1090
|
}
|
|
1086
|
-
function
|
|
1091
|
+
function bn(e) {
|
|
1087
1092
|
if (e.items.length === 1) {
|
|
1088
1093
|
const t = e.items[0];
|
|
1089
1094
|
(t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
|
|
@@ -1096,7 +1101,7 @@ function Nn(e) {
|
|
|
1096
1101
|
t.push(r.value);
|
|
1097
1102
|
}
|
|
1098
1103
|
if (t.length === e.items.length) {
|
|
1099
|
-
e.static =
|
|
1104
|
+
e.static = zt(t);
|
|
1100
1105
|
for (let n = 0; n < e.items.length; n++) {
|
|
1101
1106
|
const r = e.items[n];
|
|
1102
1107
|
(r.type === 3 || r.type === 9) && delete r.value;
|
|
@@ -1104,7 +1109,7 @@ function Nn(e) {
|
|
|
1104
1109
|
}
|
|
1105
1110
|
}
|
|
1106
1111
|
}
|
|
1107
|
-
const
|
|
1112
|
+
const Us = "minifier";
|
|
1108
1113
|
function Re(e) {
|
|
1109
1114
|
switch (e.t = e.type, e.type) {
|
|
1110
1115
|
case 0: {
|
|
@@ -1152,14 +1157,14 @@ function Re(e) {
|
|
|
1152
1157
|
default:
|
|
1153
1158
|
if (process.env.NODE_ENV !== "production")
|
|
1154
1159
|
throw Ve(P.UNHANDLED_MINIFIER_NODE_TYPE, null, {
|
|
1155
|
-
domain:
|
|
1160
|
+
domain: Us,
|
|
1156
1161
|
args: [e.type]
|
|
1157
1162
|
});
|
|
1158
1163
|
}
|
|
1159
1164
|
delete e.type;
|
|
1160
1165
|
}
|
|
1161
|
-
const
|
|
1162
|
-
function
|
|
1166
|
+
const ws = "parser";
|
|
1167
|
+
function Vs(e, t) {
|
|
1163
1168
|
const { filename: n, breakLineCode: r, needIndent: s } = t, a = t.location !== !1, o = {
|
|
1164
1169
|
filename: n,
|
|
1165
1170
|
code: "",
|
|
@@ -1201,14 +1206,14 @@ function Gs(e, t) {
|
|
|
1201
1206
|
needIndent: () => o.needIndent
|
|
1202
1207
|
};
|
|
1203
1208
|
}
|
|
1204
|
-
function
|
|
1209
|
+
function $s(e, t) {
|
|
1205
1210
|
const { helper: n } = e;
|
|
1206
1211
|
e.push(`${n(
|
|
1207
1212
|
"linked"
|
|
1208
1213
|
/* HelperNameMap.LINKED */
|
|
1209
1214
|
)}(`), Ue(e, t.key), t.modifier ? (e.push(", "), Ue(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
1210
1215
|
}
|
|
1211
|
-
function
|
|
1216
|
+
function Ws(e, t) {
|
|
1212
1217
|
const { helper: n, needIndent: r } = e;
|
|
1213
1218
|
e.push(`${n(
|
|
1214
1219
|
"normalize"
|
|
@@ -1219,7 +1224,7 @@ function Hs(e, t) {
|
|
|
1219
1224
|
e.push(", ");
|
|
1220
1225
|
e.deindent(r()), e.push("])");
|
|
1221
1226
|
}
|
|
1222
|
-
function
|
|
1227
|
+
function Gs(e, t) {
|
|
1223
1228
|
const { helper: n, needIndent: r } = e;
|
|
1224
1229
|
if (t.cases.length > 1) {
|
|
1225
1230
|
e.push(`${n(
|
|
@@ -1232,23 +1237,23 @@ function Ys(e, t) {
|
|
|
1232
1237
|
e.deindent(r()), e.push("])");
|
|
1233
1238
|
}
|
|
1234
1239
|
}
|
|
1235
|
-
function
|
|
1240
|
+
function xs(e, t) {
|
|
1236
1241
|
t.body ? Ue(e, t.body) : e.push("null");
|
|
1237
1242
|
}
|
|
1238
1243
|
function Ue(e, t) {
|
|
1239
1244
|
const { helper: n } = e;
|
|
1240
1245
|
switch (t.type) {
|
|
1241
1246
|
case 0:
|
|
1242
|
-
|
|
1247
|
+
xs(e, t);
|
|
1243
1248
|
break;
|
|
1244
1249
|
case 1:
|
|
1245
|
-
|
|
1250
|
+
Gs(e, t);
|
|
1246
1251
|
break;
|
|
1247
1252
|
case 2:
|
|
1248
|
-
|
|
1253
|
+
Ws(e, t);
|
|
1249
1254
|
break;
|
|
1250
1255
|
case 6:
|
|
1251
|
-
|
|
1256
|
+
$s(e, t);
|
|
1252
1257
|
break;
|
|
1253
1258
|
case 8:
|
|
1254
1259
|
e.push(JSON.stringify(t.value), t);
|
|
@@ -1283,21 +1288,21 @@ function Ue(e, t) {
|
|
|
1283
1288
|
default:
|
|
1284
1289
|
if (process.env.NODE_ENV !== "production")
|
|
1285
1290
|
throw Ve(P.UNHANDLED_CODEGEN_NODE_TYPE, null, {
|
|
1286
|
-
domain:
|
|
1291
|
+
domain: ws,
|
|
1287
1292
|
args: [t.type]
|
|
1288
1293
|
});
|
|
1289
1294
|
}
|
|
1290
1295
|
}
|
|
1291
|
-
const
|
|
1296
|
+
const Hs = (e, t = {}) => {
|
|
1292
1297
|
const n = L(t.mode) ? t.mode : "normal", r = L(t.filename) ? t.filename : "message.intl";
|
|
1293
1298
|
t.sourceMap;
|
|
1294
1299
|
const s = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
1295
|
-
`, a = t.needIndent ? t.needIndent : n !== "arrow", o = e.helpers || [], i =
|
|
1300
|
+
`, a = t.needIndent ? t.needIndent : n !== "arrow", o = e.helpers || [], i = Vs(e, {
|
|
1296
1301
|
filename: r,
|
|
1297
1302
|
breakLineCode: s,
|
|
1298
1303
|
needIndent: a
|
|
1299
1304
|
});
|
|
1300
|
-
i.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), i.indent(a), o.length > 0 && (i.push(`const { ${
|
|
1305
|
+
i.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), i.indent(a), o.length > 0 && (i.push(`const { ${zt(o.map((I) => `${I}: _${I}`), ", ")} } = ctx`), i.newline()), i.push("return "), Ue(i, e), i.deindent(a), i.push("}"), delete e.helpers;
|
|
1301
1306
|
const { code: u, map: d } = i.context();
|
|
1302
1307
|
return {
|
|
1303
1308
|
ast: e,
|
|
@@ -1306,50 +1311,50 @@ const Ks = (e, t = {}) => {
|
|
|
1306
1311
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1307
1312
|
};
|
|
1308
1313
|
};
|
|
1309
|
-
function
|
|
1310
|
-
const n = J({}, t), r = !!n.jit, s = !!n.minify, a = n.optimize == null ? !0 : n.optimize, i =
|
|
1311
|
-
return r ? (a &&
|
|
1314
|
+
function Ys(e, t = {}) {
|
|
1315
|
+
const n = J({}, t), r = !!n.jit, s = !!n.minify, a = n.optimize == null ? !0 : n.optimize, i = ks(n).parse(e);
|
|
1316
|
+
return r ? (a && Fs(i), s && Re(i), { ast: i, code: "" }) : (Ms(i, n), Hs(i, n));
|
|
1312
1317
|
}
|
|
1313
|
-
function
|
|
1314
|
-
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (
|
|
1318
|
+
function Bs() {
|
|
1319
|
+
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (ve().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (ve().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
1315
1320
|
}
|
|
1316
1321
|
function se(e) {
|
|
1317
|
-
return M(e) &&
|
|
1322
|
+
return M(e) && nn(e) === 0 && (oe(e, "b") || oe(e, "body"));
|
|
1318
1323
|
}
|
|
1319
|
-
const
|
|
1320
|
-
function
|
|
1321
|
-
return
|
|
1324
|
+
const rr = ["b", "body"];
|
|
1325
|
+
function Ks(e) {
|
|
1326
|
+
return Te(e, rr);
|
|
1322
1327
|
}
|
|
1323
|
-
const
|
|
1324
|
-
function
|
|
1325
|
-
return
|
|
1328
|
+
const sr = ["c", "cases"];
|
|
1329
|
+
function js(e) {
|
|
1330
|
+
return Te(e, sr, []);
|
|
1326
1331
|
}
|
|
1327
|
-
const
|
|
1328
|
-
function
|
|
1329
|
-
return
|
|
1332
|
+
const ar = ["s", "static"];
|
|
1333
|
+
function Xs(e) {
|
|
1334
|
+
return Te(e, ar);
|
|
1330
1335
|
}
|
|
1331
|
-
const
|
|
1332
|
-
function
|
|
1333
|
-
return
|
|
1336
|
+
const or = ["i", "items"];
|
|
1337
|
+
function Js(e) {
|
|
1338
|
+
return Te(e, or, []);
|
|
1334
1339
|
}
|
|
1335
|
-
const
|
|
1336
|
-
function
|
|
1337
|
-
return
|
|
1340
|
+
const lr = ["t", "type"];
|
|
1341
|
+
function nn(e) {
|
|
1342
|
+
return Te(e, lr);
|
|
1338
1343
|
}
|
|
1339
|
-
const
|
|
1344
|
+
const ir = ["v", "value"];
|
|
1340
1345
|
function tt(e, t) {
|
|
1341
|
-
const n =
|
|
1346
|
+
const n = Te(e, ir);
|
|
1342
1347
|
if (n != null)
|
|
1343
1348
|
return n;
|
|
1344
1349
|
throw Be(t);
|
|
1345
1350
|
}
|
|
1346
|
-
const
|
|
1347
|
-
function
|
|
1348
|
-
return
|
|
1351
|
+
const cr = ["m", "modifier"];
|
|
1352
|
+
function Qs(e) {
|
|
1353
|
+
return Te(e, cr);
|
|
1349
1354
|
}
|
|
1350
|
-
const
|
|
1351
|
-
function
|
|
1352
|
-
const t =
|
|
1355
|
+
const ur = ["k", "key"];
|
|
1356
|
+
function qs(e) {
|
|
1357
|
+
const t = Te(e, ur);
|
|
1353
1358
|
if (t)
|
|
1354
1359
|
return t;
|
|
1355
1360
|
throw Be(
|
|
@@ -1357,7 +1362,7 @@ function ea(e) {
|
|
|
1357
1362
|
/* NodeTypes.Linked */
|
|
1358
1363
|
);
|
|
1359
1364
|
}
|
|
1360
|
-
function
|
|
1365
|
+
function Te(e, t, n) {
|
|
1361
1366
|
for (let r = 0; r < t.length; r++) {
|
|
1362
1367
|
const s = t[r];
|
|
1363
1368
|
if (oe(e, s) && e[s] != null)
|
|
@@ -1365,49 +1370,49 @@ function Ne(e, t, n) {
|
|
|
1365
1370
|
}
|
|
1366
1371
|
return n;
|
|
1367
1372
|
}
|
|
1368
|
-
const
|
|
1369
|
-
...er,
|
|
1370
|
-
...tr,
|
|
1371
|
-
...nr,
|
|
1373
|
+
const fr = [
|
|
1372
1374
|
...rr,
|
|
1373
|
-
...
|
|
1374
|
-
...or,
|
|
1375
|
+
...sr,
|
|
1375
1376
|
...ar,
|
|
1376
|
-
...
|
|
1377
|
+
...or,
|
|
1378
|
+
...ur,
|
|
1379
|
+
...cr,
|
|
1380
|
+
...ir,
|
|
1381
|
+
...lr
|
|
1377
1382
|
];
|
|
1378
1383
|
function Be(e) {
|
|
1379
1384
|
return new Error(`unhandled node type: ${e}`);
|
|
1380
1385
|
}
|
|
1381
1386
|
function yt(e) {
|
|
1382
|
-
return (n) =>
|
|
1387
|
+
return (n) => Zs(n, e);
|
|
1383
1388
|
}
|
|
1384
|
-
function
|
|
1385
|
-
const n =
|
|
1389
|
+
function Zs(e, t) {
|
|
1390
|
+
const n = Ks(t);
|
|
1386
1391
|
if (n == null)
|
|
1387
1392
|
throw Be(
|
|
1388
1393
|
0
|
|
1389
1394
|
/* NodeTypes.Resource */
|
|
1390
1395
|
);
|
|
1391
|
-
if (
|
|
1392
|
-
const a =
|
|
1396
|
+
if (nn(n) === 1) {
|
|
1397
|
+
const a = js(n);
|
|
1393
1398
|
return e.plural(a.reduce((o, i) => [
|
|
1394
1399
|
...o,
|
|
1395
|
-
|
|
1400
|
+
hn(e, i)
|
|
1396
1401
|
], []));
|
|
1397
1402
|
} else
|
|
1398
|
-
return
|
|
1403
|
+
return hn(e, n);
|
|
1399
1404
|
}
|
|
1400
|
-
function
|
|
1401
|
-
const n =
|
|
1405
|
+
function hn(e, t) {
|
|
1406
|
+
const n = Xs(t);
|
|
1402
1407
|
if (n != null)
|
|
1403
1408
|
return e.type === "text" ? n : e.normalize([n]);
|
|
1404
1409
|
{
|
|
1405
|
-
const r =
|
|
1410
|
+
const r = Js(t).reduce((s, a) => [...s, Mt(e, a)], []);
|
|
1406
1411
|
return e.normalize(r);
|
|
1407
1412
|
}
|
|
1408
1413
|
}
|
|
1409
1414
|
function Mt(e, t) {
|
|
1410
|
-
const n =
|
|
1415
|
+
const n = nn(t);
|
|
1411
1416
|
switch (n) {
|
|
1412
1417
|
case 3:
|
|
1413
1418
|
return tt(t, n);
|
|
@@ -1430,7 +1435,7 @@ function Mt(e, t) {
|
|
|
1430
1435
|
throw Be(n);
|
|
1431
1436
|
}
|
|
1432
1437
|
case 6: {
|
|
1433
|
-
const r = t, s =
|
|
1438
|
+
const r = t, s = Qs(r), a = qs(r);
|
|
1434
1439
|
return e.linked(Mt(e, a), s ? Mt(e, s) : void 0, e.type);
|
|
1435
1440
|
}
|
|
1436
1441
|
case 7:
|
|
@@ -1441,28 +1446,28 @@ function Mt(e, t) {
|
|
|
1441
1446
|
throw new Error(`unhandled node on format message part: ${n}`);
|
|
1442
1447
|
}
|
|
1443
1448
|
}
|
|
1444
|
-
const
|
|
1445
|
-
function
|
|
1446
|
-
t &&
|
|
1449
|
+
const zs = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
|
|
1450
|
+
function ea(e, t) {
|
|
1451
|
+
t && hs(e) && fe(ct(zs, { source: e }));
|
|
1447
1452
|
}
|
|
1448
|
-
const
|
|
1453
|
+
const ta = (e) => e;
|
|
1449
1454
|
let nt = $();
|
|
1450
|
-
function
|
|
1455
|
+
function na(e, t = {}) {
|
|
1451
1456
|
let n = !1;
|
|
1452
|
-
const r = t.onError ||
|
|
1457
|
+
const r = t.onError || Ts;
|
|
1453
1458
|
return t.onError = (s) => {
|
|
1454
1459
|
n = !0, r(s);
|
|
1455
|
-
}, { ...
|
|
1460
|
+
}, { ...Ys(e, t), detectError: n };
|
|
1456
1461
|
}
|
|
1457
1462
|
// @__NO_SIDE_EFFECTS__
|
|
1458
|
-
function
|
|
1463
|
+
function ra(e, t) {
|
|
1459
1464
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && L(e)) {
|
|
1460
1465
|
const n = F(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
|
|
1461
|
-
process.env.NODE_ENV !== "production" &&
|
|
1462
|
-
const s = (t.onCacheKey ||
|
|
1466
|
+
process.env.NODE_ENV !== "production" && ea(e, n);
|
|
1467
|
+
const s = (t.onCacheKey || ta)(e), a = nt[s];
|
|
1463
1468
|
if (a)
|
|
1464
1469
|
return a;
|
|
1465
|
-
const { ast: o, detectError: i } =
|
|
1470
|
+
const { ast: o, detectError: i } = na(e, {
|
|
1466
1471
|
...t,
|
|
1467
1472
|
location: process.env.NODE_ENV !== "production",
|
|
1468
1473
|
jit: !0
|
|
@@ -1470,7 +1475,7 @@ function oa(e, t) {
|
|
|
1470
1475
|
return i ? u : nt[s] = u;
|
|
1471
1476
|
} else {
|
|
1472
1477
|
if (process.env.NODE_ENV !== "production" && !se(e))
|
|
1473
|
-
return
|
|
1478
|
+
return fe(`the message that is resolve with key '${t.key}' is not supported for jit compilation`), (() => e);
|
|
1474
1479
|
const n = e.cacheKey;
|
|
1475
1480
|
if (n) {
|
|
1476
1481
|
const r = nt[n];
|
|
@@ -1480,10 +1485,10 @@ function oa(e, t) {
|
|
|
1480
1485
|
}
|
|
1481
1486
|
}
|
|
1482
1487
|
let Ke = null;
|
|
1483
|
-
function
|
|
1488
|
+
function sa(e) {
|
|
1484
1489
|
Ke = e;
|
|
1485
1490
|
}
|
|
1486
|
-
function
|
|
1491
|
+
function aa(e, t, n) {
|
|
1487
1492
|
Ke && Ke.emit("i18n:init", {
|
|
1488
1493
|
timestamp: Date.now(),
|
|
1489
1494
|
i18n: e,
|
|
@@ -1491,12 +1496,12 @@ function ia(e, t, n) {
|
|
|
1491
1496
|
meta: n
|
|
1492
1497
|
});
|
|
1493
1498
|
}
|
|
1494
|
-
const
|
|
1495
|
-
function
|
|
1499
|
+
const oa = /* @__PURE__ */ la("function:translate");
|
|
1500
|
+
function la(e) {
|
|
1496
1501
|
return (t) => Ke && Ke.emit(e, t);
|
|
1497
1502
|
}
|
|
1498
1503
|
const q = {
|
|
1499
|
-
INVALID_ARGUMENT:
|
|
1504
|
+
INVALID_ARGUMENT: gs,
|
|
1500
1505
|
// 17
|
|
1501
1506
|
INVALID_DATE_ARGUMENT: 18,
|
|
1502
1507
|
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
@@ -1504,11 +1509,11 @@ const q = {
|
|
|
1504
1509
|
NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
|
|
1505
1510
|
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
1506
1511
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1507
|
-
},
|
|
1508
|
-
function
|
|
1509
|
-
return Ve(e, null, process.env.NODE_ENV !== "production" ? { messages:
|
|
1512
|
+
}, ia = 24;
|
|
1513
|
+
function pe(e) {
|
|
1514
|
+
return Ve(e, null, process.env.NODE_ENV !== "production" ? { messages: ca } : void 0);
|
|
1510
1515
|
}
|
|
1511
|
-
const
|
|
1516
|
+
const ca = {
|
|
1512
1517
|
[q.INVALID_ARGUMENT]: "Invalid arguments",
|
|
1513
1518
|
[q.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
|
|
1514
1519
|
[q.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
|
|
@@ -1517,11 +1522,11 @@ const _a = {
|
|
|
1517
1522
|
[q.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: "cannot support async function",
|
|
1518
1523
|
[q.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
|
|
1519
1524
|
};
|
|
1520
|
-
function
|
|
1521
|
-
return t.locale != null ?
|
|
1525
|
+
function rn(e, t) {
|
|
1526
|
+
return t.locale != null ? In(t.locale) : In(e.locale);
|
|
1522
1527
|
}
|
|
1523
1528
|
let Pt;
|
|
1524
|
-
function
|
|
1529
|
+
function In(e) {
|
|
1525
1530
|
if (L(e))
|
|
1526
1531
|
return e;
|
|
1527
1532
|
if (W(e)) {
|
|
@@ -1529,21 +1534,21 @@ function bn(e) {
|
|
|
1529
1534
|
return Pt;
|
|
1530
1535
|
if (e.constructor.name === "Function") {
|
|
1531
1536
|
const t = e();
|
|
1532
|
-
if (
|
|
1533
|
-
throw
|
|
1537
|
+
if (ms(t))
|
|
1538
|
+
throw pe(q.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1534
1539
|
return Pt = t;
|
|
1535
1540
|
} else
|
|
1536
|
-
throw
|
|
1541
|
+
throw pe(q.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
1537
1542
|
} else
|
|
1538
|
-
throw
|
|
1543
|
+
throw pe(q.NOT_SUPPORT_LOCALE_TYPE);
|
|
1539
1544
|
}
|
|
1540
|
-
function
|
|
1545
|
+
function ua(e, t, n) {
|
|
1541
1546
|
return [.../* @__PURE__ */ new Set([
|
|
1542
1547
|
n,
|
|
1543
1548
|
...H(t) ? t : M(t) ? Object.keys(t) : L(t) ? [t] : [n]
|
|
1544
1549
|
])];
|
|
1545
1550
|
}
|
|
1546
|
-
function
|
|
1551
|
+
function _r(e, t, n) {
|
|
1547
1552
|
const r = L(n) ? n : je, s = e;
|
|
1548
1553
|
s.__localeChainCache || (s.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1549
1554
|
let a = s.__localeChainCache.get(r);
|
|
@@ -1551,30 +1556,30 @@ function cr(e, t, n) {
|
|
|
1551
1556
|
a = [];
|
|
1552
1557
|
let o = [n];
|
|
1553
1558
|
for (; H(o); )
|
|
1554
|
-
o =
|
|
1559
|
+
o = Ln(a, o, t);
|
|
1555
1560
|
const i = H(t) || !R(t) ? t : t.default ? t.default : null;
|
|
1556
|
-
o = L(i) ? [i] : i, H(o) &&
|
|
1561
|
+
o = L(i) ? [i] : i, H(o) && Ln(a, o, !1), s.__localeChainCache.set(r, a);
|
|
1557
1562
|
}
|
|
1558
1563
|
return a;
|
|
1559
1564
|
}
|
|
1560
|
-
function
|
|
1565
|
+
function Ln(e, t, n) {
|
|
1561
1566
|
let r = !0;
|
|
1562
1567
|
for (let s = 0; s < t.length && F(r); s++) {
|
|
1563
1568
|
const a = t[s];
|
|
1564
|
-
L(a) && (r =
|
|
1569
|
+
L(a) && (r = fa(e, t[s], n));
|
|
1565
1570
|
}
|
|
1566
1571
|
return r;
|
|
1567
1572
|
}
|
|
1568
|
-
function
|
|
1573
|
+
function fa(e, t, n) {
|
|
1569
1574
|
let r;
|
|
1570
1575
|
const s = t.split("-");
|
|
1571
1576
|
do {
|
|
1572
1577
|
const a = s.join("-");
|
|
1573
|
-
r =
|
|
1578
|
+
r = _a(e, a, n), s.splice(-1, 1);
|
|
1574
1579
|
} while (s.length && r === !0);
|
|
1575
1580
|
return r;
|
|
1576
1581
|
}
|
|
1577
|
-
function
|
|
1582
|
+
function _a(e, t, n) {
|
|
1578
1583
|
let r = !1;
|
|
1579
1584
|
if (!e.includes(t) && (r = !0, t)) {
|
|
1580
1585
|
r = t[t.length - 1] !== "!";
|
|
@@ -1583,8 +1588,8 @@ function Ea(e, t, n) {
|
|
|
1583
1588
|
}
|
|
1584
1589
|
return r;
|
|
1585
1590
|
}
|
|
1586
|
-
const
|
|
1587
|
-
|
|
1591
|
+
const be = [];
|
|
1592
|
+
be[
|
|
1588
1593
|
0
|
|
1589
1594
|
/* States.BEFORE_PATH */
|
|
1590
1595
|
] = {
|
|
@@ -1606,7 +1611,7 @@ Te[
|
|
|
1606
1611
|
/* States.AFTER_PATH */
|
|
1607
1612
|
]
|
|
1608
1613
|
};
|
|
1609
|
-
|
|
1614
|
+
be[
|
|
1610
1615
|
1
|
|
1611
1616
|
/* States.IN_PATH */
|
|
1612
1617
|
] = {
|
|
@@ -1627,7 +1632,7 @@ Te[
|
|
|
1627
1632
|
/* States.AFTER_PATH */
|
|
1628
1633
|
]
|
|
1629
1634
|
};
|
|
1630
|
-
|
|
1635
|
+
be[
|
|
1631
1636
|
2
|
|
1632
1637
|
/* States.BEFORE_IDENT */
|
|
1633
1638
|
] = {
|
|
@@ -1646,7 +1651,7 @@ Te[
|
|
|
1646
1651
|
/* Actions.APPEND */
|
|
1647
1652
|
]
|
|
1648
1653
|
};
|
|
1649
|
-
|
|
1654
|
+
be[
|
|
1650
1655
|
3
|
|
1651
1656
|
/* States.IN_IDENT */
|
|
1652
1657
|
] = {
|
|
@@ -1681,7 +1686,7 @@ Te[
|
|
|
1681
1686
|
/* Actions.PUSH */
|
|
1682
1687
|
]
|
|
1683
1688
|
};
|
|
1684
|
-
|
|
1689
|
+
be[
|
|
1685
1690
|
4
|
|
1686
1691
|
/* States.IN_SUB_PATH */
|
|
1687
1692
|
] = {
|
|
@@ -1712,7 +1717,7 @@ Te[
|
|
|
1712
1717
|
/* Actions.APPEND */
|
|
1713
1718
|
]
|
|
1714
1719
|
};
|
|
1715
|
-
|
|
1720
|
+
be[
|
|
1716
1721
|
5
|
|
1717
1722
|
/* States.IN_SINGLE_QUOTE */
|
|
1718
1723
|
] = {
|
|
@@ -1728,7 +1733,7 @@ Te[
|
|
|
1728
1733
|
/* Actions.APPEND */
|
|
1729
1734
|
]
|
|
1730
1735
|
};
|
|
1731
|
-
|
|
1736
|
+
be[
|
|
1732
1737
|
6
|
|
1733
1738
|
/* States.IN_DOUBLE_QUOTE */
|
|
1734
1739
|
] = {
|
|
@@ -1744,15 +1749,15 @@ Te[
|
|
|
1744
1749
|
/* Actions.APPEND */
|
|
1745
1750
|
]
|
|
1746
1751
|
};
|
|
1747
|
-
const
|
|
1748
|
-
function
|
|
1749
|
-
return
|
|
1752
|
+
const ma = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1753
|
+
function da(e) {
|
|
1754
|
+
return ma.test(e);
|
|
1750
1755
|
}
|
|
1751
|
-
function
|
|
1756
|
+
function Ea(e) {
|
|
1752
1757
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
1753
1758
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1754
1759
|
}
|
|
1755
|
-
function
|
|
1760
|
+
function pa(e) {
|
|
1756
1761
|
if (e == null)
|
|
1757
1762
|
return "o";
|
|
1758
1763
|
switch (e.charCodeAt(0)) {
|
|
@@ -1789,11 +1794,11 @@ function Ta(e) {
|
|
|
1789
1794
|
}
|
|
1790
1795
|
return "i";
|
|
1791
1796
|
}
|
|
1792
|
-
function
|
|
1797
|
+
function ga(e) {
|
|
1793
1798
|
const t = e.trim();
|
|
1794
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 :
|
|
1799
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : da(t) ? Ea(t) : "*" + t;
|
|
1795
1800
|
}
|
|
1796
|
-
function
|
|
1801
|
+
function Na(e) {
|
|
1797
1802
|
const t = [];
|
|
1798
1803
|
let n = -1, r = 0, s = 0, a, o, i, u, d, I, b;
|
|
1799
1804
|
const N = [];
|
|
@@ -1825,7 +1830,7 @@ function ha(e) {
|
|
|
1825
1830
|
/* Actions.APPEND */
|
|
1826
1831
|
]();
|
|
1827
1832
|
else {
|
|
1828
|
-
if (s = 0, o === void 0 || (o =
|
|
1833
|
+
if (s = 0, o === void 0 || (o = ga(o), o === !1))
|
|
1829
1834
|
return !1;
|
|
1830
1835
|
N[
|
|
1831
1836
|
1
|
|
@@ -1843,27 +1848,27 @@ function ha(e) {
|
|
|
1843
1848
|
}
|
|
1844
1849
|
for (; r !== null; )
|
|
1845
1850
|
if (n++, a = e[n], !(a === "\\" && A())) {
|
|
1846
|
-
if (u =
|
|
1851
|
+
if (u = pa(a), b = be[r], d = b[u] || b.l || 8, d === 8 || (r = d[0], d[1] !== void 0 && (I = N[d[1]], I && (i = a, I() === !1))))
|
|
1847
1852
|
return;
|
|
1848
1853
|
if (r === 7)
|
|
1849
1854
|
return t;
|
|
1850
1855
|
}
|
|
1851
1856
|
}
|
|
1852
|
-
const
|
|
1853
|
-
function
|
|
1857
|
+
const On = /* @__PURE__ */ new Map();
|
|
1858
|
+
function Ta(e, t) {
|
|
1854
1859
|
return M(e) ? e[t] : null;
|
|
1855
1860
|
}
|
|
1856
|
-
function
|
|
1861
|
+
function ba(e, t) {
|
|
1857
1862
|
if (!M(e))
|
|
1858
1863
|
return null;
|
|
1859
|
-
let n =
|
|
1860
|
-
if (n || (n =
|
|
1864
|
+
let n = On.get(t);
|
|
1865
|
+
if (n || (n = Na(t), n && On.set(t, n)), !n)
|
|
1861
1866
|
return null;
|
|
1862
1867
|
const r = n.length;
|
|
1863
1868
|
let s = e, a = 0;
|
|
1864
1869
|
for (; a < r; ) {
|
|
1865
1870
|
const o = n[a];
|
|
1866
|
-
if (
|
|
1871
|
+
if (fr.includes(o) && se(s))
|
|
1867
1872
|
return null;
|
|
1868
1873
|
const i = s[o];
|
|
1869
1874
|
if (i === void 0 || W(s))
|
|
@@ -1880,7 +1885,7 @@ const Z = {
|
|
|
1880
1885
|
CANNOT_FORMAT_DATE: 5,
|
|
1881
1886
|
FALLBACK_TO_DATE_FORMAT: 6,
|
|
1882
1887
|
EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7
|
|
1883
|
-
},
|
|
1888
|
+
}, ha = 8, Ia = {
|
|
1884
1889
|
[Z.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
|
|
1885
1890
|
[Z.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
|
|
1886
1891
|
[Z.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
|
|
@@ -1890,45 +1895,45 @@ const Z = {
|
|
|
1890
1895
|
[Z.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]: "This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."
|
|
1891
1896
|
};
|
|
1892
1897
|
function Se(e, ...t) {
|
|
1893
|
-
return ct(
|
|
1898
|
+
return ct(Ia[e], ...t);
|
|
1894
1899
|
}
|
|
1895
|
-
const
|
|
1896
|
-
function
|
|
1900
|
+
const La = "11.2.8", ft = -1, je = "en-US", st = "", vn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1901
|
+
function Oa() {
|
|
1897
1902
|
return {
|
|
1898
1903
|
upper: (e, t) => t === "text" && L(e) ? e.toUpperCase() : t === "vnode" && M(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1899
1904
|
lower: (e, t) => t === "text" && L(e) ? e.toLowerCase() : t === "vnode" && M(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1900
|
-
capitalize: (e, t) => t === "text" && L(e) ?
|
|
1905
|
+
capitalize: (e, t) => t === "text" && L(e) ? vn(e) : t === "vnode" && M(e) && "__v_isVNode" in e ? vn(e.children) : e
|
|
1901
1906
|
};
|
|
1902
1907
|
}
|
|
1903
|
-
let
|
|
1904
|
-
function
|
|
1905
|
-
ur = e;
|
|
1906
|
-
}
|
|
1907
|
-
let fr;
|
|
1908
|
-
function ya(e) {
|
|
1909
|
-
fr = e;
|
|
1910
|
-
}
|
|
1911
|
-
let _r;
|
|
1912
|
-
function Pa(e) {
|
|
1913
|
-
_r = e;
|
|
1914
|
-
}
|
|
1915
|
-
let mr = null;
|
|
1916
|
-
const Da = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
1908
|
+
let mr;
|
|
1909
|
+
function va(e) {
|
|
1917
1910
|
mr = e;
|
|
1918
|
-
}
|
|
1919
|
-
let dr
|
|
1920
|
-
|
|
1911
|
+
}
|
|
1912
|
+
let dr;
|
|
1913
|
+
function Ca(e) {
|
|
1921
1914
|
dr = e;
|
|
1922
|
-
}
|
|
1923
|
-
let
|
|
1924
|
-
function
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1915
|
+
}
|
|
1916
|
+
let Er;
|
|
1917
|
+
function Aa(e) {
|
|
1918
|
+
Er = e;
|
|
1919
|
+
}
|
|
1920
|
+
let pr = null;
|
|
1921
|
+
const Sa = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
1922
|
+
pr = e;
|
|
1923
|
+
}, ya = /* @__NO_SIDE_EFFECTS__ */ () => pr;
|
|
1924
|
+
let gr = null;
|
|
1925
|
+
const Cn = (e) => {
|
|
1926
|
+
gr = e;
|
|
1927
|
+
}, Pa = () => gr;
|
|
1928
|
+
let An = 0;
|
|
1929
|
+
function Da(e = {}) {
|
|
1930
|
+
const t = W(e.onWarn) ? e.onWarn : fe, n = L(e.version) ? e.version : La, r = L(e.locale) || W(e.locale) ? e.locale : je, s = W(r) ? je : r, a = H(e.fallbackLocale) || R(e.fallbackLocale) || L(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s, o = R(e.messages) ? e.messages : Dt(s), i = R(e.datetimeFormats) ? e.datetimeFormats : Dt(s), u = R(e.numberFormats) ? e.numberFormats : Dt(s), d = J($(), e.modifiers, Oa()), I = e.pluralRules || $(), b = W(e.missing) ? e.missing : null, N = F(e.missingWarn) || Fe(e.missingWarn) ? e.missingWarn : !0, A = F(e.fallbackWarn) || Fe(e.fallbackWarn) ? e.fallbackWarn : !0, D = !!e.fallbackFormat, C = !!e.unresolving, S = W(e.postTranslation) ? e.postTranslation : null, f = R(e.processor) ? e.processor : null, m = F(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, h = !!e.escapeParameter, E = W(e.messageCompiler) ? e.messageCompiler : mr;
|
|
1931
|
+
process.env.NODE_ENV !== "production" && W(e.messageCompiler) && qt(Se(Z.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
1932
|
+
const O = W(e.messageResolver) ? e.messageResolver : dr || Ta, v = W(e.localeFallbacker) ? e.localeFallbacker : Er || ua, p = M(e.fallbackContext) ? e.fallbackContext : void 0, k = e, w = M(k.__datetimeFormatters) ? k.__datetimeFormatters : /* @__PURE__ */ new Map(), X = M(k.__numberFormatters) ? k.__numberFormatters : /* @__PURE__ */ new Map(), ae = M(k.__meta) ? k.__meta : {};
|
|
1933
|
+
An++;
|
|
1929
1934
|
const Y = {
|
|
1930
1935
|
version: n,
|
|
1931
|
-
cid:
|
|
1936
|
+
cid: An,
|
|
1932
1937
|
locale: r,
|
|
1933
1938
|
fallbackLocale: a,
|
|
1934
1939
|
messages: o,
|
|
@@ -1950,16 +1955,16 @@ function Ma(e = {}) {
|
|
|
1950
1955
|
onWarn: t,
|
|
1951
1956
|
__meta: ae
|
|
1952
1957
|
};
|
|
1953
|
-
return Y.datetimeFormats = i, Y.numberFormats = u, Y.__datetimeFormatters = w, Y.__numberFormatters = X, process.env.NODE_ENV !== "production" && (Y.__v_emitter = k.__v_emitter != null ? k.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) &&
|
|
1958
|
+
return Y.datetimeFormats = i, Y.numberFormats = u, Y.__datetimeFormatters = w, Y.__numberFormatters = X, process.env.NODE_ENV !== "production" && (Y.__v_emitter = k.__v_emitter != null ? k.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && aa(Y, n, ae), Y;
|
|
1954
1959
|
}
|
|
1955
1960
|
const Dt = (e) => ({ [e]: $() });
|
|
1956
1961
|
function _t(e, t) {
|
|
1957
1962
|
return e instanceof RegExp ? e.test(t) : e;
|
|
1958
1963
|
}
|
|
1959
|
-
function
|
|
1964
|
+
function Nr(e, t) {
|
|
1960
1965
|
return e instanceof RegExp ? e.test(t) : e;
|
|
1961
1966
|
}
|
|
1962
|
-
function
|
|
1967
|
+
function sn(e, t, n, r, s) {
|
|
1963
1968
|
const { missing: a, onWarn: o } = e;
|
|
1964
1969
|
if (process.env.NODE_ENV !== "production") {
|
|
1965
1970
|
const i = e.__v_emitter;
|
|
@@ -1974,33 +1979,33 @@ function nn(e, t, n, r, s) {
|
|
|
1974
1979
|
const i = a(e, n, t, s);
|
|
1975
1980
|
return L(i) ? i : t;
|
|
1976
1981
|
} else
|
|
1977
|
-
return process.env.NODE_ENV !== "production" &&
|
|
1982
|
+
return process.env.NODE_ENV !== "production" && Nr(r, t) && o(Se(Z.NOT_FOUND_KEY, { key: t, locale: n })), t;
|
|
1978
1983
|
}
|
|
1979
1984
|
function Ye(e, t, n) {
|
|
1980
1985
|
const r = e;
|
|
1981
1986
|
r.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
1982
1987
|
}
|
|
1983
|
-
function
|
|
1988
|
+
function Tr(e, t) {
|
|
1984
1989
|
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
1985
1990
|
}
|
|
1986
|
-
function
|
|
1991
|
+
function ka(e, t) {
|
|
1987
1992
|
const n = t.indexOf(e);
|
|
1988
1993
|
if (n === -1)
|
|
1989
1994
|
return !1;
|
|
1990
1995
|
for (let r = n + 1; r < t.length; r++)
|
|
1991
|
-
if (
|
|
1996
|
+
if (Tr(e, t[r]))
|
|
1992
1997
|
return !0;
|
|
1993
1998
|
return !1;
|
|
1994
1999
|
}
|
|
1995
|
-
const
|
|
1996
|
-
dateTimeFormat:
|
|
1997
|
-
numberFormat:
|
|
2000
|
+
const Sn = typeof Intl < "u", br = {
|
|
2001
|
+
dateTimeFormat: Sn && typeof Intl.DateTimeFormat < "u",
|
|
2002
|
+
numberFormat: Sn && typeof Intl.NumberFormat < "u"
|
|
1998
2003
|
};
|
|
1999
|
-
function
|
|
2004
|
+
function yn(e, ...t) {
|
|
2000
2005
|
const { datetimeFormats: n, unresolving: r, fallbackLocale: s, onWarn: a, localeFallbacker: o } = e, { __datetimeFormatters: i } = e;
|
|
2001
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
2006
|
+
if (process.env.NODE_ENV !== "production" && !br.dateTimeFormat)
|
|
2002
2007
|
return a(Se(Z.CANNOT_FORMAT_DATE)), st;
|
|
2003
|
-
const [u, d, I, b] = Ft(...t), N = F(I.missingWarn) ? I.missingWarn : e.missingWarn, A = F(I.fallbackWarn) ? I.fallbackWarn : e.fallbackWarn, D = !!I.part, C =
|
|
2008
|
+
const [u, d, I, b] = Ft(...t), N = F(I.missingWarn) ? I.missingWarn : e.missingWarn, A = F(I.fallbackWarn) ? I.fallbackWarn : e.fallbackWarn, D = !!I.part, C = rn(e, I), S = o(
|
|
2004
2009
|
e,
|
|
2005
2010
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2006
2011
|
s,
|
|
@@ -2026,7 +2031,7 @@ function An(e, ...t) {
|
|
|
2026
2031
|
}
|
|
2027
2032
|
if (f = n[m] || {}, h = f[u], R(h))
|
|
2028
2033
|
break;
|
|
2029
|
-
|
|
2034
|
+
sn(e, u, m, N, v), E = O;
|
|
2030
2035
|
}
|
|
2031
2036
|
if (!R(h) || !L(m))
|
|
2032
2037
|
return r ? ft : u;
|
|
@@ -2035,7 +2040,7 @@ function An(e, ...t) {
|
|
|
2035
2040
|
let k = i.get(p);
|
|
2036
2041
|
return k || (k = new Intl.DateTimeFormat(m, J({}, h, b)), i.set(p, k)), D ? k.formatToParts(d) : k.format(d);
|
|
2037
2042
|
}
|
|
2038
|
-
const
|
|
2043
|
+
const hr = [
|
|
2039
2044
|
"localeMatcher",
|
|
2040
2045
|
"weekday",
|
|
2041
2046
|
"era",
|
|
@@ -2063,38 +2068,38 @@ function Ft(...e) {
|
|
|
2063
2068
|
if (L(t)) {
|
|
2064
2069
|
const u = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
2065
2070
|
if (!u)
|
|
2066
|
-
throw
|
|
2071
|
+
throw pe(q.INVALID_ISO_DATE_ARGUMENT);
|
|
2067
2072
|
const d = u[3] ? u[3].trim().startsWith("T") ? `${u[1].trim()}${u[3].trim()}` : `${u[1].trim()}T${u[3].trim()}` : u[1].trim();
|
|
2068
2073
|
i = new Date(d);
|
|
2069
2074
|
try {
|
|
2070
2075
|
i.toISOString();
|
|
2071
2076
|
} catch {
|
|
2072
|
-
throw
|
|
2077
|
+
throw pe(q.INVALID_ISO_DATE_ARGUMENT);
|
|
2073
2078
|
}
|
|
2074
|
-
} else if (
|
|
2079
|
+
} else if (cs(t)) {
|
|
2075
2080
|
if (isNaN(t.getTime()))
|
|
2076
|
-
throw
|
|
2081
|
+
throw pe(q.INVALID_DATE_ARGUMENT);
|
|
2077
2082
|
i = t;
|
|
2078
2083
|
} else if (j(t))
|
|
2079
2084
|
i = t;
|
|
2080
2085
|
else
|
|
2081
|
-
throw
|
|
2086
|
+
throw pe(q.INVALID_ARGUMENT);
|
|
2082
2087
|
return L(n) ? a.key = n : R(n) && Object.keys(n).forEach((u) => {
|
|
2083
|
-
|
|
2088
|
+
hr.includes(u) ? o[u] = n[u] : a[u] = n[u];
|
|
2084
2089
|
}), L(r) ? a.locale = r : R(r) && (o = r), R(s) && (o = s), [a.key || "", i, a, o];
|
|
2085
2090
|
}
|
|
2086
|
-
function
|
|
2091
|
+
function Pn(e, t, n) {
|
|
2087
2092
|
const r = e;
|
|
2088
2093
|
for (const s in n) {
|
|
2089
2094
|
const a = `${t}__${s}`;
|
|
2090
2095
|
r.__datetimeFormatters.has(a) && r.__datetimeFormatters.delete(a);
|
|
2091
2096
|
}
|
|
2092
2097
|
}
|
|
2093
|
-
function
|
|
2098
|
+
function Dn(e, ...t) {
|
|
2094
2099
|
const { numberFormats: n, unresolving: r, fallbackLocale: s, onWarn: a, localeFallbacker: o } = e, { __numberFormatters: i } = e;
|
|
2095
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
2100
|
+
if (process.env.NODE_ENV !== "production" && !br.numberFormat)
|
|
2096
2101
|
return a(Se(Z.CANNOT_FORMAT_NUMBER)), st;
|
|
2097
|
-
const [u, d, I, b] = Ut(...t), N = F(I.missingWarn) ? I.missingWarn : e.missingWarn, A = F(I.fallbackWarn) ? I.fallbackWarn : e.fallbackWarn, D = !!I.part, C =
|
|
2102
|
+
const [u, d, I, b] = Ut(...t), N = F(I.missingWarn) ? I.missingWarn : e.missingWarn, A = F(I.fallbackWarn) ? I.fallbackWarn : e.fallbackWarn, D = !!I.part, C = rn(e, I), S = o(
|
|
2098
2103
|
e,
|
|
2099
2104
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2100
2105
|
s,
|
|
@@ -2120,7 +2125,7 @@ function yn(e, ...t) {
|
|
|
2120
2125
|
}
|
|
2121
2126
|
if (f = n[m] || {}, h = f[u], R(h))
|
|
2122
2127
|
break;
|
|
2123
|
-
|
|
2128
|
+
sn(e, u, m, N, v), E = O;
|
|
2124
2129
|
}
|
|
2125
2130
|
if (!R(h) || !L(m))
|
|
2126
2131
|
return r ? ft : u;
|
|
@@ -2129,7 +2134,7 @@ function yn(e, ...t) {
|
|
|
2129
2134
|
let k = i.get(p);
|
|
2130
2135
|
return k || (k = new Intl.NumberFormat(m, J({}, h, b)), i.set(p, k)), D ? k.formatToParts(d) : k.format(d);
|
|
2131
2136
|
}
|
|
2132
|
-
const
|
|
2137
|
+
const Ir = [
|
|
2133
2138
|
"localeMatcher",
|
|
2134
2139
|
"style",
|
|
2135
2140
|
"currency",
|
|
@@ -2155,39 +2160,39 @@ function Ut(...e) {
|
|
|
2155
2160
|
const [t, n, r, s] = e, a = $();
|
|
2156
2161
|
let o = $();
|
|
2157
2162
|
if (!j(t))
|
|
2158
|
-
throw
|
|
2163
|
+
throw pe(q.INVALID_ARGUMENT);
|
|
2159
2164
|
const i = t;
|
|
2160
2165
|
return L(n) ? a.key = n : R(n) && Object.keys(n).forEach((u) => {
|
|
2161
|
-
|
|
2166
|
+
Ir.includes(u) ? o[u] = n[u] : a[u] = n[u];
|
|
2162
2167
|
}), L(r) ? a.locale = r : R(r) && (o = r), R(s) && (o = s), [a.key || "", i, a, o];
|
|
2163
2168
|
}
|
|
2164
|
-
function
|
|
2169
|
+
function kn(e, t, n) {
|
|
2165
2170
|
const r = e;
|
|
2166
2171
|
for (const s in n) {
|
|
2167
2172
|
const a = `${t}__${s}`;
|
|
2168
2173
|
r.__numberFormatters.has(a) && r.__numberFormatters.delete(a);
|
|
2169
2174
|
}
|
|
2170
2175
|
}
|
|
2171
|
-
const
|
|
2172
|
-
function
|
|
2176
|
+
const Ra = (e) => e, Ma = (e) => "", Fa = "text", Ua = (e) => e.length === 0 ? "" : zt(e), wa = ds;
|
|
2177
|
+
function Rn(e, t) {
|
|
2173
2178
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
2174
2179
|
}
|
|
2175
|
-
function
|
|
2180
|
+
function Va(e) {
|
|
2176
2181
|
const t = j(e.pluralIndex) ? e.pluralIndex : -1;
|
|
2177
2182
|
return e.named && (j(e.named.count) || j(e.named.n)) ? j(e.named.count) ? e.named.count : j(e.named.n) ? e.named.n : t : t;
|
|
2178
2183
|
}
|
|
2179
|
-
function
|
|
2184
|
+
function $a(e, t) {
|
|
2180
2185
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
2181
2186
|
}
|
|
2182
|
-
function
|
|
2183
|
-
const t = e.locale, n =
|
|
2184
|
-
j(e.pluralIndex) &&
|
|
2187
|
+
function Wa(e = {}) {
|
|
2188
|
+
const t = e.locale, n = Va(e), r = M(e.pluralRules) && L(t) && W(e.pluralRules[t]) ? e.pluralRules[t] : Rn, s = M(e.pluralRules) && L(t) && W(e.pluralRules[t]) ? Rn : void 0, a = (f) => f[r(n, f.length, s)], o = e.list || [], i = (f) => o[f], u = e.named || $();
|
|
2189
|
+
j(e.pluralIndex) && $a(n, u);
|
|
2185
2190
|
const d = (f) => u[f];
|
|
2186
2191
|
function I(f, m) {
|
|
2187
2192
|
const h = W(e.messages) ? e.messages(f, !!m) : M(e.messages) ? e.messages[f] : !1;
|
|
2188
|
-
return h || (e.parent ? e.parent.message(f) :
|
|
2193
|
+
return h || (e.parent ? e.parent.message(f) : Ma);
|
|
2189
2194
|
}
|
|
2190
|
-
const b = (f) => e.modifiers ? e.modifiers[f] :
|
|
2195
|
+
const b = (f) => e.modifiers ? e.modifiers[f] : Ra, N = R(e.processor) && W(e.processor.normalize) ? e.processor.normalize : Ua, A = R(e.processor) && W(e.processor.interpolate) ? e.processor.interpolate : wa, D = R(e.processor) && L(e.processor.type) ? e.processor.type : Fa, S = {
|
|
2191
2196
|
list: i,
|
|
2192
2197
|
named: d,
|
|
2193
2198
|
plural: a,
|
|
@@ -2209,28 +2214,28 @@ function Ha(e = {}) {
|
|
|
2209
2214
|
};
|
|
2210
2215
|
return S;
|
|
2211
2216
|
}
|
|
2212
|
-
const
|
|
2213
|
-
function
|
|
2214
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: s, messageCompiler: a, fallbackLocale: o, messages: i } = e, [u, d] = wt(...t), I = F(d.missingWarn) ? d.missingWarn : e.missingWarn, b = F(d.fallbackWarn) ? d.fallbackWarn : e.fallbackWarn, N = F(d.escapeParameter) ? d.escapeParameter : e.escapeParameter, A = !!d.resolvedMessage, D = L(d.default) || F(d.default) ? F(d.default) ? a ? u : () => u : d.default : n ? a ? u : () => u : null, C = n || D != null && (L(D) || W(D)), S =
|
|
2215
|
-
N &&
|
|
2217
|
+
const Mn = () => "", te = (e) => W(e);
|
|
2218
|
+
function Fn(e, ...t) {
|
|
2219
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: s, messageCompiler: a, fallbackLocale: o, messages: i } = e, [u, d] = wt(...t), I = F(d.missingWarn) ? d.missingWarn : e.missingWarn, b = F(d.fallbackWarn) ? d.fallbackWarn : e.fallbackWarn, N = F(d.escapeParameter) ? d.escapeParameter : e.escapeParameter, A = !!d.resolvedMessage, D = L(d.default) || F(d.default) ? F(d.default) ? a ? u : () => u : d.default : n ? a ? u : () => u : null, C = n || D != null && (L(D) || W(D)), S = rn(e, d);
|
|
2220
|
+
N && Ga(d);
|
|
2216
2221
|
let [f, m, h] = A ? [
|
|
2217
2222
|
u,
|
|
2218
2223
|
S,
|
|
2219
2224
|
i[S] || $()
|
|
2220
|
-
] :
|
|
2225
|
+
] : Lr(e, u, S, o, b, I), E = f, O = u;
|
|
2221
2226
|
if (!A && !(L(E) || se(E) || te(E)) && C && (E = D, O = E), !A && (!(L(E) || se(E) || te(E)) || !L(m)))
|
|
2222
2227
|
return s ? ft : u;
|
|
2223
2228
|
if (process.env.NODE_ENV !== "production" && L(E) && e.messageCompiler == null)
|
|
2224
|
-
return
|
|
2229
|
+
return fe(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${u}'.`), u;
|
|
2225
2230
|
let v = !1;
|
|
2226
2231
|
const p = () => {
|
|
2227
2232
|
v = !0;
|
|
2228
|
-
}, k = te(E) ? E :
|
|
2233
|
+
}, k = te(E) ? E : Or(e, u, m, E, O, p);
|
|
2229
2234
|
if (v)
|
|
2230
2235
|
return E;
|
|
2231
|
-
const w =
|
|
2236
|
+
const w = Ba(e, m, h, d), X = Wa(w), ae = xa(e, k, X);
|
|
2232
2237
|
let Y = r ? r(ae, u) : ae;
|
|
2233
|
-
if (N && L(Y) && (Y =
|
|
2238
|
+
if (N && L(Y) && (Y = fs(Y)), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
2234
2239
|
const Pe = {
|
|
2235
2240
|
timestamp: Date.now(),
|
|
2236
2241
|
key: L(u) ? u : te(E) ? E.key : "",
|
|
@@ -2238,21 +2243,21 @@ function Rn(e, ...t) {
|
|
|
2238
2243
|
format: L(E) ? E : te(E) ? E.source : "",
|
|
2239
2244
|
message: Y
|
|
2240
2245
|
};
|
|
2241
|
-
Pe.meta = J({}, e.__meta, /* @__PURE__ */
|
|
2246
|
+
Pe.meta = J({}, e.__meta, /* @__PURE__ */ ya() || {}), oa(Pe);
|
|
2242
2247
|
}
|
|
2243
2248
|
return Y;
|
|
2244
2249
|
}
|
|
2245
|
-
function
|
|
2246
|
-
H(e.list) ? e.list = e.list.map((t) => L(t) ?
|
|
2247
|
-
L(e.named[t]) && (e.named[t] =
|
|
2250
|
+
function Ga(e) {
|
|
2251
|
+
H(e.list) ? e.list = e.list.map((t) => L(t) ? En(t) : t) : M(e.named) && Object.keys(e.named).forEach((t) => {
|
|
2252
|
+
L(e.named[t]) && (e.named[t] = En(e.named[t]));
|
|
2248
2253
|
});
|
|
2249
2254
|
}
|
|
2250
|
-
function
|
|
2255
|
+
function Lr(e, t, n, r, s, a) {
|
|
2251
2256
|
const { messages: o, onWarn: i, messageResolver: u, localeFallbacker: d } = e, I = d(e, r, n);
|
|
2252
2257
|
let b = $(), N, A = null, D = n, C = null;
|
|
2253
2258
|
const S = "translate";
|
|
2254
2259
|
for (let f = 0; f < I.length; f++) {
|
|
2255
|
-
if (N = C = I[f], process.env.NODE_ENV !== "production" && n !== N && !
|
|
2260
|
+
if (N = C = I[f], process.env.NODE_ENV !== "production" && n !== N && !Tr(n, N) && _t(s, t) && i(Se(Z.FALLBACK_TO_TRANSLATE, {
|
|
2256
2261
|
key: t,
|
|
2257
2262
|
target: N
|
|
2258
2263
|
})), process.env.NODE_ENV !== "production" && n !== N) {
|
|
@@ -2279,8 +2284,8 @@ function br(e, t, n, r, s, a) {
|
|
|
2279
2284
|
}
|
|
2280
2285
|
if (L(A) || se(A) || te(A))
|
|
2281
2286
|
break;
|
|
2282
|
-
if (!
|
|
2283
|
-
const O =
|
|
2287
|
+
if (!ka(N, I)) {
|
|
2288
|
+
const O = sn(
|
|
2284
2289
|
e,
|
|
2285
2290
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2286
2291
|
t,
|
|
@@ -2294,7 +2299,7 @@ function br(e, t, n, r, s, a) {
|
|
|
2294
2299
|
}
|
|
2295
2300
|
return [A, N, b];
|
|
2296
2301
|
}
|
|
2297
|
-
function
|
|
2302
|
+
function Or(e, t, n, r, s, a) {
|
|
2298
2303
|
const { messageCompiler: o, warnHtmlMessage: i } = e;
|
|
2299
2304
|
if (te(r)) {
|
|
2300
2305
|
const N = r;
|
|
@@ -2306,7 +2311,7 @@ function hr(e, t, n, r, s, a) {
|
|
|
2306
2311
|
}
|
|
2307
2312
|
let u = null, d, I;
|
|
2308
2313
|
process.env.NODE_ENV !== "production" && le && (u = window.performance.now(), d = "intlify-message-compilation-start", I = "intlify-message-compilation-end", ee && ee(d));
|
|
2309
|
-
const b = o(r,
|
|
2314
|
+
const b = o(r, Ha(e, n, s, r, i, a));
|
|
2310
2315
|
if (process.env.NODE_ENV !== "production" && le) {
|
|
2311
2316
|
const N = window.performance.now(), A = e.__v_emitter;
|
|
2312
2317
|
A && u && A.emit("message-compilation", {
|
|
@@ -2318,7 +2323,7 @@ function hr(e, t, n, r, s, a) {
|
|
|
2318
2323
|
}
|
|
2319
2324
|
return b.locale = n, b.key = t, b.source = r, b;
|
|
2320
2325
|
}
|
|
2321
|
-
function
|
|
2326
|
+
function xa(e, t, n) {
|
|
2322
2327
|
let r = null, s, a;
|
|
2323
2328
|
process.env.NODE_ENV !== "production" && le && (r = window.performance.now(), s = "intlify-message-evaluation-start", a = "intlify-message-evaluation-end", ee && ee(s));
|
|
2324
2329
|
const o = t(n);
|
|
@@ -2336,18 +2341,18 @@ function Ba(e, t, n) {
|
|
|
2336
2341
|
function wt(...e) {
|
|
2337
2342
|
const [t, n, r] = e, s = $();
|
|
2338
2343
|
if (!L(t) && !j(t) && !te(t) && !se(t))
|
|
2339
|
-
throw
|
|
2344
|
+
throw pe(q.INVALID_ARGUMENT);
|
|
2340
2345
|
const a = j(t) ? String(t) : (te(t), t);
|
|
2341
2346
|
return j(n) ? s.plural = n : L(n) ? s.default = n : R(n) && !ut(n) ? s.named = n : H(n) && (s.list = n), j(r) ? s.plural = r : L(r) ? s.default = r : R(r) && J(s, r), [a, s];
|
|
2342
2347
|
}
|
|
2343
|
-
function
|
|
2348
|
+
function Ha(e, t, n, r, s, a) {
|
|
2344
2349
|
return {
|
|
2345
2350
|
locale: t,
|
|
2346
2351
|
key: n,
|
|
2347
2352
|
warnHtmlMessage: s,
|
|
2348
2353
|
onError: (o) => {
|
|
2349
2354
|
if (a && a(o), process.env.NODE_ENV !== "production") {
|
|
2350
|
-
const i =
|
|
2355
|
+
const i = Ya(r), u = `Message compilation error: ${o.message}`, d = o.location && i && Es(i, o.location.start.offset, o.location.end.offset), I = e.__v_emitter;
|
|
2351
2356
|
I && i && I.emit("compile-error", {
|
|
2352
2357
|
message: i,
|
|
2353
2358
|
error: o.message,
|
|
@@ -2359,16 +2364,16 @@ ${d}` : u);
|
|
|
2359
2364
|
} else
|
|
2360
2365
|
throw o;
|
|
2361
2366
|
},
|
|
2362
|
-
onCacheKey: (o) =>
|
|
2367
|
+
onCacheKey: (o) => ls(t, n, o)
|
|
2363
2368
|
};
|
|
2364
2369
|
}
|
|
2365
|
-
function
|
|
2370
|
+
function Ya(e) {
|
|
2366
2371
|
if (L(e))
|
|
2367
2372
|
return e;
|
|
2368
2373
|
if (e.loc && e.loc.source)
|
|
2369
2374
|
return e.loc.source;
|
|
2370
2375
|
}
|
|
2371
|
-
function
|
|
2376
|
+
function Ba(e, t, n, r) {
|
|
2372
2377
|
const { modifiers: s, pluralRules: a, messageResolver: o, fallbackLocale: i, fallbackWarn: u, missingWarn: d, fallbackContext: I } = e, N = {
|
|
2373
2378
|
locale: t,
|
|
2374
2379
|
modifiers: s,
|
|
@@ -2376,7 +2381,7 @@ function Xa(e, t, n, r) {
|
|
|
2376
2381
|
messages: (A, D) => {
|
|
2377
2382
|
let C = o(n, A);
|
|
2378
2383
|
if (C == null && (I || D)) {
|
|
2379
|
-
const [, , S] =
|
|
2384
|
+
const [, , S] = Lr(
|
|
2380
2385
|
I || e,
|
|
2381
2386
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
2382
2387
|
A,
|
|
@@ -2389,32 +2394,32 @@ function Xa(e, t, n, r) {
|
|
|
2389
2394
|
}
|
|
2390
2395
|
if (L(C) || se(C)) {
|
|
2391
2396
|
let S = !1;
|
|
2392
|
-
const m =
|
|
2397
|
+
const m = Or(e, A, t, C, A, () => {
|
|
2393
2398
|
S = !0;
|
|
2394
2399
|
});
|
|
2395
|
-
return S ?
|
|
2396
|
-
} else return te(C) ? C :
|
|
2400
|
+
return S ? Mn : m;
|
|
2401
|
+
} else return te(C) ? C : Mn;
|
|
2397
2402
|
}
|
|
2398
2403
|
};
|
|
2399
2404
|
return e.processor && (N.processor = e.processor), r.list && (N.list = r.list), r.named && (N.named = r.named), j(r.plural) && (N.pluralIndex = r.plural), N;
|
|
2400
2405
|
}
|
|
2401
|
-
|
|
2402
|
-
function
|
|
2403
|
-
return
|
|
2406
|
+
Bs();
|
|
2407
|
+
function Ka() {
|
|
2408
|
+
return vr().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
2404
2409
|
}
|
|
2405
|
-
function
|
|
2410
|
+
function vr() {
|
|
2406
2411
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
2407
2412
|
}
|
|
2408
|
-
const
|
|
2413
|
+
const ja = typeof Proxy == "function", Xa = "devtools-plugin:setup", Ja = "plugin:settings:set";
|
|
2409
2414
|
let ke, Vt;
|
|
2410
|
-
function
|
|
2415
|
+
function Qa() {
|
|
2411
2416
|
var e;
|
|
2412
2417
|
return ke !== void 0 || (typeof window < "u" && window.performance ? (ke = !0, Vt = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (ke = !0, Vt = globalThis.perf_hooks.performance) : ke = !1), ke;
|
|
2413
2418
|
}
|
|
2414
|
-
function
|
|
2415
|
-
return
|
|
2419
|
+
function qa() {
|
|
2420
|
+
return Qa() ? Vt.now() : Date.now();
|
|
2416
2421
|
}
|
|
2417
|
-
class
|
|
2422
|
+
class Za {
|
|
2418
2423
|
constructor(t, n) {
|
|
2419
2424
|
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
|
|
2420
2425
|
const r = {};
|
|
@@ -2442,9 +2447,9 @@ class to {
|
|
|
2442
2447
|
a = o;
|
|
2443
2448
|
},
|
|
2444
2449
|
now() {
|
|
2445
|
-
return
|
|
2450
|
+
return qa();
|
|
2446
2451
|
}
|
|
2447
|
-
}, n && n.on(
|
|
2452
|
+
}, n && n.on(Ja, (o, i) => {
|
|
2448
2453
|
o === this.plugin.id && this.fallbacks.setSettings(i);
|
|
2449
2454
|
}), this.proxiedOn = new Proxy({}, {
|
|
2450
2455
|
get: (o, i) => this.target ? this.target.on[i] : (...u) => {
|
|
@@ -2476,12 +2481,12 @@ class to {
|
|
|
2476
2481
|
n.resolve(await this.target[n.method](...n.args));
|
|
2477
2482
|
}
|
|
2478
2483
|
}
|
|
2479
|
-
function
|
|
2480
|
-
const n = e, r =
|
|
2484
|
+
function za(e, t) {
|
|
2485
|
+
const n = e, r = vr(), s = Ka(), a = ja && n.enableEarlyProxy;
|
|
2481
2486
|
if (s && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a))
|
|
2482
|
-
s.emit(
|
|
2487
|
+
s.emit(Xa, e, t);
|
|
2483
2488
|
else {
|
|
2484
|
-
const o = a ? new
|
|
2489
|
+
const o = a ? new Za(n, s) : null;
|
|
2485
2490
|
(r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
2486
2491
|
pluginDescriptor: n,
|
|
2487
2492
|
setupFn: t,
|
|
@@ -2489,13 +2494,13 @@ function no(e, t) {
|
|
|
2489
2494
|
}), o && t(o.proxiedTarget);
|
|
2490
2495
|
}
|
|
2491
2496
|
}
|
|
2492
|
-
const
|
|
2493
|
-
function
|
|
2494
|
-
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (
|
|
2497
|
+
const eo = "11.2.8";
|
|
2498
|
+
function to() {
|
|
2499
|
+
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (ve().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (ve().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (ve().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (ve().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
2495
2500
|
}
|
|
2496
2501
|
const G = {
|
|
2497
2502
|
// composer module errors
|
|
2498
|
-
UNEXPECTED_RETURN_TYPE:
|
|
2503
|
+
UNEXPECTED_RETURN_TYPE: ia,
|
|
2499
2504
|
// 24
|
|
2500
2505
|
// legacy module errors
|
|
2501
2506
|
INVALID_ARGUMENT: 25,
|
|
@@ -2516,9 +2521,9 @@ const G = {
|
|
|
2516
2521
|
NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
|
|
2517
2522
|
};
|
|
2518
2523
|
function z(e, ...t) {
|
|
2519
|
-
return Ve(e, null, process.env.NODE_ENV !== "production" ? { messages:
|
|
2524
|
+
return Ve(e, null, process.env.NODE_ENV !== "production" ? { messages: no, args: t } : void 0);
|
|
2520
2525
|
}
|
|
2521
|
-
const
|
|
2526
|
+
const no = {
|
|
2522
2527
|
[G.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
|
2523
2528
|
[G.INVALID_ARGUMENT]: "Invalid argument",
|
|
2524
2529
|
[G.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
|
|
@@ -2530,8 +2535,8 @@ const ao = {
|
|
|
2530
2535
|
[G.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
|
|
2531
2536
|
[G.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
|
2532
2537
|
[G.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
|
|
2533
|
-
}, $t = /* @__PURE__ */
|
|
2534
|
-
FALLBACK_TO_ROOT:
|
|
2538
|
+
}, $t = /* @__PURE__ */ me("__translateVNode"), Wt = /* @__PURE__ */ me("__datetimeParts"), Gt = /* @__PURE__ */ me("__numberParts"), ye = /* @__PURE__ */ me("__enableEmitter"), Xe = /* @__PURE__ */ me("__disableEmitter"), Cr = me("__setPluralRules"), Ar = /* @__PURE__ */ me("__injectWithOption"), xt = /* @__PURE__ */ me("__dispose"), ne = {
|
|
2539
|
+
FALLBACK_TO_ROOT: ha,
|
|
2535
2540
|
// 8
|
|
2536
2541
|
NOT_FOUND_PARENT_SCOPE: 9,
|
|
2537
2542
|
IGNORE_OBJ_FLATTEN: 10,
|
|
@@ -2545,7 +2550,7 @@ const ao = {
|
|
|
2545
2550
|
DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE: 12,
|
|
2546
2551
|
// duplicate `useI18n` calling
|
|
2547
2552
|
DUPLICATE_USE_I18N_CALLING: 13
|
|
2548
|
-
},
|
|
2553
|
+
}, ro = {
|
|
2549
2554
|
[ne.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
|
|
2550
2555
|
[ne.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
|
|
2551
2556
|
[ne.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
|
|
@@ -2561,7 +2566,7 @@ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guid
|
|
|
2561
2566
|
[ne.DUPLICATE_USE_I18N_CALLING]: "Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."
|
|
2562
2567
|
};
|
|
2563
2568
|
function we(e, ...t) {
|
|
2564
|
-
return ct(
|
|
2569
|
+
return ct(ro[e], ...t);
|
|
2565
2570
|
}
|
|
2566
2571
|
function Je(e) {
|
|
2567
2572
|
if (!M(e) || se(e))
|
|
@@ -2577,21 +2582,21 @@ function Je(e) {
|
|
|
2577
2582
|
if (n[o] === "__proto__")
|
|
2578
2583
|
throw new Error(`unsafe key: ${n[o]}`);
|
|
2579
2584
|
if (n[o] in s || (s[n[o]] = $()), !M(s[n[o]])) {
|
|
2580
|
-
process.env.NODE_ENV !== "production" &&
|
|
2585
|
+
process.env.NODE_ENV !== "production" && fe(we(ne.IGNORE_OBJ_FLATTEN, {
|
|
2581
2586
|
key: n[o]
|
|
2582
2587
|
})), a = !0;
|
|
2583
2588
|
break;
|
|
2584
2589
|
}
|
|
2585
2590
|
s = s[n[o]];
|
|
2586
2591
|
}
|
|
2587
|
-
if (a || (se(s) ?
|
|
2592
|
+
if (a || (se(s) ? fr.includes(n[r]) || delete e[t] : (s[n[r]] = e[t], delete e[t])), !se(s)) {
|
|
2588
2593
|
const o = s[n[r]];
|
|
2589
2594
|
M(o) && Je(o);
|
|
2590
2595
|
}
|
|
2591
2596
|
}
|
|
2592
2597
|
return e;
|
|
2593
2598
|
}
|
|
2594
|
-
function
|
|
2599
|
+
function an(e, t) {
|
|
2595
2600
|
const { messages: n, __i18n: r, messageResolver: s, flatJson: a } = t, o = R(n) ? n : H(r) ? $() : { [e]: $() };
|
|
2596
2601
|
if (H(r) && r.forEach((i) => {
|
|
2597
2602
|
if ("locale" in i && "resource" in i) {
|
|
@@ -2604,12 +2609,12 @@ function rn(e, t) {
|
|
|
2604
2609
|
oe(o, i) && Je(o[i]);
|
|
2605
2610
|
return o;
|
|
2606
2611
|
}
|
|
2607
|
-
function
|
|
2612
|
+
function Sr(e) {
|
|
2608
2613
|
return e.type;
|
|
2609
2614
|
}
|
|
2610
|
-
function
|
|
2615
|
+
function yr(e, t, n) {
|
|
2611
2616
|
let r = M(t.messages) ? t.messages : $();
|
|
2612
|
-
"__i18nGlobal" in n && (r =
|
|
2617
|
+
"__i18nGlobal" in n && (r = an(e.locale.value, {
|
|
2613
2618
|
messages: r,
|
|
2614
2619
|
__i18n: n.__i18nGlobal
|
|
2615
2620
|
}));
|
|
@@ -2632,25 +2637,25 @@ function Cr(e, t, n) {
|
|
|
2632
2637
|
}
|
|
2633
2638
|
}
|
|
2634
2639
|
}
|
|
2635
|
-
function
|
|
2636
|
-
return
|
|
2640
|
+
function Un(e) {
|
|
2641
|
+
return Zn(xr, null, e, 0);
|
|
2637
2642
|
}
|
|
2638
2643
|
function Me() {
|
|
2639
2644
|
const e = "currentInstance";
|
|
2640
2645
|
return e in St ? St[e] : St.getCurrentInstance();
|
|
2641
2646
|
}
|
|
2642
|
-
const
|
|
2643
|
-
let
|
|
2644
|
-
function
|
|
2647
|
+
const wn = "__INTLIFY_META__", Vn = () => [], so = () => !1;
|
|
2648
|
+
let $n = 0;
|
|
2649
|
+
function Wn(e) {
|
|
2645
2650
|
return ((t, n, r, s) => e(n, r, Me() || void 0, s));
|
|
2646
2651
|
}
|
|
2647
|
-
const
|
|
2652
|
+
const ao = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
2648
2653
|
const e = Me();
|
|
2649
2654
|
let t = null;
|
|
2650
|
-
return e && (t =
|
|
2655
|
+
return e && (t = Sr(e)[wn]) ? { [wn]: t } : null;
|
|
2651
2656
|
};
|
|
2652
|
-
function
|
|
2653
|
-
const { __root: t, __injectWithOption: n } = e, r = t === void 0, s = e.flatJson, a = le ?
|
|
2657
|
+
function on(e = {}) {
|
|
2658
|
+
const { __root: t, __injectWithOption: n } = e, r = t === void 0, s = e.flatJson, a = le ? at : $r;
|
|
2654
2659
|
let o = F(e.inheritLocale) ? e.inheritLocale : !0;
|
|
2655
2660
|
const i = a(
|
|
2656
2661
|
// prettier-ignore
|
|
@@ -2658,14 +2663,14 @@ function sn(e = {}) {
|
|
|
2658
2663
|
), u = a(
|
|
2659
2664
|
// prettier-ignore
|
|
2660
2665
|
t && o ? t.fallbackLocale.value : L(e.fallbackLocale) || H(e.fallbackLocale) || R(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : i.value
|
|
2661
|
-
), d = a(
|
|
2662
|
-
let N = t ? t.missingWarn : F(e.missingWarn) || Fe(e.missingWarn) ? e.missingWarn : !0, A = t ? t.fallbackWarn : F(e.fallbackWarn) || Fe(e.fallbackWarn) ? e.fallbackWarn : !0, D = t ? t.fallbackRoot : F(e.fallbackRoot) ? e.fallbackRoot : !0, C = !!e.fallbackFormat, S = W(e.missing) ? e.missing : null, f = W(e.missing) ?
|
|
2666
|
+
), d = a(an(i.value, e)), I = a(R(e.datetimeFormats) ? e.datetimeFormats : { [i.value]: {} }), b = a(R(e.numberFormats) ? e.numberFormats : { [i.value]: {} });
|
|
2667
|
+
let N = t ? t.missingWarn : F(e.missingWarn) || Fe(e.missingWarn) ? e.missingWarn : !0, A = t ? t.fallbackWarn : F(e.fallbackWarn) || Fe(e.fallbackWarn) ? e.fallbackWarn : !0, D = t ? t.fallbackRoot : F(e.fallbackRoot) ? e.fallbackRoot : !0, C = !!e.fallbackFormat, S = W(e.missing) ? e.missing : null, f = W(e.missing) ? Wn(e.missing) : null, m = W(e.postTranslation) ? e.postTranslation : null, h = t ? t.warnHtmlMessage : F(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, E = !!e.escapeParameter;
|
|
2663
2668
|
const O = t ? t.modifiers : R(e.modifiers) ? e.modifiers : {};
|
|
2664
2669
|
let v = e.pluralRules || t && t.pluralRules, p;
|
|
2665
2670
|
p = (() => {
|
|
2666
|
-
r &&
|
|
2671
|
+
r && Cn(null);
|
|
2667
2672
|
const _ = {
|
|
2668
|
-
version:
|
|
2673
|
+
version: eo,
|
|
2669
2674
|
locale: i.value,
|
|
2670
2675
|
fallbackLocale: u.value,
|
|
2671
2676
|
messages: d.value,
|
|
@@ -2684,8 +2689,8 @@ function sn(e = {}) {
|
|
|
2684
2689
|
__meta: { framework: "vue" }
|
|
2685
2690
|
};
|
|
2686
2691
|
_.datetimeFormats = I.value, _.numberFormats = b.value, _.__datetimeFormatters = R(p) ? p.__datetimeFormatters : void 0, _.__numberFormatters = R(p) ? p.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (_.__v_emitter = R(p) ? p.__v_emitter : void 0);
|
|
2687
|
-
const T =
|
|
2688
|
-
return r &&
|
|
2692
|
+
const T = Da(_);
|
|
2693
|
+
return r && Cn(T), T;
|
|
2689
2694
|
})(), Ye(p, i.value, u.value);
|
|
2690
2695
|
function w() {
|
|
2691
2696
|
return [
|
|
@@ -2717,35 +2722,35 @@ function sn(e = {}) {
|
|
|
2717
2722
|
return S;
|
|
2718
2723
|
}
|
|
2719
2724
|
function gt(_) {
|
|
2720
|
-
_ !== null && (f =
|
|
2725
|
+
_ !== null && (f = Wn(_)), S = _, p.missing = f;
|
|
2721
2726
|
}
|
|
2722
2727
|
function Nt(_, T) {
|
|
2723
2728
|
return _ !== "translate" || !T.resolvedMessage;
|
|
2724
2729
|
}
|
|
2725
|
-
const
|
|
2730
|
+
const de = (_, T, V, K, Ie, ze) => {
|
|
2726
2731
|
w();
|
|
2727
2732
|
let De;
|
|
2728
2733
|
try {
|
|
2729
|
-
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (p.fallbackContext = t ?
|
|
2734
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (p.fallbackContext = t ? Pa() : void 0), De = _(p);
|
|
2730
2735
|
} finally {
|
|
2731
2736
|
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (p.fallbackContext = void 0);
|
|
2732
2737
|
}
|
|
2733
2738
|
if (V !== "translate exists" && // for not `te` (e.g `t`)
|
|
2734
2739
|
j(De) && De === ft || V === "translate exists" && !De) {
|
|
2735
|
-
const [
|
|
2736
|
-
if (process.env.NODE_ENV !== "production" && t && L(
|
|
2737
|
-
key:
|
|
2740
|
+
const [Le, Fr] = T();
|
|
2741
|
+
if (process.env.NODE_ENV !== "production" && t && L(Le) && Nt(V, Fr) && (D && (_t(A, Le) || Nr(N, Le)) && fe(we(ne.FALLBACK_TO_ROOT, {
|
|
2742
|
+
key: Le,
|
|
2738
2743
|
type: V
|
|
2739
2744
|
})), process.env.NODE_ENV !== "production")) {
|
|
2740
|
-
const { __v_emitter:
|
|
2741
|
-
|
|
2745
|
+
const { __v_emitter: _n } = p;
|
|
2746
|
+
_n && D && _n.emit("fallback", {
|
|
2742
2747
|
type: V,
|
|
2743
|
-
key:
|
|
2748
|
+
key: Le,
|
|
2744
2749
|
to: "global",
|
|
2745
|
-
groupId: `${V}:${
|
|
2750
|
+
groupId: `${V}:${Le}`
|
|
2746
2751
|
});
|
|
2747
2752
|
}
|
|
2748
|
-
return t && D ? K(t) :
|
|
2753
|
+
return t && D ? K(t) : Ie(Le);
|
|
2749
2754
|
} else {
|
|
2750
2755
|
if (ze(De))
|
|
2751
2756
|
return De;
|
|
@@ -2753,7 +2758,7 @@ function sn(e = {}) {
|
|
|
2753
2758
|
}
|
|
2754
2759
|
};
|
|
2755
2760
|
function $e(..._) {
|
|
2756
|
-
return
|
|
2761
|
+
return de((T) => Reflect.apply(Fn, null, [T, ..._]), () => wt(..._), "translate", (T) => Reflect.apply(T.t, T, [..._]), (T) => T, (T) => L(T));
|
|
2757
2762
|
}
|
|
2758
2763
|
function Tt(..._) {
|
|
2759
2764
|
const [T, V, K] = _;
|
|
@@ -2762,13 +2767,13 @@ function sn(e = {}) {
|
|
|
2762
2767
|
return $e(T, V, J({ resolvedMessage: !0 }, K || {}));
|
|
2763
2768
|
}
|
|
2764
2769
|
function bt(..._) {
|
|
2765
|
-
return
|
|
2770
|
+
return de((T) => Reflect.apply(yn, null, [T, ..._]), () => Ft(..._), "datetime format", (T) => Reflect.apply(T.d, T, [..._]), () => st, (T) => L(T) || H(T));
|
|
2766
2771
|
}
|
|
2767
2772
|
function ht(..._) {
|
|
2768
|
-
return
|
|
2773
|
+
return de((T) => Reflect.apply(Dn, null, [T, ..._]), () => Ut(..._), "number format", (T) => Reflect.apply(T.n, T, [..._]), () => st, (T) => L(T) || H(T));
|
|
2769
2774
|
}
|
|
2770
2775
|
function It(_) {
|
|
2771
|
-
return _.map((T) => L(T) || j(T) || F(T) ?
|
|
2776
|
+
return _.map((T) => L(T) || j(T) || F(T) ? Un(String(T)) : T);
|
|
2772
2777
|
}
|
|
2773
2778
|
const Lt = {
|
|
2774
2779
|
normalize: It,
|
|
@@ -2776,39 +2781,39 @@ function sn(e = {}) {
|
|
|
2776
2781
|
type: "vnode"
|
|
2777
2782
|
};
|
|
2778
2783
|
function qe(..._) {
|
|
2779
|
-
return
|
|
2784
|
+
return de((T) => {
|
|
2780
2785
|
let V;
|
|
2781
2786
|
const K = T;
|
|
2782
2787
|
try {
|
|
2783
|
-
K.processor = Lt, V = Reflect.apply(
|
|
2788
|
+
K.processor = Lt, V = Reflect.apply(Fn, null, [K, ..._]);
|
|
2784
2789
|
} finally {
|
|
2785
2790
|
K.processor = null;
|
|
2786
2791
|
}
|
|
2787
2792
|
return V;
|
|
2788
|
-
}, () => wt(..._), "translate", (T) => T[$t](..._), (T) => [
|
|
2793
|
+
}, () => wt(..._), "translate", (T) => T[$t](..._), (T) => [Un(T)], (T) => H(T));
|
|
2789
2794
|
}
|
|
2790
2795
|
function Ot(..._) {
|
|
2791
|
-
return
|
|
2796
|
+
return de((T) => Reflect.apply(Dn, null, [T, ..._]), () => Ut(..._), "number format", (T) => T[Gt](..._), Vn, (T) => L(T) || H(T));
|
|
2792
2797
|
}
|
|
2793
2798
|
function Ze(..._) {
|
|
2794
|
-
return
|
|
2799
|
+
return de((T) => Reflect.apply(yn, null, [T, ..._]), () => Ft(..._), "datetime format", (T) => T[Wt](..._), Vn, (T) => L(T) || H(T));
|
|
2795
2800
|
}
|
|
2796
2801
|
function vt(_) {
|
|
2797
2802
|
v = _, p.pluralRules = v;
|
|
2798
2803
|
}
|
|
2799
2804
|
function Ct(_, T) {
|
|
2800
|
-
return
|
|
2805
|
+
return de(() => {
|
|
2801
2806
|
if (!_)
|
|
2802
2807
|
return !1;
|
|
2803
|
-
const V = L(T) ? T : i.value, K =
|
|
2804
|
-
return se(
|
|
2805
|
-
}, () => [_], "translate exists", (V) => Reflect.apply(V.te, V, [_, T]),
|
|
2808
|
+
const V = L(T) ? T : i.value, K = he(V), Ie = p.messageResolver(K, _);
|
|
2809
|
+
return se(Ie) || te(Ie) || L(Ie);
|
|
2810
|
+
}, () => [_], "translate exists", (V) => Reflect.apply(V.te, V, [_, T]), so, (V) => F(V));
|
|
2806
2811
|
}
|
|
2807
2812
|
function We(_) {
|
|
2808
2813
|
let T = null;
|
|
2809
|
-
const V =
|
|
2814
|
+
const V = _r(p, u.value, i.value);
|
|
2810
2815
|
for (let K = 0; K < V.length; K++) {
|
|
2811
|
-
const
|
|
2816
|
+
const Ie = d.value[V[K]] || {}, ze = p.messageResolver(Ie, _);
|
|
2812
2817
|
if (ze != null) {
|
|
2813
2818
|
T = ze;
|
|
2814
2819
|
break;
|
|
@@ -2820,7 +2825,7 @@ function sn(e = {}) {
|
|
|
2820
2825
|
const T = We(_);
|
|
2821
2826
|
return T ?? (t ? t.tm(_) || {} : {});
|
|
2822
2827
|
}
|
|
2823
|
-
function
|
|
2828
|
+
function he(_) {
|
|
2824
2829
|
return d.value[_] || {};
|
|
2825
2830
|
}
|
|
2826
2831
|
function xe(_, T) {
|
|
@@ -2844,27 +2849,27 @@ function sn(e = {}) {
|
|
|
2844
2849
|
return I.value[_] || {};
|
|
2845
2850
|
}
|
|
2846
2851
|
function c(_, T) {
|
|
2847
|
-
I.value[_] = T, p.datetimeFormats = I.value,
|
|
2852
|
+
I.value[_] = T, p.datetimeFormats = I.value, Pn(p, _, T);
|
|
2848
2853
|
}
|
|
2849
2854
|
function g(_, T) {
|
|
2850
|
-
I.value[_] = J(I.value[_] || {}, T), p.datetimeFormats = I.value,
|
|
2855
|
+
I.value[_] = J(I.value[_] || {}, T), p.datetimeFormats = I.value, Pn(p, _, T);
|
|
2851
2856
|
}
|
|
2852
2857
|
function y(_) {
|
|
2853
2858
|
return b.value[_] || {};
|
|
2854
2859
|
}
|
|
2855
2860
|
function x(_, T) {
|
|
2856
|
-
b.value[_] = T, p.numberFormats = b.value,
|
|
2861
|
+
b.value[_] = T, p.numberFormats = b.value, kn(p, _, T);
|
|
2857
2862
|
}
|
|
2858
2863
|
function B(_, T) {
|
|
2859
|
-
b.value[_] = J(b.value[_] || {}, T), p.numberFormats = b.value,
|
|
2864
|
+
b.value[_] = J(b.value[_] || {}, T), p.numberFormats = b.value, kn(p, _, T);
|
|
2860
2865
|
}
|
|
2861
|
-
|
|
2866
|
+
$n++, t && le && (ge(t.locale, (_) => {
|
|
2862
2867
|
o && (i.value = _, p.locale = _, Ye(p, i.value, u.value));
|
|
2863
|
-
}),
|
|
2868
|
+
}), ge(t.fallbackLocale, (_) => {
|
|
2864
2869
|
o && (u.value = _, p.fallbackLocale = _, Ye(p, i.value, u.value));
|
|
2865
2870
|
}));
|
|
2866
2871
|
const U = {
|
|
2867
|
-
id:
|
|
2872
|
+
id: $n,
|
|
2868
2873
|
locale: X,
|
|
2869
2874
|
fallbackLocale: ae,
|
|
2870
2875
|
get inheritLocale() {
|
|
@@ -2923,75 +2928,75 @@ function sn(e = {}) {
|
|
|
2923
2928
|
E = _, p.escapeParameter = _;
|
|
2924
2929
|
},
|
|
2925
2930
|
t: $e,
|
|
2926
|
-
getLocaleMessage:
|
|
2931
|
+
getLocaleMessage: he,
|
|
2927
2932
|
setLocaleMessage: xe,
|
|
2928
2933
|
mergeLocaleMessage: At,
|
|
2929
2934
|
getPostTranslationHandler: dt,
|
|
2930
2935
|
setPostTranslationHandler: Et,
|
|
2931
2936
|
getMissingHandler: pt,
|
|
2932
2937
|
setMissingHandler: gt,
|
|
2933
|
-
[
|
|
2938
|
+
[Cr]: vt
|
|
2934
2939
|
};
|
|
2935
|
-
return U.datetimeFormats = Pe, U.numberFormats = mt, U.rt = Tt, U.te = Ct, U.tm = Ge, U.d = bt, U.n = ht, U.getDateTimeFormat = l, U.setDateTimeFormat = c, U.mergeDateTimeFormat = g, U.getNumberFormat = y, U.setNumberFormat = x, U.mergeNumberFormat = B, U[
|
|
2940
|
+
return U.datetimeFormats = Pe, U.numberFormats = mt, U.rt = Tt, U.te = Ct, U.tm = Ge, U.d = bt, U.n = ht, U.getDateTimeFormat = l, U.setDateTimeFormat = c, U.mergeDateTimeFormat = g, U.getNumberFormat = y, U.setNumberFormat = x, U.mergeNumberFormat = B, U[Ar] = n, U[$t] = qe, U[Wt] = Ze, U[Gt] = Ot, process.env.NODE_ENV !== "production" && (U[ye] = (_) => {
|
|
2936
2941
|
p.__v_emitter = _;
|
|
2937
2942
|
}, U[Xe] = () => {
|
|
2938
2943
|
p.__v_emitter = void 0;
|
|
2939
2944
|
}), U;
|
|
2940
2945
|
}
|
|
2941
|
-
const
|
|
2946
|
+
const Pr = "vue-i18n: composer properties", kt = {
|
|
2942
2947
|
"vue-devtools-plugin-vue-i18n": "Vue I18n DevTools",
|
|
2943
2948
|
"vue-i18n-resource-inspector": "Vue I18n DevTools",
|
|
2944
2949
|
"vue-i18n-timeline": "Vue I18n"
|
|
2945
|
-
},
|
|
2950
|
+
}, oo = {
|
|
2946
2951
|
"vue-i18n-resource-inspector": "Search for scopes ..."
|
|
2947
|
-
},
|
|
2952
|
+
}, lo = {
|
|
2948
2953
|
"vue-i18n-timeline": 16764185
|
|
2949
2954
|
};
|
|
2950
2955
|
let Ht;
|
|
2951
|
-
async function
|
|
2956
|
+
async function io(e, t) {
|
|
2952
2957
|
return new Promise((n, r) => {
|
|
2953
2958
|
try {
|
|
2954
|
-
|
|
2959
|
+
za({
|
|
2955
2960
|
id: "vue-devtools-plugin-vue-i18n",
|
|
2956
2961
|
label: kt["vue-devtools-plugin-vue-i18n"],
|
|
2957
2962
|
packageName: "vue-i18n",
|
|
2958
2963
|
homepage: "https://vue-i18n.intlify.dev",
|
|
2959
2964
|
logo: "https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",
|
|
2960
|
-
componentStateTypes: [
|
|
2965
|
+
componentStateTypes: [Pr],
|
|
2961
2966
|
app: e
|
|
2962
2967
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2963
2968
|
}, (s) => {
|
|
2964
2969
|
Ht = s, s.on.visitComponentTree(({ componentInstance: o, treeNode: i }) => {
|
|
2965
|
-
|
|
2970
|
+
co(o, i, t);
|
|
2966
2971
|
}), s.on.inspectComponent(({ componentInstance: o, instanceData: i }) => {
|
|
2967
|
-
o.__VUE_I18N__ && i && (t.mode === "legacy" ? o.__VUE_I18N__ !== t.global.__composer &&
|
|
2972
|
+
o.__VUE_I18N__ && i && (t.mode === "legacy" ? o.__VUE_I18N__ !== t.global.__composer && Gn(i, o.__VUE_I18N__) : Gn(i, o.__VUE_I18N__));
|
|
2968
2973
|
}), s.addInspector({
|
|
2969
2974
|
id: "vue-i18n-resource-inspector",
|
|
2970
2975
|
label: kt["vue-i18n-resource-inspector"],
|
|
2971
2976
|
icon: "language",
|
|
2972
|
-
treeFilterPlaceholder:
|
|
2977
|
+
treeFilterPlaceholder: oo["vue-i18n-resource-inspector"]
|
|
2973
2978
|
}), s.on.getInspectorTree((o) => {
|
|
2974
|
-
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" &&
|
|
2979
|
+
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" && Eo(o, t);
|
|
2975
2980
|
});
|
|
2976
2981
|
const a = /* @__PURE__ */ new Map();
|
|
2977
2982
|
s.on.getInspectorState(async (o) => {
|
|
2978
2983
|
if (o.app === e && o.inspectorId === "vue-i18n-resource-inspector")
|
|
2979
|
-
if (s.unhighlightElement(),
|
|
2984
|
+
if (s.unhighlightElement(), go(o, t), o.nodeId === "global") {
|
|
2980
2985
|
if (!a.has(o.app)) {
|
|
2981
2986
|
const [i] = await s.getComponentInstances(o.app);
|
|
2982
2987
|
a.set(o.app, i);
|
|
2983
2988
|
}
|
|
2984
2989
|
s.highlightElement(a.get(o.app));
|
|
2985
2990
|
} else {
|
|
2986
|
-
const i =
|
|
2991
|
+
const i = po(o.nodeId, t);
|
|
2987
2992
|
i && s.highlightElement(i);
|
|
2988
2993
|
}
|
|
2989
2994
|
}), s.on.editInspectorState((o) => {
|
|
2990
|
-
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" &&
|
|
2995
|
+
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" && To(o, t);
|
|
2991
2996
|
}), s.addTimelineLayer({
|
|
2992
2997
|
id: "vue-i18n-timeline",
|
|
2993
2998
|
label: kt["vue-i18n-timeline"],
|
|
2994
|
-
color:
|
|
2999
|
+
color: lo["vue-i18n-timeline"]
|
|
2995
3000
|
}), n(!0);
|
|
2996
3001
|
});
|
|
2997
3002
|
} catch (s) {
|
|
@@ -2999,22 +3004,22 @@ async function fo(e, t) {
|
|
|
2999
3004
|
}
|
|
3000
3005
|
});
|
|
3001
3006
|
}
|
|
3002
|
-
function
|
|
3007
|
+
function Dr(e) {
|
|
3003
3008
|
return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
|
|
3004
3009
|
}
|
|
3005
|
-
function
|
|
3010
|
+
function co(e, t, n) {
|
|
3006
3011
|
const r = n.mode === "composition" ? n.global : n.global.__composer;
|
|
3007
3012
|
if (e && e.__VUE_I18N__ && e.__VUE_I18N__ !== r) {
|
|
3008
3013
|
const s = {
|
|
3009
|
-
label: `i18n (${
|
|
3014
|
+
label: `i18n (${Dr(e)} Scope)`,
|
|
3010
3015
|
textColor: 0,
|
|
3011
3016
|
backgroundColor: 16764185
|
|
3012
3017
|
};
|
|
3013
3018
|
t.tags.push(s);
|
|
3014
3019
|
}
|
|
3015
3020
|
}
|
|
3016
|
-
function
|
|
3017
|
-
const n =
|
|
3021
|
+
function Gn(e, t) {
|
|
3022
|
+
const n = Pr;
|
|
3018
3023
|
e.state.push({
|
|
3019
3024
|
type: n,
|
|
3020
3025
|
key: "locale",
|
|
@@ -3039,7 +3044,7 @@ function $n(e, t) {
|
|
|
3039
3044
|
type: n,
|
|
3040
3045
|
key: "messages",
|
|
3041
3046
|
editable: !1,
|
|
3042
|
-
value:
|
|
3047
|
+
value: ln(t.messages.value)
|
|
3043
3048
|
}), e.state.push({
|
|
3044
3049
|
type: n,
|
|
3045
3050
|
key: "datetimeFormats",
|
|
@@ -3052,34 +3057,34 @@ function $n(e, t) {
|
|
|
3052
3057
|
value: t.numberFormats.value
|
|
3053
3058
|
});
|
|
3054
3059
|
}
|
|
3055
|
-
function
|
|
3060
|
+
function ln(e) {
|
|
3056
3061
|
const t = {};
|
|
3057
3062
|
return Object.keys(e).forEach((n) => {
|
|
3058
3063
|
const r = e[n];
|
|
3059
|
-
W(r) && "source" in r ? t[n] =
|
|
3064
|
+
W(r) && "source" in r ? t[n] = mo(r) : se(r) && r.loc && r.loc.source ? t[n] = r.loc.source : M(r) ? t[n] = ln(r) : t[n] = r;
|
|
3060
3065
|
}), t;
|
|
3061
3066
|
}
|
|
3062
|
-
const
|
|
3067
|
+
const uo = {
|
|
3063
3068
|
"<": "<",
|
|
3064
3069
|
">": ">",
|
|
3065
3070
|
'"': """,
|
|
3066
3071
|
"&": "&"
|
|
3067
3072
|
};
|
|
3068
|
-
function
|
|
3069
|
-
return e.replace(/[<>"&]/g,
|
|
3073
|
+
function fo(e) {
|
|
3074
|
+
return e.replace(/[<>"&]/g, _o);
|
|
3070
3075
|
}
|
|
3071
|
-
function
|
|
3072
|
-
return
|
|
3076
|
+
function _o(e) {
|
|
3077
|
+
return uo[e] || e;
|
|
3073
3078
|
}
|
|
3074
|
-
function
|
|
3079
|
+
function mo(e) {
|
|
3075
3080
|
return {
|
|
3076
3081
|
_custom: {
|
|
3077
3082
|
type: "function",
|
|
3078
|
-
display: `<span>ƒ</span> ${e.source ? `("${
|
|
3083
|
+
display: `<span>ƒ</span> ${e.source ? `("${fo(e.source)}")` : "(?)"}`
|
|
3079
3084
|
}
|
|
3080
3085
|
};
|
|
3081
3086
|
}
|
|
3082
|
-
function
|
|
3087
|
+
function Eo(e, t) {
|
|
3083
3088
|
e.rootNodes.push({
|
|
3084
3089
|
id: "global",
|
|
3085
3090
|
label: "Global Scope"
|
|
@@ -3089,11 +3094,11 @@ function No(e, t) {
|
|
|
3089
3094
|
const a = t.mode === "composition" ? s : s.__composer;
|
|
3090
3095
|
n !== a && e.rootNodes.push({
|
|
3091
3096
|
id: a.id.toString(),
|
|
3092
|
-
label: `${
|
|
3097
|
+
label: `${Dr(r)} Scope`
|
|
3093
3098
|
});
|
|
3094
3099
|
}
|
|
3095
3100
|
}
|
|
3096
|
-
function
|
|
3101
|
+
function po(e, t) {
|
|
3097
3102
|
let n = null;
|
|
3098
3103
|
if (e !== "global") {
|
|
3099
3104
|
for (const [r, s] of t.__instances.entries())
|
|
@@ -3104,7 +3109,7 @@ function To(e, t) {
|
|
|
3104
3109
|
}
|
|
3105
3110
|
return n;
|
|
3106
3111
|
}
|
|
3107
|
-
function
|
|
3112
|
+
function kr(e, t) {
|
|
3108
3113
|
if (e === "global")
|
|
3109
3114
|
return t.mode === "composition" ? t.global : t.global.__composer;
|
|
3110
3115
|
{
|
|
@@ -3112,11 +3117,11 @@ function yr(e, t) {
|
|
|
3112
3117
|
return n ? t.mode === "composition" ? n : n.__composer : null;
|
|
3113
3118
|
}
|
|
3114
3119
|
}
|
|
3115
|
-
function
|
|
3116
|
-
const n =
|
|
3117
|
-
return n && (e.state =
|
|
3120
|
+
function go(e, t) {
|
|
3121
|
+
const n = kr(e.nodeId, t);
|
|
3122
|
+
return n && (e.state = No(n)), null;
|
|
3118
3123
|
}
|
|
3119
|
-
function
|
|
3124
|
+
function No(e) {
|
|
3120
3125
|
const t = {}, n = "Locale related info", r = [
|
|
3121
3126
|
{
|
|
3122
3127
|
type: n,
|
|
@@ -3149,7 +3154,7 @@ function ho(e) {
|
|
|
3149
3154
|
type: s,
|
|
3150
3155
|
key: "messages",
|
|
3151
3156
|
editable: !1,
|
|
3152
|
-
value:
|
|
3157
|
+
value: ln(e.messages.value)
|
|
3153
3158
|
}
|
|
3154
3159
|
];
|
|
3155
3160
|
t[s] = a;
|
|
@@ -3191,14 +3196,14 @@ function Qe(e, t) {
|
|
|
3191
3196
|
});
|
|
3192
3197
|
}
|
|
3193
3198
|
}
|
|
3194
|
-
function
|
|
3195
|
-
const n =
|
|
3199
|
+
function To(e, t) {
|
|
3200
|
+
const n = kr(e.nodeId, t);
|
|
3196
3201
|
if (n) {
|
|
3197
3202
|
const [r] = e.path;
|
|
3198
3203
|
r === "locale" && L(e.state.value) ? n.locale.value = e.state.value : r === "fallbackLocale" && (L(e.state.value) || H(e.state.value) || M(e.state.value)) ? n.fallbackLocale.value = e.state.value : r === "inheritLocale" && F(e.state.value) && (n.inheritLocale = e.state.value);
|
|
3199
3204
|
}
|
|
3200
3205
|
}
|
|
3201
|
-
function
|
|
3206
|
+
function bo(e) {
|
|
3202
3207
|
const t = L(e.locale) ? e.locale : je, n = L(e.fallbackLocale) || H(e.fallbackLocale) || R(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, r = W(e.missing) ? e.missing : void 0, s = F(e.silentTranslationWarn) || Fe(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, a = F(e.silentFallbackWarn) || Fe(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, o = F(e.fallbackRoot) ? e.fallbackRoot : !0, i = !!e.formatFallbackMessages, u = R(e.modifiers) ? e.modifiers : {}, d = e.pluralizationRules, I = W(e.postTranslation) ? e.postTranslation : void 0, b = L(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, N = !!e.escapeParameterHtml, A = F(e.sync) ? e.sync : !0;
|
|
3203
3208
|
let D = e.messages;
|
|
3204
3209
|
if (R(e.sharedMessages)) {
|
|
@@ -3234,7 +3239,7 @@ function Lo(e) {
|
|
|
3234
3239
|
};
|
|
3235
3240
|
}
|
|
3236
3241
|
function Yt(e = {}) {
|
|
3237
|
-
const t =
|
|
3242
|
+
const t = on(bo(e)), { __extender: n } = e, r = {
|
|
3238
3243
|
// id
|
|
3239
3244
|
id: t.id,
|
|
3240
3245
|
// locale
|
|
@@ -3402,7 +3407,7 @@ function Yt(e = {}) {
|
|
|
3402
3407
|
s[Xe] && s[Xe]();
|
|
3403
3408
|
}), r;
|
|
3404
3409
|
}
|
|
3405
|
-
function
|
|
3410
|
+
function ho(e, t, n) {
|
|
3406
3411
|
return {
|
|
3407
3412
|
beforeCreate() {
|
|
3408
3413
|
const r = Me();
|
|
@@ -3412,7 +3417,7 @@ function Oo(e, t, n) {
|
|
|
3412
3417
|
if (s.i18n) {
|
|
3413
3418
|
const a = s.i18n;
|
|
3414
3419
|
if (s.__i18n && (a.__i18n = s.__i18n), a.__root = t, this === this.$root)
|
|
3415
|
-
this.$i18n =
|
|
3420
|
+
this.$i18n = xn(e, a);
|
|
3416
3421
|
else {
|
|
3417
3422
|
a.__injectWithOption = !0, a.__extender = n.__vueI18nExtend, this.$i18n = Yt(a);
|
|
3418
3423
|
const o = this.$i18n;
|
|
@@ -3420,7 +3425,7 @@ function Oo(e, t, n) {
|
|
|
3420
3425
|
}
|
|
3421
3426
|
} else if (s.__i18n)
|
|
3422
3427
|
if (this === this.$root)
|
|
3423
|
-
this.$i18n =
|
|
3428
|
+
this.$i18n = xn(e, s);
|
|
3424
3429
|
else {
|
|
3425
3430
|
this.$i18n = Yt({
|
|
3426
3431
|
__i18n: s.__i18n,
|
|
@@ -3433,7 +3438,7 @@ function Oo(e, t, n) {
|
|
|
3433
3438
|
}
|
|
3434
3439
|
else
|
|
3435
3440
|
this.$i18n = e;
|
|
3436
|
-
s.__i18nGlobal &&
|
|
3441
|
+
s.__i18nGlobal && yr(t, s, s), this.$t = (...a) => this.$i18n.t(...a), this.$rt = (...a) => this.$i18n.rt(...a), this.$te = (a, o) => this.$i18n.te(a, o), this.$d = (...a) => this.$i18n.d(...a), this.$n = (...a) => this.$i18n.n(...a), this.$tm = (a) => this.$i18n.tm(a), n.__setInstance(r, this.$i18n);
|
|
3437
3442
|
},
|
|
3438
3443
|
mounted() {
|
|
3439
3444
|
if (process.env.NODE_ENV !== "production" && this.$i18n) {
|
|
@@ -3442,7 +3447,7 @@ function Oo(e, t, n) {
|
|
|
3442
3447
|
return;
|
|
3443
3448
|
const s = this.$i18n;
|
|
3444
3449
|
r.__VUE_I18N__ = s.__composer;
|
|
3445
|
-
const a = this.__v_emitter =
|
|
3450
|
+
const a = this.__v_emitter = en();
|
|
3446
3451
|
s.__enableEmitter && s.__enableEmitter(a), a.on("*", Qe);
|
|
3447
3452
|
}
|
|
3448
3453
|
},
|
|
@@ -3455,15 +3460,15 @@ function Oo(e, t, n) {
|
|
|
3455
3460
|
}
|
|
3456
3461
|
};
|
|
3457
3462
|
}
|
|
3458
|
-
function
|
|
3459
|
-
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[
|
|
3460
|
-
const n =
|
|
3463
|
+
function xn(e, t) {
|
|
3464
|
+
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[Cr](t.pluralizationRules || e.pluralizationRules);
|
|
3465
|
+
const n = an(e.locale, {
|
|
3461
3466
|
messages: t.messages,
|
|
3462
3467
|
__i18n: t.__i18n
|
|
3463
3468
|
});
|
|
3464
3469
|
return Object.keys(n).forEach((r) => e.mergeLocaleMessage(r, n[r])), t.datetimeFormats && Object.keys(t.datetimeFormats).forEach((r) => e.mergeDateTimeFormat(r, t.datetimeFormats[r])), t.numberFormats && Object.keys(t.numberFormats).forEach((r) => e.mergeNumberFormat(r, t.numberFormats[r])), e;
|
|
3465
3470
|
}
|
|
3466
|
-
const
|
|
3471
|
+
const cn = {
|
|
3467
3472
|
tag: {
|
|
3468
3473
|
type: [String, Object]
|
|
3469
3474
|
},
|
|
@@ -3481,20 +3486,20 @@ const on = {
|
|
|
3481
3486
|
type: Object
|
|
3482
3487
|
}
|
|
3483
3488
|
};
|
|
3484
|
-
function
|
|
3489
|
+
function Io({ slots: e }, t) {
|
|
3485
3490
|
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, s) => [
|
|
3486
3491
|
...r,
|
|
3487
3492
|
// prettier-ignore
|
|
3488
|
-
...s.type ===
|
|
3493
|
+
...s.type === ot ? s.children : [s]
|
|
3489
3494
|
], []) : t.reduce((n, r) => {
|
|
3490
3495
|
const s = e[r];
|
|
3491
3496
|
return s && (n[r] = s()), n;
|
|
3492
3497
|
}, $());
|
|
3493
3498
|
}
|
|
3494
|
-
function
|
|
3495
|
-
return
|
|
3499
|
+
function Rr() {
|
|
3500
|
+
return ot;
|
|
3496
3501
|
}
|
|
3497
|
-
const
|
|
3502
|
+
const Lo = /* @__PURE__ */ _e({
|
|
3498
3503
|
/* eslint-disable */
|
|
3499
3504
|
name: "i18n-t",
|
|
3500
3505
|
props: J({
|
|
@@ -3506,26 +3511,26 @@ const Co = /* @__PURE__ */ ge({
|
|
|
3506
3511
|
type: [Number, String],
|
|
3507
3512
|
validator: (e) => j(e) || !isNaN(e)
|
|
3508
3513
|
}
|
|
3509
|
-
},
|
|
3514
|
+
}, cn),
|
|
3510
3515
|
/* eslint-enable */
|
|
3511
3516
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3512
3517
|
setup(e, t) {
|
|
3513
|
-
const { slots: n, attrs: r } = t, s = e.i18n ||
|
|
3518
|
+
const { slots: n, attrs: r } = t, s = e.i18n || un({
|
|
3514
3519
|
useScope: e.scope,
|
|
3515
3520
|
__useComponent: !0
|
|
3516
3521
|
});
|
|
3517
3522
|
return () => {
|
|
3518
3523
|
const a = Object.keys(n).filter((b) => b[0] !== "_"), o = $();
|
|
3519
3524
|
e.locale && (o.locale = e.locale), e.plural !== void 0 && (o.plural = L(e.plural) ? +e.plural : e.plural);
|
|
3520
|
-
const i =
|
|
3521
|
-
return
|
|
3525
|
+
const i = Io(t, a), u = s[$t](e.keypath, i, o), d = J($(), r), I = L(e.tag) || M(e.tag) ? e.tag : Rr();
|
|
3526
|
+
return zn(I, d, u);
|
|
3522
3527
|
};
|
|
3523
3528
|
}
|
|
3524
|
-
}),
|
|
3525
|
-
function
|
|
3529
|
+
}), Hn = Lo;
|
|
3530
|
+
function Oo(e) {
|
|
3526
3531
|
return H(e) && !L(e[0]);
|
|
3527
3532
|
}
|
|
3528
|
-
function
|
|
3533
|
+
function Mr(e, t, n, r) {
|
|
3529
3534
|
const { slots: s, attrs: a } = t;
|
|
3530
3535
|
return () => {
|
|
3531
3536
|
const o = { part: !0 };
|
|
@@ -3535,13 +3540,13 @@ function Dr(e, t, n, r) {
|
|
|
3535
3540
|
let d = [o.key];
|
|
3536
3541
|
H(u) ? d = u.map((N, A) => {
|
|
3537
3542
|
const D = s[N.type], C = D ? D({ [N.type]: N.value, index: A, parts: u }) : [N.value];
|
|
3538
|
-
return
|
|
3543
|
+
return Oo(C) && (C[0].key = `${N.type}-${A}`), C;
|
|
3539
3544
|
}) : L(u) && (d = [u]);
|
|
3540
|
-
const I = J($(), a), b = L(e.tag) || M(e.tag) ? e.tag :
|
|
3541
|
-
return
|
|
3545
|
+
const I = J($(), a), b = L(e.tag) || M(e.tag) ? e.tag : Rr();
|
|
3546
|
+
return zn(b, I, d);
|
|
3542
3547
|
};
|
|
3543
3548
|
}
|
|
3544
|
-
const
|
|
3549
|
+
const vo = /* @__PURE__ */ _e({
|
|
3545
3550
|
/* eslint-disable */
|
|
3546
3551
|
name: "i18n-n",
|
|
3547
3552
|
props: J({
|
|
@@ -3552,21 +3557,21 @@ const So = /* @__PURE__ */ ge({
|
|
|
3552
3557
|
format: {
|
|
3553
3558
|
type: [String, Object]
|
|
3554
3559
|
}
|
|
3555
|
-
},
|
|
3560
|
+
}, cn),
|
|
3556
3561
|
/* eslint-enable */
|
|
3557
3562
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3558
3563
|
setup(e, t) {
|
|
3559
|
-
const n = e.i18n ||
|
|
3564
|
+
const n = e.i18n || un({
|
|
3560
3565
|
useScope: e.scope,
|
|
3561
3566
|
__useComponent: !0
|
|
3562
3567
|
});
|
|
3563
|
-
return
|
|
3568
|
+
return Mr(e, t, Ir, (...r) => (
|
|
3564
3569
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3565
3570
|
n[Gt](...r)
|
|
3566
3571
|
));
|
|
3567
3572
|
}
|
|
3568
|
-
}),
|
|
3569
|
-
function
|
|
3573
|
+
}), Yn = vo;
|
|
3574
|
+
function Co(e, t) {
|
|
3570
3575
|
const n = e;
|
|
3571
3576
|
if (e.mode === "composition")
|
|
3572
3577
|
return n.__getInstance(t) || e.global;
|
|
@@ -3575,22 +3580,22 @@ function yo(e, t) {
|
|
|
3575
3580
|
return r != null ? r.__composer : e.global.__composer;
|
|
3576
3581
|
}
|
|
3577
3582
|
}
|
|
3578
|
-
function
|
|
3583
|
+
function Ao(e) {
|
|
3579
3584
|
const t = (o) => {
|
|
3580
|
-
process.env.NODE_ENV !== "production" &&
|
|
3585
|
+
process.env.NODE_ENV !== "production" && qt(we(ne.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));
|
|
3581
3586
|
const { instance: i, value: u } = o;
|
|
3582
3587
|
if (!i || !i.$)
|
|
3583
3588
|
throw z(G.UNEXPECTED_ERROR);
|
|
3584
|
-
const d =
|
|
3589
|
+
const d = Co(e, i.$), I = Bn(u);
|
|
3585
3590
|
return [
|
|
3586
|
-
Reflect.apply(d.t, d, [...
|
|
3591
|
+
Reflect.apply(d.t, d, [...Kn(I)]),
|
|
3587
3592
|
d
|
|
3588
3593
|
];
|
|
3589
3594
|
};
|
|
3590
3595
|
return {
|
|
3591
3596
|
created: (o, i) => {
|
|
3592
3597
|
const [u, d] = t(i);
|
|
3593
|
-
le && e.global === d && (o.__i18nWatcher =
|
|
3598
|
+
le && e.global === d && (o.__i18nWatcher = ge(d.locale, () => {
|
|
3594
3599
|
i.instance && i.instance.$forceUpdate();
|
|
3595
3600
|
})), o.__composer = d, o.textContent = u;
|
|
3596
3601
|
},
|
|
@@ -3599,9 +3604,9 @@ function Po(e) {
|
|
|
3599
3604
|
},
|
|
3600
3605
|
beforeUpdate: (o, { value: i }) => {
|
|
3601
3606
|
if (o.__composer) {
|
|
3602
|
-
const u = o.__composer, d =
|
|
3607
|
+
const u = o.__composer, d = Bn(i);
|
|
3603
3608
|
o.textContent = Reflect.apply(u.t, u, [
|
|
3604
|
-
...
|
|
3609
|
+
...Kn(d)
|
|
3605
3610
|
]);
|
|
3606
3611
|
}
|
|
3607
3612
|
},
|
|
@@ -3611,7 +3616,7 @@ function Po(e) {
|
|
|
3611
3616
|
}
|
|
3612
3617
|
};
|
|
3613
3618
|
}
|
|
3614
|
-
function
|
|
3619
|
+
function Bn(e) {
|
|
3615
3620
|
if (L(e))
|
|
3616
3621
|
return { path: e };
|
|
3617
3622
|
if (R(e)) {
|
|
@@ -3621,19 +3626,19 @@ function Hn(e) {
|
|
|
3621
3626
|
} else
|
|
3622
3627
|
throw z(G.INVALID_VALUE);
|
|
3623
3628
|
}
|
|
3624
|
-
function
|
|
3629
|
+
function Kn(e) {
|
|
3625
3630
|
const { path: t, locale: n, args: r, choice: s, plural: a } = e, o = {}, i = r || {};
|
|
3626
3631
|
return L(n) && (o.locale = n), j(s) && (o.plural = s), j(a) && (o.plural = a), [t, i, o];
|
|
3627
3632
|
}
|
|
3628
|
-
function
|
|
3633
|
+
function So(e, t, ...n) {
|
|
3629
3634
|
const r = R(n[0]) ? n[0] : {};
|
|
3630
|
-
(!F(r.globalInstall) || r.globalInstall) && ([
|
|
3635
|
+
(!F(r.globalInstall) || r.globalInstall) && ([Hn.name, "I18nT"].forEach((a) => e.component(a, Hn)), [Yn.name, "I18nN"].forEach((a) => e.component(a, Yn)), [Xn.name, "I18nD"].forEach((a) => e.component(a, Xn))), e.directive("t", Ao(t));
|
|
3631
3636
|
}
|
|
3632
|
-
const
|
|
3633
|
-
function
|
|
3637
|
+
const yo = /* @__PURE__ */ me("global-vue-i18n");
|
|
3638
|
+
function Po(e = {}) {
|
|
3634
3639
|
const t = __VUE_I18N_LEGACY_API__ && F(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__;
|
|
3635
|
-
process.env.NODE_ENV !== "production" && t &&
|
|
3636
|
-
const n = F(e.globalInjection) ? e.globalInjection : !0, r = /* @__PURE__ */ new Map(), [s, a] =
|
|
3640
|
+
process.env.NODE_ENV !== "production" && t && qt(we(ne.DEPRECATE_LEGACY_MODE));
|
|
3641
|
+
const n = F(e.globalInjection) ? e.globalInjection : !0, r = /* @__PURE__ */ new Map(), [s, a] = Do(e, t), o = /* @__PURE__ */ me(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
|
|
3637
3642
|
function i(b) {
|
|
3638
3643
|
return r.get(b) || null;
|
|
3639
3644
|
}
|
|
@@ -3655,14 +3660,14 @@ function Ro(e = {}) {
|
|
|
3655
3660
|
I.__composerExtend = C.__composerExtend, I.__vueI18nExtend = C.__vueI18nExtend;
|
|
3656
3661
|
}
|
|
3657
3662
|
let A = null;
|
|
3658
|
-
!t && n && (A =
|
|
3663
|
+
!t && n && (A = $o(b, I.global)), __VUE_I18N_FULL_INSTALL__ && So(b, I, ...N), __VUE_I18N_LEGACY_API__ && t && b.mixin(ho(a, a.__composer, I));
|
|
3659
3664
|
const D = b.unmount;
|
|
3660
3665
|
if (b.unmount = () => {
|
|
3661
3666
|
A && A(), I.dispose(), D();
|
|
3662
3667
|
}, process.env.NODE_ENV !== "production") {
|
|
3663
|
-
if (!await
|
|
3668
|
+
if (!await io(b, I))
|
|
3664
3669
|
throw z(G.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
3665
|
-
const S =
|
|
3670
|
+
const S = en();
|
|
3666
3671
|
if (t) {
|
|
3667
3672
|
const f = a;
|
|
3668
3673
|
f.__enableEmitter && f.__enableEmitter(S);
|
|
@@ -3691,57 +3696,57 @@ function Ro(e = {}) {
|
|
|
3691
3696
|
};
|
|
3692
3697
|
return I;
|
|
3693
3698
|
}
|
|
3694
|
-
function
|
|
3699
|
+
function un(e = {}) {
|
|
3695
3700
|
const t = Me();
|
|
3696
3701
|
if (t == null)
|
|
3697
3702
|
throw z(G.MUST_BE_CALL_SETUP_TOP);
|
|
3698
3703
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
3699
3704
|
throw z(G.NOT_INSTALLED);
|
|
3700
|
-
const n =
|
|
3705
|
+
const n = ko(t), r = Mo(n), s = Sr(t), a = Ro(e, s);
|
|
3701
3706
|
if (a === "global")
|
|
3702
|
-
return
|
|
3707
|
+
return yr(r, e, s), r;
|
|
3703
3708
|
if (a === "parent") {
|
|
3704
|
-
let u =
|
|
3705
|
-
return u == null && (process.env.NODE_ENV !== "production" &&
|
|
3709
|
+
let u = Fo(n, t, e.__useComponent);
|
|
3710
|
+
return u == null && (process.env.NODE_ENV !== "production" && fe(we(ne.NOT_FOUND_PARENT_SCOPE)), u = r), u;
|
|
3706
3711
|
}
|
|
3707
3712
|
const o = n;
|
|
3708
3713
|
let i = o.__getInstance(t);
|
|
3709
3714
|
if (i == null) {
|
|
3710
3715
|
const u = J({}, e);
|
|
3711
|
-
"__i18n" in s && (u.__i18n = s.__i18n), r && (u.__root = r), i =
|
|
3716
|
+
"__i18n" in s && (u.__i18n = s.__i18n), r && (u.__root = r), i = on(u), o.__composerExtend && (i[xt] = o.__composerExtend(i)), wo(o, t, i), o.__setInstance(t, i);
|
|
3712
3717
|
} else
|
|
3713
|
-
process.env.NODE_ENV !== "production" && a === "local" &&
|
|
3718
|
+
process.env.NODE_ENV !== "production" && a === "local" && fe(we(ne.DUPLICATE_USE_I18N_CALLING));
|
|
3714
3719
|
return i;
|
|
3715
3720
|
}
|
|
3716
|
-
function
|
|
3717
|
-
const n = wr(), r = __VUE_I18N_LEGACY_API__ && t ? n.run(() => Yt(e)) : n.run(() =>
|
|
3721
|
+
function Do(e, t) {
|
|
3722
|
+
const n = wr(), r = __VUE_I18N_LEGACY_API__ && t ? n.run(() => Yt(e)) : n.run(() => on(e));
|
|
3718
3723
|
if (r == null)
|
|
3719
3724
|
throw z(G.UNEXPECTED_ERROR);
|
|
3720
3725
|
return [n, r];
|
|
3721
3726
|
}
|
|
3722
|
-
function
|
|
3723
|
-
const t =
|
|
3727
|
+
function ko(e) {
|
|
3728
|
+
const t = Bt(e.isCE ? yo : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
3724
3729
|
if (!t)
|
|
3725
3730
|
throw z(e.isCE ? G.NOT_INSTALLED_WITH_PROVIDE : G.UNEXPECTED_ERROR);
|
|
3726
3731
|
return t;
|
|
3727
3732
|
}
|
|
3728
|
-
function
|
|
3733
|
+
function Ro(e, t) {
|
|
3729
3734
|
return ut(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
3730
3735
|
}
|
|
3731
|
-
function
|
|
3736
|
+
function Mo(e) {
|
|
3732
3737
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
3733
3738
|
}
|
|
3734
|
-
function
|
|
3739
|
+
function Fo(e, t, n = !1) {
|
|
3735
3740
|
let r = null;
|
|
3736
3741
|
const s = t.root;
|
|
3737
|
-
let a =
|
|
3742
|
+
let a = Uo(t, n);
|
|
3738
3743
|
for (; a != null; ) {
|
|
3739
3744
|
const o = e;
|
|
3740
3745
|
if (e.mode === "composition")
|
|
3741
3746
|
r = o.__getInstance(a);
|
|
3742
3747
|
else if (__VUE_I18N_LEGACY_API__) {
|
|
3743
3748
|
const i = o.__getInstance(a);
|
|
3744
|
-
i != null && (r = i.__composer, n && r && !r[
|
|
3749
|
+
i != null && (r = i.__composer, n && r && !r[Ar] && (r = null));
|
|
3745
3750
|
}
|
|
3746
3751
|
if (r != null || s === a)
|
|
3747
3752
|
break;
|
|
@@ -3749,14 +3754,14 @@ function Vo(e, t, n = !1) {
|
|
|
3749
3754
|
}
|
|
3750
3755
|
return r;
|
|
3751
3756
|
}
|
|
3752
|
-
function
|
|
3757
|
+
function Uo(e, t = !1) {
|
|
3753
3758
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
3754
3759
|
}
|
|
3755
|
-
function
|
|
3760
|
+
function wo(e, t, n) {
|
|
3756
3761
|
let r = null;
|
|
3757
3762
|
Wr(() => {
|
|
3758
3763
|
if (process.env.NODE_ENV !== "production") {
|
|
3759
|
-
t.__VUE_I18N__ = n, r =
|
|
3764
|
+
t.__VUE_I18N__ = n, r = en();
|
|
3760
3765
|
const s = n;
|
|
3761
3766
|
s[ye] && s[ye](r), r.on("*", Qe);
|
|
3762
3767
|
}
|
|
@@ -3767,14 +3772,14 @@ function Wo(e, t, n) {
|
|
|
3767
3772
|
a && (a(), delete s[xt]);
|
|
3768
3773
|
}, t);
|
|
3769
3774
|
}
|
|
3770
|
-
const
|
|
3775
|
+
const Vo = [
|
|
3771
3776
|
"locale",
|
|
3772
3777
|
"fallbackLocale",
|
|
3773
3778
|
"availableLocales"
|
|
3774
|
-
],
|
|
3775
|
-
function
|
|
3779
|
+
], jn = ["t", "rt", "d", "n", "tm", "te"];
|
|
3780
|
+
function $o(e, t) {
|
|
3776
3781
|
const n = /* @__PURE__ */ Object.create(null);
|
|
3777
|
-
return
|
|
3782
|
+
return Vo.forEach((s) => {
|
|
3778
3783
|
const a = Object.getOwnPropertyDescriptor(t, s);
|
|
3779
3784
|
if (!a)
|
|
3780
3785
|
throw z(G.UNEXPECTED_ERROR);
|
|
@@ -3792,18 +3797,18 @@ function xo(e, t) {
|
|
|
3792
3797
|
}
|
|
3793
3798
|
};
|
|
3794
3799
|
Object.defineProperty(n, s, o);
|
|
3795
|
-
}), e.config.globalProperties.$i18n = n,
|
|
3800
|
+
}), e.config.globalProperties.$i18n = n, jn.forEach((s) => {
|
|
3796
3801
|
const a = Object.getOwnPropertyDescriptor(t, s);
|
|
3797
3802
|
if (!a || !a.value)
|
|
3798
3803
|
throw z(G.UNEXPECTED_ERROR);
|
|
3799
3804
|
Object.defineProperty(e.config.globalProperties, `$${s}`, a);
|
|
3800
3805
|
}), () => {
|
|
3801
|
-
delete e.config.globalProperties.$i18n,
|
|
3806
|
+
delete e.config.globalProperties.$i18n, jn.forEach((s) => {
|
|
3802
3807
|
delete e.config.globalProperties[`$${s}`];
|
|
3803
3808
|
});
|
|
3804
3809
|
};
|
|
3805
3810
|
}
|
|
3806
|
-
const
|
|
3811
|
+
const Wo = /* @__PURE__ */ _e({
|
|
3807
3812
|
/* eslint-disable */
|
|
3808
3813
|
name: "i18n-d",
|
|
3809
3814
|
props: J({
|
|
@@ -3814,132 +3819,135 @@ const Ho = /* @__PURE__ */ ge({
|
|
|
3814
3819
|
format: {
|
|
3815
3820
|
type: [String, Object]
|
|
3816
3821
|
}
|
|
3817
|
-
},
|
|
3822
|
+
}, cn),
|
|
3818
3823
|
/* eslint-enable */
|
|
3819
3824
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3820
3825
|
setup(e, t) {
|
|
3821
|
-
const n = e.i18n ||
|
|
3826
|
+
const n = e.i18n || un({
|
|
3822
3827
|
useScope: e.scope,
|
|
3823
3828
|
__useComponent: !0
|
|
3824
3829
|
});
|
|
3825
|
-
return
|
|
3830
|
+
return Mr(e, t, hr, (...r) => (
|
|
3826
3831
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3827
3832
|
n[Wt](...r)
|
|
3828
3833
|
));
|
|
3829
3834
|
}
|
|
3830
|
-
}),
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
+
}), Xn = Wo;
|
|
3836
|
+
to();
|
|
3837
|
+
va(ra);
|
|
3838
|
+
Ca(ba);
|
|
3839
|
+
Aa(_r);
|
|
3835
3840
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
3836
|
-
const e =
|
|
3837
|
-
e.__INTLIFY__ = !0,
|
|
3841
|
+
const e = ve();
|
|
3842
|
+
e.__INTLIFY__ = !0, sa(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
3838
3843
|
}
|
|
3839
3844
|
process.env.NODE_ENV;
|
|
3840
|
-
const
|
|
3841
|
-
name:
|
|
3842
|
-
supplier:
|
|
3843
|
-
version:
|
|
3844
|
-
description:
|
|
3845
|
-
category:
|
|
3846
|
-
general:
|
|
3847
|
-
ioMapping:
|
|
3848
|
-
modbusSlaveChannel:
|
|
3849
|
-
status:
|
|
3850
|
-
ethernet:
|
|
3851
|
-
modbusTcpServer:
|
|
3852
|
-
modbusTcpClient:
|
|
3853
|
-
modbusTCPSlaveDevice:
|
|
3854
|
-
company:
|
|
3855
|
-
descriptionMap:
|
|
3856
|
-
netInterface:
|
|
3857
|
-
ipAddress:
|
|
3858
|
-
subnetMask:
|
|
3859
|
-
defaultGateway:
|
|
3860
|
-
adaptedOSConfiguration:
|
|
3861
|
-
busCycleTask:
|
|
3862
|
-
defaultTask:
|
|
3863
|
-
responseTimeout:
|
|
3864
|
-
socketTimeout:
|
|
3865
|
-
reconnect:
|
|
3866
|
-
slaveIpAddress:
|
|
3867
|
-
port:
|
|
3868
|
-
watchDog:
|
|
3869
|
-
slavePort:
|
|
3870
|
-
bindToAdapter:
|
|
3871
|
-
holdingRegister:
|
|
3872
|
-
writable:
|
|
3873
|
-
inputRegister:
|
|
3874
|
-
discreteBitArea:
|
|
3875
|
-
coil:
|
|
3876
|
-
discreteInput:
|
|
3877
|
-
dataModel:
|
|
3878
|
-
startAddress:
|
|
3879
|
-
},
|
|
3880
|
-
name:
|
|
3881
|
-
supplier:
|
|
3882
|
-
version:
|
|
3883
|
-
description:
|
|
3884
|
-
category:
|
|
3885
|
-
general:
|
|
3886
|
-
ioMapping:
|
|
3887
|
-
modbusSlaveChannel:
|
|
3888
|
-
status:
|
|
3889
|
-
ethernet:
|
|
3890
|
-
modbusTcpServer:
|
|
3891
|
-
modbusTcpClient:
|
|
3892
|
-
modbusTCPSlaveDevice:
|
|
3893
|
-
company:
|
|
3894
|
-
descriptionMap:
|
|
3895
|
-
netInterface:
|
|
3896
|
-
ipAddress:
|
|
3897
|
-
subnetMask:
|
|
3898
|
-
defaultGateway:
|
|
3899
|
-
adaptedOSConfiguration:
|
|
3900
|
-
busCycleTask:
|
|
3901
|
-
defaultTask:
|
|
3902
|
-
responseTimeout:
|
|
3903
|
-
socketTimeout:
|
|
3904
|
-
reconnect:
|
|
3905
|
-
slaveIpAddress:
|
|
3906
|
-
port:
|
|
3907
|
-
watchDog:
|
|
3908
|
-
slavePort:
|
|
3909
|
-
bindToAdapter:
|
|
3910
|
-
holdingRegister:
|
|
3911
|
-
writable:
|
|
3912
|
-
inputRegister:
|
|
3913
|
-
discreteBitArea:
|
|
3914
|
-
coil:
|
|
3915
|
-
discreteInput:
|
|
3916
|
-
dataModel:
|
|
3917
|
-
startAddress:
|
|
3918
|
-
},
|
|
3919
|
-
zh:
|
|
3920
|
-
en:
|
|
3921
|
-
},
|
|
3845
|
+
const Go = "名称", xo = "供应商", Ho = "版本", Yo = "描述", Bo = "类别", Ko = "通用", jo = "I/O映射", Xo = "Modbus从站通道", Jo = "状态", Qo = "以太网", qo = "Modbus TCP服务器", Zo = "Modbus TCP客户端", zo = "Modbus TCP从站设备", el = "成都数字创新科技有限公司", tl = { ethernet: "一种在以太网上充当Modbus服务器的设备。", modbusTcpServer: "一种在以太网上充当Modbus TCP服务器的设备。", modbusTcpClient: "一种在以太网上充当Modbus TCP客户端的设备。", modbusTCPSlaveDevice: "一种在以太网上充当Modbus TCP从站设备。" }, nl = "网络接口", rl = "IP地址", sl = "子网掩码", al = "默认网关", ol = "适配操作系统配置", ll = "总线周期任务", il = "使用父总线循环设置", cl = "响应超时(ms)", ul = "Socket超时(ms)", fl = "自动重连", _l = "从站IP地址", ml = "端口", dl = " 看门狗", El = "从站端口", pl = "绑定到适配器", gl = "保持寄存器", Nl = "可写入", Tl = "输入寄存器", bl = "离散位区域", hl = "线圈", Il = "离散输入", Ll = "数据模型", Ol = "起始地址", vl = {
|
|
3846
|
+
name: Go,
|
|
3847
|
+
supplier: xo,
|
|
3848
|
+
version: Ho,
|
|
3849
|
+
description: Yo,
|
|
3850
|
+
category: Bo,
|
|
3851
|
+
general: Ko,
|
|
3852
|
+
ioMapping: jo,
|
|
3853
|
+
modbusSlaveChannel: Xo,
|
|
3854
|
+
status: Jo,
|
|
3855
|
+
ethernet: Qo,
|
|
3856
|
+
modbusTcpServer: qo,
|
|
3857
|
+
modbusTcpClient: Zo,
|
|
3858
|
+
modbusTCPSlaveDevice: zo,
|
|
3859
|
+
company: el,
|
|
3860
|
+
descriptionMap: tl,
|
|
3861
|
+
netInterface: nl,
|
|
3862
|
+
ipAddress: rl,
|
|
3863
|
+
subnetMask: sl,
|
|
3864
|
+
defaultGateway: al,
|
|
3865
|
+
adaptedOSConfiguration: ol,
|
|
3866
|
+
busCycleTask: ll,
|
|
3867
|
+
defaultTask: il,
|
|
3868
|
+
responseTimeout: cl,
|
|
3869
|
+
socketTimeout: ul,
|
|
3870
|
+
reconnect: fl,
|
|
3871
|
+
slaveIpAddress: _l,
|
|
3872
|
+
port: ml,
|
|
3873
|
+
watchDog: dl,
|
|
3874
|
+
slavePort: El,
|
|
3875
|
+
bindToAdapter: pl,
|
|
3876
|
+
holdingRegister: gl,
|
|
3877
|
+
writable: Nl,
|
|
3878
|
+
inputRegister: Tl,
|
|
3879
|
+
discreteBitArea: bl,
|
|
3880
|
+
coil: hl,
|
|
3881
|
+
discreteInput: Il,
|
|
3882
|
+
dataModel: Ll,
|
|
3883
|
+
startAddress: Ol
|
|
3884
|
+
}, Cl = "Name", Al = "Supplier", Sl = "Version", yl = "Description", Pl = "Category", Dl = "General", kl = "I/O Mapping", Rl = "Modbus Slave Channel", Ml = "Status", Fl = "Ethernet", Ul = "Modbus TCP Server", wl = "Modbus TCP Client", Vl = "Modbus TCP Slave Device", $l = "Chengdu AIOSYS Innovation Technology Co., Ltd.", Wl = { ethernet: "A device that works as a Modbus Server on Ethernet.", modbusTcpServer: "A device that works as a Modbus TCP Server.", modbusTcpClient: "A device that works as a Modbus TCP Client.", modbusTCPSlaveDevice: "A device that works as a Modbus TCP Slave Device." }, Gl = "Network Interface", xl = "IP Address", Hl = "Subnet Mask", Yl = "Default Gateway", Bl = "Adapted OS Configuration", Kl = "Bus Cycle Task", jl = "Use Parent Bus Cycle Setting", Xl = "Response Timeout(ms)", Jl = "Socket Timeout(ms)", Ql = "Reconnect", ql = "Slave IP Address", Zl = "Port", zl = "Watch Dog", ei = "Slave Port", ti = "Bind to Adapter", ni = "Holding Register", ri = "Writable", si = "Input Register", ai = "Discrete Bit Area", oi = "Coil", li = "Discrete Input", ii = "Data Model", ci = "Start Address", ui = {
|
|
3885
|
+
name: Cl,
|
|
3886
|
+
supplier: Al,
|
|
3887
|
+
version: Sl,
|
|
3888
|
+
description: yl,
|
|
3889
|
+
category: Pl,
|
|
3890
|
+
general: Dl,
|
|
3891
|
+
ioMapping: kl,
|
|
3892
|
+
modbusSlaveChannel: Rl,
|
|
3893
|
+
status: Ml,
|
|
3894
|
+
ethernet: Fl,
|
|
3895
|
+
modbusTcpServer: Ul,
|
|
3896
|
+
modbusTcpClient: wl,
|
|
3897
|
+
modbusTCPSlaveDevice: Vl,
|
|
3898
|
+
company: $l,
|
|
3899
|
+
descriptionMap: Wl,
|
|
3900
|
+
netInterface: Gl,
|
|
3901
|
+
ipAddress: xl,
|
|
3902
|
+
subnetMask: Hl,
|
|
3903
|
+
defaultGateway: Yl,
|
|
3904
|
+
adaptedOSConfiguration: Bl,
|
|
3905
|
+
busCycleTask: Kl,
|
|
3906
|
+
defaultTask: jl,
|
|
3907
|
+
responseTimeout: Xl,
|
|
3908
|
+
socketTimeout: Jl,
|
|
3909
|
+
reconnect: Ql,
|
|
3910
|
+
slaveIpAddress: ql,
|
|
3911
|
+
port: Zl,
|
|
3912
|
+
watchDog: zl,
|
|
3913
|
+
slavePort: ei,
|
|
3914
|
+
bindToAdapter: ti,
|
|
3915
|
+
holdingRegister: ni,
|
|
3916
|
+
writable: ri,
|
|
3917
|
+
inputRegister: si,
|
|
3918
|
+
discreteBitArea: ai,
|
|
3919
|
+
coil: oi,
|
|
3920
|
+
discreteInput: li,
|
|
3921
|
+
dataModel: ii,
|
|
3922
|
+
startAddress: ci
|
|
3923
|
+
}, fi = {
|
|
3924
|
+
zh: vl,
|
|
3925
|
+
en: ui
|
|
3926
|
+
}, Oe = Po({
|
|
3922
3927
|
legacy: !1,
|
|
3923
3928
|
locale: "zh",
|
|
3924
3929
|
fallbackLocale: "en",
|
|
3925
|
-
messages:
|
|
3930
|
+
messages: fi
|
|
3926
3931
|
});
|
|
3927
|
-
typeof window < "u" && (window.$t =
|
|
3932
|
+
typeof window < "u" && (window.$t = Oe.global.t.bind(Oe.global), Object.defineProperty(window, "$locale", {
|
|
3928
3933
|
get() {
|
|
3929
|
-
return typeof
|
|
3934
|
+
return typeof Oe.global.locale == "string" ? Oe.global.locale : Oe.global.locale.value;
|
|
3930
3935
|
},
|
|
3931
3936
|
set(e) {
|
|
3932
|
-
|
|
3937
|
+
Oe.global.locale = e;
|
|
3933
3938
|
}
|
|
3934
3939
|
}));
|
|
3935
|
-
const
|
|
3936
|
-
|
|
3937
|
-
const
|
|
3940
|
+
const _i = Hr(as).use(Oe);
|
|
3941
|
+
_i.mount("#app");
|
|
3942
|
+
const mi = [
|
|
3938
3943
|
Br,
|
|
3939
|
-
jr
|
|
3940
|
-
|
|
3944
|
+
jr,
|
|
3945
|
+
tr,
|
|
3946
|
+
Qr,
|
|
3947
|
+
Jr
|
|
3948
|
+
], pi = {
|
|
3941
3949
|
install(e) {
|
|
3942
|
-
|
|
3950
|
+
mi.forEach((t) => {
|
|
3943
3951
|
e.component(t.name, t);
|
|
3944
3952
|
});
|
|
3945
3953
|
}
|
|
@@ -3947,16 +3955,17 @@ const pi = [
|
|
|
3947
3955
|
export {
|
|
3948
3956
|
jr as Button2,
|
|
3949
3957
|
lt as EthernetProtocolItem,
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
Xt as
|
|
3958
|
+
tr as Input,
|
|
3959
|
+
Qr as InputNumber,
|
|
3960
|
+
Jr as IpInput,
|
|
3961
|
+
Jt as ModbusTCPClientProtocolItem,
|
|
3962
|
+
Xt as ModbusTCPServerProtocolItem,
|
|
3963
|
+
Qt as ModbusTCPSlaveDeviceProtocolItem,
|
|
3955
3964
|
Br as MyButton,
|
|
3956
|
-
|
|
3957
|
-
|
|
3965
|
+
Ei as MyLibPlugin,
|
|
3966
|
+
rs as ProtocolCollection,
|
|
3958
3967
|
re as ProtocolItem,
|
|
3959
|
-
|
|
3960
|
-
|
|
3968
|
+
Ne as ProtocolType,
|
|
3969
|
+
pi as default,
|
|
3961
3970
|
it as protocolMap
|
|
3962
3971
|
};
|