lty-protocol 1.0.18 → 1.0.19

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