smarteye-e-components 0.0.81 → 0.0.83

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,23 +1,23 @@
1
- import { h as et, getCurrentInstance as St, effectScope as es, inject as tt, onMounted as xe, onUnmounted as rt, ref as M, computed as V, watch as Ie, Fragment as ue, isRef as ts, createVNode as B, Text as ns, defineComponent as q, openBlock as S, createElementBlock as D, normalizeClass as ke, renderSlot as Y, createElementVNode as L, toDisplayString as z, createCommentVNode as ge, normalizeStyle as me, renderList as Ee, nextTick as os, resolveComponent as _e, withDirectives as Gn, withCtx as te, createBlock as Fe, vShow as zn, provide as ss, reactive as we, createTextVNode as Ct, unref as ae, Teleport as Hn, toRaw as ze } from "vue";
1
+ import { h as tt, getCurrentInstance as St, effectScope as ts, inject as ke, onMounted as Ve, onUnmounted as rt, ref as M, computed as F, watch as Le, Fragment as de, isRef as ns, createVNode as Q, Text as os, defineComponent as Z, openBlock as C, createElementBlock as P, normalizeClass as xe, renderSlot as J, createElementVNode as O, toDisplayString as j, createCommentVNode as ue, normalizeStyle as pe, renderList as Ee, nextTick as ss, resolveComponent as me, withDirectives as zn, withCtx as te, createBlock as Ne, vShow as Hn, provide as rs, reactive as be, createTextVNode as Ct, unref as ae, Teleport as jn, toRaw as He } from "vue";
2
2
  /*!
3
3
  * shared v9.2.2
4
4
  * (c) 2022 kazuya kawaguchi
5
5
  * Released under the MIT License.
6
6
  */
7
7
  const he = typeof window < "u";
8
- let ie, Te;
8
+ let ie, Se;
9
9
  if (process.env.NODE_ENV !== "production") {
10
10
  const e = he && window.performance;
11
- e && e.mark && e.measure && e.clearMarks && e.clearMeasures && (ie = (t) => e.mark(t), Te = (t, n, o) => {
11
+ e && e.mark && e.measure && e.clearMarks && e.clearMeasures && (ie = (t) => e.mark(t), Se = (t, n, o) => {
12
12
  e.measure(t, n, o), e.clearMarks(n), e.clearMarks(o);
13
13
  });
14
14
  }
15
- const rs = /\{([0-9a-zA-Z]+)\}/g;
15
+ const as = /\{([0-9a-zA-Z]+)\}/g;
16
16
  function Dt(e, ...t) {
17
- return t.length === 1 && x(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(rs, (n, o) => t.hasOwnProperty(o) ? t[o] : "");
17
+ return t.length === 1 && V(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(as, (n, o) => t.hasOwnProperty(o) ? t[o] : "");
18
18
  }
19
- const as = typeof Symbol == "function" && typeof Symbol.toStringTag == "symbol", ve = (e) => as ? Symbol(e) : e, ls = (e, t, n) => is({ l: e, k: t, s: n }), is = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), K = (e) => typeof e == "number" && isFinite(e), cs = (e) => $t(e) === "[object Date]", nt = (e) => $t(e) === "[object RegExp]", at = (e) => k(e) && Object.keys(e).length === 0;
20
- function Ve(e, t) {
19
+ const ls = typeof Symbol == "function" && typeof Symbol.toStringTag == "symbol", ve = (e) => ls ? Symbol(e) : e, is = (e, t, n) => cs({ l: e, k: t, s: n }), cs = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), X = (e) => typeof e == "number" && isFinite(e), us = (e) => $t(e) === "[object Date]", nt = (e) => $t(e) === "[object RegExp]", at = (e) => k(e) && Object.keys(e).length === 0;
20
+ function Ue(e, t) {
21
21
  typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
22
22
  }
23
23
  const ne = Object.assign;
@@ -26,12 +26,12 @@ const At = () => Wt || (Wt = typeof globalThis < "u" ? globalThis : typeof self
26
26
  function Bt(e) {
27
27
  return e.replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;");
28
28
  }
29
- const us = Object.prototype.hasOwnProperty;
29
+ const ds = Object.prototype.hasOwnProperty;
30
30
  function Pt(e, t) {
31
- return us.call(e, t);
31
+ return ds.call(e, t);
32
32
  }
33
- const H = Array.isArray, W = (e) => typeof e == "function", b = (e) => typeof e == "string", G = (e) => typeof e == "boolean", x = (e) => e !== null && typeof e == "object", jn = Object.prototype.toString, $t = (e) => jn.call(e), k = (e) => $t(e) === "[object Object]", ds = (e) => e == null ? "" : H(e) || k(e) && e.toString === jn ? JSON.stringify(e, null, 2) : String(e), Kt = 2;
34
- function fs(e, t = 0, n = e.length) {
33
+ const W = Array.isArray, Y = (e) => typeof e == "function", b = (e) => typeof e == "string", H = (e) => typeof e == "boolean", V = (e) => e !== null && typeof e == "object", Wn = Object.prototype.toString, $t = (e) => Wn.call(e), k = (e) => $t(e) === "[object Object]", fs = (e) => e == null ? "" : W(e) || k(e) && e.toString === Wn ? JSON.stringify(e, null, 2) : String(e), Kt = 2;
34
+ function _s(e, t = 0, n = e.length) {
35
35
  const o = e.split(/\r?\n/);
36
36
  let s = 0;
37
37
  const a = [];
@@ -44,12 +44,12 @@ function fs(e, t = 0, n = e.length) {
44
44
  a.push(`${i}${" ".repeat(3 - String(i).length)}| ${o[l]}`);
45
45
  const c = o[l].length;
46
46
  if (l === r) {
47
- const m = t - (s - c) + 1, d = Math.max(1, n > s ? c - m : n - t);
48
- a.push(" | " + " ".repeat(m) + "^".repeat(d));
47
+ const _ = t - (s - c) + 1, d = Math.max(1, n > s ? c - _ : n - t);
48
+ a.push(" | " + " ".repeat(_) + "^".repeat(d));
49
49
  } else if (l > r) {
50
50
  if (n > s) {
51
- const m = Math.max(Math.min(n - s, c), 1);
52
- a.push(" | " + "^".repeat(m));
51
+ const _ = Math.max(Math.min(n - s, c), 1);
52
+ a.push(" | " + "^".repeat(_));
53
53
  }
54
54
  s += c + 1;
55
55
  }
@@ -59,7 +59,7 @@ function fs(e, t = 0, n = e.length) {
59
59
  return a.join(`
60
60
  `);
61
61
  }
62
- function Wn() {
62
+ function Bn() {
63
63
  const e = /* @__PURE__ */ new Map();
64
64
  return {
65
65
  events: e,
@@ -81,7 +81,7 @@ function Wn() {
81
81
  * (c) 2022 kazuya kawaguchi
82
82
  * Released under the MIT License.
83
83
  */
84
- const Q = {
84
+ const q = {
85
85
  EXPECTED_TOKEN: 1,
86
86
  INVALID_TOKEN_IN_PLACEHOLDER: 2,
87
87
  UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER: 3,
@@ -97,24 +97,24 @@ const Q = {
97
97
  UNEXPECTED_EMPTY_LINKED_KEY: 13,
98
98
  UNEXPECTED_LEXICAL_ANALYSIS: 14,
99
99
  __EXTEND_POINT__: 15
100
- }, _s = {
101
- [Q.EXPECTED_TOKEN]: "Expected token: '{0}'",
102
- [Q.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
103
- [Q.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]: "Unterminated single quote in placeholder",
104
- [Q.UNKNOWN_ESCAPE_SEQUENCE]: "Unknown escape sequence: \\{0}",
105
- [Q.INVALID_UNICODE_ESCAPE_SEQUENCE]: "Invalid unicode escape sequence: {0}",
106
- [Q.UNBALANCED_CLOSING_BRACE]: "Unbalanced closing brace",
107
- [Q.UNTERMINATED_CLOSING_BRACE]: "Unterminated closing brace",
108
- [Q.EMPTY_PLACEHOLDER]: "Empty placeholder",
109
- [Q.NOT_ALLOW_NEST_PLACEHOLDER]: "Not allowed nest placeholder",
110
- [Q.INVALID_LINKED_FORMAT]: "Invalid linked format",
111
- [Q.MUST_HAVE_MESSAGES_IN_PLURAL]: "Plural must have messages",
112
- [Q.UNEXPECTED_EMPTY_LINKED_MODIFIER]: "Unexpected empty linked modifier",
113
- [Q.UNEXPECTED_EMPTY_LINKED_KEY]: "Unexpected empty linked key",
114
- [Q.UNEXPECTED_LEXICAL_ANALYSIS]: "Unexpected lexical analysis in token: '{0}'"
100
+ }, ms = {
101
+ [q.EXPECTED_TOKEN]: "Expected token: '{0}'",
102
+ [q.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
103
+ [q.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]: "Unterminated single quote in placeholder",
104
+ [q.UNKNOWN_ESCAPE_SEQUENCE]: "Unknown escape sequence: \\{0}",
105
+ [q.INVALID_UNICODE_ESCAPE_SEQUENCE]: "Invalid unicode escape sequence: {0}",
106
+ [q.UNBALANCED_CLOSING_BRACE]: "Unbalanced closing brace",
107
+ [q.UNTERMINATED_CLOSING_BRACE]: "Unterminated closing brace",
108
+ [q.EMPTY_PLACEHOLDER]: "Empty placeholder",
109
+ [q.NOT_ALLOW_NEST_PLACEHOLDER]: "Not allowed nest placeholder",
110
+ [q.INVALID_LINKED_FORMAT]: "Invalid linked format",
111
+ [q.MUST_HAVE_MESSAGES_IN_PLURAL]: "Plural must have messages",
112
+ [q.UNEXPECTED_EMPTY_LINKED_MODIFIER]: "Unexpected empty linked modifier",
113
+ [q.UNEXPECTED_EMPTY_LINKED_KEY]: "Unexpected empty linked key",
114
+ [q.UNEXPECTED_LEXICAL_ANALYSIS]: "Unexpected lexical analysis in token: '{0}'"
115
115
  };
116
- function Bn(e, t, n = {}) {
117
- const { domain: o, messages: s, args: a } = n, r = process.env.NODE_ENV !== "production" ? Dt((s || _s)[e] || "", ...a || []) : e, l = new SyntaxError(String(r));
116
+ function Kn(e, t, n = {}) {
117
+ const { domain: o, messages: s, args: a } = n, r = process.env.NODE_ENV !== "production" ? Dt((s || ms)[e] || "", ...a || []) : e, l = new SyntaxError(String(r));
118
118
  return l.code = e, t && (l.location = t), l.domain = o, l;
119
119
  }
120
120
  /*!
@@ -122,7 +122,7 @@ function Bn(e, t, n = {}) {
122
122
  * (c) 2022 kazuya kawaguchi
123
123
  * Released under the MIT License.
124
124
  */
125
- const Kn = {
125
+ const Yn = {
126
126
  I18nInit: "i18n:init",
127
127
  FunctionTranslate: "function:translate"
128
128
  };
@@ -131,25 +131,25 @@ const Kn = {
131
131
  * (c) 2022 kazuya kawaguchi
132
132
  * Released under the MIT License.
133
133
  */
134
- const Le = [];
135
- Le[0] = {
134
+ const Oe = [];
135
+ Oe[0] = {
136
136
  w: [0],
137
137
  i: [3, 0],
138
138
  ["["]: [4],
139
139
  o: [7]
140
140
  };
141
- Le[1] = {
141
+ Oe[1] = {
142
142
  w: [1],
143
143
  ["."]: [2],
144
144
  ["["]: [4],
145
145
  o: [7]
146
146
  };
147
- Le[2] = {
147
+ Oe[2] = {
148
148
  w: [2],
149
149
  i: [3, 0],
150
150
  [0]: [3, 0]
151
151
  };
152
- Le[3] = {
152
+ Oe[3] = {
153
153
  i: [3, 0],
154
154
  [0]: [3, 0],
155
155
  w: [1, 1],
@@ -157,7 +157,7 @@ Le[3] = {
157
157
  ["["]: [4, 1],
158
158
  o: [7, 1]
159
159
  };
160
- Le[4] = {
160
+ Oe[4] = {
161
161
  ["'"]: [5, 0],
162
162
  ['"']: [6, 0],
163
163
  ["["]: [
@@ -168,25 +168,25 @@ Le[4] = {
168
168
  o: 8,
169
169
  l: [4, 0]
170
170
  };
171
- Le[5] = {
171
+ Oe[5] = {
172
172
  ["'"]: [4, 0],
173
173
  o: 8,
174
174
  l: [5, 0]
175
175
  };
176
- Le[6] = {
176
+ Oe[6] = {
177
177
  ['"']: [4, 0],
178
178
  o: 8,
179
179
  l: [6, 0]
180
180
  };
181
- const ms = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
182
- function ps(e) {
183
- return ms.test(e);
184
- }
181
+ const ps = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
185
182
  function gs(e) {
183
+ return ps.test(e);
184
+ }
185
+ function hs(e) {
186
186
  const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
187
187
  return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
188
188
  }
189
- function hs(e) {
189
+ function vs(e) {
190
190
  if (e == null)
191
191
  return "o";
192
192
  switch (e.charCodeAt(0)) {
@@ -211,13 +211,13 @@ function hs(e) {
211
211
  }
212
212
  return "i";
213
213
  }
214
- function vs(e) {
214
+ function ys(e) {
215
215
  const t = e.trim();
216
- return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : ps(t) ? gs(t) : "*" + t;
216
+ return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : gs(t) ? hs(t) : "*" + t;
217
217
  }
218
- function ys(e) {
218
+ function ws(e) {
219
219
  const t = [];
220
- let n = -1, o = 0, s = 0, a, r, l, i, c, m, d;
220
+ let n = -1, o = 0, s = 0, a, r, l, i, c, _, d;
221
221
  const u = [];
222
222
  u[0] = () => {
223
223
  r === void 0 ? r = l : r += l;
@@ -229,19 +229,19 @@ function ys(e) {
229
229
  if (s > 0)
230
230
  s--, o = 4, u[0]();
231
231
  else {
232
- if (s = 0, r === void 0 || (r = vs(r), r === !1))
232
+ if (s = 0, r === void 0 || (r = ys(r), r === !1))
233
233
  return !1;
234
234
  u[1]();
235
235
  }
236
236
  };
237
- function p() {
238
- const y = e[n + 1];
239
- if (o === 5 && y === "'" || o === 6 && y === '"')
240
- return n++, l = "\\" + y, u[0](), !0;
237
+ function m() {
238
+ const E = e[n + 1];
239
+ if (o === 5 && E === "'" || o === 6 && E === '"')
240
+ return n++, l = "\\" + E, u[0](), !0;
241
241
  }
242
242
  for (; o !== null; )
243
- if (n++, a = e[n], !(a === "\\" && p())) {
244
- if (i = hs(a), d = Le[o], c = d[i] || d.l || 8, c === 8 || (o = c[0], c[1] !== void 0 && (m = u[c[1]], m && (l = a, m() === !1))))
243
+ if (n++, a = e[n], !(a === "\\" && m())) {
244
+ if (i = vs(a), d = Oe[o], c = d[i] || d.l || 8, c === 8 || (o = c[0], c[1] !== void 0 && (_ = u[c[1]], _ && (l = a, _() === !1))))
245
245
  return;
246
246
  if (o === 7)
247
247
  return t;
@@ -249,13 +249,13 @@ function ys(e) {
249
249
  }
250
250
  const Yt = /* @__PURE__ */ new Map();
251
251
  function Es(e, t) {
252
- return x(e) ? e[t] : null;
252
+ return V(e) ? e[t] : null;
253
253
  }
254
- function ws(e, t) {
255
- if (!x(e))
254
+ function Ls(e, t) {
255
+ if (!V(e))
256
256
  return null;
257
257
  let n = Yt.get(t);
258
- if (n || (n = ys(t), n && Yt.set(t, n)), !n)
258
+ if (n || (n = ws(t), n && Yt.set(t, n)), !n)
259
259
  return null;
260
260
  const o = n.length;
261
261
  let s = e, a = 0;
@@ -267,58 +267,58 @@ function ws(e, t) {
267
267
  }
268
268
  return s;
269
269
  }
270
- const Ls = (e) => e, bs = (e) => "", Os = "text", Is = (e) => e.length === 0 ? "" : e.join(""), Ts = ds;
270
+ const bs = (e) => e, Os = (e) => "", Is = "text", Ts = (e) => e.length === 0 ? "" : e.join(""), Ns = fs;
271
271
  function Xt(e, t) {
272
272
  return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
273
273
  }
274
- function Ns(e) {
275
- const t = K(e.pluralIndex) ? e.pluralIndex : -1;
276
- return e.named && (K(e.named.count) || K(e.named.n)) ? K(e.named.count) ? e.named.count : K(e.named.n) ? e.named.n : t : t;
274
+ function Ss(e) {
275
+ const t = X(e.pluralIndex) ? e.pluralIndex : -1;
276
+ return e.named && (X(e.named.count) || X(e.named.n)) ? X(e.named.count) ? e.named.count : X(e.named.n) ? e.named.n : t : t;
277
277
  }
278
- function Ss(e, t) {
278
+ function Cs(e, t) {
279
279
  t.count || (t.count = e), t.n || (t.n = e);
280
280
  }
281
- function Cs(e = {}) {
282
- const t = e.locale, n = Ns(e), o = x(e.pluralRules) && b(t) && W(e.pluralRules[t]) ? e.pluralRules[t] : Xt, s = x(e.pluralRules) && b(t) && W(e.pluralRules[t]) ? Xt : void 0, a = (f) => f[o(n, f.length, s)], r = e.list || [], l = (f) => r[f], i = e.named || {};
283
- K(e.pluralIndex) && Ss(n, i);
284
- const c = (f) => i[f];
285
- function m(f) {
286
- const g = W(e.messages) ? e.messages(f) : x(e.messages) ? e.messages[f] : !1;
287
- return g || (e.parent ? e.parent.message(f) : bs);
281
+ function Ds(e = {}) {
282
+ const t = e.locale, n = Ss(e), o = V(e.pluralRules) && b(t) && Y(e.pluralRules[t]) ? e.pluralRules[t] : Xt, s = V(e.pluralRules) && b(t) && Y(e.pluralRules[t]) ? Xt : void 0, a = (h) => h[o(n, h.length, s)], r = e.list || [], l = (h) => r[h], i = e.named || {};
283
+ X(e.pluralIndex) && Cs(n, i);
284
+ const c = (h) => i[h];
285
+ function _(h) {
286
+ const w = Y(e.messages) ? e.messages(h) : V(e.messages) ? e.messages[h] : !1;
287
+ return w || (e.parent ? e.parent.message(h) : Os);
288
288
  }
289
- const d = (f) => e.modifiers ? e.modifiers[f] : Ls, u = k(e.processor) && W(e.processor.normalize) ? e.processor.normalize : Is, p = k(e.processor) && W(e.processor.interpolate) ? e.processor.interpolate : Ts, y = k(e.processor) && b(e.processor.type) ? e.processor.type : Os, w = {
289
+ const d = (h) => e.modifiers ? e.modifiers[h] : bs, u = k(e.processor) && Y(e.processor.normalize) ? e.processor.normalize : Ts, m = k(e.processor) && Y(e.processor.interpolate) ? e.processor.interpolate : Ns, E = k(e.processor) && b(e.processor.type) ? e.processor.type : Is, y = {
290
290
  list: l,
291
291
  named: c,
292
292
  plural: a,
293
- linked: (f, ...g) => {
294
- const [T, O] = g;
295
- let v = "text", A = "";
296
- g.length === 1 ? x(T) ? (A = T.modifier || A, v = T.type || v) : b(T) && (A = T || A) : g.length === 2 && (b(T) && (A = T || A), b(O) && (v = O || v));
297
- let $ = m(f)(w);
298
- return v === "vnode" && H($) && A && ($ = $[0]), A ? d(A)($, v) : $;
293
+ linked: (h, ...w) => {
294
+ const [A, D] = w;
295
+ let v = "text", p = "";
296
+ w.length === 1 ? V(A) ? (p = A.modifier || p, v = A.type || v) : b(A) && (p = A || p) : w.length === 2 && (b(A) && (p = A || p), b(D) && (v = D || v));
297
+ let T = _(h)(y);
298
+ return v === "vnode" && W(T) && p && (T = T[0]), p ? d(p)(T, v) : T;
299
299
  },
300
- message: m,
301
- type: y,
302
- interpolate: p,
300
+ message: _,
301
+ type: E,
302
+ interpolate: m,
303
303
  normalize: u
304
304
  };
305
- return w;
305
+ return y;
306
306
  }
307
- let Be = null;
308
- function Ds(e) {
309
- Be = e;
307
+ let Ke = null;
308
+ function As(e) {
309
+ Ke = e;
310
310
  }
311
- function As(e, t, n) {
312
- Be && Be.emit(Kn.I18nInit, {
311
+ function Ps(e, t, n) {
312
+ Ke && Ke.emit(Yn.I18nInit, {
313
313
  timestamp: Date.now(),
314
314
  i18n: e,
315
315
  version: t,
316
316
  meta: n
317
317
  });
318
318
  }
319
- const Ps = /* @__PURE__ */ $s(Kn.FunctionTranslate);
320
- function $s(e) {
321
- return (t) => Be && Be.emit(e, t);
319
+ const $s = /* @__PURE__ */ Ms(Yn.FunctionTranslate);
320
+ function Ms(e) {
321
+ return (t) => Ke && Ke.emit(e, t);
322
322
  }
323
323
  const le = {
324
324
  NOT_FOUND_KEY: 1,
@@ -328,7 +328,7 @@ const le = {
328
328
  CANNOT_FORMAT_DATE: 5,
329
329
  FALLBACK_TO_DATE_FORMAT: 6,
330
330
  __EXTEND_POINT__: 7
331
- }, Ms = {
331
+ }, ks = {
332
332
  [le.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
333
333
  [le.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
334
334
  [le.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
@@ -336,84 +336,84 @@ const le = {
336
336
  [le.CANNOT_FORMAT_DATE]: "Cannot format a date value due to not supported Intl.DateTimeFormat.",
337
337
  [le.FALLBACK_TO_DATE_FORMAT]: "Fall back to datetime format '{key}' key with '{target}' locale."
338
338
  };
339
- function Re(e, ...t) {
340
- return Dt(Ms[e], ...t);
339
+ function Fe(e, ...t) {
340
+ return Dt(ks[e], ...t);
341
341
  }
342
- function ks(e, t, n) {
342
+ function Rs(e, t, n) {
343
343
  return [.../* @__PURE__ */ new Set([
344
344
  n,
345
- ...H(t) ? t : x(t) ? Object.keys(t) : b(t) ? [t] : [n]
345
+ ...W(t) ? t : V(t) ? Object.keys(t) : b(t) ? [t] : [n]
346
346
  ])];
347
347
  }
348
- function Yn(e, t, n) {
348
+ function Xn(e, t, n) {
349
349
  const o = b(n) ? n : Mt, s = e;
350
350
  s.__localeChainCache || (s.__localeChainCache = /* @__PURE__ */ new Map());
351
351
  let a = s.__localeChainCache.get(o);
352
352
  if (!a) {
353
353
  a = [];
354
354
  let r = [n];
355
- for (; H(r); )
355
+ for (; W(r); )
356
356
  r = Jt(a, r, t);
357
- const l = H(t) || !k(t) ? t : t.default ? t.default : null;
358
- r = b(l) ? [l] : l, H(r) && Jt(a, r, !1), s.__localeChainCache.set(o, a);
357
+ const l = W(t) || !k(t) ? t : t.default ? t.default : null;
358
+ r = b(l) ? [l] : l, W(r) && Jt(a, r, !1), s.__localeChainCache.set(o, a);
359
359
  }
360
360
  return a;
361
361
  }
362
362
  function Jt(e, t, n) {
363
363
  let o = !0;
364
- for (let s = 0; s < t.length && G(o); s++) {
364
+ for (let s = 0; s < t.length && H(o); s++) {
365
365
  const a = t[s];
366
- b(a) && (o = Rs(e, t[s], n));
366
+ b(a) && (o = xs(e, t[s], n));
367
367
  }
368
368
  return o;
369
369
  }
370
- function Rs(e, t, n) {
370
+ function xs(e, t, n) {
371
371
  let o;
372
372
  const s = t.split("-");
373
373
  do {
374
374
  const a = s.join("-");
375
- o = xs(e, a, n), s.splice(-1, 1);
375
+ o = Fs(e, a, n), s.splice(-1, 1);
376
376
  } while (s.length && o === !0);
377
377
  return o;
378
378
  }
379
- function xs(e, t, n) {
379
+ function Fs(e, t, n) {
380
380
  let o = !1;
381
381
  if (!e.includes(t) && (o = !0, t)) {
382
382
  o = t[t.length - 1] !== "!";
383
383
  const s = t.replace(/!/g, "");
384
- e.push(s), (H(n) || k(n)) && n[s] && (o = n[s]);
384
+ e.push(s), (W(n) || k(n)) && n[s] && (o = n[s]);
385
385
  }
386
386
  return o;
387
387
  }
388
- const Fs = "9.2.2", lt = -1, Mt = "en-US", ot = "", Qt = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
389
- function Vs() {
388
+ const Vs = "9.2.2", lt = -1, Mt = "en-US", ot = "", Qt = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
389
+ function Us() {
390
390
  return {
391
- upper: (e, t) => t === "text" && b(e) ? e.toUpperCase() : t === "vnode" && x(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
392
- lower: (e, t) => t === "text" && b(e) ? e.toLowerCase() : t === "vnode" && x(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
393
- capitalize: (e, t) => t === "text" && b(e) ? Qt(e) : t === "vnode" && x(e) && "__v_isVNode" in e ? Qt(e.children) : e
391
+ upper: (e, t) => t === "text" && b(e) ? e.toUpperCase() : t === "vnode" && V(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
392
+ lower: (e, t) => t === "text" && b(e) ? e.toLowerCase() : t === "vnode" && V(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
393
+ capitalize: (e, t) => t === "text" && b(e) ? Qt(e) : t === "vnode" && V(e) && "__v_isVNode" in e ? Qt(e.children) : e
394
394
  };
395
395
  }
396
- let Us, Xn;
397
- function Gs(e) {
398
- Xn = e;
399
- }
400
- let Jn;
396
+ let Gs, Jn;
401
397
  function zs(e) {
402
398
  Jn = e;
403
399
  }
404
- let Qn = null;
405
- const qt = (e) => {
400
+ let Qn;
401
+ function Hs(e) {
406
402
  Qn = e;
407
- }, Hs = () => Qn;
403
+ }
408
404
  let qn = null;
409
- const Zt = (e) => {
405
+ const qt = (e) => {
410
406
  qn = e;
411
407
  }, js = () => qn;
408
+ let Zn = null;
409
+ const Zt = (e) => {
410
+ Zn = e;
411
+ }, Ws = () => Zn;
412
412
  let en = 0;
413
- function Ws(e = {}) {
414
- const t = b(e.version) ? e.version : Fs, n = b(e.locale) ? e.locale : Mt, o = H(e.fallbackLocale) || k(e.fallbackLocale) || b(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : n, s = k(e.messages) ? e.messages : { [n]: {} }, a = k(e.datetimeFormats) ? e.datetimeFormats : { [n]: {} }, r = k(e.numberFormats) ? e.numberFormats : { [n]: {} }, l = ne({}, e.modifiers || {}, Vs()), i = e.pluralRules || {}, c = W(e.missing) ? e.missing : null, m = G(e.missingWarn) || nt(e.missingWarn) ? e.missingWarn : !0, d = G(e.fallbackWarn) || nt(e.fallbackWarn) ? e.fallbackWarn : !0, u = !!e.fallbackFormat, p = !!e.unresolving, y = W(e.postTranslation) ? e.postTranslation : null, E = k(e.processor) ? e.processor : null, w = G(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, f = !!e.escapeParameter, g = W(e.messageCompiler) ? e.messageCompiler : Us, T = W(e.messageResolver) ? e.messageResolver : Xn || Es, O = W(e.localeFallbacker) ? e.localeFallbacker : Jn || ks, v = x(e.fallbackContext) ? e.fallbackContext : void 0, A = W(e.onWarn) ? e.onWarn : Ve, $ = e, C = x($.__datetimeFormatters) ? $.__datetimeFormatters : /* @__PURE__ */ new Map(), X = x($.__numberFormatters) ? $.__numberFormatters : /* @__PURE__ */ new Map(), Z = x($.__meta) ? $.__meta : {};
413
+ function Bs(e = {}) {
414
+ const t = b(e.version) ? e.version : Vs, n = b(e.locale) ? e.locale : Mt, o = W(e.fallbackLocale) || k(e.fallbackLocale) || b(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : n, s = k(e.messages) ? e.messages : { [n]: {} }, a = k(e.datetimeFormats) ? e.datetimeFormats : { [n]: {} }, r = k(e.numberFormats) ? e.numberFormats : { [n]: {} }, l = ne({}, e.modifiers || {}, Us()), i = e.pluralRules || {}, c = Y(e.missing) ? e.missing : null, _ = H(e.missingWarn) || nt(e.missingWarn) ? e.missingWarn : !0, d = H(e.fallbackWarn) || nt(e.fallbackWarn) ? e.fallbackWarn : !0, u = !!e.fallbackFormat, m = !!e.unresolving, E = Y(e.postTranslation) ? e.postTranslation : null, L = k(e.processor) ? e.processor : null, y = H(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, h = !!e.escapeParameter, w = Y(e.messageCompiler) ? e.messageCompiler : Gs, A = Y(e.messageResolver) ? e.messageResolver : Jn || Es, D = Y(e.localeFallbacker) ? e.localeFallbacker : Qn || Rs, v = V(e.fallbackContext) ? e.fallbackContext : void 0, p = Y(e.onWarn) ? e.onWarn : Ue, T = e, N = V(T.__datetimeFormatters) ? T.__datetimeFormatters : /* @__PURE__ */ new Map(), R = V(T.__numberFormatters) ? T.__numberFormatters : /* @__PURE__ */ new Map(), G = V(T.__meta) ? T.__meta : {};
415
415
  en++;
416
- const J = {
416
+ const K = {
417
417
  version: t,
418
418
  cid: en,
419
419
  locale: n,
@@ -422,27 +422,27 @@ function Ws(e = {}) {
422
422
  modifiers: l,
423
423
  pluralRules: i,
424
424
  missing: c,
425
- missingWarn: m,
425
+ missingWarn: _,
426
426
  fallbackWarn: d,
427
427
  fallbackFormat: u,
428
- unresolving: p,
429
- postTranslation: y,
430
- processor: E,
431
- warnHtmlMessage: w,
432
- escapeParameter: f,
433
- messageCompiler: g,
434
- messageResolver: T,
435
- localeFallbacker: O,
428
+ unresolving: m,
429
+ postTranslation: E,
430
+ processor: L,
431
+ warnHtmlMessage: y,
432
+ escapeParameter: h,
433
+ messageCompiler: w,
434
+ messageResolver: A,
435
+ localeFallbacker: D,
436
436
  fallbackContext: v,
437
- onWarn: A,
438
- __meta: Z
437
+ onWarn: p,
438
+ __meta: G
439
439
  };
440
- return J.datetimeFormats = a, J.numberFormats = r, J.__datetimeFormatters = C, J.__numberFormatters = X, process.env.NODE_ENV !== "production" && (J.__v_emitter = $.__v_emitter != null ? $.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && As(J, t, Z), J;
440
+ return K.datetimeFormats = a, K.numberFormats = r, K.__datetimeFormatters = N, K.__numberFormatters = R, process.env.NODE_ENV !== "production" && (K.__v_emitter = T.__v_emitter != null ? T.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && Ps(K, t, G), K;
441
441
  }
442
442
  function it(e, t) {
443
443
  return e instanceof RegExp ? e.test(t) : e;
444
444
  }
445
- function Zn(e, t) {
445
+ function eo(e, t) {
446
446
  return e instanceof RegExp ? e.test(t) : e;
447
447
  }
448
448
  function kt(e, t, n, o, s) {
@@ -460,109 +460,109 @@ function kt(e, t, n, o, s) {
460
460
  const l = a(e, n, t, s);
461
461
  return b(l) ? l : t;
462
462
  } else
463
- return process.env.NODE_ENV !== "production" && Zn(o, t) && r(Re(le.NOT_FOUND_KEY, { key: t, locale: n })), t;
463
+ return process.env.NODE_ENV !== "production" && eo(o, t) && r(Fe(le.NOT_FOUND_KEY, { key: t, locale: n })), t;
464
464
  }
465
- function Ge(e, t, n) {
465
+ function ze(e, t, n) {
466
466
  const o = e;
467
467
  o.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
468
468
  }
469
- let eo = Q.__EXTEND_POINT__;
470
- const _t = () => ++eo, ye = {
471
- INVALID_ARGUMENT: eo,
469
+ let to = q.__EXTEND_POINT__;
470
+ const _t = () => ++to, we = {
471
+ INVALID_ARGUMENT: to,
472
472
  INVALID_DATE_ARGUMENT: _t(),
473
473
  INVALID_ISO_DATE_ARGUMENT: _t(),
474
474
  __EXTEND_POINT__: _t()
475
475
  };
476
- function Me(e) {
477
- return Bn(e, null, process.env.NODE_ENV !== "production" ? { messages: Bs } : void 0);
478
- }
479
- const Bs = {
480
- [ye.INVALID_ARGUMENT]: "Invalid arguments",
481
- [ye.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
482
- [ye.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string"
483
- }, tn = () => "", pe = (e) => W(e);
476
+ function Re(e) {
477
+ return Kn(e, null, process.env.NODE_ENV !== "production" ? { messages: Ks } : void 0);
478
+ }
479
+ const Ks = {
480
+ [we.INVALID_ARGUMENT]: "Invalid arguments",
481
+ [we.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
482
+ [we.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string"
483
+ }, tn = () => "", ge = (e) => Y(e);
484
484
  function nn(e, ...t) {
485
- const { fallbackFormat: n, postTranslation: o, unresolving: s, messageCompiler: a, fallbackLocale: r, messages: l } = e, [i, c] = gt(...t), m = G(c.missingWarn) ? c.missingWarn : e.missingWarn, d = G(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, u = G(c.escapeParameter) ? c.escapeParameter : e.escapeParameter, p = !!c.resolvedMessage, y = b(c.default) || G(c.default) ? G(c.default) ? a ? i : () => i : c.default : n ? a ? i : () => i : "", E = n || y !== "", w = b(c.locale) ? c.locale : e.locale;
486
- u && Ks(c);
487
- let [f, g, T] = p ? [
485
+ const { fallbackFormat: n, postTranslation: o, unresolving: s, messageCompiler: a, fallbackLocale: r, messages: l } = e, [i, c] = gt(...t), _ = H(c.missingWarn) ? c.missingWarn : e.missingWarn, d = H(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, u = H(c.escapeParameter) ? c.escapeParameter : e.escapeParameter, m = !!c.resolvedMessage, E = b(c.default) || H(c.default) ? H(c.default) ? a ? i : () => i : c.default : n ? a ? i : () => i : "", L = n || E !== "", y = b(c.locale) ? c.locale : e.locale;
486
+ u && Ys(c);
487
+ let [h, w, A] = m ? [
488
488
  i,
489
- w,
490
- l[w] || {}
491
- ] : to(e, i, w, r, d, m), O = f, v = i;
492
- if (!p && !(b(O) || pe(O)) && E && (O = y, v = O), !p && (!(b(O) || pe(O)) || !b(g)))
489
+ y,
490
+ l[y] || {}
491
+ ] : no(e, i, y, r, d, _), D = h, v = i;
492
+ if (!m && !(b(D) || ge(D)) && L && (D = E, v = D), !m && (!(b(D) || ge(D)) || !b(w)))
493
493
  return s ? lt : i;
494
- if (process.env.NODE_ENV !== "production" && b(O) && e.messageCompiler == null)
495
- return Ve(`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 '${i}'.`), i;
496
- let A = !1;
497
- const $ = () => {
498
- A = !0;
499
- }, C = pe(O) ? O : no(e, i, g, O, v, $);
500
- if (A)
501
- return O;
502
- const X = Js(e, g, T, c), Z = Cs(X), J = Ys(e, C, Z), De = o ? o(J, i) : J;
494
+ if (process.env.NODE_ENV !== "production" && b(D) && e.messageCompiler == null)
495
+ 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 '${i}'.`), i;
496
+ let p = !1;
497
+ const T = () => {
498
+ p = !0;
499
+ }, N = ge(D) ? D : oo(e, i, w, D, v, T);
500
+ if (p)
501
+ return D;
502
+ const R = Qs(e, w, A, c), G = Ds(R), K = Xs(e, N, G), ye = o ? o(K, i) : K;
503
503
  if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
504
504
  const I = {
505
505
  timestamp: Date.now(),
506
- key: b(i) ? i : pe(O) ? O.key : "",
507
- locale: g || (pe(O) ? O.locale : ""),
508
- format: b(O) ? O : pe(O) ? O.source : "",
509
- message: De
506
+ key: b(i) ? i : ge(D) ? D.key : "",
507
+ locale: w || (ge(D) ? D.locale : ""),
508
+ format: b(D) ? D : ge(D) ? D.source : "",
509
+ message: ye
510
510
  };
511
- I.meta = ne({}, e.__meta, Hs() || {}), Ps(I);
511
+ I.meta = ne({}, e.__meta, js() || {}), $s(I);
512
512
  }
513
- return De;
513
+ return ye;
514
514
  }
515
- function Ks(e) {
516
- H(e.list) ? e.list = e.list.map((t) => b(t) ? Bt(t) : t) : x(e.named) && Object.keys(e.named).forEach((t) => {
515
+ function Ys(e) {
516
+ W(e.list) ? e.list = e.list.map((t) => b(t) ? Bt(t) : t) : V(e.named) && Object.keys(e.named).forEach((t) => {
517
517
  b(e.named[t]) && (e.named[t] = Bt(e.named[t]));
518
518
  });
519
519
  }
520
- function to(e, t, n, o, s, a) {
521
- const { messages: r, onWarn: l, messageResolver: i, localeFallbacker: c } = e, m = c(e, o, n);
522
- let d = {}, u, p = null, y = n, E = null;
523
- const w = "translate";
524
- for (let f = 0; f < m.length; f++) {
525
- if (u = E = m[f], process.env.NODE_ENV !== "production" && n !== u && it(s, t) && l(Re(le.FALLBACK_TO_TRANSLATE, {
520
+ function no(e, t, n, o, s, a) {
521
+ const { messages: r, onWarn: l, messageResolver: i, localeFallbacker: c } = e, _ = c(e, o, n);
522
+ let d = {}, u, m = null, E = n, L = null;
523
+ const y = "translate";
524
+ for (let h = 0; h < _.length; h++) {
525
+ if (u = L = _[h], process.env.NODE_ENV !== "production" && n !== u && it(s, t) && l(Fe(le.FALLBACK_TO_TRANSLATE, {
526
526
  key: t,
527
527
  target: u
528
528
  })), process.env.NODE_ENV !== "production" && n !== u) {
529
- const A = e.__v_emitter;
530
- A && A.emit("fallback", {
531
- type: w,
529
+ const p = e.__v_emitter;
530
+ p && p.emit("fallback", {
531
+ type: y,
532
532
  key: t,
533
- from: y,
534
- to: E,
535
- groupId: `${w}:${t}`
533
+ from: E,
534
+ to: L,
535
+ groupId: `${y}:${t}`
536
536
  });
537
537
  }
538
538
  d = r[u] || {};
539
- let g = null, T, O;
540
- if (process.env.NODE_ENV !== "production" && he && (g = window.performance.now(), T = "intlify-message-resolve-start", O = "intlify-message-resolve-end", ie && ie(T)), (p = i(d, t)) === null && (p = d[t]), process.env.NODE_ENV !== "production" && he) {
541
- const A = window.performance.now(), $ = e.__v_emitter;
542
- $ && g && p && $.emit("message-resolve", {
539
+ let w = null, A, D;
540
+ if (process.env.NODE_ENV !== "production" && he && (w = window.performance.now(), A = "intlify-message-resolve-start", D = "intlify-message-resolve-end", ie && ie(A)), (m = i(d, t)) === null && (m = d[t]), process.env.NODE_ENV !== "production" && he) {
541
+ const p = window.performance.now(), T = e.__v_emitter;
542
+ T && w && m && T.emit("message-resolve", {
543
543
  type: "message-resolve",
544
544
  key: t,
545
- message: p,
546
- time: A - g,
547
- groupId: `${w}:${t}`
548
- }), T && O && ie && Te && (ie(O), Te("intlify message resolve", T, O));
545
+ message: m,
546
+ time: p - w,
547
+ groupId: `${y}:${t}`
548
+ }), A && D && ie && Se && (ie(D), Se("intlify message resolve", A, D));
549
549
  }
550
- if (b(p) || W(p))
550
+ if (b(m) || Y(m))
551
551
  break;
552
552
  const v = kt(
553
553
  e,
554
554
  t,
555
555
  u,
556
556
  a,
557
- w
557
+ y
558
558
  );
559
- v !== t && (p = v), y = E;
559
+ v !== t && (m = v), E = L;
560
560
  }
561
- return [p, u, d];
561
+ return [m, u, d];
562
562
  }
563
- function no(e, t, n, o, s, a) {
563
+ function oo(e, t, n, o, s, a) {
564
564
  const { messageCompiler: r, warnHtmlMessage: l } = e;
565
- if (pe(o)) {
565
+ if (ge(o)) {
566
566
  const u = o;
567
567
  return u.locale = u.locale || n, u.key = u.key || t, u;
568
568
  }
@@ -570,21 +570,21 @@ function no(e, t, n, o, s, a) {
570
570
  const u = () => o;
571
571
  return u.locale = n, u.key = t, u;
572
572
  }
573
- let i = null, c, m;
574
- process.env.NODE_ENV !== "production" && he && (i = window.performance.now(), c = "intlify-message-compilation-start", m = "intlify-message-compilation-end", ie && ie(c));
575
- const d = r(o, Xs(e, n, s, o, l, a));
573
+ let i = null, c, _;
574
+ process.env.NODE_ENV !== "production" && he && (i = window.performance.now(), c = "intlify-message-compilation-start", _ = "intlify-message-compilation-end", ie && ie(c));
575
+ const d = r(o, Js(e, n, s, o, l, a));
576
576
  if (process.env.NODE_ENV !== "production" && he) {
577
- const u = window.performance.now(), p = e.__v_emitter;
578
- p && i && p.emit("message-compilation", {
577
+ const u = window.performance.now(), m = e.__v_emitter;
578
+ m && i && m.emit("message-compilation", {
579
579
  type: "message-compilation",
580
580
  message: o,
581
581
  time: u - i,
582
582
  groupId: `translate:${t}`
583
- }), c && m && ie && Te && (ie(m), Te("intlify message compilation", c, m));
583
+ }), c && _ && ie && Se && (ie(_), Se("intlify message compilation", c, _));
584
584
  }
585
585
  return d.locale = n, d.key = t, d.source = o, d;
586
586
  }
587
- function Ys(e, t, n) {
587
+ function Xs(e, t, n) {
588
588
  let o = null, s, a;
589
589
  process.env.NODE_ENV !== "production" && he && (o = window.performance.now(), s = "intlify-message-evaluation-start", a = "intlify-message-evaluation-end", ie && ie(s));
590
590
  const r = t(n);
@@ -595,23 +595,23 @@ function Ys(e, t, n) {
595
595
  value: r,
596
596
  time: l - o,
597
597
  groupId: `translate:${t.key}`
598
- }), s && a && ie && Te && (ie(a), Te("intlify message evaluation", s, a));
598
+ }), s && a && ie && Se && (ie(a), Se("intlify message evaluation", s, a));
599
599
  }
600
600
  return r;
601
601
  }
602
602
  function gt(...e) {
603
603
  const [t, n, o] = e, s = {};
604
- if (!b(t) && !K(t) && !pe(t))
605
- throw Me(ye.INVALID_ARGUMENT);
606
- const a = K(t) ? String(t) : (pe(t), t);
607
- return K(n) ? s.plural = n : b(n) ? s.default = n : k(n) && !at(n) ? s.named = n : H(n) && (s.list = n), K(o) ? s.plural = o : b(o) ? s.default = o : k(o) && ne(s, o), [a, s];
604
+ if (!b(t) && !X(t) && !ge(t))
605
+ throw Re(we.INVALID_ARGUMENT);
606
+ const a = X(t) ? String(t) : (ge(t), t);
607
+ return X(n) ? s.plural = n : b(n) ? s.default = n : k(n) && !at(n) ? s.named = n : W(n) && (s.list = n), X(o) ? s.plural = o : b(o) ? s.default = o : k(o) && ne(s, o), [a, s];
608
608
  }
609
- function Xs(e, t, n, o, s, a) {
609
+ function Js(e, t, n, o, s, a) {
610
610
  return {
611
611
  warnHtmlMessage: s,
612
612
  onError: (r) => {
613
613
  if (a && a(r), process.env.NODE_ENV !== "production") {
614
- const l = `Message compilation error: ${r.message}`, i = r.location && fs(o, r.location.start.offset, r.location.end.offset), c = e.__v_emitter;
614
+ const l = `Message compilation error: ${r.message}`, i = r.location && _s(o, r.location.start.offset, r.location.end.offset), c = e.__v_emitter;
615
615
  c && c.emit("compile-error", {
616
616
  message: o,
617
617
  error: r.message,
@@ -623,75 +623,75 @@ ${i}` : l);
623
623
  } else
624
624
  throw r;
625
625
  },
626
- onCacheKey: (r) => ls(t, n, r)
626
+ onCacheKey: (r) => is(t, n, r)
627
627
  };
628
628
  }
629
- function Js(e, t, n, o) {
630
- const { modifiers: s, pluralRules: a, messageResolver: r, fallbackLocale: l, fallbackWarn: i, missingWarn: c, fallbackContext: m } = e, u = {
629
+ function Qs(e, t, n, o) {
630
+ const { modifiers: s, pluralRules: a, messageResolver: r, fallbackLocale: l, fallbackWarn: i, missingWarn: c, fallbackContext: _ } = e, u = {
631
631
  locale: t,
632
632
  modifiers: s,
633
633
  pluralRules: a,
634
- messages: (p) => {
635
- let y = r(n, p);
636
- if (y == null && m) {
637
- const [, , E] = to(m, p, t, l, i, c);
638
- y = r(E, p);
634
+ messages: (m) => {
635
+ let E = r(n, m);
636
+ if (E == null && _) {
637
+ const [, , L] = no(_, m, t, l, i, c);
638
+ E = r(L, m);
639
639
  }
640
- if (b(y)) {
641
- let E = !1;
642
- const f = no(e, p, t, y, p, () => {
643
- E = !0;
640
+ if (b(E)) {
641
+ let L = !1;
642
+ const h = oo(e, m, t, E, m, () => {
643
+ L = !0;
644
644
  });
645
- return E ? tn : f;
645
+ return L ? tn : h;
646
646
  } else
647
- return pe(y) ? y : tn;
647
+ return ge(E) ? E : tn;
648
648
  }
649
649
  };
650
- return e.processor && (u.processor = e.processor), o.list && (u.list = o.list), o.named && (u.named = o.named), K(o.plural) && (u.pluralIndex = o.plural), u;
650
+ return e.processor && (u.processor = e.processor), o.list && (u.list = o.list), o.named && (u.named = o.named), X(o.plural) && (u.pluralIndex = o.plural), u;
651
651
  }
652
- const on = typeof Intl < "u", oo = {
652
+ const on = typeof Intl < "u", so = {
653
653
  dateTimeFormat: on && typeof Intl.DateTimeFormat < "u",
654
654
  numberFormat: on && typeof Intl.NumberFormat < "u"
655
655
  };
656
656
  function sn(e, ...t) {
657
657
  const { datetimeFormats: n, unresolving: o, fallbackLocale: s, onWarn: a, localeFallbacker: r } = e, { __datetimeFormatters: l } = e;
658
- if (process.env.NODE_ENV !== "production" && !oo.dateTimeFormat)
659
- return a(Re(le.CANNOT_FORMAT_DATE)), ot;
660
- const [i, c, m, d] = ht(...t), u = G(m.missingWarn) ? m.missingWarn : e.missingWarn, p = G(m.fallbackWarn) ? m.fallbackWarn : e.fallbackWarn, y = !!m.part, E = b(m.locale) ? m.locale : e.locale, w = r(
658
+ if (process.env.NODE_ENV !== "production" && !so.dateTimeFormat)
659
+ return a(Fe(le.CANNOT_FORMAT_DATE)), ot;
660
+ const [i, c, _, d] = ht(...t), u = H(_.missingWarn) ? _.missingWarn : e.missingWarn, m = H(_.fallbackWarn) ? _.fallbackWarn : e.fallbackWarn, E = !!_.part, L = b(_.locale) ? _.locale : e.locale, y = r(
661
661
  e,
662
662
  s,
663
- E
663
+ L
664
664
  );
665
665
  if (!b(i) || i === "")
666
- return new Intl.DateTimeFormat(E, d).format(c);
667
- let f = {}, g, T = null, O = E, v = null;
668
- const A = "datetime format";
669
- for (let X = 0; X < w.length; X++) {
670
- if (g = v = w[X], process.env.NODE_ENV !== "production" && E !== g && it(p, i) && a(Re(le.FALLBACK_TO_DATE_FORMAT, {
666
+ return new Intl.DateTimeFormat(L, d).format(c);
667
+ let h = {}, w, A = null, D = L, v = null;
668
+ const p = "datetime format";
669
+ for (let R = 0; R < y.length; R++) {
670
+ if (w = v = y[R], process.env.NODE_ENV !== "production" && L !== w && it(m, i) && a(Fe(le.FALLBACK_TO_DATE_FORMAT, {
671
671
  key: i,
672
- target: g
673
- })), process.env.NODE_ENV !== "production" && E !== g) {
674
- const Z = e.__v_emitter;
675
- Z && Z.emit("fallback", {
676
- type: A,
672
+ target: w
673
+ })), process.env.NODE_ENV !== "production" && L !== w) {
674
+ const G = e.__v_emitter;
675
+ G && G.emit("fallback", {
676
+ type: p,
677
677
  key: i,
678
- from: O,
678
+ from: D,
679
679
  to: v,
680
- groupId: `${A}:${i}`
680
+ groupId: `${p}:${i}`
681
681
  });
682
682
  }
683
- if (f = n[g] || {}, T = f[i], k(T))
683
+ if (h = n[w] || {}, A = h[i], k(A))
684
684
  break;
685
- kt(e, i, g, u, A), O = v;
685
+ kt(e, i, w, u, p), D = v;
686
686
  }
687
- if (!k(T) || !b(g))
687
+ if (!k(A) || !b(w))
688
688
  return o ? lt : i;
689
- let $ = `${g}__${i}`;
690
- at(d) || ($ = `${$}__${JSON.stringify(d)}`);
691
- let C = l.get($);
692
- return C || (C = new Intl.DateTimeFormat(g, ne({}, T, d)), l.set($, C)), y ? C.formatToParts(c) : C.format(c);
689
+ let T = `${w}__${i}`;
690
+ at(d) || (T = `${T}__${JSON.stringify(d)}`);
691
+ let N = l.get(T);
692
+ return N || (N = new Intl.DateTimeFormat(w, ne({}, A, d)), l.set(T, N)), E ? N.formatToParts(c) : N.format(c);
693
693
  }
694
- const so = [
694
+ const ro = [
695
695
  "localeMatcher",
696
696
  "weekday",
697
697
  "era",
@@ -719,24 +719,24 @@ function ht(...e) {
719
719
  if (b(t)) {
720
720
  const i = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
721
721
  if (!i)
722
- throw Me(ye.INVALID_ISO_DATE_ARGUMENT);
722
+ throw Re(we.INVALID_ISO_DATE_ARGUMENT);
723
723
  const c = i[3] ? i[3].trim().startsWith("T") ? `${i[1].trim()}${i[3].trim()}` : `${i[1].trim()}T${i[3].trim()}` : i[1].trim();
724
724
  l = new Date(c);
725
725
  try {
726
726
  l.toISOString();
727
727
  } catch {
728
- throw Me(ye.INVALID_ISO_DATE_ARGUMENT);
728
+ throw Re(we.INVALID_ISO_DATE_ARGUMENT);
729
729
  }
730
- } else if (cs(t)) {
730
+ } else if (us(t)) {
731
731
  if (isNaN(t.getTime()))
732
- throw Me(ye.INVALID_DATE_ARGUMENT);
732
+ throw Re(we.INVALID_DATE_ARGUMENT);
733
733
  l = t;
734
- } else if (K(t))
734
+ } else if (X(t))
735
735
  l = t;
736
736
  else
737
- throw Me(ye.INVALID_ARGUMENT);
737
+ throw Re(we.INVALID_ARGUMENT);
738
738
  return b(n) ? a.key = n : k(n) && Object.keys(n).forEach((i) => {
739
- so.includes(i) ? r[i] = n[i] : a[i] = n[i];
739
+ ro.includes(i) ? r[i] = n[i] : a[i] = n[i];
740
740
  }), b(o) ? a.locale = o : k(o) && (r = o), k(s) && (r = s), [a.key || "", l, a, r];
741
741
  }
742
742
  function rn(e, t, n) {
@@ -748,43 +748,43 @@ function rn(e, t, n) {
748
748
  }
749
749
  function an(e, ...t) {
750
750
  const { numberFormats: n, unresolving: o, fallbackLocale: s, onWarn: a, localeFallbacker: r } = e, { __numberFormatters: l } = e;
751
- if (process.env.NODE_ENV !== "production" && !oo.numberFormat)
752
- return a(Re(le.CANNOT_FORMAT_NUMBER)), ot;
753
- const [i, c, m, d] = vt(...t), u = G(m.missingWarn) ? m.missingWarn : e.missingWarn, p = G(m.fallbackWarn) ? m.fallbackWarn : e.fallbackWarn, y = !!m.part, E = b(m.locale) ? m.locale : e.locale, w = r(
751
+ if (process.env.NODE_ENV !== "production" && !so.numberFormat)
752
+ return a(Fe(le.CANNOT_FORMAT_NUMBER)), ot;
753
+ const [i, c, _, d] = vt(...t), u = H(_.missingWarn) ? _.missingWarn : e.missingWarn, m = H(_.fallbackWarn) ? _.fallbackWarn : e.fallbackWarn, E = !!_.part, L = b(_.locale) ? _.locale : e.locale, y = r(
754
754
  e,
755
755
  s,
756
- E
756
+ L
757
757
  );
758
758
  if (!b(i) || i === "")
759
- return new Intl.NumberFormat(E, d).format(c);
760
- let f = {}, g, T = null, O = E, v = null;
761
- const A = "number format";
762
- for (let X = 0; X < w.length; X++) {
763
- if (g = v = w[X], process.env.NODE_ENV !== "production" && E !== g && it(p, i) && a(Re(le.FALLBACK_TO_NUMBER_FORMAT, {
759
+ return new Intl.NumberFormat(L, d).format(c);
760
+ let h = {}, w, A = null, D = L, v = null;
761
+ const p = "number format";
762
+ for (let R = 0; R < y.length; R++) {
763
+ if (w = v = y[R], process.env.NODE_ENV !== "production" && L !== w && it(m, i) && a(Fe(le.FALLBACK_TO_NUMBER_FORMAT, {
764
764
  key: i,
765
- target: g
766
- })), process.env.NODE_ENV !== "production" && E !== g) {
767
- const Z = e.__v_emitter;
768
- Z && Z.emit("fallback", {
769
- type: A,
765
+ target: w
766
+ })), process.env.NODE_ENV !== "production" && L !== w) {
767
+ const G = e.__v_emitter;
768
+ G && G.emit("fallback", {
769
+ type: p,
770
770
  key: i,
771
- from: O,
771
+ from: D,
772
772
  to: v,
773
- groupId: `${A}:${i}`
773
+ groupId: `${p}:${i}`
774
774
  });
775
775
  }
776
- if (f = n[g] || {}, T = f[i], k(T))
776
+ if (h = n[w] || {}, A = h[i], k(A))
777
777
  break;
778
- kt(e, i, g, u, A), O = v;
778
+ kt(e, i, w, u, p), D = v;
779
779
  }
780
- if (!k(T) || !b(g))
780
+ if (!k(A) || !b(w))
781
781
  return o ? lt : i;
782
- let $ = `${g}__${i}`;
783
- at(d) || ($ = `${$}__${JSON.stringify(d)}`);
784
- let C = l.get($);
785
- return C || (C = new Intl.NumberFormat(g, ne({}, T, d)), l.set($, C)), y ? C.formatToParts(c) : C.format(c);
782
+ let T = `${w}__${i}`;
783
+ at(d) || (T = `${T}__${JSON.stringify(d)}`);
784
+ let N = l.get(T);
785
+ return N || (N = new Intl.NumberFormat(w, ne({}, A, d)), l.set(T, N)), E ? N.formatToParts(c) : N.format(c);
786
786
  }
787
- const ro = [
787
+ const ao = [
788
788
  "localeMatcher",
789
789
  "style",
790
790
  "currency",
@@ -809,11 +809,11 @@ const ro = [
809
809
  function vt(...e) {
810
810
  const [t, n, o, s] = e, a = {};
811
811
  let r = {};
812
- if (!K(t))
813
- throw Me(ye.INVALID_ARGUMENT);
812
+ if (!X(t))
813
+ throw Re(we.INVALID_ARGUMENT);
814
814
  const l = t;
815
815
  return b(n) ? a.key = n : k(n) && Object.keys(n).forEach((i) => {
816
- ro.includes(i) ? r[i] = n[i] : a[i] = n[i];
816
+ ao.includes(i) ? r[i] = n[i] : a[i] = n[i];
817
817
  }), b(o) ? a.locale = o : k(o) && (r = o), k(s) && (r = s), [a.key || "", l, a, r];
818
818
  }
819
819
  function ln(e, t, n) {
@@ -824,22 +824,22 @@ function ln(e, t, n) {
824
824
  }
825
825
  }
826
826
  typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (At().__INTLIFY_PROD_DEVTOOLS__ = !1);
827
- function Qs() {
828
- return ao().__VUE_DEVTOOLS_GLOBAL_HOOK__;
827
+ function qs() {
828
+ return lo().__VUE_DEVTOOLS_GLOBAL_HOOK__;
829
829
  }
830
- function ao() {
830
+ function lo() {
831
831
  return typeof navigator < "u" && typeof window < "u" ? window : typeof global < "u" ? global : {};
832
832
  }
833
- const qs = typeof Proxy == "function", Zs = "devtools-plugin:setup", er = "plugin:settings:set";
834
- let Pe, yt;
835
- function tr() {
833
+ const Zs = typeof Proxy == "function", er = "devtools-plugin:setup", tr = "plugin:settings:set";
834
+ let $e, yt;
835
+ function nr() {
836
836
  var e;
837
- return Pe !== void 0 || (typeof window < "u" && window.performance ? (Pe = !0, yt = window.performance) : typeof global < "u" && ((e = global.perf_hooks) === null || e === void 0 ? void 0 : e.performance) ? (Pe = !0, yt = global.perf_hooks.performance) : Pe = !1), Pe;
837
+ return $e !== void 0 || (typeof window < "u" && window.performance ? ($e = !0, yt = window.performance) : typeof global < "u" && ((e = global.perf_hooks) === null || e === void 0 ? void 0 : e.performance) ? ($e = !0, yt = global.perf_hooks.performance) : $e = !1), $e;
838
838
  }
839
- function nr() {
840
- return tr() ? yt.now() : Date.now();
839
+ function or() {
840
+ return nr() ? yt.now() : Date.now();
841
841
  }
842
- class or {
842
+ class sr {
843
843
  constructor(t, n) {
844
844
  this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
845
845
  const o = {};
@@ -867,9 +867,9 @@ class or {
867
867
  a = r;
868
868
  },
869
869
  now() {
870
- return nr();
870
+ return or();
871
871
  }
872
- }, n && n.on(er, (r, l) => {
872
+ }, n && n.on(tr, (r, l) => {
873
873
  r === this.plugin.id && this.fallbacks.setSettings(l);
874
874
  }), this.proxiedOn = new Proxy({}, {
875
875
  get: (r, l) => this.target ? this.target.on[l] : (...i) => {
@@ -901,12 +901,12 @@ class or {
901
901
  n.resolve(await this.target[n.method](...n.args));
902
902
  }
903
903
  }
904
- function sr(e, t) {
905
- const n = e, o = ao(), s = Qs(), a = qs && n.enableEarlyProxy;
904
+ function rr(e, t) {
905
+ const n = e, o = lo(), s = qs(), a = Zs && n.enableEarlyProxy;
906
906
  if (s && (o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a))
907
- s.emit(Zs, e, t);
907
+ s.emit(er, e, t);
908
908
  else {
909
- const r = a ? new or(n, s) : null;
909
+ const r = a ? new sr(n, s) : null;
910
910
  (o.__VUE_DEVTOOLS_PLUGINS__ = o.__VUE_DEVTOOLS_PLUGINS__ || []).push({
911
911
  pluginDescriptor: n,
912
912
  setupFn: t,
@@ -923,9 +923,9 @@ const mt = {
923
923
  ["vue-devtools-plugin-vue-i18n"]: "Vue I18n devtools",
924
924
  ["vue-i18n-resource-inspector"]: "I18n Resources",
925
925
  ["vue-i18n-timeline"]: "Vue I18n"
926
- }, rr = {
927
- ["vue-i18n-resource-inspector"]: "Search for scopes ..."
928
926
  }, ar = {
927
+ ["vue-i18n-resource-inspector"]: "Search for scopes ..."
928
+ }, lr = {
929
929
  ["vue-i18n-timeline"]: 16764185
930
930
  };
931
931
  /*!
@@ -933,35 +933,35 @@ const mt = {
933
933
  * (c) 2022 kazuya kawaguchi
934
934
  * Released under the MIT License.
935
935
  */
936
- const lr = "9.2.2";
937
- function ir() {
936
+ const ir = "9.2.2";
937
+ function cr() {
938
938
  let e = !1;
939
939
  typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (At().__INTLIFY_PROD_DEVTOOLS__ = !1), process.env.NODE_ENV !== "production" && e && console.warn("You are running the esm-bundler build of vue-i18n. It is recommended to configure your bundler to explicitly replace feature flag globals with boolean literals to get proper tree-shaking in the final bundle.");
940
940
  }
941
- let lo = le.__EXTEND_POINT__;
942
- const $e = () => ++lo, fe = {
943
- FALLBACK_TO_ROOT: lo,
944
- NOT_SUPPORTED_PRESERVE: $e(),
945
- NOT_SUPPORTED_FORMATTER: $e(),
946
- NOT_SUPPORTED_PRESERVE_DIRECTIVE: $e(),
947
- NOT_SUPPORTED_GET_CHOICE_INDEX: $e(),
948
- COMPONENT_NAME_LEGACY_COMPATIBLE: $e(),
949
- NOT_FOUND_PARENT_SCOPE: $e()
950
- }, cr = {
951
- [fe.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
952
- [fe.NOT_SUPPORTED_PRESERVE]: "Not supported 'preserve'.",
953
- [fe.NOT_SUPPORTED_FORMATTER]: "Not supported 'formatter'.",
954
- [fe.NOT_SUPPORTED_PRESERVE_DIRECTIVE]: "Not supported 'preserveDirectiveContent'.",
955
- [fe.NOT_SUPPORTED_GET_CHOICE_INDEX]: "Not supported 'getChoiceIndex'.",
956
- [fe.COMPONENT_NAME_LEGACY_COMPATIBLE]: "Component name legacy compatible: '{name}' -> 'i18n'",
957
- [fe.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope."
941
+ let io = le.__EXTEND_POINT__;
942
+ const Me = () => ++io, _e = {
943
+ FALLBACK_TO_ROOT: io,
944
+ NOT_SUPPORTED_PRESERVE: Me(),
945
+ NOT_SUPPORTED_FORMATTER: Me(),
946
+ NOT_SUPPORTED_PRESERVE_DIRECTIVE: Me(),
947
+ NOT_SUPPORTED_GET_CHOICE_INDEX: Me(),
948
+ COMPONENT_NAME_LEGACY_COMPATIBLE: Me(),
949
+ NOT_FOUND_PARENT_SCOPE: Me()
950
+ }, ur = {
951
+ [_e.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
952
+ [_e.NOT_SUPPORTED_PRESERVE]: "Not supported 'preserve'.",
953
+ [_e.NOT_SUPPORTED_FORMATTER]: "Not supported 'formatter'.",
954
+ [_e.NOT_SUPPORTED_PRESERVE_DIRECTIVE]: "Not supported 'preserveDirectiveContent'.",
955
+ [_e.NOT_SUPPORTED_GET_CHOICE_INDEX]: "Not supported 'getChoiceIndex'.",
956
+ [_e.COMPONENT_NAME_LEGACY_COMPATIBLE]: "Component name legacy compatible: '{name}' -> 'i18n'",
957
+ [_e.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope."
958
958
  };
959
959
  function ct(e, ...t) {
960
- return Dt(cr[e], ...t);
960
+ return Dt(ur[e], ...t);
961
961
  }
962
- let io = Q.__EXTEND_POINT__;
963
- const re = () => ++io, F = {
964
- UNEXPECTED_RETURN_TYPE: io,
962
+ let co = q.__EXTEND_POINT__;
963
+ const re = () => ++co, U = {
964
+ UNEXPECTED_RETURN_TYPE: co,
965
965
  INVALID_ARGUMENT: re(),
966
966
  MUST_BE_CALL_SETUP_TOP: re(),
967
967
  NOT_INSLALLED: re(),
@@ -978,68 +978,68 @@ const re = () => ++io, F = {
978
978
  __EXTEND_POINT__: re()
979
979
  };
980
980
  function ce(e, ...t) {
981
- return Bn(e, null, process.env.NODE_ENV !== "production" ? { messages: ur, args: t } : void 0);
982
- }
983
- const ur = {
984
- [F.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
985
- [F.INVALID_ARGUMENT]: "Invalid argument",
986
- [F.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
987
- [F.NOT_INSLALLED]: "Need to install with `app.use` function",
988
- [F.UNEXPECTED_ERROR]: "Unexpected error",
989
- [F.NOT_AVAILABLE_IN_LEGACY_MODE]: "Not available in legacy mode",
990
- [F.REQUIRED_VALUE]: "Required in value: {0}",
991
- [F.INVALID_VALUE]: "Invalid value",
992
- [F.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]: "Cannot setup vue-devtools plugin",
993
- [F.NOT_INSLALLED_WITH_PROVIDE]: "Need to install with `provide` function",
994
- [F.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
995
- [F.BRIDGE_SUPPORT_VUE_2_ONLY]: "vue-i18n-bridge support Vue 2.x only",
996
- [F.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]: "Must define \u2018i18n\u2019 option or custom block in Composition API with using local scope in Legacy API mode",
997
- [F.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
998
- }, Et = /* @__PURE__ */ ve("__transrateVNode"), wt = /* @__PURE__ */ ve("__datetimeParts"), Lt = /* @__PURE__ */ ve("__numberParts"), Ke = /* @__PURE__ */ ve("__enableEmitter"), bt = /* @__PURE__ */ ve("__disableEmitter"), dr = ve("__setPluralRules");
981
+ return Kn(e, null, process.env.NODE_ENV !== "production" ? { messages: dr, args: t } : void 0);
982
+ }
983
+ const dr = {
984
+ [U.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
985
+ [U.INVALID_ARGUMENT]: "Invalid argument",
986
+ [U.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
987
+ [U.NOT_INSLALLED]: "Need to install with `app.use` function",
988
+ [U.UNEXPECTED_ERROR]: "Unexpected error",
989
+ [U.NOT_AVAILABLE_IN_LEGACY_MODE]: "Not available in legacy mode",
990
+ [U.REQUIRED_VALUE]: "Required in value: {0}",
991
+ [U.INVALID_VALUE]: "Invalid value",
992
+ [U.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]: "Cannot setup vue-devtools plugin",
993
+ [U.NOT_INSLALLED_WITH_PROVIDE]: "Need to install with `provide` function",
994
+ [U.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
995
+ [U.BRIDGE_SUPPORT_VUE_2_ONLY]: "vue-i18n-bridge support Vue 2.x only",
996
+ [U.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]: "Must define \u2018i18n\u2019 option or custom block in Composition API with using local scope in Legacy API mode",
997
+ [U.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
998
+ }, wt = /* @__PURE__ */ ve("__transrateVNode"), Et = /* @__PURE__ */ ve("__datetimeParts"), Lt = /* @__PURE__ */ ve("__numberParts"), Ye = /* @__PURE__ */ ve("__enableEmitter"), bt = /* @__PURE__ */ ve("__disableEmitter"), fr = ve("__setPluralRules");
999
999
  ve("__intlifyMeta");
1000
- const fr = /* @__PURE__ */ ve("__injectWithOption");
1000
+ const _r = /* @__PURE__ */ ve("__injectWithOption");
1001
1001
  function Ot(e) {
1002
- if (!x(e))
1002
+ if (!V(e))
1003
1003
  return e;
1004
1004
  for (const t in e)
1005
1005
  if (!!Pt(e, t))
1006
1006
  if (!t.includes("."))
1007
- x(e[t]) && Ot(e[t]);
1007
+ V(e[t]) && Ot(e[t]);
1008
1008
  else {
1009
1009
  const n = t.split("."), o = n.length - 1;
1010
1010
  let s = e;
1011
1011
  for (let a = 0; a < o; a++)
1012
1012
  n[a] in s || (s[n[a]] = {}), s = s[n[a]];
1013
- s[n[o]] = e[t], delete e[t], x(s[n[o]]) && Ot(s[n[o]]);
1013
+ s[n[o]] = e[t], delete e[t], V(s[n[o]]) && Ot(s[n[o]]);
1014
1014
  }
1015
1015
  return e;
1016
1016
  }
1017
- function co(e, t) {
1018
- const { messages: n, __i18n: o, messageResolver: s, flatJson: a } = t, r = k(n) ? n : H(o) ? {} : { [e]: {} };
1019
- if (H(o) && o.forEach((l) => {
1017
+ function uo(e, t) {
1018
+ const { messages: n, __i18n: o, messageResolver: s, flatJson: a } = t, r = k(n) ? n : W(o) ? {} : { [e]: {} };
1019
+ if (W(o) && o.forEach((l) => {
1020
1020
  if ("locale" in l && "resource" in l) {
1021
1021
  const { locale: i, resource: c } = l;
1022
- i ? (r[i] = r[i] || {}, je(c, r[i])) : je(c, r);
1022
+ i ? (r[i] = r[i] || {}, We(c, r[i])) : We(c, r);
1023
1023
  } else
1024
- b(l) && je(JSON.parse(l), r);
1024
+ b(l) && We(JSON.parse(l), r);
1025
1025
  }), s == null && a)
1026
1026
  for (const l in r)
1027
1027
  Pt(r, l) && Ot(r[l]);
1028
1028
  return r;
1029
1029
  }
1030
- const Qe = (e) => !x(e) || H(e);
1031
- function je(e, t) {
1032
- if (Qe(e) || Qe(t))
1033
- throw ce(F.INVALID_VALUE);
1030
+ const qe = (e) => !V(e) || W(e);
1031
+ function We(e, t) {
1032
+ if (qe(e) || qe(t))
1033
+ throw ce(U.INVALID_VALUE);
1034
1034
  for (const n in e)
1035
- Pt(e, n) && (Qe(e[n]) || Qe(t[n]) ? t[n] = e[n] : je(e[n], t[n]));
1035
+ Pt(e, n) && (qe(e[n]) || qe(t[n]) ? t[n] = e[n] : We(e[n], t[n]));
1036
1036
  }
1037
- function uo(e) {
1037
+ function fo(e) {
1038
1038
  return e.type;
1039
1039
  }
1040
- function _r(e, t, n) {
1041
- let o = x(t.messages) ? t.messages : {};
1042
- "__i18nGlobal" in n && (o = co(e.locale.value, {
1040
+ function mr(e, t, n) {
1041
+ let o = V(t.messages) ? t.messages : {};
1042
+ "__i18nGlobal" in n && (o = uo(e.locale.value, {
1043
1043
  messages: o,
1044
1044
  __i18n: n.__i18nGlobal
1045
1045
  }));
@@ -1048,13 +1048,13 @@ function _r(e, t, n) {
1048
1048
  e.mergeLocaleMessage(a, o[a]);
1049
1049
  });
1050
1050
  {
1051
- if (x(t.datetimeFormats)) {
1051
+ if (V(t.datetimeFormats)) {
1052
1052
  const a = Object.keys(t.datetimeFormats);
1053
1053
  a.length && a.forEach((r) => {
1054
1054
  e.mergeDateTimeFormat(r, t.datetimeFormats[r]);
1055
1055
  });
1056
1056
  }
1057
- if (x(t.numberFormats)) {
1057
+ if (V(t.numberFormats)) {
1058
1058
  const a = Object.keys(t.numberFormats);
1059
1059
  a.length && a.forEach((r) => {
1060
1060
  e.mergeNumberFormat(r, t.numberFormats[r]);
@@ -1063,54 +1063,54 @@ function _r(e, t, n) {
1063
1063
  }
1064
1064
  }
1065
1065
  function cn(e) {
1066
- return B(ns, null, e, 0);
1066
+ return Q(os, null, e, 0);
1067
1067
  }
1068
1068
  const un = "__INTLIFY_META__";
1069
1069
  let dn = 0;
1070
1070
  function fn(e) {
1071
1071
  return (t, n, o, s) => e(n, o, St() || void 0, s);
1072
1072
  }
1073
- const mr = () => {
1073
+ const pr = () => {
1074
1074
  const e = St();
1075
1075
  let t = null;
1076
- return e && (t = uo(e)[un]) ? { [un]: t } : null;
1076
+ return e && (t = fo(e)[un]) ? { [un]: t } : null;
1077
1077
  };
1078
- function fo(e = {}, t) {
1078
+ function _o(e = {}, t) {
1079
1079
  const { __root: n } = e, o = n === void 0;
1080
- let s = G(e.inheritLocale) ? e.inheritLocale : !0;
1080
+ let s = H(e.inheritLocale) ? e.inheritLocale : !0;
1081
1081
  const a = M(
1082
1082
  n && s ? n.locale.value : b(e.locale) ? e.locale : Mt
1083
1083
  ), r = M(
1084
- n && s ? n.fallbackLocale.value : b(e.fallbackLocale) || H(e.fallbackLocale) || k(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a.value
1085
- ), l = M(co(a.value, e)), i = M(k(e.datetimeFormats) ? e.datetimeFormats : { [a.value]: {} }), c = M(k(e.numberFormats) ? e.numberFormats : { [a.value]: {} });
1086
- let m = n ? n.missingWarn : G(e.missingWarn) || nt(e.missingWarn) ? e.missingWarn : !0, d = n ? n.fallbackWarn : G(e.fallbackWarn) || nt(e.fallbackWarn) ? e.fallbackWarn : !0, u = n ? n.fallbackRoot : G(e.fallbackRoot) ? e.fallbackRoot : !0, p = !!e.fallbackFormat, y = W(e.missing) ? e.missing : null, E = W(e.missing) ? fn(e.missing) : null, w = W(e.postTranslation) ? e.postTranslation : null, f = n ? n.warnHtmlMessage : G(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, g = !!e.escapeParameter;
1087
- const T = n ? n.modifiers : k(e.modifiers) ? e.modifiers : {};
1088
- let O = e.pluralRules || n && n.pluralRules, v;
1084
+ n && s ? n.fallbackLocale.value : b(e.fallbackLocale) || W(e.fallbackLocale) || k(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a.value
1085
+ ), l = M(uo(a.value, e)), i = M(k(e.datetimeFormats) ? e.datetimeFormats : { [a.value]: {} }), c = M(k(e.numberFormats) ? e.numberFormats : { [a.value]: {} });
1086
+ let _ = n ? n.missingWarn : H(e.missingWarn) || nt(e.missingWarn) ? e.missingWarn : !0, d = n ? n.fallbackWarn : H(e.fallbackWarn) || nt(e.fallbackWarn) ? e.fallbackWarn : !0, u = n ? n.fallbackRoot : H(e.fallbackRoot) ? e.fallbackRoot : !0, m = !!e.fallbackFormat, E = Y(e.missing) ? e.missing : null, L = Y(e.missing) ? fn(e.missing) : null, y = Y(e.postTranslation) ? e.postTranslation : null, h = n ? n.warnHtmlMessage : H(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, w = !!e.escapeParameter;
1087
+ const A = n ? n.modifiers : k(e.modifiers) ? e.modifiers : {};
1088
+ let D = e.pluralRules || n && n.pluralRules, v;
1089
1089
  v = (() => {
1090
1090
  o && Zt(null);
1091
- const _ = {
1092
- version: lr,
1091
+ const f = {
1092
+ version: ir,
1093
1093
  locale: a.value,
1094
1094
  fallbackLocale: r.value,
1095
1095
  messages: l.value,
1096
- modifiers: T,
1097
- pluralRules: O,
1098
- missing: E === null ? void 0 : E,
1099
- missingWarn: m,
1096
+ modifiers: A,
1097
+ pluralRules: D,
1098
+ missing: L === null ? void 0 : L,
1099
+ missingWarn: _,
1100
1100
  fallbackWarn: d,
1101
- fallbackFormat: p,
1101
+ fallbackFormat: m,
1102
1102
  unresolving: !0,
1103
- postTranslation: w === null ? void 0 : w,
1104
- warnHtmlMessage: f,
1105
- escapeParameter: g,
1103
+ postTranslation: y === null ? void 0 : y,
1104
+ warnHtmlMessage: h,
1105
+ escapeParameter: w,
1106
1106
  messageResolver: e.messageResolver,
1107
1107
  __meta: { framework: "vue" }
1108
1108
  };
1109
- _.datetimeFormats = i.value, _.numberFormats = c.value, _.__datetimeFormatters = k(v) ? v.__datetimeFormatters : void 0, _.__numberFormatters = k(v) ? v.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (_.__v_emitter = k(v) ? v.__v_emitter : void 0);
1110
- const h = Ws(_);
1111
- return o && Zt(h), h;
1112
- })(), Ge(v, a.value, r.value);
1113
- function $() {
1109
+ f.datetimeFormats = i.value, f.numberFormats = c.value, f.__datetimeFormatters = k(v) ? v.__datetimeFormatters : void 0, f.__numberFormatters = k(v) ? v.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (f.__v_emitter = k(v) ? v.__v_emitter : void 0);
1110
+ const g = Bs(f);
1111
+ return o && Zt(g), g;
1112
+ })(), ze(v, a.value, r.value);
1113
+ function T() {
1114
1114
  return [
1115
1115
  a.value,
1116
1116
  r.value,
@@ -1119,255 +1119,255 @@ function fo(e = {}, t) {
1119
1119
  c.value
1120
1120
  ];
1121
1121
  }
1122
- const C = V({
1122
+ const N = F({
1123
1123
  get: () => a.value,
1124
- set: (_) => {
1125
- a.value = _, v.locale = a.value;
1124
+ set: (f) => {
1125
+ a.value = f, v.locale = a.value;
1126
1126
  }
1127
- }), X = V({
1127
+ }), R = F({
1128
1128
  get: () => r.value,
1129
- set: (_) => {
1130
- r.value = _, v.fallbackLocale = r.value, Ge(v, a.value, _);
1129
+ set: (f) => {
1130
+ r.value = f, v.fallbackLocale = r.value, ze(v, a.value, f);
1131
1131
  }
1132
- }), Z = V(() => l.value), J = /* @__PURE__ */ V(() => i.value), De = /* @__PURE__ */ V(() => c.value);
1132
+ }), G = F(() => l.value), K = /* @__PURE__ */ F(() => i.value), ye = /* @__PURE__ */ F(() => c.value);
1133
1133
  function I() {
1134
- return W(w) ? w : null;
1134
+ return Y(y) ? y : null;
1135
1135
  }
1136
- function P(_) {
1137
- w = _, v.postTranslation = _;
1136
+ function $(f) {
1137
+ y = f, v.postTranslation = f;
1138
1138
  }
1139
- function R() {
1140
- return y;
1139
+ function x() {
1140
+ return E;
1141
1141
  }
1142
- function U(_) {
1143
- _ !== null && (E = fn(_)), y = _, v.missing = E;
1142
+ function z(f) {
1143
+ f !== null && (L = fn(f)), E = f, v.missing = L;
1144
1144
  }
1145
- function be(_, h) {
1146
- return _ !== "translate" || !h.resolvedMessage;
1145
+ function Ie(f, g) {
1146
+ return f !== "translate" || !g.resolvedMessage;
1147
1147
  }
1148
- const de = (_, h, se, ee, ft, Je) => {
1149
- $();
1150
- let Ae;
1148
+ const fe = (f, g, se, ee, ft, Qe) => {
1149
+ T();
1150
+ let Pe;
1151
1151
  if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__)
1152
1152
  try {
1153
- qt(mr()), o || (v.fallbackContext = n ? js() : void 0), Ae = _(v);
1153
+ qt(pr()), o || (v.fallbackContext = n ? Ws() : void 0), Pe = f(v);
1154
1154
  } finally {
1155
1155
  qt(null), o || (v.fallbackContext = void 0);
1156
1156
  }
1157
1157
  else
1158
- Ae = _(v);
1159
- if (K(Ae) && Ae === lt) {
1160
- const [Oe, Zo] = h();
1161
- if (process.env.NODE_ENV !== "production" && n && b(Oe) && be(se, Zo) && (u && (it(d, Oe) || Zn(m, Oe)) && Ve(ct(fe.FALLBACK_TO_ROOT, {
1162
- key: Oe,
1158
+ Pe = f(v);
1159
+ if (X(Pe) && Pe === lt) {
1160
+ const [Te, es] = g();
1161
+ if (process.env.NODE_ENV !== "production" && n && b(Te) && Ie(se, es) && (u && (it(d, Te) || eo(_, Te)) && Ue(ct(_e.FALLBACK_TO_ROOT, {
1162
+ key: Te,
1163
1163
  type: se
1164
1164
  })), process.env.NODE_ENV !== "production")) {
1165
1165
  const { __v_emitter: jt } = v;
1166
1166
  jt && u && jt.emit("fallback", {
1167
1167
  type: se,
1168
- key: Oe,
1168
+ key: Te,
1169
1169
  to: "global",
1170
- groupId: `${se}:${Oe}`
1170
+ groupId: `${se}:${Te}`
1171
1171
  });
1172
1172
  }
1173
- return n && u ? ee(n) : ft(Oe);
1173
+ return n && u ? ee(n) : ft(Te);
1174
1174
  } else {
1175
- if (Je(Ae))
1176
- return Ae;
1177
- throw ce(F.UNEXPECTED_RETURN_TYPE);
1175
+ if (Qe(Pe))
1176
+ return Pe;
1177
+ throw ce(U.UNEXPECTED_RETURN_TYPE);
1178
1178
  }
1179
1179
  };
1180
- function Ue(..._) {
1181
- return de((h) => Reflect.apply(nn, null, [h, ..._]), () => gt(..._), "translate", (h) => Reflect.apply(h.t, h, [..._]), (h) => h, (h) => b(h));
1180
+ function Ge(...f) {
1181
+ return fe((g) => Reflect.apply(nn, null, [g, ...f]), () => gt(...f), "translate", (g) => Reflect.apply(g.t, g, [...f]), (g) => g, (g) => b(g));
1182
1182
  }
1183
- function Ye(..._) {
1184
- const [h, se, ee] = _;
1185
- if (ee && !x(ee))
1186
- throw ce(F.INVALID_ARGUMENT);
1187
- return Ue(h, se, ne({ resolvedMessage: !0 }, ee || {}));
1183
+ function Xe(...f) {
1184
+ const [g, se, ee] = f;
1185
+ if (ee && !V(ee))
1186
+ throw ce(U.INVALID_ARGUMENT);
1187
+ return Ge(g, se, ne({ resolvedMessage: !0 }, ee || {}));
1188
1188
  }
1189
- function dt(..._) {
1190
- return de((h) => Reflect.apply(sn, null, [h, ..._]), () => ht(..._), "datetime format", (h) => Reflect.apply(h.d, h, [..._]), () => ot, (h) => b(h));
1189
+ function dt(...f) {
1190
+ return fe((g) => Reflect.apply(sn, null, [g, ...f]), () => ht(...f), "datetime format", (g) => Reflect.apply(g.d, g, [...f]), () => ot, (g) => b(g));
1191
1191
  }
1192
- function Gt(..._) {
1193
- return de((h) => Reflect.apply(an, null, [h, ..._]), () => vt(..._), "number format", (h) => Reflect.apply(h.n, h, [..._]), () => ot, (h) => b(h));
1192
+ function Gt(...f) {
1193
+ return fe((g) => Reflect.apply(an, null, [g, ...f]), () => vt(...f), "number format", (g) => Reflect.apply(g.n, g, [...f]), () => ot, (g) => b(g));
1194
1194
  }
1195
- function Xe(_) {
1196
- return _.map((h) => b(h) || K(h) || G(h) ? cn(String(h)) : h);
1195
+ function Je(f) {
1196
+ return f.map((g) => b(g) || X(g) || H(g) ? cn(String(g)) : g);
1197
1197
  }
1198
- const xo = {
1199
- normalize: Xe,
1200
- interpolate: (_) => _,
1198
+ const Fo = {
1199
+ normalize: Je,
1200
+ interpolate: (f) => f,
1201
1201
  type: "vnode"
1202
1202
  };
1203
- function Fo(..._) {
1204
- return de(
1205
- (h) => {
1203
+ function Vo(...f) {
1204
+ return fe(
1205
+ (g) => {
1206
1206
  let se;
1207
- const ee = h;
1207
+ const ee = g;
1208
1208
  try {
1209
- ee.processor = xo, se = Reflect.apply(nn, null, [ee, ..._]);
1209
+ ee.processor = Fo, se = Reflect.apply(nn, null, [ee, ...f]);
1210
1210
  } finally {
1211
1211
  ee.processor = null;
1212
1212
  }
1213
1213
  return se;
1214
1214
  },
1215
- () => gt(..._),
1215
+ () => gt(...f),
1216
1216
  "translate",
1217
- (h) => h[Et](..._),
1218
- (h) => [cn(h)],
1219
- (h) => H(h)
1217
+ (g) => g[wt](...f),
1218
+ (g) => [cn(g)],
1219
+ (g) => W(g)
1220
1220
  );
1221
1221
  }
1222
- function Vo(..._) {
1223
- return de(
1224
- (h) => Reflect.apply(an, null, [h, ..._]),
1225
- () => vt(..._),
1222
+ function Uo(...f) {
1223
+ return fe(
1224
+ (g) => Reflect.apply(an, null, [g, ...f]),
1225
+ () => vt(...f),
1226
1226
  "number format",
1227
- (h) => h[Lt](..._),
1227
+ (g) => g[Lt](...f),
1228
1228
  () => [],
1229
- (h) => b(h) || H(h)
1229
+ (g) => b(g) || W(g)
1230
1230
  );
1231
1231
  }
1232
- function Uo(..._) {
1233
- return de(
1234
- (h) => Reflect.apply(sn, null, [h, ..._]),
1235
- () => ht(..._),
1232
+ function Go(...f) {
1233
+ return fe(
1234
+ (g) => Reflect.apply(sn, null, [g, ...f]),
1235
+ () => ht(...f),
1236
1236
  "datetime format",
1237
- (h) => h[wt](..._),
1237
+ (g) => g[Et](...f),
1238
1238
  () => [],
1239
- (h) => b(h) || H(h)
1239
+ (g) => b(g) || W(g)
1240
1240
  );
1241
1241
  }
1242
- function Go(_) {
1243
- O = _, v.pluralRules = O;
1242
+ function zo(f) {
1243
+ D = f, v.pluralRules = D;
1244
1244
  }
1245
- function zo(_, h) {
1246
- const se = b(h) ? h : a.value, ee = Ht(se);
1247
- return v.messageResolver(ee, _) !== null;
1245
+ function Ho(f, g) {
1246
+ const se = b(g) ? g : a.value, ee = Ht(se);
1247
+ return v.messageResolver(ee, f) !== null;
1248
1248
  }
1249
- function Ho(_) {
1250
- let h = null;
1251
- const se = Yn(v, r.value, a.value);
1249
+ function jo(f) {
1250
+ let g = null;
1251
+ const se = Xn(v, r.value, a.value);
1252
1252
  for (let ee = 0; ee < se.length; ee++) {
1253
- const ft = l.value[se[ee]] || {}, Je = v.messageResolver(ft, _);
1254
- if (Je != null) {
1255
- h = Je;
1253
+ const ft = l.value[se[ee]] || {}, Qe = v.messageResolver(ft, f);
1254
+ if (Qe != null) {
1255
+ g = Qe;
1256
1256
  break;
1257
1257
  }
1258
1258
  }
1259
- return h;
1259
+ return g;
1260
1260
  }
1261
- function jo(_) {
1262
- const h = Ho(_);
1263
- return h != null ? h : n ? n.tm(_) || {} : {};
1261
+ function Wo(f) {
1262
+ const g = jo(f);
1263
+ return g != null ? g : n ? n.tm(f) || {} : {};
1264
1264
  }
1265
- function Ht(_) {
1266
- return l.value[_] || {};
1265
+ function Ht(f) {
1266
+ return l.value[f] || {};
1267
1267
  }
1268
- function Wo(_, h) {
1269
- l.value[_] = h, v.messages = l.value;
1268
+ function Bo(f, g) {
1269
+ l.value[f] = g, v.messages = l.value;
1270
1270
  }
1271
- function Bo(_, h) {
1272
- l.value[_] = l.value[_] || {}, je(h, l.value[_]), v.messages = l.value;
1271
+ function Ko(f, g) {
1272
+ l.value[f] = l.value[f] || {}, We(g, l.value[f]), v.messages = l.value;
1273
1273
  }
1274
- function Ko(_) {
1275
- return i.value[_] || {};
1274
+ function Yo(f) {
1275
+ return i.value[f] || {};
1276
1276
  }
1277
- function Yo(_, h) {
1278
- i.value[_] = h, v.datetimeFormats = i.value, rn(v, _, h);
1277
+ function Xo(f, g) {
1278
+ i.value[f] = g, v.datetimeFormats = i.value, rn(v, f, g);
1279
1279
  }
1280
- function Xo(_, h) {
1281
- i.value[_] = ne(i.value[_] || {}, h), v.datetimeFormats = i.value, rn(v, _, h);
1280
+ function Jo(f, g) {
1281
+ i.value[f] = ne(i.value[f] || {}, g), v.datetimeFormats = i.value, rn(v, f, g);
1282
1282
  }
1283
- function Jo(_) {
1284
- return c.value[_] || {};
1283
+ function Qo(f) {
1284
+ return c.value[f] || {};
1285
1285
  }
1286
- function Qo(_, h) {
1287
- c.value[_] = h, v.numberFormats = c.value, ln(v, _, h);
1286
+ function qo(f, g) {
1287
+ c.value[f] = g, v.numberFormats = c.value, ln(v, f, g);
1288
1288
  }
1289
- function qo(_, h) {
1290
- c.value[_] = ne(c.value[_] || {}, h), v.numberFormats = c.value, ln(v, _, h);
1289
+ function Zo(f, g) {
1290
+ c.value[f] = ne(c.value[f] || {}, g), v.numberFormats = c.value, ln(v, f, g);
1291
1291
  }
1292
- dn++, n && he && (Ie(n.locale, (_) => {
1293
- s && (a.value = _, v.locale = _, Ge(v, a.value, r.value));
1294
- }), Ie(n.fallbackLocale, (_) => {
1295
- s && (r.value = _, v.fallbackLocale = _, Ge(v, a.value, r.value));
1292
+ dn++, n && he && (Le(n.locale, (f) => {
1293
+ s && (a.value = f, v.locale = f, ze(v, a.value, r.value));
1294
+ }), Le(n.fallbackLocale, (f) => {
1295
+ s && (r.value = f, v.fallbackLocale = f, ze(v, a.value, r.value));
1296
1296
  }));
1297
- const j = {
1297
+ const B = {
1298
1298
  id: dn,
1299
- locale: C,
1300
- fallbackLocale: X,
1299
+ locale: N,
1300
+ fallbackLocale: R,
1301
1301
  get inheritLocale() {
1302
1302
  return s;
1303
1303
  },
1304
- set inheritLocale(_) {
1305
- s = _, _ && n && (a.value = n.locale.value, r.value = n.fallbackLocale.value, Ge(v, a.value, r.value));
1304
+ set inheritLocale(f) {
1305
+ s = f, f && n && (a.value = n.locale.value, r.value = n.fallbackLocale.value, ze(v, a.value, r.value));
1306
1306
  },
1307
1307
  get availableLocales() {
1308
1308
  return Object.keys(l.value).sort();
1309
1309
  },
1310
- messages: Z,
1310
+ messages: G,
1311
1311
  get modifiers() {
1312
- return T;
1312
+ return A;
1313
1313
  },
1314
1314
  get pluralRules() {
1315
- return O || {};
1315
+ return D || {};
1316
1316
  },
1317
1317
  get isGlobal() {
1318
1318
  return o;
1319
1319
  },
1320
1320
  get missingWarn() {
1321
- return m;
1321
+ return _;
1322
1322
  },
1323
- set missingWarn(_) {
1324
- m = _, v.missingWarn = m;
1323
+ set missingWarn(f) {
1324
+ _ = f, v.missingWarn = _;
1325
1325
  },
1326
1326
  get fallbackWarn() {
1327
1327
  return d;
1328
1328
  },
1329
- set fallbackWarn(_) {
1330
- d = _, v.fallbackWarn = d;
1329
+ set fallbackWarn(f) {
1330
+ d = f, v.fallbackWarn = d;
1331
1331
  },
1332
1332
  get fallbackRoot() {
1333
1333
  return u;
1334
1334
  },
1335
- set fallbackRoot(_) {
1336
- u = _;
1335
+ set fallbackRoot(f) {
1336
+ u = f;
1337
1337
  },
1338
1338
  get fallbackFormat() {
1339
- return p;
1339
+ return m;
1340
1340
  },
1341
- set fallbackFormat(_) {
1342
- p = _, v.fallbackFormat = p;
1341
+ set fallbackFormat(f) {
1342
+ m = f, v.fallbackFormat = m;
1343
1343
  },
1344
1344
  get warnHtmlMessage() {
1345
- return f;
1345
+ return h;
1346
1346
  },
1347
- set warnHtmlMessage(_) {
1348
- f = _, v.warnHtmlMessage = _;
1347
+ set warnHtmlMessage(f) {
1348
+ h = f, v.warnHtmlMessage = f;
1349
1349
  },
1350
1350
  get escapeParameter() {
1351
- return g;
1351
+ return w;
1352
1352
  },
1353
- set escapeParameter(_) {
1354
- g = _, v.escapeParameter = _;
1353
+ set escapeParameter(f) {
1354
+ w = f, v.escapeParameter = f;
1355
1355
  },
1356
- t: Ue,
1356
+ t: Ge,
1357
1357
  getLocaleMessage: Ht,
1358
- setLocaleMessage: Wo,
1359
- mergeLocaleMessage: Bo,
1358
+ setLocaleMessage: Bo,
1359
+ mergeLocaleMessage: Ko,
1360
1360
  getPostTranslationHandler: I,
1361
- setPostTranslationHandler: P,
1362
- getMissingHandler: R,
1363
- setMissingHandler: U,
1364
- [dr]: Go
1361
+ setPostTranslationHandler: $,
1362
+ getMissingHandler: x,
1363
+ setMissingHandler: z,
1364
+ [fr]: zo
1365
1365
  };
1366
- return j.datetimeFormats = J, j.numberFormats = De, j.rt = Ye, j.te = zo, j.tm = jo, j.d = dt, j.n = Gt, j.getDateTimeFormat = Ko, j.setDateTimeFormat = Yo, j.mergeDateTimeFormat = Xo, j.getNumberFormat = Jo, j.setNumberFormat = Qo, j.mergeNumberFormat = qo, j[fr] = e.__injectWithOption, j[Et] = Fo, j[wt] = Uo, j[Lt] = Vo, process.env.NODE_ENV !== "production" && (j[Ke] = (_) => {
1367
- v.__v_emitter = _;
1368
- }, j[bt] = () => {
1366
+ return B.datetimeFormats = K, B.numberFormats = ye, B.rt = Xe, B.te = Ho, B.tm = Wo, B.d = dt, B.n = Gt, B.getDateTimeFormat = Yo, B.setDateTimeFormat = Xo, B.mergeDateTimeFormat = Jo, B.getNumberFormat = Qo, B.setNumberFormat = qo, B.mergeNumberFormat = Zo, B[_r] = e.__injectWithOption, B[wt] = Vo, B[Et] = Go, B[Lt] = Uo, process.env.NODE_ENV !== "production" && (B[Ye] = (f) => {
1367
+ v.__v_emitter = f;
1368
+ }, B[bt] = () => {
1369
1369
  v.__v_emitter = void 0;
1370
- }), j;
1370
+ }), B;
1371
1371
  }
1372
1372
  const Rt = {
1373
1373
  tag: {
@@ -1385,17 +1385,17 @@ const Rt = {
1385
1385
  type: Object
1386
1386
  }
1387
1387
  };
1388
- function pr({ slots: e }, t) {
1388
+ function gr({ slots: e }, t) {
1389
1389
  return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((o, s) => o = [
1390
1390
  ...o,
1391
- ...H(s.children) ? s.children : [s]
1391
+ ...W(s.children) ? s.children : [s]
1392
1392
  ], []) : t.reduce((n, o) => {
1393
1393
  const s = e[o];
1394
1394
  return s && (n[o] = s()), n;
1395
1395
  }, {});
1396
1396
  }
1397
- function _o(e) {
1398
- return ue;
1397
+ function mo(e) {
1398
+ return de;
1399
1399
  }
1400
1400
  const pt = {
1401
1401
  name: "i18n-t",
@@ -1406,7 +1406,7 @@ const pt = {
1406
1406
  },
1407
1407
  plural: {
1408
1408
  type: [Number, String],
1409
- validator: (e) => K(e) || !isNaN(e)
1409
+ validator: (e) => X(e) || !isNaN(e)
1410
1410
  }
1411
1411
  }, Rt),
1412
1412
  setup(e, t) {
@@ -1417,28 +1417,28 @@ const pt = {
1417
1417
  return () => {
1418
1418
  const a = Object.keys(n).filter((d) => d !== "_"), r = {};
1419
1419
  e.locale && (r.locale = e.locale), e.plural !== void 0 && (r.plural = b(e.plural) ? +e.plural : e.plural);
1420
- const l = pr(t, a), i = s[Et](e.keypath, l, r), c = ne({}, o), m = b(e.tag) || x(e.tag) ? e.tag : _o();
1421
- return et(m, c, i);
1420
+ const l = gr(t, a), i = s[wt](e.keypath, l, r), c = ne({}, o), _ = b(e.tag) || V(e.tag) ? e.tag : mo();
1421
+ return tt(_, c, i);
1422
1422
  };
1423
1423
  }
1424
1424
  };
1425
- function gr(e) {
1426
- return H(e) && !b(e[0]);
1425
+ function hr(e) {
1426
+ return W(e) && !b(e[0]);
1427
1427
  }
1428
- function mo(e, t, n, o) {
1428
+ function po(e, t, n, o) {
1429
1429
  const { slots: s, attrs: a } = t;
1430
1430
  return () => {
1431
1431
  const r = { part: !0 };
1432
1432
  let l = {};
1433
- e.locale && (r.locale = e.locale), b(e.format) ? r.key = e.format : x(e.format) && (b(e.format.key) && (r.key = e.format.key), l = Object.keys(e.format).reduce((u, p) => n.includes(p) ? ne({}, u, { [p]: e.format[p] }) : u, {}));
1433
+ e.locale && (r.locale = e.locale), b(e.format) ? r.key = e.format : V(e.format) && (b(e.format.key) && (r.key = e.format.key), l = Object.keys(e.format).reduce((u, m) => n.includes(m) ? ne({}, u, { [m]: e.format[m] }) : u, {}));
1434
1434
  const i = o(e.value, r, l);
1435
1435
  let c = [r.key];
1436
- H(i) ? c = i.map((u, p) => {
1437
- const y = s[u.type], E = y ? y({ [u.type]: u.value, index: p, parts: i }) : [u.value];
1438
- return gr(E) && (E[0].key = `${u.type}-${p}`), E;
1436
+ W(i) ? c = i.map((u, m) => {
1437
+ const E = s[u.type], L = E ? E({ [u.type]: u.value, index: m, parts: i }) : [u.value];
1438
+ return hr(L) && (L[0].key = `${u.type}-${m}`), L;
1439
1439
  }) : b(i) && (c = [i]);
1440
- const m = ne({}, a), d = b(e.tag) || x(e.tag) ? e.tag : _o();
1441
- return et(d, m, c);
1440
+ const _ = ne({}, a), d = b(e.tag) || V(e.tag) ? e.tag : mo();
1441
+ return tt(d, _, c);
1442
1442
  };
1443
1443
  }
1444
1444
  const _n = {
@@ -1454,7 +1454,7 @@ const _n = {
1454
1454
  }, Rt),
1455
1455
  setup(e, t) {
1456
1456
  const n = e.i18n || Ft({ useScope: "parent", __useComponent: !0 });
1457
- return mo(e, t, ro, (...o) => n[Lt](...o));
1457
+ return po(e, t, ao, (...o) => n[Lt](...o));
1458
1458
  }
1459
1459
  }, mn = {
1460
1460
  name: "i18n-d",
@@ -1469,10 +1469,10 @@ const _n = {
1469
1469
  }, Rt),
1470
1470
  setup(e, t) {
1471
1471
  const n = e.i18n || Ft({ useScope: "parent", __useComponent: !0 });
1472
- return mo(e, t, so, (...o) => n[wt](...o));
1472
+ return po(e, t, ro, (...o) => n[Et](...o));
1473
1473
  }
1474
1474
  };
1475
- function hr(e, t) {
1475
+ function vr(e, t) {
1476
1476
  const n = e;
1477
1477
  if (e.mode === "composition")
1478
1478
  return n.__getInstance(t) || e.global;
@@ -1481,23 +1481,23 @@ function hr(e, t) {
1481
1481
  return o != null ? o.__composer : e.global.__composer;
1482
1482
  }
1483
1483
  }
1484
- function vr(e) {
1484
+ function yr(e) {
1485
1485
  const t = (r) => {
1486
1486
  const { instance: l, modifiers: i, value: c } = r;
1487
1487
  if (!l || !l.$)
1488
- throw ce(F.UNEXPECTED_ERROR);
1489
- const m = hr(e, l.$);
1490
- process.env.NODE_ENV !== "production" && i.preserve && Ve(ct(fe.NOT_SUPPORTED_PRESERVE));
1488
+ throw ce(U.UNEXPECTED_ERROR);
1489
+ const _ = vr(e, l.$);
1490
+ process.env.NODE_ENV !== "production" && i.preserve && Ue(ct(_e.NOT_SUPPORTED_PRESERVE));
1491
1491
  const d = pn(c);
1492
1492
  return [
1493
- Reflect.apply(m.t, m, [...gn(d)]),
1494
- m
1493
+ Reflect.apply(_.t, _, [...gn(d)]),
1494
+ _
1495
1495
  ];
1496
1496
  };
1497
1497
  return {
1498
1498
  created: (r, l) => {
1499
1499
  const [i, c] = t(l);
1500
- he && e.global === c && (r.__i18nWatcher = Ie(c.locale, () => {
1500
+ he && e.global === c && (r.__i18nWatcher = Le(c.locale, () => {
1501
1501
  l.instance && l.instance.$forceUpdate();
1502
1502
  })), r.__composer = c, r.textContent = i;
1503
1503
  },
@@ -1523,66 +1523,66 @@ function pn(e) {
1523
1523
  return { path: e };
1524
1524
  if (k(e)) {
1525
1525
  if (!("path" in e))
1526
- throw ce(F.REQUIRED_VALUE, "path");
1526
+ throw ce(U.REQUIRED_VALUE, "path");
1527
1527
  return e;
1528
1528
  } else
1529
- throw ce(F.INVALID_VALUE);
1529
+ throw ce(U.INVALID_VALUE);
1530
1530
  }
1531
1531
  function gn(e) {
1532
1532
  const { path: t, locale: n, args: o, choice: s, plural: a } = e, r = {}, l = o || {};
1533
- return b(n) && (r.locale = n), K(s) && (r.plural = s), K(a) && (r.plural = a), [t, l, r];
1533
+ return b(n) && (r.locale = n), X(s) && (r.plural = s), X(a) && (r.plural = a), [t, l, r];
1534
1534
  }
1535
- function yr(e, t, ...n) {
1536
- const o = k(n[0]) ? n[0] : {}, s = !!o.useI18nComponentName, a = G(o.globalInstall) ? o.globalInstall : !0;
1537
- process.env.NODE_ENV !== "production" && a && s && Ve(ct(fe.COMPONENT_NAME_LEGACY_COMPATIBLE, {
1535
+ function wr(e, t, ...n) {
1536
+ const o = k(n[0]) ? n[0] : {}, s = !!o.useI18nComponentName, a = H(o.globalInstall) ? o.globalInstall : !0;
1537
+ process.env.NODE_ENV !== "production" && a && s && Ue(ct(_e.COMPONENT_NAME_LEGACY_COMPATIBLE, {
1538
1538
  name: pt.name
1539
- })), a && (e.component(s ? "i18n" : pt.name, pt), e.component(_n.name, _n), e.component(mn.name, mn)), e.directive("t", vr(t));
1539
+ })), a && (e.component(s ? "i18n" : pt.name, pt), e.component(_n.name, _n), e.component(mn.name, mn)), e.directive("t", yr(t));
1540
1540
  }
1541
- const po = "vue-i18n: composer properties";
1541
+ const go = "vue-i18n: composer properties";
1542
1542
  let It;
1543
1543
  async function Er(e, t) {
1544
1544
  return new Promise((n, o) => {
1545
1545
  try {
1546
- sr({
1546
+ rr({
1547
1547
  id: "vue-devtools-plugin-vue-i18n",
1548
1548
  label: mt["vue-devtools-plugin-vue-i18n"],
1549
1549
  packageName: "vue-i18n",
1550
1550
  homepage: "https://vue-i18n.intlify.dev",
1551
1551
  logo: "https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",
1552
- componentStateTypes: [po],
1552
+ componentStateTypes: [go],
1553
1553
  app: e
1554
1554
  }, (s) => {
1555
1555
  It = s, s.on.visitComponentTree(({ componentInstance: r, treeNode: l }) => {
1556
- wr(r, l, t);
1556
+ Lr(r, l, t);
1557
1557
  }), s.on.inspectComponent(({ componentInstance: r, instanceData: l }) => {
1558
1558
  r.vnode.el && r.vnode.el.__VUE_I18N__ && l && (t.mode === "legacy" ? r.vnode.el.__VUE_I18N__ !== t.global.__composer && hn(l, r.vnode.el.__VUE_I18N__) : hn(l, r.vnode.el.__VUE_I18N__));
1559
1559
  }), s.addInspector({
1560
1560
  id: "vue-i18n-resource-inspector",
1561
1561
  label: mt["vue-i18n-resource-inspector"],
1562
1562
  icon: "language",
1563
- treeFilterPlaceholder: rr["vue-i18n-resource-inspector"]
1563
+ treeFilterPlaceholder: ar["vue-i18n-resource-inspector"]
1564
1564
  }), s.on.getInspectorTree((r) => {
1565
- r.app === e && r.inspectorId === "vue-i18n-resource-inspector" && Tr(r, t);
1565
+ r.app === e && r.inspectorId === "vue-i18n-resource-inspector" && Nr(r, t);
1566
1566
  });
1567
1567
  const a = /* @__PURE__ */ new Map();
1568
1568
  s.on.getInspectorState(async (r) => {
1569
1569
  if (r.app === e && r.inspectorId === "vue-i18n-resource-inspector")
1570
- if (s.unhighlightElement(), Sr(r, t), r.nodeId === "global") {
1570
+ if (s.unhighlightElement(), Cr(r, t), r.nodeId === "global") {
1571
1571
  if (!a.has(r.app)) {
1572
1572
  const [l] = await s.getComponentInstances(r.app);
1573
1573
  a.set(r.app, l);
1574
1574
  }
1575
1575
  s.highlightElement(a.get(r.app));
1576
1576
  } else {
1577
- const l = Nr(r.nodeId, t);
1577
+ const l = Sr(r.nodeId, t);
1578
1578
  l && s.highlightElement(l);
1579
1579
  }
1580
1580
  }), s.on.editInspectorState((r) => {
1581
- r.app === e && r.inspectorId === "vue-i18n-resource-inspector" && Dr(r, t);
1581
+ r.app === e && r.inspectorId === "vue-i18n-resource-inspector" && Ar(r, t);
1582
1582
  }), s.addTimelineLayer({
1583
1583
  id: "vue-i18n-timeline",
1584
1584
  label: mt["vue-i18n-timeline"],
1585
- color: ar["vue-i18n-timeline"]
1585
+ color: lr["vue-i18n-timeline"]
1586
1586
  }), n(!0);
1587
1587
  });
1588
1588
  } catch (s) {
@@ -1590,14 +1590,14 @@ async function Er(e, t) {
1590
1590
  }
1591
1591
  });
1592
1592
  }
1593
- function go(e) {
1593
+ function ho(e) {
1594
1594
  return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
1595
1595
  }
1596
- function wr(e, t, n) {
1596
+ function Lr(e, t, n) {
1597
1597
  const o = n.mode === "composition" ? n.global : n.global.__composer;
1598
1598
  if (e && e.vnode.el && e.vnode.el.__VUE_I18N__ && e.vnode.el.__VUE_I18N__ !== o) {
1599
1599
  const s = {
1600
- label: `i18n (${go(e)} Scope)`,
1600
+ label: `i18n (${ho(e)} Scope)`,
1601
1601
  textColor: 0,
1602
1602
  backgroundColor: 16764185
1603
1603
  };
@@ -1605,7 +1605,7 @@ function wr(e, t, n) {
1605
1605
  }
1606
1606
  }
1607
1607
  function hn(e, t) {
1608
- const n = po;
1608
+ const n = go;
1609
1609
  e.state.push({
1610
1610
  type: n,
1611
1611
  key: "locale",
@@ -1647,23 +1647,23 @@ function xt(e) {
1647
1647
  const t = {};
1648
1648
  return Object.keys(e).forEach((n) => {
1649
1649
  const o = e[n];
1650
- W(o) && "source" in o ? t[n] = Ir(o) : x(o) ? t[n] = xt(o) : t[n] = o;
1650
+ Y(o) && "source" in o ? t[n] = Tr(o) : V(o) ? t[n] = xt(o) : t[n] = o;
1651
1651
  }), t;
1652
1652
  }
1653
- const Lr = {
1653
+ const br = {
1654
1654
  "<": "&lt;",
1655
1655
  ">": "&gt;",
1656
1656
  '"': "&quot;",
1657
1657
  "&": "&amp;"
1658
1658
  };
1659
- function br(e) {
1660
- return e.replace(/[<>"&]/g, Or);
1661
- }
1662
1659
  function Or(e) {
1663
- return Lr[e] || e;
1660
+ return e.replace(/[<>"&]/g, Ir);
1664
1661
  }
1665
1662
  function Ir(e) {
1666
- const t = e.source ? `("${br(e.source)}")` : "(?)";
1663
+ return br[e] || e;
1664
+ }
1665
+ function Tr(e) {
1666
+ const t = e.source ? `("${Or(e.source)}")` : "(?)";
1667
1667
  return {
1668
1668
  _custom: {
1669
1669
  type: "function",
@@ -1671,7 +1671,7 @@ function Ir(e) {
1671
1671
  }
1672
1672
  };
1673
1673
  }
1674
- function Tr(e, t) {
1674
+ function Nr(e, t) {
1675
1675
  e.rootNodes.push({
1676
1676
  id: "global",
1677
1677
  label: "Global Scope"
@@ -1681,11 +1681,11 @@ function Tr(e, t) {
1681
1681
  const a = t.mode === "composition" ? s : s.__composer;
1682
1682
  n !== a && e.rootNodes.push({
1683
1683
  id: a.id.toString(),
1684
- label: `${go(o)} Scope`
1684
+ label: `${ho(o)} Scope`
1685
1685
  });
1686
1686
  }
1687
1687
  }
1688
- function Nr(e, t) {
1688
+ function Sr(e, t) {
1689
1689
  let n = null;
1690
1690
  if (e !== "global") {
1691
1691
  for (const [o, s] of t.__instances.entries())
@@ -1696,7 +1696,7 @@ function Nr(e, t) {
1696
1696
  }
1697
1697
  return n;
1698
1698
  }
1699
- function ho(e, t) {
1699
+ function vo(e, t) {
1700
1700
  if (e === "global")
1701
1701
  return t.mode === "composition" ? t.global : t.global.__composer;
1702
1702
  {
@@ -1704,11 +1704,11 @@ function ho(e, t) {
1704
1704
  return n ? t.mode === "composition" ? n : n.__composer : null;
1705
1705
  }
1706
1706
  }
1707
- function Sr(e, t) {
1708
- const n = ho(e.nodeId, t);
1709
- return n && (e.state = Cr(n)), null;
1707
+ function Cr(e, t) {
1708
+ const n = vo(e.nodeId, t);
1709
+ return n && (e.state = Dr(n)), null;
1710
1710
  }
1711
- function Cr(e) {
1711
+ function Dr(e) {
1712
1712
  const t = {}, n = "Locale related info", o = [
1713
1713
  {
1714
1714
  type: n,
@@ -1783,23 +1783,23 @@ function Tt(e, t) {
1783
1783
  });
1784
1784
  }
1785
1785
  }
1786
- function Dr(e, t) {
1787
- const n = ho(e.nodeId, t);
1786
+ function Ar(e, t) {
1787
+ const n = vo(e.nodeId, t);
1788
1788
  if (n) {
1789
1789
  const [o] = e.path;
1790
- o === "locale" && b(e.state.value) ? n.locale.value = e.state.value : o === "fallbackLocale" && (b(e.state.value) || H(e.state.value) || x(e.state.value)) ? n.fallbackLocale.value = e.state.value : o === "inheritLocale" && G(e.state.value) && (n.inheritLocale = e.state.value);
1790
+ o === "locale" && b(e.state.value) ? n.locale.value = e.state.value : o === "fallbackLocale" && (b(e.state.value) || W(e.state.value) || V(e.state.value)) ? n.fallbackLocale.value = e.state.value : o === "inheritLocale" && H(e.state.value) && (n.inheritLocale = e.state.value);
1791
1791
  }
1792
1792
  }
1793
- const Ar = /* @__PURE__ */ ve("global-vue-i18n");
1794
- function Pr(e = {}, t) {
1795
- const n = G(e.globalInjection) ? e.globalInjection : !0, o = !0, s = /* @__PURE__ */ new Map(), [a, r] = $r(e), l = ve(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
1793
+ const Pr = /* @__PURE__ */ ve("global-vue-i18n");
1794
+ function $r(e = {}, t) {
1795
+ const n = H(e.globalInjection) ? e.globalInjection : !0, o = !0, s = /* @__PURE__ */ new Map(), [a, r] = Mr(e), l = ve(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
1796
1796
  function i(d) {
1797
1797
  return s.get(d) || null;
1798
1798
  }
1799
1799
  function c(d, u) {
1800
1800
  s.set(d, u);
1801
1801
  }
1802
- function m(d) {
1802
+ function _(d) {
1803
1803
  s.delete(d);
1804
1804
  }
1805
1805
  {
@@ -1810,20 +1810,20 @@ function Pr(e = {}, t) {
1810
1810
  get allowComposition() {
1811
1811
  return o;
1812
1812
  },
1813
- async install(u, ...p) {
1814
- process.env.NODE_ENV !== "production" && (u.__VUE_I18N__ = d), u.__VUE_I18N_SYMBOL__ = l, u.provide(u.__VUE_I18N_SYMBOL__, d), n && Gr(u, d.global), yr(u, d, ...p);
1815
- const y = u.unmount;
1813
+ async install(u, ...m) {
1814
+ process.env.NODE_ENV !== "production" && (u.__VUE_I18N__ = d), u.__VUE_I18N_SYMBOL__ = l, u.provide(u.__VUE_I18N_SYMBOL__, d), n && zr(u, d.global), wr(u, d, ...m);
1815
+ const E = u.unmount;
1816
1816
  if (u.unmount = () => {
1817
- d.dispose(), y();
1817
+ d.dispose(), E();
1818
1818
  }, process.env.NODE_ENV !== "production" || !1) {
1819
1819
  if (!await Er(u, d))
1820
- throw ce(F.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
1821
- const w = Wn();
1820
+ throw ce(U.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
1821
+ const y = Bn();
1822
1822
  {
1823
- const f = r;
1824
- f[Ke] && f[Ke](w);
1823
+ const h = r;
1824
+ h[Ye] && h[Ye](y);
1825
1825
  }
1826
- w.on("*", Tt);
1826
+ y.on("*", Tt);
1827
1827
  }
1828
1828
  },
1829
1829
  get global() {
@@ -1835,7 +1835,7 @@ function Pr(e = {}, t) {
1835
1835
  __instances: s,
1836
1836
  __getInstance: i,
1837
1837
  __setInstance: c,
1838
- __deleteInstance: m
1838
+ __deleteInstance: _
1839
1839
  };
1840
1840
  return d;
1841
1841
  }
@@ -1843,48 +1843,48 @@ function Pr(e = {}, t) {
1843
1843
  function Ft(e = {}) {
1844
1844
  const t = St();
1845
1845
  if (t == null)
1846
- throw ce(F.MUST_BE_CALL_SETUP_TOP);
1846
+ throw ce(U.MUST_BE_CALL_SETUP_TOP);
1847
1847
  if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
1848
- throw ce(F.NOT_INSLALLED);
1849
- const n = Mr(t), o = Rr(n), s = uo(t), a = kr(e, s);
1848
+ throw ce(U.NOT_INSLALLED);
1849
+ const n = kr(t), o = xr(n), s = fo(t), a = Rr(e, s);
1850
1850
  if (a === "global")
1851
- return _r(o, e, s), o;
1851
+ return mr(o, e, s), o;
1852
1852
  if (a === "parent") {
1853
- let i = xr(n, t, e.__useComponent);
1854
- return i == null && (process.env.NODE_ENV !== "production" && Ve(ct(fe.NOT_FOUND_PARENT_SCOPE)), i = o), i;
1853
+ let i = Fr(n, t, e.__useComponent);
1854
+ return i == null && (process.env.NODE_ENV !== "production" && Ue(ct(_e.NOT_FOUND_PARENT_SCOPE)), i = o), i;
1855
1855
  }
1856
1856
  const r = n;
1857
1857
  let l = r.__getInstance(t);
1858
1858
  if (l == null) {
1859
1859
  const i = ne({}, e);
1860
- "__i18n" in s && (i.__i18n = s.__i18n), o && (i.__root = o), l = fo(i), Fr(r, t, l), r.__setInstance(t, l);
1860
+ "__i18n" in s && (i.__i18n = s.__i18n), o && (i.__root = o), l = _o(i), Vr(r, t, l), r.__setInstance(t, l);
1861
1861
  }
1862
1862
  return l;
1863
1863
  }
1864
- function $r(e, t, n) {
1865
- const o = es();
1864
+ function Mr(e, t, n) {
1865
+ const o = ts();
1866
1866
  {
1867
- const s = o.run(() => fo(e));
1867
+ const s = o.run(() => _o(e));
1868
1868
  if (s == null)
1869
- throw ce(F.UNEXPECTED_ERROR);
1869
+ throw ce(U.UNEXPECTED_ERROR);
1870
1870
  return [o, s];
1871
1871
  }
1872
1872
  }
1873
- function Mr(e) {
1873
+ function kr(e) {
1874
1874
  {
1875
- const t = tt(e.isCE ? Ar : e.appContext.app.__VUE_I18N_SYMBOL__);
1875
+ const t = ke(e.isCE ? Pr : e.appContext.app.__VUE_I18N_SYMBOL__);
1876
1876
  if (!t)
1877
- throw ce(e.isCE ? F.NOT_INSLALLED_WITH_PROVIDE : F.UNEXPECTED_ERROR);
1877
+ throw ce(e.isCE ? U.NOT_INSLALLED_WITH_PROVIDE : U.UNEXPECTED_ERROR);
1878
1878
  return t;
1879
1879
  }
1880
1880
  }
1881
- function kr(e, t) {
1881
+ function Rr(e, t) {
1882
1882
  return at(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
1883
1883
  }
1884
- function Rr(e) {
1884
+ function xr(e) {
1885
1885
  return e.mode === "composition" ? e.global : e.global.__composer;
1886
1886
  }
1887
- function xr(e, t, n = !1) {
1887
+ function Fr(e, t, n = !1) {
1888
1888
  let o = null;
1889
1889
  const s = t.root;
1890
1890
  let a = t.parent;
@@ -1896,13 +1896,13 @@ function xr(e, t, n = !1) {
1896
1896
  }
1897
1897
  return o;
1898
1898
  }
1899
- function Fr(e, t, n) {
1899
+ function Vr(e, t, n) {
1900
1900
  let o = null;
1901
- xe(() => {
1901
+ Ve(() => {
1902
1902
  if ((process.env.NODE_ENV !== "production" || !1) && !0 && t.vnode.el) {
1903
- t.vnode.el.__VUE_I18N__ = n, o = Wn();
1903
+ t.vnode.el.__VUE_I18N__ = n, o = Bn();
1904
1904
  const s = n;
1905
- s[Ke] && s[Ke](o), o.on("*", Tt);
1905
+ s[Ye] && s[Ye](o), o.on("*", Tt);
1906
1906
  }
1907
1907
  }, t), rt(() => {
1908
1908
  if ((process.env.NODE_ENV !== "production" || !1) && !0 && t.vnode.el && t.vnode.el.__VUE_I18N__) {
@@ -1913,18 +1913,18 @@ function Fr(e, t, n) {
1913
1913
  e.__deleteInstance(t);
1914
1914
  }, t);
1915
1915
  }
1916
- const Vr = [
1916
+ const Ur = [
1917
1917
  "locale",
1918
1918
  "fallbackLocale",
1919
1919
  "availableLocales"
1920
- ], Ur = ["t", "rt", "d", "n", "tm"];
1921
- function Gr(e, t) {
1920
+ ], Gr = ["t", "rt", "d", "n", "tm"];
1921
+ function zr(e, t) {
1922
1922
  const n = /* @__PURE__ */ Object.create(null);
1923
- Vr.forEach((o) => {
1923
+ Ur.forEach((o) => {
1924
1924
  const s = Object.getOwnPropertyDescriptor(t, o);
1925
1925
  if (!s)
1926
- throw ce(F.UNEXPECTED_ERROR);
1927
- const a = ts(s.value) ? {
1926
+ throw ce(U.UNEXPECTED_ERROR);
1927
+ const a = ns(s.value) ? {
1928
1928
  get() {
1929
1929
  return s.value.value;
1930
1930
  },
@@ -1937,22 +1937,22 @@ function Gr(e, t) {
1937
1937
  }
1938
1938
  };
1939
1939
  Object.defineProperty(n, o, a);
1940
- }), e.config.globalProperties.$i18n = n, Ur.forEach((o) => {
1940
+ }), e.config.globalProperties.$i18n = n, Gr.forEach((o) => {
1941
1941
  const s = Object.getOwnPropertyDescriptor(t, o);
1942
1942
  if (!s || !s.value)
1943
- throw ce(F.UNEXPECTED_ERROR);
1943
+ throw ce(U.UNEXPECTED_ERROR);
1944
1944
  Object.defineProperty(e.config.globalProperties, `$${o}`, s);
1945
1945
  });
1946
1946
  }
1947
- Gs(ws);
1948
- zs(Yn);
1949
- ir();
1947
+ zs(Ls);
1948
+ Hs(Xn);
1949
+ cr();
1950
1950
  if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
1951
1951
  const e = At();
1952
- e.__INTLIFY__ = !0, Ds(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
1952
+ e.__INTLIFY__ = !0, As(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
1953
1953
  }
1954
1954
  process.env.NODE_ENV;
1955
- const zr = {
1955
+ const Hr = {
1956
1956
  "zhi-xian-shi-zai-xian-she-bei": (e) => {
1957
1957
  const { normalize: t } = e;
1958
1958
  return t(["\u53EA\u663E\u793A\u5728\u7EBF\u7EC8\u7AEF"]);
@@ -1985,7 +1985,7 @@ const zr = {
1985
1985
  const { normalize: t } = e;
1986
1986
  return t(["\u5217\u6570"]);
1987
1987
  }
1988
- }, Hr = {
1988
+ }, jr = {
1989
1989
  "zhi-xian-shi-zai-xian-she-bei": (e) => {
1990
1990
  const { normalize: t } = e;
1991
1991
  return t(["Online Only"]);
@@ -2019,52 +2019,52 @@ const zr = {
2019
2019
  return t(["Number of columns"]);
2020
2020
  }
2021
2021
  };
2022
- var vo = /* @__PURE__ */ ((e) => (e.zh = "zh", e.en = "en", e))(vo || {});
2023
- let We;
2024
- function jr(e) {
2025
- We && We.dispose(), We = Pr({
2022
+ var yo = /* @__PURE__ */ ((e) => (e.zh = "zh", e.en = "en", e))(yo || {});
2023
+ let Be;
2024
+ function Wr(e) {
2025
+ Be && Be.dispose(), Be = $r({
2026
2026
  locale: e,
2027
2027
  messages: {
2028
- zh: zr,
2029
- en: Hr
2028
+ zh: Hr,
2029
+ en: jr
2030
2030
  },
2031
2031
  fallbackLocale: "en",
2032
2032
  silentTranslationWarn: !0,
2033
2033
  silentFallbackWarn: !0
2034
2034
  });
2035
2035
  }
2036
- function Wr(e) {
2037
- jr(e), We.global.locale = e;
2036
+ function Br(e) {
2037
+ Wr(e), Be.global.locale = e;
2038
2038
  }
2039
- function Ne(e) {
2040
- return We.global.t(e);
2041
- }
2042
- var yo = /* @__PURE__ */ ((e) => (e.UserFirst = "UserFirst", e.PUFirst = "PUFirst", e))(yo || {}), Eo = /* @__PURE__ */ ((e) => (e.BACKGROUND_WHITE = "white", e.BACKGROUND_DRAK = "drak", e))(Eo || {});
2043
- const wo = M(
2044
- "white"
2045
- );
2046
- function Xi(e) {
2047
- wo.value = e;
2048
- }
2049
- function Br() {
2050
- return wo;
2039
+ function Ce(e) {
2040
+ return Be.global.t(e);
2051
2041
  }
2042
+ var wo = /* @__PURE__ */ ((e) => (e.UserFirst = "UserFirst", e.PUFirst = "PUFirst", e))(wo || {}), Eo = /* @__PURE__ */ ((e) => (e.BACKGROUND_WHITE = "white", e.BACKGROUND_DRAK = "drak", e.BACKGROUND_DARK = "dark", e))(Eo || {});
2052
2043
  const Lo = M(
2053
- "UserFirst"
2044
+ "white"
2054
2045
  );
2055
- function Kr(e) {
2046
+ function qi(e) {
2056
2047
  Lo.value = e;
2057
2048
  }
2058
- function Yr() {
2049
+ function Kr() {
2059
2050
  return Lo;
2060
2051
  }
2061
- const bo = M(!1);
2062
- function Ji(e) {
2052
+ const bo = M(
2053
+ "UserFirst"
2054
+ );
2055
+ function Yr(e) {
2063
2056
  bo.value = e;
2064
2057
  }
2065
2058
  function Xr() {
2066
2059
  return bo;
2067
2060
  }
2061
+ const Oo = M(!1);
2062
+ function Zi(e) {
2063
+ Oo.value = e;
2064
+ }
2065
+ function Jr() {
2066
+ return Oo;
2067
+ }
2068
2068
  var vn;
2069
2069
  ((e) => {
2070
2070
  ((n) => {
@@ -2148,7 +2148,7 @@ var vn;
2148
2148
  n.AccessSession = o;
2149
2149
  })(e.Utils || (e.Utils = {}));
2150
2150
  })(vn || (vn = {}));
2151
- var N;
2151
+ var S;
2152
2152
  ((e) => {
2153
2153
  e.zeroLayout = {
2154
2154
  name: "0",
@@ -2159,21 +2159,21 @@ var N;
2159
2159
  function t(n, o, s) {
2160
2160
  if (s) {
2161
2161
  let r = n * o;
2162
- return s.forEach(([l, i, c, m]) => {
2163
- r -= (m - i) * (c - l) - 1;
2162
+ return s.forEach(([l, i, c, _]) => {
2163
+ r -= (_ - i) * (c - l) - 1;
2164
2164
  }), {
2165
2165
  count: r,
2166
2166
  row: n,
2167
2167
  col: o,
2168
2168
  name: `${r < 10 ? `0${r}` : r}`,
2169
- areas: s.map(([l, i, c, m]) => ({
2169
+ areas: s.map(([l, i, c, _]) => ({
2170
2170
  leftTop: {
2171
2171
  col: l,
2172
2172
  row: i
2173
2173
  },
2174
2174
  rightBottom: {
2175
2175
  col: c,
2176
- row: m
2176
+ row: _
2177
2177
  }
2178
2178
  }))
2179
2179
  };
@@ -2226,62 +2226,71 @@ var N;
2226
2226
  }
2227
2227
  n.getTestLayout = s;
2228
2228
  })(e.Test || (e.Test = {}));
2229
- })(N || (N = {}));
2230
- const Oo = String.prototype.includes, Io = function(e, t) {
2229
+ })(S || (S = {}));
2230
+ const Io = String.prototype.includes, To = function(e, t) {
2231
2231
  const n = this.toLocaleLowerCase(), o = e.toLocaleLowerCase();
2232
- String.prototype.includes = Oo;
2232
+ String.prototype.includes = Io;
2233
2233
  const s = n.includes(o, t);
2234
- return String.prototype.includes = Io, s;
2234
+ return String.prototype.includes = To, s;
2235
2235
  };
2236
2236
  function st(e) {
2237
- String.prototype.includes = Io;
2237
+ String.prototype.includes = To;
2238
2238
  const t = e();
2239
- return String.prototype.includes = Oo, t;
2239
+ return String.prototype.includes = Io, t;
2240
2240
  }
2241
- const Jr = q({
2241
+ const Qr = Z({
2242
2242
  props: {
2243
2243
  countInfo: Object,
2244
2244
  controlParams: Object
2245
2245
  },
2246
2246
  setup(e) {
2247
- function t(a, r) {
2247
+ function t(a, r, l = []) {
2248
+ const i = [...l, { name: r.name }];
2248
2249
  if (r) {
2249
- let l = 0;
2250
- return r.items.forEach((i) => {
2251
- l += t(a, i);
2252
- }), a(r) + l;
2250
+ let c = 0;
2251
+ return r.items.forEach((_) => {
2252
+ c += t(a, _, i);
2253
+ }), a(r, i) + c;
2253
2254
  }
2254
2255
  return 0;
2255
2256
  }
2256
- const n = V(() => t((a) => {
2257
- var r, l;
2257
+ const n = F(() => t((a, r) => {
2258
+ var l, i;
2258
2259
  if (a.devices) {
2259
- let i = (r = a.devices) == null ? void 0 : r.filter((m) => m.online);
2260
- const c = (l = e.controlParams) == null ? void 0 : l.searchStr;
2261
- return c && (i = i.filter((m) => st(
2262
- () => {
2263
- var d;
2264
- return m.name.includes(c) || ((d = m.user) == null ? void 0 : d.includes(c)) || m.id.includes(c);
2265
- }
2266
- ))), i.length;
2260
+ let c = (l = a.devices) == null ? void 0 : l.filter((d) => d.online);
2261
+ const _ = (i = e.controlParams) == null ? void 0 : i.searchStr;
2262
+ if (_) {
2263
+ const d = !!r.find((u) => u.name.indexOf(_) >= 0);
2264
+ c = c.filter((u) => st(
2265
+ () => {
2266
+ var m;
2267
+ return d || u.name.includes(_) || ((m = u.user) == null ? void 0 : m.includes(_)) || u.id.includes(_);
2268
+ }
2269
+ ));
2270
+ }
2271
+ return c.length;
2267
2272
  }
2268
2273
  return 0;
2269
- }, e.countInfo)), o = V(() => t((a) => {
2270
- var r;
2274
+ }, e.countInfo)), o = F(() => t((a, r) => {
2275
+ var l;
2271
2276
  if (a.devices) {
2272
- let l = a.devices;
2273
- const i = (r = e.controlParams) == null ? void 0 : r.searchStr;
2274
- return i && (l = l.filter((c) => st(
2275
- () => {
2276
- var m;
2277
- return c.name.includes(i) || ((m = c.user) == null ? void 0 : m.includes(i)) || c.id.includes(i);
2278
- }
2279
- ))), l.length;
2277
+ let i = a.devices;
2278
+ const c = (l = e.controlParams) == null ? void 0 : l.searchStr;
2279
+ if (c) {
2280
+ const _ = !!r.find((d) => d.name.indexOf(c) >= 0);
2281
+ i = i.filter((d) => st(
2282
+ () => {
2283
+ var u;
2284
+ return _ || d.name.includes(c) || ((u = d.user) == null ? void 0 : u.includes(c)) || d.id.includes(c);
2285
+ }
2286
+ ));
2287
+ }
2288
+ return i.length;
2280
2289
  }
2281
2290
  return a.totalCount;
2282
2291
  }, e.countInfo));
2283
2292
  return {
2284
- theme: tt("theme"),
2293
+ theme: ke("theme"),
2285
2294
  totalCount: o,
2286
2295
  onlineCount: n
2287
2296
  };
@@ -2292,36 +2301,36 @@ const oe = (e, t) => {
2292
2301
  for (const [o, s] of t)
2293
2302
  n[o] = s;
2294
2303
  return n;
2295
- }, Qr = { class: "count-show" }, qr = { class: "count-show-online" }, Zr = { key: 0 };
2296
- function ea(e, t, n, o, s, a) {
2304
+ }, qr = { class: "count-show" }, Zr = { class: "count-show-online" }, ea = { key: 0 };
2305
+ function ta(e, t, n, o, s, a) {
2297
2306
  var r;
2298
- return S(), D("div", {
2299
- class: ke(`root ${e.theme}`)
2307
+ return C(), P("div", {
2308
+ class: xe(`root ${e.theme}`)
2300
2309
  }, [
2301
- Y(e.$slots, "default", {
2310
+ J(e.$slots, "default", {
2302
2311
  total: e.totalCount,
2303
2312
  online: e.onlineCount
2304
2313
  }, void 0, !0),
2305
- L("span", Qr, [
2306
- L("span", qr, z(e.onlineCount), 1),
2307
- (r = e.controlParams) != null && r.onlyShowOnline ? ge("", !0) : (S(), D("span", Zr, "/" + z(e.totalCount), 1))
2314
+ O("span", qr, [
2315
+ O("span", Zr, j(e.onlineCount), 1),
2316
+ (r = e.controlParams) != null && r.onlyShowOnline ? ue("", !0) : (C(), P("span", ea, "/" + j(e.totalCount), 1))
2308
2317
  ])
2309
2318
  ], 2);
2310
2319
  }
2311
- const To = /* @__PURE__ */ oe(Jr, [["render", ea], ["__scopeId", "data-v-378b853b"]]), No = Object.freeze(
2320
+ const No = /* @__PURE__ */ oe(Qr, [["render", ta], ["__scopeId", "data-v-c7e943f1"]]), So = Object.freeze(
2312
2321
  {
2313
2322
  left: 0,
2314
2323
  top: 0,
2315
2324
  width: 16,
2316
2325
  height: 16
2317
2326
  }
2318
- ), So = Object.freeze({
2327
+ ), Co = Object.freeze({
2319
2328
  rotate: 0,
2320
2329
  vFlip: !1,
2321
2330
  hFlip: !1
2322
2331
  }), Vt = Object.freeze({
2323
- ...No,
2324
- ...So
2332
+ ...So,
2333
+ ...Co
2325
2334
  });
2326
2335
  Object.freeze({
2327
2336
  ...Vt,
@@ -2329,28 +2338,28 @@ Object.freeze({
2329
2338
  hidden: !1
2330
2339
  });
2331
2340
  ({
2332
- ...No
2341
+ ...So
2333
2342
  });
2334
- const Co = Object.freeze({
2343
+ const Do = Object.freeze({
2335
2344
  width: null,
2336
2345
  height: null
2337
- }), Do = Object.freeze({
2338
- ...Co,
2339
- ...So
2346
+ }), Ao = Object.freeze({
2347
+ ...Do,
2348
+ ...Co
2340
2349
  });
2341
- function ta(e, t) {
2350
+ function na(e, t) {
2342
2351
  const n = {
2343
2352
  ...e
2344
2353
  };
2345
2354
  for (const o in t) {
2346
2355
  const s = t[o], a = typeof s;
2347
- o in Co ? (s === null || s && (a === "string" || a === "number")) && (n[o] = s) : a === typeof n[o] && (n[o] = o === "rotate" ? s % 4 : s);
2356
+ o in Do ? (s === null || s && (a === "string" || a === "number")) && (n[o] = s) : a === typeof n[o] && (n[o] = o === "rotate" ? s % 4 : s);
2348
2357
  }
2349
2358
  return n;
2350
2359
  }
2351
- const na = /[\s,]+/;
2352
- function oa(e, t) {
2353
- t.split(na).forEach((n) => {
2360
+ const oa = /[\s,]+/;
2361
+ function sa(e, t) {
2362
+ t.split(oa).forEach((n) => {
2354
2363
  switch (n.trim()) {
2355
2364
  case "horizontal":
2356
2365
  e.hFlip = !0;
@@ -2361,7 +2370,7 @@ function oa(e, t) {
2361
2370
  }
2362
2371
  });
2363
2372
  }
2364
- function sa(e, t = 0) {
2373
+ function ra(e, t = 0) {
2365
2374
  const n = e.replace(/^-?[0-9.]*/, "");
2366
2375
  function o(s) {
2367
2376
  for (; s < 0; )
@@ -2387,7 +2396,7 @@ function sa(e, t = 0) {
2387
2396
  }
2388
2397
  return t;
2389
2398
  }
2390
- const ra = /(-?[0-9.]*[0-9]+[0-9.]*)/g, aa = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
2399
+ const aa = /(-?[0-9.]*[0-9]+[0-9.]*)/g, la = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
2391
2400
  function yn(e, t, n) {
2392
2401
  if (t === 1)
2393
2402
  return e;
@@ -2395,11 +2404,11 @@ function yn(e, t, n) {
2395
2404
  return Math.ceil(e * t * n) / n;
2396
2405
  if (typeof e != "string")
2397
2406
  return e;
2398
- const o = e.split(ra);
2407
+ const o = e.split(aa);
2399
2408
  if (o === null || !o.length)
2400
2409
  return e;
2401
2410
  const s = [];
2402
- let a = o.shift(), r = aa.test(a);
2411
+ let a = o.shift(), r = la.test(a);
2403
2412
  for (; ; ) {
2404
2413
  if (r) {
2405
2414
  const l = parseFloat(a);
@@ -2411,12 +2420,12 @@ function yn(e, t, n) {
2411
2420
  r = !r;
2412
2421
  }
2413
2422
  }
2414
- function la(e, t) {
2423
+ function ia(e, t) {
2415
2424
  const n = {
2416
2425
  ...Vt,
2417
2426
  ...e
2418
2427
  }, o = {
2419
- ...Do,
2428
+ ...Ao,
2420
2429
  ...t
2421
2430
  }, s = {
2422
2431
  left: n.left,
@@ -2425,114 +2434,114 @@ function la(e, t) {
2425
2434
  height: n.height
2426
2435
  };
2427
2436
  let a = n.body;
2428
- [n, o].forEach((p) => {
2429
- const y = [], E = p.hFlip, w = p.vFlip;
2430
- let f = p.rotate;
2431
- E ? w ? f += 2 : (y.push(
2437
+ [n, o].forEach((m) => {
2438
+ const E = [], L = m.hFlip, y = m.vFlip;
2439
+ let h = m.rotate;
2440
+ L ? y ? h += 2 : (E.push(
2432
2441
  "translate(" + (s.width + s.left).toString() + " " + (0 - s.top).toString() + ")"
2433
- ), y.push("scale(-1 1)"), s.top = s.left = 0) : w && (y.push(
2442
+ ), E.push("scale(-1 1)"), s.top = s.left = 0) : y && (E.push(
2434
2443
  "translate(" + (0 - s.left).toString() + " " + (s.height + s.top).toString() + ")"
2435
- ), y.push("scale(1 -1)"), s.top = s.left = 0);
2436
- let g;
2437
- switch (f < 0 && (f -= Math.floor(f / 4) * 4), f = f % 4, f) {
2444
+ ), E.push("scale(1 -1)"), s.top = s.left = 0);
2445
+ let w;
2446
+ switch (h < 0 && (h -= Math.floor(h / 4) * 4), h = h % 4, h) {
2438
2447
  case 1:
2439
- g = s.height / 2 + s.top, y.unshift(
2440
- "rotate(90 " + g.toString() + " " + g.toString() + ")"
2448
+ w = s.height / 2 + s.top, E.unshift(
2449
+ "rotate(90 " + w.toString() + " " + w.toString() + ")"
2441
2450
  );
2442
2451
  break;
2443
2452
  case 2:
2444
- y.unshift(
2453
+ E.unshift(
2445
2454
  "rotate(180 " + (s.width / 2 + s.left).toString() + " " + (s.height / 2 + s.top).toString() + ")"
2446
2455
  );
2447
2456
  break;
2448
2457
  case 3:
2449
- g = s.width / 2 + s.left, y.unshift(
2450
- "rotate(-90 " + g.toString() + " " + g.toString() + ")"
2458
+ w = s.width / 2 + s.left, E.unshift(
2459
+ "rotate(-90 " + w.toString() + " " + w.toString() + ")"
2451
2460
  );
2452
2461
  break;
2453
2462
  }
2454
- f % 2 === 1 && (s.left !== s.top && (g = s.left, s.left = s.top, s.top = g), s.width !== s.height && (g = s.width, s.width = s.height, s.height = g)), y.length && (a = '<g transform="' + y.join(" ") + '">' + a + "</g>");
2463
+ h % 2 === 1 && (s.left !== s.top && (w = s.left, s.left = s.top, s.top = w), s.width !== s.height && (w = s.width, s.width = s.height, s.height = w)), E.length && (a = '<g transform="' + E.join(" ") + '">' + a + "</g>");
2455
2464
  });
2456
2465
  const r = o.width, l = o.height, i = s.width, c = s.height;
2457
- let m, d;
2458
- return r === null ? (d = l === null ? "1em" : l === "auto" ? c : l, m = yn(d, i / c)) : (m = r === "auto" ? i : r, d = l === null ? yn(m, c / i) : l === "auto" ? c : l), {
2466
+ let _, d;
2467
+ return r === null ? (d = l === null ? "1em" : l === "auto" ? c : l, _ = yn(d, i / c)) : (_ = r === "auto" ? i : r, d = l === null ? yn(_, c / i) : l === "auto" ? c : l), {
2459
2468
  attributes: {
2460
- width: m.toString(),
2469
+ width: _.toString(),
2461
2470
  height: d.toString(),
2462
2471
  viewBox: s.left.toString() + " " + s.top.toString() + " " + i.toString() + " " + c.toString()
2463
2472
  },
2464
2473
  body: a
2465
2474
  };
2466
2475
  }
2467
- const ia = /\sid="(\S+)"/g, ca = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
2468
- let ua = 0;
2469
- function da(e, t = ca) {
2476
+ const ca = /\sid="(\S+)"/g, ua = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
2477
+ let da = 0;
2478
+ function fa(e, t = ua) {
2470
2479
  const n = [];
2471
2480
  let o;
2472
- for (; o = ia.exec(e); )
2481
+ for (; o = ca.exec(e); )
2473
2482
  n.push(o[1]);
2474
2483
  return n.length && n.forEach((s) => {
2475
- const a = typeof t == "function" ? t(s) : t + (ua++).toString(), r = s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
2484
+ const a = typeof t == "function" ? t(s) : t + (da++).toString(), r = s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
2476
2485
  e = e.replace(
2477
2486
  new RegExp('([#;"])(' + r + ')([")]|\\.[a-z])', "g"),
2478
2487
  "$1" + a + "$3"
2479
2488
  );
2480
2489
  }), e;
2481
2490
  }
2482
- function fa(e, t) {
2491
+ function _a(e, t) {
2483
2492
  let n = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
2484
2493
  for (const o in t)
2485
2494
  n += " " + o + '="' + t[o] + '"';
2486
2495
  return '<svg xmlns="http://www.w3.org/2000/svg"' + n + ">" + e + "</svg>";
2487
2496
  }
2488
- function _a(e) {
2497
+ function ma(e) {
2489
2498
  return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
2490
2499
  }
2491
- function ma(e) {
2492
- return 'url("data:image/svg+xml,' + _a(e) + '")';
2500
+ function pa(e) {
2501
+ return 'url("data:image/svg+xml,' + ma(e) + '")';
2493
2502
  }
2494
- const En = {
2495
- ...Do,
2503
+ const wn = {
2504
+ ...Ao,
2496
2505
  inline: !1
2497
- }, pa = {
2506
+ }, ga = {
2498
2507
  xmlns: "http://www.w3.org/2000/svg",
2499
2508
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
2500
2509
  "aria-hidden": !0,
2501
2510
  role: "img"
2502
- }, ga = {
2511
+ }, ha = {
2503
2512
  display: "inline-block"
2504
2513
  }, Nt = {
2505
2514
  backgroundColor: "currentColor"
2506
- }, Ao = {
2515
+ }, Po = {
2507
2516
  backgroundColor: "transparent"
2508
- }, wn = {
2517
+ }, En = {
2509
2518
  Image: "var(--svg)",
2510
2519
  Repeat: "no-repeat",
2511
2520
  Size: "100% 100%"
2512
2521
  }, Ln = {
2513
2522
  webkitMask: Nt,
2514
2523
  mask: Nt,
2515
- background: Ao
2524
+ background: Po
2516
2525
  };
2517
2526
  for (const e in Ln) {
2518
2527
  const t = Ln[e];
2519
- for (const n in wn)
2520
- t[e + n] = wn[n];
2528
+ for (const n in En)
2529
+ t[e + n] = En[n];
2521
2530
  }
2522
- const Ze = {};
2531
+ const et = {};
2523
2532
  ["horizontal", "vertical"].forEach((e) => {
2524
2533
  const t = e.slice(0, 1) + "Flip";
2525
- Ze[e + "-flip"] = t, Ze[e.slice(0, 1) + "-flip"] = t, Ze[e + "Flip"] = t;
2534
+ et[e + "-flip"] = t, et[e.slice(0, 1) + "-flip"] = t, et[e + "Flip"] = t;
2526
2535
  });
2527
2536
  function bn(e) {
2528
2537
  return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
2529
2538
  }
2530
- const ha = (e, t) => {
2531
- const n = ta(En, t), o = { ...pa }, s = t.mode || "svg", a = {}, r = t.style, l = typeof r == "object" && !(r instanceof Array) ? r : {};
2532
- for (let E in t) {
2533
- const w = t[E];
2534
- if (w !== void 0)
2535
- switch (E) {
2539
+ const va = (e, t) => {
2540
+ const n = na(wn, t), o = { ...ga }, s = t.mode || "svg", a = {}, r = t.style, l = typeof r == "object" && !(r instanceof Array) ? r : {};
2541
+ for (let L in t) {
2542
+ const y = t[L];
2543
+ if (y !== void 0)
2544
+ switch (L) {
2536
2545
  case "icon":
2537
2546
  case "style":
2538
2547
  case "onLoad":
@@ -2541,72 +2550,72 @@ const ha = (e, t) => {
2541
2550
  case "inline":
2542
2551
  case "hFlip":
2543
2552
  case "vFlip":
2544
- n[E] = w === !0 || w === "true" || w === 1;
2553
+ n[L] = y === !0 || y === "true" || y === 1;
2545
2554
  break;
2546
2555
  case "flip":
2547
- typeof w == "string" && oa(n, w);
2556
+ typeof y == "string" && sa(n, y);
2548
2557
  break;
2549
2558
  case "color":
2550
- a.color = w;
2559
+ a.color = y;
2551
2560
  break;
2552
2561
  case "rotate":
2553
- typeof w == "string" ? n[E] = sa(w) : typeof w == "number" && (n[E] = w);
2562
+ typeof y == "string" ? n[L] = ra(y) : typeof y == "number" && (n[L] = y);
2554
2563
  break;
2555
2564
  case "ariaHidden":
2556
2565
  case "aria-hidden":
2557
- w !== !0 && w !== "true" && delete o["aria-hidden"];
2566
+ y !== !0 && y !== "true" && delete o["aria-hidden"];
2558
2567
  break;
2559
2568
  default: {
2560
- const f = Ze[E];
2561
- f ? (w === !0 || w === "true" || w === 1) && (n[f] = !0) : En[E] === void 0 && (o[E] = w);
2569
+ const h = et[L];
2570
+ h ? (y === !0 || y === "true" || y === 1) && (n[h] = !0) : wn[L] === void 0 && (o[L] = y);
2562
2571
  }
2563
2572
  }
2564
2573
  }
2565
- const i = la(e, n), c = i.attributes;
2574
+ const i = ia(e, n), c = i.attributes;
2566
2575
  if (n.inline && (a.verticalAlign = "-0.125em"), s === "svg") {
2567
2576
  o.style = {
2568
2577
  ...a,
2569
2578
  ...l
2570
2579
  }, Object.assign(o, c);
2571
- let E = 0, w = t.id;
2572
- return typeof w == "string" && (w = w.replace(/-/g, "_")), o.innerHTML = da(i.body, w ? () => w + "ID" + E++ : "iconifyVue"), et("svg", o);
2580
+ let L = 0, y = t.id;
2581
+ return typeof y == "string" && (y = y.replace(/-/g, "_")), o.innerHTML = fa(i.body, y ? () => y + "ID" + L++ : "iconifyVue"), tt("svg", o);
2573
2582
  }
2574
- const { body: m, width: d, height: u } = e, p = s === "mask" || (s === "bg" ? !1 : m.indexOf("currentColor") !== -1), y = fa(m, {
2583
+ const { body: _, width: d, height: u } = e, m = s === "mask" || (s === "bg" ? !1 : _.indexOf("currentColor") !== -1), E = _a(_, {
2575
2584
  ...c,
2576
2585
  width: d + "",
2577
2586
  height: u + ""
2578
2587
  });
2579
2588
  return o.style = {
2580
2589
  ...a,
2581
- "--svg": ma(y),
2590
+ "--svg": pa(E),
2582
2591
  width: bn(c.width),
2583
2592
  height: bn(c.height),
2584
- ...ga,
2585
- ...p ? Nt : Ao,
2593
+ ...ha,
2594
+ ...m ? Nt : Po,
2586
2595
  ...l
2587
- }, et("span", o);
2588
- }, Po = /* @__PURE__ */ Object.create(null);
2589
- function Ce(e, t) {
2590
- Po[e] = t;
2596
+ }, tt("span", o);
2597
+ }, $o = /* @__PURE__ */ Object.create(null);
2598
+ function Ae(e, t) {
2599
+ $o[e] = t;
2591
2600
  }
2592
- const ut = q({
2601
+ const ut = Z({
2593
2602
  inheritAttrs: !1,
2594
2603
  render() {
2595
- const e = this.$attrs, t = e.icon, n = typeof t == "string" ? Po[t] : typeof t == "object" ? t : null;
2596
- return n === null || typeof n != "object" || typeof n.body != "string" ? this.$slots.default ? this.$slots.default() : null : ha({
2604
+ const e = this.$attrs, t = e.icon, n = typeof t == "string" ? $o[t] : typeof t == "object" ? t : null;
2605
+ return n === null || typeof n != "object" || typeof n.body != "string" ? this.$slots.default ? this.$slots.default() : null : va({
2597
2606
  ...Vt,
2598
2607
  ...n
2599
2608
  }, e);
2600
2609
  }
2601
2610
  });
2602
- var va = Object.defineProperty, ya = Object.defineProperties, Ea = Object.getOwnPropertyDescriptors, On = Object.getOwnPropertySymbols, wa = Object.prototype.hasOwnProperty, La = Object.prototype.propertyIsEnumerable, In = (e, t, n) => t in e ? va(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Tn = (e, t) => {
2611
+ var ya = Object.defineProperty, wa = Object.defineProperties, Ea = Object.getOwnPropertyDescriptors, On = Object.getOwnPropertySymbols, La = Object.prototype.hasOwnProperty, ba = Object.prototype.propertyIsEnumerable, In = (e, t, n) => t in e ? ya(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Tn = (e, t) => {
2603
2612
  for (var n in t || (t = {}))
2604
- wa.call(t, n) && In(e, n, t[n]);
2613
+ La.call(t, n) && In(e, n, t[n]);
2605
2614
  if (On)
2606
2615
  for (var n of On(t))
2607
- La.call(t, n) && In(e, n, t[n]);
2616
+ ba.call(t, n) && In(e, n, t[n]);
2608
2617
  return e;
2609
- }, ba = (e, t) => ya(e, Ea(t)), Oa = (e, t, n) => new Promise((o, s) => {
2618
+ }, Oa = (e, t) => wa(e, Ea(t)), Ia = (e, t, n) => new Promise((o, s) => {
2610
2619
  var a = (i) => {
2611
2620
  try {
2612
2621
  l(n.next(i));
@@ -2622,7 +2631,7 @@ var va = Object.defineProperty, ya = Object.defineProperties, Ea = Object.getOwn
2622
2631
  }, l = (i) => i.done ? o(i.value) : Promise.resolve(i.value).then(a, r);
2623
2632
  l((n = n.apply(e, t)).next());
2624
2633
  });
2625
- const Ia = {
2634
+ const Ta = {
2626
2635
  name: "VirtualList",
2627
2636
  props: {
2628
2637
  listData: {
@@ -2640,25 +2649,25 @@ const Ia = {
2640
2649
  },
2641
2650
  setup(e) {
2642
2651
  const t = {
2643
- screenHeight: V(() => parseInt(e.devicePanelHeight.replace("px", ""))),
2652
+ screenHeight: F(() => parseInt(e.devicePanelHeight.replace("px", ""))),
2644
2653
  startOffset: M(0),
2645
2654
  start: M(0),
2646
2655
  end: M(0),
2647
2656
  activeResetScrollOffset() {
2648
2657
  }
2649
2658
  }, n = M(), o = {
2650
- listHeight: V(() => e.listData.length * e.itemSize),
2651
- visibleCount: V(() => Math.ceil(t.screenHeight.value / e.itemSize)),
2652
- getTransform: V(() => `translate3d(0,${t.startOffset.value}px,0)`),
2653
- visibleData: V(() => e.listData.slice(t.start.value, Math.min(t.end.value, e.listData.length)))
2659
+ listHeight: F(() => e.listData.length * e.itemSize),
2660
+ visibleCount: F(() => Math.ceil(t.screenHeight.value / e.itemSize)),
2661
+ getTransform: F(() => `translate3d(0,${t.startOffset.value}px,0)`),
2662
+ visibleData: F(() => e.listData.slice(t.start.value, Math.min(t.end.value, e.listData.length)))
2654
2663
  };
2655
- return Tn(ba(Tn({}, o), {
2664
+ return Tn(Oa(Tn({}, o), {
2656
2665
  virList: n
2657
2666
  }), t);
2658
2667
  },
2659
2668
  mounted() {
2660
2669
  setTimeout(() => {
2661
- Ie(() => this.listData.length, () => Oa(this, null, function* () {
2670
+ Le(() => this.listData.length, () => Ia(this, null, function* () {
2662
2671
  yield this.$nextTick(), this.init();
2663
2672
  }), { immediate: !0 });
2664
2673
  }, 100);
@@ -2682,41 +2691,41 @@ const Ia = {
2682
2691
  }
2683
2692
  }
2684
2693
  };
2685
- function Ta(e, t, n, o, s, a) {
2686
- return S(), D("div", {
2694
+ function Na(e, t, n, o, s, a) {
2695
+ return C(), P("div", {
2687
2696
  ref: "virList",
2688
2697
  class: "infinite-list-container",
2689
2698
  onScroll: t[0] || (t[0] = () => a.scrollEvent())
2690
2699
  }, [
2691
- L("div", {
2700
+ O("div", {
2692
2701
  class: "infinite-list-phantom",
2693
- style: me({ height: e.listHeight + "px" })
2702
+ style: pe({ height: e.listHeight + "px" })
2694
2703
  }, null, 4),
2695
- L("div", {
2704
+ O("div", {
2696
2705
  class: "infinite-list",
2697
- style: me({ transform: e.getTransform })
2706
+ style: pe({ transform: e.getTransform })
2698
2707
  }, [
2699
- (S(!0), D(ue, null, Ee(e.visibleData, (r) => (S(), D("div", {
2708
+ (C(!0), P(de, null, Ee(e.visibleData, (r) => (C(), P("div", {
2700
2709
  ref_for: !0,
2701
2710
  ref: "items",
2702
2711
  class: "infinite-list-item",
2703
2712
  key: r.id,
2704
- style: me({ height: n.itemSize + "px", lineHeight: n.itemSize + "px" })
2713
+ style: pe({ height: n.itemSize + "px", lineHeight: n.itemSize + "px" })
2705
2714
  }, [
2706
- Y(e.$slots, "default", { data: r }, void 0, !0)
2715
+ J(e.$slots, "default", { data: r }, void 0, !0)
2707
2716
  ], 4))), 128))
2708
2717
  ], 4)
2709
2718
  ], 544);
2710
2719
  }
2711
- const Na = /* @__PURE__ */ oe(Ia, [["render", Ta], ["__scopeId", "data-v-f3099cfa"]]);
2712
- var Sa = Object.defineProperty, Ca = Object.defineProperties, Da = Object.getOwnPropertyDescriptors, Nn = Object.getOwnPropertySymbols, Aa = Object.prototype.hasOwnProperty, Pa = Object.prototype.propertyIsEnumerable, Sn = (e, t, n) => t in e ? Sa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, $a = (e, t) => {
2720
+ const Sa = /* @__PURE__ */ oe(Ta, [["render", Na], ["__scopeId", "data-v-f3099cfa"]]);
2721
+ var Ca = Object.defineProperty, Da = Object.defineProperties, Aa = Object.getOwnPropertyDescriptors, Nn = Object.getOwnPropertySymbols, Pa = Object.prototype.hasOwnProperty, $a = Object.prototype.propertyIsEnumerable, Sn = (e, t, n) => t in e ? Ca(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ma = (e, t) => {
2713
2722
  for (var n in t || (t = {}))
2714
- Aa.call(t, n) && Sn(e, n, t[n]);
2723
+ Pa.call(t, n) && Sn(e, n, t[n]);
2715
2724
  if (Nn)
2716
2725
  for (var n of Nn(t))
2717
- Pa.call(t, n) && Sn(e, n, t[n]);
2726
+ $a.call(t, n) && Sn(e, n, t[n]);
2718
2727
  return e;
2719
- }, Ma = (e, t) => Ca(e, Da(t)), ka = (e, t, n) => new Promise((o, s) => {
2728
+ }, ka = (e, t) => Da(e, Aa(t)), Ra = (e, t, n) => new Promise((o, s) => {
2720
2729
  var a = (i) => {
2721
2730
  try {
2722
2731
  l(n.next(i));
@@ -2732,211 +2741,237 @@ var Sa = Object.defineProperty, Ca = Object.defineProperties, Da = Object.getOwn
2732
2741
  }, l = (i) => i.done ? o(i.value) : Promise.resolve(i.value).then(a, r);
2733
2742
  l((n = n.apply(e, t)).next());
2734
2743
  });
2735
- const Ra = q({
2744
+ const xa = Z({
2736
2745
  components: {
2737
- VirtualList: Na,
2738
- CountShow: To,
2746
+ VirtualList: Sa,
2747
+ CountShow: No,
2739
2748
  Icon: ut
2740
2749
  },
2741
2750
  name: "group-show",
2742
2751
  props: {
2743
2752
  deviceGroup: Object,
2753
+ deviceGroups: Object,
2744
2754
  controlParams: Object,
2745
2755
  uiParams: Object
2746
2756
  },
2747
2757
  setup(e, t) {
2748
- const n = Yr(), o = Xr(), s = M(), a = tt("theme"), r = {
2749
- filterDevice(f) {
2750
- var g;
2751
- let T = !0;
2752
- T = st(() => {
2753
- var v, A, $, C;
2754
- return (v = e.controlParams) != null && v.searchStr ? f.name.includes((A = e.controlParams) == null ? void 0 : A.searchStr) || f.id.includes(($ = e.controlParams) == null ? void 0 : $.searchStr) || typeof f.user == "string" && f.user.includes((C = e.controlParams) == null ? void 0 : C.searchStr) : T;
2758
+ const n = Xr(), o = Jr(), s = M(), a = ke("theme"), r = F(() => {
2759
+ if (e.controlParams.searchStr) {
2760
+ const p = e.deviceGroups || [e.deviceGroup];
2761
+ if (p == null ? void 0 : p.find((N) => N.name.includes(e.controlParams.searchStr)))
2762
+ return !0;
2763
+ }
2764
+ return !1;
2765
+ }), l = {
2766
+ filterDevice(p) {
2767
+ var T;
2768
+ let N = !0;
2769
+ N = st(() => {
2770
+ var G, K, ye, I;
2771
+ return (G = e.controlParams) != null && G.searchStr ? r.value || p.name.includes((K = e.controlParams) == null ? void 0 : K.searchStr) || p.id.includes((ye = e.controlParams) == null ? void 0 : ye.searchStr) || typeof p.user == "string" && p.user.includes((I = e.controlParams) == null ? void 0 : I.searchStr) : N;
2755
2772
  });
2756
- let O = !0;
2757
- return (g = e.controlParams) != null && g.onlyShowOnline && (O = f.online), T && O;
2773
+ let R = !0;
2774
+ return (T = e.controlParams) != null && T.onlyShowOnline && (R = p.online), N && R;
2758
2775
  },
2759
- deviceText(f) {
2760
- const g = `${o.value ? "" : `[${f.id}] `}`;
2761
- return f.user ? n.value == yo.PUFirst ? f.name.length > 0 ? `${f.name} ${g}[${f.user}]` : ` ${g}[${f.user}]` : f.name.length > 0 ? `${f.user} ${g}[${f.name}]` : `${f.user} ${g}[]` : f.name.length > 0 ? `${f.name} ${g}` : ` ${g}`;
2776
+ deviceText(p) {
2777
+ const T = `${o.value ? "" : `[${p.id}] `}`;
2778
+ return p.user ? n.value == wo.PUFirst ? p.name.length > 0 ? `${p.name} ${T}[${p.user}]` : ` ${T}[${p.user}]` : p.name.length > 0 ? `${p.user} ${T}[${p.name}]` : `${p.user} ${T}[]` : p.name.length > 0 ? `${p.name} ${T}` : ` ${T}`;
2762
2779
  },
2763
- groupText(f) {
2764
- if (f)
2765
- return f.name.length > 0 ? f.name : f.id;
2780
+ groupText(p) {
2781
+ if (p)
2782
+ return p.name.length > 0 ? p.name : p.id;
2766
2783
  }
2767
- }, l = tt("getDevicePanelEle"), i = {
2768
- filteredDevices: V(() => {
2769
- var f;
2770
- const g = (f = e.deviceGroup) == null ? void 0 : f.devices, T = g && g.filter((v) => r.filterDevice(v)) || [];
2771
- return T.filter((v) => v.online).concat(T.filter((v) => !v.online));
2784
+ }, i = ke(
2785
+ "IsNotShowGroupHead"
2786
+ ), c = ke("getDevicePanelEle"), _ = ke("IsOnlyShowGroup"), d = {
2787
+ filteredDevices: F(() => {
2788
+ var p;
2789
+ const T = (p = e.deviceGroup) == null ? void 0 : p.devices, N = T && T.filter((G) => l.filterDevice(G)) || [];
2790
+ return N.filter((G) => G.online).concat(N.filter((G) => !G.online));
2772
2791
  })
2773
- }, c = M(), m = M("0px");
2774
- function d(f, g) {
2792
+ }, u = M(), m = M("0px");
2793
+ function E(p, T) {
2775
2794
  return st(() => {
2776
- if (g.length == 0)
2795
+ if (T.length == 0)
2777
2796
  return !0;
2778
- let T = !1;
2779
- if ((f == null ? void 0 : f.name.indexOf(g)) > 0 && (T = !0), T || (T = (f == null ? void 0 : f.devices.find(
2780
- (O) => O.name.includes(g) || O.id.includes(g) || O.user && O.user.includes(g)
2781
- )) != null), !T) {
2782
- for (let O = 0; O < f.items.length; O++)
2783
- if (d(f.items[O], g))
2797
+ let N = !1;
2798
+ if ((p == null ? void 0 : p.name.indexOf(T)) >= 0 && (N = !0), N || (N = (p == null ? void 0 : p.devices.find(
2799
+ (R) => R.name.includes(T) || R.id.includes(T) || R.user && R.user.includes(T)
2800
+ )) != null), !N) {
2801
+ for (let R = 0; R < p.items.length; R++)
2802
+ if (E(p.items[R], T))
2784
2803
  return !0;
2785
2804
  }
2786
- return T;
2805
+ return r.value ? !0 : N;
2787
2806
  });
2788
2807
  }
2789
- const u = V(() => {
2808
+ const L = F(() => {
2790
2809
  if (e.controlParams) {
2791
- const f = e.controlParams.searchStr;
2810
+ const p = e.controlParams.searchStr;
2792
2811
  if (e.deviceGroup)
2793
- return d(e.deviceGroup, f);
2812
+ return E(e.deviceGroup, p);
2794
2813
  }
2795
2814
  return !1;
2796
- }), p = M(!1), y = M(!1);
2797
- function E() {
2798
- return ka(this, null, function* () {
2799
- y.value || (y.value = !0, p.value ? (m.value = "0px;", i.filteredDevices.value.length && (yield new Promise((f) => setTimeout(f, 300)))) : m.value = "0px", p.value = !p.value, y.value = !1, p.value && os(() => {
2800
- var f, g;
2801
- const T = l().clientHeight - ((f = c.value) != null && f.offsetTop ? ((g = c.value) == null ? void 0 : g.offsetTop) - l().scrollTop : 0);
2802
- m.value = i.filteredDevices.value.length > 10 ? T ? `${T}px` : "400px" : `${i.filteredDevices.value.length * 40}px`;
2815
+ }), y = M(!1), h = M(!1);
2816
+ function w() {
2817
+ var p, T;
2818
+ const N = c().clientHeight - ((p = u.value) != null && p.offsetTop ? ((T = u.value) == null ? void 0 : T.offsetTop) - c().scrollTop : 0), R = d.filteredDevices.value.length * 40;
2819
+ m.value = d.filteredDevices.value.length > 10 ? `${Math.max(Math.min(R, N), 400)}px` : `${d.filteredDevices.value.length * 40}px`;
2820
+ }
2821
+ Le(() => d.filteredDevices.value.length, () => {
2822
+ w();
2823
+ });
2824
+ function A() {
2825
+ return Ra(this, null, function* () {
2826
+ h.value || (h.value = !0, y.value ? (m.value = "0px;", d.filteredDevices.value.length && !_.value && (yield new Promise((p) => setTimeout(p, 300)))) : m.value = "0px", y.value = !y.value, h.value = !1, y.value && ss(() => {
2827
+ w();
2803
2828
  }));
2804
2829
  });
2805
2830
  }
2806
- function w() {
2807
- var f;
2808
- (f = e.uiParams) != null && f.dbclickExpandsDisable || E();
2831
+ function D() {
2832
+ var p;
2833
+ (p = e.uiParams) != null && p.dbclickExpandsDisable || A();
2809
2834
  }
2810
- return Ma($a({
2811
- onShowClick: E,
2812
- refDeviceShowDiv: c,
2813
- OnHeadDbClick: w,
2814
- innerUtils: r
2815
- }, i), {
2835
+ return ka(Ma({
2836
+ isGroupInSearchStrSide: r,
2837
+ getGroups: (p) => {
2838
+ const T = e.deviceGroups || [e.deviceGroup], N = [];
2839
+ return N.push(...T, p), N;
2840
+ },
2841
+ isNotShowGroupHead: i,
2842
+ onShowGroup: _,
2843
+ onShowClick: A,
2844
+ refDeviceShowDiv: u,
2845
+ OnHeadDbClick: D,
2846
+ innerUtils: l
2847
+ }, d), {
2816
2848
  devicePanelHeight: m,
2817
- showGroup: u,
2818
- bShow: p,
2849
+ showGroup: L,
2850
+ bShow: y,
2819
2851
  theme: a,
2820
2852
  countRef: s
2821
2853
  });
2822
2854
  }
2823
2855
  });
2824
- const xa = {
2856
+ const Fa = {
2825
2857
  key: 0,
2826
2858
  class: "head-op"
2827
- }, Fa = {
2859
+ }, Va = {
2828
2860
  key: 1,
2829
2861
  style: { display: "inline-block", width: "25px" }
2830
- }, Va = {
2831
- key: 0,
2862
+ }, Ua = {
2863
+ key: 1,
2832
2864
  class: "group-head-count"
2833
- }, Ua = ["title"], Ga = { class: "group-slot" }, za = {
2865
+ }, Ga = ["title"], za = { class: "group-slot" }, Ha = {
2834
2866
  key: 0,
2835
2867
  style: { "margin-left": "26px" }
2836
- }, Ha = ["title"], ja = { class: "device-slot" };
2837
- function Wa(e, t, n, o, s, a) {
2868
+ }, ja = ["title"], Wa = { class: "device-slot" };
2869
+ function Ba(e, t, n, o, s, a) {
2838
2870
  var r, l, i;
2839
- const c = _e("Icon"), m = _e("CountShow"), d = _e("group-show"), u = _e("VirtualList");
2840
- return e.showGroup ? Gn((S(), D("div", {
2871
+ const c = me("Icon"), _ = me("CountShow"), d = me("group-show"), u = me("VirtualList");
2872
+ return e.showGroup ? zn((C(), P("div", {
2841
2873
  key: 0,
2842
- class: ke("group " + e.theme)
2874
+ class: xe("group " + e.theme)
2843
2875
  }, [
2844
- B(m, {
2876
+ Q(_, {
2845
2877
  countInfo: e.deviceGroup,
2846
2878
  controlParams: e.controlParams,
2847
2879
  ref: "countRef"
2848
2880
  }, {
2849
- default: te(({ online: p, total: y }) => {
2850
- var E, w;
2881
+ default: te(({ online: m, total: E }) => {
2882
+ var L, y;
2851
2883
  return [
2852
- e.deviceGroup && e.deviceGroup.devices.length + e.deviceGroup.items.length > 0 ? (S(), D("span", xa, [
2853
- B(c, {
2884
+ e.deviceGroup && e.deviceGroup.devices.length + e.deviceGroup.items.length > 0 && !(e.onShowGroup && e.deviceGroup.items.length == 0) ? (C(), P("span", Fa, [
2885
+ Q(c, {
2854
2886
  icon: e.bShow ? "minus" : "plus",
2855
2887
  width: "20",
2856
2888
  onClick: e.onShowClick,
2857
2889
  class: "handle-ls-svg"
2858
2890
  }, null, 8, ["icon", "onClick"])
2859
- ])) : (S(), D("span", Fa)),
2860
- L("span", {
2891
+ ])) : (C(), P("span", Va)),
2892
+ O("span", {
2861
2893
  class: "group-head-db-click",
2862
- onDblclick: t[0] || (t[0] = (...f) => e.OnHeadDbClick && e.OnHeadDbClick(...f))
2894
+ onDblclick: t[0] || (t[0] = (...h) => e.OnHeadDbClick && e.OnHeadDbClick(...h))
2863
2895
  }, [
2864
- B(c, {
2896
+ e.isNotShowGroupHead ? ue("", !0) : (C(), Ne(c, {
2897
+ key: 0,
2865
2898
  icon: e.bShow ? "group" : "group-closed",
2866
2899
  width: "24",
2867
2900
  class: "group-avatar"
2868
- }, null, 8, ["icon"]),
2869
- e.bShow ? ge("", !0) : (S(), D("span", Va, z((E = e.deviceGroup) == null ? void 0 : E.items.length), 1)),
2870
- Y(e.$slots, "groupHead", { group: e.deviceGroup }, void 0, !0),
2871
- L("span", {
2901
+ }, null, 8, ["icon"])),
2902
+ !e.bShow && !e.isNotShowGroupHead ? (C(), P("span", Ua, j((L = e.deviceGroup) == null ? void 0 : L.items.length), 1)) : ue("", !0),
2903
+ J(e.$slots, "groupHead", { group: e.deviceGroup }, void 0, !0),
2904
+ O("span", {
2872
2905
  class: "group-name",
2873
- title: (w = e.deviceGroup) == null ? void 0 : w.name
2874
- }, z(e.innerUtils.groupText(e.deviceGroup)), 9, Ua)
2906
+ title: (y = e.deviceGroup) == null ? void 0 : y.name
2907
+ }, j(e.innerUtils.groupText(e.deviceGroup)), 9, Ga)
2875
2908
  ], 32),
2876
- L("div", Ga, [
2877
- Y(e.$slots, "group", { group: e.deviceGroup }, void 0, !0)
2909
+ O("div", za, [
2910
+ J(e.$slots, "group", { group: e.deviceGroup }, void 0, !0)
2878
2911
  ])
2879
2912
  ];
2880
2913
  }),
2881
2914
  _: 3
2882
2915
  }, 8, ["countInfo", "controlParams"]),
2883
- e.bShow ? (S(), D("div", za, [
2884
- (S(!0), D(ue, null, Ee((r = e.deviceGroup) == null ? void 0 : r.items, (p, y) => (S(), Fe(d, {
2885
- key: p.id,
2886
- deviceGroup: p,
2916
+ e.bShow ? (C(), P("div", Ha, [
2917
+ (C(!0), P(de, null, Ee((r = e.deviceGroup) == null ? void 0 : r.items, (m, E) => (C(), Ne(d, {
2918
+ key: m.id,
2919
+ deviceGroup: m,
2920
+ deviceGroups: e.getGroups(m),
2887
2921
  "ui-params": e.uiParams,
2888
2922
  controlParams: e.controlParams
2889
2923
  }, {
2890
- groupHead: te(({ group: E }) => [
2891
- Y(e.$slots, "groupHead", { group: E }, void 0, !0)
2924
+ groupHead: te(({ group: L }) => [
2925
+ J(e.$slots, "groupHead", { group: L }, void 0, !0)
2892
2926
  ]),
2893
- group: te(({ group: E }) => [
2894
- Y(e.$slots, "group", { group: E }, void 0, !0)
2927
+ group: te(({ group: L }) => [
2928
+ J(e.$slots, "group", { group: L }, void 0, !0)
2895
2929
  ]),
2896
- deviceHead: te(({ device: E, group: w }) => [
2897
- Y(e.$slots, "deviceHead", {
2898
- device: E,
2899
- group: w
2930
+ deviceHead: te(({ device: L, group: y }) => [
2931
+ J(e.$slots, "deviceHead", {
2932
+ device: L,
2933
+ group: y
2900
2934
  }, void 0, !0)
2901
2935
  ]),
2902
- device: te(({ device: E, group: w }) => [
2903
- Y(e.$slots, "device", {
2904
- device: E,
2905
- group: w
2936
+ device: te(({ device: L, group: y }) => [
2937
+ J(e.$slots, "device", {
2938
+ device: L,
2939
+ group: y
2906
2940
  }, void 0, !0)
2907
2941
  ]),
2908
2942
  _: 2
2909
- }, 1032, ["deviceGroup", "ui-params", "controlParams"]))), 128)),
2910
- L("div", {
2943
+ }, 1032, ["deviceGroup", "deviceGroups", "ui-params", "controlParams"]))), 128)),
2944
+ e.onShowGroup ? ue("", !0) : (C(), P("div", {
2945
+ key: 0,
2911
2946
  class: "device-show-div",
2912
- style: me(`height: ${e.devicePanelHeight}`),
2947
+ style: pe(`height: ${e.devicePanelHeight}`),
2913
2948
  ref: "refDeviceShowDiv"
2914
2949
  }, [
2915
- B(u, {
2950
+ Q(u, {
2916
2951
  "list-data": e.filteredDevices,
2917
2952
  "item-size": 40,
2918
2953
  "device-panel-height": e.devicePanelHeight
2919
2954
  }, {
2920
- default: te(({ data: p }) => [
2921
- L("div", {
2922
- class: ke(p.online && "online-device")
2955
+ default: te(({ data: m }) => [
2956
+ O("div", {
2957
+ class: xe(m.online && "online-device")
2923
2958
  }, [
2924
- B(c, {
2959
+ Q(c, {
2925
2960
  icon: "user",
2926
2961
  width: "16",
2927
2962
  class: "device-avatar"
2928
2963
  }),
2929
- Y(e.$slots, "deviceHead", {
2930
- device: p,
2964
+ J(e.$slots, "deviceHead", {
2965
+ device: m,
2931
2966
  group: e.deviceGroup
2932
2967
  }, void 0, !0),
2933
- L("span", {
2934
- title: e.innerUtils.deviceText(p),
2968
+ O("span", {
2969
+ title: e.innerUtils.deviceText(m),
2935
2970
  class: "device-name"
2936
- }, z(e.innerUtils.deviceText(p)), 9, Ha),
2937
- L("div", ja, [
2938
- Y(e.$slots, "device", {
2939
- device: p,
2971
+ }, j(e.innerUtils.deviceText(m)), 9, ja),
2972
+ O("div", Wa, [
2973
+ J(e.$slots, "device", {
2974
+ device: m,
2940
2975
  group: e.deviceGroup
2941
2976
  }, void 0, !0)
2942
2977
  ])
@@ -2944,47 +2979,51 @@ function Wa(e, t, n, o, s, a) {
2944
2979
  ]),
2945
2980
  _: 3
2946
2981
  }, 8, ["list-data", "device-panel-height"])
2947
- ], 4)
2948
- ])) : ge("", !0)
2982
+ ], 4))
2983
+ ])) : ue("", !0)
2949
2984
  ], 2)), [
2950
- [zn, !((l = e.controlParams) != null && l.onlyShowOnline) || ((i = e.countRef) == null ? void 0 : i.onlineCount)]
2951
- ]) : ge("", !0);
2985
+ [Hn, !((l = e.controlParams) != null && l.onlyShowOnline) || ((i = e.countRef) == null ? void 0 : i.onlineCount)]
2986
+ ]) : ue("", !0);
2952
2987
  }
2953
- const Ba = /* @__PURE__ */ oe(Ra, [["render", Wa], ["__scopeId", "data-v-d2969934"]]), Ka = {
2988
+ const Ka = /* @__PURE__ */ oe(xa, [["render", Ba], ["__scopeId", "data-v-233fdf12"]]), Ya = {
2954
2989
  width: 1024,
2955
2990
  height: 1024,
2956
2991
  body: '<path fill="currentColor" d="M384 192v640l384-320.064z"/>'
2957
- }, Ya = {
2992
+ }, Xa = {
2958
2993
  width: 1024,
2959
2994
  height: 1024,
2960
2995
  body: '<path fill="currentColor" d="M878.08 448H241.92l-96 384h636.16l96-384zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384H832zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896z"/>'
2961
- }, Xa = {
2996
+ }, Ja = {
2962
2997
  width: 1024,
2963
2998
  height: 1024,
2964
2999
  body: '<path fill="currentColor" d="M128 192v640h768V320H485.76L357.504 192H128zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32z"/>'
2965
- }, Ja = {
3000
+ }, Qa = {
2966
3001
  width: 1024,
2967
3002
  height: 1024,
2968
3003
  body: '<path fill="currentColor" d="M628.736 528.896A416 416 0 0 1 928 928H96a415.872 415.872 0 0 1 299.264-399.104L512 704l116.736-175.104zM720 304a208 208 0 1 1-416 0a208 208 0 0 1 416 0z"/>'
2969
- }, Qa = {
3004
+ }, qa = {
2970
3005
  width: 1024,
2971
3006
  height: 1024,
2972
3007
  body: '<path fill="currentColor" d="M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z"/>'
2973
- }, qa = {
3008
+ }, Za = {
2974
3009
  width: 1024,
2975
3010
  height: 1024,
2976
3011
  body: '<path fill="currentColor" d="M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"/>'
2977
3012
  };
2978
- Ce("right", Ka);
2979
- Ce("group", Ya);
2980
- Ce("group-closed", Xa);
2981
- Ce("user", Ja);
2982
- Ce("plus", Qa);
2983
- Ce("minus", qa);
2984
- const Za = q({
3013
+ let Cn = 1;
3014
+ function el() {
3015
+ return Cn++, `device-online-ele-${Cn}`;
3016
+ }
3017
+ Ae("right", Ya);
3018
+ Ae("group", Xa);
3019
+ Ae("group-closed", Ja);
3020
+ Ae("user", Qa);
3021
+ Ae("plus", qa);
3022
+ Ae("minus", Za);
3023
+ const tl = Z({
2985
3024
  components: {
2986
- CountShow: To,
2987
- GroupShow: Ba
3025
+ CountShow: No,
3026
+ GroupShow: Ka
2988
3027
  },
2989
3028
  props: {
2990
3029
  deviceGroup: Object,
@@ -2993,7 +3032,9 @@ const Za = q({
2993
3032
  default: ""
2994
3033
  },
2995
3034
  locale: String,
2996
- uiControl: Object
3035
+ uiControl: Object,
3036
+ isOnlyShowGroup: Boolean,
3037
+ notShowGroupHead: Boolean
2997
3038
  },
2998
3039
  methods: {
2999
3040
  onCheckBoxChange(e) {
@@ -3010,83 +3051,86 @@ const Za = q({
3010
3051
  },
3011
3052
  provide() {
3012
3053
  return {
3054
+ IsNotShowGroupHead: F(() => this.notShowGroupHead),
3055
+ IsOnlyShowGroup: F(() => this.isOnlyShowGroup),
3013
3056
  getDevicePanelEle: () => this.refDevicePanel
3014
3057
  };
3015
3058
  },
3016
3059
  setup(e) {
3017
- const t = Br(), n = V(() => t.value == Eo.BACKGROUND_WHITE ? "" : "dark");
3018
- ss("theme", n);
3060
+ const t = Kr(), n = F(() => e.theme ? e.theme == "drak" ? "dark" : e.theme : t.value == Eo.BACKGROUND_WHITE ? "" : "dark");
3061
+ rs("theme", n);
3019
3062
  const o = M({
3020
3063
  onlyShowOnline: !1,
3021
3064
  searchStr: ""
3022
3065
  });
3023
- Ie(
3066
+ Le(
3024
3067
  () => o.value.onlyShowOnline,
3025
3068
  () => {
3026
- var l;
3027
- s.value && ((l = s.value) == null ? void 0 : l.checked) != o.value.onlyShowOnline && (s.value.checked = o.value.onlyShowOnline);
3069
+ var i;
3070
+ s.value && ((i = s.value) == null ? void 0 : i.checked) != o.value.onlyShowOnline && (s.value.checked = o.value.onlyShowOnline);
3028
3071
  }
3029
3072
  );
3030
- const s = M(), a = M();
3073
+ const s = M(), a = M(), r = M();
3031
3074
  return {
3032
- refDevicePanel: M(),
3075
+ onlineOnlyId: el(),
3076
+ refDevicePanel: r,
3033
3077
  theme: n,
3034
- i18nT: Ne,
3078
+ i18nT: Ce,
3035
3079
  inputShowOnlineOnly: s,
3036
3080
  inputSearchRef: a,
3037
3081
  controlParams: o
3038
3082
  };
3039
3083
  }
3040
3084
  });
3041
- const el = { class: "search-panel" }, tl = { for: "onlineShow" }, nl = {
3085
+ const nl = { class: "search-panel" }, ol = ["id"], sl = ["for"], rl = {
3042
3086
  class: "device-panel",
3043
3087
  ref: "refDevicePanel"
3044
3088
  };
3045
- function ol(e, t, n, o, s, a) {
3089
+ function al(e, t, n, o, s, a) {
3046
3090
  var r;
3047
- const l = _e("CountShow"), i = _e("group-show");
3048
- return S(), D("div", {
3049
- class: ke(`device-group-list ${e.theme}`)
3091
+ const l = me("CountShow"), i = me("group-show");
3092
+ return C(), P("div", {
3093
+ class: xe(`device-group-list ${e.theme}`)
3050
3094
  }, [
3051
- L("div", el, [
3052
- B(l, {
3095
+ O("div", nl, [
3096
+ Q(l, {
3053
3097
  countInfo: e.deviceGroup,
3054
3098
  "control-params": e.controlParams
3055
3099
  }, {
3056
3100
  default: te(() => [
3057
- L("input", {
3101
+ O("input", {
3058
3102
  type: "checkbox",
3059
- id: "onlineShow",
3103
+ id: e.onlineOnlyId,
3060
3104
  value: "onlineShow",
3061
3105
  onChange: t[0] || (t[0] = () => e.onCheckBoxChange()),
3062
3106
  ref: "inputShowOnlineOnly"
3063
- }, null, 544),
3064
- L("label", tl, z(e.i18nT("zhi-xian-shi-zai-xian-she-bei")), 1)
3107
+ }, null, 40, ol),
3108
+ O("label", { for: e.onlineOnlyId }, j(e.i18nT("zhi-xian-shi-zai-xian-she-bei")), 9, sl)
3065
3109
  ]),
3066
3110
  _: 1
3067
3111
  }, 8, ["countInfo", "control-params"])
3068
3112
  ]),
3069
- L("div", nl, [
3070
- (S(!0), D(ue, null, Ee((r = e.deviceGroup) == null ? void 0 : r.items, (c, m) => (S(), Fe(i, {
3113
+ O("div", rl, [
3114
+ (C(!0), P(de, null, Ee((r = e.deviceGroup) == null ? void 0 : r.items, (c, _) => (C(), Ne(i, {
3071
3115
  controlParams: e.controlParams,
3072
3116
  key: c.id,
3073
3117
  "ui-params": e.uiControl,
3074
3118
  deviceGroup: c
3075
3119
  }, {
3076
3120
  groupHead: te(({ group: d }) => [
3077
- Y(e.$slots, "groupHead", { group: d }, void 0, !0)
3121
+ J(e.$slots, "groupHead", { group: d }, void 0, !0)
3078
3122
  ]),
3079
3123
  group: te(({ group: d }) => [
3080
- Y(e.$slots, "group", { group: d }, void 0, !0)
3124
+ J(e.$slots, "group", { group: d }, void 0, !0)
3081
3125
  ]),
3082
3126
  deviceHead: te(({ device: d, group: u }) => [
3083
- Y(e.$slots, "deviceHead", {
3127
+ J(e.$slots, "deviceHead", {
3084
3128
  device: d,
3085
3129
  group: u
3086
3130
  }, void 0, !0)
3087
3131
  ]),
3088
3132
  device: te(({ device: d, group: u }) => [
3089
- Y(e.$slots, "device", {
3133
+ J(e.$slots, "device", {
3090
3134
  device: d,
3091
3135
  group: u
3092
3136
  }, void 0, !0)
@@ -3096,31 +3140,31 @@ function ol(e, t, n, o, s, a) {
3096
3140
  ], 512)
3097
3141
  ], 2);
3098
3142
  }
3099
- const sl = /* @__PURE__ */ oe(Za, [["render", ol], ["__scopeId", "data-v-c7168f0f"]]);
3100
- var rl = Object.defineProperty, al = Object.defineProperties, ll = Object.getOwnPropertyDescriptors, Cn = Object.getOwnPropertySymbols, il = Object.prototype.hasOwnProperty, cl = Object.prototype.propertyIsEnumerable, Dn = (e, t, n) => t in e ? rl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, $o = (e, t) => {
3143
+ const ll = /* @__PURE__ */ oe(tl, [["render", al], ["__scopeId", "data-v-797af418"]]);
3144
+ var il = Object.defineProperty, cl = Object.defineProperties, ul = Object.getOwnPropertyDescriptors, Dn = Object.getOwnPropertySymbols, dl = Object.prototype.hasOwnProperty, fl = Object.prototype.propertyIsEnumerable, An = (e, t, n) => t in e ? il(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Mo = (e, t) => {
3101
3145
  for (var n in t || (t = {}))
3102
- il.call(t, n) && Dn(e, n, t[n]);
3103
- if (Cn)
3104
- for (var n of Cn(t))
3105
- cl.call(t, n) && Dn(e, n, t[n]);
3146
+ dl.call(t, n) && An(e, n, t[n]);
3147
+ if (Dn)
3148
+ for (var n of Dn(t))
3149
+ fl.call(t, n) && An(e, n, t[n]);
3106
3150
  return e;
3107
- }, ul = (e, t) => al(e, ll(t));
3108
- const He = 6, An = He * 2;
3109
- function dl(e, t) {
3151
+ }, _l = (e, t) => cl(e, ul(t));
3152
+ const je = 6, Pn = je * 2;
3153
+ function ml(e, t) {
3110
3154
  return e.map(
3111
3155
  ({
3112
3156
  leftTop: { col: n, row: o },
3113
3157
  rightBottom: { col: s, row: a }
3114
- }) => `<line x1="${n * t.col + He}" y1="${o * t.row + He}" x2="${s * t.col + He}" y2="${a * t.row + He}" stroke="black" stroke-width="5"/>`
3158
+ }) => `<line x1="${n * t.col + je}" y1="${o * t.row + je}" x2="${s * t.col + je}" y2="${a * t.row + je}" stroke="black" stroke-width="5"/>`
3115
3159
  ).join(" ");
3116
3160
  }
3117
- function fl(e, t, n) {
3161
+ function pl(e, t, n) {
3118
3162
  return n.findIndex((o) => e >= o.leftTop.row && e < o.rightBottom.row && t >= o.leftTop.col && t < o.rightBottom.col) >= 0;
3119
3163
  }
3120
- function _l(e, t, n) {
3164
+ function gl(e, t, n) {
3121
3165
  n.forEach((o) => {
3122
- const s = ul($o({}, o.leftTop), {
3123
- id: Mo(o.leftTop),
3166
+ const s = _l(Mo({}, o.leftTop), {
3167
+ id: ko(o.leftTop),
3124
3168
  layout: {
3125
3169
  left: 100 / t.col * o.leftTop.col,
3126
3170
  top: 100 / t.row * o.leftTop.row,
@@ -3133,11 +3177,11 @@ function _l(e, t, n) {
3133
3177
  e.push(s);
3134
3178
  });
3135
3179
  }
3136
- function Mo(e) {
3180
+ function ko(e) {
3137
3181
  return `${e.row}-${e.col}`;
3138
3182
  }
3139
- const Pn = "ComponentsDefaultLayoutKeyAF84566", $n = "ComponentsCustomLayoutsKeyAF84566";
3140
- function ml(e) {
3183
+ const $n = "ComponentsDefaultLayoutKeyAF84566", Mn = "ComponentsCustomLayoutsKeyAF84566";
3184
+ function hl(e) {
3141
3185
  const t = [], n = [];
3142
3186
  for (let o = 0; o < e.points.length / 2; o++)
3143
3187
  n.push(e.points.slice(o * 2, o * 2 + 2));
@@ -3161,27 +3205,27 @@ function ml(e) {
3161
3205
  }
3162
3206
  return t;
3163
3207
  }
3164
- const Se = {
3208
+ const De = {
3165
3209
  TransLayoutToFrams(e) {
3166
3210
  const t = [];
3167
3211
  e.area && t.push(e.area), e.areas && t.push(...e.areas);
3168
3212
  const n = [];
3169
3213
  for (let o = 0; o < e.row; o++)
3170
3214
  for (let s = 0; s < e.col; s++) {
3171
- if (fl(o, s, t))
3215
+ if (pl(o, s, t))
3172
3216
  continue;
3173
- const a = $o({
3217
+ const a = Mo({
3174
3218
  layout: {
3175
3219
  left: 100 / e.col * s,
3176
3220
  top: 100 / e.row * o,
3177
3221
  width: 100 / e.col,
3178
3222
  height: 100 / e.row
3179
3223
  },
3180
- id: Mo({ row: o, col: s })
3224
+ id: ko({ row: o, col: s })
3181
3225
  }, { row: o, col: s, w: 1, h: 1 });
3182
3226
  n.push(a);
3183
3227
  }
3184
- return _l(n, e, t), n;
3228
+ return gl(n, e, t), n;
3185
3229
  },
3186
3230
  TransLayoutToSVG(e, t) {
3187
3231
  const n = [];
@@ -3199,28 +3243,28 @@ const Se = {
3199
3243
  });
3200
3244
  n.forEach(
3201
3245
  ({
3202
- leftTop: { row: c, col: m },
3246
+ leftTop: { row: c, col: _ },
3203
3247
  rightBottom: { row: d, col: u }
3204
3248
  }) => {
3205
- for (let p = c + 1; p < d; p++)
3206
- o[p].points.push(m, u);
3207
- for (let p = m + 1; p < u; p++)
3208
- s[p].points.push(c, d);
3249
+ for (let m = c + 1; m < d; m++)
3250
+ o[m].points.push(_, u);
3251
+ for (let m = _ + 1; m < u; m++)
3252
+ s[m].points.push(c, d);
3209
3253
  }
3210
3254
  );
3211
3255
  const a = o.concat(...s), r = [];
3212
3256
  a.forEach((c) => {
3213
- c.points = c.points.sort(), r.push(...ml(c));
3257
+ c.points = c.points.sort(), r.push(...hl(c));
3214
3258
  });
3215
3259
  const l = {
3216
3260
  row: t.height / e.row,
3217
3261
  col: t.width / e.col
3218
- }, i = dl(r, l);
3219
- return `<svg viewBox='0 0 ${t.width + An} ${t.height + An} ' width="100%" height="100%"> ${i} </svg>`;
3262
+ }, i = ml(r, l);
3263
+ return `<svg viewBox='0 0 ${t.width + Pn} ${t.height + Pn} ' width="100%" height="100%"> ${i} </svg>`;
3220
3264
  },
3221
3265
  StorageDefaultLayout: {
3222
3266
  get() {
3223
- const e = localStorage.getItem(Pn);
3267
+ const e = localStorage.getItem($n);
3224
3268
  if (e != null)
3225
3269
  try {
3226
3270
  return JSON.parse(e);
@@ -3229,12 +3273,12 @@ const Se = {
3229
3273
  }
3230
3274
  },
3231
3275
  set(e) {
3232
- localStorage.setItem(Pn, JSON.stringify(e));
3276
+ localStorage.setItem($n, JSON.stringify(e));
3233
3277
  }
3234
3278
  },
3235
3279
  CustomLayouts: {
3236
3280
  get() {
3237
- const e = localStorage.getItem($n);
3281
+ const e = localStorage.getItem(Mn);
3238
3282
  if (e == null)
3239
3283
  return [];
3240
3284
  try {
@@ -3244,10 +3288,10 @@ const Se = {
3244
3288
  }
3245
3289
  },
3246
3290
  set(e) {
3247
- localStorage.setItem($n, JSON.stringify(e));
3291
+ localStorage.setItem(Mn, JSON.stringify(e));
3248
3292
  }
3249
3293
  }
3250
- }, pl = q({
3294
+ }, vl = Z({
3251
3295
  emits: {
3252
3296
  onselect(e, t) {
3253
3297
  return !0;
@@ -3262,16 +3306,16 @@ const Se = {
3262
3306
  }
3263
3307
  },
3264
3308
  setup(e) {
3265
- const t = V(() => {
3309
+ const t = F(() => {
3266
3310
  var o;
3267
3311
  return e.layouts ? (o = e.layouts) == null ? void 0 : o.map((s) => ({
3268
- svg: Se.TransLayoutToSVG(s, { width: 100, height: 100 }),
3312
+ svg: De.TransLayoutToSVG(s, { width: 100, height: 100 }),
3269
3313
  layout: s,
3270
3314
  select: JSON.stringify(s) == JSON.stringify(e.defaultLayout)
3271
3315
  })) : [];
3272
3316
  });
3273
3317
  return {
3274
- layoutInfos: we(t.value)
3318
+ layoutInfos: be(t.value)
3275
3319
  };
3276
3320
  },
3277
3321
  mounted() {
@@ -3306,33 +3350,33 @@ const Se = {
3306
3350
  }
3307
3351
  }
3308
3352
  });
3309
- const gl = ["onClick"], hl = { style: { position: "relative", display: "inline-block", margin: "10px" } }, vl = ["innerHTML"], yl = { style: { "vertical-align": "middle" } };
3310
- function El(e, t, n, o, s, a) {
3311
- return S(), D("div", null, [
3312
- (S(!0), D(ue, null, Ee(e.layoutInfos, (r) => (S(), D("div", {
3313
- class: ke(e.getClassLayout(r)),
3353
+ const yl = ["onClick"], wl = { style: { position: "relative", display: "inline-block", margin: "10px" } }, El = ["innerHTML"], Ll = { style: { "vertical-align": "middle" } };
3354
+ function bl(e, t, n, o, s, a) {
3355
+ return C(), P("div", null, [
3356
+ (C(!0), P(de, null, Ee(e.layoutInfos, (r) => (C(), P("div", {
3357
+ class: xe(e.getClassLayout(r)),
3314
3358
  onClick: (l) => e.selectClick(r)
3315
3359
  }, [
3316
- L("div", hl, [
3317
- L("div", {
3360
+ O("div", wl, [
3361
+ O("div", {
3318
3362
  innerHTML: r.svg,
3319
3363
  class: "svg-style"
3320
- }, null, 8, vl),
3321
- L("span", yl, z(r.layout.name), 1)
3364
+ }, null, 8, El),
3365
+ O("span", Ll, j(r.layout.name), 1)
3322
3366
  ])
3323
- ], 10, gl))), 256))
3367
+ ], 10, yl))), 256))
3324
3368
  ]);
3325
3369
  }
3326
- const ko = /* @__PURE__ */ oe(pl, [["render", El], ["__scopeId", "data-v-75abecd2"]]), wl = q({
3370
+ const Ro = /* @__PURE__ */ oe(vl, [["render", bl], ["__scopeId", "data-v-75abecd2"]]), Ol = Z({
3327
3371
  props: {
3328
3372
  layout: {
3329
3373
  type: Object
3330
3374
  }
3331
3375
  },
3332
3376
  setup(e) {
3333
- const t = V(() => e.layout ? Se.TransLayoutToFrams(e.layout).sort((o, s) => o.row == s.row ? o.col - s.col : o.row - s.row) : []);
3377
+ const t = F(() => e.layout ? De.TransLayoutToFrams(e.layout).sort((o, s) => o.row == s.row ? o.col - s.col : o.row - s.row) : []);
3334
3378
  return {
3335
- areas: V(() => t.value.map((o) => ({
3379
+ areas: F(() => t.value.map((o) => ({
3336
3380
  id: o.id,
3337
3381
  row: o.row,
3338
3382
  col: o.col,
@@ -3343,19 +3387,19 @@ const ko = /* @__PURE__ */ oe(pl, [["render", El], ["__scopeId", "data-v-75abecd
3343
3387
  };
3344
3388
  }
3345
3389
  });
3346
- const Ll = { style: { position: "relative", height: "100%", width: "100%" } };
3347
- function bl(e, t, n, o, s, a) {
3348
- return S(), D("div", Ll, [
3349
- (S(!0), D(ue, null, Ee(e.frameRef, ({ layout: r, id: l, row: i, col: c, w: m, h: d }, u) => (S(), D("div", {
3390
+ const Il = { style: { position: "relative", height: "100%", width: "100%" } };
3391
+ function Tl(e, t, n, o, s, a) {
3392
+ return C(), P("div", Il, [
3393
+ (C(!0), P(de, null, Ee(e.frameRef, ({ layout: r, id: l, row: i, col: c, w: _, h: d }, u) => (C(), P("div", {
3350
3394
  class: "play-area",
3351
3395
  key: u,
3352
- style: me(`position: absolute; top: calc(${r.top}%); left: calc(${r.left}%); width: calc(${r.width}%); height: calc(${r.height}%);`)
3396
+ style: pe(`position: absolute; top: calc(${r.top}%); left: calc(${r.left}%); width: calc(${r.width}%); height: calc(${r.height}%);`)
3353
3397
  }, [
3354
- Y(e.$slots, "default", {
3398
+ J(e.$slots, "default", {
3355
3399
  id: l,
3356
3400
  row: i,
3357
3401
  col: c,
3358
- w: m,
3402
+ w: _,
3359
3403
  h: d,
3360
3404
  index: u,
3361
3405
  areas: e.areas
@@ -3363,13 +3407,13 @@ function bl(e, t, n, o, s, a) {
3363
3407
  ], 4))), 128))
3364
3408
  ]);
3365
3409
  }
3366
- const Ut = /* @__PURE__ */ oe(wl, [["render", bl], ["__scopeId", "data-v-e6baa31a"]]), Ol = {
3410
+ const Ut = /* @__PURE__ */ oe(Ol, [["render", Tl], ["__scopeId", "data-v-e6baa31a"]]), Nl = {
3367
3411
  width: 1024,
3368
3412
  height: 1024,
3369
3413
  body: '<path fill="currentColor" d="M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504L738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512L828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496L285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512L195.2 285.696a64 64 0 0 1 0-90.496z"/>'
3370
3414
  };
3371
- Ce("close", Ol);
3372
- const Il = q({
3415
+ Ae("close", Nl);
3416
+ const Sl = Z({
3373
3417
  components: {
3374
3418
  VideoAreaLayoutShow: Ut,
3375
3419
  Icon: ut
@@ -3377,7 +3421,7 @@ const Il = q({
3377
3421
  setup() {
3378
3422
  const e = M(3), t = M(3), n = M(
3379
3423
  []
3380
- ), o = V(() => N.genLayout(e.value, t.value, n.value)), s = M({}), a = M([]);
3424
+ ), o = F(() => S.genLayout(e.value, t.value, n.value)), s = M({}), a = M([]);
3381
3425
  return {
3382
3426
  areas: n,
3383
3427
  row: e,
@@ -3485,83 +3529,83 @@ const Il = q({
3485
3529
  }
3486
3530
  }
3487
3531
  });
3488
- const Tl = { style: { height: "calc(100% - 80px)", width: "calc(100%)", position: "relative" } }, Nl = ["onMouseenter", "onMousedown"], Sl = { style: { "font-size": "32px" } }, Cl = { style: { display: "inline-block", width: "40px", "text-align": "center" } }, Dl = { style: { display: "inline-block", width: "calc(100% - 40px)", "text-align": "right", "vertical-align": "middle" } }, Al = ["onClick"];
3489
- function Pl(e, t, n, o, s, a) {
3490
- const r = _e("Icon"), l = _e("VideoAreaLayoutShow");
3491
- return S(), D("div", Tl, [
3492
- B(l, { layout: e.layout }, {
3532
+ const Cl = { style: { height: "calc(100% - 80px)", width: "calc(100%)", position: "relative" } }, Dl = ["onMouseenter", "onMousedown"], Al = { style: { "font-size": "32px" } }, Pl = { style: { display: "inline-block", width: "40px", "text-align": "center" } }, $l = { style: { display: "inline-block", width: "calc(100% - 40px)", "text-align": "right", "vertical-align": "middle" } }, Ml = ["onClick"];
3533
+ function kl(e, t, n, o, s, a) {
3534
+ const r = me("Icon"), l = me("VideoAreaLayoutShow");
3535
+ return C(), P("div", Cl, [
3536
+ Q(l, { layout: e.layout }, {
3493
3537
  default: te((i) => [
3494
- L("div", {
3495
- class: ke(e.genClass(i)),
3538
+ O("div", {
3539
+ class: xe(e.genClass(i)),
3496
3540
  onMouseenter: (c) => e.onMouseOver(c, i),
3497
3541
  onMousedown: (c) => e.onMouseDown(i),
3498
3542
  style: { "user-select": "none" }
3499
3543
  }, [
3500
- L("div", Sl, [
3501
- L("div", Cl, z(i.index + 1), 1),
3502
- L("div", Dl, [
3503
- L("span", {
3544
+ O("div", Al, [
3545
+ O("div", Pl, j(i.index + 1), 1),
3546
+ O("div", $l, [
3547
+ O("span", {
3504
3548
  onClick: (c) => e.onDelLayout(i)
3505
3549
  }, [
3506
- i.w > 1 || i.h > 1 ? (S(), Fe(r, {
3550
+ i.w > 1 || i.h > 1 ? (C(), Ne(r, {
3507
3551
  key: 0,
3508
3552
  icon: "close",
3509
3553
  class: "close-btn"
3510
- })) : ge("", !0)
3511
- ], 8, Al)
3554
+ })) : ue("", !0)
3555
+ ], 8, Ml)
3512
3556
  ])
3513
3557
  ])
3514
- ], 42, Nl)
3558
+ ], 42, Dl)
3515
3559
  ]),
3516
3560
  _: 1
3517
3561
  }, 8, ["layout"])
3518
3562
  ]);
3519
3563
  }
3520
- const $l = /* @__PURE__ */ oe(Il, [["render", Pl], ["__scopeId", "data-v-c3d9b21a"]]), Ml = q({
3564
+ const Rl = /* @__PURE__ */ oe(Sl, [["render", kl], ["__scopeId", "data-v-c3d9b21a"]]), xl = Z({
3521
3565
  components: {
3522
3566
  Icon: ut,
3523
- LayoutShow: ko,
3524
- CustomLayoutGen: $l
3567
+ LayoutShow: Ro,
3568
+ CustomLayoutGen: Rl
3525
3569
  },
3526
3570
  setup() {
3527
3571
  return {
3528
3572
  layout: M(
3529
- Se.CustomLayouts.get()
3573
+ De.CustomLayouts.get()
3530
3574
  ),
3531
- i18nT: Ne
3575
+ i18nT: Ce
3532
3576
  };
3533
3577
  }
3534
3578
  });
3535
- const kl = { style: { "margin-left": "10px", "margin-top": "10px" } }, Rl = { class: "plus-custom-layout" }, xl = /* @__PURE__ */ Ct("\u6DFB\u52A0\u5E03\u5C40 "), Fl = { style: { "margin-top": "10px" } }, Vl = { style: { height: "300px" } };
3536
- function Ul(e, t, n, o, s, a) {
3537
- const r = _e("Icon"), l = _e("CustomLayoutGen");
3538
- return S(), D("div", kl, [
3539
- L("span", null, [
3540
- Ct(z(e.i18nT("zi-ding-yi-bu-ju")) + "\uFF1A ", 1),
3541
- L("span", Rl, [
3542
- B(r, {
3579
+ const Fl = { style: { "margin-left": "10px", "margin-top": "10px" } }, Vl = { class: "plus-custom-layout" }, Ul = /* @__PURE__ */ Ct("\u6DFB\u52A0\u5E03\u5C40 "), Gl = { style: { "margin-top": "10px" } }, zl = { style: { height: "300px" } };
3580
+ function Hl(e, t, n, o, s, a) {
3581
+ const r = me("Icon"), l = me("CustomLayoutGen");
3582
+ return C(), P("div", Fl, [
3583
+ O("span", null, [
3584
+ Ct(j(e.i18nT("zi-ding-yi-bu-ju")) + "\uFF1A ", 1),
3585
+ O("span", Vl, [
3586
+ Q(r, {
3543
3587
  icon: "plus",
3544
3588
  style: { "vertical-align": "text-top" }
3545
3589
  }),
3546
- xl
3590
+ Ul
3547
3591
  ])
3548
3592
  ]),
3549
- L("div", Fl, [
3550
- L("div", Vl, [
3551
- B(l)
3593
+ O("div", Gl, [
3594
+ O("div", zl, [
3595
+ Q(l)
3552
3596
  ])
3553
3597
  ])
3554
3598
  ]);
3555
3599
  }
3556
- const Gl = /* @__PURE__ */ oe(Ml, [["render", Ul], ["__scopeId", "data-v-f8b51862"]]), zl = q({
3600
+ const jl = /* @__PURE__ */ oe(xl, [["render", Hl], ["__scopeId", "data-v-f8b51862"]]), Wl = Z({
3557
3601
  emits: {
3558
3602
  LayoutChange(e, t, n) {
3559
3603
  return !0;
3560
3604
  }
3561
3605
  },
3562
3606
  components: {
3563
- UseCustomLayoutSelector: Gl,
3564
- LayoutShow: ko,
3607
+ UseCustomLayoutSelector: jl,
3608
+ LayoutShow: Ro,
3565
3609
  Icon: ut
3566
3610
  },
3567
3611
  props: {
@@ -3570,39 +3614,39 @@ const Gl = /* @__PURE__ */ oe(Ml, [["render", Ul], ["__scopeId", "data-v-f8b5186
3570
3614
  }
3571
3615
  },
3572
3616
  setup(e, t) {
3573
- const n = e.layouts, o = we(
3617
+ const n = e.layouts, o = be(
3574
3618
  n && n.length > 0 ? n : [
3575
- N.Test.genLayout(1, 1),
3576
- N.Test.genLayout(1, 2),
3577
- N.Test.genLayout(2, 2),
3578
- N.Test.genLayout(2, 3),
3579
- N.genLayout(3, 3, [
3619
+ S.Test.genLayout(1, 1),
3620
+ S.Test.genLayout(1, 2),
3621
+ S.Test.genLayout(2, 2),
3622
+ S.Test.genLayout(2, 3),
3623
+ S.genLayout(3, 3, [
3580
3624
  [0, 0, 2, 2],
3581
3625
  [2, 0, 3, 2]
3582
3626
  ]),
3583
- N.Test.genLayout(3, 3, [0, 0, 2, 2]),
3584
- N.Test.genLayout(3, 3, [1, 0, 2, 3]),
3585
- N.Test.genLayout(4, 4, [0, 0, 3, 3]),
3586
- N.Test.genLayout(3, 3),
3587
- N.Test.genLayout(5, 5, [0, 0, 4, 4]),
3588
- N.Test.genLayout(6, 6, [0, 0, 5, 5]),
3589
- N.Test.genLayout(4, 4, [1, 1, 3, 3]),
3590
- N.Test.genLayout(4, 4),
3591
- N.Test.genLayout(5, 5),
3592
- N.Test.genLayout(6, 6),
3593
- N.genLayout(8, 8, [
3627
+ S.Test.genLayout(3, 3, [0, 0, 2, 2]),
3628
+ S.Test.genLayout(3, 3, [1, 0, 2, 3]),
3629
+ S.Test.genLayout(4, 4, [0, 0, 3, 3]),
3630
+ S.Test.genLayout(3, 3),
3631
+ S.Test.genLayout(5, 5, [0, 0, 4, 4]),
3632
+ S.Test.genLayout(6, 6, [0, 0, 5, 5]),
3633
+ S.Test.genLayout(4, 4, [1, 1, 3, 3]),
3634
+ S.Test.genLayout(4, 4),
3635
+ S.Test.genLayout(5, 5),
3636
+ S.Test.genLayout(6, 6),
3637
+ S.genLayout(8, 8, [
3594
3638
  [0, 0, 3, 3],
3595
3639
  [3, 0, 5, 2],
3596
3640
  [5, 0, 7, 2]
3597
3641
  ])
3598
3642
  ]
3599
3643
  );
3600
- Ie(
3644
+ Le(
3601
3645
  () => e.layouts,
3602
3646
  () => {
3603
3647
  if (e.layouts && e.layouts.length > 0) {
3604
- const f = e.layouts;
3605
- o.splice(0, o.length, ...f);
3648
+ const h = e.layouts;
3649
+ o.splice(0, o.length, ...h);
3606
3650
  }
3607
3651
  },
3608
3652
  {
@@ -3610,47 +3654,47 @@ const Gl = /* @__PURE__ */ oe(Ml, [["render", Ul], ["__scopeId", "data-v-f8b5186
3610
3654
  }
3611
3655
  );
3612
3656
  const s = M();
3613
- let a = Se.StorageDefaultLayout.get();
3657
+ let a = De.StorageDefaultLayout.get();
3614
3658
  function r() {
3615
3659
  return a ? o.findIndex(
3616
- (f) => JSON.stringify(f) == JSON.stringify(a)
3660
+ (h) => JSON.stringify(h) == JSON.stringify(a)
3617
3661
  ) >= 0 : !1;
3618
3662
  }
3619
3663
  const l = r() ? a : o[2];
3620
- function i(f, g) {
3664
+ function i(h, w) {
3621
3665
  return t.emit(
3622
3666
  "LayoutChange",
3623
- JSON.stringify(f.layout),
3624
- f,
3667
+ JSON.stringify(h.layout),
3668
+ h,
3625
3669
  () => {
3626
- u.value && p();
3670
+ u.value && m();
3627
3671
  }
3628
- ), f.cancel || (d.value = g), !f.cancel;
3672
+ ), h.cancel || (d.value = w), !h.cancel;
3629
3673
  }
3630
3674
  let c = !0;
3631
- const m = function(f, g) {
3632
- JSON.stringify(a) != JSON.stringify(f) && i(f, g) && c && (a = f.layout, Se.StorageDefaultLayout.set(f.layout)), d.value.length == 0 && i(f, g);
3633
- }, d = M(""), u = M(!1), p = () => {
3634
- u.value = !u.value, u.value ? window.addEventListener("click", y) : window.removeEventListener("click", y);
3635
- }, y = (f) => {
3636
- u.value && f.composedPath().findIndex(({ className: T }) => T == "layout-switcher") < 0 && (u.value = !1, window.removeEventListener("click", y));
3675
+ const _ = function(h, w) {
3676
+ JSON.stringify(a) != JSON.stringify(h) && i(h, w) && c && (a = h.layout, De.StorageDefaultLayout.set(h.layout)), d.value.length == 0 && i(h, w);
3677
+ }, d = M(""), u = M(!1), m = () => {
3678
+ u.value = !u.value, u.value ? window.addEventListener("click", E) : window.removeEventListener("click", E);
3679
+ }, E = (h) => {
3680
+ u.value && h.composedPath().findIndex(({ className: A }) => A == "layout-switcher") < 0 && (u.value = !1, window.removeEventListener("click", E));
3637
3681
  };
3638
3682
  return {
3639
- i18nT: Ne,
3640
- selectClassicalLayout: (f, g, T) => {
3641
- var O;
3642
- T || (c = !1);
3643
- const v = o.find((A) => A.row == f && A.col == g && typeof A.area > "u" && typeof A.areas > "u");
3644
- v && ((O = s.value) == null || O.SelectLayoutById(JSON.stringify(v))), T = !0;
3683
+ i18nT: Ce,
3684
+ selectClassicalLayout: (h, w, A) => {
3685
+ var D;
3686
+ A || (c = !1);
3687
+ const v = o.find((p) => p.row == h && p.col == w && typeof p.area > "u" && typeof p.areas > "u");
3688
+ v && ((D = s.value) == null || D.SelectLayoutById(JSON.stringify(v))), A = !0;
3645
3689
  },
3646
- selectLoyoutById: (f, g) => {
3647
- var T;
3648
- g || (c = !1), (T = s.value) == null || T.SelectLayoutById(f), g = !0;
3690
+ selectLoyoutById: (h, w) => {
3691
+ var A;
3692
+ w || (c = !1), (A = s.value) == null || A.SelectLayoutById(h), w = !0;
3649
3693
  },
3650
3694
  refLayoutShow: s,
3651
- clickShowSelectPanel: p,
3695
+ clickShowSelectPanel: m,
3652
3696
  showSelectPanel: u,
3653
- onselect: m,
3697
+ onselect: _,
3654
3698
  svgSelect: d,
3655
3699
  layout: o,
3656
3700
  defaultLayout: l
@@ -3658,27 +3702,27 @@ const Gl = /* @__PURE__ */ oe(Ml, [["render", Ul], ["__scopeId", "data-v-f8b5186
3658
3702
  },
3659
3703
  expose: ["selectLoyoutById", "selectClassicalLayout"]
3660
3704
  });
3661
- const Hl = { class: "layout-switcher" }, jl = ["innerHTML"], Wl = { class: "switch-panel" }, Bl = { style: { "margin-left": "10px" } }, Kl = { style: { "margin-left": "10px", padding: "10px" } }, Yl = { style: { "margin-left": "10px" } };
3662
- function Xl(e, t, n, o, s, a) {
3663
- const r = _e("LayoutShow");
3664
- return S(), D("div", Hl, [
3665
- L("div", {
3705
+ const Bl = { class: "layout-switcher" }, Kl = ["innerHTML"], Yl = { class: "switch-panel" }, Xl = { style: { "margin-left": "10px" } }, Jl = { style: { "margin-left": "10px", padding: "10px" } }, Ql = { style: { "margin-left": "10px" } };
3706
+ function ql(e, t, n, o, s, a) {
3707
+ const r = me("LayoutShow");
3708
+ return C(), P("div", Bl, [
3709
+ O("div", {
3666
3710
  onClick: t[0] || (t[0] = (...l) => e.clickShowSelectPanel && e.clickShowSelectPanel(...l)),
3667
3711
  class: "switch-switcher"
3668
3712
  }, [
3669
- L("div", {
3713
+ O("div", {
3670
3714
  innerHTML: e.svgSelect,
3671
3715
  style: { height: "32px", display: "inline-block", "vertical-align": "middle", width: "32px" }
3672
- }, null, 8, jl)
3716
+ }, null, 8, Kl)
3673
3717
  ]),
3674
- Gn(L("div", Wl, [
3675
- L("div", Bl, [
3676
- L("span", null, z(e.i18nT("qing-xuan-ze-bu-ju-yang-shi")), 1)
3718
+ zn(O("div", Yl, [
3719
+ O("div", Xl, [
3720
+ O("span", null, j(e.i18nT("qing-xuan-ze-bu-ju-yang-shi")), 1)
3677
3721
  ]),
3678
- L("div", Kl, [
3679
- L("div", Yl, [
3680
- L("span", null, z(e.i18nT("biao-zhun-bu-ju")) + "\uFF1A", 1),
3681
- B(r, {
3722
+ O("div", Jl, [
3723
+ O("div", Ql, [
3724
+ O("span", null, j(e.i18nT("biao-zhun-bu-ju")) + "\uFF1A", 1),
3725
+ Q(r, {
3682
3726
  ref: "refLayoutShow",
3683
3727
  layouts: e.layout,
3684
3728
  defaultLayout: e.defaultLayout,
@@ -3687,14 +3731,14 @@ function Xl(e, t, n, o, s, a) {
3687
3731
  ])
3688
3732
  ])
3689
3733
  ], 512), [
3690
- [zn, e.showSelectPanel]
3734
+ [Hn, e.showSelectPanel]
3691
3735
  ])
3692
3736
  ]);
3693
3737
  }
3694
- const Jl = /* @__PURE__ */ oe(zl, [["render", Xl], ["__scopeId", "data-v-1b358304"]]), Ql = {
3738
+ const Zl = /* @__PURE__ */ oe(Wl, [["render", ql], ["__scopeId", "data-v-1b358304"]]), ei = {
3695
3739
  key: 0,
3696
3740
  class: "layout-display"
3697
- }, ql = ["innerHTML"], Zl = { style: { display: "inline-block", height: "32px", width: "32px", "line-height": "32px", "vertical-align": "top" } }, ei = /* @__PURE__ */ q({
3741
+ }, ti = ["innerHTML"], ni = { style: { display: "inline-block", height: "32px", width: "32px", "line-height": "32px", "vertical-align": "top" } }, oi = /* @__PURE__ */ Z({
3698
3742
  __name: "layoutDisplay",
3699
3743
  props: {
3700
3744
  layout: {
@@ -3709,62 +3753,62 @@ const Jl = /* @__PURE__ */ oe(zl, [["render", Xl], ["__scopeId", "data-v-1b35830
3709
3753
  function n(s) {
3710
3754
  return s < 10 ? `0${s}` : s;
3711
3755
  }
3712
- const o = V(() => {
3756
+ const o = F(() => {
3713
3757
  if (t.layout) {
3714
3758
  const s = t.layout;
3715
3759
  return {
3716
3760
  layout: s,
3717
- svg: Se.TransLayoutToSVG(s, { width: 100, height: 100 }),
3718
- frams: Se.TransLayoutToFrams(s)
3761
+ svg: De.TransLayoutToSVG(s, { width: 100, height: 100 }),
3762
+ frams: De.TransLayoutToFrams(s)
3719
3763
  };
3720
3764
  }
3721
3765
  });
3722
3766
  return (s, a) => {
3723
3767
  var r;
3724
- return ae(o) ? (S(), D("div", Ql, [
3725
- L("span", {
3768
+ return ae(o) ? (C(), P("div", ei, [
3769
+ O("span", {
3726
3770
  innerHTML: (r = ae(o)) == null ? void 0 : r.svg,
3727
3771
  style: { display: "inline-block", height: "32px", width: "32px", "line-height": "32px", "background-color": "rgb(201, 201, 201)" }
3728
- }, null, 8, ql),
3729
- L("span", Zl, z(n(ae(o).frams.length)), 1)
3730
- ])) : ge("", !0);
3772
+ }, null, 8, ti),
3773
+ O("span", ni, j(n(ae(o).frams.length)), 1)
3774
+ ])) : ue("", !0);
3731
3775
  };
3732
3776
  }
3733
3777
  });
3734
- const Ro = /* @__PURE__ */ oe(ei, [["__scopeId", "data-v-0cfd31aa"]]);
3735
- var ti = Object.defineProperty, ni = Object.defineProperties, oi = Object.getOwnPropertyDescriptors, Mn = Object.getOwnPropertySymbols, si = Object.prototype.hasOwnProperty, ri = Object.prototype.propertyIsEnumerable, kn = (e, t, n) => t in e ? ti(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ai = (e, t) => {
3778
+ const xo = /* @__PURE__ */ oe(oi, [["__scopeId", "data-v-0cfd31aa"]]);
3779
+ var si = Object.defineProperty, ri = Object.defineProperties, ai = Object.getOwnPropertyDescriptors, kn = Object.getOwnPropertySymbols, li = Object.prototype.hasOwnProperty, ii = Object.prototype.propertyIsEnumerable, Rn = (e, t, n) => t in e ? si(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ci = (e, t) => {
3736
3780
  for (var n in t || (t = {}))
3737
- si.call(t, n) && kn(e, n, t[n]);
3738
- if (Mn)
3739
- for (var n of Mn(t))
3740
- ri.call(t, n) && kn(e, n, t[n]);
3781
+ li.call(t, n) && Rn(e, n, t[n]);
3782
+ if (kn)
3783
+ for (var n of kn(t))
3784
+ ii.call(t, n) && Rn(e, n, t[n]);
3741
3785
  return e;
3742
- }, li = (e, t) => ni(e, oi(t));
3743
- const qe = [
3744
- N.Test.genLayout(1, 1),
3745
- N.Test.genLayout(1, 2),
3746
- N.Test.genLayout(2, 2),
3747
- N.Test.genLayout(2, 3),
3748
- N.genLayout(3, 3, [
3786
+ }, ui = (e, t) => ri(e, ai(t));
3787
+ const Ze = [
3788
+ S.Test.genLayout(1, 1),
3789
+ S.Test.genLayout(1, 2),
3790
+ S.Test.genLayout(2, 2),
3791
+ S.Test.genLayout(2, 3),
3792
+ S.genLayout(3, 3, [
3749
3793
  [0, 0, 2, 2],
3750
3794
  [2, 0, 3, 2]
3751
3795
  ]),
3752
- N.Test.genLayout(3, 3, [0, 0, 2, 2]),
3753
- N.Test.genLayout(3, 3, [1, 0, 2, 3]),
3754
- N.Test.genLayout(4, 4, [0, 0, 3, 3]),
3755
- N.Test.genLayout(3, 3),
3756
- N.Test.genLayout(5, 5, [0, 0, 4, 4]),
3757
- N.Test.genLayout(6, 6, [0, 0, 5, 5]),
3758
- N.Test.genLayout(4, 4, [1, 1, 3, 3]),
3759
- N.Test.genLayout(4, 4),
3760
- N.Test.genLayout(5, 5),
3761
- N.Test.genLayout(6, 6),
3762
- N.genLayout(8, 8, [
3796
+ S.Test.genLayout(3, 3, [0, 0, 2, 2]),
3797
+ S.Test.genLayout(3, 3, [1, 0, 2, 3]),
3798
+ S.Test.genLayout(4, 4, [0, 0, 3, 3]),
3799
+ S.Test.genLayout(3, 3),
3800
+ S.Test.genLayout(5, 5, [0, 0, 4, 4]),
3801
+ S.Test.genLayout(6, 6, [0, 0, 5, 5]),
3802
+ S.Test.genLayout(4, 4, [1, 1, 3, 3]),
3803
+ S.Test.genLayout(4, 4),
3804
+ S.Test.genLayout(5, 5),
3805
+ S.Test.genLayout(6, 6),
3806
+ S.genLayout(8, 8, [
3763
3807
  [0, 0, 3, 3],
3764
3808
  [3, 0, 5, 2],
3765
3809
  [5, 0, 7, 2]
3766
3810
  ])
3767
- ], ii = /* @__PURE__ */ q({
3811
+ ], di = /* @__PURE__ */ Z({
3768
3812
  __name: "preLayout",
3769
3813
  props: {
3770
3814
  zIndexModal: {
@@ -3772,11 +3816,11 @@ const qe = [
3772
3816
  }
3773
3817
  },
3774
3818
  setup(e) {
3775
- const t = e, n = M(!1), o = we({
3819
+ const t = e, n = M(!1), o = be({
3776
3820
  top: "",
3777
3821
  left: ""
3778
3822
  });
3779
- xe(() => {
3823
+ Ve(() => {
3780
3824
  });
3781
3825
  let s;
3782
3826
  function a(d) {
@@ -3790,63 +3834,63 @@ const qe = [
3790
3834
  window.document.addEventListener("click", r);
3791
3835
  }, 50);
3792
3836
  }
3793
- const i = we([
3794
- N.Test.genLayout(1, 1),
3795
- N.Test.genLayout(1, 2),
3796
- N.Test.genLayout(2, 2),
3797
- N.Test.genLayout(2, 3),
3798
- N.genLayout(3, 3, [
3837
+ const i = be([
3838
+ S.Test.genLayout(1, 1),
3839
+ S.Test.genLayout(1, 2),
3840
+ S.Test.genLayout(2, 2),
3841
+ S.Test.genLayout(2, 3),
3842
+ S.genLayout(3, 3, [
3799
3843
  [0, 0, 2, 2],
3800
3844
  [2, 0, 3, 2]
3801
3845
  ]),
3802
- N.Test.genLayout(3, 3, [0, 0, 2, 2]),
3803
- N.Test.genLayout(3, 3, [1, 0, 2, 3]),
3804
- N.Test.genLayout(4, 4, [0, 0, 3, 3]),
3805
- N.Test.genLayout(3, 3),
3806
- N.Test.genLayout(5, 5, [0, 0, 4, 4]),
3807
- N.Test.genLayout(6, 6, [0, 0, 5, 5]),
3808
- N.Test.genLayout(4, 4, [1, 1, 3, 3]),
3809
- N.Test.genLayout(4, 4),
3810
- N.Test.genLayout(5, 5),
3811
- N.Test.genLayout(6, 6),
3812
- N.genLayout(8, 8, [
3846
+ S.Test.genLayout(3, 3, [0, 0, 2, 2]),
3847
+ S.Test.genLayout(3, 3, [1, 0, 2, 3]),
3848
+ S.Test.genLayout(4, 4, [0, 0, 3, 3]),
3849
+ S.Test.genLayout(3, 3),
3850
+ S.Test.genLayout(5, 5, [0, 0, 4, 4]),
3851
+ S.Test.genLayout(6, 6, [0, 0, 5, 5]),
3852
+ S.Test.genLayout(4, 4, [1, 1, 3, 3]),
3853
+ S.Test.genLayout(4, 4),
3854
+ S.Test.genLayout(5, 5),
3855
+ S.Test.genLayout(6, 6),
3856
+ S.genLayout(8, 8, [
3813
3857
  [0, 0, 3, 3],
3814
3858
  [3, 0, 5, 2],
3815
3859
  [5, 0, 7, 2]
3816
3860
  ])
3817
- ]), c = V(() => i.map((d) => ({
3861
+ ]), c = F(() => i.map((d) => ({
3818
3862
  layout: d
3819
- }))), m = document.body;
3863
+ }))), _ = document.body;
3820
3864
  return rt(() => {
3821
3865
  window.document.removeEventListener("click", r);
3822
- }), (d, u) => (S(), D(ue, null, [
3823
- (S(), Fe(Hn, { to: ae(m) }, [
3824
- n.value ? (S(), D("div", {
3866
+ }), (d, u) => (C(), P(de, null, [
3867
+ (C(), Ne(jn, { to: ae(_) }, [
3868
+ n.value ? (C(), P("div", {
3825
3869
  key: 0,
3826
- style: me([{ width: "330px", position: "absolute", "background-color": "white", "padding-left": "25px", border: "1px solid", "padding-top": "20px", "padding-bottom": "20px", "border-radius": "5px" }, li(ai({}, o), { zIndex: t.zIndexModal })]),
3827
- onClick: u[0] || (u[0] = (p) => p.stopPropagation())
3870
+ style: pe([{ width: "330px", position: "absolute", "background-color": "white", "padding-left": "25px", border: "1px solid", "padding-top": "20px", "padding-bottom": "20px", "border-radius": "5px" }, ui(ci({}, o), { zIndex: t.zIndexModal })]),
3871
+ onClick: u[0] || (u[0] = (m) => m.stopPropagation())
3828
3872
  }, [
3829
- (S(!0), D(ue, null, Ee(ae(c), (p, y) => (S(), D("span", {
3830
- key: y,
3873
+ (C(!0), P(de, null, Ee(ae(c), (m, E) => (C(), P("span", {
3874
+ key: E,
3831
3875
  class: "layout-panel-item-container",
3832
3876
  style: { border: "1px solid" }
3833
3877
  }, [
3834
- B(Ro, {
3835
- layout: p.layout,
3836
- onClick: (E) => a(p.layout)
3878
+ Q(xo, {
3879
+ layout: m.layout,
3880
+ onClick: (L) => a(m.layout)
3837
3881
  }, null, 8, ["layout", "onClick"])
3838
3882
  ]))), 128))
3839
- ], 4)) : ge("", !0)
3883
+ ], 4)) : ue("", !0)
3840
3884
  ], 8, ["to"])),
3841
- Y(d.$slots, "default", { addPreSetLayout: l }, void 0, !0)
3885
+ J(d.$slots, "default", { addPreSetLayout: l }, void 0, !0)
3842
3886
  ], 64));
3843
3887
  }
3844
3888
  });
3845
- const ci = /* @__PURE__ */ oe(ii, [["__scopeId", "data-v-954fc7ec"]]), ui = {
3889
+ const fi = /* @__PURE__ */ oe(di, [["__scopeId", "data-v-954fc7ec"]]), _i = {
3846
3890
  key: 0,
3847
3891
  style: { position: "relative" },
3848
3892
  class: "layout-container"
3849
- }, di = { key: 1 }, fi = /* @__PURE__ */ q({
3893
+ }, mi = { key: 1 }, pi = /* @__PURE__ */ Z({
3850
3894
  __name: "layoutSelector",
3851
3895
  props: {
3852
3896
  row: {
@@ -3885,55 +3929,55 @@ const ci = /* @__PURE__ */ oe(ii, [["__scopeId", "data-v-954fc7ec"]]), ui = {
3885
3929
  function c() {
3886
3930
  l.value = void 0;
3887
3931
  }
3888
- function m(d) {
3932
+ function _(d) {
3889
3933
  n("addPreset", d, i, { row: o.row, col: o.col });
3890
3934
  }
3891
- return xe(() => {
3892
- o.layout ? o.layout == N.zeroLayout ? l.value = void 0 : l.value = o.layout : typeof o.index == "number" && o.index < qe.length && (l.value = qe[o.index]);
3893
- }), Ie(
3935
+ return Ve(() => {
3936
+ o.layout ? o.layout == S.zeroLayout ? l.value = void 0 : l.value = o.layout : typeof o.index == "number" && o.index < Ze.length && (l.value = Ze[o.index]);
3937
+ }), Le(
3894
3938
  () => o.index,
3895
3939
  () => {
3896
- typeof o.index == "number" && (o.index < qe.length ? l.value = qe[o.index] : l.value = void 0);
3940
+ typeof o.index == "number" && (o.index < Ze.length ? l.value = Ze[o.index] : l.value = void 0);
3897
3941
  }
3898
3942
  ), t({
3899
3943
  getLayout() {
3900
- if (ze(l.value))
3944
+ if (He(l.value))
3901
3945
  return {
3902
- layout: ze(l.value),
3946
+ layout: He(l.value),
3903
3947
  locatoin: {
3904
- col: ze(o.col),
3905
- row: ze(o.row)
3948
+ col: He(o.col),
3949
+ row: He(o.row)
3906
3950
  }
3907
3951
  };
3908
3952
  }
3909
- }), (d, u) => l.value ? (S(), D("div", ui, [
3910
- B(Ro, { layout: l.value }, null, 8, ["layout"]),
3911
- L("div", {
3953
+ }), (d, u) => l.value ? (C(), P("div", _i, [
3954
+ Q(xo, { layout: l.value }, null, 8, ["layout"]),
3955
+ O("div", {
3912
3956
  class: "close-btn",
3913
- onClick: u[0] || (u[0] = (p) => c())
3957
+ onClick: u[0] || (u[0] = (m) => c())
3914
3958
  }, [
3915
- L("span", {
3959
+ O("span", {
3916
3960
  innerHTML: s,
3917
3961
  class: "close-svg"
3918
3962
  })
3919
3963
  ])
3920
- ])) : (S(), D("div", di, [
3921
- L("div", null, [
3922
- L("div", {
3964
+ ])) : (C(), P("div", mi, [
3965
+ O("div", null, [
3966
+ O("div", {
3923
3967
  class: "options",
3924
3968
  style: { "margin-bottom": "1px", "line-height": "18px", height: "18px" },
3925
- onClick: u[1] || (u[1] = (p) => m(p))
3926
- }, z(ae(Ne)("yu-she")), 1),
3927
- L("div", {
3969
+ onClick: u[1] || (u[1] = (m) => _(m))
3970
+ }, j(ae(Ce)("yu-she")), 1),
3971
+ O("div", {
3928
3972
  class: "options",
3929
- onClick: u[2] || (u[2] = (p) => r(p)),
3973
+ onClick: u[2] || (u[2] = (m) => r(m)),
3930
3974
  style: { "line-height": "19px", height: "19px" }
3931
- }, z(ae(Ne)("zi-ding-yi")), 1)
3975
+ }, j(ae(Ce)("zi-ding-yi")), 1)
3932
3976
  ])
3933
3977
  ]));
3934
3978
  }
3935
3979
  });
3936
- const _i = /* @__PURE__ */ oe(fi, [["__scopeId", "data-v-d1d54937"]]), mi = { style: { height: "100%", width: "100%", "min-width": "522px", position: "relative", padding: "5px", border: "1px solid", "border-radius": "5px", "background-color": "white" } }, pi = { style: { height: "40px" } }, gi = { style: { display: "inline-block", width: "180px", "margin-left": "30px" } }, hi = { style: { display: "inline-block", width: "40px" } }, vi = { style: { display: "inline-block", width: "20px" } }, yi = { style: { display: "inline-block", width: "180px" } }, Ei = { style: { display: "inline-block", width: "40px" } }, wi = { style: { display: "inline-block", width: "20px" } }, Li = { style: { height: "calc(100% - 60px)", width: "calc(100% - 60px)", "margin-left": "30px", position: "relative" } }, bi = ["onMousemove", "onMousedown"], Oi = { style: { "text-align": "center", color: "white", "font-size": "48px", "margin-left": "20px", "margin-top": "20px" } }, Ii = ["onClick"], Ti = /* @__PURE__ */ q({
3980
+ const gi = /* @__PURE__ */ oe(pi, [["__scopeId", "data-v-d1d54937"]]), hi = { style: { height: "100%", width: "100%", "min-width": "522px", position: "relative", padding: "5px", border: "1px solid", "border-radius": "5px", "background-color": "white" } }, vi = { style: { height: "40px" } }, yi = { style: { display: "inline-block", width: "180px", "margin-left": "30px" } }, wi = { style: { display: "inline-block", width: "40px" } }, Ei = { style: { display: "inline-block", width: "20px" } }, Li = { style: { display: "inline-block", width: "180px" } }, bi = { style: { display: "inline-block", width: "40px" } }, Oi = { style: { display: "inline-block", width: "20px" } }, Ii = { style: { height: "calc(100% - 60px)", width: "calc(100% - 60px)", "margin-left": "30px", position: "relative" } }, Ti = ["onMousemove", "onMousedown"], Ni = { style: { "text-align": "center", color: "white", "font-size": "48px", "margin-left": "20px", "margin-top": "20px" } }, Si = ["onClick"], Ci = /* @__PURE__ */ Z({
3937
3981
  __name: "index",
3938
3982
  props: {
3939
3983
  row: {
@@ -3956,10 +4000,10 @@ const _i = /* @__PURE__ */ oe(fi, [["__scopeId", "data-v-d1d54937"]]), mi = { st
3956
4000
  setup(e, { expose: t, emit: n }) {
3957
4001
  const o = e, s = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="black" d="M24 2.4L21.6 0L12 9.6L2.4 0L0 2.4L9.6 12L0 21.6L2.4 24l9.6-9.6l9.6 9.6l2.4-2.4l-9.6-9.6z"/></svg>', a = '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 1200 1200"><path fill="#539d65" d="m1004.237 99.152l-611.44 611.441l-198.305-198.305L0 706.779l198.305 198.306l195.762 195.763L588.56 906.355L1200 294.916z"/></svg>';
3958
4002
  function r(I) {
3959
- y.splice(I, 1), $();
4003
+ E.splice(I, 1), T();
3960
4004
  }
3961
4005
  function l() {
3962
- n("ApplyLayoutCustom", J());
4006
+ n("ApplyLayoutCustom", K());
3963
4007
  }
3964
4008
  function i() {
3965
4009
  var I;
@@ -3967,202 +4011,202 @@ const _i = /* @__PURE__ */ oe(fi, [["__scopeId", "data-v-d1d54937"]]), mi = { st
3967
4011
  }
3968
4012
  function c() {
3969
4013
  var I;
3970
- o.row > 2 && p.value.row < o.row && ((I = o.updataLayoutInfo) == null || I.call(o, o.row - 1, o.col));
4014
+ o.row > 2 && m.value.row < o.row && ((I = o.updataLayoutInfo) == null || I.call(o, o.row - 1, o.col));
3971
4015
  }
3972
- function m() {
4016
+ function _() {
3973
4017
  var I;
3974
4018
  o.col && ((I = o.updataLayoutInfo) == null || I.call(o, o.row, o.col + 1));
3975
4019
  }
3976
4020
  function d() {
3977
4021
  var I;
3978
- o.col > 2 && p.value.col < o.col && ((I = o.updataLayoutInfo) == null || I.call(o, o.row, o.col - 1));
4022
+ o.col > 2 && m.value.col < o.col && ((I = o.updataLayoutInfo) == null || I.call(o, o.row, o.col - 1));
3979
4023
  }
3980
- const u = V(() => N.genLayout(o.row, o.col)), p = V(() => ({
3981
- col: Math.max(...y.map((I) => I.area.colsMax)),
3982
- row: Math.max(...y.map((I) => I.area.rowsMax))
3983
- })), y = we(new Array()), E = ["green", "red", "blue"];
3984
- function w() {
3985
- return E[y.length % E.length];
4024
+ const u = F(() => S.genLayout(o.row, o.col)), m = F(() => ({
4025
+ col: Math.max(...E.map((I) => I.area.colsMax)),
4026
+ row: Math.max(...E.map((I) => I.area.rowsMax))
4027
+ })), E = be(new Array()), L = ["green", "red", "blue"];
4028
+ function y() {
4029
+ return L[E.length % L.length];
3986
4030
  }
3987
- const f = 0.125, g = V(() => {
3988
- if (C.first && C.last) {
4031
+ const h = 0.125, w = F(() => {
4032
+ if (N.first && N.last) {
3989
4033
  const I = {
3990
- colsMin: Math.min(C.first.colsMin, C.last.colsMin),
3991
- colsMax: Math.max(C.first.colsMax, C.last.colsMax),
3992
- rowsMin: Math.min(C.first.rowsMin, C.last.rowsMin),
3993
- rowsMax: Math.max(C.first.rowsMax, C.last.rowsMax)
3994
- }, P = w();
4034
+ colsMin: Math.min(N.first.colsMin, N.last.colsMin),
4035
+ colsMax: Math.max(N.first.colsMax, N.last.colsMax),
4036
+ rowsMin: Math.min(N.first.rowsMin, N.last.rowsMin),
4037
+ rowsMax: Math.max(N.first.rowsMax, N.last.rowsMax)
4038
+ }, $ = y();
3995
4039
  return {
3996
4040
  infoGetter() {
3997
- const U = (I.colsMax - I.colsMin) / u.value.col * 100, be = (I.rowsMax - I.rowsMin) / u.value.row * 100, de = U / 100 * u.value.col, Ue = be / 100 * u.value.row;
4041
+ const z = (I.colsMax - I.colsMin) / u.value.col * 100, Ie = (I.rowsMax - I.rowsMin) / u.value.row * 100, fe = z / 100 * u.value.col, Ge = Ie / 100 * u.value.row;
3998
4042
  return {
3999
4043
  style: {
4000
- left: `calc(${(I.colsMin + f) / u.value.col * 100}%)`,
4001
- top: `calc(${(I.rowsMin + f) / u.value.row * 100}% `,
4002
- width: `calc(${U - f * 2 / u.value.col * 100}% )`,
4003
- height: `calc(${be - f * 2 / u.value.row * 100}%)`,
4004
- backgroundColor: P
4044
+ left: `calc(${(I.colsMin + h) / u.value.col * 100}%)`,
4045
+ top: `calc(${(I.rowsMin + h) / u.value.row * 100}% `,
4046
+ width: `calc(${z - h * 2 / u.value.col * 100}% )`,
4047
+ height: `calc(${Ie - h * 2 / u.value.row * 100}%)`,
4048
+ backgroundColor: $
4005
4049
  },
4006
- areaCount: de * Ue
4050
+ areaCount: fe * Ge
4007
4051
  };
4008
4052
  },
4009
4053
  area: I
4010
4054
  };
4011
4055
  }
4012
4056
  });
4013
- function T(I) {
4014
- const [P, R] = [I.colsMin, I.colsMax], [U, be] = [I.rowsMin, I.rowsMax], de = [];
4015
- return Array.from({ length: R - P }).map((Ue, Ye) => {
4016
- const dt = `${Ye + P}-${Ye + P + 1}`;
4017
- Array.from({ length: be - U }).map((Gt, Xe) => {
4018
- const zt = `${Xe + U}-${Xe + U + 1}`;
4019
- de.push(`${dt}|${zt}`);
4057
+ function A(I) {
4058
+ const [$, x] = [I.colsMin, I.colsMax], [z, Ie] = [I.rowsMin, I.rowsMax], fe = [];
4059
+ return Array.from({ length: x - $ }).map((Ge, Xe) => {
4060
+ const dt = `${Xe + $}-${Xe + $ + 1}`;
4061
+ Array.from({ length: Ie - z }).map((Gt, Je) => {
4062
+ const zt = `${Je + z}-${Je + z + 1}`;
4063
+ fe.push(`${dt}|${zt}`);
4020
4064
  });
4021
- }), de;
4065
+ }), fe;
4022
4066
  }
4023
- function O(I, P) {
4024
- return T(I).findIndex((R) => T(P).findIndex((U) => R == U) >= 0) >= 0;
4067
+ function D(I, $) {
4068
+ return A(I).findIndex((x) => A($).findIndex((z) => x == z) >= 0) >= 0;
4025
4069
  }
4026
- function v(I, P) {
4027
- const R = {
4028
- colsMin: Math.min(I.colsMin, P.colsMin),
4029
- colsMax: Math.max(I.colsMax, P.colsMax),
4030
- rowsMin: Math.min(I.rowsMin, P.rowsMin),
4031
- rowsMax: Math.max(I.rowsMax, P.rowsMax)
4070
+ function v(I, $) {
4071
+ const x = {
4072
+ colsMin: Math.min(I.colsMin, $.colsMin),
4073
+ colsMax: Math.max(I.colsMax, $.colsMax),
4074
+ rowsMin: Math.min(I.rowsMin, $.rowsMin),
4075
+ rowsMax: Math.max(I.rowsMax, $.rowsMax)
4032
4076
  };
4033
- return y.findIndex((U) => O(R, U.area)) >= 0;
4077
+ return E.findIndex((z) => D(x, z.area)) >= 0;
4034
4078
  }
4035
- function A(I) {
4036
- const P = {
4079
+ function p(I) {
4080
+ const $ = {
4037
4081
  colsMin: I.col,
4038
4082
  colsMax: I.col + I.w,
4039
4083
  rowsMin: I.row,
4040
4084
  rowsMax: I.row + I.h
4041
4085
  };
4042
- !C.first && v(P, P) || (C.first || (C.first = P), !v(C.first, P) && (C.last && Object.keys(P).findIndex(
4043
- (R) => {
4044
- var U;
4045
- return ((U = C.last) == null ? void 0 : U[R]) != P[R];
4086
+ !N.first && v($, $) || (N.first || (N.first = $), !v(N.first, $) && (N.last && Object.keys($).findIndex(
4087
+ (x) => {
4088
+ var z;
4089
+ return ((z = N.last) == null ? void 0 : z[x]) != $[x];
4046
4090
  }
4047
- ) < 0 || (C.last = P)));
4091
+ ) < 0 || (N.last = $)));
4048
4092
  }
4049
- function $() {
4050
- C.first = void 0, C.last = void 0;
4093
+ function T() {
4094
+ N.first = void 0, N.last = void 0;
4051
4095
  }
4052
- const C = we({});
4053
- function X(I, P) {
4054
- I.buttons && A(P);
4096
+ const N = be({});
4097
+ function R(I, $) {
4098
+ I.buttons && p($);
4055
4099
  }
4056
- function Z() {
4057
- if (g.value) {
4058
- const I = g.value;
4100
+ function G() {
4101
+ if (w.value) {
4102
+ const I = w.value;
4059
4103
  if (I && I.infoGetter().areaCount > 1) {
4060
- y.push(I);
4061
- const P = y.sort((R, U) => (R.area.rowsMin - U.area.rowsMin) * 1e3 + R.area.colsMin - U.area.colsMin);
4062
- y.splice(0, y.length, ...P);
4104
+ E.push(I);
4105
+ const $ = E.sort((x, z) => (x.area.rowsMin - z.area.rowsMin) * 1e3 + x.area.colsMin - z.area.colsMin);
4106
+ E.splice(0, E.length, ...$);
4063
4107
  }
4064
- $();
4108
+ T();
4065
4109
  }
4066
4110
  }
4067
- xe(() => {
4068
- window.document.addEventListener("mouseup", Z);
4111
+ Ve(() => {
4112
+ window.document.addEventListener("mouseup", G);
4069
4113
  }), rt(() => {
4070
- window.document.removeEventListener("mouseup", Z);
4114
+ window.document.removeEventListener("mouseup", G);
4071
4115
  });
4072
- function J() {
4073
- const I = y.map((R) => [
4074
- R.area.colsMin,
4075
- R.area.rowsMin,
4076
- R.area.colsMax,
4077
- R.area.rowsMax
4116
+ function K() {
4117
+ const I = E.map((x) => [
4118
+ x.area.colsMin,
4119
+ x.area.rowsMin,
4120
+ x.area.colsMax,
4121
+ x.area.rowsMax
4078
4122
  ]);
4079
- return N.genLayout(
4123
+ return S.genLayout(
4080
4124
  u.value.row,
4081
4125
  u.value.col,
4082
4126
  I
4083
4127
  );
4084
4128
  }
4085
- const De = V(() => J().count);
4129
+ const ye = F(() => K().count);
4086
4130
  return t({
4087
- getLayout: J
4088
- }), (I, P) => (S(), D("div", mi, [
4089
- L("div", pi, [
4090
- L("div", gi, [
4091
- L("span", hi, z(ae(Ne)("hang-shu")), 1),
4092
- L("span", vi, z(o.row), 1),
4093
- L("button", {
4094
- onClick: P[0] || (P[0] = (R) => i()),
4131
+ getLayout: K
4132
+ }), (I, $) => (C(), P("div", hi, [
4133
+ O("div", vi, [
4134
+ O("div", yi, [
4135
+ O("span", wi, j(ae(Ce)("hang-shu")), 1),
4136
+ O("span", Ei, j(o.row), 1),
4137
+ O("button", {
4138
+ onClick: $[0] || ($[0] = (x) => i()),
4095
4139
  style: { cursor: "pointer" }
4096
4140
  }, "+"),
4097
- L("button", {
4141
+ O("button", {
4098
4142
  style: { "margin-left": "2px", cursor: "pointer" },
4099
- onClick: P[1] || (P[1] = (R) => c())
4143
+ onClick: $[1] || ($[1] = (x) => c())
4100
4144
  }, " - ")
4101
4145
  ]),
4102
- L("div", yi, [
4103
- L("span", Ei, z(ae(Ne)("lie-shu")), 1),
4104
- L("span", wi, z(o.col), 1),
4105
- L("button", {
4106
- onClick: P[2] || (P[2] = (R) => m()),
4146
+ O("div", Li, [
4147
+ O("span", bi, j(ae(Ce)("lie-shu")), 1),
4148
+ O("span", Oi, j(o.col), 1),
4149
+ O("button", {
4150
+ onClick: $[2] || ($[2] = (x) => _()),
4107
4151
  style: { cursor: "pointer" }
4108
4152
  }, "+"),
4109
- L("button", {
4110
- onClick: P[3] || (P[3] = (R) => d()),
4153
+ O("button", {
4154
+ onClick: $[3] || ($[3] = (x) => d()),
4111
4155
  style: { "margin-left": "2px", cursor: "pointer" }
4112
4156
  }, " - ")
4113
4157
  ]),
4114
- Ct(" " + z(ae(De)) + " ", 1),
4115
- L("button", {
4158
+ Ct(" " + j(ae(ye)) + " ", 1),
4159
+ O("button", {
4116
4160
  style: { cursor: "pointer", "margin-left": "20px" },
4117
- onClick: P[4] || (P[4] = (R) => l())
4161
+ onClick: $[4] || ($[4] = (x) => l())
4118
4162
  }, [
4119
- L("span", { innerHTML: a })
4163
+ O("span", { innerHTML: a })
4120
4164
  ])
4121
4165
  ]),
4122
- L("div", Li, [
4123
- B(Ut, {
4166
+ O("div", Ii, [
4167
+ Q(Ut, {
4124
4168
  layout: ae(u),
4125
4169
  class: "area-layout"
4126
4170
  }, {
4127
- default: te((R) => [
4128
- L("div", {
4171
+ default: te((x) => [
4172
+ O("div", {
4129
4173
  class: "area-item",
4130
- onMousemove: (U) => X(U, R),
4131
- onMousedown: (U) => X(U, R)
4132
- }, z(R.id), 41, bi)
4174
+ onMousemove: (z) => R(z, x),
4175
+ onMousedown: (z) => R(z, x)
4176
+ }, j(x.id), 41, Ti)
4133
4177
  ]),
4134
4178
  _: 1
4135
4179
  }, 8, ["layout"]),
4136
- ae(g) ? (S(), D("div", {
4180
+ ae(w) ? (C(), P("div", {
4137
4181
  key: 0,
4138
- style: me(ae(g).infoGetter().style),
4182
+ style: pe(ae(w).infoGetter().style),
4139
4183
  class: "current-area"
4140
- }, null, 4)) : ge("", !0),
4141
- (S(!0), D(ue, null, Ee(y, (R, U) => (S(), D("div", {
4142
- style: me([R.infoGetter().style, {}]),
4184
+ }, null, 4)) : ue("", !0),
4185
+ (C(!0), P(de, null, Ee(E, (x, z) => (C(), P("div", {
4186
+ style: pe([x.infoGetter().style, {}]),
4143
4187
  class: "current-area"
4144
4188
  }, [
4145
- L("span", Oi, z(U + 1), 1),
4146
- L("span", {
4189
+ O("span", Ni, j(z + 1), 1),
4190
+ O("span", {
4147
4191
  class: "close-svg",
4148
4192
  innerHTML: s,
4149
- onClick: (be) => r(U)
4150
- }, null, 8, Ii)
4193
+ onClick: (Ie) => r(z)
4194
+ }, null, 8, Si)
4151
4195
  ], 4))), 256))
4152
4196
  ])
4153
4197
  ]));
4154
4198
  }
4155
4199
  });
4156
- const Ni = /* @__PURE__ */ oe(Ti, [["__scopeId", "data-v-27292e2e"]]);
4157
- var Si = Object.defineProperty, Ci = Object.defineProperties, Di = Object.getOwnPropertyDescriptors, Rn = Object.getOwnPropertySymbols, Ai = Object.prototype.hasOwnProperty, Pi = Object.prototype.propertyIsEnumerable, xn = (e, t, n) => t in e ? Si(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, $i = (e, t) => {
4200
+ const Di = /* @__PURE__ */ oe(Ci, [["__scopeId", "data-v-27292e2e"]]);
4201
+ var Ai = Object.defineProperty, Pi = Object.defineProperties, $i = Object.getOwnPropertyDescriptors, xn = Object.getOwnPropertySymbols, Mi = Object.prototype.hasOwnProperty, ki = Object.prototype.propertyIsEnumerable, Fn = (e, t, n) => t in e ? Ai(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ri = (e, t) => {
4158
4202
  for (var n in t || (t = {}))
4159
- Ai.call(t, n) && xn(e, n, t[n]);
4160
- if (Rn)
4161
- for (var n of Rn(t))
4162
- Pi.call(t, n) && xn(e, n, t[n]);
4203
+ Mi.call(t, n) && Fn(e, n, t[n]);
4204
+ if (xn)
4205
+ for (var n of xn(t))
4206
+ ki.call(t, n) && Fn(e, n, t[n]);
4163
4207
  return e;
4164
- }, Mi = (e, t) => Ci(e, Di(t));
4165
- const ki = /* @__PURE__ */ q({
4208
+ }, xi = (e, t) => Pi(e, $i(t));
4209
+ const Fi = /* @__PURE__ */ Z({
4166
4210
  __name: "layout-custom-editor",
4167
4211
  props: {
4168
4212
  zIndexModal: {
@@ -4171,13 +4215,13 @@ const ki = /* @__PURE__ */ q({
4171
4215
  },
4172
4216
  setup(e) {
4173
4217
  const t = e, n = M();
4174
- function o(u, p) {
4175
- a.row = u, a.col = p;
4218
+ function o(u, m) {
4219
+ a.row = u, a.col = m;
4176
4220
  }
4177
4221
  function s(u) {
4178
4222
  r == null || r(u), d.value = !1;
4179
4223
  }
4180
- const a = we({
4224
+ const a = be({
4181
4225
  row: 5,
4182
4226
  col: 4
4183
4227
  });
@@ -4185,60 +4229,60 @@ const ki = /* @__PURE__ */ q({
4185
4229
  function l() {
4186
4230
  d.value = !1, window.document.removeEventListener("click", l);
4187
4231
  }
4188
- const i = V(() => c.value ? {
4232
+ const i = F(() => c.value ? {
4189
4233
  position: "absolute",
4190
4234
  top: `${c.value.y * 0 + 80}px`,
4191
4235
  left: `${c.value.x * 0 + 40}px`,
4192
4236
  height: `${a.row * 50 + 60}px`,
4193
4237
  width: `${a.col * 80 + 60}px`
4194
4238
  } : {}), c = M();
4195
- function m(u, p) {
4196
- window.document.removeEventListener("click", l), r = p, c.value = u, d.value = !0, setTimeout(() => {
4239
+ function _(u, m) {
4240
+ window.document.removeEventListener("click", l), r = m, c.value = u, d.value = !0, setTimeout(() => {
4197
4241
  window.document.addEventListener("click", l);
4198
4242
  }, 50);
4199
4243
  }
4200
4244
  const d = M(!1);
4201
- return xe(() => {
4245
+ return Ve(() => {
4202
4246
  n.value = document.body;
4203
4247
  }), rt(() => {
4204
4248
  window.document.removeEventListener("click", l);
4205
- }), (u, p) => (S(), D(ue, null, [
4206
- n.value ? (S(), Fe(Hn, {
4249
+ }), (u, m) => (C(), P(de, null, [
4250
+ n.value ? (C(), Ne(jn, {
4207
4251
  key: 0,
4208
4252
  to: n.value
4209
4253
  }, [
4210
- d.value ? (S(), D("div", {
4254
+ d.value ? (C(), P("div", {
4211
4255
  key: 0,
4212
- style: me([{ "background-color": "white" }, Mi($i({}, ae(i)), { zIndex: t.zIndexModal })]),
4213
- onClick: p[0] || (p[0] = (y) => y.stopPropagation())
4256
+ style: pe([{ "background-color": "white" }, xi(Ri({}, ae(i)), { zIndex: t.zIndexModal })]),
4257
+ onClick: m[0] || (m[0] = (E) => E.stopPropagation())
4214
4258
  }, [
4215
- B(Ni, {
4259
+ Q(Di, {
4216
4260
  row: a.row,
4217
4261
  col: a.col,
4218
4262
  updataLayoutInfo: o,
4219
4263
  onApplyLayoutCustom: s
4220
4264
  }, null, 8, ["row", "col"])
4221
- ], 4)) : ge("", !0)
4222
- ], 8, ["to"])) : ge("", !0),
4223
- Y(u.$slots, "default", { addCustomLayoutGen: m })
4265
+ ], 4)) : ue("", !0)
4266
+ ], 8, ["to"])) : ue("", !0),
4267
+ J(u.$slots, "default", { addCustomLayoutGen: _ })
4224
4268
  ], 64));
4225
4269
  }
4226
4270
  });
4227
- var Ri = Object.defineProperty, Fn = Object.getOwnPropertySymbols, xi = Object.prototype.hasOwnProperty, Fi = Object.prototype.propertyIsEnumerable, Vn = (e, t, n) => t in e ? Ri(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Vi = (e, t) => {
4271
+ var Vi = Object.defineProperty, Vn = Object.getOwnPropertySymbols, Ui = Object.prototype.hasOwnProperty, Gi = Object.prototype.propertyIsEnumerable, Un = (e, t, n) => t in e ? Vi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, zi = (e, t) => {
4228
4272
  for (var n in t || (t = {}))
4229
- xi.call(t, n) && Vn(e, n, t[n]);
4230
- if (Fn)
4231
- for (var n of Fn(t))
4232
- Fi.call(t, n) && Vn(e, n, t[n]);
4273
+ Ui.call(t, n) && Un(e, n, t[n]);
4274
+ if (Vn)
4275
+ for (var n of Vn(t))
4276
+ Gi.call(t, n) && Un(e, n, t[n]);
4233
4277
  return e;
4234
4278
  };
4235
- const Ui = {
4279
+ const Hi = {
4236
4280
  class: "dash-border",
4237
4281
  style: {
4238
4282
  width: "78px",
4239
4283
  height: "48px"
4240
4284
  }
4241
- }, Gi = { style: { width: "100%", height: "40px" } }, zi = { class: "add-row-panel" }, Hi = /* @__PURE__ */ q({
4285
+ }, ji = { style: { width: "100%", height: "40px" } }, Wi = { class: "add-row-panel" }, Bi = /* @__PURE__ */ Z({
4242
4286
  __name: "layoutGen",
4243
4287
  props: {
4244
4288
  savedLayout: {
@@ -4249,7 +4293,7 @@ const Ui = {
4249
4293
  }
4250
4294
  },
4251
4295
  setup(e, { expose: t }) {
4252
- const n = e, o = we({
4296
+ const n = e, o = be({
4253
4297
  row: 4,
4254
4298
  col: 4
4255
4299
  });
@@ -4263,61 +4307,61 @@ const Ui = {
4263
4307
  t({
4264
4308
  getLayouts() {
4265
4309
  return {
4266
- layouts: r.value.map((m) => m.getLayout()).filter((m) => !!m),
4267
- meta: Vi({}, ze(o))
4310
+ layouts: r.value.map((_) => _.getLayout()).filter((_) => !!_),
4311
+ meta: zi({}, He(o))
4268
4312
  };
4269
4313
  }
4270
4314
  });
4271
4315
  function l(i, c) {
4272
- var m;
4273
- const d = (m = n.savedLayout) == null ? void 0 : m.layouts.find(
4316
+ var _;
4317
+ const d = (_ = n.savedLayout) == null ? void 0 : _.layouts.find(
4274
4318
  (u) => u.locatoin.col == c && u.locatoin.row == i
4275
4319
  );
4276
4320
  if (d != null && d.layout)
4277
4321
  return d == null ? void 0 : d.layout;
4278
4322
  if (n.savedLayout)
4279
- return N.zeroLayout;
4323
+ return S.zeroLayout;
4280
4324
  }
4281
- return xe(() => {
4325
+ return Ve(() => {
4282
4326
  n.savedLayout && (o.row = n.savedLayout.meta.row, o.col = n.savedLayout.meta.col);
4283
- }), (i, c) => (S(), Fe(ki, {
4327
+ }), (i, c) => (C(), Ne(Fi, {
4284
4328
  zIndexModal: n.zIndexModal
4285
4329
  }, {
4286
- default: te(({ addCustomLayoutGen: m }) => [
4287
- B(ci, {
4330
+ default: te(({ addCustomLayoutGen: _ }) => [
4331
+ Q(fi, {
4288
4332
  zIndexModal: n.zIndexModal
4289
4333
  }, {
4290
4334
  default: te(({ addPreSetLayout: d }) => [
4291
- L("div", null, [
4292
- L("div", {
4293
- style: me([{ display: "inline-block", "vertical-align": "top" }, { width: `${80 * o.col}px` }])
4335
+ O("div", null, [
4336
+ O("div", {
4337
+ style: pe([{ display: "inline-block", "vertical-align": "top" }, { width: `${80 * o.col}px` }])
4294
4338
  }, [
4295
- (S(!0), D(ue, null, Ee(Array.from({ length: o.row }), (u, p) => (S(), D("div", {
4296
- style: me({ width: `${80 * o.col}px` })
4339
+ (C(!0), P(de, null, Ee(Array.from({ length: o.row }), (u, m) => (C(), P("div", {
4340
+ style: pe({ width: `${80 * o.col}px` })
4297
4341
  }, [
4298
- (S(!0), D(ue, null, Ee(Array.from({ length: o.col }), (y, E) => (S(), D("div", Ui, [
4299
- L("div", Gi, [
4300
- B(_i, {
4342
+ (C(!0), P(de, null, Ee(Array.from({ length: o.col }), (E, L) => (C(), P("div", Hi, [
4343
+ O("div", ji, [
4344
+ Q(gi, {
4301
4345
  ref_for: !0,
4302
4346
  ref_key: "layoutSelectorRefs",
4303
4347
  ref: r,
4304
- row: p,
4305
- col: E,
4306
- index: o.col * p + E,
4348
+ row: m,
4349
+ col: L,
4350
+ index: o.col * m + L,
4307
4351
  onAddPreset: d,
4308
- onAddCustom: m,
4309
- layout: l(p, E)
4352
+ onAddCustom: _,
4353
+ layout: l(m, L)
4310
4354
  }, null, 8, ["row", "col", "index", "onAddPreset", "onAddCustom", "layout"])
4311
4355
  ])
4312
4356
  ]))), 256))
4313
4357
  ], 4))), 256)),
4314
- L("div", zi, [
4315
- L("div", {
4358
+ O("div", Wi, [
4359
+ O("div", {
4316
4360
  onClick: c[0] || (c[0] = (u) => a()),
4317
4361
  style: { display: "inline-block", width: "calc(50% - 5px)" },
4318
4362
  class: "add-row-panel-remove"
4319
4363
  }, " - "),
4320
- L("div", {
4364
+ O("div", {
4321
4365
  onClick: c[1] || (c[1] = (u) => s()),
4322
4366
  style: { display: "inline-block", width: "calc(50% - 5px)" },
4323
4367
  class: "add-row-panel-add"
@@ -4333,7 +4377,7 @@ const Ui = {
4333
4377
  }, 8, ["zIndexModal"]));
4334
4378
  }
4335
4379
  });
4336
- const ji = /* @__PURE__ */ oe(Hi, [["__scopeId", "data-v-c71da28e"]]), Wi = { style: { "background-color": "white" } }, Bi = /* @__PURE__ */ q({
4380
+ const Ki = /* @__PURE__ */ oe(Bi, [["__scopeId", "data-v-c71da28e"]]), Yi = { style: { "background-color": "white" } }, Xi = /* @__PURE__ */ Z({
4337
4381
  __name: "index",
4338
4382
  props: {
4339
4383
  savedLayout: {
@@ -4350,8 +4394,8 @@ const ji = /* @__PURE__ */ oe(Hi, [["__scopeId", "data-v-c71da28e"]]), Wi = { st
4350
4394
  var o;
4351
4395
  return (o = n.value) == null ? void 0 : o.getLayouts();
4352
4396
  }
4353
- }), (o, s) => (S(), D("div", Wi, [
4354
- B(ji, {
4397
+ }), (o, s) => (C(), P("div", Yi, [
4398
+ Q(Ki, {
4355
4399
  ref_key: "refLayoutGen",
4356
4400
  ref: n,
4357
4401
  savedLayout: e.savedLayout,
@@ -4360,33 +4404,33 @@ const ji = /* @__PURE__ */ oe(Hi, [["__scopeId", "data-v-c71da28e"]]), Wi = { st
4360
4404
  ]));
4361
4405
  }
4362
4406
  });
4363
- const Ki = /* @__PURE__ */ oe(Bi, [["__scopeId", "data-v-a049e2ea"]]), Un = {
4364
- RecursionDeviceGroup: sl,
4407
+ const Ji = /* @__PURE__ */ oe(Xi, [["__scopeId", "data-v-a049e2ea"]]), Gn = {
4408
+ RecursionDeviceGroup: ll,
4365
4409
  VideoAreasLayoutShow: Ut,
4366
- MultiVideoAreaLayoutSwitch: Jl,
4367
- VideoAreasLayoutCustom: Ki
4368
- }, Qi = {
4410
+ MultiVideoAreaLayoutSwitch: Zl,
4411
+ VideoAreasLayoutCustom: Ji
4412
+ }, ec = {
4369
4413
  install(e, t) {
4370
- Wr(
4371
- t && typeof t.locale < "u" ? t.locale : vo.en
4372
- ), t.deviceListDisplayStyle && Kr(t.deviceListDisplayStyle);
4373
- for (const n in Un) {
4374
- const o = Un[n];
4414
+ Br(
4415
+ t && typeof t.locale < "u" ? t.locale : yo.en
4416
+ ), t.deviceListDisplayStyle && Yr(t.deviceListDisplayStyle);
4417
+ for (const n in Gn) {
4418
+ const o = Gn[n];
4375
4419
  e.component(n, o);
4376
4420
  }
4377
4421
  }
4378
4422
  };
4379
4423
  export {
4380
- yo as DeviceListNameDisplayStyle,
4424
+ wo as DeviceListNameDisplayStyle,
4381
4425
  Eo as DeviceListTheme,
4382
- Br as GetGlobalDeviceListTheme,
4383
- Xr as GetIsHideDeviceIdInDeviceDisplay,
4426
+ Kr as GetGlobalDeviceListTheme,
4427
+ Jr as GetIsHideDeviceIdInDeviceDisplay,
4384
4428
  vn as RecursionDeviceGroup,
4385
4429
  vn as RecursionDeviceGroupModel,
4386
- Kr as SetDeviceListNameDisplayStyle,
4387
- Xi as SetGlobalDeviceListTheme,
4388
- Ji as SetIsHideDeviceIdInDeviceDisplay,
4389
- N as VideoAreaLayout,
4390
- Qi as default
4430
+ Yr as SetDeviceListNameDisplayStyle,
4431
+ qi as SetGlobalDeviceListTheme,
4432
+ Zi as SetIsHideDeviceIdInDeviceDisplay,
4433
+ S as VideoAreaLayout,
4434
+ ec as default
4391
4435
  };
4392
4436
  //# sourceMappingURL=smarteye-e-components.mjs.map