lty-protocol 1.0.11 → 1.0.12

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